From 571ae91cc9da38131f2d8a7b368ab39808705bc1 Mon Sep 17 00:00:00 2001 From: Mark Warren Date: Tue, 12 Mar 2024 15:31:44 -0600 Subject: [PATCH] Version 4.3 - BWIPP 2024-01-03 with new border/bearer bars rendering --- README.md | 8 +- barcode.ps | Bin 1116857 -> 1131110 bytes bin/bwip-js.js | 426 +- demo.html | 379 +- dist/bwip-js-gen.d.ts | 4 +- dist/bwip-js-gen.mjs | 3000 +- dist/bwip-js-min.js | 12 +- dist/bwip-js-node.d.ts | 4 +- dist/bwip-js-node.js | 76194 +++++++++++++++++----------------- dist/bwip-js-node.mjs | 3408 +- dist/bwip-js-rn.d.ts | 4 +- dist/bwip-js-rn.mjs | 3358 +- dist/bwip-js.d.ts | 4 +- dist/bwip-js.js | 75802 ++++++++++++++++----------------- dist/bwip-js.mjs | 3066 +- dist/bwipp.mjs | 72750 ++++++++++++++++---------------- examples/drawing-example.js | 24 +- examples/drawing-pdfkit.js | 4 +- lib/canvas-toblob.js | 196 +- lib/demo.css | 188 +- lib/filesaver.js | 426 +- lib/symdesc.js | 4 +- package.json | 2 +- src/bwip-js.d.ts | 2 +- src/bwipjs.js | 1132 +- src/bwipp.js | 72744 ++++++++++++++++---------------- src/drawing-builtin.js | 858 +- src/drawing-canvas.js | 54 +- src/drawing-svg.js | 36 +- src/drawing-zlibpng.js | 352 +- src/exports.js | 284 +- src/stb_truetype.js | 718 +- stb_truetype.h | 40 +- 33 files changed, 158742 insertions(+), 156741 deletions(-) diff --git a/README.md b/README.md index 1f5d0b5f..c63d4198 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ or as SVG (all platforms). ## Status -* Current bwip-js version is 4.2.0 (2024-01-02) -* Current BWIPP version is 2023-04-03 +* Current bwip-js version is 4.3.0 (2024-03-12) +* Current BWIPP version is 2024-01-03 * Node.js compatibility: 0.12+ * Browser compatibility: Edge, Firefox, Chrome @@ -377,7 +377,7 @@ The return value from `toSVG()` is a string containing a fully qualified SVG def including a `viewBox` attribute that defines the natural width and height of the image, in pixels. ``` - + ... ``` @@ -393,7 +393,7 @@ span.style.display = 'inline-block'; span.style.width = width + 'px'; span.style.height = height + 'px'; span.innerHTML = svg; -document.body.addChild(span); +document.body.appendChild(span); ``` The `toSVG()` method links to all BWIPP encoders, so it cannot be used with diff --git a/barcode.ps b/barcode.ps index 53dae74d039946f5b1c996a16fd88c247cf12ace..cc2c7f4fc86ee71b752bcfbb9735bc3acc1b183b 100644 GIT binary patch delta 19274 zcmeHv33L=y*6?{%)t%nbT?yI4Qen}cK&pCgL`ZN&_F-{Dp_6n-L(&~Ood6O99G7v> zVQJvHfw+wek*z;@BB0>zsGl(CsEnV2I5Uo;0*W)^hTnZvy(Oe|_|7cn{O8AWpsL<` z_ucK??cH|g+6(`9<3%eyf^(>>tU9lnIJb2?D)3HOiC5}gBJAOTFZ4R~!&l~coca*7 z&ek3diaQPJmldV2loa4x*&)l4Tb4a8ujF>gE-$R=%@y)?pATkL>0XCtCi0`=D;<-0 z!_`uy!!uaACbnv7Y3!8yv9s}mtl$TUJ=hZuURidh9_{Q=o&S!9p3(egywrqXy|P_S zf>`T2GY}oak19Q)Xm`0%81{(l+VjqgxbTRVdu8sF;DJi`)#pFPIHxj7{m_48w-0|F zx#^5p^Zcl1&uIRR>P=lSxV~nSDzc>Pk|JY*L{#nUyNc@c(VMc-6(4lL%fyJYor*It zJ#M~8$K@qyO(_LJDvLQTdAaA2c;8D$lPp6&ACq21(s)f%LV8`PWGnVH_p~C$hRzCS9a`R!b?ErKtV7dUvkpBK%{tVtJ?qeo z^Akf!lc1XO*s2@K<9}X|b!ftMS%>0_dfbZvELog&Xz}$~hdx}Ab+1d7^)wV;bwieu zRu&g;ObEUkxv0l&H}$9!OvMk~oONi_FR}uB@YbwD#^qUuLbqkz>)`EKhrBDY4y|7~ zfT$-{)!c-o&v4pFPhA%KeAWLHFfWkdBsCv=VoiDci`8F~48I&dvF15alQQ`Uu#V*E za44Zr!csWw=|@-k(XBql80f#R`WVa!RbVIYI_v)iOkF+go`4$e z$czv)Z>90K?|qoFAaaR#1i$V-+&8w+*E_!V{wcy4x#J5S{(X=Bt~6Ht$lF;)e2->Z z<9=*smNj{sHuXzMhCQeeT0%rlJ9}fK#XjCdRkN6+HMYBRf7cI>KK>+=xzmxb3b<(L z<|n((nYQJ4*AKN@JG*{3ciXilMV6$hX8!_7iREqXXK3PrX-PB6fwvZSS`I+uOV0{Cqrtvyvk8?*HnxsO5=nI4|DO4d;t#w-2@_yTSOV z+lTnhog+0jlj3K=t^?h$-`#me8uR|{&Yoo)@7!bUIhrVqz4vryVM_c7sVga*Hb0XE zWUOOv7KMsmzE8}y*{#oJ19$mz*+vFEpJgQey~(5a>;Y9~J&(rM{MN#$ilpLk;&6HVnK$p^d(aFvwD_HTP7BXjt`lRQ zwj9dqi9{TVef0asR5(mO(s3PIwEex+34^aG&xymmV-4>=+MRlpKpcy^Ke(RHLgBs- zU+9L>uaCObv!bPy43Td?no6#U{qXTcc;sgzcT@|U!iYWCU5*5jnI1|`enf>}lF&Gt zk=&`+YhO=eJ=-{MdSP7r!-Ot=SC+ES}_P0`9t;6BDSLcx&5V~Bc=ZM zUoe!pIOgwH1hXzDLVV0$d-M6h)^>kWu)e;jWo}?$Yha$VC?XL#2mgjwq-~^ z*m#$**c@b-GzCJlqm8lL@0~FGdZQQ*d|gR&4gRLqKu)gRNPD|bv0w88I`c_TCQ($hS4cGH7a4>ZKNWGi(vm17K7WV zZe2NJu+$IZ-IASJcAe}81fM_9li>%lkPM6!`^$nc~ zMHU3p=MJkCKA2B*c*IDbSjC`0P`%r1gz+z$^TF&PCKzhKzka17R~AWZ53gMl#@tYN zehB3p1+qss5c(NNKRBr;joK`SFWampsLmlm2vJ>>B59B`b>f8+rRnUP`lA7<*54Yy z2`#7r!O(0e($*A6t0+@+4frC7$u~i`YD`i{X%pOv6bdklk;aj8JE7V@O4+}Yt)vJ( z%|Y_y93s-?22#$$MuiyZZ!9F3YSgk6F#N{`zr=pbMU9BYnW% zP6}ZB2vRh%u05EdsZv2Zs{I)(;Q%vPmxm*B{gH4Rny_GNE0Qrkh-b6KUpLo38x7tM z4$>P&x0CZ#eA4k-cNAb(JF%#HXUwS?LHf`BsV!32b-~nuwafnlrijHThG`CL$s;+m zU_K!^HmT|=sj3N0mnN2&|Fr^;Zzl%0y#wd;yPlNh4ow;x?cYJt#bG=J%xXl?#HNfC z9hnk3a` zNJILlQ^qZl*ib?dgHdU*6jYtq<&9{o7D~L>fb8ebJ7zH8ce4 zg4)i#Vd)LVa<&Jx-bU8(y^=*`ufw4@B(L3WcYyyLf;DBQ3zQD-4LICO$e|CdBw@~g zCTV_cz#joFMkbca!(`@DHKR})j?@Ptwc%(K?U)QrF|v!eXyqCr7?)Hx^ukEo}=X*k2S4P;8MU}$bDo=K$EE;Y9`;X$bd{$4T!s_(Gr0XC2U6aKk; z`O$5M8P&rb!03%C_mV5c)P0X4qce3&KCjpA1^>mmBF>?tk0wlf7md%#t>jvm8N;XG zYElX--z84?U>m+xZX>=Wp*9qc8vZi7h9o1gfe?m${wD48rdWaTRC?}@Pi_APrq(rK z!5|86Eaq}y?_<0kc5Wk|!B?xvIUvPIsl5ji!p?gSpEE5>8E1FFecQ=QkBTe{w5w7S z;9|wah-Icyr7ks;ATBTugg6;$Ob`&5N8NFN+%aVY?psYt;G5NC&_CnUO``>e$P@e-9|*fI;k?ewqdVm8 z{#<)s66qcbNN2vo8G7?fFPkl@V7|P&C(lO1=_F+Ckj2+0HsAsc|86h-Z$AJ|z7~Vc zy!Wwiar?cbtdC|_W;6fb#t=K{zFBx!AAsfWllR6aBS@U%@_3w5GNeT3E=9D6K!t+y zhT;?)XRFyCe6@SM9{iFDN#V!`qoxE1keQu z7Lza}CaUn*Up>*)6^U+i^#D?eK;K8qePH-uGBLLcA7R`P3?J^86(J)Gz{R6ko=4d63cuUpSsQuoHn1fA0b9AZTmcK zJGQ=foDMg$eZ|B<{Z+c(fN)5v94xUg$}>z} zEG{VRyPEkI$)iHBaVM zd7D8feW)*2SimD*aC{0^@RQh%Rk6kCnVY9F!5#?x5o7_8T~2RwaK9ia{qxCQ52nc; z+3Qx*WMT($+%}!=Z8ONKcqodegdoS6Q~;$Cg(t7%UZg{O+({9&73EXR6AvhtasA=y z@!SmU`Dei7LQyUsbrXs2bdhL8;=oT3nOgc2ME-)tr*gNDl*ap9F4->m6pw?om!bZ7 z<*xeI26b0(FJ%%*k;v;xvC5a!KQmm{%AJkukuKvLj8F?aJA@lV^-=EE{{aeN*=HS7VtYP>eCe!{C7O8*ee*| z_#pmfc;g9E-rBE)-mw2H-T=1_;%CA+MZ#4SUx((f6+4FU->VC9;4V9VtGWQJcK#-9 z-eL#u%1NQ>amWsaj0elPCVdIL_kP`Ngf@=gw-H#{E*jv^Qf~3OnY@nk1;F3Wa`C!z zb99`;2b15_&7d74`PXb|SazfdVJUW1Gib{MepzmA%2IkfZXZ2$HUF+DwZiRjD{eH{ zb`P_jMf8UT{)9=T`pbFz>OA%77eD7Gi|W&RG5)QB)LM_)?&y(a7m)p2G4W9{o6jfk zs~!Bs)bSXfOVHreY~p9IuvWR2dD~=`i)rpfq1HC6x@i$r6)Rg|)gc;gt82t^1I87t zT1^x)MSojUH0{DN4^<-TWRRg^uP~7sJNXOs1sY7WX@e8s@e%U2^CdXK3Si04+8aG@ zJ73JJ^i6w$A81yeI`-mII>lE!iqjz}id#m7GUZW zaL?=fNw5y*a^Tn?9*yEb-U>Iq!Ph61W&pf@fX{(f|C^68W$>%7bkcr)Rll<}v{eg< z5tK?NizuqJ@0yjw0oePZ%>#SC77A$pNJHUj^@BTTN$tO43|3+>BZT^n$ zmG%pGZQx*D-tBV0vYQOW^s!U?NG^3ks$eB2MXiF zJ}*;1j~D%S0+ydZc$7^?-!=*{LrUFnSG)?qUEQh(AZ!p0t((LT2f0(ofoJ~5=3uqZ zlNo3r_j6!xp)e3it+HOi zM7=DNNNE5PiLxz#B^5$0%zvCeFTKyT6@m#S^b?xswUV%-bU+U>I!&&5YYd|xJe9i; zp81Z?p?3@yj*^rL+MQkpsvtUKHy&Fn68)u16Y3kR}DH!OUk;2$>V5w*m zAUvGp80M%kG}dG)KGL(B3p4y|w2+@OH5?v?jUiAGx0b?&xt0=WIc3g+u^(AWs1y_q zDscP5LLrRWFPOo3j9>CE)-zS1zqniIFtdH>zj!yM)qq-kC4K)9p(w4|9=q42pasQx zJFGe(99wsuZ8${*+aaVh*6Z-#rIy$2MMcC?JhOXw+k_Q4U^|!ZMPGkX=&SaN)6e$^ zCyl99F6;+)OD?zFhebkM1><*!(_rIz?n$kJFTEnXoSyA*xExLiT?3vlRzslWM7N62 z``;8^?dlZ-oju&(N;?J``JJ#`Oq+b!;ghNICt-*#^P5|yTmLFF6Z-aN!oz&}gvkyM z>tDAkszHbACmP?SOTQ2X2&XUZqsv_8#Ry!sYhDKyPc$9^T(*Geq(H}hk9&woC**N@ zop#CN1Z6!}!YeK>&AY&W4)0M;x4Ii?yrN_fRxRi*%ulh?gEv(!$>VZ(v?2=%0Xysw z&hQdlCW~NyADxb9V5qK4rxfO;Fu|08fp9{n#n{gA*$HRkyj z8w!dX68a(aDjlyT(M{FORc{pc^|KVhdathNqH*elzf^faxZaN*46D|yc$tEiQc>&$ z@Z+;xs%ylqhB~~XQtzO&4gq#WiG|q2JrQhMs~ZfH24E_&EYg8@`c~IAs!EIRa zh|UN{o-$uT?|4XelQkt;F9rq}M`1z-v)&;XYC2R1n9v=3LKoE;kxJI1fEBJ;)o3f^ zr*)>vDUIPsRH~ecSK@ew>rb>noX!k5vWY8$mGi7-m|djLrPFrl%8F6~c6(%x57RoY zGm(2J3d0?D9&}JwnSnb$H@HAUef*m`YdW&=IPETWguE^m3l-CSuZfchY?XB*Xx?Gn zqznkgIsO)Zs3qJQRpEgDi0(7e0uw*f&44+7G8Dq`nLKt`{EdvG{g3Ky5mVgp_AmB4hs?Y^Z2$4J_2C_#{_< zn@tt!!an+va`kDAS3gjfas_G_g6$WI7nNU)+E(r~tt24Fbm!A8qx63>Pr!Sd)*wr# z{DaxWcj~oPePx|9sZUM8=3q2XuTAV}q;@cDv-73nkwL+_aD8A*NIe77lUp!BC!r-Z zK7iNR7|!{JNVP+xLk3rh!B%y<>1p*7lHe?jtaNtKflU!^8kS|Rj<<^y7{ zVn!Y7)M#DUTpMm`m4>Q4M8iP&8{RCmyoWsi;w9D`nAvDH&^JHjHW8R}KtBgQIiNpA z`%l&%=(8lljbnp_ROQF&4ePb6P5hf8l~phBdy-sMs*$CUBU6mRuAa<5RtxTa5@O#U z2MKv)SVC#Z=bLFuSid(NJYYzpp!ZSmNMP`EloZjc=IJZPq&3QoS(Zyu+*sI9gA3aE zlzw|KWp?atmlLm_?H;e}Q=MMHEw>EJp|=b)T+=so8We}aVV99oJM4ReFX1r-W48TI zRhhw0k97*<6{Lb6+SY1#Eu96r?d%k}?M}@n(K&5~yR-x)XQ^R!I&5Q}z$KyAbgTZg zi1R2E@5e2KxmP1>zS;1onn?-u{)WUk?-*?}z=m4RN&~kT_GnIf(CvoL4Jp3Z6-DuR zCCsOMT7Ja)Ja&3tAN}nFq+O;FV7$Zd0Ns3tVfbX)x!HKT4vt-B*3*__hK?(9BH{UX zZ5f4GF?|8NCz|@xK4XlB2pl?QutCvS<7l|Mz*GdGvBsh7$q4(NHy6QEV~vy9YZ(k0 zXB-`y)5mON-A)>)0|SM^A;ILUdMk=G9*Nbd)fc=mZ`B%J5?xzx!Y>Q}kIj|~yN+SD zzjd5Z?w`3{Q^Ll8dKn){jzDO=xfpWC8}r6xXncQqk>GBB4kKS%&ax%M^O| zc;i#*&+F(F6OB4uTGOyE+T)Sz4zz8mAPX=GkXf!Z4bV0J9X@!2vLH?E_9nQmOG zhsEm+(%G`B3e~&WUl$2$?Lk$|7#$2%68R>+x$(^bHSg!1Lsx7tNJjc}gVAJy1=XfG z@W&QoH4LvtS=>FDv%#e8hH3QT8dD1o-+YO6kuBQ|uh45E#=-nKc=gHZaLui=r54o| zv9=?&6@FCPj@U-{9F73Fkt=~&PZ~zRB%T+_wCRbdi_|q($-{r$aNh&inYDkHp&XW8 zXTk;-YOumveRV~!wcRMvo7;?k(8H2FhW>D4hp{?eQrG%0X=jUB6^K6HVH_~95KZku z?3ik83}OcdT3VGG^s9}=MiN_kwg86@8}wYW3`cH28?kl26@l)~)x$o&WgzP}8P2*I zgV@u@6pD2@hOpNTOOEVD8oQjZCkJ~8LT$}~NU%<7MmNBESAxwgO~C-{`>Umh^}`rJ zzE6J^ES+j{U?-We_qrl;InPKWADhcy>qfmHwOw`h?XWfAwC$RM3j%1d0}HU{vaR+X z*mT8H1~cqAVlcrKzcmy=^-(?6S-P#2GZbJ1(FBK)2Ric{$KXeKqTKKTZnvt@{G^ZGqcNN%X^9Xu>+&oH1 zu@B{{xV;!_cwFv8uNtn>oF=_{r}^`X09|E1-1&p~R@gPx{NNLNEPp8ZrzqOPua#QV zUuM%c$}Mw?;JG?u4P9ureC>sM&$i%&Ox$`7#Y)Fpm1r))lu)pF5UG(c%JcdZI8tsY z;=GxG41K9z?nhfPojt~@nI=XHP`iC($aVXaFh%$^Lm4ag=Wa;jVt3jx^TuFOabpz~ zYas;!=Cer+S$Z(n{ByDhemULhg)0UMR{GL(tG(C13bpn*)(6v8(x(<9v7rl#J8CNz zRt36-9@G}H=2$fiKC8pp!8G_GI&!h~vGRY43Twg(+-c3U-A*U=lpw>rG{U4D_b#E$aA zTV6CK-qkt9Jmv=JI%Lg`^K9SiISj(dH~J!2xrWO*3x8EnS2rGi1kl{pJT4fzTPnhg7M~=p66)&e z!cA?>p;oEld<@hup={PRP4AI+wNR?yj_Lu$OI6H`7qLxYIzP$P;J zwEAlCWw(qvR@SkD$FJH15GjVlc zhRPU@>4;i1dioXH9X%l2@kVxpRSv@^Z`pk7?m_XfY_I#cYS6X!DSpF z%=hqWO?EjwcD32%z<~mvq^BQ)}$R9 znCld+wCa1?XK7Eapq)ZjgTR@3V~Gwn+@Dl$_15V9<9KJM-Zja*_4+jr7%g@$R(KL&jk^gqUDKRkakw8tX!ZV&6>G zU1{urX$@(Ld@gJ=MlkrxJ@sawnC?GYJedgrnXelr{-8_or~(duZ)2A`7Cr1;VJv{E zlYB0$_=_!<-sBVqs^;gc%sJa_h1BL2*QR$x?0uMQD%j{Ov+RKtGvBA3=ZWRrb~eHh!O$-(ifOaPvjq{dT5IHf*w8&iI;TUB@cFlMJwzsG#M%GcRc+o3N#V;V{JTrn0Bn} z&6RL?mxgyYZ_{D3#OE`&F%!xKL_2{cv&Fu2bc1Lxz><(S3qA>n7o~TjmxsllssFnm z+Sw|u*XmN^t`~o&Jq@~5+@M!O%@r>Y$SWt60=%|f2nvTZtJg^&4 zr&}%V!r}^EEgWkNEHLY1)Uc70crPvQ6faGekxSsUt)ek`)lv7jxHo-u>cM6SkHqfl zRggTE4VcTmQR`SzA)a5w`)I+F;+PDG=3p(l)cSy8_a<&ouGuL*m{YhX;`yoyW1 z^e-#0#J%)caR!&_TqxlY2Ato=G?~8lytq3jUEjy+OSaaLxJ82*8^vjC@z0UzuZm_U zUn*9xyzdGSk0Iletq>(pcu*`+OXZ{r=DjMG(mUP|k7feK`~v|ywfoy*IM}KIb`e_j zE|X~rlo4@jscci)>=lv#eCi$(Hw15<;(H*!FY#`i@r=NG6<;`4+)miwiEnM93HUy7B4-XNT;?dH?NUYP76Y*E{#|+jGG1%GOikn1(N zg(enegg9e$daj~&lXDdfe*%i4n-5L5=1&>)Pv?&ZsDQh)(5?enp;v={zWDjx$2-Lk z)BOJ5BY7ljp*~|nELg7<4=Uk3|-c5 zbrhMq|7v#(S@~b`4Iy&)g3!19*R*9P{LW?DiJ0qCeT<>Z@bd!%&Jhtj^uRTlq2pJ+ z-5L_!JFq`#1G?<0IM9Z{aiC5^<3RUb9S8bxSR80IlyOD9An{J2$?JS7{^}aCAeHVzb; z)E4yIG4Nrm9 zq?;Kr%27yNq_XJ@=J@j~@0GeSk5iQ$s}R11F?PK(2tp`_LOV*(t5c-HJ~14&ui zc1`-To7=4U`PtR&BGJ^+uTRsug&4*|>ozrW8G3$wW6SVA8#dc=eO^p)xTs@j?#35d zW=1~O)H1v|ytZX%JbxpnDWR49vP1Q2YzdX6b(Pgs>%*o9WI_F-D(An`)WVqzz2*T=DT880)uNIOPI;&pW)iPZA`r1F#GUOf@t3ge_}ZZww9CN?Sw1xo^4Jq8h!e4ZToc zds~R>?beWv;m_VqY>nux_Lf<#D#T>Vr{a-e+;ZFPw@)77W0b`}TMwpitP;TU#$JCu?1^EKfkMVnrWbZ}8LMnj^05ca zP{2&mDYW&|R)U9TAAf{z!^!O99YaGte zU{eYyrjAsS#lw0RSqC4w$r$Kf>vqxHbh3H8z|J|`;U#HAgEw~D+d*S0N#V+>VV6O& zT%~e(S#@4z^_bGSis~xJ9zrgHoC!jTG-gVLtfJdmf8=slnL^rwJd4<2_bfyu1&BRI zRb>2EURGC8RaaI!rLCqtoXQlE4)f(x>K=?Bq@t%2!m^ z%4MZv#>=&36Xnvny4s4-lk3Xl^4jXjaO|6;OmG8np#l3<-D)oBHwY~t*NwN9)W{W+ z;?(8LUf(?{MNIEnvM845TnbxS_A>yPTJxp%qQ(7(>MnE@w zvSAoL=r`Gs#%o>;CVt6%04s{P1X}nQspg>OO*GA@ZM;TQSoKTJ7Q4Q5 z?AYel+KTe=buxQbA=H)*+lRDL zBK(c1te#ZHQ~_0MNVZKbpHw=f42lntY!@1}Y*JlyZJ9h%t{4XspC!5Q`C4)nT)mFu z!IHxyl|HC)zp@ijvX)mK70y;L-Aa`Go1gAEdsTAFmBe0go@RMQnJCX|+!!KM324dm>{L)*BY7z3CqDEQYhH#6Hb ze6vhxy_uG51~l8X`R$Lj=x(h=C*5$EXvqBl1`*T%R%Q&Aqm z*^d?o7_B_r(qHombEn0XXqD>VH`s^Ht7 zNC%JVlT~lefZxz%wWrtX4}y9Yqv4^SNP@WlQqGbT(9V)T+-^q;9>Ec7t`Rb4-!Xg8pbKa3S++}aVP8%R7YE|0AiU*52kaEMtKVO zy{aY$R6P(P2^bC)KRq^7yc2mU;-E)Kj(9y8BBO7RUc;F)@djN{v;x)+hDneHqT>Dgp zqG2$HQ>M(ZsD2p2Er_BDDr&$l2Xs^;Lj`v&;jTqILphj#m`{eIb9n(~9p)W?JlDbU zN!&KNayWNJ!Z7}F0#^VHWqdoh`d%TCHjUw4<%kzZzAXnD$8jaZ&&CSKqr_zRx+EbH z`UGuGdPh0;v)GC+iX!q{#Iivjnp_SlLA^Pv7)Df$x51!VZu{>sN0GVPSb9Oeu7sNw zau+kb;ETq%Nut{qa__dL%T#*@ec>VQY2s<|hM>LojCz+?#qvXuN1+sUQhJl{{cl82-jP$hx_w3 zs`lf%B$%789mxM`Zcc@thVXM>QEx5*ZWzMPx3(-8!aL}pp?r^oh-Ao|7d;9SxYs-c zRNp8rB=q$W{6<20!Ng-ydPwrwp?bJ@1?@kQ-{Fqgs^LL2G*wYx>Z{;qB`3Ei zRL211r*BN*_cUP#Bt6UaZTQ7)iZV#2dMg?&qSPa%Bek#vwc3g23k`*sqXuvZl% z=zOtYhjX2Te_A}?#5juNJ+>I6s)aQ0M@ZY#Qx^&k+atb{Kh}hs#0d4E>eT~yi2SPAn{JPpU{{`J5MA~;e<@)S zx#*dopc96EwI##40u-(`Unrr|3WQBqw;UIOw0?xplZ*7cHJ@Sl{j%oMm4J0Pc}zGg zZVVyNu+{w%G-ZkcyuU+8+;oF5xI4{T>0U3;dG`thd2rn;?ld_1VWJ4&6rM0GMA1U^ ziLGZcV8u+S5MDdsPJz$13d5tOqiDM7Xi71(fM3NU5m15@k3=`*pqG#U)pH~}JXS6B zGNpu?xssb6-67l{MD!f+V&#U>I2g2w5R5ZePwxgr;rp3ZubdR*&(xbJ{78@{fS65;3`A%W)a6;7I;5oosq!Wl<|f?xM5y6o4nQpYHiPVwZqFwsqM z*lEcLVY?$@Cc~@xm<)PQH6sG&SC}>z5W4Rh;R8a`&InYBtkxAx#}ln+T7VtLua~Ug z3u&@VJj+KSD^7aNCE(fTECuPEqPL?5h>Bb zuv9Sc$BL3%AkeInVY>J(p?3vDwSCNL&8s6?JrJ-8i>-Uzv4utDF!4O0{fCRC?ILch zs@TV17sOy75M((fjlN$dLT@u9jb9=D$BKp0M)8%X@(mTODjO=+G2rPcRmK!AbGC>R z2)*$w@h(?{FLW;r)0FPVOvJJnr?o1bmhKVjM7XNEm_!#I5Id$t_UXDG3r+k*uVjT1 z9etbQYC`4j#BxHL&WNsPfH%DO1xhx&emsk~G@WRco?dv~h85Z*&UTs^sV!+qRkc9Sj{zNJvdRo^K%v=vY&!_;S!(+!k)E4io5sEch;&D>(w&k;Oe&b?W?x3hSb*y%gitaapR|fcVf}rDieX^$Fmq$=uwx@GCdexwW9RyNdwLii2ROkz@ z+IttnH!jD0u=2LVWpu?M#|;9=yKOe$KXnw*4^tgIMneB%LOWPj=)8dDS2^|*H(vE7 z$+c4}#>y4)gvphVTH_cF{i%=!Gin@pj_EVyan-e@m6b4iC6=#m*EovVY$kXoI{GKe zHIpN47AG8Q6bqnnhf9VbwGJuUy6lcGGy4U#=uGn1iYan!^;9HNXVO|fz}X27AGFP+ zlP5V|GC#&rZL&iYBeu~r)n{PZK|5MCVJfd;)sHukp;(GcceEo+@+~tQi*0nxT*tt6 z@b&4W9Gdj8eG-A>_mf>9PqFoGo{bJ-Qnr%6;e^jlSznG0cAsJ?7ZNcvWYo=&W`f@n#+k?PjzR80uI15Pnh(<-3vFt1 zrI#wGO28zG7TGDdK9~c`?{*nb)7d4`<9EBXb{3ldE^|E@wNTK&WP%A%@mmp=^EMx^ zO^>_obiur5U1m6Wl+tys)mcn+GpX{f>*;8a)_gv^upuKlyC)xZw&yTUuB6;v_CFzJ z(h={wCOpC@2cdDVvnQQV;r={&KSswuS!GQzLg#HAIK7#;S&_ktcanO;qb`phn$BT^ zXhDXjAN_EGd!Wtb*W^i)N6Vth#EK6; zcnU>T zr$?@pZY6ZVZnukzI1ReKj!uJ_5^uw-IY77Ub$=kVqW$7Q_vyc)4M;naKKiNq$-iVk z`=48i*7T-gR8uhlm8JPp^s_Rh(RhK$JYX=F z^y^j!8E(?0&!9d>5UF&b^g)XXOae5!yR_S8;$A*O>IRh`xZ6iP4+Fg*&_1g4V@ya? zG`#to%##&w=ee%~>S8(v&6;d+n%$Dwl&Ry{4gRe0;41Gvp7k7nK zq^2S%D)Q$RFGc}II{sWOGDk;^lm|5%9N&wf^%DAHg|sAAf4*Q4o2rVc zVOh!QU&}k#1(V_hvt29d&||M)r$5(8Pb8QuJUT0|UT9V2*3A=J%Vy?jn#vcztll1hZayMiPH5#Z zsUf=AP*73WD`Q(1$B)KBLOKixH2kTw5kr&x1>E*eY&>t1gJp`(k+LCF#=J{2O ga%KeZT88@!?Dn^)35hklmDGn3J3;s5dluUM55ynMS^xk5 diff --git a/bin/bwip-js.js b/bin/bwip-js.js index 8a46c324..8a857b5e 100755 --- a/bin/bwip-js.js +++ b/bin/bwip-js.js @@ -6,210 +6,210 @@ var bwipjs = require('..'); var symdesc = require('../lib/symdesc'); function usage(exit) { - console.log( - "Usage: bwip-js symbol-name text [options...] file.{png,svg}\n" + - " bwip-js --bcid=symbol-name --text=text [options...] file.{png,svg}\n" + - "\n" + - "Examples:\n" + - " bwip-js code128 012345678 includetext textcolor=ff0000 my-code128.png\n" + + console.log( + "Usage: bwip-js symbol-name text [options...] file.{png,svg}\n" + + " bwip-js --bcid=symbol-name --text=text [options...] file.{png,svg}\n" + + "\n" + + "Examples:\n" + + " bwip-js code128 012345678 includetext textcolor=ff0000 my-code128.png\n" + " bwip-js qrcode 'https://bwip-js.metafloor.com' qrcode.svg\n" + - "\n" + - "'bwip-js --help' for more information.\n" + - "'bwip-js --symbols' for a list of supported barcode symbols.\n" + - "'bwip-js --version' for version information.\n" + + "\n" + + "'bwip-js --help' for more information.\n" + + "'bwip-js --symbols' for a list of supported barcode symbols.\n" + + "'bwip-js --version' for version information.\n" + ""); if (exit) { process.exit(1); } } function help() { - usage(); - for (var i = 0; i < optlist.length; i++) { - console.log(' --' + optlist[i].name) - console.log(indent(optlist[i].desc)); - } - console.log( - "\nThe double-dashes '--' are not required before each option.\n" + - "For example, you can specify '--includetext' or 'includetext'."); + usage(); + for (var i = 0; i < optlist.length; i++) { + console.log(' --' + optlist[i].name) + console.log(indent(optlist[i].desc)); + } + console.log( + "\nThe double-dashes '--' are not required before each option.\n" + + "For example, you can specify '--includetext' or 'includetext'."); } // Indent the text 8 spaces function indent(text) { - return text.replace(/^/, ' ').replace(/\n/g, '\n '); + return text.replace(/^/, ' ').replace(/\n/g, '\n '); } // spec is one of: "font-name,y-mult,x-mult,path-to-font-file" -// "font-name,size-mult,path-to-font-file" -// "font-name,path-to-font-file" +// "font-name,size-mult,path-to-font-file" +// "font-name,path-to-font-file" function loadfont(spec) { - var vals = spec.split(','); - try { - if (vals.length == 4) { - bwipjs.loadFont(vals[0], +vals[1], +vals[2], fs.readFileSync(vals[3])); - } else if (vals.length == 3) { - bwipjs.loadFont(vals[0], +vals[1], fs.readFileSync(vals[2])); - } else if (vals.length == 2) { - bwipjs.loadFont(vals[0], fs.readFileSync(vals[1])); - } else { - console.log("Invalid --loadfont format."); - console.log("Try 'bwip-js --help' for more information."); - process.exit(1); - } - } catch(e) { - console.log('bwip-js: ' + e); - process.exit(1); - } + var vals = spec.split(','); + try { + if (vals.length == 4) { + bwipjs.loadFont(vals[0], +vals[1], +vals[2], fs.readFileSync(vals[3])); + } else if (vals.length == 3) { + bwipjs.loadFont(vals[0], +vals[1], fs.readFileSync(vals[2])); + } else if (vals.length == 2) { + bwipjs.loadFont(vals[0], fs.readFileSync(vals[1])); + } else { + console.log("Invalid --loadfont format."); + console.log("Try 'bwip-js --help' for more information."); + process.exit(1); + } + } catch(e) { + console.log('bwip-js: ' + e); + process.exit(1); + } } var optlist = [ - { name: 'help', type: 'boolean', - desc: 'Displays this help message.' }, - { name: 'version', type: 'boolean', - desc: 'Displays the bwip-js and BWIPP version strings.' }, - { name: 'symbols', type: 'boolean', - desc: 'Display a list of the supported barcode types.' }, - { name: 'loadfont', type: 'string', - desc: 'Loads a truetype/opentype font. Format of this option is one of:\n\n' + - ' --loadfont=font-name,y-mult,x-mult,path-to-font-file\n' + - ' --loadfont=font-name,size-mult,path-to-font-file\n' + - ' --loadfont=font-name,path-to-font-file\n\n' + - 'For example: --loadfont=Courier,100,120,c:\\windows\\fonts\\cour.ttf' }, + { name: 'help', type: 'boolean', + desc: 'Displays this help message.' }, + { name: 'version', type: 'boolean', + desc: 'Displays the bwip-js and BWIPP version strings.' }, + { name: 'symbols', type: 'boolean', + desc: 'Display a list of the supported barcode types.' }, + { name: 'loadfont', type: 'string', + desc: 'Loads a truetype/opentype font. Format of this option is one of:\n\n' + + ' --loadfont=font-name,y-mult,x-mult,path-to-font-file\n' + + ' --loadfont=font-name,size-mult,path-to-font-file\n' + + ' --loadfont=font-name,path-to-font-file\n\n' + + 'For example: --loadfont=Courier,100,120,c:\\windows\\fonts\\cour.ttf' }, - // bwipjs options - { name: 'bcid', type: 'string', - desc: 'Barcode symbol name/type. Required.' }, - { name: 'text', type: 'string', - desc: 'The text to encode. Required.\n' + - 'Use single quotes around the text to protect from the shell.' }, - { name: 'scaleX', type: 'int', - desc: 'The x-axis scaling factor. Must be an integer > 0. Default is 2.' }, - { name: 'scaleY', type: 'int', - desc: 'The y-axis scaling factor. Must be an integer > 0. Default is scaleX.' }, - { name: 'scale', type: 'int', - desc: 'Sets both the x-axis and y-axis scaling factors. Must be an integer > 0.' }, - { name: 'rotate', type: 'string', - desc: 'Rotates the image to one of the four orthogonal orientations.\n' + - 'A string value. Must be one of:\n' + - ' N : Normal orientation.\n' + - ' R : Rotated right 90 degrees.\n' + - ' L : Rotated left 90 degrees.\n' + - ' I : Inverted, rotated 180 degrees.' }, - { name: 'padding', type: 'int', - desc: 'Shorthand for setting paddingtop, paddingleft, paddingright, and paddingbottom.' }, - { name: 'paddingwidth', type: 'int', - desc: 'Shorthand for setting paddingleft and paddingright.' }, - { name: 'paddingheight', type: 'int', - desc: 'Shorthand for setting paddingtop and paddingbottom.' }, - { name: 'paddingtop', type: 'int', - desc: 'Sets the height of the padding area, in points, on the top of\n' + - 'the barcode image. Rotates and scales with the image.' }, - { name: 'paddingleft', type: 'int', - desc: 'Sets the width of the padding area, in points, on the left side\n' + - 'of the barcode image. Rotates and scales with the image.' }, - { name: 'paddingright', type: 'int', - desc: 'Sets the width of the padding area, in points, on the right side\n' + - 'of the barcode image. Rotates and scales with the image.' }, - { name: 'paddingbottom', type: 'int', - desc: 'Sets the height of the padding area, in points, on the bottom of\n' + - 'the barcode image. Rotates and scales with the image.' }, -// { name: 'monochrome', type: 'boolean', -// desc: 'Sets the human-readable text to render in monochrome.\n' -// 'Default is false which renders 256-level gray-scale anti-aliased text.' }, + // bwipjs options + { name: 'bcid', type: 'string', + desc: 'Barcode symbol name/type. Required.' }, + { name: 'text', type: 'string', + desc: 'The text to encode. Required.\n' + + 'Use single quotes around the text to protect from the shell.' }, + { name: 'scaleX', type: 'int', + desc: 'The x-axis scaling factor. Must be an integer > 0. Default is 2.' }, + { name: 'scaleY', type: 'int', + desc: 'The y-axis scaling factor. Must be an integer > 0. Default is scaleX.' }, + { name: 'scale', type: 'int', + desc: 'Sets both the x-axis and y-axis scaling factors. Must be an integer > 0.' }, + { name: 'rotate', type: 'string', + desc: 'Rotates the image to one of the four orthogonal orientations.\n' + + 'A string value. Must be one of:\n' + + ' N : Normal orientation.\n' + + ' R : Rotated right 90 degrees.\n' + + ' L : Rotated left 90 degrees.\n' + + ' I : Inverted, rotated 180 degrees.' }, + { name: 'padding', type: 'int', + desc: 'Shorthand for setting paddingtop, paddingleft, paddingright, and paddingbottom.' }, + { name: 'paddingwidth', type: 'int', + desc: 'Shorthand for setting paddingleft and paddingright.' }, + { name: 'paddingheight', type: 'int', + desc: 'Shorthand for setting paddingtop and paddingbottom.' }, + { name: 'paddingtop', type: 'int', + desc: 'Sets the height of the padding area, in points, on the top of\n' + + 'the barcode image. Rotates and scales with the image.' }, + { name: 'paddingleft', type: 'int', + desc: 'Sets the width of the padding area, in points, on the left side\n' + + 'of the barcode image. Rotates and scales with the image.' }, + { name: 'paddingright', type: 'int', + desc: 'Sets the width of the padding area, in points, on the right side\n' + + 'of the barcode image. Rotates and scales with the image.' }, + { name: 'paddingbottom', type: 'int', + desc: 'Sets the height of the padding area, in points, on the bottom of\n' + + 'the barcode image. Rotates and scales with the image.' }, +// { name: 'monochrome', type: 'boolean', +// desc: 'Sets the human-readable text to render in monochrome.\n' +// 'Default is false which renders 256-level gray-scale anti-aliased text.' }, - // bwipp options - { name: 'alttext', type: 'string', - desc: 'The human-readable text to use instead of the encoded text.' }, - { name: 'includecheck', type: 'boolean', - desc: 'Generate check digit(s) for symbologies where the use of check digits is\n' + - 'optional.' }, - { name: 'includecheckintext', type: 'boolean', - desc: 'Show the calculated check digit in the human readable text.' }, - { name: 'parse', type: 'boolean', - desc: 'In supporting barcode symbologies, when the parse option is specified,\n' + - 'any instances of ^NNN in the data field are replaced with their equivalent\n' + - 'ASCII value, useful for specifying unprintable characters.' }, - { name: 'parsefnc', type: 'boolean', - desc: 'In supporting barcode symbologies, when the parsefnc option is specified,\n' + - 'non-data function characters can be specified by escaped combinations such\n' + - 'as ^FNC1, ^FNC4 and ^SFT.' }, - { name: 'height', type: 'float', - desc: 'Height of longest bar, in millimetermillimeters.' }, - { name: 'width', type: 'float', - desc: 'Stretch the symbol to precisely this width, in millimeters.' }, - { name: 'inkspread', type: 'float', - desc: 'Amount by which to reduce the bar widths to compensate for inkspread,\n' + - 'in points.' }, - { name: 'inkspreadh', type: 'float', - desc: 'For matrix barcodes, the amount by which the reduce the width of dark\n' + - 'modules to compensate for inkspread, in points.\n\n' + - 'Note: inkspreadh is most useful for stacked-linear type barcodes such as\n' + - 'PDF417 and Codablock F.' }, - { name: 'inkspreadv', type: 'float', - desc: 'For matrix barcodes, the amount by which the reduce the height of dark\n' + - 'modules to compensate for inkspread, in points.' }, - { name: 'dotty', type: 'boolean', - desc: 'For matrix barcodes, render the modules as dots rather than squares.\n' + - 'The dot radius can be adjusted using the inkspread option.' }, - { name: 'includetext', type: 'boolean', - desc: 'Show human readable text for data in symbol.' }, - { name: 'textfont', type: 'string', - desc: 'The font name to use for the text.' }, - { name: 'textsize', type: 'int', - desc: 'The font size of the text, in points.' }, - { name: 'textgaps', type: 'int', - desc: 'The inter-character spacing of the text.' }, - { name: 'textxalign', type: 'string', - desc: 'Specifies where to horizontally position the text.' }, - { name: 'textyalign', type: 'string', - desc: 'Specifies where to vertically position the text.' }, - { name: 'textxoffset', type: 'int', - desc: 'The horizontal position of the text, in points, relative to the\n' + - 'default position.' }, - { name: 'textyoffset', type: 'int', - desc: 'The vertical position of the text, in points, relative to the\n' + - 'default position.' }, - { name: 'showborder', type: 'boolean', - desc: 'Display a border around the symbol.' }, - { name: 'borderwidth', type: 'int', - desc: 'Width of a border, in points.' }, - { name: 'borderleft', type: 'int', - desc: 'Left margin gap of the border, in points.' }, - { name: 'borderright', type: 'int', - desc: 'Right margin gap of the border, in points.' }, - { name: 'bordertop', type: 'int', - desc: 'Top margin gap of the border, in points.' }, - { name: 'borderbottom', type: 'int', - desc: 'Bottom margin gap of the border, in points.' }, - { name: 'barcolor', type: 'string', - desc: 'Color of the bars, either as a hex RRGGBB value or a hex CCMMYYKK value.' }, - { name: 'backgroundcolor', type: 'string', - desc: 'Color of a the image background, either as a hex RRGGBB value or a\n' + - 'hex CCMMYYKK value. The default is a transparent background.' }, - { name: 'bordercolor', type: 'string', - desc: 'Color of the border, either as a hex RRGGBB value or a hex CCMMYYKK value.\n' + - 'You must specify --showborder for this setting to take effect.' }, - { name: 'textcolor', type: 'string', - desc: 'Color of the text, either as a hex RRGGBB value or a hex CCMMYYKK value.' }, - { name: 'addontextfont', type: 'string', - desc: 'The font name to use for the add-on text in ISBN, ISMN, and ISSN barcodes.' }, - { name: 'addontextsize', type: 'int', - desc: 'The font size of the add on text, in points.' }, - { name: 'addontextxoffset', type: 'int', - desc: 'Overrides the default positioning for the add on text.' }, - { name: 'addontextyoffset', type: 'int', - desc: 'Overrides the default positioning for the add on text.' }, - { name: 'guardwhitespace', type: 'boolean', - desc: 'Display white space guards.' }, - { name: 'guardwidth', type: 'int', - desc: 'Width of white space guards, in points.' }, - { name: 'guardheight', type: 'int', - desc: 'Height of white space guards, in points.' }, - { name: 'guardleftpos', type: 'int', - desc: 'Amount of white space to guard to left of the symbol, in points.' }, - { name: 'guardrightpos', type: 'int', - desc: 'Amount of white space to guard to right of the symbol, in points.' }, - { name: 'guardleftypos', type: 'int', - desc: 'Vertical position of the guard symbols on the left, in points.' }, - { name: 'guardrightypos', type: 'int', - desc: 'Vertical position of the guard symbols on the right, in points.' }, + // bwipp options + { name: 'alttext', type: 'string', + desc: 'The human-readable text to use instead of the encoded text.' }, + { name: 'includecheck', type: 'boolean', + desc: 'Generate check digit(s) for symbologies where the use of check digits is\n' + + 'optional.' }, + { name: 'includecheckintext', type: 'boolean', + desc: 'Show the calculated check digit in the human readable text.' }, + { name: 'parse', type: 'boolean', + desc: 'In supporting barcode symbologies, when the parse option is specified,\n' + + 'any instances of ^NNN in the data field are replaced with their equivalent\n' + + 'ASCII value, useful for specifying unprintable characters.' }, + { name: 'parsefnc', type: 'boolean', + desc: 'In supporting barcode symbologies, when the parsefnc option is specified,\n' + + 'non-data function characters can be specified by escaped combinations such\n' + + 'as ^FNC1, ^FNC4 and ^SFT.' }, + { name: 'height', type: 'float', + desc: 'Height of longest bar, in millimetermillimeters.' }, + { name: 'width', type: 'float', + desc: 'Stretch the symbol to precisely this width, in millimeters.' }, + { name: 'inkspread', type: 'float', + desc: 'Amount by which to reduce the bar widths to compensate for inkspread,\n' + + 'in points.' }, + { name: 'inkspreadh', type: 'float', + desc: 'For matrix barcodes, the amount by which the reduce the width of dark\n' + + 'modules to compensate for inkspread, in points.\n\n' + + 'Note: inkspreadh is most useful for stacked-linear type barcodes such as\n' + + 'PDF417 and Codablock F.' }, + { name: 'inkspreadv', type: 'float', + desc: 'For matrix barcodes, the amount by which the reduce the height of dark\n' + + 'modules to compensate for inkspread, in points.' }, + { name: 'dotty', type: 'boolean', + desc: 'For matrix barcodes, render the modules as dots rather than squares.\n' + + 'The dot radius can be adjusted using the inkspread option.' }, + { name: 'includetext', type: 'boolean', + desc: 'Show human readable text for data in symbol.' }, + { name: 'textfont', type: 'string', + desc: 'The font name to use for the text.' }, + { name: 'textsize', type: 'int', + desc: 'The font size of the text, in points.' }, + { name: 'textgaps', type: 'int', + desc: 'The inter-character spacing of the text.' }, + { name: 'textxalign', type: 'string', + desc: 'Specifies where to horizontally position the text.' }, + { name: 'textyalign', type: 'string', + desc: 'Specifies where to vertically position the text.' }, + { name: 'textxoffset', type: 'int', + desc: 'The horizontal position of the text, in points, relative to the\n' + + 'default position.' }, + { name: 'textyoffset', type: 'int', + desc: 'The vertical position of the text, in points, relative to the\n' + + 'default position.' }, + { name: 'showborder', type: 'boolean', + desc: 'Display a border around the symbol.' }, + { name: 'borderwidth', type: 'int', + desc: 'Width of a border, in points.' }, + { name: 'borderleft', type: 'int', + desc: 'Left margin gap of the border, in points.' }, + { name: 'borderright', type: 'int', + desc: 'Right margin gap of the border, in points.' }, + { name: 'bordertop', type: 'int', + desc: 'Top margin gap of the border, in points.' }, + { name: 'borderbottom', type: 'int', + desc: 'Bottom margin gap of the border, in points.' }, + { name: 'barcolor', type: 'string', + desc: 'Color of the bars, either as a hex RRGGBB value or a hex CCMMYYKK value.' }, + { name: 'backgroundcolor', type: 'string', + desc: 'Color of a the image background, either as a hex RRGGBB value or a\n' + + 'hex CCMMYYKK value. The default is a transparent background.' }, + { name: 'bordercolor', type: 'string', + desc: 'Color of the border, either as a hex RRGGBB value or a hex CCMMYYKK value.\n' + + 'You must specify --showborder for this setting to take effect.' }, + { name: 'textcolor', type: 'string', + desc: 'Color of the text, either as a hex RRGGBB value or a hex CCMMYYKK value.' }, + { name: 'addontextfont', type: 'string', + desc: 'The font name to use for the add-on text in ISBN, ISMN, and ISSN barcodes.' }, + { name: 'addontextsize', type: 'int', + desc: 'The font size of the add on text, in points.' }, + { name: 'addontextxoffset', type: 'int', + desc: 'Overrides the default positioning for the add on text.' }, + { name: 'addontextyoffset', type: 'int', + desc: 'Overrides the default positioning for the add on text.' }, + { name: 'guardwhitespace', type: 'boolean', + desc: 'Display white space guards.' }, + { name: 'guardwidth', type: 'int', + desc: 'Width of white space guards, in points.' }, + { name: 'guardheight', type: 'int', + desc: 'Height of white space guards, in points.' }, + { name: 'guardleftpos', type: 'int', + desc: 'Amount of white space to guard to left of the symbol, in points.' }, + { name: 'guardrightpos', type: 'int', + desc: 'Amount of white space to guard to right of the symbol, in points.' }, + { name: 'guardleftypos', type: 'int', + desc: 'Vertical position of the guard symbols on the left, in points.' }, + { name: 'guardrightypos', type: 'int', + desc: 'Vertical position of the guard symbols on the right, in points.' }, ]; var optmap = optlist.reduce(function(map, elt) { map[elt.name] = elt; return map; }, {}); var opts = {}; @@ -233,44 +233,44 @@ if (argv.length > 4 && !/^(--|\w+=)/.test(argv[argv.length-1])) { } } for (var i = 2, l = argv.length; i < l; i++) { - var a = argv[i]; - if (/^--/.test(a)) { - a = a.substr(2); - } - var eq = a.indexOf('='); - if (eq > 0) { - var name = a.substr(0, eq); - var val = a.substr(eq+1); - if (name == 'loadfont') { - loadfont(val); - } else { - opts[name] = val; - } - } else if (optmap[a]) { - if (optmap[a].type != 'boolean') { - console.log('--' + a + ' : A value is expected.'); - help(); - process.exit(1); - } - opts[a] = true; - } else { + var a = argv[i]; + if (/^--/.test(a)) { + a = a.substr(2); + } + var eq = a.indexOf('='); + if (eq > 0) { + var name = a.substr(0, eq); + var val = a.substr(eq+1); + if (name == 'loadfont') { + loadfont(val); + } else { + opts[name] = val; + } + } else if (optmap[a]) { + if (optmap[a].type != 'boolean') { + console.log('--' + a + ' : A value is expected.'); + help(); + process.exit(1); + } opts[a] = true; - } + } else { + opts[a] = true; + } } if (opts.help) { - help(); + help(); } else if (opts.symbols) { var arr = []; - for (var sym in symdesc) { - arr.push(sym + ' : ' + symdesc[sym].desc); - } + for (var sym in symdesc) { + arr.push(sym + ' : ' + symdesc[sym].desc); + } arr.sort(); for (var i = 0; i < arr.length; i++) { console.log(' ' + arr[i]); } } else if (opts.version && !opts.bcid) { - console.log('bwip-js: ' + bwipjs.BWIPJS_VERSION + '\nBWIPP: ' + bwipjs.BWIPP_VERSION); + console.log('bwip-js: ' + bwipjs.BWIPJS_VERSION + '\nBWIPP: ' + bwipjs.BWIPP_VERSION); } else { if (!opts.bcid) { console.log('bwip-js: missing bcid'); diff --git a/demo.html b/demo.html index 374f09fb..8def1a10 100644 --- a/demo.html +++ b/demo.html @@ -11,159 +11,159 @@
- -
Barcode Type: -
Bar Text: -
Alt Text: -
Options: -
-
-
- Save As PNG -    - Save As JPEG -    - Goto URL -    -
-
+ +
Barcode Type: +
Bar Text: +
Alt Text: +
Options: +
+
+
+ Save As PNG +    + Save As JPEG +    + Goto URL +    +
+
- +
Render As: -
Scale X,Y: - - -
Image Rotation: - - - - -
-
+
Scale X,Y: + + +
Image Rotation: + + + + +
+

diff --git a/dist/bwip-js-gen.d.ts b/dist/bwip-js-gen.d.ts index d5643d25..b035ef75 100644 --- a/dist/bwip-js-gen.d.ts +++ b/dist/bwip-js-gen.d.ts @@ -1,4 +1,4 @@ -// Type definitions for bwip-js 4.2.0 (2024-01-02) +// Type definitions for bwip-js 4.3.0 (2024-03-12) // // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT // @@ -135,7 +135,7 @@ declare namespace BwipJs { ): | Array<{ bbs: number[]; bhs: number[]; sbs: number[] }> | Array<{ pixs: number[]; pixx: number; pixy: number; height: number; width: number }>; - + export const BWIPP_VERSION: string; export const BWIPJS_VERSION: string; diff --git a/dist/bwip-js-gen.mjs b/dist/bwip-js-gen.mjs index ba82d0c1..73ae24e1 100644 --- a/dist/bwip-js-gen.mjs +++ b/dist/bwip-js-gen.mjs @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -33,7 +33,7 @@ import { bwipp_auspost,bwipp_azteccode,bwipp_azteccodecompact,bwipp_aztecrune,bwipp_bc412,bwipp_channelcode,bwipp_codablockf,bwipp_code11,bwipp_code128,bwipp_code16k,bwipp_code2of5,bwipp_code32,bwipp_code39,bwipp_code39ext,bwipp_code49,bwipp_code93,bwipp_code93ext,bwipp_codeone,bwipp_coop2of5,bwipp_daft,bwipp_databarexpanded,bwipp_databarexpandedcomposite,bwipp_databarexpandedstacked,bwipp_databarexpandedstackedcomposite,bwipp_databarlimited,bwipp_databarlimitedcomposite,bwipp_databaromni,bwipp_databaromnicomposite,bwipp_databarstacked,bwipp_databarstackedcomposite,bwipp_databarstackedomni,bwipp_databarstackedomnicomposite,bwipp_databartruncated,bwipp_databartruncatedcomposite,bwipp_datalogic2of5,bwipp_datamatrix,bwipp_datamatrixrectangular,bwipp_datamatrixrectangularextension,bwipp_dotcode,bwipp_ean13,bwipp_ean13composite,bwipp_ean14,bwipp_ean2,bwipp_ean5,bwipp_ean8,bwipp_ean8composite,bwipp_flattermarken,bwipp_gs1_128,bwipp_gs1_128composite,bwipp_gs1_cc,bwipp_gs1datamatrix,bwipp_gs1datamatrixrectangular,bwipp_gs1dldatamatrix,bwipp_gs1dlqrcode,bwipp_gs1dotcode,bwipp_gs1northamericancoupon,bwipp_gs1qrcode,bwipp_hanxin,bwipp_hibcazteccode,bwipp_hibccodablockf,bwipp_hibccode128,bwipp_hibccode39,bwipp_hibcdatamatrix,bwipp_hibcdatamatrixrectangular,bwipp_hibcmicropdf417,bwipp_hibcpdf417,bwipp_hibcqrcode,bwipp_iata2of5,bwipp_identcode,bwipp_industrial2of5,bwipp_interleaved2of5,bwipp_isbn,bwipp_ismn,bwipp_issn,bwipp_itf14,bwipp_jabcode,bwipp_japanpost,bwipp_kix,bwipp_leitcode,bwipp_mailmark,bwipp_mands,bwipp_matrix2of5,bwipp_maxicode,bwipp_micropdf417,bwipp_microqrcode,bwipp_msi,bwipp_onecode,bwipp_pdf417,bwipp_pdf417compact,bwipp_pharmacode,bwipp_pharmacode2,bwipp_planet,bwipp_plessey,bwipp_posicode,bwipp_postnet,bwipp_pzn,bwipp_qrcode,bwipp_rationalizedCodabar,bwipp_raw,bwipp_rectangularmicroqrcode,bwipp_royalmail,bwipp_sscc18,bwipp_swissqrcode,bwipp_symbol,bwipp_telepen,bwipp_telepennumeric,bwipp_ultracode,bwipp_upca,bwipp_upcacomposite,bwipp_upce,bwipp_upcecomposite,bwipp_lookup,bwipp_encode,BWIPP_VERSION } from './bwipp.mjs'; // exports.js -const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; +const BWIPJS_VERSION = '4.3.0 (2024-03-12)'; // bwipjs.toSVG(options) @@ -47,7 +47,7 @@ const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -57,18 +57,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; - - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; + + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -96,34 +96,34 @@ function FixupOptions(opts) { } } - return opts; + return opts; - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -139,56 +139,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; - - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); - - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } - - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } - - // Scale the image - bw.scale(scaleX, scaleY); - - // Call into the BWIPP cross-compiled code and render the image. + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; + + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); + + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } + + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } + + // Scale the image + bw.scale(scaleX, scaleY); + + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -200,48 +200,48 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } // file : bwipjs.js // @@ -253,141 +253,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface - - this.reset(); - - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface + + this.reset(); + + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -398,24 +398,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -424,452 +424,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; - - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + var minx = this.minx; + var maxy = this.maxy; + + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -889,74 +889,74 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); - - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); + + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; return BWIPJS; -})(); // BWIPJS closure +})(); // BWIPJS closure // drawing-builtin.js // // The aliased (except the fonts) graphics used by drawing-canvas.js and @@ -967,21 +967,21 @@ return BWIPJS; // For the methods that take a color `rgb` parameter, the value is always a // string with format RRGGBB. function DrawingBuiltin() { - var floor = Math.floor; + var floor = Math.floor; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map var gs_xyclip; // clip region map (similar to xymap) - return { + return { // setopts() is called after the options are fixed-up/normalized, // but before calling into BWIPP. // This method allows omitting the options in the constructor call. @@ -990,243 +990,243 @@ function DrawingBuiltin() { opts = options; }, - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { // swissqrcode requires clipping and drawing that are not scaled to the // the barcode module size. if (opts.bcid == 'swissqrcode') { return [ sx, sy ]; } else { - return [ (sx|0)||1, (sy|0)||1 ]; - } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; + return [ (sx|0)||1, (sy|0)||1 ]; + } + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } + } + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; + + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } + + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; + } + + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; + }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half + } else { + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; + } + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -1251,196 +1251,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -1453,18 +1453,18 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } + } - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } // drawing-svg.js // @@ -1488,7 +1488,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -1655,8 +1655,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -1665,23 +1665,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += 'M' + transform(pts[0][0], pts[0][1]); + for (var i = 1, n = pts.length; i < n; i++) { + var p = pts[i]; + path += 'L' + transform(p[0], p[1]); + } + path += 'Z'; + } + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -1734,10 +1734,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + @@ -1937,7 +1935,7 @@ function LoadFont() { // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -1966,26 +1964,26 @@ function LoadFont() { var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -1994,11 +1992,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -2034,7 +2032,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -2042,9 +2040,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -2125,7 +2123,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -2148,7 +2146,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -2159,7 +2157,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -2204,13 +2202,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -2221,9 +2219,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -2232,7 +2230,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -2270,7 +2268,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -2314,14 +2312,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -2330,7 +2328,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -2352,22 +2350,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -2380,7 +2378,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -2429,10 +2427,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -2444,14 +2442,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -2459,22 +2457,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -2536,8 +2534,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -2563,7 +2561,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -2572,13 +2570,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -2630,8 +2628,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -2640,16 +2638,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -2673,23 +2671,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -2708,12 +2706,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -2765,11 +2763,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -2828,7 +2826,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -2839,8 +2837,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -2863,7 +2861,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -2878,8 +2876,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -2910,7 +2908,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -2921,7 +2919,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -2963,7 +2961,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -2972,7 +2970,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -3007,7 +3005,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -3091,7 +3089,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -3120,18 +3118,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -3141,15 +3139,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -3163,16 +3161,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -3184,27 +3182,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -3212,11 +3210,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -3224,21 +3222,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -3285,11 +3283,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -3309,7 +3307,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -3340,18 +3338,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -3386,55 +3384,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -3467,9 +3465,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -3524,8 +3522,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -3567,9 +3565,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -3579,7 +3577,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -3589,42 +3587,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -3632,48 +3630,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -3683,14 +3681,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -3699,7 +3697,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -3710,7 +3708,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -3719,7 +3717,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -3732,107 +3730,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/dist/bwip-js-min.js b/dist/bwip-js-min.js index b61a5b4d..7bda3abb 100644 --- a/dist/bwip-js-min.js +++ b/dist/bwip-js-min.js @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -37,10 +37,10 @@ module.exports = factory(); } else { root.bwipjs = factory(); - } + } }(typeof self !== 'undefined' ? self : this, function () { -var $$=null;var $j=0;var $k=[];var $_={};function $a(a){if(!arguments.length){for(var i=$j-1;i>=0&&$k[i]!==Infinity;i--);if(i<0){throw new Error("array-marker-not-found")}a=$k.splice(i+1,$j-1-i);$j=i}else if(!(a instanceof Array)){a=new Array(+arguments[0]);for(var i=0,l=a.length;i=0&&$k[mark]!==Infinity;mark-=2){if($k[mark-1]===Infinity){throw new Error("dict-malformed-stack")}}if(mark<0){throw new Error("dict-marker-not-found")}var d=new Map;for(var i=mark+1;i<$j;i+=2){var k=$k[i];var t=typeof k;if(t=="number"||t=="string"){d.set(k,$k[i+1])}else if(k instanceof Uint8Array){d.set($z(k),$k[i+1])}else{throw new Error("dict-not-a-valid-key("+k+")")}}$j=mark;return d}function $s(v){var t=typeof v;if(t==="number"){return new Uint8Array(v)}if(t!=="string"){v=""+v}var s=new Uint8Array(v.length);for(var i=0;i\s*$/.exec(s);if(!m){throw new Error("cvx: not a hex string literal")}var h=m[1];var l=h.length>>1;var u=new Uint8Array(l);for(var i=0,j=0;i=0;i--){d[o+i]=s[i]}}}else if(d instanceof Array){var darr=d.b;var doff=o+d.o;var sarr=s.b;var soff=s.o;for(var i=0,l=s.length;i0&&$k[--$j]!==Infinity);}function $m(){for(var i=$j-1;i>=0&&$k[i]!==Infinity;i--);return $j-i-1}function $q(a){for(var i=0,l=a.length,b=a.b,o=a.o;ib}function $ge(a,b){if(a instanceof Uint8Array){a=$z(a)}if(b instanceof Uint8Array){b=$z(b)}return a>=b}function $an(a,b){return typeof a==="boolean"?a&&b:a&b}function $or(a,b){return typeof a==="boolean"?a||b:a|b}function $xo(a,b){return typeof a==="boolean"?!a&&b||a&&!b:a^b}function $nt(a){return typeof a=="boolean"?!a:~a}var $f=function(fa){return function(v){return Number.isInteger(v)?v:(fa[0]=v,fa[0])}}(new Float32Array(1));function bwipp_raiseerror(){var info=$k[--$j];var name=$k[--$j];throw new Error($z(name)+": "+$z(info))}function bwipp_processoptions(){var dict=$k[--$j];var opts=$k[$j-1];var map=opts instanceof Map;for(var id in dict){var val;if(map){if(!opts.has(id)){continue}val=opts.get(id)}else{if(!opts.hasOwnProperty(id)){continue}val=opts[id]}var def=dict[id];var typ=typeof def;if(def==null||typ=="number"){if(!isFinite(+val)){throw new Error("bwipp.invalidOptionType: "+id+": not a realtype: "+val)}if(typeof val=="string"){val=+val;map?opts.set(id,val):opts[id]=val}}else if(typ=="boolean"){if(val!==true&&val!==false){if(val==null||(val|0)===val){val=!!val}else if(val=="true"){val=true}else if(val=="false"){val=false}else{throw new Error("bwipp.invalidOptionType: "+id+": not a booleantype: "+val)}map?opts.set(id,val):opts[id]=val}}else if(typ=="string"||def instanceof Uint8Array){if(typeof val=="number"){val=""+val;map?opts.set(id,val):opts[id]=val}else if(typeof val!="string"&&!(val instanceof Uint8Array)){throw new Error("bwipp.invalidOptionType: "+id+": not a stringtype: "+val)}}dict[id]=val}}function bwipp_loadctx(f){if(!f.$ctx){f.$ctx={}}var next=Object.getPrototypeOf($_);Object.setPrototypeOf(f.$ctx,next);Object.setPrototypeOf($_,f.$ctx)}function bwipp_parseinput(){$_=Object.create($_);bwipp_loadctx(bwipp_parseinput);$_.fncvals=$k[--$j];$_.barcode=$k[--$j];var _2="parse";$_[_2]=$g($_.fncvals,_2);delete $_.fncvals[_2];var _6="parsefnc";$_[_6]=$g($_.fncvals,_6);delete $_.fncvals[_6];var _A="parseonly";var _C=$g($_.fncvals,_A)!==undefined;$_[_A]=_C;delete $_.fncvals[_A];var _E="eci";var _G=$g($_.fncvals,_E)!==undefined;$_[_E]=_G;delete $_.fncvals[_E];if(!bwipp_parseinput.__225__){$_=Object.create($_);$k[$j++]=Infinity;var _I=$a(["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","","","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US"]);$k[$j++]=0;for(var _J=0,_K=_I.length;_J<_K;_J++){var _M=$k[--$j];$k[$j++]=$g(_I,_J);$k[$j++]=_M;$k[$j++]=$f(_M+1)}$j--;$_.ctrl=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_parseinput.$ctx[id]=$_[id]);bwipp_parseinput.__225__=1;$_=Object.getPrototypeOf($_)}$_.msg=$a($_.barcode.length);$_.j=0;$k[$j++]=$_.barcode;for(;;){$X($k[--$j],"^");var _T=$k[--$j];var _U=$k[--$j];$k[$j++]=_T;$k[$j++]=_U.length;$k[$j++]=$_.msg;$k[$j++]=$_.j;$k[$j++]=_U;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.j=$f($k[--$j]+$_.j);if($k[--$j]){$j--;for(var _f=0,_g=1;_f<_g;_f++){if($an($nt($_.parse),$nt($_.parsefnc))){$p($_.msg,$_.j,94);$_.j=$f($_.j+1);break}$p($_.msg,$_.j,94);$_.j=$f($_.j+1);if($_.parse){var _q=$k[--$j];$k[$j++]=_q;if(_q.length>=3){var _r=$k[--$j];var _s=$G(_r,0,3);var _t=$_.ctrl;var _u=$g(_t,_s)!==undefined;$k[$j++]=_r;$k[$j++]=_t;$k[$j++]=_s;if(_u){$_.j=$f($_.j-1);var _w=$k[--$j];$p($_.msg,$_.j,$g($k[--$j],_w));$_.j=$f($_.j+1);var _12=$k[--$j];$k[$j++]=$G(_12,3,_12.length-3);break}else{$j-=2}}var _14=$k[--$j];$k[$j++]=_14;if(_14.length>=2){var _15=$k[--$j];var _16=$G(_15,0,2);var _17=$_.ctrl;var _18=$g(_17,_16)!==undefined;$k[$j++]=_15;$k[$j++]=_17;$k[$j++]=_16;if(_18){$_.j=$f($_.j-1);var _1A=$k[--$j];$p($_.msg,$_.j,$g($k[--$j],_1A));$_.j=$f($_.j+1);var _1G=$k[--$j];$k[$j++]=$G(_1G,2,_1G.length-2);break}else{$j-=2}}var _1I=$k[--$j];$k[$j++]=_1I;if(_1I.length>=3){var _1J=$k[--$j];var _1K=$G(_1J,0,3);$k[$j++]=_1J;$k[$j++]=true;for(var _1L=0,_1M=_1K.length;_1L<_1M;_1L++){var _1N=$g(_1K,_1L);if(_1N<48||_1N>57){$j--;$k[$j++]=false}}if($k[--$j]){var _1P=$k[--$j];var _1R=$i($G(_1P,0,3));$k[$j++]=_1P;$k[$j++]=_1R;if(_1R>255){$j-=2;$k[$j++]="bwipp.invalidOrdinal#282";$k[$j++]="Ordinal must be 000 to 255";bwipp_raiseerror()}$_.j=$f($_.j-1);$p($_.msg,$_.j,$k[--$j]);$_.j=$f($_.j+1);var _1X=$k[--$j];$k[$j++]=$G(_1X,3,_1X.length-3)}}}if($or($_.parseonly,$nt($_.parsefnc))||$g($_.msg,$f($_.j-1))!=94){break}$_.j=$f($_.j-1);var _1f=$k[--$j];$k[$j++]=_1f;if(_1f.length<3){$j--;$k[$j++]="bwipp.truncatedFNC#301";$k[$j++]="Function character truncated";bwipp_raiseerror()}var _1g=$k[--$j];$k[$j++]=_1g;if($g(_1g,0)==94){$p($_.msg,$_.j,94);$_.j=$f($_.j+1);var _1l=$k[--$j];$k[$j++]=$G(_1l,1,_1l.length-1);break}var _1n=$k[--$j];$k[$j++]=_1n;if($eq($G(_1n,0,3),"ECI")&&$_.eci){var _1q=$k[--$j];$k[$j++]=_1q;if(_1q.length<9){$j--;$k[$j++]="bwipp.truncatedECI#312";$k[$j++]="ECI truncated";bwipp_raiseerror()}var _1r=$k[--$j];var _1s=$G(_1r,3,6);$k[$j++]=_1r;$k[$j++]=_1s;for(var _1t=0,_1u=_1s.length;_1t<_1u;_1t++){var _1v=$g(_1s,_1t);if(_1v<48||_1v>57){$j-=2;$k[$j++]="bwipp.invalidECI#318";$k[$j++]="ECI must be 000000 to 999999";bwipp_raiseerror()}}var _1w=$k[--$j];$k[$j++]=0;$F(_1w,function(){var _1x=$k[--$j];var _1y=$k[--$j];$k[$j++]=$f(_1y-$f(_1x-48))*10});$p($_.msg,$_.j,~~($k[--$j]/10)-1e6);$_.j=$f($_.j+1);var _23=$k[--$j];$k[$j++]=$G(_23,9,_23.length-9);break}var _25=$k[--$j];$k[$j++]=_25;if(_25.length<4){$j--;$k[$j++]="bwipp.truncatedFNC#329";$k[$j++]="Function character truncated";bwipp_raiseerror()}var _26=$k[--$j];var _27=$G(_26,0,4);var _29=$g($_.fncvals,_27)!==undefined;$k[$j++]=_26;$k[$j++]=_27;if(!_29){var _2A=$k[--$j];var _2B=$s(_2A.length+28);$P(_2B,28,_2A);$P(_2B,0,"Unknown function character: ");var _2C=$k[--$j];$k[$j++]=_2B;$k[$j++]=_2C;$j--;var _2D=$k[--$j];$k[$j++]="bwipp.unknownFNC#335";$k[$j++]=_2D;bwipp_raiseerror()}$p($_.msg,$_.j,$g($_.fncvals,$k[--$j]));$_.j=$f($_.j+1);var _2K=$k[--$j];$k[$j++]=$G(_2K,4,_2K.length-4);break}}else{break}}if($nt($_.parseonly)){$k[$j++]=$G($_.msg,0,$_.j)}else{$k[$j++]=$s($_.j);for(var _2U=0,_2T=$f($_.j-1);_2U<=_2T;_2U+=1){var _2V=$k[--$j];$p(_2V,_2U,$g($_.msg,_2U));$k[$j++]=_2V}}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_gs1process(){$_=Object.create($_);bwipp_loadctx(bwipp_gs1process);if(!bwipp_gs1process.__2289__){$_=Object.create($_);var _1=new Map([["cset","N"],["min",18],["max",18],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _2=$a([_1]);var _3=$a([]);var _4=new Map([["parts",_2],["dlpkey",_3]]);var _5=$a(["lintcsum","lintkey"]);var _6=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",_5]]);var _7=$a([_6]);var _8=$a(["02","255","37"]);var _9=$a(["22","10","21"]);var _A=$a(["235"]);var _B=$a([_9,_A]);var _C=new Map([["parts",_7],["ex",_8],["dlpkey",_B]]);var _D=$a(["lintcsum","lintkey"]);var _E=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",_D]]);var _F=$a([_E]);var _G=$a(["37"]);var _H=$a([_G]);var _I=new Map([["parts",_F],["req",_H]]);var _K=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _O=new Map([["parts",$a([_K])],["req",$a([$a(["01","02","8006","8026"])])]]);var _Q=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _U=new Map([["parts",$a([_Q])],["req",$a([$a(["01","02","8006","8026"])])]]);var _W=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _a=new Map([["parts",$a([_W])],["req",$a([$a(["8020"])])]]);var _c=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _g=new Map([["parts",$a([_c])],["req",$a([$a(["01","02","8006","8026"])])]]);var _i=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _m=new Map([["parts",$a([_i])],["req",$a([$a(["01","02","255","8006","8026"])])]]);var _o=new Map([["cset","N"],["min",2],["max",2],["opt",false],["linters",$a([])]]);var _s=new Map([["parts",$a([_o])],["req",$a([$a(["01","02","8006","8026"])])]]);var _u=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _z=new Map([["parts",$a([_u])],["ex",$a(["235"])],["req",$a([$a(["01","8006"])])]]);var _11=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _15=new Map([["parts",$a([_11])],["req",$a([$a(["01"])])]]);var _17=new Map([["cset","X"],["min",1],["max",28],["opt",false],["linters",$a([])]]);var _1B=new Map([["parts",$a([_17])],["req",$a([$a(["01"])])]]);var _1D=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _1H=new Map([["parts",$a([_1D])],["req",$a([$a(["01","02","8006","8026"])])]]);var _1J=new Map([["cset","N"],["min",1],["max",6],["opt",false],["linters",$a([])]]);var _1N=new Map([["parts",$a([_1J])],["req",$a([$a(["01","02","8006","8026"])])]]);var _1P=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _1T=new Map([["parts",$a([_1P])],["req",$a([$a(["01"])])]]);var _1V=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _1a=new Map([["parts",$a([_1V])],["req",$a([$a(["01","8006"]),$a(["21"])])]]);var _1c=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _1g=new Map([["parts",$a([_1c])],["req",$a([$a(["01","8006"])])]]);var _1i=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _1k=new Map([["cset","X"],["min",1],["max",17],["opt",true],["linters",$a([])]]);var _1n=new Map([["parts",$a([_1i,_1k])],["dlpkey",$a([])]]);var _1p=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _1t=new Map([["parts",$a([_1p])],["req",$a([$a(["414"])])]]);var _1v=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _1x=new Map([["cset","N"],["min",1],["max",12],["opt",true],["linters",$a([])]]);var _21=new Map([["parts",$a([_1v,_1x])],["ex",$a(["01","02","415","8006","8020","8026"])],["dlpkey",$a([])]]);var _22=$a([]);var _23=new Map([["cset","N"],["min",1],["max",8],["opt",false],["linters",_22]]);var _27=new Map([["parts",$a([_23])],["req",$a([$a(["01","02"])])]]);var _29=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2E=new Map([["parts",$a([_29])],["ex",$a(["310n"])],["req",$a([$a(["01","02"])])]]);var _2G=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2L=new Map([["parts",$a([_2G])],["ex",$a(["311n"])],["req",$a([$a(["01","02"])])]]);var _2N=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2S=new Map([["parts",$a([_2N])],["ex",$a(["312n"])],["req",$a([$a(["01","02"])])]]);var _2U=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2Z=new Map([["parts",$a([_2U])],["ex",$a(["313n"])],["req",$a([$a(["01","02"])])]]);var _2b=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2g=new Map([["parts",$a([_2b])],["ex",$a(["314n"])],["req",$a([$a(["01","02"])])]]);var _2i=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2n=new Map([["parts",$a([_2i])],["ex",$a(["315n"])],["req",$a([$a(["01","02"])])]]);var _2p=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2u=new Map([["parts",$a([_2p])],["ex",$a(["316n"])],["req",$a([$a(["01","02"])])]]);var _2w=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _31=new Map([["parts",$a([_2w])],["ex",$a(["320n"])],["req",$a([$a(["01","02"])])]]);var _33=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _38=new Map([["parts",$a([_33])],["ex",$a(["321n"])],["req",$a([$a(["01","02"])])]]);var _3A=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3F=new Map([["parts",$a([_3A])],["ex",$a(["322n"])],["req",$a([$a(["01","02"])])]]);var _3H=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3M=new Map([["parts",$a([_3H])],["ex",$a(["323n"])],["req",$a([$a(["01","02"])])]]);var _3O=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3T=new Map([["parts",$a([_3O])],["ex",$a(["324n"])],["req",$a([$a(["01","02"])])]]);var _3V=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3a=new Map([["parts",$a([_3V])],["ex",$a(["325n"])],["req",$a([$a(["01","02"])])]]);var _3c=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3h=new Map([["parts",$a([_3c])],["ex",$a(["326n"])],["req",$a([$a(["01","02"])])]]);var _3j=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3o=new Map([["parts",$a([_3j])],["ex",$a(["327n"])],["req",$a([$a(["01","02"])])]]);var _3q=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3v=new Map([["parts",$a([_3q])],["ex",$a(["328n"])],["req",$a([$a(["01","02"])])]]);var _3x=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _42=new Map([["parts",$a([_3x])],["ex",$a(["329n"])],["req",$a([$a(["01","02"])])]]);var _44=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _49=new Map([["parts",$a([_44])],["ex",$a(["330n"])],["req",$a([$a(["00","01"])])]]);var _4B=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4G=new Map([["parts",$a([_4B])],["ex",$a(["331n"])],["req",$a([$a(["00","01"])])]]);var _4I=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4N=new Map([["parts",$a([_4I])],["ex",$a(["332n"])],["req",$a([$a(["00","01"])])]]);var _4P=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4U=new Map([["parts",$a([_4P])],["ex",$a(["333n"])],["req",$a([$a(["00","01"])])]]);var _4W=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4b=new Map([["parts",$a([_4W])],["ex",$a(["334n"])],["req",$a([$a(["00","01"])])]]);var _4d=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4i=new Map([["parts",$a([_4d])],["ex",$a(["335n"])],["req",$a([$a(["00","01"])])]]);var _4k=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4p=new Map([["parts",$a([_4k])],["ex",$a(["336n"])],["req",$a([$a(["00","01"])])]]);var _4r=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4w=new Map([["parts",$a([_4r])],["ex",$a(["337n"])],["req",$a([$a(["01"])])]]);var _4y=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _53=new Map([["parts",$a([_4y])],["ex",$a(["340n"])],["req",$a([$a(["00","01"])])]]);var _55=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5A=new Map([["parts",$a([_55])],["ex",$a(["341n"])],["req",$a([$a(["00","01"])])]]);var _5C=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5H=new Map([["parts",$a([_5C])],["ex",$a(["342n"])],["req",$a([$a(["00","01"])])]]);var _5J=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5O=new Map([["parts",$a([_5J])],["ex",$a(["343n"])],["req",$a([$a(["00","01"])])]]);var _5Q=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5V=new Map([["parts",$a([_5Q])],["ex",$a(["344n"])],["req",$a([$a(["00","01"])])]]);var _5X=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5c=new Map([["parts",$a([_5X])],["ex",$a(["345n"])],["req",$a([$a(["00","01"])])]]);var _5e=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5j=new Map([["parts",$a([_5e])],["ex",$a(["346n"])],["req",$a([$a(["00","01"])])]]);var _5l=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5q=new Map([["parts",$a([_5l])],["ex",$a(["347n"])],["req",$a([$a(["00","01"])])]]);var _5s=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5x=new Map([["parts",$a([_5s])],["ex",$a(["348n"])],["req",$a([$a(["00","01"])])]]);var _5z=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _64=new Map([["parts",$a([_5z])],["ex",$a(["349n"])],["req",$a([$a(["00","01"])])]]);var _66=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6B=new Map([["parts",$a([_66])],["ex",$a(["350n"])],["req",$a([$a(["01","02"])])]]);var _6D=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6I=new Map([["parts",$a([_6D])],["ex",$a(["351n"])],["req",$a([$a(["01","02"])])]]);var _6K=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6P=new Map([["parts",$a([_6K])],["ex",$a(["352n"])],["req",$a([$a(["01","02"])])]]);var _6R=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6W=new Map([["parts",$a([_6R])],["ex",$a(["353n"])],["req",$a([$a(["00","01"])])]]);var _6Y=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6d=new Map([["parts",$a([_6Y])],["ex",$a(["354n"])],["req",$a([$a(["00","01"])])]]);var _6f=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6k=new Map([["parts",$a([_6f])],["ex",$a(["355n"])],["req",$a([$a(["00","01"])])]]);var _6m=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6r=new Map([["parts",$a([_6m])],["ex",$a(["356n"])],["req",$a([$a(["01","02"])])]]);var _6t=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6y=new Map([["parts",$a([_6t])],["ex",$a(["357n"])],["req",$a([$a(["01","02"])])]]);var _70=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _75=new Map([["parts",$a([_70])],["ex",$a(["360n"])],["req",$a([$a(["01","02"])])]]);var _77=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7C=new Map([["parts",$a([_77])],["ex",$a(["361n"])],["req",$a([$a(["01","02"])])]]);var _7E=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7J=new Map([["parts",$a([_7E])],["ex",$a(["362n"])],["req",$a([$a(["00","01"])])]]);var _7L=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7Q=new Map([["parts",$a([_7L])],["ex",$a(["363n"])],["req",$a([$a(["00","01"])])]]);var _7S=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7X=new Map([["parts",$a([_7S])],["ex",$a(["364n"])],["req",$a([$a(["01","02"])])]]);var _7Z=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7e=new Map([["parts",$a([_7Z])],["ex",$a(["365n"])],["req",$a([$a(["01","02"])])]]);var _7g=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7l=new Map([["parts",$a([_7g])],["ex",$a(["366n"])],["req",$a([$a(["01","02"])])]]);var _7n=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7s=new Map([["parts",$a([_7n])],["ex",$a(["367n"])],["req",$a([$a(["00","01"])])]]);var _7u=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7z=new Map([["parts",$a([_7u])],["ex",$a(["368n"])],["req",$a([$a(["00","01"])])]]);var _81=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _86=new Map([["parts",$a([_81])],["ex",$a(["369n"])],["req",$a([$a(["00","01"])])]]);var _88=new Map([["cset","N"],["min",1],["max",8],["opt",false],["linters",$a([])]]);var _8D=new Map([["parts",$a([_88])],["req",$a([$a(["00"]),$a(["02","8026"])])]]);var _8F=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _8K=new Map([["parts",$a([_8F])],["ex",$a(["390n","391n","394n","8111"])],["req",$a([$a(["255","8020"])])]]);var _8M=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso4217"])]]);var _8O=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _8T=new Map([["parts",$a([_8M,_8O])],["ex",$a(["391n"])],["req",$a([$a(["8020"])])]]);var _8V=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _8b=new Map([["parts",$a([_8V])],["ex",$a(["392n","393n"])],["req",$a([$a(["01"]),$a(["30","31nn","32nn","35nn","36nn"])])]]);var _8d=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso4217"])]]);var _8f=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _8k=new Map([["parts",$a([_8d,_8f])],["ex",$a(["393n"])],["req",$a([$a(["30","31nn","32nn","35nn","36nn"])])]]);var _8m=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a([])]]);var _8r=new Map([["parts",$a([_8m])],["ex",$a(["394n","8111"])],["req",$a([$a(["255"])])]]);var _8t=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8y=new Map([["parts",$a([_8t])],["ex",$a(["392n","393n","395n","8005"])],["req",$a([$a(["30","31nn","32nn","35nn","36nn"])])]]);var _90=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _92=new Map([["parts",$a([_90])]]);var _94=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _97=new Map([["parts",$a([_94])],["dlpkey",$a([])]]);var _99=new Map([["cset","N"],["min",17],["max",17],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _9C=new Map([["parts",$a([_99])],["dlpkey",$a([])]]);var _9E=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _9I=new Map([["parts",$a([_9E])],["req",$a([$a(["00"])])]]);var _9K=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _9M=new Map([["parts",$a([_9K])]]);var _9O=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _9T=new Map([["parts",$a([_9O])],["dlpkey",$a([$a(["254"]),$a(["7040"])])]]);var _9V=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _9b=new Map([["parts",$a([_9V])],["req",$a([$a(["8020"])])],["dlpkey",$a([$a(["8020"])])]]);var _9d=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _9f=new Map([["parts",$a([_9d])]]);var _9h=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _9l=new Map([["parts",$a([_9h])],["dlpkey",$a([$a(["7040"])])]]);var _9n=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _9q=new Map([["parts",$a([_9n])],["ex",$a(["421"])]]);var _9s=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _9u=new Map([["cset","X"],["min",1],["max",9],["opt",false],["linters",$a([])]]);var _9x=new Map([["parts",$a([_9s,_9u])],["ex",$a(["4307"])]]);var _9z=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _A4=new Map([["parts",$a([_9z])],["ex",$a(["426"])],["req",$a([$a(["01","02","8006","8026"])])]]);var _A6=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a(["lintiso3166list"])]]);var _AB=new Map([["parts",$a([_A6])],["ex",$a(["426"])],["req",$a([$a(["01","02"])])]]);var _AD=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _AI=new Map([["parts",$a([_AD])],["ex",$a(["426"])],["req",$a([$a(["01","02"])])]]);var _AK=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a(["lintiso3166list"])]]);var _AP=new Map([["parts",$a([_AK])],["ex",$a(["426"])],["req",$a([$a(["01","02"])])]]);var _AR=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _AV=new Map([["parts",$a([_AR])],["req",$a([$a(["01","02"])])]]);var _AX=new Map([["cset","X"],["min",1],["max",3],["opt",false],["linters",$a([])]]);var _Ac=new Map([["parts",$a([_AX])],["req",$a([$a(["01","02"]),$a(["422"])])]]);var _Ae=new Map([["cset","X"],["min",1],["max",35],["opt",false],["linters",$a(["lintpcenc"])]]);var _Ai=new Map([["parts",$a([_Ae])],["req",$a([$a(["00"])])]]);var _Ak=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Ao=new Map([["parts",$a([_Ak])],["req",$a([$a(["00"])])]]);var _Aq=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Au=new Map([["parts",$a([_Aq])],["req",$a([$a(["4302"])])]]);var _Aw=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _B0=new Map([["parts",$a([_Aw])],["req",$a([$a(["00"])])]]);var _B2=new Map([["cset","X"],["min",2],["max",2],["opt",false],["linters",$a(["lintiso3166alpha2"])]]);var _B6=new Map([["parts",$a([_B2])],["req",$a([$a(["00"])])]]);var _B8=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _BC=new Map([["parts",$a([_B8])],["req",$a([$a(["00"])])]]);var _BE=new Map([["cset","N"],["min",20],["max",20],["opt",false],["linters",$a(["lintlatlong"])]]);var _BI=new Map([["parts",$a([_BE])],["req",$a([$a(["00"])])]]);var _BK=new Map([["cset","X"],["min",1],["max",35],["opt",false],["linters",$a(["lintpcenc"])]]);var _BO=new Map([["parts",$a([_BK])],["req",$a([$a(["00"])])]]);var _BQ=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _BU=new Map([["parts",$a([_BQ])],["req",$a([$a(["00"])])]]);var _BW=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Ba=new Map([["parts",$a([_BW])],["req",$a([$a(["4312"])])]]);var _Bc=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Bg=new Map([["parts",$a([_Bc])],["req",$a([$a(["00"])])]]);var _Bi=new Map([["cset","X"],["min",2],["max",2],["opt",false],["linters",$a(["lintiso3166alpha2"])]]);var _Bm=new Map([["parts",$a([_Bi])],["req",$a([$a(["00"])])]]);var _Bo=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Bs=new Map([["parts",$a([_Bo])],["req",$a([$a(["00"])])]]);var _Bu=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _By=new Map([["parts",$a([_Bu])],["req",$a([$a(["00"])])]]);var _C0=new Map([["cset","X"],["min",1],["max",35],["opt",false],["linters",$a(["lintpcenc"])]]);var _C4=new Map([["parts",$a([_C0])],["req",$a([$a(["00"])])]]);var _C6=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a(["lintyesno"])]]);var _CA=new Map([["parts",$a([_C6])],["req",$a([$a(["00"])])]]);var _CC=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _CE=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["linthhmm"])]]);var _CI=new Map([["parts",$a([_CC,_CE])],["req",$a([$a(["00"])])]]);var _CK=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _CO=new Map([["parts",$a([_CK])],["req",$a([$a(["00"])])]]);var _CQ=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a([])]]);var _CU=new Map([["parts",$a([_CQ])],["req",$a([$a(["01","02","8006","8026"])])]]);var _CW=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _Ca=new Map([["parts",$a([_CW])],["req",$a([$a(["01","02"])])]]);var _Cc=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _Ce=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["linthhmm"])]]);var _Ci=new Map([["parts",$a([_Cc,_Ce])],["req",$a([$a(["01","02"])])]]);var _Ck=new Map([["cset","N"],["min",1],["max",4],["opt",false],["linters",$a([])]]);var _Cp=new Map([["parts",$a([_Ck])],["req",$a([$a(["01"]),$a(["10"])])]]);var _Cr=new Map([["cset","X"],["min",1],["max",12],["opt",false],["linters",$a([])]]);var _Cv=new Map([["parts",$a([_Cr])],["req",$a([$a(["01","02"])])]]);var _Cx=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _D1=new Map([["parts",$a([_Cx])],["req",$a([$a(["01","02"])])]]);var _D3=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _D5=new Map([["cset","N"],["min",6],["max",6],["opt",true],["linters",$a(["lintyymmdd"])]]);var _D9=new Map([["parts",$a([_D3,_D5])],["req",$a([$a(["01","02"])])]]);var _DB=new Map([["cset","X"],["min",1],["max",3],["opt",false],["linters",$a([])]]);var _DF=new Map([["parts",$a([_DB])],["req",$a([$a(["01","02"])])]]);var _DH=new Map([["cset","X"],["min",1],["max",10],["opt",false],["linters",$a([])]]);var _DL=new Map([["parts",$a([_DH])],["req",$a([$a(["01","02"])])]]);var _DN=new Map([["cset","X"],["min",1],["max",2],["opt",false],["linters",$a([])]]);var _DR=new Map([["parts",$a([_DN])],["req",$a([$a(["01","02"])])]]);var _DT=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _DV=new Map([["cset","N"],["min",4],["max",4],["opt",true],["linters",$a(["linthhmm"])]]);var _DZ=new Map([["parts",$a([_DT,_DV])],["req",$a([$a(["01","02"])])]]);var _Db=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Dg=new Map([["parts",$a([_Db])],["req",$a([$a(["01","8006"]),$a(["416"])])]]);var _Di=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Dm=new Map([["parts",$a([_Di])],["req",$a([$a(["01","8006"])])]]);var _Do=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Ds=new Map([["parts",$a([_Do])],["req",$a([$a(["7021"])])]]);var _Du=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _Dw=new Map([["parts",$a([_Du])]]);var _Dy=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166999"])]]);var _E0=new Map([["cset","X"],["min",1],["max",27],["opt",false],["linters",$a([])]]);var _E4=new Map([["parts",$a([_Dy,_E0])],["req",$a([$a(["01","02"])])]]);var _E6=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _E8=new Map([["cset","X"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _EA=new Map([["cset","X"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _EC=new Map([["cset","X"],["min",1],["max",1],["opt",false],["linters",$a(["lintimporteridx"])]]);var _EE=new Map([["parts",$a([_E6,_E8,_EA,_EC])]]);var _EG=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _EK=new Map([["parts",$a([_EG])],["req",$a([$a(["01"])])]]);var _EM=new Map([["cset","X"],["min",2],["max",2],["opt",false],["linters",$a([])]]);var _EO=new Map([["cset","X"],["min",1],["max",28],["opt",false],["linters",$a([])]]);var _ES=new Map([["parts",$a([_EM,_EO])],["req",$a([$a(["01","8004"])])]]);var _EU=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _EY=new Map([["parts",$a([_EU])],["req",$a([$a(["01","8006"])])]]);var _Ea=new Map([["cset","N"],["min",2],["max",2],["opt",false],["linters",$a(["lintmediatype"])]]);var _Ee=new Map([["parts",$a([_Ea])],["req",$a([$a(["8017","8018"])])]]);var _Eg=new Map([["cset","X"],["min",1],["max",25],["opt",false],["linters",$a([])]]);var _Ek=new Map([["parts",$a([_Eg])],["req",$a([$a(["8017","8018"])])]]);var _Em=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["lintnonzero"])]]);var _Eo=new Map([["cset","N"],["min",5],["max",5],["opt",false],["linters",$a(["lintnonzero"])]]);var _Eq=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintnonzero"])]]);var _Es=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a(["lintwinding"])]]);var _Eu=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _Ey=new Map([["parts",$a([_Em,_Eo,_Eq,_Es,_Eu])],["req",$a([$a(["01"])])]]);var _F0=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _F2=new Map([["parts",$a([_F0])]]);var _F4=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a(["lintzero"])]]);var _F6=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _F8=new Map([["cset","X"],["min",1],["max",16],["opt",true],["linters",$a([])]]);var _FB=new Map([["parts",$a([_F4,_F6,_F8])],["dlpkey",$a([])]]);var _FD=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _FH=new Map([["parts",$a([_FD])],["dlpkey",$a([$a(["7040"])])]]);var _FJ=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _FN=new Map([["parts",$a([_FJ])],["req",$a([$a(["01","02"])])]]);var _FP=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",$a(["lintcsum"])]]);var _FR=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["lintpieceoftotal"])]]);var _FW=new Map([["parts",$a([_FP,_FR])],["ex",$a(["01","37"])],["dlpkey",$a([$a(["22","10","21"])])]]);var _FY=new Map([["cset","X"],["min",1],["max",34],["opt",false],["linters",$a(["lintiban"])]]);var _Fc=new Map([["parts",$a([_FY])],["req",$a([$a(["415"])])]]);var _Fe=new Map([["cset","N"],["min",8],["max",8],["opt",false],["linters",$a(["lintyymmddhh"])]]);var _Fg=new Map([["cset","N"],["min",1],["max",4],["opt",true],["linters",$a(["lintmmoptss"])]]);var _Fk=new Map([["parts",$a([_Fe,_Fg])],["req",$a([$a(["01","02"])])]]);var _Fm=new Map([["cset","X"],["min",1],["max",50],["opt",false],["linters",$a([])]]);var _Fq=new Map([["parts",$a([_Fm])],["req",$a([$a(["00","01"])])]]);var _Fs=new Map([["cset","Y"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _Fw=new Map([["parts",$a([_Fs])],["dlpkey",$a([$a(["8011"])])]]);var _Fy=new Map([["cset","N"],["min",1],["max",12],["opt",false],["linters",$a(["lintnozeroprefix"])]]);var _G2=new Map([["parts",$a([_Fy])],["req",$a([$a(["8010"])])]]);var _G4=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _G8=new Map([["parts",$a([_G4])],["req",$a([$a(["01","8006"])])]]);var _GA=new Map([["cset","X"],["min",1],["max",25],["opt",false],["linters",$a(["lintcsumalpha","lintkey"])]]);var _GD=new Map([["parts",$a([_GA])],["dlpkey",$a([])]]);var _GF=new Map([["cset","N"],["min",18],["max",18],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _GK=new Map([["parts",$a([_GF])],["ex",$a(["8018"])],["dlpkey",$a([$a(["8019"])])]]);var _GM=new Map([["cset","N"],["min",18],["max",18],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _GR=new Map([["parts",$a([_GM])],["ex",$a(["8017"])],["dlpkey",$a([$a(["8019"])])]]);var _GT=new Map([["cset","N"],["min",1],["max",10],["opt",false],["linters",$a([])]]);var _GX=new Map([["parts",$a([_GT])],["req",$a([$a(["8017","8018"])])]]);var _GZ=new Map([["cset","X"],["min",1],["max",25],["opt",false],["linters",$a([])]]);var _Gd=new Map([["parts",$a([_GZ])],["req",$a([$a(["415"])])]]);var _Gf=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",$a(["lintcsum"])]]);var _Gh=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["lintpieceoftotal"])]]);var _Gm=new Map([["parts",$a([_Gf,_Gh])],["ex",$a(["02","8006"])],["req",$a([$a(["37"])])]]);var _Go=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintcouponcode"])]]);var _Gq=new Map([["parts",$a([_Go])]]);var _Gs=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a([])]]);var _Gw=new Map([["parts",$a([_Gs])],["req",$a([$a(["255"])])]]);var _Gy=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintcouponposoffer"])]]);var _H0=new Map([["parts",$a([_Gy])]]);var _H2=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a([])]]);var _H6=new Map([["parts",$a([_H2])],["req",$a([$a(["01"])])]]);var _H8=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _HA=new Map([["parts",$a([_H8])]]);var _HC=new Map([["cset","X"],["min",1],["max",90],["opt",false],["linters",$a([])]]);var _HE=new Map([["parts",$a([_HC])]]);var _HF=new Map([["00",_4],["01",_C],["02",_I],["10",_O],["11",_U],["12",_a],["13",_g],["15",_g],["16",_g],["17",_m],["20",_s],["21",_z],["22",_15],["235",_1B],["240",_1H],["241",_1H],["242",_1N],["243",_1T],["250",_1a],["251",_1g],["253",_1n],["254",_1t],["255",_21],["30",_27],["3100",_2E],["3101",_2E],["3102",_2E],["3103",_2E],["3104",_2E],["3105",_2E],["3110",_2L],["3111",_2L],["3112",_2L],["3113",_2L],["3114",_2L],["3115",_2L],["3120",_2S],["3121",_2S],["3122",_2S],["3123",_2S],["3124",_2S],["3125",_2S],["3130",_2Z],["3131",_2Z],["3132",_2Z],["3133",_2Z],["3134",_2Z],["3135",_2Z],["3140",_2g],["3141",_2g],["3142",_2g],["3143",_2g],["3144",_2g],["3145",_2g],["3150",_2n],["3151",_2n],["3152",_2n],["3153",_2n],["3154",_2n],["3155",_2n],["3160",_2u],["3161",_2u],["3162",_2u],["3163",_2u],["3164",_2u],["3165",_2u],["3200",_31],["3201",_31],["3202",_31],["3203",_31],["3204",_31],["3205",_31],["3210",_38],["3211",_38],["3212",_38],["3213",_38],["3214",_38],["3215",_38],["3220",_3F],["3221",_3F],["3222",_3F],["3223",_3F],["3224",_3F],["3225",_3F],["3230",_3M],["3231",_3M],["3232",_3M],["3233",_3M],["3234",_3M],["3235",_3M],["3240",_3T],["3241",_3T],["3242",_3T],["3243",_3T],["3244",_3T],["3245",_3T],["3250",_3a],["3251",_3a],["3252",_3a],["3253",_3a],["3254",_3a],["3255",_3a],["3260",_3h],["3261",_3h],["3262",_3h],["3263",_3h],["3264",_3h],["3265",_3h],["3270",_3o],["3271",_3o],["3272",_3o],["3273",_3o],["3274",_3o],["3275",_3o],["3280",_3v],["3281",_3v],["3282",_3v],["3283",_3v],["3284",_3v],["3285",_3v],["3290",_42],["3291",_42],["3292",_42],["3293",_42],["3294",_42],["3295",_42],["3300",_49],["3301",_49],["3302",_49],["3303",_49],["3304",_49],["3305",_49],["3310",_4G],["3311",_4G],["3312",_4G],["3313",_4G],["3314",_4G],["3315",_4G],["3320",_4N],["3321",_4N],["3322",_4N],["3323",_4N],["3324",_4N],["3325",_4N],["3330",_4U],["3331",_4U],["3332",_4U],["3333",_4U],["3334",_4U],["3335",_4U],["3340",_4b],["3341",_4b],["3342",_4b],["3343",_4b],["3344",_4b],["3345",_4b],["3350",_4i],["3351",_4i],["3352",_4i],["3353",_4i],["3354",_4i],["3355",_4i],["3360",_4p],["3361",_4p],["3362",_4p],["3363",_4p],["3364",_4p],["3365",_4p],["3370",_4w],["3371",_4w],["3372",_4w],["3373",_4w],["3374",_4w],["3375",_4w],["3400",_53],["3401",_53],["3402",_53],["3403",_53],["3404",_53],["3405",_53],["3410",_5A],["3411",_5A],["3412",_5A],["3413",_5A],["3414",_5A],["3415",_5A],["3420",_5H],["3421",_5H],["3422",_5H],["3423",_5H],["3424",_5H],["3425",_5H],["3430",_5O],["3431",_5O],["3432",_5O],["3433",_5O],["3434",_5O],["3435",_5O],["3440",_5V],["3441",_5V],["3442",_5V],["3443",_5V],["3444",_5V],["3445",_5V],["3450",_5c],["3451",_5c],["3452",_5c],["3453",_5c],["3454",_5c],["3455",_5c],["3460",_5j],["3461",_5j],["3462",_5j],["3463",_5j],["3464",_5j],["3465",_5j],["3470",_5q],["3471",_5q],["3472",_5q],["3473",_5q],["3474",_5q],["3475",_5q],["3480",_5x],["3481",_5x],["3482",_5x],["3483",_5x],["3484",_5x],["3485",_5x],["3490",_64],["3491",_64],["3492",_64],["3493",_64],["3494",_64],["3495",_64],["3500",_6B],["3501",_6B],["3502",_6B],["3503",_6B],["3504",_6B],["3505",_6B],["3510",_6I],["3511",_6I],["3512",_6I],["3513",_6I],["3514",_6I],["3515",_6I],["3520",_6P],["3521",_6P],["3522",_6P],["3523",_6P],["3524",_6P],["3525",_6P],["3530",_6W],["3531",_6W],["3532",_6W],["3533",_6W],["3534",_6W],["3535",_6W],["3540",_6d],["3541",_6d],["3542",_6d],["3543",_6d],["3544",_6d],["3545",_6d],["3550",_6k],["3551",_6k],["3552",_6k],["3553",_6k],["3554",_6k],["3555",_6k],["3560",_6r],["3561",_6r],["3562",_6r],["3563",_6r],["3564",_6r],["3565",_6r],["3570",_6y],["3571",_6y],["3572",_6y],["3573",_6y],["3574",_6y],["3575",_6y],["3600",_75],["3601",_75],["3602",_75],["3603",_75],["3604",_75],["3605",_75],["3610",_7C],["3611",_7C],["3612",_7C],["3613",_7C],["3614",_7C],["3615",_7C],["3620",_7J],["3621",_7J],["3622",_7J],["3623",_7J],["3624",_7J],["3625",_7J],["3630",_7Q],["3631",_7Q],["3632",_7Q],["3633",_7Q],["3634",_7Q],["3635",_7Q],["3640",_7X],["3641",_7X],["3642",_7X],["3643",_7X],["3644",_7X],["3645",_7X],["3650",_7e],["3651",_7e],["3652",_7e],["3653",_7e],["3654",_7e],["3655",_7e],["3660",_7l],["3661",_7l],["3662",_7l],["3663",_7l],["3664",_7l],["3665",_7l],["3670",_7s],["3671",_7s],["3672",_7s],["3673",_7s],["3674",_7s],["3675",_7s],["3680",_7z],["3681",_7z],["3682",_7z],["3683",_7z],["3684",_7z],["3685",_7z],["3690",_86],["3691",_86],["3692",_86],["3693",_86],["3694",_86],["3695",_86],["37",_8D],["3900",_8K],["3901",_8K],["3902",_8K],["3903",_8K],["3904",_8K],["3905",_8K],["3906",_8K],["3907",_8K],["3908",_8K],["3909",_8K],["3910",_8T],["3911",_8T],["3912",_8T],["3913",_8T],["3914",_8T],["3915",_8T],["3916",_8T],["3917",_8T],["3918",_8T],["3919",_8T],["3920",_8b],["3921",_8b],["3922",_8b],["3923",_8b],["3924",_8b],["3925",_8b],["3926",_8b],["3927",_8b],["3928",_8b],["3929",_8b],["3930",_8k],["3931",_8k],["3932",_8k],["3933",_8k],["3934",_8k],["3935",_8k],["3936",_8k],["3937",_8k],["3938",_8k],["3939",_8k],["3940",_8r],["3941",_8r],["3942",_8r],["3943",_8r],["3950",_8y],["3951",_8y],["3952",_8y],["3953",_8y],["3954",_8y],["3955",_8y],["400",_92],["401",_97],["402",_9C],["403",_9I],["410",_9M],["411",_9M],["412",_9M],["413",_9M],["414",_9T],["415",_9b],["416",_9f],["417",_9l],["420",_9q],["421",_9x],["422",_A4],["423",_AB],["424",_AI],["425",_AP],["426",_AV],["427",_Ac],["4300",_Ai],["4301",_Ai],["4302",_Ao],["4303",_Au],["4304",_B0],["4305",_B0],["4306",_B0],["4307",_B6],["4308",_BC],["4309",_BI],["4310",_BO],["4311",_BO],["4312",_BU],["4313",_Ba],["4314",_Bg],["4315",_Bg],["4316",_Bg],["4317",_Bm],["4318",_Bs],["4319",_By],["4320",_C4],["4321",_CA],["4322",_CA],["4323",_CA],["4324",_CI],["4325",_CI],["4326",_CO],["7001",_CU],["7002",_Ca],["7003",_Ci],["7004",_Cp],["7005",_Cv],["7006",_D1],["7007",_D9],["7008",_DF],["7009",_DL],["7010",_DR],["7011",_DZ],["7020",_Dg],["7021",_Dm],["7022",_Ds],["7023",_Dw],["7030",_E4],["7031",_E4],["7032",_E4],["7033",_E4],["7034",_E4],["7035",_E4],["7036",_E4],["7037",_E4],["7038",_E4],["7039",_E4],["7040",_EE],["710",_EK],["711",_EK],["712",_EK],["713",_EK],["714",_EK],["715",_EK],["7230",_ES],["7231",_ES],["7232",_ES],["7233",_ES],["7234",_ES],["7235",_ES],["7236",_ES],["7237",_ES],["7238",_ES],["7239",_ES],["7240",_EY],["7241",_Ee],["7242",_Ek],["8001",_Ey],["8002",_F2],["8003",_FB],["8004",_FH],["8005",_FN],["8006",_FW],["8007",_Fc],["8008",_Fk],["8009",_Fq],["8010",_Fw],["8011",_G2],["8012",_G8],["8013",_GD],["8017",_GK],["8018",_GR],["8019",_GX],["8020",_Gd],["8026",_Gm],["8110",_Gq],["8111",_Gw],["8112",_H0],["8200",_H6],["90",_HA],["91",_HE],["92",_HE],["93",_HE],["94",_HE],["95",_HE],["96",_HE],["97",_HE],["98",_HE],["99",_HE]]);$_.gs1syntax=_HF;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2289__=1;$_=Object.getPrototypeOf($_)}if($eq($k[--$j],"ai")){$ax($k[--$j],"(");if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1aiMissingOpenParen#2297";$k[$j++]="AIs must start with '('";bwipp_raiseerror()}$j--;$k[$j++]=Infinity;var _HK=$k[--$j];var _HL=$k[--$j];$k[$j++]=_HK;$k[$j++]=_HL;for(;;){var _HM=$k[--$j];$k[$j++]=_HM;if($eq(_HM,"")){$j--;break}$X($k[--$j],")");if($nt($k[--$j])){$l();$k[$j++]="bwipp.GS1aiMissingCloseParen#2303";$k[$j++]="AIs must end with ')'";bwipp_raiseerror()}var _HP=$k[--$j];var _HQ=$k[--$j];$k[$j++]=_HP;$k[$j++]=_HQ;$j--;var _HR=$k[--$j];var _HS=$k[--$j];$k[$j++]=_HR;$X(_HS,"(");if($k[--$j]){var _HU=$k[--$j];var _HV=$k[--$j];$k[$j++]=_HU;$k[$j++]=_HV;$j--;var _HW=$k[--$j];var _HX=$k[--$j];$k[$j++]=_HW;$k[$j++]=_HX}else{$k[$j++]=""}}var _HY=$m();$k[$j++]=_HY;if(_HY>0){var _HZ=$k[--$j];for(var _Hb=_HZ,_Ha=~~(_HZ/2)+1;_Hb>=_Ha;_Hb-=1){$r(_Hb,-1)}}else{$j--}$as($a(~~($m()/2)));$_.ais=$k[--$j];$as($a($m()));$k[$j++]=Infinity;var _Hh=$k[--$j];var _Hi=$k[--$j];$k[$j++]=_Hh;$F(_Hi,function(){var _Hk=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$k[$j++]=_Hk;bwipp_parseinput()});$_.vals=$a();$j--}else{$ax($k[--$j],"http://");if($nt($k[--$j])){$ax($k[--$j],"https://");if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1dlURIbadScheme#2320";$k[$j++]="Scheme must be http:// or https://";bwipp_raiseerror()}}$j--;$X($k[--$j],"/");if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1dlMissingDomainOrPathInfo#2326";$k[$j++]="URI must contain a domain and path info";bwipp_raiseerror()}$j-=2;$X($k[--$j],"#");if($k[--$j]){var _Hu=$k[--$j];var _Hv=$k[--$j];$k[$j++]=_Hu;$k[$j++]=_Hv;$j--;var _Hw=$k[--$j];var _Hx=$k[--$j];$k[$j++]=_Hw;$k[$j++]=_Hx;$j--}$X($k[--$j],"?");if($nt($k[--$j])){var _I0=$k[--$j];$k[$j++]="";$k[$j++]=null;$k[$j++]=_I0}$_.pp=$k[--$j];$j--;$_.qp=$k[--$j];$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=$_.pp;for(;;){$X($k[--$j],"/");if($nt($k[--$j])){$j--;break}var _I6=$k[--$j];var _I7=$k[--$j];$k[$j++]=_I6.length+1;$k[$j++]=_I7;$j--;var _I8=$k[--$j];var _I9=$k[--$j];var _IA=$k[--$j];$k[$j++]=_IA;$k[$j++]=$f(_I8+_IA);$k[$j++]=_I9}$as($a($m()-1));$_.pipos=$k[--$j];$j-=2;if($_.pipos.length<=1){$k[$j++]="bwipp.GS1dlNoAIinfo#2351";$k[$j++]="The path was too short to contain AI info";bwipp_raiseerror()}$k[$j++]=false;for(var _IG=$_.pipos.length-2;_IG>=0;_IG-=2){var _II=$g($_.pipos,_IG);var _IM=$G($_.pp,_II,$f($f($g($_.pipos,_IG+1)-_II)-1));var _IO=$g($_.gs1syntax,_IM)!==undefined;$k[$j++]=_IG;$k[$j++]=_IM;if(_IO){var _IS=$g($g($_.gs1syntax,$k[--$j]),"dlpkey")!==undefined;if(_IS){var _IT=$k[--$j];var _IU=$k[--$j];$k[$j++]=_IT;$k[$j++]=_IU;$j--;$k[$j++]=true;break}}else{$j--}$j--}if($nt($k[--$j])){$k[$j++]="bwipp.GS1dlNoAIinfo#2370";$k[$j++]="The path does not contain a valid primary key";bwipp_raiseerror()}var _IY=$g($_.pipos,$k[--$j]);$_.pp=$G($_.pp,_IY,$f($_.pp.length-_IY));$_.uriunescape=function(){$_.in=$k[--$j];$_.out=$s($_.in.length);$k[$j++]=0;$k[$j++]=0;for(;;){var _If=$k[--$j];var _Ig=$k[--$j];$k[$j++]=_Ig;$k[$j++]=_If;if(_Ig>=$_.in.length){break}var _Ij=$k[--$j];var _Ik=$k[--$j];var _Il=$g($_.in,_Ik);$k[$j++]=_Ik;$k[$j++]=_Ij;$k[$j++]=_Il;if(_Il==43){$j--;var _In=$k[--$j];$p($_.out,_In,32);var _Io=$k[--$j];$k[$j++]=$f(_Io+1);$k[$j++]=$f(_In+1)}else{var _Ip=$k[--$j];var _Iq=$k[--$j];var _Ir=$k[--$j];$k[$j++]=_Ir;$k[$j++]=_Iq;$k[$j++]=_Ip;if(_Ip==37&&_Ir<$_.in.length-2){$j--;var _Iu=$Z($s(4),"< >");var _Iw=$k[--$j];var _Ix=$k[--$j];$P(_Iu,1,$G($_.in,$f(_Ix+1),2));try{$k[$j++]=_Ix;$k[$j++]=_Iw;$k[$j++]=$x(_Iu);$k[$j++]=false}catch(e){$k[$j++]=true}if($k[--$j]){$j-=2;$k[$j++]="bwipp.GS1dlBadHexCharacter#2388";$k[$j++]="Invalid hex character";bwipp_raiseerror()}var _J1=$g($k[--$j],0);var _J3=$k[--$j];$p($_.out,_J3,_J1);var _J4=$k[--$j];$k[$j++]=$f(_J4+3);$k[$j++]=$f(_J3+1)}else{var _J6=$k[--$j];var _J7=$k[--$j];$p($_.out,_J7,_J6);var _J8=$k[--$j];$k[$j++]=$f(_J8+1);$k[$j++]=$f(_J7+1)}}}$_.out=$G($_.out,0,$k[--$j]);$j--;$k[$j++]=$_.out};$_.ais=$a(99);$_.vals=$a(99);$k[$j++]=0;$k[$j++]=$_.pp;for(;;){$X($k[--$j],"/");if($k[--$j]){var _JJ=$k[--$j];var _JK=$k[--$j];var _JL=$k[--$j];var _JM=$k[--$j];$p($_.ais,_JM,_JJ);$k[$j++]=_JM;$X(_JL,"/");if($k[--$j]){var _JO=$k[--$j];var _JP=$k[--$j];$k[$j++]=_JO;$k[$j++]=_JP;$j--}else{var _JQ=$k[--$j];$k[$j++]="";$k[$j++]=_JQ}var _JS=$k[--$j];var _JT=$k[--$j];var _JU=$k[--$j];$k[$j++]=_JU;$k[$j++]=_JT;$k[$j++]=$_.vals;$k[$j++]=_JU;$k[$j++]=_JS;$_.uriunescape();var _JV=$k[--$j];var _JW=$k[--$j];$p($k[--$j],_JW,_JV)}else{$j--;break}var _JY=$k[--$j];var _JZ=$k[--$j];$k[$j++]=$f(_JZ+1);$k[$j++]=_JY}var _Ja=$k[--$j];$k[$j++]=_Ja;if(_Ja>1){$k[$j++]=false;$F($g($g($_.gs1syntax,$g($_.ais,0)),"dlpkey"),function(){$_.seq=$k[--$j];$_.i=1;$_.j=0;for(;;){if($_.i>=$_.ais.length){break}if($_.j>=$_.seq.length){break}if($eq($g($_.ais,$_.i),$g($_.seq,$_.j))){$_.i=$_.i+1}$_.j=$_.j+1}var _Ju=$k[--$j];var _Jv=$k[--$j];$k[$j++]=_Jv;$k[$j++]=_Ju;if($_.i==_Jv){$j--;$k[$j++]=true;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1dlBadPathInfo#2436";$k[$j++]="The AIs in the path are not a valid key-qualifier sequence for the key";bwipp_raiseerror()}}$k[$j++]=$_.qp;for(;;){var _Jy=$k[--$j];$k[$j++]=_Jy;if($eq(_Jy,"")){$j--;break}$X($k[--$j],"&");if($k[--$j]){var _K1=$k[--$j];var _K2=$k[--$j];$k[$j++]=_K1;$k[$j++]=_K2;$j--}else{var _K3=$k[--$j];$k[$j++]="";$k[$j++]=_K3}$X($k[--$j],"=");if($k[--$j]){var _K6=$k[--$j];$k[$j++]=_K6;$k[$j++]=true;$F(_K6,function(){var _K7=$k[--$j];var _K8=$k[--$j];$k[$j++]=_K8&&(_K7>=48&&_K7<=57)});if($k[--$j]){var _KB=$k[--$j];var _KC=$k[--$j];var _KD=$k[--$j];var _KE=$k[--$j];var _KF=$k[--$j];$p($_.ais,_KF,_KB);$k[$j++]=_KF;$k[$j++]=_KE;$k[$j++]=$_.vals;$k[$j++]=_KF;$k[$j++]=_KD;$_.uriunescape();var _KH=$k[--$j];var _KI=$k[--$j];$p($k[--$j],_KI,_KH);var _KK=$k[--$j];var _KL=$k[--$j];$k[$j++]=$f(_KL+1);$k[$j++]=_KK}else{$j-=3}}else{$j--}}var _KN=$k[--$j];$_.ais=$G($_.ais,0,_KN);$_.vals=$G($_.vals,0,_KN);for(var _KT=0,_KS=$_.ais.length-1;_KT<=_KS;_KT+=1){$k[$j++]=_KT;if($eq($g($_.ais,_KT),"01")){var _KW=$k[--$j];var _KY=$g($_.vals,_KW);var _KZ=_KY.length;$k[$j++]=_KW;$k[$j++]=_KY;if(_KZ==8||(_KZ==12||_KZ==13)){var _Kb=$Z($s(14),"00000000000000");var _Kc=$k[--$j];$P(_Kb,14-_Kc.length,_Kc);var _Ke=$k[--$j];$p($_.vals,_Ke,_Kb);$k[$j++]=_Ke}else{$j--}}$j--}}if(!bwipp_gs1process.__2487__){$_=Object.create($_);$k[$j++]=Infinity;var _Kf=$a(["00","01","02","03","04","11","12","13","14","15","16","17","18","19","20","31","32","33","34","35","36","41"]);for(var _Kg=0,_Kh=_Kf.length;_Kg<_Kh;_Kg++){var _Ki=$g(_Kf,_Kg);$k[$j++]=_Ki;$k[$j++]=_Ki}$_.aifixed=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2487__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;var _Kl=$_.ais;for(var _Km=0,_Kn=_Kl.length;_Km<_Kn;_Km++){var _Ko=$g(_Kl,_Km);$k[$j++]=true;$k[$j++]=_Ko;if(_Ko.length>=2){var _Ks=$g($_.aifixed,$G($k[--$j],0,2))!==undefined;if(_Ks){$j--;$k[$j++]=false}}else{$j--}}$_.fncs=$a();$_.lintnumeric=function(){var _Ku=$k[--$j];$k[$j++]=true;$F(_Ku,function(){var _Kv=$k[--$j];if(_Kv<48||_Kv>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1notNumeric#2507";$k[$j++]="Not numeric";$k[$j++]=false;return true}};$_.lintcset82=function(){var _Kx=$k[--$j];$k[$j++]=true;$F(_Kx,function(){var _Ky=$s(1);$p(_Ky,0,$k[--$j]);$X("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_Ky);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET82character#2517";$k[$j++]="Invalid CSET 82 character";$k[$j++]=false;return true}};$_.lintcset39=function(){var _L2=$k[--$j];$k[$j++]=true;$F(_L2,function(){var _L3=$s(1);$p(_L3,0,$k[--$j]);$X("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_L3);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET39character#2527";$k[$j++]="Invalid CSET 39 character";$k[$j++]=false;return true}};$_.lintkey=function(){var _L7=$k[--$j];$k[$j++]=_L7;if(_L7.length<2){$j-=2;$k[$j++]="bwipp.GS1keyTooShort#2531";$k[$j++]="Key is too short";$k[$j++]=false;return true}var _L8=$k[--$j];var _L9=$g(_L8,0);var _LA=$g(_L8,1);if(_L9<48||_L9>57||(_LA<48||_LA>57)){$j--;$k[$j++]="bwipp.GS1badGCP#2534";$k[$j++]="Non-numeric company prefix";$k[$j++]=false;return true}};$_.lintimporteridx=function(){$X("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",$k[--$j]);if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badImporterIndex#2540";$k[$j++]="Invalid importer index";$k[$j++]=false;return true}$j-=3};$_.lintcsum=function(){$k[$j++]=Infinity;var _LD=$k[--$j];var _LE=$k[--$j];var _LF=_LE.length%2==0?3:1;$k[$j++]=_LD;$k[$j++]=_LF;$F(_LE,function(){var _LG=$k[--$j];var _LH=$k[--$j];$k[$j++]=$f(_LG-48)*_LH;$k[$j++]=$f(4-_LH)});$j--;var _LI=$m()+1;$k[$j++]=0;for(var _LJ=0,_LK=_LI-1;_LJ<_LK;_LJ++){var _LL=$k[--$j];var _LM=$k[--$j];$k[$j++]=$f(_LM+_LL)}var _LN=$k[--$j];var _LO=$k[--$j];$k[$j++]=_LN;$k[$j++]=_LO;$j--;if($k[--$j]%10!=0){$j--;$k[$j++]="bwipp.GS1badChecksum#2549";$k[$j++]="Bad checksum";$k[$j++]=false;return true}};if(!bwipp_gs1process.__2562__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=0;for(var _LQ=0,_LR="!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length;_LQ<_LR;_LQ++){var _LT=$k[--$j];$k[$j++]=$g("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_LQ);$k[$j++]=_LT;$k[$j++]=$f(_LT+1)}$j--;$_.cset82=$d();$k[$j++]=Infinity;$k[$j++]=0;for(var _LV=0,_LW="23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length;_LV<_LW;_LV++){var _LY=$k[--$j];$k[$j++]=$g("23456789ABCDEFGHJKLMNPQRSTUVWXYZ",_LV);$k[$j++]=_LY;$k[$j++]=$f(_LY+1)}$j--;$_.cset32=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2562__=1;$_=Object.getPrototypeOf($_)}$_.lintcsumalpha=function(){var _Lb=$k[--$j];$k[$j++]=_Lb;if(_Lb.length<2){$j-=2;$k[$j++]="bwipp.GS1alphaTooShort#2565";$k[$j++]="Alphanumeric string is too short to check";$k[$j++]=false;return true}var _Lc=$k[--$j];$k[$j++]=_Lc;$k[$j++]=_Lc.length-2;$k[$j++]=$G(_Lc,0,_Lc.length-2);$k[$j++]=Infinity;var _Le=$k[--$j];var _Lf=$k[--$j];$k[$j++]=_Le;$F(_Lf,function(){var _Lg=$k[--$j];var _Li=$g($_.cset82,_Lg)!==undefined;$k[$j++]=_Lg;if(_Li){var _Ll=$g($_.cset82,$k[--$j]);$k[$j++]=_Ll}else{$k[$j++]=-1;return true}});var _Lm=$k[--$j];$k[$j++]=_Lm;if(_Lm==-1){$l();$j-=3;$k[$j++]="bwipp.GS1UnknownCSET82Character#2571";$k[$j++]="Unknown CSET 82 character";$k[$j++]=false;return true}$as($a($m()));var _Lp=$k[--$j];var _Lq=$k[--$j];$k[$j++]=_Lp;$k[$j++]=_Lq;$j--;var _Lr=$k[--$j];var _Ls=$k[--$j];var _Lu=$G($k[--$j],_Ls,2);$k[$j++]=_Lr;$k[$j++]=_Lu;$k[$j++]=Infinity;var _Lv=$k[--$j];var _Lw=$k[--$j];$k[$j++]=_Lv;$F(_Lw,function(){var _Lx=$k[--$j];var _Lz=$g($_.cset32,_Lx)!==undefined;$k[$j++]=_Lx;if(_Lz){var _M2=$g($_.cset32,$k[--$j]);$k[$j++]=_M2}else{$k[$j++]=-1;return true}});var _M3=$k[--$j];$k[$j++]=_M3;if(_M3==-1){$l();$j-=2;$k[$j++]="bwipp.GS1UnknownCSET32Character#2577";$k[$j++]="Unknown CSET 32 character";$k[$j++]=false;return true}$as($a($m()));var _M6=$k[--$j];var _M7=$k[--$j];$k[$j++]=_M6;$k[$j++]=_M7;$j--;var _M8=$k[--$j];var _MB=$k[--$j];var _MC=$a([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83]);var _MD=_MB.length;$k[$j++]=$f(($g(_M8,0)<<5)+$g(_M8,1));$k[$j++]=_MB;$k[$j++]=_MC;$k[$j++]=_MD;if(_MD>_MC.length){$j-=5;$k[$j++]="bwipp.GS1alphaTooLong#2582";$k[$j++]="Alphanumeric string is too long to check";$k[$j++]=false;return true}var _ME=$k[--$j];var _MG=$G($k[--$j],0,_ME);for(var _MH=0,_MI=_MG.length;_MH<_MI;_MH++){var _MK=$k[--$j];$k[$j++]=$g(_MG,_MH);$k[$j++]=_MK}var _ML=$k[--$j];$k[$j++]=0;$F(_ML,function(){var _MM=$k[--$j];var _MN=$k[--$j];var _MO=$k[--$j];$k[$j++]=$f(_MN+_MO*_MM)});var _MP=$k[--$j];if($k[--$j]!=_MP%1021){$j--;$k[$j++]="bwipp.GS1badAlphaCheckCharacters#2585";$k[$j++]="Bad alphanumeric check characters";$k[$j++]=false;return true}};if(!bwipp_gs1process.__2609__){$_=Object.create($_);$k[$j++]=Infinity;var _MR=$a(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);for(var _MS=0,_MT=_MR.length;_MS<_MT;_MS++){var _MU=$g(_MR,_MS);$k[$j++]=_MU;$k[$j++]=_MU}$_.iso3166=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2609__=1;$_=Object.getPrototypeOf($_)}$_.lintiso3166=function(){var _MZ=$g($_.iso3166,$k[--$j])!==undefined;if(!_MZ){$j--;$k[$j++]="bwipp.GS1UnknownCountry#2612";$k[$j++]="Unknown country code";$k[$j++]=false;return true}};$_.lintiso3166999=function(){var _Ma=$k[--$j];$k[$j++]=_Ma;if($ne(_Ma,"999")){var _Md=$g($_.iso3166,$k[--$j])!==undefined;if(!_Md){$j--;$k[$j++]="bwipp.GS1UnknownCountryOr999#2617";$k[$j++]="Unknown country code or not 999";$k[$j++]=false;return true}}else{$j--}};$_.lintiso3166list=function(){var _Me=$k[--$j];$k[$j++]=_Me;if(_Me.length%3!=0){$j-=2;$k[$j++]="bwipp.GS1BadCountryListLength#2625";$k[$j++]="Not a group of three-digit country codes";$k[$j++]=false;return true}var _Mf=$k[--$j];$k[$j++]=_Mf;$k[$j++]=true;for(var _Mh=0,_Mg=_Mf.length-1;_Mh<=_Mg;_Mh+=3){var _Mi=$k[--$j];var _Mj=$k[--$j];var _Mm=$g($_.iso3166,$G(_Mj,_Mh,3))!==undefined;$k[$j++]=_Mj;$k[$j++]=_Mi;if(!_Mm){$j-=2;$k[$j++]=false;break}}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1UnknownCountry#2632";$k[$j++]="Unknown country code";$k[$j++]=false;return true}$j--};if(!bwipp_gs1process.__2663__){$_=Object.create($_);$k[$j++]=Infinity;var _Mo=$a(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);for(var _Mp=0,_Mq=_Mo.length;_Mp<_Mq;_Mp++){var _Mr=$g(_Mo,_Mp);$k[$j++]=_Mr;$k[$j++]=_Mr}$_.iso3166alpha2=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2663__=1;$_=Object.getPrototypeOf($_)}$_.lintiso3166alpha2=function(){var _Mw=$g($_.iso3166alpha2,$k[--$j])!==undefined;if(!_Mw){$j--;$k[$j++]="bwipp.GS1UnknownCountryAlpha#2666";$k[$j++]="Unknown country alpha code";$k[$j++]=false;return true}};if(!bwipp_gs1process.__2694__){$_=Object.create($_);$k[$j++]=Infinity;var _Mx=$a(["008","012","032","036","044","048","050","051","052","060","064","068","072","084","090","096","104","108","116","124","132","136","144","152","156","170","174","188","191","192","203","208","214","222","230","232","238","242","262","270","292","320","324","328","332","340","344","348","352","356","360","364","368","376","388","392","398","400","404","408","410","414","417","418","422","426","430","434","446","454","458","462","480","484","496","498","504","512","516","524","532","533","548","554","558","566","578","586","590","598","600","604","608","634","643","646","654","682","690","694","702","704","706","710","728","748","752","756","760","764","776","780","784","788","800","807","818","826","834","840","858","860","882","886","901","925","927","928","929","930","931","932","933","934","936","938","940","941","943","944","946","947","948","949","950","951","952","953","955","956","957","958","959","960","961","962","963","964","965","967","968","969","970","971","972","973","975","976","977","978","979","980","981","984","985","986","990","994","997","999"]);for(var _My=0,_Mz=_Mx.length;_My<_Mz;_My++){var _N0=$g(_Mx,_My);$k[$j++]=_N0;$k[$j++]=_N0}$_.iso4217=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2694__=1;$_=Object.getPrototypeOf($_)}$_.lintiso4217=function(){var _N5=$g($_.iso4217,$k[--$j])!==undefined;if(!_N5){$j--;$k[$j++]="bwipp.GS1UnknownCurrency#2697";$k[$j++]="Unknown currency code";$k[$j++]=false;return true}};$_.lintiban=function(){var _N6=$k[--$j];$k[$j++]=_N6;if(_N6.length<=4){$j-=2;$k[$j++]="bwipp.GS1tooShort#2701";$k[$j++]="IBAN too short";$k[$j++]=false;return true}var _N7=$k[--$j];$k[$j++]=_N7;$k[$j++]=true;$F(_N7,function(){var _N8=$s(1);$p(_N8,0,$k[--$j]);$X("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_N8);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badIBANcharacter#2708";$k[$j++]="Invalid IBAN character";$k[$j++]=false;return true}var _NC=$k[--$j];$k[$j++]=_NC;$k[$j++]=_NC;$k[$j++]=Infinity;var _ND=$k[--$j];var _NE=$k[--$j];$k[$j++]=_ND;$k[$j++]=_NE;$k[$j++]=Infinity;var _NF=$k[--$j];var _NG=$k[--$j];$k[$j++]=_NF;$F(_NG);$r($m(),-4);$as($a($m()));var _NK=$k[--$j];var _NL=$k[--$j];$k[$j++]=_NK;$k[$j++]=_NL;$j--;$F($k[--$j],function(){var _NO=$f($k[--$j]-48);$k[$j++]=_NO;if(_NO>9){var _NQ=$f($k[--$j]-7);$k[$j++]=~~(_NQ/10);$k[$j++]=_NQ%10}});$as($a($m()));var _NT=$k[--$j];var _NU=$k[--$j];$k[$j++]=_NT;$k[$j++]=_NU;$j--;var _NV=$k[--$j];$k[$j++]=0;$F(_NV,function(){var _NW=$k[--$j];var _NX=$k[--$j];$k[$j++]=$f(_NW+_NX*10)%97});if($k[--$j]!=1){$j-=2;$k[$j++]="bwipp.GS1badIBANchecksum#2713";$k[$j++]="IBAN checksum incorrect";$k[$j++]=false;return true}var _Na=$G($k[--$j],0,2);$k[$j++]=_Na;$_.lintiso3166alpha2()};$_.lintzero=function(){if($ne($k[--$j],"0")){$j--;$k[$j++]="bwipp.GS1zeroRequired#2718";$k[$j++]="Zero is required";$k[$j++]=false;return true}};$_.lintnonzero=function(){var _Nc=$k[--$j];$k[$j++]=false;$F(_Nc,function(){if($k[--$j]!=48){$j--;$k[$j++]=true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1zeroNotPermitted#2723";$k[$j++]="Zero not permitted";$k[$j++]=false;return true}};$_.lintnozeroprefix=function(){var _Nf=$k[--$j];if(_Nf.length>1&&$g(_Nf,0)==48){$j--;$k[$j++]="bwipp.GS1badZeroPrefix#2728";$k[$j++]="Zero prefix is not permitted";$k[$j++]=false;return true}};$_.lintyymmd0=function(){var _Nh=$k[--$j];var _Nj=$i($G(_Nh,2,2));$k[$j++]=_Nh;if(_Nj<1||_Nj>12){$j--;$k[$j++]="bwipp.GS1badMonth#2733";$k[$j++]="Invalid month";$k[$j++]=false;return true}var _Nk=$k[--$j];var _Nm=$i($G(_Nk,0,2));var _Nn=_Nm-21;$k[$j++]=_Nk;$k[$j++]=_Nm;$k[$j++]=_Nn;if(_Nn>=51){$j--;var _No=$k[--$j];$k[$j++]=$f(_No+1900)}else{if($k[--$j]<=-50){var _Nq=$k[--$j];$k[$j++]=$f(_Nq+2100)}else{var _Nr=$k[--$j];$k[$j++]=$f(_Nr+2e3)}}var _Ns=$k[--$j];$k[$j++]=_Ns%400==0||_Ns%4==0&&_Ns%100!=0;$k[$j++]=Infinity;var _Nt=$k[--$j];var _Nv=$k[--$j]?29:28;$k[$j++]=_Nt;$k[$j++]=31;$k[$j++]=_Nv;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _Nw=$a();var _Nx=$k[--$j];if($g(_Nw,$i($G(_Nx,2,2))-1)<$i($G(_Nx,4,2))){$j--;$k[$j++]="bwipp.GS1badDay#2739";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}};$_.lintyymmdd=function(){var _O1=$k[--$j];$k[$j++]=_O1;if(_O1.length!=6){$j--;$k[$j++]="bwipp.GS1badDateLength#2743";$k[$j++]="Invalid length for date";$k[$j++]=false;return true}var _O2=$k[--$j];$k[$j++]=_O2;if($i($G(_O2,4,2))<1){$j--;$k[$j++]="bwipp.GS1badDay#2744";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}$_.lintyymmd0()};$_.lintyymmddhh=function(){var _O4=$k[--$j];$k[$j++]=_O4;if(_O4.length!=8){$j--;$k[$j++]="bwipp.GS1badYYMMDDHHLength#2749";$k[$j++]="Invalid length for date with hour";$k[$j++]=false;return true}var _O5=$k[--$j];$k[$j++]=_O5;if($i($G(_O5,6,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour#2750";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}var _O8=$G($k[--$j],0,6);$k[$j++]=_O8;$_.lintyymmdd()};$_.linthhmm=function(){var _O9=$k[--$j];$k[$j++]=_O9;if($i($G(_O9,0,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour#2755";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}if($i($G($k[--$j],2,2))>59){$j--;$k[$j++]="bwipp.GS1badMinute#2756";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}};$_.lintmmoptss=function(){var _OD=$k[--$j];var _OE=_OD.length;$k[$j++]=_OD;if(_OE!=2&&_OE!=4){$j--;$k[$j++]="bwipp.GS1badTimeLength#2761";$k[$j++]="Invalid length for optional minutes and seconds";$k[$j++]=false;return true}var _OF=$k[--$j];$k[$j++]=_OF;if($i($G(_OF,0,2))>59){$j-=2;$k[$j++]="bwipp.GS1badMinute#2763";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}var _OH=$k[--$j];$k[$j++]=_OH;if(_OH.length>=4){var _OI=$k[--$j];$k[$j++]=_OI;if($i($G(_OI,2,2))>59){$j-=2;$k[$j++]="bwipp.GS1badSecond#2765";$k[$j++]="Invalid second in the minute";$k[$j++]=false;return true}}$j--};$_.lintyesno=function(){var _OK=$k[--$j];if($ne(_OK,"0")&&$ne(_OK,"1")){$j--;$k[$j++]="bwipp.GS1badBoolean#2772";$k[$j++]="Neither 0 nor 1 for yes or no";$k[$j++]=false;return true}};$_.lintwinding=function(){var _OL=$k[--$j];if($ne(_OL,"0")&&($ne(_OL,"1")&&$ne(_OL,"9"))){$j--;$k[$j++]="bwipp.GS1badWinding#2778";$k[$j++]="Invalid winding direction";$k[$j++]=false;return true}};$_.lintpieceoftotal=function(){var _OM=$k[--$j];$k[$j++]=_OM;if(_OM.length%2!=0){$j-=2;$k[$j++]="bwipp.GS1badPieceTotalLength#2783";$k[$j++]="Invalid piece/total length";$k[$j++]=false;return true}var _ON=$k[--$j];var _OP=$i($G(_ON,0,~~(_ON.length/2)));$k[$j++]=_ON;$k[$j++]=_OP;if(_OP==0){$j-=3;$k[$j++]="bwipp.GS1badPieceNumber#2785";$k[$j++]="Invalid piece number";$k[$j++]=false;return true}var _OQ=$k[--$j];var _OR=$k[--$j];var _OS=~~(_OR.length/2);var _OU=$i($G(_OR,_OS,_OS));$k[$j++]=_OQ;$k[$j++]=_OU;if(_OU==0){$j-=3;$k[$j++]="bwipp.GS1badPieceTotal#2787";$k[$j++]="Invalid total number";$k[$j++]=false;return true}var _OV=$k[--$j];if($gt($k[--$j],_OV)){$j--;$k[$j++]="bwipp.GS1pieceExceedsTotal#2788";$k[$j++]="Piece number exceeds total";$k[$j++]=false;return true}};$_.lintpcenc=function(){for(;;){$X($k[--$j],"%");if($nt($k[--$j])){$j--;break}$j-=2;var _OZ=$k[--$j];$k[$j++]=_OZ;if(_OZ.length<2){$j-=2;$k[$j++]="bwipp.GS1badPercentEscape#2794";$k[$j++]="Invalid % escape";$k[$j++]=false;break}var _Oa=$k[--$j];var _Ob=$G(_Oa,0,2);$k[$j++]=_Oa;$k[$j++]=true;for(var _Oc=0,_Od=_Ob.length;_Oc<_Od;_Oc++){var _Of=$s(1);$p(_Of,0,$g(_Ob,_Oc));$X("0123456789ABCDEFabcdef",_Of);if($nt($k[--$j])){$j-=2;$k[$j++]=false;break}$j-=3}if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badPercentChars#2801";$k[$j++]="Invalid characters for percent encoding";$k[$j++]=false;break}}};$_.lintcouponcode=function(){var _Oi=$k[--$j];$k[$j++]=_Oi;$k[$j++]=true;$F(_Oi,function(){var _Oj=$k[--$j];if(_Oj<48||_Oj>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric#2809";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _Ol=$k[--$j];$k[$j++]=_Ol;if(_Ol.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortGCPVLI#2813";$k[$j++]="Coupon too short: Missing GCP VLI";$k[$j++]=false;return true}var _Om=$k[--$j];var _Oo=$i($G(_Om,0,1));$k[$j++]=_Om;$k[$j++]=_Oo;if(_Oo>6){$j-=2;$k[$j++]="bwipp.GS1couponBadGCPVLI#2816";$k[$j++]="Coupon GCP length indicator must be 0-6";$k[$j++]=false;return true}var _Op=$k[--$j];var _Oq=$k[--$j];$k[$j++]=_Oq;$k[$j++]=$f($f(_Op+6)+1);if($f($f(_Op+6)+1)>_Oq.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortGCP#2820";$k[$j++]="Coupon too short: GCP truncated";$k[$j++]=false;return true}var _Or=$k[--$j];var _Os=$k[--$j];var _Ot=$G(_Os,_Or,$f(_Os.length-_Or));$k[$j++]=_Ot;if(_Ot.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode#2826";$k[$j++]="Coupon too short: Offer Code truncated";$k[$j++]=false;return true}var _Ou=$k[--$j];var _Ov=$G(_Ou,6,_Ou.length-6);$k[$j++]=_Ov;if(_Ov.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueVLI#2832";$k[$j++]="Coupon too short: Missing Save Value VLI";$k[$j++]=false;return true}var _Ow=$k[--$j];var _Oy=$i($G(_Ow,0,1));$k[$j++]=_Ow;$k[$j++]=_Oy;if(_Oy<1||_Oy>5){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueVLI#2835";$k[$j++]="Coupon Save Value length indicator must be 1-5";$k[$j++]=false;return true}var _Oz=$k[--$j];var _P0=$k[--$j];$k[$j++]=_P0;$k[$j++]=$f(_Oz+1);if($f(_Oz+1)>_P0.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSaveValue#2839";$k[$j++]="Coupon too short: Save Value truncated";$k[$j++]=false;return true}var _P1=$k[--$j];var _P2=$k[--$j];var _P3=$G(_P2,_P1,$f(_P2.length-_P1));$k[$j++]=_P3;if(_P3.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2845";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement VLI";$k[$j++]=false;return true}var _P4=$k[--$j];var _P6=$i($G(_P4,0,1));$k[$j++]=_P4;$k[$j++]=_P6;if(_P6<1||_P6>5){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementVLI#2848";$k[$j++]="Coupon 1st Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _P7=$k[--$j];var _P8=$k[--$j];$k[$j++]=_P8;$k[$j++]=$f(_P7+1);if($f(_P7+1)>_P8.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirement#2852";$k[$j++]="Coupon too short: 1st Purchase Requirement truncated";$k[$j++]=false;return true}var _P9=$k[--$j];var _PA=$k[--$j];var _PB=$G(_PA,_P9,$f(_PA.length-_P9));$k[$j++]=_PB;if(_PB.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementCode#2858";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement Code";$k[$j++]=false;return true}var _PC=$k[--$j];var _PE=$i($G(_PC,0,1));$k[$j++]=_PC;if(_PE>4&&_PE!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementCode#2861";$k[$j++]="Coupon 1st Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _PF=$k[--$j];var _PG=$G(_PF,1,_PF.length-1);$k[$j++]=_PG;if(_PG.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseFamilyCode#2867";$k[$j++]="Coupon too short: 1st Purchase Family Code truncated";$k[$j++]=false;return true}var _PH=$k[--$j];var _PI=$G(_PH,3,_PH.length-3);$k[$j++]=_PI;if(_PI.length>=1){var _PJ=$k[--$j];$k[$j++]=_PJ;if($i($G(_PJ,0,1))==1){var _PL=$k[--$j];var _PM=$G(_PL,1,_PL.length-1);$k[$j++]=_PM;if(_PM.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2877";$k[$j++]="Coupon too short: Missing Additional Purchase Rules Code";$k[$j++]=false;return true}var _PN=$k[--$j];$k[$j++]=_PN;if($i($G(_PN,0,1))>3){$j-=2;$k[$j++]="bwipp.GS1couponBadAdditionalPurchaseRulesCode#2880";$k[$j++]="Coupon Additional Purchase Rules Code must be 0-3";$k[$j++]=false;return true}var _PP=$k[--$j];var _PQ=$G(_PP,1,_PP.length-1);$k[$j++]=_PQ;if(_PQ.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2886";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement VLI";$k[$j++]=false;return true}var _PR=$k[--$j];var _PT=$i($G(_PR,0,1));$k[$j++]=_PR;$k[$j++]=_PT;if(_PT<1||_PT>5){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementVLI#2889";$k[$j++]="Coupon 2nd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _PU=$k[--$j];var _PV=$k[--$j];$k[$j++]=_PV;$k[$j++]=$f(_PU+1);if($f(_PU+1)>_PV.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirement#2893";$k[$j++]="Coupon too short: 2nd Purchase Requirement truncated";$k[$j++]=false;return true}var _PW=$k[--$j];var _PX=$k[--$j];var _PY=$G(_PX,_PW,$f(_PX.length-_PW));$k[$j++]=_PY;if(_PY.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2899";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement Code";$k[$j++]=false;return true}var _PZ=$k[--$j];var _Pb=$i($G(_PZ,0,1));$k[$j++]=_PZ;if(_Pb>4&&_Pb!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementCode#2902";$k[$j++]="Coupon 2nd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _Pc=$k[--$j];var _Pd=$G(_Pc,1,_Pc.length-1);$k[$j++]=_Pd;if(_Pd.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2908";$k[$j++]="Coupon too short: 2nd Purchase Family Code truncated";$k[$j++]=false;return true}var _Pe=$k[--$j];var _Pf=$G(_Pe,3,_Pe.length-3);$k[$j++]=_Pf;if(_Pf.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2914";$k[$j++]="Coupon too short: Missing 2nd Purchase GCP VLI";$k[$j++]=false;return true}var _Pg=$k[--$j];var _Pi=$i($G(_Pg,0,1));$k[$j++]=_Pg;$k[$j++]=_Pi;if(_Pi>6&&_Pi!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseGCPVLI#2917";$k[$j++]="Coupon 2nd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _Pj=$k[--$j];$k[$j++]=_Pj;if(_Pj!=9){var _Pk=$k[--$j];$k[$j++]=$f(_Pk+6)}else{$j--;$k[$j++]=0}var _Pl=$k[--$j];var _Pm=$k[--$j];$k[$j++]=_Pm;$k[$j++]=$f(_Pl+1);if($f(_Pl+1)>_Pm.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCP#2921";$k[$j++]="Coupon too short: 2nd Purchase GCP truncated";$k[$j++]=false;return true}var _Pn=$k[--$j];var _Po=$k[--$j];$k[$j++]=$G(_Po,_Pn,$f(_Po.length-_Pn))}}var _Pq=$k[--$j];$k[$j++]=_Pq;if(_Pq.length>=1){var _Pr=$k[--$j];$k[$j++]=_Pr;if($i($G(_Pr,0,1))==2){var _Pt=$k[--$j];var _Pu=$G(_Pt,1,_Pt.length-1);$k[$j++]=_Pu;if(_Pu.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2933";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement VLI";$k[$j++]=false;return true}var _Pv=$k[--$j];var _Px=$i($G(_Pv,0,1));$k[$j++]=_Pv;$k[$j++]=_Px;if(_Px<1||_Px>5){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementVLI#2936";$k[$j++]="Coupon 3rd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _Py=$k[--$j];var _Pz=$k[--$j];$k[$j++]=_Pz;$k[$j++]=$f(_Py+1);if($f(_Py+1)>_Pz.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirement#2940";$k[$j++]="Coupon too short: 3rd Purchase Requirement truncated";$k[$j++]=false;return true}var _Q0=$k[--$j];var _Q1=$k[--$j];var _Q2=$G(_Q1,_Q0,$f(_Q1.length-_Q0));$k[$j++]=_Q2;if(_Q2.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2946";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement Code";$k[$j++]=false;return true}var _Q3=$k[--$j];var _Q5=$i($G(_Q3,0,1));$k[$j++]=_Q3;if(_Q5>4&&_Q5!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementCode#2949";$k[$j++]="Coupon 3rd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _Q6=$k[--$j];var _Q7=$G(_Q6,1,_Q6.length-1);$k[$j++]=_Q7;if(_Q7.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2955";$k[$j++]="Coupon too short: 3rd Purchase Family Code truncated";$k[$j++]=false;return true}var _Q8=$k[--$j];var _Q9=$G(_Q8,3,_Q8.length-3);$k[$j++]=_Q9;if(_Q9.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2961";$k[$j++]="Coupon too short: Missing 3rd Purchase GCP VLI";$k[$j++]=false;return true}var _QA=$k[--$j];var _QC=$i($G(_QA,0,1));$k[$j++]=_QA;$k[$j++]=_QC;if(_QC>6&&_QC!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseGCPVLI#2964";$k[$j++]="Coupon 3rd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _QD=$k[--$j];$k[$j++]=_QD;if(_QD!=9){var _QE=$k[--$j];$k[$j++]=$f(_QE+6)}else{$j--;$k[$j++]=0}var _QF=$k[--$j];var _QG=$k[--$j];$k[$j++]=_QG;$k[$j++]=$f(_QF+1);if($f(_QF+1)>_QG.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCP#2968";$k[$j++]="Coupon too short: 3rd Purchase GCP truncated";$k[$j++]=false;return true}var _QH=$k[--$j];var _QI=$k[--$j];$k[$j++]=$G(_QI,_QH,$f(_QI.length-_QH))}}$_.couponexpire=-1;var _QK=$k[--$j];$k[$j++]=_QK;if(_QK.length>=1){var _QL=$k[--$j];$k[$j++]=_QL;if($i($G(_QL,0,1))==3){var _QN=$k[--$j];var _QO=$G(_QN,1,_QN.length-1);$k[$j++]=_QO;if(_QO.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortExpirationDate#2981";$k[$j++]="Coupon too short: Expiration date";$k[$j++]=false;return true}var _QP=$k[--$j];var _QR=$i($G(_QP,2,2));$k[$j++]=_QP;if(_QR<1||_QR>12){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadMonth#2983";$k[$j++]="Invalid month in expiration date";$k[$j++]=false;return true}var _QS=$k[--$j];var _QU=$i($G(_QS,0,2));var _QV=_QU-21;$k[$j++]=_QS;$k[$j++]=_QU;$k[$j++]=_QV;if(_QV>=51){$j--;var _QW=$k[--$j];$k[$j++]=$f(_QW+1900)}else{if($k[--$j]<=-50){var _QY=$k[--$j];$k[$j++]=$f(_QY+2100)}else{var _QZ=$k[--$j];$k[$j++]=$f(_QZ+2e3)}}var _Qa=$k[--$j];$k[$j++]=_Qa%400==0||_Qa%4==0&&_Qa%100!=0;$k[$j++]=Infinity;var _Qb=$k[--$j];var _Qd=$k[--$j]?29:28;$k[$j++]=_Qb;$k[$j++]=31;$k[$j++]=_Qd;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _Qe=$a();var _Qf=$k[--$j];var _Qj=$i($G(_Qf,4,2));$k[$j++]=_Qf;if($g(_Qe,$i($G(_Qf,2,2))-1)<_Qj||_Qj<1){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadDay#2990";$k[$j++]="Invalid day of month in expiration date";$k[$j++]=false;return true}var _Qk=$k[--$j];$_.couponexpire=$i($G(_Qk,0,6));$k[$j++]=$G(_Qk,6,_Qk.length-6)}}var _Qn=$k[--$j];$k[$j++]=_Qn;if(_Qn.length>=1){var _Qo=$k[--$j];$k[$j++]=_Qo;if($i($G(_Qo,0,1))==4){var _Qq=$k[--$j];var _Qr=$G(_Qq,1,_Qq.length-1);$k[$j++]=_Qr;if(_Qr.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStartDate#3002";$k[$j++]="Coupon too short: Start date";$k[$j++]=false;return true}var _Qs=$k[--$j];var _Qu=$i($G(_Qs,2,2));$k[$j++]=_Qs;if(_Qu<1||_Qu>12){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadMonth#3004";$k[$j++]="Invalid month in start date";$k[$j++]=false;return true}var _Qv=$k[--$j];var _Qx=$i($G(_Qv,0,2));var _Qy=_Qx-21;$k[$j++]=_Qv;$k[$j++]=_Qx;$k[$j++]=_Qy;if(_Qy>=51){$j--;var _Qz=$k[--$j];$k[$j++]=$f(_Qz+1900)}else{if($k[--$j]<=-50){var _R1=$k[--$j];$k[$j++]=$f(_R1+2100)}else{var _R2=$k[--$j];$k[$j++]=$f(_R2+2e3)}}var _R3=$k[--$j];$k[$j++]=_R3%400==0||_R3%4==0&&_R3%100!=0;$k[$j++]=Infinity;var _R4=$k[--$j];var _R6=$k[--$j]?29:28;$k[$j++]=_R4;$k[$j++]=31;$k[$j++]=_R6;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _R7=$a();var _R8=$k[--$j];var _RC=$i($G(_R8,4,2));$k[$j++]=_R8;if($g(_R7,$i($G(_R8,2,2))-1)<_RC||_RC<1){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadDay#3011";$k[$j++]="Invalid day of month in start date";$k[$j++]=false;return true}var _RD=$k[--$j];$_.couponstart=$i($G(_RD,0,6));$k[$j++]=_RD;if($_.couponexpire!=-1&&$_.couponexpire<$_.couponstart){$j-=2;$k[$j++]="bwipp.GS1couponExpireDateBeforeStartDate#3014";$k[$j++]="Coupon expires before it starts";$k[$j++]=false;return true}var _RI=$k[--$j];$k[$j++]=$G(_RI,6,_RI.length-6)}}var _RK=$k[--$j];$k[$j++]=_RK;if(_RK.length>=1){var _RL=$k[--$j];$k[$j++]=_RL;if($i($G(_RL,0,1))==5){var _RN=$k[--$j];var _RO=$G(_RN,1,_RN.length-1);$k[$j++]=_RO;if(_RO.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSerialNumberVLI#3026";$k[$j++]="Coupon too short: Missing Serial Number VLI";$k[$j++]=false;return true}var _RP=$k[--$j];var _RQ=$G(_RP,0,1);$k[$j++]=_RP;$k[$j++]=$i(_RQ)+6+1;if($i(_RQ)+6+1>_RP.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSerialNumber#3030";$k[$j++]="Coupon too short: Serial Number truncated";$k[$j++]=false;return true}var _RR=$k[--$j];var _RS=$k[--$j];$k[$j++]=$G(_RS,_RR,$f(_RS.length-_RR))}}var _RU=$k[--$j];$k[$j++]=_RU;if(_RU.length>=1){var _RV=$k[--$j];$k[$j++]=_RV;if($i($G(_RV,0,1))==6){var _RX=$k[--$j];var _RY=$G(_RX,1,_RX.length-1);$k[$j++]=_RY;if(_RY.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLNVLI#3042";$k[$j++]="Coupon too short: Missing Retailer GCP/GLN VLI";$k[$j++]=false;return true}var _RZ=$k[--$j];var _Rb=$i($G(_RZ,0,1));$k[$j++]=_RZ;$k[$j++]=_Rb;if(_Rb<1||_Rb>7){$j-=2;$k[$j++]="bwipp.GS1couponBadRetailerGCPGLNVLI#3045";$k[$j++]="Coupon Retailer GCP/GLN length indicator must be 1-7";$k[$j++]=false;return true}var _Rc=$k[--$j];var _Rd=$k[--$j];$k[$j++]=_Rd;$k[$j++]=$f($f(_Rc+6)+1);if($f($f(_Rc+6)+1)>_Rd.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLN#3049";$k[$j++]="Coupon too short: Retailer GCP/GLN truncated";$k[$j++]=false;return true}var _Re=$k[--$j];var _Rf=$k[--$j];$k[$j++]=$G(_Rf,_Re,$f(_Rf.length-_Re))}}var _Rh=$k[--$j];$k[$j++]=_Rh;if(_Rh.length>=1){var _Ri=$k[--$j];$k[$j++]=_Ri;if($i($G(_Ri,0,1))==9){var _Rk=$k[--$j];var _Rl=$G(_Rk,1,_Rk.length-1);$k[$j++]=_Rl;if(_Rl.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueCode#3061";$k[$j++]="Coupon too short: Missing Save Value Code";$k[$j++]=false;return true}var _Rm=$k[--$j];var _Ro=$i($G(_Rm,0,1));$k[$j++]=_Rm;if(_Ro>6||(_Ro==3||_Ro==4)){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueCode#3064";$k[$j++]="Coupon Save Value Code must be 0,1,2,5 or 6";$k[$j++]=false;return true}var _Rp=$k[--$j];var _Rq=$G(_Rp,1,_Rp.length-1);$k[$j++]=_Rq;if(_Rq.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueAppliesToItem#3070";$k[$j++]="Coupon too short: Missing Save Value Applies to Item";$k[$j++]=false;return true}var _Rr=$k[--$j];$k[$j++]=_Rr;if($i($G(_Rr,0,1))>2){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueAppliesToItem#3073";$k[$j++]="Coupon Save Value Applies to Item must be 0-2";$k[$j++]=false;return true}var _Rt=$k[--$j];var _Ru=$G(_Rt,1,_Rt.length-1);$k[$j++]=_Ru;if(_Ru.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStoreCouponFlag#3079";$k[$j++]="Coupon too short: Missing Store Coupon Flag";$k[$j++]=false;return true}var _Rv=$k[--$j];var _Rw=$G(_Rv,1,_Rv.length-1);$k[$j++]=_Rw;if(_Rw.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortDontMultiplyFlag#3085";$k[$j++]="Coupon too short: Missing Don't Multiply Flag";$k[$j++]=false;return true}var _Rx=$k[--$j];$k[$j++]=_Rx;if($i($G(_Rx,0,1))>1){$j-=2;$k[$j++]="bwipp.GS1couponBadDontMultiplyFlag#3088";$k[$j++]="Don't Multiply Flag must be 0 or 1";$k[$j++]=false;return true}var _Rz=$k[--$j];$k[$j++]=$G(_Rz,1,_Rz.length-1)}}var _S1=$k[--$j];$k[$j++]=_S1;if(_S1.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponUnrecognisedOptionalField#3095";$k[$j++]="Coupon fields must be 1,2,3,4,5,6 or 9, increasing order";$k[$j++]=false;return true}$j--};$_.lintcouponposoffer=function(){var _S2=$k[--$j];$k[$j++]=_S2;$k[$j++]=true;$F(_S2,function(){var _S3=$k[--$j];if(_S3<48||_S3>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric#3104";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _S5=$k[--$j];$k[$j++]=_S5;if(_S5.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFormatCode#3107";$k[$j++]="Coupon too short: Missing Format Code";$k[$j++]=false;return true}var _S6=$k[--$j];var _S7=$G(_S6,0,1);$k[$j++]=_S6;if($ne(_S7,"0")&&$ne(_S7,"1")){$j-=2;$k[$j++]="bwipp.GS1couponBadFormatCode#3110";$k[$j++]="Coupon format must be 0 or 1";$k[$j++]=false;return true}var _S8=$k[--$j];var _S9=$G(_S8,1,_S8.length-1);$k[$j++]=_S9;if(_S9.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFunderVLI#3115";$k[$j++]="Coupon too short: Missing Funder VLI";$k[$j++]=false;return true}var _SA=$k[--$j];var _SC=$i($G(_SA,0,1));$k[$j++]=_SA;$k[$j++]=_SC;if(_SC>6){$j-=3;$k[$j++]="bwipp.GS1couponBadFunderVLI#3118";$k[$j++]="Coupon Funder length indicator must be 0-6";$k[$j++]=false;return true}var _SD=$k[--$j];var _SE=$k[--$j];$k[$j++]=_SE;$k[$j++]=$f($f(_SD+6)+1);if($f($f(_SD+6)+1)>_SE.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortFunder#3122";$k[$j++]="Coupon too short: Truncated Funder ID";$k[$j++]=false;return true}var _SF=$k[--$j];var _SG=$k[--$j];var _SH=$G(_SG,_SF,$f(_SG.length-_SF));$k[$j++]=_SH;if(_SH.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode#3127";$k[$j++]="Coupon too short: Truncated Offer Code";$k[$j++]=false;return true}var _SI=$k[--$j];var _SJ=$G(_SI,6,_SI.length-6);$k[$j++]=_SJ;if(_SJ.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSnVLI#3132";$k[$j++]="Coupon too short: Missing SN VLI";$k[$j++]=false;return true}var _SK=$k[--$j];var _SL=$G(_SK,0,1);$k[$j++]=_SK;$k[$j++]=$i(_SL)+6+1;if($i(_SL)+6+1>_SK.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSn#3137";$k[$j++]="Coupon too short: Truncated SN";$k[$j++]=false;return true}var _SM=$k[--$j];var _SN=$k[--$j];var _SO=$G(_SN,_SM,$f(_SN.length-_SM));$k[$j++]=_SO;if(_SO.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponTooLong#3141";$k[$j++]="Coupon too long";$k[$j++]=false;return true}$j--};$_.lintlatlong=function(){var _SP=$k[--$j];$k[$j++]=_SP;if(_SP.length!=20){$j--;$k[$j++]="bwipp.GS1badGeoLength#3148";$k[$j++]="Invalid length for a geo-location";$k[$j++]=false;return true}var _SQ=$k[--$j];$k[$j++]=_SQ;if($i($G(_SQ,0,10))>18e8){$j--;$k[$j++]="bwipp.GS1badLatitude#3150";$k[$j++]="Invalid value for latitude";$k[$j++]=false;return true}var _SS=$k[--$j];$k[$j++]=_SS;if($i($G(_SS,10,10))>36e8){$j--;$k[$j++]="bwipp.GS1badLongitude#3151";$k[$j++]="Invalid value for longitude";$k[$j++]=false;return true}$j--};if(!bwipp_gs1process.__3161__){$_=Object.create($_);$k[$j++]=Infinity;var _SU=$a(["01","02","03","04","05","06","07","08","09","10","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99"]);for(var _SV=0,_SW=_SU.length;_SV<_SW;_SV++){var _SX=$g(_SU,_SV);$k[$j++]=_SX;$k[$j++]=_SX}$_.aidcmediatype=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__3161__=1;$_=Object.getPrototypeOf($_)}$_.lintmediatype=function(){var _Sc=$g($_.aidcmediatype,$k[--$j])!==undefined;if(!_Sc){$j--;$k[$j++]="bwipp.GS1UnknownMediaType#3164";$k[$j++]="Unknown AIDC media type";$k[$j++]=false;return true}};if(!$_.dontlint){$k[$j++]=true;for(var _Sg=0,_Sf=$_.vals.length-1;_Sg<=_Sf;_Sg+=1){$_.ai=$g($_.ais,_Sg);$_.val=$g($_.vals,_Sg);var _Sn=$g($_.gs1syntax,$_.ai)!==undefined;if(_Sn){var _Sr=$g($g($_.gs1syntax,$_.ai),"parts");$k[$j++]=_Sr;$k[$j++]=0;$F(_Sr,function(){var _Ss=$k[--$j];$k[$j++]=_Ss;if($g(_Ss,"opt")){$j--;$k[$j++]=0}else{var _Sv=$g($k[--$j],"min");$k[$j++]=_Sv}var _Sw=$k[--$j];var _Sx=$k[--$j];$k[$j++]=$f(_Sx+_Sw)});if($k[--$j]>$_.val.length){$j--;$k[$j++]="bwipp.GS1valueTooShort#3178";$k[$j++]="Too short";$k[$j++]=false;break}var _T0=$k[--$j];$k[$j++]=_T0;$k[$j++]=0;$F(_T0,function(){var _T2=$g($k[--$j],"max");var _T3=$k[--$j];$k[$j++]=$f(_T3+_T2)});if($k[--$j]<$_.val.length){$j--;$k[$j++]="bwipp.GS1valueTooLong#3181";$k[$j++]="Too long";$k[$j++]=false;break}$F($k[--$j],function(){$_.props=$k[--$j];var _T9=$g($_.props,"max");var _TA=$_.val;var _TB=_TA.length;if(_T9>_TA.length){var _=_TB;_TB=_T9;_T9=_}$_.eval=$G($_.val,0,_T9);var _TG=$_.eval.length;$_.val=$G($_.val,_TG,$_.val.length-_TG);if($_.eval.length==0){if($nt($g($_.props,"opt"))){$j--;$k[$j++]="bwipp.GS1valueTooShort#3190";$k[$j++]="Too short";$k[$j++]=false;return true}}else{if($_.eval.length<$g($_.props,"min")){$j--;$k[$j++]="bwipp.GS1valueTooShort#3194";$k[$j++]="Too short";$k[$j++]=false;return true}var _TP=new Map([["N","lintnumeric"],["X","lintcset82"],["Y","lintcset39"]]);$k[$j++]=$_.eval;if($_[$g(_TP,$g($_.props,"cset"))]()===true){return true}$F($g($_.props,"linters"),function(){var _TZ=$_[$k[--$j]];$k[$j++]=$_.eval;if(_TZ()===true){return true}})}});var _Ta=$k[--$j];$k[$j++]=_Ta;if($nt(_Ta)){break}if($_.val.length!=0){$j--;$k[$j++]="bwipp.GS1valueTooLong#3202";$k[$j++]="Too long";$k[$j++]=false;break}}else{$j--;$k[$j++]="bwipp.GS1unknownAI#3205";$k[$j++]="Unrecognised AI";$k[$j++]=false;break}}if($nt($k[--$j])){var _Td=$k[--$j];var _Tf=$s(_Td.length+$_.ai.length+5);$P(_Tf,0,"AI ");$P(_Tf,3,$_.ai);$P(_Tf,3+$_.ai.length,": ");$P(_Tf,5+$_.ai.length,_Td);$k[$j++]=_Tf;bwipp_raiseerror()}$_.aiexists=function(){$_.this=$k[--$j];$_.patt=$k[--$j];for(var _Tl=0,_Tm=1;_Tl<_Tm;_Tl++){var _Tp=$g($_.aivals,$_.patt)!==undefined;if(_Tp){$k[$j++]=true;break}if($_.patt.length==4){if($eq($G($_.patt,3,1),"n")){var _Tv=$eq($G($_.patt,2,1),"n")?2:3;$_.pfxlen=_Tv;var _Tw=$_.ais;$k[$j++]=false;for(var _Tx=0,_Ty=_Tw.length;_Tx<_Ty;_Tx++){var _Tz=$g(_Tw,_Tx);$k[$j++]=_Tz;if($ne(_Tz,$_.this)&&_Tz.length==4){if($eq($G($k[--$j],0,$_.pfxlen),$G($_.patt,0,$_.pfxlen))){$j--;$k[$j++]=true}}else{$j--}}break}$k[$j++]=false;break}$k[$j++]=false;break}};var _U7=$_.vals;$_.aivals=new Map;for(var _UA=0,_U9=$_.vals.length-1;_UA<=_U9;_UA+=1){$_.ai=$g($_.ais,_UA);$_.val=$g($_.vals,_UA);var _UH=$g($_.aivals,$_.ai)!==undefined;if(_UH){if($ne($g($_.aivals,$_.ai),$_.val)){var _UN=$s($_.ai.length+40);$P(_UN,0,"Repeated AIs (");$P(_UN,14,$_.ai);$P(_UN,14+$_.ai.length,") must have the same value");$k[$j++]="bwipp.GS1repeatedDifferingAIs#3255";$k[$j++]=_UN;bwipp_raiseerror()}}else{$p($_.aivals,$_.ai,$_.val)}}for(var _UV=0,_UU=$_.vals.length-1;_UV<=_UU;_UV+=1){$_.ai=$g($_.ais,_UV);var _Ua=$g($_.gs1syntax,$_.ai);var _Ub=$g(_Ua,"ex")!==undefined;$k[$j++]=_Ua;$k[$j++]="ex";if(_Ub){var _Uc=$k[--$j];$F($g($k[--$j],_Uc),function(){$_.patt=$k[--$j];$k[$j++]=$_.patt;$k[$j++]=$_.ai;$_.aiexists();if($k[--$j]){var _Ul=$s($_.ai.length+$_.patt.length+36);$P(_Ul,0,"AIs (");$P(_Ul,5,$_.ai);$P(_Ul,5+$_.ai.length,") and (");$P(_Ul,12+$_.ai.length,$_.patt);$P(_Ul,12+$_.ai.length+$_.patt.length,") are mutually exclusive");$k[$j++]="bwipp.GS1exclusiveAIs#3275";$k[$j++]=_Ul;bwipp_raiseerror()}})}else{$j-=2}if($_.lintreqs){var _Uv=$g($_.gs1syntax,$_.ai);var _Uw=$g(_Uv,"req")!==undefined;$k[$j++]=_Uv;$k[$j++]="req";if(_Uw){var _Ux=$k[--$j];$F($g($k[--$j],_Ux),function(){var _V0=$k[--$j];$k[$j++]=false;$F(_V0,function(){$k[$j++]=$_.ai;$_.aiexists();if($k[--$j]){$j--;$k[$j++]=true}});if($nt($k[--$j])){var _V5=$s($_.ai.length+47);$P(_V5,0,"One of more requisite AIs for AI (");$P(_V5,34,$_.ai);$P(_V5,34+$_.ai.length,") are missing");$k[$j++]="bwipp.GS1missingAIs#3292";$k[$j++]=_V5;bwipp_raiseerror()}})}else{$j-=2}}}}$k[$j++]=$_.ais;$k[$j++]=$_.vals;$k[$j++]=$_.fncs;$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_renmatrix(){if($_.bwipjs_dontdraw){return}$_=Object.create($_);$_.width=1;$_.height=1;$_.barcolor="unset";$_.backgroundcolor="unset";$_.colormap="unset";$_.dotty=false;$_.inkspread=0;$_.inkspreadh=0;$_.inkspreadv=0;$_.includetext=false;$_.txt=$a([]);$_.textcolor="unset";$_.textxalign="unset";$_.textyalign="unset";$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=0;$_.textgaps=0;$_.alttext="";$F($k[--$j],function(){var _3=$k[--$j];$_[$k[--$j]]=_3});$k[$j++]=$_.opt;delete $_["opt"];$k[$j++]=$_;bwipp_processoptions();$j--;if($_.inkspread!=0){$_.inkspreadh=$_.inkspread}if($_.inkspread!=0){$_.inkspreadv=$_.inkspread}if($_.textsize<=0){$k[$j++]="bwipp.renmatrixBadTextsize#3602";$k[$j++]="The font size must be greater than zero";bwipp_raiseerror()}$_.xyget=function(){var _C=$k[--$j];var _F=$g($_.pixs,$f($k[--$j]+_C*$_.pixx));$k[$j++]=_F};$_.cget=function(){var _H=$k[--$j];var _K=$g($_.cache,$f($k[--$j]+_H*$_.pixx));var _L=$k[--$j];$k[$j++]=$an(_L,_K)};$_.cput=function(){var _M=$k[--$j];$k[$j++]=_M;if(_M%4==0){var _N=$k[--$j];var _O=$k[--$j];var _P=$k[--$j];var _Q=$_.pixx;var _R=$_.cache;$p(_R,$f(_P+_O*_Q),$or($g(_R,$f(_P+_O*_Q)),_N))}else{$j-=3}};$_.abcd=function(){$k[$j++]=$s(4);$k[$j++]=0;$k[$j++]=Infinity;var _U=$k[--$j];var _V=$k[--$j];var _W=$k[--$j];var _X=$k[--$j];var _a=$f($k[--$j]+_X*$_.pixx);$k[$j++]=_W;$k[$j++]=_V;$k[$j++]=_U;$k[$j++]=_a;$q($G($_.pixs,_a,2));var _d=$k[--$j];var _e=$k[--$j];var _i=$G($_.pixs,$f($k[--$j]+$_.pixx),2);$k[$j++]=_e;$k[$j++]=_d;$q(_i);var _j=$a();for(var _k=0,_l=_j.length;_k<_l;_k++){var _n=$k[--$j];var _o=$k[--$j];$p(_o,_n,$f($g(_j,_k)+48));$k[$j++]=_o;$k[$j++]=$f(_n+1)}$j--};$_.right=function(){if($_.dir!=1){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.x=$_.x+1;$_.dir=1};$_.down=function(){if($_.dir!=2){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.y=$_.y+1;$_.dir=2};$_.left=function(){if($_.dir!=4){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.x=$_.x-1;$_.dir=4};$_.up=function(){if($_.dir!=8){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.y=$_.y-1;$_.dir=8};$_.trace=function(){$_.y=$k[--$j];$_.x=$k[--$j];$k[$j++]="dir";$k[$j++]=$f($_.x+1);$k[$j++]=$f($_.y+1);$_.xyget();var _1Q=$k[--$j]==1?8:4;$_[$k[--$j]]=_1Q;$_.sx=$_.x;$_.sy=$_.y;$_.sdir=$_.dir;$k[$j++]=Infinity;for(;;){$k[$j++]=$_.x;$k[$j++]=$_.y;$_.abcd();for(var _1X=0,_1Y=1;_1X<_1Y;_1X++){var _1Z=$k[--$j];$k[$j++]=_1Z;if($eq(_1Z,"0001")||($eq(_1Z,"0011")||$eq(_1Z,"1011"))){$j--;$_.right();break}var _1a=$k[--$j];$k[$j++]=_1a;if($eq(_1a,"0010")||($eq(_1a,"1010")||$eq(_1a,"1110"))){$j--;$_.down();break}var _1b=$k[--$j];$k[$j++]=_1b;if($eq(_1b,"1000")||($eq(_1b,"1100")||$eq(_1b,"1101"))){$j--;$_.left();break}var _1c=$k[--$j];$k[$j++]=_1c;if($eq(_1c,"0100")||($eq(_1c,"0101")||$eq(_1c,"0111"))){$j--;$_.up();break}var _1d=$k[--$j];$k[$j++]=_1d;if($eq(_1d,"1001")){if($_.dir==2){$j--;$_.left();break}else{$j--;$_.right();break}}else{if($_.dir==1){$j--;$_.down();break}else{$j--;$_.up();break}}}if($eq($_.x,$_.sx)&&$eq($_.y,$_.sy)&&$_.dir==$_.sdir){break}}$as($a($m()));var _1o=$k[--$j];var _1p=$k[--$j];$k[$j++]=_1o;$k[$j++]=_1p;$j--};$_.drawlayer=function(){$_.pixsorig=$_.pixs;$_.pixs=$k[--$j];$k[$j++]=Infinity;for(var _1t=0,_1u=$_.pixx+2;_1t<_1u;_1t++){$k[$j++]=0}for(var _1y=0,_1z=$_.pixx,_1x=$_.pixs.length-1;_1z<0?_1y>=_1x:_1y<=_1x;_1y+=_1z){$k[$j++]=0;$q($G($_.pixs,_1y,$_.pixx));$k[$j++]=0}for(var _24=0,_25=$_.pixx+2;_24<_25;_24++){$k[$j++]=0}$_.pixs=$a();$_.pixx=$_.pixx+2;$_.pixy=$_.pixy+2;$k[$j++]=Infinity;for(var _2A=0,_2B=$_.pixs.length;_2A<_2B;_2A++){$k[$j++]=0}$_.cache=$a();$k[$j++]=Infinity;for(var _2F=0,_2E=$_.pixy-2;_2F<=_2E;_2F+=1){$_.j=_2F;for(var _2I=0,_2H=$_.pixx-2;_2I<=_2H;_2I+=1){$_.i=_2I;$k[$j++]="k";$k[$j++]=$_.i;$k[$j++]=$_.j;$_.abcd();var _2L=$k[--$j];$_[$k[--$j]]=_2L;if($eq($_.k,"0001")||$eq($_.k,"1001")){$k[$j++]=8;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.cget();if($k[--$j]==0){$k[$j++]=$_.i;$k[$j++]=$_.j;$_.trace()}}if($eq($_.k,"1110")){$k[$j++]=4;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.cget();if($k[--$j]==0){$k[$j++]=$_.i;$k[$j++]=$_.j;$_.trace()}}}}$_.paths=$a();$_.pixx=$_.pixx-2;$_.pixy=$_.pixy-2;$$.newpath();var _2d=$_.paths;for(var _2e=0,_2f=_2d.length;_2e<_2f;_2e++){$_.p=$g(_2d,_2e);$_.len=$_.p.length;$q($g($_.p,$_.len-1));$q($g($_.p,0));for(var _2p=0,_2o=$_.len-1;_2p<=_2o;_2p+=1){$_.i=_2p;$q($g($_.p,($_.i+1)%$_.len));var _2u=$k[--$j];var _2v=$k[--$j];var _2w=$k[--$j];var _2x=$k[--$j];var _2y=$k[--$j];var _2z=$k[--$j];$k[$j++]=_2x;$k[$j++]=_2w;$k[$j++]=_2v;$k[$j++]=_2u;$k[$j++]=_2z;$k[$j++]=_2x;$k[$j++]=$_.inkspreadh;if($lt(_2u,_2y)){var _31=$k[--$j];var _32=$k[--$j];$k[$j++]=$f(_32+_31)}else{var _33=$k[--$j];var _34=$k[--$j];$k[$j++]=$f(_34-_33)}var _35=$k[--$j];var _36=$k[--$j];var _37=$k[--$j];var _38=$k[--$j];var _39=$k[--$j];$k[$j++]=_39;$k[$j++]=_35;$k[$j++]=_38;$k[$j++]=_37;$k[$j++]=_39;$k[$j++]=$_.inkspreadv;if($gt(_38,_36)){var _3B=$k[--$j];var _3C=$k[--$j];$k[$j++]=$f(_3C+_3B)}else{var _3D=$k[--$j];var _3E=$k[--$j];$k[$j++]=$f(_3E-_3D)}var _3F=$k[--$j];var _3G=$k[--$j];var _3H=$k[--$j];var _3I=$k[--$j];$k[$j++]=_3H;$k[$j++]=_3G;$k[$j++]=_3I;$k[$j++]=$f($_.pixy-_3F);if($_.i==0){var _3L=$k[--$j];$$.moveto($k[--$j],_3L)}else{var _3N=$k[--$j];$$.lineto($k[--$j],_3N)}}$$.closepath();$j-=4}$$.fill();$_.pixs=$_.pixsorig};$_.drawlayerdots=function(){$_.pixsorig=$_.pixs;$_.pixs=$k[--$j];$$.newpath();for(var _3U=0,_3T=$_.pixs.length-1;_3U<=_3T;_3U+=1){$_.x=_3U%$_.pixx;$_.y=~~(_3U/$_.pixx);$k[$j++]=$_.x;$k[$j++]=$_.y;$_.xyget();if($k[--$j]==1){$$.moveto($f($_.x+.5),$f($_.pixy-$_.y-.5));$$.arc($f($_.x+.5),$f($_.pixy-$_.y-.5),$f(.5-$_.inkspread),0,360,1)}}$$.fill();$_.pixs=$_.pixsorig};$$.save();$_.inkspread=$_.inkspread/2;$_.inkspreadh=$_.inkspreadh/2;$_.inkspreadv=$_.inkspreadv/2;var _3l=$$.currpos();$$.translate(_3l.x,_3l.y);$$.scale($_.width/$_.pixx*72,$_.height/$_.pixy*72);$$.moveto(0,0);$$.lineto($_.pixx,0);$$.lineto($_.pixx,$_.pixy);$$.lineto(0,$_.pixy);$$.closepath();if($eq($_.colormap,"unset")){var _3w=new Map([[1,$_.barcolor]]);$_.colormap=_3w}var _3x=$_.colormap;for(var _42=_3x.size,_41=_3x.keys(),_40=0;_40<_42;_40++){var _3y=_41.next().value;var _3z=_3x.get(_3y);$k[$j++]=_3y;$k[$j++]=_3z;if($ne(_3z,"unset")){$$.setcolor($k[--$j])}else{$j--}$_.key=$k[--$j];$k[$j++]=Infinity;var _45=$_.pixs;for(var _46=0,_47=_45.length;_46<_47;_46++){var _4A=$eq($g(_45,_46),$_.key)?1:0;$k[$j++]=_4A}var _4B=$a();$k[$j++]=_4B;if($_.dotty){$_.drawlayerdots()}else{$_.drawlayer()}}if($ne($_.textcolor,"unset")){$$.setcolor($_.textcolor)}if($_.includetext){if($eq($_.textxalign,"unset")&&$eq($_.textyalign,"unset")&&$eq($_.alttext,"")){$_.s=0;$_.fn="";var _4J=$_.txt;for(var _4K=0,_4L=_4J.length;_4K<_4L;_4K++){$F($g(_4J,_4K));var _4N=$k[--$j];var _4O=$k[--$j];$k[$j++]=_4O;$k[$j++]=_4N;if(_4N!=$_.s||$ne(_4O,$_.fn)){var _4R=$k[--$j];$k[$j++]=_4R;if(_4R<=0){$j-=5;$k[$j++]="bwipp.renmatrixFontTooSmall#3803";$k[$j++]="The font size is too small";bwipp_raiseerror()}var _4S=$k[--$j];var _4T=$k[--$j];$_.s=_4S;$_.fn=_4T;$$.selectfont(_4T,_4S)}else{$j-=2}var _4U=$k[--$j];$$.moveto($k[--$j],_4U);$$.show($k[--$j],0,0)}}else{$$.selectfont($_.textfont,$_.textsize);if($eq($_.alttext,"")){$k[$j++]=Infinity;var _4a=$_.txt;for(var _4b=0,_4c=_4a.length;_4b<_4c;_4b++){$F($g($g(_4a,_4b),0))}$_.txt=$a();$_.tstr=$s($_.txt.length);for(var _4k=0,_4j=$_.txt.length-1;_4k<=_4j;_4k+=1){$p($_.tstr,_4k,$g($_.txt,_4k))}}else{$_.tstr=$_.alttext}if($_.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _4q=$$.pathbbox();$$.restore();$k[$j++]=_4q.ury}$_.textascent=$k[--$j];var _4t=$$.stringwidth($_.tstr);$_.textwidth=$f(_4t.w+($_.tstr.length-1)*$_.textgaps);$_.textxpos=$f($_.textxoffset+$f($_.pixx-$_.textwidth)/2);if($eq($_.textxalign,"left")){$_.textxpos=$_.textxoffset}if($eq($_.textxalign,"right")){$_.textxpos=$f($_.pixx-$_.textxoffset-$_.textwidth)}if($eq($_.textxalign,"offleft")){$_.textxpos=-$f($_.textwidth+$_.textxoffset)}if($eq($_.textxalign,"offright")){$_.textxpos=$_.pixx+$_.textxoffset}if($eq($_.textxalign,"justify")&&$_.textwidth<$_.pixx){$_.textxpos=0;$_.textgaps=$f($_.pixx-$_.textwidth)/($_.tstr.length-1)}$_.textypos=-$f($f($_.textyoffset+$_.textascent)+1);if($eq($_.textyalign,"above")){$_.textypos=$_.textyoffset+$_.pixy+1}if($eq($_.textyalign,"center")){$_.textypos=$f($_.textyoffset+$f($_.pixy-$_.textascent)/2)}$$.moveto($_.textxpos,$_.textypos);$$.show($_.tstr,$_.textgaps,0)}}$$.restore();$_=Object.getPrototypeOf($_)}function bwipp_ean5(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=0;$_.textyoffset=null;$_.height=.7;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.textyoffset,null)){$_.textyoffset=$f($_.height*72+1)}bwipp_loadctx(bwipp_ean5);if($_.barcode.length!=5){$k[$j++]="bwipp.ean5badLength#4003";$k[$j++]="EAN-5 add-on must be 5 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _6=$k[--$j];if(_6<48||_6>57){$k[$j++]="bwipp.ean5badCharacter#4007";$k[$j++]="EAN-5 add-on must contain only digits";bwipp_raiseerror()}});if(!bwipp_ean5.__4027__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$_.barchars="0123456789";$_.mirrormaps=$a(["11000","10100","10010","10001","01100","00110","00011","01010","01001","00101"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean5.$ctx[id]=$_[id]);bwipp_ean5.__4027__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _A=0;_A<=4;_A+=1){$_.i=_A;$_.barchar=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){$_.checksum=$f($_.barchar*3+$_.checksum)}else{$_.checksum=$f($_.barchar*9+$_.checksum)}}$_.checksum=$_.checksum%10;$_.mirrormap=$g($_.mirrormaps,$_.checksum);$_.sbs=$s(31);$_.txt=$a(5);for(var _P=0;_P<=4;_P+=1){$_.i=_P;if($_.i==0){$P($_.sbs,0,$g($_.encs,10))}else{$P($_.sbs,($_.i-1)*6+7,$g($_.encs,11))}$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _o=0,_n=$_.enclen-1;_o<=_n;_o+=1){$_.j=_o;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,$_.i*6+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*9+13+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1B=$_.sbs;for(var _1C=0,_1D=_1B.length;_1C<_1D;_1C++){$k[$j++]=$g(_1B,_1C)-48}var _1F=$a();$k[$j++]=Infinity;for(var _1G=0,_1H=16;_1G<_1H;_1G++){$k[$j++]=$_.height}var _1J=$a();$k[$j++]=Infinity;for(var _1K=0,_1L=16;_1K<_1L;_1K++){$k[$j++]=0}var _1M=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_1F;$k[$j++]="bhs";$k[$j++]=_1J;$k[$j++]="bbs";$k[$j++]=_1M;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";$k[$j++]=10;$k[$j++]="guardrightypos";$k[$j++]=$f($_.textyoffset+4);$k[$j++]="bordertop";$k[$j++]=10;var _1R=$d();$k[$j++]=_1R;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean2(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=0;$_.textyoffset=null;$_.height=.7;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.textyoffset,null)){$_.textyoffset=$f($_.height*72+1)}bwipp_loadctx(bwipp_ean2);if($_.barcode.length!=2){$k[$j++]="bwipp.ean2badLength#4146";$k[$j++]="EAN-2 add-on must be 2 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _6=$k[--$j];if(_6<48||_6>57){$k[$j++]="bwipp.ean2badCharacter#4150";$k[$j++]="EAN-2 add-on must contain only digits";bwipp_raiseerror()}});if(!bwipp_ean2.__4167__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$_.barchars="0123456789";$_.mirrormaps=$a(["00","01","10","11"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean2.$ctx[id]=$_[id]);bwipp_ean2.__4167__=1;$_=Object.getPrototypeOf($_)}$_.mirrormap=$g($_.mirrormaps,$i($G($_.barcode,0,2))%4);$_.sbs=$s(13);$_.txt=$a(2);for(var _G=0;_G<=1;_G+=1){$_.i=_G;if($_.i==0){$P($_.sbs,0,$g($_.encs,10))}else{$P($_.sbs,($_.i-1)*6+7,$g($_.encs,11))}$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _f=0,_e=$_.enclen-1;_f<=_e;_f+=1){$_.j=_f;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,$_.i*6+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*9+13+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _12=$_.sbs;for(var _13=0,_14=_12.length;_13<_14;_13++){$k[$j++]=$g(_12,_13)-48}var _16=$a();$k[$j++]=Infinity;for(var _17=0,_18=12;_17<_18;_17++){$k[$j++]=$_.height}var _1A=$a();$k[$j++]=Infinity;for(var _1B=0,_1C=12;_1B<_1C;_1B++){$k[$j++]=0}var _1D=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_16;$k[$j++]="bhs";$k[$j++]=_1A;$k[$j++]="bbs";$k[$j++]=_1D;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";$k[$j++]=10;$k[$j++]="guardrightypos";$k[$j++]=$f($_.textyoffset+4);$k[$j++]="bordertop";$k[$j++]=10;var _1I=$d();$k[$j++]=_1I;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean13(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=-10;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_ean13);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=12&&$_.barcode.length!=13){$k[$j++]="bwipp.ean13badLength#4288";$k[$j++]="EAN-13 must be 12 or 13 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.ean13badCharacter#4292";$k[$j++]="EAN-13 must contain only digits";bwipp_raiseerror()}});if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.ean13badAddOnLength#4296";$k[$j++]="Add-on for EAN-13 must be 2 or 5 digits";bwipp_raiseerror()}$_.pad=$s(13);$_.checksum=0;for(var _E=0;_E<=11;_E+=1){$_.i=_E;$_.barchar=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){$_.checksum=$f($_.barchar+$_.checksum)}else{$_.checksum=$f($_.barchar*3+$_.checksum)}}$_.checksum=$f(10-$_.checksum%10)%10;if($_.barcode.length==13){if($g($_.barcode,12)!=$f($_.checksum+48)){$k[$j++]="bwipp.ean13badCheckDigit#4314";$k[$j++]="Incorrect EAN-13 check digit provided";bwipp_raiseerror()}}$P($_.pad,0,$_.barcode);$p($_.pad,12,$f($_.checksum+48));$_.barcode=$_.pad;if(!bwipp_ean13.__4337__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$_.barchars="0123456789";$_.mirrormaps=$a(["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean13.$ctx[id]=$_[id]);bwipp_ean13.__4337__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(59);$_.txt=$a(13);$P($_.sbs,0,$g($_.encs,10));$_.mirrormap=$g($_.mirrormaps,$g($_.barcode,0)-48);$p($_.txt,0,$a([$G($_.barcode,0,1),$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]));for(var _r=1;_r<=6;_r+=1){$_.i=_r;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i-1)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _18=0,_17=$_.enclen-1;_18<=_17;_18+=1){$_.j=_18;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,($_.i-1)*4+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*7+14+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,(7-1)*4+3,$g($_.encs,11));for(var _1Y=7;_1Y<=12;_1Y+=1){$_.i=_1Y;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,($_.i-1)*4+8,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*7+18+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,56,$g($_.encs,12));$k[$j++]=Infinity;var _1y=$_.sbs;for(var _1z=0,_20=_1y.length;_1z<_20;_1z++){$k[$j++]=$g(_1y,_1z)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _26=0,_27=12;_26<_27;_26++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _2B=0,_2C=12;_2B<_2C;_2B++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _2H=0,_2I=12;_2H<_2I;_2H++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _2J=0,_2K=12;_2J<_2K;_2J++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _2M=0,_2N=30;_2M<_2N;_2M++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _2Q=0,_2R=30;_2Q<_2R;_2Q++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=95+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _2f=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_2f;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _2w=$k[--$j];$k[$j++]=$f(_2w-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _31=$k[--$j];$k[$j++]=$f(_31+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}var _3E=new Map([["ren",bwipp_renlinear],["sbs",$_.sbs],["bhs",$_.bhs],["bbs",$_.bbs],["txt",$_.txt],["opt",$_.options],["guardrightpos",10],["guardrightypos",$_.guardrightypos],["borderbottom",5]]);$k[$j++]=_3E;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean8(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=4;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_ean8);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=7&&$_.barcode.length!=8){$k[$j++]="bwipp.ean8badLength#4505";$k[$j++]="EAN-8 must be 7 or 8 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.ean8badCharacter#4509";$k[$j++]="EAN-8 must contain only digits";bwipp_raiseerror()}});if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.ean8badAddOnLength#4513";$k[$j++]="Add-on for EAN-8 must be 2 or 5 digits";bwipp_raiseerror()}$_.pad=$s(8);$_.checksum=0;for(var _E=0;_E<=6;_E+=1){$_.i=_E;$_.barchar=$f($g($_.barcode,$_.i)-48);if($_.i%2!=0){$_.checksum=$f($_.barchar+$_.checksum)}else{$_.checksum=$f($_.barchar*3+$_.checksum)}}$_.checksum=$f(10-$_.checksum%10)%10;if($_.barcode.length==8){if($g($_.barcode,7)!=$f($_.checksum+48)){$k[$j++]="bwipp.ean8badCheckDigit#4531";$k[$j++]="Incorrect EAN-8 check digit provided";bwipp_raiseerror()}}$P($_.pad,0,$_.barcode);$p($_.pad,7,$f($_.checksum+48));$_.barcode=$_.pad;if(!bwipp_ean8.__4548__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean8.$ctx[id]=$_[id]);bwipp_ean8.__4548__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(43);$_.txt=$a(8);$P($_.sbs,0,$g($_.encs,10));for(var _e=0;_e<=3;_e+=1){$_.i=_e;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,4*4+3,$g($_.encs,11));for(var _14=4;_14<=7;_14+=1){$_.i=_14;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+8,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+$_.textxoffset+4,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,40,$g($_.encs,12));$k[$j++]=Infinity;var _1U=$_.sbs;for(var _1V=0,_1W=_1U.length;_1V<_1W;_1V++){$k[$j++]=$g(_1U,_1V)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _1c=0,_1d=8;_1c<_1d;_1c++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _1h=0,_1i=8;_1h<_1i;_1h++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _1n=0,_1o=8;_1n<_1o;_1n++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _1p=0,_1q=8;_1p<_1q;_1p++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _1s=0,_1t=22;_1s<_1t;_1s++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _1w=0,_1x=22;_1w<_1x;_1w++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=67+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _2B=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_2B;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _2S=$k[--$j];$k[$j++]=$f(_2S-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _2X=$k[--$j];$k[$j++]=$f(_2X+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}var _2k=new Map([["ren",bwipp_renlinear],["sbs",$_.sbs],["bhs",$_.bhs],["bbs",$_.bbs],["txt",$_.txt],["opt",$_.options],["guardleftpos",10],["guardrightpos",10],["guardrightypos",$_.guardrightypos],["borderbottom",5]]);$k[$j++]=_2k;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_upca(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=-7;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_upca);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length==7||$_.barcode.length==8){$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.upcAupcEbadCharacter#4706";$k[$j++]="UPC-E must contain only digits";bwipp_raiseerror()}});var _B=$g($_.barcode,0);if(_B!=48&&_B!=49){$k[$j++]="bwipp.upcAupcEbadNumberSystem#4710";$k[$j++]="UPC-E must have number system 0 or 1";bwipp_raiseerror()}for(var _C=0,_D=1;_C<_D;_C++){var _F=$_.barcode.length==8?12:11;$_.upcacode=$s(_F);if($f($g($_.barcode,6)-48)<=2){$P($_.upcacode,0,$G($_.barcode,0,3));$P($_.upcacode,3,$G($_.barcode,6,1));$P($_.upcacode,4,"0000");$P($_.upcacode,8,$G($_.barcode,3,3));break}if($f($g($_.barcode,6)-48)==3){$P($_.upcacode,0,$G($_.barcode,0,4));$P($_.upcacode,4,"00000");$P($_.upcacode,9,$G($_.barcode,4,2));break}if($f($g($_.barcode,6)-48)==4){$P($_.upcacode,0,$G($_.barcode,0,5));$P($_.upcacode,5,"00000");$P($_.upcacode,10,$G($_.barcode,5,1));break}if($f($g($_.barcode,6)-48)>=5){$P($_.upcacode,0,$G($_.barcode,0,6));$P($_.upcacode,6,"0000");$P($_.upcacode,10,$G($_.barcode,6,1));break}}if($_.barcode.length==8){$P($_.upcacode,11,$G($_.barcode,7,1))}$_.barcode=$_.upcacode}if($_.barcode.length!=11&&$_.barcode.length!=12){$k[$j++]="bwipp.upcAbadLength#4748";$k[$j++]="UPC-A must be 11 or 12 digits";bwipp_raiseerror()}var _11=$_.barcode;for(var _12=0,_13=_11.length;_12<_13;_12++){var _14=$g(_11,_12);if(_14<48||_14>57){$k[$j++]="bwipp.upcAbadCharacter#4752";$k[$j++]="UPC-A must contain only digits";bwipp_raiseerror()}}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.upcAbadAddOnLength#4756";$k[$j++]="Add-on for UPC-A must be 2 or 5 digits";bwipp_raiseerror()}$_.pad=$s(12);$_.checksum=0;for(var _19=0;_19<=10;_19+=1){$_.i=_19;$_.barchar=$g($_.barcode,$_.i)-48;if($_.i%2!=0){$_.checksum=$_.checksum+$_.barchar}else{$_.checksum=$_.checksum+$_.barchar*3}}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==12){if($g($_.barcode,11)!=$_.checksum+48){$k[$j++]="bwipp.upcAbadCheckDigit#4774";$k[$j++]="Incorrect UPC check digit provided";bwipp_raiseerror()}}$P($_.pad,0,$_.barcode);$p($_.pad,11,$_.checksum+48);$_.barcode=$_.pad;if(!bwipp_upca.__4791__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_upca.$ctx[id]=$_[id]);bwipp_upca.__4791__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(59);$_.txt=$a(12);$P($_.sbs,0,$g($_.encs,10));for(var _1Z=0;_1Z<=5;_1Z+=1){$_.i=_1Z;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+3,$_.enc);if($_.i==0){$p($_.txt,0,$a([$G($_.barcode,0,1),$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize-2]))}else{$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+11+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}}$P($_.sbs,6*4+3,$g($_.encs,11));for(var _28=6;_28<=11;_28+=1){$_.i=_28;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+8,$_.enc);if($_.i==11){$p($_.txt,11,$a([$G($_.barcode,11,1),$_.textxoffset+104,$_.textyoffset,$_.textfont,$_.textsize-2]))}else{$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+$_.textxoffset+15,$_.textyoffset,$_.textfont,$_.textsize]))}}$P($_.sbs,56,$g($_.encs,12));$k[$j++]=Infinity;var _2h=$_.sbs;for(var _2i=0,_2j=_2h.length;_2i<_2j;_2i++){$k[$j++]=$g(_2h,_2i)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;for(var _2n=0,_2o=4;_2n<_2o;_2n++){$k[$j++]=$_.height}for(var _2q=0,_2r=10;_2q<_2r;_2q++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _2v=0,_2w=10;_2v<_2w;_2v++){$k[$j++]=$f($_.height-.075)}for(var _2y=0,_2z=4;_2y<_2z;_2y++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _32=0,_33=10;_32<_33;_32++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _34=0,_35=10;_34<_35;_34++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _37=0,_38=30;_37<_38;_37++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _3B=0,_3C=30;_3B<_3C;_3B++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=95+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _3Q=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_3Q;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _3h=$k[--$j];$k[$j++]=$f(_3h-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _3m=$k[--$j];$k[$j++]=$f(_3m+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}var _3z=new Map([["ren",bwipp_renlinear],["sbs",$_.sbs],["bhs",$_.bhs],["bbs",$_.bbs],["txt",$_.txt],["opt",$_.options],["guardrightpos",10],["guardrightypos",$_.guardrightypos],["borderbottom",5]]);$k[$j++]=_3z;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_upce(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=-7;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_upce);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length==11||$_.barcode.length==12){$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.upcEupcAbadCharacter#4956";$k[$j++]="UPC-A must contain only digits";bwipp_raiseerror()}});for(var _A=0,_B=1;_A<_B;_A++){var _D=$_.barcode.length==12?8:7;$_.upcecode=$s(_D);if($f($g($_.barcode,3)-48)<=2&&$eq($G($_.barcode,4,4),"0000")){$P($_.upcecode,0,$G($_.barcode,0,3));$P($_.upcecode,3,$G($_.barcode,8,3));$P($_.upcecode,6,$G($_.barcode,3,1));break}if($eq($G($_.barcode,4,5),"00000")){$P($_.upcecode,0,$G($_.barcode,0,4));$P($_.upcecode,4,$G($_.barcode,9,2));$P($_.upcecode,6,"3");break}if($eq($G($_.barcode,5,5),"00000")){$P($_.upcecode,0,$G($_.barcode,0,5));$P($_.upcecode,5,$G($_.barcode,10,1));$P($_.upcecode,6,"4");break}if($f($g($_.barcode,10)-48)>=5&&$eq($G($_.barcode,6,4),"0000")){$P($_.upcecode,0,$G($_.barcode,0,6));$P($_.upcecode,6,$G($_.barcode,10,1));break}$k[$j++]="bwipp.upcEupcAnotCompressible#4984";$k[$j++]="UPC-A cannot be converted to a UPC-E";bwipp_raiseerror()}if($_.barcode.length==12){$P($_.upcecode,7,$G($_.barcode,11,1))}$_.barcode=$_.upcecode}if($_.barcode.length!=7&&$_.barcode.length!=8){$k[$j++]="bwipp.upcEbadLength#4994";$k[$j++]="UPC-E must be 7 or 8 digits";bwipp_raiseerror()}var _11=$_.barcode;for(var _12=0,_13=_11.length;_12<_13;_12++){var _14=$g(_11,_12);if(_14<48||_14>57){$k[$j++]="bwipp.upcEbadCharacter#4998";$k[$j++]="UPC-E must contain only digits";bwipp_raiseerror()}}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.upcEbadAddOnLength#5002";$k[$j++]="Add-on for UPC-E must be 2 or 5 digits";bwipp_raiseerror()}var _19=$g($_.barcode,0);if(_19!=48&&_19!=49){$k[$j++]="bwipp.upcEbadNumberSystem#5007";$k[$j++]="UPC-E must have number system 0 or 1";bwipp_raiseerror()}if(!bwipp_upce.__5025__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","111111"]);$_.barchars="0123456789";$_.mirrormaps=$a(["000111","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_upce.$ctx[id]=$_[id]);bwipp_upce.__5025__=1;$_=Object.getPrototypeOf($_)}for(var _1D=0,_1E=1;_1D<_1E;_1D++){$_.upcacode=$s(11);if($g($_.barcode,6)-48<=2){$P($_.upcacode,0,$G($_.barcode,0,3));$P($_.upcacode,3,$G($_.barcode,6,1));$P($_.upcacode,4,"0000");$P($_.upcacode,8,$G($_.barcode,3,3));break}if($g($_.barcode,6)-48==3){$P($_.upcacode,0,$G($_.barcode,0,4));$P($_.upcacode,4,"00000");$P($_.upcacode,9,$G($_.barcode,4,2));break}if($g($_.barcode,6)-48==4){$P($_.upcacode,0,$G($_.barcode,0,5));$P($_.upcacode,5,"00000");$P($_.upcacode,10,$G($_.barcode,5,1));break}if($g($_.barcode,6)-48>=5){$P($_.upcacode,0,$G($_.barcode,0,6));$P($_.upcacode,6,"0000");$P($_.upcacode,10,$G($_.barcode,6,1));break}}$_.checksum=0;for(var _1t=0;_1t<=10;_1t+=1){$_.i=_1t;$_.barchar=$g($_.upcacode,$_.i)-48;if($_.i%2!=0){$_.checksum=$_.checksum+$_.barchar}else{$_.checksum=$_.checksum+$_.barchar*3}}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==8){if($g($_.barcode,7)!=$_.checksum+48){$k[$j++]="bwipp.upcEbadCheckDigit#5069";$k[$j++]="Incorrect UPC check digit provided";bwipp_raiseerror()}}$_.pad=$s(8);$P($_.pad,0,$_.barcode);$p($_.pad,7,$_.checksum+48);$_.barcode=$_.pad;$_.txt=$a(8);$p($_.txt,0,$a([$G($_.barcode,0,1),$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize-2]));$_.mirrormap=$g($_.mirrormaps,$_.checksum);if($g($_.barcode,0)==48){$_.invt=$s($_.mirrormap.length);for(var _2V=0,_2U=$_.mirrormap.length-1;_2V<=_2U;_2V+=1){$_.i=_2V;if($g($_.mirrormap,$_.i)==48){$p($_.invt,$_.i,49)}else{$p($_.invt,$_.i,48)}}$_.mirrormap=$_.invt}$_.sbs=$s(33);$P($_.sbs,0,$g($_.encs,10));for(var _2i=1;_2i<=6;_2i+=1){$_.i=_2i;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i-1)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _2z=0,_2y=$_.enclen-1;_2z<=_2y;_2z+=1){$_.j=_2z;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,($_.i-1)*4+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*7+11+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$p($_.txt,7,$a([$G($_.barcode,7,1),6*7+18+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize-2]));$P($_.sbs,27,$g($_.encs,11));$k[$j++]=Infinity;var _3X=$_.sbs;for(var _3Y=0,_3Z=_3X.length;_3Y<_3Z;_3Y++){$k[$j++]=$g(_3X,_3Y)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _3f=0,_3g=12;_3f<_3g;_3f++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;$k[$j++]=$_.height;$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _3m=0,_3n=12;_3m<_3n;_3m++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _3p=0,_3q=17;_3p<_3q;_3p++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _3t=0,_3u=17;_3t<_3u;_3t++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=51+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _48=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_48;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _4P=$k[--$j];$k[$j++]=$f(_4P-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _4U=$k[--$j];$k[$j++]=$f(_4U+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}var _4h=new Map([["ren",bwipp_renlinear],["sbs",$_.sbs],["bhs",$_.bhs],["bbs",$_.bbs],["txt",$_.txt],["opt",$_.options],["guardrightpos",10],["guardrightypos",$_.guardrightypos],["borderbottom",5]]);$k[$j++]=_4h;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_isbn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.isbntextfont="OCR-A";$_.isbntextsize=8;$_.isbntextxoffset=null;$_.isbntextyoffset=null;$_.height=1;$_.addongap=12;$_.legacy=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=15&&$_.barcode.length!=17&&($_.barcode.length!=11&&$_.barcode.length!=13)){$k[$j++]="bwipp.isbnBadLength#5235";$k[$j++]="ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes";bwipp_raiseerror()}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.isbnBadAddOnLength#5238";$k[$j++]="Add-on for ISBN must be 2 or 5 digits";bwipp_raiseerror()}if($_.barcode.length>=15){var _F=$G($_.barcode,0,4);if($ne(_F,"978-")&&$ne(_F,"979-")){$k[$j++]="bwipp.isbn13badPrefix#5242";$k[$j++]="ISBN-13 prefix must be 978- or 979-";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _H=$G($_.barcode,5,9);for(var _I=0,_J=_H.length;_I<_J;_I++){var _K=$g(_H,_I);$k[$j++]=_K;if(_K==45){if($_.wasdash){$k[$j++]="bwipp.isbn13adjacentDashes#5249";$k[$j++]="ISBN-13 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _N=$k[--$j];if(_N>=48&&_N<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=2||$_.numdigit!=7){$k[$j++]="bwipp.isbn13numDashesDigits#5260";$k[$j++]="Incorrect number of dashes and digits for ISBN-13";bwipp_raiseerror()}var _S=$g($_.barcode,14);if(_S<48||_S>57){$k[$j++]="bwipp.isbn13character15#5263";$k[$j++]="ISBN-13 character 15 must be a digit";bwipp_raiseerror()}if($_.barcode.length==17){if($ne($G($_.barcode,15,1),"-")){$k[$j++]="bwipp.isbn13character16#5267";$k[$j++]="ISBN-13 penultimate character must be a dash";bwipp_raiseerror()}var _X=$g($_.barcode,16);if(_X<48||_X>57){$k[$j++]="bwipp.isbn13character17#5270";$k[$j++]="ISBN-13 final character must be a digit";bwipp_raiseerror()}}}else{var _Z=$g($_.barcode,0);if(_Z<48||_Z>57){$k[$j++]="bwipp.isbn10FirstDigit#5275";$k[$j++]="ISBN-10 first character must be a digit";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _b=$G($_.barcode,1,9);for(var _c=0,_d=_b.length;_c<_d;_c++){var _e=$g(_b,_c);$k[$j++]=_e;if(_e==45){if($_.wasdash){$k[$j++]="bwipp.isbn10adjacentDashes#5282";$k[$j++]="ISBN-10 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _h=$k[--$j];if(_h>=48&&_h<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=2||$_.numdigit!=7){$k[$j++]="bwipp.isbn10numDashesDigits#5293";$k[$j++]="Incorrect number of dashes and digits for ISBN-10";bwipp_raiseerror()}var _m=$g($_.barcode,10);if(_m<48||_m>57){$k[$j++]="bwipp.isbn10character11#5296";$k[$j++]="ISBN-10 character 11 must be a digit";bwipp_raiseerror()}if($_.barcode.length==13){if($ne($G($_.barcode,11,1),"-")){$k[$j++]="bwipp.isbn10character12#5300";$k[$j++]="ISBN-10 penultimate character must be a dash";bwipp_raiseerror()}var _r=$g($_.barcode,12);if((_r<48||_r>57)&&_r!=88){$k[$j++]="bwipp.isbn10character13#5303";$k[$j++]="ISBN-10 final character must be a digit or X";bwipp_raiseerror()}}}$_.isbntxt=$_.barcode;if($_.isbntxt.length<=13){$_.isbn=$s(10);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.isbnchar=$f($g($_.isbntxt,$_.i)-48);if($_.isbnchar!=-3){$p($_.isbn,$_.n,$f($_.isbnchar+48));if($_.n<9){$_.checksum=$f($_.checksum+(10-$_.n)*$_.isbnchar)}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.isbntxt.length){break}}var _1B=$f(11-$_.checksum%11)%11;$k[$j++]="checksum";$k[$j++]=_1B;if(_1B==10){$j--;$k[$j++]=40}var _1C=$k[--$j];$_[$k[--$j]]=$f(_1C+48);$_.isbn=$G($_.isbn,0,9);if($_.isbntxt.length==13){if($g($_.isbntxt,12)!=$_.checksum){$k[$j++]="bwipp.isbn10badCheckDigit#5331";$k[$j++]="Incorrect ISBN-10 check digit provided";bwipp_raiseerror()}}}if(!$_.legacy||$_.isbntxt.length>=15){if($_.isbntxt.length<=13){$_.pad=$s(15);$P($_.pad,0,"978-");$P($_.pad,4,$G($_.isbntxt,0,11));$_.isbntxt=$_.pad}$_.isbn=$s(13);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.isbnchar=$g($_.isbntxt,$_.i)-48;if($_.isbnchar!=-3){$p($_.isbn,$_.n,$_.isbnchar+48);if($_.n<12){$k[$j++]="checksum";$k[$j++]=$_.isbnchar;if($_.n%2!=0){var _1e=$k[--$j];$k[$j++]=_1e*3}var _1g=$k[--$j];$_[$k[--$j]]=$f(_1g+$_.checksum)}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.isbntxt.length){break}}$_.checksum=(10-$_.checksum%10)%10+48;$_.isbn=$G($_.isbn,0,12);if($_.isbntxt.length==17){if($g($_.isbntxt,16)!=$_.checksum){$k[$j++]="bwipp.isbn13badCheckDigit#5366";$k[$j++]="Incorrect ISBN-13 check digit provided";bwipp_raiseerror()}}}var _1u=$_.isbn.length==12?22:18;$_.pad=$s(_1u);$P($_.pad,0,"ISBN ");$P($_.pad,5,$_.isbntxt);$p($_.pad,$_.pad.length-2,45);$p($_.pad,$_.pad.length-1,$_.checksum);$_.isbntxt=$_.pad;$_.barcode=$s(12);if($_.isbn.length==9){$P($_.barcode,0,"978");$P($_.barcode,3,$_.isbn)}else{$P($_.barcode,0,$_.isbn)}if($ne($_.addon,"")){var _2E=$s(12+$_.addon.length+1);$P(_2E,0,$_.barcode);$P(_2E,12," ");$P(_2E,13,$_.addon);$_.barcode=_2E}$p($_.options,"dontdraw",true);$p($_.options,"addongap",$_.addongap);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean13();var _2M=$k[--$j];$_[$k[--$j]]=_2M;if($_.includetext){if($eq($_.isbntextxoffset,null)){$k[$j++]="isbntextxoffset";if($_.isbn.length==9){$k[$j++]=-1}else{$k[$j++]=-12}var _2R=$k[--$j];$_[$k[--$j]]=_2R}if($eq($_.isbntextyoffset,null)){$_.isbntextyoffset=$_.height*72+3}var _2W=$g($_.args,"txt")!==undefined;if(_2W){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.isbntxt,$_.isbntextxoffset,$_.isbntextyoffset,$_.isbntextfont,$_.isbntextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.isbntxt,$_.isbntextxoffset,$_.isbntextyoffset,$_.isbntextfont,$_.isbntextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_ismn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.ismntextfont="OCR-A";$_.ismntextsize=8;$_.ismntextxoffset=null;$_.ismntextyoffset=null;$_.height=1;$_.addongap=12;$_.legacy=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=15&&$_.barcode.length!=17&&($_.barcode.length!=11&&$_.barcode.length!=13)){$k[$j++]="bwipp.ismnBadLength#5485";$k[$j++]="ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes";bwipp_raiseerror()}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.ismnBadAddOnLength#5488";$k[$j++]="Add-on for ISMN must be 2 or 5 digits";bwipp_raiseerror()}if($_.barcode.length>=15){if($ne($G($_.barcode,0,4),"979-")){$k[$j++]="bwipp.ismn13badPrefix#5492";$k[$j++]="ISMN-13 prefix must be 979-";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _H=$G($_.barcode,5,9);for(var _I=0,_J=_H.length;_I<_J;_I++){var _K=$g(_H,_I);$k[$j++]=_K;if(_K==45){if($_.wasdash){$k[$j++]="bwipp.ismn13adjacentDashes#5499";$k[$j++]="ISMN-13 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _N=$k[--$j];if(_N>=48&&_N<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=2||$_.numdigit!=7){$k[$j++]="bwipp.ismn13numDashesDigits#5510";$k[$j++]="Incorrect number of dashes and digits for ISMN-13";bwipp_raiseerror()}var _S=$g($_.barcode,14);if(_S<48||_S>57){$k[$j++]="bwipp.ismn13character15#5513";$k[$j++]="ISMN-13 character 15 must be a digit";bwipp_raiseerror()}if($_.barcode.length==17){if($ne($G($_.barcode,15,1),"-")){$k[$j++]="bwipp.ismn13character16#5517";$k[$j++]="ISMN-13 penultimate character must be a dash";bwipp_raiseerror()}var _X=$g($_.barcode,16);if(_X<48||_X>57){$k[$j++]="bwipp.ismn13character17#5520";$k[$j++]="ISMN-13 final character must be a digit";bwipp_raiseerror()}}}else{if($ne($G($_.barcode,0,2),"M-")){$k[$j++]="bwipp.ismn10badPrefix#5525";$k[$j++]="ISMN-10 prefix must be M-";bwipp_raiseerror()}var _b=$g($_.barcode,2);if(_b<48||_b>57){$k[$j++]="bwipp.ismn10character3#5528";$k[$j++]="ISMN-10 character 3 must be a digit";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _d=$G($_.barcode,3,7);for(var _e=0,_f=_d.length;_e<_f;_e++){var _g=$g(_d,_e);$k[$j++]=_g;if(_g==45){if($_.wasdash){$k[$j++]="bwipp.ismn10adjacentDashes#5535";$k[$j++]="ISMN-10 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _j=$k[--$j];if(_j>=48&&_j<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=1||$_.numdigit!=6){$k[$j++]="bwipp.ismn10numDashesDigits#5546";$k[$j++]="Incorrect number of dashes and digits for ISMN-10";bwipp_raiseerror()}var _o=$g($_.barcode,10);if(_o<48||_o>57){$k[$j++]="bwipp.ismn10character11#5549";$k[$j++]="ISMN-10 character 11 must be a digit";bwipp_raiseerror()}if($_.barcode.length==13){var _r=$G($_.barcode,11,1);if($ne(_r,"-")){$k[$j++]="bwipp.ismn10character12#5553";$k[$j++]="ISMN-10 penultimate character must be a dash";bwipp_raiseerror()}var _t=$g($_.barcode,12);if((_t<48||_t>57)&&_t!=88){$k[$j++]="bwipp.ismn10character13#5556";$k[$j++]="ISMN-10 final character must be a digit or X";bwipp_raiseerror()}}}$_.ismntxt=$_.barcode;$_.legacytxt="";if($_.ismntxt.length<=13){$_.legacytxt=$_.ismntxt;$_.pad=$s($_.ismntxt.length+4);$P($_.pad,0,"979-0-");$P($_.pad,6,$G($_.ismntxt,2,$_.ismntxt.length-2));$_.ismntxt=$_.pad}$_.ismn=$s(13);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.ismnchar=$g($_.ismntxt,$_.i)-48;if($_.ismnchar!=-3){$p($_.ismn,$_.n,$_.ismnchar+48);if($_.n<12){if($_.n%2==0){$_.checksum=$_.ismnchar+$_.checksum}else{$_.checksum=$_.ismnchar*3+$_.checksum}}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.ismntxt.length){break}}$_.checksum=(10-$_.checksum%10)%10+48;if($_.barcode.length==13||$_.barcode.length==17){var _1Q=$_.barcode;if($g(_1Q,_1Q.length-1)!=$_.checksum){$k[$j++]="bwipp.ismnBadCheckDigit#5598";$k[$j++]="Incorrect ISMN check digit provided";bwipp_raiseerror()}}if($_.legacy&&$ne($_.legacytxt,"")){$_.ismntxt=$_.legacytxt;$_.pad=$s(18)}else{$_.pad=$s(22)}$P($_.pad,0,"ISMN ");$P($_.pad,5,$_.ismntxt);$p($_.pad,$_.pad.length-2,45);$p($_.pad,$_.pad.length-1,$_.checksum);$_.ismntxt=$_.pad;$_.barcode=$G($_.ismn,0,12);if($ne($_.addon,"")){var _1l=$s(12+$_.addon.length+1);$P(_1l,0,$_.barcode);$P(_1l,12," ");$P(_1l,13,$_.addon);$_.barcode=_1l}$p($_.options,"dontdraw",true);$p($_.options,"addongap",$_.addongap);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean13();var _1t=$k[--$j];$_[$k[--$j]]=_1t;if($_.includetext){if($eq($_.ismntextxoffset,null)){$k[$j++]="ismntextxoffset";if($_.ismntxt.length==18){$k[$j++]=-1}else{$k[$j++]=-12}var _1y=$k[--$j];$_[$k[--$j]]=_1y}if($eq($_.ismntextyoffset,null)){$_.ismntextyoffset=$_.height*72+3}var _23=$g($_.args,"txt")!==undefined;if(_23){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.ismntxt,$_.ismntextxoffset,$_.ismntextyoffset,$_.ismntextfont,$_.ismntextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.ismntxt,$_.ismntextxoffset,$_.ismntextyoffset,$_.ismntextfont,$_.ismntextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_issn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.issntextfont="OCR-A";$_.issntextsize=8;$_.issntextxoffset=null;$_.issntextyoffset=null;$_.height=1;$_.addongap=12;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.issntxt=$k[--$j];$X($_.issntxt," ");if($k[--$j]){$_.issntxt=$k[--$j];$j--;$_.seqvar=$k[--$j]}else{$j--;$_.seqvar="00"}$X($_.seqvar," ");if($k[--$j]){$_.seqvar=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.issntxt.length!=8&&$_.issntxt.length!=9){$k[$j++]="bwipp.issnBadLength#5722";$k[$j++]="ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX";bwipp_raiseerror()}var _D=$G($_.issntxt,0,4);for(var _E=0,_F=_D.length;_E<_F;_E++){var _G=$g(_D,_E);if(_G<48||_G>57){$k[$j++]="bwipp.issnFirstThroughFourthNotNumeric#5726";$k[$j++]="ISSN first four characters must be numeral characters";bwipp_raiseerror()}}if($ne($G($_.issntxt,4,1),"-")){$k[$j++]="bwipp.issnNeedsDash#5730";$k[$j++]="ISSN fifth character must be a dash";bwipp_raiseerror()}var _K=$G($_.issntxt,5,3);for(var _L=0,_M=_K.length;_L<_M;_L++){var _N=$g(_K,_L);if(_N<48||_N>57){$k[$j++]="bwipp.issnSixthThroughEighthNotNumeric#5734";$k[$j++]="ISSN sixth through eighth characters must be numerals";bwipp_raiseerror()}}if($_.issntxt.length==9){var _Q=$g($_.issntxt,8);if((_Q<48||_Q>57)&&_Q!=88){$k[$j++]="bwipp.issnNinthCharacterBadFormat#5739";$k[$j++]="ISSN ninth character must be a number or the character X";bwipp_raiseerror()}}if($_.seqvar.length!=2){$k[$j++]="bwipp.issnBadSequenceVariantLength#5743";$k[$j++]="Sequence variant for ISSN must be 2 digits";bwipp_raiseerror()}$F($_.seqvar,function(){var _T=$k[--$j];if(_T<48||_T>57){$k[$j++]="bwipp.issnSequenceVariantBadCharacter#5747";$k[$j++]="Sequence variant for ISSN must contain only digits";bwipp_raiseerror()}});if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.issnBadAddOnLength#5751";$k[$j++]="Add-on for ISSN must be 2 or 5 digits";bwipp_raiseerror()}$_.issn=$s(8);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.issnchar=$f($g($_.issntxt,$_.i)-48);if($_.issnchar!=-3){$p($_.issn,$_.n,$f($_.issnchar+48));if($_.n<7){$_.checksum=$f($_.checksum+$_.issnchar*(8-$_.n))}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.issntxt.length){break}}$_.checksum=$f(11-$_.checksum%11)%11;var _p=$f($_.checksum+48);$k[$j++]="checksum";$k[$j++]=_p;if(_p==58){$j--;$k[$j++]=88}var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;if($_.issntxt.length==9){if($g($_.issntxt,8)!=$_.checksum){$k[$j++]="bwipp.issnBadCheckDigit#5774";$k[$j++]="Incorrect ISSN check digit provided";bwipp_raiseerror()}}$_.pad=$s(14);$P($_.pad,0,"ISSN ");$P($_.pad,5,$_.issntxt);$p($_.pad,13,$_.checksum);$_.issntxt=$_.pad;$_.barcode=$G($_.issn,0,7);$_.barcode=$s(12);$P($_.barcode,0,"977");$P($_.barcode,3,$_.issn);$P($_.barcode,10,$_.seqvar);if($ne($_.addon,"")){var _1D=$s(12+$_.addon.length+1);$P(_1D,0,$_.barcode);$P(_1D,12," ");$P(_1D,13,$_.addon);$_.barcode=_1D}$p($_.options,"dontdraw",true);$p($_.options,"addongap",$_.addongap);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean13();var _1L=$k[--$j];$_[$k[--$j]]=_1L;if($_.includetext){if($eq($_.issntextxoffset,null)){$_.issntextxoffset=10}if($eq($_.issntextyoffset,null)){$_.issntextyoffset=$_.height*72+3}var _1S=$g($_.args,"txt")!==undefined;if(_1S){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.issntxt,$_.issntextxoffset,$_.issntextyoffset,$_.issntextfont,$_.issntextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.issntxt,$_.issntextxoffset,$_.issntextyoffset,$_.issntextfont,$_.issntextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_mands(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.barlen=$_.barcode.length;if($_.barlen!=7&&$_.barlen!=8){$k[$j++]="bwipp.MandSbadLength#5870";$k[$j++]="M&S barcode must be 7 or 8 characters";bwipp_raiseerror()}if($_.barlen==7){var _7=$Z($s(8),"00000000");$P(_7,1,$_.barcode);$_.barcode=_7}$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean8();var _C=$k[--$j];$_[$k[--$j]]=_C;var _F=$g($_.args,"bbs");$p(_F,10,$g(_F,2));$p(_F,11,$g(_F,2));var _J=$g($_.args,"bhs");$p(_J,10,$g(_J,2));$p(_J,11,$g(_J,2));$_.txt=$g($_.args,"txt");if($_.barlen==7){for(var _P=0;_P<=6;_P+=1){var _Q=$_.txt;$P($g($g(_Q,_P),0),0,$g($g(_Q,_P+1),0))}$P($g($g($_.txt,7),0),0," ")}var _Y=$a(10);$P(_Y,0,$_.txt);$_.txt=_Y;var _b=$g($_.txt,0);$p($_.txt,8,$A($a(_b.length),_b));var _g=$g($_.txt,0);$p($_.txt,9,$A($a(_g.length),_g));$p($g($_.txt,8),0,"M");$p($g($_.txt,8),1,-12);$p($g($_.txt,9),0,"S");var _r=$g($_.txt,9);$p(_r,1,69);$p($_.args,"txt",$_.txt);$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code128(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$_.encoding="auto";$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code128);if(!bwipp_code128.__5971__){$_=Object.create($_);$_.sta=-1;$_.stb=-2;$_.stc=-3;$_.swa=-4;$_.swb=-5;$_.swc=-6;$_.fn1=-7;$_.fn2=-8;$_.fn3=-9;$_.fn4=-10;$_.sft=-11;$_.stp=-12;$_.lka=-13;$_.lkc=-14;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code128.$ctx[id]=$_[id]);bwipp_code128.__5971__=1;$_=Object.getPrototypeOf($_)}var _6=$_.fn1;var _B=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC1",_6],["FNC2",$_.fn2],["FNC3",$_.fn3],["LNKA",$_.lka],["LNKC",$_.lkc]]);$_.fncvals=_B;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _E=$k[--$j];$_[$k[--$j]]=_E;$_.msglen=$_.msg.length;if(!bwipp_code128.__6044__){$_=Object.create($_);$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.fn3,$_.fn3,"96"]),$a([$_.fn2,$_.fn2,"97"]),$a([$_.sft,$_.sft,"98"]),$a([$_.swc,$_.swc,"99"]),$a([$_.swb,$_.fn4,$_.swb]),$a([$_.fn4,$_.swa,$_.swa]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.sta,$_.sta,$_.sta]),$a([$_.stb,$_.stb,$_.stb]),$a([$_.stc,$_.stc,$_.stc]),$a([$_.stp,$_.stp,$_.stp])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _2X=0,_2W=$_.charmaps.length-1;_2X<=_2W;_2X+=1){$_.i=_2X;$_.encs=$g($_.charmaps,$_.i);for(var _2b=0;_2b<=2;_2b+=1){$_.j=_2b;var _2e=$g($_.encs,$_.j);$k[$j++]=_2e;if($eq($t(_2e),"stringtype")){var _2h=$g($k[--$j],0);$k[$j++]=_2h}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code128.$ctx[id]=$_[id]);bwipp_code128.__6044__=1;$_=Object.getPrototypeOf($_)}$p($_.seta,$_.lka,$g($_.seta,$_.swb));$p($_.seta,$_.lkc,$g($_.seta,$_.swc));$p($_.setb,$_.lka,$g($_.setb,$_.swc));$p($_.setb,$_.lkc,$g($_.setb,$_.swa));$p($_.setc,$_.lka,$g($_.setc,$_.swa));$p($_.setc,$_.lkc,$g($_.setc,$_.swb));if($_.raw){$_.encoding="raw"}if($eq($_.encoding,"raw")){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.cws=$G($_.cws,0,$_.j);$_.text=""}if($eq($_.encoding,"auto")){$_.text=$s($_.msglen);for(var _3k=0,_3j=$_.msglen-1;_3k<=_3j;_3k+=1){$_.i=_3k;var _3p=$g($_.msg,$_.i);$k[$j++]=$_.text;$k[$j++]=$_.i;$k[$j++]=_3p;if(_3p<0){$j--;$k[$j++]=32}var _3q=$k[--$j];var _3r=$k[--$j];$p($k[--$j],_3r,_3q)}$k[$j++]=Infinity;for(var _3u=0,_3v=$_.msglen;_3u<_3v;_3u++){$k[$j++]=0}$k[$j++]=0;$_.numSA=$a();$k[$j++]=Infinity;for(var _3y=0,_3z=$_.msglen;_3y<_3z;_3y++){$k[$j++]=0}$k[$j++]=0;$_.numEA=$a();for(var _42=$_.msglen-1;_42>=0;_42-=1){$_.i=_42;if($g($_.msg,$_.i)>=0){if($g($_.msg,$_.i)>=128){$p($_.numEA,$_.i,$f($g($_.numEA,$_.i+1)+1))}else{$p($_.numSA,$_.i,$f($g($_.numSA,$_.i+1)+1))}}}$_.ea=false;$_.msgtmp=$a([]);for(var _4M=0,_4L=$_.msglen-1;_4M<=_4L;_4M+=1){$_.i=_4M;$_.c=$g($_.msg,$_.i);if(!$xo($_.ea,$_.c<128)&&$_.c>=0){if($_.ea){$k[$j++]=$_.numSA}else{$k[$j++]=$_.numEA}var _4Y=$g($k[--$j],$_.i);var _4b=$f(_4Y+$_.i)==$_.msglen?3:5;if(_4Y<_4b){$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$_.msgtmp=$a()}else{$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$k[$j++]=$_.fn4;$_.msgtmp=$a();$_.ea=!$_.ea}}$k[$j++]=Infinity;$q($_.msgtmp);if($_.c>=0){$k[$j++]=$_.c&127}else{$k[$j++]=$_.c}$_.msgtmp=$a()}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;$_.numsscr=function(){$_.n=0;$_.s=0;$_.p=$k[--$j];for(;;){if($_.p>=$_.msglen){break}var _4w=$g($_.msg,$_.p);var _4y=$g($_.setc,_4w)!==undefined;$k[$j++]=_4w;if(!_4y){$j--;break}var _4z=$k[--$j];$k[$j++]=_4z;if(_4z<=-1){var _51=$k[--$j];if(_51==$_.fn1&&$_.s%2==0){$_.s=$_.s+1}else{break}}else{$j--}$_.n=$_.n+1;$_.s=$_.s+1;$_.p=$f($_.p+1)}$k[$j++]=$_.n;$k[$j++]=$_.s};$_.enca=function(){$p($_.cws,$_.j,$g($_.seta,$k[--$j]));$_.j=$_.j+1};$_.encb=function(){$p($_.cws,$_.j,$g($_.setb,$k[--$j]));$_.j=$_.j+1};$_.encc=function(){var _5L=$k[--$j];$k[$j++]=_5L;if($ne($t(_5L),"arraytype")){var _5P=$g($_.setc,$k[--$j]);$k[$j++]=_5P}else{$q($k[--$j]);var _5R=$k[--$j];var _5S=$k[--$j];$k[$j++]=$f($f(_5R-48)+$f(_5S-48)*10)}$p($_.cws,$_.j,$k[--$j]);$_.j=$_.j+1};$_.anotb=function(){var _5X=$k[--$j];var _5Z=$g($_.seta,_5X)!==undefined;var _5b=$g($_.setb,_5X)!==undefined;$k[$j++]=_5Z&&!_5b};$_.bnota=function(){var _5c=$k[--$j];var _5e=$g($_.setb,_5c)!==undefined;var _5g=$g($_.seta,_5c)!==undefined;$k[$j++]=_5e&&!_5g};$k[$j++]=Infinity;for(var _5i=0,_5j=$_.msg.length;_5i<_5j;_5i++){$k[$j++]=0}$k[$j++]=9999;$_.nextanotb=$a();$k[$j++]=Infinity;for(var _5m=0,_5n=$_.msg.length;_5m<_5n;_5m++){$k[$j++]=0}$k[$j++]=9999;$_.nextbnota=$a();for(var _5q=$_.msg.length-1;_5q>=0;_5q-=1){$_.i=_5q;$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$p($_.nextanotb,$_.i,0)}else{$p($_.nextanotb,$_.i,$f($g($_.nextanotb,$_.i+1)+1))}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$p($_.nextbnota,$_.i,0)}else{$p($_.nextbnota,$_.i,$f($g($_.nextbnota,$_.i+1)+1))}}$_.abeforeb=function(){var _6D=$k[--$j];$k[$j++]=$lt($g($_.nextanotb,_6D),$g($_.nextbnota,_6D))};$_.bbeforea=function(){var _6I=$k[--$j];$k[$j++]=$lt($g($_.nextbnota,_6I),$g($_.nextanotb,_6I))};$_.cws=$a($_.barcode.length*2+3);$_.j=0;if($_.msglen>0){$k[$j++]=0;$_.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if($_.msglen==0){$k[$j++]=$_.stb;$_.enca();$_.cset="setb";break}if($_.msglen==2&&$_.nums==2){$k[$j++]=$_.stc;$_.enca();$_.cset="setc";break}if($_.nums>=4){$k[$j++]=$_.stc;$_.enca();$_.cset="setc";break}$k[$j++]=0;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sta;$_.enca();$_.cset="seta";break}$k[$j++]=$_.stb;$_.enca();$_.cset="setb";break}$_.i=0;for(;;){if($_.i==$_.msglen){break}$k[$j++]=$_.i;$_.numsscr();$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if(($eq($_.cset,"seta")||$eq($_.cset,"setb"))&&$_.nums>=4&&$g($_.msg,$_.i)!=$_.fn1){if($_.nums%2==0){$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";break}else{$k[$j++]=$g($_.msg,$_.i);if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.i=$_.i+1;$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";break}}$k[$j++]=$eq($_.cset,"setb");$k[$j++]=$g($_.msg,$_.i);$_.anotb();var _72=$k[--$j];var _73=$k[--$j];if(_73&&_72){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.bbeforea();if($k[--$j]){$k[$j++]=$_.sft;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}}$k[$j++]=$_.swa;$_.encb();$_.cset="seta";break}$k[$j++]=$eq($_.cset,"seta");$k[$j++]=$g($_.msg,$_.i);$_.bnota();var _7I=$k[--$j];var _7J=$k[--$j];if(_7J&&_7I){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sft;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}if($eq($_.cset,"setc")&&$_.nums<2&&($g($_.msg,$_.i)>-1||$g($_.msg,$_.i)==$_.fn4)){$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.swa;$_.encc();$_.cset="seta";break}$k[$j++]=$_.swb;$_.encc();$_.cset="setb";break}if($eq($_.cset,"seta")){$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}if($eq($_.cset,"setb")){$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}if($eq($_.cset,"setc")){if($g($_.msg,$_.i)<=-1){$k[$j++]=$g($_.msg,$_.i);$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}break}break}}$_.cws=$G($_.cws,0,$_.j)}var _87=$a($_.j+2);$P(_87,0,$_.cws);$_.cws=_87;$_.csum=$g($_.cws,0);for(var _8D=1,_8C=$_.j-1;_8D<=_8C;_8D+=1){$_.i=_8D;$_.csum=$f($_.csum+$g($_.cws,$_.i)*$_.i)}$_.csum=$_.csum%103;$p($_.cws,$_.j,$_.csum);$p($_.cws,$_.j+1,$g($_.seta,$_.stp));var _8T=$g($_.options,"debugcws")!==undefined;if(_8T){$k[$j++]="bwipp.debugcws#6303";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_code128.__6325__){$_=Object.create($_);$_.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code128.$ctx[id]=$_[id]);bwipp_code128.__6325__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s($_.cws.length*6+1);for(var _8b=0,_8a=$_.cws.length-1;_8b<=_8a;_8b+=1){$_.i=_8b;$P($_.sbs,$_.i*6,$g($_.encs,$g($_.cws,$_.i)))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _8j=$_.sbs;for(var _8k=0,_8l=_8j.length;_8k<_8l;_8k++){$k[$j++]=$g(_8j,_8k)-48}var _8n=$a();$k[$j++]=Infinity;for(var _8p=0,_8q=~~(($_.sbs.length+1)/2);_8p<_8q;_8p++){$k[$j++]=$_.height}var _8s=$a();$k[$j++]=Infinity;for(var _8u=0,_8v=~~(($_.sbs.length+1)/2);_8u<_8v;_8u++){$k[$j++]=0}var _8w=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_8n;$k[$j++]="bhs";$k[$j++]=_8s;$k[$j++]="bbs";$k[$j++]=_8w;$k[$j++]="txt";$k[$j++]=$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _95=$d();$k[$j++]=_95;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_gs1_128(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=.5;$_.linkagea=false;$_.linkagec=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.linkagea&&$_.linkagec){$k[$j++]="bwipp.gs1128badLinkage#6400";$k[$j++]="linkagea and linkagec cannot be used together";bwipp_raiseerror()}$_.text=$_.barcode;$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.c128=$a([$_.fnc1]);for(var _D=0,_C=$_.ais.length-1;_D<=_C;_D+=1){$_.i=_D;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _N=$a($_.c128.length+$_.ai.length+$_.val.length);$P(_N,0,$_.c128);$k[$j++]=_N;$k[$j++]=_N;$k[$j++]=$_.c128.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _R=$k[--$j];var _S=$k[--$j];$k[$j++]=_R;$F(_S);var _T=$a();var _U=$k[--$j];$P($k[--$j],_U,_T);var _W=$k[--$j];$k[$j++]=_W;$k[$j++]=_W;$k[$j++]=$_.c128.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=_a;$F(_b);var _c=$a();var _d=$k[--$j];$P($k[--$j],_d,_c);$_.c128=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _m=$a($_.c128.length+1);$P(_m,0,$_.c128);$p(_m,$_.c128.length,$_.fnc1);$_.c128=_m}}$_.barcode=$s(($_.c128.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.c128.length){break}var _w=$g($_.c128,$_.i);$k[$j++]=_w;if(_w==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}if($_.linkagea||$_.linkagec){$k[$j++]=$_.barcode;$k[$j++]=$_.j;if($_.linkagea){$k[$j++]="^LNKA"}else{$k[$j++]="^LNKC"}var _1B=$k[--$j];var _1C=$k[--$j];$P($k[--$j],_1C,_1B);$_.j=$_.j+5}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"height",$_.height);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _1P=$k[--$j];$_[$k[--$j]]=_1P;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_ean14(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.text=$_.barcode;var _3=$_.barcode;$k[$j++]=$s(_3.length);$k[$j++]=0;$F(_3,function(){var _5=$k[--$j];$k[$j++]=_5;if(_5!=32){var _6=$k[--$j];var _7=$k[--$j];var _8=$k[--$j];$p(_8,_7,_6);$k[$j++]=_8;$k[$j++]=$f(_7+1)}else{$j--}});var _9=$k[--$j];$_.barcode=$G($k[--$j],0,_9);$_.hasspace=$_.text.length!=$_.barcode.length;if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.ean14badAI#6515";$k[$j++]="GS1-14 must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.ean14badLength#6518";$k[$j++]="GS1-14 must be 13 or 14 digits";bwipp_raiseerror()}var _K=$G($_.barcode,4,$_.barcode.length-4);for(var _L=0,_M=_K.length;_L<_M;_L++){var _N=$g(_K,_L);if(_N<48||_N>57){$k[$j++]="bwipp.ean14badCharacter#6522";$k[$j++]="GS1-14 must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _O=0;_O<=12;_O+=1){$_.i=_O;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _U=$k[--$j];$k[$j++]=_U*3}var _V=$k[--$j];var _W=$k[--$j];$_[$k[--$j]]=$f(_W+_V)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.ean14badCheckDigit#6535";$k[$j++]="Incorrect GS1-14 check digit provided";bwipp_raiseerror()}}else{var _d=$s(18);$P(_d,0,$_.barcode);$p(_d,17,$_.checksum+48);$_.barcode=_d;var _i=$_.hasspace?2:1;var _j=$s($_.text.length+_i);$P(_j,_j.length-2," ");$p(_j,_j.length-1,$_.checksum+48);$P(_j,0,$_.text);$_.text=_j}$_.gtin=$G($_.barcode,4,14);$_.barcode=$s(21);$P($_.barcode,0,"^FNC101");var _r=$_.gtin;$P($_.barcode,7,_r);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _w=$k[--$j];$_[$k[--$j]]=_w;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_sscc18(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.text=$_.barcode;var _3=$_.barcode;$k[$j++]=$s(_3.length);$k[$j++]=0;$F(_3,function(){var _5=$k[--$j];$k[$j++]=_5;if(_5!=32){var _6=$k[--$j];var _7=$k[--$j];var _8=$k[--$j];$p(_8,_7,_6);$k[$j++]=_8;$k[$j++]=$f(_7+1)}else{$j--}});var _9=$k[--$j];$_.barcode=$G($k[--$j],0,_9);$_.hasspace=$_.text.length!=$_.barcode.length;if($ne($G($_.barcode,0,4),"(00)")){$k[$j++]="bwipp.sscc18badAI#6619";$k[$j++]="SSCC-18 must begin with (00) application identifier";bwipp_raiseerror()}if($_.barcode.length!=21&&$_.barcode.length!=22){$k[$j++]="bwipp.sscc18badLength#6622";$k[$j++]="SSCC-18 must be 17 or 18 digits";bwipp_raiseerror()}var _K=$G($_.barcode,4,$_.barcode.length-4);for(var _L=0,_M=_K.length;_L<_M;_L++){var _N=$g(_K,_L);if(_N<48||_N>57){$k[$j++]="bwipp.sscc18badCharacter#6626";$k[$j++]="SSCC-18 must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _O=0;_O<=16;_O+=1){$_.i=_O;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _U=$k[--$j];$k[$j++]=_U*3}var _V=$k[--$j];var _W=$k[--$j];$_[$k[--$j]]=$f(_W+_V)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==22){if($g($_.barcode,21)!=$_.checksum+48){$k[$j++]="bwipp.sscc18badCheckDigit#6639";$k[$j++]="Incorrect SSCC-18 check digit provided";bwipp_raiseerror()}}else{var _d=$s(22);$P(_d,0,$_.barcode);$p(_d,21,$_.checksum+48);$_.barcode=_d;var _i=$_.hasspace?2:1;var _j=$s($_.text.length+_i);$P(_j,_j.length-2," ");$p(_j,_j.length-1,$_.checksum+48);$P(_j,0,$_.text);$_.text=_j}$_.sscc=$G($_.barcode,4,18);$_.barcode=$s(25);$P($_.barcode,0,"^FNC100");var _r=$_.sscc;$P($_.barcode,7,_r);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _w=$k[--$j];$_[$k[--$j]]=_w;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code39(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.hidestars=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code39);if(!bwipp_code39.__6738__){$_=Object.create($_);$_.encs=$a(["1113313111","3113111131","1133111131","3133111111","1113311131","3113311111","1133311111","1113113131","3113113111","1133113111","3111131131","1131131131","3131131111","1111331131","3111331111","1131331111","1111133131","3111133111","1131133111","1111333111","3111111331","1131111331","3131111311","1111311331","3111311311","1131311311","1111113331","3111113311","1131113311","1111313311","3311111131","1331111131","3331111111","1311311131","3311311111","1331311111","1311113131","3311113111","1331113111","1313131111","1313111311","1311131311","1113131311","1311313111"]);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code39.$ctx[id]=$_[id]);bwipp_code39.__6738__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.code39badCharacter#6743";$k[$j++]="Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=0;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.code39badCheckDigit#6757";$k[$j++]="Incorrect Code 39 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}var _f=$_.includecheck?3:2;$_.sbs=$s($f($_.barlen+_f)*10);var _j=$_.includecheck?3:2;$_.txt=$a($f($_.barlen+_j));$P($_.sbs,0,$g($_.encs,43));if(!$_.hidestars){$p($_.txt,0,$a(["*",0,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,0,$a(["",0,$_.textyoffset,$_.textfont,$_.textsize]))}for(var _11=0,_10=$f($_.barlen-1);_11<=_10;_11+=1){$_.i=_11;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.sbs,$_.i*10+10,$g($_.encs,$_.indx));$p($_.txt,$_.i+1,$a([$G($_.barcode,$_.i,1),($_.i+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}if($_.includecheck){$P($_.sbs,$f($_.barlen*10+10),$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$f($_.barlen+1),$a([$G($_.barchars,$_.checksum,1),$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen+1),$a(["",$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$f($_.barlen*10+20),$g($_.encs,43));if(!$_.hidestars){$p($_.txt,$f($_.barlen+2),$a(["*",$f($_.barlen+2)*16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen+2),$a(["",$f($_.barlen+2)*16,$_.textyoffset,$_.textfont,$_.textsize]))}}else{$P($_.sbs,$f($_.barlen*10+10),$g($_.encs,43));if(!$_.hidestars){$p($_.txt,$f($_.barlen+1),$a(["*",$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen+1),$a(["",$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}}$k[$j++]=Infinity;$k[$j++]=Infinity;var _2M=$_.sbs;for(var _2N=0,_2O=_2M.length;_2N<_2O;_2N++){$k[$j++]=$g(_2M,_2N)-48}var _2Q=$a();$k[$j++]=Infinity;for(var _2S=0,_2T=~~(($_.sbs.length+1)/2);_2S<_2T;_2S++){$k[$j++]=$_.height}var _2V=$a();$k[$j++]=Infinity;for(var _2X=0,_2Y=~~(($_.sbs.length+1)/2);_2X<_2Y;_2X++){$k[$j++]=0}var _2Z=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2Q;$k[$j++]="bhs";$k[$j++]=_2V;$k[$j++]="bbs";$k[$j++]=_2Z;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2d=$d();$k[$j++]=_2d;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code39ext(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code39ext);var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];$F($_.barcode,function(){if($k[--$j]>=128){$k[$j++]="bwipp.code39extBadCharacter#6877";$k[$j++]="Code 39 Extended must contain only ASCII characters";bwipp_raiseerror()}});if(!bwipp_code39ext.__6893__){$_=Object.create($_);$_.extencs=$a(["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code39ext.$ctx[id]=$_[id]);bwipp_code39ext.__6893__=1;$_=Object.getPrototypeOf($_)}$_.newcode=$s($_.barlen*2);$_.newtext=$s($_.barlen*2);$_.j=0;for(var _K=0,_J=$_.barlen-1;_K<=_J;_K+=1){$_.i=_K;$_.extchar=$g($_.extencs,$g($_.barcode,$_.i));$P($_.newcode,$_.j,$_.extchar);var _X=$g($_.barcode,$_.i);$k[$j++]=$_.newtext;$k[$j++]=$_.j;$k[$j++]=_X;if(_X<32||_X==127){$j--;$k[$j++]=32}var _Y=$k[--$j];var _Z=$k[--$j];$p($k[--$j],_Z,_Y);if($_.extchar.length!=1){$p($_.newtext,$_.j+1,32)}$_.j=$_.j+$_.extchar.length}$_.newcode=$G($_.newcode,0,$_.j);$_.newtext=$G($_.newtext,0,$_.j);$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.newcode;$k[$j++]=$_.options;bwipp_code39();var _p=$k[--$j];$_[$k[--$j]]=_p;if($_.includetext){$_.txt=$g($_.args,"txt");for(var _w=0,_v=$_.newtext.length-1;_w<=_v;_w+=1){$_.i=_w;$_.txtentry=$g($_.txt,$_.i+1);$p($_.txtentry,0,$G($_.newtext,$_.i,1));$p($_.txt,$_.i+1,$_.txtentry)}$p($_.args,"txt",$_.txt)}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code32(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=8&&$_.barcode.length!=9){$k[$j++]="bwipp.code32badLength#6976";$k[$j++]="Italian Pharmacode must be 8 or 9 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.code32badCharacter#6980";$k[$j++]="Italian Pharmacode must contain only digits";bwipp_raiseerror()}});$_.checksum=0;for(var _6=0;_6<=7;_6+=1){$_.i=_6;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2!=0){var _B=$k[--$j];$k[$j++]=_B*2}var _C=$k[--$j];$k[$j++]=_C;if(_C>9){var _D=$k[--$j];$k[$j++]=$f(_D-9)}$_.checksum=$f($k[--$j]+$_.checksum)}$_.checksum=$_.checksum%10;if($_.barcode.length==9){if($g($_.barcode,8)!=$f($_.checksum+48)){$k[$j++]="bwipp.code32badCheckDigit#6994";$k[$j++]="Incorrect Italian Pharmacode check digit provided";bwipp_raiseerror()}}var _L=$s(10);$P(_L,0,$_.barcode);$p(_L,8,$f($_.checksum+48));$_.text=_L;$_.val=$R($s(6),$i($_.text),32);$_.barcode=$s(6);for(var _S=0;_S<=5;_S+=1){$p($_.barcode,_S,48)}$P($_.barcode,6-$_.val.length,$_.val);for(var _X=0;_X<=5;_X+=1){var _Z=$g($_.barcode,_X);$k[$j++]=_X;$k[$j++]=_Z;$k[$j++]=_Z;for(var _a=0,_b="AEIO".length;_a<_b;_a++){if($k[--$j]>=$g("AEIO",_a)){var _e=$k[--$j];$k[$j++]=$f(_e+1)}var _f=$k[--$j];$k[$j++]=_f;$k[$j++]=_f}$j--;var _h=$k[--$j];$p($_.barcode,$k[--$j],_h)}$P($_.text,1,$G($_.text,0,9));$p($_.text,0,65);$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code39();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_pzn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.height=1;$_.pzn8=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.pzn8){if($_.barcode.length!=7&&$_.barcode.length!=8){$k[$j++]="bwipp.pzn8badLength#7077";$k[$j++]="PZN8 must be 7 or 8 digits";bwipp_raiseerror()}}else{if($_.barcode.length!=6&&$_.barcode.length!=7){$k[$j++]="bwipp.pzn7badLength#7081";$k[$j++]="PZN7 must be 6 or 7 digits";bwipp_raiseerror()}}$F($_.barcode,function(){var _8=$k[--$j];if(_8<48||_8>57){$k[$j++]="bwipp.pznBadCharacter#7086";$k[$j++]="PZN must contain only digits";bwipp_raiseerror()}});var _A=$_.pzn8?9:8;$_.msglen=_A;$_.checksum=0;for(var _D=0,_C=$_.msglen-3;_D<=_C;_D+=1){$_.i=_D;var _J=$_.pzn8?1:2;$_.checksum=$f($f($g($_.barcode,$_.i)-48)*($_.i+_J)+$_.checksum)}$_.checksum=$_.checksum%11;if($_.checksum==10){$k[$j++]="bwipp.pznBadInputSequence#7100";$k[$j++]="Incorrect PZN input sequence provided";bwipp_raiseerror()}if($_.barcode.length==$_.msglen-1){if($g($_.barcode,$_.msglen-2)!=$f($_.checksum+48)){$k[$j++]="bwipp.pznBadCheckDigit#7104";$k[$j++]="Incorrect PZN check digit provided";bwipp_raiseerror()}}var _U=$s($_.msglen);$p(_U,0,45);$P(_U,1,$_.barcode);$p(_U,$_.msglen-1,$f($_.checksum+48));$_.msg=_U;$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.msg;$k[$j++]=$_.options;bwipp_code39();var _b=$k[--$j];$_[$k[--$j]]=_b;$_.text=$s($_.msglen+5);$P($_.text,0,"PZN - ");$P($_.text,6,$G($_.msg,1,$_.msglen-1));var _r=$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]);$p($_.args,"txt",_r);$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code93(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code93);if(!bwipp_code93.__7204__){$_=Object.create($_);$_.encs=$a(["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"]);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$g($_.barchars,_3),_3)}$_.sft1=-1;$_.sft2=-2;$_.sft3=-3;$_.sft4=-4;var _7=$_.charvals;$p(_7,$_.sft1,43);$p($_.charvals,$_.sft2,44);$p($_.charvals,$_.sft3,45);$p($_.charvals,$_.sft4,46);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code93.$ctx[id]=$_[id]);bwipp_code93.__7204__=1;$_=Object.getPrototypeOf($_)}var _M=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["SFT$",$_.sft1],["SFT%",$_.sft2],["SFT/",$_.sft3],["SFT+",$_.sft4]]);$_.fncvals=_M;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _P=$k[--$j];$_[$k[--$j]]=_P;$_.msglen=$_.msg.length;$F($_.msg,function(){var _V=$g($_.charvals,$k[--$j])!==undefined;if(!_V){$k[$j++]="bwipp.code93BadCharacter#7221";$k[$j++]="Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters";bwipp_raiseerror()}});if($_.includecheck){$_.sbs=$s($_.msglen*6+25)}else{$_.sbs=$s($_.msglen*6+13)}$_.txt=$a($_.msglen);$P($_.sbs,0,$g($_.encs,47));$_.checksum1=0;$_.checksum2=0;for(var _i=0,_h=$_.msglen-1;_i<=_h;_i+=1){$_.i=_i;$_.indx=$g($_.charvals,$g($_.msg,$_.i));$P($_.sbs,$_.i*6+6,$g($_.encs,$_.indx));var _v=$g($_.msg,$_.i);$k[$j++]="char";$k[$j++]=_v;if(_v<0){$j--;$k[$j++]=" "}else{var _w=$s(1);$p(_w,0,$k[--$j]);$k[$j++]=_w}var _y=$k[--$j];$_[$k[--$j]]=_y;$p($_.txt,$_.i,$a([$_.char,$_.i*9+9,$_.textyoffset,$_.textfont,$_.textsize]));$_.checksum1=$f($_.checksum1+(($_.msglen-$_.i-1)%20+1)*$_.indx);$_.checksum2=$f($_.checksum2+(($_.msglen-$_.i)%15+1)*$_.indx)}if($_.includecheck){$_.checksum1=$_.checksum1%47;$_.checksum2=$f($_.checksum2+$_.checksum1)%47;$P($_.sbs,$_.msglen*6+6,$g($_.encs,$_.checksum1));$P($_.sbs,$_.msglen*6+12,$g($_.encs,$_.checksum2));$P($_.sbs,$_.msglen*6+18,$g($_.encs,48))}else{$P($_.sbs,$_.msglen*6+6,$g($_.encs,48))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1c=$_.sbs;for(var _1d=0,_1e=_1c.length;_1d<_1e;_1d++){$k[$j++]=$g(_1c,_1d)-48}var _1g=$a();$k[$j++]=Infinity;for(var _1i=0,_1j=~~(($_.sbs.length+1)/2);_1i<_1j;_1i++){$k[$j++]=$_.height}var _1l=$a();$k[$j++]=Infinity;for(var _1n=0,_1o=~~(($_.sbs.length+1)/2);_1n<_1o;_1n++){$k[$j++]=0}var _1p=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_1g;$k[$j++]="bhs";$k[$j++]=_1l;$k[$j++]="bbs";$k[$j++]=_1p;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _1t=$d();$k[$j++]=_1t;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code93ext(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code93ext);var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];var _7=$k[--$j];$_[_7]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];if(!bwipp_code93ext.__7349__){$_=Object.create($_);$_.extencs=$a(["^SFT%U","^SFT$A","^SFT$B","^SFT$C","^SFT$D","^SFT$E","^SFT$F","^SFT$G","^SFT$H","^SFT$I","^SFT$J","^SFT$K","^SFT$L","^SFT$M","^SFT$N","^SFT$O","^SFT$P","^SFT$Q","^SFT$R","^SFT$S","^SFT$T","^SFT$U","^SFT$V","^SFT$W","^SFT$X","^SFT$Y","^SFT$Z","^SFT%A","^SFT%B","^SFT%C","^SFT%D","^SFT%E"," ","^SFT/A","^SFT/B","^SFT/C","$","%","^SFT/F","^SFT/G","^SFT/H","^SFT/I","^SFT/J","+","^SFT/L","-",".","/","0","1","2","3","4","5","6","7","8","9","^SFT/Z","^SFT%F","^SFT%G","^SFT%H","^SFT%I","^SFT%J","^SFT%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","^SFT%K","^SFT%L","^SFT%M","^SFT%N","^SFT%O","^SFT%W","^SFT+A","^SFT+B","^SFT+C","^SFT+D","^SFT+E","^SFT+F","^SFT+G","^SFT+H","^SFT+I","^SFT+J","^SFT+K","^SFT+L","^SFT+M","^SFT+N","^SFT+O","^SFT+P","^SFT+Q","^SFT+R","^SFT+S","^SFT+T","^SFT+U","^SFT+V","^SFT+W","^SFT+X","^SFT+Y","^SFT+Z","^SFT%P","^SFT%Q","^SFT%R","^SFT%S","^SFT%T"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code93ext.$ctx[id]=$_[id]);bwipp_code93ext.__7349__=1;$_=Object.getPrototypeOf($_)}$_.newcode=$s($_.barlen*6);$_.newtext=$s($_.barlen*6);$_.j=0;$_.k=0;for(var _I=0,_H=$_.barlen-1;_I<=_H;_I+=1){$_.i=_I;var _L=$g($_.barcode,$_.i);$k[$j++]=_L;if(_L>127){$j--;$k[$j++]="bwipp.code93extbadCharacter#7358";$k[$j++]="Code 93 Extended only support ASCII characters with values 0 to 127";bwipp_raiseerror()}$_.extchar=$g($_.extencs,$k[--$j]);$_.extlen=$_.extchar.length;$P($_.newcode,$_.j,$_.extchar);var _X=$g($_.barcode,$_.i);$k[$j++]=$_.newtext;$k[$j++]=$_.k;$k[$j++]=_X;if(_X<32||_X==127){$j--;$k[$j++]=32}var _Y=$k[--$j];var _Z=$k[--$j];$p($k[--$j],_Z,_Y);if($_.extlen!=1){$p($_.newtext,$_.k+1,32)}$_.j=$_.j+$_.extlen;var _i=$_.extlen==1?1:2;$_.k=$_.k+_i}$_.newcode=$G($_.newcode,0,$_.j);$_.newtext=$G($_.newtext,0,$_.k);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.newcode;$k[$j++]=$_.options;bwipp_code93();var _t=$k[--$j];$_[$k[--$j]]=_t;if($_.includetext){$_.txt=$g($_.args,"txt");for(var _10=0,_z=$_.newtext.length-1;_10<=_z;_10+=1){$_.i=_10;$_.txtentry=$g($_.txt,$_.i);$p($_.txtentry,0,$G($_.newtext,$_.i,1));$p($_.txt,$_.i,$_.txtentry)}$p($_.args,"txt",$_.txt)}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_interleaved2of5(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_interleaved2of5);$F($_.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.interleaved2of5badCharacter#7444";$k[$j++]="Interleaved 2 of 5 must contain only digits";bwipp_raiseerror()}});$_.barlen=$_.barcode.length;if($_.barlen%2==0&&$_.includecheck||$_.barlen%2!=0&&!$_.includecheck){$_.pad=$s($_.barlen+1);$p($_.pad,0,48);$P($_.pad,1,$_.barcode);$_.barcode=$_.pad;$_.barlen=$_.barlen+1}if($_.includecheck){$_.checksum=0;for(var _J=0,_I=$_.barlen-1;_J<=_I;_J+=1){$_.i=_J;if($_.i%2==0){$_.checksum=$_.checksum+($g($_.barcode,$_.i)-48)*3}else{$_.checksum=$_.checksum+($g($_.barcode,$_.i)-48)}}$_.checksum=(10-$_.checksum%10)%10;$_.pad=$s($_.barlen+1);$P($_.pad,0,$_.barcode);$p($_.pad,$_.barlen,$_.checksum+48);$_.barcode=$_.pad;$_.barlen=$_.barlen+1}if(!bwipp_interleaved2of5.__7490__){$_=Object.create($_);$_.encs=$a(["11221","21112","12112","22111","11212","21211","12211","11122","21121","12121","1111","2111"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_interleaved2of5.$ctx[id]=$_[id]);bwipp_interleaved2of5.__7490__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s($_.barlen*5+8);$_.txt=$a($_.barlen);$P($_.sbs,0,$g($_.encs,10));for(var _o=0,_n=$_.barlen-1;_o<=_n;_o+=2){$_.i=_o;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enca=$g($_.encs,$_.indx);$X($_.barchars,$G($_.barcode,$_.i+1,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.encb=$g($_.encs,$_.indx);$_.intl=$s($_.enca.length*2);for(var _19=0,_18=$_.enca.length-1;_19<=_18;_19+=1){$_.j=_19;$_.achar=$g($_.enca,$_.j);$_.bchar=$g($_.encb,$_.j);$p($_.intl,$_.j*2,$_.achar);$p($_.intl,$_.j*2+1,$_.bchar)}$P($_.sbs,$_.i*5+4,$_.intl);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*9+4,$_.textyoffset,$_.textfont,$_.textsize]));if($_.includecheck&&!$_.includecheckintext&&$_.barlen-2==$_.i){$p($_.txt,$_.i+1,$a([" ",($_.i+1)*9+4,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.i+1,$a([$G($_.barcode,$_.i+1,1),($_.i+1)*9+4,$_.textyoffset,$_.textfont,$_.textsize]))}}$P($_.sbs,$_.barlen*5+4,$g($_.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _1y=$_.sbs;for(var _1z=0,_20=_1y.length;_1z<_20;_1z++){$k[$j++]=$g(_1y,_1z)-48}var _22=$a();$k[$j++]=Infinity;for(var _24=0,_25=~~(($_.sbs.length+1)/2);_24<_25;_24++){$k[$j++]=$_.height}var _27=$a();$k[$j++]=Infinity;for(var _29=0,_2A=~~(($_.sbs.length+1)/2);_29<_2A;_29++){$k[$j++]=0}var _2B=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_22;$k[$j++]="bhs";$k[$j++]=_27;$k[$j++]="bbs";$k[$j++]=_2B;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="barratio";$k[$j++]=2;$k[$j++]="spaceratio";$k[$j++]=2;$k[$j++]="opt";$k[$j++]=$_.options;var _2F=$d();$k[$j++]=_2F;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_itf14(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.includecheckintext=true;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=3;$_.height=.5;$_.showborder=true;$_.borderwidth=4;$_.borderleft=15;$_.borderright=15;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.text=$_.barcode;var _3=$_.barcode;$k[$j++]=$s(_3.length);$k[$j++]=0;$F(_3,function(){var _5=$k[--$j];$k[$j++]=_5;if(_5!=32){var _6=$k[--$j];var _7=$k[--$j];var _8=$k[--$j];$p(_8,_7,_6);$k[$j++]=_8;$k[$j++]=$f(_7+1)}else{$j--}});var _9=$k[--$j];$_.barcode=$G($k[--$j],0,_9);$_.hasspace=$_.text.length!=$_.barcode.length;if($_.barcode.length!=13&&$_.barcode.length!=14){$k[$j++]="bwipp.itf14badLength#7610";$k[$j++]="ITF-14 must be 13 or 14 digits";bwipp_raiseerror()}var _G=$_.barcode;for(var _H=0,_I=_G.length;_H<_I;_H++){var _J=$g(_G,_H);if(_J<48||_J>57){$k[$j++]="bwipp.itf14badCharacter#7614";$k[$j++]="ITF-14 must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _K=0;_K<=12;_K+=1){$_.i=_K;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){var _Q=$k[--$j];$k[$j++]=_Q*3}var _R=$k[--$j];var _S=$k[--$j];$_[$k[--$j]]=$f(_S+_R)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==14){if($g($_.barcode,13)!=$_.checksum+48){$k[$j++]="bwipp.itf14badCheckDigit#7627";$k[$j++]="Incorrect ITF-14 check digit provided";bwipp_raiseerror()}}else{var _Z=$s(14);$P(_Z,0,$_.barcode);$p(_Z,13,$_.checksum+48);$_.barcode=_Z;var _e=$_.hasspace?2:1;var _f=$s($_.text.length+_e);$P(_f,_f.length-2," ");$p(_f,_f.length-1,$_.checksum+48);$P(_f,0,$_.text);$_.text=_f}var _i=$_.options;$p(_i,"dontdraw",true);$p($_.options,"showborder",$_.showborder);$p($_.options,"borderwidth",$_.borderwidth);$p($_.options,"borderleft",$_.borderleft);$p($_.options,"borderright",$_.borderright);var _r=$_.options;$p(_r,"height",$_.height);$p($_.options,"textyoffset",$_.textyoffset);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_interleaved2of5();var _x=$k[--$j];$_[$k[--$j]]=_x;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_identcode(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=11&&$_.barcode.length!=12){$k[$j++]="bwipp.identcodeBadLength#7703";$k[$j++]="Deutsche Post Identcode must be 11 or 12 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.identcodeBadCharacter#7707";$k[$j++]="Deutsche Post Identcode must contain only digits";bwipp_raiseerror()}});$_.checksum=0;for(var _6=0;_6<=10;_6+=1){$_.i=_6;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){var _C=$k[--$j];$k[$j++]=_C*4}else{var _D=$k[--$j];$k[$j++]=_D*9}var _E=$k[--$j];var _F=$k[--$j];$_[$k[--$j]]=$f(_F+_E)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==12){if($g($_.barcode,11)!=$_.checksum+48){$k[$j++]="bwipp.identcodeBadCheckDigit#7720";$k[$j++]="Incorrect Deutsche Post Identcode check digit provided";bwipp_raiseerror()}}var _M=$s(12);$P(_M,0,$_.barcode);$p(_M,11,$_.checksum+48);$_.barcode=_M;$_.text=$Z($s(16)," . . ");$P($_.text,0,$G($_.barcode,0,2));$P($_.text,3,$G($_.barcode,2,3));$P($_.text,7,$G($_.barcode,5,3));$P($_.text,11,$G($_.barcode,8,3));$P($_.text,15,$G($_.barcode,11,1));$p($_.options,"dontdraw",true);$p($_.options,"includecheck",false);var _i=$_.barcode;$k[$j++]="args";$k[$j++]=_i;$k[$j++]=$_.options;bwipp_interleaved2of5();var _k=$k[--$j];$_[$k[--$j]]=_k;var _r=$_.textsize;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,_r])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_leitcode(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=13&&$_.barcode.length!=14){$k[$j++]="bwipp.leitcodeBadLength#7793";$k[$j++]="Deutsche Post Leitcode must be 13 or 14 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.leitcodeBadCharacter#7797";$k[$j++]="Deutsche Post Leitcode must contain only digits";bwipp_raiseerror()}});$_.checksum=0;for(var _6=0;_6<=12;_6+=1){$_.i=_6;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){var _C=$k[--$j];$k[$j++]=_C*4}else{var _D=$k[--$j];$k[$j++]=_D*9}var _E=$k[--$j];var _F=$k[--$j];$_[$k[--$j]]=$f(_F+_E)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==14){if($g($_.barcode,13)!=$_.checksum+48){$k[$j++]="bwipp.leitcodeBadCheckDigit#7810";$k[$j++]="Incorrect Deutsche Post Leitcode check digit provided";bwipp_raiseerror()}}var _M=$s(14);$P(_M,0,$_.barcode);$p(_M,13,$_.checksum+48);$_.barcode=_M;$_.text=$Z($s(18)," . . . ");$P($_.text,0,$G($_.barcode,0,5));$P($_.text,6,$G($_.barcode,5,3));$P($_.text,10,$G($_.barcode,8,3));$P($_.text,14,$G($_.barcode,11,2));$P($_.text,17,$G($_.barcode,13,1));$p($_.options,"dontdraw",true);$p($_.options,"includecheck",false);var _i=$_.barcode;$k[$j++]="args";$k[$j++]=_i;$k[$j++]=$_.options;bwipp_interleaved2of5();var _k=$k[--$j];$_[$k[--$j]]=_k;var _r=$_.textsize;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,_r])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_databaromni(){$_=Object.create($_);$_.dontdraw=false;$_.height=33/72;$_.linkage=false;$_.format="omni";$_.barxmult=33;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databaromniBadAI#7882";$k[$j++]="GS1 DataBar Omnidirectional must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databaromniBadLength#7885";$k[$j++]="GS1 DataBar Omnidirectional must be 13 or 14 digits";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databaromniBadCharacter#7889";$k[$j++]="GS1 DataBar Omnidirectional must contain only digits";bwipp_raiseerror()}}if($_.barxmult<33){$k[$j++]="bwipp.databarStackedOmniBarXmult#7894";$k[$j++]="GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33";bwipp_raiseerror()}if($ne($_.format,"omni")&&$ne($_.format,"stacked")&&$ne($_.format,"stackedomni")&&$ne($_.format,"truncated")){$k[$j++]="bwipp.databaromniBadFormat#7898";$k[$j++]="Valid formats are omni, stacked, stackedomni and truncated";bwipp_raiseerror()}if($eq($_.format,"truncated")){$_.height=13/72}bwipp_loadctx(bwipp_databaromni);$_.checksum=0;for(var _I=0;_I<=12;_I+=1){$_.i=_I;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _O=$k[--$j];$k[$j++]=_O*3}var _P=$k[--$j];var _Q=$k[--$j];$_[$k[--$j]]=$f(_Q+_P)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databaromniBadCheckDigit#7914";$k[$j++]="Incorrect GS1 DataBar Omnidirectional check digit provided";bwipp_raiseerror()}}var _X=$s(18);$P(_X,0,$_.barcode);$p(_X,17,$_.checksum+48);$_.barcode=_X;$_.txt=$a($_.barcode.length);for(var _e=0,_d=$_.barcode.length-1;_e<=_d;_e+=1){$_.i=_e;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.ncr=function(){var _l=$k[--$j];var _m=$k[--$j];var _n=$f(_m-_l);if(_l<$f(_m-_l)){var _=_n;_n=_l;_l=_}$k[$j++]=_n;$k[$j++]=1;$k[$j++]=1;for(var _p=_m,_o=$f(_l+1);_p>=_o;_p-=1){var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];$k[$j++]=_s;$k[$j++]=_r;$k[$j++]=_q*_p;if($le(_r,_s)){var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=$f(_u+1);$k[$j++]=~~(_t/_u)}}for(;;){var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;$k[$j++]=_v;if($gt(_w,_x)){break}var _y=$k[--$j];var _z=$k[--$j];$k[$j++]=$f(_z+1);$k[$j++]=~~(_y/_z)}var _10=$k[--$j];var _11=$k[--$j];$k[$j++]=_10;$k[$j++]=_11;$j--;var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_12;$k[$j++]=_13;$j--};$_.getRSSwidths=function(){$_.oe=$k[--$j];$_.el=$k[--$j];$_.mw=$k[--$j];$_.nm=$k[--$j];$_.val=$k[--$j];$_.out=$a($_.el);$_.mask=0;for(var _1D=0,_1C=$f($_.el-2);_1D<=_1C;_1D+=1){$_.bar=_1D;$_.ew=1;var _1F=$_.bar;$_.mask=$_.mask|(_1F<0?1>>>-_1F:1<<_1F);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($_.nm-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1K=$k[--$j];$_[$k[--$j]]=_1K;if($_.oe&&$_.mask==0&&$f($f($f($_.nm-$_.ew)-$_.el*2)+$_.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$_.sval;$k[$j++]=$f($f($f($_.nm-$_.ew)-$_.el)+$_.bar);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1Z=$k[--$j];var _1a=$k[--$j];$_[$k[--$j]]=$f(_1a-_1Z)}if($f($_.el-$_.bar)>2){$_.lval=0;for(var _1k=$f($f($f($f($_.nm-$_.ew)-$_.el)+$_.bar)+2),_1j=$f($_.mw+1);_1k>=_1j;_1k-=1){$k[$j++]=$f($f($f($_.nm-_1k)-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-3);$_.ncr();$_.lval=$f($k[--$j]+$_.lval)}$_.sval=$f($_.sval-$_.lval*$f($f($_.el-$_.bar)-1))}else{if($f($_.nm-$_.ew)>$_.mw){$_.sval=$f($_.sval-1)}}$_.val=$f($_.val-$_.sval);if($_.val<0){break}$_.ew=$_.ew+1;var _24=$_.bar;$_.mask=$_.mask&~(_24<0?1>>>-_24:1<<_24)}$_.val=$f($_.val+$_.sval);$_.nm=$f($_.nm-$_.ew);$p($_.out,$_.bar,$_.ew)}$p($_.out,$f($_.el-1),$_.nm);$k[$j++]=$_.out};$k[$j++]=Infinity;var _2H=$_.linkage?1:0;var _2J=$G($_.barcode,4,13);$k[$j++]=_2H;for(var _2K=0,_2L=_2J.length;_2K<_2L;_2K++){$k[$j++]=$f($g(_2J,_2K)-48)}$_.binval=$a();for(var _2O=0;_2O<=12;_2O+=1){$_.i=_2O;var _2P=$_.binval;var _2Q=$_.i;$p(_2P,_2Q+1,$f($g(_2P,_2Q+1)+$g($_.binval,$_.i)%4537077*10));$p($_.binval,$_.i,~~($g($_.binval,$_.i)/4537077))}$_.right=$g($_.binval,13)%4537077;var _2c=$_.binval;$p(_2c,13,~~($g(_2c,13)/4537077));$_.left=0;$_.i=true;for(var _2e=0;_2e<=13;_2e+=1){$_.j=_2e;var _2h=$g($_.binval,$_.j);$k[$j++]=_2h;if(_2h==0&&$_.i){$j--}else{$_.i=false;$_.left=$f($_.left+$k[--$j]*~~Math.pow(10,13-$_.j))}}$_.d1=~~($_.left/1597);$_.d2=$_.left%1597;$_.d3=~~($_.right/1597);$_.d4=$_.right%1597;if(!bwipp_databaromni.__8030__){$_=Object.create($_);$_.tab164=$a([160,0,12,4,8,1,161,1,960,161,10,6,6,3,80,10,2014,961,8,8,4,5,31,34,2714,2015,6,10,3,6,10,70,2840,2715,4,12,1,8,1,126]);$_.tab154=$a([335,0,5,10,2,7,4,84,1035,336,7,8,4,5,20,35,1515,1036,9,6,6,3,48,10,1596,1516,11,4,8,1,81,1]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databaromni.$ctx[id]=$_[id]);bwipp_databaromni.__8030__=1;$_=Object.getPrototypeOf($_)}$_.i=0;for(;;){if($_.d1<=$g($_.tab164,$_.i)){var _2z=$G($_.tab164,$_.i+1,7);for(var _30=0,_31=_2z.length;_30<_31;_30++){$k[$j++]=$g(_2z,_30)}$_.d1te=$k[--$j];$_.d1to=$k[--$j];$_.d1mwe=$k[--$j];$_.d1mwo=$k[--$j];$_.d1ele=$k[--$j];$_.d1elo=$k[--$j];$_.d1gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d2<=$g($_.tab154,$_.i)){var _3H=$G($_.tab154,$_.i+1,7);for(var _3I=0,_3J=_3H.length;_3I<_3J;_3I++){$k[$j++]=$g(_3H,_3I)}$_.d2te=$k[--$j];$_.d2to=$k[--$j];$_.d2mwe=$k[--$j];$_.d2mwo=$k[--$j];$_.d2ele=$k[--$j];$_.d2elo=$k[--$j];$_.d2gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d3<=$g($_.tab164,$_.i)){var _3Z=$G($_.tab164,$_.i+1,7);for(var _3a=0,_3b=_3Z.length;_3a<_3b;_3a++){$k[$j++]=$g(_3Z,_3a)}$_.d3te=$k[--$j];$_.d3to=$k[--$j];$_.d3mwe=$k[--$j];$_.d3mwo=$k[--$j];$_.d3ele=$k[--$j];$_.d3elo=$k[--$j];$_.d3gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d4<=$g($_.tab154,$_.i)){var _3r=$G($_.tab154,$_.i+1,7);for(var _3s=0,_3t=_3r.length;_3s<_3t;_3s++){$k[$j++]=$g(_3r,_3s)}$_.d4te=$k[--$j];$_.d4to=$k[--$j];$_.d4mwe=$k[--$j];$_.d4mwo=$k[--$j];$_.d4ele=$k[--$j];$_.d4elo=$k[--$j];$_.d4gs=$k[--$j];break}$_.i=$_.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($_.d1-$_.d1gs)/$_.d1te);$k[$j++]=$_.d1elo;$k[$j++]=$_.d1mwo;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _48=$k[--$j];$_[$k[--$j]]=_48;$k[$j++]="d1we";$k[$j++]=$f($_.d1-$_.d1gs)%$_.d1te;$k[$j++]=$_.d1ele;$k[$j++]=$_.d1mwe;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4F=$k[--$j];$_[$k[--$j]]=_4F;$k[$j++]="d2wo";$k[$j++]=$f($_.d2-$_.d2gs)%$_.d2to;$k[$j++]=$_.d2elo;$k[$j++]=$_.d2mwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4M=$k[--$j];$_[$k[--$j]]=_4M;$k[$j++]="d2we";$k[$j++]=~~($f($_.d2-$_.d2gs)/$_.d2to);$k[$j++]=$_.d2ele;$k[$j++]=$_.d2mwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _4T=$k[--$j];$_[$k[--$j]]=_4T;$k[$j++]="d3wo";$k[$j++]=~~($f($_.d3-$_.d3gs)/$_.d3te);$k[$j++]=$_.d3elo;$k[$j++]=$_.d3mwo;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _4a=$k[--$j];$_[$k[--$j]]=_4a;$k[$j++]="d3we";$k[$j++]=$f($_.d3-$_.d3gs)%$_.d3te;$k[$j++]=$_.d3ele;$k[$j++]=$_.d3mwe;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4h=$k[--$j];$_[$k[--$j]]=_4h;$k[$j++]="d4wo";$k[$j++]=$f($_.d4-$_.d4gs)%$_.d4to;$k[$j++]=$_.d4elo;$k[$j++]=$_.d4mwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4o=$k[--$j];$_[$k[--$j]]=_4o;$k[$j++]="d4we";$k[$j++]=~~($f($_.d4-$_.d4gs)/$_.d4to);$k[$j++]=$_.d4ele;$k[$j++]=$_.d4mwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _4v=$k[--$j];$_[$k[--$j]]=_4v;$_.d1w=$a(8);for(var _4y=0;_4y<=3;_4y+=1){$_.i=_4y;$p($_.d1w,$_.i*2,$g($_.d1wo,$_.i));$p($_.d1w,$_.i*2+1,$g($_.d1we,$_.i))}$_.d2w=$a(8);for(var _5A=0;_5A<=3;_5A+=1){$_.i=_5A;$p($_.d2w,7-$_.i*2,$g($_.d2wo,$_.i));$p($_.d2w,6-$_.i*2,$g($_.d2we,$_.i))}$_.d3w=$a(8);for(var _5M=0;_5M<=3;_5M+=1){$_.i=_5M;$p($_.d3w,7-$_.i*2,$g($_.d3wo,$_.i));$p($_.d3w,6-$_.i*2,$g($_.d3we,$_.i))}$_.d4w=$a(8);for(var _5Y=0;_5Y<=3;_5Y+=1){$_.i=_5Y;$p($_.d4w,$_.i*2,$g($_.d4wo,$_.i));$p($_.d4w,$_.i*2+1,$g($_.d4we,$_.i))}$k[$j++]=Infinity;var _5j=$_.d1w;for(var _5k=0,_5l=_5j.length;_5k<_5l;_5k++){$k[$j++]=$g(_5j,_5k)}var _5n=$_.d2w;for(var _5o=0,_5p=_5n.length;_5o<_5p;_5o++){$k[$j++]=$g(_5n,_5o)}var _5r=$_.d3w;for(var _5s=0,_5t=_5r.length;_5s<_5t;_5s++){$k[$j++]=$g(_5r,_5s)}var _5v=$_.d4w;for(var _5w=0,_5x=_5v.length;_5w<_5x;_5w++){$k[$j++]=$g(_5v,_5w)}$_.widths=$a();if(!bwipp_databaromni.__8137__){$_=Object.create($_);$_.checkweights=$a([1,3,9,27,2,6,18,54,58,72,24,8,29,36,12,4,74,51,17,32,37,65,48,16,64,34,23,69,49,68,46,59]);$_.checkwidths=$a([3,8,2,1,1,3,5,5,1,1,3,3,7,1,1,3,1,9,1,1,2,7,4,1,1,2,5,6,1,1,2,3,8,1,1,1,5,7,1,1,1,3,9,1,1]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databaromni.$ctx[id]=$_[id]);bwipp_databaromni.__8137__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _63=0;_63<=31;_63+=1){$_.i=_63;$_.checksum=$f($_.checksum+$g($_.widths,$_.i)*$g($_.checkweights,$_.i))}$_.checksum=$_.checksum%79;if($_.checksum>=8){$_.checksum=$f($_.checksum+1)}if($_.checksum>=72){$_.checksum=$f($_.checksum+1)}$_.checklt=$G($_.checkwidths,~~($_.checksum/9)*5,5);$_.checkrtrev=$G($_.checkwidths,$_.checksum%9*5,5);$_.checkrt=$a(5);for(var _6N=0;_6N<=4;_6N+=1){$_.i=_6N;$p($_.checkrt,$_.i,$g($_.checkrtrev,4-$_.i))}if($eq($_.format,"omni")||$eq($_.format,"truncated")){$k[$j++]=Infinity;var _6V=$_.d1w;$k[$j++]=1;for(var _6W=0,_6X=_6V.length;_6W<_6X;_6W++){$k[$j++]=$g(_6V,_6W)}var _6Z=$_.checklt;for(var _6a=0,_6b=_6Z.length;_6a<_6b;_6a++){$k[$j++]=$g(_6Z,_6a)}var _6d=$_.d2w;for(var _6e=0,_6f=_6d.length;_6e<_6f;_6e++){$k[$j++]=$g(_6d,_6e)}var _6h=$_.d4w;for(var _6i=0,_6j=_6h.length;_6i<_6j;_6i++){$k[$j++]=$g(_6h,_6i)}var _6l=$_.checkrt;for(var _6m=0,_6n=_6l.length;_6m<_6n;_6m++){$k[$j++]=$g(_6l,_6m)}var _6p=$_.d3w;for(var _6q=0,_6r=_6p.length;_6q<_6r;_6q++){$k[$j++]=$g(_6p,_6q)}$k[$j++]=1;$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _6u=$_.sbs;$k[$j++]=Infinity;for(var _6w=0,_6x=~~(($_.sbs.length+1)/2);_6w<_6x;_6w++){$k[$j++]=$_.height}var _6z=$a();$k[$j++]=Infinity;for(var _71=0,_72=~~(($_.sbs.length+1)/2);_71<_72;_71++){$k[$j++]=0}var _73=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_6u;$k[$j++]="bhs";$k[$j++]=_6z;$k[$j++]="bbs";$k[$j++]=_73;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _76=$d();$k[$j++]=_76;if(!$_.dontdraw){bwipp_renlinear()}}else{$k[$j++]=Infinity;var _78=$_.d1w;$k[$j++]=1;$k[$j++]=1;for(var _79=0,_7A=_78.length;_79<_7A;_79++){$k[$j++]=$g(_78,_79)}var _7C=$_.checklt;for(var _7D=0,_7E=_7C.length;_7D<_7E;_7D++){$k[$j++]=$g(_7C,_7D)}var _7G=$_.d2w;for(var _7H=0,_7I=_7G.length;_7H<_7I;_7H++){$k[$j++]=$g(_7G,_7H)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$_.top=$a();$k[$j++]=Infinity;var _7L=$_.d4w;$k[$j++]=1;$k[$j++]=1;for(var _7M=0,_7N=_7L.length;_7M<_7N;_7M++){$k[$j++]=$g(_7L,_7M)}var _7P=$_.checkrt;for(var _7Q=0,_7R=_7P.length;_7Q<_7R;_7Q++){$k[$j++]=$g(_7P,_7Q)}var _7T=$_.d3w;for(var _7U=0,_7V=_7T.length;_7U<_7V;_7U++){$k[$j++]=$g(_7T,_7U)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$_.bot=$a();for(var _7Y=0;_7Y<=24;_7Y+=2){$_.i=_7Y;for(var _7c=0,_7d=$g($_.top,$_.i);_7c<_7d;_7c++){$k[$j++]=0}for(var _7h=0,_7i=$g($_.top,$_.i+1);_7h<_7i;_7h++){$k[$j++]=1}}$as($a(50));$_.top=$k[--$j];for(var _7l=0;_7l<=24;_7l+=2){$_.i=_7l;for(var _7p=0,_7q=$g($_.bot,$_.i);_7p<_7q;_7p++){$k[$j++]=1}for(var _7u=0,_7v=$g($_.bot,$_.i+1);_7u<_7v;_7u++){$k[$j++]=0}}$as($a(50));$_.bot=$k[--$j];if($eq($_.format,"stacked")){$_.sep=$a(50);$p($_.sep,0,0);for(var _81=1;_81<=49;_81+=1){$_.i=_81;if($eq($g($_.top,$_.i),$g($_.bot,$_.i))){$p($_.sep,$_.i,$f(1-$g($_.top,$_.i)))}else{$p($_.sep,$_.i,$f(1-$g($_.sep,$_.i-1)))}}$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,46,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _8M=0,_8N=5;_8M<_8N;_8M++){$q($_.top)}$q($_.sep);for(var _8Q=0,_8R=7;_8Q<_8R;_8Q++){$q($_.bot)}$_.pixs=$a();$_.pixy=~~($_.pixs.length/50)}if($eq($_.format,"stackedomni")){$k[$j++]=Infinity;$F($_.top,function(){var _8X=$k[--$j];$k[$j++]=$f(1-_8X)});$_.sep1=$a();$P($_.sep1,0,$a([0,0,0,0]));$P($_.sep1,46,$a([0,0,0,0]));for(var _8d=18;_8d<=30;_8d+=1){$_.i=_8d;if($g($_.top,$_.i)==0){if($g($_.top,$_.i-1)==1){$k[$j++]=1}else{var _8n=$g($_.sep1,$_.i-1)==0?1:0;$k[$j++]=_8n}}else{$k[$j++]=0}$p($_.sep1,$_.i,$k[--$j])}$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _8r=0,_8s=21;_8r<_8s;_8r++){$k[$j++]=0;$k[$j++]=1}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.sep2=$a();$k[$j++]=Infinity;$F($_.bot,function(){var _8v=$k[--$j];$k[$j++]=$f(1-_8v)});$_.sep3=$a();$P($_.sep3,0,$a([0,0,0,0]));$P($_.sep3,46,$a([0,0,0,0]));for(var _91=19;_91<=31;_91+=1){$_.i=_91;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _9B=$g($_.sep3,$_.i-1)==0?1:0;$k[$j++]=_9B}}else{$k[$j++]=0}$p($_.sep3,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _9G=0;_9G<=12;_9G+=1){var _9L=$k[--$j];$k[$j++]=_9L&&$eq($g($_.bot,_9G+19),$g($_.f3,_9G))}if($k[--$j]){$P($_.sep3,19,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}$k[$j++]=Infinity;for(var _9Q=0,_9R=$_.barxmult;_9Q<_9R;_9Q++){$q($_.top)}$q($_.sep1);$q($_.sep2);$q($_.sep3);for(var _9X=0,_9Y=$_.barxmult;_9X<_9Y;_9X++){$q($_.bot)}$_.pixs=$a();$_.pixy=~~($_.pixs.length/50)}var _9g=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",50],["pixy",$_.pixy],["height",$_.pixy/72],["width",50/72],["opt",$_.options]]);$k[$j++]=_9g;if(!$_.dontdraw){bwipp_renmatrix()}}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_databarstacked(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedBadAI#8320";$k[$j++]="GS1 DataBar Stacked must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databarstackedBadLength#8323";$k[$j++]="GS1 DataBar Stacked must be 13 or 14 digits";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databarstackedBadCharacter#8327";$k[$j++]="GS1 DataBar Stacked must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _C=0;_C<=12;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databarstackedBadCheckDigit#8340";$k[$j++]="Incorrect GS1 DataBar Stacked check digit provided";bwipp_raiseerror()}}var _R=$s(18);$P(_R,0,$_.barcode);$p(_R,17,$_.checksum+48);$_.barcode=_R;$p($_.options,"dontdraw",true);$p($_.options,"format","stacked");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databaromni();var _Y=$k[--$j];$_[$k[--$j]]=_Y;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_databarstackedomni(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedomniBadAI#8398";$k[$j++]="GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databarstackedomniBadLength#8401";$k[$j++]="GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databarstackedomniBadCharacter#8405";$k[$j++]="GS1 DataBar Stacked Omnidirectional must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _C=0;_C<=12;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databarstackedomniBadCheckDigit#8418";$k[$j++]="Incorrect GS1 DataBar Stacked Omnidirectional check digit provided";bwipp_raiseerror()}}var _R=$s(18);$P(_R,0,$_.barcode);$p(_R,17,$_.checksum+48);$_.barcode=_R;$p($_.options,"dontdraw",true);$p($_.options,"format","stackedomni");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databaromni();var _Y=$k[--$j];$_[$k[--$j]]=_Y;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_databartruncated(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databartruncatedBadAI#8476";$k[$j++]="GS1 DataBar Truncated must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databartruncatedBadLength#8479";$k[$j++]="GS1 DataBar Truncated must be 13 or 14 digits";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databartruncatedBadCharacter#8483";$k[$j++]="GS1 DataBar Truncated must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _C=0;_C<=12;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databartruncatedBadCheckDigit#8496";$k[$j++]="Incorrect GS1 DataBar Truncated check digit provided";bwipp_raiseerror()}}var _R=$s(18);$P(_R,0,$_.barcode);$p(_R,17,$_.checksum+48);$_.barcode=_R;$p($_.options,"dontdraw",true);$p($_.options,"format","truncated");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databaromni();var _Y=$k[--$j];$_[$k[--$j]]=_Y;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_databarlimited(){$_=Object.create($_);$_.dontdraw=false;$_.height=10/72;$_.linkage=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_databarlimited);if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarlimitedBadAI#8559";$k[$j++]="GS1 DataBar Limited must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databarlimitedBadLength#8562";$k[$j++]="GS1 DataBar Limited must be 13 or 14 digits";bwipp_raiseerror()}var _7=$g($_.barcode,4);if(_7<48||_7>49){$k[$j++]="bwipp.databarlimitedBadStartDigit#8565";$k[$j++]="GS1 DataBar Limited must begin with 0 or 1";bwipp_raiseerror()}var _A=$G($_.barcode,5,$_.barcode.length-5);for(var _B=0,_C=_A.length;_B<_C;_B++){var _D=$g(_A,_B);if(_D<48||_D>57){$k[$j++]="bwipp.databarlimitedBadCharacter#8569";$k[$j++]="GS1 DataBar Limited must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _E=0;_E<=12;_E+=1){$_.i=_E;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _K=$k[--$j];$k[$j++]=_K*3}var _L=$k[--$j];var _M=$k[--$j];$_[$k[--$j]]=$f(_M+_L)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databarlimitedBadCheckDigit#8582";$k[$j++]="Incorrect GS1 DataBar Limited check digit provided";bwipp_raiseerror()}}var _T=$s(18);$P(_T,0,$_.barcode);$p(_T,17,$_.checksum+48);$_.barcode=_T;if(!bwipp_databarlimited.__8593__){$_=Object.create($_);$_.linkval=$a([2,0,1,5,1,3,3,5,3,1,0,9,6]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarlimited.$ctx[id]=$_[id]);bwipp_databarlimited.__8593__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;var _Z=$G($_.barcode,4,13);for(var _a=0,_b=_Z.length;_a<_b;_a++){$k[$j++]=$f($g(_Z,_a)-48)}$_.binval=$a();if($_.linkage){for(var _h=0,_g=$_.binval.length-1;_h<=_g;_h+=1){$_.i=_h;$p($_.binval,$_.i,$f($g($_.binval,$_.i)+$g($_.linkval,$_.i)))}}$_.txt=$a($_.barcode.length);for(var _u=0,_t=$_.barcode.length-1;_u<=_t;_u+=1){$_.i=_u;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.ncr=function(){var _11=$k[--$j];var _12=$k[--$j];var _13=$f(_12-_11);if(_11<$f(_12-_11)){var _=_13;_13=_11;_11=_}$k[$j++]=_13;$k[$j++]=1;$k[$j++]=1;for(var _15=_12,_14=$f(_11+1);_15>=_14;_15-=1){var _16=$k[--$j];var _17=$k[--$j];var _18=$k[--$j];$k[$j++]=_18;$k[$j++]=_17;$k[$j++]=_16*_15;if($le(_17,_18)){var _19=$k[--$j];var _1A=$k[--$j];$k[$j++]=$f(_1A+1);$k[$j++]=~~(_19/_1A)}}for(;;){var _1B=$k[--$j];var _1C=$k[--$j];var _1D=$k[--$j];$k[$j++]=_1D;$k[$j++]=_1C;$k[$j++]=_1B;if($gt(_1C,_1D)){break}var _1E=$k[--$j];var _1F=$k[--$j];$k[$j++]=$f(_1F+1);$k[$j++]=~~(_1E/_1F)}var _1G=$k[--$j];var _1H=$k[--$j];$k[$j++]=_1G;$k[$j++]=_1H;$j--;var _1I=$k[--$j];var _1J=$k[--$j];$k[$j++]=_1I;$k[$j++]=_1J;$j--};$_.getRSSwidths=function(){$_.oe=$k[--$j];$_.el=$k[--$j];$_.mw=$k[--$j];$_.nm=$k[--$j];$_.val=$k[--$j];$_.out=$a($_.el);$_.mask=0;for(var _1T=0,_1S=$f($_.el-2);_1T<=_1S;_1T+=1){$_.bar=_1T;$_.ew=1;var _1V=$_.bar;$_.mask=$_.mask|(_1V<0?1>>>-_1V:1<<_1V);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($_.nm-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1a=$k[--$j];$_[$k[--$j]]=_1a;if($_.oe&&$_.mask==0&&$f($f($f($_.nm-$_.ew)-$_.el*2)+$_.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$_.sval;$k[$j++]=$f($f($f($_.nm-$_.ew)-$_.el)+$_.bar);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1p=$k[--$j];var _1q=$k[--$j];$_[$k[--$j]]=$f(_1q-_1p)}if($f($_.el-$_.bar)>2){$_.lval=0;for(var _20=$f($f($f($f($_.nm-$_.ew)-$_.el)+$_.bar)+2),_1z=$f($_.mw+1);_20>=_1z;_20-=1){$k[$j++]=$f($f($f($_.nm-_20)-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-3);$_.ncr();$_.lval=$f($k[--$j]+$_.lval)}$_.sval=$f($_.sval-$_.lval*$f($f($_.el-$_.bar)-1))}else{if($f($_.nm-$_.ew)>$_.mw){$_.sval=$f($_.sval-1)}}$_.val=$f($_.val-$_.sval);if($_.val<0){break}$_.ew=$_.ew+1;var _2K=$_.bar;$_.mask=$_.mask&~(_2K<0?1>>>-_2K:1<<_2K)}$_.val=$f($_.val+$_.sval);$_.nm=$f($_.nm-$_.ew);$p($_.out,$_.bar,$_.ew)}$p($_.out,$f($_.el-1),$_.nm);$k[$j++]=$_.out};for(var _2W=0;_2W<=11;_2W+=1){$_.i=_2W;var _2X=$_.binval;var _2Y=$_.i;$p(_2X,_2Y+1,$f($g(_2X,_2Y+1)+$g($_.binval,$_.i)%2013571*10));$p($_.binval,$_.i,~~($g($_.binval,$_.i)/2013571))}$_.d2=$g($_.binval,12)%2013571;var _2k=$_.binval;$p(_2k,12,~~($g(_2k,12)/2013571));$_.d1=0;$_.i=true;for(var _2m=0;_2m<=12;_2m+=1){$_.j=_2m;var _2p=$g($_.binval,$_.j);$k[$j++]=_2p;if(_2p==0&&$_.i){$j--}else{$_.i=false;$_.d1=$f($_.d1+$k[--$j]*~~Math.pow(10,12-$_.j))}}if(!bwipp_databarlimited.__8697__){$_=Object.create($_);$_.tab267=$a([183063,0,17,9,6,3,6538,28,820063,183064,13,13,5,4,875,728,1000775,820064,9,17,3,6,28,6454,1491020,1000776,15,11,5,4,2415,203,1979844,1491021,11,15,4,5,203,2408,1996938,1979845,19,7,8,1,17094,1,2013570,1996939,7,19,1,8,1,16632]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarlimited.$ctx[id]=$_[id]);bwipp_databarlimited.__8697__=1;$_=Object.getPrototypeOf($_)}$_.i=0;for(;;){if($_.d1<=$g($_.tab267,$_.i)){var _32=$G($_.tab267,$_.i+1,7);for(var _33=0,_34=_32.length;_33<_34;_33++){$k[$j++]=$g(_32,_33)}$_.d1te=$k[--$j];$_.d1to=$k[--$j];$_.d1mwe=$k[--$j];$_.d1mwo=$k[--$j];$_.d1ele=$k[--$j];$_.d1elo=$k[--$j];$_.d1gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d2<=$g($_.tab267,$_.i)){var _3K=$G($_.tab267,$_.i+1,7);for(var _3L=0,_3M=_3K.length;_3L<_3M;_3L++){$k[$j++]=$g(_3K,_3L)}$_.d2te=$k[--$j];$_.d2to=$k[--$j];$_.d2mwe=$k[--$j];$_.d2mwo=$k[--$j];$_.d2ele=$k[--$j];$_.d2elo=$k[--$j];$_.d2gs=$k[--$j];break}$_.i=$_.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($_.d1-$_.d1gs)/$_.d1te);$k[$j++]=$_.d1elo;$k[$j++]=$_.d1mwo;$k[$j++]=7;$k[$j++]=false;$_.getRSSwidths();var _3b=$k[--$j];$_[$k[--$j]]=_3b;$k[$j++]="d1we";$k[$j++]=$f($_.d1-$_.d1gs)%$_.d1te;$k[$j++]=$_.d1ele;$k[$j++]=$_.d1mwe;$k[$j++]=7;$k[$j++]=true;$_.getRSSwidths();var _3i=$k[--$j];$_[$k[--$j]]=_3i;$k[$j++]="d2wo";$k[$j++]=~~($f($_.d2-$_.d2gs)/$_.d2te);$k[$j++]=$_.d2elo;$k[$j++]=$_.d2mwo;$k[$j++]=7;$k[$j++]=false;$_.getRSSwidths();var _3p=$k[--$j];$_[$k[--$j]]=_3p;$k[$j++]="d2we";$k[$j++]=$f($_.d2-$_.d2gs)%$_.d2te;$k[$j++]=$_.d2ele;$k[$j++]=$_.d2mwe;$k[$j++]=7;$k[$j++]=true;$_.getRSSwidths();var _3w=$k[--$j];$_[$k[--$j]]=_3w;$_.d1w=$a(14);for(var _3z=0;_3z<=6;_3z+=1){$_.i=_3z;$p($_.d1w,$_.i*2,$g($_.d1wo,$_.i));$p($_.d1w,$_.i*2+1,$g($_.d1we,$_.i))}$_.d2w=$a(14);for(var _4B=0;_4B<=6;_4B+=1){$_.i=_4B;$p($_.d2w,$_.i*2,$g($_.d2wo,$_.i));$p($_.d2w,$_.i*2+1,$g($_.d2we,$_.i))}$k[$j++]=Infinity;var _4M=$_.d1w;for(var _4N=0,_4O=_4M.length;_4N<_4O;_4N++){$k[$j++]=$g(_4M,_4N)}var _4Q=$_.d2w;for(var _4R=0,_4S=_4Q.length;_4R<_4S;_4R++){$k[$j++]=$g(_4Q,_4R)}$_.widths=$a();if(!bwipp_databarlimited.__8768__){$_=Object.create($_);$_.checkweights=$a([1,3,9,27,81,65,17,51,64,14,42,37,22,66,20,60,2,6,18,54,73,41,34,13,39,28,84,74]);$k[$j++]=Infinity;for(var _4W=0;_4W<=43;_4W+=1){$k[$j++]=_4W}$k[$j++]=45;$k[$j++]=52;$k[$j++]=57;for(var _4X=63;_4X<=66;_4X+=1){$k[$j++]=_4X}for(var _4Y=73;_4Y<=79;_4Y+=1){$k[$j++]=_4Y}$k[$j++]=82;for(var _4Z=126;_4Z<=130;_4Z+=1){$k[$j++]=_4Z}$k[$j++]=132;for(var _4a=141;_4a<=146;_4a+=1){$k[$j++]=_4a}for(var _4b=210;_4b<=217;_4b+=1){$k[$j++]=_4b}$k[$j++]=220;for(var _4c=316;_4c<=320;_4c+=1){$k[$j++]=_4c}$k[$j++]=322;$k[$j++]=323;$k[$j++]=326;$k[$j++]=337;$_.checkseq=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarlimited.$ctx[id]=$_[id]);bwipp_databarlimited.__8768__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _4f=0;_4f<=27;_4f+=1){$_.i=_4f;$_.checksum=$f($_.checksum+$g($_.widths,$_.i)*$g($_.checkweights,$_.i))}$_.checksum=$_.checksum%89;$_.seq=$g($_.checkseq,$_.checksum);$k[$j++]="swidths";$k[$j++]=~~($_.seq/21);$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$_.getRSSwidths();var _4s=$k[--$j];$_[$k[--$j]]=_4s;$k[$j++]="bwidths";$k[$j++]=$_.seq%21;$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$_.getRSSwidths();var _4v=$k[--$j];$_[$k[--$j]]=_4v;$_.checkwidths=$a([0,0,0,0,0,0,0,0,0,0,0,0,1,1]);for(var _4y=0;_4y<=5;_4y+=1){$_.i=_4y;$p($_.checkwidths,$_.i*2,$g($_.swidths,$_.i));$p($_.checkwidths,$_.i*2+1,$g($_.bwidths,$_.i))}$k[$j++]=Infinity;var _59=$_.d1w;$k[$j++]=1;for(var _5A=0,_5B=_59.length;_5A<_5B;_5A++){$k[$j++]=$g(_59,_5A)}var _5D=$_.checkwidths;for(var _5E=0,_5F=_5D.length;_5E<_5F;_5E++){$k[$j++]=$g(_5D,_5E)}var _5H=$_.d2w;for(var _5I=0,_5J=_5H.length;_5I<_5J;_5I++){$k[$j++]=$g(_5H,_5I)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=5;$_.sbs=$a();$k[$j++]=Infinity;var _5M=$_.sbs;$k[$j++]=Infinity;for(var _5O=0,_5P=~~(($_.sbs.length+1)/2);_5O<_5P;_5O++){$k[$j++]=$_.height}var _5R=$a();$k[$j++]=Infinity;for(var _5T=0,_5U=~~(($_.sbs.length+1)/2);_5T<_5U;_5T++){$k[$j++]=0}var _5V=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_5M;$k[$j++]="bhs";$k[$j++]=_5R;$k[$j++]="bbs";$k[$j++]=_5V;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _5Y=$d();$k[$j++]=_5Y;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_databarexpanded(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$_.height=34/72;$_.format="expanded";$_.segments=-1;$_.linkage=false;$_.barxmult=34;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_databarexpanded);if($_.barxmult<34){$k[$j++]="bwipp.databarStackedOmniBarXmult#8857";$k[$j++]="GS1 DataBar Expanded Stacked must have a barxmult of at least 34";bwipp_raiseerror()}if($ne($_.format,"expanded")&&$ne($_.format,"expandedstacked")){$k[$j++]="bwipp.databarexpandedBadFormat#8861";$k[$j++]="Valid formats are expanded and expandedstacked";bwipp_raiseerror()}if($_.segments==-1){var _7=$eq($_.format,"expandedstacked")?4:22;$_.segments=_7}else{if($_.segments<2||$_.segments>22||$_.segments%2!=0){$k[$j++]="bwipp.gs1databarexpandedBadSegments#8868";$k[$j++]="The number of segments must be even from 2 to 22";bwipp_raiseerror()}}$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];for(;;){if($_.ais.length==2){if($eq($g($_.ais,0),"01")&&$eq($g($_.ais,1),"3103")){if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=32767){$k[$j++]="0100";$k[$j++]=false;break}}}if($_.ais.length==2){if($eq($g($_.ais,0),"01")&&$eq($g($_.ais,1),"3202")){if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=9999){$k[$j++]="0101";$k[$j++]=false;break}}}if($_.ais.length==2){if($eq($g($_.ais,0),"01")&&$eq($g($_.ais,1),"3203")){if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=22767){$k[$j++]="0101";$k[$j++]=false;break}}}var _k=$_.ais.length;if(_k==2||_k==3){$k[$j++]="ai310x";$k[$j++]=false;for(var _l=3100;_l<=3109;_l+=1){var _q=$k[--$j];$k[$j++]=_q||$eq($R($s(4),_l,10),$g($_.ais,1))}var _r=$k[--$j];$_[$k[--$j]]=_r;$k[$j++]="ai320x";$k[$j++]=false;for(var _t=3200;_t<=3209;_t+=1){var _y=$k[--$j];$k[$j++]=_y||$eq($R($s(4),_t,10),$g($_.ais,1))}var _z=$k[--$j];$_[$k[--$j]]=_z;if($_.ais.length==3){var _12=$a(["11","13","15","17"]);$k[$j++]="aibad";$k[$j++]=true;for(var _13=0,_14=_12.length;_13<_14;_13++){var _18=$k[--$j];$k[$j++]=_18&&$ne($g(_12,_13),$g($_.ais,2))}var _19=$k[--$j];$_[$k[--$j]]=_19}else{$_.aibad=false}if($eq($g($_.ais,0),"01")&&($_.ai310x||$_.ai320x)&&!$_.aibad){if($_.ais.length==3){var _1P=$i($G($g($_.vals,2),2,2));var _1T=$i($G($g($_.vals,2),4,2));if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=99999&&(_1P>=1&&_1P<=12)&&(_1T>=0&&_1T<=31)){if($_.ai310x&&$eq($g($_.ais,2),"11")){$k[$j++]="0111000";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"11")){$k[$j++]="0111001";$k[$j++]=false;break}if($_.ai310x&&$eq($g($_.ais,2),"13")){$k[$j++]="0111010";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"13")){$k[$j++]="0111011";$k[$j++]=false;break}if($_.ai310x&&$eq($g($_.ais,2),"15")){$k[$j++]="0111100";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"15")){$k[$j++]="0111101";$k[$j++]=false;break}if($_.ai310x&&$eq($g($_.ais,2),"17")){$k[$j++]="0111110";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"17")){$k[$j++]="0111111";$k[$j++]=false;break}}}else{if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=99999){if($_.ai310x){$k[$j++]="0111000";$k[$j++]=false;break}if($_.ai320x){$k[$j++]="0111001";$k[$j++]=false;break}}}}}if($_.ais.length>=2){$k[$j++]="ai392x";$k[$j++]=false;for(var _20=3920;_20<=3923;_20+=1){var _25=$k[--$j];$k[$j++]=_25||$eq($R($s(4),_20,10),$g($_.ais,1))}var _26=$k[--$j];$_[$k[--$j]]=_26;if($eq($g($_.ais,0),"01")&&$_.ai392x){if($eq($G($g($_.vals,0),0,1),"9")){$k[$j++]="01100";$k[$j++]=true;break}}}if($_.ais.length>=2){$k[$j++]="ai393x";$k[$j++]=false;for(var _2F=3930;_2F<=3933;_2F+=1){var _2K=$k[--$j];$k[$j++]=_2K||$eq($R($s(4),_2F,10),$g($_.ais,1))}var _2L=$k[--$j];$_[$k[--$j]]=_2L;if($eq($g($_.ais,0),"01")&&$_.ai393x){if($eq($G($g($_.vals,0),0,1),"9")){$k[$j++]="01101";$k[$j++]=true;break}}}if($eq($g($_.ais,0),"01")){$k[$j++]="1";$k[$j++]=true;break}$k[$j++]="00";$k[$j++]=true;break}$_.gpfallow=$k[--$j];$_.method=$k[--$j];$_.conv12to40=function(){var _2Y=$Z($s(40),"0000000000000000000000000000000000000000");var _2Z=$k[--$j];var _2d=$R($s(10),$i($G(_2Z,0,3)),2);$P($G(_2Y,0,10),10-_2d.length,_2d);var _2h=$R($s(10),$i($G(_2Z,3,3)),2);$P($G(_2Y,10,10),10-_2h.length,_2h);var _2l=$R($s(10),$i($G(_2Z,6,3)),2);$P($G(_2Y,20,10),10-_2l.length,_2l);var _2p=$R($s(10),$i($G(_2Z,9,3)),2);$P($G(_2Y,30,10),10-_2p.length,_2p);$k[$j++]=_2Y;$k[$j++]=_2Z;$j--};$_.conv13to44=function(){var _2r=$Z($s(44),"00000000000000000000000000000000000000000000");var _2s=$k[--$j];var _2w=$R($s(4),$i($G(_2s,0,1)),2);$P($G(_2r,0,4),4-_2w.length,_2w);$k[$j++]=_2r;$k[$j++]=_2r;$k[$j++]=$G(_2s,1,12);$_.conv12to40();var _2y=$k[--$j];$P($k[--$j],4,_2y)};$_.tobin=function(){var _31=$s($k[--$j]);$k[$j++]=_31;for(var _33=0,_32=_31.length-1;_33<=_32;_33+=1){var _34=$k[--$j];$p(_34,_33,48);$k[$j++]=_34}var _35=$k[--$j];var _38=$R($s(_35.length),$k[--$j],2);$P(_35,_35.length-_38.length,_38);$k[$j++]=_35};$_.fnc1=-1;$_.lnumeric=-2;$_.lalphanumeric=-3;$_.liso646=-4;if($eq($_.method,"00")){$_.cdf=$a([]);$_.gpf=$a([])}if($eq($_.method,"1")){$k[$j++]="cdf";$k[$j++]=$G($g($_.vals,0),0,13);$_.conv13to44();var _3G=$k[--$j];$_[$k[--$j]]=_3G;$k[$j++]=Infinity;var _3I=$_.cdf;for(var _3J=0,_3K=_3I.length;_3J<_3K;_3J++){$k[$j++]=$f($g(_3I,_3J)-48)}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1)}if($eq($_.method,"0100")){$_.cdf=$s(55);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _3d=$k[--$j];var _3e=$k[--$j];$P($k[--$j],_3e,_3d);$k[$j++]=$_.cdf;$k[$j++]=40;$k[$j++]=$i($g($_.vals,1));$k[$j++]=15;$_.tobin();var _3j=$k[--$j];var _3k=$k[--$j];$P($k[--$j],_3k,_3j);$k[$j++]=Infinity;var _3m=$_.cdf;for(var _3n=0,_3o=_3m.length;_3n<_3o;_3n++){$k[$j++]=$g(_3m,_3n)-48}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$a([]);$_.vals=$a([]);$_.fncs=$a([])}if($eq($_.method,"0101")){$_.cdf=$s(55);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _41=$k[--$j];var _42=$k[--$j];$P($k[--$j],_42,_41);if($eq($g($_.ais,1),"3202")){$k[$j++]=$i($g($_.vals,1));$k[$j++]=15;$_.tobin()}else{$k[$j++]=$i($g($_.vals,1))+1e4;$k[$j++]=15;$_.tobin()}$P($_.cdf,40,$k[--$j]);$k[$j++]=Infinity;var _4C=$_.cdf;for(var _4D=0,_4E=_4C.length;_4D<_4E;_4D++){$k[$j++]=$g(_4C,_4D)-48}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$a([]);$_.vals=$a([]);$_.fncs=$a([])}if($_.method.length==7){$_.cdf=$s(76);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _4R=$k[--$j];var _4S=$k[--$j];$P($k[--$j],_4S,_4R);var _4U=$s(6);$P(_4U,0,$G($g($_.ais,1),3,1));$P(_4U,1,$G($g($_.vals,1),1,5));$k[$j++]=$i(_4U);$k[$j++]=20;$_.tobin();$P($_.cdf,40,$k[--$j]);if($_.ais.length==3){var _4f=$g($_.vals,2);$k[$j++]=$i($G(_4f,0,2))*384+(($i($G(_4f,2,2))-1)*32+$i($G(_4f,4,2)))}else{$k[$j++]=38400}$k[$j++]=16;$_.tobin();$P($_.cdf,60,$k[--$j]);$k[$j++]=Infinity;var _4l=$_.cdf;for(var _4m=0,_4n=_4l.length;_4m<_4n;_4m++){$k[$j++]=$g(_4l,_4m)-48}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$a([]);$_.vals=$a([]);$_.fncs=$a([])}if($eq($_.method,"01100")){$_.cdf=$s(42);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _50=$k[--$j];var _51=$k[--$j];$P($k[--$j],_51,_50);$k[$j++]=$_.cdf;$k[$j++]=40;$k[$j++]=$i($G($g($_.ais,1),3,1));$k[$j++]=2;$_.tobin();var _57=$k[--$j];var _58=$k[--$j];$P($k[--$j],_58,_57);$k[$j++]=Infinity;var _5A=$_.cdf;for(var _5B=0,_5C=_5A.length;_5B<_5C;_5B++){$k[$j++]=$g(_5A,_5B)-48}$_.cdf=$a();$k[$j++]=Infinity;$F($g($_.vals,1));if($_.ais.length>2){$k[$j++]=$_.fnc1}$_.gpf=$a();$_.ais=$G($_.ais,2,$_.ais.length-2);$_.vals=$G($_.vals,2,$_.vals.length-2);$_.fncs=$G($_.fncs,2,$_.fncs.length-2)}if($eq($_.method,"01101")){$_.cdf=$s(52);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _5Z=$k[--$j];var _5a=$k[--$j];$P($k[--$j],_5a,_5Z);$k[$j++]=$_.cdf;$k[$j++]=40;$k[$j++]=$i($G($g($_.ais,1),3,1));$k[$j++]=2;$_.tobin();var _5g=$k[--$j];var _5h=$k[--$j];$P($k[--$j],_5h,_5g);$k[$j++]=$_.cdf;$k[$j++]=42;$k[$j++]=$i($G($g($_.vals,1),0,3));$k[$j++]=10;$_.tobin();var _5n=$k[--$j];var _5o=$k[--$j];$P($k[--$j],_5o,_5n);$k[$j++]=Infinity;var _5q=$_.cdf;for(var _5r=0,_5s=_5q.length;_5r<_5s;_5r++){$k[$j++]=$g(_5q,_5r)-48}$_.cdf=$a();$k[$j++]=Infinity;var _5w=$g($_.vals,1);var _5x=$G(_5w,3,_5w.length-3);for(var _5y=0,_5z=_5x.length;_5y<_5z;_5y++){$k[$j++]=$g(_5x,_5y)}if($_.ais.length>2){$k[$j++]=$_.fnc1}$_.gpf=$a();$_.ais=$G($_.ais,2,$_.ais.length-2);$_.vals=$G($_.vals,2,$_.vals.length-2);$_.fncs=$G($_.fncs,2,$_.fncs.length-2)}if($_.gpfallow){$_.vlf=$a(2)}else{$_.vlf=$a([])}if(!bwipp_databarexpanded.__9120__){$_=Object.create($_);$k[$j++]=Infinity;for(var _6G=0;_6G<=119;_6G+=1){var _6I=$Z($s(2),"00");var _6K=$R($s(2),_6G,11);$P(_6I,2-_6K.length,_6K);$k[$j++]=_6G;$k[$j++]=_6I;if($g(_6I,0)==65){var _6M=$k[--$j];$p(_6M,0,94);$k[$j++]=_6M}var _6N=$k[--$j];$k[$j++]=_6N;if($g(_6N,1)==65){var _6P=$k[--$j];$p(_6P,1,94);$k[$j++]=_6P}var _6Q=$k[--$j];var _6T=$Z($s(7),"0000000");var _6V=$R($s(7),$f($k[--$j]+8),2);$P(_6T,7-_6V.length,_6V);$k[$j++]=_6Q;$k[$j++]=_6T}$k[$j++]=$_.lalphanumeric;$k[$j++]="0000";$_.numeric=$d();$k[$j++]=Infinity;for(var _6Y=48;_6Y<=57;_6Y+=1){$k[$j++]=_6Y;$k[$j++]=_6Y-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _6a=65;_6a<=90;_6a+=1){$k[$j++]=_6a;$k[$j++]=_6a-33;$k[$j++]=6;$_.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _6b=44;_6b<=47;_6b+=1){$k[$j++]=_6b;$k[$j++]=_6b+15;$k[$j++]=6;$_.tobin()}$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.liso646;$k[$j++]="00100";$_.alphanumeric=$d();$k[$j++]=Infinity;for(var _6f=48;_6f<=57;_6f+=1){$k[$j++]=_6f;$k[$j++]=_6f-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _6h=65;_6h<=90;_6h+=1){$k[$j++]=_6h;$k[$j++]=_6h-1;$k[$j++]=7;$_.tobin()}for(var _6i=97;_6i<=122;_6i+=1){$k[$j++]=_6i;$k[$j++]=_6i-7;$k[$j++]=7;$_.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _6j=37;_6j<=47;_6j+=1){$k[$j++]=_6j;$k[$j++]=_6j+197;$k[$j++]=8;$_.tobin()}for(var _6k=58;_6k<=63;_6k+=1){$k[$j++]=_6k;$k[$j++]=_6k+187;$k[$j++]=8;$_.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.lalphanumeric;$k[$j++]="00100";$_.iso646=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9120__=1;$_=Object.getPrototypeOf($_)}for(var _6r=0,_6q=$_.ais.length-1;_6r<=_6q;_6r+=1){$_.i=_6r;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _71=$a($_.gpf.length+$_.ai.length+$_.val.length);$P(_71,0,$_.gpf);$k[$j++]=_71;$k[$j++]=_71;$k[$j++]=$_.gpf.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _75=$k[--$j];var _76=$k[--$j];$k[$j++]=_75;$F(_76);var _77=$a();var _78=$k[--$j];$P($k[--$j],_78,_77);var _7A=$k[--$j];$k[$j++]=_7A;$k[$j++]=_7A;$k[$j++]=$_.gpf.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _7E=$k[--$j];var _7F=$k[--$j];$k[$j++]=_7E;$F(_7F);var _7G=$a();var _7H=$k[--$j];$P($k[--$j],_7H,_7G);$_.gpf=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _7Q=$a($_.gpf.length+1);$P(_7Q,0,$_.gpf);$p(_7Q,$_.gpf.length,$_.fnc1);$_.gpf=_7Q}}$_.rembits=function(){var _7U=$k[--$j];var _7V=48;var _7W=~~Math.ceil(_7U/12)*12;if(~~Math.ceil(_7U/12)*12<48){var _=_7V;_7V=_7W;_7W=_}var _7X=~~(_7W/12);$k[$j++]=_7U;$k[$j++]=_7W;$k[$j++]=_7X;if(_7X%$_.segments==1){var _7Z=$k[--$j];var _7a=$k[--$j];$k[$j++]=$f(_7Z+1)*12;$k[$j++]=_7a;$j--}else{$j--}var _7b=$k[--$j];var _7c=$k[--$j];$k[$j++]=$f(_7b-_7c)};$_.encode=function(){var _7d=$k[--$j];$k[$j++]=_7d;if($ne(_7d,"raw")){var _7e=$k[--$j];var _7g=$g(_7e,$k[--$j]);$k[$j++]=_7g}else{$j--}$k[$j++]=Infinity;var _7h=$k[--$j];var _7i=$k[--$j];$k[$j++]=_7h;$F(_7i,function(){var _7j=$k[--$j];$k[$j++]=$f(_7j-48)});var _7k=$a();$P($_.gpfenc,$_.j,_7k);$_.j=_7k.length+$_.j};$k[$j++]=Infinity;for(var _7p=0,_7q=$_.gpf.length;_7p<_7q;_7p++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$_.numericruns=$a();$k[$j++]=Infinity;for(var _7t=0,_7u=$_.gpf.length;_7t<_7u;_7t++){$k[$j++]=0}$k[$j++]=0;$_.alphanumericruns=$a();$k[$j++]=Infinity;for(var _7x=0,_7y=$_.gpf.length;_7x<_7y;_7x++){$k[$j++]=0}$k[$j++]=9999;$_.nextiso646only=$a();for(var _81=$_.gpf.length-1;_81>=0;_81-=1){$_.i=_81;var _86=$Z($s(2),"00");var _89=$g($_.gpf,$_.i);$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=_86;$k[$j++]=_86;$k[$j++]=0;$k[$j++]=_89;if(_89==$_.fnc1){$j--;$k[$j++]=94}var _8B=$k[--$j];var _8C=$k[--$j];$p($k[--$j],_8C,_8B);if($_.i<$_.gpf.length-1){var _8G=$k[--$j];var _8J=$g($_.gpf,$_.i+1);$k[$j++]=_8G;$k[$j++]=_8G;$k[$j++]=1;$k[$j++]=_8J;if(_8J==$_.fnc1){$j--;$k[$j++]=94}var _8L=$k[--$j];var _8M=$k[--$j];$p($k[--$j],_8M,_8L)}var _8Q=$g($_.numeric,$k[--$j])!==undefined;if(_8Q){$p($_.numericruns,$_.i,$f($g($_.numericruns,$_.i+2)+2))}else{$p($_.numericruns,$_.i,0)}var _8Y=$k[--$j];var _8a=$g($_.alphanumeric,_8Y)!==undefined;$k[$j++]=_8Y;if(_8a){$p($_.alphanumericruns,$_.i,$f($g($_.alphanumericruns,$_.i+1)+1))}else{$p($_.alphanumericruns,$_.i,0)}var _8i=$k[--$j];var _8k=$g($_.iso646,_8i)!==undefined;var _8m=$g($_.alphanumeric,_8i)!==undefined;if(_8k&&!_8m){$p($_.nextiso646only,$_.i,0)}else{$p($_.nextiso646only,$_.i,$f($g($_.nextiso646only,$_.i+1)+1))}}$_.gpfenc=$a(252);$_.i=0;$_.j=0;$_.mode="numeric";for(;;){if($_.i==$_.gpf.length){break}for(;;){if($eq($_.mode,"numeric")){if($_.i<=$_.gpf.length-2){var _90=$s(2);var _93=$g($_.gpf,$_.i);$k[$j++]=_90;$k[$j++]=_90;$k[$j++]=0;$k[$j++]=_93;if(_93==$_.fnc1){$j--;$k[$j++]=94}var _95=$k[--$j];var _96=$k[--$j];$p($k[--$j],_96,_95);var _98=$k[--$j];var _9B=$g($_.gpf,$_.i+1);$k[$j++]=_98;$k[$j++]=_98;$k[$j++]=1;$k[$j++]=_9B;if(_9B==$_.fnc1){$j--;$k[$j++]=94}var _9D=$k[--$j];var _9E=$k[--$j];$p($k[--$j],_9E,_9D);var _9G=$k[--$j];var _9I=$g($_.numeric,_9G)!==undefined;$k[$j++]=_9G;if(_9I){$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+2;break}$j--;$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}else{var _9P=$g($_.gpf,$_.i);if(_9P<48||_9P>57){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=12+1+$_.method.length+$_.vlf.length+$_.cdf.length+$_.j;$_.rembits();var _9W=$k[--$j];$_[$k[--$j]]=_9W;if($_.rem>=4&&$_.rem<=6){var _9d=$G($Z($s(6),"000000"),0,$_.rem);var _9i=$R($s(4),$f($g($_.gpf,$_.i)-47),2);$P(_9d,4-_9i.length,_9i);$k[$j++]=_9d;$k[$j++]="raw";$_.encode();$_.i=$_.i+1;break}else{var _9k=$s(2);$p(_9k,0,$g($_.gpf,$_.i));$p(_9k,1,94);$k[$j++]=_9k;$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+1;break}}}if($eq($_.mode,"alphanumeric")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}var _A0=$g($_.gpf,$_.i);var _A2=$g($_.iso646,_A0)!==undefined;var _A4=$g($_.alphanumeric,_A0)!==undefined;if(_A2&&!_A4){$k[$j++]=$_.liso646;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="iso646";break}if($g($_.numericruns,$_.i)>=6){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}var _AE=$g($_.numericruns,$_.i);if(_AE>=4&&$f(_AE+$_.i)==$_.gpf.length){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.alphanumeric;$_.encode();$_.i=$_.i+1;break}if($eq($_.mode,"iso646")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}if($g($_.numericruns,$_.i)>=4&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lnumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";break}if($g($_.alphanumericruns,$_.i)>=5&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="alphanumeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.iso646;$_.encode();$_.i=$_.i+1;break}}}$_.gpf=$G($_.gpfenc,0,$_.j);var _Ay=1+12+$_.method.length+$_.vlf.length+$_.cdf.length+$_.gpf.length;$k[$j++]=_Ay;$k[$j++]=_Ay;$_.rembits();var _Az=$k[--$j];$_.pad=$a(_Az);$k[$j++]=_Az;if($_.vlf.length!=0){var _B2=$k[--$j];var _B4=~~($f($k[--$j]+_B2)/12);$p($_.vlf,0,_B4%2);var _B6=_B4<=14?0:1;$p($_.vlf,1,_B6)}else{$j-=2}if($_.pad.length>0){for(var _BB=0,_BA=$_.pad.length-1;_BB<=_BA;_BB+=5){$_.i=_BB;var _BC=$_.pad;var _BD=$_.i;var _BE=$a([0,0,1,0,0]);var _BF=$_.pad;var _BG=$_.i;var _BH=5;var _BI=_BF.length-_BG;if(_BF.length-_BG>5){var _=_BH;_BH=_BI;_BI=_}$P(_BC,_BD,$G(_BE,0,_BI))}if($eq($_.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.pad);$_.pad=$G($a(),0,$_.pad.length)}}$k[$j++]=Infinity;var _BQ=$_.linkage?1:0;$k[$j++]=_BQ;$F($_.method,function(){var _BS=$k[--$j];$k[$j++]=$f(_BS-48)});$q($_.vlf);$q($_.cdf);$q($_.gpf);$q($_.pad);$_.binval=$a();$_.datalen=~~($_.binval.length/12);$_.ncr=function(){var _BZ=$k[--$j];var _Ba=$k[--$j];var _Bb=$f(_Ba-_BZ);if(_BZ<$f(_Ba-_BZ)){var _=_Bb;_Bb=_BZ;_BZ=_}$k[$j++]=_Bb;$k[$j++]=1;$k[$j++]=1;for(var _Bd=_Ba,_Bc=$f(_BZ+1);_Bd>=_Bc;_Bd-=1){var _Be=$k[--$j];var _Bf=$k[--$j];var _Bg=$k[--$j];$k[$j++]=_Bg;$k[$j++]=_Bf;$k[$j++]=_Be*_Bd;if($le(_Bf,_Bg)){var _Bh=$k[--$j];var _Bi=$k[--$j];$k[$j++]=$f(_Bi+1);$k[$j++]=~~(_Bh/_Bi)}}for(;;){var _Bj=$k[--$j];var _Bk=$k[--$j];var _Bl=$k[--$j];$k[$j++]=_Bl;$k[$j++]=_Bk;$k[$j++]=_Bj;if($gt(_Bk,_Bl)){break}var _Bm=$k[--$j];var _Bn=$k[--$j];$k[$j++]=$f(_Bn+1);$k[$j++]=~~(_Bm/_Bn)}var _Bo=$k[--$j];var _Bp=$k[--$j];$k[$j++]=_Bo;$k[$j++]=_Bp;$j--;var _Bq=$k[--$j];var _Br=$k[--$j];$k[$j++]=_Bq;$k[$j++]=_Br;$j--};$_.getRSSwidths=function(){$_.oe=$k[--$j];$_.el=$k[--$j];$_.mw=$k[--$j];$_.nm=$k[--$j];$_.val=$k[--$j];$_.out=$a($_.el);$_.mask=0;for(var _C1=0,_C0=$f($_.el-2);_C1<=_C0;_C1+=1){$_.bar=_C1;$_.ew=1;var _C3=$_.bar;$_.mask=$_.mask|(_C3<0?1>>>-_C3:1<<_C3);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($_.nm-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _C8=$k[--$j];$_[$k[--$j]]=_C8;if($_.oe&&$_.mask==0&&$f($f($f($_.nm-$_.ew)-$_.el*2)+$_.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$_.sval;$k[$j++]=$f($f($f($_.nm-$_.ew)-$_.el)+$_.bar);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _CN=$k[--$j];var _CO=$k[--$j];$_[$k[--$j]]=$f(_CO-_CN)}if($f($_.el-$_.bar)>2){$_.lval=0;for(var _CY=$f($f($f($f($_.nm-$_.ew)-$_.el)+$_.bar)+2),_CX=$f($_.mw+1);_CY>=_CX;_CY-=1){$k[$j++]=$f($f($f($_.nm-_CY)-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-3);$_.ncr();$_.lval=$f($k[--$j]+$_.lval)}$_.sval=$f($_.sval-$_.lval*$f($f($_.el-$_.bar)-1))}else{if($f($_.nm-$_.ew)>$_.mw){$_.sval=$f($_.sval-1)}}$_.val=$f($_.val-$_.sval);if($_.val<0){break}$_.ew=$_.ew+1;var _Cs=$_.bar;$_.mask=$_.mask&~(_Cs<0?1>>>-_Cs:1<<_Cs)}$_.val=$f($_.val+$_.sval);$_.nm=$f($_.nm-$_.ew);$p($_.out,$_.bar,$_.ew)}$p($_.out,$f($_.el-1),$_.nm);$k[$j++]=$_.out};if(!bwipp_databarexpanded.__9377__){$_=Object.create($_);$_.tab174=$a([347,0,12,5,7,2,87,4,1387,348,10,7,5,4,52,20,2947,1388,8,9,4,5,30,52,3987,2948,6,11,3,6,10,104,4191,3988,4,13,1,8,1,204]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9377__=1;$_=Object.getPrototypeOf($_)}$_.dxw=$a($_.datalen);for(var _DA=0,_D9=$_.datalen-1;_DA<=_D9;_DA+=1){$_.x=_DA;$_.d=$G($_.binval,$_.x*12,12);$k[$j++]="d";$k[$j++]=0;for(var _DE=0;_DE<=11;_DE+=1){$_.j=_DE;var _DJ=$k[--$j];$k[$j++]=$f(_DJ+~~Math.pow(2,11-$_.j)*$g($_.d,$_.j))}var _DK=$k[--$j];$_[$k[--$j]]=_DK;$_.j=0;for(;;){if($le($_.d,$g($_.tab174,$_.j))){var _DS=$G($_.tab174,$_.j+1,7);for(var _DT=0,_DU=_DS.length;_DT<_DU;_DT++){$k[$j++]=$g(_DS,_DT)}$_.dte=$k[--$j];$_.dto=$k[--$j];$_.dmwe=$k[--$j];$_.dmwo=$k[--$j];$_.dele=$k[--$j];$_.delo=$k[--$j];$_.dgs=$k[--$j];break}$_.j=$_.j+8}$k[$j++]="dwo";$k[$j++]=~~($f($_.d-$_.dgs)/$_.dte);$k[$j++]=$_.delo;$k[$j++]=$_.dmwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _Dj=$k[--$j];$_[$k[--$j]]=_Dj;$k[$j++]="dwe";$k[$j++]=$f($_.d-$_.dgs)%$_.dte;$k[$j++]=$_.dele;$k[$j++]=$_.dmwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _Dq=$k[--$j];$_[$k[--$j]]=_Dq;$_.dw=$a(8);if($_.x%2==0){for(var _Du=0;_Du<=3;_Du+=1){$_.j=_Du;$p($_.dw,7-$_.j*2,$g($_.dwo,$_.j));$p($_.dw,6-$_.j*2,$g($_.dwe,$_.j))}}else{for(var _E5=0;_E5<=3;_E5+=1){$_.j=_E5;$p($_.dw,$_.j*2,$g($_.dwo,$_.j));$p($_.dw,$_.j*2+1,$g($_.dwe,$_.j))}}$p($_.dxw,$_.x,$_.dw)}if(!bwipp_databarexpanded.__9444__){$_=Object.create($_);$_.finderwidths=$a([1,8,4,1,1,1,1,4,8,1,3,6,4,1,1,1,1,4,6,3,3,4,6,1,1,1,1,6,4,3,3,2,8,1,1,1,1,8,2,3,2,6,5,1,1,1,1,5,6,2,2,2,9,1,1,1,1,9,2,2]);$_.finderseq=$a([$a([0,1]),$a([0,3,2]),$a([0,5,2,7]),$a([0,9,2,7,4]),$a([0,9,2,7,6,11]),$a([0,9,2,7,8,11,10]),$a([0,1,2,3,4,5,6,7]),$a([0,1,2,3,4,5,6,9,8]),$a([0,1,2,3,4,5,6,9,10,11]),$a([0,1,2,3,4,7,6,9,8,11,10])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9444__=1;$_=Object.getPrototypeOf($_)}$_.seq=$g($_.finderseq,~~(($_.datalen-2)/2));$_.fxw=$a($_.seq.length);for(var _Ed=0,_Ec=$_.seq.length-1;_Ed<=_Ec;_Ed+=1){$_.x=_Ed;$p($_.fxw,$_.x,$G($_.finderwidths,$g($_.seq,$_.x)*5,5))}if(!bwipp_databarexpanded.__9480__){$_=Object.create($_);$_.checkweights=$a([-1,-1,-1,-1,-1,-1,-1,-1,77,96,32,81,27,9,3,1,20,60,180,118,143,7,21,63,205,209,140,117,39,13,145,189,193,157,49,147,19,57,171,91,132,44,85,169,197,136,186,62,185,133,188,142,4,12,36,108,50,87,29,80,97,173,128,113,150,28,84,41,123,158,52,156,166,196,206,139,187,203,138,46,76,17,51,153,37,111,122,155,146,119,110,107,106,176,129,43,16,48,144,10,30,90,59,177,164,125,112,178,200,137,116,109,70,210,208,202,184,130,179,115,190,204,68,93,31,151,191,134,148,22,66,198,172,94,71,2,40,154,192,64,162,54,18,6,120,149,25,75,14,42,126,167,175,199,207,69,23,78,26,79,103,98,83,38,114,131,182,124,159,53,88,170,127,183,61,161,55,165,73,8,24,72,5,15,89,100,174,58,160,194,135,45]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9480__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;$F($_.seq,function(){$q($G($_.checkweights,$k[--$j]*16,16))});var _Er=$a();$_.checkweightseq=$G(_Er,8,_Er.length-8);$k[$j++]=Infinity;var _Et=$_.dxw;for(var _Eu=0,_Ev=_Et.length;_Eu<_Ev;_Eu++){$F($g(_Et,_Eu))}$_.widths=$a();$_.checksum=0;for(var _F0=0,_Ez=$_.widths.length-1;_F0<=_Ez;_F0+=1){$_.i=_F0;$_.checksum=$f($_.checksum+$g($_.widths,$_.i)*$g($_.checkweightseq,$_.i))}$_.checksum=$f($_.checksum%211+($_.datalen-3)*211);$_.i=0;for(;;){if($_.checksum<=$g($_.tab174,$_.i)){var _FG=$G($_.tab174,$_.i+1,7);for(var _FH=0,_FI=_FG.length;_FH<_FI;_FH++){$k[$j++]=$g(_FG,_FH)}$_.cte=$k[--$j];$_.cto=$k[--$j];$_.cmwe=$k[--$j];$_.cmwo=$k[--$j];$_.cele=$k[--$j];$_.celo=$k[--$j];$_.cgs=$k[--$j];break}$_.i=$_.i+8}$k[$j++]="cwo";$k[$j++]=~~($f($_.checksum-$_.cgs)/$_.cte);$k[$j++]=$_.celo;$k[$j++]=$_.cmwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _FX=$k[--$j];$_[$k[--$j]]=_FX;$k[$j++]="cwe";$k[$j++]=$f($_.checksum-$_.cgs)%$_.cte;$k[$j++]=$_.cele;$k[$j++]=$_.cmwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _Fe=$k[--$j];$_[$k[--$j]]=_Fe;$_.cw=$a(8);for(var _Fh=0;_Fh<=3;_Fh+=1){$_.i=_Fh;$p($_.cw,$_.i*2,$g($_.cwo,$_.i));$p($_.cw,$_.i*2+1,$g($_.cwe,$_.i))}var _Fs=$a(22);$p(_Fs,0,$_.cw);$P(_Fs,1,$_.dxw);$_.dxw=$G(_Fs,0,$_.datalen+1);$_.datalen=$_.dxw.length;$_.rows=$a(~~Math.ceil($_.datalen/$_.segments));$_.numrows=$_.rows.length;for(var _G4=0,_G3=$_.numrows-1;_G4<=_G3;_G4+=1){$_.r=_G4;$k[$j++]=Infinity;if($_.segments%4!=0&&$_.r%2==1){$k[$j++]=0}$k[$j++]=1;$k[$j++]=1;for(var _G9=0,_G8=$_.segments-1;_G9<=_G8;_G9+=1){$_.pos=_G9+$_.r*$_.segments;if($_.pos<$_.datalen){$F($g($_.dxw,$_.pos));if($_.pos%2==0){$F($g($_.fxw,~~($_.pos/2)))}}}var _GL=$m()+2;$k[$j++]=1;$k[$j++]=1;$as($a(_GL));$p($_.rows,$_.r,$k[--$j]);$j--}if($ne($_.format,"expandedstacked")){var _GS=$g($_.rows,0);$_.sbs=$G(_GS,1,_GS.length-1);$k[$j++]=Infinity;$k[$j++]=1;for(var _GW=0,_GV=$_.datalen-1;_GW<=_GV;_GW+=1){$_.i=_GW;$F($g($_.dxw,$_.i));if($_.i%2==0){$F($g($_.fxw,~~($_.i/2)))}}$k[$j++]=1;$k[$j++]=1;$_.sbs=$a();delete $_.options["parse"];$k[$j++]=Infinity;var _Gg=$_.sbs;$k[$j++]=Infinity;for(var _Gi=0,_Gj=~~(($_.sbs.length+1)/2);_Gi<_Gj;_Gi++){$k[$j++]=$_.height}var _Gl=$a();$k[$j++]=Infinity;for(var _Gn=0,_Go=~~(($_.sbs.length+1)/2);_Gn<_Go;_Gn++){$k[$j++]=0}var _Gp=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_Gg;$k[$j++]="bhs";$k[$j++]=_Gl;$k[$j++]="bbs";$k[$j++]=_Gp;$k[$j++]="opt";$k[$j++]=$_.options;var _Gr=$d();$k[$j++]=_Gr;if(!$_.dontdraw){bwipp_renlinear()}}else{$_.seps=$a($_.numrows);for(var _Gx=0,_Gw=$_.numrows-1;_Gx<=_Gw;_Gx+=1){$_.r=_Gx;$_.row=$g($_.rows,$_.r);$k[$j++]=Infinity;for(var _H3=0,_H2=$_.row.length-1;_H3<=_H2;_H3+=2){$_.i=_H3;for(var _H7=0,_H8=$g($_.row,$_.i);_H7<_H8;_H7++){$k[$j++]=0}if($_.i<$_.row.length-1){for(var _HE=0,_HF=$g($_.row,$_.i+1);_HE<_HF;_HE++){$k[$j++]=1}}}$as($a($m()));$_.row=$k[--$j];$j--;$k[$j++]=Infinity;$F($_.row,function(){var _HK=$k[--$j];$k[$j++]=$f(1-_HK)});$_.sep=$a();$k[$j++]=Infinity;for(var _HO=19,_HN=$_.row.length-13;_HO<=_HN;_HO+=98){$k[$j++]=_HO}for(var _HR=68,_HQ=$_.row.length-13;_HR<=_HQ;_HR+=98){$k[$j++]=_HR}$_.finderpos=$a();var _HT=$_.finderpos;for(var _HU=0,_HV=_HT.length;_HU<_HV;_HU++){var _HW=$g(_HT,_HU);for(var _HY=_HW,_HX=$f(_HW+14);_HY<=_HX;_HY+=1){$_.i=_HY;if($g($_.row,$_.i)==0){if($g($_.row,$_.i-1)==1){$k[$j++]=1}else{var _Hi=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_Hi}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}}$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.row.length-4,$a([0,0,0,0]));if($_.segments%4==0&&$_.r%2==1){if($g($_.rows,$_.r).length!=$g($_.rows,0).length&&$_.finderpos.length%2==1){$k[$j++]=Infinity;$k[$j++]=0;$q($_.row);$_.row=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a()}else{for(var _I4=$_.row.length-1;_I4>=0;_I4-=1){$k[$j++]=$g($_.row,_I4)}$as($_.row);$j--;for(var _I9=$_.sep.length-1;_I9>=0;_I9-=1){$k[$j++]=$g($_.sep,_I9)}$as($_.sep);$j--}}$p($_.rows,$_.r,$_.row);$p($_.seps,$_.r,$_.sep)}$_.pixx=$g($_.rows,0).length;$k[$j++]=Infinity;for(var _IM=0,_IN=$_.pixx;_IM<_IN;_IM++){$k[$j++]=0}var _IO=$a();$P(_IO,0,$g($_.rows,$_.numrows-1));$p($_.rows,$_.numrows-1,_IO);$k[$j++]=Infinity;for(var _IV=0,_IW=$_.pixx;_IV<_IW;_IV++){$k[$j++]=0}var _IX=$a();$P(_IX,0,$g($_.seps,$_.numrows-1));$p($_.seps,$_.numrows-1,_IX);$k[$j++]=Infinity;for(var _Ie=0,_If=~~($_.pixx/2)+1;_Ie<_If;_Ie++){$k[$j++]=0;$k[$j++]=1}$_.sep=$G($a(),0,$_.pixx);$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.pixx-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _Iq=0,_Ip=$_.numrows-1;_Iq<=_Ip;_Iq+=1){$_.r=_Iq;if($_.r!=0){$q($g($_.seps,$_.r))}for(var _Iw=0,_Ix=$_.barxmult;_Iw<_Ix;_Iw++){$q($g($_.rows,$_.r))}if($_.r!=$_.numrows-1){$q($g($_.seps,$_.r));$q($_.sep)}}$_.pixs=$a();delete $_.options["parse"];var _JH=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",~~($_.pixs.length/$_.pixx)],["height",~~($_.pixs.length/$_.pixx)/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_JH;if(!$_.dontdraw){bwipp_renmatrix()}}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_databarexpandedstacked(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","expandedstacked");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databarexpanded();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1northamericancoupon(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.coupontextfont="OCR-B";$_.coupontextsize=9;$_.coupontextxoffset=null;$_.coupontextyoffset=null;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$j--;$_.vals=$k[--$j];$_.ais=$k[--$j];if($_.ais.length!=1){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure#9776";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";bwipp_raiseerror()}if($ne($g($_.ais,0),"8110")){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure#9779";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";bwipp_raiseerror()}$_.val=$g($_.vals,0);$_.vli=$f($g($_.val,0)-48);if($_.vli<0||$_.vli>6){$k[$j++]="bwipp.gs1northamericancouponBadVLI#9786";$k[$j++]="The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6";bwipp_raiseerror()}$_.gcp=$G($_.val,1,$f($_.vli+6));$_.cod=$G($_.val,$f($_.vli+7),6);$_.coupontext=$s($_.gcp.length+7);$P($_.coupontext,0,$_.gcp);$P($_.coupontext,$_.gcp.length,"-");$P($_.coupontext,$_.gcp.length+1,$_.cod);delete $_.options["parse"];$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databarexpandedstacked();var _X=$k[--$j];$_[$k[--$j]]=_X;if($_.includetext){if($eq($_.coupontextxoffset,null)){$_.coupontextxoffset=0}if($eq($_.coupontextyoffset,null)){$_.coupontextyoffset=$f($g($_.args,"height")*72+3)}var _f=$g($_.args,"txt")!==undefined;if(_f){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.coupontext,$_.coupontextxoffset,$_.coupontextyoffset,$_.coupontextfont,$_.coupontextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.coupontext,$_.coupontextxoffset,$_.coupontextyoffset,$_.coupontextfont,$_.coupontextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_pharmacode(){$_=Object.create($_);$_.dontdraw=false;$_.height=8*2.835/72;$_.nwidth=.5*2.835;$_.wwidth=1.5*2.835;$_.swidth=1*2.835;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length<1||$_.barcode.length>6){$k[$j++]="bwipp.pharmacodeBadLength#9867";$k[$j++]="Pharmacode must be 1 to 6 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.pharmacodeBadCharacter#9871";$k[$j++]="Pharmacode must contain only digits";bwipp_raiseerror()}});var _7=$i($_.barcode);if(_7<3||_7>131070){$k[$j++]="bwipp.pharmacodeBadValue#9875";$k[$j++]="Pharmacode value must be between 3 and 131070";bwipp_raiseerror()}$_.txt=$a($_.barcode.length);for(var _C=0,_B=$_.barcode.length-1;_C<=_B;_C+=1){$_.i=_C;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.barcode=$R($s(17),$i($_.barcode)+1,2);$_.barcode=$G($_.barcode,1,$_.barcode.length-1);$_.barlen=$_.barcode.length;$_.sbs=$a($_.barlen*2);for(var _U=0,_T=$_.barlen-1;_U<=_T;_U+=1){$_.i=_U;$_.enc=$G($_.barcode,$_.i,1);if($eq($_.enc,"0")){$p($_.sbs,$_.i*2,$_.nwidth)}else{$p($_.sbs,$_.i*2,$_.wwidth)}$p($_.sbs,$_.i*2+1,$_.swidth)}$k[$j++]=Infinity;var _i=$_.sbs;$k[$j++]=Infinity;for(var _k=0,_l=~~(($_.sbs.length+1)/2);_k<_l;_k++){$k[$j++]=$_.height}var _n=$a();$k[$j++]=Infinity;for(var _p=0,_q=~~(($_.sbs.length+1)/2);_p<_q;_p++){$k[$j++]=0}var _r=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_i;$k[$j++]="bhs";$k[$j++]=_n;$k[$j++]="bbs";$k[$j++]=_r;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _u=$d();$k[$j++]=_u;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_pharmacode2(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.height=4;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length<1||$_.barcode.length>8){$k[$j++]="bwipp.pharmacode2BadLength#9956";$k[$j++]="Two-track Pharmacode must be 1 to 6 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.pharmacode2badCharacter#9960";$k[$j++]="Two-track Pharmacode must contain only digits";bwipp_raiseerror()}});var _7=$i($_.barcode);if(_7<4||_7>64570080){$k[$j++]="bwipp.pharmacode2badValue#9964";$k[$j++]="Two-track Pharmacode value must be between 4 and 64570080";bwipp_raiseerror()}$_.txt=$a($_.barcode.length);for(var _C=0,_B=$_.barcode.length-1;_C<=_B;_C+=1){$_.i=_C;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.encstr=$s(16);$_.sbs=$a(32);$_.bar=1/25.4*$_.height;$_.spc=1/25.4*72;$_.i=15;$_.val=$i($_.barcode);for(;;){if($_.val==0){break}var _P=$_.val%3;$_.val=~~($f($_.val-$g($a([3,1,2]),_P))/3);$p($_.encstr,$_.i,$g($a([2,0,1]),_P));$_.i=$_.i-1}$_.encstr=$G($_.encstr,$_.i+1,15-$_.i);$_.bhs=$a($_.encstr.length);$_.bbs=$a($_.encstr.length);for(var _i=0,_h=$_.encstr.length-1;_i<=_h;_i+=1){$_.i=_i;var _l=$g($_.encstr,$_.i);$p($_.bhs,$_.i,$_.bar*$g($a([1,1,2]),_l));$p($_.bbs,$_.i,$g($a([0,$_.bar,0]),_l))}$k[$j++]=Infinity;var _w=$_.bhs;var _x=$_.bbs;$k[$j++]=Infinity;for(var _z=0,_10=$_.encstr.length*2;_z<_10;_z++){$k[$j++]=$_.spc}var _12=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bhs";$k[$j++]=_w;$k[$j++]="bbs";$k[$j++]=_x;$k[$j++]="sbs";$k[$j++]=_12;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="textyoffset";$k[$j++]=4;$k[$j++]="opt";$k[$j++]=$_.options;var _15=$d();$k[$j++]=_15;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code2of5(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$_.version="industrial";$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code2of5);$F($_.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.code2of5badCharacter#10067";$k[$j++]="Code 25 must contain only digits";bwipp_raiseerror()}});$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _6=$k[--$j];$k[$j++]=$f(_6-1)}var _7=$k[--$j];$_[$k[--$j]]=_7;$_.checksum=0;for(var _B=0,_A=$f($_.barlen-1);_B<=_A;_B+=1){$_.i=_B;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($f($_.barlen-$_.i)%2!=0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$_.checksum+48){$k[$j++]="bwipp.code2of5badCheckDigit#10081";$k[$j++]="Incorrect Code 25 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}if(!bwipp_code2of5.__10113__){$_=Object.create($_);var _a=new Map([["industrial",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","313111","31113"])],["iata",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","1111","311"])],["matrix",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","311111","31111"])],["coop",$a(["331111","111331","113131","113311","131131","131311","133111","311131","311311","313111","3131","133"])],["datalogic",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","1111","311"])]]);$_.versions=_a;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code2of5.$ctx[id]=$_[id]);bwipp_code2of5.__10113__=1;$_=Object.getPrototypeOf($_)}var _e=$g($_.versions,$_.version)!==undefined;if(!_e){$k[$j++]="bwipp.code2of5badVersion#10116";$k[$j++]="Unrecognised Code 25 version";bwipp_raiseerror()}$_.encs=$g($_.versions,$_.version);$_.cs=$g($_.encs,0).length;$k[$j++]="cw";$k[$j++]=0;$F($g($_.encs,0),function(){var _m=$k[--$j];var _n=$k[--$j];$k[$j++]=$f(_n+$f(_m-48))});var _o=$k[--$j];$_[$k[--$j]]=_o;$_.ss=$g($_.encs,10).length;$k[$j++]="sw";$k[$j++]=0;$F($g($_.encs,10),function(){var _u=$k[--$j];var _v=$k[--$j];$k[$j++]=$f(_v+$f(_u-48))});var _w=$k[--$j];$_[$k[--$j]]=_w;$_.es=$g($_.encs,11).length;if(!bwipp_code2of5.__10129__){$_=Object.create($_);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code2of5.$ctx[id]=$_[id]);bwipp_code2of5.__10129__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="sbs";$k[$j++]=$_.barlen;if($_.includecheck){var _13=$k[--$j];$k[$j++]=$f(_13+1)}var _18=$s($f($f($k[--$j]*$_.cs+$_.ss)+$_.es));$_[$k[--$j]]=_18;$k[$j++]="txt";$k[$j++]=$_.barlen;if($_.includecheck){var _1C=$k[--$j];$k[$j++]=$f(_1C+1)}var _1E=$a($k[--$j]);$_[$k[--$j]]=_1E;$P($_.sbs,0,$g($_.encs,10));for(var _1L=0,_1K=$f($_.barlen-1);_1L<=_1K;_1L+=1){$_.i=_1L;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*$_.cs+$_.ss,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$f($_.i*$_.cw+$_.sw),$_.textyoffset,$_.textfont,$_.textsize]))}if($_.includecheck){$P($_.sbs,$f($_.barlen*$_.cs+$_.ss),$g($_.encs,$_.checksum));$P($_.sbs,$f($f($_.barlen*$_.cs+$_.cs)+$_.ss),$g($_.encs,11));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*$_.cw+$_.sw),$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*$_.cw+$_.sw),$_.textyoffset,$_.textfont,$_.textsize]))}}else{$P($_.sbs,$f($_.barlen*$_.cs+$_.ss),$g($_.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($_.sbs,function(){var _2T=$k[--$j];$k[$j++]=$f(_2T-48)});var _2U=$a();$k[$j++]=Infinity;for(var _2W=0,_2X=~~(($_.sbs.length+1)/2);_2W<_2X;_2W++){$k[$j++]=$_.height}var _2Z=$a();$k[$j++]=Infinity;for(var _2b=0,_2c=~~(($_.sbs.length+1)/2);_2b<_2c;_2b++){$k[$j++]=0}var _2d=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2U;$k[$j++]="bhs";$k[$j++]=_2Z;$k[$j++]="bbs";$k[$j++]=_2d;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2h=$d();$k[$j++]=_2h;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_industrial2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","industrial");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_iata2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","iata");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_matrix2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","matrix");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_coop2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","coop");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_datalogic2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","datalogic");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code11(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_code11);if(!bwipp_code11.__10477__){$_=Object.create($_);$_.encs=$a(["111131","311131","131131","331111","113131","313111","133111","111331","311311","311111","113111","113311"]);$_.barchars="0123456789-";$_.charvals=new Map;for(var _3=0;_3<=10;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code11.$ctx[id]=$_[id]);bwipp_code11.__10477__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.code11badCharacter#10482";$k[$j++]="Code 11 must contain only digits and dashes";bwipp_raiseerror()}}$_.barlen=$_.barcode.length;if($_.validatecheck){if($_.barlen==11){$k[$j++]="bwipp.code11badLength#10489";$k[$j++]="Code 11 cannot be 11 characters using check digits";bwipp_raiseerror()}var _K=$_.barlen<=10?1:2;$_.barlen=$_.barlen-_K}$k[$j++]="numchecks";if($_.includecheck||$_.validatecheck){var _O=$_.barlen>=10?2:1;$k[$j++]=_O}else{$k[$j++]=0}var _P=$k[--$j];$_[$k[--$j]]=_P;$_.checksum1=0;$_.checksum2=0;for(var _T=0,_S=$_.barlen-1;_T<=_S;_T+=1){$_.i=_T;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.checksum1=$f($_.checksum1+(($_.barlen-$_.i-1)%10+1)*$_.indx);$_.checksum2=$f($_.checksum2+(($_.barlen-$_.i)%9+1)*$_.indx)}$_.checksum1=$_.checksum1%11;$_.checksum2=$f($_.checksum2+$_.checksum1)%11;if($_.validatecheck){if($_.numchecks==1){var _r=$g($_.barchars,$_.checksum1);if($g($_.barcode,$_.barlen)!=_r){$k[$j++]="bwipp.code11badCheckDigit#10507";$k[$j++]="Incorrect Code 11 check digit provided";bwipp_raiseerror()}}else{if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum1)||$g($_.barcode,$_.barlen+1)!=$g($_.barchars,$_.checksum2)){$k[$j++]="bwipp.code11badCheckDigits#10512";$k[$j++]="Incorrect Code 11 check digits provided";bwipp_raiseerror()}}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}$_.sbs=$s($f($f($_.barlen+$_.numchecks)*6+12));$_.txt=$a($f($_.barlen+$_.numchecks));$P($_.sbs,0,$g($_.encs,11));$_.xpos=8;for(var _1I=0,_1H=$_.barlen-1;_1I<=_1H;_1I+=1){$_.i=_1I;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*6+6,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));for(var _1e=0;_1e<=5;_1e+=1){$_.xpos=$f($f($g($_.enc,_1e)-48)+$_.xpos)}}if($_.includecheck){if($_.barlen>=10){$P($_.sbs,$_.barlen*6+6,$g($_.encs,$_.checksum1));$P($_.sbs,$_.barlen*6+12,$g($_.encs,$_.checksum2));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum1,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));$_.enc=$g($_.encs,$_.checksum1);for(var _28=0;_28<=5;_28+=1){$_.xpos=$f($f($g($_.enc,_28)-48)+$_.xpos)}$p($_.txt,$_.barlen+1,$a([$G($_.barchars,$_.checksum2,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a(["",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));$p($_.txt,$_.barlen+1,$a(["",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$_.barlen*6+18,$g($_.encs,11))}else{$P($_.sbs,$_.barlen*6+6,$g($_.encs,$_.checksum1));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum1,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a(["",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$_.barlen*6+12,$g($_.encs,11))}}else{$P($_.sbs,$_.barlen*6+6,$g($_.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _39=$_.sbs;for(var _3A=0,_3B=_39.length;_3A<_3B;_3A++){$k[$j++]=$g(_39,_3A)-48}var _3D=$a();$k[$j++]=Infinity;for(var _3F=0,_3G=~~(($_.sbs.length+1)/2);_3F<_3G;_3F++){$k[$j++]=$_.height}var _3I=$a();$k[$j++]=Infinity;for(var _3K=0,_3L=~~(($_.sbs.length+1)/2);_3K<_3L;_3K++){$k[$j++]=0}var _3M=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_3D;$k[$j++]="bhs";$k[$j++]=_3I;$k[$j++]="bbs";$k[$j++]=_3M;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _3Q=$d();$k[$j++]=_3Q;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_bc412(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.includestartstop=false;$_.semi=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.semi){$_.includestartstop=true}bwipp_loadctx(bwipp_bc412);if(!bwipp_bc412.__10643__){$_=Object.create($_);$_.barchars="0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M";$_.charvals=new Map;for(var _3=0;_3<=34;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_bc412.$ctx[id]=$_[id]);bwipp_bc412.__10643__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.bc412badCharacter#10648";$k[$j++]="BC412 must contain only digits and capital letters except O";bwipp_raiseerror()}}if($_.semi){if($_.validatecheck){if($_.barcode.length<8||$_.barcode.length>19){$k[$j++]="bwipp.bc412semivalidateBadLength#10656";$k[$j++]="BC412 semi with check digit must be 8 to 19 characters long";bwipp_raiseerror()}}else{if($_.barcode.length<7||$_.barcode.length>18){$k[$j++]="bwipp.bc412semiBadLength#10660";$k[$j++]="BC412 semi must be 7 to 18 characters long";bwipp_raiseerror()}}$_.barlen=$_.barcode.length;if(!$_.validatecheck){$_.barlen=$_.barlen+1;$_.sbarcode=$s($_.barlen);$p($_.sbarcode,0,$g($_.barcode,0));$p($_.sbarcode,1,48);$P($_.sbarcode,2,$G($_.barcode,1,$_.barlen-2));$_.barcode=$_.sbarcode}$_.sumodd=0;$_.sumeven=0;for(var _b=0,_a=$_.barlen-1;_b<=_a;_b+=1){$_.i=_b;$k[$j++]=$g($_.charvals,$G($_.barcode,$_.i,1));if($_.i%2==0){$_.sumodd=$f($k[--$j]+$_.sumodd)}else{$_.sumeven=$f($k[--$j]+$_.sumeven)}}$_.checksum=$f($_.sumodd%35+$_.sumeven%35*2)%35;if($_.validatecheck){if($_.checksum!=0){$k[$j++]="bwipp.bc412semiBadCheckDigit#10686";$k[$j++]="Incorrect BC412 semi check digit provided";bwipp_raiseerror()}}else{$_.checksum=$_.checksum*17%35;$p($_.barcode,1,$g($_.barchars,$_.checksum))}}else{$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _x=$k[--$j];$k[$j++]=$f(_x-1)}var _y=$k[--$j];$_[$k[--$j]]=_y;$_.checksum=0;for(var _12=0,_11=$_.barlen-1;_12<=_11;_12+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_12,1))+$_.checksum)}$_.checksum=$_.checksum%35;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.bc412badCheckDigit#10703";$k[$j++]="Incorrect BC412 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}}if(!bwipp_bc412.__10722__){$_=Object.create($_);$_.encs=$a(["11111115","13111212","11131113","12111213","12121311","13131111","12111312","11131212","11121411","11151111","15111111","11111511","12131211","13121112","13111311","11111214","12121113","11111313","13111113","11121213","11141112","11121312","11141211","14121111","12121212","11131311","13121211","12111411","14111211","11111412","12111114","14111112","12141111","11121114","12131112","12","111"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_bc412.$ctx[id]=$_[id]);bwipp_bc412.__10722__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(($_.barlen+1)*8+5);if($_.includecheck){$_.txt=$a($_.barlen+1)}else{$_.txt=$a($_.barlen)}if($_.includestartstop){$P($_.sbs,0,$g($_.encs,35));$_.pos=2;$_.txtpos=3}else{$_.pos=0;$_.txtpos=0}for(var _1Y=0,_1X=$_.barlen-1;_1Y<=_1X;_1Y+=1){$_.i=_1Y;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.sbs,$_.pos,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*12+$_.txtpos,$_.textyoffset,$_.textfont,$_.textsize]));$_.pos=$_.pos+8}if($_.includecheck){$P($_.sbs,$_.pos,$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$_.barlen*12+$_.txtpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a(["",$_.barlen*12+$_.txtpos,$_.textyoffset,$_.textfont,$_.textsize]))}$_.pos=$_.pos+8}if($_.includestartstop){$P($_.sbs,$_.pos,$g($_.encs,36));$_.pos=$_.pos+3}$_.sbs=$G($_.sbs,0,$_.pos);$k[$j++]=Infinity;$k[$j++]=Infinity;var _2V=$_.sbs;for(var _2W=0,_2X=_2V.length;_2W<_2X;_2W++){$k[$j++]=$f($g(_2V,_2W)-48)}var _2Z=$a();$k[$j++]=Infinity;for(var _2b=0,_2c=~~(($_.sbs.length+1)/2);_2b<_2c;_2b++){$k[$j++]=$_.height}var _2e=$a();$k[$j++]=Infinity;for(var _2g=0,_2h=~~(($_.sbs.length+1)/2);_2g<_2h;_2g++){$k[$j++]=0}var _2i=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2Z;$k[$j++]="bhs";$k[$j++]=_2e;$k[$j++]="bbs";$k[$j++]=_2i;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2m=$d();$k[$j++]=_2m;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_rationalizedCodabar(){$_=Object.create($_);$_.dontdraw=false;$_.altstartstop=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_rationalizedCodabar);if(!bwipp_rationalizedCodabar.__10844__){$_=Object.create($_);$_.encs=$a(["11111331","11113311","11131131","33111111","11311311","31111311","13111131","13113111","13311111","31131111","11133111","11331111","31113131","31311131","31313111","11313131","11331311","13131131","11131331","11133311"]);$_.barcharsnormal="0123456789-$:/.+ABCD";$_.barcharsalt="0123456789-$:/.+TN*E";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_rationalizedCodabar.$ctx[id]=$_[id]);bwipp_rationalizedCodabar.__10844__=1;$_=Object.getPrototypeOf($_)}var _5=$_.altstartstop?$_.barcharsalt:$_.barcharsnormal;$_.barchars=_5;$_.charvals=new Map;for(var _6=0;_6<=19;_6+=1){$p($_.charvals,$G($_.barchars,_6,1),_6)}$_.bodyvals=new Map;for(var _A=0;_A<=15;_A+=1){$p($_.bodyvals,$G($_.barchars,_A,1),_A)}$_.ssvals=new Map;for(var _E=16;_E<=19;_E+=1){$p($_.ssvals,$G($_.barchars,_E,1),_E)}var _L=$g($_.ssvals,$G($_.barcode,0,1))!==undefined;var _Q=$g($_.ssvals,$G($_.barcode,$_.barcode.length-1,1))!==undefined;if(!_L||!_Q){if($_.altstartstop){$k[$j++]="bwipp.rationalizedCodabarBadAltStartStop#10859";$k[$j++]="Codabar start and stop characters must be one of E N T or *";bwipp_raiseerror()}else{$k[$j++]="bwipp.rationalizedCodabarBadStartStop#10861";$k[$j++]="Codabar start and stop characters must be one of A B C or D";bwipp_raiseerror()}}for(var _U=1,_T=$_.barcode.length-2;_U<=_T;_U+=1){var _Y=$g($_.bodyvals,$G($_.barcode,_U,1))!==undefined;if(!_Y){$k[$j++]="bwipp.rationalizedCodabarBadCharacter#10866";$k[$j++]="Codabar body must contain only digits and symbols - $ : / . +";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _b=$k[--$j];$k[$j++]=$f(_b-1)}var _c=$k[--$j];$_[$k[--$j]]=_c;$_.checksum=0;for(var _g=0,_f=$f($_.barlen-2);_g<=_f;_g+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_g,1))+$_.checksum)}$_.checksum=$f($g($_.charvals,$G($_.barcode,$_.barcode.length-1,1))+$_.checksum);$_.checksum=$f(16-$_.checksum%16)%16;if($_.validatecheck){if($g($_.barcode,$f($_.barlen-1))!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.rationalizedCodabarBadCheckDigit#10882";$k[$j++]="Incorrect Codabar check digit provided";bwipp_raiseerror()}var _11=$s($_.barlen);$P(_11,0,$G($_.barcode,0,$f($_.barlen-1)));$P(_11,$f($_.barlen-1),$G($_.barcode,$_.barlen,1));$_.barcode=_11;$_.includecheck=true}$k[$j++]="sbs";$k[$j++]=$_.barlen;if($_.includecheck){var _1B=$k[--$j];$k[$j++]=$f(_1B+1)}var _1D=$s($k[--$j]*8);$_[$k[--$j]]=_1D;$k[$j++]="txt";$k[$j++]=$_.barlen;if($_.includecheck){var _1H=$k[--$j];$k[$j++]=$f(_1H+1)}var _1J=$a($k[--$j]);$_[$k[--$j]]=_1J;$_.xpos=0;for(var _1N=0,_1M=$f($_.barlen-2);_1N<=_1M;_1N+=1){$_.i=_1N;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*8,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));for(var _1j=0;_1j<=7;_1j+=1){$_.xpos=$f($f($g($_.enc,_1j)-48)+$_.xpos)}}if($_.includecheck){$P($_.sbs,$f($_.barlen*8-8),$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$f($_.barlen-1),$a([$G($_.barchars,$_.checksum,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen-1),$a([" ",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}for(var _2B=0;_2B<=7;_2B+=1){$_.xpos=$f($f($g($g($_.encs,$_.checksum),_2B)-48)+$_.xpos)}$_.indx=$g($_.charvals,$G($_.barcode,$f($_.barlen-1),1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.barlen*8,$_.enc);$p($_.txt,$_.barlen,$a([$G($_.barcode,$f($_.barlen-1),1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$_.indx=$g($_.charvals,$G($_.barcode,$f($_.barlen-1),1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$f($_.barlen*8-8),$_.enc);$p($_.txt,$f($_.barlen-1),$a([$G($_.barcode,$f($_.barlen-1),1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($_.sbs,function(){var _2y=$k[--$j];$k[$j++]=$f(_2y-48)});var _2z=$a();$k[$j++]=Infinity;for(var _31=0,_32=~~(($_.sbs.length+1)/2);_31<_32;_31++){$k[$j++]=$_.height}var _34=$a();$k[$j++]=Infinity;for(var _36=0,_37=~~(($_.sbs.length+1)/2);_36<_37;_36++){$k[$j++]=0}var _38=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2z;$k[$j++]="bhs";$k[$j++]=_34;$k[$j++]="bbs";$k[$j++]=_38;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _3C=$d();$k[$j++]=_3C;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_onecode(){$_=Object.create($_);$_.dontdraw=false;$_.height=.15;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_onecode);$_.barlen=$_.barcode.length;$F($_.barcode,function(){var _4=$k[--$j];if(_4<48||_4>57){$k[$j++]="bwipp.onecodeBadCharacter#10992";$k[$j++]="The data must contain only digits";bwipp_raiseerror()}});if($_.barlen!=20&&$_.barlen!=25&&$_.barlen!=29&&$_.barlen!=31){$k[$j++]="bwipp.onecodeInvalidLength#10997";$k[$j++]="The data must be 20, 25, 29 or 31 digits";bwipp_raiseerror()}$k[$j++]=Infinity;var _B=$eq($G($_.barcode,5,1),"9")?14:11;$k[$j++]=2;$k[$j++]=2;$k[$j++]=5;$k[$j++]=5;$k[$j++]=_B;$k[$j++]=_B;$k[$j++]=20;$k[$j++]=20;$k[$j++]=25;$k[$j++]=25;$k[$j++]=29;$k[$j++]=29;$_.txtdict=$d();$_.txt=$a($_.barlen+6);$_.spacecnt=0;for(var _H=0,_G=$_.barlen-1;_H<=_G;_H+=1){$_.i=_H;var _K=$g($_.txtdict,$_.i)!==undefined;if(_K){$p($_.txt,$_.i+$_.spacecnt,$a([" ",0,0,"",0]));$_.spacecnt=$_.spacecnt+1}$p($_.txt,$_.i+$_.spacecnt,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.txt=$G($_.txt,0,$_.barcode.length+$_.spacecnt);$_.normalize=function(){$_.base=$k[--$j];$_.num=$k[--$j];for(var _e=$_.num.length-1;_e>=1;_e-=1){$_.i=_e;var _f=$_.num;var _g=$_.i;$p(_f,_g-1,$f($g(_f,_g-1)+~~($g($_.num,$_.i)/$_.base)));$p($_.num,$_.i,$g($_.num,$_.i)%$_.base)}for(;;){if($lt($g($_.num,0),$_.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$q($_.num);$_.num=$a();$p($_.num,0,$f($g($_.num,0)+~~($g($_.num,1)/$_.base)));$p($_.num,1,$g($_.num,1)%$_.base)}$k[$j++]=Infinity;$_.i=true;var _17=$_.num;for(var _18=0,_19=_17.length;_18<_19;_18++){var _1A=$g(_17,_18);$k[$j++]=_1A;if(_1A==0&&$_.i){$j--}else{$_.i=false}}$_.num=$a();if($_.num.length==0){$_.num=$a([0])}$k[$j++]=$_.num};$_.bigadd=function(){var _1G=$k[--$j];var _1H=$k[--$j];$_.offset=Math.abs(_1G.length-_1H.length);if(_1G.length<_1H.length){var _=_1G;_1G=_1H;_1H=_}$_.a=_1G;$_.b=_1H;for(var _1K=0,_1J=$_.b.length-1;_1K<=_1J;_1K+=1){var _1L=$_.a;var _1M=$_.offset;$p(_1L,_1K+_1M,$f($g(_1L,_1K+_1M)+$g($_.b,_1K)))}$k[$j++]=$_.a};if(!bwipp_onecode.__11060__){$_=Object.create($_);var _1V=new Map([[20,$a([0])],[25,$a([1])],[29,$a([1,0,0,0,0,1])],[31,$a([1,0,0,0,1,0,0,0,0,1])]]);$_.startvals=_1V;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_onecode.$ctx[id]=$_[id]);bwipp_onecode.__11060__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="binval";$k[$j++]=$g($_.startvals,$_.barlen);$k[$j++]=Infinity;var _1c=$G($_.barcode,20,$_.barlen-20);for(var _1d=0,_1e=_1c.length;_1d<_1e;_1d++){$k[$j++]=$f($g(_1c,_1d)-48)}var _1g=$a();$k[$j++]=_1g;$_.bigadd();var _1h=$k[--$j];$_[$k[--$j]]=_1h;$k[$j++]=Infinity;$q($_.binval);$k[$j++]=$f($g($_.barcode,0)-48);$_.binval=$a();$k[$j++]=Infinity;var _1n=$_.binval;for(var _1o=0,_1p=_1n.length;_1o<_1p;_1o++){$k[$j++]=$g(_1n,_1o)*5}var _1r=$a();$k[$j++]="binval";$k[$j++]=_1r;$k[$j++]=$a([$f($g($_.barcode,1)-48)]);$_.bigadd();$k[$j++]=10;$_.normalize();var _1v=$k[--$j];$_[$k[--$j]]=_1v;$k[$j++]=Infinity;$q($_.binval);var _1z=$G($_.barcode,2,18);for(var _20=0,_21=_1z.length;_20<_21;_20++){$k[$j++]=$f($g(_1z,_20)-48)}$_.binval=$a();$_.bytes=$a(13);var _25=$_.binval;$_.bintmp=$A($a(_25.length),_25);for(var _28=12;_28>=0;_28-=1){$_.i=_28;for(var _2B=0,_2A=$_.bintmp.length-2;_2B<=_2A;_2B+=1){$_.j=_2B;var _2C=$_.bintmp;var _2D=$_.j;$p(_2C,_2D+1,$f($g(_2C,_2D+1)+$g($_.bintmp,$_.j)%256*10));$p($_.bintmp,$_.j,~~($g($_.bintmp,$_.j)/256))}$p($_.bytes,$_.i,$g($_.bintmp,$_.bintmp.length-1)%256);var _2S=$_.bintmp;var _2T=$_.bintmp;$p(_2S,_2T.length-1,~~($g(_2S,_2T.length-1)/256))}$_.fcs=2047;$_.dat=$g($_.bytes,0)<<5;for(var _2X=0,_2Y=6;_2X<_2Y;_2X++){if((($_.fcs^$_.dat)&1024)!=0){$_.fcs=$_.fcs<<1^3893}else{$_.fcs=$_.fcs<<1}$_.fcs=$_.fcs&2047;$_.dat=$_.dat<<1}for(var _2f=1;_2f<=12;_2f+=1){$_.dat=$g($_.bytes,_2f)<<3;for(var _2i=0,_2j=8;_2i<_2j;_2i++){if((($_.fcs^$_.dat)&1024)!=0){$_.fcs=$_.fcs<<1^3893}else{$_.fcs=$_.fcs<<1}$_.fcs=$_.fcs&2047;$_.dat=$_.dat<<1}}$_.codewords=$a(10);for(var _2r=9;_2r>=0;_2r-=1){$_.i=_2r;var _2t=$_.i==9?636:1365;$_.b=_2t;for(var _2w=0,_2v=$_.binval.length-2;_2w<=_2v;_2w+=1){$_.j=_2w;var _2x=$_.binval;var _2y=$_.j;$p(_2x,_2y+1,$f($g(_2x,_2y+1)+$g($_.binval,$_.j)%$_.b*10));$p($_.binval,$_.j,~~($g($_.binval,$_.j)/$_.b))}$p($_.codewords,$_.i,$g($_.binval,$_.binval.length-1)%$_.b);var _3G=$_.binval;var _3H=$_.binval;$p(_3G,_3H.length-1,~~($g(_3G,_3H.length-1)/$_.b))}$p($_.codewords,9,$g($_.codewords,9)*2);if(($_.fcs&1024)!=0){$p($_.codewords,0,$f($g($_.codewords,0)+659))}if(!bwipp_onecode.__11225__){$_=Object.create($_);$_.tab513=$a([31,7936,47,7808,55,7552,59,7040,61,6016,62,3968,79,7744,87,7488,91,6976,93,5952,94,3904,103,7360,107,6848,109,5824,110,3776,115,6592,117,5568,118,3520,121,5056,122,3008,124,1984,143,7712,151,7456,155,6944,157,5920,158,3872,167,7328,171,6816,173,5792,174,3744,179,6560,181,5536,182,3488,185,5024,186,2976,188,1952,199,7264,203,6752,205,5728,206,3680,211,6496,213,5472,214,3424,217,4960,218,2912,220,1888,227,6368,229,5344,230,3296,233,4832,234,2784,236,1760,241,4576,242,2528,244,1504,248,992,271,7696,279,7440,283,6928,285,5904,286,3856,295,7312,299,6800,301,5776,302,3728,307,6544,309,5520,310,3472,313,5008,314,2960,316,1936,327,7248,331,6736,333,5712,334,3664,339,6480,341,5456,342,3408,345,4944,346,2896,348,1872,355,6352,357,5328,358,3280,361,4816,362,2768,364,1744,369,4560,370,2512,372,1488,376,976,391,7216,395,6704,397,5680,398,3632,403,6448,405,5424,406,3376,409,4912,410,2864,412,1840,419,6320,421,5296,422,3248,425,4784,426,2736,428,1712,433,4528,434,2480,436,1456,440,944,451,6256,453,5232,454,3184,457,4720,458,2672,460,1648,465,4464,466,2416,468,1392,472,880,481,4336,482,2288,484,1264,488,752,527,7688,535,7432,539,6920,541,5896,542,3848,551,7304,555,6792,557,5768,558,3720,563,6536,565,5512,566,3464,569,5e3,570,2952,572,1928,583,7240,587,6728,589,5704,590,3656,595,6472,597,5448,598,3400,601,4936,602,2888,604,1864,611,6344,613,5320,614,3272,617,4808,618,2760,620,1736,625,4552,626,2504,628,1480,632,968,647,7208,651,6696,653,5672,654,3624,659,6440,661,5416,662,3368,665,4904,666,2856,668,1832,675,6312,677,5288,678,3240,681,4776,682,2728,684,1704,689,4520,690,2472,692,1448,696,936,707,6248,709,5224,710,3176,713,4712,714,2664,716,1640,721,4456,722,2408,724,1384,728,872,737,4328,738,2280,740,1256,775,7192,779,6680,781,5656,782,3608,787,6424,789,5400,790,3352,793,4888,794,2840,796,1816,803,6296,805,5272,806,3224,809,4760,810,2712,812,1688,817,4504,818,2456,820,1432,824,920,835,6232,837,5208,838,3160,841,4696,842,2648,844,1624,849,4440,850,2392,852,1368,865,4312,866,2264,868,1240,899,6200,901,5176,902,3128,905,4664,906,2616,908,1592,913,4408,914,2360,916,1336,929,4280,930,2232,932,1208,961,4216,962,2168,964,1144,1039,7684,1047,7428,1051,6916,1053,5892,1054,3844,1063,7300,1067,6788,1069,5764,1070,3716,1075,6532,1077,5508,1078,3460,1081,4996,1082,2948,1084,1924,1095,7236,1099,6724,1101,5700,1102,3652,1107,6468,1109,5444,1110,3396,1113,4932,1114,2884,1116,1860,1123,6340,1125,5316,1126,3268,1129,4804,1130,2756,1132,1732,1137,4548,1138,2500,1140,1476,1159,7204,1163,6692,1165,5668,1166,3620,1171,6436,1173,5412,1174,3364,1177,4900,1178,2852,1180,1828,1187,6308,1189,5284,1190,3236,1193,4772,1194,2724,1196,1700,1201,4516,1202,2468,1204,1444,1219,6244,1221,5220,1222,3172,1225,4708,1226,2660,1228,1636,1233,4452,1234,2404,1236,1380,1249,4324,1250,2276,1287,7188,1291,6676,1293,5652,1294,3604,1299,6420,1301,5396,1302,3348,1305,4884,1306,2836,1308,1812,1315,6292,1317,5268,1318,3220,1321,4756,1322,2708,1324,1684,1329,4500,1330,2452,1332,1428,1347,6228,1349,5204,1350,3156,1353,4692,1354,2644,1356,1620,1361,4436,1362,2388,1377,4308,1378,2260,1411,6196,1413,5172,1414,3124,1417,4660,1418,2612,1420,1588,1425,4404,1426,2356,1441,4276,1442,2228,1473,4212,1474,2164,1543,7180,1547,6668,1549,5644,1550,3596,1555,6412,1557,5388,1558,3340,1561,4876,1562,2828,1564,1804,1571,6284,1573,5260,1574,3212,1577,4748,1578,2700,1580,1676,1585,4492,1586,2444,1603,6220,1605,5196,1606,3148,1609,4684,1610,2636,1617,4428,1618,2380,1633,4300,1634,2252,1667,6188,1669,5164,1670,3116,1673,4652,1674,2604,1681,4396,1682,2348,1697,4268,1698,2220,1729,4204,1730,2156,1795,6172,1797,5148,1798,3100,1801,4636,1802,2588,1809,4380,1810,2332,1825,4252,1826,2204,1857,4188,1858,2140,1921,4156,1922,2108,2063,7682,2071,7426,2075,6914,2077,5890,2078,3842,2087,7298,2091,6786,2093,5762,2094,3714,2099,6530,2101,5506,2102,3458,2105,4994,2106,2946,2119,7234,2123,6722,2125,5698,2126,3650,2131,6466,2133,5442,2134,3394,2137,4930,2138,2882,2147,6338,2149,5314,2150,3266,2153,4802,2154,2754,2161,4546,2162,2498,2183,7202,2187,6690,2189,5666,2190,3618,2195,6434,2197,5410,2198,3362,2201,4898,2202,2850,2211,6306,2213,5282,2214,3234,2217,4770,2218,2722,2225,4514,2226,2466,2243,6242,2245,5218,2246,3170,2249,4706,2250,2658,2257,4450,2258,2402,2273,4322,2311,7186,2315,6674,2317,5650,2318,3602,2323,6418,2325,5394,2326,3346,2329,4882,2330,2834,2339,6290,2341,5266,2342,3218,2345,4754,2346,2706,2353,4498,2354,2450,2371,6226,2373,5202,2374,3154,2377,4690,2378,2642,2385,4434,2401,4306,2435,6194,2437,5170,2438,3122,2441,4658,2442,2610,2449,4402,2465,4274,2497,4210,2567,7178,2571,6666,2573,5642,2574,3594,2579,6410,2581,5386,2582,3338,2585,4874,2586,2826,2595,6282,2597,5258,2598,3210,2601,4746,2602,2698,2609,4490,2627,6218,2629,5194,2630,3146,2633,4682,2641,4426,2657,4298,2691,6186,2693,5162,2694,3114,2697,4650,2705,4394,2721,4266,2753,4202,2819,6170,2821,5146,2822,3098,2825,4634,2833,4378,2849,4250,2881,4186,2945,4154,3079,7174,3083,6662,3085,5638,3086,3590,3091,6406,3093,5382,3094,3334,3097,4870,3107,6278,3109,5254,3110,3206,3113,4742,3121,4486,3139,6214,3141,5190,3145,4678,3153,4422,3169,4294,3203,6182,3205,5158,3209,4646,3217,4390,3233,4262,3265,4198,3331,6166,3333,5142,3337,4630,3345,4374,3361,4246,3393,4182,3457,4150,3587,6158,3589,5134,3593,4622,3601,4366,3617,4238,3649,4174,3713,4142,3841,4126,4111,7681,4119,7425,4123,6913,4125,5889,4135,7297,4139,6785,4141,5761,4147,6529,4149,5505,4153,4993,4167,7233,4171,6721,4173,5697,4179,6465,4181,5441,4185,4929,4195,6337,4197,5313,4201,4801,4209,4545,4231,7201,4235,6689,4237,5665,4243,6433,4245,5409,4249,4897,4259,6305,4261,5281,4265,4769,4273,4513,4291,6241,4293,5217,4297,4705,4305,4449,4359,7185,4363,6673,4365,5649,4371,6417,4373,5393,4377,4881,4387,6289,4389,5265,4393,4753,4401,4497,4419,6225,4421,5201,4425,4689,4483,6193,4485,5169,4489,4657,4615,7177,4619,6665,4621,5641,4627,6409,4629,5385,4633,4873,4643,6281,4645,5257,4649,4745,4675,6217,4677,5193,4739,6185,4741,5161,4867,6169,4869,5145,5127,7173,5131,6661,5133,5637,5139,6405,5141,5381,5155,6277,5157,5253,5187,6213,5251,6181,5379,6165,5635,6157,6151,7171,6155,6659,6163,6403,6179,6275,6211,5189,4681,4433,4321,3142,2634,2386,2274,1612,1364,1252,856,744,496]);$_.tab213=$a([3,6144,5,5120,6,3072,9,4608,10,2560,12,1536,17,4352,18,2304,20,1280,24,768,33,4224,34,2176,36,1152,40,640,48,384,65,4160,66,2112,68,1088,72,576,80,320,96,192,129,4128,130,2080,132,1056,136,544,144,288,257,4112,258,2064,260,1040,264,528,513,4104,514,2056,516,1032,1025,4100,1026,2052,2049,4098,4097,2050,1028,520,272,160]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_onecode.$ctx[id]=$_[id]);bwipp_onecode.__11225__=1;$_=Object.getPrototypeOf($_)}$_.chars=$a(10);for(var _3V=0;_3V<=9;_3V+=1){$_.i=_3V;var _3Y=$g($_.codewords,$_.i);$k[$j++]=_3Y;if(_3Y<=1286){var _3b=$g($_.tab513,$k[--$j]);$k[$j++]=_3b}else{var _3e=$g($_.tab213,$f($k[--$j]-1287));$k[$j++]=_3e}$p($_.chars,$_.i,$k[--$j])}for(var _3i=9;_3i>=0;_3i-=1){$_.i=_3i;if((~~Math.pow(2,$_.i)&$_.fcs)!=0){$p($_.chars,$_.i,$g($_.chars,$_.i)^8191)}}if(!bwipp_onecode.__11262__){$_=Object.create($_);$_.barmap=$a([7,2,4,3,1,10,0,0,9,12,2,8,5,5,6,11,8,9,3,1,0,1,5,12,2,5,1,8,4,4,9,11,6,3,8,10,3,9,7,6,5,11,1,4,8,5,2,12,9,10,0,2,7,1,6,7,3,6,4,9,0,3,8,6,6,4,2,7,1,1,9,9,7,10,5,2,4,0,3,8,6,2,0,4,8,11,1,0,9,8,3,12,2,6,7,7,5,1,4,10,1,12,6,9,7,3,8,0,5,8,9,7,4,6,2,10,3,4,0,5,8,4,5,7,7,11,1,9,6,0,9,6,0,6,4,8,2,1,3,2,5,9,8,12,4,11,6,1,9,5,7,4,3,3,1,2,0,7,2,0,1,3,4,1,6,10,3,5,8,7,9,4,2,11,5,6,0,8,7,12,4,2,8,1,5,10,3,0,9,3,0,9,6,5,2,4,7,8,1,7,5,0,4,5,2,3,0,10,6,12,9,2,3,11,1,6,8,8,7,9,5,4,0,11,1,5,2,2,9,1,4,12,8,3,6,6,7,0,3,7,4,7,7,5,0,12,1,11,2,9,9,0,6,8,5,3,3,10,8,2]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_onecode.$ctx[id]=$_[id]);bwipp_onecode.__11262__=1;$_=Object.getPrototypeOf($_)}$_.bbs=$a(65);$_.bhs=$a(65);for(var _3u=0;_3u<=64;_3u+=1){$_.i=_3u;$_.dec=($g($_.chars,$g($_.barmap,$_.i*4))&~~Math.pow(2,$g($_.barmap,$_.i*4+1)))!=0;$_.asc=($g($_.chars,$g($_.barmap,$_.i*4+2))&~~Math.pow(2,$g($_.barmap,$_.i*4+3)))!=0;if(!$_.dec&&!$_.asc){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}if(!$_.dec&&$_.asc){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($_.dec&&!$_.asc){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($_.dec&&$_.asc){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}}$k[$j++]=Infinity;var _4h=$_.bbs;var _4i=$_.bhs;$k[$j++]=Infinity;for(var _4k=0,_4l=$_.bhs.length-1;_4k<_4l;_4k++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _4m=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_4h;$k[$j++]="bhs";$k[$j++]=_4i;$k[$j++]="sbs";$k[$j++]=_4m;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="left";$k[$j++]="textfont";$k[$j++]="OCR-B";$k[$j++]="textyoffset";$k[$j++]=1;$k[$j++]="textxoffset";$k[$j++]=-.3;$k[$j++]="opt";$k[$j++]=$_.options;var _4p=$d();$k[$j++]=_4p;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_postnet(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.125;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_postnet);$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _4=$k[--$j];$k[$j++]=$f(_4-1)}var _5=$k[--$j];$_[$k[--$j]]=_5;if($_.barlen!=5&&$_.barlen!=9&&$_.barlen!=11){$k[$j++]="bwipp.postnetBadLength#11357";$k[$j++]="USPS POSTNET must be 5, 9 or 11 digits excluding check digit";bwipp_raiseerror()}$F($_.barcode,function(){var _B=$k[--$j];if(_B<48||_B>57){$k[$j++]="bwipp.postnetBadCharacter#11361";$k[$j++]="USPS POSTNET must contain only digits";bwipp_raiseerror()}});if(!bwipp_postnet.__11375__){$_=Object.create($_);$_.barchars="0123456789";$_.encs=$a(["55222","22255","22525","22552","25225","25252","25522","52225","52252","52522","5","5"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_postnet.$ctx[id]=$_[id]);bwipp_postnet.__11375__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _G=0,_F=$f($_.barlen-1);_G<=_F;_G+=1){$_.i=_G;$_.checksum=$f($_.checksum+$f($g($_.barcode,$_.i)-48))}$_.checksum=$f(10-$_.checksum%10)%10;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.postnetBadCheckDigit#11385";$k[$j++]="Incorrect USPS POSTNET check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}$_.bhs=$a($f($_.barlen*5+7));$_.txt=$a($f($_.barlen+1));$_.enc=$g($_.encs,10);$_.heights=$a($_.enc.length);for(var _g=0,_f=$_.enc.length-1;_g<=_f;_g+=1){$_.j=_g;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,0,$_.heights);for(var _r=0,_q=$f($_.barlen-1);_r<=_q;_r+=1){$_.i=_r;$_.enc=$g($_.encs,$f($g($_.barcode,$_.i)-48));$_.heights=$a($_.enc.length);for(var _11=0,_10=$_.enc.length-1;_11<=_10;_11+=1){$_.j=_11;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$_.i*5+1,$_.heights);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,$_.checksum);$_.heights=$a($_.enc.length);for(var _1S=0,_1R=$_.enc.length-1;_1S<=_1R;_1S+=1){$_.j=_1S;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+1),$_.heights);if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*5+1)*72/25,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,11);$_.heights=$a($_.enc.length);for(var _20=0,_1z=$_.enc.length-1;_20<=_1z;_20+=1){$_.j=_20;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+6),$_.heights);$k[$j++]=Infinity;var _2A=$_.bhs;$k[$j++]=Infinity;for(var _2C=0,_2D=$_.bhs.length;_2C<_2D;_2C++){$k[$j++]=0}var _2E=$a();$k[$j++]=Infinity;for(var _2G=0,_2H=$_.bhs.length-1;_2G<_2H;_2G++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2I=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bhs";$k[$j++]=_2A;$k[$j++]="bbs";$k[$j++]=_2E;$k[$j++]="sbs";$k[$j++]=_2I;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2M=$d();$k[$j++]=_2M;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_planet(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.125;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_planet);$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _4=$k[--$j];$k[$j++]=$f(_4-1)}var _5=$k[--$j];$_[$k[--$j]]=_5;if($_.barlen!=11&&$_.barlen!=13){$k[$j++]="bwipp.planetBadLength#11505";$k[$j++]="USPS PLANET must be 11 or 13 digits excluding check digit";bwipp_raiseerror()}$F($_.barcode,function(){var _A=$k[--$j];if(_A<48||_A>57){$k[$j++]="bwipp.planetBadCharacter#11509";$k[$j++]="USPS PLANET must contain only digits";bwipp_raiseerror()}});if(!bwipp_planet.__11523__){$_=Object.create($_);$_.barchars="0123456789";$_.encs=$a(["22555","55522","55252","55225","52552","52525","52255","25552","25525","25255","5","5"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_planet.$ctx[id]=$_[id]);bwipp_planet.__11523__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _F=0,_E=$f($_.barlen-1);_F<=_E;_F+=1){$_.i=_F;$_.checksum=$f($_.checksum+$f($g($_.barcode,$_.i)-48))}$_.checksum=$f(10-$_.checksum%10)%10;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.planetBadCheckDigit#11534";$k[$j++]="Incorrect USPS PLANET check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}$_.bhs=$a($f($_.barlen*5+7));$_.txt=$a($f($_.barlen+1));$_.enc=$g($_.encs,10);$_.heights=$a($_.enc.length);for(var _f=0,_e=$_.enc.length-1;_f<=_e;_f+=1){$_.j=_f;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,0,$_.heights);for(var _q=0,_p=$f($_.barlen-1);_q<=_p;_q+=1){$_.i=_q;$_.enc=$g($_.encs,$f($g($_.barcode,$_.i)-48));$_.heights=$a($_.enc.length);for(var _10=0,_z=$_.enc.length-1;_10<=_z;_10+=1){$_.j=_10;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$_.i*5+1,$_.heights);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,$_.checksum);$_.heights=$a($_.enc.length);for(var _1R=0,_1Q=$_.enc.length-1;_1R<=_1Q;_1R+=1){$_.j=_1R;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+1),$_.heights);if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*5+1)*72/25,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,11);$_.heights=$a($_.enc.length);for(var _1z=0,_1y=$_.enc.length-1;_1z<=_1y;_1z+=1){$_.j=_1z;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+6),$_.heights);$k[$j++]=Infinity;var _29=$_.bhs;$k[$j++]=Infinity;for(var _2B=0,_2C=$_.bhs.length;_2B<_2C;_2B++){$k[$j++]=0}var _2D=$a();$k[$j++]=Infinity;for(var _2F=0,_2G=$_.bhs.length-1;_2F<_2G;_2F++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2H=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bhs";$k[$j++]=_29;$k[$j++]="bbs";$k[$j++]=_2D;$k[$j++]="sbs";$k[$j++]=_2H;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2L=$d();$k[$j++]=_2L;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_royalmail(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_royalmail);if(!bwipp_royalmail.__11666__){$_=Object.create($_);$_.barchars="ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS";$_.charvals=new Map;for(var _2=0;_2<=35;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}$_.encs=$a(["3300","2211","2301","2310","3201","3210","1122","0033","0123","0132","1023","1032","1302","0213","0303","0312","1203","1212","1320","0231","0321","0330","1221","1230","3102","2013","2103","2112","3003","3012","3120","2031","2121","2130","3021","3030","2","3"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_royalmail.$ctx[id]=$_[id]);bwipp_royalmail.__11666__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.royalmailBadCharacter#11671";$k[$j++]="RM4SCC must contain only capital letters and digits";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksumrow=0;$_.checksumcol=0;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.i=_M;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.checksumrow=$_.checksumrow+~~($_.indx/6);$_.checksumcol=$f($_.checksumcol+$_.indx%6)}$_.checksum=$f($_.checksumrow%6*6+$_.checksumcol%6);if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.royalmailBadCheckDigit#11688";$k[$j++]="Incorrect RM4SCC check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}$_.encstr=$s($f($_.barlen*4+6));$_.txt=$a($f($_.barlen+1));$P($_.encstr,0,$g($_.encs,36));for(var _r=0,_q=$f($_.barlen-1);_r<=_q;_r+=1){$_.i=_r;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.encstr,$_.i*4+1,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i*4+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.encstr,$f($_.barlen*4+1),$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*4+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*4+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.encstr,$f($_.barlen*4+5),$g($_.encs,37));$_.bbs=$a($_.encstr.length);$_.bhs=$a($_.encstr.length);for(var _1j=0,_1i=$_.encstr.length-1;_1j<=_1i;_1j+=1){$_.i=_1j;$_.enc=$G($_.encstr,$_.i,1);if($eq($_.enc,"0")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}if($eq($_.enc,"1")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"2")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"3")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}}$k[$j++]=Infinity;var _2F=$_.bbs;var _2G=$_.bhs;$k[$j++]=Infinity;for(var _2I=0,_2J=$_.bhs.length-1;_2I<_2J;_2I++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2K=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_2F;$k[$j++]="bhs";$k[$j++]=_2G;$k[$j++]="sbs";$k[$j++]=_2K;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2O=$d();$k[$j++]=_2O;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_auspost(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$_.custinfoenc="character";$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($_.custinfoenc,"character")&&$ne($_.custinfoenc,"numeric")){$k[$j++]="bwipp.auspostBadCustinfoEncoding#11801";$k[$j++]="Customer information encoding must be either character or numeric";bwipp_raiseerror()}bwipp_loadctx(bwipp_auspost);if(!bwipp_auspost.__11827__){$_=Object.create($_);$_.encs=$a(["000","001","002","010","011","012","020","021","022","100","101","102","110","111","112","120","121","122","200","201","202","210","211","212","220","221","222","300","301","302","310","311","312","320","321","322","023","030","031","032","033","103","113","123","130","131","132","133","203","213","223","230","231","232","233","303","313","323","330","331","332","333","003","013","00","01","02","10","11","12","20","21","22","30","13","3"]);$_.barchars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #";var _5=new Map([["11",37],["45",37],["59",52],["62",67]]);$_.fcclen=_5;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_auspost.$ctx[id]=$_[id]);bwipp_auspost.__11827__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.txt=$a($_.barlen-2);$k[$j++]=$_.fcclen;if($_.barlen>=2){$k[$j++]=$G($_.barcode,0,2)}else{$k[$j++]=""}var _E=$k[--$j];var _F=$k[--$j];var _G=$g(_F,_E)!==undefined;$k[$j++]=_F;$k[$j++]=_E;if(!_G){$j-=2;$k[$j++]="bwipp.auspostBadFCC#11834";$k[$j++]="Must begin with an FCC, either 11, 45, 59 or 62";bwipp_raiseerror()}var _H=$k[--$j];$_.encstr=$s($g($k[--$j],_H));$k[$j++]=true;for(var _L=0,_M=1;_L<_M;_L++){if($_.barlen<10){$j--;$k[$j++]=false;break}var _P=$G($_.barcode,2,8);for(var _Q=0,_R=_P.length;_Q<_R;_Q++){var _S=$g(_P,_Q);if(_S<48||_S>57){$j--;$k[$j++]=false;break}}}if($nt($k[--$j])){$k[$j++]="bwipp.auspostIncompleteDPID#11845";$k[$j++]="The DPID must be 8 digits";bwipp_raiseerror()}var _W=$eq($_.custinfoenc,"numeric")?2:3;if(($_.barlen-10)*_W>$_.encstr.length-22-14){$k[$j++]="bwipp.auspostTooLong#11851";$k[$j++]="The message is too long";bwipp_raiseerror()}$P($_.encstr,0,$g($_.encs,74));for(var _b=0;_b<=1;_b+=1){$_.i=_b;$P($_.encstr,$_.i*2+2,$g($_.encs,$i($G($_.barcode,$_.i,1))+64))}for(var _j=2;_j<=9;_j+=1){$_.i=_j;$P($_.encstr,$_.i*2+2,$g($_.encs,$i($G($_.barcode,$_.i,1))+64));$p($_.txt,$_.i-2,$a([$G($_.barcode,$_.i,1),(($_.i-2)*2+6)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}if($eq($_.custinfoenc,"numeric")){for(var _14=0,_13=$_.barlen-11;_14<=_13;_14+=1){$_.i=_14;var _18=$g($_.barcode,$_.i+10);$k[$j++]=$_.encs;$k[$j++]=_18;if(_18<48||_18>57){$k[$j++]="bwipp.auspostInvalidCustinfoDigit#11878";$k[$j++]="The customer information data contains a non-digit character";bwipp_raiseerror()}var _19=$k[--$j];$P($_.encstr,$_.i*2+22,$g($k[--$j],$f($f(_19-48)+64)));$p($_.txt,$_.i+8,$a([$G($_.barcode,$_.i+10,1),($_.i*2+22)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.ciflen=($_.barlen-10)*2}else{for(var _1R=0,_1Q=$_.barlen-11;_1R<=_1Q;_1R+=1){$_.i=_1R;$X($_.barchars,$G($_.barcode,$_.i+10,1));if($nt($k[--$j])){$j--;$k[$j++]="bwipp.auspostInvalidCustinfoCharacter#11890";$k[$j++]="The customer information contains an invalid character";bwipp_raiseerror()}$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.encstr,$_.i*3+22,$_.enc);$p($_.txt,$_.i+8,$a([$G($_.barcode,$_.i+10,1),($_.i*3+22)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.ciflen=($_.barlen-10)*3}for(var _1s=22+$_.ciflen,_1r=$_.encstr.length-14;_1s<=_1r;_1s+=1){$P($_.encstr,_1s,$g($_.encs,75))}if(!bwipp_auspost.__11927__){$_=Object.create($_);$_.rstable=$a(64*64);$k[$j++]=$_.rstable;$k[$j++]=0;$k[$j++]=Infinity;for(var _1y=0,_1z=64;_1y<_1z;_1y++){$k[$j++]=0}var _20=$a();var _21=$k[--$j];$P($k[--$j],_21,_20);$k[$j++]=$_.rstable;$k[$j++]=64;$k[$j++]=Infinity;for(var _24=0;_24<=63;_24+=1){$k[$j++]=_24}var _25=$a();var _26=$k[--$j];$P($k[--$j],_26,_25);$_.prev=1;for(var _28=0,_29=64;_28<_29;_28++){$_.next=$_.prev<<1;if(($_.next&64)!=0){$_.next=$_.next^67}for(var _2D=0;_2D<=63;_2D+=1){$_.j=_2D;$_.nextcell=function(){$k[$j++]=$_.rstable;$k[$j++]=64*$_.next+$_.j};$_.nextcell();var _2L=$k[--$j];$p($k[--$j],_2L,$g($_.rstable,64*$_.prev+$_.j)<<1);$_.nextcell();var _2N=$k[--$j];if(($g($k[--$j],_2N)&64)!=0){$_.nextcell();$_.nextcell();var _2Q=$k[--$j];var _2S=$g($k[--$j],_2Q);var _2T=$k[--$j];$p($k[--$j],_2T,_2S^67)}}$_.prev=$_.next}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_auspost.$ctx[id]=$_[id]);bwipp_auspost.__11927__=1;$_=Object.getPrototypeOf($_)}$_.rscodes=$a(~~(($_.encstr.length-16)/3)+4);$k[$j++]=$_.rscodes;$k[$j++]=0;$k[$j++]=Infinity;for(var _2a=0,_2b=4;_2a<_2b;_2a++){$k[$j++]=0}var _2c=$a();var _2d=$k[--$j];$P($k[--$j],_2d,_2c);for(var _2h=2,_2g=$_.encstr.length-16;_2h<=_2g;_2h+=3){$_.i=_2h;$p($_.rscodes,$_.rscodes.length-~~(($_.i-2)/3)-1,$i($G($_.encstr,$_.i,1))*16+$i($G($_.encstr,$_.i+1,1))*4+$i($G($_.encstr,$_.i+2,1)))}for(var _2v=$_.rscodes.length-5;_2v>=0;_2v-=1){$_.i=_2v;for(var _2w=0;_2w<=4;_2w+=1){$_.j=_2w;$p($_.rscodes,$_.i+$_.j,$xo($g($_.rscodes,$_.i+$_.j),$g($_.rstable,$f(64*$g($a([48,17,29,30,1]),$_.j)+$g($_.rscodes,$_.i+4)))))}}$_.checkcode=$Z($s(12),"000000000000");for(var _3E=0;_3E<=3;_3E+=1){$_.i=_3E;$_.enc=$R($s(3),$g($_.rscodes,3-$_.i),4);$P($_.checkcode,$_.i*3+(3-$_.enc.length),$_.enc)}$P($_.encstr,$_.encstr.length-14,$_.checkcode);$P($_.encstr,$_.encstr.length-2,$g($_.encs,74));$_.bbs=$a($_.encstr.length);$_.bhs=$a($_.encstr.length);for(var _3b=0,_3a=$_.encstr.length-1;_3b<=_3a;_3b+=1){$_.i=_3b;$_.enc=$G($_.encstr,$_.i,1);if($eq($_.enc,"0")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}if($eq($_.enc,"1")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"2")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"3")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}}$k[$j++]=Infinity;var _47=$_.bbs;var _48=$_.bhs;$k[$j++]=Infinity;for(var _4A=0,_4B=$_.bhs.length-1;_4A<_4B;_4A++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _4C=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_47;$k[$j++]="bhs";$k[$j++]=_48;$k[$j++]="sbs";$k[$j++]=_4C;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _4G=$d();$k[$j++]=_4G;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_kix(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_kix);if(!bwipp_kix.__12059__){$_=Object.create($_);$_.encs=$a(["0033","0123","0132","1023","1032","1122","0213","0303","0312","1203","1212","1302","0231","0321","0330","1221","1230","1320","2013","2103","2112","3003","3012","3102","2031","2121","2130","3021","3030","3120","2211","2301","2310","3201","3210","3300"]);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";$_.charvals=new Map;for(var _3=0;_3<=35;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_kix.$ctx[id]=$_[id]);bwipp_kix.__12059__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.kixBadCharacter#12064";$k[$j++]="KIX must contain only capital letters and digits";bwipp_raiseerror()}}$_.barlen=$_.barcode.length;$_.encstr=$s($_.barlen*4);$_.txt=$a($_.barlen);for(var _M=0,_L=$_.barlen-1;_M<=_L;_M+=1){$_.i=_M;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.encstr,$_.i*4,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*4*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.bbs=$a($_.encstr.length);$_.bhs=$a($_.encstr.length);for(var _n=0,_m=$_.encstr.length-1;_n<=_m;_n+=1){$_.i=_n;$_.enc=$G($_.encstr,$_.i,1);if($eq($_.enc,"0")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}if($eq($_.enc,"1")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"2")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"3")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}}$k[$j++]=Infinity;var _1J=$_.bbs;var _1K=$_.bhs;$k[$j++]=Infinity;for(var _1M=0,_1N=$_.bhs.length-1;_1M<_1N;_1M++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _1O=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_1J;$k[$j++]="bhs";$k[$j++]=_1K;$k[$j++]="sbs";$k[$j++]=_1O;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _1S=$d();$k[$j++]=_1S;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_japanpost(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_japanpost);$F($_.barcode,function(){var _3=$k[--$j];if(!(_3>=48&&_3<=57||(_3>=65&&_3<=90||_3==45))){$k[$j++]="bwipp.japanPostBadCharacter#12169";$k[$j++]="Japan Post must contain only digits, capital letters and the dash symbol";if("raiseerror"()===true){return true}}});if(!bwipp_japanpost.__12183__){$_=Object.create($_);$_.encs=$a(["300","330","312","132","321","303","123","231","213","033","030","120","102","210","012","201","021","003","333","31","13"]);$_.barchars="0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_japanpost.$ctx[id]=$_[id]);bwipp_japanpost.__12183__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.encstr=$s((20+1)*3+4);$_.digits=$a(20);$_.txt=$a($_.barlen+1);$P($_.encstr,0,$g($_.encs,19));$_.checksum=0;$_.j=0;$_.i=0;$k[$j++]=true;for(var _G=0,_F=$_.barlen-1;_G<=_F;_G+=1){$_.i=_G;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;if($_.indx>=11&&$_.indx<37){if($_.j>18){$j--;$k[$j++]=false;break}$_.digit=~~(($_.indx-1)/10)+10;$P($_.encstr,$_.j*3+2,$g($_.encs,$_.digit));$_.checksum=$_.checksum+$_.digit;$p($_.digits,$_.j,$_.digit);$_.j=$_.j+1}if($_.j>19){$j--;$k[$j++]=false;break}$_.digit=0;if($_.indx==37){$_.digit=14}if($_.indx>=11&&$_.indx<37){$_.digit=($_.indx-1)%10}if($_.indx<11){$_.digit=$_.indx}$P($_.encstr,$_.j*3+2,$g($_.encs,$_.digit));$_.checksum=$_.checksum+$_.digit;$p($_.digits,$_.j,$_.digit);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.j*3+2)*3.312,$_.textyoffset,$_.textfont,$_.textsize]));$_.j=$_.j+1}if($nt($k[--$j])){$k[$j++]="bwipp.japanpostTooLong#12233";$k[$j++]="The input is too long";bwipp_raiseerror()}for(var _16=$_.j,_15=20-1;_16<=_15;_16+=1){$_.k=_16;$P($_.encstr,$_.k*3+2,$g($_.encs,14));$_.checksum=$_.checksum+14;$p($_.digits,$_.k,14)}$_.checksum=19-$_.checksum%19;$P($_.encstr,2+20*3,$g($_.encs,$_.checksum));$P($_.encstr,2+21*3,$g($_.encs,20));$_.checkdigit=" ";if($_.includecheckintext){$_.checkdigit=$G($_.barchars,$_.checksum,1)}$p($_.txt,$_.i+1,$a([$_.checkdigit,(20*3+2)*3.312,$_.textyoffset,$_.textfont,$_.textsize]));$P($_.encstr,(20+1)*3+2,$g($_.encs,20));$_.bbs=$a(21*3+4);$_.bhs=$a($_.bbs.length);for(var _1f=0,_1e=$_.bbs.length-1;_1f<=_1e;_1f+=1){$_.i=_1f;$_.enc=$G($_.encstr,$_.i,1);$_.bunit=0;$_.hunit=0;if($eq($_.enc,"0")){$_.bunit=3;$_.hunit=2}if($eq($_.enc,"1")){$_.bunit=0;$_.hunit=5}if($eq($_.enc,"2")){$_.bunit=3;$_.hunit=5}if($eq($_.enc,"3")){$_.bunit=0;$_.hunit=8}$p($_.bbs,$_.i,$_.bunit*$_.height/8);$p($_.bhs,$_.i,$_.hunit*$_.height/8)}$k[$j++]=Infinity;var _1v=$_.bbs;var _1w=$_.bhs;$k[$j++]=Infinity;for(var _1y=0,_1z=$_.bhs.length-1;_1y<_1z;_1y++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _20=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_1v;$k[$j++]="bhs";$k[$j++]=_1w;$k[$j++]="sbs";$k[$j++]=_20;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _24=$d();$k[$j++]=_24;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_msi(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.checktype="unset";$_.badmod11=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($_.checktype,"unset")&&!$_.includecheck){$k[$j++]="bwipp.msiCheckTypeWithoutCheck#12350";$k[$j++]="checktype requires includecheck";bwipp_raiseerror()}if($_.badmod11&&($ne($_.checktype,"mod11")&&$ne($_.checktype,"ncrmod11")&&$ne($_.checktype,"mod1110")&&$ne($_.checktype,"ncrmod1110"))){$k[$j++]="bwipp.msiBadMod11Mismatch#12354";$k[$j++]="badmod11 requires checktype with mod11";bwipp_raiseerror()}if($eq($_.checktype,"unset")){$_.checktype="mod10"}bwipp_loadctx(bwipp_msi);$F($_.barcode,function(){var _B=$k[--$j];if(_B<48||_B>57){$k[$j++]="bwipp.msiBadCharacter#12364";$k[$j++]="MSI must contain only digits";bwipp_raiseerror()}});if(!bwipp_msi.__12378__){$_=Object.create($_);$_.encs=$a(["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221","21","121"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_msi.$ctx[id]=$_[id]);bwipp_msi.__12378__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.txtlen=$_.barlen;$_.mod10=function(){$_.code=$k[--$j];$k[$j++]=0;$k[$j++]=0;$F($_.code,function(){var _I=$k[--$j];var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=$f($f(_I-48)+_J*10);$k[$j++]=_K});$j--;var _L=$k[--$j];$k[$j++]=_L*2;$k[$j++]=0;for(;;){var _M=$k[--$j];var _N=$k[--$j];var _O=~~(_N/10);$k[$j++]=$f(_M+_N%10);$k[$j++]=_O;if(_O==0){$j--;break}var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$k[$j++]=_Q}$k[$j++]=0;$k[$j++]=0;$F($_.code,function(){var _S=$k[--$j];var _T=$k[--$j];var _U=$k[--$j];$k[$j++]=$f(_T+$f(_S-48));$k[$j++]=_U});var _V=$k[--$j];var _W=$k[--$j];$k[$j++]=_V;$k[$j++]=_W;$j--;var _X=$k[--$j];var _a=$s($_.code.length+1);$P(_a,0,$_.code);$p(_a,$_.code.length,$f($f(10-$f($k[--$j]+_X)%10)%10+48));$k[$j++]=_a};$_.mod11=function(){$_.code=$k[--$j];$k[$j++]=$_.code.length-1;$F($_.code,function(){var _g=$k[--$j];var _h=$k[--$j];$k[$j++]=$f(_g-48);$k[$j++]=$f(_h%6+2);$k[$j++]=$f(_h-1)});$j--;$k[$j++]=0;for(var _j=0,_k=$_.code.length;_j<_k;_j++){var _l=$k[--$j];var _m=$k[--$j];var _n=$k[--$j];$k[$j++]=$f(_l+_n*_m)}var _p=$f(11-$k[--$j]%11)%11;$k[$j++]=_p;if(_p==10){if($_.badmod11){$j--;var _s=$s($_.code.length+2);$P(_s,0,$_.code);$P(_s,$_.code.length,"10");$k[$j++]=_s}else{$j--;$k[$j++]="bwipp.msiBadMod11NotSpecified#12401";$k[$j++]="mod11 check digit is 10 but badmod11 not specified";bwipp_raiseerror()}}else{var _w=$s($_.code.length+1);$P(_w,0,$_.code);$p(_w,$_.code.length,$f($k[--$j]+48));$k[$j++]=_w}};$_.ncrmod11=function(){$_.code=$k[--$j];$k[$j++]=$_.code.length-1;$F($_.code,function(){var _13=$k[--$j];var _14=$k[--$j];$k[$j++]=$f(_13-48);$k[$j++]=$f(_14%8+2);$k[$j++]=$f(_14-1)});$j--;$k[$j++]=0;for(var _16=0,_17=$_.code.length;_16<_17;_16++){var _18=$k[--$j];var _19=$k[--$j];var _1A=$k[--$j];$k[$j++]=$f(_18+_1A*_19)}var _1C=$f(11-$k[--$j]%11)%11;$k[$j++]=_1C;if(_1C==10){if($_.badmod11){$j--;var _1F=$s($_.code.length+2);$P(_1F,0,$_.code);$P(_1F,$_.code.length,"10");$k[$j++]=_1F}else{$j--;$k[$j++]="bwipp.msiBadMod11NotSpecified#12417";$k[$j++]="mod11 check digit is 10 but badmod11 not specified";bwipp_raiseerror()}}else{var _1J=$s($_.code.length+1);$P(_1J,0,$_.code);$p(_1J,$_.code.length,$f($k[--$j]+48));$k[$j++]=_1J}};if(!bwipp_msi.__12433__){$_=Object.create($_);var _1N=new Map([["mod10",function(){$_.mod10()}],["mod1010",function(){$_.mod10();$_.mod10()}],["mod11",function(){$_.mod11()}],["ncrmod11",function(){$_.ncrmod11()}],["mod1110",function(){$_.mod11();$_.mod10()}],["ncrmod1110",function(){$_.ncrmod11();$_.mod10()}]]);$_.checkfunc=_1N;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_msi.$ctx[id]=$_[id]);bwipp_msi.__12433__=1;$_=Object.getPrototypeOf($_)}if($_.includecheck){var _1Q=$_.checkfunc;var _1R=$_.checktype;var _1S=$g(_1Q,_1R)!==undefined;$k[$j++]=_1Q;$k[$j++]=_1R;if(!_1S){$j-=2;$k[$j++]="bwipp.msiBadCharacter#12438";$k[$j++]="MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110";bwipp_raiseerror()}var _1T=$k[--$j];var _1V=$g($k[--$j],_1T);$k[$j++]=$_.barcode;if(_1V()===true){return true}$_.barcode=$k[--$j];$_.barlen=$_.barcode.length;if($_.includecheckintext){$_.txtlen=$_.barlen}}$_.sbs=$s($_.barlen*8+5);$_.txt=$a($_.barlen);$P($_.sbs,0,$g($_.encs,10));for(var _1k=0,_1j=$_.barlen-1;_1k<=_1j;_1k+=1){$_.i=_1k;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*8+2,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*12+3,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$_.barlen*8+2,$g($_.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _2A=$_.sbs;for(var _2B=0,_2C=_2A.length;_2B<_2C;_2B++){$k[$j++]=$g(_2A,_2B)-48}var _2E=$a();$k[$j++]=Infinity;for(var _2G=0,_2H=~~(($_.sbs.length+1)/2);_2G<_2H;_2G++){$k[$j++]=$_.height}var _2J=$a();$k[$j++]=Infinity;for(var _2L=0,_2M=~~(($_.sbs.length+1)/2);_2L<_2M;_2L++){$k[$j++]=0}var _2N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2E;$k[$j++]="bhs";$k[$j++]=_2J;$k[$j++]="bbs";$k[$j++]=_2N;if($_.includetext){$k[$j++]="txt";$k[$j++]=$G($_.txt,0,$_.txtlen)}$k[$j++]="opt";$k[$j++]=$_.options;var _2T=$d();$k[$j++]=_2T;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_plessey(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.unidirectional=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_plessey);if(!bwipp_plessey.__12544__){$_=Object.create($_);$_.barchars="0123456789ABCDEF";$_.charvals=new Map;for(var _2=0;_2<=15;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}$_.encs=$a(["14141414","32141414","14321414","32321414","14143214","32143214","14323214","32323214","14141432","32141432","14321432","32321432","14143232","32143232","14323232","32323232","32321432","541412323","323"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_plessey.$ctx[id]=$_[id]);bwipp_plessey.__12544__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.plesseyBadCharacter#12549";$k[$j++]="Plessey must contain only digits and letters A B C D E F";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-2)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checkbits=$a($f($_.barlen*4+8));$P($_.checkbits,$_.barlen*4,$a([0,0,0,0,0,0,0,0]));for(var _R=0,_Q=$f($_.barlen-1);_R<=_Q;_R+=1){$_.i=_R;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.checkbits,$_.i*4,$a([$_.indx&1,$_.indx>>>1&1,$_.indx>>>2&1,$_.indx>>>3]))}$_.checksalt=$a([1,1,1,1,0,1,0,0,1]);for(var _h=0,_g=$f($_.barlen*4-1);_h<=_g;_h+=1){$_.i=_h;if($g($_.checkbits,$_.i)==1){for(var _l=0;_l<=8;_l+=1){$_.j=_l;$p($_.checkbits,$_.i+$_.j,$xo($g($_.checkbits,$_.i+$_.j),$g($_.checksalt,$_.j)))}}}$_.checkval=0;for(var _w=0;_w<=7;_w+=1){$_.i=_w;$_.checkval=$f($_.checkval+~~Math.pow(2,$_.i)*$g($_.checkbits,$f($_.barlen*4+$_.i)))}$_.checksum1=$_.checkval&15;$_.checksum2=$_.checkval>>>4;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum1)||$g($_.barcode,$f($_.barlen+1))!=$g($_.barchars,$_.checksum2)){$k[$j++]="bwipp.plesseyBadCheckDigits#12588";$k[$j++]="Incorrect Plessey check digits provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _1N=$_.unidirectional?27:33;$_.sbs=$s($f($_.barlen*8+_1N));$_.txt=$a($f($_.barlen+2));$P($_.sbs,0,$g($_.encs,16));for(var _1W=0,_1V=$f($_.barlen-1);_1W<=_1V;_1W+=1){$_.i=_1W;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.sbs,$_.i*8+8,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*20+20,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$f($_.barlen*8+8),$g($_.encs,$_.checksum1));$P($_.sbs,$f($_.barlen*8+16),$g($_.encs,$_.checksum2));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum1,1),$f($_.barlen*20+20),$_.textyoffset,$_.textfont,$_.textsize]));$p($_.txt,$f($_.barlen+1),$a([$G($_.barchars,$_.checksum2,1),$f($f($_.barlen+1)*20+20),$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*20+20),$_.textyoffset,$_.textfont,$_.textsize]));$p($_.txt,$f($_.barlen+1),$a([" ",$f($f($_.barlen+1)*20+20),$_.textyoffset,$_.textfont,$_.textsize]))}var _2e=$_.unidirectional?18:17;$P($_.sbs,$f($_.barlen*8+24),$g($_.encs,_2e));$k[$j++]=Infinity;$k[$j++]=Infinity;var _2g=$_.sbs;for(var _2h=0,_2i=_2g.length;_2h<_2i;_2h++){$k[$j++]=$g(_2g,_2h)-48}var _2k=$a();$k[$j++]=Infinity;for(var _2m=0,_2n=~~(($_.sbs.length+1)/2);_2m<_2n;_2m++){$k[$j++]=$_.height}var _2p=$a();$k[$j++]=Infinity;for(var _2r=0,_2s=~~(($_.sbs.length+1)/2);_2r<_2s;_2r++){$k[$j++]=0}var _2t=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2k;$k[$j++]="bhs";$k[$j++]=_2p;$k[$j++]="bbs";$k[$j++]=_2t;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2x=$d();$k[$j++]=_2x;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_telepen(){$_=Object.create($_);$_.numeric=false;$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_telepen);var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];if($_.numeric&&$_.barlen%2!=0){$k[$j++]="bwipp.telepenNumericOddLength#12695";$k[$j++]="Telepen Numeric must have an even length";bwipp_raiseerror()}if(!bwipp_telepen.__12734__){$_=Object.create($_);$_.encs=$a(["31313131","1131313111","33313111","1111313131","3111313111","11333131","13133131","111111313111","31333111","1131113131","33113131","1111333111","3111113131","1113133111","1311133111","111111113131","3131113111","11313331","333331","111131113111","31113331","1133113111","1313113111","1111113331","31131331","113111113111","3311113111","1111131331","311111113111","1113111331","1311111331","11111111113111","31313311","1131311131","33311131","1111313311","3111311131","11333311","13133311","111111311131","31331131","1131113311","33113311","1111331131","3111113311","1113131131","1311131131","111111113311","3131111131","1131131311","33131311","111131111131","3111131311","1133111131","1313111131","111111131311","3113111311","113111111131","3311111131","111113111311","311111111131","111311111311","131111111311","11111111111131","3131311111","11313133","333133","111131311111","31113133","1133311111","1313311111","1111113133","313333","113111311111","3311311111","11113333","311111311111","11131333","13111333","11111111311111","31311133","1131331111","33331111","1111311133","3111331111","11331133","13131133","111111331111","3113131111","1131111133","33111133","111113131111","3111111133","111311131111","131111131111","111111111133","31311313","113131111111","3331111111","1111311313","311131111111","11331313","13131313","11111131111111","3133111111","1131111313","33111313","111133111111","3111111313","111313111111","131113111111","111111111313","313111111111","1131131113","33131113","11113111111111","3111131113","113311111111","131311111111","111111131113","3113111113","11311111111111","331111111111","111113111113","31111111111111","111311111113","131111111113","1111111111111111"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_telepen.$ctx[id]=$_[id]);bwipp_telepen.__12734__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s($_.barlen*16+48);$_.txt=$a($_.barlen);$_.enc=$g($_.encs,95);$P($_.sbs,0,$_.enc);$_.l=$_.enc.length;$_.checksum=0;$_.i=0;$_.j=0;for(;;){if($_.i==$_.barlen){break}if($_.numeric){if($g($_.barcode,$_.i)>16){$_.np=$G($_.barcode,$_.i,2);var _X=$g($_.np,0);var _Z=$g($_.np,1);if(_X<48||_X>57||(_Z<48||_Z>57)&&!(_Z==88)){$k[$j++]=-1}else{var _e=$f($g($_.np,1)-48);$k[$j++]=$f($g($_.np,0)-48);$k[$j++]=_e;if(_e!=40){var _f=$k[--$j];var _g=$k[--$j];$k[$j++]=$f($f(_f+_g*10)+10)}else{$j--}var _h=$k[--$j];$k[$j++]=$f(_h+17)}var _i=$k[--$j];$k[$j++]=_i;if(_i==-1){$k[$j++]="bwipp.telepenInvalidNumericCharacter#12761";$k[$j++]="Telepen Numeric may contain only digits, or X in even positions";bwipp_raiseerror()}$_.indx=$k[--$j];$p($_.txt,$_.j,$a([$_.np,$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]));$_.i=$_.i+2}else{$_.indx=$g($_.barcode,$_.i);$p($_.txt,$_.j,$a([" ",$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]));$_.i=$_.i+1}}else{$_.indx=$g($_.barcode,$_.i);if($_.indx>127){$k[$j++]="bwipp.telepenInvalidAlphaCharacter#12774";$k[$j++]="Telepen Alpha characters must have ordinal values 0 to 127";bwipp_raiseerror()}if($_.indx>=32&&$_.indx<=126){$p($_.txt,$_.j,$a([$G($_.barcode,$_.i,1),$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.j,$a([" ",$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]))}$_.i=$_.i+1}$_.checksum=$f($_.checksum+$_.indx);$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.l,$_.enc);$_.l=$_.l+$_.enc.length;$_.j=$_.j+1}$_.checksum=$f(127-$_.checksum%127)%127;$_.enc=$g($_.encs,$_.checksum);$P($_.sbs,$_.l,$_.enc);$_.l=$_.l+$_.enc.length;$_.enc=$g($_.encs,122);$P($_.sbs,$_.l,$_.enc);$_.l=$_.l+$_.enc.length;$_.sbs=$G($_.sbs,0,$_.l);$_.txt=$G($_.txt,0,$_.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _1z=$_.sbs;for(var _20=0,_21=_1z.length;_20<_21;_20++){$k[$j++]=$f($g(_1z,_20)-48)}var _23=$a();$k[$j++]=Infinity;for(var _25=0,_26=~~(($_.sbs.length+1)/2);_25<_26;_25++){$k[$j++]=$_.height}var _28=$a();$k[$j++]=Infinity;for(var _2A=0,_2B=~~(($_.sbs.length+1)/2);_2A<_2B;_2A++){$k[$j++]=0}var _2C=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_23;$k[$j++]="bhs";$k[$j++]=_28;$k[$j++]="bbs";$k[$j++]=_2C;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2G=$d();$k[$j++]=_2G;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_telepennumeric(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"numeric",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_telepen();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_posicode(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$_.encoding="auto";$_.version="a";$_.checkoffset=0;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_posicode);if(!bwipp_posicode.__12963__){$_=Object.create($_);$_.la0=-1;$_.la1=-2;$_.la2=-3;$_.sf0=-4;$_.sf1=-5;$_.sf2=-6;$_.fn1=-7;$_.fn2=-8;$_.fn3=-9;$_.fn4=-10;$_.charmapsnormal=$a([$a(["0","^","'"]),$a(["1",";",27]),$a(["2","<",28]),$a(["3","=",29]),$a(["4",">",30]),$a(["5","?",31]),$a(["6","@","!"]),$a(["7","[",'"']),$a(["8",92,"#"]),$a(["9","]","&"]),$a(["A","a",1]),$a(["B","b",2]),$a(["C","c",3]),$a(["D","d",4]),$a(["E","e",5]),$a(["F","f",6]),$a(["G","g",7]),$a(["H","h",8]),$a(["I","i",9]),$a(["J","j",10]),$a(["K","k",11]),$a(["L","l",12]),$a(["M","m",13]),$a(["N","n",14]),$a(["O","o",15]),$a(["P","p",16]),$a(["Q","q",17]),$a(["R","r",18]),$a(["S","s",19]),$a(["T","t",20]),$a(["U","u",21]),$a(["V","v",22]),$a(["W","w",23]),$a(["X","x",24]),$a(["Y","y",25]),$a(["Z","z",26]),$a(["-","_",40]),$a([".","`",41]),$a([" ",127,0]),$a(["$","{","*"]),$a(["/","|",","]),$a(["+","}",":"]),$a(["%","~",$_.fn1]),$a([$_.la1,$_.la0,$_.fn2]),$a([$_.sf1,$_.sf0,$_.fn3]),$a([$_.sf2,$_.sf2,$_.fn4])]);var _12=$a(["5",-98,-98]);$_.chapmapslimited=$a([$a(["0",-98,-98]),$a(["1",-98,-98]),$a(["2",-98,-98]),$a(["3",-98,-98]),$a(["4",-98,-98]),_12,$a(["6",-98,-98]),$a(["7",-98,-98]),$a(["8",-98,-98]),$a(["9",-98,-98]),$a(["A",-98,-98]),$a(["B",-98,-98]),$a(["C",-98,-98]),$a(["D",-98,-98]),$a(["E",-98,-98]),$a(["F",-98,-98]),$a(["G",-98,-98]),$a(["H",-98,-98]),$a(["I",-98,-98]),$a(["J",-98,-98]),$a(["K",-98,-98]),$a(["L",-98,-98]),$a(["M",-98,-98]),$a(["N",-98,-98]),$a(["O",-98,-98]),$a(["P",-98,-98]),$a(["Q",-98,-98]),$a(["R",-98,-98]),$a(["S",-98,-98]),$a(["T",-98,-98]),$a(["U",-98,-98]),$a(["V",-98,-98]),$a(["W",-98,-98]),$a(["X",-98,-98]),$a(["Y",-98,-98]),$a(["Z",-98,-98]),$a(["-",-98,-98]),$a([".",-98,-98])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_posicode.$ctx[id]=$_[id]);bwipp_posicode.__12963__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="charmaps";if($eq($_.version,"a")||$eq($_.version,"b")){$k[$j++]=$_.charmapsnormal}else{$k[$j++]=$_.chapmapslimited}var _1f=$k[--$j];$_[$k[--$j]]=_1f;var _1h=$_.charmaps;var _1i=$_.charmaps;var _1j=$_.charmaps;$_.charvals=$a([new Map,new Map,new Map]);for(var _1n=0,_1m=$_.charmaps.length-1;_1n<=_1m;_1n+=1){$_.i=_1n;$_.encs=$g($_.charmaps,$_.i);for(var _1r=0;_1r<=2;_1r+=1){$_.j=_1r;var _1u=$g($_.encs,$_.j);$k[$j++]=_1u;if($eq($t(_1u),"stringtype")){var _1x=$g($k[--$j],0);$k[$j++]=_1x}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.set0=$g($_.charvals,0);$_.set1=$g($_.charvals,1);$_.set2=$g($_.charvals,2);if($_.raw){$_.encoding="raw"}if($eq($_.encoding,"raw")){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.cws=$G($_.cws,0,$_.j);$_.text=""}if($eq($_.encoding,"auto")){var _2W=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC2",$_.fn2],["FNC3",$_.fn3]]);$_.fncvals=_2W;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _2Z=$k[--$j];$_[$k[--$j]]=_2Z;$_.msglen=$_.msg.length;$_.text=$s($_.msglen);for(var _2g=0,_2f=$_.msglen-1;_2g<=_2f;_2g+=1){$_.i=_2g;var _2l=$g($_.msg,$_.i);$k[$j++]=$_.text;$k[$j++]=$_.i;$k[$j++]=_2l;if(_2l<0){$j--;$k[$j++]=32}var _2m=$k[--$j];var _2n=$k[--$j];$p($k[--$j],_2n,_2m)}$k[$j++]=Infinity;for(var _2q=0,_2r=$_.msglen;_2q<_2r;_2q++){$k[$j++]=0}$k[$j++]=0;$_.numSA=$a();$k[$j++]=Infinity;for(var _2u=0,_2v=$_.msglen;_2u<_2v;_2u++){$k[$j++]=0}$k[$j++]=0;$_.numEA=$a();for(var _2y=$_.msglen-1;_2y>=0;_2y-=1){$_.i=_2y;if($g($_.msg,$_.i)>=0){if($g($_.msg,$_.i)>=128){$p($_.numEA,$_.i,$f($g($_.numEA,$_.i+1)+1))}else{$p($_.numSA,$_.i,$f($g($_.numSA,$_.i+1)+1))}}}$_.ea=false;$_.msgtmp=$a([]);for(var _3I=0,_3H=$_.msglen-1;_3I<=_3H;_3I+=1){$_.i=_3I;$_.c=$g($_.msg,$_.i);if(!$xo($_.ea,$_.c<128)&&$_.c>=0){if($_.ea){$k[$j++]=$_.numSA}else{$k[$j++]=$_.numEA}var _3U=$g($k[--$j],$_.i);var _3X=$f(_3U+$_.i)==$_.msglen?3:5;if(_3U<_3X){$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$_.msgtmp=$a()}else{$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$k[$j++]=$_.fn4;$_.msgtmp=$a();$_.ea=!$_.ea}}$k[$j++]=Infinity;$q($_.msgtmp);if($_.c>=0){$k[$j++]=$_.c&127}else{$k[$j++]=$_.c}$_.msgtmp=$a()}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;$_.enc=function(){var _3n=$k[--$j];$p($_.cws,$_.j,$g(_3n,$k[--$j]));$_.j=$_.j+1};$_.cws=$a($_.msglen*2);$_.i=0;$_.j=0;$_.cset="set0";for(;;){if($_.i==$_.msglen){break}for(;;){$_.char1=$g($_.msg,$_.i);$k[$j++]="char2";if($_.i+1<$_.msglen){$k[$j++]=$g($_.msg,$_.i+1)}else{$k[$j++]=-99}var _45=$k[--$j];$_[$k[--$j]]=_45;var _4A=$g($_[$_.cset],$_.char1)!==undefined;if(_4A){$k[$j++]=$_.char1;$k[$j++]=$_[$_.cset];$_.enc();$_.i=$_.i+1;break}var _4H=$g($_.set2,$_.char1)!==undefined;if(_4H){$k[$j++]=$_.sf2;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.set2;$_.enc();$_.i=$_.i+1;break}var _4R=$g($_[$_.cset],$_.char2)!==undefined;if(!_4R){if($eq($_.cset,"set0")){$k[$j++]=$_.la1;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="set1"}else{$k[$j++]=$_.la0;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="set0"}break}else{if($eq($_.cset,"set0")){$k[$j++]=$_.sf1;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.set1;$_.enc()}else{$k[$j++]=$_.sf0;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.set0;$_.enc()}$_.i=$_.i+1;break}break}}$_.cws=$G($_.cws,0,$_.j)}if(!bwipp_posicode.__13163__){$_=Object.create($_);var _4s=new Map([["a",$a(["141112","131212","121312","111412","131113","121213","111313","121114","111214","111115","181111","171211","161311","151411","141511","131611","121711","111811","171112","161212","151312","141412","131512","121612","111712","161113","151213","141313","131413","121513","111613","151114","141214","131314","121414","111514","141115","131215","121315","111415","131116","121216","111316","121117","111217","111118","1<111112","111111111;1"])],["b",$a(["151213","141313","131413","121513","141214","131314","121414","131215","121315","121216","191212","181312","171412","161512","151612","141712","131812","121912","181213","171313","161413","151513","141613","131713","121813","171214","161314","151414","141514","131614","121714","161215","151315","141415","131515","121615","151216","141316","131416","121516","141217","131317","121417","131218","121318","121219","1<121312","121212121<1"])],["limiteda",$a(["111411","111312","111213","111114","121311","121212","121113","141111","131211","131112","171111","161211","151311","141411","131511","121611","111711","161112","151212","141312","131412","121512","111612","151113","141213","131313","121413","111513","141114","131214","121314","111414","131115","121215","111315","121116","111216","111117","151111","1"])],["limitedb",$a(["121512","121413","121314","121215","131412","131313","131214","151212","141312","141213","181212","171312","161412","151512","141612","131712","121812","171213","161313","151413","141513","131613","121713","161214","151314","141414","131514","121614","151215","141315","131415","121515","141216","131316","121416","131217","121317","121218","141212","1"])]]);$_.encmaps=_4s;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_posicode.$ctx[id]=$_[id]);bwipp_posicode.__13163__=1;$_=Object.getPrototypeOf($_)}$_.encs=$g($_.encmaps,$_.version);if(!bwipp_posicode.__13174__){$_=Object.create($_);$_.c2w=$a([$a([495,330,210,126,70,35,15,5]),$a([165,120,84,56,35,20,10,4]),$a([45,36,28,21,15,10,6,3]),$a([9,8,7,6,5,4,3,2]),$a([1,1,1,1,1,1,1,1])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_posicode.$ctx[id]=$_[id]);bwipp_posicode.__13174__=1;$_=Object.getPrototypeOf($_)}$_.v=0;var _54=$_.cws;for(var _55=0,_56=_54.length;_55<_56;_55++){$_.cw=$g(_54,_55);for(var _58=0,_59=6;_58<_59;_58++){if((($_.cw^$_.v)&1)!=0){$_.v=$_.v^7682}$_.v=$_.v>>>1;$_.cw=$_.cw>>>1}}$_.v=$_.v+$_.checkoffset;if($eq($_.version,"limiteda")||$eq($_.version,"limitedb")){$_.v=$_.v&1023;if($_.v>824&&$_.v<853){$_.v=$_.v+292}}else{$_.v=($_.v&1023)+45}$_.d=$a([2,2,2,2,2,2]);$_.r=0;$_.c=0;$_.w=0;$_.sum=0;for(;;){if($_.sum==$_.v){break}$_.t=$f($_.sum+$g($g($_.c2w,$_.r),$_.c));if($_.t==$_.v){$_.w=$_.w+1;$p($_.d,$_.r,$_.w+2);$_.sum=$_.t}if($_.t>$_.v){$p($_.d,$_.r,$_.w+2);$_.r=$_.r+1;$_.w=0}if($_.t<$_.v){$_.c=$_.c+1;$_.w=$_.w+1;$_.sum=$_.t}}$k[$j++]=20;for(var _5p=0;_5p<=4;_5p+=1){var _5s=$k[--$j];$k[$j++]=$f(_5s-$g($_.d,_5p))}$p($_.d,5,$k[--$j]);if($eq($_.version,"b")||$eq($_.version,"limitedb")){$k[$j++]=Infinity;var _5x=$_.d;for(var _5y=0,_5z=_5x.length;_5y<_5z;_5y++){$k[$j++]=$f($g(_5x,_5y)+1)}$_.d=$a()}$_.cbs=$Z($s(12),"111111111111");for(var _64=5;_64>=0;_64-=1){$_.i=_64;$p($_.cbs,(5-$_.i)*2+1,$f($g($_.d,$_.i)+47))}$_.sbs=$s($_.cws.length*6+31);var _6E=$g($_.encs,$_.encs.length-2);$P($_.sbs,0,_6E);$_.j=_6E.length;for(var _6I=0,_6H=$_.cws.length-1;_6I<=_6H;_6I+=1){$_.i=_6I;$P($_.sbs,$_.j,$g($_.encs,$g($_.cws,$_.i)));$_.j=$_.j+6}$P($_.sbs,$_.j,$_.cbs);$_.j=$_.j+12;var _6X=$g($_.encs,$_.encs.length-1);$P($_.sbs,$_.j,_6X);$_.j=_6X.length+$_.j;$_.sbs=$G($_.sbs,0,$_.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _6e=$_.sbs;for(var _6f=0,_6g=_6e.length;_6f<_6g;_6f++){$k[$j++]=$f($g(_6e,_6f)-48)}var _6i=$a();$k[$j++]=Infinity;for(var _6k=0,_6l=~~(($_.sbs.length+1)/2);_6k<_6l;_6k++){$k[$j++]=$_.height}var _6n=$a();$k[$j++]=Infinity;for(var _6p=0,_6q=~~(($_.sbs.length+1)/2);_6p<_6q;_6p++){$k[$j++]=0}var _6r=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_6i;$k[$j++]="bhs";$k[$j++]=_6n;$k[$j++]="bbs";$k[$j++]=_6r;$k[$j++]="txt";$k[$j++]=$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _70=$d();$k[$j++]=_70;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_codablockf(){$_=Object.create($_);$_.dontdraw=false;$_.rows=-1;$_.columns=8;$_.rowheight=10;$_.sepheight=1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.columns<4||$_.columns>62){$k[$j++]="bwipp.codablockfBadColumns#13307";$k[$j++]="Codablock F must have 4 to 62 columns";bwipp_raiseerror()}if($_.rows!=-1&&($_.rows<2||$_.rows>44)){$k[$j++]="bwipp.codablockfBadRows#13311";$k[$j++]="Codablock F must have 2 to 44 rows";bwipp_raiseerror()}if($_.rowheight<8){$k[$j++]="bwipp.codablockfBadRowHeight#13315";$k[$j++]="Codablock F must have rowheight of at least 8";bwipp_raiseerror()}if($_.sepheight<1){$k[$j++]="bwipp.codablockfBadSepHeight#13319";$k[$j++]="Codablock F must have sepheight of at least 1";bwipp_raiseerror()}bwipp_loadctx(bwipp_codablockf);$k[$j++]="c";if($_.columns>=4&&$_.columns<=62){$k[$j++]=$_.columns}else{$k[$j++]=8}var _C=$k[--$j];$_[$k[--$j]]=_C;$k[$j++]="rows";if($_.rows>=2&&$_.rows<=44){$k[$j++]=$_.rows}else{$k[$j++]=-1}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.swa=-1;$_.swb=-2;$_.swc=-3;$_.sft=-4;$_.fn1=-5;$_.fn2=-6;$_.fn3=-7;$_.fn4=-8;$_.sta=-9;$_.stp=-10;var _N=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC3",$_.fn3]]);$_.fncvals=_N;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.msglen=$_.msg.length;$_.msgtmp=$a([]);var _U=$_.msg;for(var _V=0,_W=_U.length;_V<_W;_V++){$_.char=$g(_U,_V);$k[$j++]=Infinity;$q($_.msgtmp);if($_.char<128){$k[$j++]=$_.char}else{$k[$j++]=$_.fn4;$k[$j++]=$_.char&127}$_.msgtmp=$a()}$_.kmsg=$_.msg;$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;if(!bwipp_codablockf.__13409__){$_=Object.create($_);$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.fn3,$_.fn3,"96"]),$a([$_.fn2,$_.fn2,"97"]),$a([$_.sft,$_.sft,"98"]),$a([$_.swc,$_.swc,"99"]),$a([$_.swb,$_.fn4,$_.swb]),$a([$_.fn4,$_.swa,$_.swa]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.sta,$_.sta,$_.sta]),$a([$_.stp,$_.stp,$_.stp])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _2p=0,_2o=$_.charmaps.length-1;_2p<=_2o;_2p+=1){$_.i=_2p;$_.encs=$g($_.charmaps,$_.i);for(var _2t=0;_2t<=2;_2t+=1){$_.j=_2t;var _2w=$g($_.encs,$_.j);$k[$j++]=_2w;if($eq($t(_2w),"stringtype")){var _2z=$g($k[--$j],0);$k[$j++]=_2z}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codablockf.$ctx[id]=$_[id]);bwipp_codablockf.__13409__=1;$_=Object.getPrototypeOf($_)}$_.numsscr=function(){$_.n=0;$_.s=0;$_.p=$k[--$j];for(;;){if($_.p>=$_.msglen){break}var _3H=$g($_.msg,$_.p);var _3J=$g($_.setc,_3H)!==undefined;$k[$j++]=_3H;if(!_3J){$j--;break}if($k[--$j]==$_.fn1){if($_.s%2==0){$_.s=$_.s+1}else{break}}$_.n=$_.n+1;$_.s=$_.s+1;$_.p=$f($_.p+1)}$k[$j++]=$_.n;$k[$j++]=$_.s};$_.enca=function(){$p($_.cws,$_.j,$g($_.seta,$k[--$j]));$_.j=$_.j+1};$_.encb=function(){$p($_.cws,$_.j,$g($_.setb,$k[--$j]));$_.j=$_.j+1};$_.encc=function(){var _3f=$k[--$j];$k[$j++]=_3f;if($ne($t(_3f),"arraytype")){var _3j=$g($_.setc,$k[--$j]);$k[$j++]=_3j}else{$q($k[--$j]);var _3l=$k[--$j];var _3m=$k[--$j];$k[$j++]=$f($f(_3l-48)+$f(_3m-48)*10)}$p($_.cws,$_.j,$k[--$j]);$_.j=$_.j+1};$_.anotb=function(){var _3r=$k[--$j];var _3t=$g($_.seta,_3r)!==undefined;var _3v=$g($_.setb,_3r)!==undefined;$k[$j++]=_3t&&!_3v};$_.bnota=function(){var _3w=$k[--$j];var _3y=$g($_.setb,_3w)!==undefined;var _40=$g($_.seta,_3w)!==undefined;$k[$j++]=_3y&&!_40};$k[$j++]=Infinity;for(var _42=0,_43=$_.msg.length;_42<_43;_42++){$k[$j++]=0}$k[$j++]=9999;$_.nextanotb=$a();$k[$j++]=Infinity;for(var _46=0,_47=$_.msg.length;_46<_47;_46++){$k[$j++]=0}$k[$j++]=9999;$_.nextbnota=$a();for(var _4A=$_.msg.length-1;_4A>=0;_4A-=1){$_.i=_4A;$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$p($_.nextanotb,$_.i,0)}else{$p($_.nextanotb,$_.i,$f($g($_.nextanotb,$_.i+1)+1))}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$p($_.nextbnota,$_.i,0)}else{$p($_.nextbnota,$_.i,$f($g($_.nextbnota,$_.i+1)+1))}}$_.abeforeb=function(){var _4X=$k[--$j];$k[$j++]=$lt($g($_.nextanotb,_4X),$g($_.nextbnota,_4X))};$_.bbeforea=function(){var _4c=$k[--$j];$k[$j++]=$lt($g($_.nextbnota,_4c),$g($_.nextanotb,_4c))};$_.padrow=function(){for(var _4i=0,_4j=$k[--$j];_4i<_4j;_4i++){for(;;){if($eq($_.cset,"seta")){$k[$j++]=$_.swc;$_.enca();$_.cset="setc";break}if($eq($_.cset,"setb")){$k[$j++]=$_.swc;$_.encb();$_.cset="setc";break}if($eq($_.cset,"setc")){$k[$j++]=$_.swb;$_.encc();$_.cset="setb";break}}}};$_.encafitsrow=function(){if($_.rem<=2&&$g($_.msg,$_.i)==$_.fn4){var _4z=$_.rem==2&&$g($_.msg,$_.i+1)<=95;$k[$j++]=_4z;if(_4z){$k[$j++]=$_.fn4;$_.enca();$k[$j++]=$g($_.msg,$_.i+1);$_.enca();$_.i=$_.i+2}}else{$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;$k[$j++]=true}};$_.encbfitsrow=function(){if($_.rem<=2&&$g($_.msg,$_.i)==$_.fn4){var _5I=$_.rem==2&&$g($_.msg,$_.i+1)>=32;$k[$j++]=_5I;if(_5I){$k[$j++]=$_.fn4;$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2}}else{$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;$k[$j++]=true}};$_.cws=$a($f($_.c+5)*44);$_.i=0;$_.j=0;$_.r=1;$_.lastrow=false;for(;;){if($_.lastrow){break}if($_.r>44){$k[$j++]="bwipp.codablockfTooBig#13525";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$k[$j++]=$_.sta;$_.enca();if($_.i<$_.msglen){$k[$j++]=$_.i;$_.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if($_.msglen==0){$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}if($_.nums>=2){$k[$j++]=$_.swc;$_.enca();$_.cset="setc";break}$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sft;$_.enca();$_.cset="seta";break}$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}$_.j=$_.j+1;$_.endofrow=false;for(;;){$_.rem=$f($f($_.c+3)-$_.j%$f($_.c+5));if($_.i==$_.msglen||$_.endofrow){break}$k[$j++]=$_.i;$_.numsscr();$_.nums=$k[--$j];$_.nchars=$k[--$j];$k[$j++]="remnums";if($_.nums>$_.rem*2){$k[$j++]=$_.rem*2}else{$k[$j++]=$_.nums}var _5y=$k[--$j];$_[$k[--$j]]=_5y;for(;;){if(($eq($_.cset,"seta")||$eq($_.cset,"setb"))&&$_.remnums>=4&&$g($_.msg,$_.i)!=$_.fn1){if($_.remnums%2==0&&$_.rem>=3){$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";for(var _6B=0,_6C=2;_6B<_6C;_6B++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}if($_.remnums%2!=0&&$_.rem>=4){$k[$j++]=$g($_.msg,$_.i);if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.i=$_.i+1;$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";for(var _6W=0,_6X=2;_6W<_6X;_6W++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}$k[$j++]=$eq($_.cset,"setb");$k[$j++]=$g($_.msg,$_.i);$_.anotb();var _6m=$k[--$j];var _6n=$k[--$j];if(_6n&&_6m&&$_.rem>=2){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.bbeforea();if($k[--$j]){$k[$j++]=$_.sft;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}}$k[$j++]=$_.swa;$_.encb();$_.cset="seta";$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}$k[$j++]=$eq($_.cset,"seta");$k[$j++]=$g($_.msg,$_.i);$_.bnota();var _77=$k[--$j];var _78=$k[--$j];if(_78&&_77&&$_.rem>=2){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sft;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}$k[$j++]=$_.swb;$_.enca();$_.cset="setb";$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}if($eq($_.cset,"setc")&&$_.remnums<2&&$_.rem>=2){$_.rem=$f($_.rem-1);$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.swa;$_.encc();$_.cset="seta";$_.encafitsrow();if($k[--$j]){break}}else{$k[$j++]=$_.swb;$_.encc();$_.cset="setb";$_.encbfitsrow();if($k[--$j]){break}}}var _7d=$g($_.seta,$g($_.msg,$_.i))!==undefined;if($eq($_.cset,"seta")&&_7d&&$_.rem>=1){$_.encafitsrow();if($k[--$j]){break}}var _7l=$g($_.setb,$g($_.msg,$_.i))!==undefined;if($eq($_.cset,"setb")&&_7l&&$_.rem>=1){$_.encbfitsrow();if($k[--$j]){break}}if($eq($_.cset,"setc")&&$_.remnums>=2&&$_.rem>=1){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}break}$_.endofrow=true;break}}if(($_.r>=$_.rows||$_.rows==-1)&&$_.r>1&&$_.i==$_.msglen&&$_.rem>=2){$k[$j++]=$f($_.rem-2);$_.padrow();$_.j=$_.j+3;$k[$j++]=$_.stp;$_.enca();$_.lastrow=true}else{$k[$j++]=$_.rem;$_.padrow();$_.j=$_.j+1;$k[$j++]=$_.stp;$_.enca();$_.r=$_.r+1}}$_.cws=$G($_.cws,0,$_.j);if(!bwipp_codablockf.__13698__){$_=Object.create($_);$k[$j++]=Infinity;for(var _8I=64;_8I<=95;_8I+=1){$k[$j++]=_8I}for(var _8J=0;_8J<=15;_8J+=1){$k[$j++]=_8J}for(var _8K=26;_8K<=63;_8K+=1){$k[$j++]=_8K}$_.abmap=$a();$k[$j++]=Infinity;for(var _8M=0;_8M<=85;_8M+=1){$k[$j++]=_8M}$_.cmap=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codablockf.$ctx[id]=$_[id]);bwipp_codablockf.__13698__=1;$_=Object.getPrototypeOf($_)}$_.chkmsg=$a($_.kmsg.length);$_.j=0;for(var _8T=0,_8S=$_.kmsg.length-1;_8T<=_8S;_8T+=1){$_.i=_8T;$_.char=$g($_.kmsg,$_.i);if($_.char>=0){$p($_.chkmsg,$_.j,$_.char);$_.j=$_.j+1}if($_.char==$_.fn1&&$_.i!=0){$p($_.chkmsg,$_.j,29);$_.j=$_.j+1}}$_.t1=0;$_.t2=0;$_.k1=0;$_.k2=0;for(var _8k=0,_8j=$_.j-1;_8k<=_8j;_8k+=1){$_.i=_8k;$_.t1=$g($_.chkmsg,$_.i)*$_.i%86;$_.t2=$f($_.t1+$g($_.chkmsg,$_.i))%86;$_.k1=$f($_.k1+$_.t2)%86;$_.k2=$f($_.k2+$_.t1)%86}$k[$j++]=$_.cws;$k[$j++]=$_.cws.length-4;if($ne($_.cset,"setc")){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _94=$g($k[--$j],$_.k1);var _95=$k[--$j];$p($k[--$j],_95,_94);$k[$j++]=$_.cws;$k[$j++]=$_.cws.length-3;if($ne($_.cset,"setc")){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _9E=$g($k[--$j],$_.k2);var _9F=$k[--$j];$p($k[--$j],_9F,_9E);var _9H=$_.cws;$k[$j++]=_9H;$k[$j++]=2;if($g(_9H,2-1)!=99){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _9N=$g($k[--$j],$_.r-2);var _9O=$k[--$j];$p($k[--$j],_9O,_9N);for(var _9S=1,_9R=$_.r-1;_9S<=_9R;_9S+=1){$_.i=_9S;var _9T=$_.cws;var _9U=$_.i;var _9V=$_.c;$k[$j++]=_9T;$k[$j++]=$f(_9U*$f(_9V+5)+2);if($g(_9T,$f($f(_9U*$f(_9V+5)+2)-1))!=99){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _9b=$g($k[--$j],$_.i+42);var _9c=$k[--$j];$p($k[--$j],_9c,_9b)}for(var _9g=0,_9f=$_.r-1;_9g<=_9f;_9g+=1){$_.rcws=$G($_.cws,_9g*$f($_.c+5),$f($_.c+4));$_.csum=$g($_.rcws,0);for(var _9p=1,_9o=$_.rcws.length-2;_9p<=_9o;_9p+=1){$_.i=_9p;$_.csum=$f($_.csum+$g($_.rcws,$_.i)*$_.i)}$p($_.rcws,$_.rcws.length-1,$_.csum%103)}var _9z=$g($_.options,"debugcws")!==undefined;if(_9z){$k[$j++]="bwipp.debugcws#13738";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_codablockf.__13759__){$_=Object.create($_);$_.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","2331112"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codablockf.$ctx[id]=$_[id]);bwipp_codablockf.__13759__=1;$_=Object.getPrototypeOf($_)}$_.rowbits=$a($_.r);for(var _A7=0,_A6=$_.r-1;_A7<=_A6;_A7+=1){$_.i=_A7;$k[$j++]=Infinity;var _AC=$G($_.cws,$_.i*$f($_.c+5),$f($_.c+5));for(var _AD=0,_AE=_AC.length;_AD<_AE;_AD++){$F($g($_.encs,$g(_AC,_AD)),function(){var _AI=$k[--$j];$k[$j++]=$f(_AI-48)})}$_.sbs=$a();$k[$j++]=Infinity;var _AK=$_.sbs;$k[$j++]=0;for(var _AL=0,_AM=_AK.length;_AL<_AM;_AL++){var _AO=$k[--$j];var _AP=_AO==1?0:1;$k[$j++]=_AO;for(var _AQ=0,_AR=$g(_AK,_AL);_AQ<_AR;_AQ++){$k[$j++]=_AP}}$as($a($m()-1));var _AU=$k[--$j];var _AV=$k[--$j];$k[$j++]=_AU;$k[$j++]=_AV;$j--;var _AW=$k[--$j];var _AX=$k[--$j];$k[$j++]=_AW;$k[$j++]=_AX;$j--;$p($_.rowbits,$_.i,$k[--$j])}$_.symwid=$f($_.c*11+57);$k[$j++]=Infinity;for(var _Ae=0,_Af=$_.symwid*$_.sepheight;_Ae<_Af;_Ae++){$k[$j++]=1}for(var _Ai=0,_Ah=$_.r-2;_Ai<=_Ah;_Ai+=1){$_.i=_Ai;for(var _Ak=0,_Al=$_.rowheight;_Ak<_Al;_Ak++){$q($g($_.rowbits,$_.i))}for(var _Aq=0,_Ar=$_.sepheight;_Aq<_Ar;_Aq++){$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;for(var _At=0,_Au=$f($_.symwid-24);_At<_Au;_At++){$k[$j++]=1}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1}}for(var _Aw=0,_Ax=$_.rowheight;_Aw<_Ax;_Aw++){$q($g($_.rowbits,$_.r-1))}for(var _B3=0,_B4=$_.symwid*$_.sepheight;_B3<_B4;_B3++){$k[$j++]=1}$_.pixs=$a();var _BE=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.symwid],["pixy",~~($_.pixs.length/$_.symwid)],["height",~~($_.pixs.length/$_.symwid)/72],["width",$_.symwid/72],["opt",$_.options]]);$k[$j++]=_BE;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code16k(){$_=Object.create($_);$_.dontdraw=false;$_.sam=-1;$_.rows=0;$_.rowheight=8;$_.sepheight=1;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.rows!=0&&($_.rows<2||$_.rows>16)){$k[$j++]="bwipp.code16kBadRows#13855";$k[$j++]="Code 16K must have 2 to 16 rows";bwipp_raiseerror()}if($_.rowheight<8){$k[$j++]="bwipp.code16kBadRowHeight#13859";$k[$j++]="Code 16K must have rowheight of at least 8";bwipp_raiseerror()}if($_.sepheight<1){$k[$j++]="bwipp.code16kBadSepHeight#13863";$k[$j++]="Code 16K must have sepheight of at least 1";bwipp_raiseerror()}if($_.sam!=-1){$k[$j++]=true;for(var _8=0,_9=1;_8<_9;_8++){var _A=$_.sam;if(_A<12||_A>99){$j--;$k[$j++]=false;break}if($_.sam%10<2){$j--;$k[$j++]=false;break}if(~~($_.sam/10)>$_.sam%10){$j--;$k[$j++]=false;break}}if($nt($k[--$j])){$k[$j++]="bwipp.code16kBadSAM#13874";$k[$j++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols';bwipp_raiseerror()}}bwipp_loadctx(bwipp_code16k);if($_.sam!=-1){$_.rows=16}if(!bwipp_code16k.__13945__){$_=Object.create($_);$_.swa=-1;$_.swb=-2;$_.swc=-3;$_.sa1=-4;$_.sb1=-5;$_.sc1=-6;$_.sa2=-7;$_.sb2=-8;$_.sc2=-9;$_.pad=-10;$_.sb3=-11;$_.sc3=-12;$_.fn1=-13;$_.fn2=-14;$_.fn3=-15;$_.fn4=-16;$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.fn3,$_.fn3,"96"]),$a([$_.fn2,$_.fn2,"97"]),$a([$_.sb1,$_.sa1,"98"]),$a([$_.swc,$_.swc,"99"]),$a([$_.swb,$_.fn4,$_.swb]),$a([$_.fn4,$_.swa,$_.swa]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.pad,$_.pad,$_.pad]),$a([$_.sb2,$_.sa2,$_.sb1]),$a([$_.sc2,$_.sc2,$_.sb2]),$a([$_.sc3,$_.sc3,$_.sb3])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _2W=0,_2V=$_.charmaps.length-1;_2W<=_2V;_2W+=1){$_.i=_2W;$_.encs=$g($_.charmaps,$_.i);for(var _2a=0;_2a<=2;_2a+=1){$_.j=_2a;var _2d=$g($_.encs,$_.j);$k[$j++]=_2d;if($eq($t(_2d),"stringtype")){var _2g=$g($k[--$j],0);$k[$j++]=_2g}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code16k.$ctx[id]=$_[id]);bwipp_code16k.__13945__=1;$_=Object.getPrototypeOf($_)}if($_.raw){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.barcode.length-3){break}if($g($_.barcode,$_.i)!=94){break}var _33=$G($_.barcode,$_.i+1,3);$k[$j++]=_33;$k[$j++]=false;for(var _34=0,_35=_33.length;_34<_35;_34++){var _36=$g(_33,_34);if(_36<48||_36>57){$j--;$k[$j++]=true}}if($k[--$j]){$j--;break}$_.cw=$i($k[--$j]);$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}if($_.i!=$_.barcode.length){$k[$j++]="bwipp.code16kBadRawFormat#13963";$k[$j++]="raw data must be formatted as ^NNN";bwipp_raiseerror()}$_.cws=$G($_.cws,0,$_.j)}else{var _3O=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1],["FNC2",$_.fn2],["FNC3",$_.fn3]]);$_.fncvals=_3O;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _3R=$k[--$j];$_[$k[--$j]]=_3R;$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _3V=0,_3W=$_.msglen;_3V<_3W;_3V++){$k[$j++]=0}$k[$j++]=0;$_.numSA=$a();$k[$j++]=Infinity;for(var _3Z=0,_3a=$_.msglen;_3Z<_3a;_3Z++){$k[$j++]=0}$k[$j++]=0;$_.numEA=$a();for(var _3d=$_.msglen-1;_3d>=0;_3d-=1){$_.i=_3d;if($g($_.msg,$_.i)>=0){if($g($_.msg,$_.i)>=128){$p($_.numEA,$_.i,$f($g($_.numEA,$_.i+1)+1))}else{$p($_.numSA,$_.i,$f($g($_.numSA,$_.i+1)+1))}}}$_.ea=false;$_.msgtmp=$a([]);for(var _3x=0,_3w=$_.msglen-1;_3x<=_3w;_3x+=1){$_.i=_3x;$_.c=$g($_.msg,$_.i);if(!$xo($_.ea,$_.c<128)&&$_.c>=0){if($_.ea){$k[$j++]=$_.numSA}else{$k[$j++]=$_.numEA}var _49=$g($k[--$j],$_.i);var _4C=$f(_49+$_.i)==$_.msglen?3:5;if(_49<_4C){$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$_.msgtmp=$a()}else{$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$k[$j++]=$_.fn4;$_.msgtmp=$a();$_.ea=!$_.ea}}$k[$j++]=Infinity;$q($_.msgtmp);if($_.c>=0){$k[$j++]=$_.c&127}else{$k[$j++]=$_.c}$_.msgtmp=$a()}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;$_.numsscr=function(){$_.n=0;$_.s=0;$_.p=$k[--$j];for(;;){if($_.p>=$_.msglen){break}var _4X=$g($_.msg,$_.p);var _4Z=$g($_.setc,_4X)!==undefined;$k[$j++]=_4X;if(!_4Z){$j--;break}if($k[--$j]==$_.fn1){if($_.s%2==0){$_.s=$_.s+1}else{break}}$_.n=$_.n+1;$_.s=$_.s+1;$_.p=$f($_.p+1)}$k[$j++]=$_.n;$k[$j++]=$_.s};$_.enca=function(){$p($_.cws,$_.j,$g($_.seta,$k[--$j]));$_.j=$_.j+1};$_.encb=function(){$p($_.cws,$_.j,$g($_.setb,$k[--$j]));$_.j=$_.j+1};$_.encc=function(){var _4v=$k[--$j];$k[$j++]=_4v;if($ne($t(_4v),"arraytype")){var _4z=$g($_.setc,$k[--$j]);$k[$j++]=_4z}else{$q($k[--$j]);var _51=$k[--$j];var _52=$k[--$j];$k[$j++]=$f($f(_51-48)+$f(_52-48)*10)}$p($_.cws,$_.j,$k[--$j]);$_.j=$_.j+1};$_.anotb=function(){var _57=$k[--$j];var _59=$g($_.seta,_57)!==undefined;var _5B=$g($_.setb,_57)!==undefined;$k[$j++]=_59&&!_5B};$_.bnota=function(){var _5C=$k[--$j];var _5E=$g($_.setb,_5C)!==undefined;var _5G=$g($_.seta,_5C)!==undefined;$k[$j++]=_5E&&!_5G};$k[$j++]=Infinity;for(var _5I=0,_5J=$_.msg.length;_5I<_5J;_5I++){$k[$j++]=0}$k[$j++]=9999;$_.nextanotb=$a();$k[$j++]=Infinity;for(var _5M=0,_5N=$_.msg.length;_5M<_5N;_5M++){$k[$j++]=0}$k[$j++]=9999;$_.nextbnota=$a();for(var _5Q=$_.msg.length-1;_5Q>=0;_5Q-=1){$_.i=_5Q;$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$p($_.nextanotb,$_.i,0)}else{$p($_.nextanotb,$_.i,$f($g($_.nextanotb,$_.i+1)+1))}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$p($_.nextbnota,$_.i,0)}else{$p($_.nextbnota,$_.i,$f($g($_.nextbnota,$_.i+1)+1))}}$_.abeforeb=function(){var _5n=$k[--$j];$k[$j++]=$lt($g($_.nextanotb,_5n),$g($_.nextbnota,_5n))};$_.bbeforea=function(){var _5s=$k[--$j];$k[$j++]=$lt($g($_.nextbnota,_5s),$g($_.nextanotb,_5s))};$_.cws=$a($_.barcode.length*2+3);$_.i=0;$_.j=0;for(;;){if($_.sam!=-1){$p($_.cws,0,~~($_.sam/10)-1);$p($_.cws,1,$_.sam%10-1);$_.j=2;$_.cset="setb";$_.mode=7;break}if($_.msglen==0){$_.cset="setb";$_.mode=1;break}if($_.msglen>=2){$k[$j++]=$g($_.msg,0)==$_.fn1;$k[$j++]=1;$_.numsscr();var _69=$k[--$j];var _6A=$k[--$j];$k[$j++]=_69;$k[$j++]=_6A;$j--;var _6B=$k[--$j];var _6C=$k[--$j];if(_6C&&_6B>=2){$_.cset="setc";$_.mode=4;$_.i=1;break}}if($g($_.msg,0)==$_.fn1){$_.cset="setb";$_.mode=3;$_.i=1;break}if($_.msglen>=2){$k[$j++]=0;$_.numsscr();var _6H=$k[--$j];var _6I=$k[--$j];$k[$j++]=_6H;$k[$j++]=_6I;$j--;var _6J=$k[--$j];if(_6J>=2&&_6J%2==0){$_.cset="setc";$_.mode=2;break}$k[$j++]=0;$_.numsscr();var _6K=$k[--$j];var _6L=$k[--$j];$k[$j++]=_6K;$k[$j++]=_6L;$j--;var _6M=$k[--$j];if(_6M>=3&&_6M%2==1){$k[$j++]=$g($_.msg,0);$_.encb();$_.cset="setc";$_.mode=5;$_.i=1;break}var _6S=$g($_.setb,$g($_.msg,0))!==undefined;$k[$j++]=_6S;$k[$j++]=1;$_.numsscr();var _6T=$k[--$j];var _6U=$k[--$j];$k[$j++]=_6T;$k[$j++]=_6U;$j--;var _6V=$k[--$j];var _6W=$k[--$j];if(_6W&&(_6V>=2&&_6V%2==0)){$k[$j++]=$g($_.msg,0);$_.encb();$_.cset="setc";$_.mode=5;$_.i=1;break}var _6c=$g($_.setb,$g($_.msg,0))!==undefined;$k[$j++]=_6c;$k[$j++]=1;$_.numsscr();var _6d=$k[--$j];var _6e=$k[--$j];$k[$j++]=_6d;$k[$j++]=_6e;$j--;var _6f=$k[--$j];var _6g=$k[--$j];if(_6g&&(_6f>=3&&_6f%2==1)){$k[$j++]=$g($_.msg,0);$_.encb();$k[$j++]=$g($_.msg,1);$_.encb();$_.cset="setc";$_.mode=6;$_.i=2;break}var _6o=$g($_.setb,$g($_.msg,0))!==undefined;var _6s=$g($_.setb,$g($_.msg,1))!==undefined;$k[$j++]=_6o&&_6s;$k[$j++]=2;$_.numsscr();var _6t=$k[--$j];var _6u=$k[--$j];$k[$j++]=_6t;$k[$j++]=_6u;$j--;var _6v=$k[--$j];var _6w=$k[--$j];if(_6w&&(_6v>=2&&_6v%2==0)){$k[$j++]=$g($_.msg,0);$_.encb();$k[$j++]=$g($_.msg,1);$_.encb();$_.cset="setc";$_.mode=6;$_.i=2;break}}$k[$j++]=0;$_.abeforeb();if($k[--$j]){$_.cset="seta";$_.mode=0;break}$_.cset="setb";$_.mode=1;break}for(;;){if($_.i==$_.msglen){break}$k[$j++]=$_.i;$_.numsscr();$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if($eq($_.cset,"seta")){if($_.i<$_.msglen-1){$k[$j++]=$g($_.msg,$_.i);$_.bnota();$k[$j++]=$_.i+1;$_.abeforeb();var _7E=$k[--$j];var _7F=$k[--$j];if(_7F&&_7E){$k[$j++]=$_.sb1;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}if($_.i<$_.msglen-2){$k[$j++]=$g($_.msg,$_.i);$_.bnota();$k[$j++]=$g($_.msg,$_.i+1);$_.bnota();var _7T=$k[--$j];var _7U=$k[--$j];$k[$j++]=$an(_7U,_7T);$k[$j++]=$_.i+2;$_.abeforeb();var _7W=$k[--$j];var _7X=$k[--$j];if(_7X&&_7W){$k[$j++]=$_.sb2;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2;break}}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}if($_.i<$_.msglen-4){var _7s=$g($_.seta,$g($_.msg,$_.i+4))!==undefined;if($_.nums==4&&_7s){$k[$j++]=$_.sc2;$_.enca();for(var _7u=0,_7v=2;_7u<_7v;_7u++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.i<$_.msglen-6){var _8D=$g($_.seta,$g($_.msg,$_.i+6))!==undefined;if($_.nums==6&&_8D){$k[$j++]=$_.sc3;$_.enca();for(var _8F=0,_8G=3;_8F<_8G;_8F++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.nums>=4&&$_.nums%2==0){$k[$j++]=$_.swc;$_.enca();$_.cset="setc";break}$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}if($eq($_.cset,"setb")){if($_.i<$_.msglen-1){$k[$j++]=$g($_.msg,$_.i);$_.anotb();$k[$j++]=$_.i+1;$_.bbeforea();var _8f=$k[--$j];var _8g=$k[--$j];if(_8g&&_8f){$k[$j++]=$_.sa1;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}}if($_.i<$_.msglen-2){$k[$j++]=$g($_.msg,$_.i);$_.anotb();$k[$j++]=$g($_.msg,$_.i+1);$_.anotb();var _8u=$k[--$j];var _8v=$k[--$j];$k[$j++]=$an(_8v,_8u);$k[$j++]=$_.i+2;$_.bbeforea();var _8x=$k[--$j];var _8y=$k[--$j];if(_8y&&_8x){$k[$j++]=$_.sa2;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$k[$j++]=$g($_.msg,$_.i+1);$_.enca();$_.i=$_.i+2;break}}$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$k[$j++]=$_.swa;$_.encb();$_.cset="seta";break}if($_.i<$_.msglen-4){var _9J=$g($_.setb,$g($_.msg,$_.i+4))!==undefined;if($_.nums==4&&_9J){$k[$j++]=$_.sc2;$_.encb();for(var _9L=0,_9M=2;_9L<_9M;_9L++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.i<$_.msglen-6){var _9e=$g($_.setb,$g($_.msg,$_.i+6))!==undefined;if($_.nums==6&&_9e){$k[$j++]=$_.sc3;$_.encb();for(var _9g=0,_9h=3;_9g<_9h;_9g++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.nums>=4&&$_.nums%2==0){$k[$j++]=$_.swc;$_.encb();$_.cset="setc";break}$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}if($eq($_.cset,"setc")){if($_.nums>=2){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}break}if($_.i<$_.msglen-1){var _AH=$g($_.setb,$g($_.msg,$_.i))!==undefined;$k[$j++]=_AH;$k[$j++]=$_.i+1;$_.numsscr();var _AJ=$k[--$j];var _AK=$k[--$j];$k[$j++]=_AJ;$k[$j++]=_AK;$j--;var _AL=$k[--$j];var _AM=$k[--$j];if(_AM&&(_AL>=2&&_AL%2==0)){$k[$j++]=$_.sb1;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}if($_.i<$_.msglen-1){var _AY=$g($_.setb,$g($_.msg,$_.i))!==undefined;$k[$j++]=_AY;$k[$j++]=$_.i+1;$_.numsscr();var _Aa=$k[--$j];var _Ab=$k[--$j];$k[$j++]=_Aa;$k[$j++]=_Ab;$j--;var _Ac=$k[--$j];var _Ad=$k[--$j];if(_Ad&&(_Ac>=3&&_Ac%2==1)){$k[$j++]=$_.sb2;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2;break}}if($_.i<$_.msglen-2){var _As=$g($_.setb,$g($_.msg,$_.i))!==undefined;var _Ax=$g($_.setb,$g($_.msg,$_.i+1))!==undefined;$k[$j++]=_As&&_Ax;$k[$j++]=$_.i+2;$_.numsscr();var _Az=$k[--$j];var _B0=$k[--$j];$k[$j++]=_Az;$k[$j++]=_B0;$j--;var _B1=$k[--$j];var _B2=$k[--$j];if(_B2&&(_B1>=2&&_B1%2==0)){$k[$j++]=$_.sb2;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2;break}}if($_.i<$_.msglen-3){var _BH=$g($_.setb,$g($_.msg,$_.i))!==undefined;var _BM=$g($_.setb,$g($_.msg,$_.i+1))!==undefined;$k[$j++]=_BH&&_BM;$k[$j++]=$_.i+2;$_.numsscr();var _BO=$k[--$j];var _BP=$k[--$j];$k[$j++]=_BO;$k[$j++]=_BP;$j--;var _BQ=$k[--$j];var _BR=$k[--$j];if(_BR&&(_BQ>=3&&_BQ%2==1)){$k[$j++]=$_.sb3;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$k[$j++]=$g($_.msg,$_.i+2);$_.encb();$_.i=$_.i+3;break}}if($_.i<$_.msglen-3){var _Bj=$g($_.setb,$g($_.msg,$_.i))!==undefined;var _Bo=$g($_.setb,$g($_.msg,$_.i+1))!==undefined;var _Bt=$g($_.setb,$g($_.msg,$_.i+2))!==undefined;$k[$j++]=_Bj&&_Bo&&_Bt;$k[$j++]=$_.i+3;$_.numsscr();var _Bv=$k[--$j];var _Bw=$k[--$j];$k[$j++]=_Bv;$k[$j++]=_Bw;$j--;var _Bx=$k[--$j];var _By=$k[--$j];if(_By&&(_Bx>=2&&_Bx%2==0)){$k[$j++]=$_.sb3;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$k[$j++]=$g($_.msg,$_.i+2);$_.encb();$_.i=$_.i+3;break}}$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.swa;$_.encc();$_.cset="seta";break}$k[$j++]=$_.swb;$_.encc();$_.cset="setb";break}break}}$_.cws=$G($_.cws,0,$_.j)}if(!bwipp_code16k.__14438__){$_=Object.create($_);$_.metrics=$a([$a([2,7]),$a([3,12]),$a([4,17]),$a([5,22]),$a([6,27]),$a([7,32]),$a([8,37]),$a([9,42]),$a([10,47]),$a([11,52]),$a([12,57]),$a([13,62]),$a([14,67]),$a([15,72]),$a([16,77])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code16k.$ctx[id]=$_[id]);bwipp_code16k.__14438__=1;$_=Object.getPrototypeOf($_)}$_.urows=$_.rows;var _CZ=$_.metrics;for(var _Ca=0,_Cb=_CZ.length;_Ca<_Cb;_Ca++){$_.m=$g(_CZ,_Ca);$_.r=$g($_.m,0);$_.dcws=$g($_.m,1);$_.okay=true;if($_.urows!=0&&$_.urows!=$_.r){$_.okay=false}if($_.cws.length>$_.dcws){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.code16kNoValidSymbol#14453";$k[$j++]="Maximum length exceeded or data too large for given options";bwipp_raiseerror()}$k[$j++]=Infinity;$q($_.cws);for(var _Cr=0,_Cs=$f($_.dcws-$_.cws.length);_Cr<_Cs;_Cr++){$k[$j++]=103}$_.cws=$a();$k[$j++]=Infinity;$k[$j++]=$f($f($_.r-2)*7+$_.mode);$q($_.cws);$_.cws=$a();$k[$j++]=0;for(var _D0=0,_Cz=$_.dcws;_D0<=_Cz;_D0+=1){var _D3=$k[--$j];$k[$j++]=$f(_D3+(_D0+2)*$g($_.cws,_D0))}$_.c1=$k[--$j]%107;$k[$j++]=0;for(var _D7=0,_D6=$_.dcws;_D7<=_D6;_D7+=1){var _DA=$k[--$j];$k[$j++]=$f(_DA+(_D7+1)*$g($_.cws,_D7))}$_.c2=$f($k[--$j]+$_.c1*$f($_.dcws+2))%107;$k[$j++]=Infinity;$q($_.cws);$k[$j++]=$_.c1;$k[$j++]=$_.c2;$_.cws=$a();var _DJ=$g($_.options,"debugcws")!==undefined;if(_DJ){$k[$j++]="bwipp.debugcws#14469";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_code16k.__14505__){$_=Object.create($_);$_.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","211133"]);$_.startencs=$a(["3211","2221","2122","1411","1132","1231","1114","3112","3211","2221","2122","1411","1132","1231","1114","3112"]);$_.stopencsodd=$a(["3211","2221","2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411"]);$_.stopencseven=$a(["2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411","3211","2221"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code16k.$ctx[id]=$_[id]);bwipp_code16k.__14505__=1;$_=Object.getPrototypeOf($_)}if($_.sam==-1||~~($_.sam/10)%2==1){$_.stopencs=$_.stopencsodd}else{$_.stopencs=$_.stopencseven}$_.rowbits=$a($_.r);for(var _DY=0,_DX=$f($_.r-1);_DY<=_DX;_DY+=1){$_.i=_DY;$k[$j++]=Infinity;$k[$j++]=10;$F($g($_.startencs,$_.i),function(){var _Dc=$k[--$j];$k[$j++]=$f(_Dc-48)});var _Df=$G($_.cws,$_.i*5,5);$k[$j++]=1;for(var _Dg=0,_Dh=_Df.length;_Dg<_Dh;_Dg++){$F($g($_.encs,$g(_Df,_Dg)),function(){var _Dl=$k[--$j];$k[$j++]=$f(_Dl-48)})}$F($g($_.stopencs,$_.i),function(){var _Dp=$k[--$j];$k[$j++]=$f(_Dp-48)});$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _Dr=$_.sbs;$k[$j++]=1;for(var _Ds=0,_Dt=_Dr.length;_Ds<_Dt;_Ds++){var _Dv=$k[--$j];var _Dw=_Dv==0?1:0;$k[$j++]=_Dv;for(var _Dx=0,_Dy=$g(_Dr,_Ds);_Dx<_Dy;_Dx++){$k[$j++]=_Dw}}$as($a($m()-1));var _E1=$k[--$j];var _E2=$k[--$j];$k[$j++]=_E1;$k[$j++]=_E2;$j--;var _E3=$k[--$j];var _E4=$k[--$j];$k[$j++]=_E3;$k[$j++]=_E4;$j--;$p($_.rowbits,$_.i,$k[--$j])}$k[$j++]=Infinity;for(var _E9=0,_EA=81*$_.sepheight;_E9<_EA;_E9++){$k[$j++]=1}for(var _ED=0,_EC=$f($_.r-2);_ED<=_EC;_ED+=1){$_.i=_ED;for(var _EF=0,_EG=$_.rowheight;_EF<_EG;_EF++){$q($g($_.rowbits,$_.i))}for(var _EL=0,_EM=$_.sepheight;_EL<_EM;_EL++){for(var _EN=0,_EO=10;_EN<_EO;_EN++){$k[$j++]=0}for(var _EP=0,_EQ=70;_EP<_EQ;_EP++){$k[$j++]=1}$k[$j++]=0}}for(var _ES=0,_ET=$_.rowheight;_ES<_ET;_ES++){$q($g($_.rowbits,$f($_.r-1)))}for(var _EY=0,_EZ=81*$_.sepheight;_EY<_EZ;_EY++){$k[$j++]=1}$_.pixs=$a();var _Ef=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",81],["pixy",~~($_.pixs.length/81)],["height",~~($_.pixs.length/81)/72],["width",81/72],["opt",$_.options]]);$k[$j++]=_Ef;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code49(){$_=Object.create($_);$_.dontdraw=false;$_.sam=-1;$_.append=false;$_.rows=0;$_.rowheight=8;$_.sepheight=1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.rows!=0&&($_.rows<2||$_.rows>8)){$k[$j++]="bwipp.code49badRows#14607";$k[$j++]="Code 49 must have 2 to 8 rows";bwipp_raiseerror()}if($_.rowheight<8){$k[$j++]="bwipp.code49badRowHeight#14611";$k[$j++]="Code 49 must have rowheight of at least 8";bwipp_raiseerror()}if($_.sepheight<1){$k[$j++]="bwipp.code49badSepHeight#14615";$k[$j++]="Code 49 must have sepheight of at least 1";bwipp_raiseerror()}if($_.append&&$_.sam!=-1){$k[$j++]="bwipp.code49samAndAppend#14619";$k[$j++]="sam and append cannot be specified together";bwipp_raiseerror()}if($_.sam!=-1){$k[$j++]=true;for(var _A=0,_B=1;_A<_B;_A++){var _C=$_.sam;if(_C<12||_C>99){$j--;$k[$j++]=false;break}if($_.sam%10<2){$j--;$k[$j++]=false;break}if(~~($_.sam/10)>$_.sam%10){$j--;$k[$j++]=false;break}}if($nt($k[--$j])){$k[$j++]="bwipp.code49badSAM#14630";$k[$j++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols';bwipp_raiseerror()}}bwipp_loadctx(bwipp_code49);if(!bwipp_code49.__14638__){$_=Object.create($_);$_.s1=-1;$_.s2=-2;$_.fn1=-3;$_.fn2=-4;$_.fn3=-5;$_.ns=-6;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14638__=1;$_=Object.getPrototypeOf($_)}var _N=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC2",$_.fn2],["FNC3",$_.fn3]]);$_.fncvals=_N;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.msglen=$_.msg.length;$F($_.msg,function(){if($k[--$j]>127){$k[$j++]="bwipp.code49badCharacter#14653";$k[$j++]="Code 49 can only support ASCII characters with values 0 to 127";bwipp_raiseerror()}});if(!bwipp_code49.__14697__){$_=Object.create($_);$_.charmap=$a(["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%",$_.s1,$_.s2,$_.fn1,$_.fn2,$_.fn3,$_.ns]);$_.charvals=new Map;for(var _c=0;_c<=48;_c+=1){$_.i=_c;var _f=$g($_.charmap,$_.i);$k[$j++]=_f;if($eq($t(_f),"stringtype")){var _i=$g($k[--$j],0);$k[$j++]=_i}$p($_.charvals,$k[--$j],$_.i)}$_.combos=$a(["1 ","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","11","12","13","14","15"," ","16","17","18"," $"," %","19","10","1-","1.","1$"," +","1/"," -"," ."," /"," 0"," 1"," 2"," 3"," 4"," 5"," 6"," 7"," 8"," 9","1+","21","22","23","24","25","26"," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z","27","28","29","20","2-","2.","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2$","2/","2+","2%","2 "]);for(var _n=0;_n<=127;_n+=1){$_.i=_n;var _q=$g($_.combos,$_.i);$_.c1=$g(_q,0);$_.c2=$g(_q,1);if($_.c1==49){$p($_.charvals,$_.i,$a([$g($_.charvals,$_.s1),$g($_.charvals,$_.c2)]))}if($_.c1==50){$p($_.charvals,$_.i,$a([$g($_.charvals,$_.s2),$g($_.charvals,$_.c2)]))}}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14697__=1;$_=Object.getPrototypeOf($_)}$_.encodealpha=function(){var _1G=$g($_.charvals,$k[--$j]);$k[$j++]=_1G;if($ne($t(_1G),"arraytype")){$as($a(1))}var _1J=$k[--$j];$P($_.cws,$_.j,_1J);$_.j=_1J.length+$_.j};$_.base48=function(){var _1N=$k[--$j];$k[$j++]=0;$F(_1N,function(){var _1O=$k[--$j];var _1P=$k[--$j];$k[$j++]=$f($f(_1O-48)+_1P*10)});$k[$j++]=Infinity;var _1Q=$k[--$j];var _1R=$k[--$j];var _1S=$k[--$j];$k[$j++]=_1Q;$k[$j++]=_1R;for(var _1T=0,_1U=$f(_1S-1);_1T<_1U;_1T++){var _1V=$k[--$j];$k[$j++]=_1V%48;$k[$j++]=~~(_1V/48)}var _1W=$a();$k[$j++]=_1W;$k[$j++]=Infinity;var _1X=$k[--$j];var _1Y=$k[--$j];$k[$j++]=_1X;$k[$j++]=_1Y;for(var _1Z=_1Y.length-1;_1Z>=0;_1Z-=1){var _1a=$k[--$j];$k[$j++]=$g(_1a,_1Z);$k[$j++]=_1a}$j--;var _1c=$a();$P($_.cws,$_.j,_1c);$_.j=_1c.length+$_.j};$_.encodenumeric=function(){$_.nums=$k[--$j];var _1i=$_.nums.length;var _1j=_1i%5;$k[$j++]="pre";$k[$j++]=_1i;$k[$j++]=_1j;if(_1j!=2){var _1k=$k[--$j];var _1l=$k[--$j];$k[$j++]=$f(_1l-_1k)}else{var _1m=$k[--$j];var _1n=$k[--$j];$k[$j++]=$f($f(_1n-_1m)-5)}var _1o=$k[--$j];$_[$k[--$j]]=_1o;for(var _1s=0,_1r=$f($_.pre-1);_1s<=_1r;_1s+=5){$k[$j++]=3;$k[$j++]=$G($_.nums,_1s,5);$_.base48()}$_.nums=$G($_.nums,$_.pre,$f($_.nums.length-$_.pre));var _21=$_.nums.length;$k[$j++]=_21;if(_21==1){$k[$j++]=$g($_.nums,$_.i);$_.encodealpha()}var _25=$k[--$j];$k[$j++]=_25;if(_25==3){$k[$j++]=2;$k[$j++]=$_.nums;$_.base48()}var _27=$k[--$j];$k[$j++]=_27;if(_27==4){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($_.nums);var _29=$a();$k[$j++]=_29;$_.base48()}if($k[--$j]==7){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($G($_.nums,0,4));var _2D=$a();$k[$j++]=_2D;$_.base48();$k[$j++]=2;$k[$j++]=$G($_.nums,4,3);$_.base48()}};$k[$j++]=Infinity;for(var _2H=0,_2I=$_.msglen;_2H<_2I;_2H++){$k[$j++]=0}$k[$j++]=0;$_.numericruns=$a();for(var _2L=$_.msglen-1;_2L>=0;_2L-=1){$_.i=_2L;var _2O=$g($_.msg,$_.i);if(_2O>=48&&_2O<=57){$p($_.numericruns,$_.i,$f($g($_.numericruns,$_.i+1)+1))}else{$p($_.numericruns,$_.i,0)}}$_.cws=$a($_.msglen*2+1);if(!bwipp_code49.__14754__){$_=Object.create($_);$_.samval=$a([12,22,13,23,33,14,24,34,44,15,25,35,45,55,16,26,36,46,56,66,17,27,37,47,57,67,77,18,28,38,48,58,68,78,88,19,29,39,49,59,69,79,89,99]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14754__=1;$_=Object.getPrototypeOf($_)}for(;;){if($_.append){$_.mode=1;$_.method="alpha";$_.i=0;$_.j=0;break}if($_.sam!=-1){$_.mode=3;$k[$j++]=$_.cws;$k[$j++]=0;for(var _2d=0;_2d<=43;_2d+=1){$k[$j++]=_2d;if($g($_.samval,_2d)!=$_.sam){$j--}}var _2h=$k[--$j];var _2i=$k[--$j];$p($k[--$j],_2i,$f(_2h+1));$_.method="alpha";$_.i=0;$_.j=1;break}if($g($_.numericruns,0)>=5){$_.mode=2;$_.method="numeric";$_.i=0;$_.j=0;break}var _2p=$g($_.charvals,$g($_.msg,0));$k[$j++]=_2p;if($ne($t(_2p),"arraytype")){$j--;$_.mode=0;$_.method="alpha";$_.i=0;$_.j=0;break}var _2t=$g($k[--$j],0)==43?4:5;$_.mode=_2t;$p($_.cws,0,$g($g($_.charvals,$g($_.msg,0)),1));$_.method="alpha";$_.i=1;$_.j=1;break}for(;;){if($_.i==$_.msglen){break}for(;;){if($eq($_.method,"alpha")){if($g($_.numericruns,$_.i)>=5){$k[$j++]=$_.ns;$_.encodealpha();$_.method="numeric";break}$k[$j++]=$g($_.msg,$_.i);$_.encodealpha();$_.i=$_.i+1;break}if($eq($_.method,"numeric")){if($g($_.numericruns,$_.i)<5){$k[$j++]=$_.ns;$_.encodealpha();$_.method="alpha";break}$k[$j++]=$G($_.msg,$_.i,$g($_.numericruns,$_.i));$_.encodenumeric();$_.i=$f($_.i+$g($_.numericruns,$_.i));break}}}$_.cws=$G($_.cws,0,$_.j);if(!bwipp_code49.__14832__){$_=Object.create($_);$_.metrics=$a([$a([2,9]),$a([3,16]),$a([4,23]),$a([5,30]),$a([6,37]),$a([7,42]),$a([8,49])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14832__=1;$_=Object.getPrototypeOf($_)}$_.urows=$_.rows;var _3d=$_.metrics;for(var _3e=0,_3f=_3d.length;_3e<_3f;_3e++){$_.m=$g(_3d,_3e);$_.r=$g($_.m,0);$_.dcws=$g($_.m,1);$_.okay=true;if($_.urows!=0&&$_.urows!=$_.r){$_.okay=false}if($_.cws.length>$_.dcws){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.code49noValidSymbol#14847";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$k[$j++]=Infinity;$q($_.cws);for(var _3v=0,_3w=$f($_.dcws-$_.cws.length);_3v<_3w;_3v++){$k[$j++]=48}$_.cws=$a();$_.ccs=$a($_.r*8);$_.j=0;for(var _42=0,_41=$f($_.r-2);_42<=_41;_42+=1){$_.i=_42;$_.cc=$G($_.cws,$_.j,7);$P($_.ccs,$_.i*8,$_.cc);var _4B=$_.cc;$k[$j++]=$_.ccs;$k[$j++]=$_.i*8+7;$k[$j++]=0;for(var _4C=0,_4D=_4B.length;_4C<_4D;_4C++){var _4F=$k[--$j];$k[$j++]=$f(_4F+$g(_4B,_4C))}var _4G=$k[--$j];var _4H=$k[--$j];$p($k[--$j],_4H,_4G%49);$_.j=$_.j+7}if($_.j<$_.dcws){$P($_.ccs,$_.ccs.length-8,$G($_.cws,$_.j,$f($_.dcws-$_.j)))}$_.cr7=$f($f($_.r-2)*7+$_.mode);$p($_.ccs,$_.ccs.length-2,$_.cr7);if(!bwipp_code49.__14878__){$_=Object.create($_);var _4Y=$a([1,9,31,26,2,12,17,23,37,18,22,6,27,44,15,43,39,11,13,5,41,33,36,8,4,32,3,19,40,25,29,10,24,30]);$k[$j++]=_4Y;$k[$j++]=_4Y;$k[$j++]=Infinity;var _4Z=$k[--$j];var _4b=$G($k[--$j],0,32);$k[$j++]=_4Z;$k[$j++]=20;$q(_4b);$_.weightx=$a();var _4d=$k[--$j];$k[$j++]=_4d;$k[$j++]=_4d;$k[$j++]=Infinity;var _4e=$k[--$j];var _4g=$G($k[--$j],1,32);$k[$j++]=_4e;$k[$j++]=16;$q(_4g);$_.weighty=$a();$k[$j++]=Infinity;var _4i=$k[--$j];var _4k=$G($k[--$j],2,32);$k[$j++]=_4i;$k[$j++]=38;$q(_4k);$_.weightz=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14878__=1;$_=Object.getPrototypeOf($_)}$_.calccheck=function(){$_.weights=$k[--$j];$_.score=0;for(var _4q=0,_4p=~~($f($_.r-1)*8/2)-1;_4q<=_4p;_4q+=1){$_.i=_4q;$_.score=$f($f($g($_.ccs,$_.i*2)*49+$g($_.ccs,$_.i*2+1))*$g($_.weights,$_.i+1)+$_.score)}$k[$j++]=$_.score};$_.lastrow=$G($_.ccs,$_.ccs.length-8,8);if($_.r>=7){$k[$j++]=$_.cr7*$g($_.weightz,0);$k[$j++]=$_.weightz;$_.calccheck();var _5A=$k[--$j];var _5C=$f($k[--$j]+_5A)%2401;$k[$j++]=~~(_5C/49);$k[$j++]=_5C%49;$as($a(2));$P($_.lastrow,0,$k[--$j])}$_.wr1=$f($g($_.lastrow,0)*49+$g($_.lastrow,1));$k[$j++]=$_.cr7*$g($_.weighty,0);$k[$j++]=$_.weighty;$_.calccheck();var _5O=$k[--$j];var _5U=$f($f($k[--$j]+_5O)+$_.wr1*$g($_.weighty,$f($_.r*4-3)))%2401;$_.wr2=_5U;$k[$j++]=~~(_5U/49);$k[$j++]=_5U%49;$as($a(2));$P($_.lastrow,2,$k[--$j]);$k[$j++]=$_.cr7*$g($_.weightx,0);$k[$j++]=$_.weightx;$_.calccheck();var _5c=$k[--$j];var _5m=$f($f($f($k[--$j]+_5c)+$_.wr1*$g($_.weightx,$f($_.r*4-3)))+$_.wr2*$g($_.weightx,$f($_.r*4-2)))%2401;$k[$j++]=~~(_5m/49);$k[$j++]=_5m%49;$as($a(2));$P($_.lastrow,4,$k[--$j]);var _5s=$G($_.ccs,$_.ccs.length-8,7);$k[$j++]=0;for(var _5t=0,_5u=_5s.length;_5t<_5u;_5t++){var _5w=$k[--$j];$k[$j++]=$f(_5w+$g(_5s,_5t))}$p($_.ccs,$_.ccs.length-1,$k[--$j]%49);var _61=$g($_.options,"debugcws")!==undefined;if(_61){$k[$j++]="bwipp.debugcws#14918";$k[$j++]=$_.ccs;bwipp_raiseerror()}if(!bwipp_code49.__15616__){$_=Object.create($_);$_.patterns=$a([$a(["11521132","25112131","14212132","25121221","14221222","12412132","23321221","12421222","21521221","15112222","15121312","13312222","24221311","13321312","11512222","22421311","11521312","25112311","14212312","23312311","12412312","21512311","16121131","14321131","12521131","15212131","15221221","13412131","13421221","11612131","16112221","16121311","14312221","14321311","12512221","12521311","15212311","13412311","11612311","11131135","31131133","51131131","21122134","41122132","21131224","41131222","11113135","31113133","51113131","11122225","31122223","51122221","11131315","31131313","51131311","21113224","41113222","21122314","41122312","11113315","31113313","51113311","12131134","32131132","21231133","41231131","22122133","42122131","11222134","22131223","42131221","11231224","31231222","12113134","32113132","12122224","32122222","12131314","32131312","21231313","41231311","22113223","42113221","11213224","22122313","42122311","11222314","31222312","12113314","32113312","21213313","41213311","13131133","33131131","22231132","11331133","31331131","23122132","12222133","23131222","12231223","32231221","21331222","13113133","33113131","13122223","33122221","11313133","13131313","33131311","11322223","22231312","11331313","31331311","23113222","12213223","23122312","12222313","32222311","21322312","13113313","33113311","22213312","11313313","31313311","14131132","23231131","12331132","21431131","24122131","13222132","24131221","13231222","11422132","22331221","11431222","14113132","14122222","12313132","14131312","12322222","23231311","12331312","21431311","24113221","13213222","24122311","13222312","11413222","22322311","11422312","14113312","23213311","12313312","21413311","15131131","13331131","14222131","14231221","12422131","12431221","15113131","15122221","13313131","15131311","13322221","11513131","13331311","11522221","14213221","14222311","12413221","12422311","15113311","13313311","11513311","11141134","31141132","21132133","41132131","21141223","41141221","11123134","31123132","11132224","31132222","11141314","31141312","21114133","41114131","21123223","41123221","21132313","41132311","11114224","31114222","11123314","31123312","21114313","41114311","12141133","32141131","21241132","22132132","11232133","22141222","11241223","31241221","12123133","32123131","12132223","32132221","12141313","32141311","21241312","22114132","11214133","22123222","11223223","22132312","11232313","31232311","12114223","32114221","12123313","32123311","21223312","22114312","11214313","31214311","13141132","22241131","11341132","23132131","12232132","23141221","12241222","21341221","13123132","13132222","11323132","13141312","11332222","22241311","11341312","23114131","12214132","23123221","12223222","23132311","12232312","21332311","13114222","13123312","11314222","22223311","11323312","23114311","12214312","21314311","14141131","12341131","13232131","13241221","11432131","14123131","14132221","12323131","14141311","12332221","12341311","13214131","13223221","11414131","13232311","11423221","11432311","14114221","14123311","12314221","12323311","13214311","11414311","11151133","31151131","21142132","21151222","11133133","31133131","11142223","31142221","11151313","31151311","21124132","21133222","21142312","11115133","31115131","11124223","31124221","11133313","31133311","21115222","21124312","12151132","21251131","22142131","11242132","22151221","11251222","12133132","12142222","12151312","21251311","22124131","11224132","22133221","11233222","22142311","11242312","12115132","12124222","12133312","21233311","22115221","11215222","22124311","11224312","13151131","12242131","12251221","13133131","13142221","11333131","13151311","11342221","12224131","12233221","12242311","13115131","13124221","11315131","13133311","11324221","11333311","12215221","12224311","11161132","21152131","21161221","11143132","11152222","11161312","21134131","21143221","21152311","11125132","11134222","11143312","21116131","21125221","21134311","12161131","11252131","12143131","12152221","12161311","11234131","11243221","11252311","12125131","12134221","12143311","11216131","11225221","11234311","11111236","31111234","51111232","21111325","41111323","61111321","11111416","31111414","51111412","31211143","51211141","12111235","32111233","52111231","21211234","41211232","22111324","42111322","11211325","31211323","51211321","12111415","32111413","52111411","21211414","41211412","12211144","32211142","21311143","41311141","13111234","33111232","22211233","42211231","11311234","31311232","23111323","43111321","12211324","32211322","21311323","41311321","13111414","33111412","22211413","42211411","11311414","31311412","13211143","33211141","22311142","11411143","31411141","14111233","34111231","23211232","12311233","32311231","21411232","24111322","13211323","33211321","22311322","11411323","31411321","14111413","34111411","23211412","12311413","32311411","21411412","14211142","23311141","12411142","21511141","15111232","24211231","13311232","22411231","11511232","25111321","14211322","23311321","12411322","21511321","15111412","24211411","13311412","22411411","11511412","15211141","13411141","11611141","16111231","14311231","12511231","15211321","13411321","11611321","16111411","14311411","12511411","21121144","41121142","11112145","31112143","51112141","11121235","31121233","51121231","21112234","41112232","21121324","41121322","11112325","31112323","51112321","11121415","31121413","51121411","21112414","41112412","22121143","42121141","11221144","31221142","12112144","32112142","12121234","32121232","21221233","41221231","22112233","42112231","11212234","22121323","42121321","11221324","31221322","12112324","32112322","12121414","32121412","21221413","41221411","22112413","42112411","11212414","31212412","23121142","12221143","32221141","21321142","13112143","33112141","13121233","33121231","11312143","22221232","11321233","31321231","23112232","12212233","23121322","12221323","32221321","21321322","13112323","33112321","13121413","33121411","11312323","22221412","11321413","31321411","23112412","12212413","32212411","21312412","24121141","13221142","22321141","11421142","14112142","14121232","12312142","23221231","12321232","21421231","24112231","13212232","24121321","13221322","11412232","22321321","11421322","14112322","14121412","12312322","23221411","12321412","21421411","24112411","13212412","22312411","11412412","14221141","12421141","15112141","15121231","13312141","13321231","11512141","11521231","14212231","14221321","12412231","12421321","15112321","15121411","13312321","13321411","11512321","11521411","14212411","12412411","21131143","41131141","11122144","31122142","11131234","31131232","21113143","41113141","21122233","41122231","21131323","41131321","11113234","31113232","11122324","31122322","11131414","31131412","21113323","41113321","21122413","41122411","11113414","31113412","22131142","11231143","31231141","12122143","32122141","12131233","32131231","21231232","22113142","11213143","22122232","11222233","22131322","11231323","31231321","12113233","32113231","12122323","32122321","12131413","32131411","21231412","22113322","11213323","22122412","11222413","31222411","12113413","32113411","21213412","23131141","12231142","21331141","13122142","13131232","11322142","22231231","11331232","23113141","12213142","23122231","12222232","23131321","12231322","21331321","13113232","13122322","11313232","13131412","11322322","22231411","11331412","23113321","12213322","23122411","12222412","21322411","13113412","22213411","11313412","13231141","11431141","14122141","14131231","12322141","12331231","13213141","13222231","11413141","13231321","11422231","11431321","14113231","14122321","12313231","14131411","12322321","12331411","13213321","13222411","11413321","11422411","14113411","12313411","21141142","11132143","31132141","11141233","31141231","21123142","21132232","21141322","11114143","31114141","11123233","31123231","11132323","31132321","11141413","31141411","21114232","21123322","21132412","11114323","31114321","11123413","31123411","22141141","11241142","12132142","12141232","21241231","22123141","11223142","22132231","11232232","22141321","11241322","12114142","12123232","12132322","12141412","21241411","22114231","11214232","22123321","11223322","22132411","11232412","12114322","12123412","21223411","12241141","13132141","13141231","11332141","11341231","12223141","12232231","12241321","13114141","13123231","11314141","13132321","11323231","13141411","11332321","11341411","12214231","12223321","12232411","13114321","13123411","11314321","11323411","21151141","11142142","11151232","21133141","21142231","21151321","11124142","11133232","11142322","11151412","21115141","21124231","21133321","21142411","11115232","11124322","11133412","11251141","12142141","12151231","11233141","11242231","11251321","12124141","12133231","12142321","12151411","11215141","11224231","11233321","11242411","12115231","12124321","12133411","11152141","11161231","11134141","11143231","11152321","11161411","11116141","11125231","11134321","11143411","21111244","41111242","11111335","31111333","51111331","21111424","41111422","11111515","31111513","51111511","21211153","41211151","22111243","42111241","11211244","31211242","12111334","32111332","21211333","41211331","22111423","42111421","11211424","31211422","12111514","32111512","21211513","41211511","22211152","11311153","31311151","23111242","12211243","32211241","21311242","13111333","33111331","22211332","11311333","31311331","23111422","12211423","32211421","21311422","13111513","33111511","22211512","11311513","31311511","23211151","12311152","21411151","24111241","13211242","22311241","11411242","14111332","23211331","12311332","21411331","24111421","13211422","22311421","11411422","14111512","23211511","12311512","21411511","13311151","11511151","14211241","12411241","15111331","13311331","11511331","14211421","12411421","15111511","13311511","11511511","31121152","21112153","41112151","21121243","41121241","11112244","31112242","11121334","31121332","21112333","41112331","21121423","41121421","11112424","31112422","11121514","31121512","21112513","41112511","12121153","32121151","21221152","22112152","11212153","22121242","11221243","31221241","12112243","32112241","12121333","32121331","21221332","22112332","11212333","22121422","11221423","31221421","12112423","32112421","12121513","32121511","21221512","22112512","11212513","31212511","13121152","22221151","11321152","23112151","12212152","23121241","12221242","21321241","13112242","13121332","11312242","22221331","11321332","23112331","12212332","23121421","12221422","21321421","13112422","13121512","11312422","22221511","11321512","23112511","12212512","21312511","14121151","12321151","13212151","13221241","11412151","11421241","14112241","14121331","12312241","12321331","13212331","13221421","11412331","11421421","14112421","14121511","12312421","12321511","13212511","11412511","11131153","31131151","21122152","21131242","11113153","31113151","11122243","31122241","11131333","31131331","21113242","21122332","21131422","11113333","31113331","11122423","31122421","11131513","31131511","21113422","21122512","12131152","21231151","22122151","11222152","22131241","11231242","12113152","12122242","12131332","21231331","22113241","11213242","22122331","11222332","22131421","11231422","12113332","12122422","12131512","21231511","22113421","11213422","22122511","11222512","13131151","11331151","12222151","12231241","13113151","13122241","11313151","13131331","11322241","11331331","12213241","12222331","12231421","13113331","13122421","11313331","13131511","11322421","11331511","12213421","12222511","11141152","21132151","21141241","11123152","11132242","11141332","21114151","21123241","21132331","21141421","11114242","11123332","11132422","11141512","21114331","21123421","21132511","12141151","11232151","11241241","12123151","12132241","12141331","11214151","11223241","11232331","11241421","12114241","12123331","12132421","12141511","11214331","11223421","11232511","11151151","11133151","11142241","11151331","11115151","11124241","11133331","11142421","11151511","11111254","31111252","21111343","41111341","11111434","31111432","21111523","41111521","11111614","31111612","31211161","12111253","32111251","21211252","22111342","11211343","31211341","12111433","32111431","21211432","22111522","11211523","31211521","12111613","32111611","21211612","12211162","21311161","13111252","22211251","11311252","23111341","12211342","21311341","13111432","22211431","11311432","23111521","12211522","21311521","13111612","22211611","11311612","13211161","11411161","14111251","12311251","13211341","11411341","14111431","12311431","13211521","11411521","14111611","12311611","21121162","11112163","31112161","11121253","31121251","21112252","21121342","11112343","31112341","11121433","31121431","21112432","21121522","11112523","31112521","11121613","31121611","22121161","11221162","12112162","12121252","21221251","22112251","11212252","22121341","11221342","12112342","12121432","21221431","22112431","11212432","22121521","11221522","12112522","12121612","21221611","12221161","13112161","13121251","11312161","11321251","32121115","52121113","21221116","41221114","61221112","22112116","42112114","31212115","51212113","13121116","33121114","22221115","42221113","11321116","31321114","51321112","23112115","43112113","12212116","32212114","52212112","21312115","41312113","61312111","14121115","34121113","23221114","43221112","12321115","32321113","52321111","21421114","41421112","24112114","13212115","33212113","22312114","42312112","11412115","31412113","51412111","15121114","24221113","13321114","33321112","22421113","42421111","11521114","31521112","25112113","14212114","34212112","23312113","43312111","12412114","32412112","21512113","41512111","16121113","25221112","14321113","34321111","23421112","12521113","32521111","15212113","24312112","13412113","33412111","22512112","11612113","31612111","31131115","51131113","21122116","41122114","61122112","31113115","51113113","12131116","32131114","52131112","21231115","41231113","61231111","22122115","42122113","11222116","31222114","51222112","12113116","32113114","52113112","21213115","41213113","61213111","13131115","33131113","22231114","42231112","11331115","31331113","51331111","23122114","43122112","12222115","32222113","52222111","21322114","41322112","13113115","33113113","22213114","42213112","11313115","31313113","51313111","14131114","34131112","23231113","43231111","12331114","32331112","21431113","41431111","24122113","13222114","33222112","22322113","42322111","11422114","31422112","14113114","34113112","23213113","43213111","12313114","32313112","21413113","41413111","15131113","24231112","13331113","33331111","22431112","25122112","14222113","34222111","23322112","12422113","32422111","21522112","15113113","24213112","13313113","33313111","22413112","11513113","31513111","16131112","25231111","14331112","23431111","15222112","24322111","13422112","22522111","16113112","25213111","14313112","23413111","12513112","21613111","11141116","31141114","51141112","21132115","41132113","61132111","11123116","31123114","51123112","21114115","41114113","61114111","12141115","32141113","52141111","21241114","41241112","22132114","42132112","11232115","31232113","51232111","12123115","32123113","52123111","21223114","41223112","22114114","42114112","11214115","31214113","51214111","13141114","33141112","22241113","42241111","11341114","31341112","23132113","43132111","12232114","32232112","21332113","41332111","13123114","33123112","22223113","42223111","11323114","31323112","23114113","43114111","12214114","32214112","21314113","41314111","14141113","34141111","23241112","12341113","32341111","24132112","13232113","33232111","22332112","11432113","31432111","14123113","34123111","23223112","12323113","32323111","21423112","24114112","13214113","33214111","22314112","11414113","31414111","15141112","24241111","13341112","25132111","14232112","23332111","12432112","15123112","24223111","13323112","22423111","11523112","25114111","14214112","23314111","12414112","21514111","16141111","14341111","15232111","13432111","16123111","14323111","12523111","15214111","13414111","11614111","11151115","31151113","51151111","21142114","41142112","11133115","31133113","51133111","21124114","41124112","11115115","31115113","51115111","12151114","32151112","21251113","41251111","22142113","42142111","11242114","31242112","12133114","32133112","21233113","41233111","22124113","42124111","11224114","31224112","12115114","32115112","21215113","41215111","13151113","33151111","22251112","23142112","12242113","32242111","21342112","13133113","33133111","22233112","11333113","31333111","23124112","12224113","32224111","21324112","13115113","33115111","22215112","11315113","31315111","14151112","23251111","24142111","13242112","22342111","14133112","23233111","12333112","21433111","24124111","13224112","22324111","11424112","14115112","23215111","12315112","21415111","15151111","14242111","15133111","13333111","14224111","12424111","15115111","13315111","11515111","11161114","31161112","21152113","41152111","11143114","31143112","21134113","41134111","11125114","31125112","21116113","41116111","12161113","32161111","22152112","11252113","31252111","12143113","32143111","21243112","22134112","11234113","31234111","12125113","32125111","21225112","22116112","11216113","31216111","13161112","23152111","12252112","13143112","22243111","11343112","23134111","12234112","21334111","13125112","22225111","11325112","23116111","12216112","21316111","14161111","13252111","14143111","12343111","13234111","11434111","14125111","12325111","13216111","11416111","31111216","51111214","31211125","51211123","32111215","52111213","21211216","41211214","61211212","12211126","32211124","52211122","21311125","41311123","61311121","13111216","33111214","22211215","42211213","11311216","31311214","51311212","13211125","33211123","22311124","42311122","11411125","31411123","51411121","14111215","34111213","23211214","43211212","12311215","32311213","52311211","21411214","41411212","14211124","34211122","23311123","43311121","12411124","32411122","21511123","41511121","15111214","24211213","13311214","33311212","22411213","42411211","11511214","31511212","15211123","24311122","13411123","33411121","22511122","11611123","31611121","16111213","25211212","14311213","34311211","23411212","12511213","32511211","21611212","21121126","41121124","61121122","31112125","51112123","31121215","51121213","21112216","41112214","61112212","22121125","42121123","11221126","31221124","51221122","12112126","32112124","52112122","12121216","32121214","52121212","21221215","41221213","61221211","22112215","42112213","11212216","31212214","51212212","23121124","43121122","12221125","32221123","52221121","21321124","41321122","13112125","33112123","13121215","33121213","11312125","22221214","42221212","11321215","31321213","51321211","23112214","43112212","12212215","32212213","52212211","21312214","41312212","24121123","13221124","33221122","22321123","42321121","11421124","31421122","14112124","34112122","14121214","34121212","12312124","23221213","43221211","12321214","32321212","21421213","41421211","24112213","13212214","33212212","22312213","42312211","11412214","31412212","25121122","14221123","34221121","23321122","12421123","32421121","21521122","15112123","15121213","13312123","24221212","13321213","33321211","11512123","22421212","11521213","31521211","25112212","14212213","34212211","23312212","12412213","32412211","21512212","15221122","24321121","13421122","22521121","16112122","16121212","14312122","25221211","14321212","12512122","23421211","12521212","15212212","24312211","13412212","22512211","11612212","21131125","41131123","61131121","11122126","31122124","51122122","11131216","31131214","51131212","21113125","41113123","61113121","21122215","41122213","61122211","11113216","31113214","51113212","22131124","42131122","11231125","31231123","51231121","12122125","32122123","52122121","12131215","32131213","52131211","21231214","41231212","22113124","42113122","11213125","22122214","42122212","11222215","31222213","51222211","12113215","32113213","52113211","21213214","41213212","23131123","43131121","12231124","32231122","21331123","41331121","13122124","33122122","13131214","33131212","11322124","22231213","42231211","11331214","31331212","23113123","43113121","12213124","23122213","43122211","12222214","32222212","21322213","41322211","13113214","33113212","22213213","42213211","11313214","31313212","24131122","13231123","33231121","22331122","11431123","31431121","14122123","34122121","14131213","34131211","12322123","23231212","12331213","32331211","21431212","24113122","13213123","24122212","13222213","33222211","11413123","22322212","11422213","31422211","14113213","34113211","23213212","12313213","32313211","21413212","25131121","14231122","23331121","12431122","15122122","15131212","13322122","24231211","13331212","11522122","22431211","25113121","14213122","25122211","14222212","12413122","23322211","12422212","21522211","15113212","24213211","13313212","22413211","11513212","15231121","13431121","16122121","16131211","14322121","14331211","12522121","15213121","15222211","13413121","13422211","11613121","16113211","14313211","12513211","21141124","41141122","11132125","31132123","51132121","11141215","31141213","51141211","21123124","41123122","21132214","41132212","11114125","31114123","51114121","11123215","31123213","51123211","21114214","41114212","22141123","42141121","11241124","31241122","12132124","32132122","12141214","32141212","21241213","41241211","22123123","42123121","11223124","22132213","42132211","11232214","31232212","12114124","32114122","12123214","32123212","21223213","41223211","22114213","42114211","11214214","31214212","23141122","12241123","32241121","21341122","13132123","33132121","13141213","33141211","11332123","22241212","11341213","31341211","23123122","12223123","23132212","12232213","32232211","21332212","13114123","33114121","13123213","33123211","11314123","22223212","11323213","31323211","23114212","12214213","32214211","21314212","24141121","13241122","22341121","14132122","14141212","12332122","23241211","12341212","24123121","13223122","24132211","13232212","11423122","22332211","11432212","14114122","14123212","12314122","23223211","12323212","21423211","24114211","13214212","22314211","11414212","14241121","15132121","15141211","13332121","13341211","14223121","14232211","12423121","12432211","15114121","15123211","13314121","13323211","11514121","11523211","14214211","12414211","21151123","41151121","11142124","31142122","11151214","31151212","21133123","41133121","21142213","41142211","11124124","31124122","11133214","31133212","21115123","41115121","21124213","41124211","11115214","31115212","22151122","11251123","31251121","12142123","32142121","12151213","32151211","21251212","22133122","11233123","22142212","11242213","31242211","12124123","32124121","12133213","32133211","21233212","22115122","11215123","22124212","11224213","31224211","12115213","32115211","21215212","23151121","12251122","13142122","13151212","11342122","22251211","23133121","12233122","23142211","12242212","21342211","13124122","13133212","11324122","22233211","11333212","23115121","12215122","23124211","12224212","21324211","13115212","22215211","11315212","13251121","14142121","14151211","12342121","13233121","13242211","11433121","14124121","14133211","12324121","12333211","13215121","13224211","11415121","11424211","14115211","12315211","21161122","11152123","31152121","11161213","31161211","21143122","21152212","11134123","31134121","11143213","31143211","21125122","21134212","11116123","31116121","11125213","31125211","22161121","12152122","12161212","22143121","11243122","22152211","11252212","12134122","12143212","21243211","22125121","11225122","22134211","11234212","12116122","12125212","21225211","13152121","13161211","12243121","12252211","13134121","13143211","11334121","11343211","12225121","12234211","13116121","13125211","11316121","11325211","21111226","41111224","61111222","31111315","51111313","21211135","41211133","61211131","22111225","42111223","11211226","31211224","51211222","12111316","32111314","52111312","21211315","41211313","61211311","22211134","42211132","11311135","31311133","51311131","23111224","43111222","12211225","32211223","52211221","21311224","41311222","13111315","33111313","22211314","42211312","11311315","31311313","51311311","23211133","43211131","12311134","32311132","21411133","41411131","24111223","13211224","33211222","22311223","42311221","11411224","31411222","14111314","34111312","23211313","43211311","12311314","32311312","21411313","41411311","24211132","13311133","33311131","22411132","11511133","31511131","25111222","14211223","34211221","23311222","12411223","32411221","21511222","15111313","24211312","13311313","33311311","22411312","11511313","31511311","25211131","14311132","23411131","12511132","21611131","15211222","24311221","13411222","22511221","11611222","16111312","25211311","14311312","23411311","12511312","21611311","31121134","51121132","21112135","41112133","61112131","21121225","41121223","61121221","11112226","31112224","51112222","11121316","31121314","51121312","21112315","41112313","61112311","12121135","32121133","52121131","21221134","41221132","22112134","42112132","11212135","22121224","42121222","11221225","31221223","51221221","12112225","32112223","52112221","12121315","32121313","52121311","21221314","41221312","22112314","42112312","11212315","31212313","51212311","13121134","33121132","22221133","42221131","11321134","31321132","23112133","43112131","12212134","23121223","43121221","12221224","32221222","21321223","41321221","13112224","33112222","13121314","33121312","11312224","22221313","42221311","11321314","31321312","23112313","43112311","12212314","32212312","21312313","41312311","14121133","34121131","23221132","12321133","32321131","21421132","24112132","13212133","24121222","13221223","33221221","11412133","22321222","11421223","31421221","14112223","34112221","14121313","34121311","12312223","23221312","12321313","32321311","21421312","24112312","13212313","33212311","22312312","11412313","31412311","15121132","24221131","13321132","22421131"]),$a(["22121116","42121114","31221115","51221113","32112115","52112113","21212116","41212114","61212112","23121115","43121113","12221116","32221114","52221112","21321115","41321113","61321111","13112116","33112114","22212115","42212113","11312116","31312114","51312112","24121114","13221115","33221113","22321114","42321112","11421115","31421113","51421111","14112115","34112113","23212114","43212112","12312115","32312113","52312111","21412114","41412112","25121113","14221114","34221112","23321113","43321111","12421114","32421112","21521113","41521111","15112114","24212113","13312114","33312112","22412113","42412111","11512114","31512112","15221113","24321112","13421113","33421111","22521112","16112113","25212112","14312113","34312111","23412112","12512113","32512111","21612112","21131116","41131114","61131112","31122115","51122113","21113116","41113114","61113112","22131115","42131113","11231116","31231114","51231112","12122116","32122114","52122112","21222115","41222113","61222111","22113115","42113113","11213116","31213114","51213112","23131114","43131112","12231115","32231113","52231111","21331114","41331112","13122115","33122113","22222114","42222112","11322115","31322113","51322111","23113114","43113112","12213115","32213113","52213111","21313114","41313112","24131113","13231114","33231112","22331113","42331111","11431114","31431112","14122114","34122112","23222113","43222111","12322114","32322112","21422113","41422111","24113113","13213114","33213112","22313113","42313111","11413114","31413112","25131112","14231113","34231111","23331112","12431113","32431111","15122113","24222112","13322113","33322111","22422112","11522113","31522111","25113112","14213113","34213111","23313112","12413113","32413111","21513112","15231112","24331111","13431112","16122112","25222111","14322112","23422111","12522112","15213112","24313111","13413112","22513111","11613112","21141115","41141113","61141111","11132116","31132114","51132112","21123115","41123113","61123111","11114116","31114114","51114112","22141114","42141112","11241115","31241113","51241111","12132115","32132113","52132111","21232114","41232112","22123114","42123112","11223115","31223113","51223111","12114115","32114113","52114111","21214114","41214112","23141113","43141111","12241114","32241112","21341113","41341111","13132114","33132112","22232113","42232111","11332114","31332112","23123113","43123111","12223114","32223112","21323113","41323111","13114114","33114112","22214113","42214111","11314114","31314112","24141112","13241113","33241111","22341112","14132113","34132111","23232112","12332113","32332111","21432112","24123112","13223113","33223111","22323112","11423113","31423111","14114113","34114111","23214112","12314113","32314111","21414112","25141111","14241112","23341111","15132112","24232111","13332112","22432111","25123111","14223112","23323111","12423112","21523111","15114112","24214111","13314112","22414111","11514112","15241111","16132111","14332111","15223111","13423111","16114111","14314111","12514111","21151114","41151112","11142115","31142113","51142111","21133114","41133112","11124115","31124113","51124111","21115114","41115112","22151113","42151111","11251114","31251112","12142114","32142112","21242113","41242111","22133113","42133111","11233114","31233112","12124114","32124112","21224113","41224111","22115113","42115111","11215114","31215112","23151112","12251113","32251111","13142113","33142111","22242112","11342113","31342111","23133112","12233113","32233111","21333112","13124113","33124111","22224112","11324113","31324111","23115112","12215113","32215111","21315112","24151111","13251112","14142112","23242111","12342112","24133111","13233112","22333111","11433112","14124112","23224111","12324112","21424111","24115111","13215112","22315111","11415112","14251111","15142111","13342111","14233111","12433111","15124111","13324111","11524111","14215111","12415111","21161113","41161111","11152114","31152112","21143113","41143111","11134114","31134112","21125113","41125111","11116114","31116112","22161112","12152113","32152111","21252112","22143112","11243113","31243111","12134113","32134111","21234112","22125112","11225113","31225111","12116113","32116111","21216112","23161111","13152112","22252111","23143111","12243112","21343111","13134112","22234111","11334112","23125111","12225112","21325111","13116112","22216111","11316112","14152111","13243111","14134111","12334111","13225111","11425111","14116111","12316111","41111215","61111213","21211126","41211124","61211122","22111216","42111214","31211215","51211213","22211125","42211123","11311126","31311124","51311122","23111215","43111213","12211216","32211214","52211212","21311215","41311213","61311211","23211124","43211122","12311125","32311123","52311121","21411124","41411122","24111214","13211215","33211213","22311214","42311212","11411215","31411213","51411211","24211123","13311124","33311122","22411123","42411121","11511124","31511122","25111213","14211214","34211212","23311213","43311211","12411214","32411212","21511213","41511211","25211122","14311123","34311121","23411122","12511123","32511121","21611122","15211213","24311212","13411213","33411211","22511212","11611213","31611211","31121125","51121123","21112126","41112124","61112122","21121216","41121214","61121212","31112215","51112213","12121126","32121124","52121122","21221125","41221123","61221121","22112125","42112123","11212126","22121215","42121213","11221216","31221214","51221212","12112216","32112214","52112212","21212215","41212213","61212211","13121125","33121123","22221124","42221122","11321125","31321123","51321121","23112124","43112122","12212125","23121214","43121212","12221215","32221213","52221211","21321214","41321212","13112215","33112213","22212214","42212212","11312215","31312213","51312211","14121124","34121122","23221123","43221121","12321124","32321122","21421123","41421121","24112123","13212124","24121213","13221214","33221212","11412124","22321213","42321211","11421214","31421212","14112214","34112212","23212213","43212211","12312214","32312212","21412213","41412211","15121123","24221122","13321123","33321121","22421122","11521123","31521121","25112122","14212123","25121212","14221213","34221211","12412123","23321212","12421213","32421211","21521212","15112213","24212212","13312213","33312211","22412212","11512213","31512211","16121122","25221121","14321122","23421121","12521122","15212122","15221212","13412122","24321211","13421212","11612122","22521211","16112212","25212211","14312212","23412211","12512212","21612211","11131126","31131124","51131122","21122125","41122123","61122121","21131215","41131213","61131211","11113126","31113124","51113122","11122216","31122214","51122212","21113215","41113213","61113211","12131125","32131123","52131121","21231124","41231122","22122124","42122122","11222125","22131214","42131212","11231215","31231213","51231211","12113125","32113123","52113121","12122215","32122213","52122211","21222214","41222212","22113214","42113212","11213215","31213213","51213211","13131124","33131122","22231123","42231121","11331124","31331122","23122123","43122121","12222124","23131213","43131211","12231214","32231212","21331213","41331211","13113124","33113122","13122214","33122212","11313124","22222213","42222211","11322214","31322212","23113213","43113211","12213214","32213212","21313213","41313211","14131123","34131121","23231122","12331123","32331121","21431122","24122122","13222123","24131212","13231213","33231211","11422123","22331212","11431213","31431211","14113123","34113121","14122213","34122211","12313123","23222212","12322213","32322211","21422212","24113212","13213213","33213211","22313212","11413213","31413211","15131122","24231121","13331122","22431121","25122121","14222122","25131211","14231212","12422122","23331211","12431212","15113122","15122212","13313122","24222211","13322212","11513122","22422211","11522212","25113211","14213212","23313211","12413212","21513211","16131121","14331121","15222121","15231211","13422121","13431211","16113121","16122211","14313121","14322211","12513121","12522211","15213211","13413211","11613211","11141125","31141123","51141121","21132124","41132122","21141214","41141212","11123125","31123123","51123121","11132215","31132213","51132211","21114124","41114122","21123214","41123212","11114215","31114213","51114211","12141124","32141122","21241123","41241121","22132123","42132121","11232124","22141213","42141211","11241214","31241212","12123124","32123122","12132214","32132212","21232213","41232211","22114123","42114121","11214124","22123213","42123211","11223214","31223212","12114214","32114212","21214213","41214211","13141123","33141121","22241122","11341123","31341121","23132122","12232123","23141212","12241213","32241211","21341212","13123123","33123121","13132213","33132211","11323123","22232212","11332213","31332211","23114122","12214123","23123212","12223213","32223211","21323212","13114213","33114211","22214212","11314213","31314211","14141122","23241121","12341122","24132121","13232122","24141211","13241212","11432122","22341211","14123122","14132212","12323122","23232211","12332212","21432211","24114121","13214122","24123211","13223212","11414122","22323211","11423212","14114212","23214211","12314212","21414211","15141121","13341121","14232121","14241211","12432121","15123121","15132211","13323121","13332211","11523121","14214121","14223211","12414121","12423211","15114211","13314211","11514211","11151124","31151122","21142123","41142121","21151213","41151211","11133124","31133122","11142214","31142212","21124123","41124121","21133213","41133211","11115124","31115122","11124214","31124212","21115213","41115211","12151123","32151121","21251122","22142122","11242123","22151212","11251213","31251211","12133123","32133121","12142213","32142211","21242212","22124122","11224123","22133212","11233213","31233211","12115123","32115121","12124213","32124211","21224212","22115212","11215213","31215211","13151122","22251121","23142121","12242122","23151211","12251212","13133122","13142212","11333122","22242211","11342212","23124121","12224122","23133211","12233212","21333211","13115122","13124212","11315122","22224211","11324212","23115211","12215212","21315211","14151121","13242121","13251211","14133121","14142211","12333121","12342211","13224121","13233211","11424121","11433211","14115121","14124211","12315121","12324211","13215211","11415211","11161123","31161121","21152122","21161212","11143123","31143121","11152213","31152211","21134122","21143212","11125123","31125121","11134213","31134211","21116122","21125212","12161122","22152121","11252122","22161211","12143122","12152212","21252211","22134121","11234122","22143211","11243212","12125122","12134212","21234211","22116121","11216122","22125211","11225212","13161121","12252121","13143121","13152211","11343121","12234121","12243211","13125121","13134211","11325121","11334211","12216121","12225211","31111225","51111223","21111316","41111314","61111312","31211134","51211132","12111226","32111224","52111222","21211225","41211223","61211221","22111315","42111313","11211316","31211314","51211312","12211135","32211133","52211131","21311134","41311132","13111225","33111223","22211224","42211222","11311225","31311223","51311221","23111314","43111312","12211315","32211313","52211311","21311314","41311312","13211134","33211132","22311133","42311131","11411134","31411132","14111224","34111222","23211223","43211221","12311224","32311222","21411223","41411221","24111313","13211314","33211312","22311313","42311311","11411314","31411312","14211133","34211131","23311132","12411133","32411131","21511132","15111223","24211222","13311223","33311221","22411222","11511223","31511221","25111312","14211313","34211311","23311312","12411313","32411311","21511312","15211132","24311131","13411132","22511131","11611132","16111222","25211221","14311222","23411221","12511222","21611221","15211312","24311311","13411312","22511311","11611312","21121135","41121133","61121131","11112136","31112134","51112132","11121226","31121224","51121222","21112225","41112223","61112221","21121315","41121313","61121311","11112316","31112314","51112312","22121134","42121132","11221135","31221133","51221131","12112135","32112133","52112131","12121225","32121223","52121221","21221224","41221222","22112224","42112222","11212225","22121314","42121312","11221315","31221313","51221311","12112315","32112313","52112311","21212314","41212312","23121133","43121131","12221134","32221132","21321133","41321131","13112134","33112132","13121224","33121222","11312134","22221223","42221221","11321224","31321222","23112223","43112221","12212224","23121313","43121311","12221314","32221312","21321313","41321311","13112314","33112312","22212313","42212311","11312314","31312312","24121132","13221133","33221131","22321132","11421133","31421131","14112133","34112131","14121223","34121221","12312133","23221222","12321223","32321221","21421222","24112222","13212223","24121312","13221313","33221311","11412223","22321312","11421313","31421311","14112313","34112311","23212312","12312313","32312311","21412312","25121131","14221132","23321131","12421132","21521131","15112132","15121222","13312132","24221221","13321222","11512132","22421221","11521222","25112221","14212222","25121311","14221312","12412222","23321311","12421312","21521311","15112312","24212311","13312312","22412311","11512312","15221131","13421131","16112131","16121221","14312131","14321221","12512131","12521221","15212221","15221311","13412221","13421311","11612221","16112311","14312311","12512311","21131134","41131132","11122135","31122133","51122131","11131225","31131223","51131221","21113134","41113132","21122224","41122222","21131314","41131312","11113225","31113223","51113221","11122315","31122313","51122311","21113314","41113312","22131133","42131131","11231134","31231132","12122134","32122132","12131224","32131222","21231223","41231221","22113133","42113131","11213134","22122223","42122221","11222224","22131313","42131311","11231314","31231312","12113224","32113222","12122314","32122312","21222313","41222311","22113313","42113311","11213314","31213312","23131132","12231133","32231131","21331132","13122133","33122131","13131223","33131221","11322133","22231222","11331223","31331221","23113132","12213133","23122222","12222223","23131312","12231313","32231311","21331312","13113223","33113221","13122313","33122311","11313223","22222312","11322313","31322311","23113312","12213313","32213311","21313312","24131131","13231132","22331131","11431132","14122132","14131222","12322132","23231221","12331222","21431221","24113131","13213132","24122221","13222222","24131311","11413132","13231312","11422222","22331311","11431312","14113222","14122312","12313222","23222311","12322312","21422311","24113311","13213312","22313311","11413312","14231131","12431131","15122131","15131221","13322131","13331221","11522131","14213131","14222221","12413131","14231311","12422221","12431311","15113221","15122311","13313221","13322311","11513221","11522311","14213311","12413311","21141133","41141131","11132134","31132132","11141224","31141222","21123133","41123131","21132223","41132221","21141313","41141311","11114134","31114132","11123224","31123222","11132314","31132312","21114223","41114221","21123313","41123311","11114314","31114312","22141132","11241133","31241131","12132133","32132131","12141223","32141221","21241222","22123132","11223133","22132222","11232223","22141312","11241313","31241311","12114133","32114131","12123223","32123221","12132313","32132311","21232312","22114222","11214223","22123312","11223313","31223311","12114313","32114311","21214312","23141131","12241132","21341131","13132132","13141222","11332132","22241221","11341222","23123131","12223132","23132221","12232222","23141311","12241312","21341311","13114132","13123222","11314132","13132312","11323222","22232311","11332312","23114221","12214222","23123311","12223312","21323311","13114312","22214311","11314312","13241131","14132131","14141221","12332131","12341221","13223131","13232221","11423131","13241311","11432221","14114131","14123221","12314131","14132311","12323221","12332311","13214221","13223311","11414221","11423311","14114311","12314311","21151132","11142133","31142131","11151223","31151221","21133132","21142222","21151312","11124133","31124131","11133223","31133221","11142313","31142311","21115132","21124222","21133312","11115223","31115221","11124313","31124311","22151131","11251132","12142132","12151222","21251221","22133131","11233132","22142221","11242222","22151311","11251312","12124132","12133222","12142312","21242311","22115131","11215132","22124221","11224222","22133311","11233312","12115222","12124312","21224311","12251131","13142131","13151221","11342131","12233131","12242221","12251311","13124131","13133221","11324131","13142311","11333221","11342311","12215131","12224221","12233311","13115221","13124311","11315221","11324311","21161131","11152132","11161222","21143131","21152221","21161311","11134132","11143222","11152312","21125131","21134221","21143311","11116132","11125222","11134312","12152131","12161221","11243131","11252221","12134131","12143221","12152311","11225131","11234221","11243311","12116131","12125221","12134311","21111235","41111233","61111231","11111326","31111324","51111322","21111415","41111413","61111411","21211144","41211142","22111234","42111232","11211235","31211233","51211231","12111325","32111323","52111321","21211324","41211322","22111414","42111412","11211415","31211413","51211411","22211143","42211141","11311144","31311142","23111233","43111231","12211234","32211232","21311233","41311231","13111324","33111322","22211323","42211321","11311324","31311322","23111413","43111411","12211414","32211412","21311413","41311411","23211142","12311143","32311141","21411142","24111232","13211233","33211231","22311232","11411233","31411231","14111323","34111321","23211322","12311323","32311321","21411322","24111412","13211413","33211411","22311412","11411413","31411411","24211141","13311142","22411141","11511142","25111231","14211232","23311231","12411232","21511231","15111322","24211321","13311322","22411321","11511322","25111411","14211412","23311411","12411412","21511411","14311141","12511141","15211231","13411231","11611231","16111321","14311321","12511321","15211411","13411411","11611411","31121143","51121141","21112144","41112142","21121234","41121232","11112235","31112233","51112231","11121325","31121323","51121321","21112324","41112322","21121414","41121412","11112415","31112413","51112411","12121144","32121142","21221143","41221141","22112143","42112141","11212144","22121233","42121231","11221234","31221232","12112234","32112232","12121324","32121322","21221323","41221321","22112323","42112321","11212324","22121413","42121411","11221414","31221412","12112414","32112412","21212413","41212411","13121143","33121141","22221142","11321143","31321141","23112142","12212143","23121232","12221233","32221231","21321232","13112233","33112231","13121323","33121321","11312233","22221322","11321323","31321321","23112322","12212323","23121412","12221413","32221411","21321412","13112413","33112411","22212412","11312413","31312411","14121142","23221141","12321142","21421141","24112141","13212142","24121231","13221232","11412142","22321231","11421232","14112232","14121322","12312232","23221321","12321322","21421321","24112321","13212322","24121411","13221412","11412322","22321411","11421412","14112412","23212411","12312412","21412411","15121141","13321141","11521141","14212141","14221231","12412141","12421231","15112231","15121321","13312231","13321321","11512231","11521321","14212321","14221411","12412321","12421411","15112411","13312411","11512411","11131144","31131142","21122143","41122141","21131233","41131231","11113144","31113142","11122234","31122232","11131324","31131322","21113233","41113231","21122323","41122321","21131413","41131411","11113324","31113322","11122414","31122412","21113413","41113411","12131143","32131141","21231142","22122142","11222143","22131232","11231233","31231231","12113143","32113141","12122233","32122231","12131323","32131321","21231322","22113232","11213233","22122322","11222323","22131412","11231413","31231411","12113323","32113321","12122413","32122411","21222412","22113412","11213413","31213411","13131142","22231141","11331142","23122141","12222142","23131231","12231232","21331231","13113142","13122232","11313142","13131322","11322232","22231321","11331322","23113231","12213232","23122321","12222322","23131411","12231412","21331411","13113322","13122412","11313322","22222411","11322412","23113411","12213412","21313411","14131141","12331141","13222141","13231231","11422141","11431231","14113141","14122231","12313141","14131321","12322231","12331321","13213231","13222321","11413231","13231411","11422321","11431411","14113321","14122411","12313321","12322411","13213411","11413411","11141143","31141141","21132142","21141232","11123143","31123141","11132233","31132231","11141323","31141321","21114142","21123232","21132322","21141412","11114233","31114231","11123323","31123321","11132413","31132411","21114322","21123412","12141142","21241141","22132141","11232142","22141231","11241232","12123142","12132232","12141322","21241321","22114141","11214142","22123231","11223232","22132321","11232322","22141411","11241412","12114232","12123322","12132412","21232411","22114321","11214322","22123411","11223412","13141141","11341141","12232141","12241231","13123141","13132231","11323141","13141321","11332231","11341321","12214141","12223231","12232321","12241411","13114231","13123321","11314231","13132411","11323321","11332411","12214321","12223411","11151142","21142141","21151231","11133142","11142232","11151322","21124141","21133231","21142321","21151411","11115142","11124232","11133322","11142412","21115231","21124321","21133411","12151141","11242141","11251231","12133141","12142231","12151321","11224141","11233231","11242321","11251411","12115141","12124231","12133321","12142411","11215231","11224321","11233411","11161141","11143141","11152231","11161321","11125141","11134231","11143321","11152411","11111245","31111243","51111241","21111334","41111332","11111425","31111423","51111421","21111514","41111512","31211152","12111244","32111242","21211243","41211241","22111333","42111331","11211334","31211332","12111424","32111422","21211423","41211421","22111513","42111511","11211514","31211512","12211153","32211151","21311152","13111243","33111241","22211242","11311243","31311241","23111332","12211333","32211331","21311332","13111423","33111421","22211422","11311423","31311421","23111512","12211513","32211511","21311512","13211152","22311151","11411152","14111242","23211241","12311242","21411241","24111331","13211332","22311331","11411332","14111422","23211421","12311422","21411421","24111511","13211512","22311511","11411512","14211151","12411151","15111241","13311241","11511241","14211331","12411331","15111421","13311421","11511421","14211511","12411511","21121153","41121151","11112154","31112152","11121244","31121242","21112243","41112241","21121333","41121331","11112334","31112332","11121424","31121422","21112423","41112421","21121513","41121511","11112514","31112512","22121152","11221153","31221151","12112153","32112151","12121243","32121241","21221242","22112242","11212243","22121332","11221333","31221331","12112333","32112331","12121423","32121421","21221422","22112422","11212423","22121512","11221513","31221511","12112513","32112511","21212512","23121151","12221152","21321151","13112152","13121242","11312152","22221241","11321242","23112241","12212242","23121331","12221332","21321331","13112332","13121422","11312332","22221421","11321422","23112421","12212422","23121511","12221512","21321511","13112512","22212511","11312512","13221151","11421151","14112151","14121241","12312151","12321241","13212241","13221331","11412241","11421331","14112331","14121421","12312331","12321421","13212421","13221511","11412421","11421511","14112511","12312511","21131152","11122153","31122151","11131243","31131241","21113152","21122242","21131332","11113243","31113241","11122333","31122331","11131423","31131421","21113332","21122422","21131512","11113423","31113421","11122513","31122511","22131151","11231152","12122152","12131242","21231241","22113151","11213152","22122241","11222242","22131331","11231332","12113242","12122332","12131422","21231421","22113331","11213332","22122421","11222422","22131511","11231512","12113422","12122512","21222511","12231151","13122151","13131241","11322151","11331241","12213151","12222241","12231331","13113241","13122331","11313241","13131421","11322331","11331421","12213331","12222421","12231511","13113421","13122511","11313421","11322511","21141151","11132152","11141242","21123151","21132241","21141331","11114152","11123242","11132332","11141422","21114241","21123331","21132421","21141511","11114332","11123422","11132512","11241151","12132151","12141241","11223151","11232241","11241331","12114151","12123241","12132331","12141421","11214241","11223331","11232421","11241511","12114331","12123421","12132511","11142151","11151241","11124151","11133241","11142331","11151421","11115241","11124331","11133421","11142511","21111253","41111251","11111344","31111342","21111433","41111431","11111524","31111522","21111613","41111611","21211162","22111252","11211253","31211251","12111343","32111341","21211342","22111432","11211433","31211431","12111523","32111521","21211522","22111612","11211613","31211611","22211161","11311162","23111251","12211252","21311251","13111342","22211341","11311342","23111431","12211432","21311431","13111522","22211521","11311522","23111611","12211612","21311611","12311161","13211251","11411251","14111341","12311341","13211431","11411431","14111521","12311521","13211611","11411611","31121161","21112162","21121252","11112253","31112251","11121343","31121341","21112342","21121432","11112433","31112431","11121523","31121521","21112522","21121612","12121162","21221161","22112161","11212162","22121251","11221252","12112252","12121342","21221341","22112341","11212342","22121431","11221432","12112432","12121522","21221521","22112521","11212522","22121611","11221612","13121161","11321161","12212161","12221251","13112251","13121341","11312251","11321341","12212341","12221431","13112431","13121521","11312431","11321521","12212521","12221611","11131162","21122161","21131251","11113162"])]);$_.parity=$a(["1001","0101","1100","0011","1010","0110","1111","0000"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__15616__=1;$_=Object.getPrototypeOf($_)}$_.rowbits=$a($_.r);for(var _6C=0,_6B=$f($_.r-1);_6C<=_6B;_6C+=1){$_.i=_6C;$k[$j++]="p";if($_.i!=$f($_.r-1)){$k[$j++]=$g($_.parity,$_.i)}else{$k[$j++]="0000"}var _6I=$k[--$j];$_[$k[--$j]]=_6I;$_.ccrow=$G($_.ccs,$_.i*8,8);$k[$j++]=Infinity;for(var _6N=0;_6N<=7;_6N+=2){$q($G($_.ccrow,_6N,2));var _6Q=$k[--$j];var _6R=$k[--$j];$k[$j++]=$f(_6Q+_6R*49)}$_.scrow=$a();$k[$j++]=Infinity;$k[$j++]=10;$k[$j++]=1;$k[$j++]=1;for(var _6T=0;_6T<=3;_6T+=1){$_.j=_6T;$F($g($g($_.patterns,$f($g($_.p,$_.j)-48)),$g($_.scrow,$_.j)),function(){var _6d=$k[--$j];$k[$j++]=$f(_6d-48)})}$k[$j++]=4;$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _6f=$_.sbs;$k[$j++]=1;for(var _6g=0,_6h=_6f.length;_6g<_6h;_6g++){var _6j=$k[--$j];var _6k=_6j==0?1:0;$k[$j++]=_6j;for(var _6l=0,_6m=$g(_6f,_6g);_6l<_6m;_6l++){$k[$j++]=_6k}}$as($a($m()-1));var _6p=$k[--$j];var _6q=$k[--$j];$k[$j++]=_6p;$k[$j++]=_6q;$j--;var _6r=$k[--$j];var _6s=$k[--$j];$k[$j++]=_6r;$k[$j++]=_6s;$j--;$p($_.rowbits,$_.i,$k[--$j])}$k[$j++]=Infinity;for(var _6x=0,_6y=81*$_.sepheight;_6x<_6y;_6x++){$k[$j++]=1}for(var _71=0,_70=$f($_.r-2);_71<=_70;_71+=1){$_.i=_71;for(var _73=0,_74=$_.rowheight;_73<_74;_73++){$q($g($_.rowbits,$_.i))}for(var _79=0,_7A=$_.sepheight;_79<_7A;_79++){for(var _7B=0,_7C=10;_7B<_7C;_7B++){$k[$j++]=0}for(var _7D=0,_7E=70;_7D<_7E;_7D++){$k[$j++]=1}$k[$j++]=0}}for(var _7G=0,_7H=$_.rowheight;_7G<_7H;_7G++){$q($g($_.rowbits,$f($_.r-1)))}for(var _7M=0,_7N=81*$_.sepheight;_7M<_7N;_7M++){$k[$j++]=1}$_.pixs=$a();var _7T=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",81],["pixy",~~($_.pixs.length/81)],["height",~~($_.pixs.length/81)/72],["width",81/72],["opt",$_.options]]);$k[$j++]=_7T;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_flattermarken(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.3;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_flattermarken);$F($_.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.flattermarkenBadCharacter#15978";$k[$j++]="Flattermarken must contain only digits";bwipp_raiseerror()}});if(!bwipp_flattermarken.__15991__){$_=Object.create($_);$_.encs=$a(["0018","0117","0216","0315","0414","0513","0612","0711","0810","0900"]);$_.barchars="1234567890";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_flattermarken.$ctx[id]=$_[id]);bwipp_flattermarken.__15991__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.sbs=$s($_.barlen*4);$_.txt=$a($_.barlen);for(var _D=0,_C=$_.barlen-1;_D<=_C;_D+=1){$_.i=_D;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*9,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _Z=$_.sbs;for(var _a=0,_b=_Z.length;_a<_b;_a++){$k[$j++]=$g(_Z,_a)-48}var _d=$a();$k[$j++]=Infinity;for(var _f=0,_g=~~(($_.sbs.length+1)/2);_f<_g;_f++){$k[$j++]=$_.height}var _i=$a();$k[$j++]=Infinity;for(var _k=0,_l=~~(($_.sbs.length+1)/2);_k<_l;_k++){$k[$j++]=0}var _m=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_d;$k[$j++]="bhs";$k[$j++]=_i;$k[$j++]="bbs";$k[$j++]=_m;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="opt";$k[$j++]=$_.options;var _p=$d();$k[$j++]=_p;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_raw(){$_=Object.create($_);$_.dontdraw=false;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$F($_.barcode,function(){var _3=$k[--$j];if(_3<49||_3>57){$k[$j++]="bwipp.rawBadCharacter#16064";$k[$j++]="Raw must contain only digits 1 to 9";bwipp_raiseerror()}});$k[$j++]=Infinity;$k[$j++]=Infinity;$F($_.barcode,function(){var _5=$k[--$j];$k[$j++]=$f(_5-48)});var _6=$a();$k[$j++]=Infinity;for(var _8=0,_9=~~(($_.barcode.length+1)/2);_8<_9;_8++){$k[$j++]=$_.height}var _B=$a();$k[$j++]=Infinity;for(var _D=0,_E=~~(($_.barcode.length+1)/2);_D<_E;_D++){$k[$j++]=0}var _F=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_6;$k[$j++]="bhs";$k[$j++]=_B;$k[$j++]="bbs";$k[$j++]=_F;$k[$j++]="opt";$k[$j++]=$_.options;var _H=$d();$k[$j++]=_H;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_daft(){$_=Object.create($_);$_.dontdraw=false;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$F($_.barcode,function(){var _3=$k[--$j];if(_3!=68&&(_3!=65&&(_3!=70&&_3!=84))){$k[$j++]="bwipp.daftBadCharacter#16118";$k[$j++]="DAFT must contain only characters D, A, F and T";bwipp_raiseerror()}});$_.barlen=$_.barcode.length;$_.bbs=$a($_.barlen);$_.bhs=$a($_.barlen);for(var _B=0,_A=$_.barlen-1;_B<=_A;_B+=1){$_.i=_B;$_.enc=$G($_.barcode,$_.i,1);if($eq($_.enc,"D")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"A")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"F")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}if($eq($_.enc,"T")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}}$k[$j++]=Infinity;var _h=$_.bbs;var _i=$_.bhs;$k[$j++]=Infinity;for(var _k=0,_l=$_.bhs.length-1;_k<_l;_k++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _m=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_h;$k[$j++]="bhs";$k[$j++]=_i;$k[$j++]="sbs";$k[$j++]=_m;$k[$j++]="opt";$k[$j++]=$_.options;var _o=$d();$k[$j++]=_o;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_symbol(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _H=new Map([["fima",function(){$_.sbs=$a([2.25,2.25,2.25,11.25,2.25,11.25,2.25,2.25,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0])}],["fimb",function(){$_.sbs=$a([2.25,6.75,2.25,2.25,2.25,6.25,2.25,2.25,2.25,6.75,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0])}],["fimc",function(){$_.sbs=$a([2.25,2.25,2.25,6.75,2.25,6.75,2.25,6.75,2.25,2.25,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0])}],["fimd",function(){$_.sbs=$a([2.25,2.25,2.25,2.25,2.25,6.75,2.25,6.75,2.25,2.25,2.25,2.25,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0,0])}],["fime",function(){$_.sbs=$a([2.25,6.75,2.25,15.75,2.25,6.75,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0,0])}]]);$_.symbols=_H;var _K=$g($_.symbols,$_.barcode)!==undefined;if(!_K){$k[$j++]="bwipp.symbolUnknownSymbol#16224";$k[$j++]="Unknown symbol name provided";bwipp_raiseerror()}if($g($_.symbols,$_.barcode)()===true){return true}var _S=new Map([["ren",bwipp_renlinear],["sbs",$_.sbs],["bhs",$_.bhs],["bbs",$_.bbs],["opt",$_.options]]);$k[$j++]=_S;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_pdf417(){$_=Object.create($_);$_.dontdraw=false;$_.compact=false;$_.eclevel=-1;$_.columns=0;$_.rows=0;$_.rowmult=3;$_.ccc=false;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.pdf417emptyData#16289";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.eclevel!=-1&&($_.eclevel<0||$_.eclevel>8)){$k[$j++]="bwipp.pdf417InvalidErrorCorrectionLevel#16293";$k[$j++]="Valid error correction levels are 0 to 8";bwipp_raiseerror()}if($_.ccc&&$_.raw){$k[$j++]="bwipp.pdf417cccAndRaw#16297";$k[$j++]="Cannot combine ccc and raw";bwipp_raiseerror()}if($_.ccc&&$_.compact){$k[$j++]="bwipp.pdf417cccAndCompact#16301";$k[$j++]="Cannot combine ccc and compact";bwipp_raiseerror()}if($_.rows!=0&&($_.rows<3||$_.rows>90)){$k[$j++]="bwipp.pdf417invalidRows#16305";$k[$j++]="There must be between 3 and 90 rows";bwipp_raiseerror()}if($_.columns!=0&&($_.columns<1||$_.columns>30)){$k[$j++]="bwipp.pdf417invalidColumns#16309";$k[$j++]="There must be between 1 and 30 columns";bwipp_raiseerror()}if($_.rowmult<=0){$k[$j++]="bwipp.pdf417badRowMult#16313";$k[$j++]="The row multiplier must be greater than zero";bwipp_raiseerror()}bwipp_loadctx(bwipp_pdf417);if(!bwipp_pdf417.__16407__){$_=Object.create($_);$_.T=0;$_.N=1;$_.B=2;$_.A=0;$_.L=1;$_.M=2;$_.P=3;$_.tl=-1;$_.nl=-2;$_.bl=-3;$_.bl6=-4;$_.bs=-5;$_.al=-6;$_.ll=-7;$_.ml=-8;$_.pl=-9;$_.as=-10;$_.ps=-11;$_.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$_.pl,"?"]),$a([" "," "," ","{"]),$a([$_.ll,$_.as,$_.ll,"}"]),$a([$_.ml,$_.ml,$_.al,"'"]),$a([$_.ps,$_.ps,$_.ps,$_.al])]);$_.charvals=$a([new Map,new Map,new Map,new Map]);$_.alltext=new Map;for(var _10=0,_z=$_.charmaps.length-1;_10<=_z;_10+=1){$_.i=_10;$_.encs=$g($_.charmaps,$_.i);for(var _14=0;_14<=3;_14+=1){$_.j=_14;var _17=$g($_.encs,$_.j);$k[$j++]=_17;if($eq($t(_17),"stringtype")){var _1A=$g($k[--$j],0);$k[$j++]=_1A}var _1B=$k[--$j];$p($g($_.charvals,$_.j),_1B,$_.i);$p($_.alltext,_1B,-1)}}$_.e=1e4;$_.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$_.latseq=$a([$a([$a([]),$a([$_.ll]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.ml,$_.al]),$a([]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.al]),$a([$_.ll]),$a([]),$a([$_.pl])]),$a([$a([$_.al]),$a([$_.al,$_.ll]),$a([$_.al,$_.ml]),$a([])])]);$_.shftlen=$a([$a([$_.e,$_.e,$_.e,1]),$a([1,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,$_.e])]);$k[$j++]=Infinity;$k[$j++]=$_.tl;$k[$j++]=900;$k[$j++]=$_.bl;$k[$j++]=901;$k[$j++]=$_.bl6;$k[$j++]=924;$k[$j++]=$_.nl;$k[$j++]=902;$k[$j++]=$_.bs;$k[$j++]=913;$_.latchcws=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_pdf417.$ctx[id]=$_[id]);bwipp_pdf417.__16407__=1;$_=Object.getPrototypeOf($_)}if($_.raw){$_.datcws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.barcode.length-3){break}if($g($_.barcode,$_.i)!=94){break}var _2W=$G($_.barcode,$_.i+1,3);$k[$j++]=_2W;$k[$j++]=false;for(var _2X=0,_2Y=_2W.length;_2X<_2Y;_2X++){var _2Z=$g(_2W,_2X);if(_2Z<48||_2Z>57){$j--;$k[$j++]=true}}if($k[--$j]){$j--;break}$_.cw=$i($k[--$j]);$p($_.datcws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}if($_.i!=$_.barcode.length){$k[$j++]="bwipp.pdf417badRawFormat#16425";$k[$j++]="raw data must be formatted as ^NNN";bwipp_raiseerror()}$_.datcws=$G($_.datcws,0,$_.j)}$_.encb=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$_.out=$a(~~($_.inlen/6)*5+$_.inlen%6);for(var _2t=0,_2s=~~($_.inlen/6)-1;_2t<=_2s;_2t+=1){$_.k=_2t;$k[$j++]=Infinity;$q($G($_.in,$_.k*6,3));$_.msbs=$a();$k[$j++]=Infinity;$q($_.msbs);var _2z=$k[--$j];var _30=$k[--$j];var _31=$k[--$j];$k[$j++]=$f($f(_2z+_30*256)+_31*65536);for(var _32=0,_33=3;_32<_33;_32++){var _34=$k[--$j];$k[$j++]=_34%900;$k[$j++]=~~(_34/900)}$_.mscs=$a();$k[$j++]=Infinity;$q($G($_.in,$_.k*6+3,3));$_.lsbs=$a();$k[$j++]=Infinity;$q($_.lsbs);var _3B=$k[--$j];var _3C=$k[--$j];var _3D=$k[--$j];$k[$j++]=$f($f(_3B+_3C*256)+_3D*65536);for(var _3E=0,_3F=3;_3E<_3F;_3E++){var _3G=$k[--$j];$k[$j++]=_3G%900;$k[$j++]=~~(_3G/900)}$_.lscs=$a();var _3J=$g($_.lscs,0);var _3L=$g($_.mscs,0);$p($_.out,$_.k*5+4,$f(_3J+_3L*316)%900);var _3P=$g($_.lscs,1);var _3R=$g($_.mscs,0);var _3T=$g($_.mscs,1);$p($_.out,$_.k*5+3,$f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)%900);var _3X=$g($_.lscs,2);var _3Z=$g($_.mscs,0);var _3b=$g($_.mscs,1);var _3d=$g($_.mscs,2);$p($_.out,$_.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)/900)+_3X)+_3Z*20)+_3b*641)+_3d*316)%900);var _3h=$g($_.lscs,3);var _3j=$g($_.mscs,1);var _3l=$g($_.mscs,2);$p($_.out,$_.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)/900)+_3X)+_3Z*20)+_3b*641)+_3d*316)/900)+_3h)+_3j*20)+_3l*641)%900);$p($_.out,$_.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)/900)+_3X)+_3Z*20)+_3b*641)+_3d*316)/900)+_3h)+_3j*20)+_3l*641)/900)+$g($_.mscs,2)*20)%900)}$_.rem=$_.inlen%6;if($_.rem!=0){$k[$j++]=$_.out;$k[$j++]=$_.out.length-$_.rem;$k[$j++]=Infinity;$q($G($_.in,$_.inlen-$_.rem,$_.rem));var _42=$a();var _43=$k[--$j];$P($k[--$j],_43,_42)}$k[$j++]=$_.out};if($_.ccc){$_.barlen=$_.barcode.length;$_.datcws=$a(~~($_.barlen/6)*5+$_.barlen%6+2);$p($_.datcws,0,920);var _4E=$_.barlen%6==0?924:901;$p($_.datcws,1,_4E);$k[$j++]=$_.datcws;$k[$j++]=2;$k[$j++]=Infinity;$F($_.barcode);var _4H=$a();$k[$j++]=_4H;$_.encb();var _4I=$k[--$j];var _4J=$k[--$j];$P($k[--$j],_4J,_4I)}if(!$_.raw&&!$_.ccc){var _4P=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true]]);$_.fncvals=_4P;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _4S=$k[--$j];$_[$k[--$j]]=_4S;$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _4W=0,_4X=$_.msglen;_4W<_4X;_4W++){$k[$j++]=0}$k[$j++]=0;$_.numdigits=$a();$k[$j++]=Infinity;for(var _4a=0,_4b=$_.msglen;_4a<_4b;_4a++){$k[$j++]=0}$k[$j++]=0;$_.numtext=$a();$k[$j++]=Infinity;for(var _4e=0,_4f=$_.msglen;_4e<_4f;_4e++){$k[$j++]=0}$k[$j++]=0;$_.numbytes=$a();$k[$j++]=Infinity;for(var _4i=0,_4j=$_.msglen;_4i<_4j;_4i++){$k[$j++]=0}$k[$j++]=0;$_.iseci=$a();for(var _4m=$_.msglen-1;_4m>=0;_4m-=1){$_.i=_4m;var _4p=$g($_.msg,$_.i);if(_4p>=48&&_4p<=57){$p($_.numdigits,$_.i,$f($g($_.numdigits,$_.i+1)+1))}var _4z=$g($_.alltext,$g($_.msg,$_.i))!==undefined;if(_4z&&$g($_.numdigits,$_.i)<13){$p($_.numtext,$_.i,$f($g($_.numtext,$_.i+1)+1))}if($g($_.msg,$_.i)>=0&&$g($_.numtext,$_.i)<5&&$g($_.numdigits,$_.i)<13){$p($_.numbytes,$_.i,$f($g($_.numbytes,$_.i+1)+1))}$p($_.iseci,$_.i,$g($_.msg,$_.i)<=-1e6)}$_.numdigits=$G($_.numdigits,0,$_.msglen);$_.numtext=$G($_.numtext,0,$_.msglen);$_.numbytes=$G($_.numbytes,0,$_.msglen);$_.seq=$a([]);$_.seqlen=0;$_.state=$_.T;$_.p=0;for(;;){if($_.p==$_.msglen){break}if($g($_.iseci,$_.p)){$_.eci=$g($_.msg,$_.p);$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$a([$_.eci]);$_.seq=$a();$_.p=$_.p+1;$k[$j++]="seqlen";$k[$j++]=$_.seqlen;if($_.eci<=-1810900){$k[$j++]=2}else{var _5s=$_.eci<=-1000900?3:2;$k[$j++]=_5s}var _5t=$k[--$j];var _5u=$k[--$j];$_[$k[--$j]]=$f(_5u+_5t)}else{$_.n=$g($_.numdigits,$_.p);if($_.n>=13||$_.n==$_.msglen&&$_.n>=8){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.nl;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.n));var _69=$a();$k[$j++]=_69;$_.seq=$a();$_.state=$_.N;$_.p=$f($_.p+$_.n);$_.seqlen=$f($_.seqlen+1+$_.n)}else{$_.t=$g($_.numtext,$_.p);if($_.t>=5){$k[$j++]=Infinity;$q($_.seq);if($_.state!=$_.T){$k[$j++]=$_.tl}$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.t));var _6S=$a();$k[$j++]=_6S;$_.seq=$a();$_.state=$_.T;$_.p=$f($_.p+$_.t);$_.seqlen=$f($f($_.seqlen+1)+$_.t)}else{$_.b=$g($_.numbytes,$_.p);if($_.b==1&&$_.state==$_.T){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.bs;$k[$j++]=$a([$g($_.msg,$_.p)]);$_.seq=$a();$_.p=$f($_.p+$_.b);$_.seqlen=$f($_.seqlen+2)}else{$k[$j++]=Infinity;$q($_.seq);var _6r=$_.b%6!=0?$_.bl:$_.bl6;$k[$j++]=_6r;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.b));var _6w=$a();$k[$j++]=_6w;$_.seq=$a();$_.state=$_.B;$_.p=$f($_.p+$_.b);$_.seqlen=$f($f($_.seqlen+1)+$_.b)}}}}}$_.enca=function(){var _77=$g($g($_.charvals,$_.A),$k[--$j]);$k[$j++]=_77};$_.encl=function(){var _7C=$g($g($_.charvals,$_.L),$k[--$j]);$k[$j++]=_7C};$_.encm=function(){var _7H=$g($g($_.charvals,$_.M),$k[--$j]);$k[$j++]=_7H};$_.encp=function(){var _7M=$g($g($_.charvals,$_.P),$k[--$j]);$k[$j++]=_7M};$_.textencfuncs=$a(["enca","encl","encm","encp"]);$_.addtotext=function(){$p($_.text,$_.l,$k[--$j]);$_.l=$_.l+1};$_.enct=function(){$_.in=$k[--$j];$_.curlen=$a([$_.e,$_.e,$_.e,$_.e]);$p($_.curlen,$_.submode,0);$_.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($_.in,function(){$_.char=$k[--$j];for(;;){$_.imp=false;var _7l=$a([$_.A,$_.L,$_.M,$_.P]);for(var _7m=0,_7n=_7l.length;_7m<_7n;_7m++){$_.x=$g(_7l,_7m);var _7t=$a([$_.A,$_.L,$_.M,$_.P]);for(var _7u=0,_7v=_7t.length;_7u<_7v;_7u++){$_.y=$g(_7t,_7u);$_.cost=$f($g($_.curlen,$_.x)+$g($g($_.latlen,$_.x),$_.y));if($_.cost<$g($_.curlen,$_.y)){$p($_.curlen,$_.y,$_.cost);$k[$j++]=$_.curseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$q($g($g($_.latseq,$_.x),$_.y));var _8M=$a();var _8N=$k[--$j];$p($k[--$j],_8N,_8M);$_.imp=true}}}if(!$_.imp){break}}$_.nxtlen=$a([$_.e,$_.e,$_.e,$_.e]);$_.nxtseq=$a(4);var _8a=$a([$_.A,$_.L,$_.M,$_.P]);for(var _8b=0,_8c=_8a.length;_8b<_8c;_8b++){$_.x=$g(_8a,_8b);for(;;){var _8i=$g($g($_.charvals,$_.x),$_.char)!==undefined;if(!_8i){break}$_.cost=$f($g($_.curlen,$_.x)+1);if($_.cost<$g($_.nxtlen,$_.x)){$p($_.nxtlen,$_.x,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.x;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$k[$j++]=$_.char;var _8z=$a();var _90=$k[--$j];$p($k[--$j],_90,_8z)}var _96=$a([$_.A,$_.L,$_.M,$_.P]);for(var _97=0,_98=_96.length;_97<_98;_97++){$_.y=$g(_96,_97);if($ne($_.x,$_.y)){$_.cost=$f($f($g($_.curlen,$_.y)+$g($g($_.shftlen,$_.y),$_.x))+1);if($_.cost<$g($_.nxtlen,$_.y)){$p($_.nxtlen,$_.y,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.y));var _9Y=$_.x==$_.A?$_.as:$_.ps;$k[$j++]=_9Y;$k[$j++]=$_.char;var _9a=$a();var _9b=$k[--$j];$p($k[--$j],_9b,_9a)}}}break}}$_.curlen=$_.nxtlen;$_.curseq=$_.nxtseq});$_.minseq=$_.e;var _9k=$a([$_.A,$_.L,$_.M,$_.P]);for(var _9l=0,_9m=_9k.length;_9l<_9m;_9l++){$_.k=$g(_9k,_9l);if($g($_.curlen,$_.k)<$_.minseq){$_.minseq=$g($_.curlen,$_.k);$_.txtseq=$g($_.curseq,$_.k)}}$_.text=$a($_.minseq);$_.k=0;$_.l=0;for(;;){if($_.k>=$_.txtseq.length){break}$_.char=$g($_.txtseq,$_.k);$k[$j++]=$_.char;if($_[$g($_.textencfuncs,$_.submode)]()===true){break}$_.addtotext();$_.k=$_.k+1;if($_.char==$_.as||$_.char==$_.ps){$k[$j++]=$g($_.txtseq,$_.k);if($_.char==$_.as){$_.enca()}else{$_.encp()}$_.addtotext();$_.k=$_.k+1}if($_.char==$_.al){$_.submode=$_.A}if($_.char==$_.ll){$_.submode=$_.L}if($_.char==$_.ml){$_.submode=$_.M}if($_.char==$_.pl){$_.submode=$_.P}}if($_.text.length%2==1){if($_.submode==$_.P){$k[$j++]="pad";$k[$j++]=$_.al;$_.encp();var _Ab=$k[--$j];$_[$k[--$j]]=_Ab;$_.submode=$_.A}else{$_.nextecitext=false;for(var _Ah=$_.i+1,_Ag=$_.seq.length-1;_Ah<=_Ag;_Ah+=1){$_.ti=_Ah;if($ne($t($g($_.seq,$_.ti)),"arraytype")){$_.nextecitext=false;break}if($g($g($_.seq,$_.ti),0)>-1e6){break}$_.nextecitext=true}if($_.nextecitext){if($_.submode==$_.A){var _B0=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_B0){$k[$j++]="pad";$k[$j++]=$_.ll;$_.enca();var _B2=$k[--$j];$_[$k[--$j]]=_B2;$_.submode=$_.L}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.enca();var _B6=$k[--$j];$_[$k[--$j]]=_B6;$_.submode=$_.M}}else{if($_.submode==$_.M){var _BI=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_BI){$k[$j++]="pad";$k[$j++]=$_.ll;$_.encm();var _BK=$k[--$j];$_[$k[--$j]]=_BK;$_.submode=$_.L}else{var _BU=$g($g($_.charvals,$_.P),$g($g($_.seq,$_.ti),0))!==undefined;if(_BU){$k[$j++]="pad";$k[$j++]=$_.pl;$_.encm();var _BW=$k[--$j];$_[$k[--$j]]=_BW;$_.submode=$_.P}else{$k[$j++]="pad";$k[$j++]=$_.al;$_.encm();var _Ba=$k[--$j];$_[$k[--$j]]=_Ba;$_.submode=$_.A}}}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.encl();var _Be=$k[--$j];$_[$k[--$j]]=_Be;$_.submode=$_.M}}}else{$k[$j++]="pad";$k[$j++]=$_.ps;if($_[$g($_.textencfuncs,$_.submode)]()===true){return true}var _Bm=$k[--$j];$_[$k[--$j]]=_Bm}}$k[$j++]=Infinity;$q($_.text);$k[$j++]=$_.pad;$_.text=$a()}$_.out=$a(~~($_.text.length/2));for(var _Bv=0,_Bu=$_.out.length-1;_Bv<=_Bu;_Bv+=1){$_.k=_Bv;$p($_.out,$_.k,$f($g($_.text,$_.k*2)*30+$g($_.text,$_.k*2+1)))}$k[$j++]=$_.out};$_.encn=function(){$_.in=$k[--$j];$_.out=$a([]);for(var _C9=0,_C8=$_.in.length-1;_C9<=_C8;_C9+=44){$_.k=_C9;$k[$j++]=Infinity;var _CE=$_.in.length-$_.k;$k[$j++]=1;$k[$j++]=$_.in;$k[$j++]=$_.k;$k[$j++]=_CE;if(_CE>44){$j--;$k[$j++]=44}var _CF=$k[--$j];var _CG=$k[--$j];var _CI=$G($k[--$j],_CG,_CF);for(var _CJ=0,_CK=_CI.length;_CJ<_CK;_CJ++){$k[$j++]=$f($g(_CI,_CJ)-48)}$_.gmod=$a();$_.cwn=$a([]);for(;;){$_.dv=900;$_.gmul=$a([]);$_.val=0;for(;;){if($_.gmod.length==0){break}$_.val=$f($_.val*10+$g($_.gmod,0));$_.gmod=$G($_.gmod,1,$_.gmod.length-1);if($_.val<$_.dv){if($_.gmul.length!=0){$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=0;$_.gmul=$a()}}else{$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=~~($_.val/$_.dv);$_.gmul=$a()}$_.val=$_.val%$_.dv}$_.dv=$_.val;$k[$j++]=Infinity;$k[$j++]=$_.dv;$q($_.cwn);$_.cwn=$a();$_.gmod=$_.gmul;if($_.gmul.length==0){break}}$k[$j++]=Infinity;$q($_.out);$q($_.cwn);$_.out=$a()}$k[$j++]=$_.out};$_.ence=function(){var _Ct=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_Ct;if(_Ct<=899){var _Cu=$k[--$j];$k[$j++]=927;$k[$j++]=_Cu;$as($a(2))}else{var _Cw=$k[--$j];$k[$j++]=_Cw;if(_Cw<=810899){var _Cx=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Cx/900)-1;$k[$j++]=_Cx%900;$as($a(3))}else{var _Cz=$k[--$j];$k[$j++]=_Cz;if(_Cz<=811799){var _D0=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_D0-810900);$as($a(2))}else{$k[$j++]="bwipp.pdf417badECI#16787";$k[$j++]="PDF417 supports ECIs 000000 to 811799";bwipp_raiseerror()}}}};$_.encfuncs=$a(["enct","encn","encb"]);$_.addtocws=function(){var _D3=$k[--$j];$P($_.datcws,$_.j,_D3);$_.j=_D3.length+$_.j};$_.state=$_.T;$_.submode=$_.A;$_.datcws=$a($_.seqlen);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.seq.length){break}$_.chars=$g($_.seq,$_.i);if($eq($t($_.chars),"arraytype")){if($g($_.chars,0)<=-1e6){$k[$j++]=$_.chars;$_.ence();$_.addtocws()}else{$k[$j++]=$_.chars;if($_[$g($_.encfuncs,$_.state)]()===true){break}$_.addtocws()}}else{$k[$j++]=$a([$g($_.latchcws,$_.chars)]);$_.addtocws();if($_.chars==$_.tl){$_.state=$_.T;$_.submode=$_.A}if($_.chars==$_.nl){$_.state=$_.N}if($_.chars==$_.bl||$_.chars==$_.bl6){$_.state=$_.B}if($_.chars==$_.bs){$_.i=$_.i+1;$k[$j++]=$g($_.seq,$_.i);$_.encb();$_.addtocws()}}$_.i=$_.i+1}$_.datcws=$G($_.datcws,0,$_.j)}$_.m=$_.datcws.length;if($_.eclevel==-1){if($_.m<=40){$_.eclevel=2}if($_.m>=41&&$_.m<=160){$_.eclevel=3}if($_.m>=161&&$_.m<=320){$_.eclevel=4}if($_.m>=321){$_.eclevel=5}}$_.maxeclevel=~~(Math.log(928-1-$_.m)/Math.log(2))-1;if($_.eclevel>$_.maxeclevel){$_.eclevel=$_.maxeclevel}$_.k=~~Math.pow(2,$_.eclevel+1);if($_.columns==0){$_.columns=~~Math.round(Math.sqrt(($_.m+$_.k)/3))}$k[$j++]="c";if($_.columns>=1){$k[$j++]=$_.columns}else{$k[$j++]=1}var _E8=$k[--$j];$_[$k[--$j]]=_E8;$_.r=~~Math.ceil(($_.m+$_.k+1)/$_.columns);if($_.r<$_.rows&&$_.rows<=90){$_.r=$_.rows}if($_.r<3){$_.r=3}if($_.r>90){$k[$j++]="bwipp.pdf417insufficientCapacity#16850";$k[$j++]="Insufficient capacity in the symbol";bwipp_raiseerror()}var _EJ=$_.c;var _EK=$_.r;var _EL=$_.m;var _EM=8;var _EN=~~(Math.log($f($f(_EJ*_EK-1)-_EL))/Math.log(2))-1;if(~~(Math.log($f($f(_EJ*_EK-1)-_EL))/Math.log(2))-1>8){var _=_EM;_EM=_EN;_EN=_}$_.maxeclevel=_EN;if($_.maxeclevel>$_.eclevel){$_.eclevel=$_.maxeclevel;$_.k=~~Math.pow(2,$_.eclevel+1)}$_.n=$f($_.c*$_.r-$_.k);$_.cws=$a($f($_.c*$_.r+1));$p($_.cws,0,$_.n);$P($_.cws,1,$_.datcws);$k[$j++]=$_.cws;$k[$j++]=$_.m+1;$k[$j++]=Infinity;for(var _Eg=0,_Eh=$f($f($_.n-$_.m)-1);_Eg<_Eh;_Eg++){$k[$j++]=900}var _Ei=$a();var _Ej=$k[--$j];$P($k[--$j],_Ej,_Ei);$k[$j++]=$_.cws;$k[$j++]=$_.n;$k[$j++]=Infinity;for(var _Eo=0,_Ep=$_.k;_Eo<_Ep;_Eo++){$k[$j++]=0}$k[$j++]=0;var _Eq=$a();var _Er=$k[--$j];$P($k[--$j],_Er,_Eq);$k[$j++]=Infinity;$k[$j++]=1;for(var _Et=0,_Eu=928;_Et<_Eu;_Et++){var _Ev=$k[--$j];$k[$j++]=_Ev;$k[$j++]=_Ev*3%929}$_.rsalog=$a();$_.rslog=$a(929);for(var _Ey=1;_Ey<=928;_Ey+=1){$p($_.rslog,$g($_.rsalog,_Ey),_Ey)}$_.rsprod=function(){var _F2=$k[--$j];var _F3=$k[--$j];$k[$j++]=_F3;$k[$j++]=_F2;if(_F2!=0&&_F3!=0){var _F6=$g($_.rslog,$k[--$j]);var _FB=$g($_.rsalog,$f(_F6+$g($_.rslog,$k[--$j]))%928);$k[$j++]=_FB}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _FD=0,_FE=$_.k;_FD<_FE;_FD++){$k[$j++]=0}$_.coeffs=$a();for(var _FI=1,_FH=$_.k;_FI<=_FH;_FI+=1){$_.i=_FI;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _FP=$_.i-1;_FP>=1;_FP-=1){$_.j=_FP;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Fb=$k[--$j];var _Fc=$k[--$j];var _Fd=$k[--$j];$p($k[--$j],_Fd,$f(_Fc+_Fb)%929)}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Fl=$k[--$j];var _Fm=$k[--$j];$p($k[--$j],_Fm,_Fl)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Fs=$_.coeffs.length-1;_Fs>=0;_Fs-=2){var _Ft=$_.coeffs;$p(_Ft,_Fs,$f(929-$g(_Ft,_Fs)))}for(var _Fx=0,_Fw=$f($_.n-1);_Fx<=_Fw;_Fx+=1){$_.t=$f($g($_.cws,_Fx)+$g($_.cws,$_.n))%929;for(var _G5=0,_G4=$_.k-1;_G5<=_G4;_G5+=1){$_.j=_G5;$p($_.cws,$f($_.n+$_.j),$f($g($_.cws,$f($f($_.n+$_.j)+1))+$f(929-$_.t*$g($_.coeffs,$_.k-$_.j-1)%929))%929)}}for(var _GM=$_.n,_GL=$f($_.n+$_.k);_GM<=_GL;_GM+=1){$p($_.cws,_GM,$f(929-$g($_.cws,_GM))%929)}$_.cws=$G($_.cws,0,$_.cws.length-1);var _GU=$g($_.options,"debugcws")!==undefined;if(_GU){$k[$j++]="bwipp.debugcws#16909";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_pdf417.__17153__){$_=Object.create($_);$_.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_pdf417.$ctx[id]=$_[id]);bwipp_pdf417.__17153__=1;$_=Object.getPrototypeOf($_)}$_.cwtobits=function(){var _Gd=$g($_.clusters,$k[--$j]);$_.v=$g(_Gd,$k[--$j]);$k[$j++]=Infinity;for(var _Gg=0,_Gh=17;_Gg<_Gh;_Gg++){$k[$j++]=0}var _Gk=$R($s(17),$_.v,2);for(var _Gl=0,_Gm=_Gk.length;_Gl<_Gm;_Gl++){$k[$j++]=$g(_Gk,_Gl)-48}var _Go=$a();$k[$j++]=$G(_Go,_Go.length-17,17)};if($_.compact){$_.rwid=$f($f($f(17*$_.c+17)+17)+1)}else{$_.rwid=$f($f($f($f(17*$_.c+17)+17)+17)+18)}$_.pixs=$a($_.rwid*$_.r);for(var _Gy=0,_Gx=$_.r-1;_Gy<=_Gx;_Gy+=1){$_.i=_Gy;if($_.i%3==0){$_.lcw=~~($_.i/3)*30+~~(($_.r-1)/3);$_.rcw=$f($f(~~($_.i/3)*30+$_.c)-1)}if($_.i%3==1){$_.lcw=~~($_.i/3)*30+$_.eclevel*3+($_.r-1)%3;$_.rcw=~~($_.i/3)*30+~~(($_.r-1)/3)}if($_.i%3==2){$_.lcw=$f($f(~~($_.i/3)*30+$_.c)-1);$_.rcw=~~($_.i/3)*30+$_.eclevel*3+($_.r-1)%3}$k[$j++]=$_.pixs;$k[$j++]=$_.rwid*$_.i;$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=$_.lcw;$k[$j++]=$_.i%3;$_.cwtobits();$F($k[--$j]);var _HQ=$G($_.cws,$_.c*$_.i,$_.c);for(var _HR=0,_HS=_HQ.length;_HR<_HS;_HR++){$k[$j++]=$g(_HQ,_HR);$k[$j++]=$_.i%3;$_.cwtobits();$F($k[--$j])}if($_.compact){$k[$j++]=1}else{$k[$j++]=$_.rcw;$k[$j++]=$_.i%3;$_.cwtobits();$F($k[--$j]);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1}var _Ha=$a();var _Hb=$k[--$j];$P($k[--$j],_Hb,_Ha)}var _Hk=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.rwid],["pixy",$_.r],["height",$_.r/72*$_.rowmult],["width",$_.rwid/72],["opt",$_.options]]);$k[$j++]=_Hk;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_pdf417compact(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"compact",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_pdf417();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_micropdf417(){$_=Object.create($_);$_.dontdraw=false;$_.version="unset";$_.columns=0;$_.rows=0;$_.rowmult=2;$_.cca=false;$_.ccb=false;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.micropdf417emptyData#17312";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.rowmult<=0){$k[$j++]="bwipp.micropdf417badRowMult#17316";$k[$j++]="The row multiplier must be greater than zero";bwipp_raiseerror()}if($_.cca&&$_.ccb||($_.cca&&$_.raw||$_.ccb&&$_.raw)){$k[$j++]="bwipp.micropdf417ccaAndCcb#17320";$k[$j++]="Cannot combine cca, ccb and raw";bwipp_raiseerror()}if($ne($_.version,"unset")){$X($_.version,"x");if($k[--$j]){var _D=$k[--$j];var _E=$k[--$j];$k[$j++]=_D;$k[$j++]=_E;$j--;var _F=$k[--$j];var _G=$k[--$j];$k[$j++]=_G;$k[$j++]=_F;$k[$j++]=_G;$k[$j++]=_F;$as($a(2));$F($k[--$j],function(){var _J=$k[--$j];$k[$j++]=_J;$k[$j++]=true;if(_J.length==0){$j--;$k[$j++]=false}var _K=$k[--$j];var _L=$k[--$j];$k[$j++]=_K;$F(_L,function(){var _M=$k[--$j];if(_M<48||_M>57){$j--;$k[$j++]=false}});if($nt($k[--$j])){$k[$j++]="bwipp.micropdf417BadVersionBadRowOrColumn#17334";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}});$_.rows=$i($k[--$j]);$_.columns=$i($k[--$j])}else{$j--;$k[$j++]="bwipp.micropdf417badVersionFormat#17340";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}}bwipp_loadctx(bwipp_micropdf417);if(!bwipp_micropdf417.__17431__){$_=Object.create($_);$_.T=0;$_.N=1;$_.B=2;$_.A=0;$_.L=1;$_.M=2;$_.P=3;$_.tl=-1;$_.nl=-2;$_.bl=-3;$_.bl6=-4;$_.bs=-5;$_.al=-6;$_.ll=-7;$_.ml=-8;$_.pl=-9;$_.as=-10;$_.ps=-11;$_.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$_.pl,"?"]),$a([" "," "," ","{"]),$a([$_.ll,$_.as,$_.ll,"}"]),$a([$_.ml,$_.ml,$_.al,"'"]),$a([$_.ps,$_.ps,$_.ps,$_.al])]);$_.charvals=$a([new Map,new Map,new Map,new Map]);$_.alltext=new Map;for(var _19=0,_18=$_.charmaps.length-1;_19<=_18;_19+=1){$_.i=_19;$_.encs=$g($_.charmaps,$_.i);for(var _1D=0;_1D<=3;_1D+=1){$_.j=_1D;var _1G=$g($_.encs,$_.j);$k[$j++]=_1G;if($eq($t(_1G),"stringtype")){var _1J=$g($k[--$j],0);$k[$j++]=_1J}var _1K=$k[--$j];$p($g($_.charvals,$_.j),_1K,$_.i);$p($_.alltext,_1K,-1)}}$_.e=1e4;$_.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$_.latseq=$a([$a([$a([]),$a([$_.ll]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.ml,$_.al]),$a([]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.al]),$a([$_.ll]),$a([]),$a([$_.pl])]),$a([$a([$_.al]),$a([$_.al,$_.ll]),$a([$_.al,$_.ml]),$a([])])]);$_.shftlen=$a([$a([$_.e,$_.e,$_.e,1]),$a([1,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,$_.e])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__17431__=1;$_=Object.getPrototypeOf($_)}if($_.raw||$_.cca){$_.datcws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.barcode.length-3){break}if($g($_.barcode,$_.i)!=94){break}var _2a=$G($_.barcode,$_.i+1,3);$k[$j++]=_2a;$k[$j++]=false;for(var _2b=0,_2c=_2a.length;_2b<_2c;_2b++){var _2d=$g(_2a,_2b);if(_2d<48||_2d>57){$j--;$k[$j++]=true}}if($k[--$j]){$j--;break}$_.cw=$i($k[--$j]);$p($_.datcws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}if($_.i!=$_.barcode.length){$k[$j++]="bwipp.micropdf417badCcaRawFormat#17449";$k[$j++]="cca and raw data must be formatted as ^NNN";bwipp_raiseerror()}$_.datcws=$G($_.datcws,0,$_.j)}$_.encb=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$_.out=$a(~~($_.inlen/6)*5+$_.inlen%6);for(var _2x=0,_2w=~~($_.inlen/6)-1;_2x<=_2w;_2x+=1){$_.k=_2x;$k[$j++]=Infinity;$q($G($_.in,$_.k*6,3));$_.msbs=$a();$k[$j++]=Infinity;$q($_.msbs);var _33=$k[--$j];var _34=$k[--$j];var _35=$k[--$j];$k[$j++]=$f($f(_33+_34*256)+_35*65536);for(var _36=0,_37=3;_36<_37;_36++){var _38=$k[--$j];$k[$j++]=_38%900;$k[$j++]=~~(_38/900)}$_.mscs=$a();$k[$j++]=Infinity;$q($G($_.in,$_.k*6+3,3));$_.lsbs=$a();$k[$j++]=Infinity;$q($_.lsbs);var _3F=$k[--$j];var _3G=$k[--$j];var _3H=$k[--$j];$k[$j++]=$f($f(_3F+_3G*256)+_3H*65536);for(var _3I=0,_3J=3;_3I<_3J;_3I++){var _3K=$k[--$j];$k[$j++]=_3K%900;$k[$j++]=~~(_3K/900)}$_.lscs=$a();var _3N=$g($_.lscs,0);var _3P=$g($_.mscs,0);$p($_.out,$_.k*5+4,$f(_3N+_3P*316)%900);var _3T=$g($_.lscs,1);var _3V=$g($_.mscs,0);var _3X=$g($_.mscs,1);$p($_.out,$_.k*5+3,$f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)%900);var _3b=$g($_.lscs,2);var _3d=$g($_.mscs,0);var _3f=$g($_.mscs,1);var _3h=$g($_.mscs,2);$p($_.out,$_.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)/900)+_3b)+_3d*20)+_3f*641)+_3h*316)%900);var _3l=$g($_.lscs,3);var _3n=$g($_.mscs,1);var _3p=$g($_.mscs,2);$p($_.out,$_.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)/900)+_3b)+_3d*20)+_3f*641)+_3h*316)/900)+_3l)+_3n*20)+_3p*641)%900);$p($_.out,$_.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)/900)+_3b)+_3d*20)+_3f*641)+_3h*316)/900)+_3l)+_3n*20)+_3p*641)/900)+$g($_.mscs,2)*20)%900)}$_.rem=$_.inlen%6;if($_.rem!=0){$k[$j++]=$_.out;$k[$j++]=$_.out.length-$_.rem;$k[$j++]=Infinity;$q($G($_.in,$_.inlen-$_.rem,$_.rem));var _46=$a();var _47=$k[--$j];$P($k[--$j],_47,_46)}$k[$j++]=$_.out};if($_.ccb){$_.barlen=$_.barcode.length;$_.datcws=$a(~~($_.barlen/6)*5+$_.barlen%6+2);$p($_.datcws,0,920);var _4I=$_.barlen%6==0?924:901;$p($_.datcws,1,_4I);$k[$j++]=$_.datcws;$k[$j++]=2;$k[$j++]=Infinity;$F($_.barcode);var _4L=$a();$k[$j++]=_4L;$_.encb();var _4M=$k[--$j];var _4N=$k[--$j];$P($k[--$j],_4N,_4M)}if(!$_.raw&&!$_.cca&&!$_.ccb){var _4U=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true]]);$_.fncvals=_4U;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _4X=$k[--$j];$_[$k[--$j]]=_4X;$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _4b=0,_4c=$_.msglen;_4b<_4c;_4b++){$k[$j++]=0}$k[$j++]=0;$_.numdigits=$a();$k[$j++]=Infinity;for(var _4f=0,_4g=$_.msglen;_4f<_4g;_4f++){$k[$j++]=0}$k[$j++]=0;$_.numtext=$a();$k[$j++]=Infinity;for(var _4j=0,_4k=$_.msglen;_4j<_4k;_4j++){$k[$j++]=0}$k[$j++]=0;$_.numbytes=$a();$k[$j++]=Infinity;for(var _4n=0,_4o=$_.msglen;_4n<_4o;_4n++){$k[$j++]=0}$_.iseci=$a();for(var _4r=$_.msglen-1;_4r>=0;_4r-=1){$_.i=_4r;var _4u=$g($_.msg,$_.i);if(_4u>=48&&_4u<=57){$p($_.numdigits,$_.i,$f($g($_.numdigits,$_.i+1)+1))}var _54=$g($_.alltext,$g($_.msg,$_.i))!==undefined;if(_54&&$g($_.numdigits,$_.i)<13){$p($_.numtext,$_.i,$f($g($_.numtext,$_.i+1)+1))}if($g($_.msg,$_.i)>=0&&$g($_.numtext,$_.i)<5&&$g($_.numdigits,$_.i)<13){$p($_.numbytes,$_.i,$f($g($_.numbytes,$_.i+1)+1))}$p($_.iseci,$_.i,$g($_.msg,$_.i)<=-1e6)}$_.numdigits=$G($_.numdigits,0,$_.msglen);$_.numtext=$G($_.numtext,0,$_.msglen);$_.numbytes=$G($_.numbytes,0,$_.msglen);$_.seq=$a([]);$_.seqlen=0;$_.state=$_.B;$_.p=0;for(;;){if($_.p==$_.msglen){break}if($g($_.iseci,$_.p)){$_.eci=$g($_.msg,$_.p);$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$a([$_.eci]);$_.seq=$a();$_.p=$_.p+1;$k[$j++]="seqlen";$k[$j++]=$_.seqlen;if($_.eci<=-1810900){$k[$j++]=2}else{var _5x=$_.eci<=-1000900?3:2;$k[$j++]=_5x}var _5y=$k[--$j];var _5z=$k[--$j];$_[$k[--$j]]=$f(_5z+_5y)}else{$_.n=$g($_.numdigits,$_.p);if($_.n>=13||$_.n==$_.msglen&&$_.n>=8){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.nl;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.n));var _6E=$a();$k[$j++]=_6E;$_.seq=$a();$_.state=$_.N;$_.p=$f($_.p+$_.n);$_.seqlen=$f($_.seqlen+1+$_.n)}else{$_.t=$g($_.numtext,$_.p);if($_.t>=5){$k[$j++]=Infinity;$q($_.seq);if($_.state!=$_.T){$k[$j++]=$_.tl}$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.t));var _6X=$a();$k[$j++]=_6X;$_.seq=$a();$_.state=$_.T;$_.p=$f($_.p+$_.t);$_.seqlen=$f($f($_.seqlen+1)+$_.t)}else{$_.b=$g($_.numbytes,$_.p);if($_.b==1&&$_.state==$_.T){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.bs;$k[$j++]=$a([$g($_.msg,$_.p)]);$_.seq=$a();$_.p=$f($_.p+$_.b);$_.seqlen=$f($_.seqlen+2)}else{$k[$j++]=Infinity;$q($_.seq);var _6w=$_.b%6!=0?$_.bl:$_.bl6;$k[$j++]=_6w;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.b));var _71=$a();$k[$j++]=_71;$_.seq=$a();$_.state=$_.B;$_.p=$f($_.p+$_.b);$_.seqlen=$f($f($_.seqlen+1)+$_.b)}}}}}$k[$j++]=Infinity;$k[$j++]=$_.tl;$k[$j++]=900;$k[$j++]=$_.bl;$k[$j++]=901;$k[$j++]=$_.bl6;$k[$j++]=924;$k[$j++]=$_.nl;$k[$j++]=902;$k[$j++]=$_.bs;$k[$j++]=913;$_.latchcws=$d();$_.enca=function(){var _7I=$g($g($_.charvals,$_.A),$k[--$j]);$k[$j++]=_7I};$_.encl=function(){var _7N=$g($g($_.charvals,$_.L),$k[--$j]);$k[$j++]=_7N};$_.encm=function(){var _7S=$g($g($_.charvals,$_.M),$k[--$j]);$k[$j++]=_7S};$_.encp=function(){var _7X=$g($g($_.charvals,$_.P),$k[--$j]);$k[$j++]=_7X};$_.textencfuncs=$a(["enca","encl","encm","encp"]);$_.addtotext=function(){$p($_.text,$_.l,$k[--$j]);$_.l=$_.l+1};$_.enct=function(){$_.in=$k[--$j];$_.curlen=$a([$_.e,$_.e,$_.e,$_.e]);$p($_.curlen,$_.submode,0);$_.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($_.in,function(){$_.char=$k[--$j];for(;;){$_.imp=false;var _7w=$a([$_.A,$_.L,$_.M,$_.P]);for(var _7x=0,_7y=_7w.length;_7x<_7y;_7x++){$_.x=$g(_7w,_7x);var _84=$a([$_.A,$_.L,$_.M,$_.P]);for(var _85=0,_86=_84.length;_85<_86;_85++){$_.y=$g(_84,_85);$_.cost=$f($g($_.curlen,$_.x)+$g($g($_.latlen,$_.x),$_.y));if($_.cost<$g($_.curlen,$_.y)){$p($_.curlen,$_.y,$_.cost);$k[$j++]=$_.curseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$q($g($g($_.latseq,$_.x),$_.y));var _8X=$a();var _8Y=$k[--$j];$p($k[--$j],_8Y,_8X);$_.imp=true}}}if(!$_.imp){break}}$_.nxtlen=$a([$_.e,$_.e,$_.e,$_.e]);$_.nxtseq=$a(4);var _8l=$a([$_.A,$_.L,$_.M,$_.P]);for(var _8m=0,_8n=_8l.length;_8m<_8n;_8m++){$_.x=$g(_8l,_8m);for(;;){var _8t=$g($g($_.charvals,$_.x),$_.char)!==undefined;if(!_8t){break}$_.cost=$f($g($_.curlen,$_.x)+1);if($_.cost<$g($_.nxtlen,$_.x)){$p($_.nxtlen,$_.x,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.x;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$k[$j++]=$_.char;var _9A=$a();var _9B=$k[--$j];$p($k[--$j],_9B,_9A)}var _9H=$a([$_.A,$_.L,$_.M,$_.P]);for(var _9I=0,_9J=_9H.length;_9I<_9J;_9I++){$_.y=$g(_9H,_9I);if($ne($_.x,$_.y)){$_.cost=$f($f($g($_.curlen,$_.y)+$g($g($_.shftlen,$_.y),$_.x))+1);if($_.cost<$g($_.nxtlen,$_.y)){$p($_.nxtlen,$_.y,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.y));var _9j=$_.x==$_.A?$_.as:$_.ps;$k[$j++]=_9j;$k[$j++]=$_.char;var _9l=$a();var _9m=$k[--$j];$p($k[--$j],_9m,_9l)}}}break}}$_.curlen=$_.nxtlen;$_.curseq=$_.nxtseq});$_.minseq=$_.e;var _9v=$a([$_.A,$_.L,$_.M,$_.P]);for(var _9w=0,_9x=_9v.length;_9w<_9x;_9w++){$_.k=$g(_9v,_9w);if($g($_.curlen,$_.k)<$_.minseq){$_.minseq=$g($_.curlen,$_.k);$_.txtseq=$g($_.curseq,$_.k)}}$_.text=$a($_.minseq);$_.k=0;$_.l=0;for(;;){if($_.k>=$_.txtseq.length){break}$_.char=$g($_.txtseq,$_.k);$k[$j++]=$_.char;if($_[$g($_.textencfuncs,$_.submode)]()===true){break}$_.addtotext();$_.k=$_.k+1;if($_.char==$_.as||$_.char==$_.ps){$k[$j++]=$g($_.txtseq,$_.k);if($_.char==$_.as){$_.enca()}else{$_.encp()}$_.addtotext();$_.k=$_.k+1}if($_.char==$_.al){$_.submode=$_.A}if($_.char==$_.ll){$_.submode=$_.L}if($_.char==$_.ml){$_.submode=$_.M}if($_.char==$_.pl){$_.submode=$_.P}}if($_.text.length%2==1){if($_.submode==$_.P){$k[$j++]="pad";$k[$j++]=$_.al;$_.encp();var _Am=$k[--$j];$_[$k[--$j]]=_Am;$_.submode=$_.A}else{$_.nextecitext=false;for(var _As=$_.i+1,_Ar=$_.seq.length-1;_As<=_Ar;_As+=1){$_.ti=_As;if($ne($t($g($_.seq,$_.ti)),"arraytype")){$_.nextecitext=false;break}if($g($g($_.seq,$_.ti),0)>-1e6){break}$_.nextecitext=true}if($_.nextecitext){if($_.submode==$_.A){var _BB=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_BB){$k[$j++]="pad";$k[$j++]=$_.ll;$_.enca();var _BD=$k[--$j];$_[$k[--$j]]=_BD;$_.submode=$_.L}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.enca();var _BH=$k[--$j];$_[$k[--$j]]=_BH;$_.submode=$_.M}}else{if($_.submode==$_.M){var _BT=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_BT){$k[$j++]="pad";$k[$j++]=$_.ll;$_.encm();var _BV=$k[--$j];$_[$k[--$j]]=_BV;$_.submode=$_.L}else{var _Bf=$g($g($_.charvals,$_.P),$g($g($_.seq,$_.ti),0))!==undefined;if(_Bf){$k[$j++]="pad";$k[$j++]=$_.pl;$_.encm();var _Bh=$k[--$j];$_[$k[--$j]]=_Bh;$_.submode=$_.P}else{$k[$j++]="pad";$k[$j++]=$_.al;$_.encm();var _Bl=$k[--$j];$_[$k[--$j]]=_Bl;$_.submode=$_.A}}}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.encl();var _Bp=$k[--$j];$_[$k[--$j]]=_Bp;$_.submode=$_.M}}}else{$k[$j++]="pad";$k[$j++]=$_.ps;if($_[$g($_.textencfuncs,$_.submode)]()===true){return true}var _Bx=$k[--$j];$_[$k[--$j]]=_Bx}}$k[$j++]=Infinity;$q($_.text);$k[$j++]=$_.pad;$_.text=$a()}$_.out=$a(~~($_.text.length/2));for(var _C6=0,_C5=$_.out.length-1;_C6<=_C5;_C6+=1){$_.k=_C6;$p($_.out,$_.k,$f($g($_.text,$_.k*2)*30+$g($_.text,$_.k*2+1)))}$k[$j++]=$_.out};$_.encn=function(){$_.in=$k[--$j];$_.out=$a([]);for(var _CK=0,_CJ=$_.in.length-1;_CK<=_CJ;_CK+=44){$_.k=_CK;$k[$j++]=Infinity;var _CP=$_.in.length-$_.k;$k[$j++]=1;$k[$j++]=$_.in;$k[$j++]=$_.k;$k[$j++]=_CP;if(_CP>44){$j--;$k[$j++]=44}var _CQ=$k[--$j];var _CR=$k[--$j];var _CT=$G($k[--$j],_CR,_CQ);for(var _CU=0,_CV=_CT.length;_CU<_CV;_CU++){$k[$j++]=$f($g(_CT,_CU)-48)}$_.gmod=$a();$_.cwn=$a([]);for(;;){$_.dv=900;$_.gmul=$a([]);$_.val=0;for(;;){if($_.gmod.length==0){break}$_.val=$f($_.val*10+$g($_.gmod,0));$_.gmod=$G($_.gmod,1,$_.gmod.length-1);if($_.val<$_.dv){if($_.gmul.length!=0){$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=0;$_.gmul=$a()}}else{$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=~~($_.val/$_.dv);$_.gmul=$a()}$_.val=$_.val%$_.dv}$_.dv=$_.val;$k[$j++]=Infinity;$k[$j++]=$_.dv;$q($_.cwn);$_.cwn=$a();$_.gmod=$_.gmul;if($_.gmul.length==0){break}}$k[$j++]=Infinity;$q($_.out);$q($_.cwn);$_.out=$a()}$k[$j++]=$_.out};$_.ence=function(){var _D4=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_D4;if(_D4<=899){var _D5=$k[--$j];$k[$j++]=927;$k[$j++]=_D5;$as($a(2))}else{var _D7=$k[--$j];$k[$j++]=_D7;if(_D7<=810899){var _D8=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_D8/900)-1;$k[$j++]=_D8%900;$as($a(3))}else{var _DA=$k[--$j];$k[$j++]=_DA;if(_DA<=811799){var _DB=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_DB-810900);$as($a(2))}else{$k[$j++]="bwipp.pdf417badECI#17816";$k[$j++]="PDF417 supports ECIs 000000 to 811799";bwipp_raiseerror()}}}};$_.encfuncs=$a(["enct","encn","encb"]);$_.addtocws=function(){var _DE=$k[--$j];$P($_.datcws,$_.j,_DE);$_.j=_DE.length+$_.j};$_.datcws=$a($_.seqlen);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.seq.length){break}$_.chars=$g($_.seq,$_.i);if($eq($t($_.chars),"arraytype")){if($g($_.chars,0)<=-1e6){$k[$j++]=$_.chars;$_.ence();$_.addtocws()}else{$k[$j++]=$_.chars;if($_[$g($_.encfuncs,$_.state)]()===true){break}$_.addtocws()}}else{$k[$j++]=$a([$g($_.latchcws,$_.chars)]);$_.addtocws();if($_.chars==$_.tl){$_.state=$_.T;$_.submode=$_.A}if($_.chars==$_.nl){$_.state=$_.N}if($_.chars==$_.bl||$_.chars==$_.bl6){$_.state=$_.B}if($_.chars==$_.bs){$_.i=$_.i+1;$k[$j++]=$g($_.seq,$_.i);$_.encb();$_.addtocws()}}$_.i=$_.i+1}$_.datcws=$G($_.datcws,0,$_.j)}if(!bwipp_micropdf417.__17915__){$_=Object.create($_);$_.ccametrics=$a([$a([2,5,4,39,0,19]),$a([2,6,4,1,0,33]),$a([2,7,5,32,0,12]),$a([2,8,5,8,0,40]),$a([2,9,6,14,0,46]),$a([2,10,6,43,0,23]),$a([2,12,7,20,0,52]),$a([3,4,4,11,43,23]),$a([3,5,5,1,33,13]),$a([3,6,6,5,37,17]),$a([3,7,7,15,47,27]),$a([3,8,7,21,1,33]),$a([4,3,4,40,20,52]),$a([4,4,5,43,23,3]),$a([4,5,6,46,26,6]),$a([4,6,7,34,14,46]),$a([4,7,8,29,9,41])]);$_.nonccametrics=$a([$a([1,11,7,1,0,9]),$a([1,14,7,8,0,8]),$a([1,17,7,36,0,36]),$a([1,20,8,19,0,19]),$a([1,24,8,9,0,17]),$a([1,28,8,25,0,33]),$a([2,8,8,1,0,1]),$a([2,11,9,1,0,9]),$a([2,14,9,8,0,8]),$a([2,17,10,36,0,36]),$a([2,20,11,19,0,19]),$a([2,23,13,9,0,17]),$a([2,26,15,27,0,35]),$a([3,6,12,1,1,1]),$a([3,8,14,7,7,7]),$a([3,10,16,15,15,15]),$a([3,12,18,25,25,25]),$a([3,15,21,37,37,37]),$a([3,20,26,1,17,33]),$a([3,26,32,1,9,17]),$a([3,32,38,21,29,37]),$a([3,38,44,15,31,47]),$a([3,44,50,1,25,49]),$a([4,4,8,47,19,43]),$a([4,6,12,1,1,1]),$a([4,8,14,7,7,7]),$a([4,10,16,15,15,15]),$a([4,12,18,25,25,25]),$a([4,15,21,37,37,37]),$a([4,20,26,1,17,33]),$a([4,26,32,1,9,17]),$a([4,32,38,21,29,37]),$a([4,38,44,15,31,47]),$a([4,44,50,1,25,49])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__17915__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="metrics";if($_.cca){$k[$j++]=$_.ccametrics}else{$k[$j++]=$_.nonccametrics}var _Eu=$k[--$j];$_[$k[--$j]]=_Eu;$_.urows=$_.rows;$_.ucols=$_.columns;$F($_.metrics,function(){$_.m=$k[--$j];$_.c=$g($_.m,0);$_.r=$g($_.m,1);$_.k=$g($_.m,2);$_.rapl=$g($_.m,3);$_.rapc=$g($_.m,4);$_.rapr=$g($_.m,5);$_.ncws=$f($_.r*$_.c-$_.k);$_.okay=true;if($_.datcws.length>$_.ncws){$_.okay=false}if($_.urows!=0&&$_.urows!=$_.r){$_.okay=false}if($_.ucols!=0&&$_.ucols!=$_.c){$_.okay=false}if($_.okay){return true}});if(!$_.okay){$k[$j++]="bwipp.micropdf417noValidSymbol#17939";$k[$j++]="Maximum length exceeded or invalid size";bwipp_raiseerror()}$_.m=$_.datcws.length;$_.n=$f($_.c*$_.r-$_.k);$_.cws=$a($f($_.c*$_.r+1));$P($_.cws,0,$_.datcws);$k[$j++]=$_.cws;$k[$j++]=$_.m;$k[$j++]=Infinity;for(var _Fc=0,_Fd=$f($_.n-$_.m);_Fc<_Fd;_Fc++){$k[$j++]=900}var _Fe=$a();var _Ff=$k[--$j];$P($k[--$j],_Ff,_Fe);$k[$j++]=$_.cws;$k[$j++]=$_.n;$k[$j++]=Infinity;for(var _Fk=0,_Fl=$_.k;_Fk<_Fl;_Fk++){$k[$j++]=0}$k[$j++]=0;var _Fm=$a();var _Fn=$k[--$j];$P($k[--$j],_Fn,_Fm);if(!bwipp_micropdf417.__17955__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _Fp=0,_Fq=928;_Fp<_Fq;_Fp++){var _Fr=$k[--$j];$k[$j++]=_Fr;$k[$j++]=_Fr*3%929}$_.rsalog=$a();$_.rslog=$a(929);for(var _Fu=1;_Fu<=928;_Fu+=1){$p($_.rslog,$g($_.rsalog,_Fu),_Fu)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__17955__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _Fz=$k[--$j];var _G0=$k[--$j];$k[$j++]=_G0;$k[$j++]=_Fz;if(_Fz!=0&&_G0!=0){var _G3=$g($_.rslog,$k[--$j]);var _G8=$g($_.rsalog,$f(_G3+$g($_.rslog,$k[--$j]))%928);$k[$j++]=_G8}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _GA=0,_GB=$_.k;_GA<_GB;_GA++){$k[$j++]=0}$_.coeffs=$a();for(var _GF=1,_GE=$_.k;_GF<=_GE;_GF+=1){$_.i=_GF;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _GM=$_.i-1;_GM>=1;_GM-=1){$_.j=_GM;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _GY=$k[--$j];var _GZ=$k[--$j];var _Ga=$k[--$j];$p($k[--$j],_Ga,$f(_GZ+_GY)%929)}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Gi=$k[--$j];var _Gj=$k[--$j];$p($k[--$j],_Gj,_Gi)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Gp=$_.coeffs.length-1;_Gp>=0;_Gp-=2){var _Gq=$_.coeffs;$p(_Gq,_Gp,$f(929-$g(_Gq,_Gp)))}for(var _Gu=0,_Gt=$f($_.n-1);_Gu<=_Gt;_Gu+=1){$_.t=$f($g($_.cws,_Gu)+$g($_.cws,$_.n))%929;for(var _H2=0,_H1=$f($_.k-1);_H2<=_H1;_H2+=1){$_.j=_H2;$p($_.cws,$f($_.n+$_.j),$f($g($_.cws,$f($f($_.n+$_.j)+1))+$f(929-$_.t*$g($_.coeffs,$f($f($_.k-$_.j)-1))%929))%929)}}for(var _HJ=$_.n,_HI=$f($_.n+$_.k);_HJ<=_HI;_HJ+=1){$p($_.cws,_HJ,$f(929-$g($_.cws,_HJ))%929)}$_.cws=$G($_.cws,0,$_.cws.length-1);var _HR=$g($_.options,"debugcws")!==undefined;if(_HR){$k[$j++]="bwipp.debugcws#17993";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_micropdf417.__18252__){$_=Object.create($_);$_.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);$_.raps=$a([$a([802,930,946,818,882,890,826,954,922,986,970,906,778,794,786,914,978,982,980,916,948,932,934,942,940,936,808,812,814,806,822,950,918,790,788,820,884,868,870,878,876,872,840,856,860,862,846,844,836,838,834,866]),$a([718,590,622,558,550,566,534,530,538,570,562,546,610,626,634,762,754,758,630,628,612,614,582,578,706,738,742,740,748,620,556,552,616,744,712,716,708,710,646,654,652,668,664,696,688,656,720,592,600,604,732,734])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__18252__=1;$_=Object.getPrototypeOf($_)}$_.cwtobits=function(){var _Hd=$g($_.clusters,$k[--$j]);$_.v=$g(_Hd,$k[--$j]);$k[$j++]=Infinity;for(var _Hg=0,_Hh=17;_Hg<_Hh;_Hg++){$k[$j++]=0}var _Hk=$R($s(17),$_.v,2);for(var _Hl=0,_Hm=_Hk.length;_Hl<_Hm;_Hl++){$k[$j++]=$g(_Hk,_Hl)-48}var _Ho=$a();$k[$j++]=$G(_Ho,_Ho.length-17,17)};$_.raptobits=function(){var _Hs=$g($_.raps,$k[--$j]);$_.v=$g(_Hs,$k[--$j]);$k[$j++]=Infinity;for(var _Hv=0,_Hw=10;_Hv<_Hw;_Hv++){$k[$j++]=0}var _Hz=$R($s(10),$_.v,2);for(var _I0=0,_I1=_Hz.length;_I0<_I1;_I0++){$k[$j++]=$g(_Hz,_I0)-48}var _I3=$a();$k[$j++]=$G(_I3,_I3.length-10,10)};$_.rwid=$g($a([38,55,82,99]),$f($_.c-1));if($_.c==3&&$_.cca){$_.rwid=72}$_.pixs=$a($_.rwid*$_.r);for(var _IF=0,_IE=$f($_.r-1);_IF<=_IE;_IF+=1){$_.i=_IF;$_.clst=$f($f($_.i+$_.rapl)-1)%3;$k[$j++]=$_.pixs;$k[$j++]=$_.rwid*$_.i;$k[$j++]=Infinity;if($_.c==1){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}if($_.c==2){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*2);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*2+1);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}if($_.c==3){if(!$_.cca){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}$k[$j++]=$g($_.cws,$_.i*3);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapc)-1)%52;$k[$j++]=1;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*3+1);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*3+2);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}if($_.c==4){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4+1);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapc)-1)%52;$k[$j++]=1;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4+2);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4+3);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}$k[$j++]=1;var _Ji=$a();var _Jj=$k[--$j];$P($k[--$j],_Jj,_Ji)}var _Js=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.rwid],["pixy",$_.r],["height",$_.r/72*$_.rowmult],["width",$_.rwid/72],["opt",$_.options]]);$k[$j++]=_Js;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_datamatrix(){$_=Object.create($_);$_.dontdraw=false;$_.columns=0;$_.rows=0;$_.format="unset";$_.version="unset";$_.parse=false;$_.parsefnc=false;$_.c40headerlength=-1;$_.raw=false;$_.dmre=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.datamatrixEmptyData#18375";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($ne($_.version,"unset")&&($_.rows!=0||$_.columns!=0)){$k[$j++]="bwipp.datamatrixVersionRowsCols#18379";$k[$j++]="rows and columns must not be given if version is specified";bwipp_raiseerror()}if($ne($_.version,"unset")){$X($_.version,"x");if($k[--$j]){var _9=$k[--$j];var _A=$k[--$j];$k[$j++]=_9;$k[$j++]=_A;$j--;var _B=$k[--$j];var _C=$k[--$j];$k[$j++]=_C;$k[$j++]=_B;$k[$j++]=_C;$k[$j++]=_B;$as($a(2));$F($k[--$j],function(){var _F=$k[--$j];$k[$j++]=_F;$k[$j++]=true;if(_F.length==0){$j--;$k[$j++]=false}var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$F(_H,function(){var _I=$k[--$j];if(_I<48||_I>57){$j--;$k[$j++]=false}});if($nt($k[--$j])){$k[$j++]="bwipp.datamatrixVersionBadRowOrColumn#18393";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}});$_.rows=$i($k[--$j]);$_.columns=$i($k[--$j]);$k[$j++]="format";if($_.rows==$_.columns){$k[$j++]="square"}else{$k[$j++]="rectangle"}var _O=$k[--$j];$_[$k[--$j]]=_O}else{$j--;$k[$j++]="bwipp.datamatrixVersionFormat#18400";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}}else{if($eq($_.format,"unset")){$k[$j++]="format";if($_.dmre){$k[$j++]="rectangle"}else{$k[$j++]="square"}var _S=$k[--$j];$_[$k[--$j]]=_S}}if($ne($_.format,"square")&&$ne($_.format,"rectangle")){$k[$j++]="bwipp.datamatrixInvalidFormat#18409";$k[$j++]="The format must be either square or rectangle";bwipp_raiseerror()}bwipp_loadctx(bwipp_datamatrix);if(!bwipp_datamatrix.__18469__){$_=Object.create($_);var _18=$a([16,64,1,4,36,1,1]);$_.metrics=$a([$a([10,10,1,1,5,1,0]),$a([12,12,1,1,7,1,0]),$a([14,14,1,1,10,1,0]),$a([16,16,1,1,12,1,0]),$a([18,18,1,1,14,1,0]),$a([20,20,1,1,18,1,0]),$a([22,22,1,1,20,1,0]),$a([24,24,1,1,24,1,0]),$a([26,26,1,1,28,1,0]),$a([32,32,2,2,36,1,0]),$a([36,36,2,2,42,1,0]),$a([40,40,2,2,48,1,0]),$a([44,44,2,2,56,1,0]),$a([48,48,2,2,68,1,0]),$a([52,52,2,2,84,2,0]),$a([64,64,4,4,112,2,0]),$a([72,72,4,4,144,4,0]),$a([80,80,4,4,192,4,0]),$a([88,88,4,4,224,4,0]),$a([96,96,4,4,272,4,0]),$a([104,104,4,4,336,6,0]),$a([120,120,6,6,408,6,0]),$a([132,132,6,6,496,8,0]),$a([144,144,6,6,620,10,0]),$a([8,18,1,1,7,1,0]),$a([8,32,1,2,11,1,0]),$a([8,48,1,2,15,1,1]),$a([8,64,1,4,18,1,1]),$a([8,80,1,4,22,1,1]),$a([8,96,1,4,28,1,1]),$a([8,120,1,6,32,1,1]),$a([8,144,1,6,36,1,1]),$a([12,26,1,1,14,1,0]),$a([12,36,1,2,18,1,0]),$a([12,64,1,4,27,1,1]),$a([12,88,1,4,36,1,1]),$a([16,36,1,2,24,1,0]),$a([16,48,1,2,28,1,0]),_18,$a([20,36,1,2,28,1,1]),$a([20,44,1,2,34,1,1]),$a([20,64,1,4,42,1,1]),$a([22,48,1,2,38,1,1]),$a([24,48,1,2,41,1,1]),$a([24,64,1,4,46,1,1]),$a([26,40,1,2,38,1,1]),$a([26,48,1,2,42,1,1]),$a([26,64,1,4,50,1,1])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_datamatrix.$ctx[id]=$_[id]);bwipp_datamatrix.__18469__=1;$_=Object.getPrototypeOf($_)}$_.urows=$_.rows;$_.ucols=$_.columns;$_.fullcws=$a([]);var _1N=$_.metrics;for(var _1O=0,_1P=_1N.length;_1O<_1P;_1O++){$_.m=$g(_1N,_1O);$_.rows=$g($_.m,0);$_.cols=$g($_.m,1);$_.regh=$g($_.m,2);$_.regv=$g($_.m,3);$_.rscw=$g($_.m,4);$_.rsbl=$g($_.m,5);$_.doly=$g($_.m,6);$_.mrows=$f($_.rows-2*$_.regh);$_.mcols=$f($_.cols-2*$_.regv);$_.ncws=$f(~~($_.mrows*$_.mcols/8)-$_.rscw);$_.okay=true;if($_.urows!=0&&$_.urows!=$_.rows){$_.okay=false}if($_.ucols!=0&&$_.ucols!=$_.cols){$_.okay=false}if($eq($_.format,"square")&&$ne($_.rows,$_.cols)){$_.okay=false}if($eq($_.format,"rectangle")&&$eq($_.rows,$_.cols)){$_.okay=false}if(!$_.dmre&&$_.doly==1){$_.okay=false}if($_.okay){$k[$j++]=Infinity;$q($_.fullcws);$k[$j++]=$_.ncws;$_.fullcws=$a()}}$k[$j++]=Infinity;for(var _24=0,_25=1558;_24<_25;_24++){$k[$j++]=1e4}$_.numremcws=$a();var _27=$_.fullcws;for(var _28=0,_29=_27.length;_28<_29;_28++){$p($_.numremcws,$f($g(_27,_28)-1),1)}for(var _2C=1556;_2C>=0;_2C-=1){$_.i=_2C;if($g($_.numremcws,$_.i)!=1){$p($_.numremcws,$_.i,$f($g($_.numremcws,$_.i+1)+1))}}if(!bwipp_datamatrix.__18615__){$_=Object.create($_);$_.fnc1=-1;$_.prog=-2;$_.m05=-3;$_.m06=-4;$_.lC=-5;$_.lB=-6;$_.lX=-7;$_.lT=-8;$_.lE=-9;$_.unl=-10;$_.sapp=-11;$_.usft=-12;$_.sft1=-13;$_.sft2=-14;$_.sft3=-15;$_.eci=-16;$_.pad=-17;$_.unlcw=254;$k[$j++]=Infinity;for(var _2L=0;_2L<=128;_2L+=1){$k[$j++]=_2L;$k[$j++]=_2L+1}$k[$j++]=$_.pad;$k[$j++]=129;for(var _2N=0;_2N<=99;_2N+=1){var _2P=$R($s(2),_2N,10);var _2R=$Z($s(2),"00");$P(_2R,2-_2P.length,_2P);$k[$j++]=_2R;$k[$j++]=_2N+130}var _2e=$a([$_.lC,$_.lB,$_.fnc1,$_.sapp,$_.prog,$_.usft,$_.m05,$_.m06,$_.lX,$_.lT,$_.lE,$_.eci]);$k[$j++]=229;for(var _2f=0,_2g=_2e.length;_2f<_2g;_2f++){var _2j=$f($k[--$j]+1);$k[$j++]=$g(_2e,_2f);$k[$j++]=_2j;$k[$j++]=_2j}$j--;$_.Avals=$d();$k[$j++]=Infinity;var _2l=$_.Avals;for(var _2q=_2l.size,_2p=_2l.keys(),_2o=0;_2o<_2q;_2o++){var _2m=_2p.next().value;$k[$j++]=_2m;$k[$j++]=_2l.get(_2m);$k[$j++]=Infinity;var _2r=$k[--$j];var _2s=$k[--$j];$k[$j++]=_2r;$k[$j++]=_2s;var _2t=$a();$k[$j++]=_2t}$_.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _2y=48;_2y<=57;_2y+=1){$k[$j++]=_2y;$k[$j++]=_2y-44}for(var _2z=65;_2z<=90;_2z+=1){$k[$j++]=_2z;$k[$j++]=_2z-51}$_.CNvals=$d();$k[$j++]=Infinity;for(var _31=0;_31<=31;_31+=1){$k[$j++]=_31;$k[$j++]=_31}$_.C1vals=$d();$k[$j++]=Infinity;for(var _33=33;_33<=47;_33+=1){$k[$j++]=_33;$k[$j++]=_33-33}for(var _34=58;_34<=64;_34+=1){$k[$j++]=_34;$k[$j++]=_34-43}for(var _35=91;_35<=95;_35+=1){$k[$j++]=_35;$k[$j++]=_35-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.usft;$k[$j++]=30;$_.C2vals=$d();$k[$j++]=Infinity;for(var _39=96;_39<=127;_39+=1){$k[$j++]=_39;$k[$j++]=_39-96}$_.C3vals=$d();$k[$j++]=Infinity;var _3B=$_.CNvals;for(var _3G=_3B.size,_3F=_3B.keys(),_3E=0;_3E<_3G;_3E++){var _3C=_3F.next().value;$k[$j++]=_3C;$k[$j++]=_3B.get(_3C);$k[$j++]=Infinity;var _3H=$k[--$j];var _3I=$k[--$j];$k[$j++]=_3H;$k[$j++]=_3I;var _3J=$a();$k[$j++]=_3J}var _3K=$_.C1vals;for(var _3P=_3K.size,_3O=_3K.keys(),_3N=0;_3N<_3P;_3N++){var _3L=_3O.next().value;$k[$j++]=_3L;$k[$j++]=_3K.get(_3L);$k[$j++]=Infinity;var _3Q=$k[--$j];var _3R=$k[--$j];$k[$j++]=_3Q;$k[$j++]=$g($_.CNvals,$_.sft1);$k[$j++]=_3R;var _3V=$a();$k[$j++]=_3V}var _3W=$_.C2vals;for(var _3b=_3W.size,_3a=_3W.keys(),_3Z=0;_3Z<_3b;_3Z++){var _3X=_3a.next().value;$k[$j++]=_3X;$k[$j++]=_3W.get(_3X);$k[$j++]=Infinity;var _3c=$k[--$j];var _3d=$k[--$j];$k[$j++]=_3c;$k[$j++]=$g($_.CNvals,$_.sft2);$k[$j++]=_3d;var _3h=$a();$k[$j++]=_3h}var _3i=$_.C3vals;for(var _3n=_3i.size,_3m=_3i.keys(),_3l=0;_3l<_3n;_3l++){var _3j=_3m.next().value;$k[$j++]=_3j;$k[$j++]=_3i.get(_3j);$k[$j++]=Infinity;var _3o=$k[--$j];var _3p=$k[--$j];$k[$j++]=_3o;$k[$j++]=$g($_.CNvals,$_.sft3);$k[$j++]=_3p;var _3t=$a();$k[$j++]=_3t}$_.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _3y=48;_3y<=57;_3y+=1){$k[$j++]=_3y;$k[$j++]=_3y-44}for(var _3z=97;_3z<=122;_3z+=1){$k[$j++]=_3z;$k[$j++]=_3z-83}$_.TNvals=$d();$k[$j++]=Infinity;for(var _41=0;_41<=31;_41+=1){$k[$j++]=_41;$k[$j++]=_41}$_.T1vals=$d();$k[$j++]=Infinity;for(var _43=33;_43<=47;_43+=1){$k[$j++]=_43;$k[$j++]=_43-33}for(var _44=58;_44<=64;_44+=1){$k[$j++]=_44;$k[$j++]=_44-43}for(var _45=91;_45<=95;_45+=1){$k[$j++]=_45;$k[$j++]=_45-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.usft;$k[$j++]=30;$_.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _49=65;_49<=90;_49+=1){$k[$j++]=_49;$k[$j++]=_49-64}for(var _4A=123;_4A<=127;_4A+=1){$k[$j++]=_4A;$k[$j++]=_4A-96}$_.T3vals=$d();$k[$j++]=Infinity;var _4C=$_.TNvals;for(var _4H=_4C.size,_4G=_4C.keys(),_4F=0;_4F<_4H;_4F++){var _4D=_4G.next().value;$k[$j++]=_4D;$k[$j++]=_4C.get(_4D);$k[$j++]=Infinity;var _4I=$k[--$j];var _4J=$k[--$j];$k[$j++]=_4I;$k[$j++]=_4J;var _4K=$a();$k[$j++]=_4K}var _4L=$_.T1vals;for(var _4Q=_4L.size,_4P=_4L.keys(),_4O=0;_4O<_4Q;_4O++){var _4M=_4P.next().value;$k[$j++]=_4M;$k[$j++]=_4L.get(_4M);$k[$j++]=Infinity;var _4R=$k[--$j];var _4S=$k[--$j];$k[$j++]=_4R;$k[$j++]=$g($_.TNvals,$_.sft1);$k[$j++]=_4S;var _4W=$a();$k[$j++]=_4W}var _4X=$_.T2vals;for(var _4c=_4X.size,_4b=_4X.keys(),_4a=0;_4a<_4c;_4a++){var _4Y=_4b.next().value;$k[$j++]=_4Y;$k[$j++]=_4X.get(_4Y);$k[$j++]=Infinity;var _4d=$k[--$j];var _4e=$k[--$j];$k[$j++]=_4d;$k[$j++]=$g($_.TNvals,$_.sft2);$k[$j++]=_4e;var _4i=$a();$k[$j++]=_4i}var _4j=$_.T3vals;for(var _4o=_4j.size,_4n=_4j.keys(),_4m=0;_4m<_4o;_4m++){var _4k=_4n.next().value;$k[$j++]=_4k;$k[$j++]=_4j.get(_4k);$k[$j++]=Infinity;var _4p=$k[--$j];var _4q=$k[--$j];$k[$j++]=_4p;$k[$j++]=$g($_.TNvals,$_.sft3);$k[$j++]=_4q;var _4u=$a();$k[$j++]=_4u}$_.Tvals=$d();for(var _4w=128;_4w<=255;_4w+=1){$_.i=_4w;$k[$j++]=$_.Avals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Avals,$_.usft));$q($g($_.Avals,$_.i-128));var _55=$a();var _56=$k[--$j];$p($k[--$j],_56,_55);$k[$j++]=$_.Cvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Cvals,$_.usft));$q($g($_.Cvals,$_.i-128));var _5G=$a();var _5H=$k[--$j];$p($k[--$j],_5H,_5G);$k[$j++]=$_.Tvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Tvals,$_.usft));$q($g($_.Tvals,$_.i-128));var _5R=$a();var _5S=$k[--$j];$p($k[--$j],_5S,_5R)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _5U=48;_5U<=57;_5U+=1){$k[$j++]=_5U;$k[$j++]=_5U-44}for(var _5V=65;_5V<=90;_5V+=1){$k[$j++]=_5V;$k[$j++]=_5V-51}$_.Xvals=$d();$k[$j++]=Infinity;var _5X=$_.Xvals;for(var _5c=_5X.size,_5b=_5X.keys(),_5a=0;_5a<_5c;_5a++){var _5Y=_5b.next().value;$k[$j++]=_5Y;$k[$j++]=_5X.get(_5Y);$k[$j++]=Infinity;var _5d=$k[--$j];var _5e=$k[--$j];$k[$j++]=_5d;$k[$j++]=_5e;var _5f=$a();$k[$j++]=_5f}$_.Xvals=$d();$k[$j++]=Infinity;for(var _5h=64;_5h<=94;_5h+=1){$k[$j++]=_5h;$k[$j++]=_5h-64}$k[$j++]=$_.unl;$k[$j++]=31;for(var _5j=32;_5j<=63;_5j+=1){$k[$j++]=_5j;$k[$j++]=_5j}$_.Evals=$d();$k[$j++]=Infinity;var _5l=$_.Evals;for(var _5q=_5l.size,_5p=_5l.keys(),_5o=0;_5o<_5q;_5o++){var _5m=_5p.next().value;$k[$j++]=_5m;$k[$j++]=_5l.get(_5m);$k[$j++]=Infinity;var _5r=$k[--$j];var _5s=$k[--$j];$k[$j++]=_5r;$k[$j++]=_5s;var _5t=$a();$k[$j++]=_5t}$_.Evals=$d();$k[$j++]=Infinity;for(var _5v=0;_5v<=255;_5v+=1){$k[$j++]=_5v;$k[$j++]=_5v}$_.Bvals=$d();$k[$j++]=Infinity;var _5x=$_.Bvals;for(var _62=_5x.size,_61=_5x.keys(),_60=0;_60<_62;_60++){var _5y=_61.next().value;$k[$j++]=_5y;$k[$j++]=_5x.get(_5y);$k[$j++]=Infinity;var _63=$k[--$j];var _64=$k[--$j];$k[$j++]=_63;$k[$j++]=_64;var _65=$a();$k[$j++]=_65}$_.Bvals=$d();$_.encvals=$a([$_.Avals,$_.Cvals,$_.Tvals,$_.Xvals,$_.Evals,$_.Bvals]);$_.A=0;$_.C=1;$_.T=2;$_.X=3;$_.E=4;$_.B=5;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_datamatrix.$ctx[id]=$_[id]);bwipp_datamatrix.__18615__=1;$_=Object.getPrototypeOf($_)}if($_.raw){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.cws=$G($_.cws,0,$_.j)}else{var _6Z=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fnc1],["PROG",$_.prog]]);$_.fncvals=_6Z;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6c=$k[--$j];$_[$k[--$j]]=_6c;$_.msglen=$_.msg.length;if($_.msglen>=9){$q($G($_.msg,0,7));var _6i=$k[--$j];var _6j=$k[--$j];$k[$j++]=_6i==29;$k[$j++]=_6j;$j--;var _6k=$k[--$j];var _6l=$k[--$j];var _6m=$k[--$j];var _6n=$k[--$j];var _6o=$k[--$j];var _6p=$k[--$j];if(_6k&&_6l==48&&_6m==30&&_6n==62&&_6o==41&&_6p==91){$q($G($_.msg,$_.msglen-2,2));var _6t=$k[--$j];var _6u=$k[--$j];if(_6t==4&&_6u==30){if($g($_.msg,5)==53){$k[$j++]=Infinity;$k[$j++]=$_.m05;$q($G($_.msg,7,$_.msg.length-9));$_.msg=$a()}else{if($g($_.msg,5)==54){$k[$j++]=Infinity;$k[$j++]=$_.m06;$q($G($_.msg,7,$_.msg.length-9));$_.msg=$a()}}}}}$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _7B=0,_7C=$_.msglen;_7B<_7C;_7B++){$k[$j++]=0}$k[$j++]=0;$_.numD=$a();$k[$j++]=Infinity;for(var _7F=0,_7G=$_.msglen;_7F<_7G;_7F++){$k[$j++]=0}$k[$j++]=9999;$_.nextXterm=$a();$k[$j++]=Infinity;for(var _7J=0,_7K=$_.msglen;_7J<_7K;_7J++){$k[$j++]=0}$k[$j++]=9999;$_.nextNonX=$a();$k[$j++]=Infinity;for(var _7N=0,_7O=$_.msglen;_7N<_7O;_7N++){$k[$j++]=false}$k[$j++]=false;$_.isECI=$a();for(var _7R=$_.msglen-1;_7R>=0;_7R-=1){$_.i=_7R;$_.barchar=$g($_.msg,$_.i);if($_.barchar>=48&&$_.barchar<=57){$p($_.numD,$_.i,$f($g($_.numD,$_.i+1)+1))}if($_.barchar==13||$_.barchar==42||$_.barchar==62){$p($_.nextXterm,$_.i,0)}else{$p($_.nextXterm,$_.i,$f($g($_.nextXterm,$_.i+1)+1))}var _7o=$g($_.Xvals,$_.barchar)!==undefined;if(!_7o){$p($_.nextNonX,$_.i,0)}else{$p($_.nextNonX,$_.i,$f($g($_.nextNonX,$_.i+1)+1))}$p($_.isECI,$_.i,$_.barchar<=-1e6)}$k[$j++]=Infinity;var _7z=$_.nextXterm;for(var _80=0,_81=_7z.length;_80<_81;_80++){var _82=$g(_7z,_80);$k[$j++]=_82;if(_82>1e4){$j--;$k[$j++]=1e4}}$_.nextXterm=$a();$k[$j++]=Infinity;var _84=$_.nextNonX;for(var _85=0,_86=_84.length;_85<_86;_85++){var _87=$g(_84,_85);$k[$j++]=_87;if(_87>1e4){$j--;$k[$j++]=1e4}}$_.nextNonX=$a();$_.isD=function(){$k[$j++]=$_.char>=48&&$_.char<=57};$_.isC=function(){var _8D=$g($_.CNvals,$_.char)!==undefined;$k[$j++]=_8D};$_.isT=function(){var _8G=$g($_.TNvals,$_.char)!==undefined;$k[$j++]=_8G};$_.isX=function(){var _8J=$g($_.Xvals,$_.char)!==undefined;$k[$j++]=_8J};$_.isE=function(){var _8M=$g($_.Evals,$_.char)!==undefined;$k[$j++]=_8M};$_.isEA=function(){$k[$j++]=$_.char>127};$_.isFN=function(){$k[$j++]=$_.char<0};$_.XtermFirst=function(){var _8P=$k[--$j];$k[$j++]=$lt($g($_.nextXterm,_8P),$g($_.nextNonX,_8P))};$_.lookup=function(){$_.ac=1;$_.cc=2;$_.tc=2;$_.xc=2;$_.ec=2;$_.bc=2.25;if($_.mode==$_.A){$_.ac=0;$_.cc=1;$_.tc=1;$_.xc=1;$_.ec=1;$_.bc=1.25}if($_.mode==$_.C){$_.cc=0}if($_.mode==$_.T){$_.tc=0}if($_.mode==$_.X){$_.xc=0}if($_.mode==$_.E){$_.ec=0}if($_.mode==$_.B){$_.bc=0}for(var _8g=0,_8h=1;_8g<_8h;_8g++){if($g($_.isECI,$_.i)){$k[$j++]=$_.A;break}if($_.c40headerlength!=-1&&$_.i<$_.c40headerlength){$k[$j++]=$_.C;break}$_.k=0;for(;;){if($_.i+$_.k==$_.msglen){var _8t=$a(["ac","cc","tc","xc","ec","bc"]);for(var _8u=0,_8v=_8t.length;_8u<_8v;_8u++){var _8w=$g(_8t,_8u);$_[_8w]=Math.ceil($_[_8w])}var _93=$a([$_.cc,$_.tc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _94=0,_95=_93.length;_94<_95;_94++){var _98=$k[--$j];$k[$j++]=_98&&$_.ac<=$g(_93,_94)}if($k[--$j]){$k[$j++]=$_.A;break}var _9G=$a([$_.ac,$_.cc,$_.tc,$_.xc,$_.ec]);$k[$j++]=true;for(var _9H=0,_9I=_9G.length;_9H<_9I;_9H++){var _9L=$k[--$j];$k[$j++]=_9L&&$_.bc<$g(_9G,_9H)}if($k[--$j]){$k[$j++]=$_.B;break}var _9T=$a([$_.ac,$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _9U=0,_9V=_9T.length;_9U<_9V;_9U++){var _9Y=$k[--$j];$k[$j++]=_9Y&&$_.ec<$g(_9T,_9U)}if($k[--$j]){$k[$j++]=$_.E;break}var _9g=$a([$_.ac,$_.cc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _9h=0,_9i=_9g.length;_9h<_9i;_9h++){var _9l=$k[--$j];$k[$j++]=_9l&&$_.tc<$g(_9g,_9h)}if($k[--$j]){$k[$j++]=$_.T;break}var _9t=$a([$_.ac,$_.cc,$_.tc,$_.ec,$_.bc]);$k[$j++]=true;for(var _9u=0,_9v=_9t.length;_9u<_9v;_9u++){var _9y=$k[--$j];$k[$j++]=_9y&&$_.xc<$g(_9t,_9u)}if($k[--$j]){$k[$j++]=$_.X;break}$k[$j++]=$_.C;break}$_.char=$g($_.msg,$_.i+$_.k);$k[$j++]="ac";$k[$j++]=$_.ac;$_.isD();if($k[--$j]){var _A8=$k[--$j];$k[$j++]=$f(_A8+1/2)}else{$_.isEA();if($k[--$j]){var _AA=$k[--$j];$k[$j++]=Math.ceil(_AA)+2}else{var _AB=$k[--$j];$k[$j++]=Math.ceil(_AB)+1}}var _AC=$k[--$j];$_[$k[--$j]]=_AC;$k[$j++]="cc";$k[$j++]=$_.cc;$_.isC();if($k[--$j]){var _AG=$k[--$j];$k[$j++]=$f(_AG+.6666667)}else{$_.isEA();if($k[--$j]){var _AI=$k[--$j];$k[$j++]=$f(_AI+2.6666667)}else{var _AJ=$k[--$j];$k[$j++]=$f(_AJ+1.3333334)}}var _AK=$k[--$j];$_[$k[--$j]]=_AK;$k[$j++]="tc";$k[$j++]=$_.tc;$_.isT();if($k[--$j]){var _AO=$k[--$j];$k[$j++]=$f(_AO+.6666667)}else{$_.isEA();if($k[--$j]){var _AQ=$k[--$j];$k[$j++]=$f(_AQ+2.6666667)}else{var _AR=$k[--$j];$k[$j++]=$f(_AR+1.3333334)}}var _AS=$k[--$j];$_[$k[--$j]]=_AS;$k[$j++]="xc";$k[$j++]=$_.xc;$_.isX();if($k[--$j]){var _AW=$k[--$j];$k[$j++]=$f(_AW+.6666667)}else{$_.isEA();if($k[--$j]){var _AY=$k[--$j];$k[$j++]=$f(_AY+4.3333334)}else{var _AZ=$k[--$j];$k[$j++]=$f(_AZ+3.3333334)}}var _Aa=$k[--$j];$_[$k[--$j]]=_Aa;$k[$j++]="ec";$k[$j++]=$_.ec;$_.isE();if($k[--$j]){var _Ae=$k[--$j];$k[$j++]=$f(_Ae+3/4)}else{$_.isEA();if($k[--$j]){var _Ag=$k[--$j];$k[$j++]=$f(_Ag+17/4)}else{var _Ah=$k[--$j];$k[$j++]=$f(_Ah+13/4)}}var _Ai=$k[--$j];$_[$k[--$j]]=_Ai;$k[$j++]="bc";$k[$j++]=$_.bc;$_.isFN();if($k[--$j]){var _Am=$k[--$j];$k[$j++]=$f(_Am+4)}else{var _An=$k[--$j];$k[$j++]=$f(_An+1)}var _Ao=$k[--$j];$_[$k[--$j]]=_Ao;if($_.k>=4){var _Aw=$a([$_.cc,$_.tc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _Ax=0,_Ay=_Aw.length;_Ax<_Ay;_Ax++){var _B1=$k[--$j];$k[$j++]=_B1&&$_.ac+1<=$g(_Aw,_Ax)}if($k[--$j]){$k[$j++]=$_.A;break}if($_.bc+1<=$_.ac){$k[$j++]=$_.B;break}var _BB=$a([$_.cc,$_.tc,$_.xc,$_.ec]);$k[$j++]=true;for(var _BC=0,_BD=_BB.length;_BC<_BD;_BC++){var _BG=$k[--$j];$k[$j++]=_BG&&$_.bc+1<$g(_BB,_BC)}if($k[--$j]){$k[$j++]=$_.B;break}var _BO=$a([$_.ac,$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _BP=0,_BQ=_BO.length;_BP<_BQ;_BP++){var _BT=$k[--$j];$k[$j++]=_BT&&$_.ec+1<$g(_BO,_BP)}if($k[--$j]){$k[$j++]=$_.E;break}var _Bb=$a([$_.ac,$_.cc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _Bc=0,_Bd=_Bb.length;_Bc<_Bd;_Bc++){var _Bg=$k[--$j];$k[$j++]=_Bg&&$_.tc+1<$g(_Bb,_Bc)}if($k[--$j]){$k[$j++]=$_.T;break}var _Bo=$a([$_.ac,$_.cc,$_.tc,$_.ec,$_.bc]);$k[$j++]=true;for(var _Bp=0,_Bq=_Bo.length;_Bp<_Bq;_Bp++){var _Bt=$k[--$j];$k[$j++]=_Bt&&$_.xc+1<$g(_Bo,_Bp)}if($k[--$j]){$k[$j++]=$_.X;break}var _C0=$a([$_.ac,$_.tc,$_.ec,$_.bc]);$k[$j++]=true;for(var _C1=0,_C2=_C0.length;_C1<_C2;_C1++){var _C5=$k[--$j];$k[$j++]=_C5&&$_.cc+1<$g(_C0,_C1)}if($k[--$j]){if($_.cc<$_.xc){$k[$j++]=$_.C;break}if($_.cc==$_.xc){$k[$j++]=$_.i+$_.k+1;$_.XtermFirst();if($k[--$j]){$k[$j++]=$_.X;break}else{$k[$j++]=$_.C;break}}}}$_.k=$_.k+1}}};$_.addtocws=function(){var _CI=$k[--$j];$P($_.cws,$_.j,_CI);$_.j=_CI.length+$_.j};$_.ECItocws=function(){var _CN=$f(-$k[--$j]-1e6);$k[$j++]=_CN;if(_CN<=126){var _CO=$k[--$j];$k[$j++]=$f(_CO+1);$as($a(1))}else{var _CQ=$k[--$j];$k[$j++]=_CQ;if(_CQ<=16382){var _CS=$f($k[--$j]-127);$k[$j++]=~~(_CS/254)+128;$k[$j++]=$f(_CS%254+1);$as($a(2))}else{var _CV=$f($k[--$j]-16383);$k[$j++]=~~(_CV/64516)+192;$k[$j++]=~~(_CV/254)%254+1;$k[$j++]=$f(_CV%254+1);$as($a(3))}}};$_.encA=function(){for(var _CX=0,_CY=1;_CX<_CY;_CX++){if($g($_.isECI,$_.i)){$k[$j++]=$g($_.Avals,$_.eci);$_.addtocws();$k[$j++]=$g($_.msg,$_.i);$_.ECItocws();$_.addtocws();$_.i=$_.i+1;break}if($g($_.numD,$_.i)>=2){var _Cm=$s(2);$p(_Cm,0,$g($_.msg,$_.i));$p(_Cm,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Cm);$_.addtocws();$_.i=$_.i+2;break}$k[$j++]="newmode";$_.lookup();var _Cw=$k[--$j];$_[$k[--$j]]=_Cw;if($_.newmode!=$_.mode){$k[$j++]=$g($_.Avals,$g($a([-1,$_.lC,$_.lT,$_.lX,$_.lE,$_.lB]),$_.newmode));$_.addtocws();$_.mode=$_.newmode;break}$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1;break}};$_.CTXvalstocws=function(){$_.in=$k[--$j];$k[$j++]=Infinity;for(var _DK=0,_DJ=$_.in.length-1;_DK<=_DJ;_DK+=3){var _DM=$G($_.in,_DK,3);$k[$j++]=0;for(var _DN=0,_DO=_DM.length;_DN<_DO;_DN++){var _DQ=$k[--$j];$k[$j++]=$f(_DQ+$g(_DM,_DN))*40}var _DS=~~($k[--$j]/40)+1;$k[$j++]=~~(_DS/256);$k[$j++]=_DS%256}$as($a($m()));var _DV=$k[--$j];var _DW=$k[--$j];$k[$j++]=_DV;$k[$j++]=_DW;$j--};$_.encCTX=function(){$_.p=0;$_.ctxvals=$a(2500);$_.done=false;for(;;){if($_.i==$_.msglen){break}var _Dg=$g($g($_.encvals,$_.mode),$g($_.msg,$_.i))!==undefined;if(!_Dg){break}if($_.p%3==0){if($_.p>0){$k[$j++]="newmode";$_.lookup();var _Dj=$k[--$j];$_[$k[--$j]]=_Dj;if($ne($_.newmode,$_.mode)){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();if($_.newmode!=$_.A){$k[$j++]=$g($_.Avals,$g($a([-1,$_.lC,$_.lT,$_.lX,$_.lE,$_.lB]),$_.newmode));$_.addtocws()}$_.mode=$_.newmode;$_.done=true;break}}if($_.msglen-$_.i<=3){$_.remcws=$g($_.numremcws,$_.j+~~($_.p/3)*2);$k[$j++]=Infinity;var _EF=$G($_.msg,$_.i,$_.msglen-$_.i);for(var _EG=0,_EH=_EF.length;_EG<_EH;_EG++){var _EI=$g(_EF,_EG);var _EM=$g($g($_.encvals,$_.mode),_EI)!==undefined;$k[$j++]=_EI;if(_EM){$q($g($g($_.encvals,$_.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$_.remvals=$a();if($_.remcws==2&&$_.remvals.length==3){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);var _EZ=$a();$k[$j++]=_EZ;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}if($_.remcws==2&&$_.remvals.length==2&&$_.mode!=$_.X){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);$q($g($g($_.encvals,$_.mode),$_.sft1));var _Ep=$a();$k[$j++]=_Ep;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}if($_.remcws==2&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}if($_.remcws==1&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}}}var _FO=$g($g($_.encvals,$_.mode),$g($_.msg,$_.i));$P($_.ctxvals,$_.p,_FO);$_.p=_FO.length+$_.p;$_.i=$_.i+1}if(!$_.done){for(;;){if($_.p%3==0){break}$_.i=$_.i-1;$_.p=$_.p-$g($g($_.encvals,$_.mode),$g($_.msg,$_.i)).length}$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));var _Fh=$a();$k[$j++]=_Fh;$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;if($_.i!=$_.msglen&&$nt($g($_.isECI,$_.i))){if($g($_.numD,$_.i)>=2){var _Ft=$s(2);$p(_Ft,0,$g($_.msg,$_.i));$p(_Ft,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Ft);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1}}}};$_.Evalstocws=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$_.outlen=~~Math.ceil($_.in.length/4*3);$k[$j++]=Infinity;$q($_.in);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.in=$a();$k[$j++]=Infinity;for(var _GG=0,_GF=$_.inlen-1;_GG<=_GF;_GG+=4){var _GI=$G($_.in,_GG,4);$k[$j++]=0;for(var _GJ=0,_GK=_GI.length;_GJ<_GK;_GJ++){var _GM=$k[--$j];$k[$j++]=$or(_GM,$g(_GI,_GJ))<<6}var _GO=$k[--$j]>>>6;$k[$j++]=_GO>>>16&255;$k[$j++]=_GO>>>8&255;$k[$j++]=_GO&255}$as($a($m()));var _GR=$k[--$j];var _GS=$k[--$j];$k[$j++]=_GR;$k[$j++]=_GS;$j--;var _GV=$G($k[--$j],0,$_.outlen);$k[$j++]=_GV};$_.encE=function(){$_.p=0;$_.edifactvals=$a(2100);for(;;){if($_.i==$_.msglen){break}var _Gd=$g($_.Evals,$g($_.msg,$_.i))!==undefined;if(!_Gd){break}if($_.p%4==0){if($_.msglen-$_.i<=2){$_.remcws=$g($_.numremcws,$_.j+~~($_.p/4)*3);$k[$j++]=Infinity;var _Gp=$G($_.msg,$_.i,$_.msglen-$_.i);for(var _Gq=0,_Gr=_Gp.length;_Gq<_Gr;_Gq++){$q($g($_.Avals,$g(_Gp,_Gq)))}$_.remvals=$a();if(($_.remcws==1||$_.remcws==2)&&$_.remvals.length<=$_.remcws){$k[$j++]=$G($_.edifactvals,0,$_.p);$_.Evalstocws();$_.addtocws();$k[$j++]=$_.remvals;$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}}$_.lookup();if($k[--$j]!=$_.mode){break}}var _HC=$g($_.Evals,$g($_.msg,$_.i));$P($_.edifactvals,$_.p,_HC);$_.p=_HC.length+$_.p;$_.i=$_.i+1}if($_.mode!=$_.A){$_.remcws=$f($g($_.numremcws,$_.j+~~($_.p/4)*3-1)-1);if($_.p%4!=0||$_.i!=$_.msglen||$_.remcws>=3){var _HT=$g($_.Evals,$_.unl);$P($_.edifactvals,$_.p,_HT);$_.p=_HT.length+$_.p}$k[$j++]=$G($_.edifactvals,0,$_.p);$_.Evalstocws();$_.addtocws();$_.mode=$_.A;if($_.i!=$_.msglen&&$nt($g($_.isECI,$_.i))){if($g($_.numD,$_.i)>=2){var _Hj=$s(2);$p(_Hj,0,$g($_.msg,$_.i));$p(_Hj,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Hj);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1}}}};$_.encB=function(){$_.p=0;$_.bvals=$a(1558);for(;;){if($_.i==$_.msglen){break}$_.lookup();if($k[--$j]!=$_.mode){break}$p($_.bvals,$_.p,$g($_.msg,$_.i));$_.p=$_.p+1;$_.i=$_.i+1}$_.remcws=$f($g($_.numremcws,$_.j+$_.p)-1);$k[$j++]=Infinity;if($_.remcws==0&&$_.i==$_.msglen){$k[$j++]=0}else{if($_.p<250){$k[$j++]=$_.p}else{$k[$j++]=~~($_.p/250)+249;$k[$j++]=$_.p%250}}$q($G($_.bvals,0,$_.p));$_.bvals=$a();for(var _IS=0,_IR=$_.bvals.length-1;_IS<=_IR;_IS+=1){$_.p=_IS;var _IY=$f(($_.j+$_.p+1)*149%255+1+$g($_.bvals,$_.p));$k[$j++]=_IY;if(_IY>=256){var _IZ=$k[--$j];$k[$j++]=$f(_IZ-256)}$p($_.bvals,$_.p,$k[--$j])}$k[$j++]=$_.bvals;$_.addtocws();$_.mode=$_.A};$_.cws=$a(1558);$_.mode=$_.A;$_.i=0;$_.j=0;for(;;){if($_.i>=$_.msglen){break}if($_[$g($a(["encA","encCTX","encCTX","encCTX","encE","encB"]),$_.mode)]()===true){break}}$_.cws=$G($_.cws,0,$_.j)}$_.datlen=$_.cws.length;$_.remcws=$f($g($_.numremcws,$_.j-1)-1);if($_.remcws>0){$k[$j++]=Infinity;$q($_.cws);for(var _Ix=0,_Iy=$_.remcws;_Ix<_Iy;_Ix++){$k[$j++]=129}$_.cws=$a();for(var _J4=$_.datlen+1,_J3=$f($f($_.datlen+$_.remcws)-1);_J4<=_J3;_J4+=1){$_.i=_J4;var _J6=($_.i+1)*149%253+1+129;$k[$j++]=_J6;if(_J6>254){var _J7=$k[--$j];$k[$j++]=$f(_J7-254)}$p($_.cws,$_.i,$k[--$j])}}var _JC=$g($_.options,"debugcws")!==undefined;if(_JC){$k[$j++]="bwipp.debugcws#19036";$k[$j++]=$_.cws;bwipp_raiseerror()}var _JE=$_.metrics;for(var _JF=0,_JG=_JE.length;_JF<_JG;_JF++){$_.m=$g(_JE,_JF);$_.rows=$g($_.m,0);$_.cols=$g($_.m,1);$_.regh=$g($_.m,2);$_.regv=$g($_.m,3);$_.rscw=$g($_.m,4);$_.rsbl=$g($_.m,5);$_.doly=$g($_.m,6);$_.mrows=$f($_.rows-2*$_.regh);$_.mcols=$f($_.cols-2*$_.regv);$_.rrows=~~($_.mrows/$_.regh);$_.rcols=~~($_.mcols/$_.regv);$_.ncws=$f(~~($_.mrows*$_.mcols/8)-$_.rscw);$_.okay=true;if($_.cws.length!=$_.ncws){$_.okay=false}if($_.urows!=0&&$_.urows!=$_.rows){$_.okay=false}if($_.ucols!=0&&$_.ucols!=$_.cols){$_.okay=false}if($eq($_.format,"square")&&$ne($_.rows,$_.cols)){$_.okay=false}if($eq($_.format,"rectangle")&&$eq($_.rows,$_.cols)){$_.okay=false}if(!$_.dmre&&$_.doly==1){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.datamatrixNoValidSymbol#19064";$k[$j++]="Maximum length exceeded or invalid size";bwipp_raiseerror()}$_.cwbs=$a($_.rsbl);$_.ecbs=$a($_.rsbl);for(var _K5=0,_K4=$f($_.rsbl-1);_K5<=_K4;_K5+=1){$_.i=_K5;if($_.cws.length!=1558){$_.cwbsize=~~($_.cws.length/$_.rsbl)}else{if($_.i<=7){$_.cwbsize=156}else{$_.cwbsize=155}}$_.cwb=$a($_.cwbsize);for(var _KE=0,_KD=$_.cwbsize-1;_KE<=_KD;_KE+=1){$_.j=_KE;$p($_.cwb,$_.j,$g($_.cws,$f($_.j*$_.rsbl+$_.i)))}$p($_.cwbs,$_.i,$_.cwb);$k[$j++]=$_.ecbs;$k[$j++]=$_.i;$k[$j++]=Infinity;for(var _KT=0,_KU=~~($_.rscw/$_.rsbl);_KT<_KU;_KT++){$k[$j++]=0}var _KV=$a();var _KW=$k[--$j];$p($k[--$j],_KW,_KV)}if(!bwipp_datamatrix.__19091__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _KY=0,_KZ=255;_KY<_KZ;_KY++){var _Ka=$k[--$j];var _Kb=_Ka*2;$k[$j++]=_Ka;$k[$j++]=_Kb;if(_Kb>=256){var _Kc=$k[--$j];$k[$j++]=_Kc^301}}$_.rsalog=$a();$_.rslog=$a(256);for(var _Kf=1;_Kf<=255;_Kf+=1){$p($_.rslog,$g($_.rsalog,_Kf),_Kf)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_datamatrix.$ctx[id]=$_[id]);bwipp_datamatrix.__19091__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _Kk=$k[--$j];var _Kl=$k[--$j];$k[$j++]=_Kl;$k[$j++]=_Kk;if(_Kk!=0&&_Kl!=0){var _Ko=$g($_.rslog,$k[--$j]);var _Kt=$g($_.rsalog,$f(_Ko+$g($_.rslog,$k[--$j]))%255);$k[$j++]=_Kt}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Kw=0,_Kx=~~($_.rscw/$_.rsbl);_Kw<_Kx;_Kw++){$k[$j++]=0}$_.coeffs=$a();for(var _L2=1,_L1=~~($_.rscw/$_.rsbl);_L2<=_L1;_L2+=1){$_.i=_L2;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _L9=$_.i-1;_L9>=1;_L9-=1){$_.j=_L9;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _LL=$k[--$j];var _LM=$k[--$j];var _LN=$k[--$j];$p($k[--$j],_LN,$xo(_LM,_LL))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _LV=$k[--$j];var _LW=$k[--$j];$p($k[--$j],_LW,_LV)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Ld=0,_Lc=$_.cwbs.length-1;_Ld<=_Lc;_Ld+=1){$_.i=_Ld;$_.cwb=$g($_.cwbs,$_.i);$_.ecb=$g($_.ecbs,$_.i);for(var _Lm=0,_Ll=$_.cwb.length-1;_Lm<=_Ll;_Lm+=1){$_.t=$xo($g($_.cwb,_Lm),$g($_.ecb,0));for(var _Ls=$_.ecb.length-1;_Ls>=0;_Ls-=1){$_.j=_Ls;$_.p=$_.ecb.length-$_.j-1;$k[$j++]=$_.ecb;$k[$j++]=$_.p;$k[$j++]=$_.t;$k[$j++]=$g($_.coeffs,$_.j);$_.rsprod();var _M1=$k[--$j];var _M2=$k[--$j];$p($k[--$j],_M2,_M1);if($_.j>0){$p($_.ecb,$_.p,$xo($g($_.ecb,$_.p+1),$g($_.ecb,$_.p)))}}}}if($_.ncws==1558){$k[$j++]=Infinity;var _MF=$G($_.ecbs,8,2);for(var _MG=0,_MH=_MF.length;_MG<_MH;_MG++){$k[$j++]=$g(_MF,_MG)}var _MK=$G($_.ecbs,0,8);for(var _ML=0,_MM=_MK.length;_ML<_MM;_ML++){$k[$j++]=$g(_MK,_ML)}$_.ecbs=$a()}$k[$j++]=Infinity;var _MP=$_.cws;for(var _MQ=0,_MR=_MP.length;_MQ<_MR;_MQ++){$k[$j++]=$g(_MP,_MQ)}for(var _MU=0,_MV=$_.rscw;_MU<_MV;_MU++){$k[$j++]=0}$_.cws=$a();for(var _MZ=0,_MY=$f($_.rscw-1);_MZ<=_MY;_MZ+=1){$_.i=_MZ;$p($_.cws,$f($_.ncws+$_.i),$g($g($_.ecbs,$_.i%$_.rsbl),~~($_.i/$_.rsbl)))}$_.module=function(){var _Mk=$k[--$j];var _Ml=$k[--$j];var _Mm=$k[--$j];var _Mp=$Z($s(8),"00000000");var _Mr=$R($s(8),$k[--$j],2);$P(_Mp,8-_Mr.length,_Mr);$k[$j++]=_Mm;$k[$j++]=_Ml;$k[$j++]=_Mk;$k[$j++]=_Mp;for(var _Ms=7;_Ms>=0;_Ms-=1){var _Mt=$k[--$j];$k[$j++]=$f($g(_Mt,_Ms)-48);$k[$j++]=_Mt}$j--;var _Mv=$k[--$j];var _Mw=$k[--$j];var _Mx=$k[--$j];var _My=$k[--$j];var _Mz=$k[--$j];var _N0=$k[--$j];var _N1=$k[--$j];var _N2=$k[--$j];var _N3=$k[--$j];var _N4=$k[--$j];var _N5=$k[--$j];$k[$j++]=_N2;$k[$j++]=_N1;$k[$j++]=_N0;$k[$j++]=_Mz;$k[$j++]=_My;$k[$j++]=_Mx;$k[$j++]=_Mw;$k[$j++]=_Mv;$k[$j++]=_N5;$k[$j++]=_N4;$F(_N3,function(){if($k[--$j]()===true){return true}var _N7=$k[--$j];var _N8=$k[--$j];$k[$j++]=_N8;$k[$j++]=_N7;if(_N8<0){var _N9=$k[--$j];var _NA=$k[--$j];$k[$j++]=$f(_NA+$_.mrows);$k[$j++]=$f(_N9+$f(4-$f($_.mrows+4)%8))}var _ND=$k[--$j];$k[$j++]=_ND;if(_ND<0){var _NF=$k[--$j];var _NG=$k[--$j];$k[$j++]=$f(_NG+$f(4-$f($_.mcols+4)%8));$k[$j++]=$f(_NF+$_.mcols)}var _NI=$k[--$j];var _NJ=$k[--$j];$k[$j++]=_NJ;$k[$j++]=_NI;if(_NJ>=$_.mrows){var _NL=$k[--$j];var _NM=$k[--$j];$k[$j++]=$f(_NM-$_.mrows);$k[$j++]=_NL}var _NO=$k[--$j];var _NP=$k[--$j];var _NS=$k[--$j];var _NT=$k[--$j];$p($_.mmat,$f(_NO+_NP*$_.mcols),$k[--$j]);$k[$j++]=_NT;$k[$j++]=_NS})};var _Nl=$a([function(){var _NV=$k[--$j];var _NW=$k[--$j];$k[$j++]=_NW;$k[$j++]=_NV;$k[$j++]=$f(_NW-2);$k[$j++]=$f(_NV-2)},function(){var _NX=$k[--$j];var _NY=$k[--$j];$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=$f(_NY-2);$k[$j++]=$f(_NX-1)},function(){var _NZ=$k[--$j];var _Na=$k[--$j];$k[$j++]=_Na;$k[$j++]=_NZ;$k[$j++]=$f(_Na-1);$k[$j++]=$f(_NZ-2)},function(){var _Nb=$k[--$j];var _Nc=$k[--$j];$k[$j++]=_Nc;$k[$j++]=_Nb;$k[$j++]=$f(_Nc-1);$k[$j++]=$f(_Nb-1)},function(){var _Nd=$k[--$j];var _Ne=$k[--$j];$k[$j++]=_Ne;$k[$j++]=_Nd;$k[$j++]=$f(_Ne-1);$k[$j++]=_Nd},function(){var _Nf=$k[--$j];var _Ng=$k[--$j];$k[$j++]=_Ng;$k[$j++]=_Nf;$k[$j++]=_Ng;$k[$j++]=$f(_Nf-2)},function(){var _Nh=$k[--$j];var _Ni=$k[--$j];$k[$j++]=_Ni;$k[$j++]=_Nh;$k[$j++]=_Ni;$k[$j++]=$f(_Nh-1)},function(){var _Nj=$k[--$j];var _Nk=$k[--$j];$k[$j++]=_Nk;$k[$j++]=_Nj;$k[$j++]=_Nk;$k[$j++]=_Nj}]);$_.dmn=_Nl;var _Nu=$a([function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=1},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=2},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($_.mcols-1)}]);$_.dmc1=_Nu;var _O3=$a([function(){$k[$j++]=$f($_.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-4)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)}]);$_.dmc2=_O3;var _OC=$a([function(){$k[$j++]=$f($_.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($_.mcols-1)}]);$_.dmc3=_OC;var _OM=$a([function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-3)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)}]);$_.dmc4=_OM;$k[$j++]=Infinity;for(var _OP=0,_OQ=$_.mrows*$_.mcols;_OP<_OQ;_OP++){$k[$j++]=-1}$_.mmat=$a();for(var _OT=$_.cws.length-1;_OT>=0;_OT-=1){$k[$j++]=$g($_.cws,_OT)}$k[$j++]=4;$k[$j++]=0;for(;;){var _OW=$k[--$j];var _OX=$k[--$j];$k[$j++]=_OX;$k[$j++]=_OW;if(_OW==0&&_OX==$_.mrows){$k[$j++]=$_.dmc1;$_.module()}var _Oa=$k[--$j];var _Ob=$k[--$j];$k[$j++]=_Ob;$k[$j++]=_Oa;if(_Oa==0&&_Ob==$f($_.mrows-2)&&$_.mcols%4!=0){$k[$j++]=$_.dmc2;$_.module()}var _Of=$k[--$j];var _Og=$k[--$j];$k[$j++]=_Og;$k[$j++]=_Of;if(_Of==0&&_Og==$f($_.mrows-2)&&$_.mcols%8==4){$k[$j++]=$_.dmc3;$_.module()}var _Ok=$k[--$j];var _Ol=$k[--$j];$k[$j++]=_Ol;$k[$j++]=_Ok;if(_Ok==2&&_Ol==$f($_.mrows+4)&&$_.mcols%8==0){$k[$j++]=$_.dmc4;$_.module()}for(;;){var _Op=$k[--$j];var _Oq=$k[--$j];$k[$j++]=_Oq;$k[$j++]=_Op;if(_Op>=0&&_Oq<$_.mrows){var _Os=$k[--$j];var _Ot=$k[--$j];$k[$j++]=_Ot;$k[$j++]=_Os;if($g($_.mmat,$f(_Os+_Ot*$_.mcols))==-1){$k[$j++]=$_.dmn;$_.module()}}var _Oy=$k[--$j];var _Oz=$k[--$j];$k[$j++]=$f(_Oz-2);$k[$j++]=$f(_Oy+2);if(!($f(_Oy+2)<$_.mcols&&$f(_Oz-2)>=0)){break}}var _P1=$k[--$j];var _P2=$k[--$j];$k[$j++]=$f(_P2+1);$k[$j++]=$f(_P1+3);for(;;){var _P3=$k[--$j];var _P4=$k[--$j];$k[$j++]=_P4;$k[$j++]=_P3;if(_P3<$_.mcols&&_P4>=0){var _P6=$k[--$j];var _P7=$k[--$j];$k[$j++]=_P7;$k[$j++]=_P6;if($g($_.mmat,$f(_P6+_P7*$_.mcols))==-1){$k[$j++]=$_.dmn;$_.module()}}var _PC=$k[--$j];var _PD=$k[--$j];$k[$j++]=$f(_PD+2);$k[$j++]=$f(_PC-2);if(!($f(_PC-2)>=0&&$f(_PD+2)<$_.mrows)){break}}var _PF=$k[--$j];var _PG=$k[--$j];$k[$j++]=$f(_PG+3);$k[$j++]=$f(_PF+1);if(!($f(_PF+1)<$_.mcols||$f(_PG+3)<$_.mrows)){$j-=2;break}}if($g($_.mmat,$f($_.mrows*$_.mcols-1))==-1){$P($_.mmat,$f($_.mrows*$f($_.mcols-1)-2),$a([1,0]));$P($_.mmat,$f($_.mrows*$_.mcols-2),$a([0,1]))}$_.pixs=$a($_.rows*$_.cols);$_.cwpos=0;for(var _Pa=0,_PZ=$f($_.rows-1);_Pa<=_PZ;_Pa+=1){$_.i=_Pa;if($_.i%($_.rrows+2)==0){$k[$j++]=$_.pixs;$k[$j++]=$_.i*$_.cols;$k[$j++]=Infinity;for(var _Ph=0,_Pi=~~($_.cols/2);_Ph<_Pi;_Ph++){$k[$j++]=1;$k[$j++]=0}var _Pj=$a();var _Pk=$k[--$j];$P($k[--$j],_Pk,_Pj)}if($_.i%($_.rrows+2)==$_.rrows+1){$k[$j++]=$_.pixs;$k[$j++]=$_.i*$_.cols;$k[$j++]=Infinity;for(var _Pt=0,_Pu=$_.cols;_Pt<_Pu;_Pt++){$k[$j++]=1}var _Pv=$a();var _Pw=$k[--$j];$P($k[--$j],_Pw,_Pv)}if($_.i%($_.rrows+2)!=0&&$_.i%($_.rrows+2)!=$_.rrows+1){for(var _Q5=0,_Q4=$f($_.cols-1);_Q5<=_Q4;_Q5+=1){$_.j=_Q5;if($_.j%($_.rcols+2)==0){$p($_.pixs,$f($_.i*$_.cols+$_.j),1)}if($_.j%($_.rcols+2)==$_.rcols+1){$p($_.pixs,$f($_.i*$_.cols+$_.j),$_.i%2)}if($_.j%($_.rcols+2)!=0&&$_.j%($_.rcols+2)!=$_.rcols+1){$p($_.pixs,$f($_.i*$_.cols+$_.j),$g($_.mmat,$_.cwpos));$_.cwpos=$_.cwpos+1}}}}var _Qd=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.cols],["pixy",$_.rows],["height",$_.rows*2/72],["width",$_.cols*2/72],["opt",$_.options]]);$k[$j++]=_Qd;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_datamatrixrectangular(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_datamatrixrectangularextension(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"dmre",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_mailmark(){$_=Object.create($_);$_.type="unset";$_.parse=false;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];var _A=$_["type"];if($ne(_A,"7")&&($ne(_A,"9")&&$ne(_A,"29"))){$k[$j++]="bwipp.mailmarkBadType#19438";$k[$j++]="Royal Mail Mailmark type must be 7, 9 or 29";bwipp_raiseerror()}var _B=new Map([["7","24x24"],["9","32x32"],["29","16x48"]]);$_.version=$g(_B,$_["type"]);var _E=new Map([["7","square"],["9","square"],["29","rectangle"]]);$_.format=$g(_E,$_["type"]);if($_.barcode.length<45){$k[$j++]="bwipp.mailmarkBadLength#19454";$k[$j++]="Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"JGB ")){$k[$j++]="bwipp.mailmarkBadIndicator#19457";$k[$j++]="Royal Mail Mailmark must begin with JGB identifier";bwipp_raiseerror()}$p($_.options,"dontdraw",true);$p($_.options,"version",$_.version);$p($_.options,"format",$_.format);$p($_.options,"c40headerlength",45);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _S=$k[--$j];$_[$k[--$j]]=_S;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_qrcode(){$_=Object.create($_);$_.dontdraw=false;$_.format="unset";$_.version="unset";$_.eclevel="unset";$_.parse=false;$_.parsefnc=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_qrcode);if($eq($_.barcode,"")){$k[$j++]="bwipp.qrcodeEmptyData#19520";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($ne($_.version,"unset")){if($eq($_.format,"unset")){$k[$j++]="full";if($eq($G($_.version,0,1),"M")){$j--;$k[$j++]="micro"}if($eq($G($_.version,0,1),"R")){$j--;$k[$j++]="rmqr"}$_.format=$k[--$j]}}else{if($eq($_.format,"unset")){$_.format="full"}}if($ne($_.format,"full")&&($ne($_.format,"micro")&&$ne($_.format,"rmqr"))){$k[$j++]="bwipp.qrcodeInvalidFormat#19536";$k[$j++]="The format must be either full, micro or rmqr";bwipp_raiseerror()}if($eq($_.format,"rmqr")&&$eq($_.version,"unset")){$k[$j++]="bwipp.qrcodeRMQRwithoutVersion#19540";$k[$j++]="A version must be provided for RMQR";bwipp_raiseerror()}if($eq($_.eclevel,"unset")){$k[$j++]="eclevel";if($ne($_.format,"micro")){$k[$j++]="M"}else{$k[$j++]="L"}var _I=$k[--$j];$_[$k[--$j]]=_I}if($ne($_.eclevel,"L")&&($ne($_.eclevel,"M")&&($ne($_.eclevel,"Q")&&$ne($_.eclevel,"H")))){$k[$j++]="bwipp.qrcodeInvalidEClevel#19547";$k[$j++]="Error correction level must be either L, M, Q, or H";bwipp_raiseerror()}if($_.mask!=-1&&$eq($_.format,"rmqr")){$k[$j++]="bwipp.qrcodeRMQRmask#19551";$k[$j++]="A mask cannot be supplied for RMQR";bwipp_raiseerror()}if($_.mask!=-1){var _U=$eq($_.format,"full")?8:4;if($_.mask<1||$_.mask>_U){$k[$j++]="bwipp.qrcodeBadMask#19556";$k[$j++]="An invalid mask was supplied";bwipp_raiseerror()}}$_.fn1=-1;var _Y=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1]]);$_.fncvals=_Y;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _b=$k[--$j];$_[$k[--$j]]=_b;$_.msglen=$_.msg.length;$_.fnc1first=false;if($_.msglen>0){if($g($_.msg,0)==$_.fn1){$_.fnc1first=true;$k[$j++]=Infinity;var _k=$G($_.msg,1,$_.msglen-1);for(var _l=0,_m=_k.length;_l<_m;_l++){var _n=$g(_k,_l);$k[$j++]=_n;if(_n==37){var _o=$k[--$j];$k[$j++]=_o;$k[$j++]=_o}}$_.msg=$a();$_.msglen=$_.msg.length}}if(!bwipp_qrcode.__19700__){$_=Object.create($_);var _r=$a(["v1to9","v10to26","v27to40","vM1","vM2","vM3","vM4","vR7x43","vR7x59","vR7x77","vR7x99","vR7x139","vR9x43","vR9x59","vR9x77","vR9x99","vR9x139","vR11x27","vR11x43","vR11x59","vR11x77","vR11x99","vR11x139","vR13x27","vR13x43","vR13x59","vR13x77","vR13x99","vR13x139","vR15x43","vR15x59","vR15x77","vR15x99","vR15x139","vR17x43","vR17x59","vR17x77","vR17x99","vR17x139"]);$k[$j++]=0;for(var _s=0,_t=_r.length;_s<_t;_s++){var _v=$k[--$j];$_[$g(_r,_s)]=_v;$k[$j++]=$f(_v+1)}$j--;$_.N=0;$_.A=1;$_.B=2;$_.K=3;$_.E=4;$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _w=48;_w<=57;_w+=1){$k[$j++]=_w}var _x=$a();for(var _y=0,_z=_x.length;_y<_z;_y++){$k[$j++]=$g(_x,_y);$k[$j++]=-1}$_.Nexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=32;$k[$j++]=36;$k[$j++]=37;$k[$j++]=42;$k[$j++]=43;$k[$j++]=45;$k[$j++]=46;$k[$j++]=47;$k[$j++]=58;for(var _12=65;_12<=90;_12+=1){$k[$j++]=_12}$k[$j++]=$_.fn1;var _14=$a();for(var _15=0,_16=_14.length;_15<_16;_15++){$k[$j++]=$g(_14,_15);$k[$j++]=-1}$_.Aexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _19=129;_19<=159;_19+=1){$k[$j++]=_19}for(var _1A=224;_1A<=235;_1A+=1){$k[$j++]=_1A}var _1B=$a();for(var _1C=0,_1D=_1B.length;_1C<_1D;_1C++){$k[$j++]=$g(_1B,_1C);$k[$j++]=-1}$_.Kexcl=$d();$k[$j++]=Infinity;$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["",-1,-1,-1,-1]);$k[$j++]=$a(["0","1",-1,-1,-1]);$k[$j++]=$a(["00","01","10","11",-1]);$k[$j++]=$a(["000","001","010","011",-1]);for(var _1N=0,_1O=32;_1N<_1O;_1N++){$k[$j++]=$a(["001","010","011","100","111"])}$_.mids=$a();$_.cclens=$a([$a([10,9,8,8]),$a([12,11,16,10]),$a([14,13,16,12]),$a([3,-1,-1,-1]),$a([4,3,-1,-1]),$a([5,4,4,3]),$a([6,5,5,4]),$a([4,3,3,2]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([4,4,3,2]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([5,5,4,3]),$a([6,6,5,5]),$a([7,6,6,5]),$a([7,7,6,6]),$a([8,7,7,6]),$a([8,8,7,7]),$a([7,6,6,5]),$a([7,7,6,5]),$a([8,7,7,6]),$a([8,7,7,6]),$a([9,8,7,7]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([8,8,7,6]),$a([9,8,8,7])]);$k[$j++]=Infinity;for(var _25=0,_26=3;_25<_26;_25++){$k[$j++]=4}$k[$j++]=3;$k[$j++]=5;$k[$j++]=7;$k[$j++]=9;for(var _27=0,_28=32;_27<_28;_27++){$k[$j++]=3}$_.termlens=$a();$_.padstrs=$a(["11101100","00010001"]);$_.charmap="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";$_.charvals=new Map;for(var _2B=0;_2B<=44;_2B+=1){$p($_.charvals,$g($_.charmap,_2B),_2B)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__19700__=1;$_=Object.getPrototypeOf($_)}$_.tobin=function(){var _2H=$s($k[--$j]);$k[$j++]=_2H;for(var _2J=0,_2I=_2H.length-1;_2J<=_2I;_2J+=1){var _2K=$k[--$j];$p(_2K,_2J,48);$k[$j++]=_2K}var _2L=$k[--$j];var _2O=$R($s(_2L.length),$k[--$j],2);$P(_2L,_2L.length-_2O.length,_2O);$k[$j++]=_2L};$_.encA=function(){$_.in=$k[--$j];if($_.fnc1first){$k[$j++]=Infinity;$F($_.in,function(){var _2S=$k[--$j];$k[$j++]=_2S;if(_2S==$_.fn1){$j--;$k[$j++]=37}});$_.in=$a()}$_.out=$s(~~($_.in.length*11/2)+1);$_.k=0;$_.m=0;for(;;){if($_.k==$_.in.length){break}if($_.k<$_.in.length-1){$k[$j++]=$f($g($_.charvals,$g($_.in,$_.k))*45+$g($_.charvals,$g($_.in,$_.k+1)));$k[$j++]=11;$_.tobin();$_.k=$_.k+2}else{$k[$j++]=$g($_.charvals,$g($_.in,$_.k));$k[$j++]=6;$_.tobin();$_.k=$_.k+1}var _2s=$k[--$j];$P($_.out,$_.m,_2s);$_.m=_2s.length+$_.m}$k[$j++]=$G($_.out,0,$_.m)};$_.encN=function(){$_.in=$k[--$j];$_.out=$s(~~($_.in.length*10/3)+1);$_.k=0;$_.m=0;for(;;){if($_.k==$_.in.length){break}if($_.k<$_.in.length-2){var _38=$G($_.in,$_.k,3);$k[$j++]=0;for(var _39=0,_3A=_38.length;_39<_3A;_39++){var _3C=$k[--$j];$k[$j++]=$f($g(_38,_39)+$f(_3C*10-48))}$k[$j++]=10;$_.tobin();$_.k=$_.k+3}else{if($_.k==$_.in.length-2){var _3I=$G($_.in,$_.k,2);$k[$j++]=0;for(var _3J=0,_3K=_3I.length;_3J<_3K;_3J++){var _3M=$k[--$j];$k[$j++]=$f($g(_3I,_3J)+$f(_3M*10-48))}$k[$j++]=7;$_.tobin();$_.k=$_.k+2}else{var _3Q=$G($_.in,$_.k,1);$k[$j++]=0;for(var _3R=0,_3S=_3Q.length;_3R<_3S;_3R++){var _3U=$k[--$j];$k[$j++]=$f($g(_3Q,_3R)+$f(_3U*10-48))}$k[$j++]=4;$_.tobin();$_.k=$_.k+1}}var _3W=$k[--$j];$P($_.out,$_.m,_3W);$_.m=_3W.length+$_.m}$k[$j++]=$G($_.out,0,$_.m)};$_.encB=function(){$_.in=$k[--$j];if($_.fnc1first){$k[$j++]=Infinity;$F($_.in,function(){var _3g=$k[--$j];$k[$j++]=_3g;if(_3g==$_.fn1){$j--;$k[$j++]=29}});$_.in=$a()}$_.out=$s($_.in.length*8);for(var _3n=0,_3m=$_.in.length-1;_3n<=_3m;_3n+=1){$_.k=_3n;$k[$j++]=$i($g($_.in,$_.k));$k[$j++]=8;$_.tobin();$P($_.out,$_.k*8,$k[--$j])}$k[$j++]=$_.out};$_.encK=function(){$_.in=$k[--$j];$_.out=$s(~~($_.in.length/2)*13);$_.k=0;$_.m=0;for(;;){if($_.k==$_.in.length){break}var _46=$f($g($_.in,$_.k)*256+$g($_.in,$_.k+1));$k[$j++]=_46;if(_46<57408){$k[$j++]=33088}else{$k[$j++]=49472}var _47=$k[--$j];var _49=$f($k[--$j]-_47);$k[$j++]=$f((_49>>>8)*192+(_49&255));$k[$j++]=13;$_.tobin();var _4A=$k[--$j];$P($_.out,$_.m,_4A);$_.m=_4A.length+$_.m;$_.k=$_.k+2}$k[$j++]=$_.out};$_.encE=function(){var _4I=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_4I;if(_4I<=127){$k[$j++]=8;$_.tobin()}else{var _4J=$k[--$j];$k[$j++]=_4J;if(_4J<=16383){var _4K=$k[--$j];$k[$j++]=$f(_4K+32768);$k[$j++]=16;$_.tobin()}else{var _4L=$k[--$j];$k[$j++]=$f(_4L+12582912);$k[$j++]=24;$_.tobin()}}};$_.encfuncs=$a(["encN","encA","encB","encK","encE"]);$_.addtobits=function(){var _4N=$k[--$j];$P($_.bits,$_.j,_4N);$_.j=_4N.length+$_.j};$k[$j++]=Infinity;for(var _4S=0,_4T=$_.msglen;_4S<_4T;_4S++){$k[$j++]=0}$k[$j++]=0;$_.numNs=$a();$k[$j++]=Infinity;for(var _4W=0,_4X=$_.msglen;_4W<_4X;_4W++){$k[$j++]=0}$k[$j++]=0;$_.numAs=$a();$k[$j++]=Infinity;for(var _4a=0,_4b=$_.msglen;_4a<_4b;_4a++){$k[$j++]=0}$k[$j++]=0;$_.numAorNs=$a();$k[$j++]=Infinity;for(var _4e=0,_4f=$_.msglen;_4e<_4f;_4e++){$k[$j++]=0}$k[$j++]=0;$_.numBs=$a();$k[$j++]=Infinity;for(var _4i=0,_4j=$_.msglen;_4i<_4j;_4i++){$k[$j++]=0}$k[$j++]=0;$_.numKs=$a();$k[$j++]=Infinity;for(var _4m=0,_4n=$_.msglen;_4m<_4n;_4m++){$k[$j++]=0}$k[$j++]=9999;$_.nextNs=$a();$k[$j++]=Infinity;for(var _4q=0,_4r=$_.msglen;_4q<_4r;_4q++){$k[$j++]=0}$k[$j++]=9999;$_.nextBs=$a();$k[$j++]=Infinity;for(var _4u=0,_4v=$_.msglen;_4u<_4v;_4u++){$k[$j++]=0}$k[$j++]=9999;$_.nextAs=$a();$k[$j++]=Infinity;for(var _4y=0,_4z=$_.msglen;_4y<_4z;_4y++){$k[$j++]=0}$k[$j++]=9999;$_.nextKs=$a();$_.isECI=$a($_.msglen);for(var _54=$_.msglen-1;_54>=0;_54-=1){$_.i=_54;$_.barchar=$g($_.msg,$_.i);var _5A=$g($_.Kexcl,$_.barchar)!==undefined;if(_5A){$k[$j++]="sjis";if($_.i+1<$_.msglen){$k[$j++]=$f($_.barchar*256+$g($_.msg,$_.i+1))}else{$k[$j++]=0}var _5H=$k[--$j];$_[$k[--$j]]=_5H;if($_.sjis>=33088&&$_.sjis<=40956||$_.sjis>=57408&&$_.sjis<=60351){$p($_.nextKs,$_.i,0);$p($_.numKs,$_.i,$f($g($_.numKs,$_.i+2)+1))}else{$p($_.nextKs,$_.i,$f($g($_.nextKs,$_.i+1)+1))}}else{$p($_.nextKs,$_.i,$f($g($_.nextKs,$_.i+1)+1))}var _5g=$g($_.Nexcl,$_.barchar)!==undefined;if(_5g){$p($_.nextNs,$_.i,0);$p($_.numNs,$_.i,$f($g($_.numNs,$_.i+1)+1));$p($_.numAorNs,$_.i,$f($g($_.numAorNs,$_.i+1)+1))}else{$p($_.nextNs,$_.i,$f($g($_.nextNs,$_.i+1)+1))}var _60=$g($_.Aexcl,$_.barchar)!==undefined;if(_60){$p($_.nextAs,$_.i,0);$p($_.numAs,$_.i,$f($g($_.numAs,$_.i+1)+1));$p($_.numAorNs,$_.i,$f($g($_.numAorNs,$_.i+1)+1))}else{$p($_.nextAs,$_.i,$f($g($_.nextAs,$_.i+1)+1))}$p($_.isECI,$_.i,$_.barchar<=-1e6)}for(var _6N=0,_6M=$_.msglen-1;_6N<=_6M;_6N+=1){$_.i=_6N;if($g($_.numKs,$_.i)>0){$p($_.numKs,$_.i+1,0);$p($_.nextKs,$_.i+1,$f($g($_.nextKs,$_.i+1)+1))}}for(var _6Z=$_.msglen-1;_6Z>=0;_6Z-=1){$_.i=_6Z;if($f($g($_.numNs,$_.i)+$f($g($_.numAs,$_.i)+$g($_.numKs,$_.i)))==0&&$nt($g($_.isECI,$_.i))){$p($_.nextBs,$_.i,0);$p($_.numBs,$_.i,$f($g($_.numBs,$_.i+1)+1))}else{$p($_.nextBs,$_.i,$f($g($_.nextBs,$_.i+1)+1))}}$_.KbeforeB=function(){var _71=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_71)&&$g($_.nextBs,$f($_.numK*2+$_.i))==0};$_.KbeforeA=function(){var _79=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_79)&&$g($_.nextAs,$f($_.numK*2+$_.i))==0};$_.KbeforeN=function(){var _7H=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_7H)&&$g($_.nextNs,$f($_.numK*2+$_.i))==0};$_.KbeforeE=function(){var _7P=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_7P)&&$f($_.numK*2+$_.i)==$_.msglen};$_.AbeforeK=function(){var _7W=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7W)&&$g($_.nextKs,$f($_.numA+$_.i))==0};$_.AbeforeB=function(){var _7e=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7e)&&$g($_.nextBs,$f($_.numA+$_.i))==0};$_.AbeforeN=function(){var _7m=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7m)&&$g($_.nextNs,$f($_.numA+$_.i))==0};$_.AbeforeE=function(){var _7u=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7u)&&$f($_.numA+$_.i)==$_.msglen};$_.NbeforeK=function(){var _81=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_81)&&$g($_.nextKs,$f($_.numN+$_.i))==0};$_.NbeforeB=function(){var _89=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_89)&&$g($_.nextBs,$f($_.numN+$_.i))==0};$_.NbeforeA=function(){var _8H=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_8H)&&$g($_.nextAs,$f($_.numN+$_.i))==0};$_.NbeforeE=function(){var _8P=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_8P)&&$f($_.numN+$_.i)==$_.msglen};$_.AorNbeforeB=function(){var _8W=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numAorN,_8W)&&$g($_.nextBs,$f($_.numAorN+$_.i))==0};$_.AorNbeforeE=function(){var _8e=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numAorN,_8e)&&$f($_.numAorN+$_.i)==$_.msglen};$_.nextNslt=function(){if($g($_.nextNs,$_.i)>=$_.msglen){$j--;$k[$j++]=true}else{var _8u=$g($k[--$j],$_.ver);$k[$j++]=$lt($g($_.numNs,$f($g($_.nextNs,$_.i)+$_.i)),_8u)}};if(!bwipp_qrcode.__19901__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]="full";$k[$j++]=Infinity;for(var _8v=0;_8v<=9;_8v+=1){$k[$j++]=$R($s(2),_8v,10);$k[$j++]=$_.v1to9}for(var _8z=10;_8z<=26;_8z+=1){$k[$j++]=$R($s(2),_8z,10);$k[$j++]=$_.v10to26}for(var _93=27;_93<=40;_93+=1){$k[$j++]=$R($s(2),_93,10);$k[$j++]=$_.v27to40}var _97=$d();var _9C=new Map([["M1",$_.vM1],["M2",$_.vM2],["M3",$_.vM3],["M4",$_.vM4]]);var _9j=new Map([["R7x43",$_.vR7x43],["R7x59",$_.vR7x59],["R7x77",$_.vR7x77],["R7x99",$_.vR7x99],["R7x139",$_.vR7x139],["R9x43",$_.vR9x43],["R9x59",$_.vR9x59],["R9x77",$_.vR9x77],["R9x99",$_.vR9x99],["R9x139",$_.vR9x139],["R11x27",$_.vR11x27],["R11x43",$_.vR11x43],["R11x59",$_.vR11x59],["R11x77",$_.vR11x77],["R11x99",$_.vR11x99],["R11x139",$_.vR11x139],["R13x27",$_.vR13x27],["R13x43",$_.vR13x43],["R13x59",$_.vR13x59],["R13x77",$_.vR13x77],["R13x99",$_.vR13x99],["R13x139",$_.vR13x139],["R15x43",$_.vR15x43],["R15x59",$_.vR15x59],["R15x77",$_.vR15x77],["R15x99",$_.vR15x99],["R15x139",$_.vR15x139],["R17x43",$_.vR17x43],["R17x59",$_.vR17x59],["R17x77",$_.vR17x77],["R17x99",$_.vR17x99],["R17x139",$_.vR17x139]]);$k[$j++]=_97;$k[$j++]="micro";$k[$j++]=_9C;$k[$j++]="rmqr";$k[$j++]=_9j;$_.versetmap=$d();$_.versetfull=$a([$_.v1to9,$_.v10to26,$_.v27to40]);$_.versetmicro=$a([$_.vM1,$_.vM2,$_.vM3,$_.vM4]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__19901__=1;$_=Object.getPrototypeOf($_)}if($ne($_.version,"unset")){var _9y=$g($_.versetmap,$_.format);var _9z=$_.version;var _A0=$g(_9y,_9z)!==undefined;$k[$j++]=_9y;$k[$j++]=_9z;if(!_A0){$j-=2;if($eq($_.format,"full")){$k[$j++]="bwipp.qrcodeInvalidFullVersion#19907";$k[$j++]="Valid versions for QR Code symbols are 1 to 40";bwipp_raiseerror()}else{if($eq($_.format,"micro")){$k[$j++]="bwipp.qrcodeInvalidMicroVersion#19910";$k[$j++]="Valid versions for Micro QR Code symbols are M1 to M4";bwipp_raiseerror()}else{$k[$j++]="bwipp.qrcodeInvalidRMQRversion#19912";$k[$j++]="Invalid version for an RMQR symbol";bwipp_raiseerror()}}}var _A3=$k[--$j];var _A5=$g($k[--$j],_A3);$k[$j++]=_A5;$k[$j++]=Infinity;var _A6=$k[--$j];var _A7=$k[--$j];$k[$j++]=_A6;$k[$j++]=_A7;$_.verset=$a()}else{if($eq($_.format,"full")){$_.verset=$_.versetfull}if($eq($_.format,"micro")){$_.verset=$_.versetmicro}}$k[$j++]=Infinity;for(var _AD=0,_AE=39;_AD<_AE;_AD++){$k[$j++]=-1}$_.msgbits=$a();$_.e=1e4;if(!bwipp_qrcode.__19955__){$_=Object.create($_);$_.mode0forceKB=$a([1,1,1,$_.e,$_.e,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]);$_.mode0forceA=$a([1,1,1,$_.e,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]);$_.mode0forceN=$a([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]);$_.mode0NbeforeB=$a([4,4,5,$_.e,$_.e,2,3,2,2,3,3,3,2,3,3,3,3,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]);$_.modeBKbeforeB=$a([9,12,13,$_.e,$_.e,4,6,4,5,6,6,6,5,6,6,6,7,4,6,6,6,7,7,5,6,6,7,7,7,6,6,7,7,7,6,7,7,7,8]);$_.modeBKbeforeA=$a([8,10,11,$_.e,$_.e,4,5,4,5,5,6,6,5,5,6,6,6,4,5,6,6,6,6,5,6,6,6,6,7,6,6,6,6,7,6,6,6,7,7]);$_.modeBKbeforeN=$a([8,9,11,$_.e,$_.e,3,5,3,4,5,5,5,4,5,5,5,6,3,5,5,5,6,6,4,5,5,6,6,6,5,5,6,6,7,5,6,6,6,7]);$_.modeBKbeforeE=$a([5,5,6,$_.e,$_.e,2,3,2,3,3,3,3,3,3,3,3,4,2,3,3,3,4,4,3,3,3,4,4,4,3,3,4,4,4,3,4,4,4,4]);$_.modeBAbeforeK=$a([11,12,14,$_.e,$_.e,5,7,5,6,7,8,8,6,7,8,8,8,6,7,8,8,8,8,6,8,8,8,8,9,8,8,8,8,9,8,8,8,9,9]);$_.modeBAbeforeB=$a([11,15,16,$_.e,$_.e,6,7,6,7,7,8,8,7,7,8,8,8,6,7,8,8,8,9,7,8,8,8,9,9,8,8,9,9,9,8,8,9,9,10]);$_.modeBAbeforeN=$a([12,13,15,$_.e,$_.e,6,8,6,7,8,8,8,7,8,8,8,9,6,8,8,8,9,9,7,8,8,9,9,10,8,9,9,9,10,8,9,9,10,10]);$_.modeBAbeforeE=$a([6,7,8,$_.e,$_.e,3,4,3,4,4,4,4,4,4,4,4,5,4,4,4,4,5,5,4,4,4,5,5,5,4,5,5,5,5,4,5,5,5,5]);$_.modeBNbeforeK=$a([6,7,8,$_.e,$_.e,3,4,3,4,4,5,5,4,4,5,5,5,3,4,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5]);$_.modeBNbeforeB=$a([6,8,9,$_.e,$_.e,3,4,3,4,4,5,5,4,4,5,5,5,3,4,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6]);$_.modeBNbeforeA=$a([6,7,8,$_.e,$_.e,3,4,3,4,4,5,5,4,4,5,5,5,4,4,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,6]);$_.modeBNbeforeE=$a([3,4,4,$_.e,$_.e,2,3,2,2,3,3,3,2,3,3,3,3,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]);$_.modeANbeforeA=$a([13,15,17,$_.e,5,7,9,7,8,9,9,9,8,9,9,9,11,7,9,9,9,11,11,8,9,9,10,11,11,9,10,11,11,11,9,11,11,11,11]);$_.modeANbeforeB=$a([13,17,18,$_.e,$_.e,7,9,7,8,9,9,9,8,9,9,9,10,7,9,9,9,10,11,8,9,9,9,11,11,9,9,11,11,11,9,10,11,11,11]);$_.modeANbeforeE=$a([7,8,9,$_.e,3,4,5,4,5,5,5,5,5,5,5,5,6,4,5,5,5,6,6,5,5,5,5,6,6,5,5,6,6,6,5,6,6,6,6]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__19955__=1;$_=Object.getPrototypeOf($_)}var _B7=$_.verset;for(var _B8=0,_B9=_B7.length;_B8<_B9;_B8++){$_.ver=$g(_B7,_B8);$_.mode=-1;$_.seq=$a([]);$_.i=0;for(;;){if($_.i>=$_.msglen){break}$_.numK=$g($_.numKs,$_.i);$_.numB=$g($_.numBs,$_.i);$_.numA=$g($_.numAs,$_.i);$_.numN=$g($_.numNs,$_.i);$_.numAorN=$g($_.numAorNs,$_.i);$_.eci=$g($_.isECI,$_.i);if($eq($_.ver,$_.vM1)&&$_.numA>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM1)&&$_.numB>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM1)&&$_.numK>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM1)&&$_.eci){$_.seq=-1;break}if($eq($_.ver,$_.vM2)&&$_.numB>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM2)&&$_.numK>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM2)&&$_.eci){$_.seq=-1;break}if($eq($_.ver,$_.vM3)&&$_.eci){$_.seq=-1;break}if($eq($_.ver,$_.vM4)&&$_.eci){$_.seq=-1;break}for(;;){if($_.eci){$k[$j++]=$_.E;break}if($_.mode==-1){$k[$j++]=$_.mode0forceKB;$_.KbeforeA();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.mode0forceKB;$_.KbeforeN();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeE;$_.KbeforeB();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.mode0forceKB;$_.KbeforeE();if($k[--$j]){$k[$j++]=$_.K;break}if($_.numK>=1){$k[$j++]=$_.B;break}$k[$j++]=$_.mode0NbeforeB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.mode0forceKB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.B;break}$k[$j++]=$_.modeANbeforeE;$_.NbeforeA();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.mode0forceN;$_.NbeforeE();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBAbeforeE;$_.AbeforeK();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeE;$_.AorNbeforeB();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.mode0forceA;$_.AorNbeforeE();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.B;break}if($_.mode==$_.B){$k[$j++]=$_.modeBKbeforeB;$_.KbeforeB();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeA;$_.KbeforeA();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeN;$_.KbeforeN();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeE;$_.KbeforeE();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBAbeforeK;$_.AbeforeK();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeB;$_.AbeforeB();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeN;$_.AbeforeN();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeE;$_.AbeforeE();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBNbeforeK;$_.NbeforeK();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBNbeforeB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBNbeforeA;$_.NbeforeA();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBNbeforeE;$_.NbeforeE();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBAbeforeE;$_.AorNbeforeE();var _DH=$k[--$j];if(_DH&&$le($_.numAorN,$g($_.modeBAbeforeN,$_.ver))){$k[$j++]=$_.modeBNbeforeA;$_.nextNslt();if($k[--$j]){$k[$j++]=$_.A;break}}$k[$j++]=$_.B;break}if($_.mode==$_.A){if($_.numK>=1){$k[$j++]=$_.K;break}if($_.numB>=1){$k[$j++]=$_.B;break}$k[$j++]=$_.modeANbeforeA;$_.NbeforeA();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeANbeforeB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeANbeforeE;$_.NbeforeE();if($k[--$j]){$k[$j++]=$_.N;break}if($_.numA>=1||$_.numN>=1){$k[$j++]=$_.A;break}$k[$j++]=$_.B;break}if($_.mode==$_.N){if($_.numK>=1){$k[$j++]=$_.K;break}if($_.numB>=1){$k[$j++]=$_.B;break}if($_.numA>=1){$k[$j++]=$_.A;break}if($_.numN>=1){$k[$j++]=$_.N;break}$k[$j++]=$_.B;break}if($_.mode==$_.K){if($_.numB>=1){$k[$j++]=$_.B;break}if($_.numA>=1){$k[$j++]=$_.A;break}if($_.numN>=1){$k[$j++]=$_.N;break}if($_.numK>=1){$k[$j++]=$_.K;break}$k[$j++]=$_.B;break}}var _E1=$k[--$j];$k[$j++]=_E1;if(_E1==$_.K&&$_.fnc1first){$j--;$k[$j++]=$_.B}var _E5=$k[--$j];$k[$j++]=_E5;if(_E5==$_.mode){$j--;var _EB=$_.mode==$_.K?2:1;$_.dat=$G($_.msg,$_.i,_EB);$k[$j++]=Infinity;$q($_.seq);$k[$j++]=Infinity;var _EE=$k[--$j];var _EF=$k[--$j];$k[$j++]=_EE;$q(_EF);$q($_.dat);var _EH=$a();$k[$j++]=_EH;$_.seq=$a()}else{$_.mode=$k[--$j];if($_.mode==$_.K){$k[$j++]=$_.K;$k[$j++]=$G($_.msg,$_.i,$_.numK*2)}if($_.mode==$_.B){$k[$j++]=$_.B;$k[$j++]=$G($_.msg,$_.i,$_.numB)}if($_.mode==$_.A){$k[$j++]=$_.A;$k[$j++]=$G($_.msg,$_.i,$_.numA)}if($_.mode==$_.N){$k[$j++]=$_.N;$k[$j++]=$G($_.msg,$_.i,$_.numN)}if($_.mode==$_.E){$_.mode=-1;$k[$j++]=$_.E;$k[$j++]=$G($_.msg,$_.i,1)}$_.dat=$k[--$j];$_.sw=$k[--$j];$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.sw;$k[$j++]=$_.dat;$_.seq=$a()}$_.i=$_.i+$_.dat.length}for(;;){if($_.seq==-1){break}$_.bits=$s(23648);$_.j=0;if($_.fnc1first){if($lt($_.ver,$_.vR7x43)){$k[$j++]="0101"}else{$k[$j++]="101"}$_.addtobits()}$_.abort=false;for(var _F7=0,_F6=$_.seq.length-1;_F7<=_F6;_F7+=2){$_.i=_F7;$_.mode=$g($_.seq,$_.i);$k[$j++]=$g($g($_.mids,$_.ver),$_.mode);$_.addtobits();$_.chars=$g($_.seq,$_.i+1);$k[$j++]="charslen";$k[$j++]=$_.chars.length;if($_.mode==$_.K){var _FM=$k[--$j];$k[$j++]=~~(_FM/2)}var _FN=$k[--$j];$_[$k[--$j]]=_FN;if($_.mode!=$_.E){$_.cclen=$g($g($_.cclens,$_.ver),$_.mode);if($_.charslen>=~~Math.pow(2,$_.cclen)){$_.abort=true;break}$k[$j++]=$_.charslen;$k[$j++]=$_.cclen;$_.tobin();$_.addtobits()}$k[$j++]=$_.chars;if($_[$g($_.encfuncs,$_.mode)]()===true){break}$_.addtobits()}if($_.abort){break}$_.bits=$G($_.bits,0,$_.j);$p($_.msgbits,$_.ver,$_.bits);break}}if(!bwipp_qrcode.__20173__){$_=Object.create($_);$_.metrics=$a([$a(["micro","M1",$_.vM1,11,11,98,99,36,$a([2,99,99,99]),$a([1,0,-1,-1,-1,-1,-1,-1])]),$a(["micro","M2",$_.vM2,13,13,98,99,80,$a([5,6,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M3",$_.vM3,15,15,98,99,132,$a([6,8,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M4",$_.vM4,17,17,98,99,192,$a([8,10,14,99]),$a([1,0,1,0,1,0,-1,-1])]),$a(["full","1",$_.v1to9,21,21,98,99,208,$a([7,10,13,17]),$a([1,0,1,0,1,0,1,0])]),$a(["full","2",$_.v1to9,25,25,18,99,359,$a([10,16,22,28]),$a([1,0,1,0,1,0,1,0])]),$a(["full","3",$_.v1to9,29,29,22,99,567,$a([15,26,36,44]),$a([1,0,1,0,2,0,2,0])]),$a(["full","4",$_.v1to9,33,33,26,99,807,$a([20,36,52,64]),$a([1,0,2,0,2,0,4,0])]),$a(["full","5",$_.v1to9,37,37,30,99,1079,$a([26,48,72,88]),$a([1,0,2,0,2,2,2,2])]),$a(["full","6",$_.v1to9,41,41,34,99,1383,$a([36,64,96,112]),$a([2,0,4,0,4,0,4,0])]),$a(["full","7",$_.v1to9,45,45,22,38,1568,$a([40,72,108,130]),$a([2,0,4,0,2,4,4,1])]),$a(["full","8",$_.v1to9,49,49,24,42,1936,$a([48,88,132,156]),$a([2,0,2,2,4,2,4,2])]),$a(["full","9",$_.v1to9,53,53,26,46,2336,$a([60,110,160,192]),$a([2,0,3,2,4,4,4,4])]),$a(["full","10",$_.v10to26,57,57,28,50,2768,$a([72,130,192,224]),$a([2,2,4,1,6,2,6,2])]),$a(["full","11",$_.v10to26,61,61,30,54,3232,$a([80,150,224,264]),$a([4,0,1,4,4,4,3,8])]),$a(["full","12",$_.v10to26,65,65,32,58,3728,$a([96,176,260,308]),$a([2,2,6,2,4,6,7,4])]),$a(["full","13",$_.v10to26,69,69,34,62,4256,$a([104,198,288,352]),$a([4,0,8,1,8,4,12,4])]),$a(["full","14",$_.v10to26,73,73,26,46,4651,$a([120,216,320,384]),$a([3,1,4,5,11,5,11,5])]),$a(["full","15",$_.v10to26,77,77,26,48,5243,$a([132,240,360,432]),$a([5,1,5,5,5,7,11,7])]),$a(["full","16",$_.v10to26,81,81,26,50,5867,$a([144,280,408,480]),$a([5,1,7,3,15,2,3,13])]),$a(["full","17",$_.v10to26,85,85,30,54,6523,$a([168,308,448,532]),$a([1,5,10,1,1,15,2,17])]),$a(["full","18",$_.v10to26,89,89,30,56,7211,$a([180,338,504,588]),$a([5,1,9,4,17,1,2,19])]),$a(["full","19",$_.v10to26,93,93,30,58,7931,$a([196,364,546,650]),$a([3,4,3,11,17,4,9,16])]),$a(["full","20",$_.v10to26,97,97,34,62,8683,$a([224,416,600,700]),$a([3,5,3,13,15,5,15,10])]),$a(["full","21",$_.v10to26,101,101,28,50,9252,$a([224,442,644,750]),$a([4,4,17,0,17,6,19,6])]),$a(["full","22",$_.v10to26,105,105,26,50,10068,$a([252,476,690,816]),$a([2,7,17,0,7,16,34,0])]),$a(["full","23",$_.v10to26,109,109,30,54,10916,$a([270,504,750,900]),$a([4,5,4,14,11,14,16,14])]),$a(["full","24",$_.v10to26,113,113,28,54,11796,$a([300,560,810,960]),$a([6,4,6,14,11,16,30,2])]),$a(["full","25",$_.v10to26,117,117,32,58,12708,$a([312,588,870,1050]),$a([8,4,8,13,7,22,22,13])]),$a(["full","26",$_.v10to26,121,121,30,58,13652,$a([336,644,952,1110]),$a([10,2,19,4,28,6,33,4])]),$a(["full","27",$_.v27to40,125,125,34,62,14628,$a([360,700,1020,1200]),$a([8,4,22,3,8,26,12,28])]),$a(["full","28",$_.v27to40,129,129,26,50,15371,$a([390,728,1050,1260]),$a([3,10,3,23,4,31,11,31])]),$a(["full","29",$_.v27to40,133,133,30,54,16411,$a([420,784,1140,1350]),$a([7,7,21,7,1,37,19,26])]),$a(["full","30",$_.v27to40,137,137,26,52,17483,$a([450,812,1200,1440]),$a([5,10,19,10,15,25,23,25])]),$a(["full","31",$_.v27to40,141,141,30,56,18587,$a([480,868,1290,1530]),$a([13,3,2,29,42,1,23,28])]),$a(["full","32",$_.v27to40,145,145,34,60,19723,$a([510,924,1350,1620]),$a([17,0,10,23,10,35,19,35])]),$a(["full","33",$_.v27to40,149,149,30,58,20891,$a([540,980,1440,1710]),$a([17,1,14,21,29,19,11,46])]),$a(["full","34",$_.v27to40,153,153,34,62,22091,$a([570,1036,1530,1800]),$a([13,6,14,23,44,7,59,1])]),$a(["full","35",$_.v27to40,157,157,30,54,23008,$a([570,1064,1590,1890]),$a([12,7,12,26,39,14,22,41])]),$a(["full","36",$_.v27to40,161,161,24,50,24272,$a([600,1120,1680,1980]),$a([6,14,6,34,46,10,2,64])]),$a(["full","37",$_.v27to40,165,165,28,54,25568,$a([630,1204,1770,2100]),$a([17,4,29,14,49,10,24,46])]),$a(["full","38",$_.v27to40,169,169,32,58,26896,$a([660,1260,1860,2220]),$a([4,18,13,32,48,14,42,32])]),$a(["full","39",$_.v27to40,173,173,26,54,28256,$a([720,1316,1950,2310]),$a([20,4,40,7,43,22,10,67])]),$a(["full","40",$_.v27to40,177,177,30,58,29648,$a([750,1372,2040,2430]),$a([19,6,18,31,34,34,20,61])]),$a(["rmqr","R7x43",$_.vR7x43,7,43,22,99,104,$a([99,7,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x59",$_.vR7x59,7,59,20,40,171,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x77",$_.vR7x77,7,77,26,52,261,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x99",$_.vR7x99,7,99,24,50,358,$a([99,16,99,30]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x139",$_.vR7x139,7,139,28,56,545,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x43",$_.vR9x43,9,43,22,99,170,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x59",$_.vR9x59,9,59,20,40,267,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x77",$_.vR9x77,9,77,26,52,393,$a([99,18,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R9x99",$_.vR9x99,9,99,24,50,532,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x139",$_.vR9x139,9,139,28,56,797,$a([99,36,99,66]),$a([-1,-1,1,1,-1,-1,3,0])]),$a(["rmqr","R11x27",$_.vR11x27,11,27,98,99,122,$a([99,8,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x43",$_.vR11x43,11,43,22,99,249,$a([99,12,99,20]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x59",$_.vR11x59,11,59,20,40,376,$a([99,16,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x77",$_.vR11x77,11,77,26,52,538,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x99",$_.vR11x99,11,99,24,50,719,$a([99,32,99,60]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R11x139",$_.vR11x139,11,139,28,56,1062,$a([99,48,99,90]),$a([-1,-1,2,0,-1,-1,3,0])]),$a(["rmqr","R13x27",$_.vR13x27,13,27,98,99,172,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x43",$_.vR13x43,13,43,22,99,329,$a([99,14,99,28]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x59",$_.vR13x59,13,59,20,40,486,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R13x77",$_.vR13x77,13,77,26,52,684,$a([99,32,99,56]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R13x99",$_.vR13x99,13,99,24,50,907,$a([99,40,99,78]),$a([-1,-1,1,1,-1,-1,1,2])]),$a(["rmqr","R13x139",$_.vR13x139,13,139,28,56,1328,$a([99,60,99,112]),$a([-1,-1,2,1,-1,-1,2,2])]),$a(["rmqr","R15x43",$_.vR15x43,15,43,22,99,409,$a([99,18,99,36]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R15x59",$_.vR15x59,15,59,20,40,596,$a([99,26,99,48]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R15x77",$_.vR15x77,15,77,26,52,830,$a([99,36,99,72]),$a([-1,-1,1,1,-1,-1,2,1])]),$a(["rmqr","R15x99",$_.vR15x99,15,99,24,50,1095,$a([99,48,99,88]),$a([-1,-1,2,0,-1,-1,4,0])]),$a(["rmqr","R15x139",$_.vR15x139,15,139,28,56,1594,$a([99,72,99,130]),$a([-1,-1,2,1,-1,-1,1,4])]),$a(["rmqr","R17x43",$_.vR17x43,17,43,22,99,489,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R17x59",$_.vR17x59,17,59,20,40,706,$a([99,32,99,60]),$a([-1,-1,2,0,-1,-1,2,0])]),$a(["rmqr","R17x77",$_.vR17x77,17,77,26,52,976,$a([99,44,99,84]),$a([-1,-1,2,0,-1,-1,1,2])]),$a(["rmqr","R17x99",$_.vR17x99,17,99,24,50,1283,$a([99,60,99,104]),$a([-1,-1,2,1,-1,-1,4,0])]),$a(["rmqr","R17x139",$_.vR17x139,17,139,28,56,1860,$a([99,80,99,156]),$a([-1,-1,4,0,-1,-1,2,4])])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20173__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="eclval";$X("LMQH",$_.eclevel);$j--;var _Kj=$k[--$j];var _Kk=$k[--$j];$k[$j++]=_Kj.length;$k[$j++]=_Kk;$j--;var _Kl=$k[--$j];var _Km=$k[--$j];$k[$j++]=_Kl;$k[$j++]=_Km;$j--;var _Kn=$k[--$j];$_[$k[--$j]]=_Kn;for(var _Kr=0,_Kq=$_.metrics.length-1;_Kr<=_Kq;_Kr+=1){$_.i=_Kr;$_.m=$g($_.metrics,$_.i);$_.frmt=$g($_.m,0);$_.vers=$g($_.m,1);$_.vergrp=$g($_.m,2);$_.verind=$_.i-44;$_.rows=$g($_.m,3);$_.cols=$g($_.m,4);$_.asp2=$g($_.m,5);$_.asp3=$g($_.m,6);$_.nmod=$g($_.m,7);$_.ncws=~~($_.nmod/8);$_.rbit=$_.nmod%8;$_.lc4b=false;if($eq($_.vers,"M1")||$eq($_.vers,"M3")){$_.ncws=$_.ncws+1;$_.rbit=0;$_.lc4b=true}$_.ecws=$g($g($_.m,8),$_.eclval);$_.dcws=$f($_.ncws-$_.ecws);var _LP=$_.lc4b?4:0;$_.dmod=$f($_.dcws*8-_LP);$_.ecb1=$g($g($_.m,9),$_.eclval*2);$_.ecb2=$g($g($_.m,9),$f($_.eclval*2+1));$_.okay=true;if($ne($_.format,$_.frmt)){$_.okay=false}if($eq($_.frmt,"micro")&&$_.fnc1first){$_.okay=false}if($ne($_.version,"unset")&&$ne($_.version,$_.vers)){$_.okay=false}if($_.ecb1==-1||$_.ecb2==-1){$_.okay=false}$_.verbits=$g($_.msgbits,$_.vergrp);if($_.verbits==-1){$_.okay=false}else{if($_.verbits.length>$_.dmod){$_.okay=false}}$_.term=$G("000000000",0,$g($_.termlens,$_.vergrp));if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.qrcodeNoValidSymbol#20217";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}$_.format=$_.frmt;$_.version=$_.vers;$_.msgbits=$_.verbits;$_.dcpb=~~($_.dcws/$f($_.ecb1+$_.ecb2));$_.ecpb=~~($_.ncws/$f($_.ecb1+$_.ecb2))-$_.dcpb;var _M3=$_.term;var _M4=$_.dmod;var _M5=$_.msgbits;var _M6=$_.term;var _M7=_M6.length;var _M8=$f(_M4-_M5.length);if($f(_M4-_M5.length)>_M6.length){var _=_M7;_M7=_M8;_M8=_}$_.term=$G(_M3,0,_M8);var _MC=$s($_.msgbits.length+$_.term.length);$P(_MC,0,$_.msgbits);$P(_MC,$_.msgbits.length,$_.term);$_.msgbits=_MC;$_.pad=$s($_.dmod);for(var _MK=0,_MJ=$_.pad.length-1;_MK<=_MJ;_MK+=1){$p($_.pad,_MK,48)}$P($_.pad,0,$_.msgbits);$_.padnum=0;var _MR=$_.lc4b?5:1;for(var _MT=~~(Math.ceil($_.msgbits.length/8)*8),_MS=$f($_.dmod-_MR);_MT<=_MS;_MT+=8){$P($_.pad,_MT,$g($_.padstrs,$_.padnum));$_.padnum=($_.padnum+1)%2}$_.cws=$a($_.dcws);for(var _Md=0,_Mc=$_.cws.length-1;_Md<=_Mc;_Md+=1){$_.c=_Md;$_.bpcw=8;if($_.lc4b&&$_.c==$_.cws.length-1){$_.bpcw=4}$_.cwb=$G($_.pad,$_.c*8,$_.bpcw);$_.cw=0;for(var _Mn=0,_Mm=$_.bpcw-1;_Mn<=_Mm;_Mn+=1){$_.i=_Mn;$_.cw=$f($_.cw+~~Math.pow(2,$_.bpcw-$_.i-1)*$f($g($_.cwb,$_.i)-48))}$p($_.cws,$_.c,$_.cw)}if($_.lc4b){var _My=$_.cws;var _Mz=$_.cws;$p(_My,_Mz.length-1,$g(_My,_Mz.length-1)<<4)}var _N2=$g($_.options,"debugcws")!==undefined;if(_N2){$k[$j++]="bwipp.debugcws#20261";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_qrcode.__20268__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _N4=0,_N5=255;_N4<_N5;_N4++){var _N6=$k[--$j];var _N7=_N6*2;$k[$j++]=_N6;$k[$j++]=_N7;if(_N7>=256){var _N8=$k[--$j];$k[$j++]=_N8^285}}$_.rsalog=$a();$_.rslog=$a(256);for(var _NB=1;_NB<=255;_NB+=1){$p($_.rslog,$g($_.rsalog,_NB),_NB)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20268__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _NG=$k[--$j];var _NH=$k[--$j];$k[$j++]=_NH;$k[$j++]=_NG;if(_NG!=0&&_NH!=0){var _NK=$g($_.rslog,$k[--$j]);var _NP=$g($_.rsalog,$f(_NK+$g($_.rslog,$k[--$j]))%255);$k[$j++]=_NP}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _NR=0,_NS=$_.ecpb;_NR<_NS;_NR++){$k[$j++]=0}$_.coeffs=$a();for(var _NW=0,_NV=$_.ecpb-1;_NW<=_NV;_NW+=1){$_.i=_NW;$p($_.coeffs,$_.i+1,$g($_.coeffs,$_.i));for(var _Nd=$_.i;_Nd>=1;_Nd-=1){$_.j=_Nd;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Np=$k[--$j];var _Nq=$k[--$j];var _Nr=$k[--$j];$p($k[--$j],_Nr,$xo(_Nq,_Np))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Nz=$k[--$j];var _O0=$k[--$j];$p($k[--$j],_O0,_Nz)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);$_.rscodes=function(){$_.rscws=$k[--$j];$_.rsnd=$_.rscws.length;$k[$j++]=Infinity;$F($_.rscws);for(var _O9=0,_OA=$_.ecpb;_O9<_OA;_O9++){$k[$j++]=0}$_.rscws=$a();for(var _OE=0,_OD=$_.rsnd-1;_OE<=_OD;_OE+=1){$_.m=_OE;$_.k=$g($_.rscws,$_.m);for(var _OK=0,_OJ=$_.ecpb-1;_OK<=_OJ;_OK+=1){$_.j=_OK;$k[$j++]=$_.rscws;$k[$j++]=$_.m+$_.j+1;$k[$j++]=$g($_.coeffs,$_.ecpb-$_.j-1);$k[$j++]=$_.k;$_.rsprod();var _OX=$k[--$j];var _OY=$k[--$j];$p($k[--$j],_OY,$xo(_OX,$g($_.rscws,$_.m+$_.j+1)))}}$k[$j++]=$G($_.rscws,$_.rsnd,$_.ecpb)};$_.dcwsb=$a($f($_.ecb1+$_.ecb2));$_.ecwsb=$a($f($_.ecb1+$_.ecb2));for(var _Om=0,_Ol=$f($_.ecb1-1);_Om<=_Ol;_Om+=1){$_.i=_Om;$p($_.dcwsb,$_.i,$G($_.cws,$_.i*$_.dcpb,$_.dcpb));$k[$j++]=$_.ecwsb;$k[$j++]=$_.i;$k[$j++]=$g($_.dcwsb,$_.i);$_.rscodes();var _Oz=$k[--$j];var _P0=$k[--$j];$p($k[--$j],_P0,_Oz)}for(var _P4=0,_P3=$f($_.ecb2-1);_P4<=_P3;_P4+=1){$_.i=_P4;$p($_.dcwsb,$f($_.ecb1+$_.i),$G($_.cws,$f($_.ecb1*$_.dcpb+$_.i*($_.dcpb+1)),$_.dcpb+1));$k[$j++]=$_.ecwsb;$k[$j++]=$f($_.ecb1+$_.i);$k[$j++]=$g($_.dcwsb,$f($_.ecb1+$_.i));$_.rscodes();var _PM=$k[--$j];var _PN=$k[--$j];$p($k[--$j],_PN,_PM)}$_.cws=$a($_.ncws);$_.cw=0;for(var _PT=0,_PS=$_.dcpb;_PT<=_PS;_PT+=1){$_.i=_PT;for(var _PX=0,_PW=$f($f($_.ecb1+$_.ecb2)-1);_PX<=_PW;_PX+=1){$_.j=_PX;if($_.i<$g($_.dcwsb,$_.j).length){$p($_.cws,$_.cw,$g($g($_.dcwsb,$_.j),$_.i));$_.cw=$_.cw+1}}}for(var _Pm=0,_Pl=$_.ecpb-1;_Pm<=_Pl;_Pm+=1){$_.i=_Pm;for(var _Pq=0,_Pp=$f($f($_.ecb1+$_.ecb2)-1);_Pq<=_Pp;_Pq+=1){$_.j=_Pq;$p($_.cws,$_.cw,$g($g($_.ecwsb,$_.j),$_.i));$_.cw=$_.cw+1}}if($_.rbit>0){$_.pad=$a($_.cws.length+1);$P($_.pad,0,$_.cws);$p($_.pad,$_.pad.length-1,0);$_.cws=$_.pad}if($_.lc4b){var _Q8=$_.cws;var _Q9=$_.dcws;$p(_Q8,$f(_Q9-1),$g(_Q8,$f(_Q9-1))>>>4);for(var _QE=$f($_.dcws-1),_QD=$_.ncws-2;_QE<=_QD;_QE+=1){$_.i=_QE;$p($_.cws,$_.i,($g($_.cws,$_.i)&15)<<4);$p($_.cws,$_.i,$g($_.cws,$_.i+1)>>>4&15|$g($_.cws,$_.i))}$p($_.cws,$_.ncws-1,($g($_.cws,$_.ncws-1)&15)<<4)}var _QY=$g($_.options,"debugecc")!==undefined;if(_QY){$k[$j++]="bwipp.debugecc#20363";$k[$j++]=$_.cws;bwipp_raiseerror()}$k[$j++]=Infinity;for(var _Qc=0,_Qd=$_.rows*$_.cols;_Qc<_Qd;_Qc++){$k[$j++]=-1}$_.pixs=$a();$_.qmv=function(){var _Qg=$k[--$j];var _Qh=$k[--$j];$k[$j++]=$f(_Qh+_Qg*$_.cols)};if($eq($_.format,"full")){for(var _Ql=8,_Qk=$f($_.cols-9);_Ql<=_Qk;_Ql+=1){$_.i=_Ql;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=6;$_.qmv();var _Qp=$k[--$j];$p($k[--$j],_Qp,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=6;$k[$j++]=$_.i;$_.qmv();var _Qu=$k[--$j];$p($k[--$j],_Qu,($_.i+1)%2)}}if($eq($_.format,"micro")){for(var _Qz=8,_Qy=$f($_.cols-1);_Qz<=_Qy;_Qz+=1){$_.i=_Qz;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=0;$_.qmv();var _R3=$k[--$j];$p($k[--$j],_R3,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i;$_.qmv();var _R8=$k[--$j];$p($k[--$j],_R8,($_.i+1)%2)}}if($eq($_.format,"rmqr")){for(var _RD=3,_RC=$f($_.cols-4);_RD<=_RC;_RD+=1){$_.i=_RD;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=0;$_.qmv();var _RH=$k[--$j];$p($k[--$j],_RH,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$f($_.rows-1);$_.qmv();var _RN=$k[--$j];$p($k[--$j],_RN,($_.i+1)%2)}for(var _RR=3,_RQ=$f($_.rows-4);_RR<=_RQ;_RR+=1){$_.i=_RR;$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i;$_.qmv();var _RV=$k[--$j];$p($k[--$j],_RV,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=$f($_.cols-1);$k[$j++]=$_.i;$_.qmv();var _Rb=$k[--$j];$p($k[--$j],_Rb,($_.i+1)%2)}for(var _Ri=$f($_.asp2-1),_Rj=$f($_.asp3-$_.asp2),_Rh=$f($_.cols-13);_Rj<0?_Ri>=_Rh:_Ri<=_Rh;_Ri+=_Rj){$_.i=_Ri;for(var _Rm=3,_Rl=$f($_.rows-4);_Rm<=_Rl;_Rm+=1){$_.j=_Rm;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _Rr=$k[--$j];$p($k[--$j],_Rr,($_.j+1)%2)}}}if(!bwipp_qrcode.__20452__){$_=Object.create($_);$_.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$_.fsubpat=$a([$a([1,1,1,1,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,0,1,0,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,1,1,1,1,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$_.fcorpat=$a([$a([1,1,1,9,9,9,9,9]),$a([1,0,9,9,9,9,9,9]),$a([1,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$_.fnullpat=$a([$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);var _Si=new Map([["full",$a([$_.fpat,$_.fpat,$_.fpat,$_.fnullpat])],["micro",$a([$_.fpat,$_.fnullpat,$_.fnullpat,$_.fnullpat])],["rmqr",$a([$_.fpat,$_.fcorpat,$_.fcorpat,$_.fsubpat])]]);$_.fpatmap=_Si;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20452__=1;$_=Object.getPrototypeOf($_)}$_.fpats=$g($_.fpatmap,$_.format);for(var _Sn=0;_Sn<=7;_Sn+=1){$_.y=_Sn;for(var _So=0;_So<=7;_So+=1){$_.x=_So;$_.fpb0=$g($g($g($_.fpats,0),$_.y),$_.x);$_.fpb1=$g($g($g($_.fpats,1),$_.y),$_.x);$_.fpb2=$g($g($g($_.fpats,2),$_.y),$_.x);$_.fpb3=$g($g($g($_.fpats,3),$_.y),$_.x);if($_.fpb0!=9&&$_.y<$_.rows){$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _TK=$k[--$j];$p($k[--$j],_TK,$_.fpb0)}if($_.fpb1!=9){$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.cols-$_.x)-1);$k[$j++]=$_.y;$_.qmv();var _TS=$k[--$j];$p($k[--$j],_TS,$_.fpb1)}if($_.fpb2!=9){$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$f($f($_.rows-$_.y)-1);$_.qmv();var _Ta=$k[--$j];$p($k[--$j],_Ta,$_.fpb2)}if($_.fpb3!=9){$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.cols-$_.x)-1);$k[$j++]=$f($f($_.rows-$_.y)-1);$_.qmv();var _Tj=$k[--$j];$p($k[--$j],_Tj,$_.fpb3)}}}if(!bwipp_qrcode.__20485__){$_=Object.create($_);$_.algnpatfull=$a([$a([1,1,1,1,1]),$a([1,0,0,0,1]),$a([1,0,1,0,1]),$a([1,0,0,0,1]),$a([1,1,1,1,1])]);$_.algnpatrmqr=$a([$a([1,1,1,9,9]),$a([1,0,1,9,9]),$a([1,1,1,9,9]),$a([9,9,9,9,9]),$a([9,9,9,9,9])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20485__=1;$_=Object.getPrototypeOf($_)}$_.putalgnpat=function(){$_.py=$k[--$j];$_.px=$k[--$j];for(var _U0=0;_U0<=4;_U0+=1){$_.pb=_U0;for(var _U1=0;_U1<=4;_U1+=1){$_.pa=_U1;$_.algnb=$g($g($_.algnpat,$_.pb),$_.pa);if($_.algnb!=9){$k[$j++]=$_.pixs;$k[$j++]=$f($_.px+$_.pa);$k[$j++]=$f($_.py+$_.pb);$_.qmv();var _UE=$k[--$j];$p($k[--$j],_UE,$_.algnb)}}}};if($eq($_.format,"full")){$_.algnpat=$_.algnpatfull;for(var _UN=$f($_.asp2-2),_UO=$f($_.asp3-$_.asp2),_UM=$f($_.cols-13);_UO<0?_UN>=_UM:_UN<=_UM;_UN+=_UO){$_.i=_UN;$k[$j++]=$_.i;$k[$j++]=4;$_.putalgnpat();$k[$j++]=4;$k[$j++]=$_.i;$_.putalgnpat()}for(var _UW=$f($_.asp2-2),_UX=$f($_.asp3-$_.asp2),_UV=$f($_.cols-9);_UX<0?_UW>=_UV:_UW<=_UV;_UW+=_UX){$_.x=_UW;for(var _Ud=$f($_.asp2-2),_Ue=$f($_.asp3-$_.asp2),_Uc=$f($_.rows-9);_Ue<0?_Ud>=_Uc:_Ud<=_Uc;_Ud+=_Ue){$_.y=_Ud;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.putalgnpat()}}}if($eq($_.format,"rmqr")){$_.algnpat=$_.algnpatrmqr;for(var _Uo=$f($_.asp2-2),_Up=$f($_.asp3-$_.asp2),_Un=$f($_.cols-13);_Up<0?_Uo>=_Un:_Uo<=_Un;_Uo+=_Up){$_.i=_Uo;$k[$j++]=$_.i;$k[$j++]=0;$_.putalgnpat();$k[$j++]=$_.i;$k[$j++]=$f($_.rows-3);$_.putalgnpat()}}if(!bwipp_qrcode.__20532__){$_=Object.create($_);$_.formatmapmicro=$a([$a([$a([1,8])]),$a([$a([2,8])]),$a([$a([3,8])]),$a([$a([4,8])]),$a([$a([5,8])]),$a([$a([6,8])]),$a([$a([7,8])]),$a([$a([8,8])]),$a([$a([8,7])]),$a([$a([8,6])]),$a([$a([8,5])]),$a([$a([8,4])]),$a([$a([8,3])]),$a([$a([8,2])]),$a([$a([8,1])])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20532__=1;$_=Object.getPrototypeOf($_)}var _Xs=new Map([["full",$a([$a([$a([0,8]),$a([8,$f($_.cols-1)])]),$a([$a([1,8]),$a([8,$f($_.cols-2)])]),$a([$a([2,8]),$a([8,$f($_.cols-3)])]),$a([$a([3,8]),$a([8,$f($_.cols-4)])]),$a([$a([4,8]),$a([8,$f($_.cols-5)])]),$a([$a([5,8]),$a([8,$f($_.cols-6)])]),$a([$a([7,8]),$a([8,$f($_.cols-7)])]),$a([$a([8,8]),$a([$f($_.cols-8),8])]),$a([$a([8,7]),$a([$f($_.cols-7),8])]),$a([$a([8,5]),$a([$f($_.cols-6),8])]),$a([$a([8,4]),$a([$f($_.cols-5),8])]),$a([$a([8,3]),$a([$f($_.cols-4),8])]),$a([$a([8,2]),$a([$f($_.cols-3),8])]),$a([$a([8,1]),$a([$f($_.cols-2),8])]),$a([$a([8,0]),$a([$f($_.cols-1),8])])])],["micro",$_.formatmapmicro],["rmqr",$a([$a([$a([11,3]),$a([$f($_.cols-3),$f($_.rows-6)])]),$a([$a([11,2]),$a([$f($_.cols-4),$f($_.rows-6)])]),$a([$a([11,1]),$a([$f($_.cols-5),$f($_.rows-6)])]),$a([$a([10,5]),$a([$f($_.cols-6),$f($_.rows-2)])]),$a([$a([10,4]),$a([$f($_.cols-6),$f($_.rows-3)])]),$a([$a([10,3]),$a([$f($_.cols-6),$f($_.rows-4)])]),$a([$a([10,2]),$a([$f($_.cols-6),$f($_.rows-5)])]),$a([$a([10,1]),$a([$f($_.cols-6),$f($_.rows-6)])]),$a([$a([9,5]),$a([$f($_.cols-7),$f($_.rows-2)])]),$a([$a([9,4]),$a([$f($_.cols-7),$f($_.rows-3)])]),$a([$a([9,3]),$a([$f($_.cols-7),$f($_.rows-4)])]),$a([$a([9,2]),$a([$f($_.cols-7),$f($_.rows-5)])]),$a([$a([9,1]),$a([$f($_.cols-7),$f($_.rows-6)])]),$a([$a([8,5]),$a([$f($_.cols-8),$f($_.rows-2)])]),$a([$a([8,4]),$a([$f($_.cols-8),$f($_.rows-3)])]),$a([$a([8,3]),$a([$f($_.cols-8),$f($_.rows-4)])]),$a([$a([8,2]),$a([$f($_.cols-8),$f($_.rows-5)])]),$a([$a([8,1]),$a([$f($_.cols-8),$f($_.rows-6)])])])]]);$_.formatmap=$g(_Xs,$_.format);$F($_.formatmap,function(){$F($k[--$j],function(){$F($k[--$j]);$_.qmv();$p($_.pixs,$k[--$j],1)})});if($eq($_.format,"full")&&$_.cols>=45){$_.versionmap=$a([$a([$a([$f($_.cols-9),5]),$a([5,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),5]),$a([5,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),5]),$a([5,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),4]),$a([4,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),4]),$a([4,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),4]),$a([4,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),3]),$a([3,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),3]),$a([3,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),3]),$a([3,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),2]),$a([2,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),2]),$a([2,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),2]),$a([2,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),1]),$a([1,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),1]),$a([1,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),1]),$a([1,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),0]),$a([0,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),0]),$a([0,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),0]),$a([0,$f($_.cols-11)])])])}else{$_.versionmap=$a([])}var _ZW=$_.versionmap;for(var _ZX=0,_ZY=_ZW.length;_ZX<_ZY;_ZX++){$F($g(_ZW,_ZX),function(){$F($k[--$j]);$_.qmv();$p($_.pixs,$k[--$j],0)})}if($eq($_.format,"full")){$k[$j++]=$_.pixs;$k[$j++]=8;$k[$j++]=$f($_.rows-8);$_.qmv();var _Zg=$k[--$j];$p($k[--$j],_Zg,0)}var _a0=$a([function(){var _Zi=$k[--$j];var _Zj=$k[--$j];$k[$j++]=$f(_Zj+_Zi)%2},function(){var _Zk=$k[--$j];var _Zl=$k[--$j];$k[$j++]=_Zk;$k[$j++]=_Zl;$j--;var _Zm=$k[--$j];$k[$j++]=_Zm%2},function(){$j--;var _Zn=$k[--$j];$k[$j++]=_Zn%3},function(){var _Zo=$k[--$j];var _Zp=$k[--$j];$k[$j++]=$f(_Zp+_Zo)%3},function(){var _Zq=$k[--$j];var _Zr=$k[--$j];$k[$j++]=(~~(_Zq/2)+~~(_Zr/3))%2},function(){var _Zs=$k[--$j];var _Zu=$k[--$j]*_Zs;$k[$j++]=$f(_Zu%2+_Zu%3)},function(){var _Zv=$k[--$j];var _Zx=$k[--$j]*_Zv;$k[$j++]=$f(_Zx%2+_Zx%3)%2},function(){var _Zy=$k[--$j];var _Zz=$k[--$j];$k[$j++]=$f(_Zz*_Zy%3+$f(_Zz+_Zy)%2)%2}]);var _aB=$a([function(){var _a1=$k[--$j];var _a2=$k[--$j];$k[$j++]=_a1;$k[$j++]=_a2;$j--;var _a3=$k[--$j];$k[$j++]=_a3%2},function(){var _a4=$k[--$j];var _a5=$k[--$j];$k[$j++]=(~~(_a4/2)+~~(_a5/3))%2},function(){var _a6=$k[--$j];var _a8=$k[--$j]*_a6;$k[$j++]=$f(_a8%2+_a8%3)%2},function(){var _a9=$k[--$j];var _aA=$k[--$j];$k[$j++]=$f(_aA*_a9%3+$f(_aA+_a9)%2)%2}]);var _aE=$a([function(){var _aC=$k[--$j];var _aD=$k[--$j];$k[$j++]=(~~(_aC/2)+~~(_aD/3))%2}]);var _aF=new Map([["full",_a0],["micro",_aB],["rmqr",_aE]]);$_.maskfuncs=$g(_aF,$_.format);if($_.mask!=-1){$_.maskfuncs=$a([$g($_.maskfuncs,$_.mask-1)]);$_.bestmaskval=$_.mask-1}$_.masks=$a($_.maskfuncs.length);for(var _aS=0,_aR=$_.masks.length-1;_aS<=_aR;_aS+=1){$_.m=_aS;$_.mask=$a($_.rows*$_.cols);for(var _aY=0,_aX=$f($_.rows-1);_aY<=_aX;_aY+=1){$_.j=_aY;for(var _ab=0,_aa=$f($_.cols-1);_ab<=_aa;_ab+=1){$_.i=_ab;$k[$j++]=$_.i;$k[$j++]=$_.j;if($g($_.maskfuncs,$_.m)()===true){break}var _ah=$k[--$j];$k[$j++]=_ah==0;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _al=$k[--$j];var _an=$g($k[--$j],_al);var _ao=$k[--$j];var _ap=_ao&&_an==-1?1:0;$k[$j++]=_ap;$k[$j++]=$_.mask;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _at=$k[--$j];var _au=$k[--$j];$p(_au,_at,$k[--$j])}}$p($_.masks,$_.m,$_.mask)}var _b1=$ne($_.format,"rmqr")?1:2;$_.posx=$f($_.cols-_b1);$_.posy=$f($_.rows-1);$_.dir=-1;$_.col=1;$_.num=0;for(;;){if($_.posx<0){break}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _b7=$k[--$j];if($g($k[--$j],_b7)==-1){var _bC=$g($_.cws,~~($_.num/8));var _bE=-(7-$_.num%8);$k[$j++]=(_bE<0?_bC>>>-_bE:_bC<<_bE)&1;$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _bI=$k[--$j];var _bJ=$k[--$j];$p(_bJ,_bI,$k[--$j]);$_.num=$_.num+1}if($_.col==1){$_.col=0;$_.posx=$f($_.posx-1)}else{$_.col=1;$_.posx=$f($_.posx+1);$_.posy=$f($_.posy+$_.dir);if($_.posy<0||$_.posy>=$_.rows){$_.dir=$_.dir*-1;$_.posy=$f($_.posy+$_.dir);$_.posx=$f($_.posx-2);if($eq($_.format,"full")&&$_.posx==6){$_.posx=$f($_.posx-1)}}}}$_.evalfulln1n3=function(){$_.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($_.scrle,function(){var _bd=$k[--$j];$k[$j++]=_bd;if(_bd>=5){var _be=$k[--$j];var _bg=$f($f($k[--$j]+_be)-2);$k[$j++]=_bg;$k[$j++]=_bg}$j--});var _bh=$k[--$j];$_[$k[--$j]]=_bh;$_.scr3=0;for(var _bl=3,_bk=$_.scrle.length-3;_bl<=_bk;_bl+=2){$_.j=_bl;if($g($_.scrle,$_.j)%3==0){$_.fact=~~($g($_.scrle,$_.j)/3);var _bu=$G($_.scrle,$_.j-2,5);for(var _bv=0,_bw=_bu.length;_bv<_bw;_bv++){$k[$j++]=$g(_bu,_bv)==$_.fact}var _bz=$k[--$j];var _c0=$k[--$j];var _c1=$k[--$j];$k[$j++]=$an(_c0,_bz);$k[$j++]=_c1;$j--;var _c2=$k[--$j];var _c3=$k[--$j];var _c4=$k[--$j];if(_c4&&(_c3&&_c2)){if($_.j==3||$_.j+4>=$_.scrle.length){$_.scr3=$_.scr3+40}else{if($g($_.scrle,$_.j-3)>=4||$g($_.scrle,$_.j+3)>=4){$_.scr3=$_.scr3+40}}}}}$k[$j++]=$_.scr1;$k[$j++]=$_.scr3};$_.evalfull=function(){$_.sym=$k[--$j];$_.n1=0;$_.n2=0;$_.n3=0;$_.rle=$a($f($_.cols+1));$_.lastpairs=$a($_.cols);$_.thispairs=$a($_.cols);$_.colsadd1=$f($_.cols+1);for(var _cS=0,_cR=$f($_.cols-1);_cS<=_cR;_cS+=1){$_.i=_cS;$k[$j++]=Infinity;var _cU=$_.cols;$k[$j++]=0;$k[$j++]=0;for(var _cW=$_.i,_cX=_cU,_cV=$f(_cU*_cU-1);_cX<0?_cW>=_cV:_cW<=_cV;_cW+=_cX){var _cZ=$g($_.sym,_cW);var _ca=$k[--$j];$k[$j++]=_cZ;if($eq(_ca,_cZ)){var _cb=$k[--$j];var _cc=$k[--$j];$k[$j++]=$f(_cc+1);$k[$j++]=_cb}else{var _cd=$k[--$j];$k[$j++]=1;$k[$j++]=_cd}}$j--;var _cf=$m()+2;$as($G($_.rle,0,_cf-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;$_.symrow=$G($_.sym,$_.i*$_.cols,$_.cols);$k[$j++]=Infinity;var _cq=$_.symrow;$k[$j++]=0;$k[$j++]=0;for(var _cr=0,_cs=_cq.length;_cr<_cs;_cr++){var _ct=$g(_cq,_cr);var _cu=$k[--$j];$k[$j++]=_ct;if($eq(_cu,_ct)){var _cv=$k[--$j];var _cw=$k[--$j];$k[$j++]=$f(_cw+1);$k[$j++]=_cv}else{var _cx=$k[--$j];$k[$j++]=1;$k[$j++]=_cx}}$j--;var _cz=$m()+2;$as($G($_.rle,0,_cz-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;var _d5=$_.thispairs;$_.thispairs=$_.lastpairs;$_.lastpairs=_d5;var _d9=$g($_.symrow,0)==1?0:1;var _dA=$_.symrow;$k[$j++]=_d9;for(var _dB=0,_dC=_dA.length;_dB<_dC;_dB++){var _dD=$g(_dA,_dB);var _dE=$k[--$j];$k[$j++]=$f(_dE+_dD);$k[$j++]=_dD}$j--;$as($_.thispairs);$j--;if($_.i>0){$k[$j++]=Infinity;$q($_.lastpairs);$q($_.thispairs);$k[$j++]=$_.n2;for(var _dL=0,_dM=$_.cols;_dL<_dM;_dL++){var _dN=$k[--$j];var _dO=$k[--$j];$k[$j++]=_dN;$k[$j++]=_dO;var _dQ=$k[$j-1-$_.colsadd1];if(($f($k[--$j]+_dQ)&3)==0){var _dS=$k[--$j];$k[$j++]=$f(_dS+3)}}$_.n2=$k[--$j];$l()}}$k[$j++]="dark";$k[$j++]=0;$F($_.sym,function(){var _dV=$k[--$j];var _dW=$k[--$j];$k[$j++]=$f(_dW+_dV)});var _dX=$k[--$j];$_[$k[--$j]]=_dX;var _da=$_.cols;$_.n4=~~(Math.abs($f($_.dark*100/(_da*_da)-50))/5)*10;$k[$j++]=$f($f($f($_.n1+$_.n2)+$_.n3)+$_.n4)};$_.evalmicro=function(){$_.sym=$k[--$j];$_.dkrhs=0;$_.dkbot=0;for(var _di=1,_dh=$f($_.cols-1);_di<=_dh;_di+=1){$_.i=_di;$k[$j++]="dkrhs";$k[$j++]=$_.dkrhs;$k[$j++]=$_.sym;$k[$j++]=$f($_.cols-1);$k[$j++]=$_.i;$_.qmv();var _dn=$k[--$j];var _dp=$g($k[--$j],_dn);var _dq=$k[--$j];$_[$k[--$j]]=$f(_dq+_dp);$k[$j++]="dkbot";$k[$j++]=$_.dkbot;$k[$j++]=$_.sym;$k[$j++]=$_.i;$k[$j++]=$f($_.cols-1);$_.qmv();var _dw=$k[--$j];var _dy=$g($k[--$j],_dw);var _dz=$k[--$j];$_[$k[--$j]]=$f(_dz+_dy)}if($_.dkrhs<=$_.dkbot){$k[$j++]=-($_.dkrhs*16+$_.dkbot)}else{$k[$j++]=-($_.dkbot*16+$_.dkrhs)}};$_.bestscore=999999999;for(var _e9=0,_e8=$_.masks.length-1;_e9<=_e8;_e9+=1){$_.m=_e9;$_.masksym=$a($_.rows*$_.cols);for(var _eG=0,_eF=$f($_.rows*$_.cols-1);_eG<=_eF;_eG+=1){$_.i=_eG;$p($_.masksym,$_.i,$xo($g($_.pixs,$_.i),$g($g($_.masks,$_.m),$_.i)))}if($_.masks.length!=1){if($eq($_.format,"full")){$k[$j++]=$_.masksym;$_.evalfull();$_.score=$k[--$j]}else{$k[$j++]=$_.masksym;$_.evalmicro();$_.score=$k[--$j]}if($_.score<$_.bestscore){$_.bestsym=$_.masksym;$_.bestmaskval=$_.m;$_.bestscore=$_.score}}else{$_.bestsym=$_.masksym}}$_.pixs=$_.bestsym;if($eq($_.format,"full")){$k[$j++]=$_.pixs;$k[$j++]=8;$k[$j++]=$f($_.cols-8);$_.qmv();var _eh=$k[--$j];$p($k[--$j],_eh,1)}if(!bwipp_qrcode.__20814__){$_=Object.create($_);$_.fmtvalsfull=$a([21522,20773,24188,23371,17913,16590,20375,19104,30660,29427,32170,30877,26159,25368,27713,26998,5769,5054,7399,6608,1890,597,3340,2107,13663,12392,16177,14854,9396,8579,11994,11245]);$_.fmtvalsmicro=$a([17477,16754,20011,19228,21934,20633,24512,23287,26515,25252,28157,26826,30328,29519,31766,31009,1758,1001,3248,2439,5941,4610,7515,6252,9480,8255,12134,10833,13539,12756,16013,15290]);$_.fmtvalsrmqr1=$a([129714,124311,121821,115960,112748,108361,104707,99878,98062,90155,89697,82244,81360,74485,72895,66458,61898,61167,53413,53120,45844,44081,37499,36190,29814,27475,21785,19004,13992,10637,6087,2274,258919,257090,250376,249133,242105,241308,233686,233459,227035,223742,219060,215185,209925,207648,202090,199247,194591,190266,186736,181845,178881,173540,170926,165003,163235,156294,154828,148457,147325,139352,138770,131383]);$_.fmtvalsrmqr2=$a([133755,136542,142100,144433,149669,153472,158154,161519,167879,168162,175784,176525,183577,184892,191606,193363,196867,204326,204908,212809,213981,220408,221874,228759,230591,236442,239056,244469,247393,252228,255758,260139,942,7307,8897,15844,16752,24149,24607,32570,34322,39223,42877,47192,50380,56297,58787,64134,67798,71667,76217,79516,84488,87341,93031,95298,101738,102991,109573,111392,118708,118929,126683,127486]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20814__=1;$_=Object.getPrototypeOf($_)}if($eq($_.format,"full")){$k[$j++]="ecid";$X("MLHQ",$_.eclevel);$j--;var _eq=$k[--$j];var _er=$k[--$j];$k[$j++]=_eq.length;$k[$j++]=_er;$j--;var _es=$k[--$j];var _et=$k[--$j];$k[$j++]=_es;$k[$j++]=_et;$j--;var _eu=$k[--$j];$_[$k[--$j]]=_eu;$_.fmtval=$g($_.fmtvalsfull,($_.ecid<<3)+$_.bestmaskval);for(var _f2=0,_f1=$_.formatmap.length-1;_f2<=_f1;_f2+=1){$_.i=_f2;$F($g($_.formatmap,$_.i),function(){var _f7=$k[--$j];$k[$j++]=$_.pixs;$q(_f7);$_.qmv();var _f8=$_.fmtval;var _fA=-(14-$_.i);var _fB=$k[--$j];$p($k[--$j],_fB,(_fA<0?_f8>>>-_fA:_f8<<_fA)&1)})}}if($eq($_.format,"micro")){$_.symid=$g($g($a([$a([0]),$a([1,2]),$a([3,4]),$a([5,6,7])]),~~($f($_.cols-11)/2)),$_.eclval);$_.fmtval=$g($_.fmtvalsmicro,($_.symid<<2)+$_.bestmaskval);for(var _fT=0,_fS=$_.formatmap.length-1;_fT<=_fS;_fT+=1){$_.i=_fT;$k[$j++]=$_.pixs;$q($g($g($_.formatmap,$_.i),0));$_.qmv();var _fZ=$_.fmtval;var _fb=-(14-$_.i);var _fc=$k[--$j];$p($k[--$j],_fc,(_fb<0?_fZ>>>-_fb:_fZ<<_fb)&1)}}if($eq($_.format,"rmqr")){$k[$j++]="fmtvalu";$X("MH",$_.eclevel);$j--;var _fg=$k[--$j];var _fh=$k[--$j];$k[$j++]=_fg.length;$k[$j++]=_fh;$j--;var _fi=$k[--$j];var _fj=$k[--$j];$k[$j++]=_fi;$k[$j++]=_fj;$j--;var _fk=$k[--$j];$_[$k[--$j]]=(_fk<<5)+$_.verind;$_.fmtval1=$g($_.fmtvalsrmqr1,$_.fmtvalu);$_.fmtval2=$g($_.fmtvalsrmqr2,$_.fmtvalu);for(var _fv=0,_fu=$_.formatmap.length-1;_fv<=_fu;_fv+=1){$_.i=_fv;$k[$j++]=$_.pixs;$q($g($g($_.formatmap,$_.i),0));$_.qmv();var _g1=$_.fmtval1;var _g3=-(17-$_.i);var _g4=$k[--$j];$p($k[--$j],_g4,(_g3<0?_g1>>>-_g3:_g1<<_g3)&1);$k[$j++]=$_.pixs;$q($g($g($_.formatmap,$_.i),1));$_.qmv();var _gB=$_.fmtval2;var _gD=-(17-$_.i);var _gE=$k[--$j];$p($k[--$j],_gE,(_gD<0?_gB>>>-_gD:_gB<<_gD)&1)}}if(!bwipp_qrcode.__20853__){$_=Object.create($_);$_.vervals=$a([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20853__=1;$_=Object.getPrototypeOf($_)}if($eq($_.format,"full")&&$_.cols>=45){$_.verval=$g($_.vervals,~~($f($_.cols-17)/4)-7);for(var _gP=0,_gO=$_.versionmap.length-1;_gP<=_gO;_gP+=1){$_.i=_gP;$F($g($_.versionmap,$_.i),function(){var _gU=$k[--$j];$k[$j++]=$_.pixs;$F(_gU);$_.qmv();var _gV=$_.verval;var _gX=-(17-$_.i);var _gY=$k[--$j];$p($k[--$j],_gY,(_gX<0?_gV>>>-_gX:_gV<<_gX)&1)})}}var _gg=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.cols],["pixy",$_.rows],["height",$_.rows*2/72],["width",$_.cols*2/72],["opt",$_.options]]);$k[$j++]=_gg;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_swissqrcode(){$_=Object.create($_);$_.dontdraw=false;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];if($_.barcode.length>997){$k[$j++]="bwipp.swissqrcodeBadLength#20930";$k[$j++]="Swiss QR Code input must not exceed 997 digits";bwipp_raiseerror()}$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _E=$k[--$j];$_[$k[--$j]]=_E;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){$$.save();var _K=$$.currpos();$$.translate(_K.x,_K.y);var _L=72/25.4;$$.scale(_L,_L);$$.save();$$.newpath();$$.moveto(0,0);$$.lineto(46,0);$$.lineto(46,46);$$.lineto(0,46);$$.closepath();$$.moveto(19.5,19.5);$$.lineto(19.5,26.5);$$.lineto(26.5,26.5);$$.lineto(26.5,19.5);$$.closepath();$$.clip();$$.save();$$.moveto(0,0);var _O=46/$g($_.args,"pixx")/2;$$.scale(_O,_O);bwipp_renmatrix();$$.restore();$$.restore();$$.translate(19.5,19.5);var _P=7/83;$$.scale(_P,_P);$$.newpath();$$.moveto(6,6);$$.lineto(6,77);$$.lineto(77,77);$$.lineto(77,6);$$.closepath();$$.moveto(49,18);$$.lineto(49,34);$$.lineto(65,34);$$.lineto(65,49);$$.lineto(49,49);$$.lineto(49,65);$$.lineto(34,65);$$.lineto(34,49);$$.lineto(18,49);$$.lineto(18,34);$$.lineto(34,34);$$.lineto(34,18);$$.closepath();$$.setrgbcolor(0,0,0);$$.fill();$$.restore()}$_=Object.getPrototypeOf($_)}function bwipp_microqrcode(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","micro");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_rectangularmicroqrcode(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","rmqr");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_maxicode(){$_=Object.create($_);$_.dontdraw=false;$_.mode=-1;$_.sam=-1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.maxicodeEmptyData#21148";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.mode!=-1&&($_.mode<2||$_.mode>6)){$k[$j++]="bwipp.maxicodeBadMode#21152";$k[$j++]="Mode must be 2 to 6";bwipp_raiseerror()}if($_.sam!=-1){$k[$j++]=true;for(var _7=0,_8=1;_7<_8;_7++){var _9=$_.sam;if(_9<12||_9>88){$j--;$k[$j++]=false;break}var _B=$_.sam%10;if(_B<2||_B>8){$j--;$k[$j++]=false;break}if(~~($_.sam/10)>$_.sam%10){$j--;$k[$j++]=false;break}}if($nt($k[--$j])){$k[$j++]="bwipp.maxicodeBadSAM#21163";$k[$j++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 8 symbols';bwipp_raiseerror()}}bwipp_loadctx(bwipp_maxicode);var _H=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true]]);$_.fncvals=_H;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _K=$k[--$j];$_[$k[--$j]]=_K;$_.msglen=$_.msg.length;if($_.mode==2||$_.mode==3){$_.barcode=$s($_.msglen);for(var _T=0,_S=$_.msglen-1;_T<=_S;_T+=1){$_.i=_T;if($g($_.msg,$_.i)>0){$p($_.barcode,$_.i,$g($_.msg,$_.i))}}$_.barlen=$_.barcode.length;$_.fid="";if($_.barlen>=7){if($eq($G($_.barcode,0,7),"[)>01")){$_.fid=$G($_.barcode,0,9);$_.barcode=$G($_.barcode,9,$_.barlen-9)}}$X($_.barcode,"");if($k[--$j]){$_.pcode=$k[--$j];$j--;if($_.mode==2){$k[$j++]=true;for(var _p=0,_q=1;_p<_q;_p++){if($_.pcode.length>9){$j--;$k[$j++]=false;break}$F($_.pcode,function(){var _t=$k[--$j];if(_t<48||_t>57){$j--;$k[$j++]=false;return true}})}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.maxicodeBadMode2PostCode#21212";$k[$j++]="A mode 2 postcode must not exceed 9 digits";bwipp_raiseerror()}}else{$F($_.pcode,function(){var _w=$k[--$j];if(!(_w==32||(_w>=34&&_w<=58||_w>=65&&_w<=90))){$j--;$k[$j++]="bwipp.maxicodeBadMode3PostCode#21220";$k[$j++]="A mode 3 postcode must not exceed 6 characters";bwipp_raiseerror()}})}}else{$j--;$k[$j++]="bwipp.maxicodeExpectedPostCode#21225";$k[$j++]="Expected postcode followed by group separator character";bwipp_raiseerror()}$X($k[--$j],"");if($k[--$j]){$_.ccode=$k[--$j];$j--;$k[$j++]=true;for(var _10=0,_11=1;_10<_11;_10++){if($_.ccode.length!=3){$j--;$k[$j++]=false;break}$F($_.ccode,function(){var _14=$k[--$j];if(_14<48||_14>57){$j--;$k[$j++]=false;return true}})}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.maxicodeBadCountryCode#21235";$k[$j++]="Country code must be three digits";bwipp_raiseerror()}}else{$j--;$k[$j++]="bwipp.maxicodeExpectedCountryCode#21238";$k[$j++]="Expected country code followed by group separator character";bwipp_raiseerror()}$X($k[--$j],"");if($k[--$j]){$_.scode=$k[--$j];$j--;$k[$j++]=true;for(var _19=0,_1A=1;_19<_1A;_19++){if($_.scode.length!=3){$j--;$k[$j++]=false;break}$F($_.scode,function(){var _1D=$k[--$j];if(_1D<48||_1D>57){$j--;$k[$j++]=false;return true}})}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.maxicodeBadServiceClass#21248";$k[$j++]="Service class must be three digits";bwipp_raiseerror()}}else{$j--;$k[$j++]="bwipp.maxicodeExpectedServiceClass#21251";$k[$j++]="Expected service class followed by group separator character";bwipp_raiseerror()}$_.barcode=$k[--$j];var _1I=$s($_.barcode.length+$_.fid.length);$P(_1I,0,$_.fid);$P(_1I,$_.fid.length,$_.barcode);$_.barcode=_1I;$_.barlen=$_.barcode.length;$k[$j++]=Infinity;var _1N=$_.barcode;for(var _1O=0,_1P=_1N.length;_1O<_1P;_1O++){$k[$j++]=$g(_1N,_1O)}$_.msg=$a();$_.msglen=$_.msg.length}if(!bwipp_maxicode.__21361__){$_=Object.create($_);$_.eci=-1;$_.pad=-2;$_.ns=-3;$_.la=-4;$_.lb=-5;$_.sa=-6;$_.sb=-7;$_.sc=-8;$_.sd=-9;$_.se=-10;$_.sa2=-11;$_.sa3=-12;$_.lkc=-13;$_.lkd=-14;$_.lke=-15;$_.pd2=-16;$_.pd3=-17;$_.charmaps=$a([$a([13,"`",192,224,0]),$a(["A","a",193,225,1]),$a(["B","b",194,226,2]),$a(["C","c",195,227,3]),$a(["D","d",196,228,4]),$a(["E","e",197,229,5]),$a(["F","f",198,230,6]),$a(["G","g",199,231,7]),$a(["H","h",200,232,8]),$a(["I","i",201,233,9]),$a(["J","j",202,234,10]),$a(["K","k",203,235,11]),$a(["L","l",204,236,12]),$a(["M","m",205,237,13]),$a(["N","n",206,238,14]),$a(["O","o",207,239,15]),$a(["P","p",208,240,16]),$a(["Q","q",209,241,17]),$a(["R","r",210,242,18]),$a(["S","s",211,243,19]),$a(["T","t",212,244,20]),$a(["U","u",213,245,21]),$a(["V","v",214,246,22]),$a(["W","w",215,247,23]),$a(["X","x",216,248,24]),$a(["Y","y",217,249,25]),$a(["Z","z",218,250,26]),$a([$_.eci,$_.eci,$_.eci,$_.eci,$_.eci]),$a([28,28,28,28,$_.pad]),$a([29,29,29,29,$_.pad]),$a([30,30,30,30,27]),$a([$_.ns,$_.ns,$_.ns,$_.ns,$_.ns]),$a([" ","{",219,251,28]),$a([$_.pad,$_.pad,220,252,29]),$a(['"',"}",221,253,30]),$a(["#","~",222,254,31]),$a(["$",127,223,255,159]),$a(["%",";",170,161,160]),$a(["&","<",172,168,162]),$a(["'","=",177,171,163]),$a([40,">",178,175,164]),$a([41,"?",179,176,165]),$a(["*","[",181,180,166]),$a(["+",92,185,183,167]),$a([",","]",186,184,169]),$a(["-","^",188,187,173]),$a([".","_",189,191,174]),$a(["/"," ",190,138,182]),$a(["0",",",128,139,149]),$a(["1",".",129,140,150]),$a(["2","/",130,141,151]),$a(["3",":",131,142,152]),$a(["4","@",132,143,153]),$a(["5","!",133,144,154]),$a(["6","|",134,145,155]),$a(["7",$_.pd2,135,146,156]),$a(["8",$_.sa2,136,147,157]),$a(["9",$_.sa3,137,148,158]),$a([":",$_.pd3,$_.la,$_.la,$_.la]),$a([$_.sb,$_.sa," "," "," "]),$a([$_.sc,$_.sc,$_.lkc,$_.sc,$_.sc]),$a([$_.sd,$_.sd,$_.sd,$_.lkd,$_.sd]),$a([$_.se,$_.se,$_.se,$_.se,$_.lke]),$a([$_.lb,$_.la,$_.lb,$_.lb,$_.lb])]);$_.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _3G=0,_3F=$_.charmaps.length-1;_3G<=_3F;_3G+=1){$_.i=_3G;$_.encs=$g($_.charmaps,$_.i);for(var _3K=0;_3K<=4;_3K+=1){$_.j=_3K;var _3N=$g($_.encs,$_.j);$k[$j++]=_3N;if($eq($t(_3N),"stringtype")){var _3Q=$g($k[--$j],0);$k[$j++]=_3Q}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);$_.setd=$g($_.charvals,3);$_.sete=$g($_.charvals,4);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_maxicode.$ctx[id]=$_[id]);bwipp_maxicode.__21361__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;for(var _3i=0,_3j=$_.msglen+1;_3i<_3j;_3i++){$k[$j++]=0}$_.nseq=$a();for(var _3m=$_.msglen-1;_3m>=0;_3m-=1){$_.i=_3m;var _3p=$g($_.msg,$_.i);if(_3p>=48&&_3p<=57){$p($_.nseq,$_.i,$f($g($_.nseq,$_.i+1)+1))}else{$p($_.nseq,$_.i,0)}}$_.nseq=$G($_.nseq,0,$_.msglen);$_.prefixinset=function(){$k[$j++]=0;for(;;){var _40=$k[--$j];var _41=$k[--$j];$k[$j++]=_41;$k[$j++]=_40;if(_40>=_41.length){break}var _42=$k[--$j];var _43=$k[--$j];var _45=$k[--$j];var _46=$g(_45,$g(_43,_42))!==undefined;$k[$j++]=_45;$k[$j++]=_43;$k[$j++]=_42;if(_46){var _47=$k[--$j];$k[$j++]=$f(_47+1)}else{break}}var _48=$k[--$j];var _49=$k[--$j];$k[$j++]=_48;$k[$j++]=_49;$j--;var _4A=$k[--$j];var _4B=$k[--$j];$k[$j++]=_4A;$k[$j++]=_4B;$j--};$_.enc=function(){var _4C=$k[--$j];$p($_.out,$_.j,$g(_4C,$k[--$j]));$_.j=$_.j+1};$_.out=$a(144);$_.i=0;$_.j=0;$_.cset="seta";for(;;){if($_.i==$_.msglen){if($ne($_.cset,"seta")&&$ne($_.cset,"setb")){$k[$j++]=$_.la;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="seta"}break}for(;;){if($g($_.msg,$_.i)<=-1e6){$k[$j++]=$_.eci;$k[$j++]=$_[$_.cset];$_.enc();var _4Z=$f(-$g($_.msg,$_.i)-1e6);$k[$j++]=_4Z;if(_4Z<=31){var _4a=$k[--$j];$k[$j++]=_4a&63;$as($a(1))}else{var _4c=$k[--$j];$k[$j++]=_4c;if(_4c<=1023){var _4d=$k[--$j];$k[$j++]=_4d>>>6&31|32;$k[$j++]=_4d&63;$as($a(2))}else{var _4f=$k[--$j];$k[$j++]=_4f;if(_4f<=32767){var _4g=$k[--$j];$k[$j++]=_4g>>>12&47|48;$k[$j++]=_4g>>>6&63;$k[$j++]=_4g&63;$as($a(3))}else{var _4i=$k[--$j];$k[$j++]=_4i>>>18&55|56;$k[$j++]=_4i>>>12&63;$k[$j++]=_4i>>>6&63;$k[$j++]=_4i&63;$as($a(4))}}}var _4k=$k[--$j];$P($_.out,$_.j,_4k);$_.j=_4k.length+$_.j;$_.i=$_.i+1;break}if($g($_.nseq,$_.i)>=9){var _4u=$G($_.msg,$_.i,9);$k[$j++]=0;for(var _4v=0,_4w=_4u.length;_4v<_4w;_4v++){var _4y=$k[--$j];$k[$j++]=$f(_4y+$f($g(_4u,_4v)-48))*10}var _4z=$k[--$j];$k[$j++]=~~(_4z/10);for(var _50=0,_51=4;_50<_51;_50++){var _52=$k[--$j];$k[$j++]=_52&63;$k[$j++]=_52>>>6}$k[$j++]=$g($_[$_.cset],$_.ns);for(var _57=0;_57<=10;_57+=2){var _58=$k[$j-1-_57];$k[$j++]=_58}$as($a(6));var _5A=$k[--$j];var _5B=$k[--$j];var _5C=$k[--$j];var _5D=$k[--$j];var _5E=$k[--$j];var _5F=$k[--$j];var _5G=$k[--$j];$k[$j++]=_5A;$k[$j++]=_5G;$k[$j++]=_5F;$k[$j++]=_5E;$k[$j++]=_5D;$k[$j++]=_5C;$k[$j++]=_5B;for(var _5H=0,_5I=6;_5H<_5I;_5H++){$j--}$P($_.out,$_.j,$k[--$j]);$_.i=$_.i+9;$_.j=$_.j+6;break}$_.char1=$g($_.msg,$_.i);$k[$j++]="char2";if($_.i+1<$_.msglen){$k[$j++]=$g($_.msg,$_.i+1)}else{$k[$j++]=-99}var _5W=$k[--$j];$_[$k[--$j]]=_5W;$k[$j++]="char3";if($_.i+2<$_.msglen){$k[$j++]=$g($_.msg,$_.i+2)}else{$k[$j++]=-99}var _5d=$k[--$j];$_[$k[--$j]]=_5d;var _5i=$g($_[$_.cset],$_.char1)!==undefined;if(_5i){$k[$j++]=$_.char1;$k[$j++]=$_[$_.cset];$_.enc();$_.i=$_.i+1;break}var _5q=$g($_.setb,$_.char1)!==undefined;if($eq($_.cset,"seta")&&_5q){var _5t=$g($_.setb,$_.char2)!==undefined;if(_5t){$k[$j++]=$_.lb;$k[$j++]=$_.seta;$_.enc();$_.cset="setb"}else{$k[$j++]=$_.sb;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.setb;$_.enc();$_.i=$_.i+1}break}var _64=$g($_.seta,$_.char1)!==undefined;if($eq($_.cset,"setb")&&_64){var _65=$_.seta;var _66=$_.msg;var _67=$_.i;var _68=$_.msglen;var _69=$_.i;var _6A=_68-_69;var _6B=4;if(4>_68-_69){var _=_6A;_6A=_6B;_6B=_}$k[$j++]="p";$k[$j++]=_65;$k[$j++]=$G(_66,_67,_6B);$_.prefixinset();var _6D=$k[--$j];$_[$k[--$j]]=_6D;if($_.p==1){$k[$j++]=$_.sa;$k[$j++]=$_.setb;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.seta;$_.enc();$_.i=$_.i+1}if($_.p==2){$k[$j++]=$_.sa2;$k[$j++]=$_.setb;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_.seta;$_.enc();$_.i=$_.i+2}if($_.p==3){$k[$j++]=$_.sa3;$k[$j++]=$_.setb;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char3;$k[$j++]=$_.seta;$_.enc();$_.i=$_.i+3}if($_.p>=4){$k[$j++]=$_.la;$k[$j++]=$_.setb;$_.enc();$_.cset="seta"}break}var _6i=$g($_.seta,$_.char1)!==undefined;if(_6i){$k[$j++]=$_.la;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="seta";break}var _6o=$g($_.setb,$_.char1)!==undefined;if(_6o){$k[$j++]=$_.lb;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="setb";break}var _6u=$g($_.setc,$_.char1)!==undefined;if(_6u){$_.setx="setc";$_.sx=$_.sc;$_.lkx=$_.lkc}var _6z=$g($_.setd,$_.char1)!==undefined;if(_6z){$_.setx="setd";$_.sx=$_.sd;$_.lkx=$_.lkd}var _74=$g($_.sete,$_.char1)!==undefined;if(_74){$_.setx="sete";$_.sx=$_.se;$_.lkx=$_.lke}var _78=$_[$_.setx];var _79=$_.msg;var _7A=$_.i;var _7B=$_.msglen;var _7C=$_.i;var _7D=_7B-_7C;var _7E=4;if(4>_7B-_7C){var _=_7D;_7D=_7E;_7E=_}$k[$j++]="p";$k[$j++]=_78;$k[$j++]=$G(_79,_7A,_7E);$_.prefixinset();var _7G=$k[--$j];$_[$k[--$j]]=_7G;if($_.p==1){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_[$_.setx];$_.enc();$_.i=$_.i+1}if($_.p==2){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_[$_.setx];$_.enc();$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_[$_.setx];$_.enc();$_.i=$_.i+2}if($_.p==3){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_[$_.setx];$_.enc();$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_[$_.setx];$_.enc();$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char3;$k[$j++]=$_[$_.setx];$_.enc();$_.i=$_.i+3}if($_.p>=4){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.lkx;$k[$j++]=$_[$_.setx];$_.enc();$_.cset=$_.setx}break}}$_.encmsg=$G($_.out,0,$_.j);$_.padval=$g($_[$_.cset],$_.pad);$k[$j++]="sami";if($_.sam!=-1){$k[$j++]=$a([$g($_.seta,$_.pad),(~~($_.sam/10)-1)*8+($_.sam%10-1)])}else{$k[$j++]=$a([])}var _8L=$k[--$j];$_[$k[--$j]]=_8L;$k[$j++]=Infinity;$q($_.sami);$q($_.encmsg);$_.encmsg=$a();if($_.mode==2||$_.mode==3){if($_.encmsg.length>84){$k[$j++]="bwipp.maxicodeMode23TooLong#21554";$k[$j++]="The secondary message is too long";bwipp_raiseerror()}var _8U=$Z($s(4),"0000");var _8X=$R($s(4),~~$_.mode,2);$P(_8U,4-_8X.length,_8X);$_.mdb=_8U;var _8Z=$Z($s(10),"0000000000");var _8c=$R($s(10),$i($_.ccode),2);$P(_8Z,10-_8c.length,_8c);$_.ccb=_8Z;var _8e=$Z($s(10),"0000000000");var _8h=$R($s(10),$i($_.scode),2);$P(_8e,10-_8h.length,_8h);$_.scb=_8e;$_.pcb=$Z($s(36),"000000000000000000000000000000000000");if($_.mode==2){var _8o=$R($s(6),$_.pcode.length,2);$P($_.pcb,6-_8o.length,_8o);var _8s=$R($s(30),$i($_.pcode),2);$P($_.pcb,36-_8s.length,_8s)}else{$k[$j++]=Infinity;var _8u=$Z($s(6)," ");$k[$j++]=_8u;$k[$j++]=_8u;$k[$j++]=0;if($_.pcode.length>6){$k[$j++]=$G($_.pcode,0,6)}else{$k[$j++]=$_.pcode}var _8z=$k[--$j];var _90=$k[--$j];$P($k[--$j],_90,_8z);$F($k[--$j],function(){var _95=$g($_.seta,$k[--$j]);$k[$j++]=_95});$_.pccw=$a();for(var _97=0;_97<=5;_97+=1){$_.i=_97;var _9D=$R($s(6),$g($_.pccw,$_.i),2);$P($_.pcb,6*$_.i+6-_9D.length,_9D)}}$_.scm=$s(60);$P($_.scm,2,$_.mdb);$P($_.scm,38,$G($_.pcb,0,4));$P($_.scm,30,$G($_.pcb,4,6));$P($_.scm,24,$G($_.pcb,10,6));$P($_.scm,18,$G($_.pcb,16,6));$P($_.scm,12,$G($_.pcb,22,6));$P($_.scm,6,$G($_.pcb,28,6));$P($_.scm,0,$G($_.pcb,34,2));$P($_.scm,52,$G($_.ccb,0,2));$P($_.scm,42,$G($_.ccb,2,6));$P($_.scm,36,$G($_.ccb,8,2));$P($_.scm,54,$G($_.scb,0,6));$P($_.scm,48,$G($_.scb,6,4));$_.pri=$a([0,0,0,0,0,0,0,0,0,0]);for(var _9t=0;_9t<=59;_9t+=1){$_.i=_9t;$_.ps=~~($_.i/6);$_.ep=~~Math.pow(2,5-$_.i%6)*($g($_.scm,$_.i)-48);$p($_.pri,$_.ps,$f($g($_.pri,$_.ps)+$_.ep))}$k[$j++]=Infinity;for(var _A5=0,_A6=84;_A5<_A6;_A5++){$k[$j++]=$_.padval}$_.sec=$a();$P($_.sec,0,$_.encmsg)}if($_.mode==4||$_.mode==5||$_.mode==6||$_.mode==-1){if($_.mode==-1){var _AH=$_.encmsg.length<=77?5:4;$_.mode=_AH}$k[$j++]=Infinity;var _AJ=$_.mode==5?78:94;for(var _AK=0,_AL=_AJ;_AK<_AL;_AK++){$k[$j++]=$_.padval}$_.cws=$a();if($_.encmsg.length>$_.cws.length-1){$k[$j++]="bwipp.maxicodeMode56TooLong#21619";$k[$j++]="The message is too long";bwipp_raiseerror()}$p($_.cws,0,$_.mode);$P($_.cws,1,$_.encmsg);$_.pri=$G($_.cws,0,10);$_.sec=$G($_.cws,10,$_.cws.length-10)}$k[$j++]=Infinity;$k[$j++]=1;for(var _AZ=0,_Aa=63;_AZ<_Aa;_AZ++){var _Ab=$k[--$j];var _Ac=_Ab*2;$k[$j++]=_Ab;$k[$j++]=_Ac;if(_Ac>=64){var _Ad=$k[--$j];$k[$j++]=_Ad^67}}$_.rsalog=$a();$_.rslog=$a(64);for(var _Ag=1;_Ag<=63;_Ag+=1){$p($_.rslog,$g($_.rsalog,_Ag),_Ag)}$_.rsprod=function(){var _Ak=$k[--$j];var _Al=$k[--$j];$k[$j++]=_Al;$k[$j++]=_Ak;if(_Ak!=0&&_Al!=0){var _Ao=$g($_.rslog,$k[--$j]);var _At=$g($_.rsalog,$f(_Ao+$g($_.rslog,$k[--$j]))%63);$k[$j++]=_At}else{$j-=2;$k[$j++]=0}};$_.rscodes=function(){$_.rsnum=$k[--$j];$_.cwb=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _Ax=0,_Ay=$_.rsnum;_Ax<_Ay;_Ax++){$k[$j++]=0}$_.coeffs=$a();for(var _B2=1,_B1=$_.rsnum;_B2<=_B1;_B2+=1){$_.i=_B2;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _B9=$_.i-1;_B9>=1;_B9-=1){$_.j=_B9;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _BL=$k[--$j];var _BM=$k[--$j];var _BN=$k[--$j];$p($k[--$j],_BN,$xo(_BM,_BL))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _BV=$k[--$j];var _BW=$k[--$j];$p($k[--$j],_BW,_BV)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);$k[$j++]=Infinity;for(var _Bc=0,_Bd=$_.rsnum;_Bc<_Bd;_Bc++){$k[$j++]=0}$_.ecb=$a();for(var _Bh=0,_Bg=$_.cwb.length-1;_Bh<=_Bg;_Bh+=1){$_.t=$xo($g($_.cwb,_Bh),$g($_.ecb,0));for(var _Bn=$_.ecb.length-1;_Bn>=0;_Bn-=1){$_.i=_Bn;$_.p=$_.ecb.length-$_.i-1;$k[$j++]=$_.ecb;$k[$j++]=$_.p;$k[$j++]=$_.t;$k[$j++]=$g($_.coeffs,$_.i);$_.rsprod();var _Bw=$k[--$j];var _Bx=$k[--$j];$p($k[--$j],_Bx,_Bw);if($_.i>0){$p($_.ecb,$_.p,$xo($g($_.ecb,$_.p+1),$g($_.ecb,$_.p)))}}}$k[$j++]=$_.ecb};$k[$j++]=Infinity;for(var _CB=0,_CA=$_.sec.length-1;_CB<=_CA;_CB+=2){$k[$j++]=$g($_.sec,_CB)}$_.seco=$a();$k[$j++]=Infinity;for(var _CH=1,_CG=$_.sec.length-1;_CH<=_CG;_CH+=2){$k[$j++]=$g($_.sec,_CH)}$_.sece=$a();var _CM=$_.sec.length==84?20:28;$_.scodes=_CM;$k[$j++]="secochk";$k[$j++]=$_.seco;$k[$j++]=$_.scodes;$_.rscodes();var _CP=$k[--$j];$_[$k[--$j]]=_CP;$k[$j++]="secechk";$k[$j++]=$_.sece;$k[$j++]=$_.scodes;$_.rscodes();var _CT=$k[--$j];$_[$k[--$j]]=_CT;$k[$j++]=Infinity;for(var _CX=0,_CW=$_.scodes-1;_CX<=_CW;_CX+=1){$k[$j++]=$g($_.secochk,_CX);$k[$j++]=$g($_.secechk,_CX)}$_.secchk=$a();$k[$j++]=Infinity;$q($_.pri);$k[$j++]=$_.pri;$k[$j++]=10;$_.rscodes();$q($k[--$j]);$q($_.sec);$q($_.secchk);$_.codewords=$a();$k[$j++]=Infinity;for(var _Cj=0,_Ck=864;_Cj<_Ck;_Cj++){$k[$j++]=0}$_.mods=$a();for(var _Cm=0;_Cm<=143;_Cm+=1){$_.i=_Cm;$k[$j++]=Infinity;var _Cr=$R($s(6),$g($_.codewords,$_.i),2);for(var _Cs=0,_Ct=_Cr.length;_Cs<_Ct;_Cs++){$k[$j++]=$g(_Cr,_Cs)-48}$_.cw=$a();$P($_.mods,6*$_.i+(6-$_.cw.length),$_.cw)}if(!bwipp_maxicode.__21755__){$_=Object.create($_);$_.modmap=$a([469,529,286,316,347,346,673,672,703,702,647,676,283,282,313,312,370,610,618,379,378,409,408,439,705,704,559,589,588,619,458,518,640,701,675,674,285,284,315,314,310,340,531,289,288,319,349,348,456,486,517,516,471,470,369,368,399,398,429,428,549,548,579,578,609,608,649,648,679,678,709,708,639,638,669,668,699,698,279,278,309,308,339,338,381,380,411,410,441,440,561,560,591,590,621,620,547,546,577,576,607,606,367,366,397,396,427,426,291,290,321,320,351,350,651,650,681,680,711,710,1,0,31,30,61,60,3,2,33,32,63,62,5,4,35,34,65,64,7,6,37,36,67,66,9,8,39,38,69,68,11,10,41,40,71,70,13,12,43,42,73,72,15,14,45,44,75,74,17,16,47,46,77,76,19,18,49,48,79,78,21,20,51,50,81,80,23,22,53,52,83,82,25,24,55,54,85,84,27,26,57,56,87,86,117,116,147,146,177,176,115,114,145,144,175,174,113,112,143,142,173,172,111,110,141,140,171,170,109,108,139,138,169,168,107,106,137,136,167,166,105,104,135,134,165,164,103,102,133,132,163,162,101,100,131,130,161,160,99,98,129,128,159,158,97,96,127,126,157,156,95,94,125,124,155,154,93,92,123,122,153,152,91,90,121,120,151,150,181,180,211,210,241,240,183,182,213,212,243,242,185,184,215,214,245,244,187,186,217,216,247,246,189,188,219,218,249,248,191,190,221,220,251,250,193,192,223,222,253,252,195,194,225,224,255,254,197,196,227,226,257,256,199,198,229,228,259,258,201,200,231,230,261,260,203,202,233,232,263,262,205,204,235,234,265,264,207,206,237,236,267,266,297,296,327,326,357,356,295,294,325,324,355,354,293,292,323,322,353,352,277,276,307,306,337,336,275,274,305,304,335,334,273,272,303,302,333,332,271,270,301,300,331,330,361,360,391,390,421,420,363,362,393,392,423,422,365,364,395,394,425,424,383,382,413,412,443,442,385,384,415,414,445,444,387,386,417,416,447,446,477,476,507,506,537,536,475,474,505,504,535,534,473,472,503,502,533,532,455,454,485,484,515,514,453,452,483,482,513,512,451,450,481,480,511,510,541,540,571,570,601,600,543,542,573,572,603,602,545,544,575,574,605,604,563,562,593,592,623,622,565,564,595,594,625,624,567,566,597,596,627,626,657,656,687,686,717,716,655,654,685,684,715,714,653,652,683,682,713,712,637,636,667,666,697,696,635,634,665,664,695,694,633,632,663,662,693,692,631,630,661,660,691,690,721,720,751,750,781,780,723,722,753,752,783,782,725,724,755,754,785,784,727,726,757,756,787,786,729,728,759,758,789,788,731,730,761,760,791,790,733,732,763,762,793,792,735,734,765,764,795,794,737,736,767,766,797,796,739,738,769,768,799,798,741,740,771,770,801,800,743,742,773,772,803,802,745,744,775,774,805,804,747,746,777,776,807,806,837,836,867,866,897,896,835,834,865,864,895,894,833,832,863,862,893,892,831,830,861,860,891,890,829,828,859,858,889,888,827,826,857,856,887,886,825,824,855,854,885,884,823,822,853,852,883,882,821,820,851,850,881,880,819,818,849,848,879,878,817,816,847,846,877,876,815,814,845,844,875,874,813,812,843,842,873,872,811,810,841,840,871,870,901,900,931,930,961,960,903,902,933,932,963,962,905,904,935,934,965,964,907,906,937,936,967,966,909,908,939,938,969,968,911,910,941,940,971,970,913,912,943,942,973,972,915,914,945,944,975,974,917,916,947,946,977,976,919,918,949,948,979,978,921,920,951,950,981,980,923,922,953,952,983,982,925,924,955,954,985,984,927,926,957,956,987,986,58,89,88,118,149,148,178,209,208,238,269,268,298,329,328,358,389,388,418,449,448,478,509,508,538,569,568,598,629,628,658,689,688,718,749,748,778,809,808,838,869,868,898,929,928,958,989,988]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_maxicode.$ctx[id]=$_[id]);bwipp_maxicode.__21755__=1;$_=Object.getPrototypeOf($_)}$_.pixs=$a(864);$_.j=0;for(var _D5=0,_D4=$_.mods.length-1;_D5<=_D4;_D5+=1){$_.i=_D5;if($g($_.mods,$_.i)==1){$p($_.pixs,$_.j,$g($_.modmap,$_.i));$_.j=$_.j+1}}$k[$j++]=Infinity;$q($G($_.pixs,0,$_.j));$k[$j++]=28;$k[$j++]=29;$k[$j++]=280;$k[$j++]=281;$k[$j++]=311;$k[$j++]=457;$k[$j++]=488;$k[$j++]=500;$k[$j++]=530;$k[$j++]=670;$k[$j++]=700;$k[$j++]=677;$k[$j++]=707;$_.pixs=$a();var _DL=new Map([["ren",bwipp_renmaximatrix],["pixs",$_.pixs],["opt",$_.options]]);$k[$j++]=_DL;if(!$_.dontdraw){bwipp_renmaximatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_azteccode(){$_=Object.create($_);$_.dontdraw=false;$_.format="full";$_.readerinit=false;$_.layers=-1;$_.eclevel=23;$_.ecaddchars=3;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_azteccode);if($eq($_.barcode,"")){$k[$j++]="bwipp.aztecEmptyData#21830";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.eclevel<5||$_.eclevel>95){$k[$j++]="bwipp.aztecInvalidEClevel#21834";$k[$j++]="The EC percentage must be from 5 to 95";bwipp_raiseerror()}if($_.ecaddchars<3){$k[$j++]="bwipp.aztecInvalidECaddChars#21838";$k[$j++]="The number of additional EC codewords must be 3 or more";bwipp_raiseerror()}if($ne($_.format,"full")&&($ne($_.format,"compact")&&$ne($_.format,"rune"))){$k[$j++]="bwipp.aztecInvalidFormat#21842";$k[$j++]="The format must be either full, compact or rune";bwipp_raiseerror()}if($eq($_.format,"full")){if($_.readerinit&&($_.layers<1||$_.layers>22)){$k[$j++]="bwipp.aztecFullInitInvalidLayers#21847";$k[$j++]="Full-range symbols for reader programming must specify from 1 to 22 layers";bwipp_raiseerror()}if($_.layers!=-1&&($_.layers<1||$_.layers>32)){$k[$j++]="bwipp.aztecFullInvalidLayers#21850";$k[$j++]="Layers for full-range symbols must be from 1 to 32";bwipp_raiseerror()}}if($eq($_.format,"compact")){if($_.readerinit){if($_.layers!=-1&&$_.layers!=1){$k[$j++]="bwipp.aztecCompactInitInvalidLayers#21857";$k[$j++]="Compact symbols for reader programming must have 1 layer";bwipp_raiseerror()}$_.layers=1}if($_.layers!=-1&&($_.layers<1||$_.layers>4)){$k[$j++]="bwipp.aztecCompactInvalidLayers#21862";$k[$j++]="Layers for compact symbols must be from 1 to 4";bwipp_raiseerror()}}if($eq($_.format,"rune")){if($_.layers!=-1){$k[$j++]="bwipp.aztecRuneInvalidLayers#21868";$k[$j++]="It is not valid to specify layers for runes";bwipp_raiseerror()}if($_.readerinit){$k[$j++]="bwipp.aztecRuneReaderInit#21871";$k[$j++]="Reader initialisation is not compactible with Aztec Runes";bwipp_raiseerror()}if($_.barcode.length==0){$k[$j++]="bwipp.aztecRuneNotNumeric#21874";$k[$j++]="Aztec runes must be numeric";bwipp_raiseerror()}$F($_.barcode,function(){var _S=$k[--$j];if(_S<48||_S>57){$k[$j++]="bwipp.aztecRuneNotNumeric#21878";$k[$j++]="Aztec runes must be numeric";bwipp_raiseerror()}});var _U=$i($_.barcode);if(_U<0||_U>255){$k[$j++]="bwipp.aztecRuneInvalid#21882";$k[$j++]="Aztec runes must be 0 to 255";bwipp_raiseerror()}}$_.fn1=-1;var _Y=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1]]);$_.fncvals=_Y;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _b=$k[--$j];$_[$k[--$j]]=_b;$_.msglen=$_.msg.length;if(!bwipp_azteccode.__21995__){$_=Object.create($_);$_.U=0;$_.L=1;$_.M=2;$_.P=3;$_.D=4;$_.B=5;$_.lu=-2;$_.ll=-3;$_.lm=-4;$_.lp=-5;$_.ld=-6;$_.su=-7;$_.sp=-8;$_.sb=-9;$_.fl=-10;$_.p2=-11;$_.p3=-12;$_.p4=-13;$_.p5=-14;$_.charmaps=$a([$a([$_.sp,$_.sp,$_.sp,$_.fl,$_.sp]),$a([32,32,32,13,32]),$a(["A","a",1,$_.p2,"0"]),$a(["B","b",2,$_.p3,"1"]),$a(["C","c",3,$_.p4,"2"]),$a(["D","d",4,$_.p5,"3"]),$a(["E","e",5,"!","4"]),$a(["F","f",6,'"',"5"]),$a(["G","g",7,"#","6"]),$a(["H","h",8,"$","7"]),$a(["I","i",9,"%","8"]),$a(["J","j",10,"&","9"]),$a(["K","k",11,"'",","]),$a(["L","l",12,40,"."]),$a(["M","m",13,41,$_.lu]),$a(["N","n",27,"*",$_.su]),$a(["O","o",28,"+",-99]),$a(["P","p",29,",",-99]),$a(["Q","q",30,"-",-99]),$a(["R","r",31,".",-99]),$a(["S","s","@","/",-99]),$a(["T","t",92,":",-99]),$a(["U","u","^",";",-99]),$a(["V","v","_","<",-99]),$a(["W","w","`","=",-99]),$a(["X","x","|",">",-99]),$a(["Y","y","~","?",-99]),$a(["Z","z",127,"[",-99]),$a([$_.ll,$_.su,$_.ll,"]",-99]),$a([$_.lm,$_.lm,$_.lu,"{",-99]),$a([$_.ld,$_.ld,$_.lp,"}",-99]),$a([$_.sb,$_.sb,$_.sb,$_.lu,-99])]);$_.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _1c=0,_1b=$_.charmaps.length-1;_1c<=_1b;_1c+=1){$_.i=_1c;$_.encs=$g($_.charmaps,$_.i);for(var _1g=0;_1g<=4;_1g+=1){$_.j=_1g;var _1j=$g($_.encs,$_.j);$k[$j++]=_1j;if($eq($t(_1j),"stringtype")){var _1m=$g($k[--$j],0);$k[$j++]=_1m}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}var _1w=new Map([["\r\n",$_.p2],[". ",$_.p3],[", ",$_.p4],[": ",$_.p5]]);$_.pcomp=_1w;$_.e=1e4;var _21=$a([4,9,9,14,0,14]);$_.latlen=$a([$a([0,5,5,10,5,10]),$a([9,0,5,10,5,10]),$a([5,5,0,5,10,10]),$a([5,10,10,0,10,15]),_21,$a([0,0,0,0,0,0])]);$_.latseq=$a([$a([$a([]),$a([$_.ll]),$a([$_.lm]),$a([$_.lm,$_.lp]),$a([$_.ld]),$a([$_.sb])]),$a([$a([$_.ld,$_.lu]),$a([]),$a([$_.lm]),$a([$_.lm,$_.lp]),$a([$_.ld]),$a([$_.sb])]),$a([$a([$_.lu]),$a([$_.ll]),$a([]),$a([$_.lp]),$a([$_.lu,$_.ld]),$a([$_.sb])]),$a([$a([$_.lu]),$a([$_.lu,$_.ll]),$a([$_.lu,$_.lm]),$a([]),$a([$_.lu,$_.ld]),$a([$_.lu,$_.sb])]),$a([$a([$_.lu]),$a([$_.lu,$_.ll]),$a([$_.lu,$_.lm]),$a([$_.lu,$_.lm,$_.lp]),$a([]),$a([$_.lu,$_.sb])]),$a([$a([$_.lu]),$a([$_.ll]),$a([$_.lm]),$a([]),$a([]),$a([])])]);$_.shftlen=$a([$a([$_.e,$_.e,$_.e,5,$_.e]),$a([5,$_.e,$_.e,5,$_.e]),$a([$_.e,$_.e,$_.e,5,$_.e]),$a([$_.e,$_.e,$_.e,$_.e,$_.e]),$a([4,$_.e,$_.e,4,$_.e])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__21995__=1;$_=Object.getPrototypeOf($_)}$_.msgbits="";if($ne($_.format,"rune")&&$_.raw){$_.msgbits=$_.barcode}if($ne($_.format,"rune")&&!$_.raw){$_.charsize=function(){var _3v=$k[--$j];$k[$j++]=_3v;if(_3v>=0){$j--;var _3y=$g($a([5,5,5,5,4,8]),$k[--$j]);$k[$j++]=_3y}else{var _3z=$k[--$j];var _40=$k[--$j];$k[$j++]=_3z;$k[$j++]=_40;$j--;var _41=$k[--$j];$k[$j++]=_41;if(_41==$_.fn1){$j--;$k[$j++]=8}else{var _44=$f(-$k[--$j]-1e6);$k[$j++]=_44;if(_44==0){$j--;$k[$j++]=1}var _45=$k[--$j];$k[$j++]=(~~(Math.log(_45)/Math.log(10))+1)*4+8}}};$_.curlen=$a([0,$_.e,$_.e,$_.e,$_.e,$_.e]);$_.curseq=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([])]);$_.backto=$_.U;$_.lastchar="";$F($_.msg,function(){$_.char=$k[--$j];for(;;){$_.imp=false;var _4S=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _4T=0,_4U=_4S.length;_4T<_4U;_4T++){$_.x=$g(_4S,_4T);var _4c=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _4d=0,_4e=_4c.length;_4d<_4e;_4d++){$_.y=$g(_4c,_4d);if($_.x!=$_.B||$_.y==$_.backto){$_.cost=$f($g($_.curlen,$_.x)+$g($g($_.latlen,$_.x),$_.y));if($_.cost<$g($_.curlen,$_.y)){$p($_.curlen,$_.y,$_.cost);$k[$j++]=$_.curseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$q($g($g($_.latseq,$_.x),$_.y));var _59=$a();var _5A=$k[--$j];$p($k[--$j],_5A,_59);if($_.y==$_.B){$k[$j++]="backto";if($_.x==$_.P||$_.x==$_.D){$k[$j++]=$_.U}else{$k[$j++]=$_.x}var _5K=$k[--$j];$_[$k[--$j]]=_5K}$_.imp=true}}}}if(!$_.imp){break}}$_.nxtlen=$a([$_.e,$_.e,$_.e,$_.e,$_.e,$_.e]);$_.nxtseq=$a(6);var _5b=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _5c=0,_5d=_5b.length;_5c<_5d;_5c++){$_.x=$g(_5b,_5c);for(;;){if($_.char>=0){if($_.x!=$_.B){var _5m=$g($g($_.charvals,$_.x),$_.char)!==undefined;if(!_5m){break}}}else{if($_.x!=$_.P){break}}$k[$j++]="cost";$k[$j++]=$g($_.curlen,$_.x);$k[$j++]=$_.x;$k[$j++]=$_.char;$_.charsize();var _5u=$k[--$j];var _5v=$k[--$j];$_[$k[--$j]]=$f(_5v+_5u);if($_.cost<$g($_.nxtlen,$_.x)){$p($_.nxtlen,$_.x,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.x;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$k[$j++]=$_.char;var _6A=$a();var _6B=$k[--$j];$p($k[--$j],_6B,_6A)}if($_.x==$_.B){break}var _6K=$a([$_.U,$_.L,$_.M,$_.P,$_.D]);for(var _6L=0,_6M=_6K.length;_6L<_6M;_6L++){$_.y=$g(_6K,_6L);if($ne($_.x,$_.y)){$k[$j++]="cost";$k[$j++]=$f($g($_.curlen,$_.y)+$g($g($_.shftlen,$_.y),$_.x));$k[$j++]=$_.x;$k[$j++]=$_.char;$_.charsize();var _6a=$k[--$j];var _6b=$k[--$j];$_[$k[--$j]]=$f(_6b+_6a);if($_.cost<$g($_.nxtlen,$_.y)){$p($_.nxtlen,$_.y,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.y));var _6r=$_.x==$_.U?$_.su:$_.sp;$k[$j++]=_6r;$k[$j++]=$_.char;var _6t=$a();var _6u=$k[--$j];$p($k[--$j],_6u,_6t)}}}break}}if($ne($_.lastchar,"")&&$_.char>=0){var _6y=$s(2);$p(_6y,0,$_.lastchar);$p(_6y,1,$_.char);$_.pchars=_6y;var _73=$g($_.pcomp,$_.pchars)!==undefined;if(_73){var _79=$a([$_.U,$_.L,$_.M,$_.P,$_.D]);for(var _7A=0,_7B=_79.length;_7A<_7B;_7A++){$_.i=$g(_79,_7A);$_.inP=true;if($_.i==$_.M){if($_.lastchar==13){$_.inP=false}}else{if($_.i==$_.D){if($_.lastchar==44||$_.lastchar==46){$_.inP=false}}}if($_.inP&&$lt($g($_.curlen,$_.i),$g($_.nxtlen,$_.i))){$_.curseqi=$g($_.curseq,$_.i);$_.lastld=false;$_.lastsp=false;$_.lastidx=-1;for(var _7V=$_.curseqi.length-1;_7V>=0;_7V-=1){$_.idx=_7V;$_.ch=$g($_.curseqi,$_.idx);if($_.lastidx==-1){if($eq($_.ch,$_.lastchar)){$_.lastidx=$_.idx;if($_.idx>0){if($g($_.curseqi,$_.idx-1)==$_.sp){$_.lastsp=true}}}}else{if($_.ch<0&&$_.ch>=$_.ld){if($_.i==$_.P){if($_.ch==$_.ld){$_.lastld=true}}else{if($_.ch!=$_.lp){$_.inP=$_.lastsp}}break}}}if($_.inP&&$_.lastidx>=0){$p($_.nxtlen,$_.i,$g($_.curlen,$_.i));if($_.lastidx<$_.curseqi.length-1){if($_.i==$_.P){if($_.lastld){$p($_.nxtlen,$_.i,$f($g($_.nxtlen,$_.i)+1))}$k[$j++]=$_.nxtseq;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($_.curseqi);$r($_.curseqi.length-$_.lastidx,-1);$j--;$k[$j++]=$g($_.pcomp,$_.pchars);var _8H=$a();var _8I=$k[--$j];$p($k[--$j],_8I,_8H)}else{$k[$j++]=$_.nxtseq;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($_.curseqi);var _8N=$a();var _8O=$k[--$j];$p($k[--$j],_8O,_8N);$p($g($_.nxtseq,$_.i),$_.lastidx,$g($_.pcomp,$_.pchars))}}else{$k[$j++]=$_.nxtseq;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($_.curseqi);$j--;$k[$j++]=$g($_.pcomp,$_.pchars);var _8d=$a();var _8e=$k[--$j];$p($k[--$j],_8e,_8d)}}}}}}if($ne($g($_.nxtseq,$_.B),null)){$_.numbytes=0;$F($g($_.nxtseq,$_.B),function(){if($k[--$j]==$_.sb){$k[$j++]=0}else{$k[$j++]=$_.numbytes+1}$_.numbytes=$k[--$j]});if($_.numbytes==32){$p($_.nxtlen,$_.B,$f($g($_.nxtlen,$_.B)+11))}}$_.curlen=$_.nxtlen;$_.curseq=$_.nxtseq;$k[$j++]="lastchar";if($_.char>=0){$k[$j++]=$_.char}else{$k[$j++]=""}var _90=$k[--$j];$_[$k[--$j]]=_90});$_.minseq=$_.e;var _99=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _9A=0,_9B=_99.length;_9A<_9B;_9A++){$_.i=$g(_99,_9A);if($g($_.curlen,$_.i)<$_.minseq){$_.minseq=$g($_.curlen,$_.i);$_.seq=$g($_.curseq,$_.i)}}$_.tobin=function(){var _9O=$s($k[--$j]);$k[$j++]=_9O;for(var _9Q=0,_9P=_9O.length-1;_9Q<=_9P;_9Q+=1){var _9R=$k[--$j];$p(_9R,_9Q,48);$k[$j++]=_9R}var _9S=$k[--$j];var _9V=$R($s(_9S.length),$k[--$j],2);$P(_9S,_9S.length-_9V.length,_9V);$k[$j++]=_9S};$_.encu=function(){var _9a=$g($g($_.charvals,$_.U),$k[--$j]);$k[$j++]=_9a;$k[$j++]=5;$_.tobin()};$_.encl=function(){var _9f=$g($g($_.charvals,$_.L),$k[--$j]);$k[$j++]=_9f;$k[$j++]=5;$_.tobin()};$_.encm=function(){var _9k=$g($g($_.charvals,$_.M),$k[--$j]);$k[$j++]=_9k;$k[$j++]=5;$_.tobin()};$_.encd=function(){var _9p=$g($g($_.charvals,$_.D),$k[--$j]);$k[$j++]=_9p;$k[$j++]=4;$_.tobin()};$_.encp=function(){var _9q=$k[--$j];$k[$j++]=_9q;if(_9q==$_.fn1){$j--;$k[$j++]="00000000"}else{var _9s=$k[--$j];$k[$j++]=_9s;if(_9s<=-1e6){var _9u=$f(-$k[--$j]-1e6);$k[$j++]=_9u;$k[$j++]=_9u;if(_9u==0){$j--;$k[$j++]=1}var _9w=~~(Math.log($k[--$j])/Math.log(10));var _9x=$s((_9w+1)*4+8);$P(_9x,0,"00000");$k[$j++]=_9w;$k[$j++]=_9x;$k[$j++]=_9x;$k[$j++]=_9w+1;$k[$j++]=3;$_.tobin();var _9y=$k[--$j];$P($k[--$j],5,_9y);var _A0=$k[--$j];var _A1=$k[--$j];var _A2=$k[--$j];$k[$j++]=_A0;$k[$j++]=_A2;for(var _A3=_A1;_A3>=0;_A3-=1){var _A4=$k[--$j];var _A5=$k[--$j];$k[$j++]=_A5;$k[$j++]=~~(_A4/10);$k[$j++]=_A5;$k[$j++]=_A3*4+8;$k[$j++]=$f(_A4%10+2);$k[$j++]=4;$_.tobin();var _A6=$k[--$j];var _A7=$k[--$j];$P($k[--$j],_A7,_A6)}$j--}else{var _AD=$g($g($_.charvals,$_.P),$k[--$j]);$k[$j++]=_AD;$k[$j++]=5;$_.tobin()}}};$_.encfuncs=$a(["encu","encl","encm","encp","encd"]);$_.addtomsgbits=function(){$_.v=$k[--$j];$P($_.msgbits,$_.j,$_.v);$_.j=$_.j+$_.v.length};$_.state=$_.U;$_.msgbits=$s($_.minseq);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.seq.length){break}if($_.state!=$_.B){$_.char=$g($_.seq,$_.i);$k[$j++]=$_.char;if($_[$g($_.encfuncs,$_.state)]()===true){break}$_.addtomsgbits();$_.i=$_.i+1;if($_.char==$_.su||$_.char==$_.sp){$k[$j++]=$g($_.seq,$_.i);if($_.char==$_.su){$_.encu()}else{$_.encp()}$_.addtomsgbits();$_.i=$_.i+1}if($_.char==$_.lu){$_.state=$_.U}if($_.char==$_.ll){$_.state=$_.L}if($_.char==$_.lm){$_.state=$_.M}if($_.char==$_.lp){$_.state=$_.P}if($_.char==$_.ld){$_.state=$_.D}if($_.char==$_.sb){$_.state=$_.B}}else{$_.numbytes=0;for(;;){if($_.i+$_.numbytes>=$_.seq.length){break}if($g($_.seq,$_.i+$_.numbytes)<0){break}$_.numbytes=$_.numbytes+1}if($_.numbytes<=31){$k[$j++]=$_.numbytes;$k[$j++]=5;$_.tobin();$_.addtomsgbits()}else{$k[$j++]=0;$k[$j++]=5;$_.tobin();$_.addtomsgbits();$k[$j++]=$_.numbytes-31;$k[$j++]=11;$_.tobin();$_.addtomsgbits()}for(var _BF=0,_BG=$_.numbytes;_BF<_BG;_BF++){$k[$j++]=$g($_.seq,$_.i);$k[$j++]=8;$_.tobin();$_.addtomsgbits();$_.i=$_.i+1}if($_.i<$_.seq.length){$_.char=$g($_.seq,$_.i);$_.i=$_.i+1;if($_.char==$_.lu){$_.state=$_.U}if($_.char==$_.ll){$_.state=$_.L}if($_.char==$_.lm){$_.state=$_.M}}}}}if(!bwipp_azteccode.__22309__){$_=Object.create($_);$_.metrics=$a([$a(["rune",0,0,0,6]),$a(["compact",1,1,17,6]),$a(["full",1,1,21,6]),$a(["compact",2,0,40,6]),$a(["full",2,1,48,6]),$a(["compact",3,0,51,8]),$a(["full",3,1,60,8]),$a(["compact",4,0,76,8]),$a(["full",4,1,88,8]),$a(["full",5,1,120,8]),$a(["full",6,1,156,8]),$a(["full",7,1,196,8]),$a(["full",8,1,240,8]),$a(["full",9,1,230,10]),$a(["full",10,1,272,10]),$a(["full",11,1,316,10]),$a(["full",12,1,364,10]),$a(["full",13,1,416,10]),$a(["full",14,1,470,10]),$a(["full",15,1,528,10]),$a(["full",16,1,588,10]),$a(["full",17,1,652,10]),$a(["full",18,1,720,10]),$a(["full",19,1,790,10]),$a(["full",20,1,864,10]),$a(["full",21,1,940,10]),$a(["full",22,1,1020,10]),$a(["full",23,0,920,12]),$a(["full",24,0,992,12]),$a(["full",25,0,1066,12]),$a(["full",26,0,1144,12]),$a(["full",27,0,1224,12]),$a(["full",28,0,1306,12]),$a(["full",29,0,1392,12]),$a(["full",30,0,1480,12]),$a(["full",31,0,1570,12]),$a(["full",32,0,1664,12])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22309__=1;$_=Object.getPrototypeOf($_)}var _CD=$_.metrics;for(var _CE=0,_CF=_CD.length;_CE<_CF;_CE++){$_.m=$g(_CD,_CE);$_.frmt=$g($_.m,0);$_.mlyr=$g($_.m,1);$_.icap=$g($_.m,2);$_.ncws=$g($_.m,3);$_.bpcw=$g($_.m,4);$_.numecw=~~Math.ceil($f($_.ncws*$_.eclevel/100+$_.ecaddchars));if($_.msgbits.length==0){$_.numecw=0}$_.numdcw=$f($_.ncws-$_.numecw);$_.okay=true;if($ne($_.format,$_.frmt)){$_.okay=false}if($_.readerinit&&$_.icap!=1){$_.okay=false}if($_.layers!=-1&&$_.layers!=$_.mlyr){$_.okay=false}if(~~Math.ceil($_.msgbits.length/$_.bpcw)>$_.numdcw){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.qrcodeNoValidSymbol#22330";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$_.layers=$_.mlyr;$_.allzero=function(){var _Ck=$k[--$j];$k[$j++]=$eq(_Ck,$G("000000000000",0,_Ck.length))};$_.allones=function(){var _Cm=$k[--$j];$k[$j++]=$eq(_Cm,$G("111111111111",0,_Cm.length))};$_.cws=$a($_.ncws);$_.m=0;$_.c=0;for(;;){if($_.msgbits.length<=$_.m){break}if($_.msgbits.length-$_.m>=$_.bpcw){$_.cwb=$G($_.msgbits,$_.m,$f($_.bpcw-1));$_.cwf=$G($_.msgbits,$f($f($_.m+$_.bpcw)-1),1);$k[$j++]=$_.cwb;$_.allzero();if($k[--$j]){$_.cwf="1";$_.m=$_.m-1}$k[$j++]=$_.cwb;$_.allones();if($k[--$j]){$_.cwf="0";$_.m=$_.m-1}var _D9=$s(12);$P(_D9,0,$_.cwb);$P(_D9,$f($_.bpcw-1),$_.cwf);$_.cwb=$G(_D9,0,$_.bpcw)}else{$_.cwb=$G($_.msgbits,$_.m,$_.msgbits.length-$_.m);var _DL=$Z($s(12),"111111111111");$P(_DL,0,$_.cwb);$_.cwb=$G(_DL,0,$_.bpcw);$k[$j++]=$_.cwb;$_.allones();if($k[--$j]){$P($_.cwb,$_.cwb.length-1,"0")}}$_.cw=0;for(var _DV=0,_DU=$f($_.bpcw-1);_DV<=_DU;_DV+=1){$_.i=_DV;$_.cw=$f($_.cw+~~Math.pow(2,$f($f($_.bpcw-$_.i)-1))*$f($g($_.cwb,$_.i)-48))}$p($_.cws,$_.c,$_.cw);$_.m=$f($_.m+$_.bpcw);$_.c=$_.c+1}$_.cws=$G($_.cws,0,$_.c);var _Dm=$g($_.options,"debugcws")!==undefined;if(_Dm){$k[$j++]="bwipp.debugcws#22369";$k[$j++]=$_.cws;bwipp_raiseerror()}$_.rscodes=function(){$_.rspm=$k[--$j];$_.rsgf=$k[--$j];$_.rsnc=$k[--$j];$_.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _Dt=0,_Du=$f($_.rsgf-1);_Dt<_Du;_Dt++){var _Dv=$k[--$j];var _Dw=_Dv*2;$k[$j++]=_Dv;$k[$j++]=_Dw;if(_Dw>=$_.rsgf){var _Dz=$k[--$j];$k[$j++]=$xo(_Dz,$_.rspm)}}$_.rsalog=$a();$_.rslog=$a($_.rsgf);for(var _E5=1,_E4=$f($_.rsgf-1);_E5<=_E4;_E5+=1){$p($_.rslog,$g($_.rsalog,_E5),_E5)}$_.rsprod=function(){var _E9=$k[--$j];var _EA=$k[--$j];$k[$j++]=_EA;$k[$j++]=_E9;if(_E9!=0&&_EA!=0){var _ED=$g($_.rslog,$k[--$j]);var _EJ=$g($_.rsalog,$f(_ED+$g($_.rslog,$k[--$j]))%$f($_.rsgf-1));$k[$j++]=_EJ}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _EL=0,_EM=$_.rsnc;_EL<_EM;_EL++){$k[$j++]=0}$_.coeffs=$a();for(var _EQ=1,_EP=$_.rsnc;_EQ<=_EP;_EQ+=1){$_.i=_EQ;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _EX=$_.i-1;_EX>=1;_EX-=1){$_.j=_EX;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Ej=$k[--$j];var _Ek=$k[--$j];var _El=$k[--$j];$p($k[--$j],_El,$xo(_Ek,_Ej))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Et=$k[--$j];var _Eu=$k[--$j];$p($k[--$j],_Eu,_Et)}$_.nd=$_.rscws.length;$k[$j++]=Infinity;$F($_.rscws);for(var _Ez=0,_F0=$_.rsnc;_Ez<_F0;_Ez++){$k[$j++]=0}$k[$j++]=0;$_.rscws=$a();for(var _F4=0,_F3=$_.nd-1;_F4<=_F3;_F4+=1){$_.k=$xo($g($_.rscws,_F4),$g($_.rscws,$_.nd));for(var _FC=0,_FB=$f($_.rsnc-1);_FC<=_FB;_FC+=1){$_.j=_FC;$k[$j++]=$_.rscws;$k[$j++]=$_.nd+$_.j;$k[$j++]=$g($_.rscws,$_.nd+$_.j+1);$k[$j++]=$_.k;$k[$j++]=$g($_.coeffs,$f($f($_.rsnc-$_.j)-1));$_.rsprod();var _FP=$k[--$j];var _FQ=$k[--$j];var _FR=$k[--$j];$p($k[--$j],_FR,$xo(_FQ,_FP))}}$k[$j++]=$G($_.rscws,0,$_.rscws.length-1)};if($eq($_.format,"full")){$_.mode=($f($_.layers-1)<<11)+($_.cws.length-1);if($_.readerinit){$_.mode=$_.mode|1024}$_.mode=$a([($_.mode&61440)>>>12,($_.mode&3840)>>>8,($_.mode&240)>>>4,$_.mode&15]);$k[$j++]="mode";$k[$j++]=$_.mode;$k[$j++]=6;$k[$j++]=16;$k[$j++]=19;$_.rscodes();var _Fh=$k[--$j];$_[$k[--$j]]=_Fh}if($eq($_.format,"compact")){$_.mode=($f($_.layers-1)<<6)+($_.cws.length-1);if($_.readerinit){$_.mode=$_.mode|32}$_.mode=$a([($_.mode&240)>>>4,$_.mode&15]);$k[$j++]="mode";$k[$j++]=$_.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$_.rscodes();var _Fs=$k[--$j];$_[$k[--$j]]=_Fs}if($eq($_.format,"rune")){$_.mode=$i($_.barcode);$_.mode=$a([($_.mode&240)>>>4,$_.mode&15]);$k[$j++]="mode";$k[$j++]=$_.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$_.rscodes();var _G0=$k[--$j];$_[$k[--$j]]=_G0;$k[$j++]=Infinity;var _G2=$_.mode;for(var _G3=0,_G4=_G2.length;_G3<_G4;_G3++){$k[$j++]=$g(_G2,_G3)^10}$_.mode=$a()}$_.modebits=$s($_.mode.length*4);for(var _GB=0,_GA=$_.modebits.length-1;_GB<=_GA;_GB+=1){$P($_.modebits,_GB,"0")}for(var _GF=0,_GE=$_.mode.length-1;_GF<=_GE;_GF+=1){$_.i=_GF;var _GL=$R($s(4),$g($_.mode,$_.i),2);$P($_.modebits,4-_GL.length+4*$_.i,_GL)}if(!bwipp_azteccode.__22470__){$_=Object.create($_);$_.rsparams=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([]),$a([64,67]),$a([]),$a([256,301]),$a([]),$a([1024,1033]),$a([]),$a([4096,4201])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22470__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="cws";$k[$j++]=$_.cws;$k[$j++]=$f($_.ncws-$_.cws.length);$F($g($_.rsparams,$_.bpcw));$_.rscodes();var _Gi=$k[--$j];$_[$k[--$j]]=_Gi;if($eq($_.format,"full")){$_.databits=$s($f($_.layers*$_.layers*16+$_.layers*112))}else{$_.databits=$s($f($_.layers*$_.layers*16+$_.layers*88))}for(var _Gv=0,_Gu=$_.databits.length-1;_Gv<=_Gu;_Gv+=1){$P($_.databits,_Gv,"0")}for(var _Gz=0,_Gy=$f($_.ncws-1);_Gz<=_Gy;_Gz+=1){$_.i=_Gz;var _H6=$R($s($_.bpcw),$g($_.cws,$_.i),2);$P($_.databits,$f($f($f($_.bpcw-_H6.length)+$_.bpcw*$_.i)+$f($_.databits.length-$_.ncws*$_.bpcw)),_H6)}$_.cmv=function(){var _HE=$k[--$j];var _HF=$k[--$j];$k[$j++]=$f($f(_HF-_HE*$_.size)+$_.mid)};$_.lmv=function(){$_.lbit=$k[--$j];$_.llyr=$k[--$j];$_.lwid=$f($_.fw+$_.llyr*4);$_.ldir=~~(~~($_.lbit/2)/$_.lwid);if($_.ldir==0){$k[$j++]=$f(-~~($f($_.lwid-1)/2)+1+~~($_.lbit/2)%$_.lwid);$k[$j++]=$f($f(~~(($_.fw-1)/2)+$_.llyr*2)+$_.lbit%2);$_.cmv()}if($_.ldir==1){$k[$j++]=$f($f(~~($_.fw/2)+$_.llyr*2)+$_.lbit%2);$k[$j++]=$f(~~($f($_.lwid-1)/2)-1-~~($_.lbit/2)%$_.lwid);$_.cmv()}if($_.ldir==2){$k[$j++]=-$f(-~~($_.lwid/2)+1+~~($_.lbit/2)%$_.lwid);$k[$j++]=-$f($f(~~($_.fw/2)+$_.llyr*2)+$_.lbit%2);$_.cmv()}if($_.ldir==3){$k[$j++]=-$f($f(~~(($_.fw-1)/2)+$_.llyr*2)+$_.lbit%2);$k[$j++]=-$f(~~($_.lwid/2)-1-~~($_.lbit/2)%$_.lwid);$_.cmv()}};if($eq($_.format,"full")){$_.fw=12}else{$_.fw=9}$_.size=$f($f($_.fw+$_.layers*4)+2);$k[$j++]=Infinity;for(var _Hu=0,_Hv=$_.size*$_.size;_Hu<_Hv;_Hu++){$k[$j++]=-1}$_.pixs=$a();$_.mid=$f(~~($f($_.size-1)/2)*$_.size+~~($f($_.size-1)/2));$_.i=0;for(var _I2=1,_I1=$_.layers;_I2<=_I1;_I2+=1){$_.layer=_I2;for(var _I6=0,_I5=($_.fw+$_.layer*4)*8-1;_I6<=_I5;_I6+=1){$_.pos=_I6;$k[$j++]=$_.pixs;$k[$j++]=$_.layer;$k[$j++]=$_.pos;$_.lmv();var _IE=$k[--$j];$p($k[--$j],_IE,$g($_.databits,$_.databits.length-$_.i-1)-48);$_.i=$_.i+1}}if($eq($_.format,"full")){$_.fw=13;$_.size=$f($f($f($_.fw+$_.layers*4)+2)+~~$f($f($_.layers+10.5)/7.5-1)*2);$_.mid=~~($_.size*$_.size/2);$k[$j++]=Infinity;for(var _IP=0,_IQ=$_.size*$_.size;_IP<_IQ;_IP++){$k[$j++]=-2}$_.npixs=$a();for(var _IU=0,_IT=~~($_.size/2);_IU<=_IT;_IU+=16){$_.i=_IU;for(var _IX=0,_IW=$f($_.size-1);_IX<=_IW;_IX+=1){$_.j=_IX;$k[$j++]=$_.npixs;$k[$j++]=-~~($_.size/2)+$_.j;$k[$j++]=$_.i;$_.cmv();var _Ig=$k[--$j];$P($k[--$j],_Ig,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]));$k[$j++]=$_.npixs;$k[$j++]=-~~($_.size/2)+$_.j;$k[$j++]=-$_.i;$_.cmv();var _Iq=$k[--$j];$P($k[--$j],_Iq,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]));$k[$j++]=$_.npixs;$k[$j++]=$_.i;$k[$j++]=-~~($_.size/2)+$_.j;$_.cmv();var _J0=$k[--$j];$P($k[--$j],_J0,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]));$k[$j++]=$_.npixs;$k[$j++]=-$_.i;$k[$j++]=-~~($_.size/2)+$_.j;$_.cmv();var _JA=$k[--$j];$P($k[--$j],_JA,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]))}}$_.j=0;for(var _JE=0,_JD=$_.npixs.length-1;_JE<=_JD;_JE+=1){$_.i=_JE;if($g($_.npixs,$_.i)==-2){$p($_.npixs,$_.i,$g($_.pixs,$_.j));$_.j=$_.j+1}}$_.pixs=$_.npixs}$_.fw=~~($_.fw/2);for(var _JT=-$_.fw,_JS=$_.fw;_JT<=_JS;_JT+=1){$_.i=_JT;for(var _JX=-$_.fw,_JW=$_.fw;_JX<=_JW;_JX+=1){$_.j=_JX;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.cmv();if(Math.abs($_.i)>Math.abs($_.j)){$k[$j++]=Math.abs($_.i)}else{$k[$j++]=Math.abs($_.j)}var _Jf=$k[--$j];var _Jg=$k[--$j];$p($k[--$j],_Jg,$f(_Jf+1)%2)}}var _KI=$a([$a([-($_.fw+1),$_.fw,1]),$a([-($_.fw+1),$_.fw+1,1]),$a([-$_.fw,$_.fw+1,1]),$a([$_.fw+1,$_.fw+1,1]),$a([$_.fw+1,$_.fw,1]),$a([$_.fw+1,-$_.fw,1]),$a([$_.fw,$_.fw+1,0]),$a([$_.fw+1,-($_.fw+1),0]),$a([$_.fw,-($_.fw+1),0]),$a([-$_.fw,-($_.fw+1),0]),$a([-($_.fw+1),-($_.fw+1),0]),$a([-($_.fw+1),-$_.fw,0])]);for(var _KJ=0,_KK=_KI.length;_KJ<_KK;_KJ++){$k[$j++]=$_.pixs;$F($g(_KI,_KJ));var _KN=$k[--$j];var _KO=$k[--$j];var _KP=$k[--$j];$k[$j++]=_KN;$k[$j++]=_KP;$k[$j++]=_KO;$_.cmv();var _KQ=$k[--$j];var _KR=$k[--$j];$p($k[--$j],_KQ,_KR)}if(!bwipp_azteccode.__22596__){$_=Object.create($_);$_.modemapfull=$a([$a([-5,7]),$a([-4,7]),$a([-3,7]),$a([-2,7]),$a([-1,7]),$a([1,7]),$a([2,7]),$a([3,7]),$a([4,7]),$a([5,7]),$a([7,5]),$a([7,4]),$a([7,3]),$a([7,2]),$a([7,1]),$a([7,-1]),$a([7,-2]),$a([7,-3]),$a([7,-4]),$a([7,-5]),$a([5,-7]),$a([4,-7]),$a([3,-7]),$a([2,-7]),$a([1,-7]),$a([-1,-7]),$a([-2,-7]),$a([-3,-7]),$a([-4,-7]),$a([-5,-7]),$a([-7,-5]),$a([-7,-4]),$a([-7,-3]),$a([-7,-2]),$a([-7,-1]),$a([-7,1]),$a([-7,2]),$a([-7,3]),$a([-7,4]),$a([-7,5])]);$_.modemapcompact=$a([$a([-3,5]),$a([-2,5]),$a([-1,5]),$a([0,5]),$a([1,5]),$a([2,5]),$a([3,5]),$a([5,3]),$a([5,2]),$a([5,1]),$a([5,0]),$a([5,-1]),$a([5,-2]),$a([5,-3]),$a([3,-5]),$a([2,-5]),$a([1,-5]),$a([0,-5]),$a([-1,-5]),$a([-2,-5]),$a([-3,-5]),$a([-5,-3]),$a([-5,-2]),$a([-5,-1]),$a([-5,0]),$a([-5,1]),$a([-5,2]),$a([-5,3])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22596__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="modemap";if($eq($_.format,"full")){$k[$j++]=$_.modemapfull}else{$k[$j++]=$_.modemapcompact}var _Lf=$k[--$j];$_[$k[--$j]]=_Lf;for(var _Lj=0,_Li=$_.modemap.length-1;_Lj<=_Li;_Lj+=1){$_.i=_Lj;$k[$j++]=$_.pixs;$F($g($_.modemap,$_.i));$_.cmv();var _Lr=$k[--$j];$p($k[--$j],_Lr,$g($_.modebits,$_.i)-48)}var _Lz=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.size],["pixy",$_.size],["height",$_.size*2/72],["width",$_.size*2/72],["opt",$_.options]]);$k[$j++]=_Lz;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_azteccodecompact(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","compact");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_azteccode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_aztecrune(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","rune");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_azteccode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_codeone(){$_=Object.create($_);$_.dontdraw=false;$_.version="unset";$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _2=$a(["unset","T-16","T-32","T-48","S-10","S-20","S-30","A","B","C","D","E","F","G","H"]);$k[$j++]=false;for(var _3=0,_4=_2.length;_3<_4;_3++){var _7=$k[--$j];$k[$j++]=_7||$eq($g(_2,_3),$_.version)}if($nt($k[--$j])){$k[$j++]="bwipp.codeoneBadVersion#22757";$k[$j++]="version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30";bwipp_raiseerror()}bwipp_loadctx(bwipp_codeone);$_.stype=$eq($G($_.version,0,1),"S");if(!bwipp_codeone.__22920__){$_=Object.create($_);$_.stypevals=$a(["1","1010","1100100","1111101000","10011100010000","11000011010100000","11110100001001000000","100110001001011010000000","101111101011110000100000000","111011100110101100101000000000","1001010100000010111110010000000000","1011101001000011101101110100000000000","1110100011010100101001010001000000000000","10010001100001001110011100101010000000000000","10110101111001100010000011110100100000000000000","11100011010111111010100100110001101000000000000000","100011100001101111001001101111110000010000000000000000","101100011010001010111100001011101100010100000000000000000"]);$_.stypemetrics=$a([$a(["S-10",8,11,10,4,4,1,99,99,99]),$a(["S-20",8,21,20,8,8,1,99,99,99]),$a(["S-30",8,31,30,12,12,1,99,99,99])]);$_.nonstypemetrics=$a([$a(["A",16,18,16,10,10,1,4,99,6]),$a(["B",22,22,20,19,16,1,4,99,8]),$a(["C",28,32,28,44,26,1,4,22,11]),$a(["D",40,42,36,91,44,1,4,16,16]),$a(["E",52,54,48,182,70,1,4,22,22]),$a(["F",70,76,68,370,140,2,4,22,31]),$a(["G",104,98,88,732,280,4,6,21,47]),$a(["H",148,134,120,1480,560,8,6,20,69]),$a(["T-16",16,17,16,10,10,1,99,99,99]),$a(["T-32",16,33,32,24,16,1,99,99,99]),$a(["T-48",16,49,48,38,22,1,99,99,99])]);$_.fnc1=-1;$_.fnc3=-2;$_.lC=-5;$_.lB=-6;$_.lX=-7;$_.lT=-8;$_.lD=-9;$_.unl=-10;$_.fnc2=-11;$_.fnc4=-12;$_.sft1=-13;$_.sft2=-14;$_.sft3=-15;$_.eci=-16;$_.pad=-17;$_.fnc1lD=-18;$_.unlcw=255;$k[$j++]=Infinity;for(var _S=0;_S<=128;_S+=1){$k[$j++]=_S;$k[$j++]=_S+1}$k[$j++]=$_.pad;$k[$j++]=129;for(var _U=0;_U<=99;_U+=1){var _W=$R($s(2),_U,10);var _Y=$Z($s(2),"00");$P(_Y,2-_W.length,_W);$k[$j++]=_Y;$k[$j++]=_U+130}var _g=$a([$_.lC,$_.lB,$_.fnc1,$_.fnc2,$_.fnc3,$_.fnc4,$_.fnc1lD]);$k[$j++]=229;for(var _h=0,_i=_g.length;_h<_i;_h++){var _l=$f($k[--$j]+1);$k[$j++]=$g(_g,_h);$k[$j++]=_l;$k[$j++]=_l}$j--;$k[$j++]=$_.lX;$k[$j++]=238;$k[$j++]=$_.lT;$k[$j++]=239;$_.Avals=$d();$k[$j++]=Infinity;var _p=$_.Avals;for(var _u=_p.size,_t=_p.keys(),_s=0;_s<_u;_s++){var _q=_t.next().value;$k[$j++]=_q;$k[$j++]=_p.get(_q);$k[$j++]=Infinity;var _v=$k[--$j];var _w=$k[--$j];$k[$j++]=_v;$k[$j++]=_w;var _x=$a();$k[$j++]=_x}$_.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _12=48;_12<=57;_12+=1){$k[$j++]=_12;$k[$j++]=_12-44}for(var _13=65;_13<=90;_13+=1){$k[$j++]=_13;$k[$j++]=_13-51}$_.CNvals=$d();$k[$j++]=Infinity;for(var _15=0;_15<=31;_15+=1){$k[$j++]=_15;$k[$j++]=_15}$_.C1vals=$d();$k[$j++]=Infinity;for(var _17=33;_17<=47;_17+=1){$k[$j++]=_17;$k[$j++]=_17-33}for(var _18=58;_18<=64;_18+=1){$k[$j++]=_18;$k[$j++]=_18-43}for(var _19=91;_19<=95;_19+=1){$k[$j++]=_19;$k[$j++]=_19-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.fnc2;$k[$j++]=28;$k[$j++]=$_.fnc3;$k[$j++]=29;$k[$j++]=$_.fnc4;$k[$j++]=30;$k[$j++]=$_.pad;$k[$j++]=31;$_.C2vals=$d();$k[$j++]=Infinity;for(var _1G=96;_1G<=127;_1G+=1){$k[$j++]=_1G;$k[$j++]=_1G-96}$_.C3vals=$d();$k[$j++]=Infinity;var _1I=$_.CNvals;for(var _1N=_1I.size,_1M=_1I.keys(),_1L=0;_1L<_1N;_1L++){var _1J=_1M.next().value;$k[$j++]=_1J;$k[$j++]=_1I.get(_1J);$k[$j++]=Infinity;var _1O=$k[--$j];var _1P=$k[--$j];$k[$j++]=_1O;$k[$j++]=_1P;var _1Q=$a();$k[$j++]=_1Q}var _1R=$_.C1vals;for(var _1W=_1R.size,_1V=_1R.keys(),_1U=0;_1U<_1W;_1U++){var _1S=_1V.next().value;$k[$j++]=_1S;$k[$j++]=_1R.get(_1S);$k[$j++]=Infinity;var _1X=$k[--$j];var _1Y=$k[--$j];$k[$j++]=_1X;$k[$j++]=$g($_.CNvals,$_.sft1);$k[$j++]=_1Y;var _1c=$a();$k[$j++]=_1c}var _1d=$_.C2vals;for(var _1i=_1d.size,_1h=_1d.keys(),_1g=0;_1g<_1i;_1g++){var _1e=_1h.next().value;$k[$j++]=_1e;$k[$j++]=_1d.get(_1e);$k[$j++]=Infinity;var _1j=$k[--$j];var _1k=$k[--$j];$k[$j++]=_1j;$k[$j++]=$g($_.CNvals,$_.sft2);$k[$j++]=_1k;var _1o=$a();$k[$j++]=_1o}var _1p=$_.C3vals;for(var _1u=_1p.size,_1t=_1p.keys(),_1s=0;_1s<_1u;_1s++){var _1q=_1t.next().value;$k[$j++]=_1q;$k[$j++]=_1p.get(_1q);$k[$j++]=Infinity;var _1v=$k[--$j];var _1w=$k[--$j];$k[$j++]=_1v;$k[$j++]=$g($_.CNvals,$_.sft3);$k[$j++]=_1w;var _20=$a();$k[$j++]=_20}$_.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _25=48;_25<=57;_25+=1){$k[$j++]=_25;$k[$j++]=_25-44}for(var _26=97;_26<=122;_26+=1){$k[$j++]=_26;$k[$j++]=_26-83}$_.TNvals=$d();$k[$j++]=Infinity;for(var _28=0;_28<=31;_28+=1){$k[$j++]=_28;$k[$j++]=_28}$_.T1vals=$d();$k[$j++]=Infinity;for(var _2A=33;_2A<=47;_2A+=1){$k[$j++]=_2A;$k[$j++]=_2A-33}for(var _2B=58;_2B<=64;_2B+=1){$k[$j++]=_2B;$k[$j++]=_2B-43}for(var _2C=91;_2C<=95;_2C+=1){$k[$j++]=_2C;$k[$j++]=_2C-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.fnc2;$k[$j++]=28;$k[$j++]=$_.fnc3;$k[$j++]=29;$k[$j++]=$_.fnc4;$k[$j++]=30;$k[$j++]=$_.pad;$k[$j++]=31;$_.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _2J=65;_2J<=90;_2J+=1){$k[$j++]=_2J;$k[$j++]=_2J-64}for(var _2K=123;_2K<=127;_2K+=1){$k[$j++]=_2K;$k[$j++]=_2K-96}$_.T3vals=$d();$k[$j++]=Infinity;var _2M=$_.TNvals;for(var _2R=_2M.size,_2Q=_2M.keys(),_2P=0;_2P<_2R;_2P++){var _2N=_2Q.next().value;$k[$j++]=_2N;$k[$j++]=_2M.get(_2N);$k[$j++]=Infinity;var _2S=$k[--$j];var _2T=$k[--$j];$k[$j++]=_2S;$k[$j++]=_2T;var _2U=$a();$k[$j++]=_2U}var _2V=$_.T1vals;for(var _2a=_2V.size,_2Z=_2V.keys(),_2Y=0;_2Y<_2a;_2Y++){var _2W=_2Z.next().value;$k[$j++]=_2W;$k[$j++]=_2V.get(_2W);$k[$j++]=Infinity;var _2b=$k[--$j];var _2c=$k[--$j];$k[$j++]=_2b;$k[$j++]=$g($_.TNvals,$_.sft1);$k[$j++]=_2c;var _2g=$a();$k[$j++]=_2g}var _2h=$_.T2vals;for(var _2m=_2h.size,_2l=_2h.keys(),_2k=0;_2k<_2m;_2k++){var _2i=_2l.next().value;$k[$j++]=_2i;$k[$j++]=_2h.get(_2i);$k[$j++]=Infinity;var _2n=$k[--$j];var _2o=$k[--$j];$k[$j++]=_2n;$k[$j++]=$g($_.TNvals,$_.sft2);$k[$j++]=_2o;var _2s=$a();$k[$j++]=_2s}var _2t=$_.T3vals;for(var _2y=_2t.size,_2x=_2t.keys(),_2w=0;_2w<_2y;_2w++){var _2u=_2x.next().value;$k[$j++]=_2u;$k[$j++]=_2t.get(_2u);$k[$j++]=Infinity;var _2z=$k[--$j];var _30=$k[--$j];$k[$j++]=_2z;$k[$j++]=$g($_.TNvals,$_.sft3);$k[$j++]=_30;var _34=$a();$k[$j++]=_34}$_.Tvals=$d();for(var _36=128;_36<=255;_36+=1){$_.i=_36;$k[$j++]=$_.Avals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Avals,$_.fnc4));$q($g($_.Avals,$_.i-128));var _3F=$a();var _3G=$k[--$j];$p($k[--$j],_3G,_3F);$k[$j++]=$_.Cvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Cvals,$_.fnc4));$q($g($_.Cvals,$_.i-128));var _3Q=$a();var _3R=$k[--$j];$p($k[--$j],_3R,_3Q);$k[$j++]=$_.Tvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Tvals,$_.fnc4));$q($g($_.Tvals,$_.i-128));var _3b=$a();var _3c=$k[--$j];$p($k[--$j],_3c,_3b)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _3e=48;_3e<=57;_3e+=1){$k[$j++]=_3e;$k[$j++]=_3e-44}for(var _3f=65;_3f<=90;_3f+=1){$k[$j++]=_3f;$k[$j++]=_3f-51}$_.Xvals=$d();$k[$j++]=Infinity;var _3h=$_.Xvals;for(var _3m=_3h.size,_3l=_3h.keys(),_3k=0;_3k<_3m;_3k++){var _3i=_3l.next().value;$k[$j++]=_3i;$k[$j++]=_3h.get(_3i);$k[$j++]=Infinity;var _3n=$k[--$j];var _3o=$k[--$j];$k[$j++]=_3n;$k[$j++]=_3o;var _3p=$a();$k[$j++]=_3p}$_.Xvals=$d();$k[$j++]=Infinity;for(var _3r=0;_3r<=255;_3r+=1){$k[$j++]=_3r;$k[$j++]=_3r}$_.Bvals=$d();$k[$j++]=Infinity;var _3t=$_.Bvals;for(var _3y=_3t.size,_3x=_3t.keys(),_3w=0;_3w<_3y;_3w++){var _3u=_3x.next().value;$k[$j++]=_3u;$k[$j++]=_3t.get(_3u);$k[$j++]=Infinity;var _3z=$k[--$j];var _40=$k[--$j];$k[$j++]=_3z;$k[$j++]=_40;var _41=$a();$k[$j++]=_41}$_.Bvals=$d();$_.encvals=$a([$_.Avals,$_.Cvals,$_.Tvals,$_.Xvals,-1,$_.Bvals]);$_.A=0;$_.C=1;$_.T=2;$_.X=3;$_.D=4;$_.B=5;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codeone.$ctx[id]=$_[id]);bwipp_codeone.__22920__=1;$_=Object.getPrototypeOf($_)}if($_.stype){$F($_.barcode,function(){var _4C=$k[--$j];if(_4C<48||_4C>57){$k[$j++]="bwipp.codeoneStypeNonDigit#22926";$k[$j++]="S-Type symbols can only contain digits";bwipp_raiseerror()}});$_.barlen=$_.barcode.length;if($_.barlen>18){$k[$j++]="bwipp.codeoneStypeTooLong#22932";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$_.normalize=function(){$_.base=$k[--$j];$_.num=$k[--$j];for(var _4I=$_.num.length-1;_4I>=1;_4I-=1){$_.i=_4I;var _4J=$_.num;var _4K=$_.i;$p(_4J,_4K-1,$f($g(_4J,_4K-1)+~~($g($_.num,$_.i)/$_.base)));$p($_.num,$_.i,$g($_.num,$_.i)%$_.base)}for(;;){if($lt($g($_.num,0),$_.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$F($_.num);$_.num=$a();$p($_.num,0,$f($g($_.num,0)+~~($g($_.num,1)/$_.base)));$p($_.num,1,$g($_.num,1)%$_.base)}$k[$j++]=Infinity;$_.i=true;var _4l=$_.num;for(var _4m=0,_4n=_4l.length;_4m<_4n;_4m++){var _4o=$g(_4l,_4m);$k[$j++]=_4o;if(_4o==0&&$_.i){$j--}else{$_.i=false}}$_.num=$a();if($_.num.length==0){$_.num=$a([0])}$k[$j++]=$_.num};$_.bigadd=function(){var _4u=$k[--$j];var _4v=$k[--$j];$_.offset=Math.abs(_4u.length-_4v.length);if(_4u.length<_4v.length){var _=_4u;_4u=_4v;_4v=_}$_.a=_4u;$_.b=_4v;for(var _4y=0,_4x=$_.b.length-1;_4y<=_4x;_4y+=1){var _4z=$_.a;var _50=$_.offset;$p(_4z,_4y+_50,$f($g(_4z,_4y+_50)+$g($_.b,_4y)))}$k[$j++]=$_.a};$_.barlen=$_.barcode.length;$_.v=$a([1]);for(var _59=0,_58=$_.barlen-1;_59<=_58;_59+=1){$_.i=_59;$k[$j++]=Infinity;$F($g($_.stypevals,$_.i),function(){var _5D=$k[--$j];$k[$j++]=$f(_5D-48)*$f($g($_.barcode,$_.barlen-$_.i-1)-48)});var _5I=$a();$k[$j++]=_5I;$k[$j++]=$_.v;$_.bigadd();$_.v=$k[--$j]}$k[$j++]="v";$k[$j++]=$_.v;$k[$j++]=2;$_.normalize();var _5M=$k[--$j];$_[$k[--$j]]=_5M;$k[$j++]=Infinity;for(var _5P=0,_5Q=(5-$_.v.length%5)%5;_5P<_5Q;_5P++){$k[$j++]=0}$q($_.v);$_.v=$a();$_.cws=$a(~~($_.v.length/5));for(var _5X=0,_5W=$_.cws.length-1;_5X<=_5W;_5X+=1){$_.i=_5X;var _5a=$G($_.v,$_.i*5,5);$k[$j++]=0;for(var _5b=0,_5c=_5a.length;_5b<_5c;_5b++){var _5e=$k[--$j];$k[$j++]=$f(_5e+$g(_5a,_5b))*2}$p($_.cws,$_.i,~~($k[--$j]/2))}$_.metrics=$_.stypemetrics}else{var _5n=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fnc1],["FNC3",$_.fnc3]]);$_.fncvals=_5n;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _5q=$k[--$j];$_[$k[--$j]]=_5q;$_.msglen=$_.msg.length;$_.eciesc=92;var _5t=$_.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _5u=0,_5v=_5t.length;_5u<_5v;_5u++){if($g(_5t,_5u)<=-1e6){var _5x=$k[--$j];$k[$j++]=$f(_5x+1)}}var _5y=$k[--$j];$_[$k[--$j]]=_5y;if($_.numecis>0){$_.msgtmp=$a($f($f($_.msg.length*2+$_.numecis*6)+2));$p($_.msgtmp,0,$_.pad);$p($_.msgtmp,1,$_.eciesc);$_.j=2;for(var _6A=0,_69=$_.msg.length-1;_6A<=_69;_6A+=1){var _6C=$g($_.msg,_6A);$k[$j++]=_6C;if(_6C<=-1e6){var _6G=$G($R($s(7),-$k[--$j],10),1,6);for(var _6H=0,_6I=_6G.length;_6H<_6I;_6H++){$k[$j++]=$g(_6G,_6H)}$as($a(6));$P($_.msgtmp,$_.j+1,$k[--$j]);$p($_.msgtmp,$_.j,$_.eciesc);$_.j=$_.j+7}else{var _6S=$k[--$j];$k[$j++]=_6S;if(_6S!=$_.eciesc){$p($_.msgtmp,$_.j,$k[--$j]);$_.j=$_.j+1}else{$j--;$p($_.msgtmp,$_.j,$_.eciesc);$p($_.msgtmp,$_.j+1,$_.eciesc);$_.j=$_.j+2}}}$_.msg=$G($_.msgtmp,0,$_.j);$_.msglen=$_.msg.length}$_.metrics=$_.nonstypemetrics;$_.fullcws=$a([]);var _6l=$_.metrics;for(var _6m=0,_6n=_6l.length;_6m<_6n;_6m++){$_.m=$g(_6l,_6m);$_.vers=$g($_.m,0);$_.dcws=$g($_.m,4);$_.okay=true;if($eq($_.version,"unset")){if($_.vers.length!=1){$_.okay=false}}else{if($ne($_.version,$_.vers)){$_.okay=false}}if($_.okay){$k[$j++]=Infinity;$q($_.fullcws);$k[$j++]=$_.dcws;$_.fullcws=$a()}}$k[$j++]=Infinity;for(var _71=0,_72=1480;_71<_72;_71++){$k[$j++]=1e4}$_.numremcws=$a();var _74=$_.fullcws;for(var _75=0,_76=_74.length;_75<_76;_75++){$p($_.numremcws,$f($g(_74,_75)-1),1)}for(var _79=1478;_79>=0;_79-=1){$_.i=_79;if($g($_.numremcws,$_.i)!=1){$p($_.numremcws,$_.i,$f($g($_.numremcws,$_.i+1)+1))}}$k[$j++]=Infinity;for(var _7J=0,_7K=$_.msglen;_7J<_7K;_7J++){$k[$j++]=0}$k[$j++]=0;$_.numD=$a();$k[$j++]=Infinity;for(var _7N=0,_7O=$_.msglen;_7N<_7O;_7N++){$k[$j++]=0}$k[$j++]=9999;$_.nextXterm=$a();$k[$j++]=Infinity;for(var _7R=0,_7S=$_.msglen;_7R<_7S;_7R++){$k[$j++]=0}$k[$j++]=9999;$_.nextNonX=$a();for(var _7V=$_.msglen-1;_7V>=0;_7V-=1){$_.i=_7V;$_.barchar=$g($_.msg,$_.i);if($_.barchar>=48&&$_.barchar<=57){$p($_.numD,$_.i,$f($g($_.numD,$_.i+1)+1))}if($_.barchar==13||$_.barchar==42||$_.barchar==62){$p($_.nextXterm,$_.i,0)}else{$p($_.nextXterm,$_.i,$f($g($_.nextXterm,$_.i+1)+1))}var _7s=$g($_.Xvals,$_.barchar)!==undefined;if(!_7s){$p($_.nextNonX,$_.i,0)}else{$p($_.nextNonX,$_.i,$f($g($_.nextNonX,$_.i+1)+1))}}$k[$j++]=Infinity;var _80=$_.nextXterm;for(var _81=0,_82=_80.length;_81<_82;_81++){var _83=$g(_80,_81);$k[$j++]=_83;if(_83>1e4){$j--;$k[$j++]=1e4}}$_.nextXterm=$a();$k[$j++]=Infinity;var _85=$_.nextNonX;for(var _86=0,_87=_85.length;_86<_87;_86++){var _88=$g(_85,_86);$k[$j++]=_88;if(_88>1e4){$j--;$k[$j++]=1e4}}$_.nextNonX=$a();$_.isD=function(){$k[$j++]=$_.char>=48&&$_.char<=57};$_.isC=function(){var _8E=$g($_.CNvals,$_.char)!==undefined;$k[$j++]=_8E};$_.isT=function(){var _8H=$g($_.TNvals,$_.char)!==undefined;$k[$j++]=_8H};$_.isX=function(){var _8K=$g($_.Xvals,$_.char)!==undefined;$k[$j++]=_8K};$_.isEA=function(){$k[$j++]=$_.char>127};$_.isFN=function(){$k[$j++]=$_.char<0};$_.XtermFirst=function(){var _8N=$k[--$j];$k[$j++]=$lt($g($_.nextXterm,_8N),$g($_.nextNonX,_8N))};$_.lookup=function(){$_.ac=1;$_.cc=2;$_.tc=2;$_.xc=2;$_.bc=3;if($_.mode==$_.A){$_.ac=0;$_.cc=1;$_.tc=1;$_.xc=1;$_.bc=2}if($_.mode==$_.C){$_.cc=0}if($_.mode==$_.T){$_.tc=0}if($_.mode==$_.X){$_.xc=0}if($_.mode==$_.B){$_.bc=0}for(var _8c=0,_8d=1;_8c<_8d;_8c++){$_.k=0;for(;;){if($_.i+$_.k==$_.msglen){var _8l=$a([$_.ac,$_.cc,$_.tc,$_.xc]);$k[$j++]=true;for(var _8m=0,_8n=_8l.length;_8m<_8n;_8m++){var _8q=$k[--$j];$k[$j++]=_8q&&$_.bc<=Math.ceil($g(_8l,_8m))}if($k[--$j]){$k[$j++]=$_.B;break}var _8x=$a([$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _8y=0,_8z=_8x.length;_8y<_8z;_8y++){var _92=$k[--$j];$k[$j++]=_92&&$_.ac<=Math.ceil($g(_8x,_8y))}if($k[--$j]){$k[$j++]=$_.A;break}var _97=$a([$_.tc,$_.xc]);$k[$j++]=true;for(var _98=0,_99=_97.length;_98<_99;_98++){var _9C=$k[--$j];$k[$j++]=_9C&&Math.ceil($_.cc)<=Math.ceil($g(_97,_98))}if($k[--$j]){$k[$j++]=$_.C;break}var _9G=$a([$_.xc]);$k[$j++]=true;for(var _9H=0,_9I=_9G.length;_9H<_9I;_9H++){var _9L=$k[--$j];$k[$j++]=_9L&&Math.ceil($_.tc)<=Math.ceil($g(_9G,_9H))}if($k[--$j]){$k[$j++]=$_.T;break}$k[$j++]=$_.X;break}$_.char=$g($_.msg,$_.i+$_.k);$k[$j++]="ac";$k[$j++]=$_.ac;$_.isD();if($k[--$j]){var _9V=$k[--$j];$k[$j++]=$f(_9V+1/2)}else{$_.isEA();if($k[--$j]){var _9X=$k[--$j];$k[$j++]=Math.ceil(_9X)+2}else{var _9Y=$k[--$j];$k[$j++]=Math.ceil(_9Y)+1}}var _9Z=$k[--$j];$_[$k[--$j]]=_9Z;$k[$j++]="cc";$k[$j++]=$_.cc;$_.isC();if($k[--$j]){var _9d=$k[--$j];$k[$j++]=$f(_9d+.6666667)}else{$_.isEA();if($k[--$j]){var _9f=$k[--$j];$k[$j++]=$f(_9f+2.6666667)}else{var _9g=$k[--$j];$k[$j++]=$f(_9g+1.3333334)}}var _9h=$k[--$j];$_[$k[--$j]]=_9h;$k[$j++]="tc";$k[$j++]=$_.tc;$_.isT();if($k[--$j]){var _9l=$k[--$j];$k[$j++]=$f(_9l+.6666667)}else{$_.isEA();if($k[--$j]){var _9n=$k[--$j];$k[$j++]=$f(_9n+2.6666667)}else{var _9o=$k[--$j];$k[$j++]=$f(_9o+1.3333334)}}var _9p=$k[--$j];$_[$k[--$j]]=_9p;$k[$j++]="xc";$k[$j++]=$_.xc;$_.isX();if($k[--$j]){var _9t=$k[--$j];$k[$j++]=$f(_9t+.6666667)}else{$_.isEA();if($k[--$j]){var _9v=$k[--$j];$k[$j++]=$f(_9v+4.3333334)}else{var _9w=$k[--$j];$k[$j++]=$f(_9w+3.3333334)}}var _9x=$k[--$j];$_[$k[--$j]]=_9x;$k[$j++]="bc";$k[$j++]=$_.bc;$_.isFN();if($k[--$j]){var _A1=$k[--$j];$k[$j++]=$f(_A1+3)}else{var _A2=$k[--$j];$k[$j++]=$f(_A2+1)}var _A3=$k[--$j];$_[$k[--$j]]=_A3;if($_.k>=3){var _AA=$a([$_.ac,$_.cc,$_.tc,$_.xc]);$k[$j++]=true;for(var _AB=0,_AC=_AA.length;_AB<_AC;_AB++){var _AF=$k[--$j];$k[$j++]=_AF&&$_.bc+1<=Math.ceil($g(_AA,_AB))}if($k[--$j]){$k[$j++]=$_.B;break}var _AM=$a([$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _AN=0,_AO=_AM.length;_AN<_AO;_AN++){var _AR=$k[--$j];$k[$j++]=_AR&&$_.ac+1<=Math.ceil($g(_AM,_AN))}if($k[--$j]){$k[$j++]=$_.A;break}var _AY=$a([$_.ac,$_.cc,$_.xc,$_.bc]);$k[$j++]=true;for(var _AZ=0,_Aa=_AY.length;_AZ<_Aa;_AZ++){var _Ad=$k[--$j];$k[$j++]=_Ad&&Math.ceil($_.tc)+1<=Math.ceil($g(_AY,_AZ))}if($k[--$j]){$k[$j++]=$_.T;break}var _Ai=$a([$_.ac,$_.tc]);$k[$j++]=true;for(var _Aj=0,_Ak=_Ai.length;_Aj<_Ak;_Aj++){var _An=$k[--$j];$k[$j++]=_An&&Math.ceil($_.cc)+1<=Math.ceil($g(_Ai,_Aj))}if($k[--$j]){if(Math.ceil($_.cc)1480){$j--;$k[$j++]="bwipp.codeoneTooLong#23128";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}var _BE=$k[--$j];$P($_.cws,$_.j,_BE);$_.j=_BE.length+$_.j};$_.tobin=function(){var _BJ=$s($k[--$j]);$k[$j++]=_BJ;for(var _BL=0,_BK=_BJ.length-1;_BL<=_BK;_BL+=1){var _BM=$k[--$j];$p(_BM,_BL,48);$k[$j++]=_BM}var _BN=$k[--$j];var _BQ=$R($s(_BN.length),$k[--$j],2);$P(_BN,_BN.length-_BQ.length,_BQ);$k[$j++]=_BN;$k[$j++]=Infinity;var _BR=$k[--$j];var _BS=$k[--$j];$k[$j++]=_BR;$F(_BS,function(){var _BT=$k[--$j];$k[$j++]=$f(_BT-48)});var _BU=$a();$k[$j++]=_BU};$_.encA=function(){for(var _BV=0,_BW=1;_BV<_BW;_BV++){if($g($_.numD,$_.i)>=21){$_.Dbits=$a([1,1,1,1]);$_.mode=$_.D;break}var _Be=$g($_.numD,$_.i);if(_Be>=13&&$f(_Be+$_.i)==$_.msglen){$_.Dbits=$a([1,1,1,1]);$_.mode=$_.D;break}if($g($_.numD,$_.i)>=2){var _Bm=$s(2);$p(_Bm,0,$g($_.msg,$_.i));$p(_Bm,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Bm);$_.addtocws();$_.i=$_.i+2;break}if($g($_.msg,$_.i)==$_.fnc1){if($g($_.numD,$_.i+1)>=15){$k[$j++]=$g($_.Avals,$_.fnc1lD);$_.addtocws();$_.i=$_.i+1;$_.Dbits=$a([]);$_.mode=$_.D;break}var _CB=$g($_.numD,$_.i+1);if(_CB>=7&&$f($f(_CB+$_.i)+1)==$_.msglen){$k[$j++]=$g($_.Avals,$_.fnc1lD);$_.addtocws();$_.i=$_.i+1;$_.Dbits=$a([]);$_.mode=$_.D;break}}$k[$j++]="newmode";$_.lookup();var _CK=$k[--$j];$_[$k[--$j]]=_CK;if($_.newmode!=$_.mode){$k[$j++]=$g($_.Avals,$g($a([-1,$_.lC,$_.lT,$_.lX,$_.lD,$_.lB]),$_.newmode));$_.addtocws();$_.mode=$_.newmode;break}$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1;break}};$_.CTXvalstocws=function(){$_.in=$k[--$j];$k[$j++]=Infinity;for(var _Ci=0,_Ch=$_.in.length-1;_Ci<=_Ch;_Ci+=3){var _Ck=$G($_.in,_Ci,3);$k[$j++]=0;for(var _Cl=0,_Cm=_Ck.length;_Cl<_Cm;_Cl++){var _Co=$k[--$j];$k[$j++]=$f(_Co+$g(_Ck,_Cl))*40}var _Cq=~~($k[--$j]/40)+1;$k[$j++]=~~(_Cq/256);$k[$j++]=_Cq%256}$as($a($m()));var _Ct=$k[--$j];var _Cu=$k[--$j];$k[$j++]=_Ct;$k[$j++]=_Cu;$j--};$_.encCTX=function(){$_.p=0;$_.ctxvals=$a(2220);for(;;){if($_.i==$_.msglen){break}if($_.p%3==0){if($g($_.numD,$_.i)>=12){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;break}var _DA=$g($_.numD,$_.i);if(_DA>=8&&$f(_DA+$_.i)==$_.msglen){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;break}if($_.mode==$_.X){var _DP=$g($_.Xvals,$g($_.msg,$_.i))!==undefined;if(!_DP){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();if($g($_.numremcws,$_.j)!=1||$g($_.msg,$_.i)>127){$k[$j++]=$a([$_.unlcw]);$_.addtocws()}$_.mode=$_.A;break}if($_.i+1<$_.msglen){var _Di=$g($_.Xvals,$g($_.msg,$_.i+1))!==undefined;if(!_Di){break}if($_.i+2<$_.msglen){var _Dp=$g($_.Xvals,$g($_.msg,$_.i+2))!==undefined;if(!_Dp){break}}}}else{$_.lookup();if($k[--$j]!=$_.mode){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;break}}if($_.msglen-$_.i<=3){$_.remcws=$g($_.numremcws,$_.j+~~($_.p/3)*2);$k[$j++]=Infinity;var _E8=$G($_.msg,$_.i,$_.msglen-$_.i);for(var _E9=0,_EA=_E8.length;_E9<_EA;_E9++){var _EB=$g(_E8,_E9);var _EF=$g($g($_.encvals,$_.mode),_EB)!==undefined;$k[$j++]=_EB;if(_EF){$q($g($g($_.encvals,$_.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$_.remvals=$a();if($_.remcws==2&&$_.remvals.length==3){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);var _ES=$a();$k[$j++]=_ES;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}if($_.remcws==2&&$_.remvals.length==2&&$_.mode!=$_.X){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);$q($g($g($_.encvals,$_.mode),$_.sft1));var _Ei=$a();$k[$j++]=_Ei;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}if($_.remcws==2&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}if($_.remcws==1&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}}}var _FH=$g($g($_.encvals,$_.mode),$g($_.msg,$_.i));$P($_.ctxvals,$_.p,_FH);$_.p=_FH.length+$_.p;$_.i=$_.i+1}if($_.mode!=$_.A){for(;;){if($_.p%3==0){break}$_.i=$_.i-1;$_.p=$_.p-$g($g($_.encvals,$_.mode),$g($_.msg,$_.i)).length}$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));var _Fb=$a();$k[$j++]=_Fb;$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;if($_.i!=$_.msglen){if($g($_.numD,$_.i)>=2){var _Fk=$s(2);$p(_Fk,0,$g($_.msg,$_.i));$p(_Fk,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Fk);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1}}}};$_.encD=function(){for(;;){if($g($_.numD,$_.i)<3){$_.Drem=(8-$_.Dbits.length%8)%8;$_.remcws=$g($_.numremcws,$_.j+~~($_.Dbits.length/8));if(($f($g($_.numremcws,$_.j+~~($_.Dbits.length/8)-1)-1)==0&&$_.Drem==0||$_.remcws==1&&$_.Drem!=0)&&$_.i==$_.msglen){if($_.Drem==4||$_.Drem==6){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.Dbits=$a()}if($_.Drem==2||$_.Drem==6){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=0;$k[$j++]=1;$_.Dbits=$a()}break}if(($_.i==$_.msglen-1&&$g($_.numD,$_.i)==1||$_.i==$_.msglen-2&&$g($_.numD,$_.i)==2)&&$_.remcws==1&&$_.Drem==0){break}if(!($_.i==$_.msglen-1&&$g($_.numD,$_.i)==1&&$_.remcws==1&&($_.Drem==4||$_.Drem==6))){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.Dbits=$a();$_.Drem=(8-$_.Dbits.length%8)%8}if($_.Drem==4||$_.Drem==6){if($g($_.numD,$_.i)>=1){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=$f($f($g($_.msg,$_.i)-48)+1);$k[$j++]=4;$_.tobin();$q($k[--$j]);$_.Dbits=$a();$_.i=$_.i+1}else{$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.Dbits=$a()}$_.Drem=$_.Drem-4}if($_.Drem==2){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=0;$k[$j++]=1;$_.Dbits=$a();$_.Drem=0}break}$k[$j++]=Infinity;$q($_.Dbits);var _H7=$G($_.msg,$_.i,3);$k[$j++]=0;for(var _H8=0,_H9=_H7.length;_H8<_H9;_H8++){var _HB=$k[--$j];$k[$j++]=$f(_HB+$f($g(_H7,_H8)-48))*10}var _HC=$k[--$j];$k[$j++]=~~(_HC/10)+1;$k[$j++]=10;$_.tobin();$q($k[--$j]);$_.Dbits=$a();$_.i=$_.i+3}$k[$j++]=Infinity;for(var _HI=0,_HH=$_.Dbits.length-1;_HI<=_HH;_HI+=8){var _HK=$G($_.Dbits,_HI,8);$k[$j++]=0;for(var _HL=0,_HM=_HK.length;_HL<_HM;_HL++){var _HO=$k[--$j];$k[$j++]=$f(_HO+$g(_HK,_HL))*2}var _HP=$k[--$j];$k[$j++]=~~(_HP/2)}$as($a($m()));var _HS=$k[--$j];var _HT=$k[--$j];$k[$j++]=_HS;$k[$j++]=_HT;$j--;$_.addtocws();$_.mode=$_.A};$_.encB=function(){$_.p=0;$_.bvals=$a(1480);for(;;){if($_.i==$_.msglen){break}if($g($_.msg,$_.i)<0){break}$_.lookup();if($k[--$j]!=$_.mode){break}$p($_.bvals,$_.p,$g($_.msg,$_.i));$_.p=$_.p+1;$_.i=$_.i+1}$_.remcws=$f($g($_.numremcws,$_.j+$_.p)-1);$k[$j++]=Infinity;if($_.remcws==0&&$_.i==$_.msglen){$k[$j++]=0}else{if($_.p<250){$k[$j++]=$_.p}else{$k[$j++]=~~($_.p/250)+249;$k[$j++]=$_.p%250}}$q($G($_.bvals,0,$_.p));$_.bvals=$a();$k[$j++]=$_.bvals;$_.addtocws();$_.mode=$_.A};$_.cws=$a(1480);$_.mode=$_.A;$_.i=0;$_.j=0;for(;;){if($_.i>=$_.msglen){break}if($_[$g($a(["encA","encCTX","encCTX","encCTX","encD","encB"]),$_.mode)]()===true){break}}$_.cws=$G($_.cws,0,$_.j)}var _IC=$_.metrics;for(var _ID=0,_IE=_IC.length;_ID<_IE;_ID++){$_.m=$g(_IC,_ID);$_.vers=$g($_.m,0);$_.rows=$g($_.m,1);$_.cols=$g($_.m,2);$_.dcol=$g($_.m,3);$_.dcws=$g($_.m,4);$_.rscw=$g($_.m,5);$_.rsbl=$g($_.m,6);$_.riso=$g($_.m,7);$_.risi=$g($_.m,8);$_.risl=$g($_.m,9);$_.dcpb=~~($_.dcws/$_.rsbl);$_.ecpb=~~($_.rscw/$_.rsbl);$_.okay=true;if($ne($_.version,"unset")&&$ne($_.version,$_.vers)){$_.okay=false}if($_.cws.length>$_.dcws){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.codeoneNoValidSymbol#23444";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}if(!$_.stype){$k[$j++]=Infinity;$q($_.cws);for(var _Ip=0,_Iq=$f($_.dcws-$_.cws.length);_Ip<_Iq;_Ip++){$k[$j++]=129}$_.cws=$a()}else{$k[$j++]=Infinity;for(var _Iu=0,_Iv=$f($_.dcws-$_.cws.length);_Iu<_Iv;_Iu++){$k[$j++]=0}$q($_.cws);$_.cws=$a()}var _Iz=$g($_.options,"debugcws")!==undefined;if(_Iz){$k[$j++]="bwipp.debugcws#23454";$k[$j++]=$_.cws;bwipp_raiseerror()}$_.cwbs=$a($_.rsbl);$_.ecbs=$a($_.rsbl);for(var _J7=0,_J6=$f($_.rsbl-1);_J7<=_J6;_J7+=1){$_.i=_J7;$_.cwb=$a($_.dcpb);for(var _JC=0,_JB=$_.dcpb-1;_JC<=_JB;_JC+=1){$_.j=_JC;$p($_.cwb,$_.j,$g($_.cws,$f($_.j*$_.rsbl+$_.i)))}$p($_.cwbs,$_.i,$_.cwb)}var _JO=$_.stype?32:256;$_.gf=_JO;$_["gf-1"]=$_.gf-1;var _JR=$_.stype?37:301;$_.pm=_JR;$k[$j++]=Infinity;$k[$j++]=1;for(var _JT=0,_JU=$_["gf-1"];_JT<_JU;_JT++){var _JV=$k[--$j];var _JW=_JV*2;$k[$j++]=_JV;$k[$j++]=_JW;if(_JW>=$_.gf){var _JZ=$k[--$j];$k[$j++]=_JZ^$_.pm}}$_.rsalog=$a();$_.rslog=$a($_.gf);for(var _Jf=1,_Je=$_["gf-1"];_Jf<=_Je;_Jf+=1){$p($_.rslog,$g($_.rsalog,_Jf),_Jf)}$_.rsprod=function(){var _Jj=$k[--$j];var _Jk=$k[--$j];$k[$j++]=_Jk;$k[$j++]=_Jj;if(_Jj!=0&&_Jk!=0){var _Jn=$g($_.rslog,$k[--$j]);var _Jt=$g($_.rsalog,$f(_Jn+$g($_.rslog,$k[--$j]))%$_["gf-1"]);$k[$j++]=_Jt}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Jv=0,_Jw=$_.ecpb;_Jv<_Jw;_Jv++){$k[$j++]=0}$_.coeffs=$a();for(var _K0=0,_Jz=$_.ecpb-1;_K0<=_Jz;_K0+=1){$_.i=_K0;$p($_.coeffs,$_.i+1,$g($_.coeffs,$_.i));for(var _K7=$_.i;_K7>=1;_K7-=1){$_.j=_K7;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _KJ=$k[--$j];var _KK=$k[--$j];var _KL=$k[--$j];$p($k[--$j],_KL,$xo(_KK,_KJ))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _KT=$k[--$j];var _KU=$k[--$j];$p($k[--$j],_KU,_KT)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Kb=0,_Ka=$_.cwbs.length-1;_Kb<=_Ka;_Kb+=1){$_.i=_Kb;$k[$j++]=Infinity;$q($g($_.cwbs,$_.i));for(var _Kg=0,_Kh=$_.ecpb;_Kg<_Kh;_Kg++){$k[$j++]=0}$_.rscws=$a();for(var _Kl=0,_Kk=$_.dcpb-1;_Kl<=_Kk;_Kl+=1){$_.m=_Kl;$_.k=$g($_.rscws,$_.m);for(var _Kr=0,_Kq=$_.ecpb-1;_Kr<=_Kq;_Kr+=1){$_.j=_Kr;$k[$j++]=$_.rscws;$k[$j++]=$_.m+$_.j+1;$k[$j++]=$g($_.coeffs,$_.ecpb-$_.j-1);$k[$j++]=$_.k;$_.rsprod();var _L4=$k[--$j];var _L5=$k[--$j];$p($k[--$j],_L5,$xo(_L4,$g($_.rscws,$_.m+$_.j+1)))}}$p($_.ecbs,$_.i,$G($_.rscws,$_.dcpb,$_.ecpb))}$k[$j++]=Infinity;$q($_.cws);for(var _LF=0,_LG=$_.rscw;_LF<_LG;_LF++){$k[$j++]=0}$_.cws=$a();for(var _LK=0,_LJ=$f($_.rscw-1);_LK<=_LJ;_LK+=1){$_.i=_LK;$p($_.cws,$f($_.dcws+$_.i),$g($g($_.ecbs,$_.i%$_.rsbl),~~($_.i/$_.rsbl)))}var _LY=$_.stype?5:8;$_.mmat=$a($f($_.dcws+$_.rscw)*_LY);$_.r=0;$_.c=0;var _Lb=$_.stype?2:1;for(var _Le=0,_Lf=_Lb,_Ld=$_.cws.length-1;_Lf<0?_Le>=_Ld:_Le<=_Ld;_Le+=_Lf){$_.i=_Le;if(!$_.stype){var _Li=$Z($s(8),"00000000");var _Ln=$R($s(8),$g($_.cws,$_.i),2);$P(_Li,8-_Ln.length,_Ln);$k[$j++]=_Li;$k[$j++]=Infinity;var _Lo=$k[--$j];var _Lp=$k[--$j];$k[$j++]=_Lo;$F(_Lp,function(){var _Lq=$k[--$j];$k[$j++]=$f(_Lq-48)});var _Lr=$a();$_.top=$G(_Lr,0,4);$_.bot=$G(_Lr,4,4)}else{var _Lv=$Z($s(5),"00000");var _M0=$R($s(5),$g($_.cws,$_.i),2);$P(_Lv,5-_M0.length,_M0);$k[$j++]=_Lv;$k[$j++]=Infinity;var _M1=$k[--$j];var _M2=$k[--$j];$k[$j++]=_M1;$F(_M2,function(){var _M3=$k[--$j];$k[$j++]=$f(_M3-48)});$_.c1=$a();var _M6=$Z($s(5),"00000");var _MB=$R($s(5),$g($_.cws,$_.i+1),2);$P(_M6,5-_MB.length,_MB);$k[$j++]=_M6;$k[$j++]=Infinity;var _MC=$k[--$j];var _MD=$k[--$j];$k[$j++]=_MC;$F(_MD,function(){var _ME=$k[--$j];$k[$j++]=$f(_ME-48)});$_.c2=$a();$k[$j++]=Infinity;$q($G($_.c1,0,3));$q($G($_.c2,0,2));$_.top=$a();$k[$j++]=Infinity;$q($G($_.c1,3,2));$q($G($_.c2,2,3));$_.bot=$a()}$P($_.mmat,$f($_.r*$_.dcol+$_.c),$_.top);$P($_.mmat,$f(($_.r+1)*$_.dcol+$_.c),$_.bot);$_.c=$_.c+$_.top.length;if($_.c==$_.dcol){$_.c=0;$_.r=$_.r+2}}$_.mmv=function(){var _Mg=$k[--$j];var _Mh=$k[--$j];$k[$j++]=$f(_Mh+_Mg*$_.cols)};$k[$j++]=Infinity;for(var _Mk=0,_Ml=$_.rows*$_.cols;_Mk<_Ml;_Mk++){$k[$j++]=-1}$_.pixs=$a();var _NH=$a([function(){for(var _Mo=0,_Mp=$_.cols;_Mo<_Mp;_Mo++){$k[$j++]=0}},function(){for(var _Mr=0,_Ms=$_.cols;_Mr<_Ms;_Mr++){$k[$j++]=1}},function(){$k[$j++]=0;for(var _Mu=0,_Mv=$f($_.cols-2);_Mu<_Mv;_Mu++){$k[$j++]=1}$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=1;for(var _Mx=0,_My=$f($_.cols-4);_Mx<_My;_Mx++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0},function(){for(var _N0=0,_N1=~~($f($_.cols-1)/2);_N0<_N1;_N0++){$k[$j++]=-1}$k[$j++]=1;for(var _N3=0,_N4=~~($f($_.cols-1)/2);_N3<_N4;_N3++){$k[$j++]=-1}},function(){for(var _N6=0,_N7=~~($f($_.cols-1)/2);_N6<_N7;_N6++){$k[$j++]=-1}$k[$j++]=0;for(var _N9=0,_NA=~~($f($_.cols-1)/2);_N9<_NA;_N9++){$k[$j++]=-1}},function(){$k[$j++]=1;for(var _NC=0,_ND=$f($_.cols-2);_NC<_ND;_NC++){$k[$j++]=0}$k[$j++]=1},function(){$k[$j++]=1;$k[$j++]=0;for(var _NF=0,_NG=$f($_.cols-4);_NF<_NG;_NF++){$k[$j++]=1}$k[$j++]=0;$k[$j++]=1}]);$_.artifact=_NH;if(!bwipp_codeone.__23573__){$_=Object.create($_);var _NI=new Map([["A","121343"],["B","12134343"],["C","12121343"],["D","1213434343"],["E","1212134343"],["F","1212121343"],["G","121213434343"],["H","121212134343"],["S","56661278"],["T","5666666666127878"]]);$_.cpatmap=_NI;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codeone.$ctx[id]=$_[id]);bwipp_codeone.__23573__=1;$_=Object.getPrototypeOf($_)}$_.cpat=$g($_.cpatmap,$G($_.vers,0,1));$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=~~($f($_.rows-$_.cpat.length)/2);$_.mmv();$k[$j++]=Infinity;$F($_.cpat,function(){if($g($_.artifact,$f($k[--$j]-49))()===true){return true}});var _NV=$a();var _NW=$k[--$j];$P($k[--$j],_NW,_NV);for(var _Na=0,_NZ=$f($_.risl-1);_Na<=_NZ;_Na+=1){$_.i=_Na;for(var _Nf=$_.riso,_Ng=$_.risi,_Ne=$f($_.cols-1);_Ng<0?_Nf>=_Ne:_Nf<=_Ne;_Nf+=_Ng){$_.j=_Nf;var _Ni=$_.i%12==0?1:0;var _Nj=$a([1,_Ni]);$k[$j++]=_Nj;$k[$j++]=_Nj;$k[$j++]=$_.pixs;$k[$j++]=$_.j;$k[$j++]=$_.i;$_.mmv();var _Nn=$k[--$j];var _No=$k[--$j];$P(_No,_Nn,$k[--$j]);if($_.i!=$f($_.risl-1)){$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.cols-$_.j)-2);$k[$j++]=$f($f($_.rows-$_.i)-1);$_.mmv();var _Nx=$k[--$j];var _Ny=$k[--$j];$P(_Ny,_Nx,$k[--$j])}else{$j--}}}if(!bwipp_codeone.__23611__){$_=Object.create($_);var _Od=new Map([["A",$a([$a([12,5])])],["B",$a([$a([16,7])])],["C",$a([$a([26,12])])],["D",$a([])],["E",$a([$a([26,23])])],["F",$a([$a([26,32]),$a([70,32]),$a([26,34]),$a([70,34])])],["G",$a([$a([27,48]),$a([69,48])])],["H",$a([$a([26,70]),$a([66,70]),$a([106,70]),$a([26,72]),$a([66,72]),$a([106,72])])],["S-10",$a([])],["S-20",$a([$a([10,4])])],["S-30",$a([$a([15,4]),$a([15,6])])],["T-16",$a([$a([8,10])])],["T-32",$a([$a([16,10]),$a([16,12])])],["T-48",$a([$a([24,10]),$a([24,12]),$a([24,14])])]]);$_.blackdotmap=_Od;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codeone.$ctx[id]=$_[id]);bwipp_codeone.__23611__=1;$_=Object.getPrototypeOf($_)}$F($g($_.blackdotmap,$_.vers),function(){var _Oj=$k[--$j];$k[$j++]=$_.pixs;$q(_Oj);$_.mmv();var _Ok=$k[--$j];$p($k[--$j],_Ok,1)});$_.j=0;for(var _Oo=0,_On=$_.pixs.length-1;_Oo<=_On;_Oo+=1){$_.i=_Oo;if($g($_.pixs,$_.i)==-1){$p($_.pixs,$_.i,$g($_.mmat,$_.j));$_.j=$_.j+1}}var _P4=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.cols],["pixy",$_.rows],["height",$_.rows/72*2],["width",$_.cols/72*2],["opt",$_.options]]);$k[$j++]=_P4;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hanxin(){$_=Object.create($_);$_.dontdraw=false;$_.version="unset";$_.eclevel="L2";$_.parse=false;$_.parsefnc=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hanxinEmptyData#23684";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($ne($_.version,"unset")){var _5=$_.version.length;var _6=_5>=1&&_5<=2;$k[$j++]=_6;if(_6){$j--;var _7=$_.version;$k[$j++]=true;for(var _8=0,_9=_7.length;_8<_9;_8++){var _A=$g(_7,_8);if(_A<48||_A>57){$j--;$k[$j++]=false}}var _B=$k[--$j];$k[$j++]=_B;if(_B){$j--;var _D=$i($_.version);$k[$j++]=_D>=1&&_D<=84}}if($nt($k[--$j])){$k[$j++]="bwipp.hanxinInvalidVersion#23695";$k[$j++]="Valid versions are 1 to 84";bwipp_raiseerror()}}var _G=$_.eclevel.length==2;$k[$j++]=_G;if(_G){$j--;$k[$j++]=$G($_.eclevel,0,1);if($eq("L","L")){$j--;var _L=$g($_.eclevel,1)-48;$k[$j++]=_L>=1&&_L<=4}}if($nt($k[--$j])){$k[$j++]="bwipp.hanxinInvalidErrorCorrectionLevel#23705";$k[$j++]="Valid error correction levels are L1 to L4";bwipp_raiseerror()}if($_.mask!=-1){if($_.mask<1||$_.mask>4){$k[$j++]="bwipp.hanxinInvalidErrorCorrectionLevel#23710";$k[$j++]="The valid masks are 1 to 4";bwipp_raiseerror()}}bwipp_loadctx(bwipp_hanxin);var _S=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc]]);$_.fncvals=_S;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _V=$k[--$j];$_[$k[--$j]]=_V;$_.msglen=$_.msg.length;$_.tobin=function(){var _Z=$s($k[--$j]);$k[$j++]=_Z;for(var _b=0,_a=_Z.length-1;_b<=_a;_b+=1){var _c=$k[--$j];$p(_c,_b,48);$k[$j++]=_c}var _d=$k[--$j];var _g=$R($s(_d.length),$k[--$j],2);$P(_d,_d.length-_g.length,_g);$k[$j++]=_d};$_.bits=$s(4+13+$_.msglen*8);$P($_.bits,0,"0011");$k[$j++]=$_.bits;$k[$j++]=4;$k[$j++]=$_.msglen;$k[$j++]=13;$_.tobin();var _m=$k[--$j];var _n=$k[--$j];$P($k[--$j],_n,_m);for(var _r=0,_q=$_.msglen-1;_r<=_q;_r+=1){$_.i=_r;$k[$j++]=$_.bits;$k[$j++]=17+$_.i*8;$k[$j++]=$g($_.msg,$_.i);$k[$j++]=8;$_.tobin();var _x=$k[--$j];var _y=$k[--$j];$P($k[--$j],_y,_x)}if(!bwipp_hanxin.__24081__){$_=Object.create($_);var _24=$a([0,-1,-1]);$_.metrics=$a([$a(["1",23,-1,0,205,$a([1,21,4]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,17,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,13,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,9,16]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["2",25,-1,0,301,$a([1,31,6]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,25,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,19,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,15,22]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["3",27,-1,0,405,$a([1,42,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,34,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["4",29,14,1,439,$a([1,46,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,38,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,30,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,22,32]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["5",31,16,1,555,$a([1,57,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,49,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,37,32]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,14,20]),$a([1,13,22]),$a([0,-1,-1])]),$a(["6",33,16,1,675,$a([1,70,14]),_24,$a([0,-1,-1]),$a([1,58,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,24,20]),$a([1,22,18]),$a([0,-1,-1]),$a([1,16,24]),$a([1,18,26]),$a([0,-1,-1])]),$a(["7",35,17,1,805,$a([1,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,22]),$a([1,28,24]),$a([0,-1,-1]),$a([2,14,20]),$a([1,12,20]),$a([0,-1,-1])]),$a(["8",37,18,1,943,$a([1,99,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,40,18]),$a([1,41,18]),$a([0,-1,-1]),$a([1,31,26]),$a([1,32,28]),$a([0,-1,-1]),$a([2,16,24]),$a([1,15,22]),$a([0,-1,-1])]),$a(["9",39,19,1,1089,$a([1,114,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,48,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,24,20]),$a([1,26,22]),$a([0,-1,-1]),$a([2,18,28]),$a([1,18,26]),$a([0,-1,-1])]),$a(["10",41,20,1,1243,$a([1,131,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,52,22]),$a([1,57,24]),$a([0,-1,-1]),$a([2,27,24]),$a([1,29,24]),$a([0,-1,-1]),$a([2,21,32]),$a([1,19,30]),$a([0,-1,-1])]),$a(["11",43,14,2,1289,$a([1,135,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,56,24]),$a([1,57,24]),$a([0,-1,-1]),$a([2,28,24]),$a([1,31,26]),$a([0,-1,-1]),$a([2,22,32]),$a([1,21,32]),$a([0,-1,-1])]),$a(["12",45,15,2,1455,$a([1,153,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,62,26]),$a([1,65,28]),$a([0,-1,-1]),$a([2,32,28]),$a([1,33,28]),$a([0,-1,-1]),$a([3,17,26]),$a([1,22,30]),$a([0,-1,-1])]),$a(["13",47,16,2,1629,$a([1,86,16]),$a([1,85,16]),$a([0,-1,-1]),$a([1,71,30]),$a([1,72,30]),$a([0,-1,-1]),$a([2,37,32]),$a([1,35,30]),$a([0,-1,-1]),$a([3,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["14",49,16,2,1805,$a([1,94,18]),$a([1,95,18]),$a([0,-1,-1]),$a([2,51,22]),$a([1,55,24]),$a([0,-1,-1]),$a([3,30,26]),$a([1,31,26]),$a([0,-1,-1]),$a([4,18,28]),$a([1,17,24]),$a([0,-1,-1])]),$a(["15",51,17,2,1995,$a([1,104,20]),$a([1,105,20]),$a([0,-1,-1]),$a([2,57,24]),$a([1,61,26]),$a([0,-1,-1]),$a([3,33,28]),$a([1,36,30]),$a([0,-1,-1]),$a([4,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["16",53,17,2,2187,$a([1,115,22]),$a([1,114,22]),$a([0,-1,-1]),$a([2,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([3,38,32]),$a([1,33,30]),$a([0,-1,-1]),$a([5,19,28]),$a([1,14,24]),$a([0,-1,-1])]),$a(["17",55,18,2,2393,$a([1,126,24]),$a([1,125,24]),$a([0,-1,-1]),$a([2,70,30]),$a([1,69,30]),$a([0,-1,-1]),$a([4,33,28]),$a([1,29,26]),$a([0,-1,-1]),$a([5,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["18",57,19,2,2607,$a([1,136,26]),$a([1,137,26]),$a([0,-1,-1]),$a([3,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([5,35,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,18,28]),$a([1,21,28]),$a([0,-1,-1])]),$a(["19",59,20,2,2829,$a([1,148,28]),$a([1,149,28]),$a([0,-1,-1]),$a([3,61,26]),$a([1,64,28]),$a([0,-1,-1]),$a([7,24,20]),$a([1,23,22]),$a([0,-1,-1]),$a([6,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["20",61,20,2,3053,$a([3,107,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([3,65,28]),$a([1,72,30]),$a([0,-1,-1]),$a([7,26,22]),$a([1,23,22]),$a([0,-1,-1]),$a([7,19,28]),$a([1,20,32]),$a([0,-1,-1])]),$a(["21",63,21,2,3291,$a([3,115,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([4,56,24]),$a([1,63,28]),$a([0,-1,-1]),$a([7,28,24]),$a([1,25,22]),$a([0,-1,-1]),$a([8,18,28]),$a([1,21,22]),$a([0,-1,-1])]),$a(["22",65,16,3,3383,$a([2,116,22]),$a([1,122,24]),$a([0,-1,-1]),$a([4,56,24]),$a([1,72,30]),$a([0,-1,-1]),$a([7,28,24]),$a([1,32,26]),$a([0,-1,-1]),$a([8,18,28]),$a([1,24,30]),$a([0,-1,-1])]),$a(["23",67,17,3,3631,$a([3,127,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([5,51,22]),$a([1,62,26]),$a([0,-1,-1]),$a([7,30,26]),$a([1,35,26]),$a([0,-1,-1]),$a([8,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["24",69,17,3,3887,$a([2,135,26]),$a([1,137,26]),$a([0,-1,-1]),$a([5,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([7,33,28]),$a([1,30,28]),$a([0,-1,-1]),$a([11,16,24]),$a([1,19,26]),$a([0,-1,-1])]),$a(["25",71,18,3,4151,$a([3,105,20]),$a([1,121,22]),$a([0,-1,-1]),$a([5,61,26]),$a([1,57,26]),$a([0,-1,-1]),$a([9,28,24]),$a([1,28,22]),$a([0,-1,-1]),$a([10,19,28]),$a([1,18,30]),$a([0,-1,-1])]),$a(["26",73,18,3,4423,$a([2,157,30]),$a([1,150,28]),$a([0,-1,-1]),$a([5,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([8,33,28]),$a([1,34,30]),$a([0,-1,-1]),$a([10,19,28]),$a([2,15,26]),$a([0,-1,-1])]),$a(["27",75,19,3,4703,$a([3,126,24]),$a([1,115,22]),$a([0,-1,-1]),$a([7,51,22]),$a([1,54,22]),$a([0,-1,-1]),$a([8,35,30]),$a([1,37,30]),$a([0,-1,-1]),$a([15,15,22]),$a([1,10,22]),$a([0,-1,-1])]),$a(["28",77,19,3,4991,$a([4,105,20]),$a([1,103,20]),$a([0,-1,-1]),$a([7,56,24]),$a([1,45,18]),$a([0,-1,-1]),$a([10,31,26]),$a([1,27,26]),$a([0,-1,-1]),$a([10,17,26]),$a([3,20,28]),$a([1,21,28])]),$a(["29",79,20,3,5287,$a([3,139,26]),$a([1,137,28]),$a([0,-1,-1]),$a([6,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([9,36,30]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["30",81,20,3,5591,$a([6,84,16]),$a([1,82,16]),$a([0,-1,-1]),$a([6,70,30]),$a([1,68,30]),$a([0,-1,-1]),$a([7,35,30]),$a([3,33,28]),$a([1,32,28]),$a([13,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["31",83,21,3,5903,$a([5,105,20]),$a([1,94,18]),$a([0,-1,-1]),$a([6,74,32]),$a([1,71,30]),$a([0,-1,-1]),$a([11,33,28]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["32",85,17,4,6033,$a([4,127,24]),$a([1,126,24]),$a([0,-1,-1]),$a([7,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([12,30,24]),$a([1,24,28]),$a([1,24,30]),$a([15,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["33",87,17,4,6353,$a([7,84,16]),$a([1,78,16]),$a([0,-1,-1]),$a([7,70,30]),$a([1,66,28]),$a([0,-1,-1]),$a([12,33,28]),$a([1,32,30]),$a([0,-1,-1]),$a([14,21,32]),$a([1,24,28]),$a([0,-1,-1])]),$a(["34",89,18,4,6689,$a([5,117,22]),$a([1,117,24]),$a([0,-1,-1]),$a([8,66,28]),$a([1,58,26]),$a([0,-1,-1]),$a([11,38,32]),$a([1,34,32]),$a([0,-1,-1]),$a([15,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["35",91,18,4,7025,$a([4,148,28]),$a([1,146,28]),$a([0,-1,-1]),$a([8,68,30]),$a([1,70,24]),$a([0,-1,-1]),$a([10,36,32]),$a([3,38,28]),$a([0,-1,-1]),$a([16,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["36",93,19,4,7377,$a([4,126,24]),$a([2,135,26]),$a([0,-1,-1]),$a([8,70,28]),$a([2,43,26]),$a([0,-1,-1]),$a([13,32,28]),$a([2,41,30]),$a([0,-1,-1]),$a([17,19,28]),$a([3,15,26]),$a([0,-1,-1])]),$a(["37",95,19,4,7729,$a([5,136,26]),$a([1,132,24]),$a([0,-1,-1]),$a([5,67,30]),$a([4,68,28]),$a([1,69,28]),$a([14,35,30]),$a([1,32,24]),$a([0,-1,-1]),$a([18,18,26]),$a([3,16,28]),$a([1,14,28])]),$a(["38",97,19,4,8089,$a([3,142,26]),$a([3,141,28]),$a([0,-1,-1]),$a([8,70,30]),$a([1,73,32]),$a([1,74,32]),$a([12,34,30]),$a([3,34,26]),$a([1,35,28]),$a([18,21,32]),$a([1,27,30]),$a([0,-1,-1])]),$a(["39",99,20,4,8465,$a([5,116,22]),$a([2,103,20]),$a([1,102,20]),$a([9,74,32]),$a([1,74,30]),$a([0,-1,-1]),$a([14,34,28]),$a([2,32,32]),$a([1,32,30]),$a([19,21,32]),$a([1,25,26]),$a([0,-1,-1])]),$a(["40",101,20,4,8841,$a([7,116,22]),$a([1,117,22]),$a([0,-1,-1]),$a([11,65,28]),$a([1,58,24]),$a([0,-1,-1]),$a([15,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([20,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["41",103,17,5,9009,$a([6,136,26]),$a([1,130,24]),$a([0,-1,-1]),$a([11,66,28]),$a([1,62,30]),$a([0,-1,-1]),$a([14,34,28]),$a([3,34,32]),$a([1,30,30]),$a([18,20,30]),$a([3,20,28]),$a([2,15,26])]),$a(["42",105,17,5,9401,$a([5,105,20]),$a([2,115,22]),$a([2,116,22]),$a([10,75,32]),$a([1,73,32]),$a([0,-1,-1]),$a([16,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([22,19,28]),$a([2,16,30]),$a([1,19,30])]),$a(["43",107,18,5,9799,$a([6,147,28]),$a([1,146,28]),$a([0,-1,-1]),$a([11,66,28]),$a([2,65,30]),$a([0,-1,-1]),$a([18,33,28]),$a([2,33,30]),$a([0,-1,-1]),$a([22,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["44",109,18,5,10207,$a([6,116,22]),$a([3,125,24]),$a([0,-1,-1]),$a([11,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([13,35,28]),$a([6,34,32]),$a([1,30,30]),$a([23,21,32]),$a([1,26,30]),$a([0,-1,-1])]),$a(["45",111,18,5,10623,$a([7,105,20]),$a([4,95,18]),$a([0,-1,-1]),$a([12,67,28]),$a([1,63,30]),$a([1,62,32]),$a([21,31,26]),$a([2,33,32]),$a([0,-1,-1]),$a([23,21,32]),$a([2,24,30]),$a([0,-1,-1])]),$a(["46",113,19,5,11045,$a([10,116,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([12,74,32]),$a([1,78,30]),$a([0,-1,-1]),$a([18,37,32]),$a([1,39,30]),$a([1,41,28]),$a([25,21,32]),$a([1,27,28]),$a([0,-1,-1])]),$a(["47",115,19,5,11477,$a([5,126,24]),$a([4,115,22]),$a([1,114,22]),$a([12,67,28]),$a([2,66,32]),$a([1,68,30]),$a([21,35,30]),$a([1,39,30]),$a([0,-1,-1]),$a([26,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["48",117,19,5,11917,$a([9,126,24]),$a([1,117,22]),$a([0,-1,-1]),$a([13,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([20,35,30]),$a([3,35,28]),$a([0,-1,-1]),$a([27,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["49",119,17,6,12111,$a([9,126,24]),$a([1,137,26]),$a([0,-1,-1]),$a([13,71,30]),$a([2,68,32]),$a([0,-1,-1]),$a([20,37,32]),$a([1,39,28]),$a([1,38,28]),$a([24,20,32]),$a([5,25,28]),$a([0,-1,-1])]),$a(["50",121,17,6,12559,$a([8,147,28]),$a([1,141,28]),$a([0,-1,-1]),$a([10,73,32]),$a([4,74,30]),$a([1,73,30]),$a([16,36,32]),$a([6,39,30]),$a([1,37,30]),$a([27,21,32]),$a([3,20,26]),$a([0,-1,-1])]),$a(["51",123,18,6,13025,$a([9,137,26]),$a([1,135,26]),$a([0,-1,-1]),$a([12,70,30]),$a([4,75,32]),$a([0,-1,-1]),$a([24,35,30]),$a([1,40,28]),$a([0,-1,-1]),$a([23,20,32]),$a([8,24,30]),$a([0,-1,-1])]),$a(["52",125,18,6,13489,$a([14,95,18]),$a([1,86,18]),$a([0,-1,-1]),$a([13,73,32]),$a([3,77,30]),$a([0,-1,-1]),$a([24,35,30]),$a([2,35,28]),$a([0,-1,-1]),$a([26,21,32]),$a([5,21,30]),$a([1,23,30])]),$a(["53",127,18,6,13961,$a([9,147,28]),$a([1,142,28]),$a([0,-1,-1]),$a([10,73,30]),$a([6,70,32]),$a([1,71,32]),$a([25,35,30]),$a([2,34,26]),$a([0,-1,-1]),$a([29,21,32]),$a([4,22,30]),$a([0,-1,-1])]),$a(["54",129,18,6,14441,$a([11,126,24]),$a([1,131,24]),$a([0,-1,-1]),$a([16,74,32]),$a([1,79,30]),$a([0,-1,-1]),$a([25,38,32]),$a([1,25,30]),$a([0,-1,-1]),$a([33,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["55",131,19,6,14939,$a([14,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([24,37,32]),$a([2,40,30]),$a([1,41,30]),$a([31,21,32]),$a([4,24,32]),$a([0,-1,-1])]),$a(["56",133,19,6,15435,$a([10,147,28]),$a([1,151,28]),$a([0,-1,-1]),$a([15,71,30]),$a([3,71,32]),$a([1,73,32]),$a([24,37,32]),$a([3,38,30]),$a([1,39,30]),$a([36,19,30]),$a([3,29,26]),$a([0,-1,-1])]),$a(["57",135,19,6,15939,$a([15,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,70,30]),$a([1,64,28]),$a([0,-1,-1]),$a([27,38,32]),$a([2,25,26]),$a([0,-1,-1]),$a([38,20,30]),$a([2,18,28]),$a([0,-1,-1])]),$a(["58",137,17,7,16171,$a([14,105,20]),$a([1,113,22]),$a([1,114,22]),$a([17,67,30]),$a([3,92,32]),$a([0,-1,-1]),$a([30,35,30]),$a([1,41,30]),$a([0,-1,-1]),$a([36,21,32]),$a([1,26,30]),$a([1,27,30])]),$a(["59",139,17,7,16691,$a([11,146,28]),$a([1,146,26]),$a([0,-1,-1]),$a([20,70,30]),$a([1,60,26]),$a([0,-1,-1]),$a([29,38,32]),$a([1,24,32]),$a([0,-1,-1]),$a([40,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["60",141,18,7,17215,$a([3,137,26]),$a([1,136,26]),$a([10,126,24]),$a([22,65,28]),$a([1,75,30]),$a([0,-1,-1]),$a([30,37,32]),$a([1,51,30]),$a([0,-1,-1]),$a([42,20,30]),$a([1,21,30]),$a([0,-1,-1])]),$a(["61",143,18,7,17751,$a([12,126,24]),$a([2,118,22]),$a([1,116,22]),$a([19,74,32]),$a([1,74,30]),$a([1,72,28]),$a([30,38,32]),$a([2,29,30]),$a([0,-1,-1]),$a([39,20,32]),$a([2,37,26]),$a([1,38,26])]),$a(["62",145,18,7,18295,$a([12,126,24]),$a([3,136,26]),$a([0,-1,-1]),$a([21,70,30]),$a([2,65,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,44,32]),$a([0,-1,-1]),$a([42,20,30]),$a([2,19,28]),$a([2,18,28])]),$a(["63",147,18,7,18847,$a([12,126,24]),$a([3,117,22]),$a([1,116,22]),$a([25,61,26]),$a([2,62,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,40,32]),$a([1,41,32]),$a([45,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["64",149,19,7,19403,$a([15,105,20]),$a([2,115,22]),$a([2,116,22]),$a([25,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([18,35,30]),$a([17,37,32]),$a([1,50,32]),$a([42,20,30]),$a([6,19,28]),$a([1,15,28])]),$a(["65",151,19,7,19971,$a([19,105,20]),$a([1,101,20]),$a([0,-1,-1]),$a([33,51,22]),$a([1,65,22]),$a([0,-1,-1]),$a([40,33,28]),$a([1,28,28]),$a([0,-1,-1]),$a([49,20,30]),$a([1,18,28]),$a([0,-1,-1])]),$a(["66",153,17,8,20229,$a([18,105,20]),$a([2,117,22]),$a([0,-1,-1]),$a([26,65,28]),$a([1,80,30]),$a([0,-1,-1]),$a([35,35,30]),$a([3,35,28]),$a([1,36,28]),$a([52,18,28]),$a([2,38,30]),$a([0,-1,-1])]),$a(["67",155,17,8,20805,$a([26,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([26,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([45,31,26]),$a([1,9,26]),$a([0,-1,-1]),$a([52,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["68",157,17,8,21389,$a([16,126,24]),$a([1,114,22]),$a([1,115,22]),$a([23,70,30]),$a([3,65,28]),$a([1,66,28]),$a([40,35,30]),$a([1,43,30]),$a([0,-1,-1]),$a([46,20,30]),$a([7,19,28]),$a([1,16,28])]),$a(["69",159,18,8,21993,$a([19,116,22]),$a([1,105,22]),$a([0,-1,-1]),$a([20,70,30]),$a([7,66,28]),$a([1,63,28]),$a([40,35,30]),$a([1,42,32]),$a([1,43,32]),$a([54,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["70",161,18,8,22593,$a([17,126,24]),$a([2,115,22]),$a([0,-1,-1]),$a([24,70,30]),$a([4,74,32]),$a([0,-1,-1]),$a([48,31,26]),$a([2,18,26]),$a([0,-1,-1]),$a([54,19,28]),$a([6,15,26]),$a([1,14,26])]),$a(["71",163,18,8,23201,$a([29,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([29,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,34,30]),$a([3,36,30]),$a([38,33,28]),$a([58,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["72",165,18,8,23817,$a([16,147,28]),$a([1,149,28]),$a([0,-1,-1]),$a([31,66,28]),$a([1,37,26]),$a([0,-1,-1]),$a([48,33,28]),$a([1,23,26]),$a([0,-1,-1]),$a([53,20,30]),$a([6,19,28]),$a([1,17,28])]),$a(["73",167,19,8,24453,$a([20,115,22]),$a([2,134,24]),$a([0,-1,-1]),$a([29,66,28]),$a([2,56,26]),$a([2,57,26]),$a([45,36,30]),$a([2,15,28]),$a([0,-1,-1]),$a([59,20,30]),$a([2,21,32]),$a([0,-1,-1])]),$a(["74",169,19,8,25085,$a([17,147,28]),$a([1,134,26]),$a([0,-1,-1]),$a([26,70,30]),$a([5,75,32]),$a([0,-1,-1]),$a([47,35,30]),$a([1,48,32]),$a([0,-1,-1]),$a([64,18,28]),$a([2,33,30]),$a([1,35,30])]),$a(["75",171,17,9,25373,$a([22,115,22]),$a([1,133,24]),$a([0,-1,-1]),$a([33,65,28]),$a([1,74,28]),$a([0,-1,-1]),$a([43,36,30]),$a([5,27,28]),$a([1,30,28]),$a([57,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["76",173,17,9,26021,$a([18,136,26]),$a([2,142,26]),$a([0,-1,-1]),$a([33,66,28]),$a([2,49,26]),$a([0,-1,-1]),$a([48,35,30]),$a([2,38,28]),$a([0,-1,-1]),$a([64,20,30]),$a([1,20,32]),$a([0,-1,-1])]),$a(["77",175,17,9,26677,$a([19,126,24]),$a([2,135,26]),$a([1,136,26]),$a([32,66,28]),$a([2,55,26]),$a([2,56,26]),$a([49,36,30]),$a([2,18,32]),$a([0,-1,-1]),$a([65,18,28]),$a([5,27,30]),$a([1,29,30])]),$a(["78",177,18,9,27335,$a([20,137,26]),$a([1,130,26]),$a([0,-1,-1]),$a([30,75,32]),$a([2,71,32]),$a([0,-1,-1]),$a([46,35,30]),$a([6,39,32]),$a([0,-1,-1]),$a([3,12,30]),$a([70,19,28]),$a([0,-1,-1])]),$a(["79",179,18,9,28007,$a([20,147,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([35,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([49,35,30]),$a([5,35,28]),$a([0,-1,-1]),$a([70,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["80",181,18,9,28687,$a([21,136,26]),$a([1,155,28]),$a([0,-1,-1]),$a([34,70,30]),$a([1,64,28]),$a([1,65,28]),$a([54,35,30]),$a([1,45,30]),$a([0,-1,-1]),$a([68,20,30]),$a([3,18,28]),$a([1,19,28])]),$a(["81",183,18,9,29375,$a([19,126,24]),$a([5,115,22]),$a([1,114,22]),$a([33,70,30]),$a([3,65,28]),$a([1,64,28]),$a([52,35,30]),$a([3,41,32]),$a([1,40,32]),$a([67,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["82",185,18,9,30071,$a([2,150,28]),$a([21,136,26]),$a([0,-1,-1]),$a([32,70,30]),$a([6,65,28]),$a([0,-1,-1]),$a([52,38,32]),$a([2,27,32]),$a([0,-1,-1]),$a([73,20,30]),$a([2,22,32]),$a([0,-1,-1])]),$a(["83",187,17,10,30387,$a([21,126,24]),$a([4,136,26]),$a([0,-1,-1]),$a([30,74,32]),$a([6,73,30]),$a([0,-1,-1]),$a([54,35,30]),$a([4,40,32]),$a([0,-1,-1]),$a([75,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["84",189,17,10,31091,$a([30,105,20]),$a([1,114,22]),$a([0,-1,-1]),$a([3,45,22]),$a([55,47,20]),$a([0,-1,-1]),$a([2,26,26]),$a([62,33,28]),$a([0,-1,-1]),$a([79,18,28]),$a([4,33,30]),$a([0,-1,-1])])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hanxin.$ctx[id]=$_[id]);bwipp_hanxin.__24081__=1;$_=Object.getPrototypeOf($_)}$_.eclval=$g($_.eclevel,1)-49;var _Ig=$_.metrics;for(var _Ih=0,_Ii=_Ig.length;_Ih<_Ii;_Ih++){$_.m=$g(_Ig,_Ih);$_.vers=$g($_.m,0);$_.size=$g($_.m,1);$_.alnk=$g($_.m,2);$_.alnn=$g($_.m,3);$_.alnr=$f($_.size-$_.alnk*$_.alnn);$_.nmod=$g($_.m,4);$_.ncws=~~($_.nmod/8);$_.rbit=$_.nmod%8;$_.ecbs=$G($_.m,5+$_.eclval*3,3);var _J2=$_.ecbs;$k[$j++]="ecws";$k[$j++]=0;for(var _J3=0,_J4=_J2.length;_J3<_J4;_J3++){var _J5=$g(_J2,_J3);var _J8=$k[--$j];$k[$j++]=$f(_J8+$g(_J5,0)*$g(_J5,2))}var _J9=$k[--$j];$_[$k[--$j]]=_J9;$_.dcws=$f($_.ncws-$_.ecws);$_.dmod=$_.dcws*8;$_.okay=true;if($ne($_.version,"unset")&&$ne($_.version,$_.vers)){$_.okay=false}if($_.bits.length>$_.dmod){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.hanxinNoValidSymbol#24105";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}$_.version=$_.vers;$_.msgbits=$_.bits;$_.e1nb=$g($g($_.ecbs,0),0);$_.e2nb=$g($g($_.ecbs,1),0);$_.e3nb=$g($g($_.ecbs,2),0);$_.e1dcws=$g($g($_.ecbs,0),1);$_.e2dcws=$g($g($_.ecbs,1),1);$_.e3dcws=$g($g($_.ecbs,2),1);$_.e1ecws=$g($g($_.ecbs,0),2);$_.e2ecws=$g($g($_.ecbs,1),2);$_.e3ecws=$g($g($_.ecbs,2),2);$_.pad=$s($_.dmod);for(var _Js=0,_Jr=$_.pad.length-1;_Js<=_Jr;_Js+=1){$p($_.pad,_Js,48)}$P($_.pad,0,$_.msgbits);$_.cws=$a($_.dcws);for(var _K0=0,_Jz=$_.cws.length-1;_K0<=_Jz;_K0+=1){$_.c=_K0;$_.cwb=$G($_.pad,$_.c*8,8);$_.cw=0;for(var _K4=0;_K4<=7;_K4+=1){$_.i=_K4;$_.cw=$f($_.cw+~~Math.pow(2,8-$_.i-1)*$f($g($_.cwb,$_.i)-48))}$p($_.cws,$_.c,$_.cw)}$_.rscodes=function(){$_.rspm=$k[--$j];$_.rsgf=$k[--$j];$_.rsnc=$k[--$j];$_.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _KI=0,_KJ=$f($_.rsgf-1);_KI<_KJ;_KI++){var _KK=$k[--$j];var _KL=_KK*2;$k[$j++]=_KK;$k[$j++]=_KL;if(_KL>=$_.rsgf){var _KO=$k[--$j];$k[$j++]=$xo(_KO,$_.rspm)}}$_.rsalog=$a();$_.rslog=$a($_.rsgf);for(var _KU=1,_KT=$f($_.rsgf-1);_KU<=_KT;_KU+=1){$p($_.rslog,$g($_.rsalog,_KU),_KU)}$_.rsprod=function(){var _KY=$k[--$j];var _KZ=$k[--$j];$k[$j++]=_KZ;$k[$j++]=_KY;if(_KY!=0&&_KZ!=0){var _Kc=$g($_.rslog,$k[--$j]);var _Ki=$g($_.rsalog,$f(_Kc+$g($_.rslog,$k[--$j]))%$f($_.rsgf-1));$k[$j++]=_Ki}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Kk=0,_Kl=$_.rsnc;_Kk<_Kl;_Kk++){$k[$j++]=0}$_.coeffs=$a();for(var _Kp=1,_Ko=$_.rsnc;_Kp<=_Ko;_Kp+=1){$_.i=_Kp;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _Kw=$_.i-1;_Kw>=1;_Kw-=1){$_.j=_Kw;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _L8=$k[--$j];var _L9=$k[--$j];var _LA=$k[--$j];$p($k[--$j],_LA,$xo(_L9,_L8))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _LI=$k[--$j];var _LJ=$k[--$j];$p($k[--$j],_LJ,_LI)}$_.nd=$_.rscws.length;$k[$j++]=Infinity;$F($_.rscws);for(var _LO=0,_LP=$_.rsnc;_LO<_LP;_LO++){$k[$j++]=0}$k[$j++]=0;$_.rscws=$a();for(var _LT=0,_LS=$_.nd-1;_LT<=_LS;_LT+=1){$_.k=$xo($g($_.rscws,_LT),$g($_.rscws,$_.nd));for(var _Lb=0,_La=$f($_.rsnc-1);_Lb<=_La;_Lb+=1){$_.j=_Lb;$k[$j++]=$_.rscws;$k[$j++]=$_.nd+$_.j;$k[$j++]=$g($_.rscws,$_.nd+$_.j+1);$k[$j++]=$_.k;$k[$j++]=$g($_.coeffs,$f($f($_.rsnc-$_.j)-1));$_.rsprod();var _Lo=$k[--$j];var _Lp=$k[--$j];var _Lq=$k[--$j];$p($k[--$j],_Lq,$xo(_Lp,_Lo))}}$k[$j++]=$G($_.rscws,0,$_.rscws.length-1)};$_.dcwsb=$a($f($f($_.e1nb+$_.e2nb)+$_.e3nb));$_.ecwsb=$a($_.dcwsb.length);$_.in=0;$_.out=0;for(var _M2=0,_M3=$_.e1nb;_M2<_M3;_M2++){$k[$j++]=$G($_.cws,$_.in,$_.e1dcws);$k[$j++]=$_.e1ecws;$k[$j++]=256;$k[$j++]=355;$_.rscodes();var _M9=$k[--$j];$p($_.dcwsb,$_.out,$G(_M9,0,$_.e1dcws));$p($_.ecwsb,$_.out,$G(_M9,$_.e1dcws,$_.e1ecws));$_.in=$f($_.in+$_.e1dcws);$_.out=$_.out+1}for(var _MN=0,_MO=$_.e2nb;_MN<_MO;_MN++){$k[$j++]=$G($_.cws,$_.in,$_.e2dcws);$k[$j++]=$_.e2ecws;$k[$j++]=256;$k[$j++]=355;$_.rscodes();var _MU=$k[--$j];$p($_.dcwsb,$_.out,$G(_MU,0,$_.e2dcws));$p($_.ecwsb,$_.out,$G(_MU,$_.e2dcws,$_.e2ecws));$_.in=$f($_.in+$_.e2dcws);$_.out=$_.out+1}for(var _Mi=0,_Mj=$_.e3nb;_Mi<_Mj;_Mi++){$k[$j++]=$G($_.cws,$_.in,$_.e3dcws);$k[$j++]=$_.e3ecws;$k[$j++]=256;$k[$j++]=355;$_.rscodes();var _Mp=$k[--$j];$p($_.dcwsb,$_.out,$G(_Mp,0,$_.e3dcws));$p($_.ecwsb,$_.out,$G(_Mp,$_.e3dcws,$_.e3ecws));$_.in=$f($_.in+$_.e3dcws);$_.out=$_.out+1}$_.cws=$a($_.ncws);$_.cw=0;for(var _N6=0,_N5=$_.dcwsb.length-1;_N6<=_N5;_N6+=1){$_.i=_N6;var _N9=$g($_.dcwsb,$_.i);$P($_.cws,$_.cw,_N9);$_.cw=_N9.length+$_.cw;var _NF=$g($_.ecwsb,$_.i);$P($_.cws,$_.cw,_NF);$_.cw=_NF.length+$_.cw}$k[$j++]=Infinity;var _NJ=$_.ncws;var _NK=12;var _NL=_NJ-1;if(_NJ-1>12){var _=_NK;_NK=_NL;_NL=_}for(var _NN=0,_NM=_NL;_NN<=_NM;_NN+=1){for(var _NQ=_NN,_NP=$_.ncws-1;_NQ<=_NP;_NQ+=13){$k[$j++]=_NQ;if(_NQ<$_.ncws){var _NU=$g($_.cws,$k[--$j]);$k[$j++]=_NU}else{$j--}}}$_.cws=$a();if($_.rbit>0){$_.pad=$a($_.cws.length+1);$P($_.pad,0,$_.cws);$p($_.pad,$_.pad.length-1,0);$_.cws=$_.pad}$k[$j++]=Infinity;for(var _Ng=0,_Nh=$_.size*$_.size;_Ng<_Nh;_Ng++){$k[$j++]=-1}$_.pixs=$a();$_.qmv=function(){var _Nk=$k[--$j];var _Nl=$k[--$j];$k[$j++]=$f(_Nl+_Nk*$_.size)};if($_.alnn!=0){$_.trmv=function(){var _No=$k[--$j];var _Nq=$k[--$j];$k[$j++]=$f($f($f(_No*$_.size+$_.size)-1)-_Nq)};$_.aplot=function(){var _Nr=$k[--$j];var _Ns=$k[--$j];var _Nt=$k[--$j];$k[$j++]=_Nr;$k[$j++]=_Nt;$k[$j++]=_Ns;$k[$j++]=_Nr;$k[$j++]=_Ns;$k[$j++]=_Nt;$_.trmv();var _Nv=$k[--$j];$p($_.pixs,_Nv,$k[--$j]);$_.trmv();var _Ny=$k[--$j];$p($_.pixs,_Ny,$k[--$j])};$_.i=0;$_.stag=0;for(;;){if($_.i>=$_.size){break}for(var _O4=0,_O3=$f($_.size-1);_O4<=_O3;_O4+=1){$_.j=_O4;if($f($_.j+$_.alnr)<$_.size){$k[$j++]=(~~($_.j/$_.alnk)+$_.stag)%2==0&&!($_.i==0&&$_.j<$_.alnk)||$_.j%$_.alnk==0}else{$k[$j++]=$f($_.alnn+$_.stag)%2==0}if($k[--$j]){$k[$j++]=$_.j;$k[$j++]=$_.i;$k[$j++]=1;$_.aplot();var _OL=$_.j;var _OM=$_.i;$k[$j++]=_OL+1;$k[$j++]=_OM+1;if(_OM+1<$_.size&&_OL+1<$_.size){$k[$j++]=0;$_.aplot()}else{$j-=2}}}if($f($_.i+$_.alnr)==$_.size){$_.i=$f($f($_.i+$_.alnr)-1)}else{$_.i=$f($_.i+$_.alnk)}$_.stag=1-$_.stag}for(var _Ob=$_.alnk,_Oc=$_.alnk,_Oa=$f($_.size-2);_Oc<0?_Ob>=_Oa:_Ob<=_Oa;_Ob+=_Oc){$_.i=_Ob;if(~~($_.i/$_.alnk)%2!=0){$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i-1;$_.trmv();var _Oh=$k[--$j];$p($k[--$j],_Oh,0);$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i+1;$_.trmv();var _Ol=$k[--$j];$p($k[--$j],_Ol,0);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i-1;$_.trmv();var _Op=$k[--$j];$p($k[--$j],_Op,0);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i;$_.trmv();var _Ot=$k[--$j];$p($k[--$j],_Ot,0);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i+1;$_.trmv();var _Ox=$k[--$j];$p($k[--$j],_Ox,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=0;$_.trmv();var _P1=$k[--$j];$p($k[--$j],_P1,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=0;$_.trmv();var _P5=$k[--$j];$p($k[--$j],_P5,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=1;$_.trmv();var _P9=$k[--$j];$p($k[--$j],_P9,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=1;$_.trmv();var _PD=$k[--$j];$p($k[--$j],_PD,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=1;$_.trmv();var _PH=$k[--$j];$p($k[--$j],_PH,0)}$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-1);$k[$j++]=$_.i-1;$_.trmv();var _PM=$k[--$j];if($g($k[--$j],_PM)!=1){$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-1);$k[$j++]=$_.i-1;$_.trmv();var _PS=$k[--$j];$p($k[--$j],_PS,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-2);$k[$j++]=$_.i-1;$_.trmv();var _PX=$k[--$j];$p($k[--$j],_PX,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-2);$k[$j++]=$_.i;$_.trmv();var _Pc=$k[--$j];$p($k[--$j],_Pc,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-2);$k[$j++]=$_.i+1;$_.trmv();var _Ph=$k[--$j];$p($k[--$j],_Ph,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-1);$k[$j++]=$_.i+1;$_.trmv();var _Pm=$k[--$j];$p($k[--$j],_Pm,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=$f($_.size-1);$_.trmv();var _Pr=$k[--$j];$p($k[--$j],_Pr,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=$f($_.size-2);$_.trmv();var _Pw=$k[--$j];$p($k[--$j],_Pw,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$f($_.size-2);$_.trmv();var _Q1=$k[--$j];$p($k[--$j],_Q1,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=$f($_.size-2);$_.trmv();var _Q6=$k[--$j];$p($k[--$j],_Q6,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=$f($_.size-1);$_.trmv();var _QB=$k[--$j];$p($k[--$j],_QB,0)}}}if(!bwipp_hanxin.__24313__){$_=Object.create($_);$_.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,0,0]),$a([1,0,1,1,1,1,1,0]),$a([1,0,1,0,0,0,0,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$_.fpat2=$a([$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([0,0,0,0,1,0,1,0]),$a([1,1,1,1,1,0,1,0]),$a([0,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hanxin.$ctx[id]=$_[id]);bwipp_hanxin.__24313__=1;$_=Object.getPrototypeOf($_)}for(var _QY=0,_QX=$_.fpat.length-1;_QY<=_QX;_QY+=1){$_.y=_QY;for(var _Qc=0,_Qb=$g($_.fpat,0).length-1;_Qc<=_Qb;_Qc+=1){$_.x=_Qc;$_.fpb=$g($g($_.fpat,$_.y),$_.x);$_.fpb2=$g($g($_.fpat2,$_.y),$_.x);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _Qr=$k[--$j];$p($k[--$j],_Qr,$_.fpb);$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.size-$_.x)-1);$k[$j++]=$_.y;$_.qmv();var _Qy=$k[--$j];$p($k[--$j],_Qy,$_.fpb);$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.size-$_.x)-1);$k[$j++]=$f($f($_.size-$_.y)-1);$_.qmv();var _R6=$k[--$j];$p($k[--$j],_R6,$_.fpb);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$f($f($_.size-$_.y)-1);$_.qmv();var _RD=$k[--$j];$p($k[--$j],_RD,$_.fpb2)}}$_.functionmap=$a([$a([$a([0,8]),$a([$f($_.size-1),$f($_.size-9)])]),$a([$a([1,8]),$a([$f($_.size-2),$f($_.size-9)])]),$a([$a([2,8]),$a([$f($_.size-3),$f($_.size-9)])]),$a([$a([3,8]),$a([$f($_.size-4),$f($_.size-9)])]),$a([$a([4,8]),$a([$f($_.size-5),$f($_.size-9)])]),$a([$a([5,8]),$a([$f($_.size-6),$f($_.size-9)])]),$a([$a([6,8]),$a([$f($_.size-7),$f($_.size-9)])]),$a([$a([7,8]),$a([$f($_.size-8),$f($_.size-9)])]),$a([$a([8,8]),$a([$f($_.size-9),$f($_.size-9)])]),$a([$a([8,7]),$a([$f($_.size-9),$f($_.size-8)])]),$a([$a([8,6]),$a([$f($_.size-9),$f($_.size-7)])]),$a([$a([8,5]),$a([$f($_.size-9),$f($_.size-6)])]),$a([$a([8,4]),$a([$f($_.size-9),$f($_.size-5)])]),$a([$a([8,3]),$a([$f($_.size-9),$f($_.size-4)])]),$a([$a([8,2]),$a([$f($_.size-9),$f($_.size-3)])]),$a([$a([8,1]),$a([$f($_.size-9),$f($_.size-2)])]),$a([$a([8,0]),$a([$f($_.size-9),$f($_.size-1)])]),$a([$a([$f($_.size-9),0]),$a([8,$f($_.size-1)])]),$a([$a([$f($_.size-9),1]),$a([8,$f($_.size-2)])]),$a([$a([$f($_.size-9),2]),$a([8,$f($_.size-3)])]),$a([$a([$f($_.size-9),3]),$a([8,$f($_.size-4)])]),$a([$a([$f($_.size-9),4]),$a([8,$f($_.size-5)])]),$a([$a([$f($_.size-9),5]),$a([8,$f($_.size-6)])]),$a([$a([$f($_.size-9),6]),$a([8,$f($_.size-7)])]),$a([$a([$f($_.size-9),7]),$a([8,$f($_.size-8)])]),$a([$a([$f($_.size-9),8]),$a([8,$f($_.size-9)])]),$a([$a([$f($_.size-8),8]),$a([7,$f($_.size-9)])]),$a([$a([$f($_.size-7),8]),$a([6,$f($_.size-9)])]),$a([$a([$f($_.size-6),8]),$a([5,$f($_.size-9)])]),$a([$a([$f($_.size-5),8]),$a([4,$f($_.size-9)])]),$a([$a([$f($_.size-4),8]),$a([3,$f($_.size-9)])]),$a([$a([$f($_.size-3),8]),$a([2,$f($_.size-9)])]),$a([$a([$f($_.size-2),8]),$a([1,$f($_.size-9)])]),$a([$a([$f($_.size-1),8]),$a([0,$f($_.size-9)])])]);var _U0=$_.functionmap;for(var _U1=0,_U2=_U0.length;_U1<_U2;_U1++){$F($g(_U0,_U1),function(){$F($k[--$j]);$_.qmv();$p($_.pixs,$k[--$j],0)})}var _UD=$a([function(){$j-=2;$k[$j++]=1},function(){var _U7=$k[--$j];var _U8=$k[--$j];$k[$j++]=$f(_U8+_U7)%2},function(){var _U9=$k[--$j];var _UA=$k[--$j];$k[$j++]=$f($f(_U9+_UA)%3+_UA%3)%2},function(){var _UB=$k[--$j];var _UC=$k[--$j];$k[$j++]=$f(_UC%_UB+$f(_UB%_UC+$f(_UB%3+_UC%3)))%2}]);$_.maskfuncs=_UD;if($_.mask!=-1){$_.maskfuncs=$a([$g($_.maskfuncs,$_.mask-1)]);$_.bestmaskval=$_.mask-1}$_.masks=$a($_.maskfuncs.length);for(var _UO=0,_UN=$_.masks.length-1;_UO<=_UN;_UO+=1){$_.m=_UO;$_.mask=$a($_.size*$_.size);for(var _UU=0,_UT=$f($_.size-1);_UU<=_UT;_UU+=1){$_.j=_UU;for(var _UX=0,_UW=$f($_.size-1);_UX<=_UW;_UX+=1){$_.i=_UX;$k[$j++]=$_.i+1;$k[$j++]=$_.j+1;if($g($_.maskfuncs,$_.m)()===true){break}var _Ud=$k[--$j];$k[$j++]=_Ud==0;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _Uh=$k[--$j];var _Uj=$g($k[--$j],_Uh);var _Uk=$k[--$j];var _Ul=_Uk&&_Uj==-1?1:0;$k[$j++]=_Ul;$k[$j++]=$_.mask;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _Up=$k[--$j];var _Uq=$k[--$j];$p(_Uq,_Up,$k[--$j])}}$p($_.masks,$_.m,$_.mask)}$_.posx=0;$_.posy=0;$_.num=0;for(;;){if($_.posy==$_.size){break}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _V0=$k[--$j];if($g($k[--$j],_V0)==-1){var _V5=$g($_.cws,~~($_.num/8));var _V7=-(7-$_.num%8);$k[$j++]=(_V7<0?_V5>>>-_V7:_V5<<_V7)&1;$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _VB=$k[--$j];var _VC=$k[--$j];$p(_VC,_VB,$k[--$j]);$_.num=$_.num+1}$_.posx=$_.posx+1;if($_.posx==$_.size){$_.posx=0;$_.posy=$_.posy+1}}$_.evalfulln1n3=function(){$_.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($_.scrle,function(){var _VL=$k[--$j];$k[$j++]=_VL;if(_VL>=3){var _VM=$k[--$j];var _VO=$f($k[--$j]+_VM*4);$k[$j++]=_VO;$k[$j++]=_VO}$j--});var _VP=$k[--$j];$_[$k[--$j]]=_VP;$_.scr3=0;for(var _VT=5,_VS=$_.scrle.length-1;_VT<=_VS;_VT+=2){$_.j=_VT;if($g($_.scrle,$_.j)%3==0){$_.fact=~~($g($_.scrle,$_.j)/3);var _Vc=$G($_.scrle,$_.j-4,4);for(var _Vd=0,_Ve=_Vc.length;_Vd<_Ve;_Vd++){$k[$j++]=$g(_Vc,_Vd)==$_.fact}var _Vh=$k[--$j];var _Vi=$k[--$j];var _Vj=$k[--$j];var _Vk=$k[--$j];if(_Vk&&(_Vj&&(_Vi&&_Vh))){if($_.j==5||$_.j+2>=$_.scrle.length){$_.scr3=$_.scr3+50}else{if($g($_.scrle,$_.j-5)>=3||$g($_.scrle,$_.j+1)>=3){$_.scr3=$_.scr3+50}}}}}for(var _Vy=1,_Vx=$_.scrle.length-5;_Vy<=_Vx;_Vy+=2){$_.j=_Vy;if($g($_.scrle,$_.j)%3==0){$_.fact=~~($g($_.scrle,$_.j)/3);var _W7=$G($_.scrle,$_.j+1,4);for(var _W8=0,_W9=_W7.length;_W8<_W9;_W8++){$k[$j++]=$g(_W7,_W8)==$_.fact}var _WC=$k[--$j];var _WD=$k[--$j];var _WE=$k[--$j];var _WF=$k[--$j];if(_WF&&(_WE&&(_WD&&_WC))){if($_.j==1||$_.j+6>=$_.scrle.length){$_.scr3=$_.scr3+50}else{if($g($_.scrle,$_.j-1)>=3||$g($_.scrle,$_.j+5)>=3){$_.scr3=$_.scr3+50}}}}}$k[$j++]=$_.scr1;$k[$j++]=$_.scr3};$_.evalfull=function(){$_.sym=$k[--$j];$_.n1=0;$_.n3=0;$_.rle=$a($f($_.size+1));$_.lastpairs=$a($_.size);$_.thispairs=$a($_.size);$_.sizeadd1=$f($_.size+1);for(var _Wd=0,_Wc=$f($_.size-1);_Wd<=_Wc;_Wd+=1){$_.i=_Wd;$k[$j++]=Infinity;var _Wf=$_.size;$k[$j++]=0;$k[$j++]=0;for(var _Wh=$_.i,_Wi=_Wf,_Wg=$f(_Wf*_Wf-1);_Wi<0?_Wh>=_Wg:_Wh<=_Wg;_Wh+=_Wi){var _Wk=$g($_.sym,_Wh);var _Wl=$k[--$j];$k[$j++]=_Wk;if($eq(_Wl,_Wk)){var _Wm=$k[--$j];var _Wn=$k[--$j];$k[$j++]=$f(_Wn+1);$k[$j++]=_Wm}else{var _Wo=$k[--$j];$k[$j++]=1;$k[$j++]=_Wo}}$j--;var _Wq=$m()+2;$as($G($_.rle,0,_Wq-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;$_.symrow=$G($_.sym,$_.i*$_.size,$_.size);$k[$j++]=Infinity;var _X1=$_.symrow;$k[$j++]=0;$k[$j++]=0;for(var _X2=0,_X3=_X1.length;_X2<_X3;_X2++){var _X4=$g(_X1,_X2);var _X5=$k[--$j];$k[$j++]=_X4;if($eq(_X5,_X4)){var _X6=$k[--$j];var _X7=$k[--$j];$k[$j++]=$f(_X7+1);$k[$j++]=_X6}else{var _X8=$k[--$j];$k[$j++]=1;$k[$j++]=_X8}}$j--;var _XA=$m()+2;$as($G($_.rle,0,_XA-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--}$k[$j++]=$f($_.n1+$_.n3)};$_.bestscore=999999999;for(var _XK=0,_XJ=$_.masks.length-1;_XK<=_XJ;_XK+=1){$_.m=_XK;$_.masksym=$a($_.size*$_.size);for(var _XR=0,_XQ=$f($_.size*$_.size-1);_XR<=_XQ;_XR+=1){$_.i=_XR;$p($_.masksym,$_.i,$xo($g($_.pixs,$_.i),$g($g($_.masks,$_.m),$_.i)))}if($_.masks.length!=1){$k[$j++]=$_.masksym;$_.evalfull();$_.score=$k[--$j];if($_.score<$_.bestscore){$_.bestsym=$_.masksym;$_.bestmaskval=$_.m;$_.bestscore=$_.score}}else{$_.bestsym=$_.masksym}}$_.pixs=$_.bestsym;$_.funval=((~~($f($_.size-21)/2)+20)*4+$_.eclval)*4+$_.bestmaskval;$k[$j++]=$a([($_.funval&3840)>>>8,($_.funval&240)>>>4,$_.funval&15]);$k[$j++]=4;$k[$j++]=16;$k[$j++]=19;$_.rscodes();$_.funvals=$k[--$j];$k[$j++]=Infinity;$F($_.funvals,function(){$k[$j++]=4;$_.tobin();$F($k[--$j],function(){var _Xw=$k[--$j];$k[$j++]=$f(_Xw-48)})});$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$_.funbits=$a();for(var _Y0=0,_Xz=$_.functionmap.length-1;_Y0<=_Xz;_Y0+=1){$_.i=_Y0;$F($g($_.functionmap,$_.i),function(){var _Y5=$k[--$j];$k[$j++]=$_.pixs;$q(_Y5);$_.qmv();var _Y9=$k[--$j];$p($k[--$j],_Y9,$g($_.funbits,$_.i))})}var _YH=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.size],["pixy",$_.size],["height",$_.size*2/72],["width",$_.size*2/72],["opt",$_.options]]);$k[$j++]=_YH;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_dotcode(){$_=Object.create($_);$_.dontdraw=false;$_.rows=-1;$_.columns=-1;$_.ratio=-1;$_.parse=false;$_.parsefnc=false;$_.raw=false;$_.fast=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.rows!=-1){if($_.rows<5){$k[$j++]="bwipp.dotcodeBadRows#24578";$k[$j++]="There must be at least 5 rows";bwipp_raiseerror()}}if($_.columns!=-1){if($_.columns<5){$k[$j++]="bwipp.dotcodeBadColumns#24584";$k[$j++]="There must be at least 5 columns";bwipp_raiseerror()}}if($_.rows!=-1&&$_.columns!=-1&&($_.rows+$_.columns)%2!=1){$k[$j++]="bwipp.dotcodeRowsColumnsBadParity#24589";$k[$j++]="Sum of rows and columns must be odd";bwipp_raiseerror()}if($_.ratio==-1&&$_.rows==-1&&$_.columns==-1){$_.ratio=3/2}if($_.ratio!=-1){if($_.ratio<=0){$k[$j++]="bwipp.dotcodeRatio#24598";$k[$j++]="The ratio must be greater than 0";bwipp_raiseerror()}}if($_.mask!=-1){if($_.mask<0||$_.mask>3){$k[$j++]="bwipp.dotcodeBadMask#24604";$k[$j++]="Valid mask values are 0 to 3";bwipp_raiseerror()}}bwipp_loadctx(bwipp_dotcode);if(!bwipp_dotcode.__24621__){$_=Object.create($_);$_.laa=-1;$_.lab=-2;$_.lac=-3;$_.bin=-4;$_.sfa=-5;$_.sfb=-6;$_.sb2=-7;$_.sb3=-8;$_.sb4=-9;$_.sb5=-10;$_.sb6=-11;$_.sfc=-12;$_.sc2=-13;$_.sc3=-14;$_.sc4=-15;$_.sc5=-16;$_.sc6=-17;$_.sc7=-18;$_.bsa=-19;$_.bsb=-20;$_.tma=-21;$_.tmb=-22;$_.tmc=-23;$_.tms=-24;$_.fn1=-25;$_.fn2=-26;$_.fn3=-27;$_.crl=-28;$_.aim=-29;$_.m05=-30;$_.m06=-31;$_.m12=-32;$_.mac=-33;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__24621__=1;$_=Object.getPrototypeOf($_)}var _N=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1],["FNC3",$_.fn3]]);$_.fncvals=_N;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.msglen=$_.msg.length;var _T=$_.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _U=0,_V=_T.length;_U<_V;_U++){if($g(_T,_U)<=-1e6){var _X=$k[--$j];$k[$j++]=$f(_X+1)}}var _Y=$k[--$j];$_[$k[--$j]]=_Y;$_.msgtmp=$a($f($_.msg.length+$_.numecis*6));$_.j=0;for(var _f=0,_e=$_.msg.length-1;_f<=_e;_f+=1){var _h=$g($_.msg,_f);$k[$j++]=_h;if(_h<=-1e6){var _l=$G($R($s(7),-$k[--$j],10),1,6);for(var _m=0,_n=_l.length;_m<_n;_m++){$k[$j++]=$g(_l,_m)}$as($a(6));$P($_.msgtmp,$_.j+1,$k[--$j]);$p($_.msgtmp,$_.j,$_.fn2);$_.j=$_.j+7}else{$p($_.msgtmp,$_.j,$k[--$j]);$_.j=$_.j+1}}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;if(!bwipp_dotcode.__24720__){$_=Object.create($_);$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.sfb,$_.crl,"96"]),$a([$_.sb2,9,"97"]),$a([$_.sb3,28,"98"]),$a([$_.sb4,29,"99"]),$a([$_.sb5,30,$_.aim]),$a([$_.sb6,$_.sfa,$_.laa]),$a([$_.lab,$_.laa,$_.sfb]),$a([$_.sc2,$_.sc2,$_.sb2]),$a([$_.sc3,$_.sc3,$_.sb3]),$a([$_.sc4,$_.sc4,$_.sb4]),$a([$_.lac,$_.lac,$_.lab]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.fn2,$_.fn2,$_.fn2]),$a([$_.fn3,$_.fn3,$_.fn3]),$a([$_.bsa,$_.bsa,$_.bsa]),$a([$_.bsb,$_.bsb,$_.bsb]),$a([$_.bin,$_.bin,$_.bin])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _3d=0,_3c=$_.charmaps.length-1;_3d<=_3c;_3d+=1){$_.i=_3d;$_.encs=$g($_.charmaps,$_.i);for(var _3h=0;_3h<=2;_3h+=1){$_.j=_3h;var _3k=$g($_.encs,$_.j);$k[$j++]=_3k;if($eq($t(_3k),"stringtype")){var _3n=$g($k[--$j],0);$k[$j++]=_3n}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.Avals=$g($_.charvals,0);$_.Bvals=$g($_.charvals,1);$p($_.Bvals,$_.m05,97);$p($_.Bvals,$_.m06,98);$p($_.Bvals,$_.m12,99);$p($_.Bvals,$_.mac,100);$_.Cvals=$g($_.charvals,2);$k[$j++]=Infinity;var _4H=$a([$_.sc2,$_.sc3,$_.sc4,$_.sc5,$_.sc6,$_.sc7,$_.tma,$_.tmb,$_.tmc,$_.tms]);$k[$j++]=102;for(var _4I=0,_4J=_4H.length;_4I<_4J;_4I++){var _4M=$f($k[--$j]+1);$k[$j++]=$g(_4H,_4I);$k[$j++]=_4M;$k[$j++]=_4M}$j--;$_.BINvals=$d();$_.A=0;$_.B=1;$_.C=2;$_.BIN=3;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__24720__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;for(var _4Q=0,_4R=$_.msglen+1;_4Q<_4R;_4Q++){$k[$j++]=0}$_.nDigits=$a();$k[$j++]=Infinity;for(var _4U=0,_4V=$_.msglen+1;_4U<_4V;_4U++){$k[$j++]=false}$_.SeventeenTen=$a();$k[$j++]=Infinity;for(var _4Y=0,_4Z=$_.msglen+1;_4Y<_4Z;_4Y++){$k[$j++]=false}$_.ECI=$a();$k[$j++]=Infinity;for(var _4c=0,_4d=$_.msglen+1;_4c<_4d;_4c++){$k[$j++]=false}$_.DatumA=$a();$k[$j++]=Infinity;for(var _4g=0,_4h=$_.msglen+1;_4g<_4h;_4g++){$k[$j++]=false}$_.DatumB=$a();$k[$j++]=Infinity;for(var _4k=0,_4l=$_.msglen+1;_4k<_4l;_4k++){$k[$j++]=false}$_.DatumC=$a();$k[$j++]=Infinity;for(var _4o=0,_4p=$_.msglen+8;_4o<_4p;_4o++){$k[$j++]=false}$_.Binary=$a();$k[$j++]=Infinity;for(var _4s=0,_4t=$_.msglen+1;_4s<_4t;_4s++){$k[$j++]=0}$_.AheadC=$a();$k[$j++]=Infinity;for(var _4w=0,_4x=$_.msglen+1;_4w<_4x;_4w++){$k[$j++]=0}$_.TryC=$a();$k[$j++]=Infinity;for(var _50=0,_51=$_.msglen+1;_50<_51;_50++){$k[$j++]=0}$_.AheadA=$a();$k[$j++]=Infinity;for(var _54=0,_55=$_.msglen+1;_54<_55;_54++){$k[$j++]=0}$_.AheadB=$a();$k[$j++]=Infinity;for(var _58=0,_59=$_.msglen+1;_58<_59;_58++){$k[$j++]=0}$_.UntilEndSeg=$a();for(var _5C=$_.msglen-1;_5C>=0;_5C-=1){$_.i=_5C;$_.barchar=$g($_.msg,$_.i);if($_.barchar>=48&&$_.barchar<=57){$p($_.nDigits,$_.i,$f($g($_.nDigits,$_.i+1)+1))}var _5P=$g($_.Avals,$_.barchar)!==undefined;if(_5P){$p($_.DatumA,$_.i,true)}var _5U=$g($_.Bvals,$_.barchar)!==undefined;if(_5U){$p($_.DatumB,$_.i,true)}$_.CRLF=false;if($_.barchar==13&&$_.i<$_.msglen-1){if($g($_.msg,$_.i+1)==10){$_.CRLF=true}}if($_.CRLF){$p($_.DatumB,$_.i,true)}if($g($_.nDigits,$_.i)>=2){$p($_.DatumC,$_.i,true)}if($_.barchar<0){$p($_.DatumC,$_.i,true)}if($_.barchar>=128){$p($_.Binary,$_.i,true)}if($g($_.nDigits,$_.i)>=10){$k[$j++]=Infinity;$q($G($_.msg,$_.i,10));for(var _5x=0,_5y=1;_5x<_5y;_5x++){if($k[--$j]!=48){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$j-=6;if($k[--$j]!=55){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$k[$j++]=true}$p($_.SeventeenTen,$_.i,$k[--$j]);$l()}if($g($_.nDigits,$_.i+1)>=6&&$g($_.msg,$_.i)==$_.fn2){$p($_.ECI,$_.i,true)}if($_.barchar<0&&$_.barchar!=$_.fn3){$p($_.AheadC,$_.i,$f($g($_.AheadC,$_.i+1)+1))}else{if($g($_.nDigits,$_.i)<=1){$p($_.AheadC,$_.i,0)}else{$p($_.AheadC,$_.i,$f($g($_.AheadC,$_.i+2)+1))}}if($g($_.nDigits,$_.i)>0&&$gt($g($_.AheadC,$_.i),$g($_.AheadC,$_.i+1))){$p($_.TryC,$_.i,$g($_.AheadC,$_.i))}if($g($_.DatumA,$_.i)&&$g($_.TryC,$_.i)<2&&$_.barchar!=$_.fn3){$p($_.AheadA,$_.i,$f($g($_.AheadA,$_.i+1)+1))}if($g($_.DatumB,$_.i)&&$g($_.TryC,$_.i)<2&&$_.barchar!=$_.fn3){$k[$j++]=$_.AheadB;$k[$j++]=$_.i;$k[$j++]=$_.AheadB;$k[$j++]=$_.i+1;if($_.CRLF){var _7B=$k[--$j];$k[$j++]=$f(_7B+1)}var _7C=$k[--$j];var _7E=$g($k[--$j],_7C);var _7F=$k[--$j];$p($k[--$j],_7F,$f(_7E+1))}if($_.barchar!=$_.fn3){$p($_.UntilEndSeg,$_.i,$f($g($_.UntilEndSeg,$_.i+1)+1))}}$_.addtocws=function(){var _7O=$k[--$j];$P($_.cws,$_.j,_7O);$_.j=_7O.length+$_.j};$_.base259to103=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$k[$j++]=Infinity;for(var _7V=0,_7W=5-$_.inlen;_7V<_7W;_7V++){$k[$j++]=0}$q($_.in);$_.in=$a();$_.out=$a(6);$k[$j++]=Infinity;$q($G($_.in,0,2));$_.msbs=$a();$k[$j++]=Infinity;$q($_.msbs);var _7e=$k[--$j];var _7f=$k[--$j];$k[$j++]=$f(_7e+_7f*259);for(var _7g=0,_7h=2;_7g<_7h;_7g++){var _7i=$k[--$j];$k[$j++]=_7i%103;$k[$j++]=~~(_7i/103)}$_.mscs=$a();$k[$j++]=Infinity;$q($G($_.in,2,3));$_.lsbs=$a();$k[$j++]=Infinity;$q($_.lsbs);var _7o=$k[--$j];var _7p=$k[--$j];var _7q=$k[--$j];$k[$j++]=$f($f(_7o+_7p*259)+_7q*67081);for(var _7r=0,_7s=3;_7r<_7s;_7r++){var _7t=$k[--$j];$k[$j++]=_7t%103;$k[$j++]=~~(_7t/103)}$_.lscs=$a();var _7w=$g($_.lscs,0);var _7y=$g($_.mscs,0);$p($_.out,5,$f(_7w+_7y*42)%103);var _81=$g($_.lscs,1);var _83=$g($_.mscs,0);var _85=$g($_.mscs,1);$p($_.out,4,$f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)%103);var _88=$g($_.lscs,2);var _8A=$g($_.mscs,0);var _8C=$g($_.mscs,1);var _8E=$g($_.mscs,2);$p($_.out,3,$f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)%103);var _8H=$g($_.lscs,3);var _8J=$g($_.mscs,0);var _8L=$g($_.mscs,1);var _8N=$g($_.mscs,2);$p($_.out,2,$f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)/103)+_8H)+_8J*15)+_8L*92)+_8N*68)%103);var _8Q=$g($_.mscs,1);var _8S=$g($_.mscs,2);$p($_.out,1,$f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)/103)+_8H)+_8J*15)+_8L*92)+_8N*68)/103)+_8Q*15)+_8S*92)%103);$p($_.out,0,$f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)/103)+_8H)+_8J*15)+_8L*92)+_8N*68)/103)+_8Q*15)+_8S*92)/103)+$g($_.mscs,2)*15)%103);$k[$j++]=$G($_.out,6-$_.inlen-1,$_.inlen+1)};$_.finaliseBIN=function(){if($_.bpos!=0){$k[$j++]=$G($_.bvals,0,$_.bpos);$_.base259to103();$q($k[--$j]);$_.bpos=0}};$_.addtobin=function(){$p($_.bvals,$_.bpos,$k[--$j]);$_.bpos=$_.bpos+1;if($_.bpos==5){$_.finaliseBIN()}};$_.ECIabc=function(){var _8n=$G($_.msg,$_.i+1,6);$k[$j++]=0;for(var _8o=0,_8p=_8n.length;_8o<_8p;_8o++){var _8r=$k[--$j];$k[$j++]=$f(_8r+$f($g(_8n,_8o)-48))*10}var _8t=~~($k[--$j]/10);$k[$j++]=_8t;if(_8t>=40){var _8v=$f($k[--$j]-40);var _8w=_8v%12769;$k[$j++]=~~(_8v/12769)+40;$k[$j++]=~~(_8w/113);$k[$j++]=_8w%113}};$_.ECIbin=function(){$k[$j++]=Infinity;var _8z=$G($_.msg,$_.i+1,6);$k[$j++]=0;for(var _90=0,_91=_8z.length;_90<_91;_90++){var _93=$k[--$j];$k[$j++]=$f(_93+$f($g(_8z,_90)-48))*10}var _95=~~($k[--$j]/10);$k[$j++]=_95;if(_95>=65536){var _96=$k[--$j];var _97=_96%65536;$k[$j++]=258;$k[$j++]=~~(_96/65536);$k[$j++]=~~(_97/256);$k[$j++]=_97%256}else{var _98=$k[--$j];$k[$j++]=_98;if(_98>=256){var _99=$k[--$j];$k[$j++]=257;$k[$j++]=~~(_99/256);$k[$j++]=_99%256}else{var _9A=$k[--$j];$k[$j++]=256;$k[$j++]=_9A}}var _9B=$a();for(var _9C=0,_9D=_9B.length;_9C<_9D;_9C++){$k[$j++]=$g(_9B,_9C);$_.addtobin()}};$_.encC=function(){for(var _9F=0,_9G=1;_9F<_9G;_9F++){if($_.i==$_.segstart){for(var _9J=0,_9K=1;_9J<_9K;_9J++){if($_.i>$f($_.segend-7)){$k[$j++]=0;break}if($g($_.msg,$_.segstart)!=91){$k[$j++]=0;break}if($g($_.msg,$_.segstart+1)!=41){$k[$j++]=0;break}if($g($_.msg,$_.segstart+2)!=62){$k[$j++]=0;break}if($g($_.msg,$_.segstart+3)!=30){$k[$j++]=0;break}var _9b=$g($_.msg,$_.segstart+4);if(_9b<48||_9b>57){$k[$j++]=0;break}var _9e=$g($_.msg,$_.segstart+5);if(_9e<48||_9e>57){$k[$j++]=0;break}if($g($_.msg,$f($_.segend-1))!=4){$k[$j++]=0;break}var _9o=$f($f($g($_.msg,$_.segstart+4)-48)*10+$f($g($_.msg,$_.segstart+5)-48));$k[$j++]=_9o;if(_9o!=5&&(_9o!=6&&_9o!=12)){$j--;$k[$j++]=$_.mac;break}if($g($_.msg,$_.segstart+6)!=29){$j--;$k[$j++]=0;break}if($g($_.msg,$f($_.segend-2))!=30){$j--;$k[$j++]=0;break}var _9w=$k[--$j];$k[$j++]=_9w;if(_9w==5){$j--;$k[$j++]=$_.m05;break}if($k[--$j]==6){$k[$j++]=$_.m06;break}$k[$j++]=$_.m12;break}$_.inmac=$k[--$j];if($_.inmac!=0){$k[$j++]=$a([$g($_.Cvals,$_.lab)]);$_.addtocws();$_.mode=$_.B;$k[$j++]=$a([$g($_.Bvals,$_.inmac)]);$_.addtocws();if($_.inmac==$_.mac){$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.segstart+4))]);$_.addtocws();$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.segstart+5))]);$_.addtocws();$_.i=$_.i+6}else{$_.i=$_.i+7}break}}if($_.i==$_.segstart){if($g($_.nDigits,$_.i)>=2){$k[$j++]=$a([$g($_.Cvals,$_.fn1)]);$_.addtocws()}if($g($_.msg,$_.i)==$_.fn1&&$g($_.nDigits,$_.i+1)>=2){$_.i=$_.i+1}}if($g($_.SeventeenTen,$_.i)){$k[$j++]=$a([$g($_.Cvals,$_.aim),$f($f($g($_.msg,$_.i+2)-48)*10+$f($g($_.msg,$_.i+3)-48)),$f($f($g($_.msg,$_.i+4)-48)*10+$f($g($_.msg,$_.i+5)-48)),$f($f($g($_.msg,$_.i+6)-48)*10+$f($g($_.msg,$_.i+7)-48))]);$_.addtocws();$_.i=$_.i+10;break}if($g($_.DatumC,$_.i)){var _BE=$g($_.msg,$_.i);if(_BE==$_.fn1||(_BE==$_.fn2||_BE==$_.fn3)){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();if($g($_.ECI,$_.i)){$k[$j++]=Infinity;$_.ECIabc();var _BR=$a();$k[$j++]=_BR;$_.addtocws();$_.i=$_.i+7;break}if($g($_.msg,$_.i)==$_.fn3&&$_.segstart!=$_.i){$_.i=$_.i+1;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}$_.i=$_.i+1;break}$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2;break}if($g($_.Binary,$_.i)){if($g($_.nDigits,$_.i+1)>0){if($g($_.msg,$_.i)<160){$k[$j++]=$a([$g($_.Cvals,$_.bsa),$g($_.Avals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}else{$k[$j++]=$a([$g($_.Cvals,$_.bsb),$g($_.Bvals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Cvals,$_.bin)]);$_.addtocws();$_.mode=$_.BIN;break}$_.m=$g($_.AheadA,$_.i);$_.n=$g($_.AheadB,$_.i);if($gt($_.m,$_.n)){$k[$j++]=$a([$g($_.Cvals,$_.laa)]);$_.addtocws();$_.mode=$_.A;break}if($_.i==$_.segstart){var _Cc=$g($_.msg,$_.i);if(_Cc==9||(_Cc==28||(_Cc==29||_Cc==30))){$k[$j++]=$a([$g($_.Cvals,$_.laa)]);$_.addtocws();$_.mode=$_.A;break}}if($_.n>4){$k[$j++]=$a([$g($_.Cvals,$_.lab)]);$_.addtocws();$_.mode=$_.B;break}$k[$j++]=$a([$g($_.Cvals,$g($a([$_.sfb,$_.sb2,$_.sb3,$_.sb4]),$f($_.n-1)))]);$_.addtocws();for(var _Cz=0,_D0=$_.n;_Cz<_D0;_Cz++){if($g($_.msg,$_.i)==13){$k[$j++]=$a([$g($_.Bvals,$_.crl)]);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}}break}};$_.encB=function(){for(var _DG=0,_DH=1;_DG<_DH;_DG++){$_.n=$g($_.TryC,$_.i);if($_.n>=2){if($_.n>4){$k[$j++]=$a([$g($_.Bvals,$_.lac)]);$_.addtocws();$_.mode=$_.C;break}$k[$j++]=$a([$g($_.Bvals,$g($a([$_.sfc,$_.sc2,$_.sc3,$_.sc4]),$f($_.n-1)))]);$_.addtocws();for(var _Dd=0,_De=$_.n;_Dd<_De;_Dd++){if($g($_.msg,$_.i)<0){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}else{$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2}}break}if($g($_.DatumB,$_.i)){var _E2=$g($_.msg,$_.i);if(_E2==$_.fn1||(_E2==$_.fn2||_E2==$_.fn3)){$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();if($g($_.ECI,$_.i)){$k[$j++]=Infinity;$_.ECIabc();var _EF=$a();$k[$j++]=_EF;$_.addtocws();$_.i=$_.i+7;break}if($g($_.msg,$_.i)==$_.fn3&&$_.i!=$_.segstart){$_.i=$_.i+1;$_.mode=$_.C;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}$_.i=$_.i+1;break}if($g($_.msg,$_.i)==13&&$_.i<$_.msglen-1){if($g($_.msg,$_.i+1)==10){$k[$j++]=$a([$g($_.Bvals,$_.crl)]);$_.addtocws();$_.i=$_.i+2;break}}$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1;break}if($g($_.Binary,$_.i)){if($g($_.DatumB,$_.i+1)){if($g($_.msg,$_.i)<160){$k[$j++]=$a([$g($_.Bvals,$_.bsa),$g($_.Avals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}else{$k[$j++]=$a([$g($_.Bvals,$_.bsb),$g($_.Bvals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Bvals,$_.bin)]);$_.addtocws();$_.mode=$_.BIN;break}if($g($_.AheadA,$_.i)==1){$k[$j++]=$a([$g($_.Bvals,$_.sfa),$g($_.Avals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Bvals,$_.laa)]);$_.addtocws();$_.mode=$_.A;break}};$_.encA=function(){for(var _Fe=0,_Ff=1;_Fe<_Ff;_Fe++){$_.n=$g($_.TryC,$_.i);if($_.n>=2){if($_.n>4){$k[$j++]=$a([$g($_.Avals,$_.lac)]);$_.addtocws();$_.mode=$_.C;break}$k[$j++]=$a([$g($_.Avals,$g($a([$_.sfc,$_.sc2,$_.sc3,$_.sc4]),$f($_.n-1)))]);$_.addtocws();for(var _G1=0,_G2=$_.n;_G1<_G2;_G1++){if($g($_.msg,$_.i)<0){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}else{$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2}}break}if($g($_.DatumA,$_.i)){var _GQ=$g($_.msg,$_.i);if(_GQ==$_.fn1||(_GQ==$_.fn2||_GQ==$_.fn3)){$k[$j++]=$a([$g($_.Avals,$g($_.msg,$_.i))]);$_.addtocws();if($g($_.ECI,$_.i)){$k[$j++]=Infinity;$_.ECIabc();var _Gd=$a();$k[$j++]=_Gd;$_.addtocws();$_.i=$_.i+7;break}if($g($_.msg,$_.i)==$_.fn3&&$_.i!=$_.segstart){$_.i=$_.i+1;$_.mode=$_.C;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Avals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1;break}if($g($_.Binary,$_.i)){if($g($_.DatumA,$_.i+1)){if($g($_.msg,$_.i)<160){$k[$j++]=$a([$g($_.Avals,$_.bsa),$g($_.Avals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}else{$k[$j++]=$a([$g($_.Avals,$_.bsb),$g($_.Bvals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Avals,$_.bin)]);$_.addtocws();$_.mode=$_.BIN;break}$_.n=$g($_.AheadB,$_.i);if($_.n>6){$k[$j++]=$a([$g($_.Avals,$_.lab)]);$_.addtocws();$_.mode=$_.B;break}$k[$j++]=$a([$g($_.Avals,$g($a([$_.sfb,$_.sb2,$_.sb3,$_.sb4,$_.sb5,$_.sb6]),$f($_.n-1)))]);$_.addtocws();for(var _Ht=0,_Hu=$_.n;_Ht<_Hu;_Ht++){if($g($_.msg,$_.i)==13){$k[$j++]=$a([$g($_.Bvals,$_.crl)]);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}}break}};$_.encBIN=function(){for(var _IA=0,_IB=1;_IA<_IB;_IA++){$_.n=$g($_.TryC,$_.i);if($_.n>=2){$k[$j++]=Infinity;$_.finaliseBIN();var _IG=$a();$k[$j++]=_IG;$_.addtocws();if($_.n>7){$k[$j++]=$a([$g($_.BINvals,$_.tmc)]);$_.addtocws();$_.mode=$_.C;break}$k[$j++]=$a([$g($_.BINvals,$g($a([$_.sc2,$_.sc3,$_.sc4,$_.sc5,$_.sc6,$_.sc7]),$f($_.n-2)))]);$_.addtocws();for(var _Ia=0,_Ib=$_.n;_Ia<_Ib;_Ia++){if($g($_.msg,$_.i)<0){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}else{$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2}}break}if($g($_.ECI,$_.i)&&$g($_.Binary,$_.i+7)){$k[$j++]=Infinity;$_.ECIbin();var _J0=$a();$k[$j++]=_J0;$_.addtocws();$_.i=$_.i+7;if($_.i==$_.msglen){$k[$j++]=Infinity;$_.finaliseBIN();var _J4=$a();$k[$j++]=_J4;$_.addtocws()}break}if($g($_.msg,$_.i)>=0){if($g($_.Binary,$_.i)||$g($_.Binary,$_.i+1)||$g($_.Binary,$_.i+2)||$g($_.Binary,$_.i+3)||$g($_.ECI,$_.i+1)&&$g($_.Binary,$_.i+8)){$k[$j++]=Infinity;$k[$j++]=$g($_.msg,$_.i);$_.addtobin();var _JT=$a();$k[$j++]=_JT;$_.addtocws();$_.i=$_.i+1;if($_.i==$_.msglen){$k[$j++]=Infinity;$_.finaliseBIN();var _JX=$a();$k[$j++]=_JX;$_.addtocws()}break}}$k[$j++]=Infinity;$_.finaliseBIN();var _JY=$a();$k[$j++]=_JY;$_.addtocws();if($_.i!=$_.msglen-1){if($g($_.msg,$_.i)==$_.fn3&&$_.i!=$_.segstart){$k[$j++]=$a([$g($_.BINvals,$_.tms)]);$_.addtocws();$_.i=$_.i+1;$_.mode=$_.C;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}if($gt($g($_.AheadA,$_.i),$g($_.AheadB,$_.i))){$k[$j++]=$a([$g($_.BINvals,$_.tma)]);$_.addtocws();$_.mode=$_.A}else{$k[$j++]=$a([$g($_.BINvals,$_.tmb)]);$_.addtocws();$_.mode=$_.B}break}break}};$_.cws=$a($_.msglen*2+1);$_.mode=$_.C;$_.bvals=$a(5);$_.bpos=0;$_.inmac=0;$_.segstart=0;$_.segend=$g($_.UntilEndSeg,0);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.msglen){break}if($_.inmac!=0){if($_.inmac!=$_.mac&&$_.i==$f($_.segend-2)){$_.i=$_.i+2;if($_.i>=$_.msglen){break}}if($_.inmac==$_.mac&&$_.i==$f($_.segend-1)){$_.i=$_.i+1;if($_.i>=$_.msglen){break}}}if($_[$g($a(["encA","encB","encC","encBIN"]),$_.mode)]()===true){break}}$_.cws=$G($_.cws,0,$_.j);$_.nd=$_.cws.length;$_.minarea=(($_.nd+3+~~($_.nd/2))*9+2)*2;if($_.ratio!=-1){$_.hgt=Math.sqrt($_.minarea/$_.ratio);$_.wid=Math.sqrt($_.minarea*$_.ratio);$_.h=~~$_.hgt;$_.w=~~$_.wid;if(($_.h+$_.w)%2==1){if($_.h*$_.w<$_.minarea){$_.h=$_.h+1;$_.w=$_.w+1}}else{if($_.hgt*$_.w<$_.wid*$_.h){$_.w=$_.w+1;if($_.h*$_.w<$_.minarea){$_.w=$_.w-1;$_.h=$_.h+1;if($_.h*$_.w<$_.minarea){$_.w=$_.w+2}}}else{$_.h=$_.h+1;if($_.h*$_.w<$_.minarea){$_.h=$_.h-1;$_.w=$_.w+1;if($_.h*$_.w<$_.minarea){$_.h=$_.h+2}}}}$_.rows=$_.h;$_.columns=$_.w}else{if($_.columns==-1){var _LN=~~(($_.minarea+$_.rows-1)/$_.rows);$k[$j++]="columns";$k[$j++]=_LN;if((_LN+$_.rows)%2==0){var _LP=$k[--$j];$k[$j++]=$f(_LP+1)}var _LQ=$k[--$j];$_[$k[--$j]]=_LQ}if($_.rows==-1){var _LW=~~(($_.minarea+$_.columns-1)/$_.columns);$k[$j++]="rows";$k[$j++]=_LW;if((_LW+$_.columns)%2==0){var _LY=$k[--$j];$k[$j++]=$f(_LY+1)}var _LZ=$k[--$j];$_[$k[--$j]]=_LZ}}$_.ndots=~~($_.rows*$_.columns/2);for(;;){var _Le=$_.nd+1;if((_Le+(~~(_Le/2)+3))*9+2>$_.ndots){break}$_.nd=$_.nd+1}$_.nc=~~($_.nd/2)+3;$_.nw=$_.nd+$_.nc;$_.rembits=$_.ndots-($_.nw*9+2);if($_.nd>$_.cws.length){$k[$j++]=Infinity;$q($_.cws);var _Lr=$_.mode==$_.BIN?109:106;$k[$j++]=_Lr;for(var _Lu=0,_Lv=$_.nd-$_.cws.length-1;_Lu<_Lv;_Lu++){$k[$j++]=106}$_.cws=$a()}var _Ly=$g($_.options,"debugcws")!==undefined;if(_Ly){$k[$j++]="bwipp.debugcws#25277";$k[$j++]=$_.cws;bwipp_raiseerror()}if($_.nw*9>$_.ndots-2){$k[$j++]="bwipp.dotcodeTooLong#25281";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}if(!bwipp_dotcode.__25311__){$_=Object.create($_);$_.encs=$a(["101010101","010101011","010101101","010110101","011010101","101010110","101011010","101101010","110101010","010101110","010110110","010111010","011010110","011011010","011101010","100101011","100101101","100110101","101001011","101001101","101010011","101011001","101100101","101101001","110010101","110100101","110101001","001010111","001011011","001011101","001101011","001101101","001110101","010010111","010011011","010011101","010100111","010110011","010111001","011001011","011001101","011010011","011011001","011100101","011101001","100101110","100110110","100111010","101001110","101011100","101100110","101101100","101110010","101110100","110010110","110011010","110100110","110101100","110110010","110110100","111001010","111010010","111010100","001011110","001101110","001110110","001111010","010011110","010111100","011001110","011011100","011100110","011101100","011110010","011110100","100010111","100011011","100011101","100100111","100110011","100111001","101000111","101100011","101110001","110001011","110001101","110010011","110011001","110100011","110110001","111000101","111001001","111010001","000101111","000110111","000111011","000111101","001001111","001100111","001110011","001111001","010001111","011000111","011100011","011110001","100011110","100111100","101111000","110001110","110011100","110111000","111000110","111001100"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__25311__=1;$_=Object.getPrototypeOf($_)}if($_.rows%2==0){$_.sixedges=$a([$a([$_.columns-1,$_.rows-2]),$a([0,$_.rows-2]),$a([$_.columns-2,$_.rows-1]),$a([1,$_.rows-1]),$a([$_.columns-1,0]),$a([0,0])])}else{$_.sixedges=$a([$a([$_.columns-2,0]),$a([$_.columns-2,$_.rows-1]),$a([$_.columns-1,1]),$a([$_.columns-1,$_.rows-2]),$a([0,0]),$a([0,$_.rows-1])])}$_.dmv=function(){var _MY=$k[--$j];var _MZ=$k[--$j];$k[$j++]=$f(_MZ+_MY*$_.columns)};$_.outline=$a($_.rows*$_.columns);for(var _Mf=0,_Me=$_.rows-1;_Mf<=_Me;_Mf+=1){$_.y=_Mf;for(var _Mi=0,_Mh=$_.columns-1;_Mi<=_Mh;_Mi+=1){$_.x=_Mi;$k[$j++]=$_.outline;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.dmv();var _Mo=$k[--$j];$p($k[--$j],_Mo,($_.x+$_.y)%2-1)}}var _Mq=$_.sixedges;for(var _Mr=0,_Ms=_Mq.length;_Mr<_Ms;_Mr++){$k[$j++]=$_.outline;$q($g(_Mq,_Mr));$_.dmv();var _Mv=$k[--$j];$p($k[--$j],_Mv,1)}$_.clearcol=function(){$_.x=$k[--$j];$k[$j++]=true;for(var _N1=$_.x&1,_N0=$_.rows-1;_N1<=_N0;_N1+=2){$k[$j++]=$_.x;$k[$j++]=_N1;$_.dmv();if($g($_.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$_.clearrow=function(){$_.y=$k[--$j];$k[$j++]=true;for(var _NA=$_.y&1,_N9=$_.columns-1;_NA<=_N9;_NA+=2){$k[$j++]=_NA;$k[$j++]=$_.y;$_.dmv();if($g($_.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$_.evalsymbol=function(){$_.sym=$k[--$j];$_.worst=9999999;var _NK=$a([$a(["x",0]),$a(["x",1]),$a(["y",0]),$a(["y",1])]);for(var _NL=0,_NM=_NK.length;_NL<_NM;_NL++){$q($g(_NK,_NL));$_.fl=$k[--$j];$_.dir=$k[--$j];$_.sum=0;$_.first=-1;$_.last=-1;var _NR=$eq($_.dir,"x")?$_.columns:$_.rows;for(var _NT=0,_NS=_NR-1;_NT<=_NS;_NT+=1){$_[$_.dir]=_NT;var _NV=$_.sym;var _NX=$_[$_.dir];var _NZ=$eq($_.dir,"x")?$_.rows:$_.columns;var _Nc=(_NZ-1)*$_.fl;if($eq($_.dir,"y")){var _=_Nc;_Nc=_NX;_NX=_}$k[$j++]=_NV;$k[$j++]=_NX;$k[$j++]=_Nc;$_.dmv();var _Nd=$k[--$j];if($g($k[--$j],_Nd)==1){if($_.first==-1){$_.first=$_[$_.dir]}$_.last=$_[$_.dir];$_.sum=$_.sum+1}}var _Nq=$eq($_.dir,"x")?$_.rows:$_.columns;var _Nr=$f($f($_.sum+$_.last)-$_.first)*_Nq;$k[$j++]=_Nr;if(_Nr<$_.worst){$_.worst=$k[--$j]}else{$j--}}$_.pen=0;if($_.rows%2==1||$_.rows<=12){$_.sum=0;$_.p=0;for(var _Ny=1,_Nx=$_.columns-2;_Ny<=_Nx;_Ny+=1){$k[$j++]=_Ny;$_.clearcol();if($k[--$j]){$_.sum=$_.sum+1;$k[$j++]="p";if($_.sum==1){$k[$j++]=$_.rows}else{$k[$j++]=$_.p*$_.rows}var _O5=$k[--$j];$_[$k[--$j]]=_O5}else{$_.sum=0;$_.pen=$_.pen+$_.p;$_.p=0}}$_.pen=$_.pen+$_.p}if($_.rows%2==0||$_.columns<=12){$_.sum=0;$_.p=0;for(var _OF=1,_OE=$_.rows-2;_OF<=_OE;_OF+=1){$k[$j++]=_OF;$_.clearrow();if($k[--$j]){$_.sum=$_.sum+1;$k[$j++]="p";if($_.sum==1){$k[$j++]=$_.columns}else{$k[$j++]=$_.p*$_.columns}var _OM=$k[--$j];$_[$k[--$j]]=_OM}else{$_.sum=0;$_.pen=$_.pen+$_.p;$_.p=0}}$_.pen=$_.pen+$_.p}$k[$j++]=Infinity;for(var _OT=0,_OU=($_.columns+4)*2;_OT<_OU;_OT++){$k[$j++]=0}for(var _OY=0,_OZ=$_.columns,_OX=$_.sym.length-1;_OZ<0?_OY>=_OX:_OY<=_OX;_OY+=_OZ){$k[$j++]=0;$k[$j++]=0;$q($G($_.sym,_OY,$_.columns));$k[$j++]=0;$k[$j++]=0}for(var _Oe=0,_Of=($_.columns+4)*2;_Oe<_Of;_Oe++){$k[$j++]=0}$_.symp=$a();$_.columns=$_.columns+4;$_.rows=$_.rows+4;$_.sum=0;for(var _Ol=2,_Ok=$_.rows-3;_Ol<=_Ok;_Ol+=1){$_.y=_Ol;for(var _Op=($_.y&1)+2,_Oo=$_.columns-3;_Op<=_Oo;_Op+=2){$_.x=_Op;for(var _Oq=0,_Or=1;_Oq<_Or;_Oq++){$k[$j++]=$_.symp;$k[$j++]=$_.x-1;$k[$j++]=$_.y-1;$_.dmv();var _Ov=$k[--$j];if($g($k[--$j],_Ov)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x+1;$k[$j++]=$_.y-1;$_.dmv();var _P1=$k[--$j];if($g($k[--$j],_P1)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x-1;$k[$j++]=$_.y+1;$_.dmv();var _P7=$k[--$j];if($g($k[--$j],_P7)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x+1;$k[$j++]=$_.y+1;$_.dmv();var _PD=$k[--$j];if($g($k[--$j],_PD)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.dmv();var _PJ=$k[--$j];if($g($k[--$j],_PJ)==0){$_.sum=$_.sum+1;break}$k[$j++]=$_.symp;$k[$j++]=$_.x-2;$k[$j++]=$_.y;$_.dmv();var _PQ=$k[--$j];if($g($k[--$j],_PQ)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x;$k[$j++]=$_.y-2;$_.dmv();var _PW=$k[--$j];if($g($k[--$j],_PW)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x+2;$k[$j++]=$_.y;$_.dmv();var _Pc=$k[--$j];if($g($k[--$j],_Pc)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x;$k[$j++]=$_.y+2;$_.dmv();var _Pi=$k[--$j];if($g($k[--$j],_Pi)==1){break}$_.sum=$_.sum+1}}}$_.columns=$_.columns-4;$_.rows=$_.rows-4;if($_.worst==0){$k[$j++]=-99999}else{$k[$j++]=$f($f($_.worst-$_.sum*$_.sum)-$_.pen)}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Pt=0,_Pu=112;_Pt<_Pu;_Pt++){var _Pv=$k[--$j];$k[$j++]=_Pv;$k[$j++]=_Pv*3%113}$_.rsalog=$a();$_.step=~~($_.nw/112)+1;$_.offset=function(){var _Pz=$k[--$j];$k[$j++]=$f(_Pz*$_.step+$_.start)};$_.bestscore=-99999999;$k[$j++]="masks";if($_.mask!=-1){$k[$j++]=$a([$_.mask])}else{if($_.fast){$k[$j++]=$a([3,2,1,0])}else{$k[$j++]=$a([0,1,2,3])}}var _Q7=$k[--$j];$_[$k[--$j]]=_Q7;$_.litmasks=$a(4);$F($_.masks,function(){$_.mask=$k[--$j];$k[$j++]=Infinity;var _QG=$_.cws;$k[$j++]=$_.mask;$k[$j++]=$g($a([0,3,7,17]),$_.mask);$k[$j++]=0;for(var _QH=0,_QI=_QG.length;_QH<_QI;_QH++){var _QK=$k[--$j];var _QL=$k[--$j];$k[$j++]=$f($g(_QG,_QH)+_QK)%113;$k[$j++]=_QL;$k[$j++]=$f(_QK+_QL)}$j-=2;for(var _QN=0,_QO=$_.nc;_QN<_QO;_QN++){$k[$j++]=0}$_.rscws=$a();for(var _QS=0,_QR=$_.step-1;_QS<=_QR;_QS+=1){$_.start=_QS;$_.ND=~~(($_.nd+1-$_.start+$_.step-1)/$_.step);$_.NW=~~(($_.nw+1-$_.start+$_.step-1)/$_.step);$_.NC=$_.NW-$_.ND;$k[$j++]=Infinity;$k[$j++]=1;for(var _Qe=0,_Qf=$_.NC;_Qe<_Qf;_Qe++){$k[$j++]=0}$_.coeffs=$a();for(var _Qj=1,_Qi=$_.NC;_Qj<=_Qi;_Qj+=1){$_.i=_Qj;for(var _Ql=$_.NC;_Ql>=1;_Ql-=1){$_.j=_Ql;$p($_.coeffs,$_.j,$f($f($g($_.coeffs,$_.j)+113)-$g($_.rsalog,$_.i)*$g($_.coeffs,$_.j-1)%113)%113)}}for(var _Qz=0,_Qy=$_.ND-1;_Qz<=_Qy;_Qz+=1){$k[$j++]="t";$k[$j++]=$_.rscws;$k[$j++]=_Qz;$_.offset();var _R1=$k[--$j];var _R3=$g($k[--$j],_R1);$k[$j++]=_R3;$k[$j++]=$_.rscws;$k[$j++]=$_.ND;$_.offset();var _R6=$k[--$j];var _R8=$g($k[--$j],_R6);var _R9=$k[--$j];$_[$k[--$j]]=$f(_R9+_R8)%113;for(var _RD=0,_RC=$_.NC-2;_RD<=_RC;_RD+=1){$_.j=_RD;$k[$j++]=$_.rscws;$k[$j++]=$_.ND+$_.j;$_.offset();$k[$j++]=$_.rscws;$k[$j++]=$_.ND+$_.j+1;$_.offset();var _RK=$k[--$j];var _RM=$g($k[--$j],_RK);var _RR=$k[--$j];$p($k[--$j],_RR,$f($f(_RM+113)-$_.t*$g($_.coeffs,$_.j+1)%113)%113)}$k[$j++]=$_.rscws;$k[$j++]=$_.ND+$_.NC-1;$_.offset();var _Ra=$k[--$j];$p($k[--$j],_Ra,$f(113-$_.t*$g($_.coeffs,$_.NC)%113)%113)}for(var _Rf=$_.ND,_Re=$_.NW-1;_Rf<=_Re;_Rf+=1){$k[$j++]=_Rf;$k[$j++]=$_.rscws;$k[$j++]=_Rf;$_.offset();var _Ri=$k[--$j];var _Rj=$k[--$j];var _Rk=$k[--$j];$k[$j++]=_Rj;$k[$j++]=_Ri;$k[$j++]=113;$k[$j++]=$_.rscws;$k[$j++]=_Rk;$_.offset();var _Rl=$k[--$j];var _Rn=$g($k[--$j],_Rl);var _Ro=$k[--$j];var _Rp=$k[--$j];$p($k[--$j],_Rp,$f(_Ro-_Rn)%113)}}$_.bits=$s($_.ndots);$P($_.bits,0,$g($a(["00","01","10","11"]),$_.mask));for(var _Rz=1,_Ry=$_.nw;_Rz<=_Ry;_Rz+=1){$_.i=_Rz;$P($_.bits,($_.i-1)*9+2,$g($_.encs,$g($_.rscws,$_.i)))}if($_.rembits>0){$P($_.bits,$_.nw*9+2,$G("11111111111111111",0,$_.rembits))}var _SC=$_.outline;$_.pixs=$A($a(_SC.length),_SC);$_.posx=0;$k[$j++]="posy";if($_.rows%2==0){$k[$j++]=0}else{$k[$j++]=$_.rows-1}var _SH=$k[--$j];$_[$k[--$j]]=_SH;var _SL=$G($_.bits,0,$_.bits.length-6);for(var _SM=0,_SN=_SL.length;_SM<_SN;_SM++){$k[$j++]=$g(_SL,_SM);for(;;){$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.dmv();var _SS=$k[--$j];if($g($k[--$j],_SS)==-1){break}if($_.rows%2==0){$_.posy=$_.posy+1;if($_.posy==$_.rows){$_.posy=0;$_.posx=$_.posx+1}}else{$_.posx=$_.posx+1;if($_.posx==$_.columns){$_.posx=0;$_.posy=$_.posy-1}}}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.dmv();var _Sh=$k[--$j];var _Si=$k[--$j];$p(_Si,_Sh,$f($k[--$j]-48))}for(var _Sk=0;_Sk<=5;_Sk+=1){$_.i=_Sk;$k[$j++]=$_.pixs;$q($g($_.sixedges,$_.i));$_.dmv();var _St=$k[--$j];$p($k[--$j],_St,$g($_.bits,$_.bits.length-6+$_.i)-48)}$k[$j++]="score";$k[$j++]=$_.pixs;$_.evalsymbol();var _Sw=$k[--$j];$_[$k[--$j]]=_Sw;if($_.score>$_.bestscore){$_.bestsym=$_.pixs;$_.bestscore=$_.score;if($_.fast&&$_.bestscore>~~($_.rows*$_.columns/2)){return true}}var _T6=$_.pixs;$_.litmask=$A($a(_T6.length),_T6);for(var _T9=0;_T9<=5;_T9+=1){$_.i=_T9;$k[$j++]=$_.litmask;$q($g($_.sixedges,$_.i));$_.dmv();var _TE=$k[--$j];$p($k[--$j],_TE,1)}$p($_.litmasks,$_.mask,$_.litmask);if($_.fast){$k[$j++]="score";$k[$j++]=$_.litmask;$_.evalsymbol();var _TL=$k[--$j];$_[$k[--$j]]=_TL;if($gt($_.score,$_.bestscore)){$_.bestsym=$_.litmask;$_.bestscore=$_.score;if($_.bestscore>~~($_.rows*$_.columns/2)){return true}}}});$_.pixs=$_.bestsym;if(!$_.fast&&$_.bestscore<=~~($_.rows*$_.columns/2)){$_.bestscore=-99999999;$F($_.masks,function(){$_.litmask=$g($_.litmasks,$k[--$j]);$k[$j++]="score";$k[$j++]=$_.litmask;$_.evalsymbol();var _Te=$k[--$j];$_[$k[--$j]]=_Te;if($_.score>$_.bestscore){$_.bestsym=$_.litmask;$_.bestscore=$_.score}});$_.pixs=$_.bestsym}var _Tr=new Map([["ren",bwipp_renmatrix],["dotty",true],["pixs",$_.pixs],["pixx",$_.columns],["pixy",$_.rows],["height",$_.rows*2/72],["width",$_.columns*2/72],["opt",$_.options]]);$k[$j++]=_Tr;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ultracode(){$_=Object.create($_);$_.dontdraw=false;$_.eclevel="EC2";$_.parse=false;$_.parsefnc=false;$_.start=257;$_.link1=0;$_.raw=false;$_.rev=2;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _2=$_.rev;if(_2!=1&&_2!=2){$k[$j++]="bwipp.ultracodeInvalidRevision#25672";$k[$j++]="Valid revisions are 1 and 2";bwipp_raiseerror()}var _4=$_.eclevel.length==3;$k[$j++]=_4;if(_4){$j--;$k[$j++]=$G($_.eclevel,0,2);if($eq("EC","EC")){$j--;var _9=$g($_.eclevel,2)-48;var _B=$_.rev==2?1:0;$k[$j++]=_9>=_B&&_9<=5}}if($nt($k[--$j])){$k[$j++]="bwipp.ultracodeInvalidErrorCorrectionLevel#25681";$k[$j++]="Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1";bwipp_raiseerror()}bwipp_loadctx(bwipp_ultracode);if($_.raw){$_.dcws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.dcws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.dcws=$G($_.dcws,0,$_.j)}else{$_.fn1=-1;$_.fn3=-2;var _X=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC3",$_.fn3]]);$_.fncvals=_X;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _a=$k[--$j];$_[$k[--$j]]=_a;$_.msglen=$_.msg.length;$_.scr=$a([]);$_.scp=$a([]);$k[$j++]=Infinity;$q($_.scr);$q($_.scp);$F($_.msg,function(){var _i=$k[--$j];$k[$j++]=_i;if(_i==$_.fn1){$j--;$k[$j++]=268}var _k=$k[--$j];$k[$j++]=_k;if(_k==$_.fn3){$j--;$k[$j++]=269}});$_.dcws=$a()}var _o=$g($_.options,"debugcws")!==undefined;if(_o){$k[$j++]="bwipp.debugcws#25725";$k[$j++]=$_.dcws;bwipp_raiseerror()}$_.mcc=$_.dcws.length+3;$_.eclval=$g($_.eclevel,2)-48;if($_.eclval!=0){$k[$j++]="qcc";$k[$j++]=$g($a([0,1,2,4,6,8]),$_.eclval);$k[$j++]=~~($_.mcc/25);if($_.mcc%25!=0){var _z=$k[--$j];$k[$j++]=$f(_z+1)}var _10=$k[--$j];var _11=$k[--$j];$_[$k[--$j]]=$f(_11*_10+5)}else{$_.qcc=3}$_.acc=$_.qcc-3+78*$_.link1;$_.tcc=$_.mcc+$_.qcc;if(!bwipp_ultracode.__25747__){$_=Object.create($_);$_.metrics=$a([$a([2,7,37,5]),$a([3,36,84,13]),$a([4,85,161,22]),$a([5,142,282,29])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__25747__=1;$_=Object.getPrototypeOf($_)}var _1D=$_.metrics;for(var _1E=0,_1F=_1D.length;_1E<_1F;_1E++){$_.m=$g(_1D,_1E);$_.rows=$g($_.m,0);$_.minc=$g($_.m,1);$_.maxc=$g($_.m,2);$_.mcol=$g($_.m,3);$_.okay=true;if($_.tcc<$_.minc||$_.tcc>$_.maxc){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.ultracodeNoValidSymbol#25761";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}for(var _1W=$_.mcol;_1W<=61;_1W+=1){$_.columns=_1W;$k[$j++]=$_.columns;if($_.columns>=15){var _1Z=$k[--$j];$k[$j++]=$f(_1Z-1)}if($_.columns>=31){var _1b=$k[--$j];$k[$j++]=$f(_1b-1)}if($_.columns>=47){var _1d=$k[--$j];$k[$j++]=$f(_1d-1)}var _1h=$f($f($k[--$j]*$_.rows-3)-$_.tcc);$k[$j++]=_1h;if(_1h>=0){$_.pads=$k[--$j];break}$j--}$_.dcc=$f($_.columns-$_.mcol);$k[$j++]=Infinity;$k[$j++]=$_.start;$k[$j++]=$_.mcc;$k[$j++]=$_.acc;$q($_.dcws);for(var _1q=0,_1r=$_.qcc;_1q<_1r;_1q++){$k[$j++]=0}$k[$j++]=0;$_.rsseq=$a();$k[$j++]=Infinity;$k[$j++]=1;for(var _1t=0,_1u=282;_1t<_1u;_1t++){var _1v=$k[--$j];$k[$j++]=_1v;$k[$j++]=_1v*3%283}$_.rsalog=$a();$_.rslog=$a(283);for(var _1y=1;_1y<=282;_1y+=1){$p($_.rslog,$g($_.rsalog,_1y),_1y)}$_.rsprod=function(){var _22=$k[--$j];var _23=$k[--$j];$k[$j++]=_23;$k[$j++]=_22;if(_22!=0&&_23!=0){var _26=$g($_.rslog,$k[--$j]);var _2B=$g($_.rsalog,$f(_26+$g($_.rslog,$k[--$j]))%282);$k[$j++]=_2B}else{$j-=2;$k[$j++]=0}};$_.n=$_.mcc;$_.k=$_.qcc;$k[$j++]=Infinity;$k[$j++]=1;for(var _2F=0,_2G=$_.k;_2F<_2G;_2F++){$k[$j++]=0}$_.coeffs=$a();for(var _2K=1,_2J=$_.k;_2K<=_2J;_2K+=1){$_.i=_2K;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _2R=$_.i-1;_2R>=1;_2R-=1){$_.j=_2R;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _2d=$k[--$j];var _2e=$k[--$j];var _2f=$k[--$j];$p($k[--$j],_2f,$f(_2e+_2d)%283)}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _2n=$k[--$j];var _2o=$k[--$j];$p($k[--$j],_2o,_2n)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _2u=$_.coeffs.length-1;_2u>=0;_2u-=2){var _2v=$_.coeffs;$p(_2v,_2u,$f(283-$g(_2v,_2u)))}for(var _2z=0,_2y=$_.n-1;_2z<=_2y;_2z+=1){$_.t=$f($g($_.rsseq,_2z)+$g($_.rsseq,$_.n))%283;for(var _37=0,_36=$_.k-1;_37<=_36;_37+=1){$_.j=_37;$p($_.rsseq,$_.n+$_.j,$f($g($_.rsseq,$_.n+$_.j+1)+$f(283-$_.t*$g($_.coeffs,$_.k-$_.j-1)%283))%283)}}for(var _3O=$_.n,_3N=$_.n+$_.k;_3O<=_3N;_3O+=1){$p($_.rsseq,_3O,$f(283-$g($_.rsseq,_3O))%283)}$_.ecws=$G($_.rsseq,$_.n,$_.k);var _3X=$g($_.options,"debugecc")!==undefined;if(_3X){$k[$j++]="bwipp.debugecc#25829";$k[$j++]=$_.ecws;bwipp_raiseerror()}if(!bwipp_ultracode.__25888__){$_=Object.create($_);$_.tiles=$a([13135,13136,13153,13156,13163,13165,13513,13515,13516,13531,13535,13536,13561,13563,13565,13613,13615,13616,13631,13635,13636,13651,13653,13656,15135,15136,15153,15163,15165,15313,15315,15316,15351,15353,15356,15361,15363,15365,15613,15615,15616,15631,15635,15636,15651,15653,15656,16135,16136,16153,16156,16165,16313,16315,16316,16351,16353,16356,16361,16363,16365,16513,16515,16516,16531,16535,16536,16561,16563,16565,31315,31316,31351,31356,31361,31365,31513,31515,31516,31531,31535,31536,31561,31563,31565,31613,31615,31631,31635,31636,31651,31653,31656,35131,35135,35136,35151,35153,35156,35161,35163,35165,35315,35316,35351,35356,35361,35365,35613,35615,35616,35631,35635,35636,35651,35653,35656,36131,36135,36136,36151,36153,36156,36163,36165,36315,36316,36351,36356,36361,36365,36513,36515,36516,36531,36535,36536,36561,36563,36565,51313,51315,51316,51351,51353,51356,51361,51363,51365,51513,51516,51531,51536,51561,51563,51613,51615,51616,51631,51635,51636,51651,51653,51656,53131,53135,53136,53151,53153,53156,53161,53163,53165,53513,53516,53531,53536,53561,53563,53613,53615,53616,53631,53635,53636,53651,53653,53656,56131,56135,56136,56151,56153,56156,56161,56163,56165,56313,56315,56316,56351,56353,56356,56361,56363,56365,56513,56516,56531,56536,56561,56563,61313,61315,61316,61351,61353,61356,61361,61363,61365,61513,61515,61516,61531,61535,61536,61561,61563,61565,61615,61631,61635,61651,61653,63131,63135,63136,63151,63153,63156,63161,63163,63165,63513,63515,63516,63531,63535,63536,63561,63563,63565,63613,63615,63631,63635,63651,63653,65131,65135,65136,65151,65153,65156,65161,65163,65165,65313,65315,65316,65351,65353,65356,65361,65363,65365,65613,65615,65631,65635,65651,65653,56565,51515]);$_.dccurev1=$a([51363,51563,51653,53153,53163,53513,53563,53613,53653,56153,56163,56313,56353,56363,56513,56563,51316,51356,51536,51616,53156,53516,53536,53616,53636,53656,56136,56156,56316,56356,56516,56536]);$_.dcclrev1=$a([61351,61361,61531,61561,61631,61651,63131,63151,63161,63531,63561,63631,65131,65161,65351,65631,31351,31361,31531,31561,31631,31651,35131,35151,35161,35361,35631,35651,36131,36151,36351,36531]);$_.dccurev2=$a([15316,16316,13516,16516,13616,15616,13136,15136,16136,13536,16536,13636,13156,16156,15356,13656,15313,16313,13513,16513,13613,15613,13153,15153,16153,16353,13653,15653,13163,15163,15363,13563]);$_.dcclrev2=$a([36315,36515,35615,35135,36135,31535,36535,31635,35635,35165,36165,31365,35365,36365,31565,36565,61315,65315,63515,61615,65135,61535,63535,61635,63635,65635,63165,65165,61365,65365,61565,63565]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__25888__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="dccu";if($_.rev==1){$k[$j++]=$_.dccurev1}else{$k[$j++]=$_.dccurev2}var _3i=$k[--$j];$_[$k[--$j]]=_3i;$k[$j++]="dccl";if($_.rev==1){$k[$j++]=$_.dcclrev1}else{$k[$j++]=$_.dcclrev2}var _3n=$k[--$j];$_[$k[--$j]]=_3n;$_.rows=$f($_.rows*6+1);$_.columns=$_.columns+6;$k[$j++]=Infinity;for(var _3t=0,_3u=$_.rows*$_.columns;_3t<_3u;_3t++){$k[$j++]=-1}$_.pixs=$a();$_.qmv=function(){var _3x=$k[--$j];var _3y=$k[--$j];$k[$j++]=$f(_3y+_3x*$_.columns)};for(var _41=0,_40=$_.columns-1;_41<=_40;_41+=1){$_.i=_41;for(var _44=0,_43=$f($_.rows-1);_44<=_43;_44+=6){$_.j=_44;if($_.i>=5){$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _4A=$k[--$j];$p($k[--$j],_4A,$_.i%2*9)}}$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=0;$_.qmv();var _4E=$k[--$j];$p($k[--$j],_4E,9);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$f($_.rows-1);$_.qmv();var _4J=$k[--$j];$p($k[--$j],_4J,9)}for(var _4N=1,_4M=$f($_.rows-2);_4N<=_4M;_4N+=1){$_.i=_4N;for(var _4Q=3,_4P=$_.columns-1;_4Q<=_4P;_4Q+=16){$_.j=_4Q;$k[$j++]=$_.pixs;$k[$j++]=$_.j;$k[$j++]=$_.i;$_.qmv();var _4V=$k[--$j];$p($k[--$j],_4V,(1-$_.i%2)*9)}$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i;$_.qmv();var _4Z=$k[--$j];$p($k[--$j],_4Z,9);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i;$_.qmv();var _4e=$k[--$j];$p($k[--$j],_4e,(1-$_.i%2)*9);$k[$j++]=$_.pixs;$k[$j++]=2;$k[$j++]=$_.i;$_.qmv();var _4i=$k[--$j];$p($k[--$j],_4i,0);$k[$j++]=$_.pixs;$k[$j++]=3;$k[$j++]=$_.i;$_.qmv();var _4m=$k[--$j];$p($k[--$j],_4m,9);$k[$j++]=$_.pixs;$k[$j++]=4;$k[$j++]=$_.i;$_.qmv();var _4q=$k[--$j];$p($k[--$j],_4q,0);$k[$j++]=$_.pixs;$k[$j++]=$_.columns-1;$k[$j++]=$_.i;$_.qmv();var _4v=$k[--$j];$p($k[--$j],_4v,9)}$_.i=~~($_.rows/2)-5;$k[$j++]=Infinity;var _52=$R($s(5),$g($_.dccu,$_.dcc),10);for(var _53=0,_54=_52.length;_53<_54;_53++){$k[$j++]=$g(_52,_53)-48}var _5A=$R($s(5),$g($_.dccl,$_.dcc),10);$k[$j++]=0;for(var _5B=0,_5C=_5A.length;_5B<_5C;_5B++){$k[$j++]=$g(_5A,_5B)-48}var _5E=$a();for(var _5F=0,_5G=_5E.length;_5F<_5G;_5F++){$k[$j++]=$g(_5E,_5F);$k[$j++]=$_.pixs;$k[$j++]=2;$k[$j++]=$_.i;$_.qmv();var _5K=$k[--$j];var _5L=$k[--$j];$p(_5L,_5K,$k[--$j]);$_.i=$_.i+1}$k[$j++]=Infinity;$k[$j++]=$_.start;$k[$j++]=$_.mcc;$q($_.ecws);$k[$j++]=$_.tcc;$k[$j++]=283;$k[$j++]=$_.acc;$q($_.dcws);for(var _5V=0,_5W=$_.pads;_5V<_5W;_5V++){$k[$j++]=284}$k[$j++]=$_.qcc;$_.tileseq=$a();$_.x=5;$_.y=1;var _5Z=$_.tileseq;for(var _5a=0,_5b=_5Z.length;_5a<_5b;_5a++){var _5g=$R($s(5),$g($_.tiles,$g(_5Z,_5a)),10);for(var _5h=0,_5i=_5g.length;_5h<_5i;_5h++){$k[$j++]=$g(_5g,_5h);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _5n=$k[--$j];var _5o=$k[--$j];$p(_5o,_5n,$f($k[--$j]-48));$_.y=$_.y+1}if($_.y!=$f($_.rows-1)){$_.y=$_.y+1}else{$_.x=$_.x+1;$_.y=1;$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _5y=$k[--$j];if($g($k[--$j],_5y)!=-1){$_.x=$_.x+1}}}if(!bwipp_ultracode.__25970__){$_=Object.create($_);var _62=new Map([[0,"FFFFFF"],[9,"000000"],[1,"00FFFF"],[3,"FF00FF"],[5,"FFFF00"],[6,"00FF00"]]);$_.colormap=_62;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__25970__=1;$_=Object.getPrototypeOf($_)}var _6B=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.columns],["pixy",$_.rows],["height",$_.rows/72*2],["width",$_.columns/72*2],["colormap",$_.colormap],["opt",$_.options]]);$k[$j++]=_6B;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_jabcode(){$_=Object.create($_);$_.dontdraw=false;$_.rows=-1;$_.columns=-1;$_.slave=false;$_.colors=16;$_.eclevel=6;$_.raw=false;$_.parse=false;$_.parsefnc=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.databpm=~~Math.round(Math.log($_.colors)/Math.log(2));var _3=$_.colors;$k[$j++]="metabpm";$k[$j++]=_3;if(_3>8){$j--;$k[$j++]=8}var _4=$k[--$j];$_[$k[--$j]]=~~Math.round(Math.log(_4)/Math.log(2));$_.fn1=-1;var _9=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1]]);$_.fncvals=_9;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _C=$k[--$j];$_[$k[--$j]]=_C;$_.msglen=$_.msg.length;$_.addtobits=function(){var _F=$k[--$j];$P($_.bits,$_.j,_F);$_.j=_F.length+$_.j};$_.tofixedbits=function(){var _K=$Z($s(13),"0000000000000");var _L=$k[--$j];var _O=$R($s(13),$k[--$j],2);$P(_K,$f(_L-_O.length),_O);$k[$j++]=$G(_K,0,_L)};var _R=$_.msglen<=15?4:17;$_.bits=$s(7+_R+$_.msglen*8+12);$_.j=0;$k[$j++]=31;$k[$j++]=5;$_.tofixedbits();$_.addtobits();$k[$j++]="00";$_.addtobits();if($_.msglen<=15){$k[$j++]=$_.msglen;$k[$j++]=4;$_.tofixedbits();$_.addtobits()}else{$k[$j++]="0000";$_.addtobits();$k[$j++]=$_.msglen-16;$k[$j++]=13;$_.tofixedbits();$_.addtobits()}for(var _Z=0,_Y=$_.msglen-1;_Z<=_Y;_Z+=1){$k[$j++]=$g($_.msg,_Z);$k[$j++]=8;$_.tofixedbits();$_.addtobits()}$k[$j++]=28;$k[$j++]=5;$_.tofixedbits();$_.addtobits();$k[$j++]=31;$k[$j++]=5;$_.tofixedbits();$_.addtobits();$k[$j++]="11";$_.addtobits();$_.diffside=21;$_.sameshape=false;$_.sameecc=false;$_.hasslaves=false;$_.metrics=function(){$_.mc=$k[--$j];$_.mr=$k[--$j];var _e=$_.mc;var _f=$_.mr;var _g=$_.mc;var _h=$_.mr;var _i=$_.colors;var _j=64;if(64>_i){var _=_i;_i=_j;_j=_}var _l=$_.slave?7:17;$k[$j++]=_e*_f;$k[$j++]=((~~($f(_g-25)/16)+2)*(~~($f(_h-25)/16)+2)-4)*7;$k[$j++]=_j*2;$k[$j++]=_l*4;if(!$_.slave){var _p=$eq($_.mr,$_.mc)?0:1;$_.metass=_p;var _q=$_.mr;var _r=$_.mc;if($lt(_q,_r)){var _=_r;_r=_q;_q=_}$_.metavf=$g($a([0,1,2,2,3,3,3,3]),~~($f(_q-21)/16));$k[$j++]="metavlen";if($_.metass==0){$k[$j++]=$a([2,2,3,4])}else{$k[$j++]=$a([4,6,8,10])}var _z=$g($k[--$j],$_.metavf);$_[$k[--$j]]=_z;$_.metaelen=$f($_.metavf*2+10);$k[$j++]=$f($f(7+$_.metavlen)+$_.metaelen);if($_.hasslaves){var _15=$k[--$j];$k[$j++]=$f(_15+4)}var _18=~~Math.ceil($k[--$j]*2/$_.metabpm);$_.nummetabits=$f(_18*$_.metabpm+6);$k[$j++]=_18+6}else{$k[$j++]=3;if(!$_.sameshape){var _1B=$k[--$j];$k[$j++]=$f(_1B+5)}if($_.hasslaves){var _1D=$k[--$j];$k[$j++]=$f(_1D+3)}if(!$_.sameecc){var _1F=$_.mr;var _1G=$_.mc;if($lt(_1F,_1G)){var _=_1G;_1G=_1F;_1F=_}var _1J=$k[--$j];$k[$j++]=$f(_1J+$g($a([10,12,14,14,16,16,16,16]),~~($f(_1F-21)/16)))}var _1M=~~Math.ceil($k[--$j]*2/$_.metabpm);$_.nummetabits=_1M*$_.metabpm;$k[$j++]=_1M}var _1O=$k[--$j];$_.nummetamodules=_1O;var _1P=$k[--$j];var _1Q=$k[--$j];var _1R=$k[--$j];$_.numdatamodules=$f($k[--$j]-$f(_1R+$f(_1Q+$f(_1P+_1O))));$_.numdatabits=$_.numdatamodules*$_.databpm};$_.coderate=$g($a([.67,.63,.57,.55,.5,.43,.34,.25,.2,.17,.14]),$_.eclevel);$_.grosslen=~~Math.ceil($_.bits.length/$_.coderate);$_.snapsize=function(){var _1b=~~Math.ceil($k[--$j])-18;$k[$j++]=_1b;if(_1b<0){$j--;$k[$j++]=0}var _1c=$k[--$j];$k[$j++]=~~(_1c/4)*4+21};if($_.rows==-1&&$_.columns==-1){$k[$j++]="size";$k[$j++]=Math.sqrt($_.grosslen);$_.snapsize();var _1g=$k[--$j];$_[$k[--$j]]=_1g;for(;;){$k[$j++]=$_.size;$k[$j++]=$_.size;$_.metrics();if($_.grosslen<=$_.numdatabits){break}$_.size=$f($_.size+4)}$_.rows=$_.size;$_.columns=$_.size}else{if($_.columns==-1&&$_.rows!=-1){$k[$j++]="columns";$k[$j++]=$_.grosslen/$_.rows;$_.snapsize();var _1t=$k[--$j];$_[$k[--$j]]=_1t;for(;;){$k[$j++]=$_.rows;$k[$j++]=$_.columns;$_.metrics();if($_.grosslen<=$_.numdatabits){break}$_.columns=$f($_.columns+4)}}if($_.rows==-1&&$_.columns!=-1){$k[$j++]="rows";$k[$j++]=$_.grosslen/$_.columns;$_.snapsize();var _24=$k[--$j];$_[$k[--$j]]=_24;for(;;){$k[$j++]=$_.rows;$k[$j++]=$_.columns;$_.metrics();if($_.grosslen<=$_.numdatabits){break}$_.rows=$f($_.rows+4)}}if($_.rows!=-1&&$_.columns!=-1){$k[$j++]=$_.rows;$k[$j++]=$_.columns;$_.metrics()}}$_.C=$_.numdatabits;$_.cols=$_.columns;if($_.rows>145||$_.cols>145){$k[$j++]="bwipp.jabcodeNoValidSymbol#26182";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}$_.min=$_.C;for(var _2K=3;_2K<=8;_2K+=1){$_.i=_2K;for(var _2M=$_.i+1;_2M<=9;_2M+=1){$_.j=_2M;$_.dist=~~($_.C/$_.j)*$_.j-~~($_.C/$_.j)*$_.i-$_.bits.length;if($_.dist<$_.min&&$_.dist>=0){$_.datawc=$_.i;$_.datawr=$_.j;$_.min=$_.dist}}}$_.tmpbits=$s(~~($_.C/$_.datawr)*$_.datawr-~~($_.C/$_.datawr)*$_.datawc);$P($_.tmpbits,0,$_.bits);for(var _2m=$_.bits.length,_2l=$_.tmpbits.length-1;_2m<=_2l;_2m+=1){var _2o=$g($_.tmpbits,_2m-1);$k[$j++]=_2m;$k[$j++]=_2o;if(_2o%2==0){var _2p=$k[--$j];$k[$j++]=$f(_2p+1)}else{var _2q=$k[--$j];$k[$j++]=$f(_2q-1)}var _2s=$k[--$j];$p($_.tmpbits,$k[--$j],_2s)}$_.bits=$_.tmpbits;$_.m0=22609+1;$_.m1=62509-65536;$_.m2=19605;$_.m3=32557;$_.lcg64_temper=function(){$_.p00=$_.m0*$_.s0;$_.p01=$_.m0*$_.s1;$_.p02=$_.m0*$_.s2;$_.p03=$_.m0*$_.s3;$_.p10=$_.m1*$_.s0;$_.p11=$_.m1*$_.s1;$_.p12=$_.m1*$_.s2;$_.p13=$_.m1*$_.s3;$_.p20=$_.m2*$_.s0;$_.p21=$_.m2*$_.s1;$_.p22=$_.m2*$_.s2;$_.p23=$_.m2*$_.s3;$_.p30=$_.m3*$_.s0;$_.p31=$_.m3*$_.s1;$_.p32=$_.m3*$_.s2;$_.p33=$_.m3*$_.s3;$_.s3=$_.p33%65536+1;$_.s2=$_.p32%65536+~~($_.p33/65536)+$_.p23%65536;$_.s1=$_.p31%65536+~~($_.p32/65536)+($_.p22%65536+~~($_.p23/65536))+$_.p13%65536;$_.s0=$_.p30%65536+~~($_.p31/65536)+($_.p21%65536+~~($_.p22/65536))+($_.p12%65536+~~($_.p13/65536))+$_.p03%65536;$_.s3=$_.s3+65536;$_.s2=$_.s2+65535;$_.s1=$_.s1+65535;$_.s0=$_.s0+65535;$_.s2=~~($_.s3/65536)+$_.s2;$_.s3=$_.s3%65536;$_.s1=~~($_.s2/65536)+$_.s1;$_.s2=$_.s2%65536;$_.s0=~~($_.s1/65536)+$_.s0;$_.s1=$_.s1%65536;$_.s0=$_.s0%65536;var _3x=(($_.s0-32768)*65536+$_.s1^2147483648)&4294967295;var _3y=_3x^_3x>>>11;var _3z=_3y^_3y<<7&-1658038656;var _40=(_3z^_3z<<15&-272236544)&4294967295;$k[$j++]=_40^_40>>>18};$_.createMatrixA=function(){$k[$j++]="nb_pcb";if($_.wr<4){$k[$j++]=~~($_.Pg_sub_block/2)}else{$k[$j++]=~~($_.Pg_sub_block/$_.wr)*$_.wc}var _46=$k[--$j];$_[$k[--$j]]=_46;$_.offset=~~Math.ceil($_.Pg_sub_block/32);$_.effwidth=$_.offset*32;$_.matrixA=$a($_.offset*$_.nb_pcb);for(var _4G=0,_4F=$_.offset*$_.nb_pcb-1;_4G<=_4F;_4G+=1){$p($_.matrixA,_4G,0)}$_.permutation=$a($_.Pg_sub_block);for(var _4M=0,_4L=$_.Pg_sub_block-1;_4M<=_4L;_4M+=1){$p($_.permutation,_4M,_4M)}for(var _4R=0,_4Q=~~($_.Pg_sub_block/$_.wr)-1;_4R<=_4Q;_4R+=1){$_.i=_4R;for(var _4U=0,_4T=$f($_.wr-1);_4U<=_4T;_4U+=1){$_.j=_4U;var _4V=$_.matrixA;var _4W=$_.i;var _4X=$_.effwidth;var _4Y=$_.wr;var _4Z=$_.j;var _4f=$f(31-$f($_.i*$f($_.effwidth+$_.wr)+$_.j)%32);$p(_4V,~~($f(_4W*$f(_4X+_4Y)+_4Z)/32),$g(_4V,~~($f(_4W*$f(_4X+_4Y)+_4Z)/32))|(_4f<0?1>>>-_4f:1<<_4f))}}$_.s0=0;$_.s1=0;$_.s2=11;$_.s3=64569;for(var _4i=1,_4h=$f($_.wc-1);_4i<=_4h;_4i+=1){$_.i=_4i;$_.off_index=~~($_.Pg_sub_block/$_.wr)*$_.i;for(var _4o=0,_4n=$_.Pg_sub_block-1;_4o<=_4n;_4o+=1){$_.j=_4o;$_.lcg64_temper();var _4p=$k[--$j];$k[$j++]=_4p;if(_4p<0){var _4q=$k[--$j];$k[$j++]=$f((_4q^2147483648)+2147483648)}$_.pos=~~($k[--$j]/4294967296*($_.Pg_sub_block-$_.j));for(var _4x=0,_4w=~~($_.Pg_sub_block/$_.wr)-1;_4x<=_4w;_4x+=1){$_.k=_4x;var _4y=$_.matrixA;var _4z=$_.off_index;var _50=$_.k;var _51=$_.offset;var _52=$_.j;var _5A=$g($_.matrixA,~~($g($_.permutation,$_.pos)/32)+$_.k*$_.offset);var _5E=-$f(31-$g($_.permutation,$_.pos)%32);var _5G=31-$_.j%32;$p(_4y,(_4z+_50)*_51+~~(_52/32),$g(_4y,(_4z+_50)*_51+~~(_52/32))|(_5G<0?((_5E<0?_5A>>>-_5E:_5A<<_5E)&1)>>>-_5G:((_5E<0?_5A>>>-_5E:_5A<<_5E)&1)<<_5G))}var _5J=$_.permutation;var _5K=$_.Pg_sub_block;var _5L=$_.j;$p(_5J,_5K-1-_5L,$g($_.permutation,$_.pos));$p($_.permutation,$_.pos,$g(_5J,_5K-1-_5L))}}};$_.createMetadataMatrixA=function(){$_.nb_pcb=~~($_.Pg_sub_block/2);$_.offset=~~Math.ceil($_.Pg_sub_block/32);$_.matrixA=$a($_.offset*$_.nb_pcb);for(var _5Y=0,_5X=$_.offset*$_.nb_pcb-1;_5Y<=_5X;_5Y+=1){$p($_.matrixA,_5Y,0)}$_.permutation=$a($_.Pg_sub_block);for(var _5e=0,_5d=$_.Pg_sub_block-1;_5e<=_5d;_5e+=1){$p($_.permutation,_5e,_5e)}$_.s0=0;$_.s1=0;$_.s2=0;$_.s3=38545;$_.nb_once=~~(~~$f($_.nb_pcb/$_.wc*$_.Pg_sub_block+3)/$_.nb_pcb);for(var _5m=0,_5l=$_.nb_pcb-1;_5m<=_5l;_5m+=1){$_.i=_5m;for(var _5p=0,_5o=$_.nb_once-1;_5p<=_5o;_5p+=1){$_.j=_5p;$_.lcg64_temper();var _5q=$k[--$j];$k[$j++]=_5q;if(_5q<0){var _5r=$k[--$j];$k[$j++]=$f((_5r^2147483648)+2147483648)}$_.pos=~~($k[--$j]/4294967296*($_.Pg_sub_block-$_.j));var _5v=$_.matrixA;var _5w=$_.i;var _5x=$_.offset;var _60=$g($_.permutation,$_.pos);var _65=$f(31-$g($_.permutation,$_.pos)%32);$p(_5v,_5w*_5x+~~(_60/32),$g(_5v,_5w*_5x+~~(_60/32))|(_65<0?1>>>-_65:1<<_65));var _68=$_.permutation;var _69=$_.Pg_sub_block;var _6A=$_.j;$p(_68,_69-1-_6A,$g($_.permutation,$_.pos));$p($_.permutation,$_.pos,$g(_68,_69-1-_6A))}}};$_.GaussJordan=function(){$k[$j++]="nb_pcb";if($_.wr<4){$k[$j++]=~~($_.Pg_sub_block/2)}else{$k[$j++]=~~($_.Pg_sub_block/$_.wr)*$_.wc}var _6K=$k[--$j];$_[$k[--$j]]=_6K;$_.offset=~~Math.ceil($_.Pg_sub_block/32);var _6N=$_.matrixA;$_.matrixH=$A($a(_6N.length),_6N);$k[$j++]=Infinity;for(var _6R=0,_6S=$_.Pg_sub_block;_6R<_6S;_6R++){$k[$j++]=0}$_.column_arrangement=$a();$k[$j++]=Infinity;for(var _6V=0,_6W=$_.Pg_sub_block;_6V<_6W;_6V++){$k[$j++]=false}$_.processed_column=$a();$k[$j++]=Infinity;for(var _6Z=0,_6a=$_.nb_pcb;_6Z<_6a;_6Z++){$k[$j++]=0}$_.zero_lines_nb=$a();$k[$j++]=Infinity;for(var _6d=0,_6e=$_.Pg_sub_block*2;_6d<_6e;_6d++){$k[$j++]=0}$_.swap_col=$a();$_.zero_lines=0;$_.loop0=0;for(var _6i=0,_6h=$_.nb_pcb-1;_6i<=_6h;_6i+=1){$_.i=_6i;$_.pivot_column=$_.Pg_sub_block+1;for(var _6m=0,_6l=$_.Pg_sub_block-1;_6m<=_6l;_6m+=1){$_.j=_6m;var _6r=$g($_.matrixH,~~(($_.offset*32*$_.i+$_.j)/32));var _6v=-(31-($_.offset*32*$_.i+$_.j)%32);if(((_6v<0?_6r>>>-_6v:_6r<<_6v)&1)==1){$_.pivot_column=$_.j;break}}if($_.pivot_column<$_.Pg_sub_block){$p($_.processed_column,$_.pivot_column,true);$p($_.column_arrangement,$_.pivot_column,$_.i);if($_.pivot_column>=$_.nb_pcb){$p($_.swap_col,$_.loop0*2,$_.pivot_column);$_.loop0=$_.loop0+1}$_.off_index=~~($_.pivot_column/32);$_.off_index1=$_.pivot_column%32;for(var _7E=0,_7D=$_.nb_pcb-1;_7E<=_7D;_7E+=1){$_.j=_7E;if($_.i!=$_.j){var _7L=$g($_.matrixH,$_.off_index+$_.j*$_.offset);var _7N=-(31-$_.off_index1);if(((_7N<0?_7L>>>-_7N:_7L<<_7N)&1)==1){for(var _7Q=0,_7P=$_.offset-1;_7Q<=_7P;_7Q+=1){$_.k=_7Q;var _7R=$_.matrixH;var _7S=$_.offset;var _7T=$_.j;var _7U=$_.k;$p(_7R,_7S*_7T+_7U,$xo($g(_7R,_7S*_7T+_7U),$g($_.matrixH,$_.offset*$_.i+$_.k)))}}}}}else{$p($_.zero_lines_nb,$_.zero_lines,$_.i);$_.zero_lines=$_.zero_lines+1}}$_.matrix_rank=$_.nb_pcb-$_.zero_lines;$_.loop2=0;for(var _7k=$_.matrix_rank,_7j=$_.nb_pcb-1;_7k<=_7j;_7k+=1){$_.i=_7k;if($g($_.column_arrangement,$_.i)>0){for(var _7q=0,_7p=$_.nb_pcb-1;_7q<=_7p;_7q+=1){$_.j=_7q;if($nt($g($_.processed_column,$_.j))){$p($_.column_arrangement,$_.j,$g($_.column_arrangement,$_.i));$p($_.column_arrangement,$_.i,0);$p($_.processed_column,$_.j,true);$p($_.processed_column,$_.i,false);$p($_.swap_col,$_.loop0*2,$_.i);$p($_.swap_col,$_.loop0*2+1,$_.j);$p($_.column_arrangement,$_.i,$_.j);$_.loop0=$_.loop0+1;$_.loop2=$_.loop2+1;break}}}}$_.loop1=0;for(var _8I=0,_8H=$_.nb_pcb-1;_8I<=_8H;_8I+=1){$_.kl=_8I;if($nt($g($_.processed_column,$_.kl))&&$_.loop1<$_.loop0-$_.loop2){$p($_.column_arrangement,$_.kl,$g($_.column_arrangement,$g($_.swap_col,$_.loop1*2)));$p($_.processed_column,$_.kl,true);$p($_.swap_col,$_.loop1*2+1,$_.kl);$_.loop1=$_.loop1+1}}$_.loop1=0;for(var _8e=0,_8d=$_.nb_pcb-1;_8e<=_8d;_8e+=1){$_.kl=_8e;if($nt($g($_.processed_column,$_.kl))){$p($_.column_arrangement,$_.kl,$g($_.zero_lines_nb,$_.loop1));$_.loop1=$_.loop1+1}}for(var _8q=0,_8p=$_.nb_pcb-1;_8q<=_8p;_8q+=1){$_.i=_8q;for(var _8t=0,_8s=$_.offset-1;_8t<=_8s;_8t+=1){$_.j=_8t;$p($_.matrixA,$_.i*$_.offset+$_.j,$g($_.matrixH,$f($g($_.column_arrangement,$_.i)*$_.offset+$_.j)))}}$_.tmp=0;for(var _97=0,_96=$_.loop0-1;_97<=_96;_97+=1){$_.i=_97;for(var _9A=0,_99=$_.nb_pcb-1;_9A<=_99;_9A+=1){$_.j=_9A;var _9H=$g($_.matrixA,~~($g($_.swap_col,$_.i*2)/32)+$_.j*$_.offset);var _9L=-$f(31-$g($_.swap_col,$_.i*2)%32);$_.tmp=(-((_9L<0?_9H>>>-_9L:_9H<<_9L)&1)^$_.tmp)&1^$_.tmp;var _9O=$_.matrixA;var _9R=$g($_.swap_col,$_.i*2);var _9S=$_.j;var _9T=$_.offset;var _9b=$g($_.matrixA,~~($g($_.swap_col,$_.i*2+1)/32)+$_.j*$_.offset);var _9f=-$f(31-$g($_.swap_col,$_.i*2+1)%32);var _9q=$f(31-$g($_.swap_col,$_.i*2)%32);$p(_9O,~~(_9R/32)+_9S*_9T,$g(_9O,~~(_9R/32)+_9S*_9T)^(-((_9f<0?_9b>>>-_9f:_9b<<_9f)&1)^$g($_.matrixA,~~($g($_.swap_col,$_.i*2)/32)+$_.j*$_.offset))&(_9q<0?1>>>-_9q:1<<_9q));var _9r=$_.matrixA;var _9u=$g($_.swap_col,$_.i*2+1);var _9v=$_.j;var _9w=$_.offset;var _A9=$f(31-$g($_.swap_col,$_.i*2+1)%32);$p(_9r,~~(_9u/32)+_9v*_9w,$g(_9r,~~(_9u/32)+_9v*_9w)^(-($_.tmp&1)^$g($_.matrixA,~~($g($_.swap_col,$_.i*2+1)/32)+$_.j*$_.offset))&(_A9<0?1>>>-_A9:1<<_A9))}}};$_.createGeneratorMatrix=function(){$_.pn=$_.Pg_sub_block-$_.matrix_rank;$_.offset=~~Math.ceil($_.pn/32);$_.effwidth=$_.offset*32;$_.offset_cap=~~Math.ceil($_.Pg_sub_block/32);$_.G=$a($_.offset*$_.Pg_sub_block);for(var _AL=0,_AK=$_.offset*$_.Pg_sub_block-1;_AL<=_AK;_AL+=1){$p($_.G,_AL,0)}for(var _AP=0,_AO=$_.pn-1;_AP<=_AO;_AP+=1){$_.i=_AP;var _AQ=$_.G;var _AR=$_.Pg_sub_block;var _AS=$_.pn;var _AT=$_.i;var _AU=$_.offset;var _AV=$_.i;var _AY=31-$_.i%32;$p(_AQ,(_AR-_AS+_AT)*_AU+~~(_AV/32),$g(_AQ,(_AR-_AS+_AT)*_AU+~~(_AV/32))|(_AY<0?1>>>-_AY:1<<_AY))}$_.matrix_index=$_.Pg_sub_block-$_.pn;$_.loop0=0;for(var _Af=0,_Ae=($_.Pg_sub_block-$_.pn)*$_.effwidth-1;_Af<=_Ae;_Af+=1){$_.i=_Af;if($_.matrix_index>=$_.Pg_sub_block){$_.loop0=$_.loop0+1;$_.matrix_index=$_.Pg_sub_block-$_.pn}if($_.i%$_.effwidth<$_.pn){var _Ao=$_.G;var _Ap=$_.i;var _Av=$g($_.matrixA,~~($_.matrix_index/32)+$_.offset_cap*$_.loop0);var _Ax=-(31-$_.matrix_index%32);var _B2=31-$_.i%32;$p(_Ao,~~(_Ap/32),$g(_Ao,~~(_Ap/32))^(-((_Ax<0?_Av>>>-_Ax:_Av<<_Ax)&1)^$g($_.G,~~($_.i/32)))&(_B2<0?1>>>-_B2:1<<_B2));$_.matrix_index=$_.matrix_index+1}}};$_.ldpc=function(){$_.wr=$k[--$j];$_.wc=$k[--$j];$k[$j++]=Infinity;var _B6=$k[--$j];var _B7=$k[--$j];$k[$j++]=_B6;$F(_B7,function(){var _B8=$k[--$j];$k[$j++]=$f(_B8-48)});$_.data=$a();$_.Pn=$_.data.length;if($_.wr!=-1){$_.Pg=~~(Math.ceil(Math.ceil($_.Pn*$_.wr/$f($_.wr-$_.wc))/$_.wr)*$_.wr);$_.nb_sub_blocks=~~($_.Pg/2700)+1;$_.Pg_sub_block=~~(~~($_.Pg/$_.nb_sub_blocks)/$_.wr)*$_.wr;$_.Pn_sub_block=~~($_.Pg_sub_block*$f($_.wr-$_.wc)/$_.wr);$_.nb_sub_blocks=~~($_.Pg/$_.Pg_sub_block);$k[$j++]="encoding_iterations";$k[$j++]=~~($_.Pg/$_.Pg_sub_block);if($_.Pn_sub_block*$_.nb_sub_blocks<$_.Pn){var _BY=$k[--$j];$k[$j++]=$f(_BY-1)}var _BZ=$k[--$j];$_[$k[--$j]]=_BZ;$_.createMatrixA()}else{$_.Pg=$_.Pn*2;$_.nb_sub_blocks=1;$_.Pg_sub_block=$_.Pg;$_.Pn_sub_block=$_.Pn;$_.encoding_iterations=1;$_.createMetadataMatrixA()}$_.GaussJordan();$_.createGeneratorMatrix();$_.ecc_encoded_data=$a($_.Pg);$_.offset=~~Math.ceil(($_.Pg_sub_block-$_.matrix_rank)/32);for(var _Bk=0,_Bj=$_.encoding_iterations-1;_Bk<=_Bj;_Bk+=1){$_.iter=_Bk;for(var _Bn=0,_Bm=$_.Pg_sub_block-1;_Bn<=_Bm;_Bn+=1){$_.i=_Bn;$_.temp=0;$_.loop0=0;$_.offset_index=$_.offset*$_.i;for(var _Bv=$_.iter*$_.Pn_sub_block,_Bu=($_.iter+1)*$_.Pn_sub_block-1;_Bv<=_Bu;_Bv+=1){var _C1=$g($_.G,$_.offset_index+~~($_.loop0/32));var _C3=-(31-$_.loop0%32);$_.temp=$g($_.data,_Bv)&((_C3<0?_C1>>>-_C3:_C1<<_C3)&1)^$_.temp;$_.loop0=$_.loop0+1}$p($_.ecc_encoded_data,$_.i+$_.iter*$_.Pg_sub_block,$_.temp)}}if($_.encoding_iterations!=$_.nb_sub_blocks){$_.start=$_.encoding_iterations*$_.Pn_sub_block;$_.last_index=$_.encoding_iterations*$_.Pg_sub_block;$_.Pg_sub_block=$_.Pg-$_.encoding_iterations*$_.Pg_sub_block;$_.Pn_sub_block=~~($_.Pg_sub_block*$f($_.wr-$_.wc)/$_.wr);$_.createMatrixA();$_.GaussJordan();$_.createGeneratorMatrix();$_.offset=~~Math.ceil(($_.Pg_sub_block-$_.matrix_rank)/32);for(var _CS=0,_CR=$_.Pg_sub_block-1;_CS<=_CR;_CS+=1){$_.i=_CS;$_.temp=0;$_.loop0=0;$_.offset_index=$_.offset*$_.i;for(var _CY=$_.start,_CX=$_.Pn-1;_CY<=_CX;_CY+=1){var _Ce=$g($_.G,$_.offset_index+~~($_.loop0/32));var _Cg=-(31-$_.loop0%32);$_.temp=$g($_.data,_CY)&((_Cg<0?_Ce>>>-_Cg:_Ce<<_Cg)&1)^$_.temp;$_.loop0=$_.loop0+1}$p($_.ecc_encoded_data,$_.i+$_.last_index,$_.temp)}}$_.out=$s($_.Pg);for(var _Cr=0,_Cq=$_.Pg-1;_Cr<=_Cq;_Cr+=1){$p($_.out,_Cr,$f($g($_.ecc_encoded_data,_Cr)+48))}$k[$j++]=$_.out};$k[$j++]="bits";$k[$j++]=$_.bits;$k[$j++]=$_.datawc;$k[$j++]=$_.datawr;$_.ldpc();var _Cz=$k[--$j];$_[$k[--$j]]=_Cz;$_.s0=0;$_.s1=0;$_.s2=3;$_.s3=30151;for(var _D2=$_.bits.length-1;_D2>=1;_D2-=1){$_.l=_D2;$_.lcg64_temper();var _D3=$k[--$j];$k[$j++]=_D3;if(_D3<0){var _D4=$k[--$j];$k[$j++]=$f((_D4^2147483648)+2147483648)}$_.r=~~($k[--$j]/4294967296*($_.l+1));$p($_.bits,$_.l,$g($_.bits,$_.r));$p($_.bits,$_.r,$g($_.bits,$_.l))}$_.tmpbits=$s($_.C);$P($_.tmpbits,0,$_.bits);$_.j=$_.bits.length;for(var _DO=0,_DP=~~($f($f($_.C-$_.j)+1)/2);_DO<_DP;_DO++){$p($_.tmpbits,$_.j,48);if($_.j+1<$_.C){$p($_.tmpbits,$_.j+1,49)}$_.j=$_.j+2}$_.bits=$_.tmpbits;if($_.colors==4){$_.bi=0;$_.gi=1;$_.mi=2;$_.yi=3;$_.ki=4;$_.wi=5;$k[$j++]=Infinity;$k[$j++]=$_.bi;$k[$j++]="0000FF";$k[$j++]=$_.gi;$k[$j++]="00FF00";$k[$j++]=$_.mi;$k[$j++]="FF00FF";$k[$j++]=$_.yi;$k[$j++]="FFFF00";$k[$j++]=$_.ki;$k[$j++]="000000";$k[$j++]=$_.wi;$k[$j++]="FFFFFF";$_.palette=$d();$_.metacolorindex=$a([$_.bi,$_.gi,$_.mi,$_.yi]);$_.palettelayout=$a([$_.bi,$_.gi,$_.mi,$_.yi])}else{var _Dw=new Map([[8,$a([2,2,2])],[16,$a([4,2,2])],[32,$a([4,4,2])],[64,$a([4,4,4])],[128,$a([8,4,4])],[256,$a([8,8,4])]]);$_.rgbres=$g(_Dw,$_.colors);$k[$j++]="rvals";$k[$j++]=$g($_.rgbres,0);$k[$j++]=Infinity;var _E1=$k[--$j];var _E3=$f($k[--$j]-1);$k[$j++]=_E1;$k[$j++]=_E3;for(var _E5=0,_E4=_E3;_E5<=_E4;_E5+=1){var _E6=$k[--$j];$k[$j++]=~~Math.round(_E5*(255/_E6));$k[$j++]=_E6}$j--;var _E7=$a();$_[$k[--$j]]=_E7;$k[$j++]="gvals";$k[$j++]=$g($_.rgbres,1);$k[$j++]=Infinity;var _EB=$k[--$j];var _ED=$f($k[--$j]-1);$k[$j++]=_EB;$k[$j++]=_ED;for(var _EF=0,_EE=_ED;_EF<=_EE;_EF+=1){var _EG=$k[--$j];$k[$j++]=~~Math.round(_EF*(255/_EG));$k[$j++]=_EG}$j--;var _EH=$a();$_[$k[--$j]]=_EH;$k[$j++]="bvals";$k[$j++]=$g($_.rgbres,2);$k[$j++]=Infinity;var _EL=$k[--$j];var _EN=$f($k[--$j]-1);$k[$j++]=_EL;$k[$j++]=_EN;for(var _EP=0,_EO=_EN;_EP<=_EO;_EP+=1){var _EQ=$k[--$j];$k[$j++]=~~Math.round(_EP*(255/_EQ));$k[$j++]=_EQ}$j--;var _ER=$a();$_[$k[--$j]]=_ER;var _ET=$_.colors;$_.palette=new Map;var _EU=$_.colors;var _EV=64;if(64>_EU){var _=_EU;_EU=_EV;_EV=_}$_.palettelayout=$a(_EV);$_.i=0;$_.j=8;$F($_.rvals,function(){$_.r=$k[--$j];$F($_.gvals,function(){$_.g=$k[--$j];$F($_.bvals,function(){$_.b=$k[--$j];var _Eh=$Z($s(6),"000000");var _Ej=$R($s(6),$_.r<<16|$_.g<<8|$_.b,16);$P(_Eh,6-_Ej.length,_Ej);$k[$j++]=_Eh;$k[$j++]=false;if($eq(_Eh,"000000")){$_.ki=$_.i;$j--;$k[$j++]=true}var _El=$k[--$j];var _Em=$k[--$j];$k[$j++]=_Em;$k[$j++]=_El;if($eq(_Em,"0000FF")){$_.bi=$_.i;$j--;$k[$j++]=true}var _Eo=$k[--$j];var _Ep=$k[--$j];$k[$j++]=_Ep;$k[$j++]=_Eo;if($eq(_Ep,"00FF00")){$_.gi=$_.i;$j--;$k[$j++]=true}var _Er=$k[--$j];var _Es=$k[--$j];$k[$j++]=_Es;$k[$j++]=_Er;if($eq(_Es,"00FFFF")){$_.ci=$_.i;$j--;$k[$j++]=true}var _Eu=$k[--$j];var _Ev=$k[--$j];$k[$j++]=_Ev;$k[$j++]=_Eu;if($eq(_Ev,"FF0000")){$_.ri=$_.i;$j--;$k[$j++]=true}var _Ex=$k[--$j];var _Ey=$k[--$j];$k[$j++]=_Ey;$k[$j++]=_Ex;if($eq(_Ey,"FF00FF")){$_.mi=$_.i;$j--;$k[$j++]=true}var _F0=$k[--$j];var _F1=$k[--$j];$k[$j++]=_F1;$k[$j++]=_F0;if($eq(_F1,"FFFF00")){$_.yi=$_.i;$j--;$k[$j++]=true}var _F3=$k[--$j];var _F4=$k[--$j];$k[$j++]=_F4;$k[$j++]=_F3;if($eq(_F4,"FFFFFF")){$_.wi=$_.i;$j--;$k[$j++]=true}if($nt($k[--$j])){if($_.colors<=64||($_.colors==128&&($_.r==0||$_.r==73||$_.r==182||$_.r==255)||$_.colors==256&&($_.r==0||$_.r==73||$_.r==182||$_.r==255)&&($_.g==0||$_.g==73||$_.g==182||$_.g==255))){$p($_.palettelayout,$_.j,$_.i);$_.j=$_.j+1}}$p($_.palette,$_.i,$k[--$j]);$_.i=$_.i+1})})});$P($_.palettelayout,0,$a([$_.ki,$_.bi,$_.gi,$_.ci,$_.ri,$_.mi,$_.yi,$_.wi]));$_.metacolorindex=$a([$_.ki,$_.bi,$_.gi,$_.ci,$_.ri,$_.mi,$_.yi,$_.wi])}$k[$j++]=Infinity;for(var _Fp=0,_Fq=$_.rows*$_.cols;_Fp<_Fq;_Fp++){$k[$j++]=-1}$_.pixs=$a();$_.jmv=function(){var _Ft=$k[--$j];var _Fu=$k[--$j];$k[$j++]=$f(_Fu+_Ft*$_.cols)};if(!$_.slave){$_.fpat=$a([$a([1,1,1,0,0]),$a([1,2,2,0,0]),$a([1,2,1,2,1]),$a([0,0,2,2,1]),$a([0,0,1,1,1])]);$_.fmap=$a([$a([-1,$_.bi,$_.yi]),$a([-1,$_.yi,$_.bi]),$a([-1,$_.gi,$_.mi]),$a([-1,$_.mi,$_.gi])])}else{$_.fpat=$a([$a([0,0,0,0,0]),$a([0,2,2,0,0]),$a([0,2,1,2,0]),$a([0,0,2,2,0]),$a([0,0,0,0,0])]);$_.fmap=$a([$a([-1,$_.ki,$_.wi]),$a([-1,$_.ki,$_.wi]),$a([-1,$_.ki,$_.wi]),$a([-1,$_.ki,$_.wi])])}for(var _GY=0;_GY<=4;_GY+=1){$_.y=_GY;for(var _GZ=0;_GZ<=4;_GZ+=1){$_.x=_GZ;$_.fpb=$g($g($_.fpat,$_.y),$_.x);$k[$j++]=$_.pixs;$k[$j++]=$_.x+1;$k[$j++]=$_.y+1;$_.jmv();var _Gm=$k[--$j];$p($k[--$j],_Gm,$g($g($_.fmap,0),$_.fpb));$k[$j++]=$_.pixs;$k[$j++]=$_.x+1;$k[$j++]=$f($f($_.rows-$_.y)-2);$_.jmv();var _Gw=$k[--$j];$p($k[--$j],_Gw,$g($g($_.fmap,1),$_.fpb));$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.x+$_.cols)-6);$k[$j++]=$_.y+1;$_.jmv();var _H6=$k[--$j];$p($k[--$j],_H6,$g($g($_.fmap,2),$_.fpb));$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.x+$_.cols)-6);$k[$j++]=$f($f($_.rows-$_.y)-2);$_.jmv();var _HH=$k[--$j];$p($k[--$j],_HH,$g($g($_.fmap,3),$_.fpb))}}$_.algnpat0=$a([$a([$_.ki,$_.ki,-1]),$a([$_.ki,$_.wi,$_.ki]),$a([-1,$_.ki,$_.ki])]);$_.algnpat1=$a([$a([-1,$_.ki,$_.ki]),$a([$_.ki,$_.wi,$_.ki]),$a([$_.ki,$_.ki,-1])]);$_.num=~~Math.round($_.cols/16)-1;$_.algnrpos=$a([3,17]);if($_.num>0){$k[$j++]=Infinity;for(var _Hk=0,_Hj=$_.num;_Hk<=_Hj;_Hk+=1){$k[$j++]=~~(_Hk*($f($_.cols-7)/$_.num))+3}$_.algnrpos=$a()}$_.num=~~Math.round($_.rows/16)-1;$_.algncpos=$a([3,17]);if($_.num>0){$k[$j++]=Infinity;for(var _Ht=0,_Hs=$_.num;_Ht<=_Hs;_Ht+=1){$k[$j++]=~~(_Ht*($f($_.rows-7)/$_.num))+3}$_.algncpos=$a()}$_.putalgnpat=function(){$_.pp=$k[--$j];$_.py=$k[--$j];$_.px=$k[--$j];for(var _I0=0;_I0<=2;_I0+=1){$_.pb=_I0;for(var _I1=0;_I1<=2;_I1+=1){$_.pa=_I1;$k[$j++]=$_.pixs;$k[$j++]=$f($_.px+$_.pa);$k[$j++]=$f($_.py+$_.pb);$_.jmv();var _IC=$k[--$j];$p($k[--$j],_IC,$g($g($_.pp,$_.pb),$_.pa))}}};for(var _IG=0,_IF=$_.algncpos.length-1;_IG<=_IF;_IG+=1){$_.j=_IG;$_.y=$g($_.algncpos,$_.j);for(var _IM=0,_IL=$_.algnrpos.length-1;_IM<=_IL;_IM+=1){$_.i=_IM;$_.x=$g($_.algnrpos,$_.i);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.jmv();var _IT=$k[--$j];if($g($k[--$j],_IT)==-1){$k[$j++]=$f($_.x-1);$k[$j++]=$f($_.y-1);if(($_.i+$_.j)%2==0){$k[$j++]=$_.algnpat0}else{$k[$j++]=$_.algnpat1}$_.putalgnpat()}}}if(!$_.slave){var _JL=$a([$a([6,1]),$a([6,2]),$a([6,3]),$a([6,4]),$a([6,5]),$a([6,6]),$a([5,6]),$a([4,6]),$a([3,6]),$a([2,6]),$a([1,6]),$a([7,1]),$a([7,2]),$a([7,3]),$a([7,4]),$a([7,5]),$a([7,6]),$a([7,7]),$a([6,7]),$a([5,7]),$a([4,7]),$a([3,7]),$a([2,7]),$a([1,7]),$a([8,1]),$a([8,2]),$a([8,3]),$a([8,4]),$a([8,5]),$a([8,6]),$a([8,7]),$a([8,8]),$a([7,8]),$a([6,8]),$a([5,8]),$a([4,8]),$a([3,8]),$a([2,8]),$a([1,8]),$a([9,1]),$a([9,2]),$a([9,3]),$a([9,4]),$a([9,5])]);for(var _JM=0,_JN=_JL.length;_JM<_JN;_JM++){$q($g(_JL,_JM));$_.y=$k[--$j];$_.x=$k[--$j];$k[$j++]=$a([$_.x,$_.y]);$k[$j++]=$a([-$_.x,$_.y]);$k[$j++]=$a([-$_.x,-$_.y]);$k[$j++]=$a([$_.x,-$_.y])}$as($a(176));$_.metadatamap=$k[--$j];$_.palettemap1=$a([$a([4,1]),$a([4,2]),$a([5,1]),$a([5,2]),$a([2,4]),$a([2,5]),$a([1,4]),$a([1,5]),$a([-2,1]),$a([-2,2]),$a([-1,1]),$a([-1,2]),$a([-4,4]),$a([-4,5]),$a([-5,4]),$a([-5,5])]);$_.palettemap2=$a([$a([-4,-5]),$a([-4,-4]),$a([-5,-5]),$a([-5,-4]),$a([-2,-2]),$a([-2,-1]),$a([-1,-2]),$a([-1,-1]),$a([2,-5]),$a([2,-4]),$a([1,-5]),$a([1,-4]),$a([4,-2]),$a([4,-1]),$a([5,-2]),$a([5,-1])])}else{$k[$j++]=Infinity;for(var _KD=1;_KD<=19;_KD+=1){$_.i=_KD;$k[$j++]=$a([0,$_.i]);$k[$j++]=$a([1,$_.i])}for(var _KI=5;_KI<=12;_KI+=1){$_.i=_KI;$k[$j++]=$a([2,$_.i]);$k[$j++]=$a([3,$_.i])}$_.metadatamap=$a();$k[$j++]=Infinity;for(var _KO=5;_KO<=12;_KO+=1){$k[$j++]=_KO;$k[$j++]=Infinity;var _KP=$k[--$j];var _KQ=$k[--$j];$k[$j++]=_KP;$k[$j++]=4;$k[$j++]=_KQ;var _KR=$a();$k[$j++]=_KR}for(var _KS=12;_KS>=5;_KS-=1){$k[$j++]=_KS;$k[$j++]=Infinity;var _KT=$k[--$j];var _KU=$k[--$j];$k[$j++]=_KT;$k[$j++]=5;$k[$j++]=_KU;var _KV=$a();$k[$j++]=_KV}for(var _KW=5;_KW<=12;_KW+=1){$k[$j++]=_KW;$k[$j++]=Infinity;var _KX=$k[--$j];var _KY=$k[--$j];$k[$j++]=_KX;$k[$j++]=6;$k[$j++]=_KY;var _KZ=$a();$k[$j++]=_KZ}for(var _Ka=12;_Ka>=5;_Ka-=1){$k[$j++]=_Ka;$k[$j++]=Infinity;var _Kb=$k[--$j];var _Kc=$k[--$j];$k[$j++]=_Kb;$k[$j++]=7;$k[$j++]=_Kc;var _Kd=$a();$k[$j++]=_Kd}$_.palettemap1=$a();$k[$j++]=Infinity;var _Kf=$_.palettemap1;for(var _Kg=0,_Kh=_Kf.length;_Kg<_Kh;_Kg++){$k[$j++]=$g(_Kf,_Kg);$k[$j++]=Infinity;var _Kj=$k[--$j];var _Kk=$k[--$j];$k[$j++]=_Kj;$q(_Kk);var _Kl=$k[--$j];var _Km=$k[--$j];$k[$j++]=-_Km;$k[$j++]=-_Kl;var _Kn=$a();$k[$j++]=_Kn}$_.palettemap2=$a()}var _Kp=$_.metadatamap;for(var _Kq=0,_Kr=_Kp.length;_Kq<_Kr;_Kq++){var _Ks=$g(_Kp,_Kq);var _Kt=$g(_Ks,0);$k[$j++]=_Ks;$k[$j++]=_Kt;if(_Kt<0){var _Kv=$k[--$j];var _Kw=$k[--$j];$p(_Kw,0,$f($f(_Kv+$_.cols)-1));$k[$j++]=_Kw}else{$j--}var _Kx=$k[--$j];var _Ky=$g(_Kx,1);$k[$j++]=_Kx;$k[$j++]=_Ky;if(_Ky<0){var _L0=$k[--$j];var _L1=$k[--$j];$p(_L1,1,$f($f(_L0+$_.rows)-1));$k[$j++]=_L1}else{$j--}$j--}var _L2=$_.palettemap1;for(var _L3=0,_L4=_L2.length;_L3<_L4;_L3++){var _L5=$g(_L2,_L3);var _L6=$g(_L5,0);$k[$j++]=_L5;$k[$j++]=_L6;if(_L6<0){var _L8=$k[--$j];var _L9=$k[--$j];$p(_L9,0,$f($f(_L8+$_.cols)-1));$k[$j++]=_L9}else{$j--}var _LA=$k[--$j];var _LB=$g(_LA,1);$k[$j++]=_LA;$k[$j++]=_LB;if(_LB<0){var _LD=$k[--$j];var _LE=$k[--$j];$p(_LE,1,$f($f(_LD+$_.rows)-1));$k[$j++]=_LE}else{$j--}$j--}var _LF=$_.palettemap2;for(var _LG=0,_LH=_LF.length;_LG<_LH;_LG++){var _LI=$g(_LF,_LG);var _LJ=$g(_LI,0);$k[$j++]=_LI;$k[$j++]=_LJ;if(_LJ<0){var _LL=$k[--$j];var _LM=$k[--$j];$p(_LM,0,$f($f(_LL+$_.cols)-1));$k[$j++]=_LM}else{$j--}var _LN=$k[--$j];var _LO=$g(_LN,1);$k[$j++]=_LN;$k[$j++]=_LO;if(_LO<0){var _LQ=$k[--$j];var _LR=$k[--$j];$p(_LR,1,$f($f(_LQ+$_.rows)-1));$k[$j++]=_LR}else{$j--}$j--}for(var _LU=0,_LT=$f($_.nummetamodules-1);_LU<=_LT;_LU+=1){$k[$j++]=$_.pixs;$q($g($_.metadatamap,_LU));$_.jmv();var _LY=$k[--$j];$p($k[--$j],_LY,0)}if(!$_.slave){var _Lb=$_.colors;var _Lc=16;if(16>_Lb){var _=_Lb;_Lb=_Lc;_Lc=_}for(var _Le=0,_Ld=_Lc-1;_Le<=_Ld;_Le+=1){$_.i=_Le;var _Lh=$g($_.palettelayout,$_.i);$k[$j++]=_Lh;$k[$j++]=$_.pixs;$k[$j++]=_Lh;$q($g($_.palettemap1,$_.i));$_.jmv();var _Lm=$k[--$j];var _Ln=$k[--$j];$p($k[--$j],_Lm,_Ln);var _Lq=$k[--$j];$k[$j++]=$_.pixs;$k[$j++]=_Lq;$q($g($_.palettemap2,$_.i));$_.jmv();var _Lu=$k[--$j];var _Lv=$k[--$j];$p($k[--$j],_Lu,_Lv)}$_.i=16}else{$_.i=0}$_.j=$_.nummetamodules;for(var _M1=$_.i,_M0=$_.palettelayout.length-1;_M1<=_M0;_M1+=2){$_.i=_M1;var _M4=$g($_.palettelayout,$_.i);$k[$j++]=_M4;$k[$j++]=$_.pixs;$k[$j++]=_M4;$q($g($_.metadatamap,$_.j));$_.jmv();var _M9=$k[--$j];var _MA=$k[--$j];$p($k[--$j],_M9,_MA);var _MD=$k[--$j];$k[$j++]=$_.pixs;$k[$j++]=_MD;$q($g($_.metadatamap,$f($_.j+2)));$_.jmv();var _MH=$k[--$j];var _MI=$k[--$j];$p($k[--$j],_MH,_MI);var _MM=$g($_.palettelayout,$_.i+1);$k[$j++]=_MM;$k[$j++]=$_.pixs;$k[$j++]=_MM;$q($g($_.metadatamap,$f($_.j+1)));$_.jmv();var _MR=$k[--$j];var _MS=$k[--$j];$p($k[--$j],_MR,_MS);var _MV=$k[--$j];$k[$j++]=$_.pixs;$k[$j++]=_MV;$q($g($_.metadatamap,$f($_.j+3)));$_.jmv();var _MZ=$k[--$j];var _Ma=$k[--$j];$p($k[--$j],_MZ,_Ma);$_.j=$f($_.j+4)}var _N2=$a([function(){var _Md=$k[--$j];var _Me=$k[--$j];$k[$j++]=$f(_Me+_Md)%$_.colors},function(){$j--;var _Mh=$k[--$j];$k[$j++]=_Mh%$_.colors},function(){var _Mi=$k[--$j];var _Mj=$k[--$j];$k[$j++]=_Mi;$k[$j++]=_Mj;$j--;var _Ml=$k[--$j];$k[$j++]=_Ml%$_.colors},function(){var _Mm=$k[--$j];var _Mn=$k[--$j];$k[$j++]=(~~(_Mm/3)+~~(_Mn/2))%$_.colors},function(){var _Mp=$k[--$j];var _Mq=$k[--$j];$k[$j++]=(~~(_Mp/2)+~~(_Mq/3))%$_.colors},function(){var _Ms=$k[--$j];var _Mu=$f($k[--$j]+_Ms);$k[$j++]=(~~(_Mu/2)+~~(_Mu/3))%$_.colors},function(){var _Mw=$k[--$j];var _Mx=$k[--$j];$k[$j++]=$f(_Mw*(_Mx*_Mx)%7+$f(_Mw+_Mx*_Mx)*2%19)%$_.colors},function(){var _Mz=$k[--$j];var _N0=$k[--$j];$k[$j++]=$f(_N0*(_Mz*_Mz)%5+$f(_Mz*_Mz+_N0*2)%13)%$_.colors}]);$_.maskfuncs=_N2;if($_.mask!=-1){$_.maskfuncs=$a([$g($_.maskfuncs,$_.mask)]);$_.bestmaskval=$_.mask}$_.masks=$a($_.maskfuncs.length);for(var _ND=0,_NC=$_.masks.length-1;_ND<=_NC;_ND+=1){$_.m=_ND;$_.mask=$a($_.rows*$_.cols);for(var _NJ=0,_NI=$f($_.rows-1);_NJ<=_NI;_NJ+=1){$_.j=_NJ;for(var _NM=0,_NL=$f($_.cols-1);_NM<=_NL;_NM+=1){$_.i=_NM;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.jmv();var _NQ=$k[--$j];if($g($k[--$j],_NQ)==-1){$k[$j++]=$_.i;$k[$j++]=$_.j;if($g($_.maskfuncs,$_.m)()===true){break}}else{$k[$j++]=0}$k[$j++]=$_.mask;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.jmv();var _Nb=$k[--$j];var _Nc=$k[--$j];$p(_Nc,_Nb,$k[--$j])}}$p($_.masks,$_.m,$_.mask)}$_.posx=0;$_.posy=0;$_.i=0;for(;;){if($_.posx==$_.cols){break}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.jmv();var _Nm=$k[--$j];if($g($k[--$j],_Nm)==-1){var _Ns=$G($_.bits,$_.i,$_.databpm);$k[$j++]=0;for(var _Nt=0,_Nu=_Ns.length;_Nt<_Nu;_Nt++){var _Nw=$k[--$j];$k[$j++]=$f(_Nw+$f($g(_Ns,_Nt)-48))*2}var _Nx=$k[--$j];$k[$j++]=~~(_Nx/2);$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.jmv();var _O1=$k[--$j];var _O2=$k[--$j];$p(_O2,_O1,$k[--$j]);$_.i=$_.i+$_.databpm}$_.posy=$_.posy+1;if($_.posy==$_.rows){$_.posy=0;$_.posx=$_.posx+1}}$_.evalrle=function(){$_.scrle=$k[--$j];$_.scr1=0;$_.scr3=0;for(var _OD=0,_OC=$_.scrle.length-2;_OD<=_OC;_OD+=2){$_.j=_OD;if($g($_.scrle,$_.j+1)!=-1){var _OJ=$g($_.scrle,$_.j);$k[$j++]=_OJ;if(_OJ>=5){$_.scr1=$f($f($k[--$j]-2)+$_.scr1)}else{$j--}if($_.j>=4&&$_.j<=$_.scrle.length-5){var _OR=$G($_.scrle,$_.j-4,10);$k[$j++]=_OR;for(var _OS=0,_OT=_OR.length;_OS<_OT;_OS++){$k[$j++]=$g(_OR,_OS)==1}$j--;for(var _OV=0,_OW=4;_OV<_OW;_OV++){var _OX=$k[--$j];var _OY=$k[--$j];$k[$j++]=_OX;$k[$j++]=_OY;$j--;var _OZ=$k[--$j];var _Oa=$k[--$j];$k[$j++]=$an(_Oa,_OZ)}if($k[--$j]){$k[$j++]=Infinity;var _Oc=$k[--$j];var _Od=$k[--$j];$k[$j++]=_Oc;$q(_Od);var _Oe=$k[--$j];var _Of=$k[--$j];var _Og=$k[--$j];var _Oh=$k[--$j];var _Oi=$k[--$j];var _Oj=$k[--$j];var _Ok=$k[--$j];var _Ol=$k[--$j];var _Om=$k[--$j];$k[$j++]=_Om;$k[$j++]=_Ol;$k[$j++]=_Ok;$k[$j++]=_Oj;$k[$j++]=_Oi;$k[$j++]=_Oh;$k[$j++]=_Og;$k[$j++]=_Of;$k[$j++]=_Oe;if($eq(_Om,_Oi)&&$eq(_Om,_Oe)&&$eq(_Ok,_Og)){var _On=$k[--$j];var _Oo=$k[--$j];var _Op=$k[--$j];$_.c4=_Op;$_.c5=_On;$k[$j++]=_Op;$k[$j++]=_Oo;if($_.c4==$_.bi&&$_.c5==$_.yi||($_.c4==$_.yi&&$_.c5==$_.bi||($_.c4==$_.gi&&$_.c5==$_.mi||$_.c4==$_.mi&&$_.c5==$_.gi))){$_.scr3=$_.scr3+100}}$l()}else{$j--}}}}$k[$j++]=$_.scr1;$k[$j++]=$_.scr3};$_.evalmask=function(){$_.sym=$k[--$j];$_.n1=0;$_.n2=0;$_.n3=0;var _PA=$_.rows;var _PB=$_.cols;if(_PA<_PB){var _=_PB;_PB=_PA;_PA=_}$_.rle=$a($f(_PA*2+2));$_.lastpairs=$a($_.cols);$_.thispairs=$a($_.cols);for(var _PJ=0,_PI=$f($_.cols-1);_PJ<=_PI;_PJ+=1){$_.i=_PJ;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=-1;for(var _PP=$_.i,_PQ=$_.cols,_PO=$f($_.rows*$_.cols-1);_PQ<0?_PP>=_PO:_PP<=_PO;_PP+=_PQ){var _PS=$g($_.sym,_PP);var _PT=$k[--$j];$k[$j++]=_PT;$k[$j++]=_PS;if($eq(_PT,_PS)){$j--;var _PU=$k[--$j];var _PV=$k[--$j];$k[$j++]=$f(_PV+1);$k[$j++]=_PU}else{var _PW=$k[--$j];$k[$j++]=1;$k[$j++]=_PW}}var _PY=$m()+2;$as($G($_.rle,0,_PY-2));$_.evalrle();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--}for(var _Pg=0,_Pf=$f($_.rows-1);_Pg<=_Pf;_Pg+=1){$_.i=_Pg;$_.symrow=$G($_.sym,$_.i*$_.cols,$_.cols);$k[$j++]=Infinity;var _Pm=$_.symrow;$k[$j++]=0;$k[$j++]=-1;for(var _Pn=0,_Po=_Pm.length;_Pn<_Po;_Pn++){var _Pp=$g(_Pm,_Pn);var _Pq=$k[--$j];$k[$j++]=_Pq;$k[$j++]=_Pp;if($eq(_Pq,_Pp)){$j--;var _Pr=$k[--$j];var _Ps=$k[--$j];$k[$j++]=$f(_Ps+1);$k[$j++]=_Pr}else{var _Pt=$k[--$j];$k[$j++]=1;$k[$j++]=_Pt}}var _Pv=$m()+2;$as($G($_.rle,0,_Pv-2));$_.evalrle();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;var _Q1=$_.thispairs;$_.thispairs=$_.lastpairs;$_.lastpairs=_Q1;var _Q3=$_.symrow;$k[$j++]=-1;for(var _Q4=0,_Q5=_Q3.length;_Q4<_Q5;_Q4++){var _Q6=$g(_Q3,_Q4);var _Q7=$k[--$j];$k[$j++]=_Q6;$k[$j++]=_Q7;if($ne(_Q6,_Q7)){$j--;var _Q8=$k[--$j];$k[$j++]=-1;$k[$j++]=_Q8}}$j--;$as($_.thispairs);$j--;if($_.i>0){$k[$j++]=Infinity;$q($_.lastpairs);$q($_.thispairs);$k[$j++]=$_.n2;for(var _QF=0,_QG=$_.cols;_QF<_QG;_QF++){var _QH=$k[--$j];var _QI=$k[--$j];$k[$j++]=_QH;$k[$j++]=_QI;if(_QI!=-1){var _QK=$k[$j-1-$f($_.cols+1)];if($eq($k[--$j],_QK)){var _QM=$k[--$j];$k[$j++]=$f(_QM+3)}}else{$j--}}$_.n2=$k[--$j];$l()}}$k[$j++]=$f($f($_.n1+$_.n2)+$_.n3)};$_.bestscore=999999999;for(var _QT=0,_QS=$_.masks.length-1;_QT<=_QS;_QT+=1){$_.m=_QT;$_.masksym=$a($_.rows*$_.cols);for(var _Qa=0,_QZ=$f($_.rows*$_.cols-1);_Qa<=_QZ;_Qa+=1){$_.i=_Qa;$p($_.masksym,$_.i,$xo($g($_.pixs,$_.i),$g($g($_.masks,$_.m),$_.i)))}if($_.masks.length!=1){$k[$j++]=$_.masksym;$_.evalmask();$_.score=$k[--$j];if($_.score<$_.bestscore){$_.bestsym=$_.masksym;$_.bestmaskval=$_.m;$_.bestscore=$_.score}}else{$_.bestsym=$_.masksym}}$_.pixs=$_.bestsym;$_.metamask=$_.bestmaskval;$_.addtometapart=function(){var _Qw=$k[--$j];$P($_.metapart,$_.p,_Qw);$_.p=_Qw.length+$_.p};$_.addtometabits=function(){var _R0=$k[--$j];$P($_.metabits,$_.q,_R0);$_.q=_R0.length+$_.q};$_.metapart=$s(40);$_.metabits=$s($_.nummetabits);$_.p=0;$_.q=0;if(!$_.slave){$k[$j++]=~~Math.round(Math.log($_.colors)/Math.log(2))-1;$k[$j++]=3;$_.tofixedbits();$_.addtometapart();$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;$k[$j++]=$_.metass;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.metavf;$k[$j++]=2;$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.metamask;$k[$j++]=3;$_.tofixedbits();$_.addtometapart();if($_.hasslaves){$k[$j++]="1"}else{$k[$j++]="0"}$_.addtometapart();$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;if($_.metass==0){$k[$j++]=$f($f(~~($f($_.cols-17)/4)-$g($a([0,4,8,16]),$_.metavf))-1);$k[$j++]=$_.metavlen;$_.tofixedbits();$_.addtometapart()}else{$k[$j++]=~~($f($_.cols-17)/4)-1;$k[$j++]=~~($_.metavlen/2);$_.tofixedbits();$_.addtometapart();$k[$j++]=~~($f($_.rows-17)/4)-1;$k[$j++]=~~($_.metavlen/2);$_.tofixedbits();$_.addtometapart()}$k[$j++]=$_.datawc-3;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.datawr-4;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart();if($_.hasslaves){$k[$j++]=0;$k[$j++]=4;$_.tofixedbits();$_.addtometapart()}$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0}else{var _Rc=$_.sameshape?0:1;$k[$j++]=_Rc;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();var _Re=$_.sameecc?0:1;$k[$j++]=_Re;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();var _Rg=$_.hasslaves?1:0;$k[$j++]=_Rg;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;if(!$_.sameshape){$k[$j++]=~~(($_.diffside-17)/4)-1;$k[$j++]=5;$_.tofixedbits();$_.addtometapart()}if($_.hasslaves){$k[$j++]=0;$k[$j++]=3;$_.tofixedbits();$_.addtometapart()}$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;if(!$_.sameecc){$k[$j++]=$_.datawc-3;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.datawr-4;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart()}$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0}for(var _S1=$_.q,_S0=$f($_.nummetabits-1);_S1<=_S0;_S1+=1){$p($_.metabits,_S1,48)}$_.i=0;$_.j=0;if(!$_.slave){var _S6=$G($_.metabits,$_.i,6);for(var _S7=0,_S8=_S6.length;_S7<_S8;_S7++){$k[$j++]=$g(_S6,_S7);if($_.colors==4){$k[$j++]=$a([$_.bi,$_.yi])}else{$k[$j++]=$a([$_.ki,$_.wi])}var _SH=$k[--$j];var _SJ=$g(_SH,$f($k[--$j]-48));$k[$j++]=_SJ;$k[$j++]=$_.pixs;$q($g($_.metadatamap,$_.j));$_.jmv();var _SO=$k[--$j];var _SP=$k[--$j];$p(_SP,_SO,$k[--$j]);$_.j=$_.j+1}$_.i=$_.i+6}for(var _SW=0,_SX=~~($f($_.nummetabits-$_.i)/$_.metabpm);_SW<_SX;_SW++){var _Sb=$G($_.metabits,$_.i,$_.metabpm);$k[$j++]=0;for(var _Sc=0,_Sd=_Sb.length;_Sc<_Sd;_Sc++){var _Sf=$k[--$j];$k[$j++]=$f(_Sf+$f($g(_Sb,_Sc)-48))*2}var _Si=$g($_.metacolorindex,~~($k[--$j]/2));$k[$j++]=_Si;$k[$j++]=$_.pixs;$q($g($_.metadatamap,$_.j));$_.jmv();var _Sn=$k[--$j];var _So=$k[--$j];$p(_So,_Sn,$k[--$j]);$_.i=$f($_.i+$_.metabpm);$_.j=$_.j+1}var _T0=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.cols],["pixy",$_.rows],["colormap",$_.palette],["height",$_.rows*2/72],["width",$_.cols*2/72],["opt",$_.options]]);$k[$j++]=_T0;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1_cc(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=false;$_.dontdraw=false;$_.ccversion="a";$_.cccolumns=-1;$_.lintype="";$_.linwidth=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_gs1_cc);if($ne($_.ccversion,"a")&&$ne($_.ccversion,"b")&&$ne($_.ccversion,"c")){$k[$j++]="bwipp.gs1ccBadCCversion#27168";$k[$j++]="ccversion must be a, b or c";bwipp_raiseerror()}if($_.cccolumns>30){$k[$j++]="bwipp.gs1ccColumnsTooBig#27172";$k[$j++]="The maximum number of composite component columns is 30";bwipp_raiseerror()}if(!bwipp_gs1_cc.__27190__){$_=Object.create($_);var _6=new Map([["ean13",4],["upca",4],["ean8",3],["upce",2],["gs1-128",4],["databaromni",4],["databarstacked",2],["databarstackedomni",2],["databartruncated",4],["databarlimited",3],["databarexpanded",4],["databarexpandedstacked",4]]);$_.lintypecccolumns=_6;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27190__=1;$_=Object.getPrototypeOf($_)}if($ne($_.lintype,"")){var _B=$g($_.lintypecccolumns,$_.lintype)!==undefined;if(!_B){$k[$j++]="bwipp.gs1ccBadLinType#27194";$k[$j++]="The lintype is not recognised";bwipp_raiseerror()}}if($_.cccolumns==-1){if($eq($_.lintype,"gs1-128")&&$eq($_.ccversion,"c")){if($_.linwidth<0){$k[$j++]="bwipp.gs1ccMissingLinWidth#27202";$k[$j++]="linwidth must be set for a GS1-128 with a CC-C composite component";bwipp_raiseerror()}$k[$j++]=~~(($_.linwidth-52)/17)}else{$k[$j++]=$g($_.lintypecccolumns,$_.lintype)}$_.cccolumns=$k[--$j]}$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.isupper=function(){var _P=$k[--$j];$k[$j++]=_P>=65&&_P<=90};$_.isnum0=function(){var _Q=$k[--$j];$k[$j++]=_Q>=48&&_Q<=57};$_.isnum1=function(){var _R=$k[--$j];$k[$j++]=_R>=49&&_R<=57};for(;;){if($_.ais.length>=1){if($eq($g($_.ais,0),"10")||$eq($g($_.ais,0),"11")||$eq($g($_.ais,0),"17")){$k[$j++]=-1;$k[$j++]="10";break}}if($_.ais.length>=1){if($eq($g($_.ais,0),"90")){$_.v=$g($_.vals,0);if($_.v.length>=1){$k[$j++]=$g($_.v,0);$_.isupper();if($k[--$j]){$k[$j++]=0;$k[$j++]="11";break}}if($_.v.length>=2){$k[$j++]=$g($_.v,0);$_.isnum1();$k[$j++]=$g($_.v,1);$_.isupper();var _n=$k[--$j];var _o=$k[--$j];if(_o&&_n){$k[$j++]=1;$k[$j++]="11";break}}if($_.v.length>=3){$k[$j++]=$g($_.v,0);$_.isnum1();$k[$j++]=$g($_.v,1);$_.isnum0();var _u=$k[--$j];var _v=$k[--$j];$k[$j++]=$an(_v,_u);$k[$j++]=$g($_.v,2);$_.isupper();var _y=$k[--$j];var _z=$k[--$j];if(_z&&_y){$k[$j++]=2;$k[$j++]="11";break}}if($_.v.length>=4){$k[$j++]=$g($_.v,0);$_.isnum1();$k[$j++]=$g($_.v,1);$_.isnum0();var _15=$k[--$j];var _16=$k[--$j];$k[$j++]=$an(_16,_15);$k[$j++]=$g($_.v,2);$_.isnum0();var _19=$k[--$j];var _1A=$k[--$j];$k[$j++]=$an(_1A,_19);$k[$j++]=$g($_.v,3);$_.isupper();var _1D=$k[--$j];var _1E=$k[--$j];if(_1E&&_1D){$k[$j++]=3;$k[$j++]="11";break}}}}$k[$j++]=-1;$k[$j++]="0";break}$_.method=$k[--$j];$_.npre=$k[--$j];$_.tobin=function(){var _1I=$s($k[--$j]);$k[$j++]=_1I;for(var _1K=0,_1J=_1I.length-1;_1K<=_1J;_1K+=1){var _1L=$k[--$j];$p(_1L,_1K,48);$k[$j++]=_1L}var _1M=$k[--$j];var _1P=$R($s(_1M.length),$k[--$j],2);$P(_1M,_1M.length-_1P.length,_1P);$k[$j++]=_1M};if(!bwipp_gs1_cc.__27322__){$_=Object.create($_);$_.fnc1=-1;$_.lnumeric=-2;$_.lalphanumeric=-3;$_.liso646=-4;$k[$j++]=Infinity;for(var _1Q=65;_1Q<=90;_1Q+=1){$k[$j++]=_1Q;$k[$j++]=_1Q-65;$k[$j++]=5;$_.tobin()}for(var _1R=48;_1R<=57;_1R+=1){$k[$j++]=_1R;$k[$j++]=_1R+4;$k[$j++]=6;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="11111";$_.alpha=$d();$k[$j++]=Infinity;for(var _1U=0;_1U<=119;_1U+=1){var _1W=$Z($s(2),"00");var _1Y=$R($s(2),_1U,11);$P(_1W,2-_1Y.length,_1Y);$k[$j++]=_1U;$k[$j++]=_1W;if($g(_1W,0)==65){var _1a=$k[--$j];$p(_1a,0,94);$k[$j++]=_1a}var _1b=$k[--$j];$k[$j++]=_1b;if($g(_1b,1)==65){var _1d=$k[--$j];$p(_1d,1,94);$k[$j++]=_1d}var _1e=$k[--$j];var _1h=$Z($s(7),"0000000");var _1j=$R($s(7),$f($k[--$j]+8),2);$P(_1h,7-_1j.length,_1j);$k[$j++]=_1e;$k[$j++]=_1h}$k[$j++]=$_.lalphanumeric;$k[$j++]="0000";$_.numeric=$d();$k[$j++]=Infinity;for(var _1m=48;_1m<=57;_1m+=1){$k[$j++]=_1m;$k[$j++]=_1m-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _1o=65;_1o<=90;_1o+=1){$k[$j++]=_1o;$k[$j++]=_1o-33;$k[$j++]=6;$_.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _1p=44;_1p<=47;_1p+=1){$k[$j++]=_1p;$k[$j++]=_1p+15;$k[$j++]=6;$_.tobin()}$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.liso646;$k[$j++]="00100";$_.alphanumeric=$d();$k[$j++]=Infinity;for(var _1t=48;_1t<=57;_1t+=1){$k[$j++]=_1t;$k[$j++]=_1t-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _1v=65;_1v<=90;_1v+=1){$k[$j++]=_1v;$k[$j++]=_1v-1;$k[$j++]=7;$_.tobin()}for(var _1w=97;_1w<=122;_1w+=1){$k[$j++]=_1w;$k[$j++]=_1w-7;$k[$j++]=7;$_.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _1x=37;_1x<=47;_1x+=1){$k[$j++]=_1x;$k[$j++]=_1x+197;$k[$j++]=8;$_.tobin()}for(var _1y=58;_1y<=63;_1y+=1){$k[$j++]=_1y;$k[$j++]=_1y+187;$k[$j++]=8;$_.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.lalphanumeric;$k[$j++]="00100";$_.iso646=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27322__=1;$_=Object.getPrototypeOf($_)}if($eq($_.method,"10")){if($eq($g($_.ais,0),"11")||$eq($g($_.ais,0),"17")){var _29=$g($_.vals,0);var _2E=$Z($s(16),"0000000000000000");var _2G=$R($s(16),$i($G(_29,0,2))*384+(($i($G(_29,2,2))-1)*32+$i($G(_29,4,2))),2);$P(_2E,16-_2G.length,_2G);$k[$j++]=_2E;$k[$j++]=Infinity;var _2H=$k[--$j];var _2I=$k[--$j];$k[$j++]=_2H;$k[$j++]=1;$k[$j++]=0;$F(_2I,function(){var _2J=$k[--$j];$k[$j++]=$f(_2J-48)});var _2M=$eq($g($_.ais,0),"11")?0:1;$k[$j++]=_2M;$_.cdf=$a();$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1)}else{$_.cdf=$a([1,0,1,1])}if($_.ais.length!=0){if($eq($g($_.ais,0),"10")){$k[$j++]=Infinity;$F($g($_.vals,0));$_.gpf=$a();if($_.ais.length>1){$k[$j++]=Infinity;$q($_.gpf);$k[$j++]=$_.fnc1;$_.gpf=$a()}$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1)}else{$_.gpf=$a([$_.fnc1])}}else{$k[$j++]=Infinity;$q($_.cdf);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.cdf=$a();$_.gpf=$a([])}$_.mode="numeric"}if($eq($_.method,"11")){$_.cdf=$a([1,1]);$_.ai90=$g($_.vals,0);if($f($_.npre+1)!=$_.ai90.length){$k[$j++]=$G($_.ai90,$f($_.npre+1),$f($f($_.ai90.length-$_.npre)-1))}else{$k[$j++]=""}$_.ai90rem=$k[--$j];$k[$j++]="nalpha";$k[$j++]=0;$F($_.ai90rem,function(){var _39=$k[--$j];if(_39>=65&&_39<=90){var _3A=$k[--$j];$k[$j++]=$f(_3A+1)}});var _3B=$k[--$j];$_[$k[--$j]]=_3B;$k[$j++]="nnums";$k[$j++]=0;$F($_.ai90rem,function(){var _3E=$k[--$j];if(_3E>=48&&_3E<=57){var _3F=$k[--$j];$k[$j++]=$f(_3F+1)}});var _3G=$k[--$j];$_[$k[--$j]]=_3G;$k[$j++]="mode";if($gt($_.nalpha,$_.nnums)){$k[$j++]="alpha"}else{if($_.nalpha==0){$k[$j++]="numeric"}else{$k[$j++]="alphanumeric"}}var _3L=$k[--$j];$_[$k[--$j]]=_3L;if($f($_.nalpha+$_.nnums)!=$_.ai90rem.length){$_.mode="alphanumeric"}$k[$j++]=Infinity;$q($_.cdf);if($eq($_.mode,"alphanumeric")){$k[$j++]=0}if($eq($_.mode,"numeric")){$k[$j++]=1;$k[$j++]=0}if($eq($_.mode,"alpha")){$k[$j++]=1;$k[$j++]=1}$_.cdf=$a();$k[$j++]="ais1";if($_.ais.length>1){$k[$j++]=$g($_.ais,1)}else{$k[$j++]=-1}var _3Y=$k[--$j];$_[$k[--$j]]=_3Y;$k[$j++]="vals1";if($_.vals.length>1){$k[$j++]=$g($_.vals,1)}else{$k[$j++]=-1}var _3d=$k[--$j];$_[$k[--$j]]=_3d;if($eq($_.ais1,"21")||$eq($_.ais1,"8004")){$k[$j++]=Infinity;$q($_.cdf);if($eq($_.ais1,"21")){$k[$j++]=1;$k[$j++]=0}else{$k[$j++]=1;$k[$j++]=1}$_.cdf=$a()}else{$k[$j++]=Infinity;$q($_.cdf);$k[$j++]=0;$_.cdf=$a()}$k[$j++]="nval";if($_.npre!=0){$k[$j++]=$i($G($_.ai90,0,$_.npre))}else{$k[$j++]=0}var _3q=$k[--$j];$_[$k[--$j]]=_3q;$X("BDHIJKLNPQRSTVXZ",$G($_.ai90,$_.npre,1));if($k[--$j]){var _3w=$k[--$j];var _3x=$k[--$j];$k[$j++]=_3w.length;$k[$j++]=_3x;$j--;var _3y=$k[--$j];var _3z=$k[--$j];$k[$j++]=_3y;$k[$j++]=_3z;$j--;$_.aval=$k[--$j]}else{$j--;$_.aval=-1}if($_.nval<31&&$_.aval!=-1){var _44=$Z($s(5),"00000");var _47=$R($s(5),$_.nval,2);$P(_44,5-_47.length,_47);$k[$j++]=_44;$k[$j++]=Infinity;var _48=$k[--$j];var _49=$k[--$j];$k[$j++]=_48;$F(_49,function(){var _4A=$k[--$j];$k[$j++]=$f(_4A-48)});$_.nbits=$a();var _4D=$Z($s(4),"0000");var _4G=$R($s(4),$_.aval,2);$P(_4D,4-_4G.length,_4G);$k[$j++]=_4D;$k[$j++]=Infinity;var _4H=$k[--$j];var _4I=$k[--$j];$k[$j++]=_4H;$F(_4I,function(){var _4J=$k[--$j];$k[$j++]=$f(_4J-48)});$_.abits=$a();$k[$j++]=Infinity;$q($_.cdf);$q($_.nbits);$q($_.abits);$_.cdf=$a()}else{var _4Q=$Z($s(10),"0000000000");var _4T=$R($s(10),$_.nval,2);$P(_4Q,10-_4T.length,_4T);$k[$j++]=_4Q;$k[$j++]=Infinity;var _4U=$k[--$j];var _4V=$k[--$j];$k[$j++]=_4U;$F(_4V,function(){var _4W=$k[--$j];$k[$j++]=$f(_4W-48)});$_.nbits=$a();var _4Z=$Z($s(5),"00000");var _4e=$R($s(5),$f($g($_.ai90,$_.npre)-65),2);$P(_4Z,5-_4e.length,_4e);$k[$j++]=_4Z;$k[$j++]=Infinity;var _4f=$k[--$j];var _4g=$k[--$j];$k[$j++]=_4f;$F(_4g,function(){var _4h=$k[--$j];$k[$j++]=$f(_4h-48)});$_.abits=$a();$k[$j++]=Infinity;$q($_.cdf);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$q($_.nbits);$q($_.abits);$_.cdf=$a()}if($ne($_.mode,"alpha")){$k[$j++]=Infinity;$F($_.ai90rem);if($_.ais.length>1){$k[$j++]=$_.fnc1}$_.gpf=$a()}else{$k[$j++]=Infinity;$F($_.ai90rem);if($_.ais.length>1){$k[$j++]=$_.fnc1}$_.in=$a();$_.out=$a($_.in.length*6);$_.j=0;for(var _50=0,_4z=$_.in.length-1;_50<=_4z;_50+=1){var _54=$g($_.alpha,$g($_.in,_50));$k[$j++]=_54;$k[$j++]=_54;$k[$j++]=Infinity;var _55=$k[--$j];var _56=$k[--$j];$k[$j++]=_55;$F(_56,function(){var _57=$k[--$j];$k[$j++]=$f(_57-48)});$P($_.out,$_.j,$a());$_.j=$k[--$j].length+$_.j}$k[$j++]=Infinity;$q($_.cdf);$q($G($_.out,0,$_.j));$_.cdf=$a();$_.gpf=$a([]);if($_.ais.length>1){$_.mode="numeric"}}$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1);if($_.ais.length!=0){if($eq($_.ais1,"21")||$eq($_.ais1,"8004")){$k[$j++]=Infinity;$q($_.gpf);$F($_.vals1);$_.gpf=$a();$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1);if($_.ais.length!=0){$k[$j++]=Infinity;$q($_.gpf);$k[$j++]=$_.fnc1;$_.gpf=$a()}}}}if($eq($_.method,"0")){$_.cdf=$a([0]);$_.gpf=$a([]);$_.mode="numeric"}for(var _5r=0,_5q=$_.ais.length-1;_5r<=_5q;_5r+=1){$_.i=_5r;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _61=$a($_.gpf.length+$_.ai.length+$_.val.length);$P(_61,0,$_.gpf);$k[$j++]=_61;$k[$j++]=_61;$k[$j++]=$_.gpf.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _65=$k[--$j];var _66=$k[--$j];$k[$j++]=_65;$F(_66);var _67=$a();var _68=$k[--$j];$P($k[--$j],_68,_67);var _6A=$k[--$j];$k[$j++]=_6A;$k[$j++]=_6A;$k[$j++]=$_.gpf.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _6E=$k[--$j];var _6F=$k[--$j];$k[$j++]=_6E;$F(_6F);var _6G=$a();var _6H=$k[--$j];$P($k[--$j],_6H,_6G);$_.gpf=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _6Q=$a($_.gpf.length+1);$P(_6Q,0,$_.gpf);$p(_6Q,$_.gpf.length,$_.fnc1);$_.gpf=_6Q}}if(!bwipp_gs1_cc.__27491__){$_=Object.create($_);var _6c=new Map([["a",$a([$a([167,138,118,108,88,78,59]),$a([167,138,118,98,78]),$a([197,167,138,108,78])])],["b",$a([$a([336,296,256,208,160,104,56]),$a([768,648,536,416,304,208,152,112,72,32]),$a([1184,1016,840,672,496,352,264,208,152,96,56])])]]);$_.bitcapsmaps=_6c;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27491__=1;$_=Object.getPrototypeOf($_)}$_.rembits=function(){$_.used=$k[--$j];if($ne($_.ccversion,"c")){$_.bitcaps=$g($g($_.bitcapsmaps,$_.ccversion),$f($_.cccolumns-2));$k[$j++]=-1;$F($_.bitcaps,function(){var _6m=$k[--$j];$k[$j++]=_6m;if($ge(_6m,$_.used)){var _6o=$k[--$j];var _6p=$k[--$j];$k[$j++]=_6o;$k[$j++]=_6p}$j--});var _6q=$k[--$j];$k[$j++]=_6q;if(_6q!=-1){var _6s=$k[--$j];$k[$j++]=$f(_6s-$_.used)}}else{var _6t=new Map([["c",-1]]);var _6v=$g(_6t,$_.ccversion);var _6x=~~Math.ceil($_.used/8);$_.m=~~(_6x/6)*5+_6x%6;if($_.m<=40){$k[$j++]=8}if($_.m>=41&&$_.m<=160){$k[$j++]=16}if($_.m>=161&&$_.m<=320){$k[$j++]=32}if($_.m>=321&&$_.m<=833){$k[$j++]=64}if($_.m>=834){$k[$j++]=32}$_.eccws=$k[--$j];$_.m=$f($f($_.m+$_.eccws)+3);if($_.cccolumns>30){$_.cccolumns=30}for(;;){if(~~Math.ceil($_.m/$_.cccolumns)<=30||$_.cccolumns>=30){break}$_.cccolumns=$_.cccolumns+1}$_.r=~~Math.ceil($_.m/$_.cccolumns);if($_.r<3){$_.r=3}var _7K=$f($f($_.cccolumns*$_.r-$_.eccws)-3);$_.tgt=$f(~~(_7K/5)*6+_7K%5)*8;if($_.used<=8304){$k[$j++]=$f($_.tgt-$_.used)}else{$k[$j++]=-1}}var _7O=$k[--$j];$k[$j++]=_7O;if(_7O==-1){$j--;if($eq($_.ccversion,"a")){$_.ccversion="b"}else{if($eq($_.ccversion,"b")&&$eq($_.lintype,"gs1-128")){$_.ccversion="c";$_.cccolumns=~~(($_.linwidth-52)/17)}else{$_.ccversion=-1}}$k[$j++]=$_.used;$_.rembits()}};$_.encode=function(){var _7U=$k[--$j];$k[$j++]=_7U;if($ne(_7U,"raw")){var _7V=$k[--$j];var _7X=$g(_7V,$k[--$j]);$k[$j++]=_7X}else{$j--}$k[$j++]=Infinity;var _7Y=$k[--$j];var _7Z=$k[--$j];$k[$j++]=_7Y;$F(_7Z,function(){var _7a=$k[--$j];$k[$j++]=$f(_7a-48)});var _7b=$a();$P($_.gpfenc,$_.j,_7b);$_.j=_7b.length+$_.j};$k[$j++]=Infinity;for(var _7g=0,_7h=$_.gpf.length;_7g<_7h;_7g++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$_.numericruns=$a();$k[$j++]=Infinity;for(var _7k=0,_7l=$_.gpf.length;_7k<_7l;_7k++){$k[$j++]=0}$k[$j++]=0;$_.alphanumericruns=$a();$k[$j++]=Infinity;for(var _7o=0,_7p=$_.gpf.length;_7o<_7p;_7o++){$k[$j++]=0}$k[$j++]=9999;$_.nextiso646only=$a();for(var _7s=$_.gpf.length-1;_7s>=0;_7s-=1){$_.i=_7s;var _7x=$Z($s(2),"00");var _80=$g($_.gpf,$_.i);$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=_7x;$k[$j++]=_7x;$k[$j++]=0;$k[$j++]=_80;if(_80==$_.fnc1){$j--;$k[$j++]=94}var _82=$k[--$j];var _83=$k[--$j];$p($k[--$j],_83,_82);if($_.i<$_.gpf.length-1){var _87=$k[--$j];var _8A=$g($_.gpf,$_.i+1);$k[$j++]=_87;$k[$j++]=_87;$k[$j++]=1;$k[$j++]=_8A;if(_8A==$_.fnc1){$j--;$k[$j++]=94}var _8C=$k[--$j];var _8D=$k[--$j];$p($k[--$j],_8D,_8C)}var _8H=$g($_.numeric,$k[--$j])!==undefined;if(_8H){$p($_.numericruns,$_.i,$f($g($_.numericruns,$_.i+2)+2))}else{$p($_.numericruns,$_.i,0)}var _8P=$k[--$j];var _8R=$g($_.alphanumeric,_8P)!==undefined;$k[$j++]=_8P;if(_8R){$p($_.alphanumericruns,$_.i,$f($g($_.alphanumericruns,$_.i+1)+1))}else{$p($_.alphanumericruns,$_.i,0)}var _8Z=$k[--$j];var _8b=$g($_.iso646,_8Z)!==undefined;var _8d=$g($_.alphanumeric,_8Z)!==undefined;if(_8b&&!_8d){$p($_.nextiso646only,$_.i,0)}else{$p($_.nextiso646only,$_.i,$f($g($_.nextiso646only,$_.i+1)+1))}}$_.gpfenc=$a(8304);$_.i=0;$_.j=0;for(;;){if($_.i==$_.gpf.length){break}for(;;){if($eq($_.mode,"numeric")){if($_.i<=$_.gpf.length-2){var _8r=$s(2);var _8u=$g($_.gpf,$_.i);$k[$j++]=_8r;$k[$j++]=_8r;$k[$j++]=0;$k[$j++]=_8u;if(_8u==$_.fnc1){$j--;$k[$j++]=94}var _8w=$k[--$j];var _8x=$k[--$j];$p($k[--$j],_8x,_8w);var _8z=$k[--$j];var _92=$g($_.gpf,$_.i+1);$k[$j++]=_8z;$k[$j++]=_8z;$k[$j++]=1;$k[$j++]=_92;if(_92==$_.fnc1){$j--;$k[$j++]=94}var _94=$k[--$j];var _95=$k[--$j];$p($k[--$j],_95,_94);var _97=$k[--$j];var _99=$g($_.numeric,_97)!==undefined;$k[$j++]=_97;if(_99){$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+2;break}$j--;$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}else{var _9G=$g($_.gpf,$_.i);if(_9G<48||_9G>57){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=$_.cdf.length+$_.j;$_.rembits();var _9L=$k[--$j];$_[$k[--$j]]=_9L;if($_.rem>=4&&$_.rem<=6){var _9S=$G($Z($s(6),"000000"),0,$_.rem);var _9X=$R($s(4),$f($g($_.gpf,$_.i)-47),2);$P(_9S,4-_9X.length,_9X);$k[$j++]=_9S;$k[$j++]="raw";$_.encode();$_.i=$_.i+1;break}else{var _9Z=$s(2);$p(_9Z,0,$g($_.gpf,$_.i));$p(_9Z,1,94);$k[$j++]=_9Z;$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+1;break}}}if($eq($_.mode,"alphanumeric")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}var _9p=$g($_.gpf,$_.i);var _9r=$g($_.iso646,_9p)!==undefined;var _9t=$g($_.alphanumeric,_9p)!==undefined;if(_9r&&!_9t){$k[$j++]=$_.liso646;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="iso646";break}if($g($_.numericruns,$_.i)>=6){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}var _A3=$g($_.numericruns,$_.i);if(_A3>=4&&$f(_A3+$_.i)==$_.gpf.length){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.alphanumeric;$_.encode();$_.i=$_.i+1;break}if($eq($_.mode,"iso646")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}if($g($_.numericruns,$_.i)>=4&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lnumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";break}if($g($_.alphanumericruns,$_.i)>=5&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="alphanumeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.iso646;$_.encode();$_.i=$_.i+1;break}}}$_.gpf=$G($_.gpfenc,0,$_.j);$k[$j++]="pad";$k[$j++]=$_.cdf.length+$_.gpf.length;$_.rembits();var _Am=$a($k[--$j]);$_[$k[--$j]]=_Am;if($_.pad.length>0){for(var _Ar=0,_Aq=$_.pad.length-1;_Ar<=_Aq;_Ar+=5){$_.i=_Ar;var _As=$_.pad;var _At=$_.i;var _Au=$a([0,0,1,0,0]);var _Av=$_.pad;var _Aw=$_.i;var _Ax=5;var _Ay=_Av.length-_Aw;if(_Av.length-_Aw>5){var _=_Ax;_Ax=_Ay;_Ay=_}$P(_As,_At,$G(_Au,0,_Ay))}if($eq($_.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.pad);$_.pad=$G($a(),0,$_.pad.length)}if($eq($_.mode,"alpha")){$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.pad);$_.pad=$G($a(),0,$_.pad.length)}}$k[$j++]=Infinity;$q($_.cdf);$q($_.gpf);$q($_.pad);$_.bits=$a();if(!bwipp_gs1_cc.__27702__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=$a([0,0,0,0,0,0,1]);for(var _BF=0,_BG=68;_BF<_BG;_BF++){$k[$j++]=$a(7)}$_.pwr928=$a();for(var _BJ=1;_BJ<=68;_BJ+=1){$_.j=_BJ;$_.v=0;for(var _BK=6;_BK>=1;_BK-=1){$_.i=_BK;$_.v=$f($g($g($_.pwr928,$_.j-1),$_.i)*2+~~($_.v/928));$p($g($_.pwr928,$_.j),$_.i,$_.v%928)}$p($g($_.pwr928,$_.j),0,$f($g($g($_.pwr928,$_.j-1),0)*2+~~($_.v/928)))}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27702__=1;$_=Object.getPrototypeOf($_)}if($_.ccversion=="a"){$k[$j++]=Infinity;for(var _Bg=0,_Bh=28;_Bg<_Bh;_Bg++){$k[$j++]=0}$_.cws=$a();$_.b=0;$_.c=0;for(;;){if($_.b==$_.bits.length){break}var _Bl=$_.bits;var _Bm=$_.b;var _Bn=$_.bits;var _Bo=$_.b;var _Bp=_Bn.length-_Bo;var _Bq=69;if(69>_Bn.length-_Bo){var _=_Bp;_Bp=_Bq;_Bq=_}$_.bs=$G(_Bl,_Bm,_Bq);$_.bsl=$_.bs.length;$_.cs=$G($_.cws,$_.c,~~($_.bsl/10)+1);$_.csl=$_.cs.length;for(var _C0=0,_Bz=$_.bsl-1;_C0<=_Bz;_C0+=1){$_.i=_C0;for(var _C3=0,_C2=$_.csl-1;_C3<=_C2;_C3+=1){$_.j=_C3;var _C4=$_.cs;var _C5=$_.j;$p(_C4,_C5,$f($g(_C4,_C5)+$g($g($_.pwr928,$_.i),$_.j+7-$_.csl)*$g($_.bs,$_.bsl-$_.i-1)))}}for(var _CI=$_.csl-1;_CI>=1;_CI-=1){$_.i=_CI;var _CJ=$_.cs;var _CK=$_.i;$p(_CJ,_CK-1,$f($g(_CJ,_CK-1)+~~($g($_.cs,$_.i)/928)));var _CP=$_.cs;var _CQ=$_.i;$p(_CP,_CQ,$g(_CP,_CQ)%928)}$_.b=$_.b+$_.bsl;$_.c=$_.c+$_.csl}$_.cws=$G($_.cws,0,$_.c);$_.barcode=$s($_.cws.length*4);for(var _Cd=0,_Cc=$_.cws.length-1;_Cd<=_Cc;_Cd+=1){$_.i=_Cd;var _Cf=$Z($s(4),"^000");var _Ck=$R($s(4),$g($_.cws,$_.i),10);$P(_Cf,4-_Ck.length,_Ck);$P($_.barcode,$_.i*4,_Cf)}delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"cca",true);$p($_.options,"columns",$_.cccolumns);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_micropdf417();var _Cu=$k[--$j];$_[$k[--$j]]=_Cu}if($_.ccversion=="b"){$_.barcode=$s(~~($_.bits.length/8));for(var _D1=0,_D0=$_.barcode.length-1;_D1<=_D0;_D1+=1){$_.i=_D1;var _D4=$G($_.bits,$_.i*8,8);$k[$j++]=0;for(var _D5=0,_D6=_D4.length;_D5<_D6;_D5++){var _D8=$k[--$j];$k[$j++]=$f(_D8+$g(_D4,_D5))*2}$p($_.barcode,$_.i,~~($k[--$j]/2))}delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"ccb",true);$p($_.options,"columns",$_.cccolumns);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_micropdf417();var _DJ=$k[--$j];$_[$k[--$j]]=_DJ}if($_.ccversion=="c"){$_.barcode=$s(~~($_.bits.length/8));for(var _DQ=0,_DP=$_.barcode.length-1;_DQ<=_DP;_DQ+=1){$_.i=_DQ;var _DT=$G($_.bits,$_.i*8,8);$k[$j++]=0;for(var _DU=0,_DV=_DT.length;_DU<_DV;_DU++){var _DX=$k[--$j];$k[$j++]=$f(_DX+$g(_DT,_DU))*2}$p($_.barcode,$_.i,~~($k[--$j]/2))}delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"ccc",true);$p($_.options,"columns",$_.cccolumns);$p($_.options,"eclevel",~~(Math.log($_.eccws)/Math.log(2))-1);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_pdf417();var _Dk=$k[--$j];$_[$k[--$j]]=_Dk}$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean13composite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#27832";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","ean13");$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_ean13();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=93;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=93;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=93;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$$.rmoveto(-2,6);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=$f(_b+$i(_a))});var _c=$k[--$j];$_[$k[--$j]]=_c;$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _g=$k[--$j];$_[$k[--$j]]=_g;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _n=0,_o=$f($_.ccpixx-97);_n<_o;_n++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+2)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _v=0,_w=$_.diff;_v<_w;_v++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _15=0,_16=$_.ccpixx,_14=$_.ccpixs.length-1;_16<0?_15>=_14:_15<=_14;_15+=_16){$_.i=_15;for(var _17=0,_18=2;_17<_18;_17++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}for(var _1E=0,_1F=2;_1E<_1F;_1E++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1H=0,_1I=93;_1H<_1I;_1H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1K=0,_1L=2;_1K<_1L;_1K++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1N=0,_1O=93;_1N<_1O;_1N++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1Q=0,_1R=2;_1Q<_1R;_1Q++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1T=0,_1U=93;_1T<_1U;_1T++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1W=71;_1W>=0;_1W-=1){$_.y=_1W;$q($_.linpad);$k[$j++]=0;for(var _1a=0,_1Z=$_.sbs.length-1;_1a<=_1Z;_1a+=1){$_.i=_1a;if($_.i%2==0){var _1f=$g($_.bbs,~~($_.i/2))*72;if(_1f>$_.y||$f(_1f+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1o=0,_1p=$i($g($_.sbs,$_.i));_1o<_1p;_1o++){$k[$j++]=0}}else{for(var _1t=0,_1u=$i($g($_.sbs,$_.i));_1t<_1u;_1t++){$k[$j++]=1}}}else{for(var _1y=0,_1z=$i($g($_.sbs,$_.i));_1y<_1z;_1y++){$k[$j++]=0}}}$k[$j++]=0}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _29=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_29;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_ean8composite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#27993";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","ean8");$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_ean8();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=65;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=65;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=65;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=69;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=69/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _S=$k[--$j];$$.rmoveto($f(69-$g(_S,"pixx")),6);$k[$j++]=_S;bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _c=$k[--$j];var _d=$k[--$j];$k[$j++]=$f(_d+$i(_c))});var _e=$k[--$j];$_[$k[--$j]]=_e;var _g=$_.comp;$k[$j++]="compsym";$k[$j++]=_g;$k[$j++]=$_.options;bwipp_gs1_cc();var _i=$k[--$j];$_[$k[--$j]]=_i;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _p=0,_q=$f($_.ccpixx-69);_p<_q;_p++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+2)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _x=0,_y=$_.diff;_x<_y;_x++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _17=0,_18=$_.ccpixx,_16=$_.ccpixs.length-1;_18<0?_17>=_16:_17<=_16;_17+=_18){$_.i=_17;for(var _19=0,_1A=2;_19<_1A;_19++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}for(var _1G=0,_1H=2;_1G<_1H;_1G++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1J=0,_1K=65;_1J<_1K;_1J++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1M=0,_1N=2;_1M<_1N;_1M++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1P=0,_1Q=65;_1P<_1Q;_1P++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1S=0,_1T=2;_1S<_1T;_1S++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1V=0,_1W=65;_1V<_1W;_1V++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1Y=71;_1Y>=0;_1Y-=1){$_.y=_1Y;$q($_.linpad);$k[$j++]=0;for(var _1c=0,_1b=$_.sbs.length-1;_1c<=_1b;_1c+=1){$_.i=_1c;if($_.i%2==0){var _1h=$g($_.bbs,~~($_.i/2))*72;if(_1h>$_.y||$f(_1h+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1q=0,_1r=$i($g($_.sbs,$_.i));_1q<_1r;_1q++){$k[$j++]=0}}else{for(var _1v=0,_1w=$i($g($_.sbs,$_.i));_1v<_1w;_1v++){$k[$j++]=1}}}else{for(var _20=0,_21=$i($g($_.sbs,$_.i));_20<_21;_20++){$k[$j++]=0}}}$k[$j++]=0}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _2B=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_2B;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_upcacomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28157";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","ean13");$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_upca();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=93;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=93;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=93;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$$.rmoveto(-2,6);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=$f(_b+$i(_a))});var _c=$k[--$j];$_[$k[--$j]]=_c;$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _g=$k[--$j];$_[$k[--$j]]=_g;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _n=0,_o=$f($_.ccpixx-97);_n<_o;_n++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+2)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _v=0,_w=$_.diff;_v<_w;_v++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _15=0,_16=$_.ccpixx,_14=$_.ccpixs.length-1;_16<0?_15>=_14:_15<=_14;_15+=_16){$_.i=_15;for(var _17=0,_18=2;_17<_18;_17++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}for(var _1E=0,_1F=2;_1E<_1F;_1E++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1H=0,_1I=93;_1H<_1I;_1H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1K=0,_1L=2;_1K<_1L;_1K++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1N=0,_1O=93;_1N<_1O;_1N++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1Q=0,_1R=2;_1Q<_1R;_1Q++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1T=0,_1U=93;_1T<_1U;_1T++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1W=71;_1W>=0;_1W-=1){$_.y=_1W;$q($_.linpad);$k[$j++]=0;for(var _1a=0,_1Z=$_.sbs.length-1;_1a<=_1Z;_1a+=1){$_.i=_1a;if($_.i%2==0){var _1f=$g($_.bbs,~~($_.i/2))*72;if(_1f>$_.y||$f(_1f+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1o=0,_1p=$i($g($_.sbs,$_.i));_1o<_1p;_1o++){$k[$j++]=0}}else{for(var _1t=0,_1u=$i($g($_.sbs,$_.i));_1t<_1u;_1t++){$k[$j++]=1}}}else{for(var _1y=0,_1z=$i($g($_.sbs,$_.i));_1y<_1z;_1y++){$k[$j++]=0}}}$k[$j++]=0}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _29=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_29;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_upcecomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28318";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","upce");$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_upce();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=49;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=49;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=49;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=53;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=53/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$$.rmoveto(-2,6);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=$f(_b+$i(_a))});var _c=$k[--$j];$_[$k[--$j]]=_c;$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _g=$k[--$j];$_[$k[--$j]]=_g;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _n=0,_o=$f($_.ccpixx-53);_n<_o;_n++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+2)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _v=0,_w=$_.diff;_v<_w;_v++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _15=0,_16=$_.ccpixx,_14=$_.ccpixs.length-1;_16<0?_15>=_14:_15<=_14;_15+=_16){$_.i=_15;for(var _17=0,_18=2;_17<_18;_17++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}for(var _1E=0,_1F=2;_1E<_1F;_1E++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1H=0,_1I=49;_1H<_1I;_1H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1K=0,_1L=2;_1K<_1L;_1K++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1N=0,_1O=49;_1N<_1O;_1N++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1Q=0,_1R=2;_1Q<_1R;_1Q++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1T=0,_1U=49;_1T<_1U;_1T++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1W=71;_1W>=0;_1W-=1){$_.y=_1W;$q($_.linpad);$k[$j++]=0;for(var _1a=0,_1Z=$_.sbs.length-1;_1a<=_1Z;_1a+=1){$_.i=_1a;if($_.i%2==0){var _1f=$g($_.bbs,~~($_.i/2))*72;if(_1f>$_.y||$f(_1f+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1o=0,_1p=$i($g($_.sbs,$_.i));_1o<_1p;_1o++){$k[$j++]=0}}else{for(var _1t=0,_1u=$i($g($_.sbs,$_.i));_1t<_1u;_1t++){$k[$j++]=1}}}else{for(var _1y=0,_1z=$i($g($_.sbs,$_.i));_1y<_1z;_1y++){$k[$j++]=0}}}$k[$j++]=0}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _29=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_29;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databaromnicomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28479";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databaromni");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databaromni();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _U=$_.fp,_T=$f($_.fp+12);_U<=_T;_U+=1){$_.i=_U;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _e=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_e}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _j=0;_j<=12;_j+=1){var _p=$k[--$j];$k[$j++]=_p&&$eq($g($_.bot,$f(_j+$_.fp)),$g($_.f3,_j))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _v=$k[--$j];var _w=$k[--$j];var _x=_w==1?0:1;$k[$j++]=_w;for(var _y=0,_z=_v;_y<_z;_y++){$k[$j++]=_x}});$as($a($m()-1));$_.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($_.bot,function(){var _14=$k[--$j];$k[$j++]=$f(1-_14)});$_.sep=$a();$P($_.sep,0,$a([0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();$k[$j++]=64;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1H=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1H;bwipp_renmatrix();$$.rmoveto(-5,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1M=$k[--$j];$_[$k[--$j]]=_1M;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _1T=$k[--$j];var _1U=$k[--$j];var _1V=_1U==0?1:0;$k[$j++]=_1U;for(var _1W=0,_1X=$i(_1T);_1W<_1X;_1W++){$k[$j++]=_1V}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;$k[$j++]=Infinity;for(var _1f=0,_1g=$_.ccpixx,_1e=$_.ccpixs.length-1;_1g<0?_1f>=_1e:_1f<=_1e;_1f+=_1g){$_.i=_1f;for(var _1h=0,_1i=2;_1h<_1i;_1h++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0}}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.sep);for(var _1p=0,_1q=$_.linheight;_1p<_1q;_1p++){$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.linpixs)}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _22=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_22;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarstackedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28636";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarstacked");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarstacked();var _L=$k[--$j];$_.bot=$G($g(_L,"pixs"),0,$g(_L,"pixx"));$_.linheight=$g(_L,"pixy");$k[$j++]=_L;if(!$_.usematrix){bwipp_renmatrix()}else{$_.linpixs=$g($k[--$j],"pixs")}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _X=$_.fp,_W=$f($_.fp+12);_X<=_W;_X+=1){$_.i=_X;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _h=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_h}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _m=0;_m<=12;_m+=1){var _s=$k[--$j];$k[$j++]=_s&&$eq($g($_.bot,$f(_m+$_.fp)),$g($_.f3,_m))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _x=$_.bot;for(var _y=0,_z=_x.length;_y<_z;_y++){$k[$j++]=$f(1-$g(_x,_y))}$_.sep=$a();$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1D=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1D;bwipp_renmatrix();$$.rmoveto(1,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1I=$k[--$j];$_[$k[--$j]]=_1I;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$_.linwidth=$_.sep.length;$k[$j++]=Infinity;for(var _1S=0,_1T=$_.ccpixx,_1R=$_.ccpixs.length-1;_1T<0?_1S>=_1R:_1S<=_1R;_1S+=_1T){$_.i=_1S;for(var _1U=0,_1V=2;_1U<_1V;_1U++){$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx))}}$q($_.sep);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _1e=0,_1f=$_.linwidth,_1d=$_.linpixs.length-1;_1f<0?_1e>=_1d:_1e<=_1d;_1e+=_1f){$_.i=_1e;$q($G($_.linpixs,$_.i,$_.linwidth));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _1u=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1u;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarstackedomnicomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28789";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarstackedomni");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarstackedomni();var _L=$k[--$j];$_.bot=$G($g(_L,"pixs"),0,$g(_L,"pixx"));$_.linheight=$g(_L,"pixy");$k[$j++]=_L;if(!$_.usematrix){bwipp_renmatrix()}else{$_.linpixs=$g($k[--$j],"pixs")}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _X=$_.fp,_W=$f($_.fp+12);_X<=_W;_X+=1){$_.i=_X;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _h=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_h}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _m=0;_m<=12;_m+=1){var _s=$k[--$j];$k[$j++]=_s&&$eq($g($_.bot,$f(_m+$_.fp)),$g($_.f3,_m))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _x=$_.bot;for(var _y=0,_z=_x.length;_y<_z;_y++){$k[$j++]=$f(1-$g(_x,_y))}$_.sep=$a();$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1D=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1D;bwipp_renmatrix();$$.rmoveto(1,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1I=$k[--$j];$_[$k[--$j]]=_1I;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$_.linwidth=$_.sep.length;$k[$j++]=Infinity;for(var _1S=0,_1T=$_.ccpixx,_1R=$_.ccpixs.length-1;_1T<0?_1S>=_1R:_1S<=_1R;_1S+=_1T){$_.i=_1S;for(var _1U=0,_1V=2;_1U<_1V;_1U++){$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx))}}$q($_.sep);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _1e=0,_1f=$_.linwidth,_1d=$_.linpixs.length-1;_1f<0?_1e>=_1d:_1e<=_1d;_1e+=_1f){$_.i=_1e;$q($G($_.linpixs,$_.i,$_.linwidth));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _1u=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1u;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databartruncatedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28943";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databartruncated");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databartruncated();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _U=$_.fp,_T=$f($_.fp+12);_U<=_T;_U+=1){$_.i=_U;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _e=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_e}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _j=0;_j<=12;_j+=1){var _p=$k[--$j];$k[$j++]=_p&&$eq($g($_.bot,$f(_j+$_.fp)),$g($_.f3,_j))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _v=$k[--$j];var _w=$k[--$j];var _x=_w==1?0:1;$k[$j++]=_w;for(var _y=0,_z=_v;_y<_z;_y++){$k[$j++]=_x}});$as($a($m()-1));$_.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($_.bot,function(){var _14=$k[--$j];$k[$j++]=$f(1-_14)});$_.sep=$a();$P($_.sep,0,$a([0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();$k[$j++]=64;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1H=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1H;bwipp_renmatrix();$$.rmoveto(-5,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1M=$k[--$j];$_[$k[--$j]]=_1M;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _1T=$k[--$j];var _1U=$k[--$j];var _1V=_1U==0?1:0;$k[$j++]=_1U;for(var _1W=0,_1X=$i(_1T);_1W<_1X;_1W++){$k[$j++]=_1V}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;$k[$j++]=Infinity;for(var _1f=0,_1g=$_.ccpixx,_1e=$_.ccpixs.length-1;_1g<0?_1f>=_1e:_1f<=_1e;_1f+=_1g){$_.i=_1f;for(var _1h=0,_1i=2;_1h<_1i;_1h++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0}}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.sep);for(var _1p=0,_1q=$_.linheight;_1p<_1q;_1p++){$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.linpixs)}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _22=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_22;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarlimitedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29101";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarlimited");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarlimited();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$k[$j++]=Infinity;$k[$j++]=1;$F($_.linsbs,function(){var _R=$k[--$j];var _S=$k[--$j];var _T=_S==0?1:0;$k[$j++]=_S;for(var _U=0,_V=_R;_U<_V;_U++){$k[$j++]=_T}});$as($a($m()-1));$_.sep=$k[--$j];$j-=2;$P($_.sep,0,$a([0,0,0]));var _c=$_.sep;$P($_.sep,_c.length-9,$a([0,0,0,0,0,0,0,0,0]));if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _g=$_.sep;var _k=new Map([["ren",bwipp_renmatrix],["pixs",_g],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_k;bwipp_renmatrix();$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _n=$k[--$j];$$.rmoveto($f(72-$g(_n,"pixx")),1);$k[$j++]=_n;bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _r=$k[--$j];$_[$k[--$j]]=_r;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _y=$k[--$j];var _z=$k[--$j];var _10=_z==0?1:0;$k[$j++]=_z;for(var _11=0,_12=$i(_y);_11<_12;_11++){$k[$j++]=_10}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;if($_.ccpixx==72){$k[$j++]=Infinity;for(var _1B=0,_1C=$_.ccpixx,_1A=$_.ccpixs.length-1;_1C<0?_1B>=_1A:_1B<=_1A;_1B+=_1C){$_.i=_1B;for(var _1D=0,_1E=2;_1D<_1E;_1D++){$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}}$q($_.sep);for(var _1L=0,_1M=$_.linheight;_1L<_1M;_1L++){$q($_.linpixs)}$_.pixs=$a();$_.pixx=$_.linpixs.length}else{$k[$j++]=Infinity;for(var _1T=0,_1U=$_.ccpixx,_1S=$_.ccpixs.length-1;_1U<0?_1T>=_1S:_1T<=_1S;_1T+=_1U){$_.i=_1T;for(var _1V=0,_1W=2;_1V<_1W;_1V++){$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.sep);for(var _1d=0,_1e=$_.linheight;_1d<_1e;_1d++){$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.linpixs)}$_.pixs=$a();$_.pixx=$f($_.ccpixx+6)}$_.pixy=~~($_.pixs.length/$_.pixx);var _1q=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1q;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarexpandedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29250";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarexpanded");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarexpanded();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _U=$_.fp,_T=$f($_.fp+12);_U<=_T;_U+=1){$_.i=_U;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _e=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_e}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}};$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _j=$k[--$j];var _k=$k[--$j];var _l=_k==1?0:1;$k[$j++]=_k;for(var _m=0,_n=_j;_m<_n;_m++){$k[$j++]=_l}});$as($a($m()-1));$_.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($_.bot,function(){var _s=$k[--$j];$k[$j++]=$f(1-_s)});$_.sep=$a();$P($_.sep,0,$a([0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _11=18,_10=$_.bot.length-13;_11<=_10;_11+=98){$k[$j++]=_11}for(var _14=69,_13=$_.bot.length-13;_14<=_13;_14+=98){$k[$j++]=_14}var _15=$a();for(var _16=0,_17=_15.length;_16<_17;_16++){$k[$j++]=$g(_15,_16);$_.sepfinder()}if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1F=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1F;bwipp_renmatrix();$$.rmoveto(1,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1K=$k[--$j];$_[$k[--$j]]=_1K;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _1R=$k[--$j];var _1S=$k[--$j];var _1T=_1S==0?1:0;$k[$j++]=_1S;for(var _1U=0,_1V=$i(_1R);_1U<_1V;_1U++){$k[$j++]=_1T}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;$_.diff=$f($_.linpixs.length-$_.ccpixx);$k[$j++]=Infinity;for(var _1d=0,_1e=$f($_.diff-2);_1d<_1e;_1d++){$k[$j++]=0}$_.ccrpad=$a();$k[$j++]=Infinity;for(var _1j=0,_1k=$_.ccpixx,_1i=$_.ccpixs.length-1;_1k<0?_1j>=_1i:_1j<=_1i;_1j+=_1k){$_.i=_1j;for(var _1l=0,_1m=2;_1l<_1m;_1l++){$k[$j++]=0;$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}$q($_.sep);for(var _1u=0,_1v=$_.linheight;_1u<_1v;_1u++){$q($_.linpixs)}$_.pixs=$a();$_.pixx=$_.linpixs.length;$_.pixy=~~($_.pixs.length/$_.pixx);var _27=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_27;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarexpandedstackedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29407";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarexpandedstacked");$p($_.options,"linkage",true);$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarexpandedstacked();var _L=$k[--$j];$_.bot=$G($g(_L,"pixs"),0,$g(_L,"pixx"));$_.linheight=$g(_L,"pixy");$k[$j++]=_L;if(!$_.usematrix){bwipp_renmatrix()}else{$_.linpixs=$g($k[--$j],"pixs")}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _X=$_.fp,_W=$f($_.fp+12);_X<=_W;_X+=1){$_.i=_X;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _h=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_h}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}};$k[$j++]=Infinity;var _l=$_.bot;for(var _m=0,_n=_l.length;_m<_n;_m++){$k[$j++]=$f(1-$g(_l,_m))}$_.sep=$a();$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _x=19,_w=$_.bot.length-13;_x<=_w;_x+=98){$k[$j++]=_x}for(var _10=70,_z=$_.bot.length-13;_10<=_z;_10+=98){$k[$j++]=_10}var _11=$a();for(var _12=0,_13=_11.length;_12<_13;_12++){$k[$j++]=$g(_11,_12);$_.sepfinder()}if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1B=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1B;bwipp_renmatrix();var _1E=$g($_.bot,0)==0?2:0;$$.rmoveto(_1E,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1J=$k[--$j];$_[$k[--$j]]=_1J;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$_.pixx=$_.sep.length;$k[$j++]=Infinity;for(var _1S=0,_1T=~~($f($f($_.pixx-$_.ccpixx)+1)/2);_1S<_1T;_1S++){$k[$j++]=0}$_.cclpad=$a();$k[$j++]=Infinity;for(var _1X=0,_1Y=~~($f($_.pixx-$_.ccpixx)/2);_1X<_1Y;_1X++){$k[$j++]=0}$_.ccrpad=$a();$k[$j++]=Infinity;for(var _1d=0,_1e=$_.ccpixx,_1c=$_.ccpixs.length-1;_1e<0?_1d>=_1c:_1d<=_1c;_1d+=_1e){$_.i=_1d;for(var _1f=0,_1g=2;_1f<_1g;_1f++){$q($_.cclpad);$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}$q($_.sep);$q($_.linpixs);$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _1y=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1y;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_gs1_128composite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29556";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"inkspread","0");$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _D=$s($_.linear.length+$_.comp.length);$P(_D,0,$_.linear);$P(_D,$_.linear.length,$_.comp);$k[$j++]=_D;$k[$j++]="ai";bwipp_gs1process();$j-=3;$p($_.options,"linkagea",true);$k[$j++]=$_.linear;$k[$j++]=Infinity;$F($_.options);var _K=$d();$k[$j++]=_K;bwipp_gs1_128();var _M=$g($k[--$j],"sbs");$k[$j++]=0;$F(_M,function(){var _N=$k[--$j];var _O=$k[--$j];$k[$j++]=$f(_O+_N)});$_.linwidth=$k[--$j];$p($_.options,"lintype","gs1-128");$p($_.options,"linwidth",$_.linwidth);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();$_.compsym=$k[--$j];if($g($_.compsym,"pixx")==99){$k[$j++]="a"}else{$k[$j++]="c"}$_.linktype=$k[--$j];if($eq($_.linktype,"a")){$p($_.options,"linkagea",true);$p($_.options,"linkagec",false)}else{$p($_.options,"linkagea",false);$p($_.options,"linkagec",true)}$k[$j++]=$_.linear;$k[$j++]=Infinity;$F($_.options);var _g=$d();$k[$j++]=_g;bwipp_gs1_128();var _h=$k[--$j];$_.linsbs=$g(_h,"sbs");$_.linheight=$g($g(_h,"bhs"),0)*72;$k[$j++]=_h;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$k[$j++]=Infinity;$k[$j++]=1;$F($_.linsbs,function(){var _n=$k[--$j];var _o=$k[--$j];var _p=_o==0?1:0;$k[$j++]=_o;for(var _q=0,_r=_n;_q<_r;_q++){$k[$j++]=_p}});$as($a($m()-1));$_.sep=$k[--$j];$j-=2;if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _11=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_11;bwipp_renmatrix()}if($eq($_.linktype,"a")){$_.s=~~($f($_.linwidth-2)/11);$_.p=~~(($_.s-9)/2);$k[$j++]="x";$k[$j++]=($_.s-$_.p-1)*11+10;if($_.p==0){var _18=$k[--$j];$k[$j++]=$f(_18+2)}var _19=$k[--$j];$_[$k[--$j]]=$f(_19-99)}else{$_.x=-7}if(!$_.usematrix){$$.rmoveto($_.x,1);$k[$j++]=$_.compsym;bwipp_renmatrix();$$.restore()}else{$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$F($_.linsbs,function(){var _1J=$k[--$j];var _1K=$k[--$j];var _1L=_1K==1?0:1;$k[$j++]=_1K;for(var _1M=0,_1N=_1J;_1M<_1N;_1M++){$k[$j++]=_1L}});$_.linpixs=$a();if($_.x>0){$k[$j++]=Infinity;for(var _1R=0,_1S=$_.x;_1R<_1S;_1R++){$k[$j++]=0}$_.cclpad=$a();$_.linlpad=$a(0)}else{$_.cclpad=$a(0);$k[$j++]=Infinity;for(var _1X=0,_1Y=-$_.x;_1X<_1Y;_1X++){$k[$j++]=0}$_.linlpad=$a()}$_.diff=$f($_.linwidth-$f($_.ccpixx+$_.x));if($_.diff>0){$k[$j++]=Infinity;for(var _1f=0,_1g=$_.diff;_1f<_1g;_1f++){$k[$j++]=0}$_.ccrpad=$a();$_.linrpad=$a(0)}else{$_.ccrpad=$a(0);$k[$j++]=Infinity;for(var _1l=0,_1m=-$_.diff;_1l<_1m;_1l++){$k[$j++]=0}$_.linrpad=$a()}$_.linheight=~~$_.linheight;var _1q=$eq($_.linktype,"a")?2:3;$_.ccrepeat=_1q;$k[$j++]=Infinity;for(var _1u=0,_1v=$_.ccpixx,_1t=$_.ccpixs.length-1;_1v<0?_1u>=_1t:_1u<=_1t;_1u+=_1v){$_.i=_1u;for(var _1x=0,_1y=$_.ccrepeat;_1x<_1y;_1x++){$q($_.cclpad);$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}}$q($_.linlpad);$q($_.sep);$q($_.linrpad);for(var _29=0,_2A=$_.linheight;_29<_2A;_29++){$q($_.linlpad);$q($_.linpixs);$q($_.linrpad)}$_.pixs=$a();$_.pixx=$f($f($_.cclpad.length+$_.ccpixx)+$_.ccrpad.length);$_.pixy=~~($_.pixs.length/$_.pixx);var _2Q=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_2Q;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_gs1datamatrix(){$_=Object.create($_);$_.dontdraw=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.gssep=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.dmtx=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.dmtx.length+$_.ai.length+$_.val.length);$P(_K,0,$_.dmtx);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.dmtx.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.dmtx.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.dmtx=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.dmtx.length+1);$P(_j,0,$_.dmtx);$k[$j++]=_j;$k[$j++]=_j;$k[$j++]=$_.dmtx.length;if($_.gssep){$k[$j++]=29}else{$k[$j++]=$_.fnc1}var _o=$k[--$j];var _p=$k[--$j];$p($k[--$j],_p,_o);$_.dmtx=$k[--$j]}}$_.barcode=$s(($_.dmtx.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.dmtx.length){break}var _y=$g($_.dmtx,$_.i);$k[$j++]=_y;if(_y==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _1G=$k[--$j];$_[$k[--$j]]=_1G;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1datamatrixrectangular(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$_.gssep=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.dmtx=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.dmtx.length+$_.ai.length+$_.val.length);$P(_K,0,$_.dmtx);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.dmtx.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.dmtx.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.dmtx=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.dmtx.length+1);$P(_j,0,$_.dmtx);$k[$j++]=_j;$k[$j++]=_j;$k[$j++]=$_.dmtx.length;if($_.gssep){$k[$j++]=29}else{$k[$j++]=$_.fnc1}var _o=$k[--$j];var _p=$k[--$j];$p($k[--$j],_p,_o);$_.dmtx=$k[--$j]}}$_.barcode=$s(($_.dmtx.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.dmtx.length){break}var _y=$g($_.dmtx,$_.i);$k[$j++]=_y;if(_y==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$p($_.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _1H=$k[--$j];$_[$k[--$j]]=_1H;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1dldatamatrix(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$k[$j++]=$_.barcode;$k[$j++]="dl";bwipp_gs1process();$j-=3;delete $_.options["parse"];$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _D=$k[--$j];$_[$k[--$j]]=_D;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1qrcode(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.qrc=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.qrc.length+$_.ai.length+$_.val.length);$P(_K,0,$_.qrc);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.qrc.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.qrc.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.qrc=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.qrc.length+1);$P(_j,0,$_.qrc);$p(_j,$_.qrc.length,$_.fnc1);$_.qrc=_j}}$_.barcode=$s(($_.qrc.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.qrc.length){break}var _t=$g($_.qrc,$_.i);$k[$j++]=_t;if(_t==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _1B=$k[--$j];$_[$k[--$j]]=_1B;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1dlqrcode(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$k[$j++]=$_.barcode;$k[$j++]="dl";bwipp_gs1process();$j-=3;delete $_.options["parse"];$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _D=$k[--$j];$_[$k[--$j]]=_D;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1dotcode(){$_=Object.create($_);$_.dontdraw=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.dmtx=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.dmtx.length+$_.ai.length+$_.val.length);$P(_K,0,$_.dmtx);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.dmtx.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.dmtx.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.dmtx=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.dmtx.length+1);$P(_j,0,$_.dmtx);$p(_j,$_.dmtx.length,$_.fnc1);$_.dmtx=_j}}$_.barcode=$s(($_.dmtx.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.dmtx.length){break}var _t=$g($_.dmtx,$_.i);$k[$j++]=_t;if(_t==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_dotcode();var _1B=$k[--$j];$_[$k[--$j]]=_1B;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_hibccode39(){$_=Object.create($_);$_.dontdraw=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibccode39);if(!bwipp_hibccode39.__30222__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibccode39.$ctx[id]=$_[id]);bwipp_hibccode39.__30222__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibccode39badCharacter#30227";$k[$j++]="HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibccode39badCheckDigit#30241";$k[$j++]="Incorrect HIBC Code 39 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$_.text=$s($f($_.barlen+4));$p($_.text,0,42);$P($_.text,1,$_.barcode);var _u=$g($_.barcode,$f($_.barlen+1));$k[$j++]=$_.text;$k[$j++]=$f($_.barlen+2);$k[$j++]=_u;if(_u==32){$j--;$k[$j++]=95}var _v=$k[--$j];var _w=$k[--$j];$p($k[--$j],_w,_v);$p($_.text,$f($_.barlen+3),42);$p($_.options,"dontdraw",true);$p($_.options,"includecheck",false);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code39();var _15=$k[--$j];$_[$k[--$j]]=_15;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibccode128(){$_=Object.create($_);$_.dontdraw=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibccode128);if(!bwipp_hibccode128.__30322__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibccode128.$ctx[id]=$_[id]);bwipp_hibccode128.__30322__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibccode128badCharacter#30327";$k[$j++]="HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibccode128badCheckDigit#30341";$k[$j++]="Incorrect HIBC Code 128 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$_.text=$s($f($_.barlen+4));$p($_.text,0,42);$P($_.text,1,$_.barcode);var _u=$g($_.barcode,$f($_.barlen+1));$k[$j++]=$_.text;$k[$j++]=$f($_.barlen+2);$k[$j++]=_u;if(_u==32){$j--;$k[$j++]=95}var _v=$k[--$j];var _w=$k[--$j];$p($k[--$j],_w,_v);$p($_.text,$f($_.barlen+3),42);$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _14=$k[--$j];$_[$k[--$j]]=_14;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcdatamatrix(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibcdatamatrix);if(!bwipp_hibcdatamatrix.__30417__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcdatamatrix.$ctx[id]=$_[id]);bwipp_hibcdatamatrix.__30417__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibcdatamatrixBadCharacter#30422";$k[$j++]="HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcdatamatrixBadCheckDigit#30436";$k[$j++]="Incorrect HIBC Data Matrix check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _p=$k[--$j];$_[$k[--$j]]=_p;var _r=$_.args;$p(_r,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcdatamatrixrectangular(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibcdatamatrixrectangular);if(!bwipp_hibcdatamatrixrectangular.__30504__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcdatamatrixrectangular.$ctx[id]=$_[id]);bwipp_hibcdatamatrixrectangular.__30504__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCharacter#30509";$k[$j++]="HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCheckDigit#30523";$k[$j++]="Incorrect HIBC Data Matrix Rectangular check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$p($_.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcpdf417(){$_=Object.create($_);$_.dontdraw=false;$_.columns=2;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibcpdf417);if(!bwipp_hibcpdf417.__30593__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcpdf417.$ctx[id]=$_[id]);bwipp_hibcpdf417.__30593__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibcpdf417BadCharacter#30598";$k[$j++]="HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcpdf417BadCheckDigit#30612";$k[$j++]="Incorrect HIBC PDF417 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"columns",$_.columns);$p($_.options,"validatecheck",false);var _p=$_.barcode;$k[$j++]="args";$k[$j++]=_p;$k[$j++]=$_.options;bwipp_pdf417();var _r=$k[--$j];$_[$k[--$j]]=_r;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcmicropdf417(){$_=Object.create($_);$_.dontdraw=false;$_.columns=2;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibcmicropdf417);if(!bwipp_hibcmicropdf417.__30682__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcmicropdf417.$ctx[id]=$_[id]);bwipp_hibcmicropdf417.__30682__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibcmicropdf417BadCharacter#30687";$k[$j++]="HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcmicropdf417BadCheckDigit#30701";$k[$j++]="Incorrect HIBC MicroPDF417 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);var _m=$_.options;$p(_m,"columns",$_.columns);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_micropdf417();var _r=$k[--$j];$_[$k[--$j]]=_r;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcqrcode(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibcqrcode);if(!bwipp_hibcqrcode.__30770__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcqrcode.$ctx[id]=$_[id]);bwipp_hibcqrcode.__30770__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibcqrcodeBadCharacter#30775";$k[$j++]="HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcqrcodeBadCheckDigit#30789";$k[$j++]="Incorrect HIBC QR Code check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _p=$k[--$j];$_[$k[--$j]]=_p;var _r=$_.args;$p(_r,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibccodablockf(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibccodablockf);if(!bwipp_hibccodablockf.__30857__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibccodablockf.$ctx[id]=$_[id]);bwipp_hibccodablockf.__30857__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.codablockfBadCharacter#30862";$k[$j++]="HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibccodablockfBadCheckDigit#30876";$k[$j++]="Incorrect HIBC Codablock F check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _c=$_.barlen;var _d=$s($f(_c+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_codablockf();var _p=$k[--$j];$_[$k[--$j]]=_p;var _r=$_.args;$p(_r,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcazteccode(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_hibcazteccode);if(!bwipp_hibcazteccode.__30944__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _2=0;_2<=42;_2+=1){$p($_.charvals,$G($_.barchars,_2,1),_2)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcazteccode.$ctx[id]=$_[id]);bwipp_hibcazteccode.__30944__=1;$_=Object.getPrototypeOf($_)}for(var _9=0,_8=$_.barcode.length-1;_9<=_8;_9+=1){var _D=$g($_.charvals,$G($_.barcode,_9,1))!==undefined;if(!_D){$k[$j++]="bwipp.hibcazteccodeBadCharacter#30949";$k[$j++]="HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _G=$k[--$j];$k[$j++]=$f(_G-1)}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.checksum=41;for(var _L=0,_K=$f($_.barlen-1);_L<=_K;_L+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_L,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcazteccodeBadCheckDigit#30963";$k[$j++]="Incorrect HIBC Aztec Code check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$s($f($_.barlen+2));$P(_d,1,$_.barcode);$_.barcode=_d;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_azteccode();var _p=$k[--$j];$_[$k[--$j]]=_p;var _r=$_.args;$p(_r,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_channelcode(){$_=Object.create($_);$_.options=$k[--$j];$_.barcode=$k[--$j];$_.dontdraw=false;$_.shortfinder=false;$_.includetext=false;$_.includecheck=false;$_.height=1;$F($_.options,function(){var _3=$k[--$j];$_[$k[--$j]]=_3});$_.height=+$_.height;if($_.barcode.length<2||$_.barcode.length>7){$k[$j++]="bwipp.channelcodeBadLength#31038";$k[$j++]="Channel Code must be 2 to 7 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.channelcodeBadCharacter#31042";$k[$j++]="Channel Code must contain only digits";bwipp_raiseerror()}});if($i($_.barcode)>$g($a([26,292,3493,44072,576688,7742862]),$_.barcode.length-2)){$k[$j++]="bwipp.channelcodeTooBig#31046";$k[$j++]="The Channel Code value is too big for the number of channels";bwipp_raiseerror()}$_.nextb=function(){var _E=$k[--$j];var _N=$f($g($_.s,_E)+$f($g($_.b,$f(_E-1))+$f($g($_.b,$f(_E-2))+$g($_.s,$f(_E-1)))))>4?1:2;$k[$j++]=_E;$k[$j++]=_N;if(_E<$f($_.chan+2)){var _P=$k[--$j];var _Q=$k[--$j];var _R=$k[--$j];$k[$j++]=_R;$k[$j++]=_Q;$k[$j++]=_P;for(var _T=_P,_S=_R;_T<=_S;_T+=1){var _V=$k[--$j];var _W=$k[--$j];$p($_.b,_W,_T);var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_Y;$k[$j++]=_X;$k[$j++]=_W;$k[$j++]=_V;$k[$j++]=$f($f(_X-_T)+1);$k[$j++]=_Y;$k[$j++]=$f(_W+1);$_.nexts()}}else{var _Z=$k[--$j];var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=_b;$k[$j++]=_a;$k[$j++]=_Z;if($le(_Z,_b)){var _d=$k[--$j];var _e=$k[--$j];var _f=$k[--$j];$p($_.b,_e,_f);$k[$j++]=_f;$k[$j++]=_e;$k[$j++]=_d;if($_.value==$_.target){$k[$j++]=Infinity;for(var _i=3;_i<=10;_i+=1){$k[$j++]=$g($_.s,_i);$k[$j++]=$g($_.b,_i)}$_.out=$G($a(),0,$_.chan*2)}$_.value=$_.value+1}}$j-=4};$_.nexts=function(){var _r=$k[--$j];$k[$j++]=_r;if(_r<$f($_.chan+2)){$k[$j++]=1}else{var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=_u;$k[$j++]=_t;$k[$j++]=_u}var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;for(var _z=_v,_y=_x;_z<=_y;_z+=1){var _11=$k[--$j];$p($_.s,_11,_z);var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_13;$k[$j++]=_12;$k[$j++]=_11;$k[$j++]=$f($f(_12-_z)+1);$k[$j++]=_13;$k[$j++]=_11;$_.nextb()}$j-=3};$_.encode=function(){$_.chan=$k[--$j];$_.target=$k[--$j];$_.value=0;$_.out=-1;$_.b=$a([1,1,1,0,0,0,0,0,0,0,0]);$_.s=$a([0,1,1,0,0,0,0,0,0,0,0]);var _18=$_.chan;$k[$j++]=_18;$k[$j++]=_18;$k[$j++]=3;$_.nexts();$k[$j++]=$_.out};$_.barlen=$_.barcode.length;$k[$j++]="finder";if($_.shortfinder){$k[$j++]=$a([1,1,1,1,1])}else{$k[$j++]=$a([1,1,1,1,1,1,1,1,1])}var _1E=$k[--$j];$_[$k[--$j]]=_1E;$k[$j++]="data";$k[$j++]=$i($_.barcode);$k[$j++]=$_.barlen+1;$_.encode();var _1I=$k[--$j];$_[$k[--$j]]=_1I;$_.check=$a([]);if($_.includecheck){$_.mod23=$g($a([$a([]),$a([]),$a([13,12,4,9,3,1]),$a([13,2,12,3,18,16,4,1]),$a([11,16,17,8,20,4,10,2,5,1]),$a([1,4,16,18,3,12,2,8,9,13,6,1]),$a([20,16,22,13,15,12,5,4,8,9,21,3,7,1]),$a([2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1])]),$_.barlen);$k[$j++]=0;for(var _1Z=0,_1Y=$_.data.length-1;_1Z<=_1Y;_1Z+=1){var _1e=$k[--$j];$k[$j++]=$f(_1e+$f($g($_.data,_1Z)-1)*$g($_.mod23,_1Z))}var _1f=$k[--$j];$k[$j++]=_1f%23;$k[$j++]=3;$_.encode();$_.check=$k[--$j]}$k[$j++]=Infinity;$q($_.finder);$q($_.data);$q($_.check);$_.sbs=$a();$_.txt=$a($_.barlen);for(var _1p=0,_1o=$_.barlen-1;_1p<=_1o;_1p+=1){$_.i=_1p;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$k[$j++]=Infinity;var _1w=$_.sbs;$k[$j++]=Infinity;for(var _1y=0,_1z=~~(($_.sbs.length+1)/2);_1y<_1z;_1y++){$k[$j++]=$_.height}var _21=$a();$k[$j++]=Infinity;for(var _23=0,_24=~~(($_.sbs.length+1)/2);_23<_24;_23++){$k[$j++]=0}var _25=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_1w;$k[$j++]="bhs";$k[$j++]=_21;$k[$j++]="bbs";$k[$j++]=_25;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _28=$d();$k[$j++]=_28;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_renlinear(){if($_.bwipjs_dontdraw){return}$_=Object.create($_);$_.args=$k[--$j];$_.sbs=$a([]);$_.bhs=$a([]);$_.bbs=$a([]);$_.txt=$a([]);$_.barcolor="unset";$_.includetext=false;$_.textcolor="unset";$_.textxalign="unset";$_.textyalign="unset";$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=0;$_.textgaps=0;$_.alttext="";$_.bordercolor="unset";$_.backgroundcolor="unset";$_.inkspread=0;$_.width=0;$_.barratio=1;$_.spaceratio=1;$_.showborder=false;$_.borderleft=10;$_.borderright=10;$_.bordertop=1;$_.borderbottom=1;$_.borderwidth=.5;$_.guardwhitespace=false;$_.guardleftpos=0;$_.guardleftypos=0;$_.guardrightpos=0;$_.guardrightypos=0;$_.guardwidth=7;$_.guardheight=7;$F($_.args,function(){var _7=$k[--$j];$_[$k[--$j]]=_7});var _9=$_.opt;for(var _E=_9.size,_D=_9.keys(),_C=0;_C<_E;_C++){var _A=_D.next().value;$_[_A]=_9.get(_A)}$_.barcolor=""+$_.barcolor;$_.textcolor=""+$_.textcolor;$_.textxalign=""+$_.textxalign;$_.textyalign=""+$_.textyalign;$_.textfont=""+$_.textfont;$_.textsize=+$_.textsize;$_.textxoffset=+$_.textxoffset;$_.textyoffset=+$_.textyoffset;$_.textgaps=+$_.textgaps;$_.alttext=""+$_.alttext;$_.bordercolor=""+$_.bordercolor;$_.backgroundcolor=""+$_.backgroundcolor;$_.inkspread=+$_.inkspread;$_.width=+$_.width;$_.barratio=+$_.barratio;$_.spaceratio=+$_.spaceratio;$_.borderleft=+$_.borderleft;$_.borderright=+$_.borderright;$_.bordertop=+$_.bordertop;$_.borderbottom=+$_.borderbottom;$_.borderwidth=+$_.borderwidth;$_.guardleftpos=+$_.guardleftpos;$_.guardleftypos=+$_.guardleftypos;$_.guardrightpos=+$_.guardrightpos;$_.guardrightypos=+$_.guardrightypos;$_.guardwidth=+$_.guardwidth;$_.guardheight=+$_.guardheight;$_.bars=$a(~~(($_.sbs.length+1)/2));$_.x=0;$_.maxh=0;for(var _k=0,_j=~~(($_.sbs.length+1)/2)*2-2;_k<=_j;_k+=1){$_.i=_k;if($_.i%2==0){$_.d=$f($f($g($_.sbs,$_.i)*$_.barratio-$_.barratio)+1);if($g($_.sbs,$_.i)!=0){$_.h=$g($_.bhs,~~($_.i/2))*72;$_.c=$f($_.d/2+$_.x);$_.y=$g($_.bbs,~~($_.i/2))*72;$_.w=$f($_.d-$_.inkspread);$p($_.bars,~~($_.i/2),$a([$_.h,$_.c,$_.y,$_.w]));if($f($_.h+$_.y)>$_.maxh){$_.maxh=$f($_.h+$_.y)}}else{$p($_.bars,~~($_.i/2),-1)}}else{$_.d=$f($f($g($_.sbs,$_.i)*$_.spaceratio-$_.spaceratio)+1)}$_.x=$f($_.x+$_.d)}$$.save();var _1P=$$.currpos();$$.translate(_1P.x,_1P.y);if($_.width!=0){$$.scale($_.width*72/$_.x,1)}$$.newpath();$$.moveto(-$_.borderleft,-$_.borderbottom);$$.rlineto($f($f($_.x+$_.borderleft)+$_.borderright),0);$$.rlineto(0,$f($f($_.maxh+$_.borderbottom)+$_.bordertop));$$.rlineto(-$f($f($_.x+$_.borderleft)+$_.borderright),0);$$.rlineto(0,-$f($f($_.maxh+$_.borderbottom)+$_.bordertop));$$.closepath();if($_.showborder){$$.save();if($ne($_.bordercolor,"unset")){$$.setcolor($_.bordercolor)}$$.setlinewidth($_.borderwidth);$$.stroke();$$.restore()}$$.save();if($ne($_.barcolor,"unset")){$$.setcolor($_.barcolor)}var _1n=$_.bars;for(var _1o=0,_1p=_1n.length;_1o<_1p;_1o++){var _1q=$g(_1n,_1o);$k[$j++]=_1q;if(_1q!=-1){$q($k[--$j]);$$.newpath();$$.setlinewidth($k[--$j]);var _1t=$k[--$j];$$.moveto($k[--$j],_1t);$$.rlineto(0,$k[--$j]);$$.stroke()}else{$j--}}$$.restore();if($ne($_.textcolor,"unset")){$$.setcolor($_.textcolor)}if($_.includetext){if($eq($_.textxalign,"unset")&&$eq($_.textyalign,"unset")&&$eq($_.alttext,"")){$_.s=0;$_.fn="";var _22=$_.txt;for(var _23=0,_24=_22.length;_23<_24;_23++){$F($g(_22,_23));var _26=$k[--$j];var _27=$k[--$j];$k[$j++]=_27;$k[$j++]=_26;if(_26!=$_.s||$ne(_27,$_.fn)){var _2A=$k[--$j];var _2B=$k[--$j];$_.s=_2A;$_.fn=_2B;$$.selectfont(_2B,_2A)}else{$j-=2}var _2C=$k[--$j];$$.moveto($k[--$j],_2C);$$.show($k[--$j],0,0)}}else{$$.selectfont($_.textfont,$_.textsize);if($eq($_.alttext,"")){$k[$j++]=Infinity;var _2I=$_.txt;for(var _2J=0,_2K=_2I.length;_2J<_2K;_2J++){$F($g($g(_2I,_2J),0))}$_.txt=$a();$_.tstr=$s($_.txt.length);for(var _2S=0,_2R=$_.txt.length-1;_2S<=_2R;_2S+=1){$p($_.tstr,_2S,$g($_.txt,_2S))}}else{$_.tstr=$_.alttext}if($_.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _2Y=$$.pathbbox();$$.restore();$k[$j++]=_2Y.ury}$_.textascent=$k[--$j];var _2b=$$.stringwidth($_.tstr);$_.textwidth=$f(_2b.w+($_.tstr.length-1)*$_.textgaps);$_.textxpos=$f($_.textxoffset+$f($_.x-$_.textwidth)/2);if($eq($_.textxalign,"left")){$_.textxpos=$_.textxoffset}if($eq($_.textxalign,"right")){$_.textxpos=$f($f($_.x-$_.textxoffset)-$_.textwidth)}if($eq($_.textxalign,"offleft")){$_.textxpos=-$f($_.textwidth+$_.textxoffset)}if($eq($_.textxalign,"offright")){$_.textxpos=$f($_.x+$_.textxoffset)}if($eq($_.textxalign,"justify")&&$_.textwidth<$_.x){$_.textxpos=0;$_.textgaps=$f($_.x-$_.textwidth)/($_.tstr.length-1)}$_.textypos=-$f($f($_.textyoffset+$_.textascent)+1);if($eq($_.textyalign,"above")){$_.textypos=$f($f($_.textyoffset+$_.maxh)+1)}if($eq($_.textyalign,"center")){$_.textypos=$f($_.textyoffset+$f($_.maxh-$_.textascent)/2)}$$.moveto($_.textxpos,$_.textypos);$$.show($_.tstr,$_.textgaps,0)}}if($_.guardwhitespace){$$.selectfont("OCR-B",$_.guardheight*2);if($_.guardleftpos!=0){$$.moveto($f(-$_.guardleftpos-1),$f($f($_.guardleftypos-$_.guardheight/2)-1.5));$$.show("<",0,0)}if($_.guardrightpos!=0){$$.moveto($f($f($f($_.guardrightpos+$_.x)-$_.guardwidth)+1),$f($f($_.guardrightypos-$_.guardheight/2)-1.5));$$.show(">",0,0)}}$$.restore();$_=Object.getPrototypeOf($_)}function bwipp_renmaximatrix(){if($_.bwipjs_dontdraw){return}$_=Object.create($_);$_.args=$k[--$j];$_.barcolor="unset";$_.backgroundcolor="unset";$F($_.args,function(){var _3=$k[--$j];$_[$k[--$j]]=_3});var _5=$_.opt;for(var _A=_5.size,_9=_5.keys(),_8=0;_8<_A;_8++){var _6=_9.next().value;$_[_6]=_5.get(_6)}$_.barcolor=""+$_.barcolor;$_.backgroundcolor=""+$_.backgroundcolor;$$.save();if($ne($_.barcolor,"unset")){$$.setcolor($_.barcolor)}$$.maxicode($_.pixs);$$.restore();$_=Object.getPrototypeOf($_)}function bwipp_encode(bwipjs,encoder,text,opts,dontdraw){if(typeof text!=="string"){throw new Error("bwipp.typeError: barcode text not a string ("+text+")")}opts=opts||{};if(typeof opts==="string"){var tmp=opts.split(" ");opts={};for(var i=0;i=0&&r[e].op=="l";e--);e++;if(ev.x0)n=v.x0;if(sv.y0)a=v.y0;if(fv.x1)n=v.x1;if(sv.y1)a=v.y1;if(fs.x0)t=s.x0;if(is.x1)t=s.x1;if(is.y0)e=s.y0;if(ns.y1)e=s.y1;if(no){var y=s;s=o;o=y}if(f>v){var y=f;f=v;v=y}if(s==o){this.bbox(s-u,f,s+c-u-1,v)}else{this.bbox(s,f-p+g+1,o,v+g)}e++}else if(a.op=="p"){var d=Infinity;var x=Infinity;var b=-Infinity;var w=-Infinity;var _=a.poly;if(_.length!=4){throw new Error("stroke: --not-a-rect--")}for(var n=0,m=_.length-1;n<_.length;m=n++){var k=_[m][0];var I=_[m][1];var F=_[n][0];var C=_[n][1];if(F!=k&&C!=I){throw new Error("stroke: --not-orthogonal--")}if(Fb)b=F;if(Cw)w=C}var u=T(c/2);var g=T(p/2);this.bbox(d-u,x-g,b+u,w+g);i++}else{throw new Error("stroke: --not-a-line--")}}var S=this;this.cmds.push(function(){var r=T(c/2);var t=T(p/2);var e=c-r;var i=p-t;for(var n=0;ns)s=u;if(hf)f=h}this.bbox(e,a+1,s-1,f)}else if(t.op=="e"){this.bbox(t.x-t.rx,t.y-t.ry,t.x+t.rx,t.y+t.ry)}else{throw new Error("fill: --not-a-polygon--")}}var l=this;this.cmds.push(function(){for(var r=0;r9){v++}var t,u,e,i;e=s/2|0;i=f/2|0;t=v-e;if(t&1){t--}u=(4*f|0)-i;var h=t/2-1;var l=(h+1)/2|0;var c=u-2-2*l;this.bbox(0,0,v*30-e,f*3*32+f*4-i);var p=this;this.cmds.push(function(){for(var r=0;re){var n=r;r=e;e=n}if(t>i){var n=t;t=i;i=n}r=M(r);t=M(t);e=T(e);i=T(i);if(this.minx>r)this.minx=r;if(this.maxxt)this.miny=t;if(this.maxys){for(var f=s+1;fa){L(n,a)}if(u>a){L(o,a)}}else{var v=r[i==t-1?0:i+1][1];var u=r[e==0?t-1:e-1][1];if(v>a){L(o,a)}if(u>a){L(n,a)}}}}},hexagon:function(r,t){var e=r[0][0]|0;var i=r[0][1]|0;var n=r[1][1]-r[0][1]|0;var a=r[2][1]-r[1][1]-1|0;var s=r[2][0]|0;var f=r[4][0]|0;I=parseInt(t.substr(0,2),16);F=parseInt(t.substr(2,2),16);C=parseInt(t.substr(4,2),16);E(e,e+1,i++);for(var o=1;o=1;o--){E(e-2*o,e+1+2*o,i++)}E(e,e+1,i)},ellipse:function(r,t,e,i,n){a(r-e|0,t-i|0,r+e|0,t+i|0,n)},fill:function(r){I=parseInt(r.substr(0,2),16);F=parseInt(r.substr(2,2),16);C=parseInt(r.substr(4,2),16);t();S=[];S.min=Infinity},clip:function(r){if(!M){M=[];M.min=Infinity}var t=S;S=M;for(var e=0,i=r.length;et)S.min=t;if(!S[t]){S[t]=[r]}else{S[t].push(r)}}function E(r,t,e){while(r<=t){T(r++,e,255)}}function t(){var r=S.min;var t=S.length-1;for(var e=r;e<=t;e++){var i=S[e];if(!i){continue}i.sort(function(r,t){return r-t});var n=false;var a=0;for(var s=0,f=i.length;se){r=e;e+=a}if(t>i)t=i;t+=(s+1)/2|0;i=t-f;a*=8*a;f=8*s*s;do{d(c,e,t);y(l,r,t);y(l,r,i);d(c,e,i);h=2*u;if(h>=o){r++;e--;o+=f;u+=o}if(h<=v){t++;i--;v+=a;u+=v}}while(r<=e);while(t-ie)r.min=e;var i=r[e];if(i==null||i>t){r[e]=t}}function d(r,t,e){if(r.min>e)r.min=e;var i=r[e];if(i==null||ir){return!i}else if(s==r){return i}i=!i}return true}function e(r){var t=0;for(var e=0,i=r.length,n=i-1;e0?1:-1}}function DrawingCanvas(e,r){if(r&&r instanceof HTMLCanvasElement){e=r}var i;var n=e.getContext("2d",{willReadFrequently:true});var t=DrawingBuiltin();t.image=f;t.end=o;var a;var s=t.setopts;t.setopts=function(r){a=r;s&&s.call(t,r)};return t;function f(r,t){e.width=r;e.height=t;n.setTransform(1,0,0,1,0,0);if(/^[0-9a-fA-F]{6}$/.test(""+a.backgroundcolor)){n.fillStyle="#"+a.backgroundcolor;n.fillRect(0,0,r,t)}else{n.clearRect(0,0,r,t)}i=n.getImageData(0,0,r,t);return{buffer:i.data,ispng:false}}function o(){n.putImageData(i,0,0);return e}}function DrawingSVG(){var o=0,v=0,u=0,n=0;var h=0,l=0,a=0,c=0;var p;var g="";var f;var t="";var y=[];var d={};var x=.55228475-45e-5;var b,w;var _,m;return{setopts(r){p=r},scale(r,t){},measure(r,t,e,i){e=e|0;i=i|0;var n=FontLib.lookup(t);var a=0;var s=0;var f=0;for(var o=0;o\n";f=null}},clip:function(e){var i='';t="clip"+y.length;y.push(i)},unclip:function(){t=""},text(t,e,r,i,n){var a=FontLib.lookup(n.name);var s=n.width|0;var f=n.height|0;var o=n.dx|0;var v="";for(var u=0;u\n'}},end(){var r="";for(var t in d){r+=d[t]+'" />\n'}var e=p.backgroundcolor;return'\n'+(y.length?""+y.join("")+"":"")+(/^[0-9A-Fa-f]{6}$/.test(""+e)?'\n':"")+r+g+"\n"}};function k(r,t){r+=_;t+=m;var e=o*r+v*t+u*(b-1)+n*(w-1);var i=h*r+l*t+a*(b-1)+c*(w-1);return""+((e|0)==e?e:e.toFixed(2))+" "+((i|0)==i?i:i.toFixed(2))}}var FontLib=function(){var v=[];var s={};var u={};var h={};var l=0;h.next=h;h.prev=h;return{lookup:t,monochrome:e,getglyph:i,getpaths:n,loadFont:r};function r(r){var t=100;var e=100;var i=null;if(arguments.length==2){i=arguments[1]}else if(arguments.length==3){t=e=+arguments[1]||100;i=arguments[2]}else if(arguments.length==4){e=+arguments[1]||100;t=+arguments[2]||100;i=arguments[3]}else{throw new Error("bwipjs: loadFont: invalid number of arguments")}var n=STBTT.InitFont(toUint8Array(i));n.bwipjs_name=r;n.bwipjs_multx=t;n.bwipjs_multy=e;var a=v.push(n)-1;s[r.toUpperCase()]=a;return a}function t(r){var t=s[r.toUpperCase()];return t===undefined?1:t}function e(r){if(r){throw new Error("bwipjs: monochrome fonts not implemented")}}function i(r,t,e,i){r=r|0;t=t|0;e=+e;i=+i;if(!e||e<8){e=8}if(!i||i<8){i=e}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=""+r+"c"+t+"w"+e+"h"+i;var a=u[n];if(a){a.prev.next=a.next;a.next.prev=a.prev;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}var f=v[r];var a=STBTT.GetGlyph(f,t,e*f.bwipjs_multx/100,i*f.bwipjs_multy/100)||STBTT.GetGlyph(f,0,e*f.bwipjs_multx/100,i*f.bwipjs_multy/100);a.bytes=a.pixels;a.cachekey=n;a.offset=0;if(l>250){var s=h;var o=s.prev;o.prev.next=s;s.prev=o.prev;o.next=o.prev=null;delete u[o.cachekey]}else{l++}u[n]=a;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}function n(r,t,e,i){r=r|0;t=t|0;e=+e;i=+i;if(!e||e<8){e=8}if(!i||i<8){i=e}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=v[r];return STBTT.GetPaths(n,t,e*n.bwipjs_multx/100,i*n.bwipjs_multy/100)}}();function LoadFont(){return FontLib.loadFont.apply(FontLib,Array.prototype.slice.call(arguments))}var STBTT=function(){var D=1,W=2,N=3,y=4,C=0,r=1,t=2,S=3,e=0,i=1,n=2,a=3,s=4,o=0,T=1,u=2,L=10;var O=Math.floor;var f=Math.ceil;var U=Math.sqrt;var A=Math.abs;function Y(r){var t=[];for(var e=0;er.length||t<0?r.length:t}function j(r,t){d(r,r.cursor+t)}function B(r,t){var e=0;for(var i=0;ir.length||e>r.length-t){return x()}var i=r.subarray(t,t+e);i.cursor=0;return i}function w(r){var t=r.cursor;var e=B(r,2);if(e){var i=z(r);j(r,i*e);j(r,B(r,i)-1)}return b(r,t,r.cursor-t)}function R(r){var t=z(r);if(t>=32&&t<=246){return t-139}else if(t>=247&&t<=250){return(t-247)*256+z(r)+108}else if(t>=251&&t<=254){return-(t-251)*256-z(r)-108}else if(t==28){return B(r,2)}else if(t==29){return B(r,4)}return 0}function E(r){var t=g(r);if(t==30){j(r,1);while(r.cursor>4==15){break}}}else{R(r)}}function Q(r,t){d(r,0);while(r.cursor=28){E(r)}i=r.cursor;n=z(r);if(n==12){n=z(r)|256}if(n==t){return b(r,e,i-e)}}return b(r,0,0)}function K(r,t,e,i){var n=Q(r,t);for(var a=0;a>0:r}function J(r,t){return r[t]*256+r[t+1]}function H(r,t){var e=r[t]*256+r[t+1];return e&32768?(4294901760|e)>>0:e}function F(r,t){return(r[t]<<24)+(r[t+1]<<16)+(r[t+2]<<8)+r[t+3]}function m(r,t,e){var i=J(r,t+4);var n=t+12;for(var a=0;a=s&&t>1,v=J(e,i+8)>>1,u=J(e,i+10),h=J(e,i+12)>>1,l=i+14,c=l;if(t>65535){return 0}if(t>=J(e,c+h*2)){c+=h*2}c-=2;while(u){v>>=1;var p=J(e,c+v*2);if(t>p){c+=v*2}--u}c+=2;var g,y,d=c-l>>>1;y=J(e,i+14+o*2+2+2*d);if(t>1);var m=F(e,i+16+_*12);var k=F(e,i+16+_*12+4);if(tk){b=_+1}else{var I=F(e,i+16+_*12+8);if(n==12){return I+t-m}else{return I}}}return 0}return 0}function $(r,t,e,i,n,a){r.type=t;r.x=e;r.y=i;r.cx=n;r.cy=a}function nr(r,t){var e,i;if(t>=r.numGlyphs){return-1}if(r.indexToLocFormat>=2){return-1}if(r.indexToLocFormat==0){e=r.glyf+J(r.data,r.loca+t*2)*2;i=r.glyf+J(r.data,r.loca+t*2+2)*2}else{e=r.glyf+F(r.data,r.loca+t*4);i=r.glyf+F(r.data,r.loca+t*4+4)}return e==i?-1:e}function ar(r,t,e){if(r.cff.length){pr(r,t,e)}else{var i=nr(r,t);if(i<0){return 0}e.x0=H(r.data,i+2);e.y0=H(r.data,i+4);e.x1=H(r.data,i+6);e.y1=H(r.data,i+8)}return 1}function sr(r,t,e,i,n,a,s,f,o,v){if(i){if(e){$(r[t++],N,o+s>>1,v+f>>1,o,v)}$(r[t++],N,n,a,s,f)}else{if(e){$(r[t++],N,n,a,o,v)}else{$(r[t++],W,n,a,0,0)}}return t}function fr(r,t){var e=r.data,i=nr(r,t);if(i<0){return null}var n=[];var a=H(e,i);if(a>0){var s=0,f,o,v=0,u,h,l,c=0,p,g=0,y,d,x,b,w,_,m,k;var I=i+10;var G=J(e,i+10+a*2);var F=e.subarray(i+10+a*2+2+G);var C=0;h=1+J(e,I+a*2-2);u=h+2*a;n=Y(u);l=0;f=0;p=u-h;for(o=0;o>1;_=d+n[p+o+1].y>>1}else{w=n[p+o+1].x;_=n[p+o+1].y;++o}}else{w=y;_=d}$(n[T++],D,w,_,0,0);c=0;l=1+J(e,I+v*2);++v}else{if(!(s&1)){if(c){$(n[T++],N,x+y>>1,b+d>>1,x,b)}x=y;b=d;c=1}else{if(c){$(n[T++],N,y,d,x,b)}else{$(n[T++],W,y,d,0,0)}c=0}}}n.length=sr(n,T,c,g,w,_,m,k,x,b)}else if(a==-1){var L=1;var E=i+10;while(L){var s,A,j=[1,0,0,1,0,0];s=H(e,E);E+=2;A=H(e,E);E+=2;if(s&2){if(s&1){j[4]=H(e,E);E+=2;j[5]=H(e,E);E+=2}else{j[4]=z(e,E);E+=1;j[5]=z(e,E);E+=1}}if(s&1<<3){j[0]=j[3]=H(e,E)/16384;E+=2;j[1]=j[2]=0}else if(s&1<<6){j[0]=H(e,E)/16384;E+=2;j[1]=j[2]=0;j[3]=H(e,E)/16384;E+=2}else if(s&1<<7){j[0]=H(e,E)/16384;E+=2;j[1]=H(e,E)/16384;E+=2;j[2]=H(e,E)/16384;E+=2;j[3]=H(e,E)/16384;E+=2}var u=U(j[0]*j[0]+j[1]*j[1]);var h=U(j[2]*j[2]+j[3]*j[3]);var B=Z(r,A);if(B.length>0){for(var o=0,P=B.length;or.max_x||!r.started){r.max_x=t}if(e>r.max_y||!r.started){r.max_y=e}if(t=33900){i=32768}else if(e>=1240){i=1131}t+=i;if(t<0||t>=e){return x()}return G(r,t)}function ur(r,t){var e=r.fdselect;var i,n,a,s,f,o=-1,v;d(e,0);f=z(e);if(f==0){j(e,t);o=z(e)}else if(f==3){i=B(e,2);n=B(e,2);for(v=0;v=n&&t=s){break}q(e,0,l[o]);o++;if(o>=s){break}q(e,l[o],0);o++}break;case 6:if(s<1){return 0}for(;;){if(o>=s){break}q(e,l[o],0);o++;if(o>=s){break}q(e,0,l[o]);o++}break;case 31:if(s<4){return 0}for(;;){if(o+3>=s){break}V(e,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4;if(o+3>=s){break}V(e,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4}break;case 30:if(s<4){return 0}for(;;){if(o+3>=s){break}V(e,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4;if(o+3>=s){break}V(e,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4}break;case 8:if(s<6){return 0}for(;o+5=s){return 0}q(e,l[o],l[o+1]);break;case 25:if(s<8){return 0}for(;o+1=s){return 0}V(e,l[o],l[o+1],l[o+2],l[o+3],l[o+4],l[o+5]);break;case 26:case 27:if(s<4){return 0}y=0;if(s&1){y=l[o];o++}for(;o+3=10){return 0}c[a++]=g;g=vr(v==10?p:r.gsubrs,f);if(g.length==0){return 0}g.cursor=0;h=0;break;case 11:if(a<=0){return 0}g=c[--a];h=0;break;case 14:or(e);return 1;case 12:var d,x,b,w,_,m,k,I,F,C,S,M,T,L,E=z(g);switch(E){case 34:if(s<7){return 0}d=l[0];x=l[1];I=l[2];b=l[3];w=l[4];_=l[5];m=l[6];V(e,d,0,x,I,b,0);V(e,w,0,_,-I,m,0);break;case 35:if(s<13){return 0}d=l[0];k=l[1];x=l[2];I=l[3];b=l[4];F=l[5];w=l[6];C=l[7];_=l[8];S=l[9];m=l[10];M=l[11];V(e,d,k,x,I,b,F);V(e,w,C,_,S,m,M);break;case 36:if(s<9){return 0}d=l[0];k=l[1];x=l[2];I=l[3];b=l[4];w=l[5];_=l[6];S=l[7];m=l[8];V(e,d,k,x,I,b,0);V(e,w,0,_,S,m,-(k+I+S));break;case 37:if(s<11){return 0}d=l[0];k=l[1];x=l[2];I=l[3];b=l[4];F=l[5];w=l[6];C=l[7];_=l[8];S=l[9];m=M=l[10];T=d+x+b+w+_;L=k+I+F+C+S;if(A(T)>A(L)){M=-L}else{m=-T}V(e,d,k,x,I,b,F);V(e,w,C,_,S,m,M);break;default:return 0}break;default:if(v!=255&&v!=28&&(v<32||v>254)){return 0}if(v==255){y=(B(g,4)|0)/65536}else{j(g,-1);y=(R(g)<<16|0)>>16}if(s>=48){return 0}l[s++]=y;h=0;break}if(h){s=0}}return 0}function lr(){return{started:0,first_x:0,first_y:0,x:0,y:0,min_x:0,max_x:0,min_y:0,max_y:0,vertices:[]}}function cr(r,t){var e=lr();if(hr(r,t,e)){return e.vertices}return null}function pr(r,t,e){var i=lr();var n=hr(r,t,i);e.x0=n?i.min_x:0;e.y0=n?i.min_y:0;e.x1=n?i.max_x:0;e.y1=n?i.max_y:0;return n&&i.vertices?i.vertices.length:0}function Z(r,t){if(!r.cff.length){return fr(r,t)}else{return cr(r,t)}}function I(r,t){var e=J(r.data,r.hhea+34);if(te.ey){return}if(se.ey){a+=(a-i)*(e.ey-s)/(s-n);s=e.ey}if(i<=t&&a<=t){r[t]+=e.direction*(s-n)}else if(i>=t+1&&a>=t+1){}else{r[t]+=e.direction*(s-n)*(1-(i-t+(a-t))/2)}}function wr(r,t,e,i,n){var a=n+1;while(i){if(i.fdx==0){var s=i.fx;if(s=0){M(r,s,i,s,n,s,a);M(t,s+1,i,s,n,s,a)}else{M(t,0,i,s,n,s,a)}}}else{var s=i.fx,f=i.fdx,o=s+f,v,u,h,l,c=i.fdy;if(i.sy>n){v=s+f*(i.sy-n);h=i.sy}else{v=s;h=n}if(i.ey=0&&u>=0&&vu){h=a-(h-n);l=a-(l-n);y=h,h=l,l=y;y=u,u=v,v=y;f=-f;c=-c;y=s,s=o,o=y}d=v|0;x=u|0;b=(d+1-s)*c+n;_=i.direction;m=_*(b-h);r[d]+=m*(1-(v-d+(d+1-d))/2);w=_*c;for(g=d+1;gx){M(r,g,i,s,k,d,C);M(r,g,i,d,C,x,S);M(r,g,i,x,S,I,F)}else if(Ix){M(r,g,i,s,k,x,S);M(r,g,i,x,S,d,C);M(r,g,i,d,C,I,F)}else if(sd){M(r,g,i,s,k,d,C);M(r,g,i,d,C,I,F)}else if(Id){M(r,g,i,s,k,d,C);M(r,g,i,d,C,I,F)}else if(sx){M(r,g,i,s,k,x,S);M(r,g,i,x,S,I,F)}else if(Ix){M(r,g,i,s,k,x,S);M(r,g,i,x,S,I,F)}else{M(r,g,i,s,k,I,F)}}}}i=i.next}}function _r(r,t,e,i,n,a){i|=0,n|=0,a|=0;var s=null,f;var o=a,v=0,u;var h=new Float32Array(r.w*2+1);var l=h.subarray(r.w);var c=0;t[e].y0=a+r.h+1;while(v>>0;if(_>255){_=255}r.pixels[v*r.stride+u]=_}y=s;while(y){f=y;f.fx+=f.fdx;y=f.next}++o;++v}}function mr(r,t){for(var e=1;e0&&i.y012){var i,n,a,s,f,o=e>>1,v=r[t].y0=s){break}i=r[t+a];r[t+a]=r[t+s];r[t+s]=i;++a;--s}if(st[x+g].y:t[x+p].y16){return 1}if(h*h+l*l>f){c(r,t,e,(t+i)/2,(e+n)/2,v,u,f,o+1);c(r,v,u,(i+a)/2,(n+s)/2,a,s,f,o+1)}else{r.push({x:a,y:s})}return 1}function X(r,t,e,i,n,a,s,f,o,v,u){var h=i-t,l=n-e,c=a-i,p=s-n,g=f-a,y=o-s,d=f-t,x=o-e,b=U(h*h+l*l)+U(c*c+p*p)+U(g*g+y*y),w=U(d*d+x*x),_=b*b-w*w;if(u>16){return}if(_>v){var m=(t+i)/2,k=(e+n)/2,I=(i+a)/2,F=(n+s)/2,C=(a+f)/2,S=(s+o)/2,M=(m+I)/2,T=(k+F)/2,L=(I+C)/2,E=(F+S)/2,A=(M+L)/2,j=(T+E)/2;X(r,t,e,m,k,M,T,A,j,v,u+1);X(r,A,j,L,E,C,S,f,o,v,u+1)}else{r.push({x:f,y:o})}}function Fr(r,t,e){var i=[],n=t*t,a=-1,s=0,f=0,o=0;for(var v=0,u=r.length;v=0){e[a]=i.length-s}++a;s=i.length;f=r[v].x,o=r[v].y;i.push({x:f,y:o});break;case W:f=r[v].x,o=r[v].y;i.push({x:f,y:o});break;case N:c(i,f,o,r[v].cx,r[v].cy,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break;case y:X(i,f,o,r[v].cx,r[v].cy,r[v].cx1,r[v].cy1,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break}}e[a]=i.length-s;return i}function Cr(r,t,e,i,n,a,s,f,o,v){f|=0,o|=0;var u=i>n?n:i,h=[],l=Fr(e,t/u,h);if(l){Ir(r,l,h,i,n,a,s,f,o,v)}}function Sr(r,t,e,i,n,a,s,f,o,v){var u=Z(r,v);var h={};var l=p(r,v,a,s,f,o);h.pixels=t;h.w=e|0;h.h=i|0;h.stride=n|0;if(h.w&&h.h){Cr(h,.35,u,a,s,f,o,l.x0,l.y0,1)}}function Mr(r,t,e,i,n,a,s,f,o,v){Sr(r,t,e,i,n,a,s,f,o,k(r,v))}function Tr(r,t,e){return ir(r,t,e)}function Lr(r){var t={};if(!ir(t,r,0)){return null}var e=yr(t);t.ascent=e.ascent;t.descent=e.descent;t.linegap=e.linegap;return t}function Er(r,t,e,i){i=i||e;var n=e/r.ascent;var a=i/r.ascent;var s=k(r,t);if(!s&&t){return null}var f=Z(r,s);var o=p(r,s,n,a,0,0);var v=o.x1-o.x0;var u=o.y1-o.y0;var h=null;if(v&&u){var l={pixels:h=new Uint8Array(v*u),w:v,h:u,stride:v};Cr(l,.35,f,n,a,0,0,o.x0,o.y0,1)}var c=I(r,s);return{glyph:s,pixels:h,width:v,height:u,top:-o.y0,left:o.x0,advance:O(c.advanceWidth*n)}}function Ar(r,t,e,i){i=i||e;var n=e/r.ascent;var a=i/r.ascent;var s=k(r,t);if(!s&&t){return null}var f=Z(r,s);var o=I(r,s);var v=0;var u=0;var h=[];if(f){for(var l=0,c=f.length;lv)v=g.y;if(g.y=0&&$k[i]!==Infinity;i--);if(i<0){throw new Error("array-marker-not-found")}a=$k.splice(i+1,$j-1-i);$j=i}else if(!(a instanceof Array)){a=new Array(+arguments[0]);for(var i=0,l=a.length;i=0&&$k[mark]!==Infinity;mark-=2){if($k[mark-1]===Infinity){throw new Error("dict-malformed-stack")}}if(mark<0){throw new Error("dict-marker-not-found")}var d=new Map;for(var i=mark+1;i<$j;i+=2){var k=$k[i];var t=typeof k;if(t=="number"||t=="string"){d.set(k,$k[i+1])}else if(k instanceof Uint8Array){d.set($z(k),$k[i+1])}else{throw new Error("dict-not-a-valid-key("+k+")")}}$j=mark;return d}function $s(v){var t=typeof v;if(t==="number"){return new Uint8Array(v)}if(t!=="string"){v=""+v}var s=new Uint8Array(v.length);for(var i=0;i\s*$/.exec(s);if(!m){throw new Error("cvx: not a hex string literal")}var h=m[1];var l=h.length>>1;var u=new Uint8Array(l);for(var i=0,j=0;i=0;i--){d[o+i]=s[i]}}}else if(d instanceof Array){var darr=d.b;var doff=o+d.o;var sarr=s.b;var soff=s.o;for(var i=0,l=s.length;i0&&$k[--$j]!==Infinity);}function $m(){for(var i=$j-1;i>=0&&$k[i]!==Infinity;i--);return $j-i-1}function $q(a){for(var i=0,l=a.length,b=a.b,o=a.o;ib}function $ge(a,b){if(a instanceof Uint8Array){a=$z(a)}if(b instanceof Uint8Array){b=$z(b)}return a>=b}function $an(a,b){return typeof a==="boolean"?a&&b:a&b}function $or(a,b){return typeof a==="boolean"?a||b:a|b}function $xo(a,b){return typeof a==="boolean"?!a&&b||a&&!b:a^b}function $nt(a){return typeof a=="boolean"?!a:~a}var $f=function(fa){return function(v){return Number.isInteger(v)?v:(fa[0]=v,fa[0])}}(new Float32Array(1));function bwipp_raiseerror(){var info=$k[--$j];var name=$k[--$j];throw new Error($z(name)+": "+$z(info))}function bwipp_processoptions(){var dict=$k[--$j];var opts=$k[$j-1];var map=opts instanceof Map;for(var id in dict){var val;if(map){if(!opts.has(id)){continue}val=opts.get(id)}else{if(!opts.hasOwnProperty(id)){continue}val=opts[id]}var def=dict[id];var typ=typeof def;if(def==null||typ=="number"){if(!isFinite(+val)){throw new Error("bwipp.invalidOptionType: "+id+": not a realtype: "+val)}if(typeof val=="string"){val=+val;map?opts.set(id,val):opts[id]=val}}else if(typ=="boolean"){if(val!==true&&val!==false){if(val==null||(val|0)===val){val=!!val}else if(val=="true"){val=true}else if(val=="false"){val=false}else{throw new Error("bwipp.invalidOptionType: "+id+": not a booleantype: "+val)}map?opts.set(id,val):opts[id]=val}}else if(typ=="string"||def instanceof Uint8Array){if(typeof val=="number"){val=""+val;map?opts.set(id,val):opts[id]=val}else if(typeof val!="string"&&!(val instanceof Uint8Array)){throw new Error("bwipp.invalidOptionType: "+id+": not a stringtype: "+val)}}dict[id]=val}}function bwipp_loadctx(f){if(!f.$ctx){f.$ctx={}}var next=Object.getPrototypeOf($_);Object.setPrototypeOf(f.$ctx,next);Object.setPrototypeOf($_,f.$ctx)}function bwipp_parseinput(){$_=Object.create($_);bwipp_loadctx(bwipp_parseinput);$_.fncvals=$k[--$j];$_.barcode=$k[--$j];var _2="parse";$_[_2]=$g($_.fncvals,_2);delete $_.fncvals[_2];var _6="parsefnc";$_[_6]=$g($_.fncvals,_6);delete $_.fncvals[_6];var _A="parseonly";var _C=$g($_.fncvals,_A)!==undefined;$_[_A]=_C;delete $_.fncvals[_A];var _E="eci";var _G=$g($_.fncvals,_E)!==undefined;$_[_E]=_G;delete $_.fncvals[_E];if(!bwipp_parseinput.__225__){$_=Object.create($_);$k[$j++]=Infinity;var _I=$a(["NUL","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","TAB","LF","VT","FF","CR","","","DLE","DC1","DC2","DC3","DC4","NAK","SYN","ETB","CAN","EM","SUB","ESC","FS","GS","RS","US"]);$k[$j++]=0;for(var _J=0,_K=_I.length;_J<_K;_J++){var _M=$k[--$j];$k[$j++]=$g(_I,_J);$k[$j++]=_M;$k[$j++]=$f(_M+1)}$j--;$_.ctrl=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_parseinput.$ctx[id]=$_[id]);bwipp_parseinput.__225__=1;$_=Object.getPrototypeOf($_)}$_.msg=$a($_.barcode.length);$_.j=0;$k[$j++]=$_.barcode;for(;;){$X($k[--$j],"^");var _T=$k[--$j];var _U=$k[--$j];$k[$j++]=_T;$k[$j++]=_U.length;$k[$j++]=$_.msg;$k[$j++]=$_.j;$k[$j++]=_U;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.j=$f($k[--$j]+$_.j);if($k[--$j]){$j--;for(var _f=0,_g=1;_f<_g;_f++){if($an($nt($_.parse),$nt($_.parsefnc))){$p($_.msg,$_.j,94);$_.j=$f($_.j+1);break}$p($_.msg,$_.j,94);$_.j=$f($_.j+1);if($_.parse){var _q=$k[--$j];$k[$j++]=_q;if(_q.length>=3){var _r=$k[--$j];var _s=$G(_r,0,3);var _t=$_.ctrl;var _u=$g(_t,_s)!==undefined;$k[$j++]=_r;$k[$j++]=_t;$k[$j++]=_s;if(_u){$_.j=$f($_.j-1);var _w=$k[--$j];$p($_.msg,$_.j,$g($k[--$j],_w));$_.j=$f($_.j+1);var _12=$k[--$j];$k[$j++]=$G(_12,3,_12.length-3);break}else{$j-=2}}var _14=$k[--$j];$k[$j++]=_14;if(_14.length>=2){var _15=$k[--$j];var _16=$G(_15,0,2);var _17=$_.ctrl;var _18=$g(_17,_16)!==undefined;$k[$j++]=_15;$k[$j++]=_17;$k[$j++]=_16;if(_18){$_.j=$f($_.j-1);var _1A=$k[--$j];$p($_.msg,$_.j,$g($k[--$j],_1A));$_.j=$f($_.j+1);var _1G=$k[--$j];$k[$j++]=$G(_1G,2,_1G.length-2);break}else{$j-=2}}var _1I=$k[--$j];$k[$j++]=_1I;if(_1I.length>=3){var _1J=$k[--$j];var _1K=$G(_1J,0,3);$k[$j++]=_1J;$k[$j++]=true;for(var _1L=0,_1M=_1K.length;_1L<_1M;_1L++){var _1N=$g(_1K,_1L);if(_1N<48||_1N>57){$j--;$k[$j++]=false}}if($k[--$j]){var _1P=$k[--$j];var _1R=$i($G(_1P,0,3));$k[$j++]=_1P;$k[$j++]=_1R;if(_1R>255){$j-=2;$k[$j++]="bwipp.invalidOrdinal#282";$k[$j++]="Ordinal must be 000 to 255";bwipp_raiseerror()}$_.j=$f($_.j-1);$p($_.msg,$_.j,$k[--$j]);$_.j=$f($_.j+1);var _1X=$k[--$j];$k[$j++]=$G(_1X,3,_1X.length-3)}}}if($or($_.parseonly,$nt($_.parsefnc))||$g($_.msg,$f($_.j-1))!=94){break}$_.j=$f($_.j-1);var _1f=$k[--$j];$k[$j++]=_1f;if(_1f.length<3){$j--;$k[$j++]="bwipp.truncatedFNC#301";$k[$j++]="Function character truncated";bwipp_raiseerror()}var _1g=$k[--$j];$k[$j++]=_1g;if($g(_1g,0)==94){$p($_.msg,$_.j,94);$_.j=$f($_.j+1);var _1l=$k[--$j];$k[$j++]=$G(_1l,1,_1l.length-1);break}var _1n=$k[--$j];$k[$j++]=_1n;if($eq($G(_1n,0,3),"ECI")&&$_.eci){var _1q=$k[--$j];$k[$j++]=_1q;if(_1q.length<9){$j--;$k[$j++]="bwipp.truncatedECI#312";$k[$j++]="ECI truncated";bwipp_raiseerror()}var _1r=$k[--$j];var _1s=$G(_1r,3,6);$k[$j++]=_1r;$k[$j++]=_1s;for(var _1t=0,_1u=_1s.length;_1t<_1u;_1t++){var _1v=$g(_1s,_1t);if(_1v<48||_1v>57){$j-=2;$k[$j++]="bwipp.invalidECI#318";$k[$j++]="ECI must be 000000 to 999999";bwipp_raiseerror()}}var _1w=$k[--$j];$k[$j++]=0;$F(_1w,function(){var _1x=$k[--$j];var _1y=$k[--$j];$k[$j++]=$f(_1y-$f(_1x-48))*10});$p($_.msg,$_.j,~~($k[--$j]/10)-1e6);$_.j=$f($_.j+1);var _23=$k[--$j];$k[$j++]=$G(_23,9,_23.length-9);break}var _25=$k[--$j];$k[$j++]=_25;if(_25.length<4){$j--;$k[$j++]="bwipp.truncatedFNC#329";$k[$j++]="Function character truncated";bwipp_raiseerror()}var _26=$k[--$j];var _27=$G(_26,0,4);var _29=$g($_.fncvals,_27)!==undefined;$k[$j++]=_26;$k[$j++]=_27;if(!_29){var _2A=$k[--$j];var _2B=$s(_2A.length+28);$P(_2B,28,_2A);$P(_2B,0,"Unknown function character: ");var _2C=$k[--$j];$k[$j++]=_2B;$k[$j++]=_2C;$j--;var _2D=$k[--$j];$k[$j++]="bwipp.unknownFNC#335";$k[$j++]=_2D;bwipp_raiseerror()}$p($_.msg,$_.j,$g($_.fncvals,$k[--$j]));$_.j=$f($_.j+1);var _2K=$k[--$j];$k[$j++]=$G(_2K,4,_2K.length-4);break}}else{break}}if($nt($_.parseonly)){$k[$j++]=$G($_.msg,0,$_.j)}else{$k[$j++]=$s($_.j);for(var _2U=0,_2T=$f($_.j-1);_2U<=_2T;_2U+=1){var _2V=$k[--$j];$p(_2V,_2U,$g($_.msg,_2U));$k[$j++]=_2V}}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_gs1process(){$_=Object.create($_);bwipp_loadctx(bwipp_gs1process);if(!bwipp_gs1process.__2299__){$_=Object.create($_);var _1=new Map([["cset","N"],["min",18],["max",18],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _2=$a([_1]);var _3=$a([]);var _4=new Map([["parts",_2],["dlpkey",_3]]);var _5=$a(["lintcsum","lintkey"]);var _6=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",_5]]);var _7=$a([_6]);var _8=$a(["02","255","37"]);var _9=$a(["22","10","21"]);var _A=$a(["235"]);var _B=$a([_9,_A]);var _C=new Map([["parts",_7],["ex",_8],["dlpkey",_B]]);var _D=$a(["lintcsum","lintkey"]);var _E=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",_D]]);var _F=$a([_E]);var _G=$a(["37"]);var _H=$a([_G]);var _I=$a([_H]);var _J=new Map([["parts",_F],["req",_I]]);var _K=$a([]);var _L=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",_K]]);var _T=new Map([["parts",$a([_L])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _V=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _d=new Map([["parts",$a([_V])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _f=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _k=new Map([["parts",$a([_f])],["req",$a([$a([$a(["8020"])])])]]);var _m=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _u=new Map([["parts",$a([_m])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _w=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _15=new Map([["parts",$a([_w])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["255"]),$a(["8006"]),$a(["8026"])])])]]);var _17=new Map([["cset","N"],["min",2],["max",2],["opt",false],["linters",$a([])]]);var _1F=new Map([["parts",$a([_17])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _1H=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _1O=new Map([["parts",$a([_1H])],["ex",$a(["235"])],["req",$a([$a([$a(["01"]),$a(["8006"])])])]]);var _1Q=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _1V=new Map([["parts",$a([_1Q])],["req",$a([$a([$a(["01"])])])]]);var _1X=new Map([["cset","X"],["min",1],["max",28],["opt",false],["linters",$a([])]]);var _1c=new Map([["parts",$a([_1X])],["req",$a([$a([$a(["01"])])])]]);var _1e=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _1m=new Map([["parts",$a([_1e])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _1o=new Map([["cset","N"],["min",1],["max",6],["opt",false],["linters",$a([])]]);var _1w=new Map([["parts",$a([_1o])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _1y=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _22=$a([$a([$a(["01"])])]);var _23=new Map([["parts",$a([_1y])],["req",_22]]);var _25=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _2D=new Map([["parts",$a([_25])],["req",$a([$a([$a(["01"]),$a(["8006"])]),$a([$a(["21"])])])]]);var _2F=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _2L=new Map([["parts",$a([_2F])],["req",$a([$a([$a(["01"]),$a(["8006"])])])]]);var _2N=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _2P=new Map([["cset","X"],["min",1],["max",17],["opt",true],["linters",$a([])]]);var _2S=new Map([["parts",$a([_2N,_2P])],["dlpkey",$a([])]]);var _2U=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _2Z=new Map([["parts",$a([_2U])],["req",$a([$a([$a(["414"])])])]]);var _2b=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _2d=new Map([["cset","N"],["min",1],["max",12],["opt",true],["linters",$a([])]]);var _2h=new Map([["parts",$a([_2b,_2d])],["ex",$a(["01","02","415","8006","8020","8026"])],["dlpkey",$a([])]]);var _2j=new Map([["cset","N"],["min",1],["max",8],["opt",false],["linters",$a([])]]);var _2p=new Map([["parts",$a([_2j])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _2r=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _2y=new Map([["parts",$a([_2r])],["ex",$a(["310n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _30=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _37=new Map([["parts",$a([_30])],["ex",$a(["311n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _39=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3G=new Map([["parts",$a([_39])],["ex",$a(["312n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _3I=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3P=new Map([["parts",$a([_3I])],["ex",$a(["313n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _3R=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3Y=new Map([["parts",$a([_3R])],["ex",$a(["314n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _3a=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3h=new Map([["parts",$a([_3a])],["ex",$a(["315n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _3j=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3q=new Map([["parts",$a([_3j])],["ex",$a(["316n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _3s=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _3z=new Map([["parts",$a([_3s])],["ex",$a(["320n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _41=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _48=new Map([["parts",$a([_41])],["ex",$a(["321n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _4A=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4H=new Map([["parts",$a([_4A])],["ex",$a(["322n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _4J=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4Q=new Map([["parts",$a([_4J])],["ex",$a(["323n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _4S=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4Z=new Map([["parts",$a([_4S])],["ex",$a(["324n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _4b=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4i=new Map([["parts",$a([_4b])],["ex",$a(["325n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _4k=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _4r=new Map([["parts",$a([_4k])],["ex",$a(["326n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _4t=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _50=new Map([["parts",$a([_4t])],["ex",$a(["327n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _52=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _59=new Map([["parts",$a([_52])],["ex",$a(["328n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _5B=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5I=new Map([["parts",$a([_5B])],["ex",$a(["329n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _5K=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5R=new Map([["parts",$a([_5K])],["ex",$a(["330n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _5T=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5a=new Map([["parts",$a([_5T])],["ex",$a(["331n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _5c=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5j=new Map([["parts",$a([_5c])],["ex",$a(["332n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _5l=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _5s=new Map([["parts",$a([_5l])],["ex",$a(["333n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _5u=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _61=new Map([["parts",$a([_5u])],["ex",$a(["334n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _63=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6A=new Map([["parts",$a([_63])],["ex",$a(["335n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _6C=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6J=new Map([["parts",$a([_6C])],["ex",$a(["336n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _6L=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6R=new Map([["parts",$a([_6L])],["ex",$a(["337n"])],["req",$a([$a([$a(["01"])])])]]);var _6T=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6a=new Map([["parts",$a([_6T])],["ex",$a(["340n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _6c=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6j=new Map([["parts",$a([_6c])],["ex",$a(["341n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _6l=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _6s=new Map([["parts",$a([_6l])],["ex",$a(["342n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _6u=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _71=new Map([["parts",$a([_6u])],["ex",$a(["343n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _73=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7A=new Map([["parts",$a([_73])],["ex",$a(["344n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _7C=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7J=new Map([["parts",$a([_7C])],["ex",$a(["345n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _7L=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7S=new Map([["parts",$a([_7L])],["ex",$a(["346n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _7U=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7b=new Map([["parts",$a([_7U])],["ex",$a(["347n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _7d=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7k=new Map([["parts",$a([_7d])],["ex",$a(["348n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _7m=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _7t=new Map([["parts",$a([_7m])],["ex",$a(["349n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _7v=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _82=new Map([["parts",$a([_7v])],["ex",$a(["350n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _84=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8B=new Map([["parts",$a([_84])],["ex",$a(["351n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _8D=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8K=new Map([["parts",$a([_8D])],["ex",$a(["352n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _8M=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8T=new Map([["parts",$a([_8M])],["ex",$a(["353n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _8V=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8c=new Map([["parts",$a([_8V])],["ex",$a(["354n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _8e=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8l=new Map([["parts",$a([_8e])],["ex",$a(["355n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _8n=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _8u=new Map([["parts",$a([_8n])],["ex",$a(["356n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _8w=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _93=new Map([["parts",$a([_8w])],["ex",$a(["357n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _95=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _9C=new Map([["parts",$a([_95])],["ex",$a(["360n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _9E=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _9L=new Map([["parts",$a([_9E])],["ex",$a(["361n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _9N=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _9U=new Map([["parts",$a([_9N])],["ex",$a(["362n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _9W=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _9d=new Map([["parts",$a([_9W])],["ex",$a(["363n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _9f=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _9m=new Map([["parts",$a([_9f])],["ex",$a(["364n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _9o=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _9v=new Map([["parts",$a([_9o])],["ex",$a(["365n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _9x=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _A4=new Map([["parts",$a([_9x])],["ex",$a(["366n"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _A6=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _AD=new Map([["parts",$a([_A6])],["ex",$a(["367n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _AF=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _AM=new Map([["parts",$a([_AF])],["ex",$a(["368n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _AO=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _AV=new Map([["parts",$a([_AO])],["ex",$a(["369n"])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _AX=new Map([["cset","N"],["min",1],["max",8],["opt",false],["linters",$a([])]]);var _Af=new Map([["parts",$a([_AX])],["req",$a([$a([$a(["00"])]),$a([$a(["02"]),$a(["8026"])])])]]);var _Ah=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _Ao=new Map([["parts",$a([_Ah])],["ex",$a(["390n","391n","394n","8111"])],["req",$a([$a([$a(["255"]),$a(["8020"])])])]]);var _Aq=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso4217"])]]);var _As=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _Ay=new Map([["parts",$a([_Aq,_As])],["ex",$a(["391n"])],["req",$a([$a([$a(["8020"])])])]]);var _B0=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _BC=new Map([["parts",$a([_B0])],["ex",$a(["392n","393n"])],["req",$a([$a([$a(["01"])]),$a([$a(["30"]),$a(["31nn"]),$a(["32nn"]),$a(["35nn"]),$a(["36nn"])])])]]);var _BE=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso4217"])]]);var _BG=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a([])]]);var _BQ=new Map([["parts",$a([_BE,_BG])],["ex",$a(["393n"])],["req",$a([$a([$a(["30"]),$a(["31nn"]),$a(["32nn"]),$a(["35nn"]),$a(["36nn"])])])]]);var _BS=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a([])]]);var _BY=new Map([["parts",$a([_BS])],["ex",$a(["394n","8111"])],["req",$a([$a([$a(["255"])])])]]);var _Ba=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _Bk=new Map([["parts",$a([_Ba])],["ex",$a(["392n","393n","395n","8005"])],["req",$a([$a([$a(["30"]),$a(["31nn"]),$a(["32nn"]),$a(["35nn"]),$a(["36nn"])])])]]);var _Bm=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _Bo=new Map([["parts",$a([_Bm])]]);var _Bq=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _Bt=new Map([["parts",$a([_Bq])],["dlpkey",$a([])]]);var _Bv=new Map([["cset","N"],["min",17],["max",17],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _By=new Map([["parts",$a([_Bv])],["dlpkey",$a([])]]);var _C0=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _C5=new Map([["parts",$a([_C0])],["req",$a([$a([$a(["00"])])])]]);var _C7=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _C9=new Map([["parts",$a([_C7])]]);var _CB=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _CG=new Map([["parts",$a([_CB])],["dlpkey",$a([$a(["254"]),$a(["7040"])])]]);var _CI=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _CP=new Map([["parts",$a([_CI])],["req",$a([$a([$a(["8020"])])])],["dlpkey",$a([$a(["8020"])])]]);var _CR=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _CT=new Map([["parts",$a([_CR])]]);var _CV=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _CZ=new Map([["parts",$a([_CV])],["dlpkey",$a([$a(["7040"])])]]);var _Cb=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Ce=new Map([["parts",$a([_Cb])],["ex",$a(["421"])]]);var _Cg=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _Ci=new Map([["cset","X"],["min",1],["max",9],["opt",false],["linters",$a([])]]);var _Cl=new Map([["parts",$a([_Cg,_Ci])],["ex",$a(["4307"])]]);var _Cn=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _Cw=new Map([["parts",$a([_Cn])],["ex",$a(["426"])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _Cy=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a(["lintiso3166list"])]]);var _D5=new Map([["parts",$a([_Cy])],["ex",$a(["426"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _D7=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _DE=new Map([["parts",$a([_D7])],["ex",$a(["426"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _DG=new Map([["cset","N"],["min",1],["max",15],["opt",false],["linters",$a(["lintiso3166list"])]]);var _DN=new Map([["parts",$a([_DG])],["ex",$a(["426"])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _DP=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166"])]]);var _DV=new Map([["parts",$a([_DP])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _DX=new Map([["cset","X"],["min",1],["max",3],["opt",false],["linters",$a([])]]);var _Df=new Map([["parts",$a([_DX])],["req",$a([$a([$a(["01"]),$a(["02"])]),$a([$a(["422"])])])]]);var _Dh=new Map([["cset","X"],["min",1],["max",35],["opt",false],["linters",$a(["lintpcenc"])]]);var _Dm=new Map([["parts",$a([_Dh])],["req",$a([$a([$a(["00"])])])]]);var _Do=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Dt=new Map([["parts",$a([_Do])],["req",$a([$a([$a(["00"])])])]]);var _Dv=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _E0=new Map([["parts",$a([_Dv])],["req",$a([$a([$a(["4302"])])])]]);var _E2=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _E7=new Map([["parts",$a([_E2])],["req",$a([$a([$a(["00"])])])]]);var _E9=new Map([["cset","X"],["min",2],["max",2],["opt",false],["linters",$a(["lintiso3166alpha2"])]]);var _EE=new Map([["parts",$a([_E9])],["req",$a([$a([$a(["00"])])])]]);var _EG=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _EL=new Map([["parts",$a([_EG])],["req",$a([$a([$a(["00"])])])]]);var _EN=new Map([["cset","N"],["min",10],["max",10],["opt",false],["linters",$a(["lintlatitude"])]]);var _EP=new Map([["cset","N"],["min",10],["max",10],["opt",false],["linters",$a(["lintlongitude"])]]);var _EU=new Map([["parts",$a([_EN,_EP])],["req",$a([$a([$a(["00"])])])]]);var _EW=new Map([["cset","X"],["min",1],["max",35],["opt",false],["linters",$a(["lintpcenc"])]]);var _Eb=new Map([["parts",$a([_EW])],["req",$a([$a([$a(["00"])])])]]);var _Ed=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Ei=new Map([["parts",$a([_Ed])],["req",$a([$a([$a(["00"])])])]]);var _Ek=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Ep=new Map([["parts",$a([_Ek])],["req",$a([$a([$a(["4312"])])])]]);var _Er=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintpcenc"])]]);var _Ew=new Map([["parts",$a([_Er])],["req",$a([$a([$a(["00"])])])]]);var _Ey=new Map([["cset","X"],["min",2],["max",2],["opt",false],["linters",$a(["lintiso3166alpha2"])]]);var _F3=new Map([["parts",$a([_Ey])],["req",$a([$a([$a(["00"])])])]]);var _F5=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _FA=new Map([["parts",$a([_F5])],["req",$a([$a([$a(["00"])])])]]);var _FC=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _FH=new Map([["parts",$a([_FC])],["req",$a([$a([$a(["00"])])])]]);var _FJ=new Map([["cset","X"],["min",1],["max",35],["opt",false],["linters",$a(["lintpcenc"])]]);var _FO=new Map([["parts",$a([_FJ])],["req",$a([$a([$a(["00"])])])]]);var _FQ=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a(["lintyesno"])]]);var _FV=new Map([["parts",$a([_FQ])],["req",$a([$a([$a(["00"])])])]]);var _FX=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmd0"])]]);var _FZ=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["linthhmm"])]]);var _Fe=new Map([["parts",$a([_FX,_FZ])],["req",$a([$a([$a(["00"])])])]]);var _Fg=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _Fl=new Map([["parts",$a([_Fg])],["req",$a([$a([$a(["00"])])])]]);var _Fn=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a([])]]);var _Fv=new Map([["parts",$a([_Fn])],["req",$a([$a([$a(["01"]),$a(["02"]),$a(["8006"]),$a(["8026"])])])]]);var _Fx=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _G3=new Map([["parts",$a([_Fx])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _G5=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _G7=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["linthhmm"])]]);var _GD=new Map([["parts",$a([_G5,_G7])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _GF=new Map([["cset","N"],["min",1],["max",4],["opt",false],["linters",$a([])]]);var _GM=new Map([["parts",$a([_GF])],["req",$a([$a([$a(["01"])]),$a([$a(["10"])])])]]);var _GO=new Map([["cset","X"],["min",1],["max",12],["opt",false],["linters",$a([])]]);var _GU=new Map([["parts",$a([_GO])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _GW=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _Gc=new Map([["parts",$a([_GW])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _Ge=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _Gg=new Map([["cset","N"],["min",6],["max",6],["opt",true],["linters",$a(["lintyymmdd"])]]);var _Gm=new Map([["parts",$a([_Ge,_Gg])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _Go=new Map([["cset","X"],["min",1],["max",3],["opt",false],["linters",$a([])]]);var _Gu=new Map([["parts",$a([_Go])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _Gw=new Map([["cset","X"],["min",1],["max",10],["opt",false],["linters",$a([])]]);var _H2=new Map([["parts",$a([_Gw])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _H4=new Map([["cset","X"],["min",1],["max",2],["opt",false],["linters",$a([])]]);var _HA=new Map([["parts",$a([_H4])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _HC=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a(["lintyymmdd"])]]);var _HE=new Map([["cset","N"],["min",4],["max",4],["opt",true],["linters",$a(["linthhmm"])]]);var _HK=new Map([["parts",$a([_HC,_HE])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _HM=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _HU=new Map([["parts",$a([_HM])],["req",$a([$a([$a(["01"]),$a(["8006"])]),$a([$a(["416"])])])]]);var _HW=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Hc=new Map([["parts",$a([_HW])],["req",$a([$a([$a(["01"]),$a(["8006"])])])]]);var _He=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _Hj=new Map([["parts",$a([_He])],["req",$a([$a([$a(["7021"])])])]]);var _Hl=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _Hn=new Map([["parts",$a([_Hl])]]);var _Hp=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintiso3166999"])]]);var _Hr=new Map([["cset","X"],["min",1],["max",27],["opt",false],["linters",$a([])]]);var _Hx=new Map([["parts",$a([_Hp,_Hr])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _Hz=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _I1=new Map([["cset","X"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _I3=new Map([["cset","X"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _I5=new Map([["cset","X"],["min",1],["max",1],["opt",false],["linters",$a(["lintimporteridx"])]]);var _I7=new Map([["parts",$a([_Hz,_I1,_I3,_I5])]]);var _I9=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _IE=new Map([["parts",$a([_I9])],["req",$a([$a([$a(["01"])])])]]);var _IG=new Map([["cset","X"],["min",2],["max",2],["opt",false],["linters",$a([])]]);var _II=new Map([["cset","X"],["min",1],["max",28],["opt",false],["linters",$a([])]]);var _IO=new Map([["parts",$a([_IG,_II])],["req",$a([$a([$a(["01"]),$a(["8004"])])])]]);var _IQ=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _IW=new Map([["parts",$a([_IQ])],["req",$a([$a([$a(["01"]),$a(["8006"])])])]]);var _IY=new Map([["cset","N"],["min",2],["max",2],["opt",false],["linters",$a(["lintmediatype"])]]);var _Ie=new Map([["parts",$a([_IY])],["req",$a([$a([$a(["8017"]),$a(["8018"])])])]]);var _Ig=new Map([["cset","X"],["min",1],["max",25],["opt",false],["linters",$a([])]]);var _Im=new Map([["parts",$a([_Ig])],["req",$a([$a([$a(["8017"]),$a(["8018"])])])]]);var _Io=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["lintnonzero"])]]);var _Iq=new Map([["cset","N"],["min",5],["max",5],["opt",false],["linters",$a(["lintnonzero"])]]);var _Is=new Map([["cset","N"],["min",3],["max",3],["opt",false],["linters",$a(["lintnonzero"])]]);var _Iu=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a(["lintwinding"])]]);var _Iw=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a([])]]);var _J1=new Map([["parts",$a([_Io,_Iq,_Is,_Iu,_Iw])],["req",$a([$a([$a(["01"])])])]]);var _J3=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _J5=new Map([["parts",$a([_J3])]]);var _J7=new Map([["cset","N"],["min",1],["max",1],["opt",false],["linters",$a(["lintzero"])]]);var _J9=new Map([["cset","N"],["min",13],["max",13],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _JB=new Map([["cset","X"],["min",1],["max",16],["opt",true],["linters",$a([])]]);var _JE=new Map([["parts",$a([_J7,_J9,_JB])],["dlpkey",$a([])]]);var _JG=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _JK=new Map([["parts",$a([_JG])],["dlpkey",$a([$a(["7040"])])]]);var _JM=new Map([["cset","N"],["min",6],["max",6],["opt",false],["linters",$a([])]]);var _JS=new Map([["parts",$a([_JM])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _JU=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",$a(["lintcsum"])]]);var _JW=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["lintpieceoftotal"])]]);var _Jb=new Map([["parts",$a([_JU,_JW])],["ex",$a(["01","37"])],["dlpkey",$a([$a(["22","10","21"])])]]);var _Jd=new Map([["cset","X"],["min",1],["max",34],["opt",false],["linters",$a(["lintiban"])]]);var _Ji=new Map([["parts",$a([_Jd])],["req",$a([$a([$a(["415"])])])]]);var _Jk=new Map([["cset","N"],["min",8],["max",8],["opt",false],["linters",$a(["lintyymmddhh"])]]);var _Jm=new Map([["cset","N"],["min",1],["max",4],["opt",true],["linters",$a(["lintmmoptss"])]]);var _Js=new Map([["parts",$a([_Jk,_Jm])],["req",$a([$a([$a(["01"]),$a(["02"])])])]]);var _Ju=new Map([["cset","X"],["min",1],["max",50],["opt",false],["linters",$a([])]]);var _K0=new Map([["parts",$a([_Ju])],["req",$a([$a([$a(["00"]),$a(["01"])])])]]);var _K2=new Map([["cset","Y"],["min",1],["max",30],["opt",false],["linters",$a(["lintkey"])]]);var _K6=new Map([["parts",$a([_K2])],["dlpkey",$a([$a(["8011"])])]]);var _K8=new Map([["cset","N"],["min",1],["max",12],["opt",false],["linters",$a(["lintnozeroprefix"])]]);var _KD=new Map([["parts",$a([_K8])],["req",$a([$a([$a(["8010"])])])]]);var _KF=new Map([["cset","X"],["min",1],["max",20],["opt",false],["linters",$a([])]]);var _KL=new Map([["parts",$a([_KF])],["req",$a([$a([$a(["01"]),$a(["8006"])])])]]);var _KN=new Map([["cset","X"],["min",1],["max",25],["opt",false],["linters",$a(["lintcsumalpha","lintkey"])]]);var _KQ=new Map([["parts",$a([_KN])],["dlpkey",$a([])]]);var _KS=new Map([["cset","N"],["min",18],["max",18],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _KX=new Map([["parts",$a([_KS])],["ex",$a(["8018"])],["dlpkey",$a([$a(["8019"])])]]);var _KZ=new Map([["cset","N"],["min",18],["max",18],["opt",false],["linters",$a(["lintcsum","lintkey"])]]);var _Ke=new Map([["parts",$a([_KZ])],["ex",$a(["8017"])],["dlpkey",$a([$a(["8019"])])]]);var _Kg=new Map([["cset","N"],["min",1],["max",10],["opt",false],["linters",$a([])]]);var _Km=new Map([["parts",$a([_Kg])],["req",$a([$a([$a(["8017"]),$a(["8018"])])])]]);var _Ko=new Map([["cset","X"],["min",1],["max",25],["opt",false],["linters",$a([])]]);var _Kt=new Map([["parts",$a([_Ko])],["req",$a([$a([$a(["415"])])])]]);var _Kv=new Map([["cset","N"],["min",14],["max",14],["opt",false],["linters",$a(["lintcsum"])]]);var _Kx=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a(["lintpieceoftotal"])]]);var _L3=new Map([["parts",$a([_Kv,_Kx])],["ex",$a(["02","8006"])],["req",$a([$a([$a(["37"])])])]]);var _L5=new Map([["cset","Z"],["min",1],["max",90],["opt",false],["linters",$a([])]]);var _LJ=new Map([["parts",$a([_L5])],["req",$a([$a([$a(["00"]),$a(["01"]),$a(["253"]),$a(["255"]),$a(["8003"]),$a(["8004"]),$a(["8006"]),$a(["8010"]),$a(["8017"]),$a(["8018"])])])]]);var _LL=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintcouponcode"])]]);var _LN=new Map([["parts",$a([_LL])]]);var _LP=new Map([["cset","N"],["min",4],["max",4],["opt",false],["linters",$a([])]]);var _LU=new Map([["parts",$a([_LP])],["req",$a([$a([$a(["255"])])])]]);var _LW=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a(["lintcouponposoffer"])]]);var _LY=new Map([["parts",$a([_LW])]]);var _La=new Map([["cset","X"],["min",1],["max",70],["opt",false],["linters",$a([])]]);var _Lf=new Map([["parts",$a([_La])],["req",$a([$a([$a(["01"])])])]]);var _Lh=new Map([["cset","X"],["min",1],["max",30],["opt",false],["linters",$a([])]]);var _Lj=new Map([["parts",$a([_Lh])]]);var _Ll=new Map([["cset","X"],["min",1],["max",90],["opt",false],["linters",$a([])]]);var _Ln=new Map([["parts",$a([_Ll])]]);var _Lo=new Map([["00",_4],["01",_C],["02",_J],["10",_T],["11",_d],["12",_k],["13",_u],["15",_u],["16",_u],["17",_15],["20",_1F],["21",_1O],["22",_1V],["235",_1c],["240",_1m],["241",_1m],["242",_1w],["243",_23],["250",_2D],["251",_2L],["253",_2S],["254",_2Z],["255",_2h],["30",_2p],["3100",_2y],["3101",_2y],["3102",_2y],["3103",_2y],["3104",_2y],["3105",_2y],["3110",_37],["3111",_37],["3112",_37],["3113",_37],["3114",_37],["3115",_37],["3120",_3G],["3121",_3G],["3122",_3G],["3123",_3G],["3124",_3G],["3125",_3G],["3130",_3P],["3131",_3P],["3132",_3P],["3133",_3P],["3134",_3P],["3135",_3P],["3140",_3Y],["3141",_3Y],["3142",_3Y],["3143",_3Y],["3144",_3Y],["3145",_3Y],["3150",_3h],["3151",_3h],["3152",_3h],["3153",_3h],["3154",_3h],["3155",_3h],["3160",_3q],["3161",_3q],["3162",_3q],["3163",_3q],["3164",_3q],["3165",_3q],["3200",_3z],["3201",_3z],["3202",_3z],["3203",_3z],["3204",_3z],["3205",_3z],["3210",_48],["3211",_48],["3212",_48],["3213",_48],["3214",_48],["3215",_48],["3220",_4H],["3221",_4H],["3222",_4H],["3223",_4H],["3224",_4H],["3225",_4H],["3230",_4Q],["3231",_4Q],["3232",_4Q],["3233",_4Q],["3234",_4Q],["3235",_4Q],["3240",_4Z],["3241",_4Z],["3242",_4Z],["3243",_4Z],["3244",_4Z],["3245",_4Z],["3250",_4i],["3251",_4i],["3252",_4i],["3253",_4i],["3254",_4i],["3255",_4i],["3260",_4r],["3261",_4r],["3262",_4r],["3263",_4r],["3264",_4r],["3265",_4r],["3270",_50],["3271",_50],["3272",_50],["3273",_50],["3274",_50],["3275",_50],["3280",_59],["3281",_59],["3282",_59],["3283",_59],["3284",_59],["3285",_59],["3290",_5I],["3291",_5I],["3292",_5I],["3293",_5I],["3294",_5I],["3295",_5I],["3300",_5R],["3301",_5R],["3302",_5R],["3303",_5R],["3304",_5R],["3305",_5R],["3310",_5a],["3311",_5a],["3312",_5a],["3313",_5a],["3314",_5a],["3315",_5a],["3320",_5j],["3321",_5j],["3322",_5j],["3323",_5j],["3324",_5j],["3325",_5j],["3330",_5s],["3331",_5s],["3332",_5s],["3333",_5s],["3334",_5s],["3335",_5s],["3340",_61],["3341",_61],["3342",_61],["3343",_61],["3344",_61],["3345",_61],["3350",_6A],["3351",_6A],["3352",_6A],["3353",_6A],["3354",_6A],["3355",_6A],["3360",_6J],["3361",_6J],["3362",_6J],["3363",_6J],["3364",_6J],["3365",_6J],["3370",_6R],["3371",_6R],["3372",_6R],["3373",_6R],["3374",_6R],["3375",_6R],["3400",_6a],["3401",_6a],["3402",_6a],["3403",_6a],["3404",_6a],["3405",_6a],["3410",_6j],["3411",_6j],["3412",_6j],["3413",_6j],["3414",_6j],["3415",_6j],["3420",_6s],["3421",_6s],["3422",_6s],["3423",_6s],["3424",_6s],["3425",_6s],["3430",_71],["3431",_71],["3432",_71],["3433",_71],["3434",_71],["3435",_71],["3440",_7A],["3441",_7A],["3442",_7A],["3443",_7A],["3444",_7A],["3445",_7A],["3450",_7J],["3451",_7J],["3452",_7J],["3453",_7J],["3454",_7J],["3455",_7J],["3460",_7S],["3461",_7S],["3462",_7S],["3463",_7S],["3464",_7S],["3465",_7S],["3470",_7b],["3471",_7b],["3472",_7b],["3473",_7b],["3474",_7b],["3475",_7b],["3480",_7k],["3481",_7k],["3482",_7k],["3483",_7k],["3484",_7k],["3485",_7k],["3490",_7t],["3491",_7t],["3492",_7t],["3493",_7t],["3494",_7t],["3495",_7t],["3500",_82],["3501",_82],["3502",_82],["3503",_82],["3504",_82],["3505",_82],["3510",_8B],["3511",_8B],["3512",_8B],["3513",_8B],["3514",_8B],["3515",_8B],["3520",_8K],["3521",_8K],["3522",_8K],["3523",_8K],["3524",_8K],["3525",_8K],["3530",_8T],["3531",_8T],["3532",_8T],["3533",_8T],["3534",_8T],["3535",_8T],["3540",_8c],["3541",_8c],["3542",_8c],["3543",_8c],["3544",_8c],["3545",_8c],["3550",_8l],["3551",_8l],["3552",_8l],["3553",_8l],["3554",_8l],["3555",_8l],["3560",_8u],["3561",_8u],["3562",_8u],["3563",_8u],["3564",_8u],["3565",_8u],["3570",_93],["3571",_93],["3572",_93],["3573",_93],["3574",_93],["3575",_93],["3600",_9C],["3601",_9C],["3602",_9C],["3603",_9C],["3604",_9C],["3605",_9C],["3610",_9L],["3611",_9L],["3612",_9L],["3613",_9L],["3614",_9L],["3615",_9L],["3620",_9U],["3621",_9U],["3622",_9U],["3623",_9U],["3624",_9U],["3625",_9U],["3630",_9d],["3631",_9d],["3632",_9d],["3633",_9d],["3634",_9d],["3635",_9d],["3640",_9m],["3641",_9m],["3642",_9m],["3643",_9m],["3644",_9m],["3645",_9m],["3650",_9v],["3651",_9v],["3652",_9v],["3653",_9v],["3654",_9v],["3655",_9v],["3660",_A4],["3661",_A4],["3662",_A4],["3663",_A4],["3664",_A4],["3665",_A4],["3670",_AD],["3671",_AD],["3672",_AD],["3673",_AD],["3674",_AD],["3675",_AD],["3680",_AM],["3681",_AM],["3682",_AM],["3683",_AM],["3684",_AM],["3685",_AM],["3690",_AV],["3691",_AV],["3692",_AV],["3693",_AV],["3694",_AV],["3695",_AV],["37",_Af],["3900",_Ao],["3901",_Ao],["3902",_Ao],["3903",_Ao],["3904",_Ao],["3905",_Ao],["3906",_Ao],["3907",_Ao],["3908",_Ao],["3909",_Ao],["3910",_Ay],["3911",_Ay],["3912",_Ay],["3913",_Ay],["3914",_Ay],["3915",_Ay],["3916",_Ay],["3917",_Ay],["3918",_Ay],["3919",_Ay],["3920",_BC],["3921",_BC],["3922",_BC],["3923",_BC],["3924",_BC],["3925",_BC],["3926",_BC],["3927",_BC],["3928",_BC],["3929",_BC],["3930",_BQ],["3931",_BQ],["3932",_BQ],["3933",_BQ],["3934",_BQ],["3935",_BQ],["3936",_BQ],["3937",_BQ],["3938",_BQ],["3939",_BQ],["3940",_BY],["3941",_BY],["3942",_BY],["3943",_BY],["3950",_Bk],["3951",_Bk],["3952",_Bk],["3953",_Bk],["3954",_Bk],["3955",_Bk],["400",_Bo],["401",_Bt],["402",_By],["403",_C5],["410",_C9],["411",_C9],["412",_C9],["413",_C9],["414",_CG],["415",_CP],["416",_CT],["417",_CZ],["420",_Ce],["421",_Cl],["422",_Cw],["423",_D5],["424",_DE],["425",_DN],["426",_DV],["427",_Df],["4300",_Dm],["4301",_Dm],["4302",_Dt],["4303",_E0],["4304",_E7],["4305",_E7],["4306",_E7],["4307",_EE],["4308",_EL],["4309",_EU],["4310",_Eb],["4311",_Eb],["4312",_Ei],["4313",_Ep],["4314",_Ew],["4315",_Ew],["4316",_Ew],["4317",_F3],["4318",_FA],["4319",_FH],["4320",_FO],["4321",_FV],["4322",_FV],["4323",_FV],["4324",_Fe],["4325",_Fe],["4326",_Fl],["7001",_Fv],["7002",_G3],["7003",_GD],["7004",_GM],["7005",_GU],["7006",_Gc],["7007",_Gm],["7008",_Gu],["7009",_H2],["7010",_HA],["7011",_HK],["7020",_HU],["7021",_Hc],["7022",_Hj],["7023",_Hn],["7030",_Hx],["7031",_Hx],["7032",_Hx],["7033",_Hx],["7034",_Hx],["7035",_Hx],["7036",_Hx],["7037",_Hx],["7038",_Hx],["7039",_Hx],["7040",_I7],["710",_IE],["711",_IE],["712",_IE],["713",_IE],["714",_IE],["715",_IE],["7230",_IO],["7231",_IO],["7232",_IO],["7233",_IO],["7234",_IO],["7235",_IO],["7236",_IO],["7237",_IO],["7238",_IO],["7239",_IO],["7240",_IW],["7241",_Ie],["7242",_Im],["8001",_J1],["8002",_J5],["8003",_JE],["8004",_JK],["8005",_JS],["8006",_Jb],["8007",_Ji],["8008",_Js],["8009",_K0],["8010",_K6],["8011",_KD],["8012",_KL],["8013",_KQ],["8017",_KX],["8018",_Ke],["8019",_Km],["8020",_Kt],["8026",_L3],["8030",_LJ],["8110",_LN],["8111",_LU],["8112",_LY],["8200",_Lf],["90",_Lj],["91",_Ln],["92",_Ln],["93",_Ln],["94",_Ln],["95",_Ln],["96",_Ln],["97",_Ln],["98",_Ln],["99",_Ln]]);$_.gs1syntax=_Lo;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2299__=1;$_=Object.getPrototypeOf($_)}if($eq($k[--$j],"ai")){$ax($k[--$j],"(");if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1aiMissingOpenParen#2307";$k[$j++]="AIs must start with '('";bwipp_raiseerror()}$j--;$k[$j++]=Infinity;var _Lt=$k[--$j];var _Lu=$k[--$j];$k[$j++]=_Lt;$k[$j++]=_Lu;for(;;){var _Lv=$k[--$j];$k[$j++]=_Lv;if($eq(_Lv,"")){$j--;break}$X($k[--$j],")");if($nt($k[--$j])){$l();$k[$j++]="bwipp.GS1aiMissingCloseParen#2313";$k[$j++]="AIs must end with ')'";bwipp_raiseerror()}var _Ly=$k[--$j];var _Lz=$k[--$j];$k[$j++]=_Ly;$k[$j++]=_Lz;$j--;var _M0=$k[--$j];var _M1=$k[--$j];$k[$j++]=_M0;$X(_M1,"(");if($k[--$j]){var _M3=$k[--$j];var _M4=$k[--$j];$k[$j++]=_M3;$k[$j++]=_M4;$j--;var _M5=$k[--$j];var _M6=$k[--$j];$k[$j++]=_M5;$k[$j++]=_M6}else{$k[$j++]=""}}var _M7=$m();$k[$j++]=_M7;if(_M7>0){var _M8=$k[--$j];for(var _MA=_M8,_M9=~~(_M8/2)+1;_MA>=_M9;_MA-=1){$r(_MA,-1)}}else{$j--}$as($a(~~($m()/2)));$_.ais=$k[--$j];$as($a($m()));$k[$j++]=Infinity;var _MG=$k[--$j];var _MH=$k[--$j];$k[$j++]=_MG;$F(_MH,function(){var _MJ=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$k[$j++]=_MJ;bwipp_parseinput()});$_.vals=$a();$j--}else{$ax($k[--$j],"http://");if($nt($k[--$j])){$ax($k[--$j],"https://");if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1dlURIbadScheme#2330";$k[$j++]="Scheme must be http:// or https://";bwipp_raiseerror()}}$j--;$X($k[--$j],"/");if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1dlMissingDomainOrPathInfo#2336";$k[$j++]="URI must contain a domain and path info";bwipp_raiseerror()}$j-=2;$X($k[--$j],"#");if($k[--$j]){var _MT=$k[--$j];var _MU=$k[--$j];$k[$j++]=_MT;$k[$j++]=_MU;$j--;var _MV=$k[--$j];var _MW=$k[--$j];$k[$j++]=_MV;$k[$j++]=_MW;$j--}$X($k[--$j],"?");if($nt($k[--$j])){var _MZ=$k[--$j];$k[$j++]="";$k[$j++]=null;$k[$j++]=_MZ}$_.pp=$k[--$j];$j--;$_.qp=$k[--$j];$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=$_.pp;for(;;){$X($k[--$j],"/");if($nt($k[--$j])){$j--;break}var _Mf=$k[--$j];var _Mg=$k[--$j];$k[$j++]=_Mf.length+1;$k[$j++]=_Mg;$j--;var _Mh=$k[--$j];var _Mi=$k[--$j];var _Mj=$k[--$j];$k[$j++]=_Mj;$k[$j++]=$f(_Mh+_Mj);$k[$j++]=_Mi}$as($a($m()-1));$_.pipos=$k[--$j];$j-=2;if($_.pipos.length<=1){$k[$j++]="bwipp.GS1dlNoAIinfo#2361";$k[$j++]="The path was too short to contain AI info";bwipp_raiseerror()}$k[$j++]=false;for(var _Mp=$_.pipos.length-2;_Mp>=0;_Mp-=2){var _Mr=$g($_.pipos,_Mp);var _Mv=$G($_.pp,_Mr,$f($f($g($_.pipos,_Mp+1)-_Mr)-1));var _Mx=$g($_.gs1syntax,_Mv)!==undefined;$k[$j++]=_Mp;$k[$j++]=_Mv;if(_Mx){var _N1=$g($g($_.gs1syntax,$k[--$j]),"dlpkey")!==undefined;if(_N1){var _N2=$k[--$j];var _N3=$k[--$j];$k[$j++]=_N2;$k[$j++]=_N3;$j--;$k[$j++]=true;break}}else{$j--}$j--}if($nt($k[--$j])){$k[$j++]="bwipp.GS1dlNoAIinfo#2380";$k[$j++]="The path does not contain a valid primary key";bwipp_raiseerror()}var _N7=$g($_.pipos,$k[--$j]);$_.pp=$G($_.pp,_N7,$f($_.pp.length-_N7));$_.uriunescape=function(){$_.qq=$k[--$j];$_.in=$k[--$j];$_.out=$s($_.in.length);$k[$j++]=0;$k[$j++]=0;for(;;){var _NF=$k[--$j];var _NG=$k[--$j];$k[$j++]=_NG;$k[$j++]=_NF;if(_NG>=$_.in.length){break}var _NJ=$k[--$j];var _NK=$k[--$j];var _NL=$g($_.in,_NK);$k[$j++]=_NK;$k[$j++]=_NJ;$k[$j++]=_NL;if(_NL==43&&$_.qq){$j--;var _NO=$k[--$j];$p($_.out,_NO,32);var _NP=$k[--$j];$k[$j++]=$f(_NP+1);$k[$j++]=$f(_NO+1)}else{var _NQ=$k[--$j];var _NR=$k[--$j];var _NS=$k[--$j];$k[$j++]=_NS;$k[$j++]=_NR;$k[$j++]=_NQ;if(_NQ==37&&_NS<$_.in.length-2){$j--;var _NV=$Z($s(4),"< >");var _NX=$k[--$j];var _NY=$k[--$j];$P(_NV,1,$G($_.in,$f(_NY+1),2));try{$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=$x(_NV);$k[$j++]=false}catch(e){$k[$j++]=true}if($k[--$j]){$j-=2;$k[$j++]="bwipp.GS1dlBadHexCharacter#2399";$k[$j++]="Invalid hex character";bwipp_raiseerror()}var _Nc=$g($k[--$j],0);var _Ne=$k[--$j];$p($_.out,_Ne,_Nc);var _Nf=$k[--$j];$k[$j++]=$f(_Nf+3);$k[$j++]=$f(_Ne+1)}else{var _Nh=$k[--$j];var _Ni=$k[--$j];$p($_.out,_Ni,_Nh);var _Nj=$k[--$j];$k[$j++]=$f(_Nj+1);$k[$j++]=$f(_Ni+1)}}}$_.out=$G($_.out,0,$k[--$j]);$j--;$k[$j++]=$_.out};$_.isvaliddlpkeyseq=function(){$_.in=$k[--$j];$k[$j++]=false;$F($g($g($_.gs1syntax,$g($_.in,0)),"dlpkey"),function(){$_.seq=$k[--$j];$_.i=1;$_.j=0;for(;;){if($_.i>=$_.in.length){break}if($_.j>=$_.seq.length){break}if($eq($g($_.in,$_.i),$g($_.seq,$_.j))){$_.i=$_.i+1}$_.j=$_.j+1}if($_.i==$_.in.length){$j--;$k[$j++]=true;return true}})};$_.ais=$a(99);$_.vals=$a(99);$k[$j++]=0;$k[$j++]=$_.pp;for(;;){$X($k[--$j],"/");if($k[--$j]){var _OF=$k[--$j];var _OG=$k[--$j];var _OH=$k[--$j];var _OI=$k[--$j];$p($_.ais,_OI,_OF);$k[$j++]=_OI;$X(_OH,"/");if($k[--$j]){var _OK=$k[--$j];var _OL=$k[--$j];$k[$j++]=_OK;$k[$j++]=_OL;$j--}else{var _OM=$k[--$j];$k[$j++]="";$k[$j++]=_OM}var _OO=$k[--$j];var _OP=$k[--$j];var _OQ=$k[--$j];$k[$j++]=_OQ;$k[$j++]=_OP;$k[$j++]=$_.vals;$k[$j++]=_OQ;$k[$j++]=_OO;$k[$j++]=false;$_.uriunescape();var _OR=$k[--$j];var _OS=$k[--$j];$p($k[--$j],_OS,_OR)}else{$j--;break}var _OU=$k[--$j];var _OV=$k[--$j];$k[$j++]=$f(_OV+1);$k[$j++]=_OU}var _OW=$k[--$j];$_.plen=_OW;$k[$j++]=_OW;if(_OW>1){$k[$j++]=$G($_.ais,0,$_.plen);$_.isvaliddlpkeyseq();if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1dlBadPathInfo#2452";$k[$j++]="The AIs in the path are not a valid key-qualifier sequence for the key";bwipp_raiseerror()}}$k[$j++]=$_.qp;for(;;){var _Oc=$k[--$j];$k[$j++]=_Oc;if($eq(_Oc,"")){$j--;break}$X($k[--$j],"&");if($k[--$j]){var _Of=$k[--$j];var _Og=$k[--$j];$k[$j++]=_Of;$k[$j++]=_Og;$j--}else{var _Oh=$k[--$j];$k[$j++]="";$k[$j++]=_Oh}$X($k[--$j],"=");if($k[--$j]){var _Ok=$k[--$j];$k[$j++]=_Ok;$k[$j++]=true;$F(_Ok,function(){var _Ol=$k[--$j];var _Om=$k[--$j];$k[$j++]=_Om&&(_Ol>=48&&_Ol<=57)});if($k[--$j]){var _Op=$k[--$j];var _Oq=$k[--$j];var _Or=$k[--$j];var _Os=$k[--$j];var _Ot=$k[--$j];$p($_.ais,_Ot,_Op);$k[$j++]=_Ot;$k[$j++]=_Os;$k[$j++]=$_.vals;$k[$j++]=_Ot;$k[$j++]=_Or;$k[$j++]=true;$_.uriunescape();var _Ov=$k[--$j];var _Ow=$k[--$j];$p($k[--$j],_Ow,_Ov);var _Oy=$k[--$j];var _Oz=$k[--$j];$k[$j++]=$f(_Oz+1);$k[$j++]=_Oy}else{$j-=3}}else{$j--}}var _P2=$k[--$j];var _P4=$G($_.ais,$_.plen,$f(_P2-$_.plen));$k[$j++]=_P2;for(var _P5=0,_P6=_P4.length;_P5<_P6;_P5++){$k[$j++]=$g(_P4,_P5);for(var _P9=$_.plen;_P9>=1;_P9-=1){var _PA=$k[--$j];$k[$j++]=_PA;$k[$j++]=_P9;$k[$j++]=_PA;$k[$j++]=Infinity;$q($G($_.ais,0,$_.plen));$r($m()+3,-2);var _PF=$k[--$j];var _PG=$k[--$j];$k[$j++]=_PF;$r(_PG,1);var _PH=$a();$k[$j++]=_PH;$_.isvaliddlpkeyseq();if($k[--$j]){var _PJ=$k[--$j];var _PK=$k[--$j];$k[$j++]=_PJ;$k[$j++]=_PK;$j--;var _PL=$k[--$j];var _PM=_PL.length;var _PN=$s(_PM+50);$P(_PN,0,"AI (");$P(_PN,4,_PL);$P(_PN,_PM+4,") from query params should be in the path info");$k[$j++]=_PL;$k[$j++]=_PN;$k[$j++]=_PM;$j--;var _PO=$k[--$j];var _PP=$k[--$j];$k[$j++]=_PO;$k[$j++]=_PP;$j--;var _PQ=$k[--$j];$k[$j++]="bwipp.GS1dlAttributeMustBeQualifier#2486";$k[$j++]=_PQ;bwipp_raiseerror()}}$j--}var _PS=$k[--$j];$_.ais=$G($_.ais,0,_PS);$_.vals=$G($_.vals,0,_PS);for(var _PY=0,_PX=$_.ais.length-1;_PY<=_PX;_PY+=1){$k[$j++]=_PY;if($eq($g($_.ais,_PY),"01")){var _Pb=$k[--$j];var _Pd=$g($_.vals,_Pb);var _Pe=_Pd.length;$k[$j++]=_Pb;$k[$j++]=_Pd;if(_Pe==8||(_Pe==12||_Pe==13)){var _Pg=$Z($s(14),"00000000000000");var _Ph=$k[--$j];$P(_Pg,14-_Ph.length,_Ph);var _Pj=$k[--$j];$p($_.vals,_Pj,_Pg);$k[$j++]=_Pj}else{$j--}}$j--}}if(!bwipp_gs1process.__2521__){$_=Object.create($_);$k[$j++]=Infinity;var _Pk=$a(["00","01","02","03","04","11","12","13","14","15","16","17","18","19","20","31","32","33","34","35","36","41"]);for(var _Pl=0,_Pm=_Pk.length;_Pl<_Pm;_Pl++){var _Pn=$g(_Pk,_Pl);$k[$j++]=_Pn;$k[$j++]=_Pn}$_.aifixed=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2521__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;var _Pq=$_.ais;for(var _Pr=0,_Ps=_Pq.length;_Pr<_Ps;_Pr++){var _Pt=$g(_Pq,_Pr);$k[$j++]=true;$k[$j++]=_Pt;if(_Pt.length>=2){var _Px=$g($_.aifixed,$G($k[--$j],0,2))!==undefined;if(_Px){$j--;$k[$j++]=false}}else{$j--}}$_.fncs=$a();if(!bwipp_gs1process.__2556__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=0;for(var _Pz=0,_Q0="!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length;_Pz<_Q0;_Pz++){var _Q2=$k[--$j];$k[$j++]=$g("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_Pz);$k[$j++]=_Q2;$k[$j++]=$f(_Q2+1)}$j--;$_.cset82=$d();$k[$j++]=Infinity;$k[$j++]=0;for(var _Q4=0,_Q5="#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;_Q4<_Q5;_Q4++){var _Q7=$k[--$j];$k[$j++]=$g("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_Q4);$k[$j++]=_Q7;$k[$j++]=$f(_Q7+1)}$j--;$_.cset39=$d();$k[$j++]=Infinity;$k[$j++]=0;for(var _Q9=0,_QA="23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length;_Q9<_QA;_Q9++){var _QC=$k[--$j];$k[$j++]=$g("23456789ABCDEFGHJKLMNPQRSTUVWXYZ",_Q9);$k[$j++]=_QC;$k[$j++]=$f(_QC+1)}$j--;$_.cset32=$d();$k[$j++]=Infinity;$k[$j++]=0;for(var _QE=0,_QF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".length;_QE<_QF;_QE++){var _QH=$k[--$j];$k[$j++]=$g("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",_QE);$k[$j++]=_QH;$k[$j++]=$f(_QH+1)}$j--;$_.cset64=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2556__=1;$_=Object.getPrototypeOf($_)}$_.lintnumeric=function(){var _QK=$k[--$j];$k[$j++]=true;$F(_QK,function(){var _QL=$k[--$j];if(_QL<48||_QL>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1notNumeric#2560";$k[$j++]="Not numeric";$k[$j++]=false;return true}};$_.lintcset82=function(){var _QN=$k[--$j];$k[$j++]=true;$F(_QN,function(){var _QQ=$g($_.cset82,$k[--$j])!==undefined;if(!_QQ){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET82character#2565";$k[$j++]="Invalid CSET 82 character";$k[$j++]=false;return true}};$_.lintcset39=function(){var _QS=$k[--$j];$k[$j++]=true;$F(_QS,function(){var _QV=$g($_.cset39,$k[--$j])!==undefined;if(!_QV){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET39character#2570";$k[$j++]="Invalid CSET 39 character";$k[$j++]=false;return true}};$_.lintcset64=function(){var _QX=$k[--$j];$k[$j++]=true;$F(_QX,function(){var _QY=$k[--$j];var _Qa=$g($_.cset64,_QY)!==undefined;if(!_Qa&&_QY!=61){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET64character#2576";$k[$j++]="Invalid CSET 64 character";$k[$j++]=false;return true}};$_.lintkey=function(){var _Qc=$k[--$j];$k[$j++]=_Qc;if(_Qc.length<2){$j-=2;$k[$j++]="bwipp.GS1keyTooShort#2580";$k[$j++]="Key is too short";$k[$j++]=false;return true}var _Qd=$k[--$j];var _Qe=$g(_Qd,0);var _Qf=$g(_Qd,1);if(_Qe<48||_Qe>57||(_Qf<48||_Qf>57)){$j--;$k[$j++]="bwipp.GS1badGCP#2583";$k[$j++]="Non-numeric company prefix";$k[$j++]=false;return true}};$_.lintimporteridx=function(){$X("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",$k[--$j]);if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badImporterIndex#2589";$k[$j++]="Invalid importer index";$k[$j++]=false;return true}$j-=3};$_.lintcsum=function(){$k[$j++]=Infinity;var _Qi=$k[--$j];var _Qj=$k[--$j];var _Qk=_Qj.length%2==0?3:1;$k[$j++]=_Qi;$k[$j++]=_Qk;$F(_Qj,function(){var _Ql=$k[--$j];var _Qm=$k[--$j];$k[$j++]=$f(_Ql-48)*_Qm;$k[$j++]=$f(4-_Qm)});$j--;var _Qn=$m()+1;$k[$j++]=0;for(var _Qo=0,_Qp=_Qn-1;_Qo<_Qp;_Qo++){var _Qq=$k[--$j];var _Qr=$k[--$j];$k[$j++]=$f(_Qr+_Qq)}var _Qs=$k[--$j];var _Qt=$k[--$j];$k[$j++]=_Qs;$k[$j++]=_Qt;$j--;if($k[--$j]%10!=0){$j--;$k[$j++]="bwipp.GS1badChecksum#2598";$k[$j++]="Bad checksum";$k[$j++]=false;return true}};$_.lintcsumalpha=function(){var _Qv=$k[--$j];$k[$j++]=_Qv;if(_Qv.length<2){$j-=2;$k[$j++]="bwipp.GS1alphaTooShort#2602";$k[$j++]="Alphanumeric string is too short to check";$k[$j++]=false;return true}var _Qw=$k[--$j];$k[$j++]=_Qw;$k[$j++]=_Qw.length-2;$k[$j++]=$G(_Qw,0,_Qw.length-2);$k[$j++]=Infinity;var _Qy=$k[--$j];var _Qz=$k[--$j];$k[$j++]=_Qy;$F(_Qz,function(){var _R0=$k[--$j];var _R2=$g($_.cset82,_R0)!==undefined;$k[$j++]=_R0;if(_R2){var _R5=$g($_.cset82,$k[--$j]);$k[$j++]=_R5}else{$k[$j++]=-1;return true}});var _R6=$k[--$j];$k[$j++]=_R6;if(_R6==-1){$l();$j-=3;$k[$j++]="bwipp.GS1UnknownCSET82Character#2608";$k[$j++]="Unknown CSET 82 character";$k[$j++]=false;return true}$as($a($m()));var _R9=$k[--$j];var _RA=$k[--$j];$k[$j++]=_R9;$k[$j++]=_RA;$j--;var _RB=$k[--$j];var _RC=$k[--$j];var _RE=$G($k[--$j],_RC,2);$k[$j++]=_RB;$k[$j++]=_RE;$k[$j++]=Infinity;var _RF=$k[--$j];var _RG=$k[--$j];$k[$j++]=_RF;$F(_RG,function(){var _RH=$k[--$j];var _RJ=$g($_.cset32,_RH)!==undefined;$k[$j++]=_RH;if(_RJ){var _RM=$g($_.cset32,$k[--$j]);$k[$j++]=_RM}else{$k[$j++]=-1;return true}});var _RN=$k[--$j];$k[$j++]=_RN;if(_RN==-1){$l();$j-=2;$k[$j++]="bwipp.GS1UnknownCSET32Character#2614";$k[$j++]="Unknown CSET 32 character";$k[$j++]=false;return true}$as($a($m()));var _RQ=$k[--$j];var _RR=$k[--$j];$k[$j++]=_RQ;$k[$j++]=_RR;$j--;var _RS=$k[--$j];var _RV=$k[--$j];var _RW=$a([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83]);var _RX=_RV.length;$k[$j++]=$f(($g(_RS,0)<<5)+$g(_RS,1));$k[$j++]=_RV;$k[$j++]=_RW;$k[$j++]=_RX;if(_RX>_RW.length){$j-=5;$k[$j++]="bwipp.GS1alphaTooLong#2619";$k[$j++]="Alphanumeric string is too long to check";$k[$j++]=false;return true}var _RY=$k[--$j];var _Ra=$G($k[--$j],0,_RY);for(var _Rb=0,_Rc=_Ra.length;_Rb<_Rc;_Rb++){var _Re=$k[--$j];$k[$j++]=$g(_Ra,_Rb);$k[$j++]=_Re}var _Rf=$k[--$j];$k[$j++]=0;$F(_Rf,function(){var _Rg=$k[--$j];var _Rh=$k[--$j];var _Ri=$k[--$j];$k[$j++]=$f(_Rh+_Ri*_Rg)});var _Rj=$k[--$j];if($k[--$j]!=_Rj%1021){$j--;$k[$j++]="bwipp.GS1badAlphaCheckCharacters#2622";$k[$j++]="Bad alphanumeric check characters";$k[$j++]=false;return true}};if(!bwipp_gs1process.__2646__){$_=Object.create($_);$k[$j++]=Infinity;var _Rl=$a(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);for(var _Rm=0,_Rn=_Rl.length;_Rm<_Rn;_Rm++){var _Ro=$g(_Rl,_Rm);$k[$j++]=_Ro;$k[$j++]=_Ro}$_.iso3166=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2646__=1;$_=Object.getPrototypeOf($_)}$_.lintiso3166=function(){var _Rt=$g($_.iso3166,$k[--$j])!==undefined;if(!_Rt){$j--;$k[$j++]="bwipp.GS1UnknownCountry#2649";$k[$j++]="Unknown country code";$k[$j++]=false;return true}};$_.lintiso3166999=function(){var _Ru=$k[--$j];$k[$j++]=_Ru;if($ne(_Ru,"999")){var _Rx=$g($_.iso3166,$k[--$j])!==undefined;if(!_Rx){$j--;$k[$j++]="bwipp.GS1UnknownCountryOr999#2654";$k[$j++]="Unknown country code or not 999";$k[$j++]=false;return true}}else{$j--}};$_.lintiso3166list=function(){var _Ry=$k[--$j];$k[$j++]=_Ry;if(_Ry.length%3!=0){$j-=2;$k[$j++]="bwipp.GS1BadCountryListLength#2662";$k[$j++]="Not a group of three-digit country codes";$k[$j++]=false;return true}var _Rz=$k[--$j];$k[$j++]=_Rz;$k[$j++]=true;for(var _S1=0,_S0=_Rz.length-1;_S1<=_S0;_S1+=3){var _S2=$k[--$j];var _S3=$k[--$j];var _S6=$g($_.iso3166,$G(_S3,_S1,3))!==undefined;$k[$j++]=_S3;$k[$j++]=_S2;if(!_S6){$j-=2;$k[$j++]=false;break}}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1UnknownCountry#2669";$k[$j++]="Unknown country code";$k[$j++]=false;return true}$j--};if(!bwipp_gs1process.__2700__){$_=Object.create($_);$k[$j++]=Infinity;var _S8=$a(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);for(var _S9=0,_SA=_S8.length;_S9<_SA;_S9++){var _SB=$g(_S8,_S9);$k[$j++]=_SB;$k[$j++]=_SB}$_.iso3166alpha2=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2700__=1;$_=Object.getPrototypeOf($_)}$_.lintiso3166alpha2=function(){var _SG=$g($_.iso3166alpha2,$k[--$j])!==undefined;if(!_SG){$j--;$k[$j++]="bwipp.GS1UnknownCountryAlpha#2703";$k[$j++]="Unknown country alpha code";$k[$j++]=false;return true}};if(!bwipp_gs1process.__2731__){$_=Object.create($_);$k[$j++]=Infinity;var _SH=$a(["008","012","032","036","044","048","050","051","052","060","064","068","072","084","090","096","104","108","116","124","132","136","144","152","156","170","174","188","191","192","203","208","214","222","230","232","238","242","262","270","292","320","324","328","332","340","344","348","352","356","360","364","368","376","388","392","398","400","404","408","410","414","417","418","422","426","430","434","446","454","458","462","480","484","496","498","504","512","516","524","532","533","548","554","558","566","578","586","590","598","600","604","608","634","643","646","654","682","690","694","702","704","706","710","728","748","752","756","760","764","776","780","784","788","800","807","818","826","834","840","858","860","882","886","901","925","927","928","929","930","931","932","933","934","936","938","940","941","943","944","946","947","948","949","950","951","952","953","955","956","957","958","959","960","961","962","963","964","965","967","968","969","970","971","972","973","975","976","977","978","979","980","981","984","985","986","990","994","997","999"]);for(var _SI=0,_SJ=_SH.length;_SI<_SJ;_SI++){var _SK=$g(_SH,_SI);$k[$j++]=_SK;$k[$j++]=_SK}$_.iso4217=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__2731__=1;$_=Object.getPrototypeOf($_)}$_.lintiso4217=function(){var _SP=$g($_.iso4217,$k[--$j])!==undefined;if(!_SP){$j--;$k[$j++]="bwipp.GS1UnknownCurrency#2734";$k[$j++]="Unknown currency code";$k[$j++]=false;return true}};$_.lintiban=function(){var _SQ=$k[--$j];$k[$j++]=_SQ;if(_SQ.length<=4){$j-=2;$k[$j++]="bwipp.GS1tooShort#2738";$k[$j++]="IBAN too short";$k[$j++]=false;return true}var _SR=$k[--$j];$k[$j++]=_SR;$k[$j++]=true;$F(_SR,function(){var _SS=$s(1);$p(_SS,0,$k[--$j]);$X("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_SS);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badIBANcharacter#2745";$k[$j++]="Invalid IBAN character";$k[$j++]=false;return true}var _SW=$k[--$j];$k[$j++]=_SW;$k[$j++]=_SW;$k[$j++]=Infinity;var _SX=$k[--$j];var _SY=$k[--$j];$k[$j++]=_SX;$k[$j++]=_SY;$k[$j++]=Infinity;var _SZ=$k[--$j];var _Sa=$k[--$j];$k[$j++]=_SZ;$F(_Sa);$r($m(),-4);$as($a($m()));var _Se=$k[--$j];var _Sf=$k[--$j];$k[$j++]=_Se;$k[$j++]=_Sf;$j--;$F($k[--$j],function(){var _Si=$f($k[--$j]-48);$k[$j++]=_Si;if(_Si>9){var _Sk=$f($k[--$j]-7);$k[$j++]=~~(_Sk/10);$k[$j++]=_Sk%10}});$as($a($m()));var _Sn=$k[--$j];var _So=$k[--$j];$k[$j++]=_Sn;$k[$j++]=_So;$j--;var _Sp=$k[--$j];$k[$j++]=0;$F(_Sp,function(){var _Sq=$k[--$j];var _Sr=$k[--$j];$k[$j++]=$f(_Sq+_Sr*10)%97});if($k[--$j]!=1){$j-=2;$k[$j++]="bwipp.GS1badIBANchecksum#2750";$k[$j++]="IBAN checksum incorrect";$k[$j++]=false;return true}var _Su=$G($k[--$j],0,2);$k[$j++]=_Su;$_.lintiso3166alpha2()};$_.lintzero=function(){if($ne($k[--$j],"0")){$j--;$k[$j++]="bwipp.GS1zeroRequired#2755";$k[$j++]="Zero is required";$k[$j++]=false;return true}};$_.lintnonzero=function(){var _Sw=$k[--$j];$k[$j++]=false;$F(_Sw,function(){if($k[--$j]!=48){$j--;$k[$j++]=true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1zeroNotPermitted#2760";$k[$j++]="Zero not permitted";$k[$j++]=false;return true}};$_.lintnozeroprefix=function(){var _Sz=$k[--$j];if(_Sz.length>1&&$g(_Sz,0)==48){$j--;$k[$j++]="bwipp.GS1badZeroPrefix#2765";$k[$j++]="Zero prefix is not permitted";$k[$j++]=false;return true}};$_.lintyymmd0=function(){var _T1=$k[--$j];var _T3=$i($G(_T1,2,2));$k[$j++]=_T1;if(_T3<1||_T3>12){$j--;$k[$j++]="bwipp.GS1badMonth#2770";$k[$j++]="Invalid month";$k[$j++]=false;return true}var _T4=$k[--$j];var _T6=$i($G(_T4,0,2));var _T7=_T6-21;$k[$j++]=_T4;$k[$j++]=_T6;$k[$j++]=_T7;if(_T7>=51){$j--;var _T8=$k[--$j];$k[$j++]=$f(_T8+1900)}else{if($k[--$j]<=-50){var _TA=$k[--$j];$k[$j++]=$f(_TA+2100)}else{var _TB=$k[--$j];$k[$j++]=$f(_TB+2e3)}}var _TC=$k[--$j];$k[$j++]=_TC%400==0||_TC%4==0&&_TC%100!=0;$k[$j++]=Infinity;var _TD=$k[--$j];var _TF=$k[--$j]?29:28;$k[$j++]=_TD;$k[$j++]=31;$k[$j++]=_TF;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _TG=$a();var _TH=$k[--$j];if($g(_TG,$i($G(_TH,2,2))-1)<$i($G(_TH,4,2))){$j--;$k[$j++]="bwipp.GS1badDay#2776";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}};$_.lintyymmdd=function(){var _TL=$k[--$j];$k[$j++]=_TL;if(_TL.length!=6){$j--;$k[$j++]="bwipp.GS1badDateLength#2780";$k[$j++]="Invalid length for date";$k[$j++]=false;return true}var _TM=$k[--$j];$k[$j++]=_TM;if($i($G(_TM,4,2))<1){$j--;$k[$j++]="bwipp.GS1badDay#2781";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}$_.lintyymmd0()};$_.lintyymmddhh=function(){var _TO=$k[--$j];$k[$j++]=_TO;if(_TO.length!=8){$j--;$k[$j++]="bwipp.GS1badYYMMDDHHLength#2786";$k[$j++]="Invalid length for date with hour";$k[$j++]=false;return true}var _TP=$k[--$j];$k[$j++]=_TP;if($i($G(_TP,6,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour#2787";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}var _TS=$G($k[--$j],0,6);$k[$j++]=_TS;$_.lintyymmdd()};$_.linthhmm=function(){var _TT=$k[--$j];$k[$j++]=_TT;if($i($G(_TT,0,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour#2792";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}if($i($G($k[--$j],2,2))>59){$j--;$k[$j++]="bwipp.GS1badMinute#2793";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}};$_.lintmmoptss=function(){var _TX=$k[--$j];var _TY=_TX.length;$k[$j++]=_TX;if(_TY!=2&&_TY!=4){$j--;$k[$j++]="bwipp.GS1badTimeLength#2798";$k[$j++]="Invalid length for optional minutes and seconds";$k[$j++]=false;return true}var _TZ=$k[--$j];$k[$j++]=_TZ;if($i($G(_TZ,0,2))>59){$j-=2;$k[$j++]="bwipp.GS1badMinute#2800";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}var _Tb=$k[--$j];$k[$j++]=_Tb;if(_Tb.length>=4){var _Tc=$k[--$j];$k[$j++]=_Tc;if($i($G(_Tc,2,2))>59){$j-=2;$k[$j++]="bwipp.GS1badSecond#2802";$k[$j++]="Invalid second in the minute";$k[$j++]=false;return true}}$j--};$_.lintyesno=function(){var _Te=$k[--$j];if($ne(_Te,"0")&&$ne(_Te,"1")){$j--;$k[$j++]="bwipp.GS1badBoolean#2809";$k[$j++]="Neither 0 nor 1 for yes or no";$k[$j++]=false;return true}};$_.lintwinding=function(){var _Tf=$k[--$j];if($ne(_Tf,"0")&&($ne(_Tf,"1")&&$ne(_Tf,"9"))){$j--;$k[$j++]="bwipp.GS1badWinding#2815";$k[$j++]="Invalid winding direction";$k[$j++]=false;return true}};$_.lintpieceoftotal=function(){var _Tg=$k[--$j];$k[$j++]=_Tg;if(_Tg.length%2!=0){$j-=2;$k[$j++]="bwipp.GS1badPieceTotalLength#2820";$k[$j++]="Invalid piece/total length";$k[$j++]=false;return true}var _Th=$k[--$j];var _Tj=$i($G(_Th,0,~~(_Th.length/2)));$k[$j++]=_Th;$k[$j++]=_Tj;if(_Tj==0){$j-=3;$k[$j++]="bwipp.GS1badPieceNumber#2822";$k[$j++]="Invalid piece number";$k[$j++]=false;return true}var _Tk=$k[--$j];var _Tl=$k[--$j];var _Tm=~~(_Tl.length/2);var _To=$i($G(_Tl,_Tm,_Tm));$k[$j++]=_Tk;$k[$j++]=_To;if(_To==0){$j-=3;$k[$j++]="bwipp.GS1badPieceTotal#2824";$k[$j++]="Invalid total number";$k[$j++]=false;return true}var _Tp=$k[--$j];if($gt($k[--$j],_Tp)){$j--;$k[$j++]="bwipp.GS1pieceExceedsTotal#2825";$k[$j++]="Piece number exceeds total";$k[$j++]=false;return true}};$_.lintpcenc=function(){for(;;){$X($k[--$j],"%");if($nt($k[--$j])){$j--;break}$j-=2;var _Tt=$k[--$j];$k[$j++]=_Tt;if(_Tt.length<2){$j-=2;$k[$j++]="bwipp.GS1badPercentEscape#2831";$k[$j++]="Invalid % escape";$k[$j++]=false;break}var _Tu=$k[--$j];var _Tv=$G(_Tu,0,2);$k[$j++]=_Tu;$k[$j++]=true;for(var _Tw=0,_Tx=_Tv.length;_Tw<_Tx;_Tw++){var _Tz=$s(1);$p(_Tz,0,$g(_Tv,_Tw));$X("0123456789ABCDEFabcdef",_Tz);if($nt($k[--$j])){$j-=2;$k[$j++]=false;break}$j-=3}if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badPercentChars#2838";$k[$j++]="Invalid characters for percent encoding";$k[$j++]=false;break}}};$_.lintcouponcode=function(){var _U2=$k[--$j];$k[$j++]=_U2;$k[$j++]=true;$F(_U2,function(){var _U3=$k[--$j];if(_U3<48||_U3>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric#2846";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _U5=$k[--$j];$k[$j++]=_U5;if(_U5.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortGCPVLI#2850";$k[$j++]="Coupon too short: Missing GCP VLI";$k[$j++]=false;return true}var _U6=$k[--$j];var _U8=$i($G(_U6,0,1));$k[$j++]=_U6;$k[$j++]=_U8;if(_U8>6){$j-=2;$k[$j++]="bwipp.GS1couponBadGCPVLI#2853";$k[$j++]="Coupon GCP length indicator must be 0-6";$k[$j++]=false;return true}var _U9=$k[--$j];var _UA=$k[--$j];$k[$j++]=_UA;$k[$j++]=$f($f(_U9+6)+1);if($f($f(_U9+6)+1)>_UA.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortGCP#2857";$k[$j++]="Coupon too short: GCP truncated";$k[$j++]=false;return true}var _UB=$k[--$j];var _UC=$k[--$j];var _UD=$G(_UC,_UB,$f(_UC.length-_UB));$k[$j++]=_UD;if(_UD.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode#2863";$k[$j++]="Coupon too short: Offer Code truncated";$k[$j++]=false;return true}var _UE=$k[--$j];var _UF=$G(_UE,6,_UE.length-6);$k[$j++]=_UF;if(_UF.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueVLI#2869";$k[$j++]="Coupon too short: Missing Save Value VLI";$k[$j++]=false;return true}var _UG=$k[--$j];var _UI=$i($G(_UG,0,1));$k[$j++]=_UG;$k[$j++]=_UI;if(_UI<1||_UI>5){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueVLI#2872";$k[$j++]="Coupon Save Value length indicator must be 1-5";$k[$j++]=false;return true}var _UJ=$k[--$j];var _UK=$k[--$j];$k[$j++]=_UK;$k[$j++]=$f(_UJ+1);if($f(_UJ+1)>_UK.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSaveValue#2876";$k[$j++]="Coupon too short: Save Value truncated";$k[$j++]=false;return true}var _UL=$k[--$j];var _UM=$k[--$j];var _UN=$G(_UM,_UL,$f(_UM.length-_UL));$k[$j++]=_UN;if(_UN.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2882";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement VLI";$k[$j++]=false;return true}var _UO=$k[--$j];var _UQ=$i($G(_UO,0,1));$k[$j++]=_UO;$k[$j++]=_UQ;if(_UQ<1||_UQ>5){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementVLI#2885";$k[$j++]="Coupon 1st Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _UR=$k[--$j];var _US=$k[--$j];$k[$j++]=_US;$k[$j++]=$f(_UR+1);if($f(_UR+1)>_US.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirement#2889";$k[$j++]="Coupon too short: 1st Purchase Requirement truncated";$k[$j++]=false;return true}var _UT=$k[--$j];var _UU=$k[--$j];var _UV=$G(_UU,_UT,$f(_UU.length-_UT));$k[$j++]=_UV;if(_UV.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementCode#2895";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement Code";$k[$j++]=false;return true}var _UW=$k[--$j];var _UY=$i($G(_UW,0,1));$k[$j++]=_UW;if(_UY>4&&_UY!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementCode#2898";$k[$j++]="Coupon 1st Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _UZ=$k[--$j];var _Ua=$G(_UZ,1,_UZ.length-1);$k[$j++]=_Ua;if(_Ua.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseFamilyCode#2904";$k[$j++]="Coupon too short: 1st Purchase Family Code truncated";$k[$j++]=false;return true}var _Ub=$k[--$j];var _Uc=$G(_Ub,3,_Ub.length-3);$k[$j++]=_Uc;if(_Uc.length>=1){var _Ud=$k[--$j];$k[$j++]=_Ud;if($i($G(_Ud,0,1))==1){var _Uf=$k[--$j];var _Ug=$G(_Uf,1,_Uf.length-1);$k[$j++]=_Ug;if(_Ug.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2914";$k[$j++]="Coupon too short: Missing Additional Purchase Rules Code";$k[$j++]=false;return true}var _Uh=$k[--$j];$k[$j++]=_Uh;if($i($G(_Uh,0,1))>3){$j-=2;$k[$j++]="bwipp.GS1couponBadAdditionalPurchaseRulesCode#2917";$k[$j++]="Coupon Additional Purchase Rules Code must be 0-3";$k[$j++]=false;return true}var _Uj=$k[--$j];var _Uk=$G(_Uj,1,_Uj.length-1);$k[$j++]=_Uk;if(_Uk.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2923";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement VLI";$k[$j++]=false;return true}var _Ul=$k[--$j];var _Un=$i($G(_Ul,0,1));$k[$j++]=_Ul;$k[$j++]=_Un;if(_Un<1||_Un>5){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementVLI#2926";$k[$j++]="Coupon 2nd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _Uo=$k[--$j];var _Up=$k[--$j];$k[$j++]=_Up;$k[$j++]=$f(_Uo+1);if($f(_Uo+1)>_Up.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirement#2930";$k[$j++]="Coupon too short: 2nd Purchase Requirement truncated";$k[$j++]=false;return true}var _Uq=$k[--$j];var _Ur=$k[--$j];var _Us=$G(_Ur,_Uq,$f(_Ur.length-_Uq));$k[$j++]=_Us;if(_Us.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2936";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement Code";$k[$j++]=false;return true}var _Ut=$k[--$j];var _Uv=$i($G(_Ut,0,1));$k[$j++]=_Ut;if(_Uv>4&&_Uv!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementCode#2939";$k[$j++]="Coupon 2nd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _Uw=$k[--$j];var _Ux=$G(_Uw,1,_Uw.length-1);$k[$j++]=_Ux;if(_Ux.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2945";$k[$j++]="Coupon too short: 2nd Purchase Family Code truncated";$k[$j++]=false;return true}var _Uy=$k[--$j];var _Uz=$G(_Uy,3,_Uy.length-3);$k[$j++]=_Uz;if(_Uz.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2951";$k[$j++]="Coupon too short: Missing 2nd Purchase GCP VLI";$k[$j++]=false;return true}var _V0=$k[--$j];var _V2=$i($G(_V0,0,1));$k[$j++]=_V0;$k[$j++]=_V2;if(_V2>6&&_V2!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseGCPVLI#2954";$k[$j++]="Coupon 2nd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _V3=$k[--$j];$k[$j++]=_V3;if(_V3!=9){var _V4=$k[--$j];$k[$j++]=$f(_V4+6)}else{$j--;$k[$j++]=0}var _V5=$k[--$j];var _V6=$k[--$j];$k[$j++]=_V6;$k[$j++]=$f(_V5+1);if($f(_V5+1)>_V6.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCP#2958";$k[$j++]="Coupon too short: 2nd Purchase GCP truncated";$k[$j++]=false;return true}var _V7=$k[--$j];var _V8=$k[--$j];$k[$j++]=$G(_V8,_V7,$f(_V8.length-_V7))}}var _VA=$k[--$j];$k[$j++]=_VA;if(_VA.length>=1){var _VB=$k[--$j];$k[$j++]=_VB;if($i($G(_VB,0,1))==2){var _VD=$k[--$j];var _VE=$G(_VD,1,_VD.length-1);$k[$j++]=_VE;if(_VE.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2970";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement VLI";$k[$j++]=false;return true}var _VF=$k[--$j];var _VH=$i($G(_VF,0,1));$k[$j++]=_VF;$k[$j++]=_VH;if(_VH<1||_VH>5){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementVLI#2973";$k[$j++]="Coupon 3rd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _VI=$k[--$j];var _VJ=$k[--$j];$k[$j++]=_VJ;$k[$j++]=$f(_VI+1);if($f(_VI+1)>_VJ.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirement#2977";$k[$j++]="Coupon too short: 3rd Purchase Requirement truncated";$k[$j++]=false;return true}var _VK=$k[--$j];var _VL=$k[--$j];var _VM=$G(_VL,_VK,$f(_VL.length-_VK));$k[$j++]=_VM;if(_VM.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2983";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement Code";$k[$j++]=false;return true}var _VN=$k[--$j];var _VP=$i($G(_VN,0,1));$k[$j++]=_VN;if(_VP>4&&_VP!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementCode#2986";$k[$j++]="Coupon 3rd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _VQ=$k[--$j];var _VR=$G(_VQ,1,_VQ.length-1);$k[$j++]=_VR;if(_VR.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2992";$k[$j++]="Coupon too short: 3rd Purchase Family Code truncated";$k[$j++]=false;return true}var _VS=$k[--$j];var _VT=$G(_VS,3,_VS.length-3);$k[$j++]=_VT;if(_VT.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2998";$k[$j++]="Coupon too short: Missing 3rd Purchase GCP VLI";$k[$j++]=false;return true}var _VU=$k[--$j];var _VW=$i($G(_VU,0,1));$k[$j++]=_VU;$k[$j++]=_VW;if(_VW>6&&_VW!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseGCPVLI#3001";$k[$j++]="Coupon 3rd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _VX=$k[--$j];$k[$j++]=_VX;if(_VX!=9){var _VY=$k[--$j];$k[$j++]=$f(_VY+6)}else{$j--;$k[$j++]=0}var _VZ=$k[--$j];var _Va=$k[--$j];$k[$j++]=_Va;$k[$j++]=$f(_VZ+1);if($f(_VZ+1)>_Va.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCP#3005";$k[$j++]="Coupon too short: 3rd Purchase GCP truncated";$k[$j++]=false;return true}var _Vb=$k[--$j];var _Vc=$k[--$j];$k[$j++]=$G(_Vc,_Vb,$f(_Vc.length-_Vb))}}$_.couponexpire=-1;var _Ve=$k[--$j];$k[$j++]=_Ve;if(_Ve.length>=1){var _Vf=$k[--$j];$k[$j++]=_Vf;if($i($G(_Vf,0,1))==3){var _Vh=$k[--$j];var _Vi=$G(_Vh,1,_Vh.length-1);$k[$j++]=_Vi;if(_Vi.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortExpirationDate#3018";$k[$j++]="Coupon too short: Expiration date";$k[$j++]=false;return true}var _Vj=$k[--$j];var _Vl=$i($G(_Vj,2,2));$k[$j++]=_Vj;if(_Vl<1||_Vl>12){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadMonth#3020";$k[$j++]="Invalid month in expiration date";$k[$j++]=false;return true}var _Vm=$k[--$j];var _Vo=$i($G(_Vm,0,2));var _Vp=_Vo-21;$k[$j++]=_Vm;$k[$j++]=_Vo;$k[$j++]=_Vp;if(_Vp>=51){$j--;var _Vq=$k[--$j];$k[$j++]=$f(_Vq+1900)}else{if($k[--$j]<=-50){var _Vs=$k[--$j];$k[$j++]=$f(_Vs+2100)}else{var _Vt=$k[--$j];$k[$j++]=$f(_Vt+2e3)}}var _Vu=$k[--$j];$k[$j++]=_Vu%400==0||_Vu%4==0&&_Vu%100!=0;$k[$j++]=Infinity;var _Vv=$k[--$j];var _Vx=$k[--$j]?29:28;$k[$j++]=_Vv;$k[$j++]=31;$k[$j++]=_Vx;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _Vy=$a();var _Vz=$k[--$j];var _W3=$i($G(_Vz,4,2));$k[$j++]=_Vz;if($g(_Vy,$i($G(_Vz,2,2))-1)<_W3||_W3<1){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadDay#3027";$k[$j++]="Invalid day of month in expiration date";$k[$j++]=false;return true}var _W4=$k[--$j];$_.couponexpire=$i($G(_W4,0,6));$k[$j++]=$G(_W4,6,_W4.length-6)}}var _W7=$k[--$j];$k[$j++]=_W7;if(_W7.length>=1){var _W8=$k[--$j];$k[$j++]=_W8;if($i($G(_W8,0,1))==4){var _WA=$k[--$j];var _WB=$G(_WA,1,_WA.length-1);$k[$j++]=_WB;if(_WB.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStartDate#3039";$k[$j++]="Coupon too short: Start date";$k[$j++]=false;return true}var _WC=$k[--$j];var _WE=$i($G(_WC,2,2));$k[$j++]=_WC;if(_WE<1||_WE>12){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadMonth#3041";$k[$j++]="Invalid month in start date";$k[$j++]=false;return true}var _WF=$k[--$j];var _WH=$i($G(_WF,0,2));var _WI=_WH-21;$k[$j++]=_WF;$k[$j++]=_WH;$k[$j++]=_WI;if(_WI>=51){$j--;var _WJ=$k[--$j];$k[$j++]=$f(_WJ+1900)}else{if($k[--$j]<=-50){var _WL=$k[--$j];$k[$j++]=$f(_WL+2100)}else{var _WM=$k[--$j];$k[$j++]=$f(_WM+2e3)}}var _WN=$k[--$j];$k[$j++]=_WN%400==0||_WN%4==0&&_WN%100!=0;$k[$j++]=Infinity;var _WO=$k[--$j];var _WQ=$k[--$j]?29:28;$k[$j++]=_WO;$k[$j++]=31;$k[$j++]=_WQ;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _WR=$a();var _WS=$k[--$j];var _WW=$i($G(_WS,4,2));$k[$j++]=_WS;if($g(_WR,$i($G(_WS,2,2))-1)<_WW||_WW<1){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadDay#3048";$k[$j++]="Invalid day of month in start date";$k[$j++]=false;return true}var _WX=$k[--$j];$_.couponstart=$i($G(_WX,0,6));$k[$j++]=_WX;if($_.couponexpire!=-1&&$_.couponexpire<$_.couponstart){$j-=2;$k[$j++]="bwipp.GS1couponExpireDateBeforeStartDate#3051";$k[$j++]="Coupon expires before it starts";$k[$j++]=false;return true}var _Wc=$k[--$j];$k[$j++]=$G(_Wc,6,_Wc.length-6)}}var _We=$k[--$j];$k[$j++]=_We;if(_We.length>=1){var _Wf=$k[--$j];$k[$j++]=_Wf;if($i($G(_Wf,0,1))==5){var _Wh=$k[--$j];var _Wi=$G(_Wh,1,_Wh.length-1);$k[$j++]=_Wi;if(_Wi.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSerialNumberVLI#3063";$k[$j++]="Coupon too short: Missing Serial Number VLI";$k[$j++]=false;return true}var _Wj=$k[--$j];var _Wk=$G(_Wj,0,1);$k[$j++]=_Wj;$k[$j++]=$i(_Wk)+6+1;if($i(_Wk)+6+1>_Wj.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSerialNumber#3067";$k[$j++]="Coupon too short: Serial Number truncated";$k[$j++]=false;return true}var _Wl=$k[--$j];var _Wm=$k[--$j];$k[$j++]=$G(_Wm,_Wl,$f(_Wm.length-_Wl))}}var _Wo=$k[--$j];$k[$j++]=_Wo;if(_Wo.length>=1){var _Wp=$k[--$j];$k[$j++]=_Wp;if($i($G(_Wp,0,1))==6){var _Wr=$k[--$j];var _Ws=$G(_Wr,1,_Wr.length-1);$k[$j++]=_Ws;if(_Ws.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLNVLI#3079";$k[$j++]="Coupon too short: Missing Retailer GCP/GLN VLI";$k[$j++]=false;return true}var _Wt=$k[--$j];var _Wv=$i($G(_Wt,0,1));$k[$j++]=_Wt;$k[$j++]=_Wv;if(_Wv<1||_Wv>7){$j-=2;$k[$j++]="bwipp.GS1couponBadRetailerGCPGLNVLI#3082";$k[$j++]="Coupon Retailer GCP/GLN length indicator must be 1-7";$k[$j++]=false;return true}var _Ww=$k[--$j];var _Wx=$k[--$j];$k[$j++]=_Wx;$k[$j++]=$f($f(_Ww+6)+1);if($f($f(_Ww+6)+1)>_Wx.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLN#3086";$k[$j++]="Coupon too short: Retailer GCP/GLN truncated";$k[$j++]=false;return true}var _Wy=$k[--$j];var _Wz=$k[--$j];$k[$j++]=$G(_Wz,_Wy,$f(_Wz.length-_Wy))}}var _X1=$k[--$j];$k[$j++]=_X1;if(_X1.length>=1){var _X2=$k[--$j];$k[$j++]=_X2;if($i($G(_X2,0,1))==9){var _X4=$k[--$j];var _X5=$G(_X4,1,_X4.length-1);$k[$j++]=_X5;if(_X5.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueCode#3098";$k[$j++]="Coupon too short: Missing Save Value Code";$k[$j++]=false;return true}var _X6=$k[--$j];var _X8=$i($G(_X6,0,1));$k[$j++]=_X6;if(_X8>6||(_X8==3||_X8==4)){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueCode#3101";$k[$j++]="Coupon Save Value Code must be 0,1,2,5 or 6";$k[$j++]=false;return true}var _X9=$k[--$j];var _XA=$G(_X9,1,_X9.length-1);$k[$j++]=_XA;if(_XA.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueAppliesToItem#3107";$k[$j++]="Coupon too short: Missing Save Value Applies to Item";$k[$j++]=false;return true}var _XB=$k[--$j];$k[$j++]=_XB;if($i($G(_XB,0,1))>2){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueAppliesToItem#3110";$k[$j++]="Coupon Save Value Applies to Item must be 0-2";$k[$j++]=false;return true}var _XD=$k[--$j];var _XE=$G(_XD,1,_XD.length-1);$k[$j++]=_XE;if(_XE.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStoreCouponFlag#3116";$k[$j++]="Coupon too short: Missing Store Coupon Flag";$k[$j++]=false;return true}var _XF=$k[--$j];var _XG=$G(_XF,1,_XF.length-1);$k[$j++]=_XG;if(_XG.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortDontMultiplyFlag#3122";$k[$j++]="Coupon too short: Missing Don't Multiply Flag";$k[$j++]=false;return true}var _XH=$k[--$j];$k[$j++]=_XH;if($i($G(_XH,0,1))>1){$j-=2;$k[$j++]="bwipp.GS1couponBadDontMultiplyFlag#3125";$k[$j++]="Don't Multiply Flag must be 0 or 1";$k[$j++]=false;return true}var _XJ=$k[--$j];$k[$j++]=$G(_XJ,1,_XJ.length-1)}}var _XL=$k[--$j];$k[$j++]=_XL;if(_XL.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponUnrecognisedOptionalField#3132";$k[$j++]="Coupon fields must be 1,2,3,4,5,6 or 9, increasing order";$k[$j++]=false;return true}$j--};$_.lintcouponposoffer=function(){var _XM=$k[--$j];$k[$j++]=_XM;$k[$j++]=true;$F(_XM,function(){var _XN=$k[--$j];if(_XN<48||_XN>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric#3141";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _XP=$k[--$j];$k[$j++]=_XP;if(_XP.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFormatCode#3144";$k[$j++]="Coupon too short: Missing Format Code";$k[$j++]=false;return true}var _XQ=$k[--$j];var _XR=$G(_XQ,0,1);$k[$j++]=_XQ;if($ne(_XR,"0")&&$ne(_XR,"1")){$j-=2;$k[$j++]="bwipp.GS1couponBadFormatCode#3147";$k[$j++]="Coupon format must be 0 or 1";$k[$j++]=false;return true}var _XS=$k[--$j];var _XT=$G(_XS,1,_XS.length-1);$k[$j++]=_XT;if(_XT.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFunderVLI#3152";$k[$j++]="Coupon too short: Missing Funder VLI";$k[$j++]=false;return true}var _XU=$k[--$j];var _XW=$i($G(_XU,0,1));$k[$j++]=_XU;$k[$j++]=_XW;if(_XW>6){$j-=3;$k[$j++]="bwipp.GS1couponBadFunderVLI#3155";$k[$j++]="Coupon Funder length indicator must be 0-6";$k[$j++]=false;return true}var _XX=$k[--$j];var _XY=$k[--$j];$k[$j++]=_XY;$k[$j++]=$f($f(_XX+6)+1);if($f($f(_XX+6)+1)>_XY.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortFunder#3159";$k[$j++]="Coupon too short: Truncated Funder ID";$k[$j++]=false;return true}var _XZ=$k[--$j];var _Xa=$k[--$j];var _Xb=$G(_Xa,_XZ,$f(_Xa.length-_XZ));$k[$j++]=_Xb;if(_Xb.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode#3164";$k[$j++]="Coupon too short: Truncated Offer Code";$k[$j++]=false;return true}var _Xc=$k[--$j];var _Xd=$G(_Xc,6,_Xc.length-6);$k[$j++]=_Xd;if(_Xd.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSnVLI#3169";$k[$j++]="Coupon too short: Missing SN VLI";$k[$j++]=false;return true}var _Xe=$k[--$j];var _Xf=$G(_Xe,0,1);$k[$j++]=_Xe;$k[$j++]=$i(_Xf)+6+1;if($i(_Xf)+6+1>_Xe.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSn#3174";$k[$j++]="Coupon too short: Truncated SN";$k[$j++]=false;return true}var _Xg=$k[--$j];var _Xh=$k[--$j];var _Xi=$G(_Xh,_Xg,$f(_Xh.length-_Xg));$k[$j++]=_Xi;if(_Xi.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponTooLong#3178";$k[$j++]="Coupon too long";$k[$j++]=false;return true}$j--};$_.lintlatitude=function(){var _Xj=$k[--$j];$k[$j++]=_Xj;if(_Xj.length!=10){$j--;$k[$j++]="bwipp.GS1badLatitudeLength#3185";$k[$j++]="Invalid length for a latitude";$k[$j++]=false;return true}if($i($k[--$j])>$i("1800000000")){$j--;$k[$j++]="bwipp.GS1badLatitude#3189";$k[$j++]="Invalid value for latitude";$k[$j++]=false;return true}};$_.lintlongitude=function(){var _Xl=$k[--$j];$k[$j++]=_Xl;if(_Xl.length!=10){$j--;$k[$j++]="bwipp.GS1badLongitudeLength#3194";$k[$j++]="Invalid length for a longitude";$k[$j++]=false;return true}if($i($k[--$j])>$i("3600000000")){$j--;$k[$j++]="bwipp.GS1badLongitude#3199";$k[$j++]="Invalid value for longitude";$k[$j++]=false;return true}};if(!bwipp_gs1process.__3208__){$_=Object.create($_);$k[$j++]=Infinity;var _Xn=$a(["01","02","03","04","05","06","07","08","09","10","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99"]);for(var _Xo=0,_Xp=_Xn.length;_Xo<_Xp;_Xo++){var _Xq=$g(_Xn,_Xo);$k[$j++]=_Xq;$k[$j++]=_Xq}$_.aidcmediatype=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1process.$ctx[id]=$_[id]);bwipp_gs1process.__3208__=1;$_=Object.getPrototypeOf($_)}$_.lintmediatype=function(){var _Xv=$g($_.aidcmediatype,$k[--$j])!==undefined;if(!_Xv){$j--;$k[$j++]="bwipp.GS1UnknownMediaType#3211";$k[$j++]="Unknown AIDC media type";$k[$j++]=false;return true}};if(!$_.dontlint){$k[$j++]=true;for(var _Xz=0,_Xy=$_.vals.length-1;_Xz<=_Xy;_Xz+=1){$_.ai=$g($_.ais,_Xz);$_.val=$g($_.vals,_Xz);var _Y6=$g($_.gs1syntax,$_.ai)!==undefined;if(_Y6){var _YA=$g($g($_.gs1syntax,$_.ai),"parts");$k[$j++]=_YA;$k[$j++]=0;$F(_YA,function(){var _YB=$k[--$j];$k[$j++]=_YB;if($g(_YB,"opt")){$j--;$k[$j++]=0}else{var _YE=$g($k[--$j],"min");$k[$j++]=_YE}var _YF=$k[--$j];var _YG=$k[--$j];$k[$j++]=$f(_YG+_YF)});if($k[--$j]>$_.val.length){$j--;$k[$j++]="bwipp.GS1valueTooShort#3225";$k[$j++]="Too short";$k[$j++]=false;break}var _YJ=$k[--$j];$k[$j++]=_YJ;$k[$j++]=0;$F(_YJ,function(){var _YL=$g($k[--$j],"max");var _YM=$k[--$j];$k[$j++]=$f(_YM+_YL)});if($k[--$j]<$_.val.length){$j--;$k[$j++]="bwipp.GS1valueTooLong#3228";$k[$j++]="Too long";$k[$j++]=false;break}$F($k[--$j],function(){$_.props=$k[--$j];var _YS=$g($_.props,"max");var _YT=$_.val;var _YU=_YT.length;if(_YS>_YT.length){var _=_YU;_YU=_YS;_YS=_}$_.eval=$G($_.val,0,_YS);var _YZ=$_.eval.length;$_.val=$G($_.val,_YZ,$_.val.length-_YZ);if($_.eval.length==0){if($nt($g($_.props,"opt"))){$j--;$k[$j++]="bwipp.GS1valueTooShort#3237";$k[$j++]="Too short";$k[$j++]=false;return true}}else{if($_.eval.length<$g($_.props,"min")){$j--;$k[$j++]="bwipp.GS1valueTooShort#3241";$k[$j++]="Too short";$k[$j++]=false;return true}var _Yi=new Map([["N","lintnumeric"],["X","lintcset82"],["Y","lintcset39"],["Z","lintcset64"]]);$k[$j++]=$_.eval;if($_[$g(_Yi,$g($_.props,"cset"))]()===true){return true}$F($g($_.props,"linters"),function(){var _Ys=$_[$k[--$j]];$k[$j++]=$_.eval;if(_Ys()===true){return true}})}});var _Yt=$k[--$j];$k[$j++]=_Yt;if($nt(_Yt)){break}if($_.val.length!=0){$j--;$k[$j++]="bwipp.GS1valueTooLong#3250";$k[$j++]="Too long";$k[$j++]=false;break}}else{$j--;$k[$j++]="bwipp.GS1unknownAI#3253";$k[$j++]="Unrecognised AI";$k[$j++]=false;break}}if($nt($k[--$j])){var _Yw=$k[--$j];var _Yy=$s(_Yw.length+$_.ai.length+5);$P(_Yy,0,"AI ");$P(_Yy,3,$_.ai);$P(_Yy,3+$_.ai.length,": ");$P(_Yy,5+$_.ai.length,_Yw);$k[$j++]=_Yy;bwipp_raiseerror()}$_.aiexists=function(){$_.this=$k[--$j];$_.patt=$k[--$j];for(var _Z4=0,_Z5=1;_Z4<_Z5;_Z4++){var _Z8=$g($_.aivals,$_.patt)!==undefined;if(_Z8){$k[$j++]=true;break}if($_.patt.length==4){if($eq($G($_.patt,3,1),"n")){var _ZE=$eq($G($_.patt,2,1),"n")?2:3;$_.pfxlen=_ZE;var _ZF=$_.ais;$k[$j++]=false;for(var _ZG=0,_ZH=_ZF.length;_ZG<_ZH;_ZG++){var _ZI=$g(_ZF,_ZG);$k[$j++]=_ZI;if($ne(_ZI,$_.this)&&_ZI.length==4){if($eq($G($k[--$j],0,$_.pfxlen),$G($_.patt,0,$_.pfxlen))){$j--;$k[$j++]=true}}else{$j--}}break}$k[$j++]=false;break}$k[$j++]=false;break}};var _ZQ=$_.vals;$_.aivals=new Map;for(var _ZT=0,_ZS=$_.vals.length-1;_ZT<=_ZS;_ZT+=1){$_.ai=$g($_.ais,_ZT);$_.val=$g($_.vals,_ZT);var _Za=$g($_.aivals,$_.ai)!==undefined;if(_Za){if($ne($g($_.aivals,$_.ai),$_.val)){var _Zg=$s($_.ai.length+40);$P(_Zg,0,"Repeated AIs (");$P(_Zg,14,$_.ai);$P(_Zg,14+$_.ai.length,") must have the same value");$k[$j++]="bwipp.GS1repeatedDifferingAIs#3303";$k[$j++]=_Zg;bwipp_raiseerror()}}else{$p($_.aivals,$_.ai,$_.val)}}for(var _Zo=0,_Zn=$_.vals.length-1;_Zo<=_Zn;_Zo+=1){$_.ai=$g($_.ais,_Zo);var _Zt=$g($_.gs1syntax,$_.ai);var _Zu=$g(_Zt,"ex")!==undefined;$k[$j++]=_Zt;$k[$j++]="ex";if(_Zu){var _Zv=$k[--$j];$F($g($k[--$j],_Zv),function(){$_.patt=$k[--$j];$k[$j++]=$_.patt;$k[$j++]=$_.ai;$_.aiexists();if($k[--$j]){var _a4=$s($_.ai.length+$_.patt.length+36);$P(_a4,0,"AIs (");$P(_a4,5,$_.ai);$P(_a4,5+$_.ai.length,") and (");$P(_a4,12+$_.ai.length,$_.patt);$P(_a4,12+$_.ai.length+$_.patt.length,") are mutually exclusive");$k[$j++]="bwipp.GS1exclusiveAIs#3323";$k[$j++]=_a4;bwipp_raiseerror()}})}else{$j-=2}if($_.lintreqs){var _aE=$g($_.gs1syntax,$_.ai);var _aF=$g(_aE,"req")!==undefined;$k[$j++]=_aE;$k[$j++]="req";if(_aF){var _aG=$k[--$j];$F($g($k[--$j],_aG),function(){var _aJ=$k[--$j];$k[$j++]=false;$F(_aJ,function(){var _aK=$k[--$j];$k[$j++]=true;$F(_aK,function(){$k[$j++]=$_.ai;$_.aiexists();if($nt($k[--$j])){$j--;$k[$j++]=false}});if($k[--$j]){$j--;$k[$j++]=true;return true}});if($nt($k[--$j])){var _aQ=$s($_.ai.length+47);$P(_aQ,0,"One of more requisite AIs for AI (");$P(_aQ,34,$_.ai);$P(_aQ,34+$_.ai.length,") are missing");$k[$j++]="bwipp.GS1missingAIs#3343";$k[$j++]=_aQ;bwipp_raiseerror()}})}else{$j-=2}}}}$k[$j++]=$_.ais;$k[$j++]=$_.vals;$k[$j++]=$_.fncs;$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_renmatrix(){if($_.bwipjs_dontdraw){return}$_=Object.create($_);$_.width=1;$_.height=1;$_.bordercolor="unset";$_.barcolor="unset";$_.backgroundcolor="unset";$_.colormap="unset";$_.dotty=false;$_.inkspread=null;$_.inkspreadh=null;$_.inkspreadv=null;$_.includetext=false;$_.txt=$a([]);$_.textcolor="unset";$_.textxalign="unset";$_.textyalign="unset";$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=0;$_.textgaps=0;$_.alttext="";$_.showborder=false;$_.borderleft=0;$_.borderright=0;$_.bordertop=0;$_.borderbottom=0;$_.borderwidth=.25;$F($k[--$j],function(){var _3=$k[--$j];$_[$k[--$j]]=_3});$k[$j++]=$_.opt;delete $_["opt"];$k[$j++]=$_;bwipp_processoptions();$j--;if($eq($_.inkspread,null)){$_.inkspread=0}if($eq($_.inkspreadh,null)){$_.inkspreadh=$_.inkspread}if($eq($_.inkspreadv,null)){$_.inkspreadv=$_.inkspread}if($_.textsize<=0){$k[$j++]="bwipp.renmatrixBadTextsize#3674";$k[$j++]="The font size must be greater than zero";bwipp_raiseerror()}$_.xyget=function(){var _D=$k[--$j];var _G=$g($_.pixs,$f($k[--$j]+_D*$_.pixx));$k[$j++]=_G};$_.cget=function(){var _I=$k[--$j];var _L=$g($_.cache,$f($k[--$j]+_I*$_.pixx));var _M=$k[--$j];$k[$j++]=$an(_M,_L)};$_.cput=function(){var _N=$k[--$j];$k[$j++]=_N;if(_N%4==0){var _O=$k[--$j];var _P=$k[--$j];var _Q=$k[--$j];var _R=$_.pixx;var _S=$_.cache;$p(_S,$f(_Q+_P*_R),$or($g(_S,$f(_Q+_P*_R)),_O))}else{$j-=3}};$_.abcd=function(){$k[$j++]=$s(4);$k[$j++]=0;$k[$j++]=Infinity;var _V=$k[--$j];var _W=$k[--$j];var _X=$k[--$j];var _Y=$k[--$j];var _b=$f($k[--$j]+_Y*$_.pixx);$k[$j++]=_X;$k[$j++]=_W;$k[$j++]=_V;$k[$j++]=_b;$q($G($_.pixs,_b,2));var _e=$k[--$j];var _f=$k[--$j];var _j=$G($_.pixs,$f($k[--$j]+$_.pixx),2);$k[$j++]=_f;$k[$j++]=_e;$q(_j);var _k=$a();for(var _l=0,_m=_k.length;_l<_m;_l++){var _o=$k[--$j];var _p=$k[--$j];$p(_p,_o,$f($g(_k,_l)+48));$k[$j++]=_p;$k[$j++]=$f(_o+1)}$j--};$_.right=function(){if($_.dir!=1){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.x=$_.x+1;$_.dir=1};$_.down=function(){if($_.dir!=2){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.y=$_.y+1;$_.dir=2};$_.left=function(){if($_.dir!=4){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.x=$_.x-1;$_.dir=4};$_.up=function(){if($_.dir!=8){$k[$j++]=$_.x;$k[$j++]=$_.y;$k[$j++]=$_.dir;$_.cput();$k[$j++]=$a([$_.x,$_.y])}$_.y=$_.y-1;$_.dir=8};$_.trace=function(){$_.y=$k[--$j];$_.x=$k[--$j];$k[$j++]="dir";$k[$j++]=$f($_.x+1);$k[$j++]=$f($_.y+1);$_.xyget();var _1R=$k[--$j]==1?8:4;$_[$k[--$j]]=_1R;$_.sx=$_.x;$_.sy=$_.y;$_.sdir=$_.dir;$k[$j++]=Infinity;for(;;){$k[$j++]=$_.x;$k[$j++]=$_.y;$_.abcd();for(var _1Y=0,_1Z=1;_1Y<_1Z;_1Y++){var _1a=$k[--$j];$k[$j++]=_1a;if($eq(_1a,"0001")||($eq(_1a,"0011")||$eq(_1a,"1011"))){$j--;$_.right();break}var _1b=$k[--$j];$k[$j++]=_1b;if($eq(_1b,"0010")||($eq(_1b,"1010")||$eq(_1b,"1110"))){$j--;$_.down();break}var _1c=$k[--$j];$k[$j++]=_1c;if($eq(_1c,"1000")||($eq(_1c,"1100")||$eq(_1c,"1101"))){$j--;$_.left();break}var _1d=$k[--$j];$k[$j++]=_1d;if($eq(_1d,"0100")||($eq(_1d,"0101")||$eq(_1d,"0111"))){$j--;$_.up();break}var _1e=$k[--$j];$k[$j++]=_1e;if($eq(_1e,"1001")){if($_.dir==2){$j--;$_.left();break}else{$j--;$_.right();break}}else{if($_.dir==1){$j--;$_.down();break}else{$j--;$_.up();break}}}if($eq($_.x,$_.sx)&&$eq($_.y,$_.sy)&&$_.dir==$_.sdir){break}}$as($a($m()));var _1p=$k[--$j];var _1q=$k[--$j];$k[$j++]=_1p;$k[$j++]=_1q;$j--};$_.drawlayer=function(){$_.pixsorig=$_.pixs;$_.pixs=$k[--$j];$k[$j++]=Infinity;for(var _1u=0,_1v=$_.pixx+2;_1u<_1v;_1u++){$k[$j++]=0}for(var _1z=0,_20=$_.pixx,_1y=$_.pixs.length-1;_20<0?_1z>=_1y:_1z<=_1y;_1z+=_20){$k[$j++]=0;$q($G($_.pixs,_1z,$_.pixx));$k[$j++]=0}for(var _25=0,_26=$_.pixx+2;_25<_26;_25++){$k[$j++]=0}$_.pixs=$a();$_.pixx=$_.pixx+2;$_.pixy=$_.pixy+2;$k[$j++]=Infinity;for(var _2B=0,_2C=$_.pixs.length;_2B<_2C;_2B++){$k[$j++]=0}$_.cache=$a();$k[$j++]=Infinity;for(var _2G=0,_2F=$_.pixy-2;_2G<=_2F;_2G+=1){$_.j=_2G;for(var _2J=0,_2I=$_.pixx-2;_2J<=_2I;_2J+=1){$_.i=_2J;$k[$j++]="k";$k[$j++]=$_.i;$k[$j++]=$_.j;$_.abcd();var _2M=$k[--$j];$_[$k[--$j]]=_2M;if($eq($_.k,"0001")||$eq($_.k,"1001")){$k[$j++]=8;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.cget();if($k[--$j]==0){$k[$j++]=$_.i;$k[$j++]=$_.j;$_.trace()}}if($eq($_.k,"1110")){$k[$j++]=4;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.cget();if($k[--$j]==0){$k[$j++]=$_.i;$k[$j++]=$_.j;$_.trace()}}}}$_.paths=$a();$_.pixx=$_.pixx-2;$_.pixy=$_.pixy-2;$$.newpath();var _2e=$_.paths;for(var _2f=0,_2g=_2e.length;_2f<_2g;_2f++){$_.p=$g(_2e,_2f);$_.len=$_.p.length;$q($g($_.p,$_.len-1));$q($g($_.p,0));for(var _2q=0,_2p=$_.len-1;_2q<=_2p;_2q+=1){$_.i=_2q;$q($g($_.p,($_.i+1)%$_.len));var _2v=$k[--$j];var _2w=$k[--$j];var _2x=$k[--$j];var _2y=$k[--$j];var _2z=$k[--$j];var _30=$k[--$j];$k[$j++]=_2y;$k[$j++]=_2x;$k[$j++]=_2w;$k[$j++]=_2v;$k[$j++]=_30;$k[$j++]=_2y;$k[$j++]=$_.inkspreadh;if($lt(_2v,_2z)){var _32=$k[--$j];var _33=$k[--$j];$k[$j++]=$f(_33+_32)}else{var _34=$k[--$j];var _35=$k[--$j];$k[$j++]=$f(_35-_34)}var _36=$k[--$j];var _37=$k[--$j];var _38=$k[--$j];var _39=$k[--$j];var _3A=$k[--$j];$k[$j++]=_3A;$k[$j++]=_36;$k[$j++]=_39;$k[$j++]=_38;$k[$j++]=_3A;$k[$j++]=$_.inkspreadv;if($gt(_39,_37)){var _3C=$k[--$j];var _3D=$k[--$j];$k[$j++]=$f(_3D+_3C)}else{var _3E=$k[--$j];var _3F=$k[--$j];$k[$j++]=$f(_3F-_3E)}var _3G=$k[--$j];var _3H=$k[--$j];var _3I=$k[--$j];var _3J=$k[--$j];$k[$j++]=_3I;$k[$j++]=_3H;$k[$j++]=_3J;$k[$j++]=$f($_.pixy-_3G);if($_.i==0){var _3M=$k[--$j];$$.moveto($k[--$j],_3M)}else{var _3O=$k[--$j];$$.lineto($k[--$j],_3O)}}$$.closepath();$j-=4}$$.fill();$_.pixs=$_.pixsorig};$_.drawlayerdots=function(){$_.pixsorig=$_.pixs;$_.pixs=$k[--$j];$$.newpath();for(var _3V=0,_3U=$_.pixs.length-1;_3V<=_3U;_3V+=1){$_.x=_3V%$_.pixx;$_.y=~~(_3V/$_.pixx);$k[$j++]=$_.x;$k[$j++]=$_.y;$_.xyget();if($k[--$j]==1){$$.moveto($f($_.x+.5),$f($_.pixy-$_.y-.5));$$.arc($f($_.x+.5),$f($_.pixy-$_.y-.5),$f(.5-$_.inkspread),0,360,1)}}$$.fill();$_.pixs=$_.pixsorig};$$.save();var _3j=$$.currpos();$$.translate(_3j.x,_3j.y);$_.inkspread=$_.inkspread/2;$_.inkspreadh=$_.inkspreadh/2;$_.inkspreadv=$_.inkspreadv/2;$$.scale($_.width/$_.pixx*72,$_.height/$_.pixy*72);$_.tl=$a([-$f($_.borderleft+$_.borderwidth/2),$f($_.pixy+$_.bordertop+$_.borderwidth/2)]);$_.tr=$a([$f($_.pixx+$_.borderright+$_.borderwidth/2),$f($_.pixy+$_.bordertop+$_.borderwidth/2)]);$_.bl=$a([-$f($_.borderleft+$_.borderwidth/2),-$f($_.borderbottom+$_.borderwidth/2)]);$_.br=$a([$f($_.pixx+$_.borderright+$_.borderwidth/2),-$f($_.borderbottom+$_.borderwidth/2)]);if($ne($_.backgroundcolor,"unset")){$$.save();$$.newpath();$q($_.bl);var _4H=$k[--$j];$$.moveto($k[--$j],_4H);var _4M=$a([$_.br,$_.tr,$_.tl]);for(var _4N=0,_4O=_4M.length;_4N<_4O;_4N++){$q($g(_4M,_4N));var _4Q=$k[--$j];$$.lineto($k[--$j],_4Q)}$$.closepath();$$.setcolor($_.backgroundcolor);$$.fill();$$.restore()}if($_.showborder){$$.save();$$.newpath();$q($_.bl);var _4V=$k[--$j];$$.moveto($k[--$j],_4V);var _4a=$a([$_.br,$_.tr,$_.tl]);for(var _4b=0,_4c=_4a.length;_4b<_4c;_4b++){$q($g(_4a,_4b));var _4e=$k[--$j];$$.lineto($k[--$j],_4e)}$$.closepath();if($ne($_.bordercolor,"unset")){$$.setcolor($_.bordercolor)}$$.setlinewidth($f($_.borderwidth-$_.inkspread*2));$$.stroke();$$.restore()}if($eq($_.colormap,"unset")){var _4m=new Map([[1,$_.barcolor]]);$_.colormap=_4m}var _4n=$_.colormap;for(var _4s=_4n.size,_4r=_4n.keys(),_4q=0;_4q<_4s;_4q++){var _4o=_4r.next().value;var _4p=_4n.get(_4o);$k[$j++]=_4o;$k[$j++]=_4p;if($ne(_4p,"unset")){$$.setcolor($k[--$j])}else{$j--}$_.key=$k[--$j];$k[$j++]=Infinity;var _4v=$_.pixs;for(var _4w=0,_4x=_4v.length;_4w<_4x;_4w++){var _50=$eq($g(_4v,_4w),$_.key)?1:0;$k[$j++]=_50}var _51=$a();$k[$j++]=_51;if($_.dotty){$_.drawlayerdots()}else{$_.drawlayer()}}if($ne($_.textcolor,"unset")){$$.setcolor($_.textcolor)}if($_.includetext){if($eq($_.textxalign,"unset")&&$eq($_.textyalign,"unset")&&$eq($_.alttext,"")){$_.s=0;$_.fn="";var _59=$_.txt;for(var _5A=0,_5B=_59.length;_5A<_5B;_5A++){$F($g(_59,_5A));var _5D=$k[--$j];var _5E=$k[--$j];$k[$j++]=_5E;$k[$j++]=_5D;if(_5D!=$_.s||$ne(_5E,$_.fn)){var _5H=$k[--$j];$k[$j++]=_5H;if(_5H<=0){$j-=5;$k[$j++]="bwipp.renmatrixFontTooSmall#3895";$k[$j++]="The font size is too small";bwipp_raiseerror()}var _5I=$k[--$j];var _5J=$k[--$j];$_.s=_5I;$_.fn=_5J;$$.selectfont(_5J,_5I)}else{$j-=2}var _5K=$k[--$j];$$.moveto($k[--$j],_5K);$$.show($k[--$j],0,0)}}else{$$.selectfont($_.textfont,$_.textsize);if($eq($_.alttext,"")){$k[$j++]=Infinity;var _5Q=$_.txt;for(var _5R=0,_5S=_5Q.length;_5R<_5S;_5R++){$F($g($g(_5Q,_5R),0))}$_.txt=$a();$_.tstr=$s($_.txt.length);for(var _5a=0,_5Z=$_.txt.length-1;_5a<=_5Z;_5a+=1){$p($_.tstr,_5a,$g($_.txt,_5a))}}else{$_.tstr=$_.alttext}if($_.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _5g=$$.pathbbox();$$.restore();$k[$j++]=_5g.ury}$_.textascent=$k[--$j];var _5j=$$.stringwidth($_.tstr);$_.textwidth=$f(_5j.w+($_.tstr.length-1)*$_.textgaps);$_.textxpos=$f($_.textxoffset+$f($_.pixx-$_.textwidth)/2);if($eq($_.textxalign,"left")){$_.textxpos=$_.textxoffset}if($eq($_.textxalign,"right")){$_.textxpos=$f($_.pixx-$_.textxoffset-$_.textwidth)}if($eq($_.textxalign,"offleft")){$_.textxpos=-$f($_.textwidth+$_.textxoffset)}if($eq($_.textxalign,"offright")){$_.textxpos=$_.pixx+$_.textxoffset}if($eq($_.textxalign,"justify")&&$_.textwidth<$_.pixx){$_.textxpos=0;$_.textgaps=$f($_.pixx-$_.textwidth)/($_.tstr.length-1)}$_.textypos=-$f($f($_.textyoffset+$_.textascent)+1);if($eq($_.textyalign,"above")){$_.textypos=$_.textyoffset+$_.pixy+1}if($eq($_.textyalign,"center")){$_.textypos=$f($_.textyoffset+$f($_.pixy-$_.textascent)/2)}$$.moveto($_.textxpos,$_.textypos);$$.show($_.tstr,$_.textgaps,0)}}$$.restore();$_=Object.getPrototypeOf($_)}function bwipp_ean5(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=0;$_.textyoffset=null;$_.height=.7;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.textyoffset,null)){$_.textyoffset=$f($_.height*72+1)}bwipp_loadctx(bwipp_ean5);if($_.barcode.length!=5){$k[$j++]="bwipp.ean5badLength#4121";$k[$j++]="EAN-5 add-on must be 5 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _6=$k[--$j];if(_6<48||_6>57){$k[$j++]="bwipp.ean5badCharacter#4125";$k[$j++]="EAN-5 add-on must contain only digits";bwipp_raiseerror()}});if(!bwipp_ean5.__4145__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$_.barchars="0123456789";$_.mirrormaps=$a(["11000","10100","10010","10001","01100","00110","00011","01010","01001","00101"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean5.$ctx[id]=$_[id]);bwipp_ean5.__4145__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _A=0;_A<=4;_A+=1){$_.i=_A;$_.barchar=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){$_.checksum=$f($_.barchar*3+$_.checksum)}else{$_.checksum=$f($_.barchar*9+$_.checksum)}}$_.checksum=$_.checksum%10;$_.mirrormap=$g($_.mirrormaps,$_.checksum);$_.sbs=$s(31);$_.txt=$a(5);for(var _P=0;_P<=4;_P+=1){$_.i=_P;if($_.i==0){$P($_.sbs,0,$g($_.encs,10))}else{$P($_.sbs,($_.i-1)*6+7,$g($_.encs,11))}$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _o=0,_n=$_.enclen-1;_o<=_n;_o+=1){$_.j=_o;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,$_.i*6+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*9+10+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1B=$_.sbs;for(var _1C=0,_1D=_1B.length;_1C<_1D;_1C++){$k[$j++]=$g(_1B,_1C)-48}var _1F=$a();$k[$j++]=Infinity;for(var _1G=0,_1H=16;_1G<_1H;_1G++){$k[$j++]=$_.height}var _1J=$a();$k[$j++]=Infinity;for(var _1K=0,_1L=16;_1K<_1L;_1K++){$k[$j++]=0}var _1M=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_1F;$k[$j++]="bhs";$k[$j++]=_1J;$k[$j++]="bbs";$k[$j++]=_1M;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";$k[$j++]=5;$k[$j++]="guardrightypos";$k[$j++]=$f($_.textyoffset+4);$k[$j++]="borderleft";$k[$j++]=12;$k[$j++]="borderright";$k[$j++]=5;$k[$j++]="bordertop";$k[$j++]=10;var _1R=$d();$k[$j++]=_1R;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean2(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=0;$_.textyoffset=null;$_.height=.7;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.textyoffset,null)){$_.textyoffset=$f($_.height*72+1)}bwipp_loadctx(bwipp_ean2);if($_.barcode.length!=2){$k[$j++]="bwipp.ean2badLength#4266";$k[$j++]="EAN-2 add-on must be 2 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _6=$k[--$j];if(_6<48||_6>57){$k[$j++]="bwipp.ean2badCharacter#4270";$k[$j++]="EAN-2 add-on must contain only digits";bwipp_raiseerror()}});if(!bwipp_ean2.__4287__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$_.barchars="0123456789";$_.mirrormaps=$a(["00","01","10","11"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean2.$ctx[id]=$_[id]);bwipp_ean2.__4287__=1;$_=Object.getPrototypeOf($_)}$_.mirrormap=$g($_.mirrormaps,$i($G($_.barcode,0,2))%4);$_.sbs=$s(13);$_.txt=$a(2);for(var _G=0;_G<=1;_G+=1){$_.i=_G;if($_.i==0){$P($_.sbs,0,$g($_.encs,10))}else{$P($_.sbs,($_.i-1)*6+7,$g($_.encs,11))}$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _f=0,_e=$_.enclen-1;_f<=_e;_f+=1){$_.j=_f;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,$_.i*6+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*9+10+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _12=$_.sbs;for(var _13=0,_14=_12.length;_13<_14;_13++){$k[$j++]=$g(_12,_13)-48}var _16=$a();$k[$j++]=Infinity;for(var _17=0,_18=12;_17<_18;_17++){$k[$j++]=$_.height}var _1A=$a();$k[$j++]=Infinity;for(var _1B=0,_1C=12;_1B<_1C;_1B++){$k[$j++]=0}var _1D=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_16;$k[$j++]="bhs";$k[$j++]=_1A;$k[$j++]="bbs";$k[$j++]=_1D;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";$k[$j++]=5;$k[$j++]="guardrightypos";$k[$j++]=$f($_.textyoffset+4);$k[$j++]="borderleft";$k[$j++]=12;$k[$j++]="borderright";$k[$j++]=5;$k[$j++]="bordertop";$k[$j++]=10;var _1I=$d();$k[$j++]=_1I;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean13(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=-11;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_ean13);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=12&&$_.barcode.length!=13){$k[$j++]="bwipp.ean13badLength#4410";$k[$j++]="EAN-13 must be 12 or 13 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.ean13badCharacter#4414";$k[$j++]="EAN-13 must contain only digits";bwipp_raiseerror()}});if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.ean13badAddOnLength#4418";$k[$j++]="Add-on for EAN-13 must be 2 or 5 digits";bwipp_raiseerror()}$_.pad=$s(13);$_.checksum=0;for(var _E=0;_E<=11;_E+=1){$_.i=_E;$_.barchar=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){$_.checksum=$f($_.barchar+$_.checksum)}else{$_.checksum=$f($_.barchar*3+$_.checksum)}}$_.checksum=$f(10-$_.checksum%10)%10;if($_.barcode.length==13){if($g($_.barcode,12)!=$f($_.checksum+48)){$k[$j++]="bwipp.ean13badCheckDigit#4436";$k[$j++]="Incorrect EAN-13 check digit provided";bwipp_raiseerror()}}$P($_.pad,0,$_.barcode);$p($_.pad,12,$f($_.checksum+48));$_.barcode=$_.pad;if(!bwipp_ean13.__4459__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$_.barchars="0123456789";$_.mirrormaps=$a(["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean13.$ctx[id]=$_[id]);bwipp_ean13.__4459__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(59);$_.txt=$a(13);$P($_.sbs,0,$g($_.encs,10));$_.mirrormap=$g($_.mirrormaps,$g($_.barcode,0)-48);$p($_.txt,0,$a([$G($_.barcode,0,1),$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]));for(var _r=1;_r<=6;_r+=1){$_.i=_r;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i-1)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _18=0,_17=$_.enclen-1;_18<=_17;_18+=1){$_.j=_18;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,($_.i-1)*4+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*7+15+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,(7-1)*4+3,$g($_.encs,11));for(var _1Y=7;_1Y<=12;_1Y+=1){$_.i=_1Y;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,($_.i-1)*4+8,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*7+19+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,56,$g($_.encs,12));$k[$j++]=Infinity;var _1y=$_.sbs;for(var _1z=0,_20=_1y.length;_1z<_20;_1z++){$k[$j++]=$g(_1y,_1z)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _26=0,_27=12;_26<_27;_26++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _2B=0,_2C=12;_2B<_2C;_2B++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _2H=0,_2I=12;_2H<_2I;_2H++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _2J=0,_2K=12;_2J<_2K;_2J++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _2M=0,_2N=30;_2M<_2N;_2M++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _2Q=0,_2R=30;_2Q<_2R;_2Q++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=95+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _2f=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_2f;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _2w=$k[--$j];$k[$j++]=$f(_2w-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _31=$k[--$j];$k[$j++]=$f(_31+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}$k[$j++]=Infinity;$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=$_.sbs;$k[$j++]="bhs";$k[$j++]=$_.bhs;$k[$j++]="bbs";$k[$j++]=$_.bbs;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";if($eq($_.addon,"")){$k[$j++]=7}else{$k[$j++]=5}$k[$j++]="guardrightypos";$k[$j++]=$_.guardrightypos;$k[$j++]="borderleft";$k[$j++]=11;$k[$j++]="borderright";if($eq($_.addon,"")){$k[$j++]=7}else{$k[$j++]=5}$k[$j++]="bordertop";$k[$j++]=0;$k[$j++]="borderbottom";$k[$j++]=5;var _3G=$d();$k[$j++]=_3G;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean8(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=4;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_ean8);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=7&&$_.barcode.length!=8){$k[$j++]="bwipp.ean8badLength#4630";$k[$j++]="EAN-8 must be 7 or 8 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.ean8badCharacter#4634";$k[$j++]="EAN-8 must contain only digits";bwipp_raiseerror()}});if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.ean8badAddOnLength#4638";$k[$j++]="Add-on for EAN-8 must be 2 or 5 digits";bwipp_raiseerror()}$_.pad=$s(8);$_.checksum=0;for(var _E=0;_E<=6;_E+=1){$_.i=_E;$_.barchar=$f($g($_.barcode,$_.i)-48);if($_.i%2!=0){$_.checksum=$f($_.barchar+$_.checksum)}else{$_.checksum=$f($_.barchar*3+$_.checksum)}}$_.checksum=$f(10-$_.checksum%10)%10;if($_.barcode.length==8){if($g($_.barcode,7)!=$f($_.checksum+48)){$k[$j++]="bwipp.ean8badCheckDigit#4656";$k[$j++]="Incorrect EAN-8 check digit provided";bwipp_raiseerror()}}$P($_.pad,0,$_.barcode);$p($_.pad,7,$f($_.checksum+48));$_.barcode=$_.pad;if(!bwipp_ean8.__4673__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ean8.$ctx[id]=$_[id]);bwipp_ean8.__4673__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(43);$_.txt=$a(8);$P($_.sbs,0,$g($_.encs,10));for(var _e=0;_e<=3;_e+=1){$_.i=_e;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,4*4+3,$g($_.encs,11));for(var _14=4;_14<=7;_14+=1){$_.i=_14;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+8,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+$_.textxoffset+4,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,40,$g($_.encs,12));$k[$j++]=Infinity;var _1U=$_.sbs;for(var _1V=0,_1W=_1U.length;_1V<_1W;_1V++){$k[$j++]=$g(_1U,_1V)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _1c=0,_1d=8;_1c<_1d;_1c++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _1h=0,_1i=8;_1h<_1i;_1h++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _1n=0,_1o=8;_1n<_1o;_1n++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _1p=0,_1q=8;_1p<_1q;_1p++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _1s=0,_1t=22;_1s<_1t;_1s++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _1w=0,_1x=22;_1w<_1x;_1w++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=67+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _2B=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_2B;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _2S=$k[--$j];$k[$j++]=$f(_2S-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _2X=$k[--$j];$k[$j++]=$f(_2X+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}$k[$j++]=Infinity;$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=$_.sbs;$k[$j++]="bhs";$k[$j++]=$_.bhs;$k[$j++]="bbs";$k[$j++]=$_.bbs;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardleftpos";$k[$j++]=7;$k[$j++]="guardrightpos";if($eq($_.addon,"")){$k[$j++]=7}else{$k[$j++]=5}$k[$j++]="guardrightypos";$k[$j++]=$_.guardrightypos;$k[$j++]="borderleft";$k[$j++]=7;$k[$j++]="borderright";if($eq($_.addon,"")){$k[$j++]=7}else{$k[$j++]=5}$k[$j++]="bordertop";$k[$j++]=0;$k[$j++]="borderbottom";$k[$j++]=5;var _2m=$d();$k[$j++]=_2m;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_upca(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=-9;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_upca);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length==7||$_.barcode.length==8){$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.upcAupcEbadCharacter#4834";$k[$j++]="UPC-E must contain only digits";bwipp_raiseerror()}});var _B=$g($_.barcode,0);if(_B!=48&&_B!=49){$k[$j++]="bwipp.upcAupcEbadNumberSystem#4838";$k[$j++]="UPC-E must have number system 0 or 1";bwipp_raiseerror()}for(var _C=0,_D=1;_C<_D;_C++){var _F=$_.barcode.length==8?12:11;$_.upcacode=$s(_F);if($f($g($_.barcode,6)-48)<=2){$P($_.upcacode,0,$G($_.barcode,0,3));$P($_.upcacode,3,$G($_.barcode,6,1));$P($_.upcacode,4,"0000");$P($_.upcacode,8,$G($_.barcode,3,3));break}if($f($g($_.barcode,6)-48)==3){$P($_.upcacode,0,$G($_.barcode,0,4));$P($_.upcacode,4,"00000");$P($_.upcacode,9,$G($_.barcode,4,2));break}if($f($g($_.barcode,6)-48)==4){$P($_.upcacode,0,$G($_.barcode,0,5));$P($_.upcacode,5,"00000");$P($_.upcacode,10,$G($_.barcode,5,1));break}if($f($g($_.barcode,6)-48)>=5){$P($_.upcacode,0,$G($_.barcode,0,6));$P($_.upcacode,6,"0000");$P($_.upcacode,10,$G($_.barcode,6,1));break}}if($_.barcode.length==8){$P($_.upcacode,11,$G($_.barcode,7,1))}$_.barcode=$_.upcacode}if($_.barcode.length!=11&&$_.barcode.length!=12){$k[$j++]="bwipp.upcAbadLength#4876";$k[$j++]="UPC-A must be 11 or 12 digits";bwipp_raiseerror()}var _11=$_.barcode;for(var _12=0,_13=_11.length;_12<_13;_12++){var _14=$g(_11,_12);if(_14<48||_14>57){$k[$j++]="bwipp.upcAbadCharacter#4880";$k[$j++]="UPC-A must contain only digits";bwipp_raiseerror()}}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.upcAbadAddOnLength#4884";$k[$j++]="Add-on for UPC-A must be 2 or 5 digits";bwipp_raiseerror()}$_.pad=$s(12);$_.checksum=0;for(var _19=0;_19<=10;_19+=1){$_.i=_19;$_.barchar=$g($_.barcode,$_.i)-48;if($_.i%2!=0){$_.checksum=$_.checksum+$_.barchar}else{$_.checksum=$_.checksum+$_.barchar*3}}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==12){if($g($_.barcode,11)!=$_.checksum+48){$k[$j++]="bwipp.upcAbadCheckDigit#4902";$k[$j++]="Incorrect UPC check digit provided";bwipp_raiseerror()}}$P($_.pad,0,$_.barcode);$p($_.pad,11,$_.checksum+48);$_.barcode=$_.pad;if(!bwipp_upca.__4919__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_upca.$ctx[id]=$_[id]);bwipp_upca.__4919__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(59);$_.txt=$a(12);$P($_.sbs,0,$g($_.encs,10));for(var _1Z=0;_1Z<=5;_1Z+=1){$_.i=_1Z;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+3,$_.enc);if($_.i==0){$p($_.txt,0,$a([$G($_.barcode,0,1),$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize-2]))}else{$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+13+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}}$P($_.sbs,6*4+3,$g($_.encs,11));for(var _28=6;_28<=11;_28+=1){$_.i=_28;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4+8,$_.enc);if($_.i==11){$p($_.txt,11,$a([$G($_.barcode,11,1),$_.textxoffset+107,$_.textyoffset,$_.textfont,$_.textsize-2]))}else{$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*7+$_.textxoffset+17,$_.textyoffset,$_.textfont,$_.textsize]))}}$P($_.sbs,56,$g($_.encs,12));$k[$j++]=Infinity;var _2h=$_.sbs;for(var _2i=0,_2j=_2h.length;_2i<_2j;_2i++){$k[$j++]=$g(_2h,_2i)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;for(var _2n=0,_2o=4;_2n<_2o;_2n++){$k[$j++]=$_.height}for(var _2q=0,_2r=10;_2q<_2r;_2q++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _2v=0,_2w=10;_2v<_2w;_2v++){$k[$j++]=$f($_.height-.075)}for(var _2y=0,_2z=4;_2y<_2z;_2y++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _32=0,_33=10;_32<_33;_32++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _34=0,_35=10;_34<_35;_34++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _37=0,_38=30;_37<_38;_37++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _3B=0,_3C=30;_3B<_3C;_3B++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=95+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _3Q=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_3Q;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _3h=$k[--$j];$k[$j++]=$f(_3h-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _3m=$k[--$j];$k[$j++]=$f(_3m+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}$k[$j++]=Infinity;$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=$_.sbs;$k[$j++]="bhs";$k[$j++]=$_.bhs;$k[$j++]="bbs";$k[$j++]=$_.bbs;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";if($eq($_.addon,"")){$k[$j++]=9}else{$k[$j++]=5}$k[$j++]="guardrightypos";$k[$j++]=$_.guardrightypos;$k[$j++]="borderleft";$k[$j++]=9;$k[$j++]="borderright";if($eq($_.addon,"")){$k[$j++]=9}else{$k[$j++]=5}$k[$j++]="bordertop";$k[$j++]=0;$k[$j++]="borderbottom";$k[$j++]=5;var _41=$d();$k[$j++]=_41;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_upce(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=12;$_.textxoffset=-9;$_.textyoffset=-4;$_.height=1;$_.addongap=12;$_.addontextfont="unset";$_.addontextsize=null;$_.addontextxoffset=null;$_.addontextyoffset=null;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_upce);$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length==11||$_.barcode.length==12){$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.upcEupcAbadCharacter#5087";$k[$j++]="UPC-A must contain only digits";bwipp_raiseerror()}});for(var _A=0,_B=1;_A<_B;_A++){var _D=$_.barcode.length==12?8:7;$_.upcecode=$s(_D);if($f($g($_.barcode,3)-48)<=2&&$eq($G($_.barcode,4,4),"0000")){$P($_.upcecode,0,$G($_.barcode,0,3));$P($_.upcecode,3,$G($_.barcode,8,3));$P($_.upcecode,6,$G($_.barcode,3,1));break}if($eq($G($_.barcode,4,5),"00000")){$P($_.upcecode,0,$G($_.barcode,0,4));$P($_.upcecode,4,$G($_.barcode,9,2));$P($_.upcecode,6,"3");break}if($eq($G($_.barcode,5,5),"00000")){$P($_.upcecode,0,$G($_.barcode,0,5));$P($_.upcecode,5,$G($_.barcode,10,1));$P($_.upcecode,6,"4");break}if($f($g($_.barcode,10)-48)>=5&&$eq($G($_.barcode,6,4),"0000")){$P($_.upcecode,0,$G($_.barcode,0,6));$P($_.upcecode,6,$G($_.barcode,10,1));break}$k[$j++]="bwipp.upcEupcAnotCompressible#5115";$k[$j++]="UPC-A cannot be converted to a UPC-E";bwipp_raiseerror()}if($_.barcode.length==12){$P($_.upcecode,7,$G($_.barcode,11,1))}$_.barcode=$_.upcecode}if($_.barcode.length!=7&&$_.barcode.length!=8){$k[$j++]="bwipp.upcEbadLength#5125";$k[$j++]="UPC-E must be 7 or 8 digits";bwipp_raiseerror()}var _11=$_.barcode;for(var _12=0,_13=_11.length;_12<_13;_12++){var _14=$g(_11,_12);if(_14<48||_14>57){$k[$j++]="bwipp.upcEbadCharacter#5129";$k[$j++]="UPC-E must contain only digits";bwipp_raiseerror()}}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.upcEbadAddOnLength#5133";$k[$j++]="Add-on for UPC-E must be 2 or 5 digits";bwipp_raiseerror()}var _19=$g($_.barcode,0);if(_19!=48&&_19!=49){$k[$j++]="bwipp.upcEbadNumberSystem#5138";$k[$j++]="UPC-E must have number system 0 or 1";bwipp_raiseerror()}if(!bwipp_upce.__5156__){$_=Object.create($_);$_.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","111111"]);$_.barchars="0123456789";$_.mirrormaps=$a(["000111","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_upce.$ctx[id]=$_[id]);bwipp_upce.__5156__=1;$_=Object.getPrototypeOf($_)}for(var _1D=0,_1E=1;_1D<_1E;_1D++){$_.upcacode=$s(11);if($g($_.barcode,6)-48<=2){$P($_.upcacode,0,$G($_.barcode,0,3));$P($_.upcacode,3,$G($_.barcode,6,1));$P($_.upcacode,4,"0000");$P($_.upcacode,8,$G($_.barcode,3,3));break}if($g($_.barcode,6)-48==3){$P($_.upcacode,0,$G($_.barcode,0,4));$P($_.upcacode,4,"00000");$P($_.upcacode,9,$G($_.barcode,4,2));break}if($g($_.barcode,6)-48==4){$P($_.upcacode,0,$G($_.barcode,0,5));$P($_.upcacode,5,"00000");$P($_.upcacode,10,$G($_.barcode,5,1));break}if($g($_.barcode,6)-48>=5){$P($_.upcacode,0,$G($_.barcode,0,6));$P($_.upcacode,6,"0000");$P($_.upcacode,10,$G($_.barcode,6,1));break}}$_.checksum=0;for(var _1t=0;_1t<=10;_1t+=1){$_.i=_1t;$_.barchar=$g($_.upcacode,$_.i)-48;if($_.i%2!=0){$_.checksum=$_.checksum+$_.barchar}else{$_.checksum=$_.checksum+$_.barchar*3}}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==8){if($g($_.barcode,7)!=$_.checksum+48){$k[$j++]="bwipp.upcEbadCheckDigit#5200";$k[$j++]="Incorrect UPC check digit provided";bwipp_raiseerror()}}$_.pad=$s(8);$P($_.pad,0,$_.barcode);$p($_.pad,7,$_.checksum+48);$_.barcode=$_.pad;$_.txt=$a(8);$p($_.txt,0,$a([$G($_.barcode,0,1),$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize-2]));$_.mirrormap=$g($_.mirrormaps,$_.checksum);if($g($_.barcode,0)==48){$_.invt=$s($_.mirrormap.length);for(var _2V=0,_2U=$_.mirrormap.length-1;_2V<=_2U;_2V+=1){$_.i=_2V;if($g($_.mirrormap,$_.i)==48){$p($_.invt,$_.i,49)}else{$p($_.invt,$_.i,48)}}$_.mirrormap=$_.invt}$_.sbs=$s(33);$P($_.sbs,0,$g($_.encs,10));for(var _2i=1;_2i<=6;_2i+=1){$_.i=_2i;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);if($g($_.mirrormap,$_.i-1)==49){$_.enclen=$_.enc.length;$_.revenc=$s($_.enclen);for(var _2z=0,_2y=$_.enclen-1;_2z<=_2y;_2z+=1){$_.j=_2z;$_.char=$g($_.enc,$_.j);$p($_.revenc,$_.enclen-$_.j-1,$_.char)}$_.enc=$_.revenc}$P($_.sbs,($_.i-1)*4+3,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i-1)*7+13+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize]))}$p($_.txt,7,$a([$G($_.barcode,7,1),6*7+21+$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize-2]));$P($_.sbs,27,$g($_.encs,11));$k[$j++]=Infinity;var _3X=$_.sbs;for(var _3Y=0,_3Z=_3X.length;_3Y<_3Z;_3Y++){$k[$j++]=$g(_3X,_3Y)-48}$_.sbs=$a();if($_.includetext){$k[$j++]=Infinity;$k[$j++]=$_.height;$k[$j++]=$_.height;for(var _3f=0,_3g=12;_3f<_3g;_3f++){$k[$j++]=$f($_.height-.075)}$k[$j++]=$_.height;$k[$j++]=$_.height;$k[$j++]=$_.height;$_.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _3m=0,_3n=12;_3m<_3n;_3m++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.bbs=$a()}else{$k[$j++]=Infinity;for(var _3p=0,_3q=17;_3p<_3q;_3p++){$k[$j++]=$_.height}$_.bhs=$a();$k[$j++]=Infinity;for(var _3t=0,_3u=17;_3t<_3u;_3t++){$k[$j++]=0}$_.bbs=$a();$_.txt=$a([])}$_.guardrightypos=0;if($ne($_.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($_.height-.15);$k[$j++]="textxoffset";if($ne($_.addontextxoffset,null)){$k[$j++]=$_.addontextxoffset}else{$k[$j++]=51+$_.addongap}if($ne($_.addontextyoffset,null)){$k[$j++]="textyoffset";$k[$j++]=$_.addontextyoffset}$k[$j++]="textsize";if($ne($_.addontextsize,null)){$k[$j++]=$_.addontextsize}else{$k[$j++]=$_.textsize}var _48=$ne($_.addontextfont,"unset")?$_.addontextfont:$_.textfont;$k[$j++]="textfont";$k[$j++]=_48;$_.addopts=$d();if($_.addon.length==2){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean2()}if($_.addon.length==5){$k[$j++]=$_.addon;$k[$j++]=$_.addopts;bwipp_ean5()}$_.addcode=$k[--$j];$k[$j++]=Infinity;$q($_.sbs);$k[$j++]=$_.addongap;$q($g($_.addcode,"sbs"));$_.sbs=$a();$k[$j++]=Infinity;$q($_.bhs);$F($g($_.addcode,"bhs"),function(){var _4P=$k[--$j];$k[$j++]=$f(_4P-.075)});$_.bhs=$a();$k[$j++]=Infinity;$q($_.bbs);$F($g($_.addcode,"bbs"),function(){var _4U=$k[--$j];$k[$j++]=$f(_4U+.075)});$_.bbs=$a();$k[$j++]=Infinity;$q($_.txt);$q($g($_.addcode,"txt"));$_.txt=$a();$_.guardrightypos=$_.height*72-6}$k[$j++]=Infinity;$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=$_.sbs;$k[$j++]="bhs";$k[$j++]=$_.bhs;$k[$j++]="bbs";$k[$j++]=$_.bbs;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="opt";$k[$j++]=$_.options;$k[$j++]="guardrightpos";if($eq($_.addon,"")){$k[$j++]=9}else{$k[$j++]=5}$k[$j++]="guardrightypos";$k[$j++]=$_.guardrightypos;$k[$j++]="borderleft";$k[$j++]=9;$k[$j++]="borderright";if($eq($_.addon,"")){$k[$j++]=9}else{$k[$j++]=5}$k[$j++]="bordertop";$k[$j++]=0;$k[$j++]="borderbottom";$k[$j++]=5;var _4j=$d();$k[$j++]=_4j;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_isbn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.isbntextfont="OCR-A";$_.isbntextsize=8;$_.isbntextxoffset=null;$_.isbntextyoffset=null;$_.height=1;$_.addongap=12;$_.legacy=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=15&&$_.barcode.length!=17&&($_.barcode.length!=11&&$_.barcode.length!=13)){$k[$j++]="bwipp.isbnBadLength#5369";$k[$j++]="ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes";bwipp_raiseerror()}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.isbnBadAddOnLength#5372";$k[$j++]="Add-on for ISBN must be 2 or 5 digits";bwipp_raiseerror()}if($_.barcode.length>=15){var _F=$G($_.barcode,0,4);if($ne(_F,"978-")&&$ne(_F,"979-")){$k[$j++]="bwipp.isbn13badPrefix#5376";$k[$j++]="ISBN-13 prefix must be 978- or 979-";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _H=$G($_.barcode,5,9);for(var _I=0,_J=_H.length;_I<_J;_I++){var _K=$g(_H,_I);$k[$j++]=_K;if(_K==45){if($_.wasdash){$k[$j++]="bwipp.isbn13adjacentDashes#5383";$k[$j++]="ISBN-13 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _N=$k[--$j];if(_N>=48&&_N<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=2||$_.numdigit!=7){$k[$j++]="bwipp.isbn13numDashesDigits#5394";$k[$j++]="Incorrect number of dashes and digits for ISBN-13";bwipp_raiseerror()}var _S=$g($_.barcode,14);if(_S<48||_S>57){$k[$j++]="bwipp.isbn13character15#5397";$k[$j++]="ISBN-13 character 15 must be a digit";bwipp_raiseerror()}if($_.barcode.length==17){if($ne($G($_.barcode,15,1),"-")){$k[$j++]="bwipp.isbn13character16#5401";$k[$j++]="ISBN-13 penultimate character must be a dash";bwipp_raiseerror()}var _X=$g($_.barcode,16);if(_X<48||_X>57){$k[$j++]="bwipp.isbn13character17#5404";$k[$j++]="ISBN-13 final character must be a digit";bwipp_raiseerror()}}}else{var _Z=$g($_.barcode,0);if(_Z<48||_Z>57){$k[$j++]="bwipp.isbn10FirstDigit#5409";$k[$j++]="ISBN-10 first character must be a digit";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _b=$G($_.barcode,1,9);for(var _c=0,_d=_b.length;_c<_d;_c++){var _e=$g(_b,_c);$k[$j++]=_e;if(_e==45){if($_.wasdash){$k[$j++]="bwipp.isbn10adjacentDashes#5416";$k[$j++]="ISBN-10 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _h=$k[--$j];if(_h>=48&&_h<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=2||$_.numdigit!=7){$k[$j++]="bwipp.isbn10numDashesDigits#5427";$k[$j++]="Incorrect number of dashes and digits for ISBN-10";bwipp_raiseerror()}var _m=$g($_.barcode,10);if(_m<48||_m>57){$k[$j++]="bwipp.isbn10character11#5430";$k[$j++]="ISBN-10 character 11 must be a digit";bwipp_raiseerror()}if($_.barcode.length==13){if($ne($G($_.barcode,11,1),"-")){$k[$j++]="bwipp.isbn10character12#5434";$k[$j++]="ISBN-10 penultimate character must be a dash";bwipp_raiseerror()}var _r=$g($_.barcode,12);if((_r<48||_r>57)&&_r!=88){$k[$j++]="bwipp.isbn10character13#5437";$k[$j++]="ISBN-10 final character must be a digit or X";bwipp_raiseerror()}}}$_.isbntxt=$_.barcode;if($_.isbntxt.length<=13){$_.isbn=$s(10);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.isbnchar=$f($g($_.isbntxt,$_.i)-48);if($_.isbnchar!=-3){$p($_.isbn,$_.n,$f($_.isbnchar+48));if($_.n<9){$_.checksum=$f($_.checksum+(10-$_.n)*$_.isbnchar)}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.isbntxt.length){break}}var _1B=$f(11-$_.checksum%11)%11;$k[$j++]="checksum";$k[$j++]=_1B;if(_1B==10){$j--;$k[$j++]=40}var _1C=$k[--$j];$_[$k[--$j]]=$f(_1C+48);$_.isbn=$G($_.isbn,0,9);if($_.isbntxt.length==13){if($g($_.isbntxt,12)!=$_.checksum){$k[$j++]="bwipp.isbn10badCheckDigit#5465";$k[$j++]="Incorrect ISBN-10 check digit provided";bwipp_raiseerror()}}}if(!$_.legacy||$_.isbntxt.length>=15){if($_.isbntxt.length<=13){$_.pad=$s(15);$P($_.pad,0,"978-");$P($_.pad,4,$G($_.isbntxt,0,11));$_.isbntxt=$_.pad}$_.isbn=$s(13);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.isbnchar=$g($_.isbntxt,$_.i)-48;if($_.isbnchar!=-3){$p($_.isbn,$_.n,$_.isbnchar+48);if($_.n<12){$k[$j++]="checksum";$k[$j++]=$_.isbnchar;if($_.n%2!=0){var _1e=$k[--$j];$k[$j++]=_1e*3}var _1g=$k[--$j];$_[$k[--$j]]=$f(_1g+$_.checksum)}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.isbntxt.length){break}}$_.checksum=(10-$_.checksum%10)%10+48;$_.isbn=$G($_.isbn,0,12);if($_.isbntxt.length==17){if($g($_.isbntxt,16)!=$_.checksum){$k[$j++]="bwipp.isbn13badCheckDigit#5500";$k[$j++]="Incorrect ISBN-13 check digit provided";bwipp_raiseerror()}}}var _1u=$_.isbn.length==12?22:18;$_.pad=$s(_1u);$P($_.pad,0,"ISBN ");$P($_.pad,5,$_.isbntxt);$p($_.pad,$_.pad.length-2,45);$p($_.pad,$_.pad.length-1,$_.checksum);$_.isbntxt=$_.pad;$_.barcode=$s(12);if($_.isbn.length==9){$P($_.barcode,0,"978");$P($_.barcode,3,$_.isbn)}else{$P($_.barcode,0,$_.isbn)}if($ne($_.addon,"")){var _2E=$s(12+$_.addon.length+1);$P(_2E,0,$_.barcode);$P(_2E,12," ");$P(_2E,13,$_.addon);$_.barcode=_2E}$p($_.options,"dontdraw",true);$p($_.options,"addongap",$_.addongap);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean13();var _2M=$k[--$j];$_[$k[--$j]]=_2M;if($_.includetext){if($eq($_.isbntextxoffset,null)){$k[$j++]="isbntextxoffset";if($_.isbn.length==9){$k[$j++]=-1}else{$k[$j++]=-12}var _2R=$k[--$j];$_[$k[--$j]]=_2R}if($eq($_.isbntextyoffset,null)){$_.isbntextyoffset=$_.height*72+3}var _2W=$g($_.args,"txt")!==undefined;if(_2W){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.isbntxt,$_.isbntextxoffset,$_.isbntextyoffset,$_.isbntextfont,$_.isbntextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.isbntxt,$_.isbntextxoffset,$_.isbntextyoffset,$_.isbntextfont,$_.isbntextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_ismn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.ismntextfont="OCR-A";$_.ismntextsize=8;$_.ismntextxoffset=null;$_.ismntextyoffset=null;$_.height=1;$_.addongap=12;$_.legacy=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$X($_.barcode," ");if($k[--$j]){$_.barcode=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.barcode.length!=15&&$_.barcode.length!=17&&($_.barcode.length!=11&&$_.barcode.length!=13)){$k[$j++]="bwipp.ismnBadLength#5619";$k[$j++]="ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes";bwipp_raiseerror()}if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.ismnBadAddOnLength#5622";$k[$j++]="Add-on for ISMN must be 2 or 5 digits";bwipp_raiseerror()}if($_.barcode.length>=15){if($ne($G($_.barcode,0,4),"979-")){$k[$j++]="bwipp.ismn13badPrefix#5626";$k[$j++]="ISMN-13 prefix must be 979-";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _H=$G($_.barcode,5,9);for(var _I=0,_J=_H.length;_I<_J;_I++){var _K=$g(_H,_I);$k[$j++]=_K;if(_K==45){if($_.wasdash){$k[$j++]="bwipp.ismn13adjacentDashes#5633";$k[$j++]="ISMN-13 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _N=$k[--$j];if(_N>=48&&_N<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=2||$_.numdigit!=7){$k[$j++]="bwipp.ismn13numDashesDigits#5644";$k[$j++]="Incorrect number of dashes and digits for ISMN-13";bwipp_raiseerror()}var _S=$g($_.barcode,14);if(_S<48||_S>57){$k[$j++]="bwipp.ismn13character15#5647";$k[$j++]="ISMN-13 character 15 must be a digit";bwipp_raiseerror()}if($_.barcode.length==17){if($ne($G($_.barcode,15,1),"-")){$k[$j++]="bwipp.ismn13character16#5651";$k[$j++]="ISMN-13 penultimate character must be a dash";bwipp_raiseerror()}var _X=$g($_.barcode,16);if(_X<48||_X>57){$k[$j++]="bwipp.ismn13character17#5654";$k[$j++]="ISMN-13 final character must be a digit";bwipp_raiseerror()}}}else{if($ne($G($_.barcode,0,2),"M-")){$k[$j++]="bwipp.ismn10badPrefix#5659";$k[$j++]="ISMN-10 prefix must be M-";bwipp_raiseerror()}var _b=$g($_.barcode,2);if(_b<48||_b>57){$k[$j++]="bwipp.ismn10character3#5662";$k[$j++]="ISMN-10 character 3 must be a digit";bwipp_raiseerror()}$_.wasdash=false;$_.numdash=0;$_.numdigit=0;var _d=$G($_.barcode,3,7);for(var _e=0,_f=_d.length;_e<_f;_e++){var _g=$g(_d,_e);$k[$j++]=_g;if(_g==45){if($_.wasdash){$k[$j++]="bwipp.ismn10adjacentDashes#5669";$k[$j++]="ISMN-10 does not permit adjacent dashes";bwipp_raiseerror()}$_.wasdash=true;$_.numdash=$_.numdash+1}var _j=$k[--$j];if(_j>=48&&_j<=57){$_.wasdash=false;$_.numdigit=$_.numdigit+1}}if($_.numdash!=1||$_.numdigit!=6){$k[$j++]="bwipp.ismn10numDashesDigits#5680";$k[$j++]="Incorrect number of dashes and digits for ISMN-10";bwipp_raiseerror()}var _o=$g($_.barcode,10);if(_o<48||_o>57){$k[$j++]="bwipp.ismn10character11#5683";$k[$j++]="ISMN-10 character 11 must be a digit";bwipp_raiseerror()}if($_.barcode.length==13){var _r=$G($_.barcode,11,1);if($ne(_r,"-")){$k[$j++]="bwipp.ismn10character12#5687";$k[$j++]="ISMN-10 penultimate character must be a dash";bwipp_raiseerror()}var _t=$g($_.barcode,12);if((_t<48||_t>57)&&_t!=88){$k[$j++]="bwipp.ismn10character13#5690";$k[$j++]="ISMN-10 final character must be a digit or X";bwipp_raiseerror()}}}$_.ismntxt=$_.barcode;$_.legacytxt="";if($_.ismntxt.length<=13){$_.legacytxt=$_.ismntxt;$_.pad=$s($_.ismntxt.length+4);$P($_.pad,0,"979-0-");$P($_.pad,6,$G($_.ismntxt,2,$_.ismntxt.length-2));$_.ismntxt=$_.pad}$_.ismn=$s(13);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.ismnchar=$g($_.ismntxt,$_.i)-48;if($_.ismnchar!=-3){$p($_.ismn,$_.n,$_.ismnchar+48);if($_.n<12){if($_.n%2==0){$_.checksum=$_.ismnchar+$_.checksum}else{$_.checksum=$_.ismnchar*3+$_.checksum}}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.ismntxt.length){break}}$_.checksum=(10-$_.checksum%10)%10+48;if($_.barcode.length==13||$_.barcode.length==17){var _1Q=$_.barcode;if($g(_1Q,_1Q.length-1)!=$_.checksum){$k[$j++]="bwipp.ismnBadCheckDigit#5732";$k[$j++]="Incorrect ISMN check digit provided";bwipp_raiseerror()}}if($_.legacy&&$ne($_.legacytxt,"")){$_.ismntxt=$_.legacytxt;$_.pad=$s(18)}else{$_.pad=$s(22)}$P($_.pad,0,"ISMN ");$P($_.pad,5,$_.ismntxt);$p($_.pad,$_.pad.length-2,45);$p($_.pad,$_.pad.length-1,$_.checksum);$_.ismntxt=$_.pad;$_.barcode=$G($_.ismn,0,12);if($ne($_.addon,"")){var _1l=$s(12+$_.addon.length+1);$P(_1l,0,$_.barcode);$P(_1l,12," ");$P(_1l,13,$_.addon);$_.barcode=_1l}$p($_.options,"dontdraw",true);$p($_.options,"addongap",$_.addongap);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean13();var _1t=$k[--$j];$_[$k[--$j]]=_1t;if($_.includetext){if($eq($_.ismntextxoffset,null)){$k[$j++]="ismntextxoffset";if($_.ismntxt.length==18){$k[$j++]=-1}else{$k[$j++]=-12}var _1y=$k[--$j];$_[$k[--$j]]=_1y}if($eq($_.ismntextyoffset,null)){$_.ismntextyoffset=$_.height*72+3}var _23=$g($_.args,"txt")!==undefined;if(_23){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.ismntxt,$_.ismntextxoffset,$_.ismntextyoffset,$_.ismntextfont,$_.ismntextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.ismntxt,$_.ismntextxoffset,$_.ismntextyoffset,$_.ismntextfont,$_.ismntextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_issn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.issntextfont="OCR-A";$_.issntextsize=8;$_.issntextxoffset=null;$_.issntextyoffset=null;$_.height=1;$_.addongap=12;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.issntxt=$k[--$j];$X($_.issntxt," ");if($k[--$j]){$_.issntxt=$k[--$j];$j--;$_.seqvar=$k[--$j]}else{$j--;$_.seqvar="00"}$X($_.seqvar," ");if($k[--$j]){$_.seqvar=$k[--$j];$j--;$_.addon=$k[--$j]}else{$j--;$_.addon=""}if($_.issntxt.length!=8&&$_.issntxt.length!=9){$k[$j++]="bwipp.issnBadLength#5856";$k[$j++]="ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX";bwipp_raiseerror()}var _D=$G($_.issntxt,0,4);for(var _E=0,_F=_D.length;_E<_F;_E++){var _G=$g(_D,_E);if(_G<48||_G>57){$k[$j++]="bwipp.issnFirstThroughFourthNotNumeric#5860";$k[$j++]="ISSN first four characters must be numeral characters";bwipp_raiseerror()}}if($ne($G($_.issntxt,4,1),"-")){$k[$j++]="bwipp.issnNeedsDash#5864";$k[$j++]="ISSN fifth character must be a dash";bwipp_raiseerror()}var _K=$G($_.issntxt,5,3);for(var _L=0,_M=_K.length;_L<_M;_L++){var _N=$g(_K,_L);if(_N<48||_N>57){$k[$j++]="bwipp.issnSixthThroughEighthNotNumeric#5868";$k[$j++]="ISSN sixth through eighth characters must be numerals";bwipp_raiseerror()}}if($_.issntxt.length==9){var _Q=$g($_.issntxt,8);if((_Q<48||_Q>57)&&_Q!=88){$k[$j++]="bwipp.issnNinthCharacterBadFormat#5873";$k[$j++]="ISSN ninth character must be a number or the character X";bwipp_raiseerror()}}if($_.seqvar.length!=2){$k[$j++]="bwipp.issnBadSequenceVariantLength#5877";$k[$j++]="Sequence variant for ISSN must be 2 digits";bwipp_raiseerror()}$F($_.seqvar,function(){var _T=$k[--$j];if(_T<48||_T>57){$k[$j++]="bwipp.issnSequenceVariantBadCharacter#5881";$k[$j++]="Sequence variant for ISSN must contain only digits";bwipp_raiseerror()}});if($_.addon.length!=0&&$_.addon.length!=2&&$_.addon.length!=5){$k[$j++]="bwipp.issnBadAddOnLength#5885";$k[$j++]="Add-on for ISSN must be 2 or 5 digits";bwipp_raiseerror()}$_.issn=$s(8);$_.checksum=0;$_.i=0;$_.n=0;for(;;){$_.issnchar=$f($g($_.issntxt,$_.i)-48);if($_.issnchar!=-3){$p($_.issn,$_.n,$f($_.issnchar+48));if($_.n<7){$_.checksum=$f($_.checksum+$_.issnchar*(8-$_.n))}$_.n=$_.n+1}$_.i=$_.i+1;if($_.i==$_.issntxt.length){break}}$_.checksum=$f(11-$_.checksum%11)%11;var _p=$f($_.checksum+48);$k[$j++]="checksum";$k[$j++]=_p;if(_p==58){$j--;$k[$j++]=88}var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;if($_.issntxt.length==9){if($g($_.issntxt,8)!=$_.checksum){$k[$j++]="bwipp.issnBadCheckDigit#5908";$k[$j++]="Incorrect ISSN check digit provided";bwipp_raiseerror()}}$_.pad=$s(14);$P($_.pad,0,"ISSN ");$P($_.pad,5,$_.issntxt);$p($_.pad,13,$_.checksum);$_.issntxt=$_.pad;$_.barcode=$G($_.issn,0,7);$_.barcode=$s(12);$P($_.barcode,0,"977");$P($_.barcode,3,$_.issn);$P($_.barcode,10,$_.seqvar);if($ne($_.addon,"")){var _1D=$s(12+$_.addon.length+1);$P(_1D,0,$_.barcode);$P(_1D,12," ");$P(_1D,13,$_.addon);$_.barcode=_1D}$p($_.options,"dontdraw",true);$p($_.options,"addongap",$_.addongap);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean13();var _1L=$k[--$j];$_[$k[--$j]]=_1L;if($_.includetext){if($eq($_.issntextxoffset,null)){$_.issntextxoffset=10}if($eq($_.issntextyoffset,null)){$_.issntextyoffset=$_.height*72+3}var _1S=$g($_.args,"txt")!==undefined;if(_1S){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.issntxt,$_.issntextxoffset,$_.issntextyoffset,$_.issntextfont,$_.issntextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.issntxt,$_.issntextxoffset,$_.issntextyoffset,$_.issntextfont,$_.issntextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_mands(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.barlen=$_.barcode.length;if($_.barlen!=7&&$_.barlen!=8){$k[$j++]="bwipp.MandSbadLength#6004";$k[$j++]="M&S barcode must be 7 or 8 characters";bwipp_raiseerror()}if($_.barlen==7){var _7=$Z($s(8),"00000000");$P(_7,1,$_.barcode);$_.barcode=_7}$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_ean8();var _C=$k[--$j];$_[$k[--$j]]=_C;var _F=$g($_.args,"bbs");$p(_F,10,$g(_F,2));$p(_F,11,$g(_F,2));var _J=$g($_.args,"bhs");$p(_J,10,$g(_J,2));$p(_J,11,$g(_J,2));$_.txt=$g($_.args,"txt");if($_.barlen==7){for(var _P=0;_P<=6;_P+=1){var _Q=$_.txt;$P($g($g(_Q,_P),0),0,$g($g(_Q,_P+1),0))}$P($g($g($_.txt,7),0),0," ")}var _Y=$a(10);$P(_Y,0,$_.txt);$_.txt=_Y;var _b=$g($_.txt,0);$p($_.txt,8,$A($a(_b.length),_b));var _g=$g($_.txt,0);$p($_.txt,9,$A($a(_g.length),_g));$p($g($_.txt,8),0,"M");$p($g($_.txt,8),1,-12);$p($g($_.txt,9),0,"S");var _r=$g($_.txt,9);$p(_r,1,69);$p($_.args,"txt",$_.txt);$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code128(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$_.encoding="auto";$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code128);if(!bwipp_code128.__6105__){$_=Object.create($_);$_.sta=-1;$_.stb=-2;$_.stc=-3;$_.swa=-4;$_.swb=-5;$_.swc=-6;$_.fn1=-7;$_.fn2=-8;$_.fn3=-9;$_.fn4=-10;$_.sft=-11;$_.stp=-12;$_.lka=-13;$_.lkc=-14;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code128.$ctx[id]=$_[id]);bwipp_code128.__6105__=1;$_=Object.getPrototypeOf($_)}var _6=$_.fn1;var _B=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC1",_6],["FNC2",$_.fn2],["FNC3",$_.fn3],["LNKA",$_.lka],["LNKC",$_.lkc]]);$_.fncvals=_B;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _E=$k[--$j];$_[$k[--$j]]=_E;$_.msglen=$_.msg.length;if(!bwipp_code128.__6178__){$_=Object.create($_);$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.fn3,$_.fn3,"96"]),$a([$_.fn2,$_.fn2,"97"]),$a([$_.sft,$_.sft,"98"]),$a([$_.swc,$_.swc,"99"]),$a([$_.swb,$_.fn4,$_.swb]),$a([$_.fn4,$_.swa,$_.swa]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.sta,$_.sta,$_.sta]),$a([$_.stb,$_.stb,$_.stb]),$a([$_.stc,$_.stc,$_.stc]),$a([$_.stp,$_.stp,$_.stp])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _2X=0,_2W=$_.charmaps.length-1;_2X<=_2W;_2X+=1){$_.i=_2X;$_.encs=$g($_.charmaps,$_.i);for(var _2b=0;_2b<=2;_2b+=1){$_.j=_2b;var _2e=$g($_.encs,$_.j);$k[$j++]=_2e;if($eq($t(_2e),"stringtype")){var _2h=$g($k[--$j],0);$k[$j++]=_2h}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code128.$ctx[id]=$_[id]);bwipp_code128.__6178__=1;$_=Object.getPrototypeOf($_)}$p($_.seta,$_.lka,$g($_.seta,$_.swb));$p($_.seta,$_.lkc,$g($_.seta,$_.swc));$p($_.setb,$_.lka,$g($_.setb,$_.swc));$p($_.setb,$_.lkc,$g($_.setb,$_.swa));$p($_.setc,$_.lka,$g($_.setc,$_.swa));$p($_.setc,$_.lkc,$g($_.setc,$_.swb));if($_.raw){$_.encoding="raw"}if($eq($_.encoding,"raw")){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.cws=$G($_.cws,0,$_.j);$_.text=""}if($eq($_.encoding,"auto")){$_.text=$s($_.msglen);for(var _3k=0,_3j=$_.msglen-1;_3k<=_3j;_3k+=1){$_.i=_3k;var _3p=$g($_.msg,$_.i);$k[$j++]=$_.text;$k[$j++]=$_.i;$k[$j++]=_3p;if(_3p<0){$j--;$k[$j++]=32}var _3q=$k[--$j];var _3r=$k[--$j];$p($k[--$j],_3r,_3q)}$k[$j++]=Infinity;for(var _3u=0,_3v=$_.msglen;_3u<_3v;_3u++){$k[$j++]=0}$k[$j++]=0;$_.numSA=$a();$k[$j++]=Infinity;for(var _3y=0,_3z=$_.msglen;_3y<_3z;_3y++){$k[$j++]=0}$k[$j++]=0;$_.numEA=$a();for(var _42=$_.msglen-1;_42>=0;_42-=1){$_.i=_42;if($g($_.msg,$_.i)>=0){if($g($_.msg,$_.i)>=128){$p($_.numEA,$_.i,$f($g($_.numEA,$_.i+1)+1))}else{$p($_.numSA,$_.i,$f($g($_.numSA,$_.i+1)+1))}}}$_.ea=false;$_.msgtmp=$a([]);for(var _4M=0,_4L=$_.msglen-1;_4M<=_4L;_4M+=1){$_.i=_4M;$_.c=$g($_.msg,$_.i);if(!$xo($_.ea,$_.c<128)&&$_.c>=0){if($_.ea){$k[$j++]=$_.numSA}else{$k[$j++]=$_.numEA}var _4Y=$g($k[--$j],$_.i);var _4b=$f(_4Y+$_.i)==$_.msglen?3:5;if(_4Y<_4b){$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$_.msgtmp=$a()}else{$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$k[$j++]=$_.fn4;$_.msgtmp=$a();$_.ea=!$_.ea}}$k[$j++]=Infinity;$q($_.msgtmp);if($_.c>=0){$k[$j++]=$_.c&127}else{$k[$j++]=$_.c}$_.msgtmp=$a()}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;$_.numsscr=function(){$_.n=0;$_.s=0;$_.p=$k[--$j];for(;;){if($_.p>=$_.msglen){break}var _4w=$g($_.msg,$_.p);var _4y=$g($_.setc,_4w)!==undefined;$k[$j++]=_4w;if(!_4y){$j--;break}var _4z=$k[--$j];$k[$j++]=_4z;if(_4z<=-1){var _51=$k[--$j];if(_51==$_.fn1&&$_.s%2==0){$_.s=$_.s+1}else{break}}else{$j--}$_.n=$_.n+1;$_.s=$_.s+1;$_.p=$f($_.p+1)}$k[$j++]=$_.n;$k[$j++]=$_.s};$_.enca=function(){$p($_.cws,$_.j,$g($_.seta,$k[--$j]));$_.j=$_.j+1};$_.encb=function(){$p($_.cws,$_.j,$g($_.setb,$k[--$j]));$_.j=$_.j+1};$_.encc=function(){var _5L=$k[--$j];$k[$j++]=_5L;if($ne($t(_5L),"arraytype")){var _5P=$g($_.setc,$k[--$j]);$k[$j++]=_5P}else{$q($k[--$j]);var _5R=$k[--$j];var _5S=$k[--$j];$k[$j++]=$f($f(_5R-48)+$f(_5S-48)*10)}$p($_.cws,$_.j,$k[--$j]);$_.j=$_.j+1};$_.anotb=function(){var _5X=$k[--$j];var _5Z=$g($_.seta,_5X)!==undefined;var _5b=$g($_.setb,_5X)!==undefined;$k[$j++]=_5Z&&!_5b};$_.bnota=function(){var _5c=$k[--$j];var _5e=$g($_.setb,_5c)!==undefined;var _5g=$g($_.seta,_5c)!==undefined;$k[$j++]=_5e&&!_5g};$k[$j++]=Infinity;for(var _5i=0,_5j=$_.msg.length;_5i<_5j;_5i++){$k[$j++]=0}$k[$j++]=9999;$_.nextanotb=$a();$k[$j++]=Infinity;for(var _5m=0,_5n=$_.msg.length;_5m<_5n;_5m++){$k[$j++]=0}$k[$j++]=9999;$_.nextbnota=$a();for(var _5q=$_.msg.length-1;_5q>=0;_5q-=1){$_.i=_5q;$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$p($_.nextanotb,$_.i,0)}else{$p($_.nextanotb,$_.i,$f($g($_.nextanotb,$_.i+1)+1))}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$p($_.nextbnota,$_.i,0)}else{$p($_.nextbnota,$_.i,$f($g($_.nextbnota,$_.i+1)+1))}}$_.abeforeb=function(){var _6D=$k[--$j];$k[$j++]=$lt($g($_.nextanotb,_6D),$g($_.nextbnota,_6D))};$_.bbeforea=function(){var _6I=$k[--$j];$k[$j++]=$lt($g($_.nextbnota,_6I),$g($_.nextanotb,_6I))};$_.cws=$a($_.barcode.length*2+3);$_.j=0;if($_.msglen>0){$k[$j++]=0;$_.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if($_.msglen==0){$k[$j++]=$_.stb;$_.enca();$_.cset="setb";break}if($_.msglen==2&&$_.nums==2){$k[$j++]=$_.stc;$_.enca();$_.cset="setc";break}if($_.nums>=4){$k[$j++]=$_.stc;$_.enca();$_.cset="setc";break}$k[$j++]=0;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sta;$_.enca();$_.cset="seta";break}$k[$j++]=$_.stb;$_.enca();$_.cset="setb";break}$_.i=0;for(;;){if($_.i==$_.msglen){break}$k[$j++]=$_.i;$_.numsscr();$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if(($eq($_.cset,"seta")||$eq($_.cset,"setb"))&&$_.nums>=4&&$g($_.msg,$_.i)!=$_.fn1){if($_.nums%2==0){$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";break}else{$k[$j++]=$g($_.msg,$_.i);if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.i=$_.i+1;$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";break}}$k[$j++]=$eq($_.cset,"setb");$k[$j++]=$g($_.msg,$_.i);$_.anotb();var _72=$k[--$j];var _73=$k[--$j];if(_73&&_72){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.bbeforea();if($k[--$j]){$k[$j++]=$_.sft;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}}$k[$j++]=$_.swa;$_.encb();$_.cset="seta";break}$k[$j++]=$eq($_.cset,"seta");$k[$j++]=$g($_.msg,$_.i);$_.bnota();var _7I=$k[--$j];var _7J=$k[--$j];if(_7J&&_7I){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sft;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}if($eq($_.cset,"setc")&&$_.nums<2&&($g($_.msg,$_.i)>-1||$g($_.msg,$_.i)==$_.fn4)){$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.swa;$_.encc();$_.cset="seta";break}$k[$j++]=$_.swb;$_.encc();$_.cset="setb";break}if($eq($_.cset,"seta")){$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}if($eq($_.cset,"setb")){$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}if($eq($_.cset,"setc")){if($g($_.msg,$_.i)<=-1){$k[$j++]=$g($_.msg,$_.i);$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}break}break}}$_.cws=$G($_.cws,0,$_.j)}var _87=$a($_.j+2);$P(_87,0,$_.cws);$_.cws=_87;$_.csum=$g($_.cws,0);for(var _8D=1,_8C=$_.j-1;_8D<=_8C;_8D+=1){$_.i=_8D;$_.csum=$f($_.csum+$g($_.cws,$_.i)*$_.i)}$_.csum=$_.csum%103;$p($_.cws,$_.j,$_.csum);$p($_.cws,$_.j+1,$g($_.seta,$_.stp));var _8T=$g($_.options,"debugcws")!==undefined;if(_8T){$k[$j++]="bwipp.debugcws#6437";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_code128.__6459__){$_=Object.create($_);$_.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code128.$ctx[id]=$_[id]);bwipp_code128.__6459__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s($_.cws.length*6+1);for(var _8b=0,_8a=$_.cws.length-1;_8b<=_8a;_8b+=1){$_.i=_8b;$P($_.sbs,$_.i*6,$g($_.encs,$g($_.cws,$_.i)))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _8j=$_.sbs;for(var _8k=0,_8l=_8j.length;_8k<_8l;_8k++){$k[$j++]=$g(_8j,_8k)-48}var _8n=$a();$k[$j++]=Infinity;for(var _8p=0,_8q=~~(($_.sbs.length+1)/2);_8p<_8q;_8p++){$k[$j++]=$_.height}var _8s=$a();$k[$j++]=Infinity;for(var _8u=0,_8v=~~(($_.sbs.length+1)/2);_8u<_8v;_8u++){$k[$j++]=0}var _8w=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_8n;$k[$j++]="bhs";$k[$j++]=_8s;$k[$j++]="bbs";$k[$j++]=_8w;$k[$j++]="txt";$k[$j++]=$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _95=$d();$k[$j++]=_95;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_gs1_128(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=.5;$_.linkagea=false;$_.linkagec=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.linkagea&&$_.linkagec){$k[$j++]="bwipp.gs1128badLinkage#6534";$k[$j++]="linkagea and linkagec cannot be used together";bwipp_raiseerror()}$_.text=$_.barcode;$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.c128=$a([$_.fnc1]);for(var _D=0,_C=$_.ais.length-1;_D<=_C;_D+=1){$_.i=_D;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _N=$a($_.c128.length+$_.ai.length+$_.val.length);$P(_N,0,$_.c128);$k[$j++]=_N;$k[$j++]=_N;$k[$j++]=$_.c128.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _R=$k[--$j];var _S=$k[--$j];$k[$j++]=_R;$F(_S);var _T=$a();var _U=$k[--$j];$P($k[--$j],_U,_T);var _W=$k[--$j];$k[$j++]=_W;$k[$j++]=_W;$k[$j++]=$_.c128.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=_a;$F(_b);var _c=$a();var _d=$k[--$j];$P($k[--$j],_d,_c);$_.c128=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _m=$a($_.c128.length+1);$P(_m,0,$_.c128);$p(_m,$_.c128.length,$_.fnc1);$_.c128=_m}}$_.barcode=$s(($_.c128.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.c128.length){break}var _w=$g($_.c128,$_.i);$k[$j++]=_w;if(_w==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}if($_.linkagea||$_.linkagec){$k[$j++]=$_.barcode;$k[$j++]=$_.j;if($_.linkagea){$k[$j++]="^LNKA"}else{$k[$j++]="^LNKC"}var _1B=$k[--$j];var _1C=$k[--$j];$P($k[--$j],_1C,_1B);$_.j=$_.j+5}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"height",$_.height);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _1P=$k[--$j];$_[$k[--$j]]=_1P;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_ean14(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.text=$_.barcode;var _3=$_.barcode;$k[$j++]=$s(_3.length);$k[$j++]=0;$F(_3,function(){var _5=$k[--$j];$k[$j++]=_5;if(_5!=32){var _6=$k[--$j];var _7=$k[--$j];var _8=$k[--$j];$p(_8,_7,_6);$k[$j++]=_8;$k[$j++]=$f(_7+1)}else{$j--}});var _9=$k[--$j];$_.barcode=$G($k[--$j],0,_9);$_.hasspace=$_.text.length!=$_.barcode.length;if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.ean14badLength#6649";$k[$j++]="GS1-14 must be 13 or 14 digits";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.ean14badAI#6652";$k[$j++]="GS1-14 must begin with (01) application identifier";bwipp_raiseerror()}var _K=$G($_.barcode,4,$_.barcode.length-4);for(var _L=0,_M=_K.length;_L<_M;_L++){var _N=$g(_K,_L);if(_N<48||_N>57){$k[$j++]="bwipp.ean14badCharacter#6656";$k[$j++]="GS1-14 must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _O=0;_O<=12;_O+=1){$_.i=_O;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _U=$k[--$j];$k[$j++]=_U*3}var _V=$k[--$j];var _W=$k[--$j];$_[$k[--$j]]=$f(_W+_V)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.ean14badCheckDigit#6669";$k[$j++]="Incorrect GS1-14 check digit provided";bwipp_raiseerror()}}else{var _d=$s(18);$P(_d,0,$_.barcode);$p(_d,17,$_.checksum+48);$_.barcode=_d;var _i=$_.hasspace?2:1;var _j=$s($_.text.length+_i);$P(_j,_j.length-2," ");$p(_j,_j.length-1,$_.checksum+48);$P(_j,0,$_.text);$_.text=_j}$_.gtin=$G($_.barcode,4,14);$_.barcode=$s(21);$P($_.barcode,0,"^FNC101");var _r=$_.gtin;$P($_.barcode,7,_r);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _w=$k[--$j];$_[$k[--$j]]=_w;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_sscc18(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.text=$_.barcode;var _3=$_.barcode;$k[$j++]=$s(_3.length);$k[$j++]=0;$F(_3,function(){var _5=$k[--$j];$k[$j++]=_5;if(_5!=32){var _6=$k[--$j];var _7=$k[--$j];var _8=$k[--$j];$p(_8,_7,_6);$k[$j++]=_8;$k[$j++]=$f(_7+1)}else{$j--}});var _9=$k[--$j];$_.barcode=$G($k[--$j],0,_9);$_.hasspace=$_.text.length!=$_.barcode.length;if($_.barcode.length!=21&&$_.barcode.length!=22){$k[$j++]="bwipp.sscc18badLength#6753";$k[$j++]="SSCC-18 must be 17 or 18 digits";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"(00)")){$k[$j++]="bwipp.sscc18badAI#6756";$k[$j++]="SSCC-18 must begin with (00) application identifier";bwipp_raiseerror()}var _K=$G($_.barcode,4,$_.barcode.length-4);for(var _L=0,_M=_K.length;_L<_M;_L++){var _N=$g(_K,_L);if(_N<48||_N>57){$k[$j++]="bwipp.sscc18badCharacter#6760";$k[$j++]="SSCC-18 must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _O=0;_O<=16;_O+=1){$_.i=_O;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _U=$k[--$j];$k[$j++]=_U*3}var _V=$k[--$j];var _W=$k[--$j];$_[$k[--$j]]=$f(_W+_V)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==22){if($g($_.barcode,21)!=$_.checksum+48){$k[$j++]="bwipp.sscc18badCheckDigit#6773";$k[$j++]="Incorrect SSCC-18 check digit provided";bwipp_raiseerror()}}else{var _d=$s(22);$P(_d,0,$_.barcode);$p(_d,21,$_.checksum+48);$_.barcode=_d;var _i=$_.hasspace?2:1;var _j=$s($_.text.length+_i);$P(_j,_j.length-2," ");$p(_j,_j.length-1,$_.checksum+48);$P(_j,0,$_.text);$_.text=_j}$_.sscc=$G($_.barcode,4,18);$_.barcode=$s(25);$P($_.barcode,0,"^FNC100");var _r=$_.sscc;$P($_.barcode,7,_r);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _w=$k[--$j];$_[$k[--$j]]=_w;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code39(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.hidestars=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.code39emptyData#6853";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_code39);if(!bwipp_code39.__6876__){$_=Object.create($_);$_.encs=$a(["1113313111","3113111131","1133111131","3133111111","1113311131","3113311111","1133311111","1113113131","3113113111","1133113111","3111131131","1131131131","3131131111","1111331131","3111331111","1131331111","1111133131","3111133111","1131133111","1111333111","3111111331","1131111331","3131111311","1111311331","3111311311","1131311311","1111113331","3111113311","1131113311","1111313311","3311111131","1331111131","3331111111","1311311131","3311311111","1331311111","1311113131","3311113111","1331113111","1313131111","1313111311","1311131311","1113131311","1311313111"]);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _4=0;_4<=42;_4+=1){$p($_.charvals,$G($_.barchars,_4,1),_4)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code39.$ctx[id]=$_[id]);bwipp_code39.__6876__=1;$_=Object.getPrototypeOf($_)}for(var _B=0,_A=$_.barcode.length-1;_B<=_A;_B+=1){var _F=$g($_.charvals,$G($_.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.code39badCharacter#6881";$k[$j++]="Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$_[$k[--$j]]=_J;$_.checksum=0;for(var _N=0,_M=$f($_.barlen-1);_N<=_M;_N+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_N,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.code39badCheckDigit#6895";$k[$j++]="Incorrect Code 39 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}var _g=$_.includecheck?3:2;$_.sbs=$s($f($_.barlen+_g)*10);var _k=$_.includecheck?3:2;$_.txt=$a($f($_.barlen+_k));$P($_.sbs,0,$g($_.encs,43));if(!$_.hidestars){$p($_.txt,0,$a(["*",0,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,0,$a(["",0,$_.textyoffset,$_.textfont,$_.textsize]))}for(var _12=0,_11=$f($_.barlen-1);_12<=_11;_12+=1){$_.i=_12;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.sbs,$_.i*10+10,$g($_.encs,$_.indx));$p($_.txt,$_.i+1,$a([$G($_.barcode,$_.i,1),($_.i+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}if($_.includecheck){$P($_.sbs,$f($_.barlen*10+10),$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$f($_.barlen+1),$a([$G($_.barchars,$_.checksum,1),$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen+1),$a(["",$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$f($_.barlen*10+20),$g($_.encs,43));if(!$_.hidestars){$p($_.txt,$f($_.barlen+2),$a(["*",$f($_.barlen+2)*16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen+2),$a(["",$f($_.barlen+2)*16,$_.textyoffset,$_.textfont,$_.textsize]))}}else{$P($_.sbs,$f($_.barlen*10+10),$g($_.encs,43));if(!$_.hidestars){$p($_.txt,$f($_.barlen+1),$a(["*",$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen+1),$a(["",$f($_.barlen+1)*16,$_.textyoffset,$_.textfont,$_.textsize]))}}$k[$j++]=Infinity;$k[$j++]=Infinity;var _2N=$_.sbs;for(var _2O=0,_2P=_2N.length;_2O<_2P;_2O++){$k[$j++]=$g(_2N,_2O)-48}var _2R=$a();$k[$j++]=Infinity;for(var _2T=0,_2U=~~(($_.sbs.length+1)/2);_2T<_2U;_2T++){$k[$j++]=$_.height}var _2W=$a();$k[$j++]=Infinity;for(var _2Y=0,_2Z=~~(($_.sbs.length+1)/2);_2Y<_2Z;_2Y++){$k[$j++]=0}var _2a=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2R;$k[$j++]="bhs";$k[$j++]=_2W;$k[$j++]="bbs";$k[$j++]=_2a;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2e=$d();$k[$j++]=_2e;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code39ext(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code39ext);var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];$F($_.barcode,function(){if($k[--$j]>=128){$k[$j++]="bwipp.code39extBadCharacter#7015";$k[$j++]="Code 39 Extended must contain only ASCII characters";bwipp_raiseerror()}});if(!bwipp_code39ext.__7031__){$_=Object.create($_);$_.extencs=$a(["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code39ext.$ctx[id]=$_[id]);bwipp_code39ext.__7031__=1;$_=Object.getPrototypeOf($_)}$_.newcode=$s($_.barlen*2);$_.newtext=$s($_.barlen*2);$_.j=0;for(var _K=0,_J=$_.barlen-1;_K<=_J;_K+=1){$_.i=_K;$_.extchar=$g($_.extencs,$g($_.barcode,$_.i));$P($_.newcode,$_.j,$_.extchar);var _X=$g($_.barcode,$_.i);$k[$j++]=$_.newtext;$k[$j++]=$_.j;$k[$j++]=_X;if(_X<32||_X==127){$j--;$k[$j++]=32}var _Y=$k[--$j];var _Z=$k[--$j];$p($k[--$j],_Z,_Y);if($_.extchar.length!=1){$p($_.newtext,$_.j+1,32)}$_.j=$_.j+$_.extchar.length}$_.newcode=$G($_.newcode,0,$_.j);$_.newtext=$G($_.newtext,0,$_.j);$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.newcode;$k[$j++]=$_.options;bwipp_code39();var _p=$k[--$j];$_[$k[--$j]]=_p;if($_.includetext){$_.txt=$g($_.args,"txt");for(var _w=0,_v=$_.newtext.length-1;_w<=_v;_w+=1){$_.i=_w;$_.txtentry=$g($_.txt,$_.i+1);$p($_.txtentry,0,$G($_.newtext,$_.i,1));$p($_.txt,$_.i+1,$_.txtentry)}$p($_.args,"txt",$_.txt)}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code32(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=8&&$_.barcode.length!=9){$k[$j++]="bwipp.code32badLength#7114";$k[$j++]="Italian Pharmacode must be 8 or 9 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.code32badCharacter#7118";$k[$j++]="Italian Pharmacode must contain only digits";bwipp_raiseerror()}});$_.checksum=0;for(var _6=0;_6<=7;_6+=1){$_.i=_6;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2!=0){var _B=$k[--$j];$k[$j++]=_B*2}var _C=$k[--$j];$k[$j++]=_C;if(_C>9){var _D=$k[--$j];$k[$j++]=$f(_D-9)}$_.checksum=$f($k[--$j]+$_.checksum)}$_.checksum=$_.checksum%10;if($_.barcode.length==9){if($g($_.barcode,8)!=$f($_.checksum+48)){$k[$j++]="bwipp.code32badCheckDigit#7132";$k[$j++]="Incorrect Italian Pharmacode check digit provided";bwipp_raiseerror()}}var _L=$s(10);$P(_L,0,$_.barcode);$p(_L,8,$f($_.checksum+48));$_.text=_L;$_.val=$R($s(6),$i($_.text),32);$_.barcode=$s(6);for(var _S=0;_S<=5;_S+=1){$p($_.barcode,_S,48)}$P($_.barcode,6-$_.val.length,$_.val);for(var _X=0;_X<=5;_X+=1){var _Z=$g($_.barcode,_X);$k[$j++]=_X;$k[$j++]=_Z;$k[$j++]=_Z;for(var _a=0,_b="AEIO".length;_a<_b;_a++){if($k[--$j]>=$g("AEIO",_a)){var _e=$k[--$j];$k[$j++]=$f(_e+1)}var _f=$k[--$j];$k[$j++]=_f;$k[$j++]=_f}$j--;var _h=$k[--$j];$p($_.barcode,$k[--$j],_h)}$P($_.text,1,$G($_.text,0,9));$p($_.text,0,65);$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code39();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_pzn(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.height=1;$_.pzn8=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.pzn8){if($_.barcode.length!=7&&$_.barcode.length!=8){$k[$j++]="bwipp.pzn8badLength#7215";$k[$j++]="PZN8 must be 7 or 8 digits";bwipp_raiseerror()}}else{if($_.barcode.length!=6&&$_.barcode.length!=7){$k[$j++]="bwipp.pzn7badLength#7219";$k[$j++]="PZN7 must be 6 or 7 digits";bwipp_raiseerror()}}$F($_.barcode,function(){var _8=$k[--$j];if(_8<48||_8>57){$k[$j++]="bwipp.pznBadCharacter#7224";$k[$j++]="PZN must contain only digits";bwipp_raiseerror()}});var _A=$_.pzn8?9:8;$_.msglen=_A;$_.checksum=0;for(var _D=0,_C=$_.msglen-3;_D<=_C;_D+=1){$_.i=_D;var _J=$_.pzn8?1:2;$_.checksum=$f($f($g($_.barcode,$_.i)-48)*($_.i+_J)+$_.checksum)}$_.checksum=$_.checksum%11;if($_.checksum==10){$k[$j++]="bwipp.pznBadInputSequence#7238";$k[$j++]="Incorrect PZN input sequence provided";bwipp_raiseerror()}if($_.barcode.length==$_.msglen-1){if($g($_.barcode,$_.msglen-2)!=$f($_.checksum+48)){$k[$j++]="bwipp.pznBadCheckDigit#7242";$k[$j++]="Incorrect PZN check digit provided";bwipp_raiseerror()}}var _U=$s($_.msglen);$p(_U,0,45);$P(_U,1,$_.barcode);$p(_U,$_.msglen-1,$f($_.checksum+48));$_.msg=_U;$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.msg;$k[$j++]=$_.options;bwipp_code39();var _b=$k[--$j];$_[$k[--$j]]=_b;$_.text=$s($_.msglen+5);$P($_.text,0,"PZN - ");$P($_.text,6,$G($_.msg,1,$_.msglen-1));var _r=$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]);$p($_.args,"txt",_r);$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code93(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code93);if(!bwipp_code93.__7342__){$_=Object.create($_);$_.encs=$a(["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"]);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$g($_.barchars,_3),_3)}$_.sft1=-1;$_.sft2=-2;$_.sft3=-3;$_.sft4=-4;var _7=$_.charvals;$p(_7,$_.sft1,43);$p($_.charvals,$_.sft2,44);$p($_.charvals,$_.sft3,45);$p($_.charvals,$_.sft4,46);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code93.$ctx[id]=$_[id]);bwipp_code93.__7342__=1;$_=Object.getPrototypeOf($_)}var _M=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["SFT$",$_.sft1],["SFT%",$_.sft2],["SFT/",$_.sft3],["SFT+",$_.sft4]]);$_.fncvals=_M;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _P=$k[--$j];$_[$k[--$j]]=_P;$_.msglen=$_.msg.length;$F($_.msg,function(){var _V=$g($_.charvals,$k[--$j])!==undefined;if(!_V){$k[$j++]="bwipp.code93BadCharacter#7359";$k[$j++]="Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters";bwipp_raiseerror()}});if($_.includecheck){$_.sbs=$s($_.msglen*6+25)}else{$_.sbs=$s($_.msglen*6+13)}$_.txt=$a($_.msglen);$P($_.sbs,0,$g($_.encs,47));$_.checksum1=0;$_.checksum2=0;for(var _i=0,_h=$_.msglen-1;_i<=_h;_i+=1){$_.i=_i;$_.indx=$g($_.charvals,$g($_.msg,$_.i));$P($_.sbs,$_.i*6+6,$g($_.encs,$_.indx));var _v=$g($_.msg,$_.i);$k[$j++]="char";$k[$j++]=_v;if(_v<0){$j--;$k[$j++]=" "}else{var _w=$s(1);$p(_w,0,$k[--$j]);$k[$j++]=_w}var _y=$k[--$j];$_[$k[--$j]]=_y;$p($_.txt,$_.i,$a([$_.char,$_.i*9+9,$_.textyoffset,$_.textfont,$_.textsize]));$_.checksum1=$f($_.checksum1+(($_.msglen-$_.i-1)%20+1)*$_.indx);$_.checksum2=$f($_.checksum2+(($_.msglen-$_.i)%15+1)*$_.indx)}if($_.includecheck){$_.checksum1=$_.checksum1%47;$_.checksum2=$f($_.checksum2+$_.checksum1)%47;$P($_.sbs,$_.msglen*6+6,$g($_.encs,$_.checksum1));$P($_.sbs,$_.msglen*6+12,$g($_.encs,$_.checksum2));$P($_.sbs,$_.msglen*6+18,$g($_.encs,48))}else{$P($_.sbs,$_.msglen*6+6,$g($_.encs,48))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1c=$_.sbs;for(var _1d=0,_1e=_1c.length;_1d<_1e;_1d++){$k[$j++]=$g(_1c,_1d)-48}var _1g=$a();$k[$j++]=Infinity;for(var _1i=0,_1j=~~(($_.sbs.length+1)/2);_1i<_1j;_1i++){$k[$j++]=$_.height}var _1l=$a();$k[$j++]=Infinity;for(var _1n=0,_1o=~~(($_.sbs.length+1)/2);_1n<_1o;_1n++){$k[$j++]=0}var _1p=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_1g;$k[$j++]="bhs";$k[$j++]=_1l;$k[$j++]="bbs";$k[$j++]=_1p;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _1t=$d();$k[$j++]=_1t;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code93ext(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_code93ext);var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];var _7=$k[--$j];$_[_7]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];if(!bwipp_code93ext.__7487__){$_=Object.create($_);$_.extencs=$a(["^SFT%U","^SFT$A","^SFT$B","^SFT$C","^SFT$D","^SFT$E","^SFT$F","^SFT$G","^SFT$H","^SFT$I","^SFT$J","^SFT$K","^SFT$L","^SFT$M","^SFT$N","^SFT$O","^SFT$P","^SFT$Q","^SFT$R","^SFT$S","^SFT$T","^SFT$U","^SFT$V","^SFT$W","^SFT$X","^SFT$Y","^SFT$Z","^SFT%A","^SFT%B","^SFT%C","^SFT%D","^SFT%E"," ","^SFT/A","^SFT/B","^SFT/C","$","%","^SFT/F","^SFT/G","^SFT/H","^SFT/I","^SFT/J","+","^SFT/L","-",".","/","0","1","2","3","4","5","6","7","8","9","^SFT/Z","^SFT%F","^SFT%G","^SFT%H","^SFT%I","^SFT%J","^SFT%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","^SFT%K","^SFT%L","^SFT%M","^SFT%N","^SFT%O","^SFT%W","^SFT+A","^SFT+B","^SFT+C","^SFT+D","^SFT+E","^SFT+F","^SFT+G","^SFT+H","^SFT+I","^SFT+J","^SFT+K","^SFT+L","^SFT+M","^SFT+N","^SFT+O","^SFT+P","^SFT+Q","^SFT+R","^SFT+S","^SFT+T","^SFT+U","^SFT+V","^SFT+W","^SFT+X","^SFT+Y","^SFT+Z","^SFT%P","^SFT%Q","^SFT%R","^SFT%S","^SFT%T"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code93ext.$ctx[id]=$_[id]);bwipp_code93ext.__7487__=1;$_=Object.getPrototypeOf($_)}$_.newcode=$s($_.barlen*6);$_.newtext=$s($_.barlen*6);$_.j=0;$_.k=0;for(var _I=0,_H=$_.barlen-1;_I<=_H;_I+=1){$_.i=_I;var _L=$g($_.barcode,$_.i);$k[$j++]=_L;if(_L>127){$j--;$k[$j++]="bwipp.code93extbadCharacter#7496";$k[$j++]="Code 93 Extended only support ASCII characters with values 0 to 127";bwipp_raiseerror()}$_.extchar=$g($_.extencs,$k[--$j]);$_.extlen=$_.extchar.length;$P($_.newcode,$_.j,$_.extchar);var _X=$g($_.barcode,$_.i);$k[$j++]=$_.newtext;$k[$j++]=$_.k;$k[$j++]=_X;if(_X<32||_X==127){$j--;$k[$j++]=32}var _Y=$k[--$j];var _Z=$k[--$j];$p($k[--$j],_Z,_Y);if($_.extlen!=1){$p($_.newtext,$_.k+1,32)}$_.j=$_.j+$_.extlen;var _i=$_.extlen==1?1:2;$_.k=$_.k+_i}$_.newcode=$G($_.newcode,0,$_.j);$_.newtext=$G($_.newtext,0,$_.k);$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.newcode;$k[$j++]=$_.options;bwipp_code93();var _t=$k[--$j];$_[$k[--$j]]=_t;if($_.includetext){$_.txt=$g($_.args,"txt");for(var _10=0,_z=$_.newtext.length-1;_10<=_z;_10+=1){$_.i=_10;$_.txtentry=$g($_.txt,$_.i);$p($_.txtentry,0,$G($_.newtext,$_.i,1));$p($_.txt,$_.i,$_.txtentry)}$p($_.args,"txt",$_.txt)}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_interleaved2of5(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_interleaved2of5);$F($_.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.interleaved2of5badCharacter#7582";$k[$j++]="Interleaved 2 of 5 must contain only digits";bwipp_raiseerror()}});$_.barlen=$_.barcode.length;if($_.barlen%2==0&&$_.includecheck||$_.barlen%2!=0&&!$_.includecheck){$_.pad=$s($_.barlen+1);$p($_.pad,0,48);$P($_.pad,1,$_.barcode);$_.barcode=$_.pad;$_.barlen=$_.barlen+1}if($_.includecheck){$_.checksum=0;for(var _J=0,_I=$_.barlen-1;_J<=_I;_J+=1){$_.i=_J;if($_.i%2==0){$_.checksum=$_.checksum+($g($_.barcode,$_.i)-48)*3}else{$_.checksum=$_.checksum+($g($_.barcode,$_.i)-48)}}$_.checksum=(10-$_.checksum%10)%10;$_.pad=$s($_.barlen+1);$P($_.pad,0,$_.barcode);$p($_.pad,$_.barlen,$_.checksum+48);$_.barcode=$_.pad;$_.barlen=$_.barlen+1}if(!bwipp_interleaved2of5.__7628__){$_=Object.create($_);$_.encs=$a(["11221","21112","12112","22111","11212","21211","12211","11122","21121","12121","1111","2111"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_interleaved2of5.$ctx[id]=$_[id]);bwipp_interleaved2of5.__7628__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s($_.barlen*5+8);$_.txt=$a($_.barlen);$P($_.sbs,0,$g($_.encs,10));for(var _o=0,_n=$_.barlen-1;_o<=_n;_o+=2){$_.i=_o;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enca=$g($_.encs,$_.indx);$X($_.barchars,$G($_.barcode,$_.i+1,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.encb=$g($_.encs,$_.indx);$_.intl=$s($_.enca.length*2);for(var _19=0,_18=$_.enca.length-1;_19<=_18;_19+=1){$_.j=_19;$_.achar=$g($_.enca,$_.j);$_.bchar=$g($_.encb,$_.j);$p($_.intl,$_.j*2,$_.achar);$p($_.intl,$_.j*2+1,$_.bchar)}$P($_.sbs,$_.i*5+4,$_.intl);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*9+4,$_.textyoffset,$_.textfont,$_.textsize]));if($_.includecheck&&!$_.includecheckintext&&$_.barlen-2==$_.i){$p($_.txt,$_.i+1,$a([" ",($_.i+1)*9+4,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.i+1,$a([$G($_.barcode,$_.i+1,1),($_.i+1)*9+4,$_.textyoffset,$_.textfont,$_.textsize]))}}$P($_.sbs,$_.barlen*5+4,$g($_.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _1y=$_.sbs;for(var _1z=0,_20=_1y.length;_1z<_20;_1z++){$k[$j++]=$g(_1y,_1z)-48}var _22=$a();$k[$j++]=Infinity;for(var _24=0,_25=~~(($_.sbs.length+1)/2);_24<_25;_24++){$k[$j++]=$_.height}var _27=$a();$k[$j++]=Infinity;for(var _29=0,_2A=~~(($_.sbs.length+1)/2);_29<_2A;_29++){$k[$j++]=0}var _2B=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_22;$k[$j++]="bhs";$k[$j++]=_27;$k[$j++]="bbs";$k[$j++]=_2B;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="barratio";$k[$j++]=2;$k[$j++]="spaceratio";$k[$j++]=2;$k[$j++]="opt";$k[$j++]=$_.options;var _2F=$d();$k[$j++]=_2F;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_itf14(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.includecheckintext=true;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=3.5;$_.height=.5;$_.showborder=true;$_.borderwidth=4;$_.borderleft=10;$_.borderright=10;$_.bordertop=-.55;$_.borderbottom=-.55;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.text=$_.barcode;var _3=$_.barcode;$k[$j++]=$s(_3.length);$k[$j++]=0;$F(_3,function(){var _5=$k[--$j];$k[$j++]=_5;if(_5!=32){var _6=$k[--$j];var _7=$k[--$j];var _8=$k[--$j];$p(_8,_7,_6);$k[$j++]=_8;$k[$j++]=$f(_7+1)}else{$j--}});var _9=$k[--$j];$_.barcode=$G($k[--$j],0,_9);$_.hasspace=$_.text.length!=$_.barcode.length;if($_.barcode.length!=13&&$_.barcode.length!=14){$k[$j++]="bwipp.itf14badLength#7750";$k[$j++]="ITF-14 must be 13 or 14 digits";bwipp_raiseerror()}var _G=$_.barcode;for(var _H=0,_I=_G.length;_H<_I;_H++){var _J=$g(_G,_H);if(_J<48||_J>57){$k[$j++]="bwipp.itf14badCharacter#7754";$k[$j++]="ITF-14 must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _K=0;_K<=12;_K+=1){$_.i=_K;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){var _Q=$k[--$j];$k[$j++]=_Q*3}var _R=$k[--$j];var _S=$k[--$j];$_[$k[--$j]]=$f(_S+_R)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==14){if($g($_.barcode,13)!=$_.checksum+48){$k[$j++]="bwipp.itf14badCheckDigit#7767";$k[$j++]="Incorrect ITF-14 check digit provided";bwipp_raiseerror()}}else{var _Z=$s(14);$P(_Z,0,$_.barcode);$p(_Z,13,$_.checksum+48);$_.barcode=_Z;var _e=$_.hasspace?2:1;var _f=$s($_.text.length+_e);$P(_f,_f.length-2," ");$p(_f,_f.length-1,$_.checksum+48);$P(_f,0,$_.text);$_.text=_f}var _i=$_.options;$p(_i,"dontdraw",true);$p($_.options,"showborder",$_.showborder);$p($_.options,"borderwidth",$_.borderwidth);$p($_.options,"borderleft",$_.borderleft);$p($_.options,"borderright",$_.borderright);var _r=$_.options;$p(_r,"bordertop",$_.bordertop);$p($_.options,"borderbottom",$_.borderbottom);$p($_.options,"height",$_.height);$p($_.options,"textyoffset",$_.textyoffset);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_interleaved2of5();var _11=$k[--$j];$_[$k[--$j]]=_11;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_identcode(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=11&&$_.barcode.length!=12){$k[$j++]="bwipp.identcodeBadLength#7845";$k[$j++]="Deutsche Post Identcode must be 11 or 12 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.identcodeBadCharacter#7849";$k[$j++]="Deutsche Post Identcode must contain only digits";bwipp_raiseerror()}});$_.checksum=0;for(var _6=0;_6<=10;_6+=1){$_.i=_6;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){var _C=$k[--$j];$k[$j++]=_C*4}else{var _D=$k[--$j];$k[$j++]=_D*9}var _E=$k[--$j];var _F=$k[--$j];$_[$k[--$j]]=$f(_F+_E)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==12){if($g($_.barcode,11)!=$_.checksum+48){$k[$j++]="bwipp.identcodeBadCheckDigit#7862";$k[$j++]="Incorrect Deutsche Post Identcode check digit provided";bwipp_raiseerror()}}var _M=$s(12);$P(_M,0,$_.barcode);$p(_M,11,$_.checksum+48);$_.barcode=_M;$_.text=$Z($s(16)," . . ");$P($_.text,0,$G($_.barcode,0,2));$P($_.text,3,$G($_.barcode,2,3));$P($_.text,7,$G($_.barcode,5,3));$P($_.text,11,$G($_.barcode,8,3));$P($_.text,15,$G($_.barcode,11,1));$p($_.options,"dontdraw",true);$p($_.options,"includecheck",false);var _i=$_.barcode;$k[$j++]="args";$k[$j++]=_i;$k[$j++]=$_.options;bwipp_interleaved2of5();var _k=$k[--$j];$_[$k[--$j]]=_k;var _r=$_.textsize;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,_r])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_leitcode(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=13&&$_.barcode.length!=14){$k[$j++]="bwipp.leitcodeBadLength#7935";$k[$j++]="Deutsche Post Leitcode must be 13 or 14 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.leitcodeBadCharacter#7939";$k[$j++]="Deutsche Post Leitcode must contain only digits";bwipp_raiseerror()}});$_.checksum=0;for(var _6=0;_6<=12;_6+=1){$_.i=_6;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($_.i%2==0){var _C=$k[--$j];$k[$j++]=_C*4}else{var _D=$k[--$j];$k[$j++]=_D*9}var _E=$k[--$j];var _F=$k[--$j];$_[$k[--$j]]=$f(_F+_E)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==14){if($g($_.barcode,13)!=$_.checksum+48){$k[$j++]="bwipp.leitcodeBadCheckDigit#7952";$k[$j++]="Incorrect Deutsche Post Leitcode check digit provided";bwipp_raiseerror()}}var _M=$s(14);$P(_M,0,$_.barcode);$p(_M,13,$_.checksum+48);$_.barcode=_M;$_.text=$Z($s(18)," . . . ");$P($_.text,0,$G($_.barcode,0,5));$P($_.text,6,$G($_.barcode,5,3));$P($_.text,10,$G($_.barcode,8,3));$P($_.text,14,$G($_.barcode,11,2));$P($_.text,17,$G($_.barcode,13,1));$p($_.options,"dontdraw",true);$p($_.options,"includecheck",false);var _i=$_.barcode;$k[$j++]="args";$k[$j++]=_i;$k[$j++]=$_.options;bwipp_interleaved2of5();var _k=$k[--$j];$_[$k[--$j]]=_k;var _r=$_.textsize;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,_r])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_databaromni(){$_=Object.create($_);$_.dontdraw=false;$_.height=33/72;$_.linkage=false;$_.format="omni";$_.barxmult=33;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databaromniBadLength#8024";$k[$j++]="GS1 DataBar Omnidirectional must be 13 or 14 digits";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databaromniBadAI#8027";$k[$j++]="GS1 DataBar Omnidirectional must begin with (01) application identifier";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databaromniBadCharacter#8031";$k[$j++]="GS1 DataBar Omnidirectional must contain only digits";bwipp_raiseerror()}}if($_.barxmult<33){$k[$j++]="bwipp.databarStackedOmniBarXmult#8036";$k[$j++]="GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33";bwipp_raiseerror()}if($ne($_.format,"omni")&&$ne($_.format,"stacked")&&$ne($_.format,"stackedomni")&&$ne($_.format,"truncated")){$k[$j++]="bwipp.databaromniBadFormat#8040";$k[$j++]="Valid formats are omni, stacked, stackedomni and truncated";bwipp_raiseerror()}if($eq($_.format,"truncated")){$_.height=13/72}bwipp_loadctx(bwipp_databaromni);$_.checksum=0;for(var _I=0;_I<=12;_I+=1){$_.i=_I;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _O=$k[--$j];$k[$j++]=_O*3}var _P=$k[--$j];var _Q=$k[--$j];$_[$k[--$j]]=$f(_Q+_P)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databaromniBadCheckDigit#8056";$k[$j++]="Incorrect GS1 DataBar Omnidirectional check digit provided";bwipp_raiseerror()}}var _X=$s(18);$P(_X,0,$_.barcode);$p(_X,17,$_.checksum+48);$_.barcode=_X;$_.txt=$a($_.barcode.length);for(var _e=0,_d=$_.barcode.length-1;_e<=_d;_e+=1){$_.i=_e;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.ncr=function(){var _l=$k[--$j];var _m=$k[--$j];var _n=$f(_m-_l);if(_l<$f(_m-_l)){var _=_n;_n=_l;_l=_}$k[$j++]=_n;$k[$j++]=1;$k[$j++]=1;for(var _p=_m,_o=$f(_l+1);_p>=_o;_p-=1){var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];$k[$j++]=_s;$k[$j++]=_r;$k[$j++]=_q*_p;if($le(_r,_s)){var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=$f(_u+1);$k[$j++]=~~(_t/_u)}}for(;;){var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;$k[$j++]=_v;if($gt(_w,_x)){break}var _y=$k[--$j];var _z=$k[--$j];$k[$j++]=$f(_z+1);$k[$j++]=~~(_y/_z)}var _10=$k[--$j];var _11=$k[--$j];$k[$j++]=_10;$k[$j++]=_11;$j--;var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_12;$k[$j++]=_13;$j--};$_.getRSSwidths=function(){$_.oe=$k[--$j];$_.el=$k[--$j];$_.mw=$k[--$j];$_.nm=$k[--$j];$_.val=$k[--$j];$_.out=$a($_.el);$_.mask=0;for(var _1D=0,_1C=$f($_.el-2);_1D<=_1C;_1D+=1){$_.bar=_1D;$_.ew=1;var _1F=$_.bar;$_.mask=$_.mask|(_1F<0?1>>>-_1F:1<<_1F);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($_.nm-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1K=$k[--$j];$_[$k[--$j]]=_1K;if($_.oe&&$_.mask==0&&$f($f($f($_.nm-$_.ew)-$_.el*2)+$_.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$_.sval;$k[$j++]=$f($f($f($_.nm-$_.ew)-$_.el)+$_.bar);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1Z=$k[--$j];var _1a=$k[--$j];$_[$k[--$j]]=$f(_1a-_1Z)}if($f($_.el-$_.bar)>2){$_.lval=0;for(var _1k=$f($f($f($f($_.nm-$_.ew)-$_.el)+$_.bar)+2),_1j=$f($_.mw+1);_1k>=_1j;_1k-=1){$k[$j++]=$f($f($f($_.nm-_1k)-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-3);$_.ncr();$_.lval=$f($k[--$j]+$_.lval)}$_.sval=$f($_.sval-$_.lval*$f($f($_.el-$_.bar)-1))}else{if($f($_.nm-$_.ew)>$_.mw){$_.sval=$f($_.sval-1)}}$_.val=$f($_.val-$_.sval);if($_.val<0){break}$_.ew=$_.ew+1;var _24=$_.bar;$_.mask=$_.mask&~(_24<0?1>>>-_24:1<<_24)}$_.val=$f($_.val+$_.sval);$_.nm=$f($_.nm-$_.ew);$p($_.out,$_.bar,$_.ew)}$p($_.out,$f($_.el-1),$_.nm);$k[$j++]=$_.out};$k[$j++]=Infinity;var _2H=$_.linkage?1:0;var _2J=$G($_.barcode,4,13);$k[$j++]=_2H;for(var _2K=0,_2L=_2J.length;_2K<_2L;_2K++){$k[$j++]=$f($g(_2J,_2K)-48)}$_.binval=$a();for(var _2O=0;_2O<=12;_2O+=1){$_.i=_2O;var _2P=$_.binval;var _2Q=$_.i;$p(_2P,_2Q+1,$f($g(_2P,_2Q+1)+$g($_.binval,$_.i)%4537077*10));$p($_.binval,$_.i,~~($g($_.binval,$_.i)/4537077))}$_.right=$g($_.binval,13)%4537077;var _2c=$_.binval;$p(_2c,13,~~($g(_2c,13)/4537077));$_.left=0;$_.i=true;for(var _2e=0;_2e<=13;_2e+=1){$_.j=_2e;var _2h=$g($_.binval,$_.j);$k[$j++]=_2h;if(_2h==0&&$_.i){$j--}else{$_.i=false;$_.left=$f($_.left+$k[--$j]*~~Math.pow(10,13-$_.j))}}$_.d1=~~($_.left/1597);$_.d2=$_.left%1597;$_.d3=~~($_.right/1597);$_.d4=$_.right%1597;if(!bwipp_databaromni.__8172__){$_=Object.create($_);$_.tab164=$a([160,0,12,4,8,1,161,1,960,161,10,6,6,3,80,10,2014,961,8,8,4,5,31,34,2714,2015,6,10,3,6,10,70,2840,2715,4,12,1,8,1,126]);$_.tab154=$a([335,0,5,10,2,7,4,84,1035,336,7,8,4,5,20,35,1515,1036,9,6,6,3,48,10,1596,1516,11,4,8,1,81,1]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databaromni.$ctx[id]=$_[id]);bwipp_databaromni.__8172__=1;$_=Object.getPrototypeOf($_)}$_.i=0;for(;;){if($_.d1<=$g($_.tab164,$_.i)){var _2z=$G($_.tab164,$_.i+1,7);for(var _30=0,_31=_2z.length;_30<_31;_30++){$k[$j++]=$g(_2z,_30)}$_.d1te=$k[--$j];$_.d1to=$k[--$j];$_.d1mwe=$k[--$j];$_.d1mwo=$k[--$j];$_.d1ele=$k[--$j];$_.d1elo=$k[--$j];$_.d1gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d2<=$g($_.tab154,$_.i)){var _3H=$G($_.tab154,$_.i+1,7);for(var _3I=0,_3J=_3H.length;_3I<_3J;_3I++){$k[$j++]=$g(_3H,_3I)}$_.d2te=$k[--$j];$_.d2to=$k[--$j];$_.d2mwe=$k[--$j];$_.d2mwo=$k[--$j];$_.d2ele=$k[--$j];$_.d2elo=$k[--$j];$_.d2gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d3<=$g($_.tab164,$_.i)){var _3Z=$G($_.tab164,$_.i+1,7);for(var _3a=0,_3b=_3Z.length;_3a<_3b;_3a++){$k[$j++]=$g(_3Z,_3a)}$_.d3te=$k[--$j];$_.d3to=$k[--$j];$_.d3mwe=$k[--$j];$_.d3mwo=$k[--$j];$_.d3ele=$k[--$j];$_.d3elo=$k[--$j];$_.d3gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d4<=$g($_.tab154,$_.i)){var _3r=$G($_.tab154,$_.i+1,7);for(var _3s=0,_3t=_3r.length;_3s<_3t;_3s++){$k[$j++]=$g(_3r,_3s)}$_.d4te=$k[--$j];$_.d4to=$k[--$j];$_.d4mwe=$k[--$j];$_.d4mwo=$k[--$j];$_.d4ele=$k[--$j];$_.d4elo=$k[--$j];$_.d4gs=$k[--$j];break}$_.i=$_.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($_.d1-$_.d1gs)/$_.d1te);$k[$j++]=$_.d1elo;$k[$j++]=$_.d1mwo;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _48=$k[--$j];$_[$k[--$j]]=_48;$k[$j++]="d1we";$k[$j++]=$f($_.d1-$_.d1gs)%$_.d1te;$k[$j++]=$_.d1ele;$k[$j++]=$_.d1mwe;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4F=$k[--$j];$_[$k[--$j]]=_4F;$k[$j++]="d2wo";$k[$j++]=$f($_.d2-$_.d2gs)%$_.d2to;$k[$j++]=$_.d2elo;$k[$j++]=$_.d2mwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4M=$k[--$j];$_[$k[--$j]]=_4M;$k[$j++]="d2we";$k[$j++]=~~($f($_.d2-$_.d2gs)/$_.d2to);$k[$j++]=$_.d2ele;$k[$j++]=$_.d2mwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _4T=$k[--$j];$_[$k[--$j]]=_4T;$k[$j++]="d3wo";$k[$j++]=~~($f($_.d3-$_.d3gs)/$_.d3te);$k[$j++]=$_.d3elo;$k[$j++]=$_.d3mwo;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _4a=$k[--$j];$_[$k[--$j]]=_4a;$k[$j++]="d3we";$k[$j++]=$f($_.d3-$_.d3gs)%$_.d3te;$k[$j++]=$_.d3ele;$k[$j++]=$_.d3mwe;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4h=$k[--$j];$_[$k[--$j]]=_4h;$k[$j++]="d4wo";$k[$j++]=$f($_.d4-$_.d4gs)%$_.d4to;$k[$j++]=$_.d4elo;$k[$j++]=$_.d4mwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _4o=$k[--$j];$_[$k[--$j]]=_4o;$k[$j++]="d4we";$k[$j++]=~~($f($_.d4-$_.d4gs)/$_.d4to);$k[$j++]=$_.d4ele;$k[$j++]=$_.d4mwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _4v=$k[--$j];$_[$k[--$j]]=_4v;$_.d1w=$a(8);for(var _4y=0;_4y<=3;_4y+=1){$_.i=_4y;$p($_.d1w,$_.i*2,$g($_.d1wo,$_.i));$p($_.d1w,$_.i*2+1,$g($_.d1we,$_.i))}$_.d2w=$a(8);for(var _5A=0;_5A<=3;_5A+=1){$_.i=_5A;$p($_.d2w,7-$_.i*2,$g($_.d2wo,$_.i));$p($_.d2w,6-$_.i*2,$g($_.d2we,$_.i))}$_.d3w=$a(8);for(var _5M=0;_5M<=3;_5M+=1){$_.i=_5M;$p($_.d3w,7-$_.i*2,$g($_.d3wo,$_.i));$p($_.d3w,6-$_.i*2,$g($_.d3we,$_.i))}$_.d4w=$a(8);for(var _5Y=0;_5Y<=3;_5Y+=1){$_.i=_5Y;$p($_.d4w,$_.i*2,$g($_.d4wo,$_.i));$p($_.d4w,$_.i*2+1,$g($_.d4we,$_.i))}$k[$j++]=Infinity;var _5j=$_.d1w;for(var _5k=0,_5l=_5j.length;_5k<_5l;_5k++){$k[$j++]=$g(_5j,_5k)}var _5n=$_.d2w;for(var _5o=0,_5p=_5n.length;_5o<_5p;_5o++){$k[$j++]=$g(_5n,_5o)}var _5r=$_.d3w;for(var _5s=0,_5t=_5r.length;_5s<_5t;_5s++){$k[$j++]=$g(_5r,_5s)}var _5v=$_.d4w;for(var _5w=0,_5x=_5v.length;_5w<_5x;_5w++){$k[$j++]=$g(_5v,_5w)}$_.widths=$a();if(!bwipp_databaromni.__8279__){$_=Object.create($_);$_.checkweights=$a([1,3,9,27,2,6,18,54,58,72,24,8,29,36,12,4,74,51,17,32,37,65,48,16,64,34,23,69,49,68,46,59]);$_.checkwidths=$a([3,8,2,1,1,3,5,5,1,1,3,3,7,1,1,3,1,9,1,1,2,7,4,1,1,2,5,6,1,1,2,3,8,1,1,1,5,7,1,1,1,3,9,1,1]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databaromni.$ctx[id]=$_[id]);bwipp_databaromni.__8279__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _63=0;_63<=31;_63+=1){$_.i=_63;$_.checksum=$f($_.checksum+$g($_.widths,$_.i)*$g($_.checkweights,$_.i))}$_.checksum=$_.checksum%79;if($_.checksum>=8){$_.checksum=$f($_.checksum+1)}if($_.checksum>=72){$_.checksum=$f($_.checksum+1)}$_.checklt=$G($_.checkwidths,~~($_.checksum/9)*5,5);$_.checkrtrev=$G($_.checkwidths,$_.checksum%9*5,5);$_.checkrt=$a(5);for(var _6N=0;_6N<=4;_6N+=1){$_.i=_6N;$p($_.checkrt,$_.i,$g($_.checkrtrev,4-$_.i))}if($eq($_.format,"omni")||$eq($_.format,"truncated")){$k[$j++]=Infinity;var _6V=$_.d1w;$k[$j++]=1;for(var _6W=0,_6X=_6V.length;_6W<_6X;_6W++){$k[$j++]=$g(_6V,_6W)}var _6Z=$_.checklt;for(var _6a=0,_6b=_6Z.length;_6a<_6b;_6a++){$k[$j++]=$g(_6Z,_6a)}var _6d=$_.d2w;for(var _6e=0,_6f=_6d.length;_6e<_6f;_6e++){$k[$j++]=$g(_6d,_6e)}var _6h=$_.d4w;for(var _6i=0,_6j=_6h.length;_6i<_6j;_6i++){$k[$j++]=$g(_6h,_6i)}var _6l=$_.checkrt;for(var _6m=0,_6n=_6l.length;_6m<_6n;_6m++){$k[$j++]=$g(_6l,_6m)}var _6p=$_.d3w;for(var _6q=0,_6r=_6p.length;_6q<_6r;_6q++){$k[$j++]=$g(_6p,_6q)}$k[$j++]=1;$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _6u=$_.sbs;$k[$j++]=Infinity;for(var _6w=0,_6x=~~(($_.sbs.length+1)/2);_6w<_6x;_6w++){$k[$j++]=$_.height}var _6z=$a();$k[$j++]=Infinity;for(var _71=0,_72=~~(($_.sbs.length+1)/2);_71<_72;_71++){$k[$j++]=0}var _73=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_6u;$k[$j++]="bhs";$k[$j++]=_6z;$k[$j++]="bbs";$k[$j++]=_73;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="borderleft";$k[$j++]=0;$k[$j++]="borderright";$k[$j++]=0;$k[$j++]="opt";$k[$j++]=$_.options;var _76=$d();$k[$j++]=_76;if(!$_.dontdraw){bwipp_renlinear()}}else{$k[$j++]=Infinity;var _78=$_.d1w;$k[$j++]=1;$k[$j++]=1;for(var _79=0,_7A=_78.length;_79<_7A;_79++){$k[$j++]=$g(_78,_79)}var _7C=$_.checklt;for(var _7D=0,_7E=_7C.length;_7D<_7E;_7D++){$k[$j++]=$g(_7C,_7D)}var _7G=$_.d2w;for(var _7H=0,_7I=_7G.length;_7H<_7I;_7H++){$k[$j++]=$g(_7G,_7H)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$_.top=$a();$k[$j++]=Infinity;var _7L=$_.d4w;$k[$j++]=1;$k[$j++]=1;for(var _7M=0,_7N=_7L.length;_7M<_7N;_7M++){$k[$j++]=$g(_7L,_7M)}var _7P=$_.checkrt;for(var _7Q=0,_7R=_7P.length;_7Q<_7R;_7Q++){$k[$j++]=$g(_7P,_7Q)}var _7T=$_.d3w;for(var _7U=0,_7V=_7T.length;_7U<_7V;_7U++){$k[$j++]=$g(_7T,_7U)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$_.bot=$a();for(var _7Y=0;_7Y<=24;_7Y+=2){$_.i=_7Y;for(var _7c=0,_7d=$g($_.top,$_.i);_7c<_7d;_7c++){$k[$j++]=0}for(var _7h=0,_7i=$g($_.top,$_.i+1);_7h<_7i;_7h++){$k[$j++]=1}}$as($a(50));$_.top=$k[--$j];for(var _7l=0;_7l<=24;_7l+=2){$_.i=_7l;for(var _7p=0,_7q=$g($_.bot,$_.i);_7p<_7q;_7p++){$k[$j++]=1}for(var _7u=0,_7v=$g($_.bot,$_.i+1);_7u<_7v;_7u++){$k[$j++]=0}}$as($a(50));$_.bot=$k[--$j];if($eq($_.format,"stacked")){$_.sep=$a(50);$p($_.sep,0,0);for(var _81=1;_81<=49;_81+=1){$_.i=_81;if($eq($g($_.top,$_.i),$g($_.bot,$_.i))){$p($_.sep,$_.i,$f(1-$g($_.top,$_.i)))}else{$p($_.sep,$_.i,$f(1-$g($_.sep,$_.i-1)))}}$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,46,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _8M=0,_8N=5;_8M<_8N;_8M++){$q($_.top)}$q($_.sep);for(var _8Q=0,_8R=7;_8Q<_8R;_8Q++){$q($_.bot)}$_.pixs=$a();$_.pixy=~~($_.pixs.length/50)}if($eq($_.format,"stackedomni")){$k[$j++]=Infinity;$F($_.top,function(){var _8X=$k[--$j];$k[$j++]=$f(1-_8X)});$_.sep1=$a();$P($_.sep1,0,$a([0,0,0,0]));$P($_.sep1,46,$a([0,0,0,0]));for(var _8d=18;_8d<=30;_8d+=1){$_.i=_8d;if($g($_.top,$_.i)==0){if($g($_.top,$_.i-1)==1){$k[$j++]=1}else{var _8n=$g($_.sep1,$_.i-1)==0?1:0;$k[$j++]=_8n}}else{$k[$j++]=0}$p($_.sep1,$_.i,$k[--$j])}$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _8r=0,_8s=21;_8r<_8s;_8r++){$k[$j++]=0;$k[$j++]=1}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.sep2=$a();$k[$j++]=Infinity;$F($_.bot,function(){var _8v=$k[--$j];$k[$j++]=$f(1-_8v)});$_.sep3=$a();$P($_.sep3,0,$a([0,0,0,0]));$P($_.sep3,46,$a([0,0,0,0]));for(var _91=19;_91<=31;_91+=1){$_.i=_91;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _9B=$g($_.sep3,$_.i-1)==0?1:0;$k[$j++]=_9B}}else{$k[$j++]=0}$p($_.sep3,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _9G=0;_9G<=12;_9G+=1){var _9L=$k[--$j];$k[$j++]=_9L&&$eq($g($_.bot,_9G+19),$g($_.f3,_9G))}if($k[--$j]){$P($_.sep3,19,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}$k[$j++]=Infinity;for(var _9Q=0,_9R=$_.barxmult;_9Q<_9R;_9Q++){$q($_.top)}$q($_.sep1);$q($_.sep2);$q($_.sep3);for(var _9X=0,_9Y=$_.barxmult;_9X<_9Y;_9X++){$q($_.bot)}$_.pixs=$a();$_.pixy=~~($_.pixs.length/50)}var _9g=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",50],["pixy",$_.pixy],["height",$_.pixy/72],["width",50/72],["borderleft",0],["borderright",0],["bordertop",0],["borderbottom",0],["opt",$_.options]]);$k[$j++]=_9g;if(!$_.dontdraw){bwipp_renmatrix()}}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_databarstacked(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databarstackedBadLength#8468";$k[$j++]="GS1 DataBar Stacked must be 13 or 14 digits";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedBadAI#8471";$k[$j++]="GS1 DataBar Stacked must begin with (01) application identifier";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databarstackedBadCharacter#8475";$k[$j++]="GS1 DataBar Stacked must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _C=0;_C<=12;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databarstackedBadCheckDigit#8488";$k[$j++]="Incorrect GS1 DataBar Stacked check digit provided";bwipp_raiseerror()}}var _R=$s(18);$P(_R,0,$_.barcode);$p(_R,17,$_.checksum+48);$_.barcode=_R;$p($_.options,"dontdraw",true);$p($_.options,"format","stacked");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databaromni();var _Y=$k[--$j];$_[$k[--$j]]=_Y;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_databarstackedomni(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedomniBadAI#8546";$k[$j++]="GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier";bwipp_raiseerror()}if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databarstackedomniBadLength#8549";$k[$j++]="GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databarstackedomniBadCharacter#8553";$k[$j++]="GS1 DataBar Stacked Omnidirectional must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _C=0;_C<=12;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databarstackedomniBadCheckDigit#8566";$k[$j++]="Incorrect GS1 DataBar Stacked Omnidirectional check digit provided";bwipp_raiseerror()}}var _R=$s(18);$P(_R,0,$_.barcode);$p(_R,17,$_.checksum+48);$_.barcode=_R;$p($_.options,"dontdraw",true);$p($_.options,"format","stackedomni");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databaromni();var _Y=$k[--$j];$_[$k[--$j]]=_Y;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_databartruncated(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databartruncatedBadLength#8624";$k[$j++]="GS1 DataBar Truncated must be 13 or 14 digits";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databartruncatedBadAI#8627";$k[$j++]="GS1 DataBar Truncated must begin with (01) application identifier";bwipp_raiseerror()}var _8=$G($_.barcode,4,$_.barcode.length-4);for(var _9=0,_A=_8.length;_9<_A;_9++){var _B=$g(_8,_9);if(_B<48||_B>57){$k[$j++]="bwipp.databartruncatedBadCharacter#8631";$k[$j++]="GS1 DataBar Truncated must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _C=0;_C<=12;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _I=$k[--$j];$k[$j++]=_I*3}var _J=$k[--$j];var _K=$k[--$j];$_[$k[--$j]]=$f(_K+_J)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databartruncatedBadCheckDigit#8644";$k[$j++]="Incorrect GS1 DataBar Truncated check digit provided";bwipp_raiseerror()}}var _R=$s(18);$P(_R,0,$_.barcode);$p(_R,17,$_.checksum+48);$_.barcode=_R;$p($_.options,"dontdraw",true);$p($_.options,"format","truncated");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databaromni();var _Y=$k[--$j];$_[$k[--$j]]=_Y;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_databarlimited(){$_=Object.create($_);$_.dontdraw=false;$_.height=10/72;$_.linkage=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_databarlimited);if($_.barcode.length!=17&&$_.barcode.length!=18){$k[$j++]="bwipp.databarlimitedBadLength#8707";$k[$j++]="GS1 DataBar Limited must be 13 or 14 digits";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarlimitedBadAI#8710";$k[$j++]="GS1 DataBar Limited must begin with (01) application identifier";bwipp_raiseerror()}var _7=$g($_.barcode,4);if(_7<48||_7>49){$k[$j++]="bwipp.databarlimitedBadStartDigit#8713";$k[$j++]="GS1 DataBar Limited must begin with 0 or 1";bwipp_raiseerror()}var _A=$G($_.barcode,5,$_.barcode.length-5);for(var _B=0,_C=_A.length;_B<_C;_B++){var _D=$g(_A,_B);if(_D<48||_D>57){$k[$j++]="bwipp.databarlimitedBadCharacter#8717";$k[$j++]="GS1 DataBar Limited must contain only digits";bwipp_raiseerror()}}$_.checksum=0;for(var _E=0;_E<=12;_E+=1){$_.i=_E;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i+4)-48);if($_.i%2==0){var _K=$k[--$j];$k[$j++]=_K*3}var _L=$k[--$j];var _M=$k[--$j];$_[$k[--$j]]=$f(_M+_L)}$_.checksum=(10-$_.checksum%10)%10;if($_.barcode.length==18){if($g($_.barcode,17)!=$_.checksum+48){$k[$j++]="bwipp.databarlimitedBadCheckDigit#8730";$k[$j++]="Incorrect GS1 DataBar Limited check digit provided";bwipp_raiseerror()}}var _T=$s(18);$P(_T,0,$_.barcode);$p(_T,17,$_.checksum+48);$_.barcode=_T;if(!bwipp_databarlimited.__8741__){$_=Object.create($_);$_.linkval=$a([2,0,1,5,1,3,3,5,3,1,0,9,6]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarlimited.$ctx[id]=$_[id]);bwipp_databarlimited.__8741__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;var _Z=$G($_.barcode,4,13);for(var _a=0,_b=_Z.length;_a<_b;_a++){$k[$j++]=$f($g(_Z,_a)-48)}$_.binval=$a();if($_.linkage){for(var _h=0,_g=$_.binval.length-1;_h<=_g;_h+=1){$_.i=_h;$p($_.binval,$_.i,$f($g($_.binval,$_.i)+$g($_.linkval,$_.i)))}}$_.txt=$a($_.barcode.length);for(var _u=0,_t=$_.barcode.length-1;_u<=_t;_u+=1){$_.i=_u;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.ncr=function(){var _11=$k[--$j];var _12=$k[--$j];var _13=$f(_12-_11);if(_11<$f(_12-_11)){var _=_13;_13=_11;_11=_}$k[$j++]=_13;$k[$j++]=1;$k[$j++]=1;for(var _15=_12,_14=$f(_11+1);_15>=_14;_15-=1){var _16=$k[--$j];var _17=$k[--$j];var _18=$k[--$j];$k[$j++]=_18;$k[$j++]=_17;$k[$j++]=_16*_15;if($le(_17,_18)){var _19=$k[--$j];var _1A=$k[--$j];$k[$j++]=$f(_1A+1);$k[$j++]=~~(_19/_1A)}}for(;;){var _1B=$k[--$j];var _1C=$k[--$j];var _1D=$k[--$j];$k[$j++]=_1D;$k[$j++]=_1C;$k[$j++]=_1B;if($gt(_1C,_1D)){break}var _1E=$k[--$j];var _1F=$k[--$j];$k[$j++]=$f(_1F+1);$k[$j++]=~~(_1E/_1F)}var _1G=$k[--$j];var _1H=$k[--$j];$k[$j++]=_1G;$k[$j++]=_1H;$j--;var _1I=$k[--$j];var _1J=$k[--$j];$k[$j++]=_1I;$k[$j++]=_1J;$j--};$_.getRSSwidths=function(){$_.oe=$k[--$j];$_.el=$k[--$j];$_.mw=$k[--$j];$_.nm=$k[--$j];$_.val=$k[--$j];$_.out=$a($_.el);$_.mask=0;for(var _1T=0,_1S=$f($_.el-2);_1T<=_1S;_1T+=1){$_.bar=_1T;$_.ew=1;var _1V=$_.bar;$_.mask=$_.mask|(_1V<0?1>>>-_1V:1<<_1V);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($_.nm-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1a=$k[--$j];$_[$k[--$j]]=_1a;if($_.oe&&$_.mask==0&&$f($f($f($_.nm-$_.ew)-$_.el*2)+$_.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$_.sval;$k[$j++]=$f($f($f($_.nm-$_.ew)-$_.el)+$_.bar);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _1p=$k[--$j];var _1q=$k[--$j];$_[$k[--$j]]=$f(_1q-_1p)}if($f($_.el-$_.bar)>2){$_.lval=0;for(var _20=$f($f($f($f($_.nm-$_.ew)-$_.el)+$_.bar)+2),_1z=$f($_.mw+1);_20>=_1z;_20-=1){$k[$j++]=$f($f($f($_.nm-_20)-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-3);$_.ncr();$_.lval=$f($k[--$j]+$_.lval)}$_.sval=$f($_.sval-$_.lval*$f($f($_.el-$_.bar)-1))}else{if($f($_.nm-$_.ew)>$_.mw){$_.sval=$f($_.sval-1)}}$_.val=$f($_.val-$_.sval);if($_.val<0){break}$_.ew=$_.ew+1;var _2K=$_.bar;$_.mask=$_.mask&~(_2K<0?1>>>-_2K:1<<_2K)}$_.val=$f($_.val+$_.sval);$_.nm=$f($_.nm-$_.ew);$p($_.out,$_.bar,$_.ew)}$p($_.out,$f($_.el-1),$_.nm);$k[$j++]=$_.out};for(var _2W=0;_2W<=11;_2W+=1){$_.i=_2W;var _2X=$_.binval;var _2Y=$_.i;$p(_2X,_2Y+1,$f($g(_2X,_2Y+1)+$g($_.binval,$_.i)%2013571*10));$p($_.binval,$_.i,~~($g($_.binval,$_.i)/2013571))}$_.d2=$g($_.binval,12)%2013571;var _2k=$_.binval;$p(_2k,12,~~($g(_2k,12)/2013571));$_.d1=0;$_.i=true;for(var _2m=0;_2m<=12;_2m+=1){$_.j=_2m;var _2p=$g($_.binval,$_.j);$k[$j++]=_2p;if(_2p==0&&$_.i){$j--}else{$_.i=false;$_.d1=$f($_.d1+$k[--$j]*~~Math.pow(10,12-$_.j))}}if(!bwipp_databarlimited.__8845__){$_=Object.create($_);$_.tab267=$a([183063,0,17,9,6,3,6538,28,820063,183064,13,13,5,4,875,728,1000775,820064,9,17,3,6,28,6454,1491020,1000776,15,11,5,4,2415,203,1979844,1491021,11,15,4,5,203,2408,1996938,1979845,19,7,8,1,17094,1,2013570,1996939,7,19,1,8,1,16632]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarlimited.$ctx[id]=$_[id]);bwipp_databarlimited.__8845__=1;$_=Object.getPrototypeOf($_)}$_.i=0;for(;;){if($_.d1<=$g($_.tab267,$_.i)){var _32=$G($_.tab267,$_.i+1,7);for(var _33=0,_34=_32.length;_33<_34;_33++){$k[$j++]=$g(_32,_33)}$_.d1te=$k[--$j];$_.d1to=$k[--$j];$_.d1mwe=$k[--$j];$_.d1mwo=$k[--$j];$_.d1ele=$k[--$j];$_.d1elo=$k[--$j];$_.d1gs=$k[--$j];break}$_.i=$_.i+8}$_.i=0;for(;;){if($_.d2<=$g($_.tab267,$_.i)){var _3K=$G($_.tab267,$_.i+1,7);for(var _3L=0,_3M=_3K.length;_3L<_3M;_3L++){$k[$j++]=$g(_3K,_3L)}$_.d2te=$k[--$j];$_.d2to=$k[--$j];$_.d2mwe=$k[--$j];$_.d2mwo=$k[--$j];$_.d2ele=$k[--$j];$_.d2elo=$k[--$j];$_.d2gs=$k[--$j];break}$_.i=$_.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($_.d1-$_.d1gs)/$_.d1te);$k[$j++]=$_.d1elo;$k[$j++]=$_.d1mwo;$k[$j++]=7;$k[$j++]=false;$_.getRSSwidths();var _3b=$k[--$j];$_[$k[--$j]]=_3b;$k[$j++]="d1we";$k[$j++]=$f($_.d1-$_.d1gs)%$_.d1te;$k[$j++]=$_.d1ele;$k[$j++]=$_.d1mwe;$k[$j++]=7;$k[$j++]=true;$_.getRSSwidths();var _3i=$k[--$j];$_[$k[--$j]]=_3i;$k[$j++]="d2wo";$k[$j++]=~~($f($_.d2-$_.d2gs)/$_.d2te);$k[$j++]=$_.d2elo;$k[$j++]=$_.d2mwo;$k[$j++]=7;$k[$j++]=false;$_.getRSSwidths();var _3p=$k[--$j];$_[$k[--$j]]=_3p;$k[$j++]="d2we";$k[$j++]=$f($_.d2-$_.d2gs)%$_.d2te;$k[$j++]=$_.d2ele;$k[$j++]=$_.d2mwe;$k[$j++]=7;$k[$j++]=true;$_.getRSSwidths();var _3w=$k[--$j];$_[$k[--$j]]=_3w;$_.d1w=$a(14);for(var _3z=0;_3z<=6;_3z+=1){$_.i=_3z;$p($_.d1w,$_.i*2,$g($_.d1wo,$_.i));$p($_.d1w,$_.i*2+1,$g($_.d1we,$_.i))}$_.d2w=$a(14);for(var _4B=0;_4B<=6;_4B+=1){$_.i=_4B;$p($_.d2w,$_.i*2,$g($_.d2wo,$_.i));$p($_.d2w,$_.i*2+1,$g($_.d2we,$_.i))}$k[$j++]=Infinity;var _4M=$_.d1w;for(var _4N=0,_4O=_4M.length;_4N<_4O;_4N++){$k[$j++]=$g(_4M,_4N)}var _4Q=$_.d2w;for(var _4R=0,_4S=_4Q.length;_4R<_4S;_4R++){$k[$j++]=$g(_4Q,_4R)}$_.widths=$a();if(!bwipp_databarlimited.__8916__){$_=Object.create($_);$_.checkweights=$a([1,3,9,27,81,65,17,51,64,14,42,37,22,66,20,60,2,6,18,54,73,41,34,13,39,28,84,74]);$k[$j++]=Infinity;for(var _4W=0;_4W<=43;_4W+=1){$k[$j++]=_4W}$k[$j++]=45;$k[$j++]=52;$k[$j++]=57;for(var _4X=63;_4X<=66;_4X+=1){$k[$j++]=_4X}for(var _4Y=73;_4Y<=79;_4Y+=1){$k[$j++]=_4Y}$k[$j++]=82;for(var _4Z=126;_4Z<=130;_4Z+=1){$k[$j++]=_4Z}$k[$j++]=132;for(var _4a=141;_4a<=146;_4a+=1){$k[$j++]=_4a}for(var _4b=210;_4b<=217;_4b+=1){$k[$j++]=_4b}$k[$j++]=220;for(var _4c=316;_4c<=320;_4c+=1){$k[$j++]=_4c}$k[$j++]=322;$k[$j++]=323;$k[$j++]=326;$k[$j++]=337;$_.checkseq=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarlimited.$ctx[id]=$_[id]);bwipp_databarlimited.__8916__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _4f=0;_4f<=27;_4f+=1){$_.i=_4f;$_.checksum=$f($_.checksum+$g($_.widths,$_.i)*$g($_.checkweights,$_.i))}$_.checksum=$_.checksum%89;$_.seq=$g($_.checkseq,$_.checksum);$k[$j++]="swidths";$k[$j++]=~~($_.seq/21);$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$_.getRSSwidths();var _4s=$k[--$j];$_[$k[--$j]]=_4s;$k[$j++]="bwidths";$k[$j++]=$_.seq%21;$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$_.getRSSwidths();var _4v=$k[--$j];$_[$k[--$j]]=_4v;$_.checkwidths=$a([0,0,0,0,0,0,0,0,0,0,0,0,1,1]);for(var _4y=0;_4y<=5;_4y+=1){$_.i=_4y;$p($_.checkwidths,$_.i*2,$g($_.swidths,$_.i));$p($_.checkwidths,$_.i*2+1,$g($_.bwidths,$_.i))}$k[$j++]=Infinity;var _59=$_.d1w;$k[$j++]=1;for(var _5A=0,_5B=_59.length;_5A<_5B;_5A++){$k[$j++]=$g(_59,_5A)}var _5D=$_.checkwidths;for(var _5E=0,_5F=_5D.length;_5E<_5F;_5E++){$k[$j++]=$g(_5D,_5E)}var _5H=$_.d2w;for(var _5I=0,_5J=_5H.length;_5I<_5J;_5I++){$k[$j++]=$g(_5H,_5I)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=5;$_.sbs=$a();$k[$j++]=Infinity;var _5M=$_.sbs;$k[$j++]=Infinity;for(var _5O=0,_5P=~~(($_.sbs.length+1)/2);_5O<_5P;_5O++){$k[$j++]=$_.height}var _5R=$a();$k[$j++]=Infinity;for(var _5T=0,_5U=~~(($_.sbs.length+1)/2);_5T<_5U;_5T++){$k[$j++]=0}var _5V=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_5M;$k[$j++]="bhs";$k[$j++]=_5R;$k[$j++]="bbs";$k[$j++]=_5V;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="borderleft";$k[$j++]=0;$k[$j++]="borderright";$k[$j++]=0;$k[$j++]="opt";$k[$j++]=$_.options;var _5Y=$d();$k[$j++]=_5Y;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_databarexpanded(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$_.height=34/72;$_.format="expanded";$_.segments=-1;$_.linkage=false;$_.barxmult=34;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_databarexpanded);if($_.barxmult<34){$k[$j++]="bwipp.databarStackedOmniBarXmult#9007";$k[$j++]="GS1 DataBar Expanded Stacked must have a barxmult of at least 34";bwipp_raiseerror()}if($ne($_.format,"expanded")&&$ne($_.format,"expandedstacked")){$k[$j++]="bwipp.databarexpandedBadFormat#9011";$k[$j++]="Valid formats are expanded and expandedstacked";bwipp_raiseerror()}if($_.segments==-1){var _7=$eq($_.format,"expandedstacked")?4:22;$_.segments=_7}else{if($_.segments<2||$_.segments>22||$_.segments%2!=0){$k[$j++]="bwipp.gs1databarexpandedBadSegments#9018";$k[$j++]="The number of segments must be even from 2 to 22";bwipp_raiseerror()}}$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];for(;;){if($_.ais.length==2){if($eq($g($_.ais,0),"01")&&$eq($g($_.ais,1),"3103")){if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=32767){$k[$j++]="0100";$k[$j++]=false;break}}}if($_.ais.length==2){if($eq($g($_.ais,0),"01")&&$eq($g($_.ais,1),"3202")){if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=9999){$k[$j++]="0101";$k[$j++]=false;break}}}if($_.ais.length==2){if($eq($g($_.ais,0),"01")&&$eq($g($_.ais,1),"3203")){if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=22767){$k[$j++]="0101";$k[$j++]=false;break}}}var _k=$_.ais.length;if(_k==2||_k==3){$k[$j++]="ai310x";$k[$j++]=false;for(var _l=3100;_l<=3109;_l+=1){var _q=$k[--$j];$k[$j++]=_q||$eq($R($s(4),_l,10),$g($_.ais,1))}var _r=$k[--$j];$_[$k[--$j]]=_r;$k[$j++]="ai320x";$k[$j++]=false;for(var _t=3200;_t<=3209;_t+=1){var _y=$k[--$j];$k[$j++]=_y||$eq($R($s(4),_t,10),$g($_.ais,1))}var _z=$k[--$j];$_[$k[--$j]]=_z;if($_.ais.length==3){var _12=$a(["11","13","15","17"]);$k[$j++]="aibad";$k[$j++]=true;for(var _13=0,_14=_12.length;_13<_14;_13++){var _18=$k[--$j];$k[$j++]=_18&&$ne($g(_12,_13),$g($_.ais,2))}var _19=$k[--$j];$_[$k[--$j]]=_19}else{$_.aibad=false}if($eq($g($_.ais,0),"01")&&($_.ai310x||$_.ai320x)&&!$_.aibad){if($_.ais.length==3){var _1P=$i($G($g($_.vals,2),2,2));var _1T=$i($G($g($_.vals,2),4,2));if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=99999&&(_1P>=1&&_1P<=12)&&(_1T>=0&&_1T<=31)){if($_.ai310x&&$eq($g($_.ais,2),"11")){$k[$j++]="0111000";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"11")){$k[$j++]="0111001";$k[$j++]=false;break}if($_.ai310x&&$eq($g($_.ais,2),"13")){$k[$j++]="0111010";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"13")){$k[$j++]="0111011";$k[$j++]=false;break}if($_.ai310x&&$eq($g($_.ais,2),"15")){$k[$j++]="0111100";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"15")){$k[$j++]="0111101";$k[$j++]=false;break}if($_.ai310x&&$eq($g($_.ais,2),"17")){$k[$j++]="0111110";$k[$j++]=false;break}if($_.ai320x&&$eq($g($_.ais,2),"17")){$k[$j++]="0111111";$k[$j++]=false;break}}}else{if($eq($G($g($_.vals,0),0,1),"9")&&$i($g($_.vals,1))<=99999){if($_.ai310x){$k[$j++]="0111000";$k[$j++]=false;break}if($_.ai320x){$k[$j++]="0111001";$k[$j++]=false;break}}}}}if($_.ais.length>=2){$k[$j++]="ai392x";$k[$j++]=false;for(var _20=3920;_20<=3923;_20+=1){var _25=$k[--$j];$k[$j++]=_25||$eq($R($s(4),_20,10),$g($_.ais,1))}var _26=$k[--$j];$_[$k[--$j]]=_26;if($eq($g($_.ais,0),"01")&&$_.ai392x){if($eq($G($g($_.vals,0),0,1),"9")){$k[$j++]="01100";$k[$j++]=true;break}}}if($_.ais.length>=2){$k[$j++]="ai393x";$k[$j++]=false;for(var _2F=3930;_2F<=3933;_2F+=1){var _2K=$k[--$j];$k[$j++]=_2K||$eq($R($s(4),_2F,10),$g($_.ais,1))}var _2L=$k[--$j];$_[$k[--$j]]=_2L;if($eq($g($_.ais,0),"01")&&$_.ai393x){if($eq($G($g($_.vals,0),0,1),"9")){$k[$j++]="01101";$k[$j++]=true;break}}}if($eq($g($_.ais,0),"01")){$k[$j++]="1";$k[$j++]=true;break}$k[$j++]="00";$k[$j++]=true;break}$_.gpfallow=$k[--$j];$_.method=$k[--$j];$_.conv12to40=function(){var _2Y=$Z($s(40),"0000000000000000000000000000000000000000");var _2Z=$k[--$j];var _2d=$R($s(10),$i($G(_2Z,0,3)),2);$P($G(_2Y,0,10),10-_2d.length,_2d);var _2h=$R($s(10),$i($G(_2Z,3,3)),2);$P($G(_2Y,10,10),10-_2h.length,_2h);var _2l=$R($s(10),$i($G(_2Z,6,3)),2);$P($G(_2Y,20,10),10-_2l.length,_2l);var _2p=$R($s(10),$i($G(_2Z,9,3)),2);$P($G(_2Y,30,10),10-_2p.length,_2p);$k[$j++]=_2Y;$k[$j++]=_2Z;$j--};$_.conv13to44=function(){var _2r=$Z($s(44),"00000000000000000000000000000000000000000000");var _2s=$k[--$j];var _2w=$R($s(4),$i($G(_2s,0,1)),2);$P($G(_2r,0,4),4-_2w.length,_2w);$k[$j++]=_2r;$k[$j++]=_2r;$k[$j++]=$G(_2s,1,12);$_.conv12to40();var _2y=$k[--$j];$P($k[--$j],4,_2y)};$_.tobin=function(){var _31=$s($k[--$j]);$k[$j++]=_31;for(var _33=0,_32=_31.length-1;_33<=_32;_33+=1){var _34=$k[--$j];$p(_34,_33,48);$k[$j++]=_34}var _35=$k[--$j];var _38=$R($s(_35.length),$k[--$j],2);$P(_35,_35.length-_38.length,_38);$k[$j++]=_35};$_.fnc1=-1;$_.lnumeric=-2;$_.lalphanumeric=-3;$_.liso646=-4;if($eq($_.method,"00")){$_.cdf=$a([]);$_.gpf=$a([])}if($eq($_.method,"1")){$k[$j++]="cdf";$k[$j++]=$G($g($_.vals,0),0,13);$_.conv13to44();var _3G=$k[--$j];$_[$k[--$j]]=_3G;$k[$j++]=Infinity;var _3I=$_.cdf;for(var _3J=0,_3K=_3I.length;_3J<_3K;_3J++){$k[$j++]=$f($g(_3I,_3J)-48)}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1)}if($eq($_.method,"0100")){$_.cdf=$s(55);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _3d=$k[--$j];var _3e=$k[--$j];$P($k[--$j],_3e,_3d);$k[$j++]=$_.cdf;$k[$j++]=40;$k[$j++]=$i($g($_.vals,1));$k[$j++]=15;$_.tobin();var _3j=$k[--$j];var _3k=$k[--$j];$P($k[--$j],_3k,_3j);$k[$j++]=Infinity;var _3m=$_.cdf;for(var _3n=0,_3o=_3m.length;_3n<_3o;_3n++){$k[$j++]=$g(_3m,_3n)-48}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$a([]);$_.vals=$a([]);$_.fncs=$a([])}if($eq($_.method,"0101")){$_.cdf=$s(55);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _41=$k[--$j];var _42=$k[--$j];$P($k[--$j],_42,_41);if($eq($g($_.ais,1),"3202")){$k[$j++]=$i($g($_.vals,1));$k[$j++]=15;$_.tobin()}else{$k[$j++]=$i($g($_.vals,1))+1e4;$k[$j++]=15;$_.tobin()}$P($_.cdf,40,$k[--$j]);$k[$j++]=Infinity;var _4C=$_.cdf;for(var _4D=0,_4E=_4C.length;_4D<_4E;_4D++){$k[$j++]=$g(_4C,_4D)-48}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$a([]);$_.vals=$a([]);$_.fncs=$a([])}if($_.method.length==7){$_.cdf=$s(76);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _4R=$k[--$j];var _4S=$k[--$j];$P($k[--$j],_4S,_4R);var _4U=$s(6);$P(_4U,0,$G($g($_.ais,1),3,1));$P(_4U,1,$G($g($_.vals,1),1,5));$k[$j++]=$i(_4U);$k[$j++]=20;$_.tobin();$P($_.cdf,40,$k[--$j]);if($_.ais.length==3){var _4f=$g($_.vals,2);$k[$j++]=$i($G(_4f,0,2))*384+(($i($G(_4f,2,2))-1)*32+$i($G(_4f,4,2)))}else{$k[$j++]=38400}$k[$j++]=16;$_.tobin();$P($_.cdf,60,$k[--$j]);$k[$j++]=Infinity;var _4l=$_.cdf;for(var _4m=0,_4n=_4l.length;_4m<_4n;_4m++){$k[$j++]=$g(_4l,_4m)-48}$_.cdf=$a();$_.gpf=$a([]);$_.ais=$a([]);$_.vals=$a([]);$_.fncs=$a([])}if($eq($_.method,"01100")){$_.cdf=$s(42);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _50=$k[--$j];var _51=$k[--$j];$P($k[--$j],_51,_50);$k[$j++]=$_.cdf;$k[$j++]=40;$k[$j++]=$i($G($g($_.ais,1),3,1));$k[$j++]=2;$_.tobin();var _57=$k[--$j];var _58=$k[--$j];$P($k[--$j],_58,_57);$k[$j++]=Infinity;var _5A=$_.cdf;for(var _5B=0,_5C=_5A.length;_5B<_5C;_5B++){$k[$j++]=$g(_5A,_5B)-48}$_.cdf=$a();$k[$j++]=Infinity;$F($g($_.vals,1));if($_.ais.length>2){$k[$j++]=$_.fnc1}$_.gpf=$a();$_.ais=$G($_.ais,2,$_.ais.length-2);$_.vals=$G($_.vals,2,$_.vals.length-2);$_.fncs=$G($_.fncs,2,$_.fncs.length-2)}if($eq($_.method,"01101")){$_.cdf=$s(52);$k[$j++]=$_.cdf;$k[$j++]=0;$k[$j++]=$G($g($_.vals,0),1,12);$_.conv12to40();var _5Z=$k[--$j];var _5a=$k[--$j];$P($k[--$j],_5a,_5Z);$k[$j++]=$_.cdf;$k[$j++]=40;$k[$j++]=$i($G($g($_.ais,1),3,1));$k[$j++]=2;$_.tobin();var _5g=$k[--$j];var _5h=$k[--$j];$P($k[--$j],_5h,_5g);$k[$j++]=$_.cdf;$k[$j++]=42;$k[$j++]=$i($G($g($_.vals,1),0,3));$k[$j++]=10;$_.tobin();var _5n=$k[--$j];var _5o=$k[--$j];$P($k[--$j],_5o,_5n);$k[$j++]=Infinity;var _5q=$_.cdf;for(var _5r=0,_5s=_5q.length;_5r<_5s;_5r++){$k[$j++]=$g(_5q,_5r)-48}$_.cdf=$a();$k[$j++]=Infinity;var _5w=$g($_.vals,1);var _5x=$G(_5w,3,_5w.length-3);for(var _5y=0,_5z=_5x.length;_5y<_5z;_5y++){$k[$j++]=$g(_5x,_5y)}if($_.ais.length>2){$k[$j++]=$_.fnc1}$_.gpf=$a();$_.ais=$G($_.ais,2,$_.ais.length-2);$_.vals=$G($_.vals,2,$_.vals.length-2);$_.fncs=$G($_.fncs,2,$_.fncs.length-2)}if($_.gpfallow){$_.vlf=$a(2)}else{$_.vlf=$a([])}if(!bwipp_databarexpanded.__9270__){$_=Object.create($_);$k[$j++]=Infinity;for(var _6G=0;_6G<=119;_6G+=1){var _6I=$Z($s(2),"00");var _6K=$R($s(2),_6G,11);$P(_6I,2-_6K.length,_6K);$k[$j++]=_6G;$k[$j++]=_6I;if($g(_6I,0)==65){var _6M=$k[--$j];$p(_6M,0,94);$k[$j++]=_6M}var _6N=$k[--$j];$k[$j++]=_6N;if($g(_6N,1)==65){var _6P=$k[--$j];$p(_6P,1,94);$k[$j++]=_6P}var _6Q=$k[--$j];var _6T=$Z($s(7),"0000000");var _6V=$R($s(7),$f($k[--$j]+8),2);$P(_6T,7-_6V.length,_6V);$k[$j++]=_6Q;$k[$j++]=_6T}$k[$j++]=$_.lalphanumeric;$k[$j++]="0000";$_.numeric=$d();$k[$j++]=Infinity;for(var _6Y=48;_6Y<=57;_6Y+=1){$k[$j++]=_6Y;$k[$j++]=_6Y-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _6a=65;_6a<=90;_6a+=1){$k[$j++]=_6a;$k[$j++]=_6a-33;$k[$j++]=6;$_.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _6b=44;_6b<=47;_6b+=1){$k[$j++]=_6b;$k[$j++]=_6b+15;$k[$j++]=6;$_.tobin()}$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.liso646;$k[$j++]="00100";$_.alphanumeric=$d();$k[$j++]=Infinity;for(var _6f=48;_6f<=57;_6f+=1){$k[$j++]=_6f;$k[$j++]=_6f-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _6h=65;_6h<=90;_6h+=1){$k[$j++]=_6h;$k[$j++]=_6h-1;$k[$j++]=7;$_.tobin()}for(var _6i=97;_6i<=122;_6i+=1){$k[$j++]=_6i;$k[$j++]=_6i-7;$k[$j++]=7;$_.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _6j=37;_6j<=47;_6j+=1){$k[$j++]=_6j;$k[$j++]=_6j+197;$k[$j++]=8;$_.tobin()}for(var _6k=58;_6k<=63;_6k+=1){$k[$j++]=_6k;$k[$j++]=_6k+187;$k[$j++]=8;$_.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.lalphanumeric;$k[$j++]="00100";$_.iso646=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9270__=1;$_=Object.getPrototypeOf($_)}for(var _6r=0,_6q=$_.ais.length-1;_6r<=_6q;_6r+=1){$_.i=_6r;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _71=$a($_.gpf.length+$_.ai.length+$_.val.length);$P(_71,0,$_.gpf);$k[$j++]=_71;$k[$j++]=_71;$k[$j++]=$_.gpf.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _75=$k[--$j];var _76=$k[--$j];$k[$j++]=_75;$F(_76);var _77=$a();var _78=$k[--$j];$P($k[--$j],_78,_77);var _7A=$k[--$j];$k[$j++]=_7A;$k[$j++]=_7A;$k[$j++]=$_.gpf.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _7E=$k[--$j];var _7F=$k[--$j];$k[$j++]=_7E;$F(_7F);var _7G=$a();var _7H=$k[--$j];$P($k[--$j],_7H,_7G);$_.gpf=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _7Q=$a($_.gpf.length+1);$P(_7Q,0,$_.gpf);$p(_7Q,$_.gpf.length,$_.fnc1);$_.gpf=_7Q}}$_.rembits=function(){var _7U=$k[--$j];var _7V=48;var _7W=~~Math.ceil(_7U/12)*12;if(~~Math.ceil(_7U/12)*12<48){var _=_7V;_7V=_7W;_7W=_}var _7X=~~(_7W/12);$k[$j++]=_7U;$k[$j++]=_7W;$k[$j++]=_7X;if(_7X%$_.segments==1){var _7Z=$k[--$j];var _7a=$k[--$j];$k[$j++]=$f(_7Z+1)*12;$k[$j++]=_7a;$j--}else{$j--}var _7b=$k[--$j];var _7c=$k[--$j];$k[$j++]=$f(_7b-_7c)};$_.encode=function(){var _7d=$k[--$j];$k[$j++]=_7d;if($ne(_7d,"raw")){var _7e=$k[--$j];var _7g=$g(_7e,$k[--$j]);$k[$j++]=_7g}else{$j--}var _7h=$k[--$j];$k[$j++]=_7h;if(_7h.length+$_.j>=252){$j--;$k[$j++]="bwipp.gs1databarexpandedTooLong#9306";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$k[$j++]=Infinity;var _7j=$k[--$j];var _7k=$k[--$j];$k[$j++]=_7j;$F(_7k,function(){var _7l=$k[--$j];$k[$j++]=$f(_7l-48)});var _7m=$a();$P($_.gpfenc,$_.j,_7m);$_.j=_7m.length+$_.j};$k[$j++]=Infinity;for(var _7r=0,_7s=$_.gpf.length;_7r<_7s;_7r++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$_.numericruns=$a();$k[$j++]=Infinity;for(var _7v=0,_7w=$_.gpf.length;_7v<_7w;_7v++){$k[$j++]=0}$k[$j++]=0;$_.alphanumericruns=$a();$k[$j++]=Infinity;for(var _7z=0,_80=$_.gpf.length;_7z<_80;_7z++){$k[$j++]=0}$k[$j++]=9999;$_.nextiso646only=$a();for(var _83=$_.gpf.length-1;_83>=0;_83-=1){$_.i=_83;var _88=$Z($s(2),"00");var _8B=$g($_.gpf,$_.i);$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=_88;$k[$j++]=_88;$k[$j++]=0;$k[$j++]=_8B;if(_8B==$_.fnc1){$j--;$k[$j++]=94}var _8D=$k[--$j];var _8E=$k[--$j];$p($k[--$j],_8E,_8D);if($_.i<$_.gpf.length-1){var _8I=$k[--$j];var _8L=$g($_.gpf,$_.i+1);$k[$j++]=_8I;$k[$j++]=_8I;$k[$j++]=1;$k[$j++]=_8L;if(_8L==$_.fnc1){$j--;$k[$j++]=94}var _8N=$k[--$j];var _8O=$k[--$j];$p($k[--$j],_8O,_8N)}var _8S=$g($_.numeric,$k[--$j])!==undefined;if(_8S){$p($_.numericruns,$_.i,$f($g($_.numericruns,$_.i+2)+2))}else{$p($_.numericruns,$_.i,0)}var _8a=$k[--$j];var _8c=$g($_.alphanumeric,_8a)!==undefined;$k[$j++]=_8a;if(_8c){$p($_.alphanumericruns,$_.i,$f($g($_.alphanumericruns,$_.i+1)+1))}else{$p($_.alphanumericruns,$_.i,0)}var _8k=$k[--$j];var _8m=$g($_.iso646,_8k)!==undefined;var _8o=$g($_.alphanumeric,_8k)!==undefined;if(_8m&&!_8o){$p($_.nextiso646only,$_.i,0)}else{$p($_.nextiso646only,$_.i,$f($g($_.nextiso646only,$_.i+1)+1))}}$_.gpfenc=$a(252);$_.i=0;$_.j=0;$_.mode="numeric";for(;;){if($_.i==$_.gpf.length){break}for(;;){if($eq($_.mode,"numeric")){if($_.i<=$_.gpf.length-2){var _92=$s(2);var _95=$g($_.gpf,$_.i);$k[$j++]=_92;$k[$j++]=_92;$k[$j++]=0;$k[$j++]=_95;if(_95==$_.fnc1){$j--;$k[$j++]=94}var _97=$k[--$j];var _98=$k[--$j];$p($k[--$j],_98,_97);var _9A=$k[--$j];var _9D=$g($_.gpf,$_.i+1);$k[$j++]=_9A;$k[$j++]=_9A;$k[$j++]=1;$k[$j++]=_9D;if(_9D==$_.fnc1){$j--;$k[$j++]=94}var _9F=$k[--$j];var _9G=$k[--$j];$p($k[--$j],_9G,_9F);var _9I=$k[--$j];var _9K=$g($_.numeric,_9I)!==undefined;$k[$j++]=_9I;if(_9K){$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+2;break}$j--;$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}else{var _9R=$g($_.gpf,$_.i);if(_9R<48||_9R>57){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=12+1+$_.method.length+$_.vlf.length+$_.cdf.length+$_.j;$_.rembits();var _9Y=$k[--$j];$_[$k[--$j]]=_9Y;if($_.rem>=4&&$_.rem<=6){var _9f=$G($Z($s(6),"000000"),0,$_.rem);var _9k=$R($s(4),$f($g($_.gpf,$_.i)-47),2);$P(_9f,4-_9k.length,_9k);$k[$j++]=_9f;$k[$j++]="raw";$_.encode();$_.i=$_.i+1;break}else{var _9m=$s(2);$p(_9m,0,$g($_.gpf,$_.i));$p(_9m,1,94);$k[$j++]=_9m;$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+1;break}}}if($eq($_.mode,"alphanumeric")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}var _A2=$g($_.gpf,$_.i);var _A4=$g($_.iso646,_A2)!==undefined;var _A6=$g($_.alphanumeric,_A2)!==undefined;if(_A4&&!_A6){$k[$j++]=$_.liso646;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="iso646";break}if($g($_.numericruns,$_.i)>=6){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}var _AG=$g($_.numericruns,$_.i);if(_AG>=4&&$f(_AG+$_.i)==$_.gpf.length){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.alphanumeric;$_.encode();$_.i=$_.i+1;break}if($eq($_.mode,"iso646")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}if($g($_.numericruns,$_.i)>=4&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lnumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";break}if($g($_.alphanumericruns,$_.i)>=5&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="alphanumeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.iso646;$_.encode();$_.i=$_.i+1;break}}}$_.gpf=$G($_.gpfenc,0,$_.j);var _B0=1+12+$_.method.length+$_.vlf.length+$_.cdf.length+$_.gpf.length;$k[$j++]=_B0;$k[$j++]=_B0;$_.rembits();var _B1=$k[--$j];$_.pad=$a(_B1);$k[$j++]=_B1;if($_.vlf.length!=0){var _B4=$k[--$j];var _B6=~~($f($k[--$j]+_B4)/12);$p($_.vlf,0,_B6%2);var _B8=_B6<=14?0:1;$p($_.vlf,1,_B8)}else{$j-=2}if($_.pad.length>0){for(var _BD=0,_BC=$_.pad.length-1;_BD<=_BC;_BD+=5){$_.i=_BD;var _BE=$_.pad;var _BF=$_.i;var _BG=$a([0,0,1,0,0]);var _BH=$_.pad;var _BI=$_.i;var _BJ=5;var _BK=_BH.length-_BI;if(_BH.length-_BI>5){var _=_BJ;_BJ=_BK;_BK=_}$P(_BE,_BF,$G(_BG,0,_BK))}if($eq($_.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.pad);$_.pad=$G($a(),0,$_.pad.length)}}$k[$j++]=Infinity;var _BS=$_.linkage?1:0;$k[$j++]=_BS;$F($_.method,function(){var _BU=$k[--$j];$k[$j++]=$f(_BU-48)});$q($_.vlf);$q($_.cdf);$q($_.gpf);$q($_.pad);$_.binval=$a();$_.datalen=~~($_.binval.length/12);$_.ncr=function(){var _Bb=$k[--$j];var _Bc=$k[--$j];var _Bd=$f(_Bc-_Bb);if(_Bb<$f(_Bc-_Bb)){var _=_Bd;_Bd=_Bb;_Bb=_}$k[$j++]=_Bd;$k[$j++]=1;$k[$j++]=1;for(var _Bf=_Bc,_Be=$f(_Bb+1);_Bf>=_Be;_Bf-=1){var _Bg=$k[--$j];var _Bh=$k[--$j];var _Bi=$k[--$j];$k[$j++]=_Bi;$k[$j++]=_Bh;$k[$j++]=_Bg*_Bf;if($le(_Bh,_Bi)){var _Bj=$k[--$j];var _Bk=$k[--$j];$k[$j++]=$f(_Bk+1);$k[$j++]=~~(_Bj/_Bk)}}for(;;){var _Bl=$k[--$j];var _Bm=$k[--$j];var _Bn=$k[--$j];$k[$j++]=_Bn;$k[$j++]=_Bm;$k[$j++]=_Bl;if($gt(_Bm,_Bn)){break}var _Bo=$k[--$j];var _Bp=$k[--$j];$k[$j++]=$f(_Bp+1);$k[$j++]=~~(_Bo/_Bp)}var _Bq=$k[--$j];var _Br=$k[--$j];$k[$j++]=_Bq;$k[$j++]=_Br;$j--;var _Bs=$k[--$j];var _Bt=$k[--$j];$k[$j++]=_Bs;$k[$j++]=_Bt;$j--};$_.getRSSwidths=function(){$_.oe=$k[--$j];$_.el=$k[--$j];$_.mw=$k[--$j];$_.nm=$k[--$j];$_.val=$k[--$j];$_.out=$a($_.el);$_.mask=0;for(var _C3=0,_C2=$f($_.el-2);_C3<=_C2;_C3+=1){$_.bar=_C3;$_.ew=1;var _C5=$_.bar;$_.mask=$_.mask|(_C5<0?1>>>-_C5:1<<_C5);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($_.nm-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _CA=$k[--$j];$_[$k[--$j]]=_CA;if($_.oe&&$_.mask==0&&$f($f($f($_.nm-$_.ew)-$_.el*2)+$_.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$_.sval;$k[$j++]=$f($f($f($_.nm-$_.ew)-$_.el)+$_.bar);$k[$j++]=$f($f($_.el-$_.bar)-2);$_.ncr();var _CP=$k[--$j];var _CQ=$k[--$j];$_[$k[--$j]]=$f(_CQ-_CP)}if($f($_.el-$_.bar)>2){$_.lval=0;for(var _Ca=$f($f($f($f($_.nm-$_.ew)-$_.el)+$_.bar)+2),_CZ=$f($_.mw+1);_Ca>=_CZ;_Ca-=1){$k[$j++]=$f($f($f($_.nm-_Ca)-$_.ew)-1);$k[$j++]=$f($f($_.el-$_.bar)-3);$_.ncr();$_.lval=$f($k[--$j]+$_.lval)}$_.sval=$f($_.sval-$_.lval*$f($f($_.el-$_.bar)-1))}else{if($f($_.nm-$_.ew)>$_.mw){$_.sval=$f($_.sval-1)}}$_.val=$f($_.val-$_.sval);if($_.val<0){break}$_.ew=$_.ew+1;var _Cu=$_.bar;$_.mask=$_.mask&~(_Cu<0?1>>>-_Cu:1<<_Cu)}$_.val=$f($_.val+$_.sval);$_.nm=$f($_.nm-$_.ew);$p($_.out,$_.bar,$_.ew)}$p($_.out,$f($_.el-1),$_.nm);$k[$j++]=$_.out};if(!bwipp_databarexpanded.__9530__){$_=Object.create($_);$_.tab174=$a([347,0,12,5,7,2,87,4,1387,348,10,7,5,4,52,20,2947,1388,8,9,4,5,30,52,3987,2948,6,11,3,6,10,104,4191,3988,4,13,1,8,1,204]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9530__=1;$_=Object.getPrototypeOf($_)}$_.dxw=$a($_.datalen);for(var _DC=0,_DB=$_.datalen-1;_DC<=_DB;_DC+=1){$_.x=_DC;$_.d=$G($_.binval,$_.x*12,12);$k[$j++]="d";$k[$j++]=0;for(var _DG=0;_DG<=11;_DG+=1){$_.j=_DG;var _DL=$k[--$j];$k[$j++]=$f(_DL+~~Math.pow(2,11-$_.j)*$g($_.d,$_.j))}var _DM=$k[--$j];$_[$k[--$j]]=_DM;$_.j=0;for(;;){if($le($_.d,$g($_.tab174,$_.j))){var _DU=$G($_.tab174,$_.j+1,7);for(var _DV=0,_DW=_DU.length;_DV<_DW;_DV++){$k[$j++]=$g(_DU,_DV)}$_.dte=$k[--$j];$_.dto=$k[--$j];$_.dmwe=$k[--$j];$_.dmwo=$k[--$j];$_.dele=$k[--$j];$_.delo=$k[--$j];$_.dgs=$k[--$j];break}$_.j=$_.j+8}$k[$j++]="dwo";$k[$j++]=~~($f($_.d-$_.dgs)/$_.dte);$k[$j++]=$_.delo;$k[$j++]=$_.dmwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _Dl=$k[--$j];$_[$k[--$j]]=_Dl;$k[$j++]="dwe";$k[$j++]=$f($_.d-$_.dgs)%$_.dte;$k[$j++]=$_.dele;$k[$j++]=$_.dmwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _Ds=$k[--$j];$_[$k[--$j]]=_Ds;$_.dw=$a(8);if($_.x%2==0){for(var _Dw=0;_Dw<=3;_Dw+=1){$_.j=_Dw;$p($_.dw,7-$_.j*2,$g($_.dwo,$_.j));$p($_.dw,6-$_.j*2,$g($_.dwe,$_.j))}}else{for(var _E7=0;_E7<=3;_E7+=1){$_.j=_E7;$p($_.dw,$_.j*2,$g($_.dwo,$_.j));$p($_.dw,$_.j*2+1,$g($_.dwe,$_.j))}}$p($_.dxw,$_.x,$_.dw)}if(!bwipp_databarexpanded.__9597__){$_=Object.create($_);$_.finderwidths=$a([1,8,4,1,1,1,1,4,8,1,3,6,4,1,1,1,1,4,6,3,3,4,6,1,1,1,1,6,4,3,3,2,8,1,1,1,1,8,2,3,2,6,5,1,1,1,1,5,6,2,2,2,9,1,1,1,1,9,2,2]);$_.finderseq=$a([$a([0,1]),$a([0,3,2]),$a([0,5,2,7]),$a([0,9,2,7,4]),$a([0,9,2,7,6,11]),$a([0,9,2,7,8,11,10]),$a([0,1,2,3,4,5,6,7]),$a([0,1,2,3,4,5,6,9,8]),$a([0,1,2,3,4,5,6,9,10,11]),$a([0,1,2,3,4,7,6,9,8,11,10])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9597__=1;$_=Object.getPrototypeOf($_)}$_.seq=$g($_.finderseq,~~(($_.datalen-2)/2));$_.fxw=$a($_.seq.length);for(var _Ef=0,_Ee=$_.seq.length-1;_Ef<=_Ee;_Ef+=1){$_.x=_Ef;$p($_.fxw,$_.x,$G($_.finderwidths,$g($_.seq,$_.x)*5,5))}if(!bwipp_databarexpanded.__9633__){$_=Object.create($_);$_.checkweights=$a([-1,-1,-1,-1,-1,-1,-1,-1,77,96,32,81,27,9,3,1,20,60,180,118,143,7,21,63,205,209,140,117,39,13,145,189,193,157,49,147,19,57,171,91,132,44,85,169,197,136,186,62,185,133,188,142,4,12,36,108,50,87,29,80,97,173,128,113,150,28,84,41,123,158,52,156,166,196,206,139,187,203,138,46,76,17,51,153,37,111,122,155,146,119,110,107,106,176,129,43,16,48,144,10,30,90,59,177,164,125,112,178,200,137,116,109,70,210,208,202,184,130,179,115,190,204,68,93,31,151,191,134,148,22,66,198,172,94,71,2,40,154,192,64,162,54,18,6,120,149,25,75,14,42,126,167,175,199,207,69,23,78,26,79,103,98,83,38,114,131,182,124,159,53,88,170,127,183,61,161,55,165,73,8,24,72,5,15,89,100,174,58,160,194,135,45]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_databarexpanded.$ctx[id]=$_[id]);bwipp_databarexpanded.__9633__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;$F($_.seq,function(){$q($G($_.checkweights,$k[--$j]*16,16))});var _Et=$a();$_.checkweightseq=$G(_Et,8,_Et.length-8);$k[$j++]=Infinity;var _Ev=$_.dxw;for(var _Ew=0,_Ex=_Ev.length;_Ew<_Ex;_Ew++){$F($g(_Ev,_Ew))}$_.widths=$a();$_.checksum=0;for(var _F2=0,_F1=$_.widths.length-1;_F2<=_F1;_F2+=1){$_.i=_F2;$_.checksum=$f($_.checksum+$g($_.widths,$_.i)*$g($_.checkweightseq,$_.i))}$_.checksum=$f($_.checksum%211+($_.datalen-3)*211);$_.i=0;for(;;){if($_.checksum<=$g($_.tab174,$_.i)){var _FI=$G($_.tab174,$_.i+1,7);for(var _FJ=0,_FK=_FI.length;_FJ<_FK;_FJ++){$k[$j++]=$g(_FI,_FJ)}$_.cte=$k[--$j];$_.cto=$k[--$j];$_.cmwe=$k[--$j];$_.cmwo=$k[--$j];$_.cele=$k[--$j];$_.celo=$k[--$j];$_.cgs=$k[--$j];break}$_.i=$_.i+8}$k[$j++]="cwo";$k[$j++]=~~($f($_.checksum-$_.cgs)/$_.cte);$k[$j++]=$_.celo;$k[$j++]=$_.cmwo;$k[$j++]=4;$k[$j++]=true;$_.getRSSwidths();var _FZ=$k[--$j];$_[$k[--$j]]=_FZ;$k[$j++]="cwe";$k[$j++]=$f($_.checksum-$_.cgs)%$_.cte;$k[$j++]=$_.cele;$k[$j++]=$_.cmwe;$k[$j++]=4;$k[$j++]=false;$_.getRSSwidths();var _Fg=$k[--$j];$_[$k[--$j]]=_Fg;$_.cw=$a(8);for(var _Fj=0;_Fj<=3;_Fj+=1){$_.i=_Fj;$p($_.cw,$_.i*2,$g($_.cwo,$_.i));$p($_.cw,$_.i*2+1,$g($_.cwe,$_.i))}var _Fu=$a(22);$p(_Fu,0,$_.cw);$P(_Fu,1,$_.dxw);$_.dxw=$G(_Fu,0,$_.datalen+1);$_.datalen=$_.dxw.length;$_.rows=$a(~~Math.ceil($_.datalen/$_.segments));$_.numrows=$_.rows.length;for(var _G6=0,_G5=$_.numrows-1;_G6<=_G5;_G6+=1){$_.r=_G6;$k[$j++]=Infinity;if($_.segments%4!=0&&$_.r%2==1){$k[$j++]=0}$k[$j++]=1;$k[$j++]=1;for(var _GB=0,_GA=$_.segments-1;_GB<=_GA;_GB+=1){$_.pos=_GB+$_.r*$_.segments;if($_.pos<$_.datalen){$F($g($_.dxw,$_.pos));if($_.pos%2==0){$F($g($_.fxw,~~($_.pos/2)))}}}var _GN=$m()+2;$k[$j++]=1;$k[$j++]=1;$as($a(_GN));$p($_.rows,$_.r,$k[--$j]);$j--}if($ne($_.format,"expandedstacked")){var _GU=$g($_.rows,0);$_.sbs=$G(_GU,1,_GU.length-1);$k[$j++]=Infinity;$k[$j++]=1;for(var _GY=0,_GX=$_.datalen-1;_GY<=_GX;_GY+=1){$_.i=_GY;$F($g($_.dxw,$_.i));if($_.i%2==0){$F($g($_.fxw,~~($_.i/2)))}}$k[$j++]=1;$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _Gh=$_.sbs;$k[$j++]=Infinity;for(var _Gj=0,_Gk=~~(($_.sbs.length+1)/2);_Gj<_Gk;_Gj++){$k[$j++]=$_.height}var _Gm=$a();$k[$j++]=Infinity;for(var _Go=0,_Gp=~~(($_.sbs.length+1)/2);_Go<_Gp;_Go++){$k[$j++]=0}var _Gq=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_Gh;$k[$j++]="bhs";$k[$j++]=_Gm;$k[$j++]="bbs";$k[$j++]=_Gq;$k[$j++]="borderleft";$k[$j++]=0;$k[$j++]="borderright";$k[$j++]=0;$k[$j++]="bordertop";$k[$j++]=0;$k[$j++]="borderbottom";$k[$j++]=0;$k[$j++]="opt";$k[$j++]=$_.options;var _Gs=$d();$k[$j++]=_Gs;if(!$_.dontdraw){bwipp_renlinear()}}else{$_.seps=$a($_.numrows);for(var _Gy=0,_Gx=$_.numrows-1;_Gy<=_Gx;_Gy+=1){$_.r=_Gy;$_.row=$g($_.rows,$_.r);$k[$j++]=Infinity;for(var _H4=0,_H3=$_.row.length-1;_H4<=_H3;_H4+=2){$_.i=_H4;for(var _H8=0,_H9=$g($_.row,$_.i);_H8<_H9;_H8++){$k[$j++]=0}if($_.i<$_.row.length-1){for(var _HF=0,_HG=$g($_.row,$_.i+1);_HF<_HG;_HF++){$k[$j++]=1}}}$as($a($m()));$_.row=$k[--$j];$j--;$k[$j++]=Infinity;$F($_.row,function(){var _HL=$k[--$j];$k[$j++]=$f(1-_HL)});$_.sep=$a();$k[$j++]=Infinity;for(var _HP=19,_HO=$_.row.length-13;_HP<=_HO;_HP+=98){$k[$j++]=_HP}for(var _HS=68,_HR=$_.row.length-13;_HS<=_HR;_HS+=98){$k[$j++]=_HS}$_.finderpos=$a();var _HU=$_.finderpos;for(var _HV=0,_HW=_HU.length;_HV<_HW;_HV++){var _HX=$g(_HU,_HV);for(var _HZ=_HX,_HY=$f(_HX+14);_HZ<=_HY;_HZ+=1){$_.i=_HZ;if($g($_.row,$_.i)==0){if($g($_.row,$_.i-1)==1){$k[$j++]=1}else{var _Hj=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_Hj}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}}$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.row.length-4,$a([0,0,0,0]));if($_.segments%4==0&&$_.r%2==1){if($g($_.rows,$_.r).length!=$g($_.rows,0).length&&$_.finderpos.length%2==1){$k[$j++]=Infinity;$k[$j++]=0;$q($_.row);$_.row=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a()}else{for(var _I5=$_.row.length-1;_I5>=0;_I5-=1){$k[$j++]=$g($_.row,_I5)}$as($_.row);$j--;for(var _IA=$_.sep.length-1;_IA>=0;_IA-=1){$k[$j++]=$g($_.sep,_IA)}$as($_.sep);$j--}}$p($_.rows,$_.r,$_.row);$p($_.seps,$_.r,$_.sep)}$_.pixx=$g($_.rows,0).length;$k[$j++]=Infinity;for(var _IN=0,_IO=$_.pixx;_IN<_IO;_IN++){$k[$j++]=0}var _IP=$a();$P(_IP,0,$g($_.rows,$_.numrows-1));$p($_.rows,$_.numrows-1,_IP);$k[$j++]=Infinity;for(var _IW=0,_IX=$_.pixx;_IW<_IX;_IW++){$k[$j++]=0}var _IY=$a();$P(_IY,0,$g($_.seps,$_.numrows-1));$p($_.seps,$_.numrows-1,_IY);$k[$j++]=Infinity;for(var _If=0,_Ig=~~($_.pixx/2)+1;_If<_Ig;_If++){$k[$j++]=0;$k[$j++]=1}$_.sep=$G($a(),0,$_.pixx);$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.pixx-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _Ir=0,_Iq=$_.numrows-1;_Ir<=_Iq;_Ir+=1){$_.r=_Ir;if($_.r!=0){$q($g($_.seps,$_.r))}for(var _Ix=0,_Iy=$_.barxmult;_Ix<_Iy;_Ix++){$q($g($_.rows,$_.r))}if($_.r!=$_.numrows-1){$q($g($_.seps,$_.r));$q($_.sep)}}$_.pixs=$a();var _JH=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",~~($_.pixs.length/$_.pixx)],["height",~~($_.pixs.length/$_.pixx)/72],["width",$_.pixx/72],["borderleft",0],["borderright",0],["bordertop",0],["borderbottom",0],["opt",$_.options]]);$k[$j++]=_JH;if(!$_.dontdraw){bwipp_renmatrix()}}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_databarexpandedstacked(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","expandedstacked");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databarexpanded();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1northamericancoupon(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.coupontextfont="OCR-B";$_.coupontextsize=9;$_.coupontextxoffset=null;$_.coupontextyoffset=null;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$j--;$_.vals=$k[--$j];$_.ais=$k[--$j];if($_.ais.length!=1){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure#9933";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";bwipp_raiseerror()}if($ne($g($_.ais,0),"8110")){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure#9936";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";bwipp_raiseerror()}$_.val=$g($_.vals,0);$_.vli=$f($g($_.val,0)-48);if($_.vli<0||$_.vli>6){$k[$j++]="bwipp.gs1northamericancouponBadVLI#9943";$k[$j++]="The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6";bwipp_raiseerror()}$_.gcp=$G($_.val,1,$f($_.vli+6));$_.cod=$G($_.val,$f($_.vli+7),6);$_.coupontext=$s($_.gcp.length+7);$P($_.coupontext,0,$_.gcp);$P($_.coupontext,$_.gcp.length,"-");$P($_.coupontext,$_.gcp.length+1,$_.cod);$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_databarexpandedstacked();var _W=$k[--$j];$_[$k[--$j]]=_W;if($_.includetext){if($eq($_.coupontextxoffset,null)){$_.coupontextxoffset=0}if($eq($_.coupontextyoffset,null)){$_.coupontextyoffset=$f($g($_.args,"height")*72+3)}var _e=$g($_.args,"txt")!==undefined;if(_e){$_.txt=$g($_.args,"txt");$_.newtxt=$a($_.txt.length+1);$P($_.newtxt,0,$_.txt);$p($_.newtxt,$_.newtxt.length-1,$a([$_.coupontext,$_.coupontextxoffset,$_.coupontextyoffset,$_.coupontextfont,$_.coupontextsize]));$p($_.args,"txt",$_.newtxt)}else{$p($_.args,"txt",$a([$a([$_.coupontext,$_.coupontextxoffset,$_.coupontextyoffset,$_.coupontextfont,$_.coupontextsize])]))}}$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_pharmacode(){$_=Object.create($_);$_.dontdraw=false;$_.height=8*2.835/72;$_.nwidth=.5*2.835;$_.wwidth=1.5*2.835;$_.swidth=1*2.835;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length<1||$_.barcode.length>6){$k[$j++]="bwipp.pharmacodeBadLength#10023";$k[$j++]="Pharmacode must be 1 to 6 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.pharmacodeBadCharacter#10027";$k[$j++]="Pharmacode must contain only digits";bwipp_raiseerror()}});var _7=$i($_.barcode);if(_7<3||_7>131070){$k[$j++]="bwipp.pharmacodeBadValue#10031";$k[$j++]="Pharmacode value must be between 3 and 131070";bwipp_raiseerror()}$_.txt=$a($_.barcode.length);for(var _C=0,_B=$_.barcode.length-1;_C<=_B;_C+=1){$_.i=_C;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.barcode=$R($s(17),$i($_.barcode)+1,2);$_.barcode=$G($_.barcode,1,$_.barcode.length-1);$_.barlen=$_.barcode.length;$_.sbs=$a($_.barlen*2);for(var _U=0,_T=$_.barlen-1;_U<=_T;_U+=1){$_.i=_U;$_.enc=$G($_.barcode,$_.i,1);if($eq($_.enc,"0")){$p($_.sbs,$_.i*2,$_.nwidth)}else{$p($_.sbs,$_.i*2,$_.wwidth)}$p($_.sbs,$_.i*2+1,$_.swidth)}$k[$j++]=Infinity;var _i=$_.sbs;$k[$j++]=Infinity;for(var _k=0,_l=~~(($_.sbs.length+1)/2);_k<_l;_k++){$k[$j++]=$_.height}var _n=$a();$k[$j++]=Infinity;for(var _p=0,_q=~~(($_.sbs.length+1)/2);_p<_q;_p++){$k[$j++]=0}var _r=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_i;$k[$j++]="bhs";$k[$j++]=_n;$k[$j++]="bbs";$k[$j++]=_r;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _u=$d();$k[$j++]=_u;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_pharmacode2(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.height=4;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length<1||$_.barcode.length>8){$k[$j++]="bwipp.pharmacode2BadLength#10112";$k[$j++]="Two-track Pharmacode must be 1 to 6 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _5=$k[--$j];if(_5<48||_5>57){$k[$j++]="bwipp.pharmacode2badCharacter#10116";$k[$j++]="Two-track Pharmacode must contain only digits";bwipp_raiseerror()}});var _7=$i($_.barcode);if(_7<4||_7>64570080){$k[$j++]="bwipp.pharmacode2badValue#10120";$k[$j++]="Two-track Pharmacode value must be between 4 and 64570080";bwipp_raiseerror()}$_.txt=$a($_.barcode.length);for(var _C=0,_B=$_.barcode.length-1;_C<=_B;_C+=1){$_.i=_C;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.encstr=$s(16);$_.sbs=$a(32);$_.bar=1/25.4*$_.height;$_.spc=1/25.4*72;$_.i=15;$_.val=$i($_.barcode);for(;;){if($_.val==0){break}var _P=$_.val%3;$_.val=~~($f($_.val-$g($a([3,1,2]),_P))/3);$p($_.encstr,$_.i,$g($a([2,0,1]),_P));$_.i=$_.i-1}$_.encstr=$G($_.encstr,$_.i+1,15-$_.i);$_.bhs=$a($_.encstr.length);$_.bbs=$a($_.encstr.length);for(var _i=0,_h=$_.encstr.length-1;_i<=_h;_i+=1){$_.i=_i;var _l=$g($_.encstr,$_.i);$p($_.bhs,$_.i,$_.bar*$g($a([1,1,2]),_l));$p($_.bbs,$_.i,$g($a([0,$_.bar,0]),_l))}$k[$j++]=Infinity;var _w=$_.bhs;var _x=$_.bbs;$k[$j++]=Infinity;for(var _z=0,_10=$_.encstr.length*2;_z<_10;_z++){$k[$j++]=$_.spc}var _12=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bhs";$k[$j++]=_w;$k[$j++]="bbs";$k[$j++]=_x;$k[$j++]="sbs";$k[$j++]=_12;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="textyoffset";$k[$j++]=4;$k[$j++]="opt";$k[$j++]=$_.options;var _15=$d();$k[$j++]=_15;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code2of5(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$_.version="industrial";$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.code2of5emptyData#10219";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_code2of5);$F($_.barcode,function(){var _4=$k[--$j];if(_4<48||_4>57){$k[$j++]="bwipp.code2of5badCharacter#10227";$k[$j++]="Code 25 must contain only digits";bwipp_raiseerror()}});$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _7=$k[--$j];$k[$j++]=$f(_7-1)}var _8=$k[--$j];$_[$k[--$j]]=_8;$_.checksum=0;for(var _C=0,_B=$f($_.barlen-1);_C<=_B;_C+=1){$_.i=_C;$k[$j++]="checksum";$k[$j++]=$_.checksum;$k[$j++]=$f($g($_.barcode,$_.i)-48);if($f($_.barlen-$_.i)%2!=0){var _J=$k[--$j];$k[$j++]=_J*3}var _K=$k[--$j];var _L=$k[--$j];$_[$k[--$j]]=$f(_L+_K)}$_.checksum=(10-$_.checksum%10)%10;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$_.checksum+48){$k[$j++]="bwipp.code2of5badCheckDigit#10241";$k[$j++]="Incorrect Code 25 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}if(!bwipp_code2of5.__10273__){$_=Object.create($_);var _b=new Map([["industrial",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","313111","31113"])],["iata",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","1111","311"])],["matrix",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","311111","31111"])],["coop",$a(["331111","111331","113131","113311","131131","131311","133111","311131","311311","313111","3131","133"])],["datalogic",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","1111","311"])]]);$_.versions=_b;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code2of5.$ctx[id]=$_[id]);bwipp_code2of5.__10273__=1;$_=Object.getPrototypeOf($_)}var _f=$g($_.versions,$_.version)!==undefined;if(!_f){$k[$j++]="bwipp.code2of5badVersion#10276";$k[$j++]="Unrecognised Code 25 version";bwipp_raiseerror()}$_.encs=$g($_.versions,$_.version);$_.cs=$g($_.encs,0).length;$k[$j++]="cw";$k[$j++]=0;$F($g($_.encs,0),function(){var _n=$k[--$j];var _o=$k[--$j];$k[$j++]=$f(_o+$f(_n-48))});var _p=$k[--$j];$_[$k[--$j]]=_p;$_.ss=$g($_.encs,10).length;$k[$j++]="sw";$k[$j++]=0;$F($g($_.encs,10),function(){var _v=$k[--$j];var _w=$k[--$j];$k[$j++]=$f(_w+$f(_v-48))});var _x=$k[--$j];$_[$k[--$j]]=_x;var _10=$g($_.encs,11);$_.es=_10.length;if(!bwipp_code2of5.__10289__){$_=Object.create($_);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code2of5.$ctx[id]=$_[id]);bwipp_code2of5.__10289__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="sbs";$k[$j++]=$_.barlen;if($_.includecheck){var _14=$k[--$j];$k[$j++]=$f(_14+1)}var _19=$s($f($f($k[--$j]*$_.cs+$_.ss)+$_.es));$_[$k[--$j]]=_19;$k[$j++]="txt";$k[$j++]=$_.barlen;if($_.includecheck){var _1D=$k[--$j];$k[$j++]=$f(_1D+1)}var _1F=$a($k[--$j]);$_[$k[--$j]]=_1F;$P($_.sbs,0,$g($_.encs,10));for(var _1M=0,_1L=$f($_.barlen-1);_1M<=_1L;_1M+=1){$_.i=_1M;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*$_.cs+$_.ss,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$f($_.i*$_.cw+$_.sw),$_.textyoffset,$_.textfont,$_.textsize]))}if($_.includecheck){$P($_.sbs,$f($_.barlen*$_.cs+$_.ss),$g($_.encs,$_.checksum));$P($_.sbs,$f($f($_.barlen*$_.cs+$_.cs)+$_.ss),$g($_.encs,11));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*$_.cw+$_.sw),$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*$_.cw+$_.sw),$_.textyoffset,$_.textfont,$_.textsize]))}}else{$P($_.sbs,$f($_.barlen*$_.cs+$_.ss),$g($_.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($_.sbs,function(){var _2U=$k[--$j];$k[$j++]=$f(_2U-48)});var _2V=$a();$k[$j++]=Infinity;for(var _2X=0,_2Y=~~(($_.sbs.length+1)/2);_2X<_2Y;_2X++){$k[$j++]=$_.height}var _2a=$a();$k[$j++]=Infinity;for(var _2c=0,_2d=~~(($_.sbs.length+1)/2);_2c<_2d;_2c++){$k[$j++]=0}var _2e=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2V;$k[$j++]="bhs";$k[$j++]=_2a;$k[$j++]="bbs";$k[$j++]=_2e;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2i=$d();$k[$j++]=_2i;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_industrial2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","industrial");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_iata2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","iata");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_matrix2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","matrix");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_coop2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","coop");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_datalogic2of5(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"version","datalogic");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code2of5();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_code11(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.code11emptyData#10624";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_code11);if(!bwipp_code11.__10641__){$_=Object.create($_);$_.encs=$a(["111131","311131","131131","331111","113131","313111","133111","111331","311311","311111","113111","113311"]);$_.barchars="0123456789-";$_.charvals=new Map;for(var _4=0;_4<=10;_4+=1){$p($_.charvals,$G($_.barchars,_4,1),_4)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code11.$ctx[id]=$_[id]);bwipp_code11.__10641__=1;$_=Object.getPrototypeOf($_)}for(var _B=0,_A=$_.barcode.length-1;_B<=_A;_B+=1){var _F=$g($_.charvals,$G($_.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.code11badCharacter#10646";$k[$j++]="Code 11 must contain only digits and dashes";bwipp_raiseerror()}}$_.barlen=$_.barcode.length;if($_.validatecheck){if($_.barlen==11){$k[$j++]="bwipp.code11badLength#10653";$k[$j++]="Code 11 cannot be 11 characters using check digits";bwipp_raiseerror()}var _L=$_.barlen<=10?1:2;$_.barlen=$_.barlen-_L}$k[$j++]="numchecks";if($_.includecheck||$_.validatecheck){var _P=$_.barlen>=10?2:1;$k[$j++]=_P}else{$k[$j++]=0}var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.checksum1=0;$_.checksum2=0;for(var _U=0,_T=$_.barlen-1;_U<=_T;_U+=1){$_.i=_U;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.checksum1=$f($_.checksum1+(($_.barlen-$_.i-1)%10+1)*$_.indx);$_.checksum2=$f($_.checksum2+(($_.barlen-$_.i)%9+1)*$_.indx)}$_.checksum1=$_.checksum1%11;$_.checksum2=$f($_.checksum2+$_.checksum1)%11;if($_.validatecheck){if($_.numchecks==1){var _r=$_.checksum1;if($g($_.barcode,$_.barlen)!=$g($_.barchars,_r)){$k[$j++]="bwipp.code11badCheckDigit#10671";$k[$j++]="Incorrect Code 11 check digit provided";bwipp_raiseerror()}}else{if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum1)||$g($_.barcode,$_.barlen+1)!=$g($_.barchars,$_.checksum2)){$k[$j++]="bwipp.code11badCheckDigits#10676";$k[$j++]="Incorrect Code 11 check digits provided";bwipp_raiseerror()}}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}$_.sbs=$s($f($f($_.barlen+$_.numchecks)*6+12));$_.txt=$a($f($_.barlen+$_.numchecks));$P($_.sbs,0,$g($_.encs,11));$_.xpos=8;for(var _1J=0,_1I=$_.barlen-1;_1J<=_1I;_1J+=1){$_.i=_1J;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*6+6,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));for(var _1f=0;_1f<=5;_1f+=1){$_.xpos=$f($f($g($_.enc,_1f)-48)+$_.xpos)}}if($_.includecheck){if($_.barlen>=10){$P($_.sbs,$_.barlen*6+6,$g($_.encs,$_.checksum1));$P($_.sbs,$_.barlen*6+12,$g($_.encs,$_.checksum2));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum1,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));$_.enc=$g($_.encs,$_.checksum1);for(var _29=0;_29<=5;_29+=1){$_.xpos=$f($f($g($_.enc,_29)-48)+$_.xpos)}$p($_.txt,$_.barlen+1,$a([$G($_.barchars,$_.checksum2,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a(["",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));$p($_.txt,$_.barlen+1,$a(["",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$_.barlen*6+18,$g($_.encs,11))}else{$P($_.sbs,$_.barlen*6+6,$g($_.encs,$_.checksum1));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum1,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a(["",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$_.barlen*6+12,$g($_.encs,11))}}else{$P($_.sbs,$_.barlen*6+6,$g($_.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _3A=$_.sbs;for(var _3B=0,_3C=_3A.length;_3B<_3C;_3B++){$k[$j++]=$g(_3A,_3B)-48}var _3E=$a();$k[$j++]=Infinity;for(var _3G=0,_3H=~~(($_.sbs.length+1)/2);_3G<_3H;_3G++){$k[$j++]=$_.height}var _3J=$a();$k[$j++]=Infinity;for(var _3L=0,_3M=~~(($_.sbs.length+1)/2);_3L<_3M;_3L++){$k[$j++]=0}var _3N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_3E;$k[$j++]="bhs";$k[$j++]=_3J;$k[$j++]="bbs";$k[$j++]=_3N;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _3R=$d();$k[$j++]=_3R;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_bc412(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.includestartstop=false;$_.semi=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.bc412emptyData#10796";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.semi){$_.includestartstop=true}bwipp_loadctx(bwipp_bc412);if(!bwipp_bc412.__10811__){$_=Object.create($_);$_.barchars="0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M";$_.charvals=new Map;for(var _4=0;_4<=34;_4+=1){$p($_.charvals,$G($_.barchars,_4,1),_4)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_bc412.$ctx[id]=$_[id]);bwipp_bc412.__10811__=1;$_=Object.getPrototypeOf($_)}for(var _B=0,_A=$_.barcode.length-1;_B<=_A;_B+=1){var _F=$g($_.charvals,$G($_.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.bc412badCharacter#10816";$k[$j++]="BC412 must contain only digits and capital letters except O";bwipp_raiseerror()}}if($_.semi){if($_.validatecheck){if($_.barcode.length<8||$_.barcode.length>19){$k[$j++]="bwipp.bc412semivalidateBadLength#10824";$k[$j++]="BC412 semi with check digit must be 8 to 19 characters long";bwipp_raiseerror()}}else{if($_.barcode.length<7||$_.barcode.length>18){$k[$j++]="bwipp.bc412semiBadLength#10828";$k[$j++]="BC412 semi must be 7 to 18 characters long";bwipp_raiseerror()}}$_.barlen=$_.barcode.length;if(!$_.validatecheck){$_.barlen=$_.barlen+1;$_.sbarcode=$s($_.barlen);$p($_.sbarcode,0,$g($_.barcode,0));$p($_.sbarcode,1,48);$P($_.sbarcode,2,$G($_.barcode,1,$_.barlen-2));$_.barcode=$_.sbarcode}$_.sumodd=0;$_.sumeven=0;for(var _c=0,_b=$_.barlen-1;_c<=_b;_c+=1){$_.i=_c;$k[$j++]=$g($_.charvals,$G($_.barcode,$_.i,1));if($_.i%2==0){$_.sumodd=$f($k[--$j]+$_.sumodd)}else{$_.sumeven=$f($k[--$j]+$_.sumeven)}}$_.checksum=$f($_.sumodd%35+$_.sumeven%35*2)%35;if($_.validatecheck){if($_.checksum!=0){$k[$j++]="bwipp.bc412semiBadCheckDigit#10854";$k[$j++]="Incorrect BC412 semi check digit provided";bwipp_raiseerror()}}else{$_.checksum=$_.checksum*17%35;$p($_.barcode,1,$g($_.barchars,$_.checksum))}}else{$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _y=$k[--$j];$k[$j++]=$f(_y-1)}var _z=$k[--$j];$_[$k[--$j]]=_z;$_.checksum=0;for(var _13=0,_12=$_.barlen-1;_13<=_12;_13+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_13,1))+$_.checksum)}$_.checksum=$_.checksum%35;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.bc412badCheckDigit#10871";$k[$j++]="Incorrect BC412 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen);$_.includecheck=true}}if(!bwipp_bc412.__10890__){$_=Object.create($_);$_.encs=$a(["11111115","13111212","11131113","12111213","12121311","13131111","12111312","11131212","11121411","11151111","15111111","11111511","12131211","13121112","13111311","11111214","12121113","11111313","13111113","11121213","11141112","11121312","11141211","14121111","12121212","11131311","13121211","12111411","14111211","11111412","12111114","14111112","12141111","11121114","12131112","12","111"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_bc412.$ctx[id]=$_[id]);bwipp_bc412.__10890__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s(($_.barlen+1)*8+5);if($_.includecheck){$_.txt=$a($_.barlen+1)}else{$_.txt=$a($_.barlen)}if($_.includestartstop){$P($_.sbs,0,$g($_.encs,35));$_.pos=2;$_.txtpos=3}else{$_.pos=0;$_.txtpos=0}for(var _1Z=0,_1Y=$_.barlen-1;_1Z<=_1Y;_1Z+=1){$_.i=_1Z;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.sbs,$_.pos,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*12+$_.txtpos,$_.textyoffset,$_.textfont,$_.textsize]));$_.pos=$_.pos+8}if($_.includecheck){$P($_.sbs,$_.pos,$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$_.barlen*12+$_.txtpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a(["",$_.barlen*12+$_.txtpos,$_.textyoffset,$_.textfont,$_.textsize]))}$_.pos=$_.pos+8}if($_.includestartstop){$P($_.sbs,$_.pos,$g($_.encs,36));$_.pos=$_.pos+3}$_.sbs=$G($_.sbs,0,$_.pos);$k[$j++]=Infinity;$k[$j++]=Infinity;var _2W=$_.sbs;for(var _2X=0,_2Y=_2W.length;_2X<_2Y;_2X++){$k[$j++]=$f($g(_2W,_2X)-48)}var _2a=$a();$k[$j++]=Infinity;for(var _2c=0,_2d=~~(($_.sbs.length+1)/2);_2c<_2d;_2c++){$k[$j++]=$_.height}var _2f=$a();$k[$j++]=Infinity;for(var _2h=0,_2i=~~(($_.sbs.length+1)/2);_2h<_2i;_2h++){$k[$j++]=0}var _2j=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2a;$k[$j++]="bhs";$k[$j++]=_2f;$k[$j++]="bbs";$k[$j++]=_2j;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2n=$d();$k[$j++]=_2n;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_rationalizedCodabar(){$_=Object.create($_);$_.dontdraw=false;$_.altstartstop=false;$_.includecheck=false;$_.validatecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.barcode.length<2||$_.barcode.length<3&&$_.validatecheck){$k[$j++]="bwipp.rationalizedCodabarBadLength#10999";$k[$j++]="Codabar must be at least 2 characters in length excluding any check digit";bwipp_raiseerror()}bwipp_loadctx(bwipp_rationalizedCodabar);if(!bwipp_rationalizedCodabar.__11016__){$_=Object.create($_);$_.encs=$a(["11111331","11113311","11131131","33111111","11311311","31111311","13111131","13113111","13311111","31131111","11133111","11331111","31113131","31311131","31313111","11313131","11331311","13131131","11131331","11133311"]);$_.barcharsnormal="0123456789-$:/.+ABCD";$_.barcharsalt="0123456789-$:/.+TN*E";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_rationalizedCodabar.$ctx[id]=$_[id]);bwipp_rationalizedCodabar.__11016__=1;$_=Object.getPrototypeOf($_)}var _8=$_.altstartstop?$_.barcharsalt:$_.barcharsnormal;$_.barchars=_8;$_.charvals=new Map;for(var _9=0;_9<=19;_9+=1){$p($_.charvals,$G($_.barchars,_9,1),_9)}$_.bodyvals=new Map;for(var _D=0;_D<=15;_D+=1){$p($_.bodyvals,$G($_.barchars,_D,1),_D)}$_.ssvals=new Map;for(var _H=16;_H<=19;_H+=1){$p($_.ssvals,$G($_.barchars,_H,1),_H)}var _O=$g($_.ssvals,$G($_.barcode,0,1))!==undefined;var _T=$g($_.ssvals,$G($_.barcode,$_.barcode.length-1,1))!==undefined;if(!_O||!_T){if($_.altstartstop){$k[$j++]="bwipp.rationalizedCodabarBadAltStartStop#11031";$k[$j++]="Codabar start and stop characters must be one of E N T or *";bwipp_raiseerror()}else{$k[$j++]="bwipp.rationalizedCodabarBadStartStop#11033";$k[$j++]="Codabar start and stop characters must be one of A B C or D";bwipp_raiseerror()}}for(var _X=1,_W=$_.barcode.length-2;_X<=_W;_X+=1){var _b=$g($_.bodyvals,$G($_.barcode,_X,1))!==undefined;if(!_b){$k[$j++]="bwipp.rationalizedCodabarBadCharacter#11038";$k[$j++]="Codabar body must contain only digits and symbols - $ : / . +";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _e=$k[--$j];$k[$j++]=$f(_e-1)}var _f=$k[--$j];$_[$k[--$j]]=_f;$_.checksum=0;for(var _j=0,_i=$f($_.barlen-2);_j<=_i;_j+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_j,1))+$_.checksum)}var _r=$G($_.barcode,$_.barcode.length-1,1);$_.checksum=$f($g($_.charvals,_r)+$_.checksum);$_.checksum=$f(16-$_.checksum%16)%16;if($_.validatecheck){if($g($_.barcode,$f($_.barlen-1))!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.rationalizedCodabarBadCheckDigit#11054";$k[$j++]="Incorrect Codabar check digit provided";bwipp_raiseerror()}var _14=$s($_.barlen);$P(_14,0,$G($_.barcode,0,$f($_.barlen-1)));$P(_14,$f($_.barlen-1),$G($_.barcode,$_.barlen,1));$_.barcode=_14;$_.includecheck=true}$k[$j++]="sbs";$k[$j++]=$_.barlen;if($_.includecheck){var _1E=$k[--$j];$k[$j++]=$f(_1E+1)}var _1G=$s($k[--$j]*8);$_[$k[--$j]]=_1G;$k[$j++]="txt";$k[$j++]=$_.barlen;if($_.includecheck){var _1K=$k[--$j];$k[$j++]=$f(_1K+1)}var _1M=$a($k[--$j]);$_[$k[--$j]]=_1M;$_.xpos=0;for(var _1Q=0,_1P=$f($_.barlen-2);_1Q<=_1P;_1Q+=1){$_.i=_1Q;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*8,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]));for(var _1m=0;_1m<=7;_1m+=1){$_.xpos=$f($f($g($_.enc,_1m)-48)+$_.xpos)}}if($_.includecheck){$P($_.sbs,$f($_.barlen*8-8),$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$f($_.barlen-1),$a([$G($_.barchars,$_.checksum,1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$f($_.barlen-1),$a([" ",$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}for(var _2E=0;_2E<=7;_2E+=1){$_.xpos=$f($f($g($g($_.encs,$_.checksum),_2E)-48)+$_.xpos)}$_.indx=$g($_.charvals,$G($_.barcode,$f($_.barlen-1),1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.barlen*8,$_.enc);$p($_.txt,$_.barlen,$a([$G($_.barcode,$f($_.barlen-1),1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}else{$_.indx=$g($_.charvals,$G($_.barcode,$f($_.barlen-1),1));$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$f($_.barlen*8-8),$_.enc);$p($_.txt,$f($_.barlen-1),$a([$G($_.barcode,$f($_.barlen-1),1),$_.xpos,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($_.sbs,function(){var _31=$k[--$j];$k[$j++]=$f(_31-48)});var _32=$a();$k[$j++]=Infinity;for(var _34=0,_35=~~(($_.sbs.length+1)/2);_34<_35;_34++){$k[$j++]=$_.height}var _37=$a();$k[$j++]=Infinity;for(var _39=0,_3A=~~(($_.sbs.length+1)/2);_39<_3A;_39++){$k[$j++]=0}var _3B=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_32;$k[$j++]="bhs";$k[$j++]=_37;$k[$j++]="bbs";$k[$j++]=_3B;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _3F=$d();$k[$j++]=_3F;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_onecode(){$_=Object.create($_);$_.dontdraw=false;$_.height=.15;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_onecode);$_.barlen=$_.barcode.length;$F($_.barcode,function(){var _4=$k[--$j];if(_4<48||_4>57){$k[$j++]="bwipp.onecodeBadCharacter#11164";$k[$j++]="The data must contain only digits";bwipp_raiseerror()}});if($_.barlen!=20&&$_.barlen!=25&&$_.barlen!=29&&$_.barlen!=31){$k[$j++]="bwipp.onecodeInvalidLength#11169";$k[$j++]="The data must be 20, 25, 29 or 31 digits";bwipp_raiseerror()}$k[$j++]=Infinity;var _B=$eq($G($_.barcode,5,1),"9")?14:11;$k[$j++]=2;$k[$j++]=2;$k[$j++]=5;$k[$j++]=5;$k[$j++]=_B;$k[$j++]=_B;$k[$j++]=20;$k[$j++]=20;$k[$j++]=25;$k[$j++]=25;$k[$j++]=29;$k[$j++]=29;$_.txtdict=$d();$_.txt=$a($_.barlen+6);$_.spacecnt=0;for(var _H=0,_G=$_.barlen-1;_H<=_G;_H+=1){$_.i=_H;var _K=$g($_.txtdict,$_.i)!==undefined;if(_K){$p($_.txt,$_.i+$_.spacecnt,$a([" ",0,0,"",0]));$_.spacecnt=$_.spacecnt+1}$p($_.txt,$_.i+$_.spacecnt,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$_.txt=$G($_.txt,0,$_.barcode.length+$_.spacecnt);$_.normalize=function(){$_.base=$k[--$j];$_.num=$k[--$j];for(var _e=$_.num.length-1;_e>=1;_e-=1){$_.i=_e;var _f=$_.num;var _g=$_.i;$p(_f,_g-1,$f($g(_f,_g-1)+~~($g($_.num,$_.i)/$_.base)));$p($_.num,$_.i,$g($_.num,$_.i)%$_.base)}for(;;){if($lt($g($_.num,0),$_.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$q($_.num);$_.num=$a();$p($_.num,0,$f($g($_.num,0)+~~($g($_.num,1)/$_.base)));$p($_.num,1,$g($_.num,1)%$_.base)}$k[$j++]=Infinity;$_.i=true;var _17=$_.num;for(var _18=0,_19=_17.length;_18<_19;_18++){var _1A=$g(_17,_18);$k[$j++]=_1A;if(_1A==0&&$_.i){$j--}else{$_.i=false}}$_.num=$a();if($_.num.length==0){$_.num=$a([0])}$k[$j++]=$_.num};$_.bigadd=function(){var _1G=$k[--$j];var _1H=$k[--$j];$_.offset=Math.abs(_1G.length-_1H.length);if(_1G.length<_1H.length){var _=_1G;_1G=_1H;_1H=_}$_.a=_1G;$_.b=_1H;for(var _1K=0,_1J=$_.b.length-1;_1K<=_1J;_1K+=1){var _1L=$_.a;var _1M=$_.offset;$p(_1L,_1K+_1M,$f($g(_1L,_1K+_1M)+$g($_.b,_1K)))}$k[$j++]=$_.a};if(!bwipp_onecode.__11232__){$_=Object.create($_);var _1V=new Map([[20,$a([0])],[25,$a([1])],[29,$a([1,0,0,0,0,1])],[31,$a([1,0,0,0,1,0,0,0,0,1])]]);$_.startvals=_1V;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_onecode.$ctx[id]=$_[id]);bwipp_onecode.__11232__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="binval";$k[$j++]=$g($_.startvals,$_.barlen);$k[$j++]=Infinity;var _1c=$G($_.barcode,20,$_.barlen-20);for(var _1d=0,_1e=_1c.length;_1d<_1e;_1d++){$k[$j++]=$f($g(_1c,_1d)-48)}var _1g=$a();$k[$j++]=_1g;$_.bigadd();var _1h=$k[--$j];$_[$k[--$j]]=_1h;$k[$j++]=Infinity;$q($_.binval);$k[$j++]=$f($g($_.barcode,0)-48);$_.binval=$a();$k[$j++]=Infinity;var _1n=$_.binval;for(var _1o=0,_1p=_1n.length;_1o<_1p;_1o++){$k[$j++]=$g(_1n,_1o)*5}var _1r=$a();$k[$j++]="binval";$k[$j++]=_1r;$k[$j++]=$a([$f($g($_.barcode,1)-48)]);$_.bigadd();$k[$j++]=10;$_.normalize();var _1v=$k[--$j];$_[$k[--$j]]=_1v;$k[$j++]=Infinity;$q($_.binval);var _1z=$G($_.barcode,2,18);for(var _20=0,_21=_1z.length;_20<_21;_20++){$k[$j++]=$f($g(_1z,_20)-48)}$_.binval=$a();$_.bytes=$a(13);var _25=$_.binval;$_.bintmp=$A($a(_25.length),_25);for(var _28=12;_28>=0;_28-=1){$_.i=_28;for(var _2B=0,_2A=$_.bintmp.length-2;_2B<=_2A;_2B+=1){$_.j=_2B;var _2C=$_.bintmp;var _2D=$_.j;$p(_2C,_2D+1,$f($g(_2C,_2D+1)+$g($_.bintmp,$_.j)%256*10));$p($_.bintmp,$_.j,~~($g($_.bintmp,$_.j)/256))}$p($_.bytes,$_.i,$g($_.bintmp,$_.bintmp.length-1)%256);var _2S=$_.bintmp;var _2T=$_.bintmp;$p(_2S,_2T.length-1,~~($g(_2S,_2T.length-1)/256))}$_.fcs=2047;$_.dat=$g($_.bytes,0)<<5;for(var _2X=0,_2Y=6;_2X<_2Y;_2X++){if((($_.fcs^$_.dat)&1024)!=0){$_.fcs=$_.fcs<<1^3893}else{$_.fcs=$_.fcs<<1}$_.fcs=$_.fcs&2047;$_.dat=$_.dat<<1}for(var _2f=1;_2f<=12;_2f+=1){$_.dat=$g($_.bytes,_2f)<<3;for(var _2i=0,_2j=8;_2i<_2j;_2i++){if((($_.fcs^$_.dat)&1024)!=0){$_.fcs=$_.fcs<<1^3893}else{$_.fcs=$_.fcs<<1}$_.fcs=$_.fcs&2047;$_.dat=$_.dat<<1}}$_.codewords=$a(10);for(var _2r=9;_2r>=0;_2r-=1){$_.i=_2r;var _2t=$_.i==9?636:1365;$_.b=_2t;for(var _2w=0,_2v=$_.binval.length-2;_2w<=_2v;_2w+=1){$_.j=_2w;var _2x=$_.binval;var _2y=$_.j;$p(_2x,_2y+1,$f($g(_2x,_2y+1)+$g($_.binval,$_.j)%$_.b*10));$p($_.binval,$_.j,~~($g($_.binval,$_.j)/$_.b))}$p($_.codewords,$_.i,$g($_.binval,$_.binval.length-1)%$_.b);var _3G=$_.binval;var _3H=$_.binval;$p(_3G,_3H.length-1,~~($g(_3G,_3H.length-1)/$_.b))}$p($_.codewords,9,$g($_.codewords,9)*2);if(($_.fcs&1024)!=0){$p($_.codewords,0,$f($g($_.codewords,0)+659))}if(!bwipp_onecode.__11397__){$_=Object.create($_);$_.tab513=$a([31,7936,47,7808,55,7552,59,7040,61,6016,62,3968,79,7744,87,7488,91,6976,93,5952,94,3904,103,7360,107,6848,109,5824,110,3776,115,6592,117,5568,118,3520,121,5056,122,3008,124,1984,143,7712,151,7456,155,6944,157,5920,158,3872,167,7328,171,6816,173,5792,174,3744,179,6560,181,5536,182,3488,185,5024,186,2976,188,1952,199,7264,203,6752,205,5728,206,3680,211,6496,213,5472,214,3424,217,4960,218,2912,220,1888,227,6368,229,5344,230,3296,233,4832,234,2784,236,1760,241,4576,242,2528,244,1504,248,992,271,7696,279,7440,283,6928,285,5904,286,3856,295,7312,299,6800,301,5776,302,3728,307,6544,309,5520,310,3472,313,5008,314,2960,316,1936,327,7248,331,6736,333,5712,334,3664,339,6480,341,5456,342,3408,345,4944,346,2896,348,1872,355,6352,357,5328,358,3280,361,4816,362,2768,364,1744,369,4560,370,2512,372,1488,376,976,391,7216,395,6704,397,5680,398,3632,403,6448,405,5424,406,3376,409,4912,410,2864,412,1840,419,6320,421,5296,422,3248,425,4784,426,2736,428,1712,433,4528,434,2480,436,1456,440,944,451,6256,453,5232,454,3184,457,4720,458,2672,460,1648,465,4464,466,2416,468,1392,472,880,481,4336,482,2288,484,1264,488,752,527,7688,535,7432,539,6920,541,5896,542,3848,551,7304,555,6792,557,5768,558,3720,563,6536,565,5512,566,3464,569,5e3,570,2952,572,1928,583,7240,587,6728,589,5704,590,3656,595,6472,597,5448,598,3400,601,4936,602,2888,604,1864,611,6344,613,5320,614,3272,617,4808,618,2760,620,1736,625,4552,626,2504,628,1480,632,968,647,7208,651,6696,653,5672,654,3624,659,6440,661,5416,662,3368,665,4904,666,2856,668,1832,675,6312,677,5288,678,3240,681,4776,682,2728,684,1704,689,4520,690,2472,692,1448,696,936,707,6248,709,5224,710,3176,713,4712,714,2664,716,1640,721,4456,722,2408,724,1384,728,872,737,4328,738,2280,740,1256,775,7192,779,6680,781,5656,782,3608,787,6424,789,5400,790,3352,793,4888,794,2840,796,1816,803,6296,805,5272,806,3224,809,4760,810,2712,812,1688,817,4504,818,2456,820,1432,824,920,835,6232,837,5208,838,3160,841,4696,842,2648,844,1624,849,4440,850,2392,852,1368,865,4312,866,2264,868,1240,899,6200,901,5176,902,3128,905,4664,906,2616,908,1592,913,4408,914,2360,916,1336,929,4280,930,2232,932,1208,961,4216,962,2168,964,1144,1039,7684,1047,7428,1051,6916,1053,5892,1054,3844,1063,7300,1067,6788,1069,5764,1070,3716,1075,6532,1077,5508,1078,3460,1081,4996,1082,2948,1084,1924,1095,7236,1099,6724,1101,5700,1102,3652,1107,6468,1109,5444,1110,3396,1113,4932,1114,2884,1116,1860,1123,6340,1125,5316,1126,3268,1129,4804,1130,2756,1132,1732,1137,4548,1138,2500,1140,1476,1159,7204,1163,6692,1165,5668,1166,3620,1171,6436,1173,5412,1174,3364,1177,4900,1178,2852,1180,1828,1187,6308,1189,5284,1190,3236,1193,4772,1194,2724,1196,1700,1201,4516,1202,2468,1204,1444,1219,6244,1221,5220,1222,3172,1225,4708,1226,2660,1228,1636,1233,4452,1234,2404,1236,1380,1249,4324,1250,2276,1287,7188,1291,6676,1293,5652,1294,3604,1299,6420,1301,5396,1302,3348,1305,4884,1306,2836,1308,1812,1315,6292,1317,5268,1318,3220,1321,4756,1322,2708,1324,1684,1329,4500,1330,2452,1332,1428,1347,6228,1349,5204,1350,3156,1353,4692,1354,2644,1356,1620,1361,4436,1362,2388,1377,4308,1378,2260,1411,6196,1413,5172,1414,3124,1417,4660,1418,2612,1420,1588,1425,4404,1426,2356,1441,4276,1442,2228,1473,4212,1474,2164,1543,7180,1547,6668,1549,5644,1550,3596,1555,6412,1557,5388,1558,3340,1561,4876,1562,2828,1564,1804,1571,6284,1573,5260,1574,3212,1577,4748,1578,2700,1580,1676,1585,4492,1586,2444,1603,6220,1605,5196,1606,3148,1609,4684,1610,2636,1617,4428,1618,2380,1633,4300,1634,2252,1667,6188,1669,5164,1670,3116,1673,4652,1674,2604,1681,4396,1682,2348,1697,4268,1698,2220,1729,4204,1730,2156,1795,6172,1797,5148,1798,3100,1801,4636,1802,2588,1809,4380,1810,2332,1825,4252,1826,2204,1857,4188,1858,2140,1921,4156,1922,2108,2063,7682,2071,7426,2075,6914,2077,5890,2078,3842,2087,7298,2091,6786,2093,5762,2094,3714,2099,6530,2101,5506,2102,3458,2105,4994,2106,2946,2119,7234,2123,6722,2125,5698,2126,3650,2131,6466,2133,5442,2134,3394,2137,4930,2138,2882,2147,6338,2149,5314,2150,3266,2153,4802,2154,2754,2161,4546,2162,2498,2183,7202,2187,6690,2189,5666,2190,3618,2195,6434,2197,5410,2198,3362,2201,4898,2202,2850,2211,6306,2213,5282,2214,3234,2217,4770,2218,2722,2225,4514,2226,2466,2243,6242,2245,5218,2246,3170,2249,4706,2250,2658,2257,4450,2258,2402,2273,4322,2311,7186,2315,6674,2317,5650,2318,3602,2323,6418,2325,5394,2326,3346,2329,4882,2330,2834,2339,6290,2341,5266,2342,3218,2345,4754,2346,2706,2353,4498,2354,2450,2371,6226,2373,5202,2374,3154,2377,4690,2378,2642,2385,4434,2401,4306,2435,6194,2437,5170,2438,3122,2441,4658,2442,2610,2449,4402,2465,4274,2497,4210,2567,7178,2571,6666,2573,5642,2574,3594,2579,6410,2581,5386,2582,3338,2585,4874,2586,2826,2595,6282,2597,5258,2598,3210,2601,4746,2602,2698,2609,4490,2627,6218,2629,5194,2630,3146,2633,4682,2641,4426,2657,4298,2691,6186,2693,5162,2694,3114,2697,4650,2705,4394,2721,4266,2753,4202,2819,6170,2821,5146,2822,3098,2825,4634,2833,4378,2849,4250,2881,4186,2945,4154,3079,7174,3083,6662,3085,5638,3086,3590,3091,6406,3093,5382,3094,3334,3097,4870,3107,6278,3109,5254,3110,3206,3113,4742,3121,4486,3139,6214,3141,5190,3145,4678,3153,4422,3169,4294,3203,6182,3205,5158,3209,4646,3217,4390,3233,4262,3265,4198,3331,6166,3333,5142,3337,4630,3345,4374,3361,4246,3393,4182,3457,4150,3587,6158,3589,5134,3593,4622,3601,4366,3617,4238,3649,4174,3713,4142,3841,4126,4111,7681,4119,7425,4123,6913,4125,5889,4135,7297,4139,6785,4141,5761,4147,6529,4149,5505,4153,4993,4167,7233,4171,6721,4173,5697,4179,6465,4181,5441,4185,4929,4195,6337,4197,5313,4201,4801,4209,4545,4231,7201,4235,6689,4237,5665,4243,6433,4245,5409,4249,4897,4259,6305,4261,5281,4265,4769,4273,4513,4291,6241,4293,5217,4297,4705,4305,4449,4359,7185,4363,6673,4365,5649,4371,6417,4373,5393,4377,4881,4387,6289,4389,5265,4393,4753,4401,4497,4419,6225,4421,5201,4425,4689,4483,6193,4485,5169,4489,4657,4615,7177,4619,6665,4621,5641,4627,6409,4629,5385,4633,4873,4643,6281,4645,5257,4649,4745,4675,6217,4677,5193,4739,6185,4741,5161,4867,6169,4869,5145,5127,7173,5131,6661,5133,5637,5139,6405,5141,5381,5155,6277,5157,5253,5187,6213,5251,6181,5379,6165,5635,6157,6151,7171,6155,6659,6163,6403,6179,6275,6211,5189,4681,4433,4321,3142,2634,2386,2274,1612,1364,1252,856,744,496]);$_.tab213=$a([3,6144,5,5120,6,3072,9,4608,10,2560,12,1536,17,4352,18,2304,20,1280,24,768,33,4224,34,2176,36,1152,40,640,48,384,65,4160,66,2112,68,1088,72,576,80,320,96,192,129,4128,130,2080,132,1056,136,544,144,288,257,4112,258,2064,260,1040,264,528,513,4104,514,2056,516,1032,1025,4100,1026,2052,2049,4098,4097,2050,1028,520,272,160]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_onecode.$ctx[id]=$_[id]);bwipp_onecode.__11397__=1;$_=Object.getPrototypeOf($_)}$_.chars=$a(10);for(var _3V=0;_3V<=9;_3V+=1){$_.i=_3V;var _3Y=$g($_.codewords,$_.i);$k[$j++]=_3Y;if(_3Y<=1286){var _3b=$g($_.tab513,$k[--$j]);$k[$j++]=_3b}else{var _3e=$g($_.tab213,$f($k[--$j]-1287));$k[$j++]=_3e}$p($_.chars,$_.i,$k[--$j])}for(var _3i=9;_3i>=0;_3i-=1){$_.i=_3i;if((~~Math.pow(2,$_.i)&$_.fcs)!=0){$p($_.chars,$_.i,$g($_.chars,$_.i)^8191)}}if(!bwipp_onecode.__11434__){$_=Object.create($_);$_.barmap=$a([7,2,4,3,1,10,0,0,9,12,2,8,5,5,6,11,8,9,3,1,0,1,5,12,2,5,1,8,4,4,9,11,6,3,8,10,3,9,7,6,5,11,1,4,8,5,2,12,9,10,0,2,7,1,6,7,3,6,4,9,0,3,8,6,6,4,2,7,1,1,9,9,7,10,5,2,4,0,3,8,6,2,0,4,8,11,1,0,9,8,3,12,2,6,7,7,5,1,4,10,1,12,6,9,7,3,8,0,5,8,9,7,4,6,2,10,3,4,0,5,8,4,5,7,7,11,1,9,6,0,9,6,0,6,4,8,2,1,3,2,5,9,8,12,4,11,6,1,9,5,7,4,3,3,1,2,0,7,2,0,1,3,4,1,6,10,3,5,8,7,9,4,2,11,5,6,0,8,7,12,4,2,8,1,5,10,3,0,9,3,0,9,6,5,2,4,7,8,1,7,5,0,4,5,2,3,0,10,6,12,9,2,3,11,1,6,8,8,7,9,5,4,0,11,1,5,2,2,9,1,4,12,8,3,6,6,7,0,3,7,4,7,7,5,0,12,1,11,2,9,9,0,6,8,5,3,3,10,8,2]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_onecode.$ctx[id]=$_[id]);bwipp_onecode.__11434__=1;$_=Object.getPrototypeOf($_)}$_.bbs=$a(65);$_.bhs=$a(65);for(var _3u=0;_3u<=64;_3u+=1){$_.i=_3u;$_.dec=($g($_.chars,$g($_.barmap,$_.i*4))&~~Math.pow(2,$g($_.barmap,$_.i*4+1)))!=0;$_.asc=($g($_.chars,$g($_.barmap,$_.i*4+2))&~~Math.pow(2,$g($_.barmap,$_.i*4+3)))!=0;if(!$_.dec&&!$_.asc){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}if(!$_.dec&&$_.asc){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($_.dec&&!$_.asc){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($_.dec&&$_.asc){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}}$k[$j++]=Infinity;var _4h=$_.bbs;var _4i=$_.bhs;$k[$j++]=Infinity;for(var _4k=0,_4l=$_.bhs.length-1;_4k<_4l;_4k++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _4m=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_4h;$k[$j++]="bhs";$k[$j++]=_4i;$k[$j++]="sbs";$k[$j++]=_4m;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="left";$k[$j++]="textfont";$k[$j++]="OCR-B";$k[$j++]="textyoffset";$k[$j++]=1;$k[$j++]="textxoffset";$k[$j++]=-.3;$k[$j++]="opt";$k[$j++]=$_.options;var _4p=$d();$k[$j++]=_4p;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_postnet(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.125;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_postnet);$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _4=$k[--$j];$k[$j++]=$f(_4-1)}var _5=$k[--$j];$_[$k[--$j]]=_5;if($_.barlen!=5&&$_.barlen!=9&&$_.barlen!=11){$k[$j++]="bwipp.postnetBadLength#11529";$k[$j++]="USPS POSTNET must be 5, 9 or 11 digits excluding check digit";bwipp_raiseerror()}$F($_.barcode,function(){var _B=$k[--$j];if(_B<48||_B>57){$k[$j++]="bwipp.postnetBadCharacter#11533";$k[$j++]="USPS POSTNET must contain only digits";bwipp_raiseerror()}});if(!bwipp_postnet.__11547__){$_=Object.create($_);$_.barchars="0123456789";$_.encs=$a(["55222","22255","22525","22552","25225","25252","25522","52225","52252","52522","5","5"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_postnet.$ctx[id]=$_[id]);bwipp_postnet.__11547__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _G=0,_F=$f($_.barlen-1);_G<=_F;_G+=1){$_.i=_G;$_.checksum=$f($_.checksum+$f($g($_.barcode,$_.i)-48))}$_.checksum=$f(10-$_.checksum%10)%10;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.postnetBadCheckDigit#11557";$k[$j++]="Incorrect USPS POSTNET check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}$_.bhs=$a($f($_.barlen*5+7));$_.txt=$a($f($_.barlen+1));$_.enc=$g($_.encs,10);$_.heights=$a($_.enc.length);for(var _g=0,_f=$_.enc.length-1;_g<=_f;_g+=1){$_.j=_g;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,0,$_.heights);for(var _r=0,_q=$f($_.barlen-1);_r<=_q;_r+=1){$_.i=_r;$_.enc=$g($_.encs,$f($g($_.barcode,$_.i)-48));$_.heights=$a($_.enc.length);for(var _11=0,_10=$_.enc.length-1;_11<=_10;_11+=1){$_.j=_11;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$_.i*5+1,$_.heights);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,$_.checksum);$_.heights=$a($_.enc.length);for(var _1S=0,_1R=$_.enc.length-1;_1S<=_1R;_1S+=1){$_.j=_1S;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+1),$_.heights);if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*5+1)*72/25,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,11);$_.heights=$a($_.enc.length);for(var _20=0,_1z=$_.enc.length-1;_20<=_1z;_20+=1){$_.j=_20;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+6),$_.heights);$k[$j++]=Infinity;var _2A=$_.bhs;$k[$j++]=Infinity;for(var _2C=0,_2D=$_.bhs.length;_2C<_2D;_2C++){$k[$j++]=0}var _2E=$a();$k[$j++]=Infinity;for(var _2G=0,_2H=$_.bhs.length-1;_2G<_2H;_2G++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2I=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bhs";$k[$j++]=_2A;$k[$j++]="bbs";$k[$j++]=_2E;$k[$j++]="sbs";$k[$j++]=_2I;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2M=$d();$k[$j++]=_2M;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_planet(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.125;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_planet);$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _4=$k[--$j];$k[$j++]=$f(_4-1)}var _5=$k[--$j];$_[$k[--$j]]=_5;if($_.barlen!=11&&$_.barlen!=13){$k[$j++]="bwipp.planetBadLength#11677";$k[$j++]="USPS PLANET must be 11 or 13 digits excluding check digit";bwipp_raiseerror()}$F($_.barcode,function(){var _A=$k[--$j];if(_A<48||_A>57){$k[$j++]="bwipp.planetBadCharacter#11681";$k[$j++]="USPS PLANET must contain only digits";bwipp_raiseerror()}});if(!bwipp_planet.__11695__){$_=Object.create($_);$_.barchars="0123456789";$_.encs=$a(["22555","55522","55252","55225","52552","52525","52255","25552","25525","25255","5","5"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_planet.$ctx[id]=$_[id]);bwipp_planet.__11695__=1;$_=Object.getPrototypeOf($_)}$_.checksum=0;for(var _F=0,_E=$f($_.barlen-1);_F<=_E;_F+=1){$_.i=_F;$_.checksum=$f($_.checksum+$f($g($_.barcode,$_.i)-48))}$_.checksum=$f(10-$_.checksum%10)%10;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.planetBadCheckDigit#11706";$k[$j++]="Incorrect USPS PLANET check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}$_.bhs=$a($f($_.barlen*5+7));$_.txt=$a($f($_.barlen+1));$_.enc=$g($_.encs,10);$_.heights=$a($_.enc.length);for(var _f=0,_e=$_.enc.length-1;_f<=_e;_f+=1){$_.j=_f;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,0,$_.heights);for(var _q=0,_p=$f($_.barlen-1);_q<=_p;_q+=1){$_.i=_q;$_.enc=$g($_.encs,$f($g($_.barcode,$_.i)-48));$_.heights=$a($_.enc.length);for(var _10=0,_z=$_.enc.length-1;_10<=_z;_10+=1){$_.j=_10;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$_.i*5+1,$_.heights);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,$_.checksum);$_.heights=$a($_.enc.length);for(var _1R=0,_1Q=$_.enc.length-1;_1R<=_1Q;_1R+=1){$_.j=_1R;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+1),$_.heights);if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*5+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*5+1)*72/25,$_.textyoffset,$_.textfont,$_.textsize]))}$_.enc=$g($_.encs,11);$_.heights=$a($_.enc.length);for(var _1z=0,_1y=$_.enc.length-1;_1z<=_1y;_1z+=1){$_.j=_1z;$p($_.heights,$_.j,$i($G($_.enc,$_.j,1))*$_.height/5)}$P($_.bhs,$f($_.barlen*5+6),$_.heights);$k[$j++]=Infinity;var _29=$_.bhs;$k[$j++]=Infinity;for(var _2B=0,_2C=$_.bhs.length;_2B<_2C;_2B++){$k[$j++]=0}var _2D=$a();$k[$j++]=Infinity;for(var _2F=0,_2G=$_.bhs.length-1;_2F<_2G;_2F++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2H=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bhs";$k[$j++]=_29;$k[$j++]="bbs";$k[$j++]=_2D;$k[$j++]="sbs";$k[$j++]=_2H;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2L=$d();$k[$j++]=_2L;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_royalmail(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.royalmailEmptyData#11821";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_royalmail);if(!bwipp_royalmail.__11842__){$_=Object.create($_);$_.barchars="ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS";$_.charvals=new Map;for(var _3=0;_3<=35;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}$_.encs=$a(["3300","2211","2301","2310","3201","3210","1122","0033","0123","0132","1023","1032","1302","0213","0303","0312","1203","1212","1320","0231","0321","0330","1221","1230","3102","2013","2103","2112","3003","3012","3120","2031","2121","2130","3021","3030","2","3"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_royalmail.$ctx[id]=$_[id]);bwipp_royalmail.__11842__=1;$_=Object.getPrototypeOf($_)}for(var _B=0,_A=$_.barcode.length-1;_B<=_A;_B+=1){var _F=$g($_.charvals,$G($_.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.royalmailBadCharacter#11847";$k[$j++]="RM4SCC must contain only capital letters and digits";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$_[$k[--$j]]=_J;$_.checksumrow=0;$_.checksumcol=0;for(var _N=0,_M=$f($_.barlen-1);_N<=_M;_N+=1){$_.i=_N;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$_.checksumrow=$_.checksumrow+~~($_.indx/6);$_.checksumcol=$f($_.checksumcol+$_.indx%6)}$_.checksum=$f($_.checksumrow%6*6+$_.checksumcol%6);if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.royalmailBadCheckDigit#11864";$k[$j++]="Incorrect RM4SCC check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}$_.encstr=$s($f($_.barlen*4+6));$_.txt=$a($f($_.barlen+1));$P($_.encstr,0,$g($_.encs,36));for(var _s=0,_r=$f($_.barlen-1);_s<=_r;_s+=1){$_.i=_s;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.encstr,$_.i*4+1,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.i*4+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.encstr,$f($_.barlen*4+1),$g($_.encs,$_.checksum));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum,1),$f($_.barlen*4+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*4+1)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.encstr,$f($_.barlen*4+5),$g($_.encs,37));$_.bbs=$a($_.encstr.length);$_.bhs=$a($_.encstr.length);for(var _1k=0,_1j=$_.encstr.length-1;_1k<=_1j;_1k+=1){$_.i=_1k;$_.enc=$G($_.encstr,$_.i,1);if($eq($_.enc,"0")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}if($eq($_.enc,"1")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"2")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"3")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}}$k[$j++]=Infinity;var _2G=$_.bbs;var _2H=$_.bhs;$k[$j++]=Infinity;for(var _2J=0,_2K=$_.bhs.length-1;_2J<_2K;_2J++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2L=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_2G;$k[$j++]="bhs";$k[$j++]=_2H;$k[$j++]="sbs";$k[$j++]=_2L;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2P=$d();$k[$j++]=_2P;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_auspost(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$_.custinfoenc="character";$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($_.custinfoenc,"character")&&$ne($_.custinfoenc,"numeric")){$k[$j++]="bwipp.auspostBadCustinfoEncoding#11977";$k[$j++]="Customer information encoding must be either character or numeric";bwipp_raiseerror()}bwipp_loadctx(bwipp_auspost);if(!bwipp_auspost.__12003__){$_=Object.create($_);$_.encs=$a(["000","001","002","010","011","012","020","021","022","100","101","102","110","111","112","120","121","122","200","201","202","210","211","212","220","221","222","300","301","302","310","311","312","320","321","322","023","030","031","032","033","103","113","123","130","131","132","133","203","213","223","230","231","232","233","303","313","323","330","331","332","333","003","013","00","01","02","10","11","12","20","21","22","30","13","3"]);$_.barchars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #";var _5=new Map([["11",37],["45",37],["59",52],["62",67]]);$_.fcclen=_5;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_auspost.$ctx[id]=$_[id]);bwipp_auspost.__12003__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;if($_.barlen<10){$k[$j++]="bwipp.auspostTooShort#12007";$k[$j++]="The data length must be at least 10";bwipp_raiseerror()}$_.txt=$a($_.barlen-2);$k[$j++]=$_.fcclen;if($_.barlen>=2){$k[$j++]=$G($_.barcode,0,2)}else{$k[$j++]=""}var _F=$k[--$j];var _G=$k[--$j];var _H=$g(_G,_F)!==undefined;$k[$j++]=_G;$k[$j++]=_F;if(!_H){$j-=2;$k[$j++]="bwipp.auspostBadFCC#12014";$k[$j++]="Must begin with an FCC, either 11, 45, 59 or 62";bwipp_raiseerror()}var _I=$k[--$j];$_.encstr=$s($g($k[--$j],_I));$k[$j++]=true;for(var _M=0,_N=1;_M<_N;_M++){if($_.barlen<10){$j--;$k[$j++]=false;break}var _Q=$G($_.barcode,2,8);for(var _R=0,_S=_Q.length;_R<_S;_R++){var _T=$g(_Q,_R);if(_T<48||_T>57){$j--;$k[$j++]=false;break}}}if($nt($k[--$j])){$k[$j++]="bwipp.auspostIncompleteDPID#12025";$k[$j++]="The DPID must be 8 digits";bwipp_raiseerror()}var _X=$eq($_.custinfoenc,"numeric")?2:3;if(($_.barlen-10)*_X>$_.encstr.length-22-14){$k[$j++]="bwipp.auspostTooLong#12031";$k[$j++]="The message is too long";bwipp_raiseerror()}$P($_.encstr,0,$g($_.encs,74));for(var _c=0;_c<=1;_c+=1){$_.i=_c;$P($_.encstr,$_.i*2+2,$g($_.encs,$i($G($_.barcode,$_.i,1))+64))}for(var _k=2;_k<=9;_k+=1){$_.i=_k;$P($_.encstr,$_.i*2+2,$g($_.encs,$i($G($_.barcode,$_.i,1))+64));$p($_.txt,$_.i-2,$a([$G($_.barcode,$_.i,1),(($_.i-2)*2+6)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}if($eq($_.custinfoenc,"numeric")){for(var _15=0,_14=$_.barlen-11;_15<=_14;_15+=1){$_.i=_15;var _19=$g($_.barcode,$_.i+10);$k[$j++]=$_.encs;$k[$j++]=_19;if(_19<48||_19>57){$k[$j++]="bwipp.auspostInvalidCustinfoDigit#12058";$k[$j++]="The customer information data contains a non-digit character";bwipp_raiseerror()}var _1A=$k[--$j];$P($_.encstr,$_.i*2+22,$g($k[--$j],$f($f(_1A-48)+64)));$p($_.txt,$_.i+8,$a([$G($_.barcode,$_.i+10,1),($_.i*2+22)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.ciflen=($_.barlen-10)*2}else{for(var _1S=0,_1R=$_.barlen-11;_1S<=_1R;_1S+=1){$_.i=_1S;$X($_.barchars,$G($_.barcode,$_.i+10,1));if($nt($k[--$j])){$j--;$k[$j++]="bwipp.auspostInvalidCustinfoCharacter#12070";$k[$j++]="The customer information contains an invalid character";bwipp_raiseerror()}$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.encstr,$_.i*3+22,$_.enc);$p($_.txt,$_.i+8,$a([$G($_.barcode,$_.i+10,1),($_.i*3+22)*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.ciflen=($_.barlen-10)*3}for(var _1t=22+$_.ciflen,_1s=$_.encstr.length-14;_1t<=_1s;_1t+=1){$P($_.encstr,_1t,$g($_.encs,75))}if(!bwipp_auspost.__12107__){$_=Object.create($_);$_.rstable=$a(64*64);$k[$j++]=$_.rstable;$k[$j++]=0;$k[$j++]=Infinity;for(var _1z=0,_20=64;_1z<_20;_1z++){$k[$j++]=0}var _21=$a();var _22=$k[--$j];$P($k[--$j],_22,_21);$k[$j++]=$_.rstable;$k[$j++]=64;$k[$j++]=Infinity;for(var _25=0;_25<=63;_25+=1){$k[$j++]=_25}var _26=$a();var _27=$k[--$j];$P($k[--$j],_27,_26);$_.prev=1;for(var _29=0,_2A=64;_29<_2A;_29++){$_.next=$_.prev<<1;if(($_.next&64)!=0){$_.next=$_.next^67}for(var _2E=0;_2E<=63;_2E+=1){$_.j=_2E;$_.nextcell=function(){$k[$j++]=$_.rstable;$k[$j++]=64*$_.next+$_.j};$_.nextcell();var _2M=$k[--$j];$p($k[--$j],_2M,$g($_.rstable,64*$_.prev+$_.j)<<1);$_.nextcell();var _2O=$k[--$j];if(($g($k[--$j],_2O)&64)!=0){$_.nextcell();$_.nextcell();var _2R=$k[--$j];var _2T=$g($k[--$j],_2R);var _2U=$k[--$j];$p($k[--$j],_2U,_2T^67)}}$_.prev=$_.next}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_auspost.$ctx[id]=$_[id]);bwipp_auspost.__12107__=1;$_=Object.getPrototypeOf($_)}$_.rscodes=$a(~~(($_.encstr.length-16)/3)+4);$k[$j++]=$_.rscodes;$k[$j++]=0;$k[$j++]=Infinity;for(var _2b=0,_2c=4;_2b<_2c;_2b++){$k[$j++]=0}var _2d=$a();var _2e=$k[--$j];$P($k[--$j],_2e,_2d);for(var _2i=2,_2h=$_.encstr.length-16;_2i<=_2h;_2i+=3){$_.i=_2i;$p($_.rscodes,$_.rscodes.length-~~(($_.i-2)/3)-1,$i($G($_.encstr,$_.i,1))*16+$i($G($_.encstr,$_.i+1,1))*4+$i($G($_.encstr,$_.i+2,1)))}for(var _2w=$_.rscodes.length-5;_2w>=0;_2w-=1){$_.i=_2w;for(var _2x=0;_2x<=4;_2x+=1){$_.j=_2x;$p($_.rscodes,$_.i+$_.j,$xo($g($_.rscodes,$_.i+$_.j),$g($_.rstable,$f(64*$g($a([48,17,29,30,1]),$_.j)+$g($_.rscodes,$_.i+4)))))}}$_.checkcode=$Z($s(12),"000000000000");for(var _3F=0;_3F<=3;_3F+=1){$_.i=_3F;$_.enc=$R($s(3),$g($_.rscodes,3-$_.i),4);$P($_.checkcode,$_.i*3+(3-$_.enc.length),$_.enc)}$P($_.encstr,$_.encstr.length-14,$_.checkcode);$P($_.encstr,$_.encstr.length-2,$g($_.encs,74));$_.bbs=$a($_.encstr.length);$_.bhs=$a($_.encstr.length);for(var _3c=0,_3b=$_.encstr.length-1;_3c<=_3b;_3c+=1){$_.i=_3c;$_.enc=$G($_.encstr,$_.i,1);if($eq($_.enc,"0")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}if($eq($_.enc,"1")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"2")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"3")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}}$k[$j++]=Infinity;var _48=$_.bbs;var _49=$_.bhs;$k[$j++]=Infinity;for(var _4B=0,_4C=$_.bhs.length-1;_4B<_4C;_4B++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _4D=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_48;$k[$j++]="bhs";$k[$j++]=_49;$k[$j++]="sbs";$k[$j++]=_4D;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _4H=$d();$k[$j++]=_4H;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_kix(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.kixEmptyData#12223";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_kix);if(!bwipp_kix.__12243__){$_=Object.create($_);$_.encs=$a(["0033","0123","0132","1023","1032","1122","0213","0303","0312","1203","1212","1302","0231","0321","0330","1221","1230","1320","2013","2103","2112","3003","3012","3102","2031","2121","2130","3021","3030","3120","2211","2301","2310","3201","3210","3300"]);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";$_.charvals=new Map;for(var _4=0;_4<=35;_4+=1){$p($_.charvals,$G($_.barchars,_4,1),_4)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_kix.$ctx[id]=$_[id]);bwipp_kix.__12243__=1;$_=Object.getPrototypeOf($_)}for(var _B=0,_A=$_.barcode.length-1;_B<=_A;_B+=1){var _F=$g($_.charvals,$G($_.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.kixBadCharacter#12248";$k[$j++]="KIX must contain only capital letters and digits";bwipp_raiseerror()}}$_.barlen=$_.barcode.length;$_.encstr=$s($_.barlen*4);$_.txt=$a($_.barlen);for(var _N=0,_M=$_.barlen-1;_N<=_M;_N+=1){$_.i=_N;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.encstr,$_.i*4,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*4*3.312,$_.textyoffset,$_.textfont,$_.textsize]))}$_.bbs=$a($_.encstr.length);$_.bhs=$a($_.encstr.length);for(var _o=0,_n=$_.encstr.length-1;_o<=_n;_o+=1){$_.i=_o;$_.enc=$G($_.encstr,$_.i,1);if($eq($_.enc,"0")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}if($eq($_.enc,"1")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"2")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"3")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}}$k[$j++]=Infinity;var _1K=$_.bbs;var _1L=$_.bhs;$k[$j++]=Infinity;for(var _1N=0,_1O=$_.bhs.length-1;_1N<_1O;_1N++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _1P=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_1K;$k[$j++]="bhs";$k[$j++]=_1L;$k[$j++]="sbs";$k[$j++]=_1P;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _1T=$d();$k[$j++]=_1T;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_japanpost(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.includecheckintext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.japanpostEmptyData#12347";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_japanpost);$F($_.barcode,function(){var _4=$k[--$j];if(!(_4>=48&&_4<=57||(_4>=65&&_4<=90||_4==45))){$k[$j++]="bwipp.japanpostBadCharacter#12357";$k[$j++]="Japan Post must contain only digits, capital letters and the dash symbol";bwipp_raiseerror()}});if(!bwipp_japanpost.__12371__){$_=Object.create($_);$_.encs=$a(["300","330","312","132","321","303","123","231","213","033","030","120","102","210","012","201","021","003","333","31","13"]);$_.barchars="0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_japanpost.$ctx[id]=$_[id]);bwipp_japanpost.__12371__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.encstr=$s((20+1)*3+4);$_.digits=$a(20);$_.txt=$a($_.barlen+1);$P($_.encstr,0,$g($_.encs,19));$_.checksum=0;$_.j=0;$_.i=0;$k[$j++]=true;for(var _H=0,_G=$_.barlen-1;_H<=_G;_H+=1){$_.i=_H;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;if($_.indx>=11&&$_.indx<37){if($_.j>18){$j--;$k[$j++]=false;break}$_.digit=~~(($_.indx-1)/10)+10;$P($_.encstr,$_.j*3+2,$g($_.encs,$_.digit));$_.checksum=$_.checksum+$_.digit;$p($_.digits,$_.j,$_.digit);$_.j=$_.j+1}if($_.j>19){$j--;$k[$j++]=false;break}$_.digit=0;if($_.indx==37){$_.digit=14}if($_.indx>=11&&$_.indx<37){$_.digit=($_.indx-1)%10}if($_.indx<11){$_.digit=$_.indx}$P($_.encstr,$_.j*3+2,$g($_.encs,$_.digit));$_.checksum=$_.checksum+$_.digit;$p($_.digits,$_.j,$_.digit);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),($_.j*3+2)*3.312,$_.textyoffset,$_.textfont,$_.textsize]));$_.j=$_.j+1}if($nt($k[--$j])){$k[$j++]="bwipp.japanpostTooLong#12421";$k[$j++]="The input is too long";bwipp_raiseerror()}for(var _17=$_.j,_16=20-1;_17<=_16;_17+=1){$_.k=_17;$P($_.encstr,$_.k*3+2,$g($_.encs,14));$_.checksum=$_.checksum+14;$p($_.digits,$_.k,14)}$_.checksum=19-$_.checksum%19;$P($_.encstr,2+20*3,$g($_.encs,$_.checksum));$P($_.encstr,2+21*3,$g($_.encs,20));$_.checkdigit=" ";if($_.includecheckintext){$_.checkdigit=$G($_.barchars,$_.checksum,1)}$p($_.txt,$_.i+1,$a([$_.checkdigit,(20*3+2)*3.312,$_.textyoffset,$_.textfont,$_.textsize]));$P($_.encstr,(20+1)*3+2,$g($_.encs,20));$_.bbs=$a(21*3+4);$_.bhs=$a($_.bbs.length);for(var _1g=0,_1f=$_.bbs.length-1;_1g<=_1f;_1g+=1){$_.i=_1g;$_.enc=$G($_.encstr,$_.i,1);$_.bunit=0;$_.hunit=0;if($eq($_.enc,"0")){$_.bunit=3;$_.hunit=2}if($eq($_.enc,"1")){$_.bunit=0;$_.hunit=5}if($eq($_.enc,"2")){$_.bunit=3;$_.hunit=5}if($eq($_.enc,"3")){$_.bunit=0;$_.hunit=8}$p($_.bbs,$_.i,$_.bunit*$_.height/8);$p($_.bhs,$_.i,$_.hunit*$_.height/8)}$k[$j++]=Infinity;var _1w=$_.bbs;var _1x=$_.bhs;$k[$j++]=Infinity;for(var _1z=0,_20=$_.bhs.length-1;_1z<_20;_1z++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _21=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_1w;$k[$j++]="bhs";$k[$j++]=_1x;$k[$j++]="sbs";$k[$j++]=_21;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _25=$d();$k[$j++]=_25;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_msi(){$_=Object.create($_);$_.dontdraw=false;$_.includecheck=false;$_.includetext=false;$_.includecheckintext=false;$_.checktype="unset";$_.badmod11=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($ne($_.checktype,"unset")&&!$_.includecheck){$k[$j++]="bwipp.msiCheckTypeWithoutCheck#12538";$k[$j++]="checktype requires includecheck";bwipp_raiseerror()}if($_.badmod11&&($ne($_.checktype,"mod11")&&$ne($_.checktype,"ncrmod11")&&$ne($_.checktype,"mod1110")&&$ne($_.checktype,"ncrmod1110"))){$k[$j++]="bwipp.msiBadMod11Mismatch#12542";$k[$j++]="badmod11 requires checktype with mod11";bwipp_raiseerror()}if($eq($_.checktype,"unset")){$_.checktype="mod10"}bwipp_loadctx(bwipp_msi);$F($_.barcode,function(){var _B=$k[--$j];if(_B<48||_B>57){$k[$j++]="bwipp.msiBadCharacter#12552";$k[$j++]="MSI must contain only digits";bwipp_raiseerror()}});if(!bwipp_msi.__12566__){$_=Object.create($_);$_.encs=$a(["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221","21","121"]);$_.barchars="0123456789";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_msi.$ctx[id]=$_[id]);bwipp_msi.__12566__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.txtlen=$_.barlen;$_.mod10=function(){$_.code=$k[--$j];$k[$j++]=0;$k[$j++]=0;$F($_.code,function(){var _I=$k[--$j];var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=$f($f(_I-48)+_J*10);$k[$j++]=_K});$j--;var _L=$k[--$j];$k[$j++]=_L*2;$k[$j++]=0;for(;;){var _M=$k[--$j];var _N=$k[--$j];var _O=~~(_N/10);$k[$j++]=$f(_M+_N%10);$k[$j++]=_O;if(_O==0){$j--;break}var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$k[$j++]=_Q}$k[$j++]=0;$k[$j++]=0;$F($_.code,function(){var _S=$k[--$j];var _T=$k[--$j];var _U=$k[--$j];$k[$j++]=$f(_T+$f(_S-48));$k[$j++]=_U});var _V=$k[--$j];var _W=$k[--$j];$k[$j++]=_V;$k[$j++]=_W;$j--;var _X=$k[--$j];var _a=$s($_.code.length+1);$P(_a,0,$_.code);$p(_a,$_.code.length,$f($f(10-$f($k[--$j]+_X)%10)%10+48));$k[$j++]=_a};$_.mod11=function(){$_.code=$k[--$j];$k[$j++]=$_.code.length-1;$F($_.code,function(){var _g=$k[--$j];var _h=$k[--$j];$k[$j++]=$f(_g-48);$k[$j++]=$f(_h%6+2);$k[$j++]=$f(_h-1)});$j--;$k[$j++]=0;for(var _j=0,_k=$_.code.length;_j<_k;_j++){var _l=$k[--$j];var _m=$k[--$j];var _n=$k[--$j];$k[$j++]=$f(_l+_n*_m)}var _p=$f(11-$k[--$j]%11)%11;$k[$j++]=_p;if(_p==10){if($_.badmod11){$j--;var _s=$s($_.code.length+2);$P(_s,0,$_.code);$P(_s,$_.code.length,"10");$k[$j++]=_s}else{$j--;$k[$j++]="bwipp.msiBadMod11NotSpecified#12589";$k[$j++]="mod11 check digit is 10 but badmod11 not specified";bwipp_raiseerror()}}else{var _w=$s($_.code.length+1);$P(_w,0,$_.code);$p(_w,$_.code.length,$f($k[--$j]+48));$k[$j++]=_w}};$_.ncrmod11=function(){$_.code=$k[--$j];$k[$j++]=$_.code.length-1;$F($_.code,function(){var _13=$k[--$j];var _14=$k[--$j];$k[$j++]=$f(_13-48);$k[$j++]=$f(_14%8+2);$k[$j++]=$f(_14-1)});$j--;$k[$j++]=0;for(var _16=0,_17=$_.code.length;_16<_17;_16++){var _18=$k[--$j];var _19=$k[--$j];var _1A=$k[--$j];$k[$j++]=$f(_18+_1A*_19)}var _1C=$f(11-$k[--$j]%11)%11;$k[$j++]=_1C;if(_1C==10){if($_.badmod11){$j--;var _1F=$s($_.code.length+2);$P(_1F,0,$_.code);$P(_1F,$_.code.length,"10");$k[$j++]=_1F}else{$j--;$k[$j++]="bwipp.msiBadMod11NotSpecified#12605";$k[$j++]="mod11 check digit is 10 but badmod11 not specified";bwipp_raiseerror()}}else{var _1J=$s($_.code.length+1);$P(_1J,0,$_.code);$p(_1J,$_.code.length,$f($k[--$j]+48));$k[$j++]=_1J}};if(!bwipp_msi.__12621__){$_=Object.create($_);var _1N=new Map([["mod10",function(){$_.mod10()}],["mod1010",function(){$_.mod10();$_.mod10()}],["mod11",function(){$_.mod11()}],["ncrmod11",function(){$_.ncrmod11()}],["mod1110",function(){$_.mod11();$_.mod10()}],["ncrmod1110",function(){$_.ncrmod11();$_.mod10()}]]);$_.checkfunc=_1N;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_msi.$ctx[id]=$_[id]);bwipp_msi.__12621__=1;$_=Object.getPrototypeOf($_)}if($_.includecheck){var _1Q=$_.checkfunc;var _1R=$_.checktype;var _1S=$g(_1Q,_1R)!==undefined;$k[$j++]=_1Q;$k[$j++]=_1R;if(!_1S){$j-=2;$k[$j++]="bwipp.msiBadCharacter#12626";$k[$j++]="MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110";bwipp_raiseerror()}var _1T=$k[--$j];var _1V=$g($k[--$j],_1T);$k[$j++]=$_.barcode;if(_1V()===true){return true}$_.barcode=$k[--$j];$_.barlen=$_.barcode.length;if($_.includecheckintext){$_.txtlen=$_.barlen}}$_.sbs=$s($_.barlen*8+5);$_.txt=$a($_.barlen);$P($_.sbs,0,$g($_.encs,10));for(var _1k=0,_1j=$_.barlen-1;_1k<=_1j;_1k+=1){$_.i=_1k;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*8+2,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*12+3,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$_.barlen*8+2,$g($_.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _2A=$_.sbs;for(var _2B=0,_2C=_2A.length;_2B<_2C;_2B++){$k[$j++]=$g(_2A,_2B)-48}var _2E=$a();$k[$j++]=Infinity;for(var _2G=0,_2H=~~(($_.sbs.length+1)/2);_2G<_2H;_2G++){$k[$j++]=$_.height}var _2J=$a();$k[$j++]=Infinity;for(var _2L=0,_2M=~~(($_.sbs.length+1)/2);_2L<_2M;_2L++){$k[$j++]=0}var _2N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2E;$k[$j++]="bhs";$k[$j++]=_2J;$k[$j++]="bbs";$k[$j++]=_2N;if($_.includetext){$k[$j++]="txt";$k[$j++]=$G($_.txt,0,$_.txtlen)}$k[$j++]="opt";$k[$j++]=$_.options;var _2T=$d();$k[$j++]=_2T;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_plessey(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.validatecheck=false;$_.includecheckintext=false;$_.unidirectional=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.plesseyEmptyData#12717";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_plessey);if(!bwipp_plessey.__12736__){$_=Object.create($_);$_.barchars="0123456789ABCDEF";$_.charvals=new Map;for(var _3=0;_3<=15;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}$_.encs=$a(["14141414","32141414","14321414","32321414","14143214","32143214","14323214","32323214","14141432","32141432","14321432","32321432","14143232","32143232","14323232","32323232","32321432","541412323","323"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_plessey.$ctx[id]=$_[id]);bwipp_plessey.__12736__=1;$_=Object.getPrototypeOf($_)}for(var _B=0,_A=$_.barcode.length-1;_B<=_A;_B+=1){var _F=$g($_.charvals,$G($_.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.plesseyBadCharacter#12741";$k[$j++]="Plessey must contain only digits and letters A B C D E F";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-2)}var _J=$k[--$j];$_[$k[--$j]]=_J;$_.checkbits=$a($f($_.barlen*4+8));$P($_.checkbits,$_.barlen*4,$a([0,0,0,0,0,0,0,0]));for(var _S=0,_R=$f($_.barlen-1);_S<=_R;_S+=1){$_.i=_S;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.checkbits,$_.i*4,$a([$_.indx&1,$_.indx>>>1&1,$_.indx>>>2&1,$_.indx>>>3]))}$_.checksalt=$a([1,1,1,1,0,1,0,0,1]);for(var _i=0,_h=$f($_.barlen*4-1);_i<=_h;_i+=1){$_.i=_i;if($g($_.checkbits,$_.i)==1){for(var _m=0;_m<=8;_m+=1){$_.j=_m;$p($_.checkbits,$_.i+$_.j,$xo($g($_.checkbits,$_.i+$_.j),$g($_.checksalt,$_.j)))}}}$_.checkval=0;for(var _x=0;_x<=7;_x+=1){$_.i=_x;$_.checkval=$f($_.checkval+~~Math.pow(2,$_.i)*$g($_.checkbits,$f($_.barlen*4+$_.i)))}$_.checksum1=$_.checkval&15;$_.checksum2=$_.checkval>>>4;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum1)||$g($_.barcode,$f($_.barlen+1))!=$g($_.barchars,$_.checksum2)){$k[$j++]="bwipp.plesseyBadCheckDigits#12780";$k[$j++]="Incorrect Plessey check digits provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _1O=$_.unidirectional?27:33;$_.sbs=$s($f($_.barlen*8+_1O));$_.txt=$a($f($_.barlen+2));$P($_.sbs,0,$g($_.encs,16));for(var _1X=0,_1W=$f($_.barlen-1);_1X<=_1W;_1X+=1){$_.i=_1X;$_.indx=$g($_.charvals,$G($_.barcode,$_.i,1));$P($_.sbs,$_.i*8+8,$g($_.encs,$_.indx));$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*20+20,$_.textyoffset,$_.textfont,$_.textsize]))}$P($_.sbs,$f($_.barlen*8+8),$g($_.encs,$_.checksum1));$P($_.sbs,$f($_.barlen*8+16),$g($_.encs,$_.checksum2));if($_.includecheckintext){$p($_.txt,$_.barlen,$a([$G($_.barchars,$_.checksum1,1),$f($_.barlen*20+20),$_.textyoffset,$_.textfont,$_.textsize]));$p($_.txt,$f($_.barlen+1),$a([$G($_.barchars,$_.checksum2,1),$f($f($_.barlen+1)*20+20),$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.barlen,$a([" ",$f($_.barlen*20+20),$_.textyoffset,$_.textfont,$_.textsize]));$p($_.txt,$f($_.barlen+1),$a([" ",$f($f($_.barlen+1)*20+20),$_.textyoffset,$_.textfont,$_.textsize]))}var _2f=$_.unidirectional?18:17;$P($_.sbs,$f($_.barlen*8+24),$g($_.encs,_2f));$k[$j++]=Infinity;$k[$j++]=Infinity;var _2h=$_.sbs;for(var _2i=0,_2j=_2h.length;_2i<_2j;_2i++){$k[$j++]=$g(_2h,_2i)-48}var _2l=$a();$k[$j++]=Infinity;for(var _2n=0,_2o=~~(($_.sbs.length+1)/2);_2n<_2o;_2n++){$k[$j++]=$_.height}var _2q=$a();$k[$j++]=Infinity;for(var _2s=0,_2t=~~(($_.sbs.length+1)/2);_2s<_2t;_2s++){$k[$j++]=0}var _2u=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_2l;$k[$j++]="bhs";$k[$j++]=_2q;$k[$j++]="bbs";$k[$j++]=_2u;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2y=$d();$k[$j++]=_2y;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_telepen(){$_=Object.create($_);$_.numeric=false;$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=1;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_telepen);var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];if($_.numeric&&$_.barlen%2!=0){$k[$j++]="bwipp.telepenNumericOddLength#12887";$k[$j++]="Telepen Numeric must have an even length";bwipp_raiseerror()}if(!bwipp_telepen.__12926__){$_=Object.create($_);$_.encs=$a(["31313131","1131313111","33313111","1111313131","3111313111","11333131","13133131","111111313111","31333111","1131113131","33113131","1111333111","3111113131","1113133111","1311133111","111111113131","3131113111","11313331","333331","111131113111","31113331","1133113111","1313113111","1111113331","31131331","113111113111","3311113111","1111131331","311111113111","1113111331","1311111331","11111111113111","31313311","1131311131","33311131","1111313311","3111311131","11333311","13133311","111111311131","31331131","1131113311","33113311","1111331131","3111113311","1113131131","1311131131","111111113311","3131111131","1131131311","33131311","111131111131","3111131311","1133111131","1313111131","111111131311","3113111311","113111111131","3311111131","111113111311","311111111131","111311111311","131111111311","11111111111131","3131311111","11313133","333133","111131311111","31113133","1133311111","1313311111","1111113133","313333","113111311111","3311311111","11113333","311111311111","11131333","13111333","11111111311111","31311133","1131331111","33331111","1111311133","3111331111","11331133","13131133","111111331111","3113131111","1131111133","33111133","111113131111","3111111133","111311131111","131111131111","111111111133","31311313","113131111111","3331111111","1111311313","311131111111","11331313","13131313","11111131111111","3133111111","1131111313","33111313","111133111111","3111111313","111313111111","131113111111","111111111313","313111111111","1131131113","33131113","11113111111111","3111131113","113311111111","131311111111","111111131113","3113111113","11311111111111","331111111111","111113111113","31111111111111","111311111113","131111111113","1111111111111111"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_telepen.$ctx[id]=$_[id]);bwipp_telepen.__12926__=1;$_=Object.getPrototypeOf($_)}$_.sbs=$s($_.barlen*16+48);$_.txt=$a($_.barlen);$_.enc=$g($_.encs,95);$P($_.sbs,0,$_.enc);$_.l=$_.enc.length;$_.checksum=0;$_.i=0;$_.j=0;for(;;){if($_.i==$_.barlen){break}if($_.numeric){if($g($_.barcode,$_.i)>16){$_.np=$G($_.barcode,$_.i,2);var _X=$g($_.np,0);var _Z=$g($_.np,1);if(_X<48||_X>57||(_Z<48||_Z>57)&&!(_Z==88)){$k[$j++]=-1}else{var _e=$f($g($_.np,1)-48);$k[$j++]=$f($g($_.np,0)-48);$k[$j++]=_e;if(_e!=40){var _f=$k[--$j];var _g=$k[--$j];$k[$j++]=$f($f(_f+_g*10)+10)}else{$j--}var _h=$k[--$j];$k[$j++]=$f(_h+17)}var _i=$k[--$j];$k[$j++]=_i;if(_i==-1){$k[$j++]="bwipp.telepenInvalidNumericCharacter#12953";$k[$j++]="Telepen Numeric may contain only digits, or X in even positions";bwipp_raiseerror()}$_.indx=$k[--$j];$p($_.txt,$_.j,$a([$_.np,$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]));$_.i=$_.i+2}else{$_.indx=$g($_.barcode,$_.i);$p($_.txt,$_.j,$a([" ",$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]));$_.i=$_.i+1}}else{$_.indx=$g($_.barcode,$_.i);if($_.indx>127){$k[$j++]="bwipp.telepenInvalidAlphaCharacter#12966";$k[$j++]="Telepen Alpha characters must have ordinal values 0 to 127";bwipp_raiseerror()}if($_.indx>=32&&$_.indx<=126){$p($_.txt,$_.j,$a([$G($_.barcode,$_.i,1),$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]))}else{$p($_.txt,$_.j,$a([" ",$_.j*16+16,$_.textyoffset,$_.textfont,$_.textsize]))}$_.i=$_.i+1}$_.checksum=$f($_.checksum+$_.indx);$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.l,$_.enc);$_.l=$_.l+$_.enc.length;$_.j=$_.j+1}$_.checksum=$f(127-$_.checksum%127)%127;$_.enc=$g($_.encs,$_.checksum);$P($_.sbs,$_.l,$_.enc);$_.l=$_.l+$_.enc.length;$_.enc=$g($_.encs,122);$P($_.sbs,$_.l,$_.enc);$_.l=$_.l+$_.enc.length;$_.sbs=$G($_.sbs,0,$_.l);$_.txt=$G($_.txt,0,$_.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _1z=$_.sbs;for(var _20=0,_21=_1z.length;_20<_21;_20++){$k[$j++]=$f($g(_1z,_20)-48)}var _23=$a();$k[$j++]=Infinity;for(var _25=0,_26=~~(($_.sbs.length+1)/2);_25<_26;_25++){$k[$j++]=$_.height}var _28=$a();$k[$j++]=Infinity;for(var _2A=0,_2B=~~(($_.sbs.length+1)/2);_2A<_2B;_2A++){$k[$j++]=0}var _2C=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_23;$k[$j++]="bhs";$k[$j++]=_28;$k[$j++]="bbs";$k[$j++]=_2C;if($_.includetext){$k[$j++]="txt";$k[$j++]=$_.txt}$k[$j++]="opt";$k[$j++]=$_.options;var _2G=$d();$k[$j++]=_2G;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_telepennumeric(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"numeric",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_telepen();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_posicode(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=-8;$_.height=1;$_.encoding="auto";$_.version="a";$_.checkoffset=0;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];var _1=$k[--$j];$_.barcode=_1;bwipp_loadctx(bwipp_posicode);if(!bwipp_posicode.__13155__){$_=Object.create($_);$_.la0=-1;$_.la1=-2;$_.la2=-3;$_.sf0=-4;$_.sf1=-5;$_.sf2=-6;$_.fn1=-7;$_.fn2=-8;$_.fn3=-9;$_.fn4=-10;$_.charmapsnormal=$a([$a(["0","^","'"]),$a(["1",";",27]),$a(["2","<",28]),$a(["3","=",29]),$a(["4",">",30]),$a(["5","?",31]),$a(["6","@","!"]),$a(["7","[",'"']),$a(["8",92,"#"]),$a(["9","]","&"]),$a(["A","a",1]),$a(["B","b",2]),$a(["C","c",3]),$a(["D","d",4]),$a(["E","e",5]),$a(["F","f",6]),$a(["G","g",7]),$a(["H","h",8]),$a(["I","i",9]),$a(["J","j",10]),$a(["K","k",11]),$a(["L","l",12]),$a(["M","m",13]),$a(["N","n",14]),$a(["O","o",15]),$a(["P","p",16]),$a(["Q","q",17]),$a(["R","r",18]),$a(["S","s",19]),$a(["T","t",20]),$a(["U","u",21]),$a(["V","v",22]),$a(["W","w",23]),$a(["X","x",24]),$a(["Y","y",25]),$a(["Z","z",26]),$a(["-","_",40]),$a([".","`",41]),$a([" ",127,0]),$a(["$","{","*"]),$a(["/","|",","]),$a(["+","}",":"]),$a(["%","~",$_.fn1]),$a([$_.la1,$_.la0,$_.fn2]),$a([$_.sf1,$_.sf0,$_.fn3]),$a([$_.sf2,$_.sf2,$_.fn4])]);var _13=$a(["6",-98,-98]);$_.chapmapslimited=$a([$a(["0",-98,-98]),$a(["1",-98,-98]),$a(["2",-98,-98]),$a(["3",-98,-98]),$a(["4",-98,-98]),$a(["5",-98,-98]),_13,$a(["7",-98,-98]),$a(["8",-98,-98]),$a(["9",-98,-98]),$a(["A",-98,-98]),$a(["B",-98,-98]),$a(["C",-98,-98]),$a(["D",-98,-98]),$a(["E",-98,-98]),$a(["F",-98,-98]),$a(["G",-98,-98]),$a(["H",-98,-98]),$a(["I",-98,-98]),$a(["J",-98,-98]),$a(["K",-98,-98]),$a(["L",-98,-98]),$a(["M",-98,-98]),$a(["N",-98,-98]),$a(["O",-98,-98]),$a(["P",-98,-98]),$a(["Q",-98,-98]),$a(["R",-98,-98]),$a(["S",-98,-98]),$a(["T",-98,-98]),$a(["U",-98,-98]),$a(["V",-98,-98]),$a(["W",-98,-98]),$a(["X",-98,-98]),$a(["Y",-98,-98]),$a(["Z",-98,-98]),$a(["-",-98,-98]),$a([".",-98,-98])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_posicode.$ctx[id]=$_[id]);bwipp_posicode.__13155__=1;$_=Object.getPrototypeOf($_)}if($ne($_.version,"a")&&$ne($_.version,"b")&&$ne($_.version,"limiteda")&&$ne($_.version,"limitedb")){$k[$j++]="bwipp.posicodeInvalidVersion#13158";$k[$j++]="The version must be either a, b, limiteda or limitedb";bwipp_raiseerror()}$k[$j++]="charmaps";if($eq($_.version,"a")||$eq($_.version,"b")){$k[$j++]=$_.charmapsnormal}else{$k[$j++]=$_.chapmapslimited}var _1j=$k[--$j];$_[$k[--$j]]=_1j;var _1l=$_.charmaps;var _1m=$_.charmaps;var _1n=$_.charmaps;$_.charvals=$a([new Map,new Map,new Map]);for(var _1r=0,_1q=$_.charmaps.length-1;_1r<=_1q;_1r+=1){$_.i=_1r;$_.encs=$g($_.charmaps,$_.i);for(var _1v=0;_1v<=2;_1v+=1){$_.j=_1v;var _1y=$g($_.encs,$_.j);$k[$j++]=_1y;if($eq($t(_1y),"stringtype")){var _21=$g($k[--$j],0);$k[$j++]=_21}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.set0=$g($_.charvals,0);$_.set1=$g($_.charvals,1);$_.set2=$g($_.charvals,2);if($eq($_.version,"limiteda")||$eq($_.version,"limitedb")){for(var _2H=0,_2G=$_.barcode.length-1;_2H<=_2G;_2H+=1){var _2M=$g($_.set0,$g($G($_.barcode,_2H,1),0))!==undefined;if(!_2M){$k[$j++]="bwipp.posicodeBadCharacter#13184";$k[$j++]="Posicode limited must contain only digits, capital letters, and the symbols - and .";bwipp_raiseerror()}}}if($_.raw){$_.encoding="raw"}if($eq($_.encoding,"raw")){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.cws=$G($_.cws,0,$_.j);$_.text=""}if($eq($_.encoding,"auto")){var _2k=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC2",$_.fn2],["FNC3",$_.fn3]]);$_.fncvals=_2k;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _2n=$k[--$j];$_[$k[--$j]]=_2n;$_.msglen=$_.msg.length;$_.text=$s($_.msglen);for(var _2u=0,_2t=$_.msglen-1;_2u<=_2t;_2u+=1){$_.i=_2u;var _2z=$g($_.msg,$_.i);$k[$j++]=$_.text;$k[$j++]=$_.i;$k[$j++]=_2z;if(_2z<0){$j--;$k[$j++]=32}var _30=$k[--$j];var _31=$k[--$j];$p($k[--$j],_31,_30)}$k[$j++]=Infinity;for(var _34=0,_35=$_.msglen;_34<_35;_34++){$k[$j++]=0}$k[$j++]=0;$_.numSA=$a();$k[$j++]=Infinity;for(var _38=0,_39=$_.msglen;_38<_39;_38++){$k[$j++]=0}$k[$j++]=0;$_.numEA=$a();for(var _3C=$_.msglen-1;_3C>=0;_3C-=1){$_.i=_3C;if($g($_.msg,$_.i)>=0){if($g($_.msg,$_.i)>=128){$p($_.numEA,$_.i,$f($g($_.numEA,$_.i+1)+1))}else{$p($_.numSA,$_.i,$f($g($_.numSA,$_.i+1)+1))}}}$_.ea=false;$_.msgtmp=$a([]);for(var _3W=0,_3V=$_.msglen-1;_3W<=_3V;_3W+=1){$_.i=_3W;$_.c=$g($_.msg,$_.i);if(!$xo($_.ea,$_.c<128)&&$_.c>=0){if($_.ea){$k[$j++]=$_.numSA}else{$k[$j++]=$_.numEA}var _3i=$g($k[--$j],$_.i);var _3l=$f(_3i+$_.i)==$_.msglen?3:5;if(_3i<_3l){$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$_.msgtmp=$a()}else{$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$k[$j++]=$_.fn4;$_.msgtmp=$a();$_.ea=!$_.ea}}$k[$j++]=Infinity;$q($_.msgtmp);if($_.c>=0){$k[$j++]=$_.c&127}else{$k[$j++]=$_.c}$_.msgtmp=$a()}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;$_.enc=function(){var _41=$k[--$j];$p($_.cws,$_.j,$g(_41,$k[--$j]));$_.j=$_.j+1};$_.cws=$a($_.msglen*2);$_.i=0;$_.j=0;$_.cset="set0";for(;;){if($_.i==$_.msglen){break}for(;;){$_.char1=$g($_.msg,$_.i);$k[$j++]="char2";if($_.i+1<$_.msglen){$k[$j++]=$g($_.msg,$_.i+1)}else{$k[$j++]=-99}var _4J=$k[--$j];$_[$k[--$j]]=_4J;var _4O=$g($_[$_.cset],$_.char1)!==undefined;if(_4O){$k[$j++]=$_.char1;$k[$j++]=$_[$_.cset];$_.enc();$_.i=$_.i+1;break}var _4V=$g($_.set2,$_.char1)!==undefined;if(_4V){$k[$j++]=$_.sf2;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.set2;$_.enc();$_.i=$_.i+1;break}var _4f=$g($_[$_.cset],$_.char2)!==undefined;if(!_4f){if($eq($_.cset,"set0")){$k[$j++]=$_.la1;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="set1"}else{$k[$j++]=$_.la0;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="set0"}break}else{if($eq($_.cset,"set0")){$k[$j++]=$_.sf1;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.set1;$_.enc()}else{$k[$j++]=$_.sf0;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.set0;$_.enc()}$_.i=$_.i+1;break}break}}$_.cws=$G($_.cws,0,$_.j)}if(!bwipp_posicode.__13368__){$_=Object.create($_);var _56=new Map([["a",$a(["141112","131212","121312","111412","131113","121213","111313","121114","111214","111115","181111","171211","161311","151411","141511","131611","121711","111811","171112","161212","151312","141412","131512","121612","111712","161113","151213","141313","131413","121513","111613","151114","141214","131314","121414","111514","141115","131215","121315","111415","131116","121216","111316","121117","111217","111118","1<111112","111111111;1"])],["b",$a(["151213","141313","131413","121513","141214","131314","121414","131215","121315","121216","191212","181312","171412","161512","151612","141712","131812","121912","181213","171313","161413","151513","141613","131713","121813","171214","161314","151414","141514","131614","121714","161215","151315","141415","131515","121615","151216","141316","131416","121516","141217","131317","121417","131218","121318","121219","1<121312","121212121<1"])],["limiteda",$a(["111411","111312","111213","111114","121311","121212","121113","141111","131211","131112","171111","161211","151311","141411","131511","121611","111711","161112","151212","141312","131412","121512","111612","151113","141213","131313","121413","111513","141114","131214","121314","111414","131115","121215","111315","121116","111216","111117","151111","1"])],["limitedb",$a(["121512","121413","121314","121215","131412","131313","131214","151212","141312","141213","181212","171312","161412","151512","141612","131712","121812","171213","161313","151413","141513","131613","121713","161214","151314","141414","131514","121614","151215","141315","131415","121515","141216","131316","121416","131217","121317","121218","141212","1"])]]);$_.encmaps=_56;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_posicode.$ctx[id]=$_[id]);bwipp_posicode.__13368__=1;$_=Object.getPrototypeOf($_)}$_.encs=$g($_.encmaps,$_.version);if(!bwipp_posicode.__13379__){$_=Object.create($_);$_.c2w=$a([$a([495,330,210,126,70,35,15,5]),$a([165,120,84,56,35,20,10,4]),$a([45,36,28,21,15,10,6,3]),$a([9,8,7,6,5,4,3,2]),$a([1,1,1,1,1,1,1,1])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_posicode.$ctx[id]=$_[id]);bwipp_posicode.__13379__=1;$_=Object.getPrototypeOf($_)}$_.v=0;var _5I=$_.cws;for(var _5J=0,_5K=_5I.length;_5J<_5K;_5J++){$_.cw=$g(_5I,_5J);for(var _5M=0,_5N=6;_5M<_5N;_5M++){if((($_.cw^$_.v)&1)!=0){$_.v=$_.v^7682}$_.v=$_.v>>>1;$_.cw=$_.cw>>>1}}$_.v=$_.v+$_.checkoffset;if($eq($_.version,"limiteda")||$eq($_.version,"limitedb")){$_.v=$_.v&1023;if($_.v>824&&$_.v<853){$_.v=$_.v+292}}else{$_.v=($_.v&1023)+45}$_.d=$a([2,2,2,2,2,2]);$_.r=0;$_.c=0;$_.w=0;$_.sum=0;for(;;){if($_.sum==$_.v){break}$_.t=$f($_.sum+$g($g($_.c2w,$_.r),$_.c));if($_.t==$_.v){$_.w=$_.w+1;$p($_.d,$_.r,$_.w+2);$_.sum=$_.t}if($_.t>$_.v){$p($_.d,$_.r,$_.w+2);$_.r=$_.r+1;$_.w=0}if($_.t<$_.v){$_.c=$_.c+1;$_.w=$_.w+1;$_.sum=$_.t}}$k[$j++]=20;for(var _63=0;_63<=4;_63+=1){var _66=$k[--$j];$k[$j++]=$f(_66-$g($_.d,_63))}$p($_.d,5,$k[--$j]);if($eq($_.version,"b")||$eq($_.version,"limitedb")){$k[$j++]=Infinity;var _6B=$_.d;for(var _6C=0,_6D=_6B.length;_6C<_6D;_6C++){$k[$j++]=$f($g(_6B,_6C)+1)}$_.d=$a()}$_.cbs=$Z($s(12),"111111111111");for(var _6I=5;_6I>=0;_6I-=1){$_.i=_6I;$p($_.cbs,(5-$_.i)*2+1,$f($g($_.d,$_.i)+47))}$_.sbs=$s($_.cws.length*6+31);var _6S=$g($_.encs,$_.encs.length-2);$P($_.sbs,0,_6S);$_.j=_6S.length;for(var _6W=0,_6V=$_.cws.length-1;_6W<=_6V;_6W+=1){$_.i=_6W;$P($_.sbs,$_.j,$g($_.encs,$g($_.cws,$_.i)));$_.j=$_.j+6}$P($_.sbs,$_.j,$_.cbs);$_.j=$_.j+12;var _6l=$g($_.encs,$_.encs.length-1);$P($_.sbs,$_.j,_6l);$_.j=_6l.length+$_.j;$_.sbs=$G($_.sbs,0,$_.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _6s=$_.sbs;for(var _6t=0,_6u=_6s.length;_6t<_6u;_6t++){$k[$j++]=$f($g(_6s,_6t)-48)}var _6w=$a();$k[$j++]=Infinity;for(var _6y=0,_6z=~~(($_.sbs.length+1)/2);_6y<_6z;_6y++){$k[$j++]=$_.height}var _71=$a();$k[$j++]=Infinity;for(var _73=0,_74=~~(($_.sbs.length+1)/2);_73<_74;_73++){$k[$j++]=0}var _75=$a();var _7D=new Map([["a",0],["b",0],["limiteda",12],["limitedb",13]]);var _7G=new Map([["a",0],["b",0],["limiteda",12],["limitedb",13]]);$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_6w;$k[$j++]="bhs";$k[$j++]=_71;$k[$j++]="bbs";$k[$j++]=_75;$k[$j++]="txt";$k[$j++]=$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="borderleft";$k[$j++]=$g(_7D,$_.version);$k[$j++]="borderright";$k[$j++]=$g(_7G,$_.version);$k[$j++]="opt";$k[$j++]=$_.options;var _7K=$d();$k[$j++]=_7K;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_codablockf(){$_=Object.create($_);$_.dontdraw=false;$_.rows=-1;$_.columns=8;$_.rowheight=10;$_.sepheight=1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.columns<4||$_.columns>62){$k[$j++]="bwipp.codablockfBadColumns#13514";$k[$j++]="Codablock F must have 4 to 62 columns";bwipp_raiseerror()}if($_.rows!=-1&&($_.rows<2||$_.rows>44)){$k[$j++]="bwipp.codablockfBadRows#13518";$k[$j++]="Codablock F must have 2 to 44 rows";bwipp_raiseerror()}if($_.rowheight<8){$k[$j++]="bwipp.codablockfBadRowHeight#13522";$k[$j++]="Codablock F must have rowheight of at least 8";bwipp_raiseerror()}if($_.sepheight<1){$k[$j++]="bwipp.codablockfBadSepHeight#13526";$k[$j++]="Codablock F must have sepheight of at least 1";bwipp_raiseerror()}bwipp_loadctx(bwipp_codablockf);$k[$j++]="c";if($_.columns>=4&&$_.columns<=62){$k[$j++]=$_.columns}else{$k[$j++]=8}var _C=$k[--$j];$_[$k[--$j]]=_C;$k[$j++]="rows";if($_.rows>=2&&$_.rows<=44){$k[$j++]=$_.rows}else{$k[$j++]=-1}var _H=$k[--$j];$_[$k[--$j]]=_H;$_.swa=-1;$_.swb=-2;$_.swc=-3;$_.sft=-4;$_.fn1=-5;$_.fn2=-6;$_.fn3=-7;$_.fn4=-8;$_.sta=-9;$_.stp=-10;var _N=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC3",$_.fn3]]);$_.fncvals=_N;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.msglen=$_.msg.length;$_.msgtmp=$a([]);var _U=$_.msg;for(var _V=0,_W=_U.length;_V<_W;_V++){$_.char=$g(_U,_V);$k[$j++]=Infinity;$q($_.msgtmp);if($_.char<128){$k[$j++]=$_.char}else{$k[$j++]=$_.fn4;$k[$j++]=$_.char&127}$_.msgtmp=$a()}$_.kmsg=$_.msg;$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;if(!bwipp_codablockf.__13616__){$_=Object.create($_);$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.fn3,$_.fn3,"96"]),$a([$_.fn2,$_.fn2,"97"]),$a([$_.sft,$_.sft,"98"]),$a([$_.swc,$_.swc,"99"]),$a([$_.swb,$_.fn4,$_.swb]),$a([$_.fn4,$_.swa,$_.swa]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.sta,$_.sta,$_.sta]),$a([$_.stp,$_.stp,$_.stp])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _2p=0,_2o=$_.charmaps.length-1;_2p<=_2o;_2p+=1){$_.i=_2p;$_.encs=$g($_.charmaps,$_.i);for(var _2t=0;_2t<=2;_2t+=1){$_.j=_2t;var _2w=$g($_.encs,$_.j);$k[$j++]=_2w;if($eq($t(_2w),"stringtype")){var _2z=$g($k[--$j],0);$k[$j++]=_2z}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codablockf.$ctx[id]=$_[id]);bwipp_codablockf.__13616__=1;$_=Object.getPrototypeOf($_)}$_.numsscr=function(){$_.n=0;$_.s=0;$_.p=$k[--$j];for(;;){if($_.p>=$_.msglen){break}var _3H=$g($_.msg,$_.p);var _3J=$g($_.setc,_3H)!==undefined;$k[$j++]=_3H;if(!_3J){$j--;break}if($k[--$j]==$_.fn1){if($_.s%2==0){$_.s=$_.s+1}else{break}}$_.n=$_.n+1;$_.s=$_.s+1;$_.p=$f($_.p+1)}$k[$j++]=$_.n;$k[$j++]=$_.s};$_.enca=function(){$p($_.cws,$_.j,$g($_.seta,$k[--$j]));$_.j=$_.j+1};$_.encb=function(){$p($_.cws,$_.j,$g($_.setb,$k[--$j]));$_.j=$_.j+1};$_.encc=function(){var _3f=$k[--$j];$k[$j++]=_3f;if($ne($t(_3f),"arraytype")){var _3j=$g($_.setc,$k[--$j]);$k[$j++]=_3j}else{$q($k[--$j]);var _3l=$k[--$j];var _3m=$k[--$j];$k[$j++]=$f($f(_3l-48)+$f(_3m-48)*10)}$p($_.cws,$_.j,$k[--$j]);$_.j=$_.j+1};$_.anotb=function(){var _3r=$k[--$j];var _3t=$g($_.seta,_3r)!==undefined;var _3v=$g($_.setb,_3r)!==undefined;$k[$j++]=_3t&&!_3v};$_.bnota=function(){var _3w=$k[--$j];var _3y=$g($_.setb,_3w)!==undefined;var _40=$g($_.seta,_3w)!==undefined;$k[$j++]=_3y&&!_40};$k[$j++]=Infinity;for(var _42=0,_43=$_.msg.length;_42<_43;_42++){$k[$j++]=0}$k[$j++]=9999;$_.nextanotb=$a();$k[$j++]=Infinity;for(var _46=0,_47=$_.msg.length;_46<_47;_46++){$k[$j++]=0}$k[$j++]=9999;$_.nextbnota=$a();for(var _4A=$_.msg.length-1;_4A>=0;_4A-=1){$_.i=_4A;$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$p($_.nextanotb,$_.i,0)}else{$p($_.nextanotb,$_.i,$f($g($_.nextanotb,$_.i+1)+1))}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$p($_.nextbnota,$_.i,0)}else{$p($_.nextbnota,$_.i,$f($g($_.nextbnota,$_.i+1)+1))}}$_.abeforeb=function(){var _4X=$k[--$j];$k[$j++]=$lt($g($_.nextanotb,_4X),$g($_.nextbnota,_4X))};$_.bbeforea=function(){var _4c=$k[--$j];$k[$j++]=$lt($g($_.nextbnota,_4c),$g($_.nextanotb,_4c))};$_.padrow=function(){for(var _4i=0,_4j=$k[--$j];_4i<_4j;_4i++){for(;;){if($eq($_.cset,"seta")){$k[$j++]=$_.swc;$_.enca();$_.cset="setc";break}if($eq($_.cset,"setb")){$k[$j++]=$_.swc;$_.encb();$_.cset="setc";break}if($eq($_.cset,"setc")){$k[$j++]=$_.swb;$_.encc();$_.cset="setb";break}}}};$_.encafitsrow=function(){if($_.rem<=2&&$g($_.msg,$_.i)==$_.fn4){var _4z=$_.rem==2&&$g($_.msg,$_.i+1)<=95;$k[$j++]=_4z;if(_4z){$k[$j++]=$_.fn4;$_.enca();$k[$j++]=$g($_.msg,$_.i+1);$_.enca();$_.i=$_.i+2}}else{$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;$k[$j++]=true}};$_.encbfitsrow=function(){if($_.rem<=2&&$g($_.msg,$_.i)==$_.fn4){var _5I=$_.rem==2&&$g($_.msg,$_.i+1)>=32;$k[$j++]=_5I;if(_5I){$k[$j++]=$_.fn4;$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2}}else{$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;$k[$j++]=true}};$_.cws=$a($f($_.c+5)*44);$_.i=0;$_.j=0;$_.r=1;$_.lastrow=false;for(;;){if($_.lastrow){break}if($_.r>44){$k[$j++]="bwipp.codablockfTooBig#13732";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$k[$j++]=$_.sta;$_.enca();if($_.i<$_.msglen){$k[$j++]=$_.i;$_.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if($_.msglen==0){$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}if($_.nums>=2){$k[$j++]=$_.swc;$_.enca();$_.cset="setc";break}$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sft;$_.enca();$_.cset="seta";break}$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}$_.j=$_.j+1;$_.endofrow=false;for(;;){$_.rem=$f($f($_.c+3)-$_.j%$f($_.c+5));if($_.i==$_.msglen||$_.endofrow){break}$k[$j++]=$_.i;$_.numsscr();$_.nums=$k[--$j];$_.nchars=$k[--$j];$k[$j++]="remnums";if($_.nums>$_.rem*2){$k[$j++]=$_.rem*2}else{$k[$j++]=$_.nums}var _5y=$k[--$j];$_[$k[--$j]]=_5y;for(;;){if(($eq($_.cset,"seta")||$eq($_.cset,"setb"))&&$_.remnums>=4&&$g($_.msg,$_.i)!=$_.fn1){if($_.remnums%2==0&&$_.rem>=3){$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";for(var _6B=0,_6C=2;_6B<_6C;_6B++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}if($_.remnums%2!=0&&$_.rem>=4){$k[$j++]=$g($_.msg,$_.i);if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.i=$_.i+1;$k[$j++]=$_.swc;if($eq($_.cset,"seta")){$_.enca()}else{$_.encb()}$_.cset="setc";for(var _6W=0,_6X=2;_6W<_6X;_6W++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}$k[$j++]=$eq($_.cset,"setb");$k[$j++]=$g($_.msg,$_.i);$_.anotb();var _6m=$k[--$j];var _6n=$k[--$j];if(_6n&&_6m&&$_.rem>=2){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.bbeforea();if($k[--$j]){$k[$j++]=$_.sft;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}}$k[$j++]=$_.swa;$_.encb();$_.cset="seta";$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}$k[$j++]=$eq($_.cset,"seta");$k[$j++]=$g($_.msg,$_.i);$_.bnota();var _77=$k[--$j];var _78=$k[--$j];if(_78&&_77&&$_.rem>=2){if($_.i<$_.msglen-1){$k[$j++]=$_.i+1;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.sft;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}$k[$j++]=$_.swb;$_.enca();$_.cset="setb";$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}if($eq($_.cset,"setc")&&$_.remnums<2&&$_.rem>=2){$_.rem=$f($_.rem-1);$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.swa;$_.encc();$_.cset="seta";$_.encafitsrow();if($k[--$j]){break}}else{$k[$j++]=$_.swb;$_.encc();$_.cset="setb";$_.encbfitsrow();if($k[--$j]){break}}}var _7d=$g($_.seta,$g($_.msg,$_.i))!==undefined;if($eq($_.cset,"seta")&&_7d&&$_.rem>=1){$_.encafitsrow();if($k[--$j]){break}}var _7l=$g($_.setb,$g($_.msg,$_.i))!==undefined;if($eq($_.cset,"setb")&&_7l&&$_.rem>=1){$_.encbfitsrow();if($k[--$j]){break}}if($eq($_.cset,"setc")&&$_.remnums>=2&&$_.rem>=1){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}break}$_.endofrow=true;break}}if(($_.r>=$_.rows||$_.rows==-1)&&$_.r>1&&$_.i==$_.msglen&&$_.rem>=2){$k[$j++]=$f($_.rem-2);$_.padrow();$_.j=$_.j+3;$k[$j++]=$_.stp;$_.enca();$_.lastrow=true}else{$k[$j++]=$_.rem;$_.padrow();$_.j=$_.j+1;$k[$j++]=$_.stp;$_.enca();$_.r=$_.r+1}}$_.cws=$G($_.cws,0,$_.j);if(!bwipp_codablockf.__13905__){$_=Object.create($_);$k[$j++]=Infinity;for(var _8I=64;_8I<=95;_8I+=1){$k[$j++]=_8I}for(var _8J=0;_8J<=15;_8J+=1){$k[$j++]=_8J}for(var _8K=26;_8K<=63;_8K+=1){$k[$j++]=_8K}$_.abmap=$a();$k[$j++]=Infinity;for(var _8M=0;_8M<=85;_8M+=1){$k[$j++]=_8M}$_.cmap=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codablockf.$ctx[id]=$_[id]);bwipp_codablockf.__13905__=1;$_=Object.getPrototypeOf($_)}$_.chkmsg=$a($_.kmsg.length);$_.j=0;for(var _8T=0,_8S=$_.kmsg.length-1;_8T<=_8S;_8T+=1){$_.i=_8T;$_.char=$g($_.kmsg,$_.i);if($_.char>=0){$p($_.chkmsg,$_.j,$_.char);$_.j=$_.j+1}if($_.char==$_.fn1&&$_.i!=0){$p($_.chkmsg,$_.j,29);$_.j=$_.j+1}}$_.t1=0;$_.t2=0;$_.k1=0;$_.k2=0;for(var _8k=0,_8j=$_.j-1;_8k<=_8j;_8k+=1){$_.i=_8k;$_.t1=$g($_.chkmsg,$_.i)*$_.i%86;$_.t2=$f($_.t1+$g($_.chkmsg,$_.i))%86;$_.k1=$f($_.k1+$_.t2)%86;$_.k2=$f($_.k2+$_.t1)%86}$k[$j++]=$_.cws;$k[$j++]=$_.cws.length-4;if($ne($_.cset,"setc")){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _94=$g($k[--$j],$_.k1);var _95=$k[--$j];$p($k[--$j],_95,_94);$k[$j++]=$_.cws;$k[$j++]=$_.cws.length-3;if($ne($_.cset,"setc")){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _9E=$g($k[--$j],$_.k2);var _9F=$k[--$j];$p($k[--$j],_9F,_9E);var _9H=$_.cws;$k[$j++]=_9H;$k[$j++]=2;if($g(_9H,2-1)!=99){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _9N=$g($k[--$j],$_.r-2);var _9O=$k[--$j];$p($k[--$j],_9O,_9N);for(var _9S=1,_9R=$_.r-1;_9S<=_9R;_9S+=1){$_.i=_9S;var _9T=$_.cws;var _9U=$_.i;var _9V=$_.c;$k[$j++]=_9T;$k[$j++]=$f(_9U*$f(_9V+5)+2);if($g(_9T,$f($f(_9U*$f(_9V+5)+2)-1))!=99){$k[$j++]=$_.abmap}else{$k[$j++]=$_.cmap}var _9b=$g($k[--$j],$_.i+42);var _9c=$k[--$j];$p($k[--$j],_9c,_9b)}for(var _9g=0,_9f=$_.r-1;_9g<=_9f;_9g+=1){$_.rcws=$G($_.cws,_9g*$f($_.c+5),$f($_.c+4));$_.csum=$g($_.rcws,0);for(var _9p=1,_9o=$_.rcws.length-2;_9p<=_9o;_9p+=1){$_.i=_9p;$_.csum=$f($_.csum+$g($_.rcws,$_.i)*$_.i)}$p($_.rcws,$_.rcws.length-1,$_.csum%103)}var _9z=$g($_.options,"debugcws")!==undefined;if(_9z){$k[$j++]="bwipp.debugcws#13945";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_codablockf.__13966__){$_=Object.create($_);$_.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","2331112"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codablockf.$ctx[id]=$_[id]);bwipp_codablockf.__13966__=1;$_=Object.getPrototypeOf($_)}$_.rowbits=$a($_.r);for(var _A7=0,_A6=$_.r-1;_A7<=_A6;_A7+=1){$_.i=_A7;$k[$j++]=Infinity;var _AC=$G($_.cws,$_.i*$f($_.c+5),$f($_.c+5));for(var _AD=0,_AE=_AC.length;_AD<_AE;_AD++){$F($g($_.encs,$g(_AC,_AD)),function(){var _AI=$k[--$j];$k[$j++]=$f(_AI-48)})}$_.sbs=$a();$k[$j++]=Infinity;var _AK=$_.sbs;$k[$j++]=0;for(var _AL=0,_AM=_AK.length;_AL<_AM;_AL++){var _AO=$k[--$j];var _AP=_AO==1?0:1;$k[$j++]=_AO;for(var _AQ=0,_AR=$g(_AK,_AL);_AQ<_AR;_AQ++){$k[$j++]=_AP}}$as($a($m()-1));var _AU=$k[--$j];var _AV=$k[--$j];$k[$j++]=_AU;$k[$j++]=_AV;$j--;var _AW=$k[--$j];var _AX=$k[--$j];$k[$j++]=_AW;$k[$j++]=_AX;$j--;$p($_.rowbits,$_.i,$k[--$j])}$_.symwid=$f($_.c*11+57);$k[$j++]=Infinity;for(var _Ae=0,_Af=$_.symwid*$_.sepheight;_Ae<_Af;_Ae++){$k[$j++]=1}for(var _Ai=0,_Ah=$_.r-2;_Ai<=_Ah;_Ai+=1){$_.i=_Ai;for(var _Ak=0,_Al=$_.rowheight;_Ak<_Al;_Ak++){$q($g($_.rowbits,$_.i))}for(var _Aq=0,_Ar=$_.sepheight;_Aq<_Ar;_Aq++){$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;for(var _At=0,_Au=$f($_.symwid-24);_At<_Au;_At++){$k[$j++]=1}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1}}for(var _Aw=0,_Ax=$_.rowheight;_Aw<_Ax;_Aw++){$q($g($_.rowbits,$_.r-1))}for(var _B3=0,_B4=$_.symwid*$_.sepheight;_B3<_B4;_B3++){$k[$j++]=1}$_.pixs=$a();var _BE=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.symwid],["pixy",~~($_.pixs.length/$_.symwid)],["height",~~($_.pixs.length/$_.symwid)/72],["width",$_.symwid/72],["opt",$_.options]]);$k[$j++]=_BE;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code16k(){$_=Object.create($_);$_.dontdraw=false;$_.sam=-1;$_.rows=0;$_.rowheight=8;$_.sepheight=1;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.rows!=0&&($_.rows<2||$_.rows>16)){$k[$j++]="bwipp.code16kBadRows#14062";$k[$j++]="Code 16K must have 2 to 16 rows";bwipp_raiseerror()}if($_.rowheight<8){$k[$j++]="bwipp.code16kBadRowHeight#14066";$k[$j++]="Code 16K must have rowheight of at least 8";bwipp_raiseerror()}if($_.sepheight<1){$k[$j++]="bwipp.code16kBadSepHeight#14070";$k[$j++]="Code 16K must have sepheight of at least 1";bwipp_raiseerror()}if($_.sam!=-1){$k[$j++]=true;for(var _8=0,_9=1;_8<_9;_8++){var _A=$_.sam;if(_A<12||_A>99){$j--;$k[$j++]=false;break}if($_.sam%10<2){$j--;$k[$j++]=false;break}if(~~($_.sam/10)>$_.sam%10){$j--;$k[$j++]=false;break}}if($nt($k[--$j])){$k[$j++]="bwipp.code16kBadSAM#14081";$k[$j++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols';bwipp_raiseerror()}}bwipp_loadctx(bwipp_code16k);if($_.sam!=-1){$_.rows=16}if(!bwipp_code16k.__14152__){$_=Object.create($_);$_.swa=-1;$_.swb=-2;$_.swc=-3;$_.sa1=-4;$_.sb1=-5;$_.sc1=-6;$_.sa2=-7;$_.sb2=-8;$_.sc2=-9;$_.pad=-10;$_.sb3=-11;$_.sc3=-12;$_.fn1=-13;$_.fn2=-14;$_.fn3=-15;$_.fn4=-16;$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.fn3,$_.fn3,"96"]),$a([$_.fn2,$_.fn2,"97"]),$a([$_.sb1,$_.sa1,"98"]),$a([$_.swc,$_.swc,"99"]),$a([$_.swb,$_.fn4,$_.swb]),$a([$_.fn4,$_.swa,$_.swa]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.pad,$_.pad,$_.pad]),$a([$_.sb2,$_.sa2,$_.sb1]),$a([$_.sc2,$_.sc2,$_.sb2]),$a([$_.sc3,$_.sc3,$_.sb3])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _2W=0,_2V=$_.charmaps.length-1;_2W<=_2V;_2W+=1){$_.i=_2W;$_.encs=$g($_.charmaps,$_.i);for(var _2a=0;_2a<=2;_2a+=1){$_.j=_2a;var _2d=$g($_.encs,$_.j);$k[$j++]=_2d;if($eq($t(_2d),"stringtype")){var _2g=$g($k[--$j],0);$k[$j++]=_2g}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code16k.$ctx[id]=$_[id]);bwipp_code16k.__14152__=1;$_=Object.getPrototypeOf($_)}if($_.raw){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.barcode.length-3){break}if($g($_.barcode,$_.i)!=94){break}var _33=$G($_.barcode,$_.i+1,3);$k[$j++]=_33;$k[$j++]=false;for(var _34=0,_35=_33.length;_34<_35;_34++){var _36=$g(_33,_34);if(_36<48||_36>57){$j--;$k[$j++]=true}}if($k[--$j]){$j--;break}$_.cw=$i($k[--$j]);$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}if($_.i!=$_.barcode.length){$k[$j++]="bwipp.code16kBadRawFormat#14170";$k[$j++]="raw data must be formatted as ^NNN";bwipp_raiseerror()}$_.cws=$G($_.cws,0,$_.j)}else{var _3O=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1],["FNC2",$_.fn2],["FNC3",$_.fn3]]);$_.fncvals=_3O;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _3R=$k[--$j];$_[$k[--$j]]=_3R;$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _3V=0,_3W=$_.msglen;_3V<_3W;_3V++){$k[$j++]=0}$k[$j++]=0;$_.numSA=$a();$k[$j++]=Infinity;for(var _3Z=0,_3a=$_.msglen;_3Z<_3a;_3Z++){$k[$j++]=0}$k[$j++]=0;$_.numEA=$a();for(var _3d=$_.msglen-1;_3d>=0;_3d-=1){$_.i=_3d;if($g($_.msg,$_.i)>=0){if($g($_.msg,$_.i)>=128){$p($_.numEA,$_.i,$f($g($_.numEA,$_.i+1)+1))}else{$p($_.numSA,$_.i,$f($g($_.numSA,$_.i+1)+1))}}}$_.ea=false;$_.msgtmp=$a([]);for(var _3x=0,_3w=$_.msglen-1;_3x<=_3w;_3x+=1){$_.i=_3x;$_.c=$g($_.msg,$_.i);if(!$xo($_.ea,$_.c<128)&&$_.c>=0){if($_.ea){$k[$j++]=$_.numSA}else{$k[$j++]=$_.numEA}var _49=$g($k[--$j],$_.i);var _4C=$f(_49+$_.i)==$_.msglen?3:5;if(_49<_4C){$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$_.msgtmp=$a()}else{$k[$j++]=Infinity;$q($_.msgtmp);$k[$j++]=$_.fn4;$k[$j++]=$_.fn4;$_.msgtmp=$a();$_.ea=!$_.ea}}$k[$j++]=Infinity;$q($_.msgtmp);if($_.c>=0){$k[$j++]=$_.c&127}else{$k[$j++]=$_.c}$_.msgtmp=$a()}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;$_.numsscr=function(){$_.n=0;$_.s=0;$_.p=$k[--$j];for(;;){if($_.p>=$_.msglen){break}var _4X=$g($_.msg,$_.p);var _4Z=$g($_.setc,_4X)!==undefined;$k[$j++]=_4X;if(!_4Z){$j--;break}if($k[--$j]==$_.fn1){if($_.s%2==0){$_.s=$_.s+1}else{break}}$_.n=$_.n+1;$_.s=$_.s+1;$_.p=$f($_.p+1)}$k[$j++]=$_.n;$k[$j++]=$_.s};$_.enca=function(){$p($_.cws,$_.j,$g($_.seta,$k[--$j]));$_.j=$_.j+1};$_.encb=function(){$p($_.cws,$_.j,$g($_.setb,$k[--$j]));$_.j=$_.j+1};$_.encc=function(){var _4v=$k[--$j];$k[$j++]=_4v;if($ne($t(_4v),"arraytype")){var _4z=$g($_.setc,$k[--$j]);$k[$j++]=_4z}else{$q($k[--$j]);var _51=$k[--$j];var _52=$k[--$j];$k[$j++]=$f($f(_51-48)+$f(_52-48)*10)}$p($_.cws,$_.j,$k[--$j]);$_.j=$_.j+1};$_.anotb=function(){var _57=$k[--$j];var _59=$g($_.seta,_57)!==undefined;var _5B=$g($_.setb,_57)!==undefined;$k[$j++]=_59&&!_5B};$_.bnota=function(){var _5C=$k[--$j];var _5E=$g($_.setb,_5C)!==undefined;var _5G=$g($_.seta,_5C)!==undefined;$k[$j++]=_5E&&!_5G};$k[$j++]=Infinity;for(var _5I=0,_5J=$_.msg.length;_5I<_5J;_5I++){$k[$j++]=0}$k[$j++]=9999;$_.nextanotb=$a();$k[$j++]=Infinity;for(var _5M=0,_5N=$_.msg.length;_5M<_5N;_5M++){$k[$j++]=0}$k[$j++]=9999;$_.nextbnota=$a();for(var _5Q=$_.msg.length-1;_5Q>=0;_5Q-=1){$_.i=_5Q;$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$p($_.nextanotb,$_.i,0)}else{$p($_.nextanotb,$_.i,$f($g($_.nextanotb,$_.i+1)+1))}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$p($_.nextbnota,$_.i,0)}else{$p($_.nextbnota,$_.i,$f($g($_.nextbnota,$_.i+1)+1))}}$_.abeforeb=function(){var _5n=$k[--$j];$k[$j++]=$lt($g($_.nextanotb,_5n),$g($_.nextbnota,_5n))};$_.bbeforea=function(){var _5s=$k[--$j];$k[$j++]=$lt($g($_.nextbnota,_5s),$g($_.nextanotb,_5s))};$_.cws=$a($_.barcode.length*2+3);$_.i=0;$_.j=0;for(;;){if($_.sam!=-1){$p($_.cws,0,~~($_.sam/10)-1);$p($_.cws,1,$_.sam%10-1);$_.j=2;$_.cset="setb";$_.mode=7;break}if($_.msglen==0){$_.cset="setb";$_.mode=1;break}if($_.msglen>=2){$k[$j++]=$g($_.msg,0)==$_.fn1;$k[$j++]=1;$_.numsscr();var _69=$k[--$j];var _6A=$k[--$j];$k[$j++]=_69;$k[$j++]=_6A;$j--;var _6B=$k[--$j];var _6C=$k[--$j];if(_6C&&_6B>=2){$_.cset="setc";$_.mode=4;$_.i=1;break}}if($g($_.msg,0)==$_.fn1){$_.cset="setb";$_.mode=3;$_.i=1;break}if($_.msglen>=2){$k[$j++]=0;$_.numsscr();var _6H=$k[--$j];var _6I=$k[--$j];$k[$j++]=_6H;$k[$j++]=_6I;$j--;var _6J=$k[--$j];if(_6J>=2&&_6J%2==0){$_.cset="setc";$_.mode=2;break}$k[$j++]=0;$_.numsscr();var _6K=$k[--$j];var _6L=$k[--$j];$k[$j++]=_6K;$k[$j++]=_6L;$j--;var _6M=$k[--$j];if(_6M>=3&&_6M%2==1){$k[$j++]=$g($_.msg,0);$_.encb();$_.cset="setc";$_.mode=5;$_.i=1;break}var _6S=$g($_.setb,$g($_.msg,0))!==undefined;$k[$j++]=_6S;$k[$j++]=1;$_.numsscr();var _6T=$k[--$j];var _6U=$k[--$j];$k[$j++]=_6T;$k[$j++]=_6U;$j--;var _6V=$k[--$j];var _6W=$k[--$j];if(_6W&&(_6V>=2&&_6V%2==0)){$k[$j++]=$g($_.msg,0);$_.encb();$_.cset="setc";$_.mode=5;$_.i=1;break}var _6c=$g($_.setb,$g($_.msg,0))!==undefined;$k[$j++]=_6c;$k[$j++]=1;$_.numsscr();var _6d=$k[--$j];var _6e=$k[--$j];$k[$j++]=_6d;$k[$j++]=_6e;$j--;var _6f=$k[--$j];var _6g=$k[--$j];if(_6g&&(_6f>=3&&_6f%2==1)){$k[$j++]=$g($_.msg,0);$_.encb();$k[$j++]=$g($_.msg,1);$_.encb();$_.cset="setc";$_.mode=6;$_.i=2;break}var _6o=$g($_.setb,$g($_.msg,0))!==undefined;var _6s=$g($_.setb,$g($_.msg,1))!==undefined;$k[$j++]=_6o&&_6s;$k[$j++]=2;$_.numsscr();var _6t=$k[--$j];var _6u=$k[--$j];$k[$j++]=_6t;$k[$j++]=_6u;$j--;var _6v=$k[--$j];var _6w=$k[--$j];if(_6w&&(_6v>=2&&_6v%2==0)){$k[$j++]=$g($_.msg,0);$_.encb();$k[$j++]=$g($_.msg,1);$_.encb();$_.cset="setc";$_.mode=6;$_.i=2;break}}$k[$j++]=0;$_.abeforeb();if($k[--$j]){$_.cset="seta";$_.mode=0;break}$_.cset="setb";$_.mode=1;break}for(;;){if($_.i==$_.msglen){break}$k[$j++]=$_.i;$_.numsscr();$_.nums=$k[--$j];$_.nchars=$k[--$j];for(;;){if($eq($_.cset,"seta")){if($_.i<$_.msglen-1){$k[$j++]=$g($_.msg,$_.i);$_.bnota();$k[$j++]=$_.i+1;$_.abeforeb();var _7E=$k[--$j];var _7F=$k[--$j];if(_7F&&_7E){$k[$j++]=$_.sb1;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}if($_.i<$_.msglen-2){$k[$j++]=$g($_.msg,$_.i);$_.bnota();$k[$j++]=$g($_.msg,$_.i+1);$_.bnota();var _7T=$k[--$j];var _7U=$k[--$j];$k[$j++]=$an(_7U,_7T);$k[$j++]=$_.i+2;$_.abeforeb();var _7W=$k[--$j];var _7X=$k[--$j];if(_7X&&_7W){$k[$j++]=$_.sb2;$_.enca();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2;break}}$k[$j++]=$g($_.msg,$_.i);$_.bnota();if($k[--$j]){$k[$j++]=$_.swb;$_.enca();$_.cset="setb";break}if($_.i<$_.msglen-4){var _7s=$g($_.seta,$g($_.msg,$_.i+4))!==undefined;if($_.nums==4&&_7s){$k[$j++]=$_.sc2;$_.enca();for(var _7u=0,_7v=2;_7u<_7v;_7u++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.i<$_.msglen-6){var _8D=$g($_.seta,$g($_.msg,$_.i+6))!==undefined;if($_.nums==6&&_8D){$k[$j++]=$_.sc3;$_.enca();for(var _8F=0,_8G=3;_8F<_8G;_8F++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.nums>=4&&$_.nums%2==0){$k[$j++]=$_.swc;$_.enca();$_.cset="setc";break}$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}if($eq($_.cset,"setb")){if($_.i<$_.msglen-1){$k[$j++]=$g($_.msg,$_.i);$_.anotb();$k[$j++]=$_.i+1;$_.bbeforea();var _8f=$k[--$j];var _8g=$k[--$j];if(_8g&&_8f){$k[$j++]=$_.sa1;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$_.i=$_.i+1;break}}if($_.i<$_.msglen-2){$k[$j++]=$g($_.msg,$_.i);$_.anotb();$k[$j++]=$g($_.msg,$_.i+1);$_.anotb();var _8u=$k[--$j];var _8v=$k[--$j];$k[$j++]=$an(_8v,_8u);$k[$j++]=$_.i+2;$_.bbeforea();var _8x=$k[--$j];var _8y=$k[--$j];if(_8y&&_8x){$k[$j++]=$_.sa2;$_.encb();$k[$j++]=$g($_.msg,$_.i);$_.enca();$k[$j++]=$g($_.msg,$_.i+1);$_.enca();$_.i=$_.i+2;break}}$k[$j++]=$g($_.msg,$_.i);$_.anotb();if($k[--$j]){$k[$j++]=$_.swa;$_.encb();$_.cset="seta";break}if($_.i<$_.msglen-4){var _9J=$g($_.setb,$g($_.msg,$_.i+4))!==undefined;if($_.nums==4&&_9J){$k[$j++]=$_.sc2;$_.encb();for(var _9L=0,_9M=2;_9L<_9M;_9L++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.i<$_.msglen-6){var _9e=$g($_.setb,$g($_.msg,$_.i+6))!==undefined;if($_.nums==6&&_9e){$k[$j++]=$_.sc3;$_.encb();for(var _9g=0,_9h=3;_9g<_9h;_9g++){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}}break}}if($_.nums>=4&&$_.nums%2==0){$k[$j++]=$_.swc;$_.encb();$_.cset="setc";break}$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}if($eq($_.cset,"setc")){if($_.nums>=2){if($g($_.msg,$_.i)==$_.fn1){$k[$j++]=$_.fn1;$_.encc();$_.i=$_.i+1}else{$k[$j++]=$G($_.msg,$_.i,2);$_.encc();$_.i=$_.i+2}break}if($_.i<$_.msglen-1){var _AH=$g($_.setb,$g($_.msg,$_.i))!==undefined;$k[$j++]=_AH;$k[$j++]=$_.i+1;$_.numsscr();var _AJ=$k[--$j];var _AK=$k[--$j];$k[$j++]=_AJ;$k[$j++]=_AK;$j--;var _AL=$k[--$j];var _AM=$k[--$j];if(_AM&&(_AL>=2&&_AL%2==0)){$k[$j++]=$_.sb1;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$_.i=$_.i+1;break}}if($_.i<$_.msglen-1){var _AY=$g($_.setb,$g($_.msg,$_.i))!==undefined;$k[$j++]=_AY;$k[$j++]=$_.i+1;$_.numsscr();var _Aa=$k[--$j];var _Ab=$k[--$j];$k[$j++]=_Aa;$k[$j++]=_Ab;$j--;var _Ac=$k[--$j];var _Ad=$k[--$j];if(_Ad&&(_Ac>=3&&_Ac%2==1)){$k[$j++]=$_.sb2;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2;break}}if($_.i<$_.msglen-2){var _As=$g($_.setb,$g($_.msg,$_.i))!==undefined;var _Ax=$g($_.setb,$g($_.msg,$_.i+1))!==undefined;$k[$j++]=_As&&_Ax;$k[$j++]=$_.i+2;$_.numsscr();var _Az=$k[--$j];var _B0=$k[--$j];$k[$j++]=_Az;$k[$j++]=_B0;$j--;var _B1=$k[--$j];var _B2=$k[--$j];if(_B2&&(_B1>=2&&_B1%2==0)){$k[$j++]=$_.sb2;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$_.i=$_.i+2;break}}if($_.i<$_.msglen-3){var _BH=$g($_.setb,$g($_.msg,$_.i))!==undefined;var _BM=$g($_.setb,$g($_.msg,$_.i+1))!==undefined;$k[$j++]=_BH&&_BM;$k[$j++]=$_.i+2;$_.numsscr();var _BO=$k[--$j];var _BP=$k[--$j];$k[$j++]=_BO;$k[$j++]=_BP;$j--;var _BQ=$k[--$j];var _BR=$k[--$j];if(_BR&&(_BQ>=3&&_BQ%2==1)){$k[$j++]=$_.sb3;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$k[$j++]=$g($_.msg,$_.i+2);$_.encb();$_.i=$_.i+3;break}}if($_.i<$_.msglen-3){var _Bj=$g($_.setb,$g($_.msg,$_.i))!==undefined;var _Bo=$g($_.setb,$g($_.msg,$_.i+1))!==undefined;var _Bt=$g($_.setb,$g($_.msg,$_.i+2))!==undefined;$k[$j++]=_Bj&&_Bo&&_Bt;$k[$j++]=$_.i+3;$_.numsscr();var _Bv=$k[--$j];var _Bw=$k[--$j];$k[$j++]=_Bv;$k[$j++]=_Bw;$j--;var _Bx=$k[--$j];var _By=$k[--$j];if(_By&&(_Bx>=2&&_Bx%2==0)){$k[$j++]=$_.sb3;$_.encc();$k[$j++]=$g($_.msg,$_.i);$_.encb();$k[$j++]=$g($_.msg,$_.i+1);$_.encb();$k[$j++]=$g($_.msg,$_.i+2);$_.encb();$_.i=$_.i+3;break}}$k[$j++]=$_.i;$_.abeforeb();if($k[--$j]){$k[$j++]=$_.swa;$_.encc();$_.cset="seta";break}$k[$j++]=$_.swb;$_.encc();$_.cset="setb";break}break}}$_.cws=$G($_.cws,0,$_.j)}if(!bwipp_code16k.__14645__){$_=Object.create($_);$_.metrics=$a([$a([2,7]),$a([3,12]),$a([4,17]),$a([5,22]),$a([6,27]),$a([7,32]),$a([8,37]),$a([9,42]),$a([10,47]),$a([11,52]),$a([12,57]),$a([13,62]),$a([14,67]),$a([15,72]),$a([16,77])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code16k.$ctx[id]=$_[id]);bwipp_code16k.__14645__=1;$_=Object.getPrototypeOf($_)}$_.urows=$_.rows;var _CZ=$_.metrics;for(var _Ca=0,_Cb=_CZ.length;_Ca<_Cb;_Ca++){$_.m=$g(_CZ,_Ca);$_.r=$g($_.m,0);$_.dcws=$g($_.m,1);$_.okay=true;if($_.urows!=0&&$_.urows!=$_.r){$_.okay=false}if($_.cws.length>$_.dcws){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.code16kNoValidSymbol#14660";$k[$j++]="Maximum length exceeded or data too large for given options";bwipp_raiseerror()}$k[$j++]=Infinity;$q($_.cws);for(var _Cr=0,_Cs=$f($_.dcws-$_.cws.length);_Cr<_Cs;_Cr++){$k[$j++]=103}$_.cws=$a();$k[$j++]=Infinity;$k[$j++]=$f($f($_.r-2)*7+$_.mode);$q($_.cws);$_.cws=$a();$k[$j++]=0;for(var _D0=0,_Cz=$_.dcws;_D0<=_Cz;_D0+=1){var _D3=$k[--$j];$k[$j++]=$f(_D3+(_D0+2)*$g($_.cws,_D0))}$_.c1=$k[--$j]%107;$k[$j++]=0;for(var _D7=0,_D6=$_.dcws;_D7<=_D6;_D7+=1){var _DA=$k[--$j];$k[$j++]=$f(_DA+(_D7+1)*$g($_.cws,_D7))}$_.c2=$f($k[--$j]+$_.c1*$f($_.dcws+2))%107;$k[$j++]=Infinity;$q($_.cws);$k[$j++]=$_.c1;$k[$j++]=$_.c2;$_.cws=$a();var _DJ=$g($_.options,"debugcws")!==undefined;if(_DJ){$k[$j++]="bwipp.debugcws#14676";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_code16k.__14712__){$_=Object.create($_);$_.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","211133"]);$_.startencs=$a(["3211","2221","2122","1411","1132","1231","1114","3112","3211","2221","2122","1411","1132","1231","1114","3112"]);$_.stopencsodd=$a(["3211","2221","2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411"]);$_.stopencseven=$a(["2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411","3211","2221"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code16k.$ctx[id]=$_[id]);bwipp_code16k.__14712__=1;$_=Object.getPrototypeOf($_)}if($_.sam==-1||~~($_.sam/10)%2==1){$_.stopencs=$_.stopencsodd}else{$_.stopencs=$_.stopencseven}$_.rowbits=$a($_.r);for(var _DY=0,_DX=$f($_.r-1);_DY<=_DX;_DY+=1){$_.i=_DY;$k[$j++]=Infinity;$k[$j++]=10;$F($g($_.startencs,$_.i),function(){var _Dc=$k[--$j];$k[$j++]=$f(_Dc-48)});var _Df=$G($_.cws,$_.i*5,5);$k[$j++]=1;for(var _Dg=0,_Dh=_Df.length;_Dg<_Dh;_Dg++){$F($g($_.encs,$g(_Df,_Dg)),function(){var _Dl=$k[--$j];$k[$j++]=$f(_Dl-48)})}$F($g($_.stopencs,$_.i),function(){var _Dp=$k[--$j];$k[$j++]=$f(_Dp-48)});$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _Dr=$_.sbs;$k[$j++]=1;for(var _Ds=0,_Dt=_Dr.length;_Ds<_Dt;_Ds++){var _Dv=$k[--$j];var _Dw=_Dv==0?1:0;$k[$j++]=_Dv;for(var _Dx=0,_Dy=$g(_Dr,_Ds);_Dx<_Dy;_Dx++){$k[$j++]=_Dw}}$as($a($m()-1));var _E1=$k[--$j];var _E2=$k[--$j];$k[$j++]=_E1;$k[$j++]=_E2;$j--;var _E3=$k[--$j];var _E4=$k[--$j];$k[$j++]=_E3;$k[$j++]=_E4;$j--;$p($_.rowbits,$_.i,$k[--$j])}$k[$j++]=Infinity;for(var _E9=0,_EA=81*$_.sepheight;_E9<_EA;_E9++){$k[$j++]=1}for(var _ED=0,_EC=$f($_.r-2);_ED<=_EC;_ED+=1){$_.i=_ED;for(var _EF=0,_EG=$_.rowheight;_EF<_EG;_EF++){$q($g($_.rowbits,$_.i))}for(var _EL=0,_EM=$_.sepheight;_EL<_EM;_EL++){for(var _EN=0,_EO=10;_EN<_EO;_EN++){$k[$j++]=0}for(var _EP=0,_EQ=70;_EP<_EQ;_EP++){$k[$j++]=1}$k[$j++]=0}}for(var _ES=0,_ET=$_.rowheight;_ES<_ET;_ES++){$q($g($_.rowbits,$f($_.r-1)))}for(var _EY=0,_EZ=81*$_.sepheight;_EY<_EZ;_EY++){$k[$j++]=1}$_.pixs=$a();var _Ef=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",81],["pixy",~~($_.pixs.length/81)],["height",~~($_.pixs.length/81)/72],["width",81/72],["opt",$_.options]]);$k[$j++]=_Ef;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_code49(){$_=Object.create($_);$_.dontdraw=false;$_.sam=-1;$_.append=false;$_.rows=0;$_.rowheight=8;$_.sepheight=1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.rows!=0&&($_.rows<2||$_.rows>8)){$k[$j++]="bwipp.code49badRows#14814";$k[$j++]="Code 49 must have 2 to 8 rows";bwipp_raiseerror()}if($_.rowheight<8){$k[$j++]="bwipp.code49badRowHeight#14818";$k[$j++]="Code 49 must have rowheight of at least 8";bwipp_raiseerror()}if($_.sepheight<1){$k[$j++]="bwipp.code49badSepHeight#14822";$k[$j++]="Code 49 must have sepheight of at least 1";bwipp_raiseerror()}if($_.append&&$_.sam!=-1){$k[$j++]="bwipp.code49samAndAppend#14826";$k[$j++]="sam and append cannot be specified together";bwipp_raiseerror()}if($_.sam!=-1){$k[$j++]=true;for(var _A=0,_B=1;_A<_B;_A++){var _C=$_.sam;if(_C<12||_C>99){$j--;$k[$j++]=false;break}if($_.sam%10<2){$j--;$k[$j++]=false;break}if(~~($_.sam/10)>$_.sam%10){$j--;$k[$j++]=false;break}}if($nt($k[--$j])){$k[$j++]="bwipp.code49badSAM#14837";$k[$j++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 9 symbols';bwipp_raiseerror()}}bwipp_loadctx(bwipp_code49);if(!bwipp_code49.__14845__){$_=Object.create($_);$_.s1=-1;$_.s2=-2;$_.fn1=-3;$_.fn2=-4;$_.fn3=-5;$_.ns=-6;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14845__=1;$_=Object.getPrototypeOf($_)}var _N=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC2",$_.fn2],["FNC3",$_.fn3]]);$_.fncvals=_N;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.msglen=$_.msg.length;$F($_.msg,function(){if($k[--$j]>127){$k[$j++]="bwipp.code49badCharacter#14860";$k[$j++]="Code 49 can only support ASCII characters with values 0 to 127";bwipp_raiseerror()}});if(!bwipp_code49.__14904__){$_=Object.create($_);$_.charmap=$a(["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%",$_.s1,$_.s2,$_.fn1,$_.fn2,$_.fn3,$_.ns]);$_.charvals=new Map;for(var _c=0;_c<=48;_c+=1){$_.i=_c;var _f=$g($_.charmap,$_.i);$k[$j++]=_f;if($eq($t(_f),"stringtype")){var _i=$g($k[--$j],0);$k[$j++]=_i}$p($_.charvals,$k[--$j],$_.i)}$_.combos=$a(["1 ","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","11","12","13","14","15"," ","16","17","18"," $"," %","19","10","1-","1.","1$"," +","1/"," -"," ."," /"," 0"," 1"," 2"," 3"," 4"," 5"," 6"," 7"," 8"," 9","1+","21","22","23","24","25","26"," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z","27","28","29","20","2-","2.","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2$","2/","2+","2%","2 "]);for(var _n=0;_n<=127;_n+=1){$_.i=_n;var _q=$g($_.combos,$_.i);$_.c1=$g(_q,0);$_.c2=$g(_q,1);if($_.c1==49){$p($_.charvals,$_.i,$a([$g($_.charvals,$_.s1),$g($_.charvals,$_.c2)]))}if($_.c1==50){$p($_.charvals,$_.i,$a([$g($_.charvals,$_.s2),$g($_.charvals,$_.c2)]))}}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14904__=1;$_=Object.getPrototypeOf($_)}$_.encodealpha=function(){var _1G=$g($_.charvals,$k[--$j]);$k[$j++]=_1G;if($ne($t(_1G),"arraytype")){$as($a(1))}var _1J=$k[--$j];$P($_.cws,$_.j,_1J);$_.j=_1J.length+$_.j};$_.base48=function(){var _1N=$k[--$j];$k[$j++]=0;$F(_1N,function(){var _1O=$k[--$j];var _1P=$k[--$j];$k[$j++]=$f($f(_1O-48)+_1P*10)});$k[$j++]=Infinity;var _1Q=$k[--$j];var _1R=$k[--$j];var _1S=$k[--$j];$k[$j++]=_1Q;$k[$j++]=_1R;for(var _1T=0,_1U=$f(_1S-1);_1T<_1U;_1T++){var _1V=$k[--$j];$k[$j++]=_1V%48;$k[$j++]=~~(_1V/48)}var _1W=$a();$k[$j++]=_1W;$k[$j++]=Infinity;var _1X=$k[--$j];var _1Y=$k[--$j];$k[$j++]=_1X;$k[$j++]=_1Y;for(var _1Z=_1Y.length-1;_1Z>=0;_1Z-=1){var _1a=$k[--$j];$k[$j++]=$g(_1a,_1Z);$k[$j++]=_1a}$j--;var _1c=$a();$P($_.cws,$_.j,_1c);$_.j=_1c.length+$_.j};$_.encodenumeric=function(){$_.nums=$k[--$j];var _1i=$_.nums.length;var _1j=_1i%5;$k[$j++]="pre";$k[$j++]=_1i;$k[$j++]=_1j;if(_1j!=2){var _1k=$k[--$j];var _1l=$k[--$j];$k[$j++]=$f(_1l-_1k)}else{var _1m=$k[--$j];var _1n=$k[--$j];$k[$j++]=$f($f(_1n-_1m)-5)}var _1o=$k[--$j];$_[$k[--$j]]=_1o;for(var _1s=0,_1r=$f($_.pre-1);_1s<=_1r;_1s+=5){$k[$j++]=3;$k[$j++]=$G($_.nums,_1s,5);$_.base48()}$_.nums=$G($_.nums,$_.pre,$f($_.nums.length-$_.pre));var _21=$_.nums.length;$k[$j++]=_21;if(_21==1){$k[$j++]=$g($_.nums,$_.i);$_.encodealpha()}var _25=$k[--$j];$k[$j++]=_25;if(_25==3){$k[$j++]=2;$k[$j++]=$_.nums;$_.base48()}var _27=$k[--$j];$k[$j++]=_27;if(_27==4){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($_.nums);var _29=$a();$k[$j++]=_29;$_.base48()}if($k[--$j]==7){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($G($_.nums,0,4));var _2D=$a();$k[$j++]=_2D;$_.base48();$k[$j++]=2;$k[$j++]=$G($_.nums,4,3);$_.base48()}};$k[$j++]=Infinity;for(var _2H=0,_2I=$_.msglen;_2H<_2I;_2H++){$k[$j++]=0}$k[$j++]=0;$_.numericruns=$a();for(var _2L=$_.msglen-1;_2L>=0;_2L-=1){$_.i=_2L;var _2O=$g($_.msg,$_.i);if(_2O>=48&&_2O<=57){$p($_.numericruns,$_.i,$f($g($_.numericruns,$_.i+1)+1))}else{$p($_.numericruns,$_.i,0)}}$_.cws=$a($_.msglen*2+1);if(!bwipp_code49.__14961__){$_=Object.create($_);$_.samval=$a([12,22,13,23,33,14,24,34,44,15,25,35,45,55,16,26,36,46,56,66,17,27,37,47,57,67,77,18,28,38,48,58,68,78,88,19,29,39,49,59,69,79,89,99]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__14961__=1;$_=Object.getPrototypeOf($_)}for(;;){if($_.append){$_.mode=1;$_.method="alpha";$_.i=0;$_.j=0;break}if($_.sam!=-1){$_.mode=3;$k[$j++]=$_.cws;$k[$j++]=0;for(var _2d=0;_2d<=43;_2d+=1){$k[$j++]=_2d;if($g($_.samval,_2d)!=$_.sam){$j--}}var _2h=$k[--$j];var _2i=$k[--$j];$p($k[--$j],_2i,$f(_2h+1));$_.method="alpha";$_.i=0;$_.j=1;break}if($g($_.numericruns,0)>=5){$_.mode=2;$_.method="numeric";$_.i=0;$_.j=0;break}var _2p=$g($_.charvals,$g($_.msg,0));$k[$j++]=_2p;if($ne($t(_2p),"arraytype")){$j--;$_.mode=0;$_.method="alpha";$_.i=0;$_.j=0;break}var _2t=$g($k[--$j],0)==43?4:5;$_.mode=_2t;$p($_.cws,0,$g($g($_.charvals,$g($_.msg,0)),1));$_.method="alpha";$_.i=1;$_.j=1;break}for(;;){if($_.i==$_.msglen){break}for(;;){if($eq($_.method,"alpha")){if($g($_.numericruns,$_.i)>=5){$k[$j++]=$_.ns;$_.encodealpha();$_.method="numeric";break}$k[$j++]=$g($_.msg,$_.i);$_.encodealpha();$_.i=$_.i+1;break}if($eq($_.method,"numeric")){if($g($_.numericruns,$_.i)<5){$k[$j++]=$_.ns;$_.encodealpha();$_.method="alpha";break}$k[$j++]=$G($_.msg,$_.i,$g($_.numericruns,$_.i));$_.encodenumeric();$_.i=$f($_.i+$g($_.numericruns,$_.i));break}}}$_.cws=$G($_.cws,0,$_.j);if(!bwipp_code49.__15039__){$_=Object.create($_);$_.metrics=$a([$a([2,9]),$a([3,16]),$a([4,23]),$a([5,30]),$a([6,37]),$a([7,42]),$a([8,49])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__15039__=1;$_=Object.getPrototypeOf($_)}$_.urows=$_.rows;var _3d=$_.metrics;for(var _3e=0,_3f=_3d.length;_3e<_3f;_3e++){$_.m=$g(_3d,_3e);$_.r=$g($_.m,0);$_.dcws=$g($_.m,1);$_.okay=true;if($_.urows!=0&&$_.urows!=$_.r){$_.okay=false}if($_.cws.length>$_.dcws){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.code49noValidSymbol#15054";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$k[$j++]=Infinity;$q($_.cws);for(var _3v=0,_3w=$f($_.dcws-$_.cws.length);_3v<_3w;_3v++){$k[$j++]=48}$_.cws=$a();$_.ccs=$a($_.r*8);$_.j=0;for(var _42=0,_41=$f($_.r-2);_42<=_41;_42+=1){$_.i=_42;$_.cc=$G($_.cws,$_.j,7);$P($_.ccs,$_.i*8,$_.cc);var _4B=$_.cc;$k[$j++]=$_.ccs;$k[$j++]=$_.i*8+7;$k[$j++]=0;for(var _4C=0,_4D=_4B.length;_4C<_4D;_4C++){var _4F=$k[--$j];$k[$j++]=$f(_4F+$g(_4B,_4C))}var _4G=$k[--$j];var _4H=$k[--$j];$p($k[--$j],_4H,_4G%49);$_.j=$_.j+7}if($_.j<$_.dcws){$P($_.ccs,$_.ccs.length-8,$G($_.cws,$_.j,$f($_.dcws-$_.j)))}$_.cr7=$f($f($_.r-2)*7+$_.mode);$p($_.ccs,$_.ccs.length-2,$_.cr7);if(!bwipp_code49.__15085__){$_=Object.create($_);var _4Y=$a([1,9,31,26,2,12,17,23,37,18,22,6,27,44,15,43,39,11,13,5,41,33,36,8,4,32,3,19,40,25,29,10,24,30]);$k[$j++]=_4Y;$k[$j++]=_4Y;$k[$j++]=Infinity;var _4Z=$k[--$j];var _4b=$G($k[--$j],0,32);$k[$j++]=_4Z;$k[$j++]=20;$q(_4b);$_.weightx=$a();var _4d=$k[--$j];$k[$j++]=_4d;$k[$j++]=_4d;$k[$j++]=Infinity;var _4e=$k[--$j];var _4g=$G($k[--$j],1,32);$k[$j++]=_4e;$k[$j++]=16;$q(_4g);$_.weighty=$a();$k[$j++]=Infinity;var _4i=$k[--$j];var _4k=$G($k[--$j],2,32);$k[$j++]=_4i;$k[$j++]=38;$q(_4k);$_.weightz=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__15085__=1;$_=Object.getPrototypeOf($_)}$_.calccheck=function(){$_.weights=$k[--$j];$_.score=0;for(var _4q=0,_4p=~~($f($_.r-1)*8/2)-1;_4q<=_4p;_4q+=1){$_.i=_4q;$_.score=$f($f($g($_.ccs,$_.i*2)*49+$g($_.ccs,$_.i*2+1))*$g($_.weights,$_.i+1)+$_.score)}$k[$j++]=$_.score};$_.lastrow=$G($_.ccs,$_.ccs.length-8,8);if($_.r>=7){$k[$j++]=$_.cr7*$g($_.weightz,0);$k[$j++]=$_.weightz;$_.calccheck();var _5A=$k[--$j];var _5C=$f($k[--$j]+_5A)%2401;$k[$j++]=~~(_5C/49);$k[$j++]=_5C%49;$as($a(2));$P($_.lastrow,0,$k[--$j])}$_.wr1=$f($g($_.lastrow,0)*49+$g($_.lastrow,1));$k[$j++]=$_.cr7*$g($_.weighty,0);$k[$j++]=$_.weighty;$_.calccheck();var _5O=$k[--$j];var _5U=$f($f($k[--$j]+_5O)+$_.wr1*$g($_.weighty,$f($_.r*4-3)))%2401;$_.wr2=_5U;$k[$j++]=~~(_5U/49);$k[$j++]=_5U%49;$as($a(2));$P($_.lastrow,2,$k[--$j]);$k[$j++]=$_.cr7*$g($_.weightx,0);$k[$j++]=$_.weightx;$_.calccheck();var _5c=$k[--$j];var _5m=$f($f($f($k[--$j]+_5c)+$_.wr1*$g($_.weightx,$f($_.r*4-3)))+$_.wr2*$g($_.weightx,$f($_.r*4-2)))%2401;$k[$j++]=~~(_5m/49);$k[$j++]=_5m%49;$as($a(2));$P($_.lastrow,4,$k[--$j]);var _5s=$G($_.ccs,$_.ccs.length-8,7);$k[$j++]=0;for(var _5t=0,_5u=_5s.length;_5t<_5u;_5t++){var _5w=$k[--$j];$k[$j++]=$f(_5w+$g(_5s,_5t))}$p($_.ccs,$_.ccs.length-1,$k[--$j]%49);var _61=$g($_.options,"debugcws")!==undefined;if(_61){$k[$j++]="bwipp.debugcws#15125";$k[$j++]=$_.ccs;bwipp_raiseerror()}if(!bwipp_code49.__15823__){$_=Object.create($_);$_.patterns=$a([$a(["11521132","25112131","14212132","25121221","14221222","12412132","23321221","12421222","21521221","15112222","15121312","13312222","24221311","13321312","11512222","22421311","11521312","25112311","14212312","23312311","12412312","21512311","16121131","14321131","12521131","15212131","15221221","13412131","13421221","11612131","16112221","16121311","14312221","14321311","12512221","12521311","15212311","13412311","11612311","11131135","31131133","51131131","21122134","41122132","21131224","41131222","11113135","31113133","51113131","11122225","31122223","51122221","11131315","31131313","51131311","21113224","41113222","21122314","41122312","11113315","31113313","51113311","12131134","32131132","21231133","41231131","22122133","42122131","11222134","22131223","42131221","11231224","31231222","12113134","32113132","12122224","32122222","12131314","32131312","21231313","41231311","22113223","42113221","11213224","22122313","42122311","11222314","31222312","12113314","32113312","21213313","41213311","13131133","33131131","22231132","11331133","31331131","23122132","12222133","23131222","12231223","32231221","21331222","13113133","33113131","13122223","33122221","11313133","13131313","33131311","11322223","22231312","11331313","31331311","23113222","12213223","23122312","12222313","32222311","21322312","13113313","33113311","22213312","11313313","31313311","14131132","23231131","12331132","21431131","24122131","13222132","24131221","13231222","11422132","22331221","11431222","14113132","14122222","12313132","14131312","12322222","23231311","12331312","21431311","24113221","13213222","24122311","13222312","11413222","22322311","11422312","14113312","23213311","12313312","21413311","15131131","13331131","14222131","14231221","12422131","12431221","15113131","15122221","13313131","15131311","13322221","11513131","13331311","11522221","14213221","14222311","12413221","12422311","15113311","13313311","11513311","11141134","31141132","21132133","41132131","21141223","41141221","11123134","31123132","11132224","31132222","11141314","31141312","21114133","41114131","21123223","41123221","21132313","41132311","11114224","31114222","11123314","31123312","21114313","41114311","12141133","32141131","21241132","22132132","11232133","22141222","11241223","31241221","12123133","32123131","12132223","32132221","12141313","32141311","21241312","22114132","11214133","22123222","11223223","22132312","11232313","31232311","12114223","32114221","12123313","32123311","21223312","22114312","11214313","31214311","13141132","22241131","11341132","23132131","12232132","23141221","12241222","21341221","13123132","13132222","11323132","13141312","11332222","22241311","11341312","23114131","12214132","23123221","12223222","23132311","12232312","21332311","13114222","13123312","11314222","22223311","11323312","23114311","12214312","21314311","14141131","12341131","13232131","13241221","11432131","14123131","14132221","12323131","14141311","12332221","12341311","13214131","13223221","11414131","13232311","11423221","11432311","14114221","14123311","12314221","12323311","13214311","11414311","11151133","31151131","21142132","21151222","11133133","31133131","11142223","31142221","11151313","31151311","21124132","21133222","21142312","11115133","31115131","11124223","31124221","11133313","31133311","21115222","21124312","12151132","21251131","22142131","11242132","22151221","11251222","12133132","12142222","12151312","21251311","22124131","11224132","22133221","11233222","22142311","11242312","12115132","12124222","12133312","21233311","22115221","11215222","22124311","11224312","13151131","12242131","12251221","13133131","13142221","11333131","13151311","11342221","12224131","12233221","12242311","13115131","13124221","11315131","13133311","11324221","11333311","12215221","12224311","11161132","21152131","21161221","11143132","11152222","11161312","21134131","21143221","21152311","11125132","11134222","11143312","21116131","21125221","21134311","12161131","11252131","12143131","12152221","12161311","11234131","11243221","11252311","12125131","12134221","12143311","11216131","11225221","11234311","11111236","31111234","51111232","21111325","41111323","61111321","11111416","31111414","51111412","31211143","51211141","12111235","32111233","52111231","21211234","41211232","22111324","42111322","11211325","31211323","51211321","12111415","32111413","52111411","21211414","41211412","12211144","32211142","21311143","41311141","13111234","33111232","22211233","42211231","11311234","31311232","23111323","43111321","12211324","32211322","21311323","41311321","13111414","33111412","22211413","42211411","11311414","31311412","13211143","33211141","22311142","11411143","31411141","14111233","34111231","23211232","12311233","32311231","21411232","24111322","13211323","33211321","22311322","11411323","31411321","14111413","34111411","23211412","12311413","32311411","21411412","14211142","23311141","12411142","21511141","15111232","24211231","13311232","22411231","11511232","25111321","14211322","23311321","12411322","21511321","15111412","24211411","13311412","22411411","11511412","15211141","13411141","11611141","16111231","14311231","12511231","15211321","13411321","11611321","16111411","14311411","12511411","21121144","41121142","11112145","31112143","51112141","11121235","31121233","51121231","21112234","41112232","21121324","41121322","11112325","31112323","51112321","11121415","31121413","51121411","21112414","41112412","22121143","42121141","11221144","31221142","12112144","32112142","12121234","32121232","21221233","41221231","22112233","42112231","11212234","22121323","42121321","11221324","31221322","12112324","32112322","12121414","32121412","21221413","41221411","22112413","42112411","11212414","31212412","23121142","12221143","32221141","21321142","13112143","33112141","13121233","33121231","11312143","22221232","11321233","31321231","23112232","12212233","23121322","12221323","32221321","21321322","13112323","33112321","13121413","33121411","11312323","22221412","11321413","31321411","23112412","12212413","32212411","21312412","24121141","13221142","22321141","11421142","14112142","14121232","12312142","23221231","12321232","21421231","24112231","13212232","24121321","13221322","11412232","22321321","11421322","14112322","14121412","12312322","23221411","12321412","21421411","24112411","13212412","22312411","11412412","14221141","12421141","15112141","15121231","13312141","13321231","11512141","11521231","14212231","14221321","12412231","12421321","15112321","15121411","13312321","13321411","11512321","11521411","14212411","12412411","21131143","41131141","11122144","31122142","11131234","31131232","21113143","41113141","21122233","41122231","21131323","41131321","11113234","31113232","11122324","31122322","11131414","31131412","21113323","41113321","21122413","41122411","11113414","31113412","22131142","11231143","31231141","12122143","32122141","12131233","32131231","21231232","22113142","11213143","22122232","11222233","22131322","11231323","31231321","12113233","32113231","12122323","32122321","12131413","32131411","21231412","22113322","11213323","22122412","11222413","31222411","12113413","32113411","21213412","23131141","12231142","21331141","13122142","13131232","11322142","22231231","11331232","23113141","12213142","23122231","12222232","23131321","12231322","21331321","13113232","13122322","11313232","13131412","11322322","22231411","11331412","23113321","12213322","23122411","12222412","21322411","13113412","22213411","11313412","13231141","11431141","14122141","14131231","12322141","12331231","13213141","13222231","11413141","13231321","11422231","11431321","14113231","14122321","12313231","14131411","12322321","12331411","13213321","13222411","11413321","11422411","14113411","12313411","21141142","11132143","31132141","11141233","31141231","21123142","21132232","21141322","11114143","31114141","11123233","31123231","11132323","31132321","11141413","31141411","21114232","21123322","21132412","11114323","31114321","11123413","31123411","22141141","11241142","12132142","12141232","21241231","22123141","11223142","22132231","11232232","22141321","11241322","12114142","12123232","12132322","12141412","21241411","22114231","11214232","22123321","11223322","22132411","11232412","12114322","12123412","21223411","12241141","13132141","13141231","11332141","11341231","12223141","12232231","12241321","13114141","13123231","11314141","13132321","11323231","13141411","11332321","11341411","12214231","12223321","12232411","13114321","13123411","11314321","11323411","21151141","11142142","11151232","21133141","21142231","21151321","11124142","11133232","11142322","11151412","21115141","21124231","21133321","21142411","11115232","11124322","11133412","11251141","12142141","12151231","11233141","11242231","11251321","12124141","12133231","12142321","12151411","11215141","11224231","11233321","11242411","12115231","12124321","12133411","11152141","11161231","11134141","11143231","11152321","11161411","11116141","11125231","11134321","11143411","21111244","41111242","11111335","31111333","51111331","21111424","41111422","11111515","31111513","51111511","21211153","41211151","22111243","42111241","11211244","31211242","12111334","32111332","21211333","41211331","22111423","42111421","11211424","31211422","12111514","32111512","21211513","41211511","22211152","11311153","31311151","23111242","12211243","32211241","21311242","13111333","33111331","22211332","11311333","31311331","23111422","12211423","32211421","21311422","13111513","33111511","22211512","11311513","31311511","23211151","12311152","21411151","24111241","13211242","22311241","11411242","14111332","23211331","12311332","21411331","24111421","13211422","22311421","11411422","14111512","23211511","12311512","21411511","13311151","11511151","14211241","12411241","15111331","13311331","11511331","14211421","12411421","15111511","13311511","11511511","31121152","21112153","41112151","21121243","41121241","11112244","31112242","11121334","31121332","21112333","41112331","21121423","41121421","11112424","31112422","11121514","31121512","21112513","41112511","12121153","32121151","21221152","22112152","11212153","22121242","11221243","31221241","12112243","32112241","12121333","32121331","21221332","22112332","11212333","22121422","11221423","31221421","12112423","32112421","12121513","32121511","21221512","22112512","11212513","31212511","13121152","22221151","11321152","23112151","12212152","23121241","12221242","21321241","13112242","13121332","11312242","22221331","11321332","23112331","12212332","23121421","12221422","21321421","13112422","13121512","11312422","22221511","11321512","23112511","12212512","21312511","14121151","12321151","13212151","13221241","11412151","11421241","14112241","14121331","12312241","12321331","13212331","13221421","11412331","11421421","14112421","14121511","12312421","12321511","13212511","11412511","11131153","31131151","21122152","21131242","11113153","31113151","11122243","31122241","11131333","31131331","21113242","21122332","21131422","11113333","31113331","11122423","31122421","11131513","31131511","21113422","21122512","12131152","21231151","22122151","11222152","22131241","11231242","12113152","12122242","12131332","21231331","22113241","11213242","22122331","11222332","22131421","11231422","12113332","12122422","12131512","21231511","22113421","11213422","22122511","11222512","13131151","11331151","12222151","12231241","13113151","13122241","11313151","13131331","11322241","11331331","12213241","12222331","12231421","13113331","13122421","11313331","13131511","11322421","11331511","12213421","12222511","11141152","21132151","21141241","11123152","11132242","11141332","21114151","21123241","21132331","21141421","11114242","11123332","11132422","11141512","21114331","21123421","21132511","12141151","11232151","11241241","12123151","12132241","12141331","11214151","11223241","11232331","11241421","12114241","12123331","12132421","12141511","11214331","11223421","11232511","11151151","11133151","11142241","11151331","11115151","11124241","11133331","11142421","11151511","11111254","31111252","21111343","41111341","11111434","31111432","21111523","41111521","11111614","31111612","31211161","12111253","32111251","21211252","22111342","11211343","31211341","12111433","32111431","21211432","22111522","11211523","31211521","12111613","32111611","21211612","12211162","21311161","13111252","22211251","11311252","23111341","12211342","21311341","13111432","22211431","11311432","23111521","12211522","21311521","13111612","22211611","11311612","13211161","11411161","14111251","12311251","13211341","11411341","14111431","12311431","13211521","11411521","14111611","12311611","21121162","11112163","31112161","11121253","31121251","21112252","21121342","11112343","31112341","11121433","31121431","21112432","21121522","11112523","31112521","11121613","31121611","22121161","11221162","12112162","12121252","21221251","22112251","11212252","22121341","11221342","12112342","12121432","21221431","22112431","11212432","22121521","11221522","12112522","12121612","21221611","12221161","13112161","13121251","11312161","11321251","32121115","52121113","21221116","41221114","61221112","22112116","42112114","31212115","51212113","13121116","33121114","22221115","42221113","11321116","31321114","51321112","23112115","43112113","12212116","32212114","52212112","21312115","41312113","61312111","14121115","34121113","23221114","43221112","12321115","32321113","52321111","21421114","41421112","24112114","13212115","33212113","22312114","42312112","11412115","31412113","51412111","15121114","24221113","13321114","33321112","22421113","42421111","11521114","31521112","25112113","14212114","34212112","23312113","43312111","12412114","32412112","21512113","41512111","16121113","25221112","14321113","34321111","23421112","12521113","32521111","15212113","24312112","13412113","33412111","22512112","11612113","31612111","31131115","51131113","21122116","41122114","61122112","31113115","51113113","12131116","32131114","52131112","21231115","41231113","61231111","22122115","42122113","11222116","31222114","51222112","12113116","32113114","52113112","21213115","41213113","61213111","13131115","33131113","22231114","42231112","11331115","31331113","51331111","23122114","43122112","12222115","32222113","52222111","21322114","41322112","13113115","33113113","22213114","42213112","11313115","31313113","51313111","14131114","34131112","23231113","43231111","12331114","32331112","21431113","41431111","24122113","13222114","33222112","22322113","42322111","11422114","31422112","14113114","34113112","23213113","43213111","12313114","32313112","21413113","41413111","15131113","24231112","13331113","33331111","22431112","25122112","14222113","34222111","23322112","12422113","32422111","21522112","15113113","24213112","13313113","33313111","22413112","11513113","31513111","16131112","25231111","14331112","23431111","15222112","24322111","13422112","22522111","16113112","25213111","14313112","23413111","12513112","21613111","11141116","31141114","51141112","21132115","41132113","61132111","11123116","31123114","51123112","21114115","41114113","61114111","12141115","32141113","52141111","21241114","41241112","22132114","42132112","11232115","31232113","51232111","12123115","32123113","52123111","21223114","41223112","22114114","42114112","11214115","31214113","51214111","13141114","33141112","22241113","42241111","11341114","31341112","23132113","43132111","12232114","32232112","21332113","41332111","13123114","33123112","22223113","42223111","11323114","31323112","23114113","43114111","12214114","32214112","21314113","41314111","14141113","34141111","23241112","12341113","32341111","24132112","13232113","33232111","22332112","11432113","31432111","14123113","34123111","23223112","12323113","32323111","21423112","24114112","13214113","33214111","22314112","11414113","31414111","15141112","24241111","13341112","25132111","14232112","23332111","12432112","15123112","24223111","13323112","22423111","11523112","25114111","14214112","23314111","12414112","21514111","16141111","14341111","15232111","13432111","16123111","14323111","12523111","15214111","13414111","11614111","11151115","31151113","51151111","21142114","41142112","11133115","31133113","51133111","21124114","41124112","11115115","31115113","51115111","12151114","32151112","21251113","41251111","22142113","42142111","11242114","31242112","12133114","32133112","21233113","41233111","22124113","42124111","11224114","31224112","12115114","32115112","21215113","41215111","13151113","33151111","22251112","23142112","12242113","32242111","21342112","13133113","33133111","22233112","11333113","31333111","23124112","12224113","32224111","21324112","13115113","33115111","22215112","11315113","31315111","14151112","23251111","24142111","13242112","22342111","14133112","23233111","12333112","21433111","24124111","13224112","22324111","11424112","14115112","23215111","12315112","21415111","15151111","14242111","15133111","13333111","14224111","12424111","15115111","13315111","11515111","11161114","31161112","21152113","41152111","11143114","31143112","21134113","41134111","11125114","31125112","21116113","41116111","12161113","32161111","22152112","11252113","31252111","12143113","32143111","21243112","22134112","11234113","31234111","12125113","32125111","21225112","22116112","11216113","31216111","13161112","23152111","12252112","13143112","22243111","11343112","23134111","12234112","21334111","13125112","22225111","11325112","23116111","12216112","21316111","14161111","13252111","14143111","12343111","13234111","11434111","14125111","12325111","13216111","11416111","31111216","51111214","31211125","51211123","32111215","52111213","21211216","41211214","61211212","12211126","32211124","52211122","21311125","41311123","61311121","13111216","33111214","22211215","42211213","11311216","31311214","51311212","13211125","33211123","22311124","42311122","11411125","31411123","51411121","14111215","34111213","23211214","43211212","12311215","32311213","52311211","21411214","41411212","14211124","34211122","23311123","43311121","12411124","32411122","21511123","41511121","15111214","24211213","13311214","33311212","22411213","42411211","11511214","31511212","15211123","24311122","13411123","33411121","22511122","11611123","31611121","16111213","25211212","14311213","34311211","23411212","12511213","32511211","21611212","21121126","41121124","61121122","31112125","51112123","31121215","51121213","21112216","41112214","61112212","22121125","42121123","11221126","31221124","51221122","12112126","32112124","52112122","12121216","32121214","52121212","21221215","41221213","61221211","22112215","42112213","11212216","31212214","51212212","23121124","43121122","12221125","32221123","52221121","21321124","41321122","13112125","33112123","13121215","33121213","11312125","22221214","42221212","11321215","31321213","51321211","23112214","43112212","12212215","32212213","52212211","21312214","41312212","24121123","13221124","33221122","22321123","42321121","11421124","31421122","14112124","34112122","14121214","34121212","12312124","23221213","43221211","12321214","32321212","21421213","41421211","24112213","13212214","33212212","22312213","42312211","11412214","31412212","25121122","14221123","34221121","23321122","12421123","32421121","21521122","15112123","15121213","13312123","24221212","13321213","33321211","11512123","22421212","11521213","31521211","25112212","14212213","34212211","23312212","12412213","32412211","21512212","15221122","24321121","13421122","22521121","16112122","16121212","14312122","25221211","14321212","12512122","23421211","12521212","15212212","24312211","13412212","22512211","11612212","21131125","41131123","61131121","11122126","31122124","51122122","11131216","31131214","51131212","21113125","41113123","61113121","21122215","41122213","61122211","11113216","31113214","51113212","22131124","42131122","11231125","31231123","51231121","12122125","32122123","52122121","12131215","32131213","52131211","21231214","41231212","22113124","42113122","11213125","22122214","42122212","11222215","31222213","51222211","12113215","32113213","52113211","21213214","41213212","23131123","43131121","12231124","32231122","21331123","41331121","13122124","33122122","13131214","33131212","11322124","22231213","42231211","11331214","31331212","23113123","43113121","12213124","23122213","43122211","12222214","32222212","21322213","41322211","13113214","33113212","22213213","42213211","11313214","31313212","24131122","13231123","33231121","22331122","11431123","31431121","14122123","34122121","14131213","34131211","12322123","23231212","12331213","32331211","21431212","24113122","13213123","24122212","13222213","33222211","11413123","22322212","11422213","31422211","14113213","34113211","23213212","12313213","32313211","21413212","25131121","14231122","23331121","12431122","15122122","15131212","13322122","24231211","13331212","11522122","22431211","25113121","14213122","25122211","14222212","12413122","23322211","12422212","21522211","15113212","24213211","13313212","22413211","11513212","15231121","13431121","16122121","16131211","14322121","14331211","12522121","15213121","15222211","13413121","13422211","11613121","16113211","14313211","12513211","21141124","41141122","11132125","31132123","51132121","11141215","31141213","51141211","21123124","41123122","21132214","41132212","11114125","31114123","51114121","11123215","31123213","51123211","21114214","41114212","22141123","42141121","11241124","31241122","12132124","32132122","12141214","32141212","21241213","41241211","22123123","42123121","11223124","22132213","42132211","11232214","31232212","12114124","32114122","12123214","32123212","21223213","41223211","22114213","42114211","11214214","31214212","23141122","12241123","32241121","21341122","13132123","33132121","13141213","33141211","11332123","22241212","11341213","31341211","23123122","12223123","23132212","12232213","32232211","21332212","13114123","33114121","13123213","33123211","11314123","22223212","11323213","31323211","23114212","12214213","32214211","21314212","24141121","13241122","22341121","14132122","14141212","12332122","23241211","12341212","24123121","13223122","24132211","13232212","11423122","22332211","11432212","14114122","14123212","12314122","23223211","12323212","21423211","24114211","13214212","22314211","11414212","14241121","15132121","15141211","13332121","13341211","14223121","14232211","12423121","12432211","15114121","15123211","13314121","13323211","11514121","11523211","14214211","12414211","21151123","41151121","11142124","31142122","11151214","31151212","21133123","41133121","21142213","41142211","11124124","31124122","11133214","31133212","21115123","41115121","21124213","41124211","11115214","31115212","22151122","11251123","31251121","12142123","32142121","12151213","32151211","21251212","22133122","11233123","22142212","11242213","31242211","12124123","32124121","12133213","32133211","21233212","22115122","11215123","22124212","11224213","31224211","12115213","32115211","21215212","23151121","12251122","13142122","13151212","11342122","22251211","23133121","12233122","23142211","12242212","21342211","13124122","13133212","11324122","22233211","11333212","23115121","12215122","23124211","12224212","21324211","13115212","22215211","11315212","13251121","14142121","14151211","12342121","13233121","13242211","11433121","14124121","14133211","12324121","12333211","13215121","13224211","11415121","11424211","14115211","12315211","21161122","11152123","31152121","11161213","31161211","21143122","21152212","11134123","31134121","11143213","31143211","21125122","21134212","11116123","31116121","11125213","31125211","22161121","12152122","12161212","22143121","11243122","22152211","11252212","12134122","12143212","21243211","22125121","11225122","22134211","11234212","12116122","12125212","21225211","13152121","13161211","12243121","12252211","13134121","13143211","11334121","11343211","12225121","12234211","13116121","13125211","11316121","11325211","21111226","41111224","61111222","31111315","51111313","21211135","41211133","61211131","22111225","42111223","11211226","31211224","51211222","12111316","32111314","52111312","21211315","41211313","61211311","22211134","42211132","11311135","31311133","51311131","23111224","43111222","12211225","32211223","52211221","21311224","41311222","13111315","33111313","22211314","42211312","11311315","31311313","51311311","23211133","43211131","12311134","32311132","21411133","41411131","24111223","13211224","33211222","22311223","42311221","11411224","31411222","14111314","34111312","23211313","43211311","12311314","32311312","21411313","41411311","24211132","13311133","33311131","22411132","11511133","31511131","25111222","14211223","34211221","23311222","12411223","32411221","21511222","15111313","24211312","13311313","33311311","22411312","11511313","31511311","25211131","14311132","23411131","12511132","21611131","15211222","24311221","13411222","22511221","11611222","16111312","25211311","14311312","23411311","12511312","21611311","31121134","51121132","21112135","41112133","61112131","21121225","41121223","61121221","11112226","31112224","51112222","11121316","31121314","51121312","21112315","41112313","61112311","12121135","32121133","52121131","21221134","41221132","22112134","42112132","11212135","22121224","42121222","11221225","31221223","51221221","12112225","32112223","52112221","12121315","32121313","52121311","21221314","41221312","22112314","42112312","11212315","31212313","51212311","13121134","33121132","22221133","42221131","11321134","31321132","23112133","43112131","12212134","23121223","43121221","12221224","32221222","21321223","41321221","13112224","33112222","13121314","33121312","11312224","22221313","42221311","11321314","31321312","23112313","43112311","12212314","32212312","21312313","41312311","14121133","34121131","23221132","12321133","32321131","21421132","24112132","13212133","24121222","13221223","33221221","11412133","22321222","11421223","31421221","14112223","34112221","14121313","34121311","12312223","23221312","12321313","32321311","21421312","24112312","13212313","33212311","22312312","11412313","31412311","15121132","24221131","13321132","22421131"]),$a(["22121116","42121114","31221115","51221113","32112115","52112113","21212116","41212114","61212112","23121115","43121113","12221116","32221114","52221112","21321115","41321113","61321111","13112116","33112114","22212115","42212113","11312116","31312114","51312112","24121114","13221115","33221113","22321114","42321112","11421115","31421113","51421111","14112115","34112113","23212114","43212112","12312115","32312113","52312111","21412114","41412112","25121113","14221114","34221112","23321113","43321111","12421114","32421112","21521113","41521111","15112114","24212113","13312114","33312112","22412113","42412111","11512114","31512112","15221113","24321112","13421113","33421111","22521112","16112113","25212112","14312113","34312111","23412112","12512113","32512111","21612112","21131116","41131114","61131112","31122115","51122113","21113116","41113114","61113112","22131115","42131113","11231116","31231114","51231112","12122116","32122114","52122112","21222115","41222113","61222111","22113115","42113113","11213116","31213114","51213112","23131114","43131112","12231115","32231113","52231111","21331114","41331112","13122115","33122113","22222114","42222112","11322115","31322113","51322111","23113114","43113112","12213115","32213113","52213111","21313114","41313112","24131113","13231114","33231112","22331113","42331111","11431114","31431112","14122114","34122112","23222113","43222111","12322114","32322112","21422113","41422111","24113113","13213114","33213112","22313113","42313111","11413114","31413112","25131112","14231113","34231111","23331112","12431113","32431111","15122113","24222112","13322113","33322111","22422112","11522113","31522111","25113112","14213113","34213111","23313112","12413113","32413111","21513112","15231112","24331111","13431112","16122112","25222111","14322112","23422111","12522112","15213112","24313111","13413112","22513111","11613112","21141115","41141113","61141111","11132116","31132114","51132112","21123115","41123113","61123111","11114116","31114114","51114112","22141114","42141112","11241115","31241113","51241111","12132115","32132113","52132111","21232114","41232112","22123114","42123112","11223115","31223113","51223111","12114115","32114113","52114111","21214114","41214112","23141113","43141111","12241114","32241112","21341113","41341111","13132114","33132112","22232113","42232111","11332114","31332112","23123113","43123111","12223114","32223112","21323113","41323111","13114114","33114112","22214113","42214111","11314114","31314112","24141112","13241113","33241111","22341112","14132113","34132111","23232112","12332113","32332111","21432112","24123112","13223113","33223111","22323112","11423113","31423111","14114113","34114111","23214112","12314113","32314111","21414112","25141111","14241112","23341111","15132112","24232111","13332112","22432111","25123111","14223112","23323111","12423112","21523111","15114112","24214111","13314112","22414111","11514112","15241111","16132111","14332111","15223111","13423111","16114111","14314111","12514111","21151114","41151112","11142115","31142113","51142111","21133114","41133112","11124115","31124113","51124111","21115114","41115112","22151113","42151111","11251114","31251112","12142114","32142112","21242113","41242111","22133113","42133111","11233114","31233112","12124114","32124112","21224113","41224111","22115113","42115111","11215114","31215112","23151112","12251113","32251111","13142113","33142111","22242112","11342113","31342111","23133112","12233113","32233111","21333112","13124113","33124111","22224112","11324113","31324111","23115112","12215113","32215111","21315112","24151111","13251112","14142112","23242111","12342112","24133111","13233112","22333111","11433112","14124112","23224111","12324112","21424111","24115111","13215112","22315111","11415112","14251111","15142111","13342111","14233111","12433111","15124111","13324111","11524111","14215111","12415111","21161113","41161111","11152114","31152112","21143113","41143111","11134114","31134112","21125113","41125111","11116114","31116112","22161112","12152113","32152111","21252112","22143112","11243113","31243111","12134113","32134111","21234112","22125112","11225113","31225111","12116113","32116111","21216112","23161111","13152112","22252111","23143111","12243112","21343111","13134112","22234111","11334112","23125111","12225112","21325111","13116112","22216111","11316112","14152111","13243111","14134111","12334111","13225111","11425111","14116111","12316111","41111215","61111213","21211126","41211124","61211122","22111216","42111214","31211215","51211213","22211125","42211123","11311126","31311124","51311122","23111215","43111213","12211216","32211214","52211212","21311215","41311213","61311211","23211124","43211122","12311125","32311123","52311121","21411124","41411122","24111214","13211215","33211213","22311214","42311212","11411215","31411213","51411211","24211123","13311124","33311122","22411123","42411121","11511124","31511122","25111213","14211214","34211212","23311213","43311211","12411214","32411212","21511213","41511211","25211122","14311123","34311121","23411122","12511123","32511121","21611122","15211213","24311212","13411213","33411211","22511212","11611213","31611211","31121125","51121123","21112126","41112124","61112122","21121216","41121214","61121212","31112215","51112213","12121126","32121124","52121122","21221125","41221123","61221121","22112125","42112123","11212126","22121215","42121213","11221216","31221214","51221212","12112216","32112214","52112212","21212215","41212213","61212211","13121125","33121123","22221124","42221122","11321125","31321123","51321121","23112124","43112122","12212125","23121214","43121212","12221215","32221213","52221211","21321214","41321212","13112215","33112213","22212214","42212212","11312215","31312213","51312211","14121124","34121122","23221123","43221121","12321124","32321122","21421123","41421121","24112123","13212124","24121213","13221214","33221212","11412124","22321213","42321211","11421214","31421212","14112214","34112212","23212213","43212211","12312214","32312212","21412213","41412211","15121123","24221122","13321123","33321121","22421122","11521123","31521121","25112122","14212123","25121212","14221213","34221211","12412123","23321212","12421213","32421211","21521212","15112213","24212212","13312213","33312211","22412212","11512213","31512211","16121122","25221121","14321122","23421121","12521122","15212122","15221212","13412122","24321211","13421212","11612122","22521211","16112212","25212211","14312212","23412211","12512212","21612211","11131126","31131124","51131122","21122125","41122123","61122121","21131215","41131213","61131211","11113126","31113124","51113122","11122216","31122214","51122212","21113215","41113213","61113211","12131125","32131123","52131121","21231124","41231122","22122124","42122122","11222125","22131214","42131212","11231215","31231213","51231211","12113125","32113123","52113121","12122215","32122213","52122211","21222214","41222212","22113214","42113212","11213215","31213213","51213211","13131124","33131122","22231123","42231121","11331124","31331122","23122123","43122121","12222124","23131213","43131211","12231214","32231212","21331213","41331211","13113124","33113122","13122214","33122212","11313124","22222213","42222211","11322214","31322212","23113213","43113211","12213214","32213212","21313213","41313211","14131123","34131121","23231122","12331123","32331121","21431122","24122122","13222123","24131212","13231213","33231211","11422123","22331212","11431213","31431211","14113123","34113121","14122213","34122211","12313123","23222212","12322213","32322211","21422212","24113212","13213213","33213211","22313212","11413213","31413211","15131122","24231121","13331122","22431121","25122121","14222122","25131211","14231212","12422122","23331211","12431212","15113122","15122212","13313122","24222211","13322212","11513122","22422211","11522212","25113211","14213212","23313211","12413212","21513211","16131121","14331121","15222121","15231211","13422121","13431211","16113121","16122211","14313121","14322211","12513121","12522211","15213211","13413211","11613211","11141125","31141123","51141121","21132124","41132122","21141214","41141212","11123125","31123123","51123121","11132215","31132213","51132211","21114124","41114122","21123214","41123212","11114215","31114213","51114211","12141124","32141122","21241123","41241121","22132123","42132121","11232124","22141213","42141211","11241214","31241212","12123124","32123122","12132214","32132212","21232213","41232211","22114123","42114121","11214124","22123213","42123211","11223214","31223212","12114214","32114212","21214213","41214211","13141123","33141121","22241122","11341123","31341121","23132122","12232123","23141212","12241213","32241211","21341212","13123123","33123121","13132213","33132211","11323123","22232212","11332213","31332211","23114122","12214123","23123212","12223213","32223211","21323212","13114213","33114211","22214212","11314213","31314211","14141122","23241121","12341122","24132121","13232122","24141211","13241212","11432122","22341211","14123122","14132212","12323122","23232211","12332212","21432211","24114121","13214122","24123211","13223212","11414122","22323211","11423212","14114212","23214211","12314212","21414211","15141121","13341121","14232121","14241211","12432121","15123121","15132211","13323121","13332211","11523121","14214121","14223211","12414121","12423211","15114211","13314211","11514211","11151124","31151122","21142123","41142121","21151213","41151211","11133124","31133122","11142214","31142212","21124123","41124121","21133213","41133211","11115124","31115122","11124214","31124212","21115213","41115211","12151123","32151121","21251122","22142122","11242123","22151212","11251213","31251211","12133123","32133121","12142213","32142211","21242212","22124122","11224123","22133212","11233213","31233211","12115123","32115121","12124213","32124211","21224212","22115212","11215213","31215211","13151122","22251121","23142121","12242122","23151211","12251212","13133122","13142212","11333122","22242211","11342212","23124121","12224122","23133211","12233212","21333211","13115122","13124212","11315122","22224211","11324212","23115211","12215212","21315211","14151121","13242121","13251211","14133121","14142211","12333121","12342211","13224121","13233211","11424121","11433211","14115121","14124211","12315121","12324211","13215211","11415211","11161123","31161121","21152122","21161212","11143123","31143121","11152213","31152211","21134122","21143212","11125123","31125121","11134213","31134211","21116122","21125212","12161122","22152121","11252122","22161211","12143122","12152212","21252211","22134121","11234122","22143211","11243212","12125122","12134212","21234211","22116121","11216122","22125211","11225212","13161121","12252121","13143121","13152211","11343121","12234121","12243211","13125121","13134211","11325121","11334211","12216121","12225211","31111225","51111223","21111316","41111314","61111312","31211134","51211132","12111226","32111224","52111222","21211225","41211223","61211221","22111315","42111313","11211316","31211314","51211312","12211135","32211133","52211131","21311134","41311132","13111225","33111223","22211224","42211222","11311225","31311223","51311221","23111314","43111312","12211315","32211313","52211311","21311314","41311312","13211134","33211132","22311133","42311131","11411134","31411132","14111224","34111222","23211223","43211221","12311224","32311222","21411223","41411221","24111313","13211314","33211312","22311313","42311311","11411314","31411312","14211133","34211131","23311132","12411133","32411131","21511132","15111223","24211222","13311223","33311221","22411222","11511223","31511221","25111312","14211313","34211311","23311312","12411313","32411311","21511312","15211132","24311131","13411132","22511131","11611132","16111222","25211221","14311222","23411221","12511222","21611221","15211312","24311311","13411312","22511311","11611312","21121135","41121133","61121131","11112136","31112134","51112132","11121226","31121224","51121222","21112225","41112223","61112221","21121315","41121313","61121311","11112316","31112314","51112312","22121134","42121132","11221135","31221133","51221131","12112135","32112133","52112131","12121225","32121223","52121221","21221224","41221222","22112224","42112222","11212225","22121314","42121312","11221315","31221313","51221311","12112315","32112313","52112311","21212314","41212312","23121133","43121131","12221134","32221132","21321133","41321131","13112134","33112132","13121224","33121222","11312134","22221223","42221221","11321224","31321222","23112223","43112221","12212224","23121313","43121311","12221314","32221312","21321313","41321311","13112314","33112312","22212313","42212311","11312314","31312312","24121132","13221133","33221131","22321132","11421133","31421131","14112133","34112131","14121223","34121221","12312133","23221222","12321223","32321221","21421222","24112222","13212223","24121312","13221313","33221311","11412223","22321312","11421313","31421311","14112313","34112311","23212312","12312313","32312311","21412312","25121131","14221132","23321131","12421132","21521131","15112132","15121222","13312132","24221221","13321222","11512132","22421221","11521222","25112221","14212222","25121311","14221312","12412222","23321311","12421312","21521311","15112312","24212311","13312312","22412311","11512312","15221131","13421131","16112131","16121221","14312131","14321221","12512131","12521221","15212221","15221311","13412221","13421311","11612221","16112311","14312311","12512311","21131134","41131132","11122135","31122133","51122131","11131225","31131223","51131221","21113134","41113132","21122224","41122222","21131314","41131312","11113225","31113223","51113221","11122315","31122313","51122311","21113314","41113312","22131133","42131131","11231134","31231132","12122134","32122132","12131224","32131222","21231223","41231221","22113133","42113131","11213134","22122223","42122221","11222224","22131313","42131311","11231314","31231312","12113224","32113222","12122314","32122312","21222313","41222311","22113313","42113311","11213314","31213312","23131132","12231133","32231131","21331132","13122133","33122131","13131223","33131221","11322133","22231222","11331223","31331221","23113132","12213133","23122222","12222223","23131312","12231313","32231311","21331312","13113223","33113221","13122313","33122311","11313223","22222312","11322313","31322311","23113312","12213313","32213311","21313312","24131131","13231132","22331131","11431132","14122132","14131222","12322132","23231221","12331222","21431221","24113131","13213132","24122221","13222222","24131311","11413132","13231312","11422222","22331311","11431312","14113222","14122312","12313222","23222311","12322312","21422311","24113311","13213312","22313311","11413312","14231131","12431131","15122131","15131221","13322131","13331221","11522131","14213131","14222221","12413131","14231311","12422221","12431311","15113221","15122311","13313221","13322311","11513221","11522311","14213311","12413311","21141133","41141131","11132134","31132132","11141224","31141222","21123133","41123131","21132223","41132221","21141313","41141311","11114134","31114132","11123224","31123222","11132314","31132312","21114223","41114221","21123313","41123311","11114314","31114312","22141132","11241133","31241131","12132133","32132131","12141223","32141221","21241222","22123132","11223133","22132222","11232223","22141312","11241313","31241311","12114133","32114131","12123223","32123221","12132313","32132311","21232312","22114222","11214223","22123312","11223313","31223311","12114313","32114311","21214312","23141131","12241132","21341131","13132132","13141222","11332132","22241221","11341222","23123131","12223132","23132221","12232222","23141311","12241312","21341311","13114132","13123222","11314132","13132312","11323222","22232311","11332312","23114221","12214222","23123311","12223312","21323311","13114312","22214311","11314312","13241131","14132131","14141221","12332131","12341221","13223131","13232221","11423131","13241311","11432221","14114131","14123221","12314131","14132311","12323221","12332311","13214221","13223311","11414221","11423311","14114311","12314311","21151132","11142133","31142131","11151223","31151221","21133132","21142222","21151312","11124133","31124131","11133223","31133221","11142313","31142311","21115132","21124222","21133312","11115223","31115221","11124313","31124311","22151131","11251132","12142132","12151222","21251221","22133131","11233132","22142221","11242222","22151311","11251312","12124132","12133222","12142312","21242311","22115131","11215132","22124221","11224222","22133311","11233312","12115222","12124312","21224311","12251131","13142131","13151221","11342131","12233131","12242221","12251311","13124131","13133221","11324131","13142311","11333221","11342311","12215131","12224221","12233311","13115221","13124311","11315221","11324311","21161131","11152132","11161222","21143131","21152221","21161311","11134132","11143222","11152312","21125131","21134221","21143311","11116132","11125222","11134312","12152131","12161221","11243131","11252221","12134131","12143221","12152311","11225131","11234221","11243311","12116131","12125221","12134311","21111235","41111233","61111231","11111326","31111324","51111322","21111415","41111413","61111411","21211144","41211142","22111234","42111232","11211235","31211233","51211231","12111325","32111323","52111321","21211324","41211322","22111414","42111412","11211415","31211413","51211411","22211143","42211141","11311144","31311142","23111233","43111231","12211234","32211232","21311233","41311231","13111324","33111322","22211323","42211321","11311324","31311322","23111413","43111411","12211414","32211412","21311413","41311411","23211142","12311143","32311141","21411142","24111232","13211233","33211231","22311232","11411233","31411231","14111323","34111321","23211322","12311323","32311321","21411322","24111412","13211413","33211411","22311412","11411413","31411411","24211141","13311142","22411141","11511142","25111231","14211232","23311231","12411232","21511231","15111322","24211321","13311322","22411321","11511322","25111411","14211412","23311411","12411412","21511411","14311141","12511141","15211231","13411231","11611231","16111321","14311321","12511321","15211411","13411411","11611411","31121143","51121141","21112144","41112142","21121234","41121232","11112235","31112233","51112231","11121325","31121323","51121321","21112324","41112322","21121414","41121412","11112415","31112413","51112411","12121144","32121142","21221143","41221141","22112143","42112141","11212144","22121233","42121231","11221234","31221232","12112234","32112232","12121324","32121322","21221323","41221321","22112323","42112321","11212324","22121413","42121411","11221414","31221412","12112414","32112412","21212413","41212411","13121143","33121141","22221142","11321143","31321141","23112142","12212143","23121232","12221233","32221231","21321232","13112233","33112231","13121323","33121321","11312233","22221322","11321323","31321321","23112322","12212323","23121412","12221413","32221411","21321412","13112413","33112411","22212412","11312413","31312411","14121142","23221141","12321142","21421141","24112141","13212142","24121231","13221232","11412142","22321231","11421232","14112232","14121322","12312232","23221321","12321322","21421321","24112321","13212322","24121411","13221412","11412322","22321411","11421412","14112412","23212411","12312412","21412411","15121141","13321141","11521141","14212141","14221231","12412141","12421231","15112231","15121321","13312231","13321321","11512231","11521321","14212321","14221411","12412321","12421411","15112411","13312411","11512411","11131144","31131142","21122143","41122141","21131233","41131231","11113144","31113142","11122234","31122232","11131324","31131322","21113233","41113231","21122323","41122321","21131413","41131411","11113324","31113322","11122414","31122412","21113413","41113411","12131143","32131141","21231142","22122142","11222143","22131232","11231233","31231231","12113143","32113141","12122233","32122231","12131323","32131321","21231322","22113232","11213233","22122322","11222323","22131412","11231413","31231411","12113323","32113321","12122413","32122411","21222412","22113412","11213413","31213411","13131142","22231141","11331142","23122141","12222142","23131231","12231232","21331231","13113142","13122232","11313142","13131322","11322232","22231321","11331322","23113231","12213232","23122321","12222322","23131411","12231412","21331411","13113322","13122412","11313322","22222411","11322412","23113411","12213412","21313411","14131141","12331141","13222141","13231231","11422141","11431231","14113141","14122231","12313141","14131321","12322231","12331321","13213231","13222321","11413231","13231411","11422321","11431411","14113321","14122411","12313321","12322411","13213411","11413411","11141143","31141141","21132142","21141232","11123143","31123141","11132233","31132231","11141323","31141321","21114142","21123232","21132322","21141412","11114233","31114231","11123323","31123321","11132413","31132411","21114322","21123412","12141142","21241141","22132141","11232142","22141231","11241232","12123142","12132232","12141322","21241321","22114141","11214142","22123231","11223232","22132321","11232322","22141411","11241412","12114232","12123322","12132412","21232411","22114321","11214322","22123411","11223412","13141141","11341141","12232141","12241231","13123141","13132231","11323141","13141321","11332231","11341321","12214141","12223231","12232321","12241411","13114231","13123321","11314231","13132411","11323321","11332411","12214321","12223411","11151142","21142141","21151231","11133142","11142232","11151322","21124141","21133231","21142321","21151411","11115142","11124232","11133322","11142412","21115231","21124321","21133411","12151141","11242141","11251231","12133141","12142231","12151321","11224141","11233231","11242321","11251411","12115141","12124231","12133321","12142411","11215231","11224321","11233411","11161141","11143141","11152231","11161321","11125141","11134231","11143321","11152411","11111245","31111243","51111241","21111334","41111332","11111425","31111423","51111421","21111514","41111512","31211152","12111244","32111242","21211243","41211241","22111333","42111331","11211334","31211332","12111424","32111422","21211423","41211421","22111513","42111511","11211514","31211512","12211153","32211151","21311152","13111243","33111241","22211242","11311243","31311241","23111332","12211333","32211331","21311332","13111423","33111421","22211422","11311423","31311421","23111512","12211513","32211511","21311512","13211152","22311151","11411152","14111242","23211241","12311242","21411241","24111331","13211332","22311331","11411332","14111422","23211421","12311422","21411421","24111511","13211512","22311511","11411512","14211151","12411151","15111241","13311241","11511241","14211331","12411331","15111421","13311421","11511421","14211511","12411511","21121153","41121151","11112154","31112152","11121244","31121242","21112243","41112241","21121333","41121331","11112334","31112332","11121424","31121422","21112423","41112421","21121513","41121511","11112514","31112512","22121152","11221153","31221151","12112153","32112151","12121243","32121241","21221242","22112242","11212243","22121332","11221333","31221331","12112333","32112331","12121423","32121421","21221422","22112422","11212423","22121512","11221513","31221511","12112513","32112511","21212512","23121151","12221152","21321151","13112152","13121242","11312152","22221241","11321242","23112241","12212242","23121331","12221332","21321331","13112332","13121422","11312332","22221421","11321422","23112421","12212422","23121511","12221512","21321511","13112512","22212511","11312512","13221151","11421151","14112151","14121241","12312151","12321241","13212241","13221331","11412241","11421331","14112331","14121421","12312331","12321421","13212421","13221511","11412421","11421511","14112511","12312511","21131152","11122153","31122151","11131243","31131241","21113152","21122242","21131332","11113243","31113241","11122333","31122331","11131423","31131421","21113332","21122422","21131512","11113423","31113421","11122513","31122511","22131151","11231152","12122152","12131242","21231241","22113151","11213152","22122241","11222242","22131331","11231332","12113242","12122332","12131422","21231421","22113331","11213332","22122421","11222422","22131511","11231512","12113422","12122512","21222511","12231151","13122151","13131241","11322151","11331241","12213151","12222241","12231331","13113241","13122331","11313241","13131421","11322331","11331421","12213331","12222421","12231511","13113421","13122511","11313421","11322511","21141151","11132152","11141242","21123151","21132241","21141331","11114152","11123242","11132332","11141422","21114241","21123331","21132421","21141511","11114332","11123422","11132512","11241151","12132151","12141241","11223151","11232241","11241331","12114151","12123241","12132331","12141421","11214241","11223331","11232421","11241511","12114331","12123421","12132511","11142151","11151241","11124151","11133241","11142331","11151421","11115241","11124331","11133421","11142511","21111253","41111251","11111344","31111342","21111433","41111431","11111524","31111522","21111613","41111611","21211162","22111252","11211253","31211251","12111343","32111341","21211342","22111432","11211433","31211431","12111523","32111521","21211522","22111612","11211613","31211611","22211161","11311162","23111251","12211252","21311251","13111342","22211341","11311342","23111431","12211432","21311431","13111522","22211521","11311522","23111611","12211612","21311611","12311161","13211251","11411251","14111341","12311341","13211431","11411431","14111521","12311521","13211611","11411611","31121161","21112162","21121252","11112253","31112251","11121343","31121341","21112342","21121432","11112433","31112431","11121523","31121521","21112522","21121612","12121162","21221161","22112161","11212162","22121251","11221252","12112252","12121342","21221341","22112341","11212342","22121431","11221432","12112432","12121522","21221521","22112521","11212522","22121611","11221612","13121161","11321161","12212161","12221251","13112251","13121341","11312251","11321341","12212341","12221431","13112431","13121521","11312431","11321521","12212521","12221611","11131162","21122161","21131251","11113162"])]);$_.parity=$a(["1001","0101","1100","0011","1010","0110","1111","0000"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_code49.$ctx[id]=$_[id]);bwipp_code49.__15823__=1;$_=Object.getPrototypeOf($_)}$_.rowbits=$a($_.r);for(var _6C=0,_6B=$f($_.r-1);_6C<=_6B;_6C+=1){$_.i=_6C;$k[$j++]="p";if($_.i!=$f($_.r-1)){$k[$j++]=$g($_.parity,$_.i)}else{$k[$j++]="0000"}var _6I=$k[--$j];$_[$k[--$j]]=_6I;$_.ccrow=$G($_.ccs,$_.i*8,8);$k[$j++]=Infinity;for(var _6N=0;_6N<=7;_6N+=2){$q($G($_.ccrow,_6N,2));var _6Q=$k[--$j];var _6R=$k[--$j];$k[$j++]=$f(_6Q+_6R*49)}$_.scrow=$a();$k[$j++]=Infinity;$k[$j++]=10;$k[$j++]=1;$k[$j++]=1;for(var _6T=0;_6T<=3;_6T+=1){$_.j=_6T;$F($g($g($_.patterns,$f($g($_.p,$_.j)-48)),$g($_.scrow,$_.j)),function(){var _6d=$k[--$j];$k[$j++]=$f(_6d-48)})}$k[$j++]=4;$k[$j++]=1;$_.sbs=$a();$k[$j++]=Infinity;var _6f=$_.sbs;$k[$j++]=1;for(var _6g=0,_6h=_6f.length;_6g<_6h;_6g++){var _6j=$k[--$j];var _6k=_6j==0?1:0;$k[$j++]=_6j;for(var _6l=0,_6m=$g(_6f,_6g);_6l<_6m;_6l++){$k[$j++]=_6k}}$as($a($m()-1));var _6p=$k[--$j];var _6q=$k[--$j];$k[$j++]=_6p;$k[$j++]=_6q;$j--;var _6r=$k[--$j];var _6s=$k[--$j];$k[$j++]=_6r;$k[$j++]=_6s;$j--;$p($_.rowbits,$_.i,$k[--$j])}$k[$j++]=Infinity;for(var _6x=0,_6y=81*$_.sepheight;_6x<_6y;_6x++){$k[$j++]=1}for(var _71=0,_70=$f($_.r-2);_71<=_70;_71+=1){$_.i=_71;for(var _73=0,_74=$_.rowheight;_73<_74;_73++){$q($g($_.rowbits,$_.i))}for(var _79=0,_7A=$_.sepheight;_79<_7A;_79++){for(var _7B=0,_7C=10;_7B<_7C;_7B++){$k[$j++]=0}for(var _7D=0,_7E=70;_7D<_7E;_7D++){$k[$j++]=1}$k[$j++]=0}}for(var _7G=0,_7H=$_.rowheight;_7G<_7H;_7G++){$q($g($_.rowbits,$f($_.r-1)))}for(var _7M=0,_7N=81*$_.sepheight;_7M<_7N;_7M++){$k[$j++]=1}$_.pixs=$a();var _7T=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",81],["pixy",~~($_.pixs.length/81)],["height",~~($_.pixs.length/81)/72],["width",81/72],["opt",$_.options]]);$k[$j++]=_7T;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_flattermarken(){$_=Object.create($_);$_.dontdraw=false;$_.includetext=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.height=.3;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_flattermarken);$F($_.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.flattermarkenBadCharacter#16187";$k[$j++]="Flattermarken must contain only digits";bwipp_raiseerror()}});if(!bwipp_flattermarken.__16200__){$_=Object.create($_);$_.encs=$a(["0018","0117","0216","0315","0414","0513","0612","0711","0810","0900"]);$_.barchars="1234567890";for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_flattermarken.$ctx[id]=$_[id]);bwipp_flattermarken.__16200__=1;$_=Object.getPrototypeOf($_)}$_.barlen=$_.barcode.length;$_.sbs=$s($_.barlen*4);$_.txt=$a($_.barlen);for(var _D=0,_C=$_.barlen-1;_D<=_C;_D+=1){$_.i=_D;$X($_.barchars,$G($_.barcode,$_.i,1));$j--;$_.indx=$k[--$j].length;$j-=2;$_.enc=$g($_.encs,$_.indx);$P($_.sbs,$_.i*4,$_.enc);$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),$_.i*9,$_.textyoffset,$_.textfont,$_.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _Z=$_.sbs;for(var _a=0,_b=_Z.length;_a<_b;_a++){$k[$j++]=$g(_Z,_a)-48}var _d=$a();$k[$j++]=Infinity;for(var _f=0,_g=~~(($_.sbs.length+1)/2);_f<_g;_f++){$k[$j++]=$_.height}var _i=$a();$k[$j++]=Infinity;for(var _k=0,_l=~~(($_.sbs.length+1)/2);_k<_l;_k++){$k[$j++]=0}var _m=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_d;$k[$j++]="bhs";$k[$j++]=_i;$k[$j++]="bbs";$k[$j++]=_m;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="opt";$k[$j++]=$_.options;var _p=$d();$k[$j++]=_p;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_raw(){$_=Object.create($_);$_.dontdraw=false;$_.height=1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$F($_.barcode,function(){var _3=$k[--$j];if(_3<49||_3>57){$k[$j++]="bwipp.rawBadCharacter#16273";$k[$j++]="Raw must contain only digits 1 to 9";bwipp_raiseerror()}});$k[$j++]=Infinity;$k[$j++]=Infinity;$F($_.barcode,function(){var _5=$k[--$j];$k[$j++]=$f(_5-48)});var _6=$a();$k[$j++]=Infinity;for(var _8=0,_9=~~(($_.barcode.length+1)/2);_8<_9;_8++){$k[$j++]=$_.height}var _B=$a();$k[$j++]=Infinity;for(var _D=0,_E=~~(($_.barcode.length+1)/2);_D<_E;_D++){$k[$j++]=0}var _F=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_6;$k[$j++]="bhs";$k[$j++]=_B;$k[$j++]="bbs";$k[$j++]=_F;$k[$j++]="opt";$k[$j++]=$_.options;var _H=$d();$k[$j++]=_H;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_daft(){$_=Object.create($_);$_.dontdraw=false;$_.height=.175;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.daftEmptyData#16326";$k[$j++]="The data must not be empty";bwipp_raiseerror()}$F($_.barcode,function(){var _4=$k[--$j];if(_4!=68&&(_4!=65&&(_4!=70&&_4!=84))){$k[$j++]="bwipp.daftBadCharacter#16331";$k[$j++]="DAFT must contain only characters D, A, F and T";bwipp_raiseerror()}});$_.barlen=$_.barcode.length;$_.bbs=$a($_.barlen);$_.bhs=$a($_.barlen);for(var _C=0,_B=$_.barlen-1;_C<=_B;_C+=1){$_.i=_C;$_.enc=$G($_.barcode,$_.i,1);if($eq($_.enc,"D")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"A")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,5*$_.height/8)}if($eq($_.enc,"F")){$p($_.bbs,$_.i,0*$_.height/8);$p($_.bhs,$_.i,8*$_.height/8)}if($eq($_.enc,"T")){$p($_.bbs,$_.i,3*$_.height/8);$p($_.bhs,$_.i,2*$_.height/8)}}$k[$j++]=Infinity;var _i=$_.bbs;var _j=$_.bhs;$k[$j++]=Infinity;for(var _l=0,_m=$_.bhs.length-1;_l<_m;_l++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _n=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="bbs";$k[$j++]=_i;$k[$j++]="bhs";$k[$j++]=_j;$k[$j++]="sbs";$k[$j++]=_n;$k[$j++]="opt";$k[$j++]=$_.options;var _p=$d();$k[$j++]=_p;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_symbol(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _H=new Map([["fima",function(){$_.sbs=$a([2.25,2.25,2.25,11.25,2.25,11.25,2.25,2.25,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0])}],["fimb",function(){$_.sbs=$a([2.25,6.75,2.25,2.25,2.25,6.25,2.25,2.25,2.25,6.75,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0])}],["fimc",function(){$_.sbs=$a([2.25,2.25,2.25,6.75,2.25,6.75,2.25,6.75,2.25,2.25,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0])}],["fimd",function(){$_.sbs=$a([2.25,2.25,2.25,2.25,2.25,6.75,2.25,6.75,2.25,2.25,2.25,2.25,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0,0])}],["fime",function(){$_.sbs=$a([2.25,6.75,2.25,15.75,2.25,6.75,2.25]);$_.bhs=$a([.625,.625,.625,.625,.625,.625,.625]);$_.bbs=$a([0,0,0,0,0,0,0])}]]);$_.symbols=_H;var _K=$g($_.symbols,$_.barcode)!==undefined;if(!_K){$k[$j++]="bwipp.symbolUnknownSymbol#16437";$k[$j++]="Unknown symbol name provided";bwipp_raiseerror()}if($g($_.symbols,$_.barcode)()===true){return true}var _S=new Map([["ren",bwipp_renlinear],["sbs",$_.sbs],["bhs",$_.bhs],["bbs",$_.bbs],["opt",$_.options]]);$k[$j++]=_S;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_pdf417(){$_=Object.create($_);$_.dontdraw=false;$_.compact=false;$_.eclevel=-1;$_.columns=0;$_.rows=0;$_.rowmult=3;$_.ccc=false;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.pdf417emptyData#16502";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.eclevel!=-1&&($_.eclevel<0||$_.eclevel>8)){$k[$j++]="bwipp.pdf417InvalidErrorCorrectionLevel#16506";$k[$j++]="Valid error correction levels are 0 to 8";bwipp_raiseerror()}if($_.ccc&&$_.raw){$k[$j++]="bwipp.pdf417cccAndRaw#16510";$k[$j++]="Cannot combine ccc and raw";bwipp_raiseerror()}if($_.ccc&&$_.compact){$k[$j++]="bwipp.pdf417cccAndCompact#16514";$k[$j++]="Cannot combine ccc and compact";bwipp_raiseerror()}if($_.rows!=0&&($_.rows<3||$_.rows>90)){$k[$j++]="bwipp.pdf417invalidRows#16518";$k[$j++]="There must be between 3 and 90 rows";bwipp_raiseerror()}if($_.columns!=0&&($_.columns<1||$_.columns>30)){$k[$j++]="bwipp.pdf417invalidColumns#16522";$k[$j++]="There must be between 1 and 30 columns";bwipp_raiseerror()}if($_.rowmult<=0){$k[$j++]="bwipp.pdf417badRowMult#16526";$k[$j++]="The row multiplier must be greater than zero";bwipp_raiseerror()}bwipp_loadctx(bwipp_pdf417);if(!bwipp_pdf417.__16620__){$_=Object.create($_);$_.T=0;$_.N=1;$_.B=2;$_.A=0;$_.L=1;$_.M=2;$_.P=3;$_.tl=-1;$_.nl=-2;$_.bl=-3;$_.bl6=-4;$_.bs=-5;$_.al=-6;$_.ll=-7;$_.ml=-8;$_.pl=-9;$_.as=-10;$_.ps=-11;$_.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$_.pl,"?"]),$a([" "," "," ","{"]),$a([$_.ll,$_.as,$_.ll,"}"]),$a([$_.ml,$_.ml,$_.al,"'"]),$a([$_.ps,$_.ps,$_.ps,$_.al])]);$_.charvals=$a([new Map,new Map,new Map,new Map]);$_.alltext=new Map;for(var _10=0,_z=$_.charmaps.length-1;_10<=_z;_10+=1){$_.i=_10;$_.encs=$g($_.charmaps,$_.i);for(var _14=0;_14<=3;_14+=1){$_.j=_14;var _17=$g($_.encs,$_.j);$k[$j++]=_17;if($eq($t(_17),"stringtype")){var _1A=$g($k[--$j],0);$k[$j++]=_1A}var _1B=$k[--$j];$p($g($_.charvals,$_.j),_1B,$_.i);$p($_.alltext,_1B,-1)}}$_.e=1e4;$_.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$_.latseq=$a([$a([$a([]),$a([$_.ll]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.ml,$_.al]),$a([]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.al]),$a([$_.ll]),$a([]),$a([$_.pl])]),$a([$a([$_.al]),$a([$_.al,$_.ll]),$a([$_.al,$_.ml]),$a([])])]);$_.shftlen=$a([$a([$_.e,$_.e,$_.e,1]),$a([1,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,$_.e])]);$k[$j++]=Infinity;$k[$j++]=$_.tl;$k[$j++]=900;$k[$j++]=$_.bl;$k[$j++]=901;$k[$j++]=$_.bl6;$k[$j++]=924;$k[$j++]=$_.nl;$k[$j++]=902;$k[$j++]=$_.bs;$k[$j++]=913;$_.latchcws=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_pdf417.$ctx[id]=$_[id]);bwipp_pdf417.__16620__=1;$_=Object.getPrototypeOf($_)}if($_.raw){$_.datcws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.barcode.length-3){break}if($g($_.barcode,$_.i)!=94){break}var _2W=$G($_.barcode,$_.i+1,3);$k[$j++]=_2W;$k[$j++]=false;for(var _2X=0,_2Y=_2W.length;_2X<_2Y;_2X++){var _2Z=$g(_2W,_2X);if(_2Z<48||_2Z>57){$j--;$k[$j++]=true}}if($k[--$j]){$j--;break}$_.cw=$i($k[--$j]);$p($_.datcws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}if($_.i!=$_.barcode.length){$k[$j++]="bwipp.pdf417badRawFormat#16638";$k[$j++]="raw data must be formatted as ^NNN";bwipp_raiseerror()}$_.datcws=$G($_.datcws,0,$_.j)}$_.encb=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$_.out=$a(~~($_.inlen/6)*5+$_.inlen%6);for(var _2t=0,_2s=~~($_.inlen/6)-1;_2t<=_2s;_2t+=1){$_.k=_2t;$k[$j++]=Infinity;$q($G($_.in,$_.k*6,3));$_.msbs=$a();$k[$j++]=Infinity;$q($_.msbs);var _2z=$k[--$j];var _30=$k[--$j];var _31=$k[--$j];$k[$j++]=$f($f(_2z+_30*256)+_31*65536);for(var _32=0,_33=3;_32<_33;_32++){var _34=$k[--$j];$k[$j++]=_34%900;$k[$j++]=~~(_34/900)}$_.mscs=$a();$k[$j++]=Infinity;$q($G($_.in,$_.k*6+3,3));$_.lsbs=$a();$k[$j++]=Infinity;$q($_.lsbs);var _3B=$k[--$j];var _3C=$k[--$j];var _3D=$k[--$j];$k[$j++]=$f($f(_3B+_3C*256)+_3D*65536);for(var _3E=0,_3F=3;_3E<_3F;_3E++){var _3G=$k[--$j];$k[$j++]=_3G%900;$k[$j++]=~~(_3G/900)}$_.lscs=$a();var _3J=$g($_.lscs,0);var _3L=$g($_.mscs,0);$p($_.out,$_.k*5+4,$f(_3J+_3L*316)%900);var _3P=$g($_.lscs,1);var _3R=$g($_.mscs,0);var _3T=$g($_.mscs,1);$p($_.out,$_.k*5+3,$f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)%900);var _3X=$g($_.lscs,2);var _3Z=$g($_.mscs,0);var _3b=$g($_.mscs,1);var _3d=$g($_.mscs,2);$p($_.out,$_.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)/900)+_3X)+_3Z*20)+_3b*641)+_3d*316)%900);var _3h=$g($_.lscs,3);var _3j=$g($_.mscs,1);var _3l=$g($_.mscs,2);$p($_.out,$_.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)/900)+_3X)+_3Z*20)+_3b*641)+_3d*316)/900)+_3h)+_3j*20)+_3l*641)%900);$p($_.out,$_.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3J+_3L*316)/900)+_3P)+_3R*641)+_3T*316)/900)+_3X)+_3Z*20)+_3b*641)+_3d*316)/900)+_3h)+_3j*20)+_3l*641)/900)+$g($_.mscs,2)*20)%900)}$_.rem=$_.inlen%6;if($_.rem!=0){$k[$j++]=$_.out;$k[$j++]=$_.out.length-$_.rem;$k[$j++]=Infinity;$q($G($_.in,$_.inlen-$_.rem,$_.rem));var _42=$a();var _43=$k[--$j];$P($k[--$j],_43,_42)}$k[$j++]=$_.out};if($_.ccc){$_.barlen=$_.barcode.length;$_.datcws=$a(~~($_.barlen/6)*5+$_.barlen%6+2);$p($_.datcws,0,920);var _4E=$_.barlen%6==0?924:901;$p($_.datcws,1,_4E);$k[$j++]=$_.datcws;$k[$j++]=2;$k[$j++]=Infinity;$F($_.barcode);var _4H=$a();$k[$j++]=_4H;$_.encb();var _4I=$k[--$j];var _4J=$k[--$j];$P($k[--$j],_4J,_4I)}if(!$_.raw&&!$_.ccc){var _4P=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true]]);$_.fncvals=_4P;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _4S=$k[--$j];$_[$k[--$j]]=_4S;$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _4W=0,_4X=$_.msglen;_4W<_4X;_4W++){$k[$j++]=0}$k[$j++]=0;$_.numdigits=$a();$k[$j++]=Infinity;for(var _4a=0,_4b=$_.msglen;_4a<_4b;_4a++){$k[$j++]=0}$k[$j++]=0;$_.numtext=$a();$k[$j++]=Infinity;for(var _4e=0,_4f=$_.msglen;_4e<_4f;_4e++){$k[$j++]=0}$k[$j++]=0;$_.numbytes=$a();$k[$j++]=Infinity;for(var _4i=0,_4j=$_.msglen;_4i<_4j;_4i++){$k[$j++]=0}$k[$j++]=0;$_.iseci=$a();for(var _4m=$_.msglen-1;_4m>=0;_4m-=1){$_.i=_4m;var _4p=$g($_.msg,$_.i);if(_4p>=48&&_4p<=57){$p($_.numdigits,$_.i,$f($g($_.numdigits,$_.i+1)+1))}var _4z=$g($_.alltext,$g($_.msg,$_.i))!==undefined;if(_4z&&$g($_.numdigits,$_.i)<13){$p($_.numtext,$_.i,$f($g($_.numtext,$_.i+1)+1))}if($g($_.msg,$_.i)>=0&&$g($_.numtext,$_.i)<5&&$g($_.numdigits,$_.i)<13){$p($_.numbytes,$_.i,$f($g($_.numbytes,$_.i+1)+1))}$p($_.iseci,$_.i,$g($_.msg,$_.i)<=-1e6)}$_.numdigits=$G($_.numdigits,0,$_.msglen);$_.numtext=$G($_.numtext,0,$_.msglen);$_.numbytes=$G($_.numbytes,0,$_.msglen);$_.seq=$a([]);$_.seqlen=0;$_.state=$_.T;$_.p=0;for(;;){if($_.p==$_.msglen){break}if($g($_.iseci,$_.p)){$_.eci=$g($_.msg,$_.p);$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$a([$_.eci]);$_.seq=$a();$_.p=$_.p+1;$k[$j++]="seqlen";$k[$j++]=$_.seqlen;if($_.eci<=-1810900){$k[$j++]=2}else{var _5s=$_.eci<=-1000900?3:2;$k[$j++]=_5s}var _5t=$k[--$j];var _5u=$k[--$j];$_[$k[--$j]]=$f(_5u+_5t)}else{$_.n=$g($_.numdigits,$_.p);if($_.n>=13||$_.n==$_.msglen&&$_.n>=8){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.nl;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.n));var _69=$a();$k[$j++]=_69;$_.seq=$a();$_.state=$_.N;$_.p=$f($_.p+$_.n);$_.seqlen=$f($_.seqlen+1+$_.n)}else{$_.t=$g($_.numtext,$_.p);if($_.t>=5){$k[$j++]=Infinity;$q($_.seq);if($_.state!=$_.T){$k[$j++]=$_.tl}$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.t));var _6S=$a();$k[$j++]=_6S;$_.seq=$a();$_.state=$_.T;$_.p=$f($_.p+$_.t);$_.seqlen=$f($f($_.seqlen+1)+$_.t)}else{$_.b=$g($_.numbytes,$_.p);if($_.b==1&&$_.state==$_.T){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.bs;$k[$j++]=$a([$g($_.msg,$_.p)]);$_.seq=$a();$_.p=$f($_.p+$_.b);$_.seqlen=$f($_.seqlen+2)}else{$k[$j++]=Infinity;$q($_.seq);var _6r=$_.b%6!=0?$_.bl:$_.bl6;$k[$j++]=_6r;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.b));var _6w=$a();$k[$j++]=_6w;$_.seq=$a();$_.state=$_.B;$_.p=$f($_.p+$_.b);$_.seqlen=$f($f($_.seqlen+1)+$_.b)}}}}}$_.enca=function(){var _77=$g($g($_.charvals,$_.A),$k[--$j]);$k[$j++]=_77};$_.encl=function(){var _7C=$g($g($_.charvals,$_.L),$k[--$j]);$k[$j++]=_7C};$_.encm=function(){var _7H=$g($g($_.charvals,$_.M),$k[--$j]);$k[$j++]=_7H};$_.encp=function(){var _7M=$g($g($_.charvals,$_.P),$k[--$j]);$k[$j++]=_7M};$_.textencfuncs=$a(["enca","encl","encm","encp"]);$_.addtotext=function(){$p($_.text,$_.l,$k[--$j]);$_.l=$_.l+1};$_.enct=function(){$_.in=$k[--$j];$_.curlen=$a([$_.e,$_.e,$_.e,$_.e]);$p($_.curlen,$_.submode,0);$_.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($_.in,function(){$_.char=$k[--$j];for(;;){$_.imp=false;var _7l=$a([$_.A,$_.L,$_.M,$_.P]);for(var _7m=0,_7n=_7l.length;_7m<_7n;_7m++){$_.x=$g(_7l,_7m);var _7t=$a([$_.A,$_.L,$_.M,$_.P]);for(var _7u=0,_7v=_7t.length;_7u<_7v;_7u++){$_.y=$g(_7t,_7u);$_.cost=$f($g($_.curlen,$_.x)+$g($g($_.latlen,$_.x),$_.y));if($_.cost<$g($_.curlen,$_.y)){$p($_.curlen,$_.y,$_.cost);$k[$j++]=$_.curseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$q($g($g($_.latseq,$_.x),$_.y));var _8M=$a();var _8N=$k[--$j];$p($k[--$j],_8N,_8M);$_.imp=true}}}if(!$_.imp){break}}$_.nxtlen=$a([$_.e,$_.e,$_.e,$_.e]);$_.nxtseq=$a(4);var _8a=$a([$_.A,$_.L,$_.M,$_.P]);for(var _8b=0,_8c=_8a.length;_8b<_8c;_8b++){$_.x=$g(_8a,_8b);for(;;){var _8i=$g($g($_.charvals,$_.x),$_.char)!==undefined;if(!_8i){break}$_.cost=$f($g($_.curlen,$_.x)+1);if($_.cost<$g($_.nxtlen,$_.x)){$p($_.nxtlen,$_.x,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.x;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$k[$j++]=$_.char;var _8z=$a();var _90=$k[--$j];$p($k[--$j],_90,_8z)}var _96=$a([$_.A,$_.L,$_.M,$_.P]);for(var _97=0,_98=_96.length;_97<_98;_97++){$_.y=$g(_96,_97);if($ne($_.x,$_.y)){$_.cost=$f($f($g($_.curlen,$_.y)+$g($g($_.shftlen,$_.y),$_.x))+1);if($_.cost<$g($_.nxtlen,$_.y)){$p($_.nxtlen,$_.y,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.y));var _9Y=$_.x==$_.A?$_.as:$_.ps;$k[$j++]=_9Y;$k[$j++]=$_.char;var _9a=$a();var _9b=$k[--$j];$p($k[--$j],_9b,_9a)}}}break}}$_.curlen=$_.nxtlen;$_.curseq=$_.nxtseq});$_.minseq=$_.e;var _9k=$a([$_.A,$_.L,$_.M,$_.P]);for(var _9l=0,_9m=_9k.length;_9l<_9m;_9l++){$_.k=$g(_9k,_9l);if($g($_.curlen,$_.k)<$_.minseq){$_.minseq=$g($_.curlen,$_.k);$_.txtseq=$g($_.curseq,$_.k)}}$_.text=$a($_.minseq);$_.k=0;$_.l=0;for(;;){if($_.k>=$_.txtseq.length){break}$_.char=$g($_.txtseq,$_.k);$k[$j++]=$_.char;if($_[$g($_.textencfuncs,$_.submode)]()===true){break}$_.addtotext();$_.k=$_.k+1;if($_.char==$_.as||$_.char==$_.ps){$k[$j++]=$g($_.txtseq,$_.k);if($_.char==$_.as){$_.enca()}else{$_.encp()}$_.addtotext();$_.k=$_.k+1}if($_.char==$_.al){$_.submode=$_.A}if($_.char==$_.ll){$_.submode=$_.L}if($_.char==$_.ml){$_.submode=$_.M}if($_.char==$_.pl){$_.submode=$_.P}}if($_.text.length%2==1){if($_.submode==$_.P){$k[$j++]="pad";$k[$j++]=$_.al;$_.encp();var _Ab=$k[--$j];$_[$k[--$j]]=_Ab;$_.submode=$_.A}else{$_.nextecitext=false;for(var _Ah=$_.i+1,_Ag=$_.seq.length-1;_Ah<=_Ag;_Ah+=1){$_.ti=_Ah;if($ne($t($g($_.seq,$_.ti)),"arraytype")){$_.nextecitext=false;break}if($g($g($_.seq,$_.ti),0)>-1e6){break}$_.nextecitext=true}if($_.nextecitext){if($_.submode==$_.A){var _B0=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_B0){$k[$j++]="pad";$k[$j++]=$_.ll;$_.enca();var _B2=$k[--$j];$_[$k[--$j]]=_B2;$_.submode=$_.L}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.enca();var _B6=$k[--$j];$_[$k[--$j]]=_B6;$_.submode=$_.M}}else{if($_.submode==$_.M){var _BI=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_BI){$k[$j++]="pad";$k[$j++]=$_.ll;$_.encm();var _BK=$k[--$j];$_[$k[--$j]]=_BK;$_.submode=$_.L}else{var _BU=$g($g($_.charvals,$_.P),$g($g($_.seq,$_.ti),0))!==undefined;if(_BU){$k[$j++]="pad";$k[$j++]=$_.pl;$_.encm();var _BW=$k[--$j];$_[$k[--$j]]=_BW;$_.submode=$_.P}else{$k[$j++]="pad";$k[$j++]=$_.al;$_.encm();var _Ba=$k[--$j];$_[$k[--$j]]=_Ba;$_.submode=$_.A}}}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.encl();var _Be=$k[--$j];$_[$k[--$j]]=_Be;$_.submode=$_.M}}}else{$k[$j++]="pad";$k[$j++]=$_.ps;if($_[$g($_.textencfuncs,$_.submode)]()===true){return true}var _Bm=$k[--$j];$_[$k[--$j]]=_Bm}}$k[$j++]=Infinity;$q($_.text);$k[$j++]=$_.pad;$_.text=$a()}$_.out=$a(~~($_.text.length/2));for(var _Bv=0,_Bu=$_.out.length-1;_Bv<=_Bu;_Bv+=1){$_.k=_Bv;$p($_.out,$_.k,$f($g($_.text,$_.k*2)*30+$g($_.text,$_.k*2+1)))}$k[$j++]=$_.out};$_.encn=function(){$_.in=$k[--$j];$_.out=$a([]);for(var _C9=0,_C8=$_.in.length-1;_C9<=_C8;_C9+=44){$_.k=_C9;$k[$j++]=Infinity;var _CE=$_.in.length-$_.k;$k[$j++]=1;$k[$j++]=$_.in;$k[$j++]=$_.k;$k[$j++]=_CE;if(_CE>44){$j--;$k[$j++]=44}var _CF=$k[--$j];var _CG=$k[--$j];var _CI=$G($k[--$j],_CG,_CF);for(var _CJ=0,_CK=_CI.length;_CJ<_CK;_CJ++){$k[$j++]=$f($g(_CI,_CJ)-48)}$_.gmod=$a();$_.cwn=$a([]);for(;;){$_.dv=900;$_.gmul=$a([]);$_.val=0;for(;;){if($_.gmod.length==0){break}$_.val=$f($_.val*10+$g($_.gmod,0));$_.gmod=$G($_.gmod,1,$_.gmod.length-1);if($_.val<$_.dv){if($_.gmul.length!=0){$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=0;$_.gmul=$a()}}else{$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=~~($_.val/$_.dv);$_.gmul=$a()}$_.val=$_.val%$_.dv}$_.dv=$_.val;$k[$j++]=Infinity;$k[$j++]=$_.dv;$q($_.cwn);$_.cwn=$a();$_.gmod=$_.gmul;if($_.gmul.length==0){break}}$k[$j++]=Infinity;$q($_.out);$q($_.cwn);$_.out=$a()}$k[$j++]=$_.out};$_.ence=function(){var _Ct=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_Ct;if(_Ct<=899){var _Cu=$k[--$j];$k[$j++]=927;$k[$j++]=_Cu;$as($a(2))}else{var _Cw=$k[--$j];$k[$j++]=_Cw;if(_Cw<=810899){var _Cx=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Cx/900)-1;$k[$j++]=_Cx%900;$as($a(3))}else{var _Cz=$k[--$j];$k[$j++]=_Cz;if(_Cz<=811799){var _D0=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_D0-810900);$as($a(2))}else{$k[$j++]="bwipp.pdf417badECI#17000";$k[$j++]="PDF417 supports ECIs 000000 to 811799";bwipp_raiseerror()}}}};$_.encfuncs=$a(["enct","encn","encb"]);$_.addtocws=function(){var _D3=$k[--$j];$P($_.datcws,$_.j,_D3);$_.j=_D3.length+$_.j};$_.state=$_.T;$_.submode=$_.A;$_.datcws=$a($_.seqlen);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.seq.length){break}$_.chars=$g($_.seq,$_.i);if($eq($t($_.chars),"arraytype")){if($g($_.chars,0)<=-1e6){$k[$j++]=$_.chars;$_.ence();$_.addtocws()}else{$k[$j++]=$_.chars;if($_[$g($_.encfuncs,$_.state)]()===true){break}$_.addtocws()}}else{$k[$j++]=$a([$g($_.latchcws,$_.chars)]);$_.addtocws();if($_.chars==$_.tl){$_.state=$_.T;$_.submode=$_.A}if($_.chars==$_.nl){$_.state=$_.N}if($_.chars==$_.bl||$_.chars==$_.bl6){$_.state=$_.B}if($_.chars==$_.bs){$_.i=$_.i+1;$k[$j++]=$g($_.seq,$_.i);$_.encb();$_.addtocws()}}$_.i=$_.i+1}$_.datcws=$G($_.datcws,0,$_.j)}$_.m=$_.datcws.length;if($_.eclevel==-1){if($_.m<=40){$_.eclevel=2}if($_.m>=41&&$_.m<=160){$_.eclevel=3}if($_.m>=161&&$_.m<=320){$_.eclevel=4}if($_.m>=321){$_.eclevel=5}}$_.maxeclevel=~~(Math.log(928-1-$_.m)/Math.log(2))-1;if($_.eclevel>$_.maxeclevel){$_.eclevel=$_.maxeclevel}$_.k=~~Math.pow(2,$_.eclevel+1);if($_.columns==0){$_.columns=~~Math.round(Math.sqrt(($_.m+$_.k)/3))}$k[$j++]="c";if($_.columns>=1){$k[$j++]=$_.columns}else{$k[$j++]=1}var _E8=$k[--$j];$_[$k[--$j]]=_E8;$_.r=~~Math.ceil(($_.m+$_.k+1)/$_.columns);if($_.r<$_.rows&&$_.rows<=90){$_.r=$_.rows}if($_.r<3){$_.r=3}if($_.r>90){$k[$j++]="bwipp.pdf417insufficientCapacity#17063";$k[$j++]="Insufficient capacity in the symbol";bwipp_raiseerror()}var _EJ=$_.c;var _EK=$_.r;var _EL=$_.m;var _EM=8;var _EN=~~(Math.log($f($f(_EJ*_EK-1)-_EL))/Math.log(2))-1;if(~~(Math.log($f($f(_EJ*_EK-1)-_EL))/Math.log(2))-1>8){var _=_EM;_EM=_EN;_EN=_}$_.maxeclevel=_EN;if($_.maxeclevel>$_.eclevel){$_.eclevel=$_.maxeclevel;$_.k=~~Math.pow(2,$_.eclevel+1)}$_.n=$f($_.c*$_.r-$_.k);$_.cws=$a($f($_.c*$_.r+1));$p($_.cws,0,$_.n);$P($_.cws,1,$_.datcws);$k[$j++]=$_.cws;$k[$j++]=$_.m+1;$k[$j++]=Infinity;for(var _Eg=0,_Eh=$f($f($_.n-$_.m)-1);_Eg<_Eh;_Eg++){$k[$j++]=900}var _Ei=$a();var _Ej=$k[--$j];$P($k[--$j],_Ej,_Ei);$k[$j++]=$_.cws;$k[$j++]=$_.n;$k[$j++]=Infinity;for(var _Eo=0,_Ep=$_.k;_Eo<_Ep;_Eo++){$k[$j++]=0}$k[$j++]=0;var _Eq=$a();var _Er=$k[--$j];$P($k[--$j],_Er,_Eq);if(!bwipp_pdf417.__17086__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _Et=0,_Eu=928;_Et<_Eu;_Et++){var _Ev=$k[--$j];$k[$j++]=_Ev;$k[$j++]=_Ev*3%929}$_.rsalog=$a();$_.rslog=$a(929);for(var _Ey=1;_Ey<=928;_Ey+=1){$p($_.rslog,$g($_.rsalog,_Ey),_Ey)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_pdf417.$ctx[id]=$_[id]);bwipp_pdf417.__17086__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _F3=$k[--$j];var _F4=$k[--$j];$k[$j++]=_F4;$k[$j++]=_F3;if(_F3!=0&&_F4!=0){var _F7=$g($_.rslog,$k[--$j]);var _FC=$g($_.rsalog,$f(_F7+$g($_.rslog,$k[--$j]))%928);$k[$j++]=_FC}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _FE=0,_FF=$_.k;_FE<_FF;_FE++){$k[$j++]=0}$_.coeffs=$a();for(var _FJ=1,_FI=$_.k;_FJ<=_FI;_FJ+=1){$_.i=_FJ;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _FQ=$_.i-1;_FQ>=1;_FQ-=1){$_.j=_FQ;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Fc=$k[--$j];var _Fd=$k[--$j];var _Fe=$k[--$j];$p($k[--$j],_Fe,$f(_Fd+_Fc)%929)}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Fm=$k[--$j];var _Fn=$k[--$j];$p($k[--$j],_Fn,_Fm)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Ft=$_.coeffs.length-1;_Ft>=0;_Ft-=2){var _Fu=$_.coeffs;$p(_Fu,_Ft,$f(929-$g(_Fu,_Ft)))}for(var _Fy=0,_Fx=$f($_.n-1);_Fy<=_Fx;_Fy+=1){$_.t=$f($g($_.cws,_Fy)+$g($_.cws,$_.n))%929;for(var _G6=0,_G5=$_.k-1;_G6<=_G5;_G6+=1){$_.j=_G6;$p($_.cws,$f($_.n+$_.j),$f($g($_.cws,$f($f($_.n+$_.j)+1))+$f(929-$_.t*$g($_.coeffs,$_.k-$_.j-1)%929))%929)}}for(var _GN=$_.n,_GM=$f($_.n+$_.k);_GN<=_GM;_GN+=1){$p($_.cws,_GN,$f(929-$g($_.cws,_GN))%929)}$_.cws=$G($_.cws,0,$_.cws.length-1);var _GV=$g($_.options,"debugcws")!==undefined;if(_GV){$k[$j++]="bwipp.debugcws#17124";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_pdf417.__17368__){$_=Object.create($_);$_.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_pdf417.$ctx[id]=$_[id]);bwipp_pdf417.__17368__=1;$_=Object.getPrototypeOf($_)}$_.cwtobits=function(){var _Ge=$g($_.clusters,$k[--$j]);$_.v=$g(_Ge,$k[--$j]);$k[$j++]=Infinity;for(var _Gh=0,_Gi=17;_Gh<_Gi;_Gh++){$k[$j++]=0}var _Gl=$R($s(17),$_.v,2);for(var _Gm=0,_Gn=_Gl.length;_Gm<_Gn;_Gm++){$k[$j++]=$g(_Gl,_Gm)-48}var _Gp=$a();$k[$j++]=$G(_Gp,_Gp.length-17,17)};if($_.compact){$_.rwid=$f($f($f(17*$_.c+17)+17)+1)}else{$_.rwid=$f($f($f($f(17*$_.c+17)+17)+17)+18)}$_.pixs=$a($_.rwid*$_.r*$_.rowmult);for(var _H0=0,_Gz=$_.r-1;_H0<=_Gz;_H0+=1){$_.i=_H0;if($_.i%3==0){$_.lcw=~~($_.i/3)*30+~~(($_.r-1)/3);$_.rcw=$f($f(~~($_.i/3)*30+$_.c)-1)}if($_.i%3==1){$_.lcw=~~($_.i/3)*30+$_.eclevel*3+($_.r-1)%3;$_.rcw=~~($_.i/3)*30+~~(($_.r-1)/3)}if($_.i%3==2){$_.lcw=$f($f(~~($_.i/3)*30+$_.c)-1);$_.rcw=~~($_.i/3)*30+$_.eclevel*3+($_.r-1)%3}$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=$_.lcw;$k[$j++]=$_.i%3;$_.cwtobits();$q($k[--$j]);var _HP=$G($_.cws,$_.c*$_.i,$_.c);for(var _HQ=0,_HR=_HP.length;_HQ<_HR;_HQ++){$k[$j++]=$g(_HP,_HQ);$k[$j++]=$_.i%3;$_.cwtobits();$q($k[--$j])}if($_.compact){$k[$j++]=1}else{$k[$j++]=$_.rcw;$k[$j++]=$_.i%3;$_.cwtobits();$q($k[--$j]);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1}var _HZ=$a();$k[$j++]=_HZ;for(var _Hc=0,_Hb=$_.rowmult-1;_Hc<=_Hb;_Hc+=1){var _Hh=$k[--$j];$P($_.pixs,(_Hc+$_.i*$_.rowmult)*$_.rwid,_Hh);$k[$j++]=_Hh}$j--}var _Hq=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.rwid],["pixy",$_.r*$_.rowmult],["height",$_.r*$_.rowmult/72],["width",$_.rwid/72],["borderleft",2],["borderright",2],["bordertop",2],["borderbottom",2],["opt",$_.options]]);$k[$j++]=_Hq;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_pdf417compact(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"compact",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_pdf417();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_micropdf417(){$_=Object.create($_);$_.dontdraw=false;$_.version="unset";$_.columns=0;$_.rows=0;$_.rowmult=2;$_.cca=false;$_.ccb=false;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.micropdf417emptyData#17534";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.rowmult<=0){$k[$j++]="bwipp.micropdf417badRowMult#17538";$k[$j++]="The row multiplier must be greater than zero";bwipp_raiseerror()}if($_.cca&&$_.ccb||($_.cca&&$_.raw||$_.ccb&&$_.raw)){$k[$j++]="bwipp.micropdf417ccaAndCcb#17542";$k[$j++]="Cannot combine cca, ccb and raw";bwipp_raiseerror()}if($ne($_.version,"unset")){$X($_.version,"x");if($k[--$j]){var _D=$k[--$j];var _E=$k[--$j];$k[$j++]=_D;$k[$j++]=_E;$j--;var _F=$k[--$j];var _G=$k[--$j];$k[$j++]=_G;$k[$j++]=_F;$k[$j++]=_G;$k[$j++]=_F;$as($a(2));$F($k[--$j],function(){var _J=$k[--$j];$k[$j++]=_J;$k[$j++]=true;if(_J.length==0){$j--;$k[$j++]=false}var _K=$k[--$j];var _L=$k[--$j];$k[$j++]=_K;$F(_L,function(){var _M=$k[--$j];if(_M<48||_M>57){$j--;$k[$j++]=false}});if($nt($k[--$j])){$k[$j++]="bwipp.micropdf417BadVersionBadRowOrColumn#17556";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}});$_.rows=$i($k[--$j]);$_.columns=$i($k[--$j])}else{$j--;$k[$j++]="bwipp.micropdf417badVersionFormat#17562";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}}bwipp_loadctx(bwipp_micropdf417);if(!bwipp_micropdf417.__17656__){$_=Object.create($_);$_.T=0;$_.N=1;$_.B=2;$_.A=0;$_.L=1;$_.M=2;$_.P=3;$_.tl=-1;$_.nl=-2;$_.bl=-3;$_.bl6=-4;$_.bs=-5;$_.al=-6;$_.ll=-7;$_.ml=-8;$_.pl=-9;$_.as=-10;$_.ps=-11;$_.m05=-12;$_.m06=-13;$_.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$_.pl,"?"]),$a([" "," "," ","{"]),$a([$_.ll,$_.as,$_.ll,"}"]),$a([$_.ml,$_.ml,$_.al,"'"]),$a([$_.ps,$_.ps,$_.ps,$_.al])]);$_.charvals=$a([new Map,new Map,new Map,new Map]);$_.alltext=new Map;for(var _19=0,_18=$_.charmaps.length-1;_19<=_18;_19+=1){$_.i=_19;$_.encs=$g($_.charmaps,$_.i);for(var _1D=0;_1D<=3;_1D+=1){$_.j=_1D;var _1G=$g($_.encs,$_.j);$k[$j++]=_1G;if($eq($t(_1G),"stringtype")){var _1J=$g($k[--$j],0);$k[$j++]=_1J}var _1K=$k[--$j];$p($g($_.charvals,$_.j),_1K,$_.i);$p($_.alltext,_1K,-1)}}$_.e=1e4;$_.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$_.latseq=$a([$a([$a([]),$a([$_.ll]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.ml,$_.al]),$a([]),$a([$_.ml]),$a([$_.ml,$_.pl])]),$a([$a([$_.al]),$a([$_.ll]),$a([]),$a([$_.pl])]),$a([$a([$_.al]),$a([$_.al,$_.ll]),$a([$_.al,$_.ml]),$a([])])]);$_.shftlen=$a([$a([$_.e,$_.e,$_.e,1]),$a([1,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,1]),$a([$_.e,$_.e,$_.e,$_.e])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__17656__=1;$_=Object.getPrototypeOf($_)}if($_.raw||$_.cca){$_.datcws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.barcode.length-3){break}if($g($_.barcode,$_.i)!=94){break}var _2a=$G($_.barcode,$_.i+1,3);$k[$j++]=_2a;$k[$j++]=false;for(var _2b=0,_2c=_2a.length;_2b<_2c;_2b++){var _2d=$g(_2a,_2b);if(_2d<48||_2d>57){$j--;$k[$j++]=true}}if($k[--$j]){$j--;break}$_.cw=$i($k[--$j]);$p($_.datcws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}if($_.i!=$_.barcode.length){$k[$j++]="bwipp.micropdf417badCcaRawFormat#17674";$k[$j++]="cca and raw data must be formatted as ^NNN";bwipp_raiseerror()}$_.datcws=$G($_.datcws,0,$_.j)}$_.encb=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$_.out=$a(~~($_.inlen/6)*5+$_.inlen%6);for(var _2x=0,_2w=~~($_.inlen/6)-1;_2x<=_2w;_2x+=1){$_.k=_2x;$k[$j++]=Infinity;$q($G($_.in,$_.k*6,3));$_.msbs=$a();$k[$j++]=Infinity;$q($_.msbs);var _33=$k[--$j];var _34=$k[--$j];var _35=$k[--$j];$k[$j++]=$f($f(_33+_34*256)+_35*65536);for(var _36=0,_37=3;_36<_37;_36++){var _38=$k[--$j];$k[$j++]=_38%900;$k[$j++]=~~(_38/900)}$_.mscs=$a();$k[$j++]=Infinity;$q($G($_.in,$_.k*6+3,3));$_.lsbs=$a();$k[$j++]=Infinity;$q($_.lsbs);var _3F=$k[--$j];var _3G=$k[--$j];var _3H=$k[--$j];$k[$j++]=$f($f(_3F+_3G*256)+_3H*65536);for(var _3I=0,_3J=3;_3I<_3J;_3I++){var _3K=$k[--$j];$k[$j++]=_3K%900;$k[$j++]=~~(_3K/900)}$_.lscs=$a();var _3N=$g($_.lscs,0);var _3P=$g($_.mscs,0);$p($_.out,$_.k*5+4,$f(_3N+_3P*316)%900);var _3T=$g($_.lscs,1);var _3V=$g($_.mscs,0);var _3X=$g($_.mscs,1);$p($_.out,$_.k*5+3,$f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)%900);var _3b=$g($_.lscs,2);var _3d=$g($_.mscs,0);var _3f=$g($_.mscs,1);var _3h=$g($_.mscs,2);$p($_.out,$_.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)/900)+_3b)+_3d*20)+_3f*641)+_3h*316)%900);var _3l=$g($_.lscs,3);var _3n=$g($_.mscs,1);var _3p=$g($_.mscs,2);$p($_.out,$_.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)/900)+_3b)+_3d*20)+_3f*641)+_3h*316)/900)+_3l)+_3n*20)+_3p*641)%900);$p($_.out,$_.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_3N+_3P*316)/900)+_3T)+_3V*641)+_3X*316)/900)+_3b)+_3d*20)+_3f*641)+_3h*316)/900)+_3l)+_3n*20)+_3p*641)/900)+$g($_.mscs,2)*20)%900)}$_.rem=$_.inlen%6;if($_.rem!=0){$k[$j++]=$_.out;$k[$j++]=$_.out.length-$_.rem;$k[$j++]=Infinity;$q($G($_.in,$_.inlen-$_.rem,$_.rem));var _46=$a();var _47=$k[--$j];$P($k[--$j],_47,_46)}$k[$j++]=$_.out};if($_.ccb){$_.barlen=$_.barcode.length;$_.datcws=$a(~~($_.barlen/6)*5+$_.barlen%6+2);$p($_.datcws,0,920);var _4I=$_.barlen%6==0?924:901;$p($_.datcws,1,_4I);$k[$j++]=$_.datcws;$k[$j++]=2;$k[$j++]=Infinity;$F($_.barcode);var _4L=$a();$k[$j++]=_4L;$_.encb();var _4M=$k[--$j];var _4N=$k[--$j];$P($k[--$j],_4N,_4M)}if(!$_.raw&&!$_.cca&&!$_.ccb){var _4U=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true]]);$_.fncvals=_4U;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _4X=$k[--$j];$_[$k[--$j]]=_4X;$_.msglen=$_.msg.length;if($_.msglen>=9){$q($G($_.msg,0,7));var _4d=$k[--$j];var _4e=$k[--$j];$k[$j++]=_4d==29;$k[$j++]=_4e;$j--;var _4f=$k[--$j];var _4g=$k[--$j];var _4h=$k[--$j];var _4i=$k[--$j];var _4j=$k[--$j];var _4k=$k[--$j];if(_4f&&_4g==48&&_4h==30&&_4i==62&&_4j==41&&_4k==91){$q($G($_.msg,$_.msglen-2,2));var _4o=$k[--$j];var _4p=$k[--$j];if(_4o==4&&_4p==30){if($g($_.msg,5)==53){$k[$j++]=Infinity;$k[$j++]=$_.m05;$q($G($_.msg,7,$_.msg.length-9));$_.msg=$a()}else{if($g($_.msg,5)==54){$k[$j++]=Infinity;$k[$j++]=$_.m06;$q($G($_.msg,7,$_.msg.length-9));$_.msg=$a()}}}}}$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _56=0,_57=$_.msglen;_56<_57;_56++){$k[$j++]=0}$k[$j++]=0;$_.numdigits=$a();$k[$j++]=Infinity;for(var _5A=0,_5B=$_.msglen;_5A<_5B;_5A++){$k[$j++]=0}$k[$j++]=0;$_.numtext=$a();$k[$j++]=Infinity;for(var _5E=0,_5F=$_.msglen;_5E<_5F;_5E++){$k[$j++]=0}$k[$j++]=0;$_.numbytes=$a();$k[$j++]=Infinity;for(var _5I=0,_5J=$_.msglen;_5I<_5J;_5I++){$k[$j++]=0}$_.iseci=$a();for(var _5M=$_.msglen-1;_5M>=0;_5M-=1){$_.i=_5M;var _5P=$g($_.msg,$_.i);if(_5P>=48&&_5P<=57){$p($_.numdigits,$_.i,$f($g($_.numdigits,$_.i+1)+1))}var _5Z=$g($_.alltext,$g($_.msg,$_.i))!==undefined;if(_5Z&&$g($_.numdigits,$_.i)<13){$p($_.numtext,$_.i,$f($g($_.numtext,$_.i+1)+1))}if($g($_.msg,$_.i)>=0&&$g($_.numtext,$_.i)<5&&$g($_.numdigits,$_.i)<13){$p($_.numbytes,$_.i,$f($g($_.numbytes,$_.i+1)+1))}$p($_.iseci,$_.i,$g($_.msg,$_.i)<=-1e6)}$_.numdigits=$G($_.numdigits,0,$_.msglen);$_.numtext=$G($_.numtext,0,$_.msglen);$_.numbytes=$G($_.numbytes,0,$_.msglen);$_.seq=$a([]);$_.seqlen=0;$_.state=$_.B;$_.p=0;for(;;){if($_.p==$_.msglen){break}var _6H=$g($_.msg,$_.p);if($_.p==0&&(_6H==$_.m05||_6H==$_.m06)){$k[$j++]=Infinity;$q($_.seq);var _6P=$g($_.msg,$_.p)==$_.m05?$_.m05:$_.m06;$k[$j++]=_6P;$_.seq=$a();$_.p=$_.p+1;$_.seqlen=$_.seqlen+1}else{if($g($_.iseci,$_.p)){$_.eci=$g($_.msg,$_.p);$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$a([$_.eci]);$_.seq=$a();$_.p=$_.p+1;$k[$j++]="seqlen";$k[$j++]=$_.seqlen;if($_.eci<=-1810900){$k[$j++]=2}else{var _6h=$_.eci<=-1000900?3:2;$k[$j++]=_6h}var _6i=$k[--$j];var _6j=$k[--$j];$_[$k[--$j]]=$f(_6j+_6i)}else{$_.n=$g($_.numdigits,$_.p);if($_.n>=13||$_.n==$_.msglen&&$_.n>=8){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.nl;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.n));var _6y=$a();$k[$j++]=_6y;$_.seq=$a();$_.state=$_.N;$_.p=$f($_.p+$_.n);$_.seqlen=$f($_.seqlen+1+$_.n)}else{$_.t=$g($_.numtext,$_.p);if($_.t>=5){$k[$j++]=Infinity;$q($_.seq);if($_.state!=$_.T){$k[$j++]=$_.tl}$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.t));var _7H=$a();$k[$j++]=_7H;$_.seq=$a();$_.state=$_.T;$_.p=$f($_.p+$_.t);$_.seqlen=$f($f($_.seqlen+1)+$_.t)}else{$_.b=$g($_.numbytes,$_.p);if($_.b==1&&$_.state==$_.T){$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.bs;$k[$j++]=$a([$g($_.msg,$_.p)]);$_.seq=$a();$_.p=$f($_.p+$_.b);$_.seqlen=$f($_.seqlen+2)}else{$k[$j++]=Infinity;$q($_.seq);var _7g=$_.b%6!=0?$_.bl:$_.bl6;$k[$j++]=_7g;$k[$j++]=Infinity;$q($G($_.msg,$_.p,$_.b));var _7l=$a();$k[$j++]=_7l;$_.seq=$a();$_.state=$_.B;$_.p=$f($_.p+$_.b);$_.seqlen=$f($f($_.seqlen+1)+$_.b)}}}}}}$k[$j++]=Infinity;$k[$j++]=$_.tl;$k[$j++]=900;$k[$j++]=$_.bl;$k[$j++]=901;$k[$j++]=$_.bl6;$k[$j++]=924;$k[$j++]=$_.nl;$k[$j++]=902;$k[$j++]=$_.bs;$k[$j++]=913;$k[$j++]=$_.m05;$k[$j++]=916;$k[$j++]=$_.m06;$k[$j++]=917;$_.latchcws=$d();$_.enca=function(){var _84=$g($g($_.charvals,$_.A),$k[--$j]);$k[$j++]=_84};$_.encl=function(){var _89=$g($g($_.charvals,$_.L),$k[--$j]);$k[$j++]=_89};$_.encm=function(){var _8E=$g($g($_.charvals,$_.M),$k[--$j]);$k[$j++]=_8E};$_.encp=function(){var _8J=$g($g($_.charvals,$_.P),$k[--$j]);$k[$j++]=_8J};$_.textencfuncs=$a(["enca","encl","encm","encp"]);$_.addtotext=function(){$p($_.text,$_.l,$k[--$j]);$_.l=$_.l+1};$_.enct=function(){$_.in=$k[--$j];$_.curlen=$a([$_.e,$_.e,$_.e,$_.e]);$p($_.curlen,$_.submode,0);$_.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($_.in,function(){$_.char=$k[--$j];for(;;){$_.imp=false;var _8i=$a([$_.A,$_.L,$_.M,$_.P]);for(var _8j=0,_8k=_8i.length;_8j<_8k;_8j++){$_.x=$g(_8i,_8j);var _8q=$a([$_.A,$_.L,$_.M,$_.P]);for(var _8r=0,_8s=_8q.length;_8r<_8s;_8r++){$_.y=$g(_8q,_8r);$_.cost=$f($g($_.curlen,$_.x)+$g($g($_.latlen,$_.x),$_.y));if($_.cost<$g($_.curlen,$_.y)){$p($_.curlen,$_.y,$_.cost);$k[$j++]=$_.curseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$q($g($g($_.latseq,$_.x),$_.y));var _9J=$a();var _9K=$k[--$j];$p($k[--$j],_9K,_9J);$_.imp=true}}}if(!$_.imp){break}}$_.nxtlen=$a([$_.e,$_.e,$_.e,$_.e]);$_.nxtseq=$a(4);var _9X=$a([$_.A,$_.L,$_.M,$_.P]);for(var _9Y=0,_9Z=_9X.length;_9Y<_9Z;_9Y++){$_.x=$g(_9X,_9Y);for(;;){var _9f=$g($g($_.charvals,$_.x),$_.char)!==undefined;if(!_9f){break}$_.cost=$f($g($_.curlen,$_.x)+1);if($_.cost<$g($_.nxtlen,$_.x)){$p($_.nxtlen,$_.x,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.x;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$k[$j++]=$_.char;var _9w=$a();var _9x=$k[--$j];$p($k[--$j],_9x,_9w)}var _A3=$a([$_.A,$_.L,$_.M,$_.P]);for(var _A4=0,_A5=_A3.length;_A4<_A5;_A4++){$_.y=$g(_A3,_A4);if($ne($_.x,$_.y)){$_.cost=$f($f($g($_.curlen,$_.y)+$g($g($_.shftlen,$_.y),$_.x))+1);if($_.cost<$g($_.nxtlen,$_.y)){$p($_.nxtlen,$_.y,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.y));var _AV=$_.x==$_.A?$_.as:$_.ps;$k[$j++]=_AV;$k[$j++]=$_.char;var _AX=$a();var _AY=$k[--$j];$p($k[--$j],_AY,_AX)}}}break}}$_.curlen=$_.nxtlen;$_.curseq=$_.nxtseq});$_.minseq=$_.e;var _Ah=$a([$_.A,$_.L,$_.M,$_.P]);for(var _Ai=0,_Aj=_Ah.length;_Ai<_Aj;_Ai++){$_.k=$g(_Ah,_Ai);if($g($_.curlen,$_.k)<$_.minseq){$_.minseq=$g($_.curlen,$_.k);$_.txtseq=$g($_.curseq,$_.k)}}$_.text=$a($_.minseq);$_.k=0;$_.l=0;for(;;){if($_.k>=$_.txtseq.length){break}$_.char=$g($_.txtseq,$_.k);$k[$j++]=$_.char;if($_[$g($_.textencfuncs,$_.submode)]()===true){break}$_.addtotext();$_.k=$_.k+1;if($_.char==$_.as||$_.char==$_.ps){$k[$j++]=$g($_.txtseq,$_.k);if($_.char==$_.as){$_.enca()}else{$_.encp()}$_.addtotext();$_.k=$_.k+1}if($_.char==$_.al){$_.submode=$_.A}if($_.char==$_.ll){$_.submode=$_.L}if($_.char==$_.ml){$_.submode=$_.M}if($_.char==$_.pl){$_.submode=$_.P}}if($_.text.length%2==1){if($_.submode==$_.P){$k[$j++]="pad";$k[$j++]=$_.al;$_.encp();var _BY=$k[--$j];$_[$k[--$j]]=_BY;$_.submode=$_.A}else{$_.nextecitext=false;for(var _Be=$_.i+1,_Bd=$_.seq.length-1;_Be<=_Bd;_Be+=1){$_.ti=_Be;if($ne($t($g($_.seq,$_.ti)),"arraytype")){$_.nextecitext=false;break}if($g($g($_.seq,$_.ti),0)>-1e6){break}$_.nextecitext=true}if($_.nextecitext){if($_.submode==$_.A){var _Bx=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_Bx){$k[$j++]="pad";$k[$j++]=$_.ll;$_.enca();var _Bz=$k[--$j];$_[$k[--$j]]=_Bz;$_.submode=$_.L}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.enca();var _C3=$k[--$j];$_[$k[--$j]]=_C3;$_.submode=$_.M}}else{if($_.submode==$_.M){var _CF=$g($g($_.charvals,$_.L),$g($g($_.seq,$_.ti),0))!==undefined;if(_CF){$k[$j++]="pad";$k[$j++]=$_.ll;$_.encm();var _CH=$k[--$j];$_[$k[--$j]]=_CH;$_.submode=$_.L}else{var _CR=$g($g($_.charvals,$_.P),$g($g($_.seq,$_.ti),0))!==undefined;if(_CR){$k[$j++]="pad";$k[$j++]=$_.pl;$_.encm();var _CT=$k[--$j];$_[$k[--$j]]=_CT;$_.submode=$_.P}else{$k[$j++]="pad";$k[$j++]=$_.al;$_.encm();var _CX=$k[--$j];$_[$k[--$j]]=_CX;$_.submode=$_.A}}}else{$k[$j++]="pad";$k[$j++]=$_.ml;$_.encl();var _Cb=$k[--$j];$_[$k[--$j]]=_Cb;$_.submode=$_.M}}}else{$k[$j++]="pad";$k[$j++]=$_.ps;if($_[$g($_.textencfuncs,$_.submode)]()===true){return true}var _Cj=$k[--$j];$_[$k[--$j]]=_Cj}}$k[$j++]=Infinity;$q($_.text);$k[$j++]=$_.pad;$_.text=$a()}$_.out=$a(~~($_.text.length/2));for(var _Cs=0,_Cr=$_.out.length-1;_Cs<=_Cr;_Cs+=1){$_.k=_Cs;$p($_.out,$_.k,$f($g($_.text,$_.k*2)*30+$g($_.text,$_.k*2+1)))}$k[$j++]=$_.out};$_.encn=function(){$_.in=$k[--$j];$_.out=$a([]);for(var _D6=0,_D5=$_.in.length-1;_D6<=_D5;_D6+=44){$_.k=_D6;$k[$j++]=Infinity;var _DB=$_.in.length-$_.k;$k[$j++]=1;$k[$j++]=$_.in;$k[$j++]=$_.k;$k[$j++]=_DB;if(_DB>44){$j--;$k[$j++]=44}var _DC=$k[--$j];var _DD=$k[--$j];var _DF=$G($k[--$j],_DD,_DC);for(var _DG=0,_DH=_DF.length;_DG<_DH;_DG++){$k[$j++]=$f($g(_DF,_DG)-48)}$_.gmod=$a();$_.cwn=$a([]);for(;;){$_.dv=900;$_.gmul=$a([]);$_.val=0;for(;;){if($_.gmod.length==0){break}$_.val=$f($_.val*10+$g($_.gmod,0));$_.gmod=$G($_.gmod,1,$_.gmod.length-1);if($_.val<$_.dv){if($_.gmul.length!=0){$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=0;$_.gmul=$a()}}else{$k[$j++]=Infinity;$q($_.gmul);$k[$j++]=~~($_.val/$_.dv);$_.gmul=$a()}$_.val=$_.val%$_.dv}$_.dv=$_.val;$k[$j++]=Infinity;$k[$j++]=$_.dv;$q($_.cwn);$_.cwn=$a();$_.gmod=$_.gmul;if($_.gmul.length==0){break}}$k[$j++]=Infinity;$q($_.out);$q($_.cwn);$_.out=$a()}$k[$j++]=$_.out};$_.ence=function(){var _Dq=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_Dq;if(_Dq<=899){var _Dr=$k[--$j];$k[$j++]=927;$k[$j++]=_Dr;$as($a(2))}else{var _Dt=$k[--$j];$k[$j++]=_Dt;if(_Dt<=810899){var _Du=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Du/900)-1;$k[$j++]=_Du%900;$as($a(3))}else{var _Dw=$k[--$j];$k[$j++]=_Dw;if(_Dw<=811799){var _Dx=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_Dx-810900);$as($a(2))}else{$k[$j++]="bwipp.pdf417badECI#18070";$k[$j++]="PDF417 supports ECIs 000000 to 811799";bwipp_raiseerror()}}}};$_.encfuncs=$a(["enct","encn","encb"]);$_.addtocws=function(){var _E0=$k[--$j];$P($_.datcws,$_.j,_E0);$_.j=_E0.length+$_.j};$_.datcws=$a($_.seqlen);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.seq.length){break}$_.chars=$g($_.seq,$_.i);if($eq($t($_.chars),"arraytype")){if($g($_.chars,0)<=-1e6){$k[$j++]=$_.chars;$_.ence();$_.addtocws()}else{$k[$j++]=$_.chars;if($_[$g($_.encfuncs,$_.state)]()===true){break}$_.addtocws()}}else{$k[$j++]=$a([$g($_.latchcws,$_.chars)]);$_.addtocws();if($_.chars==$_.tl){$_.state=$_.T;$_.submode=$_.A}if($_.chars==$_.nl){$_.state=$_.N}if($_.chars==$_.bl||$_.chars==$_.bl6){$_.state=$_.B}if($_.chars==$_.bs){$_.i=$_.i+1;$k[$j++]=$g($_.seq,$_.i);$_.encb();$_.addtocws()}if($_.chars==$_.m05){if($_.i+1<$_.seq.length){if($g($_.seq,$_.i+1)==$_.nl){$_.i=$_.i+1}}$_.state=$_.N}if($_.chars==$_.m06){if($_.i+1<$_.seq.length){if($g($_.seq,$_.i+1)==$_.tl){$_.i=$_.i+1}}$_.state=$_.T;$_.submode=$_.M}}$_.i=$_.i+1}$_.datcws=$G($_.datcws,0,$_.j)}if(!bwipp_micropdf417.__18185__){$_=Object.create($_);$_.ccametrics=$a([$a([2,5,4,39,0,19]),$a([2,6,4,1,0,33]),$a([2,7,5,32,0,12]),$a([2,8,5,8,0,40]),$a([2,9,6,14,0,46]),$a([2,10,6,43,0,23]),$a([2,12,7,20,0,52]),$a([3,4,4,11,43,23]),$a([3,5,5,1,33,13]),$a([3,6,6,5,37,17]),$a([3,7,7,15,47,27]),$a([3,8,7,21,1,33]),$a([4,3,4,40,20,52]),$a([4,4,5,43,23,3]),$a([4,5,6,46,26,6]),$a([4,6,7,34,14,46]),$a([4,7,8,29,9,41])]);$_.nonccametrics=$a([$a([1,11,7,1,0,9]),$a([1,14,7,8,0,8]),$a([1,17,7,36,0,36]),$a([1,20,8,19,0,19]),$a([1,24,8,9,0,17]),$a([1,28,8,25,0,33]),$a([2,8,8,1,0,1]),$a([2,11,9,1,0,9]),$a([2,14,9,8,0,8]),$a([2,17,10,36,0,36]),$a([2,20,11,19,0,19]),$a([2,23,13,9,0,17]),$a([2,26,15,27,0,35]),$a([3,6,12,1,1,1]),$a([3,8,14,7,7,7]),$a([3,10,16,15,15,15]),$a([3,12,18,25,25,25]),$a([3,15,21,37,37,37]),$a([3,20,26,1,17,33]),$a([3,26,32,1,9,17]),$a([3,32,38,21,29,37]),$a([3,38,44,15,31,47]),$a([3,44,50,1,25,49]),$a([4,4,8,47,19,43]),$a([4,6,12,1,1,1]),$a([4,8,14,7,7,7]),$a([4,10,16,15,15,15]),$a([4,12,18,25,25,25]),$a([4,15,21,37,37,37]),$a([4,20,26,1,17,33]),$a([4,26,32,1,9,17]),$a([4,32,38,21,29,37]),$a([4,38,44,15,31,47]),$a([4,44,50,1,25,49])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__18185__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="metrics";if($_.cca){$k[$j++]=$_.ccametrics}else{$k[$j++]=$_.nonccametrics}var _G1=$k[--$j];$_[$k[--$j]]=_G1;$_.urows=$_.rows;$_.ucols=$_.columns;$F($_.metrics,function(){$_.m=$k[--$j];$_.c=$g($_.m,0);$_.r=$g($_.m,1);$_.k=$g($_.m,2);$_.rapl=$g($_.m,3);$_.rapc=$g($_.m,4);$_.rapr=$g($_.m,5);$_.ncws=$f($_.r*$_.c-$_.k);$_.okay=true;if($_.datcws.length>$_.ncws){$_.okay=false}if($_.urows!=0&&$_.urows!=$_.r){$_.okay=false}if($_.ucols!=0&&$_.ucols!=$_.c){$_.okay=false}if($_.okay){return true}});if(!$_.okay){$k[$j++]="bwipp.micropdf417noValidSymbol#18209";$k[$j++]="Maximum length exceeded or invalid size";bwipp_raiseerror()}$_.m=$_.datcws.length;$_.n=$f($_.c*$_.r-$_.k);$_.cws=$a($f($_.c*$_.r+1));$P($_.cws,0,$_.datcws);$k[$j++]=$_.cws;$k[$j++]=$_.m;$k[$j++]=Infinity;for(var _Gj=0,_Gk=$f($_.n-$_.m);_Gj<_Gk;_Gj++){$k[$j++]=900}var _Gl=$a();var _Gm=$k[--$j];$P($k[--$j],_Gm,_Gl);$k[$j++]=$_.cws;$k[$j++]=$_.n;$k[$j++]=Infinity;for(var _Gr=0,_Gs=$_.k;_Gr<_Gs;_Gr++){$k[$j++]=0}$k[$j++]=0;var _Gt=$a();var _Gu=$k[--$j];$P($k[--$j],_Gu,_Gt);if(!bwipp_micropdf417.__18225__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _Gw=0,_Gx=928;_Gw<_Gx;_Gw++){var _Gy=$k[--$j];$k[$j++]=_Gy;$k[$j++]=_Gy*3%929}$_.rsalog=$a();$_.rslog=$a(929);for(var _H1=1;_H1<=928;_H1+=1){$p($_.rslog,$g($_.rsalog,_H1),_H1)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__18225__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _H6=$k[--$j];var _H7=$k[--$j];$k[$j++]=_H7;$k[$j++]=_H6;if(_H6!=0&&_H7!=0){var _HA=$g($_.rslog,$k[--$j]);var _HF=$g($_.rsalog,$f(_HA+$g($_.rslog,$k[--$j]))%928);$k[$j++]=_HF}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _HH=0,_HI=$_.k;_HH<_HI;_HH++){$k[$j++]=0}$_.coeffs=$a();for(var _HM=1,_HL=$_.k;_HM<=_HL;_HM+=1){$_.i=_HM;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _HT=$_.i-1;_HT>=1;_HT-=1){$_.j=_HT;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Hf=$k[--$j];var _Hg=$k[--$j];var _Hh=$k[--$j];$p($k[--$j],_Hh,$f(_Hg+_Hf)%929)}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Hp=$k[--$j];var _Hq=$k[--$j];$p($k[--$j],_Hq,_Hp)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Hw=$_.coeffs.length-1;_Hw>=0;_Hw-=2){var _Hx=$_.coeffs;$p(_Hx,_Hw,$f(929-$g(_Hx,_Hw)))}for(var _I1=0,_I0=$f($_.n-1);_I1<=_I0;_I1+=1){$_.t=$f($g($_.cws,_I1)+$g($_.cws,$_.n))%929;for(var _I9=0,_I8=$f($_.k-1);_I9<=_I8;_I9+=1){$_.j=_I9;$p($_.cws,$f($_.n+$_.j),$f($g($_.cws,$f($f($_.n+$_.j)+1))+$f(929-$_.t*$g($_.coeffs,$f($f($_.k-$_.j)-1))%929))%929)}}for(var _IQ=$_.n,_IP=$f($_.n+$_.k);_IQ<=_IP;_IQ+=1){$p($_.cws,_IQ,$f(929-$g($_.cws,_IQ))%929)}$_.cws=$G($_.cws,0,$_.cws.length-1);var _IY=$g($_.options,"debugcws")!==undefined;if(_IY){$k[$j++]="bwipp.debugcws#18263";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_micropdf417.__18522__){$_=Object.create($_);$_.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);$_.raps=$a([$a([802,930,946,818,882,890,826,954,922,986,970,906,778,794,786,914,978,982,980,916,948,932,934,942,940,936,808,812,814,806,822,950,918,790,788,820,884,868,870,878,876,872,840,856,860,862,846,844,836,838,834,866]),$a([718,590,622,558,550,566,534,530,538,570,562,546,610,626,634,762,754,758,630,628,612,614,582,578,706,738,742,740,748,620,556,552,616,744,712,716,708,710,646,654,652,668,664,696,688,656,720,592,600,604,732,734])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_micropdf417.$ctx[id]=$_[id]);bwipp_micropdf417.__18522__=1;$_=Object.getPrototypeOf($_)}$_.cwtobits=function(){var _Ik=$g($_.clusters,$k[--$j]);$_.v=$g(_Ik,$k[--$j]);$k[$j++]=Infinity;for(var _In=0,_Io=17;_In<_Io;_In++){$k[$j++]=0}var _Ir=$R($s(17),$_.v,2);for(var _Is=0,_It=_Ir.length;_Is<_It;_Is++){$k[$j++]=$g(_Ir,_Is)-48}var _Iv=$a();$k[$j++]=$G(_Iv,_Iv.length-17,17)};$_.raptobits=function(){var _Iz=$g($_.raps,$k[--$j]);$_.v=$g(_Iz,$k[--$j]);$k[$j++]=Infinity;for(var _J2=0,_J3=10;_J2<_J3;_J2++){$k[$j++]=0}var _J6=$R($s(10),$_.v,2);for(var _J7=0,_J8=_J6.length;_J7<_J8;_J7++){$k[$j++]=$g(_J6,_J7)-48}var _JA=$a();$k[$j++]=$G(_JA,_JA.length-10,10)};$_.rwid=$g($a([38,55,82,99]),$f($_.c-1));if($_.c==3&&$_.cca){$_.rwid=72}$_.pixs=$a($_.rwid*$_.r*$_.rowmult);for(var _JN=0,_JM=$f($_.r-1);_JN<=_JM;_JN+=1){$_.i=_JN;$_.clst=$f($f($_.i+$_.rapl)-1)%3;$k[$j++]=Infinity;if($_.c==1){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}if($_.c==2){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*2);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*2+1);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}if($_.c==3){if(!$_.cca){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}$k[$j++]=$g($_.cws,$_.i*3);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapc)-1)%52;$k[$j++]=1;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*3+1);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*3+2);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}if($_.c==4){$k[$j++]=$f($f($_.i+$_.rapl)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4+1);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapc)-1)%52;$k[$j++]=1;$_.raptobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4+2);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$g($_.cws,$_.i*4+3);$k[$j++]=$_.clst;$_.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($_.i+$_.rapr)-1)%52;$k[$j++]=0;$_.raptobits();$q($k[--$j])}$k[$j++]=1;var _Kn=$a();$k[$j++]=_Kn;for(var _Kq=0,_Kp=$_.rowmult-1;_Kq<=_Kp;_Kq+=1){var _Kv=$k[--$j];$P($_.pixs,(_Kq+$_.i*$_.rowmult)*$_.rwid,_Kv);$k[$j++]=_Kv}$j--}var _L4=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.rwid],["pixy",$_.r*$_.rowmult],["height",$_.r*$_.rowmult/72],["width",$_.rwid/72],["borderleft",1],["borderright",1],["bordertop",1],["borderbottom",1],["opt",$_.options]]);$k[$j++]=_L4;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_datamatrix(){$_=Object.create($_);$_.dontdraw=false;$_.columns=0;$_.rows=0;$_.format="unset";$_.version="unset";$_.parse=false;$_.parsefnc=false;$_.c40headerlength=-1;$_.raw=false;$_.dmre=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.datamatrixEmptyData#18653";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($ne($_.version,"unset")&&($_.rows!=0||$_.columns!=0)){$k[$j++]="bwipp.datamatrixVersionRowsCols#18657";$k[$j++]="rows and columns must not be given if version is specified";bwipp_raiseerror()}if($ne($_.version,"unset")){$X($_.version,"x");if($k[--$j]){var _9=$k[--$j];var _A=$k[--$j];$k[$j++]=_9;$k[$j++]=_A;$j--;var _B=$k[--$j];var _C=$k[--$j];$k[$j++]=_C;$k[$j++]=_B;$k[$j++]=_C;$k[$j++]=_B;$as($a(2));$F($k[--$j],function(){var _F=$k[--$j];$k[$j++]=_F;$k[$j++]=true;if(_F.length==0){$j--;$k[$j++]=false}var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$F(_H,function(){var _I=$k[--$j];if(_I<48||_I>57){$j--;$k[$j++]=false}});if($nt($k[--$j])){$k[$j++]="bwipp.datamatrixVersionBadRowOrColumn#18671";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}});$_.rows=$i($k[--$j]);$_.columns=$i($k[--$j]);$k[$j++]="format";if($_.rows==$_.columns){$k[$j++]="square"}else{$k[$j++]="rectangle"}var _O=$k[--$j];$_[$k[--$j]]=_O}else{$j--;$k[$j++]="bwipp.datamatrixVersionFormat#18678";$k[$j++]="version must be formatted as RxC";bwipp_raiseerror()}}else{if($eq($_.format,"unset")){$k[$j++]="format";if($_.dmre){$k[$j++]="rectangle"}else{$k[$j++]="square"}var _S=$k[--$j];$_[$k[--$j]]=_S}}if($ne($_.format,"square")&&$ne($_.format,"rectangle")){$k[$j++]="bwipp.datamatrixInvalidFormat#18687";$k[$j++]="The format must be either square or rectangle";bwipp_raiseerror()}bwipp_loadctx(bwipp_datamatrix);if(!bwipp_datamatrix.__18747__){$_=Object.create($_);var _18=$a([16,64,1,4,36,1,1]);$_.metrics=$a([$a([10,10,1,1,5,1,0]),$a([12,12,1,1,7,1,0]),$a([14,14,1,1,10,1,0]),$a([16,16,1,1,12,1,0]),$a([18,18,1,1,14,1,0]),$a([20,20,1,1,18,1,0]),$a([22,22,1,1,20,1,0]),$a([24,24,1,1,24,1,0]),$a([26,26,1,1,28,1,0]),$a([32,32,2,2,36,1,0]),$a([36,36,2,2,42,1,0]),$a([40,40,2,2,48,1,0]),$a([44,44,2,2,56,1,0]),$a([48,48,2,2,68,1,0]),$a([52,52,2,2,84,2,0]),$a([64,64,4,4,112,2,0]),$a([72,72,4,4,144,4,0]),$a([80,80,4,4,192,4,0]),$a([88,88,4,4,224,4,0]),$a([96,96,4,4,272,4,0]),$a([104,104,4,4,336,6,0]),$a([120,120,6,6,408,6,0]),$a([132,132,6,6,496,8,0]),$a([144,144,6,6,620,10,0]),$a([8,18,1,1,7,1,0]),$a([8,32,1,2,11,1,0]),$a([8,48,1,2,15,1,1]),$a([8,64,1,4,18,1,1]),$a([8,80,1,4,22,1,1]),$a([8,96,1,4,28,1,1]),$a([8,120,1,6,32,1,1]),$a([8,144,1,6,36,1,1]),$a([12,26,1,1,14,1,0]),$a([12,36,1,2,18,1,0]),$a([12,64,1,4,27,1,1]),$a([12,88,1,4,36,1,1]),$a([16,36,1,2,24,1,0]),$a([16,48,1,2,28,1,0]),_18,$a([20,36,1,2,28,1,1]),$a([20,44,1,2,34,1,1]),$a([20,64,1,4,42,1,1]),$a([22,48,1,2,38,1,1]),$a([24,48,1,2,41,1,1]),$a([24,64,1,4,46,1,1]),$a([26,40,1,2,38,1,1]),$a([26,48,1,2,42,1,1]),$a([26,64,1,4,50,1,1])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_datamatrix.$ctx[id]=$_[id]);bwipp_datamatrix.__18747__=1;$_=Object.getPrototypeOf($_)}$_.urows=$_.rows;$_.ucols=$_.columns;$_.fullcws=$a([]);var _1N=$_.metrics;for(var _1O=0,_1P=_1N.length;_1O<_1P;_1O++){$_.m=$g(_1N,_1O);$_.rows=$g($_.m,0);$_.cols=$g($_.m,1);$_.regh=$g($_.m,2);$_.regv=$g($_.m,3);$_.rscw=$g($_.m,4);$_.rsbl=$g($_.m,5);$_.doly=$g($_.m,6);$_.mrows=$f($_.rows-2*$_.regh);$_.mcols=$f($_.cols-2*$_.regv);$_.ncws=$f(~~($_.mrows*$_.mcols/8)-$_.rscw);$_.okay=true;if($_.urows!=0&&$_.urows!=$_.rows){$_.okay=false}if($_.ucols!=0&&$_.ucols!=$_.cols){$_.okay=false}if($eq($_.format,"square")&&$ne($_.rows,$_.cols)){$_.okay=false}if($eq($_.format,"rectangle")&&$eq($_.rows,$_.cols)){$_.okay=false}if(!$_.dmre&&$_.doly==1){$_.okay=false}if($_.okay){$k[$j++]=Infinity;$q($_.fullcws);$k[$j++]=$_.ncws;$_.fullcws=$a()}}$k[$j++]=Infinity;for(var _24=0,_25=1558;_24<_25;_24++){$k[$j++]=1e4}$_.numremcws=$a();var _27=$_.fullcws;for(var _28=0,_29=_27.length;_28<_29;_28++){$p($_.numremcws,$f($g(_27,_28)-1),1)}for(var _2C=1556;_2C>=0;_2C-=1){$_.i=_2C;if($g($_.numremcws,$_.i)!=1){$p($_.numremcws,$_.i,$f($g($_.numremcws,$_.i+1)+1))}}if(!bwipp_datamatrix.__18893__){$_=Object.create($_);$_.fnc1=-1;$_.prog=-2;$_.m05=-3;$_.m06=-4;$_.lC=-5;$_.lB=-6;$_.lX=-7;$_.lT=-8;$_.lE=-9;$_.unl=-10;$_.sapp=-11;$_.usft=-12;$_.sft1=-13;$_.sft2=-14;$_.sft3=-15;$_.eci=-16;$_.pad=-17;$_.unlcw=254;$k[$j++]=Infinity;for(var _2L=0;_2L<=128;_2L+=1){$k[$j++]=_2L;$k[$j++]=_2L+1}$k[$j++]=$_.pad;$k[$j++]=129;for(var _2N=0;_2N<=99;_2N+=1){var _2P=$R($s(2),_2N,10);var _2R=$Z($s(2),"00");$P(_2R,2-_2P.length,_2P);$k[$j++]=_2R;$k[$j++]=_2N+130}var _2e=$a([$_.lC,$_.lB,$_.fnc1,$_.sapp,$_.prog,$_.usft,$_.m05,$_.m06,$_.lX,$_.lT,$_.lE,$_.eci]);$k[$j++]=229;for(var _2f=0,_2g=_2e.length;_2f<_2g;_2f++){var _2j=$f($k[--$j]+1);$k[$j++]=$g(_2e,_2f);$k[$j++]=_2j;$k[$j++]=_2j}$j--;$_.Avals=$d();$k[$j++]=Infinity;var _2l=$_.Avals;for(var _2q=_2l.size,_2p=_2l.keys(),_2o=0;_2o<_2q;_2o++){var _2m=_2p.next().value;$k[$j++]=_2m;$k[$j++]=_2l.get(_2m);$k[$j++]=Infinity;var _2r=$k[--$j];var _2s=$k[--$j];$k[$j++]=_2r;$k[$j++]=_2s;var _2t=$a();$k[$j++]=_2t}$_.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _2y=48;_2y<=57;_2y+=1){$k[$j++]=_2y;$k[$j++]=_2y-44}for(var _2z=65;_2z<=90;_2z+=1){$k[$j++]=_2z;$k[$j++]=_2z-51}$_.CNvals=$d();$k[$j++]=Infinity;for(var _31=0;_31<=31;_31+=1){$k[$j++]=_31;$k[$j++]=_31}$_.C1vals=$d();$k[$j++]=Infinity;for(var _33=33;_33<=47;_33+=1){$k[$j++]=_33;$k[$j++]=_33-33}for(var _34=58;_34<=64;_34+=1){$k[$j++]=_34;$k[$j++]=_34-43}for(var _35=91;_35<=95;_35+=1){$k[$j++]=_35;$k[$j++]=_35-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.usft;$k[$j++]=30;$_.C2vals=$d();$k[$j++]=Infinity;for(var _39=96;_39<=127;_39+=1){$k[$j++]=_39;$k[$j++]=_39-96}$_.C3vals=$d();$k[$j++]=Infinity;var _3B=$_.CNvals;for(var _3G=_3B.size,_3F=_3B.keys(),_3E=0;_3E<_3G;_3E++){var _3C=_3F.next().value;$k[$j++]=_3C;$k[$j++]=_3B.get(_3C);$k[$j++]=Infinity;var _3H=$k[--$j];var _3I=$k[--$j];$k[$j++]=_3H;$k[$j++]=_3I;var _3J=$a();$k[$j++]=_3J}var _3K=$_.C1vals;for(var _3P=_3K.size,_3O=_3K.keys(),_3N=0;_3N<_3P;_3N++){var _3L=_3O.next().value;$k[$j++]=_3L;$k[$j++]=_3K.get(_3L);$k[$j++]=Infinity;var _3Q=$k[--$j];var _3R=$k[--$j];$k[$j++]=_3Q;$k[$j++]=$g($_.CNvals,$_.sft1);$k[$j++]=_3R;var _3V=$a();$k[$j++]=_3V}var _3W=$_.C2vals;for(var _3b=_3W.size,_3a=_3W.keys(),_3Z=0;_3Z<_3b;_3Z++){var _3X=_3a.next().value;$k[$j++]=_3X;$k[$j++]=_3W.get(_3X);$k[$j++]=Infinity;var _3c=$k[--$j];var _3d=$k[--$j];$k[$j++]=_3c;$k[$j++]=$g($_.CNvals,$_.sft2);$k[$j++]=_3d;var _3h=$a();$k[$j++]=_3h}var _3i=$_.C3vals;for(var _3n=_3i.size,_3m=_3i.keys(),_3l=0;_3l<_3n;_3l++){var _3j=_3m.next().value;$k[$j++]=_3j;$k[$j++]=_3i.get(_3j);$k[$j++]=Infinity;var _3o=$k[--$j];var _3p=$k[--$j];$k[$j++]=_3o;$k[$j++]=$g($_.CNvals,$_.sft3);$k[$j++]=_3p;var _3t=$a();$k[$j++]=_3t}$_.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _3y=48;_3y<=57;_3y+=1){$k[$j++]=_3y;$k[$j++]=_3y-44}for(var _3z=97;_3z<=122;_3z+=1){$k[$j++]=_3z;$k[$j++]=_3z-83}$_.TNvals=$d();$k[$j++]=Infinity;for(var _41=0;_41<=31;_41+=1){$k[$j++]=_41;$k[$j++]=_41}$_.T1vals=$d();$k[$j++]=Infinity;for(var _43=33;_43<=47;_43+=1){$k[$j++]=_43;$k[$j++]=_43-33}for(var _44=58;_44<=64;_44+=1){$k[$j++]=_44;$k[$j++]=_44-43}for(var _45=91;_45<=95;_45+=1){$k[$j++]=_45;$k[$j++]=_45-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.usft;$k[$j++]=30;$_.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _49=65;_49<=90;_49+=1){$k[$j++]=_49;$k[$j++]=_49-64}for(var _4A=123;_4A<=127;_4A+=1){$k[$j++]=_4A;$k[$j++]=_4A-96}$_.T3vals=$d();$k[$j++]=Infinity;var _4C=$_.TNvals;for(var _4H=_4C.size,_4G=_4C.keys(),_4F=0;_4F<_4H;_4F++){var _4D=_4G.next().value;$k[$j++]=_4D;$k[$j++]=_4C.get(_4D);$k[$j++]=Infinity;var _4I=$k[--$j];var _4J=$k[--$j];$k[$j++]=_4I;$k[$j++]=_4J;var _4K=$a();$k[$j++]=_4K}var _4L=$_.T1vals;for(var _4Q=_4L.size,_4P=_4L.keys(),_4O=0;_4O<_4Q;_4O++){var _4M=_4P.next().value;$k[$j++]=_4M;$k[$j++]=_4L.get(_4M);$k[$j++]=Infinity;var _4R=$k[--$j];var _4S=$k[--$j];$k[$j++]=_4R;$k[$j++]=$g($_.TNvals,$_.sft1);$k[$j++]=_4S;var _4W=$a();$k[$j++]=_4W}var _4X=$_.T2vals;for(var _4c=_4X.size,_4b=_4X.keys(),_4a=0;_4a<_4c;_4a++){var _4Y=_4b.next().value;$k[$j++]=_4Y;$k[$j++]=_4X.get(_4Y);$k[$j++]=Infinity;var _4d=$k[--$j];var _4e=$k[--$j];$k[$j++]=_4d;$k[$j++]=$g($_.TNvals,$_.sft2);$k[$j++]=_4e;var _4i=$a();$k[$j++]=_4i}var _4j=$_.T3vals;for(var _4o=_4j.size,_4n=_4j.keys(),_4m=0;_4m<_4o;_4m++){var _4k=_4n.next().value;$k[$j++]=_4k;$k[$j++]=_4j.get(_4k);$k[$j++]=Infinity;var _4p=$k[--$j];var _4q=$k[--$j];$k[$j++]=_4p;$k[$j++]=$g($_.TNvals,$_.sft3);$k[$j++]=_4q;var _4u=$a();$k[$j++]=_4u}$_.Tvals=$d();for(var _4w=128;_4w<=255;_4w+=1){$_.i=_4w;$k[$j++]=$_.Avals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Avals,$_.usft));$q($g($_.Avals,$_.i-128));var _55=$a();var _56=$k[--$j];$p($k[--$j],_56,_55);$k[$j++]=$_.Cvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Cvals,$_.usft));$q($g($_.Cvals,$_.i-128));var _5G=$a();var _5H=$k[--$j];$p($k[--$j],_5H,_5G);$k[$j++]=$_.Tvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Tvals,$_.usft));$q($g($_.Tvals,$_.i-128));var _5R=$a();var _5S=$k[--$j];$p($k[--$j],_5S,_5R)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _5U=48;_5U<=57;_5U+=1){$k[$j++]=_5U;$k[$j++]=_5U-44}for(var _5V=65;_5V<=90;_5V+=1){$k[$j++]=_5V;$k[$j++]=_5V-51}$_.Xvals=$d();$k[$j++]=Infinity;var _5X=$_.Xvals;for(var _5c=_5X.size,_5b=_5X.keys(),_5a=0;_5a<_5c;_5a++){var _5Y=_5b.next().value;$k[$j++]=_5Y;$k[$j++]=_5X.get(_5Y);$k[$j++]=Infinity;var _5d=$k[--$j];var _5e=$k[--$j];$k[$j++]=_5d;$k[$j++]=_5e;var _5f=$a();$k[$j++]=_5f}$_.Xvals=$d();$k[$j++]=Infinity;for(var _5h=64;_5h<=94;_5h+=1){$k[$j++]=_5h;$k[$j++]=_5h-64}$k[$j++]=$_.unl;$k[$j++]=31;for(var _5j=32;_5j<=63;_5j+=1){$k[$j++]=_5j;$k[$j++]=_5j}$_.Evals=$d();$k[$j++]=Infinity;var _5l=$_.Evals;for(var _5q=_5l.size,_5p=_5l.keys(),_5o=0;_5o<_5q;_5o++){var _5m=_5p.next().value;$k[$j++]=_5m;$k[$j++]=_5l.get(_5m);$k[$j++]=Infinity;var _5r=$k[--$j];var _5s=$k[--$j];$k[$j++]=_5r;$k[$j++]=_5s;var _5t=$a();$k[$j++]=_5t}$_.Evals=$d();$k[$j++]=Infinity;for(var _5v=0;_5v<=255;_5v+=1){$k[$j++]=_5v;$k[$j++]=_5v}$_.Bvals=$d();$k[$j++]=Infinity;var _5x=$_.Bvals;for(var _62=_5x.size,_61=_5x.keys(),_60=0;_60<_62;_60++){var _5y=_61.next().value;$k[$j++]=_5y;$k[$j++]=_5x.get(_5y);$k[$j++]=Infinity;var _63=$k[--$j];var _64=$k[--$j];$k[$j++]=_63;$k[$j++]=_64;var _65=$a();$k[$j++]=_65}$_.Bvals=$d();$_.encvals=$a([$_.Avals,$_.Cvals,$_.Tvals,$_.Xvals,$_.Evals,$_.Bvals]);$_.A=0;$_.C=1;$_.T=2;$_.X=3;$_.E=4;$_.B=5;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_datamatrix.$ctx[id]=$_[id]);bwipp_datamatrix.__18893__=1;$_=Object.getPrototypeOf($_)}if($_.raw){$_.cws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.cws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.cws=$G($_.cws,0,$_.j)}else{var _6Z=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fnc1],["PROG",$_.prog]]);$_.fncvals=_6Z;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6c=$k[--$j];$_[$k[--$j]]=_6c;$_.msglen=$_.msg.length;if($_.msglen>=9){$q($G($_.msg,0,7));var _6i=$k[--$j];var _6j=$k[--$j];$k[$j++]=_6i==29;$k[$j++]=_6j;$j--;var _6k=$k[--$j];var _6l=$k[--$j];var _6m=$k[--$j];var _6n=$k[--$j];var _6o=$k[--$j];var _6p=$k[--$j];if(_6k&&_6l==48&&_6m==30&&_6n==62&&_6o==41&&_6p==91){$q($G($_.msg,$_.msglen-2,2));var _6t=$k[--$j];var _6u=$k[--$j];if(_6t==4&&_6u==30){if($g($_.msg,5)==53){$k[$j++]=Infinity;$k[$j++]=$_.m05;$q($G($_.msg,7,$_.msg.length-9));$_.msg=$a()}else{if($g($_.msg,5)==54){$k[$j++]=Infinity;$k[$j++]=$_.m06;$q($G($_.msg,7,$_.msg.length-9));$_.msg=$a()}}}}}$_.msglen=$_.msg.length;$k[$j++]=Infinity;for(var _7B=0,_7C=$_.msglen;_7B<_7C;_7B++){$k[$j++]=0}$k[$j++]=0;$_.numD=$a();$k[$j++]=Infinity;for(var _7F=0,_7G=$_.msglen;_7F<_7G;_7F++){$k[$j++]=0}$k[$j++]=9999;$_.nextXterm=$a();$k[$j++]=Infinity;for(var _7J=0,_7K=$_.msglen;_7J<_7K;_7J++){$k[$j++]=0}$k[$j++]=9999;$_.nextNonX=$a();$k[$j++]=Infinity;for(var _7N=0,_7O=$_.msglen;_7N<_7O;_7N++){$k[$j++]=false}$k[$j++]=false;$_.isECI=$a();for(var _7R=$_.msglen-1;_7R>=0;_7R-=1){$_.i=_7R;$_.barchar=$g($_.msg,$_.i);if($_.barchar>=48&&$_.barchar<=57){$p($_.numD,$_.i,$f($g($_.numD,$_.i+1)+1))}if($_.barchar==13||$_.barchar==42||$_.barchar==62){$p($_.nextXterm,$_.i,0)}else{$p($_.nextXterm,$_.i,$f($g($_.nextXterm,$_.i+1)+1))}var _7o=$g($_.Xvals,$_.barchar)!==undefined;if(!_7o){$p($_.nextNonX,$_.i,0)}else{$p($_.nextNonX,$_.i,$f($g($_.nextNonX,$_.i+1)+1))}$p($_.isECI,$_.i,$_.barchar<=-1e6)}$k[$j++]=Infinity;var _7z=$_.nextXterm;for(var _80=0,_81=_7z.length;_80<_81;_80++){var _82=$g(_7z,_80);$k[$j++]=_82;if(_82>1e4){$j--;$k[$j++]=1e4}}$_.nextXterm=$a();$k[$j++]=Infinity;var _84=$_.nextNonX;for(var _85=0,_86=_84.length;_85<_86;_85++){var _87=$g(_84,_85);$k[$j++]=_87;if(_87>1e4){$j--;$k[$j++]=1e4}}$_.nextNonX=$a();$_.isD=function(){$k[$j++]=$_.char>=48&&$_.char<=57};$_.isC=function(){var _8D=$g($_.CNvals,$_.char)!==undefined;$k[$j++]=_8D};$_.isT=function(){var _8G=$g($_.TNvals,$_.char)!==undefined;$k[$j++]=_8G};$_.isX=function(){var _8J=$g($_.Xvals,$_.char)!==undefined;$k[$j++]=_8J};$_.isE=function(){var _8M=$g($_.Evals,$_.char)!==undefined;$k[$j++]=_8M};$_.isEA=function(){$k[$j++]=$_.char>127};$_.isFN=function(){$k[$j++]=$_.char<0};$_.XtermFirst=function(){var _8P=$k[--$j];$k[$j++]=$lt($g($_.nextXterm,_8P),$g($_.nextNonX,_8P))};$_.lookup=function(){$_.ac=1;$_.cc=2;$_.tc=2;$_.xc=2;$_.ec=2;$_.bc=2.25;if($_.mode==$_.A){$_.ac=0;$_.cc=1;$_.tc=1;$_.xc=1;$_.ec=1;$_.bc=1.25}if($_.mode==$_.C){$_.cc=0}if($_.mode==$_.T){$_.tc=0}if($_.mode==$_.X){$_.xc=0}if($_.mode==$_.E){$_.ec=0}if($_.mode==$_.B){$_.bc=0}for(var _8g=0,_8h=1;_8g<_8h;_8g++){if($g($_.isECI,$_.i)){$k[$j++]=$_.A;break}if($_.c40headerlength!=-1&&$_.i<$_.c40headerlength){$k[$j++]=$_.C;break}$_.k=0;for(;;){if($_.i+$_.k==$_.msglen){var _8t=$a(["ac","cc","tc","xc","ec","bc"]);for(var _8u=0,_8v=_8t.length;_8u<_8v;_8u++){var _8w=$g(_8t,_8u);$_[_8w]=Math.ceil($_[_8w])}var _93=$a([$_.cc,$_.tc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _94=0,_95=_93.length;_94<_95;_94++){var _98=$k[--$j];$k[$j++]=_98&&$_.ac<=$g(_93,_94)}if($k[--$j]){$k[$j++]=$_.A;break}var _9G=$a([$_.ac,$_.cc,$_.tc,$_.xc,$_.ec]);$k[$j++]=true;for(var _9H=0,_9I=_9G.length;_9H<_9I;_9H++){var _9L=$k[--$j];$k[$j++]=_9L&&$_.bc<$g(_9G,_9H)}if($k[--$j]){$k[$j++]=$_.B;break}var _9T=$a([$_.ac,$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _9U=0,_9V=_9T.length;_9U<_9V;_9U++){var _9Y=$k[--$j];$k[$j++]=_9Y&&$_.ec<$g(_9T,_9U)}if($k[--$j]){$k[$j++]=$_.E;break}var _9g=$a([$_.ac,$_.cc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _9h=0,_9i=_9g.length;_9h<_9i;_9h++){var _9l=$k[--$j];$k[$j++]=_9l&&$_.tc<$g(_9g,_9h)}if($k[--$j]){$k[$j++]=$_.T;break}var _9t=$a([$_.ac,$_.cc,$_.tc,$_.ec,$_.bc]);$k[$j++]=true;for(var _9u=0,_9v=_9t.length;_9u<_9v;_9u++){var _9y=$k[--$j];$k[$j++]=_9y&&$_.xc<$g(_9t,_9u)}if($k[--$j]){$k[$j++]=$_.X;break}$k[$j++]=$_.C;break}$_.char=$g($_.msg,$_.i+$_.k);$k[$j++]="ac";$k[$j++]=$_.ac;$_.isD();if($k[--$j]){var _A8=$k[--$j];$k[$j++]=$f(_A8+1/2)}else{$_.isEA();if($k[--$j]){var _AA=$k[--$j];$k[$j++]=Math.ceil(_AA)+2}else{var _AB=$k[--$j];$k[$j++]=Math.ceil(_AB)+1}}var _AC=$k[--$j];$_[$k[--$j]]=_AC;$k[$j++]="cc";$k[$j++]=$_.cc;$_.isC();if($k[--$j]){var _AG=$k[--$j];$k[$j++]=$f(_AG+.6666667)}else{$_.isEA();if($k[--$j]){var _AI=$k[--$j];$k[$j++]=$f(_AI+2.6666667)}else{var _AJ=$k[--$j];$k[$j++]=$f(_AJ+1.3333334)}}var _AK=$k[--$j];$_[$k[--$j]]=_AK;$k[$j++]="tc";$k[$j++]=$_.tc;$_.isT();if($k[--$j]){var _AO=$k[--$j];$k[$j++]=$f(_AO+.6666667)}else{$_.isEA();if($k[--$j]){var _AQ=$k[--$j];$k[$j++]=$f(_AQ+2.6666667)}else{var _AR=$k[--$j];$k[$j++]=$f(_AR+1.3333334)}}var _AS=$k[--$j];$_[$k[--$j]]=_AS;$k[$j++]="xc";$k[$j++]=$_.xc;$_.isX();if($k[--$j]){var _AW=$k[--$j];$k[$j++]=$f(_AW+.6666667)}else{$_.isEA();if($k[--$j]){var _AY=$k[--$j];$k[$j++]=$f(_AY+4.3333334)}else{var _AZ=$k[--$j];$k[$j++]=$f(_AZ+3.3333334)}}var _Aa=$k[--$j];$_[$k[--$j]]=_Aa;$k[$j++]="ec";$k[$j++]=$_.ec;$_.isE();if($k[--$j]){var _Ae=$k[--$j];$k[$j++]=$f(_Ae+3/4)}else{$_.isEA();if($k[--$j]){var _Ag=$k[--$j];$k[$j++]=$f(_Ag+17/4)}else{var _Ah=$k[--$j];$k[$j++]=$f(_Ah+13/4)}}var _Ai=$k[--$j];$_[$k[--$j]]=_Ai;$k[$j++]="bc";$k[$j++]=$_.bc;$_.isFN();if($k[--$j]){var _Am=$k[--$j];$k[$j++]=$f(_Am+4)}else{var _An=$k[--$j];$k[$j++]=$f(_An+1)}var _Ao=$k[--$j];$_[$k[--$j]]=_Ao;if($_.k>=4){var _Aw=$a([$_.cc,$_.tc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _Ax=0,_Ay=_Aw.length;_Ax<_Ay;_Ax++){var _B1=$k[--$j];$k[$j++]=_B1&&$_.ac+1<=$g(_Aw,_Ax)}if($k[--$j]){$k[$j++]=$_.A;break}if($_.bc+1<=$_.ac){$k[$j++]=$_.B;break}var _BB=$a([$_.cc,$_.tc,$_.xc,$_.ec]);$k[$j++]=true;for(var _BC=0,_BD=_BB.length;_BC<_BD;_BC++){var _BG=$k[--$j];$k[$j++]=_BG&&$_.bc+1<$g(_BB,_BC)}if($k[--$j]){$k[$j++]=$_.B;break}var _BO=$a([$_.ac,$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _BP=0,_BQ=_BO.length;_BP<_BQ;_BP++){var _BT=$k[--$j];$k[$j++]=_BT&&$_.ec+1<$g(_BO,_BP)}if($k[--$j]){$k[$j++]=$_.E;break}var _Bb=$a([$_.ac,$_.cc,$_.xc,$_.ec,$_.bc]);$k[$j++]=true;for(var _Bc=0,_Bd=_Bb.length;_Bc<_Bd;_Bc++){var _Bg=$k[--$j];$k[$j++]=_Bg&&$_.tc+1<$g(_Bb,_Bc)}if($k[--$j]){$k[$j++]=$_.T;break}var _Bo=$a([$_.ac,$_.cc,$_.tc,$_.ec,$_.bc]);$k[$j++]=true;for(var _Bp=0,_Bq=_Bo.length;_Bp<_Bq;_Bp++){var _Bt=$k[--$j];$k[$j++]=_Bt&&$_.xc+1<$g(_Bo,_Bp)}if($k[--$j]){$k[$j++]=$_.X;break}var _C0=$a([$_.ac,$_.tc,$_.ec,$_.bc]);$k[$j++]=true;for(var _C1=0,_C2=_C0.length;_C1<_C2;_C1++){var _C5=$k[--$j];$k[$j++]=_C5&&$_.cc+1<$g(_C0,_C1)}if($k[--$j]){if($_.cc<$_.xc){$k[$j++]=$_.C;break}if($_.cc==$_.xc){$k[$j++]=$_.i+$_.k+1;$_.XtermFirst();if($k[--$j]){$k[$j++]=$_.X;break}else{$k[$j++]=$_.C;break}}}}$_.k=$_.k+1}}};$_.addtocws=function(){var _CI=$k[--$j];$P($_.cws,$_.j,_CI);$_.j=_CI.length+$_.j};$_.ECItocws=function(){var _CN=$f(-$k[--$j]-1e6);$k[$j++]=_CN;if(_CN<=126){var _CO=$k[--$j];$k[$j++]=$f(_CO+1);$as($a(1))}else{var _CQ=$k[--$j];$k[$j++]=_CQ;if(_CQ<=16382){var _CS=$f($k[--$j]-127);$k[$j++]=~~(_CS/254)+128;$k[$j++]=$f(_CS%254+1);$as($a(2))}else{var _CV=$f($k[--$j]-16383);$k[$j++]=~~(_CV/64516)+192;$k[$j++]=~~(_CV/254)%254+1;$k[$j++]=$f(_CV%254+1);$as($a(3))}}};$_.encA=function(){for(var _CX=0,_CY=1;_CX<_CY;_CX++){if($g($_.isECI,$_.i)){$k[$j++]=$g($_.Avals,$_.eci);$_.addtocws();$k[$j++]=$g($_.msg,$_.i);$_.ECItocws();$_.addtocws();$_.i=$_.i+1;break}if($g($_.numD,$_.i)>=2){var _Cm=$s(2);$p(_Cm,0,$g($_.msg,$_.i));$p(_Cm,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Cm);$_.addtocws();$_.i=$_.i+2;break}$k[$j++]="newmode";$_.lookup();var _Cw=$k[--$j];$_[$k[--$j]]=_Cw;if($_.newmode!=$_.mode){$k[$j++]=$g($_.Avals,$g($a([-1,$_.lC,$_.lT,$_.lX,$_.lE,$_.lB]),$_.newmode));$_.addtocws();$_.mode=$_.newmode;break}$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1;break}};$_.CTXvalstocws=function(){$_.in=$k[--$j];$k[$j++]=Infinity;for(var _DK=0,_DJ=$_.in.length-1;_DK<=_DJ;_DK+=3){var _DM=$G($_.in,_DK,3);$k[$j++]=0;for(var _DN=0,_DO=_DM.length;_DN<_DO;_DN++){var _DQ=$k[--$j];$k[$j++]=$f(_DQ+$g(_DM,_DN))*40}var _DS=~~($k[--$j]/40)+1;$k[$j++]=~~(_DS/256);$k[$j++]=_DS%256}$as($a($m()));var _DV=$k[--$j];var _DW=$k[--$j];$k[$j++]=_DV;$k[$j++]=_DW;$j--};$_.encCTX=function(){$_.p=0;$_.ctxvals=$a(2500);$_.done=false;for(;;){if($_.i==$_.msglen){break}var _Dg=$g($g($_.encvals,$_.mode),$g($_.msg,$_.i))!==undefined;if(!_Dg){break}if($_.p%3==0){if($_.p>0){$k[$j++]="newmode";$_.lookup();var _Dj=$k[--$j];$_[$k[--$j]]=_Dj;if($ne($_.newmode,$_.mode)){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();if($_.newmode!=$_.A){$k[$j++]=$g($_.Avals,$g($a([-1,$_.lC,$_.lT,$_.lX,$_.lE,$_.lB]),$_.newmode));$_.addtocws()}$_.mode=$_.newmode;$_.done=true;break}}if($_.msglen-$_.i<=3){$_.remcws=$g($_.numremcws,$_.j+~~($_.p/3)*2);$k[$j++]=Infinity;var _EF=$G($_.msg,$_.i,$_.msglen-$_.i);for(var _EG=0,_EH=_EF.length;_EG<_EH;_EG++){var _EI=$g(_EF,_EG);var _EM=$g($g($_.encvals,$_.mode),_EI)!==undefined;$k[$j++]=_EI;if(_EM){$q($g($g($_.encvals,$_.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$_.remvals=$a();if($_.remcws==2&&$_.remvals.length==3){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);var _EZ=$a();$k[$j++]=_EZ;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}if($_.remcws==2&&$_.remvals.length==2&&$_.mode!=$_.X){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);$q($g($g($_.encvals,$_.mode),$_.sft1));var _Ep=$a();$k[$j++]=_Ep;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}if($_.remcws==2&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}if($_.remcws==1&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;$_.done=true;break}}}var _FO=$g($g($_.encvals,$_.mode),$g($_.msg,$_.i));$P($_.ctxvals,$_.p,_FO);$_.p=_FO.length+$_.p;$_.i=$_.i+1}if(!$_.done){for(;;){if($_.p%3==0){break}$_.i=$_.i-1;$_.p=$_.p-$g($g($_.encvals,$_.mode),$g($_.msg,$_.i)).length}$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));var _Fh=$a();$k[$j++]=_Fh;$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;if($_.i!=$_.msglen&&$nt($g($_.isECI,$_.i))){if($g($_.numD,$_.i)>=2){var _Ft=$s(2);$p(_Ft,0,$g($_.msg,$_.i));$p(_Ft,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Ft);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1}}}};$_.Evalstocws=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$_.outlen=~~Math.ceil($_.in.length/4*3);$k[$j++]=Infinity;$q($_.in);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$_.in=$a();$k[$j++]=Infinity;for(var _GG=0,_GF=$_.inlen-1;_GG<=_GF;_GG+=4){var _GI=$G($_.in,_GG,4);$k[$j++]=0;for(var _GJ=0,_GK=_GI.length;_GJ<_GK;_GJ++){var _GM=$k[--$j];$k[$j++]=$or(_GM,$g(_GI,_GJ))<<6}var _GO=$k[--$j]>>>6;$k[$j++]=_GO>>>16&255;$k[$j++]=_GO>>>8&255;$k[$j++]=_GO&255}$as($a($m()));var _GR=$k[--$j];var _GS=$k[--$j];$k[$j++]=_GR;$k[$j++]=_GS;$j--;var _GV=$G($k[--$j],0,$_.outlen);$k[$j++]=_GV};$_.encE=function(){$_.p=0;$_.edifactvals=$a(2100);for(;;){if($_.i==$_.msglen){break}var _Gd=$g($_.Evals,$g($_.msg,$_.i))!==undefined;if(!_Gd){break}if($_.p%4==0){if($_.msglen-$_.i<=2){$_.remcws=$g($_.numremcws,$_.j+~~($_.p/4)*3);$k[$j++]=Infinity;var _Gp=$G($_.msg,$_.i,$_.msglen-$_.i);for(var _Gq=0,_Gr=_Gp.length;_Gq<_Gr;_Gq++){$q($g($_.Avals,$g(_Gp,_Gq)))}$_.remvals=$a();if(($_.remcws==1||$_.remcws==2)&&$_.remvals.length<=$_.remcws){$k[$j++]=$G($_.edifactvals,0,$_.p);$_.Evalstocws();$_.addtocws();$k[$j++]=$_.remvals;$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}}$_.lookup();if($k[--$j]!=$_.mode){break}}var _HC=$g($_.Evals,$g($_.msg,$_.i));$P($_.edifactvals,$_.p,_HC);$_.p=_HC.length+$_.p;$_.i=$_.i+1}if($_.mode!=$_.A){$_.remcws=$f($g($_.numremcws,$_.j+~~($_.p/4)*3-1)-1);if($_.p%4!=0||$_.i!=$_.msglen||$_.remcws>=3){var _HT=$g($_.Evals,$_.unl);$P($_.edifactvals,$_.p,_HT);$_.p=_HT.length+$_.p}$k[$j++]=$G($_.edifactvals,0,$_.p);$_.Evalstocws();$_.addtocws();$_.mode=$_.A;if($_.i!=$_.msglen&&$nt($g($_.isECI,$_.i))){if($g($_.numD,$_.i)>=2){var _Hj=$s(2);$p(_Hj,0,$g($_.msg,$_.i));$p(_Hj,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Hj);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1}}}};$_.encB=function(){$_.p=0;$_.bvals=$a(1558);for(;;){if($_.i==$_.msglen){break}$_.lookup();if($k[--$j]!=$_.mode){break}$p($_.bvals,$_.p,$g($_.msg,$_.i));$_.p=$_.p+1;$_.i=$_.i+1}$_.remcws=$f($g($_.numremcws,$_.j+$_.p)-1);$k[$j++]=Infinity;if($_.remcws==0&&$_.i==$_.msglen){$k[$j++]=0}else{if($_.p<250){$k[$j++]=$_.p}else{$k[$j++]=~~($_.p/250)+249;$k[$j++]=$_.p%250}}$q($G($_.bvals,0,$_.p));$_.bvals=$a();for(var _IS=0,_IR=$_.bvals.length-1;_IS<=_IR;_IS+=1){$_.p=_IS;var _IY=$f(($_.j+$_.p+1)*149%255+1+$g($_.bvals,$_.p));$k[$j++]=_IY;if(_IY>=256){var _IZ=$k[--$j];$k[$j++]=$f(_IZ-256)}$p($_.bvals,$_.p,$k[--$j])}$k[$j++]=$_.bvals;$_.addtocws();$_.mode=$_.A};$_.cws=$a(1558);$_.mode=$_.A;$_.i=0;$_.j=0;for(;;){if($_.i>=$_.msglen){break}if($_[$g($a(["encA","encCTX","encCTX","encCTX","encE","encB"]),$_.mode)]()===true){break}}$_.cws=$G($_.cws,0,$_.j)}$_.datlen=$_.cws.length;$_.remcws=$f($g($_.numremcws,$_.j-1)-1);if($_.remcws>0){$k[$j++]=Infinity;$q($_.cws);for(var _Ix=0,_Iy=$_.remcws;_Ix<_Iy;_Ix++){$k[$j++]=129}$_.cws=$a();for(var _J4=$_.datlen+1,_J3=$f($f($_.datlen+$_.remcws)-1);_J4<=_J3;_J4+=1){$_.i=_J4;var _J6=($_.i+1)*149%253+1+129;$k[$j++]=_J6;if(_J6>254){var _J7=$k[--$j];$k[$j++]=$f(_J7-254)}$p($_.cws,$_.i,$k[--$j])}}var _JC=$g($_.options,"debugcws")!==undefined;if(_JC){$k[$j++]="bwipp.debugcws#19314";$k[$j++]=$_.cws;bwipp_raiseerror()}var _JE=$_.metrics;for(var _JF=0,_JG=_JE.length;_JF<_JG;_JF++){$_.m=$g(_JE,_JF);$_.rows=$g($_.m,0);$_.cols=$g($_.m,1);$_.regh=$g($_.m,2);$_.regv=$g($_.m,3);$_.rscw=$g($_.m,4);$_.rsbl=$g($_.m,5);$_.doly=$g($_.m,6);$_.mrows=$f($_.rows-2*$_.regh);$_.mcols=$f($_.cols-2*$_.regv);$_.rrows=~~($_.mrows/$_.regh);$_.rcols=~~($_.mcols/$_.regv);$_.ncws=$f(~~($_.mrows*$_.mcols/8)-$_.rscw);$_.okay=true;if($_.cws.length!=$_.ncws){$_.okay=false}if($_.urows!=0&&$_.urows!=$_.rows){$_.okay=false}if($_.ucols!=0&&$_.ucols!=$_.cols){$_.okay=false}if($eq($_.format,"square")&&$ne($_.rows,$_.cols)){$_.okay=false}if($eq($_.format,"rectangle")&&$eq($_.rows,$_.cols)){$_.okay=false}if(!$_.dmre&&$_.doly==1){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.datamatrixNoValidSymbol#19342";$k[$j++]="Maximum length exceeded or invalid size";bwipp_raiseerror()}$_.cwbs=$a($_.rsbl);$_.ecbs=$a($_.rsbl);for(var _K5=0,_K4=$f($_.rsbl-1);_K5<=_K4;_K5+=1){$_.i=_K5;if($_.cws.length!=1558){$_.cwbsize=~~($_.cws.length/$_.rsbl)}else{if($_.i<=7){$_.cwbsize=156}else{$_.cwbsize=155}}$_.cwb=$a($_.cwbsize);for(var _KE=0,_KD=$_.cwbsize-1;_KE<=_KD;_KE+=1){$_.j=_KE;$p($_.cwb,$_.j,$g($_.cws,$f($_.j*$_.rsbl+$_.i)))}$p($_.cwbs,$_.i,$_.cwb);$k[$j++]=$_.ecbs;$k[$j++]=$_.i;$k[$j++]=Infinity;for(var _KT=0,_KU=~~($_.rscw/$_.rsbl);_KT<_KU;_KT++){$k[$j++]=0}var _KV=$a();var _KW=$k[--$j];$p($k[--$j],_KW,_KV)}if(!bwipp_datamatrix.__19369__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _KY=0,_KZ=255;_KY<_KZ;_KY++){var _Ka=$k[--$j];var _Kb=_Ka*2;$k[$j++]=_Ka;$k[$j++]=_Kb;if(_Kb>=256){var _Kc=$k[--$j];$k[$j++]=_Kc^301}}$_.rsalog=$a();$_.rslog=$a(256);for(var _Kf=1;_Kf<=255;_Kf+=1){$p($_.rslog,$g($_.rsalog,_Kf),_Kf)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_datamatrix.$ctx[id]=$_[id]);bwipp_datamatrix.__19369__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _Kk=$k[--$j];var _Kl=$k[--$j];$k[$j++]=_Kl;$k[$j++]=_Kk;if(_Kk!=0&&_Kl!=0){var _Ko=$g($_.rslog,$k[--$j]);var _Kt=$g($_.rsalog,$f(_Ko+$g($_.rslog,$k[--$j]))%255);$k[$j++]=_Kt}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Kw=0,_Kx=~~($_.rscw/$_.rsbl);_Kw<_Kx;_Kw++){$k[$j++]=0}$_.coeffs=$a();for(var _L2=1,_L1=~~($_.rscw/$_.rsbl);_L2<=_L1;_L2+=1){$_.i=_L2;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _L9=$_.i-1;_L9>=1;_L9-=1){$_.j=_L9;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _LL=$k[--$j];var _LM=$k[--$j];var _LN=$k[--$j];$p($k[--$j],_LN,$xo(_LM,_LL))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _LV=$k[--$j];var _LW=$k[--$j];$p($k[--$j],_LW,_LV)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Ld=0,_Lc=$_.cwbs.length-1;_Ld<=_Lc;_Ld+=1){$_.i=_Ld;$_.cwb=$g($_.cwbs,$_.i);$_.ecb=$g($_.ecbs,$_.i);for(var _Lm=0,_Ll=$_.cwb.length-1;_Lm<=_Ll;_Lm+=1){$_.t=$xo($g($_.cwb,_Lm),$g($_.ecb,0));for(var _Ls=$_.ecb.length-1;_Ls>=0;_Ls-=1){$_.j=_Ls;$_.p=$_.ecb.length-$_.j-1;$k[$j++]=$_.ecb;$k[$j++]=$_.p;$k[$j++]=$_.t;$k[$j++]=$g($_.coeffs,$_.j);$_.rsprod();var _M1=$k[--$j];var _M2=$k[--$j];$p($k[--$j],_M2,_M1);if($_.j>0){$p($_.ecb,$_.p,$xo($g($_.ecb,$_.p+1),$g($_.ecb,$_.p)))}}}}if($_.ncws==1558){$k[$j++]=Infinity;var _MF=$G($_.ecbs,8,2);for(var _MG=0,_MH=_MF.length;_MG<_MH;_MG++){$k[$j++]=$g(_MF,_MG)}var _MK=$G($_.ecbs,0,8);for(var _ML=0,_MM=_MK.length;_ML<_MM;_ML++){$k[$j++]=$g(_MK,_ML)}$_.ecbs=$a()}$k[$j++]=Infinity;var _MP=$_.cws;for(var _MQ=0,_MR=_MP.length;_MQ<_MR;_MQ++){$k[$j++]=$g(_MP,_MQ)}for(var _MU=0,_MV=$_.rscw;_MU<_MV;_MU++){$k[$j++]=0}$_.cws=$a();for(var _MZ=0,_MY=$f($_.rscw-1);_MZ<=_MY;_MZ+=1){$_.i=_MZ;$p($_.cws,$f($_.ncws+$_.i),$g($g($_.ecbs,$_.i%$_.rsbl),~~($_.i/$_.rsbl)))}$_.module=function(){var _Mk=$k[--$j];var _Ml=$k[--$j];var _Mm=$k[--$j];var _Mp=$Z($s(8),"00000000");var _Mr=$R($s(8),$k[--$j],2);$P(_Mp,8-_Mr.length,_Mr);$k[$j++]=_Mm;$k[$j++]=_Ml;$k[$j++]=_Mk;$k[$j++]=_Mp;for(var _Ms=7;_Ms>=0;_Ms-=1){var _Mt=$k[--$j];$k[$j++]=$f($g(_Mt,_Ms)-48);$k[$j++]=_Mt}$j--;var _Mv=$k[--$j];var _Mw=$k[--$j];var _Mx=$k[--$j];var _My=$k[--$j];var _Mz=$k[--$j];var _N0=$k[--$j];var _N1=$k[--$j];var _N2=$k[--$j];var _N3=$k[--$j];var _N4=$k[--$j];var _N5=$k[--$j];$k[$j++]=_N2;$k[$j++]=_N1;$k[$j++]=_N0;$k[$j++]=_Mz;$k[$j++]=_My;$k[$j++]=_Mx;$k[$j++]=_Mw;$k[$j++]=_Mv;$k[$j++]=_N5;$k[$j++]=_N4;$F(_N3,function(){if($k[--$j]()===true){return true}var _N7=$k[--$j];var _N8=$k[--$j];$k[$j++]=_N8;$k[$j++]=_N7;if(_N8<0){var _N9=$k[--$j];var _NA=$k[--$j];$k[$j++]=$f(_NA+$_.mrows);$k[$j++]=$f(_N9+$f(4-$f($_.mrows+4)%8))}var _ND=$k[--$j];$k[$j++]=_ND;if(_ND<0){var _NF=$k[--$j];var _NG=$k[--$j];$k[$j++]=$f(_NG+$f(4-$f($_.mcols+4)%8));$k[$j++]=$f(_NF+$_.mcols)}var _NI=$k[--$j];var _NJ=$k[--$j];$k[$j++]=_NJ;$k[$j++]=_NI;if(_NJ>=$_.mrows){var _NL=$k[--$j];var _NM=$k[--$j];$k[$j++]=$f(_NM-$_.mrows);$k[$j++]=_NL}var _NO=$k[--$j];var _NP=$k[--$j];var _NS=$k[--$j];var _NT=$k[--$j];$p($_.mmat,$f(_NO+_NP*$_.mcols),$k[--$j]);$k[$j++]=_NT;$k[$j++]=_NS})};var _Nl=$a([function(){var _NV=$k[--$j];var _NW=$k[--$j];$k[$j++]=_NW;$k[$j++]=_NV;$k[$j++]=$f(_NW-2);$k[$j++]=$f(_NV-2)},function(){var _NX=$k[--$j];var _NY=$k[--$j];$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=$f(_NY-2);$k[$j++]=$f(_NX-1)},function(){var _NZ=$k[--$j];var _Na=$k[--$j];$k[$j++]=_Na;$k[$j++]=_NZ;$k[$j++]=$f(_Na-1);$k[$j++]=$f(_NZ-2)},function(){var _Nb=$k[--$j];var _Nc=$k[--$j];$k[$j++]=_Nc;$k[$j++]=_Nb;$k[$j++]=$f(_Nc-1);$k[$j++]=$f(_Nb-1)},function(){var _Nd=$k[--$j];var _Ne=$k[--$j];$k[$j++]=_Ne;$k[$j++]=_Nd;$k[$j++]=$f(_Ne-1);$k[$j++]=_Nd},function(){var _Nf=$k[--$j];var _Ng=$k[--$j];$k[$j++]=_Ng;$k[$j++]=_Nf;$k[$j++]=_Ng;$k[$j++]=$f(_Nf-2)},function(){var _Nh=$k[--$j];var _Ni=$k[--$j];$k[$j++]=_Ni;$k[$j++]=_Nh;$k[$j++]=_Ni;$k[$j++]=$f(_Nh-1)},function(){var _Nj=$k[--$j];var _Nk=$k[--$j];$k[$j++]=_Nk;$k[$j++]=_Nj;$k[$j++]=_Nk;$k[$j++]=_Nj}]);$_.dmn=_Nl;var _Nu=$a([function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=1},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=2},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($_.mcols-1)}]);$_.dmc1=_Nu;var _O3=$a([function(){$k[$j++]=$f($_.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-4)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)}]);$_.dmc2=_O3;var _OC=$a([function(){$k[$j++]=$f($_.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($_.mcols-1)}]);$_.dmc3=_OC;var _OM=$a([function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($_.mrows-1);$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($_.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-3)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-2)},function(){$k[$j++]=1;$k[$j++]=$f($_.mcols-1)}]);$_.dmc4=_OM;$k[$j++]=Infinity;for(var _OP=0,_OQ=$_.mrows*$_.mcols;_OP<_OQ;_OP++){$k[$j++]=-1}$_.mmat=$a();for(var _OT=$_.cws.length-1;_OT>=0;_OT-=1){$k[$j++]=$g($_.cws,_OT)}$k[$j++]=4;$k[$j++]=0;for(;;){var _OW=$k[--$j];var _OX=$k[--$j];$k[$j++]=_OX;$k[$j++]=_OW;if(_OW==0&&_OX==$_.mrows){$k[$j++]=$_.dmc1;$_.module()}var _Oa=$k[--$j];var _Ob=$k[--$j];$k[$j++]=_Ob;$k[$j++]=_Oa;if(_Oa==0&&_Ob==$f($_.mrows-2)&&$_.mcols%4!=0){$k[$j++]=$_.dmc2;$_.module()}var _Of=$k[--$j];var _Og=$k[--$j];$k[$j++]=_Og;$k[$j++]=_Of;if(_Of==0&&_Og==$f($_.mrows-2)&&$_.mcols%8==4){$k[$j++]=$_.dmc3;$_.module()}var _Ok=$k[--$j];var _Ol=$k[--$j];$k[$j++]=_Ol;$k[$j++]=_Ok;if(_Ok==2&&_Ol==$f($_.mrows+4)&&$_.mcols%8==0){$k[$j++]=$_.dmc4;$_.module()}for(;;){var _Op=$k[--$j];var _Oq=$k[--$j];$k[$j++]=_Oq;$k[$j++]=_Op;if(_Op>=0&&_Oq<$_.mrows){var _Os=$k[--$j];var _Ot=$k[--$j];$k[$j++]=_Ot;$k[$j++]=_Os;if($g($_.mmat,$f(_Os+_Ot*$_.mcols))==-1){$k[$j++]=$_.dmn;$_.module()}}var _Oy=$k[--$j];var _Oz=$k[--$j];$k[$j++]=$f(_Oz-2);$k[$j++]=$f(_Oy+2);if(!($f(_Oy+2)<$_.mcols&&$f(_Oz-2)>=0)){break}}var _P1=$k[--$j];var _P2=$k[--$j];$k[$j++]=$f(_P2+1);$k[$j++]=$f(_P1+3);for(;;){var _P3=$k[--$j];var _P4=$k[--$j];$k[$j++]=_P4;$k[$j++]=_P3;if(_P3<$_.mcols&&_P4>=0){var _P6=$k[--$j];var _P7=$k[--$j];$k[$j++]=_P7;$k[$j++]=_P6;if($g($_.mmat,$f(_P6+_P7*$_.mcols))==-1){$k[$j++]=$_.dmn;$_.module()}}var _PC=$k[--$j];var _PD=$k[--$j];$k[$j++]=$f(_PD+2);$k[$j++]=$f(_PC-2);if(!($f(_PC-2)>=0&&$f(_PD+2)<$_.mrows)){break}}var _PF=$k[--$j];var _PG=$k[--$j];$k[$j++]=$f(_PG+3);$k[$j++]=$f(_PF+1);if(!($f(_PF+1)<$_.mcols||$f(_PG+3)<$_.mrows)){$j-=2;break}}if($g($_.mmat,$f($_.mrows*$_.mcols-1))==-1){$P($_.mmat,$f($_.mrows*$f($_.mcols-1)-2),$a([1,0]));$P($_.mmat,$f($_.mrows*$_.mcols-2),$a([0,1]))}$_.pixs=$a($_.rows*$_.cols);$_.cwpos=0;for(var _Pa=0,_PZ=$f($_.rows-1);_Pa<=_PZ;_Pa+=1){$_.i=_Pa;if($_.i%($_.rrows+2)==0){$k[$j++]=$_.pixs;$k[$j++]=$_.i*$_.cols;$k[$j++]=Infinity;for(var _Ph=0,_Pi=~~($_.cols/2);_Ph<_Pi;_Ph++){$k[$j++]=1;$k[$j++]=0}var _Pj=$a();var _Pk=$k[--$j];$P($k[--$j],_Pk,_Pj)}if($_.i%($_.rrows+2)==$_.rrows+1){$k[$j++]=$_.pixs;$k[$j++]=$_.i*$_.cols;$k[$j++]=Infinity;for(var _Pt=0,_Pu=$_.cols;_Pt<_Pu;_Pt++){$k[$j++]=1}var _Pv=$a();var _Pw=$k[--$j];$P($k[--$j],_Pw,_Pv)}if($_.i%($_.rrows+2)!=0&&$_.i%($_.rrows+2)!=$_.rrows+1){for(var _Q5=0,_Q4=$f($_.cols-1);_Q5<=_Q4;_Q5+=1){$_.j=_Q5;if($_.j%($_.rcols+2)==0){$p($_.pixs,$f($_.i*$_.cols+$_.j),1)}if($_.j%($_.rcols+2)==$_.rcols+1){$p($_.pixs,$f($_.i*$_.cols+$_.j),$_.i%2)}if($_.j%($_.rcols+2)!=0&&$_.j%($_.rcols+2)!=$_.rcols+1){$p($_.pixs,$f($_.i*$_.cols+$_.j),$g($_.mmat,$_.cwpos));$_.cwpos=$_.cwpos+1}}}}var _Qd=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.cols],["pixy",$_.rows],["height",$_.rows*2/72],["width",$_.cols*2/72],["borderleft",1],["borderright",1],["bordertop",1],["borderbottom",1],["opt",$_.options]]);$k[$j++]=_Qd;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_datamatrixrectangular(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_datamatrixrectangularextension(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"dmre",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_mailmark(){$_=Object.create($_);$_.type="unset";$_.parse=false;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];var _A=$_["type"];if($ne(_A,"7")&&($ne(_A,"9")&&$ne(_A,"29"))){$k[$j++]="bwipp.mailmarkBadType#19720";$k[$j++]="Royal Mail Mailmark type must be 7, 9 or 29";bwipp_raiseerror()}var _B=new Map([["7","24x24"],["9","32x32"],["29","16x48"]]);$_.version=$g(_B,$_["type"]);var _E=new Map([["7","square"],["9","square"],["29","rectangle"]]);$_.format=$g(_E,$_["type"]);if($_.barcode.length<45){$k[$j++]="bwipp.mailmarkBadLength#19736";$k[$j++]="Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding";bwipp_raiseerror()}if($ne($G($_.barcode,0,4),"JGB ")){$k[$j++]="bwipp.mailmarkBadIndicator#19739";$k[$j++]="Royal Mail Mailmark must begin with JGB identifier";bwipp_raiseerror()}$p($_.options,"dontdraw",true);$p($_.options,"version",$_.version);$p($_.options,"format",$_.format);$p($_.options,"c40headerlength",45);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _S=$k[--$j];$_[$k[--$j]]=_S;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_qrcode(){$_=Object.create($_);$_.dontdraw=false;$_.format="unset";$_.version="unset";$_.eclevel="unset";$_.parse=false;$_.parsefnc=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_qrcode);if($eq($_.barcode,"")){$k[$j++]="bwipp.qrcodeEmptyData#19802";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($ne($_.version,"unset")){if($eq($_.format,"unset")){$k[$j++]="full";if($eq($G($_.version,0,1),"M")){$j--;$k[$j++]="micro"}if($eq($G($_.version,0,1),"R")){$j--;$k[$j++]="rmqr"}$_.format=$k[--$j]}}else{if($eq($_.format,"unset")){$_.format="full"}}if($ne($_.format,"full")&&($ne($_.format,"micro")&&$ne($_.format,"rmqr"))){$k[$j++]="bwipp.qrcodeInvalidFormat#19818";$k[$j++]="The format must be either full, micro or rmqr";bwipp_raiseerror()}if($eq($_.format,"rmqr")&&$eq($_.version,"unset")){$k[$j++]="bwipp.qrcodeRMQRwithoutVersion#19822";$k[$j++]="A version must be provided for RMQR";bwipp_raiseerror()}if($eq($_.eclevel,"unset")){$k[$j++]="eclevel";if($ne($_.format,"micro")){$k[$j++]="M"}else{$k[$j++]="L"}var _I=$k[--$j];$_[$k[--$j]]=_I}if($ne($_.eclevel,"L")&&($ne($_.eclevel,"M")&&($ne($_.eclevel,"Q")&&$ne($_.eclevel,"H")))){$k[$j++]="bwipp.qrcodeInvalidEClevel#19829";$k[$j++]="Error correction level must be either L, M, Q, or H";bwipp_raiseerror()}if($_.mask!=-1&&$eq($_.format,"rmqr")){$k[$j++]="bwipp.qrcodeRMQRmask#19833";$k[$j++]="A mask cannot be supplied for RMQR";bwipp_raiseerror()}if($_.mask!=-1){var _U=$eq($_.format,"full")?8:4;if($_.mask<1||$_.mask>_U){$k[$j++]="bwipp.qrcodeBadMask#19838";$k[$j++]="An invalid mask was supplied";bwipp_raiseerror()}}$_.fn1=-1;var _Y=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1]]);$_.fncvals=_Y;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _b=$k[--$j];$_[$k[--$j]]=_b;$_.msglen=$_.msg.length;$_.fnc1first=false;if($_.msglen>0){if($g($_.msg,0)==$_.fn1){$_.fnc1first=true;$k[$j++]=Infinity;var _k=$G($_.msg,1,$_.msglen-1);for(var _l=0,_m=_k.length;_l<_m;_l++){var _n=$g(_k,_l);$k[$j++]=_n;if(_n==37){var _o=$k[--$j];$k[$j++]=_o;$k[$j++]=_o}}$_.msg=$a();$_.msglen=$_.msg.length}}if(!bwipp_qrcode.__19982__){$_=Object.create($_);var _r=$a(["v1to9","v10to26","v27to40","vM1","vM2","vM3","vM4","vR7x43","vR7x59","vR7x77","vR7x99","vR7x139","vR9x43","vR9x59","vR9x77","vR9x99","vR9x139","vR11x27","vR11x43","vR11x59","vR11x77","vR11x99","vR11x139","vR13x27","vR13x43","vR13x59","vR13x77","vR13x99","vR13x139","vR15x43","vR15x59","vR15x77","vR15x99","vR15x139","vR17x43","vR17x59","vR17x77","vR17x99","vR17x139"]);$k[$j++]=0;for(var _s=0,_t=_r.length;_s<_t;_s++){var _v=$k[--$j];$_[$g(_r,_s)]=_v;$k[$j++]=$f(_v+1)}$j--;$_.N=0;$_.A=1;$_.B=2;$_.K=3;$_.E=4;$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _w=48;_w<=57;_w+=1){$k[$j++]=_w}var _x=$a();for(var _y=0,_z=_x.length;_y<_z;_y++){$k[$j++]=$g(_x,_y);$k[$j++]=-1}$_.Nexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=32;$k[$j++]=36;$k[$j++]=37;$k[$j++]=42;$k[$j++]=43;$k[$j++]=45;$k[$j++]=46;$k[$j++]=47;$k[$j++]=58;for(var _12=65;_12<=90;_12+=1){$k[$j++]=_12}$k[$j++]=$_.fn1;var _14=$a();for(var _15=0,_16=_14.length;_15<_16;_15++){$k[$j++]=$g(_14,_15);$k[$j++]=-1}$_.Aexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _19=129;_19<=159;_19+=1){$k[$j++]=_19}for(var _1A=224;_1A<=235;_1A+=1){$k[$j++]=_1A}var _1B=$a();for(var _1C=0,_1D=_1B.length;_1C<_1D;_1C++){$k[$j++]=$g(_1B,_1C);$k[$j++]=-1}$_.Kexcl=$d();$k[$j++]=Infinity;$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["",-1,-1,-1,-1]);$k[$j++]=$a(["0","1",-1,-1,-1]);$k[$j++]=$a(["00","01","10","11",-1]);$k[$j++]=$a(["000","001","010","011",-1]);for(var _1N=0,_1O=32;_1N<_1O;_1N++){$k[$j++]=$a(["001","010","011","100","111"])}$_.mids=$a();$_.cclens=$a([$a([10,9,8,8]),$a([12,11,16,10]),$a([14,13,16,12]),$a([3,-1,-1,-1]),$a([4,3,-1,-1]),$a([5,4,4,3]),$a([6,5,5,4]),$a([4,3,3,2]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([4,4,3,2]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([5,5,4,3]),$a([6,6,5,5]),$a([7,6,6,5]),$a([7,7,6,6]),$a([8,7,7,6]),$a([8,8,7,7]),$a([7,6,6,5]),$a([7,7,6,5]),$a([8,7,7,6]),$a([8,7,7,6]),$a([9,8,7,7]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([8,8,7,6]),$a([9,8,8,7])]);$k[$j++]=Infinity;for(var _25=0,_26=3;_25<_26;_25++){$k[$j++]=4}$k[$j++]=3;$k[$j++]=5;$k[$j++]=7;$k[$j++]=9;for(var _27=0,_28=32;_27<_28;_27++){$k[$j++]=3}$_.termlens=$a();$_.padstrs=$a(["11101100","00010001"]);$_.charmap="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";$_.charvals=new Map;for(var _2B=0;_2B<=44;_2B+=1){$p($_.charvals,$g($_.charmap,_2B),_2B)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__19982__=1;$_=Object.getPrototypeOf($_)}$_.tobin=function(){var _2H=$s($k[--$j]);$k[$j++]=_2H;for(var _2J=0,_2I=_2H.length-1;_2J<=_2I;_2J+=1){var _2K=$k[--$j];$p(_2K,_2J,48);$k[$j++]=_2K}var _2L=$k[--$j];var _2O=$R($s(_2L.length),$k[--$j],2);$P(_2L,_2L.length-_2O.length,_2O);$k[$j++]=_2L};$_.encA=function(){$_.in=$k[--$j];if($_.fnc1first){$k[$j++]=Infinity;$F($_.in,function(){var _2S=$k[--$j];$k[$j++]=_2S;if(_2S==$_.fn1){$j--;$k[$j++]=37}});$_.in=$a()}$_.out=$s(~~($_.in.length*11/2)+1);$_.k=0;$_.m=0;for(;;){if($_.k==$_.in.length){break}if($_.k<$_.in.length-1){$k[$j++]=$f($g($_.charvals,$g($_.in,$_.k))*45+$g($_.charvals,$g($_.in,$_.k+1)));$k[$j++]=11;$_.tobin();$_.k=$_.k+2}else{$k[$j++]=$g($_.charvals,$g($_.in,$_.k));$k[$j++]=6;$_.tobin();$_.k=$_.k+1}var _2s=$k[--$j];$P($_.out,$_.m,_2s);$_.m=_2s.length+$_.m}$k[$j++]=$G($_.out,0,$_.m)};$_.encN=function(){$_.in=$k[--$j];$_.out=$s(~~($_.in.length*10/3)+1);$_.k=0;$_.m=0;for(;;){if($_.k==$_.in.length){break}if($_.k<$_.in.length-2){var _38=$G($_.in,$_.k,3);$k[$j++]=0;for(var _39=0,_3A=_38.length;_39<_3A;_39++){var _3C=$k[--$j];$k[$j++]=$f($g(_38,_39)+$f(_3C*10-48))}$k[$j++]=10;$_.tobin();$_.k=$_.k+3}else{if($_.k==$_.in.length-2){var _3I=$G($_.in,$_.k,2);$k[$j++]=0;for(var _3J=0,_3K=_3I.length;_3J<_3K;_3J++){var _3M=$k[--$j];$k[$j++]=$f($g(_3I,_3J)+$f(_3M*10-48))}$k[$j++]=7;$_.tobin();$_.k=$_.k+2}else{var _3Q=$G($_.in,$_.k,1);$k[$j++]=0;for(var _3R=0,_3S=_3Q.length;_3R<_3S;_3R++){var _3U=$k[--$j];$k[$j++]=$f($g(_3Q,_3R)+$f(_3U*10-48))}$k[$j++]=4;$_.tobin();$_.k=$_.k+1}}var _3W=$k[--$j];$P($_.out,$_.m,_3W);$_.m=_3W.length+$_.m}$k[$j++]=$G($_.out,0,$_.m)};$_.encB=function(){$_.in=$k[--$j];if($_.fnc1first){$k[$j++]=Infinity;$F($_.in,function(){var _3g=$k[--$j];$k[$j++]=_3g;if(_3g==$_.fn1){$j--;$k[$j++]=29}});$_.in=$a()}$_.out=$s($_.in.length*8);for(var _3n=0,_3m=$_.in.length-1;_3n<=_3m;_3n+=1){$_.k=_3n;$k[$j++]=$i($g($_.in,$_.k));$k[$j++]=8;$_.tobin();$P($_.out,$_.k*8,$k[--$j])}$k[$j++]=$_.out};$_.encK=function(){$_.in=$k[--$j];$_.out=$s(~~($_.in.length/2)*13);$_.k=0;$_.m=0;for(;;){if($_.k==$_.in.length){break}var _46=$f($g($_.in,$_.k)*256+$g($_.in,$_.k+1));$k[$j++]=_46;if(_46<57408){$k[$j++]=33088}else{$k[$j++]=49472}var _47=$k[--$j];var _49=$f($k[--$j]-_47);$k[$j++]=$f((_49>>>8)*192+(_49&255));$k[$j++]=13;$_.tobin();var _4A=$k[--$j];$P($_.out,$_.m,_4A);$_.m=_4A.length+$_.m;$_.k=$_.k+2}$k[$j++]=$_.out};$_.encE=function(){var _4I=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_4I;if(_4I<=127){$k[$j++]=8;$_.tobin()}else{var _4J=$k[--$j];$k[$j++]=_4J;if(_4J<=16383){var _4K=$k[--$j];$k[$j++]=$f(_4K+32768);$k[$j++]=16;$_.tobin()}else{var _4L=$k[--$j];$k[$j++]=$f(_4L+12582912);$k[$j++]=24;$_.tobin()}}};$_.encfuncs=$a(["encN","encA","encB","encK","encE"]);$_.addtobits=function(){var _4N=$k[--$j];$P($_.bits,$_.j,_4N);$_.j=_4N.length+$_.j};$k[$j++]=Infinity;for(var _4S=0,_4T=$_.msglen;_4S<_4T;_4S++){$k[$j++]=0}$k[$j++]=0;$_.numNs=$a();$k[$j++]=Infinity;for(var _4W=0,_4X=$_.msglen;_4W<_4X;_4W++){$k[$j++]=0}$k[$j++]=0;$_.numAs=$a();$k[$j++]=Infinity;for(var _4a=0,_4b=$_.msglen;_4a<_4b;_4a++){$k[$j++]=0}$k[$j++]=0;$_.numAorNs=$a();$k[$j++]=Infinity;for(var _4e=0,_4f=$_.msglen;_4e<_4f;_4e++){$k[$j++]=0}$k[$j++]=0;$_.numBs=$a();$k[$j++]=Infinity;for(var _4i=0,_4j=$_.msglen;_4i<_4j;_4i++){$k[$j++]=0}$k[$j++]=0;$_.numKs=$a();$k[$j++]=Infinity;for(var _4m=0,_4n=$_.msglen;_4m<_4n;_4m++){$k[$j++]=0}$k[$j++]=9999;$_.nextNs=$a();$k[$j++]=Infinity;for(var _4q=0,_4r=$_.msglen;_4q<_4r;_4q++){$k[$j++]=0}$k[$j++]=9999;$_.nextBs=$a();$k[$j++]=Infinity;for(var _4u=0,_4v=$_.msglen;_4u<_4v;_4u++){$k[$j++]=0}$k[$j++]=9999;$_.nextAs=$a();$k[$j++]=Infinity;for(var _4y=0,_4z=$_.msglen;_4y<_4z;_4y++){$k[$j++]=0}$k[$j++]=9999;$_.nextKs=$a();$_.isECI=$a($_.msglen);for(var _54=$_.msglen-1;_54>=0;_54-=1){$_.i=_54;$_.barchar=$g($_.msg,$_.i);var _5A=$g($_.Kexcl,$_.barchar)!==undefined;if(_5A){$k[$j++]="sjis";if($_.i+1<$_.msglen){$k[$j++]=$f($_.barchar*256+$g($_.msg,$_.i+1))}else{$k[$j++]=0}var _5H=$k[--$j];$_[$k[--$j]]=_5H;if($_.sjis>=33088&&$_.sjis<=40956||$_.sjis>=57408&&$_.sjis<=60351){$p($_.nextKs,$_.i,0);$p($_.numKs,$_.i,$f($g($_.numKs,$_.i+2)+1))}else{$p($_.nextKs,$_.i,$f($g($_.nextKs,$_.i+1)+1))}}else{$p($_.nextKs,$_.i,$f($g($_.nextKs,$_.i+1)+1))}var _5g=$g($_.Nexcl,$_.barchar)!==undefined;if(_5g){$p($_.nextNs,$_.i,0);$p($_.numNs,$_.i,$f($g($_.numNs,$_.i+1)+1));$p($_.numAorNs,$_.i,$f($g($_.numAorNs,$_.i+1)+1))}else{$p($_.nextNs,$_.i,$f($g($_.nextNs,$_.i+1)+1))}var _60=$g($_.Aexcl,$_.barchar)!==undefined;if(_60){$p($_.nextAs,$_.i,0);$p($_.numAs,$_.i,$f($g($_.numAs,$_.i+1)+1));$p($_.numAorNs,$_.i,$f($g($_.numAorNs,$_.i+1)+1))}else{$p($_.nextAs,$_.i,$f($g($_.nextAs,$_.i+1)+1))}$p($_.isECI,$_.i,$_.barchar<=-1e6)}for(var _6N=0,_6M=$_.msglen-1;_6N<=_6M;_6N+=1){$_.i=_6N;if($g($_.numKs,$_.i)>0){$p($_.numKs,$_.i+1,0);$p($_.nextKs,$_.i+1,$f($g($_.nextKs,$_.i+1)+1))}}for(var _6Z=$_.msglen-1;_6Z>=0;_6Z-=1){$_.i=_6Z;if($f($g($_.numNs,$_.i)+$f($g($_.numAs,$_.i)+$g($_.numKs,$_.i)))==0&&$nt($g($_.isECI,$_.i))){$p($_.nextBs,$_.i,0);$p($_.numBs,$_.i,$f($g($_.numBs,$_.i+1)+1))}else{$p($_.nextBs,$_.i,$f($g($_.nextBs,$_.i+1)+1))}}$_.KbeforeB=function(){var _71=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_71)&&$g($_.nextBs,$f($_.numK*2+$_.i))==0};$_.KbeforeA=function(){var _79=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_79)&&$g($_.nextAs,$f($_.numK*2+$_.i))==0};$_.KbeforeN=function(){var _7H=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_7H)&&$g($_.nextNs,$f($_.numK*2+$_.i))==0};$_.KbeforeE=function(){var _7P=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numK,_7P)&&$f($_.numK*2+$_.i)==$_.msglen};$_.AbeforeK=function(){var _7W=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7W)&&$g($_.nextKs,$f($_.numA+$_.i))==0};$_.AbeforeB=function(){var _7e=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7e)&&$g($_.nextBs,$f($_.numA+$_.i))==0};$_.AbeforeN=function(){var _7m=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7m)&&$g($_.nextNs,$f($_.numA+$_.i))==0};$_.AbeforeE=function(){var _7u=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numA,_7u)&&$f($_.numA+$_.i)==$_.msglen};$_.NbeforeK=function(){var _81=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_81)&&$g($_.nextKs,$f($_.numN+$_.i))==0};$_.NbeforeB=function(){var _89=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_89)&&$g($_.nextBs,$f($_.numN+$_.i))==0};$_.NbeforeA=function(){var _8H=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_8H)&&$g($_.nextAs,$f($_.numN+$_.i))==0};$_.NbeforeE=function(){var _8P=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numN,_8P)&&$f($_.numN+$_.i)==$_.msglen};$_.AorNbeforeB=function(){var _8W=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numAorN,_8W)&&$g($_.nextBs,$f($_.numAorN+$_.i))==0};$_.AorNbeforeE=function(){var _8e=$g($k[--$j],$_.ver);$k[$j++]=$ge($_.numAorN,_8e)&&$f($_.numAorN+$_.i)==$_.msglen};$_.nextNslt=function(){if($g($_.nextNs,$_.i)>=$_.msglen){$j--;$k[$j++]=true}else{var _8u=$g($k[--$j],$_.ver);$k[$j++]=$lt($g($_.numNs,$f($g($_.nextNs,$_.i)+$_.i)),_8u)}};if(!bwipp_qrcode.__20183__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]="full";$k[$j++]=Infinity;for(var _8v=0;_8v<=9;_8v+=1){$k[$j++]=$R($s(2),_8v,10);$k[$j++]=$_.v1to9}for(var _8z=10;_8z<=26;_8z+=1){$k[$j++]=$R($s(2),_8z,10);$k[$j++]=$_.v10to26}for(var _93=27;_93<=40;_93+=1){$k[$j++]=$R($s(2),_93,10);$k[$j++]=$_.v27to40}var _97=$d();var _9C=new Map([["M1",$_.vM1],["M2",$_.vM2],["M3",$_.vM3],["M4",$_.vM4]]);var _9j=new Map([["R7x43",$_.vR7x43],["R7x59",$_.vR7x59],["R7x77",$_.vR7x77],["R7x99",$_.vR7x99],["R7x139",$_.vR7x139],["R9x43",$_.vR9x43],["R9x59",$_.vR9x59],["R9x77",$_.vR9x77],["R9x99",$_.vR9x99],["R9x139",$_.vR9x139],["R11x27",$_.vR11x27],["R11x43",$_.vR11x43],["R11x59",$_.vR11x59],["R11x77",$_.vR11x77],["R11x99",$_.vR11x99],["R11x139",$_.vR11x139],["R13x27",$_.vR13x27],["R13x43",$_.vR13x43],["R13x59",$_.vR13x59],["R13x77",$_.vR13x77],["R13x99",$_.vR13x99],["R13x139",$_.vR13x139],["R15x43",$_.vR15x43],["R15x59",$_.vR15x59],["R15x77",$_.vR15x77],["R15x99",$_.vR15x99],["R15x139",$_.vR15x139],["R17x43",$_.vR17x43],["R17x59",$_.vR17x59],["R17x77",$_.vR17x77],["R17x99",$_.vR17x99],["R17x139",$_.vR17x139]]);$k[$j++]=_97;$k[$j++]="micro";$k[$j++]=_9C;$k[$j++]="rmqr";$k[$j++]=_9j;$_.versetmap=$d();$_.versetfull=$a([$_.v1to9,$_.v10to26,$_.v27to40]);$_.versetmicro=$a([$_.vM1,$_.vM2,$_.vM3,$_.vM4]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20183__=1;$_=Object.getPrototypeOf($_)}if($ne($_.version,"unset")){var _9y=$g($_.versetmap,$_.format);var _9z=$_.version;var _A0=$g(_9y,_9z)!==undefined;$k[$j++]=_9y;$k[$j++]=_9z;if(!_A0){$j-=2;if($eq($_.format,"full")){$k[$j++]="bwipp.qrcodeInvalidFullVersion#20189";$k[$j++]="Valid versions for QR Code symbols are 1 to 40";bwipp_raiseerror()}else{if($eq($_.format,"micro")){$k[$j++]="bwipp.qrcodeInvalidMicroVersion#20192";$k[$j++]="Valid versions for Micro QR Code symbols are M1 to M4";bwipp_raiseerror()}else{$k[$j++]="bwipp.qrcodeInvalidRMQRversion#20194";$k[$j++]="Invalid version for an RMQR symbol";bwipp_raiseerror()}}}var _A3=$k[--$j];var _A5=$g($k[--$j],_A3);$k[$j++]=_A5;$k[$j++]=Infinity;var _A6=$k[--$j];var _A7=$k[--$j];$k[$j++]=_A6;$k[$j++]=_A7;$_.verset=$a()}else{if($eq($_.format,"full")){$_.verset=$_.versetfull}if($eq($_.format,"micro")){$_.verset=$_.versetmicro}}$k[$j++]=Infinity;for(var _AD=0,_AE=39;_AD<_AE;_AD++){$k[$j++]=-1}$_.msgbits=$a();$_.e=1e4;if(!bwipp_qrcode.__20237__){$_=Object.create($_);$_.mode0forceKB=$a([1,1,1,$_.e,$_.e,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]);$_.mode0forceA=$a([1,1,1,$_.e,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]);$_.mode0forceN=$a([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]);$_.mode0NbeforeB=$a([4,4,5,$_.e,$_.e,2,3,2,2,3,3,3,2,3,3,3,3,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]);$_.modeBKbeforeB=$a([9,12,13,$_.e,$_.e,4,6,4,5,6,6,6,5,6,6,6,7,4,6,6,6,7,7,5,6,6,7,7,7,6,6,7,7,7,6,7,7,7,8]);$_.modeBKbeforeA=$a([8,10,11,$_.e,$_.e,4,5,4,5,5,6,6,5,5,6,6,6,4,5,6,6,6,6,5,6,6,6,6,7,6,6,6,6,7,6,6,6,7,7]);$_.modeBKbeforeN=$a([8,9,11,$_.e,$_.e,3,5,3,4,5,5,5,4,5,5,5,6,3,5,5,5,6,6,4,5,5,6,6,6,5,5,6,6,7,5,6,6,6,7]);$_.modeBKbeforeE=$a([5,5,6,$_.e,$_.e,2,3,2,3,3,3,3,3,3,3,3,4,2,3,3,3,4,4,3,3,3,4,4,4,3,3,4,4,4,3,4,4,4,4]);$_.modeBAbeforeK=$a([11,12,14,$_.e,$_.e,5,7,5,6,7,8,8,6,7,8,8,8,6,7,8,8,8,8,6,8,8,8,8,9,8,8,8,8,9,8,8,8,9,9]);$_.modeBAbeforeB=$a([11,15,16,$_.e,$_.e,6,7,6,7,7,8,8,7,7,8,8,8,6,7,8,8,8,9,7,8,8,8,9,9,8,8,9,9,9,8,8,9,9,10]);$_.modeBAbeforeN=$a([12,13,15,$_.e,$_.e,6,8,6,7,8,8,8,7,8,8,8,9,6,8,8,8,9,9,7,8,8,9,9,10,8,9,9,9,10,8,9,9,10,10]);$_.modeBAbeforeE=$a([6,7,8,$_.e,$_.e,3,4,3,4,4,4,4,4,4,4,4,5,4,4,4,4,5,5,4,4,4,5,5,5,4,5,5,5,5,4,5,5,5,5]);$_.modeBNbeforeK=$a([6,7,8,$_.e,$_.e,3,4,3,4,4,5,5,4,4,5,5,5,3,4,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5]);$_.modeBNbeforeB=$a([6,8,9,$_.e,$_.e,3,4,3,4,4,5,5,4,4,5,5,5,3,4,5,5,5,5,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,6]);$_.modeBNbeforeA=$a([6,7,8,$_.e,$_.e,3,4,3,4,4,5,5,4,4,5,5,5,4,4,5,5,5,5,4,5,5,5,5,5,5,5,5,5,6,5,5,5,5,6]);$_.modeBNbeforeE=$a([3,4,4,$_.e,$_.e,2,3,2,2,3,3,3,2,3,3,3,3,2,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]);$_.modeANbeforeA=$a([13,15,17,$_.e,5,7,9,7,8,9,9,9,8,9,9,9,11,7,9,9,9,11,11,8,9,9,10,11,11,9,10,11,11,11,9,11,11,11,11]);$_.modeANbeforeB=$a([13,17,18,$_.e,$_.e,7,9,7,8,9,9,9,8,9,9,9,10,7,9,9,9,10,11,8,9,9,9,11,11,9,9,11,11,11,9,10,11,11,11]);$_.modeANbeforeE=$a([7,8,9,$_.e,3,4,5,4,5,5,5,5,5,5,5,5,6,4,5,5,5,6,6,5,5,5,5,6,6,5,5,6,6,6,5,6,6,6,6]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20237__=1;$_=Object.getPrototypeOf($_)}var _B7=$_.verset;for(var _B8=0,_B9=_B7.length;_B8<_B9;_B8++){$_.ver=$g(_B7,_B8);$_.mode=-1;$_.seq=$a([]);$_.i=0;for(;;){if($_.i>=$_.msglen){break}$_.numK=$g($_.numKs,$_.i);$_.numB=$g($_.numBs,$_.i);$_.numA=$g($_.numAs,$_.i);$_.numN=$g($_.numNs,$_.i);$_.numAorN=$g($_.numAorNs,$_.i);$_.eci=$g($_.isECI,$_.i);if($eq($_.ver,$_.vM1)&&$_.numA>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM1)&&$_.numB>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM1)&&$_.numK>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM1)&&$_.eci){$_.seq=-1;break}if($eq($_.ver,$_.vM2)&&$_.numB>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM2)&&$_.numK>=1){$_.seq=-1;break}if($eq($_.ver,$_.vM2)&&$_.eci){$_.seq=-1;break}if($eq($_.ver,$_.vM3)&&$_.eci){$_.seq=-1;break}if($eq($_.ver,$_.vM4)&&$_.eci){$_.seq=-1;break}for(;;){if($_.eci){$k[$j++]=$_.E;break}if($_.mode==-1){$k[$j++]=$_.mode0forceKB;$_.KbeforeA();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.mode0forceKB;$_.KbeforeN();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeE;$_.KbeforeB();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.mode0forceKB;$_.KbeforeE();if($k[--$j]){$k[$j++]=$_.K;break}if($_.numK>=1){$k[$j++]=$_.B;break}$k[$j++]=$_.mode0NbeforeB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.mode0forceKB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.B;break}$k[$j++]=$_.modeANbeforeE;$_.NbeforeA();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.mode0forceN;$_.NbeforeE();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBAbeforeE;$_.AbeforeK();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeE;$_.AorNbeforeB();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.mode0forceA;$_.AorNbeforeE();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.B;break}if($_.mode==$_.B){$k[$j++]=$_.modeBKbeforeB;$_.KbeforeB();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeA;$_.KbeforeA();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeN;$_.KbeforeN();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBKbeforeE;$_.KbeforeE();if($k[--$j]){$k[$j++]=$_.K;break}$k[$j++]=$_.modeBAbeforeK;$_.AbeforeK();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeB;$_.AbeforeB();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeN;$_.AbeforeN();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBAbeforeE;$_.AbeforeE();if($k[--$j]){$k[$j++]=$_.A;break}$k[$j++]=$_.modeBNbeforeK;$_.NbeforeK();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBNbeforeB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBNbeforeA;$_.NbeforeA();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBNbeforeE;$_.NbeforeE();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeBAbeforeE;$_.AorNbeforeE();var _DH=$k[--$j];if(_DH&&$le($_.numAorN,$g($_.modeBAbeforeN,$_.ver))){$k[$j++]=$_.modeBNbeforeA;$_.nextNslt();if($k[--$j]){$k[$j++]=$_.A;break}}$k[$j++]=$_.B;break}if($_.mode==$_.A){if($_.numK>=1){$k[$j++]=$_.K;break}if($_.numB>=1){$k[$j++]=$_.B;break}$k[$j++]=$_.modeANbeforeA;$_.NbeforeA();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeANbeforeB;$_.NbeforeB();if($k[--$j]){$k[$j++]=$_.N;break}$k[$j++]=$_.modeANbeforeE;$_.NbeforeE();if($k[--$j]){$k[$j++]=$_.N;break}if($_.numA>=1||$_.numN>=1){$k[$j++]=$_.A;break}$k[$j++]=$_.B;break}if($_.mode==$_.N){if($_.numK>=1){$k[$j++]=$_.K;break}if($_.numB>=1){$k[$j++]=$_.B;break}if($_.numA>=1){$k[$j++]=$_.A;break}if($_.numN>=1){$k[$j++]=$_.N;break}$k[$j++]=$_.B;break}if($_.mode==$_.K){if($_.numB>=1){$k[$j++]=$_.B;break}if($_.numA>=1){$k[$j++]=$_.A;break}if($_.numN>=1){$k[$j++]=$_.N;break}if($_.numK>=1){$k[$j++]=$_.K;break}$k[$j++]=$_.B;break}}var _E1=$k[--$j];$k[$j++]=_E1;if(_E1==$_.K&&$_.fnc1first){$j--;$k[$j++]=$_.B}var _E5=$k[--$j];$k[$j++]=_E5;if(_E5==$_.mode){$j--;var _EB=$_.mode==$_.K?2:1;$_.dat=$G($_.msg,$_.i,_EB);$k[$j++]=Infinity;$q($_.seq);$k[$j++]=Infinity;var _EE=$k[--$j];var _EF=$k[--$j];$k[$j++]=_EE;$q(_EF);$q($_.dat);var _EH=$a();$k[$j++]=_EH;$_.seq=$a()}else{$_.mode=$k[--$j];if($_.mode==$_.K){$k[$j++]=$_.K;$k[$j++]=$G($_.msg,$_.i,$_.numK*2)}if($_.mode==$_.B){$k[$j++]=$_.B;$k[$j++]=$G($_.msg,$_.i,$_.numB)}if($_.mode==$_.A){$k[$j++]=$_.A;$k[$j++]=$G($_.msg,$_.i,$_.numA)}if($_.mode==$_.N){$k[$j++]=$_.N;$k[$j++]=$G($_.msg,$_.i,$_.numN)}if($_.mode==$_.E){$_.mode=-1;$k[$j++]=$_.E;$k[$j++]=$G($_.msg,$_.i,1)}$_.dat=$k[--$j];$_.sw=$k[--$j];$k[$j++]=Infinity;$q($_.seq);$k[$j++]=$_.sw;$k[$j++]=$_.dat;$_.seq=$a()}$_.i=$_.i+$_.dat.length}for(;;){if($_.seq==-1){break}$_.bits=$s(23648);$_.j=0;if($_.fnc1first){if($lt($_.ver,$_.vR7x43)){$k[$j++]="0101"}else{$k[$j++]="101"}$_.addtobits()}$_.abort=false;for(var _F7=0,_F6=$_.seq.length-1;_F7<=_F6;_F7+=2){$_.i=_F7;$_.mode=$g($_.seq,$_.i);$k[$j++]=$g($g($_.mids,$_.ver),$_.mode);$_.addtobits();$_.chars=$g($_.seq,$_.i+1);$k[$j++]="charslen";$k[$j++]=$_.chars.length;if($_.mode==$_.K){var _FM=$k[--$j];$k[$j++]=~~(_FM/2)}var _FN=$k[--$j];$_[$k[--$j]]=_FN;if($_.mode!=$_.E){$_.cclen=$g($g($_.cclens,$_.ver),$_.mode);if($_.charslen>=~~Math.pow(2,$_.cclen)){$_.abort=true;break}$k[$j++]=$_.charslen;$k[$j++]=$_.cclen;$_.tobin();$_.addtobits()}$k[$j++]=$_.chars;if($_[$g($_.encfuncs,$_.mode)]()===true){break}$_.addtobits()}if($_.abort){break}$_.bits=$G($_.bits,0,$_.j);$p($_.msgbits,$_.ver,$_.bits);break}}if(!bwipp_qrcode.__20455__){$_=Object.create($_);$_.metrics=$a([$a(["micro","M1",$_.vM1,11,11,98,99,36,$a([2,99,99,99]),$a([1,0,-1,-1,-1,-1,-1,-1])]),$a(["micro","M2",$_.vM2,13,13,98,99,80,$a([5,6,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M3",$_.vM3,15,15,98,99,132,$a([6,8,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M4",$_.vM4,17,17,98,99,192,$a([8,10,14,99]),$a([1,0,1,0,1,0,-1,-1])]),$a(["full","1",$_.v1to9,21,21,98,99,208,$a([7,10,13,17]),$a([1,0,1,0,1,0,1,0])]),$a(["full","2",$_.v1to9,25,25,18,99,359,$a([10,16,22,28]),$a([1,0,1,0,1,0,1,0])]),$a(["full","3",$_.v1to9,29,29,22,99,567,$a([15,26,36,44]),$a([1,0,1,0,2,0,2,0])]),$a(["full","4",$_.v1to9,33,33,26,99,807,$a([20,36,52,64]),$a([1,0,2,0,2,0,4,0])]),$a(["full","5",$_.v1to9,37,37,30,99,1079,$a([26,48,72,88]),$a([1,0,2,0,2,2,2,2])]),$a(["full","6",$_.v1to9,41,41,34,99,1383,$a([36,64,96,112]),$a([2,0,4,0,4,0,4,0])]),$a(["full","7",$_.v1to9,45,45,22,38,1568,$a([40,72,108,130]),$a([2,0,4,0,2,4,4,1])]),$a(["full","8",$_.v1to9,49,49,24,42,1936,$a([48,88,132,156]),$a([2,0,2,2,4,2,4,2])]),$a(["full","9",$_.v1to9,53,53,26,46,2336,$a([60,110,160,192]),$a([2,0,3,2,4,4,4,4])]),$a(["full","10",$_.v10to26,57,57,28,50,2768,$a([72,130,192,224]),$a([2,2,4,1,6,2,6,2])]),$a(["full","11",$_.v10to26,61,61,30,54,3232,$a([80,150,224,264]),$a([4,0,1,4,4,4,3,8])]),$a(["full","12",$_.v10to26,65,65,32,58,3728,$a([96,176,260,308]),$a([2,2,6,2,4,6,7,4])]),$a(["full","13",$_.v10to26,69,69,34,62,4256,$a([104,198,288,352]),$a([4,0,8,1,8,4,12,4])]),$a(["full","14",$_.v10to26,73,73,26,46,4651,$a([120,216,320,384]),$a([3,1,4,5,11,5,11,5])]),$a(["full","15",$_.v10to26,77,77,26,48,5243,$a([132,240,360,432]),$a([5,1,5,5,5,7,11,7])]),$a(["full","16",$_.v10to26,81,81,26,50,5867,$a([144,280,408,480]),$a([5,1,7,3,15,2,3,13])]),$a(["full","17",$_.v10to26,85,85,30,54,6523,$a([168,308,448,532]),$a([1,5,10,1,1,15,2,17])]),$a(["full","18",$_.v10to26,89,89,30,56,7211,$a([180,338,504,588]),$a([5,1,9,4,17,1,2,19])]),$a(["full","19",$_.v10to26,93,93,30,58,7931,$a([196,364,546,650]),$a([3,4,3,11,17,4,9,16])]),$a(["full","20",$_.v10to26,97,97,34,62,8683,$a([224,416,600,700]),$a([3,5,3,13,15,5,15,10])]),$a(["full","21",$_.v10to26,101,101,28,50,9252,$a([224,442,644,750]),$a([4,4,17,0,17,6,19,6])]),$a(["full","22",$_.v10to26,105,105,26,50,10068,$a([252,476,690,816]),$a([2,7,17,0,7,16,34,0])]),$a(["full","23",$_.v10to26,109,109,30,54,10916,$a([270,504,750,900]),$a([4,5,4,14,11,14,16,14])]),$a(["full","24",$_.v10to26,113,113,28,54,11796,$a([300,560,810,960]),$a([6,4,6,14,11,16,30,2])]),$a(["full","25",$_.v10to26,117,117,32,58,12708,$a([312,588,870,1050]),$a([8,4,8,13,7,22,22,13])]),$a(["full","26",$_.v10to26,121,121,30,58,13652,$a([336,644,952,1110]),$a([10,2,19,4,28,6,33,4])]),$a(["full","27",$_.v27to40,125,125,34,62,14628,$a([360,700,1020,1200]),$a([8,4,22,3,8,26,12,28])]),$a(["full","28",$_.v27to40,129,129,26,50,15371,$a([390,728,1050,1260]),$a([3,10,3,23,4,31,11,31])]),$a(["full","29",$_.v27to40,133,133,30,54,16411,$a([420,784,1140,1350]),$a([7,7,21,7,1,37,19,26])]),$a(["full","30",$_.v27to40,137,137,26,52,17483,$a([450,812,1200,1440]),$a([5,10,19,10,15,25,23,25])]),$a(["full","31",$_.v27to40,141,141,30,56,18587,$a([480,868,1290,1530]),$a([13,3,2,29,42,1,23,28])]),$a(["full","32",$_.v27to40,145,145,34,60,19723,$a([510,924,1350,1620]),$a([17,0,10,23,10,35,19,35])]),$a(["full","33",$_.v27to40,149,149,30,58,20891,$a([540,980,1440,1710]),$a([17,1,14,21,29,19,11,46])]),$a(["full","34",$_.v27to40,153,153,34,62,22091,$a([570,1036,1530,1800]),$a([13,6,14,23,44,7,59,1])]),$a(["full","35",$_.v27to40,157,157,30,54,23008,$a([570,1064,1590,1890]),$a([12,7,12,26,39,14,22,41])]),$a(["full","36",$_.v27to40,161,161,24,50,24272,$a([600,1120,1680,1980]),$a([6,14,6,34,46,10,2,64])]),$a(["full","37",$_.v27to40,165,165,28,54,25568,$a([630,1204,1770,2100]),$a([17,4,29,14,49,10,24,46])]),$a(["full","38",$_.v27to40,169,169,32,58,26896,$a([660,1260,1860,2220]),$a([4,18,13,32,48,14,42,32])]),$a(["full","39",$_.v27to40,173,173,26,54,28256,$a([720,1316,1950,2310]),$a([20,4,40,7,43,22,10,67])]),$a(["full","40",$_.v27to40,177,177,30,58,29648,$a([750,1372,2040,2430]),$a([19,6,18,31,34,34,20,61])]),$a(["rmqr","R7x43",$_.vR7x43,7,43,22,99,104,$a([99,7,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x59",$_.vR7x59,7,59,20,40,171,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x77",$_.vR7x77,7,77,26,52,261,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x99",$_.vR7x99,7,99,24,50,358,$a([99,16,99,30]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x139",$_.vR7x139,7,139,28,56,545,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x43",$_.vR9x43,9,43,22,99,170,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x59",$_.vR9x59,9,59,20,40,267,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x77",$_.vR9x77,9,77,26,52,393,$a([99,18,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R9x99",$_.vR9x99,9,99,24,50,532,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x139",$_.vR9x139,9,139,28,56,797,$a([99,36,99,66]),$a([-1,-1,1,1,-1,-1,3,0])]),$a(["rmqr","R11x27",$_.vR11x27,11,27,98,99,122,$a([99,8,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x43",$_.vR11x43,11,43,22,99,249,$a([99,12,99,20]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x59",$_.vR11x59,11,59,20,40,376,$a([99,16,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x77",$_.vR11x77,11,77,26,52,538,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x99",$_.vR11x99,11,99,24,50,719,$a([99,32,99,60]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R11x139",$_.vR11x139,11,139,28,56,1062,$a([99,48,99,90]),$a([-1,-1,2,0,-1,-1,3,0])]),$a(["rmqr","R13x27",$_.vR13x27,13,27,98,99,172,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x43",$_.vR13x43,13,43,22,99,329,$a([99,14,99,28]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x59",$_.vR13x59,13,59,20,40,486,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R13x77",$_.vR13x77,13,77,26,52,684,$a([99,32,99,56]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R13x99",$_.vR13x99,13,99,24,50,907,$a([99,40,99,78]),$a([-1,-1,1,1,-1,-1,1,2])]),$a(["rmqr","R13x139",$_.vR13x139,13,139,28,56,1328,$a([99,60,99,112]),$a([-1,-1,2,1,-1,-1,2,2])]),$a(["rmqr","R15x43",$_.vR15x43,15,43,22,99,409,$a([99,18,99,36]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R15x59",$_.vR15x59,15,59,20,40,596,$a([99,26,99,48]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R15x77",$_.vR15x77,15,77,26,52,830,$a([99,36,99,72]),$a([-1,-1,1,1,-1,-1,2,1])]),$a(["rmqr","R15x99",$_.vR15x99,15,99,24,50,1095,$a([99,48,99,88]),$a([-1,-1,2,0,-1,-1,4,0])]),$a(["rmqr","R15x139",$_.vR15x139,15,139,28,56,1594,$a([99,72,99,130]),$a([-1,-1,2,1,-1,-1,1,4])]),$a(["rmqr","R17x43",$_.vR17x43,17,43,22,99,489,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R17x59",$_.vR17x59,17,59,20,40,706,$a([99,32,99,60]),$a([-1,-1,2,0,-1,-1,2,0])]),$a(["rmqr","R17x77",$_.vR17x77,17,77,26,52,976,$a([99,44,99,84]),$a([-1,-1,2,0,-1,-1,1,2])]),$a(["rmqr","R17x99",$_.vR17x99,17,99,24,50,1283,$a([99,60,99,104]),$a([-1,-1,2,1,-1,-1,4,0])]),$a(["rmqr","R17x139",$_.vR17x139,17,139,28,56,1860,$a([99,80,99,156]),$a([-1,-1,4,0,-1,-1,2,4])])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20455__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="eclval";$X("LMQH",$_.eclevel);$j--;var _Kj=$k[--$j];var _Kk=$k[--$j];$k[$j++]=_Kj.length;$k[$j++]=_Kk;$j--;var _Kl=$k[--$j];var _Km=$k[--$j];$k[$j++]=_Kl;$k[$j++]=_Km;$j--;var _Kn=$k[--$j];$_[$k[--$j]]=_Kn;for(var _Kr=0,_Kq=$_.metrics.length-1;_Kr<=_Kq;_Kr+=1){$_.i=_Kr;$_.m=$g($_.metrics,$_.i);$_.frmt=$g($_.m,0);$_.vers=$g($_.m,1);$_.vergrp=$g($_.m,2);$_.verind=$_.i-44;$_.rows=$g($_.m,3);$_.cols=$g($_.m,4);$_.asp2=$g($_.m,5);$_.asp3=$g($_.m,6);$_.nmod=$g($_.m,7);$_.ncws=~~($_.nmod/8);$_.rbit=$_.nmod%8;$_.lc4b=false;if($eq($_.vers,"M1")||$eq($_.vers,"M3")){$_.ncws=$_.ncws+1;$_.rbit=0;$_.lc4b=true}$_.ecws=$g($g($_.m,8),$_.eclval);$_.dcws=$f($_.ncws-$_.ecws);var _LP=$_.lc4b?4:0;$_.dmod=$f($_.dcws*8-_LP);$_.ecb1=$g($g($_.m,9),$_.eclval*2);$_.ecb2=$g($g($_.m,9),$f($_.eclval*2+1));$_.okay=true;if($ne($_.format,$_.frmt)){$_.okay=false}if($eq($_.frmt,"micro")&&$_.fnc1first){$_.okay=false}if($ne($_.version,"unset")&&$ne($_.version,$_.vers)){$_.okay=false}if($_.ecb1==-1||$_.ecb2==-1){$_.okay=false}$_.verbits=$g($_.msgbits,$_.vergrp);if($_.verbits==-1){$_.okay=false}else{if($_.verbits.length>$_.dmod){$_.okay=false}}$_.term=$G("000000000",0,$g($_.termlens,$_.vergrp));if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.qrcodeNoValidSymbol#20499";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}$_.format=$_.frmt;$_.version=$_.vers;$_.msgbits=$_.verbits;$_.dcpb=~~($_.dcws/$f($_.ecb1+$_.ecb2));$_.ecpb=~~($_.ncws/$f($_.ecb1+$_.ecb2))-$_.dcpb;var _M3=$_.term;var _M4=$_.dmod;var _M5=$_.msgbits;var _M6=$_.term;var _M7=_M6.length;var _M8=$f(_M4-_M5.length);if($f(_M4-_M5.length)>_M6.length){var _=_M7;_M7=_M8;_M8=_}$_.term=$G(_M3,0,_M8);var _MC=$s($_.msgbits.length+$_.term.length);$P(_MC,0,$_.msgbits);$P(_MC,$_.msgbits.length,$_.term);$_.msgbits=_MC;$_.pad=$s($_.dmod);for(var _MK=0,_MJ=$_.pad.length-1;_MK<=_MJ;_MK+=1){$p($_.pad,_MK,48)}$P($_.pad,0,$_.msgbits);$_.padnum=0;var _MR=$_.lc4b?5:1;for(var _MT=~~(Math.ceil($_.msgbits.length/8)*8),_MS=$f($_.dmod-_MR);_MT<=_MS;_MT+=8){$P($_.pad,_MT,$g($_.padstrs,$_.padnum));$_.padnum=($_.padnum+1)%2}$_.cws=$a($_.dcws);for(var _Md=0,_Mc=$_.cws.length-1;_Md<=_Mc;_Md+=1){$_.c=_Md;$_.bpcw=8;if($_.lc4b&&$_.c==$_.cws.length-1){$_.bpcw=4}$_.cwb=$G($_.pad,$_.c*8,$_.bpcw);$_.cw=0;for(var _Mn=0,_Mm=$_.bpcw-1;_Mn<=_Mm;_Mn+=1){$_.i=_Mn;$_.cw=$f($_.cw+~~Math.pow(2,$_.bpcw-$_.i-1)*$f($g($_.cwb,$_.i)-48))}$p($_.cws,$_.c,$_.cw)}if($_.lc4b){var _My=$_.cws;var _Mz=$_.cws;$p(_My,_Mz.length-1,$g(_My,_Mz.length-1)<<4)}var _N2=$g($_.options,"debugcws")!==undefined;if(_N2){$k[$j++]="bwipp.debugcws#20543";$k[$j++]=$_.cws;bwipp_raiseerror()}if(!bwipp_qrcode.__20550__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _N4=0,_N5=255;_N4<_N5;_N4++){var _N6=$k[--$j];var _N7=_N6*2;$k[$j++]=_N6;$k[$j++]=_N7;if(_N7>=256){var _N8=$k[--$j];$k[$j++]=_N8^285}}$_.rsalog=$a();$_.rslog=$a(256);for(var _NB=1;_NB<=255;_NB+=1){$p($_.rslog,$g($_.rsalog,_NB),_NB)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20550__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _NG=$k[--$j];var _NH=$k[--$j];$k[$j++]=_NH;$k[$j++]=_NG;if(_NG!=0&&_NH!=0){var _NK=$g($_.rslog,$k[--$j]);var _NP=$g($_.rsalog,$f(_NK+$g($_.rslog,$k[--$j]))%255);$k[$j++]=_NP}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _NR=0,_NS=$_.ecpb;_NR<_NS;_NR++){$k[$j++]=0}$_.coeffs=$a();for(var _NW=0,_NV=$_.ecpb-1;_NW<=_NV;_NW+=1){$_.i=_NW;$p($_.coeffs,$_.i+1,$g($_.coeffs,$_.i));for(var _Nd=$_.i;_Nd>=1;_Nd-=1){$_.j=_Nd;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Np=$k[--$j];var _Nq=$k[--$j];var _Nr=$k[--$j];$p($k[--$j],_Nr,$xo(_Nq,_Np))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Nz=$k[--$j];var _O0=$k[--$j];$p($k[--$j],_O0,_Nz)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);$_.rscodes=function(){$_.rscws=$k[--$j];$_.rsnd=$_.rscws.length;$k[$j++]=Infinity;$F($_.rscws);for(var _O9=0,_OA=$_.ecpb;_O9<_OA;_O9++){$k[$j++]=0}$_.rscws=$a();for(var _OE=0,_OD=$_.rsnd-1;_OE<=_OD;_OE+=1){$_.m=_OE;$_.k=$g($_.rscws,$_.m);for(var _OK=0,_OJ=$_.ecpb-1;_OK<=_OJ;_OK+=1){$_.j=_OK;$k[$j++]=$_.rscws;$k[$j++]=$_.m+$_.j+1;$k[$j++]=$g($_.coeffs,$_.ecpb-$_.j-1);$k[$j++]=$_.k;$_.rsprod();var _OX=$k[--$j];var _OY=$k[--$j];$p($k[--$j],_OY,$xo(_OX,$g($_.rscws,$_.m+$_.j+1)))}}$k[$j++]=$G($_.rscws,$_.rsnd,$_.ecpb)};$_.dcwsb=$a($f($_.ecb1+$_.ecb2));$_.ecwsb=$a($f($_.ecb1+$_.ecb2));for(var _Om=0,_Ol=$f($_.ecb1-1);_Om<=_Ol;_Om+=1){$_.i=_Om;$p($_.dcwsb,$_.i,$G($_.cws,$_.i*$_.dcpb,$_.dcpb));$k[$j++]=$_.ecwsb;$k[$j++]=$_.i;$k[$j++]=$g($_.dcwsb,$_.i);$_.rscodes();var _Oz=$k[--$j];var _P0=$k[--$j];$p($k[--$j],_P0,_Oz)}for(var _P4=0,_P3=$f($_.ecb2-1);_P4<=_P3;_P4+=1){$_.i=_P4;$p($_.dcwsb,$f($_.ecb1+$_.i),$G($_.cws,$f($_.ecb1*$_.dcpb+$_.i*($_.dcpb+1)),$_.dcpb+1));$k[$j++]=$_.ecwsb;$k[$j++]=$f($_.ecb1+$_.i);$k[$j++]=$g($_.dcwsb,$f($_.ecb1+$_.i));$_.rscodes();var _PM=$k[--$j];var _PN=$k[--$j];$p($k[--$j],_PN,_PM)}$_.cws=$a($_.ncws);$_.cw=0;for(var _PT=0,_PS=$_.dcpb;_PT<=_PS;_PT+=1){$_.i=_PT;for(var _PX=0,_PW=$f($f($_.ecb1+$_.ecb2)-1);_PX<=_PW;_PX+=1){$_.j=_PX;if($_.i<$g($_.dcwsb,$_.j).length){$p($_.cws,$_.cw,$g($g($_.dcwsb,$_.j),$_.i));$_.cw=$_.cw+1}}}for(var _Pm=0,_Pl=$_.ecpb-1;_Pm<=_Pl;_Pm+=1){$_.i=_Pm;for(var _Pq=0,_Pp=$f($f($_.ecb1+$_.ecb2)-1);_Pq<=_Pp;_Pq+=1){$_.j=_Pq;$p($_.cws,$_.cw,$g($g($_.ecwsb,$_.j),$_.i));$_.cw=$_.cw+1}}if($_.rbit>0){$_.pad=$a($_.cws.length+1);$P($_.pad,0,$_.cws);$p($_.pad,$_.pad.length-1,0);$_.cws=$_.pad}if($_.lc4b){var _Q8=$_.cws;var _Q9=$_.dcws;$p(_Q8,$f(_Q9-1),$g(_Q8,$f(_Q9-1))>>>4);for(var _QE=$f($_.dcws-1),_QD=$_.ncws-2;_QE<=_QD;_QE+=1){$_.i=_QE;$p($_.cws,$_.i,($g($_.cws,$_.i)&15)<<4);$p($_.cws,$_.i,$g($_.cws,$_.i+1)>>>4&15|$g($_.cws,$_.i))}$p($_.cws,$_.ncws-1,($g($_.cws,$_.ncws-1)&15)<<4)}var _QY=$g($_.options,"debugecc")!==undefined;if(_QY){$k[$j++]="bwipp.debugecc#20645";$k[$j++]=$_.cws;bwipp_raiseerror()}$k[$j++]=Infinity;for(var _Qc=0,_Qd=$_.rows*$_.cols;_Qc<_Qd;_Qc++){$k[$j++]=-1}$_.pixs=$a();$_.qmv=function(){var _Qg=$k[--$j];var _Qh=$k[--$j];$k[$j++]=$f(_Qh+_Qg*$_.cols)};if($eq($_.format,"full")){for(var _Ql=8,_Qk=$f($_.cols-9);_Ql<=_Qk;_Ql+=1){$_.i=_Ql;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=6;$_.qmv();var _Qp=$k[--$j];$p($k[--$j],_Qp,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=6;$k[$j++]=$_.i;$_.qmv();var _Qu=$k[--$j];$p($k[--$j],_Qu,($_.i+1)%2)}}if($eq($_.format,"micro")){for(var _Qz=8,_Qy=$f($_.cols-1);_Qz<=_Qy;_Qz+=1){$_.i=_Qz;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=0;$_.qmv();var _R3=$k[--$j];$p($k[--$j],_R3,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i;$_.qmv();var _R8=$k[--$j];$p($k[--$j],_R8,($_.i+1)%2)}}if($eq($_.format,"rmqr")){for(var _RD=3,_RC=$f($_.cols-4);_RD<=_RC;_RD+=1){$_.i=_RD;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=0;$_.qmv();var _RH=$k[--$j];$p($k[--$j],_RH,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$f($_.rows-1);$_.qmv();var _RN=$k[--$j];$p($k[--$j],_RN,($_.i+1)%2)}for(var _RR=3,_RQ=$f($_.rows-4);_RR<=_RQ;_RR+=1){$_.i=_RR;$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i;$_.qmv();var _RV=$k[--$j];$p($k[--$j],_RV,($_.i+1)%2);$k[$j++]=$_.pixs;$k[$j++]=$f($_.cols-1);$k[$j++]=$_.i;$_.qmv();var _Rb=$k[--$j];$p($k[--$j],_Rb,($_.i+1)%2)}for(var _Ri=$f($_.asp2-1),_Rj=$f($_.asp3-$_.asp2),_Rh=$f($_.cols-13);_Rj<0?_Ri>=_Rh:_Ri<=_Rh;_Ri+=_Rj){$_.i=_Ri;for(var _Rm=3,_Rl=$f($_.rows-4);_Rm<=_Rl;_Rm+=1){$_.j=_Rm;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _Rr=$k[--$j];$p($k[--$j],_Rr,($_.j+1)%2)}}}if(!bwipp_qrcode.__20734__){$_=Object.create($_);$_.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$_.fsubpat=$a([$a([1,1,1,1,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,0,1,0,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,1,1,1,1,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$_.fcorpat=$a([$a([1,1,1,9,9,9,9,9]),$a([1,0,9,9,9,9,9,9]),$a([1,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$_.fnullpat=$a([$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);var _Si=new Map([["full",$a([$_.fpat,$_.fpat,$_.fpat,$_.fnullpat])],["micro",$a([$_.fpat,$_.fnullpat,$_.fnullpat,$_.fnullpat])],["rmqr",$a([$_.fpat,$_.fcorpat,$_.fcorpat,$_.fsubpat])]]);$_.fpatmap=_Si;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20734__=1;$_=Object.getPrototypeOf($_)}$_.fpats=$g($_.fpatmap,$_.format);for(var _Sn=0;_Sn<=7;_Sn+=1){$_.y=_Sn;for(var _So=0;_So<=7;_So+=1){$_.x=_So;$_.fpb0=$g($g($g($_.fpats,0),$_.y),$_.x);$_.fpb1=$g($g($g($_.fpats,1),$_.y),$_.x);$_.fpb2=$g($g($g($_.fpats,2),$_.y),$_.x);$_.fpb3=$g($g($g($_.fpats,3),$_.y),$_.x);if($_.fpb0!=9&&$_.y<$_.rows){$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _TK=$k[--$j];$p($k[--$j],_TK,$_.fpb0)}if($_.fpb1!=9){$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.cols-$_.x)-1);$k[$j++]=$_.y;$_.qmv();var _TS=$k[--$j];$p($k[--$j],_TS,$_.fpb1)}if($_.fpb2!=9){$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$f($f($_.rows-$_.y)-1);$_.qmv();var _Ta=$k[--$j];$p($k[--$j],_Ta,$_.fpb2)}if($_.fpb3!=9){$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.cols-$_.x)-1);$k[$j++]=$f($f($_.rows-$_.y)-1);$_.qmv();var _Tj=$k[--$j];$p($k[--$j],_Tj,$_.fpb3)}}}if(!bwipp_qrcode.__20767__){$_=Object.create($_);$_.algnpatfull=$a([$a([1,1,1,1,1]),$a([1,0,0,0,1]),$a([1,0,1,0,1]),$a([1,0,0,0,1]),$a([1,1,1,1,1])]);$_.algnpatrmqr=$a([$a([1,1,1,9,9]),$a([1,0,1,9,9]),$a([1,1,1,9,9]),$a([9,9,9,9,9]),$a([9,9,9,9,9])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20767__=1;$_=Object.getPrototypeOf($_)}$_.putalgnpat=function(){$_.py=$k[--$j];$_.px=$k[--$j];for(var _U0=0;_U0<=4;_U0+=1){$_.pb=_U0;for(var _U1=0;_U1<=4;_U1+=1){$_.pa=_U1;$_.algnb=$g($g($_.algnpat,$_.pb),$_.pa);if($_.algnb!=9){$k[$j++]=$_.pixs;$k[$j++]=$f($_.px+$_.pa);$k[$j++]=$f($_.py+$_.pb);$_.qmv();var _UE=$k[--$j];$p($k[--$j],_UE,$_.algnb)}}}};if($eq($_.format,"full")){$_.algnpat=$_.algnpatfull;for(var _UN=$f($_.asp2-2),_UO=$f($_.asp3-$_.asp2),_UM=$f($_.cols-13);_UO<0?_UN>=_UM:_UN<=_UM;_UN+=_UO){$_.i=_UN;$k[$j++]=$_.i;$k[$j++]=4;$_.putalgnpat();$k[$j++]=4;$k[$j++]=$_.i;$_.putalgnpat()}for(var _UW=$f($_.asp2-2),_UX=$f($_.asp3-$_.asp2),_UV=$f($_.cols-9);_UX<0?_UW>=_UV:_UW<=_UV;_UW+=_UX){$_.x=_UW;for(var _Ud=$f($_.asp2-2),_Ue=$f($_.asp3-$_.asp2),_Uc=$f($_.rows-9);_Ue<0?_Ud>=_Uc:_Ud<=_Uc;_Ud+=_Ue){$_.y=_Ud;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.putalgnpat()}}}if($eq($_.format,"rmqr")){$_.algnpat=$_.algnpatrmqr;for(var _Uo=$f($_.asp2-2),_Up=$f($_.asp3-$_.asp2),_Un=$f($_.cols-13);_Up<0?_Uo>=_Un:_Uo<=_Un;_Uo+=_Up){$_.i=_Uo;$k[$j++]=$_.i;$k[$j++]=0;$_.putalgnpat();$k[$j++]=$_.i;$k[$j++]=$f($_.rows-3);$_.putalgnpat()}}if(!bwipp_qrcode.__20814__){$_=Object.create($_);$_.formatmapmicro=$a([$a([$a([1,8])]),$a([$a([2,8])]),$a([$a([3,8])]),$a([$a([4,8])]),$a([$a([5,8])]),$a([$a([6,8])]),$a([$a([7,8])]),$a([$a([8,8])]),$a([$a([8,7])]),$a([$a([8,6])]),$a([$a([8,5])]),$a([$a([8,4])]),$a([$a([8,3])]),$a([$a([8,2])]),$a([$a([8,1])])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__20814__=1;$_=Object.getPrototypeOf($_)}var _Xs=new Map([["full",$a([$a([$a([0,8]),$a([8,$f($_.cols-1)])]),$a([$a([1,8]),$a([8,$f($_.cols-2)])]),$a([$a([2,8]),$a([8,$f($_.cols-3)])]),$a([$a([3,8]),$a([8,$f($_.cols-4)])]),$a([$a([4,8]),$a([8,$f($_.cols-5)])]),$a([$a([5,8]),$a([8,$f($_.cols-6)])]),$a([$a([7,8]),$a([8,$f($_.cols-7)])]),$a([$a([8,8]),$a([$f($_.cols-8),8])]),$a([$a([8,7]),$a([$f($_.cols-7),8])]),$a([$a([8,5]),$a([$f($_.cols-6),8])]),$a([$a([8,4]),$a([$f($_.cols-5),8])]),$a([$a([8,3]),$a([$f($_.cols-4),8])]),$a([$a([8,2]),$a([$f($_.cols-3),8])]),$a([$a([8,1]),$a([$f($_.cols-2),8])]),$a([$a([8,0]),$a([$f($_.cols-1),8])])])],["micro",$_.formatmapmicro],["rmqr",$a([$a([$a([11,3]),$a([$f($_.cols-3),$f($_.rows-6)])]),$a([$a([11,2]),$a([$f($_.cols-4),$f($_.rows-6)])]),$a([$a([11,1]),$a([$f($_.cols-5),$f($_.rows-6)])]),$a([$a([10,5]),$a([$f($_.cols-6),$f($_.rows-2)])]),$a([$a([10,4]),$a([$f($_.cols-6),$f($_.rows-3)])]),$a([$a([10,3]),$a([$f($_.cols-6),$f($_.rows-4)])]),$a([$a([10,2]),$a([$f($_.cols-6),$f($_.rows-5)])]),$a([$a([10,1]),$a([$f($_.cols-6),$f($_.rows-6)])]),$a([$a([9,5]),$a([$f($_.cols-7),$f($_.rows-2)])]),$a([$a([9,4]),$a([$f($_.cols-7),$f($_.rows-3)])]),$a([$a([9,3]),$a([$f($_.cols-7),$f($_.rows-4)])]),$a([$a([9,2]),$a([$f($_.cols-7),$f($_.rows-5)])]),$a([$a([9,1]),$a([$f($_.cols-7),$f($_.rows-6)])]),$a([$a([8,5]),$a([$f($_.cols-8),$f($_.rows-2)])]),$a([$a([8,4]),$a([$f($_.cols-8),$f($_.rows-3)])]),$a([$a([8,3]),$a([$f($_.cols-8),$f($_.rows-4)])]),$a([$a([8,2]),$a([$f($_.cols-8),$f($_.rows-5)])]),$a([$a([8,1]),$a([$f($_.cols-8),$f($_.rows-6)])])])]]);$_.formatmap=$g(_Xs,$_.format);$F($_.formatmap,function(){$F($k[--$j],function(){$F($k[--$j]);$_.qmv();$p($_.pixs,$k[--$j],1)})});if($eq($_.format,"full")&&$_.cols>=45){$_.versionmap=$a([$a([$a([$f($_.cols-9),5]),$a([5,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),5]),$a([5,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),5]),$a([5,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),4]),$a([4,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),4]),$a([4,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),4]),$a([4,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),3]),$a([3,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),3]),$a([3,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),3]),$a([3,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),2]),$a([2,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),2]),$a([2,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),2]),$a([2,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),1]),$a([1,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),1]),$a([1,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),1]),$a([1,$f($_.cols-11)])]),$a([$a([$f($_.cols-9),0]),$a([0,$f($_.cols-9)])]),$a([$a([$f($_.cols-10),0]),$a([0,$f($_.cols-10)])]),$a([$a([$f($_.cols-11),0]),$a([0,$f($_.cols-11)])])])}else{$_.versionmap=$a([])}var _ZW=$_.versionmap;for(var _ZX=0,_ZY=_ZW.length;_ZX<_ZY;_ZX++){$F($g(_ZW,_ZX),function(){$F($k[--$j]);$_.qmv();$p($_.pixs,$k[--$j],0)})}if($eq($_.format,"full")){$k[$j++]=$_.pixs;$k[$j++]=8;$k[$j++]=$f($_.rows-8);$_.qmv();var _Zg=$k[--$j];$p($k[--$j],_Zg,0)}var _a0=$a([function(){var _Zi=$k[--$j];var _Zj=$k[--$j];$k[$j++]=$f(_Zj+_Zi)%2},function(){var _Zk=$k[--$j];var _Zl=$k[--$j];$k[$j++]=_Zk;$k[$j++]=_Zl;$j--;var _Zm=$k[--$j];$k[$j++]=_Zm%2},function(){$j--;var _Zn=$k[--$j];$k[$j++]=_Zn%3},function(){var _Zo=$k[--$j];var _Zp=$k[--$j];$k[$j++]=$f(_Zp+_Zo)%3},function(){var _Zq=$k[--$j];var _Zr=$k[--$j];$k[$j++]=(~~(_Zq/2)+~~(_Zr/3))%2},function(){var _Zs=$k[--$j];var _Zu=$k[--$j]*_Zs;$k[$j++]=$f(_Zu%2+_Zu%3)},function(){var _Zv=$k[--$j];var _Zx=$k[--$j]*_Zv;$k[$j++]=$f(_Zx%2+_Zx%3)%2},function(){var _Zy=$k[--$j];var _Zz=$k[--$j];$k[$j++]=$f(_Zz*_Zy%3+$f(_Zz+_Zy)%2)%2}]);var _aB=$a([function(){var _a1=$k[--$j];var _a2=$k[--$j];$k[$j++]=_a1;$k[$j++]=_a2;$j--;var _a3=$k[--$j];$k[$j++]=_a3%2},function(){var _a4=$k[--$j];var _a5=$k[--$j];$k[$j++]=(~~(_a4/2)+~~(_a5/3))%2},function(){var _a6=$k[--$j];var _a8=$k[--$j]*_a6;$k[$j++]=$f(_a8%2+_a8%3)%2},function(){var _a9=$k[--$j];var _aA=$k[--$j];$k[$j++]=$f(_aA*_a9%3+$f(_aA+_a9)%2)%2}]);var _aE=$a([function(){var _aC=$k[--$j];var _aD=$k[--$j];$k[$j++]=(~~(_aC/2)+~~(_aD/3))%2}]);var _aF=new Map([["full",_a0],["micro",_aB],["rmqr",_aE]]);$_.maskfuncs=$g(_aF,$_.format);if($_.mask!=-1){$_.maskfuncs=$a([$g($_.maskfuncs,$_.mask-1)]);$_.bestmaskval=$_.mask-1}$_.masks=$a($_.maskfuncs.length);for(var _aS=0,_aR=$_.masks.length-1;_aS<=_aR;_aS+=1){$_.m=_aS;$_.mask=$a($_.rows*$_.cols);for(var _aY=0,_aX=$f($_.rows-1);_aY<=_aX;_aY+=1){$_.j=_aY;for(var _ab=0,_aa=$f($_.cols-1);_ab<=_aa;_ab+=1){$_.i=_ab;$k[$j++]=$_.i;$k[$j++]=$_.j;if($g($_.maskfuncs,$_.m)()===true){break}var _ah=$k[--$j];$k[$j++]=_ah==0;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _al=$k[--$j];var _an=$g($k[--$j],_al);var _ao=$k[--$j];var _ap=_ao&&_an==-1?1:0;$k[$j++]=_ap;$k[$j++]=$_.mask;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _at=$k[--$j];var _au=$k[--$j];$p(_au,_at,$k[--$j])}}$p($_.masks,$_.m,$_.mask)}var _b1=$ne($_.format,"rmqr")?1:2;$_.posx=$f($_.cols-_b1);$_.posy=$f($_.rows-1);$_.dir=-1;$_.col=1;$_.num=0;for(;;){if($_.posx<0){break}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _b7=$k[--$j];if($g($k[--$j],_b7)==-1){var _bC=$g($_.cws,~~($_.num/8));var _bE=-(7-$_.num%8);$k[$j++]=(_bE<0?_bC>>>-_bE:_bC<<_bE)&1;$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _bI=$k[--$j];var _bJ=$k[--$j];$p(_bJ,_bI,$k[--$j]);$_.num=$_.num+1}if($_.col==1){$_.col=0;$_.posx=$f($_.posx-1)}else{$_.col=1;$_.posx=$f($_.posx+1);$_.posy=$f($_.posy+$_.dir);if($_.posy<0||$_.posy>=$_.rows){$_.dir=$_.dir*-1;$_.posy=$f($_.posy+$_.dir);$_.posx=$f($_.posx-2);if($eq($_.format,"full")&&$_.posx==6){$_.posx=$f($_.posx-1)}}}}$_.evalfulln1n3=function(){$_.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($_.scrle,function(){var _bd=$k[--$j];$k[$j++]=_bd;if(_bd>=5){var _be=$k[--$j];var _bg=$f($f($k[--$j]+_be)-2);$k[$j++]=_bg;$k[$j++]=_bg}$j--});var _bh=$k[--$j];$_[$k[--$j]]=_bh;$_.scr3=0;for(var _bl=3,_bk=$_.scrle.length-3;_bl<=_bk;_bl+=2){$_.j=_bl;if($g($_.scrle,$_.j)%3==0){$_.fact=~~($g($_.scrle,$_.j)/3);var _bu=$G($_.scrle,$_.j-2,5);for(var _bv=0,_bw=_bu.length;_bv<_bw;_bv++){$k[$j++]=$g(_bu,_bv)==$_.fact}var _bz=$k[--$j];var _c0=$k[--$j];var _c1=$k[--$j];$k[$j++]=$an(_c0,_bz);$k[$j++]=_c1;$j--;var _c2=$k[--$j];var _c3=$k[--$j];var _c4=$k[--$j];if(_c4&&(_c3&&_c2)){if($_.j==3||$_.j+4>=$_.scrle.length){$_.scr3=$_.scr3+40}else{if($g($_.scrle,$_.j-3)>=4||$g($_.scrle,$_.j+3)>=4){$_.scr3=$_.scr3+40}}}}}$k[$j++]=$_.scr1;$k[$j++]=$_.scr3};$_.evalfull=function(){$_.sym=$k[--$j];$_.n1=0;$_.n2=0;$_.n3=0;$_.rle=$a($f($_.cols+1));$_.lastpairs=$a($_.cols);$_.thispairs=$a($_.cols);$_.colsadd1=$f($_.cols+1);for(var _cS=0,_cR=$f($_.cols-1);_cS<=_cR;_cS+=1){$_.i=_cS;$k[$j++]=Infinity;var _cU=$_.cols;$k[$j++]=0;$k[$j++]=0;for(var _cW=$_.i,_cX=_cU,_cV=$f(_cU*_cU-1);_cX<0?_cW>=_cV:_cW<=_cV;_cW+=_cX){var _cZ=$g($_.sym,_cW);var _ca=$k[--$j];$k[$j++]=_cZ;if($eq(_ca,_cZ)){var _cb=$k[--$j];var _cc=$k[--$j];$k[$j++]=$f(_cc+1);$k[$j++]=_cb}else{var _cd=$k[--$j];$k[$j++]=1;$k[$j++]=_cd}}$j--;var _cf=$m()+2;$as($G($_.rle,0,_cf-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;$_.symrow=$G($_.sym,$_.i*$_.cols,$_.cols);$k[$j++]=Infinity;var _cq=$_.symrow;$k[$j++]=0;$k[$j++]=0;for(var _cr=0,_cs=_cq.length;_cr<_cs;_cr++){var _ct=$g(_cq,_cr);var _cu=$k[--$j];$k[$j++]=_ct;if($eq(_cu,_ct)){var _cv=$k[--$j];var _cw=$k[--$j];$k[$j++]=$f(_cw+1);$k[$j++]=_cv}else{var _cx=$k[--$j];$k[$j++]=1;$k[$j++]=_cx}}$j--;var _cz=$m()+2;$as($G($_.rle,0,_cz-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;var _d5=$_.thispairs;$_.thispairs=$_.lastpairs;$_.lastpairs=_d5;var _d9=$g($_.symrow,0)==1?0:1;var _dA=$_.symrow;$k[$j++]=_d9;for(var _dB=0,_dC=_dA.length;_dB<_dC;_dB++){var _dD=$g(_dA,_dB);var _dE=$k[--$j];$k[$j++]=$f(_dE+_dD);$k[$j++]=_dD}$j--;$as($_.thispairs);$j--;if($_.i>0){$k[$j++]=Infinity;$q($_.lastpairs);$q($_.thispairs);$k[$j++]=$_.n2;for(var _dL=0,_dM=$_.cols;_dL<_dM;_dL++){var _dN=$k[--$j];var _dO=$k[--$j];$k[$j++]=_dN;$k[$j++]=_dO;var _dQ=$k[$j-1-$_.colsadd1];if(($f($k[--$j]+_dQ)&3)==0){var _dS=$k[--$j];$k[$j++]=$f(_dS+3)}}$_.n2=$k[--$j];$l()}}$k[$j++]="dark";$k[$j++]=0;$F($_.sym,function(){var _dV=$k[--$j];var _dW=$k[--$j];$k[$j++]=$f(_dW+_dV)});var _dX=$k[--$j];$_[$k[--$j]]=_dX;var _da=$_.cols;$_.n4=~~(Math.abs($f($_.dark*100/(_da*_da)-50))/5)*10;$k[$j++]=$f($f($f($_.n1+$_.n2)+$_.n3)+$_.n4)};$_.evalmicro=function(){$_.sym=$k[--$j];$_.dkrhs=0;$_.dkbot=0;for(var _di=1,_dh=$f($_.cols-1);_di<=_dh;_di+=1){$_.i=_di;$k[$j++]="dkrhs";$k[$j++]=$_.dkrhs;$k[$j++]=$_.sym;$k[$j++]=$f($_.cols-1);$k[$j++]=$_.i;$_.qmv();var _dn=$k[--$j];var _dp=$g($k[--$j],_dn);var _dq=$k[--$j];$_[$k[--$j]]=$f(_dq+_dp);$k[$j++]="dkbot";$k[$j++]=$_.dkbot;$k[$j++]=$_.sym;$k[$j++]=$_.i;$k[$j++]=$f($_.cols-1);$_.qmv();var _dw=$k[--$j];var _dy=$g($k[--$j],_dw);var _dz=$k[--$j];$_[$k[--$j]]=$f(_dz+_dy)}if($_.dkrhs<=$_.dkbot){$k[$j++]=-($_.dkrhs*16+$_.dkbot)}else{$k[$j++]=-($_.dkbot*16+$_.dkrhs)}};$_.bestscore=999999999;for(var _e9=0,_e8=$_.masks.length-1;_e9<=_e8;_e9+=1){$_.m=_e9;$_.masksym=$a($_.rows*$_.cols);for(var _eG=0,_eF=$f($_.rows*$_.cols-1);_eG<=_eF;_eG+=1){$_.i=_eG;$p($_.masksym,$_.i,$xo($g($_.pixs,$_.i),$g($g($_.masks,$_.m),$_.i)))}if($_.masks.length!=1){if($eq($_.format,"full")){$k[$j++]=$_.masksym;$_.evalfull();$_.score=$k[--$j]}else{$k[$j++]=$_.masksym;$_.evalmicro();$_.score=$k[--$j]}if($_.score<$_.bestscore){$_.bestsym=$_.masksym;$_.bestmaskval=$_.m;$_.bestscore=$_.score}}else{$_.bestsym=$_.masksym}}$_.pixs=$_.bestsym;if($eq($_.format,"full")){$k[$j++]=$_.pixs;$k[$j++]=8;$k[$j++]=$f($_.cols-8);$_.qmv();var _eh=$k[--$j];$p($k[--$j],_eh,1)}if(!bwipp_qrcode.__21096__){$_=Object.create($_);$_.fmtvalsfull=$a([21522,20773,24188,23371,17913,16590,20375,19104,30660,29427,32170,30877,26159,25368,27713,26998,5769,5054,7399,6608,1890,597,3340,2107,13663,12392,16177,14854,9396,8579,11994,11245]);$_.fmtvalsmicro=$a([17477,16754,20011,19228,21934,20633,24512,23287,26515,25252,28157,26826,30328,29519,31766,31009,1758,1001,3248,2439,5941,4610,7515,6252,9480,8255,12134,10833,13539,12756,16013,15290]);$_.fmtvalsrmqr1=$a([129714,124311,121821,115960,112748,108361,104707,99878,98062,90155,89697,82244,81360,74485,72895,66458,61898,61167,53413,53120,45844,44081,37499,36190,29814,27475,21785,19004,13992,10637,6087,2274,258919,257090,250376,249133,242105,241308,233686,233459,227035,223742,219060,215185,209925,207648,202090,199247,194591,190266,186736,181845,178881,173540,170926,165003,163235,156294,154828,148457,147325,139352,138770,131383]);$_.fmtvalsrmqr2=$a([133755,136542,142100,144433,149669,153472,158154,161519,167879,168162,175784,176525,183577,184892,191606,193363,196867,204326,204908,212809,213981,220408,221874,228759,230591,236442,239056,244469,247393,252228,255758,260139,942,7307,8897,15844,16752,24149,24607,32570,34322,39223,42877,47192,50380,56297,58787,64134,67798,71667,76217,79516,84488,87341,93031,95298,101738,102991,109573,111392,118708,118929,126683,127486]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__21096__=1;$_=Object.getPrototypeOf($_)}if($eq($_.format,"full")){$k[$j++]="ecid";$X("MLHQ",$_.eclevel);$j--;var _eq=$k[--$j];var _er=$k[--$j];$k[$j++]=_eq.length;$k[$j++]=_er;$j--;var _es=$k[--$j];var _et=$k[--$j];$k[$j++]=_es;$k[$j++]=_et;$j--;var _eu=$k[--$j];$_[$k[--$j]]=_eu;$_.fmtval=$g($_.fmtvalsfull,($_.ecid<<3)+$_.bestmaskval);for(var _f2=0,_f1=$_.formatmap.length-1;_f2<=_f1;_f2+=1){$_.i=_f2;$F($g($_.formatmap,$_.i),function(){var _f7=$k[--$j];$k[$j++]=$_.pixs;$q(_f7);$_.qmv();var _f8=$_.fmtval;var _fA=-(14-$_.i);var _fB=$k[--$j];$p($k[--$j],_fB,(_fA<0?_f8>>>-_fA:_f8<<_fA)&1)})}}if($eq($_.format,"micro")){$_.symid=$g($g($a([$a([0]),$a([1,2]),$a([3,4]),$a([5,6,7])]),~~($f($_.cols-11)/2)),$_.eclval);$_.fmtval=$g($_.fmtvalsmicro,($_.symid<<2)+$_.bestmaskval);for(var _fT=0,_fS=$_.formatmap.length-1;_fT<=_fS;_fT+=1){$_.i=_fT;$k[$j++]=$_.pixs;$q($g($g($_.formatmap,$_.i),0));$_.qmv();var _fZ=$_.fmtval;var _fb=-(14-$_.i);var _fc=$k[--$j];$p($k[--$j],_fc,(_fb<0?_fZ>>>-_fb:_fZ<<_fb)&1)}}if($eq($_.format,"rmqr")){$k[$j++]="fmtvalu";$X("MH",$_.eclevel);$j--;var _fg=$k[--$j];var _fh=$k[--$j];$k[$j++]=_fg.length;$k[$j++]=_fh;$j--;var _fi=$k[--$j];var _fj=$k[--$j];$k[$j++]=_fi;$k[$j++]=_fj;$j--;var _fk=$k[--$j];$_[$k[--$j]]=(_fk<<5)+$_.verind;$_.fmtval1=$g($_.fmtvalsrmqr1,$_.fmtvalu);$_.fmtval2=$g($_.fmtvalsrmqr2,$_.fmtvalu);for(var _fv=0,_fu=$_.formatmap.length-1;_fv<=_fu;_fv+=1){$_.i=_fv;$k[$j++]=$_.pixs;$q($g($g($_.formatmap,$_.i),0));$_.qmv();var _g1=$_.fmtval1;var _g3=-(17-$_.i);var _g4=$k[--$j];$p($k[--$j],_g4,(_g3<0?_g1>>>-_g3:_g1<<_g3)&1);$k[$j++]=$_.pixs;$q($g($g($_.formatmap,$_.i),1));$_.qmv();var _gB=$_.fmtval2;var _gD=-(17-$_.i);var _gE=$k[--$j];$p($k[--$j],_gE,(_gD<0?_gB>>>-_gD:_gB<<_gD)&1)}}if(!bwipp_qrcode.__21135__){$_=Object.create($_);$_.vervals=$a([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_qrcode.$ctx[id]=$_[id]);bwipp_qrcode.__21135__=1;$_=Object.getPrototypeOf($_)}if($eq($_.format,"full")&&$_.cols>=45){$_.verval=$g($_.vervals,~~($f($_.cols-17)/4)-7);for(var _gP=0,_gO=$_.versionmap.length-1;_gP<=_gO;_gP+=1){$_.i=_gP;$F($g($_.versionmap,$_.i),function(){var _gU=$k[--$j];$k[$j++]=$_.pixs;$F(_gU);$_.qmv();var _gV=$_.verval;var _gX=-(17-$_.i);var _gY=$k[--$j];$p($k[--$j],_gY,(_gX<0?_gV>>>-_gX:_gV<<_gX)&1)})}}$k[$j++]=Infinity;$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=$_.pixs;$k[$j++]="pixx";$k[$j++]=$_.cols;$k[$j++]="pixy";$k[$j++]=$_.rows;$k[$j++]="height";$k[$j++]=$_.rows*2/72;$k[$j++]="width";$k[$j++]=$_.cols*2/72;$k[$j++]="borderleft";if($eq($_.format,"full")){$k[$j++]=4}else{$k[$j++]=2}$k[$j++]="borderright";if($eq($_.format,"full")){$k[$j++]=4}else{$k[$j++]=2}$k[$j++]="bordertop";if($eq($_.format,"full")){$k[$j++]=4}else{$k[$j++]=2}$k[$j++]="borderbottom";if($eq($_.format,"full")){$k[$j++]=4}else{$k[$j++]=2}$k[$j++]="opt";$k[$j++]=$_.options;var _gk=$d();$k[$j++]=_gk;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_swissqrcode(){$_=Object.create($_);$_.dontdraw=false;$_.parse=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$_.barlen=$_.barcode.length;delete $_.options["parse"];if($_.barcode.length>997){$k[$j++]="bwipp.swissqrcodeBadLength#21216";$k[$j++]="Swiss QR Code input must not exceed 997 digits";bwipp_raiseerror()}$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _E=$k[--$j];$_[$k[--$j]]=_E;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){$$.save();var _K=$$.currpos();$$.translate(_K.x,_K.y);var _L=72/25.4;$$.scale(_L,_L);$$.save();$$.newpath();$$.moveto(0,0);$$.lineto(46,0);$$.lineto(46,46);$$.lineto(0,46);$$.closepath();$$.moveto(19.5,19.5);$$.lineto(19.5,26.5);$$.lineto(26.5,26.5);$$.lineto(26.5,19.5);$$.closepath();$$.clip();$$.save();$$.moveto(0,0);var _O=46/$g($_.args,"pixx")/2;$$.scale(_O,_O);bwipp_renmatrix();$$.restore();$$.restore();$$.translate(19.5,19.5);var _P=7/83;$$.scale(_P,_P);$$.newpath();$$.moveto(6,6);$$.lineto(6,77);$$.lineto(77,77);$$.lineto(77,6);$$.closepath();$$.moveto(49,18);$$.lineto(49,34);$$.lineto(65,34);$$.lineto(65,49);$$.lineto(49,49);$$.lineto(49,65);$$.lineto(34,65);$$.lineto(34,49);$$.lineto(18,49);$$.lineto(18,34);$$.lineto(34,34);$$.lineto(34,18);$$.closepath();$$.setrgbcolor(0,0,0);$$.fill();$$.restore()}$_=Object.getPrototypeOf($_)}function bwipp_microqrcode(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","micro");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_rectangularmicroqrcode(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","rmqr");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_maxicode(){$_=Object.create($_);$_.dontdraw=false;$_.mode=-1;$_.sam=-1;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.maxicodeEmptyData#21434";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.mode!=-1&&($_.mode<2||$_.mode>6)){$k[$j++]="bwipp.maxicodeBadMode#21438";$k[$j++]="Mode must be 2 to 6";bwipp_raiseerror()}if($_.sam!=-1){$k[$j++]=true;for(var _7=0,_8=1;_7<_8;_7++){var _9=$_.sam;if(_9<12||_9>88){$j--;$k[$j++]=false;break}var _B=$_.sam%10;if(_B<2||_B>8){$j--;$k[$j++]=false;break}if(~~($_.sam/10)>$_.sam%10){$j--;$k[$j++]=false;break}}if($nt($k[--$j])){$k[$j++]="bwipp.maxicodeBadSAM#21449";$k[$j++]='SAM must be formatted as "NM" for Nth of M symbols, from 2 to 8 symbols';bwipp_raiseerror()}}bwipp_loadctx(bwipp_maxicode);var _H=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true]]);$_.fncvals=_H;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _K=$k[--$j];$_[$k[--$j]]=_K;$_.msglen=$_.msg.length;if($_.mode==2||$_.mode==3){$_.barcode=$s($_.msglen);for(var _T=0,_S=$_.msglen-1;_T<=_S;_T+=1){$_.i=_T;if($g($_.msg,$_.i)>0){$p($_.barcode,$_.i,$g($_.msg,$_.i))}}$_.barlen=$_.barcode.length;$_.fid="";if($_.barlen>=7){if($eq($G($_.barcode,0,7),"[)>01")){$_.fid=$G($_.barcode,0,9);$_.barcode=$G($_.barcode,9,$_.barlen-9)}}$X($_.barcode,"");if($k[--$j]){$_.pcode=$k[--$j];$j--;if($_.mode==2){$k[$j++]=true;for(var _p=0,_q=1;_p<_q;_p++){if($_.pcode.length>9){$j--;$k[$j++]=false;break}$F($_.pcode,function(){var _t=$k[--$j];if(_t<48||_t>57){$j--;$k[$j++]=false;return true}})}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.maxicodeBadMode2PostCode#21498";$k[$j++]="A mode 2 postcode must not exceed 9 digits";bwipp_raiseerror()}}else{$F($_.pcode,function(){var _w=$k[--$j];if(!(_w==32||(_w>=34&&_w<=58||_w>=65&&_w<=90))){$j--;$k[$j++]="bwipp.maxicodeBadMode3PostCode#21506";$k[$j++]="A mode 3 postcode must not exceed 6 characters";bwipp_raiseerror()}})}}else{$j--;$k[$j++]="bwipp.maxicodeExpectedPostCode#21511";$k[$j++]="Expected postcode followed by group separator character";bwipp_raiseerror()}$X($k[--$j],"");if($k[--$j]){$_.ccode=$k[--$j];$j--;$k[$j++]=true;for(var _10=0,_11=1;_10<_11;_10++){if($_.ccode.length!=3){$j--;$k[$j++]=false;break}$F($_.ccode,function(){var _14=$k[--$j];if(_14<48||_14>57){$j--;$k[$j++]=false;return true}})}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.maxicodeBadCountryCode#21521";$k[$j++]="Country code must be three digits";bwipp_raiseerror()}}else{$j--;$k[$j++]="bwipp.maxicodeExpectedCountryCode#21524";$k[$j++]="Expected country code followed by group separator character";bwipp_raiseerror()}$X($k[--$j],"");if($k[--$j]){$_.scode=$k[--$j];$j--;$k[$j++]=true;for(var _19=0,_1A=1;_19<_1A;_19++){if($_.scode.length!=3){$j--;$k[$j++]=false;break}$F($_.scode,function(){var _1D=$k[--$j];if(_1D<48||_1D>57){$j--;$k[$j++]=false;return true}})}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.maxicodeBadServiceClass#21534";$k[$j++]="Service class must be three digits";bwipp_raiseerror()}}else{$j--;$k[$j++]="bwipp.maxicodeExpectedServiceClass#21537";$k[$j++]="Expected service class followed by group separator character";bwipp_raiseerror()}$_.barcode=$k[--$j];var _1I=$s($_.barcode.length+$_.fid.length);$P(_1I,0,$_.fid);$P(_1I,$_.fid.length,$_.barcode);$_.barcode=_1I;$_.barlen=$_.barcode.length;$k[$j++]=Infinity;var _1N=$_.barcode;for(var _1O=0,_1P=_1N.length;_1O<_1P;_1O++){$k[$j++]=$g(_1N,_1O)}$_.msg=$a();$_.msglen=$_.msg.length}if(!bwipp_maxicode.__21647__){$_=Object.create($_);$_.eci=-1;$_.pad=-2;$_.ns=-3;$_.la=-4;$_.lb=-5;$_.sa=-6;$_.sb=-7;$_.sc=-8;$_.sd=-9;$_.se=-10;$_.sa2=-11;$_.sa3=-12;$_.lkc=-13;$_.lkd=-14;$_.lke=-15;$_.pd2=-16;$_.pd3=-17;$_.charmaps=$a([$a([13,"`",192,224,0]),$a(["A","a",193,225,1]),$a(["B","b",194,226,2]),$a(["C","c",195,227,3]),$a(["D","d",196,228,4]),$a(["E","e",197,229,5]),$a(["F","f",198,230,6]),$a(["G","g",199,231,7]),$a(["H","h",200,232,8]),$a(["I","i",201,233,9]),$a(["J","j",202,234,10]),$a(["K","k",203,235,11]),$a(["L","l",204,236,12]),$a(["M","m",205,237,13]),$a(["N","n",206,238,14]),$a(["O","o",207,239,15]),$a(["P","p",208,240,16]),$a(["Q","q",209,241,17]),$a(["R","r",210,242,18]),$a(["S","s",211,243,19]),$a(["T","t",212,244,20]),$a(["U","u",213,245,21]),$a(["V","v",214,246,22]),$a(["W","w",215,247,23]),$a(["X","x",216,248,24]),$a(["Y","y",217,249,25]),$a(["Z","z",218,250,26]),$a([$_.eci,$_.eci,$_.eci,$_.eci,$_.eci]),$a([28,28,28,28,$_.pad]),$a([29,29,29,29,$_.pad]),$a([30,30,30,30,27]),$a([$_.ns,$_.ns,$_.ns,$_.ns,$_.ns]),$a([" ","{",219,251,28]),$a([$_.pad,$_.pad,220,252,29]),$a(['"',"}",221,253,30]),$a(["#","~",222,254,31]),$a(["$",127,223,255,159]),$a(["%",";",170,161,160]),$a(["&","<",172,168,162]),$a(["'","=",177,171,163]),$a([40,">",178,175,164]),$a([41,"?",179,176,165]),$a(["*","[",181,180,166]),$a(["+",92,185,183,167]),$a([",","]",186,184,169]),$a(["-","^",188,187,173]),$a([".","_",189,191,174]),$a(["/"," ",190,138,182]),$a(["0",",",128,139,149]),$a(["1",".",129,140,150]),$a(["2","/",130,141,151]),$a(["3",":",131,142,152]),$a(["4","@",132,143,153]),$a(["5","!",133,144,154]),$a(["6","|",134,145,155]),$a(["7",$_.pd2,135,146,156]),$a(["8",$_.sa2,136,147,157]),$a(["9",$_.sa3,137,148,158]),$a([":",$_.pd3,$_.la,$_.la,$_.la]),$a([$_.sb,$_.sa," "," "," "]),$a([$_.sc,$_.sc,$_.lkc,$_.sc,$_.sc]),$a([$_.sd,$_.sd,$_.sd,$_.lkd,$_.sd]),$a([$_.se,$_.se,$_.se,$_.se,$_.lke]),$a([$_.lb,$_.la,$_.lb,$_.lb,$_.lb])]);$_.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _3G=0,_3F=$_.charmaps.length-1;_3G<=_3F;_3G+=1){$_.i=_3G;$_.encs=$g($_.charmaps,$_.i);for(var _3K=0;_3K<=4;_3K+=1){$_.j=_3K;var _3N=$g($_.encs,$_.j);$k[$j++]=_3N;if($eq($t(_3N),"stringtype")){var _3Q=$g($k[--$j],0);$k[$j++]=_3Q}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.seta=$g($_.charvals,0);$_.setb=$g($_.charvals,1);$_.setc=$g($_.charvals,2);$_.setd=$g($_.charvals,3);$_.sete=$g($_.charvals,4);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_maxicode.$ctx[id]=$_[id]);bwipp_maxicode.__21647__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;for(var _3i=0,_3j=$_.msglen+1;_3i<_3j;_3i++){$k[$j++]=0}$_.nseq=$a();for(var _3m=$_.msglen-1;_3m>=0;_3m-=1){$_.i=_3m;var _3p=$g($_.msg,$_.i);if(_3p>=48&&_3p<=57){$p($_.nseq,$_.i,$f($g($_.nseq,$_.i+1)+1))}else{$p($_.nseq,$_.i,0)}}$_.nseq=$G($_.nseq,0,$_.msglen);$_.prefixinset=function(){$k[$j++]=0;for(;;){var _40=$k[--$j];var _41=$k[--$j];$k[$j++]=_41;$k[$j++]=_40;if(_40>=_41.length){break}var _42=$k[--$j];var _43=$k[--$j];var _45=$k[--$j];var _46=$g(_45,$g(_43,_42))!==undefined;$k[$j++]=_45;$k[$j++]=_43;$k[$j++]=_42;if(_46){var _47=$k[--$j];$k[$j++]=$f(_47+1)}else{break}}var _48=$k[--$j];var _49=$k[--$j];$k[$j++]=_48;$k[$j++]=_49;$j--;var _4A=$k[--$j];var _4B=$k[--$j];$k[$j++]=_4A;$k[$j++]=_4B;$j--};$_.enc=function(){var _4C=$k[--$j];$p($_.out,$_.j,$g(_4C,$k[--$j]));$_.j=$_.j+1};$_.out=$a(144);$_.i=0;$_.j=0;$_.cset="seta";for(;;){if($_.i==$_.msglen){if($ne($_.cset,"seta")&&$ne($_.cset,"setb")){$k[$j++]=$_.la;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="seta"}break}for(;;){if($g($_.msg,$_.i)<=-1e6){$k[$j++]=$_.eci;$k[$j++]=$_[$_.cset];$_.enc();var _4Z=$f(-$g($_.msg,$_.i)-1e6);$k[$j++]=_4Z;if(_4Z<=31){var _4a=$k[--$j];$k[$j++]=_4a&63;$as($a(1))}else{var _4c=$k[--$j];$k[$j++]=_4c;if(_4c<=1023){var _4d=$k[--$j];$k[$j++]=_4d>>>6&31|32;$k[$j++]=_4d&63;$as($a(2))}else{var _4f=$k[--$j];$k[$j++]=_4f;if(_4f<=32767){var _4g=$k[--$j];$k[$j++]=_4g>>>12&47|48;$k[$j++]=_4g>>>6&63;$k[$j++]=_4g&63;$as($a(3))}else{var _4i=$k[--$j];$k[$j++]=_4i>>>18&55|56;$k[$j++]=_4i>>>12&63;$k[$j++]=_4i>>>6&63;$k[$j++]=_4i&63;$as($a(4))}}}var _4k=$k[--$j];$P($_.out,$_.j,_4k);$_.j=_4k.length+$_.j;$_.i=$_.i+1;break}if($g($_.nseq,$_.i)>=9){var _4u=$G($_.msg,$_.i,9);$k[$j++]=0;for(var _4v=0,_4w=_4u.length;_4v<_4w;_4v++){var _4y=$k[--$j];$k[$j++]=$f(_4y+$f($g(_4u,_4v)-48))*10}var _4z=$k[--$j];$k[$j++]=~~(_4z/10);for(var _50=0,_51=4;_50<_51;_50++){var _52=$k[--$j];$k[$j++]=_52&63;$k[$j++]=_52>>>6}$k[$j++]=$g($_[$_.cset],$_.ns);for(var _57=0;_57<=10;_57+=2){var _58=$k[$j-1-_57];$k[$j++]=_58}$as($a(6));var _5A=$k[--$j];var _5B=$k[--$j];var _5C=$k[--$j];var _5D=$k[--$j];var _5E=$k[--$j];var _5F=$k[--$j];var _5G=$k[--$j];$k[$j++]=_5A;$k[$j++]=_5G;$k[$j++]=_5F;$k[$j++]=_5E;$k[$j++]=_5D;$k[$j++]=_5C;$k[$j++]=_5B;for(var _5H=0,_5I=6;_5H<_5I;_5H++){$j--}$P($_.out,$_.j,$k[--$j]);$_.i=$_.i+9;$_.j=$_.j+6;break}$_.char1=$g($_.msg,$_.i);$k[$j++]="char2";if($_.i+1<$_.msglen){$k[$j++]=$g($_.msg,$_.i+1)}else{$k[$j++]=-99}var _5W=$k[--$j];$_[$k[--$j]]=_5W;$k[$j++]="char3";if($_.i+2<$_.msglen){$k[$j++]=$g($_.msg,$_.i+2)}else{$k[$j++]=-99}var _5d=$k[--$j];$_[$k[--$j]]=_5d;var _5i=$g($_[$_.cset],$_.char1)!==undefined;if(_5i){$k[$j++]=$_.char1;$k[$j++]=$_[$_.cset];$_.enc();$_.i=$_.i+1;break}var _5q=$g($_.setb,$_.char1)!==undefined;if($eq($_.cset,"seta")&&_5q){var _5t=$g($_.setb,$_.char2)!==undefined;if(_5t){$k[$j++]=$_.lb;$k[$j++]=$_.seta;$_.enc();$_.cset="setb"}else{$k[$j++]=$_.sb;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.setb;$_.enc();$_.i=$_.i+1}break}var _64=$g($_.seta,$_.char1)!==undefined;if($eq($_.cset,"setb")&&_64){var _65=$_.seta;var _66=$_.msg;var _67=$_.i;var _68=$_.msglen;var _69=$_.i;var _6A=_68-_69;var _6B=4;if(4>_68-_69){var _=_6A;_6A=_6B;_6B=_}$k[$j++]="p";$k[$j++]=_65;$k[$j++]=$G(_66,_67,_6B);$_.prefixinset();var _6D=$k[--$j];$_[$k[--$j]]=_6D;if($_.p==1){$k[$j++]=$_.sa;$k[$j++]=$_.setb;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.seta;$_.enc();$_.i=$_.i+1}if($_.p==2){$k[$j++]=$_.sa2;$k[$j++]=$_.setb;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_.seta;$_.enc();$_.i=$_.i+2}if($_.p==3){$k[$j++]=$_.sa3;$k[$j++]=$_.setb;$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_.seta;$_.enc();$k[$j++]=$_.char3;$k[$j++]=$_.seta;$_.enc();$_.i=$_.i+3}if($_.p>=4){$k[$j++]=$_.la;$k[$j++]=$_.setb;$_.enc();$_.cset="seta"}break}var _6i=$g($_.seta,$_.char1)!==undefined;if(_6i){$k[$j++]=$_.la;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="seta";break}var _6o=$g($_.setb,$_.char1)!==undefined;if(_6o){$k[$j++]=$_.lb;$k[$j++]=$_[$_.cset];$_.enc();$_.cset="setb";break}var _6u=$g($_.setc,$_.char1)!==undefined;if(_6u){$_.setx="setc";$_.sx=$_.sc;$_.lkx=$_.lkc}var _6z=$g($_.setd,$_.char1)!==undefined;if(_6z){$_.setx="setd";$_.sx=$_.sd;$_.lkx=$_.lkd}var _74=$g($_.sete,$_.char1)!==undefined;if(_74){$_.setx="sete";$_.sx=$_.se;$_.lkx=$_.lke}var _78=$_[$_.setx];var _79=$_.msg;var _7A=$_.i;var _7B=$_.msglen;var _7C=$_.i;var _7D=_7B-_7C;var _7E=4;if(4>_7B-_7C){var _=_7D;_7D=_7E;_7E=_}$k[$j++]="p";$k[$j++]=_78;$k[$j++]=$G(_79,_7A,_7E);$_.prefixinset();var _7G=$k[--$j];$_[$k[--$j]]=_7G;if($_.p==1){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_[$_.setx];$_.enc();$_.i=$_.i+1}if($_.p==2){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_[$_.setx];$_.enc();$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_[$_.setx];$_.enc();$_.i=$_.i+2}if($_.p==3){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char1;$k[$j++]=$_[$_.setx];$_.enc();$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char2;$k[$j++]=$_[$_.setx];$_.enc();$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.char3;$k[$j++]=$_[$_.setx];$_.enc();$_.i=$_.i+3}if($_.p>=4){$k[$j++]=$_.sx;$k[$j++]=$_[$_.cset];$_.enc();$k[$j++]=$_.lkx;$k[$j++]=$_[$_.setx];$_.enc();$_.cset=$_.setx}break}}$_.encmsg=$G($_.out,0,$_.j);$_.padval=$g($_[$_.cset],$_.pad);$k[$j++]="sami";if($_.sam!=-1){$k[$j++]=$a([$g($_.seta,$_.pad),(~~($_.sam/10)-1)*8+($_.sam%10-1)])}else{$k[$j++]=$a([])}var _8L=$k[--$j];$_[$k[--$j]]=_8L;$k[$j++]=Infinity;$q($_.sami);$q($_.encmsg);$_.encmsg=$a();if($_.mode==2||$_.mode==3){if($_.encmsg.length>84){$k[$j++]="bwipp.maxicodeMode23TooLong#21840";$k[$j++]="The secondary message is too long";bwipp_raiseerror()}var _8U=$Z($s(4),"0000");var _8X=$R($s(4),~~$_.mode,2);$P(_8U,4-_8X.length,_8X);$_.mdb=_8U;var _8Z=$Z($s(10),"0000000000");var _8c=$R($s(10),$i($_.ccode),2);$P(_8Z,10-_8c.length,_8c);$_.ccb=_8Z;var _8e=$Z($s(10),"0000000000");var _8h=$R($s(10),$i($_.scode),2);$P(_8e,10-_8h.length,_8h);$_.scb=_8e;$_.pcb=$Z($s(36),"000000000000000000000000000000000000");if($_.mode==2){var _8o=$R($s(6),$_.pcode.length,2);$P($_.pcb,6-_8o.length,_8o);var _8s=$R($s(30),$i($_.pcode),2);$P($_.pcb,36-_8s.length,_8s)}else{$k[$j++]=Infinity;var _8u=$Z($s(6)," ");$k[$j++]=_8u;$k[$j++]=_8u;$k[$j++]=0;if($_.pcode.length>6){$k[$j++]=$G($_.pcode,0,6)}else{$k[$j++]=$_.pcode}var _8z=$k[--$j];var _90=$k[--$j];$P($k[--$j],_90,_8z);$F($k[--$j],function(){var _95=$g($_.seta,$k[--$j]);$k[$j++]=_95});$_.pccw=$a();for(var _97=0;_97<=5;_97+=1){$_.i=_97;var _9D=$R($s(6),$g($_.pccw,$_.i),2);$P($_.pcb,6*$_.i+6-_9D.length,_9D)}}$_.scm=$s(60);$P($_.scm,2,$_.mdb);$P($_.scm,38,$G($_.pcb,0,4));$P($_.scm,30,$G($_.pcb,4,6));$P($_.scm,24,$G($_.pcb,10,6));$P($_.scm,18,$G($_.pcb,16,6));$P($_.scm,12,$G($_.pcb,22,6));$P($_.scm,6,$G($_.pcb,28,6));$P($_.scm,0,$G($_.pcb,34,2));$P($_.scm,52,$G($_.ccb,0,2));$P($_.scm,42,$G($_.ccb,2,6));$P($_.scm,36,$G($_.ccb,8,2));$P($_.scm,54,$G($_.scb,0,6));$P($_.scm,48,$G($_.scb,6,4));$_.pri=$a([0,0,0,0,0,0,0,0,0,0]);for(var _9t=0;_9t<=59;_9t+=1){$_.i=_9t;$_.ps=~~($_.i/6);$_.ep=~~Math.pow(2,5-$_.i%6)*($g($_.scm,$_.i)-48);$p($_.pri,$_.ps,$f($g($_.pri,$_.ps)+$_.ep))}$k[$j++]=Infinity;for(var _A5=0,_A6=84;_A5<_A6;_A5++){$k[$j++]=$_.padval}$_.sec=$a();$P($_.sec,0,$_.encmsg)}if($_.mode==4||$_.mode==5||$_.mode==6||$_.mode==-1){if($_.mode==-1){var _AH=$_.encmsg.length<=77?5:4;$_.mode=_AH}$k[$j++]=Infinity;var _AJ=$_.mode==5?78:94;for(var _AK=0,_AL=_AJ;_AK<_AL;_AK++){$k[$j++]=$_.padval}$_.cws=$a();if($_.encmsg.length>$_.cws.length-1){$k[$j++]="bwipp.maxicodeMode56TooLong#21905";$k[$j++]="The message is too long";bwipp_raiseerror()}$p($_.cws,0,$_.mode);$P($_.cws,1,$_.encmsg);$_.pri=$G($_.cws,0,10);$_.sec=$G($_.cws,10,$_.cws.length-10)}if(!bwipp_maxicode.__21921__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _AZ=0,_Aa=63;_AZ<_Aa;_AZ++){var _Ab=$k[--$j];var _Ac=_Ab*2;$k[$j++]=_Ab;$k[$j++]=_Ac;if(_Ac>=64){var _Ad=$k[--$j];$k[$j++]=_Ad^67}}$_.rsalog=$a();$_.rslog=$a(64);for(var _Ag=1;_Ag<=63;_Ag+=1){$p($_.rslog,$g($_.rsalog,_Ag),_Ag)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_maxicode.$ctx[id]=$_[id]);bwipp_maxicode.__21921__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _Al=$k[--$j];var _Am=$k[--$j];$k[$j++]=_Am;$k[$j++]=_Al;if(_Al!=0&&_Am!=0){var _Ap=$g($_.rslog,$k[--$j]);var _Au=$g($_.rsalog,$f(_Ap+$g($_.rslog,$k[--$j]))%63);$k[$j++]=_Au}else{$j-=2;$k[$j++]=0}};$_.rscodes=function(){$_.rsnum=$k[--$j];$_.cwb=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _Ay=0,_Az=$_.rsnum;_Ay<_Az;_Ay++){$k[$j++]=0}$_.coeffs=$a();for(var _B3=1,_B2=$_.rsnum;_B3<=_B2;_B3+=1){$_.i=_B3;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _BA=$_.i-1;_BA>=1;_BA-=1){$_.j=_BA;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _BM=$k[--$j];var _BN=$k[--$j];var _BO=$k[--$j];$p($k[--$j],_BO,$xo(_BN,_BM))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _BW=$k[--$j];var _BX=$k[--$j];$p($k[--$j],_BX,_BW)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);$k[$j++]=Infinity;for(var _Bd=0,_Be=$_.rsnum;_Bd<_Be;_Bd++){$k[$j++]=0}$_.ecb=$a();for(var _Bi=0,_Bh=$_.cwb.length-1;_Bi<=_Bh;_Bi+=1){$_.t=$xo($g($_.cwb,_Bi),$g($_.ecb,0));for(var _Bo=$_.ecb.length-1;_Bo>=0;_Bo-=1){$_.i=_Bo;$_.p=$_.ecb.length-$_.i-1;$k[$j++]=$_.ecb;$k[$j++]=$_.p;$k[$j++]=$_.t;$k[$j++]=$g($_.coeffs,$_.i);$_.rsprod();var _Bx=$k[--$j];var _By=$k[--$j];$p($k[--$j],_By,_Bx);if($_.i>0){$p($_.ecb,$_.p,$xo($g($_.ecb,$_.p+1),$g($_.ecb,$_.p)))}}}$k[$j++]=$_.ecb};$k[$j++]=Infinity;for(var _CC=0,_CB=$_.sec.length-1;_CC<=_CB;_CC+=2){$k[$j++]=$g($_.sec,_CC)}$_.seco=$a();$k[$j++]=Infinity;for(var _CI=1,_CH=$_.sec.length-1;_CI<=_CH;_CI+=2){$k[$j++]=$g($_.sec,_CI)}$_.sece=$a();var _CN=$_.sec.length==84?20:28;$_.scodes=_CN;$k[$j++]="secochk";$k[$j++]=$_.seco;$k[$j++]=$_.scodes;$_.rscodes();var _CQ=$k[--$j];$_[$k[--$j]]=_CQ;$k[$j++]="secechk";$k[$j++]=$_.sece;$k[$j++]=$_.scodes;$_.rscodes();var _CU=$k[--$j];$_[$k[--$j]]=_CU;$k[$j++]=Infinity;for(var _CY=0,_CX=$_.scodes-1;_CY<=_CX;_CY+=1){$k[$j++]=$g($_.secochk,_CY);$k[$j++]=$g($_.secechk,_CY)}$_.secchk=$a();$k[$j++]=Infinity;$q($_.pri);$k[$j++]=$_.pri;$k[$j++]=10;$_.rscodes();$q($k[--$j]);$q($_.sec);$q($_.secchk);$_.codewords=$a();$k[$j++]=Infinity;for(var _Ck=0,_Cl=864;_Ck<_Cl;_Ck++){$k[$j++]=0}$_.mods=$a();for(var _Cn=0;_Cn<=143;_Cn+=1){$_.i=_Cn;$k[$j++]=Infinity;var _Cs=$R($s(6),$g($_.codewords,$_.i),2);for(var _Ct=0,_Cu=_Cs.length;_Ct<_Cu;_Ct++){$k[$j++]=$g(_Cs,_Ct)-48}$_.cw=$a();$P($_.mods,6*$_.i+(6-$_.cw.length),$_.cw)}if(!bwipp_maxicode.__22043__){$_=Object.create($_);$_.modmap=$a([469,529,286,316,347,346,673,672,703,702,647,676,283,282,313,312,370,610,618,379,378,409,408,439,705,704,559,589,588,619,458,518,640,701,675,674,285,284,315,314,310,340,531,289,288,319,349,348,456,486,517,516,471,470,369,368,399,398,429,428,549,548,579,578,609,608,649,648,679,678,709,708,639,638,669,668,699,698,279,278,309,308,339,338,381,380,411,410,441,440,561,560,591,590,621,620,547,546,577,576,607,606,367,366,397,396,427,426,291,290,321,320,351,350,651,650,681,680,711,710,1,0,31,30,61,60,3,2,33,32,63,62,5,4,35,34,65,64,7,6,37,36,67,66,9,8,39,38,69,68,11,10,41,40,71,70,13,12,43,42,73,72,15,14,45,44,75,74,17,16,47,46,77,76,19,18,49,48,79,78,21,20,51,50,81,80,23,22,53,52,83,82,25,24,55,54,85,84,27,26,57,56,87,86,117,116,147,146,177,176,115,114,145,144,175,174,113,112,143,142,173,172,111,110,141,140,171,170,109,108,139,138,169,168,107,106,137,136,167,166,105,104,135,134,165,164,103,102,133,132,163,162,101,100,131,130,161,160,99,98,129,128,159,158,97,96,127,126,157,156,95,94,125,124,155,154,93,92,123,122,153,152,91,90,121,120,151,150,181,180,211,210,241,240,183,182,213,212,243,242,185,184,215,214,245,244,187,186,217,216,247,246,189,188,219,218,249,248,191,190,221,220,251,250,193,192,223,222,253,252,195,194,225,224,255,254,197,196,227,226,257,256,199,198,229,228,259,258,201,200,231,230,261,260,203,202,233,232,263,262,205,204,235,234,265,264,207,206,237,236,267,266,297,296,327,326,357,356,295,294,325,324,355,354,293,292,323,322,353,352,277,276,307,306,337,336,275,274,305,304,335,334,273,272,303,302,333,332,271,270,301,300,331,330,361,360,391,390,421,420,363,362,393,392,423,422,365,364,395,394,425,424,383,382,413,412,443,442,385,384,415,414,445,444,387,386,417,416,447,446,477,476,507,506,537,536,475,474,505,504,535,534,473,472,503,502,533,532,455,454,485,484,515,514,453,452,483,482,513,512,451,450,481,480,511,510,541,540,571,570,601,600,543,542,573,572,603,602,545,544,575,574,605,604,563,562,593,592,623,622,565,564,595,594,625,624,567,566,597,596,627,626,657,656,687,686,717,716,655,654,685,684,715,714,653,652,683,682,713,712,637,636,667,666,697,696,635,634,665,664,695,694,633,632,663,662,693,692,631,630,661,660,691,690,721,720,751,750,781,780,723,722,753,752,783,782,725,724,755,754,785,784,727,726,757,756,787,786,729,728,759,758,789,788,731,730,761,760,791,790,733,732,763,762,793,792,735,734,765,764,795,794,737,736,767,766,797,796,739,738,769,768,799,798,741,740,771,770,801,800,743,742,773,772,803,802,745,744,775,774,805,804,747,746,777,776,807,806,837,836,867,866,897,896,835,834,865,864,895,894,833,832,863,862,893,892,831,830,861,860,891,890,829,828,859,858,889,888,827,826,857,856,887,886,825,824,855,854,885,884,823,822,853,852,883,882,821,820,851,850,881,880,819,818,849,848,879,878,817,816,847,846,877,876,815,814,845,844,875,874,813,812,843,842,873,872,811,810,841,840,871,870,901,900,931,930,961,960,903,902,933,932,963,962,905,904,935,934,965,964,907,906,937,936,967,966,909,908,939,938,969,968,911,910,941,940,971,970,913,912,943,942,973,972,915,914,945,944,975,974,917,916,947,946,977,976,919,918,949,948,979,978,921,920,951,950,981,980,923,922,953,952,983,982,925,924,955,954,985,984,927,926,957,956,987,986,58,89,88,118,149,148,178,209,208,238,269,268,298,329,328,358,389,388,418,449,448,478,509,508,538,569,568,598,629,628,658,689,688,718,749,748,778,809,808,838,869,868,898,929,928,958,989,988]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_maxicode.$ctx[id]=$_[id]);bwipp_maxicode.__22043__=1;$_=Object.getPrototypeOf($_)}$_.pixs=$a(864);$_.j=0;for(var _D6=0,_D5=$_.mods.length-1;_D6<=_D5;_D6+=1){$_.i=_D6;if($g($_.mods,$_.i)==1){$p($_.pixs,$_.j,$g($_.modmap,$_.i));$_.j=$_.j+1}}$k[$j++]=Infinity;$q($G($_.pixs,0,$_.j));$k[$j++]=28;$k[$j++]=29;$k[$j++]=280;$k[$j++]=281;$k[$j++]=311;$k[$j++]=457;$k[$j++]=488;$k[$j++]=500;$k[$j++]=530;$k[$j++]=670;$k[$j++]=700;$k[$j++]=677;$k[$j++]=707;$_.pixs=$a();var _DM=new Map([["ren",bwipp_renmaximatrix],["pixs",$_.pixs],["borderleft",1],["borderright",1],["bordertop",1],["borderbottom",1],["opt",$_.options]]);$k[$j++]=_DM;if(!$_.dontdraw){bwipp_renmaximatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_azteccode(){$_=Object.create($_);$_.dontdraw=false;$_.format="full";$_.readerinit=false;$_.layers=-1;$_.eclevel=23;$_.ecaddchars=3;$_.raw=false;$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_azteccode);if($eq($_.barcode,"")){$k[$j++]="bwipp.aztecEmptyData#22122";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($_.eclevel<5||$_.eclevel>95){$k[$j++]="bwipp.aztecInvalidEClevel#22126";$k[$j++]="The EC percentage must be from 5 to 95";bwipp_raiseerror()}if($_.ecaddchars<3){$k[$j++]="bwipp.aztecInvalidECaddChars#22130";$k[$j++]="The number of additional EC codewords must be 3 or more";bwipp_raiseerror()}if($ne($_.format,"full")&&($ne($_.format,"compact")&&$ne($_.format,"rune"))){$k[$j++]="bwipp.aztecInvalidFormat#22134";$k[$j++]="The format must be either full, compact or rune";bwipp_raiseerror()}if($eq($_.format,"full")){if($_.readerinit&&($_.layers<1||$_.layers>22)){$k[$j++]="bwipp.aztecFullInitInvalidLayers#22139";$k[$j++]="Full-range symbols for reader programming must specify from 1 to 22 layers";bwipp_raiseerror()}if($_.layers!=-1&&($_.layers<1||$_.layers>32)){$k[$j++]="bwipp.aztecFullInvalidLayers#22142";$k[$j++]="Layers for full-range symbols must be from 1 to 32";bwipp_raiseerror()}}if($eq($_.format,"compact")){if($_.readerinit){if($_.layers!=-1&&$_.layers!=1){$k[$j++]="bwipp.aztecCompactInitInvalidLayers#22149";$k[$j++]="Compact symbols for reader programming must have 1 layer";bwipp_raiseerror()}$_.layers=1}if($_.layers!=-1&&($_.layers<1||$_.layers>4)){$k[$j++]="bwipp.aztecCompactInvalidLayers#22154";$k[$j++]="Layers for compact symbols must be from 1 to 4";bwipp_raiseerror()}}if($eq($_.format,"rune")){if($_.layers!=-1){$k[$j++]="bwipp.aztecRuneInvalidLayers#22160";$k[$j++]="It is not valid to specify layers for runes";bwipp_raiseerror()}if($_.readerinit){$k[$j++]="bwipp.aztecRuneReaderInit#22163";$k[$j++]="Reader initialisation is not compactible with Aztec Runes";bwipp_raiseerror()}if($_.barcode.length==0){$k[$j++]="bwipp.aztecRuneNotNumeric#22166";$k[$j++]="Aztec runes must be numeric";bwipp_raiseerror()}$F($_.barcode,function(){var _S=$k[--$j];if(_S<48||_S>57){$k[$j++]="bwipp.aztecRuneNotNumeric#22170";$k[$j++]="Aztec runes must be numeric";bwipp_raiseerror()}});var _U=$i($_.barcode);if(_U<0||_U>255){$k[$j++]="bwipp.aztecRuneInvalid#22174";$k[$j++]="Aztec runes must be 0 to 255";bwipp_raiseerror()}}$_.fn1=-1;var _Y=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1]]);$_.fncvals=_Y;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _b=$k[--$j];$_[$k[--$j]]=_b;$_.msglen=$_.msg.length;if(!bwipp_azteccode.__22287__){$_=Object.create($_);$_.U=0;$_.L=1;$_.M=2;$_.P=3;$_.D=4;$_.B=5;$_.lu=-2;$_.ll=-3;$_.lm=-4;$_.lp=-5;$_.ld=-6;$_.su=-7;$_.sp=-8;$_.sb=-9;$_.fl=-10;$_.p2=-11;$_.p3=-12;$_.p4=-13;$_.p5=-14;$_.charmaps=$a([$a([$_.sp,$_.sp,$_.sp,$_.fl,$_.sp]),$a([32,32,32,13,32]),$a(["A","a",1,$_.p2,"0"]),$a(["B","b",2,$_.p3,"1"]),$a(["C","c",3,$_.p4,"2"]),$a(["D","d",4,$_.p5,"3"]),$a(["E","e",5,"!","4"]),$a(["F","f",6,'"',"5"]),$a(["G","g",7,"#","6"]),$a(["H","h",8,"$","7"]),$a(["I","i",9,"%","8"]),$a(["J","j",10,"&","9"]),$a(["K","k",11,"'",","]),$a(["L","l",12,40,"."]),$a(["M","m",13,41,$_.lu]),$a(["N","n",27,"*",$_.su]),$a(["O","o",28,"+",-99]),$a(["P","p",29,",",-99]),$a(["Q","q",30,"-",-99]),$a(["R","r",31,".",-99]),$a(["S","s","@","/",-99]),$a(["T","t",92,":",-99]),$a(["U","u","^",";",-99]),$a(["V","v","_","<",-99]),$a(["W","w","`","=",-99]),$a(["X","x","|",">",-99]),$a(["Y","y","~","?",-99]),$a(["Z","z",127,"[",-99]),$a([$_.ll,$_.su,$_.ll,"]",-99]),$a([$_.lm,$_.lm,$_.lu,"{",-99]),$a([$_.ld,$_.ld,$_.lp,"}",-99]),$a([$_.sb,$_.sb,$_.sb,$_.lu,-99])]);$_.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _1c=0,_1b=$_.charmaps.length-1;_1c<=_1b;_1c+=1){$_.i=_1c;$_.encs=$g($_.charmaps,$_.i);for(var _1g=0;_1g<=4;_1g+=1){$_.j=_1g;var _1j=$g($_.encs,$_.j);$k[$j++]=_1j;if($eq($t(_1j),"stringtype")){var _1m=$g($k[--$j],0);$k[$j++]=_1m}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}var _1w=new Map([["\r\n",$_.p2],[". ",$_.p3],[", ",$_.p4],[": ",$_.p5]]);$_.pcomp=_1w;$_.e=1e6;var _22=$a([0,0,0,0,0,0]);$_.latlen=$a([$a([0,5,5,10,5,10]),$a([9,0,5,10,5,10]),$a([5,5,0,5,10,10]),$a([5,10,10,0,10,15]),$a([4,9,9,14,0,14]),_22]);$_.latseq=$a([$a([$a([]),$a([$_.ll]),$a([$_.lm]),$a([$_.lm,$_.lp]),$a([$_.ld]),$a([$_.sb])]),$a([$a([$_.ld,$_.lu]),$a([]),$a([$_.lm]),$a([$_.lm,$_.lp]),$a([$_.ld]),$a([$_.sb])]),$a([$a([$_.lu]),$a([$_.ll]),$a([]),$a([$_.lp]),$a([$_.lu,$_.ld]),$a([$_.sb])]),$a([$a([$_.lu]),$a([$_.lu,$_.ll]),$a([$_.lu,$_.lm]),$a([]),$a([$_.lu,$_.ld]),$a([$_.lu,$_.sb])]),$a([$a([$_.lu]),$a([$_.lu,$_.ll]),$a([$_.lu,$_.lm]),$a([$_.lu,$_.lm,$_.lp]),$a([]),$a([$_.lu,$_.sb])]),$a([$a([$_.lu]),$a([$_.ll]),$a([$_.lm]),$a([]),$a([]),$a([])])]);$_.shftlen=$a([$a([$_.e,$_.e,$_.e,5,$_.e]),$a([5,$_.e,$_.e,5,$_.e]),$a([$_.e,$_.e,$_.e,5,$_.e]),$a([$_.e,$_.e,$_.e,$_.e,$_.e]),$a([4,$_.e,$_.e,4,$_.e])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22287__=1;$_=Object.getPrototypeOf($_)}$_.msgbits="";if($ne($_.format,"rune")&&$_.raw){$_.msgbits=$_.barcode}if($ne($_.format,"rune")&&!$_.raw){$_.charsize=function(){var _3v=$k[--$j];$k[$j++]=_3v;if(_3v>=0){$j--;var _3y=$g($a([5,5,5,5,4,8]),$k[--$j]);$k[$j++]=_3y}else{var _3z=$k[--$j];var _40=$k[--$j];$k[$j++]=_3z;$k[$j++]=_40;$j--;var _41=$k[--$j];$k[$j++]=_41;if(_41==$_.fn1){$j--;$k[$j++]=8}else{var _44=$f(-$k[--$j]-1e6);$k[$j++]=_44;if(_44==0){$j--;$k[$j++]=1}var _45=$k[--$j];$k[$j++]=(~~(Math.log(_45)/Math.log(10))+1)*4+8}}};$_.curlen=$a([0,$_.e,$_.e,$_.e,$_.e,$_.e]);$_.curseq=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([])]);$_.backto=$_.U;$_.lastchar="";$F($_.msg,function(){$_.char=$k[--$j];for(;;){$_.imp=false;var _4S=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _4T=0,_4U=_4S.length;_4T<_4U;_4T++){$_.x=$g(_4S,_4T);var _4c=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _4d=0,_4e=_4c.length;_4d<_4e;_4d++){$_.y=$g(_4c,_4d);if($_.x!=$_.B||$_.y==$_.backto){$_.cost=$f($g($_.curlen,$_.x)+$g($g($_.latlen,$_.x),$_.y));if($_.cost<$g($_.curlen,$_.y)){$p($_.curlen,$_.y,$_.cost);$k[$j++]=$_.curseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$q($g($g($_.latseq,$_.x),$_.y));var _59=$a();var _5A=$k[--$j];$p($k[--$j],_5A,_59);if($_.y==$_.B){$k[$j++]="backto";if($_.x==$_.P||$_.x==$_.D){$k[$j++]=$_.U}else{$k[$j++]=$_.x}var _5K=$k[--$j];$_[$k[--$j]]=_5K}$_.imp=true}}}}if(!$_.imp){break}}$_.nxtlen=$a([$_.e,$_.e,$_.e,$_.e,$_.e,$_.e]);$_.nxtseq=$a(6);var _5b=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _5c=0,_5d=_5b.length;_5c<_5d;_5c++){$_.x=$g(_5b,_5c);for(;;){if($_.char>=0){if($_.x!=$_.B){var _5m=$g($g($_.charvals,$_.x),$_.char)!==undefined;if(!_5m){break}}}else{if($_.x!=$_.P){break}}$k[$j++]="cost";$k[$j++]=$g($_.curlen,$_.x);$k[$j++]=$_.x;$k[$j++]=$_.char;$_.charsize();var _5u=$k[--$j];var _5v=$k[--$j];$_[$k[--$j]]=$f(_5v+_5u);if($_.cost<$g($_.nxtlen,$_.x)){$p($_.nxtlen,$_.x,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.x;$k[$j++]=Infinity;$q($g($_.curseq,$_.x));$k[$j++]=$_.char;var _6A=$a();var _6B=$k[--$j];$p($k[--$j],_6B,_6A)}if($_.x==$_.B){break}var _6K=$a([$_.U,$_.L,$_.M,$_.P,$_.D]);for(var _6L=0,_6M=_6K.length;_6L<_6M;_6L++){$_.y=$g(_6K,_6L);if($ne($_.x,$_.y)){$k[$j++]="cost";$k[$j++]=$f($g($_.curlen,$_.y)+$g($g($_.shftlen,$_.y),$_.x));$k[$j++]=$_.x;$k[$j++]=$_.char;$_.charsize();var _6a=$k[--$j];var _6b=$k[--$j];$_[$k[--$j]]=$f(_6b+_6a);if($_.cost<$g($_.nxtlen,$_.y)){$p($_.nxtlen,$_.y,$_.cost);$k[$j++]=$_.nxtseq;$k[$j++]=$_.y;$k[$j++]=Infinity;$q($g($_.curseq,$_.y));var _6r=$_.x==$_.U?$_.su:$_.sp;$k[$j++]=_6r;$k[$j++]=$_.char;var _6t=$a();var _6u=$k[--$j];$p($k[--$j],_6u,_6t)}}}break}}if($ne($_.lastchar,"")&&$_.char>=0){var _6y=$s(2);$p(_6y,0,$_.lastchar);$p(_6y,1,$_.char);$_.pchars=_6y;var _73=$g($_.pcomp,$_.pchars)!==undefined;if(_73){var _79=$a([$_.U,$_.L,$_.M,$_.P,$_.D]);for(var _7A=0,_7B=_79.length;_7A<_7B;_7A++){$_.i=$g(_79,_7A);$_.inP=true;if($_.i==$_.M){if($_.lastchar==13){$_.inP=false}}else{if($_.i==$_.D){if($_.lastchar==44||$_.lastchar==46){$_.inP=false}}}if($_.inP&&$lt($g($_.curlen,$_.i),$g($_.nxtlen,$_.i))){$_.curseqi=$g($_.curseq,$_.i);$_.lastld=false;$_.lastsp=false;$_.lastidx=-1;for(var _7V=$_.curseqi.length-1;_7V>=0;_7V-=1){$_.idx=_7V;$_.ch=$g($_.curseqi,$_.idx);if($_.lastidx==-1){if($eq($_.ch,$_.lastchar)){$_.lastidx=$_.idx;if($_.idx>0){if($g($_.curseqi,$_.idx-1)==$_.sp){$_.lastsp=true}}}}else{if($_.ch<0&&$_.ch>=$_.ld){if($_.i==$_.P){if($_.ch==$_.ld){$_.lastld=true}}else{if($_.ch!=$_.lp){$_.inP=$_.lastsp}}break}}}if($_.inP&&$_.lastidx>=0){$p($_.nxtlen,$_.i,$g($_.curlen,$_.i));if($_.lastidx<$_.curseqi.length-1){if($_.i==$_.P){if($_.lastld){$p($_.nxtlen,$_.i,$f($g($_.nxtlen,$_.i)+1))}$k[$j++]=$_.nxtseq;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($_.curseqi);$r($_.curseqi.length-$_.lastidx,-1);$j--;$k[$j++]=$g($_.pcomp,$_.pchars);var _8H=$a();var _8I=$k[--$j];$p($k[--$j],_8I,_8H)}else{$k[$j++]=$_.nxtseq;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($_.curseqi);var _8N=$a();var _8O=$k[--$j];$p($k[--$j],_8O,_8N);$p($g($_.nxtseq,$_.i),$_.lastidx,$g($_.pcomp,$_.pchars))}}else{$k[$j++]=$_.nxtseq;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($_.curseqi);$j--;$k[$j++]=$g($_.pcomp,$_.pchars);var _8d=$a();var _8e=$k[--$j];$p($k[--$j],_8e,_8d)}}}}}}if($ne($g($_.nxtseq,$_.B),null)){$_.numbytes=0;$F($g($_.nxtseq,$_.B),function(){if($k[--$j]==$_.sb){$k[$j++]=0}else{$k[$j++]=$_.numbytes+1}$_.numbytes=$k[--$j]});if($_.numbytes==32){$p($_.nxtlen,$_.B,$f($g($_.nxtlen,$_.B)+11))}}$_.curlen=$_.nxtlen;$_.curseq=$_.nxtseq;$k[$j++]="lastchar";if($_.char>=0){$k[$j++]=$_.char}else{$k[$j++]=""}var _90=$k[--$j];$_[$k[--$j]]=_90});$_.minseq=$_.e;var _99=$a([$_.U,$_.L,$_.M,$_.P,$_.D,$_.B]);for(var _9A=0,_9B=_99.length;_9A<_9B;_9A++){$_.i=$g(_99,_9A);if($g($_.curlen,$_.i)<$_.minseq){$_.minseq=$g($_.curlen,$_.i);$_.seq=$g($_.curseq,$_.i)}}$_.tobin=function(){var _9O=$s($k[--$j]);$k[$j++]=_9O;for(var _9Q=0,_9P=_9O.length-1;_9Q<=_9P;_9Q+=1){var _9R=$k[--$j];$p(_9R,_9Q,48);$k[$j++]=_9R}var _9S=$k[--$j];var _9V=$R($s(_9S.length),$k[--$j],2);$P(_9S,_9S.length-_9V.length,_9V);$k[$j++]=_9S};$_.encu=function(){var _9a=$g($g($_.charvals,$_.U),$k[--$j]);$k[$j++]=_9a;$k[$j++]=5;$_.tobin()};$_.encl=function(){var _9f=$g($g($_.charvals,$_.L),$k[--$j]);$k[$j++]=_9f;$k[$j++]=5;$_.tobin()};$_.encm=function(){var _9k=$g($g($_.charvals,$_.M),$k[--$j]);$k[$j++]=_9k;$k[$j++]=5;$_.tobin()};$_.encd=function(){var _9p=$g($g($_.charvals,$_.D),$k[--$j]);$k[$j++]=_9p;$k[$j++]=4;$_.tobin()};$_.encp=function(){var _9q=$k[--$j];$k[$j++]=_9q;if(_9q==$_.fn1){$j--;$k[$j++]="00000000"}else{var _9s=$k[--$j];$k[$j++]=_9s;if(_9s<=-1e6){var _9u=$f(-$k[--$j]-1e6);$k[$j++]=_9u;$k[$j++]=_9u;if(_9u==0){$j--;$k[$j++]=1}var _9w=~~(Math.log($k[--$j])/Math.log(10));var _9x=$s((_9w+1)*4+8);$P(_9x,0,"00000");$k[$j++]=_9w;$k[$j++]=_9x;$k[$j++]=_9x;$k[$j++]=_9w+1;$k[$j++]=3;$_.tobin();var _9y=$k[--$j];$P($k[--$j],5,_9y);var _A0=$k[--$j];var _A1=$k[--$j];var _A2=$k[--$j];$k[$j++]=_A0;$k[$j++]=_A2;for(var _A3=_A1;_A3>=0;_A3-=1){var _A4=$k[--$j];var _A5=$k[--$j];$k[$j++]=_A5;$k[$j++]=~~(_A4/10);$k[$j++]=_A5;$k[$j++]=_A3*4+8;$k[$j++]=$f(_A4%10+2);$k[$j++]=4;$_.tobin();var _A6=$k[--$j];var _A7=$k[--$j];$P($k[--$j],_A7,_A6)}$j--}else{var _AD=$g($g($_.charvals,$_.P),$k[--$j]);$k[$j++]=_AD;$k[$j++]=5;$_.tobin()}}};$_.encfuncs=$a(["encu","encl","encm","encp","encd"]);$_.addtomsgbits=function(){$_.v=$k[--$j];$P($_.msgbits,$_.j,$_.v);$_.j=$_.j+$_.v.length};$_.state=$_.U;$_.msgbits=$s($_.minseq);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.seq.length){break}if($_.state!=$_.B){$_.char=$g($_.seq,$_.i);$k[$j++]=$_.char;if($_[$g($_.encfuncs,$_.state)]()===true){break}$_.addtomsgbits();$_.i=$_.i+1;if($_.char==$_.su||$_.char==$_.sp){$k[$j++]=$g($_.seq,$_.i);if($_.char==$_.su){$_.encu()}else{$_.encp()}$_.addtomsgbits();$_.i=$_.i+1}if($_.char==$_.lu){$_.state=$_.U}if($_.char==$_.ll){$_.state=$_.L}if($_.char==$_.lm){$_.state=$_.M}if($_.char==$_.lp){$_.state=$_.P}if($_.char==$_.ld){$_.state=$_.D}if($_.char==$_.sb){$_.state=$_.B}}else{$_.numbytes=0;for(;;){if($_.i+$_.numbytes>=$_.seq.length){break}if($g($_.seq,$_.i+$_.numbytes)<0){break}$_.numbytes=$_.numbytes+1}if($_.numbytes<=31){$k[$j++]=$_.numbytes;$k[$j++]=5;$_.tobin();$_.addtomsgbits()}else{$k[$j++]=0;$k[$j++]=5;$_.tobin();$_.addtomsgbits();$k[$j++]=$_.numbytes-31;$k[$j++]=11;$_.tobin();$_.addtomsgbits()}for(var _BF=0,_BG=$_.numbytes;_BF<_BG;_BF++){$k[$j++]=$g($_.seq,$_.i);$k[$j++]=8;$_.tobin();$_.addtomsgbits();$_.i=$_.i+1}if($_.i<$_.seq.length){$_.char=$g($_.seq,$_.i);$_.i=$_.i+1;if($_.char==$_.lu){$_.state=$_.U}if($_.char==$_.ll){$_.state=$_.L}if($_.char==$_.lm){$_.state=$_.M}}}}}if(!bwipp_azteccode.__22601__){$_=Object.create($_);$_.metrics=$a([$a(["rune",0,0,0,6]),$a(["compact",1,1,17,6]),$a(["full",1,1,21,6]),$a(["compact",2,0,40,6]),$a(["full",2,1,48,6]),$a(["compact",3,0,51,8]),$a(["full",3,1,60,8]),$a(["compact",4,0,76,8]),$a(["full",4,1,88,8]),$a(["full",5,1,120,8]),$a(["full",6,1,156,8]),$a(["full",7,1,196,8]),$a(["full",8,1,240,8]),$a(["full",9,1,230,10]),$a(["full",10,1,272,10]),$a(["full",11,1,316,10]),$a(["full",12,1,364,10]),$a(["full",13,1,416,10]),$a(["full",14,1,470,10]),$a(["full",15,1,528,10]),$a(["full",16,1,588,10]),$a(["full",17,1,652,10]),$a(["full",18,1,720,10]),$a(["full",19,1,790,10]),$a(["full",20,1,864,10]),$a(["full",21,1,940,10]),$a(["full",22,1,1020,10]),$a(["full",23,0,920,12]),$a(["full",24,0,992,12]),$a(["full",25,0,1066,12]),$a(["full",26,0,1144,12]),$a(["full",27,0,1224,12]),$a(["full",28,0,1306,12]),$a(["full",29,0,1392,12]),$a(["full",30,0,1480,12]),$a(["full",31,0,1570,12]),$a(["full",32,0,1664,12])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22601__=1;$_=Object.getPrototypeOf($_)}var _CD=$_.metrics;for(var _CE=0,_CF=_CD.length;_CE<_CF;_CE++){$_.m=$g(_CD,_CE);$_.frmt=$g($_.m,0);$_.mlyr=$g($_.m,1);$_.icap=$g($_.m,2);$_.ncws=$g($_.m,3);$_.bpcw=$g($_.m,4);$_.numecw=~~Math.ceil($f($_.ncws*$_.eclevel/100+$_.ecaddchars));if($_.msgbits.length==0){$_.numecw=0}$_.numdcw=$f($_.ncws-$_.numecw);$_.okay=true;if($ne($_.format,$_.frmt)){$_.okay=false}if($_.readerinit&&$_.icap!=1){$_.okay=false}if($_.layers!=-1&&$_.layers!=$_.mlyr){$_.okay=false}if(~~Math.ceil($_.msgbits.length/$_.bpcw)>$_.numdcw){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.azteccodeNoValidSymbol#22622";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$_.layers=$_.mlyr;$_.allzero=function(){var _Ck=$k[--$j];$k[$j++]=$eq(_Ck,$G("000000000000",0,_Ck.length))};$_.allones=function(){var _Cm=$k[--$j];$k[$j++]=$eq(_Cm,$G("111111111111",0,_Cm.length))};$_.cws=$a($_.ncws);$_.m=0;$_.c=0;for(;;){if($_.msgbits.length<=$_.m){break}if($_.msgbits.length-$_.m>=$_.bpcw){$_.cwb=$G($_.msgbits,$_.m,$f($_.bpcw-1));$_.cwf=$G($_.msgbits,$f($f($_.m+$_.bpcw)-1),1);$k[$j++]=$_.cwb;$_.allzero();if($k[--$j]){$_.cwf="1";$_.m=$_.m-1}$k[$j++]=$_.cwb;$_.allones();if($k[--$j]){$_.cwf="0";$_.m=$_.m-1}var _D9=$s(12);$P(_D9,0,$_.cwb);$P(_D9,$f($_.bpcw-1),$_.cwf);$_.cwb=$G(_D9,0,$_.bpcw)}else{$_.cwb=$G($_.msgbits,$_.m,$_.msgbits.length-$_.m);var _DL=$Z($s(12),"111111111111");$P(_DL,0,$_.cwb);$_.cwb=$G(_DL,0,$_.bpcw);$k[$j++]=$_.cwb;$_.allones();if($k[--$j]){$P($_.cwb,$_.cwb.length-1,"0")}}$_.cw=0;for(var _DV=0,_DU=$f($_.bpcw-1);_DV<=_DU;_DV+=1){$_.i=_DV;$_.cw=$f($_.cw+~~Math.pow(2,$f($f($_.bpcw-$_.i)-1))*$f($g($_.cwb,$_.i)-48))}$p($_.cws,$_.c,$_.cw);$_.m=$f($_.m+$_.bpcw);$_.c=$_.c+1}$_.cws=$G($_.cws,0,$_.c);var _Dm=$g($_.options,"debugcws")!==undefined;if(_Dm){$k[$j++]="bwipp.debugcws#22661";$k[$j++]=$_.cws;bwipp_raiseerror()}$_.rscodes=function(){$_.rspm=$k[--$j];$_.rsgf=$k[--$j];$_.rsnc=$k[--$j];$_.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _Dt=0,_Du=$f($_.rsgf-1);_Dt<_Du;_Dt++){var _Dv=$k[--$j];var _Dw=_Dv*2;$k[$j++]=_Dv;$k[$j++]=_Dw;if(_Dw>=$_.rsgf){var _Dz=$k[--$j];$k[$j++]=$xo(_Dz,$_.rspm)}}$_.rsalog=$a();$_.rslog=$a($_.rsgf);for(var _E5=1,_E4=$f($_.rsgf-1);_E5<=_E4;_E5+=1){$p($_.rslog,$g($_.rsalog,_E5),_E5)}$_.rsprod=function(){var _E9=$k[--$j];var _EA=$k[--$j];$k[$j++]=_EA;$k[$j++]=_E9;if(_E9!=0&&_EA!=0){var _ED=$g($_.rslog,$k[--$j]);var _EJ=$g($_.rsalog,$f(_ED+$g($_.rslog,$k[--$j]))%$f($_.rsgf-1));$k[$j++]=_EJ}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _EL=0,_EM=$_.rsnc;_EL<_EM;_EL++){$k[$j++]=0}$_.coeffs=$a();for(var _EQ=1,_EP=$_.rsnc;_EQ<=_EP;_EQ+=1){$_.i=_EQ;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _EX=$_.i-1;_EX>=1;_EX-=1){$_.j=_EX;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Ej=$k[--$j];var _Ek=$k[--$j];var _El=$k[--$j];$p($k[--$j],_El,$xo(_Ek,_Ej))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _Et=$k[--$j];var _Eu=$k[--$j];$p($k[--$j],_Eu,_Et)}$_.nd=$_.rscws.length;$k[$j++]=Infinity;$F($_.rscws);for(var _Ez=0,_F0=$_.rsnc;_Ez<_F0;_Ez++){$k[$j++]=0}$k[$j++]=0;$_.rscws=$a();for(var _F4=0,_F3=$_.nd-1;_F4<=_F3;_F4+=1){$_.k=$xo($g($_.rscws,_F4),$g($_.rscws,$_.nd));for(var _FC=0,_FB=$f($_.rsnc-1);_FC<=_FB;_FC+=1){$_.j=_FC;$k[$j++]=$_.rscws;$k[$j++]=$_.nd+$_.j;$k[$j++]=$g($_.rscws,$_.nd+$_.j+1);$k[$j++]=$_.k;$k[$j++]=$g($_.coeffs,$f($f($_.rsnc-$_.j)-1));$_.rsprod();var _FP=$k[--$j];var _FQ=$k[--$j];var _FR=$k[--$j];$p($k[--$j],_FR,$xo(_FQ,_FP))}}$k[$j++]=$G($_.rscws,0,$_.rscws.length-1)};if($eq($_.format,"full")){$_.mode=($f($_.layers-1)<<11)+($_.cws.length-1);if($_.readerinit){$_.mode=$_.mode|1024}$_.mode=$a([($_.mode&61440)>>>12,($_.mode&3840)>>>8,($_.mode&240)>>>4,$_.mode&15]);$k[$j++]="mode";$k[$j++]=$_.mode;$k[$j++]=6;$k[$j++]=16;$k[$j++]=19;$_.rscodes();var _Fh=$k[--$j];$_[$k[--$j]]=_Fh}if($eq($_.format,"compact")){$_.mode=($f($_.layers-1)<<6)+($_.cws.length-1);if($_.readerinit){$_.mode=$_.mode|32}$_.mode=$a([($_.mode&240)>>>4,$_.mode&15]);$k[$j++]="mode";$k[$j++]=$_.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$_.rscodes();var _Fs=$k[--$j];$_[$k[--$j]]=_Fs}if($eq($_.format,"rune")){$_.mode=$i($_.barcode);$_.mode=$a([($_.mode&240)>>>4,$_.mode&15]);$k[$j++]="mode";$k[$j++]=$_.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$_.rscodes();var _G0=$k[--$j];$_[$k[--$j]]=_G0;$k[$j++]=Infinity;var _G2=$_.mode;for(var _G3=0,_G4=_G2.length;_G3<_G4;_G3++){$k[$j++]=$g(_G2,_G3)^10}$_.mode=$a()}$_.modebits=$s($_.mode.length*4);for(var _GB=0,_GA=$_.modebits.length-1;_GB<=_GA;_GB+=1){$P($_.modebits,_GB,"0")}for(var _GF=0,_GE=$_.mode.length-1;_GF<=_GE;_GF+=1){$_.i=_GF;var _GL=$R($s(4),$g($_.mode,$_.i),2);$P($_.modebits,4-_GL.length+4*$_.i,_GL)}if(!bwipp_azteccode.__22762__){$_=Object.create($_);$_.rsparams=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([]),$a([64,67]),$a([]),$a([256,301]),$a([]),$a([1024,1033]),$a([]),$a([4096,4201])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22762__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="cws";$k[$j++]=$_.cws;$k[$j++]=$f($_.ncws-$_.cws.length);$F($g($_.rsparams,$_.bpcw));$_.rscodes();var _Gi=$k[--$j];$_[$k[--$j]]=_Gi;if($eq($_.format,"full")){$_.databits=$s($f($_.layers*$_.layers*16+$_.layers*112))}else{$_.databits=$s($f($_.layers*$_.layers*16+$_.layers*88))}for(var _Gv=0,_Gu=$_.databits.length-1;_Gv<=_Gu;_Gv+=1){$P($_.databits,_Gv,"0")}for(var _Gz=0,_Gy=$f($_.ncws-1);_Gz<=_Gy;_Gz+=1){$_.i=_Gz;var _H6=$R($s($_.bpcw),$g($_.cws,$_.i),2);$P($_.databits,$f($f($f($_.bpcw-_H6.length)+$_.bpcw*$_.i)+$f($_.databits.length-$_.ncws*$_.bpcw)),_H6)}$_.cmv=function(){var _HE=$k[--$j];var _HF=$k[--$j];$k[$j++]=$f($f(_HF-_HE*$_.size)+$_.mid)};$_.lmv=function(){$_.lbit=$k[--$j];$_.llyr=$k[--$j];$_.lwid=$f($_.fw+$_.llyr*4);$_.ldir=~~(~~($_.lbit/2)/$_.lwid);if($_.ldir==0){$k[$j++]=$f(-~~($f($_.lwid-1)/2)+1+~~($_.lbit/2)%$_.lwid);$k[$j++]=$f($f(~~(($_.fw-1)/2)+$_.llyr*2)+$_.lbit%2);$_.cmv()}if($_.ldir==1){$k[$j++]=$f($f(~~($_.fw/2)+$_.llyr*2)+$_.lbit%2);$k[$j++]=$f(~~($f($_.lwid-1)/2)-1-~~($_.lbit/2)%$_.lwid);$_.cmv()}if($_.ldir==2){$k[$j++]=-$f(-~~($_.lwid/2)+1+~~($_.lbit/2)%$_.lwid);$k[$j++]=-$f($f(~~($_.fw/2)+$_.llyr*2)+$_.lbit%2);$_.cmv()}if($_.ldir==3){$k[$j++]=-$f($f(~~(($_.fw-1)/2)+$_.llyr*2)+$_.lbit%2);$k[$j++]=-$f(~~($_.lwid/2)-1-~~($_.lbit/2)%$_.lwid);$_.cmv()}};if($eq($_.format,"full")){$_.fw=12}else{$_.fw=9}$_.size=$f($f($_.fw+$_.layers*4)+2);$k[$j++]=Infinity;for(var _Hu=0,_Hv=$_.size*$_.size;_Hu<_Hv;_Hu++){$k[$j++]=-1}$_.pixs=$a();$_.mid=$f(~~($f($_.size-1)/2)*$_.size+~~($f($_.size-1)/2));$_.i=0;for(var _I2=1,_I1=$_.layers;_I2<=_I1;_I2+=1){$_.layer=_I2;for(var _I6=0,_I5=($_.fw+$_.layer*4)*8-1;_I6<=_I5;_I6+=1){$_.pos=_I6;$k[$j++]=$_.pixs;$k[$j++]=$_.layer;$k[$j++]=$_.pos;$_.lmv();var _IE=$k[--$j];$p($k[--$j],_IE,$g($_.databits,$_.databits.length-$_.i-1)-48);$_.i=$_.i+1}}if($eq($_.format,"full")){$_.fw=13;$_.size=$f($f($f($_.fw+$_.layers*4)+2)+~~$f($f($_.layers+10.5)/7.5-1)*2);$_.mid=~~($_.size*$_.size/2);$k[$j++]=Infinity;for(var _IP=0,_IQ=$_.size*$_.size;_IP<_IQ;_IP++){$k[$j++]=-2}$_.npixs=$a();for(var _IU=0,_IT=~~($_.size/2);_IU<=_IT;_IU+=16){$_.i=_IU;for(var _IX=0,_IW=$f($_.size-1);_IX<=_IW;_IX+=1){$_.j=_IX;$k[$j++]=$_.npixs;$k[$j++]=-~~($_.size/2)+$_.j;$k[$j++]=$_.i;$_.cmv();var _Ig=$k[--$j];$P($k[--$j],_Ig,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]));$k[$j++]=$_.npixs;$k[$j++]=-~~($_.size/2)+$_.j;$k[$j++]=-$_.i;$_.cmv();var _Iq=$k[--$j];$P($k[--$j],_Iq,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]));$k[$j++]=$_.npixs;$k[$j++]=$_.i;$k[$j++]=-~~($_.size/2)+$_.j;$_.cmv();var _J0=$k[--$j];$P($k[--$j],_J0,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]));$k[$j++]=$_.npixs;$k[$j++]=-$_.i;$k[$j++]=-~~($_.size/2)+$_.j;$_.cmv();var _JA=$k[--$j];$P($k[--$j],_JA,$a([(~~($_.size/2)+$_.j+$_.i+1)%2]))}}$_.j=0;for(var _JE=0,_JD=$_.npixs.length-1;_JE<=_JD;_JE+=1){$_.i=_JE;if($g($_.npixs,$_.i)==-2){$p($_.npixs,$_.i,$g($_.pixs,$_.j));$_.j=$_.j+1}}$_.pixs=$_.npixs}$_.fw=~~($_.fw/2);for(var _JT=-$_.fw,_JS=$_.fw;_JT<=_JS;_JT+=1){$_.i=_JT;for(var _JX=-$_.fw,_JW=$_.fw;_JX<=_JW;_JX+=1){$_.j=_JX;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.cmv();if(Math.abs($_.i)>Math.abs($_.j)){$k[$j++]=Math.abs($_.i)}else{$k[$j++]=Math.abs($_.j)}var _Jf=$k[--$j];var _Jg=$k[--$j];$p($k[--$j],_Jg,$f(_Jf+1)%2)}}var _KI=$a([$a([-($_.fw+1),$_.fw,1]),$a([-($_.fw+1),$_.fw+1,1]),$a([-$_.fw,$_.fw+1,1]),$a([$_.fw+1,$_.fw+1,1]),$a([$_.fw+1,$_.fw,1]),$a([$_.fw+1,-$_.fw,1]),$a([$_.fw,$_.fw+1,0]),$a([$_.fw+1,-($_.fw+1),0]),$a([$_.fw,-($_.fw+1),0]),$a([-$_.fw,-($_.fw+1),0]),$a([-($_.fw+1),-($_.fw+1),0]),$a([-($_.fw+1),-$_.fw,0])]);for(var _KJ=0,_KK=_KI.length;_KJ<_KK;_KJ++){$k[$j++]=$_.pixs;$F($g(_KI,_KJ));var _KN=$k[--$j];var _KO=$k[--$j];var _KP=$k[--$j];$k[$j++]=_KN;$k[$j++]=_KP;$k[$j++]=_KO;$_.cmv();var _KQ=$k[--$j];var _KR=$k[--$j];$p($k[--$j],_KQ,_KR)}if(!bwipp_azteccode.__22888__){$_=Object.create($_);$_.modemapfull=$a([$a([-5,7]),$a([-4,7]),$a([-3,7]),$a([-2,7]),$a([-1,7]),$a([1,7]),$a([2,7]),$a([3,7]),$a([4,7]),$a([5,7]),$a([7,5]),$a([7,4]),$a([7,3]),$a([7,2]),$a([7,1]),$a([7,-1]),$a([7,-2]),$a([7,-3]),$a([7,-4]),$a([7,-5]),$a([5,-7]),$a([4,-7]),$a([3,-7]),$a([2,-7]),$a([1,-7]),$a([-1,-7]),$a([-2,-7]),$a([-3,-7]),$a([-4,-7]),$a([-5,-7]),$a([-7,-5]),$a([-7,-4]),$a([-7,-3]),$a([-7,-2]),$a([-7,-1]),$a([-7,1]),$a([-7,2]),$a([-7,3]),$a([-7,4]),$a([-7,5])]);$_.modemapcompact=$a([$a([-3,5]),$a([-2,5]),$a([-1,5]),$a([0,5]),$a([1,5]),$a([2,5]),$a([3,5]),$a([5,3]),$a([5,2]),$a([5,1]),$a([5,0]),$a([5,-1]),$a([5,-2]),$a([5,-3]),$a([3,-5]),$a([2,-5]),$a([1,-5]),$a([0,-5]),$a([-1,-5]),$a([-2,-5]),$a([-3,-5]),$a([-5,-3]),$a([-5,-2]),$a([-5,-1]),$a([-5,0]),$a([-5,1]),$a([-5,2]),$a([-5,3])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_azteccode.$ctx[id]=$_[id]);bwipp_azteccode.__22888__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="modemap";if($eq($_.format,"full")){$k[$j++]=$_.modemapfull}else{$k[$j++]=$_.modemapcompact}var _Lf=$k[--$j];$_[$k[--$j]]=_Lf;for(var _Lj=0,_Li=$_.modemap.length-1;_Lj<=_Li;_Lj+=1){$_.i=_Lj;$k[$j++]=$_.pixs;$F($g($_.modemap,$_.i));$_.cmv();var _Lr=$k[--$j];$p($k[--$j],_Lr,$g($_.modebits,$_.i)-48)}var _Lz=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.size],["pixy",$_.size],["height",$_.size*2/72],["width",$_.size*2/72],["opt",$_.options]]);$k[$j++]=_Lz;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_azteccodecompact(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","compact");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_azteccode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_aztecrune(){$_=Object.create($_);$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$p($_.options,"dontdraw",true);$p($_.options,"format","rune");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_azteccode();var _6=$k[--$j];$_[$k[--$j]]=_6;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_codeone(){$_=Object.create($_);$_.dontdraw=false;$_.version="unset";$_.parse=false;$_.parsefnc=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _2=$a(["unset","T-16","T-32","T-48","S-10","S-20","S-30","A","B","C","D","E","F","G","H"]);$k[$j++]=false;for(var _3=0,_4=_2.length;_3<_4;_3++){var _7=$k[--$j];$k[$j++]=_7||$eq($g(_2,_3),$_.version)}if($nt($k[--$j])){$k[$j++]="bwipp.codeoneBadVersion#23049";$k[$j++]="version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30";bwipp_raiseerror()}bwipp_loadctx(bwipp_codeone);$_.stype=$eq($G($_.version,0,1),"S");$_.ttype=$eq($G($_.version,0,1),"T");if(!bwipp_codeone.__23213__){$_=Object.create($_);$_.stypevals=$a(["1","1010","1100100","1111101000","10011100010000","11000011010100000","11110100001001000000","100110001001011010000000","101111101011110000100000000","111011100110101100101000000000","1001010100000010111110010000000000","1011101001000011101101110100000000000","1110100011010100101001010001000000000000","10010001100001001110011100101010000000000000","10110101111001100010000011110100100000000000000","11100011010111111010100100110001101000000000000000","100011100001101111001001101111110000010000000000000000","101100011010001010111100001011101100010100000000000000000"]);$_.stypemetrics=$a([$a(["S-10",8,11,10,4,4,1,99,99,99]),$a(["S-20",8,21,20,8,8,1,99,99,99]),$a(["S-30",8,31,30,12,12,1,99,99,99])]);$_.nonstypemetrics=$a([$a(["A",16,18,16,10,10,1,4,99,6]),$a(["B",22,22,20,19,16,1,4,99,8]),$a(["C",28,32,28,44,26,1,4,22,11]),$a(["D",40,42,36,91,44,1,4,16,16]),$a(["E",52,54,48,182,70,1,4,22,22]),$a(["F",70,76,68,370,140,2,4,22,31]),$a(["G",104,98,88,732,280,4,6,21,47]),$a(["H",148,134,120,1480,560,8,6,20,69]),$a(["T-16",16,17,16,10,10,1,99,99,99]),$a(["T-32",16,33,32,24,16,1,99,99,99]),$a(["T-48",16,49,48,38,22,1,99,99,99])]);$_.fnc1=-1;$_.fnc3=-2;$_.lC=-5;$_.lB=-6;$_.lX=-7;$_.lT=-8;$_.lD=-9;$_.unl=-10;$_.fnc2=-11;$_.fnc4=-12;$_.sft1=-13;$_.sft2=-14;$_.sft3=-15;$_.eci=-16;$_.pad=-17;$_.fnc1lD=-18;$_.unlcw=255;$k[$j++]=Infinity;for(var _U=0;_U<=128;_U+=1){$k[$j++]=_U;$k[$j++]=_U+1}$k[$j++]=$_.pad;$k[$j++]=129;for(var _W=0;_W<=99;_W+=1){var _Y=$R($s(2),_W,10);var _a=$Z($s(2),"00");$P(_a,2-_Y.length,_Y);$k[$j++]=_a;$k[$j++]=_W+130}var _i=$a([$_.lC,$_.lB,$_.fnc1,$_.fnc2,$_.fnc3,$_.fnc4,$_.fnc1lD]);$k[$j++]=229;for(var _j=0,_k=_i.length;_j<_k;_j++){var _n=$f($k[--$j]+1);$k[$j++]=$g(_i,_j);$k[$j++]=_n;$k[$j++]=_n}$j--;$k[$j++]=$_.lX;$k[$j++]=238;$k[$j++]=$_.lT;$k[$j++]=239;$_.Avals=$d();$k[$j++]=Infinity;var _r=$_.Avals;for(var _w=_r.size,_v=_r.keys(),_u=0;_u<_w;_u++){var _s=_v.next().value;$k[$j++]=_s;$k[$j++]=_r.get(_s);$k[$j++]=Infinity;var _x=$k[--$j];var _y=$k[--$j];$k[$j++]=_x;$k[$j++]=_y;var _z=$a();$k[$j++]=_z}$_.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _14=48;_14<=57;_14+=1){$k[$j++]=_14;$k[$j++]=_14-44}for(var _15=65;_15<=90;_15+=1){$k[$j++]=_15;$k[$j++]=_15-51}$_.CNvals=$d();$k[$j++]=Infinity;for(var _17=0;_17<=31;_17+=1){$k[$j++]=_17;$k[$j++]=_17}$_.C1vals=$d();$k[$j++]=Infinity;for(var _19=33;_19<=47;_19+=1){$k[$j++]=_19;$k[$j++]=_19-33}for(var _1A=58;_1A<=64;_1A+=1){$k[$j++]=_1A;$k[$j++]=_1A-43}for(var _1B=91;_1B<=95;_1B+=1){$k[$j++]=_1B;$k[$j++]=_1B-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.fnc2;$k[$j++]=28;$k[$j++]=$_.fnc3;$k[$j++]=29;$k[$j++]=$_.fnc4;$k[$j++]=30;$k[$j++]=$_.pad;$k[$j++]=31;$_.C2vals=$d();$k[$j++]=Infinity;for(var _1I=96;_1I<=127;_1I+=1){$k[$j++]=_1I;$k[$j++]=_1I-96}$_.C3vals=$d();$k[$j++]=Infinity;var _1K=$_.CNvals;for(var _1P=_1K.size,_1O=_1K.keys(),_1N=0;_1N<_1P;_1N++){var _1L=_1O.next().value;$k[$j++]=_1L;$k[$j++]=_1K.get(_1L);$k[$j++]=Infinity;var _1Q=$k[--$j];var _1R=$k[--$j];$k[$j++]=_1Q;$k[$j++]=_1R;var _1S=$a();$k[$j++]=_1S}var _1T=$_.C1vals;for(var _1Y=_1T.size,_1X=_1T.keys(),_1W=0;_1W<_1Y;_1W++){var _1U=_1X.next().value;$k[$j++]=_1U;$k[$j++]=_1T.get(_1U);$k[$j++]=Infinity;var _1Z=$k[--$j];var _1a=$k[--$j];$k[$j++]=_1Z;$k[$j++]=$g($_.CNvals,$_.sft1);$k[$j++]=_1a;var _1e=$a();$k[$j++]=_1e}var _1f=$_.C2vals;for(var _1k=_1f.size,_1j=_1f.keys(),_1i=0;_1i<_1k;_1i++){var _1g=_1j.next().value;$k[$j++]=_1g;$k[$j++]=_1f.get(_1g);$k[$j++]=Infinity;var _1l=$k[--$j];var _1m=$k[--$j];$k[$j++]=_1l;$k[$j++]=$g($_.CNvals,$_.sft2);$k[$j++]=_1m;var _1q=$a();$k[$j++]=_1q}var _1r=$_.C3vals;for(var _1w=_1r.size,_1v=_1r.keys(),_1u=0;_1u<_1w;_1u++){var _1s=_1v.next().value;$k[$j++]=_1s;$k[$j++]=_1r.get(_1s);$k[$j++]=Infinity;var _1x=$k[--$j];var _1y=$k[--$j];$k[$j++]=_1x;$k[$j++]=$g($_.CNvals,$_.sft3);$k[$j++]=_1y;var _22=$a();$k[$j++]=_22}$_.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$_.sft1;$k[$j++]=0;$k[$j++]=$_.sft2;$k[$j++]=1;$k[$j++]=$_.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _27=48;_27<=57;_27+=1){$k[$j++]=_27;$k[$j++]=_27-44}for(var _28=97;_28<=122;_28+=1){$k[$j++]=_28;$k[$j++]=_28-83}$_.TNvals=$d();$k[$j++]=Infinity;for(var _2A=0;_2A<=31;_2A+=1){$k[$j++]=_2A;$k[$j++]=_2A}$_.T1vals=$d();$k[$j++]=Infinity;for(var _2C=33;_2C<=47;_2C+=1){$k[$j++]=_2C;$k[$j++]=_2C-33}for(var _2D=58;_2D<=64;_2D+=1){$k[$j++]=_2D;$k[$j++]=_2D-43}for(var _2E=91;_2E<=95;_2E+=1){$k[$j++]=_2E;$k[$j++]=_2E-69}$k[$j++]=$_.fnc1;$k[$j++]=27;$k[$j++]=$_.fnc2;$k[$j++]=28;$k[$j++]=$_.fnc3;$k[$j++]=29;$k[$j++]=$_.fnc4;$k[$j++]=30;$k[$j++]=$_.pad;$k[$j++]=31;$_.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _2L=65;_2L<=90;_2L+=1){$k[$j++]=_2L;$k[$j++]=_2L-64}for(var _2M=123;_2M<=127;_2M+=1){$k[$j++]=_2M;$k[$j++]=_2M-96}$_.T3vals=$d();$k[$j++]=Infinity;var _2O=$_.TNvals;for(var _2T=_2O.size,_2S=_2O.keys(),_2R=0;_2R<_2T;_2R++){var _2P=_2S.next().value;$k[$j++]=_2P;$k[$j++]=_2O.get(_2P);$k[$j++]=Infinity;var _2U=$k[--$j];var _2V=$k[--$j];$k[$j++]=_2U;$k[$j++]=_2V;var _2W=$a();$k[$j++]=_2W}var _2X=$_.T1vals;for(var _2c=_2X.size,_2b=_2X.keys(),_2a=0;_2a<_2c;_2a++){var _2Y=_2b.next().value;$k[$j++]=_2Y;$k[$j++]=_2X.get(_2Y);$k[$j++]=Infinity;var _2d=$k[--$j];var _2e=$k[--$j];$k[$j++]=_2d;$k[$j++]=$g($_.TNvals,$_.sft1);$k[$j++]=_2e;var _2i=$a();$k[$j++]=_2i}var _2j=$_.T2vals;for(var _2o=_2j.size,_2n=_2j.keys(),_2m=0;_2m<_2o;_2m++){var _2k=_2n.next().value;$k[$j++]=_2k;$k[$j++]=_2j.get(_2k);$k[$j++]=Infinity;var _2p=$k[--$j];var _2q=$k[--$j];$k[$j++]=_2p;$k[$j++]=$g($_.TNvals,$_.sft2);$k[$j++]=_2q;var _2u=$a();$k[$j++]=_2u}var _2v=$_.T3vals;for(var _30=_2v.size,_2z=_2v.keys(),_2y=0;_2y<_30;_2y++){var _2w=_2z.next().value;$k[$j++]=_2w;$k[$j++]=_2v.get(_2w);$k[$j++]=Infinity;var _31=$k[--$j];var _32=$k[--$j];$k[$j++]=_31;$k[$j++]=$g($_.TNvals,$_.sft3);$k[$j++]=_32;var _36=$a();$k[$j++]=_36}$_.Tvals=$d();for(var _38=128;_38<=255;_38+=1){$_.i=_38;$k[$j++]=$_.Avals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Avals,$_.fnc4));$q($g($_.Avals,$_.i-128));var _3H=$a();var _3I=$k[--$j];$p($k[--$j],_3I,_3H);$k[$j++]=$_.Cvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Cvals,$_.fnc4));$q($g($_.Cvals,$_.i-128));var _3S=$a();var _3T=$k[--$j];$p($k[--$j],_3T,_3S);$k[$j++]=$_.Tvals;$k[$j++]=$_.i;$k[$j++]=Infinity;$q($g($_.Tvals,$_.fnc4));$q($g($_.Tvals,$_.i-128));var _3d=$a();var _3e=$k[--$j];$p($k[--$j],_3e,_3d)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _3g=48;_3g<=57;_3g+=1){$k[$j++]=_3g;$k[$j++]=_3g-44}for(var _3h=65;_3h<=90;_3h+=1){$k[$j++]=_3h;$k[$j++]=_3h-51}$_.Xvals=$d();$k[$j++]=Infinity;var _3j=$_.Xvals;for(var _3o=_3j.size,_3n=_3j.keys(),_3m=0;_3m<_3o;_3m++){var _3k=_3n.next().value;$k[$j++]=_3k;$k[$j++]=_3j.get(_3k);$k[$j++]=Infinity;var _3p=$k[--$j];var _3q=$k[--$j];$k[$j++]=_3p;$k[$j++]=_3q;var _3r=$a();$k[$j++]=_3r}$_.Xvals=$d();$k[$j++]=Infinity;for(var _3t=0;_3t<=255;_3t+=1){$k[$j++]=_3t;$k[$j++]=_3t}$_.Bvals=$d();$k[$j++]=Infinity;var _3v=$_.Bvals;for(var _40=_3v.size,_3z=_3v.keys(),_3y=0;_3y<_40;_3y++){var _3w=_3z.next().value;$k[$j++]=_3w;$k[$j++]=_3v.get(_3w);$k[$j++]=Infinity;var _41=$k[--$j];var _42=$k[--$j];$k[$j++]=_41;$k[$j++]=_42;var _43=$a();$k[$j++]=_43}$_.Bvals=$d();$_.encvals=$a([$_.Avals,$_.Cvals,$_.Tvals,$_.Xvals,-1,$_.Bvals]);$_.A=0;$_.C=1;$_.T=2;$_.X=3;$_.D=4;$_.B=5;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codeone.$ctx[id]=$_[id]);bwipp_codeone.__23213__=1;$_=Object.getPrototypeOf($_)}if($_.stype){$F($_.barcode,function(){var _4E=$k[--$j];if(_4E<48||_4E>57){$k[$j++]="bwipp.codeoneStypeNonDigit#23219";$k[$j++]="S-Type symbols can only contain digits";bwipp_raiseerror()}});$_.barlen=$_.barcode.length;if($_.barlen>18){$k[$j++]="bwipp.codeoneStypeTooLong#23225";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}$_.normalize=function(){$_.base=$k[--$j];$_.num=$k[--$j];for(var _4K=$_.num.length-1;_4K>=1;_4K-=1){$_.i=_4K;var _4L=$_.num;var _4M=$_.i;$p(_4L,_4M-1,$f($g(_4L,_4M-1)+~~($g($_.num,$_.i)/$_.base)));$p($_.num,$_.i,$g($_.num,$_.i)%$_.base)}for(;;){if($lt($g($_.num,0),$_.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$F($_.num);$_.num=$a();$p($_.num,0,$f($g($_.num,0)+~~($g($_.num,1)/$_.base)));$p($_.num,1,$g($_.num,1)%$_.base)}$k[$j++]=Infinity;$_.i=true;var _4n=$_.num;for(var _4o=0,_4p=_4n.length;_4o<_4p;_4o++){var _4q=$g(_4n,_4o);$k[$j++]=_4q;if(_4q==0&&$_.i){$j--}else{$_.i=false}}$_.num=$a();if($_.num.length==0){$_.num=$a([0])}$k[$j++]=$_.num};$_.bigadd=function(){var _4w=$k[--$j];var _4x=$k[--$j];$_.offset=Math.abs(_4w.length-_4x.length);if(_4w.length<_4x.length){var _=_4w;_4w=_4x;_4x=_}$_.a=_4w;$_.b=_4x;for(var _50=0,_4z=$_.b.length-1;_50<=_4z;_50+=1){var _51=$_.a;var _52=$_.offset;$p(_51,_50+_52,$f($g(_51,_50+_52)+$g($_.b,_50)))}$k[$j++]=$_.a};$_.barlen=$_.barcode.length;$_.v=$a([1]);for(var _5B=0,_5A=$_.barlen-1;_5B<=_5A;_5B+=1){$_.i=_5B;$k[$j++]=Infinity;$F($g($_.stypevals,$_.i),function(){var _5F=$k[--$j];$k[$j++]=$f(_5F-48)*$f($g($_.barcode,$_.barlen-$_.i-1)-48)});var _5K=$a();$k[$j++]=_5K;$k[$j++]=$_.v;$_.bigadd();$_.v=$k[--$j]}$k[$j++]="v";$k[$j++]=$_.v;$k[$j++]=2;$_.normalize();var _5O=$k[--$j];$_[$k[--$j]]=_5O;$k[$j++]=Infinity;for(var _5R=0,_5S=(5-$_.v.length%5)%5;_5R<_5S;_5R++){$k[$j++]=0}$q($_.v);$_.v=$a();$_.cws=$a(~~($_.v.length/5));for(var _5Z=0,_5Y=$_.cws.length-1;_5Z<=_5Y;_5Z+=1){$_.i=_5Z;var _5c=$G($_.v,$_.i*5,5);$k[$j++]=0;for(var _5d=0,_5e=_5c.length;_5d<_5e;_5d++){var _5g=$k[--$j];$k[$j++]=$f(_5g+$g(_5c,_5d))*2}$p($_.cws,$_.i,~~($k[--$j]/2))}$_.metrics=$_.stypemetrics}else{var _5p=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fnc1],["FNC3",$_.fnc3]]);$_.fncvals=_5p;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _5s=$k[--$j];$_[$k[--$j]]=_5s;$_.msglen=$_.msg.length;$_.eciesc=92;var _5v=$_.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _5w=0,_5x=_5v.length;_5w<_5x;_5w++){if($g(_5v,_5w)<=-1e6){var _5z=$k[--$j];$k[$j++]=$f(_5z+1)}}var _60=$k[--$j];$_[$k[--$j]]=_60;if($_.numecis>0){$_.msgtmp=$a($f($f($_.msg.length*2+$_.numecis*6)+2));$p($_.msgtmp,0,$_.pad);$p($_.msgtmp,1,$_.eciesc);$_.j=2;for(var _6C=0,_6B=$_.msg.length-1;_6C<=_6B;_6C+=1){var _6E=$g($_.msg,_6C);$k[$j++]=_6E;if(_6E<=-1e6){var _6I=$G($R($s(7),-$k[--$j],10),1,6);for(var _6J=0,_6K=_6I.length;_6J<_6K;_6J++){$k[$j++]=$g(_6I,_6J)}$as($a(6));$P($_.msgtmp,$_.j+1,$k[--$j]);$p($_.msgtmp,$_.j,$_.eciesc);$_.j=$_.j+7}else{var _6U=$k[--$j];$k[$j++]=_6U;if(_6U!=$_.eciesc){$p($_.msgtmp,$_.j,$k[--$j]);$_.j=$_.j+1}else{$j--;$p($_.msgtmp,$_.j,$_.eciesc);$p($_.msgtmp,$_.j+1,$_.eciesc);$_.j=$_.j+2}}}$_.msg=$G($_.msgtmp,0,$_.j);$_.msglen=$_.msg.length}$_.metrics=$_.nonstypemetrics;$_.fullcws=$a([]);var _6n=$_.metrics;for(var _6o=0,_6p=_6n.length;_6o<_6p;_6o++){$_.m=$g(_6n,_6o);$_.vers=$g($_.m,0);$_.dcws=$g($_.m,4);$_.okay=true;if($eq($_.version,"unset")){if($_.vers.length!=1){$_.okay=false}}else{if($ne($_.version,$_.vers)){$_.okay=false}}if($_.okay){$k[$j++]=Infinity;$q($_.fullcws);$k[$j++]=$_.dcws;$_.fullcws=$a()}}$k[$j++]=Infinity;for(var _73=0,_74=1480;_73<_74;_73++){$k[$j++]=1e4}$_.numremcws=$a();var _76=$_.fullcws;for(var _77=0,_78=_76.length;_77<_78;_77++){$p($_.numremcws,$f($g(_76,_77)-1),1)}for(var _7B=1478;_7B>=0;_7B-=1){$_.i=_7B;if($g($_.numremcws,$_.i)!=1){$p($_.numremcws,$_.i,$f($g($_.numremcws,$_.i+1)+1))}}$k[$j++]=Infinity;for(var _7L=0,_7M=$_.msglen;_7L<_7M;_7L++){$k[$j++]=0}$k[$j++]=0;$_.numD=$a();$k[$j++]=Infinity;for(var _7P=0,_7Q=$_.msglen;_7P<_7Q;_7P++){$k[$j++]=0}$k[$j++]=9999;$_.nextXterm=$a();$k[$j++]=Infinity;for(var _7T=0,_7U=$_.msglen;_7T<_7U;_7T++){$k[$j++]=0}$k[$j++]=9999;$_.nextNonX=$a();for(var _7X=$_.msglen-1;_7X>=0;_7X-=1){$_.i=_7X;$_.barchar=$g($_.msg,$_.i);if($_.barchar>=48&&$_.barchar<=57){$p($_.numD,$_.i,$f($g($_.numD,$_.i+1)+1))}if($_.barchar==13||$_.barchar==42||$_.barchar==62){$p($_.nextXterm,$_.i,0)}else{$p($_.nextXterm,$_.i,$f($g($_.nextXterm,$_.i+1)+1))}var _7u=$g($_.Xvals,$_.barchar)!==undefined;if(!_7u){$p($_.nextNonX,$_.i,0)}else{$p($_.nextNonX,$_.i,$f($g($_.nextNonX,$_.i+1)+1))}}$k[$j++]=Infinity;var _82=$_.nextXterm;for(var _83=0,_84=_82.length;_83<_84;_83++){var _85=$g(_82,_83);$k[$j++]=_85;if(_85>1e4){$j--;$k[$j++]=1e4}}$_.nextXterm=$a();$k[$j++]=Infinity;var _87=$_.nextNonX;for(var _88=0,_89=_87.length;_88<_89;_88++){var _8A=$g(_87,_88);$k[$j++]=_8A;if(_8A>1e4){$j--;$k[$j++]=1e4}}$_.nextNonX=$a();$_.isD=function(){$k[$j++]=$_.char>=48&&$_.char<=57};$_.isC=function(){var _8G=$g($_.CNvals,$_.char)!==undefined;$k[$j++]=_8G};$_.isT=function(){var _8J=$g($_.TNvals,$_.char)!==undefined;$k[$j++]=_8J};$_.isX=function(){var _8M=$g($_.Xvals,$_.char)!==undefined;$k[$j++]=_8M};$_.isEA=function(){$k[$j++]=$_.char>127};$_.isFN=function(){$k[$j++]=$_.char<0};$_.XtermFirst=function(){var _8P=$k[--$j];$k[$j++]=$lt($g($_.nextXterm,_8P),$g($_.nextNonX,_8P))};$_.lookup=function(){$_.ac=1;$_.cc=2;$_.tc=2;$_.xc=2;$_.bc=3;if($_.mode==$_.A){$_.ac=0;$_.cc=1;$_.tc=1;$_.xc=1;$_.bc=2}if($_.mode==$_.C){$_.cc=0}if($_.mode==$_.T){$_.tc=0}if($_.mode==$_.X){$_.xc=0}if($_.mode==$_.B){$_.bc=0}for(var _8e=0,_8f=1;_8e<_8f;_8e++){$_.k=0;for(;;){if($_.i+$_.k==$_.msglen){var _8n=$a([$_.ac,$_.cc,$_.tc,$_.xc]);$k[$j++]=true;for(var _8o=0,_8p=_8n.length;_8o<_8p;_8o++){var _8s=$k[--$j];$k[$j++]=_8s&&$_.bc<=Math.ceil($g(_8n,_8o))}if($k[--$j]){$k[$j++]=$_.B;break}var _8z=$a([$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _90=0,_91=_8z.length;_90<_91;_90++){var _94=$k[--$j];$k[$j++]=_94&&$_.ac<=Math.ceil($g(_8z,_90))}if($k[--$j]){$k[$j++]=$_.A;break}var _99=$a([$_.tc,$_.xc]);$k[$j++]=true;for(var _9A=0,_9B=_99.length;_9A<_9B;_9A++){var _9E=$k[--$j];$k[$j++]=_9E&&Math.ceil($_.cc)<=Math.ceil($g(_99,_9A))}if($k[--$j]){$k[$j++]=$_.C;break}var _9I=$a([$_.xc]);$k[$j++]=true;for(var _9J=0,_9K=_9I.length;_9J<_9K;_9J++){var _9N=$k[--$j];$k[$j++]=_9N&&Math.ceil($_.tc)<=Math.ceil($g(_9I,_9J))}if($k[--$j]){$k[$j++]=$_.T;break}$k[$j++]=$_.X;break}$_.char=$g($_.msg,$_.i+$_.k);$k[$j++]="ac";$k[$j++]=$_.ac;$_.isD();if($k[--$j]){var _9X=$k[--$j];$k[$j++]=$f(_9X+1/2)}else{$_.isEA();if($k[--$j]){var _9Z=$k[--$j];$k[$j++]=Math.ceil(_9Z)+2}else{var _9a=$k[--$j];$k[$j++]=Math.ceil(_9a)+1}}var _9b=$k[--$j];$_[$k[--$j]]=_9b;$k[$j++]="cc";$k[$j++]=$_.cc;$_.isC();if($k[--$j]){var _9f=$k[--$j];$k[$j++]=$f(_9f+.6666667)}else{$_.isEA();if($k[--$j]){var _9h=$k[--$j];$k[$j++]=$f(_9h+2.6666667)}else{var _9i=$k[--$j];$k[$j++]=$f(_9i+1.3333334)}}var _9j=$k[--$j];$_[$k[--$j]]=_9j;$k[$j++]="tc";$k[$j++]=$_.tc;$_.isT();if($k[--$j]){var _9n=$k[--$j];$k[$j++]=$f(_9n+.6666667)}else{$_.isEA();if($k[--$j]){var _9p=$k[--$j];$k[$j++]=$f(_9p+2.6666667)}else{var _9q=$k[--$j];$k[$j++]=$f(_9q+1.3333334)}}var _9r=$k[--$j];$_[$k[--$j]]=_9r;$k[$j++]="xc";$k[$j++]=$_.xc;$_.isX();if($k[--$j]){var _9v=$k[--$j];$k[$j++]=$f(_9v+.6666667)}else{$_.isEA();if($k[--$j]){var _9x=$k[--$j];$k[$j++]=$f(_9x+4.3333334)}else{var _9y=$k[--$j];$k[$j++]=$f(_9y+3.3333334)}}var _9z=$k[--$j];$_[$k[--$j]]=_9z;$k[$j++]="bc";$k[$j++]=$_.bc;$_.isFN();if($k[--$j]){var _A3=$k[--$j];$k[$j++]=$f(_A3+3)}else{var _A4=$k[--$j];$k[$j++]=$f(_A4+1)}var _A5=$k[--$j];$_[$k[--$j]]=_A5;if($_.k>=3){var _AC=$a([$_.ac,$_.cc,$_.tc,$_.xc]);$k[$j++]=true;for(var _AD=0,_AE=_AC.length;_AD<_AE;_AD++){var _AH=$k[--$j];$k[$j++]=_AH&&$_.bc+1<=Math.ceil($g(_AC,_AD))}if($k[--$j]){$k[$j++]=$_.B;break}var _AO=$a([$_.cc,$_.tc,$_.xc,$_.bc]);$k[$j++]=true;for(var _AP=0,_AQ=_AO.length;_AP<_AQ;_AP++){var _AT=$k[--$j];$k[$j++]=_AT&&$_.ac+1<=Math.ceil($g(_AO,_AP))}if($k[--$j]){$k[$j++]=$_.A;break}var _Aa=$a([$_.ac,$_.cc,$_.xc,$_.bc]);$k[$j++]=true;for(var _Ab=0,_Ac=_Aa.length;_Ab<_Ac;_Ab++){var _Af=$k[--$j];$k[$j++]=_Af&&Math.ceil($_.tc)+1<=Math.ceil($g(_Aa,_Ab))}if($k[--$j]){$k[$j++]=$_.T;break}var _Ak=$a([$_.ac,$_.tc]);$k[$j++]=true;for(var _Al=0,_Am=_Ak.length;_Al<_Am;_Al++){var _Ap=$k[--$j];$k[$j++]=_Ap&&Math.ceil($_.cc)+1<=Math.ceil($g(_Ak,_Al))}if($k[--$j]){if(Math.ceil($_.cc)1480){$j--;$k[$j++]="bwipp.codeoneTooLong#23421";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}var _BG=$k[--$j];$P($_.cws,$_.j,_BG);$_.j=_BG.length+$_.j};$_.tobin=function(){var _BL=$s($k[--$j]);$k[$j++]=_BL;for(var _BN=0,_BM=_BL.length-1;_BN<=_BM;_BN+=1){var _BO=$k[--$j];$p(_BO,_BN,48);$k[$j++]=_BO}var _BP=$k[--$j];var _BS=$R($s(_BP.length),$k[--$j],2);$P(_BP,_BP.length-_BS.length,_BS);$k[$j++]=_BP;$k[$j++]=Infinity;var _BT=$k[--$j];var _BU=$k[--$j];$k[$j++]=_BT;$F(_BU,function(){var _BV=$k[--$j];$k[$j++]=$f(_BV-48)});var _BW=$a();$k[$j++]=_BW};$_.encA=function(){for(var _BX=0,_BY=1;_BX<_BY;_BX++){if($g($_.numD,$_.i)>=21){$_.Dbits=$a([1,1,1,1]);$_.mode=$_.D;break}var _Bg=$g($_.numD,$_.i);if(_Bg>=13&&$f(_Bg+$_.i)==$_.msglen){$_.Dbits=$a([1,1,1,1]);$_.mode=$_.D;break}if($g($_.numD,$_.i)>=2){var _Bo=$s(2);$p(_Bo,0,$g($_.msg,$_.i));$p(_Bo,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Bo);$_.addtocws();$_.i=$_.i+2;break}if($g($_.msg,$_.i)==$_.fnc1){if($g($_.numD,$_.i+1)>=15){$k[$j++]=$g($_.Avals,$_.fnc1lD);$_.addtocws();$_.i=$_.i+1;$_.Dbits=$a([]);$_.mode=$_.D;break}var _CD=$g($_.numD,$_.i+1);if(_CD>=7&&$f($f(_CD+$_.i)+1)==$_.msglen){$k[$j++]=$g($_.Avals,$_.fnc1lD);$_.addtocws();$_.i=$_.i+1;$_.Dbits=$a([]);$_.mode=$_.D;break}}$k[$j++]="newmode";$_.lookup();var _CM=$k[--$j];$_[$k[--$j]]=_CM;if($_.newmode!=$_.mode){$k[$j++]=$g($_.Avals,$g($a([-1,$_.lC,$_.lT,$_.lX,$_.lD,$_.lB]),$_.newmode));$_.addtocws();$_.mode=$_.newmode;break}$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1;break}};$_.CTXvalstocws=function(){$_.in=$k[--$j];$k[$j++]=Infinity;for(var _Ck=0,_Cj=$_.in.length-1;_Ck<=_Cj;_Ck+=3){var _Cm=$G($_.in,_Ck,3);$k[$j++]=0;for(var _Cn=0,_Co=_Cm.length;_Cn<_Co;_Cn++){var _Cq=$k[--$j];$k[$j++]=$f(_Cq+$g(_Cm,_Cn))*40}var _Cs=~~($k[--$j]/40)+1;$k[$j++]=~~(_Cs/256);$k[$j++]=_Cs%256}$as($a($m()));var _Cv=$k[--$j];var _Cw=$k[--$j];$k[$j++]=_Cv;$k[$j++]=_Cw;$j--};$_.encCTX=function(){$_.p=0;$_.ctxvals=$a(2220);for(;;){if($_.i==$_.msglen){break}if($_.p%3==0){if($g($_.numD,$_.i)>=12){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;break}var _DC=$g($_.numD,$_.i);if(_DC>=8&&$f(_DC+$_.i)==$_.msglen){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;break}if($_.mode==$_.X){var _DR=$g($_.Xvals,$g($_.msg,$_.i))!==undefined;if(!_DR){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();if($g($_.numremcws,$_.j)!=1||$g($_.msg,$_.i)>127){$k[$j++]=$a([$_.unlcw]);$_.addtocws()}$_.mode=$_.A;break}if($_.i+1<$_.msglen){var _Dk=$g($_.Xvals,$g($_.msg,$_.i+1))!==undefined;if(!_Dk){break}if($_.i+2<$_.msglen){var _Dr=$g($_.Xvals,$g($_.msg,$_.i+2))!==undefined;if(!_Dr){break}}}}else{$_.lookup();if($k[--$j]!=$_.mode){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;break}}if($_.msglen-$_.i<=3){$_.remcws=$g($_.numremcws,$_.j+~~($_.p/3)*2);$k[$j++]=Infinity;var _EA=$G($_.msg,$_.i,$_.msglen-$_.i);for(var _EB=0,_EC=_EA.length;_EB<_EC;_EB++){var _ED=$g(_EA,_EB);var _EH=$g($g($_.encvals,$_.mode),_ED)!==undefined;$k[$j++]=_ED;if(_EH){$q($g($g($_.encvals,$_.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$_.remvals=$a();if($_.remcws==2&&$_.remvals.length==3){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);var _EU=$a();$k[$j++]=_EU;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}if($_.remcws==2&&$_.remvals.length==2&&$_.mode!=$_.X){$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));$q($_.remvals);$q($g($g($_.encvals,$_.mode),$_.sft1));var _Ek=$a();$k[$j++]=_Ek;$_.CTXvalstocws();$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}if($_.remcws==2&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}if($_.remcws==1&&$_.remvals.length==1){$k[$j++]=$G($_.ctxvals,0,$_.p);$_.CTXvalstocws();$_.addtocws();$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.mode=$_.A;$_.i=$_.msglen;break}}}var _FJ=$g($g($_.encvals,$_.mode),$g($_.msg,$_.i));$P($_.ctxvals,$_.p,_FJ);$_.p=_FJ.length+$_.p;$_.i=$_.i+1}if($_.mode!=$_.A){for(;;){if($_.p%3==0){break}$_.i=$_.i-1;$_.p=$_.p-$g($g($_.encvals,$_.mode),$g($_.msg,$_.i)).length}$k[$j++]=Infinity;$q($G($_.ctxvals,0,$_.p));var _Fd=$a();$k[$j++]=_Fd;$_.CTXvalstocws();$_.addtocws();$k[$j++]=$a([$_.unlcw]);$_.addtocws();$_.mode=$_.A;if($_.i!=$_.msglen){if($g($_.numD,$_.i)>=2){var _Fm=$s(2);$p(_Fm,0,$g($_.msg,$_.i));$p(_Fm,1,$g($_.msg,$_.i+1));$k[$j++]=$g($_.Avals,_Fm);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$g($_.Avals,$g($_.msg,$_.i));$_.addtocws();$_.i=$_.i+1}}}};$_.encD=function(){for(;;){if($g($_.numD,$_.i)<3){$_.Drem=(8-$_.Dbits.length%8)%8;$_.remcws=$g($_.numremcws,$_.j+~~($_.Dbits.length/8));if(($f($g($_.numremcws,$_.j+~~($_.Dbits.length/8)-1)-1)==0&&$_.Drem==0||$_.remcws==1&&$_.Drem!=0)&&$_.i==$_.msglen){if($_.Drem==4||$_.Drem==6){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.Dbits=$a()}if($_.Drem==2||$_.Drem==6){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=0;$k[$j++]=1;$_.Dbits=$a()}break}if(($_.i==$_.msglen-1&&$g($_.numD,$_.i)==1||$_.i==$_.msglen-2&&$g($_.numD,$_.i)==2)&&$_.remcws==1&&$_.Drem==0){break}if(!($_.i==$_.msglen-1&&$g($_.numD,$_.i)==1&&$_.remcws==1&&($_.Drem==4||$_.Drem==6))){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.Dbits=$a();$_.Drem=(8-$_.Dbits.length%8)%8}if($_.Drem==4||$_.Drem==6){if($g($_.numD,$_.i)>=1){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=$f($f($g($_.msg,$_.i)-48)+1);$k[$j++]=4;$_.tobin();$q($k[--$j]);$_.Dbits=$a();$_.i=$_.i+1}else{$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.Dbits=$a()}$_.Drem=$_.Drem-4}if($_.Drem==2){$k[$j++]=Infinity;$q($_.Dbits);$k[$j++]=0;$k[$j++]=1;$_.Dbits=$a();$_.Drem=0}break}$k[$j++]=Infinity;$q($_.Dbits);var _H9=$G($_.msg,$_.i,3);$k[$j++]=0;for(var _HA=0,_HB=_H9.length;_HA<_HB;_HA++){var _HD=$k[--$j];$k[$j++]=$f(_HD+$f($g(_H9,_HA)-48))*10}var _HE=$k[--$j];$k[$j++]=~~(_HE/10)+1;$k[$j++]=10;$_.tobin();$q($k[--$j]);$_.Dbits=$a();$_.i=$_.i+3}$k[$j++]=Infinity;for(var _HK=0,_HJ=$_.Dbits.length-1;_HK<=_HJ;_HK+=8){var _HM=$G($_.Dbits,_HK,8);$k[$j++]=0;for(var _HN=0,_HO=_HM.length;_HN<_HO;_HN++){var _HQ=$k[--$j];$k[$j++]=$f(_HQ+$g(_HM,_HN))*2}var _HR=$k[--$j];$k[$j++]=~~(_HR/2)}$as($a($m()));var _HU=$k[--$j];var _HV=$k[--$j];$k[$j++]=_HU;$k[$j++]=_HV;$j--;$_.addtocws();$_.mode=$_.A};$_.encB=function(){$_.p=0;$_.bvals=$a(1480);for(;;){if($_.i==$_.msglen){break}if($g($_.msg,$_.i)<0){break}$_.lookup();if($k[--$j]!=$_.mode){break}$p($_.bvals,$_.p,$g($_.msg,$_.i));$_.p=$_.p+1;$_.i=$_.i+1}$_.remcws=$f($g($_.numremcws,$_.j+$_.p)-1);$k[$j++]=Infinity;if($_.remcws==0&&$_.i==$_.msglen){$k[$j++]=0}else{if($_.p<250){$k[$j++]=$_.p}else{$k[$j++]=~~($_.p/250)+249;$k[$j++]=$_.p%250}}$q($G($_.bvals,0,$_.p));$_.bvals=$a();$k[$j++]=$_.bvals;$_.addtocws();$_.mode=$_.A};$_.cws=$a(1480);$_.mode=$_.A;$_.i=0;$_.j=0;for(;;){if($_.i>=$_.msglen){break}if($_[$g($a(["encA","encCTX","encCTX","encCTX","encD","encB"]),$_.mode)]()===true){break}}$_.cws=$G($_.cws,0,$_.j)}var _IE=$_.metrics;for(var _IF=0,_IG=_IE.length;_IF<_IG;_IF++){$_.m=$g(_IE,_IF);$_.vers=$g($_.m,0);$_.rows=$g($_.m,1);$_.cols=$g($_.m,2);$_.dcol=$g($_.m,3);$_.dcws=$g($_.m,4);$_.rscw=$g($_.m,5);$_.rsbl=$g($_.m,6);$_.riso=$g($_.m,7);$_.risi=$g($_.m,8);$_.risl=$g($_.m,9);$_.dcpb=~~($_.dcws/$_.rsbl);$_.ecpb=~~($_.rscw/$_.rsbl);$_.okay=true;if($ne($_.version,"unset")&&$ne($_.version,$_.vers)){$_.okay=false}if($_.cws.length>$_.dcws){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.codeoneNoValidSymbol#23737";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}if(!$_.stype){$k[$j++]=Infinity;$q($_.cws);for(var _Ir=0,_Is=$f($_.dcws-$_.cws.length);_Ir<_Is;_Ir++){$k[$j++]=129}$_.cws=$a()}else{$k[$j++]=Infinity;for(var _Iw=0,_Ix=$f($_.dcws-$_.cws.length);_Iw<_Ix;_Iw++){$k[$j++]=0}$q($_.cws);$_.cws=$a()}var _J1=$g($_.options,"debugcws")!==undefined;if(_J1){$k[$j++]="bwipp.debugcws#23747";$k[$j++]=$_.cws;bwipp_raiseerror()}$_.cwbs=$a($_.rsbl);$_.ecbs=$a($_.rsbl);for(var _J9=0,_J8=$f($_.rsbl-1);_J9<=_J8;_J9+=1){$_.i=_J9;$_.cwb=$a($_.dcpb);for(var _JE=0,_JD=$_.dcpb-1;_JE<=_JD;_JE+=1){$_.j=_JE;$p($_.cwb,$_.j,$g($_.cws,$f($_.j*$_.rsbl+$_.i)))}$p($_.cwbs,$_.i,$_.cwb)}var _JQ=$_.stype?32:256;$_.gf=_JQ;$_["gf-1"]=$_.gf-1;var _JT=$_.stype?37:301;$_.pm=_JT;$k[$j++]=Infinity;$k[$j++]=1;for(var _JV=0,_JW=$_["gf-1"];_JV<_JW;_JV++){var _JX=$k[--$j];var _JY=_JX*2;$k[$j++]=_JX;$k[$j++]=_JY;if(_JY>=$_.gf){var _Jb=$k[--$j];$k[$j++]=_Jb^$_.pm}}$_.rsalog=$a();$_.rslog=$a($_.gf);for(var _Jh=1,_Jg=$_["gf-1"];_Jh<=_Jg;_Jh+=1){$p($_.rslog,$g($_.rsalog,_Jh),_Jh)}$_.rsprod=function(){var _Jl=$k[--$j];var _Jm=$k[--$j];$k[$j++]=_Jm;$k[$j++]=_Jl;if(_Jl!=0&&_Jm!=0){var _Jp=$g($_.rslog,$k[--$j]);var _Jv=$g($_.rsalog,$f(_Jp+$g($_.rslog,$k[--$j]))%$_["gf-1"]);$k[$j++]=_Jv}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Jx=0,_Jy=$_.ecpb;_Jx<_Jy;_Jx++){$k[$j++]=0}$_.coeffs=$a();for(var _K2=0,_K1=$_.ecpb-1;_K2<=_K1;_K2+=1){$_.i=_K2;$p($_.coeffs,$_.i+1,$g($_.coeffs,$_.i));for(var _K9=$_.i;_K9>=1;_K9-=1){$_.j=_K9;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _KL=$k[--$j];var _KM=$k[--$j];var _KN=$k[--$j];$p($k[--$j],_KN,$xo(_KM,_KL))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _KV=$k[--$j];var _KW=$k[--$j];$p($k[--$j],_KW,_KV)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _Kd=0,_Kc=$_.cwbs.length-1;_Kd<=_Kc;_Kd+=1){$_.i=_Kd;$k[$j++]=Infinity;$q($g($_.cwbs,$_.i));for(var _Ki=0,_Kj=$_.ecpb;_Ki<_Kj;_Ki++){$k[$j++]=0}$_.rscws=$a();for(var _Kn=0,_Km=$_.dcpb-1;_Kn<=_Km;_Kn+=1){$_.m=_Kn;$_.k=$g($_.rscws,$_.m);for(var _Kt=0,_Ks=$_.ecpb-1;_Kt<=_Ks;_Kt+=1){$_.j=_Kt;$k[$j++]=$_.rscws;$k[$j++]=$_.m+$_.j+1;$k[$j++]=$g($_.coeffs,$_.ecpb-$_.j-1);$k[$j++]=$_.k;$_.rsprod();var _L6=$k[--$j];var _L7=$k[--$j];$p($k[--$j],_L7,$xo(_L6,$g($_.rscws,$_.m+$_.j+1)))}}$p($_.ecbs,$_.i,$G($_.rscws,$_.dcpb,$_.ecpb))}$k[$j++]=Infinity;$q($_.cws);for(var _LH=0,_LI=$_.rscw;_LH<_LI;_LH++){$k[$j++]=0}$_.cws=$a();for(var _LM=0,_LL=$f($_.rscw-1);_LM<=_LL;_LM+=1){$_.i=_LM;$p($_.cws,$f($_.dcws+$_.i),$g($g($_.ecbs,$_.i%$_.rsbl),~~($_.i/$_.rsbl)))}var _La=$_.stype?5:8;$_.mmat=$a($f($_.dcws+$_.rscw)*_La);$_.r=0;$_.c=0;var _Ld=$_.stype?2:1;for(var _Lg=0,_Lh=_Ld,_Lf=$_.cws.length-1;_Lh<0?_Lg>=_Lf:_Lg<=_Lf;_Lg+=_Lh){$_.i=_Lg;if(!$_.stype){var _Lk=$Z($s(8),"00000000");var _Lp=$R($s(8),$g($_.cws,$_.i),2);$P(_Lk,8-_Lp.length,_Lp);$k[$j++]=_Lk;$k[$j++]=Infinity;var _Lq=$k[--$j];var _Lr=$k[--$j];$k[$j++]=_Lq;$F(_Lr,function(){var _Ls=$k[--$j];$k[$j++]=$f(_Ls-48)});var _Lt=$a();$_.top=$G(_Lt,0,4);$_.bot=$G(_Lt,4,4)}else{var _Lx=$Z($s(5),"00000");var _M2=$R($s(5),$g($_.cws,$_.i),2);$P(_Lx,5-_M2.length,_M2);$k[$j++]=_Lx;$k[$j++]=Infinity;var _M3=$k[--$j];var _M4=$k[--$j];$k[$j++]=_M3;$F(_M4,function(){var _M5=$k[--$j];$k[$j++]=$f(_M5-48)});$_.c1=$a();var _M8=$Z($s(5),"00000");var _MD=$R($s(5),$g($_.cws,$_.i+1),2);$P(_M8,5-_MD.length,_MD);$k[$j++]=_M8;$k[$j++]=Infinity;var _ME=$k[--$j];var _MF=$k[--$j];$k[$j++]=_ME;$F(_MF,function(){var _MG=$k[--$j];$k[$j++]=$f(_MG-48)});$_.c2=$a();$k[$j++]=Infinity;$q($G($_.c1,0,3));$q($G($_.c2,0,2));$_.top=$a();$k[$j++]=Infinity;$q($G($_.c1,3,2));$q($G($_.c2,2,3));$_.bot=$a()}$P($_.mmat,$f($_.r*$_.dcol+$_.c),$_.top);$P($_.mmat,$f(($_.r+1)*$_.dcol+$_.c),$_.bot);$_.c=$_.c+$_.top.length;if($_.c==$_.dcol){$_.c=0;$_.r=$_.r+2}}$_.mmv=function(){var _Mi=$k[--$j];var _Mj=$k[--$j];$k[$j++]=$f(_Mj+_Mi*$_.cols)};$k[$j++]=Infinity;for(var _Mm=0,_Mn=$_.rows*$_.cols;_Mm<_Mn;_Mm++){$k[$j++]=-1}$_.pixs=$a();var _NJ=$a([function(){for(var _Mq=0,_Mr=$_.cols;_Mq<_Mr;_Mq++){$k[$j++]=0}},function(){for(var _Mt=0,_Mu=$_.cols;_Mt<_Mu;_Mt++){$k[$j++]=1}},function(){$k[$j++]=0;for(var _Mw=0,_Mx=$f($_.cols-2);_Mw<_Mx;_Mw++){$k[$j++]=1}$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=1;for(var _Mz=0,_N0=$f($_.cols-4);_Mz<_N0;_Mz++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0},function(){for(var _N2=0,_N3=~~($f($_.cols-1)/2);_N2<_N3;_N2++){$k[$j++]=-1}$k[$j++]=1;for(var _N5=0,_N6=~~($f($_.cols-1)/2);_N5<_N6;_N5++){$k[$j++]=-1}},function(){for(var _N8=0,_N9=~~($f($_.cols-1)/2);_N8<_N9;_N8++){$k[$j++]=-1}$k[$j++]=0;for(var _NB=0,_NC=~~($f($_.cols-1)/2);_NB<_NC;_NB++){$k[$j++]=-1}},function(){$k[$j++]=1;for(var _NE=0,_NF=$f($_.cols-2);_NE<_NF;_NE++){$k[$j++]=0}$k[$j++]=1},function(){$k[$j++]=1;$k[$j++]=0;for(var _NH=0,_NI=$f($_.cols-4);_NH<_NI;_NH++){$k[$j++]=1}$k[$j++]=0;$k[$j++]=1}]);$_.artifact=_NJ;if(!bwipp_codeone.__23866__){$_=Object.create($_);var _NK=new Map([["A","121343"],["B","12134343"],["C","12121343"],["D","1213434343"],["E","1212134343"],["F","1212121343"],["G","121213434343"],["H","121212134343"],["S","56661278"],["T","5666666666127878"]]);$_.cpatmap=_NK;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codeone.$ctx[id]=$_[id]);bwipp_codeone.__23866__=1;$_=Object.getPrototypeOf($_)}$_.cpat=$g($_.cpatmap,$G($_.vers,0,1));$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=~~($f($_.rows-$_.cpat.length)/2);$_.mmv();$k[$j++]=Infinity;$F($_.cpat,function(){if($g($_.artifact,$f($k[--$j]-49))()===true){return true}});var _NX=$a();var _NY=$k[--$j];$P($k[--$j],_NY,_NX);for(var _Nc=0,_Nb=$f($_.risl-1);_Nc<=_Nb;_Nc+=1){$_.i=_Nc;for(var _Nh=$_.riso,_Ni=$_.risi,_Ng=$f($_.cols-1);_Ni<0?_Nh>=_Ng:_Nh<=_Ng;_Nh+=_Ni){$_.j=_Nh;var _Nk=$_.i%12==0?1:0;var _Nl=$a([1,_Nk]);$k[$j++]=_Nl;$k[$j++]=_Nl;$k[$j++]=$_.pixs;$k[$j++]=$_.j;$k[$j++]=$_.i;$_.mmv();var _Np=$k[--$j];var _Nq=$k[--$j];$P(_Nq,_Np,$k[--$j]);if($_.i!=$f($_.risl-1)){$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.cols-$_.j)-2);$k[$j++]=$f($f($_.rows-$_.i)-1);$_.mmv();var _Nz=$k[--$j];var _O0=$k[--$j];$P(_O0,_Nz,$k[--$j])}else{$j--}}}if(!bwipp_codeone.__23904__){$_=Object.create($_);var _Of=new Map([["A",$a([$a([12,5])])],["B",$a([$a([16,7])])],["C",$a([$a([26,12])])],["D",$a([])],["E",$a([$a([26,23])])],["F",$a([$a([26,32]),$a([70,32]),$a([26,34]),$a([70,34])])],["G",$a([$a([27,48]),$a([69,48])])],["H",$a([$a([26,70]),$a([66,70]),$a([106,70]),$a([26,72]),$a([66,72]),$a([106,72])])],["S-10",$a([])],["S-20",$a([$a([10,4])])],["S-30",$a([$a([15,4]),$a([15,6])])],["T-16",$a([$a([8,10])])],["T-32",$a([$a([16,10]),$a([16,12])])],["T-48",$a([$a([24,10]),$a([24,12]),$a([24,14])])]]);$_.blackdotmap=_Of;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_codeone.$ctx[id]=$_[id]);bwipp_codeone.__23904__=1;$_=Object.getPrototypeOf($_)}$F($g($_.blackdotmap,$_.vers),function(){var _Ol=$k[--$j];$k[$j++]=$_.pixs;$q(_Ol);$_.mmv();var _Om=$k[--$j];$p($k[--$j],_Om,1)});$_.j=0;for(var _Oq=0,_Op=$_.pixs.length-1;_Oq<=_Op;_Oq+=1){$_.i=_Oq;if($g($_.pixs,$_.i)==-1){$p($_.pixs,$_.i,$g($_.mmat,$_.j));$_.j=$_.j+1}}$k[$j++]=Infinity;$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=$_.pixs;$k[$j++]="pixx";$k[$j++]=$_.cols;$k[$j++]="pixy";$k[$j++]=$_.rows;$k[$j++]="height";$k[$j++]=$_.rows/72*2;$k[$j++]="width";$k[$j++]=$_.cols/72*2;if($_.stype||$_.ttype){$k[$j++]="borderleft";$k[$j++]=1;$k[$j++]="borderright";$k[$j++]=1;$k[$j++]="bordertop";$k[$j++]=0;$k[$j++]="borderbottom";$k[$j++]=1}$k[$j++]="opt";$k[$j++]=$_.options;var _P8=$d();$k[$j++]=_P8;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hanxin(){$_=Object.create($_);$_.dontdraw=false;$_.version="unset";$_.eclevel="L2";$_.parse=false;$_.parsefnc=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hanxinEmptyData#23983";$k[$j++]="The data must not be empty";bwipp_raiseerror()}if($ne($_.version,"unset")){var _5=$_.version.length;var _6=_5>=1&&_5<=2;$k[$j++]=_6;if(_6){$j--;var _7=$_.version;$k[$j++]=true;for(var _8=0,_9=_7.length;_8<_9;_8++){var _A=$g(_7,_8);if(_A<48||_A>57){$j--;$k[$j++]=false}}var _B=$k[--$j];$k[$j++]=_B;if(_B){$j--;var _D=$i($_.version);$k[$j++]=_D>=1&&_D<=84}}if($nt($k[--$j])){$k[$j++]="bwipp.hanxinInvalidVersion#23994";$k[$j++]="Valid versions are 1 to 84";bwipp_raiseerror()}}var _G=$_.eclevel.length==2;$k[$j++]=_G;if(_G){$j--;$k[$j++]=$G($_.eclevel,0,1);if($eq("L","L")){$j--;var _L=$g($_.eclevel,1)-48;$k[$j++]=_L>=1&&_L<=4}}if($nt($k[--$j])){$k[$j++]="bwipp.hanxinInvalidErrorCorrectionLevel#24004";$k[$j++]="Valid error correction levels are L1 to L4";bwipp_raiseerror()}if($_.mask!=-1){if($_.mask<1||$_.mask>4){$k[$j++]="bwipp.hanxinInvalidErrorCorrectionLevel#24009";$k[$j++]="The valid masks are 1 to 4";bwipp_raiseerror()}}bwipp_loadctx(bwipp_hanxin);var _S=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc]]);$_.fncvals=_S;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _V=$k[--$j];$_[$k[--$j]]=_V;$_.msglen=$_.msg.length;$_.tobin=function(){var _Z=$s($k[--$j]);$k[$j++]=_Z;for(var _b=0,_a=_Z.length-1;_b<=_a;_b+=1){var _c=$k[--$j];$p(_c,_b,48);$k[$j++]=_c}var _d=$k[--$j];var _g=$R($s(_d.length),$k[--$j],2);$P(_d,_d.length-_g.length,_g);$k[$j++]=_d};$_.bits=$s(4+13+$_.msglen*8);$P($_.bits,0,"0011");$k[$j++]=$_.bits;$k[$j++]=4;$k[$j++]=$_.msglen;$k[$j++]=13;$_.tobin();var _m=$k[--$j];var _n=$k[--$j];$P($k[--$j],_n,_m);for(var _r=0,_q=$_.msglen-1;_r<=_q;_r+=1){$_.i=_r;$k[$j++]=$_.bits;$k[$j++]=17+$_.i*8;$k[$j++]=$g($_.msg,$_.i);$k[$j++]=8;$_.tobin();var _x=$k[--$j];var _y=$k[--$j];$P($k[--$j],_y,_x)}if(!bwipp_hanxin.__24380__){$_=Object.create($_);var _24=$a([0,-1,-1]);$_.metrics=$a([$a(["1",23,-1,0,205,$a([1,21,4]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,17,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,13,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,9,16]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["2",25,-1,0,301,$a([1,31,6]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,25,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,19,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,15,22]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["3",27,-1,0,405,$a([1,42,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,34,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["4",29,14,1,439,$a([1,46,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,38,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,30,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,22,32]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["5",31,16,1,555,$a([1,57,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,49,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,37,32]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,14,20]),$a([1,13,22]),$a([0,-1,-1])]),$a(["6",33,16,1,675,$a([1,70,14]),_24,$a([0,-1,-1]),$a([1,58,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,24,20]),$a([1,22,18]),$a([0,-1,-1]),$a([1,16,24]),$a([1,18,26]),$a([0,-1,-1])]),$a(["7",35,17,1,805,$a([1,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,22]),$a([1,28,24]),$a([0,-1,-1]),$a([2,14,20]),$a([1,12,20]),$a([0,-1,-1])]),$a(["8",37,18,1,943,$a([1,99,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,40,18]),$a([1,41,18]),$a([0,-1,-1]),$a([1,31,26]),$a([1,32,28]),$a([0,-1,-1]),$a([2,16,24]),$a([1,15,22]),$a([0,-1,-1])]),$a(["9",39,19,1,1089,$a([1,114,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,48,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,24,20]),$a([1,26,22]),$a([0,-1,-1]),$a([2,18,28]),$a([1,18,26]),$a([0,-1,-1])]),$a(["10",41,20,1,1243,$a([1,131,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,52,22]),$a([1,57,24]),$a([0,-1,-1]),$a([2,27,24]),$a([1,29,24]),$a([0,-1,-1]),$a([2,21,32]),$a([1,19,30]),$a([0,-1,-1])]),$a(["11",43,14,2,1289,$a([1,135,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,56,24]),$a([1,57,24]),$a([0,-1,-1]),$a([2,28,24]),$a([1,31,26]),$a([0,-1,-1]),$a([2,22,32]),$a([1,21,32]),$a([0,-1,-1])]),$a(["12",45,15,2,1455,$a([1,153,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,62,26]),$a([1,65,28]),$a([0,-1,-1]),$a([2,32,28]),$a([1,33,28]),$a([0,-1,-1]),$a([3,17,26]),$a([1,22,30]),$a([0,-1,-1])]),$a(["13",47,16,2,1629,$a([1,86,16]),$a([1,85,16]),$a([0,-1,-1]),$a([1,71,30]),$a([1,72,30]),$a([0,-1,-1]),$a([2,37,32]),$a([1,35,30]),$a([0,-1,-1]),$a([3,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["14",49,16,2,1805,$a([1,94,18]),$a([1,95,18]),$a([0,-1,-1]),$a([2,51,22]),$a([1,55,24]),$a([0,-1,-1]),$a([3,30,26]),$a([1,31,26]),$a([0,-1,-1]),$a([4,18,28]),$a([1,17,24]),$a([0,-1,-1])]),$a(["15",51,17,2,1995,$a([1,104,20]),$a([1,105,20]),$a([0,-1,-1]),$a([2,57,24]),$a([1,61,26]),$a([0,-1,-1]),$a([3,33,28]),$a([1,36,30]),$a([0,-1,-1]),$a([4,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["16",53,17,2,2187,$a([1,115,22]),$a([1,114,22]),$a([0,-1,-1]),$a([2,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([3,38,32]),$a([1,33,30]),$a([0,-1,-1]),$a([5,19,28]),$a([1,14,24]),$a([0,-1,-1])]),$a(["17",55,18,2,2393,$a([1,126,24]),$a([1,125,24]),$a([0,-1,-1]),$a([2,70,30]),$a([1,69,30]),$a([0,-1,-1]),$a([4,33,28]),$a([1,29,26]),$a([0,-1,-1]),$a([5,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["18",57,19,2,2607,$a([1,136,26]),$a([1,137,26]),$a([0,-1,-1]),$a([3,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([5,35,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,18,28]),$a([1,21,28]),$a([0,-1,-1])]),$a(["19",59,20,2,2829,$a([1,148,28]),$a([1,149,28]),$a([0,-1,-1]),$a([3,61,26]),$a([1,64,28]),$a([0,-1,-1]),$a([7,24,20]),$a([1,23,22]),$a([0,-1,-1]),$a([6,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["20",61,20,2,3053,$a([3,107,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([3,65,28]),$a([1,72,30]),$a([0,-1,-1]),$a([7,26,22]),$a([1,23,22]),$a([0,-1,-1]),$a([7,19,28]),$a([1,20,32]),$a([0,-1,-1])]),$a(["21",63,21,2,3291,$a([3,115,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([4,56,24]),$a([1,63,28]),$a([0,-1,-1]),$a([7,28,24]),$a([1,25,22]),$a([0,-1,-1]),$a([8,18,28]),$a([1,21,22]),$a([0,-1,-1])]),$a(["22",65,16,3,3383,$a([2,116,22]),$a([1,122,24]),$a([0,-1,-1]),$a([4,56,24]),$a([1,72,30]),$a([0,-1,-1]),$a([7,28,24]),$a([1,32,26]),$a([0,-1,-1]),$a([8,18,28]),$a([1,24,30]),$a([0,-1,-1])]),$a(["23",67,17,3,3631,$a([3,127,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([5,51,22]),$a([1,62,26]),$a([0,-1,-1]),$a([7,30,26]),$a([1,35,26]),$a([0,-1,-1]),$a([8,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["24",69,17,3,3887,$a([2,135,26]),$a([1,137,26]),$a([0,-1,-1]),$a([5,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([7,33,28]),$a([1,30,28]),$a([0,-1,-1]),$a([11,16,24]),$a([1,19,26]),$a([0,-1,-1])]),$a(["25",71,18,3,4151,$a([3,105,20]),$a([1,121,22]),$a([0,-1,-1]),$a([5,61,26]),$a([1,57,26]),$a([0,-1,-1]),$a([9,28,24]),$a([1,28,22]),$a([0,-1,-1]),$a([10,19,28]),$a([1,18,30]),$a([0,-1,-1])]),$a(["26",73,18,3,4423,$a([2,157,30]),$a([1,150,28]),$a([0,-1,-1]),$a([5,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([8,33,28]),$a([1,34,30]),$a([0,-1,-1]),$a([10,19,28]),$a([2,15,26]),$a([0,-1,-1])]),$a(["27",75,19,3,4703,$a([3,126,24]),$a([1,115,22]),$a([0,-1,-1]),$a([7,51,22]),$a([1,54,22]),$a([0,-1,-1]),$a([8,35,30]),$a([1,37,30]),$a([0,-1,-1]),$a([15,15,22]),$a([1,10,22]),$a([0,-1,-1])]),$a(["28",77,19,3,4991,$a([4,105,20]),$a([1,103,20]),$a([0,-1,-1]),$a([7,56,24]),$a([1,45,18]),$a([0,-1,-1]),$a([10,31,26]),$a([1,27,26]),$a([0,-1,-1]),$a([10,17,26]),$a([3,20,28]),$a([1,21,28])]),$a(["29",79,20,3,5287,$a([3,139,26]),$a([1,137,28]),$a([0,-1,-1]),$a([6,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([9,36,30]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["30",81,20,3,5591,$a([6,84,16]),$a([1,82,16]),$a([0,-1,-1]),$a([6,70,30]),$a([1,68,30]),$a([0,-1,-1]),$a([7,35,30]),$a([3,33,28]),$a([1,32,28]),$a([13,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["31",83,21,3,5903,$a([5,105,20]),$a([1,94,18]),$a([0,-1,-1]),$a([6,74,32]),$a([1,71,30]),$a([0,-1,-1]),$a([11,33,28]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["32",85,17,4,6033,$a([4,127,24]),$a([1,126,24]),$a([0,-1,-1]),$a([7,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([12,30,24]),$a([1,24,28]),$a([1,24,30]),$a([15,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["33",87,17,4,6353,$a([7,84,16]),$a([1,78,16]),$a([0,-1,-1]),$a([7,70,30]),$a([1,66,28]),$a([0,-1,-1]),$a([12,33,28]),$a([1,32,30]),$a([0,-1,-1]),$a([14,21,32]),$a([1,24,28]),$a([0,-1,-1])]),$a(["34",89,18,4,6689,$a([5,117,22]),$a([1,117,24]),$a([0,-1,-1]),$a([8,66,28]),$a([1,58,26]),$a([0,-1,-1]),$a([11,38,32]),$a([1,34,32]),$a([0,-1,-1]),$a([15,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["35",91,18,4,7025,$a([4,148,28]),$a([1,146,28]),$a([0,-1,-1]),$a([8,68,30]),$a([1,70,24]),$a([0,-1,-1]),$a([10,36,32]),$a([3,38,28]),$a([0,-1,-1]),$a([16,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["36",93,19,4,7377,$a([4,126,24]),$a([2,135,26]),$a([0,-1,-1]),$a([8,70,28]),$a([2,43,26]),$a([0,-1,-1]),$a([13,32,28]),$a([2,41,30]),$a([0,-1,-1]),$a([17,19,28]),$a([3,15,26]),$a([0,-1,-1])]),$a(["37",95,19,4,7729,$a([5,136,26]),$a([1,132,24]),$a([0,-1,-1]),$a([5,67,30]),$a([4,68,28]),$a([1,69,28]),$a([14,35,30]),$a([1,32,24]),$a([0,-1,-1]),$a([18,18,26]),$a([3,16,28]),$a([1,14,28])]),$a(["38",97,19,4,8089,$a([3,142,26]),$a([3,141,28]),$a([0,-1,-1]),$a([8,70,30]),$a([1,73,32]),$a([1,74,32]),$a([12,34,30]),$a([3,34,26]),$a([1,35,28]),$a([18,21,32]),$a([1,27,30]),$a([0,-1,-1])]),$a(["39",99,20,4,8465,$a([5,116,22]),$a([2,103,20]),$a([1,102,20]),$a([9,74,32]),$a([1,74,30]),$a([0,-1,-1]),$a([14,34,28]),$a([2,32,32]),$a([1,32,30]),$a([19,21,32]),$a([1,25,26]),$a([0,-1,-1])]),$a(["40",101,20,4,8841,$a([7,116,22]),$a([1,117,22]),$a([0,-1,-1]),$a([11,65,28]),$a([1,58,24]),$a([0,-1,-1]),$a([15,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([20,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["41",103,17,5,9009,$a([6,136,26]),$a([1,130,24]),$a([0,-1,-1]),$a([11,66,28]),$a([1,62,30]),$a([0,-1,-1]),$a([14,34,28]),$a([3,34,32]),$a([1,30,30]),$a([18,20,30]),$a([3,20,28]),$a([2,15,26])]),$a(["42",105,17,5,9401,$a([5,105,20]),$a([2,115,22]),$a([2,116,22]),$a([10,75,32]),$a([1,73,32]),$a([0,-1,-1]),$a([16,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([22,19,28]),$a([2,16,30]),$a([1,19,30])]),$a(["43",107,18,5,9799,$a([6,147,28]),$a([1,146,28]),$a([0,-1,-1]),$a([11,66,28]),$a([2,65,30]),$a([0,-1,-1]),$a([18,33,28]),$a([2,33,30]),$a([0,-1,-1]),$a([22,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["44",109,18,5,10207,$a([6,116,22]),$a([3,125,24]),$a([0,-1,-1]),$a([11,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([13,35,28]),$a([6,34,32]),$a([1,30,30]),$a([23,21,32]),$a([1,26,30]),$a([0,-1,-1])]),$a(["45",111,18,5,10623,$a([7,105,20]),$a([4,95,18]),$a([0,-1,-1]),$a([12,67,28]),$a([1,63,30]),$a([1,62,32]),$a([21,31,26]),$a([2,33,32]),$a([0,-1,-1]),$a([23,21,32]),$a([2,24,30]),$a([0,-1,-1])]),$a(["46",113,19,5,11045,$a([10,116,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([12,74,32]),$a([1,78,30]),$a([0,-1,-1]),$a([18,37,32]),$a([1,39,30]),$a([1,41,28]),$a([25,21,32]),$a([1,27,28]),$a([0,-1,-1])]),$a(["47",115,19,5,11477,$a([5,126,24]),$a([4,115,22]),$a([1,114,22]),$a([12,67,28]),$a([2,66,32]),$a([1,68,30]),$a([21,35,30]),$a([1,39,30]),$a([0,-1,-1]),$a([26,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["48",117,19,5,11917,$a([9,126,24]),$a([1,117,22]),$a([0,-1,-1]),$a([13,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([20,35,30]),$a([3,35,28]),$a([0,-1,-1]),$a([27,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["49",119,17,6,12111,$a([9,126,24]),$a([1,137,26]),$a([0,-1,-1]),$a([13,71,30]),$a([2,68,32]),$a([0,-1,-1]),$a([20,37,32]),$a([1,39,28]),$a([1,38,28]),$a([24,20,32]),$a([5,25,28]),$a([0,-1,-1])]),$a(["50",121,17,6,12559,$a([8,147,28]),$a([1,141,28]),$a([0,-1,-1]),$a([10,73,32]),$a([4,74,30]),$a([1,73,30]),$a([16,36,32]),$a([6,39,30]),$a([1,37,30]),$a([27,21,32]),$a([3,20,26]),$a([0,-1,-1])]),$a(["51",123,18,6,13025,$a([9,137,26]),$a([1,135,26]),$a([0,-1,-1]),$a([12,70,30]),$a([4,75,32]),$a([0,-1,-1]),$a([24,35,30]),$a([1,40,28]),$a([0,-1,-1]),$a([23,20,32]),$a([8,24,30]),$a([0,-1,-1])]),$a(["52",125,18,6,13489,$a([14,95,18]),$a([1,86,18]),$a([0,-1,-1]),$a([13,73,32]),$a([3,77,30]),$a([0,-1,-1]),$a([24,35,30]),$a([2,35,28]),$a([0,-1,-1]),$a([26,21,32]),$a([5,21,30]),$a([1,23,30])]),$a(["53",127,18,6,13961,$a([9,147,28]),$a([1,142,28]),$a([0,-1,-1]),$a([10,73,30]),$a([6,70,32]),$a([1,71,32]),$a([25,35,30]),$a([2,34,26]),$a([0,-1,-1]),$a([29,21,32]),$a([4,22,30]),$a([0,-1,-1])]),$a(["54",129,18,6,14441,$a([11,126,24]),$a([1,131,24]),$a([0,-1,-1]),$a([16,74,32]),$a([1,79,30]),$a([0,-1,-1]),$a([25,38,32]),$a([1,25,30]),$a([0,-1,-1]),$a([33,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["55",131,19,6,14939,$a([14,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([24,37,32]),$a([2,40,30]),$a([1,41,30]),$a([31,21,32]),$a([4,24,32]),$a([0,-1,-1])]),$a(["56",133,19,6,15435,$a([10,147,28]),$a([1,151,28]),$a([0,-1,-1]),$a([15,71,30]),$a([3,71,32]),$a([1,73,32]),$a([24,37,32]),$a([3,38,30]),$a([1,39,30]),$a([36,19,30]),$a([3,29,26]),$a([0,-1,-1])]),$a(["57",135,19,6,15939,$a([15,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,70,30]),$a([1,64,28]),$a([0,-1,-1]),$a([27,38,32]),$a([2,25,26]),$a([0,-1,-1]),$a([38,20,30]),$a([2,18,28]),$a([0,-1,-1])]),$a(["58",137,17,7,16171,$a([14,105,20]),$a([1,113,22]),$a([1,114,22]),$a([17,67,30]),$a([3,92,32]),$a([0,-1,-1]),$a([30,35,30]),$a([1,41,30]),$a([0,-1,-1]),$a([36,21,32]),$a([1,26,30]),$a([1,27,30])]),$a(["59",139,17,7,16691,$a([11,146,28]),$a([1,146,26]),$a([0,-1,-1]),$a([20,70,30]),$a([1,60,26]),$a([0,-1,-1]),$a([29,38,32]),$a([1,24,32]),$a([0,-1,-1]),$a([40,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["60",141,18,7,17215,$a([3,137,26]),$a([1,136,26]),$a([10,126,24]),$a([22,65,28]),$a([1,75,30]),$a([0,-1,-1]),$a([30,37,32]),$a([1,51,30]),$a([0,-1,-1]),$a([42,20,30]),$a([1,21,30]),$a([0,-1,-1])]),$a(["61",143,18,7,17751,$a([12,126,24]),$a([2,118,22]),$a([1,116,22]),$a([19,74,32]),$a([1,74,30]),$a([1,72,28]),$a([30,38,32]),$a([2,29,30]),$a([0,-1,-1]),$a([39,20,32]),$a([2,37,26]),$a([1,38,26])]),$a(["62",145,18,7,18295,$a([12,126,24]),$a([3,136,26]),$a([0,-1,-1]),$a([21,70,30]),$a([2,65,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,44,32]),$a([0,-1,-1]),$a([42,20,30]),$a([2,19,28]),$a([2,18,28])]),$a(["63",147,18,7,18847,$a([12,126,24]),$a([3,117,22]),$a([1,116,22]),$a([25,61,26]),$a([2,62,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,40,32]),$a([1,41,32]),$a([45,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["64",149,19,7,19403,$a([15,105,20]),$a([2,115,22]),$a([2,116,22]),$a([25,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([18,35,30]),$a([17,37,32]),$a([1,50,32]),$a([42,20,30]),$a([6,19,28]),$a([1,15,28])]),$a(["65",151,19,7,19971,$a([19,105,20]),$a([1,101,20]),$a([0,-1,-1]),$a([33,51,22]),$a([1,65,22]),$a([0,-1,-1]),$a([40,33,28]),$a([1,28,28]),$a([0,-1,-1]),$a([49,20,30]),$a([1,18,28]),$a([0,-1,-1])]),$a(["66",153,17,8,20229,$a([18,105,20]),$a([2,117,22]),$a([0,-1,-1]),$a([26,65,28]),$a([1,80,30]),$a([0,-1,-1]),$a([35,35,30]),$a([3,35,28]),$a([1,36,28]),$a([52,18,28]),$a([2,38,30]),$a([0,-1,-1])]),$a(["67",155,17,8,20805,$a([26,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([26,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([45,31,26]),$a([1,9,26]),$a([0,-1,-1]),$a([52,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["68",157,17,8,21389,$a([16,126,24]),$a([1,114,22]),$a([1,115,22]),$a([23,70,30]),$a([3,65,28]),$a([1,66,28]),$a([40,35,30]),$a([1,43,30]),$a([0,-1,-1]),$a([46,20,30]),$a([7,19,28]),$a([1,16,28])]),$a(["69",159,18,8,21993,$a([19,116,22]),$a([1,105,22]),$a([0,-1,-1]),$a([20,70,30]),$a([7,66,28]),$a([1,63,28]),$a([40,35,30]),$a([1,42,32]),$a([1,43,32]),$a([54,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["70",161,18,8,22593,$a([17,126,24]),$a([2,115,22]),$a([0,-1,-1]),$a([24,70,30]),$a([4,74,32]),$a([0,-1,-1]),$a([48,31,26]),$a([2,18,26]),$a([0,-1,-1]),$a([54,19,28]),$a([6,15,26]),$a([1,14,26])]),$a(["71",163,18,8,23201,$a([29,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([29,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,34,30]),$a([3,36,30]),$a([38,33,28]),$a([58,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["72",165,18,8,23817,$a([16,147,28]),$a([1,149,28]),$a([0,-1,-1]),$a([31,66,28]),$a([1,37,26]),$a([0,-1,-1]),$a([48,33,28]),$a([1,23,26]),$a([0,-1,-1]),$a([53,20,30]),$a([6,19,28]),$a([1,17,28])]),$a(["73",167,19,8,24453,$a([20,115,22]),$a([2,134,24]),$a([0,-1,-1]),$a([29,66,28]),$a([2,56,26]),$a([2,57,26]),$a([45,36,30]),$a([2,15,28]),$a([0,-1,-1]),$a([59,20,30]),$a([2,21,32]),$a([0,-1,-1])]),$a(["74",169,19,8,25085,$a([17,147,28]),$a([1,134,26]),$a([0,-1,-1]),$a([26,70,30]),$a([5,75,32]),$a([0,-1,-1]),$a([47,35,30]),$a([1,48,32]),$a([0,-1,-1]),$a([64,18,28]),$a([2,33,30]),$a([1,35,30])]),$a(["75",171,17,9,25373,$a([22,115,22]),$a([1,133,24]),$a([0,-1,-1]),$a([33,65,28]),$a([1,74,28]),$a([0,-1,-1]),$a([43,36,30]),$a([5,27,28]),$a([1,30,28]),$a([57,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["76",173,17,9,26021,$a([18,136,26]),$a([2,142,26]),$a([0,-1,-1]),$a([33,66,28]),$a([2,49,26]),$a([0,-1,-1]),$a([48,35,30]),$a([2,38,28]),$a([0,-1,-1]),$a([64,20,30]),$a([1,20,32]),$a([0,-1,-1])]),$a(["77",175,17,9,26677,$a([19,126,24]),$a([2,135,26]),$a([1,136,26]),$a([32,66,28]),$a([2,55,26]),$a([2,56,26]),$a([49,36,30]),$a([2,18,32]),$a([0,-1,-1]),$a([65,18,28]),$a([5,27,30]),$a([1,29,30])]),$a(["78",177,18,9,27335,$a([20,137,26]),$a([1,130,26]),$a([0,-1,-1]),$a([30,75,32]),$a([2,71,32]),$a([0,-1,-1]),$a([46,35,30]),$a([6,39,32]),$a([0,-1,-1]),$a([3,12,30]),$a([70,19,28]),$a([0,-1,-1])]),$a(["79",179,18,9,28007,$a([20,147,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([35,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([49,35,30]),$a([5,35,28]),$a([0,-1,-1]),$a([70,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["80",181,18,9,28687,$a([21,136,26]),$a([1,155,28]),$a([0,-1,-1]),$a([34,70,30]),$a([1,64,28]),$a([1,65,28]),$a([54,35,30]),$a([1,45,30]),$a([0,-1,-1]),$a([68,20,30]),$a([3,18,28]),$a([1,19,28])]),$a(["81",183,18,9,29375,$a([19,126,24]),$a([5,115,22]),$a([1,114,22]),$a([33,70,30]),$a([3,65,28]),$a([1,64,28]),$a([52,35,30]),$a([3,41,32]),$a([1,40,32]),$a([67,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["82",185,18,9,30071,$a([2,150,28]),$a([21,136,26]),$a([0,-1,-1]),$a([32,70,30]),$a([6,65,28]),$a([0,-1,-1]),$a([52,38,32]),$a([2,27,32]),$a([0,-1,-1]),$a([73,20,30]),$a([2,22,32]),$a([0,-1,-1])]),$a(["83",187,17,10,30387,$a([21,126,24]),$a([4,136,26]),$a([0,-1,-1]),$a([30,74,32]),$a([6,73,30]),$a([0,-1,-1]),$a([54,35,30]),$a([4,40,32]),$a([0,-1,-1]),$a([75,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["84",189,17,10,31091,$a([30,105,20]),$a([1,114,22]),$a([0,-1,-1]),$a([3,45,22]),$a([55,47,20]),$a([0,-1,-1]),$a([2,26,26]),$a([62,33,28]),$a([0,-1,-1]),$a([79,18,28]),$a([4,33,30]),$a([0,-1,-1])])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hanxin.$ctx[id]=$_[id]);bwipp_hanxin.__24380__=1;$_=Object.getPrototypeOf($_)}$_.eclval=$g($_.eclevel,1)-49;var _Ig=$_.metrics;for(var _Ih=0,_Ii=_Ig.length;_Ih<_Ii;_Ih++){$_.m=$g(_Ig,_Ih);$_.vers=$g($_.m,0);$_.size=$g($_.m,1);$_.alnk=$g($_.m,2);$_.alnn=$g($_.m,3);$_.alnr=$f($_.size-$_.alnk*$_.alnn);$_.nmod=$g($_.m,4);$_.ncws=~~($_.nmod/8);$_.rbit=$_.nmod%8;$_.ecbs=$G($_.m,5+$_.eclval*3,3);var _J2=$_.ecbs;$k[$j++]="ecws";$k[$j++]=0;for(var _J3=0,_J4=_J2.length;_J3<_J4;_J3++){var _J5=$g(_J2,_J3);var _J8=$k[--$j];$k[$j++]=$f(_J8+$g(_J5,0)*$g(_J5,2))}var _J9=$k[--$j];$_[$k[--$j]]=_J9;$_.dcws=$f($_.ncws-$_.ecws);$_.dmod=$_.dcws*8;$_.okay=true;if($ne($_.version,"unset")&&$ne($_.version,$_.vers)){$_.okay=false}if($_.bits.length>$_.dmod){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.hanxinNoValidSymbol#24404";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}$_.version=$_.vers;$_.msgbits=$_.bits;$_.e1nb=$g($g($_.ecbs,0),0);$_.e2nb=$g($g($_.ecbs,1),0);$_.e3nb=$g($g($_.ecbs,2),0);$_.e1dcws=$g($g($_.ecbs,0),1);$_.e2dcws=$g($g($_.ecbs,1),1);$_.e3dcws=$g($g($_.ecbs,2),1);$_.e1ecws=$g($g($_.ecbs,0),2);$_.e2ecws=$g($g($_.ecbs,1),2);$_.e3ecws=$g($g($_.ecbs,2),2);$_.pad=$s($_.dmod);for(var _Js=0,_Jr=$_.pad.length-1;_Js<=_Jr;_Js+=1){$p($_.pad,_Js,48)}$P($_.pad,0,$_.msgbits);$_.cws=$a($_.dcws);for(var _K0=0,_Jz=$_.cws.length-1;_K0<=_Jz;_K0+=1){$_.c=_K0;$_.cwb=$G($_.pad,$_.c*8,8);$_.cw=0;for(var _K4=0;_K4<=7;_K4+=1){$_.i=_K4;$_.cw=$f($_.cw+~~Math.pow(2,8-$_.i-1)*$f($g($_.cwb,$_.i)-48))}$p($_.cws,$_.c,$_.cw)}$_.rscodes=function(){$_.rspm=$k[--$j];$_.rsgf=$k[--$j];$_.rsnc=$k[--$j];$_.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _KI=0,_KJ=$f($_.rsgf-1);_KI<_KJ;_KI++){var _KK=$k[--$j];var _KL=_KK*2;$k[$j++]=_KK;$k[$j++]=_KL;if(_KL>=$_.rsgf){var _KO=$k[--$j];$k[$j++]=$xo(_KO,$_.rspm)}}$_.rsalog=$a();$_.rslog=$a($_.rsgf);for(var _KU=1,_KT=$f($_.rsgf-1);_KU<=_KT;_KU+=1){$p($_.rslog,$g($_.rsalog,_KU),_KU)}$_.rsprod=function(){var _KY=$k[--$j];var _KZ=$k[--$j];$k[$j++]=_KZ;$k[$j++]=_KY;if(_KY!=0&&_KZ!=0){var _Kc=$g($_.rslog,$k[--$j]);var _Ki=$g($_.rsalog,$f(_Kc+$g($_.rslog,$k[--$j]))%$f($_.rsgf-1));$k[$j++]=_Ki}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Kk=0,_Kl=$_.rsnc;_Kk<_Kl;_Kk++){$k[$j++]=0}$_.coeffs=$a();for(var _Kp=1,_Ko=$_.rsnc;_Kp<=_Ko;_Kp+=1){$_.i=_Kp;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _Kw=$_.i-1;_Kw>=1;_Kw-=1){$_.j=_Kw;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _L8=$k[--$j];var _L9=$k[--$j];var _LA=$k[--$j];$p($k[--$j],_LA,$xo(_L9,_L8))}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _LI=$k[--$j];var _LJ=$k[--$j];$p($k[--$j],_LJ,_LI)}$_.nd=$_.rscws.length;$k[$j++]=Infinity;$F($_.rscws);for(var _LO=0,_LP=$_.rsnc;_LO<_LP;_LO++){$k[$j++]=0}$k[$j++]=0;$_.rscws=$a();for(var _LT=0,_LS=$_.nd-1;_LT<=_LS;_LT+=1){$_.k=$xo($g($_.rscws,_LT),$g($_.rscws,$_.nd));for(var _Lb=0,_La=$f($_.rsnc-1);_Lb<=_La;_Lb+=1){$_.j=_Lb;$k[$j++]=$_.rscws;$k[$j++]=$_.nd+$_.j;$k[$j++]=$g($_.rscws,$_.nd+$_.j+1);$k[$j++]=$_.k;$k[$j++]=$g($_.coeffs,$f($f($_.rsnc-$_.j)-1));$_.rsprod();var _Lo=$k[--$j];var _Lp=$k[--$j];var _Lq=$k[--$j];$p($k[--$j],_Lq,$xo(_Lp,_Lo))}}$k[$j++]=$G($_.rscws,0,$_.rscws.length-1)};$_.dcwsb=$a($f($f($_.e1nb+$_.e2nb)+$_.e3nb));$_.ecwsb=$a($_.dcwsb.length);$_.in=0;$_.out=0;for(var _M2=0,_M3=$_.e1nb;_M2<_M3;_M2++){$k[$j++]=$G($_.cws,$_.in,$_.e1dcws);$k[$j++]=$_.e1ecws;$k[$j++]=256;$k[$j++]=355;$_.rscodes();var _M9=$k[--$j];$p($_.dcwsb,$_.out,$G(_M9,0,$_.e1dcws));$p($_.ecwsb,$_.out,$G(_M9,$_.e1dcws,$_.e1ecws));$_.in=$f($_.in+$_.e1dcws);$_.out=$_.out+1}for(var _MN=0,_MO=$_.e2nb;_MN<_MO;_MN++){$k[$j++]=$G($_.cws,$_.in,$_.e2dcws);$k[$j++]=$_.e2ecws;$k[$j++]=256;$k[$j++]=355;$_.rscodes();var _MU=$k[--$j];$p($_.dcwsb,$_.out,$G(_MU,0,$_.e2dcws));$p($_.ecwsb,$_.out,$G(_MU,$_.e2dcws,$_.e2ecws));$_.in=$f($_.in+$_.e2dcws);$_.out=$_.out+1}for(var _Mi=0,_Mj=$_.e3nb;_Mi<_Mj;_Mi++){$k[$j++]=$G($_.cws,$_.in,$_.e3dcws);$k[$j++]=$_.e3ecws;$k[$j++]=256;$k[$j++]=355;$_.rscodes();var _Mp=$k[--$j];$p($_.dcwsb,$_.out,$G(_Mp,0,$_.e3dcws));$p($_.ecwsb,$_.out,$G(_Mp,$_.e3dcws,$_.e3ecws));$_.in=$f($_.in+$_.e3dcws);$_.out=$_.out+1}$_.cws=$a($_.ncws);$_.cw=0;for(var _N6=0,_N5=$_.dcwsb.length-1;_N6<=_N5;_N6+=1){$_.i=_N6;var _N9=$g($_.dcwsb,$_.i);$P($_.cws,$_.cw,_N9);$_.cw=_N9.length+$_.cw;var _NF=$g($_.ecwsb,$_.i);$P($_.cws,$_.cw,_NF);$_.cw=_NF.length+$_.cw}$k[$j++]=Infinity;var _NJ=$_.ncws;var _NK=12;var _NL=_NJ-1;if(_NJ-1>12){var _=_NK;_NK=_NL;_NL=_}for(var _NN=0,_NM=_NL;_NN<=_NM;_NN+=1){for(var _NQ=_NN,_NP=$_.ncws-1;_NQ<=_NP;_NQ+=13){$k[$j++]=_NQ;if(_NQ<$_.ncws){var _NU=$g($_.cws,$k[--$j]);$k[$j++]=_NU}else{$j--}}}$_.cws=$a();if($_.rbit>0){$_.pad=$a($_.cws.length+1);$P($_.pad,0,$_.cws);$p($_.pad,$_.pad.length-1,0);$_.cws=$_.pad}$k[$j++]=Infinity;for(var _Ng=0,_Nh=$_.size*$_.size;_Ng<_Nh;_Ng++){$k[$j++]=-1}$_.pixs=$a();$_.qmv=function(){var _Nk=$k[--$j];var _Nl=$k[--$j];$k[$j++]=$f(_Nl+_Nk*$_.size)};if($_.alnn!=0){$_.trmv=function(){var _No=$k[--$j];var _Nq=$k[--$j];$k[$j++]=$f($f($f(_No*$_.size+$_.size)-1)-_Nq)};$_.aplot=function(){var _Nr=$k[--$j];var _Ns=$k[--$j];var _Nt=$k[--$j];$k[$j++]=_Nr;$k[$j++]=_Nt;$k[$j++]=_Ns;$k[$j++]=_Nr;$k[$j++]=_Ns;$k[$j++]=_Nt;$_.trmv();var _Nv=$k[--$j];$p($_.pixs,_Nv,$k[--$j]);$_.trmv();var _Ny=$k[--$j];$p($_.pixs,_Ny,$k[--$j])};$_.i=0;$_.stag=0;for(;;){if($_.i>=$_.size){break}for(var _O4=0,_O3=$f($_.size-1);_O4<=_O3;_O4+=1){$_.j=_O4;if($f($_.j+$_.alnr)<$_.size){$k[$j++]=(~~($_.j/$_.alnk)+$_.stag)%2==0&&!($_.i==0&&$_.j<$_.alnk)||$_.j%$_.alnk==0}else{$k[$j++]=$f($_.alnn+$_.stag)%2==0}if($k[--$j]){$k[$j++]=$_.j;$k[$j++]=$_.i;$k[$j++]=1;$_.aplot();var _OL=$_.j;var _OM=$_.i;$k[$j++]=_OL+1;$k[$j++]=_OM+1;if(_OM+1<$_.size&&_OL+1<$_.size){$k[$j++]=0;$_.aplot()}else{$j-=2}}}if($f($_.i+$_.alnr)==$_.size){$_.i=$f($f($_.i+$_.alnr)-1)}else{$_.i=$f($_.i+$_.alnk)}$_.stag=1-$_.stag}for(var _Ob=$_.alnk,_Oc=$_.alnk,_Oa=$f($_.size-2);_Oc<0?_Ob>=_Oa:_Ob<=_Oa;_Ob+=_Oc){$_.i=_Ob;if(~~($_.i/$_.alnk)%2!=0){$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i-1;$_.trmv();var _Oh=$k[--$j];$p($k[--$j],_Oh,0);$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i+1;$_.trmv();var _Ol=$k[--$j];$p($k[--$j],_Ol,0);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i-1;$_.trmv();var _Op=$k[--$j];$p($k[--$j],_Op,0);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i;$_.trmv();var _Ot=$k[--$j];$p($k[--$j],_Ot,0);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i+1;$_.trmv();var _Ox=$k[--$j];$p($k[--$j],_Ox,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=0;$_.trmv();var _P1=$k[--$j];$p($k[--$j],_P1,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=0;$_.trmv();var _P5=$k[--$j];$p($k[--$j],_P5,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=1;$_.trmv();var _P9=$k[--$j];$p($k[--$j],_P9,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=1;$_.trmv();var _PD=$k[--$j];$p($k[--$j],_PD,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=1;$_.trmv();var _PH=$k[--$j];$p($k[--$j],_PH,0)}$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-1);$k[$j++]=$_.i-1;$_.trmv();var _PM=$k[--$j];if($g($k[--$j],_PM)!=1){$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-1);$k[$j++]=$_.i-1;$_.trmv();var _PS=$k[--$j];$p($k[--$j],_PS,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-2);$k[$j++]=$_.i-1;$_.trmv();var _PX=$k[--$j];$p($k[--$j],_PX,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-2);$k[$j++]=$_.i;$_.trmv();var _Pc=$k[--$j];$p($k[--$j],_Pc,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-2);$k[$j++]=$_.i+1;$_.trmv();var _Ph=$k[--$j];$p($k[--$j],_Ph,0);$k[$j++]=$_.pixs;$k[$j++]=$f($_.size-1);$k[$j++]=$_.i+1;$_.trmv();var _Pm=$k[--$j];$p($k[--$j],_Pm,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=$f($_.size-1);$_.trmv();var _Pr=$k[--$j];$p($k[--$j],_Pr,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i-1;$k[$j++]=$f($_.size-2);$_.trmv();var _Pw=$k[--$j];$p($k[--$j],_Pw,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$f($_.size-2);$_.trmv();var _Q1=$k[--$j];$p($k[--$j],_Q1,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=$f($_.size-2);$_.trmv();var _Q6=$k[--$j];$p($k[--$j],_Q6,0);$k[$j++]=$_.pixs;$k[$j++]=$_.i+1;$k[$j++]=$f($_.size-1);$_.trmv();var _QB=$k[--$j];$p($k[--$j],_QB,0)}}}if(!bwipp_hanxin.__24612__){$_=Object.create($_);$_.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,0,0]),$a([1,0,1,1,1,1,1,0]),$a([1,0,1,0,0,0,0,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$_.fpat2=$a([$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([0,0,0,0,1,0,1,0]),$a([1,1,1,1,1,0,1,0]),$a([0,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hanxin.$ctx[id]=$_[id]);bwipp_hanxin.__24612__=1;$_=Object.getPrototypeOf($_)}for(var _QY=0,_QX=$_.fpat.length-1;_QY<=_QX;_QY+=1){$_.y=_QY;for(var _Qc=0,_Qb=$g($_.fpat,0).length-1;_Qc<=_Qb;_Qc+=1){$_.x=_Qc;$_.fpb=$g($g($_.fpat,$_.y),$_.x);$_.fpb2=$g($g($_.fpat2,$_.y),$_.x);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _Qr=$k[--$j];$p($k[--$j],_Qr,$_.fpb);$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.size-$_.x)-1);$k[$j++]=$_.y;$_.qmv();var _Qy=$k[--$j];$p($k[--$j],_Qy,$_.fpb);$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.size-$_.x)-1);$k[$j++]=$f($f($_.size-$_.y)-1);$_.qmv();var _R6=$k[--$j];$p($k[--$j],_R6,$_.fpb);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$f($f($_.size-$_.y)-1);$_.qmv();var _RD=$k[--$j];$p($k[--$j],_RD,$_.fpb2)}}$_.functionmap=$a([$a([$a([0,8]),$a([$f($_.size-1),$f($_.size-9)])]),$a([$a([1,8]),$a([$f($_.size-2),$f($_.size-9)])]),$a([$a([2,8]),$a([$f($_.size-3),$f($_.size-9)])]),$a([$a([3,8]),$a([$f($_.size-4),$f($_.size-9)])]),$a([$a([4,8]),$a([$f($_.size-5),$f($_.size-9)])]),$a([$a([5,8]),$a([$f($_.size-6),$f($_.size-9)])]),$a([$a([6,8]),$a([$f($_.size-7),$f($_.size-9)])]),$a([$a([7,8]),$a([$f($_.size-8),$f($_.size-9)])]),$a([$a([8,8]),$a([$f($_.size-9),$f($_.size-9)])]),$a([$a([8,7]),$a([$f($_.size-9),$f($_.size-8)])]),$a([$a([8,6]),$a([$f($_.size-9),$f($_.size-7)])]),$a([$a([8,5]),$a([$f($_.size-9),$f($_.size-6)])]),$a([$a([8,4]),$a([$f($_.size-9),$f($_.size-5)])]),$a([$a([8,3]),$a([$f($_.size-9),$f($_.size-4)])]),$a([$a([8,2]),$a([$f($_.size-9),$f($_.size-3)])]),$a([$a([8,1]),$a([$f($_.size-9),$f($_.size-2)])]),$a([$a([8,0]),$a([$f($_.size-9),$f($_.size-1)])]),$a([$a([$f($_.size-9),0]),$a([8,$f($_.size-1)])]),$a([$a([$f($_.size-9),1]),$a([8,$f($_.size-2)])]),$a([$a([$f($_.size-9),2]),$a([8,$f($_.size-3)])]),$a([$a([$f($_.size-9),3]),$a([8,$f($_.size-4)])]),$a([$a([$f($_.size-9),4]),$a([8,$f($_.size-5)])]),$a([$a([$f($_.size-9),5]),$a([8,$f($_.size-6)])]),$a([$a([$f($_.size-9),6]),$a([8,$f($_.size-7)])]),$a([$a([$f($_.size-9),7]),$a([8,$f($_.size-8)])]),$a([$a([$f($_.size-9),8]),$a([8,$f($_.size-9)])]),$a([$a([$f($_.size-8),8]),$a([7,$f($_.size-9)])]),$a([$a([$f($_.size-7),8]),$a([6,$f($_.size-9)])]),$a([$a([$f($_.size-6),8]),$a([5,$f($_.size-9)])]),$a([$a([$f($_.size-5),8]),$a([4,$f($_.size-9)])]),$a([$a([$f($_.size-4),8]),$a([3,$f($_.size-9)])]),$a([$a([$f($_.size-3),8]),$a([2,$f($_.size-9)])]),$a([$a([$f($_.size-2),8]),$a([1,$f($_.size-9)])]),$a([$a([$f($_.size-1),8]),$a([0,$f($_.size-9)])])]);var _U0=$_.functionmap;for(var _U1=0,_U2=_U0.length;_U1<_U2;_U1++){$F($g(_U0,_U1),function(){$F($k[--$j]);$_.qmv();$p($_.pixs,$k[--$j],0)})}var _UD=$a([function(){$j-=2;$k[$j++]=1},function(){var _U7=$k[--$j];var _U8=$k[--$j];$k[$j++]=$f(_U8+_U7)%2},function(){var _U9=$k[--$j];var _UA=$k[--$j];$k[$j++]=$f($f(_U9+_UA)%3+_UA%3)%2},function(){var _UB=$k[--$j];var _UC=$k[--$j];$k[$j++]=$f(_UC%_UB+$f(_UB%_UC+$f(_UB%3+_UC%3)))%2}]);$_.maskfuncs=_UD;if($_.mask!=-1){$_.maskfuncs=$a([$g($_.maskfuncs,$_.mask-1)]);$_.bestmaskval=$_.mask-1}$_.masks=$a($_.maskfuncs.length);for(var _UO=0,_UN=$_.masks.length-1;_UO<=_UN;_UO+=1){$_.m=_UO;$_.mask=$a($_.size*$_.size);for(var _UU=0,_UT=$f($_.size-1);_UU<=_UT;_UU+=1){$_.j=_UU;for(var _UX=0,_UW=$f($_.size-1);_UX<=_UW;_UX+=1){$_.i=_UX;$k[$j++]=$_.i+1;$k[$j++]=$_.j+1;if($g($_.maskfuncs,$_.m)()===true){break}var _Ud=$k[--$j];$k[$j++]=_Ud==0;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _Uh=$k[--$j];var _Uj=$g($k[--$j],_Uh);var _Uk=$k[--$j];var _Ul=_Uk&&_Uj==-1?1:0;$k[$j++]=_Ul;$k[$j++]=$_.mask;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _Up=$k[--$j];var _Uq=$k[--$j];$p(_Uq,_Up,$k[--$j])}}$p($_.masks,$_.m,$_.mask)}$_.posx=0;$_.posy=0;$_.num=0;for(;;){if($_.posy==$_.size){break}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _V0=$k[--$j];if($g($k[--$j],_V0)==-1){var _V5=$g($_.cws,~~($_.num/8));var _V7=-(7-$_.num%8);$k[$j++]=(_V7<0?_V5>>>-_V7:_V5<<_V7)&1;$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.qmv();var _VB=$k[--$j];var _VC=$k[--$j];$p(_VC,_VB,$k[--$j]);$_.num=$_.num+1}$_.posx=$_.posx+1;if($_.posx==$_.size){$_.posx=0;$_.posy=$_.posy+1}}$_.evalfulln1n3=function(){$_.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($_.scrle,function(){var _VL=$k[--$j];$k[$j++]=_VL;if(_VL>=3){var _VM=$k[--$j];var _VO=$f($k[--$j]+_VM*4);$k[$j++]=_VO;$k[$j++]=_VO}$j--});var _VP=$k[--$j];$_[$k[--$j]]=_VP;$_.scr3=0;for(var _VT=5,_VS=$_.scrle.length-1;_VT<=_VS;_VT+=2){$_.j=_VT;if($g($_.scrle,$_.j)%3==0){$_.fact=~~($g($_.scrle,$_.j)/3);var _Vc=$G($_.scrle,$_.j-4,4);for(var _Vd=0,_Ve=_Vc.length;_Vd<_Ve;_Vd++){$k[$j++]=$g(_Vc,_Vd)==$_.fact}var _Vh=$k[--$j];var _Vi=$k[--$j];var _Vj=$k[--$j];var _Vk=$k[--$j];if(_Vk&&(_Vj&&(_Vi&&_Vh))){if($_.j==5||$_.j+2>=$_.scrle.length){$_.scr3=$_.scr3+50}else{if($g($_.scrle,$_.j-5)>=3||$g($_.scrle,$_.j+1)>=3){$_.scr3=$_.scr3+50}}}}}for(var _Vy=1,_Vx=$_.scrle.length-5;_Vy<=_Vx;_Vy+=2){$_.j=_Vy;if($g($_.scrle,$_.j)%3==0){$_.fact=~~($g($_.scrle,$_.j)/3);var _W7=$G($_.scrle,$_.j+1,4);for(var _W8=0,_W9=_W7.length;_W8<_W9;_W8++){$k[$j++]=$g(_W7,_W8)==$_.fact}var _WC=$k[--$j];var _WD=$k[--$j];var _WE=$k[--$j];var _WF=$k[--$j];if(_WF&&(_WE&&(_WD&&_WC))){if($_.j==1||$_.j+6>=$_.scrle.length){$_.scr3=$_.scr3+50}else{if($g($_.scrle,$_.j-1)>=3||$g($_.scrle,$_.j+5)>=3){$_.scr3=$_.scr3+50}}}}}$k[$j++]=$_.scr1;$k[$j++]=$_.scr3};$_.evalfull=function(){$_.sym=$k[--$j];$_.n1=0;$_.n3=0;$_.rle=$a($f($_.size+1));$_.lastpairs=$a($_.size);$_.thispairs=$a($_.size);$_.sizeadd1=$f($_.size+1);for(var _Wd=0,_Wc=$f($_.size-1);_Wd<=_Wc;_Wd+=1){$_.i=_Wd;$k[$j++]=Infinity;var _Wf=$_.size;$k[$j++]=0;$k[$j++]=0;for(var _Wh=$_.i,_Wi=_Wf,_Wg=$f(_Wf*_Wf-1);_Wi<0?_Wh>=_Wg:_Wh<=_Wg;_Wh+=_Wi){var _Wk=$g($_.sym,_Wh);var _Wl=$k[--$j];$k[$j++]=_Wk;if($eq(_Wl,_Wk)){var _Wm=$k[--$j];var _Wn=$k[--$j];$k[$j++]=$f(_Wn+1);$k[$j++]=_Wm}else{var _Wo=$k[--$j];$k[$j++]=1;$k[$j++]=_Wo}}$j--;var _Wq=$m()+2;$as($G($_.rle,0,_Wq-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;$_.symrow=$G($_.sym,$_.i*$_.size,$_.size);$k[$j++]=Infinity;var _X1=$_.symrow;$k[$j++]=0;$k[$j++]=0;for(var _X2=0,_X3=_X1.length;_X2<_X3;_X2++){var _X4=$g(_X1,_X2);var _X5=$k[--$j];$k[$j++]=_X4;if($eq(_X5,_X4)){var _X6=$k[--$j];var _X7=$k[--$j];$k[$j++]=$f(_X7+1);$k[$j++]=_X6}else{var _X8=$k[--$j];$k[$j++]=1;$k[$j++]=_X8}}$j--;var _XA=$m()+2;$as($G($_.rle,0,_XA-2));$_.evalfulln1n3();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--}$k[$j++]=$f($_.n1+$_.n3)};$_.bestscore=999999999;for(var _XK=0,_XJ=$_.masks.length-1;_XK<=_XJ;_XK+=1){$_.m=_XK;$_.masksym=$a($_.size*$_.size);for(var _XR=0,_XQ=$f($_.size*$_.size-1);_XR<=_XQ;_XR+=1){$_.i=_XR;$p($_.masksym,$_.i,$xo($g($_.pixs,$_.i),$g($g($_.masks,$_.m),$_.i)))}if($_.masks.length!=1){$k[$j++]=$_.masksym;$_.evalfull();$_.score=$k[--$j];if($_.score<$_.bestscore){$_.bestsym=$_.masksym;$_.bestmaskval=$_.m;$_.bestscore=$_.score}}else{$_.bestsym=$_.masksym}}$_.pixs=$_.bestsym;$_.funval=((~~($f($_.size-21)/2)+20)*4+$_.eclval)*4+$_.bestmaskval;$k[$j++]=$a([($_.funval&3840)>>>8,($_.funval&240)>>>4,$_.funval&15]);$k[$j++]=4;$k[$j++]=16;$k[$j++]=19;$_.rscodes();$_.funvals=$k[--$j];$k[$j++]=Infinity;$F($_.funvals,function(){$k[$j++]=4;$_.tobin();$F($k[--$j],function(){var _Xw=$k[--$j];$k[$j++]=$f(_Xw-48)})});$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$_.funbits=$a();for(var _Y0=0,_Xz=$_.functionmap.length-1;_Y0<=_Xz;_Y0+=1){$_.i=_Y0;$F($g($_.functionmap,$_.i),function(){var _Y5=$k[--$j];$k[$j++]=$_.pixs;$q(_Y5);$_.qmv();var _Y9=$k[--$j];$p($k[--$j],_Y9,$g($_.funbits,$_.i))})}var _YH=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.size],["pixy",$_.size],["height",$_.size*2/72],["width",$_.size*2/72],["borderleft",3],["borderright",3],["bordertop",3],["borderbottom",3],["opt",$_.options]]);$k[$j++]=_YH;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_dotcode(){$_=Object.create($_);$_.dontdraw=false;$_.rows=-1;$_.columns=-1;$_.ratio=-1;$_.parse=false;$_.parsefnc=false;$_.raw=false;$_.fast=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.rows!=-1){if($_.rows<5){$k[$j++]="bwipp.dotcodeBadRows#24881";$k[$j++]="There must be at least 5 rows";bwipp_raiseerror()}}if($_.columns!=-1){if($_.columns<5){$k[$j++]="bwipp.dotcodeBadColumns#24887";$k[$j++]="There must be at least 5 columns";bwipp_raiseerror()}}if($_.rows!=-1&&$_.columns!=-1&&($_.rows+$_.columns)%2!=1){$k[$j++]="bwipp.dotcodeRowsColumnsBadParity#24892";$k[$j++]="Sum of rows and columns must be odd";bwipp_raiseerror()}if($_.ratio==-1&&$_.rows==-1&&$_.columns==-1){$_.ratio=3/2}if($_.ratio!=-1){if($_.ratio<=0){$k[$j++]="bwipp.dotcodeRatio#24901";$k[$j++]="The ratio must be greater than 0";bwipp_raiseerror()}}if($_.mask!=-1){if($_.mask<0||$_.mask>3){$k[$j++]="bwipp.dotcodeBadMask#24907";$k[$j++]="Valid mask values are 0 to 3";bwipp_raiseerror()}}bwipp_loadctx(bwipp_dotcode);if(!bwipp_dotcode.__24924__){$_=Object.create($_);$_.laa=-1;$_.lab=-2;$_.lac=-3;$_.bin=-4;$_.sfa=-5;$_.sfb=-6;$_.sb2=-7;$_.sb3=-8;$_.sb4=-9;$_.sb5=-10;$_.sb6=-11;$_.sfc=-12;$_.sc2=-13;$_.sc3=-14;$_.sc4=-15;$_.sc5=-16;$_.sc6=-17;$_.sc7=-18;$_.bsa=-19;$_.bsb=-20;$_.tma=-21;$_.tmb=-22;$_.tmc=-23;$_.tms=-24;$_.fn1=-25;$_.fn2=-26;$_.fn3=-27;$_.crl=-28;$_.aim=-29;$_.m05=-30;$_.m06=-31;$_.m12=-32;$_.mac=-33;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__24924__=1;$_=Object.getPrototypeOf($_)}var _N=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["eci",true],["FNC1",$_.fn1],["FNC3",$_.fn3]]);$_.fncvals=_N;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _Q=$k[--$j];$_[$k[--$j]]=_Q;$_.msglen=$_.msg.length;var _T=$_.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _U=0,_V=_T.length;_U<_V;_U++){if($g(_T,_U)<=-1e6){var _X=$k[--$j];$k[$j++]=$f(_X+1)}}var _Y=$k[--$j];$_[$k[--$j]]=_Y;$_.msgtmp=$a($f($_.msg.length+$_.numecis*6));$_.j=0;for(var _f=0,_e=$_.msg.length-1;_f<=_e;_f+=1){var _h=$g($_.msg,_f);$k[$j++]=_h;if(_h<=-1e6){var _l=$G($R($s(7),-$k[--$j],10),1,6);for(var _m=0,_n=_l.length;_m<_n;_m++){$k[$j++]=$g(_l,_m)}$as($a(6));$P($_.msgtmp,$_.j+1,$k[--$j]);$p($_.msgtmp,$_.j,$_.fn2);$_.j=$_.j+7}else{$p($_.msgtmp,$_.j,$k[--$j]);$_.j=$_.j+1}}$_.msg=$_.msgtmp;$_.msglen=$_.msg.length;if(!bwipp_dotcode.__25023__){$_=Object.create($_);$_.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$_.sfb,$_.crl,"96"]),$a([$_.sb2,9,"97"]),$a([$_.sb3,28,"98"]),$a([$_.sb4,29,"99"]),$a([$_.sb5,30,$_.aim]),$a([$_.sb6,$_.sfa,$_.laa]),$a([$_.lab,$_.laa,$_.sfb]),$a([$_.sc2,$_.sc2,$_.sb2]),$a([$_.sc3,$_.sc3,$_.sb3]),$a([$_.sc4,$_.sc4,$_.sb4]),$a([$_.lac,$_.lac,$_.lab]),$a([$_.fn1,$_.fn1,$_.fn1]),$a([$_.fn2,$_.fn2,$_.fn2]),$a([$_.fn3,$_.fn3,$_.fn3]),$a([$_.bsa,$_.bsa,$_.bsa]),$a([$_.bsb,$_.bsb,$_.bsb]),$a([$_.bin,$_.bin,$_.bin])]);$_.charvals=$a([new Map,new Map,new Map]);for(var _3d=0,_3c=$_.charmaps.length-1;_3d<=_3c;_3d+=1){$_.i=_3d;$_.encs=$g($_.charmaps,$_.i);for(var _3h=0;_3h<=2;_3h+=1){$_.j=_3h;var _3k=$g($_.encs,$_.j);$k[$j++]=_3k;if($eq($t(_3k),"stringtype")){var _3n=$g($k[--$j],0);$k[$j++]=_3n}$p($g($_.charvals,$_.j),$k[--$j],$_.i)}}$_.Avals=$g($_.charvals,0);$_.Bvals=$g($_.charvals,1);$p($_.Bvals,$_.m05,97);$p($_.Bvals,$_.m06,98);$p($_.Bvals,$_.m12,99);$p($_.Bvals,$_.mac,100);$_.Cvals=$g($_.charvals,2);$k[$j++]=Infinity;var _4H=$a([$_.sc2,$_.sc3,$_.sc4,$_.sc5,$_.sc6,$_.sc7,$_.tma,$_.tmb,$_.tmc,$_.tms]);$k[$j++]=102;for(var _4I=0,_4J=_4H.length;_4I<_4J;_4I++){var _4M=$f($k[--$j]+1);$k[$j++]=$g(_4H,_4I);$k[$j++]=_4M;$k[$j++]=_4M}$j--;$_.BINvals=$d();$_.A=0;$_.B=1;$_.C=2;$_.BIN=3;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__25023__=1;$_=Object.getPrototypeOf($_)}$k[$j++]=Infinity;for(var _4Q=0,_4R=$_.msglen+1;_4Q<_4R;_4Q++){$k[$j++]=0}$_.nDigits=$a();$k[$j++]=Infinity;for(var _4U=0,_4V=$_.msglen+1;_4U<_4V;_4U++){$k[$j++]=false}$_.SeventeenTen=$a();$k[$j++]=Infinity;for(var _4Y=0,_4Z=$_.msglen+1;_4Y<_4Z;_4Y++){$k[$j++]=false}$_.ECI=$a();$k[$j++]=Infinity;for(var _4c=0,_4d=$_.msglen+1;_4c<_4d;_4c++){$k[$j++]=false}$_.DatumA=$a();$k[$j++]=Infinity;for(var _4g=0,_4h=$_.msglen+1;_4g<_4h;_4g++){$k[$j++]=false}$_.DatumB=$a();$k[$j++]=Infinity;for(var _4k=0,_4l=$_.msglen+1;_4k<_4l;_4k++){$k[$j++]=false}$_.DatumC=$a();$k[$j++]=Infinity;for(var _4o=0,_4p=$_.msglen+8;_4o<_4p;_4o++){$k[$j++]=false}$_.Binary=$a();$k[$j++]=Infinity;for(var _4s=0,_4t=$_.msglen+1;_4s<_4t;_4s++){$k[$j++]=0}$_.AheadC=$a();$k[$j++]=Infinity;for(var _4w=0,_4x=$_.msglen+1;_4w<_4x;_4w++){$k[$j++]=0}$_.TryC=$a();$k[$j++]=Infinity;for(var _50=0,_51=$_.msglen+1;_50<_51;_50++){$k[$j++]=0}$_.AheadA=$a();$k[$j++]=Infinity;for(var _54=0,_55=$_.msglen+1;_54<_55;_54++){$k[$j++]=0}$_.AheadB=$a();$k[$j++]=Infinity;for(var _58=0,_59=$_.msglen+1;_58<_59;_58++){$k[$j++]=0}$_.UntilEndSeg=$a();for(var _5C=$_.msglen-1;_5C>=0;_5C-=1){$_.i=_5C;$_.barchar=$g($_.msg,$_.i);if($_.barchar>=48&&$_.barchar<=57){$p($_.nDigits,$_.i,$f($g($_.nDigits,$_.i+1)+1))}var _5P=$g($_.Avals,$_.barchar)!==undefined;if(_5P){$p($_.DatumA,$_.i,true)}var _5U=$g($_.Bvals,$_.barchar)!==undefined;if(_5U){$p($_.DatumB,$_.i,true)}$_.CRLF=false;if($_.barchar==13&&$_.i<$_.msglen-1){if($g($_.msg,$_.i+1)==10){$_.CRLF=true}}if($_.CRLF){$p($_.DatumB,$_.i,true)}if($g($_.nDigits,$_.i)>=2){$p($_.DatumC,$_.i,true)}if($_.barchar<0){$p($_.DatumC,$_.i,true)}if($_.barchar>=128){$p($_.Binary,$_.i,true)}if($g($_.nDigits,$_.i)>=10){$k[$j++]=Infinity;$q($G($_.msg,$_.i,10));for(var _5x=0,_5y=1;_5x<_5y;_5x++){if($k[--$j]!=48){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$j-=6;if($k[--$j]!=55){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$k[$j++]=true}$p($_.SeventeenTen,$_.i,$k[--$j]);$l()}if($g($_.nDigits,$_.i+1)>=6&&$g($_.msg,$_.i)==$_.fn2){$p($_.ECI,$_.i,true)}if($_.barchar<0&&$_.barchar!=$_.fn3){$p($_.AheadC,$_.i,$f($g($_.AheadC,$_.i+1)+1))}else{if($g($_.nDigits,$_.i)<=1){$p($_.AheadC,$_.i,0)}else{$p($_.AheadC,$_.i,$f($g($_.AheadC,$_.i+2)+1))}}if($g($_.nDigits,$_.i)>0&&$gt($g($_.AheadC,$_.i),$g($_.AheadC,$_.i+1))){$p($_.TryC,$_.i,$g($_.AheadC,$_.i))}if($g($_.DatumA,$_.i)&&$g($_.TryC,$_.i)<2&&$_.barchar!=$_.fn3){$p($_.AheadA,$_.i,$f($g($_.AheadA,$_.i+1)+1))}if($g($_.DatumB,$_.i)&&$g($_.TryC,$_.i)<2&&$_.barchar!=$_.fn3){$k[$j++]=$_.AheadB;$k[$j++]=$_.i;$k[$j++]=$_.AheadB;$k[$j++]=$_.i+1;if($_.CRLF){var _7B=$k[--$j];$k[$j++]=$f(_7B+1)}var _7C=$k[--$j];var _7E=$g($k[--$j],_7C);var _7F=$k[--$j];$p($k[--$j],_7F,$f(_7E+1))}if($_.barchar!=$_.fn3){$p($_.UntilEndSeg,$_.i,$f($g($_.UntilEndSeg,$_.i+1)+1))}}$_.addtocws=function(){var _7O=$k[--$j];$P($_.cws,$_.j,_7O);$_.j=_7O.length+$_.j};$_.base259to103=function(){$_.in=$k[--$j];$_.inlen=$_.in.length;$k[$j++]=Infinity;for(var _7V=0,_7W=5-$_.inlen;_7V<_7W;_7V++){$k[$j++]=0}$q($_.in);$_.in=$a();$_.out=$a(6);$k[$j++]=Infinity;$q($G($_.in,0,2));$_.msbs=$a();$k[$j++]=Infinity;$q($_.msbs);var _7e=$k[--$j];var _7f=$k[--$j];$k[$j++]=$f(_7e+_7f*259);for(var _7g=0,_7h=2;_7g<_7h;_7g++){var _7i=$k[--$j];$k[$j++]=_7i%103;$k[$j++]=~~(_7i/103)}$_.mscs=$a();$k[$j++]=Infinity;$q($G($_.in,2,3));$_.lsbs=$a();$k[$j++]=Infinity;$q($_.lsbs);var _7o=$k[--$j];var _7p=$k[--$j];var _7q=$k[--$j];$k[$j++]=$f($f(_7o+_7p*259)+_7q*67081);for(var _7r=0,_7s=3;_7r<_7s;_7r++){var _7t=$k[--$j];$k[$j++]=_7t%103;$k[$j++]=~~(_7t/103)}$_.lscs=$a();var _7w=$g($_.lscs,0);var _7y=$g($_.mscs,0);$p($_.out,5,$f(_7w+_7y*42)%103);var _81=$g($_.lscs,1);var _83=$g($_.mscs,0);var _85=$g($_.mscs,1);$p($_.out,4,$f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)%103);var _88=$g($_.lscs,2);var _8A=$g($_.mscs,0);var _8C=$g($_.mscs,1);var _8E=$g($_.mscs,2);$p($_.out,3,$f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)%103);var _8H=$g($_.lscs,3);var _8J=$g($_.mscs,0);var _8L=$g($_.mscs,1);var _8N=$g($_.mscs,2);$p($_.out,2,$f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)/103)+_8H)+_8J*15)+_8L*92)+_8N*68)%103);var _8Q=$g($_.mscs,1);var _8S=$g($_.mscs,2);$p($_.out,1,$f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)/103)+_8H)+_8J*15)+_8L*92)+_8N*68)/103)+_8Q*15)+_8S*92)%103);$p($_.out,0,$f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7w+_7y*42)/103)+_81)+_83*68)+_85*42)/103)+_88)+_8A*92)+_8C*68)+_8E*42)/103)+_8H)+_8J*15)+_8L*92)+_8N*68)/103)+_8Q*15)+_8S*92)/103)+$g($_.mscs,2)*15)%103);$k[$j++]=$G($_.out,6-$_.inlen-1,$_.inlen+1)};$_.finaliseBIN=function(){if($_.bpos!=0){$k[$j++]=$G($_.bvals,0,$_.bpos);$_.base259to103();$q($k[--$j]);$_.bpos=0}};$_.addtobin=function(){$p($_.bvals,$_.bpos,$k[--$j]);$_.bpos=$_.bpos+1;if($_.bpos==5){$_.finaliseBIN()}};$_.ECIabc=function(){var _8n=$G($_.msg,$_.i+1,6);$k[$j++]=0;for(var _8o=0,_8p=_8n.length;_8o<_8p;_8o++){var _8r=$k[--$j];$k[$j++]=$f(_8r+$f($g(_8n,_8o)-48))*10}var _8t=~~($k[--$j]/10);$k[$j++]=_8t;if(_8t>=40){var _8v=$f($k[--$j]-40);var _8w=_8v%12769;$k[$j++]=~~(_8v/12769)+40;$k[$j++]=~~(_8w/113);$k[$j++]=_8w%113}};$_.ECIbin=function(){$k[$j++]=Infinity;var _8z=$G($_.msg,$_.i+1,6);$k[$j++]=0;for(var _90=0,_91=_8z.length;_90<_91;_90++){var _93=$k[--$j];$k[$j++]=$f(_93+$f($g(_8z,_90)-48))*10}var _95=~~($k[--$j]/10);$k[$j++]=_95;if(_95>=65536){var _96=$k[--$j];var _97=_96%65536;$k[$j++]=258;$k[$j++]=~~(_96/65536);$k[$j++]=~~(_97/256);$k[$j++]=_97%256}else{var _98=$k[--$j];$k[$j++]=_98;if(_98>=256){var _99=$k[--$j];$k[$j++]=257;$k[$j++]=~~(_99/256);$k[$j++]=_99%256}else{var _9A=$k[--$j];$k[$j++]=256;$k[$j++]=_9A}}var _9B=$a();for(var _9C=0,_9D=_9B.length;_9C<_9D;_9C++){$k[$j++]=$g(_9B,_9C);$_.addtobin()}};$_.encC=function(){for(var _9F=0,_9G=1;_9F<_9G;_9F++){if($_.i==$_.segstart){for(var _9J=0,_9K=1;_9J<_9K;_9J++){if($_.i>$f($_.segend-7)){$k[$j++]=0;break}if($g($_.msg,$_.segstart)!=91){$k[$j++]=0;break}if($g($_.msg,$_.segstart+1)!=41){$k[$j++]=0;break}if($g($_.msg,$_.segstart+2)!=62){$k[$j++]=0;break}if($g($_.msg,$_.segstart+3)!=30){$k[$j++]=0;break}var _9b=$g($_.msg,$_.segstart+4);if(_9b<48||_9b>57){$k[$j++]=0;break}var _9e=$g($_.msg,$_.segstart+5);if(_9e<48||_9e>57){$k[$j++]=0;break}if($g($_.msg,$f($_.segend-1))!=4){$k[$j++]=0;break}var _9o=$f($f($g($_.msg,$_.segstart+4)-48)*10+$f($g($_.msg,$_.segstart+5)-48));$k[$j++]=_9o;if(_9o!=5&&(_9o!=6&&_9o!=12)){$j--;$k[$j++]=$_.mac;break}if($g($_.msg,$_.segstart+6)!=29){$j--;$k[$j++]=0;break}if($g($_.msg,$f($_.segend-2))!=30){$j--;$k[$j++]=0;break}var _9w=$k[--$j];$k[$j++]=_9w;if(_9w==5){$j--;$k[$j++]=$_.m05;break}if($k[--$j]==6){$k[$j++]=$_.m06;break}$k[$j++]=$_.m12;break}$_.inmac=$k[--$j];if($_.inmac!=0){$k[$j++]=$a([$g($_.Cvals,$_.lab)]);$_.addtocws();$_.mode=$_.B;$k[$j++]=$a([$g($_.Bvals,$_.inmac)]);$_.addtocws();if($_.inmac==$_.mac){$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.segstart+4))]);$_.addtocws();$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.segstart+5))]);$_.addtocws();$_.i=$_.i+6}else{$_.i=$_.i+7}break}}if($_.i==$_.segstart){if($g($_.nDigits,$_.i)>=2){$k[$j++]=$a([$g($_.Cvals,$_.fn1)]);$_.addtocws()}if($g($_.msg,$_.i)==$_.fn1&&$g($_.nDigits,$_.i+1)>=2){$_.i=$_.i+1}}if($g($_.SeventeenTen,$_.i)){$k[$j++]=$a([$g($_.Cvals,$_.aim),$f($f($g($_.msg,$_.i+2)-48)*10+$f($g($_.msg,$_.i+3)-48)),$f($f($g($_.msg,$_.i+4)-48)*10+$f($g($_.msg,$_.i+5)-48)),$f($f($g($_.msg,$_.i+6)-48)*10+$f($g($_.msg,$_.i+7)-48))]);$_.addtocws();$_.i=$_.i+10;break}if($g($_.DatumC,$_.i)){var _BE=$g($_.msg,$_.i);if(_BE==$_.fn1||(_BE==$_.fn2||_BE==$_.fn3)){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();if($g($_.ECI,$_.i)){$k[$j++]=Infinity;$_.ECIabc();var _BR=$a();$k[$j++]=_BR;$_.addtocws();$_.i=$_.i+7;break}if($g($_.msg,$_.i)==$_.fn3&&$_.segstart!=$_.i){$_.i=$_.i+1;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}$_.i=$_.i+1;break}$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2;break}if($g($_.Binary,$_.i)){if($g($_.nDigits,$_.i+1)>0){if($g($_.msg,$_.i)<160){$k[$j++]=$a([$g($_.Cvals,$_.bsa),$g($_.Avals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}else{$k[$j++]=$a([$g($_.Cvals,$_.bsb),$g($_.Bvals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Cvals,$_.bin)]);$_.addtocws();$_.mode=$_.BIN;break}$_.m=$g($_.AheadA,$_.i);$_.n=$g($_.AheadB,$_.i);if($gt($_.m,$_.n)){$k[$j++]=$a([$g($_.Cvals,$_.laa)]);$_.addtocws();$_.mode=$_.A;break}if($_.i==$_.segstart){var _Cc=$g($_.msg,$_.i);if(_Cc==9||(_Cc==28||(_Cc==29||_Cc==30))){$k[$j++]=$a([$g($_.Cvals,$_.laa)]);$_.addtocws();$_.mode=$_.A;break}}if($_.n>4){$k[$j++]=$a([$g($_.Cvals,$_.lab)]);$_.addtocws();$_.mode=$_.B;break}$k[$j++]=$a([$g($_.Cvals,$g($a([$_.sfb,$_.sb2,$_.sb3,$_.sb4]),$f($_.n-1)))]);$_.addtocws();for(var _Cz=0,_D0=$_.n;_Cz<_D0;_Cz++){if($g($_.msg,$_.i)==13){$k[$j++]=$a([$g($_.Bvals,$_.crl)]);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}}break}};$_.encB=function(){for(var _DG=0,_DH=1;_DG<_DH;_DG++){$_.n=$g($_.TryC,$_.i);if($_.n>=2){if($_.n>4){$k[$j++]=$a([$g($_.Bvals,$_.lac)]);$_.addtocws();$_.mode=$_.C;break}$k[$j++]=$a([$g($_.Bvals,$g($a([$_.sfc,$_.sc2,$_.sc3,$_.sc4]),$f($_.n-1)))]);$_.addtocws();for(var _Dd=0,_De=$_.n;_Dd<_De;_Dd++){if($g($_.msg,$_.i)<0){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}else{$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2}}break}if($g($_.DatumB,$_.i)){var _E2=$g($_.msg,$_.i);if(_E2==$_.fn1||(_E2==$_.fn2||_E2==$_.fn3)){$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();if($g($_.ECI,$_.i)){$k[$j++]=Infinity;$_.ECIabc();var _EF=$a();$k[$j++]=_EF;$_.addtocws();$_.i=$_.i+7;break}if($g($_.msg,$_.i)==$_.fn3&&$_.i!=$_.segstart){$_.i=$_.i+1;$_.mode=$_.C;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}$_.i=$_.i+1;break}if($g($_.msg,$_.i)==13&&$_.i<$_.msglen-1){if($g($_.msg,$_.i+1)==10){$k[$j++]=$a([$g($_.Bvals,$_.crl)]);$_.addtocws();$_.i=$_.i+2;break}}$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1;break}if($g($_.Binary,$_.i)){if($g($_.DatumB,$_.i+1)){if($g($_.msg,$_.i)<160){$k[$j++]=$a([$g($_.Bvals,$_.bsa),$g($_.Avals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}else{$k[$j++]=$a([$g($_.Bvals,$_.bsb),$g($_.Bvals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Bvals,$_.bin)]);$_.addtocws();$_.mode=$_.BIN;break}if($g($_.AheadA,$_.i)==1){$k[$j++]=$a([$g($_.Bvals,$_.sfa),$g($_.Avals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Bvals,$_.laa)]);$_.addtocws();$_.mode=$_.A;break}};$_.encA=function(){for(var _Fe=0,_Ff=1;_Fe<_Ff;_Fe++){$_.n=$g($_.TryC,$_.i);if($_.n>=2){if($_.n>4){$k[$j++]=$a([$g($_.Avals,$_.lac)]);$_.addtocws();$_.mode=$_.C;break}$k[$j++]=$a([$g($_.Avals,$g($a([$_.sfc,$_.sc2,$_.sc3,$_.sc4]),$f($_.n-1)))]);$_.addtocws();for(var _G1=0,_G2=$_.n;_G1<_G2;_G1++){if($g($_.msg,$_.i)<0){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}else{$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2}}break}if($g($_.DatumA,$_.i)){var _GQ=$g($_.msg,$_.i);if(_GQ==$_.fn1||(_GQ==$_.fn2||_GQ==$_.fn3)){$k[$j++]=$a([$g($_.Avals,$g($_.msg,$_.i))]);$_.addtocws();if($g($_.ECI,$_.i)){$k[$j++]=Infinity;$_.ECIabc();var _Gd=$a();$k[$j++]=_Gd;$_.addtocws();$_.i=$_.i+7;break}if($g($_.msg,$_.i)==$_.fn3&&$_.i!=$_.segstart){$_.i=$_.i+1;$_.mode=$_.C;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Avals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1;break}if($g($_.Binary,$_.i)){if($g($_.DatumA,$_.i+1)){if($g($_.msg,$_.i)<160){$k[$j++]=$a([$g($_.Avals,$_.bsa),$g($_.Avals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}else{$k[$j++]=$a([$g($_.Avals,$_.bsb),$g($_.Bvals,$f($g($_.msg,$_.i)-128))]);$_.addtocws()}$_.i=$_.i+1;break}$k[$j++]=$a([$g($_.Avals,$_.bin)]);$_.addtocws();$_.mode=$_.BIN;break}$_.n=$g($_.AheadB,$_.i);if($_.n>6){$k[$j++]=$a([$g($_.Avals,$_.lab)]);$_.addtocws();$_.mode=$_.B;break}$k[$j++]=$a([$g($_.Avals,$g($a([$_.sfb,$_.sb2,$_.sb3,$_.sb4,$_.sb5,$_.sb6]),$f($_.n-1)))]);$_.addtocws();for(var _Ht=0,_Hu=$_.n;_Ht<_Hu;_Ht++){if($g($_.msg,$_.i)==13){$k[$j++]=$a([$g($_.Bvals,$_.crl)]);$_.addtocws();$_.i=$_.i+2}else{$k[$j++]=$a([$g($_.Bvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}}break}};$_.encBIN=function(){for(var _IA=0,_IB=1;_IA<_IB;_IA++){$_.n=$g($_.TryC,$_.i);if($_.n>=2){$k[$j++]=Infinity;$_.finaliseBIN();var _IG=$a();$k[$j++]=_IG;$_.addtocws();if($_.n>7){$k[$j++]=$a([$g($_.BINvals,$_.tmc)]);$_.addtocws();$_.mode=$_.C;break}$k[$j++]=$a([$g($_.BINvals,$g($a([$_.sc2,$_.sc3,$_.sc4,$_.sc5,$_.sc6,$_.sc7]),$f($_.n-2)))]);$_.addtocws();for(var _Ia=0,_Ib=$_.n;_Ia<_Ib;_Ia++){if($g($_.msg,$_.i)<0){$k[$j++]=$a([$g($_.Cvals,$g($_.msg,$_.i))]);$_.addtocws();$_.i=$_.i+1}else{$k[$j++]=$a([$f($f($g($_.msg,$_.i)-48)*10+$f($g($_.msg,$_.i+1)-48))]);$_.addtocws();$_.i=$_.i+2}}break}if($g($_.ECI,$_.i)&&$g($_.Binary,$_.i+7)){$k[$j++]=Infinity;$_.ECIbin();var _J0=$a();$k[$j++]=_J0;$_.addtocws();$_.i=$_.i+7;if($_.i==$_.msglen){$k[$j++]=Infinity;$_.finaliseBIN();var _J4=$a();$k[$j++]=_J4;$_.addtocws()}break}if($g($_.msg,$_.i)>=0){if($g($_.Binary,$_.i)||$g($_.Binary,$_.i+1)||$g($_.Binary,$_.i+2)||$g($_.Binary,$_.i+3)||$g($_.ECI,$_.i+1)&&$g($_.Binary,$_.i+8)){$k[$j++]=Infinity;$k[$j++]=$g($_.msg,$_.i);$_.addtobin();var _JT=$a();$k[$j++]=_JT;$_.addtocws();$_.i=$_.i+1;if($_.i==$_.msglen){$k[$j++]=Infinity;$_.finaliseBIN();var _JX=$a();$k[$j++]=_JX;$_.addtocws()}break}}$k[$j++]=Infinity;$_.finaliseBIN();var _JY=$a();$k[$j++]=_JY;$_.addtocws();if($_.i!=$_.msglen-1){if($g($_.msg,$_.i)==$_.fn3&&$_.i!=$_.segstart){$k[$j++]=$a([$g($_.BINvals,$_.tms)]);$_.addtocws();$_.i=$_.i+1;$_.mode=$_.C;$_.inmac=0;$_.segstart=$_.i;$_.segend=$f($_.i+$g($_.UntilEndSeg,$_.i));break}if($gt($g($_.AheadA,$_.i),$g($_.AheadB,$_.i))){$k[$j++]=$a([$g($_.BINvals,$_.tma)]);$_.addtocws();$_.mode=$_.A}else{$k[$j++]=$a([$g($_.BINvals,$_.tmb)]);$_.addtocws();$_.mode=$_.B}break}break}};$_.cws=$a($_.msglen*2+1);$_.mode=$_.C;$_.bvals=$a(5);$_.bpos=0;$_.inmac=0;$_.segstart=0;$_.segend=$g($_.UntilEndSeg,0);$_.i=0;$_.j=0;for(;;){if($_.i>=$_.msglen){break}if($_.inmac!=0){if($_.inmac!=$_.mac&&$_.i==$f($_.segend-2)){$_.i=$_.i+2;if($_.i>=$_.msglen){break}}if($_.inmac==$_.mac&&$_.i==$f($_.segend-1)){$_.i=$_.i+1;if($_.i>=$_.msglen){break}}}if($_[$g($a(["encA","encB","encC","encBIN"]),$_.mode)]()===true){break}}$_.cws=$G($_.cws,0,$_.j);$_.nd=$_.cws.length;$_.minarea=(($_.nd+3+~~($_.nd/2))*9+2)*2;if($_.ratio!=-1){$_.hgt=Math.sqrt($_.minarea/$_.ratio);$_.wid=Math.sqrt($_.minarea*$_.ratio);$_.h=~~$_.hgt;$_.w=~~$_.wid;if(($_.h+$_.w)%2==1){if($_.h*$_.w<$_.minarea){$_.h=$_.h+1;$_.w=$_.w+1}}else{if($_.hgt*$_.w<$_.wid*$_.h){$_.w=$_.w+1;if($_.h*$_.w<$_.minarea){$_.w=$_.w-1;$_.h=$_.h+1;if($_.h*$_.w<$_.minarea){$_.w=$_.w+2}}}else{$_.h=$_.h+1;if($_.h*$_.w<$_.minarea){$_.h=$_.h-1;$_.w=$_.w+1;if($_.h*$_.w<$_.minarea){$_.h=$_.h+2}}}}$_.rows=$_.h;$_.columns=$_.w}else{if($_.columns==-1){var _LN=~~(($_.minarea+$_.rows-1)/$_.rows);$k[$j++]="columns";$k[$j++]=_LN;if((_LN+$_.rows)%2==0){var _LP=$k[--$j];$k[$j++]=$f(_LP+1)}var _LQ=$k[--$j];$_[$k[--$j]]=_LQ}if($_.rows==-1){var _LW=~~(($_.minarea+$_.columns-1)/$_.columns);$k[$j++]="rows";$k[$j++]=_LW;if((_LW+$_.columns)%2==0){var _LY=$k[--$j];$k[$j++]=$f(_LY+1)}var _LZ=$k[--$j];$_[$k[--$j]]=_LZ}}$_.ndots=~~($_.rows*$_.columns/2);for(;;){var _Le=$_.nd+1;if((_Le+(~~(_Le/2)+3))*9+2>$_.ndots){break}$_.nd=$_.nd+1}$_.nc=~~($_.nd/2)+3;$_.nw=$_.nd+$_.nc;$_.rembits=$_.ndots-($_.nw*9+2);if($_.nd>$_.cws.length){$k[$j++]=Infinity;$q($_.cws);var _Lr=$_.mode==$_.BIN?109:106;$k[$j++]=_Lr;for(var _Lu=0,_Lv=$_.nd-$_.cws.length-1;_Lu<_Lv;_Lu++){$k[$j++]=106}$_.cws=$a()}var _Ly=$g($_.options,"debugcws")!==undefined;if(_Ly){$k[$j++]="bwipp.debugcws#25580";$k[$j++]=$_.cws;bwipp_raiseerror()}if($_.nw*9>$_.ndots-2){$k[$j++]="bwipp.dotcodeTooLong#25584";$k[$j++]="Maximum length exceeded";bwipp_raiseerror()}if(!bwipp_dotcode.__25614__){$_=Object.create($_);$_.encs=$a(["101010101","010101011","010101101","010110101","011010101","101010110","101011010","101101010","110101010","010101110","010110110","010111010","011010110","011011010","011101010","100101011","100101101","100110101","101001011","101001101","101010011","101011001","101100101","101101001","110010101","110100101","110101001","001010111","001011011","001011101","001101011","001101101","001110101","010010111","010011011","010011101","010100111","010110011","010111001","011001011","011001101","011010011","011011001","011100101","011101001","100101110","100110110","100111010","101001110","101011100","101100110","101101100","101110010","101110100","110010110","110011010","110100110","110101100","110110010","110110100","111001010","111010010","111010100","001011110","001101110","001110110","001111010","010011110","010111100","011001110","011011100","011100110","011101100","011110010","011110100","100010111","100011011","100011101","100100111","100110011","100111001","101000111","101100011","101110001","110001011","110001101","110010011","110011001","110100011","110110001","111000101","111001001","111010001","000101111","000110111","000111011","000111101","001001111","001100111","001110011","001111001","010001111","011000111","011100011","011110001","100011110","100111100","101111000","110001110","110011100","110111000","111000110","111001100"]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__25614__=1;$_=Object.getPrototypeOf($_)}if($_.rows%2==0){$_.sixedges=$a([$a([$_.columns-1,$_.rows-2]),$a([0,$_.rows-2]),$a([$_.columns-2,$_.rows-1]),$a([1,$_.rows-1]),$a([$_.columns-1,0]),$a([0,0])])}else{$_.sixedges=$a([$a([$_.columns-2,0]),$a([$_.columns-2,$_.rows-1]),$a([$_.columns-1,1]),$a([$_.columns-1,$_.rows-2]),$a([0,0]),$a([0,$_.rows-1])])}$_.dmv=function(){var _MY=$k[--$j];var _MZ=$k[--$j];$k[$j++]=$f(_MZ+_MY*$_.columns)};$_.outline=$a($_.rows*$_.columns);for(var _Mf=0,_Me=$_.rows-1;_Mf<=_Me;_Mf+=1){$_.y=_Mf;for(var _Mi=0,_Mh=$_.columns-1;_Mi<=_Mh;_Mi+=1){$_.x=_Mi;$k[$j++]=$_.outline;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.dmv();var _Mo=$k[--$j];$p($k[--$j],_Mo,($_.x+$_.y)%2-1)}}var _Mq=$_.sixedges;for(var _Mr=0,_Ms=_Mq.length;_Mr<_Ms;_Mr++){$k[$j++]=$_.outline;$q($g(_Mq,_Mr));$_.dmv();var _Mv=$k[--$j];$p($k[--$j],_Mv,1)}$_.clearcol=function(){$_.x=$k[--$j];$k[$j++]=true;for(var _N1=$_.x&1,_N0=$_.rows-1;_N1<=_N0;_N1+=2){$k[$j++]=$_.x;$k[$j++]=_N1;$_.dmv();if($g($_.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$_.clearrow=function(){$_.y=$k[--$j];$k[$j++]=true;for(var _NA=$_.y&1,_N9=$_.columns-1;_NA<=_N9;_NA+=2){$k[$j++]=_NA;$k[$j++]=$_.y;$_.dmv();if($g($_.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$_.evalsymbol=function(){$_.sym=$k[--$j];$_.worst=9999999;var _NK=$a([$a(["x",0]),$a(["x",1]),$a(["y",0]),$a(["y",1])]);for(var _NL=0,_NM=_NK.length;_NL<_NM;_NL++){$q($g(_NK,_NL));$_.fl=$k[--$j];$_.dir=$k[--$j];$_.sum=0;$_.first=-1;$_.last=-1;var _NR=$eq($_.dir,"x")?$_.columns:$_.rows;for(var _NT=0,_NS=_NR-1;_NT<=_NS;_NT+=1){$_[$_.dir]=_NT;var _NV=$_.sym;var _NX=$_[$_.dir];var _NZ=$eq($_.dir,"x")?$_.rows:$_.columns;var _Nc=(_NZ-1)*$_.fl;if($eq($_.dir,"y")){var _=_Nc;_Nc=_NX;_NX=_}$k[$j++]=_NV;$k[$j++]=_NX;$k[$j++]=_Nc;$_.dmv();var _Nd=$k[--$j];if($g($k[--$j],_Nd)==1){if($_.first==-1){$_.first=$_[$_.dir]}$_.last=$_[$_.dir];$_.sum=$_.sum+1}}var _Nq=$eq($_.dir,"x")?$_.rows:$_.columns;var _Nr=$f($f($_.sum+$_.last)-$_.first)*_Nq;$k[$j++]=_Nr;if(_Nr<$_.worst){$_.worst=$k[--$j]}else{$j--}}$_.pen=0;if($_.rows%2==1||$_.rows<=12){$_.sum=0;$_.p=0;for(var _Ny=1,_Nx=$_.columns-2;_Ny<=_Nx;_Ny+=1){$k[$j++]=_Ny;$_.clearcol();if($k[--$j]){$_.sum=$_.sum+1;$k[$j++]="p";if($_.sum==1){$k[$j++]=$_.rows}else{$k[$j++]=$_.p*$_.rows}var _O5=$k[--$j];$_[$k[--$j]]=_O5}else{$_.sum=0;$_.pen=$_.pen+$_.p;$_.p=0}}$_.pen=$_.pen+$_.p}if($_.rows%2==0||$_.columns<=12){$_.sum=0;$_.p=0;for(var _OF=1,_OE=$_.rows-2;_OF<=_OE;_OF+=1){$k[$j++]=_OF;$_.clearrow();if($k[--$j]){$_.sum=$_.sum+1;$k[$j++]="p";if($_.sum==1){$k[$j++]=$_.columns}else{$k[$j++]=$_.p*$_.columns}var _OM=$k[--$j];$_[$k[--$j]]=_OM}else{$_.sum=0;$_.pen=$_.pen+$_.p;$_.p=0}}$_.pen=$_.pen+$_.p}$k[$j++]=Infinity;for(var _OT=0,_OU=($_.columns+4)*2;_OT<_OU;_OT++){$k[$j++]=0}for(var _OY=0,_OZ=$_.columns,_OX=$_.sym.length-1;_OZ<0?_OY>=_OX:_OY<=_OX;_OY+=_OZ){$k[$j++]=0;$k[$j++]=0;$q($G($_.sym,_OY,$_.columns));$k[$j++]=0;$k[$j++]=0}for(var _Oe=0,_Of=($_.columns+4)*2;_Oe<_Of;_Oe++){$k[$j++]=0}$_.symp=$a();$_.columns=$_.columns+4;$_.rows=$_.rows+4;$_.sum=0;for(var _Ol=2,_Ok=$_.rows-3;_Ol<=_Ok;_Ol+=1){$_.y=_Ol;for(var _Op=($_.y&1)+2,_Oo=$_.columns-3;_Op<=_Oo;_Op+=2){$_.x=_Op;for(var _Oq=0,_Or=1;_Oq<_Or;_Oq++){$k[$j++]=$_.symp;$k[$j++]=$_.x-1;$k[$j++]=$_.y-1;$_.dmv();var _Ov=$k[--$j];if($g($k[--$j],_Ov)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x+1;$k[$j++]=$_.y-1;$_.dmv();var _P1=$k[--$j];if($g($k[--$j],_P1)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x-1;$k[$j++]=$_.y+1;$_.dmv();var _P7=$k[--$j];if($g($k[--$j],_P7)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x+1;$k[$j++]=$_.y+1;$_.dmv();var _PD=$k[--$j];if($g($k[--$j],_PD)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.dmv();var _PJ=$k[--$j];if($g($k[--$j],_PJ)==0){$_.sum=$_.sum+1;break}$k[$j++]=$_.symp;$k[$j++]=$_.x-2;$k[$j++]=$_.y;$_.dmv();var _PQ=$k[--$j];if($g($k[--$j],_PQ)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x;$k[$j++]=$_.y-2;$_.dmv();var _PW=$k[--$j];if($g($k[--$j],_PW)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x+2;$k[$j++]=$_.y;$_.dmv();var _Pc=$k[--$j];if($g($k[--$j],_Pc)==1){break}$k[$j++]=$_.symp;$k[$j++]=$_.x;$k[$j++]=$_.y+2;$_.dmv();var _Pi=$k[--$j];if($g($k[--$j],_Pi)==1){break}$_.sum=$_.sum+1}}}$_.columns=$_.columns-4;$_.rows=$_.rows-4;if($_.worst==0){$k[$j++]=-99999}else{$k[$j++]=$f($f($_.worst-$_.sum*$_.sum)-$_.pen)}};if(!bwipp_dotcode.__25779__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _Pt=0,_Pu=112;_Pt<_Pu;_Pt++){var _Pv=$k[--$j];$k[$j++]=_Pv;$k[$j++]=_Pv*3%113}$_.rsalog=$a();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_dotcode.$ctx[id]=$_[id]);bwipp_dotcode.__25779__=1;$_=Object.getPrototypeOf($_)}$_.step=~~($_.nw/112)+1;$_.offset=function(){var _Q0=$k[--$j];$k[$j++]=$f(_Q0*$_.step+$_.start)};$_.bestscore=-99999999;$k[$j++]="masks";if($_.mask!=-1){$k[$j++]=$a([$_.mask])}else{if($_.fast){$k[$j++]=$a([3,2,1,0])}else{$k[$j++]=$a([0,1,2,3])}}var _Q8=$k[--$j];$_[$k[--$j]]=_Q8;$_.litmasks=$a(4);$F($_.masks,function(){$_.mask=$k[--$j];$k[$j++]=Infinity;var _QH=$_.cws;$k[$j++]=$_.mask;$k[$j++]=$g($a([0,3,7,17]),$_.mask);$k[$j++]=0;for(var _QI=0,_QJ=_QH.length;_QI<_QJ;_QI++){var _QL=$k[--$j];var _QM=$k[--$j];$k[$j++]=$f($g(_QH,_QI)+_QL)%113;$k[$j++]=_QM;$k[$j++]=$f(_QL+_QM)}$j-=2;for(var _QO=0,_QP=$_.nc;_QO<_QP;_QO++){$k[$j++]=0}$_.rscws=$a();for(var _QT=0,_QS=$_.step-1;_QT<=_QS;_QT+=1){$_.start=_QT;$_.ND=~~(($_.nd+1-$_.start+$_.step-1)/$_.step);$_.NW=~~(($_.nw+1-$_.start+$_.step-1)/$_.step);$_.NC=$_.NW-$_.ND;$k[$j++]=Infinity;$k[$j++]=1;for(var _Qf=0,_Qg=$_.NC;_Qf<_Qg;_Qf++){$k[$j++]=0}$_.coeffs=$a();for(var _Qk=1,_Qj=$_.NC;_Qk<=_Qj;_Qk+=1){$_.i=_Qk;for(var _Qm=$_.NC;_Qm>=1;_Qm-=1){$_.j=_Qm;$p($_.coeffs,$_.j,$f($f($g($_.coeffs,$_.j)+113)-$g($_.rsalog,$_.i)*$g($_.coeffs,$_.j-1)%113)%113)}}for(var _R0=0,_Qz=$_.ND-1;_R0<=_Qz;_R0+=1){$k[$j++]="t";$k[$j++]=$_.rscws;$k[$j++]=_R0;$_.offset();var _R2=$k[--$j];var _R4=$g($k[--$j],_R2);$k[$j++]=_R4;$k[$j++]=$_.rscws;$k[$j++]=$_.ND;$_.offset();var _R7=$k[--$j];var _R9=$g($k[--$j],_R7);var _RA=$k[--$j];$_[$k[--$j]]=$f(_RA+_R9)%113;for(var _RE=0,_RD=$_.NC-2;_RE<=_RD;_RE+=1){$_.j=_RE;$k[$j++]=$_.rscws;$k[$j++]=$_.ND+$_.j;$_.offset();$k[$j++]=$_.rscws;$k[$j++]=$_.ND+$_.j+1;$_.offset();var _RL=$k[--$j];var _RN=$g($k[--$j],_RL);var _RS=$k[--$j];$p($k[--$j],_RS,$f($f(_RN+113)-$_.t*$g($_.coeffs,$_.j+1)%113)%113)}$k[$j++]=$_.rscws;$k[$j++]=$_.ND+$_.NC-1;$_.offset();var _Rb=$k[--$j];$p($k[--$j],_Rb,$f(113-$_.t*$g($_.coeffs,$_.NC)%113)%113)}for(var _Rg=$_.ND,_Rf=$_.NW-1;_Rg<=_Rf;_Rg+=1){$k[$j++]=_Rg;$k[$j++]=$_.rscws;$k[$j++]=_Rg;$_.offset();var _Rj=$k[--$j];var _Rk=$k[--$j];var _Rl=$k[--$j];$k[$j++]=_Rk;$k[$j++]=_Rj;$k[$j++]=113;$k[$j++]=$_.rscws;$k[$j++]=_Rl;$_.offset();var _Rm=$k[--$j];var _Ro=$g($k[--$j],_Rm);var _Rp=$k[--$j];var _Rq=$k[--$j];$p($k[--$j],_Rq,$f(_Rp-_Ro)%113)}}$_.bits=$s($_.ndots);$P($_.bits,0,$g($a(["00","01","10","11"]),$_.mask));for(var _S0=1,_Rz=$_.nw;_S0<=_Rz;_S0+=1){$_.i=_S0;$P($_.bits,($_.i-1)*9+2,$g($_.encs,$g($_.rscws,$_.i)))}if($_.rembits>0){$P($_.bits,$_.nw*9+2,$G("11111111111111111",0,$_.rembits))}var _SD=$_.outline;$_.pixs=$A($a(_SD.length),_SD);$_.posx=0;$k[$j++]="posy";if($_.rows%2==0){$k[$j++]=0}else{$k[$j++]=$_.rows-1}var _SI=$k[--$j];$_[$k[--$j]]=_SI;var _SM=$G($_.bits,0,$_.bits.length-6);for(var _SN=0,_SO=_SM.length;_SN<_SO;_SN++){$k[$j++]=$g(_SM,_SN);for(;;){$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.dmv();var _ST=$k[--$j];if($g($k[--$j],_ST)==-1){break}if($_.rows%2==0){$_.posy=$_.posy+1;if($_.posy==$_.rows){$_.posy=0;$_.posx=$_.posx+1}}else{$_.posx=$_.posx+1;if($_.posx==$_.columns){$_.posx=0;$_.posy=$_.posy-1}}}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.dmv();var _Si=$k[--$j];var _Sj=$k[--$j];$p(_Sj,_Si,$f($k[--$j]-48))}for(var _Sl=0;_Sl<=5;_Sl+=1){$_.i=_Sl;$k[$j++]=$_.pixs;$q($g($_.sixedges,$_.i));$_.dmv();var _Su=$k[--$j];$p($k[--$j],_Su,$g($_.bits,$_.bits.length-6+$_.i)-48)}$k[$j++]="score";$k[$j++]=$_.pixs;$_.evalsymbol();var _Sx=$k[--$j];$_[$k[--$j]]=_Sx;if($_.score>$_.bestscore){$_.bestsym=$_.pixs;$_.bestscore=$_.score;if($_.fast&&$_.bestscore>~~($_.rows*$_.columns/2)){return true}}var _T7=$_.pixs;$_.litmask=$A($a(_T7.length),_T7);for(var _TA=0;_TA<=5;_TA+=1){$_.i=_TA;$k[$j++]=$_.litmask;$q($g($_.sixedges,$_.i));$_.dmv();var _TF=$k[--$j];$p($k[--$j],_TF,1)}$p($_.litmasks,$_.mask,$_.litmask);if($_.fast){$k[$j++]="score";$k[$j++]=$_.litmask;$_.evalsymbol();var _TM=$k[--$j];$_[$k[--$j]]=_TM;if($gt($_.score,$_.bestscore)){$_.bestsym=$_.litmask;$_.bestscore=$_.score;if($_.bestscore>~~($_.rows*$_.columns/2)){return true}}}});$_.pixs=$_.bestsym;if(!$_.fast&&$_.bestscore<=~~($_.rows*$_.columns/2)){$_.bestscore=-99999999;$F($_.masks,function(){$_.litmask=$g($_.litmasks,$k[--$j]);$k[$j++]="score";$k[$j++]=$_.litmask;$_.evalsymbol();var _Tf=$k[--$j];$_[$k[--$j]]=_Tf;if($_.score>$_.bestscore){$_.bestsym=$_.litmask;$_.bestscore=$_.score}});$_.pixs=$_.bestsym}var _Ts=new Map([["ren",bwipp_renmatrix],["dotty",true],["pixs",$_.pixs],["pixx",$_.columns],["pixy",$_.rows],["height",$_.rows*2/72],["width",$_.columns*2/72],["borderleft",3],["borderright",3],["bordertop",3],["borderbottom",3],["opt",$_.options]]);$k[$j++]=_Ts;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ultracode(){$_=Object.create($_);$_.dontdraw=false;$_.eclevel="EC2";$_.parse=false;$_.parsefnc=false;$_.start=257;$_.link1=0;$_.raw=false;$_.rev=2;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _2=$_.rev;if(_2!=1&&_2!=2){$k[$j++]="bwipp.ultracodeInvalidRevision#25981";$k[$j++]="Valid revisions are 1 and 2";bwipp_raiseerror()}var _4=$_.eclevel.length==3;$k[$j++]=_4;if(_4){$j--;$k[$j++]=$G($_.eclevel,0,2);if($eq("EC","EC")){$j--;var _9=$g($_.eclevel,2)-48;var _B=$_.rev==2?1:0;$k[$j++]=_9>=_B&&_9<=5}}if($nt($k[--$j])){$k[$j++]="bwipp.ultracodeInvalidErrorCorrectionLevel#25990";$k[$j++]="Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1";bwipp_raiseerror()}bwipp_loadctx(bwipp_ultracode);if($_.raw){$_.dcws=$a($_.barcode.length);$_.i=0;$_.j=0;for(;;){if($_.i==$_.barcode.length){break}$_.cw=$i($G($_.barcode,$_.i+1,3));$p($_.dcws,$_.j,$_.cw);$_.i=$_.i+4;$_.j=$_.j+1}$_.dcws=$G($_.dcws,0,$_.j)}else{$_.fn1=-1;$_.fn3=-2;var _X=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1],["FNC3",$_.fn3]]);$_.fncvals=_X;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _a=$k[--$j];$_[$k[--$j]]=_a;$_.msglen=$_.msg.length;$_.scr=$a([]);$_.scp=$a([]);$k[$j++]=Infinity;$q($_.scr);$q($_.scp);$F($_.msg,function(){var _i=$k[--$j];$k[$j++]=_i;if(_i==$_.fn1){$j--;$k[$j++]=268}var _k=$k[--$j];$k[$j++]=_k;if(_k==$_.fn3){$j--;$k[$j++]=269}});$_.dcws=$a()}var _o=$g($_.options,"debugcws")!==undefined;if(_o){$k[$j++]="bwipp.debugcws#26034";$k[$j++]=$_.dcws;bwipp_raiseerror()}$_.mcc=$_.dcws.length+3;$_.eclval=$g($_.eclevel,2)-48;if($_.eclval!=0){$k[$j++]="qcc";$k[$j++]=$g($a([0,1,2,4,6,8]),$_.eclval);$k[$j++]=~~($_.mcc/25);if($_.mcc%25!=0){var _z=$k[--$j];$k[$j++]=$f(_z+1)}var _10=$k[--$j];var _11=$k[--$j];$_[$k[--$j]]=$f(_11*_10+5)}else{$_.qcc=3}$_.acc=$_.qcc-3+78*$_.link1;$_.tcc=$_.mcc+$_.qcc;if(!bwipp_ultracode.__26056__){$_=Object.create($_);$_.metrics=$a([$a([2,7,37,5]),$a([3,36,84,13]),$a([4,85,161,22]),$a([5,142,282,29])]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__26056__=1;$_=Object.getPrototypeOf($_)}var _1D=$_.metrics;for(var _1E=0,_1F=_1D.length;_1E<_1F;_1E++){$_.m=$g(_1D,_1E);$_.rows=$g($_.m,0);$_.minc=$g($_.m,1);$_.maxc=$g($_.m,2);$_.mcol=$g($_.m,3);$_.okay=true;if($_.tcc<$_.minc||$_.tcc>$_.maxc){$_.okay=false}if($_.okay){break}}if(!$_.okay){$k[$j++]="bwipp.ultracodeNoValidSymbol#26070";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}for(var _1W=$_.mcol;_1W<=61;_1W+=1){$_.columns=_1W;$k[$j++]=$_.columns;if($_.columns>=15){var _1Z=$k[--$j];$k[$j++]=$f(_1Z-1)}if($_.columns>=31){var _1b=$k[--$j];$k[$j++]=$f(_1b-1)}if($_.columns>=47){var _1d=$k[--$j];$k[$j++]=$f(_1d-1)}var _1h=$f($f($k[--$j]*$_.rows-3)-$_.tcc);$k[$j++]=_1h;if(_1h>=0){$_.pads=$k[--$j];break}$j--}$_.dcc=$f($_.columns-$_.mcol);$k[$j++]=Infinity;$k[$j++]=$_.start;$k[$j++]=$_.mcc;$k[$j++]=$_.acc;$q($_.dcws);for(var _1q=0,_1r=$_.qcc;_1q<_1r;_1q++){$k[$j++]=0}$k[$j++]=0;$_.rsseq=$a();if(!bwipp_ultracode.__26103__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=1;for(var _1t=0,_1u=282;_1t<_1u;_1t++){var _1v=$k[--$j];$k[$j++]=_1v;$k[$j++]=_1v*3%283}$_.rsalog=$a();$_.rslog=$a(283);for(var _1y=1;_1y<=282;_1y+=1){$p($_.rslog,$g($_.rsalog,_1y),_1y)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__26103__=1;$_=Object.getPrototypeOf($_)}$_.rsprod=function(){var _23=$k[--$j];var _24=$k[--$j];$k[$j++]=_24;$k[$j++]=_23;if(_23!=0&&_24!=0){var _27=$g($_.rslog,$k[--$j]);var _2C=$g($_.rsalog,$f(_27+$g($_.rslog,$k[--$j]))%282);$k[$j++]=_2C}else{$j-=2;$k[$j++]=0}};$_.n=$_.mcc;$_.k=$_.qcc;$k[$j++]=Infinity;$k[$j++]=1;for(var _2G=0,_2H=$_.k;_2G<_2H;_2G++){$k[$j++]=0}$_.coeffs=$a();for(var _2L=1,_2K=$_.k;_2L<=_2K;_2L+=1){$_.i=_2L;$p($_.coeffs,$_.i,$g($_.coeffs,$_.i-1));for(var _2S=$_.i-1;_2S>=1;_2S-=1){$_.j=_2S;$k[$j++]=$_.coeffs;$k[$j++]=$_.j;$k[$j++]=$g($_.coeffs,$_.j-1);$k[$j++]=$g($_.coeffs,$_.j);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _2e=$k[--$j];var _2f=$k[--$j];var _2g=$k[--$j];$p($k[--$j],_2g,$f(_2f+_2e)%283)}$k[$j++]=$_.coeffs;$k[$j++]=0;$k[$j++]=$g($_.coeffs,0);$k[$j++]=$g($_.rsalog,$_.i);$_.rsprod();var _2o=$k[--$j];var _2p=$k[--$j];$p($k[--$j],_2p,_2o)}$_.coeffs=$G($_.coeffs,0,$_.coeffs.length-1);for(var _2v=$_.coeffs.length-1;_2v>=0;_2v-=2){var _2w=$_.coeffs;$p(_2w,_2v,$f(283-$g(_2w,_2v)))}for(var _30=0,_2z=$_.n-1;_30<=_2z;_30+=1){$_.t=$f($g($_.rsseq,_30)+$g($_.rsseq,$_.n))%283;for(var _38=0,_37=$_.k-1;_38<=_37;_38+=1){$_.j=_38;$p($_.rsseq,$_.n+$_.j,$f($g($_.rsseq,$_.n+$_.j+1)+$f(283-$_.t*$g($_.coeffs,$_.k-$_.j-1)%283))%283)}}for(var _3P=$_.n,_3O=$_.n+$_.k;_3P<=_3O;_3P+=1){$p($_.rsseq,_3P,$f(283-$g($_.rsseq,_3P))%283)}$_.ecws=$G($_.rsseq,$_.n,$_.k);var _3Y=$g($_.options,"debugecc")!==undefined;if(_3Y){$k[$j++]="bwipp.debugecc#26140";$k[$j++]=$_.ecws;bwipp_raiseerror()}if(!bwipp_ultracode.__26199__){$_=Object.create($_);$_.tiles=$a([13135,13136,13153,13156,13163,13165,13513,13515,13516,13531,13535,13536,13561,13563,13565,13613,13615,13616,13631,13635,13636,13651,13653,13656,15135,15136,15153,15163,15165,15313,15315,15316,15351,15353,15356,15361,15363,15365,15613,15615,15616,15631,15635,15636,15651,15653,15656,16135,16136,16153,16156,16165,16313,16315,16316,16351,16353,16356,16361,16363,16365,16513,16515,16516,16531,16535,16536,16561,16563,16565,31315,31316,31351,31356,31361,31365,31513,31515,31516,31531,31535,31536,31561,31563,31565,31613,31615,31631,31635,31636,31651,31653,31656,35131,35135,35136,35151,35153,35156,35161,35163,35165,35315,35316,35351,35356,35361,35365,35613,35615,35616,35631,35635,35636,35651,35653,35656,36131,36135,36136,36151,36153,36156,36163,36165,36315,36316,36351,36356,36361,36365,36513,36515,36516,36531,36535,36536,36561,36563,36565,51313,51315,51316,51351,51353,51356,51361,51363,51365,51513,51516,51531,51536,51561,51563,51613,51615,51616,51631,51635,51636,51651,51653,51656,53131,53135,53136,53151,53153,53156,53161,53163,53165,53513,53516,53531,53536,53561,53563,53613,53615,53616,53631,53635,53636,53651,53653,53656,56131,56135,56136,56151,56153,56156,56161,56163,56165,56313,56315,56316,56351,56353,56356,56361,56363,56365,56513,56516,56531,56536,56561,56563,61313,61315,61316,61351,61353,61356,61361,61363,61365,61513,61515,61516,61531,61535,61536,61561,61563,61565,61615,61631,61635,61651,61653,63131,63135,63136,63151,63153,63156,63161,63163,63165,63513,63515,63516,63531,63535,63536,63561,63563,63565,63613,63615,63631,63635,63651,63653,65131,65135,65136,65151,65153,65156,65161,65163,65165,65313,65315,65316,65351,65353,65356,65361,65363,65365,65613,65615,65631,65635,65651,65653,56565,51515]);$_.dccurev1=$a([51363,51563,51653,53153,53163,53513,53563,53613,53653,56153,56163,56313,56353,56363,56513,56563,51316,51356,51536,51616,53156,53516,53536,53616,53636,53656,56136,56156,56316,56356,56516,56536]);$_.dcclrev1=$a([61351,61361,61531,61561,61631,61651,63131,63151,63161,63531,63561,63631,65131,65161,65351,65631,31351,31361,31531,31561,31631,31651,35131,35151,35161,35361,35631,35651,36131,36151,36351,36531]);$_.dccurev2=$a([15316,16316,13516,16516,13616,15616,13136,15136,16136,13536,16536,13636,13156,16156,15356,13656,15313,16313,13513,16513,13613,15613,13153,15153,16153,16353,13653,15653,13163,15163,15363,13563]);$_.dcclrev2=$a([36315,36515,35615,35135,36135,31535,36535,31635,35635,35165,36165,31365,35365,36365,31565,36565,61315,65315,63515,61615,65135,61535,63535,61635,63635,65635,63165,65165,61365,65365,61565,63565]);for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__26199__=1;$_=Object.getPrototypeOf($_)}$k[$j++]="dccu";if($_.rev==1){$k[$j++]=$_.dccurev1}else{$k[$j++]=$_.dccurev2}var _3j=$k[--$j];$_[$k[--$j]]=_3j;$k[$j++]="dccl";if($_.rev==1){$k[$j++]=$_.dcclrev1}else{$k[$j++]=$_.dcclrev2}var _3o=$k[--$j];$_[$k[--$j]]=_3o;$_.rows=$f($_.rows*6+1);$_.columns=$_.columns+6;$k[$j++]=Infinity;for(var _3u=0,_3v=$_.rows*$_.columns;_3u<_3v;_3u++){$k[$j++]=-1}$_.pixs=$a();$_.qmv=function(){var _3y=$k[--$j];var _3z=$k[--$j];$k[$j++]=$f(_3z+_3y*$_.columns)};for(var _42=0,_41=$_.columns-1;_42<=_41;_42+=1){$_.i=_42;for(var _45=0,_44=$f($_.rows-1);_45<=_44;_45+=6){$_.j=_45;if($_.i>=5){$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.qmv();var _4B=$k[--$j];$p($k[--$j],_4B,$_.i%2*9)}}$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=0;$_.qmv();var _4F=$k[--$j];$p($k[--$j],_4F,9);$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$f($_.rows-1);$_.qmv();var _4K=$k[--$j];$p($k[--$j],_4K,9)}for(var _4O=1,_4N=$f($_.rows-2);_4O<=_4N;_4O+=1){$_.i=_4O;for(var _4R=3,_4Q=$_.columns-1;_4R<=_4Q;_4R+=16){$_.j=_4R;$k[$j++]=$_.pixs;$k[$j++]=$_.j;$k[$j++]=$_.i;$_.qmv();var _4W=$k[--$j];$p($k[--$j],_4W,(1-$_.i%2)*9)}$k[$j++]=$_.pixs;$k[$j++]=0;$k[$j++]=$_.i;$_.qmv();var _4a=$k[--$j];$p($k[--$j],_4a,9);$k[$j++]=$_.pixs;$k[$j++]=1;$k[$j++]=$_.i;$_.qmv();var _4f=$k[--$j];$p($k[--$j],_4f,(1-$_.i%2)*9);$k[$j++]=$_.pixs;$k[$j++]=2;$k[$j++]=$_.i;$_.qmv();var _4j=$k[--$j];$p($k[--$j],_4j,0);$k[$j++]=$_.pixs;$k[$j++]=3;$k[$j++]=$_.i;$_.qmv();var _4n=$k[--$j];$p($k[--$j],_4n,9);$k[$j++]=$_.pixs;$k[$j++]=4;$k[$j++]=$_.i;$_.qmv();var _4r=$k[--$j];$p($k[--$j],_4r,0);$k[$j++]=$_.pixs;$k[$j++]=$_.columns-1;$k[$j++]=$_.i;$_.qmv();var _4w=$k[--$j];$p($k[--$j],_4w,9)}$_.i=~~($_.rows/2)-5;$k[$j++]=Infinity;var _53=$R($s(5),$g($_.dccu,$_.dcc),10);for(var _54=0,_55=_53.length;_54<_55;_54++){$k[$j++]=$g(_53,_54)-48}var _5B=$R($s(5),$g($_.dccl,$_.dcc),10);$k[$j++]=0;for(var _5C=0,_5D=_5B.length;_5C<_5D;_5C++){$k[$j++]=$g(_5B,_5C)-48}var _5F=$a();for(var _5G=0,_5H=_5F.length;_5G<_5H;_5G++){$k[$j++]=$g(_5F,_5G);$k[$j++]=$_.pixs;$k[$j++]=2;$k[$j++]=$_.i;$_.qmv();var _5L=$k[--$j];var _5M=$k[--$j];$p(_5M,_5L,$k[--$j]);$_.i=$_.i+1}$k[$j++]=Infinity;$k[$j++]=$_.start;$k[$j++]=$_.mcc;$q($_.ecws);$k[$j++]=$_.tcc;$k[$j++]=283;$k[$j++]=$_.acc;$q($_.dcws);for(var _5W=0,_5X=$_.pads;_5W<_5X;_5W++){$k[$j++]=284}$k[$j++]=$_.qcc;$_.tileseq=$a();$_.x=5;$_.y=1;var _5a=$_.tileseq;for(var _5b=0,_5c=_5a.length;_5b<_5c;_5b++){var _5h=$R($s(5),$g($_.tiles,$g(_5a,_5b)),10);for(var _5i=0,_5j=_5h.length;_5i<_5j;_5i++){$k[$j++]=$g(_5h,_5i);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _5o=$k[--$j];var _5p=$k[--$j];$p(_5p,_5o,$f($k[--$j]-48));$_.y=$_.y+1}if($_.y!=$f($_.rows-1)){$_.y=$_.y+1}else{$_.x=$_.x+1;$_.y=1;$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.qmv();var _5z=$k[--$j];if($g($k[--$j],_5z)!=-1){$_.x=$_.x+1}}}if(!bwipp_ultracode.__26281__){$_=Object.create($_);var _63=new Map([[0,"FFFFFF"],[9,"000000"],[1,"00FFFF"],[3,"FF00FF"],[5,"FFFF00"],[6,"00FF00"]]);$_.colormap=_63;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_ultracode.$ctx[id]=$_[id]);bwipp_ultracode.__26281__=1;$_=Object.getPrototypeOf($_)}var _6C=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.columns],["pixy",$_.rows],["height",$_.rows/72*2],["width",$_.columns/72*2],["colormap",$_.colormap],["borderleft",1],["borderright",1],["bordertop",1],["borderbottom",1],["opt",$_.options]]);$k[$j++]=_6C;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_jabcode(){$_=Object.create($_);$_.dontdraw=false;$_.rows=-1;$_.columns=-1;$_.slave=false;$_.colors=16;$_.eclevel=6;$_.raw=false;$_.parse=false;$_.parsefnc=false;$_.mask=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$_.databpm=~~Math.round(Math.log($_.colors)/Math.log(2));var _3=$_.colors;$k[$j++]="metabpm";$k[$j++]=_3;if(_3>8){$j--;$k[$j++]=8}var _4=$k[--$j];$_[$k[--$j]]=~~Math.round(Math.log(_4)/Math.log(2));$_.fn1=-1;var _9=new Map([["parse",$_.parse],["parsefnc",$_.parsefnc],["FNC1",$_.fn1]]);$_.fncvals=_9;$k[$j++]="msg";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _C=$k[--$j];$_[$k[--$j]]=_C;$_.msglen=$_.msg.length;$_.addtobits=function(){var _F=$k[--$j];$P($_.bits,$_.j,_F);$_.j=_F.length+$_.j};$_.tofixedbits=function(){var _K=$Z($s(13),"0000000000000");var _L=$k[--$j];var _O=$R($s(13),$k[--$j],2);$P(_K,$f(_L-_O.length),_O);$k[$j++]=$G(_K,0,_L)};var _R=$_.msglen<=15?4:17;$_.bits=$s(7+_R+$_.msglen*8+12);$_.j=0;$k[$j++]=31;$k[$j++]=5;$_.tofixedbits();$_.addtobits();$k[$j++]="00";$_.addtobits();if($_.msglen<=15){$k[$j++]=$_.msglen;$k[$j++]=4;$_.tofixedbits();$_.addtobits()}else{$k[$j++]="0000";$_.addtobits();$k[$j++]=$_.msglen-16;$k[$j++]=13;$_.tofixedbits();$_.addtobits()}for(var _Z=0,_Y=$_.msglen-1;_Z<=_Y;_Z+=1){$k[$j++]=$g($_.msg,_Z);$k[$j++]=8;$_.tofixedbits();$_.addtobits()}$k[$j++]=28;$k[$j++]=5;$_.tofixedbits();$_.addtobits();$k[$j++]=31;$k[$j++]=5;$_.tofixedbits();$_.addtobits();$k[$j++]="11";$_.addtobits();$_.diffside=21;$_.sameshape=false;$_.sameecc=false;$_.hasslaves=false;$_.metrics=function(){$_.mc=$k[--$j];$_.mr=$k[--$j];var _e=$_.mc;var _f=$_.mr;var _g=$_.mc;var _h=$_.mr;var _i=$_.colors;var _j=64;if(64>_i){var _=_i;_i=_j;_j=_}var _l=$_.slave?7:17;$k[$j++]=_e*_f;$k[$j++]=((~~($f(_g-25)/16)+2)*(~~($f(_h-25)/16)+2)-4)*7;$k[$j++]=_j*2;$k[$j++]=_l*4;if(!$_.slave){var _p=$eq($_.mr,$_.mc)?0:1;$_.metass=_p;var _q=$_.mr;var _r=$_.mc;if($lt(_q,_r)){var _=_r;_r=_q;_q=_}$_.metavf=$g($a([0,1,2,2,3,3,3,3]),~~($f(_q-21)/16));$k[$j++]="metavlen";if($_.metass==0){$k[$j++]=$a([2,2,3,4])}else{$k[$j++]=$a([4,6,8,10])}var _z=$g($k[--$j],$_.metavf);$_[$k[--$j]]=_z;$_.metaelen=$f($_.metavf*2+10);$k[$j++]=$f($f(7+$_.metavlen)+$_.metaelen);if($_.hasslaves){var _15=$k[--$j];$k[$j++]=$f(_15+4)}var _18=~~Math.ceil($k[--$j]*2/$_.metabpm);$_.nummetabits=$f(_18*$_.metabpm+6);$k[$j++]=_18+6}else{$k[$j++]=3;if(!$_.sameshape){var _1B=$k[--$j];$k[$j++]=$f(_1B+5)}if($_.hasslaves){var _1D=$k[--$j];$k[$j++]=$f(_1D+3)}if(!$_.sameecc){var _1F=$_.mr;var _1G=$_.mc;if($lt(_1F,_1G)){var _=_1G;_1G=_1F;_1F=_}var _1J=$k[--$j];$k[$j++]=$f(_1J+$g($a([10,12,14,14,16,16,16,16]),~~($f(_1F-21)/16)))}var _1M=~~Math.ceil($k[--$j]*2/$_.metabpm);$_.nummetabits=_1M*$_.metabpm;$k[$j++]=_1M}var _1O=$k[--$j];$_.nummetamodules=_1O;var _1P=$k[--$j];var _1Q=$k[--$j];var _1R=$k[--$j];$_.numdatamodules=$f($k[--$j]-$f(_1R+$f(_1Q+$f(_1P+_1O))));$_.numdatabits=$_.numdatamodules*$_.databpm};$_.coderate=$g($a([.67,.63,.57,.55,.5,.43,.34,.25,.2,.17,.14]),$_.eclevel);$_.grosslen=~~Math.ceil($_.bits.length/$_.coderate);$_.snapsize=function(){var _1b=~~Math.ceil($k[--$j])-18;$k[$j++]=_1b;if(_1b<0){$j--;$k[$j++]=0}var _1c=$k[--$j];$k[$j++]=~~(_1c/4)*4+21};if($_.rows==-1&&$_.columns==-1){$k[$j++]="size";$k[$j++]=Math.sqrt($_.grosslen);$_.snapsize();var _1g=$k[--$j];$_[$k[--$j]]=_1g;for(;;){$k[$j++]=$_.size;$k[$j++]=$_.size;$_.metrics();if($_.grosslen<=$_.numdatabits){break}$_.size=$f($_.size+4)}$_.rows=$_.size;$_.columns=$_.size}else{if($_.columns==-1&&$_.rows!=-1){$k[$j++]="columns";$k[$j++]=$_.grosslen/$_.rows;$_.snapsize();var _1t=$k[--$j];$_[$k[--$j]]=_1t;for(;;){$k[$j++]=$_.rows;$k[$j++]=$_.columns;$_.metrics();if($_.grosslen<=$_.numdatabits){break}$_.columns=$f($_.columns+4)}}if($_.rows==-1&&$_.columns!=-1){$k[$j++]="rows";$k[$j++]=$_.grosslen/$_.columns;$_.snapsize();var _24=$k[--$j];$_[$k[--$j]]=_24;for(;;){$k[$j++]=$_.rows;$k[$j++]=$_.columns;$_.metrics();if($_.grosslen<=$_.numdatabits){break}$_.rows=$f($_.rows+4)}}if($_.rows!=-1&&$_.columns!=-1){$k[$j++]=$_.rows;$k[$j++]=$_.columns;$_.metrics()}}$_.C=$_.numdatabits;$_.cols=$_.columns;if($_.rows>145||$_.cols>145){$k[$j++]="bwipp.jabcodeNoValidSymbol#26497";$k[$j++]="Maximum length exceeded or invalid content";bwipp_raiseerror()}$_.min=$_.C;for(var _2K=3;_2K<=8;_2K+=1){$_.i=_2K;for(var _2M=$_.i+1;_2M<=9;_2M+=1){$_.j=_2M;$_.dist=~~($_.C/$_.j)*$_.j-~~($_.C/$_.j)*$_.i-$_.bits.length;if($_.dist<$_.min&&$_.dist>=0){$_.datawc=$_.i;$_.datawr=$_.j;$_.min=$_.dist}}}$_.tmpbits=$s(~~($_.C/$_.datawr)*$_.datawr-~~($_.C/$_.datawr)*$_.datawc);$P($_.tmpbits,0,$_.bits);for(var _2m=$_.bits.length,_2l=$_.tmpbits.length-1;_2m<=_2l;_2m+=1){var _2o=$g($_.tmpbits,_2m-1);$k[$j++]=_2m;$k[$j++]=_2o;if(_2o%2==0){var _2p=$k[--$j];$k[$j++]=$f(_2p+1)}else{var _2q=$k[--$j];$k[$j++]=$f(_2q-1)}var _2s=$k[--$j];$p($_.tmpbits,$k[--$j],_2s)}$_.bits=$_.tmpbits;$_.m0=22609+1;$_.m1=62509-65536;$_.m2=19605;$_.m3=32557;$_.lcg64_temper=function(){$_.p00=$_.m0*$_.s0;$_.p01=$_.m0*$_.s1;$_.p02=$_.m0*$_.s2;$_.p03=$_.m0*$_.s3;$_.p10=$_.m1*$_.s0;$_.p11=$_.m1*$_.s1;$_.p12=$_.m1*$_.s2;$_.p13=$_.m1*$_.s3;$_.p20=$_.m2*$_.s0;$_.p21=$_.m2*$_.s1;$_.p22=$_.m2*$_.s2;$_.p23=$_.m2*$_.s3;$_.p30=$_.m3*$_.s0;$_.p31=$_.m3*$_.s1;$_.p32=$_.m3*$_.s2;$_.p33=$_.m3*$_.s3;$_.s3=$_.p33%65536+1;$_.s2=$_.p32%65536+~~($_.p33/65536)+$_.p23%65536;$_.s1=$_.p31%65536+~~($_.p32/65536)+($_.p22%65536+~~($_.p23/65536))+$_.p13%65536;$_.s0=$_.p30%65536+~~($_.p31/65536)+($_.p21%65536+~~($_.p22/65536))+($_.p12%65536+~~($_.p13/65536))+$_.p03%65536;$_.s3=$_.s3+65536;$_.s2=$_.s2+65535;$_.s1=$_.s1+65535;$_.s0=$_.s0+65535;$_.s2=~~($_.s3/65536)+$_.s2;$_.s3=$_.s3%65536;$_.s1=~~($_.s2/65536)+$_.s1;$_.s2=$_.s2%65536;$_.s0=~~($_.s1/65536)+$_.s0;$_.s1=$_.s1%65536;$_.s0=$_.s0%65536;var _3x=(($_.s0-32768)*65536+$_.s1^2147483648)&4294967295;var _3y=_3x^_3x>>>11;var _3z=_3y^_3y<<7&-1658038656;var _40=(_3z^_3z<<15&-272236544)&4294967295;$k[$j++]=_40^_40>>>18};$_.createMatrixA=function(){$k[$j++]="nb_pcb";if($_.wr<4){$k[$j++]=~~($_.Pg_sub_block/2)}else{$k[$j++]=~~($_.Pg_sub_block/$_.wr)*$_.wc}var _46=$k[--$j];$_[$k[--$j]]=_46;$_.offset=~~Math.ceil($_.Pg_sub_block/32);$_.effwidth=$_.offset*32;$_.matrixA=$a($_.offset*$_.nb_pcb);for(var _4G=0,_4F=$_.offset*$_.nb_pcb-1;_4G<=_4F;_4G+=1){$p($_.matrixA,_4G,0)}$_.permutation=$a($_.Pg_sub_block);for(var _4M=0,_4L=$_.Pg_sub_block-1;_4M<=_4L;_4M+=1){$p($_.permutation,_4M,_4M)}for(var _4R=0,_4Q=~~($_.Pg_sub_block/$_.wr)-1;_4R<=_4Q;_4R+=1){$_.i=_4R;for(var _4U=0,_4T=$f($_.wr-1);_4U<=_4T;_4U+=1){$_.j=_4U;var _4V=$_.matrixA;var _4W=$_.i;var _4X=$_.effwidth;var _4Y=$_.wr;var _4Z=$_.j;var _4f=$f(31-$f($_.i*$f($_.effwidth+$_.wr)+$_.j)%32);$p(_4V,~~($f(_4W*$f(_4X+_4Y)+_4Z)/32),$g(_4V,~~($f(_4W*$f(_4X+_4Y)+_4Z)/32))|(_4f<0?1>>>-_4f:1<<_4f))}}$_.s0=0;$_.s1=0;$_.s2=11;$_.s3=64569;for(var _4i=1,_4h=$f($_.wc-1);_4i<=_4h;_4i+=1){$_.i=_4i;$_.off_index=~~($_.Pg_sub_block/$_.wr)*$_.i;for(var _4o=0,_4n=$_.Pg_sub_block-1;_4o<=_4n;_4o+=1){$_.j=_4o;$_.lcg64_temper();var _4p=$k[--$j];$k[$j++]=_4p;if(_4p<0){var _4q=$k[--$j];$k[$j++]=$f((_4q^2147483648)+2147483648)}$_.pos=~~($k[--$j]/4294967296*($_.Pg_sub_block-$_.j));for(var _4x=0,_4w=~~($_.Pg_sub_block/$_.wr)-1;_4x<=_4w;_4x+=1){$_.k=_4x;var _4y=$_.matrixA;var _4z=$_.off_index;var _50=$_.k;var _51=$_.offset;var _52=$_.j;var _5A=$g($_.matrixA,~~($g($_.permutation,$_.pos)/32)+$_.k*$_.offset);var _5E=-$f(31-$g($_.permutation,$_.pos)%32);var _5G=31-$_.j%32;$p(_4y,(_4z+_50)*_51+~~(_52/32),$g(_4y,(_4z+_50)*_51+~~(_52/32))|(_5G<0?((_5E<0?_5A>>>-_5E:_5A<<_5E)&1)>>>-_5G:((_5E<0?_5A>>>-_5E:_5A<<_5E)&1)<<_5G))}var _5J=$_.permutation;var _5K=$_.Pg_sub_block;var _5L=$_.j;$p(_5J,_5K-1-_5L,$g($_.permutation,$_.pos));$p($_.permutation,$_.pos,$g(_5J,_5K-1-_5L))}}};$_.createMetadataMatrixA=function(){$_.nb_pcb=~~($_.Pg_sub_block/2);$_.offset=~~Math.ceil($_.Pg_sub_block/32);$_.matrixA=$a($_.offset*$_.nb_pcb);for(var _5Y=0,_5X=$_.offset*$_.nb_pcb-1;_5Y<=_5X;_5Y+=1){$p($_.matrixA,_5Y,0)}$_.permutation=$a($_.Pg_sub_block);for(var _5e=0,_5d=$_.Pg_sub_block-1;_5e<=_5d;_5e+=1){$p($_.permutation,_5e,_5e)}$_.s0=0;$_.s1=0;$_.s2=0;$_.s3=38545;$_.nb_once=~~(~~$f($_.nb_pcb/$_.wc*$_.Pg_sub_block+3)/$_.nb_pcb);for(var _5m=0,_5l=$_.nb_pcb-1;_5m<=_5l;_5m+=1){$_.i=_5m;for(var _5p=0,_5o=$_.nb_once-1;_5p<=_5o;_5p+=1){$_.j=_5p;$_.lcg64_temper();var _5q=$k[--$j];$k[$j++]=_5q;if(_5q<0){var _5r=$k[--$j];$k[$j++]=$f((_5r^2147483648)+2147483648)}$_.pos=~~($k[--$j]/4294967296*($_.Pg_sub_block-$_.j));var _5v=$_.matrixA;var _5w=$_.i;var _5x=$_.offset;var _60=$g($_.permutation,$_.pos);var _65=$f(31-$g($_.permutation,$_.pos)%32);$p(_5v,_5w*_5x+~~(_60/32),$g(_5v,_5w*_5x+~~(_60/32))|(_65<0?1>>>-_65:1<<_65));var _68=$_.permutation;var _69=$_.Pg_sub_block;var _6A=$_.j;$p(_68,_69-1-_6A,$g($_.permutation,$_.pos));$p($_.permutation,$_.pos,$g(_68,_69-1-_6A))}}};$_.GaussJordan=function(){$k[$j++]="nb_pcb";if($_.wr<4){$k[$j++]=~~($_.Pg_sub_block/2)}else{$k[$j++]=~~($_.Pg_sub_block/$_.wr)*$_.wc}var _6K=$k[--$j];$_[$k[--$j]]=_6K;$_.offset=~~Math.ceil($_.Pg_sub_block/32);var _6N=$_.matrixA;$_.matrixH=$A($a(_6N.length),_6N);$k[$j++]=Infinity;for(var _6R=0,_6S=$_.Pg_sub_block;_6R<_6S;_6R++){$k[$j++]=0}$_.column_arrangement=$a();$k[$j++]=Infinity;for(var _6V=0,_6W=$_.Pg_sub_block;_6V<_6W;_6V++){$k[$j++]=false}$_.processed_column=$a();$k[$j++]=Infinity;for(var _6Z=0,_6a=$_.nb_pcb;_6Z<_6a;_6Z++){$k[$j++]=0}$_.zero_lines_nb=$a();$k[$j++]=Infinity;for(var _6d=0,_6e=$_.Pg_sub_block*2;_6d<_6e;_6d++){$k[$j++]=0}$_.swap_col=$a();$_.zero_lines=0;$_.loop0=0;for(var _6i=0,_6h=$_.nb_pcb-1;_6i<=_6h;_6i+=1){$_.i=_6i;$_.pivot_column=$_.Pg_sub_block+1;for(var _6m=0,_6l=$_.Pg_sub_block-1;_6m<=_6l;_6m+=1){$_.j=_6m;var _6r=$g($_.matrixH,~~(($_.offset*32*$_.i+$_.j)/32));var _6v=-(31-($_.offset*32*$_.i+$_.j)%32);if(((_6v<0?_6r>>>-_6v:_6r<<_6v)&1)==1){$_.pivot_column=$_.j;break}}if($_.pivot_column<$_.Pg_sub_block){$p($_.processed_column,$_.pivot_column,true);$p($_.column_arrangement,$_.pivot_column,$_.i);if($_.pivot_column>=$_.nb_pcb){$p($_.swap_col,$_.loop0*2,$_.pivot_column);$_.loop0=$_.loop0+1}$_.off_index=~~($_.pivot_column/32);$_.off_index1=$_.pivot_column%32;for(var _7E=0,_7D=$_.nb_pcb-1;_7E<=_7D;_7E+=1){$_.j=_7E;if($_.i!=$_.j){var _7L=$g($_.matrixH,$_.off_index+$_.j*$_.offset);var _7N=-(31-$_.off_index1);if(((_7N<0?_7L>>>-_7N:_7L<<_7N)&1)==1){for(var _7Q=0,_7P=$_.offset-1;_7Q<=_7P;_7Q+=1){$_.k=_7Q;var _7R=$_.matrixH;var _7S=$_.offset;var _7T=$_.j;var _7U=$_.k;$p(_7R,_7S*_7T+_7U,$xo($g(_7R,_7S*_7T+_7U),$g($_.matrixH,$_.offset*$_.i+$_.k)))}}}}}else{$p($_.zero_lines_nb,$_.zero_lines,$_.i);$_.zero_lines=$_.zero_lines+1}}$_.matrix_rank=$_.nb_pcb-$_.zero_lines;$_.loop2=0;for(var _7k=$_.matrix_rank,_7j=$_.nb_pcb-1;_7k<=_7j;_7k+=1){$_.i=_7k;if($g($_.column_arrangement,$_.i)>0){for(var _7q=0,_7p=$_.nb_pcb-1;_7q<=_7p;_7q+=1){$_.j=_7q;if($nt($g($_.processed_column,$_.j))){$p($_.column_arrangement,$_.j,$g($_.column_arrangement,$_.i));$p($_.column_arrangement,$_.i,0);$p($_.processed_column,$_.j,true);$p($_.processed_column,$_.i,false);$p($_.swap_col,$_.loop0*2,$_.i);$p($_.swap_col,$_.loop0*2+1,$_.j);$p($_.column_arrangement,$_.i,$_.j);$_.loop0=$_.loop0+1;$_.loop2=$_.loop2+1;break}}}}$_.loop1=0;for(var _8I=0,_8H=$_.nb_pcb-1;_8I<=_8H;_8I+=1){$_.kl=_8I;if($nt($g($_.processed_column,$_.kl))&&$_.loop1<$_.loop0-$_.loop2){$p($_.column_arrangement,$_.kl,$g($_.column_arrangement,$g($_.swap_col,$_.loop1*2)));$p($_.processed_column,$_.kl,true);$p($_.swap_col,$_.loop1*2+1,$_.kl);$_.loop1=$_.loop1+1}}$_.loop1=0;for(var _8e=0,_8d=$_.nb_pcb-1;_8e<=_8d;_8e+=1){$_.kl=_8e;if($nt($g($_.processed_column,$_.kl))){$p($_.column_arrangement,$_.kl,$g($_.zero_lines_nb,$_.loop1));$_.loop1=$_.loop1+1}}for(var _8q=0,_8p=$_.nb_pcb-1;_8q<=_8p;_8q+=1){$_.i=_8q;for(var _8t=0,_8s=$_.offset-1;_8t<=_8s;_8t+=1){$_.j=_8t;$p($_.matrixA,$_.i*$_.offset+$_.j,$g($_.matrixH,$f($g($_.column_arrangement,$_.i)*$_.offset+$_.j)))}}$_.tmp=0;for(var _97=0,_96=$_.loop0-1;_97<=_96;_97+=1){$_.i=_97;for(var _9A=0,_99=$_.nb_pcb-1;_9A<=_99;_9A+=1){$_.j=_9A;var _9H=$g($_.matrixA,~~($g($_.swap_col,$_.i*2)/32)+$_.j*$_.offset);var _9L=-$f(31-$g($_.swap_col,$_.i*2)%32);$_.tmp=(-((_9L<0?_9H>>>-_9L:_9H<<_9L)&1)^$_.tmp)&1^$_.tmp;var _9O=$_.matrixA;var _9R=$g($_.swap_col,$_.i*2);var _9S=$_.j;var _9T=$_.offset;var _9b=$g($_.matrixA,~~($g($_.swap_col,$_.i*2+1)/32)+$_.j*$_.offset);var _9f=-$f(31-$g($_.swap_col,$_.i*2+1)%32);var _9q=$f(31-$g($_.swap_col,$_.i*2)%32);$p(_9O,~~(_9R/32)+_9S*_9T,$g(_9O,~~(_9R/32)+_9S*_9T)^(-((_9f<0?_9b>>>-_9f:_9b<<_9f)&1)^$g($_.matrixA,~~($g($_.swap_col,$_.i*2)/32)+$_.j*$_.offset))&(_9q<0?1>>>-_9q:1<<_9q));var _9r=$_.matrixA;var _9u=$g($_.swap_col,$_.i*2+1);var _9v=$_.j;var _9w=$_.offset;var _A9=$f(31-$g($_.swap_col,$_.i*2+1)%32);$p(_9r,~~(_9u/32)+_9v*_9w,$g(_9r,~~(_9u/32)+_9v*_9w)^(-($_.tmp&1)^$g($_.matrixA,~~($g($_.swap_col,$_.i*2+1)/32)+$_.j*$_.offset))&(_A9<0?1>>>-_A9:1<<_A9))}}};$_.createGeneratorMatrix=function(){$_.pn=$_.Pg_sub_block-$_.matrix_rank;$_.offset=~~Math.ceil($_.pn/32);$_.effwidth=$_.offset*32;$_.offset_cap=~~Math.ceil($_.Pg_sub_block/32);$_.G=$a($_.offset*$_.Pg_sub_block);for(var _AL=0,_AK=$_.offset*$_.Pg_sub_block-1;_AL<=_AK;_AL+=1){$p($_.G,_AL,0)}for(var _AP=0,_AO=$_.pn-1;_AP<=_AO;_AP+=1){$_.i=_AP;var _AQ=$_.G;var _AR=$_.Pg_sub_block;var _AS=$_.pn;var _AT=$_.i;var _AU=$_.offset;var _AV=$_.i;var _AY=31-$_.i%32;$p(_AQ,(_AR-_AS+_AT)*_AU+~~(_AV/32),$g(_AQ,(_AR-_AS+_AT)*_AU+~~(_AV/32))|(_AY<0?1>>>-_AY:1<<_AY))}$_.matrix_index=$_.Pg_sub_block-$_.pn;$_.loop0=0;for(var _Af=0,_Ae=($_.Pg_sub_block-$_.pn)*$_.effwidth-1;_Af<=_Ae;_Af+=1){$_.i=_Af;if($_.matrix_index>=$_.Pg_sub_block){$_.loop0=$_.loop0+1;$_.matrix_index=$_.Pg_sub_block-$_.pn}if($_.i%$_.effwidth<$_.pn){var _Ao=$_.G;var _Ap=$_.i;var _Av=$g($_.matrixA,~~($_.matrix_index/32)+$_.offset_cap*$_.loop0);var _Ax=-(31-$_.matrix_index%32);var _B2=31-$_.i%32;$p(_Ao,~~(_Ap/32),$g(_Ao,~~(_Ap/32))^(-((_Ax<0?_Av>>>-_Ax:_Av<<_Ax)&1)^$g($_.G,~~($_.i/32)))&(_B2<0?1>>>-_B2:1<<_B2));$_.matrix_index=$_.matrix_index+1}}};$_.ldpc=function(){$_.wr=$k[--$j];$_.wc=$k[--$j];$k[$j++]=Infinity;var _B6=$k[--$j];var _B7=$k[--$j];$k[$j++]=_B6;$F(_B7,function(){var _B8=$k[--$j];$k[$j++]=$f(_B8-48)});$_.data=$a();$_.Pn=$_.data.length;if($_.wr!=-1){$_.Pg=~~(Math.ceil(Math.ceil($_.Pn*$_.wr/$f($_.wr-$_.wc))/$_.wr)*$_.wr);$_.nb_sub_blocks=~~($_.Pg/2700)+1;$_.Pg_sub_block=~~(~~($_.Pg/$_.nb_sub_blocks)/$_.wr)*$_.wr;$_.Pn_sub_block=~~($_.Pg_sub_block*$f($_.wr-$_.wc)/$_.wr);$_.nb_sub_blocks=~~($_.Pg/$_.Pg_sub_block);$k[$j++]="encoding_iterations";$k[$j++]=~~($_.Pg/$_.Pg_sub_block);if($_.Pn_sub_block*$_.nb_sub_blocks<$_.Pn){var _BY=$k[--$j];$k[$j++]=$f(_BY-1)}var _BZ=$k[--$j];$_[$k[--$j]]=_BZ;$_.createMatrixA()}else{$_.Pg=$_.Pn*2;$_.nb_sub_blocks=1;$_.Pg_sub_block=$_.Pg;$_.Pn_sub_block=$_.Pn;$_.encoding_iterations=1;$_.createMetadataMatrixA()}$_.GaussJordan();$_.createGeneratorMatrix();$_.ecc_encoded_data=$a($_.Pg);$_.offset=~~Math.ceil(($_.Pg_sub_block-$_.matrix_rank)/32);for(var _Bk=0,_Bj=$_.encoding_iterations-1;_Bk<=_Bj;_Bk+=1){$_.iter=_Bk;for(var _Bn=0,_Bm=$_.Pg_sub_block-1;_Bn<=_Bm;_Bn+=1){$_.i=_Bn;$_.temp=0;$_.loop0=0;$_.offset_index=$_.offset*$_.i;for(var _Bv=$_.iter*$_.Pn_sub_block,_Bu=($_.iter+1)*$_.Pn_sub_block-1;_Bv<=_Bu;_Bv+=1){var _C1=$g($_.G,$_.offset_index+~~($_.loop0/32));var _C3=-(31-$_.loop0%32);$_.temp=$g($_.data,_Bv)&((_C3<0?_C1>>>-_C3:_C1<<_C3)&1)^$_.temp;$_.loop0=$_.loop0+1}$p($_.ecc_encoded_data,$_.i+$_.iter*$_.Pg_sub_block,$_.temp)}}if($_.encoding_iterations!=$_.nb_sub_blocks){$_.start=$_.encoding_iterations*$_.Pn_sub_block;$_.last_index=$_.encoding_iterations*$_.Pg_sub_block;$_.Pg_sub_block=$_.Pg-$_.encoding_iterations*$_.Pg_sub_block;$_.Pn_sub_block=~~($_.Pg_sub_block*$f($_.wr-$_.wc)/$_.wr);$_.createMatrixA();$_.GaussJordan();$_.createGeneratorMatrix();$_.offset=~~Math.ceil(($_.Pg_sub_block-$_.matrix_rank)/32);for(var _CS=0,_CR=$_.Pg_sub_block-1;_CS<=_CR;_CS+=1){$_.i=_CS;$_.temp=0;$_.loop0=0;$_.offset_index=$_.offset*$_.i;for(var _CY=$_.start,_CX=$_.Pn-1;_CY<=_CX;_CY+=1){var _Ce=$g($_.G,$_.offset_index+~~($_.loop0/32));var _Cg=-(31-$_.loop0%32);$_.temp=$g($_.data,_CY)&((_Cg<0?_Ce>>>-_Cg:_Ce<<_Cg)&1)^$_.temp;$_.loop0=$_.loop0+1}$p($_.ecc_encoded_data,$_.i+$_.last_index,$_.temp)}}$_.out=$s($_.Pg);for(var _Cr=0,_Cq=$_.Pg-1;_Cr<=_Cq;_Cr+=1){$p($_.out,_Cr,$f($g($_.ecc_encoded_data,_Cr)+48))}$k[$j++]=$_.out};$k[$j++]="bits";$k[$j++]=$_.bits;$k[$j++]=$_.datawc;$k[$j++]=$_.datawr;$_.ldpc();var _Cz=$k[--$j];$_[$k[--$j]]=_Cz;$_.s0=0;$_.s1=0;$_.s2=3;$_.s3=30151;for(var _D2=$_.bits.length-1;_D2>=1;_D2-=1){$_.l=_D2;$_.lcg64_temper();var _D3=$k[--$j];$k[$j++]=_D3;if(_D3<0){var _D4=$k[--$j];$k[$j++]=$f((_D4^2147483648)+2147483648)}$_.r=~~($k[--$j]/4294967296*($_.l+1));$p($_.bits,$_.l,$g($_.bits,$_.r));$p($_.bits,$_.r,$g($_.bits,$_.l))}$_.tmpbits=$s($_.C);$P($_.tmpbits,0,$_.bits);$_.j=$_.bits.length;for(var _DO=0,_DP=~~($f($f($_.C-$_.j)+1)/2);_DO<_DP;_DO++){$p($_.tmpbits,$_.j,48);if($_.j+1<$_.C){$p($_.tmpbits,$_.j+1,49)}$_.j=$_.j+2}$_.bits=$_.tmpbits;if($_.colors==4){$_.bi=0;$_.gi=1;$_.mi=2;$_.yi=3;$_.ki=4;$_.wi=5;$k[$j++]=Infinity;$k[$j++]=$_.bi;$k[$j++]="0000FF";$k[$j++]=$_.gi;$k[$j++]="00FF00";$k[$j++]=$_.mi;$k[$j++]="FF00FF";$k[$j++]=$_.yi;$k[$j++]="FFFF00";$k[$j++]=$_.ki;$k[$j++]="000000";$k[$j++]=$_.wi;$k[$j++]="FFFFFF";$_.palette=$d();$_.metacolorindex=$a([$_.bi,$_.gi,$_.mi,$_.yi]);$_.palettelayout=$a([$_.bi,$_.gi,$_.mi,$_.yi])}else{var _Dw=new Map([[8,$a([2,2,2])],[16,$a([4,2,2])],[32,$a([4,4,2])],[64,$a([4,4,4])],[128,$a([8,4,4])],[256,$a([8,8,4])]]);$_.rgbres=$g(_Dw,$_.colors);$k[$j++]="rvals";$k[$j++]=$g($_.rgbres,0);$k[$j++]=Infinity;var _E1=$k[--$j];var _E3=$f($k[--$j]-1);$k[$j++]=_E1;$k[$j++]=_E3;for(var _E5=0,_E4=_E3;_E5<=_E4;_E5+=1){var _E6=$k[--$j];$k[$j++]=~~Math.round(_E5*(255/_E6));$k[$j++]=_E6}$j--;var _E7=$a();$_[$k[--$j]]=_E7;$k[$j++]="gvals";$k[$j++]=$g($_.rgbres,1);$k[$j++]=Infinity;var _EB=$k[--$j];var _ED=$f($k[--$j]-1);$k[$j++]=_EB;$k[$j++]=_ED;for(var _EF=0,_EE=_ED;_EF<=_EE;_EF+=1){var _EG=$k[--$j];$k[$j++]=~~Math.round(_EF*(255/_EG));$k[$j++]=_EG}$j--;var _EH=$a();$_[$k[--$j]]=_EH;$k[$j++]="bvals";$k[$j++]=$g($_.rgbres,2);$k[$j++]=Infinity;var _EL=$k[--$j];var _EN=$f($k[--$j]-1);$k[$j++]=_EL;$k[$j++]=_EN;for(var _EP=0,_EO=_EN;_EP<=_EO;_EP+=1){var _EQ=$k[--$j];$k[$j++]=~~Math.round(_EP*(255/_EQ));$k[$j++]=_EQ}$j--;var _ER=$a();$_[$k[--$j]]=_ER;var _ET=$_.colors;$_.palette=new Map;var _EU=$_.colors;var _EV=64;if(64>_EU){var _=_EU;_EU=_EV;_EV=_}$_.palettelayout=$a(_EV);$_.i=0;$_.j=8;$F($_.rvals,function(){$_.r=$k[--$j];$F($_.gvals,function(){$_.g=$k[--$j];$F($_.bvals,function(){$_.b=$k[--$j];var _Eh=$Z($s(6),"000000");var _Ej=$R($s(6),$_.r<<16|$_.g<<8|$_.b,16);$P(_Eh,6-_Ej.length,_Ej);$k[$j++]=_Eh;$k[$j++]=false;if($eq(_Eh,"000000")){$_.ki=$_.i;$j--;$k[$j++]=true}var _El=$k[--$j];var _Em=$k[--$j];$k[$j++]=_Em;$k[$j++]=_El;if($eq(_Em,"0000FF")){$_.bi=$_.i;$j--;$k[$j++]=true}var _Eo=$k[--$j];var _Ep=$k[--$j];$k[$j++]=_Ep;$k[$j++]=_Eo;if($eq(_Ep,"00FF00")){$_.gi=$_.i;$j--;$k[$j++]=true}var _Er=$k[--$j];var _Es=$k[--$j];$k[$j++]=_Es;$k[$j++]=_Er;if($eq(_Es,"00FFFF")){$_.ci=$_.i;$j--;$k[$j++]=true}var _Eu=$k[--$j];var _Ev=$k[--$j];$k[$j++]=_Ev;$k[$j++]=_Eu;if($eq(_Ev,"FF0000")){$_.ri=$_.i;$j--;$k[$j++]=true}var _Ex=$k[--$j];var _Ey=$k[--$j];$k[$j++]=_Ey;$k[$j++]=_Ex;if($eq(_Ey,"FF00FF")){$_.mi=$_.i;$j--;$k[$j++]=true}var _F0=$k[--$j];var _F1=$k[--$j];$k[$j++]=_F1;$k[$j++]=_F0;if($eq(_F1,"FFFF00")){$_.yi=$_.i;$j--;$k[$j++]=true}var _F3=$k[--$j];var _F4=$k[--$j];$k[$j++]=_F4;$k[$j++]=_F3;if($eq(_F4,"FFFFFF")){$_.wi=$_.i;$j--;$k[$j++]=true}if($nt($k[--$j])){if($_.colors<=64||($_.colors==128&&($_.r==0||$_.r==73||$_.r==182||$_.r==255)||$_.colors==256&&($_.r==0||$_.r==73||$_.r==182||$_.r==255)&&($_.g==0||$_.g==73||$_.g==182||$_.g==255))){$p($_.palettelayout,$_.j,$_.i);$_.j=$_.j+1}}$p($_.palette,$_.i,$k[--$j]);$_.i=$_.i+1})})});$P($_.palettelayout,0,$a([$_.ki,$_.bi,$_.gi,$_.ci,$_.ri,$_.mi,$_.yi,$_.wi]));$_.metacolorindex=$a([$_.ki,$_.bi,$_.gi,$_.ci,$_.ri,$_.mi,$_.yi,$_.wi])}$k[$j++]=Infinity;for(var _Fp=0,_Fq=$_.rows*$_.cols;_Fp<_Fq;_Fp++){$k[$j++]=-1}$_.pixs=$a();$_.jmv=function(){var _Ft=$k[--$j];var _Fu=$k[--$j];$k[$j++]=$f(_Fu+_Ft*$_.cols)};if(!$_.slave){$_.fpat=$a([$a([1,1,1,0,0]),$a([1,2,2,0,0]),$a([1,2,1,2,1]),$a([0,0,2,2,1]),$a([0,0,1,1,1])]);$_.fmap=$a([$a([-1,$_.bi,$_.yi]),$a([-1,$_.yi,$_.bi]),$a([-1,$_.gi,$_.mi]),$a([-1,$_.mi,$_.gi])])}else{$_.fpat=$a([$a([0,0,0,0,0]),$a([0,2,2,0,0]),$a([0,2,1,2,0]),$a([0,0,2,2,0]),$a([0,0,0,0,0])]);$_.fmap=$a([$a([-1,$_.ki,$_.wi]),$a([-1,$_.ki,$_.wi]),$a([-1,$_.ki,$_.wi]),$a([-1,$_.ki,$_.wi])])}for(var _GY=0;_GY<=4;_GY+=1){$_.y=_GY;for(var _GZ=0;_GZ<=4;_GZ+=1){$_.x=_GZ;$_.fpb=$g($g($_.fpat,$_.y),$_.x);$k[$j++]=$_.pixs;$k[$j++]=$_.x+1;$k[$j++]=$_.y+1;$_.jmv();var _Gm=$k[--$j];$p($k[--$j],_Gm,$g($g($_.fmap,0),$_.fpb));$k[$j++]=$_.pixs;$k[$j++]=$_.x+1;$k[$j++]=$f($f($_.rows-$_.y)-2);$_.jmv();var _Gw=$k[--$j];$p($k[--$j],_Gw,$g($g($_.fmap,1),$_.fpb));$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.x+$_.cols)-6);$k[$j++]=$_.y+1;$_.jmv();var _H6=$k[--$j];$p($k[--$j],_H6,$g($g($_.fmap,2),$_.fpb));$k[$j++]=$_.pixs;$k[$j++]=$f($f($_.x+$_.cols)-6);$k[$j++]=$f($f($_.rows-$_.y)-2);$_.jmv();var _HH=$k[--$j];$p($k[--$j],_HH,$g($g($_.fmap,3),$_.fpb))}}$_.algnpat0=$a([$a([$_.ki,$_.ki,-1]),$a([$_.ki,$_.wi,$_.ki]),$a([-1,$_.ki,$_.ki])]);$_.algnpat1=$a([$a([-1,$_.ki,$_.ki]),$a([$_.ki,$_.wi,$_.ki]),$a([$_.ki,$_.ki,-1])]);$_.num=~~Math.round($_.cols/16)-1;$_.algnrpos=$a([3,17]);if($_.num>0){$k[$j++]=Infinity;for(var _Hk=0,_Hj=$_.num;_Hk<=_Hj;_Hk+=1){$k[$j++]=~~(_Hk*($f($_.cols-7)/$_.num))+3}$_.algnrpos=$a()}$_.num=~~Math.round($_.rows/16)-1;$_.algncpos=$a([3,17]);if($_.num>0){$k[$j++]=Infinity;for(var _Ht=0,_Hs=$_.num;_Ht<=_Hs;_Ht+=1){$k[$j++]=~~(_Ht*($f($_.rows-7)/$_.num))+3}$_.algncpos=$a()}$_.putalgnpat=function(){$_.pp=$k[--$j];$_.py=$k[--$j];$_.px=$k[--$j];for(var _I0=0;_I0<=2;_I0+=1){$_.pb=_I0;for(var _I1=0;_I1<=2;_I1+=1){$_.pa=_I1;$k[$j++]=$_.pixs;$k[$j++]=$f($_.px+$_.pa);$k[$j++]=$f($_.py+$_.pb);$_.jmv();var _IC=$k[--$j];$p($k[--$j],_IC,$g($g($_.pp,$_.pb),$_.pa))}}};for(var _IG=0,_IF=$_.algncpos.length-1;_IG<=_IF;_IG+=1){$_.j=_IG;$_.y=$g($_.algncpos,$_.j);for(var _IM=0,_IL=$_.algnrpos.length-1;_IM<=_IL;_IM+=1){$_.i=_IM;$_.x=$g($_.algnrpos,$_.i);$k[$j++]=$_.pixs;$k[$j++]=$_.x;$k[$j++]=$_.y;$_.jmv();var _IT=$k[--$j];if($g($k[--$j],_IT)==-1){$k[$j++]=$f($_.x-1);$k[$j++]=$f($_.y-1);if(($_.i+$_.j)%2==0){$k[$j++]=$_.algnpat0}else{$k[$j++]=$_.algnpat1}$_.putalgnpat()}}}if(!$_.slave){var _JL=$a([$a([6,1]),$a([6,2]),$a([6,3]),$a([6,4]),$a([6,5]),$a([6,6]),$a([5,6]),$a([4,6]),$a([3,6]),$a([2,6]),$a([1,6]),$a([7,1]),$a([7,2]),$a([7,3]),$a([7,4]),$a([7,5]),$a([7,6]),$a([7,7]),$a([6,7]),$a([5,7]),$a([4,7]),$a([3,7]),$a([2,7]),$a([1,7]),$a([8,1]),$a([8,2]),$a([8,3]),$a([8,4]),$a([8,5]),$a([8,6]),$a([8,7]),$a([8,8]),$a([7,8]),$a([6,8]),$a([5,8]),$a([4,8]),$a([3,8]),$a([2,8]),$a([1,8]),$a([9,1]),$a([9,2]),$a([9,3]),$a([9,4]),$a([9,5])]);for(var _JM=0,_JN=_JL.length;_JM<_JN;_JM++){$q($g(_JL,_JM));$_.y=$k[--$j];$_.x=$k[--$j];$k[$j++]=$a([$_.x,$_.y]);$k[$j++]=$a([-$_.x,$_.y]);$k[$j++]=$a([-$_.x,-$_.y]);$k[$j++]=$a([$_.x,-$_.y])}$as($a(176));$_.metadatamap=$k[--$j];$_.palettemap1=$a([$a([4,1]),$a([4,2]),$a([5,1]),$a([5,2]),$a([2,4]),$a([2,5]),$a([1,4]),$a([1,5]),$a([-2,1]),$a([-2,2]),$a([-1,1]),$a([-1,2]),$a([-4,4]),$a([-4,5]),$a([-5,4]),$a([-5,5])]);$_.palettemap2=$a([$a([-4,-5]),$a([-4,-4]),$a([-5,-5]),$a([-5,-4]),$a([-2,-2]),$a([-2,-1]),$a([-1,-2]),$a([-1,-1]),$a([2,-5]),$a([2,-4]),$a([1,-5]),$a([1,-4]),$a([4,-2]),$a([4,-1]),$a([5,-2]),$a([5,-1])])}else{$k[$j++]=Infinity;for(var _KD=1;_KD<=19;_KD+=1){$_.i=_KD;$k[$j++]=$a([0,$_.i]);$k[$j++]=$a([1,$_.i])}for(var _KI=5;_KI<=12;_KI+=1){$_.i=_KI;$k[$j++]=$a([2,$_.i]);$k[$j++]=$a([3,$_.i])}$_.metadatamap=$a();$k[$j++]=Infinity;for(var _KO=5;_KO<=12;_KO+=1){$k[$j++]=_KO;$k[$j++]=Infinity;var _KP=$k[--$j];var _KQ=$k[--$j];$k[$j++]=_KP;$k[$j++]=4;$k[$j++]=_KQ;var _KR=$a();$k[$j++]=_KR}for(var _KS=12;_KS>=5;_KS-=1){$k[$j++]=_KS;$k[$j++]=Infinity;var _KT=$k[--$j];var _KU=$k[--$j];$k[$j++]=_KT;$k[$j++]=5;$k[$j++]=_KU;var _KV=$a();$k[$j++]=_KV}for(var _KW=5;_KW<=12;_KW+=1){$k[$j++]=_KW;$k[$j++]=Infinity;var _KX=$k[--$j];var _KY=$k[--$j];$k[$j++]=_KX;$k[$j++]=6;$k[$j++]=_KY;var _KZ=$a();$k[$j++]=_KZ}for(var _Ka=12;_Ka>=5;_Ka-=1){$k[$j++]=_Ka;$k[$j++]=Infinity;var _Kb=$k[--$j];var _Kc=$k[--$j];$k[$j++]=_Kb;$k[$j++]=7;$k[$j++]=_Kc;var _Kd=$a();$k[$j++]=_Kd}$_.palettemap1=$a();$k[$j++]=Infinity;var _Kf=$_.palettemap1;for(var _Kg=0,_Kh=_Kf.length;_Kg<_Kh;_Kg++){$k[$j++]=$g(_Kf,_Kg);$k[$j++]=Infinity;var _Kj=$k[--$j];var _Kk=$k[--$j];$k[$j++]=_Kj;$q(_Kk);var _Kl=$k[--$j];var _Km=$k[--$j];$k[$j++]=-_Km;$k[$j++]=-_Kl;var _Kn=$a();$k[$j++]=_Kn}$_.palettemap2=$a()}var _Kp=$_.metadatamap;for(var _Kq=0,_Kr=_Kp.length;_Kq<_Kr;_Kq++){var _Ks=$g(_Kp,_Kq);var _Kt=$g(_Ks,0);$k[$j++]=_Ks;$k[$j++]=_Kt;if(_Kt<0){var _Kv=$k[--$j];var _Kw=$k[--$j];$p(_Kw,0,$f($f(_Kv+$_.cols)-1));$k[$j++]=_Kw}else{$j--}var _Kx=$k[--$j];var _Ky=$g(_Kx,1);$k[$j++]=_Kx;$k[$j++]=_Ky;if(_Ky<0){var _L0=$k[--$j];var _L1=$k[--$j];$p(_L1,1,$f($f(_L0+$_.rows)-1));$k[$j++]=_L1}else{$j--}$j--}var _L2=$_.palettemap1;for(var _L3=0,_L4=_L2.length;_L3<_L4;_L3++){var _L5=$g(_L2,_L3);var _L6=$g(_L5,0);$k[$j++]=_L5;$k[$j++]=_L6;if(_L6<0){var _L8=$k[--$j];var _L9=$k[--$j];$p(_L9,0,$f($f(_L8+$_.cols)-1));$k[$j++]=_L9}else{$j--}var _LA=$k[--$j];var _LB=$g(_LA,1);$k[$j++]=_LA;$k[$j++]=_LB;if(_LB<0){var _LD=$k[--$j];var _LE=$k[--$j];$p(_LE,1,$f($f(_LD+$_.rows)-1));$k[$j++]=_LE}else{$j--}$j--}var _LF=$_.palettemap2;for(var _LG=0,_LH=_LF.length;_LG<_LH;_LG++){var _LI=$g(_LF,_LG);var _LJ=$g(_LI,0);$k[$j++]=_LI;$k[$j++]=_LJ;if(_LJ<0){var _LL=$k[--$j];var _LM=$k[--$j];$p(_LM,0,$f($f(_LL+$_.cols)-1));$k[$j++]=_LM}else{$j--}var _LN=$k[--$j];var _LO=$g(_LN,1);$k[$j++]=_LN;$k[$j++]=_LO;if(_LO<0){var _LQ=$k[--$j];var _LR=$k[--$j];$p(_LR,1,$f($f(_LQ+$_.rows)-1));$k[$j++]=_LR}else{$j--}$j--}for(var _LU=0,_LT=$f($_.nummetamodules-1);_LU<=_LT;_LU+=1){$k[$j++]=$_.pixs;$q($g($_.metadatamap,_LU));$_.jmv();var _LY=$k[--$j];$p($k[--$j],_LY,0)}if(!$_.slave){var _Lb=$_.colors;var _Lc=16;if(16>_Lb){var _=_Lb;_Lb=_Lc;_Lc=_}for(var _Le=0,_Ld=_Lc-1;_Le<=_Ld;_Le+=1){$_.i=_Le;var _Lh=$g($_.palettelayout,$_.i);$k[$j++]=_Lh;$k[$j++]=$_.pixs;$k[$j++]=_Lh;$q($g($_.palettemap1,$_.i));$_.jmv();var _Lm=$k[--$j];var _Ln=$k[--$j];$p($k[--$j],_Lm,_Ln);var _Lq=$k[--$j];$k[$j++]=$_.pixs;$k[$j++]=_Lq;$q($g($_.palettemap2,$_.i));$_.jmv();var _Lu=$k[--$j];var _Lv=$k[--$j];$p($k[--$j],_Lu,_Lv)}$_.i=16}else{$_.i=0}$_.j=$_.nummetamodules;for(var _M1=$_.i,_M0=$_.palettelayout.length-1;_M1<=_M0;_M1+=2){$_.i=_M1;var _M4=$g($_.palettelayout,$_.i);$k[$j++]=_M4;$k[$j++]=$_.pixs;$k[$j++]=_M4;$q($g($_.metadatamap,$_.j));$_.jmv();var _M9=$k[--$j];var _MA=$k[--$j];$p($k[--$j],_M9,_MA);var _MD=$k[--$j];$k[$j++]=$_.pixs;$k[$j++]=_MD;$q($g($_.metadatamap,$f($_.j+2)));$_.jmv();var _MH=$k[--$j];var _MI=$k[--$j];$p($k[--$j],_MH,_MI);var _MM=$g($_.palettelayout,$_.i+1);$k[$j++]=_MM;$k[$j++]=$_.pixs;$k[$j++]=_MM;$q($g($_.metadatamap,$f($_.j+1)));$_.jmv();var _MR=$k[--$j];var _MS=$k[--$j];$p($k[--$j],_MR,_MS);var _MV=$k[--$j];$k[$j++]=$_.pixs;$k[$j++]=_MV;$q($g($_.metadatamap,$f($_.j+3)));$_.jmv();var _MZ=$k[--$j];var _Ma=$k[--$j];$p($k[--$j],_MZ,_Ma);$_.j=$f($_.j+4)}var _N2=$a([function(){var _Md=$k[--$j];var _Me=$k[--$j];$k[$j++]=$f(_Me+_Md)%$_.colors},function(){$j--;var _Mh=$k[--$j];$k[$j++]=_Mh%$_.colors},function(){var _Mi=$k[--$j];var _Mj=$k[--$j];$k[$j++]=_Mi;$k[$j++]=_Mj;$j--;var _Ml=$k[--$j];$k[$j++]=_Ml%$_.colors},function(){var _Mm=$k[--$j];var _Mn=$k[--$j];$k[$j++]=(~~(_Mm/3)+~~(_Mn/2))%$_.colors},function(){var _Mp=$k[--$j];var _Mq=$k[--$j];$k[$j++]=(~~(_Mp/2)+~~(_Mq/3))%$_.colors},function(){var _Ms=$k[--$j];var _Mu=$f($k[--$j]+_Ms);$k[$j++]=(~~(_Mu/2)+~~(_Mu/3))%$_.colors},function(){var _Mw=$k[--$j];var _Mx=$k[--$j];$k[$j++]=$f(_Mw*(_Mx*_Mx)%7+$f(_Mw+_Mx*_Mx)*2%19)%$_.colors},function(){var _Mz=$k[--$j];var _N0=$k[--$j];$k[$j++]=$f(_N0*(_Mz*_Mz)%5+$f(_Mz*_Mz+_N0*2)%13)%$_.colors}]);$_.maskfuncs=_N2;if($_.mask!=-1){$_.maskfuncs=$a([$g($_.maskfuncs,$_.mask)]);$_.bestmaskval=$_.mask}$_.masks=$a($_.maskfuncs.length);for(var _ND=0,_NC=$_.masks.length-1;_ND<=_NC;_ND+=1){$_.m=_ND;$_.mask=$a($_.rows*$_.cols);for(var _NJ=0,_NI=$f($_.rows-1);_NJ<=_NI;_NJ+=1){$_.j=_NJ;for(var _NM=0,_NL=$f($_.cols-1);_NM<=_NL;_NM+=1){$_.i=_NM;$k[$j++]=$_.pixs;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.jmv();var _NQ=$k[--$j];if($g($k[--$j],_NQ)==-1){$k[$j++]=$_.i;$k[$j++]=$_.j;if($g($_.maskfuncs,$_.m)()===true){break}}else{$k[$j++]=0}$k[$j++]=$_.mask;$k[$j++]=$_.i;$k[$j++]=$_.j;$_.jmv();var _Nb=$k[--$j];var _Nc=$k[--$j];$p(_Nc,_Nb,$k[--$j])}}$p($_.masks,$_.m,$_.mask)}$_.posx=0;$_.posy=0;$_.i=0;for(;;){if($_.posx==$_.cols){break}$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.jmv();var _Nm=$k[--$j];if($g($k[--$j],_Nm)==-1){var _Ns=$G($_.bits,$_.i,$_.databpm);$k[$j++]=0;for(var _Nt=0,_Nu=_Ns.length;_Nt<_Nu;_Nt++){var _Nw=$k[--$j];$k[$j++]=$f(_Nw+$f($g(_Ns,_Nt)-48))*2}var _Nx=$k[--$j];$k[$j++]=~~(_Nx/2);$k[$j++]=$_.pixs;$k[$j++]=$_.posx;$k[$j++]=$_.posy;$_.jmv();var _O1=$k[--$j];var _O2=$k[--$j];$p(_O2,_O1,$k[--$j]);$_.i=$_.i+$_.databpm}$_.posy=$_.posy+1;if($_.posy==$_.rows){$_.posy=0;$_.posx=$_.posx+1}}$_.evalrle=function(){$_.scrle=$k[--$j];$_.scr1=0;$_.scr3=0;for(var _OD=0,_OC=$_.scrle.length-2;_OD<=_OC;_OD+=2){$_.j=_OD;if($g($_.scrle,$_.j+1)!=-1){var _OJ=$g($_.scrle,$_.j);$k[$j++]=_OJ;if(_OJ>=5){$_.scr1=$f($f($k[--$j]-2)+$_.scr1)}else{$j--}if($_.j>=4&&$_.j<=$_.scrle.length-5){var _OR=$G($_.scrle,$_.j-4,10);$k[$j++]=_OR;for(var _OS=0,_OT=_OR.length;_OS<_OT;_OS++){$k[$j++]=$g(_OR,_OS)==1}$j--;for(var _OV=0,_OW=4;_OV<_OW;_OV++){var _OX=$k[--$j];var _OY=$k[--$j];$k[$j++]=_OX;$k[$j++]=_OY;$j--;var _OZ=$k[--$j];var _Oa=$k[--$j];$k[$j++]=$an(_Oa,_OZ)}if($k[--$j]){$k[$j++]=Infinity;var _Oc=$k[--$j];var _Od=$k[--$j];$k[$j++]=_Oc;$q(_Od);var _Oe=$k[--$j];var _Of=$k[--$j];var _Og=$k[--$j];var _Oh=$k[--$j];var _Oi=$k[--$j];var _Oj=$k[--$j];var _Ok=$k[--$j];var _Ol=$k[--$j];var _Om=$k[--$j];$k[$j++]=_Om;$k[$j++]=_Ol;$k[$j++]=_Ok;$k[$j++]=_Oj;$k[$j++]=_Oi;$k[$j++]=_Oh;$k[$j++]=_Og;$k[$j++]=_Of;$k[$j++]=_Oe;if($eq(_Om,_Oi)&&$eq(_Om,_Oe)&&$eq(_Ok,_Og)){var _On=$k[--$j];var _Oo=$k[--$j];var _Op=$k[--$j];$_.c4=_Op;$_.c5=_On;$k[$j++]=_Op;$k[$j++]=_Oo;if($_.c4==$_.bi&&$_.c5==$_.yi||($_.c4==$_.yi&&$_.c5==$_.bi||($_.c4==$_.gi&&$_.c5==$_.mi||$_.c4==$_.mi&&$_.c5==$_.gi))){$_.scr3=$_.scr3+100}}$l()}else{$j--}}}}$k[$j++]=$_.scr1;$k[$j++]=$_.scr3};$_.evalmask=function(){$_.sym=$k[--$j];$_.n1=0;$_.n2=0;$_.n3=0;var _PA=$_.rows;var _PB=$_.cols;if(_PA<_PB){var _=_PB;_PB=_PA;_PA=_}$_.rle=$a($f(_PA*2+2));$_.lastpairs=$a($_.cols);$_.thispairs=$a($_.cols);for(var _PJ=0,_PI=$f($_.cols-1);_PJ<=_PI;_PJ+=1){$_.i=_PJ;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=-1;for(var _PP=$_.i,_PQ=$_.cols,_PO=$f($_.rows*$_.cols-1);_PQ<0?_PP>=_PO:_PP<=_PO;_PP+=_PQ){var _PS=$g($_.sym,_PP);var _PT=$k[--$j];$k[$j++]=_PT;$k[$j++]=_PS;if($eq(_PT,_PS)){$j--;var _PU=$k[--$j];var _PV=$k[--$j];$k[$j++]=$f(_PV+1);$k[$j++]=_PU}else{var _PW=$k[--$j];$k[$j++]=1;$k[$j++]=_PW}}var _PY=$m()+2;$as($G($_.rle,0,_PY-2));$_.evalrle();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--}for(var _Pg=0,_Pf=$f($_.rows-1);_Pg<=_Pf;_Pg+=1){$_.i=_Pg;$_.symrow=$G($_.sym,$_.i*$_.cols,$_.cols);$k[$j++]=Infinity;var _Pm=$_.symrow;$k[$j++]=0;$k[$j++]=-1;for(var _Pn=0,_Po=_Pm.length;_Pn<_Po;_Pn++){var _Pp=$g(_Pm,_Pn);var _Pq=$k[--$j];$k[$j++]=_Pq;$k[$j++]=_Pp;if($eq(_Pq,_Pp)){$j--;var _Pr=$k[--$j];var _Ps=$k[--$j];$k[$j++]=$f(_Ps+1);$k[$j++]=_Pr}else{var _Pt=$k[--$j];$k[$j++]=1;$k[$j++]=_Pt}}var _Pv=$m()+2;$as($G($_.rle,0,_Pv-2));$_.evalrle();$_.n3=$f($k[--$j]+$_.n3);$_.n1=$f($k[--$j]+$_.n1);$j--;var _Q1=$_.thispairs;$_.thispairs=$_.lastpairs;$_.lastpairs=_Q1;var _Q3=$_.symrow;$k[$j++]=-1;for(var _Q4=0,_Q5=_Q3.length;_Q4<_Q5;_Q4++){var _Q6=$g(_Q3,_Q4);var _Q7=$k[--$j];$k[$j++]=_Q6;$k[$j++]=_Q7;if($ne(_Q6,_Q7)){$j--;var _Q8=$k[--$j];$k[$j++]=-1;$k[$j++]=_Q8}}$j--;$as($_.thispairs);$j--;if($_.i>0){$k[$j++]=Infinity;$q($_.lastpairs);$q($_.thispairs);$k[$j++]=$_.n2;for(var _QF=0,_QG=$_.cols;_QF<_QG;_QF++){var _QH=$k[--$j];var _QI=$k[--$j];$k[$j++]=_QH;$k[$j++]=_QI;if(_QI!=-1){var _QK=$k[$j-1-$f($_.cols+1)];if($eq($k[--$j],_QK)){var _QM=$k[--$j];$k[$j++]=$f(_QM+3)}}else{$j--}}$_.n2=$k[--$j];$l()}}$k[$j++]=$f($f($_.n1+$_.n2)+$_.n3)};$_.bestscore=999999999;for(var _QT=0,_QS=$_.masks.length-1;_QT<=_QS;_QT+=1){$_.m=_QT;$_.masksym=$a($_.rows*$_.cols);for(var _Qa=0,_QZ=$f($_.rows*$_.cols-1);_Qa<=_QZ;_Qa+=1){$_.i=_Qa;$p($_.masksym,$_.i,$xo($g($_.pixs,$_.i),$g($g($_.masks,$_.m),$_.i)))}if($_.masks.length!=1){$k[$j++]=$_.masksym;$_.evalmask();$_.score=$k[--$j];if($_.score<$_.bestscore){$_.bestsym=$_.masksym;$_.bestmaskval=$_.m;$_.bestscore=$_.score}}else{$_.bestsym=$_.masksym}}$_.pixs=$_.bestsym;$_.metamask=$_.bestmaskval;$_.addtometapart=function(){var _Qw=$k[--$j];$P($_.metapart,$_.p,_Qw);$_.p=_Qw.length+$_.p};$_.addtometabits=function(){var _R0=$k[--$j];$P($_.metabits,$_.q,_R0);$_.q=_R0.length+$_.q};$_.metapart=$s(40);$_.metabits=$s($_.nummetabits);$_.p=0;$_.q=0;if(!$_.slave){$k[$j++]=~~Math.round(Math.log($_.colors)/Math.log(2))-1;$k[$j++]=3;$_.tofixedbits();$_.addtometapart();$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;$k[$j++]=$_.metass;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.metavf;$k[$j++]=2;$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.metamask;$k[$j++]=3;$_.tofixedbits();$_.addtometapart();if($_.hasslaves){$k[$j++]="1"}else{$k[$j++]="0"}$_.addtometapart();$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;if($_.metass==0){$k[$j++]=$f($f(~~($f($_.cols-17)/4)-$g($a([0,4,8,16]),$_.metavf))-1);$k[$j++]=$_.metavlen;$_.tofixedbits();$_.addtometapart()}else{$k[$j++]=~~($f($_.cols-17)/4)-1;$k[$j++]=~~($_.metavlen/2);$_.tofixedbits();$_.addtometapart();$k[$j++]=~~($f($_.rows-17)/4)-1;$k[$j++]=~~($_.metavlen/2);$_.tofixedbits();$_.addtometapart()}$k[$j++]=$_.datawc-3;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.datawr-4;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart();if($_.hasslaves){$k[$j++]=0;$k[$j++]=4;$_.tofixedbits();$_.addtometapart()}$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0}else{var _Rc=$_.sameshape?0:1;$k[$j++]=_Rc;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();var _Re=$_.sameecc?0:1;$k[$j++]=_Re;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();var _Rg=$_.hasslaves?1:0;$k[$j++]=_Rg;$k[$j++]=1;$_.tofixedbits();$_.addtometapart();$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;if(!$_.sameshape){$k[$j++]=~~(($_.diffside-17)/4)-1;$k[$j++]=5;$_.tofixedbits();$_.addtometapart()}if($_.hasslaves){$k[$j++]=0;$k[$j++]=3;$_.tofixedbits();$_.addtometapart()}$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0;if(!$_.sameecc){$k[$j++]=$_.datawc-3;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart();$k[$j++]=$_.datawr-4;$k[$j++]=~~($_.metaelen/2);$_.tofixedbits();$_.addtometapart()}$k[$j++]=$G($_.metapart,0,$_.p);$k[$j++]=2;$k[$j++]=-1;$_.ldpc();$_.addtometabits();$_.p=0}for(var _S1=$_.q,_S0=$f($_.nummetabits-1);_S1<=_S0;_S1+=1){$p($_.metabits,_S1,48)}$_.i=0;$_.j=0;if(!$_.slave){var _S6=$G($_.metabits,$_.i,6);for(var _S7=0,_S8=_S6.length;_S7<_S8;_S7++){$k[$j++]=$g(_S6,_S7);if($_.colors==4){$k[$j++]=$a([$_.bi,$_.yi])}else{$k[$j++]=$a([$_.ki,$_.wi])}var _SH=$k[--$j];var _SJ=$g(_SH,$f($k[--$j]-48));$k[$j++]=_SJ;$k[$j++]=$_.pixs;$q($g($_.metadatamap,$_.j));$_.jmv();var _SO=$k[--$j];var _SP=$k[--$j];$p(_SP,_SO,$k[--$j]);$_.j=$_.j+1}$_.i=$_.i+6}for(var _SW=0,_SX=~~($f($_.nummetabits-$_.i)/$_.metabpm);_SW<_SX;_SW++){var _Sb=$G($_.metabits,$_.i,$_.metabpm);$k[$j++]=0;for(var _Sc=0,_Sd=_Sb.length;_Sc<_Sd;_Sc++){var _Sf=$k[--$j];$k[$j++]=$f(_Sf+$f($g(_Sb,_Sc)-48))*2}var _Si=$g($_.metacolorindex,~~($k[--$j]/2));$k[$j++]=_Si;$k[$j++]=$_.pixs;$q($g($_.metadatamap,$_.j));$_.jmv();var _Sn=$k[--$j];var _So=$k[--$j];$p(_So,_Sn,$k[--$j]);$_.i=$f($_.i+$_.metabpm);$_.j=$_.j+1}var _T0=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.cols],["pixy",$_.rows],["colormap",$_.palette],["height",$_.rows*2/72],["width",$_.cols*2/72],["borderleft",0],["borderright",0],["bordertop",0],["borderbottom",0],["opt",$_.options]]);$k[$j++]=_T0;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1_cc(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=false;$_.dontdraw=false;$_.ccversion="a";$_.cccolumns=-1;$_.lintype="";$_.linwidth=-1;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];bwipp_loadctx(bwipp_gs1_cc);if($ne($_.ccversion,"a")&&$ne($_.ccversion,"b")&&$ne($_.ccversion,"c")){$k[$j++]="bwipp.gs1ccBadCCversion#27487";$k[$j++]="ccversion must be a, b or c";bwipp_raiseerror()}if($_.cccolumns>30){$k[$j++]="bwipp.gs1ccColumnsTooBig#27491";$k[$j++]="The maximum number of composite component columns is 30";bwipp_raiseerror()}if(!bwipp_gs1_cc.__27509__){$_=Object.create($_);var _6=new Map([["ean13",4],["upca",4],["ean8",3],["upce",2],["gs1-128",4],["databaromni",4],["databarstacked",2],["databarstackedomni",2],["databartruncated",4],["databarlimited",3],["databarexpanded",4],["databarexpandedstacked",4]]);$_.lintypecccolumns=_6;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27509__=1;$_=Object.getPrototypeOf($_)}if($ne($_.lintype,"")){var _B=$g($_.lintypecccolumns,$_.lintype)!==undefined;if(!_B){$k[$j++]="bwipp.gs1ccBadLinType#27513";$k[$j++]="The lintype is not recognised";bwipp_raiseerror()}}if($_.cccolumns==-1){if($eq($_.lintype,"gs1-128")&&$eq($_.ccversion,"c")){if($_.linwidth<0){$k[$j++]="bwipp.gs1ccMissingLinWidth#27521";$k[$j++]="linwidth must be set for a GS1-128 with a CC-C composite component";bwipp_raiseerror()}if($_.linwidth<68){$k[$j++]="bwipp.gs1ccMinimumLinWidth#27524";$k[$j++]="Minimum linwidth for a GS1-128 with a CC-C composite component is 68";bwipp_raiseerror()}if($_.linwidth==68){$k[$j++]=1}else{$k[$j++]=~~(($_.linwidth-52)/17)}}else{if($ne($_.lintype,"")){$k[$j++]=$g($_.lintypecccolumns,$_.lintype)}else{$k[$j++]=2}}$_.cccolumns=$k[--$j]}$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.isupper=function(){var _S=$k[--$j];$k[$j++]=_S>=65&&_S<=90};$_.isnum0=function(){var _T=$k[--$j];$k[$j++]=_T>=48&&_T<=57};$_.isnum1=function(){var _U=$k[--$j];$k[$j++]=_U>=49&&_U<=57};for(;;){if($_.ais.length>=1){if($eq($g($_.ais,0),"10")||$eq($g($_.ais,0),"11")||$eq($g($_.ais,0),"17")){$k[$j++]=-1;$k[$j++]="10";break}}if($_.ais.length>=1){if($eq($g($_.ais,0),"90")){$_.v=$g($_.vals,0);if($_.v.length>=1){$k[$j++]=$g($_.v,0);$_.isupper();if($k[--$j]){$k[$j++]=0;$k[$j++]="11";break}}if($_.v.length>=2){$k[$j++]=$g($_.v,0);$_.isnum1();$k[$j++]=$g($_.v,1);$_.isupper();var _q=$k[--$j];var _r=$k[--$j];if(_r&&_q){$k[$j++]=1;$k[$j++]="11";break}}if($_.v.length>=3){$k[$j++]=$g($_.v,0);$_.isnum1();$k[$j++]=$g($_.v,1);$_.isnum0();var _x=$k[--$j];var _y=$k[--$j];$k[$j++]=$an(_y,_x);$k[$j++]=$g($_.v,2);$_.isupper();var _11=$k[--$j];var _12=$k[--$j];if(_12&&_11){$k[$j++]=2;$k[$j++]="11";break}}if($_.v.length>=4){$k[$j++]=$g($_.v,0);$_.isnum1();$k[$j++]=$g($_.v,1);$_.isnum0();var _18=$k[--$j];var _19=$k[--$j];$k[$j++]=$an(_19,_18);$k[$j++]=$g($_.v,2);$_.isnum0();var _1C=$k[--$j];var _1D=$k[--$j];$k[$j++]=$an(_1D,_1C);$k[$j++]=$g($_.v,3);$_.isupper();var _1G=$k[--$j];var _1H=$k[--$j];if(_1H&&_1G){$k[$j++]=3;$k[$j++]="11";break}}}}$k[$j++]=-1;$k[$j++]="0";break}$_.method=$k[--$j];$_.npre=$k[--$j];$_.tobin=function(){var _1L=$s($k[--$j]);$k[$j++]=_1L;for(var _1N=0,_1M=_1L.length-1;_1N<=_1M;_1N+=1){var _1O=$k[--$j];$p(_1O,_1N,48);$k[$j++]=_1O}var _1P=$k[--$j];var _1S=$R($s(_1P.length),$k[--$j],2);$P(_1P,_1P.length-_1S.length,_1S);$k[$j++]=_1P};if(!bwipp_gs1_cc.__27644__){$_=Object.create($_);$_.fnc1=-1;$_.lnumeric=-2;$_.lalphanumeric=-3;$_.liso646=-4;$k[$j++]=Infinity;for(var _1T=65;_1T<=90;_1T+=1){$k[$j++]=_1T;$k[$j++]=_1T-65;$k[$j++]=5;$_.tobin()}for(var _1U=48;_1U<=57;_1U+=1){$k[$j++]=_1U;$k[$j++]=_1U+4;$k[$j++]=6;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="11111";$_.alpha=$d();$k[$j++]=Infinity;for(var _1X=0;_1X<=119;_1X+=1){var _1Z=$Z($s(2),"00");var _1b=$R($s(2),_1X,11);$P(_1Z,2-_1b.length,_1b);$k[$j++]=_1X;$k[$j++]=_1Z;if($g(_1Z,0)==65){var _1d=$k[--$j];$p(_1d,0,94);$k[$j++]=_1d}var _1e=$k[--$j];$k[$j++]=_1e;if($g(_1e,1)==65){var _1g=$k[--$j];$p(_1g,1,94);$k[$j++]=_1g}var _1h=$k[--$j];var _1k=$Z($s(7),"0000000");var _1m=$R($s(7),$f($k[--$j]+8),2);$P(_1k,7-_1m.length,_1m);$k[$j++]=_1h;$k[$j++]=_1k}$k[$j++]=$_.lalphanumeric;$k[$j++]="0000";$_.numeric=$d();$k[$j++]=Infinity;for(var _1p=48;_1p<=57;_1p+=1){$k[$j++]=_1p;$k[$j++]=_1p-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _1r=65;_1r<=90;_1r+=1){$k[$j++]=_1r;$k[$j++]=_1r-33;$k[$j++]=6;$_.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _1s=44;_1s<=47;_1s+=1){$k[$j++]=_1s;$k[$j++]=_1s+15;$k[$j++]=6;$_.tobin()}$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.liso646;$k[$j++]="00100";$_.alphanumeric=$d();$k[$j++]=Infinity;for(var _1w=48;_1w<=57;_1w+=1){$k[$j++]=_1w;$k[$j++]=_1w-43;$k[$j++]=5;$_.tobin()}$k[$j++]=$_.fnc1;$k[$j++]="01111";for(var _1y=65;_1y<=90;_1y+=1){$k[$j++]=_1y;$k[$j++]=_1y-1;$k[$j++]=7;$_.tobin()}for(var _1z=97;_1z<=122;_1z+=1){$k[$j++]=_1z;$k[$j++]=_1z-7;$k[$j++]=7;$_.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _20=37;_20<=47;_20+=1){$k[$j++]=_20;$k[$j++]=_20+197;$k[$j++]=8;$_.tobin()}for(var _21=58;_21<=63;_21+=1){$k[$j++]=_21;$k[$j++]=_21+187;$k[$j++]=8;$_.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$_.lnumeric;$k[$j++]="000";$k[$j++]=$_.lalphanumeric;$k[$j++]="00100";$_.iso646=$d();for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27644__=1;$_=Object.getPrototypeOf($_)}if($eq($_.method,"10")){if($eq($g($_.ais,0),"11")||$eq($g($_.ais,0),"17")){var _2C=$g($_.vals,0);var _2H=$Z($s(16),"0000000000000000");var _2J=$R($s(16),$i($G(_2C,0,2))*384+(($i($G(_2C,2,2))-1)*32+$i($G(_2C,4,2))),2);$P(_2H,16-_2J.length,_2J);$k[$j++]=_2H;$k[$j++]=Infinity;var _2K=$k[--$j];var _2L=$k[--$j];$k[$j++]=_2K;$k[$j++]=1;$k[$j++]=0;$F(_2L,function(){var _2M=$k[--$j];$k[$j++]=$f(_2M-48)});var _2P=$eq($g($_.ais,0),"11")?0:1;$k[$j++]=_2P;$_.cdf=$a();$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1)}else{$_.cdf=$a([1,0,1,1])}if($_.ais.length!=0){if($eq($g($_.ais,0),"10")){$k[$j++]=Infinity;$F($g($_.vals,0));$_.gpf=$a();if($_.ais.length>1){$k[$j++]=Infinity;$q($_.gpf);$k[$j++]=$_.fnc1;$_.gpf=$a()}$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1)}else{$_.gpf=$a([$_.fnc1])}}else{$k[$j++]=Infinity;$q($_.cdf);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$_.cdf=$a();$_.gpf=$a([])}$_.mode="numeric"}if($eq($_.method,"11")){$_.cdf=$a([1,1]);$_.ai90=$g($_.vals,0);if($f($_.npre+1)!=$_.ai90.length){$k[$j++]=$G($_.ai90,$f($_.npre+1),$f($f($_.ai90.length-$_.npre)-1))}else{$k[$j++]=""}$_.ai90rem=$k[--$j];$k[$j++]="nalpha";$k[$j++]=0;$F($_.ai90rem,function(){var _3C=$k[--$j];if(_3C>=65&&_3C<=90){var _3D=$k[--$j];$k[$j++]=$f(_3D+1)}});var _3E=$k[--$j];$_[$k[--$j]]=_3E;$k[$j++]="nnums";$k[$j++]=0;$F($_.ai90rem,function(){var _3H=$k[--$j];if(_3H>=48&&_3H<=57){var _3I=$k[--$j];$k[$j++]=$f(_3I+1)}});var _3J=$k[--$j];$_[$k[--$j]]=_3J;$k[$j++]="mode";if($gt($_.nalpha,$_.nnums)){$k[$j++]="alpha"}else{if($_.nalpha==0){$k[$j++]="numeric"}else{$k[$j++]="alphanumeric"}}var _3O=$k[--$j];$_[$k[--$j]]=_3O;if($f($_.nalpha+$_.nnums)!=$_.ai90rem.length){$_.mode="alphanumeric"}$k[$j++]=Infinity;$q($_.cdf);if($eq($_.mode,"alphanumeric")){$k[$j++]=0}if($eq($_.mode,"numeric")){$k[$j++]=1;$k[$j++]=0}if($eq($_.mode,"alpha")){$k[$j++]=1;$k[$j++]=1}$_.cdf=$a();$k[$j++]="ais1";if($_.ais.length>1){$k[$j++]=$g($_.ais,1)}else{$k[$j++]=-1}var _3b=$k[--$j];$_[$k[--$j]]=_3b;$k[$j++]="vals1";if($_.vals.length>1){$k[$j++]=$g($_.vals,1)}else{$k[$j++]=-1}var _3g=$k[--$j];$_[$k[--$j]]=_3g;if($eq($_.ais1,"21")||$eq($_.ais1,"8004")){$k[$j++]=Infinity;$q($_.cdf);if($eq($_.ais1,"21")){$k[$j++]=1;$k[$j++]=0}else{$k[$j++]=1;$k[$j++]=1}$_.cdf=$a()}else{$k[$j++]=Infinity;$q($_.cdf);$k[$j++]=0;$_.cdf=$a()}$k[$j++]="nval";if($_.npre!=0){$k[$j++]=$i($G($_.ai90,0,$_.npre))}else{$k[$j++]=0}var _3t=$k[--$j];$_[$k[--$j]]=_3t;$X("BDHIJKLNPQRSTVXZ",$G($_.ai90,$_.npre,1));if($k[--$j]){var _3z=$k[--$j];var _40=$k[--$j];$k[$j++]=_3z.length;$k[$j++]=_40;$j--;var _41=$k[--$j];var _42=$k[--$j];$k[$j++]=_41;$k[$j++]=_42;$j--;$_.aval=$k[--$j]}else{$j--;$_.aval=-1}if($_.nval<31&&$_.aval!=-1){var _47=$Z($s(5),"00000");var _4A=$R($s(5),$_.nval,2);$P(_47,5-_4A.length,_4A);$k[$j++]=_47;$k[$j++]=Infinity;var _4B=$k[--$j];var _4C=$k[--$j];$k[$j++]=_4B;$F(_4C,function(){var _4D=$k[--$j];$k[$j++]=$f(_4D-48)});$_.nbits=$a();var _4G=$Z($s(4),"0000");var _4J=$R($s(4),$_.aval,2);$P(_4G,4-_4J.length,_4J);$k[$j++]=_4G;$k[$j++]=Infinity;var _4K=$k[--$j];var _4L=$k[--$j];$k[$j++]=_4K;$F(_4L,function(){var _4M=$k[--$j];$k[$j++]=$f(_4M-48)});$_.abits=$a();$k[$j++]=Infinity;$q($_.cdf);$q($_.nbits);$q($_.abits);$_.cdf=$a()}else{var _4T=$Z($s(10),"0000000000");var _4W=$R($s(10),$_.nval,2);$P(_4T,10-_4W.length,_4W);$k[$j++]=_4T;$k[$j++]=Infinity;var _4X=$k[--$j];var _4Y=$k[--$j];$k[$j++]=_4X;$F(_4Y,function(){var _4Z=$k[--$j];$k[$j++]=$f(_4Z-48)});$_.nbits=$a();var _4c=$Z($s(5),"00000");var _4h=$R($s(5),$f($g($_.ai90,$_.npre)-65),2);$P(_4c,5-_4h.length,_4h);$k[$j++]=_4c;$k[$j++]=Infinity;var _4i=$k[--$j];var _4j=$k[--$j];$k[$j++]=_4i;$F(_4j,function(){var _4k=$k[--$j];$k[$j++]=$f(_4k-48)});$_.abits=$a();$k[$j++]=Infinity;$q($_.cdf);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$q($_.nbits);$q($_.abits);$_.cdf=$a()}if($ne($_.mode,"alpha")){$k[$j++]=Infinity;$F($_.ai90rem);if($_.ais.length>1){$k[$j++]=$_.fnc1}$_.gpf=$a()}else{$k[$j++]=Infinity;$F($_.ai90rem);if($_.ais.length>1){$k[$j++]=$_.fnc1}$_.in=$a();$_.out=$a($_.in.length*6);$_.j=0;for(var _53=0,_52=$_.in.length-1;_53<=_52;_53+=1){var _57=$g($_.alpha,$g($_.in,_53));$k[$j++]=_57;$k[$j++]=_57;$k[$j++]=Infinity;var _58=$k[--$j];var _59=$k[--$j];$k[$j++]=_58;$F(_59,function(){var _5A=$k[--$j];$k[$j++]=$f(_5A-48)});$P($_.out,$_.j,$a());$_.j=$k[--$j].length+$_.j}$k[$j++]=Infinity;$q($_.cdf);$q($G($_.out,0,$_.j));$_.cdf=$a();$_.gpf=$a([]);if($_.ais.length>1){$_.mode="numeric"}}$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1);if($_.ais.length!=0){if($eq($_.ais1,"21")||$eq($_.ais1,"8004")){$k[$j++]=Infinity;$q($_.gpf);$F($_.vals1);$_.gpf=$a();$_.ais=$G($_.ais,1,$_.ais.length-1);$_.vals=$G($_.vals,1,$_.vals.length-1);$_.fncs=$G($_.fncs,1,$_.fncs.length-1);if($_.ais.length!=0){$k[$j++]=Infinity;$q($_.gpf);$k[$j++]=$_.fnc1;$_.gpf=$a()}}}}if($eq($_.method,"0")){$_.cdf=$a([0]);$_.gpf=$a([]);$_.mode="numeric"}for(var _5u=0,_5t=$_.ais.length-1;_5u<=_5t;_5u+=1){$_.i=_5u;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _64=$a($_.gpf.length+$_.ai.length+$_.val.length);$P(_64,0,$_.gpf);$k[$j++]=_64;$k[$j++]=_64;$k[$j++]=$_.gpf.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _68=$k[--$j];var _69=$k[--$j];$k[$j++]=_68;$F(_69);var _6A=$a();var _6B=$k[--$j];$P($k[--$j],_6B,_6A);var _6D=$k[--$j];$k[$j++]=_6D;$k[$j++]=_6D;$k[$j++]=$_.gpf.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _6H=$k[--$j];var _6I=$k[--$j];$k[$j++]=_6H;$F(_6I);var _6J=$a();var _6K=$k[--$j];$P($k[--$j],_6K,_6J);$_.gpf=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _6T=$a($_.gpf.length+1);$P(_6T,0,$_.gpf);$p(_6T,$_.gpf.length,$_.fnc1);$_.gpf=_6T}}if(!bwipp_gs1_cc.__27813__){$_=Object.create($_);var _6f=new Map([["a",$a([$a([167,138,118,108,88,78,59]),$a([167,138,118,98,78]),$a([197,167,138,108,78])])],["b",$a([$a([336,296,256,208,160,104,56]),$a([768,648,536,416,304,208,152,112,72,32]),$a([1184,1016,840,672,496,352,264,208,152,96,56])])]]);$_.bitcapsmaps=_6f;for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__27813__=1;$_=Object.getPrototypeOf($_)}$_.rembits=function(){$_.used=$k[--$j];if($ne($_.ccversion,"c")){$_.bitcaps=$g($g($_.bitcapsmaps,$_.ccversion),$f($_.cccolumns-2));$k[$j++]=-1;$F($_.bitcaps,function(){var _6p=$k[--$j];$k[$j++]=_6p;if($ge(_6p,$_.used)){var _6r=$k[--$j];var _6s=$k[--$j];$k[$j++]=_6r;$k[$j++]=_6s}$j--});var _6t=$k[--$j];$k[$j++]=_6t;if(_6t!=-1){var _6v=$k[--$j];$k[$j++]=$f(_6v-$_.used)}}else{var _6w=new Map([["c",-1]]);var _6y=$g(_6w,$_.ccversion);var _70=~~Math.ceil($_.used/8);$_.m=~~(_70/6)*5+_70%6;if($_.m<=40){$k[$j++]=8}if($_.m>=41&&$_.m<=160){$k[$j++]=16}if($_.m>=161&&$_.m<=320){$k[$j++]=32}if($_.m>=321&&$_.m<=833){$k[$j++]=64}if($_.m>=834){$k[$j++]=32}$_.eccws=$k[--$j];$_.m=$f($f($_.m+$_.eccws)+3);if($_.cccolumns>30){$_.cccolumns=30}for(;;){if(~~Math.ceil($_.m/$_.cccolumns)<=30||$_.cccolumns>=30){break}$_.cccolumns=$_.cccolumns+1}$_.r=~~Math.ceil($_.m/$_.cccolumns);if($_.r<3){$_.r=3}var _7N=$f($f($_.cccolumns*$_.r-$_.eccws)-3);$_.tgt=$f(~~(_7N/5)*6+_7N%5)*8;if($_.used<=8304){$k[$j++]=$f($_.tgt-$_.used)}else{$k[$j++]=-1}}var _7R=$k[--$j];$k[$j++]=_7R;if(_7R==-1){$j--;if($eq($_.ccversion,"a")){$_.ccversion="b"}else{if($eq($_.ccversion,"b")&&$eq($_.lintype,"gs1-128")){$_.ccversion="c";$_.cccolumns=~~(($_.linwidth-52)/17)}else{$_.ccversion=-1}}$k[$j++]=$_.used;$_.rembits()}};$_.encode=function(){var _7X=$k[--$j];$k[$j++]=_7X;if($ne(_7X,"raw")){var _7Y=$k[--$j];var _7a=$g(_7Y,$k[--$j]);$k[$j++]=_7a}else{$j--}$k[$j++]=Infinity;var _7b=$k[--$j];var _7c=$k[--$j];$k[$j++]=_7b;$F(_7c,function(){var _7d=$k[--$j];$k[$j++]=$f(_7d-48)});var _7e=$a();$P($_.gpfenc,$_.j,_7e);$_.j=_7e.length+$_.j};$k[$j++]=Infinity;for(var _7j=0,_7k=$_.gpf.length;_7j<_7k;_7j++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$_.numericruns=$a();$k[$j++]=Infinity;for(var _7n=0,_7o=$_.gpf.length;_7n<_7o;_7n++){$k[$j++]=0}$k[$j++]=0;$_.alphanumericruns=$a();$k[$j++]=Infinity;for(var _7r=0,_7s=$_.gpf.length;_7r<_7s;_7r++){$k[$j++]=0}$k[$j++]=9999;$_.nextiso646only=$a();for(var _7v=$_.gpf.length-1;_7v>=0;_7v-=1){$_.i=_7v;var _80=$Z($s(2),"00");var _83=$g($_.gpf,$_.i);$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=_80;$k[$j++]=_80;$k[$j++]=0;$k[$j++]=_83;if(_83==$_.fnc1){$j--;$k[$j++]=94}var _85=$k[--$j];var _86=$k[--$j];$p($k[--$j],_86,_85);if($_.i<$_.gpf.length-1){var _8A=$k[--$j];var _8D=$g($_.gpf,$_.i+1);$k[$j++]=_8A;$k[$j++]=_8A;$k[$j++]=1;$k[$j++]=_8D;if(_8D==$_.fnc1){$j--;$k[$j++]=94}var _8F=$k[--$j];var _8G=$k[--$j];$p($k[--$j],_8G,_8F)}var _8K=$g($_.numeric,$k[--$j])!==undefined;if(_8K){$p($_.numericruns,$_.i,$f($g($_.numericruns,$_.i+2)+2))}else{$p($_.numericruns,$_.i,0)}var _8S=$k[--$j];var _8U=$g($_.alphanumeric,_8S)!==undefined;$k[$j++]=_8S;if(_8U){$p($_.alphanumericruns,$_.i,$f($g($_.alphanumericruns,$_.i+1)+1))}else{$p($_.alphanumericruns,$_.i,0)}var _8c=$k[--$j];var _8e=$g($_.iso646,_8c)!==undefined;var _8g=$g($_.alphanumeric,_8c)!==undefined;if(_8e&&!_8g){$p($_.nextiso646only,$_.i,0)}else{$p($_.nextiso646only,$_.i,$f($g($_.nextiso646only,$_.i+1)+1))}}$_.gpfenc=$a(8304);$_.i=0;$_.j=0;for(;;){if($_.i==$_.gpf.length){break}for(;;){if($eq($_.mode,"numeric")){if($_.i<=$_.gpf.length-2){var _8u=$s(2);var _8x=$g($_.gpf,$_.i);$k[$j++]=_8u;$k[$j++]=_8u;$k[$j++]=0;$k[$j++]=_8x;if(_8x==$_.fnc1){$j--;$k[$j++]=94}var _8z=$k[--$j];var _90=$k[--$j];$p($k[--$j],_90,_8z);var _92=$k[--$j];var _95=$g($_.gpf,$_.i+1);$k[$j++]=_92;$k[$j++]=_92;$k[$j++]=1;$k[$j++]=_95;if(_95==$_.fnc1){$j--;$k[$j++]=94}var _97=$k[--$j];var _98=$k[--$j];$p($k[--$j],_98,_97);var _9A=$k[--$j];var _9C=$g($_.numeric,_9A)!==undefined;$k[$j++]=_9A;if(_9C){$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+2;break}$j--;$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}else{var _9J=$g($_.gpf,$_.i);if(_9J<48||_9J>57){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.numeric;$_.encode();$_.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=$_.cdf.length+$_.j;$_.rembits();var _9O=$k[--$j];$_[$k[--$j]]=_9O;if($_.rem>=4&&$_.rem<=6){var _9V=$G($Z($s(6),"000000"),0,$_.rem);var _9a=$R($s(4),$f($g($_.gpf,$_.i)-47),2);$P(_9V,4-_9a.length,_9a);$k[$j++]=_9V;$k[$j++]="raw";$_.encode();$_.i=$_.i+1;break}else{var _9c=$s(2);$p(_9c,0,$g($_.gpf,$_.i));$p(_9c,1,94);$k[$j++]=_9c;$k[$j++]=$_.numeric;$_.encode();$_.i=$_.i+1;break}}}if($eq($_.mode,"alphanumeric")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}var _9s=$g($_.gpf,$_.i);var _9u=$g($_.iso646,_9s)!==undefined;var _9w=$g($_.alphanumeric,_9s)!==undefined;if(_9u&&!_9w){$k[$j++]=$_.liso646;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="iso646";break}if($g($_.numericruns,$_.i)>=6){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}var _A6=$g($_.numericruns,$_.i);if(_A6>=4&&$f(_A6+$_.i)==$_.gpf.length){$k[$j++]=$_.lnumeric;$k[$j++]=$_.alphanumeric;$_.encode();$_.mode="numeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.alphanumeric;$_.encode();$_.i=$_.i+1;break}if($eq($_.mode,"iso646")){if($g($_.gpf,$_.i)==$_.fnc1){$k[$j++]=$_.fnc1;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";$_.i=$_.i+1;break}if($g($_.numericruns,$_.i)>=4&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lnumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="numeric";break}if($g($_.alphanumericruns,$_.i)>=5&&$g($_.nextiso646only,$_.i)>=10){$k[$j++]=$_.lalphanumeric;$k[$j++]=$_.iso646;$_.encode();$_.mode="alphanumeric";break}$k[$j++]=$g($_.gpf,$_.i);$k[$j++]=$_.iso646;$_.encode();$_.i=$_.i+1;break}}}$_.gpf=$G($_.gpfenc,0,$_.j);$k[$j++]="pad";$k[$j++]=$_.cdf.length+$_.gpf.length;$_.rembits();var _Ap=$a($k[--$j]);$_[$k[--$j]]=_Ap;if($_.pad.length>0){for(var _Au=0,_At=$_.pad.length-1;_Au<=_At;_Au+=5){$_.i=_Au;var _Av=$_.pad;var _Aw=$_.i;var _Ax=$a([0,0,1,0,0]);var _Ay=$_.pad;var _Az=$_.i;var _B0=5;var _B1=_Ay.length-_Az;if(_Ay.length-_Az>5){var _=_B0;_B0=_B1;_B1=_}$P(_Av,_Aw,$G(_Ax,0,_B1))}if($eq($_.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.pad);$_.pad=$G($a(),0,$_.pad.length)}if($eq($_.mode,"alpha")){$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.pad);$_.pad=$G($a(),0,$_.pad.length)}}$k[$j++]=Infinity;$q($_.cdf);$q($_.gpf);$q($_.pad);$_.bits=$a();if(!bwipp_gs1_cc.__28024__){$_=Object.create($_);$k[$j++]=Infinity;$k[$j++]=$a([0,0,0,0,0,0,1]);for(var _BI=0,_BJ=68;_BI<_BJ;_BI++){$k[$j++]=$a(7)}$_.pwr928=$a();for(var _BM=1;_BM<=68;_BM+=1){$_.j=_BM;$_.v=0;for(var _BN=6;_BN>=1;_BN-=1){$_.i=_BN;$_.v=$f($g($g($_.pwr928,$_.j-1),$_.i)*2+~~($_.v/928));$p($g($_.pwr928,$_.j),$_.i,$_.v%928)}$p($g($_.pwr928,$_.j),0,$f($g($g($_.pwr928,$_.j-1),0)*2+~~($_.v/928)))}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_gs1_cc.$ctx[id]=$_[id]);bwipp_gs1_cc.__28024__=1;$_=Object.getPrototypeOf($_)}if($_.ccversion=="a"){$k[$j++]=Infinity;for(var _Bj=0,_Bk=28;_Bj<_Bk;_Bj++){$k[$j++]=0}$_.cws=$a();$_.b=0;$_.c=0;for(;;){if($_.b==$_.bits.length){break}var _Bo=$_.bits;var _Bp=$_.b;var _Bq=$_.bits;var _Br=$_.b;var _Bs=_Bq.length-_Br;var _Bt=69;if(69>_Bq.length-_Br){var _=_Bs;_Bs=_Bt;_Bt=_}$_.bs=$G(_Bo,_Bp,_Bt);$_.bsl=$_.bs.length;$_.cs=$G($_.cws,$_.c,~~($_.bsl/10)+1);$_.csl=$_.cs.length;for(var _C3=0,_C2=$_.bsl-1;_C3<=_C2;_C3+=1){$_.i=_C3;for(var _C6=0,_C5=$_.csl-1;_C6<=_C5;_C6+=1){$_.j=_C6;var _C7=$_.cs;var _C8=$_.j;$p(_C7,_C8,$f($g(_C7,_C8)+$g($g($_.pwr928,$_.i),$_.j+7-$_.csl)*$g($_.bs,$_.bsl-$_.i-1)))}}for(var _CL=$_.csl-1;_CL>=1;_CL-=1){$_.i=_CL;var _CM=$_.cs;var _CN=$_.i;$p(_CM,_CN-1,$f($g(_CM,_CN-1)+~~($g($_.cs,$_.i)/928)));var _CS=$_.cs;var _CT=$_.i;$p(_CS,_CT,$g(_CS,_CT)%928)}$_.b=$_.b+$_.bsl;$_.c=$_.c+$_.csl}$_.cws=$G($_.cws,0,$_.c);$_.barcode=$s($_.cws.length*4);for(var _Cg=0,_Cf=$_.cws.length-1;_Cg<=_Cf;_Cg+=1){$_.i=_Cg;var _Ci=$Z($s(4),"^000");var _Cn=$R($s(4),$g($_.cws,$_.i),10);$P(_Ci,4-_Cn.length,_Cn);$P($_.barcode,$_.i*4,_Ci)}delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"cca",true);$p($_.options,"columns",$_.cccolumns);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_micropdf417();var _Cx=$k[--$j];$_[$k[--$j]]=_Cx}if($_.ccversion=="b"){$_.barcode=$s(~~($_.bits.length/8));for(var _D4=0,_D3=$_.barcode.length-1;_D4<=_D3;_D4+=1){$_.i=_D4;var _D7=$G($_.bits,$_.i*8,8);$k[$j++]=0;for(var _D8=0,_D9=_D7.length;_D8<_D9;_D8++){var _DB=$k[--$j];$k[$j++]=$f(_DB+$g(_D7,_D8))*2}$p($_.barcode,$_.i,~~($k[--$j]/2))}delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"ccb",true);$p($_.options,"columns",$_.cccolumns);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_micropdf417();var _DM=$k[--$j];$_[$k[--$j]]=_DM}if($_.ccversion=="c"){$_.barcode=$s(~~($_.bits.length/8));for(var _DT=0,_DS=$_.barcode.length-1;_DT<=_DS;_DT+=1){$_.i=_DT;var _DW=$G($_.bits,$_.i*8,8);$k[$j++]=0;for(var _DX=0,_DY=_DW.length;_DX<_DY;_DX++){var _Da=$k[--$j];$k[$j++]=$f(_Da+$g(_DW,_DX))*2}$p($_.barcode,$_.i,~~($k[--$j]/2))}delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"ccc",true);$p($_.options,"columns",$_.cccolumns);$p($_.options,"eclevel",~~(Math.log($_.eccws)/Math.log(2))-1);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_pdf417();var _Dn=$k[--$j];$_[$k[--$j]]=_Dn}$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_ean13composite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28154";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","ean13");$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_ean13();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=93;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=93;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=93;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$$.rmoveto(-2,6);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=$f(_b+$i(_a))});var _c=$k[--$j];$_[$k[--$j]]=_c;$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _g=$k[--$j];$_[$k[--$j]]=_g;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _n=0,_o=$f($_.ccpixx-97);_n<_o;_n++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+1)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _v=0,_w=$_.diff;_v<_w;_v++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _15=0,_16=$_.ccpixx,_14=$_.ccpixs.length-1;_16<0?_15>=_14:_15<=_14;_15+=_16){$_.i=_15;$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}for(var _1C=0,_1D=2;_1C<_1D;_1C++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1F=0,_1G=93;_1F<_1G;_1F++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1I=0,_1J=2;_1I<_1J;_1I++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1L=0,_1M=93;_1L<_1M;_1L++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1O=0,_1P=2;_1O<_1P;_1O++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1R=0,_1S=93;_1R<_1S;_1R++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1U=71;_1U>=0;_1U-=1){$_.y=_1U;$q($_.linpad);$k[$j++]=0;for(var _1Y=0,_1X=$_.sbs.length-1;_1Y<=_1X;_1Y+=1){$_.i=_1Y;if($_.i%2==0){var _1d=$g($_.bbs,~~($_.i/2))*72;if(_1d>$_.y||$f(_1d+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1m=0,_1n=$i($g($_.sbs,$_.i));_1m<_1n;_1m++){$k[$j++]=0}}else{for(var _1r=0,_1s=$i($g($_.sbs,$_.i));_1r<_1s;_1r++){$k[$j++]=1}}}else{for(var _1w=0,_1x=$i($g($_.sbs,$_.i));_1w<_1x;_1w++){$k[$j++]=0}}}if($_.diff<0){$k[$j++]=0}}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _28=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_28;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_ean8composite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28315";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","ean8");$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_ean8();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=65;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=65;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=65;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=69;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=69/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _S=$k[--$j];$$.rmoveto($f(69-$g(_S,"pixx")),6);$k[$j++]=_S;bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _c=$k[--$j];var _d=$k[--$j];$k[$j++]=$f(_d+$i(_c))});var _e=$k[--$j];$_[$k[--$j]]=_e;var _g=$_.comp;$k[$j++]="compsym";$k[$j++]=_g;$k[$j++]=$_.options;bwipp_gs1_cc();var _i=$k[--$j];$_[$k[--$j]]=_i;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _p=0,_q=$f($_.ccpixx-69);_p<_q;_p++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+1)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _x=0,_y=$_.diff;_x<_y;_x++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _17=0,_18=$_.ccpixx,_16=$_.ccpixs.length-1;_18<0?_17>=_16:_17<=_16;_17+=_18){$_.i=_17;$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}for(var _1E=0,_1F=2;_1E<_1F;_1E++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1H=0,_1I=65;_1H<_1I;_1H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1K=0,_1L=2;_1K<_1L;_1K++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1N=0,_1O=65;_1N<_1O;_1N++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1Q=0,_1R=2;_1Q<_1R;_1Q++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1T=0,_1U=65;_1T<_1U;_1T++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1W=71;_1W>=0;_1W-=1){$_.y=_1W;$q($_.linpad);$k[$j++]=0;for(var _1a=0,_1Z=$_.sbs.length-1;_1a<=_1Z;_1a+=1){$_.i=_1a;if($_.i%2==0){var _1f=$g($_.bbs,~~($_.i/2))*72;if(_1f>$_.y||$f(_1f+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1o=0,_1p=$i($g($_.sbs,$_.i));_1o<_1p;_1o++){$k[$j++]=0}}else{for(var _1t=0,_1u=$i($g($_.sbs,$_.i));_1t<_1u;_1t++){$k[$j++]=1}}}else{for(var _1y=0,_1z=$i($g($_.sbs,$_.i));_1y<_1z;_1y++){$k[$j++]=0}}}if($_.diff<0){$k[$j++]=0}}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _2A=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_2A;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_upcacomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28479";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","ean13");$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_upca();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=93;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=93;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=93;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$$.rmoveto(-2,6);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=$f(_b+$i(_a))});var _c=$k[--$j];$_[$k[--$j]]=_c;$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _g=$k[--$j];$_[$k[--$j]]=_g;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _n=0,_o=$f($_.ccpixx-97);_n<_o;_n++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+1)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _v=0,_w=$_.diff;_v<_w;_v++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _15=0,_16=$_.ccpixx,_14=$_.ccpixs.length-1;_16<0?_15>=_14:_15<=_14;_15+=_16){$_.i=_15;$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}for(var _1C=0,_1D=2;_1C<_1D;_1C++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1F=0,_1G=93;_1F<_1G;_1F++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1I=0,_1J=2;_1I<_1J;_1I++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1L=0,_1M=93;_1L<_1M;_1L++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1O=0,_1P=2;_1O<_1P;_1O++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1R=0,_1S=93;_1R<_1S;_1R++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1U=71;_1U>=0;_1U-=1){$_.y=_1U;$q($_.linpad);$k[$j++]=0;for(var _1Y=0,_1X=$_.sbs.length-1;_1Y<=_1X;_1Y+=1){$_.i=_1Y;if($_.i%2==0){var _1d=$g($_.bbs,~~($_.i/2))*72;if(_1d>$_.y||$f(_1d+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1m=0,_1n=$i($g($_.sbs,$_.i));_1m<_1n;_1m++){$k[$j++]=0}}else{for(var _1r=0,_1s=$i($g($_.sbs,$_.i));_1r<_1s;_1r++){$k[$j++]=1}}}else{for(var _1w=0,_1x=$i($g($_.sbs,$_.i));_1w<_1x;_1w++){$k[$j++]=0}}}if($_.diff<0){$k[$j++]=0}}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _28=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_28;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_upcecomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28640";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}$p($_.options,"lintype","upce");$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _C=$s($_.comp.length+18);$P(_C,0,"(01)00000000000000");$P(_C,18,$_.comp);$k[$j++]=_C;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_upce();if(!$_.usematrix){$$.save();bwipp_renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _H=0,_I=49;_H<_I;_H++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _J=0,_K=49;_J<_K;_J++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _L=0,_M=49;_L<_M;_L++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _N=$a();$k[$j++]="ren";$k[$j++]=bwipp_renmatrix;$k[$j++]="pixs";$k[$j++]=_N;$k[$j++]="pixx";$k[$j++]=53;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=53/72;$k[$j++]="opt";$k[$j++]=$_.options;var _P=$d();$k[$j++]=_P;bwipp_renmatrix();$$.rmoveto(-2,6);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$_.linsym=$k[--$j];$_.sbs=$g($_.linsym,"sbs");$_.bhs=$g($_.linsym,"bhs");$_.bbs=$g($_.linsym,"bbs");$k[$j++]="linwidth";$k[$j++]=0;$F($_.sbs,function(){var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=$f(_b+$i(_a))});var _c=$k[--$j];$_[$k[--$j]]=_c;$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _g=$k[--$j];$_[$k[--$j]]=_g;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;for(var _n=0,_o=$f($_.ccpixx-53);_n<_o;_n++){$k[$j++]=0}$_.linpad=$a();$_.diff=$f($f($f($_.linwidth+$_.linpad.length)+1)-$_.ccpixx);if($_.diff>0){$k[$j++]=Infinity;for(var _v=0,_w=$_.diff;_v<_w;_v++){$k[$j++]=0}$_.ccrpad=$a();$_.pixx=$f($_.ccpixx+$_.diff)}else{$_.ccrpad=$a(0);$_.pixx=$_.ccpixx}$k[$j++]=Infinity;for(var _15=0,_16=$_.ccpixx,_14=$_.ccpixs.length-1;_16<0?_15>=_14:_15<=_14;_15+=_16){$_.i=_15;$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}for(var _1C=0,_1D=2;_1C<_1D;_1C++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1F=0,_1G=49;_1F<_1G;_1F++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1I=0,_1J=2;_1I<_1J;_1I++){$q($_.linpad);$k[$j++]=1;$k[$j++]=0;for(var _1L=0,_1M=49;_1L<_1M;_1L++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$q($_.ccrpad)}for(var _1O=0,_1P=2;_1O<_1P;_1O++){$q($_.linpad);$k[$j++]=0;$k[$j++]=1;for(var _1R=0,_1S=49;_1R<_1S;_1R++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$q($_.ccrpad)}for(var _1U=71;_1U>=0;_1U-=1){$_.y=_1U;$q($_.linpad);$k[$j++]=0;for(var _1Y=0,_1X=$_.sbs.length-1;_1Y<=_1X;_1Y+=1){$_.i=_1Y;if($_.i%2==0){var _1d=$g($_.bbs,~~($_.i/2))*72;if(_1d>$_.y||$f(_1d+$g($_.bhs,~~($_.i/2))*72)<$_.y){for(var _1m=0,_1n=$i($g($_.sbs,$_.i));_1m<_1n;_1m++){$k[$j++]=0}}else{for(var _1r=0,_1s=$i($g($_.sbs,$_.i));_1r<_1s;_1r++){$k[$j++]=1}}}else{for(var _1w=0,_1x=$i($g($_.sbs,$_.i));_1w<_1x;_1w++){$k[$j++]=0}}}if($_.diff<0){$k[$j++]=0}}$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _28=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_28;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databaromnicomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28801";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databaromni");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databaromni();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _U=$_.fp,_T=$f($_.fp+12);_U<=_T;_U+=1){$_.i=_U;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _e=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_e}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _j=0;_j<=12;_j+=1){var _p=$k[--$j];$k[$j++]=_p&&$eq($g($_.bot,$f(_j+$_.fp)),$g($_.f3,_j))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _v=$k[--$j];var _w=$k[--$j];var _x=_w==1?0:1;$k[$j++]=_w;for(var _y=0,_z=_v;_y<_z;_y++){$k[$j++]=_x}});$as($a($m()-1));$_.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($_.bot,function(){var _14=$k[--$j];$k[$j++]=$f(1-_14)});$_.sep=$a();$P($_.sep,0,$a([0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();$k[$j++]=64;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1H=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1H;bwipp_renmatrix();$$.rmoveto(-5,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1M=$k[--$j];$_[$k[--$j]]=_1M;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _1T=$k[--$j];var _1U=$k[--$j];var _1V=_1U==0?1:0;$k[$j++]=_1U;for(var _1W=0,_1X=$i(_1T);_1W<_1X;_1W++){$k[$j++]=_1V}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;$k[$j++]=Infinity;for(var _1f=0,_1g=$_.ccpixx,_1e=$_.ccpixs.length-1;_1g<0?_1f>=_1e:_1f<=_1e;_1f+=_1g){$_.i=_1f;$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.sep);for(var _1n=0,_1o=$_.linheight;_1n<_1o;_1n++){$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.linpixs)}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _20=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_20;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarstackedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#28958";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarstacked");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarstacked();var _L=$k[--$j];$_.bot=$G($g(_L,"pixs"),0,$g(_L,"pixx"));$_.linheight=$g(_L,"pixy");$k[$j++]=_L;if(!$_.usematrix){bwipp_renmatrix()}else{$_.linpixs=$g($k[--$j],"pixs")}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _X=$_.fp,_W=$f($_.fp+12);_X<=_W;_X+=1){$_.i=_X;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _h=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_h}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _m=0;_m<=12;_m+=1){var _s=$k[--$j];$k[$j++]=_s&&$eq($g($_.bot,$f(_m+$_.fp)),$g($_.f3,_m))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _x=$_.bot;for(var _y=0,_z=_x.length;_y<_z;_y++){$k[$j++]=$f(1-$g(_x,_y))}$_.sep=$a();$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1D=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1D;bwipp_renmatrix();$$.rmoveto(1,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1I=$k[--$j];$_[$k[--$j]]=_1I;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$_.linwidth=$_.sep.length;$k[$j++]=Infinity;for(var _1S=0,_1T=$_.ccpixx,_1R=$_.ccpixs.length-1;_1T<0?_1S>=_1R:_1S<=_1R;_1S+=_1T){$_.i=_1S;$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx))}$q($_.sep);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _1c=0,_1d=$_.linwidth,_1b=$_.linpixs.length-1;_1d<0?_1c>=_1b:_1c<=_1b;_1c+=_1d){$_.i=_1c;$q($G($_.linpixs,$_.i,$_.linwidth));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _1s=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1s;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarstackedomnicomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29111";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarstackedomni");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarstackedomni();var _L=$k[--$j];$_.bot=$G($g(_L,"pixs"),0,$g(_L,"pixx"));$_.linheight=$g(_L,"pixy");$k[$j++]=_L;if(!$_.usematrix){bwipp_renmatrix()}else{$_.linpixs=$g($k[--$j],"pixs")}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _X=$_.fp,_W=$f($_.fp+12);_X<=_W;_X+=1){$_.i=_X;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _h=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_h}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _m=0;_m<=12;_m+=1){var _s=$k[--$j];$k[$j++]=_s&&$eq($g($_.bot,$f(_m+$_.fp)),$g($_.f3,_m))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _x=$_.bot;for(var _y=0,_z=_x.length;_y<_z;_y++){$k[$j++]=$f(1-$g(_x,_y))}$_.sep=$a();$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1D=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1D;bwipp_renmatrix();$$.rmoveto(1,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1I=$k[--$j];$_[$k[--$j]]=_1I;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$_.linwidth=$_.sep.length;$k[$j++]=Infinity;for(var _1S=0,_1T=$_.ccpixx,_1R=$_.ccpixs.length-1;_1T<0?_1S>=_1R:_1S<=_1R;_1S+=_1T){$_.i=_1S;$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx))}$q($_.sep);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _1c=0,_1d=$_.linwidth,_1b=$_.linpixs.length-1;_1d<0?_1c>=_1b:_1c<=_1b;_1c+=_1d){$_.i=_1c;$q($G($_.linpixs,$_.i,$_.linwidth));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _1s=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1s;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databartruncatedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29265";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databartruncated");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databartruncated();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _U=$_.fp,_T=$f($_.fp+12);_U<=_T;_U+=1){$_.i=_U;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _e=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_e}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}$_.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _j=0;_j<=12;_j+=1){var _p=$k[--$j];$k[$j++]=_p&&$eq($g($_.bot,$f(_j+$_.fp)),$g($_.f3,_j))}if($k[--$j]){$P($_.sep,$_.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _v=$k[--$j];var _w=$k[--$j];var _x=_w==1?0:1;$k[$j++]=_w;for(var _y=0,_z=_v;_y<_z;_y++){$k[$j++]=_x}});$as($a($m()-1));$_.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($_.bot,function(){var _14=$k[--$j];$k[$j++]=$f(1-_14)});$_.sep=$a();$P($_.sep,0,$a([0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$_.sepfinder();$k[$j++]=64;$_.sepfinder();if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1H=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1H;bwipp_renmatrix();$$.rmoveto(-5,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1M=$k[--$j];$_[$k[--$j]]=_1M;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _1T=$k[--$j];var _1U=$k[--$j];var _1V=_1U==0?1:0;$k[$j++]=_1U;for(var _1W=0,_1X=$i(_1T);_1W<_1X;_1W++){$k[$j++]=_1V}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;$k[$j++]=Infinity;for(var _1f=0,_1g=$_.ccpixx,_1e=$_.ccpixs.length-1;_1g<0?_1f>=_1e:_1f<=_1e;_1f+=_1g){$_.i=_1f;$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.sep);for(var _1n=0,_1o=$_.linheight;_1n<_1o;_1n++){$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.linpixs)}$_.pixs=$a();$_.pixx=$f($_.ccpixx+1);$_.pixy=~~($_.pixs.length/$_.pixx);var _20=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_20;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarlimitedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29423";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarlimited");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarlimited();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$k[$j++]=Infinity;$k[$j++]=1;$F($_.linsbs,function(){var _R=$k[--$j];var _S=$k[--$j];var _T=_S==0?1:0;$k[$j++]=_S;for(var _U=0,_V=_R;_U<_V;_U++){$k[$j++]=_T}});$as($a($m()-1));$_.sep=$k[--$j];$j-=2;$P($_.sep,0,$a([0,0,0]));var _c=$_.sep;$P($_.sep,_c.length-9,$a([0,0,0,0,0,0,0,0,0]));if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _g=$_.sep;var _k=new Map([["ren",bwipp_renmatrix],["pixs",_g],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_k;bwipp_renmatrix();$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _n=$k[--$j];$$.rmoveto($f(72-$g(_n,"pixx")),1);$k[$j++]=_n;bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _r=$k[--$j];$_[$k[--$j]]=_r;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _y=$k[--$j];var _z=$k[--$j];var _10=_z==0?1:0;$k[$j++]=_z;for(var _11=0,_12=$i(_y);_11<_12;_11++){$k[$j++]=_10}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;if($_.ccpixx==72){$k[$j++]=Infinity;for(var _1B=0,_1C=$_.ccpixx,_1A=$_.ccpixs.length-1;_1C<0?_1B>=_1A:_1B<=_1A;_1B+=_1C){$_.i=_1B;$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}$q($_.sep);for(var _1J=0,_1K=$_.linheight;_1J<_1K;_1J++){$q($_.linpixs)}$_.pixs=$a();$_.pixx=$_.linpixs.length}else{$k[$j++]=Infinity;for(var _1R=0,_1S=$_.ccpixx,_1Q=$_.ccpixs.length-1;_1S<0?_1R>=_1Q:_1R<=_1Q;_1R+=_1S){$_.i=_1R;$q($G($_.ccpixs,$_.i,$_.ccpixx));$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.sep);for(var _1Z=0,_1a=$_.linheight;_1Z<_1a;_1Z++){$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($_.linpixs)}$_.pixs=$a();$_.pixx=$f($_.ccpixx+6)}$_.pixy=~~($_.pixs.length/$_.pixx);var _1m=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1m;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarexpandedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29572";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarexpanded");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarexpanded();var _L=$k[--$j];$_.linsbs=$g(_L,"sbs");$_.linheight=$g($g(_L,"bhs"),0)*72;$k[$j++]=_L;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _U=$_.fp,_T=$f($_.fp+12);_U<=_T;_U+=1){$_.i=_U;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _e=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_e}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}};$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _j=$k[--$j];var _k=$k[--$j];var _l=_k==1?0:1;$k[$j++]=_k;for(var _m=0,_n=_j;_m<_n;_m++){$k[$j++]=_l}});$as($a($m()-1));$_.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($_.bot,function(){var _s=$k[--$j];$k[$j++]=$f(1-_s)});$_.sep=$a();$P($_.sep,0,$a([0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _11=18,_10=$_.bot.length-13;_11<=_10;_11+=98){$k[$j++]=_11}for(var _14=69,_13=$_.bot.length-13;_14<=_13;_14+=98){$k[$j++]=_14}var _15=$a();for(var _16=0,_17=_15.length;_16<_17;_16++){$k[$j++]=$g(_15,_16);$_.sepfinder()}if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1F=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1F;bwipp_renmatrix();$$.rmoveto(1,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1K=$k[--$j];$_[$k[--$j]]=_1K;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$k[$j++]=0;$F($_.linsbs,function(){var _1R=$k[--$j];var _1S=$k[--$j];var _1T=_1S==0?1:0;$k[$j++]=_1S;for(var _1U=0,_1V=$i(_1R);_1U<_1V;_1U++){$k[$j++]=_1T}});$_.linpixs=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($_.sep);$_.sep=$a();$_.linheight=~~$_.linheight;$_.diff=$f($_.linpixs.length-$_.ccpixx);$k[$j++]=Infinity;for(var _1d=0,_1e=$f($_.diff-2);_1d<_1e;_1d++){$k[$j++]=0}$_.ccrpad=$a();$k[$j++]=Infinity;for(var _1j=0,_1k=$_.ccpixx,_1i=$_.ccpixs.length-1;_1k<0?_1j>=_1i:_1j<=_1i;_1j+=_1k){$_.i=_1j;$k[$j++]=0;$k[$j++]=0;$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}$q($_.sep);for(var _1s=0,_1t=$_.linheight;_1s<_1t;_1s++){$q($_.linpixs)}$_.pixs=$a();$_.pixx=$_.linpixs.length;$_.pixy=~~($_.pixs.length/$_.pixx);var _25=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_25;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_databarexpandedstackedcomposite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29729";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"lintype","databarexpandedstacked");$p($_.options,"linkage",true);$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _F=$s($_.linear.length+$_.comp.length);$P(_F,0,$_.linear);$P(_F,$_.linear.length,$_.comp);$k[$j++]=_F;$k[$j++]="ai";bwipp_gs1process();$j-=3;$k[$j++]=$_.linear;$k[$j++]=$_.options;bwipp_databarexpandedstacked();var _L=$k[--$j];$_.bot=$G($g(_L,"pixs"),0,$g(_L,"pixx"));$_.linheight=$g(_L,"pixy");$k[$j++]=_L;if(!$_.usematrix){bwipp_renmatrix()}else{$_.linpixs=$g($k[--$j],"pixs")}$_.sepfinder=function(){$_.fp=$k[--$j];for(var _X=$_.fp,_W=$f($_.fp+12);_X<=_W;_X+=1){$_.i=_X;if($g($_.bot,$_.i)==0){if($g($_.bot,$_.i-1)==1){$k[$j++]=1}else{var _h=$g($_.sep,$_.i-1)==0?1:0;$k[$j++]=_h}}else{$k[$j++]=0}$p($_.sep,$_.i,$k[--$j])}};$k[$j++]=Infinity;var _l=$_.bot;for(var _m=0,_n=_l.length;_m<_n;_m++){$k[$j++]=$f(1-$g(_l,_m))}$_.sep=$a();$P($_.sep,0,$a([0,0,0,0]));$P($_.sep,$_.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _x=19,_w=$_.bot.length-13;_x<=_w;_x+=98){$k[$j++]=_x}for(var _10=70,_z=$_.bot.length-13;_10<=_z;_10+=98){$k[$j++]=_10}var _11=$a();for(var _12=0,_13=_11.length;_12<_13;_12++){$k[$j++]=$g(_11,_12);$_.sepfinder()}if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _1B=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_1B;bwipp_renmatrix();var _1E=$g($_.bot,0)==0?2:0;$$.rmoveto(_1E,1);$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();bwipp_renmatrix();$$.restore()}else{$k[$j++]="compsym";$k[$j++]=$_.comp;$k[$j++]=$_.options;bwipp_gs1_cc();var _1J=$k[--$j];$_[$k[--$j]]=_1J;$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$_.pixx=$_.sep.length;$k[$j++]=Infinity;for(var _1S=0,_1T=~~($f($f($_.pixx-$_.ccpixx)+1)/2);_1S<_1T;_1S++){$k[$j++]=0}$_.cclpad=$a();$k[$j++]=Infinity;for(var _1X=0,_1Y=~~($f($_.pixx-$_.ccpixx)/2);_1X<_1Y;_1X++){$k[$j++]=0}$_.ccrpad=$a();$k[$j++]=Infinity;for(var _1d=0,_1e=$_.ccpixx,_1c=$_.ccpixs.length-1;_1e<0?_1d>=_1c:_1d<=_1c;_1d+=_1e){$_.i=_1d;$q($_.cclpad);$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}$q($_.sep);$q($_.linpixs);$_.pixs=$a();$_.pixy=~~($_.pixs.length/$_.pixx);var _1w=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_1w;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_gs1_128composite(){$_=Object.create($_);$_.dontdraw=false;$_.usematrix=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($_.dontdraw){$_.usematrix=true}$X($_.barcode,"|");if($k[--$j]){$_.linear=$k[--$j];$j--;$_.comp=$k[--$j]}else{$j--;$k[$j++]="bwipp.missingCompositeComponent#29878";$k[$j++]="A Composite Component must be provided following a pipe character";bwipp_raiseerror()}if(!$_.usematrix){$$.save()}$p($_.options,"inkspreadv",0);$p($_.options,"dontdraw",true);$p($_.options,"dontlint",true);var _D=$s($_.linear.length+$_.comp.length);$P(_D,0,$_.linear);$P(_D,$_.linear.length,$_.comp);$k[$j++]=_D;$k[$j++]="ai";bwipp_gs1process();$j-=3;$p($_.options,"linkagea",true);$k[$j++]=$_.linear;$k[$j++]=Infinity;$F($_.options);var _K=$d();$k[$j++]=_K;bwipp_gs1_128();var _M=$g($k[--$j],"sbs");$k[$j++]=0;$F(_M,function(){var _N=$k[--$j];var _O=$k[--$j];$k[$j++]=$f(_O+_N)});$_.linwidth=$k[--$j];$p($_.options,"lintype","gs1-128");$p($_.options,"linwidth",$_.linwidth);$k[$j++]=$_.comp;$k[$j++]=Infinity;$F($_.options);var _V=$d();$k[$j++]=_V;bwipp_gs1_cc();$_.compsym=$k[--$j];if($g($_.compsym,"pixx")==99){$k[$j++]="a"}else{$k[$j++]="c"}$_.linktype=$k[--$j];if($eq($_.linktype,"a")){$p($_.options,"linkagea",true);$p($_.options,"linkagec",false)}else{$p($_.options,"linkagea",false);$p($_.options,"linkagec",true)}$k[$j++]=$_.linear;$k[$j++]=Infinity;var _g=$_.options;$F(_g);var _h=$d();$k[$j++]=_h;bwipp_gs1_128();var _i=$k[--$j];$_.linsbs=$g(_i,"sbs");$_.linheight=$g($g(_i,"bhs"),0)*72;$k[$j++]=_i;if(!$_.usematrix){bwipp_renlinear()}else{$j--}$k[$j++]=Infinity;$k[$j++]=1;$F($_.linsbs,function(){var _o=$k[--$j];var _p=$k[--$j];var _q=_p==0?1:0;$k[$j++]=_p;for(var _r=0,_s=_o;_r<_s;_r++){$k[$j++]=_q}});$as($a($m()-1));$_.sep=$k[--$j];$j-=2;if(!$_.usematrix){$$.rmoveto(0,$_.linheight);var _12=new Map([["ren",bwipp_renmatrix],["pixs",$_.sep],["pixx",$_.sep.length],["pixy",1],["height",1/72],["width",$_.sep.length/72],["opt",$_.options]]);$k[$j++]=_12;bwipp_renmatrix()}if($eq($_.linktype,"a")){$_.s=~~($f($_.linwidth-2)/11);$_.p=~~(($_.s-9)/2);$k[$j++]="x";$k[$j++]=($_.s-$_.p-1)*11+10;if($_.p==0){var _19=$k[--$j];$k[$j++]=$f(_19+2)}var _1A=$k[--$j];$_[$k[--$j]]=$f(_1A-99)}else{$_.x=-7}if(!$_.usematrix){$$.rmoveto($_.x,1);$k[$j++]=$_.compsym;bwipp_renmatrix();$$.restore()}else{$_.ccpixs=$g($_.compsym,"pixs");$_.ccpixx=$g($_.compsym,"pixx");$k[$j++]=Infinity;$F($_.linsbs,function(){var _1K=$k[--$j];var _1L=$k[--$j];var _1M=_1L==1?0:1;$k[$j++]=_1L;for(var _1N=0,_1O=_1K;_1N<_1O;_1N++){$k[$j++]=_1M}});$_.linpixs=$a();if($_.x>0){$k[$j++]=Infinity;for(var _1S=0,_1T=$_.x;_1S<_1T;_1S++){$k[$j++]=0}$_.cclpad=$a();$_.linlpad=$a(0)}else{$_.cclpad=$a(0);$k[$j++]=Infinity;for(var _1Y=0,_1Z=-$_.x;_1Y<_1Z;_1Y++){$k[$j++]=0}$_.linlpad=$a()}$_.diff=$f($_.linwidth-$f($_.ccpixx+$_.x));if($_.diff>0){$k[$j++]=Infinity;for(var _1g=0,_1h=$_.diff;_1g<_1h;_1g++){$k[$j++]=0}$_.ccrpad=$a();$_.linrpad=$a(0)}else{$_.ccrpad=$a(0);$k[$j++]=Infinity;for(var _1m=0,_1n=-$_.diff;_1m<_1n;_1m++){$k[$j++]=0}$_.linrpad=$a()}$_.linheight=~~$_.linheight;$k[$j++]=Infinity;for(var _1t=0,_1u=$_.ccpixx,_1s=$_.ccpixs.length-1;_1u<0?_1t>=_1s:_1t<=_1s;_1t+=_1u){$_.i=_1t;$q($_.cclpad);$q($G($_.ccpixs,$_.i,$_.ccpixx));$q($_.ccrpad)}$q($_.linlpad);$q($_.sep);$q($_.linrpad);for(var _25=0,_26=$_.linheight;_25<_26;_25++){$q($_.linlpad);$q($_.linpixs);$q($_.linrpad)}$_.pixs=$a();$_.pixx=$f($f($_.cclpad.length+$_.ccpixx)+$_.ccrpad.length);$_.pixy=~~($_.pixs.length/$_.pixx);var _2M=new Map([["ren",bwipp_renmatrix],["pixs",$_.pixs],["pixx",$_.pixx],["pixy",$_.pixy],["height",$_.pixy/72],["width",$_.pixx/72],["opt",$_.options]]);$k[$j++]=_2M;if(!$_.dontdraw){$$.save();bwipp_renmatrix();$$.restore()}}$_=Object.getPrototypeOf($_)}function bwipp_gs1datamatrix(){$_=Object.create($_);$_.dontdraw=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.gssep=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.dmtx=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.dmtx.length+$_.ai.length+$_.val.length);$P(_K,0,$_.dmtx);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.dmtx.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.dmtx.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.dmtx=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.dmtx.length+1);$P(_j,0,$_.dmtx);$k[$j++]=_j;$k[$j++]=_j;$k[$j++]=$_.dmtx.length;if($_.gssep){$k[$j++]=29}else{$k[$j++]=$_.fnc1}var _o=$k[--$j];var _p=$k[--$j];$p($k[--$j],_p,_o);$_.dmtx=$k[--$j]}}$_.barcode=$s(($_.dmtx.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.dmtx.length){break}var _y=$g($_.dmtx,$_.i);$k[$j++]=_y;if(_y==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _1G=$k[--$j];$_[$k[--$j]]=_1G;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1datamatrixrectangular(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$_.gssep=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.dmtx=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.dmtx.length+$_.ai.length+$_.val.length);$P(_K,0,$_.dmtx);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.dmtx.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.dmtx.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.dmtx=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.dmtx.length+1);$P(_j,0,$_.dmtx);$k[$j++]=_j;$k[$j++]=_j;$k[$j++]=$_.dmtx.length;if($_.gssep){$k[$j++]=29}else{$k[$j++]=$_.fnc1}var _o=$k[--$j];var _p=$k[--$j];$p($k[--$j],_p,_o);$_.dmtx=$k[--$j]}}$_.barcode=$s(($_.dmtx.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.dmtx.length){break}var _y=$g($_.dmtx,$_.i);$k[$j++]=_y;if(_y==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$p($_.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _1H=$k[--$j];$_[$k[--$j]]=_1H;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1dldatamatrix(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$k[$j++]=$_.barcode;$k[$j++]="dl";bwipp_gs1process();$j-=3;delete $_.options["parse"];$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _D=$k[--$j];$_[$k[--$j]]=_D;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1qrcode(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.qrc=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.qrc.length+$_.ai.length+$_.val.length);$P(_K,0,$_.qrc);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.qrc.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.qrc.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.qrc=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.qrc.length+1);$P(_j,0,$_.qrc);$p(_j,$_.qrc.length,$_.fnc1);$_.qrc=_j}}$_.barcode=$s(($_.qrc.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.qrc.length){break}var _t=$g($_.qrc,$_.i);$k[$j++]=_t;if(_t==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _1B=$k[--$j];$_[$k[--$j]]=_1B;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1dlqrcode(){$_=Object.create($_);$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$_.dontdraw=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];var _3=new Map([["parse",$_.parse],["parseonly",true],["parsefnc",false]]);$_.fncvals=_3;$k[$j++]="barcode";$k[$j++]=$_.barcode;$k[$j++]=$_.fncvals;bwipp_parseinput();var _6=$k[--$j];$_[$k[--$j]]=_6;$k[$j++]=$_.barcode;$k[$j++]="dl";bwipp_gs1process();$j-=3;delete $_.options["parse"];$p($_.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _D=$k[--$j];$_[$k[--$j]]=_D;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_gs1dotcode(){$_=Object.create($_);$_.dontdraw=false;$_.parse=false;$_.dontlint=false;$_.lintreqs=true;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];$k[$j++]=$_.barcode;$k[$j++]="ai";bwipp_gs1process();$_.fncs=$k[--$j];$_.vals=$k[--$j];$_.ais=$k[--$j];$_.fnc1=-1;$_.dmtx=$a([$_.fnc1]);for(var _A=0,_9=$_.ais.length-1;_A<=_9;_A+=1){$_.i=_A;$_.ai=$g($_.ais,$_.i);$_.val=$g($_.vals,$_.i);var _K=$a($_.dmtx.length+$_.ai.length+$_.val.length);$P(_K,0,$_.dmtx);$k[$j++]=_K;$k[$j++]=_K;$k[$j++]=$_.dmtx.length;$k[$j++]=$_.ai;$k[$j++]=Infinity;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$F(_P);var _Q=$a();var _R=$k[--$j];$P($k[--$j],_R,_Q);var _T=$k[--$j];$k[$j++]=_T;$k[$j++]=_T;$k[$j++]=$_.dmtx.length+$_.ai.length;$k[$j++]=$_.val;$k[$j++]=Infinity;var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_X;$F(_Y);var _Z=$a();var _a=$k[--$j];$P($k[--$j],_a,_Z);$_.dmtx=$k[--$j];if($_.i!=$_.ais.length-1&&$g($_.fncs,$_.i)){var _j=$a($_.dmtx.length+1);$P(_j,0,$_.dmtx);$p(_j,$_.dmtx.length,$_.fnc1);$_.dmtx=_j}}$_.barcode=$s(($_.dmtx.length+1)*5);$_.i=0;$_.j=0;for(;;){if($_.i==$_.dmtx.length){break}var _t=$g($_.dmtx,$_.i);$k[$j++]=_t;if(_t==$_.fnc1){$j--;$P($_.barcode,$_.j,"^FNC1");$_.j=$_.j+4}else{$p($_.barcode,$_.j,$k[--$j])}$_.i=$_.i+1;$_.j=$_.j+1}$_.barcode=$G($_.barcode,0,$_.j);delete $_.options["parse"];$p($_.options,"dontdraw",true);$p($_.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_dotcode();var _1B=$k[--$j];$_[$k[--$j]]=_1B;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_)}function bwipp_hibccode39(){$_=Object.create($_);$_.dontdraw=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibccode39emptyData#30537";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibccode39);if(!bwipp_hibccode39.__30547__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibccode39.$ctx[id]=$_[id]);bwipp_hibccode39.__30547__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibccode39badCharacter#30552";$k[$j++]="HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibccode39badCheckDigit#30566";$k[$j++]="Incorrect HIBC Code 39 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$_.text=$s($f($_.barlen+4));$p($_.text,0,42);$P($_.text,1,$_.barcode);var _v=$g($_.barcode,$f($_.barlen+1));$k[$j++]=$_.text;$k[$j++]=$f($_.barlen+2);$k[$j++]=_v;if(_v==32){$j--;$k[$j++]=95}var _w=$k[--$j];var _x=$k[--$j];$p($k[--$j],_x,_w);$p($_.text,$f($_.barlen+3),42);$p($_.options,"dontdraw",true);$p($_.options,"includecheck",false);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code39();var _16=$k[--$j];$_[$k[--$j]]=_16;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibccode128(){$_=Object.create($_);$_.dontdraw=false;$_.textfont="OCR-B";$_.textsize=10;$_.textyoffset=-8;$_.textxoffset=0;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibccode128emptyData#30641";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibccode128);if(!bwipp_hibccode128.__30651__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibccode128.$ctx[id]=$_[id]);bwipp_hibccode128.__30651__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibccode128badCharacter#30656";$k[$j++]="HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibccode128badCheckDigit#30670";$k[$j++]="Incorrect HIBC Code 128 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$_.text=$s($f($_.barlen+4));$p($_.text,0,42);$P($_.text,1,$_.barcode);var _v=$g($_.barcode,$f($_.barlen+1));$k[$j++]=$_.text;$k[$j++]=$f($_.barlen+2);$k[$j++]=_v;if(_v==32){$j--;$k[$j++]=95}var _w=$k[--$j];var _x=$k[--$j];$p($k[--$j],_x,_w);$p($_.text,$f($_.barlen+3),42);$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_code128();var _15=$k[--$j];$_[$k[--$j]]=_15;$p($_.args,"txt",$a([$a([$_.text,$_.textxoffset,$_.textyoffset,$_.textfont,$_.textsize])]));$p($_.args,"textxalign","center");$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcdatamatrix(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibcdatamatrixEmptyData#30740";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibcdatamatrix);if(!bwipp_hibcdatamatrix.__30750__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcdatamatrix.$ctx[id]=$_[id]);bwipp_hibcdatamatrix.__30750__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibcdatamatrixBadCharacter#30755";$k[$j++]="HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcdatamatrixBadCheckDigit#30769";$k[$j++]="Incorrect HIBC Data Matrix check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$_.barlen;var _e=$s($f(_d+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcdatamatrixrectangular(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibcdatamatrixrectangularEmptyData#30831";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibcdatamatrixrectangular);if(!bwipp_hibcdatamatrixrectangular.__30841__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcdatamatrixrectangular.$ctx[id]=$_[id]);bwipp_hibcdatamatrixrectangular.__30841__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCharacter#30846";$k[$j++]="HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCheckDigit#30860";$k[$j++]="Incorrect HIBC Data Matrix Rectangular check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _d=$_.barlen;var _e=$s($f(_d+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$p($_.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_datamatrix();var _r=$k[--$j];$_[$k[--$j]]=_r;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcpdf417(){$_=Object.create($_);$_.dontdraw=false;$_.columns=2;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibcpdf417EmptyData#30924";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibcpdf417);if(!bwipp_hibcpdf417.__30934__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcpdf417.$ctx[id]=$_[id]);bwipp_hibcpdf417.__30934__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibcpdf417BadCharacter#30939";$k[$j++]="HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcpdf417BadCheckDigit#30953";$k[$j++]="Incorrect HIBC PDF417 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"columns",$_.columns);var _p=$_.options;$p(_p,"validatecheck",false);var _r=$_.options;$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=_r;bwipp_pdf417();var _s=$k[--$j];$_[$k[--$j]]=_s;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcmicropdf417(){$_=Object.create($_);$_.dontdraw=false;$_.columns=2;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibcmicropdf417EmptyData#31017";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibcmicropdf417);if(!bwipp_hibcmicropdf417.__31027__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcmicropdf417.$ctx[id]=$_[id]);bwipp_hibcmicropdf417.__31027__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibcmicropdf417BadCharacter#31032";$k[$j++]="HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcmicropdf417BadCheckDigit#31046";$k[$j++]="Incorrect HIBC MicroPDF417 check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));var _m=$_.options;$p(_m,"dontdraw",true);$p($_.options,"columns",$_.columns);$p($_.options,"validatecheck",false);var _r=$_.options;$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=_r;bwipp_micropdf417();var _s=$k[--$j];$_[$k[--$j]]=_s;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcqrcode(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibcqrcodeEmptyData#31109";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibcqrcode);if(!bwipp_hibcqrcode.__31119__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcqrcode.$ctx[id]=$_[id]);bwipp_hibcqrcode.__31119__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibcqrcodeBadCharacter#31124";$k[$j++]="HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcqrcodeBadCheckDigit#31138";$k[$j++]="Incorrect HIBC QR Code check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_qrcode();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibccodablockf(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibccodablockfEmptyData#31200";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibccodablockf);if(!bwipp_hibccodablockf.__31210__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibccodablockf.$ctx[id]=$_[id]);bwipp_hibccodablockf.__31210__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibccodablockfBadCharacter#31215";$k[$j++]="HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibccodablockfBadCheckDigit#31229";$k[$j++]="Incorrect HIBC Codablock F check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_codablockf();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_hibcazteccode(){$_=Object.create($_);$_.dontdraw=false;$_.validatecheck=false;$k[$j++]=$_;bwipp_processoptions();$_.options=$k[--$j];$_.barcode=$k[--$j];if($eq($_.barcode,"")){$k[$j++]="bwipp.hibcazteccodeEmptyData#31291";$k[$j++]="The data must not be empty";bwipp_raiseerror()}bwipp_loadctx(bwipp_hibcazteccode);if(!bwipp_hibcazteccode.__31301__){$_=Object.create($_);$_.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$_.charvals=new Map;for(var _3=0;_3<=42;_3+=1){$p($_.charvals,$G($_.barchars,_3,1),_3)}for(var id in $_)$_.hasOwnProperty(id)&&(bwipp_hibcazteccode.$ctx[id]=$_[id]);bwipp_hibcazteccode.__31301__=1;$_=Object.getPrototypeOf($_)}for(var _A=0,_9=$_.barcode.length-1;_A<=_9;_A+=1){var _E=$g($_.charvals,$G($_.barcode,_A,1))!==undefined;if(!_E){$k[$j++]="bwipp.hibcazteccodeBadCharacter#31306";$k[$j++]="HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%";bwipp_raiseerror()}}$k[$j++]="barlen";$k[$j++]=$_.barcode.length;if($_.validatecheck){var _H=$k[--$j];$k[$j++]=$f(_H-1)}var _I=$k[--$j];$_[$k[--$j]]=_I;$_.checksum=41;for(var _M=0,_L=$f($_.barlen-1);_M<=_L;_M+=1){$_.checksum=$f($g($_.charvals,$G($_.barcode,_M,1))+$_.checksum)}$_.checksum=$_.checksum%43;if($_.validatecheck){if($g($_.barcode,$_.barlen)!=$g($_.barchars,$_.checksum)){$k[$j++]="bwipp.hibcazteccodeBadCheckDigit#31320";$k[$j++]="Incorrect HIBC Aztec Code check digit provided";bwipp_raiseerror()}$_.barcode=$G($_.barcode,0,$_.barlen)}var _e=$s($f($_.barlen+2));$P(_e,1,$_.barcode);$_.barcode=_e;$p($_.barcode,0,43);$p($_.barcode,$f($_.barlen+1),$g($_.barchars,$_.checksum));$p($_.options,"dontdraw",true);$p($_.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$_.barcode;$k[$j++]=$_.options;bwipp_azteccode();var _q=$k[--$j];var _r=$k[--$j];$_[_r]=_q;$p($_.args,"opt",$_.options);$k[$j++]=$_.args;if(!$_.dontdraw){bwipp_renmatrix()}$_=Object.getPrototypeOf($_);$_=Object.getPrototypeOf($_)}function bwipp_channelcode(){$_=Object.create($_);$_.options=$k[--$j];$_.barcode=$k[--$j];$_.dontdraw=false;$_.shortfinder=false;$_.includetext=false;$_.includecheck=false;$_.height=1;$F($_.options,function(){var _3=$k[--$j];$_[$k[--$j]]=_3});$_.height=+$_.height;if($_.barcode.length<2||$_.barcode.length>7){$k[$j++]="bwipp.channelcodeBadLength#31395";$k[$j++]="Channel Code must be 2 to 7 digits";bwipp_raiseerror()}$F($_.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.channelcodeBadCharacter#31399";$k[$j++]="Channel Code must contain only digits";bwipp_raiseerror()}});if($i($_.barcode)>$g($a([26,292,3493,44072,576688,7742862]),$_.barcode.length-2)){$k[$j++]="bwipp.channelcodeTooBig#31403";$k[$j++]="The Channel Code value is too big for the number of channels";bwipp_raiseerror()}$_.nextb=function(){var _E=$k[--$j];var _N=$f($g($_.s,_E)+$f($g($_.b,$f(_E-1))+$f($g($_.b,$f(_E-2))+$g($_.s,$f(_E-1)))))>4?1:2;$k[$j++]=_E;$k[$j++]=_N;if(_E<$f($_.chan+2)){var _P=$k[--$j];var _Q=$k[--$j];var _R=$k[--$j];$k[$j++]=_R;$k[$j++]=_Q;$k[$j++]=_P;for(var _T=_P,_S=_R;_T<=_S;_T+=1){var _V=$k[--$j];var _W=$k[--$j];$p($_.b,_W,_T);var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_Y;$k[$j++]=_X;$k[$j++]=_W;$k[$j++]=_V;$k[$j++]=$f($f(_X-_T)+1);$k[$j++]=_Y;$k[$j++]=$f(_W+1);$_.nexts()}}else{var _Z=$k[--$j];var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=_b;$k[$j++]=_a;$k[$j++]=_Z;if($le(_Z,_b)){var _d=$k[--$j];var _e=$k[--$j];var _f=$k[--$j];$p($_.b,_e,_f);$k[$j++]=_f;$k[$j++]=_e;$k[$j++]=_d;if($_.value==$_.target){$k[$j++]=Infinity;for(var _i=3;_i<=10;_i+=1){$k[$j++]=$g($_.s,_i);$k[$j++]=$g($_.b,_i)}$_.out=$G($a(),0,$_.chan*2)}$_.value=$_.value+1}}$j-=4};$_.nexts=function(){var _r=$k[--$j];$k[$j++]=_r;if(_r<$f($_.chan+2)){$k[$j++]=1}else{var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=_u;$k[$j++]=_t;$k[$j++]=_u}var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;for(var _z=_v,_y=_x;_z<=_y;_z+=1){var _11=$k[--$j];$p($_.s,_11,_z);var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_13;$k[$j++]=_12;$k[$j++]=_11;$k[$j++]=$f($f(_12-_z)+1);$k[$j++]=_13;$k[$j++]=_11;$_.nextb()}$j-=3};$_.encode=function(){$_.chan=$k[--$j];$_.target=$k[--$j];$_.value=0;$_.out=-1;$_.b=$a([1,1,1,0,0,0,0,0,0,0,0]);$_.s=$a([0,1,1,0,0,0,0,0,0,0,0]);var _18=$_.chan;$k[$j++]=_18;$k[$j++]=_18;$k[$j++]=3;$_.nexts();$k[$j++]=$_.out};$_.barlen=$_.barcode.length;$k[$j++]="finder";if($_.shortfinder){$k[$j++]=$a([1,1,1,1,1])}else{$k[$j++]=$a([1,1,1,1,1,1,1,1,1])}var _1E=$k[--$j];$_[$k[--$j]]=_1E;$k[$j++]="data";$k[$j++]=$i($_.barcode);$k[$j++]=$_.barlen+1;$_.encode();var _1I=$k[--$j];$_[$k[--$j]]=_1I;$_.check=$a([]);if($_.includecheck){$_.mod23=$g($a([$a([]),$a([]),$a([13,12,4,9,3,1]),$a([13,2,12,3,18,16,4,1]),$a([11,16,17,8,20,4,10,2,5,1]),$a([1,4,16,18,3,12,2,8,9,13,6,1]),$a([20,16,22,13,15,12,5,4,8,9,21,3,7,1]),$a([2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1])]),$_.barlen);$k[$j++]=0;for(var _1Z=0,_1Y=$_.data.length-1;_1Z<=_1Y;_1Z+=1){var _1e=$k[--$j];$k[$j++]=$f(_1e+$f($g($_.data,_1Z)-1)*$g($_.mod23,_1Z))}var _1f=$k[--$j];$k[$j++]=_1f%23;$k[$j++]=3;$_.encode();$_.check=$k[--$j]}$k[$j++]=Infinity;$q($_.finder);$q($_.data);$q($_.check);$_.sbs=$a();$_.txt=$a($_.barlen);for(var _1p=0,_1o=$_.barlen-1;_1p<=_1o;_1p+=1){$_.i=_1p;$p($_.txt,$_.i,$a([$G($_.barcode,$_.i,1),0,0,"",0]))}$k[$j++]=Infinity;var _1w=$_.sbs;$k[$j++]=Infinity;for(var _1y=0,_1z=~~(($_.sbs.length+1)/2);_1y<_1z;_1y++){$k[$j++]=$_.height}var _21=$a();$k[$j++]=Infinity;for(var _23=0,_24=~~(($_.sbs.length+1)/2);_23<_24;_23++){$k[$j++]=0}var _25=$a();$k[$j++]="ren";$k[$j++]=bwipp_renlinear;$k[$j++]="sbs";$k[$j++]=_1w;$k[$j++]="bhs";$k[$j++]=_21;$k[$j++]="bbs";$k[$j++]=_25;$k[$j++]="txt";$k[$j++]=$_.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$_.options;var _28=$d();$k[$j++]=_28;if(!$_.dontdraw){bwipp_renlinear()}$_=Object.getPrototypeOf($_)}function bwipp_renlinear(){if($_.bwipjs_dontdraw){return}$_=Object.create($_);$_.sbs=$a([]);$_.bhs=$a([]);$_.bbs=$a([]);$_.txt=$a([]);$_.barcolor="unset";$_.includetext=false;$_.textcolor="unset";$_.textxalign="unset";$_.textyalign="unset";$_.textfont="OCR-B";$_.textsize=10;$_.textxoffset=0;$_.textyoffset=0;$_.textgaps=0;$_.alttext="";$_.bordercolor="unset";$_.backgroundcolor="unset";$_.inkspread=0;$_.width=0;$_.barratio=1;$_.spaceratio=1;$_.showborder=false;$_.showbearer=false;$_.borderleft=10;$_.borderright=10;$_.bordertop=1;$_.borderbottom=1;$_.borderwidth=.5;$_.guardwhitespace=false;$_.guardleftpos=0;$_.guardleftypos=0;$_.guardrightpos=0;$_.guardrightypos=0;$_.guardwidth=7;$_.guardheight=7;$F($k[--$j],function(){var _6=$k[--$j];$_[$k[--$j]]=_6});$k[$j++]=$_.opt;delete $_["opt"];$k[$j++]=$_;bwipp_processoptions();$j--;if($_.textsize<=0){$k[$j++]="bwipp.renlinearBadTextsize#31579";$k[$j++]="The font size must be greater than zero";bwipp_raiseerror()}$_.bars=$a(~~(($_.sbs.length+1)/2));$_.pixx=0;$_.pixy=0;for(var _E=0,_D=~~(($_.sbs.length+1)/2)*2-2;_E<=_D;_E+=1){$_.i=_E;if($_.i%2==0){$_.d=$f($f($g($_.sbs,$_.i)*$_.barratio-$_.barratio)+1);if($g($_.sbs,$_.i)!=0){$_.h=$g($_.bhs,~~($_.i/2))*72;$_.c=$f($_.d/2+$_.pixx);$_.y=$g($_.bbs,~~($_.i/2))*72;$_.w=$f($_.d-$_.inkspread);$p($_.bars,~~($_.i/2),$a([$_.h,$_.c,$_.y,$_.w]));if($f($_.h+$_.y)>$_.pixy){$_.pixy=$f($_.h+$_.y)}}else{$p($_.bars,~~($_.i/2),-1)}}else{$_.d=$f($f($g($_.sbs,$_.i)*$_.spaceratio-$_.spaceratio)+1)}$_.pixx=$f($_.pixx+$_.d)}$$.save();var _t=$$.currpos();$$.translate(_t.x,_t.y);if($_.width!=0){$$.scale($_.width*72/$_.pixx,1)}$_.tl=$a([-$f($_.borderleft+$_.borderwidth/2),$f($f($_.pixy+$_.bordertop)+$_.borderwidth/2)]);$_.tr=$a([$f($f($_.pixx+$_.borderright)+$_.borderwidth/2),$f($f($_.pixy+$_.bordertop)+$_.borderwidth/2)]);$_.bl=$a([-$f($_.borderleft+$_.borderwidth/2),-$f($_.borderbottom+$_.borderwidth/2)]);$_.br=$a([$f($f($_.pixx+$_.borderright)+$_.borderwidth/2),-$f($_.borderbottom+$_.borderwidth/2)]);if($_.showbearer){$$.save();$$.newpath();$q($_.bl);var _1N=$k[--$j];$$.moveto($k[--$j],_1N);$q($_.br);var _1Q=$k[--$j];$$.lineto($k[--$j],_1Q);$q($_.tl);var _1T=$k[--$j];$$.moveto($k[--$j],_1T);$q($_.tr);var _1W=$k[--$j];$$.lineto($k[--$j],_1W);if($ne($_.bordercolor,"unset")){$$.setcolor($_.bordercolor)}$$.setlinewidth($f($_.borderwidth-$_.inkspread*2));$$.stroke();$$.restore()}else{if($_.showborder){$$.save();$$.newpath();$q($_.bl);var _1e=$k[--$j];$$.moveto($k[--$j],_1e);var _1j=$a([$_.br,$_.tr,$_.tl]);for(var _1k=0,_1l=_1j.length;_1k<_1l;_1k++){$q($g(_1j,_1k));var _1n=$k[--$j];$$.lineto($k[--$j],_1n)}$$.closepath();if($ne($_.bordercolor,"unset")){$$.setcolor($_.bordercolor)}$$.setlinewidth($_.borderwidth);$$.stroke();$$.restore()}}$$.save();if($ne($_.barcolor,"unset")){$$.setcolor($_.barcolor)}var _1u=$_.bars;for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){var _1x=$g(_1u,_1v);$k[$j++]=_1x;if(_1x!=-1){$q($k[--$j]);$$.newpath();$$.setlinewidth($k[--$j]);var _20=$k[--$j];$$.moveto($k[--$j],_20);$$.rlineto(0,$k[--$j]);$$.stroke()}else{$j--}}$$.restore();if($ne($_.textcolor,"unset")){$$.setcolor($_.textcolor)}if($_.includetext){if($eq($_.textxalign,"unset")&&$eq($_.textyalign,"unset")&&$eq($_.alttext,"")){$_.s=0;$_.fn="";var _29=$_.txt;for(var _2A=0,_2B=_29.length;_2A<_2B;_2A++){$F($g(_29,_2A));var _2D=$k[--$j];var _2E=$k[--$j];$k[$j++]=_2E;$k[$j++]=_2D;if(_2D!=$_.s||$ne(_2E,$_.fn)){var _2H=$k[--$j];var _2I=$k[--$j];$_.s=_2H;$_.fn=_2I;$$.selectfont(_2I,_2H)}else{$j-=2}var _2J=$k[--$j];$$.moveto($k[--$j],_2J);$$.show($k[--$j],0,0)}}else{$$.selectfont($_.textfont,$_.textsize);if($eq($_.alttext,"")){$k[$j++]=Infinity;var _2P=$_.txt;for(var _2Q=0,_2R=_2P.length;_2Q<_2R;_2Q++){$F($g($g(_2P,_2Q),0))}$_.txt=$a();$_.tstr=$s($_.txt.length);for(var _2Z=0,_2Y=$_.txt.length-1;_2Z<=_2Y;_2Z+=1){$p($_.tstr,_2Z,$g($_.txt,_2Z))}}else{$_.tstr=$_.alttext}if($_.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _2f=$$.pathbbox();$$.restore();$k[$j++]=_2f.ury}$_.textascent=$k[--$j];var _2i=$$.stringwidth($_.tstr);$_.textwidth=$f(_2i.w+($_.tstr.length-1)*$_.textgaps);$_.textxpos=$f($_.textxoffset+$f($_.pixx-$_.textwidth)/2);if($eq($_.textxalign,"left")){$_.textxpos=$_.textxoffset}if($eq($_.textxalign,"right")){$_.textxpos=$f($f($_.pixx-$_.textxoffset)-$_.textwidth)}if($eq($_.textxalign,"offleft")){$_.textxpos=-$f($_.textwidth+$_.textxoffset)}if($eq($_.textxalign,"offright")){$_.textxpos=$f($_.pixx+$_.textxoffset)}if($eq($_.textxalign,"justify")&&$_.textwidth<$_.pixx){$_.textxpos=0;$_.textgaps=$f($_.pixx-$_.textwidth)/($_.tstr.length-1)}$_.textypos=-$f($f($_.textyoffset+$_.textascent)+1);if($eq($_.textyalign,"above")){$_.textypos=$f($f($_.textyoffset+$_.pixy)+1)}if($eq($_.textyalign,"center")){$_.textypos=$f($_.textyoffset+$f($_.pixy-$_.textascent)/2)}$$.moveto($_.textxpos,$_.textypos);$$.show($_.tstr,$_.textgaps,0)}}if($_.guardwhitespace){$$.selectfont("OCR-B",$_.guardheight*2);if($_.guardleftpos!=0){$$.moveto(-$_.guardleftpos-2,$f($f($_.guardleftypos-$_.guardheight/2)-1.25));$$.show("<",0,0)}if($_.guardrightpos!=0){$$.moveto($f($f($f($_.guardrightpos+$_.pixx)-$_.guardwidth)+1),$f($f($_.guardrightypos-$_.guardheight/2)-1.25));$$.show(">",0,0)}}$$.restore();$_=Object.getPrototypeOf($_)}function bwipp_renmaximatrix(){if($_.bwipjs_dontdraw){return}$_=Object.create($_);$_.args=$k[--$j];$_.barcolor="unset";$_.backgroundcolor="unset";$F($_.args,function(){var _3=$k[--$j];$_[$k[--$j]]=_3});var _5=$_.opt;for(var _A=_5.size,_9=_5.keys(),_8=0;_8<_A;_8++){var _6=_9.next().value;$_[_6]=_5.get(_6)}$_.barcolor=""+$_.barcolor;$_.backgroundcolor=""+$_.backgroundcolor;$$.save();if($ne($_.barcolor,"unset")){$$.setcolor($_.barcolor)}$$.maxicode($_.pixs);$$.restore();$_=Object.getPrototypeOf($_)}function bwipp_encode(bwipjs,encoder,text,opts,dontdraw){if(typeof text!=="string"){throw new Error("bwipp.typeError: barcode text not a string ("+text+")")}opts=opts||{};if(typeof opts==="string"){var tmp=opts.split(" ");opts={};for(var i=0;i=0&&r[e].op=="l";e--);e++;if(ev.x0)n=v.x0;if(sv.y0)a=v.y0;if(fv.x1)n=v.x1;if(sv.y1)a=v.y1;if(fs.x0)t=s.x0;if(is.x1)t=s.x1;if(is.y0)e=s.y0;if(ns.y1)e=s.y1;if(no){var y=s;s=o;o=y}if(f>v){var y=f;f=v;v=y}if(s==o){this.bbox(s-u,f,s+c-u-1,v)}else{this.bbox(s,f-p+g+1,o,v+g)}e++}else if(a.op=="p"){var d=Infinity;var x=Infinity;var b=-Infinity;var w=-Infinity;var _=a.poly;if(_.length!=4){throw new Error("stroke: --not-a-rect--")}for(var n=0,m=_.length-1;n<_.length;m=n++){var k=_[m][0];var I=_[m][1];var F=_[n][0];var C=_[n][1];if(F!=k&&C!=I){throw new Error("stroke: --not-orthogonal--")}if(Fb)b=F;if(Cw)w=C}var u=T(c/2);var g=T(p/2);this.bbox(d-u,x-g,b+u,w+g);i++}else{throw new Error("stroke: --not-a-line--")}}var S=this;this.cmds.push(function(){var r=T(c/2);var t=T(p/2);var e=c-r;var i=p-t;for(var n=0;ns)s=u;if(hf)f=h}this.bbox(e,a+1,s-1,f)}else if(t.op=="e"){this.bbox(t.x-t.rx,t.y-t.ry,t.x+t.rx,t.y+t.ry)}else{throw new Error("fill: --not-a-polygon--")}}var l=this;this.cmds.push(function(){for(var r=0;r9){v++}var t,u,e,i;e=s/2|0;i=f/2|0;t=v-e;if(t&1){t--}u=(4*f|0)-i;var h=t/2-1;var l=(h+1)/2|0;var c=u-2-2*l;this.bbox(0,0,v*30-e,f*3*32+f*4-i);var p=this;this.cmds.push(function(){for(var r=0;re){var n=r;r=e;e=n}if(t>i){var n=t;t=i;i=n}r=M(r);t=M(t);e=T(e);i=T(i);if(this.minx>r)this.minx=r;if(this.maxxt)this.miny=t;if(this.maxys){for(var f=s+1;fa){L(n,a)}if(u>a){L(o,a)}}else{var v=r[i==t-1?0:i+1][1];var u=r[e==0?t-1:e-1][1];if(v>a){L(o,a)}if(u>a){L(n,a)}}}}},hexagon:function(r,t){var e=r[0][0]|0;var i=r[0][1]|0;var n=r[1][1]-r[0][1]|0;var a=r[2][1]-r[1][1]-1|0;var s=r[2][0]|0;var f=r[4][0]|0;I=parseInt(t.substr(0,2),16);F=parseInt(t.substr(2,2),16);C=parseInt(t.substr(4,2),16);E(e,e+1,i++);for(var o=1;o=1;o--){E(e-2*o,e+1+2*o,i++)}E(e,e+1,i)},ellipse:function(r,t,e,i,n){a(r-e|0,t-i|0,r+e|0,t+i|0,n)},fill:function(r){I=parseInt(r.substr(0,2),16);F=parseInt(r.substr(2,2),16);C=parseInt(r.substr(4,2),16);t();S=[];S.min=Infinity},clip:function(r){if(!M){M=[];M.min=Infinity}var t=S;S=M;for(var e=0,i=r.length;et)S.min=t;if(!S[t]){S[t]=[r]}else{S[t].push(r)}}function E(r,t,e){while(r<=t){T(r++,e,255)}}function t(){var r=S.min;var t=S.length-1;for(var e=r;e<=t;e++){var i=S[e];if(!i){continue}i.sort(function(r,t){return r-t});var n=false;var a=0;for(var s=0,f=i.length;se){r=e;e+=a}if(t>i)t=i;t+=(s+1)/2|0;i=t-f;a*=8*a;f=8*s*s;do{d(c,e,t);y(l,r,t);y(l,r,i);d(c,e,i);h=2*u;if(h>=o){r++;e--;o+=f;u+=o}if(h<=v){t++;i--;v+=a;u+=v}}while(r<=e);while(t-ie)r.min=e;var i=r[e];if(i==null||i>t){r[e]=t}}function d(r,t,e){if(r.min>e)r.min=e;var i=r[e];if(i==null||ir){return!i}else if(s==r){return i}i=!i}return true}function e(r){var t=0;for(var e=0,i=r.length,n=i-1;e0?1:-1}}function DrawingCanvas(e,r){if(r&&r instanceof HTMLCanvasElement){e=r}var i;var n=e.getContext("2d",{willReadFrequently:true});var t=DrawingBuiltin();t.image=f;t.end=o;var a;var s=t.setopts;t.setopts=function(r){a=r;s&&s.call(t,r)};return t;function f(r,t){e.width=r;e.height=t;n.setTransform(1,0,0,1,0,0);if(/^[0-9a-fA-F]{6}$/.test(""+a.backgroundcolor)){n.fillStyle="#"+a.backgroundcolor;n.fillRect(0,0,r,t)}else{n.clearRect(0,0,r,t)}i=n.getImageData(0,0,r,t);return{buffer:i.data,ispng:false}}function o(){n.putImageData(i,0,0);return e}}function DrawingSVG(){var o=0,v=0,u=0,n=0;var h=0,l=0,a=0,c=0;var p;var g="";var f;var t="";var y=[];var d={};var x=.55228475-45e-5;var b,w;var _,m;return{setopts(r){p=r},scale(r,t){},measure(r,t,e,i){e=e|0;i=i|0;var n=FontLib.lookup(t);var a=0;var s=0;var f=0;for(var o=0;o\n";f=null}},clip:function(e){var i='';t="clip"+y.length;y.push(i)},unclip:function(){t=""},text(t,e,r,i,n){var a=FontLib.lookup(n.name);var s=n.width|0;var f=n.height|0;var o=n.dx|0;var v="";for(var u=0;u\n'}},end(){var r="";for(var t in d){r+=d[t]+'" />\n'}var e=p.backgroundcolor;return'\n'+(y.length?""+y.join("")+"":"")+(/^[0-9A-Fa-f]{6}$/.test(""+e)?'\n':"")+r+g+"\n"}};function k(r,t){r+=_;t+=m;var e=o*r+v*t+u*(b-1)+n*(w-1);var i=h*r+l*t+a*(b-1)+c*(w-1);return""+((e|0)==e?e:e.toFixed(2))+" "+((i|0)==i?i:i.toFixed(2))}}var FontLib=function(){var v=[];var s={};var u={};var h={};var l=0;h.next=h;h.prev=h;return{lookup:t,monochrome:e,getglyph:i,getpaths:n,loadFont:r};function r(r){var t=100;var e=100;var i=null;if(arguments.length==2){i=arguments[1]}else if(arguments.length==3){t=e=+arguments[1]||100;i=arguments[2]}else if(arguments.length==4){e=+arguments[1]||100;t=+arguments[2]||100;i=arguments[3]}else{throw new Error("bwipjs: loadFont: invalid number of arguments")}var n=STBTT.InitFont(toUint8Array(i));n.bwipjs_name=r;n.bwipjs_multx=t;n.bwipjs_multy=e;var a=v.push(n)-1;s[r.toUpperCase()]=a;return a}function t(r){var t=s[r.toUpperCase()];return t===undefined?1:t}function e(r){if(r){throw new Error("bwipjs: monochrome fonts not implemented")}}function i(r,t,e,i){r=r|0;t=t|0;e=+e;i=+i;if(!e||e<8){e=8}if(!i||i<8){i=e}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=""+r+"c"+t+"w"+e+"h"+i;var a=u[n];if(a){a.prev.next=a.next;a.next.prev=a.prev;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}var f=v[r];var a=STBTT.GetGlyph(f,t,e*f.bwipjs_multx/100,i*f.bwipjs_multy/100)||STBTT.GetGlyph(f,0,e*f.bwipjs_multx/100,i*f.bwipjs_multy/100);a.bytes=a.pixels;a.cachekey=n;a.offset=0;if(l>250){var s=h;var o=s.prev;o.prev.next=s;s.prev=o.prev;o.next=o.prev=null;delete u[o.cachekey]}else{l++}u[n]=a;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}function n(r,t,e,i){r=r|0;t=t|0;e=+e;i=+i;if(!e||e<8){e=8}if(!i||i<8){i=e}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=v[r];return STBTT.GetPaths(n,t,e*n.bwipjs_multx/100,i*n.bwipjs_multy/100)}}();function LoadFont(){return FontLib.loadFont.apply(FontLib,Array.prototype.slice.call(arguments))}var STBTT=function(){var D=1,W=2,N=3,y=4,C=0,r=1,t=2,S=3,e=0,i=1,n=2,a=3,s=4,o=0,T=1,u=2,L=10;var O=Math.floor;var f=Math.ceil;var U=Math.sqrt;var A=Math.abs;function Y(r){var t=[];for(var e=0;er.length||t<0?r.length:t}function j(r,t){d(r,r.cursor+t)}function B(r,t){var e=0;for(var i=0;ir.length||e>r.length-t){return x()}var i=r.subarray(t,t+e);i.cursor=0;return i}function w(r){var t=r.cursor;var e=B(r,2);if(e){var i=z(r);j(r,i*e);j(r,B(r,i)-1)}return b(r,t,r.cursor-t)}function R(r){var t=z(r);if(t>=32&&t<=246){return t-139}else if(t>=247&&t<=250){return(t-247)*256+z(r)+108}else if(t>=251&&t<=254){return-(t-251)*256-z(r)-108}else if(t==28){return B(r,2)}else if(t==29){return B(r,4)}return 0}function E(r){var t=g(r);if(t==30){j(r,1);while(r.cursor>4==15){break}}}else{R(r)}}function Q(r,t){d(r,0);while(r.cursor=28){E(r)}i=r.cursor;n=z(r);if(n==12){n=z(r)|256}if(n==t){return b(r,e,i-e)}}return b(r,0,0)}function K(r,t,e,i){var n=Q(r,t);for(var a=0;a>0:r}function J(r,t){return r[t]*256+r[t+1]}function H(r,t){var e=r[t]*256+r[t+1];return e&32768?(4294901760|e)>>0:e}function F(r,t){return(r[t]<<24)+(r[t+1]<<16)+(r[t+2]<<8)+r[t+3]}function m(r,t,e){var i=J(r,t+4);var n=t+12;for(var a=0;a=s&&t>1,v=J(e,i+8)>>1,u=J(e,i+10),h=J(e,i+12)>>1,l=i+14,c=l;if(t>65535){return 0}if(t>=J(e,c+h*2)){c+=h*2}c-=2;while(u){v>>=1;var p=J(e,c+v*2);if(t>p){c+=v*2}--u}c+=2;var g,y,d=c-l>>>1;y=J(e,i+14+o*2+2+2*d);if(t>1);var m=F(e,i+16+_*12);var k=F(e,i+16+_*12+4);if(tk){b=_+1}else{var I=F(e,i+16+_*12+8);if(n==12){return I+t-m}else{return I}}}return 0}return 0}function $(r,t,e,i,n,a){r.type=t;r.x=e;r.y=i;r.cx=n;r.cy=a}function nr(r,t){var e,i;if(t>=r.numGlyphs){return-1}if(r.indexToLocFormat>=2){return-1}if(r.indexToLocFormat==0){e=r.glyf+J(r.data,r.loca+t*2)*2;i=r.glyf+J(r.data,r.loca+t*2+2)*2}else{e=r.glyf+F(r.data,r.loca+t*4);i=r.glyf+F(r.data,r.loca+t*4+4)}return e==i?-1:e}function ar(r,t,e){if(r.cff.length){pr(r,t,e)}else{var i=nr(r,t);if(i<0){return 0}e.x0=H(r.data,i+2);e.y0=H(r.data,i+4);e.x1=H(r.data,i+6);e.y1=H(r.data,i+8)}return 1}function sr(r,t,e,i,n,a,s,f,o,v){if(i){if(e){$(r[t++],N,o+s>>1,v+f>>1,o,v)}$(r[t++],N,n,a,s,f)}else{if(e){$(r[t++],N,n,a,o,v)}else{$(r[t++],W,n,a,0,0)}}return t}function fr(r,t){var e=r.data,i=nr(r,t);if(i<0){return null}var n=[];var a=H(e,i);if(a>0){var s=0,f,o,v=0,u,h,l,c=0,p,g=0,y,d,x,b,w,_,m,k;var I=i+10;var G=J(e,i+10+a*2);var F=e.subarray(i+10+a*2+2+G);var C=0;h=1+J(e,I+a*2-2);u=h+2*a;n=Y(u);l=0;f=0;p=u-h;for(o=0;o>1;_=d+n[p+o+1].y>>1}else{w=n[p+o+1].x;_=n[p+o+1].y;++o}}else{w=y;_=d}$(n[T++],D,w,_,0,0);c=0;l=1+J(e,I+v*2);++v}else{if(!(s&1)){if(c){$(n[T++],N,x+y>>1,b+d>>1,x,b)}x=y;b=d;c=1}else{if(c){$(n[T++],N,y,d,x,b)}else{$(n[T++],W,y,d,0,0)}c=0}}}n.length=sr(n,T,c,g,w,_,m,k,x,b)}else if(a==-1){var L=1;var E=i+10;while(L){var s,A,j=[1,0,0,1,0,0];s=H(e,E);E+=2;A=H(e,E);E+=2;if(s&2){if(s&1){j[4]=H(e,E);E+=2;j[5]=H(e,E);E+=2}else{j[4]=z(e,E);E+=1;j[5]=z(e,E);E+=1}}if(s&1<<3){j[0]=j[3]=H(e,E)/16384;E+=2;j[1]=j[2]=0}else if(s&1<<6){j[0]=H(e,E)/16384;E+=2;j[1]=j[2]=0;j[3]=H(e,E)/16384;E+=2}else if(s&1<<7){j[0]=H(e,E)/16384;E+=2;j[1]=H(e,E)/16384;E+=2;j[2]=H(e,E)/16384;E+=2;j[3]=H(e,E)/16384;E+=2}var u=U(j[0]*j[0]+j[1]*j[1]);var h=U(j[2]*j[2]+j[3]*j[3]);var B=Z(r,A);if(B.length>0){for(var o=0,P=B.length;or.max_x||!r.started){r.max_x=t}if(e>r.max_y||!r.started){r.max_y=e}if(t=33900){i=32768}else if(e>=1240){i=1131}t+=i;if(t<0||t>=e){return x()}return G(r,t)}function ur(r,t){var e=r.fdselect;var i,n,a,s,f,o=-1,v;d(e,0);f=z(e);if(f==0){j(e,t);o=z(e)}else if(f==3){i=B(e,2);n=B(e,2);for(v=0;v=n&&t=s){break}q(e,0,l[o]);o++;if(o>=s){break}q(e,l[o],0);o++}break;case 6:if(s<1){return 0}for(;;){if(o>=s){break}q(e,l[o],0);o++;if(o>=s){break}q(e,0,l[o]);o++}break;case 31:if(s<4){return 0}for(;;){if(o+3>=s){break}V(e,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4;if(o+3>=s){break}V(e,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4}break;case 30:if(s<4){return 0}for(;;){if(o+3>=s){break}V(e,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4;if(o+3>=s){break}V(e,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4}break;case 8:if(s<6){return 0}for(;o+5=s){return 0}q(e,l[o],l[o+1]);break;case 25:if(s<8){return 0}for(;o+1=s){return 0}V(e,l[o],l[o+1],l[o+2],l[o+3],l[o+4],l[o+5]);break;case 26:case 27:if(s<4){return 0}y=0;if(s&1){y=l[o];o++}for(;o+3=10){return 0}c[a++]=g;g=vr(v==10?p:r.gsubrs,f);if(g.length==0){return 0}g.cursor=0;h=0;break;case 11:if(a<=0){return 0}g=c[--a];h=0;break;case 14:or(e);return 1;case 12:var d,x,b,w,_,m,k,I,F,C,S,M,T,L,E=z(g);switch(E){case 34:if(s<7){return 0}d=l[0];x=l[1];I=l[2];b=l[3];w=l[4];_=l[5];m=l[6];V(e,d,0,x,I,b,0);V(e,w,0,_,-I,m,0);break;case 35:if(s<13){return 0}d=l[0];k=l[1];x=l[2];I=l[3];b=l[4];F=l[5];w=l[6];C=l[7];_=l[8];S=l[9];m=l[10];M=l[11];V(e,d,k,x,I,b,F);V(e,w,C,_,S,m,M);break;case 36:if(s<9){return 0}d=l[0];k=l[1];x=l[2];I=l[3];b=l[4];w=l[5];_=l[6];S=l[7];m=l[8];V(e,d,k,x,I,b,0);V(e,w,0,_,S,m,-(k+I+S));break;case 37:if(s<11){return 0}d=l[0];k=l[1];x=l[2];I=l[3];b=l[4];F=l[5];w=l[6];C=l[7];_=l[8];S=l[9];m=M=l[10];T=d+x+b+w+_;L=k+I+F+C+S;if(A(T)>A(L)){M=-L}else{m=-T}V(e,d,k,x,I,b,F);V(e,w,C,_,S,m,M);break;default:return 0}break;default:if(v!=255&&v!=28&&(v<32||v>254)){return 0}if(v==255){y=(B(g,4)|0)/65536}else{j(g,-1);y=(R(g)<<16|0)>>16}if(s>=48){return 0}l[s++]=y;h=0;break}if(h){s=0}}return 0}function lr(){return{started:0,first_x:0,first_y:0,x:0,y:0,min_x:0,max_x:0,min_y:0,max_y:0,vertices:[]}}function cr(r,t){var e=lr();if(hr(r,t,e)){return e.vertices}return null}function pr(r,t,e){var i=lr();var n=hr(r,t,i);e.x0=n?i.min_x:0;e.y0=n?i.min_y:0;e.x1=n?i.max_x:0;e.y1=n?i.max_y:0;return n&&i.vertices?i.vertices.length:0}function Z(r,t){if(!r.cff.length){return fr(r,t)}else{return cr(r,t)}}function I(r,t){var e=J(r.data,r.hhea+34);if(te.ey){return}if(se.ey){a+=(a-i)*(e.ey-s)/(s-n);s=e.ey}if(i<=t&&a<=t){r[t]+=e.direction*(s-n)}else if(i>=t+1&&a>=t+1){}else{r[t]+=e.direction*(s-n)*(1-(i-t+(a-t))/2)}}function wr(r,t,e,i,n){var a=n+1;while(i){if(i.fdx==0){var s=i.fx;if(s=0){M(r,s,i,s,n,s,a);M(t,s+1,i,s,n,s,a)}else{M(t,0,i,s,n,s,a)}}}else{var s=i.fx,f=i.fdx,o=s+f,v,u,h,l,c=i.fdy;if(i.sy>n){v=s+f*(i.sy-n);h=i.sy}else{v=s;h=n}if(i.ey=0&&u>=0&&vu){h=a-(h-n);l=a-(l-n);y=h,h=l,l=y;y=u,u=v,v=y;f=-f;c=-c;y=s,s=o,o=y}d=v|0;x=u|0;b=(d+1-s)*c+n;_=i.direction;m=_*(b-h);r[d]+=m*(1-(v-d+(d+1-d))/2);w=_*c;for(g=d+1;gx){M(r,g,i,s,k,d,C);M(r,g,i,d,C,x,S);M(r,g,i,x,S,I,F)}else if(Ix){M(r,g,i,s,k,x,S);M(r,g,i,x,S,d,C);M(r,g,i,d,C,I,F)}else if(sd){M(r,g,i,s,k,d,C);M(r,g,i,d,C,I,F)}else if(Id){M(r,g,i,s,k,d,C);M(r,g,i,d,C,I,F)}else if(sx){M(r,g,i,s,k,x,S);M(r,g,i,x,S,I,F)}else if(Ix){M(r,g,i,s,k,x,S);M(r,g,i,x,S,I,F)}else{M(r,g,i,s,k,I,F)}}}}i=i.next}}function _r(r,t,e,i,n,a){i|=0,n|=0,a|=0;var s=null,f;var o=a,v=0,u;var h=new Float32Array(r.w*2+1);var l=h.subarray(r.w);var c=0;t[e].y0=a+r.h+1;while(v>>0;if(_>255){_=255}r.pixels[v*r.stride+u]=_}y=s;while(y){f=y;f.fx+=f.fdx;y=f.next}++o;++v}}function mr(r,t){for(var e=1;e0&&i.y012){var i,n,a,s,f,o=e>>1,v=r[t].y0=s){break}i=r[t+a];r[t+a]=r[t+s];r[t+s]=i;++a;--s}if(st[x+g].y:t[x+p].y16){return 1}if(h*h+l*l>f){c(r,t,e,(t+i)/2,(e+n)/2,v,u,f,o+1);c(r,v,u,(i+a)/2,(n+s)/2,a,s,f,o+1)}else{r.push({x:a,y:s})}return 1}function X(r,t,e,i,n,a,s,f,o,v,u){var h=i-t,l=n-e,c=a-i,p=s-n,g=f-a,y=o-s,d=f-t,x=o-e,b=U(h*h+l*l)+U(c*c+p*p)+U(g*g+y*y),w=U(d*d+x*x),_=b*b-w*w;if(u>16){return}if(_>v){var m=(t+i)/2,k=(e+n)/2,I=(i+a)/2,F=(n+s)/2,C=(a+f)/2,S=(s+o)/2,M=(m+I)/2,T=(k+F)/2,L=(I+C)/2,E=(F+S)/2,A=(M+L)/2,j=(T+E)/2;X(r,t,e,m,k,M,T,A,j,v,u+1);X(r,A,j,L,E,C,S,f,o,v,u+1)}else{r.push({x:f,y:o})}}function Fr(r,t,e){var i=[],n=t*t,a=-1,s=0,f=0,o=0;for(var v=0,u=r.length;v=0){e[a]=i.length-s}++a;s=i.length;f=r[v].x,o=r[v].y;i.push({x:f,y:o});break;case W:f=r[v].x,o=r[v].y;i.push({x:f,y:o});break;case N:c(i,f,o,r[v].cx,r[v].cy,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break;case y:X(i,f,o,r[v].cx,r[v].cy,r[v].cx1,r[v].cy1,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break}}e[a]=i.length-s;return i}function Cr(r,t,e,i,n,a,s,f,o,v){f|=0,o|=0;var u=i>n?n:i,h=[],l=Fr(e,t/u,h);if(l){Ir(r,l,h,i,n,a,s,f,o,v)}}function Sr(r,t,e,i,n,a,s,f,o,v){var u=Z(r,v);var h={};var l=p(r,v,a,s,f,o);h.pixels=t;h.w=e|0;h.h=i|0;h.stride=n|0;if(h.w&&h.h){Cr(h,.35,u,a,s,f,o,l.x0,l.y0,1)}}function Mr(r,t,e,i,n,a,s,f,o,v){Sr(r,t,e,i,n,a,s,f,o,k(r,v))}function Tr(r,t,e){return ir(r,t,e)}function Lr(r){var t={};if(!ir(t,r,0)){return null}var e=yr(t);t.ascent=e.ascent;t.descent=e.descent;t.linegap=e.linegap;return t}function Er(r,t,e,i){i=i||e;var n=e/r.ascent;var a=i/r.ascent;var s=k(r,t);if(!s&&t){return null}var f=Z(r,s);var o=p(r,s,n,a,0,0);var v=o.x1-o.x0;var u=o.y1-o.y0;var h=null;if(v&&u){var l={pixels:h=new Uint8Array(v*u),w:v,h:u,stride:v};Cr(l,.35,f,n,a,0,0,o.x0,o.y0,1)}var c=I(r,s);return{glyph:s,pixels:h,width:v,height:u,top:-o.y0,left:o.x0,advance:O(c.advanceWidth*n)}}function Ar(r,t,e,i){i=i||e;var n=e/r.ascent;var a=i/r.ascent;var s=k(r,t);if(!s&&t){return null}var f=Z(r,s);var o=I(r,s);var v=0;var u=0;var h=[];if(f){for(var l=0,c=f.length;lv)v=g.y;if(g.y | Array<{ pixs: number[]; pixx: number; pixy: number; height: number; width: number }>; - + export const BWIPP_VERSION: string; export const BWIPJS_VERSION: string; diff --git a/dist/bwip-js-node.js b/dist/bwip-js-node.js index 8ae52abe..c0861a34 100644 --- a/dist/bwip-js-node.js +++ b/dist/bwip-js-node.js @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -32,7 +32,7 @@ // exports.js -const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; +const BWIPJS_VERSION = '4.3.0 (2024-03-12)'; var url = require('url'); var PNG_ZLIB = require('zlib'); @@ -44,31 +44,31 @@ require('stream'); // fix for https://github.com/nodejs/node/issues/37021 // // This function is asynchronous. function Request(req, res, extra) { - var opts = url.parse(req.url, true).query; - - // Convert boolean empty parameters to true - for (var id in opts) { - if (opts[id] === '') { - opts[id] = true; - } - } - - // Add in server options/overrides - if (extra) { - for (var id in extra) { - opts[id] = extra[id]; - } - } - - ToBuffer(opts, function(err, png) { - if (err) { - res.writeHead(400, { 'Content-Type':'text/plain' }); - res.end('' + (err.stack || err), 'utf-8'); - } else { - res.writeHead(200, { 'Content-Type':'image/png' }); - res.end(png, 'binary'); - } - }); + var opts = url.parse(req.url, true).query; + + // Convert boolean empty parameters to true + for (var id in opts) { + if (opts[id] === '') { + opts[id] = true; + } + } + + // Add in server options/overrides + if (extra) { + for (var id in extra) { + opts[id] = extra[id]; + } + } + + ToBuffer(opts, function(err, png) { + if (err) { + res.writeHead(400, { 'Content-Type':'text/plain' }); + res.end('' + (err.stack || err), 'utf-8'); + } else { + res.writeHead(200, { 'Content-Type':'image/png' }); + res.end(png, 'binary'); + } + }); } // bwipjs.toBuffer(options[, callback]) @@ -79,10 +79,10 @@ function Request(req, res, extra) { // `options` are a bwip-js/BWIPP options object. // `callback` is an optional callback handler with prototype: // -// function callback(err, png) +// function callback(err, png) // -// `err` is an Error object or string. If `err` is set, `png` is null. -// `png` is a node Buffer containing the PNG image. +// `err` is an Error object or string. If `err` is set, `png` is null. +// `png` is a node Buffer containing the PNG image. // // If `callback` is not provided, a Promise is returned. function ToBuffer(opts, callback) { @@ -131,7 +131,7 @@ function _ToAny(encoder, opts, drawing) { // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -141,18 +141,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; - - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; + + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -180,34 +180,34 @@ function FixupOptions(opts) { } } - return opts; - - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + return opts; + + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -223,56 +223,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; - - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); - - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } - - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } - - // Scale the image - bw.scale(scaleX, scaleY); - - // Call into the BWIPP cross-compiled code and render the image. + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; + + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); + + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } + + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } + + // Scale the image + bw.scale(scaleX, scaleY); + + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -284,57 +284,57 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } // bwip-js // Barcode Writer in Pure JavaScript // https://github.com/metafloor/bwip-js // // This code was automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 +// Barcode Writer in Pure PostScript - Version 2024-01-03 // // Copyright (c) 2011-2024 Mark Warren -// Copyright (c) 2004-2023 Terry Burton +// Copyright (c) 2004-2024 Terry Burton // // Licensed MIT. See the LICENSE file in the bwip-js root directory. // bwip-js/barcode-hdr.js @@ -348,9 +348,9 @@ var $k = []; // operand stack var $_ = {}; // base of the dictionary stack // Array ctor -// $a() : Build a new array up to the Infinity-marker on the stack. -// $a(arr) : Convert native array to a "view" of the array. -// $a(len) : Create a new array of length `len` +// $a() : Build a new array up to the Infinity-marker on the stack. +// $a(arr) : Convert native array to a "view" of the array. +// $a(len) : Create a new array of length `len` function $a(a) { if (!arguments.length) { for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); @@ -371,7 +371,7 @@ function $a(a) { } // dict ctor -// $d() : look for the Infinity marker on the stack +// $d() : look for the Infinity marker on the stack function $d() { // Build the dictionary in the order the keys/values were pushed so enumeration // occurs in the correct sequence. @@ -402,9 +402,9 @@ function $d() { } // string ctor -// s(number) : create zero-filled string of number-length -// s(string) : make a copy of the string -// s(uint8[]) : make a copy of the string +// s(number) : create zero-filled string of number-length +// s(string) : make a copy of the string +// s(uint8[]) : make a copy of the string // // Returns a Uint8Array-string. function $s(v) { @@ -474,8 +474,8 @@ function $arrcpy(dst, src) { } // cvs operator - convert a value to its string representation -// s : string to store into -// v : any value +// s : string to store into +// v : any value function $cvs(s, v) { var t = typeof v; if (t == 'number' || t == 'boolean' || v === null) { @@ -499,9 +499,9 @@ function $cvi(s) { } // cvrs operator - convert a number to a radix string -// s : string to store into -// n : number -// r : radix +// s : string to store into +// n : number +// r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } @@ -527,8 +527,8 @@ function $cvx(s) { } // get operator -// s : source -// k : key +// s : source +// k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; @@ -546,9 +546,9 @@ function $get(s, k) { } // put operator -// d : dest -// k : key -// v : value +// d : dest +// k : key +// v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; @@ -566,9 +566,9 @@ function $put(d, k, v) { } // getinterval operator -// s : src -// o : offset -// l : length +// s : src +// o : offset +// l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); @@ -584,9 +584,9 @@ function $geti(s, o, l) { } // putinterval operator -// d : dst -// o : offset -// s : src +// d : dst +// o : offset +// s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { if (typeof s == 'string') { @@ -641,14 +641,14 @@ function $type(v) { // filetype // fonttype // gstatetype - // marktype (v === Infinity) + // marktype (v === Infinity) // nametype // savetype } // anchorsearch operator -// string seek anchorsearch suffix seek true %if-found -// string false %if-not-found +// string seek anchorsearch suffix seek true %if-found +// string false %if-not-found function $anchorsearch(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -679,8 +679,8 @@ function $anchorsearch(str, seek) { } // search operator -// string seek search suffix match prefix true %if-found -// string false %if-not-found +// string seek search suffix match prefix true %if-found +// string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -981,7 +981,7 @@ function bwipp_parseinput() { delete $_.fncvals[_E]; //#210 if (!bwipp_parseinput.__225__) { //#225 $_ = Object.create($_); //#225 - $k[$j++] = Infinity; //#223 + $k[$j++] = Infinity; //#214 var _I = $a(['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', "", "", 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US']); //#219 $k[$j++] = 0; //#223 for (var _J = 0, _K = _I.length; _J < _K; _J++) { //#223 @@ -1212,13 +1212,12 @@ function bwipp_parseinput() { } //#353 $_ = Object.getPrototypeOf($_); //#356 $_ = Object.getPrototypeOf($_); //#358 -} - +} //bwipp_parseinput function bwipp_gs1process() { $_ = Object.create($_); //#383 bwipp_loadctx(bwipp_gs1process) //#385 - if (!bwipp_gs1process.__2289__) { //#2289 - $_ = Object.create($_); //#2289 + if (!bwipp_gs1process.__2299__) { //#2299 + $_ = Object.create($_); //#2299 var _1 = new Map([ ["cset", 'N'], ["min", 18], @@ -1261,7544 +1260,7804 @@ function bwipp_gs1process() { var _F = $a([_E]); //#412 var _G = $a(["37"]); //#414 var _H = $a([_G]); //#414 - var _I = new Map([ + var _I = $a([_H]); //#414 + var _J = new Map([ ["parts", _F], - ["req", _H] + ["req", _I] ]); //#414 - var _K = new Map([ + var _K = $a([]); //#421 + var _L = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], - ["linters", $a([])] + ["linters", _K] ]); //#421 - var _O = new Map([ - ["parts", $a([_K])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _T = new Map([ + ["parts", $a([_L])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#423 - var _Q = new Map([ + var _V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#430 - var _U = new Map([ - ["parts", $a([_Q])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _d = new Map([ + ["parts", $a([_V])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#432 - var _W = new Map([ + var _f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#439 - var _a = new Map([ - ["parts", $a([_W])], - ["req", $a([$a(["8020"])])] + var _k = new Map([ + ["parts", $a([_f])], + ["req", $a([$a([$a(["8020"])])])] ]); //#441 - var _c = new Map([ + var _m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#448 - var _g = new Map([ - ["parts", $a([_c])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _u = new Map([ + ["parts", $a([_m])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#450 - var _i = new Map([ + var _w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#459 - var _m = new Map([ - ["parts", $a([_i])], - ["req", $a([$a(["01", "02", "255", "8006", "8026"])])] + var _15 = new Map([ + ["parts", $a([_w])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["255"]), $a(["8006"]), $a(["8026"])])])] ]); //#461 - var _o = new Map([ + var _17 = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] ]); //#468 - var _s = new Map([ - ["parts", $a([_o])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1F = new Map([ + ["parts", $a([_17])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#470 - var _u = new Map([ + var _1H = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#477 - var _z = new Map([ - ["parts", $a([_u])], + var _1O = new Map([ + ["parts", $a([_1H])], ["ex", $a(["235"])], - ["req", $a([$a(["01", "8006"])])] + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#480 - var _11 = new Map([ + var _1Q = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#487 - var _15 = new Map([ - ["parts", $a([_11])], - ["req", $a([$a(["01"])])] + var _1V = new Map([ + ["parts", $a([_1Q])], + ["req", $a([$a([$a(["01"])])])] ]); //#489 - var _17 = new Map([ + var _1X = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] ]); //#496 - var _1B = new Map([ - ["parts", $a([_17])], - ["req", $a([$a(["01"])])] + var _1c = new Map([ + ["parts", $a([_1X])], + ["req", $a([$a([$a(["01"])])])] ]); //#498 - var _1D = new Map([ + var _1e = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#505 - var _1H = new Map([ - ["parts", $a([_1D])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1m = new Map([ + ["parts", $a([_1e])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#507 - var _1J = new Map([ + var _1o = new Map([ ["cset", 'N'], ["min", 1], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#515 - var _1N = new Map([ - ["parts", $a([_1J])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1w = new Map([ + ["parts", $a([_1o])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#517 - var _1P = new Map([ + var _1y = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#524 - var _1T = new Map([ - ["parts", $a([_1P])], - ["req", $a([$a(["01"])])] + var _22 = $a([$a([$a(["01"])])]); //#526 + var _23 = new Map([ + ["parts", $a([_1y])], + ["req", _22] ]); //#526 - var _1V = new Map([ + var _25 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#533 - var _1a = new Map([ - ["parts", $a([_1V])], - ["req", $a([$a(["01", "8006"]), $a(["21"])])] + var _2D = new Map([ + ["parts", $a([_25])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["21"])])])] ]); //#535 - var _1c = new Map([ + var _2F = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#542 - var _1g = new Map([ - ["parts", $a([_1c])], - ["req", $a([$a(["01", "8006"])])] + var _2L = new Map([ + ["parts", $a([_2F])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#544 - var _1i = new Map([ + var _2N = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#551 - var _1k = new Map([ + var _2P = new Map([ ["cset", 'X'], ["min", 1], ["max", 17], ["opt", true], ["linters", $a([])] ]); //#552 - var _1n = new Map([ - ["parts", $a([_1i, _1k])], + var _2S = new Map([ + ["parts", $a([_2N, _2P])], ["dlpkey", $a([])] ]); //#554 - var _1p = new Map([ + var _2U = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#561 - var _1t = new Map([ - ["parts", $a([_1p])], - ["req", $a([$a(["414"])])] + var _2Z = new Map([ + ["parts", $a([_2U])], + ["req", $a([$a([$a(["414"])])])] ]); //#563 - var _1v = new Map([ + var _2b = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#570 - var _1x = new Map([ + var _2d = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", true], ["linters", $a([])] ]); //#571 - var _21 = new Map([ - ["parts", $a([_1v, _1x])], + var _2h = new Map([ + ["parts", $a([_2b, _2d])], ["ex", $a(["01", "02", "415", "8006", "8020", "8026"])], ["dlpkey", $a([])] ]); //#574 - var _22 = $a([]); //#581 - var _23 = new Map([ + var _2j = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], - ["linters", _22] + ["linters", $a([])] ]); //#581 - var _27 = new Map([ - ["parts", $a([_23])], - ["req", $a([$a(["01", "02"])])] + var _2p = new Map([ + ["parts", $a([_2j])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#583 - var _29 = new Map([ + var _2r = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#590 - var _2E = new Map([ - ["parts", $a([_29])], + var _2y = new Map([ + ["parts", $a([_2r])], ["ex", $a(["310n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#593 - var _2G = new Map([ + var _30 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#605 - var _2L = new Map([ - ["parts", $a([_2G])], + var _37 = new Map([ + ["parts", $a([_30])], ["ex", $a(["311n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#608 - var _2N = new Map([ + var _39 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#620 - var _2S = new Map([ - ["parts", $a([_2N])], + var _3G = new Map([ + ["parts", $a([_39])], ["ex", $a(["312n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#623 - var _2U = new Map([ + var _3I = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#635 - var _2Z = new Map([ - ["parts", $a([_2U])], + var _3P = new Map([ + ["parts", $a([_3I])], ["ex", $a(["313n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#638 - var _2b = new Map([ + var _3R = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#650 - var _2g = new Map([ - ["parts", $a([_2b])], + var _3Y = new Map([ + ["parts", $a([_3R])], ["ex", $a(["314n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#653 - var _2i = new Map([ + var _3a = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#665 - var _2n = new Map([ - ["parts", $a([_2i])], + var _3h = new Map([ + ["parts", $a([_3a])], ["ex", $a(["315n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#668 - var _2p = new Map([ + var _3j = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#680 - var _2u = new Map([ - ["parts", $a([_2p])], + var _3q = new Map([ + ["parts", $a([_3j])], ["ex", $a(["316n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#683 - var _2w = new Map([ + var _3s = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#695 - var _31 = new Map([ - ["parts", $a([_2w])], + var _3z = new Map([ + ["parts", $a([_3s])], ["ex", $a(["320n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#698 - var _33 = new Map([ + var _41 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#710 - var _38 = new Map([ - ["parts", $a([_33])], + var _48 = new Map([ + ["parts", $a([_41])], ["ex", $a(["321n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#713 - var _3A = new Map([ + var _4A = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#725 - var _3F = new Map([ - ["parts", $a([_3A])], + var _4H = new Map([ + ["parts", $a([_4A])], ["ex", $a(["322n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#728 - var _3H = new Map([ + var _4J = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#740 - var _3M = new Map([ - ["parts", $a([_3H])], + var _4Q = new Map([ + ["parts", $a([_4J])], ["ex", $a(["323n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#743 - var _3O = new Map([ + var _4S = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#755 - var _3T = new Map([ - ["parts", $a([_3O])], + var _4Z = new Map([ + ["parts", $a([_4S])], ["ex", $a(["324n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#758 - var _3V = new Map([ + var _4b = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#770 - var _3a = new Map([ - ["parts", $a([_3V])], + var _4i = new Map([ + ["parts", $a([_4b])], ["ex", $a(["325n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#773 - var _3c = new Map([ + var _4k = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#785 - var _3h = new Map([ - ["parts", $a([_3c])], + var _4r = new Map([ + ["parts", $a([_4k])], ["ex", $a(["326n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#788 - var _3j = new Map([ + var _4t = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#800 - var _3o = new Map([ - ["parts", $a([_3j])], + var _50 = new Map([ + ["parts", $a([_4t])], ["ex", $a(["327n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#803 - var _3q = new Map([ + var _52 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#815 - var _3v = new Map([ - ["parts", $a([_3q])], + var _59 = new Map([ + ["parts", $a([_52])], ["ex", $a(["328n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#818 - var _3x = new Map([ + var _5B = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#830 - var _42 = new Map([ - ["parts", $a([_3x])], + var _5I = new Map([ + ["parts", $a([_5B])], ["ex", $a(["329n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#833 - var _44 = new Map([ + var _5K = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#845 - var _49 = new Map([ - ["parts", $a([_44])], + var _5R = new Map([ + ["parts", $a([_5K])], ["ex", $a(["330n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#848 - var _4B = new Map([ + var _5T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#860 - var _4G = new Map([ - ["parts", $a([_4B])], + var _5a = new Map([ + ["parts", $a([_5T])], ["ex", $a(["331n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#863 - var _4I = new Map([ + var _5c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#875 - var _4N = new Map([ - ["parts", $a([_4I])], + var _5j = new Map([ + ["parts", $a([_5c])], ["ex", $a(["332n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#878 - var _4P = new Map([ + var _5l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#890 - var _4U = new Map([ - ["parts", $a([_4P])], + var _5s = new Map([ + ["parts", $a([_5l])], ["ex", $a(["333n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#893 - var _4W = new Map([ + var _5u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#905 - var _4b = new Map([ - ["parts", $a([_4W])], + var _61 = new Map([ + ["parts", $a([_5u])], ["ex", $a(["334n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#908 - var _4d = new Map([ + var _63 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#920 - var _4i = new Map([ - ["parts", $a([_4d])], + var _6A = new Map([ + ["parts", $a([_63])], ["ex", $a(["335n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#923 - var _4k = new Map([ + var _6C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#935 - var _4p = new Map([ - ["parts", $a([_4k])], + var _6J = new Map([ + ["parts", $a([_6C])], ["ex", $a(["336n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#938 - var _4r = new Map([ + var _6L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#950 - var _4w = new Map([ - ["parts", $a([_4r])], + var _6R = new Map([ + ["parts", $a([_6L])], ["ex", $a(["337n"])], - ["req", $a([$a(["01"])])] + ["req", $a([$a([$a(["01"])])])] ]); //#953 - var _4y = new Map([ + var _6T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#965 - var _53 = new Map([ - ["parts", $a([_4y])], + var _6a = new Map([ + ["parts", $a([_6T])], ["ex", $a(["340n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#968 - var _55 = new Map([ + var _6c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#980 - var _5A = new Map([ - ["parts", $a([_55])], + var _6j = new Map([ + ["parts", $a([_6c])], ["ex", $a(["341n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#983 - var _5C = new Map([ + var _6l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#995 - var _5H = new Map([ - ["parts", $a([_5C])], + var _6s = new Map([ + ["parts", $a([_6l])], ["ex", $a(["342n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#998 - var _5J = new Map([ + var _6u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1010 - var _5O = new Map([ - ["parts", $a([_5J])], + var _71 = new Map([ + ["parts", $a([_6u])], ["ex", $a(["343n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1013 - var _5Q = new Map([ + var _73 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1025 - var _5V = new Map([ - ["parts", $a([_5Q])], + var _7A = new Map([ + ["parts", $a([_73])], ["ex", $a(["344n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1028 - var _5X = new Map([ + var _7C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1040 - var _5c = new Map([ - ["parts", $a([_5X])], + var _7J = new Map([ + ["parts", $a([_7C])], ["ex", $a(["345n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1043 - var _5e = new Map([ + var _7L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1055 - var _5j = new Map([ - ["parts", $a([_5e])], + var _7S = new Map([ + ["parts", $a([_7L])], ["ex", $a(["346n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1058 - var _5l = new Map([ + var _7U = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1070 - var _5q = new Map([ - ["parts", $a([_5l])], + var _7b = new Map([ + ["parts", $a([_7U])], ["ex", $a(["347n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1073 - var _5s = new Map([ + var _7d = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1085 - var _5x = new Map([ - ["parts", $a([_5s])], + var _7k = new Map([ + ["parts", $a([_7d])], ["ex", $a(["348n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1088 - var _5z = new Map([ + var _7m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1100 - var _64 = new Map([ - ["parts", $a([_5z])], + var _7t = new Map([ + ["parts", $a([_7m])], ["ex", $a(["349n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1103 - var _66 = new Map([ + var _7v = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1115 - var _6B = new Map([ - ["parts", $a([_66])], + var _82 = new Map([ + ["parts", $a([_7v])], ["ex", $a(["350n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1118 - var _6D = new Map([ + var _84 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1130 - var _6I = new Map([ - ["parts", $a([_6D])], + var _8B = new Map([ + ["parts", $a([_84])], ["ex", $a(["351n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1133 - var _6K = new Map([ + var _8D = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1145 - var _6P = new Map([ - ["parts", $a([_6K])], + var _8K = new Map([ + ["parts", $a([_8D])], ["ex", $a(["352n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1148 - var _6R = new Map([ + var _8M = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1160 - var _6W = new Map([ - ["parts", $a([_6R])], + var _8T = new Map([ + ["parts", $a([_8M])], ["ex", $a(["353n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1163 - var _6Y = new Map([ + var _8V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1175 - var _6d = new Map([ - ["parts", $a([_6Y])], + var _8c = new Map([ + ["parts", $a([_8V])], ["ex", $a(["354n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1178 - var _6f = new Map([ + var _8e = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1190 - var _6k = new Map([ - ["parts", $a([_6f])], + var _8l = new Map([ + ["parts", $a([_8e])], ["ex", $a(["355n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1193 - var _6m = new Map([ + var _8n = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1205 - var _6r = new Map([ - ["parts", $a([_6m])], + var _8u = new Map([ + ["parts", $a([_8n])], ["ex", $a(["356n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1208 - var _6t = new Map([ + var _8w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1220 - var _6y = new Map([ - ["parts", $a([_6t])], + var _93 = new Map([ + ["parts", $a([_8w])], ["ex", $a(["357n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1223 - var _70 = new Map([ + var _95 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1235 - var _75 = new Map([ - ["parts", $a([_70])], + var _9C = new Map([ + ["parts", $a([_95])], ["ex", $a(["360n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1238 - var _77 = new Map([ + var _9E = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1250 - var _7C = new Map([ - ["parts", $a([_77])], + var _9L = new Map([ + ["parts", $a([_9E])], ["ex", $a(["361n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1253 - var _7E = new Map([ + var _9N = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1265 - var _7J = new Map([ - ["parts", $a([_7E])], + var _9U = new Map([ + ["parts", $a([_9N])], ["ex", $a(["362n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1268 - var _7L = new Map([ + var _9W = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1280 - var _7Q = new Map([ - ["parts", $a([_7L])], + var _9d = new Map([ + ["parts", $a([_9W])], ["ex", $a(["363n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1283 - var _7S = new Map([ + var _9f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1295 - var _7X = new Map([ - ["parts", $a([_7S])], + var _9m = new Map([ + ["parts", $a([_9f])], ["ex", $a(["364n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1298 - var _7Z = new Map([ + var _9o = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1310 - var _7e = new Map([ - ["parts", $a([_7Z])], + var _9v = new Map([ + ["parts", $a([_9o])], ["ex", $a(["365n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1313 - var _7g = new Map([ + var _9x = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1325 - var _7l = new Map([ - ["parts", $a([_7g])], + var _A4 = new Map([ + ["parts", $a([_9x])], ["ex", $a(["366n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1328 - var _7n = new Map([ + var _A6 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1340 - var _7s = new Map([ - ["parts", $a([_7n])], + var _AD = new Map([ + ["parts", $a([_A6])], ["ex", $a(["367n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1343 - var _7u = new Map([ + var _AF = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1355 - var _7z = new Map([ - ["parts", $a([_7u])], + var _AM = new Map([ + ["parts", $a([_AF])], ["ex", $a(["368n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1358 - var _81 = new Map([ + var _AO = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1370 - var _86 = new Map([ - ["parts", $a([_81])], + var _AV = new Map([ + ["parts", $a([_AO])], ["ex", $a(["369n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1373 - var _88 = new Map([ + var _AX = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], ["linters", $a([])] ]); //#1385 - var _8D = new Map([ - ["parts", $a([_88])], - ["req", $a([$a(["00"]), $a(["02", "8026"])])] + var _Af = new Map([ + ["parts", $a([_AX])], + ["req", $a([$a([$a(["00"])]), $a([$a(["02"]), $a(["8026"])])])] ]); //#1387 - var _8F = new Map([ + var _Ah = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1394 - var _8K = new Map([ - ["parts", $a([_8F])], + var _Ao = new Map([ + ["parts", $a([_Ah])], ["ex", $a(["390n", "391n", "394n", "8111"])], - ["req", $a([$a(["255", "8020"])])] + ["req", $a([$a([$a(["255"]), $a(["8020"])])])] ]); //#1397 - var _8M = new Map([ + var _Aq = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1413 - var _8O = new Map([ + var _As = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1414 - var _8T = new Map([ - ["parts", $a([_8M, _8O])], + var _Ay = new Map([ + ["parts", $a([_Aq, _As])], ["ex", $a(["391n"])], - ["req", $a([$a(["8020"])])] + ["req", $a([$a([$a(["8020"])])])] ]); //#1417 - var _8V = new Map([ + var _B0 = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1433 - var _8b = new Map([ - ["parts", $a([_8V])], + var _BC = new Map([ + ["parts", $a([_B0])], ["ex", $a(["392n", "393n"])], - ["req", $a([$a(["01"]), $a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["01"])]), $a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1436 - var _8d = new Map([ + var _BE = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1452 - var _8f = new Map([ + var _BG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1453 - var _8k = new Map([ - ["parts", $a([_8d, _8f])], + var _BQ = new Map([ + ["parts", $a([_BE, _BG])], ["ex", $a(["393n"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1456 - var _8m = new Map([ + var _BS = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] ]); //#1472 - var _8r = new Map([ - ["parts", $a([_8m])], + var _BY = new Map([ + ["parts", $a([_BS])], ["ex", $a(["394n", "8111"])], - ["req", $a([$a(["255"])])] + ["req", $a([$a([$a(["255"])])])] ]); //#1475 - var _8t = new Map([ + var _Ba = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1485 - var _8y = new Map([ - ["parts", $a([_8t])], + var _Bk = new Map([ + ["parts", $a([_Ba])], ["ex", $a(["392n", "393n", "395n", "8005"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1488 - var _90 = new Map([ + var _Bm = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1500 - var _92 = new Map([ - ["parts", $a([_90])] + var _Bo = new Map([ + ["parts", $a([_Bm])] ]); //#1500 - var _94 = new Map([ + var _Bq = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] ]); //#1508 - var _97 = new Map([ - ["parts", $a([_94])], + var _Bt = new Map([ + ["parts", $a([_Bq])], ["dlpkey", $a([])] ]); //#1510 - var _99 = new Map([ + var _Bv = new Map([ ["cset", 'N'], ["min", 17], ["max", 17], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1517 - var _9C = new Map([ - ["parts", $a([_99])], + var _By = new Map([ + ["parts", $a([_Bv])], ["dlpkey", $a([])] ]); //#1519 - var _9E = new Map([ + var _C0 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1526 - var _9I = new Map([ - ["parts", $a([_9E])], - ["req", $a([$a(["00"])])] + var _C5 = new Map([ + ["parts", $a([_C0])], + ["req", $a([$a([$a(["00"])])])] ]); //#1528 - var _9K = new Map([ + var _C7 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1535 - var _9M = new Map([ - ["parts", $a([_9K])] + var _C9 = new Map([ + ["parts", $a([_C7])] ]); //#1535 - var _9O = new Map([ + var _CB = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1546 - var _9T = new Map([ - ["parts", $a([_9O])], + var _CG = new Map([ + ["parts", $a([_CB])], ["dlpkey", $a([$a(["254"]), $a(["7040"])])] ]); //#1548 - var _9V = new Map([ + var _CI = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1555 - var _9b = new Map([ - ["parts", $a([_9V])], - ["req", $a([$a(["8020"])])], + var _CP = new Map([ + ["parts", $a([_CI])], + ["req", $a([$a([$a(["8020"])])])], ["dlpkey", $a([$a(["8020"])])] ]); //#1558 - var _9d = new Map([ + var _CR = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1565 - var _9f = new Map([ - ["parts", $a([_9d])] + var _CT = new Map([ + ["parts", $a([_CR])] ]); //#1565 - var _9h = new Map([ + var _CV = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1573 - var _9l = new Map([ - ["parts", $a([_9h])], + var _CZ = new Map([ + ["parts", $a([_CV])], ["dlpkey", $a([$a(["7040"])])] ]); //#1575 - var _9n = new Map([ + var _Cb = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#1582 - var _9q = new Map([ - ["parts", $a([_9n])], + var _Ce = new Map([ + ["parts", $a([_Cb])], ["ex", $a(["421"])] ]); //#1584 - var _9s = new Map([ + var _Cg = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1591 - var _9u = new Map([ + var _Ci = new Map([ ["cset", 'X'], ["min", 1], ["max", 9], ["opt", false], ["linters", $a([])] ]); //#1592 - var _9x = new Map([ - ["parts", $a([_9s, _9u])], + var _Cl = new Map([ + ["parts", $a([_Cg, _Ci])], ["ex", $a(["4307"])] ]); //#1594 - var _9z = new Map([ + var _Cn = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1601 - var _A4 = new Map([ - ["parts", $a([_9z])], + var _Cw = new Map([ + ["parts", $a([_Cn])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#1604 - var _A6 = new Map([ + var _Cy = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1611 - var _AB = new Map([ - ["parts", $a([_A6])], + var _D5 = new Map([ + ["parts", $a([_Cy])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1614 - var _AD = new Map([ + var _D7 = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1621 - var _AI = new Map([ - ["parts", $a([_AD])], + var _DE = new Map([ + ["parts", $a([_D7])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1624 - var _AK = new Map([ + var _DG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1631 - var _AP = new Map([ - ["parts", $a([_AK])], + var _DN = new Map([ + ["parts", $a([_DG])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1634 - var _AR = new Map([ + var _DP = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1641 - var _AV = new Map([ - ["parts", $a([_AR])], - ["req", $a([$a(["01", "02"])])] + var _DV = new Map([ + ["parts", $a([_DP])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1643 - var _AX = new Map([ + var _DX = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] ]); //#1650 - var _Ac = new Map([ - ["parts", $a([_AX])], - ["req", $a([$a(["01", "02"]), $a(["422"])])] + var _Df = new Map([ + ["parts", $a([_DX])], + ["req", $a([$a([$a(["01"]), $a(["02"])]), $a([$a(["422"])])])] ]); //#1652 - var _Ae = new Map([ + var _Dh = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1659 - var _Ai = new Map([ - ["parts", $a([_Ae])], - ["req", $a([$a(["00"])])] + var _Dm = new Map([ + ["parts", $a([_Dh])], + ["req", $a([$a([$a(["00"])])])] ]); //#1661 - var _Ak = new Map([ + var _Do = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1669 - var _Ao = new Map([ - ["parts", $a([_Ak])], - ["req", $a([$a(["00"])])] + var _Dt = new Map([ + ["parts", $a([_Do])], + ["req", $a([$a([$a(["00"])])])] ]); //#1671 - var _Aq = new Map([ + var _Dv = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1678 - var _Au = new Map([ - ["parts", $a([_Aq])], - ["req", $a([$a(["4302"])])] + var _E0 = new Map([ + ["parts", $a([_Dv])], + ["req", $a([$a([$a(["4302"])])])] ]); //#1680 - var _Aw = new Map([ + var _E2 = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1687 - var _B0 = new Map([ - ["parts", $a([_Aw])], - ["req", $a([$a(["00"])])] + var _E7 = new Map([ + ["parts", $a([_E2])], + ["req", $a([$a([$a(["00"])])])] ]); //#1689 - var _B2 = new Map([ + var _E9 = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] ]); //#1698 - var _B6 = new Map([ - ["parts", $a([_B2])], - ["req", $a([$a(["00"])])] + var _EE = new Map([ + ["parts", $a([_E9])], + ["req", $a([$a([$a(["00"])])])] ]); //#1700 - var _B8 = new Map([ + var _EG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1707 - var _BC = new Map([ - ["parts", $a([_B8])], - ["req", $a([$a(["00"])])] + var _EL = new Map([ + ["parts", $a([_EG])], + ["req", $a([$a([$a(["00"])])])] ]); //#1709 - var _BE = new Map([ + var _EN = new Map([ ["cset", 'N'], - ["min", 20], - ["max", 20], + ["min", 10], + ["max", 10], ["opt", false], - ["linters", $a(['lintlatlong'])] + ["linters", $a(['lintlatitude'])] ]); //#1716 - var _BI = new Map([ - ["parts", $a([_BE])], - ["req", $a([$a(["00"])])] - ]); //#1718 - var _BK = new Map([ + var _EP = new Map([ + ["cset", 'N'], + ["min", 10], + ["max", 10], + ["opt", false], + ["linters", $a(['lintlongitude'])] + ]); //#1717 + var _EU = new Map([ + ["parts", $a([_EN, _EP])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1719 + var _EW = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1725 - var _BO = new Map([ - ["parts", $a([_BK])], - ["req", $a([$a(["00"])])] - ]); //#1727 - var _BQ = new Map([ + ]); //#1726 + var _Eb = new Map([ + ["parts", $a([_EW])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1728 + var _Ed = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1735 - var _BU = new Map([ - ["parts", $a([_BQ])], - ["req", $a([$a(["00"])])] - ]); //#1737 - var _BW = new Map([ + ]); //#1736 + var _Ei = new Map([ + ["parts", $a([_Ed])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1738 + var _Ek = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1744 - var _Ba = new Map([ - ["parts", $a([_BW])], - ["req", $a([$a(["4312"])])] - ]); //#1746 - var _Bc = new Map([ + ]); //#1745 + var _Ep = new Map([ + ["parts", $a([_Ek])], + ["req", $a([$a([$a(["4312"])])])] + ]); //#1747 + var _Er = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1753 - var _Bg = new Map([ - ["parts", $a([_Bc])], - ["req", $a([$a(["00"])])] - ]); //#1755 - var _Bi = new Map([ + ]); //#1754 + var _Ew = new Map([ + ["parts", $a([_Er])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1756 + var _Ey = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] - ]); //#1764 - var _Bm = new Map([ - ["parts", $a([_Bi])], - ["req", $a([$a(["00"])])] - ]); //#1766 - var _Bo = new Map([ + ]); //#1765 + var _F3 = new Map([ + ["parts", $a([_Ey])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1767 + var _F5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1773 - var _Bs = new Map([ - ["parts", $a([_Bo])], - ["req", $a([$a(["00"])])] - ]); //#1775 - var _Bu = new Map([ + ]); //#1774 + var _FA = new Map([ + ["parts", $a([_F5])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1776 + var _FC = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1782 - var _By = new Map([ - ["parts", $a([_Bu])], - ["req", $a([$a(["00"])])] - ]); //#1784 - var _C0 = new Map([ + ]); //#1783 + var _FH = new Map([ + ["parts", $a([_FC])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1785 + var _FJ = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1791 - var _C4 = new Map([ - ["parts", $a([_C0])], - ["req", $a([$a(["00"])])] - ]); //#1793 - var _C6 = new Map([ + ]); //#1792 + var _FO = new Map([ + ["parts", $a([_FJ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1794 + var _FQ = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintyesno'])] - ]); //#1800 - var _CA = new Map([ - ["parts", $a([_C6])], - ["req", $a([$a(["00"])])] - ]); //#1802 - var _CC = new Map([ + ]); //#1801 + var _FV = new Map([ + ["parts", $a([_FQ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1803 + var _FX = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] - ]); //#1811 - var _CE = new Map([ + ]); //#1812 + var _FZ = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1812 - var _CI = new Map([ - ["parts", $a([_CC, _CE])], - ["req", $a([$a(["00"])])] - ]); //#1814 - var _CK = new Map([ + ]); //#1813 + var _Fe = new Map([ + ["parts", $a([_FX, _FZ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1815 + var _Fg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1822 - var _CO = new Map([ - ["parts", $a([_CK])], - ["req", $a([$a(["00"])])] - ]); //#1824 - var _CQ = new Map([ + ]); //#1823 + var _Fl = new Map([ + ["parts", $a([_Fg])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1825 + var _Fn = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a([])] - ]); //#1831 - var _CU = new Map([ - ["parts", $a([_CQ])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] - ]); //#1833 - var _CW = new Map([ + ]); //#1832 + var _Fv = new Map([ + ["parts", $a([_Fn])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] + ]); //#1834 + var _Fx = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1840 - var _Ca = new Map([ - ["parts", $a([_CW])], - ["req", $a([$a(["01", "02"])])] - ]); //#1842 - var _Cc = new Map([ + ]); //#1841 + var _G3 = new Map([ + ["parts", $a([_Fx])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1843 + var _G5 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1849 - var _Ce = new Map([ + ]); //#1850 + var _G7 = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1850 - var _Ci = new Map([ - ["parts", $a([_Cc, _Ce])], - ["req", $a([$a(["01", "02"])])] - ]); //#1852 - var _Ck = new Map([ + ]); //#1851 + var _GD = new Map([ + ["parts", $a([_G5, _G7])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1853 + var _GF = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#1859 - var _Cp = new Map([ - ["parts", $a([_Ck])], - ["req", $a([$a(["01"]), $a(["10"])])] - ]); //#1861 - var _Cr = new Map([ + ]); //#1860 + var _GM = new Map([ + ["parts", $a([_GF])], + ["req", $a([$a([$a(["01"])]), $a([$a(["10"])])])] + ]); //#1862 + var _GO = new Map([ ["cset", 'X'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a([])] - ]); //#1868 - var _Cv = new Map([ - ["parts", $a([_Cr])], - ["req", $a([$a(["01", "02"])])] - ]); //#1870 - var _Cx = new Map([ + ]); //#1869 + var _GU = new Map([ + ["parts", $a([_GO])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1871 + var _GW = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1877 - var _D1 = new Map([ - ["parts", $a([_Cx])], - ["req", $a([$a(["01", "02"])])] - ]); //#1879 - var _D3 = new Map([ + ]); //#1878 + var _Gc = new Map([ + ["parts", $a([_GW])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1880 + var _Ge = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1886 - var _D5 = new Map([ + ]); //#1887 + var _Gg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", true], ["linters", $a(['lintyymmdd'])] - ]); //#1887 - var _D9 = new Map([ - ["parts", $a([_D3, _D5])], - ["req", $a([$a(["01", "02"])])] - ]); //#1889 - var _DB = new Map([ + ]); //#1888 + var _Gm = new Map([ + ["parts", $a([_Ge, _Gg])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1890 + var _Go = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] - ]); //#1896 - var _DF = new Map([ - ["parts", $a([_DB])], - ["req", $a([$a(["01", "02"])])] - ]); //#1898 - var _DH = new Map([ + ]); //#1897 + var _Gu = new Map([ + ["parts", $a([_Go])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1899 + var _Gw = new Map([ ["cset", 'X'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#1905 - var _DL = new Map([ - ["parts", $a([_DH])], - ["req", $a([$a(["01", "02"])])] - ]); //#1907 - var _DN = new Map([ + ]); //#1906 + var _H2 = new Map([ + ["parts", $a([_Gw])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1908 + var _H4 = new Map([ ["cset", 'X'], ["min", 1], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#1914 - var _DR = new Map([ - ["parts", $a([_DN])], - ["req", $a([$a(["01", "02"])])] - ]); //#1916 - var _DT = new Map([ + ]); //#1915 + var _HA = new Map([ + ["parts", $a([_H4])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1917 + var _HC = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1923 - var _DV = new Map([ + ]); //#1924 + var _HE = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", true], ["linters", $a(['linthhmm'])] - ]); //#1924 - var _DZ = new Map([ - ["parts", $a([_DT, _DV])], - ["req", $a([$a(["01", "02"])])] - ]); //#1926 - var _Db = new Map([ + ]); //#1925 + var _HK = new Map([ + ["parts", $a([_HC, _HE])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1927 + var _HM = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1933 - var _Dg = new Map([ - ["parts", $a([_Db])], - ["req", $a([$a(["01", "8006"]), $a(["416"])])] - ]); //#1935 - var _Di = new Map([ + ]); //#1934 + var _HU = new Map([ + ["parts", $a([_HM])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["416"])])])] + ]); //#1936 + var _HW = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1942 - var _Dm = new Map([ - ["parts", $a([_Di])], - ["req", $a([$a(["01", "8006"])])] - ]); //#1944 - var _Do = new Map([ + ]); //#1943 + var _Hc = new Map([ + ["parts", $a([_HW])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#1945 + var _He = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1951 - var _Ds = new Map([ - ["parts", $a([_Do])], - ["req", $a([$a(["7021"])])] - ]); //#1953 - var _Du = new Map([ + ]); //#1952 + var _Hj = new Map([ + ["parts", $a([_He])], + ["req", $a([$a([$a(["7021"])])])] + ]); //#1954 + var _Hl = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#1960 - var _Dw = new Map([ - ["parts", $a([_Du])] - ]); //#1960 - var _Dy = new Map([ + ]); //#1961 + var _Hn = new Map([ + ["parts", $a([_Hl])] + ]); //#1961 + var _Hp = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166999'])] - ]); //#1968 - var _E0 = new Map([ + ]); //#1969 + var _Hr = new Map([ ["cset", 'X'], ["min", 1], ["max", 27], ["opt", false], ["linters", $a([])] - ]); //#1969 - var _E4 = new Map([ - ["parts", $a([_Dy, _E0])], - ["req", $a([$a(["01", "02"])])] - ]); //#1971 - var _E6 = new Map([ + ]); //#1970 + var _Hx = new Map([ + ["parts", $a([_Hp, _Hr])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1972 + var _Hz = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1987 - var _E8 = new Map([ + ]); //#1988 + var _I1 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1988 - var _EA = new Map([ + ]); //#1989 + var _I3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1989 - var _EC = new Map([ + ]); //#1990 + var _I5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintimporteridx'])] - ]); //#1990 - var _EE = new Map([ - ["parts", $a([_E6, _E8, _EA, _EC])] - ]); //#1990 - var _EG = new Map([ + ]); //#1991 + var _I7 = new Map([ + ["parts", $a([_Hz, _I1, _I3, _I5])] + ]); //#1991 + var _I9 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1998 - var _EK = new Map([ - ["parts", $a([_EG])], - ["req", $a([$a(["01"])])] - ]); //#2000 - var _EM = new Map([ + ]); //#1999 + var _IE = new Map([ + ["parts", $a([_I9])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2001 + var _IG = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#2012 - var _EO = new Map([ + ]); //#2013 + var _II = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] - ]); //#2013 - var _ES = new Map([ - ["parts", $a([_EM, _EO])], - ["req", $a([$a(["01", "8004"])])] - ]); //#2015 - var _EU = new Map([ + ]); //#2014 + var _IO = new Map([ + ["parts", $a([_IG, _II])], + ["req", $a([$a([$a(["01"]), $a(["8004"])])])] + ]); //#2016 + var _IQ = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2031 - var _EY = new Map([ - ["parts", $a([_EU])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2033 - var _Ea = new Map([ + ]); //#2032 + var _IW = new Map([ + ["parts", $a([_IQ])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2034 + var _IY = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintmediatype'])] - ]); //#2040 - var _Ee = new Map([ - ["parts", $a([_Ea])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2042 - var _Eg = new Map([ + ]); //#2041 + var _Ie = new Map([ + ["parts", $a([_IY])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2043 + var _Ig = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2049 - var _Ek = new Map([ - ["parts", $a([_Eg])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2051 - var _Em = new Map([ + ]); //#2050 + var _Im = new Map([ + ["parts", $a([_Ig])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2052 + var _Io = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2058 - var _Eo = new Map([ + ]); //#2059 + var _Iq = new Map([ ["cset", 'N'], ["min", 5], ["max", 5], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2059 - var _Eq = new Map([ + ]); //#2060 + var _Is = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2060 - var _Es = new Map([ + ]); //#2061 + var _Iu = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintwinding'])] - ]); //#2061 - var _Eu = new Map([ + ]); //#2062 + var _Iw = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#2062 - var _Ey = new Map([ - ["parts", $a([_Em, _Eo, _Eq, _Es, _Eu])], - ["req", $a([$a(["01"])])] - ]); //#2064 - var _F0 = new Map([ + ]); //#2063 + var _J1 = new Map([ + ["parts", $a([_Io, _Iq, _Is, _Iu, _Iw])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2065 + var _J3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2071 - var _F2 = new Map([ - ["parts", $a([_F0])] - ]); //#2071 - var _F4 = new Map([ + ]); //#2072 + var _J5 = new Map([ + ["parts", $a([_J3])] + ]); //#2072 + var _J7 = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintzero'])] - ]); //#2079 - var _F6 = new Map([ + ]); //#2080 + var _J9 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2080 - var _F8 = new Map([ + ]); //#2081 + var _JB = new Map([ ["cset", 'X'], ["min", 1], ["max", 16], ["opt", true], ["linters", $a([])] - ]); //#2081 - var _FB = new Map([ - ["parts", $a([_F4, _F6, _F8])], + ]); //#2082 + var _JE = new Map([ + ["parts", $a([_J7, _J9, _JB])], ["dlpkey", $a([])] - ]); //#2083 - var _FD = new Map([ + ]); //#2084 + var _JG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2090 - var _FH = new Map([ - ["parts", $a([_FD])], + ]); //#2091 + var _JK = new Map([ + ["parts", $a([_JG])], ["dlpkey", $a([$a(["7040"])])] - ]); //#2092 - var _FJ = new Map([ + ]); //#2093 + var _JM = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] - ]); //#2099 - var _FN = new Map([ - ["parts", $a([_FJ])], - ["req", $a([$a(["01", "02"])])] - ]); //#2101 - var _FP = new Map([ + ]); //#2100 + var _JS = new Map([ + ["parts", $a([_JM])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2102 + var _JU = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2108 - var _FR = new Map([ + ]); //#2109 + var _JW = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2109 - var _FW = new Map([ - ["parts", $a([_FP, _FR])], + ]); //#2110 + var _Jb = new Map([ + ["parts", $a([_JU, _JW])], ["ex", $a(["01", "37"])], ["dlpkey", $a([$a(["22", "10", "21"])])] - ]); //#2112 - var _FY = new Map([ + ]); //#2113 + var _Jd = new Map([ ["cset", 'X'], ["min", 1], ["max", 34], ["opt", false], ["linters", $a(['lintiban'])] - ]); //#2119 - var _Fc = new Map([ - ["parts", $a([_FY])], - ["req", $a([$a(["415"])])] - ]); //#2121 - var _Fe = new Map([ + ]); //#2120 + var _Ji = new Map([ + ["parts", $a([_Jd])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2122 + var _Jk = new Map([ ["cset", 'N'], ["min", 8], ["max", 8], ["opt", false], ["linters", $a(['lintyymmddhh'])] - ]); //#2128 - var _Fg = new Map([ + ]); //#2129 + var _Jm = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", true], ["linters", $a(['lintmmoptss'])] - ]); //#2129 - var _Fk = new Map([ - ["parts", $a([_Fe, _Fg])], - ["req", $a([$a(["01", "02"])])] - ]); //#2131 - var _Fm = new Map([ + ]); //#2130 + var _Js = new Map([ + ["parts", $a([_Jk, _Jm])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2132 + var _Ju = new Map([ ["cset", 'X'], ["min", 1], ["max", 50], ["opt", false], ["linters", $a([])] - ]); //#2138 - var _Fq = new Map([ - ["parts", $a([_Fm])], - ["req", $a([$a(["00", "01"])])] - ]); //#2140 - var _Fs = new Map([ + ]); //#2139 + var _K0 = new Map([ + ["parts", $a([_Ju])], + ["req", $a([$a([$a(["00"]), $a(["01"])])])] + ]); //#2141 + var _K2 = new Map([ ["cset", 'Y'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2147 - var _Fw = new Map([ - ["parts", $a([_Fs])], + ]); //#2148 + var _K6 = new Map([ + ["parts", $a([_K2])], ["dlpkey", $a([$a(["8011"])])] - ]); //#2149 - var _Fy = new Map([ + ]); //#2150 + var _K8 = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a(['lintnozeroprefix'])] - ]); //#2156 - var _G2 = new Map([ - ["parts", $a([_Fy])], - ["req", $a([$a(["8010"])])] - ]); //#2158 - var _G4 = new Map([ + ]); //#2157 + var _KD = new Map([ + ["parts", $a([_K8])], + ["req", $a([$a([$a(["8010"])])])] + ]); //#2159 + var _KF = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2165 - var _G8 = new Map([ - ["parts", $a([_G4])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2167 - var _GA = new Map([ + ]); //#2166 + var _KL = new Map([ + ["parts", $a([_KF])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2168 + var _KN = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a(['lintcsumalpha', 'lintkey'])] - ]); //#2174 - var _GD = new Map([ - ["parts", $a([_GA])], + ]); //#2175 + var _KQ = new Map([ + ["parts", $a([_KN])], ["dlpkey", $a([])] - ]); //#2176 - var _GF = new Map([ + ]); //#2177 + var _KS = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2183 - var _GK = new Map([ - ["parts", $a([_GF])], + ]); //#2184 + var _KX = new Map([ + ["parts", $a([_KS])], ["ex", $a(["8018"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2186 - var _GM = new Map([ + ]); //#2187 + var _KZ = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2193 - var _GR = new Map([ - ["parts", $a([_GM])], + ]); //#2194 + var _Ke = new Map([ + ["parts", $a([_KZ])], ["ex", $a(["8017"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2196 - var _GT = new Map([ + ]); //#2197 + var _Kg = new Map([ ["cset", 'N'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#2203 - var _GX = new Map([ - ["parts", $a([_GT])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2205 - var _GZ = new Map([ + ]); //#2204 + var _Km = new Map([ + ["parts", $a([_Kg])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2206 + var _Ko = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2212 - var _Gd = new Map([ - ["parts", $a([_GZ])], - ["req", $a([$a(["415"])])] - ]); //#2214 - var _Gf = new Map([ + ]); //#2213 + var _Kt = new Map([ + ["parts", $a([_Ko])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2215 + var _Kv = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2221 - var _Gh = new Map([ + ]); //#2222 + var _Kx = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2222 - var _Gm = new Map([ - ["parts", $a([_Gf, _Gh])], + ]); //#2223 + var _L3 = new Map([ + ["parts", $a([_Kv, _Kx])], ["ex", $a(["02", "8006"])], - ["req", $a([$a(["37"])])] - ]); //#2225 - var _Go = new Map([ + ["req", $a([$a([$a(["37"])])])] + ]); //#2226 + var _L5 = new Map([ + ["cset", 'Z'], + ["min", 1], + ["max", 90], + ["opt", false], + ["linters", $a([])] + ]); //#2233 + var _LJ = new Map([ + ["parts", $a([_L5])], + ["req", $a([$a([$a(["00"]), $a(["01"]), $a(["253"]), $a(["255"]), $a(["8003"]), $a(["8004"]), $a(["8006"]), $a(["8010"]), $a(["8017"]), $a(["8018"])])])] + ]); //#2235 + var _LL = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponcode'])] - ]); //#2232 - var _Gq = new Map([ - ["parts", $a([_Go])] - ]); //#2232 - var _Gs = new Map([ + ]); //#2242 + var _LN = new Map([ + ["parts", $a([_LL])] + ]); //#2242 + var _LP = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#2240 - var _Gw = new Map([ - ["parts", $a([_Gs])], - ["req", $a([$a(["255"])])] - ]); //#2242 - var _Gy = new Map([ + ]); //#2250 + var _LU = new Map([ + ["parts", $a([_LP])], + ["req", $a([$a([$a(["255"])])])] + ]); //#2252 + var _LW = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponposoffer'])] - ]); //#2249 - var _H0 = new Map([ - ["parts", $a([_Gy])] - ]); //#2249 - var _H2 = new Map([ + ]); //#2259 + var _LY = new Map([ + ["parts", $a([_LW])] + ]); //#2259 + var _La = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a([])] - ]); //#2257 - var _H6 = new Map([ - ["parts", $a([_H2])], - ["req", $a([$a(["01"])])] - ]); //#2259 - var _H8 = new Map([ + ]); //#2267 + var _Lf = new Map([ + ["parts", $a([_La])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2269 + var _Lh = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#2266 - var _HA = new Map([ - ["parts", $a([_H8])] - ]); //#2266 - var _HC = new Map([ + ]); //#2276 + var _Lj = new Map([ + ["parts", $a([_Lh])] + ]); //#2276 + var _Ll = new Map([ ["cset", 'X'], ["min", 1], ["max", 90], ["opt", false], ["linters", $a([])] - ]); //#2274 - var _HE = new Map([ - ["parts", $a([_HC])] - ]); //#2274 - var _HF = new Map([ + ]); //#2284 + var _Ln = new Map([ + ["parts", $a([_Ll])] + ]); //#2284 + var _Lo = new Map([ ["00", _4], ["01", _C], - ["02", _I], - ["10", _O], - ["11", _U], - ["12", _a], - ["13", _g], - ["15", _g], - ["16", _g], - ["17", _m], - ["20", _s], - ["21", _z], - ["22", _15], - ["235", _1B], - ["240", _1H], - ["241", _1H], - ["242", _1N], - ["243", _1T], - ["250", _1a], - ["251", _1g], - ["253", _1n], - ["254", _1t], - ["255", _21], - ["30", _27], - ["3100", _2E], - ["3101", _2E], - ["3102", _2E], - ["3103", _2E], - ["3104", _2E], - ["3105", _2E], - ["3110", _2L], - ["3111", _2L], - ["3112", _2L], - ["3113", _2L], - ["3114", _2L], - ["3115", _2L], - ["3120", _2S], - ["3121", _2S], - ["3122", _2S], - ["3123", _2S], - ["3124", _2S], - ["3125", _2S], - ["3130", _2Z], - ["3131", _2Z], - ["3132", _2Z], - ["3133", _2Z], - ["3134", _2Z], - ["3135", _2Z], - ["3140", _2g], - ["3141", _2g], - ["3142", _2g], - ["3143", _2g], - ["3144", _2g], - ["3145", _2g], - ["3150", _2n], - ["3151", _2n], - ["3152", _2n], - ["3153", _2n], - ["3154", _2n], - ["3155", _2n], - ["3160", _2u], - ["3161", _2u], - ["3162", _2u], - ["3163", _2u], - ["3164", _2u], - ["3165", _2u], - ["3200", _31], - ["3201", _31], - ["3202", _31], - ["3203", _31], - ["3204", _31], - ["3205", _31], - ["3210", _38], - ["3211", _38], - ["3212", _38], - ["3213", _38], - ["3214", _38], - ["3215", _38], - ["3220", _3F], - ["3221", _3F], - ["3222", _3F], - ["3223", _3F], - ["3224", _3F], - ["3225", _3F], - ["3230", _3M], - ["3231", _3M], - ["3232", _3M], - ["3233", _3M], - ["3234", _3M], - ["3235", _3M], - ["3240", _3T], - ["3241", _3T], - ["3242", _3T], - ["3243", _3T], - ["3244", _3T], - ["3245", _3T], - ["3250", _3a], - ["3251", _3a], - ["3252", _3a], - ["3253", _3a], - ["3254", _3a], - ["3255", _3a], - ["3260", _3h], - ["3261", _3h], - ["3262", _3h], - ["3263", _3h], - ["3264", _3h], - ["3265", _3h], - ["3270", _3o], - ["3271", _3o], - ["3272", _3o], - ["3273", _3o], - ["3274", _3o], - ["3275", _3o], - ["3280", _3v], - ["3281", _3v], - ["3282", _3v], - ["3283", _3v], - ["3284", _3v], - ["3285", _3v], - ["3290", _42], - ["3291", _42], - ["3292", _42], - ["3293", _42], - ["3294", _42], - ["3295", _42], - ["3300", _49], - ["3301", _49], - ["3302", _49], - ["3303", _49], - ["3304", _49], - ["3305", _49], - ["3310", _4G], - ["3311", _4G], - ["3312", _4G], - ["3313", _4G], - ["3314", _4G], - ["3315", _4G], - ["3320", _4N], - ["3321", _4N], - ["3322", _4N], - ["3323", _4N], - ["3324", _4N], - ["3325", _4N], - ["3330", _4U], - ["3331", _4U], - ["3332", _4U], - ["3333", _4U], - ["3334", _4U], - ["3335", _4U], - ["3340", _4b], - ["3341", _4b], - ["3342", _4b], - ["3343", _4b], - ["3344", _4b], - ["3345", _4b], - ["3350", _4i], - ["3351", _4i], - ["3352", _4i], - ["3353", _4i], - ["3354", _4i], - ["3355", _4i], - ["3360", _4p], - ["3361", _4p], - ["3362", _4p], - ["3363", _4p], - ["3364", _4p], - ["3365", _4p], - ["3370", _4w], - ["3371", _4w], - ["3372", _4w], - ["3373", _4w], - ["3374", _4w], - ["3375", _4w], - ["3400", _53], - ["3401", _53], - ["3402", _53], - ["3403", _53], - ["3404", _53], - ["3405", _53], - ["3410", _5A], - ["3411", _5A], - ["3412", _5A], - ["3413", _5A], - ["3414", _5A], - ["3415", _5A], - ["3420", _5H], - ["3421", _5H], - ["3422", _5H], - ["3423", _5H], - ["3424", _5H], - ["3425", _5H], - ["3430", _5O], - ["3431", _5O], - ["3432", _5O], - ["3433", _5O], - ["3434", _5O], - ["3435", _5O], - ["3440", _5V], - ["3441", _5V], - ["3442", _5V], - ["3443", _5V], - ["3444", _5V], - ["3445", _5V], - ["3450", _5c], - ["3451", _5c], - ["3452", _5c], - ["3453", _5c], - ["3454", _5c], - ["3455", _5c], - ["3460", _5j], - ["3461", _5j], - ["3462", _5j], - ["3463", _5j], - ["3464", _5j], - ["3465", _5j], - ["3470", _5q], - ["3471", _5q], - ["3472", _5q], - ["3473", _5q], - ["3474", _5q], - ["3475", _5q], - ["3480", _5x], - ["3481", _5x], - ["3482", _5x], - ["3483", _5x], - ["3484", _5x], - ["3485", _5x], - ["3490", _64], - ["3491", _64], - ["3492", _64], - ["3493", _64], - ["3494", _64], - ["3495", _64], - ["3500", _6B], - ["3501", _6B], - ["3502", _6B], - ["3503", _6B], - ["3504", _6B], - ["3505", _6B], - ["3510", _6I], - ["3511", _6I], - ["3512", _6I], - ["3513", _6I], - ["3514", _6I], - ["3515", _6I], - ["3520", _6P], - ["3521", _6P], - ["3522", _6P], - ["3523", _6P], - ["3524", _6P], - ["3525", _6P], - ["3530", _6W], - ["3531", _6W], - ["3532", _6W], - ["3533", _6W], - ["3534", _6W], - ["3535", _6W], - ["3540", _6d], - ["3541", _6d], - ["3542", _6d], - ["3543", _6d], - ["3544", _6d], - ["3545", _6d], - ["3550", _6k], - ["3551", _6k], - ["3552", _6k], - ["3553", _6k], - ["3554", _6k], - ["3555", _6k], - ["3560", _6r], - ["3561", _6r], - ["3562", _6r], - ["3563", _6r], - ["3564", _6r], - ["3565", _6r], - ["3570", _6y], - ["3571", _6y], - ["3572", _6y], - ["3573", _6y], - ["3574", _6y], - ["3575", _6y], - ["3600", _75], - ["3601", _75], - ["3602", _75], - ["3603", _75], - ["3604", _75], - ["3605", _75], - ["3610", _7C], - ["3611", _7C], - ["3612", _7C], - ["3613", _7C], - ["3614", _7C], - ["3615", _7C], - ["3620", _7J], - ["3621", _7J], - ["3622", _7J], - ["3623", _7J], - ["3624", _7J], - ["3625", _7J], - ["3630", _7Q], - ["3631", _7Q], - ["3632", _7Q], - ["3633", _7Q], - ["3634", _7Q], - ["3635", _7Q], - ["3640", _7X], - ["3641", _7X], - ["3642", _7X], - ["3643", _7X], - ["3644", _7X], - ["3645", _7X], - ["3650", _7e], - ["3651", _7e], - ["3652", _7e], - ["3653", _7e], - ["3654", _7e], - ["3655", _7e], - ["3660", _7l], - ["3661", _7l], - ["3662", _7l], - ["3663", _7l], - ["3664", _7l], - ["3665", _7l], - ["3670", _7s], - ["3671", _7s], - ["3672", _7s], - ["3673", _7s], - ["3674", _7s], - ["3675", _7s], - ["3680", _7z], - ["3681", _7z], - ["3682", _7z], - ["3683", _7z], - ["3684", _7z], - ["3685", _7z], - ["3690", _86], - ["3691", _86], - ["3692", _86], - ["3693", _86], - ["3694", _86], - ["3695", _86], - ["37", _8D], - ["3900", _8K], - ["3901", _8K], - ["3902", _8K], - ["3903", _8K], - ["3904", _8K], - ["3905", _8K], - ["3906", _8K], - ["3907", _8K], - ["3908", _8K], - ["3909", _8K], - ["3910", _8T], - ["3911", _8T], - ["3912", _8T], - ["3913", _8T], - ["3914", _8T], - ["3915", _8T], - ["3916", _8T], - ["3917", _8T], - ["3918", _8T], - ["3919", _8T], - ["3920", _8b], - ["3921", _8b], - ["3922", _8b], - ["3923", _8b], - ["3924", _8b], - ["3925", _8b], - ["3926", _8b], - ["3927", _8b], - ["3928", _8b], - ["3929", _8b], - ["3930", _8k], - ["3931", _8k], - ["3932", _8k], - ["3933", _8k], - ["3934", _8k], - ["3935", _8k], - ["3936", _8k], - ["3937", _8k], - ["3938", _8k], - ["3939", _8k], - ["3940", _8r], - ["3941", _8r], - ["3942", _8r], - ["3943", _8r], - ["3950", _8y], - ["3951", _8y], - ["3952", _8y], - ["3953", _8y], - ["3954", _8y], - ["3955", _8y], - ["400", _92], - ["401", _97], - ["402", _9C], - ["403", _9I], - ["410", _9M], - ["411", _9M], - ["412", _9M], - ["413", _9M], - ["414", _9T], - ["415", _9b], - ["416", _9f], - ["417", _9l], - ["420", _9q], - ["421", _9x], - ["422", _A4], - ["423", _AB], - ["424", _AI], - ["425", _AP], - ["426", _AV], - ["427", _Ac], - ["4300", _Ai], - ["4301", _Ai], - ["4302", _Ao], - ["4303", _Au], - ["4304", _B0], - ["4305", _B0], - ["4306", _B0], - ["4307", _B6], - ["4308", _BC], - ["4309", _BI], - ["4310", _BO], - ["4311", _BO], - ["4312", _BU], - ["4313", _Ba], - ["4314", _Bg], - ["4315", _Bg], - ["4316", _Bg], - ["4317", _Bm], - ["4318", _Bs], - ["4319", _By], - ["4320", _C4], - ["4321", _CA], - ["4322", _CA], - ["4323", _CA], - ["4324", _CI], - ["4325", _CI], - ["4326", _CO], - ["7001", _CU], - ["7002", _Ca], - ["7003", _Ci], - ["7004", _Cp], - ["7005", _Cv], - ["7006", _D1], - ["7007", _D9], - ["7008", _DF], - ["7009", _DL], - ["7010", _DR], - ["7011", _DZ], - ["7020", _Dg], - ["7021", _Dm], - ["7022", _Ds], - ["7023", _Dw], - ["7030", _E4], - ["7031", _E4], - ["7032", _E4], - ["7033", _E4], - ["7034", _E4], - ["7035", _E4], - ["7036", _E4], - ["7037", _E4], - ["7038", _E4], - ["7039", _E4], - ["7040", _EE], - ["710", _EK], - ["711", _EK], - ["712", _EK], - ["713", _EK], - ["714", _EK], - ["715", _EK], - ["7230", _ES], - ["7231", _ES], - ["7232", _ES], - ["7233", _ES], - ["7234", _ES], - ["7235", _ES], - ["7236", _ES], - ["7237", _ES], - ["7238", _ES], - ["7239", _ES], - ["7240", _EY], - ["7241", _Ee], - ["7242", _Ek], - ["8001", _Ey], - ["8002", _F2], - ["8003", _FB], - ["8004", _FH], - ["8005", _FN], - ["8006", _FW], - ["8007", _Fc], - ["8008", _Fk], - ["8009", _Fq], - ["8010", _Fw], - ["8011", _G2], - ["8012", _G8], - ["8013", _GD], - ["8017", _GK], - ["8018", _GR], - ["8019", _GX], - ["8020", _Gd], - ["8026", _Gm], - ["8110", _Gq], - ["8111", _Gw], - ["8112", _H0], - ["8200", _H6], - ["90", _HA], - ["91", _HE], - ["92", _HE], - ["93", _HE], - ["94", _HE], - ["95", _HE], - ["96", _HE], - ["97", _HE], - ["98", _HE], - ["99", _HE] - ]); //#2286 - $_.gs1syntax = _HF; //#2288 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2288 - bwipp_gs1process.__2289__ = 1; //#2288 - $_ = Object.getPrototypeOf($_); //#2288 - } //#2288 - if ($eq($k[--$j], 'ai')) { //#2473 - $anchorsearch($k[--$j], "("); //#2296 - if ($nt($k[--$j])) { //#2298 - $j--; //#2297 - $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2297'; //#2297 - $k[$j++] = "AIs must start with '('"; //#2297 - bwipp_raiseerror(); //#2297 - } //#2297 - $j--; //#2299 - $k[$j++] = Infinity; //#2300 - var _HK = $k[--$j]; //#2300 - var _HL = $k[--$j]; //#2300 - $k[$j++] = _HK; //#2307 - $k[$j++] = _HL; //#2307 - for (;;) { //#2307 - var _HM = $k[--$j]; //#2301 - $k[$j++] = _HM; //#2301 - if ($eq(_HM, "")) { //#2301 - $j--; //#2301 - break; //#2301 - } //#2301 - $search($k[--$j], ")"); //#2302 - if ($nt($k[--$j])) { //#2304 - $cleartomark(); //#2303 - $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2303'; //#2303 - $k[$j++] = "AIs must end with ')'"; //#2303 - bwipp_raiseerror(); //#2303 - } //#2303 - var _HP = $k[--$j]; //#2305 - var _HQ = $k[--$j]; //#2305 - $k[$j++] = _HP; //#2305 - $k[$j++] = _HQ; //#2305 - $j--; //#2305 - var _HR = $k[--$j]; //#2305 - var _HS = $k[--$j]; //#2305 - $k[$j++] = _HR; //#2306 - $search(_HS, "("); //#2306 - if ($k[--$j]) { //#2306 - var _HU = $k[--$j]; //#2306 - var _HV = $k[--$j]; //#2306 - $k[$j++] = _HU; //#2306 - $k[$j++] = _HV; //#2306 - $j--; //#2306 - var _HW = $k[--$j]; //#2306 - var _HX = $k[--$j]; //#2306 - $k[$j++] = _HW; //#2306 - $k[$j++] = _HX; //#2306 - } else { //#2306 - $k[$j++] = ""; //#2306 - } //#2306 - } //#2306 - var _HY = $counttomark(); //#2308 - $k[$j++] = _HY; //#2308 - if (_HY > 0) { //#2308 - var _HZ = $k[--$j]; //#2308 - for (var _Hb = _HZ, _Ha = (~~(_HZ / 2)) + 1; _Hb >= _Ha; _Hb -= 1) { //#2308 - $r(_Hb, -1); //#2308 - } //#2308 - } else { //#2308 - $j--; //#2308 - } //#2308 - $astore($a(~~($counttomark() / 2))); //#2309 - $_.ais = $k[--$j]; //#2309 - $astore($a($counttomark())); //#2310 - $k[$j++] = Infinity; //#2311 - var _Hh = $k[--$j]; //#2310 - var _Hi = $k[--$j]; //#2310 - $k[$j++] = _Hh; //#2312 - $forall(_Hi, function() { //#2312 - var _Hk = new Map([ + ["02", _J], + ["10", _T], + ["11", _d], + ["12", _k], + ["13", _u], + ["15", _u], + ["16", _u], + ["17", _15], + ["20", _1F], + ["21", _1O], + ["22", _1V], + ["235", _1c], + ["240", _1m], + ["241", _1m], + ["242", _1w], + ["243", _23], + ["250", _2D], + ["251", _2L], + ["253", _2S], + ["254", _2Z], + ["255", _2h], + ["30", _2p], + ["3100", _2y], + ["3101", _2y], + ["3102", _2y], + ["3103", _2y], + ["3104", _2y], + ["3105", _2y], + ["3110", _37], + ["3111", _37], + ["3112", _37], + ["3113", _37], + ["3114", _37], + ["3115", _37], + ["3120", _3G], + ["3121", _3G], + ["3122", _3G], + ["3123", _3G], + ["3124", _3G], + ["3125", _3G], + ["3130", _3P], + ["3131", _3P], + ["3132", _3P], + ["3133", _3P], + ["3134", _3P], + ["3135", _3P], + ["3140", _3Y], + ["3141", _3Y], + ["3142", _3Y], + ["3143", _3Y], + ["3144", _3Y], + ["3145", _3Y], + ["3150", _3h], + ["3151", _3h], + ["3152", _3h], + ["3153", _3h], + ["3154", _3h], + ["3155", _3h], + ["3160", _3q], + ["3161", _3q], + ["3162", _3q], + ["3163", _3q], + ["3164", _3q], + ["3165", _3q], + ["3200", _3z], + ["3201", _3z], + ["3202", _3z], + ["3203", _3z], + ["3204", _3z], + ["3205", _3z], + ["3210", _48], + ["3211", _48], + ["3212", _48], + ["3213", _48], + ["3214", _48], + ["3215", _48], + ["3220", _4H], + ["3221", _4H], + ["3222", _4H], + ["3223", _4H], + ["3224", _4H], + ["3225", _4H], + ["3230", _4Q], + ["3231", _4Q], + ["3232", _4Q], + ["3233", _4Q], + ["3234", _4Q], + ["3235", _4Q], + ["3240", _4Z], + ["3241", _4Z], + ["3242", _4Z], + ["3243", _4Z], + ["3244", _4Z], + ["3245", _4Z], + ["3250", _4i], + ["3251", _4i], + ["3252", _4i], + ["3253", _4i], + ["3254", _4i], + ["3255", _4i], + ["3260", _4r], + ["3261", _4r], + ["3262", _4r], + ["3263", _4r], + ["3264", _4r], + ["3265", _4r], + ["3270", _50], + ["3271", _50], + ["3272", _50], + ["3273", _50], + ["3274", _50], + ["3275", _50], + ["3280", _59], + ["3281", _59], + ["3282", _59], + ["3283", _59], + ["3284", _59], + ["3285", _59], + ["3290", _5I], + ["3291", _5I], + ["3292", _5I], + ["3293", _5I], + ["3294", _5I], + ["3295", _5I], + ["3300", _5R], + ["3301", _5R], + ["3302", _5R], + ["3303", _5R], + ["3304", _5R], + ["3305", _5R], + ["3310", _5a], + ["3311", _5a], + ["3312", _5a], + ["3313", _5a], + ["3314", _5a], + ["3315", _5a], + ["3320", _5j], + ["3321", _5j], + ["3322", _5j], + ["3323", _5j], + ["3324", _5j], + ["3325", _5j], + ["3330", _5s], + ["3331", _5s], + ["3332", _5s], + ["3333", _5s], + ["3334", _5s], + ["3335", _5s], + ["3340", _61], + ["3341", _61], + ["3342", _61], + ["3343", _61], + ["3344", _61], + ["3345", _61], + ["3350", _6A], + ["3351", _6A], + ["3352", _6A], + ["3353", _6A], + ["3354", _6A], + ["3355", _6A], + ["3360", _6J], + ["3361", _6J], + ["3362", _6J], + ["3363", _6J], + ["3364", _6J], + ["3365", _6J], + ["3370", _6R], + ["3371", _6R], + ["3372", _6R], + ["3373", _6R], + ["3374", _6R], + ["3375", _6R], + ["3400", _6a], + ["3401", _6a], + ["3402", _6a], + ["3403", _6a], + ["3404", _6a], + ["3405", _6a], + ["3410", _6j], + ["3411", _6j], + ["3412", _6j], + ["3413", _6j], + ["3414", _6j], + ["3415", _6j], + ["3420", _6s], + ["3421", _6s], + ["3422", _6s], + ["3423", _6s], + ["3424", _6s], + ["3425", _6s], + ["3430", _71], + ["3431", _71], + ["3432", _71], + ["3433", _71], + ["3434", _71], + ["3435", _71], + ["3440", _7A], + ["3441", _7A], + ["3442", _7A], + ["3443", _7A], + ["3444", _7A], + ["3445", _7A], + ["3450", _7J], + ["3451", _7J], + ["3452", _7J], + ["3453", _7J], + ["3454", _7J], + ["3455", _7J], + ["3460", _7S], + ["3461", _7S], + ["3462", _7S], + ["3463", _7S], + ["3464", _7S], + ["3465", _7S], + ["3470", _7b], + ["3471", _7b], + ["3472", _7b], + ["3473", _7b], + ["3474", _7b], + ["3475", _7b], + ["3480", _7k], + ["3481", _7k], + ["3482", _7k], + ["3483", _7k], + ["3484", _7k], + ["3485", _7k], + ["3490", _7t], + ["3491", _7t], + ["3492", _7t], + ["3493", _7t], + ["3494", _7t], + ["3495", _7t], + ["3500", _82], + ["3501", _82], + ["3502", _82], + ["3503", _82], + ["3504", _82], + ["3505", _82], + ["3510", _8B], + ["3511", _8B], + ["3512", _8B], + ["3513", _8B], + ["3514", _8B], + ["3515", _8B], + ["3520", _8K], + ["3521", _8K], + ["3522", _8K], + ["3523", _8K], + ["3524", _8K], + ["3525", _8K], + ["3530", _8T], + ["3531", _8T], + ["3532", _8T], + ["3533", _8T], + ["3534", _8T], + ["3535", _8T], + ["3540", _8c], + ["3541", _8c], + ["3542", _8c], + ["3543", _8c], + ["3544", _8c], + ["3545", _8c], + ["3550", _8l], + ["3551", _8l], + ["3552", _8l], + ["3553", _8l], + ["3554", _8l], + ["3555", _8l], + ["3560", _8u], + ["3561", _8u], + ["3562", _8u], + ["3563", _8u], + ["3564", _8u], + ["3565", _8u], + ["3570", _93], + ["3571", _93], + ["3572", _93], + ["3573", _93], + ["3574", _93], + ["3575", _93], + ["3600", _9C], + ["3601", _9C], + ["3602", _9C], + ["3603", _9C], + ["3604", _9C], + ["3605", _9C], + ["3610", _9L], + ["3611", _9L], + ["3612", _9L], + ["3613", _9L], + ["3614", _9L], + ["3615", _9L], + ["3620", _9U], + ["3621", _9U], + ["3622", _9U], + ["3623", _9U], + ["3624", _9U], + ["3625", _9U], + ["3630", _9d], + ["3631", _9d], + ["3632", _9d], + ["3633", _9d], + ["3634", _9d], + ["3635", _9d], + ["3640", _9m], + ["3641", _9m], + ["3642", _9m], + ["3643", _9m], + ["3644", _9m], + ["3645", _9m], + ["3650", _9v], + ["3651", _9v], + ["3652", _9v], + ["3653", _9v], + ["3654", _9v], + ["3655", _9v], + ["3660", _A4], + ["3661", _A4], + ["3662", _A4], + ["3663", _A4], + ["3664", _A4], + ["3665", _A4], + ["3670", _AD], + ["3671", _AD], + ["3672", _AD], + ["3673", _AD], + ["3674", _AD], + ["3675", _AD], + ["3680", _AM], + ["3681", _AM], + ["3682", _AM], + ["3683", _AM], + ["3684", _AM], + ["3685", _AM], + ["3690", _AV], + ["3691", _AV], + ["3692", _AV], + ["3693", _AV], + ["3694", _AV], + ["3695", _AV], + ["37", _Af], + ["3900", _Ao], + ["3901", _Ao], + ["3902", _Ao], + ["3903", _Ao], + ["3904", _Ao], + ["3905", _Ao], + ["3906", _Ao], + ["3907", _Ao], + ["3908", _Ao], + ["3909", _Ao], + ["3910", _Ay], + ["3911", _Ay], + ["3912", _Ay], + ["3913", _Ay], + ["3914", _Ay], + ["3915", _Ay], + ["3916", _Ay], + ["3917", _Ay], + ["3918", _Ay], + ["3919", _Ay], + ["3920", _BC], + ["3921", _BC], + ["3922", _BC], + ["3923", _BC], + ["3924", _BC], + ["3925", _BC], + ["3926", _BC], + ["3927", _BC], + ["3928", _BC], + ["3929", _BC], + ["3930", _BQ], + ["3931", _BQ], + ["3932", _BQ], + ["3933", _BQ], + ["3934", _BQ], + ["3935", _BQ], + ["3936", _BQ], + ["3937", _BQ], + ["3938", _BQ], + ["3939", _BQ], + ["3940", _BY], + ["3941", _BY], + ["3942", _BY], + ["3943", _BY], + ["3950", _Bk], + ["3951", _Bk], + ["3952", _Bk], + ["3953", _Bk], + ["3954", _Bk], + ["3955", _Bk], + ["400", _Bo], + ["401", _Bt], + ["402", _By], + ["403", _C5], + ["410", _C9], + ["411", _C9], + ["412", _C9], + ["413", _C9], + ["414", _CG], + ["415", _CP], + ["416", _CT], + ["417", _CZ], + ["420", _Ce], + ["421", _Cl], + ["422", _Cw], + ["423", _D5], + ["424", _DE], + ["425", _DN], + ["426", _DV], + ["427", _Df], + ["4300", _Dm], + ["4301", _Dm], + ["4302", _Dt], + ["4303", _E0], + ["4304", _E7], + ["4305", _E7], + ["4306", _E7], + ["4307", _EE], + ["4308", _EL], + ["4309", _EU], + ["4310", _Eb], + ["4311", _Eb], + ["4312", _Ei], + ["4313", _Ep], + ["4314", _Ew], + ["4315", _Ew], + ["4316", _Ew], + ["4317", _F3], + ["4318", _FA], + ["4319", _FH], + ["4320", _FO], + ["4321", _FV], + ["4322", _FV], + ["4323", _FV], + ["4324", _Fe], + ["4325", _Fe], + ["4326", _Fl], + ["7001", _Fv], + ["7002", _G3], + ["7003", _GD], + ["7004", _GM], + ["7005", _GU], + ["7006", _Gc], + ["7007", _Gm], + ["7008", _Gu], + ["7009", _H2], + ["7010", _HA], + ["7011", _HK], + ["7020", _HU], + ["7021", _Hc], + ["7022", _Hj], + ["7023", _Hn], + ["7030", _Hx], + ["7031", _Hx], + ["7032", _Hx], + ["7033", _Hx], + ["7034", _Hx], + ["7035", _Hx], + ["7036", _Hx], + ["7037", _Hx], + ["7038", _Hx], + ["7039", _Hx], + ["7040", _I7], + ["710", _IE], + ["711", _IE], + ["712", _IE], + ["713", _IE], + ["714", _IE], + ["715", _IE], + ["7230", _IO], + ["7231", _IO], + ["7232", _IO], + ["7233", _IO], + ["7234", _IO], + ["7235", _IO], + ["7236", _IO], + ["7237", _IO], + ["7238", _IO], + ["7239", _IO], + ["7240", _IW], + ["7241", _Ie], + ["7242", _Im], + ["8001", _J1], + ["8002", _J5], + ["8003", _JE], + ["8004", _JK], + ["8005", _JS], + ["8006", _Jb], + ["8007", _Ji], + ["8008", _Js], + ["8009", _K0], + ["8010", _K6], + ["8011", _KD], + ["8012", _KL], + ["8013", _KQ], + ["8017", _KX], + ["8018", _Ke], + ["8019", _Km], + ["8020", _Kt], + ["8026", _L3], + ["8030", _LJ], + ["8110", _LN], + ["8111", _LU], + ["8112", _LY], + ["8200", _Lf], + ["90", _Lj], + ["91", _Ln], + ["92", _Ln], + ["93", _Ln], + ["94", _Ln], + ["95", _Ln], + ["96", _Ln], + ["97", _Ln], + ["98", _Ln], + ["99", _Ln] + ]); //#2296 + $_.gs1syntax = _Lo; //#2298 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2298 + bwipp_gs1process.__2299__ = 1; //#2298 + $_ = Object.getPrototypeOf($_); //#2298 + } //#2298 + if ($eq($k[--$j], 'ai')) { //#2507 + $anchorsearch($k[--$j], "("); //#2306 + if ($nt($k[--$j])) { //#2308 + $j--; //#2307 + $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2307'; //#2307 + $k[$j++] = "AIs must start with '('"; //#2307 + bwipp_raiseerror(); //#2307 + } //#2307 + $j--; //#2309 + $k[$j++] = Infinity; //#2310 + var _Lt = $k[--$j]; //#2310 + var _Lu = $k[--$j]; //#2310 + $k[$j++] = _Lt; //#2317 + $k[$j++] = _Lu; //#2317 + for (;;) { //#2317 + var _Lv = $k[--$j]; //#2311 + $k[$j++] = _Lv; //#2311 + if ($eq(_Lv, "")) { //#2311 + $j--; //#2311 + break; //#2311 + } //#2311 + $search($k[--$j], ")"); //#2312 + if ($nt($k[--$j])) { //#2314 + $cleartomark(); //#2313 + $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2313'; //#2313 + $k[$j++] = "AIs must end with ')'"; //#2313 + bwipp_raiseerror(); //#2313 + } //#2313 + var _Ly = $k[--$j]; //#2315 + var _Lz = $k[--$j]; //#2315 + $k[$j++] = _Ly; //#2315 + $k[$j++] = _Lz; //#2315 + $j--; //#2315 + var _M0 = $k[--$j]; //#2315 + var _M1 = $k[--$j]; //#2315 + $k[$j++] = _M0; //#2316 + $search(_M1, "("); //#2316 + if ($k[--$j]) { //#2316 + var _M3 = $k[--$j]; //#2316 + var _M4 = $k[--$j]; //#2316 + $k[$j++] = _M3; //#2316 + $k[$j++] = _M4; //#2316 + $j--; //#2316 + var _M5 = $k[--$j]; //#2316 + var _M6 = $k[--$j]; //#2316 + $k[$j++] = _M5; //#2316 + $k[$j++] = _M6; //#2316 + } else { //#2316 + $k[$j++] = ""; //#2316 + } //#2316 + } //#2316 + var _M7 = $counttomark(); //#2318 + $k[$j++] = _M7; //#2318 + if (_M7 > 0) { //#2318 + var _M8 = $k[--$j]; //#2318 + for (var _MA = _M8, _M9 = (~~(_M8 / 2)) + 1; _MA >= _M9; _MA -= 1) { //#2318 + $r(_MA, -1); //#2318 + } //#2318 + } else { //#2318 + $j--; //#2318 + } //#2318 + $astore($a(~~($counttomark() / 2))); //#2319 + $_.ais = $k[--$j]; //#2319 + $astore($a($counttomark())); //#2320 + $k[$j++] = Infinity; //#2320 + var _MG = $k[--$j]; //#2320 + var _MH = $k[--$j]; //#2320 + $k[$j++] = _MG; //#2322 + $forall(_MH, function() { //#2322 + var _MJ = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#2311 - $k[$j++] = _Hk; //#2311 - bwipp_parseinput(); //#2311 - }); //#2311 - $_.vals = $a(); //#2312 - $j--; //#2313 - } else { //#2473 - $anchorsearch($k[--$j], "http://"); //#2318 - if ($nt($k[--$j])) { //#2321 - $anchorsearch($k[--$j], "https://"); //#2319 - if ($nt($k[--$j])) { //#2321 - $j--; //#2320 - $k[$j++] = 'bwipp.GS1dlURIbadScheme#2320'; //#2320 - $k[$j++] = "Scheme must be http:// or https://"; //#2320 - bwipp_raiseerror(); //#2320 - } //#2320 - } //#2320 - $j--; //#2322 - $search($k[--$j], "/"); //#2325 - if ($nt($k[--$j])) { //#2327 - $j--; //#2326 - $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2326'; //#2326 - $k[$j++] = "URI must contain a domain and path info"; //#2326 - bwipp_raiseerror(); //#2326 - } //#2326 - $j -= 2; //#2328 - $search($k[--$j], "#"); //#2331 - if ($k[--$j]) { //#2333 - var _Hu = $k[--$j]; //#2332 - var _Hv = $k[--$j]; //#2332 - $k[$j++] = _Hu; //#2332 - $k[$j++] = _Hv; //#2332 - $j--; //#2332 - var _Hw = $k[--$j]; //#2332 - var _Hx = $k[--$j]; //#2332 - $k[$j++] = _Hw; //#2332 - $k[$j++] = _Hx; //#2332 - $j--; //#2332 - } //#2332 - $search($k[--$j], "?"); //#2336 - if ($nt($k[--$j])) { //#2338 - var _I0 = $k[--$j]; //#2337 - $k[$j++] = ""; //#2337 - $k[$j++] = null; //#2337 - $k[$j++] = _I0; //#2337 - } //#2337 - $_.pp = $k[--$j]; //#2339 - $j--; //#2340 - $_.qp = $k[--$j]; //#2341 - $k[$j++] = Infinity; //#2344 - $k[$j++] = 0; //#2348 - $k[$j++] = 0; //#2348 - $k[$j++] = $_.pp; //#2348 - for (;;) { //#2348 - $search($k[--$j], "/"); //#2346 - if ($nt($k[--$j])) { //#2346 - $j--; //#2346 - break; //#2346 - } //#2346 - var _I6 = $k[--$j]; //#2347 - var _I7 = $k[--$j]; //#2347 - $k[$j++] = _I6.length + 1; //#2347 - $k[$j++] = _I7; //#2347 - $j--; //#2347 - var _I8 = $k[--$j]; //#2347 - var _I9 = $k[--$j]; //#2347 - var _IA = $k[--$j]; //#2347 - $k[$j++] = _IA; //#2347 - $k[$j++] = $f(_I8 + _IA); //#2347 - $k[$j++] = _I9; //#2347 + ]); //#2321 + $k[$j++] = _MJ; //#2321 + bwipp_parseinput(); //#2321 + }); //#2321 + $_.vals = $a(); //#2322 + $j--; //#2323 + } else { //#2507 + $anchorsearch($k[--$j], "http://"); //#2328 + if ($nt($k[--$j])) { //#2331 + $anchorsearch($k[--$j], "https://"); //#2329 + if ($nt($k[--$j])) { //#2331 + $j--; //#2330 + $k[$j++] = 'bwipp.GS1dlURIbadScheme#2330'; //#2330 + $k[$j++] = "Scheme must be http:// or https://"; //#2330 + bwipp_raiseerror(); //#2330 + } //#2330 + } //#2330 + $j--; //#2332 + $search($k[--$j], "/"); //#2335 + if ($nt($k[--$j])) { //#2337 + $j--; //#2336 + $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2336'; //#2336 + $k[$j++] = "URI must contain a domain and path info"; //#2336 + bwipp_raiseerror(); //#2336 + } //#2336 + $j -= 2; //#2338 + $search($k[--$j], "#"); //#2341 + if ($k[--$j]) { //#2343 + var _MT = $k[--$j]; //#2342 + var _MU = $k[--$j]; //#2342 + $k[$j++] = _MT; //#2342 + $k[$j++] = _MU; //#2342 + $j--; //#2342 + var _MV = $k[--$j]; //#2342 + var _MW = $k[--$j]; //#2342 + $k[$j++] = _MV; //#2342 + $k[$j++] = _MW; //#2342 + $j--; //#2342 + } //#2342 + $search($k[--$j], "?"); //#2346 + if ($nt($k[--$j])) { //#2348 + var _MZ = $k[--$j]; //#2347 + $k[$j++] = ""; //#2347 + $k[$j++] = null; //#2347 + $k[$j++] = _MZ; //#2347 } //#2347 - $astore($a($counttomark() - 1)); //#2349 - $_.pipos = $k[--$j]; //#2349 - $j -= 2; //#2349 - if ($_.pipos.length <= 1) { //#2352 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2351'; //#2351 - $k[$j++] = "The path was too short to contain AI info"; //#2351 - bwipp_raiseerror(); //#2351 - } //#2351 - $k[$j++] = false; //#2368 - for (var _IG = $_.pipos.length - 2; _IG >= 0; _IG -= 2) { //#2368 - var _II = $get($_.pipos, _IG); //#2358 - var _IM = $geti($_.pp, _II, $f($f($get($_.pipos, _IG + 1) - _II) - 1)); //#2359 - var _IO = $get($_.gs1syntax, _IM) !== undefined; //#2360 - $k[$j++] = _IG; //#2366 - $k[$j++] = _IM; //#2366 - if (_IO) { //#2365 - var _IS = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2361 - if (_IS) { //#2363 - var _IT = $k[--$j]; //#2362 - var _IU = $k[--$j]; //#2362 - $k[$j++] = _IT; //#2362 - $k[$j++] = _IU; //#2362 - $j--; //#2362 - $k[$j++] = true; //#2362 - break; //#2362 - } //#2362 - } else { //#2365 - $j--; //#2365 - } //#2365 - $j--; //#2367 - } //#2367 - if ($nt($k[--$j])) { //#2371 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2370'; //#2370 - $k[$j++] = "The path does not contain a valid primary key"; //#2370 - bwipp_raiseerror(); //#2370 - } //#2370 - var _IY = $get($_.pipos, $k[--$j]); //#2372 - $_.pp = $geti($_.pp, _IY, $f($_.pp.length - _IY)); //#2372 + $_.pp = $k[--$j]; //#2349 + $j--; //#2350 + $_.qp = $k[--$j]; //#2351 + $k[$j++] = Infinity; //#2354 + $k[$j++] = 0; //#2358 + $k[$j++] = 0; //#2358 + $k[$j++] = $_.pp; //#2358 + for (;;) { //#2358 + $search($k[--$j], "/"); //#2356 + if ($nt($k[--$j])) { //#2356 + $j--; //#2356 + break; //#2356 + } //#2356 + var _Mf = $k[--$j]; //#2357 + var _Mg = $k[--$j]; //#2357 + $k[$j++] = _Mf.length + 1; //#2357 + $k[$j++] = _Mg; //#2357 + $j--; //#2357 + var _Mh = $k[--$j]; //#2357 + var _Mi = $k[--$j]; //#2357 + var _Mj = $k[--$j]; //#2357 + $k[$j++] = _Mj; //#2357 + $k[$j++] = $f(_Mh + _Mj); //#2357 + $k[$j++] = _Mi; //#2357 + } //#2357 + $astore($a($counttomark() - 1)); //#2359 + $_.pipos = $k[--$j]; //#2359 + $j -= 2; //#2359 + if ($_.pipos.length <= 1) { //#2362 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2361'; //#2361 + $k[$j++] = "The path was too short to contain AI info"; //#2361 + bwipp_raiseerror(); //#2361 + } //#2361 + $k[$j++] = false; //#2378 + for (var _Mp = $_.pipos.length - 2; _Mp >= 0; _Mp -= 2) { //#2378 + var _Mr = $get($_.pipos, _Mp); //#2368 + var _Mv = $geti($_.pp, _Mr, $f($f($get($_.pipos, _Mp + 1) - _Mr) - 1)); //#2369 + var _Mx = $get($_.gs1syntax, _Mv) !== undefined; //#2370 + $k[$j++] = _Mp; //#2376 + $k[$j++] = _Mv; //#2376 + if (_Mx) { //#2375 + var _N1 = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2371 + if (_N1) { //#2373 + var _N2 = $k[--$j]; //#2372 + var _N3 = $k[--$j]; //#2372 + $k[$j++] = _N2; //#2372 + $k[$j++] = _N3; //#2372 + $j--; //#2372 + $k[$j++] = true; //#2372 + break; //#2372 + } //#2372 + } else { //#2375 + $j--; //#2375 + } //#2375 + $j--; //#2377 + } //#2377 + if ($nt($k[--$j])) { //#2381 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2380'; //#2380 + $k[$j++] = "The path does not contain a valid primary key"; //#2380 + bwipp_raiseerror(); //#2380 + } //#2380 + var _N7 = $get($_.pipos, $k[--$j]); //#2382 + $_.pp = $geti($_.pp, _N7, $f($_.pp.length - _N7)); //#2382 $_.uriunescape = function() { - $_.in = $k[--$j]; //#2375 - $_.out = $s($_.in.length); //#2376 - $k[$j++] = 0; //#2396 - $k[$j++] = 0; //#2396 - for (;;) { //#2396 - var _If = $k[--$j]; //#2378 - var _Ig = $k[--$j]; //#2378 - $k[$j++] = _Ig; //#2378 - $k[$j++] = _If; //#2378 - if (_Ig >= $_.in.length) { //#2378 - break; //#2378 - } //#2378 - var _Ij = $k[--$j]; //#2379 - var _Ik = $k[--$j]; //#2379 - var _Il = $get($_.in, _Ik); //#2379 - $k[$j++] = _Ik; //#2395 - $k[$j++] = _Ij; //#2395 - $k[$j++] = _Il; //#2395 - if (_Il == 43) { //#2394 - $j--; //#2381 - var _In = $k[--$j]; //#2381 - $put($_.out, _In, 32); //#2381 - var _Io = $k[--$j]; //#2382 - $k[$j++] = $f(_Io + 1); //#2382 - $k[$j++] = $f(_In + 1); //#2382 - } else { //#2394 - var _Ip = $k[--$j]; //#2384 - var _Iq = $k[--$j]; //#2384 - var _Ir = $k[--$j]; //#2384 - $k[$j++] = _Ir; //#2395 - $k[$j++] = _Iq; //#2395 - $k[$j++] = _Ip; //#2395 - if ((_Ip == 37) && (_Ir < ($_.in.length - 2))) { //#2394 - $j--; //#2385 - var _Iu = $strcpy($s(4), "< >"); //#2386 - var _Iw = $k[--$j]; //#2386 - var _Ix = $k[--$j]; //#2386 - $puti(_Iu, 1, $geti($_.in, $f(_Ix + 1), 2)); //#2386 - try { //#2387 - $k[$j++] = _Ix; //#2387 - $k[$j++] = _Iw; //#2387 - $k[$j++] = $cvx(_Iu); //#2387 + $_.qq = $k[--$j]; //#2385 + $_.in = $k[--$j]; //#2386 + $_.out = $s($_.in.length); //#2387 + $k[$j++] = 0; //#2407 + $k[$j++] = 0; //#2407 + for (;;) { //#2407 + var _NF = $k[--$j]; //#2389 + var _NG = $k[--$j]; //#2389 + $k[$j++] = _NG; //#2389 + $k[$j++] = _NF; //#2389 + if (_NG >= $_.in.length) { //#2389 + break; //#2389 + } //#2389 + var _NJ = $k[--$j]; //#2390 + var _NK = $k[--$j]; //#2390 + var _NL = $get($_.in, _NK); //#2390 + $k[$j++] = _NK; //#2406 + $k[$j++] = _NJ; //#2406 + $k[$j++] = _NL; //#2406 + if ((_NL == 43) && $_.qq) { //#2405 + $j--; //#2392 + var _NO = $k[--$j]; //#2392 + $put($_.out, _NO, 32); //#2392 + var _NP = $k[--$j]; //#2393 + $k[$j++] = $f(_NP + 1); //#2393 + $k[$j++] = $f(_NO + 1); //#2393 + } else { //#2405 + var _NQ = $k[--$j]; //#2395 + var _NR = $k[--$j]; //#2395 + var _NS = $k[--$j]; //#2395 + $k[$j++] = _NS; //#2406 + $k[$j++] = _NR; //#2406 + $k[$j++] = _NQ; //#2406 + if ((_NQ == 37) && (_NS < ($_.in.length - 2))) { //#2405 + $j--; //#2396 + var _NV = $strcpy($s(4), "< >"); //#2397 + var _NX = $k[--$j]; //#2397 + var _NY = $k[--$j]; //#2397 + $puti(_NV, 1, $geti($_.in, $f(_NY + 1), 2)); //#2397 + try { //#2398 + $k[$j++] = _NY; //#2398 + $k[$j++] = _NX; //#2398 + $k[$j++] = $cvx(_NV); //#2398 $k[$j++] = false } catch (e) { $k[$j++] = true - } //#2387 - if ($k[--$j]) { //#2389 - $j -= 2; //#2388 - $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2388'; //#2388 - $k[$j++] = "Invalid hex character"; //#2388 - bwipp_raiseerror(); //#2388 - } //#2388 - var _J1 = $get($k[--$j], 0); //#2390 - var _J3 = $k[--$j]; //#2390 - $put($_.out, _J3, _J1); //#2390 - var _J4 = $k[--$j]; //#2391 - $k[$j++] = $f(_J4 + 3); //#2391 - $k[$j++] = $f(_J3 + 1); //#2391 - } else { //#2394 - var _J6 = $k[--$j]; //#2393 - var _J7 = $k[--$j]; //#2393 - $put($_.out, _J7, _J6); //#2393 - var _J8 = $k[--$j]; //#2394 - $k[$j++] = $f(_J8 + 1); //#2394 - $k[$j++] = $f(_J7 + 1); //#2394 - } //#2394 - } //#2394 - } //#2394 - $_.out = $geti($_.out, 0, $k[--$j]); //#2397 - $j--; //#2398 - $k[$j++] = $_.out; //#2399 - }; //#2399 - $_.ais = $a(99); //#2402 - $_.vals = $a(99); //#2403 - $k[$j++] = 0; //#2417 - $k[$j++] = $_.pp; //#2417 - for (;;) { //#2417 - $search($k[--$j], "/"); //#2408 - if ($k[--$j]) { //#2414 - var _JJ = $k[--$j]; //#2409 - var _JK = $k[--$j]; //#2409 - var _JL = $k[--$j]; //#2409 - var _JM = $k[--$j]; //#2409 - $put($_.ais, _JM, _JJ); //#2409 - $k[$j++] = _JM; //#2411 - $search(_JL, "/"); //#2411 - if ($k[--$j]) { //#2411 - var _JO = $k[--$j]; //#2411 - var _JP = $k[--$j]; //#2411 - $k[$j++] = _JO; //#2411 - $k[$j++] = _JP; //#2411 - $j--; //#2411 - } else { //#2411 - var _JQ = $k[--$j]; //#2411 - $k[$j++] = ""; //#2411 - $k[$j++] = _JQ; //#2411 - } //#2411 - var _JS = $k[--$j]; //#2412 - var _JT = $k[--$j]; //#2412 - var _JU = $k[--$j]; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JT; //#2412 - $k[$j++] = $_.vals; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JS; //#2412 - $_.uriunescape(); //#2412 - var _JV = $k[--$j]; //#2412 - var _JW = $k[--$j]; //#2412 - $put($k[--$j], _JW, _JV); //#2412 - } else { //#2414 - $j--; //#2414 - break; //#2414 - } //#2414 - var _JY = $k[--$j]; //#2416 - var _JZ = $k[--$j]; //#2416 - $k[$j++] = $f(_JZ + 1); //#2416 - $k[$j++] = _JY; //#2416 - } //#2416 - var _Ja = $k[--$j]; //#2420 - $k[$j++] = _Ja; //#2438 - if (_Ja > 1) { //#2438 - $k[$j++] = false; //#2434 - $forall($get($get($_.gs1syntax, $get($_.ais, 0)), 'dlpkey'), function() { //#2434 - $_.seq = $k[--$j]; //#2423 - $_.i = 1; //#2424 - $_.j = 0; //#2424 - for (;;) { //#2432 - if ($_.i >= $_.ais.length) { //#2426 - break; //#2426 - } //#2426 - if ($_.j >= $_.seq.length) { //#2427 - break; //#2427 - } //#2427 - if ($eq($get($_.ais, $_.i), $get($_.seq, $_.j))) { //#2430 - $_.i = $_.i + 1; //#2429 - } //#2429 - $_.j = $_.j + 1; //#2431 - } //#2431 - var _Ju = $k[--$j]; //#2433 - var _Jv = $k[--$j]; //#2433 - $k[$j++] = _Jv; //#2433 - $k[$j++] = _Ju; //#2433 - if ($_.i == _Jv) { //#2433 - $j--; //#2433 - $k[$j++] = true; //#2433 - return true; //#2433 - } //#2433 - }); //#2433 - if ($nt($k[--$j])) { //#2437 - $j--; //#2436 - $k[$j++] = 'bwipp.GS1dlBadPathInfo#2436'; //#2436 - $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2436 - bwipp_raiseerror(); //#2436 - } //#2436 - } //#2436 - $k[$j++] = $_.qp; //#2456 - for (;;) { //#2456 - var _Jy = $k[--$j]; //#2442 - $k[$j++] = _Jy; //#2442 - if ($eq(_Jy, "")) { //#2442 - $j--; //#2442 - break; //#2442 - } //#2442 - $search($k[--$j], "&"); //#2443 + } //#2398 + if ($k[--$j]) { //#2400 + $j -= 2; //#2399 + $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2399'; //#2399 + $k[$j++] = "Invalid hex character"; //#2399 + bwipp_raiseerror(); //#2399 + } //#2399 + var _Nc = $get($k[--$j], 0); //#2401 + var _Ne = $k[--$j]; //#2401 + $put($_.out, _Ne, _Nc); //#2401 + var _Nf = $k[--$j]; //#2402 + $k[$j++] = $f(_Nf + 3); //#2402 + $k[$j++] = $f(_Ne + 1); //#2402 + } else { //#2405 + var _Nh = $k[--$j]; //#2404 + var _Ni = $k[--$j]; //#2404 + $put($_.out, _Ni, _Nh); //#2404 + var _Nj = $k[--$j]; //#2405 + $k[$j++] = $f(_Nj + 1); //#2405 + $k[$j++] = $f(_Ni + 1); //#2405 + } //#2405 + } //#2405 + } //#2405 + $_.out = $geti($_.out, 0, $k[--$j]); //#2408 + $j--; //#2409 + $k[$j++] = $_.out; //#2410 + }; //#2410 + $_.isvaliddlpkeyseq = function() { + $_.in = $k[--$j]; //#2414 + $k[$j++] = false; //#2428 + $forall($get($get($_.gs1syntax, $get($_.in, 0)), 'dlpkey'), function() { //#2428 + $_.seq = $k[--$j]; //#2417 + $_.i = 1; //#2418 + $_.j = 0; //#2418 + for (;;) { //#2426 + if ($_.i >= $_.in.length) { //#2420 + break; //#2420 + } //#2420 + if ($_.j >= $_.seq.length) { //#2421 + break; //#2421 + } //#2421 + if ($eq($get($_.in, $_.i), $get($_.seq, $_.j))) { //#2424 + $_.i = $_.i + 1; //#2423 + } //#2423 + $_.j = $_.j + 1; //#2425 + } //#2425 + if ($_.i == $_.in.length) { //#2427 + $j--; //#2427 + $k[$j++] = true; //#2427 + return true; //#2427 + } //#2427 + }); //#2427 + }; //#2427 + $_.ais = $a(99); //#2431 + $_.vals = $a(99); //#2432 + $k[$j++] = 0; //#2446 + $k[$j++] = $_.pp; //#2446 + for (;;) { //#2446 + $search($k[--$j], "/"); //#2437 if ($k[--$j]) { //#2443 - var _K1 = $k[--$j]; //#2443 - var _K2 = $k[--$j]; //#2443 - $k[$j++] = _K1; //#2443 - $k[$j++] = _K2; //#2443 - $j--; //#2443 + var _OF = $k[--$j]; //#2438 + var _OG = $k[--$j]; //#2438 + var _OH = $k[--$j]; //#2438 + var _OI = $k[--$j]; //#2438 + $put($_.ais, _OI, _OF); //#2438 + $k[$j++] = _OI; //#2440 + $search(_OH, "/"); //#2440 + if ($k[--$j]) { //#2440 + var _OK = $k[--$j]; //#2440 + var _OL = $k[--$j]; //#2440 + $k[$j++] = _OK; //#2440 + $k[$j++] = _OL; //#2440 + $j--; //#2440 + } else { //#2440 + var _OM = $k[--$j]; //#2440 + $k[$j++] = ""; //#2440 + $k[$j++] = _OM; //#2440 + } //#2440 + var _OO = $k[--$j]; //#2441 + var _OP = $k[--$j]; //#2441 + var _OQ = $k[--$j]; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OP; //#2441 + $k[$j++] = $_.vals; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OO; //#2441 + $k[$j++] = false; //#2441 + $_.uriunescape(); //#2441 + var _OR = $k[--$j]; //#2441 + var _OS = $k[--$j]; //#2441 + $put($k[--$j], _OS, _OR); //#2441 } else { //#2443 - var _K3 = $k[--$j]; //#2443 - $k[$j++] = ""; //#2443 - $k[$j++] = _K3; //#2443 + $j--; //#2443 + break; //#2443 } //#2443 - $search($k[--$j], "="); //#2444 - if ($k[--$j]) { //#2454 - var _K6 = $k[--$j]; //#2445 - $k[$j++] = _K6; //#2445 - $k[$j++] = true; //#2445 - $forall(_K6, function() { //#2445 - var _K7 = $k[--$j]; //#2445 - var _K8 = $k[--$j]; //#2445 - $k[$j++] = _K8 && ((_K7 >= 48) && (_K7 <= 57)); //#2445 - }); //#2445 - if ($k[--$j]) { //#2451 - var _KB = $k[--$j]; //#2446 - var _KC = $k[--$j]; //#2446 - var _KD = $k[--$j]; //#2446 - var _KE = $k[--$j]; //#2446 - var _KF = $k[--$j]; //#2446 - $put($_.ais, _KF, _KB); //#2446 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KE; //#2448 - $k[$j++] = $_.vals; //#2448 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KD; //#2448 - $_.uriunescape(); //#2448 - var _KH = $k[--$j]; //#2448 - var _KI = $k[--$j]; //#2448 - $put($k[--$j], _KI, _KH); //#2448 - var _KK = $k[--$j]; //#2449 - var _KL = $k[--$j]; //#2449 - $k[$j++] = $f(_KL + 1); //#2449 - $k[$j++] = _KK; //#2449 - } else { //#2451 - $j -= 3; //#2451 - } //#2451 - } else { //#2454 - $j--; //#2454 - } //#2454 - } //#2454 - var _KN = $k[--$j]; //#2458 - $_.ais = $geti($_.ais, 0, _KN); //#2458 - $_.vals = $geti($_.vals, 0, _KN); //#2459 - for (var _KT = 0, _KS = $_.ais.length - 1; _KT <= _KS; _KT += 1) { //#2474 - $k[$j++] = _KT; //#2472 - if ($eq($get($_.ais, _KT), "01")) { //#2472 - var _KW = $k[--$j]; //#2465 - var _KY = $get($_.vals, _KW); //#2465 - var _KZ = _KY.length; //#2466 - $k[$j++] = _KW; //#2471 - $k[$j++] = _KY; //#2471 - if ((_KZ == 8) || ((_KZ == 12) || (_KZ == 13))) { //#2470 - var _Kb = $strcpy($s(14), "00000000000000"); //#2467 - var _Kc = $k[--$j]; //#2467 - $puti(_Kb, 14 - _Kc.length, _Kc); //#2467 - var _Ke = $k[--$j]; //#2468 - $put($_.vals, _Ke, _Kb); //#2468 - $k[$j++] = _Ke; //#2468 - } else { //#2470 - $j--; //#2470 - } //#2470 + var _OU = $k[--$j]; //#2445 + var _OV = $k[--$j]; //#2445 + $k[$j++] = $f(_OV + 1); //#2445 + $k[$j++] = _OU; //#2445 + } //#2445 + var _OW = $k[--$j]; //#2447 + $_.plen = _OW; //#2447 + $k[$j++] = _OW; //#2454 + if (_OW > 1) { //#2454 + $k[$j++] = $geti($_.ais, 0, $_.plen); //#2451 + $_.isvaliddlpkeyseq(); //#2451 + if ($nt($k[--$j])) { //#2453 + $j--; //#2452 + $k[$j++] = 'bwipp.GS1dlBadPathInfo#2452'; //#2452 + $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2452 + bwipp_raiseerror(); //#2452 + } //#2452 + } //#2452 + $k[$j++] = $_.qp; //#2472 + for (;;) { //#2472 + var _Oc = $k[--$j]; //#2458 + $k[$j++] = _Oc; //#2458 + if ($eq(_Oc, "")) { //#2458 + $j--; //#2458 + break; //#2458 + } //#2458 + $search($k[--$j], "&"); //#2459 + if ($k[--$j]) { //#2459 + var _Of = $k[--$j]; //#2459 + var _Og = $k[--$j]; //#2459 + $k[$j++] = _Of; //#2459 + $k[$j++] = _Og; //#2459 + $j--; //#2459 + } else { //#2459 + var _Oh = $k[--$j]; //#2459 + $k[$j++] = ""; //#2459 + $k[$j++] = _Oh; //#2459 + } //#2459 + $search($k[--$j], "="); //#2460 + if ($k[--$j]) { //#2470 + var _Ok = $k[--$j]; //#2461 + $k[$j++] = _Ok; //#2461 + $k[$j++] = true; //#2461 + $forall(_Ok, function() { //#2461 + var _Ol = $k[--$j]; //#2461 + var _Om = $k[--$j]; //#2461 + $k[$j++] = _Om && ((_Ol >= 48) && (_Ol <= 57)); //#2461 + }); //#2461 + if ($k[--$j]) { //#2467 + var _Op = $k[--$j]; //#2462 + var _Oq = $k[--$j]; //#2462 + var _Or = $k[--$j]; //#2462 + var _Os = $k[--$j]; //#2462 + var _Ot = $k[--$j]; //#2462 + $put($_.ais, _Ot, _Op); //#2462 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Os; //#2464 + $k[$j++] = $_.vals; //#2464 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Or; //#2464 + $k[$j++] = true; //#2464 + $_.uriunescape(); //#2464 + var _Ov = $k[--$j]; //#2464 + var _Ow = $k[--$j]; //#2464 + $put($k[--$j], _Ow, _Ov); //#2464 + var _Oy = $k[--$j]; //#2465 + var _Oz = $k[--$j]; //#2465 + $k[$j++] = $f(_Oz + 1); //#2465 + $k[$j++] = _Oy; //#2465 + } else { //#2467 + $j -= 3; //#2467 + } //#2467 + } else { //#2470 + $j--; //#2470 } //#2470 - $j--; //#2473 - } //#2473 - } //#2473 - if (!bwipp_gs1process.__2487__) { //#2487 - $_ = Object.create($_); //#2487 - $k[$j++] = Infinity; //#2486 - var _Kf = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2485 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#2486 - var _Ki = $get(_Kf, _Kg); //#2486 - $k[$j++] = _Ki; //#2486 - $k[$j++] = _Ki; //#2486 - } //#2486 - $_.aifixed = $d(); //#2486 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2486 - bwipp_gs1process.__2487__ = 1; //#2486 - $_ = Object.getPrototypeOf($_); //#2486 - } //#2486 - $k[$j++] = Infinity; //#2495 - var _Kl = $_.ais; //#2490 - for (var _Km = 0, _Kn = _Kl.length; _Km < _Kn; _Km++) { //#2497 - var _Ko = $get(_Kl, _Km); //#2497 - $k[$j++] = true; //#2496 - $k[$j++] = _Ko; //#2496 - if (_Ko.length >= 2) { //#2495 - var _Ks = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2493 - if (_Ks) { //#2493 - $j--; //#2493 - $k[$j++] = false; //#2493 - } //#2493 - } else { //#2495 - $j--; //#2495 - } //#2495 - } //#2495 - $_.fncs = $a(); //#2495 - $_.lintnumeric = function() { - var _Ku = $k[--$j]; //#2504 - $k[$j++] = true; //#2506 - $forall(_Ku, function() { //#2506 - var _Kv = $k[--$j]; //#2505 - if ((_Kv < 48) || (_Kv > 57)) { //#2505 - $j--; //#2505 - $k[$j++] = false; //#2505 - return true; //#2505 - } //#2505 - }); //#2505 - if ($nt($k[--$j])) { //#2507 + } //#2470 + var _P2 = $k[--$j]; //#2475 + var _P4 = $geti($_.ais, $_.plen, $f(_P2 - $_.plen)); //#2475 + $k[$j++] = _P2; //#2490 + for (var _P5 = 0, _P6 = _P4.length; _P5 < _P6; _P5++) { //#2490 + $k[$j++] = $get(_P4, _P5); //#2488 + for (var _P9 = $_.plen; _P9 >= 1; _P9 -= 1) { //#2488 + var _PA = $k[--$j]; //#2477 + $k[$j++] = _PA; //#2479 + $k[$j++] = _P9; //#2479 + $k[$j++] = _PA; //#2479 + $k[$j++] = Infinity; //#2477 + $aload($geti($_.ais, 0, $_.plen)); //#2478 + $r($counttomark() + 3, -2); //#2479 + var _PF = $k[--$j]; //#2479 + var _PG = $k[--$j]; //#2479 + $k[$j++] = _PF; //#2479 + $r(_PG, 1); //#2479 + var _PH = $a(); //#2479 + $k[$j++] = _PH; //#2480 + $_.isvaliddlpkeyseq(); //#2480 + if ($k[--$j]) { //#2487 + var _PJ = $k[--$j]; //#2481 + var _PK = $k[--$j]; //#2481 + $k[$j++] = _PJ; //#2481 + $k[$j++] = _PK; //#2481 + $j--; //#2481 + var _PL = $k[--$j]; //#2482 + var _PM = _PL.length; //#2482 + var _PN = $s(_PM + 50); //#2482 + $puti(_PN, 0, "AI ("); //#2483 + $puti(_PN, 4, _PL); //#2484 + $puti(_PN, _PM + 4, ") from query params should be in the path info"); //#2485 + $k[$j++] = _PL; //#2486 + $k[$j++] = _PN; //#2486 + $k[$j++] = _PM; //#2486 + $j--; //#2486 + var _PO = $k[--$j]; //#2486 + var _PP = $k[--$j]; //#2486 + $k[$j++] = _PO; //#2486 + $k[$j++] = _PP; //#2486 + $j--; //#2486 + var _PQ = $k[--$j]; //#2486 + $k[$j++] = 'bwipp.GS1dlAttributeMustBeQualifier#2486'; //#2486 + $k[$j++] = _PQ; //#2486 + bwipp_raiseerror(); //#2486 + } //#2486 + } //#2486 + $j--; //#2489 + } //#2489 + var _PS = $k[--$j]; //#2492 + $_.ais = $geti($_.ais, 0, _PS); //#2492 + $_.vals = $geti($_.vals, 0, _PS); //#2493 + for (var _PY = 0, _PX = $_.ais.length - 1; _PY <= _PX; _PY += 1) { //#2508 + $k[$j++] = _PY; //#2506 + if ($eq($get($_.ais, _PY), "01")) { //#2506 + var _Pb = $k[--$j]; //#2499 + var _Pd = $get($_.vals, _Pb); //#2499 + var _Pe = _Pd.length; //#2500 + $k[$j++] = _Pb; //#2505 + $k[$j++] = _Pd; //#2505 + if ((_Pe == 8) || ((_Pe == 12) || (_Pe == 13))) { //#2504 + var _Pg = $strcpy($s(14), "00000000000000"); //#2501 + var _Ph = $k[--$j]; //#2501 + $puti(_Pg, 14 - _Ph.length, _Ph); //#2501 + var _Pj = $k[--$j]; //#2502 + $put($_.vals, _Pj, _Pg); //#2502 + $k[$j++] = _Pj; //#2502 + } else { //#2504 + $j--; //#2504 + } //#2504 + } //#2504 $j--; //#2507 - $k[$j++] = 'bwipp.GS1notNumeric#2507'; //#2507 - $k[$j++] = "Not numeric"; //#2507 - $k[$j++] = false; //#2507 - return true; //#2507 } //#2507 - }; //#2507 - $_.lintcset82 = function() { - var _Kx = $k[--$j]; //#2511 - $k[$j++] = true; //#2516 - $forall(_Kx, function() { //#2516 - var _Ky = $s(1); //#2512 - $put(_Ky, 0, $k[--$j]); //#2512 - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Ky); //#2514 - if ($nt($k[--$j])) { //#2514 - $j -= 2; //#2514 - $k[$j++] = false; //#2514 - return true; //#2514 - } //#2514 - $j -= 3; //#2515 - }); //#2515 - if ($nt($k[--$j])) { //#2517 - $j--; //#2517 - $k[$j++] = 'bwipp.GS1badCSET82character#2517'; //#2517 - $k[$j++] = "Invalid CSET 82 character"; //#2517 - $k[$j++] = false; //#2517 - return true; //#2517 - } //#2517 - }; //#2517 - $_.lintcset39 = function() { - var _L2 = $k[--$j]; //#2521 - $k[$j++] = true; //#2526 - $forall(_L2, function() { //#2526 - var _L3 = $s(1); //#2522 - $put(_L3, 0, $k[--$j]); //#2522 - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _L3); //#2524 - if ($nt($k[--$j])) { //#2524 - $j -= 2; //#2524 - $k[$j++] = false; //#2524 - return true; //#2524 - } //#2524 - $j -= 3; //#2525 - }); //#2525 - if ($nt($k[--$j])) { //#2527 - $j--; //#2527 - $k[$j++] = 'bwipp.GS1badCSET39character#2527'; //#2527 - $k[$j++] = "Invalid CSET 39 character"; //#2527 - $k[$j++] = false; //#2527 - return true; //#2527 - } //#2527 - }; //#2527 - $_.lintkey = function() { - var _L7 = $k[--$j]; //#2531 - $k[$j++] = _L7; //#2531 - if (_L7.length < 2) { //#2531 - $j -= 2; //#2531 - $k[$j++] = 'bwipp.GS1keyTooShort#2531'; //#2531 - $k[$j++] = "Key is too short"; //#2531 - $k[$j++] = false; //#2531 - return true; //#2531 - } //#2531 - var _L8 = $k[--$j]; //#2532 - var _L9 = $get(_L8, 0); //#2532 - var _LA = $get(_L8, 1); //#2533 - if (((_L9 < 48) || (_L9 > 57)) || ((_LA < 48) || (_LA > 57))) { //#2535 - $j--; //#2534 - $k[$j++] = 'bwipp.GS1badGCP#2534'; //#2534 - $k[$j++] = "Non-numeric company prefix"; //#2534 - $k[$j++] = false; //#2534 - return true; //#2534 - } //#2534 - }; //#2534 - $_.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2540 - if ($nt($k[--$j])) { //#2540 - $j -= 2; //#2540 - $k[$j++] = 'bwipp.GS1badImporterIndex#2540'; //#2540 - $k[$j++] = "Invalid importer index"; //#2540 - $k[$j++] = false; //#2540 - return true; //#2540 - } //#2540 - $j -= 3; //#2541 - }; //#2541 - $_.lintcsum = function() { - $k[$j++] = Infinity; //#2545 - var _LD = $k[--$j]; //#2545 - var _LE = $k[--$j]; //#2545 - var _LF = ((_LE.length % 2) == 0) ? 3 : 1; //#2546 - $k[$j++] = _LD; //#2547 - $k[$j++] = _LF; //#2547 - $forall(_LE, function() { //#2547 - var _LG = $k[--$j]; //#2547 - var _LH = $k[--$j]; //#2547 - $k[$j++] = $f(_LG - 48) * _LH; //#2547 - $k[$j++] = $f(4 - _LH); //#2547 - }); //#2547 - $j--; //#2547 - var _LI = $counttomark() + 1; //#2548 - $k[$j++] = 0; //#2548 - for (var _LJ = 0, _LK = _LI - 1; _LJ < _LK; _LJ++) { //#2548 - var _LL = $k[--$j]; //#2548 - var _LM = $k[--$j]; //#2548 - $k[$j++] = $f(_LM + _LL); //#2548 - } //#2548 - var _LN = $k[--$j]; //#2548 - var _LO = $k[--$j]; //#2548 - $k[$j++] = _LN; //#2548 - $k[$j++] = _LO; //#2548 - $j--; //#2548 - if (($k[--$j] % 10) != 0) { //#2549 - $j--; //#2549 - $k[$j++] = 'bwipp.GS1badChecksum#2549'; //#2549 - $k[$j++] = "Bad checksum"; //#2549 - $k[$j++] = false; //#2549 - return true; //#2549 + } //#2507 + if (!bwipp_gs1process.__2521__) { //#2521 + $_ = Object.create($_); //#2521 + $k[$j++] = Infinity; //#2514 + var _Pk = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2519 + for (var _Pl = 0, _Pm = _Pk.length; _Pl < _Pm; _Pl++) { //#2520 + var _Pn = $get(_Pk, _Pl); //#2520 + $k[$j++] = _Pn; //#2520 + $k[$j++] = _Pn; //#2520 + } //#2520 + $_.aifixed = $d(); //#2520 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2520 + bwipp_gs1process.__2521__ = 1; //#2520 + $_ = Object.getPrototypeOf($_); //#2520 + } //#2520 + $k[$j++] = Infinity; //#2523 + var _Pq = $_.ais; //#2524 + for (var _Pr = 0, _Ps = _Pq.length; _Pr < _Ps; _Pr++) { //#2531 + var _Pt = $get(_Pq, _Pr); //#2531 + $k[$j++] = true; //#2530 + $k[$j++] = _Pt; //#2530 + if (_Pt.length >= 2) { //#2529 + var _Px = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2527 + if (_Px) { //#2527 + $j--; //#2527 + $k[$j++] = false; //#2527 + } //#2527 + } else { //#2529 + $j--; //#2529 + } //#2529 + } //#2529 + $_.fncs = $a(); //#2529 + if (!bwipp_gs1process.__2556__) { //#2556 + $_ = Object.create($_); //#2556 + $k[$j++] = Infinity; //#2537 + $k[$j++] = 0; //#2539 + for (var _Pz = 0, _Q0 = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Pz < _Q0; _Pz++) { //#2539 + var _Q2 = $k[--$j]; //#2539 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Pz); //#2539 + $k[$j++] = _Q2; //#2539 + $k[$j++] = $f(_Q2 + 1); //#2539 + } //#2539 + $j--; //#2539 + $_.cset82 = $d(); //#2540 + $k[$j++] = Infinity; //#2542 + $k[$j++] = 0; //#2544 + for (var _Q4 = 0, _Q5 = "#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".length; _Q4 < _Q5; _Q4++) { //#2544 + var _Q7 = $k[--$j]; //#2544 + $k[$j++] = $get("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _Q4); //#2544 + $k[$j++] = _Q7; //#2544 + $k[$j++] = $f(_Q7 + 1); //#2544 + } //#2544 + $j--; //#2544 + $_.cset39 = $d(); //#2545 + $k[$j++] = Infinity; //#2547 + $k[$j++] = 0; //#2549 + for (var _Q9 = 0, _QA = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _Q9 < _QA; _Q9++) { //#2549 + var _QC = $k[--$j]; //#2549 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _Q9); //#2549 + $k[$j++] = _QC; //#2549 + $k[$j++] = $f(_QC + 1); //#2549 } //#2549 - }; //#2549 - if (!bwipp_gs1process.__2562__) { //#2562 - $_ = Object.create($_); //#2562 - $k[$j++] = Infinity; //#2555 - $k[$j++] = 0; //#2555 - for (var _LQ = 0, _LR = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _LQ < _LR; _LQ++) { //#2555 - var _LT = $k[--$j]; //#2555 - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _LQ); //#2555 - $k[$j++] = _LT; //#2555 - $k[$j++] = $f(_LT + 1); //#2555 - } //#2555 - $j--; //#2555 - $_.cset82 = $d(); //#2556 - $k[$j++] = Infinity; //#2560 - $k[$j++] = 0; //#2560 - for (var _LV = 0, _LW = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _LV < _LW; _LV++) { //#2560 - var _LY = $k[--$j]; //#2560 - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _LV); //#2560 - $k[$j++] = _LY; //#2560 - $k[$j++] = $f(_LY + 1); //#2560 + $j--; //#2549 + $_.cset32 = $d(); //#2550 + $k[$j++] = Infinity; //#2552 + $k[$j++] = 0; //#2554 + for (var _QE = 0, _QF = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".length; _QE < _QF; _QE++) { //#2554 + var _QH = $k[--$j]; //#2554 + $k[$j++] = $get("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", _QE); //#2554 + $k[$j++] = _QH; //#2554 + $k[$j++] = $f(_QH + 1); //#2554 + } //#2554 + $j--; //#2554 + $_.cset64 = $d(); //#2555 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2555 + bwipp_gs1process.__2556__ = 1; //#2555 + $_ = Object.getPrototypeOf($_); //#2555 + } //#2555 + $_.lintnumeric = function() { + var _QK = $k[--$j]; //#2559 + $k[$j++] = true; //#2559 + $forall(_QK, function() { //#2559 + var _QL = $k[--$j]; //#2559 + if ((_QL < 48) || (_QL > 57)) { //#2559 + $j--; //#2559 + $k[$j++] = false; //#2559 + return true; //#2559 + } //#2559 + }); //#2559 + if ($nt($k[--$j])) { //#2560 + $j--; //#2560 + $k[$j++] = 'bwipp.GS1notNumeric#2560'; //#2560 + $k[$j++] = "Not numeric"; //#2560 + $k[$j++] = false; //#2560 + return true; //#2560 } //#2560 - $j--; //#2560 - $_.cset32 = $d(); //#2561 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2561 - bwipp_gs1process.__2562__ = 1; //#2561 - $_ = Object.getPrototypeOf($_); //#2561 - } //#2561 - $_.lintcsumalpha = function() { - var _Lb = $k[--$j]; //#2565 - $k[$j++] = _Lb; //#2565 - if (_Lb.length < 2) { //#2565 - $j -= 2; //#2565 - $k[$j++] = 'bwipp.GS1alphaTooShort#2565'; //#2565 - $k[$j++] = "Alphanumeric string is too short to check"; //#2565 + }; //#2560 + $_.lintcset82 = function() { + var _QN = $k[--$j]; //#2564 + $k[$j++] = true; //#2564 + $forall(_QN, function() { //#2564 + var _QQ = $get($_.cset82, $k[--$j]) !== undefined; //#2564 + if (!_QQ) { //#2564 + $j--; //#2564 + $k[$j++] = false; //#2564 + return true; //#2564 + } //#2564 + }); //#2564 + if ($nt($k[--$j])) { //#2565 + $j--; //#2565 + $k[$j++] = 'bwipp.GS1badCSET82character#2565'; //#2565 + $k[$j++] = "Invalid CSET 82 character"; //#2565 $k[$j++] = false; //#2565 return true; //#2565 } //#2565 - var _Lc = $k[--$j]; //#2566 - $k[$j++] = _Lc; //#2568 - $k[$j++] = _Lc.length - 2; //#2568 - $k[$j++] = $geti(_Lc, 0, _Lc.length - 2); //#2568 - $k[$j++] = Infinity; //#2568 - var _Le = $k[--$j]; //#2568 - var _Lf = $k[--$j]; //#2568 - $k[$j++] = _Le; //#2570 - $forall(_Lf, function() { //#2570 - var _Lg = $k[--$j]; //#2569 - var _Li = $get($_.cset82, _Lg) !== undefined; //#2569 - $k[$j++] = _Lg; //#2569 - if (_Li) { //#2569 - var _Ll = $get($_.cset82, $k[--$j]); //#2569 - $k[$j++] = _Ll; //#2569 - } else { //#2569 - $k[$j++] = -1; //#2569 + }; //#2565 + $_.lintcset39 = function() { + var _QS = $k[--$j]; //#2569 + $k[$j++] = true; //#2569 + $forall(_QS, function() { //#2569 + var _QV = $get($_.cset39, $k[--$j]) !== undefined; //#2569 + if (!_QV) { //#2569 + $j--; //#2569 + $k[$j++] = false; //#2569 return true; //#2569 } //#2569 }); //#2569 - var _Lm = $k[--$j]; //#2571 - $k[$j++] = _Lm; //#2571 - if (_Lm == -1) { //#2571 - $cleartomark(); //#2571 - $j -= 3; //#2571 - $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2571'; //#2571 - $k[$j++] = "Unknown CSET 82 character"; //#2571 - $k[$j++] = false; //#2571 - return true; //#2571 - } //#2571 - $astore($a($counttomark())); //#2572 - var _Lp = $k[--$j]; //#2572 - var _Lq = $k[--$j]; //#2572 - $k[$j++] = _Lp; //#2572 - $k[$j++] = _Lq; //#2572 - $j--; //#2572 - var _Lr = $k[--$j]; //#2573 - var _Ls = $k[--$j]; //#2573 - var _Lu = $geti($k[--$j], _Ls, 2); //#2574 - $k[$j++] = _Lr; //#2574 - $k[$j++] = _Lu; //#2574 - $k[$j++] = Infinity; //#2574 - var _Lv = $k[--$j]; //#2574 - var _Lw = $k[--$j]; //#2574 - $k[$j++] = _Lv; //#2576 - $forall(_Lw, function() { //#2576 - var _Lx = $k[--$j]; //#2575 - var _Lz = $get($_.cset32, _Lx) !== undefined; //#2575 - $k[$j++] = _Lx; //#2575 - if (_Lz) { //#2575 - var _M2 = $get($_.cset32, $k[--$j]); //#2575 - $k[$j++] = _M2; //#2575 - } else { //#2575 - $k[$j++] = -1; //#2575 + if ($nt($k[--$j])) { //#2570 + $j--; //#2570 + $k[$j++] = 'bwipp.GS1badCSET39character#2570'; //#2570 + $k[$j++] = "Invalid CSET 39 character"; //#2570 + $k[$j++] = false; //#2570 + return true; //#2570 + } //#2570 + }; //#2570 + $_.lintcset64 = function() { + var _QX = $k[--$j]; //#2575 + $k[$j++] = true; //#2575 + $forall(_QX, function() { //#2575 + var _QY = $k[--$j]; //#2575 + var _Qa = $get($_.cset64, _QY) !== undefined; //#2575 + if ((!_Qa) && (_QY != 61)) { //#2575 + $j--; //#2575 + $k[$j++] = false; //#2575 return true; //#2575 } //#2575 }); //#2575 - var _M3 = $k[--$j]; //#2577 - $k[$j++] = _M3; //#2577 - if (_M3 == -1) { //#2577 - $cleartomark(); //#2577 - $j -= 2; //#2577 - $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2577'; //#2577 - $k[$j++] = "Unknown CSET 32 character"; //#2577 - $k[$j++] = false; //#2577 - return true; //#2577 - } //#2577 - $astore($a($counttomark())); //#2578 - var _M6 = $k[--$j]; //#2578 - var _M7 = $k[--$j]; //#2578 - $k[$j++] = _M6; //#2578 - $k[$j++] = _M7; //#2578 - $j--; //#2578 - var _M8 = $k[--$j]; //#2579 - var _MB = $k[--$j]; //#2579 - var _MC = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2580 - var _MD = _MB.length; //#2582 - $k[$j++] = $f(($get(_M8, 0) << 5) + $get(_M8, 1)); //#2582 - $k[$j++] = _MB; //#2582 - $k[$j++] = _MC; //#2582 - $k[$j++] = _MD; //#2582 - if (_MD > _MC.length) { //#2582 - $j -= 5; //#2582 - $k[$j++] = 'bwipp.GS1alphaTooLong#2582'; //#2582 - $k[$j++] = "Alphanumeric string is too long to check"; //#2582 - $k[$j++] = false; //#2582 - return true; //#2582 - } //#2582 - var _ME = $k[--$j]; //#2583 - var _MG = $geti($k[--$j], 0, _ME); //#2583 - for (var _MH = 0, _MI = _MG.length; _MH < _MI; _MH++) { //#2583 - var _MK = $k[--$j]; //#2583 - $k[$j++] = $get(_MG, _MH); //#2583 - $k[$j++] = _MK; //#2583 + if ($nt($k[--$j])) { //#2576 + $j--; //#2576 + $k[$j++] = 'bwipp.GS1badCSET64character#2576'; //#2576 + $k[$j++] = "Invalid CSET 64 character"; //#2576 + $k[$j++] = false; //#2576 + return true; //#2576 + } //#2576 + }; //#2576 + $_.lintkey = function() { + var _Qc = $k[--$j]; //#2580 + $k[$j++] = _Qc; //#2580 + if (_Qc.length < 2) { //#2580 + $j -= 2; //#2580 + $k[$j++] = 'bwipp.GS1keyTooShort#2580'; //#2580 + $k[$j++] = "Key is too short"; //#2580 + $k[$j++] = false; //#2580 + return true; //#2580 + } //#2580 + var _Qd = $k[--$j]; //#2581 + var _Qe = $get(_Qd, 0); //#2581 + var _Qf = $get(_Qd, 1); //#2582 + if (((_Qe < 48) || (_Qe > 57)) || ((_Qf < 48) || (_Qf > 57))) { //#2584 + $j--; //#2583 + $k[$j++] = 'bwipp.GS1badGCP#2583'; //#2583 + $k[$j++] = "Non-numeric company prefix"; //#2583 + $k[$j++] = false; //#2583 + return true; //#2583 } //#2583 - var _ML = $k[--$j]; //#2584 - $k[$j++] = 0; //#2584 - $forall(_ML, function() { //#2584 - var _MM = $k[--$j]; //#2584 - var _MN = $k[--$j]; //#2584 - var _MO = $k[--$j]; //#2584 - $k[$j++] = $f(_MN + (_MO * _MM)); //#2584 - }); //#2584 - var _MP = $k[--$j]; //#2584 - if ($k[--$j] != (_MP % 1021)) { //#2585 - $j--; //#2585 - $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2585'; //#2585 - $k[$j++] = "Bad alphanumeric check characters"; //#2585 - $k[$j++] = false; //#2585 - return true; //#2585 - } //#2585 - }; //#2585 - if (!bwipp_gs1process.__2609__) { //#2609 - $_ = Object.create($_); //#2609 - $k[$j++] = Infinity; //#2608 - var _MR = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2607 - for (var _MS = 0, _MT = _MR.length; _MS < _MT; _MS++) { //#2608 - var _MU = $get(_MR, _MS); //#2608 - $k[$j++] = _MU; //#2608 - $k[$j++] = _MU; //#2608 + }; //#2583 + $_.lintimporteridx = function() { + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2589 + if ($nt($k[--$j])) { //#2589 + $j -= 2; //#2589 + $k[$j++] = 'bwipp.GS1badImporterIndex#2589'; //#2589 + $k[$j++] = "Invalid importer index"; //#2589 + $k[$j++] = false; //#2589 + return true; //#2589 + } //#2589 + $j -= 3; //#2590 + }; //#2590 + $_.lintcsum = function() { + $k[$j++] = Infinity; //#2594 + var _Qi = $k[--$j]; //#2594 + var _Qj = $k[--$j]; //#2594 + var _Qk = ((_Qj.length % 2) == 0) ? 3 : 1; //#2595 + $k[$j++] = _Qi; //#2596 + $k[$j++] = _Qk; //#2596 + $forall(_Qj, function() { //#2596 + var _Ql = $k[--$j]; //#2596 + var _Qm = $k[--$j]; //#2596 + $k[$j++] = $f(_Ql - 48) * _Qm; //#2596 + $k[$j++] = $f(4 - _Qm); //#2596 + }); //#2596 + $j--; //#2596 + var _Qn = $counttomark() + 1; //#2597 + $k[$j++] = 0; //#2597 + for (var _Qo = 0, _Qp = _Qn - 1; _Qo < _Qp; _Qo++) { //#2597 + var _Qq = $k[--$j]; //#2597 + var _Qr = $k[--$j]; //#2597 + $k[$j++] = $f(_Qr + _Qq); //#2597 + } //#2597 + var _Qs = $k[--$j]; //#2597 + var _Qt = $k[--$j]; //#2597 + $k[$j++] = _Qs; //#2597 + $k[$j++] = _Qt; //#2597 + $j--; //#2597 + if (($k[--$j] % 10) != 0) { //#2598 + $j--; //#2598 + $k[$j++] = 'bwipp.GS1badChecksum#2598'; //#2598 + $k[$j++] = "Bad checksum"; //#2598 + $k[$j++] = false; //#2598 + return true; //#2598 + } //#2598 + }; //#2598 + $_.lintcsumalpha = function() { + var _Qv = $k[--$j]; //#2602 + $k[$j++] = _Qv; //#2602 + if (_Qv.length < 2) { //#2602 + $j -= 2; //#2602 + $k[$j++] = 'bwipp.GS1alphaTooShort#2602'; //#2602 + $k[$j++] = "Alphanumeric string is too short to check"; //#2602 + $k[$j++] = false; //#2602 + return true; //#2602 + } //#2602 + var _Qw = $k[--$j]; //#2603 + $k[$j++] = _Qw; //#2605 + $k[$j++] = _Qw.length - 2; //#2605 + $k[$j++] = $geti(_Qw, 0, _Qw.length - 2); //#2605 + $k[$j++] = Infinity; //#2605 + var _Qy = $k[--$j]; //#2605 + var _Qz = $k[--$j]; //#2605 + $k[$j++] = _Qy; //#2607 + $forall(_Qz, function() { //#2607 + var _R0 = $k[--$j]; //#2606 + var _R2 = $get($_.cset82, _R0) !== undefined; //#2606 + $k[$j++] = _R0; //#2606 + if (_R2) { //#2606 + var _R5 = $get($_.cset82, $k[--$j]); //#2606 + $k[$j++] = _R5; //#2606 + } else { //#2606 + $k[$j++] = -1; //#2606 + return true; //#2606 + } //#2606 + }); //#2606 + var _R6 = $k[--$j]; //#2608 + $k[$j++] = _R6; //#2608 + if (_R6 == -1) { //#2608 + $cleartomark(); //#2608 + $j -= 3; //#2608 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2608'; //#2608 + $k[$j++] = "Unknown CSET 82 character"; //#2608 + $k[$j++] = false; //#2608 + return true; //#2608 } //#2608 - $_.iso3166 = $d(); //#2608 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2608 - bwipp_gs1process.__2609__ = 1; //#2608 - $_ = Object.getPrototypeOf($_); //#2608 - } //#2608 + $astore($a($counttomark())); //#2609 + var _R9 = $k[--$j]; //#2609 + var _RA = $k[--$j]; //#2609 + $k[$j++] = _R9; //#2609 + $k[$j++] = _RA; //#2609 + $j--; //#2609 + var _RB = $k[--$j]; //#2610 + var _RC = $k[--$j]; //#2610 + var _RE = $geti($k[--$j], _RC, 2); //#2611 + $k[$j++] = _RB; //#2611 + $k[$j++] = _RE; //#2611 + $k[$j++] = Infinity; //#2611 + var _RF = $k[--$j]; //#2611 + var _RG = $k[--$j]; //#2611 + $k[$j++] = _RF; //#2613 + $forall(_RG, function() { //#2613 + var _RH = $k[--$j]; //#2612 + var _RJ = $get($_.cset32, _RH) !== undefined; //#2612 + $k[$j++] = _RH; //#2612 + if (_RJ) { //#2612 + var _RM = $get($_.cset32, $k[--$j]); //#2612 + $k[$j++] = _RM; //#2612 + } else { //#2612 + $k[$j++] = -1; //#2612 + return true; //#2612 + } //#2612 + }); //#2612 + var _RN = $k[--$j]; //#2614 + $k[$j++] = _RN; //#2614 + if (_RN == -1) { //#2614 + $cleartomark(); //#2614 + $j -= 2; //#2614 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2614'; //#2614 + $k[$j++] = "Unknown CSET 32 character"; //#2614 + $k[$j++] = false; //#2614 + return true; //#2614 + } //#2614 + $astore($a($counttomark())); //#2615 + var _RQ = $k[--$j]; //#2615 + var _RR = $k[--$j]; //#2615 + $k[$j++] = _RQ; //#2615 + $k[$j++] = _RR; //#2615 + $j--; //#2615 + var _RS = $k[--$j]; //#2616 + var _RV = $k[--$j]; //#2616 + var _RW = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2617 + var _RX = _RV.length; //#2619 + $k[$j++] = $f(($get(_RS, 0) << 5) + $get(_RS, 1)); //#2619 + $k[$j++] = _RV; //#2619 + $k[$j++] = _RW; //#2619 + $k[$j++] = _RX; //#2619 + if (_RX > _RW.length) { //#2619 + $j -= 5; //#2619 + $k[$j++] = 'bwipp.GS1alphaTooLong#2619'; //#2619 + $k[$j++] = "Alphanumeric string is too long to check"; //#2619 + $k[$j++] = false; //#2619 + return true; //#2619 + } //#2619 + var _RY = $k[--$j]; //#2620 + var _Ra = $geti($k[--$j], 0, _RY); //#2620 + for (var _Rb = 0, _Rc = _Ra.length; _Rb < _Rc; _Rb++) { //#2620 + var _Re = $k[--$j]; //#2620 + $k[$j++] = $get(_Ra, _Rb); //#2620 + $k[$j++] = _Re; //#2620 + } //#2620 + var _Rf = $k[--$j]; //#2621 + $k[$j++] = 0; //#2621 + $forall(_Rf, function() { //#2621 + var _Rg = $k[--$j]; //#2621 + var _Rh = $k[--$j]; //#2621 + var _Ri = $k[--$j]; //#2621 + $k[$j++] = $f(_Rh + (_Ri * _Rg)); //#2621 + }); //#2621 + var _Rj = $k[--$j]; //#2621 + if ($k[--$j] != (_Rj % 1021)) { //#2622 + $j--; //#2622 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2622'; //#2622 + $k[$j++] = "Bad alphanumeric check characters"; //#2622 + $k[$j++] = false; //#2622 + return true; //#2622 + } //#2622 + }; //#2622 + if (!bwipp_gs1process.__2646__) { //#2646 + $_ = Object.create($_); //#2646 + $k[$j++] = Infinity; //#2626 + var _Rl = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2644 + for (var _Rm = 0, _Rn = _Rl.length; _Rm < _Rn; _Rm++) { //#2645 + var _Ro = $get(_Rl, _Rm); //#2645 + $k[$j++] = _Ro; //#2645 + $k[$j++] = _Ro; //#2645 + } //#2645 + $_.iso3166 = $d(); //#2645 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2645 + bwipp_gs1process.__2646__ = 1; //#2645 + $_ = Object.getPrototypeOf($_); //#2645 + } //#2645 $_.lintiso3166 = function() { - var _MZ = $get($_.iso3166, $k[--$j]) !== undefined; //#2612 - if (!_MZ) { //#2612 - $j--; //#2612 - $k[$j++] = 'bwipp.GS1UnknownCountry#2612'; //#2612 - $k[$j++] = "Unknown country code"; //#2612 - $k[$j++] = false; //#2612 - return true; //#2612 - } //#2612 - }; //#2612 + var _Rt = $get($_.iso3166, $k[--$j]) !== undefined; //#2649 + if (!_Rt) { //#2649 + $j--; //#2649 + $k[$j++] = 'bwipp.GS1UnknownCountry#2649'; //#2649 + $k[$j++] = "Unknown country code"; //#2649 + $k[$j++] = false; //#2649 + return true; //#2649 + } //#2649 + }; //#2649 $_.lintiso3166999 = function() { - var _Ma = $k[--$j]; //#2616 - $k[$j++] = _Ma; //#2620 - if ($ne(_Ma, '999')) { //#2619 - var _Md = $get($_.iso3166, $k[--$j]) !== undefined; //#2617 - if (!_Md) { //#2617 - $j--; //#2617 - $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2617'; //#2617 - $k[$j++] = "Unknown country code or not 999"; //#2617 - $k[$j++] = false; //#2617 - return true; //#2617 - } //#2617 - } else { //#2619 - $j--; //#2619 - } //#2619 - }; //#2619 + var _Ru = $k[--$j]; //#2653 + $k[$j++] = _Ru; //#2657 + if ($ne(_Ru, '999')) { //#2656 + var _Rx = $get($_.iso3166, $k[--$j]) !== undefined; //#2654 + if (!_Rx) { //#2654 + $j--; //#2654 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2654'; //#2654 + $k[$j++] = "Unknown country code or not 999"; //#2654 + $k[$j++] = false; //#2654 + return true; //#2654 + } //#2654 + } else { //#2656 + $j--; //#2656 + } //#2656 + }; //#2656 $_.lintiso3166list = function() { - var _Me = $k[--$j]; //#2624 - $k[$j++] = _Me; //#2626 - if ((_Me.length % 3) != 0) { //#2626 - $j -= 2; //#2625 - $k[$j++] = 'bwipp.GS1BadCountryListLength#2625'; //#2625 - $k[$j++] = "Not a group of three-digit country codes"; //#2625 - $k[$j++] = false; //#2625 - return true; //#2625 - } //#2625 - var _Mf = $k[--$j]; //#2628 - $k[$j++] = _Mf; //#2631 - $k[$j++] = true; //#2631 - for (var _Mh = 0, _Mg = _Mf.length - 1; _Mh <= _Mg; _Mh += 3) { //#2631 - var _Mi = $k[--$j]; //#2629 - var _Mj = $k[--$j]; //#2629 - var _Mm = $get($_.iso3166, $geti(_Mj, _Mh, 3)) !== undefined; //#2630 - $k[$j++] = _Mj; //#2630 - $k[$j++] = _Mi; //#2630 - if (!_Mm) { //#2630 - $j -= 2; //#2630 - $k[$j++] = false; //#2630 - break; //#2630 - } //#2630 - } //#2630 - if ($nt($k[--$j])) { //#2632 - $j--; //#2632 - $k[$j++] = 'bwipp.GS1UnknownCountry#2632'; //#2632 - $k[$j++] = "Unknown country code"; //#2632 - $k[$j++] = false; //#2632 - return true; //#2632 - } //#2632 - $j--; //#2633 - }; //#2633 - if (!bwipp_gs1process.__2663__) { //#2663 - $_ = Object.create($_); //#2663 - $k[$j++] = Infinity; //#2662 - var _Mo = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2661 - for (var _Mp = 0, _Mq = _Mo.length; _Mp < _Mq; _Mp++) { //#2662 - var _Mr = $get(_Mo, _Mp); //#2662 - $k[$j++] = _Mr; //#2662 - $k[$j++] = _Mr; //#2662 + var _Ry = $k[--$j]; //#2661 + $k[$j++] = _Ry; //#2663 + if ((_Ry.length % 3) != 0) { //#2663 + $j -= 2; //#2662 + $k[$j++] = 'bwipp.GS1BadCountryListLength#2662'; //#2662 + $k[$j++] = "Not a group of three-digit country codes"; //#2662 + $k[$j++] = false; //#2662 + return true; //#2662 } //#2662 - $_.iso3166alpha2 = $d(); //#2662 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2662 - bwipp_gs1process.__2663__ = 1; //#2662 - $_ = Object.getPrototypeOf($_); //#2662 - } //#2662 + var _Rz = $k[--$j]; //#2665 + $k[$j++] = _Rz; //#2668 + $k[$j++] = true; //#2668 + for (var _S1 = 0, _S0 = _Rz.length - 1; _S1 <= _S0; _S1 += 3) { //#2668 + var _S2 = $k[--$j]; //#2666 + var _S3 = $k[--$j]; //#2666 + var _S6 = $get($_.iso3166, $geti(_S3, _S1, 3)) !== undefined; //#2667 + $k[$j++] = _S3; //#2667 + $k[$j++] = _S2; //#2667 + if (!_S6) { //#2667 + $j -= 2; //#2667 + $k[$j++] = false; //#2667 + break; //#2667 + } //#2667 + } //#2667 + if ($nt($k[--$j])) { //#2669 + $j--; //#2669 + $k[$j++] = 'bwipp.GS1UnknownCountry#2669'; //#2669 + $k[$j++] = "Unknown country code"; //#2669 + $k[$j++] = false; //#2669 + return true; //#2669 + } //#2669 + $j--; //#2670 + }; //#2670 + if (!bwipp_gs1process.__2700__) { //#2700 + $_ = Object.create($_); //#2700 + $k[$j++] = Infinity; //#2674 + var _S8 = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2698 + for (var _S9 = 0, _SA = _S8.length; _S9 < _SA; _S9++) { //#2699 + var _SB = $get(_S8, _S9); //#2699 + $k[$j++] = _SB; //#2699 + $k[$j++] = _SB; //#2699 + } //#2699 + $_.iso3166alpha2 = $d(); //#2699 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2699 + bwipp_gs1process.__2700__ = 1; //#2699 + $_ = Object.getPrototypeOf($_); //#2699 + } //#2699 $_.lintiso3166alpha2 = function() { - var _Mw = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2666 - if (!_Mw) { //#2666 - $j--; //#2666 - $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2666'; //#2666 - $k[$j++] = "Unknown country alpha code"; //#2666 - $k[$j++] = false; //#2666 - return true; //#2666 - } //#2666 - }; //#2666 - if (!bwipp_gs1process.__2694__) { //#2694 - $_ = Object.create($_); //#2694 - $k[$j++] = Infinity; //#2693 - var _Mx = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2692 - for (var _My = 0, _Mz = _Mx.length; _My < _Mz; _My++) { //#2693 - var _N0 = $get(_Mx, _My); //#2693 - $k[$j++] = _N0; //#2693 - $k[$j++] = _N0; //#2693 - } //#2693 - $_.iso4217 = $d(); //#2693 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2693 - bwipp_gs1process.__2694__ = 1; //#2693 - $_ = Object.getPrototypeOf($_); //#2693 - } //#2693 + var _SG = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2703 + if (!_SG) { //#2703 + $j--; //#2703 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2703'; //#2703 + $k[$j++] = "Unknown country alpha code"; //#2703 + $k[$j++] = false; //#2703 + return true; //#2703 + } //#2703 + }; //#2703 + if (!bwipp_gs1process.__2731__) { //#2731 + $_ = Object.create($_); //#2731 + $k[$j++] = Infinity; //#2707 + var _SH = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2729 + for (var _SI = 0, _SJ = _SH.length; _SI < _SJ; _SI++) { //#2730 + var _SK = $get(_SH, _SI); //#2730 + $k[$j++] = _SK; //#2730 + $k[$j++] = _SK; //#2730 + } //#2730 + $_.iso4217 = $d(); //#2730 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2730 + bwipp_gs1process.__2731__ = 1; //#2730 + $_ = Object.getPrototypeOf($_); //#2730 + } //#2730 $_.lintiso4217 = function() { - var _N5 = $get($_.iso4217, $k[--$j]) !== undefined; //#2697 - if (!_N5) { //#2697 - $j--; //#2697 - $k[$j++] = 'bwipp.GS1UnknownCurrency#2697'; //#2697 - $k[$j++] = "Unknown currency code"; //#2697 - $k[$j++] = false; //#2697 - return true; //#2697 - } //#2697 - }; //#2697 + var _SP = $get($_.iso4217, $k[--$j]) !== undefined; //#2734 + if (!_SP) { //#2734 + $j--; //#2734 + $k[$j++] = 'bwipp.GS1UnknownCurrency#2734'; //#2734 + $k[$j++] = "Unknown currency code"; //#2734 + $k[$j++] = false; //#2734 + return true; //#2734 + } //#2734 + }; //#2734 $_.lintiban = function() { - var _N6 = $k[--$j]; //#2701 - $k[$j++] = _N6; //#2701 - if (_N6.length <= 4) { //#2701 - $j -= 2; //#2701 - $k[$j++] = 'bwipp.GS1tooShort#2701'; //#2701 - $k[$j++] = "IBAN too short"; //#2701 - $k[$j++] = false; //#2701 - return true; //#2701 - } //#2701 - var _N7 = $k[--$j]; //#2702 - $k[$j++] = _N7; //#2707 - $k[$j++] = true; //#2707 - $forall(_N7, function() { //#2707 - var _N8 = $s(1); //#2703 - $put(_N8, 0, $k[--$j]); //#2703 - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _N8); //#2705 - if ($nt($k[--$j])) { //#2705 - $j -= 2; //#2705 - $k[$j++] = false; //#2705 - return true; //#2705 - } //#2705 - $j -= 3; //#2706 - }); //#2706 - if ($nt($k[--$j])) { //#2708 - $j--; //#2708 - $k[$j++] = 'bwipp.GS1badIBANcharacter#2708'; //#2708 - $k[$j++] = "Invalid IBAN character"; //#2708 - $k[$j++] = false; //#2708 - return true; //#2708 - } //#2708 - var _NC = $k[--$j]; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = Infinity; //#2709 - var _ND = $k[--$j]; //#2709 - var _NE = $k[--$j]; //#2709 - $k[$j++] = _ND; //#2709 - $k[$j++] = _NE; //#2709 - $k[$j++] = Infinity; //#2709 - var _NF = $k[--$j]; //#2709 - var _NG = $k[--$j]; //#2709 - $k[$j++] = _NF; //#2709 - $forall(_NG); //#2709 - $r($counttomark(), -4); //#2709 - $astore($a($counttomark())); //#2709 - var _NK = $k[--$j]; //#2709 - var _NL = $k[--$j]; //#2709 - $k[$j++] = _NK; //#2709 - $k[$j++] = _NL; //#2709 - $j--; //#2709 - $forall($k[--$j], function() { //#2711 - var _NO = $f($k[--$j] - 48); //#2710 - $k[$j++] = _NO; //#2710 - if (_NO > 9) { //#2710 - var _NQ = $f($k[--$j] - 7); //#2710 - $k[$j++] = ~~(_NQ / 10); //#2710 - $k[$j++] = _NQ % 10; //#2710 - } //#2710 - }); //#2710 - $astore($a($counttomark())); //#2711 - var _NT = $k[--$j]; //#2711 - var _NU = $k[--$j]; //#2711 - $k[$j++] = _NT; //#2711 - $k[$j++] = _NU; //#2711 - $j--; //#2711 - var _NV = $k[--$j]; //#2712 - $k[$j++] = 0; //#2712 - $forall(_NV, function() { //#2712 - var _NW = $k[--$j]; //#2712 - var _NX = $k[--$j]; //#2712 - $k[$j++] = ($f(_NW + (_NX * 10))) % 97; //#2712 - }); //#2712 - if ($k[--$j] != 1) { //#2713 - $j -= 2; //#2713 - $k[$j++] = 'bwipp.GS1badIBANchecksum#2713'; //#2713 - $k[$j++] = "IBAN checksum incorrect"; //#2713 - $k[$j++] = false; //#2713 - return true; //#2713 - } //#2713 - var _Na = $geti($k[--$j], 0, 2); //#2714 - $k[$j++] = _Na; //#2714 - $_.lintiso3166alpha2(); //#2714 - }; //#2714 - $_.lintzero = function() { - if ($ne($k[--$j], "0")) { //#2718 - $j--; //#2718 - $k[$j++] = 'bwipp.GS1zeroRequired#2718'; //#2718 - $k[$j++] = "Zero is required"; //#2718 - $k[$j++] = false; //#2718 - return true; //#2718 - } //#2718 - }; //#2718 - $_.lintnonzero = function() { - var _Nc = $k[--$j]; //#2722 - $k[$j++] = false; //#2722 - $forall(_Nc, function() { //#2722 - if ($k[--$j] != 48) { //#2722 - $j--; //#2722 - $k[$j++] = true; //#2722 - } //#2722 - }); //#2722 - if ($nt($k[--$j])) { //#2723 - $j--; //#2723 - $k[$j++] = 'bwipp.GS1zeroNotPermitted#2723'; //#2723 - $k[$j++] = "Zero not permitted"; //#2723 - $k[$j++] = false; //#2723 - return true; //#2723 - } //#2723 - }; //#2723 - $_.lintnozeroprefix = function() { - var _Nf = $k[--$j]; //#2727 - if ((_Nf.length > 1) && ($get(_Nf, 0) == 48)) { //#2729 - $j--; //#2728 - $k[$j++] = 'bwipp.GS1badZeroPrefix#2728'; //#2728 - $k[$j++] = "Zero prefix is not permitted"; //#2728 - $k[$j++] = false; //#2728 - return true; //#2728 - } //#2728 - }; //#2728 - $_.lintyymmd0 = function() { - var _Nh = $k[--$j]; //#2733 - var _Nj = $cvi($geti(_Nh, 2, 2)); //#2733 - $k[$j++] = _Nh; //#2733 - if ((_Nj < 1) || (_Nj > 12)) { //#2733 - $j--; //#2733 - $k[$j++] = 'bwipp.GS1badMonth#2733'; //#2733 - $k[$j++] = "Invalid month"; //#2733 - $k[$j++] = false; //#2733 - return true; //#2733 - } //#2733 - var _Nk = $k[--$j]; //#2734 - var _Nm = $cvi($geti(_Nk, 0, 2)); //#2734 - var _Nn = _Nm - 21; //#2735 - $k[$j++] = _Nk; //#2735 - $k[$j++] = _Nm; //#2735 - $k[$j++] = _Nn; //#2735 - if (_Nn >= 51) { //#2735 - $j--; //#2735 - var _No = $k[--$j]; //#2735 - $k[$j++] = $f(_No + 1900); //#2735 - } else { //#2735 - if ($k[--$j] <= -50) { //#2735 - var _Nq = $k[--$j]; //#2735 - $k[$j++] = $f(_Nq + 2100); //#2735 - } else { //#2735 - var _Nr = $k[--$j]; //#2735 - $k[$j++] = $f(_Nr + 2000); //#2735 - } //#2735 - } //#2735 - var _Ns = $k[--$j]; //#2736 - $k[$j++] = ((_Ns % 400) == 0) || (((_Ns % 4) == 0) && ((_Ns % 100) != 0)); //#2737 - $k[$j++] = Infinity; //#2737 - var _Nt = $k[--$j]; //#2737 - var _Nv = $k[--$j] ? 29 : 28; //#2737 - $k[$j++] = _Nt; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = _Nv; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - var _Nw = $a(); //#2737 - var _Nx = $k[--$j]; //#2738 - if ($get(_Nw, $cvi($geti(_Nx, 2, 2)) - 1) < $cvi($geti(_Nx, 4, 2))) { //#2739 - $j--; //#2739 - $k[$j++] = 'bwipp.GS1badDay#2739'; //#2739 - $k[$j++] = "Invalid day of month"; //#2739 - $k[$j++] = false; //#2739 - return true; //#2739 - } //#2739 - }; //#2739 - $_.lintyymmdd = function() { - var _O1 = $k[--$j]; //#2743 - $k[$j++] = _O1; //#2743 - if (_O1.length != 6) { //#2743 - $j--; //#2743 - $k[$j++] = 'bwipp.GS1badDateLength#2743'; //#2743 - $k[$j++] = "Invalid length for date"; //#2743 - $k[$j++] = false; //#2743 - return true; //#2743 - } //#2743 - var _O2 = $k[--$j]; //#2744 - $k[$j++] = _O2; //#2744 - if ($cvi($geti(_O2, 4, 2)) < 1) { //#2744 - $j--; //#2744 - $k[$j++] = 'bwipp.GS1badDay#2744'; //#2744 - $k[$j++] = "Invalid day of month"; //#2744 - $k[$j++] = false; //#2744 - return true; //#2744 - } //#2744 - $_.lintyymmd0(); //#2745 - }; //#2745 - $_.lintyymmddhh = function() { - var _O4 = $k[--$j]; //#2749 - $k[$j++] = _O4; //#2749 - if (_O4.length != 8) { //#2749 - $j--; //#2749 - $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2749'; //#2749 - $k[$j++] = "Invalid length for date with hour"; //#2749 - $k[$j++] = false; //#2749 - return true; //#2749 - } //#2749 - var _O5 = $k[--$j]; //#2750 - $k[$j++] = _O5; //#2750 - if ($cvi($geti(_O5, 6, 2)) > 23) { //#2750 + var _SQ = $k[--$j]; //#2738 + $k[$j++] = _SQ; //#2738 + if (_SQ.length <= 4) { //#2738 + $j -= 2; //#2738 + $k[$j++] = 'bwipp.GS1tooShort#2738'; //#2738 + $k[$j++] = "IBAN too short"; //#2738 + $k[$j++] = false; //#2738 + return true; //#2738 + } //#2738 + var _SR = $k[--$j]; //#2739 + $k[$j++] = _SR; //#2744 + $k[$j++] = true; //#2744 + $forall(_SR, function() { //#2744 + var _SS = $s(1); //#2740 + $put(_SS, 0, $k[--$j]); //#2740 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _SS); //#2742 + if ($nt($k[--$j])) { //#2742 + $j -= 2; //#2742 + $k[$j++] = false; //#2742 + return true; //#2742 + } //#2742 + $j -= 3; //#2743 + }); //#2743 + if ($nt($k[--$j])) { //#2745 + $j--; //#2745 + $k[$j++] = 'bwipp.GS1badIBANcharacter#2745'; //#2745 + $k[$j++] = "Invalid IBAN character"; //#2745 + $k[$j++] = false; //#2745 + return true; //#2745 + } //#2745 + var _SW = $k[--$j]; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = Infinity; //#2746 + var _SX = $k[--$j]; //#2746 + var _SY = $k[--$j]; //#2746 + $k[$j++] = _SX; //#2746 + $k[$j++] = _SY; //#2746 + $k[$j++] = Infinity; //#2746 + var _SZ = $k[--$j]; //#2746 + var _Sa = $k[--$j]; //#2746 + $k[$j++] = _SZ; //#2746 + $forall(_Sa); //#2746 + $r($counttomark(), -4); //#2746 + $astore($a($counttomark())); //#2746 + var _Se = $k[--$j]; //#2746 + var _Sf = $k[--$j]; //#2746 + $k[$j++] = _Se; //#2746 + $k[$j++] = _Sf; //#2746 + $j--; //#2746 + $forall($k[--$j], function() { //#2748 + var _Si = $f($k[--$j] - 48); //#2747 + $k[$j++] = _Si; //#2747 + if (_Si > 9) { //#2747 + var _Sk = $f($k[--$j] - 7); //#2747 + $k[$j++] = ~~(_Sk / 10); //#2747 + $k[$j++] = _Sk % 10; //#2747 + } //#2747 + }); //#2747 + $astore($a($counttomark())); //#2748 + var _Sn = $k[--$j]; //#2748 + var _So = $k[--$j]; //#2748 + $k[$j++] = _Sn; //#2748 + $k[$j++] = _So; //#2748 + $j--; //#2748 + var _Sp = $k[--$j]; //#2749 + $k[$j++] = 0; //#2749 + $forall(_Sp, function() { //#2749 + var _Sq = $k[--$j]; //#2749 + var _Sr = $k[--$j]; //#2749 + $k[$j++] = ($f(_Sq + (_Sr * 10))) % 97; //#2749 + }); //#2749 + if ($k[--$j] != 1) { //#2750 $j -= 2; //#2750 - $k[$j++] = 'bwipp.GS1badHour#2750'; //#2750 - $k[$j++] = "Invalid hour of day"; //#2750 + $k[$j++] = 'bwipp.GS1badIBANchecksum#2750'; //#2750 + $k[$j++] = "IBAN checksum incorrect"; //#2750 $k[$j++] = false; //#2750 return true; //#2750 } //#2750 - var _O8 = $geti($k[--$j], 0, 6); //#2751 - $k[$j++] = _O8; //#2751 - $_.lintyymmdd(); //#2751 + var _Su = $geti($k[--$j], 0, 2); //#2751 + $k[$j++] = _Su; //#2751 + $_.lintiso3166alpha2(); //#2751 }; //#2751 - $_.linthhmm = function() { - var _O9 = $k[--$j]; //#2755 - $k[$j++] = _O9; //#2755 - if ($cvi($geti(_O9, 0, 2)) > 23) { //#2755 - $j -= 2; //#2755 - $k[$j++] = 'bwipp.GS1badHour#2755'; //#2755 - $k[$j++] = "Invalid hour of day"; //#2755 + $_.lintzero = function() { + if ($ne($k[--$j], "0")) { //#2755 + $j--; //#2755 + $k[$j++] = 'bwipp.GS1zeroRequired#2755'; //#2755 + $k[$j++] = "Zero is required"; //#2755 $k[$j++] = false; //#2755 return true; //#2755 } //#2755 - if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2756 - $j--; //#2756 - $k[$j++] = 'bwipp.GS1badMinute#2756'; //#2756 - $k[$j++] = "Invalid minute in the hour"; //#2756 - $k[$j++] = false; //#2756 - return true; //#2756 - } //#2756 - }; //#2756 - $_.lintmmoptss = function() { - var _OD = $k[--$j]; //#2760 - var _OE = _OD.length; //#2760 - $k[$j++] = _OD; //#2762 - if ((_OE != 2) && (_OE != 4)) { //#2762 - $j--; //#2761 - $k[$j++] = 'bwipp.GS1badTimeLength#2761'; //#2761 - $k[$j++] = "Invalid length for optional minutes and seconds"; //#2761 - $k[$j++] = false; //#2761 - return true; //#2761 - } //#2761 - var _OF = $k[--$j]; //#2763 - $k[$j++] = _OF; //#2763 - if ($cvi($geti(_OF, 0, 2)) > 59) { //#2763 - $j -= 2; //#2763 - $k[$j++] = 'bwipp.GS1badMinute#2763'; //#2763 - $k[$j++] = "Invalid minute in the hour"; //#2763 - $k[$j++] = false; //#2763 - return true; //#2763 - } //#2763 - var _OH = $k[--$j]; //#2764 - $k[$j++] = _OH; //#2766 - if (_OH.length >= 4) { //#2766 - var _OI = $k[--$j]; //#2765 - $k[$j++] = _OI; //#2765 - if ($cvi($geti(_OI, 2, 2)) > 59) { //#2765 - $j -= 2; //#2765 - $k[$j++] = 'bwipp.GS1badSecond#2765'; //#2765 - $k[$j++] = "Invalid second in the minute"; //#2765 - $k[$j++] = false; //#2765 - return true; //#2765 - } //#2765 + }; //#2755 + $_.lintnonzero = function() { + var _Sw = $k[--$j]; //#2759 + $k[$j++] = false; //#2759 + $forall(_Sw, function() { //#2759 + if ($k[--$j] != 48) { //#2759 + $j--; //#2759 + $k[$j++] = true; //#2759 + } //#2759 + }); //#2759 + if ($nt($k[--$j])) { //#2760 + $j--; //#2760 + $k[$j++] = 'bwipp.GS1zeroNotPermitted#2760'; //#2760 + $k[$j++] = "Zero not permitted"; //#2760 + $k[$j++] = false; //#2760 + return true; //#2760 + } //#2760 + }; //#2760 + $_.lintnozeroprefix = function() { + var _Sz = $k[--$j]; //#2764 + if ((_Sz.length > 1) && ($get(_Sz, 0) == 48)) { //#2766 + $j--; //#2765 + $k[$j++] = 'bwipp.GS1badZeroPrefix#2765'; //#2765 + $k[$j++] = "Zero prefix is not permitted"; //#2765 + $k[$j++] = false; //#2765 + return true; //#2765 } //#2765 - $j--; //#2767 - }; //#2767 - $_.lintyesno = function() { - var _OK = $k[--$j]; //#2771 - if ($ne(_OK, "0") && $ne(_OK, "1")) { //#2773 + }; //#2765 + $_.lintyymmd0 = function() { + var _T1 = $k[--$j]; //#2770 + var _T3 = $cvi($geti(_T1, 2, 2)); //#2770 + $k[$j++] = _T1; //#2770 + if ((_T3 < 1) || (_T3 > 12)) { //#2770 + $j--; //#2770 + $k[$j++] = 'bwipp.GS1badMonth#2770'; //#2770 + $k[$j++] = "Invalid month"; //#2770 + $k[$j++] = false; //#2770 + return true; //#2770 + } //#2770 + var _T4 = $k[--$j]; //#2771 + var _T6 = $cvi($geti(_T4, 0, 2)); //#2771 + var _T7 = _T6 - 21; //#2772 + $k[$j++] = _T4; //#2772 + $k[$j++] = _T6; //#2772 + $k[$j++] = _T7; //#2772 + if (_T7 >= 51) { //#2772 $j--; //#2772 - $k[$j++] = 'bwipp.GS1badBoolean#2772'; //#2772 - $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2772 - $k[$j++] = false; //#2772 - return true; //#2772 + var _T8 = $k[--$j]; //#2772 + $k[$j++] = $f(_T8 + 1900); //#2772 + } else { //#2772 + if ($k[--$j] <= -50) { //#2772 + var _TA = $k[--$j]; //#2772 + $k[$j++] = $f(_TA + 2100); //#2772 + } else { //#2772 + var _TB = $k[--$j]; //#2772 + $k[$j++] = $f(_TB + 2000); //#2772 + } //#2772 } //#2772 - }; //#2772 - $_.lintwinding = function() { - var _OL = $k[--$j]; //#2777 - if ($ne(_OL, "0") && ($ne(_OL, "1") && $ne(_OL, "9"))) { //#2779 - $j--; //#2778 - $k[$j++] = 'bwipp.GS1badWinding#2778'; //#2778 - $k[$j++] = "Invalid winding direction"; //#2778 - $k[$j++] = false; //#2778 - return true; //#2778 - } //#2778 - }; //#2778 - $_.lintpieceoftotal = function() { - var _OM = $k[--$j]; //#2783 - $k[$j++] = _OM; //#2783 - if ((_OM.length % 2) != 0) { //#2783 - $j -= 2; //#2783 - $k[$j++] = 'bwipp.GS1badPieceTotalLength#2783'; //#2783 - $k[$j++] = "Invalid piece/total length"; //#2783 - $k[$j++] = false; //#2783 - return true; //#2783 - } //#2783 - var _ON = $k[--$j]; //#2784 - var _OP = $cvi($geti(_ON, 0, ~~(_ON.length / 2))); //#2785 - $k[$j++] = _ON; //#2785 - $k[$j++] = _OP; //#2785 - if (_OP == 0) { //#2785 - $j -= 3; //#2785 - $k[$j++] = 'bwipp.GS1badPieceNumber#2785'; //#2785 - $k[$j++] = "Invalid piece number"; //#2785 - $k[$j++] = false; //#2785 - return true; //#2785 - } //#2785 - var _OQ = $k[--$j]; //#2786 - var _OR = $k[--$j]; //#2786 - var _OS = ~~(_OR.length / 2); //#2786 - var _OU = $cvi($geti(_OR, _OS, _OS)); //#2787 - $k[$j++] = _OQ; //#2787 - $k[$j++] = _OU; //#2787 - if (_OU == 0) { //#2787 - $j -= 3; //#2787 - $k[$j++] = 'bwipp.GS1badPieceTotal#2787'; //#2787 - $k[$j++] = "Invalid total number"; //#2787 + var _TC = $k[--$j]; //#2773 + $k[$j++] = ((_TC % 400) == 0) || (((_TC % 4) == 0) && ((_TC % 100) != 0)); //#2774 + $k[$j++] = Infinity; //#2774 + var _TD = $k[--$j]; //#2774 + var _TF = $k[--$j] ? 29 : 28; //#2774 + $k[$j++] = _TD; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = _TF; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + var _TG = $a(); //#2774 + var _TH = $k[--$j]; //#2775 + if ($get(_TG, $cvi($geti(_TH, 2, 2)) - 1) < $cvi($geti(_TH, 4, 2))) { //#2776 + $j--; //#2776 + $k[$j++] = 'bwipp.GS1badDay#2776'; //#2776 + $k[$j++] = "Invalid day of month"; //#2776 + $k[$j++] = false; //#2776 + return true; //#2776 + } //#2776 + }; //#2776 + $_.lintyymmdd = function() { + var _TL = $k[--$j]; //#2780 + $k[$j++] = _TL; //#2780 + if (_TL.length != 6) { //#2780 + $j--; //#2780 + $k[$j++] = 'bwipp.GS1badDateLength#2780'; //#2780 + $k[$j++] = "Invalid length for date"; //#2780 + $k[$j++] = false; //#2780 + return true; //#2780 + } //#2780 + var _TM = $k[--$j]; //#2781 + $k[$j++] = _TM; //#2781 + if ($cvi($geti(_TM, 4, 2)) < 1) { //#2781 + $j--; //#2781 + $k[$j++] = 'bwipp.GS1badDay#2781'; //#2781 + $k[$j++] = "Invalid day of month"; //#2781 + $k[$j++] = false; //#2781 + return true; //#2781 + } //#2781 + $_.lintyymmd0(); //#2782 + }; //#2782 + $_.lintyymmddhh = function() { + var _TO = $k[--$j]; //#2786 + $k[$j++] = _TO; //#2786 + if (_TO.length != 8) { //#2786 + $j--; //#2786 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2786'; //#2786 + $k[$j++] = "Invalid length for date with hour"; //#2786 + $k[$j++] = false; //#2786 + return true; //#2786 + } //#2786 + var _TP = $k[--$j]; //#2787 + $k[$j++] = _TP; //#2787 + if ($cvi($geti(_TP, 6, 2)) > 23) { //#2787 + $j -= 2; //#2787 + $k[$j++] = 'bwipp.GS1badHour#2787'; //#2787 + $k[$j++] = "Invalid hour of day"; //#2787 $k[$j++] = false; //#2787 return true; //#2787 } //#2787 - var _OV = $k[--$j]; //#2788 - if ($gt($k[--$j], _OV)) { //#2788 - $j--; //#2788 - $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2788'; //#2788 - $k[$j++] = "Piece number exceeds total"; //#2788 - $k[$j++] = false; //#2788 - return true; //#2788 - } //#2788 + var _TS = $geti($k[--$j], 0, 6); //#2788 + $k[$j++] = _TS; //#2788 + $_.lintyymmdd(); //#2788 }; //#2788 - $_.lintpcenc = function() { - for (;;) { //#2802 - $search($k[--$j], "%"); //#2793 - if ($nt($k[--$j])) { //#2793 - $j--; //#2793 - break; //#2793 - } //#2793 - $j -= 2; //#2794 - var _OZ = $k[--$j]; //#2794 - $k[$j++] = _OZ; //#2794 - if (_OZ.length < 2) { //#2794 - $j -= 2; //#2794 - $k[$j++] = 'bwipp.GS1badPercentEscape#2794'; //#2794 - $k[$j++] = "Invalid % escape"; //#2794 - $k[$j++] = false; //#2794 - break; //#2794 - } //#2794 - var _Oa = $k[--$j]; //#2795 - var _Ob = $geti(_Oa, 0, 2); //#2795 - $k[$j++] = _Oa; //#2800 - $k[$j++] = true; //#2800 - for (var _Oc = 0, _Od = _Ob.length; _Oc < _Od; _Oc++) { //#2800 - var _Of = $s(1); //#2796 - $put(_Of, 0, $get(_Ob, _Oc)); //#2796 - $search("0123456789ABCDEFabcdef", _Of); //#2798 - if ($nt($k[--$j])) { //#2798 - $j -= 2; //#2798 - $k[$j++] = false; //#2798 - break; //#2798 - } //#2798 - $j -= 3; //#2799 - } //#2799 - if ($nt($k[--$j])) { //#2801 - $j -= 2; //#2801 - $k[$j++] = 'bwipp.GS1badPercentChars#2801'; //#2801 - $k[$j++] = "Invalid characters for percent encoding"; //#2801 - $k[$j++] = false; //#2801 - break; //#2801 - } //#2801 - } //#2801 - }; //#2801 - $_.lintcouponcode = function() { - var _Oi = $k[--$j]; //#2806 - $k[$j++] = _Oi; //#2808 - $k[$j++] = true; //#2808 - $forall(_Oi, function() { //#2808 - var _Oj = $k[--$j]; //#2807 - if ((_Oj < 48) || (_Oj > 57)) { //#2807 - $j--; //#2807 - $k[$j++] = false; //#2807 - return true; //#2807 - } //#2807 - }); //#2807 - if ($nt($k[--$j])) { //#2809 - $j -= 2; //#2809 - $k[$j++] = 'bwipp.GS1couponNotNumeric#2809'; //#2809 - $k[$j++] = "Coupon not numeric"; //#2809 + $_.linthhmm = function() { + var _TT = $k[--$j]; //#2792 + $k[$j++] = _TT; //#2792 + if ($cvi($geti(_TT, 0, 2)) > 23) { //#2792 + $j -= 2; //#2792 + $k[$j++] = 'bwipp.GS1badHour#2792'; //#2792 + $k[$j++] = "Invalid hour of day"; //#2792 + $k[$j++] = false; //#2792 + return true; //#2792 + } //#2792 + if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2793 + $j--; //#2793 + $k[$j++] = 'bwipp.GS1badMinute#2793'; //#2793 + $k[$j++] = "Invalid minute in the hour"; //#2793 + $k[$j++] = false; //#2793 + return true; //#2793 + } //#2793 + }; //#2793 + $_.lintmmoptss = function() { + var _TX = $k[--$j]; //#2797 + var _TY = _TX.length; //#2797 + $k[$j++] = _TX; //#2799 + if ((_TY != 2) && (_TY != 4)) { //#2799 + $j--; //#2798 + $k[$j++] = 'bwipp.GS1badTimeLength#2798'; //#2798 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#2798 + $k[$j++] = false; //#2798 + return true; //#2798 + } //#2798 + var _TZ = $k[--$j]; //#2800 + $k[$j++] = _TZ; //#2800 + if ($cvi($geti(_TZ, 0, 2)) > 59) { //#2800 + $j -= 2; //#2800 + $k[$j++] = 'bwipp.GS1badMinute#2800'; //#2800 + $k[$j++] = "Invalid minute in the hour"; //#2800 + $k[$j++] = false; //#2800 + return true; //#2800 + } //#2800 + var _Tb = $k[--$j]; //#2801 + $k[$j++] = _Tb; //#2803 + if (_Tb.length >= 4) { //#2803 + var _Tc = $k[--$j]; //#2802 + $k[$j++] = _Tc; //#2802 + if ($cvi($geti(_Tc, 2, 2)) > 59) { //#2802 + $j -= 2; //#2802 + $k[$j++] = 'bwipp.GS1badSecond#2802'; //#2802 + $k[$j++] = "Invalid second in the minute"; //#2802 + $k[$j++] = false; //#2802 + return true; //#2802 + } //#2802 + } //#2802 + $j--; //#2804 + }; //#2804 + $_.lintyesno = function() { + var _Te = $k[--$j]; //#2808 + if ($ne(_Te, "0") && $ne(_Te, "1")) { //#2810 + $j--; //#2809 + $k[$j++] = 'bwipp.GS1badBoolean#2809'; //#2809 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2809 $k[$j++] = false; //#2809 return true; //#2809 } //#2809 - var _Ol = $k[--$j]; //#2812 - $k[$j++] = _Ol; //#2814 - if (_Ol.length < 1) { //#2814 - $j -= 2; //#2813 - $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2813'; //#2813 - $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2813 - $k[$j++] = false; //#2813 - return true; //#2813 - } //#2813 - var _Om = $k[--$j]; //#2815 - var _Oo = $cvi($geti(_Om, 0, 1)); //#2815 - $k[$j++] = _Om; //#2817 - $k[$j++] = _Oo; //#2817 - if (_Oo > 6) { //#2817 - $j -= 2; //#2816 - $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2816'; //#2816 - $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2816 - $k[$j++] = false; //#2816 - return true; //#2816 - } //#2816 - var _Op = $k[--$j]; //#2818 - var _Oq = $k[--$j]; //#2819 - $k[$j++] = _Oq; //#2821 - $k[$j++] = $f($f(_Op + 6) + 1); //#2821 - if (($f($f(_Op + 6) + 1)) > _Oq.length) { //#2821 - $j -= 3; //#2820 - $k[$j++] = 'bwipp.GS1couponTooShortGCP#2820'; //#2820 - $k[$j++] = "Coupon too short: GCP truncated"; //#2820 + }; //#2809 + $_.lintwinding = function() { + var _Tf = $k[--$j]; //#2814 + if ($ne(_Tf, "0") && ($ne(_Tf, "1") && $ne(_Tf, "9"))) { //#2816 + $j--; //#2815 + $k[$j++] = 'bwipp.GS1badWinding#2815'; //#2815 + $k[$j++] = "Invalid winding direction"; //#2815 + $k[$j++] = false; //#2815 + return true; //#2815 + } //#2815 + }; //#2815 + $_.lintpieceoftotal = function() { + var _Tg = $k[--$j]; //#2820 + $k[$j++] = _Tg; //#2820 + if ((_Tg.length % 2) != 0) { //#2820 + $j -= 2; //#2820 + $k[$j++] = 'bwipp.GS1badPieceTotalLength#2820'; //#2820 + $k[$j++] = "Invalid piece/total length"; //#2820 $k[$j++] = false; //#2820 return true; //#2820 } //#2820 - var _Or = $k[--$j]; //#2822 - var _Os = $k[--$j]; //#2822 - var _Ot = $geti(_Os, _Or, $f(_Os.length - _Or)); //#2822 - $k[$j++] = _Ot; //#2827 - if (_Ot.length < 6) { //#2827 - $j -= 2; //#2826 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2826'; //#2826 - $k[$j++] = "Coupon too short: Offer Code truncated"; //#2826 - $k[$j++] = false; //#2826 - return true; //#2826 - } //#2826 - var _Ou = $k[--$j]; //#2828 - var _Ov = $geti(_Ou, 6, _Ou.length - 6); //#2828 - $k[$j++] = _Ov; //#2833 - if (_Ov.length < 1) { //#2833 - $j -= 2; //#2832 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2832'; //#2832 - $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2832 - $k[$j++] = false; //#2832 - return true; //#2832 - } //#2832 - var _Ow = $k[--$j]; //#2834 - var _Oy = $cvi($geti(_Ow, 0, 1)); //#2834 - $k[$j++] = _Ow; //#2836 - $k[$j++] = _Oy; //#2836 - if ((_Oy < 1) || (_Oy > 5)) { //#2836 - $j -= 2; //#2835 - $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2835'; //#2835 - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2835 - $k[$j++] = false; //#2835 - return true; //#2835 - } //#2835 - var _Oz = $k[--$j]; //#2837 - var _P0 = $k[--$j]; //#2838 - $k[$j++] = _P0; //#2840 - $k[$j++] = $f(_Oz + 1); //#2840 - if ($f(_Oz + 1) > _P0.length) { //#2840 - $j -= 3; //#2839 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2839'; //#2839 - $k[$j++] = "Coupon too short: Save Value truncated"; //#2839 - $k[$j++] = false; //#2839 - return true; //#2839 - } //#2839 - var _P1 = $k[--$j]; //#2841 - var _P2 = $k[--$j]; //#2841 - var _P3 = $geti(_P2, _P1, $f(_P2.length - _P1)); //#2841 - $k[$j++] = _P3; //#2846 - if (_P3.length < 1) { //#2846 - $j -= 2; //#2845 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2845'; //#2845 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2845 - $k[$j++] = false; //#2845 - return true; //#2845 - } //#2845 - var _P4 = $k[--$j]; //#2847 - var _P6 = $cvi($geti(_P4, 0, 1)); //#2847 - $k[$j++] = _P4; //#2849 - $k[$j++] = _P6; //#2849 - if ((_P6 < 1) || (_P6 > 5)) { //#2849 - $j -= 2; //#2848 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2848'; //#2848 - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2848 - $k[$j++] = false; //#2848 - return true; //#2848 - } //#2848 - var _P7 = $k[--$j]; //#2850 - var _P8 = $k[--$j]; //#2851 - $k[$j++] = _P8; //#2853 - $k[$j++] = $f(_P7 + 1); //#2853 - if ($f(_P7 + 1) > _P8.length) { //#2853 - $j -= 3; //#2852 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2852'; //#2852 - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2852 - $k[$j++] = false; //#2852 - return true; //#2852 - } //#2852 - var _P9 = $k[--$j]; //#2854 - var _PA = $k[--$j]; //#2854 - var _PB = $geti(_PA, _P9, $f(_PA.length - _P9)); //#2854 - $k[$j++] = _PB; //#2859 - if (_PB.length < 1) { //#2859 - $j -= 2; //#2858 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2858'; //#2858 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2858 - $k[$j++] = false; //#2858 - return true; //#2858 - } //#2858 - var _PC = $k[--$j]; //#2860 - var _PE = $cvi($geti(_PC, 0, 1)); //#2860 - $k[$j++] = _PC; //#2862 - if ((_PE > 4) && (_PE != 9)) { //#2862 - $j -= 2; //#2861 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2861'; //#2861 - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2861 - $k[$j++] = false; //#2861 - return true; //#2861 - } //#2861 - var _PF = $k[--$j]; //#2863 - var _PG = $geti(_PF, 1, _PF.length - 1); //#2863 - $k[$j++] = _PG; //#2868 - if (_PG.length < 3) { //#2868 - $j -= 2; //#2867 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2867'; //#2867 - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2867 - $k[$j++] = false; //#2867 - return true; //#2867 - } //#2867 - var _PH = $k[--$j]; //#2869 - var _PI = $geti(_PH, 3, _PH.length - 3); //#2869 - $k[$j++] = _PI; //#2925 - if (_PI.length >= 1) { //#2925 - var _PJ = $k[--$j]; //#2872 - $k[$j++] = _PJ; //#2925 - if ($cvi($geti(_PJ, 0, 1)) == 1) { //#2925 - var _PL = $k[--$j]; //#2873 - var _PM = $geti(_PL, 1, _PL.length - 1); //#2873 - $k[$j++] = _PM; //#2878 - if (_PM.length < 1) { //#2878 - $j -= 2; //#2877 - $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2877'; //#2877 - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2877 - $k[$j++] = false; //#2877 - return true; //#2877 - } //#2877 - var _PN = $k[--$j]; //#2879 - $k[$j++] = _PN; //#2881 - if ($cvi($geti(_PN, 0, 1)) > 3) { //#2881 - $j -= 2; //#2880 - $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2880'; //#2880 - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2880 - $k[$j++] = false; //#2880 - return true; //#2880 - } //#2880 - var _PP = $k[--$j]; //#2882 - var _PQ = $geti(_PP, 1, _PP.length - 1); //#2882 - $k[$j++] = _PQ; //#2887 - if (_PQ.length < 1) { //#2887 - $j -= 2; //#2886 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2886'; //#2886 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2886 - $k[$j++] = false; //#2886 - return true; //#2886 - } //#2886 - var _PR = $k[--$j]; //#2888 - var _PT = $cvi($geti(_PR, 0, 1)); //#2888 - $k[$j++] = _PR; //#2890 - $k[$j++] = _PT; //#2890 - if ((_PT < 1) || (_PT > 5)) { //#2890 - $j -= 2; //#2889 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2889'; //#2889 - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2889 - $k[$j++] = false; //#2889 - return true; //#2889 - } //#2889 - var _PU = $k[--$j]; //#2891 - var _PV = $k[--$j]; //#2892 - $k[$j++] = _PV; //#2894 - $k[$j++] = $f(_PU + 1); //#2894 - if ($f(_PU + 1) > _PV.length) { //#2894 - $j -= 3; //#2893 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2893'; //#2893 - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2893 - $k[$j++] = false; //#2893 - return true; //#2893 - } //#2893 - var _PW = $k[--$j]; //#2895 - var _PX = $k[--$j]; //#2895 - var _PY = $geti(_PX, _PW, $f(_PX.length - _PW)); //#2895 - $k[$j++] = _PY; //#2900 - if (_PY.length < 1) { //#2900 - $j -= 2; //#2899 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2899'; //#2899 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2899 - $k[$j++] = false; //#2899 - return true; //#2899 - } //#2899 - var _PZ = $k[--$j]; //#2901 - var _Pb = $cvi($geti(_PZ, 0, 1)); //#2901 - $k[$j++] = _PZ; //#2903 - if ((_Pb > 4) && (_Pb != 9)) { //#2903 - $j -= 2; //#2902 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2902'; //#2902 - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2902 - $k[$j++] = false; //#2902 - return true; //#2902 - } //#2902 - var _Pc = $k[--$j]; //#2904 - var _Pd = $geti(_Pc, 1, _Pc.length - 1); //#2904 - $k[$j++] = _Pd; //#2909 - if (_Pd.length < 3) { //#2909 - $j -= 2; //#2908 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2908'; //#2908 - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2908 - $k[$j++] = false; //#2908 - return true; //#2908 - } //#2908 - var _Pe = $k[--$j]; //#2910 - var _Pf = $geti(_Pe, 3, _Pe.length - 3); //#2910 - $k[$j++] = _Pf; //#2915 - if (_Pf.length < 1) { //#2915 + var _Th = $k[--$j]; //#2821 + var _Tj = $cvi($geti(_Th, 0, ~~(_Th.length / 2))); //#2822 + $k[$j++] = _Th; //#2822 + $k[$j++] = _Tj; //#2822 + if (_Tj == 0) { //#2822 + $j -= 3; //#2822 + $k[$j++] = 'bwipp.GS1badPieceNumber#2822'; //#2822 + $k[$j++] = "Invalid piece number"; //#2822 + $k[$j++] = false; //#2822 + return true; //#2822 + } //#2822 + var _Tk = $k[--$j]; //#2823 + var _Tl = $k[--$j]; //#2823 + var _Tm = ~~(_Tl.length / 2); //#2823 + var _To = $cvi($geti(_Tl, _Tm, _Tm)); //#2824 + $k[$j++] = _Tk; //#2824 + $k[$j++] = _To; //#2824 + if (_To == 0) { //#2824 + $j -= 3; //#2824 + $k[$j++] = 'bwipp.GS1badPieceTotal#2824'; //#2824 + $k[$j++] = "Invalid total number"; //#2824 + $k[$j++] = false; //#2824 + return true; //#2824 + } //#2824 + var _Tp = $k[--$j]; //#2825 + if ($gt($k[--$j], _Tp)) { //#2825 + $j--; //#2825 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2825'; //#2825 + $k[$j++] = "Piece number exceeds total"; //#2825 + $k[$j++] = false; //#2825 + return true; //#2825 + } //#2825 + }; //#2825 + $_.lintpcenc = function() { + for (;;) { //#2839 + $search($k[--$j], "%"); //#2830 + if ($nt($k[--$j])) { //#2830 + $j--; //#2830 + break; //#2830 + } //#2830 + $j -= 2; //#2831 + var _Tt = $k[--$j]; //#2831 + $k[$j++] = _Tt; //#2831 + if (_Tt.length < 2) { //#2831 + $j -= 2; //#2831 + $k[$j++] = 'bwipp.GS1badPercentEscape#2831'; //#2831 + $k[$j++] = "Invalid % escape"; //#2831 + $k[$j++] = false; //#2831 + break; //#2831 + } //#2831 + var _Tu = $k[--$j]; //#2832 + var _Tv = $geti(_Tu, 0, 2); //#2832 + $k[$j++] = _Tu; //#2837 + $k[$j++] = true; //#2837 + for (var _Tw = 0, _Tx = _Tv.length; _Tw < _Tx; _Tw++) { //#2837 + var _Tz = $s(1); //#2833 + $put(_Tz, 0, $get(_Tv, _Tw)); //#2833 + $search("0123456789ABCDEFabcdef", _Tz); //#2835 + if ($nt($k[--$j])) { //#2835 + $j -= 2; //#2835 + $k[$j++] = false; //#2835 + break; //#2835 + } //#2835 + $j -= 3; //#2836 + } //#2836 + if ($nt($k[--$j])) { //#2838 + $j -= 2; //#2838 + $k[$j++] = 'bwipp.GS1badPercentChars#2838'; //#2838 + $k[$j++] = "Invalid characters for percent encoding"; //#2838 + $k[$j++] = false; //#2838 + break; //#2838 + } //#2838 + } //#2838 + }; //#2838 + $_.lintcouponcode = function() { + var _U2 = $k[--$j]; //#2843 + $k[$j++] = _U2; //#2845 + $k[$j++] = true; //#2845 + $forall(_U2, function() { //#2845 + var _U3 = $k[--$j]; //#2844 + if ((_U3 < 48) || (_U3 > 57)) { //#2844 + $j--; //#2844 + $k[$j++] = false; //#2844 + return true; //#2844 + } //#2844 + }); //#2844 + if ($nt($k[--$j])) { //#2846 + $j -= 2; //#2846 + $k[$j++] = 'bwipp.GS1couponNotNumeric#2846'; //#2846 + $k[$j++] = "Coupon not numeric"; //#2846 + $k[$j++] = false; //#2846 + return true; //#2846 + } //#2846 + var _U5 = $k[--$j]; //#2849 + $k[$j++] = _U5; //#2851 + if (_U5.length < 1) { //#2851 + $j -= 2; //#2850 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2850'; //#2850 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2850 + $k[$j++] = false; //#2850 + return true; //#2850 + } //#2850 + var _U6 = $k[--$j]; //#2852 + var _U8 = $cvi($geti(_U6, 0, 1)); //#2852 + $k[$j++] = _U6; //#2854 + $k[$j++] = _U8; //#2854 + if (_U8 > 6) { //#2854 + $j -= 2; //#2853 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2853'; //#2853 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2853 + $k[$j++] = false; //#2853 + return true; //#2853 + } //#2853 + var _U9 = $k[--$j]; //#2855 + var _UA = $k[--$j]; //#2856 + $k[$j++] = _UA; //#2858 + $k[$j++] = $f($f(_U9 + 6) + 1); //#2858 + if (($f($f(_U9 + 6) + 1)) > _UA.length) { //#2858 + $j -= 3; //#2857 + $k[$j++] = 'bwipp.GS1couponTooShortGCP#2857'; //#2857 + $k[$j++] = "Coupon too short: GCP truncated"; //#2857 + $k[$j++] = false; //#2857 + return true; //#2857 + } //#2857 + var _UB = $k[--$j]; //#2859 + var _UC = $k[--$j]; //#2859 + var _UD = $geti(_UC, _UB, $f(_UC.length - _UB)); //#2859 + $k[$j++] = _UD; //#2864 + if (_UD.length < 6) { //#2864 + $j -= 2; //#2863 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2863'; //#2863 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#2863 + $k[$j++] = false; //#2863 + return true; //#2863 + } //#2863 + var _UE = $k[--$j]; //#2865 + var _UF = $geti(_UE, 6, _UE.length - 6); //#2865 + $k[$j++] = _UF; //#2870 + if (_UF.length < 1) { //#2870 + $j -= 2; //#2869 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2869'; //#2869 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2869 + $k[$j++] = false; //#2869 + return true; //#2869 + } //#2869 + var _UG = $k[--$j]; //#2871 + var _UI = $cvi($geti(_UG, 0, 1)); //#2871 + $k[$j++] = _UG; //#2873 + $k[$j++] = _UI; //#2873 + if ((_UI < 1) || (_UI > 5)) { //#2873 + $j -= 2; //#2872 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2872'; //#2872 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2872 + $k[$j++] = false; //#2872 + return true; //#2872 + } //#2872 + var _UJ = $k[--$j]; //#2874 + var _UK = $k[--$j]; //#2875 + $k[$j++] = _UK; //#2877 + $k[$j++] = $f(_UJ + 1); //#2877 + if ($f(_UJ + 1) > _UK.length) { //#2877 + $j -= 3; //#2876 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2876'; //#2876 + $k[$j++] = "Coupon too short: Save Value truncated"; //#2876 + $k[$j++] = false; //#2876 + return true; //#2876 + } //#2876 + var _UL = $k[--$j]; //#2878 + var _UM = $k[--$j]; //#2878 + var _UN = $geti(_UM, _UL, $f(_UM.length - _UL)); //#2878 + $k[$j++] = _UN; //#2883 + if (_UN.length < 1) { //#2883 + $j -= 2; //#2882 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2882'; //#2882 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2882 + $k[$j++] = false; //#2882 + return true; //#2882 + } //#2882 + var _UO = $k[--$j]; //#2884 + var _UQ = $cvi($geti(_UO, 0, 1)); //#2884 + $k[$j++] = _UO; //#2886 + $k[$j++] = _UQ; //#2886 + if ((_UQ < 1) || (_UQ > 5)) { //#2886 + $j -= 2; //#2885 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2885'; //#2885 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2885 + $k[$j++] = false; //#2885 + return true; //#2885 + } //#2885 + var _UR = $k[--$j]; //#2887 + var _US = $k[--$j]; //#2888 + $k[$j++] = _US; //#2890 + $k[$j++] = $f(_UR + 1); //#2890 + if ($f(_UR + 1) > _US.length) { //#2890 + $j -= 3; //#2889 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2889'; //#2889 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2889 + $k[$j++] = false; //#2889 + return true; //#2889 + } //#2889 + var _UT = $k[--$j]; //#2891 + var _UU = $k[--$j]; //#2891 + var _UV = $geti(_UU, _UT, $f(_UU.length - _UT)); //#2891 + $k[$j++] = _UV; //#2896 + if (_UV.length < 1) { //#2896 + $j -= 2; //#2895 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2895'; //#2895 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2895 + $k[$j++] = false; //#2895 + return true; //#2895 + } //#2895 + var _UW = $k[--$j]; //#2897 + var _UY = $cvi($geti(_UW, 0, 1)); //#2897 + $k[$j++] = _UW; //#2899 + if ((_UY > 4) && (_UY != 9)) { //#2899 + $j -= 2; //#2898 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2898'; //#2898 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2898 + $k[$j++] = false; //#2898 + return true; //#2898 + } //#2898 + var _UZ = $k[--$j]; //#2900 + var _Ua = $geti(_UZ, 1, _UZ.length - 1); //#2900 + $k[$j++] = _Ua; //#2905 + if (_Ua.length < 3) { //#2905 + $j -= 2; //#2904 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2904'; //#2904 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2904 + $k[$j++] = false; //#2904 + return true; //#2904 + } //#2904 + var _Ub = $k[--$j]; //#2906 + var _Uc = $geti(_Ub, 3, _Ub.length - 3); //#2906 + $k[$j++] = _Uc; //#2962 + if (_Uc.length >= 1) { //#2962 + var _Ud = $k[--$j]; //#2909 + $k[$j++] = _Ud; //#2962 + if ($cvi($geti(_Ud, 0, 1)) == 1) { //#2962 + var _Uf = $k[--$j]; //#2910 + var _Ug = $geti(_Uf, 1, _Uf.length - 1); //#2910 + $k[$j++] = _Ug; //#2915 + if (_Ug.length < 1) { //#2915 $j -= 2; //#2914 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2914'; //#2914 - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2914 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2914'; //#2914 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2914 $k[$j++] = false; //#2914 return true; //#2914 } //#2914 - var _Pg = $k[--$j]; //#2916 - var _Pi = $cvi($geti(_Pg, 0, 1)); //#2916 - $k[$j++] = _Pg; //#2918 - $k[$j++] = _Pi; //#2918 - if ((_Pi > 6) && (_Pi != 9)) { //#2918 + var _Uh = $k[--$j]; //#2916 + $k[$j++] = _Uh; //#2918 + if ($cvi($geti(_Uh, 0, 1)) > 3) { //#2918 $j -= 2; //#2917 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2917'; //#2917 - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2917 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2917'; //#2917 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2917 $k[$j++] = false; //#2917 return true; //#2917 } //#2917 - var _Pj = $k[--$j]; //#2919 - $k[$j++] = _Pj; //#2919 - if (_Pj != 9) { //#2919 - var _Pk = $k[--$j]; //#2919 - $k[$j++] = $f(_Pk + 6); //#2919 - } else { //#2919 - $j--; //#2919 - $k[$j++] = 0; //#2919 - } //#2919 - var _Pl = $k[--$j]; //#2919 - var _Pm = $k[--$j]; //#2920 - $k[$j++] = _Pm; //#2922 - $k[$j++] = $f(_Pl + 1); //#2922 - if ($f(_Pl + 1) > _Pm.length) { //#2922 - $j -= 3; //#2921 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2921'; //#2921 - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2921 - $k[$j++] = false; //#2921 - return true; //#2921 - } //#2921 - var _Pn = $k[--$j]; //#2923 - var _Po = $k[--$j]; //#2923 - $k[$j++] = $geti(_Po, _Pn, $f(_Po.length - _Pn)); //#2923 - } //#2923 - } //#2923 - var _Pq = $k[--$j]; //#2928 - $k[$j++] = _Pq; //#2972 - if (_Pq.length >= 1) { //#2972 - var _Pr = $k[--$j]; //#2928 - $k[$j++] = _Pr; //#2972 - if ($cvi($geti(_Pr, 0, 1)) == 2) { //#2972 - var _Pt = $k[--$j]; //#2929 - var _Pu = $geti(_Pt, 1, _Pt.length - 1); //#2929 - $k[$j++] = _Pu; //#2934 - if (_Pu.length < 1) { //#2934 - $j -= 2; //#2933 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2933'; //#2933 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2933 - $k[$j++] = false; //#2933 - return true; //#2933 - } //#2933 - var _Pv = $k[--$j]; //#2935 - var _Px = $cvi($geti(_Pv, 0, 1)); //#2935 - $k[$j++] = _Pv; //#2937 - $k[$j++] = _Px; //#2937 - if ((_Px < 1) || (_Px > 5)) { //#2937 + var _Uj = $k[--$j]; //#2919 + var _Uk = $geti(_Uj, 1, _Uj.length - 1); //#2919 + $k[$j++] = _Uk; //#2924 + if (_Uk.length < 1) { //#2924 + $j -= 2; //#2923 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2923'; //#2923 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2923 + $k[$j++] = false; //#2923 + return true; //#2923 + } //#2923 + var _Ul = $k[--$j]; //#2925 + var _Un = $cvi($geti(_Ul, 0, 1)); //#2925 + $k[$j++] = _Ul; //#2927 + $k[$j++] = _Un; //#2927 + if ((_Un < 1) || (_Un > 5)) { //#2927 + $j -= 2; //#2926 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2926'; //#2926 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2926 + $k[$j++] = false; //#2926 + return true; //#2926 + } //#2926 + var _Uo = $k[--$j]; //#2928 + var _Up = $k[--$j]; //#2929 + $k[$j++] = _Up; //#2931 + $k[$j++] = $f(_Uo + 1); //#2931 + if ($f(_Uo + 1) > _Up.length) { //#2931 + $j -= 3; //#2930 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2930'; //#2930 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2930 + $k[$j++] = false; //#2930 + return true; //#2930 + } //#2930 + var _Uq = $k[--$j]; //#2932 + var _Ur = $k[--$j]; //#2932 + var _Us = $geti(_Ur, _Uq, $f(_Ur.length - _Uq)); //#2932 + $k[$j++] = _Us; //#2937 + if (_Us.length < 1) { //#2937 $j -= 2; //#2936 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2936'; //#2936 - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2936 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2936'; //#2936 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2936 $k[$j++] = false; //#2936 return true; //#2936 } //#2936 - var _Py = $k[--$j]; //#2938 - var _Pz = $k[--$j]; //#2939 - $k[$j++] = _Pz; //#2941 - $k[$j++] = $f(_Py + 1); //#2941 - if ($f(_Py + 1) > _Pz.length) { //#2941 - $j -= 3; //#2940 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2940'; //#2940 - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2940 - $k[$j++] = false; //#2940 - return true; //#2940 - } //#2940 - var _Q0 = $k[--$j]; //#2942 - var _Q1 = $k[--$j]; //#2942 - var _Q2 = $geti(_Q1, _Q0, $f(_Q1.length - _Q0)); //#2942 - $k[$j++] = _Q2; //#2947 - if (_Q2.length < 1) { //#2947 - $j -= 2; //#2946 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2946'; //#2946 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2946 - $k[$j++] = false; //#2946 - return true; //#2946 - } //#2946 - var _Q3 = $k[--$j]; //#2948 - var _Q5 = $cvi($geti(_Q3, 0, 1)); //#2948 - $k[$j++] = _Q3; //#2950 - if ((_Q5 > 4) && (_Q5 != 9)) { //#2950 - $j -= 2; //#2949 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2949'; //#2949 - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2949 - $k[$j++] = false; //#2949 - return true; //#2949 - } //#2949 - var _Q6 = $k[--$j]; //#2951 - var _Q7 = $geti(_Q6, 1, _Q6.length - 1); //#2951 - $k[$j++] = _Q7; //#2956 - if (_Q7.length < 3) { //#2956 - $j -= 2; //#2955 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2955'; //#2955 - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2955 - $k[$j++] = false; //#2955 - return true; //#2955 - } //#2955 - var _Q8 = $k[--$j]; //#2957 - var _Q9 = $geti(_Q8, 3, _Q8.length - 3); //#2957 - $k[$j++] = _Q9; //#2962 - if (_Q9.length < 1) { //#2962 - $j -= 2; //#2961 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2961'; //#2961 - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2961 - $k[$j++] = false; //#2961 - return true; //#2961 - } //#2961 - var _QA = $k[--$j]; //#2963 - var _QC = $cvi($geti(_QA, 0, 1)); //#2963 - $k[$j++] = _QA; //#2965 - $k[$j++] = _QC; //#2965 - if ((_QC > 6) && (_QC != 9)) { //#2965 - $j -= 2; //#2964 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#2964'; //#2964 - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#2964 - $k[$j++] = false; //#2964 - return true; //#2964 - } //#2964 - var _QD = $k[--$j]; //#2966 - $k[$j++] = _QD; //#2966 - if (_QD != 9) { //#2966 - var _QE = $k[--$j]; //#2966 - $k[$j++] = $f(_QE + 6); //#2966 - } else { //#2966 - $j--; //#2966 - $k[$j++] = 0; //#2966 - } //#2966 - var _QF = $k[--$j]; //#2966 - var _QG = $k[--$j]; //#2967 - $k[$j++] = _QG; //#2969 - $k[$j++] = $f(_QF + 1); //#2969 - if ($f(_QF + 1) > _QG.length) { //#2969 - $j -= 3; //#2968 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#2968'; //#2968 - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#2968 - $k[$j++] = false; //#2968 - return true; //#2968 - } //#2968 - var _QH = $k[--$j]; //#2970 - var _QI = $k[--$j]; //#2970 - $k[$j++] = $geti(_QI, _QH, $f(_QI.length - _QH)); //#2970 - } //#2970 - } //#2970 - $_.couponexpire = -1; //#2975 - var _QK = $k[--$j]; //#2976 - $k[$j++] = _QK; //#2994 - if (_QK.length >= 1) { //#2994 - var _QL = $k[--$j]; //#2976 - $k[$j++] = _QL; //#2994 - if ($cvi($geti(_QL, 0, 1)) == 3) { //#2994 - var _QN = $k[--$j]; //#2977 - var _QO = $geti(_QN, 1, _QN.length - 1); //#2977 - $k[$j++] = _QO; //#2982 - if (_QO.length < 6) { //#2982 - $j -= 2; //#2981 - $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#2981'; //#2981 - $k[$j++] = "Coupon too short: Expiration date"; //#2981 - $k[$j++] = false; //#2981 - return true; //#2981 - } //#2981 - var _QP = $k[--$j]; //#2983 - var _QR = $cvi($geti(_QP, 2, 2)); //#2983 - $k[$j++] = _QP; //#2983 - if ((_QR < 1) || (_QR > 12)) { //#2983 + var _Ut = $k[--$j]; //#2938 + var _Uv = $cvi($geti(_Ut, 0, 1)); //#2938 + $k[$j++] = _Ut; //#2940 + if ((_Uv > 4) && (_Uv != 9)) { //#2940 + $j -= 2; //#2939 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2939'; //#2939 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2939 + $k[$j++] = false; //#2939 + return true; //#2939 + } //#2939 + var _Uw = $k[--$j]; //#2941 + var _Ux = $geti(_Uw, 1, _Uw.length - 1); //#2941 + $k[$j++] = _Ux; //#2946 + if (_Ux.length < 3) { //#2946 + $j -= 2; //#2945 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2945'; //#2945 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2945 + $k[$j++] = false; //#2945 + return true; //#2945 + } //#2945 + var _Uy = $k[--$j]; //#2947 + var _Uz = $geti(_Uy, 3, _Uy.length - 3); //#2947 + $k[$j++] = _Uz; //#2952 + if (_Uz.length < 1) { //#2952 + $j -= 2; //#2951 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2951'; //#2951 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2951 + $k[$j++] = false; //#2951 + return true; //#2951 + } //#2951 + var _V0 = $k[--$j]; //#2953 + var _V2 = $cvi($geti(_V0, 0, 1)); //#2953 + $k[$j++] = _V0; //#2955 + $k[$j++] = _V2; //#2955 + if ((_V2 > 6) && (_V2 != 9)) { //#2955 + $j -= 2; //#2954 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2954'; //#2954 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2954 + $k[$j++] = false; //#2954 + return true; //#2954 + } //#2954 + var _V3 = $k[--$j]; //#2956 + $k[$j++] = _V3; //#2956 + if (_V3 != 9) { //#2956 + var _V4 = $k[--$j]; //#2956 + $k[$j++] = $f(_V4 + 6); //#2956 + } else { //#2956 + $j--; //#2956 + $k[$j++] = 0; //#2956 + } //#2956 + var _V5 = $k[--$j]; //#2956 + var _V6 = $k[--$j]; //#2957 + $k[$j++] = _V6; //#2959 + $k[$j++] = $f(_V5 + 1); //#2959 + if ($f(_V5 + 1) > _V6.length) { //#2959 + $j -= 3; //#2958 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2958'; //#2958 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2958 + $k[$j++] = false; //#2958 + return true; //#2958 + } //#2958 + var _V7 = $k[--$j]; //#2960 + var _V8 = $k[--$j]; //#2960 + $k[$j++] = $geti(_V8, _V7, $f(_V8.length - _V7)); //#2960 + } //#2960 + } //#2960 + var _VA = $k[--$j]; //#2965 + $k[$j++] = _VA; //#3009 + if (_VA.length >= 1) { //#3009 + var _VB = $k[--$j]; //#2965 + $k[$j++] = _VB; //#3009 + if ($cvi($geti(_VB, 0, 1)) == 2) { //#3009 + var _VD = $k[--$j]; //#2966 + var _VE = $geti(_VD, 1, _VD.length - 1); //#2966 + $k[$j++] = _VE; //#2971 + if (_VE.length < 1) { //#2971 + $j -= 2; //#2970 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2970'; //#2970 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2970 + $k[$j++] = false; //#2970 + return true; //#2970 + } //#2970 + var _VF = $k[--$j]; //#2972 + var _VH = $cvi($geti(_VF, 0, 1)); //#2972 + $k[$j++] = _VF; //#2974 + $k[$j++] = _VH; //#2974 + if ((_VH < 1) || (_VH > 5)) { //#2974 + $j -= 2; //#2973 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2973'; //#2973 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2973 + $k[$j++] = false; //#2973 + return true; //#2973 + } //#2973 + var _VI = $k[--$j]; //#2975 + var _VJ = $k[--$j]; //#2976 + $k[$j++] = _VJ; //#2978 + $k[$j++] = $f(_VI + 1); //#2978 + if ($f(_VI + 1) > _VJ.length) { //#2978 + $j -= 3; //#2977 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2977'; //#2977 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2977 + $k[$j++] = false; //#2977 + return true; //#2977 + } //#2977 + var _VK = $k[--$j]; //#2979 + var _VL = $k[--$j]; //#2979 + var _VM = $geti(_VL, _VK, $f(_VL.length - _VK)); //#2979 + $k[$j++] = _VM; //#2984 + if (_VM.length < 1) { //#2984 $j -= 2; //#2983 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#2983'; //#2983 - $k[$j++] = "Invalid month in expiration date"; //#2983 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2983'; //#2983 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2983 $k[$j++] = false; //#2983 return true; //#2983 } //#2983 - var _QS = $k[--$j]; //#2984 - var _QU = $cvi($geti(_QS, 0, 2)); //#2984 - var _QV = _QU - 21; //#2985 - $k[$j++] = _QS; //#2985 - $k[$j++] = _QU; //#2985 - $k[$j++] = _QV; //#2985 - if (_QV >= 51) { //#2985 - $j--; //#2985 - var _QW = $k[--$j]; //#2985 - $k[$j++] = $f(_QW + 1900); //#2985 - } else { //#2985 - if ($k[--$j] <= -50) { //#2985 - var _QY = $k[--$j]; //#2985 - $k[$j++] = $f(_QY + 2100); //#2985 - } else { //#2985 - var _QZ = $k[--$j]; //#2985 - $k[$j++] = $f(_QZ + 2000); //#2985 - } //#2985 - } //#2985 - var _Qa = $k[--$j]; //#2986 - $k[$j++] = ((_Qa % 400) == 0) || (((_Qa % 4) == 0) && ((_Qa % 100) != 0)); //#2987 - $k[$j++] = Infinity; //#2987 - var _Qb = $k[--$j]; //#2987 - var _Qd = $k[--$j] ? 29 : 28; //#2987 - $k[$j++] = _Qb; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = _Qd; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - var _Qe = $a(); //#2987 - var _Qf = $k[--$j]; //#2988 - var _Qj = $cvi($geti(_Qf, 4, 2)); //#2989 - $k[$j++] = _Qf; //#2990 - if (($get(_Qe, $cvi($geti(_Qf, 2, 2)) - 1) < _Qj) || (_Qj < 1)) { //#2990 - $j -= 2; //#2990 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#2990'; //#2990 - $k[$j++] = "Invalid day of month in expiration date"; //#2990 - $k[$j++] = false; //#2990 - return true; //#2990 - } //#2990 - var _Qk = $k[--$j]; //#2991 - $_.couponexpire = $cvi($geti(_Qk, 0, 6)); //#2991 - $k[$j++] = $geti(_Qk, 6, _Qk.length - 6); //#2992 - } //#2992 - } //#2992 - var _Qn = $k[--$j]; //#2997 - $k[$j++] = _Qn; //#3018 - if (_Qn.length >= 1) { //#3018 - var _Qo = $k[--$j]; //#2997 - $k[$j++] = _Qo; //#3018 - if ($cvi($geti(_Qo, 0, 1)) == 4) { //#3018 - var _Qq = $k[--$j]; //#2998 - var _Qr = $geti(_Qq, 1, _Qq.length - 1); //#2998 - $k[$j++] = _Qr; //#3003 - if (_Qr.length < 6) { //#3003 - $j -= 2; //#3002 - $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3002'; //#3002 - $k[$j++] = "Coupon too short: Start date"; //#3002 - $k[$j++] = false; //#3002 - return true; //#3002 - } //#3002 - var _Qs = $k[--$j]; //#3004 - var _Qu = $cvi($geti(_Qs, 2, 2)); //#3004 - $k[$j++] = _Qs; //#3004 - if ((_Qu < 1) || (_Qu > 12)) { //#3004 - $j -= 2; //#3004 - $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3004'; //#3004 - $k[$j++] = "Invalid month in start date"; //#3004 - $k[$j++] = false; //#3004 - return true; //#3004 - } //#3004 - var _Qv = $k[--$j]; //#3005 - var _Qx = $cvi($geti(_Qv, 0, 2)); //#3005 - var _Qy = _Qx - 21; //#3006 - $k[$j++] = _Qv; //#3006 - $k[$j++] = _Qx; //#3006 - $k[$j++] = _Qy; //#3006 - if (_Qy >= 51) { //#3006 - $j--; //#3006 - var _Qz = $k[--$j]; //#3006 - $k[$j++] = $f(_Qz + 1900); //#3006 - } else { //#3006 - if ($k[--$j] <= -50) { //#3006 - var _R1 = $k[--$j]; //#3006 - $k[$j++] = $f(_R1 + 2100); //#3006 - } else { //#3006 - var _R2 = $k[--$j]; //#3006 - $k[$j++] = $f(_R2 + 2000); //#3006 - } //#3006 - } //#3006 - var _R3 = $k[--$j]; //#3007 - $k[$j++] = ((_R3 % 400) == 0) || (((_R3 % 4) == 0) && ((_R3 % 100) != 0)); //#3008 - $k[$j++] = Infinity; //#3008 - var _R4 = $k[--$j]; //#3008 - var _R6 = $k[--$j] ? 29 : 28; //#3008 - $k[$j++] = _R4; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = _R6; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - var _R7 = $a(); //#3008 - var _R8 = $k[--$j]; //#3009 - var _RC = $cvi($geti(_R8, 4, 2)); //#3010 - $k[$j++] = _R8; //#3011 - if (($get(_R7, $cvi($geti(_R8, 2, 2)) - 1) < _RC) || (_RC < 1)) { //#3011 - $j -= 2; //#3011 - $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3011'; //#3011 - $k[$j++] = "Invalid day of month in start date"; //#3011 - $k[$j++] = false; //#3011 - return true; //#3011 - } //#3011 - var _RD = $k[--$j]; //#3012 - $_.couponstart = $cvi($geti(_RD, 0, 6)); //#3012 - $k[$j++] = _RD; //#3015 - if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3015 - $j -= 2; //#3014 - $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3014'; //#3014 - $k[$j++] = "Coupon expires before it starts"; //#3014 - $k[$j++] = false; //#3014 - return true; //#3014 - } //#3014 - var _RI = $k[--$j]; //#3016 - $k[$j++] = $geti(_RI, 6, _RI.length - 6); //#3016 - } //#3016 - } //#3016 - var _RK = $k[--$j]; //#3021 - $k[$j++] = _RK; //#3034 - if (_RK.length >= 1) { //#3034 - var _RL = $k[--$j]; //#3021 - $k[$j++] = _RL; //#3034 - if ($cvi($geti(_RL, 0, 1)) == 5) { //#3034 - var _RN = $k[--$j]; //#3022 - var _RO = $geti(_RN, 1, _RN.length - 1); //#3022 - $k[$j++] = _RO; //#3027 - if (_RO.length < 1) { //#3027 - $j -= 2; //#3026 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3026'; //#3026 - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3026 - $k[$j++] = false; //#3026 - return true; //#3026 - } //#3026 - var _RP = $k[--$j]; //#3028 - var _RQ = $geti(_RP, 0, 1); //#3028 - $k[$j++] = _RP; //#3031 - $k[$j++] = ($cvi(_RQ) + 6) + 1; //#3031 - if ((($cvi(_RQ) + 6) + 1) > _RP.length) { //#3031 - $j -= 3; //#3030 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3030'; //#3030 - $k[$j++] = "Coupon too short: Serial Number truncated"; //#3030 - $k[$j++] = false; //#3030 - return true; //#3030 - } //#3030 - var _RR = $k[--$j]; //#3032 - var _RS = $k[--$j]; //#3032 - $k[$j++] = $geti(_RS, _RR, $f(_RS.length - _RR)); //#3032 - } //#3032 - } //#3032 - var _RU = $k[--$j]; //#3037 - $k[$j++] = _RU; //#3053 - if (_RU.length >= 1) { //#3053 - var _RV = $k[--$j]; //#3037 - $k[$j++] = _RV; //#3053 - if ($cvi($geti(_RV, 0, 1)) == 6) { //#3053 - var _RX = $k[--$j]; //#3038 - var _RY = $geti(_RX, 1, _RX.length - 1); //#3038 - $k[$j++] = _RY; //#3043 - if (_RY.length < 1) { //#3043 - $j -= 2; //#3042 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3042'; //#3042 - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3042 - $k[$j++] = false; //#3042 - return true; //#3042 - } //#3042 - var _RZ = $k[--$j]; //#3044 - var _Rb = $cvi($geti(_RZ, 0, 1)); //#3044 - $k[$j++] = _RZ; //#3046 - $k[$j++] = _Rb; //#3046 - if ((_Rb < 1) || (_Rb > 7)) { //#3046 - $j -= 2; //#3045 - $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3045'; //#3045 - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3045 - $k[$j++] = false; //#3045 - return true; //#3045 - } //#3045 - var _Rc = $k[--$j]; //#3047 - var _Rd = $k[--$j]; //#3048 - $k[$j++] = _Rd; //#3050 - $k[$j++] = $f($f(_Rc + 6) + 1); //#3050 - if (($f($f(_Rc + 6) + 1)) > _Rd.length) { //#3050 - $j -= 3; //#3049 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3049'; //#3049 - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3049 - $k[$j++] = false; //#3049 - return true; //#3049 - } //#3049 - var _Re = $k[--$j]; //#3051 - var _Rf = $k[--$j]; //#3051 - $k[$j++] = $geti(_Rf, _Re, $f(_Rf.length - _Re)); //#3051 - } //#3051 - } //#3051 - var _Rh = $k[--$j]; //#3056 - $k[$j++] = _Rh; //#3092 - if (_Rh.length >= 1) { //#3092 - var _Ri = $k[--$j]; //#3056 - $k[$j++] = _Ri; //#3092 - if ($cvi($geti(_Ri, 0, 1)) == 9) { //#3092 - var _Rk = $k[--$j]; //#3057 - var _Rl = $geti(_Rk, 1, _Rk.length - 1); //#3057 - $k[$j++] = _Rl; //#3062 - if (_Rl.length < 1) { //#3062 - $j -= 2; //#3061 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3061'; //#3061 - $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3061 - $k[$j++] = false; //#3061 - return true; //#3061 - } //#3061 - var _Rm = $k[--$j]; //#3063 - var _Ro = $cvi($geti(_Rm, 0, 1)); //#3063 - $k[$j++] = _Rm; //#3065 - if ((_Ro > 6) || ((_Ro == 3) || (_Ro == 4))) { //#3065 - $j -= 2; //#3064 - $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3064'; //#3064 - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3064 - $k[$j++] = false; //#3064 - return true; //#3064 - } //#3064 - var _Rp = $k[--$j]; //#3066 - var _Rq = $geti(_Rp, 1, _Rp.length - 1); //#3066 - $k[$j++] = _Rq; //#3071 - if (_Rq.length < 1) { //#3071 - $j -= 2; //#3070 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3070'; //#3070 - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3070 - $k[$j++] = false; //#3070 - return true; //#3070 - } //#3070 - var _Rr = $k[--$j]; //#3072 - $k[$j++] = _Rr; //#3074 - if ($cvi($geti(_Rr, 0, 1)) > 2) { //#3074 - $j -= 2; //#3073 - $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3073'; //#3073 - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3073 - $k[$j++] = false; //#3073 - return true; //#3073 - } //#3073 - var _Rt = $k[--$j]; //#3075 - var _Ru = $geti(_Rt, 1, _Rt.length - 1); //#3075 - $k[$j++] = _Ru; //#3080 - if (_Ru.length < 1) { //#3080 + var _VN = $k[--$j]; //#2985 + var _VP = $cvi($geti(_VN, 0, 1)); //#2985 + $k[$j++] = _VN; //#2987 + if ((_VP > 4) && (_VP != 9)) { //#2987 + $j -= 2; //#2986 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2986'; //#2986 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2986 + $k[$j++] = false; //#2986 + return true; //#2986 + } //#2986 + var _VQ = $k[--$j]; //#2988 + var _VR = $geti(_VQ, 1, _VQ.length - 1); //#2988 + $k[$j++] = _VR; //#2993 + if (_VR.length < 3) { //#2993 + $j -= 2; //#2992 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2992'; //#2992 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2992 + $k[$j++] = false; //#2992 + return true; //#2992 + } //#2992 + var _VS = $k[--$j]; //#2994 + var _VT = $geti(_VS, 3, _VS.length - 3); //#2994 + $k[$j++] = _VT; //#2999 + if (_VT.length < 1) { //#2999 + $j -= 2; //#2998 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2998'; //#2998 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2998 + $k[$j++] = false; //#2998 + return true; //#2998 + } //#2998 + var _VU = $k[--$j]; //#3000 + var _VW = $cvi($geti(_VU, 0, 1)); //#3000 + $k[$j++] = _VU; //#3002 + $k[$j++] = _VW; //#3002 + if ((_VW > 6) && (_VW != 9)) { //#3002 + $j -= 2; //#3001 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#3001'; //#3001 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#3001 + $k[$j++] = false; //#3001 + return true; //#3001 + } //#3001 + var _VX = $k[--$j]; //#3003 + $k[$j++] = _VX; //#3003 + if (_VX != 9) { //#3003 + var _VY = $k[--$j]; //#3003 + $k[$j++] = $f(_VY + 6); //#3003 + } else { //#3003 + $j--; //#3003 + $k[$j++] = 0; //#3003 + } //#3003 + var _VZ = $k[--$j]; //#3003 + var _Va = $k[--$j]; //#3004 + $k[$j++] = _Va; //#3006 + $k[$j++] = $f(_VZ + 1); //#3006 + if ($f(_VZ + 1) > _Va.length) { //#3006 + $j -= 3; //#3005 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#3005'; //#3005 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#3005 + $k[$j++] = false; //#3005 + return true; //#3005 + } //#3005 + var _Vb = $k[--$j]; //#3007 + var _Vc = $k[--$j]; //#3007 + $k[$j++] = $geti(_Vc, _Vb, $f(_Vc.length - _Vb)); //#3007 + } //#3007 + } //#3007 + $_.couponexpire = -1; //#3012 + var _Ve = $k[--$j]; //#3013 + $k[$j++] = _Ve; //#3031 + if (_Ve.length >= 1) { //#3031 + var _Vf = $k[--$j]; //#3013 + $k[$j++] = _Vf; //#3031 + if ($cvi($geti(_Vf, 0, 1)) == 3) { //#3031 + var _Vh = $k[--$j]; //#3014 + var _Vi = $geti(_Vh, 1, _Vh.length - 1); //#3014 + $k[$j++] = _Vi; //#3019 + if (_Vi.length < 6) { //#3019 + $j -= 2; //#3018 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#3018'; //#3018 + $k[$j++] = "Coupon too short: Expiration date"; //#3018 + $k[$j++] = false; //#3018 + return true; //#3018 + } //#3018 + var _Vj = $k[--$j]; //#3020 + var _Vl = $cvi($geti(_Vj, 2, 2)); //#3020 + $k[$j++] = _Vj; //#3020 + if ((_Vl < 1) || (_Vl > 12)) { //#3020 + $j -= 2; //#3020 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#3020'; //#3020 + $k[$j++] = "Invalid month in expiration date"; //#3020 + $k[$j++] = false; //#3020 + return true; //#3020 + } //#3020 + var _Vm = $k[--$j]; //#3021 + var _Vo = $cvi($geti(_Vm, 0, 2)); //#3021 + var _Vp = _Vo - 21; //#3022 + $k[$j++] = _Vm; //#3022 + $k[$j++] = _Vo; //#3022 + $k[$j++] = _Vp; //#3022 + if (_Vp >= 51) { //#3022 + $j--; //#3022 + var _Vq = $k[--$j]; //#3022 + $k[$j++] = $f(_Vq + 1900); //#3022 + } else { //#3022 + if ($k[--$j] <= -50) { //#3022 + var _Vs = $k[--$j]; //#3022 + $k[$j++] = $f(_Vs + 2100); //#3022 + } else { //#3022 + var _Vt = $k[--$j]; //#3022 + $k[$j++] = $f(_Vt + 2000); //#3022 + } //#3022 + } //#3022 + var _Vu = $k[--$j]; //#3023 + $k[$j++] = ((_Vu % 400) == 0) || (((_Vu % 4) == 0) && ((_Vu % 100) != 0)); //#3024 + $k[$j++] = Infinity; //#3024 + var _Vv = $k[--$j]; //#3024 + var _Vx = $k[--$j] ? 29 : 28; //#3024 + $k[$j++] = _Vv; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = _Vx; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + var _Vy = $a(); //#3024 + var _Vz = $k[--$j]; //#3025 + var _W3 = $cvi($geti(_Vz, 4, 2)); //#3026 + $k[$j++] = _Vz; //#3027 + if (($get(_Vy, $cvi($geti(_Vz, 2, 2)) - 1) < _W3) || (_W3 < 1)) { //#3027 + $j -= 2; //#3027 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#3027'; //#3027 + $k[$j++] = "Invalid day of month in expiration date"; //#3027 + $k[$j++] = false; //#3027 + return true; //#3027 + } //#3027 + var _W4 = $k[--$j]; //#3028 + $_.couponexpire = $cvi($geti(_W4, 0, 6)); //#3028 + $k[$j++] = $geti(_W4, 6, _W4.length - 6); //#3029 + } //#3029 + } //#3029 + var _W7 = $k[--$j]; //#3034 + $k[$j++] = _W7; //#3055 + if (_W7.length >= 1) { //#3055 + var _W8 = $k[--$j]; //#3034 + $k[$j++] = _W8; //#3055 + if ($cvi($geti(_W8, 0, 1)) == 4) { //#3055 + var _WA = $k[--$j]; //#3035 + var _WB = $geti(_WA, 1, _WA.length - 1); //#3035 + $k[$j++] = _WB; //#3040 + if (_WB.length < 6) { //#3040 + $j -= 2; //#3039 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3039'; //#3039 + $k[$j++] = "Coupon too short: Start date"; //#3039 + $k[$j++] = false; //#3039 + return true; //#3039 + } //#3039 + var _WC = $k[--$j]; //#3041 + var _WE = $cvi($geti(_WC, 2, 2)); //#3041 + $k[$j++] = _WC; //#3041 + if ((_WE < 1) || (_WE > 12)) { //#3041 + $j -= 2; //#3041 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3041'; //#3041 + $k[$j++] = "Invalid month in start date"; //#3041 + $k[$j++] = false; //#3041 + return true; //#3041 + } //#3041 + var _WF = $k[--$j]; //#3042 + var _WH = $cvi($geti(_WF, 0, 2)); //#3042 + var _WI = _WH - 21; //#3043 + $k[$j++] = _WF; //#3043 + $k[$j++] = _WH; //#3043 + $k[$j++] = _WI; //#3043 + if (_WI >= 51) { //#3043 + $j--; //#3043 + var _WJ = $k[--$j]; //#3043 + $k[$j++] = $f(_WJ + 1900); //#3043 + } else { //#3043 + if ($k[--$j] <= -50) { //#3043 + var _WL = $k[--$j]; //#3043 + $k[$j++] = $f(_WL + 2100); //#3043 + } else { //#3043 + var _WM = $k[--$j]; //#3043 + $k[$j++] = $f(_WM + 2000); //#3043 + } //#3043 + } //#3043 + var _WN = $k[--$j]; //#3044 + $k[$j++] = ((_WN % 400) == 0) || (((_WN % 4) == 0) && ((_WN % 100) != 0)); //#3045 + $k[$j++] = Infinity; //#3045 + var _WO = $k[--$j]; //#3045 + var _WQ = $k[--$j] ? 29 : 28; //#3045 + $k[$j++] = _WO; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = _WQ; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + var _WR = $a(); //#3045 + var _WS = $k[--$j]; //#3046 + var _WW = $cvi($geti(_WS, 4, 2)); //#3047 + $k[$j++] = _WS; //#3048 + if (($get(_WR, $cvi($geti(_WS, 2, 2)) - 1) < _WW) || (_WW < 1)) { //#3048 + $j -= 2; //#3048 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3048'; //#3048 + $k[$j++] = "Invalid day of month in start date"; //#3048 + $k[$j++] = false; //#3048 + return true; //#3048 + } //#3048 + var _WX = $k[--$j]; //#3049 + $_.couponstart = $cvi($geti(_WX, 0, 6)); //#3049 + $k[$j++] = _WX; //#3052 + if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3052 + $j -= 2; //#3051 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3051'; //#3051 + $k[$j++] = "Coupon expires before it starts"; //#3051 + $k[$j++] = false; //#3051 + return true; //#3051 + } //#3051 + var _Wc = $k[--$j]; //#3053 + $k[$j++] = $geti(_Wc, 6, _Wc.length - 6); //#3053 + } //#3053 + } //#3053 + var _We = $k[--$j]; //#3058 + $k[$j++] = _We; //#3071 + if (_We.length >= 1) { //#3071 + var _Wf = $k[--$j]; //#3058 + $k[$j++] = _Wf; //#3071 + if ($cvi($geti(_Wf, 0, 1)) == 5) { //#3071 + var _Wh = $k[--$j]; //#3059 + var _Wi = $geti(_Wh, 1, _Wh.length - 1); //#3059 + $k[$j++] = _Wi; //#3064 + if (_Wi.length < 1) { //#3064 + $j -= 2; //#3063 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3063'; //#3063 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3063 + $k[$j++] = false; //#3063 + return true; //#3063 + } //#3063 + var _Wj = $k[--$j]; //#3065 + var _Wk = $geti(_Wj, 0, 1); //#3065 + $k[$j++] = _Wj; //#3068 + $k[$j++] = ($cvi(_Wk) + 6) + 1; //#3068 + if ((($cvi(_Wk) + 6) + 1) > _Wj.length) { //#3068 + $j -= 3; //#3067 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3067'; //#3067 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#3067 + $k[$j++] = false; //#3067 + return true; //#3067 + } //#3067 + var _Wl = $k[--$j]; //#3069 + var _Wm = $k[--$j]; //#3069 + $k[$j++] = $geti(_Wm, _Wl, $f(_Wm.length - _Wl)); //#3069 + } //#3069 + } //#3069 + var _Wo = $k[--$j]; //#3074 + $k[$j++] = _Wo; //#3090 + if (_Wo.length >= 1) { //#3090 + var _Wp = $k[--$j]; //#3074 + $k[$j++] = _Wp; //#3090 + if ($cvi($geti(_Wp, 0, 1)) == 6) { //#3090 + var _Wr = $k[--$j]; //#3075 + var _Ws = $geti(_Wr, 1, _Wr.length - 1); //#3075 + $k[$j++] = _Ws; //#3080 + if (_Ws.length < 1) { //#3080 $j -= 2; //#3079 - $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3079'; //#3079 - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3079 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3079'; //#3079 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3079 $k[$j++] = false; //#3079 return true; //#3079 } //#3079 - var _Rv = $k[--$j]; //#3081 - var _Rw = $geti(_Rv, 1, _Rv.length - 1); //#3081 - $k[$j++] = _Rw; //#3086 - if (_Rw.length < 1) { //#3086 - $j -= 2; //#3085 - $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3085'; //#3085 - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3085 - $k[$j++] = false; //#3085 - return true; //#3085 - } //#3085 - var _Rx = $k[--$j]; //#3087 - $k[$j++] = _Rx; //#3089 - if ($cvi($geti(_Rx, 0, 1)) > 1) { //#3089 - $j -= 2; //#3088 - $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3088'; //#3088 - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3088 - $k[$j++] = false; //#3088 - return true; //#3088 - } //#3088 - var _Rz = $k[--$j]; //#3090 - $k[$j++] = $geti(_Rz, 1, _Rz.length - 1); //#3090 - } //#3090 - } //#3090 - var _S1 = $k[--$j]; //#3094 - $k[$j++] = _S1; //#3096 - if (_S1.length != 0) { //#3096 - $j -= 2; //#3095 - $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3095'; //#3095 - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3095 - $k[$j++] = false; //#3095 - return true; //#3095 - } //#3095 - $j--; //#3097 - }; //#3097 - $_.lintcouponposoffer = function() { - var _S2 = $k[--$j]; //#3101 - $k[$j++] = _S2; //#3103 - $k[$j++] = true; //#3103 - $forall(_S2, function() { //#3103 - var _S3 = $k[--$j]; //#3102 - if ((_S3 < 48) || (_S3 > 57)) { //#3102 - $j--; //#3102 - $k[$j++] = false; //#3102 - return true; //#3102 - } //#3102 - }); //#3102 - if ($nt($k[--$j])) { //#3104 - $j -= 2; //#3104 - $k[$j++] = 'bwipp.GS1couponNotNumeric#3104'; //#3104 - $k[$j++] = "Coupon not numeric"; //#3104 - $k[$j++] = false; //#3104 - return true; //#3104 - } //#3104 - var _S5 = $k[--$j]; //#3106 - $k[$j++] = _S5; //#3108 - if (_S5.length < 1) { //#3108 - $j -= 2; //#3107 - $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3107'; //#3107 - $k[$j++] = "Coupon too short: Missing Format Code"; //#3107 - $k[$j++] = false; //#3107 - return true; //#3107 - } //#3107 - var _S6 = $k[--$j]; //#3109 - var _S7 = $geti(_S6, 0, 1); //#3109 - $k[$j++] = _S6; //#3111 - if ($ne(_S7, "0") && $ne(_S7, "1")) { //#3111 - $j -= 2; //#3110 - $k[$j++] = 'bwipp.GS1couponBadFormatCode#3110'; //#3110 - $k[$j++] = "Coupon format must be 0 or 1"; //#3110 - $k[$j++] = false; //#3110 - return true; //#3110 - } //#3110 - var _S8 = $k[--$j]; //#3112 - var _S9 = $geti(_S8, 1, _S8.length - 1); //#3112 - $k[$j++] = _S9; //#3116 - if (_S9.length < 1) { //#3116 - $j -= 2; //#3115 - $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3115'; //#3115 - $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3115 - $k[$j++] = false; //#3115 - return true; //#3115 - } //#3115 - var _SA = $k[--$j]; //#3117 - var _SC = $cvi($geti(_SA, 0, 1)); //#3117 - $k[$j++] = _SA; //#3119 - $k[$j++] = _SC; //#3119 - if (_SC > 6) { //#3119 - $j -= 3; //#3118 - $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3118'; //#3118 - $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3118 - $k[$j++] = false; //#3118 - return true; //#3118 - } //#3118 - var _SD = $k[--$j]; //#3120 - var _SE = $k[--$j]; //#3121 - $k[$j++] = _SE; //#3123 - $k[$j++] = $f($f(_SD + 6) + 1); //#3123 - if (($f($f(_SD + 6) + 1)) > _SE.length) { //#3123 - $j -= 3; //#3122 - $k[$j++] = 'bwipp.GS1couponTooShortFunder#3122'; //#3122 - $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3122 - $k[$j++] = false; //#3122 - return true; //#3122 - } //#3122 - var _SF = $k[--$j]; //#3124 - var _SG = $k[--$j]; //#3124 - var _SH = $geti(_SG, _SF, $f(_SG.length - _SF)); //#3124 - $k[$j++] = _SH; //#3128 - if (_SH.length < 6) { //#3128 - $j -= 2; //#3127 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3127'; //#3127 - $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3127 - $k[$j++] = false; //#3127 - return true; //#3127 + var _Wt = $k[--$j]; //#3081 + var _Wv = $cvi($geti(_Wt, 0, 1)); //#3081 + $k[$j++] = _Wt; //#3083 + $k[$j++] = _Wv; //#3083 + if ((_Wv < 1) || (_Wv > 7)) { //#3083 + $j -= 2; //#3082 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3082'; //#3082 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3082 + $k[$j++] = false; //#3082 + return true; //#3082 + } //#3082 + var _Ww = $k[--$j]; //#3084 + var _Wx = $k[--$j]; //#3085 + $k[$j++] = _Wx; //#3087 + $k[$j++] = $f($f(_Ww + 6) + 1); //#3087 + if (($f($f(_Ww + 6) + 1)) > _Wx.length) { //#3087 + $j -= 3; //#3086 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3086'; //#3086 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3086 + $k[$j++] = false; //#3086 + return true; //#3086 + } //#3086 + var _Wy = $k[--$j]; //#3088 + var _Wz = $k[--$j]; //#3088 + $k[$j++] = $geti(_Wz, _Wy, $f(_Wz.length - _Wy)); //#3088 + } //#3088 + } //#3088 + var _X1 = $k[--$j]; //#3093 + $k[$j++] = _X1; //#3129 + if (_X1.length >= 1) { //#3129 + var _X2 = $k[--$j]; //#3093 + $k[$j++] = _X2; //#3129 + if ($cvi($geti(_X2, 0, 1)) == 9) { //#3129 + var _X4 = $k[--$j]; //#3094 + var _X5 = $geti(_X4, 1, _X4.length - 1); //#3094 + $k[$j++] = _X5; //#3099 + if (_X5.length < 1) { //#3099 + $j -= 2; //#3098 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3098'; //#3098 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3098 + $k[$j++] = false; //#3098 + return true; //#3098 + } //#3098 + var _X6 = $k[--$j]; //#3100 + var _X8 = $cvi($geti(_X6, 0, 1)); //#3100 + $k[$j++] = _X6; //#3102 + if ((_X8 > 6) || ((_X8 == 3) || (_X8 == 4))) { //#3102 + $j -= 2; //#3101 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3101'; //#3101 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3101 + $k[$j++] = false; //#3101 + return true; //#3101 + } //#3101 + var _X9 = $k[--$j]; //#3103 + var _XA = $geti(_X9, 1, _X9.length - 1); //#3103 + $k[$j++] = _XA; //#3108 + if (_XA.length < 1) { //#3108 + $j -= 2; //#3107 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3107'; //#3107 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3107 + $k[$j++] = false; //#3107 + return true; //#3107 + } //#3107 + var _XB = $k[--$j]; //#3109 + $k[$j++] = _XB; //#3111 + if ($cvi($geti(_XB, 0, 1)) > 2) { //#3111 + $j -= 2; //#3110 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3110'; //#3110 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3110 + $k[$j++] = false; //#3110 + return true; //#3110 + } //#3110 + var _XD = $k[--$j]; //#3112 + var _XE = $geti(_XD, 1, _XD.length - 1); //#3112 + $k[$j++] = _XE; //#3117 + if (_XE.length < 1) { //#3117 + $j -= 2; //#3116 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3116'; //#3116 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3116 + $k[$j++] = false; //#3116 + return true; //#3116 + } //#3116 + var _XF = $k[--$j]; //#3118 + var _XG = $geti(_XF, 1, _XF.length - 1); //#3118 + $k[$j++] = _XG; //#3123 + if (_XG.length < 1) { //#3123 + $j -= 2; //#3122 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3122'; //#3122 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3122 + $k[$j++] = false; //#3122 + return true; //#3122 + } //#3122 + var _XH = $k[--$j]; //#3124 + $k[$j++] = _XH; //#3126 + if ($cvi($geti(_XH, 0, 1)) > 1) { //#3126 + $j -= 2; //#3125 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3125'; //#3125 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3125 + $k[$j++] = false; //#3125 + return true; //#3125 + } //#3125 + var _XJ = $k[--$j]; //#3127 + $k[$j++] = $geti(_XJ, 1, _XJ.length - 1); //#3127 + } //#3127 } //#3127 - var _SI = $k[--$j]; //#3129 - var _SJ = $geti(_SI, 6, _SI.length - 6); //#3129 - $k[$j++] = _SJ; //#3133 - if (_SJ.length < 1) { //#3133 + var _XL = $k[--$j]; //#3131 + $k[$j++] = _XL; //#3133 + if (_XL.length != 0) { //#3133 $j -= 2; //#3132 - $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3132'; //#3132 - $k[$j++] = "Coupon too short: Missing SN VLI"; //#3132 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3132'; //#3132 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3132 $k[$j++] = false; //#3132 return true; //#3132 } //#3132 - var _SK = $k[--$j]; //#3134 - var _SL = $geti(_SK, 0, 1); //#3134 - $k[$j++] = _SK; //#3138 - $k[$j++] = ($cvi(_SL) + 6) + 1; //#3138 - if ((($cvi(_SL) + 6) + 1) > _SK.length) { //#3138 - $j -= 3; //#3137 - $k[$j++] = 'bwipp.GS1couponTooShortSn#3137'; //#3137 - $k[$j++] = "Coupon too short: Truncated SN"; //#3137 - $k[$j++] = false; //#3137 - return true; //#3137 - } //#3137 - var _SM = $k[--$j]; //#3139 - var _SN = $k[--$j]; //#3139 - var _SO = $geti(_SN, _SM, $f(_SN.length - _SM)); //#3139 - $k[$j++] = _SO; //#3142 - if (_SO.length != 0) { //#3142 + $j--; //#3134 + }; //#3134 + $_.lintcouponposoffer = function() { + var _XM = $k[--$j]; //#3138 + $k[$j++] = _XM; //#3140 + $k[$j++] = true; //#3140 + $forall(_XM, function() { //#3140 + var _XN = $k[--$j]; //#3139 + if ((_XN < 48) || (_XN > 57)) { //#3139 + $j--; //#3139 + $k[$j++] = false; //#3139 + return true; //#3139 + } //#3139 + }); //#3139 + if ($nt($k[--$j])) { //#3141 $j -= 2; //#3141 - $k[$j++] = 'bwipp.GS1couponTooLong#3141'; //#3141 - $k[$j++] = "Coupon too long"; //#3141 + $k[$j++] = 'bwipp.GS1couponNotNumeric#3141'; //#3141 + $k[$j++] = "Coupon not numeric"; //#3141 $k[$j++] = false; //#3141 return true; //#3141 } //#3141 - $j--; //#3143 - }; //#3143 - $_.lintlatlong = function() { - var _SP = $k[--$j]; //#3147 - $k[$j++] = _SP; //#3149 - if (_SP.length != 20) { //#3149 - $j--; //#3148 - $k[$j++] = 'bwipp.GS1badGeoLength#3148'; //#3148 - $k[$j++] = "Invalid length for a geo-location"; //#3148 - $k[$j++] = false; //#3148 - return true; //#3148 - } //#3148 - var _SQ = $k[--$j]; //#3150 - $k[$j++] = _SQ; //#3150 - if ($cvi($geti(_SQ, 0, 10)) > 1800000000) { //#3150 - $j--; //#3150 - $k[$j++] = 'bwipp.GS1badLatitude#3150'; //#3150 - $k[$j++] = "Invalid value for latitude"; //#3150 - $k[$j++] = false; //#3150 - return true; //#3150 - } //#3150 - var _SS = $k[--$j]; //#3151 - $k[$j++] = _SS; //#3151 - if ($cvi($geti(_SS, 10, 10)) > 3600000000) { //#3151 - $j--; //#3151 - $k[$j++] = 'bwipp.GS1badLongitude#3151'; //#3151 - $k[$j++] = "Invalid value for longitude"; //#3151 - $k[$j++] = false; //#3151 - return true; //#3151 - } //#3151 - $j--; //#3152 - }; //#3152 - if (!bwipp_gs1process.__3161__) { //#3161 - $_ = Object.create($_); //#3161 - $k[$j++] = Infinity; //#3160 - var _SU = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3159 - for (var _SV = 0, _SW = _SU.length; _SV < _SW; _SV++) { //#3160 - var _SX = $get(_SU, _SV); //#3160 - $k[$j++] = _SX; //#3160 - $k[$j++] = _SX; //#3160 - } //#3160 - $_.aidcmediatype = $d(); //#3160 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3160 - bwipp_gs1process.__3161__ = 1; //#3160 - $_ = Object.getPrototypeOf($_); //#3160 - } //#3160 - $_.lintmediatype = function() { - var _Sc = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3164 - if (!_Sc) { //#3164 - $j--; //#3164 - $k[$j++] = 'bwipp.GS1UnknownMediaType#3164'; //#3164 - $k[$j++] = "Unknown AIDC media type"; //#3164 + var _XP = $k[--$j]; //#3143 + $k[$j++] = _XP; //#3145 + if (_XP.length < 1) { //#3145 + $j -= 2; //#3144 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3144'; //#3144 + $k[$j++] = "Coupon too short: Missing Format Code"; //#3144 + $k[$j++] = false; //#3144 + return true; //#3144 + } //#3144 + var _XQ = $k[--$j]; //#3146 + var _XR = $geti(_XQ, 0, 1); //#3146 + $k[$j++] = _XQ; //#3148 + if ($ne(_XR, "0") && $ne(_XR, "1")) { //#3148 + $j -= 2; //#3147 + $k[$j++] = 'bwipp.GS1couponBadFormatCode#3147'; //#3147 + $k[$j++] = "Coupon format must be 0 or 1"; //#3147 + $k[$j++] = false; //#3147 + return true; //#3147 + } //#3147 + var _XS = $k[--$j]; //#3149 + var _XT = $geti(_XS, 1, _XS.length - 1); //#3149 + $k[$j++] = _XT; //#3153 + if (_XT.length < 1) { //#3153 + $j -= 2; //#3152 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3152'; //#3152 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3152 + $k[$j++] = false; //#3152 + return true; //#3152 + } //#3152 + var _XU = $k[--$j]; //#3154 + var _XW = $cvi($geti(_XU, 0, 1)); //#3154 + $k[$j++] = _XU; //#3156 + $k[$j++] = _XW; //#3156 + if (_XW > 6) { //#3156 + $j -= 3; //#3155 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3155'; //#3155 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3155 + $k[$j++] = false; //#3155 + return true; //#3155 + } //#3155 + var _XX = $k[--$j]; //#3157 + var _XY = $k[--$j]; //#3158 + $k[$j++] = _XY; //#3160 + $k[$j++] = $f($f(_XX + 6) + 1); //#3160 + if (($f($f(_XX + 6) + 1)) > _XY.length) { //#3160 + $j -= 3; //#3159 + $k[$j++] = 'bwipp.GS1couponTooShortFunder#3159'; //#3159 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3159 + $k[$j++] = false; //#3159 + return true; //#3159 + } //#3159 + var _XZ = $k[--$j]; //#3161 + var _Xa = $k[--$j]; //#3161 + var _Xb = $geti(_Xa, _XZ, $f(_Xa.length - _XZ)); //#3161 + $k[$j++] = _Xb; //#3165 + if (_Xb.length < 6) { //#3165 + $j -= 2; //#3164 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3164'; //#3164 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3164 $k[$j++] = false; //#3164 return true; //#3164 } //#3164 - }; //#3164 - if (!$_.dontlint) { //#3301 - $k[$j++] = true; //#3207 - for (var _Sg = 0, _Sf = $_.vals.length - 1; _Sg <= _Sf; _Sg += 1) { //#3207 - $_.ai = $get($_.ais, _Sg); //#3172 - $_.val = $get($_.vals, _Sg); //#3173 - var _Sn = $get($_.gs1syntax, $_.ai) !== undefined; //#3174 - if (_Sn) { //#3205 - var _Sr = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3175 - $k[$j++] = _Sr; //#3177 - $k[$j++] = 0; //#3177 - $forall(_Sr, function() { //#3177 - var _Ss = $k[--$j]; //#3177 - $k[$j++] = _Ss; //#3177 - if ($get(_Ss, 'opt')) { //#3177 - $j--; //#3177 - $k[$j++] = 0; //#3177 - } else { //#3177 - var _Sv = $get($k[--$j], 'min'); //#3177 - $k[$j++] = _Sv; //#3177 - } //#3177 - var _Sw = $k[--$j]; //#3177 - var _Sx = $k[--$j]; //#3177 - $k[$j++] = $f(_Sx + _Sw); //#3177 - }); //#3177 - if ($k[--$j] > $_.val.length) { //#3179 - $j--; //#3178 - $k[$j++] = 'bwipp.GS1valueTooShort#3178'; //#3178 - $k[$j++] = "Too short"; //#3178 - $k[$j++] = false; //#3178 - break; //#3178 - } //#3178 - var _T0 = $k[--$j]; //#3180 - $k[$j++] = _T0; //#3180 - $k[$j++] = 0; //#3180 - $forall(_T0, function() { //#3180 - var _T2 = $get($k[--$j], 'max'); //#3180 - var _T3 = $k[--$j]; //#3180 - $k[$j++] = $f(_T3 + _T2); //#3180 - }); //#3180 - if ($k[--$j] < $_.val.length) { //#3182 - $j--; //#3181 - $k[$j++] = 'bwipp.GS1valueTooLong#3181'; //#3181 - $k[$j++] = "Too long"; //#3181 - $k[$j++] = false; //#3181 - break; //#3181 - } //#3181 - $forall($k[--$j], function() { //#3199 - $_.props = $k[--$j]; //#3184 - var _T9 = $get($_.props, 'max'); //#3185 - var _TA = $_.val; //#3185 - var _TB = _TA.length; //#3185 - if (_T9 > _TA.length) { //#3185 - var _ = _TB; //#3185 - _TB = _T9; //#3185 - _T9 = _; //#3185 - } //#3185 - $_.eval = $geti($_.val, 0, _T9); //#3186 - var _TG = $_.eval.length; //#3187 - $_.val = $geti($_.val, _TG, $_.val.length - _TG); //#3187 - if ($_.eval.length == 0) { //#3197 - if ($nt($get($_.props, 'opt'))) { //#3191 - $j--; //#3190 - $k[$j++] = 'bwipp.GS1valueTooShort#3190'; //#3190 - $k[$j++] = "Too short"; //#3190 - $k[$j++] = false; //#3190 - return true; //#3190 - } //#3190 - } else { //#3197 - if ($_.eval.length < $get($_.props, 'min')) { //#3195 - $j--; //#3194 - $k[$j++] = 'bwipp.GS1valueTooShort#3194'; //#3194 - $k[$j++] = "Too short"; //#3194 - $k[$j++] = false; //#3194 - return true; //#3194 - } //#3194 - var _TP = new Map([ + var _Xc = $k[--$j]; //#3166 + var _Xd = $geti(_Xc, 6, _Xc.length - 6); //#3166 + $k[$j++] = _Xd; //#3170 + if (_Xd.length < 1) { //#3170 + $j -= 2; //#3169 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3169'; //#3169 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#3169 + $k[$j++] = false; //#3169 + return true; //#3169 + } //#3169 + var _Xe = $k[--$j]; //#3171 + var _Xf = $geti(_Xe, 0, 1); //#3171 + $k[$j++] = _Xe; //#3175 + $k[$j++] = ($cvi(_Xf) + 6) + 1; //#3175 + if ((($cvi(_Xf) + 6) + 1) > _Xe.length) { //#3175 + $j -= 3; //#3174 + $k[$j++] = 'bwipp.GS1couponTooShortSn#3174'; //#3174 + $k[$j++] = "Coupon too short: Truncated SN"; //#3174 + $k[$j++] = false; //#3174 + return true; //#3174 + } //#3174 + var _Xg = $k[--$j]; //#3176 + var _Xh = $k[--$j]; //#3176 + var _Xi = $geti(_Xh, _Xg, $f(_Xh.length - _Xg)); //#3176 + $k[$j++] = _Xi; //#3179 + if (_Xi.length != 0) { //#3179 + $j -= 2; //#3178 + $k[$j++] = 'bwipp.GS1couponTooLong#3178'; //#3178 + $k[$j++] = "Coupon too long"; //#3178 + $k[$j++] = false; //#3178 + return true; //#3178 + } //#3178 + $j--; //#3180 + }; //#3180 + $_.lintlatitude = function() { + var _Xj = $k[--$j]; //#3184 + $k[$j++] = _Xj; //#3186 + if (_Xj.length != 10) { //#3186 + $j--; //#3185 + $k[$j++] = 'bwipp.GS1badLatitudeLength#3185'; //#3185 + $k[$j++] = "Invalid length for a latitude"; //#3185 + $k[$j++] = false; //#3185 + return true; //#3185 + } //#3185 + if ($cvi($k[--$j]) > $cvi("1800000000")) { //#3189 + $j--; //#3189 + $k[$j++] = 'bwipp.GS1badLatitude#3189'; //#3189 + $k[$j++] = "Invalid value for latitude"; //#3189 + $k[$j++] = false; //#3189 + return true; //#3189 + } //#3189 + }; //#3189 + $_.lintlongitude = function() { + var _Xl = $k[--$j]; //#3193 + $k[$j++] = _Xl; //#3195 + if (_Xl.length != 10) { //#3195 + $j--; //#3194 + $k[$j++] = 'bwipp.GS1badLongitudeLength#3194'; //#3194 + $k[$j++] = "Invalid length for a longitude"; //#3194 + $k[$j++] = false; //#3194 + return true; //#3194 + } //#3194 + if ($cvi($k[--$j]) > $cvi("3600000000")) { //#3199 + $j--; //#3199 + $k[$j++] = 'bwipp.GS1badLongitude#3199'; //#3199 + $k[$j++] = "Invalid value for longitude"; //#3199 + $k[$j++] = false; //#3199 + return true; //#3199 + } //#3199 + }; //#3199 + if (!bwipp_gs1process.__3208__) { //#3208 + $_ = Object.create($_); //#3208 + $k[$j++] = Infinity; //#3203 + var _Xn = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3206 + for (var _Xo = 0, _Xp = _Xn.length; _Xo < _Xp; _Xo++) { //#3207 + var _Xq = $get(_Xn, _Xo); //#3207 + $k[$j++] = _Xq; //#3207 + $k[$j++] = _Xq; //#3207 + } //#3207 + $_.aidcmediatype = $d(); //#3207 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3207 + bwipp_gs1process.__3208__ = 1; //#3207 + $_ = Object.getPrototypeOf($_); //#3207 + } //#3207 + $_.lintmediatype = function() { + var _Xv = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3211 + if (!_Xv) { //#3211 + $j--; //#3211 + $k[$j++] = 'bwipp.GS1UnknownMediaType#3211'; //#3211 + $k[$j++] = "Unknown AIDC media type"; //#3211 + $k[$j++] = false; //#3211 + return true; //#3211 + } //#3211 + }; //#3211 + if (!$_.dontlint) { //#3352 + $k[$j++] = true; //#3255 + for (var _Xz = 0, _Xy = $_.vals.length - 1; _Xz <= _Xy; _Xz += 1) { //#3255 + $_.ai = $get($_.ais, _Xz); //#3219 + $_.val = $get($_.vals, _Xz); //#3220 + var _Y6 = $get($_.gs1syntax, $_.ai) !== undefined; //#3221 + if (_Y6) { //#3253 + var _YA = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3222 + $k[$j++] = _YA; //#3224 + $k[$j++] = 0; //#3224 + $forall(_YA, function() { //#3224 + var _YB = $k[--$j]; //#3224 + $k[$j++] = _YB; //#3224 + if ($get(_YB, 'opt')) { //#3224 + $j--; //#3224 + $k[$j++] = 0; //#3224 + } else { //#3224 + var _YE = $get($k[--$j], 'min'); //#3224 + $k[$j++] = _YE; //#3224 + } //#3224 + var _YF = $k[--$j]; //#3224 + var _YG = $k[--$j]; //#3224 + $k[$j++] = $f(_YG + _YF); //#3224 + }); //#3224 + if ($k[--$j] > $_.val.length) { //#3226 + $j--; //#3225 + $k[$j++] = 'bwipp.GS1valueTooShort#3225'; //#3225 + $k[$j++] = "Too short"; //#3225 + $k[$j++] = false; //#3225 + break; //#3225 + } //#3225 + var _YJ = $k[--$j]; //#3227 + $k[$j++] = _YJ; //#3227 + $k[$j++] = 0; //#3227 + $forall(_YJ, function() { //#3227 + var _YL = $get($k[--$j], 'max'); //#3227 + var _YM = $k[--$j]; //#3227 + $k[$j++] = $f(_YM + _YL); //#3227 + }); //#3227 + if ($k[--$j] < $_.val.length) { //#3229 + $j--; //#3228 + $k[$j++] = 'bwipp.GS1valueTooLong#3228'; //#3228 + $k[$j++] = "Too long"; //#3228 + $k[$j++] = false; //#3228 + break; //#3228 + } //#3228 + $forall($k[--$j], function() { //#3247 + $_.props = $k[--$j]; //#3231 + var _YS = $get($_.props, 'max'); //#3232 + var _YT = $_.val; //#3232 + var _YU = _YT.length; //#3232 + if (_YS > _YT.length) { //#3232 + var _ = _YU; //#3232 + _YU = _YS; //#3232 + _YS = _; //#3232 + } //#3232 + $_.eval = $geti($_.val, 0, _YS); //#3233 + var _YZ = $_.eval.length; //#3234 + $_.val = $geti($_.val, _YZ, $_.val.length - _YZ); //#3234 + if ($_.eval.length == 0) { //#3245 + if ($nt($get($_.props, 'opt'))) { //#3238 + $j--; //#3237 + $k[$j++] = 'bwipp.GS1valueTooShort#3237'; //#3237 + $k[$j++] = "Too short"; //#3237 + $k[$j++] = false; //#3237 + return true; //#3237 + } //#3237 + } else { //#3245 + if ($_.eval.length < $get($_.props, 'min')) { //#3242 + $j--; //#3241 + $k[$j++] = 'bwipp.GS1valueTooShort#3241'; //#3241 + $k[$j++] = "Too short"; //#3241 + $k[$j++] = false; //#3241 + return true; //#3241 + } //#3241 + var _Yi = new Map([ ["N", 'lintnumeric'], ["X", 'lintcset82'], - ["Y", 'lintcset39'] - ]); //#3196 - $k[$j++] = $_.eval; //#3196 - if ($_[$get(_TP, $get($_.props, 'cset'))]() === true) { + ["Y", 'lintcset39'], + ["Z", 'lintcset64'] + ]); //#3243 + $k[$j++] = $_.eval; //#3244 + if ($_[$get(_Yi, $get($_.props, 'cset'))]() === true) { return true; - } //#3196 - $forall($get($_.props, 'linters'), function() { //#3197 - var _TZ = $_[$k[--$j]]; //#3197 - $k[$j++] = $_.eval; //#3197 - if (_TZ() === true) { + } //#3244 + $forall($get($_.props, 'linters'), function() { //#3245 + var _Ys = $_[$k[--$j]]; //#3245 + $k[$j++] = $_.eval; //#3245 + if (_Ys() === true) { return true; - } //#3197 - }); //#3197 - } //#3197 - }); //#3197 - var _Ta = $k[--$j]; //#3200 - $k[$j++] = _Ta; //#3200 - if ($nt(_Ta)) { //#3200 - break; //#3200 - } //#3200 - if ($_.val.length != 0) { //#3203 - $j--; //#3202 - $k[$j++] = 'bwipp.GS1valueTooLong#3202'; //#3202 - $k[$j++] = "Too long"; //#3202 - $k[$j++] = false; //#3202 - break; //#3202 - } //#3202 - } else { //#3205 - $j--; //#3205 - $k[$j++] = 'bwipp.GS1unknownAI#3205'; //#3205 - $k[$j++] = "Unrecognised AI"; //#3205 - $k[$j++] = false; //#3205 - break; //#3205 - } //#3205 - } //#3205 - if ($nt($k[--$j])) { //#3215 - var _Td = $k[--$j]; //#3209 - var _Tf = $s((_Td.length + $_.ai.length) + 5); //#3209 - $puti(_Tf, 0, "AI "); //#3210 - $puti(_Tf, 3, $_.ai); //#3211 - $puti(_Tf, 3 + $_.ai.length, ": "); //#3212 - $puti(_Tf, 5 + $_.ai.length, _Td); //#3213 - $k[$j++] = _Tf; //#3214 - bwipp_raiseerror(); //#3214 - } //#3214 + } //#3245 + }); //#3245 + } //#3245 + }); //#3245 + var _Yt = $k[--$j]; //#3248 + $k[$j++] = _Yt; //#3248 + if ($nt(_Yt)) { //#3248 + break; //#3248 + } //#3248 + if ($_.val.length != 0) { //#3251 + $j--; //#3250 + $k[$j++] = 'bwipp.GS1valueTooLong#3250'; //#3250 + $k[$j++] = "Too long"; //#3250 + $k[$j++] = false; //#3250 + break; //#3250 + } //#3250 + } else { //#3253 + $j--; //#3253 + $k[$j++] = 'bwipp.GS1unknownAI#3253'; //#3253 + $k[$j++] = "Unrecognised AI"; //#3253 + $k[$j++] = false; //#3253 + break; //#3253 + } //#3253 + } //#3253 + if ($nt($k[--$j])) { //#3263 + var _Yw = $k[--$j]; //#3257 + var _Yy = $s((_Yw.length + $_.ai.length) + 5); //#3257 + $puti(_Yy, 0, "AI "); //#3258 + $puti(_Yy, 3, $_.ai); //#3259 + $puti(_Yy, 3 + $_.ai.length, ": "); //#3260 + $puti(_Yy, 5 + $_.ai.length, _Yw); //#3261 + $k[$j++] = _Yy; //#3262 + bwipp_raiseerror(); //#3262 + } //#3262 $_.aiexists = function() { - $_.this = $k[--$j]; //#3219 - $_.patt = $k[--$j]; //#3220 - for (var _Tl = 0, _Tm = 1; _Tl < _Tm; _Tl++) { //#3241 - var _Tp = $get($_.aivals, $_.patt) !== undefined; //#3222 - if (_Tp) { //#3222 - $k[$j++] = true; //#3222 - break; //#3222 - } //#3222 - if ($_.patt.length == 4) { //#3239 - if ($eq($geti($_.patt, 3, 1), "n")) { //#3237 - var _Tv = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3225 - $_.pfxlen = _Tv; //#3225 - var _Tw = $_.ais; //#3227 - $k[$j++] = false; //#3235 - for (var _Tx = 0, _Ty = _Tw.length; _Tx < _Ty; _Tx++) { //#3235 - var _Tz = $get(_Tw, _Tx); //#3235 - $k[$j++] = _Tz; //#3234 - if ($ne(_Tz, $_.this) && (_Tz.length == 4)) { //#3233 - if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3231 - $j--; //#3230 - $k[$j++] = true; //#3230 - } //#3230 - } else { //#3233 - $j--; //#3233 - } //#3233 - } //#3233 - break; //#3236 - } //#3236 - $k[$j++] = false; //#3238 - break; //#3238 - } //#3238 - $k[$j++] = false; //#3240 - break; //#3240 - } //#3240 - }; //#3240 - var _U7 = $_.vals; //#3245 - $_.aivals = new Map; //#3245 - for (var _UA = 0, _U9 = $_.vals.length - 1; _UA <= _U9; _UA += 1) { //#3260 - $_.ai = $get($_.ais, _UA); //#3247 - $_.val = $get($_.vals, _UA); //#3248 - var _UH = $get($_.aivals, $_.ai) !== undefined; //#3249 - if (_UH) { //#3258 - if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3256 - var _UN = $s($_.ai.length + 40); //#3251 - $puti(_UN, 0, "Repeated AIs ("); //#3252 - $puti(_UN, 14, $_.ai); //#3253 - $puti(_UN, 14 + $_.ai.length, ") must have the same value"); //#3254 - $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3255'; //#3255 - $k[$j++] = _UN; //#3255 - bwipp_raiseerror(); //#3255 - } //#3255 - } else { //#3258 - $put($_.aivals, $_.ai, $_.val); //#3258 - } //#3258 - } //#3258 - for (var _UV = 0, _UU = $_.vals.length - 1; _UV <= _UU; _UV += 1) { //#3299 - $_.ai = $get($_.ais, _UV); //#3264 - var _Ua = $get($_.gs1syntax, $_.ai); //#3265 - var _Ub = $get(_Ua, 'ex') !== undefined; //#3265 - $k[$j++] = _Ua; //#3280 - $k[$j++] = 'ex'; //#3280 - if (_Ub) { //#3279 - var _Uc = $k[--$j]; //#3266 - $forall($get($k[--$j], _Uc), function() { //#3277 - $_.patt = $k[--$j]; //#3267 - $k[$j++] = $_.patt; //#3268 - $k[$j++] = $_.ai; //#3268 - $_.aiexists(); //#3268 - if ($k[--$j]) { //#3276 - var _Ul = $s(($_.ai.length + $_.patt.length) + 36); //#3269 - $puti(_Ul, 0, "AIs ("); //#3270 - $puti(_Ul, 5, $_.ai); //#3271 - $puti(_Ul, 5 + $_.ai.length, ") and ("); //#3272 - $puti(_Ul, 12 + $_.ai.length, $_.patt); //#3273 - $puti(_Ul, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3274 - $k[$j++] = 'bwipp.GS1exclusiveAIs#3275'; //#3275 - $k[$j++] = _Ul; //#3275 - bwipp_raiseerror(); //#3275 - } //#3275 - }); //#3275 - } else { //#3279 - $j -= 2; //#3279 - } //#3279 - if ($_.lintreqs) { //#3298 - var _Uv = $get($_.gs1syntax, $_.ai); //#3282 - var _Uw = $get(_Uv, 'req') !== undefined; //#3282 - $k[$j++] = _Uv; //#3297 - $k[$j++] = 'req'; //#3297 - if (_Uw) { //#3296 - var _Ux = $k[--$j]; //#3283 - $forall($get($k[--$j], _Ux), function() { //#3294 - var _V0 = $k[--$j]; //#3284 - $k[$j++] = false; //#3286 - $forall(_V0, function() { //#3286 - $k[$j++] = $_.ai; //#3285 - $_.aiexists(); //#3285 - if ($k[--$j]) { //#3285 - $j--; //#3285 - $k[$j++] = true; //#3285 - } //#3285 - }); //#3285 - if ($nt($k[--$j])) { //#3293 - var _V5 = $s($_.ai.length + 47); //#3288 - $puti(_V5, 0, "One of more requisite AIs for AI ("); //#3289 - $puti(_V5, 34, $_.ai); //#3290 - $puti(_V5, 34 + $_.ai.length, ") are missing"); //#3291 - $k[$j++] = 'bwipp.GS1missingAIs#3292'; //#3292 - $k[$j++] = _V5; //#3292 - bwipp_raiseerror(); //#3292 - } //#3292 - }); //#3292 - } else { //#3296 - $j -= 2; //#3296 - } //#3296 - } //#3296 - } //#3296 - } //#3296 - $k[$j++] = $_.ais; //#3305 - $k[$j++] = $_.vals; //#3305 - $k[$j++] = $_.fncs; //#3305 - $_ = Object.getPrototypeOf($_); //#3305 - $_ = Object.getPrototypeOf($_); //#3307 -} - + $_.this = $k[--$j]; //#3267 + $_.patt = $k[--$j]; //#3268 + for (var _Z4 = 0, _Z5 = 1; _Z4 < _Z5; _Z4++) { //#3289 + var _Z8 = $get($_.aivals, $_.patt) !== undefined; //#3270 + if (_Z8) { //#3270 + $k[$j++] = true; //#3270 + break; //#3270 + } //#3270 + if ($_.patt.length == 4) { //#3287 + if ($eq($geti($_.patt, 3, 1), "n")) { //#3285 + var _ZE = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3273 + $_.pfxlen = _ZE; //#3273 + var _ZF = $_.ais; //#3275 + $k[$j++] = false; //#3283 + for (var _ZG = 0, _ZH = _ZF.length; _ZG < _ZH; _ZG++) { //#3283 + var _ZI = $get(_ZF, _ZG); //#3283 + $k[$j++] = _ZI; //#3282 + if ($ne(_ZI, $_.this) && (_ZI.length == 4)) { //#3281 + if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3279 + $j--; //#3278 + $k[$j++] = true; //#3278 + } //#3278 + } else { //#3281 + $j--; //#3281 + } //#3281 + } //#3281 + break; //#3284 + } //#3284 + $k[$j++] = false; //#3286 + break; //#3286 + } //#3286 + $k[$j++] = false; //#3288 + break; //#3288 + } //#3288 + }; //#3288 + var _ZQ = $_.vals; //#3293 + $_.aivals = new Map; //#3293 + for (var _ZT = 0, _ZS = $_.vals.length - 1; _ZT <= _ZS; _ZT += 1) { //#3308 + $_.ai = $get($_.ais, _ZT); //#3295 + $_.val = $get($_.vals, _ZT); //#3296 + var _Za = $get($_.aivals, $_.ai) !== undefined; //#3297 + if (_Za) { //#3306 + if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3304 + var _Zg = $s($_.ai.length + 40); //#3299 + $puti(_Zg, 0, "Repeated AIs ("); //#3300 + $puti(_Zg, 14, $_.ai); //#3301 + $puti(_Zg, 14 + $_.ai.length, ") must have the same value"); //#3302 + $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3303'; //#3303 + $k[$j++] = _Zg; //#3303 + bwipp_raiseerror(); //#3303 + } //#3303 + } else { //#3306 + $put($_.aivals, $_.ai, $_.val); //#3306 + } //#3306 + } //#3306 + for (var _Zo = 0, _Zn = $_.vals.length - 1; _Zo <= _Zn; _Zo += 1) { //#3350 + $_.ai = $get($_.ais, _Zo); //#3312 + var _Zt = $get($_.gs1syntax, $_.ai); //#3313 + var _Zu = $get(_Zt, 'ex') !== undefined; //#3313 + $k[$j++] = _Zt; //#3328 + $k[$j++] = 'ex'; //#3328 + if (_Zu) { //#3327 + var _Zv = $k[--$j]; //#3314 + $forall($get($k[--$j], _Zv), function() { //#3325 + $_.patt = $k[--$j]; //#3315 + $k[$j++] = $_.patt; //#3316 + $k[$j++] = $_.ai; //#3316 + $_.aiexists(); //#3316 + if ($k[--$j]) { //#3324 + var _a4 = $s(($_.ai.length + $_.patt.length) + 36); //#3317 + $puti(_a4, 0, "AIs ("); //#3318 + $puti(_a4, 5, $_.ai); //#3319 + $puti(_a4, 5 + $_.ai.length, ") and ("); //#3320 + $puti(_a4, 12 + $_.ai.length, $_.patt); //#3321 + $puti(_a4, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3322 + $k[$j++] = 'bwipp.GS1exclusiveAIs#3323'; //#3323 + $k[$j++] = _a4; //#3323 + bwipp_raiseerror(); //#3323 + } //#3323 + }); //#3323 + } else { //#3327 + $j -= 2; //#3327 + } //#3327 + if ($_.lintreqs) { //#3349 + var _aE = $get($_.gs1syntax, $_.ai); //#3330 + var _aF = $get(_aE, 'req') !== undefined; //#3330 + $k[$j++] = _aE; //#3348 + $k[$j++] = 'req'; //#3348 + if (_aF) { //#3347 + var _aG = $k[--$j]; //#3331 + $forall($get($k[--$j], _aG), function() { //#3345 + var _aJ = $k[--$j]; //#3332 + $k[$j++] = false; //#3337 + $forall(_aJ, function() { //#3337 + var _aK = $k[--$j]; //#3333 + $k[$j++] = true; //#3335 + $forall(_aK, function() { //#3335 + $k[$j++] = $_.ai; //#3334 + $_.aiexists(); //#3334 + if ($nt($k[--$j])) { //#3334 + $j--; //#3334 + $k[$j++] = false; //#3334 + } //#3334 + }); //#3334 + if ($k[--$j]) { //#3336 + $j--; //#3336 + $k[$j++] = true; //#3336 + return true; //#3336 + } //#3336 + }); //#3336 + if ($nt($k[--$j])) { //#3344 + var _aQ = $s($_.ai.length + 47); //#3339 + $puti(_aQ, 0, "One of more requisite AIs for AI ("); //#3340 + $puti(_aQ, 34, $_.ai); //#3341 + $puti(_aQ, 34 + $_.ai.length, ") are missing"); //#3342 + $k[$j++] = 'bwipp.GS1missingAIs#3343'; //#3343 + $k[$j++] = _aQ; //#3343 + bwipp_raiseerror(); //#3343 + } //#3343 + }); //#3343 + } else { //#3347 + $j -= 2; //#3347 + } //#3347 + } //#3347 + } //#3347 + } //#3347 + $k[$j++] = $_.ais; //#3356 + $k[$j++] = $_.vals; //#3356 + $k[$j++] = $_.fncs; //#3356 + $_ = Object.getPrototypeOf($_); //#3356 + $_ = Object.getPrototypeOf($_); //#3358 +} //bwipp_gs1process function bwipp_renmatrix() { - if ($_.bwipjs_dontdraw) { //#3569 - return; //#3569 - } //#3569 - $_ = Object.create($_); //#3571 - $_.width = 1; //#3574 - $_.height = 1; //#3575 - $_.barcolor = "unset"; //#3576 - $_.backgroundcolor = "unset"; //#3577 - $_.colormap = "unset"; //#3578 - $_.dotty = false; //#3579 - $_.inkspread = 0; //#3580 - $_.inkspreadh = 0; //#3581 - $_.inkspreadv = 0; //#3582 - $_.includetext = false; //#3583 - $_.txt = $a([]); //#3584 - $_.textcolor = "unset"; //#3585 - $_.textxalign = "unset"; //#3586 - $_.textyalign = "unset"; //#3587 - $_.textfont = "OCR-B"; //#3588 - $_.textsize = 10; //#3589 - $_.textxoffset = 0; //#3590 - $_.textyoffset = 0; //#3591 - $_.textgaps = 0; //#3592 - $_.alttext = ""; //#3593 - $forall($k[--$j], function() { //#3595 - var _3 = $k[--$j]; //#3595 - $_[$k[--$j]] = _3; //#3595 - }); //#3595 - $k[$j++] = $_.opt; //#3596 - delete $_['opt']; //#3596 - $k[$j++] = $_; //#3596 - bwipp_processoptions(); //#3596 - $j--; //#3596 - if ($_.inkspread != 0) { //#3598 - $_.inkspreadh = $_.inkspread; //#3598 - } //#3598 - if ($_.inkspread != 0) { //#3599 - $_.inkspreadv = $_.inkspread; //#3599 - } //#3599 - if ($_.textsize <= 0) { //#3603 - $k[$j++] = 'bwipp.renmatrixBadTextsize#3602'; //#3602 - $k[$j++] = "The font size must be greater than zero"; //#3602 - bwipp_raiseerror(); //#3602 - } //#3602 + if ($_.bwipjs_dontdraw) { //#3633 + return; //#3633 + } //#3633 + $_ = Object.create($_); //#3635 + $_.width = 1; //#3638 + $_.height = 1; //#3639 + $_.bordercolor = "unset"; //#3640 + $_.barcolor = "unset"; //#3641 + $_.backgroundcolor = "unset"; //#3642 + $_.colormap = "unset"; //#3643 + $_.dotty = false; //#3644 + $_.inkspread = null; //#3645 + $_.inkspreadh = null; //#3646 + $_.inkspreadv = null; //#3647 + $_.includetext = false; //#3648 + $_.txt = $a([]); //#3649 + $_.textcolor = "unset"; //#3650 + $_.textxalign = "unset"; //#3651 + $_.textyalign = "unset"; //#3652 + $_.textfont = "OCR-B"; //#3653 + $_.textsize = 10; //#3654 + $_.textxoffset = 0; //#3655 + $_.textyoffset = 0; //#3656 + $_.textgaps = 0; //#3657 + $_.alttext = ""; //#3658 + $_.showborder = false; //#3659 + $_.borderleft = 0; //#3660 + $_.borderright = 0; //#3661 + $_.bordertop = 0; //#3662 + $_.borderbottom = 0; //#3663 + $_.borderwidth = 0.25; //#3664 + $forall($k[--$j], function() { //#3666 + var _3 = $k[--$j]; //#3666 + $_[$k[--$j]] = _3; //#3666 + }); //#3666 + $k[$j++] = $_.opt; //#3667 + delete $_['opt']; //#3667 + $k[$j++] = $_; //#3667 + bwipp_processoptions(); //#3667 + $j--; //#3667 + if ($eq($_.inkspread, null)) { //#3669 + $_.inkspread = 0; //#3669 + } //#3669 + if ($eq($_.inkspreadh, null)) { //#3670 + $_.inkspreadh = $_.inkspread; //#3670 + } //#3670 + if ($eq($_.inkspreadv, null)) { //#3671 + $_.inkspreadv = $_.inkspread; //#3671 + } //#3671 + if ($_.textsize <= 0) { //#3675 + $k[$j++] = 'bwipp.renmatrixBadTextsize#3674'; //#3674 + $k[$j++] = "The font size must be greater than zero"; //#3674 + bwipp_raiseerror(); //#3674 + } //#3674 $_.xyget = function() { - var _C = $k[--$j]; //#3605 - var _F = $get($_.pixs, $f($k[--$j] + (_C * $_.pixx))); //#3605 - $k[$j++] = _F; //#3605 - }; //#3605 + var _D = $k[--$j]; //#3677 + var _G = $get($_.pixs, $f($k[--$j] + (_D * $_.pixx))); //#3677 + $k[$j++] = _G; //#3677 + }; //#3677 $_.cget = function() { - var _H = $k[--$j]; //#3606 - var _K = $get($_.cache, $f($k[--$j] + (_H * $_.pixx))); //#3606 - var _L = $k[--$j]; //#3606 - $k[$j++] = $an(_L, _K); //#3606 - }; //#3606 + var _I = $k[--$j]; //#3678 + var _L = $get($_.cache, $f($k[--$j] + (_I * $_.pixx))); //#3678 + var _M = $k[--$j]; //#3678 + $k[$j++] = $an(_M, _L); //#3678 + }; //#3678 $_.cput = function() { - var _M = $k[--$j]; //#3608 - $k[$j++] = _M; //#3612 - if ((_M % 4) == 0) { //#3611 - var _N = $k[--$j]; //#3609 - var _O = $k[--$j]; //#3609 - var _P = $k[--$j]; //#3609 - var _Q = $_.pixx; //#3609 - var _R = $_.cache; //#3609 - $put(_R, $f(_P + (_O * _Q)), $or($get(_R, $f(_P + (_O * _Q))), _N)); //#3609 - } else { //#3611 - $j -= 3; //#3611 - } //#3611 - }; //#3611 + var _N = $k[--$j]; //#3680 + $k[$j++] = _N; //#3684 + if ((_N % 4) == 0) { //#3683 + var _O = $k[--$j]; //#3681 + var _P = $k[--$j]; //#3681 + var _Q = $k[--$j]; //#3681 + var _R = $_.pixx; //#3681 + var _S = $_.cache; //#3681 + $put(_S, $f(_Q + (_P * _R)), $or($get(_S, $f(_Q + (_P * _R))), _O)); //#3681 + } else { //#3683 + $j -= 3; //#3683 + } //#3683 + }; //#3683 $_.abcd = function() { - $k[$j++] = $s(4); //#3620 - $k[$j++] = 0; //#3620 - $k[$j++] = Infinity; //#3620 - var _U = $k[--$j]; //#3617 - var _V = $k[--$j]; //#3617 - var _W = $k[--$j]; //#3617 - var _X = $k[--$j]; //#3617 - var _a = $f($k[--$j] + (_X * $_.pixx)); //#3618 - $k[$j++] = _W; //#3619 - $k[$j++] = _V; //#3619 - $k[$j++] = _U; //#3619 - $k[$j++] = _a; //#3619 - $aload($geti($_.pixs, _a, 2)); //#3619 - var _d = $k[--$j]; //#3619 - var _e = $k[--$j]; //#3619 - var _i = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3620 - $k[$j++] = _e; //#3620 - $k[$j++] = _d; //#3620 - $aload(_i); //#3620 - var _j = $a(); //#3620 - for (var _k = 0, _l = _j.length; _k < _l; _k++) { //#3621 - var _n = $k[--$j]; //#3621 - var _o = $k[--$j]; //#3621 - $put(_o, _n, $f($get(_j, _k) + 48)); //#3621 - $k[$j++] = _o; //#3621 - $k[$j++] = $f(_n + 1); //#3621 - } //#3621 - $j--; //#3621 - }; //#3621 + $k[$j++] = $s(4); //#3692 + $k[$j++] = 0; //#3692 + $k[$j++] = Infinity; //#3688 + var _V = $k[--$j]; //#3689 + var _W = $k[--$j]; //#3689 + var _X = $k[--$j]; //#3689 + var _Y = $k[--$j]; //#3689 + var _b = $f($k[--$j] + (_Y * $_.pixx)); //#3690 + $k[$j++] = _X; //#3691 + $k[$j++] = _W; //#3691 + $k[$j++] = _V; //#3691 + $k[$j++] = _b; //#3691 + $aload($geti($_.pixs, _b, 2)); //#3691 + var _e = $k[--$j]; //#3691 + var _f = $k[--$j]; //#3691 + var _j = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3692 + $k[$j++] = _f; //#3692 + $k[$j++] = _e; //#3692 + $aload(_j); //#3692 + var _k = $a(); //#3692 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#3693 + var _o = $k[--$j]; //#3693 + var _p = $k[--$j]; //#3693 + $put(_p, _o, $f($get(_k, _l) + 48)); //#3693 + $k[$j++] = _p; //#3693 + $k[$j++] = $f(_o + 1); //#3693 + } //#3693 + $j--; //#3693 + }; //#3693 $_.right = function() { - if ($_.dir != 1) { //#3624 - $k[$j++] = $_.x; //#3624 - $k[$j++] = $_.y; //#3624 - $k[$j++] = $_.dir; //#3624 - $_.cput(); //#3624 - $k[$j++] = $a([$_.x, $_.y]); //#3624 - } //#3624 - $_.x = $_.x + 1; //#3624 - $_.dir = 1; //#3624 - }; //#3624 + if ($_.dir != 1) { //#3696 + $k[$j++] = $_.x; //#3696 + $k[$j++] = $_.y; //#3696 + $k[$j++] = $_.dir; //#3696 + $_.cput(); //#3696 + $k[$j++] = $a([$_.x, $_.y]); //#3696 + } //#3696 + $_.x = $_.x + 1; //#3696 + $_.dir = 1; //#3696 + }; //#3696 $_.down = function() { - if ($_.dir != 2) { //#3625 - $k[$j++] = $_.x; //#3625 - $k[$j++] = $_.y; //#3625 - $k[$j++] = $_.dir; //#3625 - $_.cput(); //#3625 - $k[$j++] = $a([$_.x, $_.y]); //#3625 - } //#3625 - $_.y = $_.y + 1; //#3625 - $_.dir = 2; //#3625 - }; //#3625 + if ($_.dir != 2) { //#3697 + $k[$j++] = $_.x; //#3697 + $k[$j++] = $_.y; //#3697 + $k[$j++] = $_.dir; //#3697 + $_.cput(); //#3697 + $k[$j++] = $a([$_.x, $_.y]); //#3697 + } //#3697 + $_.y = $_.y + 1; //#3697 + $_.dir = 2; //#3697 + }; //#3697 $_.left = function() { - if ($_.dir != 4) { //#3626 - $k[$j++] = $_.x; //#3626 - $k[$j++] = $_.y; //#3626 - $k[$j++] = $_.dir; //#3626 - $_.cput(); //#3626 - $k[$j++] = $a([$_.x, $_.y]); //#3626 - } //#3626 - $_.x = $_.x - 1; //#3626 - $_.dir = 4; //#3626 - }; //#3626 + if ($_.dir != 4) { //#3698 + $k[$j++] = $_.x; //#3698 + $k[$j++] = $_.y; //#3698 + $k[$j++] = $_.dir; //#3698 + $_.cput(); //#3698 + $k[$j++] = $a([$_.x, $_.y]); //#3698 + } //#3698 + $_.x = $_.x - 1; //#3698 + $_.dir = 4; //#3698 + }; //#3698 $_.up = function() { - if ($_.dir != 8) { //#3627 - $k[$j++] = $_.x; //#3627 - $k[$j++] = $_.y; //#3627 - $k[$j++] = $_.dir; //#3627 - $_.cput(); //#3627 - $k[$j++] = $a([$_.x, $_.y]); //#3627 - } //#3627 - $_.y = $_.y - 1; //#3627 - $_.dir = 8; //#3627 - }; //#3627 + if ($_.dir != 8) { //#3699 + $k[$j++] = $_.x; //#3699 + $k[$j++] = $_.y; //#3699 + $k[$j++] = $_.dir; //#3699 + $_.cput(); //#3699 + $k[$j++] = $a([$_.x, $_.y]); //#3699 + } //#3699 + $_.y = $_.y - 1; //#3699 + $_.dir = 8; //#3699 + }; //#3699 $_.trace = function() { - $_.y = $k[--$j]; //#3631 - $_.x = $k[--$j]; //#3631 - $k[$j++] = 'dir'; //#3633 - $k[$j++] = $f($_.x + 1); //#3633 - $k[$j++] = $f($_.y + 1); //#3633 - $_.xyget(); //#3633 - var _1Q = ($k[--$j] == 1) ? 8 : 4; //#3633 - $_[$k[--$j]] = _1Q; //#3633 - $_.sx = $_.x; //#3634 - $_.sy = $_.y; //#3634 - $_.sdir = $_.dir; //#3634 - $k[$j++] = Infinity; //#3638 - for (;;) { //#3652 - $k[$j++] = $_.x; //#3639 - $k[$j++] = $_.y; //#3639 - $_.abcd(); //#3639 - for (var _1X = 0, _1Y = 1; _1X < _1Y; _1X++) { //#3650 - var _1Z = $k[--$j]; //#3641 - $k[$j++] = _1Z; //#3641 - if ($eq(_1Z, "0001") || ($eq(_1Z, "0011") || $eq(_1Z, "1011"))) { //#3641 - $j--; //#3641 - $_.right(); //#3641 - break; //#3641 - } //#3641 - var _1a = $k[--$j]; //#3642 - $k[$j++] = _1a; //#3642 - if ($eq(_1a, "0010") || ($eq(_1a, "1010") || $eq(_1a, "1110"))) { //#3642 - $j--; //#3642 - $_.down(); //#3642 - break; //#3642 - } //#3642 - var _1b = $k[--$j]; //#3643 - $k[$j++] = _1b; //#3643 - if ($eq(_1b, "1000") || ($eq(_1b, "1100") || $eq(_1b, "1101"))) { //#3643 - $j--; //#3643 - $_.left(); //#3643 - break; //#3643 - } //#3643 - var _1c = $k[--$j]; //#3644 - $k[$j++] = _1c; //#3644 - if ($eq(_1c, "0100") || ($eq(_1c, "0101") || $eq(_1c, "0111"))) { //#3644 - $j--; //#3644 - $_.up(); //#3644 - break; //#3644 - } //#3644 - var _1d = $k[--$j]; //#3645 - $k[$j++] = _1d; //#3649 - if ($eq(_1d, "1001")) { //#3648 - if ($_.dir == 2) { //#3646 - $j--; //#3646 - $_.left(); //#3646 - break; //#3646 - } else { //#3646 - $j--; //#3646 - $_.right(); //#3646 - break; //#3646 - } //#3646 - } else { //#3648 - if ($_.dir == 1) { //#3648 - $j--; //#3648 - $_.down(); //#3648 - break; //#3648 - } else { //#3648 - $j--; //#3648 - $_.up(); //#3648 - break; //#3648 - } //#3648 - } //#3648 - } //#3648 - if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3651 - break; //#3651 - } //#3651 - } //#3651 - $astore($a($counttomark())); //#3653 - var _1o = $k[--$j]; //#3653 - var _1p = $k[--$j]; //#3653 - $k[$j++] = _1o; //#3653 - $k[$j++] = _1p; //#3653 - $j--; //#3653 - }; //#3653 + $_.y = $k[--$j]; //#3703 + $_.x = $k[--$j]; //#3703 + $k[$j++] = 'dir'; //#3705 + $k[$j++] = $f($_.x + 1); //#3705 + $k[$j++] = $f($_.y + 1); //#3705 + $_.xyget(); //#3705 + var _1R = ($k[--$j] == 1) ? 8 : 4; //#3705 + $_[$k[--$j]] = _1R; //#3705 + $_.sx = $_.x; //#3706 + $_.sy = $_.y; //#3706 + $_.sdir = $_.dir; //#3706 + $k[$j++] = Infinity; //#3710 + for (;;) { //#3724 + $k[$j++] = $_.x; //#3711 + $k[$j++] = $_.y; //#3711 + $_.abcd(); //#3711 + for (var _1Y = 0, _1Z = 1; _1Y < _1Z; _1Y++) { //#3722 + var _1a = $k[--$j]; //#3713 + $k[$j++] = _1a; //#3713 + if ($eq(_1a, "0001") || ($eq(_1a, "0011") || $eq(_1a, "1011"))) { //#3713 + $j--; //#3713 + $_.right(); //#3713 + break; //#3713 + } //#3713 + var _1b = $k[--$j]; //#3714 + $k[$j++] = _1b; //#3714 + if ($eq(_1b, "0010") || ($eq(_1b, "1010") || $eq(_1b, "1110"))) { //#3714 + $j--; //#3714 + $_.down(); //#3714 + break; //#3714 + } //#3714 + var _1c = $k[--$j]; //#3715 + $k[$j++] = _1c; //#3715 + if ($eq(_1c, "1000") || ($eq(_1c, "1100") || $eq(_1c, "1101"))) { //#3715 + $j--; //#3715 + $_.left(); //#3715 + break; //#3715 + } //#3715 + var _1d = $k[--$j]; //#3716 + $k[$j++] = _1d; //#3716 + if ($eq(_1d, "0100") || ($eq(_1d, "0101") || $eq(_1d, "0111"))) { //#3716 + $j--; //#3716 + $_.up(); //#3716 + break; //#3716 + } //#3716 + var _1e = $k[--$j]; //#3717 + $k[$j++] = _1e; //#3721 + if ($eq(_1e, "1001")) { //#3720 + if ($_.dir == 2) { //#3718 + $j--; //#3718 + $_.left(); //#3718 + break; //#3718 + } else { //#3718 + $j--; //#3718 + $_.right(); //#3718 + break; //#3718 + } //#3718 + } else { //#3720 + if ($_.dir == 1) { //#3720 + $j--; //#3720 + $_.down(); //#3720 + break; //#3720 + } else { //#3720 + $j--; //#3720 + $_.up(); //#3720 + break; //#3720 + } //#3720 + } //#3720 + } //#3720 + if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3723 + break; //#3723 + } //#3723 + } //#3723 + $astore($a($counttomark())); //#3725 + var _1p = $k[--$j]; //#3725 + var _1q = $k[--$j]; //#3725 + $k[$j++] = _1p; //#3725 + $k[$j++] = _1q; //#3725 + $j--; //#3725 + }; //#3725 $_.drawlayer = function() { - $_.pixsorig = $_.pixs; //#3679 - $_.pixs = $k[--$j]; //#3680 - $k[$j++] = Infinity; //#3690 - for (var _1t = 0, _1u = $_.pixx + 2; _1t < _1u; _1t++) { //#3684 - $k[$j++] = 0; //#3684 - } //#3684 - for (var _1y = 0, _1z = $_.pixx, _1x = $_.pixs.length - 1; _1z < 0 ? _1y >= _1x : _1y <= _1x; _1y += _1z) { //#3689 - $k[$j++] = 0; //#3687 - $aload($geti($_.pixs, _1y, $_.pixx)); //#3687 - $k[$j++] = 0; //#3688 - } //#3688 - for (var _24 = 0, _25 = $_.pixx + 2; _24 < _25; _24++) { //#3690 - $k[$j++] = 0; //#3690 - } //#3690 - $_.pixs = $a(); //#3690 - $_.pixx = $_.pixx + 2; //#3692 - $_.pixy = $_.pixy + 2; //#3693 - $k[$j++] = Infinity; //#3696 - for (var _2A = 0, _2B = $_.pixs.length; _2A < _2B; _2A++) { //#3696 - $k[$j++] = 0; //#3696 - } //#3696 - $_.cache = $a(); //#3696 - $k[$j++] = Infinity; //#3712 - for (var _2F = 0, _2E = $_.pixy - 2; _2F <= _2E; _2F += 1) { //#3716 - $_.j = _2F; //#3701 - for (var _2I = 0, _2H = $_.pixx - 2; _2I <= _2H; _2I += 1) { //#3715 - $_.i = _2I; //#3703 - $k[$j++] = 'k'; //#3704 - $k[$j++] = $_.i; //#3704 - $k[$j++] = $_.j; //#3704 - $_.abcd(); //#3704 - var _2L = $k[--$j]; //#3704 - $_[$k[--$j]] = _2L; //#3704 - if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3709 - $k[$j++] = 8; //#3706 - $k[$j++] = $_.i; //#3706 - $k[$j++] = $_.j; //#3706 - $_.cget(); //#3706 - if ($k[--$j] == 0) { //#3708 - $k[$j++] = $_.i; //#3707 - $k[$j++] = $_.j; //#3707 - $_.trace(); //#3707 - } //#3707 - } //#3707 - if ($eq($_.k, "1110")) { //#3714 - $k[$j++] = 4; //#3711 - $k[$j++] = $_.i; //#3711 - $k[$j++] = $_.j; //#3711 - $_.cget(); //#3711 - if ($k[--$j] == 0) { //#3713 - $k[$j++] = $_.i; //#3712 - $k[$j++] = $_.j; //#3712 - $_.trace(); //#3712 - } //#3712 - } //#3712 - } //#3712 - } //#3712 - $_.paths = $a(); //#3712 - $_.pixx = $_.pixx - 2; //#3720 - $_.pixy = $_.pixy - 2; //#3721 - $$.newpath(); //#3724 - var _2d = $_.paths; //#3725 - for (var _2e = 0, _2f = _2d.length; _2e < _2f; _2e++) { //#3743 - $_.p = $get(_2d, _2e); //#3726 - $_.len = $_.p.length; //#3727 - $aload($get($_.p, $_.len - 1)); //#3728 - $aload($get($_.p, 0)); //#3729 - for (var _2p = 0, _2o = $_.len - 1; _2p <= _2o; _2p += 1) { //#3740 - $_.i = _2p; //#3731 - $aload($get($_.p, ($_.i + 1) % $_.len)); //#3732 - var _2u = $k[--$j]; //#3732 - var _2v = $k[--$j]; //#3732 - var _2w = $k[--$j]; //#3732 - var _2x = $k[--$j]; //#3732 - var _2y = $k[--$j]; //#3732 - var _2z = $k[--$j]; //#3732 - $k[$j++] = _2x; //#3734 - $k[$j++] = _2w; //#3734 - $k[$j++] = _2v; //#3734 - $k[$j++] = _2u; //#3734 - $k[$j++] = _2z; //#3734 - $k[$j++] = _2x; //#3734 - $k[$j++] = $_.inkspreadh; //#3734 - if ($lt(_2u, _2y)) { //#3734 - var _31 = $k[--$j]; //#3734 - var _32 = $k[--$j]; //#3734 - $k[$j++] = $f(_32 + _31); //#3734 - } else { //#3734 - var _33 = $k[--$j]; //#3734 - var _34 = $k[--$j]; //#3734 - $k[$j++] = $f(_34 - _33); //#3734 - } //#3734 - var _35 = $k[--$j]; //#3735 - var _36 = $k[--$j]; //#3735 - var _37 = $k[--$j]; //#3735 - var _38 = $k[--$j]; //#3735 - var _39 = $k[--$j]; //#3736 - $k[$j++] = _39; //#3737 - $k[$j++] = _35; //#3737 - $k[$j++] = _38; //#3737 - $k[$j++] = _37; //#3737 - $k[$j++] = _39; //#3737 - $k[$j++] = $_.inkspreadv; //#3737 - if ($gt(_38, _36)) { //#3737 - var _3B = $k[--$j]; //#3737 - var _3C = $k[--$j]; //#3737 - $k[$j++] = $f(_3C + _3B); //#3737 - } else { //#3737 - var _3D = $k[--$j]; //#3737 - var _3E = $k[--$j]; //#3737 - $k[$j++] = $f(_3E - _3D); //#3737 - } //#3737 - var _3F = $k[--$j]; //#3738 - var _3G = $k[--$j]; //#3738 - var _3H = $k[--$j]; //#3738 - var _3I = $k[--$j]; //#3738 - $k[$j++] = _3H; //#3739 - $k[$j++] = _3G; //#3739 - $k[$j++] = _3I; //#3739 - $k[$j++] = $f($_.pixy - _3F); //#3739 - if ($_.i == 0) { //#3739 - var _3L = $k[--$j]; //#3739 - $$.moveto($k[--$j], _3L); //#3739 - } else { //#3739 - var _3N = $k[--$j]; //#3739 - $$.lineto($k[--$j], _3N); //#3739 - } //#3739 - } //#3739 - $$.closepath(); //#3741 - $j -= 4; //#3742 - } //#3742 - $$.fill(); //#3744 - $_.pixs = $_.pixsorig; //#3746 - }; //#3746 + $_.pixsorig = $_.pixs; //#3751 + $_.pixs = $k[--$j]; //#3752 + $k[$j++] = Infinity; //#3755 + for (var _1u = 0, _1v = $_.pixx + 2; _1u < _1v; _1u++) { //#3756 + $k[$j++] = 0; //#3756 + } //#3756 + for (var _1z = 0, _20 = $_.pixx, _1y = $_.pixs.length - 1; _20 < 0 ? _1z >= _1y : _1z <= _1y; _1z += _20) { //#3761 + $k[$j++] = 0; //#3759 + $aload($geti($_.pixs, _1z, $_.pixx)); //#3759 + $k[$j++] = 0; //#3760 + } //#3760 + for (var _25 = 0, _26 = $_.pixx + 2; _25 < _26; _25++) { //#3762 + $k[$j++] = 0; //#3762 + } //#3762 + $_.pixs = $a(); //#3762 + $_.pixx = $_.pixx + 2; //#3764 + $_.pixy = $_.pixy + 2; //#3765 + $k[$j++] = Infinity; //#3768 + for (var _2B = 0, _2C = $_.pixs.length; _2B < _2C; _2B++) { //#3768 + $k[$j++] = 0; //#3768 + } //#3768 + $_.cache = $a(); //#3768 + $k[$j++] = Infinity; //#3771 + for (var _2G = 0, _2F = $_.pixy - 2; _2G <= _2F; _2G += 1) { //#3788 + $_.j = _2G; //#3773 + for (var _2J = 0, _2I = $_.pixx - 2; _2J <= _2I; _2J += 1) { //#3787 + $_.i = _2J; //#3775 + $k[$j++] = 'k'; //#3776 + $k[$j++] = $_.i; //#3776 + $k[$j++] = $_.j; //#3776 + $_.abcd(); //#3776 + var _2M = $k[--$j]; //#3776 + $_[$k[--$j]] = _2M; //#3776 + if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3781 + $k[$j++] = 8; //#3778 + $k[$j++] = $_.i; //#3778 + $k[$j++] = $_.j; //#3778 + $_.cget(); //#3778 + if ($k[--$j] == 0) { //#3780 + $k[$j++] = $_.i; //#3779 + $k[$j++] = $_.j; //#3779 + $_.trace(); //#3779 + } //#3779 + } //#3779 + if ($eq($_.k, "1110")) { //#3786 + $k[$j++] = 4; //#3783 + $k[$j++] = $_.i; //#3783 + $k[$j++] = $_.j; //#3783 + $_.cget(); //#3783 + if ($k[--$j] == 0) { //#3785 + $k[$j++] = $_.i; //#3784 + $k[$j++] = $_.j; //#3784 + $_.trace(); //#3784 + } //#3784 + } //#3784 + } //#3784 + } //#3784 + $_.paths = $a(); //#3784 + $_.pixx = $_.pixx - 2; //#3792 + $_.pixy = $_.pixy - 2; //#3793 + $$.newpath(); //#3796 + var _2e = $_.paths; //#3797 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#3815 + $_.p = $get(_2e, _2f); //#3798 + $_.len = $_.p.length; //#3799 + $aload($get($_.p, $_.len - 1)); //#3800 + $aload($get($_.p, 0)); //#3801 + for (var _2q = 0, _2p = $_.len - 1; _2q <= _2p; _2q += 1) { //#3812 + $_.i = _2q; //#3803 + $aload($get($_.p, ($_.i + 1) % $_.len)); //#3804 + var _2v = $k[--$j]; //#3804 + var _2w = $k[--$j]; //#3804 + var _2x = $k[--$j]; //#3804 + var _2y = $k[--$j]; //#3804 + var _2z = $k[--$j]; //#3804 + var _30 = $k[--$j]; //#3804 + $k[$j++] = _2y; //#3806 + $k[$j++] = _2x; //#3806 + $k[$j++] = _2w; //#3806 + $k[$j++] = _2v; //#3806 + $k[$j++] = _30; //#3806 + $k[$j++] = _2y; //#3806 + $k[$j++] = $_.inkspreadh; //#3806 + if ($lt(_2v, _2z)) { //#3806 + var _32 = $k[--$j]; //#3806 + var _33 = $k[--$j]; //#3806 + $k[$j++] = $f(_33 + _32); //#3806 + } else { //#3806 + var _34 = $k[--$j]; //#3806 + var _35 = $k[--$j]; //#3806 + $k[$j++] = $f(_35 - _34); //#3806 + } //#3806 + var _36 = $k[--$j]; //#3807 + var _37 = $k[--$j]; //#3807 + var _38 = $k[--$j]; //#3807 + var _39 = $k[--$j]; //#3807 + var _3A = $k[--$j]; //#3808 + $k[$j++] = _3A; //#3809 + $k[$j++] = _36; //#3809 + $k[$j++] = _39; //#3809 + $k[$j++] = _38; //#3809 + $k[$j++] = _3A; //#3809 + $k[$j++] = $_.inkspreadv; //#3809 + if ($gt(_39, _37)) { //#3809 + var _3C = $k[--$j]; //#3809 + var _3D = $k[--$j]; //#3809 + $k[$j++] = $f(_3D + _3C); //#3809 + } else { //#3809 + var _3E = $k[--$j]; //#3809 + var _3F = $k[--$j]; //#3809 + $k[$j++] = $f(_3F - _3E); //#3809 + } //#3809 + var _3G = $k[--$j]; //#3810 + var _3H = $k[--$j]; //#3810 + var _3I = $k[--$j]; //#3810 + var _3J = $k[--$j]; //#3810 + $k[$j++] = _3I; //#3811 + $k[$j++] = _3H; //#3811 + $k[$j++] = _3J; //#3811 + $k[$j++] = $f($_.pixy - _3G); //#3811 + if ($_.i == 0) { //#3811 + var _3M = $k[--$j]; //#3811 + $$.moveto($k[--$j], _3M); //#3811 + } else { //#3811 + var _3O = $k[--$j]; //#3811 + $$.lineto($k[--$j], _3O); //#3811 + } //#3811 + } //#3811 + $$.closepath(); //#3813 + $j -= 4; //#3814 + } //#3814 + $$.fill(); //#3816 + $_.pixs = $_.pixsorig; //#3818 + }; //#3818 $_.drawlayerdots = function() { - $_.pixsorig = $_.pixs; //#3752 - $_.pixs = $k[--$j]; //#3753 - $$.newpath(); //#3755 - for (var _3U = 0, _3T = $_.pixs.length - 1; _3U <= _3T; _3U += 1) { //#3763 - $_.x = _3U % $_.pixx; //#3757 - $_.y = ~~(_3U / $_.pixx); //#3758 - $k[$j++] = $_.x; //#3759 - $k[$j++] = $_.y; //#3759 - $_.xyget(); //#3759 - if ($k[--$j] == 1) { //#3762 - $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3760 - $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3761 - } //#3761 - } //#3761 - $$.fill(); //#3764 - $_.pixs = $_.pixsorig; //#3766 - }; //#3766 - $$.save(); //#3770 - $_.inkspread = $_.inkspread / 2; //#3773 - $_.inkspreadh = $_.inkspreadh / 2; //#3774 - $_.inkspreadv = $_.inkspreadv / 2; //#3775 - var _3l = $$.currpos(); //#3776 - $$.translate(_3l.x, _3l.y); //#3776 - $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3777 - $$.moveto(0, 0); //#3778 - $$.lineto($_.pixx, 0); //#3778 - $$.lineto($_.pixx, $_.pixy); //#3778 - $$.lineto(0, $_.pixy); //#3778 - $$.closepath(); //#3778 - if ($eq($_.colormap, "unset")) { //#3783 - var _3w = new Map([ + $_.pixsorig = $_.pixs; //#3824 + $_.pixs = $k[--$j]; //#3825 + $$.newpath(); //#3827 + for (var _3V = 0, _3U = $_.pixs.length - 1; _3V <= _3U; _3V += 1) { //#3835 + $_.x = _3V % $_.pixx; //#3829 + $_.y = ~~(_3V / $_.pixx); //#3830 + $k[$j++] = $_.x; //#3831 + $k[$j++] = $_.y; //#3831 + $_.xyget(); //#3831 + if ($k[--$j] == 1) { //#3834 + $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3832 + $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3833 + } //#3833 + } //#3833 + $$.fill(); //#3836 + $_.pixs = $_.pixsorig; //#3838 + }; //#3838 + $$.save(); //#3842 + var _3j = $$.currpos(); //#3844 + $$.translate(_3j.x, _3j.y); //#3844 + $_.inkspread = $_.inkspread / 2; //#3846 + $_.inkspreadh = $_.inkspreadh / 2; //#3847 + $_.inkspreadv = $_.inkspreadv / 2; //#3848 + $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3851 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3854 + $_.tr = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3855 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3856 + $_.br = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3857 + if ($ne($_.backgroundcolor, "unset")) { //#3863 + $$.save(); //#3859 + $$.newpath(); //#3860 + $aload($_.bl); //#3860 + var _4H = $k[--$j]; //#3860 + $$.moveto($k[--$j], _4H); //#3860 + var _4M = $a([$_.br, $_.tr, $_.tl]); //#3860 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#3860 + $aload($get(_4M, _4N)); //#3860 + var _4Q = $k[--$j]; //#3860 + $$.lineto($k[--$j], _4Q); //#3860 + } //#3860 + $$.closepath(); //#3860 + $$.setcolor($_.backgroundcolor); //#3861 + $$.fill(); //#3861 + $$.restore(); //#3862 + } //#3862 + if ($_.showborder) { //#3870 + $$.save(); //#3865 + $$.newpath(); //#3866 + $aload($_.bl); //#3866 + var _4V = $k[--$j]; //#3866 + $$.moveto($k[--$j], _4V); //#3866 + var _4a = $a([$_.br, $_.tr, $_.tl]); //#3866 + for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3866 + $aload($get(_4a, _4b)); //#3866 + var _4e = $k[--$j]; //#3866 + $$.lineto($k[--$j], _4e); //#3866 + } //#3866 + $$.closepath(); //#3866 + if ($ne($_.bordercolor, "unset")) { //#3867 + $$.setcolor($_.bordercolor); //#3867 + } //#3867 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#3868 + $$.stroke(); //#3868 + $$.restore(); //#3869 + } //#3869 + if ($eq($_.colormap, "unset")) { //#3875 + var _4m = new Map([ [1, $_.barcolor] - ]); //#3782 - $_.colormap = _3w; //#3782 - } //#3782 - var _3x = $_.colormap; //#3785 - for (var _42 = _3x.size, _41 = _3x.keys(), _40 = 0; _40 < _42; _40++) { //#3791 - var _3y = _41.next().value; //#3791 - var _3z = _3x.get(_3y); //#3791 - $k[$j++] = _3y; //#3786 - $k[$j++] = _3z; //#3786 - if ($ne(_3z, "unset")) { //#3786 - $$.setcolor($k[--$j]); //#3786 - } else { //#3786 - $j--; //#3786 - } //#3786 - $_.key = $k[--$j]; //#3787 - $k[$j++] = Infinity; //#3789 - var _45 = $_.pixs; //#3789 - for (var _46 = 0, _47 = _45.length; _46 < _47; _46++) { //#3789 - var _4A = $eq($get(_45, _46), $_.key) ? 1 : 0; //#3789 - $k[$j++] = _4A; //#3789 - } //#3789 - var _4B = $a(); //#3789 - $k[$j++] = _4B; //#3790 - if ($_.dotty) { //#3790 - $_.drawlayerdots(); //#3790 - } else { //#3790 - $_.drawlayer(); //#3790 - } //#3790 - } //#3790 - if ($ne($_.textcolor, "unset")) { //#3794 - $$.setcolor($_.textcolor); //#3794 - } //#3794 - if ($_.includetext) { //#3855 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3853 - $_.s = 0; //#3797 - $_.fn = ""; //#3797 - var _4J = $_.txt; //#3798 - for (var _4K = 0, _4L = _4J.length; _4K < _4L; _4K++) { //#3811 - $forall($get(_4J, _4K)); //#3799 - var _4N = $k[--$j]; //#3800 - var _4O = $k[--$j]; //#3800 - $k[$j++] = _4O; //#3809 - $k[$j++] = _4N; //#3809 - if ((_4N != $_.s) || $ne(_4O, $_.fn)) { //#3808 - var _4R = $k[--$j]; //#3801 - $k[$j++] = _4R; //#3804 - if (_4R <= 0) { //#3804 - $j -= 5; //#3802 - $k[$j++] = 'bwipp.renmatrixFontTooSmall#3803'; //#3803 - $k[$j++] = "The font size is too small"; //#3803 - bwipp_raiseerror(); //#3803 - } //#3803 - var _4S = $k[--$j]; //#3805 - var _4T = $k[--$j]; //#3805 - $_.s = _4S; //#3805 - $_.fn = _4T; //#3805 - $$.selectfont(_4T, _4S); //#3806 - } else { //#3808 - $j -= 2; //#3808 - } //#3808 - var _4U = $k[--$j]; //#3810 - $$.moveto($k[--$j], _4U); //#3810 - $$.show($k[--$j], 0, 0); //#3810 - } //#3810 - } else { //#3853 - $$.selectfont($_.textfont, $_.textsize); //#3813 - if ($eq($_.alttext, "")) { //#3819 - $k[$j++] = Infinity; //#3815 - var _4a = $_.txt; //#3815 - for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3815 - $forall($get($get(_4a, _4b), 0)); //#3815 - } //#3815 - $_.txt = $a(); //#3815 - $_.tstr = $s($_.txt.length); //#3816 - for (var _4k = 0, _4j = $_.txt.length - 1; _4k <= _4j; _4k += 1) { //#3817 - $put($_.tstr, _4k, $get($_.txt, _4k)); //#3817 - } //#3817 - } else { //#3819 - $_.tstr = $_.alttext; //#3819 - } //#3819 - if ($_.tstr.length == 0) { //#3829 - $k[$j++] = 0; //#3824 - } else { //#3829 - $$.save(); //#3826 - $$.newpath(); //#3827 - $$.moveto(0, 0); //#3827 - $$.charpath("0", false); //#3827 - var _4q = $$.pathbbox(); //#3827 - $$.restore(); //#3829 - $k[$j++] = _4q.ury; //#3829 - } //#3829 - $_.textascent = $k[--$j]; //#3838 - var _4t = $$.stringwidth($_.tstr); //#3839 - $_.textwidth = $f(_4t.w + (($_.tstr.length - 1) * $_.textgaps)); //#3839 - $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3841 - if ($eq($_.textxalign, "left")) { //#3842 - $_.textxpos = $_.textxoffset; //#3842 - } //#3842 - if ($eq($_.textxalign, "right")) { //#3843 - $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3843 - } //#3843 - if ($eq($_.textxalign, "offleft")) { //#3844 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3844 - } //#3844 - if ($eq($_.textxalign, "offright")) { //#3845 - $_.textxpos = $_.pixx + $_.textxoffset; //#3845 - } //#3845 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3849 - $_.textxpos = 0; //#3847 - $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3848 - } //#3848 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3850 - if ($eq($_.textyalign, "above")) { //#3851 - $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3851 - } //#3851 - if ($eq($_.textyalign, "center")) { //#3852 - $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3852 - } //#3852 - $$.moveto($_.textxpos, $_.textypos); //#3853 - $$.show($_.tstr, $_.textgaps, 0); //#3853 - } //#3853 - } //#3853 - $$.restore(); //#3857 - $_ = Object.getPrototypeOf($_); //#3859 -} - + ]); //#3874 + $_.colormap = _4m; //#3874 + } //#3874 + var _4n = $_.colormap; //#3877 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#3883 + var _4o = _4r.next().value; //#3883 + var _4p = _4n.get(_4o); //#3883 + $k[$j++] = _4o; //#3878 + $k[$j++] = _4p; //#3878 + if ($ne(_4p, "unset")) { //#3878 + $$.setcolor($k[--$j]); //#3878 + } else { //#3878 + $j--; //#3878 + } //#3878 + $_.key = $k[--$j]; //#3879 + $k[$j++] = Infinity; //#3880 + var _4v = $_.pixs; //#3881 + for (var _4w = 0, _4x = _4v.length; _4w < _4x; _4w++) { //#3881 + var _50 = $eq($get(_4v, _4w), $_.key) ? 1 : 0; //#3881 + $k[$j++] = _50; //#3881 + } //#3881 + var _51 = $a(); //#3881 + $k[$j++] = _51; //#3882 + if ($_.dotty) { //#3882 + $_.drawlayerdots(); //#3882 + } else { //#3882 + $_.drawlayer(); //#3882 + } //#3882 + } //#3882 + if ($ne($_.textcolor, "unset")) { //#3886 + $$.setcolor($_.textcolor); //#3886 + } //#3886 + if ($_.includetext) { //#3947 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3945 + $_.s = 0; //#3889 + $_.fn = ""; //#3889 + var _59 = $_.txt; //#3890 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#3903 + $forall($get(_59, _5A)); //#3891 + var _5D = $k[--$j]; //#3892 + var _5E = $k[--$j]; //#3892 + $k[$j++] = _5E; //#3901 + $k[$j++] = _5D; //#3901 + if ((_5D != $_.s) || $ne(_5E, $_.fn)) { //#3900 + var _5H = $k[--$j]; //#3893 + $k[$j++] = _5H; //#3896 + if (_5H <= 0) { //#3896 + $j -= 5; //#3894 + $k[$j++] = 'bwipp.renmatrixFontTooSmall#3895'; //#3895 + $k[$j++] = "The font size is too small"; //#3895 + bwipp_raiseerror(); //#3895 + } //#3895 + var _5I = $k[--$j]; //#3897 + var _5J = $k[--$j]; //#3897 + $_.s = _5I; //#3897 + $_.fn = _5J; //#3897 + $$.selectfont(_5J, _5I); //#3898 + } else { //#3900 + $j -= 2; //#3900 + } //#3900 + var _5K = $k[--$j]; //#3902 + $$.moveto($k[--$j], _5K); //#3902 + $$.show($k[--$j], 0, 0); //#3902 + } //#3902 + } else { //#3945 + $$.selectfont($_.textfont, $_.textsize); //#3905 + if ($eq($_.alttext, "")) { //#3911 + $k[$j++] = Infinity; //#3907 + var _5Q = $_.txt; //#3907 + for (var _5R = 0, _5S = _5Q.length; _5R < _5S; _5R++) { //#3907 + $forall($get($get(_5Q, _5R), 0)); //#3907 + } //#3907 + $_.txt = $a(); //#3907 + $_.tstr = $s($_.txt.length); //#3908 + for (var _5a = 0, _5Z = $_.txt.length - 1; _5a <= _5Z; _5a += 1) { //#3909 + $put($_.tstr, _5a, $get($_.txt, _5a)); //#3909 + } //#3909 + } else { //#3911 + $_.tstr = $_.alttext; //#3911 + } //#3911 + if ($_.tstr.length == 0) { //#3921 + $k[$j++] = 0; //#3916 + } else { //#3921 + $$.save(); //#3918 + $$.newpath(); //#3919 + $$.moveto(0, 0); //#3919 + $$.charpath("0", false); //#3919 + var _5g = $$.pathbbox(); //#3919 + $$.restore(); //#3921 + $k[$j++] = _5g.ury; //#3921 + } //#3921 + $_.textascent = $k[--$j]; //#3930 + var _5j = $$.stringwidth($_.tstr); //#3931 + $_.textwidth = $f(_5j.w + (($_.tstr.length - 1) * $_.textgaps)); //#3931 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3933 + if ($eq($_.textxalign, "left")) { //#3934 + $_.textxpos = $_.textxoffset; //#3934 + } //#3934 + if ($eq($_.textxalign, "right")) { //#3935 + $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3935 + } //#3935 + if ($eq($_.textxalign, "offleft")) { //#3936 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3936 + } //#3936 + if ($eq($_.textxalign, "offright")) { //#3937 + $_.textxpos = $_.pixx + $_.textxoffset; //#3937 + } //#3937 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3941 + $_.textxpos = 0; //#3939 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3940 + } //#3940 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3942 + if ($eq($_.textyalign, "above")) { //#3943 + $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3943 + } //#3943 + if ($eq($_.textyalign, "center")) { //#3944 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3944 + } //#3944 + $$.moveto($_.textxpos, $_.textypos); //#3945 + $$.show($_.tstr, $_.textgaps, 0); //#3945 + } //#3945 + } //#3945 + $$.restore(); //#3949 + $_ = Object.getPrototypeOf($_); //#3951 +} //bwipp_renmatrix function bwipp_ean5() { - $_ = Object.create($_); //#3981 - $_.dontdraw = false; //#3984 - $_.includetext = false; //#3985 - $_.textfont = "OCR-B"; //#3986 - $_.textsize = 12; //#3987 - $_.textxoffset = 0; //#3988 - $_.textyoffset = null; //#3989 - $_.height = 0.7; //#3990 - $k[$j++] = $_; //#3992 - bwipp_processoptions(); //#3992 - $_.options = $k[--$j]; //#3992 - $_.barcode = $k[--$j]; //#3993 - if ($eq($_.textyoffset, null)) { //#3997 - $_.textyoffset = $f(($_.height * 72) + 1); //#3996 - } //#3996 - bwipp_loadctx(bwipp_ean5) //#3999 - if ($_.barcode.length != 5) { //#4004 - $k[$j++] = 'bwipp.ean5badLength#4003'; //#4003 - $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4003 - bwipp_raiseerror(); //#4003 - } //#4003 - $forall($_.barcode, function() { //#4009 - var _6 = $k[--$j]; //#4006 - if ((_6 < 48) || (_6 > 57)) { //#4008 - $k[$j++] = 'bwipp.ean5badCharacter#4007'; //#4007 - $k[$j++] = "EAN-5 add-on must contain only digits"; //#4007 - bwipp_raiseerror(); //#4007 - } //#4007 - }); //#4007 - if (!bwipp_ean5.__4027__) { //#4027 - $_ = Object.create($_); //#4027 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4017 - $_.barchars = "0123456789"; //#4020 - $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4026 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4026 - bwipp_ean5.__4027__ = 1; //#4026 - $_ = Object.getPrototypeOf($_); //#4026 - } //#4026 - $_.checksum = 0; //#4029 - for (var _A = 0; _A <= 4; _A += 1) { //#4038 - $_.i = _A; //#4031 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4032 - if (($_.i % 2) == 0) { //#4036 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4034 - } else { //#4036 - $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4036 - } //#4036 - } //#4036 - $_.checksum = $_.checksum % 10; //#4039 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4040 - $_.sbs = $s(31); //#4042 - $_.txt = $a(5); //#4043 - for (var _P = 0; _P <= 4; _P += 1) { //#4073 - $_.i = _P; //#4046 - if ($_.i == 0) { //#4052 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4050 - } else { //#4052 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4052 - } //#4052 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4056 - $j--; //#4057 - $_.indx = $k[--$j].length; //#4058 - $j -= 2; //#4059 - $_.enc = $get($_.encs, $_.indx); //#4060 - if ($get($_.mirrormap, $_.i) == 49) { //#4070 - $_.enclen = $_.enc.length; //#4062 - $_.revenc = $s($_.enclen); //#4063 - for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4068 - $_.j = _o; //#4065 - $_.char = $get($_.enc, $_.j); //#4066 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4067 - } //#4067 - $_.enc = $_.revenc; //#4069 - } //#4069 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4071 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4072 - } //#4072 - $k[$j++] = Infinity; //#4087 - $k[$j++] = Infinity; //#4078 - var _1B = $_.sbs; //#4078 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4078 - $k[$j++] = $get(_1B, _1C) - 48; //#4078 - } //#4078 - var _1F = $a(); //#4078 - $k[$j++] = Infinity; //#4079 - for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4079 - $k[$j++] = $_.height; //#4079 - } //#4079 - var _1J = $a(); //#4079 - $k[$j++] = Infinity; //#4080 - for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4080 - $k[$j++] = 0; //#4080 - } //#4080 - var _1M = $a(); //#4080 - $k[$j++] = 'ren'; //#4083 - $k[$j++] = bwipp_renlinear; //#4083 - $k[$j++] = 'sbs'; //#4083 - $k[$j++] = _1F; //#4083 - $k[$j++] = 'bhs'; //#4083 - $k[$j++] = _1J; //#4083 - $k[$j++] = 'bbs'; //#4083 - $k[$j++] = _1M; //#4083 - if ($_.includetext) { //#4083 - $k[$j++] = 'txt'; //#4082 - $k[$j++] = $_.txt; //#4082 - } //#4082 - $k[$j++] = 'opt'; //#4087 - $k[$j++] = $_.options; //#4087 - $k[$j++] = 'guardrightpos'; //#4087 - $k[$j++] = 10; //#4087 - $k[$j++] = 'guardrightypos'; //#4087 - $k[$j++] = $f($_.textyoffset + 4); //#4087 - $k[$j++] = 'bordertop'; //#4087 - $k[$j++] = 10; //#4087 - var _1R = $d(); //#4087 - $k[$j++] = _1R; //#4090 - if (!$_.dontdraw) { //#4090 - bwipp_renlinear(); //#4090 - } //#4090 - $_ = Object.getPrototypeOf($_); //#4092 - $_ = Object.getPrototypeOf($_); //#4094 -} - + $_ = Object.create($_); //#4099 + $_.dontdraw = false; //#4102 + $_.includetext = false; //#4103 + $_.textfont = "OCR-B"; //#4104 + $_.textsize = 12; //#4105 + $_.textxoffset = 0; //#4106 + $_.textyoffset = null; //#4107 + $_.height = 0.7; //#4108 + $k[$j++] = $_; //#4110 + bwipp_processoptions(); //#4110 + $_.options = $k[--$j]; //#4110 + $_.barcode = $k[--$j]; //#4111 + if ($eq($_.textyoffset, null)) { //#4115 + $_.textyoffset = $f(($_.height * 72) + 1); //#4114 + } //#4114 + bwipp_loadctx(bwipp_ean5) //#4117 + if ($_.barcode.length != 5) { //#4122 + $k[$j++] = 'bwipp.ean5badLength#4121'; //#4121 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4121 + bwipp_raiseerror(); //#4121 + } //#4121 + $forall($_.barcode, function() { //#4127 + var _6 = $k[--$j]; //#4124 + if ((_6 < 48) || (_6 > 57)) { //#4126 + $k[$j++] = 'bwipp.ean5badCharacter#4125'; //#4125 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#4125 + bwipp_raiseerror(); //#4125 + } //#4125 + }); //#4125 + if (!bwipp_ean5.__4145__) { //#4145 + $_ = Object.create($_); //#4145 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4135 + $_.barchars = "0123456789"; //#4138 + $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4144 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4144 + bwipp_ean5.__4145__ = 1; //#4144 + $_ = Object.getPrototypeOf($_); //#4144 + } //#4144 + $_.checksum = 0; //#4147 + for (var _A = 0; _A <= 4; _A += 1) { //#4156 + $_.i = _A; //#4149 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4150 + if (($_.i % 2) == 0) { //#4154 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4152 + } else { //#4154 + $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4154 + } //#4154 + } //#4154 + $_.checksum = $_.checksum % 10; //#4157 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4158 + $_.sbs = $s(31); //#4160 + $_.txt = $a(5); //#4161 + for (var _P = 0; _P <= 4; _P += 1) { //#4191 + $_.i = _P; //#4164 + if ($_.i == 0) { //#4170 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4168 + } else { //#4170 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4170 + } //#4170 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4174 + $j--; //#4175 + $_.indx = $k[--$j].length; //#4176 + $j -= 2; //#4177 + $_.enc = $get($_.encs, $_.indx); //#4178 + if ($get($_.mirrormap, $_.i) == 49) { //#4188 + $_.enclen = $_.enc.length; //#4180 + $_.revenc = $s($_.enclen); //#4181 + for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4186 + $_.j = _o; //#4183 + $_.char = $get($_.enc, $_.j); //#4184 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4185 + } //#4185 + $_.enc = $_.revenc; //#4187 + } //#4187 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4189 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4190 + } //#4190 + $k[$j++] = Infinity; //#4194 + $k[$j++] = Infinity; //#4196 + var _1B = $_.sbs; //#4196 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4196 + $k[$j++] = $get(_1B, _1C) - 48; //#4196 + } //#4196 + var _1F = $a(); //#4196 + $k[$j++] = Infinity; //#4197 + for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4197 + $k[$j++] = $_.height; //#4197 + } //#4197 + var _1J = $a(); //#4197 + $k[$j++] = Infinity; //#4198 + for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4198 + $k[$j++] = 0; //#4198 + } //#4198 + var _1M = $a(); //#4198 + $k[$j++] = 'ren'; //#4201 + $k[$j++] = bwipp_renlinear; //#4201 + $k[$j++] = 'sbs'; //#4201 + $k[$j++] = _1F; //#4201 + $k[$j++] = 'bhs'; //#4201 + $k[$j++] = _1J; //#4201 + $k[$j++] = 'bbs'; //#4201 + $k[$j++] = _1M; //#4201 + if ($_.includetext) { //#4201 + $k[$j++] = 'txt'; //#4200 + $k[$j++] = $_.txt; //#4200 + } //#4200 + $k[$j++] = 'opt'; //#4207 + $k[$j++] = $_.options; //#4207 + $k[$j++] = 'guardrightpos'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'guardrightypos'; //#4207 + $k[$j++] = $f($_.textyoffset + 4); //#4207 + $k[$j++] = 'borderleft'; //#4207 + $k[$j++] = 12; //#4207 + $k[$j++] = 'borderright'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'bordertop'; //#4207 + $k[$j++] = 10; //#4207 + var _1R = $d(); //#4207 + $k[$j++] = _1R; //#4210 + if (!$_.dontdraw) { //#4210 + bwipp_renlinear(); //#4210 + } //#4210 + $_ = Object.getPrototypeOf($_); //#4212 + $_ = Object.getPrototypeOf($_); //#4214 +} //bwipp_ean5 function bwipp_ean2() { - $_ = Object.create($_); //#4124 - $_.dontdraw = false; //#4127 - $_.includetext = false; //#4128 - $_.textfont = "OCR-B"; //#4129 - $_.textsize = 12; //#4130 - $_.textxoffset = 0; //#4131 - $_.textyoffset = null; //#4132 - $_.height = 0.7; //#4133 - $k[$j++] = $_; //#4135 - bwipp_processoptions(); //#4135 - $_.options = $k[--$j]; //#4135 - $_.barcode = $k[--$j]; //#4136 - if ($eq($_.textyoffset, null)) { //#4140 - $_.textyoffset = $f(($_.height * 72) + 1); //#4139 - } //#4139 - bwipp_loadctx(bwipp_ean2) //#4142 - if ($_.barcode.length != 2) { //#4147 - $k[$j++] = 'bwipp.ean2badLength#4146'; //#4146 - $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4146 - bwipp_raiseerror(); //#4146 - } //#4146 - $forall($_.barcode, function() { //#4152 - var _6 = $k[--$j]; //#4149 - if ((_6 < 48) || (_6 > 57)) { //#4151 - $k[$j++] = 'bwipp.ean2badCharacter#4150'; //#4150 - $k[$j++] = "EAN-2 add-on must contain only digits"; //#4150 - bwipp_raiseerror(); //#4150 - } //#4150 - }); //#4150 - if (!bwipp_ean2.__4167__) { //#4167 - $_ = Object.create($_); //#4167 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4160 - $_.barchars = "0123456789"; //#4163 - $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4166 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4166 - bwipp_ean2.__4167__ = 1; //#4166 - $_ = Object.getPrototypeOf($_); //#4166 - } //#4166 - $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4169 - $_.sbs = $s(13); //#4171 - $_.txt = $a(2); //#4172 - for (var _G = 0; _G <= 1; _G += 1) { //#4202 - $_.i = _G; //#4175 - if ($_.i == 0) { //#4181 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4179 - } else { //#4181 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4181 - } //#4181 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4185 - $j--; //#4186 - $_.indx = $k[--$j].length; //#4187 - $j -= 2; //#4188 - $_.enc = $get($_.encs, $_.indx); //#4189 - if ($get($_.mirrormap, $_.i) == 49) { //#4199 - $_.enclen = $_.enc.length; //#4191 - $_.revenc = $s($_.enclen); //#4192 - for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4197 - $_.j = _f; //#4194 - $_.char = $get($_.enc, $_.j); //#4195 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4196 - } //#4196 - $_.enc = $_.revenc; //#4198 - } //#4198 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4200 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4201 - } //#4201 - $k[$j++] = Infinity; //#4216 - $k[$j++] = Infinity; //#4207 - var _12 = $_.sbs; //#4207 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4207 - $k[$j++] = $get(_12, _13) - 48; //#4207 - } //#4207 - var _16 = $a(); //#4207 - $k[$j++] = Infinity; //#4208 - for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4208 - $k[$j++] = $_.height; //#4208 - } //#4208 - var _1A = $a(); //#4208 - $k[$j++] = Infinity; //#4209 - for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4209 - $k[$j++] = 0; //#4209 - } //#4209 - var _1D = $a(); //#4209 - $k[$j++] = 'ren'; //#4212 - $k[$j++] = bwipp_renlinear; //#4212 - $k[$j++] = 'sbs'; //#4212 - $k[$j++] = _16; //#4212 - $k[$j++] = 'bhs'; //#4212 - $k[$j++] = _1A; //#4212 - $k[$j++] = 'bbs'; //#4212 - $k[$j++] = _1D; //#4212 - if ($_.includetext) { //#4212 - $k[$j++] = 'txt'; //#4211 - $k[$j++] = $_.txt; //#4211 - } //#4211 - $k[$j++] = 'opt'; //#4216 - $k[$j++] = $_.options; //#4216 - $k[$j++] = 'guardrightpos'; //#4216 - $k[$j++] = 10; //#4216 - $k[$j++] = 'guardrightypos'; //#4216 - $k[$j++] = $f($_.textyoffset + 4); //#4216 - $k[$j++] = 'bordertop'; //#4216 - $k[$j++] = 10; //#4216 - var _1I = $d(); //#4216 - $k[$j++] = _1I; //#4219 - if (!$_.dontdraw) { //#4219 - bwipp_renlinear(); //#4219 - } //#4219 - $_ = Object.getPrototypeOf($_); //#4221 - $_ = Object.getPrototypeOf($_); //#4223 -} - + $_ = Object.create($_); //#4244 + $_.dontdraw = false; //#4247 + $_.includetext = false; //#4248 + $_.textfont = "OCR-B"; //#4249 + $_.textsize = 12; //#4250 + $_.textxoffset = 0; //#4251 + $_.textyoffset = null; //#4252 + $_.height = 0.7; //#4253 + $k[$j++] = $_; //#4255 + bwipp_processoptions(); //#4255 + $_.options = $k[--$j]; //#4255 + $_.barcode = $k[--$j]; //#4256 + if ($eq($_.textyoffset, null)) { //#4260 + $_.textyoffset = $f(($_.height * 72) + 1); //#4259 + } //#4259 + bwipp_loadctx(bwipp_ean2) //#4262 + if ($_.barcode.length != 2) { //#4267 + $k[$j++] = 'bwipp.ean2badLength#4266'; //#4266 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4266 + bwipp_raiseerror(); //#4266 + } //#4266 + $forall($_.barcode, function() { //#4272 + var _6 = $k[--$j]; //#4269 + if ((_6 < 48) || (_6 > 57)) { //#4271 + $k[$j++] = 'bwipp.ean2badCharacter#4270'; //#4270 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#4270 + bwipp_raiseerror(); //#4270 + } //#4270 + }); //#4270 + if (!bwipp_ean2.__4287__) { //#4287 + $_ = Object.create($_); //#4287 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4280 + $_.barchars = "0123456789"; //#4283 + $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4286 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4286 + bwipp_ean2.__4287__ = 1; //#4286 + $_ = Object.getPrototypeOf($_); //#4286 + } //#4286 + $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4289 + $_.sbs = $s(13); //#4291 + $_.txt = $a(2); //#4292 + for (var _G = 0; _G <= 1; _G += 1) { //#4322 + $_.i = _G; //#4295 + if ($_.i == 0) { //#4301 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4299 + } else { //#4301 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4301 + } //#4301 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4305 + $j--; //#4306 + $_.indx = $k[--$j].length; //#4307 + $j -= 2; //#4308 + $_.enc = $get($_.encs, $_.indx); //#4309 + if ($get($_.mirrormap, $_.i) == 49) { //#4319 + $_.enclen = $_.enc.length; //#4311 + $_.revenc = $s($_.enclen); //#4312 + for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4317 + $_.j = _f; //#4314 + $_.char = $get($_.enc, $_.j); //#4315 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4316 + } //#4316 + $_.enc = $_.revenc; //#4318 + } //#4318 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4320 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4321 + } //#4321 + $k[$j++] = Infinity; //#4325 + $k[$j++] = Infinity; //#4327 + var _12 = $_.sbs; //#4327 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4327 + $k[$j++] = $get(_12, _13) - 48; //#4327 + } //#4327 + var _16 = $a(); //#4327 + $k[$j++] = Infinity; //#4328 + for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4328 + $k[$j++] = $_.height; //#4328 + } //#4328 + var _1A = $a(); //#4328 + $k[$j++] = Infinity; //#4329 + for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4329 + $k[$j++] = 0; //#4329 + } //#4329 + var _1D = $a(); //#4329 + $k[$j++] = 'ren'; //#4332 + $k[$j++] = bwipp_renlinear; //#4332 + $k[$j++] = 'sbs'; //#4332 + $k[$j++] = _16; //#4332 + $k[$j++] = 'bhs'; //#4332 + $k[$j++] = _1A; //#4332 + $k[$j++] = 'bbs'; //#4332 + $k[$j++] = _1D; //#4332 + if ($_.includetext) { //#4332 + $k[$j++] = 'txt'; //#4331 + $k[$j++] = $_.txt; //#4331 + } //#4331 + $k[$j++] = 'opt'; //#4338 + $k[$j++] = $_.options; //#4338 + $k[$j++] = 'guardrightpos'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'guardrightypos'; //#4338 + $k[$j++] = $f($_.textyoffset + 4); //#4338 + $k[$j++] = 'borderleft'; //#4338 + $k[$j++] = 12; //#4338 + $k[$j++] = 'borderright'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'bordertop'; //#4338 + $k[$j++] = 10; //#4338 + var _1I = $d(); //#4338 + $k[$j++] = _1I; //#4341 + if (!$_.dontdraw) { //#4341 + bwipp_renlinear(); //#4341 + } //#4341 + $_ = Object.getPrototypeOf($_); //#4343 + $_ = Object.getPrototypeOf($_); //#4345 +} //bwipp_ean2 function bwipp_ean13() { - $_ = Object.create($_); //#4255 - $_.dontdraw = false; //#4258 - $_.includetext = false; //#4259 - $_.textfont = "OCR-B"; //#4260 - $_.textsize = 12; //#4261 - $_.textxoffset = -10; //#4262 - $_.textyoffset = -4; //#4263 - $_.height = 1; //#4264 - $_.addongap = 12; //#4265 - $_.addontextfont = "unset"; //#4266 - $_.addontextsize = null; //#4267 - $_.addontextxoffset = null; //#4268 - $_.addontextyoffset = null; //#4269 - $k[$j++] = $_; //#4271 - bwipp_processoptions(); //#4271 - $_.options = $k[--$j]; //#4271 - $_.barcode = $k[--$j]; //#4272 - bwipp_loadctx(bwipp_ean13) //#4274 - $search($_.barcode, " "); //#4277 - if ($k[--$j]) { //#4283 - $_.barcode = $k[--$j]; //#4278 - $j--; //#4279 - $_.addon = $k[--$j]; //#4280 - } else { //#4283 - $j--; //#4282 - $_.addon = ""; //#4283 - } //#4283 - if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4289 - $k[$j++] = 'bwipp.ean13badLength#4288'; //#4288 - $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4288 - bwipp_raiseerror(); //#4288 - } //#4288 - $forall($_.barcode, function() { //#4294 - var _9 = $k[--$j]; //#4291 - if ((_9 < 48) || (_9 > 57)) { //#4293 - $k[$j++] = 'bwipp.ean13badCharacter#4292'; //#4292 - $k[$j++] = "EAN-13 must contain only digits"; //#4292 - bwipp_raiseerror(); //#4292 - } //#4292 - }); //#4292 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4297 - $k[$j++] = 'bwipp.ean13badAddOnLength#4296'; //#4296 - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4296 - bwipp_raiseerror(); //#4296 - } //#4296 - $_.pad = $s(13); //#4300 - $_.checksum = 0; //#4301 - for (var _E = 0; _E <= 11; _E += 1) { //#4310 - $_.i = _E; //#4303 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4304 - if (($_.i % 2) == 0) { //#4308 - $_.checksum = $f($_.barchar + $_.checksum); //#4306 - } else { //#4308 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4308 - } //#4308 - } //#4308 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4311 - if ($_.barcode.length == 13) { //#4316 - if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4315 - $k[$j++] = 'bwipp.ean13badCheckDigit#4314'; //#4314 - $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4314 - bwipp_raiseerror(); //#4314 - } //#4314 - } //#4314 - $puti($_.pad, 0, $_.barcode); //#4317 - $put($_.pad, 12, $f($_.checksum + 48)); //#4318 - $_.barcode = $_.pad; //#4319 - if (!bwipp_ean13.__4337__) { //#4337 - $_ = Object.create($_); //#4337 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4327 - $_.barchars = "0123456789"; //#4330 - $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4336 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4336 - bwipp_ean13.__4337__ = 1; //#4336 - $_ = Object.getPrototypeOf($_); //#4336 - } //#4336 - $_.sbs = $s(59); //#4339 - $_.txt = $a(13); //#4340 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4343 - $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4346 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4347 - for (var _r = 1; _r <= 6; _r += 1) { //#4370 - $_.i = _r; //#4352 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4353 - $j--; //#4354 - $_.indx = $k[--$j].length; //#4355 - $j -= 2; //#4356 - $_.enc = $get($_.encs, $_.indx); //#4357 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#4367 - $_.enclen = $_.enc.length; //#4359 - $_.revenc = $s($_.enclen); //#4360 - for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4365 - $_.j = _18; //#4362 - $_.char = $get($_.enc, $_.j); //#4363 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4364 - } //#4364 - $_.enc = $_.revenc; //#4366 - } //#4366 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4368 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 14) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4369 - } //#4369 - $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4373 - for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4386 - $_.i = _1Y; //#4378 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4379 - $j--; //#4380 - $_.indx = $k[--$j].length; //#4381 - $j -= 2; //#4382 - $_.enc = $get($_.encs, $_.indx); //#4383 - $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4384 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4385 - } //#4385 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4389 - $k[$j++] = Infinity; //#4391 - var _1y = $_.sbs; //#4391 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4391 - $k[$j++] = $get(_1y, _1z) - 48; //#4391 - } //#4391 - $_.sbs = $a(); //#4391 - if ($_.includetext) { //#4398 - $k[$j++] = Infinity; //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - $_.bhs = $a(); //#4393 - $k[$j++] = Infinity; //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - $_.bbs = $a(); //#4394 - } else { //#4398 - $k[$j++] = Infinity; //#4396 - for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4396 - $k[$j++] = $_.height; //#4396 - } //#4396 - $_.bhs = $a(); //#4396 - $k[$j++] = Infinity; //#4397 - for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4397 - $k[$j++] = 0; //#4397 - } //#4397 - $_.bbs = $a(); //#4397 - $_.txt = $a([]); //#4398 - } //#4398 - $_.guardrightypos = 0; //#4400 - if ($ne($_.addon, "")) { //#4421 - $k[$j++] = Infinity; //#4411 - $k[$j++] = 'dontdraw'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'includetext'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'height'; //#4408 - $k[$j++] = $f($_.height - 0.15); //#4408 - $k[$j++] = 'textxoffset'; //#4408 - if ($ne($_.addontextxoffset, null)) { //#4408 - $k[$j++] = $_.addontextxoffset; //#4408 - } else { //#4408 - $k[$j++] = 95 + $_.addongap; //#4408 - } //#4408 - if ($ne($_.addontextyoffset, null)) { //#4409 - $k[$j++] = 'textyoffset'; //#4409 - $k[$j++] = $_.addontextyoffset; //#4409 - } //#4409 - $k[$j++] = 'textsize'; //#4410 - if ($ne($_.addontextsize, null)) { //#4410 - $k[$j++] = $_.addontextsize; //#4410 - } else { //#4410 - $k[$j++] = $_.textsize; //#4410 - } //#4410 - var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4411 - $k[$j++] = 'textfont'; //#4411 - $k[$j++] = _2f; //#4411 - $_.addopts = $d(); //#4412 - if ($_.addon.length == 2) { //#4413 - $k[$j++] = $_.addon; //#4413 - $k[$j++] = $_.addopts; //#4413 - bwipp_ean2(); //#4413 - } //#4413 - if ($_.addon.length == 5) { //#4414 - $k[$j++] = $_.addon; //#4414 - $k[$j++] = $_.addopts; //#4414 - bwipp_ean5(); //#4414 + $_ = Object.create($_); //#4377 + $_.dontdraw = false; //#4380 + $_.includetext = false; //#4381 + $_.textfont = "OCR-B"; //#4382 + $_.textsize = 12; //#4383 + $_.textxoffset = -11; //#4384 + $_.textyoffset = -4; //#4385 + $_.height = 1; //#4386 + $_.addongap = 12; //#4387 + $_.addontextfont = "unset"; //#4388 + $_.addontextsize = null; //#4389 + $_.addontextxoffset = null; //#4390 + $_.addontextyoffset = null; //#4391 + $k[$j++] = $_; //#4393 + bwipp_processoptions(); //#4393 + $_.options = $k[--$j]; //#4393 + $_.barcode = $k[--$j]; //#4394 + bwipp_loadctx(bwipp_ean13) //#4396 + $search($_.barcode, " "); //#4399 + if ($k[--$j]) { //#4405 + $_.barcode = $k[--$j]; //#4400 + $j--; //#4401 + $_.addon = $k[--$j]; //#4402 + } else { //#4405 + $j--; //#4404 + $_.addon = ""; //#4405 + } //#4405 + if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4411 + $k[$j++] = 'bwipp.ean13badLength#4410'; //#4410 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4410 + bwipp_raiseerror(); //#4410 + } //#4410 + $forall($_.barcode, function() { //#4416 + var _9 = $k[--$j]; //#4413 + if ((_9 < 48) || (_9 > 57)) { //#4415 + $k[$j++] = 'bwipp.ean13badCharacter#4414'; //#4414 + $k[$j++] = "EAN-13 must contain only digits"; //#4414 + bwipp_raiseerror(); //#4414 } //#4414 - $_.addcode = $k[--$j]; //#4415 - $k[$j++] = Infinity; //#4416 - $aload($_.sbs); //#4416 - $k[$j++] = $_.addongap; //#4416 - $aload($get($_.addcode, "sbs")); //#4416 - $_.sbs = $a(); //#4416 - $k[$j++] = Infinity; //#4417 - $aload($_.bhs); //#4417 - $forall($get($_.addcode, "bhs"), function() { //#4417 - var _2w = $k[--$j]; //#4417 - $k[$j++] = $f(_2w - 0.075); //#4417 - }); //#4417 - $_.bhs = $a(); //#4417 - $k[$j++] = Infinity; //#4418 - $aload($_.bbs); //#4418 - $forall($get($_.addcode, "bbs"), function() { //#4418 - var _31 = $k[--$j]; //#4418 - $k[$j++] = $f(_31 + 0.075); //#4418 - }); //#4418 - $_.bbs = $a(); //#4418 - $k[$j++] = Infinity; //#4419 - $aload($_.txt); //#4419 - $aload($get($_.addcode, "txt")); //#4419 - $_.txt = $a(); //#4419 - $_.guardrightypos = ($_.height * 72) - 6; //#4420 - } //#4420 - var _3E = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4433 - $k[$j++] = _3E; //#4436 - if (!$_.dontdraw) { //#4436 - bwipp_renlinear(); //#4436 + }); //#4414 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4419 + $k[$j++] = 'bwipp.ean13badAddOnLength#4418'; //#4418 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4418 + bwipp_raiseerror(); //#4418 + } //#4418 + $_.pad = $s(13); //#4422 + $_.checksum = 0; //#4423 + for (var _E = 0; _E <= 11; _E += 1) { //#4432 + $_.i = _E; //#4425 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4426 + if (($_.i % 2) == 0) { //#4430 + $_.checksum = $f($_.barchar + $_.checksum); //#4428 + } else { //#4430 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4430 + } //#4430 + } //#4430 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4433 + if ($_.barcode.length == 13) { //#4438 + if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4437 + $k[$j++] = 'bwipp.ean13badCheckDigit#4436'; //#4436 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4436 + bwipp_raiseerror(); //#4436 + } //#4436 } //#4436 - $_ = Object.getPrototypeOf($_); //#4438 - $_ = Object.getPrototypeOf($_); //#4440 -} - -function bwipp_ean8() { - $_ = Object.create($_); //#4472 - $_.dontdraw = false; //#4475 - $_.includetext = false; //#4476 - $_.textfont = "OCR-B"; //#4477 - $_.textsize = 12; //#4478 - $_.textxoffset = 4; //#4479 - $_.textyoffset = -4; //#4480 - $_.height = 1; //#4481 - $_.addongap = 12; //#4482 - $_.addontextfont = "unset"; //#4483 - $_.addontextsize = null; //#4484 - $_.addontextxoffset = null; //#4485 - $_.addontextyoffset = null; //#4486 - $k[$j++] = $_; //#4488 - bwipp_processoptions(); //#4488 - $_.options = $k[--$j]; //#4488 - $_.barcode = $k[--$j]; //#4489 - bwipp_loadctx(bwipp_ean8) //#4491 - $search($_.barcode, " "); //#4494 - if ($k[--$j]) { //#4500 - $_.barcode = $k[--$j]; //#4495 - $j--; //#4496 - $_.addon = $k[--$j]; //#4497 - } else { //#4500 - $j--; //#4499 - $_.addon = ""; //#4500 - } //#4500 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4506 - $k[$j++] = 'bwipp.ean8badLength#4505'; //#4505 - $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4505 - bwipp_raiseerror(); //#4505 - } //#4505 - $forall($_.barcode, function() { //#4511 - var _9 = $k[--$j]; //#4508 - if ((_9 < 48) || (_9 > 57)) { //#4510 - $k[$j++] = 'bwipp.ean8badCharacter#4509'; //#4509 - $k[$j++] = "EAN-8 must contain only digits"; //#4509 - bwipp_raiseerror(); //#4509 - } //#4509 - }); //#4509 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4514 - $k[$j++] = 'bwipp.ean8badAddOnLength#4513'; //#4513 - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4513 - bwipp_raiseerror(); //#4513 + $puti($_.pad, 0, $_.barcode); //#4439 + $put($_.pad, 12, $f($_.checksum + 48)); //#4440 + $_.barcode = $_.pad; //#4441 + if (!bwipp_ean13.__4459__) { //#4459 + $_ = Object.create($_); //#4459 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4449 + $_.barchars = "0123456789"; //#4452 + $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4458 + bwipp_ean13.__4459__ = 1; //#4458 + $_ = Object.getPrototypeOf($_); //#4458 + } //#4458 + $_.sbs = $s(59); //#4461 + $_.txt = $a(13); //#4462 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4465 + $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4468 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4469 + for (var _r = 1; _r <= 6; _r += 1) { //#4492 + $_.i = _r; //#4474 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4475 + $j--; //#4476 + $_.indx = $k[--$j].length; //#4477 + $j -= 2; //#4478 + $_.enc = $get($_.encs, $_.indx); //#4479 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#4489 + $_.enclen = $_.enc.length; //#4481 + $_.revenc = $s($_.enclen); //#4482 + for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4487 + $_.j = _18; //#4484 + $_.char = $get($_.enc, $_.j); //#4485 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4486 + } //#4486 + $_.enc = $_.revenc; //#4488 + } //#4488 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4490 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 15) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4491 + } //#4491 + $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4495 + for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4508 + $_.i = _1Y; //#4500 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4501 + $j--; //#4502 + $_.indx = $k[--$j].length; //#4503 + $j -= 2; //#4504 + $_.enc = $get($_.encs, $_.indx); //#4505 + $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4506 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 19) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4507 + } //#4507 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4511 + $k[$j++] = Infinity; //#4513 + var _1y = $_.sbs; //#4513 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4513 + $k[$j++] = $get(_1y, _1z) - 48; //#4513 } //#4513 - $_.pad = $s(8); //#4517 - $_.checksum = 0; //#4518 - for (var _E = 0; _E <= 6; _E += 1) { //#4527 - $_.i = _E; //#4520 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4521 - if (($_.i % 2) != 0) { //#4525 - $_.checksum = $f($_.barchar + $_.checksum); //#4523 - } else { //#4525 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4525 - } //#4525 - } //#4525 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4528 - if ($_.barcode.length == 8) { //#4533 - if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4532 - $k[$j++] = 'bwipp.ean8badCheckDigit#4531'; //#4531 - $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4531 - bwipp_raiseerror(); //#4531 + $_.sbs = $a(); //#4513 + if ($_.includetext) { //#4520 + $k[$j++] = Infinity; //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + $_.bhs = $a(); //#4515 + $k[$j++] = Infinity; //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + $_.bbs = $a(); //#4516 + } else { //#4520 + $k[$j++] = Infinity; //#4518 + for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4518 + $k[$j++] = $_.height; //#4518 + } //#4518 + $_.bhs = $a(); //#4518 + $k[$j++] = Infinity; //#4519 + for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4519 + $k[$j++] = 0; //#4519 + } //#4519 + $_.bbs = $a(); //#4519 + $_.txt = $a([]); //#4520 + } //#4520 + $_.guardrightypos = 0; //#4522 + if ($ne($_.addon, "")) { //#4543 + $k[$j++] = Infinity; //#4526 + $k[$j++] = 'dontdraw'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'includetext'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'height'; //#4530 + $k[$j++] = $f($_.height - 0.15); //#4530 + $k[$j++] = 'textxoffset'; //#4530 + if ($ne($_.addontextxoffset, null)) { //#4530 + $k[$j++] = $_.addontextxoffset; //#4530 + } else { //#4530 + $k[$j++] = 95 + $_.addongap; //#4530 + } //#4530 + if ($ne($_.addontextyoffset, null)) { //#4531 + $k[$j++] = 'textyoffset'; //#4531 + $k[$j++] = $_.addontextyoffset; //#4531 } //#4531 - } //#4531 - $puti($_.pad, 0, $_.barcode); //#4534 - $put($_.pad, 7, $f($_.checksum + 48)); //#4535 - $_.barcode = $_.pad; //#4536 - if (!bwipp_ean8.__4548__) { //#4548 - $_ = Object.create($_); //#4548 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4544 - $_.barchars = "0123456789"; //#4547 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4547 - bwipp_ean8.__4548__ = 1; //#4547 - $_ = Object.getPrototypeOf($_); //#4547 - } //#4547 - $_.sbs = $s(43); //#4550 - $_.txt = $a(8); //#4551 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4554 - for (var _e = 0; _e <= 3; _e += 1) { //#4567 - $_.i = _e; //#4559 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4560 - $j--; //#4561 - $_.indx = $k[--$j].length; //#4562 - $j -= 2; //#4563 - $_.enc = $get($_.encs, $_.indx); //#4564 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4565 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4566 - } //#4566 - $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4570 - for (var _14 = 4; _14 <= 7; _14 += 1) { //#4583 - $_.i = _14; //#4575 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4576 - $j--; //#4577 - $_.indx = $k[--$j].length; //#4578 - $j -= 2; //#4579 - $_.enc = $get($_.encs, $_.indx); //#4580 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4581 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4582 - } //#4582 - $puti($_.sbs, 40, $get($_.encs, 12)); //#4586 - $k[$j++] = Infinity; //#4588 - var _1U = $_.sbs; //#4588 - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4588 - $k[$j++] = $get(_1U, _1V) - 48; //#4588 - } //#4588 - $_.sbs = $a(); //#4588 - if ($_.includetext) { //#4595 - $k[$j++] = Infinity; //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - $_.bhs = $a(); //#4590 - $k[$j++] = Infinity; //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - $_.bbs = $a(); //#4591 - } else { //#4595 - $k[$j++] = Infinity; //#4593 - for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4593 - $k[$j++] = $_.height; //#4593 - } //#4593 - $_.bhs = $a(); //#4593 - $k[$j++] = Infinity; //#4594 - for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4594 - $k[$j++] = 0; //#4594 - } //#4594 - $_.bbs = $a(); //#4594 - $_.txt = $a([]); //#4595 - } //#4595 - $_.guardrightypos = 0; //#4597 - if ($ne($_.addon, "")) { //#4618 - $k[$j++] = Infinity; //#4608 - $k[$j++] = 'dontdraw'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'includetext'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'height'; //#4605 - $k[$j++] = $f($_.height - 0.15); //#4605 - $k[$j++] = 'textxoffset'; //#4605 - if ($ne($_.addontextxoffset, null)) { //#4605 - $k[$j++] = $_.addontextxoffset; //#4605 - } else { //#4605 - $k[$j++] = 67 + $_.addongap; //#4605 - } //#4605 - if ($ne($_.addontextyoffset, null)) { //#4606 - $k[$j++] = 'textyoffset'; //#4606 - $k[$j++] = $_.addontextyoffset; //#4606 - } //#4606 - $k[$j++] = 'textsize'; //#4607 - if ($ne($_.addontextsize, null)) { //#4607 - $k[$j++] = $_.addontextsize; //#4607 - } else { //#4607 - $k[$j++] = $_.textsize; //#4607 - } //#4607 - var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4608 - $k[$j++] = 'textfont'; //#4608 - $k[$j++] = _2B; //#4608 - $_.addopts = $d(); //#4609 - if ($_.addon.length == 2) { //#4610 - $k[$j++] = $_.addon; //#4610 - $k[$j++] = $_.addopts; //#4610 - bwipp_ean2(); //#4610 - } //#4610 - if ($_.addon.length == 5) { //#4611 - $k[$j++] = $_.addon; //#4611 - $k[$j++] = $_.addopts; //#4611 - bwipp_ean5(); //#4611 - } //#4611 - $_.addcode = $k[--$j]; //#4612 - $k[$j++] = Infinity; //#4613 - $aload($_.sbs); //#4613 - $k[$j++] = $_.addongap; //#4613 - $aload($get($_.addcode, "sbs")); //#4613 - $_.sbs = $a(); //#4613 - $k[$j++] = Infinity; //#4614 - $aload($_.bhs); //#4614 - $forall($get($_.addcode, "bhs"), function() { //#4614 - var _2S = $k[--$j]; //#4614 - $k[$j++] = $f(_2S - 0.075); //#4614 - }); //#4614 - $_.bhs = $a(); //#4614 - $k[$j++] = Infinity; //#4615 - $aload($_.bbs); //#4615 - $forall($get($_.addcode, "bbs"), function() { //#4615 - var _2X = $k[--$j]; //#4615 - $k[$j++] = $f(_2X + 0.075); //#4615 - }); //#4615 - $_.bbs = $a(); //#4615 - $k[$j++] = Infinity; //#4616 - $aload($_.txt); //#4616 - $aload($get($_.addcode, "txt")); //#4616 - $_.txt = $a(); //#4616 - $_.guardrightypos = ($_.height * 72) - 6; //#4617 - } //#4617 - var _2k = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardleftpos", 10], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4631 - $k[$j++] = _2k; //#4634 - if (!$_.dontdraw) { //#4634 - bwipp_renlinear(); //#4634 - } //#4634 - $_ = Object.getPrototypeOf($_); //#4636 - $_ = Object.getPrototypeOf($_); //#4638 -} - + $k[$j++] = 'textsize'; //#4532 + if ($ne($_.addontextsize, null)) { //#4532 + $k[$j++] = $_.addontextsize; //#4532 + } else { //#4532 + $k[$j++] = $_.textsize; //#4532 + } //#4532 + var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4533 + $k[$j++] = 'textfont'; //#4533 + $k[$j++] = _2f; //#4533 + $_.addopts = $d(); //#4534 + if ($_.addon.length == 2) { //#4535 + $k[$j++] = $_.addon; //#4535 + $k[$j++] = $_.addopts; //#4535 + bwipp_ean2(); //#4535 + } //#4535 + if ($_.addon.length == 5) { //#4536 + $k[$j++] = $_.addon; //#4536 + $k[$j++] = $_.addopts; //#4536 + bwipp_ean5(); //#4536 + } //#4536 + $_.addcode = $k[--$j]; //#4537 + $k[$j++] = Infinity; //#4538 + $aload($_.sbs); //#4538 + $k[$j++] = $_.addongap; //#4538 + $aload($get($_.addcode, "sbs")); //#4538 + $_.sbs = $a(); //#4538 + $k[$j++] = Infinity; //#4539 + $aload($_.bhs); //#4539 + $forall($get($_.addcode, "bhs"), function() { //#4539 + var _2w = $k[--$j]; //#4539 + $k[$j++] = $f(_2w - 0.075); //#4539 + }); //#4539 + $_.bhs = $a(); //#4539 + $k[$j++] = Infinity; //#4540 + $aload($_.bbs); //#4540 + $forall($get($_.addcode, "bbs"), function() { //#4540 + var _31 = $k[--$j]; //#4540 + $k[$j++] = $f(_31 + 0.075); //#4540 + }); //#4540 + $_.bbs = $a(); //#4540 + $k[$j++] = Infinity; //#4541 + $aload($_.txt); //#4541 + $aload($get($_.addcode, "txt")); //#4541 + $_.txt = $a(); //#4541 + $_.guardrightypos = ($_.height * 72) - 6; //#4542 + } //#4542 + $k[$j++] = Infinity; //#4546 + $k[$j++] = 'ren'; //#4553 + $k[$j++] = bwipp_renlinear; //#4553 + $k[$j++] = 'sbs'; //#4553 + $k[$j++] = $_.sbs; //#4553 + $k[$j++] = 'bhs'; //#4553 + $k[$j++] = $_.bhs; //#4553 + $k[$j++] = 'bbs'; //#4553 + $k[$j++] = $_.bbs; //#4553 + $k[$j++] = 'txt'; //#4553 + $k[$j++] = $_.txt; //#4553 + $k[$j++] = 'opt'; //#4553 + $k[$j++] = $_.options; //#4553 + $k[$j++] = 'guardrightpos'; //#4553 + if ($eq($_.addon, "")) { //#4553 + $k[$j++] = 7; //#4553 + } else { //#4553 + $k[$j++] = 5; //#4553 + } //#4553 + $k[$j++] = 'guardrightypos'; //#4556 + $k[$j++] = $_.guardrightypos; //#4556 + $k[$j++] = 'borderleft'; //#4556 + $k[$j++] = 11; //#4556 + $k[$j++] = 'borderright'; //#4556 + if ($eq($_.addon, "")) { //#4556 + $k[$j++] = 7; //#4556 + } else { //#4556 + $k[$j++] = 5; //#4556 + } //#4556 + $k[$j++] = 'bordertop'; //#4558 + $k[$j++] = 0; //#4558 + $k[$j++] = 'borderbottom'; //#4558 + $k[$j++] = 5; //#4558 + var _3G = $d(); //#4558 + $k[$j++] = _3G; //#4561 + if (!$_.dontdraw) { //#4561 + bwipp_renlinear(); //#4561 + } //#4561 + $_ = Object.getPrototypeOf($_); //#4563 + $_ = Object.getPrototypeOf($_); //#4565 +} //bwipp_ean13 +function bwipp_ean8() { + $_ = Object.create($_); //#4597 + $_.dontdraw = false; //#4600 + $_.includetext = false; //#4601 + $_.textfont = "OCR-B"; //#4602 + $_.textsize = 12; //#4603 + $_.textxoffset = 4; //#4604 + $_.textyoffset = -4; //#4605 + $_.height = 1; //#4606 + $_.addongap = 12; //#4607 + $_.addontextfont = "unset"; //#4608 + $_.addontextsize = null; //#4609 + $_.addontextxoffset = null; //#4610 + $_.addontextyoffset = null; //#4611 + $k[$j++] = $_; //#4613 + bwipp_processoptions(); //#4613 + $_.options = $k[--$j]; //#4613 + $_.barcode = $k[--$j]; //#4614 + bwipp_loadctx(bwipp_ean8) //#4616 + $search($_.barcode, " "); //#4619 + if ($k[--$j]) { //#4625 + $_.barcode = $k[--$j]; //#4620 + $j--; //#4621 + $_.addon = $k[--$j]; //#4622 + } else { //#4625 + $j--; //#4624 + $_.addon = ""; //#4625 + } //#4625 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4631 + $k[$j++] = 'bwipp.ean8badLength#4630'; //#4630 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4630 + bwipp_raiseerror(); //#4630 + } //#4630 + $forall($_.barcode, function() { //#4636 + var _9 = $k[--$j]; //#4633 + if ((_9 < 48) || (_9 > 57)) { //#4635 + $k[$j++] = 'bwipp.ean8badCharacter#4634'; //#4634 + $k[$j++] = "EAN-8 must contain only digits"; //#4634 + bwipp_raiseerror(); //#4634 + } //#4634 + }); //#4634 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4639 + $k[$j++] = 'bwipp.ean8badAddOnLength#4638'; //#4638 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4638 + bwipp_raiseerror(); //#4638 + } //#4638 + $_.pad = $s(8); //#4642 + $_.checksum = 0; //#4643 + for (var _E = 0; _E <= 6; _E += 1) { //#4652 + $_.i = _E; //#4645 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4646 + if (($_.i % 2) != 0) { //#4650 + $_.checksum = $f($_.barchar + $_.checksum); //#4648 + } else { //#4650 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4650 + } //#4650 + } //#4650 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4653 + if ($_.barcode.length == 8) { //#4658 + if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4657 + $k[$j++] = 'bwipp.ean8badCheckDigit#4656'; //#4656 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4656 + bwipp_raiseerror(); //#4656 + } //#4656 + } //#4656 + $puti($_.pad, 0, $_.barcode); //#4659 + $put($_.pad, 7, $f($_.checksum + 48)); //#4660 + $_.barcode = $_.pad; //#4661 + if (!bwipp_ean8.__4673__) { //#4673 + $_ = Object.create($_); //#4673 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4669 + $_.barchars = "0123456789"; //#4672 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4672 + bwipp_ean8.__4673__ = 1; //#4672 + $_ = Object.getPrototypeOf($_); //#4672 + } //#4672 + $_.sbs = $s(43); //#4675 + $_.txt = $a(8); //#4676 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4679 + for (var _e = 0; _e <= 3; _e += 1) { //#4692 + $_.i = _e; //#4684 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4685 + $j--; //#4686 + $_.indx = $k[--$j].length; //#4687 + $j -= 2; //#4688 + $_.enc = $get($_.encs, $_.indx); //#4689 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4690 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4691 + } //#4691 + $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4695 + for (var _14 = 4; _14 <= 7; _14 += 1) { //#4708 + $_.i = _14; //#4700 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4701 + $j--; //#4702 + $_.indx = $k[--$j].length; //#4703 + $j -= 2; //#4704 + $_.enc = $get($_.encs, $_.indx); //#4705 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4706 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4707 + } //#4707 + $puti($_.sbs, 40, $get($_.encs, 12)); //#4711 + $k[$j++] = Infinity; //#4713 + var _1U = $_.sbs; //#4713 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4713 + $k[$j++] = $get(_1U, _1V) - 48; //#4713 + } //#4713 + $_.sbs = $a(); //#4713 + if ($_.includetext) { //#4720 + $k[$j++] = Infinity; //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + $_.bhs = $a(); //#4715 + $k[$j++] = Infinity; //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + $_.bbs = $a(); //#4716 + } else { //#4720 + $k[$j++] = Infinity; //#4718 + for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4718 + $k[$j++] = $_.height; //#4718 + } //#4718 + $_.bhs = $a(); //#4718 + $k[$j++] = Infinity; //#4719 + for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4719 + $k[$j++] = 0; //#4719 + } //#4719 + $_.bbs = $a(); //#4719 + $_.txt = $a([]); //#4720 + } //#4720 + $_.guardrightypos = 0; //#4722 + if ($ne($_.addon, "")) { //#4743 + $k[$j++] = Infinity; //#4726 + $k[$j++] = 'dontdraw'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'includetext'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'height'; //#4730 + $k[$j++] = $f($_.height - 0.15); //#4730 + $k[$j++] = 'textxoffset'; //#4730 + if ($ne($_.addontextxoffset, null)) { //#4730 + $k[$j++] = $_.addontextxoffset; //#4730 + } else { //#4730 + $k[$j++] = 67 + $_.addongap; //#4730 + } //#4730 + if ($ne($_.addontextyoffset, null)) { //#4731 + $k[$j++] = 'textyoffset'; //#4731 + $k[$j++] = $_.addontextyoffset; //#4731 + } //#4731 + $k[$j++] = 'textsize'; //#4732 + if ($ne($_.addontextsize, null)) { //#4732 + $k[$j++] = $_.addontextsize; //#4732 + } else { //#4732 + $k[$j++] = $_.textsize; //#4732 + } //#4732 + var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4733 + $k[$j++] = 'textfont'; //#4733 + $k[$j++] = _2B; //#4733 + $_.addopts = $d(); //#4734 + if ($_.addon.length == 2) { //#4735 + $k[$j++] = $_.addon; //#4735 + $k[$j++] = $_.addopts; //#4735 + bwipp_ean2(); //#4735 + } //#4735 + if ($_.addon.length == 5) { //#4736 + $k[$j++] = $_.addon; //#4736 + $k[$j++] = $_.addopts; //#4736 + bwipp_ean5(); //#4736 + } //#4736 + $_.addcode = $k[--$j]; //#4737 + $k[$j++] = Infinity; //#4738 + $aload($_.sbs); //#4738 + $k[$j++] = $_.addongap; //#4738 + $aload($get($_.addcode, "sbs")); //#4738 + $_.sbs = $a(); //#4738 + $k[$j++] = Infinity; //#4739 + $aload($_.bhs); //#4739 + $forall($get($_.addcode, "bhs"), function() { //#4739 + var _2S = $k[--$j]; //#4739 + $k[$j++] = $f(_2S - 0.075); //#4739 + }); //#4739 + $_.bhs = $a(); //#4739 + $k[$j++] = Infinity; //#4740 + $aload($_.bbs); //#4740 + $forall($get($_.addcode, "bbs"), function() { //#4740 + var _2X = $k[--$j]; //#4740 + $k[$j++] = $f(_2X + 0.075); //#4740 + }); //#4740 + $_.bbs = $a(); //#4740 + $k[$j++] = Infinity; //#4741 + $aload($_.txt); //#4741 + $aload($get($_.addcode, "txt")); //#4741 + $_.txt = $a(); //#4741 + $_.guardrightypos = ($_.height * 72) - 6; //#4742 + } //#4742 + $k[$j++] = Infinity; //#4746 + $k[$j++] = 'ren'; //#4754 + $k[$j++] = bwipp_renlinear; //#4754 + $k[$j++] = 'sbs'; //#4754 + $k[$j++] = $_.sbs; //#4754 + $k[$j++] = 'bhs'; //#4754 + $k[$j++] = $_.bhs; //#4754 + $k[$j++] = 'bbs'; //#4754 + $k[$j++] = $_.bbs; //#4754 + $k[$j++] = 'txt'; //#4754 + $k[$j++] = $_.txt; //#4754 + $k[$j++] = 'opt'; //#4754 + $k[$j++] = $_.options; //#4754 + $k[$j++] = 'guardleftpos'; //#4754 + $k[$j++] = 7; //#4754 + $k[$j++] = 'guardrightpos'; //#4754 + if ($eq($_.addon, "")) { //#4754 + $k[$j++] = 7; //#4754 + } else { //#4754 + $k[$j++] = 5; //#4754 + } //#4754 + $k[$j++] = 'guardrightypos'; //#4757 + $k[$j++] = $_.guardrightypos; //#4757 + $k[$j++] = 'borderleft'; //#4757 + $k[$j++] = 7; //#4757 + $k[$j++] = 'borderright'; //#4757 + if ($eq($_.addon, "")) { //#4757 + $k[$j++] = 7; //#4757 + } else { //#4757 + $k[$j++] = 5; //#4757 + } //#4757 + $k[$j++] = 'bordertop'; //#4759 + $k[$j++] = 0; //#4759 + $k[$j++] = 'borderbottom'; //#4759 + $k[$j++] = 5; //#4759 + var _2m = $d(); //#4759 + $k[$j++] = _2m; //#4762 + if (!$_.dontdraw) { //#4762 + bwipp_renlinear(); //#4762 + } //#4762 + $_ = Object.getPrototypeOf($_); //#4764 + $_ = Object.getPrototypeOf($_); //#4766 +} //bwipp_ean8 function bwipp_upca() { - $_ = Object.create($_); //#4670 - $_.dontdraw = false; //#4673 - $_.includetext = false; //#4674 - $_.textfont = "OCR-B"; //#4675 - $_.textsize = 12; //#4676 - $_.textxoffset = -7; //#4677 - $_.textyoffset = -4; //#4678 - $_.height = 1; //#4679 - $_.addongap = 12; //#4680 - $_.addontextfont = "unset"; //#4681 - $_.addontextsize = null; //#4682 - $_.addontextxoffset = null; //#4683 - $_.addontextyoffset = null; //#4684 - $k[$j++] = $_; //#4686 - bwipp_processoptions(); //#4686 - $_.options = $k[--$j]; //#4686 - $_.barcode = $k[--$j]; //#4687 - bwipp_loadctx(bwipp_upca) //#4689 - $search($_.barcode, " "); //#4692 - if ($k[--$j]) { //#4698 - $_.barcode = $k[--$j]; //#4693 - $j--; //#4694 - $_.addon = $k[--$j]; //#4695 - } else { //#4698 - $j--; //#4697 - $_.addon = ""; //#4698 - } //#4698 - if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4744 - $forall($_.barcode, function() { //#4708 - var _9 = $k[--$j]; //#4705 - if ((_9 < 48) || (_9 > 57)) { //#4707 - $k[$j++] = 'bwipp.upcAupcEbadCharacter#4706'; //#4706 - $k[$j++] = "UPC-E must contain only digits"; //#4706 - bwipp_raiseerror(); //#4706 - } //#4706 - }); //#4706 - var _B = $get($_.barcode, 0); //#4709 - if ((_B != 48) && (_B != 49)) { //#4711 - $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4710'; //#4710 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#4710 - bwipp_raiseerror(); //#4710 - } //#4710 - for (var _C = 0, _D = 1; _C < _D; _C++) { //#4739 - var _F = ($_.barcode.length == 8) ? 12 : 11; //#4713 - $_.upcacode = $s(_F); //#4713 - if ($f($get($_.barcode, 6) - 48) <= 2) { //#4720 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4715 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4716 - $puti($_.upcacode, 4, "0000"); //#4717 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4718 - break; //#4719 - } //#4719 - if ($f($get($_.barcode, 6) - 48) == 3) { //#4726 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4722 - $puti($_.upcacode, 4, "00000"); //#4723 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4724 - break; //#4725 - } //#4725 - if ($f($get($_.barcode, 6) - 48) == 4) { //#4732 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4728 - $puti($_.upcacode, 5, "00000"); //#4729 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4730 - break; //#4731 - } //#4731 - if ($f($get($_.barcode, 6) - 48) >= 5) { //#4738 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4734 - $puti($_.upcacode, 6, "0000"); //#4735 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4736 - break; //#4737 - } //#4737 - } //#4737 - if ($_.barcode.length == 8) { //#4742 - $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4741 - } //#4741 - $_.barcode = $_.upcacode; //#4743 - } //#4743 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4749 - $k[$j++] = 'bwipp.upcAbadLength#4748'; //#4748 - $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4748 - bwipp_raiseerror(); //#4748 - } //#4748 - var _11 = $_.barcode; //#4750 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4754 - var _14 = $get(_11, _12); //#4754 - if ((_14 < 48) || (_14 > 57)) { //#4753 - $k[$j++] = 'bwipp.upcAbadCharacter#4752'; //#4752 - $k[$j++] = "UPC-A must contain only digits"; //#4752 - bwipp_raiseerror(); //#4752 - } //#4752 - } //#4752 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4757 - $k[$j++] = 'bwipp.upcAbadAddOnLength#4756'; //#4756 - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4756 - bwipp_raiseerror(); //#4756 - } //#4756 - $_.pad = $s(12); //#4760 - $_.checksum = 0; //#4761 - for (var _19 = 0; _19 <= 10; _19 += 1) { //#4770 - $_.i = _19; //#4763 - $_.barchar = $get($_.barcode, $_.i) - 48; //#4764 - if (($_.i % 2) != 0) { //#4768 - $_.checksum = $_.checksum + $_.barchar; //#4766 - } else { //#4768 - $_.checksum = $_.checksum + ($_.barchar * 3); //#4768 - } //#4768 - } //#4768 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4771 - if ($_.barcode.length == 12) { //#4776 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4775 - $k[$j++] = 'bwipp.upcAbadCheckDigit#4774'; //#4774 - $k[$j++] = "Incorrect UPC check digit provided"; //#4774 - bwipp_raiseerror(); //#4774 - } //#4774 - } //#4774 - $puti($_.pad, 0, $_.barcode); //#4777 - $put($_.pad, 11, $_.checksum + 48); //#4778 - $_.barcode = $_.pad; //#4779 - if (!bwipp_upca.__4791__) { //#4791 - $_ = Object.create($_); //#4791 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4787 - $_.barchars = "0123456789"; //#4790 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4790 - bwipp_upca.__4791__ = 1; //#4790 - $_ = Object.getPrototypeOf($_); //#4790 - } //#4790 - $_.sbs = $s(59); //#4793 - $_.txt = $a(12); //#4794 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4797 - for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4814 - $_.i = _1Z; //#4802 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4803 - $j--; //#4804 - $_.indx = $k[--$j].length; //#4805 - $j -= 2; //#4806 - $_.enc = $get($_.encs, $_.indx); //#4807 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4808 - if ($_.i == 0) { //#4812 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4810 - } else { //#4812 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4812 - } //#4812 - } //#4812 - $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4817 - for (var _28 = 6; _28 <= 11; _28 += 1) { //#4834 - $_.i = _28; //#4822 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4823 - $j--; //#4824 - $_.indx = $k[--$j].length; //#4825 - $j -= 2; //#4826 - $_.enc = $get($_.encs, $_.indx); //#4827 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4828 - if ($_.i == 11) { //#4832 - $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 104, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4830 - } else { //#4832 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 15, $_.textyoffset, $_.textfont, $_.textsize])); //#4832 - } //#4832 - } //#4832 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4837 - $k[$j++] = Infinity; //#4839 - var _2h = $_.sbs; //#4839 - for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4839 - $k[$j++] = $get(_2h, _2i) - 48; //#4839 - } //#4839 - $_.sbs = $a(); //#4839 - if ($_.includetext) { //#4846 - $k[$j++] = Infinity; //#4841 - for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - $k[$j++] = $_.height; //#4841 - $k[$j++] = $_.height; //#4841 - for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - $_.bhs = $a(); //#4841 - $k[$j++] = Infinity; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $_.bbs = $a(); //#4842 - } else { //#4846 - $k[$j++] = Infinity; //#4844 - for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4844 - $k[$j++] = $_.height; //#4844 - } //#4844 - $_.bhs = $a(); //#4844 - $k[$j++] = Infinity; //#4845 - for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4845 - $k[$j++] = 0; //#4845 - } //#4845 - $_.bbs = $a(); //#4845 - $_.txt = $a([]); //#4846 - } //#4846 - $_.guardrightypos = 0; //#4848 - if ($ne($_.addon, "")) { //#4869 - $k[$j++] = Infinity; //#4859 - $k[$j++] = 'dontdraw'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'includetext'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'height'; //#4856 - $k[$j++] = $f($_.height - 0.15); //#4856 - $k[$j++] = 'textxoffset'; //#4856 - if ($ne($_.addontextxoffset, null)) { //#4856 - $k[$j++] = $_.addontextxoffset; //#4856 - } else { //#4856 - $k[$j++] = 95 + $_.addongap; //#4856 - } //#4856 - if ($ne($_.addontextyoffset, null)) { //#4857 - $k[$j++] = 'textyoffset'; //#4857 - $k[$j++] = $_.addontextyoffset; //#4857 - } //#4857 - $k[$j++] = 'textsize'; //#4858 - if ($ne($_.addontextsize, null)) { //#4858 - $k[$j++] = $_.addontextsize; //#4858 - } else { //#4858 - $k[$j++] = $_.textsize; //#4858 - } //#4858 - var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4859 - $k[$j++] = 'textfont'; //#4859 - $k[$j++] = _3Q; //#4859 - $_.addopts = $d(); //#4860 - if ($_.addon.length == 2) { //#4861 - $k[$j++] = $_.addon; //#4861 - $k[$j++] = $_.addopts; //#4861 - bwipp_ean2(); //#4861 - } //#4861 - if ($_.addon.length == 5) { //#4862 - $k[$j++] = $_.addon; //#4862 - $k[$j++] = $_.addopts; //#4862 - bwipp_ean5(); //#4862 - } //#4862 - $_.addcode = $k[--$j]; //#4863 - $k[$j++] = Infinity; //#4864 - $aload($_.sbs); //#4864 - $k[$j++] = $_.addongap; //#4864 - $aload($get($_.addcode, "sbs")); //#4864 - $_.sbs = $a(); //#4864 - $k[$j++] = Infinity; //#4865 - $aload($_.bhs); //#4865 - $forall($get($_.addcode, "bhs"), function() { //#4865 - var _3h = $k[--$j]; //#4865 - $k[$j++] = $f(_3h - 0.075); //#4865 - }); //#4865 - $_.bhs = $a(); //#4865 - $k[$j++] = Infinity; //#4866 - $aload($_.bbs); //#4866 - $forall($get($_.addcode, "bbs"), function() { //#4866 - var _3m = $k[--$j]; //#4866 - $k[$j++] = $f(_3m + 0.075); //#4866 - }); //#4866 - $_.bbs = $a(); //#4866 - $k[$j++] = Infinity; //#4867 - $aload($_.txt); //#4867 - $aload($get($_.addcode, "txt")); //#4867 - $_.txt = $a(); //#4867 - $_.guardrightypos = ($_.height * 72) - 6; //#4868 - } //#4868 - var _3z = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4881 - $k[$j++] = _3z; //#4884 - if (!$_.dontdraw) { //#4884 - bwipp_renlinear(); //#4884 + $_ = Object.create($_); //#4798 + $_.dontdraw = false; //#4801 + $_.includetext = false; //#4802 + $_.textfont = "OCR-B"; //#4803 + $_.textsize = 12; //#4804 + $_.textxoffset = -9; //#4805 + $_.textyoffset = -4; //#4806 + $_.height = 1; //#4807 + $_.addongap = 12; //#4808 + $_.addontextfont = "unset"; //#4809 + $_.addontextsize = null; //#4810 + $_.addontextxoffset = null; //#4811 + $_.addontextyoffset = null; //#4812 + $k[$j++] = $_; //#4814 + bwipp_processoptions(); //#4814 + $_.options = $k[--$j]; //#4814 + $_.barcode = $k[--$j]; //#4815 + bwipp_loadctx(bwipp_upca) //#4817 + $search($_.barcode, " "); //#4820 + if ($k[--$j]) { //#4826 + $_.barcode = $k[--$j]; //#4821 + $j--; //#4822 + $_.addon = $k[--$j]; //#4823 + } else { //#4826 + $j--; //#4825 + $_.addon = ""; //#4826 + } //#4826 + if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4872 + $forall($_.barcode, function() { //#4836 + var _9 = $k[--$j]; //#4833 + if ((_9 < 48) || (_9 > 57)) { //#4835 + $k[$j++] = 'bwipp.upcAupcEbadCharacter#4834'; //#4834 + $k[$j++] = "UPC-E must contain only digits"; //#4834 + bwipp_raiseerror(); //#4834 + } //#4834 + }); //#4834 + var _B = $get($_.barcode, 0); //#4837 + if ((_B != 48) && (_B != 49)) { //#4839 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4838'; //#4838 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#4838 + bwipp_raiseerror(); //#4838 + } //#4838 + for (var _C = 0, _D = 1; _C < _D; _C++) { //#4867 + var _F = ($_.barcode.length == 8) ? 12 : 11; //#4841 + $_.upcacode = $s(_F); //#4841 + if ($f($get($_.barcode, 6) - 48) <= 2) { //#4848 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4843 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4844 + $puti($_.upcacode, 4, "0000"); //#4845 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4846 + break; //#4847 + } //#4847 + if ($f($get($_.barcode, 6) - 48) == 3) { //#4854 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4850 + $puti($_.upcacode, 4, "00000"); //#4851 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4852 + break; //#4853 + } //#4853 + if ($f($get($_.barcode, 6) - 48) == 4) { //#4860 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4856 + $puti($_.upcacode, 5, "00000"); //#4857 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4858 + break; //#4859 + } //#4859 + if ($f($get($_.barcode, 6) - 48) >= 5) { //#4866 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4862 + $puti($_.upcacode, 6, "0000"); //#4863 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4864 + break; //#4865 + } //#4865 + } //#4865 + if ($_.barcode.length == 8) { //#4870 + $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4869 + } //#4869 + $_.barcode = $_.upcacode; //#4871 + } //#4871 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4877 + $k[$j++] = 'bwipp.upcAbadLength#4876'; //#4876 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4876 + bwipp_raiseerror(); //#4876 + } //#4876 + var _11 = $_.barcode; //#4878 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4882 + var _14 = $get(_11, _12); //#4882 + if ((_14 < 48) || (_14 > 57)) { //#4881 + $k[$j++] = 'bwipp.upcAbadCharacter#4880'; //#4880 + $k[$j++] = "UPC-A must contain only digits"; //#4880 + bwipp_raiseerror(); //#4880 + } //#4880 + } //#4880 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4885 + $k[$j++] = 'bwipp.upcAbadAddOnLength#4884'; //#4884 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4884 + bwipp_raiseerror(); //#4884 } //#4884 - $_ = Object.getPrototypeOf($_); //#4886 - $_ = Object.getPrototypeOf($_); //#4888 -} - -function bwipp_upce() { - $_ = Object.create($_); //#4920 - $_.dontdraw = false; //#4923 - $_.includetext = false; //#4924 - $_.textfont = "OCR-B"; //#4925 - $_.textsize = 12; //#4926 - $_.textxoffset = -7; //#4927 - $_.textyoffset = -4; //#4928 - $_.height = 1; //#4929 - $_.addongap = 12; //#4930 - $_.addontextfont = "unset"; //#4931 - $_.addontextsize = null; //#4932 - $_.addontextxoffset = null; //#4933 - $_.addontextyoffset = null; //#4934 - $k[$j++] = $_; //#4936 - bwipp_processoptions(); //#4936 - $_.options = $k[--$j]; //#4936 - $_.barcode = $k[--$j]; //#4937 - bwipp_loadctx(bwipp_upce) //#4939 - $search($_.barcode, " "); //#4942 - if ($k[--$j]) { //#4948 - $_.barcode = $k[--$j]; //#4943 - $j--; //#4944 - $_.addon = $k[--$j]; //#4945 - } else { //#4948 - $j--; //#4947 - $_.addon = ""; //#4948 - } //#4948 - if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#4990 - $forall($_.barcode, function() { //#4958 - var _9 = $k[--$j]; //#4955 - if ((_9 < 48) || (_9 > 57)) { //#4957 - $k[$j++] = 'bwipp.upcEupcAbadCharacter#4956'; //#4956 - $k[$j++] = "UPC-A must contain only digits"; //#4956 - bwipp_raiseerror(); //#4956 - } //#4956 - }); //#4956 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#4985 - var _D = ($_.barcode.length == 12) ? 8 : 7; //#4960 - $_.upcecode = $s(_D); //#4960 - if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#4966 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#4962 - $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#4963 - $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#4964 - break; //#4965 - } //#4965 - if ($eq($geti($_.barcode, 4, 5), "00000")) { //#4972 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#4968 - $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#4969 - $puti($_.upcecode, 6, "3"); //#4970 - break; //#4971 - } //#4971 - if ($eq($geti($_.barcode, 5, 5), "00000")) { //#4978 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#4974 - $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#4975 - $puti($_.upcecode, 6, "4"); //#4976 - break; //#4977 - } //#4977 - if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#4983 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#4980 - $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#4981 - break; //#4982 - } //#4982 - $k[$j++] = 'bwipp.upcEupcAnotCompressible#4984'; //#4984 - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#4984 - bwipp_raiseerror(); //#4984 + $_.pad = $s(12); //#4888 + $_.checksum = 0; //#4889 + for (var _19 = 0; _19 <= 10; _19 += 1) { //#4898 + $_.i = _19; //#4891 + $_.barchar = $get($_.barcode, $_.i) - 48; //#4892 + if (($_.i % 2) != 0) { //#4896 + $_.checksum = $_.checksum + $_.barchar; //#4894 + } else { //#4896 + $_.checksum = $_.checksum + ($_.barchar * 3); //#4896 + } //#4896 + } //#4896 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4899 + if ($_.barcode.length == 12) { //#4904 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4903 + $k[$j++] = 'bwipp.upcAbadCheckDigit#4902'; //#4902 + $k[$j++] = "Incorrect UPC check digit provided"; //#4902 + bwipp_raiseerror(); //#4902 + } //#4902 + } //#4902 + $puti($_.pad, 0, $_.barcode); //#4905 + $put($_.pad, 11, $_.checksum + 48); //#4906 + $_.barcode = $_.pad; //#4907 + if (!bwipp_upca.__4919__) { //#4919 + $_ = Object.create($_); //#4919 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4915 + $_.barchars = "0123456789"; //#4918 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4918 + bwipp_upca.__4919__ = 1; //#4918 + $_ = Object.getPrototypeOf($_); //#4918 + } //#4918 + $_.sbs = $s(59); //#4921 + $_.txt = $a(12); //#4922 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4925 + for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4942 + $_.i = _1Z; //#4930 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4931 + $j--; //#4932 + $_.indx = $k[--$j].length; //#4933 + $j -= 2; //#4934 + $_.enc = $get($_.encs, $_.indx); //#4935 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4936 + if ($_.i == 0) { //#4940 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4938 + } else { //#4940 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4940 + } //#4940 + } //#4940 + $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4945 + for (var _28 = 6; _28 <= 11; _28 += 1) { //#4962 + $_.i = _28; //#4950 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4951 + $j--; //#4952 + $_.indx = $k[--$j].length; //#4953 + $j -= 2; //#4954 + $_.enc = $get($_.encs, $_.indx); //#4955 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4956 + if ($_.i == 11) { //#4960 + $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 107, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4958 + } else { //#4960 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 17, $_.textyoffset, $_.textfont, $_.textsize])); //#4960 + } //#4960 + } //#4960 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4965 + $k[$j++] = Infinity; //#4967 + var _2h = $_.sbs; //#4967 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4967 + $k[$j++] = $get(_2h, _2i) - 48; //#4967 + } //#4967 + $_.sbs = $a(); //#4967 + if ($_.includetext) { //#4974 + $k[$j++] = Infinity; //#4969 + for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + $k[$j++] = $_.height; //#4969 + $k[$j++] = $_.height; //#4969 + for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + $_.bhs = $a(); //#4969 + $k[$j++] = Infinity; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $_.bbs = $a(); //#4970 + } else { //#4974 + $k[$j++] = Infinity; //#4972 + for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4972 + $k[$j++] = $_.height; //#4972 + } //#4972 + $_.bhs = $a(); //#4972 + $k[$j++] = Infinity; //#4973 + for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4973 + $k[$j++] = 0; //#4973 + } //#4973 + $_.bbs = $a(); //#4973 + $_.txt = $a([]); //#4974 + } //#4974 + $_.guardrightypos = 0; //#4976 + if ($ne($_.addon, "")) { //#4997 + $k[$j++] = Infinity; //#4980 + $k[$j++] = 'dontdraw'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'includetext'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'height'; //#4984 + $k[$j++] = $f($_.height - 0.15); //#4984 + $k[$j++] = 'textxoffset'; //#4984 + if ($ne($_.addontextxoffset, null)) { //#4984 + $k[$j++] = $_.addontextxoffset; //#4984 + } else { //#4984 + $k[$j++] = 95 + $_.addongap; //#4984 } //#4984 - if ($_.barcode.length == 12) { //#4988 - $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#4987 - } //#4987 - $_.barcode = $_.upcecode; //#4989 - } //#4989 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4995 - $k[$j++] = 'bwipp.upcEbadLength#4994'; //#4994 - $k[$j++] = "UPC-E must be 7 or 8 digits"; //#4994 - bwipp_raiseerror(); //#4994 - } //#4994 - var _11 = $_.barcode; //#4996 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5000 - var _14 = $get(_11, _12); //#5000 - if ((_14 < 48) || (_14 > 57)) { //#4999 - $k[$j++] = 'bwipp.upcEbadCharacter#4998'; //#4998 - $k[$j++] = "UPC-E must contain only digits"; //#4998 - bwipp_raiseerror(); //#4998 - } //#4998 - } //#4998 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5003 - $k[$j++] = 'bwipp.upcEbadAddOnLength#5002'; //#5002 - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5002 - bwipp_raiseerror(); //#5002 - } //#5002 - var _19 = $get($_.barcode, 0); //#5006 - if ((_19 != 48) && (_19 != 49)) { //#5008 - $k[$j++] = 'bwipp.upcEbadNumberSystem#5007'; //#5007 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#5007 - bwipp_raiseerror(); //#5007 + if ($ne($_.addontextyoffset, null)) { //#4985 + $k[$j++] = 'textyoffset'; //#4985 + $k[$j++] = $_.addontextyoffset; //#4985 + } //#4985 + $k[$j++] = 'textsize'; //#4986 + if ($ne($_.addontextsize, null)) { //#4986 + $k[$j++] = $_.addontextsize; //#4986 + } else { //#4986 + $k[$j++] = $_.textsize; //#4986 + } //#4986 + var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4987 + $k[$j++] = 'textfont'; //#4987 + $k[$j++] = _3Q; //#4987 + $_.addopts = $d(); //#4988 + if ($_.addon.length == 2) { //#4989 + $k[$j++] = $_.addon; //#4989 + $k[$j++] = $_.addopts; //#4989 + bwipp_ean2(); //#4989 + } //#4989 + if ($_.addon.length == 5) { //#4990 + $k[$j++] = $_.addon; //#4990 + $k[$j++] = $_.addopts; //#4990 + bwipp_ean5(); //#4990 + } //#4990 + $_.addcode = $k[--$j]; //#4991 + $k[$j++] = Infinity; //#4992 + $aload($_.sbs); //#4992 + $k[$j++] = $_.addongap; //#4992 + $aload($get($_.addcode, "sbs")); //#4992 + $_.sbs = $a(); //#4992 + $k[$j++] = Infinity; //#4993 + $aload($_.bhs); //#4993 + $forall($get($_.addcode, "bhs"), function() { //#4993 + var _3h = $k[--$j]; //#4993 + $k[$j++] = $f(_3h - 0.075); //#4993 + }); //#4993 + $_.bhs = $a(); //#4993 + $k[$j++] = Infinity; //#4994 + $aload($_.bbs); //#4994 + $forall($get($_.addcode, "bbs"), function() { //#4994 + var _3m = $k[--$j]; //#4994 + $k[$j++] = $f(_3m + 0.075); //#4994 + }); //#4994 + $_.bbs = $a(); //#4994 + $k[$j++] = Infinity; //#4995 + $aload($_.txt); //#4995 + $aload($get($_.addcode, "txt")); //#4995 + $_.txt = $a(); //#4995 + $_.guardrightypos = ($_.height * 72) - 6; //#4996 + } //#4996 + $k[$j++] = Infinity; //#5000 + $k[$j++] = 'ren'; //#5007 + $k[$j++] = bwipp_renlinear; //#5007 + $k[$j++] = 'sbs'; //#5007 + $k[$j++] = $_.sbs; //#5007 + $k[$j++] = 'bhs'; //#5007 + $k[$j++] = $_.bhs; //#5007 + $k[$j++] = 'bbs'; //#5007 + $k[$j++] = $_.bbs; //#5007 + $k[$j++] = 'txt'; //#5007 + $k[$j++] = $_.txt; //#5007 + $k[$j++] = 'opt'; //#5007 + $k[$j++] = $_.options; //#5007 + $k[$j++] = 'guardrightpos'; //#5007 + if ($eq($_.addon, "")) { //#5007 + $k[$j++] = 9; //#5007 + } else { //#5007 + $k[$j++] = 5; //#5007 } //#5007 - if (!bwipp_upce.__5025__) { //#5025 - $_ = Object.create($_); //#5025 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5016 - $_.barchars = "0123456789"; //#5019 - $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5024 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5024 - bwipp_upce.__5025__ = 1; //#5024 - $_ = Object.getPrototypeOf($_); //#5024 - } //#5024 - for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5055 - $_.upcacode = $s(11); //#5029 - if (($get($_.barcode, 6) - 48) <= 2) { //#5036 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5031 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5032 - $puti($_.upcacode, 4, "0000"); //#5033 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5034 - break; //#5035 - } //#5035 - if (($get($_.barcode, 6) - 48) == 3) { //#5042 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5038 - $puti($_.upcacode, 4, "00000"); //#5039 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5040 - break; //#5041 - } //#5041 - if (($get($_.barcode, 6) - 48) == 4) { //#5048 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5044 - $puti($_.upcacode, 5, "00000"); //#5045 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5046 - break; //#5047 - } //#5047 - if (($get($_.barcode, 6) - 48) >= 5) { //#5054 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5050 - $puti($_.upcacode, 6, "0000"); //#5051 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5052 - break; //#5053 - } //#5053 - } //#5053 - $_.checksum = 0; //#5056 - for (var _1t = 0; _1t <= 10; _1t += 1) { //#5065 - $_.i = _1t; //#5058 - $_.barchar = $get($_.upcacode, $_.i) - 48; //#5059 - if (($_.i % 2) != 0) { //#5063 - $_.checksum = $_.checksum + $_.barchar; //#5061 - } else { //#5063 - $_.checksum = $_.checksum + ($_.barchar * 3); //#5063 - } //#5063 - } //#5063 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5066 - if ($_.barcode.length == 8) { //#5071 - if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5070 - $k[$j++] = 'bwipp.upcEbadCheckDigit#5069'; //#5069 - $k[$j++] = "Incorrect UPC check digit provided"; //#5069 - bwipp_raiseerror(); //#5069 - } //#5069 - } //#5069 - $_.pad = $s(8); //#5072 - $puti($_.pad, 0, $_.barcode); //#5073 - $put($_.pad, 7, $_.checksum + 48); //#5074 - $_.barcode = $_.pad; //#5075 - $_.txt = $a(8); //#5076 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5077 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5080 - if ($get($_.barcode, 0) == 48) { //#5094 - $_.invt = $s($_.mirrormap.length); //#5084 - for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5092 - $_.i = _2V; //#5086 - if ($get($_.mirrormap, $_.i) == 48) { //#5090 - $put($_.invt, $_.i, 49); //#5088 - } else { //#5090 - $put($_.invt, $_.i, 48); //#5090 - } //#5090 - } //#5090 - $_.mirrormap = $_.invt; //#5093 - } //#5093 - $_.sbs = $s(33); //#5096 - $puti($_.sbs, 0, $get($_.encs, 10)); //#5099 - for (var _2i = 1; _2i <= 6; _2i += 1) { //#5121 - $_.i = _2i; //#5102 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5104 - $j--; //#5105 - $_.indx = $k[--$j].length; //#5106 - $j -= 2; //#5107 - $_.enc = $get($_.encs, $_.indx); //#5108 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#5118 - $_.enclen = $_.enc.length; //#5110 - $_.revenc = $s($_.enclen); //#5111 - for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5116 - $_.j = _2z; //#5113 - $_.char = $get($_.enc, $_.j); //#5114 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5115 - } //#5115 - $_.enc = $_.revenc; //#5117 - } //#5117 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5119 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5120 + $k[$j++] = 'guardrightypos'; //#5010 + $k[$j++] = $_.guardrightypos; //#5010 + $k[$j++] = 'borderleft'; //#5010 + $k[$j++] = 9; //#5010 + $k[$j++] = 'borderright'; //#5010 + if ($eq($_.addon, "")) { //#5010 + $k[$j++] = 9; //#5010 + } else { //#5010 + $k[$j++] = 5; //#5010 + } //#5010 + $k[$j++] = 'bordertop'; //#5012 + $k[$j++] = 0; //#5012 + $k[$j++] = 'borderbottom'; //#5012 + $k[$j++] = 5; //#5012 + var _41 = $d(); //#5012 + $k[$j++] = _41; //#5015 + if (!$_.dontdraw) { //#5015 + bwipp_renlinear(); //#5015 + } //#5015 + $_ = Object.getPrototypeOf($_); //#5017 + $_ = Object.getPrototypeOf($_); //#5019 +} //bwipp_upca +function bwipp_upce() { + $_ = Object.create($_); //#5051 + $_.dontdraw = false; //#5054 + $_.includetext = false; //#5055 + $_.textfont = "OCR-B"; //#5056 + $_.textsize = 12; //#5057 + $_.textxoffset = -9; //#5058 + $_.textyoffset = -4; //#5059 + $_.height = 1; //#5060 + $_.addongap = 12; //#5061 + $_.addontextfont = "unset"; //#5062 + $_.addontextsize = null; //#5063 + $_.addontextxoffset = null; //#5064 + $_.addontextyoffset = null; //#5065 + $k[$j++] = $_; //#5067 + bwipp_processoptions(); //#5067 + $_.options = $k[--$j]; //#5067 + $_.barcode = $k[--$j]; //#5068 + bwipp_loadctx(bwipp_upce) //#5070 + $search($_.barcode, " "); //#5073 + if ($k[--$j]) { //#5079 + $_.barcode = $k[--$j]; //#5074 + $j--; //#5075 + $_.addon = $k[--$j]; //#5076 + } else { //#5079 + $j--; //#5078 + $_.addon = ""; //#5079 + } //#5079 + if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#5121 + $forall($_.barcode, function() { //#5089 + var _9 = $k[--$j]; //#5086 + if ((_9 < 48) || (_9 > 57)) { //#5088 + $k[$j++] = 'bwipp.upcEupcAbadCharacter#5087'; //#5087 + $k[$j++] = "UPC-A must contain only digits"; //#5087 + bwipp_raiseerror(); //#5087 + } //#5087 + }); //#5087 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#5116 + var _D = ($_.barcode.length == 12) ? 8 : 7; //#5091 + $_.upcecode = $s(_D); //#5091 + if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#5097 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#5093 + $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#5094 + $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#5095 + break; //#5096 + } //#5096 + if ($eq($geti($_.barcode, 4, 5), "00000")) { //#5103 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#5099 + $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#5100 + $puti($_.upcecode, 6, "3"); //#5101 + break; //#5102 + } //#5102 + if ($eq($geti($_.barcode, 5, 5), "00000")) { //#5109 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#5105 + $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#5106 + $puti($_.upcecode, 6, "4"); //#5107 + break; //#5108 + } //#5108 + if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#5114 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#5111 + $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#5112 + break; //#5113 + } //#5113 + $k[$j++] = 'bwipp.upcEupcAnotCompressible#5115'; //#5115 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#5115 + bwipp_raiseerror(); //#5115 + } //#5115 + if ($_.barcode.length == 12) { //#5119 + $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#5118 + } //#5118 + $_.barcode = $_.upcecode; //#5120 } //#5120 - $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5123 - $puti($_.sbs, 27, $get($_.encs, 11)); //#5126 - $k[$j++] = Infinity; //#5128 - var _3X = $_.sbs; //#5128 - for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5128 - $k[$j++] = $get(_3X, _3Y) - 48; //#5128 - } //#5128 - $_.sbs = $a(); //#5128 - if ($_.includetext) { //#5135 - $k[$j++] = Infinity; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5130 - $k[$j++] = $f($_.height - 0.075); //#5130 - } //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $_.bhs = $a(); //#5130 - $k[$j++] = Infinity; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5131 - $k[$j++] = 0.075; //#5131 - } //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $_.bbs = $a(); //#5131 - } else { //#5135 - $k[$j++] = Infinity; //#5133 - for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5133 - $k[$j++] = $_.height; //#5133 - } //#5133 - $_.bhs = $a(); //#5133 - $k[$j++] = Infinity; //#5134 - for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5134 - $k[$j++] = 0; //#5134 - } //#5134 - $_.bbs = $a(); //#5134 - $_.txt = $a([]); //#5135 - } //#5135 - $_.guardrightypos = 0; //#5137 - if ($ne($_.addon, "")) { //#5158 - $k[$j++] = Infinity; //#5148 - $k[$j++] = 'dontdraw'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'includetext'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'height'; //#5145 - $k[$j++] = $f($_.height - 0.15); //#5145 - $k[$j++] = 'textxoffset'; //#5145 - if ($ne($_.addontextxoffset, null)) { //#5145 - $k[$j++] = $_.addontextxoffset; //#5145 - } else { //#5145 - $k[$j++] = 51 + $_.addongap; //#5145 - } //#5145 - if ($ne($_.addontextyoffset, null)) { //#5146 - $k[$j++] = 'textyoffset'; //#5146 - $k[$j++] = $_.addontextyoffset; //#5146 - } //#5146 - $k[$j++] = 'textsize'; //#5147 - if ($ne($_.addontextsize, null)) { //#5147 - $k[$j++] = $_.addontextsize; //#5147 - } else { //#5147 - $k[$j++] = $_.textsize; //#5147 - } //#5147 - var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5148 - $k[$j++] = 'textfont'; //#5148 - $k[$j++] = _48; //#5148 - $_.addopts = $d(); //#5149 - if ($_.addon.length == 2) { //#5150 - $k[$j++] = $_.addon; //#5150 - $k[$j++] = $_.addopts; //#5150 - bwipp_ean2(); //#5150 - } //#5150 - if ($_.addon.length == 5) { //#5151 - $k[$j++] = $_.addon; //#5151 - $k[$j++] = $_.addopts; //#5151 - bwipp_ean5(); //#5151 - } //#5151 - $_.addcode = $k[--$j]; //#5152 - $k[$j++] = Infinity; //#5153 - $aload($_.sbs); //#5153 - $k[$j++] = $_.addongap; //#5153 - $aload($get($_.addcode, "sbs")); //#5153 - $_.sbs = $a(); //#5153 - $k[$j++] = Infinity; //#5154 - $aload($_.bhs); //#5154 - $forall($get($_.addcode, "bhs"), function() { //#5154 - var _4P = $k[--$j]; //#5154 - $k[$j++] = $f(_4P - 0.075); //#5154 - }); //#5154 - $_.bhs = $a(); //#5154 - $k[$j++] = Infinity; //#5155 - $aload($_.bbs); //#5155 - $forall($get($_.addcode, "bbs"), function() { //#5155 - var _4U = $k[--$j]; //#5155 - $k[$j++] = $f(_4U + 0.075); //#5155 - }); //#5155 - $_.bbs = $a(); //#5155 - $k[$j++] = Infinity; //#5156 - $aload($_.txt); //#5156 - $aload($get($_.addcode, "txt")); //#5156 - $_.txt = $a(); //#5156 - $_.guardrightypos = ($_.height * 72) - 6; //#5157 - } //#5157 - var _4h = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#5170 - $k[$j++] = _4h; //#5173 - if (!$_.dontdraw) { //#5173 - bwipp_renlinear(); //#5173 - } //#5173 - $_ = Object.getPrototypeOf($_); //#5175 - $_ = Object.getPrototypeOf($_); //#5177 -} - + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#5126 + $k[$j++] = 'bwipp.upcEbadLength#5125'; //#5125 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#5125 + bwipp_raiseerror(); //#5125 + } //#5125 + var _11 = $_.barcode; //#5127 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5131 + var _14 = $get(_11, _12); //#5131 + if ((_14 < 48) || (_14 > 57)) { //#5130 + $k[$j++] = 'bwipp.upcEbadCharacter#5129'; //#5129 + $k[$j++] = "UPC-E must contain only digits"; //#5129 + bwipp_raiseerror(); //#5129 + } //#5129 + } //#5129 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5134 + $k[$j++] = 'bwipp.upcEbadAddOnLength#5133'; //#5133 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5133 + bwipp_raiseerror(); //#5133 + } //#5133 + var _19 = $get($_.barcode, 0); //#5137 + if ((_19 != 48) && (_19 != 49)) { //#5139 + $k[$j++] = 'bwipp.upcEbadNumberSystem#5138'; //#5138 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#5138 + bwipp_raiseerror(); //#5138 + } //#5138 + if (!bwipp_upce.__5156__) { //#5156 + $_ = Object.create($_); //#5156 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5147 + $_.barchars = "0123456789"; //#5150 + $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5155 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5155 + bwipp_upce.__5156__ = 1; //#5155 + $_ = Object.getPrototypeOf($_); //#5155 + } //#5155 + for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5186 + $_.upcacode = $s(11); //#5160 + if (($get($_.barcode, 6) - 48) <= 2) { //#5167 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5162 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5163 + $puti($_.upcacode, 4, "0000"); //#5164 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5165 + break; //#5166 + } //#5166 + if (($get($_.barcode, 6) - 48) == 3) { //#5173 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5169 + $puti($_.upcacode, 4, "00000"); //#5170 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5171 + break; //#5172 + } //#5172 + if (($get($_.barcode, 6) - 48) == 4) { //#5179 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5175 + $puti($_.upcacode, 5, "00000"); //#5176 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5177 + break; //#5178 + } //#5178 + if (($get($_.barcode, 6) - 48) >= 5) { //#5185 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5181 + $puti($_.upcacode, 6, "0000"); //#5182 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5183 + break; //#5184 + } //#5184 + } //#5184 + $_.checksum = 0; //#5187 + for (var _1t = 0; _1t <= 10; _1t += 1) { //#5196 + $_.i = _1t; //#5189 + $_.barchar = $get($_.upcacode, $_.i) - 48; //#5190 + if (($_.i % 2) != 0) { //#5194 + $_.checksum = $_.checksum + $_.barchar; //#5192 + } else { //#5194 + $_.checksum = $_.checksum + ($_.barchar * 3); //#5194 + } //#5194 + } //#5194 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5197 + if ($_.barcode.length == 8) { //#5202 + if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5201 + $k[$j++] = 'bwipp.upcEbadCheckDigit#5200'; //#5200 + $k[$j++] = "Incorrect UPC check digit provided"; //#5200 + bwipp_raiseerror(); //#5200 + } //#5200 + } //#5200 + $_.pad = $s(8); //#5203 + $puti($_.pad, 0, $_.barcode); //#5204 + $put($_.pad, 7, $_.checksum + 48); //#5205 + $_.barcode = $_.pad; //#5206 + $_.txt = $a(8); //#5207 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5208 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5211 + if ($get($_.barcode, 0) == 48) { //#5225 + $_.invt = $s($_.mirrormap.length); //#5215 + for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5223 + $_.i = _2V; //#5217 + if ($get($_.mirrormap, $_.i) == 48) { //#5221 + $put($_.invt, $_.i, 49); //#5219 + } else { //#5221 + $put($_.invt, $_.i, 48); //#5221 + } //#5221 + } //#5221 + $_.mirrormap = $_.invt; //#5224 + } //#5224 + $_.sbs = $s(33); //#5227 + $puti($_.sbs, 0, $get($_.encs, 10)); //#5230 + for (var _2i = 1; _2i <= 6; _2i += 1) { //#5252 + $_.i = _2i; //#5233 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5235 + $j--; //#5236 + $_.indx = $k[--$j].length; //#5237 + $j -= 2; //#5238 + $_.enc = $get($_.encs, $_.indx); //#5239 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#5249 + $_.enclen = $_.enc.length; //#5241 + $_.revenc = $s($_.enclen); //#5242 + for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5247 + $_.j = _2z; //#5244 + $_.char = $get($_.enc, $_.j); //#5245 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5246 + } //#5246 + $_.enc = $_.revenc; //#5248 + } //#5248 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5250 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5251 + } //#5251 + $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 21) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5254 + $puti($_.sbs, 27, $get($_.encs, 11)); //#5257 + $k[$j++] = Infinity; //#5259 + var _3X = $_.sbs; //#5259 + for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5259 + $k[$j++] = $get(_3X, _3Y) - 48; //#5259 + } //#5259 + $_.sbs = $a(); //#5259 + if ($_.includetext) { //#5266 + $k[$j++] = Infinity; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5261 + $k[$j++] = $f($_.height - 0.075); //#5261 + } //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $_.bhs = $a(); //#5261 + $k[$j++] = Infinity; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5262 + $k[$j++] = 0.075; //#5262 + } //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $_.bbs = $a(); //#5262 + } else { //#5266 + $k[$j++] = Infinity; //#5264 + for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5264 + $k[$j++] = $_.height; //#5264 + } //#5264 + $_.bhs = $a(); //#5264 + $k[$j++] = Infinity; //#5265 + for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5265 + $k[$j++] = 0; //#5265 + } //#5265 + $_.bbs = $a(); //#5265 + $_.txt = $a([]); //#5266 + } //#5266 + $_.guardrightypos = 0; //#5268 + if ($ne($_.addon, "")) { //#5289 + $k[$j++] = Infinity; //#5272 + $k[$j++] = 'dontdraw'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'includetext'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'height'; //#5276 + $k[$j++] = $f($_.height - 0.15); //#5276 + $k[$j++] = 'textxoffset'; //#5276 + if ($ne($_.addontextxoffset, null)) { //#5276 + $k[$j++] = $_.addontextxoffset; //#5276 + } else { //#5276 + $k[$j++] = 51 + $_.addongap; //#5276 + } //#5276 + if ($ne($_.addontextyoffset, null)) { //#5277 + $k[$j++] = 'textyoffset'; //#5277 + $k[$j++] = $_.addontextyoffset; //#5277 + } //#5277 + $k[$j++] = 'textsize'; //#5278 + if ($ne($_.addontextsize, null)) { //#5278 + $k[$j++] = $_.addontextsize; //#5278 + } else { //#5278 + $k[$j++] = $_.textsize; //#5278 + } //#5278 + var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5279 + $k[$j++] = 'textfont'; //#5279 + $k[$j++] = _48; //#5279 + $_.addopts = $d(); //#5280 + if ($_.addon.length == 2) { //#5281 + $k[$j++] = $_.addon; //#5281 + $k[$j++] = $_.addopts; //#5281 + bwipp_ean2(); //#5281 + } //#5281 + if ($_.addon.length == 5) { //#5282 + $k[$j++] = $_.addon; //#5282 + $k[$j++] = $_.addopts; //#5282 + bwipp_ean5(); //#5282 + } //#5282 + $_.addcode = $k[--$j]; //#5283 + $k[$j++] = Infinity; //#5284 + $aload($_.sbs); //#5284 + $k[$j++] = $_.addongap; //#5284 + $aload($get($_.addcode, "sbs")); //#5284 + $_.sbs = $a(); //#5284 + $k[$j++] = Infinity; //#5285 + $aload($_.bhs); //#5285 + $forall($get($_.addcode, "bhs"), function() { //#5285 + var _4P = $k[--$j]; //#5285 + $k[$j++] = $f(_4P - 0.075); //#5285 + }); //#5285 + $_.bhs = $a(); //#5285 + $k[$j++] = Infinity; //#5286 + $aload($_.bbs); //#5286 + $forall($get($_.addcode, "bbs"), function() { //#5286 + var _4U = $k[--$j]; //#5286 + $k[$j++] = $f(_4U + 0.075); //#5286 + }); //#5286 + $_.bbs = $a(); //#5286 + $k[$j++] = Infinity; //#5287 + $aload($_.txt); //#5287 + $aload($get($_.addcode, "txt")); //#5287 + $_.txt = $a(); //#5287 + $_.guardrightypos = ($_.height * 72) - 6; //#5288 + } //#5288 + $k[$j++] = Infinity; //#5292 + $k[$j++] = 'ren'; //#5299 + $k[$j++] = bwipp_renlinear; //#5299 + $k[$j++] = 'sbs'; //#5299 + $k[$j++] = $_.sbs; //#5299 + $k[$j++] = 'bhs'; //#5299 + $k[$j++] = $_.bhs; //#5299 + $k[$j++] = 'bbs'; //#5299 + $k[$j++] = $_.bbs; //#5299 + $k[$j++] = 'txt'; //#5299 + $k[$j++] = $_.txt; //#5299 + $k[$j++] = 'opt'; //#5299 + $k[$j++] = $_.options; //#5299 + $k[$j++] = 'guardrightpos'; //#5299 + if ($eq($_.addon, "")) { //#5299 + $k[$j++] = 9; //#5299 + } else { //#5299 + $k[$j++] = 5; //#5299 + } //#5299 + $k[$j++] = 'guardrightypos'; //#5302 + $k[$j++] = $_.guardrightypos; //#5302 + $k[$j++] = 'borderleft'; //#5302 + $k[$j++] = 9; //#5302 + $k[$j++] = 'borderright'; //#5302 + if ($eq($_.addon, "")) { //#5302 + $k[$j++] = 9; //#5302 + } else { //#5302 + $k[$j++] = 5; //#5302 + } //#5302 + $k[$j++] = 'bordertop'; //#5304 + $k[$j++] = 0; //#5304 + $k[$j++] = 'borderbottom'; //#5304 + $k[$j++] = 5; //#5304 + var _4j = $d(); //#5304 + $k[$j++] = _4j; //#5307 + if (!$_.dontdraw) { //#5307 + bwipp_renlinear(); //#5307 + } //#5307 + $_ = Object.getPrototypeOf($_); //#5309 + $_ = Object.getPrototypeOf($_); //#5311 +} //bwipp_upce function bwipp_isbn() { - $_ = Object.create($_); //#5206 - $_.dontdraw = false; //#5209 - $_.includetext = false; //#5210 - $_.isbntextfont = 'OCR-A'; //#5211 - $_.isbntextsize = 8; //#5212 - $_.isbntextxoffset = null; //#5213 - $_.isbntextyoffset = null; //#5214 - $_.height = 1; //#5215 - $_.addongap = 12; //#5216 - $_.legacy = false; //#5217 - $k[$j++] = $_; //#5219 - bwipp_processoptions(); //#5219 - $_.options = $k[--$j]; //#5219 - $_.barcode = $k[--$j]; //#5220 - $search($_.barcode, " "); //#5223 - if ($k[--$j]) { //#5229 - $_.barcode = $k[--$j]; //#5224 - $j--; //#5225 - $_.addon = $k[--$j]; //#5226 - } else { //#5229 - $j--; //#5228 - $_.addon = ""; //#5229 - } //#5229 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5236 - $k[$j++] = 'bwipp.isbnBadLength#5235'; //#5235 - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5235 - bwipp_raiseerror(); //#5235 - } //#5235 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5239 - $k[$j++] = 'bwipp.isbnBadAddOnLength#5238'; //#5238 - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5238 - bwipp_raiseerror(); //#5238 - } //#5238 - if ($_.barcode.length >= 15) { //#5303 - var _F = $geti($_.barcode, 0, 4); //#5241 - if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5243 - $k[$j++] = 'bwipp.isbn13badPrefix#5242'; //#5242 - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5242 - bwipp_raiseerror(); //#5242 - } //#5242 - $_.wasdash = false; //#5244 - $_.numdash = 0; //#5244 - $_.numdigit = 0; //#5244 - var _H = $geti($_.barcode, 5, 9); //#5245 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5258 - var _K = $get(_H, _I); //#5258 - $k[$j++] = _K; //#5253 - if (_K == 45) { //#5253 - if ($_.wasdash) { //#5250 - $k[$j++] = 'bwipp.isbn13adjacentDashes#5249'; //#5249 - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5249 - bwipp_raiseerror(); //#5249 - } //#5249 - $_.wasdash = true; //#5251 - $_.numdash = $_.numdash + 1; //#5252 - } //#5252 - var _N = $k[--$j]; //#5254 - if ((_N >= 48) && (_N <= 57)) { //#5257 - $_.wasdash = false; //#5255 - $_.numdigit = $_.numdigit + 1; //#5256 - } //#5256 - } //#5256 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5261 - $k[$j++] = 'bwipp.isbn13numDashesDigits#5260'; //#5260 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5260 - bwipp_raiseerror(); //#5260 - } //#5260 - var _S = $get($_.barcode, 14); //#5262 - if ((_S < 48) || (_S > 57)) { //#5264 - $k[$j++] = 'bwipp.isbn13character15#5263'; //#5263 - $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5263 - bwipp_raiseerror(); //#5263 - } //#5263 - if ($_.barcode.length == 17) { //#5272 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5268 - $k[$j++] = 'bwipp.isbn13character16#5267'; //#5267 - $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5267 - bwipp_raiseerror(); //#5267 - } //#5267 - var _X = $get($_.barcode, 16); //#5269 - if ((_X < 48) || (_X > 57)) { //#5271 - $k[$j++] = 'bwipp.isbn13character17#5270'; //#5270 - $k[$j++] = "ISBN-13 final character must be a digit"; //#5270 - bwipp_raiseerror(); //#5270 - } //#5270 - } //#5270 - } else { //#5303 - var _Z = $get($_.barcode, 0); //#5274 - if ((_Z < 48) || (_Z > 57)) { //#5276 - $k[$j++] = 'bwipp.isbn10FirstDigit#5275'; //#5275 - $k[$j++] = "ISBN-10 first character must be a digit"; //#5275 - bwipp_raiseerror(); //#5275 - } //#5275 - $_.wasdash = false; //#5277 - $_.numdash = 0; //#5277 - $_.numdigit = 0; //#5277 - var _b = $geti($_.barcode, 1, 9); //#5278 - for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5291 - var _e = $get(_b, _c); //#5291 - $k[$j++] = _e; //#5286 - if (_e == 45) { //#5286 - if ($_.wasdash) { //#5283 - $k[$j++] = 'bwipp.isbn10adjacentDashes#5282'; //#5282 - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5282 - bwipp_raiseerror(); //#5282 - } //#5282 - $_.wasdash = true; //#5284 - $_.numdash = $_.numdash + 1; //#5285 - } //#5285 - var _h = $k[--$j]; //#5287 - if ((_h >= 48) && (_h <= 57)) { //#5290 - $_.wasdash = false; //#5288 - $_.numdigit = $_.numdigit + 1; //#5289 - } //#5289 - } //#5289 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5294 - $k[$j++] = 'bwipp.isbn10numDashesDigits#5293'; //#5293 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5293 - bwipp_raiseerror(); //#5293 - } //#5293 - var _m = $get($_.barcode, 10); //#5295 - if ((_m < 48) || (_m > 57)) { //#5297 - $k[$j++] = 'bwipp.isbn10character11#5296'; //#5296 - $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5296 - bwipp_raiseerror(); //#5296 - } //#5296 - if ($_.barcode.length == 13) { //#5305 - if ($ne($geti($_.barcode, 11, 1), "-")) { //#5301 - $k[$j++] = 'bwipp.isbn10character12#5300'; //#5300 - $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5300 - bwipp_raiseerror(); //#5300 - } //#5300 - var _r = $get($_.barcode, 12); //#5302 - if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5304 - $k[$j++] = 'bwipp.isbn10character13#5303'; //#5303 - $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5303 - bwipp_raiseerror(); //#5303 - } //#5303 - } //#5303 - } //#5303 - $_.isbntxt = $_.barcode; //#5308 - if ($_.isbntxt.length <= 13) { //#5334 - $_.isbn = $s(10); //#5312 - $_.checksum = 0; //#5313 - $_.i = 0; //#5314 - $_.n = 0; //#5314 - for (;;) { //#5326 - $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5316 - if ($_.isbnchar != -3) { //#5323 - $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5318 - if ($_.n < 9) { //#5321 - $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5320 - } //#5320 - $_.n = $_.n + 1; //#5322 - } //#5322 - $_.i = $_.i + 1; //#5324 - if ($_.i == $_.isbntxt.length) { //#5325 - break; //#5325 - } //#5325 - } //#5325 - var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5327 - $k[$j++] = 'checksum'; //#5327 - $k[$j++] = _1B; //#5327 - if (_1B == 10) { //#5327 - $j--; //#5327 - $k[$j++] = 40; //#5327 - } //#5327 - var _1C = $k[--$j]; //#5327 - $_[$k[--$j]] = $f(_1C + 48); //#5327 - $_.isbn = $geti($_.isbn, 0, 9); //#5328 - if ($_.isbntxt.length == 13) { //#5333 - if ($get($_.isbntxt, 12) != $_.checksum) { //#5332 - $k[$j++] = 'bwipp.isbn10badCheckDigit#5331'; //#5331 - $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5331 - bwipp_raiseerror(); //#5331 - } //#5331 - } //#5331 - } //#5331 - if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5370 - if ($_.isbntxt.length <= 13) { //#5344 - $_.pad = $s(15); //#5340 - $puti($_.pad, 0, "978-"); //#5341 - $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5342 - $_.isbntxt = $_.pad; //#5343 - } //#5343 - $_.isbn = $s(13); //#5347 - $_.checksum = 0; //#5348 - $_.i = 0; //#5349 - $_.n = 0; //#5349 - for (;;) { //#5361 - $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5351 - if ($_.isbnchar != -3) { //#5358 - $put($_.isbn, $_.n, $_.isbnchar + 48); //#5353 - if ($_.n < 12) { //#5356 - $k[$j++] = 'checksum'; //#5355 - $k[$j++] = $_.isbnchar; //#5355 - if (($_.n % 2) != 0) { //#5355 - var _1e = $k[--$j]; //#5355 - $k[$j++] = _1e * 3; //#5355 - } //#5355 - var _1g = $k[--$j]; //#5355 - $_[$k[--$j]] = $f(_1g + $_.checksum); //#5355 - } //#5355 - $_.n = $_.n + 1; //#5357 - } //#5357 - $_.i = $_.i + 1; //#5359 - if ($_.i == $_.isbntxt.length) { //#5360 - break; //#5360 - } //#5360 - } //#5360 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5362 - $_.isbn = $geti($_.isbn, 0, 12); //#5363 - if ($_.isbntxt.length == 17) { //#5368 - if ($get($_.isbntxt, 16) != $_.checksum) { //#5367 - $k[$j++] = 'bwipp.isbn13badCheckDigit#5366'; //#5366 - $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5366 - bwipp_raiseerror(); //#5366 - } //#5366 - } //#5366 - } //#5366 - var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5373 - $_.pad = $s(_1u); //#5373 - $puti($_.pad, 0, "ISBN "); //#5374 - $puti($_.pad, 5, $_.isbntxt); //#5375 - $put($_.pad, $_.pad.length - 2, 45); //#5376 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5377 - $_.isbntxt = $_.pad; //#5378 - $_.barcode = $s(12); //#5381 - if ($_.isbn.length == 9) { //#5386 - $puti($_.barcode, 0, "978"); //#5383 - $puti($_.barcode, 3, $_.isbn); //#5384 - } else { //#5386 - $puti($_.barcode, 0, $_.isbn); //#5386 - } //#5386 - if ($ne($_.addon, "")) { //#5396 - var _2E = $s((12 + $_.addon.length) + 1); //#5391 - $puti(_2E, 0, $_.barcode); //#5392 - $puti(_2E, 12, " "); //#5393 - $puti(_2E, 13, $_.addon); //#5394 - $_.barcode = _2E; //#5395 - } //#5395 - $put($_.options, "dontdraw", true); //#5399 - $put($_.options, "addongap", $_.addongap); //#5400 - $k[$j++] = 'args'; //#5401 - $k[$j++] = $_.barcode; //#5401 - $k[$j++] = $_.options; //#5401 - bwipp_ean13(); //#5401 - var _2M = $k[--$j]; //#5401 - $_[$k[--$j]] = _2M; //#5401 - if ($_.includetext) { //#5420 - if ($eq($_.isbntextxoffset, null)) { //#5407 - $k[$j++] = 'isbntextxoffset'; //#5406 - if ($_.isbn.length == 9) { //#5406 - $k[$j++] = -1; //#5406 - } else { //#5406 - $k[$j++] = -12; //#5406 - } //#5406 - var _2R = $k[--$j]; //#5406 - $_[$k[--$j]] = _2R; //#5406 - } //#5406 - if ($eq($_.isbntextyoffset, null)) { //#5410 - $_.isbntextyoffset = ($_.height * 72) + 3; //#5409 + $_ = Object.create($_); //#5340 + $_.dontdraw = false; //#5343 + $_.includetext = false; //#5344 + $_.isbntextfont = 'OCR-A'; //#5345 + $_.isbntextsize = 8; //#5346 + $_.isbntextxoffset = null; //#5347 + $_.isbntextyoffset = null; //#5348 + $_.height = 1; //#5349 + $_.addongap = 12; //#5350 + $_.legacy = false; //#5351 + $k[$j++] = $_; //#5353 + bwipp_processoptions(); //#5353 + $_.options = $k[--$j]; //#5353 + $_.barcode = $k[--$j]; //#5354 + $search($_.barcode, " "); //#5357 + if ($k[--$j]) { //#5363 + $_.barcode = $k[--$j]; //#5358 + $j--; //#5359 + $_.addon = $k[--$j]; //#5360 + } else { //#5363 + $j--; //#5362 + $_.addon = ""; //#5363 + } //#5363 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5370 + $k[$j++] = 'bwipp.isbnBadLength#5369'; //#5369 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5369 + bwipp_raiseerror(); //#5369 + } //#5369 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5373 + $k[$j++] = 'bwipp.isbnBadAddOnLength#5372'; //#5372 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5372 + bwipp_raiseerror(); //#5372 + } //#5372 + if ($_.barcode.length >= 15) { //#5437 + var _F = $geti($_.barcode, 0, 4); //#5375 + if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5377 + $k[$j++] = 'bwipp.isbn13badPrefix#5376'; //#5376 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5376 + bwipp_raiseerror(); //#5376 + } //#5376 + $_.wasdash = false; //#5378 + $_.numdash = 0; //#5378 + $_.numdigit = 0; //#5378 + var _H = $geti($_.barcode, 5, 9); //#5379 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5392 + var _K = $get(_H, _I); //#5392 + $k[$j++] = _K; //#5387 + if (_K == 45) { //#5387 + if ($_.wasdash) { //#5384 + $k[$j++] = 'bwipp.isbn13adjacentDashes#5383'; //#5383 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5383 + bwipp_raiseerror(); //#5383 + } //#5383 + $_.wasdash = true; //#5385 + $_.numdash = $_.numdash + 1; //#5386 + } //#5386 + var _N = $k[--$j]; //#5388 + if ((_N >= 48) && (_N <= 57)) { //#5391 + $_.wasdash = false; //#5389 + $_.numdigit = $_.numdigit + 1; //#5390 + } //#5390 + } //#5390 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5395 + $k[$j++] = 'bwipp.isbn13numDashesDigits#5394'; //#5394 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5394 + bwipp_raiseerror(); //#5394 + } //#5394 + var _S = $get($_.barcode, 14); //#5396 + if ((_S < 48) || (_S > 57)) { //#5398 + $k[$j++] = 'bwipp.isbn13character15#5397'; //#5397 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5397 + bwipp_raiseerror(); //#5397 + } //#5397 + if ($_.barcode.length == 17) { //#5406 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5402 + $k[$j++] = 'bwipp.isbn13character16#5401'; //#5401 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5401 + bwipp_raiseerror(); //#5401 + } //#5401 + var _X = $get($_.barcode, 16); //#5403 + if ((_X < 48) || (_X > 57)) { //#5405 + $k[$j++] = 'bwipp.isbn13character17#5404'; //#5404 + $k[$j++] = "ISBN-13 final character must be a digit"; //#5404 + bwipp_raiseerror(); //#5404 + } //#5404 + } //#5404 + } else { //#5437 + var _Z = $get($_.barcode, 0); //#5408 + if ((_Z < 48) || (_Z > 57)) { //#5410 + $k[$j++] = 'bwipp.isbn10FirstDigit#5409'; //#5409 + $k[$j++] = "ISBN-10 first character must be a digit"; //#5409 + bwipp_raiseerror(); //#5409 } //#5409 - var _2W = $get($_.args, "txt") !== undefined; //#5411 - if (_2W) { //#5418 - $_.txt = $get($_.args, "txt"); //#5412 - $_.newtxt = $a($_.txt.length + 1); //#5413 - $puti($_.newtxt, 0, $_.txt); //#5414 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5415 - $put($_.args, "txt", $_.newtxt); //#5416 - } else { //#5418 - $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5418 - } //#5418 - } //#5418 - $put($_.args, "opt", $_.options); //#5422 - $k[$j++] = $_.args; //#5425 - if (!$_.dontdraw) { //#5425 - bwipp_renlinear(); //#5425 - } //#5425 - $_ = Object.getPrototypeOf($_); //#5427 -} - + $_.wasdash = false; //#5411 + $_.numdash = 0; //#5411 + $_.numdigit = 0; //#5411 + var _b = $geti($_.barcode, 1, 9); //#5412 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5425 + var _e = $get(_b, _c); //#5425 + $k[$j++] = _e; //#5420 + if (_e == 45) { //#5420 + if ($_.wasdash) { //#5417 + $k[$j++] = 'bwipp.isbn10adjacentDashes#5416'; //#5416 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5416 + bwipp_raiseerror(); //#5416 + } //#5416 + $_.wasdash = true; //#5418 + $_.numdash = $_.numdash + 1; //#5419 + } //#5419 + var _h = $k[--$j]; //#5421 + if ((_h >= 48) && (_h <= 57)) { //#5424 + $_.wasdash = false; //#5422 + $_.numdigit = $_.numdigit + 1; //#5423 + } //#5423 + } //#5423 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5428 + $k[$j++] = 'bwipp.isbn10numDashesDigits#5427'; //#5427 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5427 + bwipp_raiseerror(); //#5427 + } //#5427 + var _m = $get($_.barcode, 10); //#5429 + if ((_m < 48) || (_m > 57)) { //#5431 + $k[$j++] = 'bwipp.isbn10character11#5430'; //#5430 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5430 + bwipp_raiseerror(); //#5430 + } //#5430 + if ($_.barcode.length == 13) { //#5439 + if ($ne($geti($_.barcode, 11, 1), "-")) { //#5435 + $k[$j++] = 'bwipp.isbn10character12#5434'; //#5434 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5434 + bwipp_raiseerror(); //#5434 + } //#5434 + var _r = $get($_.barcode, 12); //#5436 + if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5438 + $k[$j++] = 'bwipp.isbn10character13#5437'; //#5437 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5437 + bwipp_raiseerror(); //#5437 + } //#5437 + } //#5437 + } //#5437 + $_.isbntxt = $_.barcode; //#5442 + if ($_.isbntxt.length <= 13) { //#5468 + $_.isbn = $s(10); //#5446 + $_.checksum = 0; //#5447 + $_.i = 0; //#5448 + $_.n = 0; //#5448 + for (;;) { //#5460 + $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5450 + if ($_.isbnchar != -3) { //#5457 + $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5452 + if ($_.n < 9) { //#5455 + $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5454 + } //#5454 + $_.n = $_.n + 1; //#5456 + } //#5456 + $_.i = $_.i + 1; //#5458 + if ($_.i == $_.isbntxt.length) { //#5459 + break; //#5459 + } //#5459 + } //#5459 + var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5461 + $k[$j++] = 'checksum'; //#5461 + $k[$j++] = _1B; //#5461 + if (_1B == 10) { //#5461 + $j--; //#5461 + $k[$j++] = 40; //#5461 + } //#5461 + var _1C = $k[--$j]; //#5461 + $_[$k[--$j]] = $f(_1C + 48); //#5461 + $_.isbn = $geti($_.isbn, 0, 9); //#5462 + if ($_.isbntxt.length == 13) { //#5467 + if ($get($_.isbntxt, 12) != $_.checksum) { //#5466 + $k[$j++] = 'bwipp.isbn10badCheckDigit#5465'; //#5465 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5465 + bwipp_raiseerror(); //#5465 + } //#5465 + } //#5465 + } //#5465 + if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5504 + if ($_.isbntxt.length <= 13) { //#5478 + $_.pad = $s(15); //#5474 + $puti($_.pad, 0, "978-"); //#5475 + $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5476 + $_.isbntxt = $_.pad; //#5477 + } //#5477 + $_.isbn = $s(13); //#5481 + $_.checksum = 0; //#5482 + $_.i = 0; //#5483 + $_.n = 0; //#5483 + for (;;) { //#5495 + $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5485 + if ($_.isbnchar != -3) { //#5492 + $put($_.isbn, $_.n, $_.isbnchar + 48); //#5487 + if ($_.n < 12) { //#5490 + $k[$j++] = 'checksum'; //#5489 + $k[$j++] = $_.isbnchar; //#5489 + if (($_.n % 2) != 0) { //#5489 + var _1e = $k[--$j]; //#5489 + $k[$j++] = _1e * 3; //#5489 + } //#5489 + var _1g = $k[--$j]; //#5489 + $_[$k[--$j]] = $f(_1g + $_.checksum); //#5489 + } //#5489 + $_.n = $_.n + 1; //#5491 + } //#5491 + $_.i = $_.i + 1; //#5493 + if ($_.i == $_.isbntxt.length) { //#5494 + break; //#5494 + } //#5494 + } //#5494 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5496 + $_.isbn = $geti($_.isbn, 0, 12); //#5497 + if ($_.isbntxt.length == 17) { //#5502 + if ($get($_.isbntxt, 16) != $_.checksum) { //#5501 + $k[$j++] = 'bwipp.isbn13badCheckDigit#5500'; //#5500 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5500 + bwipp_raiseerror(); //#5500 + } //#5500 + } //#5500 + } //#5500 + var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5507 + $_.pad = $s(_1u); //#5507 + $puti($_.pad, 0, "ISBN "); //#5508 + $puti($_.pad, 5, $_.isbntxt); //#5509 + $put($_.pad, $_.pad.length - 2, 45); //#5510 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5511 + $_.isbntxt = $_.pad; //#5512 + $_.barcode = $s(12); //#5515 + if ($_.isbn.length == 9) { //#5520 + $puti($_.barcode, 0, "978"); //#5517 + $puti($_.barcode, 3, $_.isbn); //#5518 + } else { //#5520 + $puti($_.barcode, 0, $_.isbn); //#5520 + } //#5520 + if ($ne($_.addon, "")) { //#5530 + var _2E = $s((12 + $_.addon.length) + 1); //#5525 + $puti(_2E, 0, $_.barcode); //#5526 + $puti(_2E, 12, " "); //#5527 + $puti(_2E, 13, $_.addon); //#5528 + $_.barcode = _2E; //#5529 + } //#5529 + $put($_.options, "dontdraw", true); //#5533 + $put($_.options, "addongap", $_.addongap); //#5534 + $k[$j++] = 'args'; //#5535 + $k[$j++] = $_.barcode; //#5535 + $k[$j++] = $_.options; //#5535 + bwipp_ean13(); //#5535 + var _2M = $k[--$j]; //#5535 + $_[$k[--$j]] = _2M; //#5535 + if ($_.includetext) { //#5554 + if ($eq($_.isbntextxoffset, null)) { //#5541 + $k[$j++] = 'isbntextxoffset'; //#5540 + if ($_.isbn.length == 9) { //#5540 + $k[$j++] = -1; //#5540 + } else { //#5540 + $k[$j++] = -12; //#5540 + } //#5540 + var _2R = $k[--$j]; //#5540 + $_[$k[--$j]] = _2R; //#5540 + } //#5540 + if ($eq($_.isbntextyoffset, null)) { //#5544 + $_.isbntextyoffset = ($_.height * 72) + 3; //#5543 + } //#5543 + var _2W = $get($_.args, "txt") !== undefined; //#5545 + if (_2W) { //#5552 + $_.txt = $get($_.args, "txt"); //#5546 + $_.newtxt = $a($_.txt.length + 1); //#5547 + $puti($_.newtxt, 0, $_.txt); //#5548 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5549 + $put($_.args, "txt", $_.newtxt); //#5550 + } else { //#5552 + $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5552 + } //#5552 + } //#5552 + $put($_.args, "opt", $_.options); //#5556 + $k[$j++] = $_.args; //#5559 + if (!$_.dontdraw) { //#5559 + bwipp_renlinear(); //#5559 + } //#5559 + $_ = Object.getPrototypeOf($_); //#5561 +} //bwipp_isbn function bwipp_ismn() { - $_ = Object.create($_); //#5456 - $_.dontdraw = false; //#5459 - $_.includetext = false; //#5460 - $_.ismntextfont = 'OCR-A'; //#5461 - $_.ismntextsize = 8; //#5462 - $_.ismntextxoffset = null; //#5463 - $_.ismntextyoffset = null; //#5464 - $_.height = 1; //#5465 - $_.addongap = 12; //#5466 - $_.legacy = false; //#5467 - $k[$j++] = $_; //#5469 - bwipp_processoptions(); //#5469 - $_.options = $k[--$j]; //#5469 - $_.barcode = $k[--$j]; //#5470 - $search($_.barcode, " "); //#5473 - if ($k[--$j]) { //#5479 - $_.barcode = $k[--$j]; //#5474 - $j--; //#5475 - $_.addon = $k[--$j]; //#5476 - } else { //#5479 - $j--; //#5478 - $_.addon = ""; //#5479 - } //#5479 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5486 - $k[$j++] = 'bwipp.ismnBadLength#5485'; //#5485 - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5485 - bwipp_raiseerror(); //#5485 - } //#5485 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5489 - $k[$j++] = 'bwipp.ismnBadAddOnLength#5488'; //#5488 - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5488 - bwipp_raiseerror(); //#5488 - } //#5488 - if ($_.barcode.length >= 15) { //#5556 - if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5493 - $k[$j++] = 'bwipp.ismn13badPrefix#5492'; //#5492 - $k[$j++] = "ISMN-13 prefix must be 979-"; //#5492 - bwipp_raiseerror(); //#5492 - } //#5492 - $_.wasdash = false; //#5494 - $_.numdash = 0; //#5494 - $_.numdigit = 0; //#5494 - var _H = $geti($_.barcode, 5, 9); //#5495 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5508 - var _K = $get(_H, _I); //#5508 - $k[$j++] = _K; //#5503 - if (_K == 45) { //#5503 - if ($_.wasdash) { //#5500 - $k[$j++] = 'bwipp.ismn13adjacentDashes#5499'; //#5499 - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5499 - bwipp_raiseerror(); //#5499 - } //#5499 - $_.wasdash = true; //#5501 - $_.numdash = $_.numdash + 1; //#5502 - } //#5502 - var _N = $k[--$j]; //#5504 - if ((_N >= 48) && (_N <= 57)) { //#5507 - $_.wasdash = false; //#5505 - $_.numdigit = $_.numdigit + 1; //#5506 - } //#5506 - } //#5506 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5511 - $k[$j++] = 'bwipp.ismn13numDashesDigits#5510'; //#5510 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5510 - bwipp_raiseerror(); //#5510 - } //#5510 - var _S = $get($_.barcode, 14); //#5512 - if ((_S < 48) || (_S > 57)) { //#5514 - $k[$j++] = 'bwipp.ismn13character15#5513'; //#5513 - $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5513 - bwipp_raiseerror(); //#5513 - } //#5513 - if ($_.barcode.length == 17) { //#5522 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5518 - $k[$j++] = 'bwipp.ismn13character16#5517'; //#5517 - $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5517 - bwipp_raiseerror(); //#5517 - } //#5517 - var _X = $get($_.barcode, 16); //#5519 - if ((_X < 48) || (_X > 57)) { //#5521 - $k[$j++] = 'bwipp.ismn13character17#5520'; //#5520 - $k[$j++] = "ISMN-13 final character must be a digit"; //#5520 - bwipp_raiseerror(); //#5520 - } //#5520 - } //#5520 - } else { //#5556 - if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5526 - $k[$j++] = 'bwipp.ismn10badPrefix#5525'; //#5525 - $k[$j++] = "ISMN-10 prefix must be M-"; //#5525 - bwipp_raiseerror(); //#5525 - } //#5525 - var _b = $get($_.barcode, 2); //#5527 - if ((_b < 48) || (_b > 57)) { //#5529 - $k[$j++] = 'bwipp.ismn10character3#5528'; //#5528 - $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5528 - bwipp_raiseerror(); //#5528 - } //#5528 - $_.wasdash = false; //#5530 - $_.numdash = 0; //#5530 - $_.numdigit = 0; //#5530 - var _d = $geti($_.barcode, 3, 7); //#5531 - for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5544 - var _g = $get(_d, _e); //#5544 - $k[$j++] = _g; //#5539 - if (_g == 45) { //#5539 - if ($_.wasdash) { //#5536 - $k[$j++] = 'bwipp.ismn10adjacentDashes#5535'; //#5535 - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5535 - bwipp_raiseerror(); //#5535 - } //#5535 - $_.wasdash = true; //#5537 - $_.numdash = $_.numdash + 1; //#5538 - } //#5538 - var _j = $k[--$j]; //#5540 - if ((_j >= 48) && (_j <= 57)) { //#5543 - $_.wasdash = false; //#5541 - $_.numdigit = $_.numdigit + 1; //#5542 - } //#5542 - } //#5542 - if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5547 - $k[$j++] = 'bwipp.ismn10numDashesDigits#5546'; //#5546 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5546 - bwipp_raiseerror(); //#5546 - } //#5546 - var _o = $get($_.barcode, 10); //#5548 - if ((_o < 48) || (_o > 57)) { //#5550 - $k[$j++] = 'bwipp.ismn10character11#5549'; //#5549 - $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5549 - bwipp_raiseerror(); //#5549 - } //#5549 - if ($_.barcode.length == 13) { //#5558 - var _r = $geti($_.barcode, 11, 1); //#5552 - if ($ne(_r, "-")) { //#5554 - $k[$j++] = 'bwipp.ismn10character12#5553'; //#5553 - $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5553 - bwipp_raiseerror(); //#5553 - } //#5553 - var _t = $get($_.barcode, 12); //#5555 - if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5557 - $k[$j++] = 'bwipp.ismn10character13#5556'; //#5556 - $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5556 - bwipp_raiseerror(); //#5556 - } //#5556 - } //#5556 - } //#5556 - $_.ismntxt = $_.barcode; //#5561 - $_.legacytxt = ""; //#5564 - if ($_.ismntxt.length <= 13) { //#5571 - $_.legacytxt = $_.ismntxt; //#5566 - $_.pad = $s($_.ismntxt.length + 4); //#5567 - $puti($_.pad, 0, "979-0-"); //#5568 - $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5569 - $_.ismntxt = $_.pad; //#5570 - } //#5570 - $_.ismn = $s(13); //#5574 - $_.checksum = 0; //#5575 - $_.i = 0; //#5576 - $_.n = 0; //#5576 - for (;;) { //#5592 - $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5578 - if ($_.ismnchar != -3) { //#5589 - $put($_.ismn, $_.n, $_.ismnchar + 48); //#5580 - if ($_.n < 12) { //#5587 - if (($_.n % 2) == 0) { //#5585 - $_.checksum = $_.ismnchar + $_.checksum; //#5583 - } else { //#5585 - $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5585 - } //#5585 - } //#5585 - $_.n = $_.n + 1; //#5588 - } //#5588 - $_.i = $_.i + 1; //#5590 - if ($_.i == $_.ismntxt.length) { //#5591 - break; //#5591 - } //#5591 - } //#5591 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5593 - if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5600 - var _1Q = $_.barcode; //#5597 - if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5599 - $k[$j++] = 'bwipp.ismnBadCheckDigit#5598'; //#5598 - $k[$j++] = "Incorrect ISMN check digit provided"; //#5598 - bwipp_raiseerror(); //#5598 - } //#5598 - } //#5598 - if ($_.legacy && $ne($_.legacytxt, "")) { //#5607 - $_.ismntxt = $_.legacytxt; //#5604 - $_.pad = $s(18); //#5605 - } else { //#5607 - $_.pad = $s(22); //#5607 - } //#5607 - $puti($_.pad, 0, "ISMN "); //#5609 - $puti($_.pad, 5, $_.ismntxt); //#5610 - $put($_.pad, $_.pad.length - 2, 45); //#5611 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5612 - $_.ismntxt = $_.pad; //#5613 - $_.barcode = $geti($_.ismn, 0, 12); //#5616 - if ($ne($_.addon, "")) { //#5625 - var _1l = $s((12 + $_.addon.length) + 1); //#5620 - $puti(_1l, 0, $_.barcode); //#5621 - $puti(_1l, 12, " "); //#5622 - $puti(_1l, 13, $_.addon); //#5623 - $_.barcode = _1l; //#5624 - } //#5624 - $put($_.options, "dontdraw", true); //#5628 - $put($_.options, "addongap", $_.addongap); //#5629 - $k[$j++] = 'args'; //#5630 - $k[$j++] = $_.barcode; //#5630 - $k[$j++] = $_.options; //#5630 - bwipp_ean13(); //#5630 - var _1t = $k[--$j]; //#5630 - $_[$k[--$j]] = _1t; //#5630 - if ($_.includetext) { //#5649 - if ($eq($_.ismntextxoffset, null)) { //#5636 - $k[$j++] = 'ismntextxoffset'; //#5635 - if ($_.ismntxt.length == 18) { //#5635 - $k[$j++] = -1; //#5635 - } else { //#5635 - $k[$j++] = -12; //#5635 - } //#5635 - var _1y = $k[--$j]; //#5635 - $_[$k[--$j]] = _1y; //#5635 - } //#5635 - if ($eq($_.ismntextyoffset, null)) { //#5639 - $_.ismntextyoffset = ($_.height * 72) + 3; //#5638 - } //#5638 - var _23 = $get($_.args, "txt") !== undefined; //#5640 - if (_23) { //#5647 - $_.txt = $get($_.args, "txt"); //#5641 - $_.newtxt = $a($_.txt.length + 1); //#5642 - $puti($_.newtxt, 0, $_.txt); //#5643 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5644 - $put($_.args, "txt", $_.newtxt); //#5645 - } else { //#5647 - $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5647 + $_ = Object.create($_); //#5590 + $_.dontdraw = false; //#5593 + $_.includetext = false; //#5594 + $_.ismntextfont = 'OCR-A'; //#5595 + $_.ismntextsize = 8; //#5596 + $_.ismntextxoffset = null; //#5597 + $_.ismntextyoffset = null; //#5598 + $_.height = 1; //#5599 + $_.addongap = 12; //#5600 + $_.legacy = false; //#5601 + $k[$j++] = $_; //#5603 + bwipp_processoptions(); //#5603 + $_.options = $k[--$j]; //#5603 + $_.barcode = $k[--$j]; //#5604 + $search($_.barcode, " "); //#5607 + if ($k[--$j]) { //#5613 + $_.barcode = $k[--$j]; //#5608 + $j--; //#5609 + $_.addon = $k[--$j]; //#5610 + } else { //#5613 + $j--; //#5612 + $_.addon = ""; //#5613 + } //#5613 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5620 + $k[$j++] = 'bwipp.ismnBadLength#5619'; //#5619 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5619 + bwipp_raiseerror(); //#5619 + } //#5619 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5623 + $k[$j++] = 'bwipp.ismnBadAddOnLength#5622'; //#5622 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5622 + bwipp_raiseerror(); //#5622 + } //#5622 + if ($_.barcode.length >= 15) { //#5690 + if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5627 + $k[$j++] = 'bwipp.ismn13badPrefix#5626'; //#5626 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#5626 + bwipp_raiseerror(); //#5626 + } //#5626 + $_.wasdash = false; //#5628 + $_.numdash = 0; //#5628 + $_.numdigit = 0; //#5628 + var _H = $geti($_.barcode, 5, 9); //#5629 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5642 + var _K = $get(_H, _I); //#5642 + $k[$j++] = _K; //#5637 + if (_K == 45) { //#5637 + if ($_.wasdash) { //#5634 + $k[$j++] = 'bwipp.ismn13adjacentDashes#5633'; //#5633 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5633 + bwipp_raiseerror(); //#5633 + } //#5633 + $_.wasdash = true; //#5635 + $_.numdash = $_.numdash + 1; //#5636 + } //#5636 + var _N = $k[--$j]; //#5638 + if ((_N >= 48) && (_N <= 57)) { //#5641 + $_.wasdash = false; //#5639 + $_.numdigit = $_.numdigit + 1; //#5640 + } //#5640 + } //#5640 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5645 + $k[$j++] = 'bwipp.ismn13numDashesDigits#5644'; //#5644 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5644 + bwipp_raiseerror(); //#5644 + } //#5644 + var _S = $get($_.barcode, 14); //#5646 + if ((_S < 48) || (_S > 57)) { //#5648 + $k[$j++] = 'bwipp.ismn13character15#5647'; //#5647 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5647 + bwipp_raiseerror(); //#5647 } //#5647 - } //#5647 - $put($_.args, "opt", $_.options); //#5651 - $k[$j++] = $_.args; //#5654 - if (!$_.dontdraw) { //#5654 - bwipp_renlinear(); //#5654 - } //#5654 - $_ = Object.getPrototypeOf($_); //#5656 -} - + if ($_.barcode.length == 17) { //#5656 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5652 + $k[$j++] = 'bwipp.ismn13character16#5651'; //#5651 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5651 + bwipp_raiseerror(); //#5651 + } //#5651 + var _X = $get($_.barcode, 16); //#5653 + if ((_X < 48) || (_X > 57)) { //#5655 + $k[$j++] = 'bwipp.ismn13character17#5654'; //#5654 + $k[$j++] = "ISMN-13 final character must be a digit"; //#5654 + bwipp_raiseerror(); //#5654 + } //#5654 + } //#5654 + } else { //#5690 + if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5660 + $k[$j++] = 'bwipp.ismn10badPrefix#5659'; //#5659 + $k[$j++] = "ISMN-10 prefix must be M-"; //#5659 + bwipp_raiseerror(); //#5659 + } //#5659 + var _b = $get($_.barcode, 2); //#5661 + if ((_b < 48) || (_b > 57)) { //#5663 + $k[$j++] = 'bwipp.ismn10character3#5662'; //#5662 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5662 + bwipp_raiseerror(); //#5662 + } //#5662 + $_.wasdash = false; //#5664 + $_.numdash = 0; //#5664 + $_.numdigit = 0; //#5664 + var _d = $geti($_.barcode, 3, 7); //#5665 + for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5678 + var _g = $get(_d, _e); //#5678 + $k[$j++] = _g; //#5673 + if (_g == 45) { //#5673 + if ($_.wasdash) { //#5670 + $k[$j++] = 'bwipp.ismn10adjacentDashes#5669'; //#5669 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5669 + bwipp_raiseerror(); //#5669 + } //#5669 + $_.wasdash = true; //#5671 + $_.numdash = $_.numdash + 1; //#5672 + } //#5672 + var _j = $k[--$j]; //#5674 + if ((_j >= 48) && (_j <= 57)) { //#5677 + $_.wasdash = false; //#5675 + $_.numdigit = $_.numdigit + 1; //#5676 + } //#5676 + } //#5676 + if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5681 + $k[$j++] = 'bwipp.ismn10numDashesDigits#5680'; //#5680 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5680 + bwipp_raiseerror(); //#5680 + } //#5680 + var _o = $get($_.barcode, 10); //#5682 + if ((_o < 48) || (_o > 57)) { //#5684 + $k[$j++] = 'bwipp.ismn10character11#5683'; //#5683 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5683 + bwipp_raiseerror(); //#5683 + } //#5683 + if ($_.barcode.length == 13) { //#5692 + var _r = $geti($_.barcode, 11, 1); //#5686 + if ($ne(_r, "-")) { //#5688 + $k[$j++] = 'bwipp.ismn10character12#5687'; //#5687 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5687 + bwipp_raiseerror(); //#5687 + } //#5687 + var _t = $get($_.barcode, 12); //#5689 + if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5691 + $k[$j++] = 'bwipp.ismn10character13#5690'; //#5690 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5690 + bwipp_raiseerror(); //#5690 + } //#5690 + } //#5690 + } //#5690 + $_.ismntxt = $_.barcode; //#5695 + $_.legacytxt = ""; //#5698 + if ($_.ismntxt.length <= 13) { //#5705 + $_.legacytxt = $_.ismntxt; //#5700 + $_.pad = $s($_.ismntxt.length + 4); //#5701 + $puti($_.pad, 0, "979-0-"); //#5702 + $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5703 + $_.ismntxt = $_.pad; //#5704 + } //#5704 + $_.ismn = $s(13); //#5708 + $_.checksum = 0; //#5709 + $_.i = 0; //#5710 + $_.n = 0; //#5710 + for (;;) { //#5726 + $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5712 + if ($_.ismnchar != -3) { //#5723 + $put($_.ismn, $_.n, $_.ismnchar + 48); //#5714 + if ($_.n < 12) { //#5721 + if (($_.n % 2) == 0) { //#5719 + $_.checksum = $_.ismnchar + $_.checksum; //#5717 + } else { //#5719 + $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5719 + } //#5719 + } //#5719 + $_.n = $_.n + 1; //#5722 + } //#5722 + $_.i = $_.i + 1; //#5724 + if ($_.i == $_.ismntxt.length) { //#5725 + break; //#5725 + } //#5725 + } //#5725 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5727 + if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5734 + var _1Q = $_.barcode; //#5731 + if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5733 + $k[$j++] = 'bwipp.ismnBadCheckDigit#5732'; //#5732 + $k[$j++] = "Incorrect ISMN check digit provided"; //#5732 + bwipp_raiseerror(); //#5732 + } //#5732 + } //#5732 + if ($_.legacy && $ne($_.legacytxt, "")) { //#5741 + $_.ismntxt = $_.legacytxt; //#5738 + $_.pad = $s(18); //#5739 + } else { //#5741 + $_.pad = $s(22); //#5741 + } //#5741 + $puti($_.pad, 0, "ISMN "); //#5743 + $puti($_.pad, 5, $_.ismntxt); //#5744 + $put($_.pad, $_.pad.length - 2, 45); //#5745 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5746 + $_.ismntxt = $_.pad; //#5747 + $_.barcode = $geti($_.ismn, 0, 12); //#5750 + if ($ne($_.addon, "")) { //#5759 + var _1l = $s((12 + $_.addon.length) + 1); //#5754 + $puti(_1l, 0, $_.barcode); //#5755 + $puti(_1l, 12, " "); //#5756 + $puti(_1l, 13, $_.addon); //#5757 + $_.barcode = _1l; //#5758 + } //#5758 + $put($_.options, "dontdraw", true); //#5762 + $put($_.options, "addongap", $_.addongap); //#5763 + $k[$j++] = 'args'; //#5764 + $k[$j++] = $_.barcode; //#5764 + $k[$j++] = $_.options; //#5764 + bwipp_ean13(); //#5764 + var _1t = $k[--$j]; //#5764 + $_[$k[--$j]] = _1t; //#5764 + if ($_.includetext) { //#5783 + if ($eq($_.ismntextxoffset, null)) { //#5770 + $k[$j++] = 'ismntextxoffset'; //#5769 + if ($_.ismntxt.length == 18) { //#5769 + $k[$j++] = -1; //#5769 + } else { //#5769 + $k[$j++] = -12; //#5769 + } //#5769 + var _1y = $k[--$j]; //#5769 + $_[$k[--$j]] = _1y; //#5769 + } //#5769 + if ($eq($_.ismntextyoffset, null)) { //#5773 + $_.ismntextyoffset = ($_.height * 72) + 3; //#5772 + } //#5772 + var _23 = $get($_.args, "txt") !== undefined; //#5774 + if (_23) { //#5781 + $_.txt = $get($_.args, "txt"); //#5775 + $_.newtxt = $a($_.txt.length + 1); //#5776 + $puti($_.newtxt, 0, $_.txt); //#5777 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5778 + $put($_.args, "txt", $_.newtxt); //#5779 + } else { //#5781 + $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5781 + } //#5781 + } //#5781 + $put($_.args, "opt", $_.options); //#5785 + $k[$j++] = $_.args; //#5788 + if (!$_.dontdraw) { //#5788 + bwipp_renlinear(); //#5788 + } //#5788 + $_ = Object.getPrototypeOf($_); //#5790 +} //bwipp_ismn function bwipp_issn() { - $_ = Object.create($_); //#5685 - $_.dontdraw = false; //#5688 - $_.includetext = false; //#5689 - $_.issntextfont = 'OCR-A'; //#5690 - $_.issntextsize = 8; //#5691 - $_.issntextxoffset = null; //#5692 - $_.issntextyoffset = null; //#5693 - $_.height = 1; //#5694 - $_.addongap = 12; //#5695 - $k[$j++] = $_; //#5697 - bwipp_processoptions(); //#5697 - $_.options = $k[--$j]; //#5697 - $_.issntxt = $k[--$j]; //#5698 - $search($_.issntxt, " "); //#5701 - if ($k[--$j]) { //#5707 - $_.issntxt = $k[--$j]; //#5702 - $j--; //#5703 - $_.seqvar = $k[--$j]; //#5704 - } else { //#5707 - $j--; //#5706 - $_.seqvar = "00"; //#5707 - } //#5707 - $search($_.seqvar, " "); //#5711 - if ($k[--$j]) { //#5717 - $_.seqvar = $k[--$j]; //#5712 - $j--; //#5713 - $_.addon = $k[--$j]; //#5714 - } else { //#5717 - $j--; //#5716 - $_.addon = ""; //#5717 - } //#5717 - if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5723 - $k[$j++] = 'bwipp.issnBadLength#5722'; //#5722 - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5722 - bwipp_raiseerror(); //#5722 - } //#5722 - var _D = $geti($_.issntxt, 0, 4); //#5724 - for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5728 - var _G = $get(_D, _E); //#5728 - if ((_G < 48) || (_G > 57)) { //#5727 - $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5726'; //#5726 - $k[$j++] = "ISSN first four characters must be numeral characters"; //#5726 - bwipp_raiseerror(); //#5726 - } //#5726 - } //#5726 - if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5731 - $k[$j++] = 'bwipp.issnNeedsDash#5730'; //#5730 - $k[$j++] = "ISSN fifth character must be a dash"; //#5730 - bwipp_raiseerror(); //#5730 - } //#5730 - var _K = $geti($_.issntxt, 5, 3); //#5732 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5736 - var _N = $get(_K, _L); //#5736 - if ((_N < 48) || (_N > 57)) { //#5735 - $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5734'; //#5734 - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5734 - bwipp_raiseerror(); //#5734 - } //#5734 - } //#5734 - if ($_.issntxt.length == 9) { //#5741 - var _Q = $get($_.issntxt, 8); //#5738 - if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5740 - $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5739'; //#5739 - $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5739 - bwipp_raiseerror(); //#5739 - } //#5739 - } //#5739 - if ($_.seqvar.length != 2) { //#5744 - $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5743'; //#5743 - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5743 - bwipp_raiseerror(); //#5743 - } //#5743 - $forall($_.seqvar, function() { //#5749 - var _T = $k[--$j]; //#5746 - if ((_T < 48) || (_T > 57)) { //#5748 - $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5747'; //#5747 - $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5747 - bwipp_raiseerror(); //#5747 - } //#5747 - }); //#5747 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5752 - $k[$j++] = 'bwipp.issnBadAddOnLength#5751'; //#5751 - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5751 - bwipp_raiseerror(); //#5751 - } //#5751 - $_.issn = $s(8); //#5755 - $_.checksum = 0; //#5756 - $_.i = 0; //#5757 - $_.n = 0; //#5757 - for (;;) { //#5769 - $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5759 - if ($_.issnchar != -3) { //#5766 - $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5761 - if ($_.n < 7) { //#5764 - $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5763 - } //#5763 - $_.n = $_.n + 1; //#5765 - } //#5765 - $_.i = $_.i + 1; //#5767 - if ($_.i == $_.issntxt.length) { //#5768 - break; //#5768 - } //#5768 - } //#5768 - $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5770 - var _p = $f($_.checksum + 48); //#5771 - $k[$j++] = 'checksum'; //#5771 - $k[$j++] = _p; //#5771 - if (_p == 58) { //#5771 - $j--; //#5771 - $k[$j++] = 88; //#5771 - } //#5771 - var _q = $k[--$j]; //#5771 - var _r = $k[--$j]; //#5771 - $_[_r] = _q; //#5771 - if ($_.issntxt.length == 9) { //#5776 - if ($get($_.issntxt, 8) != $_.checksum) { //#5775 - $k[$j++] = 'bwipp.issnBadCheckDigit#5774'; //#5774 - $k[$j++] = "Incorrect ISSN check digit provided"; //#5774 - bwipp_raiseerror(); //#5774 - } //#5774 - } //#5774 - $_.pad = $s(14); //#5779 - $puti($_.pad, 0, "ISSN "); //#5780 - $puti($_.pad, 5, $_.issntxt); //#5781 - $put($_.pad, 13, $_.checksum); //#5782 - $_.issntxt = $_.pad; //#5783 - $_.barcode = $geti($_.issn, 0, 7); //#5786 - $_.barcode = $s(12); //#5789 - $puti($_.barcode, 0, "977"); //#5790 - $puti($_.barcode, 3, $_.issn); //#5791 - $puti($_.barcode, 10, $_.seqvar); //#5792 - if ($ne($_.addon, "")) { //#5801 - var _1D = $s((12 + $_.addon.length) + 1); //#5796 - $puti(_1D, 0, $_.barcode); //#5797 - $puti(_1D, 12, " "); //#5798 - $puti(_1D, 13, $_.addon); //#5799 - $_.barcode = _1D; //#5800 - } //#5800 - $put($_.options, "dontdraw", true); //#5804 - $put($_.options, "addongap", $_.addongap); //#5805 - $k[$j++] = 'args'; //#5806 - $k[$j++] = $_.barcode; //#5806 - $k[$j++] = $_.options; //#5806 - bwipp_ean13(); //#5806 - var _1L = $k[--$j]; //#5806 - $_[$k[--$j]] = _1L; //#5806 - if ($_.includetext) { //#5821 - if ($eq($_.issntextxoffset, null)) { //#5810 - $_.issntextxoffset = 10; //#5810 - } //#5810 - if ($eq($_.issntextyoffset, null)) { //#5811 - $_.issntextyoffset = ($_.height * 72) + 3; //#5811 - } //#5811 - var _1S = $get($_.args, "txt") !== undefined; //#5812 - if (_1S) { //#5819 - $_.txt = $get($_.args, "txt"); //#5813 - $_.newtxt = $a($_.txt.length + 1); //#5814 - $puti($_.newtxt, 0, $_.txt); //#5815 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5816 - $put($_.args, "txt", $_.newtxt); //#5817 - } else { //#5819 - $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5819 - } //#5819 - } //#5819 - $put($_.args, "opt", $_.options); //#5823 - $k[$j++] = $_.args; //#5826 - if (!$_.dontdraw) { //#5826 - bwipp_renlinear(); //#5826 - } //#5826 - $_ = Object.getPrototypeOf($_); //#5828 -} - + $_ = Object.create($_); //#5819 + $_.dontdraw = false; //#5822 + $_.includetext = false; //#5823 + $_.issntextfont = 'OCR-A'; //#5824 + $_.issntextsize = 8; //#5825 + $_.issntextxoffset = null; //#5826 + $_.issntextyoffset = null; //#5827 + $_.height = 1; //#5828 + $_.addongap = 12; //#5829 + $k[$j++] = $_; //#5831 + bwipp_processoptions(); //#5831 + $_.options = $k[--$j]; //#5831 + $_.issntxt = $k[--$j]; //#5832 + $search($_.issntxt, " "); //#5835 + if ($k[--$j]) { //#5841 + $_.issntxt = $k[--$j]; //#5836 + $j--; //#5837 + $_.seqvar = $k[--$j]; //#5838 + } else { //#5841 + $j--; //#5840 + $_.seqvar = "00"; //#5841 + } //#5841 + $search($_.seqvar, " "); //#5845 + if ($k[--$j]) { //#5851 + $_.seqvar = $k[--$j]; //#5846 + $j--; //#5847 + $_.addon = $k[--$j]; //#5848 + } else { //#5851 + $j--; //#5850 + $_.addon = ""; //#5851 + } //#5851 + if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5857 + $k[$j++] = 'bwipp.issnBadLength#5856'; //#5856 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5856 + bwipp_raiseerror(); //#5856 + } //#5856 + var _D = $geti($_.issntxt, 0, 4); //#5858 + for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5862 + var _G = $get(_D, _E); //#5862 + if ((_G < 48) || (_G > 57)) { //#5861 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5860'; //#5860 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#5860 + bwipp_raiseerror(); //#5860 + } //#5860 + } //#5860 + if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5865 + $k[$j++] = 'bwipp.issnNeedsDash#5864'; //#5864 + $k[$j++] = "ISSN fifth character must be a dash"; //#5864 + bwipp_raiseerror(); //#5864 + } //#5864 + var _K = $geti($_.issntxt, 5, 3); //#5866 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5870 + var _N = $get(_K, _L); //#5870 + if ((_N < 48) || (_N > 57)) { //#5869 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5868'; //#5868 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5868 + bwipp_raiseerror(); //#5868 + } //#5868 + } //#5868 + if ($_.issntxt.length == 9) { //#5875 + var _Q = $get($_.issntxt, 8); //#5872 + if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5874 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5873'; //#5873 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5873 + bwipp_raiseerror(); //#5873 + } //#5873 + } //#5873 + if ($_.seqvar.length != 2) { //#5878 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5877'; //#5877 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5877 + bwipp_raiseerror(); //#5877 + } //#5877 + $forall($_.seqvar, function() { //#5883 + var _T = $k[--$j]; //#5880 + if ((_T < 48) || (_T > 57)) { //#5882 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5881'; //#5881 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5881 + bwipp_raiseerror(); //#5881 + } //#5881 + }); //#5881 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5886 + $k[$j++] = 'bwipp.issnBadAddOnLength#5885'; //#5885 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5885 + bwipp_raiseerror(); //#5885 + } //#5885 + $_.issn = $s(8); //#5889 + $_.checksum = 0; //#5890 + $_.i = 0; //#5891 + $_.n = 0; //#5891 + for (;;) { //#5903 + $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5893 + if ($_.issnchar != -3) { //#5900 + $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5895 + if ($_.n < 7) { //#5898 + $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5897 + } //#5897 + $_.n = $_.n + 1; //#5899 + } //#5899 + $_.i = $_.i + 1; //#5901 + if ($_.i == $_.issntxt.length) { //#5902 + break; //#5902 + } //#5902 + } //#5902 + $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5904 + var _p = $f($_.checksum + 48); //#5905 + $k[$j++] = 'checksum'; //#5905 + $k[$j++] = _p; //#5905 + if (_p == 58) { //#5905 + $j--; //#5905 + $k[$j++] = 88; //#5905 + } //#5905 + var _q = $k[--$j]; //#5905 + var _r = $k[--$j]; //#5905 + $_[_r] = _q; //#5905 + if ($_.issntxt.length == 9) { //#5910 + if ($get($_.issntxt, 8) != $_.checksum) { //#5909 + $k[$j++] = 'bwipp.issnBadCheckDigit#5908'; //#5908 + $k[$j++] = "Incorrect ISSN check digit provided"; //#5908 + bwipp_raiseerror(); //#5908 + } //#5908 + } //#5908 + $_.pad = $s(14); //#5913 + $puti($_.pad, 0, "ISSN "); //#5914 + $puti($_.pad, 5, $_.issntxt); //#5915 + $put($_.pad, 13, $_.checksum); //#5916 + $_.issntxt = $_.pad; //#5917 + $_.barcode = $geti($_.issn, 0, 7); //#5920 + $_.barcode = $s(12); //#5923 + $puti($_.barcode, 0, "977"); //#5924 + $puti($_.barcode, 3, $_.issn); //#5925 + $puti($_.barcode, 10, $_.seqvar); //#5926 + if ($ne($_.addon, "")) { //#5935 + var _1D = $s((12 + $_.addon.length) + 1); //#5930 + $puti(_1D, 0, $_.barcode); //#5931 + $puti(_1D, 12, " "); //#5932 + $puti(_1D, 13, $_.addon); //#5933 + $_.barcode = _1D; //#5934 + } //#5934 + $put($_.options, "dontdraw", true); //#5938 + $put($_.options, "addongap", $_.addongap); //#5939 + $k[$j++] = 'args'; //#5940 + $k[$j++] = $_.barcode; //#5940 + $k[$j++] = $_.options; //#5940 + bwipp_ean13(); //#5940 + var _1L = $k[--$j]; //#5940 + $_[$k[--$j]] = _1L; //#5940 + if ($_.includetext) { //#5955 + if ($eq($_.issntextxoffset, null)) { //#5944 + $_.issntextxoffset = 10; //#5944 + } //#5944 + if ($eq($_.issntextyoffset, null)) { //#5945 + $_.issntextyoffset = ($_.height * 72) + 3; //#5945 + } //#5945 + var _1S = $get($_.args, "txt") !== undefined; //#5946 + if (_1S) { //#5953 + $_.txt = $get($_.args, "txt"); //#5947 + $_.newtxt = $a($_.txt.length + 1); //#5948 + $puti($_.newtxt, 0, $_.txt); //#5949 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5950 + $put($_.args, "txt", $_.newtxt); //#5951 + } else { //#5953 + $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5953 + } //#5953 + } //#5953 + $put($_.args, "opt", $_.options); //#5957 + $k[$j++] = $_.args; //#5960 + if (!$_.dontdraw) { //#5960 + bwipp_renlinear(); //#5960 + } //#5960 + $_ = Object.getPrototypeOf($_); //#5962 +} //bwipp_issn function bwipp_mands() { - $_ = Object.create($_); //#5857 - $_.dontdraw = false; //#5860 - $_.includetext = false; //#5861 - $k[$j++] = $_; //#5863 - bwipp_processoptions(); //#5863 - $_.options = $k[--$j]; //#5863 - $_.barcode = $k[--$j]; //#5864 - $_.barlen = $_.barcode.length; //#5866 - if (($_.barlen != 7) && ($_.barlen != 8)) { //#5871 - $k[$j++] = 'bwipp.MandSbadLength#5870'; //#5870 - $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#5870 - bwipp_raiseerror(); //#5870 - } //#5870 - if ($_.barlen == 7) { //#5875 - var _7 = $strcpy($s(8), "00000000"); //#5874 - $puti(_7, 1, $_.barcode); //#5874 - $_.barcode = _7; //#5874 - } //#5874 - $put($_.options, "dontdraw", true); //#5878 - $k[$j++] = 'args'; //#5879 - $k[$j++] = $_.barcode; //#5879 - $k[$j++] = $_.options; //#5879 - bwipp_ean8(); //#5879 - var _C = $k[--$j]; //#5879 - $_[$k[--$j]] = _C; //#5879 - var _F = $get($_.args, "bbs"); //#5882 - $put(_F, 10, $get(_F, 2)); //#5883 - $put(_F, 11, $get(_F, 2)); //#5884 - var _J = $get($_.args, "bhs"); //#5885 - $put(_J, 10, $get(_J, 2)); //#5886 - $put(_J, 11, $get(_J, 2)); //#5887 - $_.txt = $get($_.args, "txt"); //#5890 - if ($_.barlen == 7) { //#5898 - for (var _P = 0; _P <= 6; _P += 1) { //#5896 - var _Q = $_.txt; //#5893 - $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#5895 - } //#5895 - $puti($get($get($_.txt, 7), 0), 0, " "); //#5897 - } //#5897 - var _Y = $a(10); //#5901 - $puti(_Y, 0, $_.txt); //#5901 - $_.txt = _Y; //#5901 - var _b = $get($_.txt, 0); //#5902 - $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#5902 - var _g = $get($_.txt, 0); //#5903 - $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#5903 - $put($get($_.txt, 8), 0, "M"); //#5904 - $put($get($_.txt, 8), 1, -12); //#5904 - $put($get($_.txt, 9), 0, "S"); //#5905 - var _r = $get($_.txt, 9); //#5905 - $put(_r, 1, 69); //#5905 - $put($_.args, "txt", $_.txt); //#5907 - $put($_.args, "opt", $_.options); //#5908 - $k[$j++] = $_.args; //#5911 - if (!$_.dontdraw) { //#5911 - bwipp_renlinear(); //#5911 - } //#5911 - $_ = Object.getPrototypeOf($_); //#5913 -} - + $_ = Object.create($_); //#5991 + $_.dontdraw = false; //#5994 + $_.includetext = false; //#5995 + $k[$j++] = $_; //#5997 + bwipp_processoptions(); //#5997 + $_.options = $k[--$j]; //#5997 + $_.barcode = $k[--$j]; //#5998 + $_.barlen = $_.barcode.length; //#6000 + if (($_.barlen != 7) && ($_.barlen != 8)) { //#6005 + $k[$j++] = 'bwipp.MandSbadLength#6004'; //#6004 + $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#6004 + bwipp_raiseerror(); //#6004 + } //#6004 + if ($_.barlen == 7) { //#6009 + var _7 = $strcpy($s(8), "00000000"); //#6008 + $puti(_7, 1, $_.barcode); //#6008 + $_.barcode = _7; //#6008 + } //#6008 + $put($_.options, "dontdraw", true); //#6012 + $k[$j++] = 'args'; //#6013 + $k[$j++] = $_.barcode; //#6013 + $k[$j++] = $_.options; //#6013 + bwipp_ean8(); //#6013 + var _C = $k[--$j]; //#6013 + $_[$k[--$j]] = _C; //#6013 + var _F = $get($_.args, "bbs"); //#6016 + $put(_F, 10, $get(_F, 2)); //#6017 + $put(_F, 11, $get(_F, 2)); //#6018 + var _J = $get($_.args, "bhs"); //#6019 + $put(_J, 10, $get(_J, 2)); //#6020 + $put(_J, 11, $get(_J, 2)); //#6021 + $_.txt = $get($_.args, "txt"); //#6024 + if ($_.barlen == 7) { //#6032 + for (var _P = 0; _P <= 6; _P += 1) { //#6030 + var _Q = $_.txt; //#6027 + $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#6029 + } //#6029 + $puti($get($get($_.txt, 7), 0), 0, " "); //#6031 + } //#6031 + var _Y = $a(10); //#6035 + $puti(_Y, 0, $_.txt); //#6035 + $_.txt = _Y; //#6035 + var _b = $get($_.txt, 0); //#6036 + $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#6036 + var _g = $get($_.txt, 0); //#6037 + $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#6037 + $put($get($_.txt, 8), 0, "M"); //#6038 + $put($get($_.txt, 8), 1, -12); //#6038 + $put($get($_.txt, 9), 0, "S"); //#6039 + var _r = $get($_.txt, 9); //#6039 + $put(_r, 1, 69); //#6039 + $put($_.args, "txt", $_.txt); //#6041 + $put($_.args, "opt", $_.options); //#6042 + $k[$j++] = $_.args; //#6045 + if (!$_.dontdraw) { //#6045 + bwipp_renlinear(); //#6045 + } //#6045 + $_ = Object.getPrototypeOf($_); //#6047 +} //bwipp_mands function bwipp_code128() { - $_ = Object.create($_); //#5944 - $_.dontdraw = false; //#5947 - $_.includetext = false; //#5948 - $_.textfont = "OCR-B"; //#5949 - $_.textsize = 10; //#5950 - $_.textxoffset = 0; //#5951 - $_.textyoffset = -8; //#5952 - $_.height = 1; //#5953 - $_.encoding = "auto"; //#5954 - $_.raw = false; //#5955 - $_.parse = false; //#5956 - $_.parsefnc = false; //#5957 - $k[$j++] = $_; //#5959 - bwipp_processoptions(); //#5959 - $_.options = $k[--$j]; //#5959 - $_.barcode = $k[--$j]; //#5960 - bwipp_loadctx(bwipp_code128) //#5962 - if (!bwipp_code128.__5971__) { //#5971 - $_ = Object.create($_); //#5971 - $_.sta = -1; //#5966 - $_.stb = -2; //#5966 - $_.stc = -3; //#5966 - $_.swa = -4; //#5967 - $_.swb = -5; //#5967 - $_.swc = -6; //#5967 - $_.fn1 = -7; //#5968 - $_.fn2 = -8; //#5968 - $_.fn3 = -9; //#5968 - $_.fn4 = -10; //#5969 - $_.sft = -11; //#5969 - $_.stp = -12; //#5969 - $_.lka = -13; //#5970 - $_.lkc = -14; //#5970 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#5970 - bwipp_code128.__5971__ = 1; //#5970 - $_ = Object.getPrototypeOf($_); //#5970 - } //#5970 - var _6 = $_.fn1; //#5978 + $_ = Object.create($_); //#6078 + $_.dontdraw = false; //#6081 + $_.includetext = false; //#6082 + $_.textfont = "OCR-B"; //#6083 + $_.textsize = 10; //#6084 + $_.textxoffset = 0; //#6085 + $_.textyoffset = -8; //#6086 + $_.height = 1; //#6087 + $_.encoding = "auto"; //#6088 + $_.raw = false; //#6089 + $_.parse = false; //#6090 + $_.parsefnc = false; //#6091 + $k[$j++] = $_; //#6093 + bwipp_processoptions(); //#6093 + $_.options = $k[--$j]; //#6093 + $_.barcode = $k[--$j]; //#6094 + bwipp_loadctx(bwipp_code128) //#6096 + if (!bwipp_code128.__6105__) { //#6105 + $_ = Object.create($_); //#6105 + $_.sta = -1; //#6100 + $_.stb = -2; //#6100 + $_.stc = -3; //#6100 + $_.swa = -4; //#6101 + $_.swb = -5; //#6101 + $_.swc = -6; //#6101 + $_.fn1 = -7; //#6102 + $_.fn2 = -8; //#6102 + $_.fn3 = -9; //#6102 + $_.fn4 = -10; //#6103 + $_.sft = -11; //#6103 + $_.stp = -12; //#6103 + $_.lka = -13; //#6104 + $_.lkc = -14; //#6104 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6104 + bwipp_code128.__6105__ = 1; //#6104 + $_ = Object.getPrototypeOf($_); //#6104 + } //#6104 + var _6 = $_.fn1; //#6112 var _B = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -8808,1270 +9067,1267 @@ function bwipp_code128() { ["FNC3", $_.fn3], ["LNKA", $_.lka], ["LNKC", $_.lkc] - ]); //#5983 - $_.fncvals = _B; //#5984 - $k[$j++] = 'msg'; //#5985 - $k[$j++] = $_.barcode; //#5985 - $k[$j++] = $_.fncvals; //#5985 - bwipp_parseinput(); //#5985 - var _E = $k[--$j]; //#5985 - $_[$k[--$j]] = _E; //#5985 - $_.msglen = $_.msg.length; //#5986 - if (!bwipp_code128.__6044__) { //#6044 - $_ = Object.create($_); //#6044 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6028 - $_.charvals = $a([new Map, new Map, new Map]); //#6031 - for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6040 - $_.i = _2X; //#6033 - $_.encs = $get($_.charmaps, $_.i); //#6034 - for (var _2b = 0; _2b <= 2; _2b += 1) { //#6039 - $_.j = _2b; //#6036 - var _2e = $get($_.encs, $_.j); //#6037 - $k[$j++] = _2e; //#6037 - if ($eq($type(_2e), 'stringtype')) { //#6037 - var _2h = $get($k[--$j], 0); //#6037 - $k[$j++] = _2h; //#6037 - } //#6037 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6038 - } //#6038 - } //#6038 - $_.seta = $get($_.charvals, 0); //#6041 - $_.setb = $get($_.charvals, 1); //#6042 - $_.setc = $get($_.charvals, 2); //#6043 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6043 - bwipp_code128.__6044__ = 1; //#6043 - $_ = Object.getPrototypeOf($_); //#6043 - } //#6043 - $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6047 - $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6047 - $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6048 - $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6048 - $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6049 - $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6049 - if ($_.raw) { //#6051 - $_.encoding = "raw"; //#6051 - } //#6051 - if ($eq($_.encoding, "raw")) { //#6065 - $_.cws = $a($_.barcode.length); //#6054 - $_.i = 0; //#6055 - $_.j = 0; //#6055 - for (;;) { //#6062 - if ($_.i == $_.barcode.length) { //#6057 - break; //#6057 - } //#6057 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6058 - $put($_.cws, $_.j, $_.cw); //#6059 - $_.i = $_.i + 4; //#6060 - $_.j = $_.j + 1; //#6061 - } //#6061 - $_.cws = $geti($_.cws, 0, $_.j); //#6063 - $_.text = ""; //#6064 - } //#6064 - if ($eq($_.encoding, "auto")) { //#6290 - $_.text = $s($_.msglen); //#6069 - for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6073 - $_.i = _3k; //#6071 - var _3p = $get($_.msg, $_.i); //#6072 - $k[$j++] = $_.text; //#6072 - $k[$j++] = $_.i; //#6072 - $k[$j++] = _3p; //#6072 - if (_3p < 0) { //#6072 - $j--; //#6072 - $k[$j++] = 32; //#6072 - } //#6072 - var _3q = $k[--$j]; //#6072 - var _3r = $k[--$j]; //#6072 - $put($k[--$j], _3r, _3q); //#6072 - } //#6072 - $k[$j++] = Infinity; //#6076 - for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6076 - $k[$j++] = 0; //#6076 - } //#6076 - $k[$j++] = 0; //#6076 - $_.numSA = $a(); //#6076 - $k[$j++] = Infinity; //#6077 - for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6077 - $k[$j++] = 0; //#6077 - } //#6077 - $k[$j++] = 0; //#6077 - $_.numEA = $a(); //#6077 - for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6087 - $_.i = _42; //#6079 - if ($get($_.msg, $_.i) >= 0) { //#6086 - if ($get($_.msg, $_.i) >= 128) { //#6084 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6082 - } else { //#6084 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6084 - } //#6084 - } //#6084 - } //#6084 - $_.ea = false; //#6090 - $_.msgtmp = $a([]); //#6090 - for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6105 - $_.i = _4M; //#6092 - $_.c = $get($_.msg, $_.i); //#6093 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6103 - if ($_.ea) { //#6095 - $k[$j++] = $_.numSA; //#6095 - } else { //#6095 - $k[$j++] = $_.numEA; //#6095 - } //#6095 - var _4Y = $get($k[--$j], $_.i); //#6095 - var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6096 - if (_4Y < _4b) { //#6101 - $k[$j++] = Infinity; //#6098 - $aload($_.msgtmp); //#6098 - $k[$j++] = $_.fn4; //#6098 - $_.msgtmp = $a(); //#6098 - } else { //#6101 - $k[$j++] = Infinity; //#6100 - $aload($_.msgtmp); //#6100 - $k[$j++] = $_.fn4; //#6100 - $k[$j++] = $_.fn4; //#6100 - $_.msgtmp = $a(); //#6100 - $_.ea = !$_.ea; //#6101 - } //#6101 - } //#6101 - $k[$j++] = Infinity; //#6104 - $aload($_.msgtmp); //#6104 - if ($_.c >= 0) { //#6104 - $k[$j++] = $_.c & 127; //#6104 - } else { //#6104 - $k[$j++] = $_.c; //#6104 - } //#6104 - $_.msgtmp = $a(); //#6104 - } //#6104 - $_.msg = $_.msgtmp; //#6106 - $_.msglen = $_.msg.length; //#6107 + ]); //#6117 + $_.fncvals = _B; //#6118 + $k[$j++] = 'msg'; //#6119 + $k[$j++] = $_.barcode; //#6119 + $k[$j++] = $_.fncvals; //#6119 + bwipp_parseinput(); //#6119 + var _E = $k[--$j]; //#6119 + $_[$k[--$j]] = _E; //#6119 + $_.msglen = $_.msg.length; //#6120 + if (!bwipp_code128.__6178__) { //#6178 + $_ = Object.create($_); //#6178 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6162 + $_.charvals = $a([new Map, new Map, new Map]); //#6165 + for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6174 + $_.i = _2X; //#6167 + $_.encs = $get($_.charmaps, $_.i); //#6168 + for (var _2b = 0; _2b <= 2; _2b += 1) { //#6173 + $_.j = _2b; //#6170 + var _2e = $get($_.encs, $_.j); //#6171 + $k[$j++] = _2e; //#6171 + if ($eq($type(_2e), 'stringtype')) { //#6171 + var _2h = $get($k[--$j], 0); //#6171 + $k[$j++] = _2h; //#6171 + } //#6171 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6172 + } //#6172 + } //#6172 + $_.seta = $get($_.charvals, 0); //#6175 + $_.setb = $get($_.charvals, 1); //#6176 + $_.setc = $get($_.charvals, 2); //#6177 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6177 + bwipp_code128.__6178__ = 1; //#6177 + $_ = Object.getPrototypeOf($_); //#6177 + } //#6177 + $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6181 + $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6181 + $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6182 + $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6182 + $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6183 + $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6183 + if ($_.raw) { //#6185 + $_.encoding = "raw"; //#6185 + } //#6185 + if ($eq($_.encoding, "raw")) { //#6199 + $_.cws = $a($_.barcode.length); //#6188 + $_.i = 0; //#6189 + $_.j = 0; //#6189 + for (;;) { //#6196 + if ($_.i == $_.barcode.length) { //#6191 + break; //#6191 + } //#6191 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6192 + $put($_.cws, $_.j, $_.cw); //#6193 + $_.i = $_.i + 4; //#6194 + $_.j = $_.j + 1; //#6195 + } //#6195 + $_.cws = $geti($_.cws, 0, $_.j); //#6197 + $_.text = ""; //#6198 + } //#6198 + if ($eq($_.encoding, "auto")) { //#6424 + $_.text = $s($_.msglen); //#6203 + for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6207 + $_.i = _3k; //#6205 + var _3p = $get($_.msg, $_.i); //#6206 + $k[$j++] = $_.text; //#6206 + $k[$j++] = $_.i; //#6206 + $k[$j++] = _3p; //#6206 + if (_3p < 0) { //#6206 + $j--; //#6206 + $k[$j++] = 32; //#6206 + } //#6206 + var _3q = $k[--$j]; //#6206 + var _3r = $k[--$j]; //#6206 + $put($k[--$j], _3r, _3q); //#6206 + } //#6206 + $k[$j++] = Infinity; //#6210 + for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6210 + $k[$j++] = 0; //#6210 + } //#6210 + $k[$j++] = 0; //#6210 + $_.numSA = $a(); //#6210 + $k[$j++] = Infinity; //#6211 + for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6211 + $k[$j++] = 0; //#6211 + } //#6211 + $k[$j++] = 0; //#6211 + $_.numEA = $a(); //#6211 + for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6221 + $_.i = _42; //#6213 + if ($get($_.msg, $_.i) >= 0) { //#6220 + if ($get($_.msg, $_.i) >= 128) { //#6218 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6216 + } else { //#6218 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6218 + } //#6218 + } //#6218 + } //#6218 + $_.ea = false; //#6224 + $_.msgtmp = $a([]); //#6224 + for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6239 + $_.i = _4M; //#6226 + $_.c = $get($_.msg, $_.i); //#6227 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6237 + if ($_.ea) { //#6229 + $k[$j++] = $_.numSA; //#6229 + } else { //#6229 + $k[$j++] = $_.numEA; //#6229 + } //#6229 + var _4Y = $get($k[--$j], $_.i); //#6229 + var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6230 + if (_4Y < _4b) { //#6235 + $k[$j++] = Infinity; //#6232 + $aload($_.msgtmp); //#6232 + $k[$j++] = $_.fn4; //#6232 + $_.msgtmp = $a(); //#6232 + } else { //#6235 + $k[$j++] = Infinity; //#6234 + $aload($_.msgtmp); //#6234 + $k[$j++] = $_.fn4; //#6234 + $k[$j++] = $_.fn4; //#6234 + $_.msgtmp = $a(); //#6234 + $_.ea = !$_.ea; //#6235 + } //#6235 + } //#6235 + $k[$j++] = Infinity; //#6238 + $aload($_.msgtmp); //#6238 + if ($_.c >= 0) { //#6238 + $k[$j++] = $_.c & 127; //#6238 + } else { //#6238 + $k[$j++] = $_.c; //#6238 + } //#6238 + $_.msgtmp = $a(); //#6238 + } //#6238 + $_.msg = $_.msgtmp; //#6240 + $_.msglen = $_.msg.length; //#6241 $_.numsscr = function() { - $_.n = 0; //#6111 - $_.s = 0; //#6111 - $_.p = $k[--$j]; //#6112 - for (;;) { //#6125 - if ($_.p >= $_.msglen) { //#6113 - break; //#6113 - } //#6113 - var _4w = $get($_.msg, $_.p); //#6114 - var _4y = $get($_.setc, _4w) !== undefined; //#6115 - $k[$j++] = _4w; //#6115 - if (!_4y) { //#6115 - $j--; //#6115 - break; //#6115 - } //#6115 - var _4z = $k[--$j]; //#6116 - $k[$j++] = _4z; //#6121 - if (_4z <= -1) { //#6120 - var _51 = $k[--$j]; //#6118 - if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6118 - $_.s = $_.s + 1; //#6118 - } else { //#6118 - break; //#6118 - } //#6118 - } else { //#6120 - $j--; //#6120 - } //#6120 - $_.n = $_.n + 1; //#6122 - $_.s = $_.s + 1; //#6123 - $_.p = $f($_.p + 1); //#6124 - } //#6124 - $k[$j++] = $_.n; //#6126 - $k[$j++] = $_.s; //#6126 - }; //#6126 + $_.n = 0; //#6245 + $_.s = 0; //#6245 + $_.p = $k[--$j]; //#6246 + for (;;) { //#6259 + if ($_.p >= $_.msglen) { //#6247 + break; //#6247 + } //#6247 + var _4w = $get($_.msg, $_.p); //#6248 + var _4y = $get($_.setc, _4w) !== undefined; //#6249 + $k[$j++] = _4w; //#6249 + if (!_4y) { //#6249 + $j--; //#6249 + break; //#6249 + } //#6249 + var _4z = $k[--$j]; //#6250 + $k[$j++] = _4z; //#6255 + if (_4z <= -1) { //#6254 + var _51 = $k[--$j]; //#6252 + if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6252 + $_.s = $_.s + 1; //#6252 + } else { //#6252 + break; //#6252 + } //#6252 + } else { //#6254 + $j--; //#6254 + } //#6254 + $_.n = $_.n + 1; //#6256 + $_.s = $_.s + 1; //#6257 + $_.p = $f($_.p + 1); //#6258 + } //#6258 + $k[$j++] = $_.n; //#6260 + $k[$j++] = $_.s; //#6260 + }; //#6260 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6131 - $_.j = $_.j + 1; //#6132 - }; //#6132 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6265 + $_.j = $_.j + 1; //#6266 + }; //#6266 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6135 - $_.j = $_.j + 1; //#6136 - }; //#6136 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6269 + $_.j = $_.j + 1; //#6270 + }; //#6270 $_.encc = function() { - var _5L = $k[--$j]; //#6139 - $k[$j++] = _5L; //#6143 - if ($ne($type(_5L), 'arraytype')) { //#6142 - var _5P = $get($_.setc, $k[--$j]); //#6140 - $k[$j++] = _5P; //#6140 - } else { //#6142 - $aload($k[--$j]); //#6142 - var _5R = $k[--$j]; //#6142 - var _5S = $k[--$j]; //#6142 - $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6142 - } //#6142 - $put($_.cws, $_.j, $k[--$j]); //#6144 - $_.j = $_.j + 1; //#6145 - }; //#6145 + var _5L = $k[--$j]; //#6273 + $k[$j++] = _5L; //#6277 + if ($ne($type(_5L), 'arraytype')) { //#6276 + var _5P = $get($_.setc, $k[--$j]); //#6274 + $k[$j++] = _5P; //#6274 + } else { //#6276 + $aload($k[--$j]); //#6276 + var _5R = $k[--$j]; //#6276 + var _5S = $k[--$j]; //#6276 + $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6276 + } //#6276 + $put($_.cws, $_.j, $k[--$j]); //#6278 + $_.j = $_.j + 1; //#6279 + }; //#6279 $_.anotb = function() { - var _5X = $k[--$j]; //#6149 - var _5Z = $get($_.seta, _5X) !== undefined; //#6149 - var _5b = $get($_.setb, _5X) !== undefined; //#6149 - $k[$j++] = _5Z && (!_5b); //#6149 - }; //#6149 + var _5X = $k[--$j]; //#6283 + var _5Z = $get($_.seta, _5X) !== undefined; //#6283 + var _5b = $get($_.setb, _5X) !== undefined; //#6283 + $k[$j++] = _5Z && (!_5b); //#6283 + }; //#6283 $_.bnota = function() { - var _5c = $k[--$j]; //#6150 - var _5e = $get($_.setb, _5c) !== undefined; //#6150 - var _5g = $get($_.seta, _5c) !== undefined; //#6150 - $k[$j++] = _5e && (!_5g); //#6150 - }; //#6150 - $k[$j++] = Infinity; //#6153 - for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6153 - $k[$j++] = 0; //#6153 - } //#6153 - $k[$j++] = 9999; //#6153 - $_.nextanotb = $a(); //#6153 - $k[$j++] = Infinity; //#6154 - for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6154 - $k[$j++] = 0; //#6154 - } //#6154 - $k[$j++] = 9999; //#6154 - $_.nextbnota = $a(); //#6154 - for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6167 - $_.i = _5q; //#6156 - $k[$j++] = $get($_.msg, $_.i); //#6157 - $_.anotb(); //#6157 - if ($k[--$j]) { //#6160 - $put($_.nextanotb, $_.i, 0); //#6158 - } else { //#6160 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6160 - } //#6160 - $k[$j++] = $get($_.msg, $_.i); //#6162 - $_.bnota(); //#6162 - if ($k[--$j]) { //#6165 - $put($_.nextbnota, $_.i, 0); //#6163 - } else { //#6165 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6165 - } //#6165 - } //#6165 + var _5c = $k[--$j]; //#6284 + var _5e = $get($_.setb, _5c) !== undefined; //#6284 + var _5g = $get($_.seta, _5c) !== undefined; //#6284 + $k[$j++] = _5e && (!_5g); //#6284 + }; //#6284 + $k[$j++] = Infinity; //#6287 + for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6287 + $k[$j++] = 0; //#6287 + } //#6287 + $k[$j++] = 9999; //#6287 + $_.nextanotb = $a(); //#6287 + $k[$j++] = Infinity; //#6288 + for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6288 + $k[$j++] = 0; //#6288 + } //#6288 + $k[$j++] = 9999; //#6288 + $_.nextbnota = $a(); //#6288 + for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6301 + $_.i = _5q; //#6290 + $k[$j++] = $get($_.msg, $_.i); //#6291 + $_.anotb(); //#6291 + if ($k[--$j]) { //#6294 + $put($_.nextanotb, $_.i, 0); //#6292 + } else { //#6294 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6294 + } //#6294 + $k[$j++] = $get($_.msg, $_.i); //#6296 + $_.bnota(); //#6296 + if ($k[--$j]) { //#6299 + $put($_.nextbnota, $_.i, 0); //#6297 + } else { //#6299 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6299 + } //#6299 + } //#6299 $_.abeforeb = function() { - var _6D = $k[--$j]; //#6170 - $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6170 - }; //#6170 + var _6D = $k[--$j]; //#6304 + $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6304 + }; //#6304 $_.bbeforea = function() { - var _6I = $k[--$j]; //#6171 - $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6171 - }; //#6171 - $_.cws = $a(($_.barcode.length * 2) + 3); //#6173 - $_.j = 0; //#6176 - if ($_.msglen > 0) { //#6177 - $k[$j++] = 0; //#6177 - $_.numsscr(); //#6177 - } else { //#6177 - $k[$j++] = -1; //#6177 - $k[$j++] = -1; //#6177 - } //#6177 - $_.nums = $k[--$j]; //#6177 - $_.nchars = $k[--$j]; //#6177 - for (;;) { //#6202 - if ($_.msglen == 0) { //#6183 - $k[$j++] = $_.stb; //#6180 - $_.enca(); //#6180 - $_.cset = "setb"; //#6181 - break; //#6182 - } //#6182 - if (($_.msglen == 2) && ($_.nums == 2)) { //#6188 - $k[$j++] = $_.stc; //#6185 - $_.enca(); //#6185 - $_.cset = "setc"; //#6186 - break; //#6187 - } //#6187 - if ($_.nums >= 4) { //#6193 - $k[$j++] = $_.stc; //#6190 - $_.enca(); //#6190 - $_.cset = "setc"; //#6191 - break; //#6192 - } //#6192 - $k[$j++] = 0; //#6194 - $_.abeforeb(); //#6194 - if ($k[--$j]) { //#6198 - $k[$j++] = $_.sta; //#6195 - $_.enca(); //#6195 - $_.cset = "seta"; //#6196 - break; //#6197 - } //#6197 - $k[$j++] = $_.stb; //#6199 - $_.enca(); //#6199 - $_.cset = "setb"; //#6200 - break; //#6201 - } //#6201 - $_.i = 0; //#6205 - for (;;) { //#6288 - if ($_.i == $_.msglen) { //#6206 - break; //#6206 - } //#6206 - $k[$j++] = $_.i; //#6208 - $_.numsscr(); //#6208 - $_.nums = $k[--$j]; //#6208 - $_.nchars = $k[--$j]; //#6208 - for (;;) { //#6286 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6225 - if (($_.nums % 2) == 0) { //#6223 - $k[$j++] = $_.swc; //#6215 - if ($eq($_.cset, "seta")) { //#6215 - $_.enca(); //#6215 - } else { //#6215 - $_.encb(); //#6215 - } //#6215 - $_.cset = "setc"; //#6216 - break; //#6217 - } else { //#6223 - $k[$j++] = $get($_.msg, $_.i); //#6219 - if ($eq($_.cset, "seta")) { //#6219 - $_.enca(); //#6219 - } else { //#6219 - $_.encb(); //#6219 - } //#6219 - $_.i = $_.i + 1; //#6220 - $k[$j++] = $_.swc; //#6221 - if ($eq($_.cset, "seta")) { //#6221 - $_.enca(); //#6221 - } else { //#6221 - $_.encb(); //#6221 - } //#6221 - $_.cset = "setc"; //#6222 - break; //#6223 - } //#6223 - } //#6223 - $k[$j++] = $eq($_.cset, "setb"); //#6226 - $k[$j++] = $get($_.msg, $_.i); //#6226 - $_.anotb(); //#6226 - var _72 = $k[--$j]; //#6226 - var _73 = $k[--$j]; //#6226 - if ((_73 && _72)) { //#6238 - if ($_.i < ($_.msglen - 1)) { //#6234 - $k[$j++] = $_.i + 1; //#6228 - $_.bbeforea(); //#6228 - if ($k[--$j]) { //#6233 - $k[$j++] = $_.sft; //#6229 - $_.encb(); //#6229 - $k[$j++] = $get($_.msg, $_.i); //#6230 - $_.enca(); //#6230 - $_.i = $_.i + 1; //#6231 - break; //#6232 - } //#6232 - } //#6232 - $k[$j++] = $_.swa; //#6235 - $_.encb(); //#6235 - $_.cset = "seta"; //#6236 - break; //#6237 - } //#6237 - $k[$j++] = $eq($_.cset, "seta"); //#6239 - $k[$j++] = $get($_.msg, $_.i); //#6239 - $_.bnota(); //#6239 - var _7I = $k[--$j]; //#6239 - var _7J = $k[--$j]; //#6239 - if ((_7J && _7I)) { //#6251 - if ($_.i < ($_.msglen - 1)) { //#6247 - $k[$j++] = $_.i + 1; //#6241 - $_.abeforeb(); //#6241 - if ($k[--$j]) { //#6246 - $k[$j++] = $_.sft; //#6242 - $_.enca(); //#6242 - $k[$j++] = $get($_.msg, $_.i); //#6243 - $_.encb(); //#6243 - $_.i = $_.i + 1; //#6244 - break; //#6245 - } //#6245 - } //#6245 - $k[$j++] = $_.swb; //#6248 - $_.enca(); //#6248 - $_.cset = "setb"; //#6249 - break; //#6250 - } //#6250 - if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6261 - $k[$j++] = $_.i; //#6253 - $_.abeforeb(); //#6253 - if ($k[--$j]) { //#6257 - $k[$j++] = $_.swa; //#6254 - $_.encc(); //#6254 - $_.cset = "seta"; //#6255 - break; //#6256 - } //#6256 - $k[$j++] = $_.swb; //#6258 - $_.encc(); //#6258 - $_.cset = "setb"; //#6259 - break; //#6260 - } //#6260 - if ($eq($_.cset, "seta")) { //#6268 - $k[$j++] = $get($_.msg, $_.i); //#6265 - $_.enca(); //#6265 - $_.i = $_.i + 1; //#6266 - break; //#6267 - } //#6267 - if ($eq($_.cset, "setb")) { //#6273 - $k[$j++] = $get($_.msg, $_.i); //#6270 - $_.encb(); //#6270 - $_.i = $_.i + 1; //#6271 - break; //#6272 - } //#6272 - if ($eq($_.cset, "setc")) { //#6283 - if ($get($_.msg, $_.i) <= -1) { //#6280 - $k[$j++] = $get($_.msg, $_.i); //#6276 - $_.encc(); //#6276 - $_.i = $_.i + 1; //#6277 - } else { //#6280 - $k[$j++] = $geti($_.msg, $_.i, 2); //#6279 - $_.encc(); //#6279 - $_.i = $_.i + 2; //#6280 - } //#6280 - break; //#6282 - } //#6282 - break; //#6285 - } //#6285 - } //#6285 - $_.cws = $geti($_.cws, 0, $_.j); //#6289 - } //#6289 - var _87 = $a($_.j + 2); //#6293 - $puti(_87, 0, $_.cws); //#6293 - $_.cws = _87; //#6293 - $_.csum = $get($_.cws, 0); //#6294 - for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6298 - $_.i = _8D; //#6296 - $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6297 - } //#6297 - $_.csum = $_.csum % 103; //#6299 - $put($_.cws, $_.j, $_.csum); //#6300 - $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6301 - var _8T = $get($_.options, 'debugcws') !== undefined; //#6303 - if (_8T) { //#6303 - $k[$j++] = 'bwipp.debugcws#6303'; //#6303 - $k[$j++] = $_.cws; //#6303 - bwipp_raiseerror(); //#6303 - } //#6303 - if (!bwipp_code128.__6325__) { //#6325 - $_ = Object.create($_); //#6325 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6324 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6324 - bwipp_code128.__6325__ = 1; //#6324 - $_ = Object.getPrototypeOf($_); //#6324 - } //#6324 - $_.sbs = $s(($_.cws.length * 6) + 1); //#6328 - for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6332 - $_.i = _8b; //#6330 - $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6331 - } //#6331 - $k[$j++] = Infinity; //#6342 - $k[$j++] = Infinity; //#6337 - var _8j = $_.sbs; //#6337 - for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6337 - $k[$j++] = $get(_8j, _8k) - 48; //#6337 - } //#6337 - var _8n = $a(); //#6337 - $k[$j++] = Infinity; //#6338 - for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6338 - $k[$j++] = $_.height; //#6338 - } //#6338 - var _8s = $a(); //#6338 - $k[$j++] = Infinity; //#6339 - for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6339 - $k[$j++] = 0; //#6339 - } //#6339 - var _8w = $a(); //#6339 - $k[$j++] = 'ren'; //#6342 - $k[$j++] = bwipp_renlinear; //#6342 - $k[$j++] = 'sbs'; //#6342 - $k[$j++] = _8n; //#6342 - $k[$j++] = 'bhs'; //#6342 - $k[$j++] = _8s; //#6342 - $k[$j++] = 'bbs'; //#6342 - $k[$j++] = _8w; //#6342 - $k[$j++] = 'txt'; //#6342 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6342 - $k[$j++] = 'textxalign'; //#6342 - $k[$j++] = "center"; //#6342 - $k[$j++] = 'opt'; //#6342 - $k[$j++] = $_.options; //#6342 - var _95 = $d(); //#6342 - $k[$j++] = _95; //#6345 - if (!$_.dontdraw) { //#6345 - bwipp_renlinear(); //#6345 - } //#6345 - $_ = Object.getPrototypeOf($_); //#6347 - $_ = Object.getPrototypeOf($_); //#6349 -} - + var _6I = $k[--$j]; //#6305 + $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6305 + }; //#6305 + $_.cws = $a(($_.barcode.length * 2) + 3); //#6307 + $_.j = 0; //#6310 + if ($_.msglen > 0) { //#6311 + $k[$j++] = 0; //#6311 + $_.numsscr(); //#6311 + } else { //#6311 + $k[$j++] = -1; //#6311 + $k[$j++] = -1; //#6311 + } //#6311 + $_.nums = $k[--$j]; //#6311 + $_.nchars = $k[--$j]; //#6311 + for (;;) { //#6336 + if ($_.msglen == 0) { //#6317 + $k[$j++] = $_.stb; //#6314 + $_.enca(); //#6314 + $_.cset = "setb"; //#6315 + break; //#6316 + } //#6316 + if (($_.msglen == 2) && ($_.nums == 2)) { //#6322 + $k[$j++] = $_.stc; //#6319 + $_.enca(); //#6319 + $_.cset = "setc"; //#6320 + break; //#6321 + } //#6321 + if ($_.nums >= 4) { //#6327 + $k[$j++] = $_.stc; //#6324 + $_.enca(); //#6324 + $_.cset = "setc"; //#6325 + break; //#6326 + } //#6326 + $k[$j++] = 0; //#6328 + $_.abeforeb(); //#6328 + if ($k[--$j]) { //#6332 + $k[$j++] = $_.sta; //#6329 + $_.enca(); //#6329 + $_.cset = "seta"; //#6330 + break; //#6331 + } //#6331 + $k[$j++] = $_.stb; //#6333 + $_.enca(); //#6333 + $_.cset = "setb"; //#6334 + break; //#6335 + } //#6335 + $_.i = 0; //#6339 + for (;;) { //#6422 + if ($_.i == $_.msglen) { //#6340 + break; //#6340 + } //#6340 + $k[$j++] = $_.i; //#6342 + $_.numsscr(); //#6342 + $_.nums = $k[--$j]; //#6342 + $_.nchars = $k[--$j]; //#6342 + for (;;) { //#6420 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6359 + if (($_.nums % 2) == 0) { //#6357 + $k[$j++] = $_.swc; //#6349 + if ($eq($_.cset, "seta")) { //#6349 + $_.enca(); //#6349 + } else { //#6349 + $_.encb(); //#6349 + } //#6349 + $_.cset = "setc"; //#6350 + break; //#6351 + } else { //#6357 + $k[$j++] = $get($_.msg, $_.i); //#6353 + if ($eq($_.cset, "seta")) { //#6353 + $_.enca(); //#6353 + } else { //#6353 + $_.encb(); //#6353 + } //#6353 + $_.i = $_.i + 1; //#6354 + $k[$j++] = $_.swc; //#6355 + if ($eq($_.cset, "seta")) { //#6355 + $_.enca(); //#6355 + } else { //#6355 + $_.encb(); //#6355 + } //#6355 + $_.cset = "setc"; //#6356 + break; //#6357 + } //#6357 + } //#6357 + $k[$j++] = $eq($_.cset, "setb"); //#6360 + $k[$j++] = $get($_.msg, $_.i); //#6360 + $_.anotb(); //#6360 + var _72 = $k[--$j]; //#6360 + var _73 = $k[--$j]; //#6360 + if ((_73 && _72)) { //#6372 + if ($_.i < ($_.msglen - 1)) { //#6368 + $k[$j++] = $_.i + 1; //#6362 + $_.bbeforea(); //#6362 + if ($k[--$j]) { //#6367 + $k[$j++] = $_.sft; //#6363 + $_.encb(); //#6363 + $k[$j++] = $get($_.msg, $_.i); //#6364 + $_.enca(); //#6364 + $_.i = $_.i + 1; //#6365 + break; //#6366 + } //#6366 + } //#6366 + $k[$j++] = $_.swa; //#6369 + $_.encb(); //#6369 + $_.cset = "seta"; //#6370 + break; //#6371 + } //#6371 + $k[$j++] = $eq($_.cset, "seta"); //#6373 + $k[$j++] = $get($_.msg, $_.i); //#6373 + $_.bnota(); //#6373 + var _7I = $k[--$j]; //#6373 + var _7J = $k[--$j]; //#6373 + if ((_7J && _7I)) { //#6385 + if ($_.i < ($_.msglen - 1)) { //#6381 + $k[$j++] = $_.i + 1; //#6375 + $_.abeforeb(); //#6375 + if ($k[--$j]) { //#6380 + $k[$j++] = $_.sft; //#6376 + $_.enca(); //#6376 + $k[$j++] = $get($_.msg, $_.i); //#6377 + $_.encb(); //#6377 + $_.i = $_.i + 1; //#6378 + break; //#6379 + } //#6379 + } //#6379 + $k[$j++] = $_.swb; //#6382 + $_.enca(); //#6382 + $_.cset = "setb"; //#6383 + break; //#6384 + } //#6384 + if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6395 + $k[$j++] = $_.i; //#6387 + $_.abeforeb(); //#6387 + if ($k[--$j]) { //#6391 + $k[$j++] = $_.swa; //#6388 + $_.encc(); //#6388 + $_.cset = "seta"; //#6389 + break; //#6390 + } //#6390 + $k[$j++] = $_.swb; //#6392 + $_.encc(); //#6392 + $_.cset = "setb"; //#6393 + break; //#6394 + } //#6394 + if ($eq($_.cset, "seta")) { //#6402 + $k[$j++] = $get($_.msg, $_.i); //#6399 + $_.enca(); //#6399 + $_.i = $_.i + 1; //#6400 + break; //#6401 + } //#6401 + if ($eq($_.cset, "setb")) { //#6407 + $k[$j++] = $get($_.msg, $_.i); //#6404 + $_.encb(); //#6404 + $_.i = $_.i + 1; //#6405 + break; //#6406 + } //#6406 + if ($eq($_.cset, "setc")) { //#6417 + if ($get($_.msg, $_.i) <= -1) { //#6414 + $k[$j++] = $get($_.msg, $_.i); //#6410 + $_.encc(); //#6410 + $_.i = $_.i + 1; //#6411 + } else { //#6414 + $k[$j++] = $geti($_.msg, $_.i, 2); //#6413 + $_.encc(); //#6413 + $_.i = $_.i + 2; //#6414 + } //#6414 + break; //#6416 + } //#6416 + break; //#6419 + } //#6419 + } //#6419 + $_.cws = $geti($_.cws, 0, $_.j); //#6423 + } //#6423 + var _87 = $a($_.j + 2); //#6427 + $puti(_87, 0, $_.cws); //#6427 + $_.cws = _87; //#6427 + $_.csum = $get($_.cws, 0); //#6428 + for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6432 + $_.i = _8D; //#6430 + $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6431 + } //#6431 + $_.csum = $_.csum % 103; //#6433 + $put($_.cws, $_.j, $_.csum); //#6434 + $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6435 + var _8T = $get($_.options, 'debugcws') !== undefined; //#6437 + if (_8T) { //#6437 + $k[$j++] = 'bwipp.debugcws#6437'; //#6437 + $k[$j++] = $_.cws; //#6437 + bwipp_raiseerror(); //#6437 + } //#6437 + if (!bwipp_code128.__6459__) { //#6459 + $_ = Object.create($_); //#6459 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6458 + bwipp_code128.__6459__ = 1; //#6458 + $_ = Object.getPrototypeOf($_); //#6458 + } //#6458 + $_.sbs = $s(($_.cws.length * 6) + 1); //#6462 + for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6466 + $_.i = _8b; //#6464 + $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6465 + } //#6465 + $k[$j++] = Infinity; //#6469 + $k[$j++] = Infinity; //#6471 + var _8j = $_.sbs; //#6471 + for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6471 + $k[$j++] = $get(_8j, _8k) - 48; //#6471 + } //#6471 + var _8n = $a(); //#6471 + $k[$j++] = Infinity; //#6472 + for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6472 + $k[$j++] = $_.height; //#6472 + } //#6472 + var _8s = $a(); //#6472 + $k[$j++] = Infinity; //#6473 + for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6473 + $k[$j++] = 0; //#6473 + } //#6473 + var _8w = $a(); //#6473 + $k[$j++] = 'ren'; //#6476 + $k[$j++] = bwipp_renlinear; //#6476 + $k[$j++] = 'sbs'; //#6476 + $k[$j++] = _8n; //#6476 + $k[$j++] = 'bhs'; //#6476 + $k[$j++] = _8s; //#6476 + $k[$j++] = 'bbs'; //#6476 + $k[$j++] = _8w; //#6476 + $k[$j++] = 'txt'; //#6476 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6476 + $k[$j++] = 'textxalign'; //#6476 + $k[$j++] = "center"; //#6476 + $k[$j++] = 'opt'; //#6476 + $k[$j++] = $_.options; //#6476 + var _95 = $d(); //#6476 + $k[$j++] = _95; //#6479 + if (!$_.dontdraw) { //#6479 + bwipp_renlinear(); //#6479 + } //#6479 + $_ = Object.getPrototypeOf($_); //#6481 + $_ = Object.getPrototypeOf($_); //#6483 +} //bwipp_code128 function bwipp_gs1_128() { - $_ = Object.create($_); //#6380 - $_.dontdraw = false; //#6383 - $_.includetext = false; //#6384 - $_.textfont = "OCR-B"; //#6385 - $_.textsize = 10; //#6386 - $_.textxoffset = 0; //#6387 - $_.textyoffset = -8; //#6388 - $_.height = 0.5; //#6389 - $_.linkagea = false; //#6390 - $_.linkagec = false; //#6391 - $_.parse = false; //#6392 - $_.dontlint = false; //#6393 - $_.lintreqs = false; //#6394 - $k[$j++] = $_; //#6396 - bwipp_processoptions(); //#6396 - $_.options = $k[--$j]; //#6396 - $_.barcode = $k[--$j]; //#6397 - if ($_.linkagea && $_.linkagec) { //#6401 - $k[$j++] = 'bwipp.gs1128badLinkage#6400'; //#6400 - $k[$j++] = "linkagea and linkagec cannot be used together"; //#6400 - bwipp_raiseerror(); //#6400 - } //#6400 - $_.text = $_.barcode; //#6403 - $k[$j++] = $_.barcode; //#6405 - $k[$j++] = 'ai'; //#6405 - bwipp_gs1process(); //#6405 - $_.fncs = $k[--$j]; //#6406 - $_.vals = $k[--$j]; //#6407 - $_.ais = $k[--$j]; //#6408 - $_.fnc1 = -1; //#6411 - $_.c128 = $a([$_.fnc1]); //#6412 - for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6428 - $_.i = _D; //#6414 - $_.ai = $get($_.ais, $_.i); //#6415 - $_.val = $get($_.vals, $_.i); //#6416 - var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6417 - $puti(_N, 0, $_.c128); //#6418 - $k[$j++] = _N; //#6419 - $k[$j++] = _N; //#6419 - $k[$j++] = $_.c128.length; //#6419 - $k[$j++] = $_.ai; //#6419 - $k[$j++] = Infinity; //#6419 - var _R = $k[--$j]; //#6419 - var _S = $k[--$j]; //#6419 - $k[$j++] = _R; //#6419 - $forall(_S); //#6419 - var _T = $a(); //#6419 - var _U = $k[--$j]; //#6419 - $puti($k[--$j], _U, _T); //#6419 - var _W = $k[--$j]; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = $_.c128.length + $_.ai.length; //#6420 - $k[$j++] = $_.val; //#6420 - $k[$j++] = Infinity; //#6420 - var _a = $k[--$j]; //#6420 - var _b = $k[--$j]; //#6420 - $k[$j++] = _a; //#6420 - $forall(_b); //#6420 - var _c = $a(); //#6420 - var _d = $k[--$j]; //#6420 - $puti($k[--$j], _d, _c); //#6420 - $_.c128 = $k[--$j]; //#6421 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6427 - var _m = $a($_.c128.length + 1); //#6423 - $puti(_m, 0, $_.c128); //#6424 - $put(_m, $_.c128.length, $_.fnc1); //#6425 - $_.c128 = _m; //#6426 - } //#6426 - } //#6426 - $_.barcode = $s(($_.c128.length + 1) * 5); //#6431 - $_.i = 0; //#6432 - $_.j = 0; //#6432 - for (;;) { //#6442 - if ($_.i == $_.c128.length) { //#6433 - break; //#6433 - } //#6433 - var _w = $get($_.c128, $_.i); //#6434 - $k[$j++] = _w; //#6439 - if (_w == $_.fnc1) { //#6438 - $j--; //#6435 - $puti($_.barcode, $_.j, "^FNC1"); //#6435 - $_.j = $_.j + 4; //#6436 - } else { //#6438 - $put($_.barcode, $_.j, $k[--$j]); //#6438 - } //#6438 - $_.i = $_.i + 1; //#6440 - $_.j = $_.j + 1; //#6441 - } //#6441 - if ($_.linkagea || $_.linkagec) { //#6446 - $k[$j++] = $_.barcode; //#6444 - $k[$j++] = $_.j; //#6444 - if ($_.linkagea) { //#6444 - $k[$j++] = "^LNKA"; //#6444 - } else { //#6444 - $k[$j++] = "^LNKC"; //#6444 - } //#6444 - var _1B = $k[--$j]; //#6444 - var _1C = $k[--$j]; //#6444 - $puti($k[--$j], _1C, _1B); //#6444 - $_.j = $_.j + 5; //#6445 - } //#6445 - $_.barcode = $geti($_.barcode, 0, $_.j); //#6447 - delete $_.options["parse"]; //#6450 - $put($_.options, "height", $_.height); //#6451 - $put($_.options, "dontdraw", true); //#6452 - $put($_.options, "parsefnc", true); //#6453 - $k[$j++] = 'args'; //#6454 - $k[$j++] = $_.barcode; //#6454 - $k[$j++] = $_.options; //#6454 - bwipp_code128(); //#6454 - var _1P = $k[--$j]; //#6454 - $_[$k[--$j]] = _1P; //#6454 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6456 - $put($_.args, "textxalign", "center"); //#6457 - $put($_.args, "opt", $_.options); //#6458 - $k[$j++] = $_.args; //#6461 - if (!$_.dontdraw) { //#6461 - bwipp_renlinear(); //#6461 - } //#6461 - $_ = Object.getPrototypeOf($_); //#6463 -} - + $_ = Object.create($_); //#6514 + $_.dontdraw = false; //#6517 + $_.includetext = false; //#6518 + $_.textfont = "OCR-B"; //#6519 + $_.textsize = 10; //#6520 + $_.textxoffset = 0; //#6521 + $_.textyoffset = -8; //#6522 + $_.height = 0.5; //#6523 + $_.linkagea = false; //#6524 + $_.linkagec = false; //#6525 + $_.parse = false; //#6526 + $_.dontlint = false; //#6527 + $_.lintreqs = false; //#6528 + $k[$j++] = $_; //#6530 + bwipp_processoptions(); //#6530 + $_.options = $k[--$j]; //#6530 + $_.barcode = $k[--$j]; //#6531 + if ($_.linkagea && $_.linkagec) { //#6535 + $k[$j++] = 'bwipp.gs1128badLinkage#6534'; //#6534 + $k[$j++] = "linkagea and linkagec cannot be used together"; //#6534 + bwipp_raiseerror(); //#6534 + } //#6534 + $_.text = $_.barcode; //#6537 + $k[$j++] = $_.barcode; //#6539 + $k[$j++] = 'ai'; //#6539 + bwipp_gs1process(); //#6539 + $_.fncs = $k[--$j]; //#6540 + $_.vals = $k[--$j]; //#6541 + $_.ais = $k[--$j]; //#6542 + $_.fnc1 = -1; //#6545 + $_.c128 = $a([$_.fnc1]); //#6546 + for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6562 + $_.i = _D; //#6548 + $_.ai = $get($_.ais, $_.i); //#6549 + $_.val = $get($_.vals, $_.i); //#6550 + var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6551 + $puti(_N, 0, $_.c128); //#6552 + $k[$j++] = _N; //#6553 + $k[$j++] = _N; //#6553 + $k[$j++] = $_.c128.length; //#6553 + $k[$j++] = $_.ai; //#6553 + $k[$j++] = Infinity; //#6553 + var _R = $k[--$j]; //#6553 + var _S = $k[--$j]; //#6553 + $k[$j++] = _R; //#6553 + $forall(_S); //#6553 + var _T = $a(); //#6553 + var _U = $k[--$j]; //#6553 + $puti($k[--$j], _U, _T); //#6553 + var _W = $k[--$j]; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = $_.c128.length + $_.ai.length; //#6554 + $k[$j++] = $_.val; //#6554 + $k[$j++] = Infinity; //#6554 + var _a = $k[--$j]; //#6554 + var _b = $k[--$j]; //#6554 + $k[$j++] = _a; //#6554 + $forall(_b); //#6554 + var _c = $a(); //#6554 + var _d = $k[--$j]; //#6554 + $puti($k[--$j], _d, _c); //#6554 + $_.c128 = $k[--$j]; //#6555 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6561 + var _m = $a($_.c128.length + 1); //#6557 + $puti(_m, 0, $_.c128); //#6558 + $put(_m, $_.c128.length, $_.fnc1); //#6559 + $_.c128 = _m; //#6560 + } //#6560 + } //#6560 + $_.barcode = $s(($_.c128.length + 1) * 5); //#6565 + $_.i = 0; //#6566 + $_.j = 0; //#6566 + for (;;) { //#6576 + if ($_.i == $_.c128.length) { //#6567 + break; //#6567 + } //#6567 + var _w = $get($_.c128, $_.i); //#6568 + $k[$j++] = _w; //#6573 + if (_w == $_.fnc1) { //#6572 + $j--; //#6569 + $puti($_.barcode, $_.j, "^FNC1"); //#6569 + $_.j = $_.j + 4; //#6570 + } else { //#6572 + $put($_.barcode, $_.j, $k[--$j]); //#6572 + } //#6572 + $_.i = $_.i + 1; //#6574 + $_.j = $_.j + 1; //#6575 + } //#6575 + if ($_.linkagea || $_.linkagec) { //#6580 + $k[$j++] = $_.barcode; //#6578 + $k[$j++] = $_.j; //#6578 + if ($_.linkagea) { //#6578 + $k[$j++] = "^LNKA"; //#6578 + } else { //#6578 + $k[$j++] = "^LNKC"; //#6578 + } //#6578 + var _1B = $k[--$j]; //#6578 + var _1C = $k[--$j]; //#6578 + $puti($k[--$j], _1C, _1B); //#6578 + $_.j = $_.j + 5; //#6579 + } //#6579 + $_.barcode = $geti($_.barcode, 0, $_.j); //#6581 + delete $_.options["parse"]; //#6584 + $put($_.options, "height", $_.height); //#6585 + $put($_.options, "dontdraw", true); //#6586 + $put($_.options, "parsefnc", true); //#6587 + $k[$j++] = 'args'; //#6588 + $k[$j++] = $_.barcode; //#6588 + $k[$j++] = $_.options; //#6588 + bwipp_code128(); //#6588 + var _1P = $k[--$j]; //#6588 + $_[$k[--$j]] = _1P; //#6588 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6590 + $put($_.args, "textxalign", "center"); //#6591 + $put($_.args, "opt", $_.options); //#6592 + $k[$j++] = $_.args; //#6595 + if (!$_.dontdraw) { //#6595 + bwipp_renlinear(); //#6595 + } //#6595 + $_ = Object.getPrototypeOf($_); //#6597 +} //bwipp_gs1_128 function bwipp_ean14() { - $_ = Object.create($_); //#6492 - $_.dontdraw = false; //#6495 - $_.includetext = false; //#6496 - $_.textfont = "OCR-B"; //#6497 - $_.textsize = 10; //#6498 - $_.textxoffset = 0; //#6499 - $_.textyoffset = -8; //#6500 - $_.height = 1; //#6501 - $k[$j++] = $_; //#6503 - bwipp_processoptions(); //#6503 - $_.options = $k[--$j]; //#6503 - $_.barcode = $k[--$j]; //#6504 - $_.text = $_.barcode; //#6507 - var _3 = $_.barcode; //#6508 - $k[$j++] = $s(_3.length); //#6509 - $k[$j++] = 0; //#6509 - $forall(_3, function() { //#6509 - var _5 = $k[--$j]; //#6509 - $k[$j++] = _5; //#6509 - if (_5 != 32) { //#6509 - var _6 = $k[--$j]; //#6509 - var _7 = $k[--$j]; //#6509 - var _8 = $k[--$j]; //#6509 - $put(_8, _7, _6); //#6509 - $k[$j++] = _8; //#6509 - $k[$j++] = $f(_7 + 1); //#6509 - } else { //#6509 - $j--; //#6509 - } //#6509 - }); //#6509 - var _9 = $k[--$j]; //#6510 - $_.barcode = $geti($k[--$j], 0, _9); //#6510 - $_.hasspace = $_.text.length != $_.barcode.length; //#6511 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6516 - $k[$j++] = 'bwipp.ean14badAI#6515'; //#6515 - $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6515 - bwipp_raiseerror(); //#6515 - } //#6515 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6519 - $k[$j++] = 'bwipp.ean14badLength#6518'; //#6518 - $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6518 - bwipp_raiseerror(); //#6518 - } //#6518 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6520 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6524 - var _N = $get(_K, _L); //#6524 - if ((_N < 48) || (_N > 57)) { //#6523 - $k[$j++] = 'bwipp.ean14badCharacter#6522'; //#6522 - $k[$j++] = "GS1-14 must contain only digits"; //#6522 - bwipp_raiseerror(); //#6522 - } //#6522 - } //#6522 - $_.checksum = 0; //#6527 - for (var _O = 0; _O <= 12; _O += 1) { //#6531 - $_.i = _O; //#6529 - $k[$j++] = 'checksum'; //#6530 - $k[$j++] = $_.checksum; //#6530 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6530 - if (($_.i % 2) == 0) { //#6530 - var _U = $k[--$j]; //#6530 - $k[$j++] = _U * 3; //#6530 - } //#6530 - var _V = $k[--$j]; //#6530 - var _W = $k[--$j]; //#6530 - $_[$k[--$j]] = $f(_W + _V); //#6530 - } //#6530 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6532 - if ($_.barcode.length == 18) { //#6546 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6536 - $k[$j++] = 'bwipp.ean14badCheckDigit#6535'; //#6535 - $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6535 - bwipp_raiseerror(); //#6535 - } //#6535 - } else { //#6546 - var _d = $s(18); //#6538 - $puti(_d, 0, $_.barcode); //#6539 - $put(_d, 17, $_.checksum + 48); //#6540 - $_.barcode = _d; //#6541 - var _i = $_.hasspace ? 2 : 1; //#6542 - var _j = $s($_.text.length + _i); //#6542 - $puti(_j, _j.length - 2, " "); //#6543 - $put(_j, _j.length - 1, $_.checksum + 48); //#6544 - $puti(_j, 0, $_.text); //#6545 - $_.text = _j; //#6546 - } //#6546 - $_.gtin = $geti($_.barcode, 4, 14); //#6548 - $_.barcode = $s(21); //#6551 - $puti($_.barcode, 0, "^FNC101"); //#6552 - var _r = $_.gtin; //#6553 - $puti($_.barcode, 7, _r); //#6553 - $put($_.options, "dontdraw", true); //#6556 - $put($_.options, "parsefnc", true); //#6557 - $k[$j++] = 'args'; //#6558 - $k[$j++] = $_.barcode; //#6558 - $k[$j++] = $_.options; //#6558 - bwipp_code128(); //#6558 - var _w = $k[--$j]; //#6558 - $_[$k[--$j]] = _w; //#6558 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6560 - $put($_.args, "textxalign", "center"); //#6561 - $put($_.args, "opt", $_.options); //#6562 - $k[$j++] = $_.args; //#6565 - if (!$_.dontdraw) { //#6565 - bwipp_renlinear(); //#6565 - } //#6565 - $_ = Object.getPrototypeOf($_); //#6567 -} - + $_ = Object.create($_); //#6626 + $_.dontdraw = false; //#6629 + $_.includetext = false; //#6630 + $_.textfont = "OCR-B"; //#6631 + $_.textsize = 10; //#6632 + $_.textxoffset = 0; //#6633 + $_.textyoffset = -8; //#6634 + $_.height = 1; //#6635 + $k[$j++] = $_; //#6637 + bwipp_processoptions(); //#6637 + $_.options = $k[--$j]; //#6637 + $_.barcode = $k[--$j]; //#6638 + $_.text = $_.barcode; //#6641 + var _3 = $_.barcode; //#6642 + $k[$j++] = $s(_3.length); //#6643 + $k[$j++] = 0; //#6643 + $forall(_3, function() { //#6643 + var _5 = $k[--$j]; //#6643 + $k[$j++] = _5; //#6643 + if (_5 != 32) { //#6643 + var _6 = $k[--$j]; //#6643 + var _7 = $k[--$j]; //#6643 + var _8 = $k[--$j]; //#6643 + $put(_8, _7, _6); //#6643 + $k[$j++] = _8; //#6643 + $k[$j++] = $f(_7 + 1); //#6643 + } else { //#6643 + $j--; //#6643 + } //#6643 + }); //#6643 + var _9 = $k[--$j]; //#6644 + $_.barcode = $geti($k[--$j], 0, _9); //#6644 + $_.hasspace = $_.text.length != $_.barcode.length; //#6645 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6650 + $k[$j++] = 'bwipp.ean14badLength#6649'; //#6649 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6649 + bwipp_raiseerror(); //#6649 + } //#6649 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6653 + $k[$j++] = 'bwipp.ean14badAI#6652'; //#6652 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6652 + bwipp_raiseerror(); //#6652 + } //#6652 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6654 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6658 + var _N = $get(_K, _L); //#6658 + if ((_N < 48) || (_N > 57)) { //#6657 + $k[$j++] = 'bwipp.ean14badCharacter#6656'; //#6656 + $k[$j++] = "GS1-14 must contain only digits"; //#6656 + bwipp_raiseerror(); //#6656 + } //#6656 + } //#6656 + $_.checksum = 0; //#6661 + for (var _O = 0; _O <= 12; _O += 1) { //#6665 + $_.i = _O; //#6663 + $k[$j++] = 'checksum'; //#6664 + $k[$j++] = $_.checksum; //#6664 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6664 + if (($_.i % 2) == 0) { //#6664 + var _U = $k[--$j]; //#6664 + $k[$j++] = _U * 3; //#6664 + } //#6664 + var _V = $k[--$j]; //#6664 + var _W = $k[--$j]; //#6664 + $_[$k[--$j]] = $f(_W + _V); //#6664 + } //#6664 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6666 + if ($_.barcode.length == 18) { //#6680 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6670 + $k[$j++] = 'bwipp.ean14badCheckDigit#6669'; //#6669 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6669 + bwipp_raiseerror(); //#6669 + } //#6669 + } else { //#6680 + var _d = $s(18); //#6672 + $puti(_d, 0, $_.barcode); //#6673 + $put(_d, 17, $_.checksum + 48); //#6674 + $_.barcode = _d; //#6675 + var _i = $_.hasspace ? 2 : 1; //#6676 + var _j = $s($_.text.length + _i); //#6676 + $puti(_j, _j.length - 2, " "); //#6677 + $put(_j, _j.length - 1, $_.checksum + 48); //#6678 + $puti(_j, 0, $_.text); //#6679 + $_.text = _j; //#6680 + } //#6680 + $_.gtin = $geti($_.barcode, 4, 14); //#6682 + $_.barcode = $s(21); //#6685 + $puti($_.barcode, 0, "^FNC101"); //#6686 + var _r = $_.gtin; //#6687 + $puti($_.barcode, 7, _r); //#6687 + $put($_.options, "dontdraw", true); //#6690 + $put($_.options, "parsefnc", true); //#6691 + $k[$j++] = 'args'; //#6692 + $k[$j++] = $_.barcode; //#6692 + $k[$j++] = $_.options; //#6692 + bwipp_code128(); //#6692 + var _w = $k[--$j]; //#6692 + $_[$k[--$j]] = _w; //#6692 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6694 + $put($_.args, "textxalign", "center"); //#6695 + $put($_.args, "opt", $_.options); //#6696 + $k[$j++] = $_.args; //#6699 + if (!$_.dontdraw) { //#6699 + bwipp_renlinear(); //#6699 + } //#6699 + $_ = Object.getPrototypeOf($_); //#6701 +} //bwipp_ean14 function bwipp_sscc18() { - $_ = Object.create($_); //#6596 - $_.dontdraw = false; //#6599 - $_.includetext = false; //#6600 - $_.textfont = "OCR-B"; //#6601 - $_.textsize = 10; //#6602 - $_.textxoffset = 0; //#6603 - $_.textyoffset = -8; //#6604 - $_.height = 1; //#6605 - $k[$j++] = $_; //#6607 - bwipp_processoptions(); //#6607 - $_.options = $k[--$j]; //#6607 - $_.barcode = $k[--$j]; //#6608 - $_.text = $_.barcode; //#6611 - var _3 = $_.barcode; //#6612 - $k[$j++] = $s(_3.length); //#6613 - $k[$j++] = 0; //#6613 - $forall(_3, function() { //#6613 - var _5 = $k[--$j]; //#6613 - $k[$j++] = _5; //#6613 - if (_5 != 32) { //#6613 - var _6 = $k[--$j]; //#6613 - var _7 = $k[--$j]; //#6613 - var _8 = $k[--$j]; //#6613 - $put(_8, _7, _6); //#6613 - $k[$j++] = _8; //#6613 - $k[$j++] = $f(_7 + 1); //#6613 - } else { //#6613 - $j--; //#6613 - } //#6613 - }); //#6613 - var _9 = $k[--$j]; //#6614 - $_.barcode = $geti($k[--$j], 0, _9); //#6614 - $_.hasspace = $_.text.length != $_.barcode.length; //#6615 - if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6620 - $k[$j++] = 'bwipp.sscc18badAI#6619'; //#6619 - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6619 - bwipp_raiseerror(); //#6619 - } //#6619 - if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6623 - $k[$j++] = 'bwipp.sscc18badLength#6622'; //#6622 - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6622 - bwipp_raiseerror(); //#6622 - } //#6622 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6624 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6628 - var _N = $get(_K, _L); //#6628 - if ((_N < 48) || (_N > 57)) { //#6627 - $k[$j++] = 'bwipp.sscc18badCharacter#6626'; //#6626 - $k[$j++] = "SSCC-18 must contain only digits"; //#6626 - bwipp_raiseerror(); //#6626 - } //#6626 - } //#6626 - $_.checksum = 0; //#6631 - for (var _O = 0; _O <= 16; _O += 1) { //#6635 - $_.i = _O; //#6633 - $k[$j++] = 'checksum'; //#6634 - $k[$j++] = $_.checksum; //#6634 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6634 - if (($_.i % 2) == 0) { //#6634 - var _U = $k[--$j]; //#6634 - $k[$j++] = _U * 3; //#6634 - } //#6634 - var _V = $k[--$j]; //#6634 - var _W = $k[--$j]; //#6634 - $_[$k[--$j]] = $f(_W + _V); //#6634 - } //#6634 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6636 - if ($_.barcode.length == 22) { //#6650 - if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6640 - $k[$j++] = 'bwipp.sscc18badCheckDigit#6639'; //#6639 - $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6639 - bwipp_raiseerror(); //#6639 - } //#6639 - } else { //#6650 - var _d = $s(22); //#6642 - $puti(_d, 0, $_.barcode); //#6643 - $put(_d, 21, $_.checksum + 48); //#6644 - $_.barcode = _d; //#6645 - var _i = $_.hasspace ? 2 : 1; //#6646 - var _j = $s($_.text.length + _i); //#6646 - $puti(_j, _j.length - 2, " "); //#6647 - $put(_j, _j.length - 1, $_.checksum + 48); //#6648 - $puti(_j, 0, $_.text); //#6649 - $_.text = _j; //#6650 - } //#6650 - $_.sscc = $geti($_.barcode, 4, 18); //#6652 - $_.barcode = $s(25); //#6655 - $puti($_.barcode, 0, "^FNC100"); //#6656 - var _r = $_.sscc; //#6657 - $puti($_.barcode, 7, _r); //#6657 - $put($_.options, "dontdraw", true); //#6660 - $put($_.options, "parsefnc", true); //#6661 - $k[$j++] = 'args'; //#6662 - $k[$j++] = $_.barcode; //#6662 - $k[$j++] = $_.options; //#6662 - bwipp_code128(); //#6662 - var _w = $k[--$j]; //#6662 - $_[$k[--$j]] = _w; //#6662 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6664 - $put($_.args, "textxalign", "center"); //#6665 - $put($_.args, "opt", $_.options); //#6666 - $k[$j++] = $_.args; //#6669 - if (!$_.dontdraw) { //#6669 - bwipp_renlinear(); //#6669 - } //#6669 - $_ = Object.getPrototypeOf($_); //#6671 -} - -function bwipp_code39() { - $_ = Object.create($_); //#6701 - $_.dontdraw = false; //#6704 - $_.includecheck = false; //#6705 - $_.validatecheck = false; //#6706 - $_.includetext = false; //#6707 - $_.includecheckintext = false; //#6708 - $_.hidestars = false; //#6709 - $_.textfont = "OCR-B"; //#6710 - $_.textsize = 10; //#6711 - $_.textyoffset = -8; //#6712 - $_.height = 1; //#6713 - $k[$j++] = $_; //#6715 - bwipp_processoptions(); //#6715 - $_.options = $k[--$j]; //#6715 - $_.barcode = $k[--$j]; //#6716 - bwipp_loadctx(bwipp_code39) //#6718 - if (!bwipp_code39.__6738__) { //#6738 - $_ = Object.create($_); //#6738 - $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6732 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6735 - $_.charvals = new Map; //#6736 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#6737 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#6737 - } //#6737 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6737 - bwipp_code39.__6738__ = 1; //#6737 - $_ = Object.getPrototypeOf($_); //#6737 - } //#6737 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#6745 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#6742 - if (!_E) { //#6744 - $k[$j++] = 'bwipp.code39badCharacter#6743'; //#6743 - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6743 - bwipp_raiseerror(); //#6743 - } //#6743 - } //#6743 - $k[$j++] = 'barlen'; //#6747 - $k[$j++] = $_.barcode.length; //#6747 - if ($_.validatecheck) { //#6747 - var _H = $k[--$j]; //#6747 - $k[$j++] = $f(_H - 1); //#6747 - } //#6747 - var _I = $k[--$j]; //#6747 - $_[$k[--$j]] = _I; //#6747 - $_.checksum = 0; //#6749 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#6753 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#6752 - } //#6752 - $_.checksum = $_.checksum % 43; //#6754 - if ($_.validatecheck) { //#6761 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6758 - $k[$j++] = 'bwipp.code39badCheckDigit#6757'; //#6757 - $k[$j++] = "Incorrect Code 39 check digit provided"; //#6757 - bwipp_raiseerror(); //#6757 - } //#6757 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6759 - $_.includecheck = true; //#6760 + $_ = Object.create($_); //#6730 + $_.dontdraw = false; //#6733 + $_.includetext = false; //#6734 + $_.textfont = "OCR-B"; //#6735 + $_.textsize = 10; //#6736 + $_.textxoffset = 0; //#6737 + $_.textyoffset = -8; //#6738 + $_.height = 1; //#6739 + $k[$j++] = $_; //#6741 + bwipp_processoptions(); //#6741 + $_.options = $k[--$j]; //#6741 + $_.barcode = $k[--$j]; //#6742 + $_.text = $_.barcode; //#6745 + var _3 = $_.barcode; //#6746 + $k[$j++] = $s(_3.length); //#6747 + $k[$j++] = 0; //#6747 + $forall(_3, function() { //#6747 + var _5 = $k[--$j]; //#6747 + $k[$j++] = _5; //#6747 + if (_5 != 32) { //#6747 + var _6 = $k[--$j]; //#6747 + var _7 = $k[--$j]; //#6747 + var _8 = $k[--$j]; //#6747 + $put(_8, _7, _6); //#6747 + $k[$j++] = _8; //#6747 + $k[$j++] = $f(_7 + 1); //#6747 + } else { //#6747 + $j--; //#6747 + } //#6747 + }); //#6747 + var _9 = $k[--$j]; //#6748 + $_.barcode = $geti($k[--$j], 0, _9); //#6748 + $_.hasspace = $_.text.length != $_.barcode.length; //#6749 + if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6754 + $k[$j++] = 'bwipp.sscc18badLength#6753'; //#6753 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6753 + bwipp_raiseerror(); //#6753 + } //#6753 + if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6757 + $k[$j++] = 'bwipp.sscc18badAI#6756'; //#6756 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6756 + bwipp_raiseerror(); //#6756 + } //#6756 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6758 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6762 + var _N = $get(_K, _L); //#6762 + if ((_N < 48) || (_N > 57)) { //#6761 + $k[$j++] = 'bwipp.sscc18badCharacter#6760'; //#6760 + $k[$j++] = "SSCC-18 must contain only digits"; //#6760 + bwipp_raiseerror(); //#6760 + } //#6760 } //#6760 - var _f = $_.includecheck ? 3 : 2; //#6763 - $_.sbs = $s($f($_.barlen + _f) * 10); //#6763 - var _j = $_.includecheck ? 3 : 2; //#6764 - $_.txt = $a($f($_.barlen + _j)); //#6764 - $puti($_.sbs, 0, $get($_.encs, 43)); //#6767 - if (!$_.hidestars) { //#6771 - $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6769 - } else { //#6771 - $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6771 - } //#6771 - for (var _11 = 0, _10 = $f($_.barlen - 1); _11 <= _10; _11 += 1) { //#6779 - $_.i = _11; //#6775 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6776 - $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6777 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6778 - } //#6778 - if ($_.includecheck) { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6783 - if ($_.includecheckintext) { //#6787 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6785 - } else { //#6787 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6787 - } //#6787 - $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6789 - if (!$_.hidestars) { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6791 - } else { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6793 - } //#6793 - } else { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6796 - if (!$_.hidestars) { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6798 - } else { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6800 - } //#6800 - } //#6800 - $k[$j++] = Infinity; //#6813 - $k[$j++] = Infinity; //#6807 - var _2M = $_.sbs; //#6807 - for (var _2N = 0, _2O = _2M.length; _2N < _2O; _2N++) { //#6807 - $k[$j++] = $get(_2M, _2N) - 48; //#6807 - } //#6807 - var _2Q = $a(); //#6807 - $k[$j++] = Infinity; //#6808 - for (var _2S = 0, _2T = ~~(($_.sbs.length + 1) / 2); _2S < _2T; _2S++) { //#6808 - $k[$j++] = $_.height; //#6808 - } //#6808 - var _2V = $a(); //#6808 - $k[$j++] = Infinity; //#6809 - for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#6809 - $k[$j++] = 0; //#6809 - } //#6809 - var _2Z = $a(); //#6809 - $k[$j++] = 'ren'; //#6812 - $k[$j++] = bwipp_renlinear; //#6812 - $k[$j++] = 'sbs'; //#6812 - $k[$j++] = _2Q; //#6812 - $k[$j++] = 'bhs'; //#6812 - $k[$j++] = _2V; //#6812 - $k[$j++] = 'bbs'; //#6812 - $k[$j++] = _2Z; //#6812 - if ($_.includetext) { //#6812 - $k[$j++] = 'txt'; //#6811 - $k[$j++] = $_.txt; //#6811 - } //#6811 - $k[$j++] = 'opt'; //#6813 - $k[$j++] = $_.options; //#6813 - var _2d = $d(); //#6813 - $k[$j++] = _2d; //#6816 - if (!$_.dontdraw) { //#6816 - bwipp_renlinear(); //#6816 - } //#6816 - $_ = Object.getPrototypeOf($_); //#6818 - $_ = Object.getPrototypeOf($_); //#6820 -} - + $_.checksum = 0; //#6765 + for (var _O = 0; _O <= 16; _O += 1) { //#6769 + $_.i = _O; //#6767 + $k[$j++] = 'checksum'; //#6768 + $k[$j++] = $_.checksum; //#6768 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6768 + if (($_.i % 2) == 0) { //#6768 + var _U = $k[--$j]; //#6768 + $k[$j++] = _U * 3; //#6768 + } //#6768 + var _V = $k[--$j]; //#6768 + var _W = $k[--$j]; //#6768 + $_[$k[--$j]] = $f(_W + _V); //#6768 + } //#6768 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6770 + if ($_.barcode.length == 22) { //#6784 + if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6774 + $k[$j++] = 'bwipp.sscc18badCheckDigit#6773'; //#6773 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6773 + bwipp_raiseerror(); //#6773 + } //#6773 + } else { //#6784 + var _d = $s(22); //#6776 + $puti(_d, 0, $_.barcode); //#6777 + $put(_d, 21, $_.checksum + 48); //#6778 + $_.barcode = _d; //#6779 + var _i = $_.hasspace ? 2 : 1; //#6780 + var _j = $s($_.text.length + _i); //#6780 + $puti(_j, _j.length - 2, " "); //#6781 + $put(_j, _j.length - 1, $_.checksum + 48); //#6782 + $puti(_j, 0, $_.text); //#6783 + $_.text = _j; //#6784 + } //#6784 + $_.sscc = $geti($_.barcode, 4, 18); //#6786 + $_.barcode = $s(25); //#6789 + $puti($_.barcode, 0, "^FNC100"); //#6790 + var _r = $_.sscc; //#6791 + $puti($_.barcode, 7, _r); //#6791 + $put($_.options, "dontdraw", true); //#6794 + $put($_.options, "parsefnc", true); //#6795 + $k[$j++] = 'args'; //#6796 + $k[$j++] = $_.barcode; //#6796 + $k[$j++] = $_.options; //#6796 + bwipp_code128(); //#6796 + var _w = $k[--$j]; //#6796 + $_[$k[--$j]] = _w; //#6796 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6798 + $put($_.args, "textxalign", "center"); //#6799 + $put($_.args, "opt", $_.options); //#6800 + $k[$j++] = $_.args; //#6803 + if (!$_.dontdraw) { //#6803 + bwipp_renlinear(); //#6803 + } //#6803 + $_ = Object.getPrototypeOf($_); //#6805 +} //bwipp_sscc18 +function bwipp_code39() { + $_ = Object.create($_); //#6835 + $_.dontdraw = false; //#6838 + $_.includecheck = false; //#6839 + $_.validatecheck = false; //#6840 + $_.includetext = false; //#6841 + $_.includecheckintext = false; //#6842 + $_.hidestars = false; //#6843 + $_.textfont = "OCR-B"; //#6844 + $_.textsize = 10; //#6845 + $_.textyoffset = -8; //#6846 + $_.height = 1; //#6847 + $k[$j++] = $_; //#6849 + bwipp_processoptions(); //#6849 + $_.options = $k[--$j]; //#6849 + $_.barcode = $k[--$j]; //#6850 + if ($eq($_.barcode, "")) { //#6854 + $k[$j++] = 'bwipp.code39emptyData#6853'; //#6853 + $k[$j++] = "The data must not be empty"; //#6853 + bwipp_raiseerror(); //#6853 + } //#6853 + bwipp_loadctx(bwipp_code39) //#6856 + if (!bwipp_code39.__6876__) { //#6876 + $_ = Object.create($_); //#6876 + $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6870 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6873 + $_.charvals = new Map; //#6874 + for (var _4 = 0; _4 <= 42; _4 += 1) { //#6875 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#6875 + } //#6875 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6875 + bwipp_code39.__6876__ = 1; //#6875 + $_ = Object.getPrototypeOf($_); //#6875 + } //#6875 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#6883 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#6880 + if (!_F) { //#6882 + $k[$j++] = 'bwipp.code39badCharacter#6881'; //#6881 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6881 + bwipp_raiseerror(); //#6881 + } //#6881 + } //#6881 + $k[$j++] = 'barlen'; //#6885 + $k[$j++] = $_.barcode.length; //#6885 + if ($_.validatecheck) { //#6885 + var _I = $k[--$j]; //#6885 + $k[$j++] = $f(_I - 1); //#6885 + } //#6885 + var _J = $k[--$j]; //#6885 + $_[$k[--$j]] = _J; //#6885 + $_.checksum = 0; //#6887 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#6891 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _N, 1)) + $_.checksum); //#6890 + } //#6890 + $_.checksum = $_.checksum % 43; //#6892 + if ($_.validatecheck) { //#6899 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6896 + $k[$j++] = 'bwipp.code39badCheckDigit#6895'; //#6895 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#6895 + bwipp_raiseerror(); //#6895 + } //#6895 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6897 + $_.includecheck = true; //#6898 + } //#6898 + var _g = $_.includecheck ? 3 : 2; //#6901 + $_.sbs = $s($f($_.barlen + _g) * 10); //#6901 + var _k = $_.includecheck ? 3 : 2; //#6902 + $_.txt = $a($f($_.barlen + _k)); //#6902 + $puti($_.sbs, 0, $get($_.encs, 43)); //#6905 + if (!$_.hidestars) { //#6909 + $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6907 + } else { //#6909 + $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6909 + } //#6909 + for (var _12 = 0, _11 = $f($_.barlen - 1); _12 <= _11; _12 += 1) { //#6917 + $_.i = _12; //#6913 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6914 + $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6915 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6916 + } //#6916 + if ($_.includecheck) { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6921 + if ($_.includecheckintext) { //#6925 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6923 + } else { //#6925 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6925 + } //#6925 + $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6927 + if (!$_.hidestars) { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6929 + } else { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6931 + } //#6931 + } else { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6934 + if (!$_.hidestars) { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6936 + } else { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6938 + } //#6938 + } //#6938 + $k[$j++] = Infinity; //#6943 + $k[$j++] = Infinity; //#6945 + var _2N = $_.sbs; //#6945 + for (var _2O = 0, _2P = _2N.length; _2O < _2P; _2O++) { //#6945 + $k[$j++] = $get(_2N, _2O) - 48; //#6945 + } //#6945 + var _2R = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + for (var _2T = 0, _2U = ~~(($_.sbs.length + 1) / 2); _2T < _2U; _2T++) { //#6946 + $k[$j++] = $_.height; //#6946 + } //#6946 + var _2W = $a(); //#6946 + $k[$j++] = Infinity; //#6947 + for (var _2Y = 0, _2Z = ~~(($_.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#6947 + $k[$j++] = 0; //#6947 + } //#6947 + var _2a = $a(); //#6947 + $k[$j++] = 'ren'; //#6950 + $k[$j++] = bwipp_renlinear; //#6950 + $k[$j++] = 'sbs'; //#6950 + $k[$j++] = _2R; //#6950 + $k[$j++] = 'bhs'; //#6950 + $k[$j++] = _2W; //#6950 + $k[$j++] = 'bbs'; //#6950 + $k[$j++] = _2a; //#6950 + if ($_.includetext) { //#6950 + $k[$j++] = 'txt'; //#6949 + $k[$j++] = $_.txt; //#6949 + } //#6949 + $k[$j++] = 'opt'; //#6951 + $k[$j++] = $_.options; //#6951 + var _2e = $d(); //#6951 + $k[$j++] = _2e; //#6954 + if (!$_.dontdraw) { //#6954 + bwipp_renlinear(); //#6954 + } //#6954 + $_ = Object.getPrototypeOf($_); //#6956 + $_ = Object.getPrototypeOf($_); //#6958 +} //bwipp_code39 function bwipp_code39ext() { - $_ = Object.create($_); //#6852 - $_.dontdraw = false; //#6855 - $_.includetext = false; //#6856 - $_.parse = false; //#6857 - $k[$j++] = $_; //#6859 - bwipp_processoptions(); //#6859 - $_.options = $k[--$j]; //#6859 - $_.barcode = $k[--$j]; //#6860 - bwipp_loadctx(bwipp_code39ext) //#6862 + $_ = Object.create($_); //#6990 + $_.dontdraw = false; //#6993 + $_.includetext = false; //#6994 + $_.parse = false; //#6995 + $k[$j++] = $_; //#6997 + bwipp_processoptions(); //#6997 + $_.options = $k[--$j]; //#6997 + $_.barcode = $k[--$j]; //#6998 + bwipp_loadctx(bwipp_code39ext) //#7000 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#6868 - $_.fncvals = _3; //#6869 - $k[$j++] = 'barcode'; //#6870 - $k[$j++] = $_.barcode; //#6870 - $k[$j++] = $_.fncvals; //#6870 - bwipp_parseinput(); //#6870 - var _6 = $k[--$j]; //#6870 - $_[$k[--$j]] = _6; //#6870 - $_.barlen = $_.barcode.length; //#6871 - delete $_.options["parse"]; //#6872 - $forall($_.barcode, function() { //#6879 - if ($k[--$j] >= 128) { //#6878 - $k[$j++] = 'bwipp.code39extBadCharacter#6877'; //#6877 - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#6877 - bwipp_raiseerror(); //#6877 - } //#6877 - }); //#6877 - if (!bwipp_code39ext.__6893__) { //#6893 - $_ = Object.create($_); //#6893 - $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#6892 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#6892 - bwipp_code39ext.__6893__ = 1; //#6892 - $_ = Object.getPrototypeOf($_); //#6892 - } //#6892 - $_.newcode = $s($_.barlen * 2); //#6895 - $_.newtext = $s($_.barlen * 2); //#6896 - $_.j = 0; //#6897 - for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#6905 - $_.i = _K; //#6899 - $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#6900 - $puti($_.newcode, $_.j, $_.extchar); //#6901 - var _X = $get($_.barcode, $_.i); //#6902 - $k[$j++] = $_.newtext; //#6902 - $k[$j++] = $_.j; //#6902 - $k[$j++] = _X; //#6902 - if ((_X < 32) || (_X == 127)) { //#6902 - $j--; //#6902 - $k[$j++] = 32; //#6902 - } //#6902 - var _Y = $k[--$j]; //#6902 - var _Z = $k[--$j]; //#6902 - $put($k[--$j], _Z, _Y); //#6902 - if ($_.extchar.length != 1) { //#6903 - $put($_.newtext, $_.j + 1, 32); //#6903 - } //#6903 - $_.j = $_.j + $_.extchar.length; //#6904 - } //#6904 - $_.newcode = $geti($_.newcode, 0, $_.j); //#6906 - $_.newtext = $geti($_.newtext, 0, $_.j); //#6907 - $put($_.options, "dontdraw", true); //#6910 - $k[$j++] = 'args'; //#6911 - $k[$j++] = $_.newcode; //#6911 - $k[$j++] = $_.options; //#6911 - bwipp_code39(); //#6911 - var _p = $k[--$j]; //#6911 - $_[$k[--$j]] = _p; //#6911 - if ($_.includetext) { //#6923 - $_.txt = $get($_.args, "txt"); //#6915 - for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#6921 - $_.i = _w; //#6917 - $_.txtentry = $get($_.txt, $_.i + 1); //#6918 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#6919 - $put($_.txt, $_.i + 1, $_.txtentry); //#6920 - } //#6920 - $put($_.args, "txt", $_.txt); //#6922 - } //#6922 - $put($_.args, "opt", $_.options); //#6924 - $k[$j++] = $_.args; //#6927 - if (!$_.dontdraw) { //#6927 - bwipp_renlinear(); //#6927 - } //#6927 - $_ = Object.getPrototypeOf($_); //#6929 - $_ = Object.getPrototypeOf($_); //#6931 -} - + ]); //#7006 + $_.fncvals = _3; //#7007 + $k[$j++] = 'barcode'; //#7008 + $k[$j++] = $_.barcode; //#7008 + $k[$j++] = $_.fncvals; //#7008 + bwipp_parseinput(); //#7008 + var _6 = $k[--$j]; //#7008 + $_[$k[--$j]] = _6; //#7008 + $_.barlen = $_.barcode.length; //#7009 + delete $_.options["parse"]; //#7010 + $forall($_.barcode, function() { //#7017 + if ($k[--$j] >= 128) { //#7016 + $k[$j++] = 'bwipp.code39extBadCharacter#7015'; //#7015 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#7015 + bwipp_raiseerror(); //#7015 + } //#7015 + }); //#7015 + if (!bwipp_code39ext.__7031__) { //#7031 + $_ = Object.create($_); //#7031 + $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#7030 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#7030 + bwipp_code39ext.__7031__ = 1; //#7030 + $_ = Object.getPrototypeOf($_); //#7030 + } //#7030 + $_.newcode = $s($_.barlen * 2); //#7033 + $_.newtext = $s($_.barlen * 2); //#7034 + $_.j = 0; //#7035 + for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#7043 + $_.i = _K; //#7037 + $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#7038 + $puti($_.newcode, $_.j, $_.extchar); //#7039 + var _X = $get($_.barcode, $_.i); //#7040 + $k[$j++] = $_.newtext; //#7040 + $k[$j++] = $_.j; //#7040 + $k[$j++] = _X; //#7040 + if ((_X < 32) || (_X == 127)) { //#7040 + $j--; //#7040 + $k[$j++] = 32; //#7040 + } //#7040 + var _Y = $k[--$j]; //#7040 + var _Z = $k[--$j]; //#7040 + $put($k[--$j], _Z, _Y); //#7040 + if ($_.extchar.length != 1) { //#7041 + $put($_.newtext, $_.j + 1, 32); //#7041 + } //#7041 + $_.j = $_.j + $_.extchar.length; //#7042 + } //#7042 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7044 + $_.newtext = $geti($_.newtext, 0, $_.j); //#7045 + $put($_.options, "dontdraw", true); //#7048 + $k[$j++] = 'args'; //#7049 + $k[$j++] = $_.newcode; //#7049 + $k[$j++] = $_.options; //#7049 + bwipp_code39(); //#7049 + var _p = $k[--$j]; //#7049 + $_[$k[--$j]] = _p; //#7049 + if ($_.includetext) { //#7061 + $_.txt = $get($_.args, "txt"); //#7053 + for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#7059 + $_.i = _w; //#7055 + $_.txtentry = $get($_.txt, $_.i + 1); //#7056 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7057 + $put($_.txt, $_.i + 1, $_.txtentry); //#7058 + } //#7058 + $put($_.args, "txt", $_.txt); //#7060 + } //#7060 + $put($_.args, "opt", $_.options); //#7062 + $k[$j++] = $_.args; //#7065 + if (!$_.dontdraw) { //#7065 + bwipp_renlinear(); //#7065 + } //#7065 + $_ = Object.getPrototypeOf($_); //#7067 + $_ = Object.getPrototypeOf($_); //#7069 +} //bwipp_code39ext function bwipp_code32() { - $_ = Object.create($_); //#6960 - $_.dontdraw = false; //#6963 - $_.includetext = false; //#6964 - $_.textfont = "OCR-B"; //#6965 - $_.textsize = 10; //#6966 - $_.textyoffset = -8; //#6967 - $_.textxoffset = 0; //#6968 - $_.height = 1; //#6969 - $k[$j++] = $_; //#6971 - bwipp_processoptions(); //#6971 - $_.options = $k[--$j]; //#6971 - $_.barcode = $k[--$j]; //#6972 - if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#6977 - $k[$j++] = 'bwipp.code32badLength#6976'; //#6976 - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#6976 - bwipp_raiseerror(); //#6976 - } //#6976 - $forall($_.barcode, function() { //#6982 - var _5 = $k[--$j]; //#6979 - if ((_5 < 48) || (_5 > 57)) { //#6981 - $k[$j++] = 'bwipp.code32badCharacter#6980'; //#6980 - $k[$j++] = "Italian Pharmacode must contain only digits"; //#6980 - bwipp_raiseerror(); //#6980 - } //#6980 - }); //#6980 - $_.checksum = 0; //#6985 - for (var _6 = 0; _6 <= 7; _6 += 1) { //#6990 - $_.i = _6; //#6987 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#6988 - if (($_.i % 2) != 0) { //#6988 - var _B = $k[--$j]; //#6988 - $k[$j++] = _B * 2; //#6988 - } //#6988 - var _C = $k[--$j]; //#6988 - $k[$j++] = _C; //#6988 - if (_C > 9) { //#6988 - var _D = $k[--$j]; //#6988 - $k[$j++] = $f(_D - 9); //#6988 - } //#6988 - $_.checksum = $f($k[--$j] + $_.checksum); //#6989 - } //#6989 - $_.checksum = $_.checksum % 10; //#6991 - if ($_.barcode.length == 9) { //#6996 - if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#6995 - $k[$j++] = 'bwipp.code32badCheckDigit#6994'; //#6994 - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#6994 - bwipp_raiseerror(); //#6994 - } //#6994 - } //#6994 - var _L = $s(10); //#6997 - $puti(_L, 0, $_.barcode); //#6998 - $put(_L, 8, $f($_.checksum + 48)); //#6999 - $_.text = _L; //#7000 - $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7003 - $_.barcode = $s(6); //#7004 - for (var _S = 0; _S <= 5; _S += 1) { //#7005 - $put($_.barcode, _S, 48); //#7005 - } //#7005 - $puti($_.barcode, 6 - $_.val.length, $_.val); //#7006 - for (var _X = 0; _X <= 5; _X += 1) { //#7013 - var _Z = $get($_.barcode, _X); //#7010 - $k[$j++] = _X; //#7011 - $k[$j++] = _Z; //#7011 - $k[$j++] = _Z; //#7011 - for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7011 - if ($k[--$j] >= $get("AEIO", _a)) { //#7011 - var _e = $k[--$j]; //#7011 - $k[$j++] = $f(_e + 1); //#7011 - } //#7011 - var _f = $k[--$j]; //#7011 - $k[$j++] = _f; //#7011 - $k[$j++] = _f; //#7011 - } //#7011 - $j--; //#7011 - var _h = $k[--$j]; //#7012 - $put($_.barcode, $k[--$j], _h); //#7012 - } //#7012 - $puti($_.text, 1, $geti($_.text, 0, 9)); //#7016 - $put($_.text, 0, 65); //#7017 - $put($_.options, "dontdraw", true); //#7020 - $k[$j++] = 'args'; //#7021 - $k[$j++] = $_.barcode; //#7021 - $k[$j++] = $_.options; //#7021 - bwipp_code39(); //#7021 - var _q = $k[--$j]; //#7021 - var _r = $k[--$j]; //#7021 - $_[_r] = _q; //#7021 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7023 - $put($_.args, "textxalign", "center"); //#7024 - $put($_.args, "opt", $_.options); //#7025 - $k[$j++] = $_.args; //#7028 - if (!$_.dontdraw) { //#7028 - bwipp_renlinear(); //#7028 - } //#7028 - $_ = Object.getPrototypeOf($_); //#7030 -} - -function bwipp_pzn() { - $_ = Object.create($_); //#7059 - $_.dontdraw = false; //#7062 - $_.includetext = false; //#7063 - $_.textfont = "OCR-B"; //#7064 - $_.textsize = 10; //#7065 - $_.textyoffset = -8; //#7066 - $_.textxoffset = 0; //#7067 - $_.height = 1; //#7068 - $_.pzn8 = false; //#7069 - $k[$j++] = $_; //#7071 - bwipp_processoptions(); //#7071 - $_.options = $k[--$j]; //#7071 - $_.barcode = $k[--$j]; //#7072 - if ($_.pzn8) { //#7081 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7078 - $k[$j++] = 'bwipp.pzn8badLength#7077'; //#7077 - $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7077 - bwipp_raiseerror(); //#7077 - } //#7077 - } else { //#7081 - if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7082 - $k[$j++] = 'bwipp.pzn7badLength#7081'; //#7081 - $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7081 - bwipp_raiseerror(); //#7081 - } //#7081 - } //#7081 - $forall($_.barcode, function() { //#7088 - var _8 = $k[--$j]; //#7085 - if ((_8 < 48) || (_8 > 57)) { //#7087 - $k[$j++] = 'bwipp.pznBadCharacter#7086'; //#7086 - $k[$j++] = "PZN must contain only digits"; //#7086 - bwipp_raiseerror(); //#7086 - } //#7086 - }); //#7086 - var _A = $_.pzn8 ? 9 : 8; //#7091 - $_.msglen = _A; //#7091 - $_.checksum = 0; //#7092 - for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7097 - $_.i = _D; //#7094 - var _J = $_.pzn8 ? 1 : 2; //#7095 - $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7096 - } //#7096 - $_.checksum = $_.checksum % 11; //#7098 - if ($_.checksum == 10) { //#7101 - $k[$j++] = 'bwipp.pznBadInputSequence#7100'; //#7100 - $k[$j++] = "Incorrect PZN input sequence provided"; //#7100 - bwipp_raiseerror(); //#7100 - } //#7100 - if ($_.barcode.length == ($_.msglen - 1)) { //#7106 - if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7105 - $k[$j++] = 'bwipp.pznBadCheckDigit#7104'; //#7104 - $k[$j++] = "Incorrect PZN check digit provided"; //#7104 - bwipp_raiseerror(); //#7104 - } //#7104 - } //#7104 - var _U = $s($_.msglen); //#7107 - $put(_U, 0, 45); //#7108 - $puti(_U, 1, $_.barcode); //#7109 - $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7110 - $_.msg = _U; //#7111 - $put($_.options, "dontdraw", true); //#7114 - $k[$j++] = 'args'; //#7115 - $k[$j++] = $_.msg; //#7115 - $k[$j++] = $_.options; //#7115 - bwipp_code39(); //#7115 - var _b = $k[--$j]; //#7115 - $_[$k[--$j]] = _b; //#7115 - $_.text = $s($_.msglen + 5); //#7118 - $puti($_.text, 0, "PZN - "); //#7119 - $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7120 - var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7122 - $put($_.args, "txt", _r); //#7122 - $put($_.args, "textxalign", "center"); //#7123 - $put($_.args, "opt", $_.options); //#7124 - $k[$j++] = $_.args; //#7127 - if (!$_.dontdraw) { //#7127 - bwipp_renlinear(); //#7127 + $_ = Object.create($_); //#7098 + $_.dontdraw = false; //#7101 + $_.includetext = false; //#7102 + $_.textfont = "OCR-B"; //#7103 + $_.textsize = 10; //#7104 + $_.textyoffset = -8; //#7105 + $_.textxoffset = 0; //#7106 + $_.height = 1; //#7107 + $k[$j++] = $_; //#7109 + bwipp_processoptions(); //#7109 + $_.options = $k[--$j]; //#7109 + $_.barcode = $k[--$j]; //#7110 + if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#7115 + $k[$j++] = 'bwipp.code32badLength#7114'; //#7114 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#7114 + bwipp_raiseerror(); //#7114 + } //#7114 + $forall($_.barcode, function() { //#7120 + var _5 = $k[--$j]; //#7117 + if ((_5 < 48) || (_5 > 57)) { //#7119 + $k[$j++] = 'bwipp.code32badCharacter#7118'; //#7118 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#7118 + bwipp_raiseerror(); //#7118 + } //#7118 + }); //#7118 + $_.checksum = 0; //#7123 + for (var _6 = 0; _6 <= 7; _6 += 1) { //#7128 + $_.i = _6; //#7125 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7126 + if (($_.i % 2) != 0) { //#7126 + var _B = $k[--$j]; //#7126 + $k[$j++] = _B * 2; //#7126 + } //#7126 + var _C = $k[--$j]; //#7126 + $k[$j++] = _C; //#7126 + if (_C > 9) { //#7126 + var _D = $k[--$j]; //#7126 + $k[$j++] = $f(_D - 9); //#7126 + } //#7126 + $_.checksum = $f($k[--$j] + $_.checksum); //#7127 } //#7127 - $_ = Object.getPrototypeOf($_); //#7129 -} - + $_.checksum = $_.checksum % 10; //#7129 + if ($_.barcode.length == 9) { //#7134 + if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#7133 + $k[$j++] = 'bwipp.code32badCheckDigit#7132'; //#7132 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#7132 + bwipp_raiseerror(); //#7132 + } //#7132 + } //#7132 + var _L = $s(10); //#7135 + $puti(_L, 0, $_.barcode); //#7136 + $put(_L, 8, $f($_.checksum + 48)); //#7137 + $_.text = _L; //#7138 + $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7141 + $_.barcode = $s(6); //#7142 + for (var _S = 0; _S <= 5; _S += 1) { //#7143 + $put($_.barcode, _S, 48); //#7143 + } //#7143 + $puti($_.barcode, 6 - $_.val.length, $_.val); //#7144 + for (var _X = 0; _X <= 5; _X += 1) { //#7151 + var _Z = $get($_.barcode, _X); //#7148 + $k[$j++] = _X; //#7149 + $k[$j++] = _Z; //#7149 + $k[$j++] = _Z; //#7149 + for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7149 + if ($k[--$j] >= $get("AEIO", _a)) { //#7149 + var _e = $k[--$j]; //#7149 + $k[$j++] = $f(_e + 1); //#7149 + } //#7149 + var _f = $k[--$j]; //#7149 + $k[$j++] = _f; //#7149 + $k[$j++] = _f; //#7149 + } //#7149 + $j--; //#7149 + var _h = $k[--$j]; //#7150 + $put($_.barcode, $k[--$j], _h); //#7150 + } //#7150 + $puti($_.text, 1, $geti($_.text, 0, 9)); //#7154 + $put($_.text, 0, 65); //#7155 + $put($_.options, "dontdraw", true); //#7158 + $k[$j++] = 'args'; //#7159 + $k[$j++] = $_.barcode; //#7159 + $k[$j++] = $_.options; //#7159 + bwipp_code39(); //#7159 + var _q = $k[--$j]; //#7159 + var _r = $k[--$j]; //#7159 + $_[_r] = _q; //#7159 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7161 + $put($_.args, "textxalign", "center"); //#7162 + $put($_.args, "opt", $_.options); //#7163 + $k[$j++] = $_.args; //#7166 + if (!$_.dontdraw) { //#7166 + bwipp_renlinear(); //#7166 + } //#7166 + $_ = Object.getPrototypeOf($_); //#7168 +} //bwipp_code32 +function bwipp_pzn() { + $_ = Object.create($_); //#7197 + $_.dontdraw = false; //#7200 + $_.includetext = false; //#7201 + $_.textfont = "OCR-B"; //#7202 + $_.textsize = 10; //#7203 + $_.textyoffset = -8; //#7204 + $_.textxoffset = 0; //#7205 + $_.height = 1; //#7206 + $_.pzn8 = false; //#7207 + $k[$j++] = $_; //#7209 + bwipp_processoptions(); //#7209 + $_.options = $k[--$j]; //#7209 + $_.barcode = $k[--$j]; //#7210 + if ($_.pzn8) { //#7219 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7216 + $k[$j++] = 'bwipp.pzn8badLength#7215'; //#7215 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7215 + bwipp_raiseerror(); //#7215 + } //#7215 + } else { //#7219 + if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7220 + $k[$j++] = 'bwipp.pzn7badLength#7219'; //#7219 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7219 + bwipp_raiseerror(); //#7219 + } //#7219 + } //#7219 + $forall($_.barcode, function() { //#7226 + var _8 = $k[--$j]; //#7223 + if ((_8 < 48) || (_8 > 57)) { //#7225 + $k[$j++] = 'bwipp.pznBadCharacter#7224'; //#7224 + $k[$j++] = "PZN must contain only digits"; //#7224 + bwipp_raiseerror(); //#7224 + } //#7224 + }); //#7224 + var _A = $_.pzn8 ? 9 : 8; //#7229 + $_.msglen = _A; //#7229 + $_.checksum = 0; //#7230 + for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7235 + $_.i = _D; //#7232 + var _J = $_.pzn8 ? 1 : 2; //#7233 + $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7234 + } //#7234 + $_.checksum = $_.checksum % 11; //#7236 + if ($_.checksum == 10) { //#7239 + $k[$j++] = 'bwipp.pznBadInputSequence#7238'; //#7238 + $k[$j++] = "Incorrect PZN input sequence provided"; //#7238 + bwipp_raiseerror(); //#7238 + } //#7238 + if ($_.barcode.length == ($_.msglen - 1)) { //#7244 + if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7243 + $k[$j++] = 'bwipp.pznBadCheckDigit#7242'; //#7242 + $k[$j++] = "Incorrect PZN check digit provided"; //#7242 + bwipp_raiseerror(); //#7242 + } //#7242 + } //#7242 + var _U = $s($_.msglen); //#7245 + $put(_U, 0, 45); //#7246 + $puti(_U, 1, $_.barcode); //#7247 + $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7248 + $_.msg = _U; //#7249 + $put($_.options, "dontdraw", true); //#7252 + $k[$j++] = 'args'; //#7253 + $k[$j++] = $_.msg; //#7253 + $k[$j++] = $_.options; //#7253 + bwipp_code39(); //#7253 + var _b = $k[--$j]; //#7253 + $_[$k[--$j]] = _b; //#7253 + $_.text = $s($_.msglen + 5); //#7256 + $puti($_.text, 0, "PZN - "); //#7257 + $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7258 + var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7260 + $put($_.args, "txt", _r); //#7260 + $put($_.args, "textxalign", "center"); //#7261 + $put($_.args, "opt", $_.options); //#7262 + $k[$j++] = $_.args; //#7265 + if (!$_.dontdraw) { //#7265 + bwipp_renlinear(); //#7265 + } //#7265 + $_ = Object.getPrototypeOf($_); //#7267 +} //bwipp_pzn function bwipp_code93() { - $_ = Object.create($_); //#7160 - $_.dontdraw = false; //#7163 - $_.includecheck = false; //#7164 - $_.includetext = false; //#7165 - $_.textfont = "OCR-B"; //#7166 - $_.textsize = 10; //#7167 - $_.textyoffset = -8; //#7168 - $_.height = 1; //#7169 - $_.parse = false; //#7170 - $_.parsefnc = false; //#7171 - $k[$j++] = $_; //#7173 - bwipp_processoptions(); //#7173 - $_.options = $k[--$j]; //#7173 - $_.barcode = $k[--$j]; //#7174 - bwipp_loadctx(bwipp_code93) //#7176 - if (!bwipp_code93.__7204__) { //#7204 - $_ = Object.create($_); //#7204 - $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7190 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7193 - $_.charvals = new Map; //#7194 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#7195 - $put($_.charvals, $get($_.barchars, _3), _3); //#7195 - } //#7195 - $_.sft1 = -1; //#7197 - $_.sft2 = -2; //#7197 - $_.sft3 = -3; //#7197 - $_.sft4 = -4; //#7197 - var _7 = $_.charvals; //#7199 - $put(_7, $_.sft1, 43); //#7199 - $put($_.charvals, $_.sft2, 44); //#7200 - $put($_.charvals, $_.sft3, 45); //#7201 - $put($_.charvals, $_.sft4, 46); //#7202 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7202 - bwipp_code93.__7204__ = 1; //#7202 - $_ = Object.getPrototypeOf($_); //#7202 - } //#7202 + $_ = Object.create($_); //#7298 + $_.dontdraw = false; //#7301 + $_.includecheck = false; //#7302 + $_.includetext = false; //#7303 + $_.textfont = "OCR-B"; //#7304 + $_.textsize = 10; //#7305 + $_.textyoffset = -8; //#7306 + $_.height = 1; //#7307 + $_.parse = false; //#7308 + $_.parsefnc = false; //#7309 + $k[$j++] = $_; //#7311 + bwipp_processoptions(); //#7311 + $_.options = $k[--$j]; //#7311 + $_.barcode = $k[--$j]; //#7312 + bwipp_loadctx(bwipp_code93) //#7314 + if (!bwipp_code93.__7342__) { //#7342 + $_ = Object.create($_); //#7342 + $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7328 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7331 + $_.charvals = new Map; //#7332 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#7333 + $put($_.charvals, $get($_.barchars, _3), _3); //#7333 + } //#7333 + $_.sft1 = -1; //#7335 + $_.sft2 = -2; //#7335 + $_.sft3 = -3; //#7335 + $_.sft4 = -4; //#7335 + var _7 = $_.charvals; //#7337 + $put(_7, $_.sft1, 43); //#7337 + $put($_.charvals, $_.sft2, 44); //#7338 + $put($_.charvals, $_.sft3, 45); //#7339 + $put($_.charvals, $_.sft4, 46); //#7340 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7340 + bwipp_code93.__7342__ = 1; //#7340 + $_ = Object.getPrototypeOf($_); //#7340 + } //#7340 var _M = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -10079,1272 +10335,1274 @@ function bwipp_code93() { ["SFT%", $_.sft2], ["SFT/", $_.sft3], ["SFT+", $_.sft4] - ]); //#7213 - $_.fncvals = _M; //#7214 - $k[$j++] = 'msg'; //#7215 - $k[$j++] = $_.barcode; //#7215 - $k[$j++] = $_.fncvals; //#7215 - bwipp_parseinput(); //#7215 - var _P = $k[--$j]; //#7215 - $_[$k[--$j]] = _P; //#7215 - $_.msglen = $_.msg.length; //#7216 - $forall($_.msg, function() { //#7223 - var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7220 - if (!_V) { //#7222 - $k[$j++] = 'bwipp.code93BadCharacter#7221'; //#7221 - $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7221 - bwipp_raiseerror(); //#7221 - } //#7221 - }); //#7221 - if ($_.includecheck) { //#7228 - $_.sbs = $s(($_.msglen * 6) + 25); //#7226 - } else { //#7228 - $_.sbs = $s(($_.msglen * 6) + 13); //#7228 - } //#7228 - $_.txt = $a($_.msglen); //#7230 - $puti($_.sbs, 0, $get($_.encs, 47)); //#7233 - $_.checksum1 = 0; //#7235 - $_.checksum2 = 0; //#7235 - for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7244 - $_.i = _i; //#7237 - $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7238 - $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7239 - var _v = $get($_.msg, $_.i); //#7240 - $k[$j++] = 'char'; //#7240 - $k[$j++] = _v; //#7240 - if (_v < 0) { //#7240 - $j--; //#7240 - $k[$j++] = " "; //#7240 - } else { //#7240 - var _w = $s(1); //#7240 - $put(_w, 0, $k[--$j]); //#7240 - $k[$j++] = _w; //#7240 - } //#7240 - var _y = $k[--$j]; //#7240 - $_[$k[--$j]] = _y; //#7240 - $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7241 - $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7242 - $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7243 - } //#7243 - if ($_.includecheck) { //#7256 - $_.checksum1 = $_.checksum1 % 47; //#7248 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7249 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7250 - $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7251 - $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7253 - } else { //#7256 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7256 - } //#7256 - $k[$j++] = Infinity; //#7268 - $k[$j++] = Infinity; //#7262 - var _1c = $_.sbs; //#7262 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7262 - $k[$j++] = $get(_1c, _1d) - 48; //#7262 - } //#7262 - var _1g = $a(); //#7262 - $k[$j++] = Infinity; //#7263 - for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7263 - $k[$j++] = $_.height; //#7263 - } //#7263 - var _1l = $a(); //#7263 - $k[$j++] = Infinity; //#7264 - for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7264 - $k[$j++] = 0; //#7264 - } //#7264 - var _1p = $a(); //#7264 - $k[$j++] = 'ren'; //#7267 - $k[$j++] = bwipp_renlinear; //#7267 - $k[$j++] = 'sbs'; //#7267 - $k[$j++] = _1g; //#7267 - $k[$j++] = 'bhs'; //#7267 - $k[$j++] = _1l; //#7267 - $k[$j++] = 'bbs'; //#7267 - $k[$j++] = _1p; //#7267 - if ($_.includetext) { //#7267 - $k[$j++] = 'txt'; //#7266 - $k[$j++] = $_.txt; //#7266 - } //#7266 - $k[$j++] = 'opt'; //#7268 - $k[$j++] = $_.options; //#7268 - var _1t = $d(); //#7268 - $k[$j++] = _1t; //#7271 - if (!$_.dontdraw) { //#7271 - bwipp_renlinear(); //#7271 - } //#7271 - $_ = Object.getPrototypeOf($_); //#7273 - $_ = Object.getPrototypeOf($_); //#7275 -} - + ]); //#7351 + $_.fncvals = _M; //#7352 + $k[$j++] = 'msg'; //#7353 + $k[$j++] = $_.barcode; //#7353 + $k[$j++] = $_.fncvals; //#7353 + bwipp_parseinput(); //#7353 + var _P = $k[--$j]; //#7353 + $_[$k[--$j]] = _P; //#7353 + $_.msglen = $_.msg.length; //#7354 + $forall($_.msg, function() { //#7361 + var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7358 + if (!_V) { //#7360 + $k[$j++] = 'bwipp.code93BadCharacter#7359'; //#7359 + $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7359 + bwipp_raiseerror(); //#7359 + } //#7359 + }); //#7359 + if ($_.includecheck) { //#7366 + $_.sbs = $s(($_.msglen * 6) + 25); //#7364 + } else { //#7366 + $_.sbs = $s(($_.msglen * 6) + 13); //#7366 + } //#7366 + $_.txt = $a($_.msglen); //#7368 + $puti($_.sbs, 0, $get($_.encs, 47)); //#7371 + $_.checksum1 = 0; //#7373 + $_.checksum2 = 0; //#7373 + for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7382 + $_.i = _i; //#7375 + $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7376 + $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7377 + var _v = $get($_.msg, $_.i); //#7378 + $k[$j++] = 'char'; //#7378 + $k[$j++] = _v; //#7378 + if (_v < 0) { //#7378 + $j--; //#7378 + $k[$j++] = " "; //#7378 + } else { //#7378 + var _w = $s(1); //#7378 + $put(_w, 0, $k[--$j]); //#7378 + $k[$j++] = _w; //#7378 + } //#7378 + var _y = $k[--$j]; //#7378 + $_[$k[--$j]] = _y; //#7378 + $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7379 + $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7380 + $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7381 + } //#7381 + if ($_.includecheck) { //#7394 + $_.checksum1 = $_.checksum1 % 47; //#7386 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7387 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7388 + $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7389 + $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7391 + } else { //#7394 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7394 + } //#7394 + $k[$j++] = Infinity; //#7398 + $k[$j++] = Infinity; //#7400 + var _1c = $_.sbs; //#7400 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7400 + $k[$j++] = $get(_1c, _1d) - 48; //#7400 + } //#7400 + var _1g = $a(); //#7400 + $k[$j++] = Infinity; //#7401 + for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7401 + $k[$j++] = $_.height; //#7401 + } //#7401 + var _1l = $a(); //#7401 + $k[$j++] = Infinity; //#7402 + for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7402 + $k[$j++] = 0; //#7402 + } //#7402 + var _1p = $a(); //#7402 + $k[$j++] = 'ren'; //#7405 + $k[$j++] = bwipp_renlinear; //#7405 + $k[$j++] = 'sbs'; //#7405 + $k[$j++] = _1g; //#7405 + $k[$j++] = 'bhs'; //#7405 + $k[$j++] = _1l; //#7405 + $k[$j++] = 'bbs'; //#7405 + $k[$j++] = _1p; //#7405 + if ($_.includetext) { //#7405 + $k[$j++] = 'txt'; //#7404 + $k[$j++] = $_.txt; //#7404 + } //#7404 + $k[$j++] = 'opt'; //#7406 + $k[$j++] = $_.options; //#7406 + var _1t = $d(); //#7406 + $k[$j++] = _1t; //#7409 + if (!$_.dontdraw) { //#7409 + bwipp_renlinear(); //#7409 + } //#7409 + $_ = Object.getPrototypeOf($_); //#7411 + $_ = Object.getPrototypeOf($_); //#7413 +} //bwipp_code93 function bwipp_code93ext() { - $_ = Object.create($_); //#7307 - $_.dontdraw = false; //#7310 - $_.includetext = false; //#7311 - $_.parse = false; //#7312 - $k[$j++] = $_; //#7314 - bwipp_processoptions(); //#7314 - $_.options = $k[--$j]; //#7314 - $_.barcode = $k[--$j]; //#7315 - bwipp_loadctx(bwipp_code93ext) //#7317 + $_ = Object.create($_); //#7445 + $_.dontdraw = false; //#7448 + $_.includetext = false; //#7449 + $_.parse = false; //#7450 + $k[$j++] = $_; //#7452 + bwipp_processoptions(); //#7452 + $_.options = $k[--$j]; //#7452 + $_.barcode = $k[--$j]; //#7453 + bwipp_loadctx(bwipp_code93ext) //#7455 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#7323 - $_.fncvals = _3; //#7324 - $k[$j++] = 'barcode'; //#7325 - $k[$j++] = $_.barcode; //#7325 - $k[$j++] = $_.fncvals; //#7325 - bwipp_parseinput(); //#7325 - var _6 = $k[--$j]; //#7325 - var _7 = $k[--$j]; //#7325 - $_[_7] = _6; //#7325 - $_.barlen = $_.barcode.length; //#7326 - delete $_.options["parse"]; //#7327 - if (!bwipp_code93ext.__7349__) { //#7349 - $_ = Object.create($_); //#7349 - $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7348 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7348 - bwipp_code93ext.__7349__ = 1; //#7348 - $_ = Object.getPrototypeOf($_); //#7348 - } //#7348 - $_.newcode = $s($_.barlen * 6); //#7351 - $_.newtext = $s($_.barlen * 6); //#7352 - $_.j = 0; //#7353 - $_.k = 0; //#7353 - for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7367 - $_.i = _I; //#7355 - var _L = $get($_.barcode, $_.i); //#7356 - $k[$j++] = _L; //#7359 - if (_L > 127) { //#7359 - $j--; //#7358 - $k[$j++] = 'bwipp.code93extbadCharacter#7358'; //#7358 - $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7358 - bwipp_raiseerror(); //#7358 - } //#7358 - $_.extchar = $get($_.extencs, $k[--$j]); //#7360 - $_.extlen = $_.extchar.length; //#7361 - $puti($_.newcode, $_.j, $_.extchar); //#7362 - var _X = $get($_.barcode, $_.i); //#7363 - $k[$j++] = $_.newtext; //#7363 - $k[$j++] = $_.k; //#7363 - $k[$j++] = _X; //#7363 - if ((_X < 32) || (_X == 127)) { //#7363 - $j--; //#7363 - $k[$j++] = 32; //#7363 - } //#7363 - var _Y = $k[--$j]; //#7363 - var _Z = $k[--$j]; //#7363 - $put($k[--$j], _Z, _Y); //#7363 - if ($_.extlen != 1) { //#7364 - $put($_.newtext, $_.k + 1, 32); //#7364 - } //#7364 - $_.j = $_.j + $_.extlen; //#7365 - var _i = ($_.extlen == 1) ? 1 : 2; //#7366 - $_.k = $_.k + _i; //#7366 - } //#7366 - $_.newcode = $geti($_.newcode, 0, $_.j); //#7368 - $_.newtext = $geti($_.newtext, 0, $_.k); //#7369 - $put($_.options, "dontdraw", true); //#7372 - $put($_.options, "parsefnc", true); //#7373 - $k[$j++] = 'args'; //#7374 - $k[$j++] = $_.newcode; //#7374 - $k[$j++] = $_.options; //#7374 - bwipp_code93(); //#7374 - var _t = $k[--$j]; //#7374 - $_[$k[--$j]] = _t; //#7374 - if ($_.includetext) { //#7386 - $_.txt = $get($_.args, "txt"); //#7378 - for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7384 - $_.i = _10; //#7380 - $_.txtentry = $get($_.txt, $_.i); //#7381 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7382 - $put($_.txt, $_.i, $_.txtentry); //#7383 - } //#7383 - $put($_.args, "txt", $_.txt); //#7385 - } //#7385 - $put($_.args, "opt", $_.options); //#7387 - $k[$j++] = $_.args; //#7390 - if (!$_.dontdraw) { //#7390 - bwipp_renlinear(); //#7390 - } //#7390 - $_ = Object.getPrototypeOf($_); //#7392 - $_ = Object.getPrototypeOf($_); //#7394 -} - -function bwipp_interleaved2of5() { - $_ = Object.create($_); //#7424 - $_.dontdraw = false; //#7427 - $_.includecheck = false; //#7428 - $_.includetext = false; //#7429 - $_.includecheckintext = false; //#7430 - $_.textfont = "OCR-B"; //#7431 - $_.textsize = 10; //#7432 - $_.textyoffset = -8; //#7433 - $_.height = 1; //#7434 - $k[$j++] = $_; //#7436 - bwipp_processoptions(); //#7436 - $_.options = $k[--$j]; //#7436 - $_.barcode = $k[--$j]; //#7437 - bwipp_loadctx(bwipp_interleaved2of5) //#7439 - $forall($_.barcode, function() { //#7446 - var _3 = $k[--$j]; //#7443 - if ((_3 < 48) || (_3 > 57)) { //#7445 - $k[$j++] = 'bwipp.interleaved2of5badCharacter#7444'; //#7444 - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7444 - bwipp_raiseerror(); //#7444 - } //#7444 - }); //#7444 - $_.barlen = $_.barcode.length; //#7448 - if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7459 - $_.pad = $s($_.barlen + 1); //#7454 - $put($_.pad, 0, 48); //#7455 - $puti($_.pad, 1, $_.barcode); //#7456 - $_.barcode = $_.pad; //#7457 - $_.barlen = $_.barlen + 1; //#7458 - } //#7458 - if ($_.includecheck) { //#7478 - $_.checksum = 0; //#7463 - for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7471 - $_.i = _J; //#7465 - if (($_.i % 2) == 0) { //#7469 - $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7467 - } else { //#7469 - $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7469 - } //#7469 - } //#7469 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7472 - $_.pad = $s($_.barlen + 1); //#7473 - $puti($_.pad, 0, $_.barcode); //#7474 - $put($_.pad, $_.barlen, $_.checksum + 48); //#7475 - $_.barcode = $_.pad; //#7476 - $_.barlen = $_.barlen + 1; //#7477 - } //#7477 - if (!bwipp_interleaved2of5.__7490__) { //#7490 - $_ = Object.create($_); //#7490 - $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7486 - $_.barchars = "0123456789"; //#7489 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7489 - bwipp_interleaved2of5.__7490__ = 1; //#7489 - $_ = Object.getPrototypeOf($_); //#7489 - } //#7489 - $_.sbs = $s(($_.barlen * 5) + 8); //#7492 - $_.txt = $a($_.barlen); //#7493 - $puti($_.sbs, 0, $get($_.encs, 10)); //#7496 - for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7530 - $_.i = _o; //#7499 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7501 - $j--; //#7502 - $_.indx = $k[--$j].length; //#7503 - $j -= 2; //#7504 - $_.enca = $get($_.encs, $_.indx); //#7505 - $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7507 - $j--; //#7508 - $_.indx = $k[--$j].length; //#7509 - $j -= 2; //#7510 - $_.encb = $get($_.encs, $_.indx); //#7511 - $_.intl = $s($_.enca.length * 2); //#7514 - for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7521 - $_.j = _19; //#7516 - $_.achar = $get($_.enca, $_.j); //#7517 - $_.bchar = $get($_.encb, $_.j); //#7518 - $put($_.intl, $_.j * 2, $_.achar); //#7519 - $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7520 - } //#7520 - $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7523 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7524 - if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7528 - $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7526 - } else { //#7528 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7528 - } //#7528 + ]); //#7461 + $_.fncvals = _3; //#7462 + $k[$j++] = 'barcode'; //#7463 + $k[$j++] = $_.barcode; //#7463 + $k[$j++] = $_.fncvals; //#7463 + bwipp_parseinput(); //#7463 + var _6 = $k[--$j]; //#7463 + var _7 = $k[--$j]; //#7463 + $_[_7] = _6; //#7463 + $_.barlen = $_.barcode.length; //#7464 + delete $_.options["parse"]; //#7465 + if (!bwipp_code93ext.__7487__) { //#7487 + $_ = Object.create($_); //#7487 + $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7486 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7486 + bwipp_code93ext.__7487__ = 1; //#7486 + $_ = Object.getPrototypeOf($_); //#7486 + } //#7486 + $_.newcode = $s($_.barlen * 6); //#7489 + $_.newtext = $s($_.barlen * 6); //#7490 + $_.j = 0; //#7491 + $_.k = 0; //#7491 + for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7505 + $_.i = _I; //#7493 + var _L = $get($_.barcode, $_.i); //#7494 + $k[$j++] = _L; //#7497 + if (_L > 127) { //#7497 + $j--; //#7496 + $k[$j++] = 'bwipp.code93extbadCharacter#7496'; //#7496 + $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7496 + bwipp_raiseerror(); //#7496 + } //#7496 + $_.extchar = $get($_.extencs, $k[--$j]); //#7498 + $_.extlen = $_.extchar.length; //#7499 + $puti($_.newcode, $_.j, $_.extchar); //#7500 + var _X = $get($_.barcode, $_.i); //#7501 + $k[$j++] = $_.newtext; //#7501 + $k[$j++] = $_.k; //#7501 + $k[$j++] = _X; //#7501 + if ((_X < 32) || (_X == 127)) { //#7501 + $j--; //#7501 + $k[$j++] = 32; //#7501 + } //#7501 + var _Y = $k[--$j]; //#7501 + var _Z = $k[--$j]; //#7501 + $put($k[--$j], _Z, _Y); //#7501 + if ($_.extlen != 1) { //#7502 + $put($_.newtext, $_.k + 1, 32); //#7502 + } //#7502 + $_.j = $_.j + $_.extlen; //#7503 + var _i = ($_.extlen == 1) ? 1 : 2; //#7504 + $_.k = $_.k + _i; //#7504 + } //#7504 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7506 + $_.newtext = $geti($_.newtext, 0, $_.k); //#7507 + $put($_.options, "dontdraw", true); //#7510 + $put($_.options, "parsefnc", true); //#7511 + $k[$j++] = 'args'; //#7512 + $k[$j++] = $_.newcode; //#7512 + $k[$j++] = $_.options; //#7512 + bwipp_code93(); //#7512 + var _t = $k[--$j]; //#7512 + $_[$k[--$j]] = _t; //#7512 + if ($_.includetext) { //#7524 + $_.txt = $get($_.args, "txt"); //#7516 + for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7522 + $_.i = _10; //#7518 + $_.txtentry = $get($_.txt, $_.i); //#7519 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7520 + $put($_.txt, $_.i, $_.txtentry); //#7521 + } //#7521 + $put($_.args, "txt", $_.txt); //#7523 + } //#7523 + $put($_.args, "opt", $_.options); //#7525 + $k[$j++] = $_.args; //#7528 + if (!$_.dontdraw) { //#7528 + bwipp_renlinear(); //#7528 } //#7528 - $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7533 - $k[$j++] = Infinity; //#7546 - $k[$j++] = Infinity; //#7538 - var _1y = $_.sbs; //#7538 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7538 - $k[$j++] = $get(_1y, _1z) - 48; //#7538 - } //#7538 - var _22 = $a(); //#7538 - $k[$j++] = Infinity; //#7539 - for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7539 - $k[$j++] = $_.height; //#7539 - } //#7539 - var _27 = $a(); //#7539 - $k[$j++] = Infinity; //#7540 - for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7540 - $k[$j++] = 0; //#7540 - } //#7540 - var _2B = $a(); //#7540 - $k[$j++] = 'ren'; //#7543 - $k[$j++] = bwipp_renlinear; //#7543 - $k[$j++] = 'sbs'; //#7543 - $k[$j++] = _22; //#7543 - $k[$j++] = 'bhs'; //#7543 - $k[$j++] = _27; //#7543 - $k[$j++] = 'bbs'; //#7543 - $k[$j++] = _2B; //#7543 - if ($_.includetext) { //#7543 - $k[$j++] = 'txt'; //#7542 - $k[$j++] = $_.txt; //#7542 - } //#7542 - $k[$j++] = 'barratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'spaceratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'opt'; //#7546 - $k[$j++] = $_.options; //#7546 - var _2F = $d(); //#7546 - $k[$j++] = _2F; //#7549 - if (!$_.dontdraw) { //#7549 - bwipp_renlinear(); //#7549 - } //#7549 - $_ = Object.getPrototypeOf($_); //#7551 - $_ = Object.getPrototypeOf($_); //#7553 -} - + $_ = Object.getPrototypeOf($_); //#7530 + $_ = Object.getPrototypeOf($_); //#7532 +} //bwipp_code93ext +function bwipp_interleaved2of5() { + $_ = Object.create($_); //#7562 + $_.dontdraw = false; //#7565 + $_.includecheck = false; //#7566 + $_.includetext = false; //#7567 + $_.includecheckintext = false; //#7568 + $_.textfont = "OCR-B"; //#7569 + $_.textsize = 10; //#7570 + $_.textyoffset = -8; //#7571 + $_.height = 1; //#7572 + $k[$j++] = $_; //#7574 + bwipp_processoptions(); //#7574 + $_.options = $k[--$j]; //#7574 + $_.barcode = $k[--$j]; //#7575 + bwipp_loadctx(bwipp_interleaved2of5) //#7577 + $forall($_.barcode, function() { //#7584 + var _3 = $k[--$j]; //#7581 + if ((_3 < 48) || (_3 > 57)) { //#7583 + $k[$j++] = 'bwipp.interleaved2of5badCharacter#7582'; //#7582 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7582 + bwipp_raiseerror(); //#7582 + } //#7582 + }); //#7582 + $_.barlen = $_.barcode.length; //#7586 + if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7597 + $_.pad = $s($_.barlen + 1); //#7592 + $put($_.pad, 0, 48); //#7593 + $puti($_.pad, 1, $_.barcode); //#7594 + $_.barcode = $_.pad; //#7595 + $_.barlen = $_.barlen + 1; //#7596 + } //#7596 + if ($_.includecheck) { //#7616 + $_.checksum = 0; //#7601 + for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7609 + $_.i = _J; //#7603 + if (($_.i % 2) == 0) { //#7607 + $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7605 + } else { //#7607 + $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7607 + } //#7607 + } //#7607 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7610 + $_.pad = $s($_.barlen + 1); //#7611 + $puti($_.pad, 0, $_.barcode); //#7612 + $put($_.pad, $_.barlen, $_.checksum + 48); //#7613 + $_.barcode = $_.pad; //#7614 + $_.barlen = $_.barlen + 1; //#7615 + } //#7615 + if (!bwipp_interleaved2of5.__7628__) { //#7628 + $_ = Object.create($_); //#7628 + $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7624 + $_.barchars = "0123456789"; //#7627 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7627 + bwipp_interleaved2of5.__7628__ = 1; //#7627 + $_ = Object.getPrototypeOf($_); //#7627 + } //#7627 + $_.sbs = $s(($_.barlen * 5) + 8); //#7630 + $_.txt = $a($_.barlen); //#7631 + $puti($_.sbs, 0, $get($_.encs, 10)); //#7634 + for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7668 + $_.i = _o; //#7637 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7639 + $j--; //#7640 + $_.indx = $k[--$j].length; //#7641 + $j -= 2; //#7642 + $_.enca = $get($_.encs, $_.indx); //#7643 + $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7645 + $j--; //#7646 + $_.indx = $k[--$j].length; //#7647 + $j -= 2; //#7648 + $_.encb = $get($_.encs, $_.indx); //#7649 + $_.intl = $s($_.enca.length * 2); //#7652 + for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7659 + $_.j = _19; //#7654 + $_.achar = $get($_.enca, $_.j); //#7655 + $_.bchar = $get($_.encb, $_.j); //#7656 + $put($_.intl, $_.j * 2, $_.achar); //#7657 + $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7658 + } //#7658 + $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7661 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7662 + if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7666 + $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7664 + } else { //#7666 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7666 + } //#7666 + } //#7666 + $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7671 + $k[$j++] = Infinity; //#7674 + $k[$j++] = Infinity; //#7676 + var _1y = $_.sbs; //#7676 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7676 + $k[$j++] = $get(_1y, _1z) - 48; //#7676 + } //#7676 + var _22 = $a(); //#7676 + $k[$j++] = Infinity; //#7677 + for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7677 + $k[$j++] = $_.height; //#7677 + } //#7677 + var _27 = $a(); //#7677 + $k[$j++] = Infinity; //#7678 + for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7678 + $k[$j++] = 0; //#7678 + } //#7678 + var _2B = $a(); //#7678 + $k[$j++] = 'ren'; //#7681 + $k[$j++] = bwipp_renlinear; //#7681 + $k[$j++] = 'sbs'; //#7681 + $k[$j++] = _22; //#7681 + $k[$j++] = 'bhs'; //#7681 + $k[$j++] = _27; //#7681 + $k[$j++] = 'bbs'; //#7681 + $k[$j++] = _2B; //#7681 + if ($_.includetext) { //#7681 + $k[$j++] = 'txt'; //#7680 + $k[$j++] = $_.txt; //#7680 + } //#7680 + $k[$j++] = 'barratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'spaceratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'opt'; //#7684 + $k[$j++] = $_.options; //#7684 + var _2F = $d(); //#7684 + $k[$j++] = _2F; //#7687 + if (!$_.dontdraw) { //#7687 + bwipp_renlinear(); //#7687 + } //#7687 + $_ = Object.getPrototypeOf($_); //#7689 + $_ = Object.getPrototypeOf($_); //#7691 +} //bwipp_interleaved2of5 function bwipp_itf14() { - $_ = Object.create($_); //#7582 - $_.dontdraw = false; //#7585 - $_.includetext = false; //#7586 - $_.includecheckintext = true; //#7587 - $_.textfont = "OCR-B"; //#7588 - $_.textsize = 10; //#7589 - $_.textxoffset = 0; //#7590 - $_.textyoffset = 3; //#7591 - $_.height = 0.5; //#7592 - $_.showborder = true; //#7593 - $_.borderwidth = 4; //#7594 - $_.borderleft = 15; //#7595 - $_.borderright = 15; //#7596 - $k[$j++] = $_; //#7598 - bwipp_processoptions(); //#7598 - $_.options = $k[--$j]; //#7598 - $_.barcode = $k[--$j]; //#7599 - $_.text = $_.barcode; //#7602 - var _3 = $_.barcode; //#7603 - $k[$j++] = $s(_3.length); //#7604 - $k[$j++] = 0; //#7604 - $forall(_3, function() { //#7604 - var _5 = $k[--$j]; //#7604 - $k[$j++] = _5; //#7604 - if (_5 != 32) { //#7604 - var _6 = $k[--$j]; //#7604 - var _7 = $k[--$j]; //#7604 - var _8 = $k[--$j]; //#7604 - $put(_8, _7, _6); //#7604 - $k[$j++] = _8; //#7604 - $k[$j++] = $f(_7 + 1); //#7604 - } else { //#7604 - $j--; //#7604 - } //#7604 - }); //#7604 - var _9 = $k[--$j]; //#7605 - $_.barcode = $geti($k[--$j], 0, _9); //#7605 - $_.hasspace = $_.text.length != $_.barcode.length; //#7606 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7611 - $k[$j++] = 'bwipp.itf14badLength#7610'; //#7610 - $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7610 - bwipp_raiseerror(); //#7610 - } //#7610 - var _G = $_.barcode; //#7612 - for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7616 - var _J = $get(_G, _H); //#7616 - if ((_J < 48) || (_J > 57)) { //#7615 - $k[$j++] = 'bwipp.itf14badCharacter#7614'; //#7614 - $k[$j++] = "ITF-14 must contain only digits"; //#7614 - bwipp_raiseerror(); //#7614 - } //#7614 - } //#7614 - $_.checksum = 0; //#7619 - for (var _K = 0; _K <= 12; _K += 1) { //#7623 - $_.i = _K; //#7621 - $k[$j++] = 'checksum'; //#7622 - $k[$j++] = $_.checksum; //#7622 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7622 - if (($_.i % 2) == 0) { //#7622 - var _Q = $k[--$j]; //#7622 - $k[$j++] = _Q * 3; //#7622 - } //#7622 - var _R = $k[--$j]; //#7622 - var _S = $k[--$j]; //#7622 - $_[$k[--$j]] = $f(_S + _R); //#7622 - } //#7622 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7624 - if ($_.barcode.length == 14) { //#7638 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7628 - $k[$j++] = 'bwipp.itf14badCheckDigit#7627'; //#7627 - $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7627 - bwipp_raiseerror(); //#7627 - } //#7627 - } else { //#7638 - var _Z = $s(14); //#7630 - $puti(_Z, 0, $_.barcode); //#7631 - $put(_Z, 13, $_.checksum + 48); //#7632 - $_.barcode = _Z; //#7633 - var _e = $_.hasspace ? 2 : 1; //#7634 - var _f = $s($_.text.length + _e); //#7634 - $puti(_f, _f.length - 2, " "); //#7635 - $put(_f, _f.length - 1, $_.checksum + 48); //#7636 - $puti(_f, 0, $_.text); //#7637 - $_.text = _f; //#7638 - } //#7638 - var _i = $_.options; //#7642 - $put(_i, "dontdraw", true); //#7642 - $put($_.options, "showborder", $_.showborder); //#7643 - $put($_.options, "borderwidth", $_.borderwidth); //#7644 - $put($_.options, "borderleft", $_.borderleft); //#7645 - $put($_.options, "borderright", $_.borderright); //#7646 - var _r = $_.options; //#7647 - $put(_r, "height", $_.height); //#7647 - $put($_.options, "textyoffset", $_.textyoffset); //#7648 - $k[$j++] = 'args'; //#7649 - $k[$j++] = $_.barcode; //#7649 - $k[$j++] = $_.options; //#7649 - bwipp_interleaved2of5(); //#7649 - var _x = $k[--$j]; //#7649 - $_[$k[--$j]] = _x; //#7649 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7651 - $put($_.args, "textxalign", "center"); //#7652 - $put($_.args, "opt", $_.options); //#7653 - $k[$j++] = $_.args; //#7656 - if (!$_.dontdraw) { //#7656 - bwipp_renlinear(); //#7656 - } //#7656 - $_ = Object.getPrototypeOf($_); //#7658 -} - + $_ = Object.create($_); //#7720 + $_.dontdraw = false; //#7723 + $_.includetext = false; //#7724 + $_.includecheckintext = true; //#7725 + $_.textfont = "OCR-B"; //#7726 + $_.textsize = 10; //#7727 + $_.textxoffset = 0; //#7728 + $_.textyoffset = 3.5; //#7729 + $_.height = 0.5; //#7730 + $_.showborder = true; //#7731 + $_.borderwidth = 4; //#7732 + $_.borderleft = 10; //#7733 + $_.borderright = 10; //#7734 + $_.bordertop = -0.55; //#7735 + $_.borderbottom = -0.55; //#7736 + $k[$j++] = $_; //#7738 + bwipp_processoptions(); //#7738 + $_.options = $k[--$j]; //#7738 + $_.barcode = $k[--$j]; //#7739 + $_.text = $_.barcode; //#7742 + var _3 = $_.barcode; //#7743 + $k[$j++] = $s(_3.length); //#7744 + $k[$j++] = 0; //#7744 + $forall(_3, function() { //#7744 + var _5 = $k[--$j]; //#7744 + $k[$j++] = _5; //#7744 + if (_5 != 32) { //#7744 + var _6 = $k[--$j]; //#7744 + var _7 = $k[--$j]; //#7744 + var _8 = $k[--$j]; //#7744 + $put(_8, _7, _6); //#7744 + $k[$j++] = _8; //#7744 + $k[$j++] = $f(_7 + 1); //#7744 + } else { //#7744 + $j--; //#7744 + } //#7744 + }); //#7744 + var _9 = $k[--$j]; //#7745 + $_.barcode = $geti($k[--$j], 0, _9); //#7745 + $_.hasspace = $_.text.length != $_.barcode.length; //#7746 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7751 + $k[$j++] = 'bwipp.itf14badLength#7750'; //#7750 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7750 + bwipp_raiseerror(); //#7750 + } //#7750 + var _G = $_.barcode; //#7752 + for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7756 + var _J = $get(_G, _H); //#7756 + if ((_J < 48) || (_J > 57)) { //#7755 + $k[$j++] = 'bwipp.itf14badCharacter#7754'; //#7754 + $k[$j++] = "ITF-14 must contain only digits"; //#7754 + bwipp_raiseerror(); //#7754 + } //#7754 + } //#7754 + $_.checksum = 0; //#7759 + for (var _K = 0; _K <= 12; _K += 1) { //#7763 + $_.i = _K; //#7761 + $k[$j++] = 'checksum'; //#7762 + $k[$j++] = $_.checksum; //#7762 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7762 + if (($_.i % 2) == 0) { //#7762 + var _Q = $k[--$j]; //#7762 + $k[$j++] = _Q * 3; //#7762 + } //#7762 + var _R = $k[--$j]; //#7762 + var _S = $k[--$j]; //#7762 + $_[$k[--$j]] = $f(_S + _R); //#7762 + } //#7762 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7764 + if ($_.barcode.length == 14) { //#7778 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7768 + $k[$j++] = 'bwipp.itf14badCheckDigit#7767'; //#7767 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7767 + bwipp_raiseerror(); //#7767 + } //#7767 + } else { //#7778 + var _Z = $s(14); //#7770 + $puti(_Z, 0, $_.barcode); //#7771 + $put(_Z, 13, $_.checksum + 48); //#7772 + $_.barcode = _Z; //#7773 + var _e = $_.hasspace ? 2 : 1; //#7774 + var _f = $s($_.text.length + _e); //#7774 + $puti(_f, _f.length - 2, " "); //#7775 + $put(_f, _f.length - 1, $_.checksum + 48); //#7776 + $puti(_f, 0, $_.text); //#7777 + $_.text = _f; //#7778 + } //#7778 + var _i = $_.options; //#7782 + $put(_i, "dontdraw", true); //#7782 + $put($_.options, "showborder", $_.showborder); //#7783 + $put($_.options, "borderwidth", $_.borderwidth); //#7784 + $put($_.options, "borderleft", $_.borderleft); //#7785 + $put($_.options, "borderright", $_.borderright); //#7786 + var _r = $_.options; //#7787 + $put(_r, "bordertop", $_.bordertop); //#7787 + $put($_.options, "borderbottom", $_.borderbottom); //#7788 + $put($_.options, "height", $_.height); //#7789 + $put($_.options, "textyoffset", $_.textyoffset); //#7790 + $k[$j++] = 'args'; //#7791 + $k[$j++] = $_.barcode; //#7791 + $k[$j++] = $_.options; //#7791 + bwipp_interleaved2of5(); //#7791 + var _11 = $k[--$j]; //#7791 + $_[$k[--$j]] = _11; //#7791 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7793 + $put($_.args, "textxalign", "center"); //#7794 + $put($_.args, "opt", $_.options); //#7795 + $k[$j++] = $_.args; //#7798 + if (!$_.dontdraw) { //#7798 + bwipp_renlinear(); //#7798 + } //#7798 + $_ = Object.getPrototypeOf($_); //#7800 +} //bwipp_itf14 function bwipp_identcode() { - $_ = Object.create($_); //#7687 - $_.dontdraw = false; //#7690 - $_.includetext = false; //#7691 - $_.textfont = "OCR-B"; //#7692 - $_.textsize = 10; //#7693 - $_.textxoffset = 0; //#7694 - $_.textyoffset = -8; //#7695 - $_.height = 1; //#7696 - $k[$j++] = $_; //#7698 - bwipp_processoptions(); //#7698 - $_.options = $k[--$j]; //#7698 - $_.barcode = $k[--$j]; //#7699 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7704 - $k[$j++] = 'bwipp.identcodeBadLength#7703'; //#7703 - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7703 - bwipp_raiseerror(); //#7703 - } //#7703 - $forall($_.barcode, function() { //#7709 - var _5 = $k[--$j]; //#7706 - if ((_5 < 48) || (_5 > 57)) { //#7708 - $k[$j++] = 'bwipp.identcodeBadCharacter#7707'; //#7707 - $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7707 - bwipp_raiseerror(); //#7707 - } //#7707 - }); //#7707 - $_.checksum = 0; //#7712 - for (var _6 = 0; _6 <= 10; _6 += 1) { //#7716 - $_.i = _6; //#7714 - $k[$j++] = 'checksum'; //#7715 - $k[$j++] = $_.checksum; //#7715 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7715 - if (($_.i % 2) == 0) { //#7715 - var _C = $k[--$j]; //#7715 - $k[$j++] = _C * 4; //#7715 - } else { //#7715 - var _D = $k[--$j]; //#7715 - $k[$j++] = _D * 9; //#7715 - } //#7715 - var _E = $k[--$j]; //#7715 - var _F = $k[--$j]; //#7715 - $_[$k[--$j]] = $f(_F + _E); //#7715 - } //#7715 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7717 - if ($_.barcode.length == 12) { //#7722 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7721 - $k[$j++] = 'bwipp.identcodeBadCheckDigit#7720'; //#7720 - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7720 - bwipp_raiseerror(); //#7720 - } //#7720 - } //#7720 - var _M = $s(12); //#7723 - $puti(_M, 0, $_.barcode); //#7724 - $put(_M, 11, $_.checksum + 48); //#7725 - $_.barcode = _M; //#7726 - $_.text = $strcpy($s(16), " . . "); //#7729 - $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7730 - $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7731 - $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7732 - $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7733 - $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7734 - $put($_.options, "dontdraw", true); //#7737 - $put($_.options, "includecheck", false); //#7738 - var _i = $_.barcode; //#7739 - $k[$j++] = 'args'; //#7739 - $k[$j++] = _i; //#7739 - $k[$j++] = $_.options; //#7739 - bwipp_interleaved2of5(); //#7739 - var _k = $k[--$j]; //#7739 - $_[$k[--$j]] = _k; //#7739 - var _r = $_.textsize; //#7741 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7741 - $put($_.args, "textxalign", "center"); //#7742 - $put($_.args, "opt", $_.options); //#7743 - $k[$j++] = $_.args; //#7746 - if (!$_.dontdraw) { //#7746 - bwipp_renlinear(); //#7746 - } //#7746 - $_ = Object.getPrototypeOf($_); //#7748 -} - + $_ = Object.create($_); //#7829 + $_.dontdraw = false; //#7832 + $_.includetext = false; //#7833 + $_.textfont = "OCR-B"; //#7834 + $_.textsize = 10; //#7835 + $_.textxoffset = 0; //#7836 + $_.textyoffset = -8; //#7837 + $_.height = 1; //#7838 + $k[$j++] = $_; //#7840 + bwipp_processoptions(); //#7840 + $_.options = $k[--$j]; //#7840 + $_.barcode = $k[--$j]; //#7841 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7846 + $k[$j++] = 'bwipp.identcodeBadLength#7845'; //#7845 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7845 + bwipp_raiseerror(); //#7845 + } //#7845 + $forall($_.barcode, function() { //#7851 + var _5 = $k[--$j]; //#7848 + if ((_5 < 48) || (_5 > 57)) { //#7850 + $k[$j++] = 'bwipp.identcodeBadCharacter#7849'; //#7849 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7849 + bwipp_raiseerror(); //#7849 + } //#7849 + }); //#7849 + $_.checksum = 0; //#7854 + for (var _6 = 0; _6 <= 10; _6 += 1) { //#7858 + $_.i = _6; //#7856 + $k[$j++] = 'checksum'; //#7857 + $k[$j++] = $_.checksum; //#7857 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7857 + if (($_.i % 2) == 0) { //#7857 + var _C = $k[--$j]; //#7857 + $k[$j++] = _C * 4; //#7857 + } else { //#7857 + var _D = $k[--$j]; //#7857 + $k[$j++] = _D * 9; //#7857 + } //#7857 + var _E = $k[--$j]; //#7857 + var _F = $k[--$j]; //#7857 + $_[$k[--$j]] = $f(_F + _E); //#7857 + } //#7857 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7859 + if ($_.barcode.length == 12) { //#7864 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7863 + $k[$j++] = 'bwipp.identcodeBadCheckDigit#7862'; //#7862 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7862 + bwipp_raiseerror(); //#7862 + } //#7862 + } //#7862 + var _M = $s(12); //#7865 + $puti(_M, 0, $_.barcode); //#7866 + $put(_M, 11, $_.checksum + 48); //#7867 + $_.barcode = _M; //#7868 + $_.text = $strcpy($s(16), " . . "); //#7871 + $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7872 + $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7873 + $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7874 + $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7875 + $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7876 + $put($_.options, "dontdraw", true); //#7879 + $put($_.options, "includecheck", false); //#7880 + var _i = $_.barcode; //#7881 + $k[$j++] = 'args'; //#7881 + $k[$j++] = _i; //#7881 + $k[$j++] = $_.options; //#7881 + bwipp_interleaved2of5(); //#7881 + var _k = $k[--$j]; //#7881 + $_[$k[--$j]] = _k; //#7881 + var _r = $_.textsize; //#7883 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7883 + $put($_.args, "textxalign", "center"); //#7884 + $put($_.args, "opt", $_.options); //#7885 + $k[$j++] = $_.args; //#7888 + if (!$_.dontdraw) { //#7888 + bwipp_renlinear(); //#7888 + } //#7888 + $_ = Object.getPrototypeOf($_); //#7890 +} //bwipp_identcode function bwipp_leitcode() { - $_ = Object.create($_); //#7777 - $_.dontdraw = false; //#7780 - $_.includetext = false; //#7781 - $_.textfont = "OCR-B"; //#7782 - $_.textsize = 10; //#7783 - $_.textxoffset = 0; //#7784 - $_.textyoffset = -8; //#7785 - $_.height = 1; //#7786 - $k[$j++] = $_; //#7788 - bwipp_processoptions(); //#7788 - $_.options = $k[--$j]; //#7788 - $_.barcode = $k[--$j]; //#7789 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7794 - $k[$j++] = 'bwipp.leitcodeBadLength#7793'; //#7793 - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7793 - bwipp_raiseerror(); //#7793 - } //#7793 - $forall($_.barcode, function() { //#7799 - var _5 = $k[--$j]; //#7796 - if ((_5 < 48) || (_5 > 57)) { //#7798 - $k[$j++] = 'bwipp.leitcodeBadCharacter#7797'; //#7797 - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7797 - bwipp_raiseerror(); //#7797 - } //#7797 - }); //#7797 - $_.checksum = 0; //#7802 - for (var _6 = 0; _6 <= 12; _6 += 1) { //#7806 - $_.i = _6; //#7804 - $k[$j++] = 'checksum'; //#7805 - $k[$j++] = $_.checksum; //#7805 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7805 - if (($_.i % 2) == 0) { //#7805 - var _C = $k[--$j]; //#7805 - $k[$j++] = _C * 4; //#7805 - } else { //#7805 - var _D = $k[--$j]; //#7805 - $k[$j++] = _D * 9; //#7805 - } //#7805 - var _E = $k[--$j]; //#7805 - var _F = $k[--$j]; //#7805 - $_[$k[--$j]] = $f(_F + _E); //#7805 - } //#7805 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7807 - if ($_.barcode.length == 14) { //#7812 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7811 - $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7810'; //#7810 - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7810 - bwipp_raiseerror(); //#7810 - } //#7810 - } //#7810 - var _M = $s(14); //#7813 - $puti(_M, 0, $_.barcode); //#7814 - $put(_M, 13, $_.checksum + 48); //#7815 - $_.barcode = _M; //#7816 - $_.text = $strcpy($s(18), " . . . "); //#7819 - $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7820 - $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7821 - $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7822 - $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7823 - $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7824 - $put($_.options, "dontdraw", true); //#7827 - $put($_.options, "includecheck", false); //#7828 - var _i = $_.barcode; //#7829 - $k[$j++] = 'args'; //#7829 - $k[$j++] = _i; //#7829 - $k[$j++] = $_.options; //#7829 - bwipp_interleaved2of5(); //#7829 - var _k = $k[--$j]; //#7829 - $_[$k[--$j]] = _k; //#7829 - var _r = $_.textsize; //#7831 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7831 - $put($_.args, "textxalign", "center"); //#7832 - $put($_.args, "opt", $_.options); //#7833 - $k[$j++] = $_.args; //#7836 - if (!$_.dontdraw) { //#7836 - bwipp_renlinear(); //#7836 - } //#7836 - $_ = Object.getPrototypeOf($_); //#7838 -} - + $_ = Object.create($_); //#7919 + $_.dontdraw = false; //#7922 + $_.includetext = false; //#7923 + $_.textfont = "OCR-B"; //#7924 + $_.textsize = 10; //#7925 + $_.textxoffset = 0; //#7926 + $_.textyoffset = -8; //#7927 + $_.height = 1; //#7928 + $k[$j++] = $_; //#7930 + bwipp_processoptions(); //#7930 + $_.options = $k[--$j]; //#7930 + $_.barcode = $k[--$j]; //#7931 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7936 + $k[$j++] = 'bwipp.leitcodeBadLength#7935'; //#7935 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7935 + bwipp_raiseerror(); //#7935 + } //#7935 + $forall($_.barcode, function() { //#7941 + var _5 = $k[--$j]; //#7938 + if ((_5 < 48) || (_5 > 57)) { //#7940 + $k[$j++] = 'bwipp.leitcodeBadCharacter#7939'; //#7939 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7939 + bwipp_raiseerror(); //#7939 + } //#7939 + }); //#7939 + $_.checksum = 0; //#7944 + for (var _6 = 0; _6 <= 12; _6 += 1) { //#7948 + $_.i = _6; //#7946 + $k[$j++] = 'checksum'; //#7947 + $k[$j++] = $_.checksum; //#7947 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7947 + if (($_.i % 2) == 0) { //#7947 + var _C = $k[--$j]; //#7947 + $k[$j++] = _C * 4; //#7947 + } else { //#7947 + var _D = $k[--$j]; //#7947 + $k[$j++] = _D * 9; //#7947 + } //#7947 + var _E = $k[--$j]; //#7947 + var _F = $k[--$j]; //#7947 + $_[$k[--$j]] = $f(_F + _E); //#7947 + } //#7947 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7949 + if ($_.barcode.length == 14) { //#7954 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7953 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7952'; //#7952 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7952 + bwipp_raiseerror(); //#7952 + } //#7952 + } //#7952 + var _M = $s(14); //#7955 + $puti(_M, 0, $_.barcode); //#7956 + $put(_M, 13, $_.checksum + 48); //#7957 + $_.barcode = _M; //#7958 + $_.text = $strcpy($s(18), " . . . "); //#7961 + $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7962 + $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7963 + $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7964 + $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7965 + $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7966 + $put($_.options, "dontdraw", true); //#7969 + $put($_.options, "includecheck", false); //#7970 + var _i = $_.barcode; //#7971 + $k[$j++] = 'args'; //#7971 + $k[$j++] = _i; //#7971 + $k[$j++] = $_.options; //#7971 + bwipp_interleaved2of5(); //#7971 + var _k = $k[--$j]; //#7971 + $_[$k[--$j]] = _k; //#7971 + var _r = $_.textsize; //#7973 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7973 + $put($_.args, "textxalign", "center"); //#7974 + $put($_.args, "opt", $_.options); //#7975 + $k[$j++] = $_.args; //#7978 + if (!$_.dontdraw) { //#7978 + bwipp_renlinear(); //#7978 + } //#7978 + $_ = Object.getPrototypeOf($_); //#7980 +} //bwipp_leitcode function bwipp_databaromni() { - $_ = Object.create($_); //#7869 - $_.dontdraw = false; //#7872 - $_.height = 33 / 72; //#7873 - $_.linkage = false; //#7874 - $_.format = "omni"; //#7875 - $_.barxmult = 33; //#7876 - $k[$j++] = $_; //#7878 - bwipp_processoptions(); //#7878 - $_.options = $k[--$j]; //#7878 - $_.barcode = $k[--$j]; //#7879 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#7883 - $k[$j++] = 'bwipp.databaromniBadAI#7882'; //#7882 - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#7882 - bwipp_raiseerror(); //#7882 - } //#7882 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#7886 - $k[$j++] = 'bwipp.databaromniBadLength#7885'; //#7885 - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#7885 - bwipp_raiseerror(); //#7885 - } //#7885 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#7887 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#7891 - var _B = $get(_8, _9); //#7891 - if ((_B < 48) || (_B > 57)) { //#7890 - $k[$j++] = 'bwipp.databaromniBadCharacter#7889'; //#7889 - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#7889 - bwipp_raiseerror(); //#7889 - } //#7889 - } //#7889 - if ($_.barxmult < 33) { //#7895 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#7894'; //#7894 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#7894 - bwipp_raiseerror(); //#7894 - } //#7894 - if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#7899 - $k[$j++] = 'bwipp.databaromniBadFormat#7898'; //#7898 - $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#7898 - bwipp_raiseerror(); //#7898 - } //#7898 - if ($eq($_.format, "truncated")) { //#7901 - $_.height = 13 / 72; //#7901 - } //#7901 - bwipp_loadctx(bwipp_databaromni) //#7903 - $_.checksum = 0; //#7906 - for (var _I = 0; _I <= 12; _I += 1) { //#7910 - $_.i = _I; //#7908 - $k[$j++] = 'checksum'; //#7909 - $k[$j++] = $_.checksum; //#7909 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#7909 - if (($_.i % 2) == 0) { //#7909 - var _O = $k[--$j]; //#7909 - $k[$j++] = _O * 3; //#7909 - } //#7909 - var _P = $k[--$j]; //#7909 - var _Q = $k[--$j]; //#7909 - $_[$k[--$j]] = $f(_Q + _P); //#7909 - } //#7909 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7911 - if ($_.barcode.length == 18) { //#7916 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#7915 - $k[$j++] = 'bwipp.databaromniBadCheckDigit#7914'; //#7914 - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#7914 - bwipp_raiseerror(); //#7914 - } //#7914 - } //#7914 - var _X = $s(18); //#7917 - $puti(_X, 0, $_.barcode); //#7918 - $put(_X, 17, $_.checksum + 48); //#7919 - $_.barcode = _X; //#7920 - $_.txt = $a($_.barcode.length); //#7923 - for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#7927 - $_.i = _e; //#7925 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#7926 - } //#7926 + $_ = Object.create($_); //#8011 + $_.dontdraw = false; //#8014 + $_.height = 33 / 72; //#8015 + $_.linkage = false; //#8016 + $_.format = "omni"; //#8017 + $_.barxmult = 33; //#8018 + $k[$j++] = $_; //#8020 + bwipp_processoptions(); //#8020 + $_.options = $k[--$j]; //#8020 + $_.barcode = $k[--$j]; //#8021 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8025 + $k[$j++] = 'bwipp.databaromniBadLength#8024'; //#8024 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#8024 + bwipp_raiseerror(); //#8024 + } //#8024 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8028 + $k[$j++] = 'bwipp.databaromniBadAI#8027'; //#8027 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#8027 + bwipp_raiseerror(); //#8027 + } //#8027 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8029 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8033 + var _B = $get(_8, _9); //#8033 + if ((_B < 48) || (_B > 57)) { //#8032 + $k[$j++] = 'bwipp.databaromniBadCharacter#8031'; //#8031 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#8031 + bwipp_raiseerror(); //#8031 + } //#8031 + } //#8031 + if ($_.barxmult < 33) { //#8037 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8036'; //#8036 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#8036 + bwipp_raiseerror(); //#8036 + } //#8036 + if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#8041 + $k[$j++] = 'bwipp.databaromniBadFormat#8040'; //#8040 + $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#8040 + bwipp_raiseerror(); //#8040 + } //#8040 + if ($eq($_.format, "truncated")) { //#8043 + $_.height = 13 / 72; //#8043 + } //#8043 + bwipp_loadctx(bwipp_databaromni) //#8045 + $_.checksum = 0; //#8048 + for (var _I = 0; _I <= 12; _I += 1) { //#8052 + $_.i = _I; //#8050 + $k[$j++] = 'checksum'; //#8051 + $k[$j++] = $_.checksum; //#8051 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8051 + if (($_.i % 2) == 0) { //#8051 + var _O = $k[--$j]; //#8051 + $k[$j++] = _O * 3; //#8051 + } //#8051 + var _P = $k[--$j]; //#8051 + var _Q = $k[--$j]; //#8051 + $_[$k[--$j]] = $f(_Q + _P); //#8051 + } //#8051 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8053 + if ($_.barcode.length == 18) { //#8058 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8057 + $k[$j++] = 'bwipp.databaromniBadCheckDigit#8056'; //#8056 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#8056 + bwipp_raiseerror(); //#8056 + } //#8056 + } //#8056 + var _X = $s(18); //#8059 + $puti(_X, 0, $_.barcode); //#8060 + $put(_X, 17, $_.checksum + 48); //#8061 + $_.barcode = _X; //#8062 + $_.txt = $a($_.barcode.length); //#8065 + for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#8069 + $_.i = _e; //#8067 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8068 + } //#8068 $_.ncr = function() { - var _l = $k[--$j]; //#7930 - var _m = $k[--$j]; //#7930 - var _n = $f(_m - _l); //#7930 - if (_l < $f(_m - _l)) { //#7930 - var _ = _n; //#7930 - _n = _l; //#7930 - _l = _; //#7930 - } //#7930 - $k[$j++] = _n; //#7937 - $k[$j++] = 1; //#7937 - $k[$j++] = 1; //#7937 - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#7937 - var _q = $k[--$j]; //#7933 - var _r = $k[--$j]; //#7934 - var _s = $k[--$j]; //#7934 - $k[$j++] = _s; //#7936 - $k[$j++] = _r; //#7936 - $k[$j++] = _q * _p; //#7936 - if ($le(_r, _s)) { //#7936 - var _t = $k[--$j]; //#7935 - var _u = $k[--$j]; //#7935 - $k[$j++] = $f(_u + 1); //#7935 - $k[$j++] = ~~(_t / _u); //#7935 - } //#7935 - } //#7935 - for (;;) { //#7941 - var _v = $k[--$j]; //#7939 - var _w = $k[--$j]; //#7939 - var _x = $k[--$j]; //#7939 - $k[$j++] = _x; //#7939 - $k[$j++] = _w; //#7939 - $k[$j++] = _v; //#7939 - if ($gt(_w, _x)) { //#7939 - break; //#7939 - } //#7939 - var _y = $k[--$j]; //#7940 - var _z = $k[--$j]; //#7940 - $k[$j++] = $f(_z + 1); //#7940 - $k[$j++] = ~~(_y / _z); //#7940 - } //#7940 - var _10 = $k[--$j]; //#7942 - var _11 = $k[--$j]; //#7942 - $k[$j++] = _10; //#7942 - $k[$j++] = _11; //#7942 - $j--; //#7942 - var _12 = $k[--$j]; //#7942 - var _13 = $k[--$j]; //#7942 - $k[$j++] = _12; //#7942 - $k[$j++] = _13; //#7942 - $j--; //#7942 - }; //#7942 + var _l = $k[--$j]; //#8072 + var _m = $k[--$j]; //#8072 + var _n = $f(_m - _l); //#8072 + if (_l < $f(_m - _l)) { //#8072 + var _ = _n; //#8072 + _n = _l; //#8072 + _l = _; //#8072 + } //#8072 + $k[$j++] = _n; //#8079 + $k[$j++] = 1; //#8079 + $k[$j++] = 1; //#8079 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#8079 + var _q = $k[--$j]; //#8075 + var _r = $k[--$j]; //#8076 + var _s = $k[--$j]; //#8076 + $k[$j++] = _s; //#8078 + $k[$j++] = _r; //#8078 + $k[$j++] = _q * _p; //#8078 + if ($le(_r, _s)) { //#8078 + var _t = $k[--$j]; //#8077 + var _u = $k[--$j]; //#8077 + $k[$j++] = $f(_u + 1); //#8077 + $k[$j++] = ~~(_t / _u); //#8077 + } //#8077 + } //#8077 + for (;;) { //#8083 + var _v = $k[--$j]; //#8081 + var _w = $k[--$j]; //#8081 + var _x = $k[--$j]; //#8081 + $k[$j++] = _x; //#8081 + $k[$j++] = _w; //#8081 + $k[$j++] = _v; //#8081 + if ($gt(_w, _x)) { //#8081 + break; //#8081 + } //#8081 + var _y = $k[--$j]; //#8082 + var _z = $k[--$j]; //#8082 + $k[$j++] = $f(_z + 1); //#8082 + $k[$j++] = ~~(_y / _z); //#8082 + } //#8082 + var _10 = $k[--$j]; //#8084 + var _11 = $k[--$j]; //#8084 + $k[$j++] = _10; //#8084 + $k[$j++] = _11; //#8084 + $j--; //#8084 + var _12 = $k[--$j]; //#8084 + var _13 = $k[--$j]; //#8084 + $k[$j++] = _12; //#8084 + $k[$j++] = _13; //#8084 + $j--; //#8084 + }; //#8084 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#7946 - $_.el = $k[--$j]; //#7947 - $_.mw = $k[--$j]; //#7948 - $_.nm = $k[--$j]; //#7949 - $_.val = $k[--$j]; //#7950 - $_.out = $a($_.el); //#7951 - $_.mask = 0; //#7952 - for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#7979 - $_.bar = _1D; //#7954 - $_.ew = 1; //#7955 - var _1F = $_.bar; //#7956 - $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#7956 - for (;;) { //#7975 - $k[$j++] = 'sval'; //#7957 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#7957 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7957 - $_.ncr(); //#7957 - var _1K = $k[--$j]; //#7957 - $_[$k[--$j]] = _1K; //#7957 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#7960 - $k[$j++] = 'sval'; //#7959 - $k[$j++] = $_.sval; //#7959 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#7959 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7959 - $_.ncr(); //#7959 - var _1Z = $k[--$j]; //#7959 - var _1a = $k[--$j]; //#7959 - $_[$k[--$j]] = $f(_1a - _1Z); //#7959 - } //#7959 - if ($f($_.el - $_.bar) > 2) { //#7969 - $_.lval = 0; //#7962 - for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#7966 - $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#7964 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#7964 - $_.ncr(); //#7964 - $_.lval = $f($k[--$j] + $_.lval); //#7965 - } //#7965 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#7967 - } else { //#7969 - if ($f($_.nm - $_.ew) > $_.mw) { //#7969 - $_.sval = $f($_.sval - 1); //#7969 - } //#7969 - } //#7969 - $_.val = $f($_.val - $_.sval); //#7971 - if ($_.val < 0) { //#7972 - break; //#7972 - } //#7972 - $_.ew = $_.ew + 1; //#7973 - var _24 = $_.bar; //#7974 - $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#7974 - } //#7974 - $_.val = $f($_.val + $_.sval); //#7976 - $_.nm = $f($_.nm - $_.ew); //#7977 - $put($_.out, $_.bar, $_.ew); //#7978 - } //#7978 - $put($_.out, $f($_.el - 1), $_.nm); //#7980 - $k[$j++] = $_.out; //#7981 - }; //#7981 - $k[$j++] = Infinity; //#7986 - var _2H = $_.linkage ? 1 : 0; //#7985 - var _2J = $geti($_.barcode, 4, 13); //#7986 - $k[$j++] = _2H; //#7986 - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#7986 - $k[$j++] = $f($get(_2J, _2K) - 48); //#7986 - } //#7986 - $_.binval = $a(); //#7986 - for (var _2O = 0; _2O <= 12; _2O += 1) { //#7993 - $_.i = _2O; //#7990 - var _2P = $_.binval; //#7991 - var _2Q = $_.i; //#7991 - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#7991 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#7992 - } //#7992 - $_.right = $get($_.binval, 13) % 4537077; //#7994 - var _2c = $_.binval; //#7995 - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#7995 - $_.left = 0; //#7997 - $_.i = true; //#7998 - for (var _2e = 0; _2e <= 13; _2e += 1) { //#8008 - $_.j = _2e; //#8000 - var _2h = $get($_.binval, $_.j); //#8001 - $k[$j++] = _2h; //#8007 - if ((_2h == 0) && $_.i) { //#8006 - $j--; //#8003 - } else { //#8006 - $_.i = false; //#8005 - $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8006 - } //#8006 - } //#8006 - $_.d1 = ~~($_.left / 1597); //#8010 - $_.d2 = $_.left % 1597; //#8011 - $_.d3 = ~~($_.right / 1597); //#8012 - $_.d4 = $_.right % 1597; //#8013 - if (!bwipp_databaromni.__8030__) { //#8030 - $_ = Object.create($_); //#8030 - $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8022 - $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8029 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8029 - bwipp_databaromni.__8030__ = 1; //#8029 - $_ = Object.getPrototypeOf($_); //#8029 - } //#8029 - $_.i = 0; //#8032 - for (;;) { //#8042 - if ($_.d1 <= $get($_.tab164, $_.i)) { //#8040 - var _2z = $geti($_.tab164, $_.i + 1, 7); //#8034 - for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8034 - $k[$j++] = $get(_2z, _30); //#8034 - } //#8034 - $_.d1te = $k[--$j]; //#8035 - $_.d1to = $k[--$j]; //#8035 - $_.d1mwe = $k[--$j]; //#8036 - $_.d1mwo = $k[--$j]; //#8036 - $_.d1ele = $k[--$j]; //#8037 - $_.d1elo = $k[--$j]; //#8037 - $_.d1gs = $k[--$j]; //#8038 - break; //#8039 - } //#8039 - $_.i = $_.i + 8; //#8041 - } //#8041 - $_.i = 0; //#8044 - for (;;) { //#8054 - if ($_.d2 <= $get($_.tab154, $_.i)) { //#8052 - var _3H = $geti($_.tab154, $_.i + 1, 7); //#8046 - for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8046 - $k[$j++] = $get(_3H, _3I); //#8046 - } //#8046 - $_.d2te = $k[--$j]; //#8047 - $_.d2to = $k[--$j]; //#8047 - $_.d2mwe = $k[--$j]; //#8048 - $_.d2mwo = $k[--$j]; //#8048 - $_.d2ele = $k[--$j]; //#8049 - $_.d2elo = $k[--$j]; //#8049 - $_.d2gs = $k[--$j]; //#8050 - break; //#8051 - } //#8051 - $_.i = $_.i + 8; //#8053 - } //#8053 - $_.i = 0; //#8056 - for (;;) { //#8066 - if ($_.d3 <= $get($_.tab164, $_.i)) { //#8064 - var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8058 - for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8058 - $k[$j++] = $get(_3Z, _3a); //#8058 - } //#8058 - $_.d3te = $k[--$j]; //#8059 - $_.d3to = $k[--$j]; //#8059 - $_.d3mwe = $k[--$j]; //#8060 - $_.d3mwo = $k[--$j]; //#8060 - $_.d3ele = $k[--$j]; //#8061 - $_.d3elo = $k[--$j]; //#8061 - $_.d3gs = $k[--$j]; //#8062 - break; //#8063 - } //#8063 - $_.i = $_.i + 8; //#8065 - } //#8065 - $_.i = 0; //#8068 - for (;;) { //#8078 - if ($_.d4 <= $get($_.tab154, $_.i)) { //#8076 - var _3r = $geti($_.tab154, $_.i + 1, 7); //#8070 - for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8070 - $k[$j++] = $get(_3r, _3s); //#8070 - } //#8070 - $_.d4te = $k[--$j]; //#8071 - $_.d4to = $k[--$j]; //#8071 - $_.d4mwe = $k[--$j]; //#8072 - $_.d4mwo = $k[--$j]; //#8072 - $_.d4ele = $k[--$j]; //#8073 - $_.d4elo = $k[--$j]; //#8073 - $_.d4gs = $k[--$j]; //#8074 - break; //#8075 - } //#8075 - $_.i = $_.i + 8; //#8077 - } //#8077 - $k[$j++] = 'd1wo'; //#8080 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8080 - $k[$j++] = $_.d1elo; //#8080 - $k[$j++] = $_.d1mwo; //#8080 - $k[$j++] = 4; //#8080 - $k[$j++] = false; //#8080 - $_.getRSSwidths(); //#8080 - var _48 = $k[--$j]; //#8080 - $_[$k[--$j]] = _48; //#8080 - $k[$j++] = 'd1we'; //#8081 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8081 - $k[$j++] = $_.d1ele; //#8081 - $k[$j++] = $_.d1mwe; //#8081 - $k[$j++] = 4; //#8081 - $k[$j++] = true; //#8081 - $_.getRSSwidths(); //#8081 - var _4F = $k[--$j]; //#8081 - $_[$k[--$j]] = _4F; //#8081 - $k[$j++] = 'd2wo'; //#8082 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8082 - $k[$j++] = $_.d2elo; //#8082 - $k[$j++] = $_.d2mwo; //#8082 - $k[$j++] = 4; //#8082 - $k[$j++] = true; //#8082 - $_.getRSSwidths(); //#8082 - var _4M = $k[--$j]; //#8082 - $_[$k[--$j]] = _4M; //#8082 - $k[$j++] = 'd2we'; //#8083 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8083 - $k[$j++] = $_.d2ele; //#8083 - $k[$j++] = $_.d2mwe; //#8083 - $k[$j++] = 4; //#8083 - $k[$j++] = false; //#8083 - $_.getRSSwidths(); //#8083 - var _4T = $k[--$j]; //#8083 - $_[$k[--$j]] = _4T; //#8083 - $k[$j++] = 'd3wo'; //#8084 - $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8084 - $k[$j++] = $_.d3elo; //#8084 - $k[$j++] = $_.d3mwo; //#8084 - $k[$j++] = 4; //#8084 - $k[$j++] = false; //#8084 - $_.getRSSwidths(); //#8084 - var _4a = $k[--$j]; //#8084 - $_[$k[--$j]] = _4a; //#8084 - $k[$j++] = 'd3we'; //#8085 - $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8085 - $k[$j++] = $_.d3ele; //#8085 - $k[$j++] = $_.d3mwe; //#8085 - $k[$j++] = 4; //#8085 - $k[$j++] = true; //#8085 - $_.getRSSwidths(); //#8085 - var _4h = $k[--$j]; //#8085 - $_[$k[--$j]] = _4h; //#8085 - $k[$j++] = 'd4wo'; //#8086 - $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8086 - $k[$j++] = $_.d4elo; //#8086 - $k[$j++] = $_.d4mwo; //#8086 - $k[$j++] = 4; //#8086 - $k[$j++] = true; //#8086 - $_.getRSSwidths(); //#8086 - var _4o = $k[--$j]; //#8086 - $_[$k[--$j]] = _4o; //#8086 - $k[$j++] = 'd4we'; //#8087 - $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8087 - $k[$j++] = $_.d4ele; //#8087 - $k[$j++] = $_.d4mwe; //#8087 - $k[$j++] = 4; //#8087 - $k[$j++] = false; //#8087 - $_.getRSSwidths(); //#8087 - var _4v = $k[--$j]; //#8087 - $_[$k[--$j]] = _4v; //#8087 - $_.d1w = $a(8); //#8089 - for (var _4y = 0; _4y <= 3; _4y += 1) { //#8094 - $_.i = _4y; //#8091 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8092 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8093 - } //#8093 - $_.d2w = $a(8); //#8096 - for (var _5A = 0; _5A <= 3; _5A += 1) { //#8101 - $_.i = _5A; //#8098 - $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8099 - $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8100 - } //#8100 - $_.d3w = $a(8); //#8103 - for (var _5M = 0; _5M <= 3; _5M += 1) { //#8108 - $_.i = _5M; //#8105 - $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8106 - $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8107 - } //#8107 - $_.d4w = $a(8); //#8110 - for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8115 - $_.i = _5Y; //#8112 - $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8113 - $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8114 - } //#8114 - $k[$j++] = Infinity; //#8121 - var _5j = $_.d1w; //#8118 - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8118 - $k[$j++] = $get(_5j, _5k); //#8118 - } //#8118 - var _5n = $_.d2w; //#8119 - for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8119 - $k[$j++] = $get(_5n, _5o); //#8119 - } //#8119 - var _5r = $_.d3w; //#8120 - for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8120 - $k[$j++] = $get(_5r, _5s); //#8120 - } //#8120 - var _5v = $_.d4w; //#8121 - for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8121 - $k[$j++] = $get(_5v, _5w); //#8121 - } //#8121 - $_.widths = $a(); //#8121 - if (!bwipp_databaromni.__8137__) { //#8137 - $_ = Object.create($_); //#8137 - $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8130 - $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8136 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8136 - bwipp_databaromni.__8137__ = 1; //#8136 - $_ = Object.getPrototypeOf($_); //#8136 - } //#8136 - $_.checksum = 0; //#8139 - for (var _63 = 0; _63 <= 31; _63 += 1) { //#8143 - $_.i = _63; //#8141 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8142 - } //#8142 - $_.checksum = $_.checksum % 79; //#8144 - if ($_.checksum >= 8) { //#8145 - $_.checksum = $f($_.checksum + 1); //#8145 - } //#8145 - if ($_.checksum >= 72) { //#8146 - $_.checksum = $f($_.checksum + 1); //#8146 - } //#8146 - $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8147 - $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8148 - $_.checkrt = $a(5); //#8149 - for (var _6N = 0; _6N <= 4; _6N += 1) { //#8153 - $_.i = _6N; //#8151 - $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8152 - } //#8152 - if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8275 - $k[$j++] = Infinity; //#8160 - var _6V = $_.d1w; //#8159 - $k[$j++] = 1; //#8159 - for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8159 - $k[$j++] = $get(_6V, _6W); //#8159 - } //#8159 - var _6Z = $_.checklt; //#8159 - for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8159 - $k[$j++] = $get(_6Z, _6a); //#8159 - } //#8159 - var _6d = $_.d2w; //#8159 - for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8159 - $k[$j++] = $get(_6d, _6e); //#8159 - } //#8159 - var _6h = $_.d4w; //#8160 - for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8160 - $k[$j++] = $get(_6h, _6i); //#8160 - } //#8160 - var _6l = $_.checkrt; //#8160 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8160 - $k[$j++] = $get(_6l, _6m); //#8160 - } //#8160 - var _6p = $_.d3w; //#8160 - for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8160 - $k[$j++] = $get(_6p, _6q); //#8160 - } //#8160 - $k[$j++] = 1; //#8160 - $k[$j++] = 1; //#8160 - $_.sbs = $a(); //#8160 - $k[$j++] = Infinity; //#8170 - var _6u = $_.sbs; //#8165 - $k[$j++] = Infinity; //#8166 - for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8166 - $k[$j++] = $_.height; //#8166 - } //#8166 - var _6z = $a(); //#8166 - $k[$j++] = Infinity; //#8167 - for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8167 - $k[$j++] = 0; //#8167 - } //#8167 - var _73 = $a(); //#8167 - $k[$j++] = 'ren'; //#8170 - $k[$j++] = bwipp_renlinear; //#8170 - $k[$j++] = 'sbs'; //#8170 - $k[$j++] = _6u; //#8170 - $k[$j++] = 'bhs'; //#8170 - $k[$j++] = _6z; //#8170 - $k[$j++] = 'bbs'; //#8170 - $k[$j++] = _73; //#8170 - $k[$j++] = 'txt'; //#8170 - $k[$j++] = $_.txt; //#8170 - $k[$j++] = 'textxalign'; //#8170 - $k[$j++] = "center"; //#8170 - $k[$j++] = 'opt'; //#8170 - $k[$j++] = $_.options; //#8170 - var _76 = $d(); //#8170 - $k[$j++] = _76; //#8173 - if (!$_.dontdraw) { //#8173 - bwipp_renlinear(); //#8173 - } //#8173 - } else { //#8275 - $k[$j++] = Infinity; //#8177 - var _78 = $_.d1w; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8177 - $k[$j++] = $get(_78, _79); //#8177 - } //#8177 - var _7C = $_.checklt; //#8177 - for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8177 - $k[$j++] = $get(_7C, _7D); //#8177 - } //#8177 - var _7G = $_.d2w; //#8177 - for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8177 - $k[$j++] = $get(_7G, _7H); //#8177 - } //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 0; //#8177 - $_.top = $a(); //#8177 - $k[$j++] = Infinity; //#8178 - var _7L = $_.d4w; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8178 - $k[$j++] = $get(_7L, _7M); //#8178 - } //#8178 - var _7P = $_.checkrt; //#8178 - for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8178 - $k[$j++] = $get(_7P, _7Q); //#8178 - } //#8178 - var _7T = $_.d3w; //#8178 - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8178 - $k[$j++] = $get(_7T, _7U); //#8178 - } //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 0; //#8178 - $_.bot = $a(); //#8178 - for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8183 - $_.i = _7Y; //#8180 - for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8181 - $k[$j++] = 0; //#8181 - } //#8181 - for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8182 - $k[$j++] = 1; //#8182 - } //#8182 - } //#8182 - $astore($a(50)); //#8184 - $_.top = $k[--$j]; //#8184 - for (var _7l = 0; _7l <= 24; _7l += 2) { //#8189 - $_.i = _7l; //#8186 - for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8187 - $k[$j++] = 1; //#8187 - } //#8187 - for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8188 - $k[$j++] = 0; //#8188 + $_.oe = $k[--$j]; //#8088 + $_.el = $k[--$j]; //#8089 + $_.mw = $k[--$j]; //#8090 + $_.nm = $k[--$j]; //#8091 + $_.val = $k[--$j]; //#8092 + $_.out = $a($_.el); //#8093 + $_.mask = 0; //#8094 + for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#8121 + $_.bar = _1D; //#8096 + $_.ew = 1; //#8097 + var _1F = $_.bar; //#8098 + $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#8098 + for (;;) { //#8117 + $k[$j++] = 'sval'; //#8099 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8099 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8099 + $_.ncr(); //#8099 + var _1K = $k[--$j]; //#8099 + $_[$k[--$j]] = _1K; //#8099 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8102 + $k[$j++] = 'sval'; //#8101 + $k[$j++] = $_.sval; //#8101 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8101 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8101 + $_.ncr(); //#8101 + var _1Z = $k[--$j]; //#8101 + var _1a = $k[--$j]; //#8101 + $_[$k[--$j]] = $f(_1a - _1Z); //#8101 + } //#8101 + if ($f($_.el - $_.bar) > 2) { //#8111 + $_.lval = 0; //#8104 + for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#8108 + $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#8106 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8106 + $_.ncr(); //#8106 + $_.lval = $f($k[--$j] + $_.lval); //#8107 + } //#8107 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8109 + } else { //#8111 + if ($f($_.nm - $_.ew) > $_.mw) { //#8111 + $_.sval = $f($_.sval - 1); //#8111 + } //#8111 + } //#8111 + $_.val = $f($_.val - $_.sval); //#8113 + if ($_.val < 0) { //#8114 + break; //#8114 + } //#8114 + $_.ew = $_.ew + 1; //#8115 + var _24 = $_.bar; //#8116 + $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#8116 + } //#8116 + $_.val = $f($_.val + $_.sval); //#8118 + $_.nm = $f($_.nm - $_.ew); //#8119 + $put($_.out, $_.bar, $_.ew); //#8120 + } //#8120 + $put($_.out, $f($_.el - 1), $_.nm); //#8122 + $k[$j++] = $_.out; //#8123 + }; //#8123 + $k[$j++] = Infinity; //#8126 + var _2H = $_.linkage ? 1 : 0; //#8127 + var _2J = $geti($_.barcode, 4, 13); //#8128 + $k[$j++] = _2H; //#8128 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#8128 + $k[$j++] = $f($get(_2J, _2K) - 48); //#8128 + } //#8128 + $_.binval = $a(); //#8128 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#8135 + $_.i = _2O; //#8132 + var _2P = $_.binval; //#8133 + var _2Q = $_.i; //#8133 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#8133 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#8134 + } //#8134 + $_.right = $get($_.binval, 13) % 4537077; //#8136 + var _2c = $_.binval; //#8137 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#8137 + $_.left = 0; //#8139 + $_.i = true; //#8140 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#8150 + $_.j = _2e; //#8142 + var _2h = $get($_.binval, $_.j); //#8143 + $k[$j++] = _2h; //#8149 + if ((_2h == 0) && $_.i) { //#8148 + $j--; //#8145 + } else { //#8148 + $_.i = false; //#8147 + $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8148 + } //#8148 + } //#8148 + $_.d1 = ~~($_.left / 1597); //#8152 + $_.d2 = $_.left % 1597; //#8153 + $_.d3 = ~~($_.right / 1597); //#8154 + $_.d4 = $_.right % 1597; //#8155 + if (!bwipp_databaromni.__8172__) { //#8172 + $_ = Object.create($_); //#8172 + $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8164 + $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8171 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8171 + bwipp_databaromni.__8172__ = 1; //#8171 + $_ = Object.getPrototypeOf($_); //#8171 + } //#8171 + $_.i = 0; //#8174 + for (;;) { //#8184 + if ($_.d1 <= $get($_.tab164, $_.i)) { //#8182 + var _2z = $geti($_.tab164, $_.i + 1, 7); //#8176 + for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8176 + $k[$j++] = $get(_2z, _30); //#8176 + } //#8176 + $_.d1te = $k[--$j]; //#8177 + $_.d1to = $k[--$j]; //#8177 + $_.d1mwe = $k[--$j]; //#8178 + $_.d1mwo = $k[--$j]; //#8178 + $_.d1ele = $k[--$j]; //#8179 + $_.d1elo = $k[--$j]; //#8179 + $_.d1gs = $k[--$j]; //#8180 + break; //#8181 + } //#8181 + $_.i = $_.i + 8; //#8183 + } //#8183 + $_.i = 0; //#8186 + for (;;) { //#8196 + if ($_.d2 <= $get($_.tab154, $_.i)) { //#8194 + var _3H = $geti($_.tab154, $_.i + 1, 7); //#8188 + for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8188 + $k[$j++] = $get(_3H, _3I); //#8188 } //#8188 - } //#8188 - $astore($a(50)); //#8190 - $_.bot = $k[--$j]; //#8190 - if ($eq($_.format, "stacked")) { //#8212 - $_.sep = $a(50); //#8194 - $put($_.sep, 0, 0); //#8195 - for (var _81 = 1; _81 <= 49; _81 += 1) { //#8203 - $_.i = _81; //#8197 - if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8199 - } else { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8201 - } //#8201 - } //#8201 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8204 - $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8205 - $k[$j++] = Infinity; //#8209 - for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8207 - $aload($_.top); //#8207 - } //#8207 - $aload($_.sep); //#8208 - for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8209 - $aload($_.bot); //#8209 - } //#8209 - $_.pixs = $a(); //#8209 - $_.pixy = ~~($_.pixs.length / 50); //#8211 - } //#8211 - if ($eq($_.format, "stackedomni")) { //#8262 - $k[$j++] = Infinity; //#8216 - $forall($_.top, function() { //#8216 - var _8X = $k[--$j]; //#8216 - $k[$j++] = $f(1 - _8X); //#8216 - }); //#8216 - $_.sep1 = $a(); //#8216 - $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8217 - $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8218 - for (var _8d = 18; _8d <= 30; _8d += 1) { //#8231 - $_.i = _8d; //#8220 - if ($get($_.top, $_.i) == 0) { //#8228 - if ($get($_.top, $_.i - 1) == 1) { //#8225 - $k[$j++] = 1; //#8223 - } else { //#8225 - var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8225 - $k[$j++] = _8n; //#8225 - } //#8225 - } else { //#8228 - $k[$j++] = 0; //#8228 - } //#8228 - $put($_.sep1, $_.i, $k[--$j]); //#8230 - } //#8230 - $k[$j++] = Infinity; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 1; //#8232 - } //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $_.sep2 = $a(); //#8232 - $k[$j++] = Infinity; //#8233 - $forall($_.bot, function() { //#8233 - var _8v = $k[--$j]; //#8233 - $k[$j++] = $f(1 - _8v); //#8233 - }); //#8233 - $_.sep3 = $a(); //#8233 - $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8234 - $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8235 - for (var _91 = 19; _91 <= 31; _91 += 1) { //#8248 - $_.i = _91; //#8237 - if ($get($_.bot, $_.i) == 0) { //#8245 - if ($get($_.bot, $_.i - 1) == 1) { //#8242 - $k[$j++] = 1; //#8240 - } else { //#8242 - var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8242 - $k[$j++] = _9B; //#8242 - } //#8242 - } else { //#8245 - $k[$j++] = 0; //#8245 - } //#8245 - $put($_.sep3, $_.i, $k[--$j]); //#8247 - } //#8247 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8249 - $k[$j++] = true; //#8250 - for (var _9G = 0; _9G <= 12; _9G += 1) { //#8250 - var _9L = $k[--$j]; //#8250 - $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8250 - } //#8250 - if ($k[--$j]) { //#8253 - $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8252 - } //#8252 - $k[$j++] = Infinity; //#8259 - for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8255 - $aload($_.top); //#8255 - } //#8255 - $aload($_.sep1); //#8256 - $aload($_.sep2); //#8257 - $aload($_.sep3); //#8258 - for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8259 - $aload($_.bot); //#8259 - } //#8259 - $_.pixs = $a(); //#8259 - $_.pixy = ~~($_.pixs.length / 50); //#8261 - } //#8261 + $_.d2te = $k[--$j]; //#8189 + $_.d2to = $k[--$j]; //#8189 + $_.d2mwe = $k[--$j]; //#8190 + $_.d2mwo = $k[--$j]; //#8190 + $_.d2ele = $k[--$j]; //#8191 + $_.d2elo = $k[--$j]; //#8191 + $_.d2gs = $k[--$j]; //#8192 + break; //#8193 + } //#8193 + $_.i = $_.i + 8; //#8195 + } //#8195 + $_.i = 0; //#8198 + for (;;) { //#8208 + if ($_.d3 <= $get($_.tab164, $_.i)) { //#8206 + var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8200 + for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8200 + $k[$j++] = $get(_3Z, _3a); //#8200 + } //#8200 + $_.d3te = $k[--$j]; //#8201 + $_.d3to = $k[--$j]; //#8201 + $_.d3mwe = $k[--$j]; //#8202 + $_.d3mwo = $k[--$j]; //#8202 + $_.d3ele = $k[--$j]; //#8203 + $_.d3elo = $k[--$j]; //#8203 + $_.d3gs = $k[--$j]; //#8204 + break; //#8205 + } //#8205 + $_.i = $_.i + 8; //#8207 + } //#8207 + $_.i = 0; //#8210 + for (;;) { //#8220 + if ($_.d4 <= $get($_.tab154, $_.i)) { //#8218 + var _3r = $geti($_.tab154, $_.i + 1, 7); //#8212 + for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8212 + $k[$j++] = $get(_3r, _3s); //#8212 + } //#8212 + $_.d4te = $k[--$j]; //#8213 + $_.d4to = $k[--$j]; //#8213 + $_.d4mwe = $k[--$j]; //#8214 + $_.d4mwo = $k[--$j]; //#8214 + $_.d4ele = $k[--$j]; //#8215 + $_.d4elo = $k[--$j]; //#8215 + $_.d4gs = $k[--$j]; //#8216 + break; //#8217 + } //#8217 + $_.i = $_.i + 8; //#8219 + } //#8219 + $k[$j++] = 'd1wo'; //#8222 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8222 + $k[$j++] = $_.d1elo; //#8222 + $k[$j++] = $_.d1mwo; //#8222 + $k[$j++] = 4; //#8222 + $k[$j++] = false; //#8222 + $_.getRSSwidths(); //#8222 + var _48 = $k[--$j]; //#8222 + $_[$k[--$j]] = _48; //#8222 + $k[$j++] = 'd1we'; //#8223 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8223 + $k[$j++] = $_.d1ele; //#8223 + $k[$j++] = $_.d1mwe; //#8223 + $k[$j++] = 4; //#8223 + $k[$j++] = true; //#8223 + $_.getRSSwidths(); //#8223 + var _4F = $k[--$j]; //#8223 + $_[$k[--$j]] = _4F; //#8223 + $k[$j++] = 'd2wo'; //#8224 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8224 + $k[$j++] = $_.d2elo; //#8224 + $k[$j++] = $_.d2mwo; //#8224 + $k[$j++] = 4; //#8224 + $k[$j++] = true; //#8224 + $_.getRSSwidths(); //#8224 + var _4M = $k[--$j]; //#8224 + $_[$k[--$j]] = _4M; //#8224 + $k[$j++] = 'd2we'; //#8225 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8225 + $k[$j++] = $_.d2ele; //#8225 + $k[$j++] = $_.d2mwe; //#8225 + $k[$j++] = 4; //#8225 + $k[$j++] = false; //#8225 + $_.getRSSwidths(); //#8225 + var _4T = $k[--$j]; //#8225 + $_[$k[--$j]] = _4T; //#8225 + $k[$j++] = 'd3wo'; //#8226 + $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8226 + $k[$j++] = $_.d3elo; //#8226 + $k[$j++] = $_.d3mwo; //#8226 + $k[$j++] = 4; //#8226 + $k[$j++] = false; //#8226 + $_.getRSSwidths(); //#8226 + var _4a = $k[--$j]; //#8226 + $_[$k[--$j]] = _4a; //#8226 + $k[$j++] = 'd3we'; //#8227 + $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8227 + $k[$j++] = $_.d3ele; //#8227 + $k[$j++] = $_.d3mwe; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $_.getRSSwidths(); //#8227 + var _4h = $k[--$j]; //#8227 + $_[$k[--$j]] = _4h; //#8227 + $k[$j++] = 'd4wo'; //#8228 + $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8228 + $k[$j++] = $_.d4elo; //#8228 + $k[$j++] = $_.d4mwo; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = true; //#8228 + $_.getRSSwidths(); //#8228 + var _4o = $k[--$j]; //#8228 + $_[$k[--$j]] = _4o; //#8228 + $k[$j++] = 'd4we'; //#8229 + $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8229 + $k[$j++] = $_.d4ele; //#8229 + $k[$j++] = $_.d4mwe; //#8229 + $k[$j++] = 4; //#8229 + $k[$j++] = false; //#8229 + $_.getRSSwidths(); //#8229 + var _4v = $k[--$j]; //#8229 + $_[$k[--$j]] = _4v; //#8229 + $_.d1w = $a(8); //#8231 + for (var _4y = 0; _4y <= 3; _4y += 1) { //#8236 + $_.i = _4y; //#8233 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8234 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8235 + } //#8235 + $_.d2w = $a(8); //#8238 + for (var _5A = 0; _5A <= 3; _5A += 1) { //#8243 + $_.i = _5A; //#8240 + $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8241 + $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8242 + } //#8242 + $_.d3w = $a(8); //#8245 + for (var _5M = 0; _5M <= 3; _5M += 1) { //#8250 + $_.i = _5M; //#8247 + $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8248 + $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8249 + } //#8249 + $_.d4w = $a(8); //#8252 + for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8257 + $_.i = _5Y; //#8254 + $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8255 + $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8256 + } //#8256 + $k[$j++] = Infinity; //#8259 + var _5j = $_.d1w; //#8260 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8260 + $k[$j++] = $get(_5j, _5k); //#8260 + } //#8260 + var _5n = $_.d2w; //#8261 + for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8261 + $k[$j++] = $get(_5n, _5o); //#8261 + } //#8261 + var _5r = $_.d3w; //#8262 + for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8262 + $k[$j++] = $get(_5r, _5s); //#8262 + } //#8262 + var _5v = $_.d4w; //#8263 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8263 + $k[$j++] = $get(_5v, _5w); //#8263 + } //#8263 + $_.widths = $a(); //#8263 + if (!bwipp_databaromni.__8279__) { //#8279 + $_ = Object.create($_); //#8279 + $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8272 + $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8278 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8278 + bwipp_databaromni.__8279__ = 1; //#8278 + $_ = Object.getPrototypeOf($_); //#8278 + } //#8278 + $_.checksum = 0; //#8281 + for (var _63 = 0; _63 <= 31; _63 += 1) { //#8285 + $_.i = _63; //#8283 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8284 + } //#8284 + $_.checksum = $_.checksum % 79; //#8286 + if ($_.checksum >= 8) { //#8287 + $_.checksum = $f($_.checksum + 1); //#8287 + } //#8287 + if ($_.checksum >= 72) { //#8288 + $_.checksum = $f($_.checksum + 1); //#8288 + } //#8288 + $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8289 + $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8290 + $_.checkrt = $a(5); //#8291 + for (var _6N = 0; _6N <= 4; _6N += 1) { //#8295 + $_.i = _6N; //#8293 + $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8294 + } //#8294 + if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8423 + $k[$j++] = Infinity; //#8300 + var _6V = $_.d1w; //#8301 + $k[$j++] = 1; //#8301 + for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8301 + $k[$j++] = $get(_6V, _6W); //#8301 + } //#8301 + var _6Z = $_.checklt; //#8301 + for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8301 + $k[$j++] = $get(_6Z, _6a); //#8301 + } //#8301 + var _6d = $_.d2w; //#8301 + for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8301 + $k[$j++] = $get(_6d, _6e); //#8301 + } //#8301 + var _6h = $_.d4w; //#8302 + for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8302 + $k[$j++] = $get(_6h, _6i); //#8302 + } //#8302 + var _6l = $_.checkrt; //#8302 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8302 + $k[$j++] = $get(_6l, _6m); //#8302 + } //#8302 + var _6p = $_.d3w; //#8302 + for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8302 + $k[$j++] = $get(_6p, _6q); //#8302 + } //#8302 + $k[$j++] = 1; //#8302 + $k[$j++] = 1; //#8302 + $_.sbs = $a(); //#8302 + $k[$j++] = Infinity; //#8305 + var _6u = $_.sbs; //#8307 + $k[$j++] = Infinity; //#8308 + for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8308 + $k[$j++] = $_.height; //#8308 + } //#8308 + var _6z = $a(); //#8308 + $k[$j++] = Infinity; //#8309 + for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8309 + $k[$j++] = 0; //#8309 + } //#8309 + var _73 = $a(); //#8309 + $k[$j++] = 'ren'; //#8314 + $k[$j++] = bwipp_renlinear; //#8314 + $k[$j++] = 'sbs'; //#8314 + $k[$j++] = _6u; //#8314 + $k[$j++] = 'bhs'; //#8314 + $k[$j++] = _6z; //#8314 + $k[$j++] = 'bbs'; //#8314 + $k[$j++] = _73; //#8314 + $k[$j++] = 'txt'; //#8314 + $k[$j++] = $_.txt; //#8314 + $k[$j++] = 'textxalign'; //#8314 + $k[$j++] = "center"; //#8314 + $k[$j++] = 'borderleft'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'borderright'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'opt'; //#8314 + $k[$j++] = $_.options; //#8314 + var _76 = $d(); //#8314 + $k[$j++] = _76; //#8317 + if (!$_.dontdraw) { //#8317 + bwipp_renlinear(); //#8317 + } //#8317 + } else { //#8423 + $k[$j++] = Infinity; //#8321 + var _78 = $_.d1w; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8321 + $k[$j++] = $get(_78, _79); //#8321 + } //#8321 + var _7C = $_.checklt; //#8321 + for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8321 + $k[$j++] = $get(_7C, _7D); //#8321 + } //#8321 + var _7G = $_.d2w; //#8321 + for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8321 + $k[$j++] = $get(_7G, _7H); //#8321 + } //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 0; //#8321 + $_.top = $a(); //#8321 + $k[$j++] = Infinity; //#8322 + var _7L = $_.d4w; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8322 + $k[$j++] = $get(_7L, _7M); //#8322 + } //#8322 + var _7P = $_.checkrt; //#8322 + for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8322 + $k[$j++] = $get(_7P, _7Q); //#8322 + } //#8322 + var _7T = $_.d3w; //#8322 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8322 + $k[$j++] = $get(_7T, _7U); //#8322 + } //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 0; //#8322 + $_.bot = $a(); //#8322 + for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8327 + $_.i = _7Y; //#8324 + for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8325 + $k[$j++] = 0; //#8325 + } //#8325 + for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8326 + $k[$j++] = 1; //#8326 + } //#8326 + } //#8326 + $astore($a(50)); //#8328 + $_.top = $k[--$j]; //#8328 + for (var _7l = 0; _7l <= 24; _7l += 2) { //#8333 + $_.i = _7l; //#8330 + for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8331 + $k[$j++] = 1; //#8331 + } //#8331 + for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8332 + $k[$j++] = 0; //#8332 + } //#8332 + } //#8332 + $astore($a(50)); //#8334 + $_.bot = $k[--$j]; //#8334 + if ($eq($_.format, "stacked")) { //#8356 + $_.sep = $a(50); //#8338 + $put($_.sep, 0, 0); //#8339 + for (var _81 = 1; _81 <= 49; _81 += 1) { //#8347 + $_.i = _81; //#8341 + if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8343 + } else { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8345 + } //#8345 + } //#8345 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8348 + $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8349 + $k[$j++] = Infinity; //#8350 + for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8351 + $aload($_.top); //#8351 + } //#8351 + $aload($_.sep); //#8352 + for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8353 + $aload($_.bot); //#8353 + } //#8353 + $_.pixs = $a(); //#8353 + $_.pixy = ~~($_.pixs.length / 50); //#8355 + } //#8355 + if ($eq($_.format, "stackedomni")) { //#8406 + $k[$j++] = Infinity; //#8360 + $forall($_.top, function() { //#8360 + var _8X = $k[--$j]; //#8360 + $k[$j++] = $f(1 - _8X); //#8360 + }); //#8360 + $_.sep1 = $a(); //#8360 + $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8361 + $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8362 + for (var _8d = 18; _8d <= 30; _8d += 1) { //#8375 + $_.i = _8d; //#8364 + if ($get($_.top, $_.i) == 0) { //#8372 + if ($get($_.top, $_.i - 1) == 1) { //#8369 + $k[$j++] = 1; //#8367 + } else { //#8369 + var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8369 + $k[$j++] = _8n; //#8369 + } //#8369 + } else { //#8372 + $k[$j++] = 0; //#8372 + } //#8372 + $put($_.sep1, $_.i, $k[--$j]); //#8374 + } //#8374 + $k[$j++] = Infinity; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 1; //#8376 + } //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $_.sep2 = $a(); //#8376 + $k[$j++] = Infinity; //#8377 + $forall($_.bot, function() { //#8377 + var _8v = $k[--$j]; //#8377 + $k[$j++] = $f(1 - _8v); //#8377 + }); //#8377 + $_.sep3 = $a(); //#8377 + $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8378 + $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8379 + for (var _91 = 19; _91 <= 31; _91 += 1) { //#8392 + $_.i = _91; //#8381 + if ($get($_.bot, $_.i) == 0) { //#8389 + if ($get($_.bot, $_.i - 1) == 1) { //#8386 + $k[$j++] = 1; //#8384 + } else { //#8386 + var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8386 + $k[$j++] = _9B; //#8386 + } //#8386 + } else { //#8389 + $k[$j++] = 0; //#8389 + } //#8389 + $put($_.sep3, $_.i, $k[--$j]); //#8391 + } //#8391 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8393 + $k[$j++] = true; //#8394 + for (var _9G = 0; _9G <= 12; _9G += 1) { //#8394 + var _9L = $k[--$j]; //#8394 + $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8394 + } //#8394 + if ($k[--$j]) { //#8397 + $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8396 + } //#8396 + $k[$j++] = Infinity; //#8398 + for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8399 + $aload($_.top); //#8399 + } //#8399 + $aload($_.sep1); //#8400 + $aload($_.sep2); //#8401 + $aload($_.sep3); //#8402 + for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8403 + $aload($_.bot); //#8403 + } //#8403 + $_.pixs = $a(); //#8403 + $_.pixy = ~~($_.pixs.length / 50); //#8405 + } //#8405 var _9g = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -11352,2056 +11610,2073 @@ function bwipp_databaromni() { ["pixy", $_.pixy], ["height", $_.pixy / 72], ["width", 50 / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#8272 - $k[$j++] = _9g; //#8275 - if (!$_.dontdraw) { //#8275 - bwipp_renmatrix(); //#8275 - } //#8275 - } //#8275 - $_ = Object.getPrototypeOf($_); //#8279 - $_ = Object.getPrototypeOf($_); //#8281 -} - + ]); //#8420 + $k[$j++] = _9g; //#8423 + if (!$_.dontdraw) { //#8423 + bwipp_renmatrix(); //#8423 + } //#8423 + } //#8423 + $_ = Object.getPrototypeOf($_); //#8427 + $_ = Object.getPrototypeOf($_); //#8429 +} //bwipp_databaromni function bwipp_databarstacked() { - $_ = Object.create($_); //#8310 - $_.dontdraw = false; //#8313 - $k[$j++] = $_; //#8315 - bwipp_processoptions(); //#8315 - $_.options = $k[--$j]; //#8315 - $_.barcode = $k[--$j]; //#8316 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8321 - $k[$j++] = 'bwipp.databarstackedBadAI#8320'; //#8320 - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8320 - bwipp_raiseerror(); //#8320 - } //#8320 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8324 - $k[$j++] = 'bwipp.databarstackedBadLength#8323'; //#8323 - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8323 - bwipp_raiseerror(); //#8323 - } //#8323 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8325 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8329 - var _B = $get(_8, _9); //#8329 - if ((_B < 48) || (_B > 57)) { //#8328 - $k[$j++] = 'bwipp.databarstackedBadCharacter#8327'; //#8327 - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8327 - bwipp_raiseerror(); //#8327 - } //#8327 - } //#8327 - $_.checksum = 0; //#8332 - for (var _C = 0; _C <= 12; _C += 1) { //#8336 - $_.i = _C; //#8334 - $k[$j++] = 'checksum'; //#8335 - $k[$j++] = $_.checksum; //#8335 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8335 - if (($_.i % 2) == 0) { //#8335 - var _I = $k[--$j]; //#8335 - $k[$j++] = _I * 3; //#8335 - } //#8335 - var _J = $k[--$j]; //#8335 - var _K = $k[--$j]; //#8335 - $_[$k[--$j]] = $f(_K + _J); //#8335 - } //#8335 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8337 - if ($_.barcode.length == 18) { //#8342 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8341 - $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8340'; //#8340 - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8340 - bwipp_raiseerror(); //#8340 - } //#8340 - } //#8340 - var _R = $s(18); //#8343 - $puti(_R, 0, $_.barcode); //#8344 - $put(_R, 17, $_.checksum + 48); //#8345 - $_.barcode = _R; //#8346 - $put($_.options, "dontdraw", true); //#8349 - $put($_.options, "format", "stacked"); //#8350 - $k[$j++] = 'args'; //#8352 - $k[$j++] = $_.barcode; //#8352 - $k[$j++] = $_.options; //#8352 - bwipp_databaromni(); //#8352 - var _Y = $k[--$j]; //#8352 - $_[$k[--$j]] = _Y; //#8352 - $put($_.args, "opt", $_.options); //#8354 - $k[$j++] = $_.args; //#8357 - if (!$_.dontdraw) { //#8357 - bwipp_renmatrix(); //#8357 - } //#8357 - $_ = Object.getPrototypeOf($_); //#8359 -} - -function bwipp_databarstackedomni() { - $_ = Object.create($_); //#8388 - $_.dontdraw = false; //#8391 - $k[$j++] = $_; //#8393 - bwipp_processoptions(); //#8393 - $_.options = $k[--$j]; //#8393 - $_.barcode = $k[--$j]; //#8394 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8399 - $k[$j++] = 'bwipp.databarstackedomniBadAI#8398'; //#8398 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8398 - bwipp_raiseerror(); //#8398 - } //#8398 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8402 - $k[$j++] = 'bwipp.databarstackedomniBadLength#8401'; //#8401 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8401 - bwipp_raiseerror(); //#8401 - } //#8401 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8403 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8407 - var _B = $get(_8, _9); //#8407 - if ((_B < 48) || (_B > 57)) { //#8406 - $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8405'; //#8405 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8405 - bwipp_raiseerror(); //#8405 - } //#8405 - } //#8405 - $_.checksum = 0; //#8410 - for (var _C = 0; _C <= 12; _C += 1) { //#8414 - $_.i = _C; //#8412 - $k[$j++] = 'checksum'; //#8413 - $k[$j++] = $_.checksum; //#8413 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8413 - if (($_.i % 2) == 0) { //#8413 - var _I = $k[--$j]; //#8413 - $k[$j++] = _I * 3; //#8413 - } //#8413 - var _J = $k[--$j]; //#8413 - var _K = $k[--$j]; //#8413 - $_[$k[--$j]] = $f(_K + _J); //#8413 - } //#8413 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8415 - if ($_.barcode.length == 18) { //#8420 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8419 - $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8418'; //#8418 - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8418 - bwipp_raiseerror(); //#8418 - } //#8418 - } //#8418 - var _R = $s(18); //#8421 - $puti(_R, 0, $_.barcode); //#8422 - $put(_R, 17, $_.checksum + 48); //#8423 - $_.barcode = _R; //#8424 - $put($_.options, "dontdraw", true); //#8427 - $put($_.options, "format", "stackedomni"); //#8428 - $k[$j++] = 'args'; //#8430 - $k[$j++] = $_.barcode; //#8430 - $k[$j++] = $_.options; //#8430 - bwipp_databaromni(); //#8430 - var _Y = $k[--$j]; //#8430 - $_[$k[--$j]] = _Y; //#8430 - $put($_.args, "opt", $_.options); //#8432 - $k[$j++] = $_.args; //#8435 - if (!$_.dontdraw) { //#8435 - bwipp_renmatrix(); //#8435 - } //#8435 - $_ = Object.getPrototypeOf($_); //#8437 -} - -function bwipp_databartruncated() { - $_ = Object.create($_); //#8466 - $_.dontdraw = false; //#8469 - $k[$j++] = $_; //#8471 - bwipp_processoptions(); //#8471 - $_.options = $k[--$j]; //#8471 - $_.barcode = $k[--$j]; //#8472 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8477 - $k[$j++] = 'bwipp.databartruncatedBadAI#8476'; //#8476 - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8476 - bwipp_raiseerror(); //#8476 - } //#8476 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8480 - $k[$j++] = 'bwipp.databartruncatedBadLength#8479'; //#8479 - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8479 - bwipp_raiseerror(); //#8479 - } //#8479 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8481 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8485 - var _B = $get(_8, _9); //#8485 - if ((_B < 48) || (_B > 57)) { //#8484 - $k[$j++] = 'bwipp.databartruncatedBadCharacter#8483'; //#8483 - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8483 - bwipp_raiseerror(); //#8483 + $_ = Object.create($_); //#8458 + $_.dontdraw = false; //#8461 + $k[$j++] = $_; //#8463 + bwipp_processoptions(); //#8463 + $_.options = $k[--$j]; //#8463 + $_.barcode = $k[--$j]; //#8464 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8469 + $k[$j++] = 'bwipp.databarstackedBadLength#8468'; //#8468 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8468 + bwipp_raiseerror(); //#8468 + } //#8468 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8472 + $k[$j++] = 'bwipp.databarstackedBadAI#8471'; //#8471 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8471 + bwipp_raiseerror(); //#8471 + } //#8471 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8473 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8477 + var _B = $get(_8, _9); //#8477 + if ((_B < 48) || (_B > 57)) { //#8476 + $k[$j++] = 'bwipp.databarstackedBadCharacter#8475'; //#8475 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8475 + bwipp_raiseerror(); //#8475 + } //#8475 + } //#8475 + $_.checksum = 0; //#8480 + for (var _C = 0; _C <= 12; _C += 1) { //#8484 + $_.i = _C; //#8482 + $k[$j++] = 'checksum'; //#8483 + $k[$j++] = $_.checksum; //#8483 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8483 + if (($_.i % 2) == 0) { //#8483 + var _I = $k[--$j]; //#8483 + $k[$j++] = _I * 3; //#8483 } //#8483 + var _J = $k[--$j]; //#8483 + var _K = $k[--$j]; //#8483 + $_[$k[--$j]] = $f(_K + _J); //#8483 } //#8483 - $_.checksum = 0; //#8488 - for (var _C = 0; _C <= 12; _C += 1) { //#8492 - $_.i = _C; //#8490 - $k[$j++] = 'checksum'; //#8491 - $k[$j++] = $_.checksum; //#8491 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8491 - if (($_.i % 2) == 0) { //#8491 - var _I = $k[--$j]; //#8491 - $k[$j++] = _I * 3; //#8491 - } //#8491 - var _J = $k[--$j]; //#8491 - var _K = $k[--$j]; //#8491 - $_[$k[--$j]] = $f(_K + _J); //#8491 - } //#8491 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8493 - if ($_.barcode.length == 18) { //#8498 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8497 - $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8496'; //#8496 - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8496 - bwipp_raiseerror(); //#8496 - } //#8496 - } //#8496 - var _R = $s(18); //#8499 - $puti(_R, 0, $_.barcode); //#8500 - $put(_R, 17, $_.checksum + 48); //#8501 - $_.barcode = _R; //#8502 - $put($_.options, "dontdraw", true); //#8505 - $put($_.options, "format", "truncated"); //#8506 - $k[$j++] = 'args'; //#8508 - $k[$j++] = $_.barcode; //#8508 - $k[$j++] = $_.options; //#8508 - bwipp_databaromni(); //#8508 - var _Y = $k[--$j]; //#8508 - $_[$k[--$j]] = _Y; //#8508 - $put($_.args, "opt", $_.options); //#8510 - $k[$j++] = $_.args; //#8513 - if (!$_.dontdraw) { //#8513 - bwipp_renlinear(); //#8513 - } //#8513 - $_ = Object.getPrototypeOf($_); //#8515 -} - + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8485 + if ($_.barcode.length == 18) { //#8490 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8489 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8488'; //#8488 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8488 + bwipp_raiseerror(); //#8488 + } //#8488 + } //#8488 + var _R = $s(18); //#8491 + $puti(_R, 0, $_.barcode); //#8492 + $put(_R, 17, $_.checksum + 48); //#8493 + $_.barcode = _R; //#8494 + $put($_.options, "dontdraw", true); //#8497 + $put($_.options, "format", "stacked"); //#8498 + $k[$j++] = 'args'; //#8500 + $k[$j++] = $_.barcode; //#8500 + $k[$j++] = $_.options; //#8500 + bwipp_databaromni(); //#8500 + var _Y = $k[--$j]; //#8500 + $_[$k[--$j]] = _Y; //#8500 + $put($_.args, "opt", $_.options); //#8502 + $k[$j++] = $_.args; //#8505 + if (!$_.dontdraw) { //#8505 + bwipp_renmatrix(); //#8505 + } //#8505 + $_ = Object.getPrototypeOf($_); //#8507 +} //bwipp_databarstacked +function bwipp_databarstackedomni() { + $_ = Object.create($_); //#8536 + $_.dontdraw = false; //#8539 + $k[$j++] = $_; //#8541 + bwipp_processoptions(); //#8541 + $_.options = $k[--$j]; //#8541 + $_.barcode = $k[--$j]; //#8542 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8547 + $k[$j++] = 'bwipp.databarstackedomniBadAI#8546'; //#8546 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8546 + bwipp_raiseerror(); //#8546 + } //#8546 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8550 + $k[$j++] = 'bwipp.databarstackedomniBadLength#8549'; //#8549 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8549 + bwipp_raiseerror(); //#8549 + } //#8549 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8551 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8555 + var _B = $get(_8, _9); //#8555 + if ((_B < 48) || (_B > 57)) { //#8554 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8553'; //#8553 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8553 + bwipp_raiseerror(); //#8553 + } //#8553 + } //#8553 + $_.checksum = 0; //#8558 + for (var _C = 0; _C <= 12; _C += 1) { //#8562 + $_.i = _C; //#8560 + $k[$j++] = 'checksum'; //#8561 + $k[$j++] = $_.checksum; //#8561 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8561 + if (($_.i % 2) == 0) { //#8561 + var _I = $k[--$j]; //#8561 + $k[$j++] = _I * 3; //#8561 + } //#8561 + var _J = $k[--$j]; //#8561 + var _K = $k[--$j]; //#8561 + $_[$k[--$j]] = $f(_K + _J); //#8561 + } //#8561 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8563 + if ($_.barcode.length == 18) { //#8568 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8567 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8566'; //#8566 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8566 + bwipp_raiseerror(); //#8566 + } //#8566 + } //#8566 + var _R = $s(18); //#8569 + $puti(_R, 0, $_.barcode); //#8570 + $put(_R, 17, $_.checksum + 48); //#8571 + $_.barcode = _R; //#8572 + $put($_.options, "dontdraw", true); //#8575 + $put($_.options, "format", "stackedomni"); //#8576 + $k[$j++] = 'args'; //#8578 + $k[$j++] = $_.barcode; //#8578 + $k[$j++] = $_.options; //#8578 + bwipp_databaromni(); //#8578 + var _Y = $k[--$j]; //#8578 + $_[$k[--$j]] = _Y; //#8578 + $put($_.args, "opt", $_.options); //#8580 + $k[$j++] = $_.args; //#8583 + if (!$_.dontdraw) { //#8583 + bwipp_renmatrix(); //#8583 + } //#8583 + $_ = Object.getPrototypeOf($_); //#8585 +} //bwipp_databarstackedomni +function bwipp_databartruncated() { + $_ = Object.create($_); //#8614 + $_.dontdraw = false; //#8617 + $k[$j++] = $_; //#8619 + bwipp_processoptions(); //#8619 + $_.options = $k[--$j]; //#8619 + $_.barcode = $k[--$j]; //#8620 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8625 + $k[$j++] = 'bwipp.databartruncatedBadLength#8624'; //#8624 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8624 + bwipp_raiseerror(); //#8624 + } //#8624 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8628 + $k[$j++] = 'bwipp.databartruncatedBadAI#8627'; //#8627 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8627 + bwipp_raiseerror(); //#8627 + } //#8627 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8629 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8633 + var _B = $get(_8, _9); //#8633 + if ((_B < 48) || (_B > 57)) { //#8632 + $k[$j++] = 'bwipp.databartruncatedBadCharacter#8631'; //#8631 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8631 + bwipp_raiseerror(); //#8631 + } //#8631 + } //#8631 + $_.checksum = 0; //#8636 + for (var _C = 0; _C <= 12; _C += 1) { //#8640 + $_.i = _C; //#8638 + $k[$j++] = 'checksum'; //#8639 + $k[$j++] = $_.checksum; //#8639 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8639 + if (($_.i % 2) == 0) { //#8639 + var _I = $k[--$j]; //#8639 + $k[$j++] = _I * 3; //#8639 + } //#8639 + var _J = $k[--$j]; //#8639 + var _K = $k[--$j]; //#8639 + $_[$k[--$j]] = $f(_K + _J); //#8639 + } //#8639 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8641 + if ($_.barcode.length == 18) { //#8646 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8645 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8644'; //#8644 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8644 + bwipp_raiseerror(); //#8644 + } //#8644 + } //#8644 + var _R = $s(18); //#8647 + $puti(_R, 0, $_.barcode); //#8648 + $put(_R, 17, $_.checksum + 48); //#8649 + $_.barcode = _R; //#8650 + $put($_.options, "dontdraw", true); //#8653 + $put($_.options, "format", "truncated"); //#8654 + $k[$j++] = 'args'; //#8656 + $k[$j++] = $_.barcode; //#8656 + $k[$j++] = $_.options; //#8656 + bwipp_databaromni(); //#8656 + var _Y = $k[--$j]; //#8656 + $_[$k[--$j]] = _Y; //#8656 + $put($_.args, "opt", $_.options); //#8658 + $k[$j++] = $_.args; //#8661 + if (!$_.dontdraw) { //#8661 + bwipp_renlinear(); //#8661 + } //#8661 + $_ = Object.getPrototypeOf($_); //#8663 +} //bwipp_databartruncated function bwipp_databarlimited() { - $_ = Object.create($_); //#8545 - $_.dontdraw = false; //#8548 - $_.height = 10 / 72; //#8549 - $_.linkage = false; //#8550 - $k[$j++] = $_; //#8552 - bwipp_processoptions(); //#8552 - $_.options = $k[--$j]; //#8552 - $_.barcode = $k[--$j]; //#8553 - bwipp_loadctx(bwipp_databarlimited) //#8555 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8560 - $k[$j++] = 'bwipp.databarlimitedBadAI#8559'; //#8559 - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8559 - bwipp_raiseerror(); //#8559 - } //#8559 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8563 - $k[$j++] = 'bwipp.databarlimitedBadLength#8562'; //#8562 - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8562 - bwipp_raiseerror(); //#8562 - } //#8562 - var _7 = $get($_.barcode, 4); //#8564 - if ((_7 < 48) || (_7 > 49)) { //#8566 - $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8565'; //#8565 - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8565 - bwipp_raiseerror(); //#8565 - } //#8565 - var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8567 - for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8571 - var _D = $get(_A, _B); //#8571 - if ((_D < 48) || (_D > 57)) { //#8570 - $k[$j++] = 'bwipp.databarlimitedBadCharacter#8569'; //#8569 - $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8569 - bwipp_raiseerror(); //#8569 - } //#8569 - } //#8569 - $_.checksum = 0; //#8574 - for (var _E = 0; _E <= 12; _E += 1) { //#8578 - $_.i = _E; //#8576 - $k[$j++] = 'checksum'; //#8577 - $k[$j++] = $_.checksum; //#8577 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8577 - if (($_.i % 2) == 0) { //#8577 - var _K = $k[--$j]; //#8577 - $k[$j++] = _K * 3; //#8577 - } //#8577 - var _L = $k[--$j]; //#8577 - var _M = $k[--$j]; //#8577 - $_[$k[--$j]] = $f(_M + _L); //#8577 - } //#8577 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8579 - if ($_.barcode.length == 18) { //#8584 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8583 - $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8582'; //#8582 - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8582 - bwipp_raiseerror(); //#8582 - } //#8582 - } //#8582 - var _T = $s(18); //#8585 - $puti(_T, 0, $_.barcode); //#8586 - $put(_T, 17, $_.checksum + 48); //#8587 - $_.barcode = _T; //#8588 - if (!bwipp_databarlimited.__8593__) { //#8593 - $_ = Object.create($_); //#8593 - $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8592 - bwipp_databarlimited.__8593__ = 1; //#8592 - $_ = Object.getPrototypeOf($_); //#8592 - } //#8592 - $k[$j++] = Infinity; //#8595 - var _Z = $geti($_.barcode, 4, 13); //#8595 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8595 - $k[$j++] = $f($get(_Z, _a) - 48); //#8595 - } //#8595 - $_.binval = $a(); //#8595 - if ($_.linkage) { //#8602 - for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8601 - $_.i = _h; //#8599 - $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8600 - } //#8600 - } //#8600 - $_.txt = $a($_.barcode.length); //#8605 - for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8609 - $_.i = _u; //#8607 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8608 - } //#8608 + $_ = Object.create($_); //#8693 + $_.dontdraw = false; //#8696 + $_.height = 10 / 72; //#8697 + $_.linkage = false; //#8698 + $k[$j++] = $_; //#8700 + bwipp_processoptions(); //#8700 + $_.options = $k[--$j]; //#8700 + $_.barcode = $k[--$j]; //#8701 + bwipp_loadctx(bwipp_databarlimited) //#8703 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8708 + $k[$j++] = 'bwipp.databarlimitedBadLength#8707'; //#8707 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8707 + bwipp_raiseerror(); //#8707 + } //#8707 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8711 + $k[$j++] = 'bwipp.databarlimitedBadAI#8710'; //#8710 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8710 + bwipp_raiseerror(); //#8710 + } //#8710 + var _7 = $get($_.barcode, 4); //#8712 + if ((_7 < 48) || (_7 > 49)) { //#8714 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8713'; //#8713 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8713 + bwipp_raiseerror(); //#8713 + } //#8713 + var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8715 + for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8719 + var _D = $get(_A, _B); //#8719 + if ((_D < 48) || (_D > 57)) { //#8718 + $k[$j++] = 'bwipp.databarlimitedBadCharacter#8717'; //#8717 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8717 + bwipp_raiseerror(); //#8717 + } //#8717 + } //#8717 + $_.checksum = 0; //#8722 + for (var _E = 0; _E <= 12; _E += 1) { //#8726 + $_.i = _E; //#8724 + $k[$j++] = 'checksum'; //#8725 + $k[$j++] = $_.checksum; //#8725 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8725 + if (($_.i % 2) == 0) { //#8725 + var _K = $k[--$j]; //#8725 + $k[$j++] = _K * 3; //#8725 + } //#8725 + var _L = $k[--$j]; //#8725 + var _M = $k[--$j]; //#8725 + $_[$k[--$j]] = $f(_M + _L); //#8725 + } //#8725 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8727 + if ($_.barcode.length == 18) { //#8732 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8731 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8730'; //#8730 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8730 + bwipp_raiseerror(); //#8730 + } //#8730 + } //#8730 + var _T = $s(18); //#8733 + $puti(_T, 0, $_.barcode); //#8734 + $put(_T, 17, $_.checksum + 48); //#8735 + $_.barcode = _T; //#8736 + if (!bwipp_databarlimited.__8741__) { //#8741 + $_ = Object.create($_); //#8741 + $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8740 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8740 + bwipp_databarlimited.__8741__ = 1; //#8740 + $_ = Object.getPrototypeOf($_); //#8740 + } //#8740 + $k[$j++] = Infinity; //#8742 + var _Z = $geti($_.barcode, 4, 13); //#8743 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8743 + $k[$j++] = $f($get(_Z, _a) - 48); //#8743 + } //#8743 + $_.binval = $a(); //#8743 + if ($_.linkage) { //#8750 + for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8749 + $_.i = _h; //#8747 + $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8748 + } //#8748 + } //#8748 + $_.txt = $a($_.barcode.length); //#8753 + for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8757 + $_.i = _u; //#8755 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8756 + } //#8756 $_.ncr = function() { - var _11 = $k[--$j]; //#8612 - var _12 = $k[--$j]; //#8612 - var _13 = $f(_12 - _11); //#8612 - if (_11 < $f(_12 - _11)) { //#8612 - var _ = _13; //#8612 - _13 = _11; //#8612 - _11 = _; //#8612 - } //#8612 - $k[$j++] = _13; //#8619 - $k[$j++] = 1; //#8619 - $k[$j++] = 1; //#8619 - for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8619 - var _16 = $k[--$j]; //#8615 - var _17 = $k[--$j]; //#8616 - var _18 = $k[--$j]; //#8616 - $k[$j++] = _18; //#8618 - $k[$j++] = _17; //#8618 - $k[$j++] = _16 * _15; //#8618 - if ($le(_17, _18)) { //#8618 - var _19 = $k[--$j]; //#8617 - var _1A = $k[--$j]; //#8617 - $k[$j++] = $f(_1A + 1); //#8617 - $k[$j++] = ~~(_19 / _1A); //#8617 - } //#8617 - } //#8617 - for (;;) { //#8623 - var _1B = $k[--$j]; //#8621 - var _1C = $k[--$j]; //#8621 - var _1D = $k[--$j]; //#8621 - $k[$j++] = _1D; //#8621 - $k[$j++] = _1C; //#8621 - $k[$j++] = _1B; //#8621 - if ($gt(_1C, _1D)) { //#8621 - break; //#8621 - } //#8621 - var _1E = $k[--$j]; //#8622 - var _1F = $k[--$j]; //#8622 - $k[$j++] = $f(_1F + 1); //#8622 - $k[$j++] = ~~(_1E / _1F); //#8622 - } //#8622 - var _1G = $k[--$j]; //#8624 - var _1H = $k[--$j]; //#8624 - $k[$j++] = _1G; //#8624 - $k[$j++] = _1H; //#8624 - $j--; //#8624 - var _1I = $k[--$j]; //#8624 - var _1J = $k[--$j]; //#8624 - $k[$j++] = _1I; //#8624 - $k[$j++] = _1J; //#8624 - $j--; //#8624 - }; //#8624 + var _11 = $k[--$j]; //#8760 + var _12 = $k[--$j]; //#8760 + var _13 = $f(_12 - _11); //#8760 + if (_11 < $f(_12 - _11)) { //#8760 + var _ = _13; //#8760 + _13 = _11; //#8760 + _11 = _; //#8760 + } //#8760 + $k[$j++] = _13; //#8767 + $k[$j++] = 1; //#8767 + $k[$j++] = 1; //#8767 + for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8767 + var _16 = $k[--$j]; //#8763 + var _17 = $k[--$j]; //#8764 + var _18 = $k[--$j]; //#8764 + $k[$j++] = _18; //#8766 + $k[$j++] = _17; //#8766 + $k[$j++] = _16 * _15; //#8766 + if ($le(_17, _18)) { //#8766 + var _19 = $k[--$j]; //#8765 + var _1A = $k[--$j]; //#8765 + $k[$j++] = $f(_1A + 1); //#8765 + $k[$j++] = ~~(_19 / _1A); //#8765 + } //#8765 + } //#8765 + for (;;) { //#8771 + var _1B = $k[--$j]; //#8769 + var _1C = $k[--$j]; //#8769 + var _1D = $k[--$j]; //#8769 + $k[$j++] = _1D; //#8769 + $k[$j++] = _1C; //#8769 + $k[$j++] = _1B; //#8769 + if ($gt(_1C, _1D)) { //#8769 + break; //#8769 + } //#8769 + var _1E = $k[--$j]; //#8770 + var _1F = $k[--$j]; //#8770 + $k[$j++] = $f(_1F + 1); //#8770 + $k[$j++] = ~~(_1E / _1F); //#8770 + } //#8770 + var _1G = $k[--$j]; //#8772 + var _1H = $k[--$j]; //#8772 + $k[$j++] = _1G; //#8772 + $k[$j++] = _1H; //#8772 + $j--; //#8772 + var _1I = $k[--$j]; //#8772 + var _1J = $k[--$j]; //#8772 + $k[$j++] = _1I; //#8772 + $k[$j++] = _1J; //#8772 + $j--; //#8772 + }; //#8772 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#8628 - $_.el = $k[--$j]; //#8629 - $_.mw = $k[--$j]; //#8630 - $_.nm = $k[--$j]; //#8631 - $_.val = $k[--$j]; //#8632 - $_.out = $a($_.el); //#8633 - $_.mask = 0; //#8634 - for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8661 - $_.bar = _1T; //#8636 - $_.ew = 1; //#8637 - var _1V = $_.bar; //#8638 - $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8638 - for (;;) { //#8657 - $k[$j++] = 'sval'; //#8639 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8639 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8639 - $_.ncr(); //#8639 - var _1a = $k[--$j]; //#8639 - $_[$k[--$j]] = _1a; //#8639 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8642 - $k[$j++] = 'sval'; //#8641 - $k[$j++] = $_.sval; //#8641 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8641 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8641 - $_.ncr(); //#8641 - var _1p = $k[--$j]; //#8641 - var _1q = $k[--$j]; //#8641 - $_[$k[--$j]] = $f(_1q - _1p); //#8641 - } //#8641 - if ($f($_.el - $_.bar) > 2) { //#8651 - $_.lval = 0; //#8644 - for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8648 - $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8646 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8646 - $_.ncr(); //#8646 - $_.lval = $f($k[--$j] + $_.lval); //#8647 - } //#8647 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8649 - } else { //#8651 - if ($f($_.nm - $_.ew) > $_.mw) { //#8651 - $_.sval = $f($_.sval - 1); //#8651 - } //#8651 - } //#8651 - $_.val = $f($_.val - $_.sval); //#8653 - if ($_.val < 0) { //#8654 - break; //#8654 - } //#8654 - $_.ew = $_.ew + 1; //#8655 - var _2K = $_.bar; //#8656 - $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8656 - } //#8656 - $_.val = $f($_.val + $_.sval); //#8658 - $_.nm = $f($_.nm - $_.ew); //#8659 - $put($_.out, $_.bar, $_.ew); //#8660 - } //#8660 - $put($_.out, $f($_.el - 1), $_.nm); //#8662 - $k[$j++] = $_.out; //#8663 - }; //#8663 - for (var _2W = 0; _2W <= 11; _2W += 1) { //#8670 - $_.i = _2W; //#8667 - var _2X = $_.binval; //#8668 - var _2Y = $_.i; //#8668 - $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8668 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8669 - } //#8669 - $_.d2 = $get($_.binval, 12) % 2013571; //#8671 - var _2k = $_.binval; //#8672 - $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8672 - $_.d1 = 0; //#8674 - $_.i = true; //#8675 - for (var _2m = 0; _2m <= 12; _2m += 1) { //#8685 - $_.j = _2m; //#8677 - var _2p = $get($_.binval, $_.j); //#8678 - $k[$j++] = _2p; //#8684 - if ((_2p == 0) && $_.i) { //#8683 - $j--; //#8680 - } else { //#8683 - $_.i = false; //#8682 - $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8683 - } //#8683 - } //#8683 - if (!bwipp_databarlimited.__8697__) { //#8697 - $_ = Object.create($_); //#8697 - $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8696 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8696 - bwipp_databarlimited.__8697__ = 1; //#8696 - $_ = Object.getPrototypeOf($_); //#8696 - } //#8696 - $_.i = 0; //#8699 - for (;;) { //#8709 - if ($_.d1 <= $get($_.tab267, $_.i)) { //#8707 - var _32 = $geti($_.tab267, $_.i + 1, 7); //#8701 - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8701 - $k[$j++] = $get(_32, _33); //#8701 - } //#8701 - $_.d1te = $k[--$j]; //#8702 - $_.d1to = $k[--$j]; //#8702 - $_.d1mwe = $k[--$j]; //#8703 - $_.d1mwo = $k[--$j]; //#8703 - $_.d1ele = $k[--$j]; //#8704 - $_.d1elo = $k[--$j]; //#8704 - $_.d1gs = $k[--$j]; //#8705 - break; //#8706 - } //#8706 - $_.i = $_.i + 8; //#8708 - } //#8708 - $_.i = 0; //#8711 - for (;;) { //#8721 - if ($_.d2 <= $get($_.tab267, $_.i)) { //#8719 - var _3K = $geti($_.tab267, $_.i + 1, 7); //#8713 - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8713 - $k[$j++] = $get(_3K, _3L); //#8713 - } //#8713 - $_.d2te = $k[--$j]; //#8714 - $_.d2to = $k[--$j]; //#8714 - $_.d2mwe = $k[--$j]; //#8715 - $_.d2mwo = $k[--$j]; //#8715 - $_.d2ele = $k[--$j]; //#8716 - $_.d2elo = $k[--$j]; //#8716 - $_.d2gs = $k[--$j]; //#8717 - break; //#8718 - } //#8718 - $_.i = $_.i + 8; //#8720 - } //#8720 - $k[$j++] = 'd1wo'; //#8723 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8723 - $k[$j++] = $_.d1elo; //#8723 - $k[$j++] = $_.d1mwo; //#8723 - $k[$j++] = 7; //#8723 - $k[$j++] = false; //#8723 - $_.getRSSwidths(); //#8723 - var _3b = $k[--$j]; //#8723 - $_[$k[--$j]] = _3b; //#8723 - $k[$j++] = 'd1we'; //#8724 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8724 - $k[$j++] = $_.d1ele; //#8724 - $k[$j++] = $_.d1mwe; //#8724 - $k[$j++] = 7; //#8724 - $k[$j++] = true; //#8724 - $_.getRSSwidths(); //#8724 - var _3i = $k[--$j]; //#8724 - $_[$k[--$j]] = _3i; //#8724 - $k[$j++] = 'd2wo'; //#8725 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8725 - $k[$j++] = $_.d2elo; //#8725 - $k[$j++] = $_.d2mwo; //#8725 - $k[$j++] = 7; //#8725 - $k[$j++] = false; //#8725 - $_.getRSSwidths(); //#8725 - var _3p = $k[--$j]; //#8725 - $_[$k[--$j]] = _3p; //#8725 - $k[$j++] = 'd2we'; //#8726 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8726 - $k[$j++] = $_.d2ele; //#8726 - $k[$j++] = $_.d2mwe; //#8726 - $k[$j++] = 7; //#8726 - $k[$j++] = true; //#8726 - $_.getRSSwidths(); //#8726 - var _3w = $k[--$j]; //#8726 - $_[$k[--$j]] = _3w; //#8726 - $_.d1w = $a(14); //#8728 - for (var _3z = 0; _3z <= 6; _3z += 1) { //#8733 - $_.i = _3z; //#8730 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8731 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8732 - } //#8732 - $_.d2w = $a(14); //#8735 - for (var _4B = 0; _4B <= 6; _4B += 1) { //#8740 - $_.i = _4B; //#8737 - $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8738 - $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8739 - } //#8739 - $k[$j++] = Infinity; //#8744 - var _4M = $_.d1w; //#8743 - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8743 - $k[$j++] = $get(_4M, _4N); //#8743 - } //#8743 - var _4Q = $_.d2w; //#8744 - for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8744 - $k[$j++] = $get(_4Q, _4R); //#8744 - } //#8744 - $_.widths = $a(); //#8744 - if (!bwipp_databarlimited.__8768__) { //#8768 - $_ = Object.create($_); //#8768 - $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8751 - $k[$j++] = Infinity; //#8766 - for (var _4W = 0; _4W <= 43; _4W += 1) { //#8754 - $k[$j++] = _4W; //#8754 - } //#8754 - $k[$j++] = 45; //#8756 - $k[$j++] = 52; //#8756 - $k[$j++] = 57; //#8756 - for (var _4X = 63; _4X <= 66; _4X += 1) { //#8756 - $k[$j++] = _4X; //#8756 - } //#8756 - for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8757 - $k[$j++] = _4Y; //#8757 - } //#8757 - $k[$j++] = 82; //#8759 - for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8759 - $k[$j++] = _4Z; //#8759 - } //#8759 - $k[$j++] = 132; //#8761 - for (var _4a = 141; _4a <= 146; _4a += 1) { //#8761 - $k[$j++] = _4a; //#8761 - } //#8761 - for (var _4b = 210; _4b <= 217; _4b += 1) { //#8762 - $k[$j++] = _4b; //#8762 - } //#8762 - $k[$j++] = 220; //#8764 - for (var _4c = 316; _4c <= 320; _4c += 1) { //#8764 - $k[$j++] = _4c; //#8764 - } //#8764 - $k[$j++] = 322; //#8766 - $k[$j++] = 323; //#8766 - $k[$j++] = 326; //#8766 - $k[$j++] = 337; //#8766 - $_.checkseq = $a(); //#8766 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8767 - bwipp_databarlimited.__8768__ = 1; //#8767 - $_ = Object.getPrototypeOf($_); //#8767 - } //#8767 - $_.checksum = 0; //#8770 - for (var _4f = 0; _4f <= 27; _4f += 1) { //#8774 - $_.i = _4f; //#8772 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8773 - } //#8773 - $_.checksum = $_.checksum % 89; //#8775 - $_.seq = $get($_.checkseq, $_.checksum); //#8776 - $k[$j++] = 'swidths'; //#8777 - $k[$j++] = ~~($_.seq / 21); //#8777 - $k[$j++] = 8; //#8777 - $k[$j++] = 3; //#8777 - $k[$j++] = 6; //#8777 - $k[$j++] = false; //#8777 - $_.getRSSwidths(); //#8777 - var _4s = $k[--$j]; //#8777 - $_[$k[--$j]] = _4s; //#8777 - $k[$j++] = 'bwidths'; //#8778 - $k[$j++] = $_.seq % 21; //#8778 - $k[$j++] = 8; //#8778 - $k[$j++] = 3; //#8778 - $k[$j++] = 6; //#8778 - $k[$j++] = false; //#8778 - $_.getRSSwidths(); //#8778 - var _4v = $k[--$j]; //#8778 - $_[$k[--$j]] = _4v; //#8778 - $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8780 - for (var _4y = 0; _4y <= 5; _4y += 1) { //#8785 - $_.i = _4y; //#8782 - $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8783 - $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8784 - } //#8784 - $k[$j++] = Infinity; //#8788 - var _59 = $_.d1w; //#8788 - $k[$j++] = 1; //#8788 - for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8788 - $k[$j++] = $get(_59, _5A); //#8788 - } //#8788 - var _5D = $_.checkwidths; //#8788 - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8788 - $k[$j++] = $get(_5D, _5E); //#8788 - } //#8788 - var _5H = $_.d2w; //#8788 - for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8788 - $k[$j++] = $get(_5H, _5I); //#8788 - } //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 5; //#8788 - $_.sbs = $a(); //#8788 - $k[$j++] = Infinity; //#8799 - var _5M = $_.sbs; //#8794 - $k[$j++] = Infinity; //#8795 - for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8795 - $k[$j++] = $_.height; //#8795 - } //#8795 - var _5R = $a(); //#8795 - $k[$j++] = Infinity; //#8796 - for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8796 - $k[$j++] = 0; //#8796 - } //#8796 - var _5V = $a(); //#8796 - $k[$j++] = 'ren'; //#8799 - $k[$j++] = bwipp_renlinear; //#8799 - $k[$j++] = 'sbs'; //#8799 - $k[$j++] = _5M; //#8799 - $k[$j++] = 'bhs'; //#8799 - $k[$j++] = _5R; //#8799 - $k[$j++] = 'bbs'; //#8799 - $k[$j++] = _5V; //#8799 - $k[$j++] = 'txt'; //#8799 - $k[$j++] = $_.txt; //#8799 - $k[$j++] = 'textxalign'; //#8799 - $k[$j++] = "center"; //#8799 - $k[$j++] = 'opt'; //#8799 - $k[$j++] = $_.options; //#8799 - var _5Y = $d(); //#8799 - $k[$j++] = _5Y; //#8802 - if (!$_.dontdraw) { //#8802 - bwipp_renlinear(); //#8802 - } //#8802 - $_ = Object.getPrototypeOf($_); //#8804 - $_ = Object.getPrototypeOf($_); //#8806 -} - -function bwipp_databarexpanded() { - $_ = Object.create($_); //#8838 - $_.parse = false; //#8841 - $_.dontlint = false; //#8842 - $_.lintreqs = true; //#8843 - $_.dontdraw = false; //#8844 - $_.height = 34 / 72; //#8845 - $_.format = "expanded"; //#8846 - $_.segments = -1; //#8847 - $_.linkage = false; //#8848 - $_.barxmult = 34; //#8849 - $k[$j++] = $_; //#8851 - bwipp_processoptions(); //#8851 - $_.options = $k[--$j]; //#8851 - $_.barcode = $k[--$j]; //#8852 - bwipp_loadctx(bwipp_databarexpanded) //#8854 - if ($_.barxmult < 34) { //#8858 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8857'; //#8857 - $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#8857 - bwipp_raiseerror(); //#8857 - } //#8857 - if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#8862 - $k[$j++] = 'bwipp.databarexpandedBadFormat#8861'; //#8861 - $k[$j++] = "Valid formats are expanded and expandedstacked"; //#8861 - bwipp_raiseerror(); //#8861 - } //#8861 - if ($_.segments == -1) { //#8868 - var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#8865 - $_.segments = _7; //#8865 - } else { //#8868 - if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#8869 - $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#8868'; //#8868 - $k[$j++] = "The number of segments must be even from 2 to 22"; //#8868 - bwipp_raiseerror(); //#8868 - } //#8868 + $_.oe = $k[--$j]; //#8776 + $_.el = $k[--$j]; //#8777 + $_.mw = $k[--$j]; //#8778 + $_.nm = $k[--$j]; //#8779 + $_.val = $k[--$j]; //#8780 + $_.out = $a($_.el); //#8781 + $_.mask = 0; //#8782 + for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8809 + $_.bar = _1T; //#8784 + $_.ew = 1; //#8785 + var _1V = $_.bar; //#8786 + $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8786 + for (;;) { //#8805 + $k[$j++] = 'sval'; //#8787 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8787 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8787 + $_.ncr(); //#8787 + var _1a = $k[--$j]; //#8787 + $_[$k[--$j]] = _1a; //#8787 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8790 + $k[$j++] = 'sval'; //#8789 + $k[$j++] = $_.sval; //#8789 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8789 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8789 + $_.ncr(); //#8789 + var _1p = $k[--$j]; //#8789 + var _1q = $k[--$j]; //#8789 + $_[$k[--$j]] = $f(_1q - _1p); //#8789 + } //#8789 + if ($f($_.el - $_.bar) > 2) { //#8799 + $_.lval = 0; //#8792 + for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8796 + $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8794 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8794 + $_.ncr(); //#8794 + $_.lval = $f($k[--$j] + $_.lval); //#8795 + } //#8795 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8797 + } else { //#8799 + if ($f($_.nm - $_.ew) > $_.mw) { //#8799 + $_.sval = $f($_.sval - 1); //#8799 + } //#8799 + } //#8799 + $_.val = $f($_.val - $_.sval); //#8801 + if ($_.val < 0) { //#8802 + break; //#8802 + } //#8802 + $_.ew = $_.ew + 1; //#8803 + var _2K = $_.bar; //#8804 + $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8804 + } //#8804 + $_.val = $f($_.val + $_.sval); //#8806 + $_.nm = $f($_.nm - $_.ew); //#8807 + $put($_.out, $_.bar, $_.ew); //#8808 + } //#8808 + $put($_.out, $f($_.el - 1), $_.nm); //#8810 + $k[$j++] = $_.out; //#8811 + }; //#8811 + for (var _2W = 0; _2W <= 11; _2W += 1) { //#8818 + $_.i = _2W; //#8815 + var _2X = $_.binval; //#8816 + var _2Y = $_.i; //#8816 + $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8816 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8817 + } //#8817 + $_.d2 = $get($_.binval, 12) % 2013571; //#8819 + var _2k = $_.binval; //#8820 + $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8820 + $_.d1 = 0; //#8822 + $_.i = true; //#8823 + for (var _2m = 0; _2m <= 12; _2m += 1) { //#8833 + $_.j = _2m; //#8825 + var _2p = $get($_.binval, $_.j); //#8826 + $k[$j++] = _2p; //#8832 + if ((_2p == 0) && $_.i) { //#8831 + $j--; //#8828 + } else { //#8831 + $_.i = false; //#8830 + $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8831 + } //#8831 + } //#8831 + if (!bwipp_databarlimited.__8845__) { //#8845 + $_ = Object.create($_); //#8845 + $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8844 + bwipp_databarlimited.__8845__ = 1; //#8844 + $_ = Object.getPrototypeOf($_); //#8844 + } //#8844 + $_.i = 0; //#8847 + for (;;) { //#8857 + if ($_.d1 <= $get($_.tab267, $_.i)) { //#8855 + var _32 = $geti($_.tab267, $_.i + 1, 7); //#8849 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8849 + $k[$j++] = $get(_32, _33); //#8849 + } //#8849 + $_.d1te = $k[--$j]; //#8850 + $_.d1to = $k[--$j]; //#8850 + $_.d1mwe = $k[--$j]; //#8851 + $_.d1mwo = $k[--$j]; //#8851 + $_.d1ele = $k[--$j]; //#8852 + $_.d1elo = $k[--$j]; //#8852 + $_.d1gs = $k[--$j]; //#8853 + break; //#8854 + } //#8854 + $_.i = $_.i + 8; //#8856 + } //#8856 + $_.i = 0; //#8859 + for (;;) { //#8869 + if ($_.d2 <= $get($_.tab267, $_.i)) { //#8867 + var _3K = $geti($_.tab267, $_.i + 1, 7); //#8861 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8861 + $k[$j++] = $get(_3K, _3L); //#8861 + } //#8861 + $_.d2te = $k[--$j]; //#8862 + $_.d2to = $k[--$j]; //#8862 + $_.d2mwe = $k[--$j]; //#8863 + $_.d2mwo = $k[--$j]; //#8863 + $_.d2ele = $k[--$j]; //#8864 + $_.d2elo = $k[--$j]; //#8864 + $_.d2gs = $k[--$j]; //#8865 + break; //#8866 + } //#8866 + $_.i = $_.i + 8; //#8868 } //#8868 - $k[$j++] = $_.barcode; //#8872 - $k[$j++] = 'ai'; //#8872 - bwipp_gs1process(); //#8872 - $_.fncs = $k[--$j]; //#8873 - $_.vals = $k[--$j]; //#8874 - $_.ais = $k[--$j]; //#8875 - for (;;) { //#8963 - if ($_.ais.length == 2) { //#8887 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#8886 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#8885 - $k[$j++] = "0100"; //#8884 - $k[$j++] = false; //#8884 - break; //#8884 - } //#8884 - } //#8884 - } //#8884 - if ($_.ais.length == 2) { //#8896 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#8895 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#8894 - $k[$j++] = "0101"; //#8893 - $k[$j++] = false; //#8893 - break; //#8893 - } //#8893 - } //#8893 - } //#8893 - if ($_.ais.length == 2) { //#8905 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#8904 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#8903 - $k[$j++] = "0101"; //#8902 - $k[$j++] = false; //#8902 - break; //#8902 - } //#8902 - } //#8902 + $k[$j++] = 'd1wo'; //#8871 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8871 + $k[$j++] = $_.d1elo; //#8871 + $k[$j++] = $_.d1mwo; //#8871 + $k[$j++] = 7; //#8871 + $k[$j++] = false; //#8871 + $_.getRSSwidths(); //#8871 + var _3b = $k[--$j]; //#8871 + $_[$k[--$j]] = _3b; //#8871 + $k[$j++] = 'd1we'; //#8872 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8872 + $k[$j++] = $_.d1ele; //#8872 + $k[$j++] = $_.d1mwe; //#8872 + $k[$j++] = 7; //#8872 + $k[$j++] = true; //#8872 + $_.getRSSwidths(); //#8872 + var _3i = $k[--$j]; //#8872 + $_[$k[--$j]] = _3i; //#8872 + $k[$j++] = 'd2wo'; //#8873 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8873 + $k[$j++] = $_.d2elo; //#8873 + $k[$j++] = $_.d2mwo; //#8873 + $k[$j++] = 7; //#8873 + $k[$j++] = false; //#8873 + $_.getRSSwidths(); //#8873 + var _3p = $k[--$j]; //#8873 + $_[$k[--$j]] = _3p; //#8873 + $k[$j++] = 'd2we'; //#8874 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8874 + $k[$j++] = $_.d2ele; //#8874 + $k[$j++] = $_.d2mwe; //#8874 + $k[$j++] = 7; //#8874 + $k[$j++] = true; //#8874 + $_.getRSSwidths(); //#8874 + var _3w = $k[--$j]; //#8874 + $_[$k[--$j]] = _3w; //#8874 + $_.d1w = $a(14); //#8876 + for (var _3z = 0; _3z <= 6; _3z += 1) { //#8881 + $_.i = _3z; //#8878 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8879 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8880 + } //#8880 + $_.d2w = $a(14); //#8883 + for (var _4B = 0; _4B <= 6; _4B += 1) { //#8888 + $_.i = _4B; //#8885 + $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8886 + $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8887 + } //#8887 + $k[$j++] = Infinity; //#8890 + var _4M = $_.d1w; //#8891 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8891 + $k[$j++] = $get(_4M, _4N); //#8891 + } //#8891 + var _4Q = $_.d2w; //#8892 + for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8892 + $k[$j++] = $get(_4Q, _4R); //#8892 + } //#8892 + $_.widths = $a(); //#8892 + if (!bwipp_databarlimited.__8916__) { //#8916 + $_ = Object.create($_); //#8916 + $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8899 + $k[$j++] = Infinity; //#8901 + for (var _4W = 0; _4W <= 43; _4W += 1) { //#8902 + $k[$j++] = _4W; //#8902 } //#8902 - var _k = $_.ais.length; //#8908 - if ((_k == 2) || (_k == 3)) { //#8939 - $k[$j++] = 'ai310x'; //#8909 - $k[$j++] = false; //#8909 - for (var _l = 3100; _l <= 3109; _l += 1) { //#8909 - var _q = $k[--$j]; //#8909 - $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#8909 - } //#8909 - var _r = $k[--$j]; //#8909 - $_[$k[--$j]] = _r; //#8909 - $k[$j++] = 'ai320x'; //#8910 - $k[$j++] = false; //#8910 - for (var _t = 3200; _t <= 3209; _t += 1) { //#8910 - var _y = $k[--$j]; //#8910 - $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#8910 - } //#8910 - var _z = $k[--$j]; //#8910 - $_[$k[--$j]] = _z; //#8910 - if ($_.ais.length == 3) { //#8914 - var _12 = $a(["11", "13", "15", "17"]); //#8912 - $k[$j++] = 'aibad'; //#8912 - $k[$j++] = true; //#8912 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#8912 - var _18 = $k[--$j]; //#8912 - $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#8912 - } //#8912 - var _19 = $k[--$j]; //#8912 - $_[$k[--$j]] = _19; //#8912 - } else { //#8914 - $_.aibad = false; //#8914 - } //#8914 - if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#8938 - if ($_.ais.length == 3) { //#8935 - var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#8920 - var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#8921 - if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#8930 - if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#8922 - $k[$j++] = "0111000"; //#8922 - $k[$j++] = false; //#8922 - break; //#8922 - } //#8922 - if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#8923 - $k[$j++] = "0111001"; //#8923 - $k[$j++] = false; //#8923 - break; //#8923 - } //#8923 - if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#8924 - $k[$j++] = "0111010"; //#8924 - $k[$j++] = false; //#8924 - break; //#8924 - } //#8924 - if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#8925 - $k[$j++] = "0111011"; //#8925 - $k[$j++] = false; //#8925 - break; //#8925 - } //#8925 - if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#8926 - $k[$j++] = "0111100"; //#8926 - $k[$j++] = false; //#8926 - break; //#8926 - } //#8926 - if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#8927 - $k[$j++] = "0111101"; //#8927 - $k[$j++] = false; //#8927 - break; //#8927 - } //#8927 - if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#8928 - $k[$j++] = "0111110"; //#8928 - $k[$j++] = false; //#8928 - break; //#8928 - } //#8928 - if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#8929 - $k[$j++] = "0111111"; //#8929 - $k[$j++] = false; //#8929 - break; //#8929 - } //#8929 - } //#8929 - } else { //#8935 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#8936 - if ($_.ai310x) { //#8934 - $k[$j++] = "0111000"; //#8934 - $k[$j++] = false; //#8934 - break; //#8934 - } //#8934 - if ($_.ai320x) { //#8935 - $k[$j++] = "0111001"; //#8935 - $k[$j++] = false; //#8935 - break; //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - if ($_.ais.length >= 2) { //#8947 - $k[$j++] = 'ai392x'; //#8943 - $k[$j++] = false; //#8943 - for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#8943 - var _25 = $k[--$j]; //#8943 - $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#8943 - } //#8943 - var _26 = $k[--$j]; //#8943 - $_[$k[--$j]] = _26; //#8943 - if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#8946 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8945 - $k[$j++] = "01100"; //#8945 - $k[$j++] = true; //#8945 - break; //#8945 - } //#8945 - } //#8945 - } //#8945 - if ($_.ais.length >= 2) { //#8955 - $k[$j++] = 'ai393x'; //#8951 - $k[$j++] = false; //#8951 - for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#8951 - var _2K = $k[--$j]; //#8951 - $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#8951 - } //#8951 - var _2L = $k[--$j]; //#8951 - $_[$k[--$j]] = _2L; //#8951 - if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#8954 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8953 - $k[$j++] = "01101"; //#8953 - $k[$j++] = true; //#8953 - break; //#8953 - } //#8953 - } //#8953 - } //#8953 - if ($eq($get($_.ais, 0), "01")) { //#8958 - $k[$j++] = "1"; //#8958 - $k[$j++] = true; //#8958 - break; //#8958 - } //#8958 - $k[$j++] = "00"; //#8961 - $k[$j++] = true; //#8961 - break; //#8961 - } //#8961 - $_.gpfallow = $k[--$j]; //#8964 - $_.method = $k[--$j]; //#8965 + $k[$j++] = 45; //#8904 + $k[$j++] = 52; //#8904 + $k[$j++] = 57; //#8904 + for (var _4X = 63; _4X <= 66; _4X += 1) { //#8904 + $k[$j++] = _4X; //#8904 + } //#8904 + for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8905 + $k[$j++] = _4Y; //#8905 + } //#8905 + $k[$j++] = 82; //#8907 + for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8907 + $k[$j++] = _4Z; //#8907 + } //#8907 + $k[$j++] = 132; //#8909 + for (var _4a = 141; _4a <= 146; _4a += 1) { //#8909 + $k[$j++] = _4a; //#8909 + } //#8909 + for (var _4b = 210; _4b <= 217; _4b += 1) { //#8910 + $k[$j++] = _4b; //#8910 + } //#8910 + $k[$j++] = 220; //#8912 + for (var _4c = 316; _4c <= 320; _4c += 1) { //#8912 + $k[$j++] = _4c; //#8912 + } //#8912 + $k[$j++] = 322; //#8914 + $k[$j++] = 323; //#8914 + $k[$j++] = 326; //#8914 + $k[$j++] = 337; //#8914 + $_.checkseq = $a(); //#8914 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8915 + bwipp_databarlimited.__8916__ = 1; //#8915 + $_ = Object.getPrototypeOf($_); //#8915 + } //#8915 + $_.checksum = 0; //#8918 + for (var _4f = 0; _4f <= 27; _4f += 1) { //#8922 + $_.i = _4f; //#8920 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8921 + } //#8921 + $_.checksum = $_.checksum % 89; //#8923 + $_.seq = $get($_.checkseq, $_.checksum); //#8924 + $k[$j++] = 'swidths'; //#8925 + $k[$j++] = ~~($_.seq / 21); //#8925 + $k[$j++] = 8; //#8925 + $k[$j++] = 3; //#8925 + $k[$j++] = 6; //#8925 + $k[$j++] = false; //#8925 + $_.getRSSwidths(); //#8925 + var _4s = $k[--$j]; //#8925 + $_[$k[--$j]] = _4s; //#8925 + $k[$j++] = 'bwidths'; //#8926 + $k[$j++] = $_.seq % 21; //#8926 + $k[$j++] = 8; //#8926 + $k[$j++] = 3; //#8926 + $k[$j++] = 6; //#8926 + $k[$j++] = false; //#8926 + $_.getRSSwidths(); //#8926 + var _4v = $k[--$j]; //#8926 + $_[$k[--$j]] = _4v; //#8926 + $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8928 + for (var _4y = 0; _4y <= 5; _4y += 1) { //#8933 + $_.i = _4y; //#8930 + $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8931 + $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8932 + } //#8932 + $k[$j++] = Infinity; //#8935 + var _59 = $_.d1w; //#8936 + $k[$j++] = 1; //#8936 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8936 + $k[$j++] = $get(_59, _5A); //#8936 + } //#8936 + var _5D = $_.checkwidths; //#8936 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8936 + $k[$j++] = $get(_5D, _5E); //#8936 + } //#8936 + var _5H = $_.d2w; //#8936 + for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8936 + $k[$j++] = $get(_5H, _5I); //#8936 + } //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 5; //#8936 + $_.sbs = $a(); //#8936 + $k[$j++] = Infinity; //#8940 + var _5M = $_.sbs; //#8942 + $k[$j++] = Infinity; //#8943 + for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8943 + $k[$j++] = $_.height; //#8943 + } //#8943 + var _5R = $a(); //#8943 + $k[$j++] = Infinity; //#8944 + for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8944 + $k[$j++] = 0; //#8944 + } //#8944 + var _5V = $a(); //#8944 + $k[$j++] = 'ren'; //#8949 + $k[$j++] = bwipp_renlinear; //#8949 + $k[$j++] = 'sbs'; //#8949 + $k[$j++] = _5M; //#8949 + $k[$j++] = 'bhs'; //#8949 + $k[$j++] = _5R; //#8949 + $k[$j++] = 'bbs'; //#8949 + $k[$j++] = _5V; //#8949 + $k[$j++] = 'txt'; //#8949 + $k[$j++] = $_.txt; //#8949 + $k[$j++] = 'textxalign'; //#8949 + $k[$j++] = "center"; //#8949 + $k[$j++] = 'borderleft'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'borderright'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'opt'; //#8949 + $k[$j++] = $_.options; //#8949 + var _5Y = $d(); //#8949 + $k[$j++] = _5Y; //#8952 + if (!$_.dontdraw) { //#8952 + bwipp_renlinear(); //#8952 + } //#8952 + $_ = Object.getPrototypeOf($_); //#8954 + $_ = Object.getPrototypeOf($_); //#8956 +} //bwipp_databarlimited +function bwipp_databarexpanded() { + $_ = Object.create($_); //#8988 + $_.parse = false; //#8991 + $_.dontlint = false; //#8992 + $_.lintreqs = true; //#8993 + $_.dontdraw = false; //#8994 + $_.height = 34 / 72; //#8995 + $_.format = "expanded"; //#8996 + $_.segments = -1; //#8997 + $_.linkage = false; //#8998 + $_.barxmult = 34; //#8999 + $k[$j++] = $_; //#9001 + bwipp_processoptions(); //#9001 + $_.options = $k[--$j]; //#9001 + $_.barcode = $k[--$j]; //#9002 + bwipp_loadctx(bwipp_databarexpanded) //#9004 + if ($_.barxmult < 34) { //#9008 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#9007'; //#9007 + $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#9007 + bwipp_raiseerror(); //#9007 + } //#9007 + if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#9012 + $k[$j++] = 'bwipp.databarexpandedBadFormat#9011'; //#9011 + $k[$j++] = "Valid formats are expanded and expandedstacked"; //#9011 + bwipp_raiseerror(); //#9011 + } //#9011 + if ($_.segments == -1) { //#9018 + var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#9015 + $_.segments = _7; //#9015 + } else { //#9018 + if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#9019 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#9018'; //#9018 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#9018 + bwipp_raiseerror(); //#9018 + } //#9018 + } //#9018 + $k[$j++] = $_.barcode; //#9022 + $k[$j++] = 'ai'; //#9022 + bwipp_gs1process(); //#9022 + $_.fncs = $k[--$j]; //#9023 + $_.vals = $k[--$j]; //#9024 + $_.ais = $k[--$j]; //#9025 + for (;;) { //#9113 + if ($_.ais.length == 2) { //#9037 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#9036 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#9035 + $k[$j++] = "0100"; //#9034 + $k[$j++] = false; //#9034 + break; //#9034 + } //#9034 + } //#9034 + } //#9034 + if ($_.ais.length == 2) { //#9046 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#9045 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#9044 + $k[$j++] = "0101"; //#9043 + $k[$j++] = false; //#9043 + break; //#9043 + } //#9043 + } //#9043 + } //#9043 + if ($_.ais.length == 2) { //#9055 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#9054 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#9053 + $k[$j++] = "0101"; //#9052 + $k[$j++] = false; //#9052 + break; //#9052 + } //#9052 + } //#9052 + } //#9052 + var _k = $_.ais.length; //#9058 + if ((_k == 2) || (_k == 3)) { //#9089 + $k[$j++] = 'ai310x'; //#9059 + $k[$j++] = false; //#9059 + for (var _l = 3100; _l <= 3109; _l += 1) { //#9059 + var _q = $k[--$j]; //#9059 + $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#9059 + } //#9059 + var _r = $k[--$j]; //#9059 + $_[$k[--$j]] = _r; //#9059 + $k[$j++] = 'ai320x'; //#9060 + $k[$j++] = false; //#9060 + for (var _t = 3200; _t <= 3209; _t += 1) { //#9060 + var _y = $k[--$j]; //#9060 + $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#9060 + } //#9060 + var _z = $k[--$j]; //#9060 + $_[$k[--$j]] = _z; //#9060 + if ($_.ais.length == 3) { //#9064 + var _12 = $a(["11", "13", "15", "17"]); //#9062 + $k[$j++] = 'aibad'; //#9062 + $k[$j++] = true; //#9062 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#9062 + var _18 = $k[--$j]; //#9062 + $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#9062 + } //#9062 + var _19 = $k[--$j]; //#9062 + $_[$k[--$j]] = _19; //#9062 + } else { //#9064 + $_.aibad = false; //#9064 + } //#9064 + if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#9088 + if ($_.ais.length == 3) { //#9085 + var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#9070 + var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#9071 + if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#9080 + if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#9072 + $k[$j++] = "0111000"; //#9072 + $k[$j++] = false; //#9072 + break; //#9072 + } //#9072 + if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#9073 + $k[$j++] = "0111001"; //#9073 + $k[$j++] = false; //#9073 + break; //#9073 + } //#9073 + if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#9074 + $k[$j++] = "0111010"; //#9074 + $k[$j++] = false; //#9074 + break; //#9074 + } //#9074 + if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#9075 + $k[$j++] = "0111011"; //#9075 + $k[$j++] = false; //#9075 + break; //#9075 + } //#9075 + if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#9076 + $k[$j++] = "0111100"; //#9076 + $k[$j++] = false; //#9076 + break; //#9076 + } //#9076 + if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#9077 + $k[$j++] = "0111101"; //#9077 + $k[$j++] = false; //#9077 + break; //#9077 + } //#9077 + if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#9078 + $k[$j++] = "0111110"; //#9078 + $k[$j++] = false; //#9078 + break; //#9078 + } //#9078 + if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#9079 + $k[$j++] = "0111111"; //#9079 + $k[$j++] = false; //#9079 + break; //#9079 + } //#9079 + } //#9079 + } else { //#9085 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#9086 + if ($_.ai310x) { //#9084 + $k[$j++] = "0111000"; //#9084 + $k[$j++] = false; //#9084 + break; //#9084 + } //#9084 + if ($_.ai320x) { //#9085 + $k[$j++] = "0111001"; //#9085 + $k[$j++] = false; //#9085 + break; //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + if ($_.ais.length >= 2) { //#9097 + $k[$j++] = 'ai392x'; //#9093 + $k[$j++] = false; //#9093 + for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#9093 + var _25 = $k[--$j]; //#9093 + $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#9093 + } //#9093 + var _26 = $k[--$j]; //#9093 + $_[$k[--$j]] = _26; //#9093 + if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#9096 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9095 + $k[$j++] = "01100"; //#9095 + $k[$j++] = true; //#9095 + break; //#9095 + } //#9095 + } //#9095 + } //#9095 + if ($_.ais.length >= 2) { //#9105 + $k[$j++] = 'ai393x'; //#9101 + $k[$j++] = false; //#9101 + for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#9101 + var _2K = $k[--$j]; //#9101 + $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#9101 + } //#9101 + var _2L = $k[--$j]; //#9101 + $_[$k[--$j]] = _2L; //#9101 + if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#9104 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9103 + $k[$j++] = "01101"; //#9103 + $k[$j++] = true; //#9103 + break; //#9103 + } //#9103 + } //#9103 + } //#9103 + if ($eq($get($_.ais, 0), "01")) { //#9108 + $k[$j++] = "1"; //#9108 + $k[$j++] = true; //#9108 + break; //#9108 + } //#9108 + $k[$j++] = "00"; //#9111 + $k[$j++] = true; //#9111 + break; //#9111 + } //#9111 + $_.gpfallow = $k[--$j]; //#9114 + $_.method = $k[--$j]; //#9115 $_.conv12to40 = function() { - var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#8968 - var _2Z = $k[--$j]; //#8969 - var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#8969 - $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#8969 - var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#8970 - $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#8970 - var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#8971 - $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#8971 - var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#8972 - $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#8972 - $k[$j++] = _2Y; //#8973 - $k[$j++] = _2Z; //#8973 - $j--; //#8973 - }; //#8973 + var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#9118 + var _2Z = $k[--$j]; //#9119 + var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#9119 + $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#9119 + var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#9120 + $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#9120 + var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#9121 + $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#9121 + var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#9122 + $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#9122 + $k[$j++] = _2Y; //#9123 + $k[$j++] = _2Z; //#9123 + $j--; //#9123 + }; //#9123 $_.conv13to44 = function() { - var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#8977 - var _2s = $k[--$j]; //#8978 - var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#8978 - $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#8978 - $k[$j++] = _2r; //#8979 - $k[$j++] = _2r; //#8979 - $k[$j++] = $geti(_2s, 1, 12); //#8979 - $_.conv12to40(); //#8979 - var _2y = $k[--$j]; //#8979 - $puti($k[--$j], 4, _2y); //#8979 - }; //#8979 + var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#9127 + var _2s = $k[--$j]; //#9128 + var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#9128 + $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#9128 + $k[$j++] = _2r; //#9129 + $k[$j++] = _2r; //#9129 + $k[$j++] = $geti(_2s, 1, 12); //#9129 + $_.conv12to40(); //#9129 + var _2y = $k[--$j]; //#9129 + $puti($k[--$j], 4, _2y); //#9129 + }; //#9129 $_.tobin = function() { - var _31 = $s($k[--$j]); //#8983 - $k[$j++] = _31; //#8983 - for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#8983 - var _34 = $k[--$j]; //#8983 - $put(_34, _33, 48); //#8983 - $k[$j++] = _34; //#8983 - } //#8983 - var _35 = $k[--$j]; //#8984 - var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#8984 - $puti(_35, _35.length - _38.length, _38); //#8984 - $k[$j++] = _35; //#8984 - }; //#8984 - $_.fnc1 = -1; //#8987 - $_.lnumeric = -2; //#8987 - $_.lalphanumeric = -3; //#8987 - $_.liso646 = -4; //#8987 - if ($eq($_.method, "00")) { //#8992 - $_.cdf = $a([]); //#8990 - $_.gpf = $a([]); //#8991 - } //#8991 - if ($eq($_.method, "1")) { //#9001 - $k[$j++] = 'cdf'; //#8995 - $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#8995 - $_.conv13to44(); //#8995 - var _3G = $k[--$j]; //#8995 - $_[$k[--$j]] = _3G; //#8995 - $k[$j++] = Infinity; //#8996 - var _3I = $_.cdf; //#8996 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#8996 - $k[$j++] = $f($get(_3I, _3J) - 48); //#8996 - } //#8996 - $_.cdf = $a(); //#8996 - $_.gpf = $a([]); //#8997 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#8998 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#8999 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9000 - } //#9000 - if ($eq($_.method, "0100")) { //#9012 - $_.cdf = $s(55); //#9004 - $k[$j++] = $_.cdf; //#9005 - $k[$j++] = 0; //#9005 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9005 - $_.conv12to40(); //#9005 - var _3d = $k[--$j]; //#9005 - var _3e = $k[--$j]; //#9005 - $puti($k[--$j], _3e, _3d); //#9005 - $k[$j++] = $_.cdf; //#9006 - $k[$j++] = 40; //#9006 - $k[$j++] = $cvi($get($_.vals, 1)); //#9006 - $k[$j++] = 15; //#9006 - $_.tobin(); //#9006 - var _3j = $k[--$j]; //#9006 - var _3k = $k[--$j]; //#9006 - $puti($k[--$j], _3k, _3j); //#9006 - $k[$j++] = Infinity; //#9007 - var _3m = $_.cdf; //#9007 - for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9007 - $k[$j++] = $get(_3m, _3n) - 48; //#9007 - } //#9007 - $_.cdf = $a(); //#9007 - $_.gpf = $a([]); //#9008 - $_.ais = $a([]); //#9009 - $_.vals = $a([]); //#9010 - $_.fncs = $a([]); //#9011 - } //#9011 - if ($eq($_.method, "0101")) { //#9028 - $_.cdf = $s(55); //#9015 - $k[$j++] = $_.cdf; //#9016 - $k[$j++] = 0; //#9016 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9016 - $_.conv12to40(); //#9016 - var _41 = $k[--$j]; //#9016 - var _42 = $k[--$j]; //#9016 - $puti($k[--$j], _42, _41); //#9016 - if ($eq($get($_.ais, 1), "3202")) { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)); //#9018 - $k[$j++] = 15; //#9018 - $_.tobin(); //#9018 - } else { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9020 - $k[$j++] = 15; //#9020 - $_.tobin(); //#9020 - } //#9020 - $puti($_.cdf, 40, $k[--$j]); //#9022 - $k[$j++] = Infinity; //#9023 - var _4C = $_.cdf; //#9023 - for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9023 - $k[$j++] = $get(_4C, _4D) - 48; //#9023 - } //#9023 - $_.cdf = $a(); //#9023 - $_.gpf = $a([]); //#9024 - $_.ais = $a([]); //#9025 - $_.vals = $a([]); //#9026 - $_.fncs = $a([]); //#9027 - } //#9027 - if ($_.method.length == 7) { //#9050 - $_.cdf = $s(76); //#9031 - $k[$j++] = $_.cdf; //#9032 - $k[$j++] = 0; //#9032 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9032 - $_.conv12to40(); //#9032 - var _4R = $k[--$j]; //#9032 - var _4S = $k[--$j]; //#9032 - $puti($k[--$j], _4S, _4R); //#9032 - var _4U = $s(6); //#9033 - $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9033 - $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9034 - $k[$j++] = $cvi(_4U); //#9034 - $k[$j++] = 20; //#9034 - $_.tobin(); //#9034 - $puti($_.cdf, 40, $k[--$j]); //#9035 - if ($_.ais.length == 3) { //#9042 - var _4f = $get($_.vals, 2); //#9037 - $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9040 - } else { //#9042 - $k[$j++] = 38400; //#9042 - } //#9042 - $k[$j++] = 16; //#9044 - $_.tobin(); //#9044 - $puti($_.cdf, 60, $k[--$j]); //#9044 - $k[$j++] = Infinity; //#9045 - var _4l = $_.cdf; //#9045 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9045 - $k[$j++] = $get(_4l, _4m) - 48; //#9045 - } //#9045 - $_.cdf = $a(); //#9045 - $_.gpf = $a([]); //#9046 - $_.ais = $a([]); //#9047 - $_.vals = $a([]); //#9048 - $_.fncs = $a([]); //#9049 - } //#9049 - if ($eq($_.method, "01100")) { //#9061 - $_.cdf = $s(42); //#9053 - $k[$j++] = $_.cdf; //#9054 - $k[$j++] = 0; //#9054 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9054 - $_.conv12to40(); //#9054 - var _50 = $k[--$j]; //#9054 - var _51 = $k[--$j]; //#9054 - $puti($k[--$j], _51, _50); //#9054 - $k[$j++] = $_.cdf; //#9055 - $k[$j++] = 40; //#9055 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9055 - $k[$j++] = 2; //#9055 - $_.tobin(); //#9055 - var _57 = $k[--$j]; //#9055 - var _58 = $k[--$j]; //#9055 - $puti($k[--$j], _58, _57); //#9055 - $k[$j++] = Infinity; //#9056 - var _5A = $_.cdf; //#9056 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9056 - $k[$j++] = $get(_5A, _5B) - 48; //#9056 - } //#9056 - $_.cdf = $a(); //#9056 - $k[$j++] = Infinity; //#9057 - $forall($get($_.vals, 1)); //#9057 - if ($_.ais.length > 2) { //#9057 - $k[$j++] = $_.fnc1; //#9057 - } //#9057 - $_.gpf = $a(); //#9057 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9058 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9059 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9060 - } //#9060 - if ($eq($_.method, "01101")) { //#9073 - $_.cdf = $s(52); //#9064 - $k[$j++] = $_.cdf; //#9065 - $k[$j++] = 0; //#9065 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9065 - $_.conv12to40(); //#9065 - var _5Z = $k[--$j]; //#9065 - var _5a = $k[--$j]; //#9065 - $puti($k[--$j], _5a, _5Z); //#9065 - $k[$j++] = $_.cdf; //#9066 - $k[$j++] = 40; //#9066 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9066 - $k[$j++] = 2; //#9066 - $_.tobin(); //#9066 - var _5g = $k[--$j]; //#9066 - var _5h = $k[--$j]; //#9066 - $puti($k[--$j], _5h, _5g); //#9066 - $k[$j++] = $_.cdf; //#9067 - $k[$j++] = 42; //#9067 - $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9067 - $k[$j++] = 10; //#9067 - $_.tobin(); //#9067 - var _5n = $k[--$j]; //#9067 - var _5o = $k[--$j]; //#9067 - $puti($k[--$j], _5o, _5n); //#9067 - $k[$j++] = Infinity; //#9068 - var _5q = $_.cdf; //#9068 - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9068 - $k[$j++] = $get(_5q, _5r) - 48; //#9068 - } //#9068 - $_.cdf = $a(); //#9068 - $k[$j++] = Infinity; //#9069 - var _5w = $get($_.vals, 1); //#9069 - var _5x = $geti(_5w, 3, _5w.length - 3); //#9069 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9069 - $k[$j++] = $get(_5x, _5y); //#9069 - } //#9069 - if ($_.ais.length > 2) { //#9069 - $k[$j++] = $_.fnc1; //#9069 - } //#9069 - $_.gpf = $a(); //#9069 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9070 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9071 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9072 - } //#9072 - if ($_.gpfallow) { //#9079 - $_.vlf = $a(2); //#9077 - } else { //#9079 - $_.vlf = $a([]); //#9079 - } //#9079 - if (!bwipp_databarexpanded.__9120__) { //#9120 - $_ = Object.create($_); //#9120 - $k[$j++] = Infinity; //#9093 - for (var _6G = 0; _6G <= 119; _6G += 1) { //#9092 - var _6I = $strcpy($s(2), "00"); //#9085 - var _6K = $cvrs($s(2), _6G, 11); //#9085 - $puti(_6I, 2 - _6K.length, _6K); //#9086 - $k[$j++] = _6G; //#9087 - $k[$j++] = _6I; //#9087 - if ($get(_6I, 0) == 65) { //#9087 - var _6M = $k[--$j]; //#9087 - $put(_6M, 0, 94); //#9087 - $k[$j++] = _6M; //#9087 - } //#9087 - var _6N = $k[--$j]; //#9088 - $k[$j++] = _6N; //#9088 - if ($get(_6N, 1) == 65) { //#9088 - var _6P = $k[--$j]; //#9088 - $put(_6P, 1, 94); //#9088 - $k[$j++] = _6P; //#9088 - } //#9088 - var _6Q = $k[--$j]; //#9089 - var _6T = $strcpy($s(7), "0000000"); //#9090 - var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9090 - $puti(_6T, 7 - _6V.length, _6V); //#9091 - $k[$j++] = _6Q; //#9091 - $k[$j++] = _6T; //#9091 - } //#9091 - $k[$j++] = $_.lalphanumeric; //#9093 - $k[$j++] = "0000"; //#9093 - $_.numeric = $d(); //#9094 - $k[$j++] = Infinity; //#9103 - for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9097 - $k[$j++] = _6Y; //#9097 - $k[$j++] = _6Y - 43; //#9097 - $k[$j++] = 5; //#9097 - $_.tobin(); //#9097 - } //#9097 - $k[$j++] = $_.fnc1; //#9099 - $k[$j++] = "01111"; //#9099 - for (var _6a = 65; _6a <= 90; _6a += 1) { //#9099 - $k[$j++] = _6a; //#9099 - $k[$j++] = _6a - 33; //#9099 - $k[$j++] = 6; //#9099 - $_.tobin(); //#9099 - } //#9099 - $k[$j++] = 42; //#9101 - $k[$j++] = "111010"; //#9101 - for (var _6b = 44; _6b <= 47; _6b += 1) { //#9101 - $k[$j++] = _6b; //#9101 - $k[$j++] = _6b + 15; //#9101 - $k[$j++] = 6; //#9101 - $_.tobin(); //#9101 - } //#9101 - $k[$j++] = $_.lnumeric; //#9103 - $k[$j++] = "000"; //#9103 - $k[$j++] = $_.liso646; //#9103 - $k[$j++] = "00100"; //#9103 - $_.alphanumeric = $d(); //#9104 - $k[$j++] = Infinity; //#9118 - for (var _6f = 48; _6f <= 57; _6f += 1) { //#9107 - $k[$j++] = _6f; //#9107 - $k[$j++] = _6f - 43; //#9107 - $k[$j++] = 5; //#9107 - $_.tobin(); //#9107 - } //#9107 - $k[$j++] = $_.fnc1; //#9109 - $k[$j++] = "01111"; //#9109 - for (var _6h = 65; _6h <= 90; _6h += 1) { //#9109 - $k[$j++] = _6h; //#9109 - $k[$j++] = _6h - 1; //#9109 - $k[$j++] = 7; //#9109 - $_.tobin(); //#9109 - } //#9109 - for (var _6i = 97; _6i <= 122; _6i += 1) { //#9110 - $k[$j++] = _6i; //#9110 - $k[$j++] = _6i - 7; //#9110 - $k[$j++] = 7; //#9110 - $_.tobin(); //#9110 - } //#9110 - $k[$j++] = 33; //#9113 - $k[$j++] = "11101000"; //#9113 - $k[$j++] = 34; //#9113 - $k[$j++] = "11101001"; //#9113 - for (var _6j = 37; _6j <= 47; _6j += 1) { //#9113 - $k[$j++] = _6j; //#9113 - $k[$j++] = _6j + 197; //#9113 - $k[$j++] = 8; //#9113 - $_.tobin(); //#9113 - } //#9113 - for (var _6k = 58; _6k <= 63; _6k += 1) { //#9114 - $k[$j++] = _6k; //#9114 - $k[$j++] = _6k + 187; //#9114 - $k[$j++] = 8; //#9114 - $_.tobin(); //#9114 - } //#9114 - $k[$j++] = 95; //#9118 - $k[$j++] = "11111011"; //#9118 - $k[$j++] = 32; //#9118 - $k[$j++] = "11111100"; //#9118 - $k[$j++] = $_.lnumeric; //#9118 - $k[$j++] = "000"; //#9118 - $k[$j++] = $_.lalphanumeric; //#9118 - $k[$j++] = "00100"; //#9118 - $_.iso646 = $d(); //#9119 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9119 - bwipp_databarexpanded.__9120__ = 1; //#9119 - $_ = Object.getPrototypeOf($_); //#9119 - } //#9119 - for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9138 - $_.i = _6r; //#9124 - $_.ai = $get($_.ais, $_.i); //#9125 - $_.val = $get($_.vals, $_.i); //#9126 - var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9127 - $puti(_71, 0, $_.gpf); //#9128 - $k[$j++] = _71; //#9129 - $k[$j++] = _71; //#9129 - $k[$j++] = $_.gpf.length; //#9129 - $k[$j++] = $_.ai; //#9129 - $k[$j++] = Infinity; //#9129 - var _75 = $k[--$j]; //#9129 - var _76 = $k[--$j]; //#9129 - $k[$j++] = _75; //#9129 - $forall(_76); //#9129 - var _77 = $a(); //#9129 - var _78 = $k[--$j]; //#9129 - $puti($k[--$j], _78, _77); //#9129 - var _7A = $k[--$j]; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = $_.gpf.length + $_.ai.length; //#9130 - $k[$j++] = $_.val; //#9130 - $k[$j++] = Infinity; //#9130 - var _7E = $k[--$j]; //#9130 - var _7F = $k[--$j]; //#9130 - $k[$j++] = _7E; //#9130 - $forall(_7F); //#9130 - var _7G = $a(); //#9130 - var _7H = $k[--$j]; //#9130 - $puti($k[--$j], _7H, _7G); //#9130 - $_.gpf = $k[--$j]; //#9131 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9137 - var _7Q = $a($_.gpf.length + 1); //#9133 - $puti(_7Q, 0, $_.gpf); //#9134 - $put(_7Q, $_.gpf.length, $_.fnc1); //#9135 - $_.gpf = _7Q; //#9136 - } //#9136 - } //#9136 - $_.rembits = function() { - var _7U = $k[--$j]; //#9142 - var _7V = 48; //#9144 - var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9144 - if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9144 - var _ = _7V; //#9144 - _7V = _7W; //#9144 - _7W = _; //#9144 - } //#9144 - var _7X = ~~(_7W / 12); //#9145 - $k[$j++] = _7U; //#9149 - $k[$j++] = _7W; //#9149 - $k[$j++] = _7X; //#9149 - if ((_7X % $_.segments) == 1) { //#9148 - var _7Z = $k[--$j]; //#9146 - var _7a = $k[--$j]; //#9146 - $k[$j++] = $f(_7Z + 1) * 12; //#9146 - $k[$j++] = _7a; //#9146 - $j--; //#9146 - } else { //#9148 - $j--; //#9148 - } //#9148 - var _7b = $k[--$j]; //#9150 - var _7c = $k[--$j]; //#9150 - $k[$j++] = $f(_7b - _7c); //#9150 - }; //#9150 - $_.encode = function() { - var _7d = $k[--$j]; //#9154 - $k[$j++] = _7d; //#9154 - if ($ne(_7d, 'raw')) { //#9154 - var _7e = $k[--$j]; //#9154 - var _7g = $get(_7e, $k[--$j]); //#9154 - $k[$j++] = _7g; //#9154 - } else { //#9154 - $j--; //#9154 - } //#9154 - $k[$j++] = Infinity; //#9155 - var _7h = $k[--$j]; //#9155 - var _7i = $k[--$j]; //#9155 - $k[$j++] = _7h; //#9155 - $forall(_7i, function() { //#9155 - var _7j = $k[--$j]; //#9155 - $k[$j++] = $f(_7j - 48); //#9155 - }); //#9155 - var _7k = $a(); //#9155 - $puti($_.gpfenc, $_.j, _7k); //#9157 - $_.j = _7k.length + $_.j; //#9158 - }; //#9158 - $k[$j++] = Infinity; //#9162 - for (var _7p = 0, _7q = $_.gpf.length; _7p < _7q; _7p++) { //#9162 - $k[$j++] = 0; //#9162 - } //#9162 - $k[$j++] = 0; //#9162 - $k[$j++] = -1; //#9162 - $_.numericruns = $a(); //#9162 - $k[$j++] = Infinity; //#9163 - for (var _7t = 0, _7u = $_.gpf.length; _7t < _7u; _7t++) { //#9163 - $k[$j++] = 0; //#9163 - } //#9163 - $k[$j++] = 0; //#9163 - $_.alphanumericruns = $a(); //#9163 - $k[$j++] = Infinity; //#9164 - for (var _7x = 0, _7y = $_.gpf.length; _7x < _7y; _7x++) { //#9164 - $k[$j++] = 0; //#9164 - } //#9164 - $k[$j++] = 9999; //#9164 - $_.nextiso646only = $a(); //#9164 - for (var _81 = $_.gpf.length - 1; _81 >= 0; _81 -= 1) { //#9186 - $_.i = _81; //#9166 - var _86 = $strcpy($s(2), "00"); //#9168 - var _89 = $get($_.gpf, $_.i); //#9169 - $k[$j++] = $get($_.gpf, $_.i); //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = 0; //#9169 - $k[$j++] = _89; //#9169 - if (_89 == $_.fnc1) { //#9169 - $j--; //#9169 - $k[$j++] = 94; //#9169 - } //#9169 - var _8B = $k[--$j]; //#9169 - var _8C = $k[--$j]; //#9169 - $put($k[--$j], _8C, _8B); //#9169 - if ($_.i < ($_.gpf.length - 1)) { //#9170 - var _8G = $k[--$j]; //#9170 - var _8J = $get($_.gpf, $_.i + 1); //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = 1; //#9170 - $k[$j++] = _8J; //#9170 - if (_8J == $_.fnc1) { //#9170 - $j--; //#9170 - $k[$j++] = 94; //#9170 - } //#9170 - var _8L = $k[--$j]; //#9170 - var _8M = $k[--$j]; //#9170 - $put($k[--$j], _8M, _8L); //#9170 + var _31 = $s($k[--$j]); //#9133 + $k[$j++] = _31; //#9133 + for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#9133 + var _34 = $k[--$j]; //#9133 + $put(_34, _33, 48); //#9133 + $k[$j++] = _34; //#9133 + } //#9133 + var _35 = $k[--$j]; //#9134 + var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#9134 + $puti(_35, _35.length - _38.length, _38); //#9134 + $k[$j++] = _35; //#9134 + }; //#9134 + $_.fnc1 = -1; //#9137 + $_.lnumeric = -2; //#9137 + $_.lalphanumeric = -3; //#9137 + $_.liso646 = -4; //#9137 + if ($eq($_.method, "00")) { //#9142 + $_.cdf = $a([]); //#9140 + $_.gpf = $a([]); //#9141 + } //#9141 + if ($eq($_.method, "1")) { //#9151 + $k[$j++] = 'cdf'; //#9145 + $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#9145 + $_.conv13to44(); //#9145 + var _3G = $k[--$j]; //#9145 + $_[$k[--$j]] = _3G; //#9145 + $k[$j++] = Infinity; //#9146 + var _3I = $_.cdf; //#9146 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#9146 + $k[$j++] = $f($get(_3I, _3J) - 48); //#9146 + } //#9146 + $_.cdf = $a(); //#9146 + $_.gpf = $a([]); //#9147 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#9148 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#9149 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9150 + } //#9150 + if ($eq($_.method, "0100")) { //#9162 + $_.cdf = $s(55); //#9154 + $k[$j++] = $_.cdf; //#9155 + $k[$j++] = 0; //#9155 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9155 + $_.conv12to40(); //#9155 + var _3d = $k[--$j]; //#9155 + var _3e = $k[--$j]; //#9155 + $puti($k[--$j], _3e, _3d); //#9155 + $k[$j++] = $_.cdf; //#9156 + $k[$j++] = 40; //#9156 + $k[$j++] = $cvi($get($_.vals, 1)); //#9156 + $k[$j++] = 15; //#9156 + $_.tobin(); //#9156 + var _3j = $k[--$j]; //#9156 + var _3k = $k[--$j]; //#9156 + $puti($k[--$j], _3k, _3j); //#9156 + $k[$j++] = Infinity; //#9157 + var _3m = $_.cdf; //#9157 + for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9157 + $k[$j++] = $get(_3m, _3n) - 48; //#9157 + } //#9157 + $_.cdf = $a(); //#9157 + $_.gpf = $a([]); //#9158 + $_.ais = $a([]); //#9159 + $_.vals = $a([]); //#9160 + $_.fncs = $a([]); //#9161 + } //#9161 + if ($eq($_.method, "0101")) { //#9178 + $_.cdf = $s(55); //#9165 + $k[$j++] = $_.cdf; //#9166 + $k[$j++] = 0; //#9166 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9166 + $_.conv12to40(); //#9166 + var _41 = $k[--$j]; //#9166 + var _42 = $k[--$j]; //#9166 + $puti($k[--$j], _42, _41); //#9166 + if ($eq($get($_.ais, 1), "3202")) { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)); //#9168 + $k[$j++] = 15; //#9168 + $_.tobin(); //#9168 + } else { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9170 + $k[$j++] = 15; //#9170 + $_.tobin(); //#9170 } //#9170 - var _8Q = $get($_.numeric, $k[--$j]) !== undefined; //#9171 - if (_8Q) { //#9174 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9172 - } else { //#9174 - $put($_.numericruns, $_.i, 0); //#9174 - } //#9174 - var _8Y = $k[--$j]; //#9176 - var _8a = $get($_.alphanumeric, _8Y) !== undefined; //#9176 - $k[$j++] = _8Y; //#9180 - if (_8a) { //#9179 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9177 - } else { //#9179 - $put($_.alphanumericruns, $_.i, 0); //#9179 - } //#9179 - var _8i = $k[--$j]; //#9181 - var _8k = $get($_.iso646, _8i) !== undefined; //#9181 - var _8m = $get($_.alphanumeric, _8i) !== undefined; //#9181 - if (_8k && (!_8m)) { //#9184 - $put($_.nextiso646only, $_.i, 0); //#9182 - } else { //#9184 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9184 - } //#9184 - } //#9184 - $_.gpfenc = $a(252); //#9189 - $_.i = 0; //#9190 - $_.j = 0; //#9190 - $_.mode = "numeric"; //#9190 - for (;;) { //#9280 - if ($_.i == $_.gpf.length) { //#9192 - break; //#9192 + $puti($_.cdf, 40, $k[--$j]); //#9172 + $k[$j++] = Infinity; //#9173 + var _4C = $_.cdf; //#9173 + for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9173 + $k[$j++] = $get(_4C, _4D) - 48; //#9173 + } //#9173 + $_.cdf = $a(); //#9173 + $_.gpf = $a([]); //#9174 + $_.ais = $a([]); //#9175 + $_.vals = $a([]); //#9176 + $_.fncs = $a([]); //#9177 + } //#9177 + if ($_.method.length == 7) { //#9200 + $_.cdf = $s(76); //#9181 + $k[$j++] = $_.cdf; //#9182 + $k[$j++] = 0; //#9182 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9182 + $_.conv12to40(); //#9182 + var _4R = $k[--$j]; //#9182 + var _4S = $k[--$j]; //#9182 + $puti($k[--$j], _4S, _4R); //#9182 + var _4U = $s(6); //#9183 + $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9183 + $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9184 + $k[$j++] = $cvi(_4U); //#9184 + $k[$j++] = 20; //#9184 + $_.tobin(); //#9184 + $puti($_.cdf, 40, $k[--$j]); //#9185 + if ($_.ais.length == 3) { //#9192 + var _4f = $get($_.vals, 2); //#9187 + $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9190 + } else { //#9192 + $k[$j++] = 38400; //#9192 } //#9192 - for (;;) { //#9279 - if ($eq($_.mode, "numeric")) { //#9228 - if ($_.i <= ($_.gpf.length - 2)) { //#9225 - var _90 = $s(2); //#9197 - var _93 = $get($_.gpf, $_.i); //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = 0; //#9198 - $k[$j++] = _93; //#9198 - if (_93 == $_.fnc1) { //#9198 - $j--; //#9198 - $k[$j++] = 94; //#9198 - } //#9198 - var _95 = $k[--$j]; //#9198 - var _96 = $k[--$j]; //#9198 - $put($k[--$j], _96, _95); //#9198 - var _98 = $k[--$j]; //#9199 - var _9B = $get($_.gpf, $_.i + 1); //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = 1; //#9199 - $k[$j++] = _9B; //#9199 - if (_9B == $_.fnc1) { //#9199 - $j--; //#9199 - $k[$j++] = 94; //#9199 - } //#9199 - var _9D = $k[--$j]; //#9199 - var _9E = $k[--$j]; //#9199 - $put($k[--$j], _9E, _9D); //#9199 - var _9G = $k[--$j]; //#9200 - var _9I = $get($_.numeric, _9G) !== undefined; //#9200 - $k[$j++] = _9G; //#9204 - if (_9I) { //#9204 - $k[$j++] = $_.numeric; //#9201 - $_.encode(); //#9201 - $_.i = $_.i + 2; //#9202 - break; //#9203 - } //#9203 - $j--; //#9205 - $k[$j++] = $_.lalphanumeric; //#9206 - $k[$j++] = $_.numeric; //#9206 - $_.encode(); //#9206 - $_.mode = "alphanumeric"; //#9207 - break; //#9208 - } else { //#9225 - var _9P = $get($_.gpf, $_.i); //#9210 - if ((_9P < 48) || (_9P > 57)) { //#9214 - $k[$j++] = $_.lalphanumeric; //#9211 - $k[$j++] = $_.numeric; //#9211 - $_.encode(); //#9211 - $_.mode = "alphanumeric"; //#9212 - break; //#9213 - } //#9213 - $k[$j++] = 'rem'; //#9215 - $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9215 - $_.rembits(); //#9215 - var _9W = $k[--$j]; //#9215 - $_[$k[--$j]] = _9W; //#9215 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#9225 - var _9d = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9217 - var _9i = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9218 - $puti(_9d, 4 - _9i.length, _9i); //#9219 - $k[$j++] = _9d; //#9219 - $k[$j++] = 'raw'; //#9219 - $_.encode(); //#9219 - $_.i = $_.i + 1; //#9220 - break; //#9221 - } else { //#9225 - var _9k = $s(2); //#9223 - $put(_9k, 0, $get($_.gpf, $_.i)); //#9223 - $put(_9k, 1, 94); //#9223 - $k[$j++] = _9k; //#9223 - $k[$j++] = $_.numeric; //#9223 - $_.encode(); //#9223 - $_.i = $_.i + 1; //#9224 - break; //#9225 - } //#9225 - } //#9225 - } //#9225 - if ($eq($_.mode, "alphanumeric")) { //#9255 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9236 - $k[$j++] = $_.fnc1; //#9232 - $k[$j++] = $_.alphanumeric; //#9232 - $_.encode(); //#9232 - $_.mode = "numeric"; //#9233 - $_.i = $_.i + 1; //#9234 - break; //#9235 - } //#9235 - var _A0 = $get($_.gpf, $_.i); //#9237 - var _A2 = $get($_.iso646, _A0) !== undefined; //#9237 - var _A4 = $get($_.alphanumeric, _A0) !== undefined; //#9237 - if (_A2 && (!_A4)) { //#9241 - $k[$j++] = $_.liso646; //#9238 - $k[$j++] = $_.alphanumeric; //#9238 - $_.encode(); //#9238 - $_.mode = "iso646"; //#9239 - break; //#9240 - } //#9240 - if ($get($_.numericruns, $_.i) >= 6) { //#9246 - $k[$j++] = $_.lnumeric; //#9243 - $k[$j++] = $_.alphanumeric; //#9243 - $_.encode(); //#9243 - $_.mode = "numeric"; //#9244 - break; //#9245 - } //#9245 - var _AE = $get($_.numericruns, $_.i); //#9247 - if ((_AE >= 4) && ($f(_AE + $_.i) == $_.gpf.length)) { //#9251 - $k[$j++] = $_.lnumeric; //#9248 - $k[$j++] = $_.alphanumeric; //#9248 - $_.encode(); //#9248 - $_.mode = "numeric"; //#9249 - break; //#9250 - } //#9250 - $k[$j++] = $get($_.gpf, $_.i); //#9252 - $k[$j++] = $_.alphanumeric; //#9252 - $_.encode(); //#9252 - $_.i = $_.i + 1; //#9253 - break; //#9254 - } //#9254 - if ($eq($_.mode, "iso646")) { //#9277 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9263 - $k[$j++] = $_.fnc1; //#9259 - $k[$j++] = $_.iso646; //#9259 - $_.encode(); //#9259 - $_.mode = "numeric"; //#9260 - $_.i = $_.i + 1; //#9261 - break; //#9262 - } //#9262 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9268 - $k[$j++] = $_.lnumeric; //#9265 - $k[$j++] = $_.iso646; //#9265 - $_.encode(); //#9265 - $_.mode = "numeric"; //#9266 - break; //#9267 - } //#9267 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9273 - $k[$j++] = $_.lalphanumeric; //#9270 - $k[$j++] = $_.iso646; //#9270 - $_.encode(); //#9270 - $_.mode = "alphanumeric"; //#9271 - break; //#9272 - } //#9272 - $k[$j++] = $get($_.gpf, $_.i); //#9274 - $k[$j++] = $_.iso646; //#9274 - $_.encode(); //#9274 - $_.i = $_.i + 1; //#9275 - break; //#9276 - } //#9276 - } //#9276 - } //#9276 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9281 - var _Ay = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9285 - $k[$j++] = _Ay; //#9285 - $k[$j++] = _Ay; //#9285 - $_.rembits(); //#9285 - var _Az = $k[--$j]; //#9285 - $_.pad = $a(_Az); //#9285 - $k[$j++] = _Az; //#9292 - if ($_.vlf.length != 0) { //#9291 - var _B2 = $k[--$j]; //#9287 - var _B4 = ~~($f($k[--$j] + _B2) / 12); //#9288 - $put($_.vlf, 0, _B4 % 2); //#9288 - var _B6 = (_B4 <= 14) ? 0 : 1; //#9289 - $put($_.vlf, 1, _B6); //#9289 - } else { //#9291 - $j -= 2; //#9291 - } //#9291 - if ($_.pad.length > 0) { //#9301 - for (var _BB = 0, _BA = $_.pad.length - 1; _BB <= _BA; _BB += 5) { //#9297 - $_.i = _BB; //#9295 - var _BC = $_.pad; //#9296 - var _BD = $_.i; //#9296 - var _BE = $a([0, 0, 1, 0, 0]); //#9296 - var _BF = $_.pad; //#9296 - var _BG = $_.i; //#9296 - var _BH = 5; //#9296 - var _BI = _BF.length - _BG; //#9296 - if ((_BF.length - _BG) > 5) { //#9296 - var _ = _BH; //#9296 - _BH = _BI; //#9296 - _BI = _; //#9296 - } //#9296 - $puti(_BC, _BD, $geti(_BE, 0, _BI)); //#9296 - } //#9296 - if ($eq($_.mode, "numeric")) { //#9300 - $k[$j++] = Infinity; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $aload($_.pad); //#9299 - $_.pad = $geti($a(), 0, $_.pad.length); //#9299 - } //#9299 - } //#9299 - $k[$j++] = Infinity; //#9310 - var _BQ = $_.linkage ? 1 : 0; //#9305 - $k[$j++] = _BQ; //#9306 - $forall($_.method, function() { //#9306 - var _BS = $k[--$j]; //#9306 - $k[$j++] = $f(_BS - 48); //#9306 - }); //#9306 - $aload($_.vlf); //#9307 - $aload($_.cdf); //#9308 - $aload($_.gpf); //#9309 - $aload($_.pad); //#9310 - $_.binval = $a(); //#9310 - $_.datalen = ~~($_.binval.length / 12); //#9312 + $k[$j++] = 16; //#9194 + $_.tobin(); //#9194 + $puti($_.cdf, 60, $k[--$j]); //#9194 + $k[$j++] = Infinity; //#9195 + var _4l = $_.cdf; //#9195 + for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9195 + $k[$j++] = $get(_4l, _4m) - 48; //#9195 + } //#9195 + $_.cdf = $a(); //#9195 + $_.gpf = $a([]); //#9196 + $_.ais = $a([]); //#9197 + $_.vals = $a([]); //#9198 + $_.fncs = $a([]); //#9199 + } //#9199 + if ($eq($_.method, "01100")) { //#9211 + $_.cdf = $s(42); //#9203 + $k[$j++] = $_.cdf; //#9204 + $k[$j++] = 0; //#9204 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9204 + $_.conv12to40(); //#9204 + var _50 = $k[--$j]; //#9204 + var _51 = $k[--$j]; //#9204 + $puti($k[--$j], _51, _50); //#9204 + $k[$j++] = $_.cdf; //#9205 + $k[$j++] = 40; //#9205 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9205 + $k[$j++] = 2; //#9205 + $_.tobin(); //#9205 + var _57 = $k[--$j]; //#9205 + var _58 = $k[--$j]; //#9205 + $puti($k[--$j], _58, _57); //#9205 + $k[$j++] = Infinity; //#9206 + var _5A = $_.cdf; //#9206 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9206 + $k[$j++] = $get(_5A, _5B) - 48; //#9206 + } //#9206 + $_.cdf = $a(); //#9206 + $k[$j++] = Infinity; //#9207 + $forall($get($_.vals, 1)); //#9207 + if ($_.ais.length > 2) { //#9207 + $k[$j++] = $_.fnc1; //#9207 + } //#9207 + $_.gpf = $a(); //#9207 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9208 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9209 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9210 + } //#9210 + if ($eq($_.method, "01101")) { //#9223 + $_.cdf = $s(52); //#9214 + $k[$j++] = $_.cdf; //#9215 + $k[$j++] = 0; //#9215 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9215 + $_.conv12to40(); //#9215 + var _5Z = $k[--$j]; //#9215 + var _5a = $k[--$j]; //#9215 + $puti($k[--$j], _5a, _5Z); //#9215 + $k[$j++] = $_.cdf; //#9216 + $k[$j++] = 40; //#9216 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9216 + $k[$j++] = 2; //#9216 + $_.tobin(); //#9216 + var _5g = $k[--$j]; //#9216 + var _5h = $k[--$j]; //#9216 + $puti($k[--$j], _5h, _5g); //#9216 + $k[$j++] = $_.cdf; //#9217 + $k[$j++] = 42; //#9217 + $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9217 + $k[$j++] = 10; //#9217 + $_.tobin(); //#9217 + var _5n = $k[--$j]; //#9217 + var _5o = $k[--$j]; //#9217 + $puti($k[--$j], _5o, _5n); //#9217 + $k[$j++] = Infinity; //#9218 + var _5q = $_.cdf; //#9218 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9218 + $k[$j++] = $get(_5q, _5r) - 48; //#9218 + } //#9218 + $_.cdf = $a(); //#9218 + $k[$j++] = Infinity; //#9219 + var _5w = $get($_.vals, 1); //#9219 + var _5x = $geti(_5w, 3, _5w.length - 3); //#9219 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9219 + $k[$j++] = $get(_5x, _5y); //#9219 + } //#9219 + if ($_.ais.length > 2) { //#9219 + $k[$j++] = $_.fnc1; //#9219 + } //#9219 + $_.gpf = $a(); //#9219 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9220 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9221 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9222 + } //#9222 + if ($_.gpfallow) { //#9229 + $_.vlf = $a(2); //#9227 + } else { //#9229 + $_.vlf = $a([]); //#9229 + } //#9229 + if (!bwipp_databarexpanded.__9270__) { //#9270 + $_ = Object.create($_); //#9270 + $k[$j++] = Infinity; //#9233 + for (var _6G = 0; _6G <= 119; _6G += 1) { //#9242 + var _6I = $strcpy($s(2), "00"); //#9235 + var _6K = $cvrs($s(2), _6G, 11); //#9235 + $puti(_6I, 2 - _6K.length, _6K); //#9236 + $k[$j++] = _6G; //#9237 + $k[$j++] = _6I; //#9237 + if ($get(_6I, 0) == 65) { //#9237 + var _6M = $k[--$j]; //#9237 + $put(_6M, 0, 94); //#9237 + $k[$j++] = _6M; //#9237 + } //#9237 + var _6N = $k[--$j]; //#9238 + $k[$j++] = _6N; //#9238 + if ($get(_6N, 1) == 65) { //#9238 + var _6P = $k[--$j]; //#9238 + $put(_6P, 1, 94); //#9238 + $k[$j++] = _6P; //#9238 + } //#9238 + var _6Q = $k[--$j]; //#9239 + var _6T = $strcpy($s(7), "0000000"); //#9240 + var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9240 + $puti(_6T, 7 - _6V.length, _6V); //#9241 + $k[$j++] = _6Q; //#9241 + $k[$j++] = _6T; //#9241 + } //#9241 + $k[$j++] = $_.lalphanumeric; //#9243 + $k[$j++] = "0000"; //#9243 + $_.numeric = $d(); //#9244 + $k[$j++] = Infinity; //#9246 + for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9247 + $k[$j++] = _6Y; //#9247 + $k[$j++] = _6Y - 43; //#9247 + $k[$j++] = 5; //#9247 + $_.tobin(); //#9247 + } //#9247 + $k[$j++] = $_.fnc1; //#9249 + $k[$j++] = "01111"; //#9249 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#9249 + $k[$j++] = _6a; //#9249 + $k[$j++] = _6a - 33; //#9249 + $k[$j++] = 6; //#9249 + $_.tobin(); //#9249 + } //#9249 + $k[$j++] = 42; //#9251 + $k[$j++] = "111010"; //#9251 + for (var _6b = 44; _6b <= 47; _6b += 1) { //#9251 + $k[$j++] = _6b; //#9251 + $k[$j++] = _6b + 15; //#9251 + $k[$j++] = 6; //#9251 + $_.tobin(); //#9251 + } //#9251 + $k[$j++] = $_.lnumeric; //#9253 + $k[$j++] = "000"; //#9253 + $k[$j++] = $_.liso646; //#9253 + $k[$j++] = "00100"; //#9253 + $_.alphanumeric = $d(); //#9254 + $k[$j++] = Infinity; //#9256 + for (var _6f = 48; _6f <= 57; _6f += 1) { //#9257 + $k[$j++] = _6f; //#9257 + $k[$j++] = _6f - 43; //#9257 + $k[$j++] = 5; //#9257 + $_.tobin(); //#9257 + } //#9257 + $k[$j++] = $_.fnc1; //#9259 + $k[$j++] = "01111"; //#9259 + for (var _6h = 65; _6h <= 90; _6h += 1) { //#9259 + $k[$j++] = _6h; //#9259 + $k[$j++] = _6h - 1; //#9259 + $k[$j++] = 7; //#9259 + $_.tobin(); //#9259 + } //#9259 + for (var _6i = 97; _6i <= 122; _6i += 1) { //#9260 + $k[$j++] = _6i; //#9260 + $k[$j++] = _6i - 7; //#9260 + $k[$j++] = 7; //#9260 + $_.tobin(); //#9260 + } //#9260 + $k[$j++] = 33; //#9263 + $k[$j++] = "11101000"; //#9263 + $k[$j++] = 34; //#9263 + $k[$j++] = "11101001"; //#9263 + for (var _6j = 37; _6j <= 47; _6j += 1) { //#9263 + $k[$j++] = _6j; //#9263 + $k[$j++] = _6j + 197; //#9263 + $k[$j++] = 8; //#9263 + $_.tobin(); //#9263 + } //#9263 + for (var _6k = 58; _6k <= 63; _6k += 1) { //#9264 + $k[$j++] = _6k; //#9264 + $k[$j++] = _6k + 187; //#9264 + $k[$j++] = 8; //#9264 + $_.tobin(); //#9264 + } //#9264 + $k[$j++] = 95; //#9268 + $k[$j++] = "11111011"; //#9268 + $k[$j++] = 32; //#9268 + $k[$j++] = "11111100"; //#9268 + $k[$j++] = $_.lnumeric; //#9268 + $k[$j++] = "000"; //#9268 + $k[$j++] = $_.lalphanumeric; //#9268 + $k[$j++] = "00100"; //#9268 + $_.iso646 = $d(); //#9269 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9269 + bwipp_databarexpanded.__9270__ = 1; //#9269 + $_ = Object.getPrototypeOf($_); //#9269 + } //#9269 + for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9288 + $_.i = _6r; //#9274 + $_.ai = $get($_.ais, $_.i); //#9275 + $_.val = $get($_.vals, $_.i); //#9276 + var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9277 + $puti(_71, 0, $_.gpf); //#9278 + $k[$j++] = _71; //#9279 + $k[$j++] = _71; //#9279 + $k[$j++] = $_.gpf.length; //#9279 + $k[$j++] = $_.ai; //#9279 + $k[$j++] = Infinity; //#9279 + var _75 = $k[--$j]; //#9279 + var _76 = $k[--$j]; //#9279 + $k[$j++] = _75; //#9279 + $forall(_76); //#9279 + var _77 = $a(); //#9279 + var _78 = $k[--$j]; //#9279 + $puti($k[--$j], _78, _77); //#9279 + var _7A = $k[--$j]; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = $_.gpf.length + $_.ai.length; //#9280 + $k[$j++] = $_.val; //#9280 + $k[$j++] = Infinity; //#9280 + var _7E = $k[--$j]; //#9280 + var _7F = $k[--$j]; //#9280 + $k[$j++] = _7E; //#9280 + $forall(_7F); //#9280 + var _7G = $a(); //#9280 + var _7H = $k[--$j]; //#9280 + $puti($k[--$j], _7H, _7G); //#9280 + $_.gpf = $k[--$j]; //#9281 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9287 + var _7Q = $a($_.gpf.length + 1); //#9283 + $puti(_7Q, 0, $_.gpf); //#9284 + $put(_7Q, $_.gpf.length, $_.fnc1); //#9285 + $_.gpf = _7Q; //#9286 + } //#9286 + } //#9286 + $_.rembits = function() { + var _7U = $k[--$j]; //#9292 + var _7V = 48; //#9294 + var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9294 + if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9294 + var _ = _7V; //#9294 + _7V = _7W; //#9294 + _7W = _; //#9294 + } //#9294 + var _7X = ~~(_7W / 12); //#9295 + $k[$j++] = _7U; //#9299 + $k[$j++] = _7W; //#9299 + $k[$j++] = _7X; //#9299 + if ((_7X % $_.segments) == 1) { //#9298 + var _7Z = $k[--$j]; //#9296 + var _7a = $k[--$j]; //#9296 + $k[$j++] = $f(_7Z + 1) * 12; //#9296 + $k[$j++] = _7a; //#9296 + $j--; //#9296 + } else { //#9298 + $j--; //#9298 + } //#9298 + var _7b = $k[--$j]; //#9300 + var _7c = $k[--$j]; //#9300 + $k[$j++] = $f(_7b - _7c); //#9300 + }; //#9300 + $_.encode = function() { + var _7d = $k[--$j]; //#9304 + $k[$j++] = _7d; //#9304 + if ($ne(_7d, 'raw')) { //#9304 + var _7e = $k[--$j]; //#9304 + var _7g = $get(_7e, $k[--$j]); //#9304 + $k[$j++] = _7g; //#9304 + } else { //#9304 + $j--; //#9304 + } //#9304 + var _7h = $k[--$j]; //#9305 + $k[$j++] = _7h; //#9307 + if ((_7h.length + $_.j) >= 252) { //#9307 + $j--; //#9306 + $k[$j++] = 'bwipp.gs1databarexpandedTooLong#9306'; //#9306 + $k[$j++] = "Maximum length exceeded"; //#9306 + bwipp_raiseerror(); //#9306 + } //#9306 + $k[$j++] = Infinity; //#9308 + var _7j = $k[--$j]; //#9308 + var _7k = $k[--$j]; //#9308 + $k[$j++] = _7j; //#9308 + $forall(_7k, function() { //#9308 + var _7l = $k[--$j]; //#9308 + $k[$j++] = $f(_7l - 48); //#9308 + }); //#9308 + var _7m = $a(); //#9308 + $puti($_.gpfenc, $_.j, _7m); //#9310 + $_.j = _7m.length + $_.j; //#9311 + }; //#9311 + $k[$j++] = Infinity; //#9315 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#9315 + $k[$j++] = 0; //#9315 + } //#9315 + $k[$j++] = 0; //#9315 + $k[$j++] = -1; //#9315 + $_.numericruns = $a(); //#9315 + $k[$j++] = Infinity; //#9316 + for (var _7v = 0, _7w = $_.gpf.length; _7v < _7w; _7v++) { //#9316 + $k[$j++] = 0; //#9316 + } //#9316 + $k[$j++] = 0; //#9316 + $_.alphanumericruns = $a(); //#9316 + $k[$j++] = Infinity; //#9317 + for (var _7z = 0, _80 = $_.gpf.length; _7z < _80; _7z++) { //#9317 + $k[$j++] = 0; //#9317 + } //#9317 + $k[$j++] = 9999; //#9317 + $_.nextiso646only = $a(); //#9317 + for (var _83 = $_.gpf.length - 1; _83 >= 0; _83 -= 1) { //#9339 + $_.i = _83; //#9319 + var _88 = $strcpy($s(2), "00"); //#9321 + var _8B = $get($_.gpf, $_.i); //#9322 + $k[$j++] = $get($_.gpf, $_.i); //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = 0; //#9322 + $k[$j++] = _8B; //#9322 + if (_8B == $_.fnc1) { //#9322 + $j--; //#9322 + $k[$j++] = 94; //#9322 + } //#9322 + var _8D = $k[--$j]; //#9322 + var _8E = $k[--$j]; //#9322 + $put($k[--$j], _8E, _8D); //#9322 + if ($_.i < ($_.gpf.length - 1)) { //#9323 + var _8I = $k[--$j]; //#9323 + var _8L = $get($_.gpf, $_.i + 1); //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = 1; //#9323 + $k[$j++] = _8L; //#9323 + if (_8L == $_.fnc1) { //#9323 + $j--; //#9323 + $k[$j++] = 94; //#9323 + } //#9323 + var _8N = $k[--$j]; //#9323 + var _8O = $k[--$j]; //#9323 + $put($k[--$j], _8O, _8N); //#9323 + } //#9323 + var _8S = $get($_.numeric, $k[--$j]) !== undefined; //#9324 + if (_8S) { //#9327 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9325 + } else { //#9327 + $put($_.numericruns, $_.i, 0); //#9327 + } //#9327 + var _8a = $k[--$j]; //#9329 + var _8c = $get($_.alphanumeric, _8a) !== undefined; //#9329 + $k[$j++] = _8a; //#9333 + if (_8c) { //#9332 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9330 + } else { //#9332 + $put($_.alphanumericruns, $_.i, 0); //#9332 + } //#9332 + var _8k = $k[--$j]; //#9334 + var _8m = $get($_.iso646, _8k) !== undefined; //#9334 + var _8o = $get($_.alphanumeric, _8k) !== undefined; //#9334 + if (_8m && (!_8o)) { //#9337 + $put($_.nextiso646only, $_.i, 0); //#9335 + } else { //#9337 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9337 + } //#9337 + } //#9337 + $_.gpfenc = $a(252); //#9342 + $_.i = 0; //#9343 + $_.j = 0; //#9343 + $_.mode = "numeric"; //#9343 + for (;;) { //#9433 + if ($_.i == $_.gpf.length) { //#9345 + break; //#9345 + } //#9345 + for (;;) { //#9432 + if ($eq($_.mode, "numeric")) { //#9381 + if ($_.i <= ($_.gpf.length - 2)) { //#9378 + var _92 = $s(2); //#9350 + var _95 = $get($_.gpf, $_.i); //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = 0; //#9351 + $k[$j++] = _95; //#9351 + if (_95 == $_.fnc1) { //#9351 + $j--; //#9351 + $k[$j++] = 94; //#9351 + } //#9351 + var _97 = $k[--$j]; //#9351 + var _98 = $k[--$j]; //#9351 + $put($k[--$j], _98, _97); //#9351 + var _9A = $k[--$j]; //#9352 + var _9D = $get($_.gpf, $_.i + 1); //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = 1; //#9352 + $k[$j++] = _9D; //#9352 + if (_9D == $_.fnc1) { //#9352 + $j--; //#9352 + $k[$j++] = 94; //#9352 + } //#9352 + var _9F = $k[--$j]; //#9352 + var _9G = $k[--$j]; //#9352 + $put($k[--$j], _9G, _9F); //#9352 + var _9I = $k[--$j]; //#9353 + var _9K = $get($_.numeric, _9I) !== undefined; //#9353 + $k[$j++] = _9I; //#9357 + if (_9K) { //#9357 + $k[$j++] = $_.numeric; //#9354 + $_.encode(); //#9354 + $_.i = $_.i + 2; //#9355 + break; //#9356 + } //#9356 + $j--; //#9358 + $k[$j++] = $_.lalphanumeric; //#9359 + $k[$j++] = $_.numeric; //#9359 + $_.encode(); //#9359 + $_.mode = "alphanumeric"; //#9360 + break; //#9361 + } else { //#9378 + var _9R = $get($_.gpf, $_.i); //#9363 + if ((_9R < 48) || (_9R > 57)) { //#9367 + $k[$j++] = $_.lalphanumeric; //#9364 + $k[$j++] = $_.numeric; //#9364 + $_.encode(); //#9364 + $_.mode = "alphanumeric"; //#9365 + break; //#9366 + } //#9366 + $k[$j++] = 'rem'; //#9368 + $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9368 + $_.rembits(); //#9368 + var _9Y = $k[--$j]; //#9368 + $_[$k[--$j]] = _9Y; //#9368 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#9378 + var _9f = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9370 + var _9k = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9371 + $puti(_9f, 4 - _9k.length, _9k); //#9372 + $k[$j++] = _9f; //#9372 + $k[$j++] = 'raw'; //#9372 + $_.encode(); //#9372 + $_.i = $_.i + 1; //#9373 + break; //#9374 + } else { //#9378 + var _9m = $s(2); //#9376 + $put(_9m, 0, $get($_.gpf, $_.i)); //#9376 + $put(_9m, 1, 94); //#9376 + $k[$j++] = _9m; //#9376 + $k[$j++] = $_.numeric; //#9376 + $_.encode(); //#9376 + $_.i = $_.i + 1; //#9377 + break; //#9378 + } //#9378 + } //#9378 + } //#9378 + if ($eq($_.mode, "alphanumeric")) { //#9408 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9389 + $k[$j++] = $_.fnc1; //#9385 + $k[$j++] = $_.alphanumeric; //#9385 + $_.encode(); //#9385 + $_.mode = "numeric"; //#9386 + $_.i = $_.i + 1; //#9387 + break; //#9388 + } //#9388 + var _A2 = $get($_.gpf, $_.i); //#9390 + var _A4 = $get($_.iso646, _A2) !== undefined; //#9390 + var _A6 = $get($_.alphanumeric, _A2) !== undefined; //#9390 + if (_A4 && (!_A6)) { //#9394 + $k[$j++] = $_.liso646; //#9391 + $k[$j++] = $_.alphanumeric; //#9391 + $_.encode(); //#9391 + $_.mode = "iso646"; //#9392 + break; //#9393 + } //#9393 + if ($get($_.numericruns, $_.i) >= 6) { //#9399 + $k[$j++] = $_.lnumeric; //#9396 + $k[$j++] = $_.alphanumeric; //#9396 + $_.encode(); //#9396 + $_.mode = "numeric"; //#9397 + break; //#9398 + } //#9398 + var _AG = $get($_.numericruns, $_.i); //#9400 + if ((_AG >= 4) && ($f(_AG + $_.i) == $_.gpf.length)) { //#9404 + $k[$j++] = $_.lnumeric; //#9401 + $k[$j++] = $_.alphanumeric; //#9401 + $_.encode(); //#9401 + $_.mode = "numeric"; //#9402 + break; //#9403 + } //#9403 + $k[$j++] = $get($_.gpf, $_.i); //#9405 + $k[$j++] = $_.alphanumeric; //#9405 + $_.encode(); //#9405 + $_.i = $_.i + 1; //#9406 + break; //#9407 + } //#9407 + if ($eq($_.mode, "iso646")) { //#9430 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9416 + $k[$j++] = $_.fnc1; //#9412 + $k[$j++] = $_.iso646; //#9412 + $_.encode(); //#9412 + $_.mode = "numeric"; //#9413 + $_.i = $_.i + 1; //#9414 + break; //#9415 + } //#9415 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9421 + $k[$j++] = $_.lnumeric; //#9418 + $k[$j++] = $_.iso646; //#9418 + $_.encode(); //#9418 + $_.mode = "numeric"; //#9419 + break; //#9420 + } //#9420 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9426 + $k[$j++] = $_.lalphanumeric; //#9423 + $k[$j++] = $_.iso646; //#9423 + $_.encode(); //#9423 + $_.mode = "alphanumeric"; //#9424 + break; //#9425 + } //#9425 + $k[$j++] = $get($_.gpf, $_.i); //#9427 + $k[$j++] = $_.iso646; //#9427 + $_.encode(); //#9427 + $_.i = $_.i + 1; //#9428 + break; //#9429 + } //#9429 + } //#9429 + } //#9429 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9434 + var _B0 = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9438 + $k[$j++] = _B0; //#9438 + $k[$j++] = _B0; //#9438 + $_.rembits(); //#9438 + var _B1 = $k[--$j]; //#9438 + $_.pad = $a(_B1); //#9438 + $k[$j++] = _B1; //#9445 + if ($_.vlf.length != 0) { //#9444 + var _B4 = $k[--$j]; //#9440 + var _B6 = ~~($f($k[--$j] + _B4) / 12); //#9441 + $put($_.vlf, 0, _B6 % 2); //#9441 + var _B8 = (_B6 <= 14) ? 0 : 1; //#9442 + $put($_.vlf, 1, _B8); //#9442 + } else { //#9444 + $j -= 2; //#9444 + } //#9444 + if ($_.pad.length > 0) { //#9454 + for (var _BD = 0, _BC = $_.pad.length - 1; _BD <= _BC; _BD += 5) { //#9450 + $_.i = _BD; //#9448 + var _BE = $_.pad; //#9449 + var _BF = $_.i; //#9449 + var _BG = $a([0, 0, 1, 0, 0]); //#9449 + var _BH = $_.pad; //#9449 + var _BI = $_.i; //#9449 + var _BJ = 5; //#9449 + var _BK = _BH.length - _BI; //#9449 + if ((_BH.length - _BI) > 5) { //#9449 + var _ = _BJ; //#9449 + _BJ = _BK; //#9449 + _BK = _; //#9449 + } //#9449 + $puti(_BE, _BF, $geti(_BG, 0, _BK)); //#9449 + } //#9449 + if ($eq($_.mode, "numeric")) { //#9453 + $k[$j++] = Infinity; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $aload($_.pad); //#9452 + $_.pad = $geti($a(), 0, $_.pad.length); //#9452 + } //#9452 + } //#9452 + $k[$j++] = Infinity; //#9457 + var _BS = $_.linkage ? 1 : 0; //#9458 + $k[$j++] = _BS; //#9459 + $forall($_.method, function() { //#9459 + var _BU = $k[--$j]; //#9459 + $k[$j++] = $f(_BU - 48); //#9459 + }); //#9459 + $aload($_.vlf); //#9460 + $aload($_.cdf); //#9461 + $aload($_.gpf); //#9462 + $aload($_.pad); //#9463 + $_.binval = $a(); //#9463 + $_.datalen = ~~($_.binval.length / 12); //#9465 $_.ncr = function() { - var _BZ = $k[--$j]; //#9315 - var _Ba = $k[--$j]; //#9315 - var _Bb = $f(_Ba - _BZ); //#9315 - if (_BZ < $f(_Ba - _BZ)) { //#9315 - var _ = _Bb; //#9315 - _Bb = _BZ; //#9315 - _BZ = _; //#9315 - } //#9315 - $k[$j++] = _Bb; //#9322 - $k[$j++] = 1; //#9322 - $k[$j++] = 1; //#9322 - for (var _Bd = _Ba, _Bc = $f(_BZ + 1); _Bd >= _Bc; _Bd -= 1) { //#9322 - var _Be = $k[--$j]; //#9318 - var _Bf = $k[--$j]; //#9319 - var _Bg = $k[--$j]; //#9319 - $k[$j++] = _Bg; //#9321 - $k[$j++] = _Bf; //#9321 - $k[$j++] = _Be * _Bd; //#9321 - if ($le(_Bf, _Bg)) { //#9321 - var _Bh = $k[--$j]; //#9320 - var _Bi = $k[--$j]; //#9320 - $k[$j++] = $f(_Bi + 1); //#9320 - $k[$j++] = ~~(_Bh / _Bi); //#9320 - } //#9320 - } //#9320 - for (;;) { //#9326 - var _Bj = $k[--$j]; //#9324 - var _Bk = $k[--$j]; //#9324 - var _Bl = $k[--$j]; //#9324 - $k[$j++] = _Bl; //#9324 - $k[$j++] = _Bk; //#9324 - $k[$j++] = _Bj; //#9324 - if ($gt(_Bk, _Bl)) { //#9324 - break; //#9324 - } //#9324 - var _Bm = $k[--$j]; //#9325 - var _Bn = $k[--$j]; //#9325 - $k[$j++] = $f(_Bn + 1); //#9325 - $k[$j++] = ~~(_Bm / _Bn); //#9325 - } //#9325 - var _Bo = $k[--$j]; //#9327 - var _Bp = $k[--$j]; //#9327 - $k[$j++] = _Bo; //#9327 - $k[$j++] = _Bp; //#9327 - $j--; //#9327 - var _Bq = $k[--$j]; //#9327 - var _Br = $k[--$j]; //#9327 - $k[$j++] = _Bq; //#9327 - $k[$j++] = _Br; //#9327 - $j--; //#9327 - }; //#9327 + var _Bb = $k[--$j]; //#9468 + var _Bc = $k[--$j]; //#9468 + var _Bd = $f(_Bc - _Bb); //#9468 + if (_Bb < $f(_Bc - _Bb)) { //#9468 + var _ = _Bd; //#9468 + _Bd = _Bb; //#9468 + _Bb = _; //#9468 + } //#9468 + $k[$j++] = _Bd; //#9475 + $k[$j++] = 1; //#9475 + $k[$j++] = 1; //#9475 + for (var _Bf = _Bc, _Be = $f(_Bb + 1); _Bf >= _Be; _Bf -= 1) { //#9475 + var _Bg = $k[--$j]; //#9471 + var _Bh = $k[--$j]; //#9472 + var _Bi = $k[--$j]; //#9472 + $k[$j++] = _Bi; //#9474 + $k[$j++] = _Bh; //#9474 + $k[$j++] = _Bg * _Bf; //#9474 + if ($le(_Bh, _Bi)) { //#9474 + var _Bj = $k[--$j]; //#9473 + var _Bk = $k[--$j]; //#9473 + $k[$j++] = $f(_Bk + 1); //#9473 + $k[$j++] = ~~(_Bj / _Bk); //#9473 + } //#9473 + } //#9473 + for (;;) { //#9479 + var _Bl = $k[--$j]; //#9477 + var _Bm = $k[--$j]; //#9477 + var _Bn = $k[--$j]; //#9477 + $k[$j++] = _Bn; //#9477 + $k[$j++] = _Bm; //#9477 + $k[$j++] = _Bl; //#9477 + if ($gt(_Bm, _Bn)) { //#9477 + break; //#9477 + } //#9477 + var _Bo = $k[--$j]; //#9478 + var _Bp = $k[--$j]; //#9478 + $k[$j++] = $f(_Bp + 1); //#9478 + $k[$j++] = ~~(_Bo / _Bp); //#9478 + } //#9478 + var _Bq = $k[--$j]; //#9480 + var _Br = $k[--$j]; //#9480 + $k[$j++] = _Bq; //#9480 + $k[$j++] = _Br; //#9480 + $j--; //#9480 + var _Bs = $k[--$j]; //#9480 + var _Bt = $k[--$j]; //#9480 + $k[$j++] = _Bs; //#9480 + $k[$j++] = _Bt; //#9480 + $j--; //#9480 + }; //#9480 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#9331 - $_.el = $k[--$j]; //#9332 - $_.mw = $k[--$j]; //#9333 - $_.nm = $k[--$j]; //#9334 - $_.val = $k[--$j]; //#9335 - $_.out = $a($_.el); //#9336 - $_.mask = 0; //#9337 - for (var _C1 = 0, _C0 = $f($_.el - 2); _C1 <= _C0; _C1 += 1) { //#9364 - $_.bar = _C1; //#9339 - $_.ew = 1; //#9340 - var _C3 = $_.bar; //#9341 - $_.mask = $_.mask | ((_C3 < 0 ? 1 >>> -_C3 : 1 << _C3)); //#9341 - for (;;) { //#9360 - $k[$j++] = 'sval'; //#9342 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9342 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9342 - $_.ncr(); //#9342 - var _C8 = $k[--$j]; //#9342 - $_[$k[--$j]] = _C8; //#9342 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9345 - $k[$j++] = 'sval'; //#9344 - $k[$j++] = $_.sval; //#9344 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9344 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9344 - $_.ncr(); //#9344 - var _CN = $k[--$j]; //#9344 - var _CO = $k[--$j]; //#9344 - $_[$k[--$j]] = $f(_CO - _CN); //#9344 - } //#9344 - if ($f($_.el - $_.bar) > 2) { //#9354 - $_.lval = 0; //#9347 - for (var _CY = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CX = $f($_.mw + 1); _CY >= _CX; _CY -= 1) { //#9351 - $k[$j++] = $f(($f($f($_.nm - _CY) - $_.ew)) - 1); //#9349 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9349 - $_.ncr(); //#9349 - $_.lval = $f($k[--$j] + $_.lval); //#9350 - } //#9350 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9352 - } else { //#9354 - if ($f($_.nm - $_.ew) > $_.mw) { //#9354 - $_.sval = $f($_.sval - 1); //#9354 - } //#9354 - } //#9354 - $_.val = $f($_.val - $_.sval); //#9356 - if ($_.val < 0) { //#9357 - break; //#9357 - } //#9357 - $_.ew = $_.ew + 1; //#9358 - var _Cs = $_.bar; //#9359 - $_.mask = $_.mask & (~((_Cs < 0 ? 1 >>> -_Cs : 1 << _Cs))); //#9359 - } //#9359 - $_.val = $f($_.val + $_.sval); //#9361 - $_.nm = $f($_.nm - $_.ew); //#9362 - $put($_.out, $_.bar, $_.ew); //#9363 - } //#9363 - $put($_.out, $f($_.el - 1), $_.nm); //#9365 - $k[$j++] = $_.out; //#9366 - }; //#9366 - if (!bwipp_databarexpanded.__9377__) { //#9377 - $_ = Object.create($_); //#9377 - $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9376 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9376 - bwipp_databarexpanded.__9377__ = 1; //#9376 - $_ = Object.getPrototypeOf($_); //#9376 - } //#9376 - $_.dxw = $a($_.datalen); //#9379 - for (var _DA = 0, _D9 = $_.datalen - 1; _DA <= _D9; _DA += 1) { //#9420 - $_.x = _DA; //#9383 - $_.d = $geti($_.binval, $_.x * 12, 12); //#9385 - $k[$j++] = 'd'; //#9386 - $k[$j++] = 0; //#9386 - for (var _DE = 0; _DE <= 11; _DE += 1) { //#9386 - $_.j = _DE; //#9386 - var _DJ = $k[--$j]; //#9386 - $k[$j++] = $f(_DJ + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9386 - } //#9386 - var _DK = $k[--$j]; //#9386 - $_[$k[--$j]] = _DK; //#9386 - $_.j = 0; //#9388 - for (;;) { //#9398 - if ($le($_.d, $get($_.tab174, $_.j))) { //#9396 - var _DS = $geti($_.tab174, $_.j + 1, 7); //#9390 - for (var _DT = 0, _DU = _DS.length; _DT < _DU; _DT++) { //#9390 - $k[$j++] = $get(_DS, _DT); //#9390 - } //#9390 - $_.dte = $k[--$j]; //#9391 - $_.dto = $k[--$j]; //#9391 - $_.dmwe = $k[--$j]; //#9392 - $_.dmwo = $k[--$j]; //#9392 - $_.dele = $k[--$j]; //#9393 - $_.delo = $k[--$j]; //#9393 - $_.dgs = $k[--$j]; //#9394 - break; //#9395 - } //#9395 - $_.j = $_.j + 8; //#9397 - } //#9397 - $k[$j++] = 'dwo'; //#9400 - $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9400 - $k[$j++] = $_.delo; //#9400 - $k[$j++] = $_.dmwo; //#9400 - $k[$j++] = 4; //#9400 - $k[$j++] = true; //#9400 - $_.getRSSwidths(); //#9400 - var _Dj = $k[--$j]; //#9400 - $_[$k[--$j]] = _Dj; //#9400 - $k[$j++] = 'dwe'; //#9401 - $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9401 - $k[$j++] = $_.dele; //#9401 - $k[$j++] = $_.dmwe; //#9401 - $k[$j++] = 4; //#9401 - $k[$j++] = false; //#9401 - $_.getRSSwidths(); //#9401 - var _Dq = $k[--$j]; //#9401 - $_[$k[--$j]] = _Dq; //#9401 - $_.dw = $a(8); //#9403 - if (($_.x % 2) == 0) { //#9414 - for (var _Du = 0; _Du <= 3; _Du += 1) { //#9409 - $_.j = _Du; //#9406 - $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9407 - $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9408 - } //#9408 - } else { //#9414 - for (var _E5 = 0; _E5 <= 3; _E5 += 1) { //#9415 - $_.j = _E5; //#9412 - $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9413 - $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9414 - } //#9414 - } //#9414 - $put($_.dxw, $_.x, $_.dw); //#9418 - } //#9418 - if (!bwipp_databarexpanded.__9444__) { //#9444 - $_ = Object.create($_); //#9444 - $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9430 - $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9443 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9443 - bwipp_databarexpanded.__9444__ = 1; //#9443 - $_ = Object.getPrototypeOf($_); //#9443 - } //#9443 - $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9446 - $_.fxw = $a($_.seq.length); //#9447 - for (var _Ed = 0, _Ec = $_.seq.length - 1; _Ed <= _Ec; _Ed += 1) { //#9451 - $_.x = _Ed; //#9449 - $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9450 - } //#9450 - if (!bwipp_databarexpanded.__9480__) { //#9480 - $_ = Object.create($_); //#9480 - $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9479 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9479 - bwipp_databarexpanded.__9480__ = 1; //#9479 - $_ = Object.getPrototypeOf($_); //#9479 - } //#9479 - $k[$j++] = Infinity; //#9483 - $forall($_.seq, function() { //#9483 - $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9483 - }); //#9483 - var _Er = $a(); //#9483 - $_.checkweightseq = $geti(_Er, 8, _Er.length - 8); //#9484 - $k[$j++] = Infinity; //#9487 - var _Et = $_.dxw; //#9487 - for (var _Eu = 0, _Ev = _Et.length; _Eu < _Ev; _Eu++) { //#9487 - $forall($get(_Et, _Eu)); //#9487 - } //#9487 - $_.widths = $a(); //#9487 - $_.checksum = 0; //#9490 - for (var _F0 = 0, _Ez = $_.widths.length - 1; _F0 <= _Ez; _F0 += 1) { //#9494 - $_.i = _F0; //#9492 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9493 - } //#9493 - $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9495 - $_.i = 0; //#9497 - for (;;) { //#9507 - if ($_.checksum <= $get($_.tab174, $_.i)) { //#9505 - var _FG = $geti($_.tab174, $_.i + 1, 7); //#9499 - for (var _FH = 0, _FI = _FG.length; _FH < _FI; _FH++) { //#9499 - $k[$j++] = $get(_FG, _FH); //#9499 - } //#9499 - $_.cte = $k[--$j]; //#9500 - $_.cto = $k[--$j]; //#9500 - $_.cmwe = $k[--$j]; //#9501 - $_.cmwo = $k[--$j]; //#9501 - $_.cele = $k[--$j]; //#9502 - $_.celo = $k[--$j]; //#9502 - $_.cgs = $k[--$j]; //#9503 - break; //#9504 - } //#9504 - $_.i = $_.i + 8; //#9506 - } //#9506 - $k[$j++] = 'cwo'; //#9509 - $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9509 - $k[$j++] = $_.celo; //#9509 - $k[$j++] = $_.cmwo; //#9509 - $k[$j++] = 4; //#9509 - $k[$j++] = true; //#9509 - $_.getRSSwidths(); //#9509 - var _FX = $k[--$j]; //#9509 - $_[$k[--$j]] = _FX; //#9509 - $k[$j++] = 'cwe'; //#9510 - $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9510 - $k[$j++] = $_.cele; //#9510 - $k[$j++] = $_.cmwe; //#9510 - $k[$j++] = 4; //#9510 - $k[$j++] = false; //#9510 - $_.getRSSwidths(); //#9510 - var _Fe = $k[--$j]; //#9510 - $_[$k[--$j]] = _Fe; //#9510 - $_.cw = $a(8); //#9512 - for (var _Fh = 0; _Fh <= 3; _Fh += 1) { //#9517 - $_.i = _Fh; //#9514 - $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9515 - $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9516 - } //#9516 - var _Fs = $a(22); //#9519 - $put(_Fs, 0, $_.cw); //#9520 - $puti(_Fs, 1, $_.dxw); //#9520 - $_.dxw = $geti(_Fs, 0, $_.datalen + 1); //#9521 - $_.datalen = $_.dxw.length; //#9522 - $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9525 - $_.numrows = $_.rows.length; //#9526 - for (var _G4 = 0, _G3 = $_.numrows - 1; _G4 <= _G3; _G4 += 1) { //#9541 - $_.r = _G4; //#9528 - $k[$j++] = Infinity; //#9529 - if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9530 - $k[$j++] = 0; //#9530 - } //#9530 - $k[$j++] = 1; //#9538 - $k[$j++] = 1; //#9538 - for (var _G9 = 0, _G8 = $_.segments - 1; _G9 <= _G8; _G9 += 1) { //#9538 - $_.pos = _G9 + ($_.r * $_.segments); //#9533 - if ($_.pos < $_.datalen) { //#9537 - $forall($get($_.dxw, $_.pos)); //#9535 - if (($_.pos % 2) == 0) { //#9536 - $forall($get($_.fxw, ~~($_.pos / 2))); //#9536 - } //#9536 - } //#9536 - } //#9536 - var _GL = $counttomark() + 2; //#9540 - $k[$j++] = 1; //#9540 - $k[$j++] = 1; //#9540 - $astore($a(_GL)); //#9540 - $put($_.rows, $_.r, $k[--$j]); //#9540 - $j--; //#9540 - } //#9540 - if ($ne($_.format, "expandedstacked")) { //#9669 - var _GS = $get($_.rows, 0); //#9546 - $_.sbs = $geti(_GS, 1, _GS.length - 1); //#9546 - $k[$j++] = Infinity; //#9555 - $k[$j++] = 1; //#9554 - for (var _GW = 0, _GV = $_.datalen - 1; _GW <= _GV; _GW += 1) { //#9554 - $_.i = _GW; //#9551 - $forall($get($_.dxw, $_.i)); //#9552 - if (($_.i % 2) == 0) { //#9553 - $forall($get($_.fxw, ~~($_.i / 2))); //#9553 - } //#9553 - } //#9553 - $k[$j++] = 1; //#9555 - $k[$j++] = 1; //#9555 - $_.sbs = $a(); //#9555 - delete $_.options["parse"]; //#9558 - $k[$j++] = Infinity; //#9565 - var _Gg = $_.sbs; //#9562 - $k[$j++] = Infinity; //#9563 - for (var _Gi = 0, _Gj = ~~(($_.sbs.length + 1) / 2); _Gi < _Gj; _Gi++) { //#9563 - $k[$j++] = $_.height; //#9563 - } //#9563 - var _Gl = $a(); //#9563 - $k[$j++] = Infinity; //#9564 - for (var _Gn = 0, _Go = ~~(($_.sbs.length + 1) / 2); _Gn < _Go; _Gn++) { //#9564 - $k[$j++] = 0; //#9564 - } //#9564 - var _Gp = $a(); //#9564 - $k[$j++] = 'ren'; //#9565 - $k[$j++] = bwipp_renlinear; //#9565 - $k[$j++] = 'sbs'; //#9565 - $k[$j++] = _Gg; //#9565 - $k[$j++] = 'bhs'; //#9565 - $k[$j++] = _Gl; //#9565 - $k[$j++] = 'bbs'; //#9565 - $k[$j++] = _Gp; //#9565 - $k[$j++] = 'opt'; //#9565 - $k[$j++] = $_.options; //#9565 - var _Gr = $d(); //#9565 - $k[$j++] = _Gr; //#9568 - if (!$_.dontdraw) { //#9568 - bwipp_renlinear(); //#9568 - } //#9568 - } else { //#9669 - $_.seps = $a($_.numrows); //#9572 - for (var _Gx = 0, _Gw = $_.numrows - 1; _Gx <= _Gw; _Gx += 1) { //#9628 - $_.r = _Gx; //#9575 - $_.row = $get($_.rows, $_.r); //#9576 - $k[$j++] = Infinity; //#9579 - for (var _H3 = 0, _H2 = $_.row.length - 1; _H3 <= _H2; _H3 += 2) { //#9584 - $_.i = _H3; //#9581 - for (var _H7 = 0, _H8 = $get($_.row, $_.i); _H7 < _H8; _H7++) { //#9582 - $k[$j++] = 0; //#9582 - } //#9582 - if ($_.i < ($_.row.length - 1)) { //#9583 - for (var _HE = 0, _HF = $get($_.row, $_.i + 1); _HE < _HF; _HE++) { //#9583 - $k[$j++] = 1; //#9583 - } //#9583 - } //#9583 - } //#9583 - $astore($a($counttomark())); //#9585 - $_.row = $k[--$j]; //#9585 - $j--; //#9585 - $k[$j++] = Infinity; //#9588 - $forall($_.row, function() { //#9588 - var _HK = $k[--$j]; //#9588 - $k[$j++] = $f(1 - _HK); //#9588 - }); //#9588 - $_.sep = $a(); //#9588 - $k[$j++] = Infinity; //#9591 - for (var _HO = 19, _HN = $_.row.length - 13; _HO <= _HN; _HO += 98) { //#9590 - $k[$j++] = _HO; //#9590 - } //#9590 - for (var _HR = 68, _HQ = $_.row.length - 13; _HR <= _HQ; _HR += 98) { //#9591 - $k[$j++] = _HR; //#9591 - } //#9591 - $_.finderpos = $a(); //#9591 - var _HT = $_.finderpos; //#9593 - for (var _HU = 0, _HV = _HT.length; _HU < _HV; _HU++) { //#9607 - var _HW = $get(_HT, _HU); //#9607 - for (var _HY = _HW, _HX = $f(_HW + 14); _HY <= _HX; _HY += 1) { //#9606 - $_.i = _HY; //#9595 - if ($get($_.row, $_.i) == 0) { //#9603 - if ($get($_.row, $_.i - 1) == 1) { //#9600 - $k[$j++] = 1; //#9598 - } else { //#9600 - var _Hi = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9600 - $k[$j++] = _Hi; //#9600 - } //#9600 - } else { //#9603 - $k[$j++] = 0; //#9603 - } //#9603 - $put($_.sep, $_.i, $k[--$j]); //#9605 - } //#9605 - } //#9605 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9608 - $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9609 - if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9623 - if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9621 - $k[$j++] = Infinity; //#9615 - $k[$j++] = 0; //#9615 - $aload($_.row); //#9615 - $_.row = $a(); //#9615 - $k[$j++] = Infinity; //#9616 - $k[$j++] = 0; //#9616 - $aload($_.sep); //#9616 - $_.sep = $a(); //#9616 - } else { //#9621 - for (var _I4 = $_.row.length - 1; _I4 >= 0; _I4 -= 1) { //#9618 - $k[$j++] = $get($_.row, _I4); //#9618 - } //#9618 - $astore($_.row); //#9619 - $j--; //#9619 - for (var _I9 = $_.sep.length - 1; _I9 >= 0; _I9 -= 1) { //#9620 - $k[$j++] = $get($_.sep, _I9); //#9620 - } //#9620 - $astore($_.sep); //#9621 - $j--; //#9621 - } //#9621 - } //#9621 - $put($_.rows, $_.r, $_.row); //#9625 - $put($_.seps, $_.r, $_.sep); //#9626 - } //#9626 - $_.pixx = $get($_.rows, 0).length; //#9631 - $k[$j++] = Infinity; //#9632 - for (var _IM = 0, _IN = $_.pixx; _IM < _IN; _IM++) { //#9632 - $k[$j++] = 0; //#9632 - } //#9632 - var _IO = $a(); //#9632 - $puti(_IO, 0, $get($_.rows, $_.numrows - 1)); //#9632 - $put($_.rows, $_.numrows - 1, _IO); //#9633 - $k[$j++] = Infinity; //#9634 - for (var _IV = 0, _IW = $_.pixx; _IV < _IW; _IV++) { //#9634 - $k[$j++] = 0; //#9634 - } //#9634 - var _IX = $a(); //#9634 - $puti(_IX, 0, $get($_.seps, $_.numrows - 1)); //#9634 - $put($_.seps, $_.numrows - 1, _IX); //#9635 - $k[$j++] = Infinity; //#9638 - for (var _Ie = 0, _If = (~~($_.pixx / 2)) + 1; _Ie < _If; _Ie++) { //#9638 - $k[$j++] = 0; //#9638 - $k[$j++] = 1; //#9638 - } //#9638 - $_.sep = $geti($a(), 0, $_.pixx); //#9638 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9639 - $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9640 - $k[$j++] = Infinity; //#9652 - for (var _Iq = 0, _Ip = $_.numrows - 1; _Iq <= _Ip; _Iq += 1) { //#9654 - $_.r = _Iq; //#9645 - if ($_.r != 0) { //#9648 - $aload($get($_.seps, $_.r)); //#9647 - } //#9647 - for (var _Iw = 0, _Ix = $_.barxmult; _Iw < _Ix; _Iw++) { //#9649 - $aload($get($_.rows, $_.r)); //#9649 - } //#9649 - if ($_.r != ($_.numrows - 1)) { //#9653 - $aload($get($_.seps, $_.r)); //#9651 - $aload($_.sep); //#9652 + $_.oe = $k[--$j]; //#9484 + $_.el = $k[--$j]; //#9485 + $_.mw = $k[--$j]; //#9486 + $_.nm = $k[--$j]; //#9487 + $_.val = $k[--$j]; //#9488 + $_.out = $a($_.el); //#9489 + $_.mask = 0; //#9490 + for (var _C3 = 0, _C2 = $f($_.el - 2); _C3 <= _C2; _C3 += 1) { //#9517 + $_.bar = _C3; //#9492 + $_.ew = 1; //#9493 + var _C5 = $_.bar; //#9494 + $_.mask = $_.mask | ((_C5 < 0 ? 1 >>> -_C5 : 1 << _C5)); //#9494 + for (;;) { //#9513 + $k[$j++] = 'sval'; //#9495 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9495 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9495 + $_.ncr(); //#9495 + var _CA = $k[--$j]; //#9495 + $_[$k[--$j]] = _CA; //#9495 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9498 + $k[$j++] = 'sval'; //#9497 + $k[$j++] = $_.sval; //#9497 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9497 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9497 + $_.ncr(); //#9497 + var _CP = $k[--$j]; //#9497 + var _CQ = $k[--$j]; //#9497 + $_[$k[--$j]] = $f(_CQ - _CP); //#9497 + } //#9497 + if ($f($_.el - $_.bar) > 2) { //#9507 + $_.lval = 0; //#9500 + for (var _Ca = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CZ = $f($_.mw + 1); _Ca >= _CZ; _Ca -= 1) { //#9504 + $k[$j++] = $f(($f($f($_.nm - _Ca) - $_.ew)) - 1); //#9502 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9502 + $_.ncr(); //#9502 + $_.lval = $f($k[--$j] + $_.lval); //#9503 + } //#9503 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9505 + } else { //#9507 + if ($f($_.nm - $_.ew) > $_.mw) { //#9507 + $_.sval = $f($_.sval - 1); //#9507 + } //#9507 + } //#9507 + $_.val = $f($_.val - $_.sval); //#9509 + if ($_.val < 0) { //#9510 + break; //#9510 + } //#9510 + $_.ew = $_.ew + 1; //#9511 + var _Cu = $_.bar; //#9512 + $_.mask = $_.mask & (~((_Cu < 0 ? 1 >>> -_Cu : 1 << _Cu))); //#9512 + } //#9512 + $_.val = $f($_.val + $_.sval); //#9514 + $_.nm = $f($_.nm - $_.ew); //#9515 + $put($_.out, $_.bar, $_.ew); //#9516 + } //#9516 + $put($_.out, $f($_.el - 1), $_.nm); //#9518 + $k[$j++] = $_.out; //#9519 + }; //#9519 + if (!bwipp_databarexpanded.__9530__) { //#9530 + $_ = Object.create($_); //#9530 + $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9529 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9529 + bwipp_databarexpanded.__9530__ = 1; //#9529 + $_ = Object.getPrototypeOf($_); //#9529 + } //#9529 + $_.dxw = $a($_.datalen); //#9532 + for (var _DC = 0, _DB = $_.datalen - 1; _DC <= _DB; _DC += 1) { //#9573 + $_.x = _DC; //#9536 + $_.d = $geti($_.binval, $_.x * 12, 12); //#9538 + $k[$j++] = 'd'; //#9539 + $k[$j++] = 0; //#9539 + for (var _DG = 0; _DG <= 11; _DG += 1) { //#9539 + $_.j = _DG; //#9539 + var _DL = $k[--$j]; //#9539 + $k[$j++] = $f(_DL + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9539 + } //#9539 + var _DM = $k[--$j]; //#9539 + $_[$k[--$j]] = _DM; //#9539 + $_.j = 0; //#9541 + for (;;) { //#9551 + if ($le($_.d, $get($_.tab174, $_.j))) { //#9549 + var _DU = $geti($_.tab174, $_.j + 1, 7); //#9543 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#9543 + $k[$j++] = $get(_DU, _DV); //#9543 + } //#9543 + $_.dte = $k[--$j]; //#9544 + $_.dto = $k[--$j]; //#9544 + $_.dmwe = $k[--$j]; //#9545 + $_.dmwo = $k[--$j]; //#9545 + $_.dele = $k[--$j]; //#9546 + $_.delo = $k[--$j]; //#9546 + $_.dgs = $k[--$j]; //#9547 + break; //#9548 + } //#9548 + $_.j = $_.j + 8; //#9550 + } //#9550 + $k[$j++] = 'dwo'; //#9553 + $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9553 + $k[$j++] = $_.delo; //#9553 + $k[$j++] = $_.dmwo; //#9553 + $k[$j++] = 4; //#9553 + $k[$j++] = true; //#9553 + $_.getRSSwidths(); //#9553 + var _Dl = $k[--$j]; //#9553 + $_[$k[--$j]] = _Dl; //#9553 + $k[$j++] = 'dwe'; //#9554 + $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9554 + $k[$j++] = $_.dele; //#9554 + $k[$j++] = $_.dmwe; //#9554 + $k[$j++] = 4; //#9554 + $k[$j++] = false; //#9554 + $_.getRSSwidths(); //#9554 + var _Ds = $k[--$j]; //#9554 + $_[$k[--$j]] = _Ds; //#9554 + $_.dw = $a(8); //#9556 + if (($_.x % 2) == 0) { //#9567 + for (var _Dw = 0; _Dw <= 3; _Dw += 1) { //#9562 + $_.j = _Dw; //#9559 + $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9560 + $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9561 + } //#9561 + } else { //#9567 + for (var _E7 = 0; _E7 <= 3; _E7 += 1) { //#9568 + $_.j = _E7; //#9565 + $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9566 + $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9567 + } //#9567 + } //#9567 + $put($_.dxw, $_.x, $_.dw); //#9571 + } //#9571 + if (!bwipp_databarexpanded.__9597__) { //#9597 + $_ = Object.create($_); //#9597 + $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9583 + $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9596 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9596 + bwipp_databarexpanded.__9597__ = 1; //#9596 + $_ = Object.getPrototypeOf($_); //#9596 + } //#9596 + $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9599 + $_.fxw = $a($_.seq.length); //#9600 + for (var _Ef = 0, _Ee = $_.seq.length - 1; _Ef <= _Ee; _Ef += 1) { //#9604 + $_.x = _Ef; //#9602 + $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9603 + } //#9603 + if (!bwipp_databarexpanded.__9633__) { //#9633 + $_ = Object.create($_); //#9633 + $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9632 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9632 + bwipp_databarexpanded.__9633__ = 1; //#9632 + $_ = Object.getPrototypeOf($_); //#9632 + } //#9632 + $k[$j++] = Infinity; //#9635 + $forall($_.seq, function() { //#9636 + $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9636 + }); //#9636 + var _Et = $a(); //#9636 + $_.checkweightseq = $geti(_Et, 8, _Et.length - 8); //#9637 + $k[$j++] = Infinity; //#9639 + var _Ev = $_.dxw; //#9640 + for (var _Ew = 0, _Ex = _Ev.length; _Ew < _Ex; _Ew++) { //#9640 + $forall($get(_Ev, _Ew)); //#9640 + } //#9640 + $_.widths = $a(); //#9640 + $_.checksum = 0; //#9643 + for (var _F2 = 0, _F1 = $_.widths.length - 1; _F2 <= _F1; _F2 += 1) { //#9647 + $_.i = _F2; //#9645 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9646 + } //#9646 + $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9648 + $_.i = 0; //#9650 + for (;;) { //#9660 + if ($_.checksum <= $get($_.tab174, $_.i)) { //#9658 + var _FI = $geti($_.tab174, $_.i + 1, 7); //#9652 + for (var _FJ = 0, _FK = _FI.length; _FJ < _FK; _FJ++) { //#9652 + $k[$j++] = $get(_FI, _FJ); //#9652 } //#9652 - } //#9652 - $_.pixs = $a(); //#9652 - delete $_.options["parse"]; //#9657 + $_.cte = $k[--$j]; //#9653 + $_.cto = $k[--$j]; //#9653 + $_.cmwe = $k[--$j]; //#9654 + $_.cmwo = $k[--$j]; //#9654 + $_.cele = $k[--$j]; //#9655 + $_.celo = $k[--$j]; //#9655 + $_.cgs = $k[--$j]; //#9656 + break; //#9657 + } //#9657 + $_.i = $_.i + 8; //#9659 + } //#9659 + $k[$j++] = 'cwo'; //#9662 + $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9662 + $k[$j++] = $_.celo; //#9662 + $k[$j++] = $_.cmwo; //#9662 + $k[$j++] = 4; //#9662 + $k[$j++] = true; //#9662 + $_.getRSSwidths(); //#9662 + var _FZ = $k[--$j]; //#9662 + $_[$k[--$j]] = _FZ; //#9662 + $k[$j++] = 'cwe'; //#9663 + $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9663 + $k[$j++] = $_.cele; //#9663 + $k[$j++] = $_.cmwe; //#9663 + $k[$j++] = 4; //#9663 + $k[$j++] = false; //#9663 + $_.getRSSwidths(); //#9663 + var _Fg = $k[--$j]; //#9663 + $_[$k[--$j]] = _Fg; //#9663 + $_.cw = $a(8); //#9665 + for (var _Fj = 0; _Fj <= 3; _Fj += 1) { //#9670 + $_.i = _Fj; //#9667 + $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9668 + $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9669 + } //#9669 + var _Fu = $a(22); //#9672 + $put(_Fu, 0, $_.cw); //#9673 + $puti(_Fu, 1, $_.dxw); //#9673 + $_.dxw = $geti(_Fu, 0, $_.datalen + 1); //#9674 + $_.datalen = $_.dxw.length; //#9675 + $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9678 + $_.numrows = $_.rows.length; //#9679 + for (var _G6 = 0, _G5 = $_.numrows - 1; _G6 <= _G5; _G6 += 1) { //#9694 + $_.r = _G6; //#9681 + $k[$j++] = Infinity; //#9682 + if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9683 + $k[$j++] = 0; //#9683 + } //#9683 + $k[$j++] = 1; //#9691 + $k[$j++] = 1; //#9691 + for (var _GB = 0, _GA = $_.segments - 1; _GB <= _GA; _GB += 1) { //#9691 + $_.pos = _GB + ($_.r * $_.segments); //#9686 + if ($_.pos < $_.datalen) { //#9690 + $forall($get($_.dxw, $_.pos)); //#9688 + if (($_.pos % 2) == 0) { //#9689 + $forall($get($_.fxw, ~~($_.pos / 2))); //#9689 + } //#9689 + } //#9689 + } //#9689 + var _GN = $counttomark() + 2; //#9693 + $k[$j++] = 1; //#9693 + $k[$j++] = 1; //#9693 + $astore($a(_GN)); //#9693 + $put($_.rows, $_.r, $k[--$j]); //#9693 + $j--; //#9693 + } //#9693 + if ($ne($_.format, "expandedstacked")) { //#9826 + var _GU = $get($_.rows, 0); //#9699 + $_.sbs = $geti(_GU, 1, _GU.length - 1); //#9699 + $k[$j++] = Infinity; //#9701 + $k[$j++] = 1; //#9707 + for (var _GY = 0, _GX = $_.datalen - 1; _GY <= _GX; _GY += 1) { //#9707 + $_.i = _GY; //#9704 + $forall($get($_.dxw, $_.i)); //#9705 + if (($_.i % 2) == 0) { //#9706 + $forall($get($_.fxw, ~~($_.i / 2))); //#9706 + } //#9706 + } //#9706 + $k[$j++] = 1; //#9708 + $k[$j++] = 1; //#9708 + $_.sbs = $a(); //#9708 + $k[$j++] = Infinity; //#9711 + var _Gh = $_.sbs; //#9713 + $k[$j++] = Infinity; //#9714 + for (var _Gj = 0, _Gk = ~~(($_.sbs.length + 1) / 2); _Gj < _Gk; _Gj++) { //#9714 + $k[$j++] = $_.height; //#9714 + } //#9714 + var _Gm = $a(); //#9714 + $k[$j++] = Infinity; //#9715 + for (var _Go = 0, _Gp = ~~(($_.sbs.length + 1) / 2); _Go < _Gp; _Go++) { //#9715 + $k[$j++] = 0; //#9715 + } //#9715 + var _Gq = $a(); //#9715 + $k[$j++] = 'ren'; //#9720 + $k[$j++] = bwipp_renlinear; //#9720 + $k[$j++] = 'sbs'; //#9720 + $k[$j++] = _Gh; //#9720 + $k[$j++] = 'bhs'; //#9720 + $k[$j++] = _Gm; //#9720 + $k[$j++] = 'bbs'; //#9720 + $k[$j++] = _Gq; //#9720 + $k[$j++] = 'borderleft'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderright'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'bordertop'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderbottom'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'opt'; //#9720 + $k[$j++] = $_.options; //#9720 + var _Gs = $d(); //#9720 + $k[$j++] = _Gs; //#9723 + if (!$_.dontdraw) { //#9723 + bwipp_renlinear(); //#9723 + } //#9723 + } else { //#9826 + $_.seps = $a($_.numrows); //#9727 + for (var _Gy = 0, _Gx = $_.numrows - 1; _Gy <= _Gx; _Gy += 1) { //#9783 + $_.r = _Gy; //#9730 + $_.row = $get($_.rows, $_.r); //#9731 + $k[$j++] = Infinity; //#9734 + for (var _H4 = 0, _H3 = $_.row.length - 1; _H4 <= _H3; _H4 += 2) { //#9739 + $_.i = _H4; //#9736 + for (var _H8 = 0, _H9 = $get($_.row, $_.i); _H8 < _H9; _H8++) { //#9737 + $k[$j++] = 0; //#9737 + } //#9737 + if ($_.i < ($_.row.length - 1)) { //#9738 + for (var _HF = 0, _HG = $get($_.row, $_.i + 1); _HF < _HG; _HF++) { //#9738 + $k[$j++] = 1; //#9738 + } //#9738 + } //#9738 + } //#9738 + $astore($a($counttomark())); //#9740 + $_.row = $k[--$j]; //#9740 + $j--; //#9740 + $k[$j++] = Infinity; //#9743 + $forall($_.row, function() { //#9743 + var _HL = $k[--$j]; //#9743 + $k[$j++] = $f(1 - _HL); //#9743 + }); //#9743 + $_.sep = $a(); //#9743 + $k[$j++] = Infinity; //#9744 + for (var _HP = 19, _HO = $_.row.length - 13; _HP <= _HO; _HP += 98) { //#9745 + $k[$j++] = _HP; //#9745 + } //#9745 + for (var _HS = 68, _HR = $_.row.length - 13; _HS <= _HR; _HS += 98) { //#9746 + $k[$j++] = _HS; //#9746 + } //#9746 + $_.finderpos = $a(); //#9746 + var _HU = $_.finderpos; //#9748 + for (var _HV = 0, _HW = _HU.length; _HV < _HW; _HV++) { //#9762 + var _HX = $get(_HU, _HV); //#9762 + for (var _HZ = _HX, _HY = $f(_HX + 14); _HZ <= _HY; _HZ += 1) { //#9761 + $_.i = _HZ; //#9750 + if ($get($_.row, $_.i) == 0) { //#9758 + if ($get($_.row, $_.i - 1) == 1) { //#9755 + $k[$j++] = 1; //#9753 + } else { //#9755 + var _Hj = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9755 + $k[$j++] = _Hj; //#9755 + } //#9755 + } else { //#9758 + $k[$j++] = 0; //#9758 + } //#9758 + $put($_.sep, $_.i, $k[--$j]); //#9760 + } //#9760 + } //#9760 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9763 + $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9764 + if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9778 + if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9776 + $k[$j++] = Infinity; //#9770 + $k[$j++] = 0; //#9770 + $aload($_.row); //#9770 + $_.row = $a(); //#9770 + $k[$j++] = Infinity; //#9771 + $k[$j++] = 0; //#9771 + $aload($_.sep); //#9771 + $_.sep = $a(); //#9771 + } else { //#9776 + for (var _I5 = $_.row.length - 1; _I5 >= 0; _I5 -= 1) { //#9773 + $k[$j++] = $get($_.row, _I5); //#9773 + } //#9773 + $astore($_.row); //#9774 + $j--; //#9774 + for (var _IA = $_.sep.length - 1; _IA >= 0; _IA -= 1) { //#9775 + $k[$j++] = $get($_.sep, _IA); //#9775 + } //#9775 + $astore($_.sep); //#9776 + $j--; //#9776 + } //#9776 + } //#9776 + $put($_.rows, $_.r, $_.row); //#9780 + $put($_.seps, $_.r, $_.sep); //#9781 + } //#9781 + $_.pixx = $get($_.rows, 0).length; //#9786 + $k[$j++] = Infinity; //#9787 + for (var _IN = 0, _IO = $_.pixx; _IN < _IO; _IN++) { //#9787 + $k[$j++] = 0; //#9787 + } //#9787 + var _IP = $a(); //#9787 + $puti(_IP, 0, $get($_.rows, $_.numrows - 1)); //#9787 + $put($_.rows, $_.numrows - 1, _IP); //#9788 + $k[$j++] = Infinity; //#9789 + for (var _IW = 0, _IX = $_.pixx; _IW < _IX; _IW++) { //#9789 + $k[$j++] = 0; //#9789 + } //#9789 + var _IY = $a(); //#9789 + $puti(_IY, 0, $get($_.seps, $_.numrows - 1)); //#9789 + $put($_.seps, $_.numrows - 1, _IY); //#9790 + $k[$j++] = Infinity; //#9793 + for (var _If = 0, _Ig = (~~($_.pixx / 2)) + 1; _If < _Ig; _If++) { //#9793 + $k[$j++] = 0; //#9793 + $k[$j++] = 1; //#9793 + } //#9793 + $_.sep = $geti($a(), 0, $_.pixx); //#9793 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9794 + $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9795 + $k[$j++] = Infinity; //#9798 + for (var _Ir = 0, _Iq = $_.numrows - 1; _Ir <= _Iq; _Ir += 1) { //#9809 + $_.r = _Ir; //#9800 + if ($_.r != 0) { //#9803 + $aload($get($_.seps, $_.r)); //#9802 + } //#9802 + for (var _Ix = 0, _Iy = $_.barxmult; _Ix < _Iy; _Ix++) { //#9804 + $aload($get($_.rows, $_.r)); //#9804 + } //#9804 + if ($_.r != ($_.numrows - 1)) { //#9808 + $aload($get($_.seps, $_.r)); //#9806 + $aload($_.sep); //#9807 + } //#9807 + } //#9807 + $_.pixs = $a(); //#9807 var _JH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -13409,4085 +13684,4133 @@ function bwipp_databarexpanded() { ["pixy", ~~($_.pixs.length / $_.pixx)], ["height", (~~($_.pixs.length / $_.pixx)) / 72], ["width", $_.pixx / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#9666 - $k[$j++] = _JH; //#9669 - if (!$_.dontdraw) { //#9669 - bwipp_renmatrix(); //#9669 - } //#9669 - } //#9669 - $_ = Object.getPrototypeOf($_); //#9673 - $_ = Object.getPrototypeOf($_); //#9675 -} - + ]); //#9823 + $k[$j++] = _JH; //#9826 + if (!$_.dontdraw) { //#9826 + bwipp_renmatrix(); //#9826 + } //#9826 + } //#9826 + $_ = Object.getPrototypeOf($_); //#9830 + $_ = Object.getPrototypeOf($_); //#9832 +} //bwipp_databarexpanded function bwipp_databarexpandedstacked() { - $_ = Object.create($_); //#9704 - $_.dontdraw = false; //#9707 - $k[$j++] = $_; //#9709 - bwipp_processoptions(); //#9709 - $_.options = $k[--$j]; //#9709 - $_.barcode = $k[--$j]; //#9710 - $put($_.options, "dontdraw", true); //#9713 - $put($_.options, "format", "expandedstacked"); //#9714 - $k[$j++] = 'args'; //#9716 - $k[$j++] = $_.barcode; //#9716 - $k[$j++] = $_.options; //#9716 - bwipp_databarexpanded(); //#9716 - var _6 = $k[--$j]; //#9716 - $_[$k[--$j]] = _6; //#9716 - $put($_.args, "opt", $_.options); //#9718 - $k[$j++] = $_.args; //#9721 - if (!$_.dontdraw) { //#9721 - bwipp_renmatrix(); //#9721 - } //#9721 - $_ = Object.getPrototypeOf($_); //#9723 -} - + $_ = Object.create($_); //#9861 + $_.dontdraw = false; //#9864 + $k[$j++] = $_; //#9866 + bwipp_processoptions(); //#9866 + $_.options = $k[--$j]; //#9866 + $_.barcode = $k[--$j]; //#9867 + $put($_.options, "dontdraw", true); //#9870 + $put($_.options, "format", "expandedstacked"); //#9871 + $k[$j++] = 'args'; //#9873 + $k[$j++] = $_.barcode; //#9873 + $k[$j++] = $_.options; //#9873 + bwipp_databarexpanded(); //#9873 + var _6 = $k[--$j]; //#9873 + $_[$k[--$j]] = _6; //#9873 + $put($_.args, "opt", $_.options); //#9875 + $k[$j++] = $_.args; //#9878 + if (!$_.dontdraw) { //#9878 + bwipp_renmatrix(); //#9878 + } //#9878 + $_ = Object.getPrototypeOf($_); //#9880 +} //bwipp_databarexpandedstacked function bwipp_gs1northamericancoupon() { - $_ = Object.create($_); //#9753 - $_.dontdraw = false; //#9756 - $_.includetext = false; //#9757 - $_.coupontextfont = "OCR-B"; //#9758 - $_.coupontextsize = 9; //#9759 - $_.coupontextxoffset = null; //#9760 - $_.coupontextyoffset = null; //#9761 - $_.parse = false; //#9762 - $_.dontlint = false; //#9763 - $_.lintreqs = true; //#9764 - $k[$j++] = $_; //#9766 - bwipp_processoptions(); //#9766 - $_.options = $k[--$j]; //#9766 - $_.barcode = $k[--$j]; //#9767 - $k[$j++] = $_.barcode; //#9769 - $k[$j++] = 'ai'; //#9769 - bwipp_gs1process(); //#9769 - $j--; //#9770 - $_.vals = $k[--$j]; //#9771 - $_.ais = $k[--$j]; //#9772 - if ($_.ais.length != 1) { //#9777 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9776'; //#9776 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9776 - bwipp_raiseerror(); //#9776 - } //#9776 - if ($ne($get($_.ais, 0), "8110")) { //#9780 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9779'; //#9779 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9779 - bwipp_raiseerror(); //#9779 - } //#9779 - $_.val = $get($_.vals, 0); //#9783 - $_.vli = $f($get($_.val, 0) - 48); //#9784 - if (($_.vli < 0) || ($_.vli > 6)) { //#9787 - $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9786'; //#9786 - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9786 - bwipp_raiseerror(); //#9786 - } //#9786 - $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9788 - $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9789 - $_.coupontext = $s($_.gcp.length + 7); //#9790 - $puti($_.coupontext, 0, $_.gcp); //#9791 - $puti($_.coupontext, $_.gcp.length, "-"); //#9792 - $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9793 - delete $_.options["parse"]; //#9796 - $put($_.options, "dontdraw", true); //#9797 - $k[$j++] = 'args'; //#9799 - $k[$j++] = $_.barcode; //#9799 - $k[$j++] = $_.options; //#9799 - bwipp_databarexpandedstacked(); //#9799 - var _X = $k[--$j]; //#9799 - $_[$k[--$j]] = _X; //#9799 - if ($_.includetext) { //#9818 - if ($eq($_.coupontextxoffset, null)) { //#9805 - $_.coupontextxoffset = 0; //#9804 - } //#9804 - if ($eq($_.coupontextyoffset, null)) { //#9808 - $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9807 - } //#9807 - var _f = $get($_.args, "txt") !== undefined; //#9809 - if (_f) { //#9816 - $_.txt = $get($_.args, "txt"); //#9810 - $_.newtxt = $a($_.txt.length + 1); //#9811 - $puti($_.newtxt, 0, $_.txt); //#9812 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9813 - $put($_.args, "txt", $_.newtxt); //#9814 - } else { //#9816 - $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9816 - } //#9816 - } //#9816 - $put($_.args, "opt", $_.options); //#9820 - $k[$j++] = $_.args; //#9823 - if (!$_.dontdraw) { //#9823 - bwipp_renmatrix(); //#9823 - } //#9823 - $_ = Object.getPrototypeOf($_); //#9825 -} - + $_ = Object.create($_); //#9910 + $_.dontdraw = false; //#9913 + $_.includetext = false; //#9914 + $_.coupontextfont = "OCR-B"; //#9915 + $_.coupontextsize = 9; //#9916 + $_.coupontextxoffset = null; //#9917 + $_.coupontextyoffset = null; //#9918 + $_.parse = false; //#9919 + $_.dontlint = false; //#9920 + $_.lintreqs = true; //#9921 + $k[$j++] = $_; //#9923 + bwipp_processoptions(); //#9923 + $_.options = $k[--$j]; //#9923 + $_.barcode = $k[--$j]; //#9924 + $k[$j++] = $_.barcode; //#9926 + $k[$j++] = 'ai'; //#9926 + bwipp_gs1process(); //#9926 + $j--; //#9927 + $_.vals = $k[--$j]; //#9928 + $_.ais = $k[--$j]; //#9929 + if ($_.ais.length != 1) { //#9934 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9933'; //#9933 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9933 + bwipp_raiseerror(); //#9933 + } //#9933 + if ($ne($get($_.ais, 0), "8110")) { //#9937 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9936'; //#9936 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9936 + bwipp_raiseerror(); //#9936 + } //#9936 + $_.val = $get($_.vals, 0); //#9940 + $_.vli = $f($get($_.val, 0) - 48); //#9941 + if (($_.vli < 0) || ($_.vli > 6)) { //#9944 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9943'; //#9943 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9943 + bwipp_raiseerror(); //#9943 + } //#9943 + $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9945 + $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9946 + $_.coupontext = $s($_.gcp.length + 7); //#9947 + $puti($_.coupontext, 0, $_.gcp); //#9948 + $puti($_.coupontext, $_.gcp.length, "-"); //#9949 + $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9950 + $put($_.options, "dontdraw", true); //#9953 + $k[$j++] = 'args'; //#9955 + $k[$j++] = $_.barcode; //#9955 + $k[$j++] = $_.options; //#9955 + bwipp_databarexpandedstacked(); //#9955 + var _W = $k[--$j]; //#9955 + $_[$k[--$j]] = _W; //#9955 + if ($_.includetext) { //#9974 + if ($eq($_.coupontextxoffset, null)) { //#9961 + $_.coupontextxoffset = 0; //#9960 + } //#9960 + if ($eq($_.coupontextyoffset, null)) { //#9964 + $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9963 + } //#9963 + var _e = $get($_.args, "txt") !== undefined; //#9965 + if (_e) { //#9972 + $_.txt = $get($_.args, "txt"); //#9966 + $_.newtxt = $a($_.txt.length + 1); //#9967 + $puti($_.newtxt, 0, $_.txt); //#9968 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9969 + $put($_.args, "txt", $_.newtxt); //#9970 + } else { //#9972 + $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9972 + } //#9972 + } //#9972 + $put($_.args, "opt", $_.options); //#9976 + $k[$j++] = $_.args; //#9979 + if (!$_.dontdraw) { //#9979 + bwipp_renmatrix(); //#9979 + } //#9979 + $_ = Object.getPrototypeOf($_); //#9981 +} //bwipp_gs1northamericancoupon function bwipp_pharmacode() { - $_ = Object.create($_); //#9853 - $_.dontdraw = false; //#9856 - $_.height = (8 * 2.835) / 72; //#9857 - $_.nwidth = 0.5 * 2.835; //#9858 - $_.wwidth = 1.5 * 2.835; //#9859 - $_.swidth = 1 * 2.835; //#9860 - $k[$j++] = $_; //#9862 - bwipp_processoptions(); //#9862 - $_.options = $k[--$j]; //#9862 - $_.barcode = $k[--$j]; //#9863 - if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#9868 - $k[$j++] = 'bwipp.pharmacodeBadLength#9867'; //#9867 - $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#9867 - bwipp_raiseerror(); //#9867 - } //#9867 - $forall($_.barcode, function() { //#9873 - var _5 = $k[--$j]; //#9870 - if ((_5 < 48) || (_5 > 57)) { //#9872 - $k[$j++] = 'bwipp.pharmacodeBadCharacter#9871'; //#9871 - $k[$j++] = "Pharmacode must contain only digits"; //#9871 - bwipp_raiseerror(); //#9871 - } //#9871 - }); //#9871 - var _7 = $cvi($_.barcode); //#9874 - if ((_7 < 3) || (_7 > 131070)) { //#9876 - $k[$j++] = 'bwipp.pharmacodeBadValue#9875'; //#9875 - $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#9875 - bwipp_raiseerror(); //#9875 - } //#9875 - $_.txt = $a($_.barcode.length); //#9879 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9883 - $_.i = _C; //#9881 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9882 - } //#9882 - $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#9886 - $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#9887 - $_.barlen = $_.barcode.length; //#9889 - $_.sbs = $a($_.barlen * 2); //#9890 - for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#9901 - $_.i = _U; //#9893 - $_.enc = $geti($_.barcode, $_.i, 1); //#9894 - if ($eq($_.enc, "0")) { //#9898 - $put($_.sbs, $_.i * 2, $_.nwidth); //#9896 - } else { //#9898 - $put($_.sbs, $_.i * 2, $_.wwidth); //#9898 - } //#9898 - $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#9900 - } //#9900 - $k[$j++] = Infinity; //#9911 - var _i = $_.sbs; //#9906 - $k[$j++] = Infinity; //#9907 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#9907 - $k[$j++] = $_.height; //#9907 - } //#9907 - var _n = $a(); //#9907 - $k[$j++] = Infinity; //#9908 - for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#9908 - $k[$j++] = 0; //#9908 - } //#9908 - var _r = $a(); //#9908 - $k[$j++] = 'ren'; //#9911 - $k[$j++] = bwipp_renlinear; //#9911 - $k[$j++] = 'sbs'; //#9911 - $k[$j++] = _i; //#9911 - $k[$j++] = 'bhs'; //#9911 - $k[$j++] = _n; //#9911 - $k[$j++] = 'bbs'; //#9911 - $k[$j++] = _r; //#9911 - $k[$j++] = 'txt'; //#9911 - $k[$j++] = $_.txt; //#9911 - $k[$j++] = 'textxalign'; //#9911 - $k[$j++] = "center"; //#9911 - $k[$j++] = 'opt'; //#9911 - $k[$j++] = $_.options; //#9911 - var _u = $d(); //#9911 - $k[$j++] = _u; //#9914 - if (!$_.dontdraw) { //#9914 - bwipp_renlinear(); //#9914 - } //#9914 - $_ = Object.getPrototypeOf($_); //#9916 -} - + $_ = Object.create($_); //#10009 + $_.dontdraw = false; //#10012 + $_.height = (8 * 2.835) / 72; //#10013 + $_.nwidth = 0.5 * 2.835; //#10014 + $_.wwidth = 1.5 * 2.835; //#10015 + $_.swidth = 1 * 2.835; //#10016 + $k[$j++] = $_; //#10018 + bwipp_processoptions(); //#10018 + $_.options = $k[--$j]; //#10018 + $_.barcode = $k[--$j]; //#10019 + if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#10024 + $k[$j++] = 'bwipp.pharmacodeBadLength#10023'; //#10023 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#10023 + bwipp_raiseerror(); //#10023 + } //#10023 + $forall($_.barcode, function() { //#10029 + var _5 = $k[--$j]; //#10026 + if ((_5 < 48) || (_5 > 57)) { //#10028 + $k[$j++] = 'bwipp.pharmacodeBadCharacter#10027'; //#10027 + $k[$j++] = "Pharmacode must contain only digits"; //#10027 + bwipp_raiseerror(); //#10027 + } //#10027 + }); //#10027 + var _7 = $cvi($_.barcode); //#10030 + if ((_7 < 3) || (_7 > 131070)) { //#10032 + $k[$j++] = 'bwipp.pharmacodeBadValue#10031'; //#10031 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#10031 + bwipp_raiseerror(); //#10031 + } //#10031 + $_.txt = $a($_.barcode.length); //#10035 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10039 + $_.i = _C; //#10037 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10038 + } //#10038 + $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#10042 + $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#10043 + $_.barlen = $_.barcode.length; //#10045 + $_.sbs = $a($_.barlen * 2); //#10046 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10057 + $_.i = _U; //#10049 + $_.enc = $geti($_.barcode, $_.i, 1); //#10050 + if ($eq($_.enc, "0")) { //#10054 + $put($_.sbs, $_.i * 2, $_.nwidth); //#10052 + } else { //#10054 + $put($_.sbs, $_.i * 2, $_.wwidth); //#10054 + } //#10054 + $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#10056 + } //#10056 + $k[$j++] = Infinity; //#10060 + var _i = $_.sbs; //#10062 + $k[$j++] = Infinity; //#10063 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#10063 + $k[$j++] = $_.height; //#10063 + } //#10063 + var _n = $a(); //#10063 + $k[$j++] = Infinity; //#10064 + for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#10064 + $k[$j++] = 0; //#10064 + } //#10064 + var _r = $a(); //#10064 + $k[$j++] = 'ren'; //#10067 + $k[$j++] = bwipp_renlinear; //#10067 + $k[$j++] = 'sbs'; //#10067 + $k[$j++] = _i; //#10067 + $k[$j++] = 'bhs'; //#10067 + $k[$j++] = _n; //#10067 + $k[$j++] = 'bbs'; //#10067 + $k[$j++] = _r; //#10067 + $k[$j++] = 'txt'; //#10067 + $k[$j++] = $_.txt; //#10067 + $k[$j++] = 'textxalign'; //#10067 + $k[$j++] = "center"; //#10067 + $k[$j++] = 'opt'; //#10067 + $k[$j++] = $_.options; //#10067 + var _u = $d(); //#10067 + $k[$j++] = _u; //#10070 + if (!$_.dontdraw) { //#10070 + bwipp_renlinear(); //#10070 + } //#10070 + $_ = Object.getPrototypeOf($_); //#10072 +} //bwipp_pharmacode function bwipp_pharmacode2() { - $_ = Object.create($_); //#9944 - $_.dontdraw = false; //#9947 - $_.includetext = false; //#9948 - $_.height = 4; //#9949 - $k[$j++] = $_; //#9951 - bwipp_processoptions(); //#9951 - $_.options = $k[--$j]; //#9951 - $_.barcode = $k[--$j]; //#9952 - if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#9957 - $k[$j++] = 'bwipp.pharmacode2BadLength#9956'; //#9956 - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#9956 - bwipp_raiseerror(); //#9956 - } //#9956 - $forall($_.barcode, function() { //#9962 - var _5 = $k[--$j]; //#9959 - if ((_5 < 48) || (_5 > 57)) { //#9961 - $k[$j++] = 'bwipp.pharmacode2badCharacter#9960'; //#9960 - $k[$j++] = "Two-track Pharmacode must contain only digits"; //#9960 - bwipp_raiseerror(); //#9960 - } //#9960 - }); //#9960 - var _7 = $cvi($_.barcode); //#9963 - if ((_7 < 4) || (_7 > 64570080)) { //#9965 - $k[$j++] = 'bwipp.pharmacode2badValue#9964'; //#9964 - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#9964 - bwipp_raiseerror(); //#9964 - } //#9964 - $_.txt = $a($_.barcode.length); //#9968 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9972 - $_.i = _C; //#9970 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9971 - } //#9971 - $_.encstr = $s(16); //#9974 - $_.sbs = $a(32); //#9975 - $_.bar = (1 / 25.4) * $_.height; //#9976 - $_.spc = (1 / 25.4) * 72; //#9977 - $_.i = 15; //#9980 - $_.val = $cvi($_.barcode); //#9981 - for (;;) { //#9988 - if ($_.val == 0) { //#9983 - break; //#9983 - } //#9983 - var _P = $_.val % 3; //#9984 - $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#9985 - $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#9986 - $_.i = $_.i - 1; //#9987 - } //#9987 - $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#9989 - $_.bhs = $a($_.encstr.length); //#9992 - $_.bbs = $a($_.encstr.length); //#9993 - for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#9999 - $_.i = _i; //#9995 - var _l = $get($_.encstr, $_.i); //#9996 - $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#9997 - $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#9998 - } //#9998 - $k[$j++] = Infinity; //#10010 - var _w = $_.bhs; //#10004 - var _x = $_.bbs; //#10005 - $k[$j++] = Infinity; //#10006 - for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10006 - $k[$j++] = $_.spc; //#10006 - } //#10006 - var _12 = $a(); //#10006 - $k[$j++] = 'ren'; //#10010 - $k[$j++] = bwipp_renlinear; //#10010 - $k[$j++] = 'bhs'; //#10010 - $k[$j++] = _w; //#10010 - $k[$j++] = 'bbs'; //#10010 - $k[$j++] = _x; //#10010 - $k[$j++] = 'sbs'; //#10010 - $k[$j++] = _12; //#10010 - $k[$j++] = 'txt'; //#10010 - $k[$j++] = $_.txt; //#10010 - $k[$j++] = 'textxalign'; //#10010 - $k[$j++] = "center"; //#10010 - $k[$j++] = 'textyoffset'; //#10010 - $k[$j++] = 4; //#10010 - $k[$j++] = 'opt'; //#10010 - $k[$j++] = $_.options; //#10010 - var _15 = $d(); //#10010 - $k[$j++] = _15; //#10013 - if (!$_.dontdraw) { //#10013 - bwipp_renlinear(); //#10013 - } //#10013 - $_ = Object.getPrototypeOf($_); //#10015 -} - + $_ = Object.create($_); //#10100 + $_.dontdraw = false; //#10103 + $_.includetext = false; //#10104 + $_.height = 4; //#10105 + $k[$j++] = $_; //#10107 + bwipp_processoptions(); //#10107 + $_.options = $k[--$j]; //#10107 + $_.barcode = $k[--$j]; //#10108 + if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#10113 + $k[$j++] = 'bwipp.pharmacode2BadLength#10112'; //#10112 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#10112 + bwipp_raiseerror(); //#10112 + } //#10112 + $forall($_.barcode, function() { //#10118 + var _5 = $k[--$j]; //#10115 + if ((_5 < 48) || (_5 > 57)) { //#10117 + $k[$j++] = 'bwipp.pharmacode2badCharacter#10116'; //#10116 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#10116 + bwipp_raiseerror(); //#10116 + } //#10116 + }); //#10116 + var _7 = $cvi($_.barcode); //#10119 + if ((_7 < 4) || (_7 > 64570080)) { //#10121 + $k[$j++] = 'bwipp.pharmacode2badValue#10120'; //#10120 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#10120 + bwipp_raiseerror(); //#10120 + } //#10120 + $_.txt = $a($_.barcode.length); //#10124 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10128 + $_.i = _C; //#10126 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10127 + } //#10127 + $_.encstr = $s(16); //#10130 + $_.sbs = $a(32); //#10131 + $_.bar = (1 / 25.4) * $_.height; //#10132 + $_.spc = (1 / 25.4) * 72; //#10133 + $_.i = 15; //#10136 + $_.val = $cvi($_.barcode); //#10137 + for (;;) { //#10144 + if ($_.val == 0) { //#10139 + break; //#10139 + } //#10139 + var _P = $_.val % 3; //#10140 + $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#10141 + $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#10142 + $_.i = $_.i - 1; //#10143 + } //#10143 + $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#10145 + $_.bhs = $a($_.encstr.length); //#10148 + $_.bbs = $a($_.encstr.length); //#10149 + for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#10155 + $_.i = _i; //#10151 + var _l = $get($_.encstr, $_.i); //#10152 + $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#10153 + $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#10154 + } //#10154 + $k[$j++] = Infinity; //#10158 + var _w = $_.bhs; //#10160 + var _x = $_.bbs; //#10161 + $k[$j++] = Infinity; //#10162 + for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10162 + $k[$j++] = $_.spc; //#10162 + } //#10162 + var _12 = $a(); //#10162 + $k[$j++] = 'ren'; //#10166 + $k[$j++] = bwipp_renlinear; //#10166 + $k[$j++] = 'bhs'; //#10166 + $k[$j++] = _w; //#10166 + $k[$j++] = 'bbs'; //#10166 + $k[$j++] = _x; //#10166 + $k[$j++] = 'sbs'; //#10166 + $k[$j++] = _12; //#10166 + $k[$j++] = 'txt'; //#10166 + $k[$j++] = $_.txt; //#10166 + $k[$j++] = 'textxalign'; //#10166 + $k[$j++] = "center"; //#10166 + $k[$j++] = 'textyoffset'; //#10166 + $k[$j++] = 4; //#10166 + $k[$j++] = 'opt'; //#10166 + $k[$j++] = $_.options; //#10166 + var _15 = $d(); //#10166 + $k[$j++] = _15; //#10169 + if (!$_.dontdraw) { //#10169 + bwipp_renlinear(); //#10169 + } //#10169 + $_ = Object.getPrototypeOf($_); //#10171 +} //bwipp_pharmacode2 function bwipp_code2of5() { - $_ = Object.create($_); //#10045 - $_.dontdraw = false; //#10048 - $_.includecheck = false; //#10049 - $_.validatecheck = false; //#10050 - $_.includetext = false; //#10051 - $_.includecheckintext = false; //#10052 - $_.textfont = "OCR-B"; //#10053 - $_.textsize = 10; //#10054 - $_.textyoffset = -8; //#10055 - $_.height = 1; //#10056 - $_.version = "industrial"; //#10057 - $k[$j++] = $_; //#10059 - bwipp_processoptions(); //#10059 - $_.options = $k[--$j]; //#10059 - $_.barcode = $k[--$j]; //#10060 - bwipp_loadctx(bwipp_code2of5) //#10062 - $forall($_.barcode, function() { //#10069 - var _3 = $k[--$j]; //#10066 - if ((_3 < 48) || (_3 > 57)) { //#10068 - $k[$j++] = 'bwipp.code2of5badCharacter#10067'; //#10067 - $k[$j++] = "Code 25 must contain only digits"; //#10067 - bwipp_raiseerror(); //#10067 - } //#10067 - }); //#10067 - $k[$j++] = 'barlen'; //#10071 - $k[$j++] = $_.barcode.length; //#10071 - if ($_.validatecheck) { //#10071 - var _6 = $k[--$j]; //#10071 - $k[$j++] = $f(_6 - 1); //#10071 - } //#10071 - var _7 = $k[--$j]; //#10071 - $_[$k[--$j]] = _7; //#10071 - $_.checksum = 0; //#10073 - for (var _B = 0, _A = $f($_.barlen - 1); _B <= _A; _B += 1) { //#10077 - $_.i = _B; //#10075 - $k[$j++] = 'checksum'; //#10076 - $k[$j++] = $_.checksum; //#10076 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10076 - if (($f($_.barlen - $_.i) % 2) != 0) { //#10076 - var _I = $k[--$j]; //#10076 - $k[$j++] = _I * 3; //#10076 - } //#10076 - var _J = $k[--$j]; //#10076 - var _K = $k[--$j]; //#10076 - $_[$k[--$j]] = $f(_K + _J); //#10076 - } //#10076 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10078 - if ($_.validatecheck) { //#10085 - if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10082 - $k[$j++] = 'bwipp.code2of5badCheckDigit#10081'; //#10081 - $k[$j++] = "Incorrect Code 25 check digit provided"; //#10081 - bwipp_raiseerror(); //#10081 - } //#10081 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10083 - $_.includecheck = true; //#10084 - } //#10084 - if (!bwipp_code2of5.__10113__) { //#10113 - $_ = Object.create($_); //#10113 - var _a = new Map([ + $_ = Object.create($_); //#10201 + $_.dontdraw = false; //#10204 + $_.includecheck = false; //#10205 + $_.validatecheck = false; //#10206 + $_.includetext = false; //#10207 + $_.includecheckintext = false; //#10208 + $_.textfont = "OCR-B"; //#10209 + $_.textsize = 10; //#10210 + $_.textyoffset = -8; //#10211 + $_.height = 1; //#10212 + $_.version = "industrial"; //#10213 + $k[$j++] = $_; //#10215 + bwipp_processoptions(); //#10215 + $_.options = $k[--$j]; //#10215 + $_.barcode = $k[--$j]; //#10216 + if ($eq($_.barcode, "")) { //#10220 + $k[$j++] = 'bwipp.code2of5emptyData#10219'; //#10219 + $k[$j++] = "The data must not be empty"; //#10219 + bwipp_raiseerror(); //#10219 + } //#10219 + bwipp_loadctx(bwipp_code2of5) //#10222 + $forall($_.barcode, function() { //#10229 + var _4 = $k[--$j]; //#10226 + if ((_4 < 48) || (_4 > 57)) { //#10228 + $k[$j++] = 'bwipp.code2of5badCharacter#10227'; //#10227 + $k[$j++] = "Code 25 must contain only digits"; //#10227 + bwipp_raiseerror(); //#10227 + } //#10227 + }); //#10227 + $k[$j++] = 'barlen'; //#10231 + $k[$j++] = $_.barcode.length; //#10231 + if ($_.validatecheck) { //#10231 + var _7 = $k[--$j]; //#10231 + $k[$j++] = $f(_7 - 1); //#10231 + } //#10231 + var _8 = $k[--$j]; //#10231 + $_[$k[--$j]] = _8; //#10231 + $_.checksum = 0; //#10233 + for (var _C = 0, _B = $f($_.barlen - 1); _C <= _B; _C += 1) { //#10237 + $_.i = _C; //#10235 + $k[$j++] = 'checksum'; //#10236 + $k[$j++] = $_.checksum; //#10236 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10236 + if (($f($_.barlen - $_.i) % 2) != 0) { //#10236 + var _J = $k[--$j]; //#10236 + $k[$j++] = _J * 3; //#10236 + } //#10236 + var _K = $k[--$j]; //#10236 + var _L = $k[--$j]; //#10236 + $_[$k[--$j]] = $f(_L + _K); //#10236 + } //#10236 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10238 + if ($_.validatecheck) { //#10245 + if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10242 + $k[$j++] = 'bwipp.code2of5badCheckDigit#10241'; //#10241 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#10241 + bwipp_raiseerror(); //#10241 + } //#10241 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10243 + $_.includecheck = true; //#10244 + } //#10244 + if (!bwipp_code2of5.__10273__) { //#10273 + $_ = Object.create($_); //#10273 + var _b = new Map([ ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] - ]); //#10110 - $_.versions = _a; //#10112 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10112 - bwipp_code2of5.__10113__ = 1; //#10112 - $_ = Object.getPrototypeOf($_); //#10112 - } //#10112 - var _e = $get($_.versions, $_.version) !== undefined; //#10115 - if (!_e) { //#10117 - $k[$j++] = 'bwipp.code2of5badVersion#10116'; //#10116 - $k[$j++] = "Unrecognised Code 25 version"; //#10116 - bwipp_raiseerror(); //#10116 - } //#10116 - $_.encs = $get($_.versions, $_.version); //#10118 - $_.cs = $get($_.encs, 0).length; //#10120 - $k[$j++] = 'cw'; //#10121 - $k[$j++] = 0; //#10121 - $forall($get($_.encs, 0), function() { //#10121 - var _m = $k[--$j]; //#10121 - var _n = $k[--$j]; //#10121 - $k[$j++] = $f(_n + $f(_m - 48)); //#10121 - }); //#10121 - var _o = $k[--$j]; //#10121 - $_[$k[--$j]] = _o; //#10121 - $_.ss = $get($_.encs, 10).length; //#10122 - $k[$j++] = 'sw'; //#10123 - $k[$j++] = 0; //#10123 - $forall($get($_.encs, 10), function() { //#10123 - var _u = $k[--$j]; //#10123 - var _v = $k[--$j]; //#10123 - $k[$j++] = $f(_v + $f(_u - 48)); //#10123 - }); //#10123 - var _w = $k[--$j]; //#10123 - $_[$k[--$j]] = _w; //#10123 - $_.es = $get($_.encs, 11).length; //#10124 - if (!bwipp_code2of5.__10129__) { //#10129 - $_ = Object.create($_); //#10129 - $_.barchars = "0123456789"; //#10128 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10128 - bwipp_code2of5.__10129__ = 1; //#10128 - $_ = Object.getPrototypeOf($_); //#10128 - } //#10128 - $k[$j++] = 'sbs'; //#10131 - $k[$j++] = $_.barlen; //#10131 - if ($_.includecheck) { //#10131 - var _13 = $k[--$j]; //#10131 - $k[$j++] = $f(_13 + 1); //#10131 - } //#10131 - var _18 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10131 - $_[$k[--$j]] = _18; //#10131 - $k[$j++] = 'txt'; //#10132 - $k[$j++] = $_.barlen; //#10132 - if ($_.includecheck) { //#10132 - var _1C = $k[--$j]; //#10132 - $k[$j++] = $f(_1C + 1); //#10132 - } //#10132 - var _1E = $a($k[--$j]); //#10132 - $_[$k[--$j]] = _1E; //#10132 - $puti($_.sbs, 0, $get($_.encs, 10)); //#10135 - for (var _1L = 0, _1K = $f($_.barlen - 1); _1L <= _1K; _1L += 1) { //#10146 - $_.i = _1L; //#10137 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10139 - $j--; //#10140 - $_.indx = $k[--$j].length; //#10141 - $j -= 2; //#10142 - $_.enc = $get($_.encs, $_.indx); //#10143 - $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10144 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10145 - } //#10145 - if ($_.includecheck) { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10150 - $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10151 - if ($_.includecheckintext) { //#10155 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10153 - } else { //#10155 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10155 - } //#10155 - } else { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10158 - } //#10158 - $k[$j++] = Infinity; //#10170 - $k[$j++] = Infinity; //#10164 - $forall($_.sbs, function() { //#10164 - var _2T = $k[--$j]; //#10164 - $k[$j++] = $f(_2T - 48); //#10164 - }); //#10164 - var _2U = $a(); //#10164 - $k[$j++] = Infinity; //#10165 - for (var _2W = 0, _2X = ~~(($_.sbs.length + 1) / 2); _2W < _2X; _2W++) { //#10165 - $k[$j++] = $_.height; //#10165 - } //#10165 - var _2Z = $a(); //#10165 - $k[$j++] = Infinity; //#10166 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10166 - $k[$j++] = 0; //#10166 - } //#10166 - var _2d = $a(); //#10166 - $k[$j++] = 'ren'; //#10169 - $k[$j++] = bwipp_renlinear; //#10169 - $k[$j++] = 'sbs'; //#10169 - $k[$j++] = _2U; //#10169 - $k[$j++] = 'bhs'; //#10169 - $k[$j++] = _2Z; //#10169 - $k[$j++] = 'bbs'; //#10169 - $k[$j++] = _2d; //#10169 - if ($_.includetext) { //#10169 - $k[$j++] = 'txt'; //#10168 - $k[$j++] = $_.txt; //#10168 - } //#10168 - $k[$j++] = 'opt'; //#10170 - $k[$j++] = $_.options; //#10170 - var _2h = $d(); //#10170 - $k[$j++] = _2h; //#10173 - if (!$_.dontdraw) { //#10173 - bwipp_renlinear(); //#10173 - } //#10173 - $_ = Object.getPrototypeOf($_); //#10175 - $_ = Object.getPrototypeOf($_); //#10177 -} - + ]); //#10270 + $_.versions = _b; //#10272 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10272 + bwipp_code2of5.__10273__ = 1; //#10272 + $_ = Object.getPrototypeOf($_); //#10272 + } //#10272 + var _f = $get($_.versions, $_.version) !== undefined; //#10275 + if (!_f) { //#10277 + $k[$j++] = 'bwipp.code2of5badVersion#10276'; //#10276 + $k[$j++] = "Unrecognised Code 25 version"; //#10276 + bwipp_raiseerror(); //#10276 + } //#10276 + $_.encs = $get($_.versions, $_.version); //#10278 + $_.cs = $get($_.encs, 0).length; //#10280 + $k[$j++] = 'cw'; //#10281 + $k[$j++] = 0; //#10281 + $forall($get($_.encs, 0), function() { //#10281 + var _n = $k[--$j]; //#10281 + var _o = $k[--$j]; //#10281 + $k[$j++] = $f(_o + $f(_n - 48)); //#10281 + }); //#10281 + var _p = $k[--$j]; //#10281 + $_[$k[--$j]] = _p; //#10281 + $_.ss = $get($_.encs, 10).length; //#10282 + $k[$j++] = 'sw'; //#10283 + $k[$j++] = 0; //#10283 + $forall($get($_.encs, 10), function() { //#10283 + var _v = $k[--$j]; //#10283 + var _w = $k[--$j]; //#10283 + $k[$j++] = $f(_w + $f(_v - 48)); //#10283 + }); //#10283 + var _x = $k[--$j]; //#10283 + $_[$k[--$j]] = _x; //#10283 + var _10 = $get($_.encs, 11); //#10284 + $_.es = _10.length; //#10284 + if (!bwipp_code2of5.__10289__) { //#10289 + $_ = Object.create($_); //#10289 + $_.barchars = "0123456789"; //#10288 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10288 + bwipp_code2of5.__10289__ = 1; //#10288 + $_ = Object.getPrototypeOf($_); //#10288 + } //#10288 + $k[$j++] = 'sbs'; //#10291 + $k[$j++] = $_.barlen; //#10291 + if ($_.includecheck) { //#10291 + var _14 = $k[--$j]; //#10291 + $k[$j++] = $f(_14 + 1); //#10291 + } //#10291 + var _19 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10291 + $_[$k[--$j]] = _19; //#10291 + $k[$j++] = 'txt'; //#10292 + $k[$j++] = $_.barlen; //#10292 + if ($_.includecheck) { //#10292 + var _1D = $k[--$j]; //#10292 + $k[$j++] = $f(_1D + 1); //#10292 + } //#10292 + var _1F = $a($k[--$j]); //#10292 + $_[$k[--$j]] = _1F; //#10292 + $puti($_.sbs, 0, $get($_.encs, 10)); //#10295 + for (var _1M = 0, _1L = $f($_.barlen - 1); _1M <= _1L; _1M += 1) { //#10306 + $_.i = _1M; //#10297 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10299 + $j--; //#10300 + $_.indx = $k[--$j].length; //#10301 + $j -= 2; //#10302 + $_.enc = $get($_.encs, $_.indx); //#10303 + $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10304 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10305 + } //#10305 + if ($_.includecheck) { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10310 + $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10311 + if ($_.includecheckintext) { //#10315 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10313 + } else { //#10315 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10315 + } //#10315 + } else { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10318 + } //#10318 + $k[$j++] = Infinity; //#10322 + $k[$j++] = Infinity; //#10324 + $forall($_.sbs, function() { //#10324 + var _2U = $k[--$j]; //#10324 + $k[$j++] = $f(_2U - 48); //#10324 + }); //#10324 + var _2V = $a(); //#10324 + $k[$j++] = Infinity; //#10325 + for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#10325 + $k[$j++] = $_.height; //#10325 + } //#10325 + var _2a = $a(); //#10325 + $k[$j++] = Infinity; //#10326 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10326 + $k[$j++] = 0; //#10326 + } //#10326 + var _2e = $a(); //#10326 + $k[$j++] = 'ren'; //#10329 + $k[$j++] = bwipp_renlinear; //#10329 + $k[$j++] = 'sbs'; //#10329 + $k[$j++] = _2V; //#10329 + $k[$j++] = 'bhs'; //#10329 + $k[$j++] = _2a; //#10329 + $k[$j++] = 'bbs'; //#10329 + $k[$j++] = _2e; //#10329 + if ($_.includetext) { //#10329 + $k[$j++] = 'txt'; //#10328 + $k[$j++] = $_.txt; //#10328 + } //#10328 + $k[$j++] = 'opt'; //#10330 + $k[$j++] = $_.options; //#10330 + var _2i = $d(); //#10330 + $k[$j++] = _2i; //#10333 + if (!$_.dontdraw) { //#10333 + bwipp_renlinear(); //#10333 + } //#10333 + $_ = Object.getPrototypeOf($_); //#10335 + $_ = Object.getPrototypeOf($_); //#10337 +} //bwipp_code2of5 function bwipp_industrial2of5() { - $_ = Object.create($_); //#10206 - $_.dontdraw = false; //#10209 - $k[$j++] = $_; //#10211 - bwipp_processoptions(); //#10211 - $_.options = $k[--$j]; //#10211 - $_.barcode = $k[--$j]; //#10212 - $put($_.options, "dontdraw", true); //#10215 - $put($_.options, "version", "industrial"); //#10216 - $k[$j++] = 'args'; //#10218 - $k[$j++] = $_.barcode; //#10218 - $k[$j++] = $_.options; //#10218 - bwipp_code2of5(); //#10218 - var _6 = $k[--$j]; //#10218 - $_[$k[--$j]] = _6; //#10218 - $put($_.args, "opt", $_.options); //#10220 - $k[$j++] = $_.args; //#10223 - if (!$_.dontdraw) { //#10223 - bwipp_renlinear(); //#10223 - } //#10223 - $_ = Object.getPrototypeOf($_); //#10225 -} - + $_ = Object.create($_); //#10366 + $_.dontdraw = false; //#10369 + $k[$j++] = $_; //#10371 + bwipp_processoptions(); //#10371 + $_.options = $k[--$j]; //#10371 + $_.barcode = $k[--$j]; //#10372 + $put($_.options, "dontdraw", true); //#10375 + $put($_.options, "version", "industrial"); //#10376 + $k[$j++] = 'args'; //#10378 + $k[$j++] = $_.barcode; //#10378 + $k[$j++] = $_.options; //#10378 + bwipp_code2of5(); //#10378 + var _6 = $k[--$j]; //#10378 + $_[$k[--$j]] = _6; //#10378 + $put($_.args, "opt", $_.options); //#10380 + $k[$j++] = $_.args; //#10383 + if (!$_.dontdraw) { //#10383 + bwipp_renlinear(); //#10383 + } //#10383 + $_ = Object.getPrototypeOf($_); //#10385 +} //bwipp_industrial2of5 function bwipp_iata2of5() { - $_ = Object.create($_); //#10254 - $_.dontdraw = false; //#10257 - $k[$j++] = $_; //#10259 - bwipp_processoptions(); //#10259 - $_.options = $k[--$j]; //#10259 - $_.barcode = $k[--$j]; //#10260 - $put($_.options, "dontdraw", true); //#10263 - $put($_.options, "version", "iata"); //#10264 - $k[$j++] = 'args'; //#10266 - $k[$j++] = $_.barcode; //#10266 - $k[$j++] = $_.options; //#10266 - bwipp_code2of5(); //#10266 - var _6 = $k[--$j]; //#10266 - $_[$k[--$j]] = _6; //#10266 - $put($_.args, "opt", $_.options); //#10268 - $k[$j++] = $_.args; //#10271 - if (!$_.dontdraw) { //#10271 - bwipp_renlinear(); //#10271 - } //#10271 - $_ = Object.getPrototypeOf($_); //#10273 -} - + $_ = Object.create($_); //#10414 + $_.dontdraw = false; //#10417 + $k[$j++] = $_; //#10419 + bwipp_processoptions(); //#10419 + $_.options = $k[--$j]; //#10419 + $_.barcode = $k[--$j]; //#10420 + $put($_.options, "dontdraw", true); //#10423 + $put($_.options, "version", "iata"); //#10424 + $k[$j++] = 'args'; //#10426 + $k[$j++] = $_.barcode; //#10426 + $k[$j++] = $_.options; //#10426 + bwipp_code2of5(); //#10426 + var _6 = $k[--$j]; //#10426 + $_[$k[--$j]] = _6; //#10426 + $put($_.args, "opt", $_.options); //#10428 + $k[$j++] = $_.args; //#10431 + if (!$_.dontdraw) { //#10431 + bwipp_renlinear(); //#10431 + } //#10431 + $_ = Object.getPrototypeOf($_); //#10433 +} //bwipp_iata2of5 function bwipp_matrix2of5() { - $_ = Object.create($_); //#10302 - $_.dontdraw = false; //#10305 - $k[$j++] = $_; //#10307 - bwipp_processoptions(); //#10307 - $_.options = $k[--$j]; //#10307 - $_.barcode = $k[--$j]; //#10308 - $put($_.options, "dontdraw", true); //#10311 - $put($_.options, "version", "matrix"); //#10312 - $k[$j++] = 'args'; //#10314 - $k[$j++] = $_.barcode; //#10314 - $k[$j++] = $_.options; //#10314 - bwipp_code2of5(); //#10314 - var _6 = $k[--$j]; //#10314 - $_[$k[--$j]] = _6; //#10314 - $put($_.args, "opt", $_.options); //#10316 - $k[$j++] = $_.args; //#10319 - if (!$_.dontdraw) { //#10319 - bwipp_renlinear(); //#10319 - } //#10319 - $_ = Object.getPrototypeOf($_); //#10321 -} - + $_ = Object.create($_); //#10462 + $_.dontdraw = false; //#10465 + $k[$j++] = $_; //#10467 + bwipp_processoptions(); //#10467 + $_.options = $k[--$j]; //#10467 + $_.barcode = $k[--$j]; //#10468 + $put($_.options, "dontdraw", true); //#10471 + $put($_.options, "version", "matrix"); //#10472 + $k[$j++] = 'args'; //#10474 + $k[$j++] = $_.barcode; //#10474 + $k[$j++] = $_.options; //#10474 + bwipp_code2of5(); //#10474 + var _6 = $k[--$j]; //#10474 + $_[$k[--$j]] = _6; //#10474 + $put($_.args, "opt", $_.options); //#10476 + $k[$j++] = $_.args; //#10479 + if (!$_.dontdraw) { //#10479 + bwipp_renlinear(); //#10479 + } //#10479 + $_ = Object.getPrototypeOf($_); //#10481 +} //bwipp_matrix2of5 function bwipp_coop2of5() { - $_ = Object.create($_); //#10350 - $_.dontdraw = false; //#10353 - $k[$j++] = $_; //#10355 - bwipp_processoptions(); //#10355 - $_.options = $k[--$j]; //#10355 - $_.barcode = $k[--$j]; //#10356 - $put($_.options, "dontdraw", true); //#10359 - $put($_.options, "version", "coop"); //#10360 - $k[$j++] = 'args'; //#10362 - $k[$j++] = $_.barcode; //#10362 - $k[$j++] = $_.options; //#10362 - bwipp_code2of5(); //#10362 - var _6 = $k[--$j]; //#10362 - $_[$k[--$j]] = _6; //#10362 - $put($_.args, "opt", $_.options); //#10364 - $k[$j++] = $_.args; //#10367 - if (!$_.dontdraw) { //#10367 - bwipp_renlinear(); //#10367 - } //#10367 - $_ = Object.getPrototypeOf($_); //#10369 -} - + $_ = Object.create($_); //#10510 + $_.dontdraw = false; //#10513 + $k[$j++] = $_; //#10515 + bwipp_processoptions(); //#10515 + $_.options = $k[--$j]; //#10515 + $_.barcode = $k[--$j]; //#10516 + $put($_.options, "dontdraw", true); //#10519 + $put($_.options, "version", "coop"); //#10520 + $k[$j++] = 'args'; //#10522 + $k[$j++] = $_.barcode; //#10522 + $k[$j++] = $_.options; //#10522 + bwipp_code2of5(); //#10522 + var _6 = $k[--$j]; //#10522 + $_[$k[--$j]] = _6; //#10522 + $put($_.args, "opt", $_.options); //#10524 + $k[$j++] = $_.args; //#10527 + if (!$_.dontdraw) { //#10527 + bwipp_renlinear(); //#10527 + } //#10527 + $_ = Object.getPrototypeOf($_); //#10529 +} //bwipp_coop2of5 function bwipp_datalogic2of5() { - $_ = Object.create($_); //#10398 - $_.dontdraw = false; //#10401 - $k[$j++] = $_; //#10403 - bwipp_processoptions(); //#10403 - $_.options = $k[--$j]; //#10403 - $_.barcode = $k[--$j]; //#10404 - $put($_.options, "dontdraw", true); //#10407 - $put($_.options, "version", "datalogic"); //#10408 - $k[$j++] = 'args'; //#10410 - $k[$j++] = $_.barcode; //#10410 - $k[$j++] = $_.options; //#10410 - bwipp_code2of5(); //#10410 - var _6 = $k[--$j]; //#10410 - $_[$k[--$j]] = _6; //#10410 - $put($_.args, "opt", $_.options); //#10412 - $k[$j++] = $_.args; //#10415 - if (!$_.dontdraw) { //#10415 - bwipp_renlinear(); //#10415 - } //#10415 - $_ = Object.getPrototypeOf($_); //#10417 -} - + $_ = Object.create($_); //#10558 + $_.dontdraw = false; //#10561 + $k[$j++] = $_; //#10563 + bwipp_processoptions(); //#10563 + $_.options = $k[--$j]; //#10563 + $_.barcode = $k[--$j]; //#10564 + $put($_.options, "dontdraw", true); //#10567 + $put($_.options, "version", "datalogic"); //#10568 + $k[$j++] = 'args'; //#10570 + $k[$j++] = $_.barcode; //#10570 + $k[$j++] = $_.options; //#10570 + bwipp_code2of5(); //#10570 + var _6 = $k[--$j]; //#10570 + $_[$k[--$j]] = _6; //#10570 + $put($_.args, "opt", $_.options); //#10572 + $k[$j++] = $_.args; //#10575 + if (!$_.dontdraw) { //#10575 + bwipp_renlinear(); //#10575 + } //#10575 + $_ = Object.getPrototypeOf($_); //#10577 +} //bwipp_datalogic2of5 function bwipp_code11() { - $_ = Object.create($_); //#10447 - $_.dontdraw = false; //#10450 - $_.includecheck = false; //#10451 - $_.validatecheck = false; //#10452 - $_.includetext = false; //#10453 - $_.includecheckintext = false; //#10454 - $_.textfont = "OCR-B"; //#10455 - $_.textsize = 10; //#10456 - $_.textyoffset = -8; //#10457 - $_.height = 1; //#10458 - $k[$j++] = $_; //#10460 - bwipp_processoptions(); //#10460 - $_.options = $k[--$j]; //#10460 - var _1 = $k[--$j]; //#10461 - $_.barcode = _1; //#10461 - bwipp_loadctx(bwipp_code11) //#10463 - if (!bwipp_code11.__10477__) { //#10477 - $_ = Object.create($_); //#10477 - $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10471 - $_.barchars = "0123456789-"; //#10474 - $_.charvals = new Map; //#10475 - for (var _3 = 0; _3 <= 10; _3 += 1) { //#10476 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10476 - } //#10476 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10476 - bwipp_code11.__10477__ = 1; //#10476 - $_ = Object.getPrototypeOf($_); //#10476 - } //#10476 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10484 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10481 - if (!_E) { //#10483 - $k[$j++] = 'bwipp.code11badCharacter#10482'; //#10482 - $k[$j++] = "Code 11 must contain only digits and dashes"; //#10482 - bwipp_raiseerror(); //#10482 - } //#10482 - } //#10482 - $_.barlen = $_.barcode.length; //#10486 - if ($_.validatecheck) { //#10492 - if ($_.barlen == 11) { //#10490 - $k[$j++] = 'bwipp.code11badLength#10489'; //#10489 - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10489 - bwipp_raiseerror(); //#10489 - } //#10489 - var _K = ($_.barlen <= 10) ? 1 : 2; //#10491 - $_.barlen = $_.barlen - _K; //#10491 - } //#10491 - $k[$j++] = 'numchecks'; //#10494 - if ($_.includecheck || $_.validatecheck) { //#10494 - var _O = ($_.barlen >= 10) ? 2 : 1; //#10494 - $k[$j++] = _O; //#10494 - } else { //#10494 - $k[$j++] = 0; //#10494 - } //#10494 - var _P = $k[--$j]; //#10494 - $_[$k[--$j]] = _P; //#10494 - $_.checksum1 = 0; //#10495 - $_.checksum2 = 0; //#10495 - for (var _T = 0, _S = $_.barlen - 1; _T <= _S; _T += 1) { //#10501 - $_.i = _T; //#10497 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10498 - $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10499 - $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10500 - } //#10500 - $_.checksum1 = $_.checksum1 % 11; //#10502 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10503 - if ($_.validatecheck) { //#10517 - if ($_.numchecks == 1) { //#10512 - var _r = $get($_.barchars, $_.checksum1); //#10506 - if ($get($_.barcode, $_.barlen) != _r) { //#10508 - $k[$j++] = 'bwipp.code11badCheckDigit#10507'; //#10507 - $k[$j++] = "Incorrect Code 11 check digit provided"; //#10507 - bwipp_raiseerror(); //#10507 - } //#10507 - } else { //#10512 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10513 - $k[$j++] = 'bwipp.code11badCheckDigits#10512'; //#10512 - $k[$j++] = "Incorrect Code 11 check digits provided"; //#10512 - bwipp_raiseerror(); //#10512 - } //#10512 - } //#10512 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10515 - $_.includecheck = true; //#10516 - } //#10516 - $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10519 - $_.txt = $a($f($_.barlen + $_.numchecks)); //#10520 - $puti($_.sbs, 0, $get($_.encs, 11)); //#10523 - $_.xpos = 8; //#10525 - for (var _1I = 0, _1H = $_.barlen - 1; _1I <= _1H; _1I += 1) { //#10535 - $_.i = _1I; //#10527 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10528 - $_.enc = $get($_.encs, $_.indx); //#10529 - $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10530 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10531 - for (var _1e = 0; _1e <= 5; _1e += 1) { //#10534 - $_.xpos = $f($f($get($_.enc, _1e) - 48) + $_.xpos); //#10533 - } //#10533 - } //#10533 - if ($_.includecheck) { //#10564 - if ($_.barlen >= 10) { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10540 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10541 - if ($_.includecheckintext) { //#10551 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10543 - $_.enc = $get($_.encs, $_.checksum1); //#10544 - for (var _28 = 0; _28 <= 5; _28 += 1) { //#10547 - $_.xpos = $f($f($get($_.enc, _28) - 48) + $_.xpos); //#10546 - } //#10546 - $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10548 - } else { //#10551 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10550 - $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10551 - } //#10551 - $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10553 - } else { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10555 - if ($_.includecheckintext) { //#10559 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10557 - } else { //#10559 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10559 - } //#10559 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10561 - } //#10561 - } else { //#10564 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10564 - } //#10564 - $k[$j++] = Infinity; //#10576 - $k[$j++] = Infinity; //#10570 - var _39 = $_.sbs; //#10570 - for (var _3A = 0, _3B = _39.length; _3A < _3B; _3A++) { //#10570 - $k[$j++] = $get(_39, _3A) - 48; //#10570 - } //#10570 - var _3D = $a(); //#10570 - $k[$j++] = Infinity; //#10571 - for (var _3F = 0, _3G = ~~(($_.sbs.length + 1) / 2); _3F < _3G; _3F++) { //#10571 - $k[$j++] = $_.height; //#10571 - } //#10571 - var _3I = $a(); //#10571 - $k[$j++] = Infinity; //#10572 - for (var _3K = 0, _3L = ~~(($_.sbs.length + 1) / 2); _3K < _3L; _3K++) { //#10572 - $k[$j++] = 0; //#10572 - } //#10572 - var _3M = $a(); //#10572 - $k[$j++] = 'ren'; //#10575 - $k[$j++] = bwipp_renlinear; //#10575 - $k[$j++] = 'sbs'; //#10575 - $k[$j++] = _3D; //#10575 - $k[$j++] = 'bhs'; //#10575 - $k[$j++] = _3I; //#10575 - $k[$j++] = 'bbs'; //#10575 - $k[$j++] = _3M; //#10575 - if ($_.includetext) { //#10575 - $k[$j++] = 'txt'; //#10574 - $k[$j++] = $_.txt; //#10574 - } //#10574 - $k[$j++] = 'opt'; //#10576 - $k[$j++] = $_.options; //#10576 - var _3Q = $d(); //#10576 - $k[$j++] = _3Q; //#10579 - if (!$_.dontdraw) { //#10579 - bwipp_renlinear(); //#10579 - } //#10579 - $_ = Object.getPrototypeOf($_); //#10581 - $_ = Object.getPrototypeOf($_); //#10583 -} - -function bwipp_bc412() { - $_ = Object.create($_); //#10613 - $_.dontdraw = false; //#10616 - $_.includecheck = false; //#10617 - $_.validatecheck = false; //#10618 - $_.includetext = false; //#10619 - $_.includecheckintext = false; //#10620 - $_.includestartstop = false; //#10621 - $_.semi = false; //#10622 - $_.textfont = "OCR-B"; //#10623 - $_.textsize = 10; //#10624 - $_.textyoffset = -8; //#10625 - $_.height = 1; //#10626 - $k[$j++] = $_; //#10628 - bwipp_processoptions(); //#10628 - $_.options = $k[--$j]; //#10628 - $_.barcode = $k[--$j]; //#10629 - if ($_.semi) { //#10634 - $_.includestartstop = true; //#10633 - } //#10633 - bwipp_loadctx(bwipp_bc412) //#10636 - if (!bwipp_bc412.__10643__) { //#10643 - $_ = Object.create($_); //#10643 - $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10640 - $_.charvals = new Map; //#10641 - for (var _3 = 0; _3 <= 34; _3 += 1) { //#10642 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10642 - } //#10642 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10642 - bwipp_bc412.__10643__ = 1; //#10642 - $_ = Object.getPrototypeOf($_); //#10642 - } //#10642 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10650 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10647 - if (!_E) { //#10649 - $k[$j++] = 'bwipp.bc412badCharacter#10648'; //#10648 - $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10648 - bwipp_raiseerror(); //#10648 - } //#10648 - } //#10648 - if ($_.semi) { //#10706 - if ($_.validatecheck) { //#10660 - if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10657 - $k[$j++] = 'bwipp.bc412semivalidateBadLength#10656'; //#10656 - $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10656 - bwipp_raiseerror(); //#10656 - } //#10656 - } else { //#10660 - if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10661 - $k[$j++] = 'bwipp.bc412semiBadLength#10660'; //#10660 - $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10660 - bwipp_raiseerror(); //#10660 - } //#10660 - } //#10660 - $_.barlen = $_.barcode.length; //#10664 - if (!$_.validatecheck) { //#10672 - $_.barlen = $_.barlen + 1; //#10666 - $_.sbarcode = $s($_.barlen); //#10667 - $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10668 - $put($_.sbarcode, 1, 48); //#10669 - $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10670 - $_.barcode = $_.sbarcode; //#10671 - } //#10671 - $_.sumodd = 0; //#10673 - $_.sumeven = 0; //#10673 - for (var _b = 0, _a = $_.barlen - 1; _b <= _a; _b += 1) { //#10682 - $_.i = _b; //#10675 - $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10681 - if (($_.i % 2) == 0) { //#10680 - $_.sumodd = $f($k[--$j] + $_.sumodd); //#10678 - } else { //#10680 - $_.sumeven = $f($k[--$j] + $_.sumeven); //#10680 - } //#10680 - } //#10680 - $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10683 - if ($_.validatecheck) { //#10690 - if ($_.checksum != 0) { //#10687 - $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10686'; //#10686 - $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10686 - bwipp_raiseerror(); //#10686 - } //#10686 - } else { //#10690 - $_.checksum = ($_.checksum * 17) % 35; //#10689 - $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10690 - } //#10690 - } else { //#10706 - $k[$j++] = 'barlen'; //#10693 - $k[$j++] = $_.barcode.length; //#10693 - if ($_.validatecheck) { //#10693 - var _x = $k[--$j]; //#10693 - $k[$j++] = $f(_x - 1); //#10693 - } //#10693 - var _y = $k[--$j]; //#10693 - $_[$k[--$j]] = _y; //#10693 - $_.checksum = 0; //#10695 - for (var _12 = 0, _11 = $_.barlen - 1; _12 <= _11; _12 += 1) { //#10699 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _12, 1)) + $_.checksum); //#10698 - } //#10698 - $_.checksum = $_.checksum % 35; //#10700 - if ($_.validatecheck) { //#10707 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10704 - $k[$j++] = 'bwipp.bc412badCheckDigit#10703'; //#10703 - $k[$j++] = "Incorrect BC412 check digit provided"; //#10703 - bwipp_raiseerror(); //#10703 - } //#10703 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10705 - $_.includecheck = true; //#10706 - } //#10706 - } //#10706 - if (!bwipp_bc412.__10722__) { //#10722 - $_ = Object.create($_); //#10722 - $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10721 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10721 - bwipp_bc412.__10722__ = 1; //#10721 - $_ = Object.getPrototypeOf($_); //#10721 - } //#10721 - $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10724 + $_ = Object.create($_); //#10607 + $_.dontdraw = false; //#10610 + $_.includecheck = false; //#10611 + $_.validatecheck = false; //#10612 + $_.includetext = false; //#10613 + $_.includecheckintext = false; //#10614 + $_.textfont = "OCR-B"; //#10615 + $_.textsize = 10; //#10616 + $_.textyoffset = -8; //#10617 + $_.height = 1; //#10618 + $k[$j++] = $_; //#10620 + bwipp_processoptions(); //#10620 + $_.options = $k[--$j]; //#10620 + $_.barcode = $k[--$j]; //#10621 + if ($eq($_.barcode, "")) { //#10625 + $k[$j++] = 'bwipp.code11emptyData#10624'; //#10624 + $k[$j++] = "The data must not be empty"; //#10624 + bwipp_raiseerror(); //#10624 + } //#10624 + bwipp_loadctx(bwipp_code11) //#10627 + if (!bwipp_code11.__10641__) { //#10641 + $_ = Object.create($_); //#10641 + $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10635 + $_.barchars = "0123456789-"; //#10638 + $_.charvals = new Map; //#10639 + for (var _4 = 0; _4 <= 10; _4 += 1) { //#10640 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10640 + } //#10640 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10640 + bwipp_code11.__10641__ = 1; //#10640 + $_ = Object.getPrototypeOf($_); //#10640 + } //#10640 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10648 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10645 + if (!_F) { //#10647 + $k[$j++] = 'bwipp.code11badCharacter#10646'; //#10646 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#10646 + bwipp_raiseerror(); //#10646 + } //#10646 + } //#10646 + $_.barlen = $_.barcode.length; //#10650 + if ($_.validatecheck) { //#10656 + if ($_.barlen == 11) { //#10654 + $k[$j++] = 'bwipp.code11badLength#10653'; //#10653 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10653 + bwipp_raiseerror(); //#10653 + } //#10653 + var _L = ($_.barlen <= 10) ? 1 : 2; //#10655 + $_.barlen = $_.barlen - _L; //#10655 + } //#10655 + $k[$j++] = 'numchecks'; //#10658 + if ($_.includecheck || $_.validatecheck) { //#10658 + var _P = ($_.barlen >= 10) ? 2 : 1; //#10658 + $k[$j++] = _P; //#10658 + } else { //#10658 + $k[$j++] = 0; //#10658 + } //#10658 + var _Q = $k[--$j]; //#10658 + $_[$k[--$j]] = _Q; //#10658 + $_.checksum1 = 0; //#10659 + $_.checksum2 = 0; //#10659 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10665 + $_.i = _U; //#10661 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10662 + $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10663 + $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10664 + } //#10664 + $_.checksum1 = $_.checksum1 % 11; //#10666 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10667 + if ($_.validatecheck) { //#10681 + if ($_.numchecks == 1) { //#10676 + var _r = $_.checksum1; //#10670 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, _r)) { //#10672 + $k[$j++] = 'bwipp.code11badCheckDigit#10671'; //#10671 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#10671 + bwipp_raiseerror(); //#10671 + } //#10671 + } else { //#10676 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10677 + $k[$j++] = 'bwipp.code11badCheckDigits#10676'; //#10676 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#10676 + bwipp_raiseerror(); //#10676 + } //#10676 + } //#10676 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10679 + $_.includecheck = true; //#10680 + } //#10680 + $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10683 + $_.txt = $a($f($_.barlen + $_.numchecks)); //#10684 + $puti($_.sbs, 0, $get($_.encs, 11)); //#10687 + $_.xpos = 8; //#10689 + for (var _1J = 0, _1I = $_.barlen - 1; _1J <= _1I; _1J += 1) { //#10699 + $_.i = _1J; //#10691 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10692 + $_.enc = $get($_.encs, $_.indx); //#10693 + $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10694 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10695 + for (var _1f = 0; _1f <= 5; _1f += 1) { //#10698 + $_.xpos = $f($f($get($_.enc, _1f) - 48) + $_.xpos); //#10697 + } //#10697 + } //#10697 if ($_.includecheck) { //#10728 - $_.txt = $a($_.barlen + 1); //#10726 + if ($_.barlen >= 10) { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10704 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10705 + if ($_.includecheckintext) { //#10715 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10707 + $_.enc = $get($_.encs, $_.checksum1); //#10708 + for (var _29 = 0; _29 <= 5; _29 += 1) { //#10711 + $_.xpos = $f($f($get($_.enc, _29) - 48) + $_.xpos); //#10710 + } //#10710 + $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10712 + } else { //#10715 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10714 + $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10715 + } //#10715 + $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10717 + } else { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10719 + if ($_.includecheckintext) { //#10723 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10721 + } else { //#10723 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10723 + } //#10723 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10725 + } //#10725 } else { //#10728 - $_.txt = $a($_.barlen); //#10728 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10728 } //#10728 - if ($_.includestartstop) { //#10738 - $puti($_.sbs, 0, $get($_.encs, 35)); //#10733 - $_.pos = 2; //#10734 - $_.txtpos = 3; //#10735 - } else { //#10738 - $_.pos = 0; //#10737 - $_.txtpos = 0; //#10738 + $k[$j++] = Infinity; //#10732 + $k[$j++] = Infinity; //#10734 + var _3A = $_.sbs; //#10734 + for (var _3B = 0, _3C = _3A.length; _3B < _3C; _3B++) { //#10734 + $k[$j++] = $get(_3A, _3B) - 48; //#10734 + } //#10734 + var _3E = $a(); //#10734 + $k[$j++] = Infinity; //#10735 + for (var _3G = 0, _3H = ~~(($_.sbs.length + 1) / 2); _3G < _3H; _3G++) { //#10735 + $k[$j++] = $_.height; //#10735 + } //#10735 + var _3J = $a(); //#10735 + $k[$j++] = Infinity; //#10736 + for (var _3L = 0, _3M = ~~(($_.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#10736 + $k[$j++] = 0; //#10736 + } //#10736 + var _3N = $a(); //#10736 + $k[$j++] = 'ren'; //#10739 + $k[$j++] = bwipp_renlinear; //#10739 + $k[$j++] = 'sbs'; //#10739 + $k[$j++] = _3E; //#10739 + $k[$j++] = 'bhs'; //#10739 + $k[$j++] = _3J; //#10739 + $k[$j++] = 'bbs'; //#10739 + $k[$j++] = _3N; //#10739 + if ($_.includetext) { //#10739 + $k[$j++] = 'txt'; //#10738 + $k[$j++] = $_.txt; //#10738 } //#10738 - for (var _1Y = 0, _1X = $_.barlen - 1; _1Y <= _1X; _1Y += 1) { //#10747 - $_.i = _1Y; //#10742 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10743 - $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10744 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10745 - $_.pos = $_.pos + 8; //#10746 - } //#10746 - if ($_.includecheck) { //#10758 - $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10751 - if ($_.includecheckintext) { //#10755 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10753 - } else { //#10755 - $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10755 - } //#10755 - $_.pos = $_.pos + 8; //#10757 - } //#10757 - if ($_.includestartstop) { //#10764 - $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10762 - $_.pos = $_.pos + 3; //#10763 - } //#10763 - $_.sbs = $geti($_.sbs, 0, $_.pos); //#10767 - $k[$j++] = Infinity; //#10776 - $k[$j++] = Infinity; //#10770 - var _2V = $_.sbs; //#10770 - for (var _2W = 0, _2X = _2V.length; _2W < _2X; _2W++) { //#10770 - $k[$j++] = $f($get(_2V, _2W) - 48); //#10770 - } //#10770 - var _2Z = $a(); //#10770 - $k[$j++] = Infinity; //#10771 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10771 - $k[$j++] = $_.height; //#10771 - } //#10771 - var _2e = $a(); //#10771 - $k[$j++] = Infinity; //#10772 - for (var _2g = 0, _2h = ~~(($_.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#10772 - $k[$j++] = 0; //#10772 - } //#10772 - var _2i = $a(); //#10772 - $k[$j++] = 'ren'; //#10775 - $k[$j++] = bwipp_renlinear; //#10775 - $k[$j++] = 'sbs'; //#10775 - $k[$j++] = _2Z; //#10775 - $k[$j++] = 'bhs'; //#10775 - $k[$j++] = _2e; //#10775 - $k[$j++] = 'bbs'; //#10775 - $k[$j++] = _2i; //#10775 - if ($_.includetext) { //#10775 - $k[$j++] = 'txt'; //#10774 - $k[$j++] = $_.txt; //#10774 - } //#10774 - $k[$j++] = 'opt'; //#10776 - $k[$j++] = $_.options; //#10776 - var _2m = $d(); //#10776 - $k[$j++] = _2m; //#10779 - if (!$_.dontdraw) { //#10779 - bwipp_renlinear(); //#10779 - } //#10779 - $_ = Object.getPrototypeOf($_); //#10781 - $_ = Object.getPrototypeOf($_); //#10783 -} - -function bwipp_rationalizedCodabar() { - $_ = Object.create($_); //#10813 - $_.dontdraw = false; //#10816 - $_.altstartstop = false; //#10817 - $_.includecheck = false; //#10818 - $_.validatecheck = false; //#10819 - $_.includetext = false; //#10820 - $_.includecheckintext = false; //#10821 - $_.textfont = "OCR-B"; //#10822 - $_.textsize = 10; //#10823 - $_.textyoffset = -8; //#10824 - $_.height = 1; //#10825 - $k[$j++] = $_; //#10827 - bwipp_processoptions(); //#10827 - $_.options = $k[--$j]; //#10827 - var _1 = $k[--$j]; //#10828 - $_.barcode = _1; //#10828 - bwipp_loadctx(bwipp_rationalizedCodabar) //#10830 - if (!bwipp_rationalizedCodabar.__10844__) { //#10844 - $_ = Object.create($_); //#10844 - $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#10839 - $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#10842 - $_.barcharsalt = "0123456789-$:/.+TN*E"; //#10843 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#10843 - bwipp_rationalizedCodabar.__10844__ = 1; //#10843 - $_ = Object.getPrototypeOf($_); //#10843 - } //#10843 - var _5 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#10846 - $_.barchars = _5; //#10846 - $_.charvals = new Map; //#10848 - for (var _6 = 0; _6 <= 19; _6 += 1) { //#10849 - $put($_.charvals, $geti($_.barchars, _6, 1), _6); //#10849 - } //#10849 - $_.bodyvals = new Map; //#10850 - for (var _A = 0; _A <= 15; _A += 1) { //#10851 - $put($_.bodyvals, $geti($_.barchars, _A, 1), _A); //#10851 - } //#10851 - $_.ssvals = new Map; //#10852 - for (var _E = 16; _E <= 19; _E += 1) { //#10853 - $put($_.ssvals, $geti($_.barchars, _E, 1), _E); //#10853 - } //#10853 - var _L = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#10856 - var _Q = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#10857 - if ((!_L) || (!_Q)) { //#10863 - if ($_.altstartstop) { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#10859'; //#10859 - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#10859 - bwipp_raiseerror(); //#10859 - } else { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#10861'; //#10861 - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#10861 - bwipp_raiseerror(); //#10861 + $k[$j++] = 'opt'; //#10740 + $k[$j++] = $_.options; //#10740 + var _3R = $d(); //#10740 + $k[$j++] = _3R; //#10743 + if (!$_.dontdraw) { //#10743 + bwipp_renlinear(); //#10743 + } //#10743 + $_ = Object.getPrototypeOf($_); //#10745 + $_ = Object.getPrototypeOf($_); //#10747 +} //bwipp_code11 +function bwipp_bc412() { + $_ = Object.create($_); //#10777 + $_.dontdraw = false; //#10780 + $_.includecheck = false; //#10781 + $_.validatecheck = false; //#10782 + $_.includetext = false; //#10783 + $_.includecheckintext = false; //#10784 + $_.includestartstop = false; //#10785 + $_.semi = false; //#10786 + $_.textfont = "OCR-B"; //#10787 + $_.textsize = 10; //#10788 + $_.textyoffset = -8; //#10789 + $_.height = 1; //#10790 + $k[$j++] = $_; //#10792 + bwipp_processoptions(); //#10792 + $_.options = $k[--$j]; //#10792 + $_.barcode = $k[--$j]; //#10793 + if ($eq($_.barcode, "")) { //#10797 + $k[$j++] = 'bwipp.bc412emptyData#10796'; //#10796 + $k[$j++] = "The data must not be empty"; //#10796 + bwipp_raiseerror(); //#10796 + } //#10796 + if ($_.semi) { //#10802 + $_.includestartstop = true; //#10801 + } //#10801 + bwipp_loadctx(bwipp_bc412) //#10804 + if (!bwipp_bc412.__10811__) { //#10811 + $_ = Object.create($_); //#10811 + $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10808 + $_.charvals = new Map; //#10809 + for (var _4 = 0; _4 <= 34; _4 += 1) { //#10810 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10810 + } //#10810 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10810 + bwipp_bc412.__10811__ = 1; //#10810 + $_ = Object.getPrototypeOf($_); //#10810 + } //#10810 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10818 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10815 + if (!_F) { //#10817 + $k[$j++] = 'bwipp.bc412badCharacter#10816'; //#10816 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10816 + bwipp_raiseerror(); //#10816 + } //#10816 + } //#10816 + if ($_.semi) { //#10874 + if ($_.validatecheck) { //#10828 + if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10825 + $k[$j++] = 'bwipp.bc412semivalidateBadLength#10824'; //#10824 + $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10824 + bwipp_raiseerror(); //#10824 + } //#10824 + } else { //#10828 + if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10829 + $k[$j++] = 'bwipp.bc412semiBadLength#10828'; //#10828 + $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10828 + bwipp_raiseerror(); //#10828 + } //#10828 + } //#10828 + $_.barlen = $_.barcode.length; //#10832 + if (!$_.validatecheck) { //#10840 + $_.barlen = $_.barlen + 1; //#10834 + $_.sbarcode = $s($_.barlen); //#10835 + $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10836 + $put($_.sbarcode, 1, 48); //#10837 + $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10838 + $_.barcode = $_.sbarcode; //#10839 + } //#10839 + $_.sumodd = 0; //#10841 + $_.sumeven = 0; //#10841 + for (var _c = 0, _b = $_.barlen - 1; _c <= _b; _c += 1) { //#10850 + $_.i = _c; //#10843 + $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10849 + if (($_.i % 2) == 0) { //#10848 + $_.sumodd = $f($k[--$j] + $_.sumodd); //#10846 + } else { //#10848 + $_.sumeven = $f($k[--$j] + $_.sumeven); //#10848 + } //#10848 + } //#10848 + $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10851 + if ($_.validatecheck) { //#10858 + if ($_.checksum != 0) { //#10855 + $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10854'; //#10854 + $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10854 + bwipp_raiseerror(); //#10854 + } //#10854 + } else { //#10858 + $_.checksum = ($_.checksum * 17) % 35; //#10857 + $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10858 + } //#10858 + } else { //#10874 + $k[$j++] = 'barlen'; //#10861 + $k[$j++] = $_.barcode.length; //#10861 + if ($_.validatecheck) { //#10861 + var _y = $k[--$j]; //#10861 + $k[$j++] = $f(_y - 1); //#10861 } //#10861 - } //#10861 - for (var _U = 1, _T = $_.barcode.length - 2; _U <= _T; _U += 1) { //#10868 - var _Y = $get($_.bodyvals, $geti($_.barcode, _U, 1)) !== undefined; //#10865 - if (!_Y) { //#10867 - $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#10866'; //#10866 - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#10866 - bwipp_raiseerror(); //#10866 + var _z = $k[--$j]; //#10861 + $_[$k[--$j]] = _z; //#10861 + $_.checksum = 0; //#10863 + for (var _13 = 0, _12 = $_.barlen - 1; _13 <= _12; _13 += 1) { //#10867 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _13, 1)) + $_.checksum); //#10866 } //#10866 - } //#10866 - $k[$j++] = 'barlen'; //#10870 - $k[$j++] = $_.barcode.length; //#10870 - if ($_.validatecheck) { //#10870 - var _b = $k[--$j]; //#10870 - $k[$j++] = $f(_b - 1); //#10870 - } //#10870 - var _c = $k[--$j]; //#10870 - $_[$k[--$j]] = _c; //#10870 - $_.checksum = 0; //#10872 - for (var _g = 0, _f = $f($_.barlen - 2); _g <= _f; _g += 1) { //#10876 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _g, 1)) + $_.checksum); //#10875 - } //#10875 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, $_.barcode.length - 1, 1)) + $_.checksum); //#10878 - $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#10879 - if ($_.validatecheck) { //#10889 - if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#10883 - $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#10882'; //#10882 - $k[$j++] = "Incorrect Codabar check digit provided"; //#10882 - bwipp_raiseerror(); //#10882 - } //#10882 - var _11 = $s($_.barlen); //#10884 - $puti(_11, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#10885 - $puti(_11, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#10886 - $_.barcode = _11; //#10887 - $_.includecheck = true; //#10888 - } //#10888 - $k[$j++] = 'sbs'; //#10891 - $k[$j++] = $_.barlen; //#10891 - if ($_.includecheck) { //#10891 - var _1B = $k[--$j]; //#10891 - $k[$j++] = $f(_1B + 1); //#10891 - } //#10891 - var _1D = $s($k[--$j] * 8); //#10891 - $_[$k[--$j]] = _1D; //#10891 - $k[$j++] = 'txt'; //#10892 - $k[$j++] = $_.barlen; //#10892 - if ($_.includecheck) { //#10892 - var _1H = $k[--$j]; //#10892 - $k[$j++] = $f(_1H + 1); //#10892 - } //#10892 - var _1J = $a($k[--$j]); //#10892 - $_[$k[--$j]] = _1J; //#10892 - $_.xpos = 0; //#10894 - for (var _1N = 0, _1M = $f($_.barlen - 2); _1N <= _1M; _1N += 1) { //#10904 - $_.i = _1N; //#10896 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10897 - $_.enc = $get($_.encs, $_.indx); //#10898 - $puti($_.sbs, $_.i * 8, $_.enc); //#10899 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10900 - for (var _1j = 0; _1j <= 7; _1j += 1) { //#10903 - $_.xpos = $f($f($get($_.enc, _1j) - 48) + $_.xpos); //#10902 - } //#10902 - } //#10902 - if ($_.includecheck) { //#10928 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#10909 - if ($_.includecheckintext) { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10911 - } else { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 - } //#10913 - for (var _2B = 0; _2B <= 7; _2B += 1) { //#10917 - $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2B) - 48) + $_.xpos); //#10916 - } //#10916 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10919 - $_.enc = $get($_.encs, $_.indx); //#10920 - $puti($_.sbs, $_.barlen * 8, $_.enc); //#10921 - $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10922 - } else { //#10928 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10925 - $_.enc = $get($_.encs, $_.indx); //#10926 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#10927 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10928 - } //#10928 - $k[$j++] = Infinity; //#10940 - $k[$j++] = Infinity; //#10934 - $forall($_.sbs, function() { //#10934 - var _2y = $k[--$j]; //#10934 - $k[$j++] = $f(_2y - 48); //#10934 - }); //#10934 - var _2z = $a(); //#10934 - $k[$j++] = Infinity; //#10935 - for (var _31 = 0, _32 = ~~(($_.sbs.length + 1) / 2); _31 < _32; _31++) { //#10935 - $k[$j++] = $_.height; //#10935 - } //#10935 - var _34 = $a(); //#10935 + $_.checksum = $_.checksum % 35; //#10868 + if ($_.validatecheck) { //#10875 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10872 + $k[$j++] = 'bwipp.bc412badCheckDigit#10871'; //#10871 + $k[$j++] = "Incorrect BC412 check digit provided"; //#10871 + bwipp_raiseerror(); //#10871 + } //#10871 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10873 + $_.includecheck = true; //#10874 + } //#10874 + } //#10874 + if (!bwipp_bc412.__10890__) { //#10890 + $_ = Object.create($_); //#10890 + $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10889 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10889 + bwipp_bc412.__10890__ = 1; //#10889 + $_ = Object.getPrototypeOf($_); //#10889 + } //#10889 + $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10892 + if ($_.includecheck) { //#10896 + $_.txt = $a($_.barlen + 1); //#10894 + } else { //#10896 + $_.txt = $a($_.barlen); //#10896 + } //#10896 + if ($_.includestartstop) { //#10906 + $puti($_.sbs, 0, $get($_.encs, 35)); //#10901 + $_.pos = 2; //#10902 + $_.txtpos = 3; //#10903 + } else { //#10906 + $_.pos = 0; //#10905 + $_.txtpos = 0; //#10906 + } //#10906 + for (var _1Z = 0, _1Y = $_.barlen - 1; _1Z <= _1Y; _1Z += 1) { //#10915 + $_.i = _1Z; //#10910 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10911 + $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10912 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 + $_.pos = $_.pos + 8; //#10914 + } //#10914 + if ($_.includecheck) { //#10926 + $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10919 + if ($_.includecheckintext) { //#10923 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10921 + } else { //#10923 + $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10923 + } //#10923 + $_.pos = $_.pos + 8; //#10925 + } //#10925 + if ($_.includestartstop) { //#10932 + $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10930 + $_.pos = $_.pos + 3; //#10931 + } //#10931 + $_.sbs = $geti($_.sbs, 0, $_.pos); //#10935 $k[$j++] = Infinity; //#10936 - for (var _36 = 0, _37 = ~~(($_.sbs.length + 1) / 2); _36 < _37; _36++) { //#10936 - $k[$j++] = 0; //#10936 - } //#10936 - var _38 = $a(); //#10936 - $k[$j++] = 'ren'; //#10939 - $k[$j++] = bwipp_renlinear; //#10939 - $k[$j++] = 'sbs'; //#10939 - $k[$j++] = _2z; //#10939 - $k[$j++] = 'bhs'; //#10939 - $k[$j++] = _34; //#10939 - $k[$j++] = 'bbs'; //#10939 - $k[$j++] = _38; //#10939 - if ($_.includetext) { //#10939 - $k[$j++] = 'txt'; //#10938 - $k[$j++] = $_.txt; //#10938 + $k[$j++] = Infinity; //#10938 + var _2W = $_.sbs; //#10938 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#10938 + $k[$j++] = $f($get(_2W, _2X) - 48); //#10938 } //#10938 - $k[$j++] = 'opt'; //#10940 - $k[$j++] = $_.options; //#10940 - var _3C = $d(); //#10940 - $k[$j++] = _3C; //#10943 - if (!$_.dontdraw) { //#10943 - bwipp_renlinear(); //#10943 - } //#10943 - $_ = Object.getPrototypeOf($_); //#10945 - $_ = Object.getPrototypeOf($_); //#10947 -} - + var _2a = $a(); //#10938 + $k[$j++] = Infinity; //#10939 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10939 + $k[$j++] = $_.height; //#10939 + } //#10939 + var _2f = $a(); //#10939 + $k[$j++] = Infinity; //#10940 + for (var _2h = 0, _2i = ~~(($_.sbs.length + 1) / 2); _2h < _2i; _2h++) { //#10940 + $k[$j++] = 0; //#10940 + } //#10940 + var _2j = $a(); //#10940 + $k[$j++] = 'ren'; //#10943 + $k[$j++] = bwipp_renlinear; //#10943 + $k[$j++] = 'sbs'; //#10943 + $k[$j++] = _2a; //#10943 + $k[$j++] = 'bhs'; //#10943 + $k[$j++] = _2f; //#10943 + $k[$j++] = 'bbs'; //#10943 + $k[$j++] = _2j; //#10943 + if ($_.includetext) { //#10943 + $k[$j++] = 'txt'; //#10942 + $k[$j++] = $_.txt; //#10942 + } //#10942 + $k[$j++] = 'opt'; //#10944 + $k[$j++] = $_.options; //#10944 + var _2n = $d(); //#10944 + $k[$j++] = _2n; //#10947 + if (!$_.dontdraw) { //#10947 + bwipp_renlinear(); //#10947 + } //#10947 + $_ = Object.getPrototypeOf($_); //#10949 + $_ = Object.getPrototypeOf($_); //#10951 +} //bwipp_bc412 +function bwipp_rationalizedCodabar() { + $_ = Object.create($_); //#10981 + $_.dontdraw = false; //#10984 + $_.altstartstop = false; //#10985 + $_.includecheck = false; //#10986 + $_.validatecheck = false; //#10987 + $_.includetext = false; //#10988 + $_.includecheckintext = false; //#10989 + $_.textfont = "OCR-B"; //#10990 + $_.textsize = 10; //#10991 + $_.textyoffset = -8; //#10992 + $_.height = 1; //#10993 + $k[$j++] = $_; //#10995 + bwipp_processoptions(); //#10995 + $_.options = $k[--$j]; //#10995 + $_.barcode = $k[--$j]; //#10996 + if (($_.barcode.length < 2) || (($_.barcode.length < 3) && $_.validatecheck)) { //#11000 + $k[$j++] = 'bwipp.rationalizedCodabarBadLength#10999'; //#10999 + $k[$j++] = "Codabar must be at least 2 characters in length excluding any check digit"; //#10999 + bwipp_raiseerror(); //#10999 + } //#10999 + bwipp_loadctx(bwipp_rationalizedCodabar) //#11002 + if (!bwipp_rationalizedCodabar.__11016__) { //#11016 + $_ = Object.create($_); //#11016 + $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#11011 + $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#11014 + $_.barcharsalt = "0123456789-$:/.+TN*E"; //#11015 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#11015 + bwipp_rationalizedCodabar.__11016__ = 1; //#11015 + $_ = Object.getPrototypeOf($_); //#11015 + } //#11015 + var _8 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#11018 + $_.barchars = _8; //#11018 + $_.charvals = new Map; //#11020 + for (var _9 = 0; _9 <= 19; _9 += 1) { //#11021 + $put($_.charvals, $geti($_.barchars, _9, 1), _9); //#11021 + } //#11021 + $_.bodyvals = new Map; //#11022 + for (var _D = 0; _D <= 15; _D += 1) { //#11023 + $put($_.bodyvals, $geti($_.barchars, _D, 1), _D); //#11023 + } //#11023 + $_.ssvals = new Map; //#11024 + for (var _H = 16; _H <= 19; _H += 1) { //#11025 + $put($_.ssvals, $geti($_.barchars, _H, 1), _H); //#11025 + } //#11025 + var _O = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#11028 + var _T = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#11029 + if ((!_O) || (!_T)) { //#11035 + if ($_.altstartstop) { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#11031'; //#11031 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#11031 + bwipp_raiseerror(); //#11031 + } else { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#11033'; //#11033 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#11033 + bwipp_raiseerror(); //#11033 + } //#11033 + } //#11033 + for (var _X = 1, _W = $_.barcode.length - 2; _X <= _W; _X += 1) { //#11040 + var _b = $get($_.bodyvals, $geti($_.barcode, _X, 1)) !== undefined; //#11037 + if (!_b) { //#11039 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#11038'; //#11038 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#11038 + bwipp_raiseerror(); //#11038 + } //#11038 + } //#11038 + $k[$j++] = 'barlen'; //#11042 + $k[$j++] = $_.barcode.length; //#11042 + if ($_.validatecheck) { //#11042 + var _e = $k[--$j]; //#11042 + $k[$j++] = $f(_e - 1); //#11042 + } //#11042 + var _f = $k[--$j]; //#11042 + $_[$k[--$j]] = _f; //#11042 + $_.checksum = 0; //#11044 + for (var _j = 0, _i = $f($_.barlen - 2); _j <= _i; _j += 1) { //#11048 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _j, 1)) + $_.checksum); //#11047 + } //#11047 + var _r = $geti($_.barcode, $_.barcode.length - 1, 1); //#11049 + $_.checksum = $f($get($_.charvals, _r) + $_.checksum); //#11050 + $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#11051 + if ($_.validatecheck) { //#11061 + if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#11055 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#11054'; //#11054 + $k[$j++] = "Incorrect Codabar check digit provided"; //#11054 + bwipp_raiseerror(); //#11054 + } //#11054 + var _14 = $s($_.barlen); //#11056 + $puti(_14, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#11057 + $puti(_14, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#11058 + $_.barcode = _14; //#11059 + $_.includecheck = true; //#11060 + } //#11060 + $k[$j++] = 'sbs'; //#11063 + $k[$j++] = $_.barlen; //#11063 + if ($_.includecheck) { //#11063 + var _1E = $k[--$j]; //#11063 + $k[$j++] = $f(_1E + 1); //#11063 + } //#11063 + var _1G = $s($k[--$j] * 8); //#11063 + $_[$k[--$j]] = _1G; //#11063 + $k[$j++] = 'txt'; //#11064 + $k[$j++] = $_.barlen; //#11064 + if ($_.includecheck) { //#11064 + var _1K = $k[--$j]; //#11064 + $k[$j++] = $f(_1K + 1); //#11064 + } //#11064 + var _1M = $a($k[--$j]); //#11064 + $_[$k[--$j]] = _1M; //#11064 + $_.xpos = 0; //#11066 + for (var _1Q = 0, _1P = $f($_.barlen - 2); _1Q <= _1P; _1Q += 1) { //#11076 + $_.i = _1Q; //#11068 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11069 + $_.enc = $get($_.encs, $_.indx); //#11070 + $puti($_.sbs, $_.i * 8, $_.enc); //#11071 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11072 + for (var _1m = 0; _1m <= 7; _1m += 1) { //#11075 + $_.xpos = $f($f($get($_.enc, _1m) - 48) + $_.xpos); //#11074 + } //#11074 + } //#11074 + if ($_.includecheck) { //#11100 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#11081 + if ($_.includecheckintext) { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11083 + } else { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11085 + } //#11085 + for (var _2E = 0; _2E <= 7; _2E += 1) { //#11089 + $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2E) - 48) + $_.xpos); //#11088 + } //#11088 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11091 + $_.enc = $get($_.encs, $_.indx); //#11092 + $puti($_.sbs, $_.barlen * 8, $_.enc); //#11093 + $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11094 + } else { //#11100 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11097 + $_.enc = $get($_.encs, $_.indx); //#11098 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#11099 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11100 + } //#11100 + $k[$j++] = Infinity; //#11104 + $k[$j++] = Infinity; //#11106 + $forall($_.sbs, function() { //#11106 + var _31 = $k[--$j]; //#11106 + $k[$j++] = $f(_31 - 48); //#11106 + }); //#11106 + var _32 = $a(); //#11106 + $k[$j++] = Infinity; //#11107 + for (var _34 = 0, _35 = ~~(($_.sbs.length + 1) / 2); _34 < _35; _34++) { //#11107 + $k[$j++] = $_.height; //#11107 + } //#11107 + var _37 = $a(); //#11107 + $k[$j++] = Infinity; //#11108 + for (var _39 = 0, _3A = ~~(($_.sbs.length + 1) / 2); _39 < _3A; _39++) { //#11108 + $k[$j++] = 0; //#11108 + } //#11108 + var _3B = $a(); //#11108 + $k[$j++] = 'ren'; //#11111 + $k[$j++] = bwipp_renlinear; //#11111 + $k[$j++] = 'sbs'; //#11111 + $k[$j++] = _32; //#11111 + $k[$j++] = 'bhs'; //#11111 + $k[$j++] = _37; //#11111 + $k[$j++] = 'bbs'; //#11111 + $k[$j++] = _3B; //#11111 + if ($_.includetext) { //#11111 + $k[$j++] = 'txt'; //#11110 + $k[$j++] = $_.txt; //#11110 + } //#11110 + $k[$j++] = 'opt'; //#11112 + $k[$j++] = $_.options; //#11112 + var _3F = $d(); //#11112 + $k[$j++] = _3F; //#11115 + if (!$_.dontdraw) { //#11115 + bwipp_renlinear(); //#11115 + } //#11115 + $_ = Object.getPrototypeOf($_); //#11117 + $_ = Object.getPrototypeOf($_); //#11119 +} //bwipp_rationalizedCodabar function bwipp_onecode() { - $_ = Object.create($_); //#10977 - $_.dontdraw = false; //#10980 - $_.height = 0.15; //#10981 - $k[$j++] = $_; //#10983 - bwipp_processoptions(); //#10983 - $_.options = $k[--$j]; //#10983 - $_.barcode = $k[--$j]; //#10984 - bwipp_loadctx(bwipp_onecode) //#10986 - $_.barlen = $_.barcode.length; //#10988 - $forall($_.barcode, function() { //#10994 - var _4 = $k[--$j]; //#10991 - if ((_4 < 48) || (_4 > 57)) { //#10993 - $k[$j++] = 'bwipp.onecodeBadCharacter#10992'; //#10992 - $k[$j++] = "The data must contain only digits"; //#10992 - bwipp_raiseerror(); //#10992 - } //#10992 - }); //#10992 - if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#10998 - $k[$j++] = 'bwipp.onecodeInvalidLength#10997'; //#10997 - $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#10997 - bwipp_raiseerror(); //#10997 - } //#10997 - $k[$j++] = Infinity; //#11007 - var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11004 - $k[$j++] = 2; //#11007 - $k[$j++] = 2; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 29; //#11007 - $k[$j++] = 29; //#11007 - $_.txtdict = $d(); //#11008 - $_.txt = $a($_.barlen + 6); //#11009 - $_.spacecnt = 0; //#11010 - for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11018 - $_.i = _H; //#11012 - var _K = $get($_.txtdict, $_.i) !== undefined; //#11013 - if (_K) { //#11016 - $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11014 - $_.spacecnt = $_.spacecnt + 1; //#11015 - } //#11015 - $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11017 - } //#11017 - $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11019 + $_ = Object.create($_); //#11149 + $_.dontdraw = false; //#11152 + $_.height = 0.15; //#11153 + $k[$j++] = $_; //#11155 + bwipp_processoptions(); //#11155 + $_.options = $k[--$j]; //#11155 + $_.barcode = $k[--$j]; //#11156 + bwipp_loadctx(bwipp_onecode) //#11158 + $_.barlen = $_.barcode.length; //#11160 + $forall($_.barcode, function() { //#11166 + var _4 = $k[--$j]; //#11163 + if ((_4 < 48) || (_4 > 57)) { //#11165 + $k[$j++] = 'bwipp.onecodeBadCharacter#11164'; //#11164 + $k[$j++] = "The data must contain only digits"; //#11164 + bwipp_raiseerror(); //#11164 + } //#11164 + }); //#11164 + if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#11170 + $k[$j++] = 'bwipp.onecodeInvalidLength#11169'; //#11169 + $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#11169 + bwipp_raiseerror(); //#11169 + } //#11169 + $k[$j++] = Infinity; //#11173 + var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11176 + $k[$j++] = 2; //#11179 + $k[$j++] = 2; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 29; //#11179 + $k[$j++] = 29; //#11179 + $_.txtdict = $d(); //#11180 + $_.txt = $a($_.barlen + 6); //#11181 + $_.spacecnt = 0; //#11182 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11190 + $_.i = _H; //#11184 + var _K = $get($_.txtdict, $_.i) !== undefined; //#11185 + if (_K) { //#11188 + $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11186 + $_.spacecnt = $_.spacecnt + 1; //#11187 + } //#11187 + $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11189 + } //#11189 + $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11191 $_.normalize = function() { - $_.base = $k[--$j]; //#11022 - $_.num = $k[--$j]; //#11023 - for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11028 - $_.i = _e; //#11025 - var _f = $_.num; //#11026 - var _g = $_.i; //#11026 - $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11026 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11027 - } //#11027 - for (;;) { //#11034 - if ($lt($get($_.num, 0), $_.base)) { //#11030 - break; //#11030 - } //#11030 - $k[$j++] = Infinity; //#11031 - $k[$j++] = 0; //#11031 - $aload($_.num); //#11031 - $_.num = $a(); //#11031 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11032 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#11033 - } //#11033 - $k[$j++] = Infinity; //#11036 - $_.i = true; //#11036 - var _17 = $_.num; //#11036 - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11036 - var _1A = $get(_17, _18); //#11036 - $k[$j++] = _1A; //#11036 - if ((_1A == 0) && $_.i) { //#11036 - $j--; //#11036 - } else { //#11036 - $_.i = false; //#11036 - } //#11036 - } //#11036 - $_.num = $a(); //#11036 - if ($_.num.length == 0) { //#11037 - $_.num = $a([0]); //#11037 - } //#11037 - $k[$j++] = $_.num; //#11038 - }; //#11038 + $_.base = $k[--$j]; //#11194 + $_.num = $k[--$j]; //#11195 + for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11200 + $_.i = _e; //#11197 + var _f = $_.num; //#11198 + var _g = $_.i; //#11198 + $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11198 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11199 + } //#11199 + for (;;) { //#11206 + if ($lt($get($_.num, 0), $_.base)) { //#11202 + break; //#11202 + } //#11202 + $k[$j++] = Infinity; //#11203 + $k[$j++] = 0; //#11203 + $aload($_.num); //#11203 + $_.num = $a(); //#11203 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11204 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#11205 + } //#11205 + $k[$j++] = Infinity; //#11208 + $_.i = true; //#11208 + var _17 = $_.num; //#11208 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11208 + var _1A = $get(_17, _18); //#11208 + $k[$j++] = _1A; //#11208 + if ((_1A == 0) && $_.i) { //#11208 + $j--; //#11208 + } else { //#11208 + $_.i = false; //#11208 + } //#11208 + } //#11208 + $_.num = $a(); //#11208 + if ($_.num.length == 0) { //#11209 + $_.num = $a([0]); //#11209 + } //#11209 + $k[$j++] = $_.num; //#11210 + }; //#11210 $_.bigadd = function() { - var _1G = $k[--$j]; //#11042 - var _1H = $k[--$j]; //#11042 - $_.offset = Math.abs(_1G.length - _1H.length); //#11043 - if (_1G.length < _1H.length) { //#11044 - var _ = _1G; //#11044 - _1G = _1H; //#11044 - _1H = _; //#11044 - } //#11044 - $_.a = _1G; //#11045 - $_.b = _1H; //#11045 - for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11048 - var _1L = $_.a; //#11047 - var _1M = $_.offset; //#11047 - $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11047 - } //#11047 - $k[$j++] = $_.a; //#11049 - }; //#11049 - if (!bwipp_onecode.__11060__) { //#11060 - $_ = Object.create($_); //#11060 + var _1G = $k[--$j]; //#11214 + var _1H = $k[--$j]; //#11214 + $_.offset = Math.abs(_1G.length - _1H.length); //#11215 + if (_1G.length < _1H.length) { //#11216 + var _ = _1G; //#11216 + _1G = _1H; //#11216 + _1H = _; //#11216 + } //#11216 + $_.a = _1G; //#11217 + $_.b = _1H; //#11217 + for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11220 + var _1L = $_.a; //#11219 + var _1M = $_.offset; //#11219 + $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11219 + } //#11219 + $k[$j++] = $_.a; //#11221 + }; //#11221 + if (!bwipp_onecode.__11232__) { //#11232 + $_ = Object.create($_); //#11232 var _1V = new Map([ [20, $a([0])], [25, $a([1])], [29, $a([1, 0, 0, 0, 0, 1])], [31, $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1])] - ]); //#11058 - $_.startvals = _1V; //#11059 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11059 - bwipp_onecode.__11060__ = 1; //#11059 - $_ = Object.getPrototypeOf($_); //#11059 - } //#11059 - $k[$j++] = 'binval'; //#11062 - $k[$j++] = $get($_.startvals, $_.barlen); //#11062 - $k[$j++] = Infinity; //#11062 - var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11062 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11062 - $k[$j++] = $f($get(_1c, _1d) - 48); //#11062 - } //#11062 - var _1g = $a(); //#11062 - $k[$j++] = _1g; //#11062 - $_.bigadd(); //#11062 - var _1h = $k[--$j]; //#11062 - $_[$k[--$j]] = _1h; //#11062 - $k[$j++] = Infinity; //#11063 - $aload($_.binval); //#11063 - $k[$j++] = $f($get($_.barcode, 0) - 48); //#11063 - $_.binval = $a(); //#11063 - $k[$j++] = Infinity; //#11064 - var _1n = $_.binval; //#11064 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11064 - $k[$j++] = $get(_1n, _1o) * 5; //#11064 - } //#11064 - var _1r = $a(); //#11064 - $k[$j++] = 'binval'; //#11064 - $k[$j++] = _1r; //#11064 - $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11064 - $_.bigadd(); //#11064 - $k[$j++] = 10; //#11064 - $_.normalize(); //#11064 - var _1v = $k[--$j]; //#11064 - $_[$k[--$j]] = _1v; //#11064 - $k[$j++] = Infinity; //#11065 - $aload($_.binval); //#11065 - var _1z = $geti($_.barcode, 2, 18); //#11065 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11065 - $k[$j++] = $f($get(_1z, _20) - 48); //#11065 - } //#11065 - $_.binval = $a(); //#11065 - $_.bytes = $a(13); //#11068 - var _25 = $_.binval; //#11069 - $_.bintmp = $arrcpy($a(_25.length), _25); //#11069 - for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11079 - $_.i = _28; //#11071 - for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11076 - $_.j = _2B; //#11073 - var _2C = $_.bintmp; //#11074 - var _2D = $_.j; //#11074 - $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11074 - $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11075 - } //#11075 - $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11077 - var _2S = $_.bintmp; //#11078 - var _2T = $_.bintmp; //#11078 - $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11078 - } //#11078 - $_.fcs = 2047; //#11082 - $_.dat = $get($_.bytes, 0) << 5; //#11083 - for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11092 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11088 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11086 - } else { //#11088 - $_.fcs = $_.fcs << 1; //#11088 - } //#11088 - $_.fcs = $_.fcs & 2047; //#11090 - $_.dat = $_.dat << 1; //#11091 - } //#11091 - for (var _2f = 1; _2f <= 12; _2f += 1) { //#11104 - $_.dat = $get($_.bytes, _2f) << 3; //#11094 - for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11103 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11099 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11097 - } else { //#11099 - $_.fcs = $_.fcs << 1; //#11099 - } //#11099 - $_.fcs = $_.fcs & 2047; //#11101 - $_.dat = $_.dat << 1; //#11102 - } //#11102 - } //#11102 - $_.codewords = $a(10); //#11107 - for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11118 - $_.i = _2r; //#11109 - var _2t = ($_.i == 9) ? 636 : 1365; //#11110 - $_.b = _2t; //#11110 - for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11115 - $_.j = _2w; //#11112 - var _2x = $_.binval; //#11113 - var _2y = $_.j; //#11113 - $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11113 - $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11114 - } //#11114 - $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11116 - var _3G = $_.binval; //#11117 - var _3H = $_.binval; //#11117 - $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11117 - } //#11117 - $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11121 - if (($_.fcs & 1024) != 0) { //#11124 - $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11123 - } //#11123 - if (!bwipp_onecode.__11225__) { //#11225 - $_ = Object.create($_); //#11225 - $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11215 - $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11224 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11224 - bwipp_onecode.__11225__ = 1; //#11224 - $_ = Object.getPrototypeOf($_); //#11224 - } //#11224 - $_.chars = $a(10); //#11227 - for (var _3V = 0; _3V <= 9; _3V += 1) { //#11236 - $_.i = _3V; //#11229 - var _3Y = $get($_.codewords, $_.i); //#11230 - $k[$j++] = _3Y; //#11234 - if (_3Y <= 1286) { //#11233 - var _3b = $get($_.tab513, $k[--$j]); //#11231 - $k[$j++] = _3b; //#11231 - } else { //#11233 - var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11233 - $k[$j++] = _3e; //#11233 - } //#11233 - $put($_.chars, $_.i, $k[--$j]); //#11235 - } //#11235 - for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11243 - $_.i = _3i; //#11239 - if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11242 - $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11241 - } //#11241 - } //#11241 - if (!bwipp_onecode.__11262__) { //#11262 - $_ = Object.create($_); //#11262 - $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11261 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11261 - bwipp_onecode.__11262__ = 1; //#11261 - $_ = Object.getPrototypeOf($_); //#11261 - } //#11261 - $_.bbs = $a(65); //#11264 - $_.bhs = $a(65); //#11265 - for (var _3u = 0; _3u <= 64; _3u += 1) { //#11286 - $_.i = _3u; //#11267 - $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11268 - $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11269 - if ((!$_.dec) && (!$_.asc)) { //#11273 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11271 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11272 - } //#11272 - if ((!$_.dec) && $_.asc) { //#11277 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11275 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11276 - } //#11276 - if ($_.dec && (!$_.asc)) { //#11281 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11279 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11280 - } //#11280 - if ($_.dec && $_.asc) { //#11285 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11283 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11284 - } //#11284 - } //#11284 - $k[$j++] = Infinity; //#11299 - var _4h = $_.bbs; //#11291 - var _4i = $_.bhs; //#11292 - $k[$j++] = Infinity; //#11293 - for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11293 - $k[$j++] = 1.44; //#11293 - $k[$j++] = 1.872; //#11293 - } //#11293 - $k[$j++] = 1.44; //#11293 - var _4m = $a(); //#11293 - $k[$j++] = 'ren'; //#11299 - $k[$j++] = bwipp_renlinear; //#11299 - $k[$j++] = 'bbs'; //#11299 - $k[$j++] = _4h; //#11299 - $k[$j++] = 'bhs'; //#11299 - $k[$j++] = _4i; //#11299 - $k[$j++] = 'sbs'; //#11299 - $k[$j++] = _4m; //#11299 - $k[$j++] = 'txt'; //#11299 - $k[$j++] = $_.txt; //#11299 - $k[$j++] = 'textxalign'; //#11299 - $k[$j++] = "left"; //#11299 - $k[$j++] = 'textfont'; //#11299 - $k[$j++] = "OCR-B"; //#11299 - $k[$j++] = 'textyoffset'; //#11299 - $k[$j++] = 1; //#11299 - $k[$j++] = 'textxoffset'; //#11299 - $k[$j++] = -0.3; //#11299 - $k[$j++] = 'opt'; //#11299 - $k[$j++] = $_.options; //#11299 - var _4p = $d(); //#11299 - $k[$j++] = _4p; //#11302 - if (!$_.dontdraw) { //#11302 - bwipp_renlinear(); //#11302 - } //#11302 - $_ = Object.getPrototypeOf($_); //#11304 - $_ = Object.getPrototypeOf($_); //#11306 -} - + ]); //#11230 + $_.startvals = _1V; //#11231 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11231 + bwipp_onecode.__11232__ = 1; //#11231 + $_ = Object.getPrototypeOf($_); //#11231 + } //#11231 + $k[$j++] = 'binval'; //#11234 + $k[$j++] = $get($_.startvals, $_.barlen); //#11234 + $k[$j++] = Infinity; //#11234 + var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11234 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11234 + $k[$j++] = $f($get(_1c, _1d) - 48); //#11234 + } //#11234 + var _1g = $a(); //#11234 + $k[$j++] = _1g; //#11234 + $_.bigadd(); //#11234 + var _1h = $k[--$j]; //#11234 + $_[$k[--$j]] = _1h; //#11234 + $k[$j++] = Infinity; //#11235 + $aload($_.binval); //#11235 + $k[$j++] = $f($get($_.barcode, 0) - 48); //#11235 + $_.binval = $a(); //#11235 + $k[$j++] = Infinity; //#11236 + var _1n = $_.binval; //#11236 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11236 + $k[$j++] = $get(_1n, _1o) * 5; //#11236 + } //#11236 + var _1r = $a(); //#11236 + $k[$j++] = 'binval'; //#11236 + $k[$j++] = _1r; //#11236 + $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11236 + $_.bigadd(); //#11236 + $k[$j++] = 10; //#11236 + $_.normalize(); //#11236 + var _1v = $k[--$j]; //#11236 + $_[$k[--$j]] = _1v; //#11236 + $k[$j++] = Infinity; //#11237 + $aload($_.binval); //#11237 + var _1z = $geti($_.barcode, 2, 18); //#11237 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11237 + $k[$j++] = $f($get(_1z, _20) - 48); //#11237 + } //#11237 + $_.binval = $a(); //#11237 + $_.bytes = $a(13); //#11240 + var _25 = $_.binval; //#11241 + $_.bintmp = $arrcpy($a(_25.length), _25); //#11241 + for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11251 + $_.i = _28; //#11243 + for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11248 + $_.j = _2B; //#11245 + var _2C = $_.bintmp; //#11246 + var _2D = $_.j; //#11246 + $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11246 + $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11247 + } //#11247 + $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11249 + var _2S = $_.bintmp; //#11250 + var _2T = $_.bintmp; //#11250 + $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11250 + } //#11250 + $_.fcs = 2047; //#11254 + $_.dat = $get($_.bytes, 0) << 5; //#11255 + for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11264 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11260 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11258 + } else { //#11260 + $_.fcs = $_.fcs << 1; //#11260 + } //#11260 + $_.fcs = $_.fcs & 2047; //#11262 + $_.dat = $_.dat << 1; //#11263 + } //#11263 + for (var _2f = 1; _2f <= 12; _2f += 1) { //#11276 + $_.dat = $get($_.bytes, _2f) << 3; //#11266 + for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11275 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11271 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11269 + } else { //#11271 + $_.fcs = $_.fcs << 1; //#11271 + } //#11271 + $_.fcs = $_.fcs & 2047; //#11273 + $_.dat = $_.dat << 1; //#11274 + } //#11274 + } //#11274 + $_.codewords = $a(10); //#11279 + for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11290 + $_.i = _2r; //#11281 + var _2t = ($_.i == 9) ? 636 : 1365; //#11282 + $_.b = _2t; //#11282 + for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11287 + $_.j = _2w; //#11284 + var _2x = $_.binval; //#11285 + var _2y = $_.j; //#11285 + $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11285 + $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11286 + } //#11286 + $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11288 + var _3G = $_.binval; //#11289 + var _3H = $_.binval; //#11289 + $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11289 + } //#11289 + $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11293 + if (($_.fcs & 1024) != 0) { //#11296 + $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11295 + } //#11295 + if (!bwipp_onecode.__11397__) { //#11397 + $_ = Object.create($_); //#11397 + $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11387 + $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11396 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11396 + bwipp_onecode.__11397__ = 1; //#11396 + $_ = Object.getPrototypeOf($_); //#11396 + } //#11396 + $_.chars = $a(10); //#11399 + for (var _3V = 0; _3V <= 9; _3V += 1) { //#11408 + $_.i = _3V; //#11401 + var _3Y = $get($_.codewords, $_.i); //#11402 + $k[$j++] = _3Y; //#11406 + if (_3Y <= 1286) { //#11405 + var _3b = $get($_.tab513, $k[--$j]); //#11403 + $k[$j++] = _3b; //#11403 + } else { //#11405 + var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11405 + $k[$j++] = _3e; //#11405 + } //#11405 + $put($_.chars, $_.i, $k[--$j]); //#11407 + } //#11407 + for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11415 + $_.i = _3i; //#11411 + if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11414 + $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11413 + } //#11413 + } //#11413 + if (!bwipp_onecode.__11434__) { //#11434 + $_ = Object.create($_); //#11434 + $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11433 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11433 + bwipp_onecode.__11434__ = 1; //#11433 + $_ = Object.getPrototypeOf($_); //#11433 + } //#11433 + $_.bbs = $a(65); //#11436 + $_.bhs = $a(65); //#11437 + for (var _3u = 0; _3u <= 64; _3u += 1) { //#11458 + $_.i = _3u; //#11439 + $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11440 + $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11441 + if ((!$_.dec) && (!$_.asc)) { //#11445 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11443 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11444 + } //#11444 + if ((!$_.dec) && $_.asc) { //#11449 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11447 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11448 + } //#11448 + if ($_.dec && (!$_.asc)) { //#11453 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11451 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11452 + } //#11452 + if ($_.dec && $_.asc) { //#11457 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11455 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11456 + } //#11456 + } //#11456 + $k[$j++] = Infinity; //#11461 + var _4h = $_.bbs; //#11463 + var _4i = $_.bhs; //#11464 + $k[$j++] = Infinity; //#11465 + for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11465 + $k[$j++] = 1.44; //#11465 + $k[$j++] = 1.872; //#11465 + } //#11465 + $k[$j++] = 1.44; //#11465 + var _4m = $a(); //#11465 + $k[$j++] = 'ren'; //#11471 + $k[$j++] = bwipp_renlinear; //#11471 + $k[$j++] = 'bbs'; //#11471 + $k[$j++] = _4h; //#11471 + $k[$j++] = 'bhs'; //#11471 + $k[$j++] = _4i; //#11471 + $k[$j++] = 'sbs'; //#11471 + $k[$j++] = _4m; //#11471 + $k[$j++] = 'txt'; //#11471 + $k[$j++] = $_.txt; //#11471 + $k[$j++] = 'textxalign'; //#11471 + $k[$j++] = "left"; //#11471 + $k[$j++] = 'textfont'; //#11471 + $k[$j++] = "OCR-B"; //#11471 + $k[$j++] = 'textyoffset'; //#11471 + $k[$j++] = 1; //#11471 + $k[$j++] = 'textxoffset'; //#11471 + $k[$j++] = -0.3; //#11471 + $k[$j++] = 'opt'; //#11471 + $k[$j++] = $_.options; //#11471 + var _4p = $d(); //#11471 + $k[$j++] = _4p; //#11474 + if (!$_.dontdraw) { //#11474 + bwipp_renlinear(); //#11474 + } //#11474 + $_ = Object.getPrototypeOf($_); //#11476 + $_ = Object.getPrototypeOf($_); //#11478 +} //bwipp_onecode function bwipp_postnet() { - $_ = Object.create($_); //#11336 - $_.dontdraw = false; //#11339 - $_.includetext = false; //#11340 - $_.validatecheck = false; //#11341 - $_.includecheckintext = false; //#11342 - $_.textfont = "OCR-B"; //#11343 - $_.textsize = 10; //#11344 - $_.textyoffset = -8; //#11345 - $_.height = 0.125; //#11346 - $k[$j++] = $_; //#11348 - bwipp_processoptions(); //#11348 - $_.options = $k[--$j]; //#11348 - $_.barcode = $k[--$j]; //#11349 - bwipp_loadctx(bwipp_postnet) //#11351 - $k[$j++] = 'barlen'; //#11353 - $k[$j++] = $_.barcode.length; //#11353 - if ($_.validatecheck) { //#11353 - var _4 = $k[--$j]; //#11353 - $k[$j++] = $f(_4 - 1); //#11353 - } //#11353 - var _5 = $k[--$j]; //#11353 - $_[$k[--$j]] = _5; //#11353 - if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11358 - $k[$j++] = 'bwipp.postnetBadLength#11357'; //#11357 - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11357 - bwipp_raiseerror(); //#11357 - } //#11357 - $forall($_.barcode, function() { //#11363 - var _B = $k[--$j]; //#11360 - if ((_B < 48) || (_B > 57)) { //#11362 - $k[$j++] = 'bwipp.postnetBadCharacter#11361'; //#11361 - $k[$j++] = "USPS POSTNET must contain only digits"; //#11361 - bwipp_raiseerror(); //#11361 - } //#11361 - }); //#11361 - if (!bwipp_postnet.__11375__) { //#11375 - $_ = Object.create($_); //#11375 - $_.barchars = "0123456789"; //#11367 - $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11374 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11374 - bwipp_postnet.__11375__ = 1; //#11374 - $_ = Object.getPrototypeOf($_); //#11374 - } //#11374 - $_.checksum = 0; //#11377 - for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11381 - $_.i = _G; //#11379 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11380 - } //#11380 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11382 - if ($_.validatecheck) { //#11388 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11386 - $k[$j++] = 'bwipp.postnetBadCheckDigit#11385'; //#11385 - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11385 - bwipp_raiseerror(); //#11385 - } //#11385 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11387 - } //#11387 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11390 - $_.txt = $a($f($_.barlen + 1)); //#11391 - $_.enc = $get($_.encs, 10); //#11394 - $_.heights = $a($_.enc.length); //#11395 - for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11399 - $_.j = _g; //#11397 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11398 - } //#11398 - $puti($_.bhs, 0, $_.heights); //#11400 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11412 - $_.i = _r; //#11403 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11404 - $_.heights = $a($_.enc.length); //#11405 - for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11409 - $_.j = _11; //#11407 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11408 - } //#11408 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11410 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11411 - } //#11411 - $_.enc = $get($_.encs, $_.checksum); //#11415 - $_.heights = $a($_.enc.length); //#11416 - for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11420 - $_.j = _1S; //#11418 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11419 - } //#11419 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11421 - if ($_.includecheckintext) { //#11426 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11424 - } else { //#11426 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11426 - } //#11426 - $_.enc = $get($_.encs, 11); //#11430 - $_.heights = $a($_.enc.length); //#11431 - for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11435 - $_.j = _20; //#11433 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11434 - } //#11434 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11436 - $k[$j++] = Infinity; //#11447 - var _2A = $_.bhs; //#11441 - $k[$j++] = Infinity; //#11442 - for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11442 - $k[$j++] = 0; //#11442 - } //#11442 - var _2E = $a(); //#11442 - $k[$j++] = Infinity; //#11443 - for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11443 - $k[$j++] = 1.44; //#11443 - $k[$j++] = 1.872; //#11443 - } //#11443 - $k[$j++] = 1.44; //#11443 - var _2I = $a(); //#11443 - $k[$j++] = 'ren'; //#11446 - $k[$j++] = bwipp_renlinear; //#11446 - $k[$j++] = 'bhs'; //#11446 - $k[$j++] = _2A; //#11446 - $k[$j++] = 'bbs'; //#11446 - $k[$j++] = _2E; //#11446 - $k[$j++] = 'sbs'; //#11446 - $k[$j++] = _2I; //#11446 - if ($_.includetext) { //#11446 - $k[$j++] = 'txt'; //#11445 - $k[$j++] = $_.txt; //#11445 - } //#11445 - $k[$j++] = 'opt'; //#11447 - $k[$j++] = $_.options; //#11447 - var _2M = $d(); //#11447 - $k[$j++] = _2M; //#11450 - if (!$_.dontdraw) { //#11450 - bwipp_renlinear(); //#11450 - } //#11450 - $_ = Object.getPrototypeOf($_); //#11452 - $_ = Object.getPrototypeOf($_); //#11454 -} - -function bwipp_planet() { - $_ = Object.create($_); //#11484 - $_.dontdraw = false; //#11487 - $_.includetext = false; //#11488 - $_.validatecheck = false; //#11489 - $_.includecheckintext = false; //#11490 - $_.textfont = "OCR-B"; //#11491 - $_.textsize = 10; //#11492 - $_.textyoffset = -8; //#11493 - $_.height = 0.125; //#11494 - $k[$j++] = $_; //#11496 - bwipp_processoptions(); //#11496 - $_.options = $k[--$j]; //#11496 - $_.barcode = $k[--$j]; //#11497 - bwipp_loadctx(bwipp_planet) //#11499 - $k[$j++] = 'barlen'; //#11501 - $k[$j++] = $_.barcode.length; //#11501 - if ($_.validatecheck) { //#11501 - var _4 = $k[--$j]; //#11501 - $k[$j++] = $f(_4 - 1); //#11501 - } //#11501 - var _5 = $k[--$j]; //#11501 - $_[$k[--$j]] = _5; //#11501 - if (($_.barlen != 11) && ($_.barlen != 13)) { //#11506 - $k[$j++] = 'bwipp.planetBadLength#11505'; //#11505 - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11505 - bwipp_raiseerror(); //#11505 - } //#11505 - $forall($_.barcode, function() { //#11511 - var _A = $k[--$j]; //#11508 - if ((_A < 48) || (_A > 57)) { //#11510 - $k[$j++] = 'bwipp.planetBadCharacter#11509'; //#11509 - $k[$j++] = "USPS PLANET must contain only digits"; //#11509 - bwipp_raiseerror(); //#11509 - } //#11509 - }); //#11509 - if (!bwipp_planet.__11523__) { //#11523 - $_ = Object.create($_); //#11523 - $_.barchars = "0123456789"; //#11515 - $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11522 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11522 - bwipp_planet.__11523__ = 1; //#11522 - $_ = Object.getPrototypeOf($_); //#11522 - } //#11522 - $_.checksum = 0; //#11526 - for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11530 - $_.i = _F; //#11528 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11529 + $_ = Object.create($_); //#11508 + $_.dontdraw = false; //#11511 + $_.includetext = false; //#11512 + $_.validatecheck = false; //#11513 + $_.includecheckintext = false; //#11514 + $_.textfont = "OCR-B"; //#11515 + $_.textsize = 10; //#11516 + $_.textyoffset = -8; //#11517 + $_.height = 0.125; //#11518 + $k[$j++] = $_; //#11520 + bwipp_processoptions(); //#11520 + $_.options = $k[--$j]; //#11520 + $_.barcode = $k[--$j]; //#11521 + bwipp_loadctx(bwipp_postnet) //#11523 + $k[$j++] = 'barlen'; //#11525 + $k[$j++] = $_.barcode.length; //#11525 + if ($_.validatecheck) { //#11525 + var _4 = $k[--$j]; //#11525 + $k[$j++] = $f(_4 - 1); //#11525 + } //#11525 + var _5 = $k[--$j]; //#11525 + $_[$k[--$j]] = _5; //#11525 + if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11530 + $k[$j++] = 'bwipp.postnetBadLength#11529'; //#11529 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11529 + bwipp_raiseerror(); //#11529 } //#11529 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11531 - if ($_.validatecheck) { //#11537 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11535 - $k[$j++] = 'bwipp.planetBadCheckDigit#11534'; //#11534 - $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11534 - bwipp_raiseerror(); //#11534 - } //#11534 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11536 - } //#11536 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11539 - $_.txt = $a($f($_.barlen + 1)); //#11540 - $_.enc = $get($_.encs, 10); //#11543 - $_.heights = $a($_.enc.length); //#11544 - for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11548 - $_.j = _f; //#11546 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11547 - } //#11547 - $puti($_.bhs, 0, $_.heights); //#11549 - for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11561 - $_.i = _q; //#11552 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11553 - $_.heights = $a($_.enc.length); //#11554 - for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11558 - $_.j = _10; //#11556 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11557 + $forall($_.barcode, function() { //#11535 + var _B = $k[--$j]; //#11532 + if ((_B < 48) || (_B > 57)) { //#11534 + $k[$j++] = 'bwipp.postnetBadCharacter#11533'; //#11533 + $k[$j++] = "USPS POSTNET must contain only digits"; //#11533 + bwipp_raiseerror(); //#11533 + } //#11533 + }); //#11533 + if (!bwipp_postnet.__11547__) { //#11547 + $_ = Object.create($_); //#11547 + $_.barchars = "0123456789"; //#11539 + $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11546 + bwipp_postnet.__11547__ = 1; //#11546 + $_ = Object.getPrototypeOf($_); //#11546 + } //#11546 + $_.checksum = 0; //#11549 + for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11553 + $_.i = _G; //#11551 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11552 + } //#11552 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11554 + if ($_.validatecheck) { //#11560 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11558 + $k[$j++] = 'bwipp.postnetBadCheckDigit#11557'; //#11557 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11557 + bwipp_raiseerror(); //#11557 } //#11557 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11559 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11560 - } //#11560 - $_.enc = $get($_.encs, $_.checksum); //#11564 - $_.heights = $a($_.enc.length); //#11565 - for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11569 - $_.j = _1R; //#11567 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11568 - } //#11568 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11570 - if ($_.includecheckintext) { //#11575 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11573 - } else { //#11575 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11575 - } //#11575 - $_.enc = $get($_.encs, 11); //#11579 - $_.heights = $a($_.enc.length); //#11580 - for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11584 - $_.j = _1z; //#11582 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11583 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11559 + } //#11559 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11562 + $_.txt = $a($f($_.barlen + 1)); //#11563 + $_.enc = $get($_.encs, 10); //#11566 + $_.heights = $a($_.enc.length); //#11567 + for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11571 + $_.j = _g; //#11569 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11570 + } //#11570 + $puti($_.bhs, 0, $_.heights); //#11572 + for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11584 + $_.i = _r; //#11575 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11576 + $_.heights = $a($_.enc.length); //#11577 + for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11581 + $_.j = _11; //#11579 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11580 + } //#11580 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11582 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11583 } //#11583 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11585 - $k[$j++] = Infinity; //#11596 - var _29 = $_.bhs; //#11590 - $k[$j++] = Infinity; //#11591 - for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11591 - $k[$j++] = 0; //#11591 + $_.enc = $get($_.encs, $_.checksum); //#11587 + $_.heights = $a($_.enc.length); //#11588 + for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11592 + $_.j = _1S; //#11590 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11591 } //#11591 - var _2D = $a(); //#11591 - $k[$j++] = Infinity; //#11592 - for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11592 - $k[$j++] = 1.44; //#11592 - $k[$j++] = 1.872; //#11592 - } //#11592 - $k[$j++] = 1.44; //#11592 - var _2H = $a(); //#11592 - $k[$j++] = 'ren'; //#11595 - $k[$j++] = bwipp_renlinear; //#11595 - $k[$j++] = 'bhs'; //#11595 - $k[$j++] = _29; //#11595 - $k[$j++] = 'bbs'; //#11595 - $k[$j++] = _2D; //#11595 - $k[$j++] = 'sbs'; //#11595 - $k[$j++] = _2H; //#11595 - if ($_.includetext) { //#11595 - $k[$j++] = 'txt'; //#11594 - $k[$j++] = $_.txt; //#11594 - } //#11594 - $k[$j++] = 'opt'; //#11596 - $k[$j++] = $_.options; //#11596 - var _2L = $d(); //#11596 - $k[$j++] = _2L; //#11599 - if (!$_.dontdraw) { //#11599 - bwipp_renlinear(); //#11599 - } //#11599 - $_ = Object.getPrototypeOf($_); //#11601 - $_ = Object.getPrototypeOf($_); //#11603 -} - -function bwipp_royalmail() { - $_ = Object.create($_); //#11633 - $_.dontdraw = false; //#11636 - $_.includetext = false; //#11637 - $_.validatecheck = false; //#11638 - $_.includecheckintext = false; //#11639 - $_.textfont = "OCR-B"; //#11640 - $_.textsize = 10; //#11641 - $_.textyoffset = -8; //#11642 - $_.height = 0.175; //#11643 - $k[$j++] = $_; //#11645 - bwipp_processoptions(); //#11645 - $_.options = $k[--$j]; //#11645 - var _1 = $k[--$j]; //#11646 - $_.barcode = _1; //#11646 - bwipp_loadctx(bwipp_royalmail) //#11648 - if (!bwipp_royalmail.__11666__) { //#11666 - $_ = Object.create($_); //#11666 - $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11652 - $_.charvals = new Map; //#11653 - for (var _2 = 0; _2 <= 35; _2 += 1) { //#11654 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#11654 - } //#11654 - $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11665 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11665 - bwipp_royalmail.__11666__ = 1; //#11665 - $_ = Object.getPrototypeOf($_); //#11665 - } //#11665 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#11673 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#11670 - if (!_E) { //#11672 - $k[$j++] = 'bwipp.royalmailBadCharacter#11671'; //#11671 - $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11671 - bwipp_raiseerror(); //#11671 - } //#11671 - } //#11671 - $k[$j++] = 'barlen'; //#11675 - $k[$j++] = $_.barcode.length; //#11675 - if ($_.validatecheck) { //#11675 - var _H = $k[--$j]; //#11675 - $k[$j++] = $f(_H - 1); //#11675 - } //#11675 - var _I = $k[--$j]; //#11675 - $_[$k[--$j]] = _I; //#11675 - $_.checksumrow = 0; //#11677 - $_.checksumcol = 0; //#11678 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#11684 - $_.i = _M; //#11680 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11681 - $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11682 - $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11683 - } //#11683 - $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11685 - if ($_.validatecheck) { //#11691 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11689 - $k[$j++] = 'bwipp.royalmailBadCheckDigit#11688'; //#11688 - $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11688 - bwipp_raiseerror(); //#11688 - } //#11688 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11690 - } //#11690 - $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11693 - $_.txt = $a($f($_.barlen + 1)); //#11694 - $puti($_.encstr, 0, $get($_.encs, 36)); //#11697 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11704 - $_.i = _r; //#11700 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11701 - $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11702 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11703 - } //#11703 - $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11707 - if ($_.includecheckintext) { //#11711 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11709 - } else { //#11711 - $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11711 - } //#11711 - $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11715 - $_.bbs = $a($_.encstr.length); //#11717 - $_.bhs = $a($_.encstr.length); //#11718 - for (var _1j = 0, _1i = $_.encstr.length - 1; _1j <= _1i; _1j += 1) { //#11738 - $_.i = _1j; //#11720 - $_.enc = $geti($_.encstr, $_.i, 1); //#11721 - if ($eq($_.enc, "0")) { //#11725 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11723 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11724 - } //#11724 - if ($eq($_.enc, "1")) { //#11729 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11727 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11728 - } //#11728 - if ($eq($_.enc, "2")) { //#11733 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11731 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11732 - } //#11732 - if ($eq($_.enc, "3")) { //#11737 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11735 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11736 - } //#11736 - } //#11736 - $k[$j++] = Infinity; //#11749 - var _2F = $_.bbs; //#11743 - var _2G = $_.bhs; //#11744 - $k[$j++] = Infinity; //#11745 - for (var _2I = 0, _2J = $_.bhs.length - 1; _2I < _2J; _2I++) { //#11745 - $k[$j++] = 1.44; //#11745 - $k[$j++] = 1.872; //#11745 - } //#11745 - $k[$j++] = 1.44; //#11745 - var _2K = $a(); //#11745 - $k[$j++] = 'ren'; //#11748 - $k[$j++] = bwipp_renlinear; //#11748 - $k[$j++] = 'bbs'; //#11748 - $k[$j++] = _2F; //#11748 - $k[$j++] = 'bhs'; //#11748 - $k[$j++] = _2G; //#11748 - $k[$j++] = 'sbs'; //#11748 - $k[$j++] = _2K; //#11748 - if ($_.includetext) { //#11748 - $k[$j++] = 'txt'; //#11747 - $k[$j++] = $_.txt; //#11747 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11593 + if ($_.includecheckintext) { //#11598 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11596 + } else { //#11598 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11598 + } //#11598 + $_.enc = $get($_.encs, 11); //#11602 + $_.heights = $a($_.enc.length); //#11603 + for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11607 + $_.j = _20; //#11605 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11606 + } //#11606 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11608 + $k[$j++] = Infinity; //#11611 + var _2A = $_.bhs; //#11613 + $k[$j++] = Infinity; //#11614 + for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11614 + $k[$j++] = 0; //#11614 + } //#11614 + var _2E = $a(); //#11614 + $k[$j++] = Infinity; //#11615 + for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11615 + $k[$j++] = 1.44; //#11615 + $k[$j++] = 1.872; //#11615 + } //#11615 + $k[$j++] = 1.44; //#11615 + var _2I = $a(); //#11615 + $k[$j++] = 'ren'; //#11618 + $k[$j++] = bwipp_renlinear; //#11618 + $k[$j++] = 'bhs'; //#11618 + $k[$j++] = _2A; //#11618 + $k[$j++] = 'bbs'; //#11618 + $k[$j++] = _2E; //#11618 + $k[$j++] = 'sbs'; //#11618 + $k[$j++] = _2I; //#11618 + if ($_.includetext) { //#11618 + $k[$j++] = 'txt'; //#11617 + $k[$j++] = $_.txt; //#11617 + } //#11617 + $k[$j++] = 'opt'; //#11619 + $k[$j++] = $_.options; //#11619 + var _2M = $d(); //#11619 + $k[$j++] = _2M; //#11622 + if (!$_.dontdraw) { //#11622 + bwipp_renlinear(); //#11622 + } //#11622 + $_ = Object.getPrototypeOf($_); //#11624 + $_ = Object.getPrototypeOf($_); //#11626 +} //bwipp_postnet +function bwipp_planet() { + $_ = Object.create($_); //#11656 + $_.dontdraw = false; //#11659 + $_.includetext = false; //#11660 + $_.validatecheck = false; //#11661 + $_.includecheckintext = false; //#11662 + $_.textfont = "OCR-B"; //#11663 + $_.textsize = 10; //#11664 + $_.textyoffset = -8; //#11665 + $_.height = 0.125; //#11666 + $k[$j++] = $_; //#11668 + bwipp_processoptions(); //#11668 + $_.options = $k[--$j]; //#11668 + $_.barcode = $k[--$j]; //#11669 + bwipp_loadctx(bwipp_planet) //#11671 + $k[$j++] = 'barlen'; //#11673 + $k[$j++] = $_.barcode.length; //#11673 + if ($_.validatecheck) { //#11673 + var _4 = $k[--$j]; //#11673 + $k[$j++] = $f(_4 - 1); //#11673 + } //#11673 + var _5 = $k[--$j]; //#11673 + $_[$k[--$j]] = _5; //#11673 + if (($_.barlen != 11) && ($_.barlen != 13)) { //#11678 + $k[$j++] = 'bwipp.planetBadLength#11677'; //#11677 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11677 + bwipp_raiseerror(); //#11677 + } //#11677 + $forall($_.barcode, function() { //#11683 + var _A = $k[--$j]; //#11680 + if ((_A < 48) || (_A > 57)) { //#11682 + $k[$j++] = 'bwipp.planetBadCharacter#11681'; //#11681 + $k[$j++] = "USPS PLANET must contain only digits"; //#11681 + bwipp_raiseerror(); //#11681 + } //#11681 + }); //#11681 + if (!bwipp_planet.__11695__) { //#11695 + $_ = Object.create($_); //#11695 + $_.barchars = "0123456789"; //#11687 + $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11694 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11694 + bwipp_planet.__11695__ = 1; //#11694 + $_ = Object.getPrototypeOf($_); //#11694 + } //#11694 + $_.checksum = 0; //#11698 + for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11702 + $_.i = _F; //#11700 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11701 + } //#11701 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11703 + if ($_.validatecheck) { //#11709 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11707 + $k[$j++] = 'bwipp.planetBadCheckDigit#11706'; //#11706 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11706 + bwipp_raiseerror(); //#11706 + } //#11706 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11708 + } //#11708 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11711 + $_.txt = $a($f($_.barlen + 1)); //#11712 + $_.enc = $get($_.encs, 10); //#11715 + $_.heights = $a($_.enc.length); //#11716 + for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11720 + $_.j = _f; //#11718 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11719 + } //#11719 + $puti($_.bhs, 0, $_.heights); //#11721 + for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11733 + $_.i = _q; //#11724 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11725 + $_.heights = $a($_.enc.length); //#11726 + for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11730 + $_.j = _10; //#11728 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11729 + } //#11729 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11731 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11732 + } //#11732 + $_.enc = $get($_.encs, $_.checksum); //#11736 + $_.heights = $a($_.enc.length); //#11737 + for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11741 + $_.j = _1R; //#11739 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11740 + } //#11740 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11742 + if ($_.includecheckintext) { //#11747 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11745 + } else { //#11747 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11747 } //#11747 - $k[$j++] = 'opt'; //#11749 - $k[$j++] = $_.options; //#11749 - var _2O = $d(); //#11749 - $k[$j++] = _2O; //#11752 - if (!$_.dontdraw) { //#11752 - bwipp_renlinear(); //#11752 - } //#11752 - $_ = Object.getPrototypeOf($_); //#11754 - $_ = Object.getPrototypeOf($_); //#11756 -} - + $_.enc = $get($_.encs, 11); //#11751 + $_.heights = $a($_.enc.length); //#11752 + for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11756 + $_.j = _1z; //#11754 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11755 + } //#11755 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11757 + $k[$j++] = Infinity; //#11760 + var _29 = $_.bhs; //#11762 + $k[$j++] = Infinity; //#11763 + for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11763 + $k[$j++] = 0; //#11763 + } //#11763 + var _2D = $a(); //#11763 + $k[$j++] = Infinity; //#11764 + for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11764 + $k[$j++] = 1.44; //#11764 + $k[$j++] = 1.872; //#11764 + } //#11764 + $k[$j++] = 1.44; //#11764 + var _2H = $a(); //#11764 + $k[$j++] = 'ren'; //#11767 + $k[$j++] = bwipp_renlinear; //#11767 + $k[$j++] = 'bhs'; //#11767 + $k[$j++] = _29; //#11767 + $k[$j++] = 'bbs'; //#11767 + $k[$j++] = _2D; //#11767 + $k[$j++] = 'sbs'; //#11767 + $k[$j++] = _2H; //#11767 + if ($_.includetext) { //#11767 + $k[$j++] = 'txt'; //#11766 + $k[$j++] = $_.txt; //#11766 + } //#11766 + $k[$j++] = 'opt'; //#11768 + $k[$j++] = $_.options; //#11768 + var _2L = $d(); //#11768 + $k[$j++] = _2L; //#11771 + if (!$_.dontdraw) { //#11771 + bwipp_renlinear(); //#11771 + } //#11771 + $_ = Object.getPrototypeOf($_); //#11773 + $_ = Object.getPrototypeOf($_); //#11775 +} //bwipp_planet +function bwipp_royalmail() { + $_ = Object.create($_); //#11805 + $_.dontdraw = false; //#11808 + $_.includetext = false; //#11809 + $_.validatecheck = false; //#11810 + $_.includecheckintext = false; //#11811 + $_.textfont = "OCR-B"; //#11812 + $_.textsize = 10; //#11813 + $_.textyoffset = -8; //#11814 + $_.height = 0.175; //#11815 + $k[$j++] = $_; //#11817 + bwipp_processoptions(); //#11817 + $_.options = $k[--$j]; //#11817 + $_.barcode = $k[--$j]; //#11818 + if ($eq($_.barcode, "")) { //#11822 + $k[$j++] = 'bwipp.royalmailEmptyData#11821'; //#11821 + $k[$j++] = "The data must not be empty"; //#11821 + bwipp_raiseerror(); //#11821 + } //#11821 + bwipp_loadctx(bwipp_royalmail) //#11824 + if (!bwipp_royalmail.__11842__) { //#11842 + $_ = Object.create($_); //#11842 + $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11828 + $_.charvals = new Map; //#11829 + for (var _3 = 0; _3 <= 35; _3 += 1) { //#11830 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#11830 + } //#11830 + $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11841 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11841 + bwipp_royalmail.__11842__ = 1; //#11841 + $_ = Object.getPrototypeOf($_); //#11841 + } //#11841 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#11849 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#11846 + if (!_F) { //#11848 + $k[$j++] = 'bwipp.royalmailBadCharacter#11847'; //#11847 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11847 + bwipp_raiseerror(); //#11847 + } //#11847 + } //#11847 + $k[$j++] = 'barlen'; //#11851 + $k[$j++] = $_.barcode.length; //#11851 + if ($_.validatecheck) { //#11851 + var _I = $k[--$j]; //#11851 + $k[$j++] = $f(_I - 1); //#11851 + } //#11851 + var _J = $k[--$j]; //#11851 + $_[$k[--$j]] = _J; //#11851 + $_.checksumrow = 0; //#11853 + $_.checksumcol = 0; //#11854 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#11860 + $_.i = _N; //#11856 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11857 + $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11858 + $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11859 + } //#11859 + $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11861 + if ($_.validatecheck) { //#11867 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11865 + $k[$j++] = 'bwipp.royalmailBadCheckDigit#11864'; //#11864 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11864 + bwipp_raiseerror(); //#11864 + } //#11864 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11866 + } //#11866 + $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11869 + $_.txt = $a($f($_.barlen + 1)); //#11870 + $puti($_.encstr, 0, $get($_.encs, 36)); //#11873 + for (var _s = 0, _r = $f($_.barlen - 1); _s <= _r; _s += 1) { //#11880 + $_.i = _s; //#11876 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11877 + $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11878 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11879 + } //#11879 + $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11883 + if ($_.includecheckintext) { //#11887 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11885 + } else { //#11887 + $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11887 + } //#11887 + $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11891 + $_.bbs = $a($_.encstr.length); //#11893 + $_.bhs = $a($_.encstr.length); //#11894 + for (var _1k = 0, _1j = $_.encstr.length - 1; _1k <= _1j; _1k += 1) { //#11914 + $_.i = _1k; //#11896 + $_.enc = $geti($_.encstr, $_.i, 1); //#11897 + if ($eq($_.enc, "0")) { //#11901 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11899 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11900 + } //#11900 + if ($eq($_.enc, "1")) { //#11905 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11903 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11904 + } //#11904 + if ($eq($_.enc, "2")) { //#11909 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11907 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11908 + } //#11908 + if ($eq($_.enc, "3")) { //#11913 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11911 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11912 + } //#11912 + } //#11912 + $k[$j++] = Infinity; //#11917 + var _2G = $_.bbs; //#11919 + var _2H = $_.bhs; //#11920 + $k[$j++] = Infinity; //#11921 + for (var _2J = 0, _2K = $_.bhs.length - 1; _2J < _2K; _2J++) { //#11921 + $k[$j++] = 1.44; //#11921 + $k[$j++] = 1.872; //#11921 + } //#11921 + $k[$j++] = 1.44; //#11921 + var _2L = $a(); //#11921 + $k[$j++] = 'ren'; //#11924 + $k[$j++] = bwipp_renlinear; //#11924 + $k[$j++] = 'bbs'; //#11924 + $k[$j++] = _2G; //#11924 + $k[$j++] = 'bhs'; //#11924 + $k[$j++] = _2H; //#11924 + $k[$j++] = 'sbs'; //#11924 + $k[$j++] = _2L; //#11924 + if ($_.includetext) { //#11924 + $k[$j++] = 'txt'; //#11923 + $k[$j++] = $_.txt; //#11923 + } //#11923 + $k[$j++] = 'opt'; //#11925 + $k[$j++] = $_.options; //#11925 + var _2P = $d(); //#11925 + $k[$j++] = _2P; //#11928 + if (!$_.dontdraw) { //#11928 + bwipp_renlinear(); //#11928 + } //#11928 + $_ = Object.getPrototypeOf($_); //#11930 + $_ = Object.getPrototypeOf($_); //#11932 +} //bwipp_royalmail function bwipp_auspost() { - $_ = Object.create($_); //#11786 - $_.dontdraw = false; //#11789 - $_.includetext = false; //#11790 - $_.textfont = "OCR-B"; //#11791 - $_.textsize = 10; //#11792 - $_.textyoffset = -8; //#11793 - $_.height = 0.175; //#11794 - $_.custinfoenc = "character"; //#11795 - $k[$j++] = $_; //#11797 - bwipp_processoptions(); //#11797 - $_.options = $k[--$j]; //#11797 - $_.barcode = $k[--$j]; //#11798 - if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11802 - $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11801'; //#11801 - $k[$j++] = "Customer information encoding must be either character or numeric"; //#11801 - bwipp_raiseerror(); //#11801 - } //#11801 - bwipp_loadctx(bwipp_auspost) //#11804 - if (!bwipp_auspost.__11827__) { //#11827 - $_ = Object.create($_); //#11827 - $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11819 - $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11822 + $_ = Object.create($_); //#11962 + $_.dontdraw = false; //#11965 + $_.includetext = false; //#11966 + $_.textfont = "OCR-B"; //#11967 + $_.textsize = 10; //#11968 + $_.textyoffset = -8; //#11969 + $_.height = 0.175; //#11970 + $_.custinfoenc = "character"; //#11971 + $k[$j++] = $_; //#11973 + bwipp_processoptions(); //#11973 + $_.options = $k[--$j]; //#11973 + $_.barcode = $k[--$j]; //#11974 + if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11978 + $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11977'; //#11977 + $k[$j++] = "Customer information encoding must be either character or numeric"; //#11977 + bwipp_raiseerror(); //#11977 + } //#11977 + bwipp_loadctx(bwipp_auspost) //#11980 + if (!bwipp_auspost.__12003__) { //#12003 + $_ = Object.create($_); //#12003 + $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11995 + $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11998 var _5 = new Map([ ["11", 37], ["45", 37], ["59", 52], ["62", 67] - ]); //#11825 - $_.fcclen = _5; //#11825 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11825 - bwipp_auspost.__11827__ = 1; //#11825 - $_ = Object.getPrototypeOf($_); //#11825 - } //#11825 - $_.barlen = $_.barcode.length; //#11829 - $_.txt = $a($_.barlen - 2); //#11830 - $k[$j++] = $_.fcclen; //#11832 - if ($_.barlen >= 2) { //#11832 - $k[$j++] = $geti($_.barcode, 0, 2); //#11832 - } else { //#11832 - $k[$j++] = ""; //#11832 - } //#11832 - var _E = $k[--$j]; //#11833 - var _F = $k[--$j]; //#11833 - var _G = $get(_F, _E) !== undefined; //#11833 - $k[$j++] = _F; //#11835 - $k[$j++] = _E; //#11835 - if (!_G) { //#11835 - $j -= 2; //#11834 - $k[$j++] = 'bwipp.auspostBadFCC#11834'; //#11834 - $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#11834 - bwipp_raiseerror(); //#11834 - } //#11834 - var _H = $k[--$j]; //#11836 - $_.encstr = $s($get($k[--$j], _H)); //#11836 - $k[$j++] = true; //#11843 - for (var _L = 0, _M = 1; _L < _M; _L++) { //#11843 - if ($_.barlen < 10) { //#11841 - $j--; //#11841 - $k[$j++] = false; //#11841 - break; //#11841 - } //#11841 - var _P = $geti($_.barcode, 2, 8); //#11842 - for (var _Q = 0, _R = _P.length; _Q < _R; _Q++) { //#11842 - var _S = $get(_P, _Q); //#11842 - if ((_S < 48) || (_S > 57)) { //#11842 - $j--; //#11842 - $k[$j++] = false; //#11842 - break; //#11842 - } //#11842 - } //#11842 - } //#11842 - if ($nt($k[--$j])) { //#11846 - $k[$j++] = 'bwipp.auspostIncompleteDPID#11845'; //#11845 - $k[$j++] = "The DPID must be 8 digits"; //#11845 - bwipp_raiseerror(); //#11845 - } //#11845 - var _W = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#11849 - if ((($_.barlen - 10) * _W) > (($_.encstr.length - 22) - 14)) { //#11852 - $k[$j++] = 'bwipp.auspostTooLong#11851'; //#11851 - $k[$j++] = "The message is too long"; //#11851 - bwipp_raiseerror(); //#11851 - } //#11851 - $puti($_.encstr, 0, $get($_.encs, 74)); //#11855 - for (var _b = 0; _b <= 1; _b += 1) { //#11862 - $_.i = _b; //#11859 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11861 - } //#11861 - for (var _j = 2; _j <= 9; _j += 1) { //#11870 - $_.i = _j; //#11866 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11868 - $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11869 - } //#11869 - if ($eq($_.custinfoenc, "numeric")) { //#11898 - for (var _14 = 0, _13 = $_.barlen - 11; _14 <= _13; _14 += 1) { //#11883 - $_.i = _14; //#11875 - var _18 = $get($_.barcode, $_.i + 10); //#11876 - $k[$j++] = $_.encs; //#11879 - $k[$j++] = _18; //#11879 - if ((_18 < 48) || (_18 > 57)) { //#11879 - $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#11878'; //#11878 - $k[$j++] = "The customer information data contains a non-digit character"; //#11878 - bwipp_raiseerror(); //#11878 - } //#11878 - var _19 = $k[--$j]; //#11880 - $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_19 - 48) + 64))); //#11881 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11882 - } //#11882 - $_.ciflen = ($_.barlen - 10) * 2; //#11884 - } else { //#11898 - for (var _1R = 0, _1Q = $_.barlen - 11; _1R <= _1Q; _1R += 1) { //#11897 - $_.i = _1R; //#11887 - $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#11888 - if ($nt($k[--$j])) { //#11891 - $j--; //#11890 - $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#11890'; //#11890 - $k[$j++] = "The customer information contains an invalid character"; //#11890 - bwipp_raiseerror(); //#11890 - } //#11890 - $_.indx = $k[--$j].length; //#11892 - $j -= 2; //#11893 - $_.enc = $get($_.encs, $_.indx); //#11894 - $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#11895 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11896 - } //#11896 - $_.ciflen = ($_.barlen - 10) * 3; //#11898 - } //#11898 - for (var _1s = 22 + $_.ciflen, _1r = $_.encstr.length - 14; _1s <= _1r; _1s += 1) { //#11904 - $puti($_.encstr, _1s, $get($_.encs, 75)); //#11903 - } //#11903 - if (!bwipp_auspost.__11927__) { //#11927 - $_ = Object.create($_); //#11927 - $_.rstable = $a(64 * 64); //#11908 - $k[$j++] = $_.rstable; //#11909 - $k[$j++] = 0; //#11909 - $k[$j++] = Infinity; //#11909 - for (var _1y = 0, _1z = 64; _1y < _1z; _1y++) { //#11909 - $k[$j++] = 0; //#11909 - } //#11909 - var _20 = $a(); //#11909 - var _21 = $k[--$j]; //#11909 - $puti($k[--$j], _21, _20); //#11909 - $k[$j++] = $_.rstable; //#11910 - $k[$j++] = 64; //#11910 - $k[$j++] = Infinity; //#11910 - for (var _24 = 0; _24 <= 63; _24 += 1) { //#11910 - $k[$j++] = _24; //#11910 - } //#11910 - var _25 = $a(); //#11910 - var _26 = $k[--$j]; //#11910 - $puti($k[--$j], _26, _25); //#11910 - $_.prev = 1; //#11911 - for (var _28 = 0, _29 = 64; _28 < _29; _28++) { //#11926 - $_.next = $_.prev << 1; //#11913 - if (($_.next & 64) != 0) { //#11916 - $_.next = $_.next ^ 67; //#11915 - } //#11915 - for (var _2D = 0; _2D <= 63; _2D += 1) { //#11924 - $_.j = _2D; //#11918 - $_.nextcell = function() { - $k[$j++] = $_.rstable; //#11919 - $k[$j++] = (64 * $_.next) + $_.j; //#11919 - }; //#11919 - $_.nextcell(); //#11920 - var _2L = $k[--$j]; //#11920 - $put($k[--$j], _2L, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#11920 - $_.nextcell(); //#11921 - var _2N = $k[--$j]; //#11921 - if (($get($k[--$j], _2N) & 64) != 0) { //#11923 - $_.nextcell(); //#11922 - $_.nextcell(); //#11922 - var _2Q = $k[--$j]; //#11922 - var _2S = $get($k[--$j], _2Q); //#11922 - var _2T = $k[--$j]; //#11922 - $put($k[--$j], _2T, _2S ^ 67); //#11922 - } //#11922 - } //#11922 - $_.prev = $_.next; //#11925 - } //#11925 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11925 - bwipp_auspost.__11927__ = 1; //#11925 - $_ = Object.getPrototypeOf($_); //#11925 - } //#11925 - $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#11930 - $k[$j++] = $_.rscodes; //#11931 - $k[$j++] = 0; //#11931 - $k[$j++] = Infinity; //#11931 - for (var _2a = 0, _2b = 4; _2a < _2b; _2a++) { //#11931 - $k[$j++] = 0; //#11931 - } //#11931 - var _2c = $a(); //#11931 - var _2d = $k[--$j]; //#11931 - $puti($k[--$j], _2d, _2c); //#11931 - for (var _2h = 2, _2g = $_.encstr.length - 16; _2h <= _2g; _2h += 3) { //#11939 - $_.i = _2h; //#11933 - $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#11938 - } //#11938 - for (var _2v = $_.rscodes.length - 5; _2v >= 0; _2v -= 1) { //#11948 - $_.i = _2v; //#11941 - for (var _2w = 0; _2w <= 4; _2w += 1) { //#11947 - $_.j = _2w; //#11943 - $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#11946 - } //#11946 - } //#11946 - $_.checkcode = $strcpy($s(12), "000000000000"); //#11949 - for (var _3E = 0; _3E <= 3; _3E += 1) { //#11954 - $_.i = _3E; //#11951 - $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#11952 - $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#11953 - } //#11953 - $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#11957 - $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#11958 - $_.bbs = $a($_.encstr.length); //#11960 - $_.bhs = $a($_.encstr.length); //#11961 - for (var _3b = 0, _3a = $_.encstr.length - 1; _3b <= _3a; _3b += 1) { //#11981 - $_.i = _3b; //#11963 - $_.enc = $geti($_.encstr, $_.i, 1); //#11964 - if ($eq($_.enc, "0")) { //#11968 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11966 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11967 - } //#11967 - if ($eq($_.enc, "1")) { //#11972 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11970 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11971 - } //#11971 - if ($eq($_.enc, "2")) { //#11976 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11974 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11975 - } //#11975 - if ($eq($_.enc, "3")) { //#11980 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11978 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11979 - } //#11979 - } //#11979 - $k[$j++] = Infinity; //#11992 - var _47 = $_.bbs; //#11986 - var _48 = $_.bhs; //#11987 - $k[$j++] = Infinity; //#11988 - for (var _4A = 0, _4B = $_.bhs.length - 1; _4A < _4B; _4A++) { //#11988 - $k[$j++] = 1.44; //#11988 - $k[$j++] = 1.872; //#11988 - } //#11988 - $k[$j++] = 1.44; //#11988 - var _4C = $a(); //#11988 - $k[$j++] = 'ren'; //#11991 - $k[$j++] = bwipp_renlinear; //#11991 - $k[$j++] = 'bbs'; //#11991 - $k[$j++] = _47; //#11991 - $k[$j++] = 'bhs'; //#11991 - $k[$j++] = _48; //#11991 - $k[$j++] = 'sbs'; //#11991 - $k[$j++] = _4C; //#11991 - if ($_.includetext) { //#11991 - $k[$j++] = 'txt'; //#11990 - $k[$j++] = $_.txt; //#11990 - } //#11990 - $k[$j++] = 'opt'; //#11992 - $k[$j++] = $_.options; //#11992 - var _4G = $d(); //#11992 - $k[$j++] = _4G; //#11995 - if (!$_.dontdraw) { //#11995 - bwipp_renlinear(); //#11995 - } //#11995 - $_ = Object.getPrototypeOf($_); //#11997 - $_ = Object.getPrototypeOf($_); //#11999 -} - -function bwipp_kix() { - $_ = Object.create($_); //#12029 - $_.dontdraw = false; //#12032 - $_.includetext = false; //#12033 - $_.textfont = "OCR-B"; //#12034 - $_.textsize = 10; //#12035 - $_.textyoffset = -8; //#12036 - $_.height = 0.175; //#12037 - $k[$j++] = $_; //#12039 - bwipp_processoptions(); //#12039 - $_.options = $k[--$j]; //#12039 - var _1 = $k[--$j]; //#12040 - $_.barcode = _1; //#12040 - bwipp_loadctx(bwipp_kix) //#12042 - if (!bwipp_kix.__12059__) { //#12059 - $_ = Object.create($_); //#12059 - $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12053 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12056 - $_.charvals = new Map; //#12057 - for (var _3 = 0; _3 <= 35; _3 += 1) { //#12058 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12058 - } //#12058 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12058 - bwipp_kix.__12059__ = 1; //#12058 - $_ = Object.getPrototypeOf($_); //#12058 - } //#12058 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12066 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12063 - if (!_E) { //#12065 - $k[$j++] = 'bwipp.kixBadCharacter#12064'; //#12064 - $k[$j++] = "KIX must contain only capital letters and digits"; //#12064 - bwipp_raiseerror(); //#12064 - } //#12064 - } //#12064 - $_.barlen = $_.barcode.length; //#12068 - $_.encstr = $s($_.barlen * 4); //#12069 - $_.txt = $a($_.barlen); //#12070 - for (var _M = 0, _L = $_.barlen - 1; _M <= _L; _M += 1) { //#12077 - $_.i = _M; //#12073 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12074 - $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12075 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 - } //#12076 - $_.bbs = $a($_.encstr.length); //#12079 - $_.bhs = $a($_.encstr.length); //#12080 - for (var _n = 0, _m = $_.encstr.length - 1; _n <= _m; _n += 1) { //#12100 - $_.i = _n; //#12082 - $_.enc = $geti($_.encstr, $_.i, 1); //#12083 - if ($eq($_.enc, "0")) { //#12087 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12085 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12086 - } //#12086 - if ($eq($_.enc, "1")) { //#12091 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12089 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12090 + ]); //#12001 + $_.fcclen = _5; //#12001 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12001 + bwipp_auspost.__12003__ = 1; //#12001 + $_ = Object.getPrototypeOf($_); //#12001 + } //#12001 + $_.barlen = $_.barcode.length; //#12005 + if ($_.barlen < 10) { //#12008 + $k[$j++] = 'bwipp.auspostTooShort#12007'; //#12007 + $k[$j++] = "The data length must be at least 10"; //#12007 + bwipp_raiseerror(); //#12007 + } //#12007 + $_.txt = $a($_.barlen - 2); //#12010 + $k[$j++] = $_.fcclen; //#12012 + if ($_.barlen >= 2) { //#12012 + $k[$j++] = $geti($_.barcode, 0, 2); //#12012 + } else { //#12012 + $k[$j++] = ""; //#12012 + } //#12012 + var _F = $k[--$j]; //#12013 + var _G = $k[--$j]; //#12013 + var _H = $get(_G, _F) !== undefined; //#12013 + $k[$j++] = _G; //#12015 + $k[$j++] = _F; //#12015 + if (!_H) { //#12015 + $j -= 2; //#12014 + $k[$j++] = 'bwipp.auspostBadFCC#12014'; //#12014 + $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#12014 + bwipp_raiseerror(); //#12014 + } //#12014 + var _I = $k[--$j]; //#12016 + $_.encstr = $s($get($k[--$j], _I)); //#12016 + $k[$j++] = true; //#12023 + for (var _M = 0, _N = 1; _M < _N; _M++) { //#12023 + if ($_.barlen < 10) { //#12021 + $j--; //#12021 + $k[$j++] = false; //#12021 + break; //#12021 + } //#12021 + var _Q = $geti($_.barcode, 2, 8); //#12022 + for (var _R = 0, _S = _Q.length; _R < _S; _R++) { //#12022 + var _T = $get(_Q, _R); //#12022 + if ((_T < 48) || (_T > 57)) { //#12022 + $j--; //#12022 + $k[$j++] = false; //#12022 + break; //#12022 + } //#12022 + } //#12022 + } //#12022 + if ($nt($k[--$j])) { //#12026 + $k[$j++] = 'bwipp.auspostIncompleteDPID#12025'; //#12025 + $k[$j++] = "The DPID must be 8 digits"; //#12025 + bwipp_raiseerror(); //#12025 + } //#12025 + var _X = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#12029 + if ((($_.barlen - 10) * _X) > (($_.encstr.length - 22) - 14)) { //#12032 + $k[$j++] = 'bwipp.auspostTooLong#12031'; //#12031 + $k[$j++] = "The message is too long"; //#12031 + bwipp_raiseerror(); //#12031 + } //#12031 + $puti($_.encstr, 0, $get($_.encs, 74)); //#12035 + for (var _c = 0; _c <= 1; _c += 1) { //#12042 + $_.i = _c; //#12039 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12041 + } //#12041 + for (var _k = 2; _k <= 9; _k += 1) { //#12050 + $_.i = _k; //#12046 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12048 + $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12049 + } //#12049 + if ($eq($_.custinfoenc, "numeric")) { //#12078 + for (var _15 = 0, _14 = $_.barlen - 11; _15 <= _14; _15 += 1) { //#12063 + $_.i = _15; //#12055 + var _19 = $get($_.barcode, $_.i + 10); //#12056 + $k[$j++] = $_.encs; //#12059 + $k[$j++] = _19; //#12059 + if ((_19 < 48) || (_19 > 57)) { //#12059 + $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#12058'; //#12058 + $k[$j++] = "The customer information data contains a non-digit character"; //#12058 + bwipp_raiseerror(); //#12058 + } //#12058 + var _1A = $k[--$j]; //#12060 + $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_1A - 48) + 64))); //#12061 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12062 + } //#12062 + $_.ciflen = ($_.barlen - 10) * 2; //#12064 + } else { //#12078 + for (var _1S = 0, _1R = $_.barlen - 11; _1S <= _1R; _1S += 1) { //#12077 + $_.i = _1S; //#12067 + $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#12068 + if ($nt($k[--$j])) { //#12071 + $j--; //#12070 + $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#12070'; //#12070 + $k[$j++] = "The customer information contains an invalid character"; //#12070 + bwipp_raiseerror(); //#12070 + } //#12070 + $_.indx = $k[--$j].length; //#12072 + $j -= 2; //#12073 + $_.enc = $get($_.encs, $_.indx); //#12074 + $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#12075 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 + } //#12076 + $_.ciflen = ($_.barlen - 10) * 3; //#12078 + } //#12078 + for (var _1t = 22 + $_.ciflen, _1s = $_.encstr.length - 14; _1t <= _1s; _1t += 1) { //#12084 + $puti($_.encstr, _1t, $get($_.encs, 75)); //#12083 + } //#12083 + if (!bwipp_auspost.__12107__) { //#12107 + $_ = Object.create($_); //#12107 + $_.rstable = $a(64 * 64); //#12088 + $k[$j++] = $_.rstable; //#12089 + $k[$j++] = 0; //#12089 + $k[$j++] = Infinity; //#12089 + for (var _1z = 0, _20 = 64; _1z < _20; _1z++) { //#12089 + $k[$j++] = 0; //#12089 + } //#12089 + var _21 = $a(); //#12089 + var _22 = $k[--$j]; //#12089 + $puti($k[--$j], _22, _21); //#12089 + $k[$j++] = $_.rstable; //#12090 + $k[$j++] = 64; //#12090 + $k[$j++] = Infinity; //#12090 + for (var _25 = 0; _25 <= 63; _25 += 1) { //#12090 + $k[$j++] = _25; //#12090 } //#12090 - if ($eq($_.enc, "2")) { //#12095 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12093 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12094 - } //#12094 - if ($eq($_.enc, "3")) { //#12099 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12097 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12098 - } //#12098 - } //#12098 + var _26 = $a(); //#12090 + var _27 = $k[--$j]; //#12090 + $puti($k[--$j], _27, _26); //#12090 + $_.prev = 1; //#12091 + for (var _29 = 0, _2A = 64; _29 < _2A; _29++) { //#12106 + $_.next = $_.prev << 1; //#12093 + if (($_.next & 64) != 0) { //#12096 + $_.next = $_.next ^ 67; //#12095 + } //#12095 + for (var _2E = 0; _2E <= 63; _2E += 1) { //#12104 + $_.j = _2E; //#12098 + $_.nextcell = function() { + $k[$j++] = $_.rstable; //#12099 + $k[$j++] = (64 * $_.next) + $_.j; //#12099 + }; //#12099 + $_.nextcell(); //#12100 + var _2M = $k[--$j]; //#12100 + $put($k[--$j], _2M, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#12100 + $_.nextcell(); //#12101 + var _2O = $k[--$j]; //#12101 + if (($get($k[--$j], _2O) & 64) != 0) { //#12103 + $_.nextcell(); //#12102 + $_.nextcell(); //#12102 + var _2R = $k[--$j]; //#12102 + var _2T = $get($k[--$j], _2R); //#12102 + var _2U = $k[--$j]; //#12102 + $put($k[--$j], _2U, _2T ^ 67); //#12102 + } //#12102 + } //#12102 + $_.prev = $_.next; //#12105 + } //#12105 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12105 + bwipp_auspost.__12107__ = 1; //#12105 + $_ = Object.getPrototypeOf($_); //#12105 + } //#12105 + $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#12110 + $k[$j++] = $_.rscodes; //#12111 + $k[$j++] = 0; //#12111 $k[$j++] = Infinity; //#12111 - var _1J = $_.bbs; //#12105 - var _1K = $_.bhs; //#12106 - $k[$j++] = Infinity; //#12107 - for (var _1M = 0, _1N = $_.bhs.length - 1; _1M < _1N; _1M++) { //#12107 - $k[$j++] = 1.44; //#12107 - $k[$j++] = 1.872; //#12107 - } //#12107 - $k[$j++] = 1.44; //#12107 - var _1O = $a(); //#12107 - $k[$j++] = 'ren'; //#12110 - $k[$j++] = bwipp_renlinear; //#12110 - $k[$j++] = 'bbs'; //#12110 - $k[$j++] = _1J; //#12110 - $k[$j++] = 'bhs'; //#12110 - $k[$j++] = _1K; //#12110 - $k[$j++] = 'sbs'; //#12110 - $k[$j++] = _1O; //#12110 - if ($_.includetext) { //#12110 - $k[$j++] = 'txt'; //#12109 - $k[$j++] = $_.txt; //#12109 - } //#12109 - $k[$j++] = 'opt'; //#12111 - $k[$j++] = $_.options; //#12111 - var _1S = $d(); //#12111 - $k[$j++] = _1S; //#12114 - if (!$_.dontdraw) { //#12114 - bwipp_renlinear(); //#12114 - } //#12114 - $_ = Object.getPrototypeOf($_); //#12116 - $_ = Object.getPrototypeOf($_); //#12118 -} - -function bwipp_japanpost() { - $_ = Object.create($_); //#12148 - $_.dontdraw = false; //#12151 - $_.includetext = false; //#12152 - $_.includecheckintext = false; //#12153 - $_.textfont = "OCR-B"; //#12154 - $_.textsize = 10; //#12155 - $_.textyoffset = -8; //#12156 - $_.height = 0.175; //#12157 - $k[$j++] = $_; //#12159 - bwipp_processoptions(); //#12159 - $_.options = $k[--$j]; //#12159 - $_.barcode = $k[--$j]; //#12160 - bwipp_loadctx(bwipp_japanpost) //#12162 - $forall($_.barcode, function() { //#12171 - var _3 = $k[--$j]; //#12166 - if (!(((_3 >= 48) && (_3 <= 57)) || (((_3 >= 65) && (_3 <= 90)) || (_3 == 45)))) { //#12170 - $k[$j++] = 'bwipp.japanPostBadCharacter#12169'; //#12169 - $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12169 - if ('raiseerror'() === true) { - return true; - } //#12169 - } //#12169 - }); //#12169 - if (!bwipp_japanpost.__12183__) { //#12183 - $_ = Object.create($_); //#12183 - $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12179 - $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12182 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12182 - bwipp_japanpost.__12183__ = 1; //#12182 - $_ = Object.getPrototypeOf($_); //#12182 - } //#12182 - $_.barlen = $_.barcode.length; //#12185 - $_.encstr = $s(((20 + 1) * 3) + 4); //#12187 - $_.digits = $a(20); //#12188 - $_.txt = $a($_.barlen + 1); //#12189 - $puti($_.encstr, 0, $get($_.encs, 19)); //#12192 - $_.checksum = 0; //#12194 - $_.j = 0; //#12195 - $_.i = 0; //#12195 - $k[$j++] = true; //#12230 - for (var _G = 0, _F = $_.barlen - 1; _G <= _F; _G += 1) { //#12230 - $_.i = _G; //#12198 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12199 - $j--; //#12200 - $_.indx = $k[--$j].length; //#12201 - $j -= 2; //#12202 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12213 - if ($_.j > 18) { //#12204 - $j--; //#12204 - $k[$j++] = false; //#12204 - break; //#12204 - } //#12204 - $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12208 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12209 - $_.checksum = $_.checksum + $_.digit; //#12210 - $put($_.digits, $_.j, $_.digit); //#12211 - $_.j = $_.j + 1; //#12212 - } //#12212 - if ($_.j > 19) { //#12214 - $j--; //#12214 - $k[$j++] = false; //#12214 - break; //#12214 - } //#12214 - $_.digit = 0; //#12215 - if ($_.indx == 37) { //#12218 - $_.digit = 14; //#12217 - } //#12217 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12221 - $_.digit = ($_.indx - 1) % 10; //#12220 - } //#12220 - if ($_.indx < 11) { //#12224 - $_.digit = $_.indx; //#12223 - } //#12223 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12225 - $_.checksum = $_.checksum + $_.digit; //#12226 - $put($_.digits, $_.j, $_.digit); //#12227 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12228 - $_.j = $_.j + 1; //#12229 - } //#12229 - if ($nt($k[--$j])) { //#12234 - $k[$j++] = 'bwipp.japanpostTooLong#12233'; //#12233 - $k[$j++] = "The input is too long"; //#12233 - bwipp_raiseerror(); //#12233 - } //#12233 - for (var _16 = $_.j, _15 = 20 - 1; _16 <= _15; _16 += 1) { //#12242 - $_.k = _16; //#12238 - $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12239 - $_.checksum = $_.checksum + 14; //#12240 - $put($_.digits, $_.k, 14); //#12241 - } //#12241 - $_.checksum = 19 - ($_.checksum % 19); //#12245 - $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12246 - $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12249 - $_.checkdigit = " "; //#12250 - if ($_.includecheckintext) { //#12253 - $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12252 - } //#12252 - $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12254 - $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12257 - $_.bbs = $a((21 * 3) + 4); //#12259 - $_.bhs = $a($_.bbs.length); //#12260 - for (var _1f = 0, _1e = $_.bbs.length - 1; _1f <= _1e; _1f += 1) { //#12284 - $_.i = _1f; //#12262 - $_.enc = $geti($_.encstr, $_.i, 1); //#12263 - $_.bunit = 0; //#12264 - $_.hunit = 0; //#12265 - if ($eq($_.enc, "0")) { //#12269 - $_.bunit = 3; //#12267 - $_.hunit = 2; //#12268 - } //#12268 - if ($eq($_.enc, "1")) { //#12273 - $_.bunit = 0; //#12271 - $_.hunit = 5; //#12272 - } //#12272 - if ($eq($_.enc, "2")) { //#12277 - $_.bunit = 3; //#12275 - $_.hunit = 5; //#12276 - } //#12276 - if ($eq($_.enc, "3")) { //#12281 - $_.bunit = 0; //#12279 - $_.hunit = 8; //#12280 - } //#12280 - $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12282 - $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12283 - } //#12283 - $k[$j++] = Infinity; //#12295 - var _1v = $_.bbs; //#12289 - var _1w = $_.bhs; //#12290 + for (var _2b = 0, _2c = 4; _2b < _2c; _2b++) { //#12111 + $k[$j++] = 0; //#12111 + } //#12111 + var _2d = $a(); //#12111 + var _2e = $k[--$j]; //#12111 + $puti($k[--$j], _2e, _2d); //#12111 + for (var _2i = 2, _2h = $_.encstr.length - 16; _2i <= _2h; _2i += 3) { //#12119 + $_.i = _2i; //#12113 + $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#12118 + } //#12118 + for (var _2w = $_.rscodes.length - 5; _2w >= 0; _2w -= 1) { //#12128 + $_.i = _2w; //#12121 + for (var _2x = 0; _2x <= 4; _2x += 1) { //#12127 + $_.j = _2x; //#12123 + $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#12126 + } //#12126 + } //#12126 + $_.checkcode = $strcpy($s(12), "000000000000"); //#12129 + for (var _3F = 0; _3F <= 3; _3F += 1) { //#12134 + $_.i = _3F; //#12131 + $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#12132 + $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#12133 + } //#12133 + $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#12137 + $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#12138 + $_.bbs = $a($_.encstr.length); //#12140 + $_.bhs = $a($_.encstr.length); //#12141 + for (var _3c = 0, _3b = $_.encstr.length - 1; _3c <= _3b; _3c += 1) { //#12161 + $_.i = _3c; //#12143 + $_.enc = $geti($_.encstr, $_.i, 1); //#12144 + if ($eq($_.enc, "0")) { //#12148 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12146 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12147 + } //#12147 + if ($eq($_.enc, "1")) { //#12152 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12150 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12151 + } //#12151 + if ($eq($_.enc, "2")) { //#12156 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12154 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12155 + } //#12155 + if ($eq($_.enc, "3")) { //#12160 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12158 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12159 + } //#12159 + } //#12159 + $k[$j++] = Infinity; //#12164 + var _48 = $_.bbs; //#12166 + var _49 = $_.bhs; //#12167 + $k[$j++] = Infinity; //#12168 + for (var _4B = 0, _4C = $_.bhs.length - 1; _4B < _4C; _4B++) { //#12168 + $k[$j++] = 1.44; //#12168 + $k[$j++] = 1.872; //#12168 + } //#12168 + $k[$j++] = 1.44; //#12168 + var _4D = $a(); //#12168 + $k[$j++] = 'ren'; //#12171 + $k[$j++] = bwipp_renlinear; //#12171 + $k[$j++] = 'bbs'; //#12171 + $k[$j++] = _48; //#12171 + $k[$j++] = 'bhs'; //#12171 + $k[$j++] = _49; //#12171 + $k[$j++] = 'sbs'; //#12171 + $k[$j++] = _4D; //#12171 + if ($_.includetext) { //#12171 + $k[$j++] = 'txt'; //#12170 + $k[$j++] = $_.txt; //#12170 + } //#12170 + $k[$j++] = 'opt'; //#12172 + $k[$j++] = $_.options; //#12172 + var _4H = $d(); //#12172 + $k[$j++] = _4H; //#12175 + if (!$_.dontdraw) { //#12175 + bwipp_renlinear(); //#12175 + } //#12175 + $_ = Object.getPrototypeOf($_); //#12177 + $_ = Object.getPrototypeOf($_); //#12179 +} //bwipp_auspost +function bwipp_kix() { + $_ = Object.create($_); //#12209 + $_.dontdraw = false; //#12212 + $_.includetext = false; //#12213 + $_.textfont = "OCR-B"; //#12214 + $_.textsize = 10; //#12215 + $_.textyoffset = -8; //#12216 + $_.height = 0.175; //#12217 + $k[$j++] = $_; //#12219 + bwipp_processoptions(); //#12219 + $_.options = $k[--$j]; //#12219 + $_.barcode = $k[--$j]; //#12220 + if ($eq($_.barcode, "")) { //#12224 + $k[$j++] = 'bwipp.kixEmptyData#12223'; //#12223 + $k[$j++] = "The data must not be empty"; //#12223 + bwipp_raiseerror(); //#12223 + } //#12223 + bwipp_loadctx(bwipp_kix) //#12226 + if (!bwipp_kix.__12243__) { //#12243 + $_ = Object.create($_); //#12243 + $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12237 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12240 + $_.charvals = new Map; //#12241 + for (var _4 = 0; _4 <= 35; _4 += 1) { //#12242 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#12242 + } //#12242 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12242 + bwipp_kix.__12243__ = 1; //#12242 + $_ = Object.getPrototypeOf($_); //#12242 + } //#12242 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12250 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12247 + if (!_F) { //#12249 + $k[$j++] = 'bwipp.kixBadCharacter#12248'; //#12248 + $k[$j++] = "KIX must contain only capital letters and digits"; //#12248 + bwipp_raiseerror(); //#12248 + } //#12248 + } //#12248 + $_.barlen = $_.barcode.length; //#12252 + $_.encstr = $s($_.barlen * 4); //#12253 + $_.txt = $a($_.barlen); //#12254 + for (var _N = 0, _M = $_.barlen - 1; _N <= _M; _N += 1) { //#12261 + $_.i = _N; //#12257 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12258 + $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12259 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12260 + } //#12260 + $_.bbs = $a($_.encstr.length); //#12263 + $_.bhs = $a($_.encstr.length); //#12264 + for (var _o = 0, _n = $_.encstr.length - 1; _o <= _n; _o += 1) { //#12284 + $_.i = _o; //#12266 + $_.enc = $geti($_.encstr, $_.i, 1); //#12267 + if ($eq($_.enc, "0")) { //#12271 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12269 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12270 + } //#12270 + if ($eq($_.enc, "1")) { //#12275 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12273 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12274 + } //#12274 + if ($eq($_.enc, "2")) { //#12279 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12277 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12278 + } //#12278 + if ($eq($_.enc, "3")) { //#12283 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12281 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12282 + } //#12282 + } //#12282 + $k[$j++] = Infinity; //#12287 + var _1K = $_.bbs; //#12289 + var _1L = $_.bhs; //#12290 $k[$j++] = Infinity; //#12291 - for (var _1y = 0, _1z = $_.bhs.length - 1; _1y < _1z; _1y++) { //#12291 + for (var _1N = 0, _1O = $_.bhs.length - 1; _1N < _1O; _1N++) { //#12291 $k[$j++] = 1.44; //#12291 $k[$j++] = 1.872; //#12291 } //#12291 $k[$j++] = 1.44; //#12291 - var _20 = $a(); //#12291 + var _1P = $a(); //#12291 $k[$j++] = 'ren'; //#12294 $k[$j++] = bwipp_renlinear; //#12294 $k[$j++] = 'bbs'; //#12294 - $k[$j++] = _1v; //#12294 + $k[$j++] = _1K; //#12294 $k[$j++] = 'bhs'; //#12294 - $k[$j++] = _1w; //#12294 + $k[$j++] = _1L; //#12294 $k[$j++] = 'sbs'; //#12294 - $k[$j++] = _20; //#12294 + $k[$j++] = _1P; //#12294 if ($_.includetext) { //#12294 $k[$j++] = 'txt'; //#12293 $k[$j++] = $_.txt; //#12293 } //#12293 $k[$j++] = 'opt'; //#12295 $k[$j++] = $_.options; //#12295 - var _24 = $d(); //#12295 - $k[$j++] = _24; //#12298 + var _1T = $d(); //#12295 + $k[$j++] = _1T; //#12298 if (!$_.dontdraw) { //#12298 bwipp_renlinear(); //#12298 } //#12298 $_ = Object.getPrototypeOf($_); //#12300 $_ = Object.getPrototypeOf($_); //#12302 -} - -function bwipp_msi() { +} //bwipp_kix +function bwipp_japanpost() { $_ = Object.create($_); //#12332 $_.dontdraw = false; //#12335 - $_.includecheck = false; //#12336 - $_.includetext = false; //#12337 - $_.includecheckintext = false; //#12338 - $_.checktype = "unset"; //#12339 - $_.badmod11 = false; //#12340 - $_.textfont = "OCR-B"; //#12341 - $_.textsize = 10; //#12342 - $_.textyoffset = -8; //#12343 - $_.height = 1; //#12344 - $k[$j++] = $_; //#12346 - bwipp_processoptions(); //#12346 - $_.options = $k[--$j]; //#12346 - $_.barcode = $k[--$j]; //#12347 - if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12351 - $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12350'; //#12350 - $k[$j++] = "checktype requires includecheck"; //#12350 - bwipp_raiseerror(); //#12350 - } //#12350 - if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12355 - $k[$j++] = 'bwipp.msiBadMod11Mismatch#12354'; //#12354 - $k[$j++] = "badmod11 requires checktype with mod11"; //#12354 - bwipp_raiseerror(); //#12354 - } //#12354 - if ($eq($_.checktype, "unset")) { //#12357 - $_.checktype = "mod10"; //#12357 - } //#12357 - bwipp_loadctx(bwipp_msi) //#12359 - $forall($_.barcode, function() { //#12366 - var _B = $k[--$j]; //#12363 - if ((_B < 48) || (_B > 57)) { //#12365 - $k[$j++] = 'bwipp.msiBadCharacter#12364'; //#12364 - $k[$j++] = "MSI must contain only digits"; //#12364 - bwipp_raiseerror(); //#12364 - } //#12364 - }); //#12364 - if (!bwipp_msi.__12378__) { //#12378 - $_ = Object.create($_); //#12378 - $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12374 - $_.barchars = "0123456789"; //#12377 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12377 - bwipp_msi.__12378__ = 1; //#12377 - $_ = Object.getPrototypeOf($_); //#12377 - } //#12377 - $_.barlen = $_.barcode.length; //#12380 - $_.txtlen = $_.barlen; //#12381 + $_.includetext = false; //#12336 + $_.includecheckintext = false; //#12337 + $_.textfont = "OCR-B"; //#12338 + $_.textsize = 10; //#12339 + $_.textyoffset = -8; //#12340 + $_.height = 0.175; //#12341 + $k[$j++] = $_; //#12343 + bwipp_processoptions(); //#12343 + $_.options = $k[--$j]; //#12343 + $_.barcode = $k[--$j]; //#12344 + if ($eq($_.barcode, "")) { //#12348 + $k[$j++] = 'bwipp.japanpostEmptyData#12347'; //#12347 + $k[$j++] = "The data must not be empty"; //#12347 + bwipp_raiseerror(); //#12347 + } //#12347 + bwipp_loadctx(bwipp_japanpost) //#12350 + $forall($_.barcode, function() { //#12359 + var _4 = $k[--$j]; //#12354 + if (!(((_4 >= 48) && (_4 <= 57)) || (((_4 >= 65) && (_4 <= 90)) || (_4 == 45)))) { //#12358 + $k[$j++] = 'bwipp.japanpostBadCharacter#12357'; //#12357 + $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12357 + bwipp_raiseerror(); //#12357 + } //#12357 + }); //#12357 + if (!bwipp_japanpost.__12371__) { //#12371 + $_ = Object.create($_); //#12371 + $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12367 + $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12370 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12370 + bwipp_japanpost.__12371__ = 1; //#12370 + $_ = Object.getPrototypeOf($_); //#12370 + } //#12370 + $_.barlen = $_.barcode.length; //#12373 + $_.encstr = $s(((20 + 1) * 3) + 4); //#12375 + $_.digits = $a(20); //#12376 + $_.txt = $a($_.barlen + 1); //#12377 + $puti($_.encstr, 0, $get($_.encs, 19)); //#12380 + $_.checksum = 0; //#12382 + $_.j = 0; //#12383 + $_.i = 0; //#12383 + $k[$j++] = true; //#12418 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#12418 + $_.i = _H; //#12386 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12387 + $j--; //#12388 + $_.indx = $k[--$j].length; //#12389 + $j -= 2; //#12390 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12401 + if ($_.j > 18) { //#12392 + $j--; //#12392 + $k[$j++] = false; //#12392 + break; //#12392 + } //#12392 + $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12396 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12397 + $_.checksum = $_.checksum + $_.digit; //#12398 + $put($_.digits, $_.j, $_.digit); //#12399 + $_.j = $_.j + 1; //#12400 + } //#12400 + if ($_.j > 19) { //#12402 + $j--; //#12402 + $k[$j++] = false; //#12402 + break; //#12402 + } //#12402 + $_.digit = 0; //#12403 + if ($_.indx == 37) { //#12406 + $_.digit = 14; //#12405 + } //#12405 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12409 + $_.digit = ($_.indx - 1) % 10; //#12408 + } //#12408 + if ($_.indx < 11) { //#12412 + $_.digit = $_.indx; //#12411 + } //#12411 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12413 + $_.checksum = $_.checksum + $_.digit; //#12414 + $put($_.digits, $_.j, $_.digit); //#12415 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12416 + $_.j = $_.j + 1; //#12417 + } //#12417 + if ($nt($k[--$j])) { //#12422 + $k[$j++] = 'bwipp.japanpostTooLong#12421'; //#12421 + $k[$j++] = "The input is too long"; //#12421 + bwipp_raiseerror(); //#12421 + } //#12421 + for (var _17 = $_.j, _16 = 20 - 1; _17 <= _16; _17 += 1) { //#12430 + $_.k = _17; //#12426 + $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12427 + $_.checksum = $_.checksum + 14; //#12428 + $put($_.digits, $_.k, 14); //#12429 + } //#12429 + $_.checksum = 19 - ($_.checksum % 19); //#12433 + $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12434 + $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12437 + $_.checkdigit = " "; //#12438 + if ($_.includecheckintext) { //#12441 + $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12440 + } //#12440 + $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12442 + $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12445 + $_.bbs = $a((21 * 3) + 4); //#12447 + $_.bhs = $a($_.bbs.length); //#12448 + for (var _1g = 0, _1f = $_.bbs.length - 1; _1g <= _1f; _1g += 1) { //#12472 + $_.i = _1g; //#12450 + $_.enc = $geti($_.encstr, $_.i, 1); //#12451 + $_.bunit = 0; //#12452 + $_.hunit = 0; //#12453 + if ($eq($_.enc, "0")) { //#12457 + $_.bunit = 3; //#12455 + $_.hunit = 2; //#12456 + } //#12456 + if ($eq($_.enc, "1")) { //#12461 + $_.bunit = 0; //#12459 + $_.hunit = 5; //#12460 + } //#12460 + if ($eq($_.enc, "2")) { //#12465 + $_.bunit = 3; //#12463 + $_.hunit = 5; //#12464 + } //#12464 + if ($eq($_.enc, "3")) { //#12469 + $_.bunit = 0; //#12467 + $_.hunit = 8; //#12468 + } //#12468 + $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12470 + $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12471 + } //#12471 + $k[$j++] = Infinity; //#12475 + var _1w = $_.bbs; //#12477 + var _1x = $_.bhs; //#12478 + $k[$j++] = Infinity; //#12479 + for (var _1z = 0, _20 = $_.bhs.length - 1; _1z < _20; _1z++) { //#12479 + $k[$j++] = 1.44; //#12479 + $k[$j++] = 1.872; //#12479 + } //#12479 + $k[$j++] = 1.44; //#12479 + var _21 = $a(); //#12479 + $k[$j++] = 'ren'; //#12482 + $k[$j++] = bwipp_renlinear; //#12482 + $k[$j++] = 'bbs'; //#12482 + $k[$j++] = _1w; //#12482 + $k[$j++] = 'bhs'; //#12482 + $k[$j++] = _1x; //#12482 + $k[$j++] = 'sbs'; //#12482 + $k[$j++] = _21; //#12482 + if ($_.includetext) { //#12482 + $k[$j++] = 'txt'; //#12481 + $k[$j++] = $_.txt; //#12481 + } //#12481 + $k[$j++] = 'opt'; //#12483 + $k[$j++] = $_.options; //#12483 + var _25 = $d(); //#12483 + $k[$j++] = _25; //#12486 + if (!$_.dontdraw) { //#12486 + bwipp_renlinear(); //#12486 + } //#12486 + $_ = Object.getPrototypeOf($_); //#12488 + $_ = Object.getPrototypeOf($_); //#12490 +} //bwipp_japanpost +function bwipp_msi() { + $_ = Object.create($_); //#12520 + $_.dontdraw = false; //#12523 + $_.includecheck = false; //#12524 + $_.includetext = false; //#12525 + $_.includecheckintext = false; //#12526 + $_.checktype = "unset"; //#12527 + $_.badmod11 = false; //#12528 + $_.textfont = "OCR-B"; //#12529 + $_.textsize = 10; //#12530 + $_.textyoffset = -8; //#12531 + $_.height = 1; //#12532 + $k[$j++] = $_; //#12534 + bwipp_processoptions(); //#12534 + $_.options = $k[--$j]; //#12534 + $_.barcode = $k[--$j]; //#12535 + if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12539 + $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12538'; //#12538 + $k[$j++] = "checktype requires includecheck"; //#12538 + bwipp_raiseerror(); //#12538 + } //#12538 + if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12543 + $k[$j++] = 'bwipp.msiBadMod11Mismatch#12542'; //#12542 + $k[$j++] = "badmod11 requires checktype with mod11"; //#12542 + bwipp_raiseerror(); //#12542 + } //#12542 + if ($eq($_.checktype, "unset")) { //#12545 + $_.checktype = "mod10"; //#12545 + } //#12545 + bwipp_loadctx(bwipp_msi) //#12547 + $forall($_.barcode, function() { //#12554 + var _B = $k[--$j]; //#12551 + if ((_B < 48) || (_B > 57)) { //#12553 + $k[$j++] = 'bwipp.msiBadCharacter#12552'; //#12552 + $k[$j++] = "MSI must contain only digits"; //#12552 + bwipp_raiseerror(); //#12552 + } //#12552 + }); //#12552 + if (!bwipp_msi.__12566__) { //#12566 + $_ = Object.create($_); //#12566 + $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12562 + $_.barchars = "0123456789"; //#12565 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12565 + bwipp_msi.__12566__ = 1; //#12565 + $_ = Object.getPrototypeOf($_); //#12565 + } //#12565 + $_.barlen = $_.barcode.length; //#12568 + $_.txtlen = $_.barlen; //#12569 $_.mod10 = function() { - $_.code = $k[--$j]; //#12384 - $k[$j++] = 0; //#12385 - $k[$j++] = 0; //#12385 - $forall($_.code, function() { //#12385 - var _I = $k[--$j]; //#12385 - var _J = $k[--$j]; //#12385 - var _K = $k[--$j]; //#12385 - $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12385 - $k[$j++] = _K; //#12385 - }); //#12385 - $j--; //#12385 - var _L = $k[--$j]; //#12385 - $k[$j++] = _L * 2; //#12386 - $k[$j++] = 0; //#12386 - for (;;) { //#12386 - var _M = $k[--$j]; //#12386 - var _N = $k[--$j]; //#12386 - var _O = ~~(_N / 10); //#12386 - $k[$j++] = $f(_M + (_N % 10)); //#12386 - $k[$j++] = _O; //#12386 - if (_O == 0) { //#12386 - $j--; //#12386 - break; //#12386 - } //#12386 - var _P = $k[--$j]; //#12386 - var _Q = $k[--$j]; //#12386 - $k[$j++] = _P; //#12386 - $k[$j++] = _Q; //#12386 - } //#12386 - $k[$j++] = 0; //#12387 - $k[$j++] = 0; //#12387 - $forall($_.code, function() { //#12387 - var _S = $k[--$j]; //#12387 - var _T = $k[--$j]; //#12387 - var _U = $k[--$j]; //#12387 - $k[$j++] = $f(_T + $f(_S - 48)); //#12387 - $k[$j++] = _U; //#12387 - }); //#12387 - var _V = $k[--$j]; //#12387 - var _W = $k[--$j]; //#12387 - $k[$j++] = _V; //#12387 - $k[$j++] = _W; //#12387 - $j--; //#12387 - var _X = $k[--$j]; //#12387 - var _a = $s($_.code.length + 1); //#12389 - $puti(_a, 0, $_.code); //#12389 - $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12389 - $k[$j++] = _a; //#12389 - }; //#12389 + $_.code = $k[--$j]; //#12572 + $k[$j++] = 0; //#12573 + $k[$j++] = 0; //#12573 + $forall($_.code, function() { //#12573 + var _I = $k[--$j]; //#12573 + var _J = $k[--$j]; //#12573 + var _K = $k[--$j]; //#12573 + $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12573 + $k[$j++] = _K; //#12573 + }); //#12573 + $j--; //#12573 + var _L = $k[--$j]; //#12573 + $k[$j++] = _L * 2; //#12574 + $k[$j++] = 0; //#12574 + for (;;) { //#12574 + var _M = $k[--$j]; //#12574 + var _N = $k[--$j]; //#12574 + var _O = ~~(_N / 10); //#12574 + $k[$j++] = $f(_M + (_N % 10)); //#12574 + $k[$j++] = _O; //#12574 + if (_O == 0) { //#12574 + $j--; //#12574 + break; //#12574 + } //#12574 + var _P = $k[--$j]; //#12574 + var _Q = $k[--$j]; //#12574 + $k[$j++] = _P; //#12574 + $k[$j++] = _Q; //#12574 + } //#12574 + $k[$j++] = 0; //#12575 + $k[$j++] = 0; //#12575 + $forall($_.code, function() { //#12575 + var _S = $k[--$j]; //#12575 + var _T = $k[--$j]; //#12575 + var _U = $k[--$j]; //#12575 + $k[$j++] = $f(_T + $f(_S - 48)); //#12575 + $k[$j++] = _U; //#12575 + }); //#12575 + var _V = $k[--$j]; //#12575 + var _W = $k[--$j]; //#12575 + $k[$j++] = _V; //#12575 + $k[$j++] = _W; //#12575 + $j--; //#12575 + var _X = $k[--$j]; //#12575 + var _a = $s($_.code.length + 1); //#12577 + $puti(_a, 0, $_.code); //#12577 + $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12577 + $k[$j++] = _a; //#12577 + }; //#12577 $_.mod11 = function() { - $_.code = $k[--$j]; //#12393 - $k[$j++] = $_.code.length - 1; //#12394 - $forall($_.code, function() { //#12394 - var _g = $k[--$j]; //#12394 - var _h = $k[--$j]; //#12394 - $k[$j++] = $f(_g - 48); //#12394 - $k[$j++] = $f((_h % 6) + 2); //#12394 - $k[$j++] = $f(_h - 1); //#12394 - }); //#12394 - $j--; //#12394 - $k[$j++] = 0; //#12395 - for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12395 - var _l = $k[--$j]; //#12395 - var _m = $k[--$j]; //#12395 - var _n = $k[--$j]; //#12395 - $k[$j++] = $f(_l + (_n * _m)); //#12395 - } //#12395 - var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12397 - $k[$j++] = _p; //#12405 - if (_p == 10) { //#12404 - if ($_.badmod11) { //#12401 - $j--; //#12399 - var _s = $s($_.code.length + 2); //#12399 - $puti(_s, 0, $_.code); //#12399 - $puti(_s, $_.code.length, "10"); //#12399 - $k[$j++] = _s; //#12399 - } else { //#12401 - $j--; //#12401 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12401'; //#12401 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12401 - bwipp_raiseerror(); //#12401 - } //#12401 - } else { //#12404 - var _w = $s($_.code.length + 1); //#12404 - $puti(_w, 0, $_.code); //#12404 - $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12404 - $k[$j++] = _w; //#12404 - } //#12404 - }; //#12404 + $_.code = $k[--$j]; //#12581 + $k[$j++] = $_.code.length - 1; //#12582 + $forall($_.code, function() { //#12582 + var _g = $k[--$j]; //#12582 + var _h = $k[--$j]; //#12582 + $k[$j++] = $f(_g - 48); //#12582 + $k[$j++] = $f((_h % 6) + 2); //#12582 + $k[$j++] = $f(_h - 1); //#12582 + }); //#12582 + $j--; //#12582 + $k[$j++] = 0; //#12583 + for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12583 + var _l = $k[--$j]; //#12583 + var _m = $k[--$j]; //#12583 + var _n = $k[--$j]; //#12583 + $k[$j++] = $f(_l + (_n * _m)); //#12583 + } //#12583 + var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12585 + $k[$j++] = _p; //#12593 + if (_p == 10) { //#12592 + if ($_.badmod11) { //#12589 + $j--; //#12587 + var _s = $s($_.code.length + 2); //#12587 + $puti(_s, 0, $_.code); //#12587 + $puti(_s, $_.code.length, "10"); //#12587 + $k[$j++] = _s; //#12587 + } else { //#12589 + $j--; //#12589 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12589'; //#12589 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12589 + bwipp_raiseerror(); //#12589 + } //#12589 + } else { //#12592 + var _w = $s($_.code.length + 1); //#12592 + $puti(_w, 0, $_.code); //#12592 + $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12592 + $k[$j++] = _w; //#12592 + } //#12592 + }; //#12592 $_.ncrmod11 = function() { - $_.code = $k[--$j]; //#12409 - $k[$j++] = $_.code.length - 1; //#12410 - $forall($_.code, function() { //#12410 - var _13 = $k[--$j]; //#12410 - var _14 = $k[--$j]; //#12410 - $k[$j++] = $f(_13 - 48); //#12410 - $k[$j++] = $f((_14 % 8) + 2); //#12410 - $k[$j++] = $f(_14 - 1); //#12410 - }); //#12410 - $j--; //#12410 - $k[$j++] = 0; //#12411 - for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12411 - var _18 = $k[--$j]; //#12411 - var _19 = $k[--$j]; //#12411 - var _1A = $k[--$j]; //#12411 - $k[$j++] = $f(_18 + (_1A * _19)); //#12411 - } //#12411 - var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12413 - $k[$j++] = _1C; //#12421 - if (_1C == 10) { //#12420 - if ($_.badmod11) { //#12417 - $j--; //#12415 - var _1F = $s($_.code.length + 2); //#12415 - $puti(_1F, 0, $_.code); //#12415 - $puti(_1F, $_.code.length, "10"); //#12415 - $k[$j++] = _1F; //#12415 - } else { //#12417 - $j--; //#12417 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12417'; //#12417 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12417 - bwipp_raiseerror(); //#12417 - } //#12417 - } else { //#12420 - var _1J = $s($_.code.length + 1); //#12420 - $puti(_1J, 0, $_.code); //#12420 - $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12420 - $k[$j++] = _1J; //#12420 - } //#12420 - }; //#12420 - if (!bwipp_msi.__12433__) { //#12433 - $_ = Object.create($_); //#12433 + $_.code = $k[--$j]; //#12597 + $k[$j++] = $_.code.length - 1; //#12598 + $forall($_.code, function() { //#12598 + var _13 = $k[--$j]; //#12598 + var _14 = $k[--$j]; //#12598 + $k[$j++] = $f(_13 - 48); //#12598 + $k[$j++] = $f((_14 % 8) + 2); //#12598 + $k[$j++] = $f(_14 - 1); //#12598 + }); //#12598 + $j--; //#12598 + $k[$j++] = 0; //#12599 + for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12599 + var _18 = $k[--$j]; //#12599 + var _19 = $k[--$j]; //#12599 + var _1A = $k[--$j]; //#12599 + $k[$j++] = $f(_18 + (_1A * _19)); //#12599 + } //#12599 + var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12601 + $k[$j++] = _1C; //#12609 + if (_1C == 10) { //#12608 + if ($_.badmod11) { //#12605 + $j--; //#12603 + var _1F = $s($_.code.length + 2); //#12603 + $puti(_1F, 0, $_.code); //#12603 + $puti(_1F, $_.code.length, "10"); //#12603 + $k[$j++] = _1F; //#12603 + } else { //#12605 + $j--; //#12605 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12605'; //#12605 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12605 + bwipp_raiseerror(); //#12605 + } //#12605 + } else { //#12608 + var _1J = $s($_.code.length + 1); //#12608 + $puti(_1J, 0, $_.code); //#12608 + $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12608 + $k[$j++] = _1J; //#12608 + } //#12608 + }; //#12608 + if (!bwipp_msi.__12621__) { //#12621 + $_ = Object.create($_); //#12621 var _1N = new Map([ ["mod10", function() { - $_.mod10(); //#12426 + $_.mod10(); //#12614 }], ["mod1010", function() { - $_.mod10(); //#12427 - $_.mod10(); //#12427 + $_.mod10(); //#12615 + $_.mod10(); //#12615 }], ["mod11", function() { - $_.mod11(); //#12428 + $_.mod11(); //#12616 }], ["ncrmod11", function() { - $_.ncrmod11(); //#12429 + $_.ncrmod11(); //#12617 }], ["mod1110", function() { - $_.mod11(); //#12430 - $_.mod10(); //#12430 + $_.mod11(); //#12618 + $_.mod10(); //#12618 }], ["ncrmod1110", function() { - $_.ncrmod11(); //#12431 - $_.mod10(); //#12431 + $_.ncrmod11(); //#12619 + $_.mod10(); //#12619 }] - ]); //#12431 - $_.checkfunc = _1N; //#12432 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12432 - bwipp_msi.__12433__ = 1; //#12432 - $_ = Object.getPrototypeOf($_); //#12432 - } //#12432 - if ($_.includecheck) { //#12443 - var _1Q = $_.checkfunc; //#12437 - var _1R = $_.checktype; //#12437 - var _1S = $get(_1Q, _1R) !== undefined; //#12437 - $k[$j++] = _1Q; //#12439 - $k[$j++] = _1R; //#12439 - if (!_1S) { //#12439 - $j -= 2; //#12438 - $k[$j++] = 'bwipp.msiBadCharacter#12438'; //#12438 - $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12438 - bwipp_raiseerror(); //#12438 - } //#12438 - var _1T = $k[--$j]; //#12440 - var _1V = $get($k[--$j], _1T); //#12440 - $k[$j++] = $_.barcode; //#12440 + ]); //#12619 + $_.checkfunc = _1N; //#12620 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12620 + bwipp_msi.__12621__ = 1; //#12620 + $_ = Object.getPrototypeOf($_); //#12620 + } //#12620 + if ($_.includecheck) { //#12631 + var _1Q = $_.checkfunc; //#12625 + var _1R = $_.checktype; //#12625 + var _1S = $get(_1Q, _1R) !== undefined; //#12625 + $k[$j++] = _1Q; //#12627 + $k[$j++] = _1R; //#12627 + if (!_1S) { //#12627 + $j -= 2; //#12626 + $k[$j++] = 'bwipp.msiBadCharacter#12626'; //#12626 + $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12626 + bwipp_raiseerror(); //#12626 + } //#12626 + var _1T = $k[--$j]; //#12628 + var _1V = $get($k[--$j], _1T); //#12628 + $k[$j++] = $_.barcode; //#12628 if (_1V() === true) { return true; - } //#12440 - $_.barcode = $k[--$j]; //#12440 - $_.barlen = $_.barcode.length; //#12441 - if ($_.includecheckintext) { //#12442 - $_.txtlen = $_.barlen; //#12442 - } //#12442 - } //#12442 - $_.sbs = $s(($_.barlen * 8) + 5); //#12445 - $_.txt = $a($_.barlen); //#12446 - $puti($_.sbs, 0, $get($_.encs, 10)); //#12449 - for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12461 - $_.i = _1k; //#12452 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12454 - $j--; //#12455 - $_.indx = $k[--$j].length; //#12456 - $j -= 2; //#12457 - $_.enc = $get($_.encs, $_.indx); //#12458 - $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12459 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12460 - } //#12460 - $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12464 - $k[$j++] = Infinity; //#12475 - $k[$j++] = Infinity; //#12469 - var _2A = $_.sbs; //#12469 - for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12469 - $k[$j++] = $get(_2A, _2B) - 48; //#12469 - } //#12469 - var _2E = $a(); //#12469 - $k[$j++] = Infinity; //#12470 - for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12470 - $k[$j++] = $_.height; //#12470 - } //#12470 - var _2J = $a(); //#12470 - $k[$j++] = Infinity; //#12471 - for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12471 - $k[$j++] = 0; //#12471 - } //#12471 - var _2N = $a(); //#12471 - $k[$j++] = 'ren'; //#12474 - $k[$j++] = bwipp_renlinear; //#12474 - $k[$j++] = 'sbs'; //#12474 - $k[$j++] = _2E; //#12474 - $k[$j++] = 'bhs'; //#12474 - $k[$j++] = _2J; //#12474 - $k[$j++] = 'bbs'; //#12474 - $k[$j++] = _2N; //#12474 - if ($_.includetext) { //#12474 - $k[$j++] = 'txt'; //#12473 - $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12473 - } //#12473 - $k[$j++] = 'opt'; //#12475 - $k[$j++] = $_.options; //#12475 - var _2T = $d(); //#12475 - $k[$j++] = _2T; //#12478 - if (!$_.dontdraw) { //#12478 - bwipp_renlinear(); //#12478 - } //#12478 - $_ = Object.getPrototypeOf($_); //#12480 - $_ = Object.getPrototypeOf($_); //#12482 -} - + } //#12628 + $_.barcode = $k[--$j]; //#12628 + $_.barlen = $_.barcode.length; //#12629 + if ($_.includecheckintext) { //#12630 + $_.txtlen = $_.barlen; //#12630 + } //#12630 + } //#12630 + $_.sbs = $s(($_.barlen * 8) + 5); //#12633 + $_.txt = $a($_.barlen); //#12634 + $puti($_.sbs, 0, $get($_.encs, 10)); //#12637 + for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12649 + $_.i = _1k; //#12640 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12642 + $j--; //#12643 + $_.indx = $k[--$j].length; //#12644 + $j -= 2; //#12645 + $_.enc = $get($_.encs, $_.indx); //#12646 + $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12647 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12648 + } //#12648 + $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12652 + $k[$j++] = Infinity; //#12655 + $k[$j++] = Infinity; //#12657 + var _2A = $_.sbs; //#12657 + for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12657 + $k[$j++] = $get(_2A, _2B) - 48; //#12657 + } //#12657 + var _2E = $a(); //#12657 + $k[$j++] = Infinity; //#12658 + for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12658 + $k[$j++] = $_.height; //#12658 + } //#12658 + var _2J = $a(); //#12658 + $k[$j++] = Infinity; //#12659 + for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12659 + $k[$j++] = 0; //#12659 + } //#12659 + var _2N = $a(); //#12659 + $k[$j++] = 'ren'; //#12662 + $k[$j++] = bwipp_renlinear; //#12662 + $k[$j++] = 'sbs'; //#12662 + $k[$j++] = _2E; //#12662 + $k[$j++] = 'bhs'; //#12662 + $k[$j++] = _2J; //#12662 + $k[$j++] = 'bbs'; //#12662 + $k[$j++] = _2N; //#12662 + if ($_.includetext) { //#12662 + $k[$j++] = 'txt'; //#12661 + $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12661 + } //#12661 + $k[$j++] = 'opt'; //#12663 + $k[$j++] = $_.options; //#12663 + var _2T = $d(); //#12663 + $k[$j++] = _2T; //#12666 + if (!$_.dontdraw) { //#12666 + bwipp_renlinear(); //#12666 + } //#12666 + $_ = Object.getPrototypeOf($_); //#12668 + $_ = Object.getPrototypeOf($_); //#12670 +} //bwipp_msi function bwipp_plessey() { - $_ = Object.create($_); //#12512 - $_.dontdraw = false; //#12515 - $_.includetext = false; //#12516 - $_.validatecheck = false; //#12517 - $_.includecheckintext = false; //#12518 - $_.unidirectional = false; //#12519 - $_.textfont = "OCR-B"; //#12520 - $_.textsize = 10; //#12521 - $_.textyoffset = -8; //#12522 - $_.height = 1; //#12523 - $k[$j++] = $_; //#12525 - bwipp_processoptions(); //#12525 - $_.options = $k[--$j]; //#12525 - var _1 = $k[--$j]; //#12526 - $_.barcode = _1; //#12526 - bwipp_loadctx(bwipp_plessey) //#12528 - if (!bwipp_plessey.__12544__) { //#12544 - $_ = Object.create($_); //#12544 - $_.barchars = "0123456789ABCDEF"; //#12532 - $_.charvals = new Map; //#12533 - for (var _2 = 0; _2 <= 15; _2 += 1) { //#12534 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#12534 - } //#12534 - $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12543 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12543 - bwipp_plessey.__12544__ = 1; //#12543 - $_ = Object.getPrototypeOf($_); //#12543 - } //#12543 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12551 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12548 - if (!_E) { //#12550 - $k[$j++] = 'bwipp.plesseyBadCharacter#12549'; //#12549 - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12549 - bwipp_raiseerror(); //#12549 - } //#12549 - } //#12549 - $k[$j++] = 'barlen'; //#12553 - $k[$j++] = $_.barcode.length; //#12553 - if ($_.validatecheck) { //#12553 - var _H = $k[--$j]; //#12553 - $k[$j++] = $f(_H - 2); //#12553 - } //#12553 - var _I = $k[--$j]; //#12553 - $_[$k[--$j]] = _I; //#12553 - $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12556 - $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12557 - for (var _R = 0, _Q = $f($_.barlen - 1); _R <= _Q; _R += 1) { //#12567 - $_.i = _R; //#12559 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12560 - $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12566 - } //#12566 - $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12568 - for (var _h = 0, _g = $f(($_.barlen * 4) - 1); _h <= _g; _h += 1) { //#12577 - $_.i = _h; //#12570 - if ($get($_.checkbits, $_.i) == 1) { //#12576 - for (var _l = 0; _l <= 8; _l += 1) { //#12575 - $_.j = _l; //#12573 - $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12574 - } //#12574 - } //#12574 - } //#12574 - $_.checkval = 0; //#12578 - for (var _w = 0; _w <= 7; _w += 1) { //#12582 - $_.i = _w; //#12580 - $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12581 - } //#12581 - $_.checksum1 = $_.checkval & 15; //#12583 - $_.checksum2 = $_.checkval >>> 4; //#12584 - if ($_.validatecheck) { //#12591 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12589 - $k[$j++] = 'bwipp.plesseyBadCheckDigits#12588'; //#12588 - $k[$j++] = "Incorrect Plessey check digits provided"; //#12588 - bwipp_raiseerror(); //#12588 - } //#12588 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12590 - } //#12590 - var _1N = $_.unidirectional ? 27 : 33; //#12593 - $_.sbs = $s($f(($_.barlen * 8) + _1N)); //#12593 - $_.txt = $a($f($_.barlen + 2)); //#12594 - $puti($_.sbs, 0, $get($_.encs, 16)); //#12597 - for (var _1W = 0, _1V = $f($_.barlen - 1); _1W <= _1V; _1W += 1) { //#12604 - $_.i = _1W; //#12600 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12601 - $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12602 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12603 - } //#12603 - $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12607 - $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12608 - if ($_.includecheckintext) { //#12614 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12610 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12611 - } else { //#12614 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12613 - $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12614 - } //#12614 - var _2e = $_.unidirectional ? 18 : 17; //#12618 - $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2e)); //#12618 - $k[$j++] = Infinity; //#12629 - $k[$j++] = Infinity; //#12623 - var _2g = $_.sbs; //#12623 - for (var _2h = 0, _2i = _2g.length; _2h < _2i; _2h++) { //#12623 - $k[$j++] = $get(_2g, _2h) - 48; //#12623 - } //#12623 - var _2k = $a(); //#12623 - $k[$j++] = Infinity; //#12624 - for (var _2m = 0, _2n = ~~(($_.sbs.length + 1) / 2); _2m < _2n; _2m++) { //#12624 - $k[$j++] = $_.height; //#12624 - } //#12624 - var _2p = $a(); //#12624 - $k[$j++] = Infinity; //#12625 - for (var _2r = 0, _2s = ~~(($_.sbs.length + 1) / 2); _2r < _2s; _2r++) { //#12625 - $k[$j++] = 0; //#12625 - } //#12625 - var _2t = $a(); //#12625 - $k[$j++] = 'ren'; //#12628 - $k[$j++] = bwipp_renlinear; //#12628 - $k[$j++] = 'sbs'; //#12628 - $k[$j++] = _2k; //#12628 - $k[$j++] = 'bhs'; //#12628 - $k[$j++] = _2p; //#12628 - $k[$j++] = 'bbs'; //#12628 - $k[$j++] = _2t; //#12628 - if ($_.includetext) { //#12628 - $k[$j++] = 'txt'; //#12627 - $k[$j++] = $_.txt; //#12627 - } //#12627 - $k[$j++] = 'opt'; //#12629 - $k[$j++] = $_.options; //#12629 - var _2x = $d(); //#12629 - $k[$j++] = _2x; //#12632 - if (!$_.dontdraw) { //#12632 - bwipp_renlinear(); //#12632 - } //#12632 - $_ = Object.getPrototypeOf($_); //#12634 - $_ = Object.getPrototypeOf($_); //#12636 -} - + $_ = Object.create($_); //#12700 + $_.dontdraw = false; //#12703 + $_.includetext = false; //#12704 + $_.validatecheck = false; //#12705 + $_.includecheckintext = false; //#12706 + $_.unidirectional = false; //#12707 + $_.textfont = "OCR-B"; //#12708 + $_.textsize = 10; //#12709 + $_.textyoffset = -8; //#12710 + $_.height = 1; //#12711 + $k[$j++] = $_; //#12713 + bwipp_processoptions(); //#12713 + $_.options = $k[--$j]; //#12713 + $_.barcode = $k[--$j]; //#12714 + if ($eq($_.barcode, "")) { //#12718 + $k[$j++] = 'bwipp.plesseyEmptyData#12717'; //#12717 + $k[$j++] = "The data must not be empty"; //#12717 + bwipp_raiseerror(); //#12717 + } //#12717 + bwipp_loadctx(bwipp_plessey) //#12720 + if (!bwipp_plessey.__12736__) { //#12736 + $_ = Object.create($_); //#12736 + $_.barchars = "0123456789ABCDEF"; //#12724 + $_.charvals = new Map; //#12725 + for (var _3 = 0; _3 <= 15; _3 += 1) { //#12726 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12726 + } //#12726 + $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12735 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12735 + bwipp_plessey.__12736__ = 1; //#12735 + $_ = Object.getPrototypeOf($_); //#12735 + } //#12735 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12743 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12740 + if (!_F) { //#12742 + $k[$j++] = 'bwipp.plesseyBadCharacter#12741'; //#12741 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12741 + bwipp_raiseerror(); //#12741 + } //#12741 + } //#12741 + $k[$j++] = 'barlen'; //#12745 + $k[$j++] = $_.barcode.length; //#12745 + if ($_.validatecheck) { //#12745 + var _I = $k[--$j]; //#12745 + $k[$j++] = $f(_I - 2); //#12745 + } //#12745 + var _J = $k[--$j]; //#12745 + $_[$k[--$j]] = _J; //#12745 + $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12748 + $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12749 + for (var _S = 0, _R = $f($_.barlen - 1); _S <= _R; _S += 1) { //#12759 + $_.i = _S; //#12751 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12752 + $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12758 + } //#12758 + $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12760 + for (var _i = 0, _h = $f(($_.barlen * 4) - 1); _i <= _h; _i += 1) { //#12769 + $_.i = _i; //#12762 + if ($get($_.checkbits, $_.i) == 1) { //#12768 + for (var _m = 0; _m <= 8; _m += 1) { //#12767 + $_.j = _m; //#12765 + $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12766 + } //#12766 + } //#12766 + } //#12766 + $_.checkval = 0; //#12770 + for (var _x = 0; _x <= 7; _x += 1) { //#12774 + $_.i = _x; //#12772 + $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12773 + } //#12773 + $_.checksum1 = $_.checkval & 15; //#12775 + $_.checksum2 = $_.checkval >>> 4; //#12776 + if ($_.validatecheck) { //#12783 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12781 + $k[$j++] = 'bwipp.plesseyBadCheckDigits#12780'; //#12780 + $k[$j++] = "Incorrect Plessey check digits provided"; //#12780 + bwipp_raiseerror(); //#12780 + } //#12780 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12782 + } //#12782 + var _1O = $_.unidirectional ? 27 : 33; //#12785 + $_.sbs = $s($f(($_.barlen * 8) + _1O)); //#12785 + $_.txt = $a($f($_.barlen + 2)); //#12786 + $puti($_.sbs, 0, $get($_.encs, 16)); //#12789 + for (var _1X = 0, _1W = $f($_.barlen - 1); _1X <= _1W; _1X += 1) { //#12796 + $_.i = _1X; //#12792 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12793 + $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12794 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12795 + } //#12795 + $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12799 + $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12800 + if ($_.includecheckintext) { //#12806 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12802 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12803 + } else { //#12806 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12805 + $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12806 + } //#12806 + var _2f = $_.unidirectional ? 18 : 17; //#12810 + $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2f)); //#12810 + $k[$j++] = Infinity; //#12813 + $k[$j++] = Infinity; //#12815 + var _2h = $_.sbs; //#12815 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#12815 + $k[$j++] = $get(_2h, _2i) - 48; //#12815 + } //#12815 + var _2l = $a(); //#12815 + $k[$j++] = Infinity; //#12816 + for (var _2n = 0, _2o = ~~(($_.sbs.length + 1) / 2); _2n < _2o; _2n++) { //#12816 + $k[$j++] = $_.height; //#12816 + } //#12816 + var _2q = $a(); //#12816 + $k[$j++] = Infinity; //#12817 + for (var _2s = 0, _2t = ~~(($_.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#12817 + $k[$j++] = 0; //#12817 + } //#12817 + var _2u = $a(); //#12817 + $k[$j++] = 'ren'; //#12820 + $k[$j++] = bwipp_renlinear; //#12820 + $k[$j++] = 'sbs'; //#12820 + $k[$j++] = _2l; //#12820 + $k[$j++] = 'bhs'; //#12820 + $k[$j++] = _2q; //#12820 + $k[$j++] = 'bbs'; //#12820 + $k[$j++] = _2u; //#12820 + if ($_.includetext) { //#12820 + $k[$j++] = 'txt'; //#12819 + $k[$j++] = $_.txt; //#12819 + } //#12819 + $k[$j++] = 'opt'; //#12821 + $k[$j++] = $_.options; //#12821 + var _2y = $d(); //#12821 + $k[$j++] = _2y; //#12824 + if (!$_.dontdraw) { //#12824 + bwipp_renlinear(); //#12824 + } //#12824 + $_ = Object.getPrototypeOf($_); //#12826 + $_ = Object.getPrototypeOf($_); //#12828 +} //bwipp_plessey function bwipp_telepen() { - $_ = Object.create($_); //#12667 - $_.numeric = false; //#12670 - $_.dontdraw = false; //#12671 - $_.includetext = false; //#12672 - $_.textfont = "OCR-B"; //#12673 - $_.textsize = 10; //#12674 - $_.textyoffset = -8; //#12675 - $_.height = 1; //#12676 - $_.parse = false; //#12677 - $k[$j++] = $_; //#12679 - bwipp_processoptions(); //#12679 - $_.options = $k[--$j]; //#12679 - $_.barcode = $k[--$j]; //#12680 - bwipp_loadctx(bwipp_telepen) //#12682 + $_ = Object.create($_); //#12859 + $_.numeric = false; //#12862 + $_.dontdraw = false; //#12863 + $_.includetext = false; //#12864 + $_.textfont = "OCR-B"; //#12865 + $_.textsize = 10; //#12866 + $_.textyoffset = -8; //#12867 + $_.height = 1; //#12868 + $_.parse = false; //#12869 + $k[$j++] = $_; //#12871 + bwipp_processoptions(); //#12871 + $_.options = $k[--$j]; //#12871 + $_.barcode = $k[--$j]; //#12872 + bwipp_loadctx(bwipp_telepen) //#12874 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#12688 - $_.fncvals = _3; //#12689 - $k[$j++] = 'barcode'; //#12690 - $k[$j++] = $_.barcode; //#12690 - $k[$j++] = $_.fncvals; //#12690 - bwipp_parseinput(); //#12690 - var _6 = $k[--$j]; //#12690 - $_[$k[--$j]] = _6; //#12690 - $_.barlen = $_.barcode.length; //#12691 - delete $_.options["parse"]; //#12692 - if ($_.numeric && (($_.barlen % 2) != 0)) { //#12696 - $k[$j++] = 'bwipp.telepenNumericOddLength#12695'; //#12695 - $k[$j++] = "Telepen Numeric must have an even length"; //#12695 - bwipp_raiseerror(); //#12695 - } //#12695 - if (!bwipp_telepen.__12734__) { //#12734 - $_ = Object.create($_); //#12734 - $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12733 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12733 - bwipp_telepen.__12734__ = 1; //#12733 - $_ = Object.getPrototypeOf($_); //#12733 - } //#12733 - $_.sbs = $s(($_.barlen * 16) + 48); //#12736 - $_.txt = $a($_.barlen); //#12737 - $_.enc = $get($_.encs, 95); //#12740 - $puti($_.sbs, 0, $_.enc); //#12741 - $_.l = $_.enc.length; //#12742 - $_.checksum = 0; //#12744 - $_.i = 0; //#12745 - $_.j = 0; //#12745 - for (;;) { //#12788 - if ($_.i == $_.barlen) { //#12747 - break; //#12747 - } //#12747 - if ($_.numeric) { //#12781 - if ($get($_.barcode, $_.i) > 16) { //#12769 - $_.np = $geti($_.barcode, $_.i, 2); //#12750 - var _X = $get($_.np, 0); //#12751 - var _Z = $get($_.np, 1); //#12752 - if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12758 - $k[$j++] = -1; //#12754 - } else { //#12758 - var _e = $f($get($_.np, 1) - 48); //#12757 - $k[$j++] = $f($get($_.np, 0) - 48); //#12757 - $k[$j++] = _e; //#12757 - if (_e != 40) { //#12757 - var _f = $k[--$j]; //#12757 - var _g = $k[--$j]; //#12757 - $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12757 - } else { //#12757 - $j--; //#12757 - } //#12757 - var _h = $k[--$j]; //#12758 - $k[$j++] = $f(_h + 17); //#12758 - } //#12758 - var _i = $k[--$j]; //#12760 - $k[$j++] = _i; //#12762 - if (_i == -1) { //#12762 - $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12761'; //#12761 - $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12761 - bwipp_raiseerror(); //#12761 - } //#12761 - $_.indx = $k[--$j]; //#12763 - $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12764 - $_.i = $_.i + 2; //#12765 - } else { //#12769 - $_.indx = $get($_.barcode, $_.i); //#12767 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12768 - $_.i = $_.i + 1; //#12769 - } //#12769 - } else { //#12781 - $_.indx = $get($_.barcode, $_.i); //#12772 - if ($_.indx > 127) { //#12775 - $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12774'; //#12774 - $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12774 - bwipp_raiseerror(); //#12774 - } //#12774 - if (($_.indx >= 32) && ($_.indx <= 126)) { //#12779 - $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12777 - } else { //#12779 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12779 - } //#12779 - $_.i = $_.i + 1; //#12781 - } //#12781 - $_.checksum = $f($_.checksum + $_.indx); //#12783 - $_.enc = $get($_.encs, $_.indx); //#12784 - $puti($_.sbs, $_.l, $_.enc); //#12785 - $_.l = $_.l + $_.enc.length; //#12786 - $_.j = $_.j + 1; //#12787 - } //#12787 - $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12791 - $_.enc = $get($_.encs, $_.checksum); //#12792 - $puti($_.sbs, $_.l, $_.enc); //#12793 - $_.l = $_.l + $_.enc.length; //#12794 - $_.enc = $get($_.encs, 122); //#12797 - $puti($_.sbs, $_.l, $_.enc); //#12798 - $_.l = $_.l + $_.enc.length; //#12799 - $_.sbs = $geti($_.sbs, 0, $_.l); //#12802 - $_.txt = $geti($_.txt, 0, $_.j); //#12803 - $k[$j++] = Infinity; //#12814 - $k[$j++] = Infinity; //#12808 - var _1z = $_.sbs; //#12808 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#12808 - $k[$j++] = $f($get(_1z, _20) - 48); //#12808 - } //#12808 - var _23 = $a(); //#12808 - $k[$j++] = Infinity; //#12809 - for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#12809 - $k[$j++] = $_.height; //#12809 - } //#12809 - var _28 = $a(); //#12809 - $k[$j++] = Infinity; //#12810 - for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#12810 - $k[$j++] = 0; //#12810 - } //#12810 - var _2C = $a(); //#12810 - $k[$j++] = 'ren'; //#12813 - $k[$j++] = bwipp_renlinear; //#12813 - $k[$j++] = 'sbs'; //#12813 - $k[$j++] = _23; //#12813 - $k[$j++] = 'bhs'; //#12813 - $k[$j++] = _28; //#12813 - $k[$j++] = 'bbs'; //#12813 - $k[$j++] = _2C; //#12813 - if ($_.includetext) { //#12813 - $k[$j++] = 'txt'; //#12812 - $k[$j++] = $_.txt; //#12812 - } //#12812 - $k[$j++] = 'opt'; //#12814 - $k[$j++] = $_.options; //#12814 - var _2G = $d(); //#12814 - $k[$j++] = _2G; //#12817 - if (!$_.dontdraw) { //#12817 - bwipp_renlinear(); //#12817 - } //#12817 - $_ = Object.getPrototypeOf($_); //#12819 - $_ = Object.getPrototypeOf($_); //#12821 -} - + ]); //#12880 + $_.fncvals = _3; //#12881 + $k[$j++] = 'barcode'; //#12882 + $k[$j++] = $_.barcode; //#12882 + $k[$j++] = $_.fncvals; //#12882 + bwipp_parseinput(); //#12882 + var _6 = $k[--$j]; //#12882 + $_[$k[--$j]] = _6; //#12882 + $_.barlen = $_.barcode.length; //#12883 + delete $_.options["parse"]; //#12884 + if ($_.numeric && (($_.barlen % 2) != 0)) { //#12888 + $k[$j++] = 'bwipp.telepenNumericOddLength#12887'; //#12887 + $k[$j++] = "Telepen Numeric must have an even length"; //#12887 + bwipp_raiseerror(); //#12887 + } //#12887 + if (!bwipp_telepen.__12926__) { //#12926 + $_ = Object.create($_); //#12926 + $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12925 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12925 + bwipp_telepen.__12926__ = 1; //#12925 + $_ = Object.getPrototypeOf($_); //#12925 + } //#12925 + $_.sbs = $s(($_.barlen * 16) + 48); //#12928 + $_.txt = $a($_.barlen); //#12929 + $_.enc = $get($_.encs, 95); //#12932 + $puti($_.sbs, 0, $_.enc); //#12933 + $_.l = $_.enc.length; //#12934 + $_.checksum = 0; //#12936 + $_.i = 0; //#12937 + $_.j = 0; //#12937 + for (;;) { //#12980 + if ($_.i == $_.barlen) { //#12939 + break; //#12939 + } //#12939 + if ($_.numeric) { //#12973 + if ($get($_.barcode, $_.i) > 16) { //#12961 + $_.np = $geti($_.barcode, $_.i, 2); //#12942 + var _X = $get($_.np, 0); //#12943 + var _Z = $get($_.np, 1); //#12944 + if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12950 + $k[$j++] = -1; //#12946 + } else { //#12950 + var _e = $f($get($_.np, 1) - 48); //#12949 + $k[$j++] = $f($get($_.np, 0) - 48); //#12949 + $k[$j++] = _e; //#12949 + if (_e != 40) { //#12949 + var _f = $k[--$j]; //#12949 + var _g = $k[--$j]; //#12949 + $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12949 + } else { //#12949 + $j--; //#12949 + } //#12949 + var _h = $k[--$j]; //#12950 + $k[$j++] = $f(_h + 17); //#12950 + } //#12950 + var _i = $k[--$j]; //#12952 + $k[$j++] = _i; //#12954 + if (_i == -1) { //#12954 + $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12953'; //#12953 + $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12953 + bwipp_raiseerror(); //#12953 + } //#12953 + $_.indx = $k[--$j]; //#12955 + $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12956 + $_.i = $_.i + 2; //#12957 + } else { //#12961 + $_.indx = $get($_.barcode, $_.i); //#12959 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12960 + $_.i = $_.i + 1; //#12961 + } //#12961 + } else { //#12973 + $_.indx = $get($_.barcode, $_.i); //#12964 + if ($_.indx > 127) { //#12967 + $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12966'; //#12966 + $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12966 + bwipp_raiseerror(); //#12966 + } //#12966 + if (($_.indx >= 32) && ($_.indx <= 126)) { //#12971 + $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12969 + } else { //#12971 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12971 + } //#12971 + $_.i = $_.i + 1; //#12973 + } //#12973 + $_.checksum = $f($_.checksum + $_.indx); //#12975 + $_.enc = $get($_.encs, $_.indx); //#12976 + $puti($_.sbs, $_.l, $_.enc); //#12977 + $_.l = $_.l + $_.enc.length; //#12978 + $_.j = $_.j + 1; //#12979 + } //#12979 + $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12983 + $_.enc = $get($_.encs, $_.checksum); //#12984 + $puti($_.sbs, $_.l, $_.enc); //#12985 + $_.l = $_.l + $_.enc.length; //#12986 + $_.enc = $get($_.encs, 122); //#12989 + $puti($_.sbs, $_.l, $_.enc); //#12990 + $_.l = $_.l + $_.enc.length; //#12991 + $_.sbs = $geti($_.sbs, 0, $_.l); //#12994 + $_.txt = $geti($_.txt, 0, $_.j); //#12995 + $k[$j++] = Infinity; //#12998 + $k[$j++] = Infinity; //#13000 + var _1z = $_.sbs; //#13000 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#13000 + $k[$j++] = $f($get(_1z, _20) - 48); //#13000 + } //#13000 + var _23 = $a(); //#13000 + $k[$j++] = Infinity; //#13001 + for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#13001 + $k[$j++] = $_.height; //#13001 + } //#13001 + var _28 = $a(); //#13001 + $k[$j++] = Infinity; //#13002 + for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#13002 + $k[$j++] = 0; //#13002 + } //#13002 + var _2C = $a(); //#13002 + $k[$j++] = 'ren'; //#13005 + $k[$j++] = bwipp_renlinear; //#13005 + $k[$j++] = 'sbs'; //#13005 + $k[$j++] = _23; //#13005 + $k[$j++] = 'bhs'; //#13005 + $k[$j++] = _28; //#13005 + $k[$j++] = 'bbs'; //#13005 + $k[$j++] = _2C; //#13005 + if ($_.includetext) { //#13005 + $k[$j++] = 'txt'; //#13004 + $k[$j++] = $_.txt; //#13004 + } //#13004 + $k[$j++] = 'opt'; //#13006 + $k[$j++] = $_.options; //#13006 + var _2G = $d(); //#13006 + $k[$j++] = _2G; //#13009 + if (!$_.dontdraw) { //#13009 + bwipp_renlinear(); //#13009 + } //#13009 + $_ = Object.getPrototypeOf($_); //#13011 + $_ = Object.getPrototypeOf($_); //#13013 +} //bwipp_telepen function bwipp_telepennumeric() { - $_ = Object.create($_); //#12850 - $_.dontdraw = false; //#12853 - $k[$j++] = $_; //#12855 - bwipp_processoptions(); //#12855 - $_.options = $k[--$j]; //#12855 - $_.barcode = $k[--$j]; //#12856 - $put($_.options, "dontdraw", true); //#12859 - $put($_.options, "numeric", true); //#12860 - $k[$j++] = 'args'; //#12862 - $k[$j++] = $_.barcode; //#12862 - $k[$j++] = $_.options; //#12862 - bwipp_telepen(); //#12862 - var _6 = $k[--$j]; //#12862 - $_[$k[--$j]] = _6; //#12862 - $put($_.args, "opt", $_.options); //#12864 - $k[$j++] = $_.args; //#12867 - if (!$_.dontdraw) { //#12867 - bwipp_renlinear(); //#12867 - } //#12867 - $_ = Object.getPrototypeOf($_); //#12869 -} - + $_ = Object.create($_); //#13042 + $_.dontdraw = false; //#13045 + $k[$j++] = $_; //#13047 + bwipp_processoptions(); //#13047 + $_.options = $k[--$j]; //#13047 + $_.barcode = $k[--$j]; //#13048 + $put($_.options, "dontdraw", true); //#13051 + $put($_.options, "numeric", true); //#13052 + $k[$j++] = 'args'; //#13054 + $k[$j++] = $_.barcode; //#13054 + $k[$j++] = $_.options; //#13054 + bwipp_telepen(); //#13054 + var _6 = $k[--$j]; //#13054 + $_[$k[--$j]] = _6; //#13054 + $put($_.args, "opt", $_.options); //#13056 + $k[$j++] = $_.args; //#13059 + if (!$_.dontdraw) { //#13059 + bwipp_renlinear(); //#13059 + } //#13059 + $_ = Object.getPrototypeOf($_); //#13061 +} //bwipp_telepennumeric function bwipp_posicode() { - $_ = Object.create($_); //#12900 - $_.dontdraw = false; //#12903 - $_.includetext = false; //#12904 - $_.textfont = "OCR-B"; //#12905 - $_.textsize = 10; //#12906 - $_.textxoffset = 0; //#12907 - $_.textyoffset = -8; //#12908 - $_.height = 1; //#12909 - $_.encoding = "auto"; //#12910 - $_.version = "a"; //#12911 - $_.checkoffset = 0; //#12912 - $_.raw = false; //#12913 - $_.parse = false; //#12914 - $_.parsefnc = false; //#12915 - $k[$j++] = $_; //#12917 - bwipp_processoptions(); //#12917 - $_.options = $k[--$j]; //#12917 - var _1 = $k[--$j]; //#12918 - $_.barcode = _1; //#12918 - bwipp_loadctx(bwipp_posicode) //#12920 - if (!bwipp_posicode.__12963__) { //#12963 - $_ = Object.create($_); //#12963 - $_.la0 = -1; //#12924 - $_.la1 = -2; //#12924 - $_.la2 = -3; //#12924 - $_.sf0 = -4; //#12925 - $_.sf1 = -5; //#12925 - $_.sf2 = -6; //#12925 - $_.fn1 = -7; //#12926 - $_.fn2 = -8; //#12926 - $_.fn3 = -9; //#12926 - $_.fn4 = -10; //#12926 - $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#12947 - var _12 = $a(["5", -98, -98]); //#12950 - $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), _12, $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#12962 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#12962 - bwipp_posicode.__12963__ = 1; //#12962 - $_ = Object.getPrototypeOf($_); //#12962 - } //#12962 - $k[$j++] = 'charmaps'; //#12965 - if ($eq($_.version, "a") || $eq($_.version, "b")) { //#12965 - $k[$j++] = $_.charmapsnormal; //#12965 - } else { //#12965 - $k[$j++] = $_.chapmapslimited; //#12965 - } //#12965 - var _1f = $k[--$j]; //#12965 - $_[$k[--$j]] = _1f; //#12965 - var _1h = $_.charmaps; //#12969 - var _1i = $_.charmaps; //#12969 - var _1j = $_.charmaps; //#12969 - $_.charvals = $a([new Map, new Map, new Map]); //#12970 - for (var _1n = 0, _1m = $_.charmaps.length - 1; _1n <= _1m; _1n += 1) { //#12979 - $_.i = _1n; //#12972 - $_.encs = $get($_.charmaps, $_.i); //#12973 - for (var _1r = 0; _1r <= 2; _1r += 1) { //#12978 - $_.j = _1r; //#12975 - var _1u = $get($_.encs, $_.j); //#12976 - $k[$j++] = _1u; //#12976 - if ($eq($type(_1u), 'stringtype')) { //#12976 - var _1x = $get($k[--$j], 0); //#12976 - $k[$j++] = _1x; //#12976 - } //#12976 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#12977 - } //#12977 - } //#12977 - $_.set0 = $get($_.charvals, 0); //#12980 - $_.set1 = $get($_.charvals, 1); //#12981 - $_.set2 = $get($_.charvals, 2); //#12982 - if ($_.raw) { //#12984 - $_.encoding = "raw"; //#12984 - } //#12984 - if ($eq($_.encoding, "raw")) { //#12998 - $_.cws = $a($_.barcode.length); //#12987 - $_.i = 0; //#12988 - $_.j = 0; //#12988 - for (;;) { //#12995 - if ($_.i == $_.barcode.length) { //#12990 - break; //#12990 - } //#12990 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#12991 - $put($_.cws, $_.j, $_.cw); //#12992 - $_.i = $_.i + 4; //#12993 - $_.j = $_.j + 1; //#12994 - } //#12994 - $_.cws = $geti($_.cws, 0, $_.j); //#12996 - $_.text = ""; //#12997 - } //#12997 - if ($eq($_.encoding, "auto")) { //#13113 - var _2W = new Map([ + $_ = Object.create($_); //#13092 + $_.dontdraw = false; //#13095 + $_.includetext = false; //#13096 + $_.textfont = "OCR-B"; //#13097 + $_.textsize = 10; //#13098 + $_.textxoffset = 0; //#13099 + $_.textyoffset = -8; //#13100 + $_.height = 1; //#13101 + $_.encoding = "auto"; //#13102 + $_.version = "a"; //#13103 + $_.checkoffset = 0; //#13104 + $_.raw = false; //#13105 + $_.parse = false; //#13106 + $_.parsefnc = false; //#13107 + $k[$j++] = $_; //#13109 + bwipp_processoptions(); //#13109 + $_.options = $k[--$j]; //#13109 + var _1 = $k[--$j]; //#13110 + $_.barcode = _1; //#13110 + bwipp_loadctx(bwipp_posicode) //#13112 + if (!bwipp_posicode.__13155__) { //#13155 + $_ = Object.create($_); //#13155 + $_.la0 = -1; //#13116 + $_.la1 = -2; //#13116 + $_.la2 = -3; //#13116 + $_.sf0 = -4; //#13117 + $_.sf1 = -5; //#13117 + $_.sf2 = -6; //#13117 + $_.fn1 = -7; //#13118 + $_.fn2 = -8; //#13118 + $_.fn3 = -9; //#13118 + $_.fn4 = -10; //#13118 + $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#13139 + var _13 = $a(["6", -98, -98]); //#13143 + $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), _13, $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#13154 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13154 + bwipp_posicode.__13155__ = 1; //#13154 + $_ = Object.getPrototypeOf($_); //#13154 + } //#13154 + if ((($ne($_.version, "a") && $ne($_.version, "b")) && $ne($_.version, "limiteda")) && $ne($_.version, "limitedb")) { //#13159 + $k[$j++] = 'bwipp.posicodeInvalidVersion#13158'; //#13158 + $k[$j++] = "The version must be either a, b, limiteda or limitedb"; //#13158 + bwipp_raiseerror(); //#13158 + } //#13158 + $k[$j++] = 'charmaps'; //#13161 + if ($eq($_.version, "a") || $eq($_.version, "b")) { //#13161 + $k[$j++] = $_.charmapsnormal; //#13161 + } else { //#13161 + $k[$j++] = $_.chapmapslimited; //#13161 + } //#13161 + var _1j = $k[--$j]; //#13161 + $_[$k[--$j]] = _1j; //#13161 + var _1l = $_.charmaps; //#13165 + var _1m = $_.charmaps; //#13165 + var _1n = $_.charmaps; //#13165 + $_.charvals = $a([new Map, new Map, new Map]); //#13166 + for (var _1r = 0, _1q = $_.charmaps.length - 1; _1r <= _1q; _1r += 1) { //#13175 + $_.i = _1r; //#13168 + $_.encs = $get($_.charmaps, $_.i); //#13169 + for (var _1v = 0; _1v <= 2; _1v += 1) { //#13174 + $_.j = _1v; //#13171 + var _1y = $get($_.encs, $_.j); //#13172 + $k[$j++] = _1y; //#13172 + if ($eq($type(_1y), 'stringtype')) { //#13172 + var _21 = $get($k[--$j], 0); //#13172 + $k[$j++] = _21; //#13172 + } //#13172 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13173 + } //#13173 + } //#13173 + $_.set0 = $get($_.charvals, 0); //#13176 + $_.set1 = $get($_.charvals, 1); //#13177 + $_.set2 = $get($_.charvals, 2); //#13178 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13187 + for (var _2H = 0, _2G = $_.barcode.length - 1; _2H <= _2G; _2H += 1) { //#13186 + var _2M = $get($_.set0, $get($geti($_.barcode, _2H, 1), 0)) !== undefined; //#13183 + if (!_2M) { //#13185 + $k[$j++] = 'bwipp.posicodeBadCharacter#13184'; //#13184 + $k[$j++] = "Posicode limited must contain only digits, capital letters, and the symbols - and ."; //#13184 + bwipp_raiseerror(); //#13184 + } //#13184 + } //#13184 + } //#13184 + if ($_.raw) { //#13189 + $_.encoding = "raw"; //#13189 + } //#13189 + if ($eq($_.encoding, "raw")) { //#13203 + $_.cws = $a($_.barcode.length); //#13192 + $_.i = 0; //#13193 + $_.j = 0; //#13193 + for (;;) { //#13200 + if ($_.i == $_.barcode.length) { //#13195 + break; //#13195 + } //#13195 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#13196 + $put($_.cws, $_.j, $_.cw); //#13197 + $_.i = $_.i + 4; //#13198 + $_.j = $_.j + 1; //#13199 + } //#13199 + $_.cws = $geti($_.cws, 0, $_.j); //#13201 + $_.text = ""; //#13202 + } //#13202 + if ($eq($_.encoding, "auto")) { //#13318 + var _2k = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13008 - $_.fncvals = _2W; //#13010 - $k[$j++] = 'msg'; //#13011 - $k[$j++] = $_.barcode; //#13011 - $k[$j++] = $_.fncvals; //#13011 - bwipp_parseinput(); //#13011 - var _2Z = $k[--$j]; //#13011 - $_[$k[--$j]] = _2Z; //#13011 - $_.msglen = $_.msg.length; //#13012 - $_.text = $s($_.msglen); //#13014 - for (var _2g = 0, _2f = $_.msglen - 1; _2g <= _2f; _2g += 1) { //#13018 - $_.i = _2g; //#13016 - var _2l = $get($_.msg, $_.i); //#13017 - $k[$j++] = $_.text; //#13017 - $k[$j++] = $_.i; //#13017 - $k[$j++] = _2l; //#13017 - if (_2l < 0) { //#13017 - $j--; //#13017 - $k[$j++] = 32; //#13017 - } //#13017 - var _2m = $k[--$j]; //#13017 - var _2n = $k[--$j]; //#13017 - $put($k[--$j], _2n, _2m); //#13017 - } //#13017 - $k[$j++] = Infinity; //#13021 - for (var _2q = 0, _2r = $_.msglen; _2q < _2r; _2q++) { //#13021 - $k[$j++] = 0; //#13021 - } //#13021 - $k[$j++] = 0; //#13021 - $_.numSA = $a(); //#13021 - $k[$j++] = Infinity; //#13022 - for (var _2u = 0, _2v = $_.msglen; _2u < _2v; _2u++) { //#13022 - $k[$j++] = 0; //#13022 - } //#13022 - $k[$j++] = 0; //#13022 - $_.numEA = $a(); //#13022 - for (var _2y = $_.msglen - 1; _2y >= 0; _2y -= 1) { //#13032 - $_.i = _2y; //#13024 - if ($get($_.msg, $_.i) >= 0) { //#13031 - if ($get($_.msg, $_.i) >= 128) { //#13029 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13027 - } else { //#13029 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13029 - } //#13029 - } //#13029 - } //#13029 - $_.ea = false; //#13035 - $_.msgtmp = $a([]); //#13035 - for (var _3I = 0, _3H = $_.msglen - 1; _3I <= _3H; _3I += 1) { //#13050 - $_.i = _3I; //#13037 - $_.c = $get($_.msg, $_.i); //#13038 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13048 - if ($_.ea) { //#13040 - $k[$j++] = $_.numSA; //#13040 - } else { //#13040 - $k[$j++] = $_.numEA; //#13040 - } //#13040 - var _3U = $get($k[--$j], $_.i); //#13040 - var _3X = ($f(_3U + $_.i) == $_.msglen) ? 3 : 5; //#13041 - if (_3U < _3X) { //#13046 - $k[$j++] = Infinity; //#13043 - $aload($_.msgtmp); //#13043 - $k[$j++] = $_.fn4; //#13043 - $_.msgtmp = $a(); //#13043 - } else { //#13046 - $k[$j++] = Infinity; //#13045 - $aload($_.msgtmp); //#13045 - $k[$j++] = $_.fn4; //#13045 - $k[$j++] = $_.fn4; //#13045 - $_.msgtmp = $a(); //#13045 - $_.ea = !$_.ea; //#13046 - } //#13046 - } //#13046 - $k[$j++] = Infinity; //#13049 - $aload($_.msgtmp); //#13049 - if ($_.c >= 0) { //#13049 - $k[$j++] = $_.c & 127; //#13049 - } else { //#13049 - $k[$j++] = $_.c; //#13049 - } //#13049 - $_.msgtmp = $a(); //#13049 - } //#13049 - $_.msg = $_.msgtmp; //#13051 - $_.msglen = $_.msg.length; //#13052 + ]); //#13213 + $_.fncvals = _2k; //#13215 + $k[$j++] = 'msg'; //#13216 + $k[$j++] = $_.barcode; //#13216 + $k[$j++] = $_.fncvals; //#13216 + bwipp_parseinput(); //#13216 + var _2n = $k[--$j]; //#13216 + $_[$k[--$j]] = _2n; //#13216 + $_.msglen = $_.msg.length; //#13217 + $_.text = $s($_.msglen); //#13219 + for (var _2u = 0, _2t = $_.msglen - 1; _2u <= _2t; _2u += 1) { //#13223 + $_.i = _2u; //#13221 + var _2z = $get($_.msg, $_.i); //#13222 + $k[$j++] = $_.text; //#13222 + $k[$j++] = $_.i; //#13222 + $k[$j++] = _2z; //#13222 + if (_2z < 0) { //#13222 + $j--; //#13222 + $k[$j++] = 32; //#13222 + } //#13222 + var _30 = $k[--$j]; //#13222 + var _31 = $k[--$j]; //#13222 + $put($k[--$j], _31, _30); //#13222 + } //#13222 + $k[$j++] = Infinity; //#13226 + for (var _34 = 0, _35 = $_.msglen; _34 < _35; _34++) { //#13226 + $k[$j++] = 0; //#13226 + } //#13226 + $k[$j++] = 0; //#13226 + $_.numSA = $a(); //#13226 + $k[$j++] = Infinity; //#13227 + for (var _38 = 0, _39 = $_.msglen; _38 < _39; _38++) { //#13227 + $k[$j++] = 0; //#13227 + } //#13227 + $k[$j++] = 0; //#13227 + $_.numEA = $a(); //#13227 + for (var _3C = $_.msglen - 1; _3C >= 0; _3C -= 1) { //#13237 + $_.i = _3C; //#13229 + if ($get($_.msg, $_.i) >= 0) { //#13236 + if ($get($_.msg, $_.i) >= 128) { //#13234 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13232 + } else { //#13234 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13234 + } //#13234 + } //#13234 + } //#13234 + $_.ea = false; //#13240 + $_.msgtmp = $a([]); //#13240 + for (var _3W = 0, _3V = $_.msglen - 1; _3W <= _3V; _3W += 1) { //#13255 + $_.i = _3W; //#13242 + $_.c = $get($_.msg, $_.i); //#13243 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13253 + if ($_.ea) { //#13245 + $k[$j++] = $_.numSA; //#13245 + } else { //#13245 + $k[$j++] = $_.numEA; //#13245 + } //#13245 + var _3i = $get($k[--$j], $_.i); //#13245 + var _3l = ($f(_3i + $_.i) == $_.msglen) ? 3 : 5; //#13246 + if (_3i < _3l) { //#13251 + $k[$j++] = Infinity; //#13248 + $aload($_.msgtmp); //#13248 + $k[$j++] = $_.fn4; //#13248 + $_.msgtmp = $a(); //#13248 + } else { //#13251 + $k[$j++] = Infinity; //#13250 + $aload($_.msgtmp); //#13250 + $k[$j++] = $_.fn4; //#13250 + $k[$j++] = $_.fn4; //#13250 + $_.msgtmp = $a(); //#13250 + $_.ea = !$_.ea; //#13251 + } //#13251 + } //#13251 + $k[$j++] = Infinity; //#13254 + $aload($_.msgtmp); //#13254 + if ($_.c >= 0) { //#13254 + $k[$j++] = $_.c & 127; //#13254 + } else { //#13254 + $k[$j++] = $_.c; //#13254 + } //#13254 + $_.msgtmp = $a(); //#13254 + } //#13254 + $_.msg = $_.msgtmp; //#13256 + $_.msglen = $_.msg.length; //#13257 $_.enc = function() { - var _3n = $k[--$j]; //#13056 - $put($_.cws, $_.j, $get(_3n, $k[--$j])); //#13056 - $_.j = $_.j + 1; //#13057 - }; //#13057 - $_.cws = $a($_.msglen * 2); //#13060 - $_.i = 0; //#13061 - $_.j = 0; //#13061 - $_.cset = "set0"; //#13061 - for (;;) { //#13111 - if ($_.i == $_.msglen) { //#13063 - break; //#13063 - } //#13063 - for (;;) { //#13109 - $_.char1 = $get($_.msg, $_.i); //#13068 - $k[$j++] = 'char2'; //#13069 - if (($_.i + 1) < $_.msglen) { //#13069 - $k[$j++] = $get($_.msg, $_.i + 1); //#13069 - } else { //#13069 - $k[$j++] = -99; //#13069 - } //#13069 - var _45 = $k[--$j]; //#13069 - $_[$k[--$j]] = _45; //#13069 - var _4A = $get($_[$_.cset], $_.char1) !== undefined; //#13072 - if (_4A) { //#13076 - $k[$j++] = $_.char1; //#13073 - $k[$j++] = $_[$_.cset]; //#13073 - $_.enc(); //#13073 - $_.i = $_.i + 1; //#13074 - break; //#13075 - } //#13075 - var _4H = $get($_.set2, $_.char1) !== undefined; //#13079 - if (_4H) { //#13084 - $k[$j++] = $_.sf2; //#13080 - $k[$j++] = $_[$_.cset]; //#13080 - $_.enc(); //#13080 - $k[$j++] = $_.char1; //#13081 - $k[$j++] = $_.set2; //#13081 - $_.enc(); //#13081 - $_.i = $_.i + 1; //#13082 - break; //#13083 - } //#13083 - var _4R = $get($_[$_.cset], $_.char2) !== undefined; //#13087 - if (!_4R) { //#13105 - if ($eq($_.cset, "set0")) { //#13093 - $k[$j++] = $_.la1; //#13089 - $k[$j++] = $_[$_.cset]; //#13089 - $_.enc(); //#13089 - $_.cset = "set1"; //#13090 - } else { //#13093 - $k[$j++] = $_.la0; //#13092 - $k[$j++] = $_[$_.cset]; //#13092 - $_.enc(); //#13092 - $_.cset = "set0"; //#13093 - } //#13093 - break; //#13095 - } else { //#13105 - if ($eq($_.cset, "set0")) { //#13102 - $k[$j++] = $_.sf1; //#13098 - $k[$j++] = $_[$_.cset]; //#13098 - $_.enc(); //#13098 - $k[$j++] = $_.char1; //#13099 - $k[$j++] = $_.set1; //#13099 - $_.enc(); //#13099 - } else { //#13102 - $k[$j++] = $_.sf0; //#13101 - $k[$j++] = $_[$_.cset]; //#13101 - $_.enc(); //#13101 - $k[$j++] = $_.char1; //#13102 - $k[$j++] = $_.set0; //#13102 - $_.enc(); //#13102 - } //#13102 - $_.i = $_.i + 1; //#13104 - break; //#13105 - } //#13105 - break; //#13108 - } //#13108 - } //#13108 - $_.cws = $geti($_.cws, 0, $_.j); //#13112 - } //#13112 - if (!bwipp_posicode.__13163__) { //#13163 - $_ = Object.create($_); //#13163 - var _4s = new Map([ + var _41 = $k[--$j]; //#13261 + $put($_.cws, $_.j, $get(_41, $k[--$j])); //#13261 + $_.j = $_.j + 1; //#13262 + }; //#13262 + $_.cws = $a($_.msglen * 2); //#13265 + $_.i = 0; //#13266 + $_.j = 0; //#13266 + $_.cset = "set0"; //#13266 + for (;;) { //#13316 + if ($_.i == $_.msglen) { //#13268 + break; //#13268 + } //#13268 + for (;;) { //#13314 + $_.char1 = $get($_.msg, $_.i); //#13273 + $k[$j++] = 'char2'; //#13274 + if (($_.i + 1) < $_.msglen) { //#13274 + $k[$j++] = $get($_.msg, $_.i + 1); //#13274 + } else { //#13274 + $k[$j++] = -99; //#13274 + } //#13274 + var _4J = $k[--$j]; //#13274 + $_[$k[--$j]] = _4J; //#13274 + var _4O = $get($_[$_.cset], $_.char1) !== undefined; //#13277 + if (_4O) { //#13281 + $k[$j++] = $_.char1; //#13278 + $k[$j++] = $_[$_.cset]; //#13278 + $_.enc(); //#13278 + $_.i = $_.i + 1; //#13279 + break; //#13280 + } //#13280 + var _4V = $get($_.set2, $_.char1) !== undefined; //#13284 + if (_4V) { //#13289 + $k[$j++] = $_.sf2; //#13285 + $k[$j++] = $_[$_.cset]; //#13285 + $_.enc(); //#13285 + $k[$j++] = $_.char1; //#13286 + $k[$j++] = $_.set2; //#13286 + $_.enc(); //#13286 + $_.i = $_.i + 1; //#13287 + break; //#13288 + } //#13288 + var _4f = $get($_[$_.cset], $_.char2) !== undefined; //#13292 + if (!_4f) { //#13310 + if ($eq($_.cset, "set0")) { //#13298 + $k[$j++] = $_.la1; //#13294 + $k[$j++] = $_[$_.cset]; //#13294 + $_.enc(); //#13294 + $_.cset = "set1"; //#13295 + } else { //#13298 + $k[$j++] = $_.la0; //#13297 + $k[$j++] = $_[$_.cset]; //#13297 + $_.enc(); //#13297 + $_.cset = "set0"; //#13298 + } //#13298 + break; //#13300 + } else { //#13310 + if ($eq($_.cset, "set0")) { //#13307 + $k[$j++] = $_.sf1; //#13303 + $k[$j++] = $_[$_.cset]; //#13303 + $_.enc(); //#13303 + $k[$j++] = $_.char1; //#13304 + $k[$j++] = $_.set1; //#13304 + $_.enc(); //#13304 + } else { //#13307 + $k[$j++] = $_.sf0; //#13306 + $k[$j++] = $_[$_.cset]; //#13306 + $_.enc(); //#13306 + $k[$j++] = $_.char1; //#13307 + $k[$j++] = $_.set0; //#13307 + $_.enc(); //#13307 + } //#13307 + $_.i = $_.i + 1; //#13309 + break; //#13310 + } //#13310 + break; //#13313 + } //#13313 + } //#13313 + $_.cws = $geti($_.cws, 0, $_.j); //#13317 + } //#13317 + if (!bwipp_posicode.__13368__) { //#13368 + $_ = Object.create($_); //#13368 + var _56 = new Map([ ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] - ]); //#13160 - $_.encmaps = _4s; //#13162 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13162 - bwipp_posicode.__13163__ = 1; //#13162 - $_ = Object.getPrototypeOf($_); //#13162 - } //#13162 - $_.encs = $get($_.encmaps, $_.version); //#13164 - if (!bwipp_posicode.__13174__) { //#13174 - $_ = Object.create($_); //#13174 - $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13173 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13173 - bwipp_posicode.__13174__ = 1; //#13173 - $_ = Object.getPrototypeOf($_); //#13173 - } //#13173 - $_.v = 0; //#13175 - var _54 = $_.cws; //#13176 - for (var _55 = 0, _56 = _54.length; _55 < _56; _55++) { //#13185 - $_.cw = $get(_54, _55); //#13177 - for (var _58 = 0, _59 = 6; _58 < _59; _58++) { //#13184 - if ((($_.cw ^ $_.v) & 1) != 0) { //#13181 - $_.v = $_.v ^ 7682; //#13180 - } //#13180 - $_.v = $_.v >>> 1; //#13182 - $_.cw = $_.cw >>> 1; //#13183 - } //#13183 - } //#13183 - $_.v = $_.v + $_.checkoffset; //#13186 - if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13194 - $_.v = $_.v & 1023; //#13189 - if (($_.v > 824) && ($_.v < 853)) { //#13192 - $_.v = $_.v + 292; //#13191 - } //#13191 - } else { //#13194 - $_.v = ($_.v & 1023) + 45; //#13194 - } //#13194 - $_.d = $a([2, 2, 2, 2, 2, 2]); //#13197 - $_.r = 0; //#13198 - $_.c = 0; //#13198 - $_.w = 0; //#13198 - $_.sum = 0; //#13198 - for (;;) { //#13217 - if ($_.sum == $_.v) { //#13200 - break; //#13200 - } //#13200 - $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13201 - if ($_.t == $_.v) { //#13206 - $_.w = $_.w + 1; //#13203 - $put($_.d, $_.r, $_.w + 2); //#13204 - $_.sum = $_.t; //#13205 - } //#13205 - if ($_.t > $_.v) { //#13211 - $put($_.d, $_.r, $_.w + 2); //#13208 - $_.r = $_.r + 1; //#13209 - $_.w = 0; //#13210 - } //#13210 - if ($_.t < $_.v) { //#13216 - $_.c = $_.c + 1; //#13213 - $_.w = $_.w + 1; //#13214 - $_.sum = $_.t; //#13215 - } //#13215 - } //#13215 - $k[$j++] = 20; //#13218 - for (var _5p = 0; _5p <= 4; _5p += 1) { //#13218 - var _5s = $k[--$j]; //#13218 - $k[$j++] = $f(_5s - $get($_.d, _5p)); //#13218 - } //#13218 - $put($_.d, 5, $k[--$j]); //#13219 - if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13222 - $k[$j++] = Infinity; //#13221 - var _5x = $_.d; //#13221 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#13221 - $k[$j++] = $f($get(_5x, _5y) + 1); //#13221 - } //#13221 - $_.d = $a(); //#13221 - } //#13221 - $_.cbs = $strcpy($s(12), "111111111111"); //#13223 - for (var _64 = 5; _64 >= 0; _64 -= 1) { //#13227 - $_.i = _64; //#13225 - $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13226 - } //#13226 - $_.sbs = $s(($_.cws.length * 6) + 31); //#13230 - var _6E = $get($_.encs, $_.encs.length - 2); //#13231 - $puti($_.sbs, 0, _6E); //#13232 - $_.j = _6E.length; //#13233 - for (var _6I = 0, _6H = $_.cws.length - 1; _6I <= _6H; _6I += 1) { //#13238 - $_.i = _6I; //#13235 - $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13236 - $_.j = $_.j + 6; //#13237 - } //#13237 - $puti($_.sbs, $_.j, $_.cbs); //#13239 - $_.j = $_.j + 12; //#13240 - var _6X = $get($_.encs, $_.encs.length - 1); //#13241 - $puti($_.sbs, $_.j, _6X); //#13242 - $_.j = _6X.length + $_.j; //#13243 - $_.sbs = $geti($_.sbs, 0, $_.j); //#13244 - $k[$j++] = Infinity; //#13254 - $k[$j++] = Infinity; //#13249 - var _6e = $_.sbs; //#13249 - for (var _6f = 0, _6g = _6e.length; _6f < _6g; _6f++) { //#13249 - $k[$j++] = $f($get(_6e, _6f) - 48); //#13249 - } //#13249 - var _6i = $a(); //#13249 - $k[$j++] = Infinity; //#13250 - for (var _6k = 0, _6l = ~~(($_.sbs.length + 1) / 2); _6k < _6l; _6k++) { //#13250 - $k[$j++] = $_.height; //#13250 - } //#13250 - var _6n = $a(); //#13250 - $k[$j++] = Infinity; //#13251 - for (var _6p = 0, _6q = ~~(($_.sbs.length + 1) / 2); _6p < _6q; _6p++) { //#13251 - $k[$j++] = 0; //#13251 - } //#13251 - var _6r = $a(); //#13251 - $k[$j++] = 'ren'; //#13254 - $k[$j++] = bwipp_renlinear; //#13254 - $k[$j++] = 'sbs'; //#13254 - $k[$j++] = _6i; //#13254 - $k[$j++] = 'bhs'; //#13254 - $k[$j++] = _6n; //#13254 - $k[$j++] = 'bbs'; //#13254 - $k[$j++] = _6r; //#13254 - $k[$j++] = 'txt'; //#13254 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13254 - $k[$j++] = 'textxalign'; //#13254 - $k[$j++] = "center"; //#13254 - $k[$j++] = 'opt'; //#13254 - $k[$j++] = $_.options; //#13254 - var _70 = $d(); //#13254 - $k[$j++] = _70; //#13257 - if (!$_.dontdraw) { //#13257 - bwipp_renlinear(); //#13257 - } //#13257 - $_ = Object.getPrototypeOf($_); //#13259 - $_ = Object.getPrototypeOf($_); //#13261 -} - + ]); //#13365 + $_.encmaps = _56; //#13367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13367 + bwipp_posicode.__13368__ = 1; //#13367 + $_ = Object.getPrototypeOf($_); //#13367 + } //#13367 + $_.encs = $get($_.encmaps, $_.version); //#13369 + if (!bwipp_posicode.__13379__) { //#13379 + $_ = Object.create($_); //#13379 + $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13378 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13378 + bwipp_posicode.__13379__ = 1; //#13378 + $_ = Object.getPrototypeOf($_); //#13378 + } //#13378 + $_.v = 0; //#13380 + var _5I = $_.cws; //#13381 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#13390 + $_.cw = $get(_5I, _5J); //#13382 + for (var _5M = 0, _5N = 6; _5M < _5N; _5M++) { //#13389 + if ((($_.cw ^ $_.v) & 1) != 0) { //#13386 + $_.v = $_.v ^ 7682; //#13385 + } //#13385 + $_.v = $_.v >>> 1; //#13387 + $_.cw = $_.cw >>> 1; //#13388 + } //#13388 + } //#13388 + $_.v = $_.v + $_.checkoffset; //#13391 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13399 + $_.v = $_.v & 1023; //#13394 + if (($_.v > 824) && ($_.v < 853)) { //#13397 + $_.v = $_.v + 292; //#13396 + } //#13396 + } else { //#13399 + $_.v = ($_.v & 1023) + 45; //#13399 + } //#13399 + $_.d = $a([2, 2, 2, 2, 2, 2]); //#13402 + $_.r = 0; //#13403 + $_.c = 0; //#13403 + $_.w = 0; //#13403 + $_.sum = 0; //#13403 + for (;;) { //#13422 + if ($_.sum == $_.v) { //#13405 + break; //#13405 + } //#13405 + $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13406 + if ($_.t == $_.v) { //#13411 + $_.w = $_.w + 1; //#13408 + $put($_.d, $_.r, $_.w + 2); //#13409 + $_.sum = $_.t; //#13410 + } //#13410 + if ($_.t > $_.v) { //#13416 + $put($_.d, $_.r, $_.w + 2); //#13413 + $_.r = $_.r + 1; //#13414 + $_.w = 0; //#13415 + } //#13415 + if ($_.t < $_.v) { //#13421 + $_.c = $_.c + 1; //#13418 + $_.w = $_.w + 1; //#13419 + $_.sum = $_.t; //#13420 + } //#13420 + } //#13420 + $k[$j++] = 20; //#13423 + for (var _63 = 0; _63 <= 4; _63 += 1) { //#13423 + var _66 = $k[--$j]; //#13423 + $k[$j++] = $f(_66 - $get($_.d, _63)); //#13423 + } //#13423 + $put($_.d, 5, $k[--$j]); //#13424 + if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13427 + $k[$j++] = Infinity; //#13426 + var _6B = $_.d; //#13426 + for (var _6C = 0, _6D = _6B.length; _6C < _6D; _6C++) { //#13426 + $k[$j++] = $f($get(_6B, _6C) + 1); //#13426 + } //#13426 + $_.d = $a(); //#13426 + } //#13426 + $_.cbs = $strcpy($s(12), "111111111111"); //#13428 + for (var _6I = 5; _6I >= 0; _6I -= 1) { //#13432 + $_.i = _6I; //#13430 + $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13431 + } //#13431 + $_.sbs = $s(($_.cws.length * 6) + 31); //#13435 + var _6S = $get($_.encs, $_.encs.length - 2); //#13436 + $puti($_.sbs, 0, _6S); //#13437 + $_.j = _6S.length; //#13438 + for (var _6W = 0, _6V = $_.cws.length - 1; _6W <= _6V; _6W += 1) { //#13443 + $_.i = _6W; //#13440 + $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13441 + $_.j = $_.j + 6; //#13442 + } //#13442 + $puti($_.sbs, $_.j, $_.cbs); //#13444 + $_.j = $_.j + 12; //#13445 + var _6l = $get($_.encs, $_.encs.length - 1); //#13446 + $puti($_.sbs, $_.j, _6l); //#13447 + $_.j = _6l.length + $_.j; //#13448 + $_.sbs = $geti($_.sbs, 0, $_.j); //#13449 + $k[$j++] = Infinity; //#13452 + $k[$j++] = Infinity; //#13454 + var _6s = $_.sbs; //#13454 + for (var _6t = 0, _6u = _6s.length; _6t < _6u; _6t++) { //#13454 + $k[$j++] = $f($get(_6s, _6t) - 48); //#13454 + } //#13454 + var _6w = $a(); //#13454 + $k[$j++] = Infinity; //#13455 + for (var _6y = 0, _6z = ~~(($_.sbs.length + 1) / 2); _6y < _6z; _6y++) { //#13455 + $k[$j++] = $_.height; //#13455 + } //#13455 + var _71 = $a(); //#13455 + $k[$j++] = Infinity; //#13456 + for (var _73 = 0, _74 = ~~(($_.sbs.length + 1) / 2); _73 < _74; _73++) { //#13456 + $k[$j++] = 0; //#13456 + } //#13456 + var _75 = $a(); //#13456 + var _7D = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13459 + var _7G = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13460 + $k[$j++] = 'ren'; //#13461 + $k[$j++] = bwipp_renlinear; //#13461 + $k[$j++] = 'sbs'; //#13461 + $k[$j++] = _6w; //#13461 + $k[$j++] = 'bhs'; //#13461 + $k[$j++] = _71; //#13461 + $k[$j++] = 'bbs'; //#13461 + $k[$j++] = _75; //#13461 + $k[$j++] = 'txt'; //#13461 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13461 + $k[$j++] = 'textxalign'; //#13461 + $k[$j++] = "center"; //#13461 + $k[$j++] = 'borderleft'; //#13461 + $k[$j++] = $get(_7D, $_.version); //#13461 + $k[$j++] = 'borderright'; //#13461 + $k[$j++] = $get(_7G, $_.version); //#13461 + $k[$j++] = 'opt'; //#13461 + $k[$j++] = $_.options; //#13461 + var _7K = $d(); //#13461 + $k[$j++] = _7K; //#13464 + if (!$_.dontdraw) { //#13464 + bwipp_renlinear(); //#13464 + } //#13464 + $_ = Object.getPrototypeOf($_); //#13466 + $_ = Object.getPrototypeOf($_); //#13468 +} //bwipp_posicode function bwipp_codablockf() { - $_ = Object.create($_); //#13292 - $_.dontdraw = false; //#13295 - $_.rows = -1; //#13296 - $_.columns = 8; //#13297 - $_.rowheight = 10; //#13298 - $_.sepheight = 1; //#13299 - $_.parse = false; //#13300 - $_.parsefnc = false; //#13301 - $k[$j++] = $_; //#13303 - bwipp_processoptions(); //#13303 - $_.options = $k[--$j]; //#13303 - $_.barcode = $k[--$j]; //#13304 - if (($_.columns < 4) || ($_.columns > 62)) { //#13308 - $k[$j++] = 'bwipp.codablockfBadColumns#13307'; //#13307 - $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13307 - bwipp_raiseerror(); //#13307 - } //#13307 - if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13312 - $k[$j++] = 'bwipp.codablockfBadRows#13311'; //#13311 - $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13311 - bwipp_raiseerror(); //#13311 - } //#13311 - if ($_.rowheight < 8) { //#13316 - $k[$j++] = 'bwipp.codablockfBadRowHeight#13315'; //#13315 - $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13315 - bwipp_raiseerror(); //#13315 - } //#13315 - if ($_.sepheight < 1) { //#13320 - $k[$j++] = 'bwipp.codablockfBadSepHeight#13319'; //#13319 - $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13319 - bwipp_raiseerror(); //#13319 - } //#13319 - bwipp_loadctx(bwipp_codablockf) //#13322 - $k[$j++] = 'c'; //#13324 - if (($_.columns >= 4) && ($_.columns <= 62)) { //#13324 - $k[$j++] = $_.columns; //#13324 - } else { //#13324 - $k[$j++] = 8; //#13324 - } //#13324 - var _C = $k[--$j]; //#13324 - $_[$k[--$j]] = _C; //#13324 - $k[$j++] = 'rows'; //#13325 - if (($_.rows >= 2) && ($_.rows <= 44)) { //#13325 - $k[$j++] = $_.rows; //#13325 - } else { //#13325 - $k[$j++] = -1; //#13325 - } //#13325 - var _H = $k[--$j]; //#13325 - $_[$k[--$j]] = _H; //#13325 - $_.swa = -1; //#13328 - $_.swb = -2; //#13328 - $_.swc = -3; //#13328 - $_.sft = -4; //#13328 - $_.fn1 = -5; //#13329 - $_.fn2 = -6; //#13329 - $_.fn3 = -7; //#13329 - $_.fn4 = -8; //#13329 - $_.sta = -9; //#13330 - $_.stp = -10; //#13330 + $_ = Object.create($_); //#13499 + $_.dontdraw = false; //#13502 + $_.rows = -1; //#13503 + $_.columns = 8; //#13504 + $_.rowheight = 10; //#13505 + $_.sepheight = 1; //#13506 + $_.parse = false; //#13507 + $_.parsefnc = false; //#13508 + $k[$j++] = $_; //#13510 + bwipp_processoptions(); //#13510 + $_.options = $k[--$j]; //#13510 + $_.barcode = $k[--$j]; //#13511 + if (($_.columns < 4) || ($_.columns > 62)) { //#13515 + $k[$j++] = 'bwipp.codablockfBadColumns#13514'; //#13514 + $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13514 + bwipp_raiseerror(); //#13514 + } //#13514 + if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13519 + $k[$j++] = 'bwipp.codablockfBadRows#13518'; //#13518 + $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13518 + bwipp_raiseerror(); //#13518 + } //#13518 + if ($_.rowheight < 8) { //#13523 + $k[$j++] = 'bwipp.codablockfBadRowHeight#13522'; //#13522 + $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13522 + bwipp_raiseerror(); //#13522 + } //#13522 + if ($_.sepheight < 1) { //#13527 + $k[$j++] = 'bwipp.codablockfBadSepHeight#13526'; //#13526 + $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13526 + bwipp_raiseerror(); //#13526 + } //#13526 + bwipp_loadctx(bwipp_codablockf) //#13529 + $k[$j++] = 'c'; //#13531 + if (($_.columns >= 4) && ($_.columns <= 62)) { //#13531 + $k[$j++] = $_.columns; //#13531 + } else { //#13531 + $k[$j++] = 8; //#13531 + } //#13531 + var _C = $k[--$j]; //#13531 + $_[$k[--$j]] = _C; //#13531 + $k[$j++] = 'rows'; //#13532 + if (($_.rows >= 2) && ($_.rows <= 44)) { //#13532 + $k[$j++] = $_.rows; //#13532 + } else { //#13532 + $k[$j++] = -1; //#13532 + } //#13532 + var _H = $k[--$j]; //#13532 + $_[$k[--$j]] = _H; //#13532 + $_.swa = -1; //#13535 + $_.swb = -2; //#13535 + $_.swc = -3; //#13535 + $_.sft = -4; //#13535 + $_.fn1 = -5; //#13536 + $_.fn2 = -6; //#13536 + $_.fn3 = -7; //#13536 + $_.fn4 = -8; //#13536 + $_.sta = -9; //#13537 + $_.stp = -10; //#13537 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#13338 - $_.fncvals = _N; //#13340 - $k[$j++] = 'msg'; //#13341 - $k[$j++] = $_.barcode; //#13341 - $k[$j++] = $_.fncvals; //#13341 - bwipp_parseinput(); //#13341 - var _Q = $k[--$j]; //#13341 - $_[$k[--$j]] = _Q; //#13341 - $_.msglen = $_.msg.length; //#13342 - $_.msgtmp = $a([]); //#13345 - var _U = $_.msg; //#13346 - for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13349 - $_.char = $get(_U, _V); //#13347 - $k[$j++] = Infinity; //#13348 - $aload($_.msgtmp); //#13348 - if ($_.char < 128) { //#13348 - $k[$j++] = $_.char; //#13348 - } else { //#13348 - $k[$j++] = $_.fn4; //#13348 - $k[$j++] = $_.char & 127; //#13348 - } //#13348 - $_.msgtmp = $a(); //#13348 - } //#13348 - $_.kmsg = $_.msg; //#13350 - $_.msg = $_.msgtmp; //#13351 - $_.msglen = $_.msg.length; //#13352 - if (!bwipp_codablockf.__13409__) { //#13409 - $_ = Object.create($_); //#13409 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13393 - $_.charvals = $a([new Map, new Map, new Map]); //#13396 - for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13405 - $_.i = _2p; //#13398 - $_.encs = $get($_.charmaps, $_.i); //#13399 - for (var _2t = 0; _2t <= 2; _2t += 1) { //#13404 - $_.j = _2t; //#13401 - var _2w = $get($_.encs, $_.j); //#13402 - $k[$j++] = _2w; //#13402 - if ($eq($type(_2w), 'stringtype')) { //#13402 - var _2z = $get($k[--$j], 0); //#13402 - $k[$j++] = _2z; //#13402 - } //#13402 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13403 - } //#13403 - } //#13403 - $_.seta = $get($_.charvals, 0); //#13406 - $_.setb = $get($_.charvals, 1); //#13407 - $_.setc = $get($_.charvals, 2); //#13408 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13408 - bwipp_codablockf.__13409__ = 1; //#13408 - $_ = Object.getPrototypeOf($_); //#13408 - } //#13408 + ]); //#13545 + $_.fncvals = _N; //#13547 + $k[$j++] = 'msg'; //#13548 + $k[$j++] = $_.barcode; //#13548 + $k[$j++] = $_.fncvals; //#13548 + bwipp_parseinput(); //#13548 + var _Q = $k[--$j]; //#13548 + $_[$k[--$j]] = _Q; //#13548 + $_.msglen = $_.msg.length; //#13549 + $_.msgtmp = $a([]); //#13552 + var _U = $_.msg; //#13553 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13556 + $_.char = $get(_U, _V); //#13554 + $k[$j++] = Infinity; //#13555 + $aload($_.msgtmp); //#13555 + if ($_.char < 128) { //#13555 + $k[$j++] = $_.char; //#13555 + } else { //#13555 + $k[$j++] = $_.fn4; //#13555 + $k[$j++] = $_.char & 127; //#13555 + } //#13555 + $_.msgtmp = $a(); //#13555 + } //#13555 + $_.kmsg = $_.msg; //#13557 + $_.msg = $_.msgtmp; //#13558 + $_.msglen = $_.msg.length; //#13559 + if (!bwipp_codablockf.__13616__) { //#13616 + $_ = Object.create($_); //#13616 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13600 + $_.charvals = $a([new Map, new Map, new Map]); //#13603 + for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13612 + $_.i = _2p; //#13605 + $_.encs = $get($_.charmaps, $_.i); //#13606 + for (var _2t = 0; _2t <= 2; _2t += 1) { //#13611 + $_.j = _2t; //#13608 + var _2w = $get($_.encs, $_.j); //#13609 + $k[$j++] = _2w; //#13609 + if ($eq($type(_2w), 'stringtype')) { //#13609 + var _2z = $get($k[--$j], 0); //#13609 + $k[$j++] = _2z; //#13609 + } //#13609 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13610 + } //#13610 + } //#13610 + $_.seta = $get($_.charvals, 0); //#13613 + $_.setb = $get($_.charvals, 1); //#13614 + $_.setc = $get($_.charvals, 2); //#13615 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13615 + bwipp_codablockf.__13616__ = 1; //#13615 + $_ = Object.getPrototypeOf($_); //#13615 + } //#13615 $_.numsscr = function() { - $_.n = 0; //#13413 - $_.s = 0; //#13413 - $_.p = $k[--$j]; //#13414 - for (;;) { //#13425 - if ($_.p >= $_.msglen) { //#13415 - break; //#13415 - } //#13415 - var _3H = $get($_.msg, $_.p); //#13416 - var _3J = $get($_.setc, _3H) !== undefined; //#13417 - $k[$j++] = _3H; //#13417 - if (!_3J) { //#13417 - $j--; //#13417 - break; //#13417 - } //#13417 - if ($k[--$j] == $_.fn1) { //#13421 - if (($_.s % 2) == 0) { //#13420 - $_.s = $_.s + 1; //#13420 - } else { //#13420 - break; //#13420 - } //#13420 - } //#13420 - $_.n = $_.n + 1; //#13422 - $_.s = $_.s + 1; //#13423 - $_.p = $f($_.p + 1); //#13424 - } //#13424 - $k[$j++] = $_.n; //#13426 - $k[$j++] = $_.s; //#13426 - }; //#13426 + $_.n = 0; //#13620 + $_.s = 0; //#13620 + $_.p = $k[--$j]; //#13621 + for (;;) { //#13632 + if ($_.p >= $_.msglen) { //#13622 + break; //#13622 + } //#13622 + var _3H = $get($_.msg, $_.p); //#13623 + var _3J = $get($_.setc, _3H) !== undefined; //#13624 + $k[$j++] = _3H; //#13624 + if (!_3J) { //#13624 + $j--; //#13624 + break; //#13624 + } //#13624 + if ($k[--$j] == $_.fn1) { //#13628 + if (($_.s % 2) == 0) { //#13627 + $_.s = $_.s + 1; //#13627 + } else { //#13627 + break; //#13627 + } //#13627 + } //#13627 + $_.n = $_.n + 1; //#13629 + $_.s = $_.s + 1; //#13630 + $_.p = $f($_.p + 1); //#13631 + } //#13631 + $k[$j++] = $_.n; //#13633 + $k[$j++] = $_.s; //#13633 + }; //#13633 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13431 - $_.j = $_.j + 1; //#13432 - }; //#13432 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13638 + $_.j = $_.j + 1; //#13639 + }; //#13639 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13435 - $_.j = $_.j + 1; //#13436 - }; //#13436 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13642 + $_.j = $_.j + 1; //#13643 + }; //#13643 $_.encc = function() { - var _3f = $k[--$j]; //#13439 - $k[$j++] = _3f; //#13443 - if ($ne($type(_3f), 'arraytype')) { //#13442 - var _3j = $get($_.setc, $k[--$j]); //#13440 - $k[$j++] = _3j; //#13440 - } else { //#13442 - $aload($k[--$j]); //#13442 - var _3l = $k[--$j]; //#13442 - var _3m = $k[--$j]; //#13442 - $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13442 - } //#13442 - $put($_.cws, $_.j, $k[--$j]); //#13444 - $_.j = $_.j + 1; //#13445 - }; //#13445 + var _3f = $k[--$j]; //#13646 + $k[$j++] = _3f; //#13650 + if ($ne($type(_3f), 'arraytype')) { //#13649 + var _3j = $get($_.setc, $k[--$j]); //#13647 + $k[$j++] = _3j; //#13647 + } else { //#13649 + $aload($k[--$j]); //#13649 + var _3l = $k[--$j]; //#13649 + var _3m = $k[--$j]; //#13649 + $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13649 + } //#13649 + $put($_.cws, $_.j, $k[--$j]); //#13651 + $_.j = $_.j + 1; //#13652 + }; //#13652 $_.anotb = function() { - var _3r = $k[--$j]; //#13449 - var _3t = $get($_.seta, _3r) !== undefined; //#13449 - var _3v = $get($_.setb, _3r) !== undefined; //#13449 - $k[$j++] = _3t && (!_3v); //#13449 - }; //#13449 + var _3r = $k[--$j]; //#13656 + var _3t = $get($_.seta, _3r) !== undefined; //#13656 + var _3v = $get($_.setb, _3r) !== undefined; //#13656 + $k[$j++] = _3t && (!_3v); //#13656 + }; //#13656 $_.bnota = function() { - var _3w = $k[--$j]; //#13450 - var _3y = $get($_.setb, _3w) !== undefined; //#13450 - var _40 = $get($_.seta, _3w) !== undefined; //#13450 - $k[$j++] = _3y && (!_40); //#13450 - }; //#13450 - $k[$j++] = Infinity; //#13453 - for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13453 - $k[$j++] = 0; //#13453 - } //#13453 - $k[$j++] = 9999; //#13453 - $_.nextanotb = $a(); //#13453 - $k[$j++] = Infinity; //#13454 - for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13454 - $k[$j++] = 0; //#13454 - } //#13454 - $k[$j++] = 9999; //#13454 - $_.nextbnota = $a(); //#13454 - for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13467 - $_.i = _4A; //#13456 - $k[$j++] = $get($_.msg, $_.i); //#13457 - $_.anotb(); //#13457 - if ($k[--$j]) { //#13460 - $put($_.nextanotb, $_.i, 0); //#13458 - } else { //#13460 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13460 - } //#13460 - $k[$j++] = $get($_.msg, $_.i); //#13462 - $_.bnota(); //#13462 - if ($k[--$j]) { //#13465 - $put($_.nextbnota, $_.i, 0); //#13463 - } else { //#13465 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13465 - } //#13465 - } //#13465 + var _3w = $k[--$j]; //#13657 + var _3y = $get($_.setb, _3w) !== undefined; //#13657 + var _40 = $get($_.seta, _3w) !== undefined; //#13657 + $k[$j++] = _3y && (!_40); //#13657 + }; //#13657 + $k[$j++] = Infinity; //#13660 + for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13660 + $k[$j++] = 0; //#13660 + } //#13660 + $k[$j++] = 9999; //#13660 + $_.nextanotb = $a(); //#13660 + $k[$j++] = Infinity; //#13661 + for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13661 + $k[$j++] = 0; //#13661 + } //#13661 + $k[$j++] = 9999; //#13661 + $_.nextbnota = $a(); //#13661 + for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13674 + $_.i = _4A; //#13663 + $k[$j++] = $get($_.msg, $_.i); //#13664 + $_.anotb(); //#13664 + if ($k[--$j]) { //#13667 + $put($_.nextanotb, $_.i, 0); //#13665 + } else { //#13667 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13667 + } //#13667 + $k[$j++] = $get($_.msg, $_.i); //#13669 + $_.bnota(); //#13669 + if ($k[--$j]) { //#13672 + $put($_.nextbnota, $_.i, 0); //#13670 + } else { //#13672 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13672 + } //#13672 + } //#13672 $_.abeforeb = function() { - var _4X = $k[--$j]; //#13470 - $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13470 - }; //#13470 + var _4X = $k[--$j]; //#13677 + $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13677 + }; //#13677 $_.bbeforea = function() { - var _4c = $k[--$j]; //#13471 - $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13471 - }; //#13471 + var _4c = $k[--$j]; //#13678 + $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13678 + }; //#13678 $_.padrow = function() { - for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13481 - for (;;) { //#13480 - if ($eq($_.cset, "seta")) { //#13477 - $k[$j++] = $_.swc; //#13477 - $_.enca(); //#13477 - $_.cset = "setc"; //#13477 - break; //#13477 - } //#13477 - if ($eq($_.cset, "setb")) { //#13478 - $k[$j++] = $_.swc; //#13478 - $_.encb(); //#13478 - $_.cset = "setc"; //#13478 - break; //#13478 - } //#13478 - if ($eq($_.cset, "setc")) { //#13479 - $k[$j++] = $_.swb; //#13479 - $_.encc(); //#13479 - $_.cset = "setb"; //#13479 - break; //#13479 - } //#13479 - } //#13479 - } //#13479 - }; //#13479 + for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13688 + for (;;) { //#13687 + if ($eq($_.cset, "seta")) { //#13684 + $k[$j++] = $_.swc; //#13684 + $_.enca(); //#13684 + $_.cset = "setc"; //#13684 + break; //#13684 + } //#13684 + if ($eq($_.cset, "setb")) { //#13685 + $k[$j++] = $_.swc; //#13685 + $_.encb(); //#13685 + $_.cset = "setc"; //#13685 + break; //#13685 + } //#13685 + if ($eq($_.cset, "setc")) { //#13686 + $k[$j++] = $_.swb; //#13686 + $_.encc(); //#13686 + $_.cset = "setb"; //#13686 + break; //#13686 + } //#13686 + } //#13686 + } //#13686 + }; //#13686 $_.encafitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13496 - var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13488 - $k[$j++] = _4z; //#13492 - if (_4z) { //#13492 - $k[$j++] = $_.fn4; //#13489 - $_.enca(); //#13489 - $k[$j++] = $get($_.msg, $_.i + 1); //#13490 - $_.enca(); //#13490 - $_.i = $_.i + 2; //#13491 - } //#13491 - } else { //#13496 - $k[$j++] = $get($_.msg, $_.i); //#13494 - $_.enca(); //#13494 - $_.i = $_.i + 1; //#13495 - $k[$j++] = true; //#13496 - } //#13496 - }; //#13496 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13703 + var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13695 + $k[$j++] = _4z; //#13699 + if (_4z) { //#13699 + $k[$j++] = $_.fn4; //#13696 + $_.enca(); //#13696 + $k[$j++] = $get($_.msg, $_.i + 1); //#13697 + $_.enca(); //#13697 + $_.i = $_.i + 2; //#13698 + } //#13698 + } else { //#13703 + $k[$j++] = $get($_.msg, $_.i); //#13701 + $_.enca(); //#13701 + $_.i = $_.i + 1; //#13702 + $k[$j++] = true; //#13703 + } //#13703 + }; //#13703 $_.encbfitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13512 - var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13504 - $k[$j++] = _5I; //#13508 - if (_5I) { //#13508 - $k[$j++] = $_.fn4; //#13505 - $_.encb(); //#13505 - $k[$j++] = $get($_.msg, $_.i + 1); //#13506 - $_.encb(); //#13506 - $_.i = $_.i + 2; //#13507 - } //#13507 - } else { //#13512 - $k[$j++] = $get($_.msg, $_.i); //#13510 - $_.encb(); //#13510 - $_.i = $_.i + 1; //#13511 - $k[$j++] = true; //#13512 - } //#13512 - }; //#13512 - $_.cws = $a($f($_.c + 5) * 44); //#13517 - $_.i = 0; //#13519 - $_.j = 0; //#13519 - $_.r = 1; //#13519 - $_.lastrow = false; //#13520 - for (;;) { //#13687 - if ($_.lastrow) { //#13522 - break; //#13522 - } //#13522 - if ($_.r > 44) { //#13526 - $k[$j++] = 'bwipp.codablockfTooBig#13525'; //#13525 - $k[$j++] = "Maximum length exceeded"; //#13525 - bwipp_raiseerror(); //#13525 - } //#13525 - $k[$j++] = $_.sta; //#13529 - $_.enca(); //#13529 - if ($_.i < $_.msglen) { //#13530 - $k[$j++] = $_.i; //#13530 - $_.numsscr(); //#13530 - } else { //#13530 - $k[$j++] = -1; //#13530 - $k[$j++] = -1; //#13530 - } //#13530 - $_.nums = $k[--$j]; //#13530 - $_.nchars = $k[--$j]; //#13530 - for (;;) { //#13550 - if ($_.msglen == 0) { //#13536 - $k[$j++] = $_.swb; //#13533 - $_.enca(); //#13533 - $_.cset = "setb"; //#13534 - break; //#13535 - } //#13535 - if ($_.nums >= 2) { //#13541 - $k[$j++] = $_.swc; //#13538 - $_.enca(); //#13538 - $_.cset = "setc"; //#13539 - break; //#13540 - } //#13540 - $k[$j++] = $_.i; //#13542 - $_.abeforeb(); //#13542 - if ($k[--$j]) { //#13546 - $k[$j++] = $_.sft; //#13543 - $_.enca(); //#13543 - $_.cset = "seta"; //#13544 - break; //#13545 - } //#13545 - $k[$j++] = $_.swb; //#13547 - $_.enca(); //#13547 - $_.cset = "setb"; //#13548 - break; //#13549 - } //#13549 - $_.j = $_.j + 1; //#13551 - $_.endofrow = false; //#13554 - for (;;) { //#13672 - $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13555 - if (($_.i == $_.msglen) || $_.endofrow) { //#13557 - break; //#13557 - } //#13557 - $k[$j++] = $_.i; //#13559 - $_.numsscr(); //#13559 - $_.nums = $k[--$j]; //#13559 - $_.nchars = $k[--$j]; //#13559 - $k[$j++] = 'remnums'; //#13560 - if ($_.nums > ($_.rem * 2)) { //#13560 - $k[$j++] = $_.rem * 2; //#13560 - } else { //#13560 - $k[$j++] = $_.nums; //#13560 - } //#13560 - var _5y = $k[--$j]; //#13560 - $_[$k[--$j]] = _5y; //#13560 - for (;;) { //#13670 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13598 - if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13580 - $k[$j++] = $_.swc; //#13568 - if ($eq($_.cset, "seta")) { //#13568 - $_.enca(); //#13568 - } else { //#13568 - $_.encb(); //#13568 - } //#13568 - $_.cset = "setc"; //#13569 - for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13578 - if ($get($_.msg, $_.i) == $_.fn1) { //#13576 - $k[$j++] = $_.fn1; //#13572 - $_.encc(); //#13572 - $_.i = $_.i + 1; //#13573 - } else { //#13576 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13575 - $_.encc(); //#13575 - $_.i = $_.i + 2; //#13576 - } //#13576 - } //#13576 - break; //#13579 - } //#13579 - if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13597 - $k[$j++] = $get($_.msg, $_.i); //#13583 - if ($eq($_.cset, "seta")) { //#13583 - $_.enca(); //#13583 - } else { //#13583 - $_.encb(); //#13583 - } //#13583 - $_.i = $_.i + 1; //#13584 - $k[$j++] = $_.swc; //#13585 - if ($eq($_.cset, "seta")) { //#13585 - $_.enca(); //#13585 - } else { //#13585 - $_.encb(); //#13585 - } //#13585 - $_.cset = "setc"; //#13586 - for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13595 - if ($get($_.msg, $_.i) == $_.fn1) { //#13593 - $k[$j++] = $_.fn1; //#13589 - $_.encc(); //#13589 - $_.i = $_.i + 1; //#13590 - } else { //#13593 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13592 - $_.encc(); //#13592 - $_.i = $_.i + 2; //#13593 - } //#13593 - } //#13593 - break; //#13596 - } //#13596 - } //#13596 - $k[$j++] = $eq($_.cset, "setb"); //#13599 - $k[$j++] = $get($_.msg, $_.i); //#13599 - $_.anotb(); //#13599 - var _6m = $k[--$j]; //#13599 - var _6n = $k[--$j]; //#13599 - if ((_6n && _6m) && ($_.rem >= 2)) { //#13614 - if ($_.i < ($_.msglen - 1)) { //#13608 - $k[$j++] = $_.i + 1; //#13602 - $_.bbeforea(); //#13602 - if ($k[--$j]) { //#13607 - $k[$j++] = $_.sft; //#13603 - $_.encb(); //#13603 - $k[$j++] = $get($_.msg, $_.i); //#13604 - $_.enca(); //#13604 - $_.i = $_.i + 1; //#13605 - break; //#13606 - } //#13606 - } //#13606 - $k[$j++] = $_.swa; //#13609 - $_.encb(); //#13609 - $_.cset = "seta"; //#13610 - $k[$j++] = $get($_.msg, $_.i); //#13611 - $_.enca(); //#13611 - $_.i = $_.i + 1; //#13612 - break; //#13613 - } //#13613 - $k[$j++] = $eq($_.cset, "seta"); //#13615 - $k[$j++] = $get($_.msg, $_.i); //#13615 - $_.bnota(); //#13615 - var _77 = $k[--$j]; //#13615 - var _78 = $k[--$j]; //#13615 - if ((_78 && _77) && ($_.rem >= 2)) { //#13630 - if ($_.i < ($_.msglen - 1)) { //#13624 - $k[$j++] = $_.i + 1; //#13618 - $_.abeforeb(); //#13618 - if ($k[--$j]) { //#13623 - $k[$j++] = $_.sft; //#13619 - $_.enca(); //#13619 - $k[$j++] = $get($_.msg, $_.i); //#13620 - $_.encb(); //#13620 - $_.i = $_.i + 1; //#13621 - break; //#13622 - } //#13622 - } //#13622 - $k[$j++] = $_.swb; //#13625 - $_.enca(); //#13625 - $_.cset = "setb"; //#13626 - $k[$j++] = $get($_.msg, $_.i); //#13627 - $_.encb(); //#13627 - $_.i = $_.i + 1; //#13628 - break; //#13629 - } //#13629 - if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13643 - $_.rem = $f($_.rem - 1); //#13633 - $k[$j++] = $_.i; //#13634 - $_.abeforeb(); //#13634 - if ($k[--$j]) { //#13641 - $k[$j++] = $_.swa; //#13635 - $_.encc(); //#13635 - $_.cset = "seta"; //#13636 - $_.encafitsrow(); //#13637 - if ($k[--$j]) { //#13637 - break; //#13637 - } //#13637 - } else { //#13641 - $k[$j++] = $_.swb; //#13639 - $_.encc(); //#13639 - $_.cset = "setb"; //#13640 - $_.encbfitsrow(); //#13641 - if ($k[--$j]) { //#13641 - break; //#13641 - } //#13641 - } //#13641 - } //#13641 - var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13646 - if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13649 - $_.encafitsrow(); //#13648 - if ($k[--$j]) { //#13648 - break; //#13648 - } //#13648 - } //#13648 - var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13650 - if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13653 - $_.encbfitsrow(); //#13652 - if ($k[--$j]) { //#13652 - break; //#13652 - } //#13652 - } //#13652 - if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13664 - if ($get($_.msg, $_.i) == $_.fn1) { //#13661 - $k[$j++] = $_.fn1; //#13657 - $_.encc(); //#13657 - $_.i = $_.i + 1; //#13658 - } else { //#13661 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13660 - $_.encc(); //#13660 - $_.i = $_.i + 2; //#13661 - } //#13661 - break; //#13663 - } //#13663 - $_.endofrow = true; //#13667 - break; //#13668 - } //#13668 - } //#13668 - if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13684 - $k[$j++] = $f($_.rem - 2); //#13676 - $_.padrow(); //#13676 - $_.j = $_.j + 3; //#13677 - $k[$j++] = $_.stp; //#13678 - $_.enca(); //#13678 - $_.lastrow = true; //#13679 - } else { //#13684 - $k[$j++] = $_.rem; //#13681 - $_.padrow(); //#13681 - $_.j = $_.j + 1; //#13682 - $k[$j++] = $_.stp; //#13683 - $_.enca(); //#13683 - $_.r = $_.r + 1; //#13684 - } //#13684 - } //#13684 - $_.cws = $geti($_.cws, 0, $_.j); //#13688 - if (!bwipp_codablockf.__13698__) { //#13698 - $_ = Object.create($_); //#13698 - $k[$j++] = Infinity; //#13695 - for (var _8I = 64; _8I <= 95; _8I += 1) { //#13693 - $k[$j++] = _8I; //#13693 - } //#13693 - for (var _8J = 0; _8J <= 15; _8J += 1) { //#13694 - $k[$j++] = _8J; //#13694 - } //#13694 - for (var _8K = 26; _8K <= 63; _8K += 1) { //#13695 - $k[$j++] = _8K; //#13695 - } //#13695 - $_.abmap = $a(); //#13695 - $k[$j++] = Infinity; //#13697 - for (var _8M = 0; _8M <= 85; _8M += 1) { //#13697 - $k[$j++] = _8M; //#13697 - } //#13697 - $_.cmap = $a(); //#13697 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13697 - bwipp_codablockf.__13698__ = 1; //#13697 - $_ = Object.getPrototypeOf($_); //#13697 - } //#13697 - $_.chkmsg = $a($_.kmsg.length); //#13701 - $_.j = 0; //#13702 - for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13708 - $_.i = _8T; //#13704 - $_.char = $get($_.kmsg, $_.i); //#13705 - if ($_.char >= 0) { //#13706 - $put($_.chkmsg, $_.j, $_.char); //#13706 - $_.j = $_.j + 1; //#13706 - } //#13706 - if (($_.char == $_.fn1) && ($_.i != 0)) { //#13707 - $put($_.chkmsg, $_.j, 29); //#13707 - $_.j = $_.j + 1; //#13707 - } //#13707 - } //#13707 - $_.t1 = 0; //#13709 - $_.t2 = 0; //#13709 - $_.k1 = 0; //#13709 - $_.k2 = 0; //#13709 - for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13716 - $_.i = _8k; //#13711 - $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13712 - $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13713 - $_.k1 = $f($_.k1 + $_.t2) % 86; //#13714 - $_.k2 = $f($_.k2 + $_.t1) % 86; //#13715 - } //#13715 - $k[$j++] = $_.cws; //#13717 - $k[$j++] = $_.cws.length - 4; //#13717 - if ($ne($_.cset, "setc")) { //#13717 - $k[$j++] = $_.abmap; //#13717 - } else { //#13717 - $k[$j++] = $_.cmap; //#13717 - } //#13717 - var _94 = $get($k[--$j], $_.k1); //#13717 - var _95 = $k[--$j]; //#13717 - $put($k[--$j], _95, _94); //#13717 - $k[$j++] = $_.cws; //#13718 - $k[$j++] = $_.cws.length - 3; //#13718 - if ($ne($_.cset, "setc")) { //#13718 - $k[$j++] = $_.abmap; //#13718 - } else { //#13718 - $k[$j++] = $_.cmap; //#13718 - } //#13718 - var _9E = $get($k[--$j], $_.k2); //#13718 - var _9F = $k[--$j]; //#13718 - $put($k[--$j], _9F, _9E); //#13718 - var _9H = $_.cws; //#13721 - $k[$j++] = _9H; //#13721 - $k[$j++] = 2; //#13721 - if ($get(_9H, 2 - 1) != 99) { //#13721 - $k[$j++] = $_.abmap; //#13721 - } else { //#13721 - $k[$j++] = $_.cmap; //#13721 - } //#13721 - var _9N = $get($k[--$j], $_.r - 2); //#13721 - var _9O = $k[--$j]; //#13721 - $put($k[--$j], _9O, _9N); //#13721 - for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13725 - $_.i = _9S; //#13723 - var _9T = $_.cws; //#13724 - var _9U = $_.i; //#13724 - var _9V = $_.c; //#13724 - $k[$j++] = _9T; //#13724 - $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13724 - if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13724 - $k[$j++] = $_.abmap; //#13724 - } else { //#13724 - $k[$j++] = $_.cmap; //#13724 - } //#13724 - var _9b = $get($k[--$j], $_.i + 42); //#13724 - var _9c = $k[--$j]; //#13724 - $put($k[--$j], _9c, _9b); //#13724 - } //#13724 - for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13736 - $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13729 - $_.csum = $get($_.rcws, 0); //#13730 - for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13734 - $_.i = _9p; //#13732 - $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13733 - } //#13733 - $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13735 - } //#13735 - var _9z = $get($_.options, 'debugcws') !== undefined; //#13738 - if (_9z) { //#13738 - $k[$j++] = 'bwipp.debugcws#13738'; //#13738 - $k[$j++] = $_.cws; //#13738 - bwipp_raiseerror(); //#13738 - } //#13738 - if (!bwipp_codablockf.__13759__) { //#13759 - $_ = Object.create($_); //#13759 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13758 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13758 - bwipp_codablockf.__13759__ = 1; //#13758 - $_ = Object.getPrototypeOf($_); //#13758 - } //#13758 - $_.rowbits = $a($_.r); //#13762 - for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13774 - $_.i = _A7; //#13764 - $k[$j++] = Infinity; //#13767 - var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13766 - for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13768 - $forall($get($_.encs, $get(_AC, _AD)), function() { //#13767 - var _AI = $k[--$j]; //#13767 - $k[$j++] = $f(_AI - 48); //#13767 - }); //#13767 - } //#13767 - $_.sbs = $a(); //#13767 - $k[$j++] = Infinity; //#13770 - var _AK = $_.sbs; //#13771 - $k[$j++] = 0; //#13771 - for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13771 - var _AO = $k[--$j]; //#13771 - var _AP = (_AO == 1) ? 0 : 1; //#13771 - $k[$j++] = _AO; //#13771 - for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13771 - $k[$j++] = _AP //#13771 - } //#13771 - } //#13771 - $astore($a($counttomark() - 1)); //#13772 - var _AU = $k[--$j]; //#13772 - var _AV = $k[--$j]; //#13772 - $k[$j++] = _AU; //#13772 - $k[$j++] = _AV; //#13772 - $j--; //#13772 - var _AW = $k[--$j]; //#13772 - var _AX = $k[--$j]; //#13772 - $k[$j++] = _AW; //#13772 - $k[$j++] = _AX; //#13772 - $j--; //#13772 - $put($_.rowbits, $_.i, $k[--$j]); //#13773 - } //#13773 - $_.symwid = $f(($_.c * 11) + 57); //#13777 - $k[$j++] = Infinity; //#13790 - for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13779 - $k[$j++] = 1; //#13779 - } //#13779 - for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13788 - $_.i = _Ai; //#13781 - for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13782 - $aload($get($_.rowbits, $_.i)); //#13782 - } //#13782 - for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13787 - $k[$j++] = 1; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13785 - $k[$j++] = 1; //#13785 - } //#13785 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - } //#13786 - } //#13786 - for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13789 - $aload($get($_.rowbits, $_.r - 1)); //#13789 - } //#13789 - for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13790 - $k[$j++] = 1; //#13790 - } //#13790 - $_.pixs = $a(); //#13790 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13719 + var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13711 + $k[$j++] = _5I; //#13715 + if (_5I) { //#13715 + $k[$j++] = $_.fn4; //#13712 + $_.encb(); //#13712 + $k[$j++] = $get($_.msg, $_.i + 1); //#13713 + $_.encb(); //#13713 + $_.i = $_.i + 2; //#13714 + } //#13714 + } else { //#13719 + $k[$j++] = $get($_.msg, $_.i); //#13717 + $_.encb(); //#13717 + $_.i = $_.i + 1; //#13718 + $k[$j++] = true; //#13719 + } //#13719 + }; //#13719 + $_.cws = $a($f($_.c + 5) * 44); //#13724 + $_.i = 0; //#13726 + $_.j = 0; //#13726 + $_.r = 1; //#13726 + $_.lastrow = false; //#13727 + for (;;) { //#13894 + if ($_.lastrow) { //#13729 + break; //#13729 + } //#13729 + if ($_.r > 44) { //#13733 + $k[$j++] = 'bwipp.codablockfTooBig#13732'; //#13732 + $k[$j++] = "Maximum length exceeded"; //#13732 + bwipp_raiseerror(); //#13732 + } //#13732 + $k[$j++] = $_.sta; //#13736 + $_.enca(); //#13736 + if ($_.i < $_.msglen) { //#13737 + $k[$j++] = $_.i; //#13737 + $_.numsscr(); //#13737 + } else { //#13737 + $k[$j++] = -1; //#13737 + $k[$j++] = -1; //#13737 + } //#13737 + $_.nums = $k[--$j]; //#13737 + $_.nchars = $k[--$j]; //#13737 + for (;;) { //#13757 + if ($_.msglen == 0) { //#13743 + $k[$j++] = $_.swb; //#13740 + $_.enca(); //#13740 + $_.cset = "setb"; //#13741 + break; //#13742 + } //#13742 + if ($_.nums >= 2) { //#13748 + $k[$j++] = $_.swc; //#13745 + $_.enca(); //#13745 + $_.cset = "setc"; //#13746 + break; //#13747 + } //#13747 + $k[$j++] = $_.i; //#13749 + $_.abeforeb(); //#13749 + if ($k[--$j]) { //#13753 + $k[$j++] = $_.sft; //#13750 + $_.enca(); //#13750 + $_.cset = "seta"; //#13751 + break; //#13752 + } //#13752 + $k[$j++] = $_.swb; //#13754 + $_.enca(); //#13754 + $_.cset = "setb"; //#13755 + break; //#13756 + } //#13756 + $_.j = $_.j + 1; //#13758 + $_.endofrow = false; //#13761 + for (;;) { //#13879 + $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13762 + if (($_.i == $_.msglen) || $_.endofrow) { //#13764 + break; //#13764 + } //#13764 + $k[$j++] = $_.i; //#13766 + $_.numsscr(); //#13766 + $_.nums = $k[--$j]; //#13766 + $_.nchars = $k[--$j]; //#13766 + $k[$j++] = 'remnums'; //#13767 + if ($_.nums > ($_.rem * 2)) { //#13767 + $k[$j++] = $_.rem * 2; //#13767 + } else { //#13767 + $k[$j++] = $_.nums; //#13767 + } //#13767 + var _5y = $k[--$j]; //#13767 + $_[$k[--$j]] = _5y; //#13767 + for (;;) { //#13877 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13805 + if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13787 + $k[$j++] = $_.swc; //#13775 + if ($eq($_.cset, "seta")) { //#13775 + $_.enca(); //#13775 + } else { //#13775 + $_.encb(); //#13775 + } //#13775 + $_.cset = "setc"; //#13776 + for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13785 + if ($get($_.msg, $_.i) == $_.fn1) { //#13783 + $k[$j++] = $_.fn1; //#13779 + $_.encc(); //#13779 + $_.i = $_.i + 1; //#13780 + } else { //#13783 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13782 + $_.encc(); //#13782 + $_.i = $_.i + 2; //#13783 + } //#13783 + } //#13783 + break; //#13786 + } //#13786 + if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13804 + $k[$j++] = $get($_.msg, $_.i); //#13790 + if ($eq($_.cset, "seta")) { //#13790 + $_.enca(); //#13790 + } else { //#13790 + $_.encb(); //#13790 + } //#13790 + $_.i = $_.i + 1; //#13791 + $k[$j++] = $_.swc; //#13792 + if ($eq($_.cset, "seta")) { //#13792 + $_.enca(); //#13792 + } else { //#13792 + $_.encb(); //#13792 + } //#13792 + $_.cset = "setc"; //#13793 + for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13802 + if ($get($_.msg, $_.i) == $_.fn1) { //#13800 + $k[$j++] = $_.fn1; //#13796 + $_.encc(); //#13796 + $_.i = $_.i + 1; //#13797 + } else { //#13800 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13799 + $_.encc(); //#13799 + $_.i = $_.i + 2; //#13800 + } //#13800 + } //#13800 + break; //#13803 + } //#13803 + } //#13803 + $k[$j++] = $eq($_.cset, "setb"); //#13806 + $k[$j++] = $get($_.msg, $_.i); //#13806 + $_.anotb(); //#13806 + var _6m = $k[--$j]; //#13806 + var _6n = $k[--$j]; //#13806 + if ((_6n && _6m) && ($_.rem >= 2)) { //#13821 + if ($_.i < ($_.msglen - 1)) { //#13815 + $k[$j++] = $_.i + 1; //#13809 + $_.bbeforea(); //#13809 + if ($k[--$j]) { //#13814 + $k[$j++] = $_.sft; //#13810 + $_.encb(); //#13810 + $k[$j++] = $get($_.msg, $_.i); //#13811 + $_.enca(); //#13811 + $_.i = $_.i + 1; //#13812 + break; //#13813 + } //#13813 + } //#13813 + $k[$j++] = $_.swa; //#13816 + $_.encb(); //#13816 + $_.cset = "seta"; //#13817 + $k[$j++] = $get($_.msg, $_.i); //#13818 + $_.enca(); //#13818 + $_.i = $_.i + 1; //#13819 + break; //#13820 + } //#13820 + $k[$j++] = $eq($_.cset, "seta"); //#13822 + $k[$j++] = $get($_.msg, $_.i); //#13822 + $_.bnota(); //#13822 + var _77 = $k[--$j]; //#13822 + var _78 = $k[--$j]; //#13822 + if ((_78 && _77) && ($_.rem >= 2)) { //#13837 + if ($_.i < ($_.msglen - 1)) { //#13831 + $k[$j++] = $_.i + 1; //#13825 + $_.abeforeb(); //#13825 + if ($k[--$j]) { //#13830 + $k[$j++] = $_.sft; //#13826 + $_.enca(); //#13826 + $k[$j++] = $get($_.msg, $_.i); //#13827 + $_.encb(); //#13827 + $_.i = $_.i + 1; //#13828 + break; //#13829 + } //#13829 + } //#13829 + $k[$j++] = $_.swb; //#13832 + $_.enca(); //#13832 + $_.cset = "setb"; //#13833 + $k[$j++] = $get($_.msg, $_.i); //#13834 + $_.encb(); //#13834 + $_.i = $_.i + 1; //#13835 + break; //#13836 + } //#13836 + if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13850 + $_.rem = $f($_.rem - 1); //#13840 + $k[$j++] = $_.i; //#13841 + $_.abeforeb(); //#13841 + if ($k[--$j]) { //#13848 + $k[$j++] = $_.swa; //#13842 + $_.encc(); //#13842 + $_.cset = "seta"; //#13843 + $_.encafitsrow(); //#13844 + if ($k[--$j]) { //#13844 + break; //#13844 + } //#13844 + } else { //#13848 + $k[$j++] = $_.swb; //#13846 + $_.encc(); //#13846 + $_.cset = "setb"; //#13847 + $_.encbfitsrow(); //#13848 + if ($k[--$j]) { //#13848 + break; //#13848 + } //#13848 + } //#13848 + } //#13848 + var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13853 + if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13856 + $_.encafitsrow(); //#13855 + if ($k[--$j]) { //#13855 + break; //#13855 + } //#13855 + } //#13855 + var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13857 + if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13860 + $_.encbfitsrow(); //#13859 + if ($k[--$j]) { //#13859 + break; //#13859 + } //#13859 + } //#13859 + if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13871 + if ($get($_.msg, $_.i) == $_.fn1) { //#13868 + $k[$j++] = $_.fn1; //#13864 + $_.encc(); //#13864 + $_.i = $_.i + 1; //#13865 + } else { //#13868 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13867 + $_.encc(); //#13867 + $_.i = $_.i + 2; //#13868 + } //#13868 + break; //#13870 + } //#13870 + $_.endofrow = true; //#13874 + break; //#13875 + } //#13875 + } //#13875 + if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13891 + $k[$j++] = $f($_.rem - 2); //#13883 + $_.padrow(); //#13883 + $_.j = $_.j + 3; //#13884 + $k[$j++] = $_.stp; //#13885 + $_.enca(); //#13885 + $_.lastrow = true; //#13886 + } else { //#13891 + $k[$j++] = $_.rem; //#13888 + $_.padrow(); //#13888 + $_.j = $_.j + 1; //#13889 + $k[$j++] = $_.stp; //#13890 + $_.enca(); //#13890 + $_.r = $_.r + 1; //#13891 + } //#13891 + } //#13891 + $_.cws = $geti($_.cws, 0, $_.j); //#13895 + if (!bwipp_codablockf.__13905__) { //#13905 + $_ = Object.create($_); //#13905 + $k[$j++] = Infinity; //#13899 + for (var _8I = 64; _8I <= 95; _8I += 1) { //#13900 + $k[$j++] = _8I; //#13900 + } //#13900 + for (var _8J = 0; _8J <= 15; _8J += 1) { //#13901 + $k[$j++] = _8J; //#13901 + } //#13901 + for (var _8K = 26; _8K <= 63; _8K += 1) { //#13902 + $k[$j++] = _8K; //#13902 + } //#13902 + $_.abmap = $a(); //#13902 + $k[$j++] = Infinity; //#13904 + for (var _8M = 0; _8M <= 85; _8M += 1) { //#13904 + $k[$j++] = _8M; //#13904 + } //#13904 + $_.cmap = $a(); //#13904 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13904 + bwipp_codablockf.__13905__ = 1; //#13904 + $_ = Object.getPrototypeOf($_); //#13904 + } //#13904 + $_.chkmsg = $a($_.kmsg.length); //#13908 + $_.j = 0; //#13909 + for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13915 + $_.i = _8T; //#13911 + $_.char = $get($_.kmsg, $_.i); //#13912 + if ($_.char >= 0) { //#13913 + $put($_.chkmsg, $_.j, $_.char); //#13913 + $_.j = $_.j + 1; //#13913 + } //#13913 + if (($_.char == $_.fn1) && ($_.i != 0)) { //#13914 + $put($_.chkmsg, $_.j, 29); //#13914 + $_.j = $_.j + 1; //#13914 + } //#13914 + } //#13914 + $_.t1 = 0; //#13916 + $_.t2 = 0; //#13916 + $_.k1 = 0; //#13916 + $_.k2 = 0; //#13916 + for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13923 + $_.i = _8k; //#13918 + $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13919 + $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13920 + $_.k1 = $f($_.k1 + $_.t2) % 86; //#13921 + $_.k2 = $f($_.k2 + $_.t1) % 86; //#13922 + } //#13922 + $k[$j++] = $_.cws; //#13924 + $k[$j++] = $_.cws.length - 4; //#13924 + if ($ne($_.cset, "setc")) { //#13924 + $k[$j++] = $_.abmap; //#13924 + } else { //#13924 + $k[$j++] = $_.cmap; //#13924 + } //#13924 + var _94 = $get($k[--$j], $_.k1); //#13924 + var _95 = $k[--$j]; //#13924 + $put($k[--$j], _95, _94); //#13924 + $k[$j++] = $_.cws; //#13925 + $k[$j++] = $_.cws.length - 3; //#13925 + if ($ne($_.cset, "setc")) { //#13925 + $k[$j++] = $_.abmap; //#13925 + } else { //#13925 + $k[$j++] = $_.cmap; //#13925 + } //#13925 + var _9E = $get($k[--$j], $_.k2); //#13925 + var _9F = $k[--$j]; //#13925 + $put($k[--$j], _9F, _9E); //#13925 + var _9H = $_.cws; //#13928 + $k[$j++] = _9H; //#13928 + $k[$j++] = 2; //#13928 + if ($get(_9H, 2 - 1) != 99) { //#13928 + $k[$j++] = $_.abmap; //#13928 + } else { //#13928 + $k[$j++] = $_.cmap; //#13928 + } //#13928 + var _9N = $get($k[--$j], $_.r - 2); //#13928 + var _9O = $k[--$j]; //#13928 + $put($k[--$j], _9O, _9N); //#13928 + for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13932 + $_.i = _9S; //#13930 + var _9T = $_.cws; //#13931 + var _9U = $_.i; //#13931 + var _9V = $_.c; //#13931 + $k[$j++] = _9T; //#13931 + $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13931 + if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13931 + $k[$j++] = $_.abmap; //#13931 + } else { //#13931 + $k[$j++] = $_.cmap; //#13931 + } //#13931 + var _9b = $get($k[--$j], $_.i + 42); //#13931 + var _9c = $k[--$j]; //#13931 + $put($k[--$j], _9c, _9b); //#13931 + } //#13931 + for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13943 + $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13936 + $_.csum = $get($_.rcws, 0); //#13937 + for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13941 + $_.i = _9p; //#13939 + $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13940 + } //#13940 + $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13942 + } //#13942 + var _9z = $get($_.options, 'debugcws') !== undefined; //#13945 + if (_9z) { //#13945 + $k[$j++] = 'bwipp.debugcws#13945'; //#13945 + $k[$j++] = $_.cws; //#13945 + bwipp_raiseerror(); //#13945 + } //#13945 + if (!bwipp_codablockf.__13966__) { //#13966 + $_ = Object.create($_); //#13966 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13965 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13965 + bwipp_codablockf.__13966__ = 1; //#13965 + $_ = Object.getPrototypeOf($_); //#13965 + } //#13965 + $_.rowbits = $a($_.r); //#13969 + for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13981 + $_.i = _A7; //#13971 + $k[$j++] = Infinity; //#13972 + var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13973 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13975 + $forall($get($_.encs, $get(_AC, _AD)), function() { //#13974 + var _AI = $k[--$j]; //#13974 + $k[$j++] = $f(_AI - 48); //#13974 + }); //#13974 + } //#13974 + $_.sbs = $a(); //#13974 + $k[$j++] = Infinity; //#13977 + var _AK = $_.sbs; //#13978 + $k[$j++] = 0; //#13978 + for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13978 + var _AO = $k[--$j]; //#13978 + var _AP = (_AO == 1) ? 0 : 1; //#13978 + $k[$j++] = _AO; //#13978 + for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13978 + $k[$j++] = _AP //#13978 + } //#13978 + } //#13978 + $astore($a($counttomark() - 1)); //#13979 + var _AU = $k[--$j]; //#13979 + var _AV = $k[--$j]; //#13979 + $k[$j++] = _AU; //#13979 + $k[$j++] = _AV; //#13979 + $j--; //#13979 + var _AW = $k[--$j]; //#13979 + var _AX = $k[--$j]; //#13979 + $k[$j++] = _AW; //#13979 + $k[$j++] = _AX; //#13979 + $j--; //#13979 + $put($_.rowbits, $_.i, $k[--$j]); //#13980 + } //#13980 + $_.symwid = $f(($_.c * 11) + 57); //#13984 + $k[$j++] = Infinity; //#13985 + for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13986 + $k[$j++] = 1; //#13986 + } //#13986 + for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13995 + $_.i = _Ai; //#13988 + for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13989 + $aload($get($_.rowbits, $_.i)); //#13989 + } //#13989 + for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13994 + $k[$j++] = 1; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13992 + $k[$j++] = 1; //#13992 + } //#13992 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + } //#13993 + } //#13993 + for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13996 + $aload($get($_.rowbits, $_.r - 1)); //#13996 + } //#13996 + for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13997 + $k[$j++] = 1; //#13997 + } //#13997 + $_.pixs = $a(); //#13997 var _BE = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -17496,152 +17819,151 @@ function bwipp_codablockf() { ["height", (~~($_.pixs.length / $_.symwid)) / 72], ["width", $_.symwid / 72], ["opt", $_.options] - ]); //#13801 - $k[$j++] = _BE; //#13804 - if (!$_.dontdraw) { //#13804 - bwipp_renmatrix(); //#13804 - } //#13804 - $_ = Object.getPrototypeOf($_); //#13806 - $_ = Object.getPrototypeOf($_); //#13808 -} - + ]); //#14008 + $k[$j++] = _BE; //#14011 + if (!$_.dontdraw) { //#14011 + bwipp_renmatrix(); //#14011 + } //#14011 + $_ = Object.getPrototypeOf($_); //#14013 + $_ = Object.getPrototypeOf($_); //#14015 +} //bwipp_codablockf function bwipp_code16k() { - $_ = Object.create($_); //#13839 - $_.dontdraw = false; //#13842 - $_.sam = -1; //#13843 - $_.rows = 0; //#13844 - $_.rowheight = 8; //#13845 - $_.sepheight = 1; //#13846 - $_.raw = false; //#13847 - $_.parse = false; //#13848 - $_.parsefnc = false; //#13849 - $k[$j++] = $_; //#13851 - bwipp_processoptions(); //#13851 - $_.options = $k[--$j]; //#13851 - $_.barcode = $k[--$j]; //#13852 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#13856 - $k[$j++] = 'bwipp.code16kBadRows#13855'; //#13855 - $k[$j++] = "Code 16K must have 2 to 16 rows"; //#13855 - bwipp_raiseerror(); //#13855 - } //#13855 - if ($_.rowheight < 8) { //#13860 - $k[$j++] = 'bwipp.code16kBadRowHeight#13859'; //#13859 - $k[$j++] = "Code 16K must have rowheight of at least 8"; //#13859 - bwipp_raiseerror(); //#13859 - } //#13859 - if ($_.sepheight < 1) { //#13864 - $k[$j++] = 'bwipp.code16kBadSepHeight#13863'; //#13863 - $k[$j++] = "Code 16K must have sepheight of at least 1"; //#13863 - bwipp_raiseerror(); //#13863 - } //#13863 - if ($_.sam != -1) { //#13876 - $k[$j++] = true; //#13872 - for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#13872 - var _A = $_.sam; //#13869 - if ((_A < 12) || (_A > 99)) { //#13869 - $j--; //#13869 - $k[$j++] = false; //#13869 - break; //#13869 - } //#13869 - if (($_.sam % 10) < 2) { //#13870 - $j--; //#13870 - $k[$j++] = false; //#13870 - break; //#13870 - } //#13870 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#13871 - $j--; //#13871 - $k[$j++] = false; //#13871 - break; //#13871 - } //#13871 - } //#13871 - if ($nt($k[--$j])) { //#13875 - $k[$j++] = 'bwipp.code16kBadSAM#13874'; //#13874 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#13874 - bwipp_raiseerror(); //#13874 - } //#13874 - } //#13874 - bwipp_loadctx(bwipp_code16k) //#13878 - if ($_.sam != -1) { //#13880 - $_.rows = 16; //#13880 - } //#13880 - if (!bwipp_code16k.__13945__) { //#13945 - $_ = Object.create($_); //#13945 - $_.swa = -1; //#13884 - $_.swb = -2; //#13884 - $_.swc = -3; //#13884 - $_.sa1 = -4; //#13885 - $_.sb1 = -5; //#13885 - $_.sc1 = -6; //#13885 - $_.sa2 = -7; //#13886 - $_.sb2 = -8; //#13886 - $_.sc2 = -9; //#13886 - $_.pad = -10; //#13887 - $_.sb3 = -11; //#13887 - $_.sc3 = -12; //#13887 - $_.fn1 = -13; //#13888 - $_.fn2 = -14; //#13888 - $_.fn3 = -15; //#13888 - $_.fn4 = -16; //#13888 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#13929 - $_.charvals = $a([new Map, new Map, new Map]); //#13932 - for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#13941 - $_.i = _2W; //#13934 - $_.encs = $get($_.charmaps, $_.i); //#13935 - for (var _2a = 0; _2a <= 2; _2a += 1) { //#13940 - $_.j = _2a; //#13937 - var _2d = $get($_.encs, $_.j); //#13938 - $k[$j++] = _2d; //#13938 - if ($eq($type(_2d), 'stringtype')) { //#13938 - var _2g = $get($k[--$j], 0); //#13938 - $k[$j++] = _2g; //#13938 - } //#13938 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13939 - } //#13939 - } //#13939 - $_.seta = $get($_.charvals, 0); //#13942 - $_.setb = $get($_.charvals, 1); //#13943 - $_.setc = $get($_.charvals, 2); //#13944 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#13944 - bwipp_code16k.__13945__ = 1; //#13944 - $_ = Object.getPrototypeOf($_); //#13944 - } //#13944 - if ($_.raw) { //#14415 - $_.cws = $a($_.barcode.length); //#13949 - $_.i = 0; //#13950 - $_.j = 0; //#13950 - for (;;) { //#13961 - if ($_.i >= ($_.barcode.length - 3)) { //#13952 - break; //#13952 - } //#13952 - if ($get($_.barcode, $_.i) != 94) { //#13953 - break; //#13953 - } //#13953 - var _33 = $geti($_.barcode, $_.i + 1, 3); //#13954 - $k[$j++] = _33; //#13956 - $k[$j++] = false; //#13956 - for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#13956 - var _36 = $get(_33, _34); //#13956 - if ((_36 < 48) || (_36 > 57)) { //#13955 - $j--; //#13955 - $k[$j++] = true; //#13955 - } //#13955 - } //#13955 - if ($k[--$j]) { //#13956 - $j--; //#13956 - break; //#13956 - } //#13956 - $_.cw = $cvi($k[--$j]); //#13957 - $put($_.cws, $_.j, $_.cw); //#13958 - $_.i = $_.i + 4; //#13959 - $_.j = $_.j + 1; //#13960 - } //#13960 - if ($_.i != $_.barcode.length) { //#13964 - $k[$j++] = 'bwipp.code16kBadRawFormat#13963'; //#13963 - $k[$j++] = "raw data must be formatted as ^NNN"; //#13963 - bwipp_raiseerror(); //#13963 - } //#13963 - $_.cws = $geti($_.cws, 0, $_.j); //#13965 - } else { //#14415 + $_ = Object.create($_); //#14046 + $_.dontdraw = false; //#14049 + $_.sam = -1; //#14050 + $_.rows = 0; //#14051 + $_.rowheight = 8; //#14052 + $_.sepheight = 1; //#14053 + $_.raw = false; //#14054 + $_.parse = false; //#14055 + $_.parsefnc = false; //#14056 + $k[$j++] = $_; //#14058 + bwipp_processoptions(); //#14058 + $_.options = $k[--$j]; //#14058 + $_.barcode = $k[--$j]; //#14059 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#14063 + $k[$j++] = 'bwipp.code16kBadRows#14062'; //#14062 + $k[$j++] = "Code 16K must have 2 to 16 rows"; //#14062 + bwipp_raiseerror(); //#14062 + } //#14062 + if ($_.rowheight < 8) { //#14067 + $k[$j++] = 'bwipp.code16kBadRowHeight#14066'; //#14066 + $k[$j++] = "Code 16K must have rowheight of at least 8"; //#14066 + bwipp_raiseerror(); //#14066 + } //#14066 + if ($_.sepheight < 1) { //#14071 + $k[$j++] = 'bwipp.code16kBadSepHeight#14070'; //#14070 + $k[$j++] = "Code 16K must have sepheight of at least 1"; //#14070 + bwipp_raiseerror(); //#14070 + } //#14070 + if ($_.sam != -1) { //#14083 + $k[$j++] = true; //#14079 + for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#14079 + var _A = $_.sam; //#14076 + if ((_A < 12) || (_A > 99)) { //#14076 + $j--; //#14076 + $k[$j++] = false; //#14076 + break; //#14076 + } //#14076 + if (($_.sam % 10) < 2) { //#14077 + $j--; //#14077 + $k[$j++] = false; //#14077 + break; //#14077 + } //#14077 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14078 + $j--; //#14078 + $k[$j++] = false; //#14078 + break; //#14078 + } //#14078 + } //#14078 + if ($nt($k[--$j])) { //#14082 + $k[$j++] = 'bwipp.code16kBadSAM#14081'; //#14081 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14081 + bwipp_raiseerror(); //#14081 + } //#14081 + } //#14081 + bwipp_loadctx(bwipp_code16k) //#14085 + if ($_.sam != -1) { //#14087 + $_.rows = 16; //#14087 + } //#14087 + if (!bwipp_code16k.__14152__) { //#14152 + $_ = Object.create($_); //#14152 + $_.swa = -1; //#14091 + $_.swb = -2; //#14091 + $_.swc = -3; //#14091 + $_.sa1 = -4; //#14092 + $_.sb1 = -5; //#14092 + $_.sc1 = -6; //#14092 + $_.sa2 = -7; //#14093 + $_.sb2 = -8; //#14093 + $_.sc2 = -9; //#14093 + $_.pad = -10; //#14094 + $_.sb3 = -11; //#14094 + $_.sc3 = -12; //#14094 + $_.fn1 = -13; //#14095 + $_.fn2 = -14; //#14095 + $_.fn3 = -15; //#14095 + $_.fn4 = -16; //#14095 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#14136 + $_.charvals = $a([new Map, new Map, new Map]); //#14139 + for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#14148 + $_.i = _2W; //#14141 + $_.encs = $get($_.charmaps, $_.i); //#14142 + for (var _2a = 0; _2a <= 2; _2a += 1) { //#14147 + $_.j = _2a; //#14144 + var _2d = $get($_.encs, $_.j); //#14145 + $k[$j++] = _2d; //#14145 + if ($eq($type(_2d), 'stringtype')) { //#14145 + var _2g = $get($k[--$j], 0); //#14145 + $k[$j++] = _2g; //#14145 + } //#14145 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#14146 + } //#14146 + } //#14146 + $_.seta = $get($_.charvals, 0); //#14149 + $_.setb = $get($_.charvals, 1); //#14150 + $_.setc = $get($_.charvals, 2); //#14151 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14151 + bwipp_code16k.__14152__ = 1; //#14151 + $_ = Object.getPrototypeOf($_); //#14151 + } //#14151 + if ($_.raw) { //#14622 + $_.cws = $a($_.barcode.length); //#14156 + $_.i = 0; //#14157 + $_.j = 0; //#14157 + for (;;) { //#14168 + if ($_.i >= ($_.barcode.length - 3)) { //#14159 + break; //#14159 + } //#14159 + if ($get($_.barcode, $_.i) != 94) { //#14160 + break; //#14160 + } //#14160 + var _33 = $geti($_.barcode, $_.i + 1, 3); //#14161 + $k[$j++] = _33; //#14163 + $k[$j++] = false; //#14163 + for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#14163 + var _36 = $get(_33, _34); //#14163 + if ((_36 < 48) || (_36 > 57)) { //#14162 + $j--; //#14162 + $k[$j++] = true; //#14162 + } //#14162 + } //#14162 + if ($k[--$j]) { //#14163 + $j--; //#14163 + break; //#14163 + } //#14163 + $_.cw = $cvi($k[--$j]); //#14164 + $put($_.cws, $_.j, $_.cw); //#14165 + $_.i = $_.i + 4; //#14166 + $_.j = $_.j + 1; //#14167 + } //#14167 + if ($_.i != $_.barcode.length) { //#14171 + $k[$j++] = 'bwipp.code16kBadRawFormat#14170'; //#14170 + $k[$j++] = "raw data must be formatted as ^NNN"; //#14170 + bwipp_raiseerror(); //#14170 + } //#14170 + $_.cws = $geti($_.cws, 0, $_.j); //#14172 + } else { //#14622 var _3O = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -17649,826 +17971,826 @@ function bwipp_code16k() { ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13976 - $_.fncvals = _3O; //#13978 - $k[$j++] = 'msg'; //#13979 - $k[$j++] = $_.barcode; //#13979 - $k[$j++] = $_.fncvals; //#13979 - bwipp_parseinput(); //#13979 - var _3R = $k[--$j]; //#13979 - $_[$k[--$j]] = _3R; //#13979 - $_.msglen = $_.msg.length; //#13980 - $k[$j++] = Infinity; //#13983 - for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#13983 - $k[$j++] = 0; //#13983 - } //#13983 - $k[$j++] = 0; //#13983 - $_.numSA = $a(); //#13983 - $k[$j++] = Infinity; //#13984 - for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#13984 - $k[$j++] = 0; //#13984 - } //#13984 - $k[$j++] = 0; //#13984 - $_.numEA = $a(); //#13984 - for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#13994 - $_.i = _3d; //#13986 - if ($get($_.msg, $_.i) >= 0) { //#13993 - if ($get($_.msg, $_.i) >= 128) { //#13991 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13989 - } else { //#13991 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13991 - } //#13991 - } //#13991 - } //#13991 - $_.ea = false; //#13997 - $_.msgtmp = $a([]); //#13997 - for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14012 - $_.i = _3x; //#13999 - $_.c = $get($_.msg, $_.i); //#14000 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14010 - if ($_.ea) { //#14002 - $k[$j++] = $_.numSA; //#14002 - } else { //#14002 - $k[$j++] = $_.numEA; //#14002 - } //#14002 - var _49 = $get($k[--$j], $_.i); //#14002 - var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14003 - if (_49 < _4C) { //#14008 - $k[$j++] = Infinity; //#14005 - $aload($_.msgtmp); //#14005 - $k[$j++] = $_.fn4; //#14005 - $_.msgtmp = $a(); //#14005 - } else { //#14008 - $k[$j++] = Infinity; //#14007 - $aload($_.msgtmp); //#14007 - $k[$j++] = $_.fn4; //#14007 - $k[$j++] = $_.fn4; //#14007 - $_.msgtmp = $a(); //#14007 - $_.ea = !$_.ea; //#14008 - } //#14008 - } //#14008 - $k[$j++] = Infinity; //#14011 - $aload($_.msgtmp); //#14011 - if ($_.c >= 0) { //#14011 - $k[$j++] = $_.c & 127; //#14011 - } else { //#14011 - $k[$j++] = $_.c; //#14011 - } //#14011 - $_.msgtmp = $a(); //#14011 - } //#14011 - $_.msg = $_.msgtmp; //#14013 - $_.msglen = $_.msg.length; //#14014 + ]); //#14183 + $_.fncvals = _3O; //#14185 + $k[$j++] = 'msg'; //#14186 + $k[$j++] = $_.barcode; //#14186 + $k[$j++] = $_.fncvals; //#14186 + bwipp_parseinput(); //#14186 + var _3R = $k[--$j]; //#14186 + $_[$k[--$j]] = _3R; //#14186 + $_.msglen = $_.msg.length; //#14187 + $k[$j++] = Infinity; //#14190 + for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#14190 + $k[$j++] = 0; //#14190 + } //#14190 + $k[$j++] = 0; //#14190 + $_.numSA = $a(); //#14190 + $k[$j++] = Infinity; //#14191 + for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#14191 + $k[$j++] = 0; //#14191 + } //#14191 + $k[$j++] = 0; //#14191 + $_.numEA = $a(); //#14191 + for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#14201 + $_.i = _3d; //#14193 + if ($get($_.msg, $_.i) >= 0) { //#14200 + if ($get($_.msg, $_.i) >= 128) { //#14198 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#14196 + } else { //#14198 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#14198 + } //#14198 + } //#14198 + } //#14198 + $_.ea = false; //#14204 + $_.msgtmp = $a([]); //#14204 + for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14219 + $_.i = _3x; //#14206 + $_.c = $get($_.msg, $_.i); //#14207 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14217 + if ($_.ea) { //#14209 + $k[$j++] = $_.numSA; //#14209 + } else { //#14209 + $k[$j++] = $_.numEA; //#14209 + } //#14209 + var _49 = $get($k[--$j], $_.i); //#14209 + var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14210 + if (_49 < _4C) { //#14215 + $k[$j++] = Infinity; //#14212 + $aload($_.msgtmp); //#14212 + $k[$j++] = $_.fn4; //#14212 + $_.msgtmp = $a(); //#14212 + } else { //#14215 + $k[$j++] = Infinity; //#14214 + $aload($_.msgtmp); //#14214 + $k[$j++] = $_.fn4; //#14214 + $k[$j++] = $_.fn4; //#14214 + $_.msgtmp = $a(); //#14214 + $_.ea = !$_.ea; //#14215 + } //#14215 + } //#14215 + $k[$j++] = Infinity; //#14218 + $aload($_.msgtmp); //#14218 + if ($_.c >= 0) { //#14218 + $k[$j++] = $_.c & 127; //#14218 + } else { //#14218 + $k[$j++] = $_.c; //#14218 + } //#14218 + $_.msgtmp = $a(); //#14218 + } //#14218 + $_.msg = $_.msgtmp; //#14220 + $_.msglen = $_.msg.length; //#14221 $_.numsscr = function() { - $_.n = 0; //#14018 - $_.s = 0; //#14018 - $_.p = $k[--$j]; //#14019 - for (;;) { //#14030 - if ($_.p >= $_.msglen) { //#14020 - break; //#14020 - } //#14020 - var _4X = $get($_.msg, $_.p); //#14021 - var _4Z = $get($_.setc, _4X) !== undefined; //#14022 - $k[$j++] = _4X; //#14022 - if (!_4Z) { //#14022 - $j--; //#14022 - break; //#14022 - } //#14022 - if ($k[--$j] == $_.fn1) { //#14026 - if (($_.s % 2) == 0) { //#14025 - $_.s = $_.s + 1; //#14025 - } else { //#14025 - break; //#14025 - } //#14025 - } //#14025 - $_.n = $_.n + 1; //#14027 - $_.s = $_.s + 1; //#14028 - $_.p = $f($_.p + 1); //#14029 - } //#14029 - $k[$j++] = $_.n; //#14031 - $k[$j++] = $_.s; //#14031 - }; //#14031 + $_.n = 0; //#14225 + $_.s = 0; //#14225 + $_.p = $k[--$j]; //#14226 + for (;;) { //#14237 + if ($_.p >= $_.msglen) { //#14227 + break; //#14227 + } //#14227 + var _4X = $get($_.msg, $_.p); //#14228 + var _4Z = $get($_.setc, _4X) !== undefined; //#14229 + $k[$j++] = _4X; //#14229 + if (!_4Z) { //#14229 + $j--; //#14229 + break; //#14229 + } //#14229 + if ($k[--$j] == $_.fn1) { //#14233 + if (($_.s % 2) == 0) { //#14232 + $_.s = $_.s + 1; //#14232 + } else { //#14232 + break; //#14232 + } //#14232 + } //#14232 + $_.n = $_.n + 1; //#14234 + $_.s = $_.s + 1; //#14235 + $_.p = $f($_.p + 1); //#14236 + } //#14236 + $k[$j++] = $_.n; //#14238 + $k[$j++] = $_.s; //#14238 + }; //#14238 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14036 - $_.j = $_.j + 1; //#14037 - }; //#14037 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14243 + $_.j = $_.j + 1; //#14244 + }; //#14244 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14040 - $_.j = $_.j + 1; //#14041 - }; //#14041 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14247 + $_.j = $_.j + 1; //#14248 + }; //#14248 $_.encc = function() { - var _4v = $k[--$j]; //#14044 - $k[$j++] = _4v; //#14048 - if ($ne($type(_4v), 'arraytype')) { //#14047 - var _4z = $get($_.setc, $k[--$j]); //#14045 - $k[$j++] = _4z; //#14045 - } else { //#14047 - $aload($k[--$j]); //#14047 - var _51 = $k[--$j]; //#14047 - var _52 = $k[--$j]; //#14047 - $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14047 - } //#14047 - $put($_.cws, $_.j, $k[--$j]); //#14049 - $_.j = $_.j + 1; //#14050 - }; //#14050 + var _4v = $k[--$j]; //#14251 + $k[$j++] = _4v; //#14255 + if ($ne($type(_4v), 'arraytype')) { //#14254 + var _4z = $get($_.setc, $k[--$j]); //#14252 + $k[$j++] = _4z; //#14252 + } else { //#14254 + $aload($k[--$j]); //#14254 + var _51 = $k[--$j]; //#14254 + var _52 = $k[--$j]; //#14254 + $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14254 + } //#14254 + $put($_.cws, $_.j, $k[--$j]); //#14256 + $_.j = $_.j + 1; //#14257 + }; //#14257 $_.anotb = function() { - var _57 = $k[--$j]; //#14054 - var _59 = $get($_.seta, _57) !== undefined; //#14054 - var _5B = $get($_.setb, _57) !== undefined; //#14054 - $k[$j++] = _59 && (!_5B); //#14054 - }; //#14054 + var _57 = $k[--$j]; //#14261 + var _59 = $get($_.seta, _57) !== undefined; //#14261 + var _5B = $get($_.setb, _57) !== undefined; //#14261 + $k[$j++] = _59 && (!_5B); //#14261 + }; //#14261 $_.bnota = function() { - var _5C = $k[--$j]; //#14055 - var _5E = $get($_.setb, _5C) !== undefined; //#14055 - var _5G = $get($_.seta, _5C) !== undefined; //#14055 - $k[$j++] = _5E && (!_5G); //#14055 - }; //#14055 - $k[$j++] = Infinity; //#14058 - for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14058 - $k[$j++] = 0; //#14058 - } //#14058 - $k[$j++] = 9999; //#14058 - $_.nextanotb = $a(); //#14058 - $k[$j++] = Infinity; //#14059 - for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14059 - $k[$j++] = 0; //#14059 - } //#14059 - $k[$j++] = 9999; //#14059 - $_.nextbnota = $a(); //#14059 - for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14072 - $_.i = _5Q; //#14061 - $k[$j++] = $get($_.msg, $_.i); //#14062 - $_.anotb(); //#14062 - if ($k[--$j]) { //#14065 - $put($_.nextanotb, $_.i, 0); //#14063 - } else { //#14065 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14065 - } //#14065 - $k[$j++] = $get($_.msg, $_.i); //#14067 - $_.bnota(); //#14067 - if ($k[--$j]) { //#14070 - $put($_.nextbnota, $_.i, 0); //#14068 - } else { //#14070 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14070 - } //#14070 - } //#14070 + var _5C = $k[--$j]; //#14262 + var _5E = $get($_.setb, _5C) !== undefined; //#14262 + var _5G = $get($_.seta, _5C) !== undefined; //#14262 + $k[$j++] = _5E && (!_5G); //#14262 + }; //#14262 + $k[$j++] = Infinity; //#14265 + for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14265 + $k[$j++] = 0; //#14265 + } //#14265 + $k[$j++] = 9999; //#14265 + $_.nextanotb = $a(); //#14265 + $k[$j++] = Infinity; //#14266 + for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14266 + $k[$j++] = 0; //#14266 + } //#14266 + $k[$j++] = 9999; //#14266 + $_.nextbnota = $a(); //#14266 + for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14279 + $_.i = _5Q; //#14268 + $k[$j++] = $get($_.msg, $_.i); //#14269 + $_.anotb(); //#14269 + if ($k[--$j]) { //#14272 + $put($_.nextanotb, $_.i, 0); //#14270 + } else { //#14272 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14272 + } //#14272 + $k[$j++] = $get($_.msg, $_.i); //#14274 + $_.bnota(); //#14274 + if ($k[--$j]) { //#14277 + $put($_.nextbnota, $_.i, 0); //#14275 + } else { //#14277 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14277 + } //#14277 + } //#14277 $_.abeforeb = function() { - var _5n = $k[--$j]; //#14075 - $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14075 - }; //#14075 + var _5n = $k[--$j]; //#14282 + $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14282 + }; //#14282 $_.bbeforea = function() { - var _5s = $k[--$j]; //#14076 - $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14076 - }; //#14076 - $_.cws = $a(($_.barcode.length * 2) + 3); //#14078 - $_.i = 0; //#14081 - $_.j = 0; //#14081 - for (;;) { //#14171 - if ($_.sam != -1) { //#14092 - $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14086 - $put($_.cws, 1, ($_.sam % 10) - 1); //#14087 - $_.j = 2; //#14088 - $_.cset = "setb"; //#14089 - $_.mode = 7; //#14090 - break; //#14091 - } //#14091 - if ($_.msglen == 0) { //#14098 - $_.cset = "setb"; //#14095 - $_.mode = 1; //#14096 - break; //#14097 - } //#14097 - if ($_.msglen >= 2) { //#14107 - $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14101 - $k[$j++] = 1; //#14101 - $_.numsscr(); //#14101 - var _69 = $k[--$j]; //#14101 - var _6A = $k[--$j]; //#14101 - $k[$j++] = _69; //#14101 - $k[$j++] = _6A; //#14101 - $j--; //#14101 - var _6B = $k[--$j]; //#14101 - var _6C = $k[--$j]; //#14101 - if (_6C && (_6B >= 2)) { //#14106 - $_.cset = "setc"; //#14102 - $_.mode = 4; //#14103 - $_.i = 1; //#14104 - break; //#14105 - } //#14105 - } //#14105 - if ($get($_.msg, 0) == $_.fn1) { //#14114 - $_.cset = "setb"; //#14110 - $_.mode = 3; //#14111 - $_.i = 1; //#14112 - break; //#14113 - } //#14113 - if ($_.msglen >= 2) { //#14160 - $k[$j++] = 0; //#14117 - $_.numsscr(); //#14117 - var _6H = $k[--$j]; //#14117 - var _6I = $k[--$j]; //#14117 - $k[$j++] = _6H; //#14117 - $k[$j++] = _6I; //#14117 - $j--; //#14117 - var _6J = $k[--$j]; //#14117 - if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14121 - $_.cset = "setc"; //#14118 - $_.mode = 2; //#14119 - break; //#14120 - } //#14120 - $k[$j++] = 0; //#14123 - $_.numsscr(); //#14123 - var _6K = $k[--$j]; //#14123 - var _6L = $k[--$j]; //#14123 - $k[$j++] = _6K; //#14123 - $k[$j++] = _6L; //#14123 - $j--; //#14123 - var _6M = $k[--$j]; //#14123 - if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14129 - $k[$j++] = $get($_.msg, 0); //#14124 - $_.encb(); //#14124 - $_.cset = "setc"; //#14125 - $_.mode = 5; //#14126 - $_.i = 1; //#14127 - break; //#14128 - } //#14128 - var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14131 - $k[$j++] = _6S; //#14132 - $k[$j++] = 1; //#14132 - $_.numsscr(); //#14132 - var _6T = $k[--$j]; //#14132 - var _6U = $k[--$j]; //#14132 - $k[$j++] = _6T; //#14132 - $k[$j++] = _6U; //#14132 - $j--; //#14132 - var _6V = $k[--$j]; //#14132 - var _6W = $k[--$j]; //#14132 - if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14138 - $k[$j++] = $get($_.msg, 0); //#14133 - $_.encb(); //#14133 - $_.cset = "setc"; //#14134 - $_.mode = 5; //#14135 - $_.i = 1; //#14136 - break; //#14137 - } //#14137 - var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14140 - $k[$j++] = _6c; //#14141 - $k[$j++] = 1; //#14141 - $_.numsscr(); //#14141 - var _6d = $k[--$j]; //#14141 - var _6e = $k[--$j]; //#14141 - $k[$j++] = _6d; //#14141 - $k[$j++] = _6e; //#14141 - $j--; //#14141 - var _6f = $k[--$j]; //#14141 - var _6g = $k[--$j]; //#14141 - if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14148 - $k[$j++] = $get($_.msg, 0); //#14142 - $_.encb(); //#14142 - $k[$j++] = $get($_.msg, 1); //#14143 - $_.encb(); //#14143 - $_.cset = "setc"; //#14144 - $_.mode = 6; //#14145 - $_.i = 2; //#14146 - break; //#14147 - } //#14147 - var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14150 - var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14151 - $k[$j++] = _6o && _6s; //#14152 - $k[$j++] = 2; //#14152 - $_.numsscr(); //#14152 - var _6t = $k[--$j]; //#14152 - var _6u = $k[--$j]; //#14152 - $k[$j++] = _6t; //#14152 - $k[$j++] = _6u; //#14152 - $j--; //#14152 - var _6v = $k[--$j]; //#14152 - var _6w = $k[--$j]; //#14152 - if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14159 - $k[$j++] = $get($_.msg, 0); //#14153 - $_.encb(); //#14153 - $k[$j++] = $get($_.msg, 1); //#14154 - $_.encb(); //#14154 - $_.cset = "setc"; //#14155 - $_.mode = 6; //#14156 - $_.i = 2; //#14157 - break; //#14158 - } //#14158 - } //#14158 - $k[$j++] = 0; //#14162 - $_.abeforeb(); //#14162 - if ($k[--$j]) { //#14166 - $_.cset = "seta"; //#14163 - $_.mode = 0; //#14164 - break; //#14165 - } //#14165 - $_.cset = "setb"; //#14168 - $_.mode = 1; //#14169 - break; //#14170 - } //#14170 - for (;;) { //#14414 - if ($_.i == $_.msglen) { //#14174 - break; //#14174 - } //#14174 - $k[$j++] = $_.i; //#14176 - $_.numsscr(); //#14176 - $_.nums = $k[--$j]; //#14176 - $_.nchars = $k[--$j]; //#14176 - for (;;) { //#14412 - if ($eq($_.cset, "seta")) { //#14253 - if ($_.i < ($_.msglen - 1)) { //#14190 - $k[$j++] = $get($_.msg, $_.i); //#14183 - $_.bnota(); //#14183 - $k[$j++] = $_.i + 1; //#14184 - $_.abeforeb(); //#14184 - var _7E = $k[--$j]; //#14184 - var _7F = $k[--$j]; //#14184 - if ((_7F && _7E)) { //#14189 - $k[$j++] = $_.sb1; //#14185 - $_.enca(); //#14185 - $k[$j++] = $get($_.msg, $_.i); //#14186 - $_.encb(); //#14186 - $_.i = $_.i + 1; //#14187 - break; //#14188 - } //#14188 - } //#14188 - if ($_.i < ($_.msglen - 2)) { //#14202 - $k[$j++] = $get($_.msg, $_.i); //#14193 - $_.bnota(); //#14193 - $k[$j++] = $get($_.msg, $_.i + 1); //#14194 - $_.bnota(); //#14194 - var _7T = $k[--$j]; //#14194 - var _7U = $k[--$j]; //#14194 - $k[$j++] = $an(_7U, _7T); //#14195 - $k[$j++] = $_.i + 2; //#14195 - $_.abeforeb(); //#14195 - var _7W = $k[--$j]; //#14195 - var _7X = $k[--$j]; //#14195 - if ((_7X && _7W)) { //#14201 - $k[$j++] = $_.sb2; //#14196 - $_.enca(); //#14196 - $k[$j++] = $get($_.msg, $_.i); //#14197 - $_.encb(); //#14197 - $k[$j++] = $get($_.msg, $_.i + 1); //#14198 - $_.encb(); //#14198 - $_.i = $_.i + 2; //#14199 - break; //#14200 - } //#14200 - } //#14200 - $k[$j++] = $get($_.msg, $_.i); //#14204 - $_.bnota(); //#14204 - if ($k[--$j]) { //#14208 - $k[$j++] = $_.swb; //#14205 - $_.enca(); //#14205 - $_.cset = "setb"; //#14206 - break; //#14207 - } //#14207 - if ($_.i < ($_.msglen - 4)) { //#14225 - var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14212 - if (($_.nums == 4) && _7s) { //#14224 - $k[$j++] = $_.sc2; //#14213 - $_.enca(); //#14213 - for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14222 - if ($get($_.msg, $_.i) == $_.fn1) { //#14220 - $k[$j++] = $_.fn1; //#14216 - $_.encc(); //#14216 - $_.i = $_.i + 1; //#14217 - } else { //#14220 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14219 - $_.encc(); //#14219 - $_.i = $_.i + 2; //#14220 - } //#14220 - } //#14220 - break; //#14223 - } //#14223 - } //#14223 - if ($_.i < ($_.msglen - 6)) { //#14242 - var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14229 - if (($_.nums == 6) && _8D) { //#14241 - $k[$j++] = $_.sc3; //#14230 - $_.enca(); //#14230 - for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14239 - if ($get($_.msg, $_.i) == $_.fn1) { //#14237 - $k[$j++] = $_.fn1; //#14233 - $_.encc(); //#14233 - $_.i = $_.i + 1; //#14234 - } else { //#14237 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14236 - $_.encc(); //#14236 - $_.i = $_.i + 2; //#14237 - } //#14237 - } //#14237 - break; //#14240 - } //#14240 - } //#14240 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14248 - $k[$j++] = $_.swc; //#14245 - $_.enca(); //#14245 - $_.cset = "setc"; //#14246 - break; //#14247 - } //#14247 - $k[$j++] = $get($_.msg, $_.i); //#14250 - $_.enca(); //#14250 - $_.i = $_.i + 1; //#14251 - break; //#14252 - } //#14252 - if ($eq($_.cset, "setb")) { //#14327 - if ($_.i < ($_.msglen - 1)) { //#14264 - $k[$j++] = $get($_.msg, $_.i); //#14257 - $_.anotb(); //#14257 - $k[$j++] = $_.i + 1; //#14258 - $_.bbeforea(); //#14258 - var _8f = $k[--$j]; //#14258 - var _8g = $k[--$j]; //#14258 - if ((_8g && _8f)) { //#14263 - $k[$j++] = $_.sa1; //#14259 - $_.encb(); //#14259 - $k[$j++] = $get($_.msg, $_.i); //#14260 - $_.enca(); //#14260 - $_.i = $_.i + 1; //#14261 - break; //#14262 - } //#14262 - } //#14262 - if ($_.i < ($_.msglen - 2)) { //#14276 - $k[$j++] = $get($_.msg, $_.i); //#14267 - $_.anotb(); //#14267 - $k[$j++] = $get($_.msg, $_.i + 1); //#14268 - $_.anotb(); //#14268 - var _8u = $k[--$j]; //#14268 - var _8v = $k[--$j]; //#14268 - $k[$j++] = $an(_8v, _8u); //#14269 - $k[$j++] = $_.i + 2; //#14269 - $_.bbeforea(); //#14269 - var _8x = $k[--$j]; //#14269 - var _8y = $k[--$j]; //#14269 - if ((_8y && _8x)) { //#14275 - $k[$j++] = $_.sa2; //#14270 - $_.encb(); //#14270 - $k[$j++] = $get($_.msg, $_.i); //#14271 - $_.enca(); //#14271 - $k[$j++] = $get($_.msg, $_.i + 1); //#14272 - $_.enca(); //#14272 - $_.i = $_.i + 2; //#14273 - break; //#14274 - } //#14274 - } //#14274 - $k[$j++] = $get($_.msg, $_.i); //#14278 - $_.anotb(); //#14278 - if ($k[--$j]) { //#14282 - $k[$j++] = $_.swa; //#14279 - $_.encb(); //#14279 - $_.cset = "seta"; //#14280 - break; //#14281 - } //#14281 - if ($_.i < ($_.msglen - 4)) { //#14299 - var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14286 - if (($_.nums == 4) && _9J) { //#14298 - $k[$j++] = $_.sc2; //#14287 - $_.encb(); //#14287 - for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14296 - if ($get($_.msg, $_.i) == $_.fn1) { //#14294 - $k[$j++] = $_.fn1; //#14290 - $_.encc(); //#14290 - $_.i = $_.i + 1; //#14291 - } else { //#14294 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14293 - $_.encc(); //#14293 - $_.i = $_.i + 2; //#14294 - } //#14294 - } //#14294 - break; //#14297 - } //#14297 - } //#14297 - if ($_.i < ($_.msglen - 6)) { //#14316 - var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14303 - if (($_.nums == 6) && _9e) { //#14315 - $k[$j++] = $_.sc3; //#14304 - $_.encb(); //#14304 - for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14313 - if ($get($_.msg, $_.i) == $_.fn1) { //#14311 - $k[$j++] = $_.fn1; //#14307 - $_.encc(); //#14307 - $_.i = $_.i + 1; //#14308 - } else { //#14311 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14310 - $_.encc(); //#14310 - $_.i = $_.i + 2; //#14311 - } //#14311 - } //#14311 - break; //#14314 - } //#14314 - } //#14314 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14322 - $k[$j++] = $_.swc; //#14319 - $_.encb(); //#14319 - $_.cset = "setc"; //#14320 - break; //#14321 - } //#14321 - $k[$j++] = $get($_.msg, $_.i); //#14324 - $_.encb(); //#14324 - $_.i = $_.i + 1; //#14325 - break; //#14326 - } //#14326 - if ($eq($_.cset, "setc")) { //#14410 - if ($_.nums >= 2) { //#14339 - if ($get($_.msg, $_.i) == $_.fn1) { //#14336 - $k[$j++] = $_.fn1; //#14332 - $_.encc(); //#14332 - $_.i = $_.i + 1; //#14333 - } else { //#14336 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14335 - $_.encc(); //#14335 - $_.i = $_.i + 2; //#14336 - } //#14336 - break; //#14338 - } //#14338 - if ($_.i < ($_.msglen - 1)) { //#14349 - var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14342 - $k[$j++] = _AH; //#14343 - $k[$j++] = $_.i + 1; //#14343 - $_.numsscr(); //#14343 - var _AJ = $k[--$j]; //#14343 - var _AK = $k[--$j]; //#14343 - $k[$j++] = _AJ; //#14343 - $k[$j++] = _AK; //#14343 - $j--; //#14343 - var _AL = $k[--$j]; //#14343 - var _AM = $k[--$j]; //#14343 - if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14348 - $k[$j++] = $_.sb1; //#14344 - $_.encc(); //#14344 - $k[$j++] = $get($_.msg, $_.i); //#14345 - $_.encb(); //#14345 - $_.i = $_.i + 1; //#14346 - break; //#14347 - } //#14347 - } //#14347 - if ($_.i < ($_.msglen - 1)) { //#14360 - var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14352 - $k[$j++] = _AY; //#14353 - $k[$j++] = $_.i + 1; //#14353 - $_.numsscr(); //#14353 - var _Aa = $k[--$j]; //#14353 - var _Ab = $k[--$j]; //#14353 - $k[$j++] = _Aa; //#14353 - $k[$j++] = _Ab; //#14353 - $j--; //#14353 - var _Ac = $k[--$j]; //#14353 - var _Ad = $k[--$j]; //#14353 - if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14359 - $k[$j++] = $_.sb2; //#14354 - $_.encc(); //#14354 - $k[$j++] = $get($_.msg, $_.i); //#14355 - $_.encb(); //#14355 - $k[$j++] = $get($_.msg, $_.i + 1); //#14356 - $_.encb(); //#14356 - $_.i = $_.i + 2; //#14357 - break; //#14358 - } //#14358 - } //#14358 - if ($_.i < ($_.msglen - 2)) { //#14372 - var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14363 - var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14364 - $k[$j++] = _As && _Ax; //#14365 - $k[$j++] = $_.i + 2; //#14365 - $_.numsscr(); //#14365 - var _Az = $k[--$j]; //#14365 - var _B0 = $k[--$j]; //#14365 - $k[$j++] = _Az; //#14365 - $k[$j++] = _B0; //#14365 - $j--; //#14365 - var _B1 = $k[--$j]; //#14365 - var _B2 = $k[--$j]; //#14365 - if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14371 - $k[$j++] = $_.sb2; //#14366 - $_.encc(); //#14366 - $k[$j++] = $get($_.msg, $_.i); //#14367 - $_.encb(); //#14367 - $k[$j++] = $get($_.msg, $_.i + 1); //#14368 - $_.encb(); //#14368 - $_.i = $_.i + 2; //#14369 - break; //#14370 - } //#14370 - } //#14370 - if ($_.i < ($_.msglen - 3)) { //#14385 - var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14375 - var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14376 - $k[$j++] = _BH && _BM; //#14377 - $k[$j++] = $_.i + 2; //#14377 - $_.numsscr(); //#14377 - var _BO = $k[--$j]; //#14377 - var _BP = $k[--$j]; //#14377 - $k[$j++] = _BO; //#14377 - $k[$j++] = _BP; //#14377 - $j--; //#14377 - var _BQ = $k[--$j]; //#14377 - var _BR = $k[--$j]; //#14377 - if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14384 - $k[$j++] = $_.sb3; //#14378 - $_.encc(); //#14378 - $k[$j++] = $get($_.msg, $_.i); //#14379 - $_.encb(); //#14379 - $k[$j++] = $get($_.msg, $_.i + 1); //#14380 - $_.encb(); //#14380 - $k[$j++] = $get($_.msg, $_.i + 2); //#14381 - $_.encb(); //#14381 - $_.i = $_.i + 3; //#14382 - break; //#14383 - } //#14383 - } //#14383 - if ($_.i < ($_.msglen - 3)) { //#14399 - var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14388 - var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14389 - var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14390 - $k[$j++] = (_Bj && _Bo) && _Bt; //#14391 - $k[$j++] = $_.i + 3; //#14391 - $_.numsscr(); //#14391 - var _Bv = $k[--$j]; //#14391 - var _Bw = $k[--$j]; //#14391 - $k[$j++] = _Bv; //#14391 - $k[$j++] = _Bw; //#14391 - $j--; //#14391 - var _Bx = $k[--$j]; //#14391 - var _By = $k[--$j]; //#14391 - if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14398 - $k[$j++] = $_.sb3; //#14392 - $_.encc(); //#14392 + var _5s = $k[--$j]; //#14283 + $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14283 + }; //#14283 + $_.cws = $a(($_.barcode.length * 2) + 3); //#14285 + $_.i = 0; //#14288 + $_.j = 0; //#14288 + for (;;) { //#14378 + if ($_.sam != -1) { //#14299 + $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14293 + $put($_.cws, 1, ($_.sam % 10) - 1); //#14294 + $_.j = 2; //#14295 + $_.cset = "setb"; //#14296 + $_.mode = 7; //#14297 + break; //#14298 + } //#14298 + if ($_.msglen == 0) { //#14305 + $_.cset = "setb"; //#14302 + $_.mode = 1; //#14303 + break; //#14304 + } //#14304 + if ($_.msglen >= 2) { //#14314 + $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14308 + $k[$j++] = 1; //#14308 + $_.numsscr(); //#14308 + var _69 = $k[--$j]; //#14308 + var _6A = $k[--$j]; //#14308 + $k[$j++] = _69; //#14308 + $k[$j++] = _6A; //#14308 + $j--; //#14308 + var _6B = $k[--$j]; //#14308 + var _6C = $k[--$j]; //#14308 + if (_6C && (_6B >= 2)) { //#14313 + $_.cset = "setc"; //#14309 + $_.mode = 4; //#14310 + $_.i = 1; //#14311 + break; //#14312 + } //#14312 + } //#14312 + if ($get($_.msg, 0) == $_.fn1) { //#14321 + $_.cset = "setb"; //#14317 + $_.mode = 3; //#14318 + $_.i = 1; //#14319 + break; //#14320 + } //#14320 + if ($_.msglen >= 2) { //#14367 + $k[$j++] = 0; //#14324 + $_.numsscr(); //#14324 + var _6H = $k[--$j]; //#14324 + var _6I = $k[--$j]; //#14324 + $k[$j++] = _6H; //#14324 + $k[$j++] = _6I; //#14324 + $j--; //#14324 + var _6J = $k[--$j]; //#14324 + if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14328 + $_.cset = "setc"; //#14325 + $_.mode = 2; //#14326 + break; //#14327 + } //#14327 + $k[$j++] = 0; //#14330 + $_.numsscr(); //#14330 + var _6K = $k[--$j]; //#14330 + var _6L = $k[--$j]; //#14330 + $k[$j++] = _6K; //#14330 + $k[$j++] = _6L; //#14330 + $j--; //#14330 + var _6M = $k[--$j]; //#14330 + if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14336 + $k[$j++] = $get($_.msg, 0); //#14331 + $_.encb(); //#14331 + $_.cset = "setc"; //#14332 + $_.mode = 5; //#14333 + $_.i = 1; //#14334 + break; //#14335 + } //#14335 + var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14338 + $k[$j++] = _6S; //#14339 + $k[$j++] = 1; //#14339 + $_.numsscr(); //#14339 + var _6T = $k[--$j]; //#14339 + var _6U = $k[--$j]; //#14339 + $k[$j++] = _6T; //#14339 + $k[$j++] = _6U; //#14339 + $j--; //#14339 + var _6V = $k[--$j]; //#14339 + var _6W = $k[--$j]; //#14339 + if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14345 + $k[$j++] = $get($_.msg, 0); //#14340 + $_.encb(); //#14340 + $_.cset = "setc"; //#14341 + $_.mode = 5; //#14342 + $_.i = 1; //#14343 + break; //#14344 + } //#14344 + var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14347 + $k[$j++] = _6c; //#14348 + $k[$j++] = 1; //#14348 + $_.numsscr(); //#14348 + var _6d = $k[--$j]; //#14348 + var _6e = $k[--$j]; //#14348 + $k[$j++] = _6d; //#14348 + $k[$j++] = _6e; //#14348 + $j--; //#14348 + var _6f = $k[--$j]; //#14348 + var _6g = $k[--$j]; //#14348 + if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14355 + $k[$j++] = $get($_.msg, 0); //#14349 + $_.encb(); //#14349 + $k[$j++] = $get($_.msg, 1); //#14350 + $_.encb(); //#14350 + $_.cset = "setc"; //#14351 + $_.mode = 6; //#14352 + $_.i = 2; //#14353 + break; //#14354 + } //#14354 + var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14357 + var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14358 + $k[$j++] = _6o && _6s; //#14359 + $k[$j++] = 2; //#14359 + $_.numsscr(); //#14359 + var _6t = $k[--$j]; //#14359 + var _6u = $k[--$j]; //#14359 + $k[$j++] = _6t; //#14359 + $k[$j++] = _6u; //#14359 + $j--; //#14359 + var _6v = $k[--$j]; //#14359 + var _6w = $k[--$j]; //#14359 + if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14366 + $k[$j++] = $get($_.msg, 0); //#14360 + $_.encb(); //#14360 + $k[$j++] = $get($_.msg, 1); //#14361 + $_.encb(); //#14361 + $_.cset = "setc"; //#14362 + $_.mode = 6; //#14363 + $_.i = 2; //#14364 + break; //#14365 + } //#14365 + } //#14365 + $k[$j++] = 0; //#14369 + $_.abeforeb(); //#14369 + if ($k[--$j]) { //#14373 + $_.cset = "seta"; //#14370 + $_.mode = 0; //#14371 + break; //#14372 + } //#14372 + $_.cset = "setb"; //#14375 + $_.mode = 1; //#14376 + break; //#14377 + } //#14377 + for (;;) { //#14621 + if ($_.i == $_.msglen) { //#14381 + break; //#14381 + } //#14381 + $k[$j++] = $_.i; //#14383 + $_.numsscr(); //#14383 + $_.nums = $k[--$j]; //#14383 + $_.nchars = $k[--$j]; //#14383 + for (;;) { //#14619 + if ($eq($_.cset, "seta")) { //#14460 + if ($_.i < ($_.msglen - 1)) { //#14397 + $k[$j++] = $get($_.msg, $_.i); //#14390 + $_.bnota(); //#14390 + $k[$j++] = $_.i + 1; //#14391 + $_.abeforeb(); //#14391 + var _7E = $k[--$j]; //#14391 + var _7F = $k[--$j]; //#14391 + if ((_7F && _7E)) { //#14396 + $k[$j++] = $_.sb1; //#14392 + $_.enca(); //#14392 $k[$j++] = $get($_.msg, $_.i); //#14393 $_.encb(); //#14393 - $k[$j++] = $get($_.msg, $_.i + 1); //#14394 - $_.encb(); //#14394 - $k[$j++] = $get($_.msg, $_.i + 2); //#14395 - $_.encb(); //#14395 - $_.i = $_.i + 3; //#14396 - break; //#14397 - } //#14397 - } //#14397 - $k[$j++] = $_.i; //#14401 - $_.abeforeb(); //#14401 - if ($k[--$j]) { //#14405 - $k[$j++] = $_.swa; //#14402 - $_.encc(); //#14402 - $_.cset = "seta"; //#14403 - break; //#14404 - } //#14404 - $k[$j++] = $_.swb; //#14407 - $_.encc(); //#14407 - $_.cset = "setb"; //#14408 - break; //#14409 - } //#14409 - break; //#14411 - } //#14411 - } //#14411 - $_.cws = $geti($_.cws, 0, $_.j); //#14415 - } //#14415 - if (!bwipp_code16k.__14438__) { //#14438 - $_ = Object.create($_); //#14438 - $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14437 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14437 - bwipp_code16k.__14438__ = 1; //#14437 - $_ = Object.getPrototypeOf($_); //#14437 - } //#14437 - $_.urows = $_.rows; //#14441 - var _CZ = $_.metrics; //#14442 - for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14450 - $_.m = $get(_CZ, _Ca); //#14443 - $_.r = $get($_.m, 0); //#14444 - $_.dcws = $get($_.m, 1); //#14445 - $_.okay = true; //#14446 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14447 - $_.okay = false; //#14447 - } //#14447 - if ($_.cws.length > $_.dcws) { //#14448 - $_.okay = false; //#14448 - } //#14448 - if ($_.okay) { //#14449 - break; //#14449 - } //#14449 - } //#14449 - if (!$_.okay) { //#14454 - $k[$j++] = 'bwipp.code16kNoValidSymbol#14453'; //#14453 - $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14453 - bwipp_raiseerror(); //#14453 - } //#14453 - $k[$j++] = Infinity; //#14457 - $aload($_.cws); //#14457 - for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14457 - $k[$j++] = 103; //#14457 - } //#14457 - $_.cws = $a(); //#14457 - $k[$j++] = Infinity; //#14460 - $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14460 - $aload($_.cws); //#14460 - $_.cws = $a(); //#14460 - $k[$j++] = 0; //#14463 - for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14463 - var _D3 = $k[--$j]; //#14463 - $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14463 - } //#14463 - $_.c1 = $k[--$j] % 107; //#14464 - $k[$j++] = 0; //#14465 - for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14465 - var _DA = $k[--$j]; //#14465 - $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14465 - } //#14465 - $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14466 - $k[$j++] = Infinity; //#14467 - $aload($_.cws); //#14467 - $k[$j++] = $_.c1; //#14467 - $k[$j++] = $_.c2; //#14467 - $_.cws = $a(); //#14467 - var _DJ = $get($_.options, 'debugcws') !== undefined; //#14469 - if (_DJ) { //#14469 - $k[$j++] = 'bwipp.debugcws#14469'; //#14469 - $k[$j++] = $_.cws; //#14469 - bwipp_raiseerror(); //#14469 - } //#14469 - if (!bwipp_code16k.__14505__) { //#14505 - $_ = Object.create($_); //#14505 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14490 - $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14496 - $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14500 - $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14504 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14504 - bwipp_code16k.__14505__ = 1; //#14504 - $_ = Object.getPrototypeOf($_); //#14504 - } //#14504 - if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14510 - $_.stopencs = $_.stopencsodd; //#14508 - } else { //#14510 - $_.stopencs = $_.stopencseven; //#14510 - } //#14510 - $_.rowbits = $a($_.r); //#14514 - for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14531 - $_.i = _DY; //#14516 - $k[$j++] = Infinity; //#14525 - $k[$j++] = 10; //#14519 - $forall($get($_.startencs, $_.i), function() { //#14519 - var _Dc = $k[--$j]; //#14519 - $k[$j++] = $f(_Dc - 48); //#14519 - }); //#14519 - var _Df = $geti($_.cws, $_.i * 5, 5); //#14521 - $k[$j++] = 1; //#14523 - for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14523 - $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14522 - var _Dl = $k[--$j]; //#14522 - $k[$j++] = $f(_Dl - 48); //#14522 - }); //#14522 - } //#14522 - $forall($get($_.stopencs, $_.i), function() { //#14524 - var _Dp = $k[--$j]; //#14524 - $k[$j++] = $f(_Dp - 48); //#14524 - }); //#14524 - $k[$j++] = 1; //#14525 - $_.sbs = $a(); //#14525 - $k[$j++] = Infinity; //#14527 - var _Dr = $_.sbs; //#14528 - $k[$j++] = 1; //#14528 - for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14528 - var _Dv = $k[--$j]; //#14528 - var _Dw = (_Dv == 0) ? 1 : 0; //#14528 - $k[$j++] = _Dv; //#14528 - for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14528 - $k[$j++] = _Dw //#14528 - } //#14528 - } //#14528 - $astore($a($counttomark() - 1)); //#14529 - var _E1 = $k[--$j]; //#14529 - var _E2 = $k[--$j]; //#14529 - $k[$j++] = _E1; //#14529 - $k[$j++] = _E2; //#14529 - $j--; //#14529 - var _E3 = $k[--$j]; //#14529 - var _E4 = $k[--$j]; //#14529 - $k[$j++] = _E3; //#14529 - $k[$j++] = _E4; //#14529 - $j--; //#14529 - $put($_.rowbits, $_.i, $k[--$j]); //#14530 - } //#14530 - $k[$j++] = Infinity; //#14542 - for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14535 - $k[$j++] = 1; //#14535 - } //#14535 - for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14540 - $_.i = _ED; //#14537 - for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14538 - $aload($get($_.rowbits, $_.i)); //#14538 - } //#14538 - for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14539 - for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14539 - $k[$j++] = 1; //#14539 - } //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - } //#14539 - for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14541 - $aload($get($_.rowbits, $f($_.r - 1))); //#14541 - } //#14541 - for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14542 - $k[$j++] = 1; //#14542 - } //#14542 - $_.pixs = $a(); //#14542 + $_.i = $_.i + 1; //#14394 + break; //#14395 + } //#14395 + } //#14395 + if ($_.i < ($_.msglen - 2)) { //#14409 + $k[$j++] = $get($_.msg, $_.i); //#14400 + $_.bnota(); //#14400 + $k[$j++] = $get($_.msg, $_.i + 1); //#14401 + $_.bnota(); //#14401 + var _7T = $k[--$j]; //#14401 + var _7U = $k[--$j]; //#14401 + $k[$j++] = $an(_7U, _7T); //#14402 + $k[$j++] = $_.i + 2; //#14402 + $_.abeforeb(); //#14402 + var _7W = $k[--$j]; //#14402 + var _7X = $k[--$j]; //#14402 + if ((_7X && _7W)) { //#14408 + $k[$j++] = $_.sb2; //#14403 + $_.enca(); //#14403 + $k[$j++] = $get($_.msg, $_.i); //#14404 + $_.encb(); //#14404 + $k[$j++] = $get($_.msg, $_.i + 1); //#14405 + $_.encb(); //#14405 + $_.i = $_.i + 2; //#14406 + break; //#14407 + } //#14407 + } //#14407 + $k[$j++] = $get($_.msg, $_.i); //#14411 + $_.bnota(); //#14411 + if ($k[--$j]) { //#14415 + $k[$j++] = $_.swb; //#14412 + $_.enca(); //#14412 + $_.cset = "setb"; //#14413 + break; //#14414 + } //#14414 + if ($_.i < ($_.msglen - 4)) { //#14432 + var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14419 + if (($_.nums == 4) && _7s) { //#14431 + $k[$j++] = $_.sc2; //#14420 + $_.enca(); //#14420 + for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14429 + if ($get($_.msg, $_.i) == $_.fn1) { //#14427 + $k[$j++] = $_.fn1; //#14423 + $_.encc(); //#14423 + $_.i = $_.i + 1; //#14424 + } else { //#14427 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14426 + $_.encc(); //#14426 + $_.i = $_.i + 2; //#14427 + } //#14427 + } //#14427 + break; //#14430 + } //#14430 + } //#14430 + if ($_.i < ($_.msglen - 6)) { //#14449 + var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14436 + if (($_.nums == 6) && _8D) { //#14448 + $k[$j++] = $_.sc3; //#14437 + $_.enca(); //#14437 + for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14446 + if ($get($_.msg, $_.i) == $_.fn1) { //#14444 + $k[$j++] = $_.fn1; //#14440 + $_.encc(); //#14440 + $_.i = $_.i + 1; //#14441 + } else { //#14444 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14443 + $_.encc(); //#14443 + $_.i = $_.i + 2; //#14444 + } //#14444 + } //#14444 + break; //#14447 + } //#14447 + } //#14447 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14455 + $k[$j++] = $_.swc; //#14452 + $_.enca(); //#14452 + $_.cset = "setc"; //#14453 + break; //#14454 + } //#14454 + $k[$j++] = $get($_.msg, $_.i); //#14457 + $_.enca(); //#14457 + $_.i = $_.i + 1; //#14458 + break; //#14459 + } //#14459 + if ($eq($_.cset, "setb")) { //#14534 + if ($_.i < ($_.msglen - 1)) { //#14471 + $k[$j++] = $get($_.msg, $_.i); //#14464 + $_.anotb(); //#14464 + $k[$j++] = $_.i + 1; //#14465 + $_.bbeforea(); //#14465 + var _8f = $k[--$j]; //#14465 + var _8g = $k[--$j]; //#14465 + if ((_8g && _8f)) { //#14470 + $k[$j++] = $_.sa1; //#14466 + $_.encb(); //#14466 + $k[$j++] = $get($_.msg, $_.i); //#14467 + $_.enca(); //#14467 + $_.i = $_.i + 1; //#14468 + break; //#14469 + } //#14469 + } //#14469 + if ($_.i < ($_.msglen - 2)) { //#14483 + $k[$j++] = $get($_.msg, $_.i); //#14474 + $_.anotb(); //#14474 + $k[$j++] = $get($_.msg, $_.i + 1); //#14475 + $_.anotb(); //#14475 + var _8u = $k[--$j]; //#14475 + var _8v = $k[--$j]; //#14475 + $k[$j++] = $an(_8v, _8u); //#14476 + $k[$j++] = $_.i + 2; //#14476 + $_.bbeforea(); //#14476 + var _8x = $k[--$j]; //#14476 + var _8y = $k[--$j]; //#14476 + if ((_8y && _8x)) { //#14482 + $k[$j++] = $_.sa2; //#14477 + $_.encb(); //#14477 + $k[$j++] = $get($_.msg, $_.i); //#14478 + $_.enca(); //#14478 + $k[$j++] = $get($_.msg, $_.i + 1); //#14479 + $_.enca(); //#14479 + $_.i = $_.i + 2; //#14480 + break; //#14481 + } //#14481 + } //#14481 + $k[$j++] = $get($_.msg, $_.i); //#14485 + $_.anotb(); //#14485 + if ($k[--$j]) { //#14489 + $k[$j++] = $_.swa; //#14486 + $_.encb(); //#14486 + $_.cset = "seta"; //#14487 + break; //#14488 + } //#14488 + if ($_.i < ($_.msglen - 4)) { //#14506 + var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14493 + if (($_.nums == 4) && _9J) { //#14505 + $k[$j++] = $_.sc2; //#14494 + $_.encb(); //#14494 + for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14503 + if ($get($_.msg, $_.i) == $_.fn1) { //#14501 + $k[$j++] = $_.fn1; //#14497 + $_.encc(); //#14497 + $_.i = $_.i + 1; //#14498 + } else { //#14501 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14500 + $_.encc(); //#14500 + $_.i = $_.i + 2; //#14501 + } //#14501 + } //#14501 + break; //#14504 + } //#14504 + } //#14504 + if ($_.i < ($_.msglen - 6)) { //#14523 + var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14510 + if (($_.nums == 6) && _9e) { //#14522 + $k[$j++] = $_.sc3; //#14511 + $_.encb(); //#14511 + for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14520 + if ($get($_.msg, $_.i) == $_.fn1) { //#14518 + $k[$j++] = $_.fn1; //#14514 + $_.encc(); //#14514 + $_.i = $_.i + 1; //#14515 + } else { //#14518 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14517 + $_.encc(); //#14517 + $_.i = $_.i + 2; //#14518 + } //#14518 + } //#14518 + break; //#14521 + } //#14521 + } //#14521 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14529 + $k[$j++] = $_.swc; //#14526 + $_.encb(); //#14526 + $_.cset = "setc"; //#14527 + break; //#14528 + } //#14528 + $k[$j++] = $get($_.msg, $_.i); //#14531 + $_.encb(); //#14531 + $_.i = $_.i + 1; //#14532 + break; //#14533 + } //#14533 + if ($eq($_.cset, "setc")) { //#14617 + if ($_.nums >= 2) { //#14546 + if ($get($_.msg, $_.i) == $_.fn1) { //#14543 + $k[$j++] = $_.fn1; //#14539 + $_.encc(); //#14539 + $_.i = $_.i + 1; //#14540 + } else { //#14543 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14542 + $_.encc(); //#14542 + $_.i = $_.i + 2; //#14543 + } //#14543 + break; //#14545 + } //#14545 + if ($_.i < ($_.msglen - 1)) { //#14556 + var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14549 + $k[$j++] = _AH; //#14550 + $k[$j++] = $_.i + 1; //#14550 + $_.numsscr(); //#14550 + var _AJ = $k[--$j]; //#14550 + var _AK = $k[--$j]; //#14550 + $k[$j++] = _AJ; //#14550 + $k[$j++] = _AK; //#14550 + $j--; //#14550 + var _AL = $k[--$j]; //#14550 + var _AM = $k[--$j]; //#14550 + if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14555 + $k[$j++] = $_.sb1; //#14551 + $_.encc(); //#14551 + $k[$j++] = $get($_.msg, $_.i); //#14552 + $_.encb(); //#14552 + $_.i = $_.i + 1; //#14553 + break; //#14554 + } //#14554 + } //#14554 + if ($_.i < ($_.msglen - 1)) { //#14567 + var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14559 + $k[$j++] = _AY; //#14560 + $k[$j++] = $_.i + 1; //#14560 + $_.numsscr(); //#14560 + var _Aa = $k[--$j]; //#14560 + var _Ab = $k[--$j]; //#14560 + $k[$j++] = _Aa; //#14560 + $k[$j++] = _Ab; //#14560 + $j--; //#14560 + var _Ac = $k[--$j]; //#14560 + var _Ad = $k[--$j]; //#14560 + if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14566 + $k[$j++] = $_.sb2; //#14561 + $_.encc(); //#14561 + $k[$j++] = $get($_.msg, $_.i); //#14562 + $_.encb(); //#14562 + $k[$j++] = $get($_.msg, $_.i + 1); //#14563 + $_.encb(); //#14563 + $_.i = $_.i + 2; //#14564 + break; //#14565 + } //#14565 + } //#14565 + if ($_.i < ($_.msglen - 2)) { //#14579 + var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14570 + var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14571 + $k[$j++] = _As && _Ax; //#14572 + $k[$j++] = $_.i + 2; //#14572 + $_.numsscr(); //#14572 + var _Az = $k[--$j]; //#14572 + var _B0 = $k[--$j]; //#14572 + $k[$j++] = _Az; //#14572 + $k[$j++] = _B0; //#14572 + $j--; //#14572 + var _B1 = $k[--$j]; //#14572 + var _B2 = $k[--$j]; //#14572 + if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14578 + $k[$j++] = $_.sb2; //#14573 + $_.encc(); //#14573 + $k[$j++] = $get($_.msg, $_.i); //#14574 + $_.encb(); //#14574 + $k[$j++] = $get($_.msg, $_.i + 1); //#14575 + $_.encb(); //#14575 + $_.i = $_.i + 2; //#14576 + break; //#14577 + } //#14577 + } //#14577 + if ($_.i < ($_.msglen - 3)) { //#14592 + var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14582 + var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14583 + $k[$j++] = _BH && _BM; //#14584 + $k[$j++] = $_.i + 2; //#14584 + $_.numsscr(); //#14584 + var _BO = $k[--$j]; //#14584 + var _BP = $k[--$j]; //#14584 + $k[$j++] = _BO; //#14584 + $k[$j++] = _BP; //#14584 + $j--; //#14584 + var _BQ = $k[--$j]; //#14584 + var _BR = $k[--$j]; //#14584 + if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14591 + $k[$j++] = $_.sb3; //#14585 + $_.encc(); //#14585 + $k[$j++] = $get($_.msg, $_.i); //#14586 + $_.encb(); //#14586 + $k[$j++] = $get($_.msg, $_.i + 1); //#14587 + $_.encb(); //#14587 + $k[$j++] = $get($_.msg, $_.i + 2); //#14588 + $_.encb(); //#14588 + $_.i = $_.i + 3; //#14589 + break; //#14590 + } //#14590 + } //#14590 + if ($_.i < ($_.msglen - 3)) { //#14606 + var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14595 + var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14596 + var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14597 + $k[$j++] = (_Bj && _Bo) && _Bt; //#14598 + $k[$j++] = $_.i + 3; //#14598 + $_.numsscr(); //#14598 + var _Bv = $k[--$j]; //#14598 + var _Bw = $k[--$j]; //#14598 + $k[$j++] = _Bv; //#14598 + $k[$j++] = _Bw; //#14598 + $j--; //#14598 + var _Bx = $k[--$j]; //#14598 + var _By = $k[--$j]; //#14598 + if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14605 + $k[$j++] = $_.sb3; //#14599 + $_.encc(); //#14599 + $k[$j++] = $get($_.msg, $_.i); //#14600 + $_.encb(); //#14600 + $k[$j++] = $get($_.msg, $_.i + 1); //#14601 + $_.encb(); //#14601 + $k[$j++] = $get($_.msg, $_.i + 2); //#14602 + $_.encb(); //#14602 + $_.i = $_.i + 3; //#14603 + break; //#14604 + } //#14604 + } //#14604 + $k[$j++] = $_.i; //#14608 + $_.abeforeb(); //#14608 + if ($k[--$j]) { //#14612 + $k[$j++] = $_.swa; //#14609 + $_.encc(); //#14609 + $_.cset = "seta"; //#14610 + break; //#14611 + } //#14611 + $k[$j++] = $_.swb; //#14614 + $_.encc(); //#14614 + $_.cset = "setb"; //#14615 + break; //#14616 + } //#14616 + break; //#14618 + } //#14618 + } //#14618 + $_.cws = $geti($_.cws, 0, $_.j); //#14622 + } //#14622 + if (!bwipp_code16k.__14645__) { //#14645 + $_ = Object.create($_); //#14645 + $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14644 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14644 + bwipp_code16k.__14645__ = 1; //#14644 + $_ = Object.getPrototypeOf($_); //#14644 + } //#14644 + $_.urows = $_.rows; //#14648 + var _CZ = $_.metrics; //#14649 + for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14657 + $_.m = $get(_CZ, _Ca); //#14650 + $_.r = $get($_.m, 0); //#14651 + $_.dcws = $get($_.m, 1); //#14652 + $_.okay = true; //#14653 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#14654 + $_.okay = false; //#14654 + } //#14654 + if ($_.cws.length > $_.dcws) { //#14655 + $_.okay = false; //#14655 + } //#14655 + if ($_.okay) { //#14656 + break; //#14656 + } //#14656 + } //#14656 + if (!$_.okay) { //#14661 + $k[$j++] = 'bwipp.code16kNoValidSymbol#14660'; //#14660 + $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14660 + bwipp_raiseerror(); //#14660 + } //#14660 + $k[$j++] = Infinity; //#14664 + $aload($_.cws); //#14664 + for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14664 + $k[$j++] = 103; //#14664 + } //#14664 + $_.cws = $a(); //#14664 + $k[$j++] = Infinity; //#14667 + $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14667 + $aload($_.cws); //#14667 + $_.cws = $a(); //#14667 + $k[$j++] = 0; //#14670 + for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14670 + var _D3 = $k[--$j]; //#14670 + $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14670 + } //#14670 + $_.c1 = $k[--$j] % 107; //#14671 + $k[$j++] = 0; //#14672 + for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14672 + var _DA = $k[--$j]; //#14672 + $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14672 + } //#14672 + $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14673 + $k[$j++] = Infinity; //#14674 + $aload($_.cws); //#14674 + $k[$j++] = $_.c1; //#14674 + $k[$j++] = $_.c2; //#14674 + $_.cws = $a(); //#14674 + var _DJ = $get($_.options, 'debugcws') !== undefined; //#14676 + if (_DJ) { //#14676 + $k[$j++] = 'bwipp.debugcws#14676'; //#14676 + $k[$j++] = $_.cws; //#14676 + bwipp_raiseerror(); //#14676 + } //#14676 + if (!bwipp_code16k.__14712__) { //#14712 + $_ = Object.create($_); //#14712 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14697 + $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14703 + $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14707 + $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14711 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14711 + bwipp_code16k.__14712__ = 1; //#14711 + $_ = Object.getPrototypeOf($_); //#14711 + } //#14711 + if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14717 + $_.stopencs = $_.stopencsodd; //#14715 + } else { //#14717 + $_.stopencs = $_.stopencseven; //#14717 + } //#14717 + $_.rowbits = $a($_.r); //#14721 + for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14738 + $_.i = _DY; //#14723 + $k[$j++] = Infinity; //#14724 + $k[$j++] = 10; //#14726 + $forall($get($_.startencs, $_.i), function() { //#14726 + var _Dc = $k[--$j]; //#14726 + $k[$j++] = $f(_Dc - 48); //#14726 + }); //#14726 + var _Df = $geti($_.cws, $_.i * 5, 5); //#14728 + $k[$j++] = 1; //#14730 + for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14730 + $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14729 + var _Dl = $k[--$j]; //#14729 + $k[$j++] = $f(_Dl - 48); //#14729 + }); //#14729 + } //#14729 + $forall($get($_.stopencs, $_.i), function() { //#14731 + var _Dp = $k[--$j]; //#14731 + $k[$j++] = $f(_Dp - 48); //#14731 + }); //#14731 + $k[$j++] = 1; //#14732 + $_.sbs = $a(); //#14732 + $k[$j++] = Infinity; //#14734 + var _Dr = $_.sbs; //#14735 + $k[$j++] = 1; //#14735 + for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14735 + var _Dv = $k[--$j]; //#14735 + var _Dw = (_Dv == 0) ? 1 : 0; //#14735 + $k[$j++] = _Dv; //#14735 + for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14735 + $k[$j++] = _Dw //#14735 + } //#14735 + } //#14735 + $astore($a($counttomark() - 1)); //#14736 + var _E1 = $k[--$j]; //#14736 + var _E2 = $k[--$j]; //#14736 + $k[$j++] = _E1; //#14736 + $k[$j++] = _E2; //#14736 + $j--; //#14736 + var _E3 = $k[--$j]; //#14736 + var _E4 = $k[--$j]; //#14736 + $k[$j++] = _E3; //#14736 + $k[$j++] = _E4; //#14736 + $j--; //#14736 + $put($_.rowbits, $_.i, $k[--$j]); //#14737 + } //#14737 + $k[$j++] = Infinity; //#14741 + for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14742 + $k[$j++] = 1; //#14742 + } //#14742 + for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14747 + $_.i = _ED; //#14744 + for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14745 + $aload($get($_.rowbits, $_.i)); //#14745 + } //#14745 + for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14746 + for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14746 + $k[$j++] = 1; //#14746 + } //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + } //#14746 + for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14748 + $aload($get($_.rowbits, $f($_.r - 1))); //#14748 + } //#14748 + for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14749 + $k[$j++] = 1; //#14749 + } //#14749 + $_.pixs = $a(); //#14749 var _Ef = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -18477,594 +18799,593 @@ function bwipp_code16k() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#14553 - $k[$j++] = _Ef; //#14556 - if (!$_.dontdraw) { //#14556 - bwipp_renmatrix(); //#14556 - } //#14556 - $_ = Object.getPrototypeOf($_); //#14558 - $_ = Object.getPrototypeOf($_); //#14560 -} - + ]); //#14760 + $k[$j++] = _Ef; //#14763 + if (!$_.dontdraw) { //#14763 + bwipp_renmatrix(); //#14763 + } //#14763 + $_ = Object.getPrototypeOf($_); //#14765 + $_ = Object.getPrototypeOf($_); //#14767 +} //bwipp_code16k function bwipp_code49() { - $_ = Object.create($_); //#14591 - $_.dontdraw = false; //#14594 - $_.sam = -1; //#14595 - $_.append = false; //#14596 - $_.rows = 0; //#14597 - $_.rowheight = 8; //#14598 - $_.sepheight = 1; //#14599 - $_.parse = false; //#14600 - $_.parsefnc = false; //#14601 - $k[$j++] = $_; //#14603 - bwipp_processoptions(); //#14603 - $_.options = $k[--$j]; //#14603 - $_.barcode = $k[--$j]; //#14604 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14608 - $k[$j++] = 'bwipp.code49badRows#14607'; //#14607 - $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14607 - bwipp_raiseerror(); //#14607 - } //#14607 - if ($_.rowheight < 8) { //#14612 - $k[$j++] = 'bwipp.code49badRowHeight#14611'; //#14611 - $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14611 - bwipp_raiseerror(); //#14611 - } //#14611 - if ($_.sepheight < 1) { //#14616 - $k[$j++] = 'bwipp.code49badSepHeight#14615'; //#14615 - $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14615 - bwipp_raiseerror(); //#14615 - } //#14615 - if ($_.append && ($_.sam != -1)) { //#14620 - $k[$j++] = 'bwipp.code49samAndAppend#14619'; //#14619 - $k[$j++] = "sam and append cannot be specified together"; //#14619 - bwipp_raiseerror(); //#14619 - } //#14619 - if ($_.sam != -1) { //#14632 - $k[$j++] = true; //#14628 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#14628 - var _C = $_.sam; //#14625 - if ((_C < 12) || (_C > 99)) { //#14625 - $j--; //#14625 - $k[$j++] = false; //#14625 - break; //#14625 - } //#14625 - if (($_.sam % 10) < 2) { //#14626 - $j--; //#14626 - $k[$j++] = false; //#14626 - break; //#14626 - } //#14626 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14627 - $j--; //#14627 - $k[$j++] = false; //#14627 - break; //#14627 - } //#14627 - } //#14627 - if ($nt($k[--$j])) { //#14631 - $k[$j++] = 'bwipp.code49badSAM#14630'; //#14630 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14630 - bwipp_raiseerror(); //#14630 - } //#14630 - } //#14630 - bwipp_loadctx(bwipp_code49) //#14634 - if (!bwipp_code49.__14638__) { //#14638 - $_ = Object.create($_); //#14638 - $_.s1 = -1; //#14637 - $_.s2 = -2; //#14637 - $_.fn1 = -3; //#14637 - $_.fn2 = -4; //#14637 - $_.fn3 = -5; //#14637 - $_.ns = -6; //#14637 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14637 - bwipp_code49.__14638__ = 1; //#14637 - $_ = Object.getPrototypeOf($_); //#14637 - } //#14637 + $_ = Object.create($_); //#14798 + $_.dontdraw = false; //#14801 + $_.sam = -1; //#14802 + $_.append = false; //#14803 + $_.rows = 0; //#14804 + $_.rowheight = 8; //#14805 + $_.sepheight = 1; //#14806 + $_.parse = false; //#14807 + $_.parsefnc = false; //#14808 + $k[$j++] = $_; //#14810 + bwipp_processoptions(); //#14810 + $_.options = $k[--$j]; //#14810 + $_.barcode = $k[--$j]; //#14811 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14815 + $k[$j++] = 'bwipp.code49badRows#14814'; //#14814 + $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14814 + bwipp_raiseerror(); //#14814 + } //#14814 + if ($_.rowheight < 8) { //#14819 + $k[$j++] = 'bwipp.code49badRowHeight#14818'; //#14818 + $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14818 + bwipp_raiseerror(); //#14818 + } //#14818 + if ($_.sepheight < 1) { //#14823 + $k[$j++] = 'bwipp.code49badSepHeight#14822'; //#14822 + $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14822 + bwipp_raiseerror(); //#14822 + } //#14822 + if ($_.append && ($_.sam != -1)) { //#14827 + $k[$j++] = 'bwipp.code49samAndAppend#14826'; //#14826 + $k[$j++] = "sam and append cannot be specified together"; //#14826 + bwipp_raiseerror(); //#14826 + } //#14826 + if ($_.sam != -1) { //#14839 + $k[$j++] = true; //#14835 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#14835 + var _C = $_.sam; //#14832 + if ((_C < 12) || (_C > 99)) { //#14832 + $j--; //#14832 + $k[$j++] = false; //#14832 + break; //#14832 + } //#14832 + if (($_.sam % 10) < 2) { //#14833 + $j--; //#14833 + $k[$j++] = false; //#14833 + break; //#14833 + } //#14833 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14834 + $j--; //#14834 + $k[$j++] = false; //#14834 + break; //#14834 + } //#14834 + } //#14834 + if ($nt($k[--$j])) { //#14838 + $k[$j++] = 'bwipp.code49badSAM#14837'; //#14837 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14837 + bwipp_raiseerror(); //#14837 + } //#14837 + } //#14837 + bwipp_loadctx(bwipp_code49) //#14841 + if (!bwipp_code49.__14845__) { //#14845 + $_ = Object.create($_); //#14845 + $_.s1 = -1; //#14844 + $_.s2 = -2; //#14844 + $_.fn1 = -3; //#14844 + $_.fn2 = -4; //#14844 + $_.fn3 = -5; //#14844 + $_.ns = -6; //#14844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14844 + bwipp_code49.__14845__ = 1; //#14844 + $_ = Object.getPrototypeOf($_); //#14844 + } //#14844 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#14646 - $_.fncvals = _N; //#14647 - $k[$j++] = 'msg'; //#14648 - $k[$j++] = $_.barcode; //#14648 - $k[$j++] = $_.fncvals; //#14648 - bwipp_parseinput(); //#14648 - var _Q = $k[--$j]; //#14648 - $_[$k[--$j]] = _Q; //#14648 - $_.msglen = $_.msg.length; //#14649 - $forall($_.msg, function() { //#14655 - if ($k[--$j] > 127) { //#14654 - $k[$j++] = 'bwipp.code49badCharacter#14653'; //#14653 - $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14653 - bwipp_raiseerror(); //#14653 - } //#14653 - }); //#14653 - if (!bwipp_code49.__14697__) { //#14697 - $_ = Object.create($_); //#14697 - $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14665 - $_.charvals = new Map; //#14668 - for (var _c = 0; _c <= 48; _c += 1) { //#14674 - $_.i = _c; //#14670 - var _f = $get($_.charmap, $_.i); //#14671 - $k[$j++] = _f; //#14672 - if ($eq($type(_f), 'stringtype')) { //#14672 - var _i = $get($k[--$j], 0); //#14672 - $k[$j++] = _i; //#14672 - } //#14672 - $put($_.charvals, $k[--$j], $_.i); //#14673 - } //#14673 - $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14686 - for (var _n = 0; _n <= 127; _n += 1) { //#14696 - $_.i = _n; //#14688 - var _q = $get($_.combos, $_.i); //#14689 - $_.c1 = $get(_q, 0); //#14689 - $_.c2 = $get(_q, 1); //#14689 - if ($_.c1 == 49) { //#14692 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14691 - } //#14691 - if ($_.c1 == 50) { //#14695 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14694 - } //#14694 - } //#14694 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14694 - bwipp_code49.__14697__ = 1; //#14694 - $_ = Object.getPrototypeOf($_); //#14694 - } //#14694 + ]); //#14853 + $_.fncvals = _N; //#14854 + $k[$j++] = 'msg'; //#14855 + $k[$j++] = $_.barcode; //#14855 + $k[$j++] = $_.fncvals; //#14855 + bwipp_parseinput(); //#14855 + var _Q = $k[--$j]; //#14855 + $_[$k[--$j]] = _Q; //#14855 + $_.msglen = $_.msg.length; //#14856 + $forall($_.msg, function() { //#14862 + if ($k[--$j] > 127) { //#14861 + $k[$j++] = 'bwipp.code49badCharacter#14860'; //#14860 + $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14860 + bwipp_raiseerror(); //#14860 + } //#14860 + }); //#14860 + if (!bwipp_code49.__14904__) { //#14904 + $_ = Object.create($_); //#14904 + $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14872 + $_.charvals = new Map; //#14875 + for (var _c = 0; _c <= 48; _c += 1) { //#14881 + $_.i = _c; //#14877 + var _f = $get($_.charmap, $_.i); //#14878 + $k[$j++] = _f; //#14879 + if ($eq($type(_f), 'stringtype')) { //#14879 + var _i = $get($k[--$j], 0); //#14879 + $k[$j++] = _i; //#14879 + } //#14879 + $put($_.charvals, $k[--$j], $_.i); //#14880 + } //#14880 + $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14893 + for (var _n = 0; _n <= 127; _n += 1) { //#14903 + $_.i = _n; //#14895 + var _q = $get($_.combos, $_.i); //#14896 + $_.c1 = $get(_q, 0); //#14896 + $_.c2 = $get(_q, 1); //#14896 + if ($_.c1 == 49) { //#14899 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14898 + } //#14898 + if ($_.c1 == 50) { //#14902 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14901 + } //#14901 + } //#14901 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14901 + bwipp_code49.__14904__ = 1; //#14901 + $_ = Object.getPrototypeOf($_); //#14901 + } //#14901 $_.encodealpha = function() { - var _1G = $get($_.charvals, $k[--$j]); //#14700 - $k[$j++] = _1G; //#14701 - if ($ne($type(_1G), 'arraytype')) { //#14701 - $astore($a(1)); //#14701 - } //#14701 - var _1J = $k[--$j]; //#14702 - $puti($_.cws, $_.j, _1J); //#14702 - $_.j = _1J.length + $_.j; //#14703 - }; //#14703 + var _1G = $get($_.charvals, $k[--$j]); //#14907 + $k[$j++] = _1G; //#14908 + if ($ne($type(_1G), 'arraytype')) { //#14908 + $astore($a(1)); //#14908 + } //#14908 + var _1J = $k[--$j]; //#14909 + $puti($_.cws, $_.j, _1J); //#14909 + $_.j = _1J.length + $_.j; //#14910 + }; //#14910 $_.base48 = function() { - var _1N = $k[--$j]; //#14707 - $k[$j++] = 0; //#14707 - $forall(_1N, function() { //#14707 - var _1O = $k[--$j]; //#14707 - var _1P = $k[--$j]; //#14707 - $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14707 - }); //#14707 - $k[$j++] = Infinity; //#14708 - var _1Q = $k[--$j]; //#14708 - var _1R = $k[--$j]; //#14708 - var _1S = $k[--$j]; //#14708 - $k[$j++] = _1Q; //#14708 - $k[$j++] = _1R; //#14708 - for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14708 - var _1V = $k[--$j]; //#14708 - $k[$j++] = _1V % 48; //#14708 - $k[$j++] = ~~(_1V / 48); //#14708 - } //#14708 - var _1W = $a(); //#14708 - $k[$j++] = _1W; //#14709 - $k[$j++] = Infinity; //#14709 - var _1X = $k[--$j]; //#14709 - var _1Y = $k[--$j]; //#14709 - $k[$j++] = _1X; //#14709 - $k[$j++] = _1Y; //#14709 - for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14709 - var _1a = $k[--$j]; //#14709 - $k[$j++] = $get(_1a, _1Z); //#14709 - $k[$j++] = _1a; //#14709 - } //#14709 - $j--; //#14709 - var _1c = $a(); //#14709 - $puti($_.cws, $_.j, _1c); //#14710 - $_.j = _1c.length + $_.j; //#14711 - }; //#14711 - $_.encodenumeric = function() { - $_.nums = $k[--$j]; //#14715 - var _1i = $_.nums.length; //#14716 - var _1j = _1i % 5; //#14716 - $k[$j++] = 'pre'; //#14716 - $k[$j++] = _1i; //#14716 - $k[$j++] = _1j; //#14716 - if (_1j != 2) { //#14716 - var _1k = $k[--$j]; //#14716 - var _1l = $k[--$j]; //#14716 - $k[$j++] = $f(_1l - _1k); //#14716 - } else { //#14716 - var _1m = $k[--$j]; //#14716 - var _1n = $k[--$j]; //#14716 - $k[$j++] = $f($f(_1n - _1m) - 5); //#14716 - } //#14716 - var _1o = $k[--$j]; //#14716 - $_[$k[--$j]] = _1o; //#14716 - for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14717 - $k[$j++] = 3; //#14717 - $k[$j++] = $geti($_.nums, _1s, 5); //#14717 - $_.base48(); //#14717 - } //#14717 - $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14718 - var _21 = $_.nums.length; //#14720 - $k[$j++] = _21; //#14720 - if (_21 == 1) { //#14720 - $k[$j++] = $get($_.nums, $_.i); //#14720 - $_.encodealpha(); //#14720 - } //#14720 - var _25 = $k[--$j]; //#14721 - $k[$j++] = _25; //#14721 - if (_25 == 3) { //#14721 - $k[$j++] = 2; //#14721 - $k[$j++] = $_.nums; //#14721 - $_.base48(); //#14721 - } //#14721 - var _27 = $k[--$j]; //#14722 - $k[$j++] = _27; //#14722 - if (_27 == 4) { //#14722 - $k[$j++] = 3; //#14722 - $k[$j++] = Infinity; //#14722 - $k[$j++] = 49; //#14722 - $k[$j++] = 48; //#14722 - $aload($_.nums); //#14722 - var _29 = $a(); //#14722 - $k[$j++] = _29; //#14722 - $_.base48(); //#14722 - } //#14722 - if ($k[--$j] == 7) { //#14726 - $k[$j++] = 3; //#14724 - $k[$j++] = Infinity; //#14724 - $k[$j++] = 49; //#14724 - $k[$j++] = 48; //#14724 - $aload($geti($_.nums, 0, 4)); //#14724 - var _2D = $a(); //#14724 - $k[$j++] = _2D; //#14724 - $_.base48(); //#14724 - $k[$j++] = 2; //#14725 - $k[$j++] = $geti($_.nums, 4, 3); //#14725 - $_.base48(); //#14725 - } //#14725 - }; //#14725 - $k[$j++] = Infinity; //#14730 - for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14730 - $k[$j++] = 0; //#14730 - } //#14730 - $k[$j++] = 0; //#14730 - $_.numericruns = $a(); //#14730 - for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14739 - $_.i = _2L; //#14732 - var _2O = $get($_.msg, $_.i); //#14733 - if ((_2O >= 48) && (_2O <= 57)) { //#14737 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14735 - } else { //#14737 - $put($_.numericruns, $_.i, 0); //#14737 - } //#14737 - } //#14737 - $_.cws = $a(($_.msglen * 2) + 1); //#14741 - if (!bwipp_code49.__14754__) { //#14754 - $_ = Object.create($_); //#14754 - $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14753 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14753 - bwipp_code49.__14754__ = 1; //#14753 - $_ = Object.getPrototypeOf($_); //#14753 - } //#14753 - for (;;) { //#14790 - if ($_.append) { //#14763 - $_.mode = 1; //#14759 - $_.method = "alpha"; //#14760 - $_.i = 0; //#14761 - $_.j = 0; //#14761 - break; //#14762 - } //#14762 - if ($_.sam != -1) { //#14770 - $_.mode = 3; //#14765 - $k[$j++] = $_.cws; //#14766 - $k[$j++] = 0; //#14766 - for (var _2d = 0; _2d <= 43; _2d += 1) { //#14766 - $k[$j++] = _2d; //#14766 - if ($get($_.samval, _2d) != $_.sam) { //#14766 - $j--; //#14766 - } //#14766 - } //#14766 - var _2h = $k[--$j]; //#14766 - var _2i = $k[--$j]; //#14766 - $put($k[--$j], _2i, $f(_2h + 1)); //#14766 - $_.method = "alpha"; //#14767 - $_.i = 0; //#14768 - $_.j = 1; //#14768 - break; //#14769 - } //#14769 - if ($get($_.numericruns, 0) >= 5) { //#14775 - $_.mode = 2; //#14772 - $_.method = "numeric"; //#14773 - $_.i = 0; //#14773 - $_.j = 0; //#14773 - break; //#14774 - } //#14774 - var _2p = $get($_.charvals, $get($_.msg, 0)); //#14776 - $k[$j++] = _2p; //#14783 - if ($ne($type(_2p), 'arraytype')) { //#14783 - $j--; //#14778 - $_.mode = 0; //#14779 - $_.method = "alpha"; //#14780 - $_.i = 0; //#14781 - $_.j = 0; //#14781 - break; //#14782 - } //#14782 - var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14785 - $_.mode = _2t; //#14785 - $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14786 - $_.method = "alpha"; //#14787 - $_.i = 1; //#14788 - $_.j = 1; //#14788 - break; //#14789 - } //#14789 - for (;;) { //#14817 - if ($_.i == $_.msglen) { //#14794 - break; //#14794 - } //#14794 - for (;;) { //#14816 - if ($eq($_.method, "alpha")) { //#14805 - if ($get($_.numericruns, $_.i) >= 5) { //#14801 - $k[$j++] = $_.ns; //#14798 - $_.encodealpha(); //#14798 - $_.method = "numeric"; //#14799 - break; //#14800 - } //#14800 - $k[$j++] = $get($_.msg, $_.i); //#14802 - $_.encodealpha(); //#14802 - $_.i = $_.i + 1; //#14803 - break; //#14804 - } //#14804 - if ($eq($_.method, "numeric")) { //#14815 - if ($get($_.numericruns, $_.i) < 5) { //#14811 - $k[$j++] = $_.ns; //#14808 - $_.encodealpha(); //#14808 - $_.method = "alpha"; //#14809 - break; //#14810 - } //#14810 - $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#14812 - $_.encodenumeric(); //#14812 - $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#14813 - break; //#14814 - } //#14814 - } //#14814 - } //#14814 - $_.cws = $geti($_.cws, 0, $_.j); //#14818 - if (!bwipp_code49.__14832__) { //#14832 - $_ = Object.create($_); //#14832 - $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#14831 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14831 - bwipp_code49.__14832__ = 1; //#14831 - $_ = Object.getPrototypeOf($_); //#14831 - } //#14831 - $_.urows = $_.rows; //#14835 - var _3d = $_.metrics; //#14836 - for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#14844 - $_.m = $get(_3d, _3e); //#14837 - $_.r = $get($_.m, 0); //#14838 - $_.dcws = $get($_.m, 1); //#14839 - $_.okay = true; //#14840 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14841 - $_.okay = false; //#14841 - } //#14841 - if ($_.cws.length > $_.dcws) { //#14842 - $_.okay = false; //#14842 - } //#14842 - if ($_.okay) { //#14843 - break; //#14843 - } //#14843 - } //#14843 - if (!$_.okay) { //#14848 - $k[$j++] = 'bwipp.code49noValidSymbol#14847'; //#14847 - $k[$j++] = "Maximum length exceeded"; //#14847 - bwipp_raiseerror(); //#14847 - } //#14847 - $k[$j++] = Infinity; //#14851 - $aload($_.cws); //#14851 - for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#14851 - $k[$j++] = 48; //#14851 - } //#14851 - $_.cws = $a(); //#14851 - $_.ccs = $a($_.r * 8); //#14854 - $_.j = 0; //#14855 - for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#14862 - $_.i = _42; //#14857 - $_.cc = $geti($_.cws, $_.j, 7); //#14858 - $puti($_.ccs, $_.i * 8, $_.cc); //#14859 - var _4B = $_.cc; //#14860 - $k[$j++] = $_.ccs; //#14860 - $k[$j++] = ($_.i * 8) + 7; //#14860 - $k[$j++] = 0; //#14860 - for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#14860 - var _4F = $k[--$j]; //#14860 - $k[$j++] = $f(_4F + $get(_4B, _4C)); //#14860 - } //#14860 - var _4G = $k[--$j]; //#14860 - var _4H = $k[--$j]; //#14860 - $put($k[--$j], _4H, _4G % 49); //#14860 - $_.j = $_.j + 7; //#14861 - } //#14861 - if ($_.j < $_.dcws) { //#14865 - $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#14864 - } //#14864 - $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#14868 - $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#14869 - if (!bwipp_code49.__14878__) { //#14878 - $_ = Object.create($_); //#14878 - var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#14874 - $k[$j++] = _4Y; //#14875 - $k[$j++] = _4Y; //#14875 - $k[$j++] = Infinity; //#14875 - var _4Z = $k[--$j]; //#14875 - var _4b = $geti($k[--$j], 0, 32); //#14875 - $k[$j++] = _4Z; //#14875 - $k[$j++] = 20; //#14875 - $aload(_4b); //#14875 - $_.weightx = $a(); //#14875 - var _4d = $k[--$j]; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = Infinity; //#14876 - var _4e = $k[--$j]; //#14876 - var _4g = $geti($k[--$j], 1, 32); //#14876 - $k[$j++] = _4e; //#14876 - $k[$j++] = 16; //#14876 - $aload(_4g); //#14876 - $_.weighty = $a(); //#14876 - $k[$j++] = Infinity; //#14877 - var _4i = $k[--$j]; //#14877 - var _4k = $geti($k[--$j], 2, 32); //#14877 - $k[$j++] = _4i; //#14877 - $k[$j++] = 38; //#14877 - $aload(_4k); //#14877 - $_.weightz = $a(); //#14877 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14877 - bwipp_code49.__14878__ = 1; //#14877 - $_ = Object.getPrototypeOf($_); //#14877 - } //#14877 + var _1N = $k[--$j]; //#14914 + $k[$j++] = 0; //#14914 + $forall(_1N, function() { //#14914 + var _1O = $k[--$j]; //#14914 + var _1P = $k[--$j]; //#14914 + $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14914 + }); //#14914 + $k[$j++] = Infinity; //#14915 + var _1Q = $k[--$j]; //#14915 + var _1R = $k[--$j]; //#14915 + var _1S = $k[--$j]; //#14915 + $k[$j++] = _1Q; //#14915 + $k[$j++] = _1R; //#14915 + for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14915 + var _1V = $k[--$j]; //#14915 + $k[$j++] = _1V % 48; //#14915 + $k[$j++] = ~~(_1V / 48); //#14915 + } //#14915 + var _1W = $a(); //#14915 + $k[$j++] = _1W; //#14916 + $k[$j++] = Infinity; //#14916 + var _1X = $k[--$j]; //#14916 + var _1Y = $k[--$j]; //#14916 + $k[$j++] = _1X; //#14916 + $k[$j++] = _1Y; //#14916 + for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14916 + var _1a = $k[--$j]; //#14916 + $k[$j++] = $get(_1a, _1Z); //#14916 + $k[$j++] = _1a; //#14916 + } //#14916 + $j--; //#14916 + var _1c = $a(); //#14916 + $puti($_.cws, $_.j, _1c); //#14917 + $_.j = _1c.length + $_.j; //#14918 + }; //#14918 + $_.encodenumeric = function() { + $_.nums = $k[--$j]; //#14922 + var _1i = $_.nums.length; //#14923 + var _1j = _1i % 5; //#14923 + $k[$j++] = 'pre'; //#14923 + $k[$j++] = _1i; //#14923 + $k[$j++] = _1j; //#14923 + if (_1j != 2) { //#14923 + var _1k = $k[--$j]; //#14923 + var _1l = $k[--$j]; //#14923 + $k[$j++] = $f(_1l - _1k); //#14923 + } else { //#14923 + var _1m = $k[--$j]; //#14923 + var _1n = $k[--$j]; //#14923 + $k[$j++] = $f($f(_1n - _1m) - 5); //#14923 + } //#14923 + var _1o = $k[--$j]; //#14923 + $_[$k[--$j]] = _1o; //#14923 + for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14924 + $k[$j++] = 3; //#14924 + $k[$j++] = $geti($_.nums, _1s, 5); //#14924 + $_.base48(); //#14924 + } //#14924 + $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14925 + var _21 = $_.nums.length; //#14927 + $k[$j++] = _21; //#14927 + if (_21 == 1) { //#14927 + $k[$j++] = $get($_.nums, $_.i); //#14927 + $_.encodealpha(); //#14927 + } //#14927 + var _25 = $k[--$j]; //#14928 + $k[$j++] = _25; //#14928 + if (_25 == 3) { //#14928 + $k[$j++] = 2; //#14928 + $k[$j++] = $_.nums; //#14928 + $_.base48(); //#14928 + } //#14928 + var _27 = $k[--$j]; //#14929 + $k[$j++] = _27; //#14929 + if (_27 == 4) { //#14929 + $k[$j++] = 3; //#14929 + $k[$j++] = Infinity; //#14929 + $k[$j++] = 49; //#14929 + $k[$j++] = 48; //#14929 + $aload($_.nums); //#14929 + var _29 = $a(); //#14929 + $k[$j++] = _29; //#14929 + $_.base48(); //#14929 + } //#14929 + if ($k[--$j] == 7) { //#14933 + $k[$j++] = 3; //#14931 + $k[$j++] = Infinity; //#14931 + $k[$j++] = 49; //#14931 + $k[$j++] = 48; //#14931 + $aload($geti($_.nums, 0, 4)); //#14931 + var _2D = $a(); //#14931 + $k[$j++] = _2D; //#14931 + $_.base48(); //#14931 + $k[$j++] = 2; //#14932 + $k[$j++] = $geti($_.nums, 4, 3); //#14932 + $_.base48(); //#14932 + } //#14932 + }; //#14932 + $k[$j++] = Infinity; //#14937 + for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14937 + $k[$j++] = 0; //#14937 + } //#14937 + $k[$j++] = 0; //#14937 + $_.numericruns = $a(); //#14937 + for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14946 + $_.i = _2L; //#14939 + var _2O = $get($_.msg, $_.i); //#14940 + if ((_2O >= 48) && (_2O <= 57)) { //#14944 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14942 + } else { //#14944 + $put($_.numericruns, $_.i, 0); //#14944 + } //#14944 + } //#14944 + $_.cws = $a(($_.msglen * 2) + 1); //#14948 + if (!bwipp_code49.__14961__) { //#14961 + $_ = Object.create($_); //#14961 + $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14960 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14960 + bwipp_code49.__14961__ = 1; //#14960 + $_ = Object.getPrototypeOf($_); //#14960 + } //#14960 + for (;;) { //#14997 + if ($_.append) { //#14970 + $_.mode = 1; //#14966 + $_.method = "alpha"; //#14967 + $_.i = 0; //#14968 + $_.j = 0; //#14968 + break; //#14969 + } //#14969 + if ($_.sam != -1) { //#14977 + $_.mode = 3; //#14972 + $k[$j++] = $_.cws; //#14973 + $k[$j++] = 0; //#14973 + for (var _2d = 0; _2d <= 43; _2d += 1) { //#14973 + $k[$j++] = _2d; //#14973 + if ($get($_.samval, _2d) != $_.sam) { //#14973 + $j--; //#14973 + } //#14973 + } //#14973 + var _2h = $k[--$j]; //#14973 + var _2i = $k[--$j]; //#14973 + $put($k[--$j], _2i, $f(_2h + 1)); //#14973 + $_.method = "alpha"; //#14974 + $_.i = 0; //#14975 + $_.j = 1; //#14975 + break; //#14976 + } //#14976 + if ($get($_.numericruns, 0) >= 5) { //#14982 + $_.mode = 2; //#14979 + $_.method = "numeric"; //#14980 + $_.i = 0; //#14980 + $_.j = 0; //#14980 + break; //#14981 + } //#14981 + var _2p = $get($_.charvals, $get($_.msg, 0)); //#14983 + $k[$j++] = _2p; //#14990 + if ($ne($type(_2p), 'arraytype')) { //#14990 + $j--; //#14985 + $_.mode = 0; //#14986 + $_.method = "alpha"; //#14987 + $_.i = 0; //#14988 + $_.j = 0; //#14988 + break; //#14989 + } //#14989 + var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14992 + $_.mode = _2t; //#14992 + $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14993 + $_.method = "alpha"; //#14994 + $_.i = 1; //#14995 + $_.j = 1; //#14995 + break; //#14996 + } //#14996 + for (;;) { //#15024 + if ($_.i == $_.msglen) { //#15001 + break; //#15001 + } //#15001 + for (;;) { //#15023 + if ($eq($_.method, "alpha")) { //#15012 + if ($get($_.numericruns, $_.i) >= 5) { //#15008 + $k[$j++] = $_.ns; //#15005 + $_.encodealpha(); //#15005 + $_.method = "numeric"; //#15006 + break; //#15007 + } //#15007 + $k[$j++] = $get($_.msg, $_.i); //#15009 + $_.encodealpha(); //#15009 + $_.i = $_.i + 1; //#15010 + break; //#15011 + } //#15011 + if ($eq($_.method, "numeric")) { //#15022 + if ($get($_.numericruns, $_.i) < 5) { //#15018 + $k[$j++] = $_.ns; //#15015 + $_.encodealpha(); //#15015 + $_.method = "alpha"; //#15016 + break; //#15017 + } //#15017 + $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#15019 + $_.encodenumeric(); //#15019 + $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#15020 + break; //#15021 + } //#15021 + } //#15021 + } //#15021 + $_.cws = $geti($_.cws, 0, $_.j); //#15025 + if (!bwipp_code49.__15039__) { //#15039 + $_ = Object.create($_); //#15039 + $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#15038 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15038 + bwipp_code49.__15039__ = 1; //#15038 + $_ = Object.getPrototypeOf($_); //#15038 + } //#15038 + $_.urows = $_.rows; //#15042 + var _3d = $_.metrics; //#15043 + for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#15051 + $_.m = $get(_3d, _3e); //#15044 + $_.r = $get($_.m, 0); //#15045 + $_.dcws = $get($_.m, 1); //#15046 + $_.okay = true; //#15047 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#15048 + $_.okay = false; //#15048 + } //#15048 + if ($_.cws.length > $_.dcws) { //#15049 + $_.okay = false; //#15049 + } //#15049 + if ($_.okay) { //#15050 + break; //#15050 + } //#15050 + } //#15050 + if (!$_.okay) { //#15055 + $k[$j++] = 'bwipp.code49noValidSymbol#15054'; //#15054 + $k[$j++] = "Maximum length exceeded"; //#15054 + bwipp_raiseerror(); //#15054 + } //#15054 + $k[$j++] = Infinity; //#15058 + $aload($_.cws); //#15058 + for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#15058 + $k[$j++] = 48; //#15058 + } //#15058 + $_.cws = $a(); //#15058 + $_.ccs = $a($_.r * 8); //#15061 + $_.j = 0; //#15062 + for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#15069 + $_.i = _42; //#15064 + $_.cc = $geti($_.cws, $_.j, 7); //#15065 + $puti($_.ccs, $_.i * 8, $_.cc); //#15066 + var _4B = $_.cc; //#15067 + $k[$j++] = $_.ccs; //#15067 + $k[$j++] = ($_.i * 8) + 7; //#15067 + $k[$j++] = 0; //#15067 + for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#15067 + var _4F = $k[--$j]; //#15067 + $k[$j++] = $f(_4F + $get(_4B, _4C)); //#15067 + } //#15067 + var _4G = $k[--$j]; //#15067 + var _4H = $k[--$j]; //#15067 + $put($k[--$j], _4H, _4G % 49); //#15067 + $_.j = $_.j + 7; //#15068 + } //#15068 + if ($_.j < $_.dcws) { //#15072 + $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#15071 + } //#15071 + $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#15075 + $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#15076 + if (!bwipp_code49.__15085__) { //#15085 + $_ = Object.create($_); //#15085 + var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#15081 + $k[$j++] = _4Y; //#15082 + $k[$j++] = _4Y; //#15082 + $k[$j++] = Infinity; //#15082 + var _4Z = $k[--$j]; //#15082 + var _4b = $geti($k[--$j], 0, 32); //#15082 + $k[$j++] = _4Z; //#15082 + $k[$j++] = 20; //#15082 + $aload(_4b); //#15082 + $_.weightx = $a(); //#15082 + var _4d = $k[--$j]; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = Infinity; //#15083 + var _4e = $k[--$j]; //#15083 + var _4g = $geti($k[--$j], 1, 32); //#15083 + $k[$j++] = _4e; //#15083 + $k[$j++] = 16; //#15083 + $aload(_4g); //#15083 + $_.weighty = $a(); //#15083 + $k[$j++] = Infinity; //#15084 + var _4i = $k[--$j]; //#15084 + var _4k = $geti($k[--$j], 2, 32); //#15084 + $k[$j++] = _4i; //#15084 + $k[$j++] = 38; //#15084 + $aload(_4k); //#15084 + $_.weightz = $a(); //#15084 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15084 + bwipp_code49.__15085__ = 1; //#15084 + $_ = Object.getPrototypeOf($_); //#15084 + } //#15084 $_.calccheck = function() { - $_.weights = $k[--$j]; //#14880 - $_.score = 0; //#14881 - for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#14886 - $_.i = _4q; //#14883 - $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#14885 - } //#14885 - $k[$j++] = $_.score; //#14887 - }; //#14887 - $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#14889 - if ($_.r >= 7) { //#14896 - $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#14893 - $k[$j++] = $_.weightz; //#14893 - $_.calccheck(); //#14893 - var _5A = $k[--$j]; //#14893 - var _5C = $f($k[--$j] + _5A) % 2401; //#14894 - $k[$j++] = ~~(_5C / 49); //#14894 - $k[$j++] = _5C % 49; //#14894 - $astore($a(2)); //#14894 - $puti($_.lastrow, 0, $k[--$j]); //#14895 - } //#14895 - $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#14897 - $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#14900 - $k[$j++] = $_.weighty; //#14900 - $_.calccheck(); //#14900 - var _5O = $k[--$j]; //#14900 - var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#14902 - $_.wr2 = _5U; //#14902 - $k[$j++] = ~~(_5U / 49); //#14903 - $k[$j++] = _5U % 49; //#14903 - $astore($a(2)); //#14903 - $puti($_.lastrow, 2, $k[--$j]); //#14904 - $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#14907 - $k[$j++] = $_.weightx; //#14907 - $_.calccheck(); //#14907 - var _5c = $k[--$j]; //#14907 - var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#14911 - $k[$j++] = ~~(_5m / 49); //#14911 - $k[$j++] = _5m % 49; //#14911 - $astore($a(2)); //#14911 - $puti($_.lastrow, 4, $k[--$j]); //#14912 - var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#14915 - $k[$j++] = 0; //#14915 - for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#14915 - var _5w = $k[--$j]; //#14915 - $k[$j++] = $f(_5w + $get(_5s, _5t)); //#14915 - } //#14915 - $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#14916 - var _61 = $get($_.options, 'debugcws') !== undefined; //#14918 - if (_61) { //#14918 - $k[$j++] = 'bwipp.debugcws#14918'; //#14918 - $k[$j++] = $_.ccs; //#14918 - bwipp_raiseerror(); //#14918 - } //#14918 - if (!bwipp_code49.__15616__) { //#15616 - $_ = Object.create($_); //#15616 - $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15611 - $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15615 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15615 - bwipp_code49.__15616__ = 1; //#15615 - $_ = Object.getPrototypeOf($_); //#15615 - } //#15615 - $_.rowbits = $a($_.r); //#15619 - for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15639 - $_.i = _6C; //#15621 - $k[$j++] = 'p'; //#15622 - if ($_.i != $f($_.r - 1)) { //#15622 - $k[$j++] = $get($_.parity, $_.i); //#15622 - } else { //#15622 - $k[$j++] = "0000"; //#15622 - } //#15622 - var _6I = $k[--$j]; //#15622 - $_[$k[--$j]] = _6I; //#15622 - $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15623 - $k[$j++] = Infinity; //#15625 - for (var _6N = 0; _6N <= 7; _6N += 2) { //#15625 - $aload($geti($_.ccrow, _6N, 2)); //#15625 - var _6Q = $k[--$j]; //#15625 - var _6R = $k[--$j]; //#15625 - $k[$j++] = $f(_6Q + (_6R * 49)); //#15625 - } //#15625 - $_.scrow = $a(); //#15625 - $k[$j++] = Infinity; //#15633 - $k[$j++] = 10; //#15632 - $k[$j++] = 1; //#15632 - $k[$j++] = 1; //#15632 - for (var _6T = 0; _6T <= 3; _6T += 1) { //#15632 - $_.j = _6T; //#15630 - $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15631 - var _6d = $k[--$j]; //#15631 - $k[$j++] = $f(_6d - 48); //#15631 - }); //#15631 - } //#15631 - $k[$j++] = 4; //#15633 - $k[$j++] = 1; //#15633 - $_.sbs = $a(); //#15633 - $k[$j++] = Infinity; //#15635 - var _6f = $_.sbs; //#15636 - $k[$j++] = 1; //#15636 - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15636 - var _6j = $k[--$j]; //#15636 - var _6k = (_6j == 0) ? 1 : 0; //#15636 - $k[$j++] = _6j; //#15636 - for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15636 - $k[$j++] = _6k //#15636 - } //#15636 - } //#15636 - $astore($a($counttomark() - 1)); //#15637 - var _6p = $k[--$j]; //#15637 - var _6q = $k[--$j]; //#15637 - $k[$j++] = _6p; //#15637 - $k[$j++] = _6q; //#15637 - $j--; //#15637 - var _6r = $k[--$j]; //#15637 - var _6s = $k[--$j]; //#15637 - $k[$j++] = _6r; //#15637 - $k[$j++] = _6s; //#15637 - $j--; //#15637 - $put($_.rowbits, $_.i, $k[--$j]); //#15638 - } //#15638 - $k[$j++] = Infinity; //#15650 - for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15643 - $k[$j++] = 1; //#15643 - } //#15643 - for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15648 - $_.i = _71; //#15645 - for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15646 - $aload($get($_.rowbits, $_.i)); //#15646 - } //#15646 - for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15647 - for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15647 - $k[$j++] = 1; //#15647 - } //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - } //#15647 - for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15649 - $aload($get($_.rowbits, $f($_.r - 1))); //#15649 - } //#15649 - for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15650 - $k[$j++] = 1; //#15650 - } //#15650 - $_.pixs = $a(); //#15650 + $_.weights = $k[--$j]; //#15087 + $_.score = 0; //#15088 + for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#15093 + $_.i = _4q; //#15090 + $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#15092 + } //#15092 + $k[$j++] = $_.score; //#15094 + }; //#15094 + $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#15096 + if ($_.r >= 7) { //#15103 + $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#15100 + $k[$j++] = $_.weightz; //#15100 + $_.calccheck(); //#15100 + var _5A = $k[--$j]; //#15100 + var _5C = $f($k[--$j] + _5A) % 2401; //#15101 + $k[$j++] = ~~(_5C / 49); //#15101 + $k[$j++] = _5C % 49; //#15101 + $astore($a(2)); //#15101 + $puti($_.lastrow, 0, $k[--$j]); //#15102 + } //#15102 + $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#15104 + $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#15107 + $k[$j++] = $_.weighty; //#15107 + $_.calccheck(); //#15107 + var _5O = $k[--$j]; //#15107 + var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#15109 + $_.wr2 = _5U; //#15109 + $k[$j++] = ~~(_5U / 49); //#15110 + $k[$j++] = _5U % 49; //#15110 + $astore($a(2)); //#15110 + $puti($_.lastrow, 2, $k[--$j]); //#15111 + $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#15114 + $k[$j++] = $_.weightx; //#15114 + $_.calccheck(); //#15114 + var _5c = $k[--$j]; //#15114 + var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#15118 + $k[$j++] = ~~(_5m / 49); //#15118 + $k[$j++] = _5m % 49; //#15118 + $astore($a(2)); //#15118 + $puti($_.lastrow, 4, $k[--$j]); //#15119 + var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#15122 + $k[$j++] = 0; //#15122 + for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#15122 + var _5w = $k[--$j]; //#15122 + $k[$j++] = $f(_5w + $get(_5s, _5t)); //#15122 + } //#15122 + $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#15123 + var _61 = $get($_.options, 'debugcws') !== undefined; //#15125 + if (_61) { //#15125 + $k[$j++] = 'bwipp.debugcws#15125'; //#15125 + $k[$j++] = $_.ccs; //#15125 + bwipp_raiseerror(); //#15125 + } //#15125 + if (!bwipp_code49.__15823__) { //#15823 + $_ = Object.create($_); //#15823 + $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15818 + $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15822 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15822 + bwipp_code49.__15823__ = 1; //#15822 + $_ = Object.getPrototypeOf($_); //#15822 + } //#15822 + $_.rowbits = $a($_.r); //#15826 + for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15846 + $_.i = _6C; //#15828 + $k[$j++] = 'p'; //#15829 + if ($_.i != $f($_.r - 1)) { //#15829 + $k[$j++] = $get($_.parity, $_.i); //#15829 + } else { //#15829 + $k[$j++] = "0000"; //#15829 + } //#15829 + var _6I = $k[--$j]; //#15829 + $_[$k[--$j]] = _6I; //#15829 + $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15830 + $k[$j++] = Infinity; //#15831 + for (var _6N = 0; _6N <= 7; _6N += 2) { //#15832 + $aload($geti($_.ccrow, _6N, 2)); //#15832 + var _6Q = $k[--$j]; //#15832 + var _6R = $k[--$j]; //#15832 + $k[$j++] = $f(_6Q + (_6R * 49)); //#15832 + } //#15832 + $_.scrow = $a(); //#15832 + $k[$j++] = Infinity; //#15834 + $k[$j++] = 10; //#15839 + $k[$j++] = 1; //#15839 + $k[$j++] = 1; //#15839 + for (var _6T = 0; _6T <= 3; _6T += 1) { //#15839 + $_.j = _6T; //#15837 + $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15838 + var _6d = $k[--$j]; //#15838 + $k[$j++] = $f(_6d - 48); //#15838 + }); //#15838 + } //#15838 + $k[$j++] = 4; //#15840 + $k[$j++] = 1; //#15840 + $_.sbs = $a(); //#15840 + $k[$j++] = Infinity; //#15842 + var _6f = $_.sbs; //#15843 + $k[$j++] = 1; //#15843 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15843 + var _6j = $k[--$j]; //#15843 + var _6k = (_6j == 0) ? 1 : 0; //#15843 + $k[$j++] = _6j; //#15843 + for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15843 + $k[$j++] = _6k //#15843 + } //#15843 + } //#15843 + $astore($a($counttomark() - 1)); //#15844 + var _6p = $k[--$j]; //#15844 + var _6q = $k[--$j]; //#15844 + $k[$j++] = _6p; //#15844 + $k[$j++] = _6q; //#15844 + $j--; //#15844 + var _6r = $k[--$j]; //#15844 + var _6s = $k[--$j]; //#15844 + $k[$j++] = _6r; //#15844 + $k[$j++] = _6s; //#15844 + $j--; //#15844 + $put($_.rowbits, $_.i, $k[--$j]); //#15845 + } //#15845 + $k[$j++] = Infinity; //#15849 + for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15850 + $k[$j++] = 1; //#15850 + } //#15850 + for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15855 + $_.i = _71; //#15852 + for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15853 + $aload($get($_.rowbits, $_.i)); //#15853 + } //#15853 + for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15854 + for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15854 + $k[$j++] = 1; //#15854 + } //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + } //#15854 + for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15856 + $aload($get($_.rowbits, $f($_.r - 1))); //#15856 + } //#15856 + for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15857 + $k[$j++] = 1; //#15857 + } //#15857 + $_.pixs = $a(); //#15857 var _7T = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -19073,4438 +19394,4524 @@ function bwipp_code49() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#15661 - $k[$j++] = _7T; //#15664 - if (!$_.dontdraw) { //#15664 - bwipp_renmatrix(); //#15664 - } //#15664 - $_ = Object.getPrototypeOf($_); //#15666 - $_ = Object.getPrototypeOf($_); //#15668 -} - + ]); //#15868 + $k[$j++] = _7T; //#15871 + if (!$_.dontdraw) { //#15871 + bwipp_renmatrix(); //#15871 + } //#15871 + $_ = Object.getPrototypeOf($_); //#15873 + $_ = Object.getPrototypeOf($_); //#15875 +} //bwipp_code49 function bwipp_flattermarken() { - $_ = Object.create($_); //#15960 - $_.dontdraw = false; //#15963 - $_.includetext = false; //#15964 - $_.textfont = "OCR-B"; //#15965 - $_.textsize = 10; //#15966 - $_.textyoffset = -8; //#15967 - $_.height = 0.3; //#15968 - $k[$j++] = $_; //#15970 - bwipp_processoptions(); //#15970 - $_.options = $k[--$j]; //#15970 - $_.barcode = $k[--$j]; //#15971 - bwipp_loadctx(bwipp_flattermarken) //#15973 - $forall($_.barcode, function() { //#15980 - var _3 = $k[--$j]; //#15977 - if ((_3 < 48) || (_3 > 57)) { //#15979 - $k[$j++] = 'bwipp.flattermarkenBadCharacter#15978'; //#15978 - $k[$j++] = "Flattermarken must contain only digits"; //#15978 - bwipp_raiseerror(); //#15978 - } //#15978 - }); //#15978 - if (!bwipp_flattermarken.__15991__) { //#15991 - $_ = Object.create($_); //#15991 - $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#15987 - $_.barchars = "1234567890"; //#15990 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#15990 - bwipp_flattermarken.__15991__ = 1; //#15990 - $_ = Object.getPrototypeOf($_); //#15990 - } //#15990 - $_.barlen = $_.barcode.length; //#15993 - $_.sbs = $s($_.barlen * 4); //#15995 - $_.txt = $a($_.barlen); //#15996 - for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16008 - $_.i = _D; //#15999 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16001 - $j--; //#16002 - $_.indx = $k[--$j].length; //#16003 - $j -= 2; //#16004 - $_.enc = $get($_.encs, $_.indx); //#16005 - $puti($_.sbs, $_.i * 4, $_.enc); //#16006 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16007 - } //#16007 - $k[$j++] = Infinity; //#16017 - $k[$j++] = Infinity; //#16013 - var _Z = $_.sbs; //#16013 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16013 - $k[$j++] = $get(_Z, _a) - 48; //#16013 - } //#16013 - var _d = $a(); //#16013 - $k[$j++] = Infinity; //#16014 - for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16014 - $k[$j++] = $_.height; //#16014 - } //#16014 - var _i = $a(); //#16014 - $k[$j++] = Infinity; //#16015 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16015 - $k[$j++] = 0; //#16015 - } //#16015 - var _m = $a(); //#16015 - $k[$j++] = 'ren'; //#16017 - $k[$j++] = bwipp_renlinear; //#16017 - $k[$j++] = 'sbs'; //#16017 - $k[$j++] = _d; //#16017 - $k[$j++] = 'bhs'; //#16017 - $k[$j++] = _i; //#16017 - $k[$j++] = 'bbs'; //#16017 - $k[$j++] = _m; //#16017 - $k[$j++] = 'txt'; //#16017 - $k[$j++] = $_.txt; //#16017 - $k[$j++] = 'opt'; //#16017 - $k[$j++] = $_.options; //#16017 - var _p = $d(); //#16017 - $k[$j++] = _p; //#16020 - if (!$_.dontdraw) { //#16020 - bwipp_renlinear(); //#16020 - } //#16020 - $_ = Object.getPrototypeOf($_); //#16022 - $_ = Object.getPrototypeOf($_); //#16024 -} - + $_ = Object.create($_); //#16169 + $_.dontdraw = false; //#16172 + $_.includetext = false; //#16173 + $_.textfont = "OCR-B"; //#16174 + $_.textsize = 10; //#16175 + $_.textyoffset = -8; //#16176 + $_.height = 0.3; //#16177 + $k[$j++] = $_; //#16179 + bwipp_processoptions(); //#16179 + $_.options = $k[--$j]; //#16179 + $_.barcode = $k[--$j]; //#16180 + bwipp_loadctx(bwipp_flattermarken) //#16182 + $forall($_.barcode, function() { //#16189 + var _3 = $k[--$j]; //#16186 + if ((_3 < 48) || (_3 > 57)) { //#16188 + $k[$j++] = 'bwipp.flattermarkenBadCharacter#16187'; //#16187 + $k[$j++] = "Flattermarken must contain only digits"; //#16187 + bwipp_raiseerror(); //#16187 + } //#16187 + }); //#16187 + if (!bwipp_flattermarken.__16200__) { //#16200 + $_ = Object.create($_); //#16200 + $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#16196 + $_.barchars = "1234567890"; //#16199 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#16199 + bwipp_flattermarken.__16200__ = 1; //#16199 + $_ = Object.getPrototypeOf($_); //#16199 + } //#16199 + $_.barlen = $_.barcode.length; //#16202 + $_.sbs = $s($_.barlen * 4); //#16204 + $_.txt = $a($_.barlen); //#16205 + for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16217 + $_.i = _D; //#16208 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16210 + $j--; //#16211 + $_.indx = $k[--$j].length; //#16212 + $j -= 2; //#16213 + $_.enc = $get($_.encs, $_.indx); //#16214 + $puti($_.sbs, $_.i * 4, $_.enc); //#16215 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16216 + } //#16216 + $k[$j++] = Infinity; //#16220 + $k[$j++] = Infinity; //#16222 + var _Z = $_.sbs; //#16222 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16222 + $k[$j++] = $get(_Z, _a) - 48; //#16222 + } //#16222 + var _d = $a(); //#16222 + $k[$j++] = Infinity; //#16223 + for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16223 + $k[$j++] = $_.height; //#16223 + } //#16223 + var _i = $a(); //#16223 + $k[$j++] = Infinity; //#16224 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16224 + $k[$j++] = 0; //#16224 + } //#16224 + var _m = $a(); //#16224 + $k[$j++] = 'ren'; //#16226 + $k[$j++] = bwipp_renlinear; //#16226 + $k[$j++] = 'sbs'; //#16226 + $k[$j++] = _d; //#16226 + $k[$j++] = 'bhs'; //#16226 + $k[$j++] = _i; //#16226 + $k[$j++] = 'bbs'; //#16226 + $k[$j++] = _m; //#16226 + $k[$j++] = 'txt'; //#16226 + $k[$j++] = $_.txt; //#16226 + $k[$j++] = 'opt'; //#16226 + $k[$j++] = $_.options; //#16226 + var _p = $d(); //#16226 + $k[$j++] = _p; //#16229 + if (!$_.dontdraw) { //#16229 + bwipp_renlinear(); //#16229 + } //#16229 + $_ = Object.getPrototypeOf($_); //#16231 + $_ = Object.getPrototypeOf($_); //#16233 +} //bwipp_flattermarken function bwipp_raw() { - $_ = Object.create($_); //#16052 - $_.dontdraw = false; //#16055 - $_.height = 1; //#16056 - $k[$j++] = $_; //#16058 - bwipp_processoptions(); //#16058 - $_.options = $k[--$j]; //#16058 - $_.barcode = $k[--$j]; //#16059 - $forall($_.barcode, function() { //#16066 - var _3 = $k[--$j]; //#16063 - if ((_3 < 49) || (_3 > 57)) { //#16065 - $k[$j++] = 'bwipp.rawBadCharacter#16064'; //#16064 - $k[$j++] = "Raw must contain only digits 1 to 9"; //#16064 - bwipp_raiseerror(); //#16064 - } //#16064 - }); //#16064 - $k[$j++] = Infinity; //#16074 - $k[$j++] = Infinity; //#16071 - $forall($_.barcode, function() { //#16071 - var _5 = $k[--$j]; //#16071 - $k[$j++] = $f(_5 - 48); //#16071 - }); //#16071 - var _6 = $a(); //#16071 - $k[$j++] = Infinity; //#16072 - for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16072 - $k[$j++] = $_.height; //#16072 - } //#16072 - var _B = $a(); //#16072 - $k[$j++] = Infinity; //#16073 - for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16073 - $k[$j++] = 0; //#16073 - } //#16073 - var _F = $a(); //#16073 - $k[$j++] = 'ren'; //#16074 - $k[$j++] = bwipp_renlinear; //#16074 - $k[$j++] = 'sbs'; //#16074 - $k[$j++] = _6; //#16074 - $k[$j++] = 'bhs'; //#16074 - $k[$j++] = _B; //#16074 - $k[$j++] = 'bbs'; //#16074 - $k[$j++] = _F; //#16074 - $k[$j++] = 'opt'; //#16074 - $k[$j++] = $_.options; //#16074 - var _H = $d(); //#16074 - $k[$j++] = _H; //#16077 - if (!$_.dontdraw) { //#16077 - bwipp_renlinear(); //#16077 - } //#16077 - $_ = Object.getPrototypeOf($_); //#16079 -} - + $_ = Object.create($_); //#16261 + $_.dontdraw = false; //#16264 + $_.height = 1; //#16265 + $k[$j++] = $_; //#16267 + bwipp_processoptions(); //#16267 + $_.options = $k[--$j]; //#16267 + $_.barcode = $k[--$j]; //#16268 + $forall($_.barcode, function() { //#16275 + var _3 = $k[--$j]; //#16272 + if ((_3 < 49) || (_3 > 57)) { //#16274 + $k[$j++] = 'bwipp.rawBadCharacter#16273'; //#16273 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#16273 + bwipp_raiseerror(); //#16273 + } //#16273 + }); //#16273 + $k[$j++] = Infinity; //#16278 + $k[$j++] = Infinity; //#16280 + $forall($_.barcode, function() { //#16280 + var _5 = $k[--$j]; //#16280 + $k[$j++] = $f(_5 - 48); //#16280 + }); //#16280 + var _6 = $a(); //#16280 + $k[$j++] = Infinity; //#16281 + for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16281 + $k[$j++] = $_.height; //#16281 + } //#16281 + var _B = $a(); //#16281 + $k[$j++] = Infinity; //#16282 + for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16282 + $k[$j++] = 0; //#16282 + } //#16282 + var _F = $a(); //#16282 + $k[$j++] = 'ren'; //#16283 + $k[$j++] = bwipp_renlinear; //#16283 + $k[$j++] = 'sbs'; //#16283 + $k[$j++] = _6; //#16283 + $k[$j++] = 'bhs'; //#16283 + $k[$j++] = _B; //#16283 + $k[$j++] = 'bbs'; //#16283 + $k[$j++] = _F; //#16283 + $k[$j++] = 'opt'; //#16283 + $k[$j++] = $_.options; //#16283 + var _H = $d(); //#16283 + $k[$j++] = _H; //#16286 + if (!$_.dontdraw) { //#16286 + bwipp_renlinear(); //#16286 + } //#16286 + $_ = Object.getPrototypeOf($_); //#16288 +} //bwipp_raw function bwipp_daft() { - $_ = Object.create($_); //#16107 - $_.dontdraw = false; //#16110 - $_.height = 0.175; //#16111 - $k[$j++] = $_; //#16113 - bwipp_processoptions(); //#16113 - $_.options = $k[--$j]; //#16113 - $_.barcode = $k[--$j]; //#16114 - $forall($_.barcode, function() { //#16120 - var _3 = $k[--$j]; //#16117 - if ((_3 != 68) && ((_3 != 65) && ((_3 != 70) && (_3 != 84)))) { //#16119 - $k[$j++] = 'bwipp.daftBadCharacter#16118'; //#16118 - $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16118 - bwipp_raiseerror(); //#16118 - } //#16118 - }); //#16118 - $_.barlen = $_.barcode.length; //#16122 - $_.bbs = $a($_.barlen); //#16124 - $_.bhs = $a($_.barlen); //#16125 - for (var _B = 0, _A = $_.barlen - 1; _B <= _A; _B += 1) { //#16145 - $_.i = _B; //#16127 - $_.enc = $geti($_.barcode, $_.i, 1); //#16128 - if ($eq($_.enc, "D")) { //#16132 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16130 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16131 - } //#16131 - if ($eq($_.enc, "A")) { //#16136 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16134 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16135 - } //#16135 - if ($eq($_.enc, "F")) { //#16140 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16138 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16139 - } //#16139 - if ($eq($_.enc, "T")) { //#16144 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16142 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16143 - } //#16143 - } //#16143 - $k[$j++] = Infinity; //#16153 - var _h = $_.bbs; //#16150 - var _i = $_.bhs; //#16151 - $k[$j++] = Infinity; //#16152 - for (var _k = 0, _l = $_.bhs.length - 1; _k < _l; _k++) { //#16152 - $k[$j++] = 1.44; //#16152 - $k[$j++] = 1.872; //#16152 - } //#16152 - $k[$j++] = 1.44; //#16152 - var _m = $a(); //#16152 - $k[$j++] = 'ren'; //#16153 - $k[$j++] = bwipp_renlinear; //#16153 - $k[$j++] = 'bbs'; //#16153 - $k[$j++] = _h; //#16153 - $k[$j++] = 'bhs'; //#16153 - $k[$j++] = _i; //#16153 - $k[$j++] = 'sbs'; //#16153 - $k[$j++] = _m; //#16153 - $k[$j++] = 'opt'; //#16153 - $k[$j++] = $_.options; //#16153 - var _o = $d(); //#16153 - $k[$j++] = _o; //#16156 - if (!$_.dontdraw) { //#16156 - bwipp_renlinear(); //#16156 - } //#16156 - $_ = Object.getPrototypeOf($_); //#16158 -} - + $_ = Object.create($_); //#16316 + $_.dontdraw = false; //#16319 + $_.height = 0.175; //#16320 + $k[$j++] = $_; //#16322 + bwipp_processoptions(); //#16322 + $_.options = $k[--$j]; //#16322 + $_.barcode = $k[--$j]; //#16323 + if ($eq($_.barcode, "")) { //#16327 + $k[$j++] = 'bwipp.daftEmptyData#16326'; //#16326 + $k[$j++] = "The data must not be empty"; //#16326 + bwipp_raiseerror(); //#16326 + } //#16326 + $forall($_.barcode, function() { //#16333 + var _4 = $k[--$j]; //#16330 + if ((_4 != 68) && ((_4 != 65) && ((_4 != 70) && (_4 != 84)))) { //#16332 + $k[$j++] = 'bwipp.daftBadCharacter#16331'; //#16331 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16331 + bwipp_raiseerror(); //#16331 + } //#16331 + }); //#16331 + $_.barlen = $_.barcode.length; //#16335 + $_.bbs = $a($_.barlen); //#16337 + $_.bhs = $a($_.barlen); //#16338 + for (var _C = 0, _B = $_.barlen - 1; _C <= _B; _C += 1) { //#16358 + $_.i = _C; //#16340 + $_.enc = $geti($_.barcode, $_.i, 1); //#16341 + if ($eq($_.enc, "D")) { //#16345 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16343 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16344 + } //#16344 + if ($eq($_.enc, "A")) { //#16349 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16347 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16348 + } //#16348 + if ($eq($_.enc, "F")) { //#16353 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16351 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16352 + } //#16352 + if ($eq($_.enc, "T")) { //#16357 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16355 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16356 + } //#16356 + } //#16356 + $k[$j++] = Infinity; //#16361 + var _i = $_.bbs; //#16363 + var _j = $_.bhs; //#16364 + $k[$j++] = Infinity; //#16365 + for (var _l = 0, _m = $_.bhs.length - 1; _l < _m; _l++) { //#16365 + $k[$j++] = 1.44; //#16365 + $k[$j++] = 1.872; //#16365 + } //#16365 + $k[$j++] = 1.44; //#16365 + var _n = $a(); //#16365 + $k[$j++] = 'ren'; //#16366 + $k[$j++] = bwipp_renlinear; //#16366 + $k[$j++] = 'bbs'; //#16366 + $k[$j++] = _i; //#16366 + $k[$j++] = 'bhs'; //#16366 + $k[$j++] = _j; //#16366 + $k[$j++] = 'sbs'; //#16366 + $k[$j++] = _n; //#16366 + $k[$j++] = 'opt'; //#16366 + $k[$j++] = $_.options; //#16366 + var _p = $d(); //#16366 + $k[$j++] = _p; //#16369 + if (!$_.dontdraw) { //#16369 + bwipp_renlinear(); //#16369 + } //#16369 + $_ = Object.getPrototypeOf($_); //#16371 +} //bwipp_daft function bwipp_symbol() { - $_ = Object.create($_); //#16186 - $_.dontdraw = false; //#16189 - $k[$j++] = $_; //#16191 - bwipp_processoptions(); //#16191 - $_.options = $k[--$j]; //#16191 - $_.barcode = $k[--$j]; //#16192 + $_ = Object.create($_); //#16399 + $_.dontdraw = false; //#16402 + $k[$j++] = $_; //#16404 + bwipp_processoptions(); //#16404 + $_.options = $k[--$j]; //#16404 + $_.barcode = $k[--$j]; //#16405 var _H = new Map([ ["fima", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16196 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16197 - $_.bbs = $a([0, 0, 0, 0, 0]); //#16198 + $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16409 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16410 + $_.bbs = $a([0, 0, 0, 0, 0]); //#16411 }], ["fimb", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16201 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16202 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16203 + $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16414 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16415 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16416 }], ["fimc", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16206 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16207 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16208 + $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16419 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16420 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16421 }], ["fimd", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16211 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16212 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16213 + $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16424 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16425 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16426 }], ["fime", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16216 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16217 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16218 + $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16429 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16430 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16431 }] - ]); //#16218 - $_.symbols = _H; //#16220 - var _K = $get($_.symbols, $_.barcode) !== undefined; //#16223 - if (!_K) { //#16225 - $k[$j++] = 'bwipp.symbolUnknownSymbol#16224'; //#16224 - $k[$j++] = "Unknown symbol name provided"; //#16224 - bwipp_raiseerror(); //#16224 - } //#16224 + ]); //#16431 + $_.symbols = _H; //#16433 + var _K = $get($_.symbols, $_.barcode) !== undefined; //#16436 + if (!_K) { //#16438 + $k[$j++] = 'bwipp.symbolUnknownSymbol#16437'; //#16437 + $k[$j++] = "Unknown symbol name provided"; //#16437 + bwipp_raiseerror(); //#16437 + } //#16437 if ($get($_.symbols, $_.barcode)() === true) { return true; - } //#16227 + } //#16440 var _S = new Map([ ["ren", bwipp_renlinear], ["sbs", $_.sbs], ["bhs", $_.bhs], ["bbs", $_.bbs], ["opt", $_.options] - ]); //#16235 - $k[$j++] = _S; //#16238 - if (!$_.dontdraw) { //#16238 - bwipp_renlinear(); //#16238 - } //#16238 - $_ = Object.getPrototypeOf($_); //#16240 -} - + ]); //#16448 + $k[$j++] = _S; //#16451 + if (!$_.dontdraw) { //#16451 + bwipp_renlinear(); //#16451 + } //#16451 + $_ = Object.getPrototypeOf($_); //#16453 +} //bwipp_symbol function bwipp_pdf417() { - $_ = Object.create($_); //#16271 - $_.dontdraw = false; //#16274 - $_.compact = false; //#16275 - $_.eclevel = -1; //#16276 - $_.columns = 0; //#16277 - $_.rows = 0; //#16278 - $_.rowmult = 3; //#16279 - $_.ccc = false; //#16280 - $_.raw = false; //#16281 - $_.parse = false; //#16282 - $_.parsefnc = false; //#16283 - $k[$j++] = $_; //#16285 - bwipp_processoptions(); //#16285 - $_.options = $k[--$j]; //#16285 - $_.barcode = $k[--$j]; //#16286 - if ($eq($_.barcode, "")) { //#16290 - $k[$j++] = 'bwipp.pdf417emptyData#16289'; //#16289 - $k[$j++] = "The data must not be empty"; //#16289 - bwipp_raiseerror(); //#16289 - } //#16289 - if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16294 - $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16293'; //#16293 - $k[$j++] = "Valid error correction levels are 0 to 8"; //#16293 - bwipp_raiseerror(); //#16293 - } //#16293 - if ($_.ccc && $_.raw) { //#16298 - $k[$j++] = 'bwipp.pdf417cccAndRaw#16297'; //#16297 - $k[$j++] = "Cannot combine ccc and raw"; //#16297 - bwipp_raiseerror(); //#16297 - } //#16297 - if ($_.ccc && $_.compact) { //#16302 - $k[$j++] = 'bwipp.pdf417cccAndCompact#16301'; //#16301 - $k[$j++] = "Cannot combine ccc and compact"; //#16301 - bwipp_raiseerror(); //#16301 - } //#16301 - if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16306 - $k[$j++] = 'bwipp.pdf417invalidRows#16305'; //#16305 - $k[$j++] = "There must be between 3 and 90 rows"; //#16305 - bwipp_raiseerror(); //#16305 - } //#16305 - if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16310 - $k[$j++] = 'bwipp.pdf417invalidColumns#16309'; //#16309 - $k[$j++] = "There must be between 1 and 30 columns"; //#16309 - bwipp_raiseerror(); //#16309 - } //#16309 - if ($_.rowmult <= 0) { //#16314 - $k[$j++] = 'bwipp.pdf417badRowMult#16313'; //#16313 - $k[$j++] = "The row multiplier must be greater than zero"; //#16313 - bwipp_raiseerror(); //#16313 - } //#16313 - bwipp_loadctx(bwipp_pdf417) //#16316 - if (!bwipp_pdf417.__16407__) { //#16407 - $_ = Object.create($_); //#16407 - $_.T = 0; //#16320 - $_.N = 1; //#16320 - $_.B = 2; //#16320 - $_.A = 0; //#16321 - $_.L = 1; //#16321 - $_.M = 2; //#16321 - $_.P = 3; //#16321 - $_.tl = -1; //#16324 - $_.nl = -2; //#16324 - $_.bl = -3; //#16324 - $_.bl6 = -4; //#16324 - $_.bs = -5; //#16324 - $_.al = -6; //#16327 - $_.ll = -7; //#16327 - $_.ml = -8; //#16327 - $_.pl = -9; //#16327 - $_.as = -10; //#16327 - $_.ps = -11; //#16327 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16362 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16365 - $_.alltext = new Map; //#16366 - for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16376 - $_.i = _10; //#16368 - $_.encs = $get($_.charmaps, $_.i); //#16369 - for (var _14 = 0; _14 <= 3; _14 += 1) { //#16375 - $_.j = _14; //#16371 - var _17 = $get($_.encs, $_.j); //#16372 - $k[$j++] = _17; //#16372 - if ($eq($type(_17), 'stringtype')) { //#16372 - var _1A = $get($k[--$j], 0); //#16372 - $k[$j++] = _1A; //#16372 - } //#16372 - var _1B = $k[--$j]; //#16373 - $put($get($_.charvals, $_.j), _1B, $_.i); //#16373 - $put($_.alltext, _1B, -1); //#16374 - } //#16374 - } //#16374 - $_.e = 10000; //#16378 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16386 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16394 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16402 - $k[$j++] = Infinity; //#16405 - $k[$j++] = $_.tl; //#16405 - $k[$j++] = 900; //#16405 - $k[$j++] = $_.bl; //#16405 - $k[$j++] = 901; //#16405 - $k[$j++] = $_.bl6; //#16405 - $k[$j++] = 924; //#16405 - $k[$j++] = $_.nl; //#16405 - $k[$j++] = 902; //#16405 - $k[$j++] = $_.bs; //#16405 - $k[$j++] = 913; //#16405 - $_.latchcws = $d(); //#16406 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16406 - bwipp_pdf417.__16407__ = 1; //#16406 - $_ = Object.getPrototypeOf($_); //#16406 - } //#16406 - if ($_.raw) { //#16428 - $_.datcws = $a($_.barcode.length); //#16411 - $_.i = 0; //#16412 - $_.j = 0; //#16412 - for (;;) { //#16423 - if ($_.i >= ($_.barcode.length - 3)) { //#16414 - break; //#16414 - } //#16414 - if ($get($_.barcode, $_.i) != 94) { //#16415 - break; //#16415 - } //#16415 - var _2W = $geti($_.barcode, $_.i + 1, 3); //#16416 - $k[$j++] = _2W; //#16418 - $k[$j++] = false; //#16418 - for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16418 - var _2Z = $get(_2W, _2X); //#16418 - if ((_2Z < 48) || (_2Z > 57)) { //#16417 - $j--; //#16417 - $k[$j++] = true; //#16417 - } //#16417 - } //#16417 - if ($k[--$j]) { //#16418 - $j--; //#16418 - break; //#16418 - } //#16418 - $_.cw = $cvi($k[--$j]); //#16419 - $put($_.datcws, $_.j, $_.cw); //#16420 - $_.i = $_.i + 4; //#16421 - $_.j = $_.j + 1; //#16422 - } //#16422 - if ($_.i != $_.barcode.length) { //#16426 - $k[$j++] = 'bwipp.pdf417badRawFormat#16425'; //#16425 - $k[$j++] = "raw data must be formatted as ^NNN"; //#16425 - bwipp_raiseerror(); //#16425 - } //#16425 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16427 - } //#16427 + $_ = Object.create($_); //#16484 + $_.dontdraw = false; //#16487 + $_.compact = false; //#16488 + $_.eclevel = -1; //#16489 + $_.columns = 0; //#16490 + $_.rows = 0; //#16491 + $_.rowmult = 3; //#16492 + $_.ccc = false; //#16493 + $_.raw = false; //#16494 + $_.parse = false; //#16495 + $_.parsefnc = false; //#16496 + $k[$j++] = $_; //#16498 + bwipp_processoptions(); //#16498 + $_.options = $k[--$j]; //#16498 + $_.barcode = $k[--$j]; //#16499 + if ($eq($_.barcode, "")) { //#16503 + $k[$j++] = 'bwipp.pdf417emptyData#16502'; //#16502 + $k[$j++] = "The data must not be empty"; //#16502 + bwipp_raiseerror(); //#16502 + } //#16502 + if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16507 + $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16506'; //#16506 + $k[$j++] = "Valid error correction levels are 0 to 8"; //#16506 + bwipp_raiseerror(); //#16506 + } //#16506 + if ($_.ccc && $_.raw) { //#16511 + $k[$j++] = 'bwipp.pdf417cccAndRaw#16510'; //#16510 + $k[$j++] = "Cannot combine ccc and raw"; //#16510 + bwipp_raiseerror(); //#16510 + } //#16510 + if ($_.ccc && $_.compact) { //#16515 + $k[$j++] = 'bwipp.pdf417cccAndCompact#16514'; //#16514 + $k[$j++] = "Cannot combine ccc and compact"; //#16514 + bwipp_raiseerror(); //#16514 + } //#16514 + if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16519 + $k[$j++] = 'bwipp.pdf417invalidRows#16518'; //#16518 + $k[$j++] = "There must be between 3 and 90 rows"; //#16518 + bwipp_raiseerror(); //#16518 + } //#16518 + if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16523 + $k[$j++] = 'bwipp.pdf417invalidColumns#16522'; //#16522 + $k[$j++] = "There must be between 1 and 30 columns"; //#16522 + bwipp_raiseerror(); //#16522 + } //#16522 + if ($_.rowmult <= 0) { //#16527 + $k[$j++] = 'bwipp.pdf417badRowMult#16526'; //#16526 + $k[$j++] = "The row multiplier must be greater than zero"; //#16526 + bwipp_raiseerror(); //#16526 + } //#16526 + bwipp_loadctx(bwipp_pdf417) //#16529 + if (!bwipp_pdf417.__16620__) { //#16620 + $_ = Object.create($_); //#16620 + $_.T = 0; //#16533 + $_.N = 1; //#16533 + $_.B = 2; //#16533 + $_.A = 0; //#16534 + $_.L = 1; //#16534 + $_.M = 2; //#16534 + $_.P = 3; //#16534 + $_.tl = -1; //#16537 + $_.nl = -2; //#16537 + $_.bl = -3; //#16537 + $_.bl6 = -4; //#16537 + $_.bs = -5; //#16537 + $_.al = -6; //#16540 + $_.ll = -7; //#16540 + $_.ml = -8; //#16540 + $_.pl = -9; //#16540 + $_.as = -10; //#16540 + $_.ps = -11; //#16540 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16575 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16578 + $_.alltext = new Map; //#16579 + for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16589 + $_.i = _10; //#16581 + $_.encs = $get($_.charmaps, $_.i); //#16582 + for (var _14 = 0; _14 <= 3; _14 += 1) { //#16588 + $_.j = _14; //#16584 + var _17 = $get($_.encs, $_.j); //#16585 + $k[$j++] = _17; //#16585 + if ($eq($type(_17), 'stringtype')) { //#16585 + var _1A = $get($k[--$j], 0); //#16585 + $k[$j++] = _1A; //#16585 + } //#16585 + var _1B = $k[--$j]; //#16586 + $put($get($_.charvals, $_.j), _1B, $_.i); //#16586 + $put($_.alltext, _1B, -1); //#16587 + } //#16587 + } //#16587 + $_.e = 10000; //#16591 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16599 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16607 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16615 + $k[$j++] = Infinity; //#16617 + $k[$j++] = $_.tl; //#16618 + $k[$j++] = 900; //#16618 + $k[$j++] = $_.bl; //#16618 + $k[$j++] = 901; //#16618 + $k[$j++] = $_.bl6; //#16618 + $k[$j++] = 924; //#16618 + $k[$j++] = $_.nl; //#16618 + $k[$j++] = 902; //#16618 + $k[$j++] = $_.bs; //#16618 + $k[$j++] = 913; //#16618 + $_.latchcws = $d(); //#16619 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16619 + bwipp_pdf417.__16620__ = 1; //#16619 + $_ = Object.getPrototypeOf($_); //#16619 + } //#16619 + if ($_.raw) { //#16641 + $_.datcws = $a($_.barcode.length); //#16624 + $_.i = 0; //#16625 + $_.j = 0; //#16625 + for (;;) { //#16636 + if ($_.i >= ($_.barcode.length - 3)) { //#16627 + break; //#16627 + } //#16627 + if ($get($_.barcode, $_.i) != 94) { //#16628 + break; //#16628 + } //#16628 + var _2W = $geti($_.barcode, $_.i + 1, 3); //#16629 + $k[$j++] = _2W; //#16631 + $k[$j++] = false; //#16631 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16631 + var _2Z = $get(_2W, _2X); //#16631 + if ((_2Z < 48) || (_2Z > 57)) { //#16630 + $j--; //#16630 + $k[$j++] = true; //#16630 + } //#16630 + } //#16630 + if ($k[--$j]) { //#16631 + $j--; //#16631 + break; //#16631 + } //#16631 + $_.cw = $cvi($k[--$j]); //#16632 + $put($_.datcws, $_.j, $_.cw); //#16633 + $_.i = $_.i + 4; //#16634 + $_.j = $_.j + 1; //#16635 + } //#16635 + if ($_.i != $_.barcode.length) { //#16639 + $k[$j++] = 'bwipp.pdf417badRawFormat#16638'; //#16638 + $k[$j++] = "raw data must be formatted as ^NNN"; //#16638 + bwipp_raiseerror(); //#16638 + } //#16638 + $_.datcws = $geti($_.datcws, 0, $_.j); //#16640 + } //#16640 $_.encb = function() { - $_.in = $k[--$j]; //#16431 - $_.inlen = $_.in.length; //#16432 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16433 - for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16456 - $_.k = _2t; //#16435 - $k[$j++] = Infinity; //#16436 - $aload($geti($_.in, $_.k * 6, 3)); //#16436 - $_.msbs = $a(); //#16436 - $k[$j++] = Infinity; //#16439 - $aload($_.msbs); //#16438 - var _2z = $k[--$j]; //#16438 - var _30 = $k[--$j]; //#16438 - var _31 = $k[--$j]; //#16438 - $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16439 - for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16439 - var _34 = $k[--$j]; //#16439 - $k[$j++] = _34 % 900; //#16439 - $k[$j++] = ~~(_34 / 900); //#16439 - } //#16439 - $_.mscs = $a(); //#16439 - $k[$j++] = Infinity; //#16441 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16441 - $_.lsbs = $a(); //#16441 - $k[$j++] = Infinity; //#16444 - $aload($_.lsbs); //#16443 - var _3B = $k[--$j]; //#16443 - var _3C = $k[--$j]; //#16443 - var _3D = $k[--$j]; //#16443 - $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16444 - for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16444 - var _3G = $k[--$j]; //#16444 - $k[$j++] = _3G % 900; //#16444 - $k[$j++] = ~~(_3G / 900); //#16444 - } //#16444 - $_.lscs = $a(); //#16444 - var _3J = $get($_.lscs, 0); //#16446 - var _3L = $get($_.mscs, 0); //#16446 - $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16447 - var _3P = $get($_.lscs, 1); //#16448 - var _3R = $get($_.mscs, 0); //#16448 - var _3T = $get($_.mscs, 1); //#16448 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16449 - var _3X = $get($_.lscs, 2); //#16450 - var _3Z = $get($_.mscs, 0); //#16450 - var _3b = $get($_.mscs, 1); //#16450 - var _3d = $get($_.mscs, 2); //#16450 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16451 - var _3h = $get($_.lscs, 3); //#16452 - var _3j = $get($_.mscs, 1); //#16452 - var _3l = $get($_.mscs, 2); //#16452 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16453 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16455 - } //#16455 - $_.rem = $_.inlen % 6; //#16457 - if ($_.rem != 0) { //#16462 - $k[$j++] = $_.out; //#16460 - $k[$j++] = $_.out.length - $_.rem; //#16460 - $k[$j++] = Infinity; //#16460 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16460 - var _42 = $a(); //#16460 - var _43 = $k[--$j]; //#16461 - $puti($k[--$j], _43, _42); //#16461 - } //#16461 - $k[$j++] = $_.out; //#16463 - }; //#16463 - if ($_.ccc) { //#16472 - $_.barlen = $_.barcode.length; //#16467 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16468 - $put($_.datcws, 0, 920); //#16469 - var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16470 - $put($_.datcws, 1, _4E); //#16470 - $k[$j++] = $_.datcws; //#16471 - $k[$j++] = 2; //#16471 - $k[$j++] = Infinity; //#16471 - $forall($_.barcode); //#16471 - var _4H = $a(); //#16471 - $k[$j++] = _4H; //#16471 - $_.encb(); //#16471 - var _4I = $k[--$j]; //#16471 - var _4J = $k[--$j]; //#16471 - $puti($k[--$j], _4J, _4I); //#16471 - } //#16471 - if ((!$_.raw) && (!$_.ccc)) { //#16823 + $_.in = $k[--$j]; //#16644 + $_.inlen = $_.in.length; //#16645 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16646 + for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16669 + $_.k = _2t; //#16648 + $k[$j++] = Infinity; //#16649 + $aload($geti($_.in, $_.k * 6, 3)); //#16649 + $_.msbs = $a(); //#16649 + $k[$j++] = Infinity; //#16650 + $aload($_.msbs); //#16651 + var _2z = $k[--$j]; //#16651 + var _30 = $k[--$j]; //#16651 + var _31 = $k[--$j]; //#16651 + $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16652 + for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16652 + var _34 = $k[--$j]; //#16652 + $k[$j++] = _34 % 900; //#16652 + $k[$j++] = ~~(_34 / 900); //#16652 + } //#16652 + $_.mscs = $a(); //#16652 + $k[$j++] = Infinity; //#16654 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16654 + $_.lsbs = $a(); //#16654 + $k[$j++] = Infinity; //#16655 + $aload($_.lsbs); //#16656 + var _3B = $k[--$j]; //#16656 + var _3C = $k[--$j]; //#16656 + var _3D = $k[--$j]; //#16656 + $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16657 + for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16657 + var _3G = $k[--$j]; //#16657 + $k[$j++] = _3G % 900; //#16657 + $k[$j++] = ~~(_3G / 900); //#16657 + } //#16657 + $_.lscs = $a(); //#16657 + var _3J = $get($_.lscs, 0); //#16659 + var _3L = $get($_.mscs, 0); //#16659 + $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16660 + var _3P = $get($_.lscs, 1); //#16661 + var _3R = $get($_.mscs, 0); //#16661 + var _3T = $get($_.mscs, 1); //#16661 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16662 + var _3X = $get($_.lscs, 2); //#16663 + var _3Z = $get($_.mscs, 0); //#16663 + var _3b = $get($_.mscs, 1); //#16663 + var _3d = $get($_.mscs, 2); //#16663 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16664 + var _3h = $get($_.lscs, 3); //#16665 + var _3j = $get($_.mscs, 1); //#16665 + var _3l = $get($_.mscs, 2); //#16665 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16666 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16668 + } //#16668 + $_.rem = $_.inlen % 6; //#16670 + if ($_.rem != 0) { //#16675 + $k[$j++] = $_.out; //#16673 + $k[$j++] = $_.out.length - $_.rem; //#16673 + $k[$j++] = Infinity; //#16673 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16673 + var _42 = $a(); //#16673 + var _43 = $k[--$j]; //#16674 + $puti($k[--$j], _43, _42); //#16674 + } //#16674 + $k[$j++] = $_.out; //#16676 + }; //#16676 + if ($_.ccc) { //#16685 + $_.barlen = $_.barcode.length; //#16680 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16681 + $put($_.datcws, 0, 920); //#16682 + var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16683 + $put($_.datcws, 1, _4E); //#16683 + $k[$j++] = $_.datcws; //#16684 + $k[$j++] = 2; //#16684 + $k[$j++] = Infinity; //#16684 + $forall($_.barcode); //#16684 + var _4H = $a(); //#16684 + $k[$j++] = _4H; //#16684 + $_.encb(); //#16684 + var _4I = $k[--$j]; //#16684 + var _4J = $k[--$j]; //#16684 + $puti($k[--$j], _4J, _4I); //#16684 + } //#16684 + if ((!$_.raw) && (!$_.ccc)) { //#17036 var _4P = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#16480 - $_.fncvals = _4P; //#16482 - $k[$j++] = 'msg'; //#16483 - $k[$j++] = $_.barcode; //#16483 - $k[$j++] = $_.fncvals; //#16483 - bwipp_parseinput(); //#16483 - var _4S = $k[--$j]; //#16483 - $_[$k[--$j]] = _4S; //#16483 - $_.msglen = $_.msg.length; //#16484 - $k[$j++] = Infinity; //#16487 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16487 - $k[$j++] = 0; //#16487 - } //#16487 - $k[$j++] = 0; //#16487 - $_.numdigits = $a(); //#16487 - $k[$j++] = Infinity; //#16488 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16488 - $k[$j++] = 0; //#16488 - } //#16488 - $k[$j++] = 0; //#16488 - $_.numtext = $a(); //#16488 - $k[$j++] = Infinity; //#16489 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16489 - $k[$j++] = 0; //#16489 - } //#16489 - $k[$j++] = 0; //#16489 - $_.numbytes = $a(); //#16489 - $k[$j++] = Infinity; //#16490 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16490 - $k[$j++] = 0; //#16490 - } //#16490 - $k[$j++] = 0; //#16490 - $_.iseci = $a(); //#16490 - for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16503 - $_.i = _4m; //#16492 - var _4p = $get($_.msg, $_.i); //#16493 - if ((_4p >= 48) && (_4p <= 57)) { //#16495 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16494 - } //#16494 - var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16496 - if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16498 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16497 - } //#16497 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16501 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16500 - } //#16500 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16502 - } //#16502 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16504 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16505 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16506 - $_.seq = $a([]); //#16508 - $_.seqlen = 0; //#16508 - $_.state = $_.T; //#16508 - $_.p = 0; //#16508 - for (;;) { //#16562 - if ($_.p == $_.msglen) { //#16509 - break; //#16509 - } //#16509 - if ($get($_.iseci, $_.p)) { //#16560 - $_.eci = $get($_.msg, $_.p); //#16511 - $k[$j++] = Infinity; //#16514 - $aload($_.seq); //#16513 - $k[$j++] = $a([$_.eci]); //#16514 - $_.seq = $a(); //#16514 - $_.p = $_.p + 1; //#16516 - $k[$j++] = 'seqlen'; //#16517 - $k[$j++] = $_.seqlen; //#16517 - if ($_.eci <= -1810900) { //#16517 - $k[$j++] = 2; //#16517 - } else { //#16517 - var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16517 - $k[$j++] = _5s; //#16517 - } //#16517 - var _5t = $k[--$j]; //#16517 - var _5u = $k[--$j]; //#16517 - $_[$k[--$j]] = $f(_5u + _5t); //#16517 - } else { //#16560 - $_.n = $get($_.numdigits, $_.p); //#16519 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16560 - $k[$j++] = Infinity; //#16524 - $aload($_.seq); //#16522 - $k[$j++] = $_.nl; //#16524 - $k[$j++] = Infinity; //#16524 - $aload($geti($_.msg, $_.p, $_.n)); //#16524 - var _69 = $a(); //#16524 - $k[$j++] = _69; //#16524 - $_.seq = $a(); //#16524 - $_.state = $_.N; //#16526 - $_.p = $f($_.p + $_.n); //#16527 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16528 - } else { //#16560 - $_.t = $get($_.numtext, $_.p); //#16530 - if ($_.t >= 5) { //#16560 - $k[$j++] = Infinity; //#16537 - $aload($_.seq); //#16533 - if ($_.state != $_.T) { //#16536 - $k[$j++] = $_.tl; //#16535 - } //#16535 - $k[$j++] = Infinity; //#16537 - $aload($geti($_.msg, $_.p, $_.t)); //#16537 - var _6S = $a(); //#16537 - $k[$j++] = _6S; //#16537 - $_.seq = $a(); //#16537 - $_.state = $_.T; //#16539 - $_.p = $f($_.p + $_.t); //#16540 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16541 - } else { //#16560 - $_.b = $get($_.numbytes, $_.p); //#16543 - if (($_.b == 1) && ($_.state == $_.T)) { //#16560 - $k[$j++] = Infinity; //#16548 - $aload($_.seq); //#16546 - $k[$j++] = $_.bs; //#16548 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#16548 - $_.seq = $a(); //#16548 - $_.p = $f($_.p + $_.b); //#16550 - $_.seqlen = $f($_.seqlen + 2); //#16551 - } else { //#16560 - $k[$j++] = Infinity; //#16556 - $aload($_.seq); //#16554 - var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16555 - $k[$j++] = _6r; //#16556 - $k[$j++] = Infinity; //#16556 - $aload($geti($_.msg, $_.p, $_.b)); //#16556 - var _6w = $a(); //#16556 - $k[$j++] = _6w; //#16556 - $_.seq = $a(); //#16556 - $_.state = $_.B; //#16558 - $_.p = $f($_.p + $_.b); //#16559 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 + ]); //#16693 + $_.fncvals = _4P; //#16695 + $k[$j++] = 'msg'; //#16696 + $k[$j++] = $_.barcode; //#16696 + $k[$j++] = $_.fncvals; //#16696 + bwipp_parseinput(); //#16696 + var _4S = $k[--$j]; //#16696 + $_[$k[--$j]] = _4S; //#16696 + $_.msglen = $_.msg.length; //#16697 + $k[$j++] = Infinity; //#16700 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16700 + $k[$j++] = 0; //#16700 + } //#16700 + $k[$j++] = 0; //#16700 + $_.numdigits = $a(); //#16700 + $k[$j++] = Infinity; //#16701 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16701 + $k[$j++] = 0; //#16701 + } //#16701 + $k[$j++] = 0; //#16701 + $_.numtext = $a(); //#16701 + $k[$j++] = Infinity; //#16702 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16702 + $k[$j++] = 0; //#16702 + } //#16702 + $k[$j++] = 0; //#16702 + $_.numbytes = $a(); //#16702 + $k[$j++] = Infinity; //#16703 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16703 + $k[$j++] = 0; //#16703 + } //#16703 + $k[$j++] = 0; //#16703 + $_.iseci = $a(); //#16703 + for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16716 + $_.i = _4m; //#16705 + var _4p = $get($_.msg, $_.i); //#16706 + if ((_4p >= 48) && (_4p <= 57)) { //#16708 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16707 + } //#16707 + var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16709 + if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16711 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16710 + } //#16710 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16714 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16713 + } //#16713 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16715 + } //#16715 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16717 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16718 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16719 + $_.seq = $a([]); //#16721 + $_.seqlen = 0; //#16721 + $_.state = $_.T; //#16721 + $_.p = 0; //#16721 + for (;;) { //#16775 + if ($_.p == $_.msglen) { //#16722 + break; //#16722 + } //#16722 + if ($get($_.iseci, $_.p)) { //#16773 + $_.eci = $get($_.msg, $_.p); //#16724 + $k[$j++] = Infinity; //#16725 + $aload($_.seq); //#16726 + $k[$j++] = $a([$_.eci]); //#16727 + $_.seq = $a(); //#16727 + $_.p = $_.p + 1; //#16729 + $k[$j++] = 'seqlen'; //#16730 + $k[$j++] = $_.seqlen; //#16730 + if ($_.eci <= -1810900) { //#16730 + $k[$j++] = 2; //#16730 + } else { //#16730 + var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16730 + $k[$j++] = _5s; //#16730 + } //#16730 + var _5t = $k[--$j]; //#16730 + var _5u = $k[--$j]; //#16730 + $_[$k[--$j]] = $f(_5u + _5t); //#16730 + } else { //#16773 + $_.n = $get($_.numdigits, $_.p); //#16732 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16773 + $k[$j++] = Infinity; //#16734 + $aload($_.seq); //#16735 + $k[$j++] = $_.nl; //#16737 + $k[$j++] = Infinity; //#16737 + $aload($geti($_.msg, $_.p, $_.n)); //#16737 + var _69 = $a(); //#16737 + $k[$j++] = _69; //#16737 + $_.seq = $a(); //#16737 + $_.state = $_.N; //#16739 + $_.p = $f($_.p + $_.n); //#16740 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16741 + } else { //#16773 + $_.t = $get($_.numtext, $_.p); //#16743 + if ($_.t >= 5) { //#16773 + $k[$j++] = Infinity; //#16745 + $aload($_.seq); //#16746 + if ($_.state != $_.T) { //#16749 + $k[$j++] = $_.tl; //#16748 + } //#16748 + $k[$j++] = Infinity; //#16750 + $aload($geti($_.msg, $_.p, $_.t)); //#16750 + var _6S = $a(); //#16750 + $k[$j++] = _6S; //#16750 + $_.seq = $a(); //#16750 + $_.state = $_.T; //#16752 + $_.p = $f($_.p + $_.t); //#16753 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16754 + } else { //#16773 + $_.b = $get($_.numbytes, $_.p); //#16756 + if (($_.b == 1) && ($_.state == $_.T)) { //#16773 + $k[$j++] = Infinity; //#16758 + $aload($_.seq); //#16759 + $k[$j++] = $_.bs; //#16761 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#16761 + $_.seq = $a(); //#16761 + $_.p = $f($_.p + $_.b); //#16763 + $_.seqlen = $f($_.seqlen + 2); //#16764 + } else { //#16773 + $k[$j++] = Infinity; //#16766 + $aload($_.seq); //#16767 + var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16768 + $k[$j++] = _6r; //#16769 + $k[$j++] = Infinity; //#16769 + $aload($geti($_.msg, $_.p, $_.b)); //#16769 + var _6w = $a(); //#16769 + $k[$j++] = _6w; //#16769 + $_.seq = $a(); //#16769 + $_.state = $_.B; //#16771 + $_.p = $f($_.p + $_.b); //#16772 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 $_.enca = function() { - var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16565 - $k[$j++] = _77; //#16565 - }; //#16565 + var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16778 + $k[$j++] = _77; //#16778 + }; //#16778 $_.encl = function() { - var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16566 - $k[$j++] = _7C; //#16566 - }; //#16566 + var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16779 + $k[$j++] = _7C; //#16779 + }; //#16779 $_.encm = function() { - var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16567 - $k[$j++] = _7H; //#16567 - }; //#16567 + var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16780 + $k[$j++] = _7H; //#16780 + }; //#16780 $_.encp = function() { - var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16568 - $k[$j++] = _7M; //#16568 - }; //#16568 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16569 + var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16781 + $k[$j++] = _7M; //#16781 + }; //#16781 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16782 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#16572 - $_.l = $_.l + 1; //#16573 - }; //#16573 + $put($_.text, $_.l, $k[--$j]); //#16785 + $_.l = $_.l + 1; //#16786 + }; //#16786 $_.enct = function() { - $_.in = $k[--$j]; //#16577 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16579 - $put($_.curlen, $_.submode, 0); //#16580 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16581 - $forall($_.in, function() { //#16651 - $_.char = $k[--$j]; //#16586 - for (;;) { //#16607 - $_.imp = false; //#16590 - var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16591 - for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16605 - $_.x = $get(_7l, _7m); //#16592 - var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16593 - for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16604 - $_.y = $get(_7t, _7u); //#16594 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16595 - if ($_.cost < $get($_.curlen, $_.y)) { //#16603 - $put($_.curlen, $_.y, $_.cost); //#16597 - $k[$j++] = $_.curseq; //#16600 - $k[$j++] = $_.y; //#16600 - $k[$j++] = Infinity; //#16600 - $aload($get($_.curseq, $_.x)); //#16599 - $aload($get($get($_.latseq, $_.x), $_.y)); //#16600 - var _8M = $a(); //#16600 - var _8N = $k[--$j]; //#16601 - $put($k[--$j], _8N, _8M); //#16601 - $_.imp = true; //#16602 - } //#16602 - } //#16602 - } //#16602 - if (!$_.imp) { //#16606 - break; //#16606 - } //#16606 - } //#16606 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16610 - $_.nxtseq = $a(4); //#16611 - var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16613 - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16646 - $_.x = $get(_8a, _8b); //#16614 - for (;;) { //#16644 - var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16618 - if (!_8i) { //#16618 - break; //#16618 - } //#16618 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#16621 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#16625 - $put($_.nxtlen, $_.x, $_.cost); //#16623 - $k[$j++] = $_.nxtseq; //#16624 - $k[$j++] = $_.x; //#16624 - $k[$j++] = Infinity; //#16624 - $aload($get($_.curseq, $_.x)); //#16624 - $k[$j++] = $_.char; //#16624 - var _8z = $a(); //#16624 - var _90 = $k[--$j]; //#16624 - $put($k[--$j], _90, _8z); //#16624 - } //#16624 - var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16628 - for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16641 - $_.y = $get(_96, _97); //#16629 - if ($ne($_.x, $_.y)) { //#16640 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16631 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#16639 - $put($_.nxtlen, $_.y, $_.cost); //#16633 - $k[$j++] = $_.nxtseq; //#16637 - $k[$j++] = $_.y; //#16637 - $k[$j++] = Infinity; //#16637 - $aload($get($_.curseq, $_.y)); //#16635 - var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16636 - $k[$j++] = _9Y; //#16637 - $k[$j++] = $_.char; //#16637 - var _9a = $a(); //#16637 - var _9b = $k[--$j]; //#16638 - $put($k[--$j], _9b, _9a); //#16638 - } //#16638 - } //#16638 - } //#16638 - break; //#16643 - } //#16643 - } //#16643 - $_.curlen = $_.nxtlen; //#16648 - $_.curseq = $_.nxtseq; //#16649 - }); //#16649 - $_.minseq = $_.e; //#16654 - var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16655 - for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16661 - $_.k = $get(_9k, _9l); //#16656 - if ($get($_.curlen, $_.k) < $_.minseq) { //#16660 - $_.minseq = $get($_.curlen, $_.k); //#16658 - $_.txtseq = $get($_.curseq, $_.k); //#16659 - } //#16659 - } //#16659 - $_.text = $a($_.minseq); //#16664 - $_.k = 0; //#16665 - $_.l = 0; //#16665 - for (;;) { //#16685 - if ($_.k >= $_.txtseq.length) { //#16666 - break; //#16666 - } //#16666 - $_.char = $get($_.txtseq, $_.k); //#16668 - $k[$j++] = $_.char; //#16671 + $_.in = $k[--$j]; //#16790 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16792 + $put($_.curlen, $_.submode, 0); //#16793 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16794 + $forall($_.in, function() { //#16864 + $_.char = $k[--$j]; //#16799 + for (;;) { //#16820 + $_.imp = false; //#16803 + var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16804 + for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16818 + $_.x = $get(_7l, _7m); //#16805 + var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16806 + for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16817 + $_.y = $get(_7t, _7u); //#16807 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16808 + if ($_.cost < $get($_.curlen, $_.y)) { //#16816 + $put($_.curlen, $_.y, $_.cost); //#16810 + $k[$j++] = $_.curseq; //#16813 + $k[$j++] = $_.y; //#16813 + $k[$j++] = Infinity; //#16811 + $aload($get($_.curseq, $_.x)); //#16812 + $aload($get($get($_.latseq, $_.x), $_.y)); //#16813 + var _8M = $a(); //#16813 + var _8N = $k[--$j]; //#16814 + $put($k[--$j], _8N, _8M); //#16814 + $_.imp = true; //#16815 + } //#16815 + } //#16815 + } //#16815 + if (!$_.imp) { //#16819 + break; //#16819 + } //#16819 + } //#16819 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16823 + $_.nxtseq = $a(4); //#16824 + var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16826 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16859 + $_.x = $get(_8a, _8b); //#16827 + for (;;) { //#16857 + var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16831 + if (!_8i) { //#16831 + break; //#16831 + } //#16831 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#16834 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#16838 + $put($_.nxtlen, $_.x, $_.cost); //#16836 + $k[$j++] = $_.nxtseq; //#16837 + $k[$j++] = $_.x; //#16837 + $k[$j++] = Infinity; //#16837 + $aload($get($_.curseq, $_.x)); //#16837 + $k[$j++] = $_.char; //#16837 + var _8z = $a(); //#16837 + var _90 = $k[--$j]; //#16837 + $put($k[--$j], _90, _8z); //#16837 + } //#16837 + var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16841 + for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16854 + $_.y = $get(_96, _97); //#16842 + if ($ne($_.x, $_.y)) { //#16853 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16844 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#16852 + $put($_.nxtlen, $_.y, $_.cost); //#16846 + $k[$j++] = $_.nxtseq; //#16850 + $k[$j++] = $_.y; //#16850 + $k[$j++] = Infinity; //#16847 + $aload($get($_.curseq, $_.y)); //#16848 + var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16849 + $k[$j++] = _9Y; //#16850 + $k[$j++] = $_.char; //#16850 + var _9a = $a(); //#16850 + var _9b = $k[--$j]; //#16851 + $put($k[--$j], _9b, _9a); //#16851 + } //#16851 + } //#16851 + } //#16851 + break; //#16856 + } //#16856 + } //#16856 + $_.curlen = $_.nxtlen; //#16861 + $_.curseq = $_.nxtseq; //#16862 + }); //#16862 + $_.minseq = $_.e; //#16867 + var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16868 + for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16874 + $_.k = $get(_9k, _9l); //#16869 + if ($get($_.curlen, $_.k) < $_.minseq) { //#16873 + $_.minseq = $get($_.curlen, $_.k); //#16871 + $_.txtseq = $get($_.curseq, $_.k); //#16872 + } //#16872 + } //#16872 + $_.text = $a($_.minseq); //#16877 + $_.k = 0; //#16878 + $_.l = 0; //#16878 + for (;;) { //#16898 + if ($_.k >= $_.txtseq.length) { //#16879 + break; //#16879 + } //#16879 + $_.char = $get($_.txtseq, $_.k); //#16881 + $k[$j++] = $_.char; //#16884 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#16671 - $_.addtotext(); //#16671 - $_.k = $_.k + 1; //#16672 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16678 - $k[$j++] = $get($_.txtseq, $_.k); //#16676 - if ($_.char == $_.as) { //#16676 - $_.enca(); //#16676 - } else { //#16676 - $_.encp(); //#16676 - } //#16676 - $_.addtotext(); //#16676 - $_.k = $_.k + 1; //#16677 - } //#16677 - if ($_.char == $_.al) { //#16681 - $_.submode = $_.A; //#16681 - } //#16681 - if ($_.char == $_.ll) { //#16682 - $_.submode = $_.L; //#16682 - } //#16682 - if ($_.char == $_.ml) { //#16683 - $_.submode = $_.M; //#16683 - } //#16683 - if ($_.char == $_.pl) { //#16684 - $_.submode = $_.P; //#16684 - } //#16684 - } //#16684 - if (($_.text.length % 2) == 1) { //#16732 - if ($_.submode == $_.P) { //#16728 - $k[$j++] = 'pad'; //#16689 - $k[$j++] = $_.al; //#16689 - $_.encp(); //#16689 - var _Ab = $k[--$j]; //#16689 - $_[$k[--$j]] = _Ab; //#16689 - $_.submode = $_.A; //#16690 - } else { //#16728 - $_.nextecitext = false; //#16693 - for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16700 - $_.ti = _Ah; //#16696 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16697 - $_.nextecitext = false; //#16697 - break; //#16697 - } //#16697 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16698 - break; //#16698 - } //#16698 - $_.nextecitext = true; //#16699 - } //#16699 - if ($_.nextecitext) { //#16728 - if ($_.submode == $_.A) { //#16725 - var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16703 - if (_B0) { //#16708 - $k[$j++] = 'pad'; //#16704 - $k[$j++] = $_.ll; //#16704 - $_.enca(); //#16704 - var _B2 = $k[--$j]; //#16704 - $_[$k[--$j]] = _B2; //#16704 - $_.submode = $_.L; //#16705 - } else { //#16708 - $k[$j++] = 'pad'; //#16707 - $k[$j++] = $_.ml; //#16707 - $_.enca(); //#16707 - var _B6 = $k[--$j]; //#16707 - $_[$k[--$j]] = _B6; //#16707 - $_.submode = $_.M; //#16708 - } //#16708 - } else { //#16725 - if ($_.submode == $_.M) { //#16725 - var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16712 - if (_BI) { //#16721 - $k[$j++] = 'pad'; //#16713 - $k[$j++] = $_.ll; //#16713 - $_.encm(); //#16713 - var _BK = $k[--$j]; //#16713 - $_[$k[--$j]] = _BK; //#16713 - $_.submode = $_.L; //#16714 - } else { //#16721 - var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16716 - if (_BU) { //#16721 - $k[$j++] = 'pad'; //#16717 - $k[$j++] = $_.pl; //#16717 - $_.encm(); //#16717 - var _BW = $k[--$j]; //#16717 - $_[$k[--$j]] = _BW; //#16717 - $_.submode = $_.P; //#16718 - } else { //#16721 - $k[$j++] = 'pad'; //#16720 - $k[$j++] = $_.al; //#16720 - $_.encm(); //#16720 - var _Ba = $k[--$j]; //#16720 - $_[$k[--$j]] = _Ba; //#16720 - $_.submode = $_.A; //#16721 - } //#16721 - } //#16721 - } else { //#16725 - $k[$j++] = 'pad'; //#16724 - $k[$j++] = $_.ml; //#16724 - $_.encl(); //#16724 - var _Be = $k[--$j]; //#16724 - $_[$k[--$j]] = _Be; //#16724 - $_.submode = $_.M; //#16725 - } //#16725 - } //#16725 - } else { //#16728 - $k[$j++] = 'pad'; //#16728 - $k[$j++] = $_.ps; //#16728 + } //#16884 + $_.addtotext(); //#16884 + $_.k = $_.k + 1; //#16885 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16891 + $k[$j++] = $get($_.txtseq, $_.k); //#16889 + if ($_.char == $_.as) { //#16889 + $_.enca(); //#16889 + } else { //#16889 + $_.encp(); //#16889 + } //#16889 + $_.addtotext(); //#16889 + $_.k = $_.k + 1; //#16890 + } //#16890 + if ($_.char == $_.al) { //#16894 + $_.submode = $_.A; //#16894 + } //#16894 + if ($_.char == $_.ll) { //#16895 + $_.submode = $_.L; //#16895 + } //#16895 + if ($_.char == $_.ml) { //#16896 + $_.submode = $_.M; //#16896 + } //#16896 + if ($_.char == $_.pl) { //#16897 + $_.submode = $_.P; //#16897 + } //#16897 + } //#16897 + if (($_.text.length % 2) == 1) { //#16945 + if ($_.submode == $_.P) { //#16941 + $k[$j++] = 'pad'; //#16902 + $k[$j++] = $_.al; //#16902 + $_.encp(); //#16902 + var _Ab = $k[--$j]; //#16902 + $_[$k[--$j]] = _Ab; //#16902 + $_.submode = $_.A; //#16903 + } else { //#16941 + $_.nextecitext = false; //#16906 + for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16913 + $_.ti = _Ah; //#16909 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16910 + $_.nextecitext = false; //#16910 + break; //#16910 + } //#16910 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16911 + break; //#16911 + } //#16911 + $_.nextecitext = true; //#16912 + } //#16912 + if ($_.nextecitext) { //#16941 + if ($_.submode == $_.A) { //#16938 + var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16916 + if (_B0) { //#16921 + $k[$j++] = 'pad'; //#16917 + $k[$j++] = $_.ll; //#16917 + $_.enca(); //#16917 + var _B2 = $k[--$j]; //#16917 + $_[$k[--$j]] = _B2; //#16917 + $_.submode = $_.L; //#16918 + } else { //#16921 + $k[$j++] = 'pad'; //#16920 + $k[$j++] = $_.ml; //#16920 + $_.enca(); //#16920 + var _B6 = $k[--$j]; //#16920 + $_[$k[--$j]] = _B6; //#16920 + $_.submode = $_.M; //#16921 + } //#16921 + } else { //#16938 + if ($_.submode == $_.M) { //#16938 + var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16925 + if (_BI) { //#16934 + $k[$j++] = 'pad'; //#16926 + $k[$j++] = $_.ll; //#16926 + $_.encm(); //#16926 + var _BK = $k[--$j]; //#16926 + $_[$k[--$j]] = _BK; //#16926 + $_.submode = $_.L; //#16927 + } else { //#16934 + var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16929 + if (_BU) { //#16934 + $k[$j++] = 'pad'; //#16930 + $k[$j++] = $_.pl; //#16930 + $_.encm(); //#16930 + var _BW = $k[--$j]; //#16930 + $_[$k[--$j]] = _BW; //#16930 + $_.submode = $_.P; //#16931 + } else { //#16934 + $k[$j++] = 'pad'; //#16933 + $k[$j++] = $_.al; //#16933 + $_.encm(); //#16933 + var _Ba = $k[--$j]; //#16933 + $_[$k[--$j]] = _Ba; //#16933 + $_.submode = $_.A; //#16934 + } //#16934 + } //#16934 + } else { //#16938 + $k[$j++] = 'pad'; //#16937 + $k[$j++] = $_.ml; //#16937 + $_.encl(); //#16937 + var _Be = $k[--$j]; //#16937 + $_[$k[--$j]] = _Be; //#16937 + $_.submode = $_.M; //#16938 + } //#16938 + } //#16938 + } else { //#16941 + $k[$j++] = 'pad'; //#16941 + $k[$j++] = $_.ps; //#16941 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#16728 - var _Bm = $k[--$j]; //#16728 - $_[$k[--$j]] = _Bm; //#16728 - } //#16728 - } //#16728 - $k[$j++] = Infinity; //#16731 - $aload($_.text); //#16731 - $k[$j++] = $_.pad; //#16731 - $_.text = $a(); //#16731 - } //#16731 - $_.out = $a(~~($_.text.length / 2)); //#16734 - for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16738 - $_.k = _Bv; //#16736 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16737 - } //#16737 - $k[$j++] = $_.out; //#16740 - }; //#16740 + } //#16941 + var _Bm = $k[--$j]; //#16941 + $_[$k[--$j]] = _Bm; //#16941 + } //#16941 + } //#16941 + $k[$j++] = Infinity; //#16944 + $aload($_.text); //#16944 + $k[$j++] = $_.pad; //#16944 + $_.text = $a(); //#16944 + } //#16944 + $_.out = $a(~~($_.text.length / 2)); //#16947 + for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16951 + $_.k = _Bv; //#16949 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16950 + } //#16950 + $k[$j++] = $_.out; //#16953 + }; //#16953 $_.encn = function() { - $_.in = $k[--$j]; //#16745 - $_.out = $a([]); //#16746 - for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16774 - $_.k = _C9; //#16748 - $k[$j++] = Infinity; //#16751 - var _CE = $_.in.length - $_.k; //#16750 - $k[$j++] = 1; //#16750 - $k[$j++] = $_.in; //#16750 - $k[$j++] = $_.k; //#16750 - $k[$j++] = _CE; //#16750 - if (_CE > 44) { //#16750 - $j--; //#16750 - $k[$j++] = 44; //#16750 - } //#16750 - var _CF = $k[--$j]; //#16750 - var _CG = $k[--$j]; //#16750 - var _CI = $geti($k[--$j], _CG, _CF); //#16750 - for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16751 - $k[$j++] = $f($get(_CI, _CJ) - 48); //#16751 - } //#16751 - $_.gmod = $a(); //#16751 - $_.cwn = $a([]); //#16753 - for (;;) { //#16772 - $_.dv = 900; //#16754 - $_.gmul = $a([]); //#16755 - $_.val = 0; //#16755 - for (;;) { //#16767 - if ($_.gmod.length == 0) { //#16756 - break; //#16756 - } //#16756 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16757 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16758 - if ($_.val < $_.dv) { //#16764 - if ($_.gmul.length != 0) { //#16762 - $k[$j++] = Infinity; //#16761 - $aload($_.gmul); //#16761 - $k[$j++] = 0; //#16761 - $_.gmul = $a(); //#16761 - } //#16761 - } else { //#16764 - $k[$j++] = Infinity; //#16764 - $aload($_.gmul); //#16764 - $k[$j++] = ~~($_.val / $_.dv); //#16764 - $_.gmul = $a(); //#16764 - } //#16764 - $_.val = $_.val % $_.dv; //#16766 - } //#16766 - $_.dv = $_.val; //#16768 - $k[$j++] = Infinity; //#16769 - $k[$j++] = $_.dv; //#16769 - $aload($_.cwn); //#16769 - $_.cwn = $a(); //#16769 - $_.gmod = $_.gmul; //#16770 - if ($_.gmul.length == 0) { //#16771 - break; //#16771 - } //#16771 - } //#16771 - $k[$j++] = Infinity; //#16773 - $aload($_.out); //#16773 - $aload($_.cwn); //#16773 - $_.out = $a(); //#16773 - } //#16773 - $k[$j++] = $_.out; //#16775 - }; //#16775 + $_.in = $k[--$j]; //#16958 + $_.out = $a([]); //#16959 + for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16987 + $_.k = _C9; //#16961 + $k[$j++] = Infinity; //#16962 + var _CE = $_.in.length - $_.k; //#16963 + $k[$j++] = 1; //#16963 + $k[$j++] = $_.in; //#16963 + $k[$j++] = $_.k; //#16963 + $k[$j++] = _CE; //#16963 + if (_CE > 44) { //#16963 + $j--; //#16963 + $k[$j++] = 44; //#16963 + } //#16963 + var _CF = $k[--$j]; //#16963 + var _CG = $k[--$j]; //#16963 + var _CI = $geti($k[--$j], _CG, _CF); //#16963 + for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16964 + $k[$j++] = $f($get(_CI, _CJ) - 48); //#16964 + } //#16964 + $_.gmod = $a(); //#16964 + $_.cwn = $a([]); //#16966 + for (;;) { //#16985 + $_.dv = 900; //#16967 + $_.gmul = $a([]); //#16968 + $_.val = 0; //#16968 + for (;;) { //#16980 + if ($_.gmod.length == 0) { //#16969 + break; //#16969 + } //#16969 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16970 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16971 + if ($_.val < $_.dv) { //#16977 + if ($_.gmul.length != 0) { //#16975 + $k[$j++] = Infinity; //#16974 + $aload($_.gmul); //#16974 + $k[$j++] = 0; //#16974 + $_.gmul = $a(); //#16974 + } //#16974 + } else { //#16977 + $k[$j++] = Infinity; //#16977 + $aload($_.gmul); //#16977 + $k[$j++] = ~~($_.val / $_.dv); //#16977 + $_.gmul = $a(); //#16977 + } //#16977 + $_.val = $_.val % $_.dv; //#16979 + } //#16979 + $_.dv = $_.val; //#16981 + $k[$j++] = Infinity; //#16982 + $k[$j++] = $_.dv; //#16982 + $aload($_.cwn); //#16982 + $_.cwn = $a(); //#16982 + $_.gmod = $_.gmul; //#16983 + if ($_.gmul.length == 0) { //#16984 + break; //#16984 + } //#16984 + } //#16984 + $k[$j++] = Infinity; //#16986 + $aload($_.out); //#16986 + $aload($_.cwn); //#16986 + $_.out = $a(); //#16986 + } //#16986 + $k[$j++] = $_.out; //#16988 + }; //#16988 $_.ence = function() { - var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16780 - $k[$j++] = _Ct; //#16788 - if (_Ct <= 899) { //#16787 - var _Cu = $k[--$j]; //#16781 - $k[$j++] = 927; //#16781 - $k[$j++] = _Cu; //#16781 - $astore($a(2)); //#16781 - } else { //#16787 - var _Cw = $k[--$j]; //#16782 - $k[$j++] = _Cw; //#16788 - if (_Cw <= 810899) { //#16787 - var _Cx = $k[--$j]; //#16783 - $k[$j++] = 926; //#16783 - $k[$j++] = (~~(_Cx / 900)) - 1; //#16783 - $k[$j++] = _Cx % 900; //#16783 - $astore($a(3)); //#16783 - } else { //#16787 - var _Cz = $k[--$j]; //#16784 - $k[$j++] = _Cz; //#16788 - if (_Cz <= 811799) { //#16787 - var _D0 = $k[--$j]; //#16785 - $k[$j++] = 925; //#16785 - $k[$j++] = $f(_D0 - 810900); //#16785 - $astore($a(2)); //#16785 - } else { //#16787 - $k[$j++] = 'bwipp.pdf417badECI#16787'; //#16787 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16787 - bwipp_raiseerror(); //#16787 - } //#16787 - } //#16787 - } //#16787 - }; //#16787 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#16791 + var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16993 + $k[$j++] = _Ct; //#17001 + if (_Ct <= 899) { //#17000 + var _Cu = $k[--$j]; //#16994 + $k[$j++] = 927; //#16994 + $k[$j++] = _Cu; //#16994 + $astore($a(2)); //#16994 + } else { //#17000 + var _Cw = $k[--$j]; //#16995 + $k[$j++] = _Cw; //#17001 + if (_Cw <= 810899) { //#17000 + var _Cx = $k[--$j]; //#16996 + $k[$j++] = 926; //#16996 + $k[$j++] = (~~(_Cx / 900)) - 1; //#16996 + $k[$j++] = _Cx % 900; //#16996 + $astore($a(3)); //#16996 + } else { //#17000 + var _Cz = $k[--$j]; //#16997 + $k[$j++] = _Cz; //#17001 + if (_Cz <= 811799) { //#17000 + var _D0 = $k[--$j]; //#16998 + $k[$j++] = 925; //#16998 + $k[$j++] = $f(_D0 - 810900); //#16998 + $astore($a(2)); //#16998 + } else { //#17000 + $k[$j++] = 'bwipp.pdf417badECI#17000'; //#17000 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17000 + bwipp_raiseerror(); //#17000 + } //#17000 + } //#17000 + } //#17000 + }; //#17000 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17004 $_.addtocws = function() { - var _D3 = $k[--$j]; //#16794 - $puti($_.datcws, $_.j, _D3); //#16794 - $_.j = _D3.length + $_.j; //#16795 - }; //#16795 - $_.state = $_.T; //#16799 - $_.submode = $_.A; //#16799 - $_.datcws = $a($_.seqlen); //#16800 - $_.i = 0; //#16801 - $_.j = 0; //#16801 - for (;;) { //#16821 - if ($_.i >= $_.seq.length) { //#16802 - break; //#16802 - } //#16802 - $_.chars = $get($_.seq, $_.i); //#16803 - if ($eq($type($_.chars), 'arraytype')) { //#16817 - if ($get($_.chars, 0) <= -1000000) { //#16808 - $k[$j++] = $_.chars; //#16806 - $_.ence(); //#16806 - $_.addtocws(); //#16806 - } else { //#16808 - $k[$j++] = $_.chars; //#16808 + var _D3 = $k[--$j]; //#17007 + $puti($_.datcws, $_.j, _D3); //#17007 + $_.j = _D3.length + $_.j; //#17008 + }; //#17008 + $_.state = $_.T; //#17012 + $_.submode = $_.A; //#17012 + $_.datcws = $a($_.seqlen); //#17013 + $_.i = 0; //#17014 + $_.j = 0; //#17014 + for (;;) { //#17034 + if ($_.i >= $_.seq.length) { //#17015 + break; //#17015 + } //#17015 + $_.chars = $get($_.seq, $_.i); //#17016 + if ($eq($type($_.chars), 'arraytype')) { //#17030 + if ($get($_.chars, 0) <= -1000000) { //#17021 + $k[$j++] = $_.chars; //#17019 + $_.ence(); //#17019 + $_.addtocws(); //#17019 + } else { //#17021 + $k[$j++] = $_.chars; //#17021 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#16808 - $_.addtocws(); //#16808 - } //#16808 - } else { //#16817 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#16811 - $_.addtocws(); //#16811 - if ($_.chars == $_.tl) { //#16812 - $_.state = $_.T; //#16812 - $_.submode = $_.A; //#16812 - } //#16812 - if ($_.chars == $_.nl) { //#16813 - $_.state = $_.N; //#16813 - } //#16813 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#16814 - $_.state = $_.B; //#16814 - } //#16814 - if ($_.chars == $_.bs) { //#16818 - $_.i = $_.i + 1; //#16816 - $k[$j++] = $get($_.seq, $_.i); //#16817 - $_.encb(); //#16817 - $_.addtocws(); //#16817 - } //#16817 - } //#16817 - $_.i = $_.i + 1; //#16820 - } //#16820 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16822 - } //#16822 - $_.m = $_.datcws.length; //#16826 - if ($_.eclevel == -1) { //#16832 - if ($_.m <= 40) { //#16828 - $_.eclevel = 2; //#16828 - } //#16828 - if (($_.m >= 41) && ($_.m <= 160)) { //#16829 - $_.eclevel = 3; //#16829 - } //#16829 - if (($_.m >= 161) && ($_.m <= 320)) { //#16830 - $_.eclevel = 4; //#16830 - } //#16830 - if ($_.m >= 321) { //#16831 - $_.eclevel = 5; //#16831 - } //#16831 - } //#16831 - $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#16835 - if ($_.eclevel > $_.maxeclevel) { //#16836 - $_.eclevel = $_.maxeclevel; //#16836 - } //#16836 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16837 - if ($_.columns == 0) { //#16840 - $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#16840 - } //#16840 - $k[$j++] = 'c'; //#16841 - if ($_.columns >= 1) { //#16841 - $k[$j++] = $_.columns; //#16841 - } else { //#16841 - $k[$j++] = 1; //#16841 - } //#16841 - var _E8 = $k[--$j]; //#16841 - $_[$k[--$j]] = _E8; //#16841 - $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#16844 - if (($_.r < $_.rows) && ($_.rows <= 90)) { //#16845 - $_.r = $_.rows; //#16845 - } //#16845 - if ($_.r < 3) { //#16846 - $_.r = 3; //#16846 - } //#16846 - if ($_.r > 90) { //#16851 - $k[$j++] = 'bwipp.pdf417insufficientCapacity#16850'; //#16850 - $k[$j++] = "Insufficient capacity in the symbol"; //#16850 - bwipp_raiseerror(); //#16850 - } //#16850 - var _EJ = $_.c; //#16854 - var _EK = $_.r; //#16854 - var _EL = $_.m; //#16854 - var _EM = 8; //#16854 - var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#16854 - if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#16854 - var _ = _EM; //#16854 - _EM = _EN; //#16854 - _EN = _; //#16854 - } //#16854 - $_.maxeclevel = _EN; //#16854 - if ($_.maxeclevel > $_.eclevel) { //#16858 - $_.eclevel = $_.maxeclevel; //#16856 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16857 - } //#16857 - $_.n = $f(($_.c * $_.r) - $_.k); //#16861 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#16862 - $put($_.cws, 0, $_.n); //#16863 - $puti($_.cws, 1, $_.datcws); //#16864 - $k[$j++] = $_.cws; //#16865 - $k[$j++] = $_.m + 1; //#16865 - $k[$j++] = Infinity; //#16865 - for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#16865 - $k[$j++] = 900; //#16865 - } //#16865 - var _Ei = $a(); //#16865 - var _Ej = $k[--$j]; //#16865 - $puti($k[--$j], _Ej, _Ei); //#16865 - $k[$j++] = $_.cws; //#16866 - $k[$j++] = $_.n; //#16866 - $k[$j++] = Infinity; //#16866 - for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#16866 - $k[$j++] = 0; //#16866 - } //#16866 - $k[$j++] = 0; //#16866 - var _Eq = $a(); //#16866 - var _Er = $k[--$j]; //#16866 - $puti($k[--$j], _Er, _Eq); //#16866 - $k[$j++] = Infinity; //#16869 - $k[$j++] = 1; //#16869 - for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#16869 - var _Ev = $k[--$j]; //#16869 - $k[$j++] = _Ev; //#16869 - $k[$j++] = (_Ev * 3) % 929; //#16869 - } //#16869 - $_.rsalog = $a(); //#16869 - $_.rslog = $a(929); //#16870 - for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#16871 - $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#16871 - } //#16871 + } //#17021 + $_.addtocws(); //#17021 + } //#17021 + } else { //#17030 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17024 + $_.addtocws(); //#17024 + if ($_.chars == $_.tl) { //#17025 + $_.state = $_.T; //#17025 + $_.submode = $_.A; //#17025 + } //#17025 + if ($_.chars == $_.nl) { //#17026 + $_.state = $_.N; //#17026 + } //#17026 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17027 + $_.state = $_.B; //#17027 + } //#17027 + if ($_.chars == $_.bs) { //#17031 + $_.i = $_.i + 1; //#17029 + $k[$j++] = $get($_.seq, $_.i); //#17030 + $_.encb(); //#17030 + $_.addtocws(); //#17030 + } //#17030 + } //#17030 + $_.i = $_.i + 1; //#17033 + } //#17033 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17035 + } //#17035 + $_.m = $_.datcws.length; //#17039 + if ($_.eclevel == -1) { //#17045 + if ($_.m <= 40) { //#17041 + $_.eclevel = 2; //#17041 + } //#17041 + if (($_.m >= 41) && ($_.m <= 160)) { //#17042 + $_.eclevel = 3; //#17042 + } //#17042 + if (($_.m >= 161) && ($_.m <= 320)) { //#17043 + $_.eclevel = 4; //#17043 + } //#17043 + if ($_.m >= 321) { //#17044 + $_.eclevel = 5; //#17044 + } //#17044 + } //#17044 + $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#17048 + if ($_.eclevel > $_.maxeclevel) { //#17049 + $_.eclevel = $_.maxeclevel; //#17049 + } //#17049 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17050 + if ($_.columns == 0) { //#17053 + $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#17053 + } //#17053 + $k[$j++] = 'c'; //#17054 + if ($_.columns >= 1) { //#17054 + $k[$j++] = $_.columns; //#17054 + } else { //#17054 + $k[$j++] = 1; //#17054 + } //#17054 + var _E8 = $k[--$j]; //#17054 + $_[$k[--$j]] = _E8; //#17054 + $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#17057 + if (($_.r < $_.rows) && ($_.rows <= 90)) { //#17058 + $_.r = $_.rows; //#17058 + } //#17058 + if ($_.r < 3) { //#17059 + $_.r = 3; //#17059 + } //#17059 + if ($_.r > 90) { //#17064 + $k[$j++] = 'bwipp.pdf417insufficientCapacity#17063'; //#17063 + $k[$j++] = "Insufficient capacity in the symbol"; //#17063 + bwipp_raiseerror(); //#17063 + } //#17063 + var _EJ = $_.c; //#17067 + var _EK = $_.r; //#17067 + var _EL = $_.m; //#17067 + var _EM = 8; //#17067 + var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#17067 + if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#17067 + var _ = _EM; //#17067 + _EM = _EN; //#17067 + _EN = _; //#17067 + } //#17067 + $_.maxeclevel = _EN; //#17067 + if ($_.maxeclevel > $_.eclevel) { //#17071 + $_.eclevel = $_.maxeclevel; //#17069 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17070 + } //#17070 + $_.n = $f(($_.c * $_.r) - $_.k); //#17074 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#17075 + $put($_.cws, 0, $_.n); //#17076 + $puti($_.cws, 1, $_.datcws); //#17077 + $k[$j++] = $_.cws; //#17078 + $k[$j++] = $_.m + 1; //#17078 + $k[$j++] = Infinity; //#17078 + for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#17078 + $k[$j++] = 900; //#17078 + } //#17078 + var _Ei = $a(); //#17078 + var _Ej = $k[--$j]; //#17078 + $puti($k[--$j], _Ej, _Ei); //#17078 + $k[$j++] = $_.cws; //#17079 + $k[$j++] = $_.n; //#17079 + $k[$j++] = Infinity; //#17079 + for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#17079 + $k[$j++] = 0; //#17079 + } //#17079 + $k[$j++] = 0; //#17079 + var _Eq = $a(); //#17079 + var _Er = $k[--$j]; //#17079 + $puti($k[--$j], _Er, _Eq); //#17079 + if (!bwipp_pdf417.__17086__) { //#17086 + $_ = Object.create($_); //#17086 + $k[$j++] = Infinity; //#17083 + $k[$j++] = 1; //#17083 + for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#17083 + var _Ev = $k[--$j]; //#17083 + $k[$j++] = _Ev; //#17083 + $k[$j++] = (_Ev * 3) % 929; //#17083 + } //#17083 + $_.rsalog = $a(); //#17083 + $_.rslog = $a(929); //#17084 + for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#17085 + $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#17085 + } //#17085 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17085 + bwipp_pdf417.__17086__ = 1; //#17085 + $_ = Object.getPrototypeOf($_); //#17085 + } //#17085 $_.rsprod = function() { - var _F2 = $k[--$j]; //#16875 - var _F3 = $k[--$j]; //#16875 - $k[$j++] = _F3; //#16879 - $k[$j++] = _F2; //#16879 - if ((_F2 != 0) && (_F3 != 0)) { //#16878 - var _F6 = $get($_.rslog, $k[--$j]); //#16876 - var _FB = $get($_.rsalog, $f(_F6 + $get($_.rslog, $k[--$j])) % 928); //#16876 - $k[$j++] = _FB; //#16876 - } else { //#16878 - $j -= 2; //#16878 - $k[$j++] = 0; //#16878 - } //#16878 - }; //#16878 - $k[$j++] = Infinity; //#16883 - $k[$j++] = 1; //#16883 - for (var _FD = 0, _FE = $_.k; _FD < _FE; _FD++) { //#16883 - $k[$j++] = 0; //#16883 - } //#16883 - $_.coeffs = $a(); //#16883 - for (var _FI = 1, _FH = $_.k; _FI <= _FH; _FI += 1) { //#16892 - $_.i = _FI; //#16885 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#16886 - for (var _FP = $_.i - 1; _FP >= 1; _FP -= 1) { //#16890 - $_.j = _FP; //#16888 - $k[$j++] = $_.coeffs; //#16889 - $k[$j++] = $_.j; //#16889 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#16889 - $k[$j++] = $get($_.coeffs, $_.j); //#16889 - $k[$j++] = $get($_.rsalog, $_.i); //#16889 - $_.rsprod(); //#16889 - var _Fb = $k[--$j]; //#16889 - var _Fc = $k[--$j]; //#16889 - var _Fd = $k[--$j]; //#16889 - $put($k[--$j], _Fd, $f(_Fc + _Fb) % 929); //#16889 - } //#16889 - $k[$j++] = $_.coeffs; //#16891 - $k[$j++] = 0; //#16891 - $k[$j++] = $get($_.coeffs, 0); //#16891 - $k[$j++] = $get($_.rsalog, $_.i); //#16891 - $_.rsprod(); //#16891 - var _Fl = $k[--$j]; //#16891 - var _Fm = $k[--$j]; //#16891 - $put($k[--$j], _Fm, _Fl); //#16891 - } //#16891 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#16893 - for (var _Fs = $_.coeffs.length - 1; _Fs >= 0; _Fs -= 2) { //#16894 - var _Ft = $_.coeffs; //#16894 - $put(_Ft, _Fs, $f(929 - $get(_Ft, _Fs))); //#16894 - } //#16894 - for (var _Fx = 0, _Fw = $f($_.n - 1); _Fx <= _Fw; _Fx += 1) { //#16903 - $_.t = $f($get($_.cws, _Fx) + $get($_.cws, $_.n)) % 929; //#16898 - for (var _G5 = 0, _G4 = $_.k - 1; _G5 <= _G4; _G5 += 1) { //#16902 - $_.j = _G5; //#16900 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#16901 - } //#16901 - } //#16901 - for (var _GM = $_.n, _GL = $f($_.n + $_.k); _GM <= _GL; _GM += 1) { //#16904 - $put($_.cws, _GM, $f(929 - $get($_.cws, _GM)) % 929); //#16904 - } //#16904 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#16907 - var _GU = $get($_.options, 'debugcws') !== undefined; //#16909 - if (_GU) { //#16909 - $k[$j++] = 'bwipp.debugcws#16909'; //#16909 - $k[$j++] = $_.cws; //#16909 - bwipp_raiseerror(); //#16909 - } //#16909 - if (!bwipp_pdf417.__17153__) { //#17153 - $_ = Object.create($_); //#17153 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17152 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17152 - bwipp_pdf417.__17153__ = 1; //#17152 - $_ = Object.getPrototypeOf($_); //#17152 - } //#17152 + var _F3 = $k[--$j]; //#17090 + var _F4 = $k[--$j]; //#17090 + $k[$j++] = _F4; //#17094 + $k[$j++] = _F3; //#17094 + if ((_F3 != 0) && (_F4 != 0)) { //#17093 + var _F7 = $get($_.rslog, $k[--$j]); //#17091 + var _FC = $get($_.rsalog, $f(_F7 + $get($_.rslog, $k[--$j])) % 928); //#17091 + $k[$j++] = _FC; //#17091 + } else { //#17093 + $j -= 2; //#17093 + $k[$j++] = 0; //#17093 + } //#17093 + }; //#17093 + $k[$j++] = Infinity; //#17098 + $k[$j++] = 1; //#17098 + for (var _FE = 0, _FF = $_.k; _FE < _FF; _FE++) { //#17098 + $k[$j++] = 0; //#17098 + } //#17098 + $_.coeffs = $a(); //#17098 + for (var _FJ = 1, _FI = $_.k; _FJ <= _FI; _FJ += 1) { //#17107 + $_.i = _FJ; //#17100 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17101 + for (var _FQ = $_.i - 1; _FQ >= 1; _FQ -= 1) { //#17105 + $_.j = _FQ; //#17103 + $k[$j++] = $_.coeffs; //#17104 + $k[$j++] = $_.j; //#17104 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#17104 + $k[$j++] = $get($_.coeffs, $_.j); //#17104 + $k[$j++] = $get($_.rsalog, $_.i); //#17104 + $_.rsprod(); //#17104 + var _Fc = $k[--$j]; //#17104 + var _Fd = $k[--$j]; //#17104 + var _Fe = $k[--$j]; //#17104 + $put($k[--$j], _Fe, $f(_Fd + _Fc) % 929); //#17104 + } //#17104 + $k[$j++] = $_.coeffs; //#17106 + $k[$j++] = 0; //#17106 + $k[$j++] = $get($_.coeffs, 0); //#17106 + $k[$j++] = $get($_.rsalog, $_.i); //#17106 + $_.rsprod(); //#17106 + var _Fm = $k[--$j]; //#17106 + var _Fn = $k[--$j]; //#17106 + $put($k[--$j], _Fn, _Fm); //#17106 + } //#17106 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17108 + for (var _Ft = $_.coeffs.length - 1; _Ft >= 0; _Ft -= 2) { //#17109 + var _Fu = $_.coeffs; //#17109 + $put(_Fu, _Ft, $f(929 - $get(_Fu, _Ft))); //#17109 + } //#17109 + for (var _Fy = 0, _Fx = $f($_.n - 1); _Fy <= _Fx; _Fy += 1) { //#17118 + $_.t = $f($get($_.cws, _Fy) + $get($_.cws, $_.n)) % 929; //#17113 + for (var _G6 = 0, _G5 = $_.k - 1; _G6 <= _G5; _G6 += 1) { //#17117 + $_.j = _G6; //#17115 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#17116 + } //#17116 + } //#17116 + for (var _GN = $_.n, _GM = $f($_.n + $_.k); _GN <= _GM; _GN += 1) { //#17119 + $put($_.cws, _GN, $f(929 - $get($_.cws, _GN)) % 929); //#17119 + } //#17119 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17122 + var _GV = $get($_.options, 'debugcws') !== undefined; //#17124 + if (_GV) { //#17124 + $k[$j++] = 'bwipp.debugcws#17124'; //#17124 + $k[$j++] = $_.cws; //#17124 + bwipp_raiseerror(); //#17124 + } //#17124 + if (!bwipp_pdf417.__17368__) { //#17368 + $_ = Object.create($_); //#17368 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17367 + bwipp_pdf417.__17368__ = 1; //#17367 + $_ = Object.getPrototypeOf($_); //#17367 + } //#17367 $_.cwtobits = function() { - var _Gd = $get($_.clusters, $k[--$j]); //#17157 - $_.v = $get(_Gd, $k[--$j]); //#17157 - $k[$j++] = Infinity; //#17158 - for (var _Gg = 0, _Gh = 17; _Gg < _Gh; _Gg++) { //#17158 - $k[$j++] = 0; //#17158 - } //#17158 - var _Gk = $cvrs($s(17), $_.v, 2); //#17158 - for (var _Gl = 0, _Gm = _Gk.length; _Gl < _Gm; _Gl++) { //#17158 - $k[$j++] = $get(_Gk, _Gl) - 48; //#17158 - } //#17158 - var _Go = $a(); //#17158 - $k[$j++] = $geti(_Go, _Go.length - 17, 17); //#17159 - }; //#17159 - if ($_.compact) { //#17166 - $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17164 - } else { //#17166 - $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17166 - } //#17166 - $_.pixs = $a($_.rwid * $_.r); //#17168 - for (var _Gy = 0, _Gx = $_.r - 1; _Gy <= _Gx; _Gy += 1) { //#17198 - $_.i = _Gy; //#17171 - if (($_.i % 3) == 0) { //#17176 - $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17174 - $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17175 - } //#17175 - if (($_.i % 3) == 1) { //#17180 - $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17178 - $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17179 - } //#17179 - if (($_.i % 3) == 2) { //#17184 - $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17182 - $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17183 - } //#17183 - $k[$j++] = $_.pixs; //#17194 - $k[$j++] = $_.rwid * $_.i; //#17194 - $k[$j++] = Infinity; //#17194 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = $_.lcw; //#17188 - $k[$j++] = $_.i % 3; //#17188 - $_.cwtobits(); //#17188 - $forall($k[--$j]); //#17188 - var _HQ = $geti($_.cws, $_.c * $_.i, $_.c); //#17189 - for (var _HR = 0, _HS = _HQ.length; _HR < _HS; _HR++) { //#17189 - $k[$j++] = $get(_HQ, _HR); //#17189 - $k[$j++] = $_.i % 3; //#17189 - $_.cwtobits(); //#17189 - $forall($k[--$j]); //#17189 - } //#17189 - if ($_.compact) { //#17194 - $k[$j++] = 1; //#17191 - } else { //#17194 - $k[$j++] = $_.rcw; //#17193 - $k[$j++] = $_.i % 3; //#17193 - $_.cwtobits(); //#17193 - $forall($k[--$j]); //#17193 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - } //#17194 - var _Ha = $a(); //#17194 - var _Hb = $k[--$j]; //#17196 - $puti($k[--$j], _Hb, _Ha); //#17196 - } //#17196 - var _Hk = new Map([ + var _Ge = $get($_.clusters, $k[--$j]); //#17372 + $_.v = $get(_Ge, $k[--$j]); //#17372 + $k[$j++] = Infinity; //#17373 + for (var _Gh = 0, _Gi = 17; _Gh < _Gi; _Gh++) { //#17373 + $k[$j++] = 0; //#17373 + } //#17373 + var _Gl = $cvrs($s(17), $_.v, 2); //#17373 + for (var _Gm = 0, _Gn = _Gl.length; _Gm < _Gn; _Gm++) { //#17373 + $k[$j++] = $get(_Gl, _Gm) - 48; //#17373 + } //#17373 + var _Gp = $a(); //#17373 + $k[$j++] = $geti(_Gp, _Gp.length - 17, 17); //#17374 + }; //#17374 + if ($_.compact) { //#17381 + $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17379 + } else { //#17381 + $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17381 + } //#17381 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#17383 + for (var _H0 = 0, _Gz = $_.r - 1; _H0 <= _Gz; _H0 += 1) { //#17416 + $_.i = _H0; //#17386 + if (($_.i % 3) == 0) { //#17391 + $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17389 + $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17390 + } //#17390 + if (($_.i % 3) == 1) { //#17395 + $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17393 + $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17394 + } //#17394 + if (($_.i % 3) == 2) { //#17399 + $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17397 + $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17398 + } //#17398 + $k[$j++] = Infinity; //#17401 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = $_.lcw; //#17403 + $k[$j++] = $_.i % 3; //#17403 + $_.cwtobits(); //#17403 + $aload($k[--$j]); //#17403 + var _HP = $geti($_.cws, $_.c * $_.i, $_.c); //#17404 + for (var _HQ = 0, _HR = _HP.length; _HQ < _HR; _HQ++) { //#17404 + $k[$j++] = $get(_HP, _HQ); //#17404 + $k[$j++] = $_.i % 3; //#17404 + $_.cwtobits(); //#17404 + $aload($k[--$j]); //#17404 + } //#17404 + if ($_.compact) { //#17409 + $k[$j++] = 1; //#17406 + } else { //#17409 + $k[$j++] = $_.rcw; //#17408 + $k[$j++] = $_.i % 3; //#17408 + $_.cwtobits(); //#17408 + $aload($k[--$j]); //#17408 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + } //#17409 + var _HZ = $a(); //#17409 + $k[$j++] = _HZ; //#17414 + for (var _Hc = 0, _Hb = $_.rowmult - 1; _Hc <= _Hb; _Hc += 1) { //#17414 + var _Hh = $k[--$j]; //#17413 + $puti($_.pixs, (_Hc + ($_.i * $_.rowmult)) * $_.rwid, _Hh); //#17413 + $k[$j++] = _Hh; //#17413 + } //#17413 + $j--; //#17415 + } //#17415 + var _Hq = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 2], + ["borderright", 2], + ["bordertop", 2], + ["borderbottom", 2], ["opt", $_.options] - ]); //#17208 - $k[$j++] = _Hk; //#17211 - if (!$_.dontdraw) { //#17211 - bwipp_renmatrix(); //#17211 - } //#17211 - $_ = Object.getPrototypeOf($_); //#17213 - $_ = Object.getPrototypeOf($_); //#17215 -} - + ]); //#17430 + $k[$j++] = _Hq; //#17433 + if (!$_.dontdraw) { //#17433 + bwipp_renmatrix(); //#17433 + } //#17433 + $_ = Object.getPrototypeOf($_); //#17435 + $_ = Object.getPrototypeOf($_); //#17437 +} //bwipp_pdf417 function bwipp_pdf417compact() { - $_ = Object.create($_); //#17244 - $_.dontdraw = false; //#17247 - $k[$j++] = $_; //#17249 - bwipp_processoptions(); //#17249 - $_.options = $k[--$j]; //#17249 - $_.barcode = $k[--$j]; //#17250 - $put($_.options, "dontdraw", true); //#17253 - $put($_.options, "compact", true); //#17254 - $k[$j++] = 'args'; //#17256 - $k[$j++] = $_.barcode; //#17256 - $k[$j++] = $_.options; //#17256 - bwipp_pdf417(); //#17256 - var _6 = $k[--$j]; //#17256 - $_[$k[--$j]] = _6; //#17256 - $put($_.args, "opt", $_.options); //#17258 - $k[$j++] = $_.args; //#17261 - if (!$_.dontdraw) { //#17261 - bwipp_renmatrix(); //#17261 - } //#17261 - $_ = Object.getPrototypeOf($_); //#17263 -} - + $_ = Object.create($_); //#17466 + $_.dontdraw = false; //#17469 + $k[$j++] = $_; //#17471 + bwipp_processoptions(); //#17471 + $_.options = $k[--$j]; //#17471 + $_.barcode = $k[--$j]; //#17472 + $put($_.options, "dontdraw", true); //#17475 + $put($_.options, "compact", true); //#17476 + $k[$j++] = 'args'; //#17478 + $k[$j++] = $_.barcode; //#17478 + $k[$j++] = $_.options; //#17478 + bwipp_pdf417(); //#17478 + var _6 = $k[--$j]; //#17478 + $_[$k[--$j]] = _6; //#17478 + $put($_.args, "opt", $_.options); //#17480 + $k[$j++] = $_.args; //#17483 + if (!$_.dontdraw) { //#17483 + bwipp_renmatrix(); //#17483 + } //#17483 + $_ = Object.getPrototypeOf($_); //#17485 +} //bwipp_pdf417compact function bwipp_micropdf417() { - $_ = Object.create($_); //#17294 - $_.dontdraw = false; //#17297 - $_.version = "unset"; //#17298 - $_.columns = 0; //#17299 - $_.rows = 0; //#17300 - $_.rowmult = 2; //#17301 - $_.cca = false; //#17302 - $_.ccb = false; //#17303 - $_.raw = false; //#17304 - $_.parse = false; //#17305 - $_.parsefnc = false; //#17306 - $k[$j++] = $_; //#17308 - bwipp_processoptions(); //#17308 - $_.options = $k[--$j]; //#17308 - $_.barcode = $k[--$j]; //#17309 - if ($eq($_.barcode, "")) { //#17313 - $k[$j++] = 'bwipp.micropdf417emptyData#17312'; //#17312 - $k[$j++] = "The data must not be empty"; //#17312 - bwipp_raiseerror(); //#17312 - } //#17312 - if ($_.rowmult <= 0) { //#17317 - $k[$j++] = 'bwipp.micropdf417badRowMult#17316'; //#17316 - $k[$j++] = "The row multiplier must be greater than zero"; //#17316 - bwipp_raiseerror(); //#17316 - } //#17316 - if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17321 - $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17320'; //#17320 - $k[$j++] = "Cannot combine cca, ccb and raw"; //#17320 - bwipp_raiseerror(); //#17320 - } //#17320 - if ($ne($_.version, "unset")) { //#17342 - $search($_.version, "x"); //#17325 - if ($k[--$j]) { //#17340 - var _D = $k[--$j]; //#17326 - var _E = $k[--$j]; //#17326 - $k[$j++] = _D; //#17326 - $k[$j++] = _E; //#17326 - $j--; //#17326 - var _F = $k[--$j]; //#17327 - var _G = $k[--$j]; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $astore($a(2)); //#17327 - $forall($k[--$j], function() { //#17336 - var _J = $k[--$j]; //#17329 - $k[$j++] = _J; //#17329 - $k[$j++] = true; //#17329 - if (_J.length == 0) { //#17329 - $j--; //#17329 - $k[$j++] = false; //#17329 - } //#17329 - var _K = $k[--$j]; //#17330 - var _L = $k[--$j]; //#17330 - $k[$j++] = _K; //#17332 - $forall(_L, function() { //#17332 - var _M = $k[--$j]; //#17331 - if ((_M < 48) || (_M > 57)) { //#17331 - $j--; //#17331 - $k[$j++] = false; //#17331 - } //#17331 - }); //#17331 - if ($nt($k[--$j])) { //#17335 - $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17334'; //#17334 - $k[$j++] = "version must be formatted as RxC"; //#17334 - bwipp_raiseerror(); //#17334 - } //#17334 - }); //#17334 - $_.rows = $cvi($k[--$j]); //#17337 - $_.columns = $cvi($k[--$j]); //#17338 - } else { //#17340 - $j--; //#17340 - $k[$j++] = 'bwipp.micropdf417badVersionFormat#17340'; //#17340 - $k[$j++] = "version must be formatted as RxC"; //#17340 - bwipp_raiseerror(); //#17340 - } //#17340 - } //#17340 - bwipp_loadctx(bwipp_micropdf417) //#17344 - if (!bwipp_micropdf417.__17431__) { //#17431 - $_ = Object.create($_); //#17431 - $_.T = 0; //#17348 - $_.N = 1; //#17348 - $_.B = 2; //#17348 - $_.A = 0; //#17349 - $_.L = 1; //#17349 - $_.M = 2; //#17349 - $_.P = 3; //#17349 - $_.tl = -1; //#17352 - $_.nl = -2; //#17352 - $_.bl = -3; //#17352 - $_.bl6 = -4; //#17352 - $_.bs = -5; //#17352 - $_.al = -6; //#17355 - $_.ll = -7; //#17355 - $_.ml = -8; //#17355 - $_.pl = -9; //#17355 - $_.as = -10; //#17355 - $_.ps = -11; //#17355 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17390 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17393 - $_.alltext = new Map; //#17394 - for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17404 - $_.i = _19; //#17396 - $_.encs = $get($_.charmaps, $_.i); //#17397 - for (var _1D = 0; _1D <= 3; _1D += 1) { //#17403 - $_.j = _1D; //#17399 - var _1G = $get($_.encs, $_.j); //#17400 - $k[$j++] = _1G; //#17400 - if ($eq($type(_1G), 'stringtype')) { //#17400 - var _1J = $get($k[--$j], 0); //#17400 - $k[$j++] = _1J; //#17400 - } //#17400 - var _1K = $k[--$j]; //#17401 - $put($get($_.charvals, $_.j), _1K, $_.i); //#17401 - $put($_.alltext, _1K, -1); //#17402 - } //#17402 - } //#17402 - $_.e = 10000; //#17406 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17414 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17422 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17430 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17430 - bwipp_micropdf417.__17431__ = 1; //#17430 - $_ = Object.getPrototypeOf($_); //#17430 - } //#17430 - if ($_.raw || $_.cca) { //#17452 - $_.datcws = $a($_.barcode.length); //#17435 - $_.i = 0; //#17436 - $_.j = 0; //#17436 - for (;;) { //#17447 - if ($_.i >= ($_.barcode.length - 3)) { //#17438 - break; //#17438 - } //#17438 - if ($get($_.barcode, $_.i) != 94) { //#17439 - break; //#17439 - } //#17439 - var _2a = $geti($_.barcode, $_.i + 1, 3); //#17440 - $k[$j++] = _2a; //#17442 - $k[$j++] = false; //#17442 - for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17442 - var _2d = $get(_2a, _2b); //#17442 - if ((_2d < 48) || (_2d > 57)) { //#17441 - $j--; //#17441 - $k[$j++] = true; //#17441 - } //#17441 - } //#17441 - if ($k[--$j]) { //#17442 - $j--; //#17442 - break; //#17442 - } //#17442 - $_.cw = $cvi($k[--$j]); //#17443 - $put($_.datcws, $_.j, $_.cw); //#17444 - $_.i = $_.i + 4; //#17445 - $_.j = $_.j + 1; //#17446 - } //#17446 - if ($_.i != $_.barcode.length) { //#17450 - $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17449'; //#17449 - $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17449 - bwipp_raiseerror(); //#17449 - } //#17449 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17451 - } //#17451 + $_ = Object.create($_); //#17516 + $_.dontdraw = false; //#17519 + $_.version = "unset"; //#17520 + $_.columns = 0; //#17521 + $_.rows = 0; //#17522 + $_.rowmult = 2; //#17523 + $_.cca = false; //#17524 + $_.ccb = false; //#17525 + $_.raw = false; //#17526 + $_.parse = false; //#17527 + $_.parsefnc = false; //#17528 + $k[$j++] = $_; //#17530 + bwipp_processoptions(); //#17530 + $_.options = $k[--$j]; //#17530 + $_.barcode = $k[--$j]; //#17531 + if ($eq($_.barcode, "")) { //#17535 + $k[$j++] = 'bwipp.micropdf417emptyData#17534'; //#17534 + $k[$j++] = "The data must not be empty"; //#17534 + bwipp_raiseerror(); //#17534 + } //#17534 + if ($_.rowmult <= 0) { //#17539 + $k[$j++] = 'bwipp.micropdf417badRowMult#17538'; //#17538 + $k[$j++] = "The row multiplier must be greater than zero"; //#17538 + bwipp_raiseerror(); //#17538 + } //#17538 + if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17543 + $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17542'; //#17542 + $k[$j++] = "Cannot combine cca, ccb and raw"; //#17542 + bwipp_raiseerror(); //#17542 + } //#17542 + if ($ne($_.version, "unset")) { //#17564 + $search($_.version, "x"); //#17547 + if ($k[--$j]) { //#17562 + var _D = $k[--$j]; //#17548 + var _E = $k[--$j]; //#17548 + $k[$j++] = _D; //#17548 + $k[$j++] = _E; //#17548 + $j--; //#17548 + var _F = $k[--$j]; //#17549 + var _G = $k[--$j]; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $astore($a(2)); //#17549 + $forall($k[--$j], function() { //#17558 + var _J = $k[--$j]; //#17551 + $k[$j++] = _J; //#17551 + $k[$j++] = true; //#17551 + if (_J.length == 0) { //#17551 + $j--; //#17551 + $k[$j++] = false; //#17551 + } //#17551 + var _K = $k[--$j]; //#17552 + var _L = $k[--$j]; //#17552 + $k[$j++] = _K; //#17554 + $forall(_L, function() { //#17554 + var _M = $k[--$j]; //#17553 + if ((_M < 48) || (_M > 57)) { //#17553 + $j--; //#17553 + $k[$j++] = false; //#17553 + } //#17553 + }); //#17553 + if ($nt($k[--$j])) { //#17557 + $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17556'; //#17556 + $k[$j++] = "version must be formatted as RxC"; //#17556 + bwipp_raiseerror(); //#17556 + } //#17556 + }); //#17556 + $_.rows = $cvi($k[--$j]); //#17559 + $_.columns = $cvi($k[--$j]); //#17560 + } else { //#17562 + $j--; //#17562 + $k[$j++] = 'bwipp.micropdf417badVersionFormat#17562'; //#17562 + $k[$j++] = "version must be formatted as RxC"; //#17562 + bwipp_raiseerror(); //#17562 + } //#17562 + } //#17562 + bwipp_loadctx(bwipp_micropdf417) //#17566 + if (!bwipp_micropdf417.__17656__) { //#17656 + $_ = Object.create($_); //#17656 + $_.T = 0; //#17570 + $_.N = 1; //#17570 + $_.B = 2; //#17570 + $_.A = 0; //#17571 + $_.L = 1; //#17571 + $_.M = 2; //#17571 + $_.P = 3; //#17571 + $_.tl = -1; //#17574 + $_.nl = -2; //#17574 + $_.bl = -3; //#17574 + $_.bl6 = -4; //#17574 + $_.bs = -5; //#17574 + $_.al = -6; //#17577 + $_.ll = -7; //#17577 + $_.ml = -8; //#17577 + $_.pl = -9; //#17577 + $_.as = -10; //#17577 + $_.ps = -11; //#17577 + $_.m05 = -12; //#17580 + $_.m06 = -13; //#17580 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17615 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17618 + $_.alltext = new Map; //#17619 + for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17629 + $_.i = _19; //#17621 + $_.encs = $get($_.charmaps, $_.i); //#17622 + for (var _1D = 0; _1D <= 3; _1D += 1) { //#17628 + $_.j = _1D; //#17624 + var _1G = $get($_.encs, $_.j); //#17625 + $k[$j++] = _1G; //#17625 + if ($eq($type(_1G), 'stringtype')) { //#17625 + var _1J = $get($k[--$j], 0); //#17625 + $k[$j++] = _1J; //#17625 + } //#17625 + var _1K = $k[--$j]; //#17626 + $put($get($_.charvals, $_.j), _1K, $_.i); //#17626 + $put($_.alltext, _1K, -1); //#17627 + } //#17627 + } //#17627 + $_.e = 10000; //#17631 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17639 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17647 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17655 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17655 + bwipp_micropdf417.__17656__ = 1; //#17655 + $_ = Object.getPrototypeOf($_); //#17655 + } //#17655 + if ($_.raw || $_.cca) { //#17677 + $_.datcws = $a($_.barcode.length); //#17660 + $_.i = 0; //#17661 + $_.j = 0; //#17661 + for (;;) { //#17672 + if ($_.i >= ($_.barcode.length - 3)) { //#17663 + break; //#17663 + } //#17663 + if ($get($_.barcode, $_.i) != 94) { //#17664 + break; //#17664 + } //#17664 + var _2a = $geti($_.barcode, $_.i + 1, 3); //#17665 + $k[$j++] = _2a; //#17667 + $k[$j++] = false; //#17667 + for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17667 + var _2d = $get(_2a, _2b); //#17667 + if ((_2d < 48) || (_2d > 57)) { //#17666 + $j--; //#17666 + $k[$j++] = true; //#17666 + } //#17666 + } //#17666 + if ($k[--$j]) { //#17667 + $j--; //#17667 + break; //#17667 + } //#17667 + $_.cw = $cvi($k[--$j]); //#17668 + $put($_.datcws, $_.j, $_.cw); //#17669 + $_.i = $_.i + 4; //#17670 + $_.j = $_.j + 1; //#17671 + } //#17671 + if ($_.i != $_.barcode.length) { //#17675 + $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17674'; //#17674 + $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17674 + bwipp_raiseerror(); //#17674 + } //#17674 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17676 + } //#17676 $_.encb = function() { - $_.in = $k[--$j]; //#17455 - $_.inlen = $_.in.length; //#17456 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17457 - for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17480 - $_.k = _2x; //#17459 - $k[$j++] = Infinity; //#17460 - $aload($geti($_.in, $_.k * 6, 3)); //#17460 - $_.msbs = $a(); //#17460 - $k[$j++] = Infinity; //#17463 - $aload($_.msbs); //#17462 - var _33 = $k[--$j]; //#17462 - var _34 = $k[--$j]; //#17462 - var _35 = $k[--$j]; //#17462 - $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17463 - for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17463 - var _38 = $k[--$j]; //#17463 - $k[$j++] = _38 % 900; //#17463 - $k[$j++] = ~~(_38 / 900); //#17463 - } //#17463 - $_.mscs = $a(); //#17463 - $k[$j++] = Infinity; //#17465 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17465 - $_.lsbs = $a(); //#17465 - $k[$j++] = Infinity; //#17468 - $aload($_.lsbs); //#17467 - var _3F = $k[--$j]; //#17467 - var _3G = $k[--$j]; //#17467 - var _3H = $k[--$j]; //#17467 - $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17468 - for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17468 - var _3K = $k[--$j]; //#17468 - $k[$j++] = _3K % 900; //#17468 - $k[$j++] = ~~(_3K / 900); //#17468 - } //#17468 - $_.lscs = $a(); //#17468 - var _3N = $get($_.lscs, 0); //#17470 - var _3P = $get($_.mscs, 0); //#17470 - $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17471 - var _3T = $get($_.lscs, 1); //#17472 - var _3V = $get($_.mscs, 0); //#17472 - var _3X = $get($_.mscs, 1); //#17472 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17473 - var _3b = $get($_.lscs, 2); //#17474 - var _3d = $get($_.mscs, 0); //#17474 - var _3f = $get($_.mscs, 1); //#17474 - var _3h = $get($_.mscs, 2); //#17474 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17475 - var _3l = $get($_.lscs, 3); //#17476 - var _3n = $get($_.mscs, 1); //#17476 - var _3p = $get($_.mscs, 2); //#17476 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17477 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17479 - } //#17479 - $_.rem = $_.inlen % 6; //#17481 - if ($_.rem != 0) { //#17486 - $k[$j++] = $_.out; //#17484 - $k[$j++] = $_.out.length - $_.rem; //#17484 - $k[$j++] = Infinity; //#17484 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17484 - var _46 = $a(); //#17484 - var _47 = $k[--$j]; //#17485 - $puti($k[--$j], _47, _46); //#17485 - } //#17485 - $k[$j++] = $_.out; //#17487 - }; //#17487 - if ($_.ccb) { //#17496 - $_.barlen = $_.barcode.length; //#17491 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17492 - $put($_.datcws, 0, 920); //#17493 - var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17494 - $put($_.datcws, 1, _4I); //#17494 - $k[$j++] = $_.datcws; //#17495 - $k[$j++] = 2; //#17495 - $k[$j++] = Infinity; //#17495 - $forall($_.barcode); //#17495 - var _4L = $a(); //#17495 - $k[$j++] = _4L; //#17495 - $_.encb(); //#17495 - var _4M = $k[--$j]; //#17495 - var _4N = $k[--$j]; //#17495 - $puti($k[--$j], _4N, _4M); //#17495 - } //#17495 - if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#17852 + $_.in = $k[--$j]; //#17680 + $_.inlen = $_.in.length; //#17681 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17682 + for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17705 + $_.k = _2x; //#17684 + $k[$j++] = Infinity; //#17685 + $aload($geti($_.in, $_.k * 6, 3)); //#17685 + $_.msbs = $a(); //#17685 + $k[$j++] = Infinity; //#17686 + $aload($_.msbs); //#17687 + var _33 = $k[--$j]; //#17687 + var _34 = $k[--$j]; //#17687 + var _35 = $k[--$j]; //#17687 + $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17688 + for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17688 + var _38 = $k[--$j]; //#17688 + $k[$j++] = _38 % 900; //#17688 + $k[$j++] = ~~(_38 / 900); //#17688 + } //#17688 + $_.mscs = $a(); //#17688 + $k[$j++] = Infinity; //#17690 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17690 + $_.lsbs = $a(); //#17690 + $k[$j++] = Infinity; //#17691 + $aload($_.lsbs); //#17692 + var _3F = $k[--$j]; //#17692 + var _3G = $k[--$j]; //#17692 + var _3H = $k[--$j]; //#17692 + $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17693 + for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17693 + var _3K = $k[--$j]; //#17693 + $k[$j++] = _3K % 900; //#17693 + $k[$j++] = ~~(_3K / 900); //#17693 + } //#17693 + $_.lscs = $a(); //#17693 + var _3N = $get($_.lscs, 0); //#17695 + var _3P = $get($_.mscs, 0); //#17695 + $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17696 + var _3T = $get($_.lscs, 1); //#17697 + var _3V = $get($_.mscs, 0); //#17697 + var _3X = $get($_.mscs, 1); //#17697 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17698 + var _3b = $get($_.lscs, 2); //#17699 + var _3d = $get($_.mscs, 0); //#17699 + var _3f = $get($_.mscs, 1); //#17699 + var _3h = $get($_.mscs, 2); //#17699 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17700 + var _3l = $get($_.lscs, 3); //#17701 + var _3n = $get($_.mscs, 1); //#17701 + var _3p = $get($_.mscs, 2); //#17701 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17702 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17704 + } //#17704 + $_.rem = $_.inlen % 6; //#17706 + if ($_.rem != 0) { //#17711 + $k[$j++] = $_.out; //#17709 + $k[$j++] = $_.out.length - $_.rem; //#17709 + $k[$j++] = Infinity; //#17709 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17709 + var _46 = $a(); //#17709 + var _47 = $k[--$j]; //#17710 + $puti($k[--$j], _47, _46); //#17710 + } //#17710 + $k[$j++] = $_.out; //#17712 + }; //#17712 + if ($_.ccb) { //#17721 + $_.barlen = $_.barcode.length; //#17716 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17717 + $put($_.datcws, 0, 920); //#17718 + var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17719 + $put($_.datcws, 1, _4I); //#17719 + $k[$j++] = $_.datcws; //#17720 + $k[$j++] = 2; //#17720 + $k[$j++] = Infinity; //#17720 + $forall($_.barcode); //#17720 + var _4L = $a(); //#17720 + $k[$j++] = _4L; //#17720 + $_.encb(); //#17720 + var _4M = $k[--$j]; //#17720 + var _4N = $k[--$j]; //#17720 + $puti($k[--$j], _4N, _4M); //#17720 + } //#17720 + if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#18122 var _4U = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#17504 - $_.fncvals = _4U; //#17506 - $k[$j++] = 'msg'; //#17507 - $k[$j++] = $_.barcode; //#17507 - $k[$j++] = $_.fncvals; //#17507 - bwipp_parseinput(); //#17507 - var _4X = $k[--$j]; //#17507 - $_[$k[--$j]] = _4X; //#17507 - $_.msglen = $_.msg.length; //#17508 - $k[$j++] = Infinity; //#17511 - for (var _4b = 0, _4c = $_.msglen; _4b < _4c; _4b++) { //#17511 - $k[$j++] = 0; //#17511 - } //#17511 - $k[$j++] = 0; //#17511 - $_.numdigits = $a(); //#17511 - $k[$j++] = Infinity; //#17512 - for (var _4f = 0, _4g = $_.msglen; _4f < _4g; _4f++) { //#17512 - $k[$j++] = 0; //#17512 - } //#17512 - $k[$j++] = 0; //#17512 - $_.numtext = $a(); //#17512 - $k[$j++] = Infinity; //#17513 - for (var _4j = 0, _4k = $_.msglen; _4j < _4k; _4j++) { //#17513 - $k[$j++] = 0; //#17513 - } //#17513 - $k[$j++] = 0; //#17513 - $_.numbytes = $a(); //#17513 - $k[$j++] = Infinity; //#17514 - for (var _4n = 0, _4o = $_.msglen; _4n < _4o; _4n++) { //#17514 - $k[$j++] = 0; //#17514 - } //#17514 - $_.iseci = $a(); //#17514 - for (var _4r = $_.msglen - 1; _4r >= 0; _4r -= 1) { //#17527 - $_.i = _4r; //#17516 - var _4u = $get($_.msg, $_.i); //#17517 - if ((_4u >= 48) && (_4u <= 57)) { //#17519 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17518 - } //#17518 - var _54 = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17520 - if (_54 && ($get($_.numdigits, $_.i) < 13)) { //#17522 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17521 - } //#17521 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17525 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17524 - } //#17524 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17526 - } //#17526 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17528 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17529 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17530 - $_.seq = $a([]); //#17532 - $_.seqlen = 0; //#17532 - $_.state = $_.B; //#17532 - $_.p = 0; //#17532 - for (;;) { //#17586 - if ($_.p == $_.msglen) { //#17533 - break; //#17533 - } //#17533 - if ($get($_.iseci, $_.p)) { //#17584 - $_.eci = $get($_.msg, $_.p); //#17535 - $k[$j++] = Infinity; //#17538 - $aload($_.seq); //#17537 - $k[$j++] = $a([$_.eci]); //#17538 - $_.seq = $a(); //#17538 - $_.p = $_.p + 1; //#17540 - $k[$j++] = 'seqlen'; //#17541 - $k[$j++] = $_.seqlen; //#17541 - if ($_.eci <= -1810900) { //#17541 - $k[$j++] = 2; //#17541 - } else { //#17541 - var _5x = ($_.eci <= -1000900) ? 3 : 2; //#17541 - $k[$j++] = _5x; //#17541 - } //#17541 - var _5y = $k[--$j]; //#17541 - var _5z = $k[--$j]; //#17541 - $_[$k[--$j]] = $f(_5z + _5y); //#17541 - } else { //#17584 - $_.n = $get($_.numdigits, $_.p); //#17543 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17584 - $k[$j++] = Infinity; //#17548 - $aload($_.seq); //#17546 - $k[$j++] = $_.nl; //#17548 - $k[$j++] = Infinity; //#17548 - $aload($geti($_.msg, $_.p, $_.n)); //#17548 - var _6E = $a(); //#17548 - $k[$j++] = _6E; //#17548 - $_.seq = $a(); //#17548 - $_.state = $_.N; //#17550 - $_.p = $f($_.p + $_.n); //#17551 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17552 - } else { //#17584 - $_.t = $get($_.numtext, $_.p); //#17554 - if ($_.t >= 5) { //#17584 - $k[$j++] = Infinity; //#17561 - $aload($_.seq); //#17557 - if ($_.state != $_.T) { //#17560 - $k[$j++] = $_.tl; //#17559 - } //#17559 - $k[$j++] = Infinity; //#17561 - $aload($geti($_.msg, $_.p, $_.t)); //#17561 - var _6X = $a(); //#17561 - $k[$j++] = _6X; //#17561 - $_.seq = $a(); //#17561 - $_.state = $_.T; //#17563 - $_.p = $f($_.p + $_.t); //#17564 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17565 - } else { //#17584 - $_.b = $get($_.numbytes, $_.p); //#17567 - if (($_.b == 1) && ($_.state == $_.T)) { //#17584 - $k[$j++] = Infinity; //#17572 - $aload($_.seq); //#17570 - $k[$j++] = $_.bs; //#17572 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#17572 - $_.seq = $a(); //#17572 - $_.p = $f($_.p + $_.b); //#17574 - $_.seqlen = $f($_.seqlen + 2); //#17575 - } else { //#17584 - $k[$j++] = Infinity; //#17580 - $aload($_.seq); //#17578 - var _6w = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17579 - $k[$j++] = _6w; //#17580 - $k[$j++] = Infinity; //#17580 - $aload($geti($_.msg, $_.p, $_.b)); //#17580 - var _71 = $a(); //#17580 - $k[$j++] = _71; //#17580 - $_.seq = $a(); //#17580 - $_.state = $_.B; //#17582 - $_.p = $f($_.p + $_.b); //#17583 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - $k[$j++] = Infinity; //#17589 - $k[$j++] = $_.tl; //#17589 - $k[$j++] = 900; //#17589 - $k[$j++] = $_.bl; //#17589 - $k[$j++] = 901; //#17589 - $k[$j++] = $_.bl6; //#17589 - $k[$j++] = 924; //#17589 - $k[$j++] = $_.nl; //#17589 - $k[$j++] = 902; //#17589 - $k[$j++] = $_.bs; //#17589 - $k[$j++] = 913; //#17589 - $_.latchcws = $d(); //#17590 + ]); //#17732 + $_.fncvals = _4U; //#17733 + $k[$j++] = 'msg'; //#17734 + $k[$j++] = $_.barcode; //#17734 + $k[$j++] = $_.fncvals; //#17734 + bwipp_parseinput(); //#17734 + var _4X = $k[--$j]; //#17734 + $_[$k[--$j]] = _4X; //#17734 + $_.msglen = $_.msg.length; //#17735 + if ($_.msglen >= 9) { //#17753 + $aload($geti($_.msg, 0, 7)); //#17739 + var _4d = $k[--$j]; //#17740 + var _4e = $k[--$j]; //#17740 + $k[$j++] = _4d == 29; //#17740 + $k[$j++] = _4e; //#17740 + $j--; //#17740 + var _4f = $k[--$j]; //#17740 + var _4g = $k[--$j]; //#17740 + var _4h = $k[--$j]; //#17740 + var _4i = $k[--$j]; //#17741 + var _4j = $k[--$j]; //#17741 + var _4k = $k[--$j]; //#17741 + if (((((_4f && (_4g == 48)) && (_4h == 30)) && (_4i == 62)) && (_4j == 41)) && (_4k == 91)) { //#17752 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#17742 + var _4o = $k[--$j]; //#17743 + var _4p = $k[--$j]; //#17743 + if ((_4o == 4) && (_4p == 30)) { //#17751 + if ($get($_.msg, 5) == 53) { //#17748 + $k[$j++] = Infinity; //#17745 + $k[$j++] = $_.m05; //#17745 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17745 + $_.msg = $a(); //#17745 + } else { //#17748 + if ($get($_.msg, 5) == 54) { //#17749 + $k[$j++] = Infinity; //#17748 + $k[$j++] = $_.m06; //#17748 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17748 + $_.msg = $a(); //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + $_.msglen = $_.msg.length; //#17754 + $k[$j++] = Infinity; //#17757 + for (var _56 = 0, _57 = $_.msglen; _56 < _57; _56++) { //#17757 + $k[$j++] = 0; //#17757 + } //#17757 + $k[$j++] = 0; //#17757 + $_.numdigits = $a(); //#17757 + $k[$j++] = Infinity; //#17758 + for (var _5A = 0, _5B = $_.msglen; _5A < _5B; _5A++) { //#17758 + $k[$j++] = 0; //#17758 + } //#17758 + $k[$j++] = 0; //#17758 + $_.numtext = $a(); //#17758 + $k[$j++] = Infinity; //#17759 + for (var _5E = 0, _5F = $_.msglen; _5E < _5F; _5E++) { //#17759 + $k[$j++] = 0; //#17759 + } //#17759 + $k[$j++] = 0; //#17759 + $_.numbytes = $a(); //#17759 + $k[$j++] = Infinity; //#17760 + for (var _5I = 0, _5J = $_.msglen; _5I < _5J; _5I++) { //#17760 + $k[$j++] = 0; //#17760 + } //#17760 + $_.iseci = $a(); //#17760 + for (var _5M = $_.msglen - 1; _5M >= 0; _5M -= 1) { //#17773 + $_.i = _5M; //#17762 + var _5P = $get($_.msg, $_.i); //#17763 + if ((_5P >= 48) && (_5P <= 57)) { //#17765 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17764 + } //#17764 + var _5Z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17766 + if (_5Z && ($get($_.numdigits, $_.i) < 13)) { //#17768 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17767 + } //#17767 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17771 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17770 + } //#17770 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17772 + } //#17772 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17774 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17775 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17776 + $_.seq = $a([]); //#17778 + $_.seqlen = 0; //#17778 + $_.state = $_.B; //#17778 + $_.p = 0; //#17778 + for (;;) { //#17840 + if ($_.p == $_.msglen) { //#17779 + break; //#17779 + } //#17779 + var _6H = $get($_.msg, $_.p); //#17780 + if (($_.p == 0) && ((_6H == $_.m05) || (_6H == $_.m06))) { //#17838 + $k[$j++] = Infinity; //#17781 + $aload($_.seq); //#17782 + var _6P = ($get($_.msg, $_.p) == $_.m05) ? $_.m05 : $_.m06; //#17783 + $k[$j++] = _6P; //#17783 + $_.seq = $a(); //#17783 + $_.p = $_.p + 1; //#17785 + $_.seqlen = $_.seqlen + 1; //#17786 + } else { //#17838 + if ($get($_.iseci, $_.p)) { //#17838 + $_.eci = $get($_.msg, $_.p); //#17789 + $k[$j++] = Infinity; //#17790 + $aload($_.seq); //#17791 + $k[$j++] = $a([$_.eci]); //#17792 + $_.seq = $a(); //#17792 + $_.p = $_.p + 1; //#17794 + $k[$j++] = 'seqlen'; //#17795 + $k[$j++] = $_.seqlen; //#17795 + if ($_.eci <= -1810900) { //#17795 + $k[$j++] = 2; //#17795 + } else { //#17795 + var _6h = ($_.eci <= -1000900) ? 3 : 2; //#17795 + $k[$j++] = _6h; //#17795 + } //#17795 + var _6i = $k[--$j]; //#17795 + var _6j = $k[--$j]; //#17795 + $_[$k[--$j]] = $f(_6j + _6i); //#17795 + } else { //#17838 + $_.n = $get($_.numdigits, $_.p); //#17797 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17838 + $k[$j++] = Infinity; //#17799 + $aload($_.seq); //#17800 + $k[$j++] = $_.nl; //#17802 + $k[$j++] = Infinity; //#17802 + $aload($geti($_.msg, $_.p, $_.n)); //#17802 + var _6y = $a(); //#17802 + $k[$j++] = _6y; //#17802 + $_.seq = $a(); //#17802 + $_.state = $_.N; //#17804 + $_.p = $f($_.p + $_.n); //#17805 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17806 + } else { //#17838 + $_.t = $get($_.numtext, $_.p); //#17808 + if ($_.t >= 5) { //#17838 + $k[$j++] = Infinity; //#17810 + $aload($_.seq); //#17811 + if ($_.state != $_.T) { //#17814 + $k[$j++] = $_.tl; //#17813 + } //#17813 + $k[$j++] = Infinity; //#17815 + $aload($geti($_.msg, $_.p, $_.t)); //#17815 + var _7H = $a(); //#17815 + $k[$j++] = _7H; //#17815 + $_.seq = $a(); //#17815 + $_.state = $_.T; //#17817 + $_.p = $f($_.p + $_.t); //#17818 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17819 + } else { //#17838 + $_.b = $get($_.numbytes, $_.p); //#17821 + if (($_.b == 1) && ($_.state == $_.T)) { //#17838 + $k[$j++] = Infinity; //#17823 + $aload($_.seq); //#17824 + $k[$j++] = $_.bs; //#17826 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#17826 + $_.seq = $a(); //#17826 + $_.p = $f($_.p + $_.b); //#17828 + $_.seqlen = $f($_.seqlen + 2); //#17829 + } else { //#17838 + $k[$j++] = Infinity; //#17831 + $aload($_.seq); //#17832 + var _7g = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17833 + $k[$j++] = _7g; //#17834 + $k[$j++] = Infinity; //#17834 + $aload($geti($_.msg, $_.p, $_.b)); //#17834 + var _7l = $a(); //#17834 + $k[$j++] = _7l; //#17834 + $_.seq = $a(); //#17834 + $_.state = $_.B; //#17836 + $_.p = $f($_.p + $_.b); //#17837 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + $k[$j++] = Infinity; //#17842 + $k[$j++] = $_.tl; //#17843 + $k[$j++] = 900; //#17843 + $k[$j++] = $_.bl; //#17843 + $k[$j++] = 901; //#17843 + $k[$j++] = $_.bl6; //#17843 + $k[$j++] = 924; //#17843 + $k[$j++] = $_.nl; //#17843 + $k[$j++] = 902; //#17843 + $k[$j++] = $_.bs; //#17843 + $k[$j++] = 913; //#17843 + $k[$j++] = $_.m05; //#17843 + $k[$j++] = 916; //#17843 + $k[$j++] = $_.m06; //#17843 + $k[$j++] = 917; //#17843 + $_.latchcws = $d(); //#17844 $_.enca = function() { - var _7I = $get($get($_.charvals, $_.A), $k[--$j]); //#17593 - $k[$j++] = _7I; //#17593 - }; //#17593 + var _84 = $get($get($_.charvals, $_.A), $k[--$j]); //#17847 + $k[$j++] = _84; //#17847 + }; //#17847 $_.encl = function() { - var _7N = $get($get($_.charvals, $_.L), $k[--$j]); //#17594 - $k[$j++] = _7N; //#17594 - }; //#17594 + var _89 = $get($get($_.charvals, $_.L), $k[--$j]); //#17848 + $k[$j++] = _89; //#17848 + }; //#17848 $_.encm = function() { - var _7S = $get($get($_.charvals, $_.M), $k[--$j]); //#17595 - $k[$j++] = _7S; //#17595 - }; //#17595 + var _8E = $get($get($_.charvals, $_.M), $k[--$j]); //#17849 + $k[$j++] = _8E; //#17849 + }; //#17849 $_.encp = function() { - var _7X = $get($get($_.charvals, $_.P), $k[--$j]); //#17596 - $k[$j++] = _7X; //#17596 - }; //#17596 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17597 + var _8J = $get($get($_.charvals, $_.P), $k[--$j]); //#17850 + $k[$j++] = _8J; //#17850 + }; //#17850 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17851 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#17600 - $_.l = $_.l + 1; //#17601 - }; //#17601 + $put($_.text, $_.l, $k[--$j]); //#17854 + $_.l = $_.l + 1; //#17855 + }; //#17855 $_.enct = function() { - $_.in = $k[--$j]; //#17606 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17608 - $put($_.curlen, $_.submode, 0); //#17609 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17610 - $forall($_.in, function() { //#17680 - $_.char = $k[--$j]; //#17615 - for (;;) { //#17636 - $_.imp = false; //#17619 - var _7w = $a([$_.A, $_.L, $_.M, $_.P]); //#17620 - for (var _7x = 0, _7y = _7w.length; _7x < _7y; _7x++) { //#17634 - $_.x = $get(_7w, _7x); //#17621 - var _84 = $a([$_.A, $_.L, $_.M, $_.P]); //#17622 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#17633 - $_.y = $get(_84, _85); //#17623 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17624 - if ($_.cost < $get($_.curlen, $_.y)) { //#17632 - $put($_.curlen, $_.y, $_.cost); //#17626 - $k[$j++] = $_.curseq; //#17629 - $k[$j++] = $_.y; //#17629 - $k[$j++] = Infinity; //#17629 - $aload($get($_.curseq, $_.x)); //#17628 - $aload($get($get($_.latseq, $_.x), $_.y)); //#17629 - var _8X = $a(); //#17629 - var _8Y = $k[--$j]; //#17630 - $put($k[--$j], _8Y, _8X); //#17630 - $_.imp = true; //#17631 - } //#17631 - } //#17631 - } //#17631 - if (!$_.imp) { //#17635 - break; //#17635 - } //#17635 - } //#17635 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17639 - $_.nxtseq = $a(4); //#17640 - var _8l = $a([$_.A, $_.L, $_.M, $_.P]); //#17642 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#17675 - $_.x = $get(_8l, _8m); //#17643 - for (;;) { //#17673 - var _8t = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17647 - if (!_8t) { //#17647 - break; //#17647 - } //#17647 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#17650 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#17654 - $put($_.nxtlen, $_.x, $_.cost); //#17652 - $k[$j++] = $_.nxtseq; //#17653 - $k[$j++] = $_.x; //#17653 - $k[$j++] = Infinity; //#17653 - $aload($get($_.curseq, $_.x)); //#17653 - $k[$j++] = $_.char; //#17653 - var _9A = $a(); //#17653 - var _9B = $k[--$j]; //#17653 - $put($k[--$j], _9B, _9A); //#17653 - } //#17653 - var _9H = $a([$_.A, $_.L, $_.M, $_.P]); //#17657 - for (var _9I = 0, _9J = _9H.length; _9I < _9J; _9I++) { //#17670 - $_.y = $get(_9H, _9I); //#17658 - if ($ne($_.x, $_.y)) { //#17669 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17660 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#17668 - $put($_.nxtlen, $_.y, $_.cost); //#17662 - $k[$j++] = $_.nxtseq; //#17666 - $k[$j++] = $_.y; //#17666 - $k[$j++] = Infinity; //#17666 - $aload($get($_.curseq, $_.y)); //#17664 - var _9j = ($_.x == $_.A) ? $_.as : $_.ps; //#17665 - $k[$j++] = _9j; //#17666 - $k[$j++] = $_.char; //#17666 - var _9l = $a(); //#17666 - var _9m = $k[--$j]; //#17667 - $put($k[--$j], _9m, _9l); //#17667 - } //#17667 - } //#17667 - } //#17667 - break; //#17672 - } //#17672 - } //#17672 - $_.curlen = $_.nxtlen; //#17677 - $_.curseq = $_.nxtseq; //#17678 - }); //#17678 - $_.minseq = $_.e; //#17683 - var _9v = $a([$_.A, $_.L, $_.M, $_.P]); //#17684 - for (var _9w = 0, _9x = _9v.length; _9w < _9x; _9w++) { //#17690 - $_.k = $get(_9v, _9w); //#17685 - if ($get($_.curlen, $_.k) < $_.minseq) { //#17689 - $_.minseq = $get($_.curlen, $_.k); //#17687 - $_.txtseq = $get($_.curseq, $_.k); //#17688 - } //#17688 - } //#17688 - $_.text = $a($_.minseq); //#17693 - $_.k = 0; //#17694 - $_.l = 0; //#17694 - for (;;) { //#17714 - if ($_.k >= $_.txtseq.length) { //#17695 - break; //#17695 - } //#17695 - $_.char = $get($_.txtseq, $_.k); //#17697 - $k[$j++] = $_.char; //#17700 + $_.in = $k[--$j]; //#17860 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17862 + $put($_.curlen, $_.submode, 0); //#17863 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17864 + $forall($_.in, function() { //#17934 + $_.char = $k[--$j]; //#17869 + for (;;) { //#17890 + $_.imp = false; //#17873 + var _8i = $a([$_.A, $_.L, $_.M, $_.P]); //#17874 + for (var _8j = 0, _8k = _8i.length; _8j < _8k; _8j++) { //#17888 + $_.x = $get(_8i, _8j); //#17875 + var _8q = $a([$_.A, $_.L, $_.M, $_.P]); //#17876 + for (var _8r = 0, _8s = _8q.length; _8r < _8s; _8r++) { //#17887 + $_.y = $get(_8q, _8r); //#17877 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17878 + if ($_.cost < $get($_.curlen, $_.y)) { //#17886 + $put($_.curlen, $_.y, $_.cost); //#17880 + $k[$j++] = $_.curseq; //#17883 + $k[$j++] = $_.y; //#17883 + $k[$j++] = Infinity; //#17881 + $aload($get($_.curseq, $_.x)); //#17882 + $aload($get($get($_.latseq, $_.x), $_.y)); //#17883 + var _9J = $a(); //#17883 + var _9K = $k[--$j]; //#17884 + $put($k[--$j], _9K, _9J); //#17884 + $_.imp = true; //#17885 + } //#17885 + } //#17885 + } //#17885 + if (!$_.imp) { //#17889 + break; //#17889 + } //#17889 + } //#17889 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17893 + $_.nxtseq = $a(4); //#17894 + var _9X = $a([$_.A, $_.L, $_.M, $_.P]); //#17896 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#17929 + $_.x = $get(_9X, _9Y); //#17897 + for (;;) { //#17927 + var _9f = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17901 + if (!_9f) { //#17901 + break; //#17901 + } //#17901 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#17904 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#17908 + $put($_.nxtlen, $_.x, $_.cost); //#17906 + $k[$j++] = $_.nxtseq; //#17907 + $k[$j++] = $_.x; //#17907 + $k[$j++] = Infinity; //#17907 + $aload($get($_.curseq, $_.x)); //#17907 + $k[$j++] = $_.char; //#17907 + var _9w = $a(); //#17907 + var _9x = $k[--$j]; //#17907 + $put($k[--$j], _9x, _9w); //#17907 + } //#17907 + var _A3 = $a([$_.A, $_.L, $_.M, $_.P]); //#17911 + for (var _A4 = 0, _A5 = _A3.length; _A4 < _A5; _A4++) { //#17924 + $_.y = $get(_A3, _A4); //#17912 + if ($ne($_.x, $_.y)) { //#17923 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17914 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#17922 + $put($_.nxtlen, $_.y, $_.cost); //#17916 + $k[$j++] = $_.nxtseq; //#17920 + $k[$j++] = $_.y; //#17920 + $k[$j++] = Infinity; //#17917 + $aload($get($_.curseq, $_.y)); //#17918 + var _AV = ($_.x == $_.A) ? $_.as : $_.ps; //#17919 + $k[$j++] = _AV; //#17920 + $k[$j++] = $_.char; //#17920 + var _AX = $a(); //#17920 + var _AY = $k[--$j]; //#17921 + $put($k[--$j], _AY, _AX); //#17921 + } //#17921 + } //#17921 + } //#17921 + break; //#17926 + } //#17926 + } //#17926 + $_.curlen = $_.nxtlen; //#17931 + $_.curseq = $_.nxtseq; //#17932 + }); //#17932 + $_.minseq = $_.e; //#17937 + var _Ah = $a([$_.A, $_.L, $_.M, $_.P]); //#17938 + for (var _Ai = 0, _Aj = _Ah.length; _Ai < _Aj; _Ai++) { //#17944 + $_.k = $get(_Ah, _Ai); //#17939 + if ($get($_.curlen, $_.k) < $_.minseq) { //#17943 + $_.minseq = $get($_.curlen, $_.k); //#17941 + $_.txtseq = $get($_.curseq, $_.k); //#17942 + } //#17942 + } //#17942 + $_.text = $a($_.minseq); //#17947 + $_.k = 0; //#17948 + $_.l = 0; //#17948 + for (;;) { //#17968 + if ($_.k >= $_.txtseq.length) { //#17949 + break; //#17949 + } //#17949 + $_.char = $get($_.txtseq, $_.k); //#17951 + $k[$j++] = $_.char; //#17954 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#17700 - $_.addtotext(); //#17700 - $_.k = $_.k + 1; //#17701 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17707 - $k[$j++] = $get($_.txtseq, $_.k); //#17705 - if ($_.char == $_.as) { //#17705 - $_.enca(); //#17705 - } else { //#17705 - $_.encp(); //#17705 - } //#17705 - $_.addtotext(); //#17705 - $_.k = $_.k + 1; //#17706 - } //#17706 - if ($_.char == $_.al) { //#17710 - $_.submode = $_.A; //#17710 - } //#17710 - if ($_.char == $_.ll) { //#17711 - $_.submode = $_.L; //#17711 - } //#17711 - if ($_.char == $_.ml) { //#17712 - $_.submode = $_.M; //#17712 - } //#17712 - if ($_.char == $_.pl) { //#17713 - $_.submode = $_.P; //#17713 - } //#17713 - } //#17713 - if (($_.text.length % 2) == 1) { //#17761 - if ($_.submode == $_.P) { //#17757 - $k[$j++] = 'pad'; //#17718 - $k[$j++] = $_.al; //#17718 - $_.encp(); //#17718 - var _Am = $k[--$j]; //#17718 - $_[$k[--$j]] = _Am; //#17718 - $_.submode = $_.A; //#17719 - } else { //#17757 - $_.nextecitext = false; //#17722 - for (var _As = $_.i + 1, _Ar = $_.seq.length - 1; _As <= _Ar; _As += 1) { //#17729 - $_.ti = _As; //#17725 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17726 - $_.nextecitext = false; //#17726 - break; //#17726 - } //#17726 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17727 - break; //#17727 - } //#17727 - $_.nextecitext = true; //#17728 - } //#17728 - if ($_.nextecitext) { //#17757 - if ($_.submode == $_.A) { //#17754 - var _BB = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17732 - if (_BB) { //#17737 - $k[$j++] = 'pad'; //#17733 - $k[$j++] = $_.ll; //#17733 - $_.enca(); //#17733 - var _BD = $k[--$j]; //#17733 - $_[$k[--$j]] = _BD; //#17733 - $_.submode = $_.L; //#17734 - } else { //#17737 - $k[$j++] = 'pad'; //#17736 - $k[$j++] = $_.ml; //#17736 - $_.enca(); //#17736 - var _BH = $k[--$j]; //#17736 - $_[$k[--$j]] = _BH; //#17736 - $_.submode = $_.M; //#17737 - } //#17737 - } else { //#17754 - if ($_.submode == $_.M) { //#17754 - var _BT = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17741 - if (_BT) { //#17750 - $k[$j++] = 'pad'; //#17742 - $k[$j++] = $_.ll; //#17742 - $_.encm(); //#17742 - var _BV = $k[--$j]; //#17742 - $_[$k[--$j]] = _BV; //#17742 - $_.submode = $_.L; //#17743 - } else { //#17750 - var _Bf = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17745 - if (_Bf) { //#17750 - $k[$j++] = 'pad'; //#17746 - $k[$j++] = $_.pl; //#17746 - $_.encm(); //#17746 - var _Bh = $k[--$j]; //#17746 - $_[$k[--$j]] = _Bh; //#17746 - $_.submode = $_.P; //#17747 - } else { //#17750 - $k[$j++] = 'pad'; //#17749 - $k[$j++] = $_.al; //#17749 - $_.encm(); //#17749 - var _Bl = $k[--$j]; //#17749 - $_[$k[--$j]] = _Bl; //#17749 - $_.submode = $_.A; //#17750 - } //#17750 - } //#17750 - } else { //#17754 - $k[$j++] = 'pad'; //#17753 - $k[$j++] = $_.ml; //#17753 - $_.encl(); //#17753 - var _Bp = $k[--$j]; //#17753 - $_[$k[--$j]] = _Bp; //#17753 - $_.submode = $_.M; //#17754 - } //#17754 - } //#17754 - } else { //#17757 - $k[$j++] = 'pad'; //#17757 - $k[$j++] = $_.ps; //#17757 + } //#17954 + $_.addtotext(); //#17954 + $_.k = $_.k + 1; //#17955 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17961 + $k[$j++] = $get($_.txtseq, $_.k); //#17959 + if ($_.char == $_.as) { //#17959 + $_.enca(); //#17959 + } else { //#17959 + $_.encp(); //#17959 + } //#17959 + $_.addtotext(); //#17959 + $_.k = $_.k + 1; //#17960 + } //#17960 + if ($_.char == $_.al) { //#17964 + $_.submode = $_.A; //#17964 + } //#17964 + if ($_.char == $_.ll) { //#17965 + $_.submode = $_.L; //#17965 + } //#17965 + if ($_.char == $_.ml) { //#17966 + $_.submode = $_.M; //#17966 + } //#17966 + if ($_.char == $_.pl) { //#17967 + $_.submode = $_.P; //#17967 + } //#17967 + } //#17967 + if (($_.text.length % 2) == 1) { //#18015 + if ($_.submode == $_.P) { //#18011 + $k[$j++] = 'pad'; //#17972 + $k[$j++] = $_.al; //#17972 + $_.encp(); //#17972 + var _BY = $k[--$j]; //#17972 + $_[$k[--$j]] = _BY; //#17972 + $_.submode = $_.A; //#17973 + } else { //#18011 + $_.nextecitext = false; //#17976 + for (var _Be = $_.i + 1, _Bd = $_.seq.length - 1; _Be <= _Bd; _Be += 1) { //#17983 + $_.ti = _Be; //#17979 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17980 + $_.nextecitext = false; //#17980 + break; //#17980 + } //#17980 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17981 + break; //#17981 + } //#17981 + $_.nextecitext = true; //#17982 + } //#17982 + if ($_.nextecitext) { //#18011 + if ($_.submode == $_.A) { //#18008 + var _Bx = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17986 + if (_Bx) { //#17991 + $k[$j++] = 'pad'; //#17987 + $k[$j++] = $_.ll; //#17987 + $_.enca(); //#17987 + var _Bz = $k[--$j]; //#17987 + $_[$k[--$j]] = _Bz; //#17987 + $_.submode = $_.L; //#17988 + } else { //#17991 + $k[$j++] = 'pad'; //#17990 + $k[$j++] = $_.ml; //#17990 + $_.enca(); //#17990 + var _C3 = $k[--$j]; //#17990 + $_[$k[--$j]] = _C3; //#17990 + $_.submode = $_.M; //#17991 + } //#17991 + } else { //#18008 + if ($_.submode == $_.M) { //#18008 + var _CF = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17995 + if (_CF) { //#18004 + $k[$j++] = 'pad'; //#17996 + $k[$j++] = $_.ll; //#17996 + $_.encm(); //#17996 + var _CH = $k[--$j]; //#17996 + $_[$k[--$j]] = _CH; //#17996 + $_.submode = $_.L; //#17997 + } else { //#18004 + var _CR = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17999 + if (_CR) { //#18004 + $k[$j++] = 'pad'; //#18000 + $k[$j++] = $_.pl; //#18000 + $_.encm(); //#18000 + var _CT = $k[--$j]; //#18000 + $_[$k[--$j]] = _CT; //#18000 + $_.submode = $_.P; //#18001 + } else { //#18004 + $k[$j++] = 'pad'; //#18003 + $k[$j++] = $_.al; //#18003 + $_.encm(); //#18003 + var _CX = $k[--$j]; //#18003 + $_[$k[--$j]] = _CX; //#18003 + $_.submode = $_.A; //#18004 + } //#18004 + } //#18004 + } else { //#18008 + $k[$j++] = 'pad'; //#18007 + $k[$j++] = $_.ml; //#18007 + $_.encl(); //#18007 + var _Cb = $k[--$j]; //#18007 + $_[$k[--$j]] = _Cb; //#18007 + $_.submode = $_.M; //#18008 + } //#18008 + } //#18008 + } else { //#18011 + $k[$j++] = 'pad'; //#18011 + $k[$j++] = $_.ps; //#18011 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#17757 - var _Bx = $k[--$j]; //#17757 - $_[$k[--$j]] = _Bx; //#17757 - } //#17757 - } //#17757 - $k[$j++] = Infinity; //#17760 - $aload($_.text); //#17760 - $k[$j++] = $_.pad; //#17760 - $_.text = $a(); //#17760 - } //#17760 - $_.out = $a(~~($_.text.length / 2)); //#17763 - for (var _C6 = 0, _C5 = $_.out.length - 1; _C6 <= _C5; _C6 += 1) { //#17767 - $_.k = _C6; //#17765 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#17766 - } //#17766 - $k[$j++] = $_.out; //#17769 - }; //#17769 + } //#18011 + var _Cj = $k[--$j]; //#18011 + $_[$k[--$j]] = _Cj; //#18011 + } //#18011 + } //#18011 + $k[$j++] = Infinity; //#18014 + $aload($_.text); //#18014 + $k[$j++] = $_.pad; //#18014 + $_.text = $a(); //#18014 + } //#18014 + $_.out = $a(~~($_.text.length / 2)); //#18017 + for (var _Cs = 0, _Cr = $_.out.length - 1; _Cs <= _Cr; _Cs += 1) { //#18021 + $_.k = _Cs; //#18019 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#18020 + } //#18020 + $k[$j++] = $_.out; //#18023 + }; //#18023 $_.encn = function() { - $_.in = $k[--$j]; //#17774 - $_.out = $a([]); //#17775 - for (var _CK = 0, _CJ = $_.in.length - 1; _CK <= _CJ; _CK += 44) { //#17803 - $_.k = _CK; //#17777 - $k[$j++] = Infinity; //#17780 - var _CP = $_.in.length - $_.k; //#17779 - $k[$j++] = 1; //#17779 - $k[$j++] = $_.in; //#17779 - $k[$j++] = $_.k; //#17779 - $k[$j++] = _CP; //#17779 - if (_CP > 44) { //#17779 - $j--; //#17779 - $k[$j++] = 44; //#17779 - } //#17779 - var _CQ = $k[--$j]; //#17779 - var _CR = $k[--$j]; //#17779 - var _CT = $geti($k[--$j], _CR, _CQ); //#17779 - for (var _CU = 0, _CV = _CT.length; _CU < _CV; _CU++) { //#17780 - $k[$j++] = $f($get(_CT, _CU) - 48); //#17780 - } //#17780 - $_.gmod = $a(); //#17780 - $_.cwn = $a([]); //#17782 - for (;;) { //#17801 - $_.dv = 900; //#17783 - $_.gmul = $a([]); //#17784 - $_.val = 0; //#17784 - for (;;) { //#17796 - if ($_.gmod.length == 0) { //#17785 - break; //#17785 - } //#17785 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#17786 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#17787 - if ($_.val < $_.dv) { //#17793 - if ($_.gmul.length != 0) { //#17791 - $k[$j++] = Infinity; //#17790 - $aload($_.gmul); //#17790 - $k[$j++] = 0; //#17790 - $_.gmul = $a(); //#17790 - } //#17790 - } else { //#17793 - $k[$j++] = Infinity; //#17793 - $aload($_.gmul); //#17793 - $k[$j++] = ~~($_.val / $_.dv); //#17793 - $_.gmul = $a(); //#17793 - } //#17793 - $_.val = $_.val % $_.dv; //#17795 - } //#17795 - $_.dv = $_.val; //#17797 - $k[$j++] = Infinity; //#17798 - $k[$j++] = $_.dv; //#17798 - $aload($_.cwn); //#17798 - $_.cwn = $a(); //#17798 - $_.gmod = $_.gmul; //#17799 - if ($_.gmul.length == 0) { //#17800 - break; //#17800 - } //#17800 - } //#17800 - $k[$j++] = Infinity; //#17802 - $aload($_.out); //#17802 - $aload($_.cwn); //#17802 - $_.out = $a(); //#17802 - } //#17802 - $k[$j++] = $_.out; //#17804 - }; //#17804 + $_.in = $k[--$j]; //#18028 + $_.out = $a([]); //#18029 + for (var _D6 = 0, _D5 = $_.in.length - 1; _D6 <= _D5; _D6 += 44) { //#18057 + $_.k = _D6; //#18031 + $k[$j++] = Infinity; //#18032 + var _DB = $_.in.length - $_.k; //#18033 + $k[$j++] = 1; //#18033 + $k[$j++] = $_.in; //#18033 + $k[$j++] = $_.k; //#18033 + $k[$j++] = _DB; //#18033 + if (_DB > 44) { //#18033 + $j--; //#18033 + $k[$j++] = 44; //#18033 + } //#18033 + var _DC = $k[--$j]; //#18033 + var _DD = $k[--$j]; //#18033 + var _DF = $geti($k[--$j], _DD, _DC); //#18033 + for (var _DG = 0, _DH = _DF.length; _DG < _DH; _DG++) { //#18034 + $k[$j++] = $f($get(_DF, _DG) - 48); //#18034 + } //#18034 + $_.gmod = $a(); //#18034 + $_.cwn = $a([]); //#18036 + for (;;) { //#18055 + $_.dv = 900; //#18037 + $_.gmul = $a([]); //#18038 + $_.val = 0; //#18038 + for (;;) { //#18050 + if ($_.gmod.length == 0) { //#18039 + break; //#18039 + } //#18039 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#18040 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#18041 + if ($_.val < $_.dv) { //#18047 + if ($_.gmul.length != 0) { //#18045 + $k[$j++] = Infinity; //#18044 + $aload($_.gmul); //#18044 + $k[$j++] = 0; //#18044 + $_.gmul = $a(); //#18044 + } //#18044 + } else { //#18047 + $k[$j++] = Infinity; //#18047 + $aload($_.gmul); //#18047 + $k[$j++] = ~~($_.val / $_.dv); //#18047 + $_.gmul = $a(); //#18047 + } //#18047 + $_.val = $_.val % $_.dv; //#18049 + } //#18049 + $_.dv = $_.val; //#18051 + $k[$j++] = Infinity; //#18052 + $k[$j++] = $_.dv; //#18052 + $aload($_.cwn); //#18052 + $_.cwn = $a(); //#18052 + $_.gmod = $_.gmul; //#18053 + if ($_.gmul.length == 0) { //#18054 + break; //#18054 + } //#18054 + } //#18054 + $k[$j++] = Infinity; //#18056 + $aload($_.out); //#18056 + $aload($_.cwn); //#18056 + $_.out = $a(); //#18056 + } //#18056 + $k[$j++] = $_.out; //#18058 + }; //#18058 $_.ence = function() { - var _D4 = $f((-$get($k[--$j], 0)) - 1000000); //#17809 - $k[$j++] = _D4; //#17817 - if (_D4 <= 899) { //#17816 - var _D5 = $k[--$j]; //#17810 - $k[$j++] = 927; //#17810 - $k[$j++] = _D5; //#17810 - $astore($a(2)); //#17810 - } else { //#17816 - var _D7 = $k[--$j]; //#17811 - $k[$j++] = _D7; //#17817 - if (_D7 <= 810899) { //#17816 - var _D8 = $k[--$j]; //#17812 - $k[$j++] = 926; //#17812 - $k[$j++] = (~~(_D8 / 900)) - 1; //#17812 - $k[$j++] = _D8 % 900; //#17812 - $astore($a(3)); //#17812 - } else { //#17816 - var _DA = $k[--$j]; //#17813 - $k[$j++] = _DA; //#17817 - if (_DA <= 811799) { //#17816 - var _DB = $k[--$j]; //#17814 - $k[$j++] = 925; //#17814 - $k[$j++] = $f(_DB - 810900); //#17814 - $astore($a(2)); //#17814 - } else { //#17816 - $k[$j++] = 'bwipp.pdf417badECI#17816'; //#17816 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17816 - bwipp_raiseerror(); //#17816 - } //#17816 - } //#17816 - } //#17816 - }; //#17816 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17820 + var _Dq = $f((-$get($k[--$j], 0)) - 1000000); //#18063 + $k[$j++] = _Dq; //#18071 + if (_Dq <= 899) { //#18070 + var _Dr = $k[--$j]; //#18064 + $k[$j++] = 927; //#18064 + $k[$j++] = _Dr; //#18064 + $astore($a(2)); //#18064 + } else { //#18070 + var _Dt = $k[--$j]; //#18065 + $k[$j++] = _Dt; //#18071 + if (_Dt <= 810899) { //#18070 + var _Du = $k[--$j]; //#18066 + $k[$j++] = 926; //#18066 + $k[$j++] = (~~(_Du / 900)) - 1; //#18066 + $k[$j++] = _Du % 900; //#18066 + $astore($a(3)); //#18066 + } else { //#18070 + var _Dw = $k[--$j]; //#18067 + $k[$j++] = _Dw; //#18071 + if (_Dw <= 811799) { //#18070 + var _Dx = $k[--$j]; //#18068 + $k[$j++] = 925; //#18068 + $k[$j++] = $f(_Dx - 810900); //#18068 + $astore($a(2)); //#18068 + } else { //#18070 + $k[$j++] = 'bwipp.pdf417badECI#18070'; //#18070 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#18070 + bwipp_raiseerror(); //#18070 + } //#18070 + } //#18070 + } //#18070 + }; //#18070 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#18074 $_.addtocws = function() { - var _DE = $k[--$j]; //#17823 - $puti($_.datcws, $_.j, _DE); //#17823 - $_.j = _DE.length + $_.j; //#17824 - }; //#17824 - $_.datcws = $a($_.seqlen); //#17829 - $_.i = 0; //#17830 - $_.j = 0; //#17830 - for (;;) { //#17850 - if ($_.i >= $_.seq.length) { //#17831 - break; //#17831 - } //#17831 - $_.chars = $get($_.seq, $_.i); //#17832 - if ($eq($type($_.chars), 'arraytype')) { //#17846 - if ($get($_.chars, 0) <= -1000000) { //#17837 - $k[$j++] = $_.chars; //#17835 - $_.ence(); //#17835 - $_.addtocws(); //#17835 - } else { //#17837 - $k[$j++] = $_.chars; //#17837 + var _E0 = $k[--$j]; //#18077 + $puti($_.datcws, $_.j, _E0); //#18077 + $_.j = _E0.length + $_.j; //#18078 + }; //#18078 + $_.datcws = $a($_.seqlen); //#18083 + $_.i = 0; //#18084 + $_.j = 0; //#18084 + for (;;) { //#18120 + if ($_.i >= $_.seq.length) { //#18085 + break; //#18085 + } //#18085 + $_.chars = $get($_.seq, $_.i); //#18086 + if ($eq($type($_.chars), 'arraytype')) { //#18116 + if ($get($_.chars, 0) <= -1000000) { //#18091 + $k[$j++] = $_.chars; //#18089 + $_.ence(); //#18089 + $_.addtocws(); //#18089 + } else { //#18091 + $k[$j++] = $_.chars; //#18091 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#17837 - $_.addtocws(); //#17837 - } //#17837 - } else { //#17846 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17840 - $_.addtocws(); //#17840 - if ($_.chars == $_.tl) { //#17841 - $_.state = $_.T; //#17841 - $_.submode = $_.A; //#17841 - } //#17841 - if ($_.chars == $_.nl) { //#17842 - $_.state = $_.N; //#17842 - } //#17842 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17843 - $_.state = $_.B; //#17843 - } //#17843 - if ($_.chars == $_.bs) { //#17847 - $_.i = $_.i + 1; //#17845 - $k[$j++] = $get($_.seq, $_.i); //#17846 - $_.encb(); //#17846 - $_.addtocws(); //#17846 - } //#17846 - } //#17846 - $_.i = $_.i + 1; //#17849 - } //#17849 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17851 - } //#17851 - if (!bwipp_micropdf417.__17915__) { //#17915 - $_ = Object.create($_); //#17915 - $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#17875 - $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#17914 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17914 - bwipp_micropdf417.__17915__ = 1; //#17914 - $_ = Object.getPrototypeOf($_); //#17914 - } //#17914 - $k[$j++] = 'metrics'; //#17917 - if ($_.cca) { //#17917 - $k[$j++] = $_.ccametrics; //#17917 - } else { //#17917 - $k[$j++] = $_.nonccametrics; //#17917 - } //#17917 - var _Eu = $k[--$j]; //#17917 - $_[$k[--$j]] = _Eu; //#17917 - $_.urows = $_.rows; //#17920 - $_.ucols = $_.columns; //#17921 - $forall($_.metrics, function() { //#17936 - $_.m = $k[--$j]; //#17923 - $_.c = $get($_.m, 0); //#17924 - $_.r = $get($_.m, 1); //#17925 - $_.k = $get($_.m, 2); //#17926 - $_.rapl = $get($_.m, 3); //#17927 - $_.rapc = $get($_.m, 4); //#17928 - $_.rapr = $get($_.m, 5); //#17929 - $_.ncws = $f(($_.r * $_.c) - $_.k); //#17930 - $_.okay = true; //#17931 - if ($_.datcws.length > $_.ncws) { //#17932 - $_.okay = false; //#17932 - } //#17932 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#17933 - $_.okay = false; //#17933 - } //#17933 - if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#17934 - $_.okay = false; //#17934 - } //#17934 - if ($_.okay) { //#17935 - return true; //#17935 - } //#17935 - }); //#17935 - if (!$_.okay) { //#17940 - $k[$j++] = 'bwipp.micropdf417noValidSymbol#17939'; //#17939 - $k[$j++] = "Maximum length exceeded or invalid size"; //#17939 - bwipp_raiseerror(); //#17939 - } //#17939 - $_.m = $_.datcws.length; //#17943 - $_.n = $f(($_.c * $_.r) - $_.k); //#17944 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#17945 - $puti($_.cws, 0, $_.datcws); //#17946 - $k[$j++] = $_.cws; //#17947 - $k[$j++] = $_.m; //#17947 - $k[$j++] = Infinity; //#17947 - for (var _Fc = 0, _Fd = $f($_.n - $_.m); _Fc < _Fd; _Fc++) { //#17947 - $k[$j++] = 900; //#17947 - } //#17947 - var _Fe = $a(); //#17947 - var _Ff = $k[--$j]; //#17947 - $puti($k[--$j], _Ff, _Fe); //#17947 - $k[$j++] = $_.cws; //#17948 - $k[$j++] = $_.n; //#17948 - $k[$j++] = Infinity; //#17948 - for (var _Fk = 0, _Fl = $_.k; _Fk < _Fl; _Fk++) { //#17948 - $k[$j++] = 0; //#17948 - } //#17948 - $k[$j++] = 0; //#17948 - var _Fm = $a(); //#17948 - var _Fn = $k[--$j]; //#17948 - $puti($k[--$j], _Fn, _Fm); //#17948 - if (!bwipp_micropdf417.__17955__) { //#17955 - $_ = Object.create($_); //#17955 - $k[$j++] = Infinity; //#17952 - $k[$j++] = 1; //#17952 - for (var _Fp = 0, _Fq = 928; _Fp < _Fq; _Fp++) { //#17952 - var _Fr = $k[--$j]; //#17952 - $k[$j++] = _Fr; //#17952 - $k[$j++] = (_Fr * 3) % 929; //#17952 - } //#17952 - $_.rsalog = $a(); //#17952 - $_.rslog = $a(929); //#17953 - for (var _Fu = 1; _Fu <= 928; _Fu += 1) { //#17954 - $put($_.rslog, $get($_.rsalog, _Fu), _Fu); //#17954 - } //#17954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17954 - bwipp_micropdf417.__17955__ = 1; //#17954 - $_ = Object.getPrototypeOf($_); //#17954 - } //#17954 + } //#18091 + $_.addtocws(); //#18091 + } //#18091 + } else { //#18116 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#18094 + $_.addtocws(); //#18094 + if ($_.chars == $_.tl) { //#18095 + $_.state = $_.T; //#18095 + $_.submode = $_.A; //#18095 + } //#18095 + if ($_.chars == $_.nl) { //#18096 + $_.state = $_.N; //#18096 + } //#18096 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#18097 + $_.state = $_.B; //#18097 + } //#18097 + if ($_.chars == $_.bs) { //#18101 + $_.i = $_.i + 1; //#18099 + $k[$j++] = $get($_.seq, $_.i); //#18100 + $_.encb(); //#18100 + $_.addtocws(); //#18100 + } //#18100 + if ($_.chars == $_.m05) { //#18109 + if (($_.i + 1) < $_.seq.length) { //#18107 + if ($get($_.seq, $_.i + 1) == $_.nl) { //#18106 + $_.i = $_.i + 1; //#18105 + } //#18105 + } //#18105 + $_.state = $_.N; //#18108 + } //#18108 + if ($_.chars == $_.m06) { //#18117 + if (($_.i + 1) < $_.seq.length) { //#18115 + if ($get($_.seq, $_.i + 1) == $_.tl) { //#18114 + $_.i = $_.i + 1; //#18113 + } //#18113 + } //#18113 + $_.state = $_.T; //#18116 + $_.submode = $_.M; //#18116 + } //#18116 + } //#18116 + $_.i = $_.i + 1; //#18119 + } //#18119 + $_.datcws = $geti($_.datcws, 0, $_.j); //#18121 + } //#18121 + if (!bwipp_micropdf417.__18185__) { //#18185 + $_ = Object.create($_); //#18185 + $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#18145 + $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#18184 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18184 + bwipp_micropdf417.__18185__ = 1; //#18184 + $_ = Object.getPrototypeOf($_); //#18184 + } //#18184 + $k[$j++] = 'metrics'; //#18187 + if ($_.cca) { //#18187 + $k[$j++] = $_.ccametrics; //#18187 + } else { //#18187 + $k[$j++] = $_.nonccametrics; //#18187 + } //#18187 + var _G1 = $k[--$j]; //#18187 + $_[$k[--$j]] = _G1; //#18187 + $_.urows = $_.rows; //#18190 + $_.ucols = $_.columns; //#18191 + $forall($_.metrics, function() { //#18206 + $_.m = $k[--$j]; //#18193 + $_.c = $get($_.m, 0); //#18194 + $_.r = $get($_.m, 1); //#18195 + $_.k = $get($_.m, 2); //#18196 + $_.rapl = $get($_.m, 3); //#18197 + $_.rapc = $get($_.m, 4); //#18198 + $_.rapr = $get($_.m, 5); //#18199 + $_.ncws = $f(($_.r * $_.c) - $_.k); //#18200 + $_.okay = true; //#18201 + if ($_.datcws.length > $_.ncws) { //#18202 + $_.okay = false; //#18202 + } //#18202 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#18203 + $_.okay = false; //#18203 + } //#18203 + if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#18204 + $_.okay = false; //#18204 + } //#18204 + if ($_.okay) { //#18205 + return true; //#18205 + } //#18205 + }); //#18205 + if (!$_.okay) { //#18210 + $k[$j++] = 'bwipp.micropdf417noValidSymbol#18209'; //#18209 + $k[$j++] = "Maximum length exceeded or invalid size"; //#18209 + bwipp_raiseerror(); //#18209 + } //#18209 + $_.m = $_.datcws.length; //#18213 + $_.n = $f(($_.c * $_.r) - $_.k); //#18214 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#18215 + $puti($_.cws, 0, $_.datcws); //#18216 + $k[$j++] = $_.cws; //#18217 + $k[$j++] = $_.m; //#18217 + $k[$j++] = Infinity; //#18217 + for (var _Gj = 0, _Gk = $f($_.n - $_.m); _Gj < _Gk; _Gj++) { //#18217 + $k[$j++] = 900; //#18217 + } //#18217 + var _Gl = $a(); //#18217 + var _Gm = $k[--$j]; //#18217 + $puti($k[--$j], _Gm, _Gl); //#18217 + $k[$j++] = $_.cws; //#18218 + $k[$j++] = $_.n; //#18218 + $k[$j++] = Infinity; //#18218 + for (var _Gr = 0, _Gs = $_.k; _Gr < _Gs; _Gr++) { //#18218 + $k[$j++] = 0; //#18218 + } //#18218 + $k[$j++] = 0; //#18218 + var _Gt = $a(); //#18218 + var _Gu = $k[--$j]; //#18218 + $puti($k[--$j], _Gu, _Gt); //#18218 + if (!bwipp_micropdf417.__18225__) { //#18225 + $_ = Object.create($_); //#18225 + $k[$j++] = Infinity; //#18222 + $k[$j++] = 1; //#18222 + for (var _Gw = 0, _Gx = 928; _Gw < _Gx; _Gw++) { //#18222 + var _Gy = $k[--$j]; //#18222 + $k[$j++] = _Gy; //#18222 + $k[$j++] = (_Gy * 3) % 929; //#18222 + } //#18222 + $_.rsalog = $a(); //#18222 + $_.rslog = $a(929); //#18223 + for (var _H1 = 1; _H1 <= 928; _H1 += 1) { //#18224 + $put($_.rslog, $get($_.rsalog, _H1), _H1); //#18224 + } //#18224 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18224 + bwipp_micropdf417.__18225__ = 1; //#18224 + $_ = Object.getPrototypeOf($_); //#18224 + } //#18224 $_.rsprod = function() { - var _Fz = $k[--$j]; //#17959 - var _G0 = $k[--$j]; //#17959 - $k[$j++] = _G0; //#17963 - $k[$j++] = _Fz; //#17963 - if ((_Fz != 0) && (_G0 != 0)) { //#17962 - var _G3 = $get($_.rslog, $k[--$j]); //#17960 - var _G8 = $get($_.rsalog, $f(_G3 + $get($_.rslog, $k[--$j])) % 928); //#17960 - $k[$j++] = _G8; //#17960 - } else { //#17962 - $j -= 2; //#17962 - $k[$j++] = 0; //#17962 - } //#17962 - }; //#17962 - $k[$j++] = Infinity; //#17967 - $k[$j++] = 1; //#17967 - for (var _GA = 0, _GB = $_.k; _GA < _GB; _GA++) { //#17967 - $k[$j++] = 0; //#17967 - } //#17967 - $_.coeffs = $a(); //#17967 - for (var _GF = 1, _GE = $_.k; _GF <= _GE; _GF += 1) { //#17976 - $_.i = _GF; //#17969 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17970 - for (var _GM = $_.i - 1; _GM >= 1; _GM -= 1) { //#17974 - $_.j = _GM; //#17972 - $k[$j++] = $_.coeffs; //#17973 - $k[$j++] = $_.j; //#17973 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#17973 - $k[$j++] = $get($_.coeffs, $_.j); //#17973 - $k[$j++] = $get($_.rsalog, $_.i); //#17973 - $_.rsprod(); //#17973 - var _GY = $k[--$j]; //#17973 - var _GZ = $k[--$j]; //#17973 - var _Ga = $k[--$j]; //#17973 - $put($k[--$j], _Ga, $f(_GZ + _GY) % 929); //#17973 - } //#17973 - $k[$j++] = $_.coeffs; //#17975 - $k[$j++] = 0; //#17975 - $k[$j++] = $get($_.coeffs, 0); //#17975 - $k[$j++] = $get($_.rsalog, $_.i); //#17975 - $_.rsprod(); //#17975 - var _Gi = $k[--$j]; //#17975 - var _Gj = $k[--$j]; //#17975 - $put($k[--$j], _Gj, _Gi); //#17975 - } //#17975 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17977 - for (var _Gp = $_.coeffs.length - 1; _Gp >= 0; _Gp -= 2) { //#17978 - var _Gq = $_.coeffs; //#17978 - $put(_Gq, _Gp, $f(929 - $get(_Gq, _Gp))); //#17978 - } //#17978 - for (var _Gu = 0, _Gt = $f($_.n - 1); _Gu <= _Gt; _Gu += 1) { //#17987 - $_.t = $f($get($_.cws, _Gu) + $get($_.cws, $_.n)) % 929; //#17982 - for (var _H2 = 0, _H1 = $f($_.k - 1); _H2 <= _H1; _H2 += 1) { //#17986 - $_.j = _H2; //#17984 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#17985 - } //#17985 - } //#17985 - for (var _HJ = $_.n, _HI = $f($_.n + $_.k); _HJ <= _HI; _HJ += 1) { //#17988 - $put($_.cws, _HJ, $f(929 - $get($_.cws, _HJ)) % 929); //#17988 - } //#17988 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17991 - var _HR = $get($_.options, 'debugcws') !== undefined; //#17993 - if (_HR) { //#17993 - $k[$j++] = 'bwipp.debugcws#17993'; //#17993 - $k[$j++] = $_.cws; //#17993 - bwipp_raiseerror(); //#17993 - } //#17993 - if (!bwipp_micropdf417.__18252__) { //#18252 - $_ = Object.create($_); //#18252 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18236 - $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18251 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18251 - bwipp_micropdf417.__18252__ = 1; //#18251 - $_ = Object.getPrototypeOf($_); //#18251 - } //#18251 + var _H6 = $k[--$j]; //#18229 + var _H7 = $k[--$j]; //#18229 + $k[$j++] = _H7; //#18233 + $k[$j++] = _H6; //#18233 + if ((_H6 != 0) && (_H7 != 0)) { //#18232 + var _HA = $get($_.rslog, $k[--$j]); //#18230 + var _HF = $get($_.rsalog, $f(_HA + $get($_.rslog, $k[--$j])) % 928); //#18230 + $k[$j++] = _HF; //#18230 + } else { //#18232 + $j -= 2; //#18232 + $k[$j++] = 0; //#18232 + } //#18232 + }; //#18232 + $k[$j++] = Infinity; //#18237 + $k[$j++] = 1; //#18237 + for (var _HH = 0, _HI = $_.k; _HH < _HI; _HH++) { //#18237 + $k[$j++] = 0; //#18237 + } //#18237 + $_.coeffs = $a(); //#18237 + for (var _HM = 1, _HL = $_.k; _HM <= _HL; _HM += 1) { //#18246 + $_.i = _HM; //#18239 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#18240 + for (var _HT = $_.i - 1; _HT >= 1; _HT -= 1) { //#18244 + $_.j = _HT; //#18242 + $k[$j++] = $_.coeffs; //#18243 + $k[$j++] = $_.j; //#18243 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#18243 + $k[$j++] = $get($_.coeffs, $_.j); //#18243 + $k[$j++] = $get($_.rsalog, $_.i); //#18243 + $_.rsprod(); //#18243 + var _Hf = $k[--$j]; //#18243 + var _Hg = $k[--$j]; //#18243 + var _Hh = $k[--$j]; //#18243 + $put($k[--$j], _Hh, $f(_Hg + _Hf) % 929); //#18243 + } //#18243 + $k[$j++] = $_.coeffs; //#18245 + $k[$j++] = 0; //#18245 + $k[$j++] = $get($_.coeffs, 0); //#18245 + $k[$j++] = $get($_.rsalog, $_.i); //#18245 + $_.rsprod(); //#18245 + var _Hp = $k[--$j]; //#18245 + var _Hq = $k[--$j]; //#18245 + $put($k[--$j], _Hq, _Hp); //#18245 + } //#18245 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#18247 + for (var _Hw = $_.coeffs.length - 1; _Hw >= 0; _Hw -= 2) { //#18248 + var _Hx = $_.coeffs; //#18248 + $put(_Hx, _Hw, $f(929 - $get(_Hx, _Hw))); //#18248 + } //#18248 + for (var _I1 = 0, _I0 = $f($_.n - 1); _I1 <= _I0; _I1 += 1) { //#18257 + $_.t = $f($get($_.cws, _I1) + $get($_.cws, $_.n)) % 929; //#18252 + for (var _I9 = 0, _I8 = $f($_.k - 1); _I9 <= _I8; _I9 += 1) { //#18256 + $_.j = _I9; //#18254 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#18255 + } //#18255 + } //#18255 + for (var _IQ = $_.n, _IP = $f($_.n + $_.k); _IQ <= _IP; _IQ += 1) { //#18258 + $put($_.cws, _IQ, $f(929 - $get($_.cws, _IQ)) % 929); //#18258 + } //#18258 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#18261 + var _IY = $get($_.options, 'debugcws') !== undefined; //#18263 + if (_IY) { //#18263 + $k[$j++] = 'bwipp.debugcws#18263'; //#18263 + $k[$j++] = $_.cws; //#18263 + bwipp_raiseerror(); //#18263 + } //#18263 + if (!bwipp_micropdf417.__18522__) { //#18522 + $_ = Object.create($_); //#18522 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18506 + $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18521 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18521 + bwipp_micropdf417.__18522__ = 1; //#18521 + $_ = Object.getPrototypeOf($_); //#18521 + } //#18521 $_.cwtobits = function() { - var _Hd = $get($_.clusters, $k[--$j]); //#18256 - $_.v = $get(_Hd, $k[--$j]); //#18256 - $k[$j++] = Infinity; //#18257 - for (var _Hg = 0, _Hh = 17; _Hg < _Hh; _Hg++) { //#18257 - $k[$j++] = 0; //#18257 - } //#18257 - var _Hk = $cvrs($s(17), $_.v, 2); //#18257 - for (var _Hl = 0, _Hm = _Hk.length; _Hl < _Hm; _Hl++) { //#18257 - $k[$j++] = $get(_Hk, _Hl) - 48; //#18257 - } //#18257 - var _Ho = $a(); //#18257 - $k[$j++] = $geti(_Ho, _Ho.length - 17, 17); //#18258 - }; //#18258 + var _Ik = $get($_.clusters, $k[--$j]); //#18526 + $_.v = $get(_Ik, $k[--$j]); //#18526 + $k[$j++] = Infinity; //#18527 + for (var _In = 0, _Io = 17; _In < _Io; _In++) { //#18527 + $k[$j++] = 0; //#18527 + } //#18527 + var _Ir = $cvrs($s(17), $_.v, 2); //#18527 + for (var _Is = 0, _It = _Ir.length; _Is < _It; _Is++) { //#18527 + $k[$j++] = $get(_Ir, _Is) - 48; //#18527 + } //#18527 + var _Iv = $a(); //#18527 + $k[$j++] = $geti(_Iv, _Iv.length - 17, 17); //#18528 + }; //#18528 $_.raptobits = function() { - var _Hs = $get($_.raps, $k[--$j]); //#18263 - $_.v = $get(_Hs, $k[--$j]); //#18263 - $k[$j++] = Infinity; //#18264 - for (var _Hv = 0, _Hw = 10; _Hv < _Hw; _Hv++) { //#18264 - $k[$j++] = 0; //#18264 - } //#18264 - var _Hz = $cvrs($s(10), $_.v, 2); //#18264 - for (var _I0 = 0, _I1 = _Hz.length; _I0 < _I1; _I0++) { //#18264 - $k[$j++] = $get(_Hz, _I0) - 48; //#18264 - } //#18264 - var _I3 = $a(); //#18264 - $k[$j++] = $geti(_I3, _I3.length - 10, 10); //#18265 - }; //#18265 - $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18269 - if (($_.c == 3) && $_.cca) { //#18270 - $_.rwid = 72; //#18270 - } //#18270 - $_.pixs = $a($_.rwid * $_.r); //#18271 - for (var _IF = 0, _IE = $f($_.r - 1); _IF <= _IE; _IF += 1) { //#18309 - $_.i = _IF; //#18274 - $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18275 - $k[$j++] = $_.pixs; //#18307 - $k[$j++] = $_.rwid * $_.i; //#18307 - $k[$j++] = Infinity; //#18307 - if ($_.c == 1) { //#18281 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18278 - $k[$j++] = 0; //#18278 - $_.raptobits(); //#18278 - $aload($k[--$j]); //#18278 - $k[$j++] = $get($_.cws, $_.i); //#18279 - $k[$j++] = $_.clst; //#18279 - $_.cwtobits(); //#18279 - $aload($k[--$j]); //#18279 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18280 - $k[$j++] = 0; //#18280 - $_.raptobits(); //#18280 - $aload($k[--$j]); //#18280 - } //#18280 - if ($_.c == 2) { //#18287 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18283 - $k[$j++] = 0; //#18283 - $_.raptobits(); //#18283 - $aload($k[--$j]); //#18283 - $k[$j++] = $get($_.cws, $_.i * 2); //#18284 - $k[$j++] = $_.clst; //#18284 - $_.cwtobits(); //#18284 - $aload($k[--$j]); //#18284 - $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18285 - $k[$j++] = $_.clst; //#18285 - $_.cwtobits(); //#18285 - $aload($k[--$j]); //#18285 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18286 - $k[$j++] = 0; //#18286 - $_.raptobits(); //#18286 - $aload($k[--$j]); //#18286 - } //#18286 - if ($_.c == 3) { //#18297 - if (!$_.cca) { //#18291 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18290 - $k[$j++] = 0; //#18290 - $_.raptobits(); //#18290 - $aload($k[--$j]); //#18290 - } //#18290 - $k[$j++] = $get($_.cws, $_.i * 3); //#18292 - $k[$j++] = $_.clst; //#18292 - $_.cwtobits(); //#18292 - $aload($k[--$j]); //#18292 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18293 - $k[$j++] = 1; //#18293 - $_.raptobits(); //#18293 - $aload($k[--$j]); //#18293 - $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18294 - $k[$j++] = $_.clst; //#18294 - $_.cwtobits(); //#18294 - $aload($k[--$j]); //#18294 - $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18295 - $k[$j++] = $_.clst; //#18295 - $_.cwtobits(); //#18295 - $aload($k[--$j]); //#18295 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18296 - $k[$j++] = 0; //#18296 - $_.raptobits(); //#18296 - $aload($k[--$j]); //#18296 - } //#18296 - if ($_.c == 4) { //#18306 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18299 - $k[$j++] = 0; //#18299 - $_.raptobits(); //#18299 - $aload($k[--$j]); //#18299 - $k[$j++] = $get($_.cws, $_.i * 4); //#18300 - $k[$j++] = $_.clst; //#18300 - $_.cwtobits(); //#18300 - $aload($k[--$j]); //#18300 - $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18301 - $k[$j++] = $_.clst; //#18301 - $_.cwtobits(); //#18301 - $aload($k[--$j]); //#18301 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18302 - $k[$j++] = 1; //#18302 - $_.raptobits(); //#18302 - $aload($k[--$j]); //#18302 - $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18303 - $k[$j++] = $_.clst; //#18303 - $_.cwtobits(); //#18303 - $aload($k[--$j]); //#18303 - $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18304 - $k[$j++] = $_.clst; //#18304 - $_.cwtobits(); //#18304 - $aload($k[--$j]); //#18304 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18305 - $k[$j++] = 0; //#18305 - $_.raptobits(); //#18305 - $aload($k[--$j]); //#18305 - } //#18305 - $k[$j++] = 1; //#18307 - var _Ji = $a(); //#18307 - var _Jj = $k[--$j]; //#18308 - $puti($k[--$j], _Jj, _Ji); //#18308 - } //#18308 - var _Js = new Map([ + var _Iz = $get($_.raps, $k[--$j]); //#18533 + $_.v = $get(_Iz, $k[--$j]); //#18533 + $k[$j++] = Infinity; //#18534 + for (var _J2 = 0, _J3 = 10; _J2 < _J3; _J2++) { //#18534 + $k[$j++] = 0; //#18534 + } //#18534 + var _J6 = $cvrs($s(10), $_.v, 2); //#18534 + for (var _J7 = 0, _J8 = _J6.length; _J7 < _J8; _J7++) { //#18534 + $k[$j++] = $get(_J6, _J7) - 48; //#18534 + } //#18534 + var _JA = $a(); //#18534 + $k[$j++] = $geti(_JA, _JA.length - 10, 10); //#18535 + }; //#18535 + $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18539 + if (($_.c == 3) && $_.cca) { //#18540 + $_.rwid = 72; //#18540 + } //#18540 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#18541 + for (var _JN = 0, _JM = $f($_.r - 1); _JN <= _JM; _JN += 1) { //#18583 + $_.i = _JN; //#18544 + $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18545 + $k[$j++] = Infinity; //#18546 + if ($_.c == 1) { //#18551 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18548 + $k[$j++] = 0; //#18548 + $_.raptobits(); //#18548 + $aload($k[--$j]); //#18548 + $k[$j++] = $get($_.cws, $_.i); //#18549 + $k[$j++] = $_.clst; //#18549 + $_.cwtobits(); //#18549 + $aload($k[--$j]); //#18549 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18550 + $k[$j++] = 0; //#18550 + $_.raptobits(); //#18550 + $aload($k[--$j]); //#18550 + } //#18550 + if ($_.c == 2) { //#18557 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18553 + $k[$j++] = 0; //#18553 + $_.raptobits(); //#18553 + $aload($k[--$j]); //#18553 + $k[$j++] = $get($_.cws, $_.i * 2); //#18554 + $k[$j++] = $_.clst; //#18554 + $_.cwtobits(); //#18554 + $aload($k[--$j]); //#18554 + $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18555 + $k[$j++] = $_.clst; //#18555 + $_.cwtobits(); //#18555 + $aload($k[--$j]); //#18555 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18556 + $k[$j++] = 0; //#18556 + $_.raptobits(); //#18556 + $aload($k[--$j]); //#18556 + } //#18556 + if ($_.c == 3) { //#18567 + if (!$_.cca) { //#18561 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18560 + $k[$j++] = 0; //#18560 + $_.raptobits(); //#18560 + $aload($k[--$j]); //#18560 + } //#18560 + $k[$j++] = $get($_.cws, $_.i * 3); //#18562 + $k[$j++] = $_.clst; //#18562 + $_.cwtobits(); //#18562 + $aload($k[--$j]); //#18562 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18563 + $k[$j++] = 1; //#18563 + $_.raptobits(); //#18563 + $aload($k[--$j]); //#18563 + $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18564 + $k[$j++] = $_.clst; //#18564 + $_.cwtobits(); //#18564 + $aload($k[--$j]); //#18564 + $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18565 + $k[$j++] = $_.clst; //#18565 + $_.cwtobits(); //#18565 + $aload($k[--$j]); //#18565 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18566 + $k[$j++] = 0; //#18566 + $_.raptobits(); //#18566 + $aload($k[--$j]); //#18566 + } //#18566 + if ($_.c == 4) { //#18576 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18569 + $k[$j++] = 0; //#18569 + $_.raptobits(); //#18569 + $aload($k[--$j]); //#18569 + $k[$j++] = $get($_.cws, $_.i * 4); //#18570 + $k[$j++] = $_.clst; //#18570 + $_.cwtobits(); //#18570 + $aload($k[--$j]); //#18570 + $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18571 + $k[$j++] = $_.clst; //#18571 + $_.cwtobits(); //#18571 + $aload($k[--$j]); //#18571 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18572 + $k[$j++] = 1; //#18572 + $_.raptobits(); //#18572 + $aload($k[--$j]); //#18572 + $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18573 + $k[$j++] = $_.clst; //#18573 + $_.cwtobits(); //#18573 + $aload($k[--$j]); //#18573 + $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18574 + $k[$j++] = $_.clst; //#18574 + $_.cwtobits(); //#18574 + $aload($k[--$j]); //#18574 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18575 + $k[$j++] = 0; //#18575 + $_.raptobits(); //#18575 + $aload($k[--$j]); //#18575 + } //#18575 + $k[$j++] = 1; //#18577 + var _Kn = $a(); //#18577 + $k[$j++] = _Kn; //#18581 + for (var _Kq = 0, _Kp = $_.rowmult - 1; _Kq <= _Kp; _Kq += 1) { //#18581 + var _Kv = $k[--$j]; //#18580 + $puti($_.pixs, (_Kq + ($_.i * $_.rowmult)) * $_.rwid, _Kv); //#18580 + $k[$j++] = _Kv; //#18580 + } //#18580 + $j--; //#18582 + } //#18582 + var _L4 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#18319 - $k[$j++] = _Js; //#18322 - if (!$_.dontdraw) { //#18322 - bwipp_renmatrix(); //#18322 - } //#18322 - $_ = Object.getPrototypeOf($_); //#18324 - $_ = Object.getPrototypeOf($_); //#18326 -} - + ]); //#18597 + $k[$j++] = _L4; //#18600 + if (!$_.dontdraw) { //#18600 + bwipp_renmatrix(); //#18600 + } //#18600 + $_ = Object.getPrototypeOf($_); //#18602 + $_ = Object.getPrototypeOf($_); //#18604 +} //bwipp_micropdf417 function bwipp_datamatrix() { - $_ = Object.create($_); //#18357 - $_.dontdraw = false; //#18360 - $_.columns = 0; //#18361 - $_.rows = 0; //#18362 - $_.format = "unset"; //#18363 - $_.version = "unset"; //#18364 - $_.parse = false; //#18365 - $_.parsefnc = false; //#18366 - $_.c40headerlength = -1; //#18367 - $_.raw = false; //#18368 - $_.dmre = false; //#18369 - $k[$j++] = $_; //#18371 - bwipp_processoptions(); //#18371 - $_.options = $k[--$j]; //#18371 - $_.barcode = $k[--$j]; //#18372 - if ($eq($_.barcode, "")) { //#18376 - $k[$j++] = 'bwipp.datamatrixEmptyData#18375'; //#18375 - $k[$j++] = "The data must not be empty"; //#18375 - bwipp_raiseerror(); //#18375 - } //#18375 - if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18380 - $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18379'; //#18379 - $k[$j++] = "rows and columns must not be given if version is specified"; //#18379 - bwipp_raiseerror(); //#18379 - } //#18379 - if ($ne($_.version, "unset")) { //#18404 - $search($_.version, "x"); //#18384 - if ($k[--$j]) { //#18400 - var _9 = $k[--$j]; //#18385 - var _A = $k[--$j]; //#18385 - $k[$j++] = _9; //#18385 - $k[$j++] = _A; //#18385 - $j--; //#18385 - var _B = $k[--$j]; //#18386 - var _C = $k[--$j]; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $astore($a(2)); //#18386 - $forall($k[--$j], function() { //#18395 - var _F = $k[--$j]; //#18388 - $k[$j++] = _F; //#18388 - $k[$j++] = true; //#18388 - if (_F.length == 0) { //#18388 - $j--; //#18388 - $k[$j++] = false; //#18388 - } //#18388 - var _G = $k[--$j]; //#18389 - var _H = $k[--$j]; //#18389 - $k[$j++] = _G; //#18391 - $forall(_H, function() { //#18391 - var _I = $k[--$j]; //#18390 - if ((_I < 48) || (_I > 57)) { //#18390 - $j--; //#18390 - $k[$j++] = false; //#18390 - } //#18390 - }); //#18390 - if ($nt($k[--$j])) { //#18394 - $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18393'; //#18393 - $k[$j++] = "version must be formatted as RxC"; //#18393 - bwipp_raiseerror(); //#18393 - } //#18393 - }); //#18393 - $_.rows = $cvi($k[--$j]); //#18396 - $_.columns = $cvi($k[--$j]); //#18397 - $k[$j++] = 'format'; //#18398 - if ($_.rows == $_.columns) { //#18398 - $k[$j++] = "square"; //#18398 - } else { //#18398 - $k[$j++] = "rectangle"; //#18398 - } //#18398 - var _O = $k[--$j]; //#18398 - $_[$k[--$j]] = _O; //#18398 - } else { //#18400 - $j--; //#18400 - $k[$j++] = 'bwipp.datamatrixVersionFormat#18400'; //#18400 - $k[$j++] = "version must be formatted as RxC"; //#18400 - bwipp_raiseerror(); //#18400 - } //#18400 - } else { //#18404 - if ($eq($_.format, "unset")) { //#18405 - $k[$j++] = 'format'; //#18404 - if ($_.dmre) { //#18404 - $k[$j++] = "rectangle"; //#18404 - } else { //#18404 - $k[$j++] = "square"; //#18404 - } //#18404 - var _S = $k[--$j]; //#18404 - $_[$k[--$j]] = _S; //#18404 - } //#18404 - } //#18404 - if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18410 - $k[$j++] = 'bwipp.datamatrixInvalidFormat#18409'; //#18409 - $k[$j++] = "The format must be either square or rectangle"; //#18409 - bwipp_raiseerror(); //#18409 - } //#18409 - bwipp_loadctx(bwipp_datamatrix) //#18412 - if (!bwipp_datamatrix.__18469__) { //#18469 - $_ = Object.create($_); //#18469 - var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18458 - $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18468 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18468 - bwipp_datamatrix.__18469__ = 1; //#18468 - $_ = Object.getPrototypeOf($_); //#18468 - } //#18468 - $_.urows = $_.rows; //#18472 - $_.ucols = $_.columns; //#18473 - $_.fullcws = $a([]); //#18474 - var _1N = $_.metrics; //#18475 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18494 - $_.m = $get(_1N, _1O); //#18476 - $_.rows = $get($_.m, 0); //#18477 - $_.cols = $get($_.m, 1); //#18478 - $_.regh = $get($_.m, 2); //#18479 - $_.regv = $get($_.m, 3); //#18480 - $_.rscw = $get($_.m, 4); //#18481 - $_.rsbl = $get($_.m, 5); //#18482 - $_.doly = $get($_.m, 6); //#18483 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#18484 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#18485 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18486 - $_.okay = true; //#18487 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18488 - $_.okay = false; //#18488 - } //#18488 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18489 - $_.okay = false; //#18489 - } //#18489 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18490 - $_.okay = false; //#18490 - } //#18490 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18491 - $_.okay = false; //#18491 - } //#18491 - if ((!$_.dmre) && ($_.doly == 1)) { //#18492 - $_.okay = false; //#18492 - } //#18492 - if ($_.okay) { //#18493 - $k[$j++] = Infinity; //#18493 - $aload($_.fullcws); //#18493 - $k[$j++] = $_.ncws; //#18493 - $_.fullcws = $a(); //#18493 - } //#18493 - } //#18493 - $k[$j++] = Infinity; //#18495 - for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18495 - $k[$j++] = 10000; //#18495 - } //#18495 - $_.numremcws = $a(); //#18495 - var _27 = $_.fullcws; //#18496 - for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18496 - $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18496 - } //#18496 - for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18502 - $_.i = _2C; //#18498 - if ($get($_.numremcws, $_.i) != 1) { //#18501 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18500 - } //#18500 - } //#18500 - if (!bwipp_datamatrix.__18615__) { //#18615 - $_ = Object.create($_); //#18615 - $_.fnc1 = -1; //#18506 - $_.prog = -2; //#18506 - $_.m05 = -3; //#18506 - $_.m06 = -4; //#18506 - $_.lC = -5; //#18507 - $_.lB = -6; //#18507 - $_.lX = -7; //#18507 - $_.lT = -8; //#18507 - $_.lE = -9; //#18507 - $_.unl = -10; //#18507 - $_.sapp = -11; //#18508 - $_.usft = -12; //#18508 - $_.sft1 = -13; //#18508 - $_.sft2 = -14; //#18508 - $_.sft3 = -15; //#18508 - $_.eci = -16; //#18508 - $_.pad = -17; //#18508 - $_.unlcw = 254; //#18509 - $k[$j++] = Infinity; //#18518 - for (var _2L = 0; _2L <= 128; _2L += 1) { //#18512 - $k[$j++] = _2L; //#18512 - $k[$j++] = _2L + 1; //#18512 - } //#18512 - $k[$j++] = $_.pad; //#18517 - $k[$j++] = 129; //#18517 - for (var _2N = 0; _2N <= 99; _2N += 1) { //#18517 - var _2P = $cvrs($s(2), _2N, 10); //#18515 - var _2R = $strcpy($s(2), "00"); //#18515 - $puti(_2R, 2 - _2P.length, _2P); //#18515 - $k[$j++] = _2R; //#18516 - $k[$j++] = _2N + 130; //#18516 - } //#18516 - var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18518 - $k[$j++] = 229; //#18518 - for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18518 - var _2j = $f($k[--$j] + 1); //#18518 - $k[$j++] = $get(_2e, _2f); //#18518 - $k[$j++] = _2j; //#18518 - $k[$j++] = _2j; //#18518 - } //#18518 - $j--; //#18518 - $_.Avals = $d(); //#18519 - $k[$j++] = Infinity; //#18521 - var _2l = $_.Avals; //#18521 - for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18521 - var _2m = _2p.next().value; //#18521 - $k[$j++] = _2m; //#18521 - $k[$j++] = _2l.get(_2m); //#18521 - $k[$j++] = Infinity; //#18521 - var _2r = $k[--$j]; //#18521 - var _2s = $k[--$j]; //#18521 - $k[$j++] = _2r; //#18521 - $k[$j++] = _2s; //#18521 - var _2t = $a(); //#18521 - $k[$j++] = _2t; //#18521 - } //#18521 - $_.Avals = $d(); //#18522 - $k[$j++] = Infinity; //#18530 - $k[$j++] = $_.sft1; //#18529 - $k[$j++] = 0; //#18529 - $k[$j++] = $_.sft2; //#18529 - $k[$j++] = 1; //#18529 - $k[$j++] = $_.sft3; //#18529 - $k[$j++] = 2; //#18529 - $k[$j++] = 32; //#18529 - $k[$j++] = 3; //#18529 - for (var _2y = 48; _2y <= 57; _2y += 1) { //#18529 - $k[$j++] = _2y; //#18529 - $k[$j++] = _2y - 44; //#18529 - } //#18529 - for (var _2z = 65; _2z <= 90; _2z += 1) { //#18530 - $k[$j++] = _2z; //#18530 - $k[$j++] = _2z - 51; //#18530 - } //#18530 - $_.CNvals = $d(); //#18531 - $k[$j++] = Infinity; //#18532 - for (var _31 = 0; _31 <= 31; _31 += 1) { //#18532 - $k[$j++] = _31; //#18532 - $k[$j++] = _31; //#18532 - } //#18532 - $_.C1vals = $d(); //#18532 - $k[$j++] = Infinity; //#18538 - for (var _33 = 33; _33 <= 47; _33 += 1) { //#18534 - $k[$j++] = _33; //#18534 - $k[$j++] = _33 - 33; //#18534 - } //#18534 - for (var _34 = 58; _34 <= 64; _34 += 1) { //#18535 - $k[$j++] = _34; //#18535 - $k[$j++] = _34 - 43; //#18535 - } //#18535 - for (var _35 = 91; _35 <= 95; _35 += 1) { //#18536 - $k[$j++] = _35; //#18536 - $k[$j++] = _35 - 69; //#18536 - } //#18536 - $k[$j++] = $_.fnc1; //#18538 - $k[$j++] = 27; //#18538 - $k[$j++] = $_.usft; //#18538 - $k[$j++] = 30; //#18538 - $_.C2vals = $d(); //#18539 - $k[$j++] = Infinity; //#18540 - for (var _39 = 96; _39 <= 127; _39 += 1) { //#18540 - $k[$j++] = _39; //#18540 - $k[$j++] = _39 - 96; //#18540 - } //#18540 - $_.C3vals = $d(); //#18540 - $k[$j++] = Infinity; //#18545 - var _3B = $_.CNvals; //#18542 - for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18542 - var _3C = _3F.next().value; //#18542 - $k[$j++] = _3C; //#18542 - $k[$j++] = _3B.get(_3C); //#18542 - $k[$j++] = Infinity; //#18542 - var _3H = $k[--$j]; //#18542 - var _3I = $k[--$j]; //#18542 - $k[$j++] = _3H; //#18542 - $k[$j++] = _3I; //#18542 - var _3J = $a(); //#18542 - $k[$j++] = _3J; //#18542 - } //#18542 - var _3K = $_.C1vals; //#18543 - for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18543 - var _3L = _3O.next().value; //#18543 - $k[$j++] = _3L; //#18543 - $k[$j++] = _3K.get(_3L); //#18543 - $k[$j++] = Infinity; //#18543 - var _3Q = $k[--$j]; //#18543 - var _3R = $k[--$j]; //#18543 - $k[$j++] = _3Q; //#18543 - $k[$j++] = $get($_.CNvals, $_.sft1); //#18543 - $k[$j++] = _3R; //#18543 - var _3V = $a(); //#18543 - $k[$j++] = _3V; //#18543 - } //#18543 - var _3W = $_.C2vals; //#18544 - for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18544 - var _3X = _3a.next().value; //#18544 - $k[$j++] = _3X; //#18544 - $k[$j++] = _3W.get(_3X); //#18544 - $k[$j++] = Infinity; //#18544 - var _3c = $k[--$j]; //#18544 - var _3d = $k[--$j]; //#18544 - $k[$j++] = _3c; //#18544 - $k[$j++] = $get($_.CNvals, $_.sft2); //#18544 - $k[$j++] = _3d; //#18544 - var _3h = $a(); //#18544 - $k[$j++] = _3h; //#18544 - } //#18544 - var _3i = $_.C3vals; //#18545 - for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18545 - var _3j = _3m.next().value; //#18545 - $k[$j++] = _3j; //#18545 - $k[$j++] = _3i.get(_3j); //#18545 - $k[$j++] = Infinity; //#18545 - var _3o = $k[--$j]; //#18545 - var _3p = $k[--$j]; //#18545 - $k[$j++] = _3o; //#18545 - $k[$j++] = $get($_.CNvals, $_.sft3); //#18545 - $k[$j++] = _3p; //#18545 - var _3t = $a(); //#18545 - $k[$j++] = _3t; //#18545 - } //#18545 - $_.Cvals = $d(); //#18546 - $k[$j++] = Infinity; //#18554 - $k[$j++] = $_.sft1; //#18553 - $k[$j++] = 0; //#18553 - $k[$j++] = $_.sft2; //#18553 - $k[$j++] = 1; //#18553 - $k[$j++] = $_.sft3; //#18553 - $k[$j++] = 2; //#18553 - $k[$j++] = 32; //#18553 - $k[$j++] = 3; //#18553 - for (var _3y = 48; _3y <= 57; _3y += 1) { //#18553 - $k[$j++] = _3y; //#18553 - $k[$j++] = _3y - 44; //#18553 - } //#18553 - for (var _3z = 97; _3z <= 122; _3z += 1) { //#18554 - $k[$j++] = _3z; //#18554 - $k[$j++] = _3z - 83; //#18554 - } //#18554 - $_.TNvals = $d(); //#18555 - $k[$j++] = Infinity; //#18556 - for (var _41 = 0; _41 <= 31; _41 += 1) { //#18556 - $k[$j++] = _41; //#18556 - $k[$j++] = _41; //#18556 - } //#18556 - $_.T1vals = $d(); //#18556 - $k[$j++] = Infinity; //#18562 - for (var _43 = 33; _43 <= 47; _43 += 1) { //#18558 - $k[$j++] = _43; //#18558 - $k[$j++] = _43 - 33; //#18558 - } //#18558 - for (var _44 = 58; _44 <= 64; _44 += 1) { //#18559 - $k[$j++] = _44; //#18559 - $k[$j++] = _44 - 43; //#18559 - } //#18559 - for (var _45 = 91; _45 <= 95; _45 += 1) { //#18560 - $k[$j++] = _45; //#18560 - $k[$j++] = _45 - 69; //#18560 - } //#18560 - $k[$j++] = $_.fnc1; //#18562 - $k[$j++] = 27; //#18562 - $k[$j++] = $_.usft; //#18562 - $k[$j++] = 30; //#18562 - $_.T2vals = $d(); //#18563 - $k[$j++] = Infinity; //#18567 - $k[$j++] = 96; //#18566 - $k[$j++] = 0; //#18566 - for (var _49 = 65; _49 <= 90; _49 += 1) { //#18566 - $k[$j++] = _49; //#18566 - $k[$j++] = _49 - 64; //#18566 - } //#18566 - for (var _4A = 123; _4A <= 127; _4A += 1) { //#18567 - $k[$j++] = _4A; //#18567 - $k[$j++] = _4A - 96; //#18567 - } //#18567 - $_.T3vals = $d(); //#18568 - $k[$j++] = Infinity; //#18573 - var _4C = $_.TNvals; //#18570 - for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18570 - var _4D = _4G.next().value; //#18570 - $k[$j++] = _4D; //#18570 - $k[$j++] = _4C.get(_4D); //#18570 - $k[$j++] = Infinity; //#18570 - var _4I = $k[--$j]; //#18570 - var _4J = $k[--$j]; //#18570 - $k[$j++] = _4I; //#18570 - $k[$j++] = _4J; //#18570 - var _4K = $a(); //#18570 - $k[$j++] = _4K; //#18570 - } //#18570 - var _4L = $_.T1vals; //#18571 - for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18571 - var _4M = _4P.next().value; //#18571 - $k[$j++] = _4M; //#18571 - $k[$j++] = _4L.get(_4M); //#18571 - $k[$j++] = Infinity; //#18571 - var _4R = $k[--$j]; //#18571 - var _4S = $k[--$j]; //#18571 - $k[$j++] = _4R; //#18571 - $k[$j++] = $get($_.TNvals, $_.sft1); //#18571 - $k[$j++] = _4S; //#18571 - var _4W = $a(); //#18571 - $k[$j++] = _4W; //#18571 - } //#18571 - var _4X = $_.T2vals; //#18572 - for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18572 - var _4Y = _4b.next().value; //#18572 - $k[$j++] = _4Y; //#18572 - $k[$j++] = _4X.get(_4Y); //#18572 - $k[$j++] = Infinity; //#18572 - var _4d = $k[--$j]; //#18572 - var _4e = $k[--$j]; //#18572 - $k[$j++] = _4d; //#18572 - $k[$j++] = $get($_.TNvals, $_.sft2); //#18572 - $k[$j++] = _4e; //#18572 - var _4i = $a(); //#18572 - $k[$j++] = _4i; //#18572 - } //#18572 - var _4j = $_.T3vals; //#18573 - for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18573 - var _4k = _4n.next().value; //#18573 - $k[$j++] = _4k; //#18573 - $k[$j++] = _4j.get(_4k); //#18573 - $k[$j++] = Infinity; //#18573 - var _4p = $k[--$j]; //#18573 - var _4q = $k[--$j]; //#18573 - $k[$j++] = _4p; //#18573 - $k[$j++] = $get($_.TNvals, $_.sft3); //#18573 - $k[$j++] = _4q; //#18573 - var _4u = $a(); //#18573 - $k[$j++] = _4u; //#18573 - } //#18573 - $_.Tvals = $d(); //#18574 - for (var _4w = 128; _4w <= 255; _4w += 1) { //#18582 - $_.i = _4w; //#18578 - $k[$j++] = $_.Avals; //#18579 - $k[$j++] = $_.i; //#18579 - $k[$j++] = Infinity; //#18579 - $aload($get($_.Avals, $_.usft)); //#18579 - $aload($get($_.Avals, $_.i - 128)); //#18579 - var _55 = $a(); //#18579 - var _56 = $k[--$j]; //#18579 - $put($k[--$j], _56, _55); //#18579 - $k[$j++] = $_.Cvals; //#18580 - $k[$j++] = $_.i; //#18580 - $k[$j++] = Infinity; //#18580 - $aload($get($_.Cvals, $_.usft)); //#18580 - $aload($get($_.Cvals, $_.i - 128)); //#18580 - var _5G = $a(); //#18580 - var _5H = $k[--$j]; //#18580 - $put($k[--$j], _5H, _5G); //#18580 - $k[$j++] = $_.Tvals; //#18581 - $k[$j++] = $_.i; //#18581 - $k[$j++] = Infinity; //#18581 - $aload($get($_.Tvals, $_.usft)); //#18581 - $aload($get($_.Tvals, $_.i - 128)); //#18581 - var _5R = $a(); //#18581 - var _5S = $k[--$j]; //#18581 - $put($k[--$j], _5S, _5R); //#18581 - } //#18581 - $k[$j++] = Infinity; //#18590 - $k[$j++] = 13; //#18589 - $k[$j++] = 0; //#18589 - $k[$j++] = 42; //#18589 - $k[$j++] = 1; //#18589 - $k[$j++] = 62; //#18589 - $k[$j++] = 2; //#18589 - $k[$j++] = 32; //#18589 - $k[$j++] = 3; //#18589 - for (var _5U = 48; _5U <= 57; _5U += 1) { //#18589 - $k[$j++] = _5U; //#18589 - $k[$j++] = _5U - 44; //#18589 - } //#18589 - for (var _5V = 65; _5V <= 90; _5V += 1) { //#18590 - $k[$j++] = _5V; //#18590 - $k[$j++] = _5V - 51; //#18590 - } //#18590 - $_.Xvals = $d(); //#18591 - $k[$j++] = Infinity; //#18593 - var _5X = $_.Xvals; //#18593 - for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18593 - var _5Y = _5b.next().value; //#18593 - $k[$j++] = _5Y; //#18593 - $k[$j++] = _5X.get(_5Y); //#18593 - $k[$j++] = Infinity; //#18593 - var _5d = $k[--$j]; //#18593 - var _5e = $k[--$j]; //#18593 - $k[$j++] = _5d; //#18593 - $k[$j++] = _5e; //#18593 - var _5f = $a(); //#18593 - $k[$j++] = _5f; //#18593 - } //#18593 - $_.Xvals = $d(); //#18594 - $k[$j++] = Infinity; //#18599 - for (var _5h = 64; _5h <= 94; _5h += 1) { //#18597 - $k[$j++] = _5h; //#18597 - $k[$j++] = _5h - 64; //#18597 - } //#18597 - $k[$j++] = $_.unl; //#18599 - $k[$j++] = 31; //#18599 - for (var _5j = 32; _5j <= 63; _5j += 1) { //#18599 - $k[$j++] = _5j; //#18599 - $k[$j++] = _5j; //#18599 - } //#18599 - $_.Evals = $d(); //#18600 - $k[$j++] = Infinity; //#18602 - var _5l = $_.Evals; //#18602 - for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18602 - var _5m = _5p.next().value; //#18602 - $k[$j++] = _5m; //#18602 - $k[$j++] = _5l.get(_5m); //#18602 - $k[$j++] = Infinity; //#18602 - var _5r = $k[--$j]; //#18602 - var _5s = $k[--$j]; //#18602 - $k[$j++] = _5r; //#18602 - $k[$j++] = _5s; //#18602 - var _5t = $a(); //#18602 - $k[$j++] = _5t; //#18602 - } //#18602 - $_.Evals = $d(); //#18603 - $k[$j++] = Infinity; //#18606 - for (var _5v = 0; _5v <= 255; _5v += 1) { //#18606 - $k[$j++] = _5v; //#18606 - $k[$j++] = _5v; //#18606 - } //#18606 - $_.Bvals = $d(); //#18607 - $k[$j++] = Infinity; //#18609 - var _5x = $_.Bvals; //#18609 - for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18609 - var _5y = _61.next().value; //#18609 - $k[$j++] = _5y; //#18609 - $k[$j++] = _5x.get(_5y); //#18609 - $k[$j++] = Infinity; //#18609 - var _63 = $k[--$j]; //#18609 - var _64 = $k[--$j]; //#18609 - $k[$j++] = _63; //#18609 - $k[$j++] = _64; //#18609 - var _65 = $a(); //#18609 - $k[$j++] = _65; //#18609 - } //#18609 - $_.Bvals = $d(); //#18610 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18612 - $_.A = 0; //#18614 - $_.C = 1; //#18614 - $_.T = 2; //#18614 - $_.X = 3; //#18614 - $_.E = 4; //#18614 - $_.B = 5; //#18614 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18614 - bwipp_datamatrix.__18615__ = 1; //#18614 - $_ = Object.getPrototypeOf($_); //#18614 - } //#18614 - if ($_.raw) { //#19019 - $_.cws = $a($_.barcode.length); //#18619 - $_.i = 0; //#18620 - $_.j = 0; //#18620 - for (;;) { //#18627 - if ($_.i == $_.barcode.length) { //#18622 - break; //#18622 - } //#18622 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18623 - $put($_.cws, $_.j, $_.cw); //#18624 - $_.i = $_.i + 4; //#18625 - $_.j = $_.j + 1; //#18626 - } //#18626 - $_.cws = $geti($_.cws, 0, $_.j); //#18628 - } else { //#19019 + $_ = Object.create($_); //#18635 + $_.dontdraw = false; //#18638 + $_.columns = 0; //#18639 + $_.rows = 0; //#18640 + $_.format = "unset"; //#18641 + $_.version = "unset"; //#18642 + $_.parse = false; //#18643 + $_.parsefnc = false; //#18644 + $_.c40headerlength = -1; //#18645 + $_.raw = false; //#18646 + $_.dmre = false; //#18647 + $k[$j++] = $_; //#18649 + bwipp_processoptions(); //#18649 + $_.options = $k[--$j]; //#18649 + $_.barcode = $k[--$j]; //#18650 + if ($eq($_.barcode, "")) { //#18654 + $k[$j++] = 'bwipp.datamatrixEmptyData#18653'; //#18653 + $k[$j++] = "The data must not be empty"; //#18653 + bwipp_raiseerror(); //#18653 + } //#18653 + if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18658 + $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18657'; //#18657 + $k[$j++] = "rows and columns must not be given if version is specified"; //#18657 + bwipp_raiseerror(); //#18657 + } //#18657 + if ($ne($_.version, "unset")) { //#18682 + $search($_.version, "x"); //#18662 + if ($k[--$j]) { //#18678 + var _9 = $k[--$j]; //#18663 + var _A = $k[--$j]; //#18663 + $k[$j++] = _9; //#18663 + $k[$j++] = _A; //#18663 + $j--; //#18663 + var _B = $k[--$j]; //#18664 + var _C = $k[--$j]; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $astore($a(2)); //#18664 + $forall($k[--$j], function() { //#18673 + var _F = $k[--$j]; //#18666 + $k[$j++] = _F; //#18666 + $k[$j++] = true; //#18666 + if (_F.length == 0) { //#18666 + $j--; //#18666 + $k[$j++] = false; //#18666 + } //#18666 + var _G = $k[--$j]; //#18667 + var _H = $k[--$j]; //#18667 + $k[$j++] = _G; //#18669 + $forall(_H, function() { //#18669 + var _I = $k[--$j]; //#18668 + if ((_I < 48) || (_I > 57)) { //#18668 + $j--; //#18668 + $k[$j++] = false; //#18668 + } //#18668 + }); //#18668 + if ($nt($k[--$j])) { //#18672 + $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18671'; //#18671 + $k[$j++] = "version must be formatted as RxC"; //#18671 + bwipp_raiseerror(); //#18671 + } //#18671 + }); //#18671 + $_.rows = $cvi($k[--$j]); //#18674 + $_.columns = $cvi($k[--$j]); //#18675 + $k[$j++] = 'format'; //#18676 + if ($_.rows == $_.columns) { //#18676 + $k[$j++] = "square"; //#18676 + } else { //#18676 + $k[$j++] = "rectangle"; //#18676 + } //#18676 + var _O = $k[--$j]; //#18676 + $_[$k[--$j]] = _O; //#18676 + } else { //#18678 + $j--; //#18678 + $k[$j++] = 'bwipp.datamatrixVersionFormat#18678'; //#18678 + $k[$j++] = "version must be formatted as RxC"; //#18678 + bwipp_raiseerror(); //#18678 + } //#18678 + } else { //#18682 + if ($eq($_.format, "unset")) { //#18683 + $k[$j++] = 'format'; //#18682 + if ($_.dmre) { //#18682 + $k[$j++] = "rectangle"; //#18682 + } else { //#18682 + $k[$j++] = "square"; //#18682 + } //#18682 + var _S = $k[--$j]; //#18682 + $_[$k[--$j]] = _S; //#18682 + } //#18682 + } //#18682 + if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18688 + $k[$j++] = 'bwipp.datamatrixInvalidFormat#18687'; //#18687 + $k[$j++] = "The format must be either square or rectangle"; //#18687 + bwipp_raiseerror(); //#18687 + } //#18687 + bwipp_loadctx(bwipp_datamatrix) //#18690 + if (!bwipp_datamatrix.__18747__) { //#18747 + $_ = Object.create($_); //#18747 + var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18736 + $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18746 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18746 + bwipp_datamatrix.__18747__ = 1; //#18746 + $_ = Object.getPrototypeOf($_); //#18746 + } //#18746 + $_.urows = $_.rows; //#18750 + $_.ucols = $_.columns; //#18751 + $_.fullcws = $a([]); //#18752 + var _1N = $_.metrics; //#18753 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18772 + $_.m = $get(_1N, _1O); //#18754 + $_.rows = $get($_.m, 0); //#18755 + $_.cols = $get($_.m, 1); //#18756 + $_.regh = $get($_.m, 2); //#18757 + $_.regv = $get($_.m, 3); //#18758 + $_.rscw = $get($_.m, 4); //#18759 + $_.rsbl = $get($_.m, 5); //#18760 + $_.doly = $get($_.m, 6); //#18761 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#18762 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#18763 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18764 + $_.okay = true; //#18765 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18766 + $_.okay = false; //#18766 + } //#18766 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18767 + $_.okay = false; //#18767 + } //#18767 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18768 + $_.okay = false; //#18768 + } //#18768 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18769 + $_.okay = false; //#18769 + } //#18769 + if ((!$_.dmre) && ($_.doly == 1)) { //#18770 + $_.okay = false; //#18770 + } //#18770 + if ($_.okay) { //#18771 + $k[$j++] = Infinity; //#18771 + $aload($_.fullcws); //#18771 + $k[$j++] = $_.ncws; //#18771 + $_.fullcws = $a(); //#18771 + } //#18771 + } //#18771 + $k[$j++] = Infinity; //#18773 + for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18773 + $k[$j++] = 10000; //#18773 + } //#18773 + $_.numremcws = $a(); //#18773 + var _27 = $_.fullcws; //#18774 + for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18774 + $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18774 + } //#18774 + for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18780 + $_.i = _2C; //#18776 + if ($get($_.numremcws, $_.i) != 1) { //#18779 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18778 + } //#18778 + } //#18778 + if (!bwipp_datamatrix.__18893__) { //#18893 + $_ = Object.create($_); //#18893 + $_.fnc1 = -1; //#18784 + $_.prog = -2; //#18784 + $_.m05 = -3; //#18784 + $_.m06 = -4; //#18784 + $_.lC = -5; //#18785 + $_.lB = -6; //#18785 + $_.lX = -7; //#18785 + $_.lT = -8; //#18785 + $_.lE = -9; //#18785 + $_.unl = -10; //#18785 + $_.sapp = -11; //#18786 + $_.usft = -12; //#18786 + $_.sft1 = -13; //#18786 + $_.sft2 = -14; //#18786 + $_.sft3 = -15; //#18786 + $_.eci = -16; //#18786 + $_.pad = -17; //#18786 + $_.unlcw = 254; //#18787 + $k[$j++] = Infinity; //#18789 + for (var _2L = 0; _2L <= 128; _2L += 1) { //#18790 + $k[$j++] = _2L; //#18790 + $k[$j++] = _2L + 1; //#18790 + } //#18790 + $k[$j++] = $_.pad; //#18795 + $k[$j++] = 129; //#18795 + for (var _2N = 0; _2N <= 99; _2N += 1) { //#18795 + var _2P = $cvrs($s(2), _2N, 10); //#18793 + var _2R = $strcpy($s(2), "00"); //#18793 + $puti(_2R, 2 - _2P.length, _2P); //#18793 + $k[$j++] = _2R; //#18794 + $k[$j++] = _2N + 130; //#18794 + } //#18794 + var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18796 + $k[$j++] = 229; //#18796 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18796 + var _2j = $f($k[--$j] + 1); //#18796 + $k[$j++] = $get(_2e, _2f); //#18796 + $k[$j++] = _2j; //#18796 + $k[$j++] = _2j; //#18796 + } //#18796 + $j--; //#18796 + $_.Avals = $d(); //#18797 + $k[$j++] = Infinity; //#18798 + var _2l = $_.Avals; //#18799 + for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18799 + var _2m = _2p.next().value; //#18799 + $k[$j++] = _2m; //#18799 + $k[$j++] = _2l.get(_2m); //#18799 + $k[$j++] = Infinity; //#18799 + var _2r = $k[--$j]; //#18799 + var _2s = $k[--$j]; //#18799 + $k[$j++] = _2r; //#18799 + $k[$j++] = _2s; //#18799 + var _2t = $a(); //#18799 + $k[$j++] = _2t; //#18799 + } //#18799 + $_.Avals = $d(); //#18800 + $k[$j++] = Infinity; //#18802 + $k[$j++] = $_.sft1; //#18807 + $k[$j++] = 0; //#18807 + $k[$j++] = $_.sft2; //#18807 + $k[$j++] = 1; //#18807 + $k[$j++] = $_.sft3; //#18807 + $k[$j++] = 2; //#18807 + $k[$j++] = 32; //#18807 + $k[$j++] = 3; //#18807 + for (var _2y = 48; _2y <= 57; _2y += 1) { //#18807 + $k[$j++] = _2y; //#18807 + $k[$j++] = _2y - 44; //#18807 + } //#18807 + for (var _2z = 65; _2z <= 90; _2z += 1) { //#18808 + $k[$j++] = _2z; //#18808 + $k[$j++] = _2z - 51; //#18808 + } //#18808 + $_.CNvals = $d(); //#18809 + $k[$j++] = Infinity; //#18810 + for (var _31 = 0; _31 <= 31; _31 += 1) { //#18810 + $k[$j++] = _31; //#18810 + $k[$j++] = _31; //#18810 + } //#18810 + $_.C1vals = $d(); //#18810 + $k[$j++] = Infinity; //#18811 + for (var _33 = 33; _33 <= 47; _33 += 1) { //#18812 + $k[$j++] = _33; //#18812 + $k[$j++] = _33 - 33; //#18812 + } //#18812 + for (var _34 = 58; _34 <= 64; _34 += 1) { //#18813 + $k[$j++] = _34; //#18813 + $k[$j++] = _34 - 43; //#18813 + } //#18813 + for (var _35 = 91; _35 <= 95; _35 += 1) { //#18814 + $k[$j++] = _35; //#18814 + $k[$j++] = _35 - 69; //#18814 + } //#18814 + $k[$j++] = $_.fnc1; //#18816 + $k[$j++] = 27; //#18816 + $k[$j++] = $_.usft; //#18816 + $k[$j++] = 30; //#18816 + $_.C2vals = $d(); //#18817 + $k[$j++] = Infinity; //#18818 + for (var _39 = 96; _39 <= 127; _39 += 1) { //#18818 + $k[$j++] = _39; //#18818 + $k[$j++] = _39 - 96; //#18818 + } //#18818 + $_.C3vals = $d(); //#18818 + $k[$j++] = Infinity; //#18819 + var _3B = $_.CNvals; //#18820 + for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18820 + var _3C = _3F.next().value; //#18820 + $k[$j++] = _3C; //#18820 + $k[$j++] = _3B.get(_3C); //#18820 + $k[$j++] = Infinity; //#18820 + var _3H = $k[--$j]; //#18820 + var _3I = $k[--$j]; //#18820 + $k[$j++] = _3H; //#18820 + $k[$j++] = _3I; //#18820 + var _3J = $a(); //#18820 + $k[$j++] = _3J; //#18820 + } //#18820 + var _3K = $_.C1vals; //#18821 + for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18821 + var _3L = _3O.next().value; //#18821 + $k[$j++] = _3L; //#18821 + $k[$j++] = _3K.get(_3L); //#18821 + $k[$j++] = Infinity; //#18821 + var _3Q = $k[--$j]; //#18821 + var _3R = $k[--$j]; //#18821 + $k[$j++] = _3Q; //#18821 + $k[$j++] = $get($_.CNvals, $_.sft1); //#18821 + $k[$j++] = _3R; //#18821 + var _3V = $a(); //#18821 + $k[$j++] = _3V; //#18821 + } //#18821 + var _3W = $_.C2vals; //#18822 + for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18822 + var _3X = _3a.next().value; //#18822 + $k[$j++] = _3X; //#18822 + $k[$j++] = _3W.get(_3X); //#18822 + $k[$j++] = Infinity; //#18822 + var _3c = $k[--$j]; //#18822 + var _3d = $k[--$j]; //#18822 + $k[$j++] = _3c; //#18822 + $k[$j++] = $get($_.CNvals, $_.sft2); //#18822 + $k[$j++] = _3d; //#18822 + var _3h = $a(); //#18822 + $k[$j++] = _3h; //#18822 + } //#18822 + var _3i = $_.C3vals; //#18823 + for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18823 + var _3j = _3m.next().value; //#18823 + $k[$j++] = _3j; //#18823 + $k[$j++] = _3i.get(_3j); //#18823 + $k[$j++] = Infinity; //#18823 + var _3o = $k[--$j]; //#18823 + var _3p = $k[--$j]; //#18823 + $k[$j++] = _3o; //#18823 + $k[$j++] = $get($_.CNvals, $_.sft3); //#18823 + $k[$j++] = _3p; //#18823 + var _3t = $a(); //#18823 + $k[$j++] = _3t; //#18823 + } //#18823 + $_.Cvals = $d(); //#18824 + $k[$j++] = Infinity; //#18826 + $k[$j++] = $_.sft1; //#18831 + $k[$j++] = 0; //#18831 + $k[$j++] = $_.sft2; //#18831 + $k[$j++] = 1; //#18831 + $k[$j++] = $_.sft3; //#18831 + $k[$j++] = 2; //#18831 + $k[$j++] = 32; //#18831 + $k[$j++] = 3; //#18831 + for (var _3y = 48; _3y <= 57; _3y += 1) { //#18831 + $k[$j++] = _3y; //#18831 + $k[$j++] = _3y - 44; //#18831 + } //#18831 + for (var _3z = 97; _3z <= 122; _3z += 1) { //#18832 + $k[$j++] = _3z; //#18832 + $k[$j++] = _3z - 83; //#18832 + } //#18832 + $_.TNvals = $d(); //#18833 + $k[$j++] = Infinity; //#18834 + for (var _41 = 0; _41 <= 31; _41 += 1) { //#18834 + $k[$j++] = _41; //#18834 + $k[$j++] = _41; //#18834 + } //#18834 + $_.T1vals = $d(); //#18834 + $k[$j++] = Infinity; //#18835 + for (var _43 = 33; _43 <= 47; _43 += 1) { //#18836 + $k[$j++] = _43; //#18836 + $k[$j++] = _43 - 33; //#18836 + } //#18836 + for (var _44 = 58; _44 <= 64; _44 += 1) { //#18837 + $k[$j++] = _44; //#18837 + $k[$j++] = _44 - 43; //#18837 + } //#18837 + for (var _45 = 91; _45 <= 95; _45 += 1) { //#18838 + $k[$j++] = _45; //#18838 + $k[$j++] = _45 - 69; //#18838 + } //#18838 + $k[$j++] = $_.fnc1; //#18840 + $k[$j++] = 27; //#18840 + $k[$j++] = $_.usft; //#18840 + $k[$j++] = 30; //#18840 + $_.T2vals = $d(); //#18841 + $k[$j++] = Infinity; //#18842 + $k[$j++] = 96; //#18844 + $k[$j++] = 0; //#18844 + for (var _49 = 65; _49 <= 90; _49 += 1) { //#18844 + $k[$j++] = _49; //#18844 + $k[$j++] = _49 - 64; //#18844 + } //#18844 + for (var _4A = 123; _4A <= 127; _4A += 1) { //#18845 + $k[$j++] = _4A; //#18845 + $k[$j++] = _4A - 96; //#18845 + } //#18845 + $_.T3vals = $d(); //#18846 + $k[$j++] = Infinity; //#18847 + var _4C = $_.TNvals; //#18848 + for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18848 + var _4D = _4G.next().value; //#18848 + $k[$j++] = _4D; //#18848 + $k[$j++] = _4C.get(_4D); //#18848 + $k[$j++] = Infinity; //#18848 + var _4I = $k[--$j]; //#18848 + var _4J = $k[--$j]; //#18848 + $k[$j++] = _4I; //#18848 + $k[$j++] = _4J; //#18848 + var _4K = $a(); //#18848 + $k[$j++] = _4K; //#18848 + } //#18848 + var _4L = $_.T1vals; //#18849 + for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18849 + var _4M = _4P.next().value; //#18849 + $k[$j++] = _4M; //#18849 + $k[$j++] = _4L.get(_4M); //#18849 + $k[$j++] = Infinity; //#18849 + var _4R = $k[--$j]; //#18849 + var _4S = $k[--$j]; //#18849 + $k[$j++] = _4R; //#18849 + $k[$j++] = $get($_.TNvals, $_.sft1); //#18849 + $k[$j++] = _4S; //#18849 + var _4W = $a(); //#18849 + $k[$j++] = _4W; //#18849 + } //#18849 + var _4X = $_.T2vals; //#18850 + for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18850 + var _4Y = _4b.next().value; //#18850 + $k[$j++] = _4Y; //#18850 + $k[$j++] = _4X.get(_4Y); //#18850 + $k[$j++] = Infinity; //#18850 + var _4d = $k[--$j]; //#18850 + var _4e = $k[--$j]; //#18850 + $k[$j++] = _4d; //#18850 + $k[$j++] = $get($_.TNvals, $_.sft2); //#18850 + $k[$j++] = _4e; //#18850 + var _4i = $a(); //#18850 + $k[$j++] = _4i; //#18850 + } //#18850 + var _4j = $_.T3vals; //#18851 + for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18851 + var _4k = _4n.next().value; //#18851 + $k[$j++] = _4k; //#18851 + $k[$j++] = _4j.get(_4k); //#18851 + $k[$j++] = Infinity; //#18851 + var _4p = $k[--$j]; //#18851 + var _4q = $k[--$j]; //#18851 + $k[$j++] = _4p; //#18851 + $k[$j++] = $get($_.TNvals, $_.sft3); //#18851 + $k[$j++] = _4q; //#18851 + var _4u = $a(); //#18851 + $k[$j++] = _4u; //#18851 + } //#18851 + $_.Tvals = $d(); //#18852 + for (var _4w = 128; _4w <= 255; _4w += 1) { //#18860 + $_.i = _4w; //#18856 + $k[$j++] = $_.Avals; //#18857 + $k[$j++] = $_.i; //#18857 + $k[$j++] = Infinity; //#18857 + $aload($get($_.Avals, $_.usft)); //#18857 + $aload($get($_.Avals, $_.i - 128)); //#18857 + var _55 = $a(); //#18857 + var _56 = $k[--$j]; //#18857 + $put($k[--$j], _56, _55); //#18857 + $k[$j++] = $_.Cvals; //#18858 + $k[$j++] = $_.i; //#18858 + $k[$j++] = Infinity; //#18858 + $aload($get($_.Cvals, $_.usft)); //#18858 + $aload($get($_.Cvals, $_.i - 128)); //#18858 + var _5G = $a(); //#18858 + var _5H = $k[--$j]; //#18858 + $put($k[--$j], _5H, _5G); //#18858 + $k[$j++] = $_.Tvals; //#18859 + $k[$j++] = $_.i; //#18859 + $k[$j++] = Infinity; //#18859 + $aload($get($_.Tvals, $_.usft)); //#18859 + $aload($get($_.Tvals, $_.i - 128)); //#18859 + var _5R = $a(); //#18859 + var _5S = $k[--$j]; //#18859 + $put($k[--$j], _5S, _5R); //#18859 + } //#18859 + $k[$j++] = Infinity; //#18862 + $k[$j++] = 13; //#18867 + $k[$j++] = 0; //#18867 + $k[$j++] = 42; //#18867 + $k[$j++] = 1; //#18867 + $k[$j++] = 62; //#18867 + $k[$j++] = 2; //#18867 + $k[$j++] = 32; //#18867 + $k[$j++] = 3; //#18867 + for (var _5U = 48; _5U <= 57; _5U += 1) { //#18867 + $k[$j++] = _5U; //#18867 + $k[$j++] = _5U - 44; //#18867 + } //#18867 + for (var _5V = 65; _5V <= 90; _5V += 1) { //#18868 + $k[$j++] = _5V; //#18868 + $k[$j++] = _5V - 51; //#18868 + } //#18868 + $_.Xvals = $d(); //#18869 + $k[$j++] = Infinity; //#18870 + var _5X = $_.Xvals; //#18871 + for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18871 + var _5Y = _5b.next().value; //#18871 + $k[$j++] = _5Y; //#18871 + $k[$j++] = _5X.get(_5Y); //#18871 + $k[$j++] = Infinity; //#18871 + var _5d = $k[--$j]; //#18871 + var _5e = $k[--$j]; //#18871 + $k[$j++] = _5d; //#18871 + $k[$j++] = _5e; //#18871 + var _5f = $a(); //#18871 + $k[$j++] = _5f; //#18871 + } //#18871 + $_.Xvals = $d(); //#18872 + $k[$j++] = Infinity; //#18874 + for (var _5h = 64; _5h <= 94; _5h += 1) { //#18875 + $k[$j++] = _5h; //#18875 + $k[$j++] = _5h - 64; //#18875 + } //#18875 + $k[$j++] = $_.unl; //#18877 + $k[$j++] = 31; //#18877 + for (var _5j = 32; _5j <= 63; _5j += 1) { //#18877 + $k[$j++] = _5j; //#18877 + $k[$j++] = _5j; //#18877 + } //#18877 + $_.Evals = $d(); //#18878 + $k[$j++] = Infinity; //#18879 + var _5l = $_.Evals; //#18880 + for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18880 + var _5m = _5p.next().value; //#18880 + $k[$j++] = _5m; //#18880 + $k[$j++] = _5l.get(_5m); //#18880 + $k[$j++] = Infinity; //#18880 + var _5r = $k[--$j]; //#18880 + var _5s = $k[--$j]; //#18880 + $k[$j++] = _5r; //#18880 + $k[$j++] = _5s; //#18880 + var _5t = $a(); //#18880 + $k[$j++] = _5t; //#18880 + } //#18880 + $_.Evals = $d(); //#18881 + $k[$j++] = Infinity; //#18883 + for (var _5v = 0; _5v <= 255; _5v += 1) { //#18884 + $k[$j++] = _5v; //#18884 + $k[$j++] = _5v; //#18884 + } //#18884 + $_.Bvals = $d(); //#18885 + $k[$j++] = Infinity; //#18886 + var _5x = $_.Bvals; //#18887 + for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18887 + var _5y = _61.next().value; //#18887 + $k[$j++] = _5y; //#18887 + $k[$j++] = _5x.get(_5y); //#18887 + $k[$j++] = Infinity; //#18887 + var _63 = $k[--$j]; //#18887 + var _64 = $k[--$j]; //#18887 + $k[$j++] = _63; //#18887 + $k[$j++] = _64; //#18887 + var _65 = $a(); //#18887 + $k[$j++] = _65; //#18887 + } //#18887 + $_.Bvals = $d(); //#18888 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18890 + $_.A = 0; //#18892 + $_.C = 1; //#18892 + $_.T = 2; //#18892 + $_.X = 3; //#18892 + $_.E = 4; //#18892 + $_.B = 5; //#18892 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18892 + bwipp_datamatrix.__18893__ = 1; //#18892 + $_ = Object.getPrototypeOf($_); //#18892 + } //#18892 + if ($_.raw) { //#19297 + $_.cws = $a($_.barcode.length); //#18897 + $_.i = 0; //#18898 + $_.j = 0; //#18898 + for (;;) { //#18905 + if ($_.i == $_.barcode.length) { //#18900 + break; //#18900 + } //#18900 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18901 + $put($_.cws, $_.j, $_.cw); //#18902 + $_.i = $_.i + 4; //#18903 + $_.j = $_.j + 1; //#18904 + } //#18904 + $_.cws = $geti($_.cws, 0, $_.j); //#18906 + } else { //#19297 var _6Z = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["PROG", $_.prog] - ]); //#18638 - $_.fncvals = _6Z; //#18641 - $k[$j++] = 'msg'; //#18642 - $k[$j++] = $_.barcode; //#18642 - $k[$j++] = $_.fncvals; //#18642 - bwipp_parseinput(); //#18642 - var _6c = $k[--$j]; //#18642 - $_[$k[--$j]] = _6c; //#18642 - $_.msglen = $_.msg.length; //#18643 - if ($_.msglen >= 9) { //#18661 - $aload($geti($_.msg, 0, 7)); //#18647 - var _6i = $k[--$j]; //#18648 - var _6j = $k[--$j]; //#18648 - $k[$j++] = _6i == 29; //#18648 - $k[$j++] = _6j; //#18648 - $j--; //#18648 - var _6k = $k[--$j]; //#18648 - var _6l = $k[--$j]; //#18648 - var _6m = $k[--$j]; //#18648 - var _6n = $k[--$j]; //#18649 - var _6o = $k[--$j]; //#18649 - var _6p = $k[--$j]; //#18649 - if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18660 - $aload($geti($_.msg, $_.msglen - 2, 2)); //#18650 - var _6t = $k[--$j]; //#18651 - var _6u = $k[--$j]; //#18651 - if ((_6t == 4) && (_6u == 30)) { //#18659 - if ($get($_.msg, 5) == 53) { //#18656 - $k[$j++] = Infinity; //#18653 - $k[$j++] = $_.m05; //#18653 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18653 - $_.msg = $a(); //#18653 - } else { //#18656 - if ($get($_.msg, 5) == 54) { //#18657 - $k[$j++] = Infinity; //#18656 - $k[$j++] = $_.m06; //#18656 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18656 - $_.msg = $a(); //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - $_.msglen = $_.msg.length; //#18662 - $k[$j++] = Infinity; //#18664 - for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18664 - $k[$j++] = 0; //#18664 - } //#18664 - $k[$j++] = 0; //#18664 - $_.numD = $a(); //#18664 - $k[$j++] = Infinity; //#18665 - for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18665 - $k[$j++] = 0; //#18665 - } //#18665 - $k[$j++] = 9999; //#18665 - $_.nextXterm = $a(); //#18665 - $k[$j++] = Infinity; //#18666 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18666 - $k[$j++] = 0; //#18666 - } //#18666 - $k[$j++] = 9999; //#18666 - $_.nextNonX = $a(); //#18666 - $k[$j++] = Infinity; //#18667 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18667 - $k[$j++] = false; //#18667 - } //#18667 - $k[$j++] = false; //#18667 - $_.isECI = $a(); //#18667 - for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18685 - $_.i = _7R; //#18669 - $_.barchar = $get($_.msg, $_.i); //#18670 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18673 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18672 - } //#18672 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18677 - $put($_.nextXterm, $_.i, 0); //#18675 - } else { //#18677 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18677 - } //#18677 - var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18679 - if (!_7o) { //#18682 - $put($_.nextNonX, $_.i, 0); //#18680 - } else { //#18682 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18682 - } //#18682 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18684 - } //#18684 - $k[$j++] = Infinity; //#18686 - var _7z = $_.nextXterm; //#18686 - for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18686 - var _82 = $get(_7z, _80); //#18686 - $k[$j++] = _82; //#18686 - if (_82 > 10000) { //#18686 - $j--; //#18686 - $k[$j++] = 10000; //#18686 - } //#18686 - } //#18686 - $_.nextXterm = $a(); //#18686 - $k[$j++] = Infinity; //#18687 - var _84 = $_.nextNonX; //#18687 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18687 - var _87 = $get(_84, _85); //#18687 - $k[$j++] = _87; //#18687 - if (_87 > 10000) { //#18687 - $j--; //#18687 - $k[$j++] = 10000; //#18687 - } //#18687 - } //#18687 - $_.nextNonX = $a(); //#18687 + ]); //#18916 + $_.fncvals = _6Z; //#18919 + $k[$j++] = 'msg'; //#18920 + $k[$j++] = $_.barcode; //#18920 + $k[$j++] = $_.fncvals; //#18920 + bwipp_parseinput(); //#18920 + var _6c = $k[--$j]; //#18920 + $_[$k[--$j]] = _6c; //#18920 + $_.msglen = $_.msg.length; //#18921 + if ($_.msglen >= 9) { //#18939 + $aload($geti($_.msg, 0, 7)); //#18925 + var _6i = $k[--$j]; //#18926 + var _6j = $k[--$j]; //#18926 + $k[$j++] = _6i == 29; //#18926 + $k[$j++] = _6j; //#18926 + $j--; //#18926 + var _6k = $k[--$j]; //#18926 + var _6l = $k[--$j]; //#18926 + var _6m = $k[--$j]; //#18926 + var _6n = $k[--$j]; //#18927 + var _6o = $k[--$j]; //#18927 + var _6p = $k[--$j]; //#18927 + if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18938 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#18928 + var _6t = $k[--$j]; //#18929 + var _6u = $k[--$j]; //#18929 + if ((_6t == 4) && (_6u == 30)) { //#18937 + if ($get($_.msg, 5) == 53) { //#18934 + $k[$j++] = Infinity; //#18931 + $k[$j++] = $_.m05; //#18931 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18931 + $_.msg = $a(); //#18931 + } else { //#18934 + if ($get($_.msg, 5) == 54) { //#18935 + $k[$j++] = Infinity; //#18934 + $k[$j++] = $_.m06; //#18934 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18934 + $_.msg = $a(); //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + $_.msglen = $_.msg.length; //#18940 + $k[$j++] = Infinity; //#18942 + for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18942 + $k[$j++] = 0; //#18942 + } //#18942 + $k[$j++] = 0; //#18942 + $_.numD = $a(); //#18942 + $k[$j++] = Infinity; //#18943 + for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18943 + $k[$j++] = 0; //#18943 + } //#18943 + $k[$j++] = 9999; //#18943 + $_.nextXterm = $a(); //#18943 + $k[$j++] = Infinity; //#18944 + for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $k[$j++] = 9999; //#18944 + $_.nextNonX = $a(); //#18944 + $k[$j++] = Infinity; //#18945 + for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18945 + $k[$j++] = false; //#18945 + } //#18945 + $k[$j++] = false; //#18945 + $_.isECI = $a(); //#18945 + for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18963 + $_.i = _7R; //#18947 + $_.barchar = $get($_.msg, $_.i); //#18948 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18951 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18950 + } //#18950 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18955 + $put($_.nextXterm, $_.i, 0); //#18953 + } else { //#18955 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18955 + } //#18955 + var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18957 + if (!_7o) { //#18960 + $put($_.nextNonX, $_.i, 0); //#18958 + } else { //#18960 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18960 + } //#18960 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18962 + } //#18962 + $k[$j++] = Infinity; //#18964 + var _7z = $_.nextXterm; //#18964 + for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18964 + var _82 = $get(_7z, _80); //#18964 + $k[$j++] = _82; //#18964 + if (_82 > 10000) { //#18964 + $j--; //#18964 + $k[$j++] = 10000; //#18964 + } //#18964 + } //#18964 + $_.nextXterm = $a(); //#18964 + $k[$j++] = Infinity; //#18965 + var _84 = $_.nextNonX; //#18965 + for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18965 + var _87 = $get(_84, _85); //#18965 + $k[$j++] = _87; //#18965 + if (_87 > 10000) { //#18965 + $j--; //#18965 + $k[$j++] = 10000; //#18965 + } //#18965 + } //#18965 + $_.nextNonX = $a(); //#18965 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18689 - }; //#18689 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18967 + }; //#18967 $_.isC = function() { - var _8D = $get($_.CNvals, $_.char) !== undefined; //#18690 - $k[$j++] = _8D; //#18690 - }; //#18690 + var _8D = $get($_.CNvals, $_.char) !== undefined; //#18968 + $k[$j++] = _8D; //#18968 + }; //#18968 $_.isT = function() { - var _8G = $get($_.TNvals, $_.char) !== undefined; //#18691 - $k[$j++] = _8G; //#18691 - }; //#18691 + var _8G = $get($_.TNvals, $_.char) !== undefined; //#18969 + $k[$j++] = _8G; //#18969 + }; //#18969 $_.isX = function() { - var _8J = $get($_.Xvals, $_.char) !== undefined; //#18692 - $k[$j++] = _8J; //#18692 - }; //#18692 + var _8J = $get($_.Xvals, $_.char) !== undefined; //#18970 + $k[$j++] = _8J; //#18970 + }; //#18970 $_.isE = function() { - var _8M = $get($_.Evals, $_.char) !== undefined; //#18693 - $k[$j++] = _8M; //#18693 - }; //#18693 + var _8M = $get($_.Evals, $_.char) !== undefined; //#18971 + $k[$j++] = _8M; //#18971 + }; //#18971 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#18694 - }; //#18694 + $k[$j++] = $_.char > 127; //#18972 + }; //#18972 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#18695 - }; //#18695 + $k[$j++] = $_.char < 0; //#18973 + }; //#18973 $_.XtermFirst = function() { - var _8P = $k[--$j]; //#18696 - $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18696 - }; //#18696 + var _8P = $k[--$j]; //#18974 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18974 + }; //#18974 $_.lookup = function() { - $_.ac = 1; //#18700 - $_.cc = 2; //#18700 - $_.tc = 2; //#18700 - $_.xc = 2; //#18700 - $_.ec = 2; //#18700 - $_.bc = 2.25; //#18700 - if ($_.mode == $_.A) { //#18701 - $_.ac = 0; //#18701 - $_.cc = 1; //#18701 - $_.tc = 1; //#18701 - $_.xc = 1; //#18701 - $_.ec = 1; //#18701 - $_.bc = 1.25; //#18701 - } //#18701 - if ($_.mode == $_.C) { //#18702 - $_.cc = 0; //#18702 - } //#18702 - if ($_.mode == $_.T) { //#18703 - $_.tc = 0; //#18703 - } //#18703 - if ($_.mode == $_.X) { //#18704 - $_.xc = 0; //#18704 - } //#18704 - if ($_.mode == $_.E) { //#18705 - $_.ec = 0; //#18705 - } //#18705 - if ($_.mode == $_.B) { //#18706 - $_.bc = 0; //#18706 - } //#18706 - for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#18741 - if ($get($_.isECI, $_.i)) { //#18708 - $k[$j++] = $_.A; //#18708 - break; //#18708 - } //#18708 - if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18709 - $k[$j++] = $_.C; //#18709 - break; //#18709 - } //#18709 - $_.k = 0; //#18710 - for (;;) { //#18740 - if (($_.i + $_.k) == $_.msglen) { //#18719 - var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18712 - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18712 - var _8w = $get(_8t, _8u); //#18712 - $_[_8w] = Math.ceil($_[_8w]); //#18712 - } //#18712 - var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18713 - $k[$j++] = true; //#18713 - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18713 - var _98 = $k[--$j]; //#18713 - $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18713 - } //#18713 - if ($k[--$j]) { //#18713 - $k[$j++] = $_.A; //#18713 - break; //#18713 - } //#18713 - var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18714 - $k[$j++] = true; //#18714 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18714 - var _9L = $k[--$j]; //#18714 - $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18714 - } //#18714 - if ($k[--$j]) { //#18714 - $k[$j++] = $_.B; //#18714 - break; //#18714 - } //#18714 - var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18715 - $k[$j++] = true; //#18715 - for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18715 - var _9Y = $k[--$j]; //#18715 - $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18715 - } //#18715 - if ($k[--$j]) { //#18715 - $k[$j++] = $_.E; //#18715 - break; //#18715 - } //#18715 - var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18716 - $k[$j++] = true; //#18716 - for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18716 - var _9l = $k[--$j]; //#18716 - $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18716 - } //#18716 - if ($k[--$j]) { //#18716 - $k[$j++] = $_.T; //#18716 - break; //#18716 - } //#18716 - var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18717 - $k[$j++] = true; //#18717 - for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18717 - var _9y = $k[--$j]; //#18717 - $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18717 - } //#18717 - if ($k[--$j]) { //#18717 - $k[$j++] = $_.X; //#18717 - break; //#18717 - } //#18717 - $k[$j++] = $_.C; //#18718 - break; //#18718 - } //#18718 - $_.char = $get($_.msg, $_.i + $_.k); //#18720 - $k[$j++] = 'ac'; //#18721 - $k[$j++] = $_.ac; //#18721 - $_.isD(); //#18721 - if ($k[--$j]) { //#18721 - var _A8 = $k[--$j]; //#18721 - $k[$j++] = $f(_A8 + (1 / 2)); //#18721 - } else { //#18721 - $_.isEA(); //#18721 - if ($k[--$j]) { //#18721 - var _AA = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AA) + 2; //#18721 - } else { //#18721 - var _AB = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AB) + 1; //#18721 - } //#18721 - } //#18721 - var _AC = $k[--$j]; //#18721 - $_[$k[--$j]] = _AC; //#18721 - $k[$j++] = 'cc'; //#18722 - $k[$j++] = $_.cc; //#18722 - $_.isC(); //#18722 - if ($k[--$j]) { //#18722 - var _AG = $k[--$j]; //#18722 - $k[$j++] = $f(_AG + 0.6666667); //#18722 - } else { //#18722 - $_.isEA(); //#18722 - if ($k[--$j]) { //#18722 - var _AI = $k[--$j]; //#18722 - $k[$j++] = $f(_AI + 2.6666667); //#18722 - } else { //#18722 - var _AJ = $k[--$j]; //#18722 - $k[$j++] = $f(_AJ + 1.3333334); //#18722 - } //#18722 - } //#18722 - var _AK = $k[--$j]; //#18722 - $_[$k[--$j]] = _AK; //#18722 - $k[$j++] = 'tc'; //#18723 - $k[$j++] = $_.tc; //#18723 - $_.isT(); //#18723 - if ($k[--$j]) { //#18723 - var _AO = $k[--$j]; //#18723 - $k[$j++] = $f(_AO + 0.6666667); //#18723 - } else { //#18723 - $_.isEA(); //#18723 - if ($k[--$j]) { //#18723 - var _AQ = $k[--$j]; //#18723 - $k[$j++] = $f(_AQ + 2.6666667); //#18723 - } else { //#18723 - var _AR = $k[--$j]; //#18723 - $k[$j++] = $f(_AR + 1.3333334); //#18723 - } //#18723 - } //#18723 - var _AS = $k[--$j]; //#18723 - $_[$k[--$j]] = _AS; //#18723 - $k[$j++] = 'xc'; //#18724 - $k[$j++] = $_.xc; //#18724 - $_.isX(); //#18724 - if ($k[--$j]) { //#18724 - var _AW = $k[--$j]; //#18724 - $k[$j++] = $f(_AW + 0.6666667); //#18724 - } else { //#18724 - $_.isEA(); //#18724 - if ($k[--$j]) { //#18724 - var _AY = $k[--$j]; //#18724 - $k[$j++] = $f(_AY + 4.3333334); //#18724 - } else { //#18724 - var _AZ = $k[--$j]; //#18724 - $k[$j++] = $f(_AZ + 3.3333334); //#18724 - } //#18724 - } //#18724 - var _Aa = $k[--$j]; //#18724 - $_[$k[--$j]] = _Aa; //#18724 - $k[$j++] = 'ec'; //#18725 - $k[$j++] = $_.ec; //#18725 - $_.isE(); //#18725 - if ($k[--$j]) { //#18725 - var _Ae = $k[--$j]; //#18725 - $k[$j++] = $f(_Ae + (3 / 4)); //#18725 - } else { //#18725 - $_.isEA(); //#18725 - if ($k[--$j]) { //#18725 - var _Ag = $k[--$j]; //#18725 - $k[$j++] = $f(_Ag + (17 / 4)); //#18725 - } else { //#18725 - var _Ah = $k[--$j]; //#18725 - $k[$j++] = $f(_Ah + (13 / 4)); //#18725 - } //#18725 - } //#18725 - var _Ai = $k[--$j]; //#18725 - $_[$k[--$j]] = _Ai; //#18725 - $k[$j++] = 'bc'; //#18726 - $k[$j++] = $_.bc; //#18726 - $_.isFN(); //#18726 - if ($k[--$j]) { //#18726 - var _Am = $k[--$j]; //#18726 - $k[$j++] = $f(_Am + 4); //#18726 - } else { //#18726 - var _An = $k[--$j]; //#18726 - $k[$j++] = $f(_An + 1); //#18726 - } //#18726 - var _Ao = $k[--$j]; //#18726 - $_[$k[--$j]] = _Ao; //#18726 - if ($_.k >= 4) { //#18738 - var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18728 - $k[$j++] = true; //#18728 - for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#18728 - var _B1 = $k[--$j]; //#18728 - $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#18728 - } //#18728 - if ($k[--$j]) { //#18728 - $k[$j++] = $_.A; //#18728 - break; //#18728 - } //#18728 - if (($_.bc + 1) <= $_.ac) { //#18729 - $k[$j++] = $_.B; //#18729 - break; //#18729 - } //#18729 - var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#18730 - $k[$j++] = true; //#18730 - for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#18730 - var _BG = $k[--$j]; //#18730 - $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#18730 - } //#18730 - if ($k[--$j]) { //#18730 - $k[$j++] = $_.B; //#18730 - break; //#18730 - } //#18730 - var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18731 - $k[$j++] = true; //#18731 - for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#18731 - var _BT = $k[--$j]; //#18731 - $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#18731 - } //#18731 - if ($k[--$j]) { //#18731 - $k[$j++] = $_.E; //#18731 - break; //#18731 - } //#18731 - var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18732 - $k[$j++] = true; //#18732 - for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#18732 - var _Bg = $k[--$j]; //#18732 - $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#18732 - } //#18732 - if ($k[--$j]) { //#18732 - $k[$j++] = $_.T; //#18732 - break; //#18732 - } //#18732 - var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18733 - $k[$j++] = true; //#18733 - for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#18733 - var _Bt = $k[--$j]; //#18733 - $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#18733 - } //#18733 - if ($k[--$j]) { //#18733 - $k[$j++] = $_.X; //#18733 - break; //#18733 - } //#18733 - var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#18734 - $k[$j++] = true; //#18734 - for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#18734 - var _C5 = $k[--$j]; //#18734 - $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#18734 - } //#18734 - if ($k[--$j]) { //#18737 - if ($_.cc < $_.xc) { //#18735 - $k[$j++] = $_.C; //#18735 - break; //#18735 - } //#18735 - if ($_.cc == $_.xc) { //#18736 - $k[$j++] = ($_.i + $_.k) + 1; //#18736 - $_.XtermFirst(); //#18736 - if ($k[--$j]) { //#18736 - $k[$j++] = $_.X; //#18736 - break; //#18736 - } else { //#18736 - $k[$j++] = $_.C; //#18736 - break; //#18736 - } //#18736 - } //#18736 - } //#18736 - } //#18736 - $_.k = $_.k + 1; //#18739 - } //#18739 - } //#18739 - }; //#18739 + $_.ac = 1; //#18978 + $_.cc = 2; //#18978 + $_.tc = 2; //#18978 + $_.xc = 2; //#18978 + $_.ec = 2; //#18978 + $_.bc = 2.25; //#18978 + if ($_.mode == $_.A) { //#18979 + $_.ac = 0; //#18979 + $_.cc = 1; //#18979 + $_.tc = 1; //#18979 + $_.xc = 1; //#18979 + $_.ec = 1; //#18979 + $_.bc = 1.25; //#18979 + } //#18979 + if ($_.mode == $_.C) { //#18980 + $_.cc = 0; //#18980 + } //#18980 + if ($_.mode == $_.T) { //#18981 + $_.tc = 0; //#18981 + } //#18981 + if ($_.mode == $_.X) { //#18982 + $_.xc = 0; //#18982 + } //#18982 + if ($_.mode == $_.E) { //#18983 + $_.ec = 0; //#18983 + } //#18983 + if ($_.mode == $_.B) { //#18984 + $_.bc = 0; //#18984 + } //#18984 + for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#19019 + if ($get($_.isECI, $_.i)) { //#18986 + $k[$j++] = $_.A; //#18986 + break; //#18986 + } //#18986 + if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18987 + $k[$j++] = $_.C; //#18987 + break; //#18987 + } //#18987 + $_.k = 0; //#18988 + for (;;) { //#19018 + if (($_.i + $_.k) == $_.msglen) { //#18997 + var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18990 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18990 + var _8w = $get(_8t, _8u); //#18990 + $_[_8w] = Math.ceil($_[_8w]); //#18990 + } //#18990 + var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18991 + $k[$j++] = true; //#18991 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18991 + var _98 = $k[--$j]; //#18991 + $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18991 + } //#18991 + if ($k[--$j]) { //#18991 + $k[$j++] = $_.A; //#18991 + break; //#18991 + } //#18991 + var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18992 + $k[$j++] = true; //#18992 + for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18992 + var _9L = $k[--$j]; //#18992 + $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18992 + } //#18992 + if ($k[--$j]) { //#18992 + $k[$j++] = $_.B; //#18992 + break; //#18992 + } //#18992 + var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18993 + $k[$j++] = true; //#18993 + for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18993 + var _9Y = $k[--$j]; //#18993 + $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18993 + } //#18993 + if ($k[--$j]) { //#18993 + $k[$j++] = $_.E; //#18993 + break; //#18993 + } //#18993 + var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18994 + $k[$j++] = true; //#18994 + for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18994 + var _9l = $k[--$j]; //#18994 + $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18994 + } //#18994 + if ($k[--$j]) { //#18994 + $k[$j++] = $_.T; //#18994 + break; //#18994 + } //#18994 + var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18995 + $k[$j++] = true; //#18995 + for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18995 + var _9y = $k[--$j]; //#18995 + $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18995 + } //#18995 + if ($k[--$j]) { //#18995 + $k[$j++] = $_.X; //#18995 + break; //#18995 + } //#18995 + $k[$j++] = $_.C; //#18996 + break; //#18996 + } //#18996 + $_.char = $get($_.msg, $_.i + $_.k); //#18998 + $k[$j++] = 'ac'; //#18999 + $k[$j++] = $_.ac; //#18999 + $_.isD(); //#18999 + if ($k[--$j]) { //#18999 + var _A8 = $k[--$j]; //#18999 + $k[$j++] = $f(_A8 + (1 / 2)); //#18999 + } else { //#18999 + $_.isEA(); //#18999 + if ($k[--$j]) { //#18999 + var _AA = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AA) + 2; //#18999 + } else { //#18999 + var _AB = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AB) + 1; //#18999 + } //#18999 + } //#18999 + var _AC = $k[--$j]; //#18999 + $_[$k[--$j]] = _AC; //#18999 + $k[$j++] = 'cc'; //#19000 + $k[$j++] = $_.cc; //#19000 + $_.isC(); //#19000 + if ($k[--$j]) { //#19000 + var _AG = $k[--$j]; //#19000 + $k[$j++] = $f(_AG + 0.6666667); //#19000 + } else { //#19000 + $_.isEA(); //#19000 + if ($k[--$j]) { //#19000 + var _AI = $k[--$j]; //#19000 + $k[$j++] = $f(_AI + 2.6666667); //#19000 + } else { //#19000 + var _AJ = $k[--$j]; //#19000 + $k[$j++] = $f(_AJ + 1.3333334); //#19000 + } //#19000 + } //#19000 + var _AK = $k[--$j]; //#19000 + $_[$k[--$j]] = _AK; //#19000 + $k[$j++] = 'tc'; //#19001 + $k[$j++] = $_.tc; //#19001 + $_.isT(); //#19001 + if ($k[--$j]) { //#19001 + var _AO = $k[--$j]; //#19001 + $k[$j++] = $f(_AO + 0.6666667); //#19001 + } else { //#19001 + $_.isEA(); //#19001 + if ($k[--$j]) { //#19001 + var _AQ = $k[--$j]; //#19001 + $k[$j++] = $f(_AQ + 2.6666667); //#19001 + } else { //#19001 + var _AR = $k[--$j]; //#19001 + $k[$j++] = $f(_AR + 1.3333334); //#19001 + } //#19001 + } //#19001 + var _AS = $k[--$j]; //#19001 + $_[$k[--$j]] = _AS; //#19001 + $k[$j++] = 'xc'; //#19002 + $k[$j++] = $_.xc; //#19002 + $_.isX(); //#19002 + if ($k[--$j]) { //#19002 + var _AW = $k[--$j]; //#19002 + $k[$j++] = $f(_AW + 0.6666667); //#19002 + } else { //#19002 + $_.isEA(); //#19002 + if ($k[--$j]) { //#19002 + var _AY = $k[--$j]; //#19002 + $k[$j++] = $f(_AY + 4.3333334); //#19002 + } else { //#19002 + var _AZ = $k[--$j]; //#19002 + $k[$j++] = $f(_AZ + 3.3333334); //#19002 + } //#19002 + } //#19002 + var _Aa = $k[--$j]; //#19002 + $_[$k[--$j]] = _Aa; //#19002 + $k[$j++] = 'ec'; //#19003 + $k[$j++] = $_.ec; //#19003 + $_.isE(); //#19003 + if ($k[--$j]) { //#19003 + var _Ae = $k[--$j]; //#19003 + $k[$j++] = $f(_Ae + (3 / 4)); //#19003 + } else { //#19003 + $_.isEA(); //#19003 + if ($k[--$j]) { //#19003 + var _Ag = $k[--$j]; //#19003 + $k[$j++] = $f(_Ag + (17 / 4)); //#19003 + } else { //#19003 + var _Ah = $k[--$j]; //#19003 + $k[$j++] = $f(_Ah + (13 / 4)); //#19003 + } //#19003 + } //#19003 + var _Ai = $k[--$j]; //#19003 + $_[$k[--$j]] = _Ai; //#19003 + $k[$j++] = 'bc'; //#19004 + $k[$j++] = $_.bc; //#19004 + $_.isFN(); //#19004 + if ($k[--$j]) { //#19004 + var _Am = $k[--$j]; //#19004 + $k[$j++] = $f(_Am + 4); //#19004 + } else { //#19004 + var _An = $k[--$j]; //#19004 + $k[$j++] = $f(_An + 1); //#19004 + } //#19004 + var _Ao = $k[--$j]; //#19004 + $_[$k[--$j]] = _Ao; //#19004 + if ($_.k >= 4) { //#19016 + var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#19006 + $k[$j++] = true; //#19006 + for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#19006 + var _B1 = $k[--$j]; //#19006 + $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#19006 + } //#19006 + if ($k[--$j]) { //#19006 + $k[$j++] = $_.A; //#19006 + break; //#19006 + } //#19006 + if (($_.bc + 1) <= $_.ac) { //#19007 + $k[$j++] = $_.B; //#19007 + break; //#19007 + } //#19007 + var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#19008 + $k[$j++] = true; //#19008 + for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#19008 + var _BG = $k[--$j]; //#19008 + $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#19008 + } //#19008 + if ($k[--$j]) { //#19008 + $k[$j++] = $_.B; //#19008 + break; //#19008 + } //#19008 + var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#19009 + $k[$j++] = true; //#19009 + for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#19009 + var _BT = $k[--$j]; //#19009 + $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#19009 + } //#19009 + if ($k[--$j]) { //#19009 + $k[$j++] = $_.E; //#19009 + break; //#19009 + } //#19009 + var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#19010 + $k[$j++] = true; //#19010 + for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#19010 + var _Bg = $k[--$j]; //#19010 + $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#19010 + } //#19010 + if ($k[--$j]) { //#19010 + $k[$j++] = $_.T; //#19010 + break; //#19010 + } //#19010 + var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#19011 + $k[$j++] = true; //#19011 + for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#19011 + var _Bt = $k[--$j]; //#19011 + $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#19011 + } //#19011 + if ($k[--$j]) { //#19011 + $k[$j++] = $_.X; //#19011 + break; //#19011 + } //#19011 + var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#19012 + $k[$j++] = true; //#19012 + for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#19012 + var _C5 = $k[--$j]; //#19012 + $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#19012 + } //#19012 + if ($k[--$j]) { //#19015 + if ($_.cc < $_.xc) { //#19013 + $k[$j++] = $_.C; //#19013 + break; //#19013 + } //#19013 + if ($_.cc == $_.xc) { //#19014 + $k[$j++] = ($_.i + $_.k) + 1; //#19014 + $_.XtermFirst(); //#19014 + if ($k[--$j]) { //#19014 + $k[$j++] = $_.X; //#19014 + break; //#19014 + } else { //#19014 + $k[$j++] = $_.C; //#19014 + break; //#19014 + } //#19014 + } //#19014 + } //#19014 + } //#19014 + $_.k = $_.k + 1; //#19017 + } //#19017 + } //#19017 + }; //#19017 $_.addtocws = function() { - var _CI = $k[--$j]; //#18745 - $puti($_.cws, $_.j, _CI); //#18745 - $_.j = _CI.length + $_.j; //#18746 - }; //#18746 + var _CI = $k[--$j]; //#19023 + $puti($_.cws, $_.j, _CI); //#19023 + $_.j = _CI.length + $_.j; //#19024 + }; //#19024 $_.ECItocws = function() { - var _CN = $f((-$k[--$j]) - 1000000); //#18751 - $k[$j++] = _CN; //#18765 - if (_CN <= 126) { //#18764 - var _CO = $k[--$j]; //#18752 - $k[$j++] = $f(_CO + 1); //#18753 - $astore($a(1)); //#18753 - } else { //#18764 - var _CQ = $k[--$j]; //#18754 - $k[$j++] = _CQ; //#18765 - if (_CQ <= 16382) { //#18764 - var _CS = $f($k[--$j] - 127); //#18756 - $k[$j++] = (~~(_CS / 254)) + 128; //#18758 - $k[$j++] = $f((_CS % 254) + 1); //#18758 - $astore($a(2)); //#18758 - } else { //#18764 - var _CV = $f($k[--$j] - 16383); //#18761 - $k[$j++] = (~~(_CV / 64516)) + 192; //#18764 - $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#18764 - $k[$j++] = $f((_CV % 254) + 1); //#18764 - $astore($a(3)); //#18764 - } //#18764 - } //#18764 - }; //#18764 + var _CN = $f((-$k[--$j]) - 1000000); //#19029 + $k[$j++] = _CN; //#19043 + if (_CN <= 126) { //#19042 + var _CO = $k[--$j]; //#19030 + $k[$j++] = $f(_CO + 1); //#19031 + $astore($a(1)); //#19031 + } else { //#19042 + var _CQ = $k[--$j]; //#19032 + $k[$j++] = _CQ; //#19043 + if (_CQ <= 16382) { //#19042 + var _CS = $f($k[--$j] - 127); //#19034 + $k[$j++] = (~~(_CS / 254)) + 128; //#19036 + $k[$j++] = $f((_CS % 254) + 1); //#19036 + $astore($a(2)); //#19036 + } else { //#19042 + var _CV = $f($k[--$j] - 16383); //#19039 + $k[$j++] = (~~(_CV / 64516)) + 192; //#19042 + $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#19042 + $k[$j++] = $f((_CV % 254) + 1); //#19042 + $astore($a(3)); //#19042 + } //#19042 + } //#19042 + }; //#19042 $_.encA = function() { - for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#18790 - if ($get($_.isECI, $_.i)) { //#18775 - $k[$j++] = $get($_.Avals, $_.eci); //#18771 - $_.addtocws(); //#18771 - $k[$j++] = $get($_.msg, $_.i); //#18772 - $_.ECItocws(); //#18772 - $_.addtocws(); //#18772 - $_.i = $_.i + 1; //#18773 - break; //#18774 - } //#18774 - if ($get($_.numD, $_.i) >= 2) { //#18780 - var _Cm = $s(2); //#18777 - $put(_Cm, 0, $get($_.msg, $_.i)); //#18777 - $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#18777 - $k[$j++] = $get($_.Avals, _Cm); //#18777 - $_.addtocws(); //#18777 - $_.i = $_.i + 2; //#18778 - break; //#18779 - } //#18779 - $k[$j++] = 'newmode'; //#18781 - $_.lookup(); //#18781 - var _Cw = $k[--$j]; //#18781 - $_[$k[--$j]] = _Cw; //#18781 - if ($_.newmode != $_.mode) { //#18786 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18783 - $_.addtocws(); //#18783 - $_.mode = $_.newmode; //#18784 - break; //#18785 - } //#18785 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18787 - $_.addtocws(); //#18787 - $_.i = $_.i + 1; //#18788 - break; //#18789 - } //#18789 - }; //#18789 + for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#19068 + if ($get($_.isECI, $_.i)) { //#19053 + $k[$j++] = $get($_.Avals, $_.eci); //#19049 + $_.addtocws(); //#19049 + $k[$j++] = $get($_.msg, $_.i); //#19050 + $_.ECItocws(); //#19050 + $_.addtocws(); //#19050 + $_.i = $_.i + 1; //#19051 + break; //#19052 + } //#19052 + if ($get($_.numD, $_.i) >= 2) { //#19058 + var _Cm = $s(2); //#19055 + $put(_Cm, 0, $get($_.msg, $_.i)); //#19055 + $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#19055 + $k[$j++] = $get($_.Avals, _Cm); //#19055 + $_.addtocws(); //#19055 + $_.i = $_.i + 2; //#19056 + break; //#19057 + } //#19057 + $k[$j++] = 'newmode'; //#19059 + $_.lookup(); //#19059 + var _Cw = $k[--$j]; //#19059 + $_[$k[--$j]] = _Cw; //#19059 + if ($_.newmode != $_.mode) { //#19064 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19061 + $_.addtocws(); //#19061 + $_.mode = $_.newmode; //#19062 + break; //#19063 + } //#19063 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19065 + $_.addtocws(); //#19065 + $_.i = $_.i + 1; //#19066 + break; //#19067 + } //#19067 + }; //#19067 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#18794 - $k[$j++] = Infinity; //#18795 - for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#18799 - var _DM = $geti($_.in, _DK, 3); //#18797 - $k[$j++] = 0; //#18797 - for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#18797 - var _DQ = $k[--$j]; //#18797 - $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#18797 - } //#18797 - var _DS = (~~($k[--$j] / 40)) + 1; //#18798 - $k[$j++] = ~~(_DS / 256); //#18798 - $k[$j++] = _DS % 256; //#18798 - } //#18798 - $astore($a($counttomark())); //#18800 - var _DV = $k[--$j]; //#18800 - var _DW = $k[--$j]; //#18800 - $k[$j++] = _DV; //#18800 - $k[$j++] = _DW; //#18800 - $j--; //#18800 - }; //#18800 + $_.in = $k[--$j]; //#19072 + $k[$j++] = Infinity; //#19073 + for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#19077 + var _DM = $geti($_.in, _DK, 3); //#19075 + $k[$j++] = 0; //#19075 + for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#19075 + var _DQ = $k[--$j]; //#19075 + $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#19075 + } //#19075 + var _DS = (~~($k[--$j] / 40)) + 1; //#19076 + $k[$j++] = ~~(_DS / 256); //#19076 + $k[$j++] = _DS % 256; //#19076 + } //#19076 + $astore($a($counttomark())); //#19078 + var _DV = $k[--$j]; //#19078 + var _DW = $k[--$j]; //#19078 + $k[$j++] = _DV; //#19078 + $k[$j++] = _DW; //#19078 + $j--; //#19078 + }; //#19078 $_.encCTX = function() { - $_.p = 0; //#18804 - $_.ctxvals = $a(2500); //#18805 - $_.done = false; //#18806 - for (;;) { //#18885 - if ($_.i == $_.msglen) { //#18810 - break; //#18810 - } //#18810 - var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#18811 - if (!_Dg) { //#18811 - break; //#18811 - } //#18811 - if (($_.p % 3) == 0) { //#18880 - if ($_.p > 0) { //#18825 - $k[$j++] = 'newmode'; //#18814 - $_.lookup(); //#18814 - var _Dj = $k[--$j]; //#18814 - $_[$k[--$j]] = _Dj; //#18814 - if ($ne($_.newmode, $_.mode)) { //#18824 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18816 - $_.CTXvalstocws(); //#18816 - $_.addtocws(); //#18816 - $k[$j++] = $a([$_.unlcw]); //#18817 - $_.addtocws(); //#18817 - if ($_.newmode != $_.A) { //#18820 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18819 - $_.addtocws(); //#18819 - } //#18819 - $_.mode = $_.newmode; //#18821 - $_.done = true; //#18822 - break; //#18823 - } //#18823 - } //#18823 - if (($_.msglen - $_.i) <= 3) { //#18879 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#18827 - $k[$j++] = Infinity; //#18833 - var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18829 - for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#18835 - var _EI = $get(_EF, _EG); //#18835 - var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#18830 - $k[$j++] = _EI; //#18834 - if (_EM) { //#18833 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#18831 - } else { //#18833 - $j--; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - } //#18833 - } //#18833 - $_.remvals = $a(); //#18833 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#18847 - $k[$j++] = Infinity; //#18841 - $aload($geti($_.ctxvals, 0, $_.p)); //#18840 - $aload($_.remvals); //#18841 - var _EZ = $a(); //#18841 - $k[$j++] = _EZ; //#18842 - $_.CTXvalstocws(); //#18842 - $_.addtocws(); //#18842 - $_.mode = $_.A; //#18843 - $_.i = $_.msglen; //#18844 - $_.done = true; //#18845 - break; //#18846 - } //#18846 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#18859 - $k[$j++] = Infinity; //#18853 - $aload($geti($_.ctxvals, 0, $_.p)); //#18851 - $aload($_.remvals); //#18852 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#18853 - var _Ep = $a(); //#18853 - $k[$j++] = _Ep; //#18854 - $_.CTXvalstocws(); //#18854 - $_.addtocws(); //#18854 - $_.mode = $_.A; //#18855 - $_.i = $_.msglen; //#18856 - $_.done = true; //#18857 - break; //#18858 - } //#18858 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#18869 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18862 - $_.CTXvalstocws(); //#18862 - $_.addtocws(); //#18862 - $k[$j++] = $a([$_.unlcw]); //#18863 - $_.addtocws(); //#18863 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18864 - $_.addtocws(); //#18864 - $_.mode = $_.A; //#18865 - $_.i = $_.msglen; //#18866 - $_.done = true; //#18867 - break; //#18868 - } //#18868 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#18878 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18872 - $_.CTXvalstocws(); //#18872 - $_.addtocws(); //#18872 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18873 - $_.addtocws(); //#18873 - $_.mode = $_.A; //#18874 - $_.i = $_.msglen; //#18875 - $_.done = true; //#18876 - break; //#18877 - } //#18877 - } //#18877 - } //#18877 - var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#18881 - $puti($_.ctxvals, $_.p, _FO); //#18882 - $_.p = _FO.length + $_.p; //#18883 - $_.i = $_.i + 1; //#18884 - } //#18884 - if (!$_.done) { //#18909 - for (;;) { //#18893 - if (($_.p % 3) == 0) { //#18890 - break; //#18890 - } //#18890 - $_.i = $_.i - 1; //#18891 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#18892 - } //#18892 - $k[$j++] = Infinity; //#18895 - $aload($geti($_.ctxvals, 0, $_.p)); //#18895 - var _Fh = $a(); //#18895 - $k[$j++] = _Fh; //#18896 - $_.CTXvalstocws(); //#18896 - $_.addtocws(); //#18896 - $k[$j++] = $a([$_.unlcw]); //#18897 - $_.addtocws(); //#18897 - $_.mode = $_.A; //#18898 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18908 - if ($get($_.numD, $_.i) >= 2) { //#18906 - var _Ft = $s(2); //#18902 - $put(_Ft, 0, $get($_.msg, $_.i)); //#18902 - $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#18902 - $k[$j++] = $get($_.Avals, _Ft); //#18902 - $_.addtocws(); //#18902 - $_.i = $_.i + 2; //#18903 - } else { //#18906 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18905 - $_.addtocws(); //#18905 - $_.i = $_.i + 1; //#18906 - } //#18906 - } //#18906 - } //#18906 - }; //#18906 + $_.p = 0; //#19082 + $_.ctxvals = $a(2500); //#19083 + $_.done = false; //#19084 + for (;;) { //#19163 + if ($_.i == $_.msglen) { //#19088 + break; //#19088 + } //#19088 + var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#19089 + if (!_Dg) { //#19089 + break; //#19089 + } //#19089 + if (($_.p % 3) == 0) { //#19158 + if ($_.p > 0) { //#19103 + $k[$j++] = 'newmode'; //#19092 + $_.lookup(); //#19092 + var _Dj = $k[--$j]; //#19092 + $_[$k[--$j]] = _Dj; //#19092 + if ($ne($_.newmode, $_.mode)) { //#19102 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19094 + $_.CTXvalstocws(); //#19094 + $_.addtocws(); //#19094 + $k[$j++] = $a([$_.unlcw]); //#19095 + $_.addtocws(); //#19095 + if ($_.newmode != $_.A) { //#19098 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19097 + $_.addtocws(); //#19097 + } //#19097 + $_.mode = $_.newmode; //#19099 + $_.done = true; //#19100 + break; //#19101 + } //#19101 + } //#19101 + if (($_.msglen - $_.i) <= 3) { //#19157 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#19105 + $k[$j++] = Infinity; //#19106 + var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19107 + for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#19113 + var _EI = $get(_EF, _EG); //#19113 + var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#19108 + $k[$j++] = _EI; //#19112 + if (_EM) { //#19111 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#19109 + } else { //#19111 + $j--; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + } //#19111 + } //#19111 + $_.remvals = $a(); //#19111 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#19125 + $k[$j++] = Infinity; //#19117 + $aload($geti($_.ctxvals, 0, $_.p)); //#19118 + $aload($_.remvals); //#19119 + var _EZ = $a(); //#19119 + $k[$j++] = _EZ; //#19120 + $_.CTXvalstocws(); //#19120 + $_.addtocws(); //#19120 + $_.mode = $_.A; //#19121 + $_.i = $_.msglen; //#19122 + $_.done = true; //#19123 + break; //#19124 + } //#19124 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#19137 + $k[$j++] = Infinity; //#19128 + $aload($geti($_.ctxvals, 0, $_.p)); //#19129 + $aload($_.remvals); //#19130 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#19131 + var _Ep = $a(); //#19131 + $k[$j++] = _Ep; //#19132 + $_.CTXvalstocws(); //#19132 + $_.addtocws(); //#19132 + $_.mode = $_.A; //#19133 + $_.i = $_.msglen; //#19134 + $_.done = true; //#19135 + break; //#19136 + } //#19136 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#19147 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19140 + $_.CTXvalstocws(); //#19140 + $_.addtocws(); //#19140 + $k[$j++] = $a([$_.unlcw]); //#19141 + $_.addtocws(); //#19141 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19142 + $_.addtocws(); //#19142 + $_.mode = $_.A; //#19143 + $_.i = $_.msglen; //#19144 + $_.done = true; //#19145 + break; //#19146 + } //#19146 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#19156 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19150 + $_.CTXvalstocws(); //#19150 + $_.addtocws(); //#19150 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19151 + $_.addtocws(); //#19151 + $_.mode = $_.A; //#19152 + $_.i = $_.msglen; //#19153 + $_.done = true; //#19154 + break; //#19155 + } //#19155 + } //#19155 + } //#19155 + var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#19159 + $puti($_.ctxvals, $_.p, _FO); //#19160 + $_.p = _FO.length + $_.p; //#19161 + $_.i = $_.i + 1; //#19162 + } //#19162 + if (!$_.done) { //#19187 + for (;;) { //#19171 + if (($_.p % 3) == 0) { //#19168 + break; //#19168 + } //#19168 + $_.i = $_.i - 1; //#19169 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#19170 + } //#19170 + $k[$j++] = Infinity; //#19172 + $aload($geti($_.ctxvals, 0, $_.p)); //#19173 + var _Fh = $a(); //#19173 + $k[$j++] = _Fh; //#19174 + $_.CTXvalstocws(); //#19174 + $_.addtocws(); //#19174 + $k[$j++] = $a([$_.unlcw]); //#19175 + $_.addtocws(); //#19175 + $_.mode = $_.A; //#19176 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19186 + if ($get($_.numD, $_.i) >= 2) { //#19184 + var _Ft = $s(2); //#19180 + $put(_Ft, 0, $get($_.msg, $_.i)); //#19180 + $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#19180 + $k[$j++] = $get($_.Avals, _Ft); //#19180 + $_.addtocws(); //#19180 + $_.i = $_.i + 2; //#19181 + } else { //#19184 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19183 + $_.addtocws(); //#19183 + $_.i = $_.i + 1; //#19184 + } //#19184 + } //#19184 + } //#19184 + }; //#19184 $_.Evalstocws = function() { - $_.in = $k[--$j]; //#18914 - $_.inlen = $_.in.length; //#18915 - $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#18916 - $k[$j++] = Infinity; //#18917 - $aload($_.in); //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $_.in = $a(); //#18917 - $k[$j++] = Infinity; //#18918 - for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#18924 - var _GI = $geti($_.in, _GG, 4); //#18920 - $k[$j++] = 0; //#18920 - for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#18920 - var _GM = $k[--$j]; //#18920 - $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#18920 - } //#18920 - var _GO = $k[--$j] >>> 6; //#18921 - $k[$j++] = (_GO >>> 16) & 255; //#18923 - $k[$j++] = (_GO >>> 8) & 255; //#18923 - $k[$j++] = _GO & 255; //#18923 - } //#18923 - $astore($a($counttomark())); //#18925 - var _GR = $k[--$j]; //#18925 - var _GS = $k[--$j]; //#18925 - $k[$j++] = _GR; //#18925 - $k[$j++] = _GS; //#18925 - $j--; //#18925 - var _GV = $geti($k[--$j], 0, $_.outlen); //#18926 - $k[$j++] = _GV; //#18926 - }; //#18926 + $_.in = $k[--$j]; //#19192 + $_.inlen = $_.in.length; //#19193 + $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#19194 + $k[$j++] = Infinity; //#19195 + $aload($_.in); //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $_.in = $a(); //#19195 + $k[$j++] = Infinity; //#19196 + for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#19202 + var _GI = $geti($_.in, _GG, 4); //#19198 + $k[$j++] = 0; //#19198 + for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#19198 + var _GM = $k[--$j]; //#19198 + $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#19198 + } //#19198 + var _GO = $k[--$j] >>> 6; //#19199 + $k[$j++] = (_GO >>> 16) & 255; //#19201 + $k[$j++] = (_GO >>> 8) & 255; //#19201 + $k[$j++] = _GO & 255; //#19201 + } //#19201 + $astore($a($counttomark())); //#19203 + var _GR = $k[--$j]; //#19203 + var _GS = $k[--$j]; //#19203 + $k[$j++] = _GR; //#19203 + $k[$j++] = _GS; //#19203 + $j--; //#19203 + var _GV = $geti($k[--$j], 0, $_.outlen); //#19204 + $k[$j++] = _GV; //#19204 + }; //#19204 $_.encE = function() { - $_.p = 0; //#18930 - $_.edifactvals = $a(2100); //#18931 - for (;;) { //#18960 - if ($_.i == $_.msglen) { //#18935 - break; //#18935 - } //#18935 - var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#18936 - if (!_Gd) { //#18936 - break; //#18936 - } //#18936 - if (($_.p % 4) == 0) { //#18955 - if (($_.msglen - $_.i) <= 2) { //#18953 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#18939 - $k[$j++] = Infinity; //#18942 - var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18941 - for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#18943 - $aload($get($_.Avals, $get(_Gp, _Gq))); //#18942 - } //#18942 - $_.remvals = $a(); //#18942 - if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#18952 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18947 - $_.Evalstocws(); //#18947 - $_.addtocws(); //#18947 - $k[$j++] = $_.remvals; //#18948 - $_.addtocws(); //#18948 - $_.mode = $_.A; //#18949 - $_.i = $_.msglen; //#18950 - break; //#18951 - } //#18951 - } //#18951 - $_.lookup(); //#18954 - if ($k[--$j] != $_.mode) { //#18954 - break; //#18954 - } //#18954 - } //#18954 - var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#18956 - $puti($_.edifactvals, $_.p, _HC); //#18957 - $_.p = _HC.length + $_.p; //#18958 - $_.i = $_.i + 1; //#18959 - } //#18959 - if ($_.mode != $_.A) { //#18982 - $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#18964 - if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#18969 - var _HT = $get($_.Evals, $_.unl); //#18966 - $puti($_.edifactvals, $_.p, _HT); //#18967 - $_.p = _HT.length + $_.p; //#18968 - } //#18968 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18970 - $_.Evalstocws(); //#18970 - $_.addtocws(); //#18970 - $_.mode = $_.A; //#18971 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18981 - if ($get($_.numD, $_.i) >= 2) { //#18979 - var _Hj = $s(2); //#18975 - $put(_Hj, 0, $get($_.msg, $_.i)); //#18975 - $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#18975 - $k[$j++] = $get($_.Avals, _Hj); //#18975 - $_.addtocws(); //#18975 - $_.i = $_.i + 2; //#18976 - } else { //#18979 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18978 - $_.addtocws(); //#18978 - $_.i = $_.i + 1; //#18979 - } //#18979 - } //#18979 - } //#18979 - }; //#18979 + $_.p = 0; //#19208 + $_.edifactvals = $a(2100); //#19209 + for (;;) { //#19238 + if ($_.i == $_.msglen) { //#19213 + break; //#19213 + } //#19213 + var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#19214 + if (!_Gd) { //#19214 + break; //#19214 + } //#19214 + if (($_.p % 4) == 0) { //#19233 + if (($_.msglen - $_.i) <= 2) { //#19231 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#19217 + $k[$j++] = Infinity; //#19218 + var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19219 + for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#19221 + $aload($get($_.Avals, $get(_Gp, _Gq))); //#19220 + } //#19220 + $_.remvals = $a(); //#19220 + if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#19230 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19225 + $_.Evalstocws(); //#19225 + $_.addtocws(); //#19225 + $k[$j++] = $_.remvals; //#19226 + $_.addtocws(); //#19226 + $_.mode = $_.A; //#19227 + $_.i = $_.msglen; //#19228 + break; //#19229 + } //#19229 + } //#19229 + $_.lookup(); //#19232 + if ($k[--$j] != $_.mode) { //#19232 + break; //#19232 + } //#19232 + } //#19232 + var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#19234 + $puti($_.edifactvals, $_.p, _HC); //#19235 + $_.p = _HC.length + $_.p; //#19236 + $_.i = $_.i + 1; //#19237 + } //#19237 + if ($_.mode != $_.A) { //#19260 + $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#19242 + if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#19247 + var _HT = $get($_.Evals, $_.unl); //#19244 + $puti($_.edifactvals, $_.p, _HT); //#19245 + $_.p = _HT.length + $_.p; //#19246 + } //#19246 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19248 + $_.Evalstocws(); //#19248 + $_.addtocws(); //#19248 + $_.mode = $_.A; //#19249 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19259 + if ($get($_.numD, $_.i) >= 2) { //#19257 + var _Hj = $s(2); //#19253 + $put(_Hj, 0, $get($_.msg, $_.i)); //#19253 + $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#19253 + $k[$j++] = $get($_.Avals, _Hj); //#19253 + $_.addtocws(); //#19253 + $_.i = $_.i + 2; //#19254 + } else { //#19257 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19256 + $_.addtocws(); //#19256 + $_.i = $_.i + 1; //#19257 + } //#19257 + } //#19257 + } //#19257 + }; //#19257 $_.encB = function() { - $_.p = 0; //#18987 - $_.bvals = $a(1558); //#18987 - for (;;) { //#18993 - if ($_.i == $_.msglen) { //#18988 - break; //#18988 - } //#18988 - $_.lookup(); //#18989 - if ($k[--$j] != $_.mode) { //#18989 - break; //#18989 - } //#18989 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#18990 - $_.p = $_.p + 1; //#18991 - $_.i = $_.i + 1; //#18992 - } //#18992 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#18994 - $k[$j++] = Infinity; //#19001 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#18999 - $k[$j++] = 0; //#18997 - } else { //#18999 - if ($_.p < 250) { //#18999 - $k[$j++] = $_.p; //#18999 - } else { //#18999 - $k[$j++] = (~~($_.p / 250)) + 249; //#18999 - $k[$j++] = $_.p % 250; //#18999 - } //#18999 - } //#18999 - $aload($geti($_.bvals, 0, $_.p)); //#19001 - $_.bvals = $a(); //#19001 - for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19008 - $_.p = _IS; //#19004 - var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19006 - $k[$j++] = _IY; //#19006 - if (_IY >= 256) { //#19006 - var _IZ = $k[--$j]; //#19006 - $k[$j++] = $f(_IZ - 256); //#19006 - } //#19006 - $put($_.bvals, $_.p, $k[--$j]); //#19007 - } //#19007 - $k[$j++] = $_.bvals; //#19009 - $_.addtocws(); //#19009 - $_.mode = $_.A; //#19010 - }; //#19010 - $_.cws = $a(1558); //#19014 - $_.mode = $_.A; //#19015 - $_.i = 0; //#19015 - $_.j = 0; //#19015 - for (;;) { //#19018 - if ($_.i >= $_.msglen) { //#19016 - break; //#19016 - } //#19016 + $_.p = 0; //#19265 + $_.bvals = $a(1558); //#19265 + for (;;) { //#19271 + if ($_.i == $_.msglen) { //#19266 + break; //#19266 + } //#19266 + $_.lookup(); //#19267 + if ($k[--$j] != $_.mode) { //#19267 + break; //#19267 + } //#19267 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#19268 + $_.p = $_.p + 1; //#19269 + $_.i = $_.i + 1; //#19270 + } //#19270 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#19272 + $k[$j++] = Infinity; //#19273 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#19277 + $k[$j++] = 0; //#19275 + } else { //#19277 + if ($_.p < 250) { //#19277 + $k[$j++] = $_.p; //#19277 + } else { //#19277 + $k[$j++] = (~~($_.p / 250)) + 249; //#19277 + $k[$j++] = $_.p % 250; //#19277 + } //#19277 + } //#19277 + $aload($geti($_.bvals, 0, $_.p)); //#19279 + $_.bvals = $a(); //#19279 + for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19286 + $_.p = _IS; //#19282 + var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19284 + $k[$j++] = _IY; //#19284 + if (_IY >= 256) { //#19284 + var _IZ = $k[--$j]; //#19284 + $k[$j++] = $f(_IZ - 256); //#19284 + } //#19284 + $put($_.bvals, $_.p, $k[--$j]); //#19285 + } //#19285 + $k[$j++] = $_.bvals; //#19287 + $_.addtocws(); //#19287 + $_.mode = $_.A; //#19288 + }; //#19288 + $_.cws = $a(1558); //#19292 + $_.mode = $_.A; //#19293 + $_.i = 0; //#19293 + $_.j = 0; //#19293 + for (;;) { //#19296 + if ($_.i >= $_.msglen) { //#19294 + break; //#19294 + } //#19294 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $_.mode)]() === true) { break; - } //#19017 - } //#19017 - $_.cws = $geti($_.cws, 0, $_.j); //#19019 - } //#19019 - $_.datlen = $_.cws.length; //#19024 - $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19025 - if ($_.remcws > 0) { //#19034 - $k[$j++] = Infinity; //#19027 - $aload($_.cws); //#19027 - for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19027 - $k[$j++] = 129; //#19027 - } //#19027 - $_.cws = $a(); //#19027 - for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19033 - $_.i = _J4; //#19029 - var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19031 - $k[$j++] = _J6; //#19031 - if (_J6 > 254) { //#19031 - var _J7 = $k[--$j]; //#19031 - $k[$j++] = $f(_J7 - 254); //#19031 - } //#19031 - $put($_.cws, $_.i, $k[--$j]); //#19032 - } //#19032 - } //#19032 - var _JC = $get($_.options, 'debugcws') !== undefined; //#19036 - if (_JC) { //#19036 - $k[$j++] = 'bwipp.debugcws#19036'; //#19036 - $k[$j++] = $_.cws; //#19036 - bwipp_raiseerror(); //#19036 - } //#19036 - var _JE = $_.metrics; //#19039 - for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19061 - $_.m = $get(_JE, _JF); //#19040 - $_.rows = $get($_.m, 0); //#19041 - $_.cols = $get($_.m, 1); //#19042 - $_.regh = $get($_.m, 2); //#19043 - $_.regv = $get($_.m, 3); //#19044 - $_.rscw = $get($_.m, 4); //#19045 - $_.rsbl = $get($_.m, 5); //#19046 - $_.doly = $get($_.m, 6); //#19047 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#19048 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#19049 - $_.rrows = ~~($_.mrows / $_.regh); //#19050 - $_.rcols = ~~($_.mcols / $_.regv); //#19051 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19052 - $_.okay = true; //#19053 - if ($_.cws.length != $_.ncws) { //#19054 - $_.okay = false; //#19054 - } //#19054 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19055 - $_.okay = false; //#19055 - } //#19055 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19056 - $_.okay = false; //#19056 - } //#19056 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19057 - $_.okay = false; //#19057 - } //#19057 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19058 - $_.okay = false; //#19058 - } //#19058 - if ((!$_.dmre) && ($_.doly == 1)) { //#19059 - $_.okay = false; //#19059 - } //#19059 - if ($_.okay) { //#19060 - break; //#19060 - } //#19060 - } //#19060 - if (!$_.okay) { //#19065 - $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19064'; //#19064 - $k[$j++] = "Maximum length exceeded or invalid size"; //#19064 - bwipp_raiseerror(); //#19064 - } //#19064 - $_.cwbs = $a($_.rsbl); //#19068 - $_.ecbs = $a($_.rsbl); //#19069 - for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19084 - $_.i = _K5; //#19071 - if ($_.cws.length != 1558) { //#19075 - $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19073 - } else { //#19075 - if ($_.i <= 7) { //#19075 - $_.cwbsize = 156; //#19075 - } else { //#19075 - $_.cwbsize = 155; //#19075 - } //#19075 - } //#19075 - $_.cwb = $a($_.cwbsize); //#19077 - for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19081 - $_.j = _KE; //#19079 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19080 - } //#19080 - $put($_.cwbs, $_.i, $_.cwb); //#19082 - $k[$j++] = $_.ecbs; //#19083 - $k[$j++] = $_.i; //#19083 - $k[$j++] = Infinity; //#19083 - for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19083 - $k[$j++] = 0; //#19083 - } //#19083 - var _KV = $a(); //#19083 - var _KW = $k[--$j]; //#19083 - $put($k[--$j], _KW, _KV); //#19083 - } //#19083 - if (!bwipp_datamatrix.__19091__) { //#19091 - $_ = Object.create($_); //#19091 - $k[$j++] = Infinity; //#19088 - $k[$j++] = 1; //#19088 - for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19088 - var _Ka = $k[--$j]; //#19088 - var _Kb = _Ka * 2; //#19088 - $k[$j++] = _Ka; //#19088 - $k[$j++] = _Kb; //#19088 - if (_Kb >= 256) { //#19088 - var _Kc = $k[--$j]; //#19088 - $k[$j++] = _Kc ^ 301; //#19088 - } //#19088 - } //#19088 - $_.rsalog = $a(); //#19088 - $_.rslog = $a(256); //#19089 - for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19090 - $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19090 - } //#19090 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19090 - bwipp_datamatrix.__19091__ = 1; //#19090 - $_ = Object.getPrototypeOf($_); //#19090 - } //#19090 + } //#19295 + } //#19295 + $_.cws = $geti($_.cws, 0, $_.j); //#19297 + } //#19297 + $_.datlen = $_.cws.length; //#19302 + $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19303 + if ($_.remcws > 0) { //#19312 + $k[$j++] = Infinity; //#19305 + $aload($_.cws); //#19305 + for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19305 + $k[$j++] = 129; //#19305 + } //#19305 + $_.cws = $a(); //#19305 + for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19311 + $_.i = _J4; //#19307 + var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19309 + $k[$j++] = _J6; //#19309 + if (_J6 > 254) { //#19309 + var _J7 = $k[--$j]; //#19309 + $k[$j++] = $f(_J7 - 254); //#19309 + } //#19309 + $put($_.cws, $_.i, $k[--$j]); //#19310 + } //#19310 + } //#19310 + var _JC = $get($_.options, 'debugcws') !== undefined; //#19314 + if (_JC) { //#19314 + $k[$j++] = 'bwipp.debugcws#19314'; //#19314 + $k[$j++] = $_.cws; //#19314 + bwipp_raiseerror(); //#19314 + } //#19314 + var _JE = $_.metrics; //#19317 + for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19339 + $_.m = $get(_JE, _JF); //#19318 + $_.rows = $get($_.m, 0); //#19319 + $_.cols = $get($_.m, 1); //#19320 + $_.regh = $get($_.m, 2); //#19321 + $_.regv = $get($_.m, 3); //#19322 + $_.rscw = $get($_.m, 4); //#19323 + $_.rsbl = $get($_.m, 5); //#19324 + $_.doly = $get($_.m, 6); //#19325 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#19326 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#19327 + $_.rrows = ~~($_.mrows / $_.regh); //#19328 + $_.rcols = ~~($_.mcols / $_.regv); //#19329 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19330 + $_.okay = true; //#19331 + if ($_.cws.length != $_.ncws) { //#19332 + $_.okay = false; //#19332 + } //#19332 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19333 + $_.okay = false; //#19333 + } //#19333 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19334 + $_.okay = false; //#19334 + } //#19334 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19335 + $_.okay = false; //#19335 + } //#19335 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19336 + $_.okay = false; //#19336 + } //#19336 + if ((!$_.dmre) && ($_.doly == 1)) { //#19337 + $_.okay = false; //#19337 + } //#19337 + if ($_.okay) { //#19338 + break; //#19338 + } //#19338 + } //#19338 + if (!$_.okay) { //#19343 + $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19342'; //#19342 + $k[$j++] = "Maximum length exceeded or invalid size"; //#19342 + bwipp_raiseerror(); //#19342 + } //#19342 + $_.cwbs = $a($_.rsbl); //#19346 + $_.ecbs = $a($_.rsbl); //#19347 + for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19362 + $_.i = _K5; //#19349 + if ($_.cws.length != 1558) { //#19353 + $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19351 + } else { //#19353 + if ($_.i <= 7) { //#19353 + $_.cwbsize = 156; //#19353 + } else { //#19353 + $_.cwbsize = 155; //#19353 + } //#19353 + } //#19353 + $_.cwb = $a($_.cwbsize); //#19355 + for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19359 + $_.j = _KE; //#19357 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19358 + } //#19358 + $put($_.cwbs, $_.i, $_.cwb); //#19360 + $k[$j++] = $_.ecbs; //#19361 + $k[$j++] = $_.i; //#19361 + $k[$j++] = Infinity; //#19361 + for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19361 + $k[$j++] = 0; //#19361 + } //#19361 + var _KV = $a(); //#19361 + var _KW = $k[--$j]; //#19361 + $put($k[--$j], _KW, _KV); //#19361 + } //#19361 + if (!bwipp_datamatrix.__19369__) { //#19369 + $_ = Object.create($_); //#19369 + $k[$j++] = Infinity; //#19366 + $k[$j++] = 1; //#19366 + for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19366 + var _Ka = $k[--$j]; //#19366 + var _Kb = _Ka * 2; //#19366 + $k[$j++] = _Ka; //#19366 + $k[$j++] = _Kb; //#19366 + if (_Kb >= 256) { //#19366 + var _Kc = $k[--$j]; //#19366 + $k[$j++] = _Kc ^ 301; //#19366 + } //#19366 + } //#19366 + $_.rsalog = $a(); //#19366 + $_.rslog = $a(256); //#19367 + for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19368 + $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19368 + } //#19368 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19368 + bwipp_datamatrix.__19369__ = 1; //#19368 + $_ = Object.getPrototypeOf($_); //#19368 + } //#19368 $_.rsprod = function() { - var _Kk = $k[--$j]; //#19095 - var _Kl = $k[--$j]; //#19095 - $k[$j++] = _Kl; //#19099 - $k[$j++] = _Kk; //#19099 - if ((_Kk != 0) && (_Kl != 0)) { //#19098 - var _Ko = $get($_.rslog, $k[--$j]); //#19096 - var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19096 - $k[$j++] = _Kt; //#19096 - } else { //#19098 - $j -= 2; //#19098 - $k[$j++] = 0; //#19098 - } //#19098 - }; //#19098 - $k[$j++] = Infinity; //#19103 - $k[$j++] = 1; //#19103 - for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19103 - $k[$j++] = 0; //#19103 - } //#19103 - $_.coeffs = $a(); //#19103 - for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19112 - $_.i = _L2; //#19105 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19106 - for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19110 - $_.j = _L9; //#19108 - $k[$j++] = $_.coeffs; //#19109 - $k[$j++] = $_.j; //#19109 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#19109 - $k[$j++] = $get($_.coeffs, $_.j); //#19109 - $k[$j++] = $get($_.rsalog, $_.i); //#19109 - $_.rsprod(); //#19109 - var _LL = $k[--$j]; //#19109 - var _LM = $k[--$j]; //#19109 - var _LN = $k[--$j]; //#19109 - $put($k[--$j], _LN, $xo(_LM, _LL)); //#19109 - } //#19109 - $k[$j++] = $_.coeffs; //#19111 - $k[$j++] = 0; //#19111 - $k[$j++] = $get($_.coeffs, 0); //#19111 - $k[$j++] = $get($_.rsalog, $_.i); //#19111 - $_.rsprod(); //#19111 - var _LV = $k[--$j]; //#19111 - var _LW = $k[--$j]; //#19111 - $put($k[--$j], _LW, _LV); //#19111 - } //#19111 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19113 - for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19129 - $_.i = _Ld; //#19117 - $_.cwb = $get($_.cwbs, $_.i); //#19118 - $_.ecb = $get($_.ecbs, $_.i); //#19119 - for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19128 - $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19121 - for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19127 - $_.j = _Ls; //#19123 - $_.p = ($_.ecb.length - $_.j) - 1; //#19124 - $k[$j++] = $_.ecb; //#19125 - $k[$j++] = $_.p; //#19125 - $k[$j++] = $_.t; //#19125 - $k[$j++] = $get($_.coeffs, $_.j); //#19125 - $_.rsprod(); //#19125 - var _M1 = $k[--$j]; //#19125 - var _M2 = $k[--$j]; //#19125 - $put($k[--$j], _M2, _M1); //#19125 - if ($_.j > 0) { //#19126 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19126 - } //#19126 - } //#19126 - } //#19126 - } //#19126 - if ($_.ncws == 1558) { //#19134 - $k[$j++] = Infinity; //#19133 - var _MF = $geti($_.ecbs, 8, 2); //#19133 - for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19133 - $k[$j++] = $get(_MF, _MG); //#19133 - } //#19133 - var _MK = $geti($_.ecbs, 0, 8); //#19133 - for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19133 - $k[$j++] = $get(_MK, _ML); //#19133 - } //#19133 - $_.ecbs = $a(); //#19133 - } //#19133 - $k[$j++] = Infinity; //#19137 - var _MP = $_.cws; //#19137 - for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19137 - $k[$j++] = $get(_MP, _MQ); //#19137 - } //#19137 - for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19137 - $k[$j++] = 0; //#19137 - } //#19137 - $_.cws = $a(); //#19137 - for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19141 - $_.i = _MZ; //#19139 - $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19140 - } //#19140 + var _Kk = $k[--$j]; //#19373 + var _Kl = $k[--$j]; //#19373 + $k[$j++] = _Kl; //#19377 + $k[$j++] = _Kk; //#19377 + if ((_Kk != 0) && (_Kl != 0)) { //#19376 + var _Ko = $get($_.rslog, $k[--$j]); //#19374 + var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19374 + $k[$j++] = _Kt; //#19374 + } else { //#19376 + $j -= 2; //#19376 + $k[$j++] = 0; //#19376 + } //#19376 + }; //#19376 + $k[$j++] = Infinity; //#19381 + $k[$j++] = 1; //#19381 + for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19381 + $k[$j++] = 0; //#19381 + } //#19381 + $_.coeffs = $a(); //#19381 + for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19390 + $_.i = _L2; //#19383 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19384 + for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19388 + $_.j = _L9; //#19386 + $k[$j++] = $_.coeffs; //#19387 + $k[$j++] = $_.j; //#19387 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#19387 + $k[$j++] = $get($_.coeffs, $_.j); //#19387 + $k[$j++] = $get($_.rsalog, $_.i); //#19387 + $_.rsprod(); //#19387 + var _LL = $k[--$j]; //#19387 + var _LM = $k[--$j]; //#19387 + var _LN = $k[--$j]; //#19387 + $put($k[--$j], _LN, $xo(_LM, _LL)); //#19387 + } //#19387 + $k[$j++] = $_.coeffs; //#19389 + $k[$j++] = 0; //#19389 + $k[$j++] = $get($_.coeffs, 0); //#19389 + $k[$j++] = $get($_.rsalog, $_.i); //#19389 + $_.rsprod(); //#19389 + var _LV = $k[--$j]; //#19389 + var _LW = $k[--$j]; //#19389 + $put($k[--$j], _LW, _LV); //#19389 + } //#19389 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19391 + for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19407 + $_.i = _Ld; //#19395 + $_.cwb = $get($_.cwbs, $_.i); //#19396 + $_.ecb = $get($_.ecbs, $_.i); //#19397 + for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19406 + $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19399 + for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19405 + $_.j = _Ls; //#19401 + $_.p = ($_.ecb.length - $_.j) - 1; //#19402 + $k[$j++] = $_.ecb; //#19403 + $k[$j++] = $_.p; //#19403 + $k[$j++] = $_.t; //#19403 + $k[$j++] = $get($_.coeffs, $_.j); //#19403 + $_.rsprod(); //#19403 + var _M1 = $k[--$j]; //#19403 + var _M2 = $k[--$j]; //#19403 + $put($k[--$j], _M2, _M1); //#19403 + if ($_.j > 0) { //#19404 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19404 + } //#19404 + } //#19404 + } //#19404 + } //#19404 + if ($_.ncws == 1558) { //#19412 + $k[$j++] = Infinity; //#19411 + var _MF = $geti($_.ecbs, 8, 2); //#19411 + for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19411 + $k[$j++] = $get(_MF, _MG); //#19411 + } //#19411 + var _MK = $geti($_.ecbs, 0, 8); //#19411 + for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19411 + $k[$j++] = $get(_MK, _ML); //#19411 + } //#19411 + $_.ecbs = $a(); //#19411 + } //#19411 + $k[$j++] = Infinity; //#19415 + var _MP = $_.cws; //#19415 + for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19415 + $k[$j++] = $get(_MP, _MQ); //#19415 + } //#19415 + for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19415 + $k[$j++] = 0; //#19415 + } //#19415 + $_.cws = $a(); //#19415 + for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19419 + $_.i = _MZ; //#19417 + $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19418 + } //#19418 $_.module = function() { - var _Mk = $k[--$j]; //#19146 - var _Ml = $k[--$j]; //#19146 - var _Mm = $k[--$j]; //#19146 - var _Mp = $strcpy($s(8), "00000000"); //#19147 - var _Mr = $cvrs($s(8), $k[--$j], 2); //#19147 - $puti(_Mp, 8 - _Mr.length, _Mr); //#19148 - $k[$j++] = _Mm; //#19149 - $k[$j++] = _Ml; //#19149 - $k[$j++] = _Mk; //#19149 - $k[$j++] = _Mp; //#19149 - for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19149 - var _Mt = $k[--$j]; //#19149 - $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19149 - $k[$j++] = _Mt; //#19149 - } //#19149 - $j--; //#19149 - var _Mv = $k[--$j]; //#19150 - var _Mw = $k[--$j]; //#19150 - var _Mx = $k[--$j]; //#19150 - var _My = $k[--$j]; //#19150 - var _Mz = $k[--$j]; //#19150 - var _N0 = $k[--$j]; //#19150 - var _N1 = $k[--$j]; //#19150 - var _N2 = $k[--$j]; //#19150 - var _N3 = $k[--$j]; //#19150 - var _N4 = $k[--$j]; //#19150 - var _N5 = $k[--$j]; //#19150 - $k[$j++] = _N2; //#19167 - $k[$j++] = _N1; //#19167 - $k[$j++] = _N0; //#19167 - $k[$j++] = _Mz; //#19167 - $k[$j++] = _My; //#19167 - $k[$j++] = _Mx; //#19167 - $k[$j++] = _Mw; //#19167 - $k[$j++] = _Mv; //#19167 - $k[$j++] = _N5; //#19167 - $k[$j++] = _N4; //#19167 - $forall(_N3, function() { //#19167 + var _Mk = $k[--$j]; //#19424 + var _Ml = $k[--$j]; //#19424 + var _Mm = $k[--$j]; //#19424 + var _Mp = $strcpy($s(8), "00000000"); //#19425 + var _Mr = $cvrs($s(8), $k[--$j], 2); //#19425 + $puti(_Mp, 8 - _Mr.length, _Mr); //#19426 + $k[$j++] = _Mm; //#19427 + $k[$j++] = _Ml; //#19427 + $k[$j++] = _Mk; //#19427 + $k[$j++] = _Mp; //#19427 + for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19427 + var _Mt = $k[--$j]; //#19427 + $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19427 + $k[$j++] = _Mt; //#19427 + } //#19427 + $j--; //#19427 + var _Mv = $k[--$j]; //#19428 + var _Mw = $k[--$j]; //#19428 + var _Mx = $k[--$j]; //#19428 + var _My = $k[--$j]; //#19428 + var _Mz = $k[--$j]; //#19428 + var _N0 = $k[--$j]; //#19428 + var _N1 = $k[--$j]; //#19428 + var _N2 = $k[--$j]; //#19428 + var _N3 = $k[--$j]; //#19428 + var _N4 = $k[--$j]; //#19428 + var _N5 = $k[--$j]; //#19428 + $k[$j++] = _N2; //#19445 + $k[$j++] = _N1; //#19445 + $k[$j++] = _N0; //#19445 + $k[$j++] = _Mz; //#19445 + $k[$j++] = _My; //#19445 + $k[$j++] = _Mx; //#19445 + $k[$j++] = _Mw; //#19445 + $k[$j++] = _Mv; //#19445 + $k[$j++] = _N5; //#19445 + $k[$j++] = _N4; //#19445 + $forall(_N3, function() { //#19445 if ($k[--$j]() === true) { return true; - } //#19153 - var _N7 = $k[--$j]; //#19154 - var _N8 = $k[--$j]; //#19154 - $k[$j++] = _N8; //#19157 - $k[$j++] = _N7; //#19157 - if (_N8 < 0) { //#19157 - var _N9 = $k[--$j]; //#19155 - var _NA = $k[--$j]; //#19155 - $k[$j++] = $f(_NA + $_.mrows); //#19156 - $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19156 - } //#19156 - var _ND = $k[--$j]; //#19158 - $k[$j++] = _ND; //#19161 - if (_ND < 0) { //#19161 - var _NF = $k[--$j]; //#19159 - var _NG = $k[--$j]; //#19159 - $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19160 - $k[$j++] = $f(_NF + $_.mcols); //#19160 - } //#19160 - var _NI = $k[--$j]; //#19162 - var _NJ = $k[--$j]; //#19162 - $k[$j++] = _NJ; //#19164 - $k[$j++] = _NI; //#19164 - if (_NJ >= $_.mrows) { //#19164 - var _NL = $k[--$j]; //#19163 - var _NM = $k[--$j]; //#19163 - $k[$j++] = $f(_NM - $_.mrows); //#19163 - $k[$j++] = _NL; //#19163 - } //#19163 - var _NO = $k[--$j]; //#19165 - var _NP = $k[--$j]; //#19165 - var _NS = $k[--$j]; //#19166 - var _NT = $k[--$j]; //#19166 - $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19166 - $k[$j++] = _NT; //#19166 - $k[$j++] = _NS; //#19166 - }); //#19166 - }; //#19166 + } //#19431 + var _N7 = $k[--$j]; //#19432 + var _N8 = $k[--$j]; //#19432 + $k[$j++] = _N8; //#19435 + $k[$j++] = _N7; //#19435 + if (_N8 < 0) { //#19435 + var _N9 = $k[--$j]; //#19433 + var _NA = $k[--$j]; //#19433 + $k[$j++] = $f(_NA + $_.mrows); //#19434 + $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19434 + } //#19434 + var _ND = $k[--$j]; //#19436 + $k[$j++] = _ND; //#19439 + if (_ND < 0) { //#19439 + var _NF = $k[--$j]; //#19437 + var _NG = $k[--$j]; //#19437 + $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19438 + $k[$j++] = $f(_NF + $_.mcols); //#19438 + } //#19438 + var _NI = $k[--$j]; //#19440 + var _NJ = $k[--$j]; //#19440 + $k[$j++] = _NJ; //#19442 + $k[$j++] = _NI; //#19442 + if (_NJ >= $_.mrows) { //#19442 + var _NL = $k[--$j]; //#19441 + var _NM = $k[--$j]; //#19441 + $k[$j++] = $f(_NM - $_.mrows); //#19441 + $k[$j++] = _NL; //#19441 + } //#19441 + var _NO = $k[--$j]; //#19443 + var _NP = $k[--$j]; //#19443 + var _NS = $k[--$j]; //#19444 + var _NT = $k[--$j]; //#19444 + $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19444 + $k[$j++] = _NT; //#19444 + $k[$j++] = _NS; //#19444 + }); //#19444 + }; //#19444 var _Nl = $a([function() { - var _NV = $k[--$j]; //#19172 - var _NW = $k[--$j]; //#19172 - $k[$j++] = _NW; //#19172 - $k[$j++] = _NV; //#19172 - $k[$j++] = $f(_NW - 2); //#19172 - $k[$j++] = $f(_NV - 2); //#19172 + var _NV = $k[--$j]; //#19450 + var _NW = $k[--$j]; //#19450 + $k[$j++] = _NW; //#19450 + $k[$j++] = _NV; //#19450 + $k[$j++] = $f(_NW - 2); //#19450 + $k[$j++] = $f(_NV - 2); //#19450 }, function() { - var _NX = $k[--$j]; //#19172 - var _NY = $k[--$j]; //#19172 - $k[$j++] = _NY; //#19172 - $k[$j++] = _NX; //#19172 - $k[$j++] = $f(_NY - 2); //#19172 - $k[$j++] = $f(_NX - 1); //#19172 + var _NX = $k[--$j]; //#19450 + var _NY = $k[--$j]; //#19450 + $k[$j++] = _NY; //#19450 + $k[$j++] = _NX; //#19450 + $k[$j++] = $f(_NY - 2); //#19450 + $k[$j++] = $f(_NX - 1); //#19450 }, function() { - var _NZ = $k[--$j]; //#19173 - var _Na = $k[--$j]; //#19173 - $k[$j++] = _Na; //#19173 - $k[$j++] = _NZ; //#19173 - $k[$j++] = $f(_Na - 1); //#19173 - $k[$j++] = $f(_NZ - 2); //#19173 + var _NZ = $k[--$j]; //#19451 + var _Na = $k[--$j]; //#19451 + $k[$j++] = _Na; //#19451 + $k[$j++] = _NZ; //#19451 + $k[$j++] = $f(_Na - 1); //#19451 + $k[$j++] = $f(_NZ - 2); //#19451 }, function() { - var _Nb = $k[--$j]; //#19173 - var _Nc = $k[--$j]; //#19173 - $k[$j++] = _Nc; //#19173 - $k[$j++] = _Nb; //#19173 - $k[$j++] = $f(_Nc - 1); //#19173 - $k[$j++] = $f(_Nb - 1); //#19173 + var _Nb = $k[--$j]; //#19451 + var _Nc = $k[--$j]; //#19451 + $k[$j++] = _Nc; //#19451 + $k[$j++] = _Nb; //#19451 + $k[$j++] = $f(_Nc - 1); //#19451 + $k[$j++] = $f(_Nb - 1); //#19451 }, function() { - var _Nd = $k[--$j]; //#19174 - var _Ne = $k[--$j]; //#19174 - $k[$j++] = _Ne; //#19174 - $k[$j++] = _Nd; //#19174 - $k[$j++] = $f(_Ne - 1); //#19174 - $k[$j++] = _Nd; //#19174 + var _Nd = $k[--$j]; //#19452 + var _Ne = $k[--$j]; //#19452 + $k[$j++] = _Ne; //#19452 + $k[$j++] = _Nd; //#19452 + $k[$j++] = $f(_Ne - 1); //#19452 + $k[$j++] = _Nd; //#19452 }, function() { - var _Nf = $k[--$j]; //#19174 - var _Ng = $k[--$j]; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = _Nf; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = $f(_Nf - 2); //#19174 + var _Nf = $k[--$j]; //#19452 + var _Ng = $k[--$j]; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = _Nf; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = $f(_Nf - 2); //#19452 }, function() { - var _Nh = $k[--$j]; //#19175 - var _Ni = $k[--$j]; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = _Nh; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = $f(_Nh - 1); //#19175 + var _Nh = $k[--$j]; //#19453 + var _Ni = $k[--$j]; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = _Nh; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = $f(_Nh - 1); //#19453 }, function() { - var _Nj = $k[--$j]; //#19175 - var _Nk = $k[--$j]; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - }]); //#19175 - $_.dmn = _Nl; //#19176 + var _Nj = $k[--$j]; //#19453 + var _Nk = $k[--$j]; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + }]); //#19453 + $_.dmn = _Nl; //#19454 var _Nu = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 0; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 0; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 1; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 1; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19180 - $k[$j++] = 2; //#19180 + $k[$j++] = $f($_.mrows - 1); //#19458 + $k[$j++] = 2; //#19458 }, function() { - $k[$j++] = 0; //#19180 - $k[$j++] = $f($_.mcols - 2); //#19180 + $k[$j++] = 0; //#19458 + $k[$j++] = $f($_.mcols - 2); //#19458 }, function() { - $k[$j++] = 0; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 0; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 1; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 1; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 2; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 + $k[$j++] = 2; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 }, function() { - $k[$j++] = 3; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 - }]); //#19182 - $_.dmc1 = _Nu; //#19183 + $k[$j++] = 3; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 + }]); //#19460 + $_.dmc1 = _Nu; //#19461 var _O3 = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 3); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 2); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19187 - $k[$j++] = 0; //#19187 + $k[$j++] = $f($_.mrows - 1); //#19465 + $k[$j++] = 0; //#19465 }, function() { - $k[$j++] = 0; //#19187 - $k[$j++] = $f($_.mcols - 4); //#19187 + $k[$j++] = 0; //#19465 + $k[$j++] = $f($_.mcols - 4); //#19465 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 3); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 3); //#19466 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 2); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 2); //#19466 }, function() { - $k[$j++] = 0; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 + $k[$j++] = 0; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 }, function() { - $k[$j++] = 1; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 - }]); //#19189 - $_.dmc2 = _O3; //#19190 + $k[$j++] = 1; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 + }]); //#19467 + $_.dmc2 = _O3; //#19468 var _OC = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 3); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 2); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19194 - $k[$j++] = 0; //#19194 + $k[$j++] = $f($_.mrows - 1); //#19472 + $k[$j++] = 0; //#19472 }, function() { - $k[$j++] = 0; //#19194 - $k[$j++] = $f($_.mcols - 2); //#19194 + $k[$j++] = 0; //#19472 + $k[$j++] = $f($_.mcols - 2); //#19472 }, function() { - $k[$j++] = 0; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 0; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 1; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 1; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 2; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 + $k[$j++] = 2; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 }, function() { - $k[$j++] = 3; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 - }]); //#19196 - $_.dmc3 = _OC; //#19197 + $k[$j++] = 3; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 + }]); //#19474 + $_.dmc3 = _OC; //#19475 var _OM = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = 0; //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = 0; //#19478 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = $f($_.mcols - 1); //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = $f($_.mcols - 1); //#19478 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 3); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 3); //#19479 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 2); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 2); //#19479 }, function() { - $k[$j++] = 0; //#19202 - $k[$j++] = $f($_.mcols - 1); //#19202 + $k[$j++] = 0; //#19480 + $k[$j++] = $f($_.mcols - 1); //#19480 }, function() { - $k[$j++] = 1; //#19202 - $k[$j++] = $f($_.mcols - 3); //#19202 + $k[$j++] = 1; //#19480 + $k[$j++] = $f($_.mcols - 3); //#19480 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 2); //#19203 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 2); //#19481 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 1); //#19203 - }]); //#19203 - $_.dmc4 = _OM; //#19204 - $k[$j++] = Infinity; //#19206 - for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19206 - $k[$j++] = -1; //#19206 - } //#19206 - $_.mmat = $a(); //#19206 - for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19207 - $k[$j++] = $get($_.cws, _OT); //#19207 - } //#19207 - $k[$j++] = 4; //#19247 - $k[$j++] = 0; //#19247 - for (;;) { //#19247 - var _OW = $k[--$j]; //#19210 - var _OX = $k[--$j]; //#19210 - $k[$j++] = _OX; //#19212 - $k[$j++] = _OW; //#19212 - if ((_OW == 0) && (_OX == $_.mrows)) { //#19212 - $k[$j++] = $_.dmc1; //#19211 - $_.module(); //#19211 - } //#19211 - var _Oa = $k[--$j]; //#19213 - var _Ob = $k[--$j]; //#19213 - $k[$j++] = _Ob; //#19215 - $k[$j++] = _Oa; //#19215 - if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19215 - $k[$j++] = $_.dmc2; //#19214 - $_.module(); //#19214 - } //#19214 - var _Of = $k[--$j]; //#19216 - var _Og = $k[--$j]; //#19216 - $k[$j++] = _Og; //#19218 - $k[$j++] = _Of; //#19218 - if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19218 - $k[$j++] = $_.dmc3; //#19217 - $_.module(); //#19217 - } //#19217 - var _Ok = $k[--$j]; //#19219 - var _Ol = $k[--$j]; //#19219 - $k[$j++] = _Ol; //#19221 - $k[$j++] = _Ok; //#19221 - if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19221 - $k[$j++] = $_.dmc4; //#19220 - $_.module(); //#19220 - } //#19220 - for (;;) { //#19231 - var _Op = $k[--$j]; //#19224 - var _Oq = $k[--$j]; //#19224 - $k[$j++] = _Oq; //#19228 - $k[$j++] = _Op; //#19228 - if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19228 - var _Os = $k[--$j]; //#19225 - var _Ot = $k[--$j]; //#19225 - $k[$j++] = _Ot; //#19227 - $k[$j++] = _Os; //#19227 - if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19227 - $k[$j++] = $_.dmn; //#19226 - $_.module(); //#19226 - } //#19226 - } //#19226 - var _Oy = $k[--$j]; //#19229 - var _Oz = $k[--$j]; //#19229 - $k[$j++] = $f(_Oz - 2); //#19230 - $k[$j++] = $f(_Oy + 2); //#19230 - if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19230 - break; //#19230 - } //#19230 - } //#19230 - var _P1 = $k[--$j]; //#19232 - var _P2 = $k[--$j]; //#19232 - $k[$j++] = $f(_P2 + 1); //#19242 - $k[$j++] = $f(_P1 + 3); //#19242 - for (;;) { //#19242 - var _P3 = $k[--$j]; //#19235 - var _P4 = $k[--$j]; //#19235 - $k[$j++] = _P4; //#19239 - $k[$j++] = _P3; //#19239 - if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19239 - var _P6 = $k[--$j]; //#19236 - var _P7 = $k[--$j]; //#19236 - $k[$j++] = _P7; //#19238 - $k[$j++] = _P6; //#19238 - if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19238 - $k[$j++] = $_.dmn; //#19237 - $_.module(); //#19237 - } //#19237 - } //#19237 - var _PC = $k[--$j]; //#19240 - var _PD = $k[--$j]; //#19240 - $k[$j++] = $f(_PD + 2); //#19241 - $k[$j++] = $f(_PC - 2); //#19241 - if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19241 - break; //#19241 - } //#19241 - } //#19241 - var _PF = $k[--$j]; //#19243 - var _PG = $k[--$j]; //#19243 - $k[$j++] = $f(_PG + 3); //#19245 - $k[$j++] = $f(_PF + 1); //#19245 - if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19245 - $j -= 2; //#19245 - break; //#19245 - } //#19245 - } //#19245 - if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19253 - $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19251 - $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19252 - } //#19252 - $_.pixs = $a($_.rows * $_.cols); //#19256 - $_.cwpos = 0; //#19257 - for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19273 - $_.i = _Pa; //#19259 - if (($_.i % ($_.rrows + 2)) == 0) { //#19260 - $k[$j++] = $_.pixs; //#19260 - $k[$j++] = $_.i * $_.cols; //#19260 - $k[$j++] = Infinity; //#19260 - for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19260 - $k[$j++] = 1; //#19260 - $k[$j++] = 0; //#19260 - } //#19260 - var _Pj = $a(); //#19260 - var _Pk = $k[--$j]; //#19260 - $puti($k[--$j], _Pk, _Pj); //#19260 - } //#19260 - if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19261 - $k[$j++] = $_.pixs; //#19261 - $k[$j++] = $_.i * $_.cols; //#19261 - $k[$j++] = Infinity; //#19261 - for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19261 - $k[$j++] = 1; //#19261 - } //#19261 - var _Pv = $a(); //#19261 - var _Pw = $k[--$j]; //#19261 - $puti($k[--$j], _Pw, _Pv); //#19261 - } //#19261 - if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19272 - for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19271 - $_.j = _Q5; //#19264 - if (($_.j % ($_.rcols + 2)) == 0) { //#19265 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19265 - } //#19265 - if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19266 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19266 - } //#19266 - if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19270 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19268 - $_.cwpos = $_.cwpos + 1; //#19269 - } //#19269 - } //#19269 - } //#19269 - } //#19269 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 1); //#19481 + }]); //#19481 + $_.dmc4 = _OM; //#19482 + $k[$j++] = Infinity; //#19484 + for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19484 + $k[$j++] = -1; //#19484 + } //#19484 + $_.mmat = $a(); //#19484 + for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19485 + $k[$j++] = $get($_.cws, _OT); //#19485 + } //#19485 + $k[$j++] = 4; //#19525 + $k[$j++] = 0; //#19525 + for (;;) { //#19525 + var _OW = $k[--$j]; //#19488 + var _OX = $k[--$j]; //#19488 + $k[$j++] = _OX; //#19490 + $k[$j++] = _OW; //#19490 + if ((_OW == 0) && (_OX == $_.mrows)) { //#19490 + $k[$j++] = $_.dmc1; //#19489 + $_.module(); //#19489 + } //#19489 + var _Oa = $k[--$j]; //#19491 + var _Ob = $k[--$j]; //#19491 + $k[$j++] = _Ob; //#19493 + $k[$j++] = _Oa; //#19493 + if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19493 + $k[$j++] = $_.dmc2; //#19492 + $_.module(); //#19492 + } //#19492 + var _Of = $k[--$j]; //#19494 + var _Og = $k[--$j]; //#19494 + $k[$j++] = _Og; //#19496 + $k[$j++] = _Of; //#19496 + if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19496 + $k[$j++] = $_.dmc3; //#19495 + $_.module(); //#19495 + } //#19495 + var _Ok = $k[--$j]; //#19497 + var _Ol = $k[--$j]; //#19497 + $k[$j++] = _Ol; //#19499 + $k[$j++] = _Ok; //#19499 + if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19499 + $k[$j++] = $_.dmc4; //#19498 + $_.module(); //#19498 + } //#19498 + for (;;) { //#19509 + var _Op = $k[--$j]; //#19502 + var _Oq = $k[--$j]; //#19502 + $k[$j++] = _Oq; //#19506 + $k[$j++] = _Op; //#19506 + if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19506 + var _Os = $k[--$j]; //#19503 + var _Ot = $k[--$j]; //#19503 + $k[$j++] = _Ot; //#19505 + $k[$j++] = _Os; //#19505 + if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19505 + $k[$j++] = $_.dmn; //#19504 + $_.module(); //#19504 + } //#19504 + } //#19504 + var _Oy = $k[--$j]; //#19507 + var _Oz = $k[--$j]; //#19507 + $k[$j++] = $f(_Oz - 2); //#19508 + $k[$j++] = $f(_Oy + 2); //#19508 + if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19508 + break; //#19508 + } //#19508 + } //#19508 + var _P1 = $k[--$j]; //#19510 + var _P2 = $k[--$j]; //#19510 + $k[$j++] = $f(_P2 + 1); //#19520 + $k[$j++] = $f(_P1 + 3); //#19520 + for (;;) { //#19520 + var _P3 = $k[--$j]; //#19513 + var _P4 = $k[--$j]; //#19513 + $k[$j++] = _P4; //#19517 + $k[$j++] = _P3; //#19517 + if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19517 + var _P6 = $k[--$j]; //#19514 + var _P7 = $k[--$j]; //#19514 + $k[$j++] = _P7; //#19516 + $k[$j++] = _P6; //#19516 + if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19516 + $k[$j++] = $_.dmn; //#19515 + $_.module(); //#19515 + } //#19515 + } //#19515 + var _PC = $k[--$j]; //#19518 + var _PD = $k[--$j]; //#19518 + $k[$j++] = $f(_PD + 2); //#19519 + $k[$j++] = $f(_PC - 2); //#19519 + if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19519 + break; //#19519 + } //#19519 + } //#19519 + var _PF = $k[--$j]; //#19521 + var _PG = $k[--$j]; //#19521 + $k[$j++] = $f(_PG + 3); //#19523 + $k[$j++] = $f(_PF + 1); //#19523 + if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19523 + $j -= 2; //#19523 + break; //#19523 + } //#19523 + } //#19523 + if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19531 + $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19529 + $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19530 + } //#19530 + $_.pixs = $a($_.rows * $_.cols); //#19534 + $_.cwpos = 0; //#19535 + for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19551 + $_.i = _Pa; //#19537 + if (($_.i % ($_.rrows + 2)) == 0) { //#19538 + $k[$j++] = $_.pixs; //#19538 + $k[$j++] = $_.i * $_.cols; //#19538 + $k[$j++] = Infinity; //#19538 + for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19538 + $k[$j++] = 1; //#19538 + $k[$j++] = 0; //#19538 + } //#19538 + var _Pj = $a(); //#19538 + var _Pk = $k[--$j]; //#19538 + $puti($k[--$j], _Pk, _Pj); //#19538 + } //#19538 + if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19539 + $k[$j++] = $_.pixs; //#19539 + $k[$j++] = $_.i * $_.cols; //#19539 + $k[$j++] = Infinity; //#19539 + for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19539 + $k[$j++] = 1; //#19539 + } //#19539 + var _Pv = $a(); //#19539 + var _Pw = $k[--$j]; //#19539 + $puti($k[--$j], _Pw, _Pv); //#19539 + } //#19539 + if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19550 + for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19549 + $_.j = _Q5; //#19542 + if (($_.j % ($_.rcols + 2)) == 0) { //#19543 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19543 + } //#19543 + if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19544 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19544 + } //#19544 + if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19548 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19546 + $_.cwpos = $_.cwpos + 1; //#19547 + } //#19547 + } //#19547 + } //#19547 + } //#19547 var _Qd = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -23512,715 +23919,715 @@ function bwipp_datamatrix() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#19283 - $k[$j++] = _Qd; //#19286 - if (!$_.dontdraw) { //#19286 - bwipp_renmatrix(); //#19286 - } //#19286 - $_ = Object.getPrototypeOf($_); //#19288 - $_ = Object.getPrototypeOf($_); //#19290 -} - + ]); //#19565 + $k[$j++] = _Qd; //#19568 + if (!$_.dontdraw) { //#19568 + bwipp_renmatrix(); //#19568 + } //#19568 + $_ = Object.getPrototypeOf($_); //#19570 + $_ = Object.getPrototypeOf($_); //#19572 +} //bwipp_datamatrix function bwipp_datamatrixrectangular() { - $_ = Object.create($_); //#19319 - $_.dontdraw = false; //#19322 - $k[$j++] = $_; //#19324 - bwipp_processoptions(); //#19324 - $_.options = $k[--$j]; //#19324 - $_.barcode = $k[--$j]; //#19325 - $put($_.options, "dontdraw", true); //#19328 - $put($_.options, "format", "rectangle"); //#19329 - $k[$j++] = 'args'; //#19331 - $k[$j++] = $_.barcode; //#19331 - $k[$j++] = $_.options; //#19331 - bwipp_datamatrix(); //#19331 - var _6 = $k[--$j]; //#19331 - $_[$k[--$j]] = _6; //#19331 - $put($_.args, "opt", $_.options); //#19333 - $k[$j++] = $_.args; //#19336 - if (!$_.dontdraw) { //#19336 - bwipp_renmatrix(); //#19336 - } //#19336 - $_ = Object.getPrototypeOf($_); //#19338 -} - + $_ = Object.create($_); //#19601 + $_.dontdraw = false; //#19604 + $k[$j++] = $_; //#19606 + bwipp_processoptions(); //#19606 + $_.options = $k[--$j]; //#19606 + $_.barcode = $k[--$j]; //#19607 + $put($_.options, "dontdraw", true); //#19610 + $put($_.options, "format", "rectangle"); //#19611 + $k[$j++] = 'args'; //#19613 + $k[$j++] = $_.barcode; //#19613 + $k[$j++] = $_.options; //#19613 + bwipp_datamatrix(); //#19613 + var _6 = $k[--$j]; //#19613 + $_[$k[--$j]] = _6; //#19613 + $put($_.args, "opt", $_.options); //#19615 + $k[$j++] = $_.args; //#19618 + if (!$_.dontdraw) { //#19618 + bwipp_renmatrix(); //#19618 + } //#19618 + $_ = Object.getPrototypeOf($_); //#19620 +} //bwipp_datamatrixrectangular function bwipp_datamatrixrectangularextension() { - $_ = Object.create($_); //#19367 - $_.dontdraw = false; //#19370 - $k[$j++] = $_; //#19372 - bwipp_processoptions(); //#19372 - $_.options = $k[--$j]; //#19372 - $_.barcode = $k[--$j]; //#19373 - $put($_.options, "dontdraw", true); //#19376 - $put($_.options, "dmre", true); //#19377 - $k[$j++] = 'args'; //#19379 - $k[$j++] = $_.barcode; //#19379 - $k[$j++] = $_.options; //#19379 - bwipp_datamatrix(); //#19379 - var _6 = $k[--$j]; //#19379 - $_[$k[--$j]] = _6; //#19379 - $put($_.args, "opt", $_.options); //#19381 - $k[$j++] = $_.args; //#19384 - if (!$_.dontdraw) { //#19384 - bwipp_renmatrix(); //#19384 - } //#19384 - $_ = Object.getPrototypeOf($_); //#19386 -} - + $_ = Object.create($_); //#19649 + $_.dontdraw = false; //#19652 + $k[$j++] = $_; //#19654 + bwipp_processoptions(); //#19654 + $_.options = $k[--$j]; //#19654 + $_.barcode = $k[--$j]; //#19655 + $put($_.options, "dontdraw", true); //#19658 + $put($_.options, "dmre", true); //#19659 + $k[$j++] = 'args'; //#19661 + $k[$j++] = $_.barcode; //#19661 + $k[$j++] = $_.options; //#19661 + bwipp_datamatrix(); //#19661 + var _6 = $k[--$j]; //#19661 + $_[$k[--$j]] = _6; //#19661 + $put($_.args, "opt", $_.options); //#19663 + $k[$j++] = $_.args; //#19666 + if (!$_.dontdraw) { //#19666 + bwipp_renmatrix(); //#19666 + } //#19666 + $_ = Object.getPrototypeOf($_); //#19668 +} //bwipp_datamatrixrectangularextension function bwipp_mailmark() { - $_ = Object.create($_); //#19416 - $_.type = "unset"; //#19419 - $_.parse = false; //#19420 - $_.dontdraw = false; //#19421 - $k[$j++] = $_; //#19423 - bwipp_processoptions(); //#19423 - $_.options = $k[--$j]; //#19423 - $_.barcode = $k[--$j]; //#19424 + $_ = Object.create($_); //#19698 + $_.type = "unset"; //#19701 + $_.parse = false; //#19702 + $_.dontdraw = false; //#19703 + $k[$j++] = $_; //#19705 + bwipp_processoptions(); //#19705 + $_.options = $k[--$j]; //#19705 + $_.barcode = $k[--$j]; //#19706 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#19430 - $_.fncvals = _3; //#19431 - $k[$j++] = 'barcode'; //#19432 - $k[$j++] = $_.barcode; //#19432 - $k[$j++] = $_.fncvals; //#19432 - bwipp_parseinput(); //#19432 - var _6 = $k[--$j]; //#19432 - $_[$k[--$j]] = _6; //#19432 - $_.barlen = $_.barcode.length; //#19433 - delete $_.options["parse"]; //#19434 - var _A = $_['type']; //#19437 - if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19439 - $k[$j++] = 'bwipp.mailmarkBadType#19438'; //#19438 - $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19438 - bwipp_raiseerror(); //#19438 - } //#19438 + ]); //#19712 + $_.fncvals = _3; //#19713 + $k[$j++] = 'barcode'; //#19714 + $k[$j++] = $_.barcode; //#19714 + $k[$j++] = $_.fncvals; //#19714 + bwipp_parseinput(); //#19714 + var _6 = $k[--$j]; //#19714 + $_[$k[--$j]] = _6; //#19714 + $_.barlen = $_.barcode.length; //#19715 + delete $_.options["parse"]; //#19716 + var _A = $_['type']; //#19719 + if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19721 + $k[$j++] = 'bwipp.mailmarkBadType#19720'; //#19720 + $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19720 + bwipp_raiseerror(); //#19720 + } //#19720 var _B = new Map([ ["7", "24x24"], ["9", "32x32"], ["29", "16x48"] - ]); //#19443 - $_.version = $get(_B, $_['type']); //#19444 + ]); //#19725 + $_.version = $get(_B, $_['type']); //#19726 var _E = new Map([ ["7", "square"], ["9", "square"], ["29", "rectangle"] - ]); //#19449 - $_.format = $get(_E, $_['type']); //#19450 - if ($_.barcode.length < 45) { //#19455 - $k[$j++] = 'bwipp.mailmarkBadLength#19454'; //#19454 - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19454 - bwipp_raiseerror(); //#19454 - } //#19454 - if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19458 - $k[$j++] = 'bwipp.mailmarkBadIndicator#19457'; //#19457 - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19457 - bwipp_raiseerror(); //#19457 - } //#19457 - $put($_.options, "dontdraw", true); //#19461 - $put($_.options, "version", $_.version); //#19462 - $put($_.options, "format", $_.format); //#19463 - $put($_.options, "c40headerlength", 45); //#19464 - $k[$j++] = 'args'; //#19465 - $k[$j++] = $_.barcode; //#19465 - $k[$j++] = $_.options; //#19465 - bwipp_datamatrix(); //#19465 - var _S = $k[--$j]; //#19465 - $_[$k[--$j]] = _S; //#19465 - $put($_.args, "opt", $_.options); //#19467 - $k[$j++] = $_.args; //#19470 - if (!$_.dontdraw) { //#19470 - bwipp_renmatrix(); //#19470 - } //#19470 - $_ = Object.getPrototypeOf($_); //#19472 -} - + ]); //#19731 + $_.format = $get(_E, $_['type']); //#19732 + if ($_.barcode.length < 45) { //#19737 + $k[$j++] = 'bwipp.mailmarkBadLength#19736'; //#19736 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19736 + bwipp_raiseerror(); //#19736 + } //#19736 + if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19740 + $k[$j++] = 'bwipp.mailmarkBadIndicator#19739'; //#19739 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19739 + bwipp_raiseerror(); //#19739 + } //#19739 + $put($_.options, "dontdraw", true); //#19743 + $put($_.options, "version", $_.version); //#19744 + $put($_.options, "format", $_.format); //#19745 + $put($_.options, "c40headerlength", 45); //#19746 + $k[$j++] = 'args'; //#19747 + $k[$j++] = $_.barcode; //#19747 + $k[$j++] = $_.options; //#19747 + bwipp_datamatrix(); //#19747 + var _S = $k[--$j]; //#19747 + $_[$k[--$j]] = _S; //#19747 + $put($_.args, "opt", $_.options); //#19749 + $k[$j++] = $_.args; //#19752 + if (!$_.dontdraw) { //#19752 + bwipp_renmatrix(); //#19752 + } //#19752 + $_ = Object.getPrototypeOf($_); //#19754 +} //bwipp_mailmark function bwipp_qrcode() { - $_ = Object.create($_); //#19503 - $_.dontdraw = false; //#19506 - $_.format = "unset"; //#19507 - $_.version = "unset"; //#19508 - $_.eclevel = "unset"; //#19509 - $_.parse = false; //#19510 - $_.parsefnc = false; //#19511 - $_.mask = -1; //#19512 - $k[$j++] = $_; //#19514 - bwipp_processoptions(); //#19514 - $_.options = $k[--$j]; //#19514 - $_.barcode = $k[--$j]; //#19515 - bwipp_loadctx(bwipp_qrcode) //#19517 - if ($eq($_.barcode, "")) { //#19521 - $k[$j++] = 'bwipp.qrcodeEmptyData#19520'; //#19520 - $k[$j++] = "The data must not be empty"; //#19520 - bwipp_raiseerror(); //#19520 - } //#19520 - if ($ne($_.version, "unset")) { //#19532 - if ($eq($_.format, "unset")) { //#19530 - $k[$j++] = "full"; //#19527 - if ($eq($geti($_.version, 0, 1), "M")) { //#19527 - $j--; //#19527 - $k[$j++] = "micro"; //#19527 - } //#19527 - if ($eq($geti($_.version, 0, 1), "R")) { //#19528 - $j--; //#19528 - $k[$j++] = "rmqr"; //#19528 - } //#19528 - $_.format = $k[--$j]; //#19529 - } //#19529 - } else { //#19532 - if ($eq($_.format, "unset")) { //#19532 - $_.format = "full"; //#19532 - } //#19532 - } //#19532 - if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19537 - $k[$j++] = 'bwipp.qrcodeInvalidFormat#19536'; //#19536 - $k[$j++] = "The format must be either full, micro or rmqr"; //#19536 - bwipp_raiseerror(); //#19536 - } //#19536 - if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19541 - $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19540'; //#19540 - $k[$j++] = "A version must be provided for RMQR"; //#19540 - bwipp_raiseerror(); //#19540 - } //#19540 - if ($eq($_.eclevel, "unset")) { //#19544 - $k[$j++] = 'eclevel'; //#19544 - if ($ne($_.format, "micro")) { //#19544 - $k[$j++] = "M"; //#19544 - } else { //#19544 - $k[$j++] = "L"; //#19544 - } //#19544 - var _I = $k[--$j]; //#19544 - $_[$k[--$j]] = _I; //#19544 - } //#19544 - if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19548 - $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19547'; //#19547 - $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19547 - bwipp_raiseerror(); //#19547 - } //#19547 - if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19552 - $k[$j++] = 'bwipp.qrcodeRMQRmask#19551'; //#19551 - $k[$j++] = "A mask cannot be supplied for RMQR"; //#19551 - bwipp_raiseerror(); //#19551 - } //#19551 - if ($_.mask != -1) { //#19558 - var _U = $eq($_.format, "full") ? 8 : 4; //#19555 - if (($_.mask < 1) || ($_.mask > _U)) { //#19557 - $k[$j++] = 'bwipp.qrcodeBadMask#19556'; //#19556 - $k[$j++] = "An invalid mask was supplied"; //#19556 - bwipp_raiseerror(); //#19556 - } //#19556 - } //#19556 - $_.fn1 = -1; //#19561 + $_ = Object.create($_); //#19785 + $_.dontdraw = false; //#19788 + $_.format = "unset"; //#19789 + $_.version = "unset"; //#19790 + $_.eclevel = "unset"; //#19791 + $_.parse = false; //#19792 + $_.parsefnc = false; //#19793 + $_.mask = -1; //#19794 + $k[$j++] = $_; //#19796 + bwipp_processoptions(); //#19796 + $_.options = $k[--$j]; //#19796 + $_.barcode = $k[--$j]; //#19797 + bwipp_loadctx(bwipp_qrcode) //#19799 + if ($eq($_.barcode, "")) { //#19803 + $k[$j++] = 'bwipp.qrcodeEmptyData#19802'; //#19802 + $k[$j++] = "The data must not be empty"; //#19802 + bwipp_raiseerror(); //#19802 + } //#19802 + if ($ne($_.version, "unset")) { //#19814 + if ($eq($_.format, "unset")) { //#19812 + $k[$j++] = "full"; //#19809 + if ($eq($geti($_.version, 0, 1), "M")) { //#19809 + $j--; //#19809 + $k[$j++] = "micro"; //#19809 + } //#19809 + if ($eq($geti($_.version, 0, 1), "R")) { //#19810 + $j--; //#19810 + $k[$j++] = "rmqr"; //#19810 + } //#19810 + $_.format = $k[--$j]; //#19811 + } //#19811 + } else { //#19814 + if ($eq($_.format, "unset")) { //#19814 + $_.format = "full"; //#19814 + } //#19814 + } //#19814 + if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19819 + $k[$j++] = 'bwipp.qrcodeInvalidFormat#19818'; //#19818 + $k[$j++] = "The format must be either full, micro or rmqr"; //#19818 + bwipp_raiseerror(); //#19818 + } //#19818 + if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19823 + $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19822'; //#19822 + $k[$j++] = "A version must be provided for RMQR"; //#19822 + bwipp_raiseerror(); //#19822 + } //#19822 + if ($eq($_.eclevel, "unset")) { //#19826 + $k[$j++] = 'eclevel'; //#19826 + if ($ne($_.format, "micro")) { //#19826 + $k[$j++] = "M"; //#19826 + } else { //#19826 + $k[$j++] = "L"; //#19826 + } //#19826 + var _I = $k[--$j]; //#19826 + $_[$k[--$j]] = _I; //#19826 + } //#19826 + if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19830 + $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19829'; //#19829 + $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19829 + bwipp_raiseerror(); //#19829 + } //#19829 + if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19834 + $k[$j++] = 'bwipp.qrcodeRMQRmask#19833'; //#19833 + $k[$j++] = "A mask cannot be supplied for RMQR"; //#19833 + bwipp_raiseerror(); //#19833 + } //#19833 + if ($_.mask != -1) { //#19840 + var _U = $eq($_.format, "full") ? 8 : 4; //#19837 + if (($_.mask < 1) || ($_.mask > _U)) { //#19839 + $k[$j++] = 'bwipp.qrcodeBadMask#19838'; //#19838 + $k[$j++] = "An invalid mask was supplied"; //#19838 + bwipp_raiseerror(); //#19838 + } //#19838 + } //#19838 + $_.fn1 = -1; //#19843 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#19566 - $_.fncvals = _Y; //#19567 - $k[$j++] = 'msg'; //#19568 - $k[$j++] = $_.barcode; //#19568 - $k[$j++] = $_.fncvals; //#19568 - bwipp_parseinput(); //#19568 - var _b = $k[--$j]; //#19568 - $_[$k[--$j]] = _b; //#19568 - $_.msglen = $_.msg.length; //#19569 - $_.fnc1first = false; //#19572 - if ($_.msglen > 0) { //#19579 - if ($get($_.msg, 0) == $_.fn1) { //#19578 - $_.fnc1first = true; //#19575 - $k[$j++] = Infinity; //#19576 - var _k = $geti($_.msg, 1, $_.msglen - 1); //#19576 - for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19576 - var _n = $get(_k, _l); //#19576 - $k[$j++] = _n; //#19576 - if (_n == 37) { //#19576 - var _o = $k[--$j]; //#19576 - $k[$j++] = _o; //#19576 - $k[$j++] = _o; //#19576 - } //#19576 - } //#19576 - $_.msg = $a(); //#19576 - $_.msglen = $_.msg.length; //#19577 - } //#19577 - } //#19577 - if (!bwipp_qrcode.__19700__) { //#19700 - $_ = Object.create($_); //#19700 - var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19592 - $k[$j++] = 0; //#19593 - for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19593 - var _v = $k[--$j]; //#19593 - $_[$get(_r, _s)] = _v; //#19593 - $k[$j++] = $f(_v + 1); //#19593 - } //#19593 - $j--; //#19593 - $_.N = 0; //#19599 - $_.A = 1; //#19599 - $_.B = 2; //#19599 - $_.K = 3; //#19599 - $_.E = 4; //#19599 - $k[$j++] = Infinity; //#19604 - $k[$j++] = Infinity; //#19603 - for (var _w = 48; _w <= 57; _w += 1) { //#19603 - $k[$j++] = _w; //#19603 - } //#19603 - var _x = $a(); //#19603 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19604 - $k[$j++] = $get(_x, _y); //#19604 - $k[$j++] = -1; //#19604 - } //#19604 - $_.Nexcl = $d(); //#19605 - $k[$j++] = Infinity; //#19612 - $k[$j++] = Infinity; //#19611 - $k[$j++] = 32; //#19610 - $k[$j++] = 36; //#19610 - $k[$j++] = 37; //#19610 - $k[$j++] = 42; //#19610 - $k[$j++] = 43; //#19610 - $k[$j++] = 45; //#19610 - $k[$j++] = 46; //#19610 - $k[$j++] = 47; //#19610 - $k[$j++] = 58; //#19610 - for (var _12 = 65; _12 <= 90; _12 += 1) { //#19610 - $k[$j++] = _12; //#19610 - } //#19610 - $k[$j++] = $_.fn1; //#19611 - var _14 = $a(); //#19611 - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19612 - $k[$j++] = $get(_14, _15); //#19612 - $k[$j++] = -1; //#19612 - } //#19612 - $_.Aexcl = $d(); //#19613 - $k[$j++] = Infinity; //#19621 - $k[$j++] = Infinity; //#19620 - for (var _19 = 129; _19 <= 159; _19 += 1) { //#19619 - $k[$j++] = _19; //#19619 - } //#19619 - for (var _1A = 224; _1A <= 235; _1A += 1) { //#19620 - $k[$j++] = _1A; //#19620 - } //#19620 - var _1B = $a(); //#19620 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19621 - $k[$j++] = $get(_1B, _1C); //#19621 - $k[$j++] = -1; //#19621 - } //#19621 - $_.Kexcl = $d(); //#19622 - $k[$j++] = Infinity; //#19634 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["", -1, -1, -1, -1]); //#19635 - $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19635 - $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19635 - $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19635 - for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19635 - $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19634 - } //#19634 - $_.mids = $a(); //#19634 - $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19678 - $k[$j++] = Infinity; //#19689 - for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19683 - $k[$j++] = 4; //#19682 - } //#19682 - $k[$j++] = 3; //#19690 - $k[$j++] = 5; //#19690 - $k[$j++] = 7; //#19690 - $k[$j++] = 9; //#19690 - for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19690 - $k[$j++] = 3; //#19689 - } //#19689 - $_.termlens = $a(); //#19689 - $_.padstrs = $a(["11101100", "00010001"]); //#19693 - $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19696 - $_.charvals = new Map; //#19697 - for (var _2B = 0; _2B <= 44; _2B += 1) { //#19698 - $put($_.charvals, $get($_.charmap, _2B), _2B); //#19698 - } //#19698 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19698 - bwipp_qrcode.__19700__ = 1; //#19698 - $_ = Object.getPrototypeOf($_); //#19698 - } //#19698 + ]); //#19848 + $_.fncvals = _Y; //#19849 + $k[$j++] = 'msg'; //#19850 + $k[$j++] = $_.barcode; //#19850 + $k[$j++] = $_.fncvals; //#19850 + bwipp_parseinput(); //#19850 + var _b = $k[--$j]; //#19850 + $_[$k[--$j]] = _b; //#19850 + $_.msglen = $_.msg.length; //#19851 + $_.fnc1first = false; //#19854 + if ($_.msglen > 0) { //#19861 + if ($get($_.msg, 0) == $_.fn1) { //#19860 + $_.fnc1first = true; //#19857 + $k[$j++] = Infinity; //#19858 + var _k = $geti($_.msg, 1, $_.msglen - 1); //#19858 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19858 + var _n = $get(_k, _l); //#19858 + $k[$j++] = _n; //#19858 + if (_n == 37) { //#19858 + var _o = $k[--$j]; //#19858 + $k[$j++] = _o; //#19858 + $k[$j++] = _o; //#19858 + } //#19858 + } //#19858 + $_.msg = $a(); //#19858 + $_.msglen = $_.msg.length; //#19859 + } //#19859 + } //#19859 + if (!bwipp_qrcode.__19982__) { //#19982 + $_ = Object.create($_); //#19982 + var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19874 + $k[$j++] = 0; //#19875 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19875 + var _v = $k[--$j]; //#19875 + $_[$get(_r, _s)] = _v; //#19875 + $k[$j++] = $f(_v + 1); //#19875 + } //#19875 + $j--; //#19875 + $_.N = 0; //#19881 + $_.A = 1; //#19881 + $_.B = 2; //#19881 + $_.K = 3; //#19881 + $_.E = 4; //#19881 + $k[$j++] = Infinity; //#19883 + $k[$j++] = Infinity; //#19884 + for (var _w = 48; _w <= 57; _w += 1) { //#19885 + $k[$j++] = _w; //#19885 + } //#19885 + var _x = $a(); //#19885 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19886 + $k[$j++] = $get(_x, _y); //#19886 + $k[$j++] = -1; //#19886 + } //#19886 + $_.Nexcl = $d(); //#19887 + $k[$j++] = Infinity; //#19889 + $k[$j++] = Infinity; //#19890 + $k[$j++] = 32; //#19892 + $k[$j++] = 36; //#19892 + $k[$j++] = 37; //#19892 + $k[$j++] = 42; //#19892 + $k[$j++] = 43; //#19892 + $k[$j++] = 45; //#19892 + $k[$j++] = 46; //#19892 + $k[$j++] = 47; //#19892 + $k[$j++] = 58; //#19892 + for (var _12 = 65; _12 <= 90; _12 += 1) { //#19892 + $k[$j++] = _12; //#19892 + } //#19892 + $k[$j++] = $_.fn1; //#19893 + var _14 = $a(); //#19893 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19894 + $k[$j++] = $get(_14, _15); //#19894 + $k[$j++] = -1; //#19894 + } //#19894 + $_.Aexcl = $d(); //#19895 + $k[$j++] = Infinity; //#19899 + $k[$j++] = Infinity; //#19900 + for (var _19 = 129; _19 <= 159; _19 += 1) { //#19901 + $k[$j++] = _19; //#19901 + } //#19901 + for (var _1A = 224; _1A <= 235; _1A += 1) { //#19902 + $k[$j++] = _1A; //#19902 + } //#19902 + var _1B = $a(); //#19902 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19903 + $k[$j++] = $get(_1B, _1C); //#19903 + $k[$j++] = -1; //#19903 + } //#19903 + $_.Kexcl = $d(); //#19904 + $k[$j++] = Infinity; //#19906 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#19917 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19917 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19917 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19917 + for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19917 + $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19916 + } //#19916 + $_.mids = $a(); //#19916 + $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19960 + $k[$j++] = Infinity; //#19962 + for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19965 + $k[$j++] = 4; //#19964 + } //#19964 + $k[$j++] = 3; //#19972 + $k[$j++] = 5; //#19972 + $k[$j++] = 7; //#19972 + $k[$j++] = 9; //#19972 + for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19972 + $k[$j++] = 3; //#19971 + } //#19971 + $_.termlens = $a(); //#19971 + $_.padstrs = $a(["11101100", "00010001"]); //#19975 + $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19978 + $_.charvals = new Map; //#19979 + for (var _2B = 0; _2B <= 44; _2B += 1) { //#19980 + $put($_.charvals, $get($_.charmap, _2B), _2B); //#19980 + } //#19980 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19980 + bwipp_qrcode.__19982__ = 1; //#19980 + $_ = Object.getPrototypeOf($_); //#19980 + } //#19980 $_.tobin = function() { - var _2H = $s($k[--$j]); //#19704 - $k[$j++] = _2H; //#19704 - for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19704 - var _2K = $k[--$j]; //#19704 - $put(_2K, _2J, 48); //#19704 - $k[$j++] = _2K; //#19704 - } //#19704 - var _2L = $k[--$j]; //#19705 - var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19705 - $puti(_2L, _2L.length - _2O.length, _2O); //#19705 - $k[$j++] = _2L; //#19705 - }; //#19705 + var _2H = $s($k[--$j]); //#19986 + $k[$j++] = _2H; //#19986 + for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19986 + var _2K = $k[--$j]; //#19986 + $put(_2K, _2J, 48); //#19986 + $k[$j++] = _2K; //#19986 + } //#19986 + var _2L = $k[--$j]; //#19987 + var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19987 + $puti(_2L, _2L.length - _2O.length, _2O); //#19987 + $k[$j++] = _2L; //#19987 + }; //#19987 $_.encA = function() { - $_.in = $k[--$j]; //#19709 - if ($_.fnc1first) { //#19712 - $k[$j++] = Infinity; //#19711 - $forall($_.in, function() { //#19711 - var _2S = $k[--$j]; //#19711 - $k[$j++] = _2S; //#19711 - if (_2S == $_.fn1) { //#19711 - $j--; //#19711 - $k[$j++] = 37; //#19711 - } //#19711 - }); //#19711 - $_.in = $a(); //#19711 - } //#19711 - $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19713 - $_.k = 0; //#19714 - $_.m = 0; //#19714 - for (;;) { //#19725 - if ($_.k == $_.in.length) { //#19715 - break; //#19715 - } //#19715 - if ($_.k < ($_.in.length - 1)) { //#19721 - $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19717 - $k[$j++] = 11; //#19717 - $_.tobin(); //#19717 - $_.k = $_.k + 2; //#19718 - } else { //#19721 - $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#19720 - $k[$j++] = 6; //#19720 - $_.tobin(); //#19720 - $_.k = $_.k + 1; //#19721 - } //#19721 - var _2s = $k[--$j]; //#19723 - $puti($_.out, $_.m, _2s); //#19723 - $_.m = _2s.length + $_.m; //#19724 - } //#19724 - $k[$j++] = $geti($_.out, 0, $_.m); //#19726 - }; //#19726 + $_.in = $k[--$j]; //#19991 + if ($_.fnc1first) { //#19994 + $k[$j++] = Infinity; //#19993 + $forall($_.in, function() { //#19993 + var _2S = $k[--$j]; //#19993 + $k[$j++] = _2S; //#19993 + if (_2S == $_.fn1) { //#19993 + $j--; //#19993 + $k[$j++] = 37; //#19993 + } //#19993 + }); //#19993 + $_.in = $a(); //#19993 + } //#19993 + $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19995 + $_.k = 0; //#19996 + $_.m = 0; //#19996 + for (;;) { //#20007 + if ($_.k == $_.in.length) { //#19997 + break; //#19997 + } //#19997 + if ($_.k < ($_.in.length - 1)) { //#20003 + $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19999 + $k[$j++] = 11; //#19999 + $_.tobin(); //#19999 + $_.k = $_.k + 2; //#20000 + } else { //#20003 + $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#20002 + $k[$j++] = 6; //#20002 + $_.tobin(); //#20002 + $_.k = $_.k + 1; //#20003 + } //#20003 + var _2s = $k[--$j]; //#20005 + $puti($_.out, $_.m, _2s); //#20005 + $_.m = _2s.length + $_.m; //#20006 + } //#20006 + $k[$j++] = $geti($_.out, 0, $_.m); //#20008 + }; //#20008 $_.encN = function() { - $_.in = $k[--$j]; //#19730 - $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#19731 - $_.k = 0; //#19732 - $_.m = 0; //#19732 - for (;;) { //#19748 - if ($_.k == $_.in.length) { //#19733 - break; //#19733 - } //#19733 - if ($_.k < ($_.in.length - 2)) { //#19743 - var _38 = $geti($_.in, $_.k, 3); //#19735 - $k[$j++] = 0; //#19735 - for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#19735 - var _3C = $k[--$j]; //#19735 - $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#19735 - } //#19735 - $k[$j++] = 10; //#19735 - $_.tobin(); //#19735 - $_.k = $_.k + 3; //#19736 - } else { //#19743 - if ($_.k == ($_.in.length - 2)) { //#19743 - var _3I = $geti($_.in, $_.k, 2); //#19739 - $k[$j++] = 0; //#19739 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#19739 - var _3M = $k[--$j]; //#19739 - $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#19739 - } //#19739 - $k[$j++] = 7; //#19739 - $_.tobin(); //#19739 - $_.k = $_.k + 2; //#19740 - } else { //#19743 - var _3Q = $geti($_.in, $_.k, 1); //#19742 - $k[$j++] = 0; //#19742 - for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#19742 - var _3U = $k[--$j]; //#19742 - $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#19742 - } //#19742 - $k[$j++] = 4; //#19742 - $_.tobin(); //#19742 - $_.k = $_.k + 1; //#19743 - } //#19743 - } //#19743 - var _3W = $k[--$j]; //#19746 - $puti($_.out, $_.m, _3W); //#19746 - $_.m = _3W.length + $_.m; //#19747 - } //#19747 - $k[$j++] = $geti($_.out, 0, $_.m); //#19749 - }; //#19749 + $_.in = $k[--$j]; //#20012 + $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#20013 + $_.k = 0; //#20014 + $_.m = 0; //#20014 + for (;;) { //#20030 + if ($_.k == $_.in.length) { //#20015 + break; //#20015 + } //#20015 + if ($_.k < ($_.in.length - 2)) { //#20025 + var _38 = $geti($_.in, $_.k, 3); //#20017 + $k[$j++] = 0; //#20017 + for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#20017 + var _3C = $k[--$j]; //#20017 + $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#20017 + } //#20017 + $k[$j++] = 10; //#20017 + $_.tobin(); //#20017 + $_.k = $_.k + 3; //#20018 + } else { //#20025 + if ($_.k == ($_.in.length - 2)) { //#20025 + var _3I = $geti($_.in, $_.k, 2); //#20021 + $k[$j++] = 0; //#20021 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#20021 + var _3M = $k[--$j]; //#20021 + $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#20021 + } //#20021 + $k[$j++] = 7; //#20021 + $_.tobin(); //#20021 + $_.k = $_.k + 2; //#20022 + } else { //#20025 + var _3Q = $geti($_.in, $_.k, 1); //#20024 + $k[$j++] = 0; //#20024 + for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#20024 + var _3U = $k[--$j]; //#20024 + $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#20024 + } //#20024 + $k[$j++] = 4; //#20024 + $_.tobin(); //#20024 + $_.k = $_.k + 1; //#20025 + } //#20025 + } //#20025 + var _3W = $k[--$j]; //#20028 + $puti($_.out, $_.m, _3W); //#20028 + $_.m = _3W.length + $_.m; //#20029 + } //#20029 + $k[$j++] = $geti($_.out, 0, $_.m); //#20031 + }; //#20031 $_.encB = function() { - $_.in = $k[--$j]; //#19753 - if ($_.fnc1first) { //#19756 - $k[$j++] = Infinity; //#19755 - $forall($_.in, function() { //#19755 - var _3g = $k[--$j]; //#19755 - $k[$j++] = _3g; //#19755 - if (_3g == $_.fn1) { //#19755 - $j--; //#19755 - $k[$j++] = 29; //#19755 - } //#19755 - }); //#19755 - $_.in = $a(); //#19755 - } //#19755 - $_.out = $s($_.in.length * 8); //#19757 - for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#19762 - $_.k = _3n; //#19759 - $k[$j++] = $cvi($get($_.in, $_.k)); //#19760 - $k[$j++] = 8; //#19760 - $_.tobin(); //#19760 - $puti($_.out, $_.k * 8, $k[--$j]); //#19761 - } //#19761 - $k[$j++] = $_.out; //#19763 - }; //#19763 + $_.in = $k[--$j]; //#20035 + if ($_.fnc1first) { //#20038 + $k[$j++] = Infinity; //#20037 + $forall($_.in, function() { //#20037 + var _3g = $k[--$j]; //#20037 + $k[$j++] = _3g; //#20037 + if (_3g == $_.fn1) { //#20037 + $j--; //#20037 + $k[$j++] = 29; //#20037 + } //#20037 + }); //#20037 + $_.in = $a(); //#20037 + } //#20037 + $_.out = $s($_.in.length * 8); //#20039 + for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#20044 + $_.k = _3n; //#20041 + $k[$j++] = $cvi($get($_.in, $_.k)); //#20042 + $k[$j++] = 8; //#20042 + $_.tobin(); //#20042 + $puti($_.out, $_.k * 8, $k[--$j]); //#20043 + } //#20043 + $k[$j++] = $_.out; //#20045 + }; //#20045 $_.encK = function() { - $_.in = $k[--$j]; //#19767 - $_.out = $s((~~($_.in.length / 2)) * 13); //#19768 - $_.k = 0; //#19769 - $_.m = 0; //#19769 - for (;;) { //#19777 - if ($_.k == $_.in.length) { //#19770 - break; //#19770 - } //#19770 - var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#19772 - $k[$j++] = _46; //#19772 - if (_46 < 57408) { //#19772 - $k[$j++] = 33088; //#19772 - } else { //#19772 - $k[$j++] = 49472; //#19772 - } //#19772 - var _47 = $k[--$j]; //#19772 - var _49 = $f($k[--$j] - _47); //#19773 - $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#19774 - $k[$j++] = 13; //#19774 - $_.tobin(); //#19774 - var _4A = $k[--$j]; //#19774 - $puti($_.out, $_.m, _4A); //#19774 - $_.m = _4A.length + $_.m; //#19775 - $_.k = $_.k + 2; //#19776 - } //#19776 - $k[$j++] = $_.out; //#19778 - }; //#19778 + $_.in = $k[--$j]; //#20049 + $_.out = $s((~~($_.in.length / 2)) * 13); //#20050 + $_.k = 0; //#20051 + $_.m = 0; //#20051 + for (;;) { //#20059 + if ($_.k == $_.in.length) { //#20052 + break; //#20052 + } //#20052 + var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#20054 + $k[$j++] = _46; //#20054 + if (_46 < 57408) { //#20054 + $k[$j++] = 33088; //#20054 + } else { //#20054 + $k[$j++] = 49472; //#20054 + } //#20054 + var _47 = $k[--$j]; //#20054 + var _49 = $f($k[--$j] - _47); //#20055 + $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#20056 + $k[$j++] = 13; //#20056 + $_.tobin(); //#20056 + var _4A = $k[--$j]; //#20056 + $puti($_.out, $_.m, _4A); //#20056 + $_.m = _4A.length + $_.m; //#20057 + $_.k = $_.k + 2; //#20058 + } //#20058 + $k[$j++] = $_.out; //#20060 + }; //#20060 $_.encE = function() { - var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#19783 - $k[$j++] = _4I; //#19789 - if (_4I <= 127) { //#19788 - $k[$j++] = 8; //#19784 - $_.tobin(); //#19784 - } else { //#19788 - var _4J = $k[--$j]; //#19785 - $k[$j++] = _4J; //#19789 - if (_4J <= 16383) { //#19788 - var _4K = $k[--$j]; //#19786 - $k[$j++] = $f(_4K + 32768); //#19786 - $k[$j++] = 16; //#19786 - $_.tobin(); //#19786 - } else { //#19788 - var _4L = $k[--$j]; //#19788 - $k[$j++] = $f(_4L + 12582912); //#19788 - $k[$j++] = 24; //#19788 - $_.tobin(); //#19788 - } //#19788 - } //#19788 - }; //#19788 - $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#19792 + var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#20065 + $k[$j++] = _4I; //#20071 + if (_4I <= 127) { //#20070 + $k[$j++] = 8; //#20066 + $_.tobin(); //#20066 + } else { //#20070 + var _4J = $k[--$j]; //#20067 + $k[$j++] = _4J; //#20071 + if (_4J <= 16383) { //#20070 + var _4K = $k[--$j]; //#20068 + $k[$j++] = $f(_4K + 32768); //#20068 + $k[$j++] = 16; //#20068 + $_.tobin(); //#20068 + } else { //#20070 + var _4L = $k[--$j]; //#20070 + $k[$j++] = $f(_4L + 12582912); //#20070 + $k[$j++] = 24; //#20070 + $_.tobin(); //#20070 + } //#20070 + } //#20070 + }; //#20070 + $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#20074 $_.addtobits = function() { - var _4N = $k[--$j]; //#19795 - $puti($_.bits, $_.j, _4N); //#19795 - $_.j = _4N.length + $_.j; //#19796 - }; //#19796 - $k[$j++] = Infinity; //#19799 - for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#19799 - $k[$j++] = 0; //#19799 - } //#19799 - $k[$j++] = 0; //#19799 - $_.numNs = $a(); //#19799 - $k[$j++] = Infinity; //#19800 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#19800 - $k[$j++] = 0; //#19800 - } //#19800 - $k[$j++] = 0; //#19800 - $_.numAs = $a(); //#19800 - $k[$j++] = Infinity; //#19801 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#19801 - $k[$j++] = 0; //#19801 - } //#19801 - $k[$j++] = 0; //#19801 - $_.numAorNs = $a(); //#19801 - $k[$j++] = Infinity; //#19802 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#19802 - $k[$j++] = 0; //#19802 - } //#19802 - $k[$j++] = 0; //#19802 - $_.numBs = $a(); //#19802 - $k[$j++] = Infinity; //#19803 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#19803 - $k[$j++] = 0; //#19803 - } //#19803 - $k[$j++] = 0; //#19803 - $_.numKs = $a(); //#19803 - $k[$j++] = Infinity; //#19804 - for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#19804 - $k[$j++] = 0; //#19804 - } //#19804 - $k[$j++] = 9999; //#19804 - $_.nextNs = $a(); //#19804 - $k[$j++] = Infinity; //#19805 - for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#19805 - $k[$j++] = 0; //#19805 - } //#19805 - $k[$j++] = 9999; //#19805 - $_.nextBs = $a(); //#19805 - $k[$j++] = Infinity; //#19806 - for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#19806 - $k[$j++] = 0; //#19806 - } //#19806 - $k[$j++] = 9999; //#19806 - $_.nextAs = $a(); //#19806 - $k[$j++] = Infinity; //#19807 - for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#19807 - $k[$j++] = 0; //#19807 - } //#19807 - $k[$j++] = 9999; //#19807 - $_.nextKs = $a(); //#19807 - $_.isECI = $a($_.msglen); //#19808 - for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#19838 - $_.i = _54; //#19810 - $_.barchar = $get($_.msg, $_.i); //#19811 - var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#19812 - if (_5A) { //#19821 - $k[$j++] = 'sjis'; //#19813 - if (($_.i + 1) < $_.msglen) { //#19813 - $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#19813 - } else { //#19813 - $k[$j++] = 0; //#19813 - } //#19813 - var _5H = $k[--$j]; //#19813 - $_[$k[--$j]] = _5H; //#19813 - if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#19818 - $put($_.nextKs, $_.i, 0); //#19815 - $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#19816 - } else { //#19818 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19818 - } //#19818 - } else { //#19821 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19821 - } //#19821 - var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#19823 - if (_5g) { //#19828 - $put($_.nextNs, $_.i, 0); //#19824 - $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#19825 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19826 - } else { //#19828 - $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#19828 - } //#19828 - var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#19830 - if (_60) { //#19835 - $put($_.nextAs, $_.i, 0); //#19831 - $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#19832 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19833 - } else { //#19835 - $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#19835 - } //#19835 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#19837 - } //#19837 - for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#19845 - $_.i = _6N; //#19840 - if ($get($_.numKs, $_.i) > 0) { //#19844 - $put($_.numKs, $_.i + 1, 0); //#19842 - $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#19843 - } //#19843 - } //#19843 - for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#19854 - $_.i = _6Z; //#19847 - if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#19852 - $put($_.nextBs, $_.i, 0); //#19849 - $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#19850 - } else { //#19852 - $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#19852 - } //#19852 - } //#19852 + var _4N = $k[--$j]; //#20077 + $puti($_.bits, $_.j, _4N); //#20077 + $_.j = _4N.length + $_.j; //#20078 + }; //#20078 + $k[$j++] = Infinity; //#20081 + for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#20081 + $k[$j++] = 0; //#20081 + } //#20081 + $k[$j++] = 0; //#20081 + $_.numNs = $a(); //#20081 + $k[$j++] = Infinity; //#20082 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#20082 + $k[$j++] = 0; //#20082 + } //#20082 + $k[$j++] = 0; //#20082 + $_.numAs = $a(); //#20082 + $k[$j++] = Infinity; //#20083 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#20083 + $k[$j++] = 0; //#20083 + } //#20083 + $k[$j++] = 0; //#20083 + $_.numAorNs = $a(); //#20083 + $k[$j++] = Infinity; //#20084 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#20084 + $k[$j++] = 0; //#20084 + } //#20084 + $k[$j++] = 0; //#20084 + $_.numBs = $a(); //#20084 + $k[$j++] = Infinity; //#20085 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#20085 + $k[$j++] = 0; //#20085 + } //#20085 + $k[$j++] = 0; //#20085 + $_.numKs = $a(); //#20085 + $k[$j++] = Infinity; //#20086 + for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#20086 + $k[$j++] = 0; //#20086 + } //#20086 + $k[$j++] = 9999; //#20086 + $_.nextNs = $a(); //#20086 + $k[$j++] = Infinity; //#20087 + for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#20087 + $k[$j++] = 0; //#20087 + } //#20087 + $k[$j++] = 9999; //#20087 + $_.nextBs = $a(); //#20087 + $k[$j++] = Infinity; //#20088 + for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#20088 + $k[$j++] = 0; //#20088 + } //#20088 + $k[$j++] = 9999; //#20088 + $_.nextAs = $a(); //#20088 + $k[$j++] = Infinity; //#20089 + for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#20089 + $k[$j++] = 0; //#20089 + } //#20089 + $k[$j++] = 9999; //#20089 + $_.nextKs = $a(); //#20089 + $_.isECI = $a($_.msglen); //#20090 + for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#20120 + $_.i = _54; //#20092 + $_.barchar = $get($_.msg, $_.i); //#20093 + var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#20094 + if (_5A) { //#20103 + $k[$j++] = 'sjis'; //#20095 + if (($_.i + 1) < $_.msglen) { //#20095 + $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#20095 + } else { //#20095 + $k[$j++] = 0; //#20095 + } //#20095 + var _5H = $k[--$j]; //#20095 + $_[$k[--$j]] = _5H; //#20095 + if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#20100 + $put($_.nextKs, $_.i, 0); //#20097 + $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#20098 + } else { //#20100 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20100 + } //#20100 + } else { //#20103 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20103 + } //#20103 + var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#20105 + if (_5g) { //#20110 + $put($_.nextNs, $_.i, 0); //#20106 + $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#20107 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20108 + } else { //#20110 + $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#20110 + } //#20110 + var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#20112 + if (_60) { //#20117 + $put($_.nextAs, $_.i, 0); //#20113 + $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#20114 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20115 + } else { //#20117 + $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#20117 + } //#20117 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#20119 + } //#20119 + for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#20127 + $_.i = _6N; //#20122 + if ($get($_.numKs, $_.i) > 0) { //#20126 + $put($_.numKs, $_.i + 1, 0); //#20124 + $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#20125 + } //#20125 + } //#20125 + for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#20136 + $_.i = _6Z; //#20129 + if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#20134 + $put($_.nextBs, $_.i, 0); //#20131 + $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#20132 + } else { //#20134 + $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#20134 + } //#20134 + } //#20134 $_.KbeforeB = function() { - var _71 = $get($k[--$j], $_.ver); //#19856 - $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#19856 - }; //#19856 + var _71 = $get($k[--$j], $_.ver); //#20138 + $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#20138 + }; //#20138 $_.KbeforeA = function() { - var _79 = $get($k[--$j], $_.ver); //#19857 - $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#19857 - }; //#19857 + var _79 = $get($k[--$j], $_.ver); //#20139 + $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#20139 + }; //#20139 $_.KbeforeN = function() { - var _7H = $get($k[--$j], $_.ver); //#19858 - $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#19858 - }; //#19858 + var _7H = $get($k[--$j], $_.ver); //#20140 + $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#20140 + }; //#20140 $_.KbeforeE = function() { - var _7P = $get($k[--$j], $_.ver); //#19859 - $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#19859 - }; //#19859 + var _7P = $get($k[--$j], $_.ver); //#20141 + $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#20141 + }; //#20141 $_.AbeforeK = function() { - var _7W = $get($k[--$j], $_.ver); //#19860 - $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#19860 - }; //#19860 + var _7W = $get($k[--$j], $_.ver); //#20142 + $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#20142 + }; //#20142 $_.AbeforeB = function() { - var _7e = $get($k[--$j], $_.ver); //#19861 - $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#19861 - }; //#19861 + var _7e = $get($k[--$j], $_.ver); //#20143 + $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#20143 + }; //#20143 $_.AbeforeN = function() { - var _7m = $get($k[--$j], $_.ver); //#19862 - $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#19862 - }; //#19862 + var _7m = $get($k[--$j], $_.ver); //#20144 + $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#20144 + }; //#20144 $_.AbeforeE = function() { - var _7u = $get($k[--$j], $_.ver); //#19863 - $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#19863 - }; //#19863 + var _7u = $get($k[--$j], $_.ver); //#20145 + $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#20145 + }; //#20145 $_.NbeforeK = function() { - var _81 = $get($k[--$j], $_.ver); //#19864 - $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#19864 - }; //#19864 + var _81 = $get($k[--$j], $_.ver); //#20146 + $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#20146 + }; //#20146 $_.NbeforeB = function() { - var _89 = $get($k[--$j], $_.ver); //#19865 - $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#19865 - }; //#19865 + var _89 = $get($k[--$j], $_.ver); //#20147 + $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#20147 + }; //#20147 $_.NbeforeA = function() { - var _8H = $get($k[--$j], $_.ver); //#19866 - $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#19866 - }; //#19866 + var _8H = $get($k[--$j], $_.ver); //#20148 + $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#20148 + }; //#20148 $_.NbeforeE = function() { - var _8P = $get($k[--$j], $_.ver); //#19867 - $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#19867 - }; //#19867 + var _8P = $get($k[--$j], $_.ver); //#20149 + $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#20149 + }; //#20149 $_.AorNbeforeB = function() { - var _8W = $get($k[--$j], $_.ver); //#19868 - $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#19868 - }; //#19868 + var _8W = $get($k[--$j], $_.ver); //#20150 + $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#20150 + }; //#20150 $_.AorNbeforeE = function() { - var _8e = $get($k[--$j], $_.ver); //#19869 - $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#19869 - }; //#19869 + var _8e = $get($k[--$j], $_.ver); //#20151 + $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#20151 + }; //#20151 $_.nextNslt = function() { - if ($get($_.nextNs, $_.i) >= $_.msglen) { //#19871 - $j--; //#19871 - $k[$j++] = true; //#19871 - } else { //#19871 - var _8u = $get($k[--$j], $_.ver); //#19871 - $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#19871 - } //#19871 - }; //#19871 - if (!bwipp_qrcode.__19901__) { //#19901 - $_ = Object.create($_); //#19901 - $k[$j++] = Infinity; //#19896 - $k[$j++] = "full"; //#19885 - $k[$j++] = Infinity; //#19885 - for (var _8v = 0; _8v <= 9; _8v += 1) { //#19883 - $k[$j++] = $cvrs($s(2), _8v, 10); //#19883 - $k[$j++] = $_.v1to9; //#19883 - } //#19883 - for (var _8z = 10; _8z <= 26; _8z += 1) { //#19884 - $k[$j++] = $cvrs($s(2), _8z, 10); //#19884 - $k[$j++] = $_.v10to26; //#19884 - } //#19884 - for (var _93 = 27; _93 <= 40; _93 += 1) { //#19885 - $k[$j++] = $cvrs($s(2), _93, 10); //#19885 - $k[$j++] = $_.v27to40; //#19885 - } //#19885 - var _97 = $d(); //#19885 + if ($get($_.nextNs, $_.i) >= $_.msglen) { //#20153 + $j--; //#20153 + $k[$j++] = true; //#20153 + } else { //#20153 + var _8u = $get($k[--$j], $_.ver); //#20153 + $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#20153 + } //#20153 + }; //#20153 + if (!bwipp_qrcode.__20183__) { //#20183 + $_ = Object.create($_); //#20183 + $k[$j++] = Infinity; //#20163 + $k[$j++] = "full"; //#20167 + $k[$j++] = Infinity; //#20164 + for (var _8v = 0; _8v <= 9; _8v += 1) { //#20165 + $k[$j++] = $cvrs($s(2), _8v, 10); //#20165 + $k[$j++] = $_.v1to9; //#20165 + } //#20165 + for (var _8z = 10; _8z <= 26; _8z += 1) { //#20166 + $k[$j++] = $cvrs($s(2), _8z, 10); //#20166 + $k[$j++] = $_.v10to26; //#20166 + } //#20166 + for (var _93 = 27; _93 <= 40; _93 += 1) { //#20167 + $k[$j++] = $cvrs($s(2), _93, 10); //#20167 + $k[$j++] = $_.v27to40; //#20167 + } //#20167 + var _97 = $d(); //#20167 var _9C = new Map([ ["M1", $_.vM1], ["M2", $_.vM2], ["M3", $_.vM3], ["M4", $_.vM4] - ]); //#19888 + ]); //#20170 var _9j = new Map([ ["R7x43", $_.vR7x43], ["R7x59", $_.vR7x59], @@ -24254,3690 +24661,3726 @@ function bwipp_qrcode() { ["R17x77", $_.vR17x77], ["R17x99", $_.vR17x99], ["R17x139", $_.vR17x139] - ]); //#19896 - $k[$j++] = _97; //#19896 - $k[$j++] = "micro"; //#19896 - $k[$j++] = _9C; //#19896 - $k[$j++] = "rmqr"; //#19896 - $k[$j++] = _9j; //#19896 - $_.versetmap = $d(); //#19898 - $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#19899 - $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#19900 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19900 - bwipp_qrcode.__19901__ = 1; //#19900 - $_ = Object.getPrototypeOf($_); //#19900 - } //#19900 - if ($ne($_.version, "unset")) { //#19919 - var _9y = $get($_.versetmap, $_.format); //#19904 - var _9z = $_.version; //#19904 - var _A0 = $get(_9y, _9z) !== undefined; //#19904 - $k[$j++] = _9y; //#19914 - $k[$j++] = _9z; //#19914 - if (!_A0) { //#19914 - $j -= 2; //#19905 - if ($eq($_.format, "full")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#19907'; //#19907 - $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#19907 - bwipp_raiseerror(); //#19907 - } else { //#19912 - if ($eq($_.format, "micro")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#19910'; //#19910 - $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#19910 - bwipp_raiseerror(); //#19910 - } else { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#19912'; //#19912 - $k[$j++] = "Invalid version for an RMQR symbol"; //#19912 - bwipp_raiseerror(); //#19912 - } //#19912 - } //#19912 - } //#19912 - var _A3 = $k[--$j]; //#19915 - var _A5 = $get($k[--$j], _A3); //#19915 - $k[$j++] = _A5; //#19915 - $k[$j++] = Infinity; //#19915 - var _A6 = $k[--$j]; //#19915 - var _A7 = $k[--$j]; //#19915 - $k[$j++] = _A6; //#19915 - $k[$j++] = _A7; //#19915 - $_.verset = $a(); //#19915 - } else { //#19919 - if ($eq($_.format, "full")) { //#19918 - $_.verset = $_.versetfull; //#19918 - } //#19918 - if ($eq($_.format, "micro")) { //#19919 - $_.verset = $_.versetmicro; //#19919 - } //#19919 - } //#19919 - $k[$j++] = Infinity; //#19924 - for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#19924 - $k[$j++] = -1; //#19924 - } //#19924 - $_.msgbits = $a(); //#19924 - $_.e = 10000; //#19925 - if (!bwipp_qrcode.__19955__) { //#19955 - $_ = Object.create($_); //#19955 - $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19931 - $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19932 - $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19933 - $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19935 - $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#19937 - $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#19938 - $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#19939 - $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#19940 - $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#19942 - $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#19943 - $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#19944 - $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#19945 - $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#19947 - $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#19948 - $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#19949 - $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19950 - $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#19952 - $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#19953 - $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#19954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19954 - bwipp_qrcode.__19955__ = 1; //#19954 - $_ = Object.getPrototypeOf($_); //#19954 - } //#19954 - var _B7 = $_.verset; //#19957 - for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20089 - $_.ver = $get(_B7, _B8); //#19958 - $_.mode = -1; //#19961 - $_.seq = $a([]); //#19961 - $_.i = 0; //#19961 - for (;;) { //#20058 - if ($_.i >= $_.msglen) { //#19962 - break; //#19962 - } //#19962 - $_.numK = $get($_.numKs, $_.i); //#19963 - $_.numB = $get($_.numBs, $_.i); //#19964 - $_.numA = $get($_.numAs, $_.i); //#19965 - $_.numN = $get($_.numNs, $_.i); //#19966 - $_.numAorN = $get($_.numAorNs, $_.i); //#19967 - $_.eci = $get($_.isECI, $_.i); //#19968 - if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#19969 - $_.seq = -1; //#19969 - break; //#19969 - } //#19969 - if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#19970 - $_.seq = -1; //#19970 - break; //#19970 - } //#19970 - if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#19971 - $_.seq = -1; //#19971 - break; //#19971 - } //#19971 - if ($eq($_.ver, $_.vM1) && $_.eci) { //#19972 - $_.seq = -1; //#19972 - break; //#19972 - } //#19972 - if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#19973 - $_.seq = -1; //#19973 - break; //#19973 - } //#19973 - if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#19974 - $_.seq = -1; //#19974 - break; //#19974 - } //#19974 - if ($eq($_.ver, $_.vM2) && $_.eci) { //#19975 - $_.seq = -1; //#19975 - break; //#19975 - } //#19975 - if ($eq($_.ver, $_.vM3) && $_.eci) { //#19976 - $_.seq = -1; //#19976 - break; //#19976 - } //#19976 - if ($eq($_.ver, $_.vM4) && $_.eci) { //#19977 - $_.seq = -1; //#19977 - break; //#19977 - } //#19977 - for (;;) { //#20038 - if ($_.eci) { //#19981 - $k[$j++] = $_.E; //#19980 - break; //#19980 - } //#19980 - if ($_.mode == -1) { //#19996 - $k[$j++] = $_.mode0forceKB; //#19983 - $_.KbeforeA(); //#19983 - if ($k[--$j]) { //#19983 - $k[$j++] = $_.K; //#19983 - break; //#19983 - } //#19983 - $k[$j++] = $_.mode0forceKB; //#19984 - $_.KbeforeN(); //#19984 - if ($k[--$j]) { //#19984 - $k[$j++] = $_.K; //#19984 - break; //#19984 - } //#19984 - $k[$j++] = $_.modeBKbeforeE; //#19985 - $_.KbeforeB(); //#19985 - if ($k[--$j]) { //#19985 - $k[$j++] = $_.K; //#19985 - break; //#19985 - } //#19985 - $k[$j++] = $_.mode0forceKB; //#19986 - $_.KbeforeE(); //#19986 - if ($k[--$j]) { //#19986 - $k[$j++] = $_.K; //#19986 - break; //#19986 - } //#19986 - if ($_.numK >= 1) { //#19987 - $k[$j++] = $_.B; //#19987 - break; //#19987 - } //#19987 - $k[$j++] = $_.mode0NbeforeB; //#19988 - $_.NbeforeB(); //#19988 - if ($k[--$j]) { //#19988 - $k[$j++] = $_.N; //#19988 - break; //#19988 - } //#19988 - $k[$j++] = $_.mode0forceKB; //#19989 - $_.NbeforeB(); //#19989 - if ($k[--$j]) { //#19989 - $k[$j++] = $_.B; //#19989 - break; //#19989 - } //#19989 - $k[$j++] = $_.modeANbeforeE; //#19990 - $_.NbeforeA(); //#19990 - if ($k[--$j]) { //#19990 - $k[$j++] = $_.N; //#19990 - break; //#19990 - } //#19990 - $k[$j++] = $_.mode0forceN; //#19991 - $_.NbeforeE(); //#19991 - if ($k[--$j]) { //#19991 - $k[$j++] = $_.N; //#19991 - break; //#19991 - } //#19991 - $k[$j++] = $_.modeBAbeforeE; //#19992 - $_.AbeforeK(); //#19992 - if ($k[--$j]) { //#19992 - $k[$j++] = $_.A; //#19992 - break; //#19992 - } //#19992 - $k[$j++] = $_.modeBAbeforeE; //#19993 - $_.AorNbeforeB(); //#19993 - if ($k[--$j]) { //#19993 - $k[$j++] = $_.A; //#19993 - break; //#19993 - } //#19993 - $k[$j++] = $_.mode0forceA; //#19994 - $_.AorNbeforeE(); //#19994 - if ($k[--$j]) { //#19994 - $k[$j++] = $_.A; //#19994 - break; //#19994 - } //#19994 - $k[$j++] = $_.B; //#19995 - break; //#19995 - } //#19995 - if ($_.mode == $_.B) { //#20014 - $k[$j++] = $_.modeBKbeforeB; //#19998 - $_.KbeforeB(); //#19998 - if ($k[--$j]) { //#19998 - $k[$j++] = $_.K; //#19998 - break; //#19998 - } //#19998 - $k[$j++] = $_.modeBKbeforeA; //#19999 - $_.KbeforeA(); //#19999 - if ($k[--$j]) { //#19999 - $k[$j++] = $_.K; //#19999 - break; //#19999 - } //#19999 - $k[$j++] = $_.modeBKbeforeN; //#20000 - $_.KbeforeN(); //#20000 - if ($k[--$j]) { //#20000 - $k[$j++] = $_.K; //#20000 - break; //#20000 - } //#20000 - $k[$j++] = $_.modeBKbeforeE; //#20001 - $_.KbeforeE(); //#20001 - if ($k[--$j]) { //#20001 - $k[$j++] = $_.K; //#20001 - break; //#20001 - } //#20001 - $k[$j++] = $_.modeBAbeforeK; //#20002 - $_.AbeforeK(); //#20002 - if ($k[--$j]) { //#20002 - $k[$j++] = $_.A; //#20002 - break; //#20002 - } //#20002 - $k[$j++] = $_.modeBAbeforeB; //#20003 - $_.AbeforeB(); //#20003 - if ($k[--$j]) { //#20003 - $k[$j++] = $_.A; //#20003 - break; //#20003 - } //#20003 - $k[$j++] = $_.modeBAbeforeN; //#20004 - $_.AbeforeN(); //#20004 - if ($k[--$j]) { //#20004 - $k[$j++] = $_.A; //#20004 - break; //#20004 - } //#20004 - $k[$j++] = $_.modeBAbeforeE; //#20005 - $_.AbeforeE(); //#20005 - if ($k[--$j]) { //#20005 - $k[$j++] = $_.A; //#20005 - break; //#20005 - } //#20005 - $k[$j++] = $_.modeBNbeforeK; //#20006 - $_.NbeforeK(); //#20006 - if ($k[--$j]) { //#20006 - $k[$j++] = $_.N; //#20006 - break; //#20006 - } //#20006 - $k[$j++] = $_.modeBNbeforeB; //#20007 - $_.NbeforeB(); //#20007 - if ($k[--$j]) { //#20007 - $k[$j++] = $_.N; //#20007 - break; //#20007 - } //#20007 - $k[$j++] = $_.modeBNbeforeA; //#20008 - $_.NbeforeA(); //#20008 - if ($k[--$j]) { //#20008 - $k[$j++] = $_.N; //#20008 - break; //#20008 - } //#20008 - $k[$j++] = $_.modeBNbeforeE; //#20009 - $_.NbeforeE(); //#20009 - if ($k[--$j]) { //#20009 - $k[$j++] = $_.N; //#20009 - break; //#20009 - } //#20009 - $k[$j++] = $_.modeBAbeforeE; //#20010 - $_.AorNbeforeE(); //#20010 - var _DH = $k[--$j]; //#20010 - if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20012 - $k[$j++] = $_.modeBNbeforeA; //#20011 - $_.nextNslt(); //#20011 - if ($k[--$j]) { //#20011 - $k[$j++] = $_.A; //#20011 - break; //#20011 - } //#20011 - } //#20011 - $k[$j++] = $_.B; //#20013 - break; //#20013 - } //#20013 - if ($_.mode == $_.A) { //#20023 - if ($_.numK >= 1) { //#20016 - $k[$j++] = $_.K; //#20016 - break; //#20016 - } //#20016 - if ($_.numB >= 1) { //#20017 - $k[$j++] = $_.B; //#20017 - break; //#20017 - } //#20017 - $k[$j++] = $_.modeANbeforeA; //#20018 - $_.NbeforeA(); //#20018 - if ($k[--$j]) { //#20018 - $k[$j++] = $_.N; //#20018 - break; //#20018 - } //#20018 - $k[$j++] = $_.modeANbeforeB; //#20019 - $_.NbeforeB(); //#20019 - if ($k[--$j]) { //#20019 - $k[$j++] = $_.N; //#20019 - break; //#20019 - } //#20019 - $k[$j++] = $_.modeANbeforeE; //#20020 - $_.NbeforeE(); //#20020 - if ($k[--$j]) { //#20020 - $k[$j++] = $_.N; //#20020 - break; //#20020 - } //#20020 - if (($_.numA >= 1) || ($_.numN >= 1)) { //#20021 - $k[$j++] = $_.A; //#20021 - break; //#20021 - } //#20021 - $k[$j++] = $_.B; //#20022 - break; //#20022 - } //#20022 - if ($_.mode == $_.N) { //#20030 - if ($_.numK >= 1) { //#20025 - $k[$j++] = $_.K; //#20025 - break; //#20025 - } //#20025 - if ($_.numB >= 1) { //#20026 - $k[$j++] = $_.B; //#20026 - break; //#20026 - } //#20026 - if ($_.numA >= 1) { //#20027 - $k[$j++] = $_.A; //#20027 - break; //#20027 - } //#20027 - if ($_.numN >= 1) { //#20028 - $k[$j++] = $_.N; //#20028 - break; //#20028 - } //#20028 - $k[$j++] = $_.B; //#20029 - break; //#20029 - } //#20029 - if ($_.mode == $_.K) { //#20037 - if ($_.numB >= 1) { //#20032 - $k[$j++] = $_.B; //#20032 - break; //#20032 - } //#20032 - if ($_.numA >= 1) { //#20033 - $k[$j++] = $_.A; //#20033 - break; //#20033 - } //#20033 - if ($_.numN >= 1) { //#20034 - $k[$j++] = $_.N; //#20034 - break; //#20034 - } //#20034 - if ($_.numK >= 1) { //#20035 - $k[$j++] = $_.K; //#20035 - break; //#20035 - } //#20035 - $k[$j++] = $_.B; //#20036 - break; //#20036 - } //#20036 - } //#20036 - var _E1 = $k[--$j]; //#20039 - $k[$j++] = _E1; //#20039 - if ((_E1 == $_.K) && $_.fnc1first) { //#20039 - $j--; //#20039 - $k[$j++] = $_.B; //#20039 - } //#20039 - var _E5 = $k[--$j]; //#20040 - $k[$j++] = _E5; //#20056 - if (_E5 == $_.mode) { //#20055 - $j--; //#20041 - var _EB = ($_.mode == $_.K) ? 2 : 1; //#20042 - $_.dat = $geti($_.msg, $_.i, _EB); //#20042 - $k[$j++] = Infinity; //#20045 - $aload($_.seq); //#20044 - $k[$j++] = Infinity; //#20045 - var _EE = $k[--$j]; //#20045 - var _EF = $k[--$j]; //#20045 - $k[$j++] = _EE; //#20045 - $aload(_EF); //#20045 - $aload($_.dat); //#20045 - var _EH = $a(); //#20045 - $k[$j++] = _EH; //#20045 - $_.seq = $a(); //#20045 - } else { //#20055 - $_.mode = $k[--$j]; //#20048 - if ($_.mode == $_.K) { //#20049 - $k[$j++] = $_.K; //#20049 - $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20049 - } //#20049 - if ($_.mode == $_.B) { //#20050 - $k[$j++] = $_.B; //#20050 - $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20050 - } //#20050 - if ($_.mode == $_.A) { //#20051 - $k[$j++] = $_.A; //#20051 - $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20051 - } //#20051 - if ($_.mode == $_.N) { //#20052 - $k[$j++] = $_.N; //#20052 - $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20052 - } //#20052 - if ($_.mode == $_.E) { //#20053 - $_.mode = -1; //#20053 - $k[$j++] = $_.E; //#20053 - $k[$j++] = $geti($_.msg, $_.i, 1); //#20053 - } //#20053 - $_.dat = $k[--$j]; //#20054 - $_.sw = $k[--$j]; //#20054 - $k[$j++] = Infinity; //#20055 - $aload($_.seq); //#20055 - $k[$j++] = $_.sw; //#20055 - $k[$j++] = $_.dat; //#20055 - $_.seq = $a(); //#20055 - } //#20055 - $_.i = $_.i + $_.dat.length; //#20057 - } //#20057 - for (;;) { //#20088 - if ($_.seq == -1) { //#20062 - break; //#20062 - } //#20062 - $_.bits = $s(23648); //#20063 - $_.j = 0; //#20064 - if ($_.fnc1first) { //#20067 - if ($lt($_.ver, $_.vR7x43)) { //#20066 - $k[$j++] = "0101"; //#20066 - } else { //#20066 - $k[$j++] = "101"; //#20066 - } //#20066 - $_.addtobits(); //#20066 - } //#20066 - $_.abort = false; //#20068 - for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20083 - $_.i = _F7; //#20070 - $_.mode = $get($_.seq, $_.i); //#20071 - $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20072 - $_.addtobits(); //#20072 - $_.chars = $get($_.seq, $_.i + 1); //#20073 - $k[$j++] = 'charslen'; //#20074 - $k[$j++] = $_.chars.length; //#20074 - if ($_.mode == $_.K) { //#20074 - var _FM = $k[--$j]; //#20074 - $k[$j++] = ~~(_FM / 2); //#20074 - } //#20074 - var _FN = $k[--$j]; //#20074 - $_[$k[--$j]] = _FN; //#20074 - if ($_.mode != $_.E) { //#20081 - $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20076 - if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20079 - $_.abort = true; //#20078 - break; //#20078 - } //#20078 - $k[$j++] = $_.charslen; //#20080 - $k[$j++] = $_.cclen; //#20080 - $_.tobin(); //#20080 - $_.addtobits(); //#20080 - } //#20080 - $k[$j++] = $_.chars; //#20082 + ]); //#20178 + $k[$j++] = _97; //#20178 + $k[$j++] = "micro"; //#20178 + $k[$j++] = _9C; //#20178 + $k[$j++] = "rmqr"; //#20178 + $k[$j++] = _9j; //#20178 + $_.versetmap = $d(); //#20180 + $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#20181 + $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#20182 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20182 + bwipp_qrcode.__20183__ = 1; //#20182 + $_ = Object.getPrototypeOf($_); //#20182 + } //#20182 + if ($ne($_.version, "unset")) { //#20201 + var _9y = $get($_.versetmap, $_.format); //#20186 + var _9z = $_.version; //#20186 + var _A0 = $get(_9y, _9z) !== undefined; //#20186 + $k[$j++] = _9y; //#20196 + $k[$j++] = _9z; //#20196 + if (!_A0) { //#20196 + $j -= 2; //#20187 + if ($eq($_.format, "full")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#20189'; //#20189 + $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#20189 + bwipp_raiseerror(); //#20189 + } else { //#20194 + if ($eq($_.format, "micro")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#20192'; //#20192 + $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#20192 + bwipp_raiseerror(); //#20192 + } else { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#20194'; //#20194 + $k[$j++] = "Invalid version for an RMQR symbol"; //#20194 + bwipp_raiseerror(); //#20194 + } //#20194 + } //#20194 + } //#20194 + var _A3 = $k[--$j]; //#20197 + var _A5 = $get($k[--$j], _A3); //#20197 + $k[$j++] = _A5; //#20197 + $k[$j++] = Infinity; //#20197 + var _A6 = $k[--$j]; //#20197 + var _A7 = $k[--$j]; //#20197 + $k[$j++] = _A6; //#20197 + $k[$j++] = _A7; //#20197 + $_.verset = $a(); //#20197 + } else { //#20201 + if ($eq($_.format, "full")) { //#20200 + $_.verset = $_.versetfull; //#20200 + } //#20200 + if ($eq($_.format, "micro")) { //#20201 + $_.verset = $_.versetmicro; //#20201 + } //#20201 + } //#20201 + $k[$j++] = Infinity; //#20206 + for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#20206 + $k[$j++] = -1; //#20206 + } //#20206 + $_.msgbits = $a(); //#20206 + $_.e = 10000; //#20207 + if (!bwipp_qrcode.__20237__) { //#20237 + $_ = Object.create($_); //#20237 + $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20213 + $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20214 + $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20215 + $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20217 + $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#20219 + $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#20220 + $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#20221 + $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#20222 + $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#20224 + $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#20225 + $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#20226 + $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#20227 + $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#20229 + $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#20230 + $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#20231 + $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20232 + $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#20234 + $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#20235 + $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#20236 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20236 + bwipp_qrcode.__20237__ = 1; //#20236 + $_ = Object.getPrototypeOf($_); //#20236 + } //#20236 + var _B7 = $_.verset; //#20239 + for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20371 + $_.ver = $get(_B7, _B8); //#20240 + $_.mode = -1; //#20243 + $_.seq = $a([]); //#20243 + $_.i = 0; //#20243 + for (;;) { //#20340 + if ($_.i >= $_.msglen) { //#20244 + break; //#20244 + } //#20244 + $_.numK = $get($_.numKs, $_.i); //#20245 + $_.numB = $get($_.numBs, $_.i); //#20246 + $_.numA = $get($_.numAs, $_.i); //#20247 + $_.numN = $get($_.numNs, $_.i); //#20248 + $_.numAorN = $get($_.numAorNs, $_.i); //#20249 + $_.eci = $get($_.isECI, $_.i); //#20250 + if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#20251 + $_.seq = -1; //#20251 + break; //#20251 + } //#20251 + if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#20252 + $_.seq = -1; //#20252 + break; //#20252 + } //#20252 + if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#20253 + $_.seq = -1; //#20253 + break; //#20253 + } //#20253 + if ($eq($_.ver, $_.vM1) && $_.eci) { //#20254 + $_.seq = -1; //#20254 + break; //#20254 + } //#20254 + if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#20255 + $_.seq = -1; //#20255 + break; //#20255 + } //#20255 + if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#20256 + $_.seq = -1; //#20256 + break; //#20256 + } //#20256 + if ($eq($_.ver, $_.vM2) && $_.eci) { //#20257 + $_.seq = -1; //#20257 + break; //#20257 + } //#20257 + if ($eq($_.ver, $_.vM3) && $_.eci) { //#20258 + $_.seq = -1; //#20258 + break; //#20258 + } //#20258 + if ($eq($_.ver, $_.vM4) && $_.eci) { //#20259 + $_.seq = -1; //#20259 + break; //#20259 + } //#20259 + for (;;) { //#20320 + if ($_.eci) { //#20263 + $k[$j++] = $_.E; //#20262 + break; //#20262 + } //#20262 + if ($_.mode == -1) { //#20278 + $k[$j++] = $_.mode0forceKB; //#20265 + $_.KbeforeA(); //#20265 + if ($k[--$j]) { //#20265 + $k[$j++] = $_.K; //#20265 + break; //#20265 + } //#20265 + $k[$j++] = $_.mode0forceKB; //#20266 + $_.KbeforeN(); //#20266 + if ($k[--$j]) { //#20266 + $k[$j++] = $_.K; //#20266 + break; //#20266 + } //#20266 + $k[$j++] = $_.modeBKbeforeE; //#20267 + $_.KbeforeB(); //#20267 + if ($k[--$j]) { //#20267 + $k[$j++] = $_.K; //#20267 + break; //#20267 + } //#20267 + $k[$j++] = $_.mode0forceKB; //#20268 + $_.KbeforeE(); //#20268 + if ($k[--$j]) { //#20268 + $k[$j++] = $_.K; //#20268 + break; //#20268 + } //#20268 + if ($_.numK >= 1) { //#20269 + $k[$j++] = $_.B; //#20269 + break; //#20269 + } //#20269 + $k[$j++] = $_.mode0NbeforeB; //#20270 + $_.NbeforeB(); //#20270 + if ($k[--$j]) { //#20270 + $k[$j++] = $_.N; //#20270 + break; //#20270 + } //#20270 + $k[$j++] = $_.mode0forceKB; //#20271 + $_.NbeforeB(); //#20271 + if ($k[--$j]) { //#20271 + $k[$j++] = $_.B; //#20271 + break; //#20271 + } //#20271 + $k[$j++] = $_.modeANbeforeE; //#20272 + $_.NbeforeA(); //#20272 + if ($k[--$j]) { //#20272 + $k[$j++] = $_.N; //#20272 + break; //#20272 + } //#20272 + $k[$j++] = $_.mode0forceN; //#20273 + $_.NbeforeE(); //#20273 + if ($k[--$j]) { //#20273 + $k[$j++] = $_.N; //#20273 + break; //#20273 + } //#20273 + $k[$j++] = $_.modeBAbeforeE; //#20274 + $_.AbeforeK(); //#20274 + if ($k[--$j]) { //#20274 + $k[$j++] = $_.A; //#20274 + break; //#20274 + } //#20274 + $k[$j++] = $_.modeBAbeforeE; //#20275 + $_.AorNbeforeB(); //#20275 + if ($k[--$j]) { //#20275 + $k[$j++] = $_.A; //#20275 + break; //#20275 + } //#20275 + $k[$j++] = $_.mode0forceA; //#20276 + $_.AorNbeforeE(); //#20276 + if ($k[--$j]) { //#20276 + $k[$j++] = $_.A; //#20276 + break; //#20276 + } //#20276 + $k[$j++] = $_.B; //#20277 + break; //#20277 + } //#20277 + if ($_.mode == $_.B) { //#20296 + $k[$j++] = $_.modeBKbeforeB; //#20280 + $_.KbeforeB(); //#20280 + if ($k[--$j]) { //#20280 + $k[$j++] = $_.K; //#20280 + break; //#20280 + } //#20280 + $k[$j++] = $_.modeBKbeforeA; //#20281 + $_.KbeforeA(); //#20281 + if ($k[--$j]) { //#20281 + $k[$j++] = $_.K; //#20281 + break; //#20281 + } //#20281 + $k[$j++] = $_.modeBKbeforeN; //#20282 + $_.KbeforeN(); //#20282 + if ($k[--$j]) { //#20282 + $k[$j++] = $_.K; //#20282 + break; //#20282 + } //#20282 + $k[$j++] = $_.modeBKbeforeE; //#20283 + $_.KbeforeE(); //#20283 + if ($k[--$j]) { //#20283 + $k[$j++] = $_.K; //#20283 + break; //#20283 + } //#20283 + $k[$j++] = $_.modeBAbeforeK; //#20284 + $_.AbeforeK(); //#20284 + if ($k[--$j]) { //#20284 + $k[$j++] = $_.A; //#20284 + break; //#20284 + } //#20284 + $k[$j++] = $_.modeBAbeforeB; //#20285 + $_.AbeforeB(); //#20285 + if ($k[--$j]) { //#20285 + $k[$j++] = $_.A; //#20285 + break; //#20285 + } //#20285 + $k[$j++] = $_.modeBAbeforeN; //#20286 + $_.AbeforeN(); //#20286 + if ($k[--$j]) { //#20286 + $k[$j++] = $_.A; //#20286 + break; //#20286 + } //#20286 + $k[$j++] = $_.modeBAbeforeE; //#20287 + $_.AbeforeE(); //#20287 + if ($k[--$j]) { //#20287 + $k[$j++] = $_.A; //#20287 + break; //#20287 + } //#20287 + $k[$j++] = $_.modeBNbeforeK; //#20288 + $_.NbeforeK(); //#20288 + if ($k[--$j]) { //#20288 + $k[$j++] = $_.N; //#20288 + break; //#20288 + } //#20288 + $k[$j++] = $_.modeBNbeforeB; //#20289 + $_.NbeforeB(); //#20289 + if ($k[--$j]) { //#20289 + $k[$j++] = $_.N; //#20289 + break; //#20289 + } //#20289 + $k[$j++] = $_.modeBNbeforeA; //#20290 + $_.NbeforeA(); //#20290 + if ($k[--$j]) { //#20290 + $k[$j++] = $_.N; //#20290 + break; //#20290 + } //#20290 + $k[$j++] = $_.modeBNbeforeE; //#20291 + $_.NbeforeE(); //#20291 + if ($k[--$j]) { //#20291 + $k[$j++] = $_.N; //#20291 + break; //#20291 + } //#20291 + $k[$j++] = $_.modeBAbeforeE; //#20292 + $_.AorNbeforeE(); //#20292 + var _DH = $k[--$j]; //#20292 + if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20294 + $k[$j++] = $_.modeBNbeforeA; //#20293 + $_.nextNslt(); //#20293 + if ($k[--$j]) { //#20293 + $k[$j++] = $_.A; //#20293 + break; //#20293 + } //#20293 + } //#20293 + $k[$j++] = $_.B; //#20295 + break; //#20295 + } //#20295 + if ($_.mode == $_.A) { //#20305 + if ($_.numK >= 1) { //#20298 + $k[$j++] = $_.K; //#20298 + break; //#20298 + } //#20298 + if ($_.numB >= 1) { //#20299 + $k[$j++] = $_.B; //#20299 + break; //#20299 + } //#20299 + $k[$j++] = $_.modeANbeforeA; //#20300 + $_.NbeforeA(); //#20300 + if ($k[--$j]) { //#20300 + $k[$j++] = $_.N; //#20300 + break; //#20300 + } //#20300 + $k[$j++] = $_.modeANbeforeB; //#20301 + $_.NbeforeB(); //#20301 + if ($k[--$j]) { //#20301 + $k[$j++] = $_.N; //#20301 + break; //#20301 + } //#20301 + $k[$j++] = $_.modeANbeforeE; //#20302 + $_.NbeforeE(); //#20302 + if ($k[--$j]) { //#20302 + $k[$j++] = $_.N; //#20302 + break; //#20302 + } //#20302 + if (($_.numA >= 1) || ($_.numN >= 1)) { //#20303 + $k[$j++] = $_.A; //#20303 + break; //#20303 + } //#20303 + $k[$j++] = $_.B; //#20304 + break; //#20304 + } //#20304 + if ($_.mode == $_.N) { //#20312 + if ($_.numK >= 1) { //#20307 + $k[$j++] = $_.K; //#20307 + break; //#20307 + } //#20307 + if ($_.numB >= 1) { //#20308 + $k[$j++] = $_.B; //#20308 + break; //#20308 + } //#20308 + if ($_.numA >= 1) { //#20309 + $k[$j++] = $_.A; //#20309 + break; //#20309 + } //#20309 + if ($_.numN >= 1) { //#20310 + $k[$j++] = $_.N; //#20310 + break; //#20310 + } //#20310 + $k[$j++] = $_.B; //#20311 + break; //#20311 + } //#20311 + if ($_.mode == $_.K) { //#20319 + if ($_.numB >= 1) { //#20314 + $k[$j++] = $_.B; //#20314 + break; //#20314 + } //#20314 + if ($_.numA >= 1) { //#20315 + $k[$j++] = $_.A; //#20315 + break; //#20315 + } //#20315 + if ($_.numN >= 1) { //#20316 + $k[$j++] = $_.N; //#20316 + break; //#20316 + } //#20316 + if ($_.numK >= 1) { //#20317 + $k[$j++] = $_.K; //#20317 + break; //#20317 + } //#20317 + $k[$j++] = $_.B; //#20318 + break; //#20318 + } //#20318 + } //#20318 + var _E1 = $k[--$j]; //#20321 + $k[$j++] = _E1; //#20321 + if ((_E1 == $_.K) && $_.fnc1first) { //#20321 + $j--; //#20321 + $k[$j++] = $_.B; //#20321 + } //#20321 + var _E5 = $k[--$j]; //#20322 + $k[$j++] = _E5; //#20338 + if (_E5 == $_.mode) { //#20337 + $j--; //#20323 + var _EB = ($_.mode == $_.K) ? 2 : 1; //#20324 + $_.dat = $geti($_.msg, $_.i, _EB); //#20324 + $k[$j++] = Infinity; //#20325 + $aload($_.seq); //#20326 + $k[$j++] = Infinity; //#20327 + var _EE = $k[--$j]; //#20327 + var _EF = $k[--$j]; //#20327 + $k[$j++] = _EE; //#20327 + $aload(_EF); //#20327 + $aload($_.dat); //#20327 + var _EH = $a(); //#20327 + $k[$j++] = _EH; //#20327 + $_.seq = $a(); //#20327 + } else { //#20337 + $_.mode = $k[--$j]; //#20330 + if ($_.mode == $_.K) { //#20331 + $k[$j++] = $_.K; //#20331 + $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20331 + } //#20331 + if ($_.mode == $_.B) { //#20332 + $k[$j++] = $_.B; //#20332 + $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20332 + } //#20332 + if ($_.mode == $_.A) { //#20333 + $k[$j++] = $_.A; //#20333 + $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20333 + } //#20333 + if ($_.mode == $_.N) { //#20334 + $k[$j++] = $_.N; //#20334 + $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20334 + } //#20334 + if ($_.mode == $_.E) { //#20335 + $_.mode = -1; //#20335 + $k[$j++] = $_.E; //#20335 + $k[$j++] = $geti($_.msg, $_.i, 1); //#20335 + } //#20335 + $_.dat = $k[--$j]; //#20336 + $_.sw = $k[--$j]; //#20336 + $k[$j++] = Infinity; //#20337 + $aload($_.seq); //#20337 + $k[$j++] = $_.sw; //#20337 + $k[$j++] = $_.dat; //#20337 + $_.seq = $a(); //#20337 + } //#20337 + $_.i = $_.i + $_.dat.length; //#20339 + } //#20339 + for (;;) { //#20370 + if ($_.seq == -1) { //#20344 + break; //#20344 + } //#20344 + $_.bits = $s(23648); //#20345 + $_.j = 0; //#20346 + if ($_.fnc1first) { //#20349 + if ($lt($_.ver, $_.vR7x43)) { //#20348 + $k[$j++] = "0101"; //#20348 + } else { //#20348 + $k[$j++] = "101"; //#20348 + } //#20348 + $_.addtobits(); //#20348 + } //#20348 + $_.abort = false; //#20350 + for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20365 + $_.i = _F7; //#20352 + $_.mode = $get($_.seq, $_.i); //#20353 + $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20354 + $_.addtobits(); //#20354 + $_.chars = $get($_.seq, $_.i + 1); //#20355 + $k[$j++] = 'charslen'; //#20356 + $k[$j++] = $_.chars.length; //#20356 + if ($_.mode == $_.K) { //#20356 + var _FM = $k[--$j]; //#20356 + $k[$j++] = ~~(_FM / 2); //#20356 + } //#20356 + var _FN = $k[--$j]; //#20356 + $_[$k[--$j]] = _FN; //#20356 + if ($_.mode != $_.E) { //#20363 + $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20358 + if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20361 + $_.abort = true; //#20360 + break; //#20360 + } //#20360 + $k[$j++] = $_.charslen; //#20362 + $k[$j++] = $_.cclen; //#20362 + $_.tobin(); //#20362 + $_.addtobits(); //#20362 + } //#20362 + $k[$j++] = $_.chars; //#20364 if ($_[$get($_.encfuncs, $_.mode)]() === true) { break; - } //#20082 - $_.addtobits(); //#20082 - } //#20082 - if ($_.abort) { //#20084 - break; //#20084 - } //#20084 - $_.bits = $geti($_.bits, 0, $_.j); //#20085 - $put($_.msgbits, $_.ver, $_.bits); //#20086 - break; //#20087 - } //#20087 - } //#20087 - if (!bwipp_qrcode.__20173__) { //#20173 - $_ = Object.create($_); //#20173 - $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20172 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20172 - bwipp_qrcode.__20173__ = 1; //#20172 - $_ = Object.getPrototypeOf($_); //#20172 - } //#20172 - $k[$j++] = 'eclval'; //#20175 - $search("LMQH", $_.eclevel); //#20175 - $j--; //#20175 - var _Kj = $k[--$j]; //#20175 - var _Kk = $k[--$j]; //#20175 - $k[$j++] = _Kj.length; //#20175 - $k[$j++] = _Kk; //#20175 - $j--; //#20175 - var _Kl = $k[--$j]; //#20175 - var _Km = $k[--$j]; //#20175 - $k[$j++] = _Kl; //#20175 - $k[$j++] = _Km; //#20175 - $j--; //#20175 - var _Kn = $k[--$j]; //#20175 - $_[$k[--$j]] = _Kn; //#20175 - for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20214 - $_.i = _Kr; //#20177 - $_.m = $get($_.metrics, $_.i); //#20178 - $_.frmt = $get($_.m, 0); //#20179 - $_.vers = $get($_.m, 1); //#20180 - $_.vergrp = $get($_.m, 2); //#20181 - $_.verind = $_.i - 44; //#20182 - $_.rows = $get($_.m, 3); //#20183 - $_.cols = $get($_.m, 4); //#20184 - $_.asp2 = $get($_.m, 5); //#20185 - $_.asp3 = $get($_.m, 6); //#20186 - $_.nmod = $get($_.m, 7); //#20187 - $_.ncws = ~~($_.nmod / 8); //#20188 - $_.rbit = $_.nmod % 8; //#20189 - $_.lc4b = false; //#20190 - if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20195 - $_.ncws = $_.ncws + 1; //#20192 - $_.rbit = 0; //#20193 - $_.lc4b = true; //#20194 - } //#20194 - $_.ecws = $get($get($_.m, 8), $_.eclval); //#20196 - $_.dcws = $f($_.ncws - $_.ecws); //#20197 - var _LP = $_.lc4b ? 4 : 0; //#20198 - $_.dmod = $f(($_.dcws * 8) - _LP); //#20198 - $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20199 - $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20200 - $_.okay = true; //#20201 - if ($ne($_.format, $_.frmt)) { //#20202 - $_.okay = false; //#20202 - } //#20202 - if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20203 - $_.okay = false; //#20203 - } //#20203 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20204 - $_.okay = false; //#20204 - } //#20204 - if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20205 - $_.okay = false; //#20205 - } //#20205 - $_.verbits = $get($_.msgbits, $_.vergrp); //#20206 - if ($_.verbits == -1) { //#20210 - $_.okay = false; //#20208 - } else { //#20210 - if ($_.verbits.length > $_.dmod) { //#20210 - $_.okay = false; //#20210 - } //#20210 - } //#20210 - $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20212 - if ($_.okay) { //#20213 - break; //#20213 - } //#20213 - } //#20213 - if (!$_.okay) { //#20218 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20217'; //#20217 - $k[$j++] = "Maximum length exceeded or invalid content"; //#20217 - bwipp_raiseerror(); //#20217 - } //#20217 - $_.format = $_.frmt; //#20220 - $_.version = $_.vers; //#20221 - $_.msgbits = $_.verbits; //#20222 - $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20223 - $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20224 - var _M3 = $_.term; //#20227 - var _M4 = $_.dmod; //#20227 - var _M5 = $_.msgbits; //#20227 - var _M6 = $_.term; //#20227 - var _M7 = _M6.length; //#20227 - var _M8 = $f(_M4 - _M5.length); //#20227 - if ($f(_M4 - _M5.length) > _M6.length) { //#20227 - var _ = _M7; //#20227 - _M7 = _M8; //#20227 - _M8 = _; //#20227 - } //#20227 - $_.term = $geti(_M3, 0, _M8); //#20227 - var _MC = $s($_.msgbits.length + $_.term.length); //#20228 - $puti(_MC, 0, $_.msgbits); //#20229 - $puti(_MC, $_.msgbits.length, $_.term); //#20230 - $_.msgbits = _MC; //#20231 - $_.pad = $s($_.dmod); //#20234 - for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20235 - $put($_.pad, _MK, 48); //#20235 - } //#20235 - $puti($_.pad, 0, $_.msgbits); //#20236 - $_.padnum = 0; //#20237 - var _MR = $_.lc4b ? 5 : 1; //#20238 - for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20241 - $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20239 - $_.padnum = ($_.padnum + 1) % 2; //#20240 - } //#20240 - $_.cws = $a($_.dcws); //#20244 - for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20256 - $_.c = _Md; //#20246 - $_.bpcw = 8; //#20247 - if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20248 - $_.bpcw = 4; //#20248 - } //#20248 - $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20249 - $_.cw = 0; //#20250 - for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20254 - $_.i = _Mn; //#20252 - $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20253 - } //#20253 - $put($_.cws, $_.c, $_.cw); //#20255 - } //#20255 - if ($_.lc4b) { //#20259 - var _My = $_.cws; //#20259 - var _Mz = $_.cws; //#20259 - $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20259 - } //#20259 - var _N2 = $get($_.options, 'debugcws') !== undefined; //#20261 - if (_N2) { //#20261 - $k[$j++] = 'bwipp.debugcws#20261'; //#20261 - $k[$j++] = $_.cws; //#20261 - bwipp_raiseerror(); //#20261 - } //#20261 - if (!bwipp_qrcode.__20268__) { //#20268 - $_ = Object.create($_); //#20268 - $k[$j++] = Infinity; //#20265 - $k[$j++] = 1; //#20265 - for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20265 - var _N6 = $k[--$j]; //#20265 - var _N7 = _N6 * 2; //#20265 - $k[$j++] = _N6; //#20265 - $k[$j++] = _N7; //#20265 - if (_N7 >= 256) { //#20265 - var _N8 = $k[--$j]; //#20265 - $k[$j++] = _N8 ^ 285; //#20265 - } //#20265 - } //#20265 - $_.rsalog = $a(); //#20265 - $_.rslog = $a(256); //#20266 - for (var _NB = 1; _NB <= 255; _NB += 1) { //#20267 - $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20267 - } //#20267 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20267 - bwipp_qrcode.__20268__ = 1; //#20267 - $_ = Object.getPrototypeOf($_); //#20267 - } //#20267 + } //#20364 + $_.addtobits(); //#20364 + } //#20364 + if ($_.abort) { //#20366 + break; //#20366 + } //#20366 + $_.bits = $geti($_.bits, 0, $_.j); //#20367 + $put($_.msgbits, $_.ver, $_.bits); //#20368 + break; //#20369 + } //#20369 + } //#20369 + if (!bwipp_qrcode.__20455__) { //#20455 + $_ = Object.create($_); //#20455 + $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20454 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20454 + bwipp_qrcode.__20455__ = 1; //#20454 + $_ = Object.getPrototypeOf($_); //#20454 + } //#20454 + $k[$j++] = 'eclval'; //#20457 + $search("LMQH", $_.eclevel); //#20457 + $j--; //#20457 + var _Kj = $k[--$j]; //#20457 + var _Kk = $k[--$j]; //#20457 + $k[$j++] = _Kj.length; //#20457 + $k[$j++] = _Kk; //#20457 + $j--; //#20457 + var _Kl = $k[--$j]; //#20457 + var _Km = $k[--$j]; //#20457 + $k[$j++] = _Kl; //#20457 + $k[$j++] = _Km; //#20457 + $j--; //#20457 + var _Kn = $k[--$j]; //#20457 + $_[$k[--$j]] = _Kn; //#20457 + for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20496 + $_.i = _Kr; //#20459 + $_.m = $get($_.metrics, $_.i); //#20460 + $_.frmt = $get($_.m, 0); //#20461 + $_.vers = $get($_.m, 1); //#20462 + $_.vergrp = $get($_.m, 2); //#20463 + $_.verind = $_.i - 44; //#20464 + $_.rows = $get($_.m, 3); //#20465 + $_.cols = $get($_.m, 4); //#20466 + $_.asp2 = $get($_.m, 5); //#20467 + $_.asp3 = $get($_.m, 6); //#20468 + $_.nmod = $get($_.m, 7); //#20469 + $_.ncws = ~~($_.nmod / 8); //#20470 + $_.rbit = $_.nmod % 8; //#20471 + $_.lc4b = false; //#20472 + if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20477 + $_.ncws = $_.ncws + 1; //#20474 + $_.rbit = 0; //#20475 + $_.lc4b = true; //#20476 + } //#20476 + $_.ecws = $get($get($_.m, 8), $_.eclval); //#20478 + $_.dcws = $f($_.ncws - $_.ecws); //#20479 + var _LP = $_.lc4b ? 4 : 0; //#20480 + $_.dmod = $f(($_.dcws * 8) - _LP); //#20480 + $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20481 + $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20482 + $_.okay = true; //#20483 + if ($ne($_.format, $_.frmt)) { //#20484 + $_.okay = false; //#20484 + } //#20484 + if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20485 + $_.okay = false; //#20485 + } //#20485 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20486 + $_.okay = false; //#20486 + } //#20486 + if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20487 + $_.okay = false; //#20487 + } //#20487 + $_.verbits = $get($_.msgbits, $_.vergrp); //#20488 + if ($_.verbits == -1) { //#20492 + $_.okay = false; //#20490 + } else { //#20492 + if ($_.verbits.length > $_.dmod) { //#20492 + $_.okay = false; //#20492 + } //#20492 + } //#20492 + $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20494 + if ($_.okay) { //#20495 + break; //#20495 + } //#20495 + } //#20495 + if (!$_.okay) { //#20500 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20499'; //#20499 + $k[$j++] = "Maximum length exceeded or invalid content"; //#20499 + bwipp_raiseerror(); //#20499 + } //#20499 + $_.format = $_.frmt; //#20502 + $_.version = $_.vers; //#20503 + $_.msgbits = $_.verbits; //#20504 + $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20505 + $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20506 + var _M3 = $_.term; //#20509 + var _M4 = $_.dmod; //#20509 + var _M5 = $_.msgbits; //#20509 + var _M6 = $_.term; //#20509 + var _M7 = _M6.length; //#20509 + var _M8 = $f(_M4 - _M5.length); //#20509 + if ($f(_M4 - _M5.length) > _M6.length) { //#20509 + var _ = _M7; //#20509 + _M7 = _M8; //#20509 + _M8 = _; //#20509 + } //#20509 + $_.term = $geti(_M3, 0, _M8); //#20509 + var _MC = $s($_.msgbits.length + $_.term.length); //#20510 + $puti(_MC, 0, $_.msgbits); //#20511 + $puti(_MC, $_.msgbits.length, $_.term); //#20512 + $_.msgbits = _MC; //#20513 + $_.pad = $s($_.dmod); //#20516 + for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20517 + $put($_.pad, _MK, 48); //#20517 + } //#20517 + $puti($_.pad, 0, $_.msgbits); //#20518 + $_.padnum = 0; //#20519 + var _MR = $_.lc4b ? 5 : 1; //#20520 + for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20523 + $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20521 + $_.padnum = ($_.padnum + 1) % 2; //#20522 + } //#20522 + $_.cws = $a($_.dcws); //#20526 + for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20538 + $_.c = _Md; //#20528 + $_.bpcw = 8; //#20529 + if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20530 + $_.bpcw = 4; //#20530 + } //#20530 + $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20531 + $_.cw = 0; //#20532 + for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20536 + $_.i = _Mn; //#20534 + $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20535 + } //#20535 + $put($_.cws, $_.c, $_.cw); //#20537 + } //#20537 + if ($_.lc4b) { //#20541 + var _My = $_.cws; //#20541 + var _Mz = $_.cws; //#20541 + $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20541 + } //#20541 + var _N2 = $get($_.options, 'debugcws') !== undefined; //#20543 + if (_N2) { //#20543 + $k[$j++] = 'bwipp.debugcws#20543'; //#20543 + $k[$j++] = $_.cws; //#20543 + bwipp_raiseerror(); //#20543 + } //#20543 + if (!bwipp_qrcode.__20550__) { //#20550 + $_ = Object.create($_); //#20550 + $k[$j++] = Infinity; //#20547 + $k[$j++] = 1; //#20547 + for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20547 + var _N6 = $k[--$j]; //#20547 + var _N7 = _N6 * 2; //#20547 + $k[$j++] = _N6; //#20547 + $k[$j++] = _N7; //#20547 + if (_N7 >= 256) { //#20547 + var _N8 = $k[--$j]; //#20547 + $k[$j++] = _N8 ^ 285; //#20547 + } //#20547 + } //#20547 + $_.rsalog = $a(); //#20547 + $_.rslog = $a(256); //#20548 + for (var _NB = 1; _NB <= 255; _NB += 1) { //#20549 + $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20549 + } //#20549 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20549 + bwipp_qrcode.__20550__ = 1; //#20549 + $_ = Object.getPrototypeOf($_); //#20549 + } //#20549 $_.rsprod = function() { - var _NG = $k[--$j]; //#20272 - var _NH = $k[--$j]; //#20272 - $k[$j++] = _NH; //#20276 - $k[$j++] = _NG; //#20276 - if ((_NG != 0) && (_NH != 0)) { //#20275 - var _NK = $get($_.rslog, $k[--$j]); //#20273 - var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20273 - $k[$j++] = _NP; //#20273 - } else { //#20275 - $j -= 2; //#20275 - $k[$j++] = 0; //#20275 - } //#20275 - }; //#20275 - $k[$j++] = Infinity; //#20280 - $k[$j++] = 1; //#20280 - for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20280 - $k[$j++] = 0; //#20280 - } //#20280 - $_.coeffs = $a(); //#20280 - for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20289 - $_.i = _NW; //#20282 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20283 - for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20287 - $_.j = _Nd; //#20285 - $k[$j++] = $_.coeffs; //#20286 - $k[$j++] = $_.j; //#20286 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#20286 - $k[$j++] = $get($_.coeffs, $_.j); //#20286 - $k[$j++] = $get($_.rsalog, $_.i); //#20286 - $_.rsprod(); //#20286 - var _Np = $k[--$j]; //#20286 - var _Nq = $k[--$j]; //#20286 - var _Nr = $k[--$j]; //#20286 - $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20286 - } //#20286 - $k[$j++] = $_.coeffs; //#20288 - $k[$j++] = 0; //#20288 - $k[$j++] = $get($_.coeffs, 0); //#20288 - $k[$j++] = $get($_.rsalog, $_.i); //#20288 - $_.rsprod(); //#20288 - var _Nz = $k[--$j]; //#20288 - var _O0 = $k[--$j]; //#20288 - $put($k[--$j], _O0, _Nz); //#20288 - } //#20288 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20290 + var _NG = $k[--$j]; //#20554 + var _NH = $k[--$j]; //#20554 + $k[$j++] = _NH; //#20558 + $k[$j++] = _NG; //#20558 + if ((_NG != 0) && (_NH != 0)) { //#20557 + var _NK = $get($_.rslog, $k[--$j]); //#20555 + var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20555 + $k[$j++] = _NP; //#20555 + } else { //#20557 + $j -= 2; //#20557 + $k[$j++] = 0; //#20557 + } //#20557 + }; //#20557 + $k[$j++] = Infinity; //#20562 + $k[$j++] = 1; //#20562 + for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20562 + $k[$j++] = 0; //#20562 + } //#20562 + $_.coeffs = $a(); //#20562 + for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20571 + $_.i = _NW; //#20564 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20565 + for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20569 + $_.j = _Nd; //#20567 + $k[$j++] = $_.coeffs; //#20568 + $k[$j++] = $_.j; //#20568 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#20568 + $k[$j++] = $get($_.coeffs, $_.j); //#20568 + $k[$j++] = $get($_.rsalog, $_.i); //#20568 + $_.rsprod(); //#20568 + var _Np = $k[--$j]; //#20568 + var _Nq = $k[--$j]; //#20568 + var _Nr = $k[--$j]; //#20568 + $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20568 + } //#20568 + $k[$j++] = $_.coeffs; //#20570 + $k[$j++] = 0; //#20570 + $k[$j++] = $get($_.coeffs, 0); //#20570 + $k[$j++] = $get($_.rsalog, $_.i); //#20570 + $_.rsprod(); //#20570 + var _Nz = $k[--$j]; //#20570 + var _O0 = $k[--$j]; //#20570 + $put($k[--$j], _O0, _Nz); //#20570 + } //#20570 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20572 $_.rscodes = function() { - $_.rscws = $k[--$j]; //#20294 - $_.rsnd = $_.rscws.length; //#20295 - $k[$j++] = Infinity; //#20296 - $forall($_.rscws); //#20296 - for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20296 - $k[$j++] = 0; //#20296 - } //#20296 - $_.rscws = $a(); //#20296 - for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20304 - $_.m = _OE; //#20298 - $_.k = $get($_.rscws, $_.m); //#20299 - for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20303 - $_.j = _OK; //#20301 - $k[$j++] = $_.rscws; //#20302 - $k[$j++] = ($_.m + $_.j) + 1; //#20302 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20302 - $k[$j++] = $_.k; //#20302 - $_.rsprod(); //#20302 - var _OX = $k[--$j]; //#20302 - var _OY = $k[--$j]; //#20302 - $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20302 - } //#20302 - } //#20302 - $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20305 - }; //#20305 - $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20309 - $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20310 - for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20315 - $_.i = _Om; //#20312 - $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20313 - $k[$j++] = $_.ecwsb; //#20314 - $k[$j++] = $_.i; //#20314 - $k[$j++] = $get($_.dcwsb, $_.i); //#20314 - $_.rscodes(); //#20314 - var _Oz = $k[--$j]; //#20314 - var _P0 = $k[--$j]; //#20314 - $put($k[--$j], _P0, _Oz); //#20314 - } //#20314 - for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20320 - $_.i = _P4; //#20317 - $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20318 - $k[$j++] = $_.ecwsb; //#20319 - $k[$j++] = $f($_.ecb1 + $_.i); //#20319 - $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20319 - $_.rscodes(); //#20319 - var _PM = $k[--$j]; //#20319 - var _PN = $k[--$j]; //#20319 - $put($k[--$j], _PN, _PM); //#20319 - } //#20319 - $_.cws = $a($_.ncws); //#20323 - $_.cw = 0; //#20324 - for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20334 - $_.i = _PT; //#20326 - for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20333 - $_.j = _PX; //#20328 - if ($_.i < $get($_.dcwsb, $_.j).length) { //#20332 - $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20330 - $_.cw = $_.cw + 1; //#20331 - } //#20331 - } //#20331 - } //#20331 - for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20342 - $_.i = _Pm; //#20336 - for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20341 - $_.j = _Pq; //#20338 - $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20339 - $_.cw = $_.cw + 1; //#20340 - } //#20340 - } //#20340 - if ($_.rbit > 0) { //#20350 - $_.pad = $a($_.cws.length + 1); //#20346 - $puti($_.pad, 0, $_.cws); //#20347 - $put($_.pad, $_.pad.length - 1, 0); //#20348 - $_.cws = $_.pad; //#20349 - } //#20349 - if ($_.lc4b) { //#20361 - var _Q8 = $_.cws; //#20354 - var _Q9 = $_.dcws; //#20354 - $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20354 - for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20359 - $_.i = _QE; //#20356 - $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20357 - $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20358 - } //#20358 - $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20360 - } //#20360 - var _QY = $get($_.options, 'debugecc') !== undefined; //#20363 - if (_QY) { //#20363 - $k[$j++] = 'bwipp.debugecc#20363'; //#20363 - $k[$j++] = $_.cws; //#20363 - bwipp_raiseerror(); //#20363 - } //#20363 - $k[$j++] = Infinity; //#20366 - for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20366 - $k[$j++] = -1; //#20366 - } //#20366 - $_.pixs = $a(); //#20366 + $_.rscws = $k[--$j]; //#20576 + $_.rsnd = $_.rscws.length; //#20577 + $k[$j++] = Infinity; //#20578 + $forall($_.rscws); //#20578 + for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20578 + $k[$j++] = 0; //#20578 + } //#20578 + $_.rscws = $a(); //#20578 + for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20586 + $_.m = _OE; //#20580 + $_.k = $get($_.rscws, $_.m); //#20581 + for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20585 + $_.j = _OK; //#20583 + $k[$j++] = $_.rscws; //#20584 + $k[$j++] = ($_.m + $_.j) + 1; //#20584 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20584 + $k[$j++] = $_.k; //#20584 + $_.rsprod(); //#20584 + var _OX = $k[--$j]; //#20584 + var _OY = $k[--$j]; //#20584 + $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20584 + } //#20584 + } //#20584 + $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20587 + }; //#20587 + $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20591 + $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20592 + for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20597 + $_.i = _Om; //#20594 + $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20595 + $k[$j++] = $_.ecwsb; //#20596 + $k[$j++] = $_.i; //#20596 + $k[$j++] = $get($_.dcwsb, $_.i); //#20596 + $_.rscodes(); //#20596 + var _Oz = $k[--$j]; //#20596 + var _P0 = $k[--$j]; //#20596 + $put($k[--$j], _P0, _Oz); //#20596 + } //#20596 + for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20602 + $_.i = _P4; //#20599 + $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20600 + $k[$j++] = $_.ecwsb; //#20601 + $k[$j++] = $f($_.ecb1 + $_.i); //#20601 + $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20601 + $_.rscodes(); //#20601 + var _PM = $k[--$j]; //#20601 + var _PN = $k[--$j]; //#20601 + $put($k[--$j], _PN, _PM); //#20601 + } //#20601 + $_.cws = $a($_.ncws); //#20605 + $_.cw = 0; //#20606 + for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20616 + $_.i = _PT; //#20608 + for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20615 + $_.j = _PX; //#20610 + if ($_.i < $get($_.dcwsb, $_.j).length) { //#20614 + $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20612 + $_.cw = $_.cw + 1; //#20613 + } //#20613 + } //#20613 + } //#20613 + for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20624 + $_.i = _Pm; //#20618 + for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20623 + $_.j = _Pq; //#20620 + $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20621 + $_.cw = $_.cw + 1; //#20622 + } //#20622 + } //#20622 + if ($_.rbit > 0) { //#20632 + $_.pad = $a($_.cws.length + 1); //#20628 + $puti($_.pad, 0, $_.cws); //#20629 + $put($_.pad, $_.pad.length - 1, 0); //#20630 + $_.cws = $_.pad; //#20631 + } //#20631 + if ($_.lc4b) { //#20643 + var _Q8 = $_.cws; //#20636 + var _Q9 = $_.dcws; //#20636 + $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20636 + for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20641 + $_.i = _QE; //#20638 + $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20639 + $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20640 + } //#20640 + $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20642 + } //#20642 + var _QY = $get($_.options, 'debugecc') !== undefined; //#20645 + if (_QY) { //#20645 + $k[$j++] = 'bwipp.debugecc#20645'; //#20645 + $k[$j++] = $_.cws; //#20645 + bwipp_raiseerror(); //#20645 + } //#20645 + $k[$j++] = Infinity; //#20648 + for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20648 + $k[$j++] = -1; //#20648 + } //#20648 + $_.pixs = $a(); //#20648 $_.qmv = function() { - var _Qg = $k[--$j]; //#20367 - var _Qh = $k[--$j]; //#20367 - $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20367 - }; //#20367 - if ($eq($_.format, "full")) { //#20376 - for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20375 - $_.i = _Ql; //#20372 - $k[$j++] = $_.pixs; //#20373 - $k[$j++] = $_.i; //#20373 - $k[$j++] = 6; //#20373 - $_.qmv(); //#20373 - var _Qp = $k[--$j]; //#20373 - $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20373 - $k[$j++] = $_.pixs; //#20374 - $k[$j++] = 6; //#20374 - $k[$j++] = $_.i; //#20374 - $_.qmv(); //#20374 - var _Qu = $k[--$j]; //#20374 - $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20374 - } //#20374 - } //#20374 - if ($eq($_.format, "micro")) { //#20383 - for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20382 - $_.i = _Qz; //#20379 - $k[$j++] = $_.pixs; //#20380 - $k[$j++] = $_.i; //#20380 - $k[$j++] = 0; //#20380 - $_.qmv(); //#20380 - var _R3 = $k[--$j]; //#20380 - $put($k[--$j], _R3, ($_.i + 1) % 2); //#20380 - $k[$j++] = $_.pixs; //#20381 - $k[$j++] = 0; //#20381 - $k[$j++] = $_.i; //#20381 - $_.qmv(); //#20381 - var _R8 = $k[--$j]; //#20381 - $put($k[--$j], _R8, ($_.i + 1) % 2); //#20381 - } //#20381 - } //#20381 - if ($eq($_.format, "rmqr")) { //#20402 - for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20389 - $_.i = _RD; //#20386 - $k[$j++] = $_.pixs; //#20387 - $k[$j++] = $_.i; //#20387 - $k[$j++] = 0; //#20387 - $_.qmv(); //#20387 - var _RH = $k[--$j]; //#20387 - $put($k[--$j], _RH, ($_.i + 1) % 2); //#20387 - $k[$j++] = $_.pixs; //#20388 - $k[$j++] = $_.i; //#20388 - $k[$j++] = $f($_.rows - 1); //#20388 - $_.qmv(); //#20388 - var _RN = $k[--$j]; //#20388 - $put($k[--$j], _RN, ($_.i + 1) % 2); //#20388 - } //#20388 - for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20394 - $_.i = _RR; //#20391 - $k[$j++] = $_.pixs; //#20392 - $k[$j++] = 0; //#20392 - $k[$j++] = $_.i; //#20392 - $_.qmv(); //#20392 - var _RV = $k[--$j]; //#20392 - $put($k[--$j], _RV, ($_.i + 1) % 2); //#20392 - $k[$j++] = $_.pixs; //#20393 - $k[$j++] = $f($_.cols - 1); //#20393 - $k[$j++] = $_.i; //#20393 - $_.qmv(); //#20393 - var _Rb = $k[--$j]; //#20393 - $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20393 - } //#20393 - for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20401 - $_.i = _Ri; //#20396 - for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20400 - $_.j = _Rm; //#20398 - $k[$j++] = $_.pixs; //#20399 - $k[$j++] = $_.i; //#20399 - $k[$j++] = $_.j; //#20399 - $_.qmv(); //#20399 - var _Rr = $k[--$j]; //#20399 - $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20399 - } //#20399 - } //#20399 - } //#20399 - if (!bwipp_qrcode.__20452__) { //#20452 - $_ = Object.create($_); //#20452 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20415 - $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20425 - $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20435 - $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20445 + var _Qg = $k[--$j]; //#20649 + var _Qh = $k[--$j]; //#20649 + $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20649 + }; //#20649 + if ($eq($_.format, "full")) { //#20658 + for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20657 + $_.i = _Ql; //#20654 + $k[$j++] = $_.pixs; //#20655 + $k[$j++] = $_.i; //#20655 + $k[$j++] = 6; //#20655 + $_.qmv(); //#20655 + var _Qp = $k[--$j]; //#20655 + $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20655 + $k[$j++] = $_.pixs; //#20656 + $k[$j++] = 6; //#20656 + $k[$j++] = $_.i; //#20656 + $_.qmv(); //#20656 + var _Qu = $k[--$j]; //#20656 + $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20656 + } //#20656 + } //#20656 + if ($eq($_.format, "micro")) { //#20665 + for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20664 + $_.i = _Qz; //#20661 + $k[$j++] = $_.pixs; //#20662 + $k[$j++] = $_.i; //#20662 + $k[$j++] = 0; //#20662 + $_.qmv(); //#20662 + var _R3 = $k[--$j]; //#20662 + $put($k[--$j], _R3, ($_.i + 1) % 2); //#20662 + $k[$j++] = $_.pixs; //#20663 + $k[$j++] = 0; //#20663 + $k[$j++] = $_.i; //#20663 + $_.qmv(); //#20663 + var _R8 = $k[--$j]; //#20663 + $put($k[--$j], _R8, ($_.i + 1) % 2); //#20663 + } //#20663 + } //#20663 + if ($eq($_.format, "rmqr")) { //#20684 + for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20671 + $_.i = _RD; //#20668 + $k[$j++] = $_.pixs; //#20669 + $k[$j++] = $_.i; //#20669 + $k[$j++] = 0; //#20669 + $_.qmv(); //#20669 + var _RH = $k[--$j]; //#20669 + $put($k[--$j], _RH, ($_.i + 1) % 2); //#20669 + $k[$j++] = $_.pixs; //#20670 + $k[$j++] = $_.i; //#20670 + $k[$j++] = $f($_.rows - 1); //#20670 + $_.qmv(); //#20670 + var _RN = $k[--$j]; //#20670 + $put($k[--$j], _RN, ($_.i + 1) % 2); //#20670 + } //#20670 + for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20676 + $_.i = _RR; //#20673 + $k[$j++] = $_.pixs; //#20674 + $k[$j++] = 0; //#20674 + $k[$j++] = $_.i; //#20674 + $_.qmv(); //#20674 + var _RV = $k[--$j]; //#20674 + $put($k[--$j], _RV, ($_.i + 1) % 2); //#20674 + $k[$j++] = $_.pixs; //#20675 + $k[$j++] = $f($_.cols - 1); //#20675 + $k[$j++] = $_.i; //#20675 + $_.qmv(); //#20675 + var _Rb = $k[--$j]; //#20675 + $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20675 + } //#20675 + for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20683 + $_.i = _Ri; //#20678 + for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20682 + $_.j = _Rm; //#20680 + $k[$j++] = $_.pixs; //#20681 + $k[$j++] = $_.i; //#20681 + $k[$j++] = $_.j; //#20681 + $_.qmv(); //#20681 + var _Rr = $k[--$j]; //#20681 + $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20681 + } //#20681 + } //#20681 + } //#20681 + if (!bwipp_qrcode.__20734__) { //#20734 + $_ = Object.create($_); //#20734 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20697 + $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20707 + $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20717 + $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20727 var _Si = new Map([ ["full", $a([$_.fpat, $_.fpat, $_.fpat, $_.fnullpat])], ["micro", $a([$_.fpat, $_.fnullpat, $_.fnullpat, $_.fnullpat])], ["rmqr", $a([$_.fpat, $_.fcorpat, $_.fcorpat, $_.fsubpat])] - ]); //#20450 - $_.fpatmap = _Si; //#20451 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20451 - bwipp_qrcode.__20452__ = 1; //#20451 - $_ = Object.getPrototypeOf($_); //#20451 - } //#20451 - $_.fpats = $get($_.fpatmap, $_.format); //#20453 - for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20467 - $_.y = _Sn; //#20455 - for (var _So = 0; _So <= 7; _So += 1) { //#20466 - $_.x = _So; //#20457 - $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20458 - $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20459 - $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20460 - $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20461 - if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20462 - $k[$j++] = $_.pixs; //#20462 - $k[$j++] = $_.x; //#20462 - $k[$j++] = $_.y; //#20462 - $_.qmv(); //#20462 - var _TK = $k[--$j]; //#20462 - $put($k[--$j], _TK, $_.fpb0); //#20462 - } //#20462 - if ($_.fpb1 != 9) { //#20463 - $k[$j++] = $_.pixs; //#20463 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20463 - $k[$j++] = $_.y; //#20463 - $_.qmv(); //#20463 - var _TS = $k[--$j]; //#20463 - $put($k[--$j], _TS, $_.fpb1); //#20463 - } //#20463 - if ($_.fpb2 != 9) { //#20464 - $k[$j++] = $_.pixs; //#20464 - $k[$j++] = $_.x; //#20464 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20464 - $_.qmv(); //#20464 - var _Ta = $k[--$j]; //#20464 - $put($k[--$j], _Ta, $_.fpb2); //#20464 - } //#20464 - if ($_.fpb3 != 9) { //#20465 - $k[$j++] = $_.pixs; //#20465 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20465 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20465 - $_.qmv(); //#20465 - var _Tj = $k[--$j]; //#20465 - $put($k[--$j], _Tj, $_.fpb3); //#20465 - } //#20465 - } //#20465 - } //#20465 - if (!bwipp_qrcode.__20485__) { //#20485 - $_ = Object.create($_); //#20485 - $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20477 - $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20484 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20484 - bwipp_qrcode.__20485__ = 1; //#20484 - $_ = Object.getPrototypeOf($_); //#20484 - } //#20484 + ]); //#20732 + $_.fpatmap = _Si; //#20733 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20733 + bwipp_qrcode.__20734__ = 1; //#20733 + $_ = Object.getPrototypeOf($_); //#20733 + } //#20733 + $_.fpats = $get($_.fpatmap, $_.format); //#20735 + for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20749 + $_.y = _Sn; //#20737 + for (var _So = 0; _So <= 7; _So += 1) { //#20748 + $_.x = _So; //#20739 + $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20740 + $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20741 + $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20742 + $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20743 + if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20744 + $k[$j++] = $_.pixs; //#20744 + $k[$j++] = $_.x; //#20744 + $k[$j++] = $_.y; //#20744 + $_.qmv(); //#20744 + var _TK = $k[--$j]; //#20744 + $put($k[--$j], _TK, $_.fpb0); //#20744 + } //#20744 + if ($_.fpb1 != 9) { //#20745 + $k[$j++] = $_.pixs; //#20745 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20745 + $k[$j++] = $_.y; //#20745 + $_.qmv(); //#20745 + var _TS = $k[--$j]; //#20745 + $put($k[--$j], _TS, $_.fpb1); //#20745 + } //#20745 + if ($_.fpb2 != 9) { //#20746 + $k[$j++] = $_.pixs; //#20746 + $k[$j++] = $_.x; //#20746 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20746 + $_.qmv(); //#20746 + var _Ta = $k[--$j]; //#20746 + $put($k[--$j], _Ta, $_.fpb2); //#20746 + } //#20746 + if ($_.fpb3 != 9) { //#20747 + $k[$j++] = $_.pixs; //#20747 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20747 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20747 + $_.qmv(); //#20747 + var _Tj = $k[--$j]; //#20747 + $put($k[--$j], _Tj, $_.fpb3); //#20747 + } //#20747 + } //#20747 + } //#20747 + if (!bwipp_qrcode.__20767__) { //#20767 + $_ = Object.create($_); //#20767 + $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20759 + $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20766 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20766 + bwipp_qrcode.__20767__ = 1; //#20766 + $_ = Object.getPrototypeOf($_); //#20766 + } //#20766 $_.putalgnpat = function() { - $_.py = $k[--$j]; //#20488 - $_.px = $k[--$j]; //#20489 - for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20499 - $_.pb = _U0; //#20491 - for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20498 - $_.pa = _U1; //#20493 - $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20494 - if ($_.algnb != 9) { //#20497 - $k[$j++] = $_.pixs; //#20496 - $k[$j++] = $f($_.px + $_.pa); //#20496 - $k[$j++] = $f($_.py + $_.pb); //#20496 - $_.qmv(); //#20496 - var _UE = $k[--$j]; //#20496 - $put($k[--$j], _UE, $_.algnb); //#20496 - } //#20496 - } //#20496 - } //#20496 - }; //#20496 - if ($eq($_.format, "full")) { //#20515 - $_.algnpat = $_.algnpatfull; //#20502 - for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20507 - $_.i = _UN; //#20504 - $k[$j++] = $_.i; //#20505 - $k[$j++] = 4; //#20505 - $_.putalgnpat(); //#20505 - $k[$j++] = 4; //#20506 - $k[$j++] = $_.i; //#20506 - $_.putalgnpat(); //#20506 - } //#20506 - for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20514 - $_.x = _UW; //#20509 - for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20513 - $_.y = _Ud; //#20511 - $k[$j++] = $_.x; //#20512 - $k[$j++] = $_.y; //#20512 - $_.putalgnpat(); //#20512 - } //#20512 - } //#20512 - } //#20512 - if ($eq($_.format, "rmqr")) { //#20523 - $_.algnpat = $_.algnpatrmqr; //#20517 - for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20522 - $_.i = _Uo; //#20519 - $k[$j++] = $_.i; //#20520 - $k[$j++] = 0; //#20520 - $_.putalgnpat(); //#20520 - $k[$j++] = $_.i; //#20521 - $k[$j++] = $f($_.rows - 3); //#20521 - $_.putalgnpat(); //#20521 - } //#20521 - } //#20521 - if (!bwipp_qrcode.__20532__) { //#20532 - $_ = Object.create($_); //#20532 - $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20531 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20531 - bwipp_qrcode.__20532__ = 1; //#20531 - $_ = Object.getPrototypeOf($_); //#20531 - } //#20531 + $_.py = $k[--$j]; //#20770 + $_.px = $k[--$j]; //#20771 + for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20781 + $_.pb = _U0; //#20773 + for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20780 + $_.pa = _U1; //#20775 + $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20776 + if ($_.algnb != 9) { //#20779 + $k[$j++] = $_.pixs; //#20778 + $k[$j++] = $f($_.px + $_.pa); //#20778 + $k[$j++] = $f($_.py + $_.pb); //#20778 + $_.qmv(); //#20778 + var _UE = $k[--$j]; //#20778 + $put($k[--$j], _UE, $_.algnb); //#20778 + } //#20778 + } //#20778 + } //#20778 + }; //#20778 + if ($eq($_.format, "full")) { //#20797 + $_.algnpat = $_.algnpatfull; //#20784 + for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20789 + $_.i = _UN; //#20786 + $k[$j++] = $_.i; //#20787 + $k[$j++] = 4; //#20787 + $_.putalgnpat(); //#20787 + $k[$j++] = 4; //#20788 + $k[$j++] = $_.i; //#20788 + $_.putalgnpat(); //#20788 + } //#20788 + for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20796 + $_.x = _UW; //#20791 + for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20795 + $_.y = _Ud; //#20793 + $k[$j++] = $_.x; //#20794 + $k[$j++] = $_.y; //#20794 + $_.putalgnpat(); //#20794 + } //#20794 + } //#20794 + } //#20794 + if ($eq($_.format, "rmqr")) { //#20805 + $_.algnpat = $_.algnpatrmqr; //#20799 + for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20804 + $_.i = _Uo; //#20801 + $k[$j++] = $_.i; //#20802 + $k[$j++] = 0; //#20802 + $_.putalgnpat(); //#20802 + $k[$j++] = $_.i; //#20803 + $k[$j++] = $f($_.rows - 3); //#20803 + $_.putalgnpat(); //#20803 + } //#20803 + } //#20803 + if (!bwipp_qrcode.__20814__) { //#20814 + $_ = Object.create($_); //#20814 + $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20813 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 + bwipp_qrcode.__20814__ = 1; //#20813 + $_ = Object.getPrototypeOf($_); //#20813 + } //#20813 var _Xs = new Map([ ["full", $a([$a([$a([0, 8]), $a([8, $f($_.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($_.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($_.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($_.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($_.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($_.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($_.cols - 7)])]), $a([$a([8, 8]), $a([$f($_.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($_.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($_.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($_.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($_.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($_.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($_.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($_.cols - 1), 8])])])], ["micro", $_.formatmapmicro], ["rmqr", $a([$a([$a([11, 3]), $a([$f($_.cols - 3), $f($_.rows - 6)])]), $a([$a([11, 2]), $a([$f($_.cols - 4), $f($_.rows - 6)])]), $a([$a([11, 1]), $a([$f($_.cols - 5), $f($_.rows - 6)])]), $a([$a([10, 5]), $a([$f($_.cols - 6), $f($_.rows - 2)])]), $a([$a([10, 4]), $a([$f($_.cols - 6), $f($_.rows - 3)])]), $a([$a([10, 3]), $a([$f($_.cols - 6), $f($_.rows - 4)])]), $a([$a([10, 2]), $a([$f($_.cols - 6), $f($_.rows - 5)])]), $a([$a([10, 1]), $a([$f($_.cols - 6), $f($_.rows - 6)])]), $a([$a([9, 5]), $a([$f($_.cols - 7), $f($_.rows - 2)])]), $a([$a([9, 4]), $a([$f($_.cols - 7), $f($_.rows - 3)])]), $a([$a([9, 3]), $a([$f($_.cols - 7), $f($_.rows - 4)])]), $a([$a([9, 2]), $a([$f($_.cols - 7), $f($_.rows - 5)])]), $a([$a([9, 1]), $a([$f($_.cols - 7), $f($_.rows - 6)])]), $a([$a([8, 5]), $a([$f($_.cols - 8), $f($_.rows - 2)])]), $a([$a([8, 4]), $a([$f($_.cols - 8), $f($_.rows - 3)])]), $a([$a([8, 3]), $a([$f($_.cols - 8), $f($_.rows - 4)])]), $a([$a([8, 2]), $a([$f($_.cols - 8), $f($_.rows - 5)])]), $a([$a([8, 1]), $a([$f($_.cols - 8), $f($_.rows - 6)])])])] - ]); //#20548 - $_.formatmap = $get(_Xs, $_.format); //#20550 - $forall($_.formatmap, function() { //#20553 - $forall($k[--$j], function() { //#20552 - $forall($k[--$j]); //#20552 - $_.qmv(); //#20552 - $put($_.pixs, $k[--$j], 1); //#20552 - }); //#20552 - }); //#20552 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20569 - $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20567 - } else { //#20569 - $_.versionmap = $a([]); //#20569 - } //#20569 - var _ZW = $_.versionmap; //#20571 - for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20573 - $forall($get(_ZW, _ZX), function() { //#20572 - $forall($k[--$j]); //#20572 - $_.qmv(); //#20572 - $put($_.pixs, $k[--$j], 0); //#20572 - }); //#20572 - } //#20572 - if ($eq($_.format, "full")) { //#20578 - $k[$j++] = $_.pixs; //#20577 - $k[$j++] = 8; //#20577 - $k[$j++] = $f($_.rows - 8); //#20577 - $_.qmv(); //#20577 - var _Zg = $k[--$j]; //#20577 - $put($k[--$j], _Zg, 0); //#20577 - } //#20577 + ]); //#20830 + $_.formatmap = $get(_Xs, $_.format); //#20832 + $forall($_.formatmap, function() { //#20835 + $forall($k[--$j], function() { //#20834 + $forall($k[--$j]); //#20834 + $_.qmv(); //#20834 + $put($_.pixs, $k[--$j], 1); //#20834 + }); //#20834 + }); //#20834 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20851 + $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20849 + } else { //#20851 + $_.versionmap = $a([]); //#20851 + } //#20851 + var _ZW = $_.versionmap; //#20853 + for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20855 + $forall($get(_ZW, _ZX), function() { //#20854 + $forall($k[--$j]); //#20854 + $_.qmv(); //#20854 + $put($_.pixs, $k[--$j], 0); //#20854 + }); //#20854 + } //#20854 + if ($eq($_.format, "full")) { //#20860 + $k[$j++] = $_.pixs; //#20859 + $k[$j++] = 8; //#20859 + $k[$j++] = $f($_.rows - 8); //#20859 + $_.qmv(); //#20859 + var _Zg = $k[--$j]; //#20859 + $put($k[--$j], _Zg, 0); //#20859 + } //#20859 var _a0 = $a([function() { - var _Zi = $k[--$j]; //#20583 - var _Zj = $k[--$j]; //#20583 - $k[$j++] = $f(_Zj + _Zi) % 2; //#20583 + var _Zi = $k[--$j]; //#20865 + var _Zj = $k[--$j]; //#20865 + $k[$j++] = $f(_Zj + _Zi) % 2; //#20865 }, function() { - var _Zk = $k[--$j]; //#20584 - var _Zl = $k[--$j]; //#20584 - $k[$j++] = _Zk; //#20584 - $k[$j++] = _Zl; //#20584 - $j--; //#20584 - var _Zm = $k[--$j]; //#20584 - $k[$j++] = _Zm % 2; //#20584 + var _Zk = $k[--$j]; //#20866 + var _Zl = $k[--$j]; //#20866 + $k[$j++] = _Zk; //#20866 + $k[$j++] = _Zl; //#20866 + $j--; //#20866 + var _Zm = $k[--$j]; //#20866 + $k[$j++] = _Zm % 2; //#20866 }, function() { - $j--; //#20585 - var _Zn = $k[--$j]; //#20585 - $k[$j++] = _Zn % 3; //#20585 + $j--; //#20867 + var _Zn = $k[--$j]; //#20867 + $k[$j++] = _Zn % 3; //#20867 }, function() { - var _Zo = $k[--$j]; //#20586 - var _Zp = $k[--$j]; //#20586 - $k[$j++] = $f(_Zp + _Zo) % 3; //#20586 + var _Zo = $k[--$j]; //#20868 + var _Zp = $k[--$j]; //#20868 + $k[$j++] = $f(_Zp + _Zo) % 3; //#20868 }, function() { - var _Zq = $k[--$j]; //#20587 - var _Zr = $k[--$j]; //#20587 - $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20587 + var _Zq = $k[--$j]; //#20869 + var _Zr = $k[--$j]; //#20869 + $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20869 }, function() { - var _Zs = $k[--$j]; //#20588 - var _Zu = $k[--$j] * _Zs; //#20588 - $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20588 + var _Zs = $k[--$j]; //#20870 + var _Zu = $k[--$j] * _Zs; //#20870 + $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20870 }, function() { - var _Zv = $k[--$j]; //#20589 - var _Zx = $k[--$j] * _Zv; //#20589 - $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20589 + var _Zv = $k[--$j]; //#20871 + var _Zx = $k[--$j] * _Zv; //#20871 + $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20871 }, function() { - var _Zy = $k[--$j]; //#20590 - var _Zz = $k[--$j]; //#20590 - $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20590 - }]); //#20590 + var _Zy = $k[--$j]; //#20872 + var _Zz = $k[--$j]; //#20872 + $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20872 + }]); //#20872 var _aB = $a([function() { - var _a1 = $k[--$j]; //#20593 - var _a2 = $k[--$j]; //#20593 - $k[$j++] = _a1; //#20593 - $k[$j++] = _a2; //#20593 - $j--; //#20593 - var _a3 = $k[--$j]; //#20593 - $k[$j++] = _a3 % 2; //#20593 + var _a1 = $k[--$j]; //#20875 + var _a2 = $k[--$j]; //#20875 + $k[$j++] = _a1; //#20875 + $k[$j++] = _a2; //#20875 + $j--; //#20875 + var _a3 = $k[--$j]; //#20875 + $k[$j++] = _a3 % 2; //#20875 }, function() { - var _a4 = $k[--$j]; //#20594 - var _a5 = $k[--$j]; //#20594 - $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20594 + var _a4 = $k[--$j]; //#20876 + var _a5 = $k[--$j]; //#20876 + $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20876 }, function() { - var _a6 = $k[--$j]; //#20595 - var _a8 = $k[--$j] * _a6; //#20595 - $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20595 + var _a6 = $k[--$j]; //#20877 + var _a8 = $k[--$j] * _a6; //#20877 + $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20877 }, function() { - var _a9 = $k[--$j]; //#20596 - var _aA = $k[--$j]; //#20596 - $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20596 - }]); //#20596 + var _a9 = $k[--$j]; //#20878 + var _aA = $k[--$j]; //#20878 + $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20878 + }]); //#20878 var _aE = $a([function() { - var _aC = $k[--$j]; //#20599 - var _aD = $k[--$j]; //#20599 - $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20599 - }]); //#20599 + var _aC = $k[--$j]; //#20881 + var _aD = $k[--$j]; //#20881 + $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20881 + }]); //#20881 var _aF = new Map([ ["full", _a0], ["micro", _aB], ["rmqr", _aE] - ]); //#20599 - $_.maskfuncs = $get(_aF, $_.format); //#20601 - if ($_.mask != -1) { //#20605 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20603 - $_.bestmaskval = $_.mask - 1; //#20604 - } //#20604 - $_.masks = $a($_.maskfuncs.length); //#20606 - for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20620 - $_.m = _aS; //#20608 - $_.mask = $a($_.rows * $_.cols); //#20609 - for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20618 - $_.j = _aY; //#20611 - for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20617 - $_.i = _ab; //#20613 - $k[$j++] = $_.i; //#20614 - $k[$j++] = $_.j; //#20614 + ]); //#20881 + $_.maskfuncs = $get(_aF, $_.format); //#20883 + if ($_.mask != -1) { //#20887 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20885 + $_.bestmaskval = $_.mask - 1; //#20886 + } //#20886 + $_.masks = $a($_.maskfuncs.length); //#20888 + for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20902 + $_.m = _aS; //#20890 + $_.mask = $a($_.rows * $_.cols); //#20891 + for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20900 + $_.j = _aY; //#20893 + for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20899 + $_.i = _ab; //#20895 + $k[$j++] = $_.i; //#20896 + $k[$j++] = $_.j; //#20896 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#20614 - var _ah = $k[--$j]; //#20614 - $k[$j++] = _ah == 0; //#20615 - $k[$j++] = $_.pixs; //#20615 - $k[$j++] = $_.i; //#20615 - $k[$j++] = $_.j; //#20615 - $_.qmv(); //#20615 - var _al = $k[--$j]; //#20615 - var _an = $get($k[--$j], _al); //#20615 - var _ao = $k[--$j]; //#20615 - var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20615 - $k[$j++] = _ap; //#20616 - $k[$j++] = $_.mask; //#20616 - $k[$j++] = $_.i; //#20616 - $k[$j++] = $_.j; //#20616 - $_.qmv(); //#20616 - var _at = $k[--$j]; //#20616 - var _au = $k[--$j]; //#20616 - $put(_au, _at, $k[--$j]); //#20616 - } //#20616 - } //#20616 - $put($_.masks, $_.m, $_.mask); //#20619 - } //#20619 - var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20623 - $_.posx = $f($_.cols - _b1); //#20623 - $_.posy = $f($_.rows - 1); //#20624 - $_.dir = -1; //#20625 - $_.col = 1; //#20626 - $_.num = 0; //#20627 - for (;;) { //#20650 - if ($_.posx < 0) { //#20629 - break; //#20629 - } //#20629 - $k[$j++] = $_.pixs; //#20630 - $k[$j++] = $_.posx; //#20630 - $k[$j++] = $_.posy; //#20630 - $_.qmv(); //#20630 - var _b7 = $k[--$j]; //#20630 - if ($get($k[--$j], _b7) == -1) { //#20634 - var _bC = $get($_.cws, ~~($_.num / 8)); //#20631 - var _bE = -(7 - ($_.num % 8)); //#20631 - $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20632 - $k[$j++] = $_.pixs; //#20632 - $k[$j++] = $_.posx; //#20632 - $k[$j++] = $_.posy; //#20632 - $_.qmv(); //#20632 - var _bI = $k[--$j]; //#20632 - var _bJ = $k[--$j]; //#20632 - $put(_bJ, _bI, $k[--$j]); //#20632 - $_.num = $_.num + 1; //#20633 - } //#20633 - if ($_.col == 1) { //#20647 - $_.col = 0; //#20636 - $_.posx = $f($_.posx - 1); //#20637 - } else { //#20647 - $_.col = 1; //#20639 - $_.posx = $f($_.posx + 1); //#20640 - $_.posy = $f($_.posy + $_.dir); //#20641 - if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20648 - $_.dir = $_.dir * -1; //#20643 - $_.posy = $f($_.posy + $_.dir); //#20644 - $_.posx = $f($_.posx - 2); //#20645 - if ($eq($_.format, "full") && ($_.posx == 6)) { //#20647 - $_.posx = $f($_.posx - 1); //#20647 - } //#20647 - } //#20647 - } //#20647 - } //#20647 + } //#20896 + var _ah = $k[--$j]; //#20896 + $k[$j++] = _ah == 0; //#20897 + $k[$j++] = $_.pixs; //#20897 + $k[$j++] = $_.i; //#20897 + $k[$j++] = $_.j; //#20897 + $_.qmv(); //#20897 + var _al = $k[--$j]; //#20897 + var _an = $get($k[--$j], _al); //#20897 + var _ao = $k[--$j]; //#20897 + var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20897 + $k[$j++] = _ap; //#20898 + $k[$j++] = $_.mask; //#20898 + $k[$j++] = $_.i; //#20898 + $k[$j++] = $_.j; //#20898 + $_.qmv(); //#20898 + var _at = $k[--$j]; //#20898 + var _au = $k[--$j]; //#20898 + $put(_au, _at, $k[--$j]); //#20898 + } //#20898 + } //#20898 + $put($_.masks, $_.m, $_.mask); //#20901 + } //#20901 + var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20905 + $_.posx = $f($_.cols - _b1); //#20905 + $_.posy = $f($_.rows - 1); //#20906 + $_.dir = -1; //#20907 + $_.col = 1; //#20908 + $_.num = 0; //#20909 + for (;;) { //#20932 + if ($_.posx < 0) { //#20911 + break; //#20911 + } //#20911 + $k[$j++] = $_.pixs; //#20912 + $k[$j++] = $_.posx; //#20912 + $k[$j++] = $_.posy; //#20912 + $_.qmv(); //#20912 + var _b7 = $k[--$j]; //#20912 + if ($get($k[--$j], _b7) == -1) { //#20916 + var _bC = $get($_.cws, ~~($_.num / 8)); //#20913 + var _bE = -(7 - ($_.num % 8)); //#20913 + $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20914 + $k[$j++] = $_.pixs; //#20914 + $k[$j++] = $_.posx; //#20914 + $k[$j++] = $_.posy; //#20914 + $_.qmv(); //#20914 + var _bI = $k[--$j]; //#20914 + var _bJ = $k[--$j]; //#20914 + $put(_bJ, _bI, $k[--$j]); //#20914 + $_.num = $_.num + 1; //#20915 + } //#20915 + if ($_.col == 1) { //#20929 + $_.col = 0; //#20918 + $_.posx = $f($_.posx - 1); //#20919 + } else { //#20929 + $_.col = 1; //#20921 + $_.posx = $f($_.posx + 1); //#20922 + $_.posy = $f($_.posy + $_.dir); //#20923 + if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20930 + $_.dir = $_.dir * -1; //#20925 + $_.posy = $f($_.posy + $_.dir); //#20926 + $_.posx = $f($_.posx - 2); //#20927 + if ($eq($_.format, "full") && ($_.posx == 6)) { //#20929 + $_.posx = $f($_.posx - 1); //#20929 + } //#20929 + } //#20929 + } //#20929 + } //#20929 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#20654 - $k[$j++] = 'scr1'; //#20656 - $k[$j++] = 0; //#20656 - $forall($_.scrle, function() { //#20656 - var _bd = $k[--$j]; //#20656 - $k[$j++] = _bd; //#20656 - if (_bd >= 5) { //#20656 - var _be = $k[--$j]; //#20656 - var _bg = $f($f($k[--$j] + _be) - 2); //#20656 - $k[$j++] = _bg; //#20656 - $k[$j++] = _bg; //#20656 - } //#20656 - $j--; //#20656 - }); //#20656 - var _bh = $k[--$j]; //#20656 - $_[$k[--$j]] = _bh; //#20656 - $_.scr3 = 0; //#20658 - for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20673 - $_.j = _bl; //#20660 - if (($get($_.scrle, $_.j) % 3) == 0) { //#20672 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20662 - var _bu = $geti($_.scrle, $_.j - 2, 5); //#20663 - for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20663 - $k[$j++] = $get(_bu, _bv) == $_.fact; //#20663 - } //#20663 - var _bz = $k[--$j]; //#20663 - var _c0 = $k[--$j]; //#20663 - var _c1 = $k[--$j]; //#20663 - $k[$j++] = $an(_c0, _bz); //#20663 - $k[$j++] = _c1; //#20663 - $j--; //#20663 - var _c2 = $k[--$j]; //#20663 - var _c3 = $k[--$j]; //#20663 - var _c4 = $k[--$j]; //#20663 - if (_c4 && (_c3 && _c2)) { //#20671 - if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20668 - $_.scr3 = $_.scr3 + 40; //#20665 - } else { //#20668 - if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20669 - $_.scr3 = $_.scr3 + 40; //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - $k[$j++] = $_.scr1; //#20674 - $k[$j++] = $_.scr3; //#20674 - }; //#20674 + $_.scrle = $k[--$j]; //#20936 + $k[$j++] = 'scr1'; //#20938 + $k[$j++] = 0; //#20938 + $forall($_.scrle, function() { //#20938 + var _bd = $k[--$j]; //#20938 + $k[$j++] = _bd; //#20938 + if (_bd >= 5) { //#20938 + var _be = $k[--$j]; //#20938 + var _bg = $f($f($k[--$j] + _be) - 2); //#20938 + $k[$j++] = _bg; //#20938 + $k[$j++] = _bg; //#20938 + } //#20938 + $j--; //#20938 + }); //#20938 + var _bh = $k[--$j]; //#20938 + $_[$k[--$j]] = _bh; //#20938 + $_.scr3 = 0; //#20940 + for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20955 + $_.j = _bl; //#20942 + if (($get($_.scrle, $_.j) % 3) == 0) { //#20954 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20944 + var _bu = $geti($_.scrle, $_.j - 2, 5); //#20945 + for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20945 + $k[$j++] = $get(_bu, _bv) == $_.fact; //#20945 + } //#20945 + var _bz = $k[--$j]; //#20945 + var _c0 = $k[--$j]; //#20945 + var _c1 = $k[--$j]; //#20945 + $k[$j++] = $an(_c0, _bz); //#20945 + $k[$j++] = _c1; //#20945 + $j--; //#20945 + var _c2 = $k[--$j]; //#20945 + var _c3 = $k[--$j]; //#20945 + var _c4 = $k[--$j]; //#20945 + if (_c4 && (_c3 && _c2)) { //#20953 + if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20950 + $_.scr3 = $_.scr3 + 40; //#20947 + } else { //#20950 + if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20951 + $_.scr3 = $_.scr3 + 40; //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + $k[$j++] = $_.scr1; //#20956 + $k[$j++] = $_.scr3; //#20956 + }; //#20956 $_.evalfull = function() { - $_.sym = $k[--$j]; //#20679 - $_.n1 = 0; //#20681 - $_.n2 = 0; //#20681 - $_.n3 = 0; //#20681 - $_.rle = $a($f($_.cols + 1)); //#20682 - $_.lastpairs = $a($_.cols); //#20683 - $_.thispairs = $a($_.cols); //#20684 - $_.colsadd1 = $f($_.cols + 1); //#20685 - for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#20724 - $_.i = _cS; //#20687 - $k[$j++] = Infinity; //#20690 - var _cU = $_.cols; //#20691 - $k[$j++] = 0; //#20693 - $k[$j++] = 0; //#20693 - for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20693 - var _cZ = $get($_.sym, _cW); //#20692 - var _ca = $k[--$j]; //#20692 - $k[$j++] = _cZ; //#20692 - if ($eq(_ca, _cZ)) { //#20692 - var _cb = $k[--$j]; //#20692 - var _cc = $k[--$j]; //#20692 - $k[$j++] = $f(_cc + 1); //#20692 - $k[$j++] = _cb; //#20692 - } else { //#20692 - var _cd = $k[--$j]; //#20692 - $k[$j++] = 1; //#20692 - $k[$j++] = _cd; //#20692 - } //#20692 - } //#20692 - $j--; //#20694 - var _cf = $counttomark() + 2; //#20695 - $astore($geti($_.rle, 0, _cf - 2)); //#20695 - $_.evalfulln1n3(); //#20696 - $_.n3 = $f($k[--$j] + $_.n3); //#20696 - $_.n1 = $f($k[--$j] + $_.n1); //#20696 - $j--; //#20697 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20700 - $k[$j++] = Infinity; //#20701 - var _cq = $_.symrow; //#20702 - $k[$j++] = 0; //#20704 - $k[$j++] = 0; //#20704 - for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20704 - var _ct = $get(_cq, _cr); //#20704 - var _cu = $k[--$j]; //#20703 - $k[$j++] = _ct; //#20703 - if ($eq(_cu, _ct)) { //#20703 - var _cv = $k[--$j]; //#20703 - var _cw = $k[--$j]; //#20703 - $k[$j++] = $f(_cw + 1); //#20703 - $k[$j++] = _cv; //#20703 - } else { //#20703 - var _cx = $k[--$j]; //#20703 - $k[$j++] = 1; //#20703 - $k[$j++] = _cx; //#20703 - } //#20703 - } //#20703 - $j--; //#20705 - var _cz = $counttomark() + 2; //#20706 - $astore($geti($_.rle, 0, _cz - 2)); //#20706 - $_.evalfulln1n3(); //#20707 - $_.n3 = $f($k[--$j] + $_.n3); //#20707 - $_.n1 = $f($k[--$j] + $_.n1); //#20707 - $j--; //#20708 - var _d5 = $_.thispairs; //#20711 - $_.thispairs = $_.lastpairs; //#20711 - $_.lastpairs = _d5; //#20711 - var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20712 - var _dA = $_.symrow; //#20713 - $k[$j++] = _d9; //#20713 - for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20713 - var _dD = $get(_dA, _dB); //#20713 - var _dE = $k[--$j]; //#20713 - $k[$j++] = $f(_dE + _dD); //#20713 - $k[$j++] = _dD; //#20713 - } //#20713 - $j--; //#20714 - $astore($_.thispairs); //#20715 - $j--; //#20715 - if ($_.i > 0) { //#20722 - $k[$j++] = Infinity; //#20717 - $aload($_.lastpairs); //#20718 - $aload($_.thispairs); //#20718 - $k[$j++] = $_.n2; //#20719 - for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#20719 - var _dN = $k[--$j]; //#20719 - var _dO = $k[--$j]; //#20719 - $k[$j++] = _dN; //#20719 - $k[$j++] = _dO; //#20719 - var _dQ = $k[$j - 1 - $_.colsadd1]; //#20719 - if (($f($k[--$j] + _dQ) & 3) == 0) { //#20719 - var _dS = $k[--$j]; //#20719 - $k[$j++] = $f(_dS + 3); //#20719 - } //#20719 - } //#20719 - $_.n2 = $k[--$j]; //#20720 - $cleartomark(); //#20721 - } //#20721 - } //#20721 - $k[$j++] = 'dark'; //#20727 - $k[$j++] = 0; //#20727 - $forall($_.sym, function() { //#20727 - var _dV = $k[--$j]; //#20727 - var _dW = $k[--$j]; //#20727 - $k[$j++] = $f(_dW + _dV); //#20727 - }); //#20727 - var _dX = $k[--$j]; //#20727 - $_[$k[--$j]] = _dX; //#20727 - var _da = $_.cols; //#20728 - $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#20728 - $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#20730 - }; //#20730 + $_.sym = $k[--$j]; //#20961 + $_.n1 = 0; //#20963 + $_.n2 = 0; //#20963 + $_.n3 = 0; //#20963 + $_.rle = $a($f($_.cols + 1)); //#20964 + $_.lastpairs = $a($_.cols); //#20965 + $_.thispairs = $a($_.cols); //#20966 + $_.colsadd1 = $f($_.cols + 1); //#20967 + for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#21006 + $_.i = _cS; //#20969 + $k[$j++] = Infinity; //#20972 + var _cU = $_.cols; //#20973 + $k[$j++] = 0; //#20975 + $k[$j++] = 0; //#20975 + for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20975 + var _cZ = $get($_.sym, _cW); //#20974 + var _ca = $k[--$j]; //#20974 + $k[$j++] = _cZ; //#20974 + if ($eq(_ca, _cZ)) { //#20974 + var _cb = $k[--$j]; //#20974 + var _cc = $k[--$j]; //#20974 + $k[$j++] = $f(_cc + 1); //#20974 + $k[$j++] = _cb; //#20974 + } else { //#20974 + var _cd = $k[--$j]; //#20974 + $k[$j++] = 1; //#20974 + $k[$j++] = _cd; //#20974 + } //#20974 + } //#20974 + $j--; //#20976 + var _cf = $counttomark() + 2; //#20977 + $astore($geti($_.rle, 0, _cf - 2)); //#20977 + $_.evalfulln1n3(); //#20978 + $_.n3 = $f($k[--$j] + $_.n3); //#20978 + $_.n1 = $f($k[--$j] + $_.n1); //#20978 + $j--; //#20979 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20982 + $k[$j++] = Infinity; //#20983 + var _cq = $_.symrow; //#20984 + $k[$j++] = 0; //#20986 + $k[$j++] = 0; //#20986 + for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20986 + var _ct = $get(_cq, _cr); //#20986 + var _cu = $k[--$j]; //#20985 + $k[$j++] = _ct; //#20985 + if ($eq(_cu, _ct)) { //#20985 + var _cv = $k[--$j]; //#20985 + var _cw = $k[--$j]; //#20985 + $k[$j++] = $f(_cw + 1); //#20985 + $k[$j++] = _cv; //#20985 + } else { //#20985 + var _cx = $k[--$j]; //#20985 + $k[$j++] = 1; //#20985 + $k[$j++] = _cx; //#20985 + } //#20985 + } //#20985 + $j--; //#20987 + var _cz = $counttomark() + 2; //#20988 + $astore($geti($_.rle, 0, _cz - 2)); //#20988 + $_.evalfulln1n3(); //#20989 + $_.n3 = $f($k[--$j] + $_.n3); //#20989 + $_.n1 = $f($k[--$j] + $_.n1); //#20989 + $j--; //#20990 + var _d5 = $_.thispairs; //#20993 + $_.thispairs = $_.lastpairs; //#20993 + $_.lastpairs = _d5; //#20993 + var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20994 + var _dA = $_.symrow; //#20995 + $k[$j++] = _d9; //#20995 + for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20995 + var _dD = $get(_dA, _dB); //#20995 + var _dE = $k[--$j]; //#20995 + $k[$j++] = $f(_dE + _dD); //#20995 + $k[$j++] = _dD; //#20995 + } //#20995 + $j--; //#20996 + $astore($_.thispairs); //#20997 + $j--; //#20997 + if ($_.i > 0) { //#21004 + $k[$j++] = Infinity; //#20999 + $aload($_.lastpairs); //#21000 + $aload($_.thispairs); //#21000 + $k[$j++] = $_.n2; //#21001 + for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#21001 + var _dN = $k[--$j]; //#21001 + var _dO = $k[--$j]; //#21001 + $k[$j++] = _dN; //#21001 + $k[$j++] = _dO; //#21001 + var _dQ = $k[$j - 1 - $_.colsadd1]; //#21001 + if (($f($k[--$j] + _dQ) & 3) == 0) { //#21001 + var _dS = $k[--$j]; //#21001 + $k[$j++] = $f(_dS + 3); //#21001 + } //#21001 + } //#21001 + $_.n2 = $k[--$j]; //#21002 + $cleartomark(); //#21003 + } //#21003 + } //#21003 + $k[$j++] = 'dark'; //#21009 + $k[$j++] = 0; //#21009 + $forall($_.sym, function() { //#21009 + var _dV = $k[--$j]; //#21009 + var _dW = $k[--$j]; //#21009 + $k[$j++] = $f(_dW + _dV); //#21009 + }); //#21009 + var _dX = $k[--$j]; //#21009 + $_[$k[--$j]] = _dX; //#21009 + var _da = $_.cols; //#21010 + $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#21010 + $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#21012 + }; //#21012 $_.evalmicro = function() { - $_.sym = $k[--$j]; //#20735 - $_.dkrhs = 0; //#20736 - $_.dkbot = 0; //#20736 - for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#20741 - $_.i = _di; //#20738 - $k[$j++] = 'dkrhs'; //#20739 - $k[$j++] = $_.dkrhs; //#20739 - $k[$j++] = $_.sym; //#20739 - $k[$j++] = $f($_.cols - 1); //#20739 - $k[$j++] = $_.i; //#20739 - $_.qmv(); //#20739 - var _dn = $k[--$j]; //#20739 - var _dp = $get($k[--$j], _dn); //#20739 - var _dq = $k[--$j]; //#20739 - $_[$k[--$j]] = $f(_dq + _dp); //#20739 - $k[$j++] = 'dkbot'; //#20740 - $k[$j++] = $_.dkbot; //#20740 - $k[$j++] = $_.sym; //#20740 - $k[$j++] = $_.i; //#20740 - $k[$j++] = $f($_.cols - 1); //#20740 - $_.qmv(); //#20740 - var _dw = $k[--$j]; //#20740 - var _dy = $get($k[--$j], _dw); //#20740 - var _dz = $k[--$j]; //#20740 - $_[$k[--$j]] = $f(_dz + _dy); //#20740 - } //#20740 - if ($_.dkrhs <= $_.dkbot) { //#20745 - $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#20743 - } else { //#20745 - $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#20745 - } //#20745 - }; //#20745 - $_.bestscore = 999999999; //#20750 - for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#20772 - $_.m = _e9; //#20752 - $_.masksym = $a($_.rows * $_.cols); //#20753 - for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#20757 - $_.i = _eG; //#20755 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#20756 - } //#20756 - if ($_.masks.length != 1) { //#20770 - if ($eq($_.format, "full")) { //#20762 - $k[$j++] = $_.masksym; //#20760 - $_.evalfull(); //#20760 - $_.score = $k[--$j]; //#20760 - } else { //#20762 - $k[$j++] = $_.masksym; //#20762 - $_.evalmicro(); //#20762 - $_.score = $k[--$j]; //#20762 - } //#20762 - if ($_.score < $_.bestscore) { //#20768 - $_.bestsym = $_.masksym; //#20765 - $_.bestmaskval = $_.m; //#20766 - $_.bestscore = $_.score; //#20767 - } //#20767 - } else { //#20770 - $_.bestsym = $_.masksym; //#20770 - } //#20770 - } //#20770 - $_.pixs = $_.bestsym; //#20773 - if ($eq($_.format, "full")) { //#20778 - $k[$j++] = $_.pixs; //#20777 - $k[$j++] = 8; //#20777 - $k[$j++] = $f($_.cols - 8); //#20777 - $_.qmv(); //#20777 - var _eh = $k[--$j]; //#20777 - $put($k[--$j], _eh, 1); //#20777 - } //#20777 - if (!bwipp_qrcode.__20814__) { //#20814 - $_ = Object.create($_); //#20814 - $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#20787 - $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#20793 - $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#20803 - $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#20813 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 - bwipp_qrcode.__20814__ = 1; //#20813 - $_ = Object.getPrototypeOf($_); //#20813 - } //#20813 - if ($eq($_.format, "full")) { //#20824 - $k[$j++] = 'ecid'; //#20816 - $search("MLHQ", $_.eclevel); //#20816 - $j--; //#20816 - var _eq = $k[--$j]; //#20816 - var _er = $k[--$j]; //#20816 - $k[$j++] = _eq.length; //#20816 - $k[$j++] = _er; //#20816 - $j--; //#20816 - var _es = $k[--$j]; //#20816 - var _et = $k[--$j]; //#20816 - $k[$j++] = _es; //#20816 - $k[$j++] = _et; //#20816 - $j--; //#20816 - var _eu = $k[--$j]; //#20816 - $_[$k[--$j]] = _eu; //#20816 - $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#20817 - for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#20823 - $_.i = _f2; //#20819 - $forall($get($_.formatmap, $_.i), function() { //#20822 - var _f7 = $k[--$j]; //#20821 - $k[$j++] = $_.pixs; //#20821 - $aload(_f7); //#20821 - $_.qmv(); //#20821 - var _f8 = $_.fmtval; //#20821 - var _fA = -(14 - $_.i); //#20821 - var _fB = $k[--$j]; //#20821 - $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#20821 - }); //#20821 - } //#20821 - } //#20821 - if ($eq($_.format, "micro")) { //#20832 - $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#20826 - $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#20827 - for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#20831 - $_.i = _fT; //#20829 - $k[$j++] = $_.pixs; //#20830 - $aload($get($get($_.formatmap, $_.i), 0)); //#20830 - $_.qmv(); //#20830 - var _fZ = $_.fmtval; //#20830 - var _fb = -(14 - $_.i); //#20830 - var _fc = $k[--$j]; //#20830 - $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#20830 - } //#20830 - } //#20830 - if ($eq($_.format, "rmqr")) { //#20842 - $k[$j++] = 'fmtvalu'; //#20834 - $search("MH", $_.eclevel); //#20834 - $j--; //#20834 - var _fg = $k[--$j]; //#20834 - var _fh = $k[--$j]; //#20834 - $k[$j++] = _fg.length; //#20834 - $k[$j++] = _fh; //#20834 - $j--; //#20834 - var _fi = $k[--$j]; //#20834 - var _fj = $k[--$j]; //#20834 - $k[$j++] = _fi; //#20834 - $k[$j++] = _fj; //#20834 - $j--; //#20834 - var _fk = $k[--$j]; //#20834 - $_[$k[--$j]] = (_fk << 5) + $_.verind; //#20834 - $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#20835 - $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#20836 - for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#20841 - $_.i = _fv; //#20838 - $k[$j++] = $_.pixs; //#20839 - $aload($get($get($_.formatmap, $_.i), 0)); //#20839 - $_.qmv(); //#20839 - var _g1 = $_.fmtval1; //#20839 - var _g3 = -(17 - $_.i); //#20839 - var _g4 = $k[--$j]; //#20839 - $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#20839 - $k[$j++] = $_.pixs; //#20840 - $aload($get($get($_.formatmap, $_.i), 1)); //#20840 - $_.qmv(); //#20840 - var _gB = $_.fmtval2; //#20840 - var _gD = -(17 - $_.i); //#20840 - var _gE = $k[--$j]; //#20840 - $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#20840 - } //#20840 - } //#20840 - if (!bwipp_qrcode.__20853__) { //#20853 - $_ = Object.create($_); //#20853 - $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#20852 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20852 - bwipp_qrcode.__20853__ = 1; //#20852 - $_ = Object.getPrototypeOf($_); //#20852 - } //#20852 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20862 - $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#20855 - for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#20861 - $_.i = _gP; //#20857 - $forall($get($_.versionmap, $_.i), function() { //#20860 - var _gU = $k[--$j]; //#20859 - $k[$j++] = $_.pixs; //#20859 - $forall(_gU); //#20859 - $_.qmv(); //#20859 - var _gV = $_.verval; //#20859 - var _gX = -(17 - $_.i); //#20859 - var _gY = $k[--$j]; //#20859 - $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#20859 - }); //#20859 - } //#20859 - } //#20859 - var _gg = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows * 2) / 72], - ["width", ($_.cols * 2) / 72], - ["opt", $_.options] - ]); //#20872 - $k[$j++] = _gg; //#20875 - if (!$_.dontdraw) { //#20875 - bwipp_renmatrix(); //#20875 - } //#20875 - $_ = Object.getPrototypeOf($_); //#20877 - $_ = Object.getPrototypeOf($_); //#20879 -} - + $_.sym = $k[--$j]; //#21017 + $_.dkrhs = 0; //#21018 + $_.dkbot = 0; //#21018 + for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#21023 + $_.i = _di; //#21020 + $k[$j++] = 'dkrhs'; //#21021 + $k[$j++] = $_.dkrhs; //#21021 + $k[$j++] = $_.sym; //#21021 + $k[$j++] = $f($_.cols - 1); //#21021 + $k[$j++] = $_.i; //#21021 + $_.qmv(); //#21021 + var _dn = $k[--$j]; //#21021 + var _dp = $get($k[--$j], _dn); //#21021 + var _dq = $k[--$j]; //#21021 + $_[$k[--$j]] = $f(_dq + _dp); //#21021 + $k[$j++] = 'dkbot'; //#21022 + $k[$j++] = $_.dkbot; //#21022 + $k[$j++] = $_.sym; //#21022 + $k[$j++] = $_.i; //#21022 + $k[$j++] = $f($_.cols - 1); //#21022 + $_.qmv(); //#21022 + var _dw = $k[--$j]; //#21022 + var _dy = $get($k[--$j], _dw); //#21022 + var _dz = $k[--$j]; //#21022 + $_[$k[--$j]] = $f(_dz + _dy); //#21022 + } //#21022 + if ($_.dkrhs <= $_.dkbot) { //#21027 + $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#21025 + } else { //#21027 + $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#21027 + } //#21027 + }; //#21027 + $_.bestscore = 999999999; //#21032 + for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#21054 + $_.m = _e9; //#21034 + $_.masksym = $a($_.rows * $_.cols); //#21035 + for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#21039 + $_.i = _eG; //#21037 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#21038 + } //#21038 + if ($_.masks.length != 1) { //#21052 + if ($eq($_.format, "full")) { //#21044 + $k[$j++] = $_.masksym; //#21042 + $_.evalfull(); //#21042 + $_.score = $k[--$j]; //#21042 + } else { //#21044 + $k[$j++] = $_.masksym; //#21044 + $_.evalmicro(); //#21044 + $_.score = $k[--$j]; //#21044 + } //#21044 + if ($_.score < $_.bestscore) { //#21050 + $_.bestsym = $_.masksym; //#21047 + $_.bestmaskval = $_.m; //#21048 + $_.bestscore = $_.score; //#21049 + } //#21049 + } else { //#21052 + $_.bestsym = $_.masksym; //#21052 + } //#21052 + } //#21052 + $_.pixs = $_.bestsym; //#21055 + if ($eq($_.format, "full")) { //#21060 + $k[$j++] = $_.pixs; //#21059 + $k[$j++] = 8; //#21059 + $k[$j++] = $f($_.cols - 8); //#21059 + $_.qmv(); //#21059 + var _eh = $k[--$j]; //#21059 + $put($k[--$j], _eh, 1); //#21059 + } //#21059 + if (!bwipp_qrcode.__21096__) { //#21096 + $_ = Object.create($_); //#21096 + $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#21069 + $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#21075 + $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#21085 + $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#21095 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21095 + bwipp_qrcode.__21096__ = 1; //#21095 + $_ = Object.getPrototypeOf($_); //#21095 + } //#21095 + if ($eq($_.format, "full")) { //#21106 + $k[$j++] = 'ecid'; //#21098 + $search("MLHQ", $_.eclevel); //#21098 + $j--; //#21098 + var _eq = $k[--$j]; //#21098 + var _er = $k[--$j]; //#21098 + $k[$j++] = _eq.length; //#21098 + $k[$j++] = _er; //#21098 + $j--; //#21098 + var _es = $k[--$j]; //#21098 + var _et = $k[--$j]; //#21098 + $k[$j++] = _es; //#21098 + $k[$j++] = _et; //#21098 + $j--; //#21098 + var _eu = $k[--$j]; //#21098 + $_[$k[--$j]] = _eu; //#21098 + $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#21099 + for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#21105 + $_.i = _f2; //#21101 + $forall($get($_.formatmap, $_.i), function() { //#21104 + var _f7 = $k[--$j]; //#21103 + $k[$j++] = $_.pixs; //#21103 + $aload(_f7); //#21103 + $_.qmv(); //#21103 + var _f8 = $_.fmtval; //#21103 + var _fA = -(14 - $_.i); //#21103 + var _fB = $k[--$j]; //#21103 + $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#21103 + }); //#21103 + } //#21103 + } //#21103 + if ($eq($_.format, "micro")) { //#21114 + $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#21108 + $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#21109 + for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#21113 + $_.i = _fT; //#21111 + $k[$j++] = $_.pixs; //#21112 + $aload($get($get($_.formatmap, $_.i), 0)); //#21112 + $_.qmv(); //#21112 + var _fZ = $_.fmtval; //#21112 + var _fb = -(14 - $_.i); //#21112 + var _fc = $k[--$j]; //#21112 + $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#21112 + } //#21112 + } //#21112 + if ($eq($_.format, "rmqr")) { //#21124 + $k[$j++] = 'fmtvalu'; //#21116 + $search("MH", $_.eclevel); //#21116 + $j--; //#21116 + var _fg = $k[--$j]; //#21116 + var _fh = $k[--$j]; //#21116 + $k[$j++] = _fg.length; //#21116 + $k[$j++] = _fh; //#21116 + $j--; //#21116 + var _fi = $k[--$j]; //#21116 + var _fj = $k[--$j]; //#21116 + $k[$j++] = _fi; //#21116 + $k[$j++] = _fj; //#21116 + $j--; //#21116 + var _fk = $k[--$j]; //#21116 + $_[$k[--$j]] = (_fk << 5) + $_.verind; //#21116 + $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#21117 + $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#21118 + for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#21123 + $_.i = _fv; //#21120 + $k[$j++] = $_.pixs; //#21121 + $aload($get($get($_.formatmap, $_.i), 0)); //#21121 + $_.qmv(); //#21121 + var _g1 = $_.fmtval1; //#21121 + var _g3 = -(17 - $_.i); //#21121 + var _g4 = $k[--$j]; //#21121 + $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#21121 + $k[$j++] = $_.pixs; //#21122 + $aload($get($get($_.formatmap, $_.i), 1)); //#21122 + $_.qmv(); //#21122 + var _gB = $_.fmtval2; //#21122 + var _gD = -(17 - $_.i); //#21122 + var _gE = $k[--$j]; //#21122 + $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#21122 + } //#21122 + } //#21122 + if (!bwipp_qrcode.__21135__) { //#21135 + $_ = Object.create($_); //#21135 + $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#21134 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21134 + bwipp_qrcode.__21135__ = 1; //#21134 + $_ = Object.getPrototypeOf($_); //#21134 + } //#21134 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#21144 + $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#21137 + for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#21143 + $_.i = _gP; //#21139 + $forall($get($_.versionmap, $_.i), function() { //#21142 + var _gU = $k[--$j]; //#21141 + $k[$j++] = $_.pixs; //#21141 + $forall(_gU); //#21141 + $_.qmv(); //#21141 + var _gV = $_.verval; //#21141 + var _gX = -(17 - $_.i); //#21141 + var _gY = $k[--$j]; //#21141 + $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#21141 + }); //#21141 + } //#21141 + } //#21141 + $k[$j++] = Infinity; //#21147 + $k[$j++] = 'ren'; //#21154 + $k[$j++] = bwipp_renmatrix; //#21154 + $k[$j++] = 'pixs'; //#21154 + $k[$j++] = $_.pixs; //#21154 + $k[$j++] = 'pixx'; //#21154 + $k[$j++] = $_.cols; //#21154 + $k[$j++] = 'pixy'; //#21154 + $k[$j++] = $_.rows; //#21154 + $k[$j++] = 'height'; //#21154 + $k[$j++] = ($_.rows * 2) / 72; //#21154 + $k[$j++] = 'width'; //#21154 + $k[$j++] = ($_.cols * 2) / 72; //#21154 + $k[$j++] = 'borderleft'; //#21154 + if ($eq($_.format, "full")) { //#21154 + $k[$j++] = 4; //#21154 + } else { //#21154 + $k[$j++] = 2; //#21154 + } //#21154 + $k[$j++] = 'borderright'; //#21155 + if ($eq($_.format, "full")) { //#21155 + $k[$j++] = 4; //#21155 + } else { //#21155 + $k[$j++] = 2; //#21155 + } //#21155 + $k[$j++] = 'bordertop'; //#21156 + if ($eq($_.format, "full")) { //#21156 + $k[$j++] = 4; //#21156 + } else { //#21156 + $k[$j++] = 2; //#21156 + } //#21156 + $k[$j++] = 'borderbottom'; //#21157 + if ($eq($_.format, "full")) { //#21157 + $k[$j++] = 4; //#21157 + } else { //#21157 + $k[$j++] = 2; //#21157 + } //#21157 + $k[$j++] = 'opt'; //#21158 + $k[$j++] = $_.options; //#21158 + var _gk = $d(); //#21158 + $k[$j++] = _gk; //#21161 + if (!$_.dontdraw) { //#21161 + bwipp_renmatrix(); //#21161 + } //#21161 + $_ = Object.getPrototypeOf($_); //#21163 + $_ = Object.getPrototypeOf($_); //#21165 +} //bwipp_qrcode function bwipp_swissqrcode() { - $_ = Object.create($_); //#20909 - $_.dontdraw = false; //#20912 - $_.parse = false; //#20913 - $k[$j++] = $_; //#20915 - bwipp_processoptions(); //#20915 - $_.options = $k[--$j]; //#20915 - $_.barcode = $k[--$j]; //#20916 + $_ = Object.create($_); //#21195 + $_.dontdraw = false; //#21198 + $_.parse = false; //#21199 + $k[$j++] = $_; //#21201 + bwipp_processoptions(); //#21201 + $_.options = $k[--$j]; //#21201 + $_.barcode = $k[--$j]; //#21202 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#20922 - $_.fncvals = _3; //#20923 - $k[$j++] = 'barcode'; //#20924 - $k[$j++] = $_.barcode; //#20924 - $k[$j++] = $_.fncvals; //#20924 - bwipp_parseinput(); //#20924 - var _6 = $k[--$j]; //#20924 - $_[$k[--$j]] = _6; //#20924 - $_.barlen = $_.barcode.length; //#20925 - delete $_.options["parse"]; //#20926 - if ($_.barcode.length > 997) { //#20931 - $k[$j++] = 'bwipp.swissqrcodeBadLength#20930'; //#20930 - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#20930 - bwipp_raiseerror(); //#20930 - } //#20930 - $put($_.options, "dontdraw", true); //#20934 - $k[$j++] = 'args'; //#20935 - $k[$j++] = $_.barcode; //#20935 - $k[$j++] = $_.options; //#20935 - bwipp_qrcode(); //#20935 - var _E = $k[--$j]; //#20935 - $_[$k[--$j]] = _E; //#20935 - $put($_.args, "opt", $_.options); //#20937 - $k[$j++] = $_.args; //#21006 - if (!$_.dontdraw) { //#21006 - $$.save(); //#20951 - var _K = $$.currpos(); //#20952 - $$.translate(_K.x, _K.y); //#20952 - var _L = 72 / 25.4; //#20953 - $$.scale(_L, _L); //#20953 - $$.save(); //#20956 - $$.newpath(); //#20957 - $$.moveto(0, 0); //#20958 - $$.lineto(46, 0); //#20959 - $$.lineto(46, 46); //#20960 - $$.lineto(0, 46); //#20961 - $$.closepath(); //#20962 - $$.moveto(19.5, 19.5); //#20963 - $$.lineto(19.5, 26.5); //#20964 - $$.lineto(26.5, 26.5); //#20965 - $$.lineto(26.5, 19.5); //#20966 - $$.closepath(); //#20967 - $$.clip(); //#20968 - $$.save(); //#20971 - $$.moveto(0, 0); //#20972 - var _O = (46 / $get($_.args, "pixx")) / 2; //#20973 - $$.scale(_O, _O); //#20973 - bwipp_renmatrix(); //#20974 - $$.restore(); //#20975 - $$.restore(); //#20977 - $$.translate(19.5, 19.5); //#20980 - var _P = 7 / 83; //#20981 - $$.scale(_P, _P); //#20981 - $$.newpath(); //#20983 - $$.moveto(6, 6); //#20984 - $$.lineto(6, 77); //#20985 - $$.lineto(77, 77); //#20986 - $$.lineto(77, 6); //#20987 - $$.closepath(); //#20988 - $$.moveto(49, 18); //#20989 - $$.lineto(49, 34); //#20990 - $$.lineto(65, 34); //#20991 - $$.lineto(65, 49); //#20992 - $$.lineto(49, 49); //#20993 - $$.lineto(49, 65); //#20994 - $$.lineto(34, 65); //#20995 - $$.lineto(34, 49); //#20996 - $$.lineto(18, 49); //#20997 - $$.lineto(18, 34); //#20998 - $$.lineto(34, 34); //#20999 - $$.lineto(34, 18); //#21000 - $$.closepath(); //#21001 - $$.setrgbcolor(0, 0, 0); //#21002 - $$.fill(); //#21002 - $$.restore(); //#21004 - } //#21004 - $_ = Object.getPrototypeOf($_); //#21008 -} - + ]); //#21208 + $_.fncvals = _3; //#21209 + $k[$j++] = 'barcode'; //#21210 + $k[$j++] = $_.barcode; //#21210 + $k[$j++] = $_.fncvals; //#21210 + bwipp_parseinput(); //#21210 + var _6 = $k[--$j]; //#21210 + $_[$k[--$j]] = _6; //#21210 + $_.barlen = $_.barcode.length; //#21211 + delete $_.options["parse"]; //#21212 + if ($_.barcode.length > 997) { //#21217 + $k[$j++] = 'bwipp.swissqrcodeBadLength#21216'; //#21216 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#21216 + bwipp_raiseerror(); //#21216 + } //#21216 + $put($_.options, "dontdraw", true); //#21220 + $k[$j++] = 'args'; //#21221 + $k[$j++] = $_.barcode; //#21221 + $k[$j++] = $_.options; //#21221 + bwipp_qrcode(); //#21221 + var _E = $k[--$j]; //#21221 + $_[$k[--$j]] = _E; //#21221 + $put($_.args, "opt", $_.options); //#21223 + $k[$j++] = $_.args; //#21292 + if (!$_.dontdraw) { //#21292 + $$.save(); //#21237 + var _K = $$.currpos(); //#21238 + $$.translate(_K.x, _K.y); //#21238 + var _L = 72 / 25.4; //#21239 + $$.scale(_L, _L); //#21239 + $$.save(); //#21242 + $$.newpath(); //#21243 + $$.moveto(0, 0); //#21244 + $$.lineto(46, 0); //#21245 + $$.lineto(46, 46); //#21246 + $$.lineto(0, 46); //#21247 + $$.closepath(); //#21248 + $$.moveto(19.5, 19.5); //#21249 + $$.lineto(19.5, 26.5); //#21250 + $$.lineto(26.5, 26.5); //#21251 + $$.lineto(26.5, 19.5); //#21252 + $$.closepath(); //#21253 + $$.clip(); //#21254 + $$.save(); //#21257 + $$.moveto(0, 0); //#21258 + var _O = (46 / $get($_.args, "pixx")) / 2; //#21259 + $$.scale(_O, _O); //#21259 + bwipp_renmatrix(); //#21260 + $$.restore(); //#21261 + $$.restore(); //#21263 + $$.translate(19.5, 19.5); //#21266 + var _P = 7 / 83; //#21267 + $$.scale(_P, _P); //#21267 + $$.newpath(); //#21269 + $$.moveto(6, 6); //#21270 + $$.lineto(6, 77); //#21271 + $$.lineto(77, 77); //#21272 + $$.lineto(77, 6); //#21273 + $$.closepath(); //#21274 + $$.moveto(49, 18); //#21275 + $$.lineto(49, 34); //#21276 + $$.lineto(65, 34); //#21277 + $$.lineto(65, 49); //#21278 + $$.lineto(49, 49); //#21279 + $$.lineto(49, 65); //#21280 + $$.lineto(34, 65); //#21281 + $$.lineto(34, 49); //#21282 + $$.lineto(18, 49); //#21283 + $$.lineto(18, 34); //#21284 + $$.lineto(34, 34); //#21285 + $$.lineto(34, 18); //#21286 + $$.closepath(); //#21287 + $$.setrgbcolor(0, 0, 0); //#21288 + $$.fill(); //#21288 + $$.restore(); //#21290 + } //#21290 + $_ = Object.getPrototypeOf($_); //#21294 +} //bwipp_swissqrcode function bwipp_microqrcode() { - $_ = Object.create($_); //#21037 - $_.dontdraw = false; //#21040 - $k[$j++] = $_; //#21042 - bwipp_processoptions(); //#21042 - $_.options = $k[--$j]; //#21042 - $_.barcode = $k[--$j]; //#21043 - $put($_.options, "dontdraw", true); //#21046 - $put($_.options, "format", "micro"); //#21047 - $k[$j++] = 'args'; //#21049 - $k[$j++] = $_.barcode; //#21049 - $k[$j++] = $_.options; //#21049 - bwipp_qrcode(); //#21049 - var _6 = $k[--$j]; //#21049 - $_[$k[--$j]] = _6; //#21049 - $put($_.args, "opt", $_.options); //#21051 - $k[$j++] = $_.args; //#21054 - if (!$_.dontdraw) { //#21054 - bwipp_renmatrix(); //#21054 - } //#21054 - $_ = Object.getPrototypeOf($_); //#21056 -} - + $_ = Object.create($_); //#21323 + $_.dontdraw = false; //#21326 + $k[$j++] = $_; //#21328 + bwipp_processoptions(); //#21328 + $_.options = $k[--$j]; //#21328 + $_.barcode = $k[--$j]; //#21329 + $put($_.options, "dontdraw", true); //#21332 + $put($_.options, "format", "micro"); //#21333 + $k[$j++] = 'args'; //#21335 + $k[$j++] = $_.barcode; //#21335 + $k[$j++] = $_.options; //#21335 + bwipp_qrcode(); //#21335 + var _6 = $k[--$j]; //#21335 + $_[$k[--$j]] = _6; //#21335 + $put($_.args, "opt", $_.options); //#21337 + $k[$j++] = $_.args; //#21340 + if (!$_.dontdraw) { //#21340 + bwipp_renmatrix(); //#21340 + } //#21340 + $_ = Object.getPrototypeOf($_); //#21342 +} //bwipp_microqrcode function bwipp_rectangularmicroqrcode() { - $_ = Object.create($_); //#21085 - $_.dontdraw = false; //#21088 - $k[$j++] = $_; //#21090 - bwipp_processoptions(); //#21090 - $_.options = $k[--$j]; //#21090 - $_.barcode = $k[--$j]; //#21091 - $put($_.options, "dontdraw", true); //#21094 - $put($_.options, "format", "rmqr"); //#21095 - $k[$j++] = 'args'; //#21097 - $k[$j++] = $_.barcode; //#21097 - $k[$j++] = $_.options; //#21097 - bwipp_qrcode(); //#21097 - var _6 = $k[--$j]; //#21097 - $_[$k[--$j]] = _6; //#21097 - $put($_.args, "opt", $_.options); //#21099 - $k[$j++] = $_.args; //#21102 - if (!$_.dontdraw) { //#21102 - bwipp_renmatrix(); //#21102 - } //#21102 - $_ = Object.getPrototypeOf($_); //#21104 -} - + $_ = Object.create($_); //#21371 + $_.dontdraw = false; //#21374 + $k[$j++] = $_; //#21376 + bwipp_processoptions(); //#21376 + $_.options = $k[--$j]; //#21376 + $_.barcode = $k[--$j]; //#21377 + $put($_.options, "dontdraw", true); //#21380 + $put($_.options, "format", "rmqr"); //#21381 + $k[$j++] = 'args'; //#21383 + $k[$j++] = $_.barcode; //#21383 + $k[$j++] = $_.options; //#21383 + bwipp_qrcode(); //#21383 + var _6 = $k[--$j]; //#21383 + $_[$k[--$j]] = _6; //#21383 + $put($_.args, "opt", $_.options); //#21385 + $k[$j++] = $_.args; //#21388 + if (!$_.dontdraw) { //#21388 + bwipp_renmatrix(); //#21388 + } //#21388 + $_ = Object.getPrototypeOf($_); //#21390 +} //bwipp_rectangularmicroqrcode function bwipp_maxicode() { - $_ = Object.create($_); //#21135 - $_.dontdraw = false; //#21138 - $_.mode = -1; //#21139 - $_.sam = -1; //#21140 - $_.parse = false; //#21141 - $_.parsefnc = false; //#21142 - $k[$j++] = $_; //#21144 - bwipp_processoptions(); //#21144 - $_.options = $k[--$j]; //#21144 - $_.barcode = $k[--$j]; //#21145 - if ($eq($_.barcode, "")) { //#21149 - $k[$j++] = 'bwipp.maxicodeEmptyData#21148'; //#21148 - $k[$j++] = "The data must not be empty"; //#21148 - bwipp_raiseerror(); //#21148 - } //#21148 - if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21153 - $k[$j++] = 'bwipp.maxicodeBadMode#21152'; //#21152 - $k[$j++] = "Mode must be 2 to 6"; //#21152 - bwipp_raiseerror(); //#21152 - } //#21152 - if ($_.sam != -1) { //#21165 - $k[$j++] = true; //#21161 - for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21161 - var _9 = $_.sam; //#21158 - if ((_9 < 12) || (_9 > 88)) { //#21158 - $j--; //#21158 - $k[$j++] = false; //#21158 - break; //#21158 - } //#21158 - var _B = $_.sam % 10; //#21159 - if ((_B < 2) || (_B > 8)) { //#21159 - $j--; //#21159 - $k[$j++] = false; //#21159 - break; //#21159 - } //#21159 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21160 - $j--; //#21160 - $k[$j++] = false; //#21160 - break; //#21160 - } //#21160 - } //#21160 - if ($nt($k[--$j])) { //#21164 - $k[$j++] = 'bwipp.maxicodeBadSAM#21163'; //#21163 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21163 - bwipp_raiseerror(); //#21163 - } //#21163 - } //#21163 - bwipp_loadctx(bwipp_maxicode) //#21167 + $_ = Object.create($_); //#21421 + $_.dontdraw = false; //#21424 + $_.mode = -1; //#21425 + $_.sam = -1; //#21426 + $_.parse = false; //#21427 + $_.parsefnc = false; //#21428 + $k[$j++] = $_; //#21430 + bwipp_processoptions(); //#21430 + $_.options = $k[--$j]; //#21430 + $_.barcode = $k[--$j]; //#21431 + if ($eq($_.barcode, "")) { //#21435 + $k[$j++] = 'bwipp.maxicodeEmptyData#21434'; //#21434 + $k[$j++] = "The data must not be empty"; //#21434 + bwipp_raiseerror(); //#21434 + } //#21434 + if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21439 + $k[$j++] = 'bwipp.maxicodeBadMode#21438'; //#21438 + $k[$j++] = "Mode must be 2 to 6"; //#21438 + bwipp_raiseerror(); //#21438 + } //#21438 + if ($_.sam != -1) { //#21451 + $k[$j++] = true; //#21447 + for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21447 + var _9 = $_.sam; //#21444 + if ((_9 < 12) || (_9 > 88)) { //#21444 + $j--; //#21444 + $k[$j++] = false; //#21444 + break; //#21444 + } //#21444 + var _B = $_.sam % 10; //#21445 + if ((_B < 2) || (_B > 8)) { //#21445 + $j--; //#21445 + $k[$j++] = false; //#21445 + break; //#21445 + } //#21445 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21446 + $j--; //#21446 + $k[$j++] = false; //#21446 + break; //#21446 + } //#21446 + } //#21446 + if ($nt($k[--$j])) { //#21450 + $k[$j++] = 'bwipp.maxicodeBadSAM#21449'; //#21449 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21449 + bwipp_raiseerror(); //#21449 + } //#21449 + } //#21449 + bwipp_loadctx(bwipp_maxicode) //#21453 var _H = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#21173 - $_.fncvals = _H; //#21175 - $k[$j++] = 'msg'; //#21176 - $k[$j++] = $_.barcode; //#21176 - $k[$j++] = $_.fncvals; //#21176 - bwipp_parseinput(); //#21176 - var _K = $k[--$j]; //#21176 - $_[$k[--$j]] = _K; //#21176 - $_.msglen = $_.msg.length; //#21177 - if (($_.mode == 2) || ($_.mode == 3)) { //#21265 - $_.barcode = $s($_.msglen); //#21183 - for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21189 - $_.i = _T; //#21185 - if ($get($_.msg, $_.i) > 0) { //#21188 - $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21187 - } //#21187 - } //#21187 - $_.barlen = $_.barcode.length; //#21190 - $_.fid = ""; //#21193 - if ($_.barlen >= 7) { //#21199 - if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21198 - $_.fid = $geti($_.barcode, 0, 9); //#21196 - $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21197 - } //#21197 - } //#21197 - $search($_.barcode, "\x1d"); //#21203 - if ($k[--$j]) { //#21225 - $_.pcode = $k[--$j]; //#21204 - $j--; //#21204 - if ($_.mode == 2) { //#21220 - $k[$j++] = true; //#21210 - for (var _p = 0, _q = 1; _p < _q; _p++) { //#21210 - if ($_.pcode.length > 9) { //#21208 - $j--; //#21208 - $k[$j++] = false; //#21208 - break; //#21208 - } //#21208 - $forall($_.pcode, function() { //#21209 - var _t = $k[--$j]; //#21209 - if ((_t < 48) || (_t > 57)) { //#21209 - $j--; //#21209 - $k[$j++] = false; //#21209 - return true; //#21209 - } //#21209 - }); //#21209 - } //#21209 - if ($nt($k[--$j])) { //#21213 - $j--; //#21212 - $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21212'; //#21212 - $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21212 - bwipp_raiseerror(); //#21212 - } //#21212 - } else { //#21220 - $forall($_.pcode, function() { //#21222 - var _w = $k[--$j]; //#21216 - if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21221 - $j--; //#21220 - $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21220'; //#21220 - $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21220 - bwipp_raiseerror(); //#21220 - } //#21220 - }); //#21220 - } //#21220 - } else { //#21225 - $j--; //#21225 - $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21225'; //#21225 - $k[$j++] = "Expected postcode followed by group separator character"; //#21225 - bwipp_raiseerror(); //#21225 - } //#21225 - $search($k[--$j], "\x1d"); //#21227 - if ($k[--$j]) { //#21238 - $_.ccode = $k[--$j]; //#21228 - $j--; //#21228 - $k[$j++] = true; //#21233 - for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21233 - if ($_.ccode.length != 3) { //#21231 - $j--; //#21231 - $k[$j++] = false; //#21231 - break; //#21231 - } //#21231 - $forall($_.ccode, function() { //#21232 - var _14 = $k[--$j]; //#21232 - if ((_14 < 48) || (_14 > 57)) { //#21232 - $j--; //#21232 - $k[$j++] = false; //#21232 - return true; //#21232 - } //#21232 - }); //#21232 - } //#21232 - if ($nt($k[--$j])) { //#21236 - $j--; //#21235 - $k[$j++] = 'bwipp.maxicodeBadCountryCode#21235'; //#21235 - $k[$j++] = "Country code must be three digits"; //#21235 - bwipp_raiseerror(); //#21235 - } //#21235 - } else { //#21238 - $j--; //#21238 - $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21238'; //#21238 - $k[$j++] = "Expected country code followed by group separator character"; //#21238 - bwipp_raiseerror(); //#21238 - } //#21238 - $search($k[--$j], "\x1d"); //#21240 - if ($k[--$j]) { //#21251 - $_.scode = $k[--$j]; //#21241 - $j--; //#21241 - $k[$j++] = true; //#21246 - for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21246 - if ($_.scode.length != 3) { //#21244 - $j--; //#21244 - $k[$j++] = false; //#21244 - break; //#21244 - } //#21244 - $forall($_.scode, function() { //#21245 - var _1D = $k[--$j]; //#21245 - if ((_1D < 48) || (_1D > 57)) { //#21245 - $j--; //#21245 - $k[$j++] = false; //#21245 - return true; //#21245 - } //#21245 - }); //#21245 - } //#21245 - if ($nt($k[--$j])) { //#21249 - $j--; //#21248 - $k[$j++] = 'bwipp.maxicodeBadServiceClass#21248'; //#21248 - $k[$j++] = "Service class must be three digits"; //#21248 - bwipp_raiseerror(); //#21248 - } //#21248 - } else { //#21251 - $j--; //#21251 - $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21251'; //#21251 - $k[$j++] = "Expected service class followed by group separator character"; //#21251 - bwipp_raiseerror(); //#21251 - } //#21251 - $_.barcode = $k[--$j]; //#21253 - var _1I = $s($_.barcode.length + $_.fid.length); //#21256 - $puti(_1I, 0, $_.fid); //#21257 - $puti(_1I, $_.fid.length, $_.barcode); //#21258 - $_.barcode = _1I; //#21259 - $_.barlen = $_.barcode.length; //#21260 - $k[$j++] = Infinity; //#21262 - var _1N = $_.barcode; //#21262 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21262 - $k[$j++] = $get(_1N, _1O); //#21262 - } //#21262 - $_.msg = $a(); //#21262 - $_.msglen = $_.msg.length; //#21263 - } //#21263 - if (!bwipp_maxicode.__21361__) { //#21361 - $_ = Object.create($_); //#21361 - $_.eci = -1; //#21269 - $_.pad = -2; //#21269 - $_.ns = -3; //#21269 - $_.la = -4; //#21270 - $_.lb = -5; //#21270 - $_.sa = -6; //#21271 - $_.sb = -7; //#21271 - $_.sc = -8; //#21271 - $_.sd = -9; //#21271 - $_.se = -10; //#21271 - $_.sa2 = -11; //#21272 - $_.sa3 = -12; //#21272 - $_.lkc = -13; //#21273 - $_.lkd = -14; //#21273 - $_.lke = -15; //#21273 - $_.pd2 = -16; //#21274 - $_.pd3 = -17; //#21274 - $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21343 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21346 - for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21355 - $_.i = _3G; //#21348 - $_.encs = $get($_.charmaps, $_.i); //#21349 - for (var _3K = 0; _3K <= 4; _3K += 1) { //#21354 - $_.j = _3K; //#21351 - var _3N = $get($_.encs, $_.j); //#21352 - $k[$j++] = _3N; //#21352 - if ($eq($type(_3N), 'stringtype')) { //#21352 - var _3Q = $get($k[--$j], 0); //#21352 - $k[$j++] = _3Q; //#21352 - } //#21352 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21353 - } //#21353 - } //#21353 - $_.seta = $get($_.charvals, 0); //#21356 - $_.setb = $get($_.charvals, 1); //#21357 - $_.setc = $get($_.charvals, 2); //#21358 - $_.setd = $get($_.charvals, 3); //#21359 - $_.sete = $get($_.charvals, 4); //#21360 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21360 - bwipp_maxicode.__21361__ = 1; //#21360 - $_ = Object.getPrototypeOf($_); //#21360 - } //#21360 - $k[$j++] = Infinity; //#21364 - for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21364 - $k[$j++] = 0; //#21364 - } //#21364 - $_.nseq = $a(); //#21364 - for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21372 - $_.i = _3m; //#21366 - var _3p = $get($_.msg, $_.i); //#21367 - if ((_3p >= 48) && (_3p <= 57)) { //#21370 - $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21368 - } else { //#21370 - $put($_.nseq, $_.i, 0); //#21370 - } //#21370 - } //#21370 - $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21373 + ]); //#21459 + $_.fncvals = _H; //#21461 + $k[$j++] = 'msg'; //#21462 + $k[$j++] = $_.barcode; //#21462 + $k[$j++] = $_.fncvals; //#21462 + bwipp_parseinput(); //#21462 + var _K = $k[--$j]; //#21462 + $_[$k[--$j]] = _K; //#21462 + $_.msglen = $_.msg.length; //#21463 + if (($_.mode == 2) || ($_.mode == 3)) { //#21551 + $_.barcode = $s($_.msglen); //#21469 + for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21475 + $_.i = _T; //#21471 + if ($get($_.msg, $_.i) > 0) { //#21474 + $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21473 + } //#21473 + } //#21473 + $_.barlen = $_.barcode.length; //#21476 + $_.fid = ""; //#21479 + if ($_.barlen >= 7) { //#21485 + if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21484 + $_.fid = $geti($_.barcode, 0, 9); //#21482 + $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21483 + } //#21483 + } //#21483 + $search($_.barcode, "\x1d"); //#21489 + if ($k[--$j]) { //#21511 + $_.pcode = $k[--$j]; //#21490 + $j--; //#21490 + if ($_.mode == 2) { //#21506 + $k[$j++] = true; //#21496 + for (var _p = 0, _q = 1; _p < _q; _p++) { //#21496 + if ($_.pcode.length > 9) { //#21494 + $j--; //#21494 + $k[$j++] = false; //#21494 + break; //#21494 + } //#21494 + $forall($_.pcode, function() { //#21495 + var _t = $k[--$j]; //#21495 + if ((_t < 48) || (_t > 57)) { //#21495 + $j--; //#21495 + $k[$j++] = false; //#21495 + return true; //#21495 + } //#21495 + }); //#21495 + } //#21495 + if ($nt($k[--$j])) { //#21499 + $j--; //#21498 + $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21498'; //#21498 + $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21498 + bwipp_raiseerror(); //#21498 + } //#21498 + } else { //#21506 + $forall($_.pcode, function() { //#21508 + var _w = $k[--$j]; //#21502 + if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21507 + $j--; //#21506 + $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21506'; //#21506 + $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21506 + bwipp_raiseerror(); //#21506 + } //#21506 + }); //#21506 + } //#21506 + } else { //#21511 + $j--; //#21511 + $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21511'; //#21511 + $k[$j++] = "Expected postcode followed by group separator character"; //#21511 + bwipp_raiseerror(); //#21511 + } //#21511 + $search($k[--$j], "\x1d"); //#21513 + if ($k[--$j]) { //#21524 + $_.ccode = $k[--$j]; //#21514 + $j--; //#21514 + $k[$j++] = true; //#21519 + for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21519 + if ($_.ccode.length != 3) { //#21517 + $j--; //#21517 + $k[$j++] = false; //#21517 + break; //#21517 + } //#21517 + $forall($_.ccode, function() { //#21518 + var _14 = $k[--$j]; //#21518 + if ((_14 < 48) || (_14 > 57)) { //#21518 + $j--; //#21518 + $k[$j++] = false; //#21518 + return true; //#21518 + } //#21518 + }); //#21518 + } //#21518 + if ($nt($k[--$j])) { //#21522 + $j--; //#21521 + $k[$j++] = 'bwipp.maxicodeBadCountryCode#21521'; //#21521 + $k[$j++] = "Country code must be three digits"; //#21521 + bwipp_raiseerror(); //#21521 + } //#21521 + } else { //#21524 + $j--; //#21524 + $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21524'; //#21524 + $k[$j++] = "Expected country code followed by group separator character"; //#21524 + bwipp_raiseerror(); //#21524 + } //#21524 + $search($k[--$j], "\x1d"); //#21526 + if ($k[--$j]) { //#21537 + $_.scode = $k[--$j]; //#21527 + $j--; //#21527 + $k[$j++] = true; //#21532 + for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21532 + if ($_.scode.length != 3) { //#21530 + $j--; //#21530 + $k[$j++] = false; //#21530 + break; //#21530 + } //#21530 + $forall($_.scode, function() { //#21531 + var _1D = $k[--$j]; //#21531 + if ((_1D < 48) || (_1D > 57)) { //#21531 + $j--; //#21531 + $k[$j++] = false; //#21531 + return true; //#21531 + } //#21531 + }); //#21531 + } //#21531 + if ($nt($k[--$j])) { //#21535 + $j--; //#21534 + $k[$j++] = 'bwipp.maxicodeBadServiceClass#21534'; //#21534 + $k[$j++] = "Service class must be three digits"; //#21534 + bwipp_raiseerror(); //#21534 + } //#21534 + } else { //#21537 + $j--; //#21537 + $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21537'; //#21537 + $k[$j++] = "Expected service class followed by group separator character"; //#21537 + bwipp_raiseerror(); //#21537 + } //#21537 + $_.barcode = $k[--$j]; //#21539 + var _1I = $s($_.barcode.length + $_.fid.length); //#21542 + $puti(_1I, 0, $_.fid); //#21543 + $puti(_1I, $_.fid.length, $_.barcode); //#21544 + $_.barcode = _1I; //#21545 + $_.barlen = $_.barcode.length; //#21546 + $k[$j++] = Infinity; //#21548 + var _1N = $_.barcode; //#21548 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21548 + $k[$j++] = $get(_1N, _1O); //#21548 + } //#21548 + $_.msg = $a(); //#21548 + $_.msglen = $_.msg.length; //#21549 + } //#21549 + if (!bwipp_maxicode.__21647__) { //#21647 + $_ = Object.create($_); //#21647 + $_.eci = -1; //#21555 + $_.pad = -2; //#21555 + $_.ns = -3; //#21555 + $_.la = -4; //#21556 + $_.lb = -5; //#21556 + $_.sa = -6; //#21557 + $_.sb = -7; //#21557 + $_.sc = -8; //#21557 + $_.sd = -9; //#21557 + $_.se = -10; //#21557 + $_.sa2 = -11; //#21558 + $_.sa3 = -12; //#21558 + $_.lkc = -13; //#21559 + $_.lkd = -14; //#21559 + $_.lke = -15; //#21559 + $_.pd2 = -16; //#21560 + $_.pd3 = -17; //#21560 + $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21629 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21632 + for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21641 + $_.i = _3G; //#21634 + $_.encs = $get($_.charmaps, $_.i); //#21635 + for (var _3K = 0; _3K <= 4; _3K += 1) { //#21640 + $_.j = _3K; //#21637 + var _3N = $get($_.encs, $_.j); //#21638 + $k[$j++] = _3N; //#21638 + if ($eq($type(_3N), 'stringtype')) { //#21638 + var _3Q = $get($k[--$j], 0); //#21638 + $k[$j++] = _3Q; //#21638 + } //#21638 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21639 + } //#21639 + } //#21639 + $_.seta = $get($_.charvals, 0); //#21642 + $_.setb = $get($_.charvals, 1); //#21643 + $_.setc = $get($_.charvals, 2); //#21644 + $_.setd = $get($_.charvals, 3); //#21645 + $_.sete = $get($_.charvals, 4); //#21646 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21646 + bwipp_maxicode.__21647__ = 1; //#21646 + $_ = Object.getPrototypeOf($_); //#21646 + } //#21646 + $k[$j++] = Infinity; //#21650 + for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21650 + $k[$j++] = 0; //#21650 + } //#21650 + $_.nseq = $a(); //#21650 + for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21658 + $_.i = _3m; //#21652 + var _3p = $get($_.msg, $_.i); //#21653 + if ((_3p >= 48) && (_3p <= 57)) { //#21656 + $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21654 + } else { //#21656 + $put($_.nseq, $_.i, 0); //#21656 + } //#21656 + } //#21656 + $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21659 $_.prefixinset = function() { - $k[$j++] = 0; //#21380 - for (;;) { //#21380 - var _40 = $k[--$j]; //#21378 - var _41 = $k[--$j]; //#21378 - $k[$j++] = _41; //#21378 - $k[$j++] = _40; //#21378 - if (_40 >= _41.length) { //#21378 - break; //#21378 - } //#21378 - var _42 = $k[--$j]; //#21379 - var _43 = $k[--$j]; //#21379 - var _45 = $k[--$j]; //#21379 - var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21379 - $k[$j++] = _45; //#21379 - $k[$j++] = _43; //#21379 - $k[$j++] = _42; //#21379 - if (_46) { //#21379 - var _47 = $k[--$j]; //#21379 - $k[$j++] = $f(_47 + 1); //#21379 - } else { //#21379 - break; //#21379 - } //#21379 - } //#21379 - var _48 = $k[--$j]; //#21381 - var _49 = $k[--$j]; //#21381 - $k[$j++] = _48; //#21381 - $k[$j++] = _49; //#21381 - $j--; //#21381 - var _4A = $k[--$j]; //#21381 - var _4B = $k[--$j]; //#21381 - $k[$j++] = _4A; //#21381 - $k[$j++] = _4B; //#21381 - $j--; //#21381 - }; //#21381 + $k[$j++] = 0; //#21666 + for (;;) { //#21666 + var _40 = $k[--$j]; //#21664 + var _41 = $k[--$j]; //#21664 + $k[$j++] = _41; //#21664 + $k[$j++] = _40; //#21664 + if (_40 >= _41.length) { //#21664 + break; //#21664 + } //#21664 + var _42 = $k[--$j]; //#21665 + var _43 = $k[--$j]; //#21665 + var _45 = $k[--$j]; //#21665 + var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21665 + $k[$j++] = _45; //#21665 + $k[$j++] = _43; //#21665 + $k[$j++] = _42; //#21665 + if (_46) { //#21665 + var _47 = $k[--$j]; //#21665 + $k[$j++] = $f(_47 + 1); //#21665 + } else { //#21665 + break; //#21665 + } //#21665 + } //#21665 + var _48 = $k[--$j]; //#21667 + var _49 = $k[--$j]; //#21667 + $k[$j++] = _48; //#21667 + $k[$j++] = _49; //#21667 + $j--; //#21667 + var _4A = $k[--$j]; //#21667 + var _4B = $k[--$j]; //#21667 + $k[$j++] = _4A; //#21667 + $k[$j++] = _4B; //#21667 + $j--; //#21667 + }; //#21667 $_.enc = function() { - var _4C = $k[--$j]; //#21385 - $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21385 - $_.j = $_.j + 1; //#21386 - }; //#21386 - $_.out = $a(144); //#21389 - $_.i = 0; //#21390 - $_.j = 0; //#21390 - $_.cset = "seta"; //#21390 - for (;;) { //#21542 - if ($_.i == $_.msglen) { //#21399 - if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21397 - $k[$j++] = $_.la; //#21395 - $k[$j++] = $_[$_.cset]; //#21395 - $_.enc(); //#21395 - $_.cset = "seta"; //#21396 - } //#21396 - break; //#21398 - } //#21398 - for (;;) { //#21541 - if ($get($_.msg, $_.i) <= -1000000) { //#21428 - $k[$j++] = $_.eci; //#21403 - $k[$j++] = $_[$_.cset]; //#21403 - $_.enc(); //#21403 - var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21405 - $k[$j++] = _4Z; //#21423 - if (_4Z <= 31) { //#21422 - var _4a = $k[--$j]; //#21406 - $k[$j++] = _4a & 63; //#21407 - $astore($a(1)); //#21407 - } else { //#21422 - var _4c = $k[--$j]; //#21408 - $k[$j++] = _4c; //#21423 - if (_4c <= 1023) { //#21422 - var _4d = $k[--$j]; //#21409 - $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21411 - $k[$j++] = _4d & 63; //#21411 - $astore($a(2)); //#21411 - } else { //#21422 - var _4f = $k[--$j]; //#21412 - $k[$j++] = _4f; //#21423 - if (_4f <= 32767) { //#21422 - var _4g = $k[--$j]; //#21413 - $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21416 - $k[$j++] = (_4g >>> 6) & 63; //#21416 - $k[$j++] = _4g & 63; //#21416 - $astore($a(3)); //#21416 - } else { //#21422 - var _4i = $k[--$j]; //#21418 - $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21422 - $k[$j++] = (_4i >>> 12) & 63; //#21422 - $k[$j++] = (_4i >>> 6) & 63; //#21422 - $k[$j++] = _4i & 63; //#21422 - $astore($a(4)); //#21422 - } //#21422 - } //#21422 - } //#21422 - var _4k = $k[--$j]; //#21424 - $puti($_.out, $_.j, _4k); //#21424 - $_.j = _4k.length + $_.j; //#21425 - $_.i = $_.i + 1; //#21426 - break; //#21427 - } //#21427 - if ($get($_.nseq, $_.i) >= 9) { //#21439 - var _4u = $geti($_.msg, $_.i, 9); //#21432 - $k[$j++] = 0; //#21432 - for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21432 - var _4y = $k[--$j]; //#21432 - $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21432 - } //#21432 - var _4z = $k[--$j]; //#21432 - $k[$j++] = ~~(_4z / 10); //#21433 - for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21433 - var _52 = $k[--$j]; //#21433 - $k[$j++] = _52 & 63; //#21433 - $k[$j++] = _52 >>> 6; //#21433 - } //#21433 - $k[$j++] = $get($_[$_.cset], $_.ns); //#21434 - for (var _57 = 0; _57 <= 10; _57 += 2) { //#21434 - var _58 = $k[$j - 1 - _57]; //#21434 - $k[$j++] = _58; //#21434 - } //#21434 - $astore($a(6)); //#21434 - var _5A = $k[--$j]; //#21434 - var _5B = $k[--$j]; //#21434 - var _5C = $k[--$j]; //#21434 - var _5D = $k[--$j]; //#21434 - var _5E = $k[--$j]; //#21434 - var _5F = $k[--$j]; //#21434 - var _5G = $k[--$j]; //#21434 - $k[$j++] = _5A; //#21434 - $k[$j++] = _5G; //#21434 - $k[$j++] = _5F; //#21434 - $k[$j++] = _5E; //#21434 - $k[$j++] = _5D; //#21434 - $k[$j++] = _5C; //#21434 - $k[$j++] = _5B; //#21434 - for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21434 - $j--; //#21434 - } //#21434 - $puti($_.out, $_.j, $k[--$j]); //#21435 - $_.i = $_.i + 9; //#21436 - $_.j = $_.j + 6; //#21437 - break; //#21438 - } //#21438 - $_.char1 = $get($_.msg, $_.i); //#21442 - $k[$j++] = 'char2'; //#21443 - if (($_.i + 1) < $_.msglen) { //#21443 - $k[$j++] = $get($_.msg, $_.i + 1); //#21443 - } else { //#21443 - $k[$j++] = -99; //#21443 - } //#21443 - var _5W = $k[--$j]; //#21443 - $_[$k[--$j]] = _5W; //#21443 - $k[$j++] = 'char3'; //#21444 - if (($_.i + 2) < $_.msglen) { //#21444 - $k[$j++] = $get($_.msg, $_.i + 2); //#21444 - } else { //#21444 - $k[$j++] = -99; //#21444 - } //#21444 - var _5d = $k[--$j]; //#21444 - $_[$k[--$j]] = _5d; //#21444 - var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21447 - if (_5i) { //#21451 - $k[$j++] = $_.char1; //#21448 - $k[$j++] = $_[$_.cset]; //#21448 - $_.enc(); //#21448 - $_.i = $_.i + 1; //#21449 - break; //#21450 - } //#21450 - var _5q = $get($_.setb, $_.char1) !== undefined; //#21454 - if ($eq($_.cset, "seta") && _5q) { //#21464 - var _5t = $get($_.setb, $_.char2) !== undefined; //#21455 - if (_5t) { //#21461 - $k[$j++] = $_.lb; //#21456 - $k[$j++] = $_.seta; //#21456 - $_.enc(); //#21456 - $_.cset = "setb"; //#21457 - } else { //#21461 - $k[$j++] = $_.sb; //#21459 - $k[$j++] = $_.seta; //#21459 - $_.enc(); //#21459 - $k[$j++] = $_.char1; //#21460 - $k[$j++] = $_.setb; //#21460 - $_.enc(); //#21460 - $_.i = $_.i + 1; //#21461 - } //#21461 - break; //#21463 - } //#21463 - var _64 = $get($_.seta, $_.char1) !== undefined; //#21467 - if ($eq($_.cset, "setb") && _64) { //#21492 - var _65 = $_.seta; //#21468 - var _66 = $_.msg; //#21468 - var _67 = $_.i; //#21468 - var _68 = $_.msglen; //#21468 - var _69 = $_.i; //#21468 - var _6A = _68 - _69; //#21468 - var _6B = 4; //#21468 - if (4 > (_68 - _69)) { //#21468 - var _ = _6A; //#21468 - _6A = _6B; //#21468 - _6B = _; //#21468 - } //#21468 - $k[$j++] = 'p'; //#21468 - $k[$j++] = _65; //#21468 - $k[$j++] = $geti(_66, _67, _6B); //#21468 - $_.prefixinset(); //#21468 - var _6D = $k[--$j]; //#21468 - $_[$k[--$j]] = _6D; //#21468 - if ($_.p == 1) { //#21473 - $k[$j++] = $_.sa; //#21470 - $k[$j++] = $_.setb; //#21470 - $_.enc(); //#21470 - $k[$j++] = $_.char1; //#21471 - $k[$j++] = $_.seta; //#21471 - $_.enc(); //#21471 - $_.i = $_.i + 1; //#21472 - } //#21472 - if ($_.p == 2) { //#21479 - $k[$j++] = $_.sa2; //#21475 - $k[$j++] = $_.setb; //#21475 - $_.enc(); //#21475 - $k[$j++] = $_.char1; //#21476 - $k[$j++] = $_.seta; //#21476 - $_.enc(); //#21476 - $k[$j++] = $_.char2; //#21477 - $k[$j++] = $_.seta; //#21477 - $_.enc(); //#21477 - $_.i = $_.i + 2; //#21478 - } //#21478 - if ($_.p == 3) { //#21486 - $k[$j++] = $_.sa3; //#21481 - $k[$j++] = $_.setb; //#21481 - $_.enc(); //#21481 - $k[$j++] = $_.char1; //#21482 - $k[$j++] = $_.seta; //#21482 - $_.enc(); //#21482 - $k[$j++] = $_.char2; //#21483 - $k[$j++] = $_.seta; //#21483 - $_.enc(); //#21483 - $k[$j++] = $_.char3; //#21484 - $k[$j++] = $_.seta; //#21484 - $_.enc(); //#21484 - $_.i = $_.i + 3; //#21485 - } //#21485 - if ($_.p >= 4) { //#21490 - $k[$j++] = $_.la; //#21488 - $k[$j++] = $_.setb; //#21488 - $_.enc(); //#21488 - $_.cset = "seta"; //#21489 - } //#21489 - break; //#21491 - } //#21491 - var _6i = $get($_.seta, $_.char1) !== undefined; //#21495 - if (_6i) { //#21499 - $k[$j++] = $_.la; //#21496 - $k[$j++] = $_[$_.cset]; //#21496 - $_.enc(); //#21496 - $_.cset = "seta"; //#21497 - break; //#21498 - } //#21498 - var _6o = $get($_.setb, $_.char1) !== undefined; //#21500 - if (_6o) { //#21504 - $k[$j++] = $_.lb; //#21501 - $k[$j++] = $_[$_.cset]; //#21501 - $_.enc(); //#21501 - $_.cset = "setb"; //#21502 - break; //#21503 - } //#21503 - var _6u = $get($_.setc, $_.char1) !== undefined; //#21507 - if (_6u) { //#21507 - $_.setx = "setc"; //#21507 - $_.sx = $_.sc; //#21507 - $_.lkx = $_.lkc; //#21507 - } //#21507 - var _6z = $get($_.setd, $_.char1) !== undefined; //#21508 - if (_6z) { //#21508 - $_.setx = "setd"; //#21508 - $_.sx = $_.sd; //#21508 - $_.lkx = $_.lkd; //#21508 - } //#21508 - var _74 = $get($_.sete, $_.char1) !== undefined; //#21509 - if (_74) { //#21509 - $_.setx = "sete"; //#21509 - $_.sx = $_.se; //#21509 - $_.lkx = $_.lke; //#21509 - } //#21509 - var _78 = $_[$_.setx]; //#21512 - var _79 = $_.msg; //#21512 - var _7A = $_.i; //#21512 - var _7B = $_.msglen; //#21512 - var _7C = $_.i; //#21512 - var _7D = _7B - _7C; //#21512 - var _7E = 4; //#21512 - if (4 > (_7B - _7C)) { //#21512 - var _ = _7D; //#21512 - _7D = _7E; //#21512 - _7E = _; //#21512 - } //#21512 - $k[$j++] = 'p'; //#21512 - $k[$j++] = _78; //#21512 - $k[$j++] = $geti(_79, _7A, _7E); //#21512 - $_.prefixinset(); //#21512 - var _7G = $k[--$j]; //#21512 - $_[$k[--$j]] = _7G; //#21512 - if ($_.p == 1) { //#21517 - $k[$j++] = $_.sx; //#21514 - $k[$j++] = $_[$_.cset]; //#21514 - $_.enc(); //#21514 - $k[$j++] = $_.char1; //#21515 - $k[$j++] = $_[$_.setx]; //#21515 - $_.enc(); //#21515 - $_.i = $_.i + 1; //#21516 - } //#21516 - if ($_.p == 2) { //#21524 - $k[$j++] = $_.sx; //#21519 - $k[$j++] = $_[$_.cset]; //#21519 - $_.enc(); //#21519 - $k[$j++] = $_.char1; //#21520 - $k[$j++] = $_[$_.setx]; //#21520 - $_.enc(); //#21520 - $k[$j++] = $_.sx; //#21521 - $k[$j++] = $_[$_.cset]; //#21521 - $_.enc(); //#21521 - $k[$j++] = $_.char2; //#21522 - $k[$j++] = $_[$_.setx]; //#21522 - $_.enc(); //#21522 - $_.i = $_.i + 2; //#21523 - } //#21523 - if ($_.p == 3) { //#21533 - $k[$j++] = $_.sx; //#21526 - $k[$j++] = $_[$_.cset]; //#21526 - $_.enc(); //#21526 - $k[$j++] = $_.char1; //#21527 - $k[$j++] = $_[$_.setx]; //#21527 - $_.enc(); //#21527 - $k[$j++] = $_.sx; //#21528 - $k[$j++] = $_[$_.cset]; //#21528 - $_.enc(); //#21528 - $k[$j++] = $_.char2; //#21529 - $k[$j++] = $_[$_.setx]; //#21529 - $_.enc(); //#21529 - $k[$j++] = $_.sx; //#21530 - $k[$j++] = $_[$_.cset]; //#21530 - $_.enc(); //#21530 - $k[$j++] = $_.char3; //#21531 - $k[$j++] = $_[$_.setx]; //#21531 - $_.enc(); //#21531 - $_.i = $_.i + 3; //#21532 - } //#21532 - if ($_.p >= 4) { //#21538 - $k[$j++] = $_.sx; //#21535 - $k[$j++] = $_[$_.cset]; //#21535 - $_.enc(); //#21535 - $k[$j++] = $_.lkx; //#21536 - $k[$j++] = $_[$_.setx]; //#21536 - $_.enc(); //#21536 - $_.cset = $_.setx; //#21537 - } //#21537 - break; //#21540 - } //#21540 - } //#21540 - $_.encmsg = $geti($_.out, 0, $_.j); //#21543 - $_.padval = $get($_[$_.cset], $_.pad); //#21544 - $k[$j++] = 'sami'; //#21547 - if ($_.sam != -1) { //#21547 - $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21547 - } else { //#21547 - $k[$j++] = $a([]); //#21547 - } //#21547 - var _8L = $k[--$j]; //#21547 - $_[$k[--$j]] = _8L; //#21547 - $k[$j++] = Infinity; //#21548 - $aload($_.sami); //#21548 - $aload($_.encmsg); //#21548 - $_.encmsg = $a(); //#21548 - if (($_.mode == 2) || ($_.mode == 3)) { //#21607 - if ($_.encmsg.length > 84) { //#21555 - $k[$j++] = 'bwipp.maxicodeMode23TooLong#21554'; //#21554 - $k[$j++] = "The secondary message is too long"; //#21554 - bwipp_raiseerror(); //#21554 - } //#21554 - var _8U = $strcpy($s(4), "0000"); //#21558 - var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21558 - $puti(_8U, 4 - _8X.length, _8X); //#21558 - $_.mdb = _8U; //#21558 - var _8Z = $strcpy($s(10), "0000000000"); //#21559 - var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21559 - $puti(_8Z, 10 - _8c.length, _8c); //#21559 - $_.ccb = _8Z; //#21559 - var _8e = $strcpy($s(10), "0000000000"); //#21560 - var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21560 - $puti(_8e, 10 - _8h.length, _8h); //#21560 - $_.scb = _8e; //#21560 - $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21561 - if ($_.mode == 2) { //#21574 - var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21564 - $puti($_.pcb, 6 - _8o.length, _8o); //#21564 - var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21565 - $puti($_.pcb, 36 - _8s.length, _8s); //#21565 - } else { //#21574 - $k[$j++] = Infinity; //#21570 - var _8u = $strcpy($s(6), " "); //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = 0; //#21569 - if ($_.pcode.length > 6) { //#21569 - $k[$j++] = $geti($_.pcode, 0, 6); //#21569 - } else { //#21569 - $k[$j++] = $_.pcode; //#21569 - } //#21569 - var _8z = $k[--$j]; //#21569 - var _90 = $k[--$j]; //#21569 - $puti($k[--$j], _90, _8z); //#21569 - $forall($k[--$j], function() { //#21570 - var _95 = $get($_.seta, $k[--$j]); //#21570 - $k[$j++] = _95; //#21570 - }); //#21570 - $_.pccw = $a(); //#21570 - for (var _97 = 0; _97 <= 5; _97 += 1) { //#21575 - $_.i = _97; //#21573 - var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21574 - $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21574 - } //#21574 - } //#21574 - $_.scm = $s(60); //#21579 - $puti($_.scm, 2, $_.mdb); //#21580 - $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21581 - $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21582 - $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21583 - $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21584 - $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21585 - $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21586 - $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21587 - $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21588 - $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21589 - $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21590 - $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21591 - $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21592 - $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21595 - for (var _9t = 0; _9t <= 59; _9t += 1) { //#21601 - $_.i = _9t; //#21597 - $_.ps = ~~($_.i / 6); //#21598 - $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21599 - $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21600 - } //#21600 - $k[$j++] = Infinity; //#21604 - for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21604 - $k[$j++] = $_.padval; //#21604 - } //#21604 - $_.sec = $a(); //#21604 - $puti($_.sec, 0, $_.encmsg); //#21605 - } //#21605 - if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21628 - if ($_.mode == -1) { //#21615 - var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21614 - $_.mode = _AH; //#21614 - } //#21614 - $k[$j++] = Infinity; //#21617 - var _AJ = ($_.mode == 5) ? 78 : 94; //#21617 - for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21617 - $k[$j++] = $_.padval; //#21617 - } //#21617 - $_.cws = $a(); //#21617 - if ($_.encmsg.length > ($_.cws.length - 1)) { //#21620 - $k[$j++] = 'bwipp.maxicodeMode56TooLong#21619'; //#21619 - $k[$j++] = "The message is too long"; //#21619 - bwipp_raiseerror(); //#21619 - } //#21619 - $put($_.cws, 0, $_.mode); //#21621 - $puti($_.cws, 1, $_.encmsg); //#21622 - $_.pri = $geti($_.cws, 0, 10); //#21625 - $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21626 - } //#21626 - $k[$j++] = Infinity; //#21631 - $k[$j++] = 1; //#21631 - for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21631 - var _Ab = $k[--$j]; //#21631 - var _Ac = _Ab * 2; //#21631 - $k[$j++] = _Ab; //#21631 - $k[$j++] = _Ac; //#21631 - if (_Ac >= 64) { //#21631 - var _Ad = $k[--$j]; //#21631 - $k[$j++] = _Ad ^ 67; //#21631 - } //#21631 - } //#21631 - $_.rsalog = $a(); //#21631 - $_.rslog = $a(64); //#21632 - for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21633 - $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21633 - } //#21633 + var _4C = $k[--$j]; //#21671 + $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21671 + $_.j = $_.j + 1; //#21672 + }; //#21672 + $_.out = $a(144); //#21675 + $_.i = 0; //#21676 + $_.j = 0; //#21676 + $_.cset = "seta"; //#21676 + for (;;) { //#21828 + if ($_.i == $_.msglen) { //#21685 + if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21683 + $k[$j++] = $_.la; //#21681 + $k[$j++] = $_[$_.cset]; //#21681 + $_.enc(); //#21681 + $_.cset = "seta"; //#21682 + } //#21682 + break; //#21684 + } //#21684 + for (;;) { //#21827 + if ($get($_.msg, $_.i) <= -1000000) { //#21714 + $k[$j++] = $_.eci; //#21689 + $k[$j++] = $_[$_.cset]; //#21689 + $_.enc(); //#21689 + var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21691 + $k[$j++] = _4Z; //#21709 + if (_4Z <= 31) { //#21708 + var _4a = $k[--$j]; //#21692 + $k[$j++] = _4a & 63; //#21693 + $astore($a(1)); //#21693 + } else { //#21708 + var _4c = $k[--$j]; //#21694 + $k[$j++] = _4c; //#21709 + if (_4c <= 1023) { //#21708 + var _4d = $k[--$j]; //#21695 + $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21697 + $k[$j++] = _4d & 63; //#21697 + $astore($a(2)); //#21697 + } else { //#21708 + var _4f = $k[--$j]; //#21698 + $k[$j++] = _4f; //#21709 + if (_4f <= 32767) { //#21708 + var _4g = $k[--$j]; //#21699 + $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21702 + $k[$j++] = (_4g >>> 6) & 63; //#21702 + $k[$j++] = _4g & 63; //#21702 + $astore($a(3)); //#21702 + } else { //#21708 + var _4i = $k[--$j]; //#21704 + $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21708 + $k[$j++] = (_4i >>> 12) & 63; //#21708 + $k[$j++] = (_4i >>> 6) & 63; //#21708 + $k[$j++] = _4i & 63; //#21708 + $astore($a(4)); //#21708 + } //#21708 + } //#21708 + } //#21708 + var _4k = $k[--$j]; //#21710 + $puti($_.out, $_.j, _4k); //#21710 + $_.j = _4k.length + $_.j; //#21711 + $_.i = $_.i + 1; //#21712 + break; //#21713 + } //#21713 + if ($get($_.nseq, $_.i) >= 9) { //#21725 + var _4u = $geti($_.msg, $_.i, 9); //#21718 + $k[$j++] = 0; //#21718 + for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21718 + var _4y = $k[--$j]; //#21718 + $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21718 + } //#21718 + var _4z = $k[--$j]; //#21718 + $k[$j++] = ~~(_4z / 10); //#21719 + for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21719 + var _52 = $k[--$j]; //#21719 + $k[$j++] = _52 & 63; //#21719 + $k[$j++] = _52 >>> 6; //#21719 + } //#21719 + $k[$j++] = $get($_[$_.cset], $_.ns); //#21720 + for (var _57 = 0; _57 <= 10; _57 += 2) { //#21720 + var _58 = $k[$j - 1 - _57]; //#21720 + $k[$j++] = _58; //#21720 + } //#21720 + $astore($a(6)); //#21720 + var _5A = $k[--$j]; //#21720 + var _5B = $k[--$j]; //#21720 + var _5C = $k[--$j]; //#21720 + var _5D = $k[--$j]; //#21720 + var _5E = $k[--$j]; //#21720 + var _5F = $k[--$j]; //#21720 + var _5G = $k[--$j]; //#21720 + $k[$j++] = _5A; //#21720 + $k[$j++] = _5G; //#21720 + $k[$j++] = _5F; //#21720 + $k[$j++] = _5E; //#21720 + $k[$j++] = _5D; //#21720 + $k[$j++] = _5C; //#21720 + $k[$j++] = _5B; //#21720 + for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21720 + $j--; //#21720 + } //#21720 + $puti($_.out, $_.j, $k[--$j]); //#21721 + $_.i = $_.i + 9; //#21722 + $_.j = $_.j + 6; //#21723 + break; //#21724 + } //#21724 + $_.char1 = $get($_.msg, $_.i); //#21728 + $k[$j++] = 'char2'; //#21729 + if (($_.i + 1) < $_.msglen) { //#21729 + $k[$j++] = $get($_.msg, $_.i + 1); //#21729 + } else { //#21729 + $k[$j++] = -99; //#21729 + } //#21729 + var _5W = $k[--$j]; //#21729 + $_[$k[--$j]] = _5W; //#21729 + $k[$j++] = 'char3'; //#21730 + if (($_.i + 2) < $_.msglen) { //#21730 + $k[$j++] = $get($_.msg, $_.i + 2); //#21730 + } else { //#21730 + $k[$j++] = -99; //#21730 + } //#21730 + var _5d = $k[--$j]; //#21730 + $_[$k[--$j]] = _5d; //#21730 + var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21733 + if (_5i) { //#21737 + $k[$j++] = $_.char1; //#21734 + $k[$j++] = $_[$_.cset]; //#21734 + $_.enc(); //#21734 + $_.i = $_.i + 1; //#21735 + break; //#21736 + } //#21736 + var _5q = $get($_.setb, $_.char1) !== undefined; //#21740 + if ($eq($_.cset, "seta") && _5q) { //#21750 + var _5t = $get($_.setb, $_.char2) !== undefined; //#21741 + if (_5t) { //#21747 + $k[$j++] = $_.lb; //#21742 + $k[$j++] = $_.seta; //#21742 + $_.enc(); //#21742 + $_.cset = "setb"; //#21743 + } else { //#21747 + $k[$j++] = $_.sb; //#21745 + $k[$j++] = $_.seta; //#21745 + $_.enc(); //#21745 + $k[$j++] = $_.char1; //#21746 + $k[$j++] = $_.setb; //#21746 + $_.enc(); //#21746 + $_.i = $_.i + 1; //#21747 + } //#21747 + break; //#21749 + } //#21749 + var _64 = $get($_.seta, $_.char1) !== undefined; //#21753 + if ($eq($_.cset, "setb") && _64) { //#21778 + var _65 = $_.seta; //#21754 + var _66 = $_.msg; //#21754 + var _67 = $_.i; //#21754 + var _68 = $_.msglen; //#21754 + var _69 = $_.i; //#21754 + var _6A = _68 - _69; //#21754 + var _6B = 4; //#21754 + if (4 > (_68 - _69)) { //#21754 + var _ = _6A; //#21754 + _6A = _6B; //#21754 + _6B = _; //#21754 + } //#21754 + $k[$j++] = 'p'; //#21754 + $k[$j++] = _65; //#21754 + $k[$j++] = $geti(_66, _67, _6B); //#21754 + $_.prefixinset(); //#21754 + var _6D = $k[--$j]; //#21754 + $_[$k[--$j]] = _6D; //#21754 + if ($_.p == 1) { //#21759 + $k[$j++] = $_.sa; //#21756 + $k[$j++] = $_.setb; //#21756 + $_.enc(); //#21756 + $k[$j++] = $_.char1; //#21757 + $k[$j++] = $_.seta; //#21757 + $_.enc(); //#21757 + $_.i = $_.i + 1; //#21758 + } //#21758 + if ($_.p == 2) { //#21765 + $k[$j++] = $_.sa2; //#21761 + $k[$j++] = $_.setb; //#21761 + $_.enc(); //#21761 + $k[$j++] = $_.char1; //#21762 + $k[$j++] = $_.seta; //#21762 + $_.enc(); //#21762 + $k[$j++] = $_.char2; //#21763 + $k[$j++] = $_.seta; //#21763 + $_.enc(); //#21763 + $_.i = $_.i + 2; //#21764 + } //#21764 + if ($_.p == 3) { //#21772 + $k[$j++] = $_.sa3; //#21767 + $k[$j++] = $_.setb; //#21767 + $_.enc(); //#21767 + $k[$j++] = $_.char1; //#21768 + $k[$j++] = $_.seta; //#21768 + $_.enc(); //#21768 + $k[$j++] = $_.char2; //#21769 + $k[$j++] = $_.seta; //#21769 + $_.enc(); //#21769 + $k[$j++] = $_.char3; //#21770 + $k[$j++] = $_.seta; //#21770 + $_.enc(); //#21770 + $_.i = $_.i + 3; //#21771 + } //#21771 + if ($_.p >= 4) { //#21776 + $k[$j++] = $_.la; //#21774 + $k[$j++] = $_.setb; //#21774 + $_.enc(); //#21774 + $_.cset = "seta"; //#21775 + } //#21775 + break; //#21777 + } //#21777 + var _6i = $get($_.seta, $_.char1) !== undefined; //#21781 + if (_6i) { //#21785 + $k[$j++] = $_.la; //#21782 + $k[$j++] = $_[$_.cset]; //#21782 + $_.enc(); //#21782 + $_.cset = "seta"; //#21783 + break; //#21784 + } //#21784 + var _6o = $get($_.setb, $_.char1) !== undefined; //#21786 + if (_6o) { //#21790 + $k[$j++] = $_.lb; //#21787 + $k[$j++] = $_[$_.cset]; //#21787 + $_.enc(); //#21787 + $_.cset = "setb"; //#21788 + break; //#21789 + } //#21789 + var _6u = $get($_.setc, $_.char1) !== undefined; //#21793 + if (_6u) { //#21793 + $_.setx = "setc"; //#21793 + $_.sx = $_.sc; //#21793 + $_.lkx = $_.lkc; //#21793 + } //#21793 + var _6z = $get($_.setd, $_.char1) !== undefined; //#21794 + if (_6z) { //#21794 + $_.setx = "setd"; //#21794 + $_.sx = $_.sd; //#21794 + $_.lkx = $_.lkd; //#21794 + } //#21794 + var _74 = $get($_.sete, $_.char1) !== undefined; //#21795 + if (_74) { //#21795 + $_.setx = "sete"; //#21795 + $_.sx = $_.se; //#21795 + $_.lkx = $_.lke; //#21795 + } //#21795 + var _78 = $_[$_.setx]; //#21798 + var _79 = $_.msg; //#21798 + var _7A = $_.i; //#21798 + var _7B = $_.msglen; //#21798 + var _7C = $_.i; //#21798 + var _7D = _7B - _7C; //#21798 + var _7E = 4; //#21798 + if (4 > (_7B - _7C)) { //#21798 + var _ = _7D; //#21798 + _7D = _7E; //#21798 + _7E = _; //#21798 + } //#21798 + $k[$j++] = 'p'; //#21798 + $k[$j++] = _78; //#21798 + $k[$j++] = $geti(_79, _7A, _7E); //#21798 + $_.prefixinset(); //#21798 + var _7G = $k[--$j]; //#21798 + $_[$k[--$j]] = _7G; //#21798 + if ($_.p == 1) { //#21803 + $k[$j++] = $_.sx; //#21800 + $k[$j++] = $_[$_.cset]; //#21800 + $_.enc(); //#21800 + $k[$j++] = $_.char1; //#21801 + $k[$j++] = $_[$_.setx]; //#21801 + $_.enc(); //#21801 + $_.i = $_.i + 1; //#21802 + } //#21802 + if ($_.p == 2) { //#21810 + $k[$j++] = $_.sx; //#21805 + $k[$j++] = $_[$_.cset]; //#21805 + $_.enc(); //#21805 + $k[$j++] = $_.char1; //#21806 + $k[$j++] = $_[$_.setx]; //#21806 + $_.enc(); //#21806 + $k[$j++] = $_.sx; //#21807 + $k[$j++] = $_[$_.cset]; //#21807 + $_.enc(); //#21807 + $k[$j++] = $_.char2; //#21808 + $k[$j++] = $_[$_.setx]; //#21808 + $_.enc(); //#21808 + $_.i = $_.i + 2; //#21809 + } //#21809 + if ($_.p == 3) { //#21819 + $k[$j++] = $_.sx; //#21812 + $k[$j++] = $_[$_.cset]; //#21812 + $_.enc(); //#21812 + $k[$j++] = $_.char1; //#21813 + $k[$j++] = $_[$_.setx]; //#21813 + $_.enc(); //#21813 + $k[$j++] = $_.sx; //#21814 + $k[$j++] = $_[$_.cset]; //#21814 + $_.enc(); //#21814 + $k[$j++] = $_.char2; //#21815 + $k[$j++] = $_[$_.setx]; //#21815 + $_.enc(); //#21815 + $k[$j++] = $_.sx; //#21816 + $k[$j++] = $_[$_.cset]; //#21816 + $_.enc(); //#21816 + $k[$j++] = $_.char3; //#21817 + $k[$j++] = $_[$_.setx]; //#21817 + $_.enc(); //#21817 + $_.i = $_.i + 3; //#21818 + } //#21818 + if ($_.p >= 4) { //#21824 + $k[$j++] = $_.sx; //#21821 + $k[$j++] = $_[$_.cset]; //#21821 + $_.enc(); //#21821 + $k[$j++] = $_.lkx; //#21822 + $k[$j++] = $_[$_.setx]; //#21822 + $_.enc(); //#21822 + $_.cset = $_.setx; //#21823 + } //#21823 + break; //#21826 + } //#21826 + } //#21826 + $_.encmsg = $geti($_.out, 0, $_.j); //#21829 + $_.padval = $get($_[$_.cset], $_.pad); //#21830 + $k[$j++] = 'sami'; //#21833 + if ($_.sam != -1) { //#21833 + $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21833 + } else { //#21833 + $k[$j++] = $a([]); //#21833 + } //#21833 + var _8L = $k[--$j]; //#21833 + $_[$k[--$j]] = _8L; //#21833 + $k[$j++] = Infinity; //#21834 + $aload($_.sami); //#21834 + $aload($_.encmsg); //#21834 + $_.encmsg = $a(); //#21834 + if (($_.mode == 2) || ($_.mode == 3)) { //#21893 + if ($_.encmsg.length > 84) { //#21841 + $k[$j++] = 'bwipp.maxicodeMode23TooLong#21840'; //#21840 + $k[$j++] = "The secondary message is too long"; //#21840 + bwipp_raiseerror(); //#21840 + } //#21840 + var _8U = $strcpy($s(4), "0000"); //#21844 + var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21844 + $puti(_8U, 4 - _8X.length, _8X); //#21844 + $_.mdb = _8U; //#21844 + var _8Z = $strcpy($s(10), "0000000000"); //#21845 + var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21845 + $puti(_8Z, 10 - _8c.length, _8c); //#21845 + $_.ccb = _8Z; //#21845 + var _8e = $strcpy($s(10), "0000000000"); //#21846 + var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21846 + $puti(_8e, 10 - _8h.length, _8h); //#21846 + $_.scb = _8e; //#21846 + $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21847 + if ($_.mode == 2) { //#21860 + var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21850 + $puti($_.pcb, 6 - _8o.length, _8o); //#21850 + var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21851 + $puti($_.pcb, 36 - _8s.length, _8s); //#21851 + } else { //#21860 + $k[$j++] = Infinity; //#21854 + var _8u = $strcpy($s(6), " "); //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = 0; //#21855 + if ($_.pcode.length > 6) { //#21855 + $k[$j++] = $geti($_.pcode, 0, 6); //#21855 + } else { //#21855 + $k[$j++] = $_.pcode; //#21855 + } //#21855 + var _8z = $k[--$j]; //#21855 + var _90 = $k[--$j]; //#21855 + $puti($k[--$j], _90, _8z); //#21855 + $forall($k[--$j], function() { //#21856 + var _95 = $get($_.seta, $k[--$j]); //#21856 + $k[$j++] = _95; //#21856 + }); //#21856 + $_.pccw = $a(); //#21856 + for (var _97 = 0; _97 <= 5; _97 += 1) { //#21861 + $_.i = _97; //#21859 + var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21860 + $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21860 + } //#21860 + } //#21860 + $_.scm = $s(60); //#21865 + $puti($_.scm, 2, $_.mdb); //#21866 + $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21867 + $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21868 + $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21869 + $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21870 + $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21871 + $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21872 + $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21873 + $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21874 + $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21875 + $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21876 + $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21877 + $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21878 + $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21881 + for (var _9t = 0; _9t <= 59; _9t += 1) { //#21887 + $_.i = _9t; //#21883 + $_.ps = ~~($_.i / 6); //#21884 + $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21885 + $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21886 + } //#21886 + $k[$j++] = Infinity; //#21890 + for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21890 + $k[$j++] = $_.padval; //#21890 + } //#21890 + $_.sec = $a(); //#21890 + $puti($_.sec, 0, $_.encmsg); //#21891 + } //#21891 + if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21914 + if ($_.mode == -1) { //#21901 + var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21900 + $_.mode = _AH; //#21900 + } //#21900 + $k[$j++] = Infinity; //#21903 + var _AJ = ($_.mode == 5) ? 78 : 94; //#21903 + for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21903 + $k[$j++] = $_.padval; //#21903 + } //#21903 + $_.cws = $a(); //#21903 + if ($_.encmsg.length > ($_.cws.length - 1)) { //#21906 + $k[$j++] = 'bwipp.maxicodeMode56TooLong#21905'; //#21905 + $k[$j++] = "The message is too long"; //#21905 + bwipp_raiseerror(); //#21905 + } //#21905 + $put($_.cws, 0, $_.mode); //#21907 + $puti($_.cws, 1, $_.encmsg); //#21908 + $_.pri = $geti($_.cws, 0, 10); //#21911 + $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21912 + } //#21912 + if (!bwipp_maxicode.__21921__) { //#21921 + $_ = Object.create($_); //#21921 + $k[$j++] = Infinity; //#21918 + $k[$j++] = 1; //#21918 + for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21918 + var _Ab = $k[--$j]; //#21918 + var _Ac = _Ab * 2; //#21918 + $k[$j++] = _Ab; //#21918 + $k[$j++] = _Ac; //#21918 + if (_Ac >= 64) { //#21918 + var _Ad = $k[--$j]; //#21918 + $k[$j++] = _Ad ^ 67; //#21918 + } //#21918 + } //#21918 + $_.rsalog = $a(); //#21918 + $_.rslog = $a(64); //#21919 + for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21920 + $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21920 + } //#21920 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21920 + bwipp_maxicode.__21921__ = 1; //#21920 + $_ = Object.getPrototypeOf($_); //#21920 + } //#21920 $_.rsprod = function() { - var _Ak = $k[--$j]; //#21637 - var _Al = $k[--$j]; //#21637 - $k[$j++] = _Al; //#21641 - $k[$j++] = _Ak; //#21641 - if ((_Ak != 0) && (_Al != 0)) { //#21640 - var _Ao = $get($_.rslog, $k[--$j]); //#21638 - var _At = $get($_.rsalog, $f(_Ao + $get($_.rslog, $k[--$j])) % 63); //#21638 - $k[$j++] = _At; //#21638 - } else { //#21640 - $j -= 2; //#21640 - $k[$j++] = 0; //#21640 - } //#21640 - }; //#21640 + var _Al = $k[--$j]; //#21925 + var _Am = $k[--$j]; //#21925 + $k[$j++] = _Am; //#21929 + $k[$j++] = _Al; //#21929 + if ((_Al != 0) && (_Am != 0)) { //#21928 + var _Ap = $get($_.rslog, $k[--$j]); //#21926 + var _Au = $get($_.rsalog, $f(_Ap + $get($_.rslog, $k[--$j])) % 63); //#21926 + $k[$j++] = _Au; //#21926 + } else { //#21928 + $j -= 2; //#21928 + $k[$j++] = 0; //#21928 + } //#21928 + }; //#21928 $_.rscodes = function() { - $_.rsnum = $k[--$j]; //#21647 - $_.cwb = $k[--$j]; //#21648 - $k[$j++] = Infinity; //#21651 - $k[$j++] = 1; //#21651 - for (var _Ax = 0, _Ay = $_.rsnum; _Ax < _Ay; _Ax++) { //#21651 - $k[$j++] = 0; //#21651 - } //#21651 - $_.coeffs = $a(); //#21651 - for (var _B2 = 1, _B1 = $_.rsnum; _B2 <= _B1; _B2 += 1) { //#21660 - $_.i = _B2; //#21653 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21654 - for (var _B9 = $_.i - 1; _B9 >= 1; _B9 -= 1) { //#21658 - $_.j = _B9; //#21656 - $k[$j++] = $_.coeffs; //#21657 - $k[$j++] = $_.j; //#21657 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#21657 - $k[$j++] = $get($_.coeffs, $_.j); //#21657 - $k[$j++] = $get($_.rsalog, $_.i); //#21657 - $_.rsprod(); //#21657 - var _BL = $k[--$j]; //#21657 - var _BM = $k[--$j]; //#21657 - var _BN = $k[--$j]; //#21657 - $put($k[--$j], _BN, $xo(_BM, _BL)); //#21657 - } //#21657 - $k[$j++] = $_.coeffs; //#21659 - $k[$j++] = 0; //#21659 - $k[$j++] = $get($_.coeffs, 0); //#21659 - $k[$j++] = $get($_.rsalog, $_.i); //#21659 - $_.rsprod(); //#21659 - var _BV = $k[--$j]; //#21659 - var _BW = $k[--$j]; //#21659 - $put($k[--$j], _BW, _BV); //#21659 - } //#21659 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21661 - $k[$j++] = Infinity; //#21664 - for (var _Bc = 0, _Bd = $_.rsnum; _Bc < _Bd; _Bc++) { //#21664 - $k[$j++] = 0; //#21664 - } //#21664 - $_.ecb = $a(); //#21664 - for (var _Bh = 0, _Bg = $_.cwb.length - 1; _Bh <= _Bg; _Bh += 1) { //#21673 - $_.t = $xo($get($_.cwb, _Bh), $get($_.ecb, 0)); //#21666 - for (var _Bn = $_.ecb.length - 1; _Bn >= 0; _Bn -= 1) { //#21672 - $_.i = _Bn; //#21668 - $_.p = ($_.ecb.length - $_.i) - 1; //#21669 - $k[$j++] = $_.ecb; //#21670 - $k[$j++] = $_.p; //#21670 - $k[$j++] = $_.t; //#21670 - $k[$j++] = $get($_.coeffs, $_.i); //#21670 - $_.rsprod(); //#21670 - var _Bw = $k[--$j]; //#21670 - var _Bx = $k[--$j]; //#21670 - $put($k[--$j], _Bx, _Bw); //#21670 - if ($_.i > 0) { //#21671 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21671 - } //#21671 - } //#21671 - } //#21671 - $k[$j++] = $_.ecb; //#21675 - }; //#21675 - $k[$j++] = Infinity; //#21680 - for (var _CB = 0, _CA = $_.sec.length - 1; _CB <= _CA; _CB += 2) { //#21680 - $k[$j++] = $get($_.sec, _CB); //#21680 - } //#21680 - $_.seco = $a(); //#21680 - $k[$j++] = Infinity; //#21681 - for (var _CH = 1, _CG = $_.sec.length - 1; _CH <= _CG; _CH += 2) { //#21681 - $k[$j++] = $get($_.sec, _CH); //#21681 - } //#21681 - $_.sece = $a(); //#21681 - var _CM = ($_.sec.length == 84) ? 20 : 28; //#21684 - $_.scodes = _CM; //#21684 - $k[$j++] = 'secochk'; //#21685 - $k[$j++] = $_.seco; //#21685 - $k[$j++] = $_.scodes; //#21685 - $_.rscodes(); //#21685 - var _CP = $k[--$j]; //#21685 - $_[$k[--$j]] = _CP; //#21685 - $k[$j++] = 'secechk'; //#21686 - $k[$j++] = $_.sece; //#21686 - $k[$j++] = $_.scodes; //#21686 - $_.rscodes(); //#21686 - var _CT = $k[--$j]; //#21686 - $_[$k[--$j]] = _CT; //#21686 - $k[$j++] = Infinity; //#21689 - for (var _CX = 0, _CW = $_.scodes - 1; _CX <= _CW; _CX += 1) { //#21689 - $k[$j++] = $get($_.secochk, _CX); //#21689 - $k[$j++] = $get($_.secechk, _CX); //#21689 - } //#21689 - $_.secchk = $a(); //#21689 - $k[$j++] = Infinity; //#21696 - $aload($_.pri); //#21693 - $k[$j++] = $_.pri; //#21694 - $k[$j++] = 10; //#21694 - $_.rscodes(); //#21694 - $aload($k[--$j]); //#21694 - $aload($_.sec); //#21695 - $aload($_.secchk); //#21696 - $_.codewords = $a(); //#21696 - $k[$j++] = Infinity; //#21700 - for (var _Cj = 0, _Ck = 864; _Cj < _Ck; _Cj++) { //#21700 - $k[$j++] = 0; //#21700 - } //#21700 - $_.mods = $a(); //#21700 - for (var _Cm = 0; _Cm <= 143; _Cm += 1) { //#21705 - $_.i = _Cm; //#21702 - $k[$j++] = Infinity; //#21703 - var _Cr = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21703 - for (var _Cs = 0, _Ct = _Cr.length; _Cs < _Ct; _Cs++) { //#21703 - $k[$j++] = $get(_Cr, _Cs) - 48; //#21703 - } //#21703 - $_.cw = $a(); //#21703 - $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21704 - } //#21704 - if (!bwipp_maxicode.__21755__) { //#21755 - $_ = Object.create($_); //#21755 - $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#21754 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21754 - bwipp_maxicode.__21755__ = 1; //#21754 - $_ = Object.getPrototypeOf($_); //#21754 - } //#21754 - $_.pixs = $a(864); //#21758 - $_.j = 0; //#21759 - for (var _D5 = 0, _D4 = $_.mods.length - 1; _D5 <= _D4; _D5 += 1) { //#21766 - $_.i = _D5; //#21761 - if ($get($_.mods, $_.i) == 1) { //#21765 - $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#21763 - $_.j = $_.j + 1; //#21764 - } //#21764 - } //#21764 - $k[$j++] = Infinity; //#21767 - $aload($geti($_.pixs, 0, $_.j)); //#21767 - $k[$j++] = 28; //#21767 - $k[$j++] = 29; //#21767 - $k[$j++] = 280; //#21767 - $k[$j++] = 281; //#21767 - $k[$j++] = 311; //#21767 - $k[$j++] = 457; //#21767 - $k[$j++] = 488; //#21767 - $k[$j++] = 500; //#21767 - $k[$j++] = 530; //#21767 - $k[$j++] = 670; //#21767 - $k[$j++] = 700; //#21767 - $k[$j++] = 677; //#21767 - $k[$j++] = 707; //#21767 - $_.pixs = $a(); //#21767 - var _DL = new Map([ + $_.rsnum = $k[--$j]; //#21935 + $_.cwb = $k[--$j]; //#21936 + $k[$j++] = Infinity; //#21939 + $k[$j++] = 1; //#21939 + for (var _Ay = 0, _Az = $_.rsnum; _Ay < _Az; _Ay++) { //#21939 + $k[$j++] = 0; //#21939 + } //#21939 + $_.coeffs = $a(); //#21939 + for (var _B3 = 1, _B2 = $_.rsnum; _B3 <= _B2; _B3 += 1) { //#21948 + $_.i = _B3; //#21941 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21942 + for (var _BA = $_.i - 1; _BA >= 1; _BA -= 1) { //#21946 + $_.j = _BA; //#21944 + $k[$j++] = $_.coeffs; //#21945 + $k[$j++] = $_.j; //#21945 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#21945 + $k[$j++] = $get($_.coeffs, $_.j); //#21945 + $k[$j++] = $get($_.rsalog, $_.i); //#21945 + $_.rsprod(); //#21945 + var _BM = $k[--$j]; //#21945 + var _BN = $k[--$j]; //#21945 + var _BO = $k[--$j]; //#21945 + $put($k[--$j], _BO, $xo(_BN, _BM)); //#21945 + } //#21945 + $k[$j++] = $_.coeffs; //#21947 + $k[$j++] = 0; //#21947 + $k[$j++] = $get($_.coeffs, 0); //#21947 + $k[$j++] = $get($_.rsalog, $_.i); //#21947 + $_.rsprod(); //#21947 + var _BW = $k[--$j]; //#21947 + var _BX = $k[--$j]; //#21947 + $put($k[--$j], _BX, _BW); //#21947 + } //#21947 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21949 + $k[$j++] = Infinity; //#21952 + for (var _Bd = 0, _Be = $_.rsnum; _Bd < _Be; _Bd++) { //#21952 + $k[$j++] = 0; //#21952 + } //#21952 + $_.ecb = $a(); //#21952 + for (var _Bi = 0, _Bh = $_.cwb.length - 1; _Bi <= _Bh; _Bi += 1) { //#21961 + $_.t = $xo($get($_.cwb, _Bi), $get($_.ecb, 0)); //#21954 + for (var _Bo = $_.ecb.length - 1; _Bo >= 0; _Bo -= 1) { //#21960 + $_.i = _Bo; //#21956 + $_.p = ($_.ecb.length - $_.i) - 1; //#21957 + $k[$j++] = $_.ecb; //#21958 + $k[$j++] = $_.p; //#21958 + $k[$j++] = $_.t; //#21958 + $k[$j++] = $get($_.coeffs, $_.i); //#21958 + $_.rsprod(); //#21958 + var _Bx = $k[--$j]; //#21958 + var _By = $k[--$j]; //#21958 + $put($k[--$j], _By, _Bx); //#21958 + if ($_.i > 0) { //#21959 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21959 + } //#21959 + } //#21959 + } //#21959 + $k[$j++] = $_.ecb; //#21963 + }; //#21963 + $k[$j++] = Infinity; //#21968 + for (var _CC = 0, _CB = $_.sec.length - 1; _CC <= _CB; _CC += 2) { //#21968 + $k[$j++] = $get($_.sec, _CC); //#21968 + } //#21968 + $_.seco = $a(); //#21968 + $k[$j++] = Infinity; //#21969 + for (var _CI = 1, _CH = $_.sec.length - 1; _CI <= _CH; _CI += 2) { //#21969 + $k[$j++] = $get($_.sec, _CI); //#21969 + } //#21969 + $_.sece = $a(); //#21969 + var _CN = ($_.sec.length == 84) ? 20 : 28; //#21972 + $_.scodes = _CN; //#21972 + $k[$j++] = 'secochk'; //#21973 + $k[$j++] = $_.seco; //#21973 + $k[$j++] = $_.scodes; //#21973 + $_.rscodes(); //#21973 + var _CQ = $k[--$j]; //#21973 + $_[$k[--$j]] = _CQ; //#21973 + $k[$j++] = 'secechk'; //#21974 + $k[$j++] = $_.sece; //#21974 + $k[$j++] = $_.scodes; //#21974 + $_.rscodes(); //#21974 + var _CU = $k[--$j]; //#21974 + $_[$k[--$j]] = _CU; //#21974 + $k[$j++] = Infinity; //#21977 + for (var _CY = 0, _CX = $_.scodes - 1; _CY <= _CX; _CY += 1) { //#21977 + $k[$j++] = $get($_.secochk, _CY); //#21977 + $k[$j++] = $get($_.secechk, _CY); //#21977 + } //#21977 + $_.secchk = $a(); //#21977 + $k[$j++] = Infinity; //#21980 + $aload($_.pri); //#21981 + $k[$j++] = $_.pri; //#21982 + $k[$j++] = 10; //#21982 + $_.rscodes(); //#21982 + $aload($k[--$j]); //#21982 + $aload($_.sec); //#21983 + $aload($_.secchk); //#21984 + $_.codewords = $a(); //#21984 + $k[$j++] = Infinity; //#21988 + for (var _Ck = 0, _Cl = 864; _Ck < _Cl; _Ck++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $_.mods = $a(); //#21988 + for (var _Cn = 0; _Cn <= 143; _Cn += 1) { //#21993 + $_.i = _Cn; //#21990 + $k[$j++] = Infinity; //#21991 + var _Cs = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21991 + for (var _Ct = 0, _Cu = _Cs.length; _Ct < _Cu; _Ct++) { //#21991 + $k[$j++] = $get(_Cs, _Ct) - 48; //#21991 + } //#21991 + $_.cw = $a(); //#21991 + $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21992 + } //#21992 + if (!bwipp_maxicode.__22043__) { //#22043 + $_ = Object.create($_); //#22043 + $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#22042 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#22042 + bwipp_maxicode.__22043__ = 1; //#22042 + $_ = Object.getPrototypeOf($_); //#22042 + } //#22042 + $_.pixs = $a(864); //#22046 + $_.j = 0; //#22047 + for (var _D6 = 0, _D5 = $_.mods.length - 1; _D6 <= _D5; _D6 += 1) { //#22054 + $_.i = _D6; //#22049 + if ($get($_.mods, $_.i) == 1) { //#22053 + $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#22051 + $_.j = $_.j + 1; //#22052 + } //#22052 + } //#22052 + $k[$j++] = Infinity; //#22055 + $aload($geti($_.pixs, 0, $_.j)); //#22055 + $k[$j++] = 28; //#22055 + $k[$j++] = 29; //#22055 + $k[$j++] = 280; //#22055 + $k[$j++] = 281; //#22055 + $k[$j++] = 311; //#22055 + $k[$j++] = 457; //#22055 + $k[$j++] = 488; //#22055 + $k[$j++] = 500; //#22055 + $k[$j++] = 530; //#22055 + $k[$j++] = 670; //#22055 + $k[$j++] = 700; //#22055 + $k[$j++] = 677; //#22055 + $k[$j++] = 707; //#22055 + $_.pixs = $a(); //#22055 + var _DM = new Map([ ["ren", bwipp_renmaximatrix], ["pixs", $_.pixs], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#21773 - $k[$j++] = _DL; //#21776 - if (!$_.dontdraw) { //#21776 - bwipp_renmaximatrix(); //#21776 - } //#21776 - $_ = Object.getPrototypeOf($_); //#21778 - $_ = Object.getPrototypeOf($_); //#21780 -} - + ]); //#22065 + $k[$j++] = _DM; //#22068 + if (!$_.dontdraw) { //#22068 + bwipp_renmaximatrix(); //#22068 + } //#22068 + $_ = Object.getPrototypeOf($_); //#22070 + $_ = Object.getPrototypeOf($_); //#22072 +} //bwipp_maxicode function bwipp_azteccode() { - $_ = Object.create($_); //#21811 - $_.dontdraw = false; //#21814 - $_.format = "full"; //#21815 - $_.readerinit = false; //#21816 - $_.layers = -1; //#21817 - $_.eclevel = 23; //#21818 - $_.ecaddchars = 3; //#21819 - $_.raw = false; //#21820 - $_.parse = false; //#21821 - $_.parsefnc = false; //#21822 - $k[$j++] = $_; //#21824 - bwipp_processoptions(); //#21824 - $_.options = $k[--$j]; //#21824 - $_.barcode = $k[--$j]; //#21825 - bwipp_loadctx(bwipp_azteccode) //#21827 - if ($eq($_.barcode, "")) { //#21831 - $k[$j++] = 'bwipp.aztecEmptyData#21830'; //#21830 - $k[$j++] = "The data must not be empty"; //#21830 - bwipp_raiseerror(); //#21830 - } //#21830 - if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#21835 - $k[$j++] = 'bwipp.aztecInvalidEClevel#21834'; //#21834 - $k[$j++] = "The EC percentage must be from 5 to 95"; //#21834 - bwipp_raiseerror(); //#21834 - } //#21834 - if ($_.ecaddchars < 3) { //#21839 - $k[$j++] = 'bwipp.aztecInvalidECaddChars#21838'; //#21838 - $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#21838 - bwipp_raiseerror(); //#21838 - } //#21838 - if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#21843 - $k[$j++] = 'bwipp.aztecInvalidFormat#21842'; //#21842 - $k[$j++] = "The format must be either full, compact or rune"; //#21842 - bwipp_raiseerror(); //#21842 - } //#21842 - if ($eq($_.format, "full")) { //#21852 - if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#21848 - $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#21847'; //#21847 - $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#21847 - bwipp_raiseerror(); //#21847 - } //#21847 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#21851 - $k[$j++] = 'bwipp.aztecFullInvalidLayers#21850'; //#21850 - $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#21850 - bwipp_raiseerror(); //#21850 - } //#21850 - } //#21850 - if ($eq($_.format, "compact")) { //#21864 - if ($_.readerinit) { //#21860 - if (($_.layers != -1) && ($_.layers != 1)) { //#21858 - $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#21857'; //#21857 - $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#21857 - bwipp_raiseerror(); //#21857 - } //#21857 - $_.layers = 1; //#21859 - } //#21859 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#21863 - $k[$j++] = 'bwipp.aztecCompactInvalidLayers#21862'; //#21862 - $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#21862 - bwipp_raiseerror(); //#21862 - } //#21862 - } //#21862 - if ($eq($_.format, "rune")) { //#21884 - if ($_.layers != -1) { //#21869 - $k[$j++] = 'bwipp.aztecRuneInvalidLayers#21868'; //#21868 - $k[$j++] = "It is not valid to specify layers for runes"; //#21868 - bwipp_raiseerror(); //#21868 - } //#21868 - if ($_.readerinit) { //#21872 - $k[$j++] = 'bwipp.aztecRuneReaderInit#21871'; //#21871 - $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#21871 - bwipp_raiseerror(); //#21871 - } //#21871 - if ($_.barcode.length == 0) { //#21875 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21874'; //#21874 - $k[$j++] = "Aztec runes must be numeric"; //#21874 - bwipp_raiseerror(); //#21874 - } //#21874 - $forall($_.barcode, function() { //#21880 - var _S = $k[--$j]; //#21877 - if ((_S < 48) || (_S > 57)) { //#21879 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21878'; //#21878 - $k[$j++] = "Aztec runes must be numeric"; //#21878 - bwipp_raiseerror(); //#21878 - } //#21878 - }); //#21878 - var _U = $cvi($_.barcode); //#21881 - if ((_U < 0) || (_U > 255)) { //#21883 - $k[$j++] = 'bwipp.aztecRuneInvalid#21882'; //#21882 - $k[$j++] = "Aztec runes must be 0 to 255"; //#21882 - bwipp_raiseerror(); //#21882 - } //#21882 - } //#21882 - $_.fn1 = -1; //#21887 + $_ = Object.create($_); //#22103 + $_.dontdraw = false; //#22106 + $_.format = "full"; //#22107 + $_.readerinit = false; //#22108 + $_.layers = -1; //#22109 + $_.eclevel = 23; //#22110 + $_.ecaddchars = 3; //#22111 + $_.raw = false; //#22112 + $_.parse = false; //#22113 + $_.parsefnc = false; //#22114 + $k[$j++] = $_; //#22116 + bwipp_processoptions(); //#22116 + $_.options = $k[--$j]; //#22116 + $_.barcode = $k[--$j]; //#22117 + bwipp_loadctx(bwipp_azteccode) //#22119 + if ($eq($_.barcode, "")) { //#22123 + $k[$j++] = 'bwipp.aztecEmptyData#22122'; //#22122 + $k[$j++] = "The data must not be empty"; //#22122 + bwipp_raiseerror(); //#22122 + } //#22122 + if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#22127 + $k[$j++] = 'bwipp.aztecInvalidEClevel#22126'; //#22126 + $k[$j++] = "The EC percentage must be from 5 to 95"; //#22126 + bwipp_raiseerror(); //#22126 + } //#22126 + if ($_.ecaddchars < 3) { //#22131 + $k[$j++] = 'bwipp.aztecInvalidECaddChars#22130'; //#22130 + $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#22130 + bwipp_raiseerror(); //#22130 + } //#22130 + if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#22135 + $k[$j++] = 'bwipp.aztecInvalidFormat#22134'; //#22134 + $k[$j++] = "The format must be either full, compact or rune"; //#22134 + bwipp_raiseerror(); //#22134 + } //#22134 + if ($eq($_.format, "full")) { //#22144 + if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#22140 + $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#22139'; //#22139 + $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#22139 + bwipp_raiseerror(); //#22139 + } //#22139 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#22143 + $k[$j++] = 'bwipp.aztecFullInvalidLayers#22142'; //#22142 + $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#22142 + bwipp_raiseerror(); //#22142 + } //#22142 + } //#22142 + if ($eq($_.format, "compact")) { //#22156 + if ($_.readerinit) { //#22152 + if (($_.layers != -1) && ($_.layers != 1)) { //#22150 + $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#22149'; //#22149 + $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#22149 + bwipp_raiseerror(); //#22149 + } //#22149 + $_.layers = 1; //#22151 + } //#22151 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#22155 + $k[$j++] = 'bwipp.aztecCompactInvalidLayers#22154'; //#22154 + $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#22154 + bwipp_raiseerror(); //#22154 + } //#22154 + } //#22154 + if ($eq($_.format, "rune")) { //#22176 + if ($_.layers != -1) { //#22161 + $k[$j++] = 'bwipp.aztecRuneInvalidLayers#22160'; //#22160 + $k[$j++] = "It is not valid to specify layers for runes"; //#22160 + bwipp_raiseerror(); //#22160 + } //#22160 + if ($_.readerinit) { //#22164 + $k[$j++] = 'bwipp.aztecRuneReaderInit#22163'; //#22163 + $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#22163 + bwipp_raiseerror(); //#22163 + } //#22163 + if ($_.barcode.length == 0) { //#22167 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22166'; //#22166 + $k[$j++] = "Aztec runes must be numeric"; //#22166 + bwipp_raiseerror(); //#22166 + } //#22166 + $forall($_.barcode, function() { //#22172 + var _S = $k[--$j]; //#22169 + if ((_S < 48) || (_S > 57)) { //#22171 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22170'; //#22170 + $k[$j++] = "Aztec runes must be numeric"; //#22170 + bwipp_raiseerror(); //#22170 + } //#22170 + }); //#22170 + var _U = $cvi($_.barcode); //#22173 + if ((_U < 0) || (_U > 255)) { //#22175 + $k[$j++] = 'bwipp.aztecRuneInvalid#22174'; //#22174 + $k[$j++] = "Aztec runes must be 0 to 255"; //#22174 + bwipp_raiseerror(); //#22174 + } //#22174 + } //#22174 + $_.fn1 = -1; //#22179 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#21892 - $_.fncvals = _Y; //#21893 - $k[$j++] = 'msg'; //#21894 - $k[$j++] = $_.barcode; //#21894 - $k[$j++] = $_.fncvals; //#21894 - bwipp_parseinput(); //#21894 - var _b = $k[--$j]; //#21894 - $_[$k[--$j]] = _b; //#21894 - $_.msglen = $_.msg.length; //#21895 - if (!bwipp_azteccode.__21995__) { //#21995 - $_ = Object.create($_); //#21995 - $_.U = 0; //#21899 - $_.L = 1; //#21899 - $_.M = 2; //#21899 - $_.P = 3; //#21899 - $_.D = 4; //#21899 - $_.B = 5; //#21899 - $_.lu = -2; //#21902 - $_.ll = -3; //#21902 - $_.lm = -4; //#21902 - $_.lp = -5; //#21903 - $_.ld = -6; //#21903 - $_.su = -7; //#21903 - $_.sp = -8; //#21904 - $_.sb = -9; //#21904 - $_.fl = -10; //#21904 - $_.p2 = -11; //#21905 - $_.p3 = -12; //#21905 - $_.p4 = -13; //#21905 - $_.p5 = -14; //#21905 - $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#21942 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21945 - for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#21954 - $_.i = _1c; //#21947 - $_.encs = $get($_.charmaps, $_.i); //#21948 - for (var _1g = 0; _1g <= 4; _1g += 1) { //#21953 - $_.j = _1g; //#21950 - var _1j = $get($_.encs, $_.j); //#21951 - $k[$j++] = _1j; //#21951 - if ($eq($type(_1j), 'stringtype')) { //#21951 - var _1m = $get($k[--$j], 0); //#21951 - $k[$j++] = _1m; //#21951 - } //#21951 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21952 - } //#21952 - } //#21952 + ]); //#22184 + $_.fncvals = _Y; //#22185 + $k[$j++] = 'msg'; //#22186 + $k[$j++] = $_.barcode; //#22186 + $k[$j++] = $_.fncvals; //#22186 + bwipp_parseinput(); //#22186 + var _b = $k[--$j]; //#22186 + $_[$k[--$j]] = _b; //#22186 + $_.msglen = $_.msg.length; //#22187 + if (!bwipp_azteccode.__22287__) { //#22287 + $_ = Object.create($_); //#22287 + $_.U = 0; //#22191 + $_.L = 1; //#22191 + $_.M = 2; //#22191 + $_.P = 3; //#22191 + $_.D = 4; //#22191 + $_.B = 5; //#22191 + $_.lu = -2; //#22194 + $_.ll = -3; //#22194 + $_.lm = -4; //#22194 + $_.lp = -5; //#22195 + $_.ld = -6; //#22195 + $_.su = -7; //#22195 + $_.sp = -8; //#22196 + $_.sb = -9; //#22196 + $_.fl = -10; //#22196 + $_.p2 = -11; //#22197 + $_.p3 = -12; //#22197 + $_.p4 = -13; //#22197 + $_.p5 = -14; //#22197 + $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#22234 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#22237 + for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#22246 + $_.i = _1c; //#22239 + $_.encs = $get($_.charmaps, $_.i); //#22240 + for (var _1g = 0; _1g <= 4; _1g += 1) { //#22245 + $_.j = _1g; //#22242 + var _1j = $get($_.encs, $_.j); //#22243 + $k[$j++] = _1j; //#22243 + if ($eq($type(_1j), 'stringtype')) { //#22243 + var _1m = $get($k[--$j], 0); //#22243 + $k[$j++] = _1m; //#22243 + } //#22243 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#22244 + } //#22244 + } //#22244 var _1w = new Map([ ["\x0d\x0a", $_.p2], [". ", $_.p3], [", ", $_.p4], [": ", $_.p5] - ]); //#21961 - $_.pcomp = _1w; //#21962 - $_.e = 10000; //#21964 - var _21 = $a([4, 9, 9, 14, 0, 14]); //#21972 - $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), _21, $a([0, 0, 0, 0, 0, 0])]); //#21974 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#21984 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#21993 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#21993 - bwipp_azteccode.__21995__ = 1; //#21993 - $_ = Object.getPrototypeOf($_); //#21993 - } //#21993 - $_.msgbits = ""; //#21998 - if ($ne($_.format, "rune") && $_.raw) { //#21999 - $_.msgbits = $_.barcode; //#21999 - } //#21999 - if ($ne($_.format, "rune") && (!$_.raw)) { //#22290 + ]); //#22253 + $_.pcomp = _1w; //#22254 + $_.e = 1000000; //#22256 + var _22 = $a([0, 0, 0, 0, 0, 0]); //#22265 + $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), _22]); //#22266 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#22276 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#22285 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22285 + bwipp_azteccode.__22287__ = 1; //#22285 + $_ = Object.getPrototypeOf($_); //#22285 + } //#22285 + $_.msgbits = ""; //#22290 + if ($ne($_.format, "rune") && $_.raw) { //#22291 + $_.msgbits = $_.barcode; //#22291 + } //#22291 + if ($ne($_.format, "rune") && (!$_.raw)) { //#22582 $_.charsize = function() { - var _3v = $k[--$j]; //#22003 - $k[$j++] = _3v; //#22014 - if (_3v >= 0) { //#22012 - $j--; //#22005 - var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22005 - $k[$j++] = _3y; //#22005 - } else { //#22012 - var _3z = $k[--$j]; //#22007 - var _40 = $k[--$j]; //#22007 - $k[$j++] = _3z; //#22007 - $k[$j++] = _40; //#22007 - $j--; //#22007 - var _41 = $k[--$j]; //#22008 - $k[$j++] = _41; //#22013 - if (_41 == $_.fn1) { //#22012 - $j--; //#22009 - $k[$j++] = 8; //#22009 - } else { //#22012 - var _44 = $f((-$k[--$j]) - 1000000); //#22011 - $k[$j++] = _44; //#22011 - if (_44 == 0) { //#22011 - $j--; //#22011 - $k[$j++] = 1; //#22011 - } //#22011 - var _45 = $k[--$j]; //#22012 - $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22012 - } //#22012 - } //#22012 - }; //#22012 - $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22018 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22019 - $_.backto = $_.U; //#22021 - $_.lastchar = ""; //#22022 - $forall($_.msg, function() { //#22174 - $_.char = $k[--$j]; //#22027 - for (;;) { //#22053 - $_.imp = false; //#22031 - var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22032 - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22051 - $_.x = $get(_4S, _4T); //#22033 - var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22034 - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22050 - $_.y = $get(_4c, _4d); //#22035 - if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22049 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22037 - if ($_.cost < $get($_.curlen, $_.y)) { //#22048 - $put($_.curlen, $_.y, $_.cost); //#22039 - $k[$j++] = $_.curseq; //#22042 - $k[$j++] = $_.y; //#22042 - $k[$j++] = Infinity; //#22042 - $aload($get($_.curseq, $_.x)); //#22041 - $aload($get($get($_.latseq, $_.x), $_.y)); //#22042 - var _59 = $a(); //#22042 - var _5A = $k[--$j]; //#22043 - $put($k[--$j], _5A, _59); //#22043 - if ($_.y == $_.B) { //#22046 - $k[$j++] = 'backto'; //#22045 - if (($_.x == $_.P) || ($_.x == $_.D)) { //#22045 - $k[$j++] = $_.U; //#22045 - } else { //#22045 - $k[$j++] = $_.x; //#22045 - } //#22045 - var _5K = $k[--$j]; //#22045 - $_[$k[--$j]] = _5K; //#22045 - } //#22045 - $_.imp = true; //#22047 - } //#22047 - } //#22047 - } //#22047 - } //#22047 - if (!$_.imp) { //#22052 - break; //#22052 - } //#22052 - } //#22052 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22056 - $_.nxtseq = $a(6); //#22057 - var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22059 - for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22098 - $_.x = $get(_5b, _5c); //#22060 - for (;;) { //#22096 - if ($_.char >= 0) { //#22068 - if ($_.x != $_.B) { //#22066 - var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22066 - if (!_5m) { //#22066 - break; //#22066 - } //#22066 - } //#22066 - } else { //#22068 - if ($_.x != $_.P) { //#22068 - break; //#22068 - } //#22068 - } //#22068 - $k[$j++] = 'cost'; //#22072 - $k[$j++] = $get($_.curlen, $_.x); //#22072 - $k[$j++] = $_.x; //#22072 - $k[$j++] = $_.char; //#22072 - $_.charsize(); //#22072 - var _5u = $k[--$j]; //#22072 - var _5v = $k[--$j]; //#22072 - $_[$k[--$j]] = $f(_5v + _5u); //#22072 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#22076 - $put($_.nxtlen, $_.x, $_.cost); //#22074 - $k[$j++] = $_.nxtseq; //#22075 - $k[$j++] = $_.x; //#22075 - $k[$j++] = Infinity; //#22075 - $aload($get($_.curseq, $_.x)); //#22075 - $k[$j++] = $_.char; //#22075 - var _6A = $a(); //#22075 - var _6B = $k[--$j]; //#22075 - $put($k[--$j], _6B, _6A); //#22075 - } //#22075 - if ($_.x == $_.B) { //#22079 - break; //#22079 - } //#22079 - var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22080 - for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22093 - $_.y = $get(_6K, _6L); //#22081 - if ($ne($_.x, $_.y)) { //#22092 - $k[$j++] = 'cost'; //#22083 - $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22083 - $k[$j++] = $_.x; //#22083 - $k[$j++] = $_.char; //#22083 - $_.charsize(); //#22083 - var _6a = $k[--$j]; //#22083 - var _6b = $k[--$j]; //#22083 - $_[$k[--$j]] = $f(_6b + _6a); //#22083 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#22091 - $put($_.nxtlen, $_.y, $_.cost); //#22085 - $k[$j++] = $_.nxtseq; //#22089 - $k[$j++] = $_.y; //#22089 - $k[$j++] = Infinity; //#22089 - $aload($get($_.curseq, $_.y)); //#22087 - var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22088 - $k[$j++] = _6r; //#22089 - $k[$j++] = $_.char; //#22089 - var _6t = $a(); //#22089 - var _6u = $k[--$j]; //#22090 - $put($k[--$j], _6u, _6t); //#22090 - } //#22090 - } //#22090 - } //#22090 - break; //#22095 - } //#22095 - } //#22095 - if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22159 - var _6y = $s(2); //#22102 - $put(_6y, 0, $_.lastchar); //#22102 - $put(_6y, 1, $_.char); //#22102 - $_.pchars = _6y; //#22102 - var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22103 - if (_73) { //#22158 - var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22104 - for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22157 - $_.i = $get(_79, _7A); //#22105 - $_.inP = true; //#22106 - if ($_.i == $_.M) { //#22111 - if ($_.lastchar == 13) { //#22108 - $_.inP = false; //#22108 - } //#22108 - } else { //#22111 - if ($_.i == $_.D) { //#22112 - if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22111 - $_.inP = false; //#22111 - } //#22111 - } //#22111 - } //#22111 - if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22156 - $_.curseqi = $get($_.curseq, $_.i); //#22115 - $_.lastld = false; //#22116 - $_.lastsp = false; //#22117 - $_.lastidx = -1; //#22118 - for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22139 - $_.idx = _7V; //#22120 - $_.ch = $get($_.curseqi, $_.idx); //#22121 - if ($_.lastidx == -1) { //#22136 - if ($eq($_.ch, $_.lastchar)) { //#22128 - $_.lastidx = $_.idx; //#22124 - if ($_.idx > 0) { //#22127 - if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22126 - $_.lastsp = true; //#22126 - } //#22126 - } //#22126 - } //#22126 - } else { //#22136 - if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22137 - if ($_.i == $_.P) { //#22134 - if ($_.ch == $_.ld) { //#22132 - $_.lastld = true; //#22132 - } //#22132 - } else { //#22134 - if ($_.ch != $_.lp) { //#22134 - $_.inP = $_.lastsp; //#22134 - } //#22134 - } //#22134 - break; //#22136 - } //#22136 - } //#22136 - } //#22136 - if ($_.inP && ($_.lastidx >= 0)) { //#22155 - $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22141 - if ($_.lastidx < ($_.curseqi.length - 1)) { //#22153 - if ($_.i == $_.P) { //#22150 - if ($_.lastld) { //#22144 - $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22144 - } //#22144 - $k[$j++] = $_.nxtseq; //#22146 - $k[$j++] = $_.i; //#22146 - $k[$j++] = Infinity; //#22146 - $aload($_.curseqi); //#22146 - $r($_.curseqi.length - $_.lastidx, -1); //#22146 - $j--; //#22146 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22146 - var _8H = $a(); //#22146 - var _8I = $k[--$j]; //#22146 - $put($k[--$j], _8I, _8H); //#22146 - } else { //#22150 - $k[$j++] = $_.nxtseq; //#22149 - $k[$j++] = $_.i; //#22149 - $k[$j++] = Infinity; //#22149 - $aload($_.curseqi); //#22149 - var _8N = $a(); //#22149 - var _8O = $k[--$j]; //#22149 - $put($k[--$j], _8O, _8N); //#22149 - $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22150 - } //#22150 - } else { //#22153 - $k[$j++] = $_.nxtseq; //#22153 - $k[$j++] = $_.i; //#22153 - $k[$j++] = Infinity; //#22153 - $aload($_.curseqi); //#22153 - $j--; //#22153 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22153 - var _8d = $a(); //#22153 - var _8e = $k[--$j]; //#22153 - $put($k[--$j], _8e, _8d); //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - if ($ne($get($_.nxtseq, $_.B), null)) { //#22168 - $_.numbytes = 0; //#22163 - $forall($get($_.nxtseq, $_.B), function() { //#22166 - if ($k[--$j] == $_.sb) { //#22165 - $k[$j++] = 0; //#22165 - } else { //#22165 - $k[$j++] = $_.numbytes + 1; //#22165 - } //#22165 - $_.numbytes = $k[--$j]; //#22165 - }); //#22165 - if ($_.numbytes == 32) { //#22167 - $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22167 - } //#22167 - } //#22167 - $_.curlen = $_.nxtlen; //#22170 - $_.curseq = $_.nxtseq; //#22171 - $k[$j++] = 'lastchar'; //#22172 - if ($_.char >= 0) { //#22172 - $k[$j++] = $_.char; //#22172 - } else { //#22172 - $k[$j++] = ""; //#22172 - } //#22172 - var _90 = $k[--$j]; //#22172 - $_[$k[--$j]] = _90; //#22172 - }); //#22172 - $_.minseq = $_.e; //#22177 - var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22178 - for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22184 - $_.i = $get(_99, _9A); //#22179 - if ($get($_.curlen, $_.i) < $_.minseq) { //#22183 - $_.minseq = $get($_.curlen, $_.i); //#22181 - $_.seq = $get($_.curseq, $_.i); //#22182 - } //#22182 - } //#22182 + var _3v = $k[--$j]; //#22295 + $k[$j++] = _3v; //#22306 + if (_3v >= 0) { //#22304 + $j--; //#22297 + var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22297 + $k[$j++] = _3y; //#22297 + } else { //#22304 + var _3z = $k[--$j]; //#22299 + var _40 = $k[--$j]; //#22299 + $k[$j++] = _3z; //#22299 + $k[$j++] = _40; //#22299 + $j--; //#22299 + var _41 = $k[--$j]; //#22300 + $k[$j++] = _41; //#22305 + if (_41 == $_.fn1) { //#22304 + $j--; //#22301 + $k[$j++] = 8; //#22301 + } else { //#22304 + var _44 = $f((-$k[--$j]) - 1000000); //#22303 + $k[$j++] = _44; //#22303 + if (_44 == 0) { //#22303 + $j--; //#22303 + $k[$j++] = 1; //#22303 + } //#22303 + var _45 = $k[--$j]; //#22304 + $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22304 + } //#22304 + } //#22304 + }; //#22304 + $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22310 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22311 + $_.backto = $_.U; //#22313 + $_.lastchar = ""; //#22314 + $forall($_.msg, function() { //#22466 + $_.char = $k[--$j]; //#22319 + for (;;) { //#22345 + $_.imp = false; //#22323 + var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22324 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22343 + $_.x = $get(_4S, _4T); //#22325 + var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22326 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22342 + $_.y = $get(_4c, _4d); //#22327 + if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22341 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22329 + if ($_.cost < $get($_.curlen, $_.y)) { //#22340 + $put($_.curlen, $_.y, $_.cost); //#22331 + $k[$j++] = $_.curseq; //#22334 + $k[$j++] = $_.y; //#22334 + $k[$j++] = Infinity; //#22332 + $aload($get($_.curseq, $_.x)); //#22333 + $aload($get($get($_.latseq, $_.x), $_.y)); //#22334 + var _59 = $a(); //#22334 + var _5A = $k[--$j]; //#22335 + $put($k[--$j], _5A, _59); //#22335 + if ($_.y == $_.B) { //#22338 + $k[$j++] = 'backto'; //#22337 + if (($_.x == $_.P) || ($_.x == $_.D)) { //#22337 + $k[$j++] = $_.U; //#22337 + } else { //#22337 + $k[$j++] = $_.x; //#22337 + } //#22337 + var _5K = $k[--$j]; //#22337 + $_[$k[--$j]] = _5K; //#22337 + } //#22337 + $_.imp = true; //#22339 + } //#22339 + } //#22339 + } //#22339 + } //#22339 + if (!$_.imp) { //#22344 + break; //#22344 + } //#22344 + } //#22344 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22348 + $_.nxtseq = $a(6); //#22349 + var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22351 + for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22390 + $_.x = $get(_5b, _5c); //#22352 + for (;;) { //#22388 + if ($_.char >= 0) { //#22360 + if ($_.x != $_.B) { //#22358 + var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22358 + if (!_5m) { //#22358 + break; //#22358 + } //#22358 + } //#22358 + } else { //#22360 + if ($_.x != $_.P) { //#22360 + break; //#22360 + } //#22360 + } //#22360 + $k[$j++] = 'cost'; //#22364 + $k[$j++] = $get($_.curlen, $_.x); //#22364 + $k[$j++] = $_.x; //#22364 + $k[$j++] = $_.char; //#22364 + $_.charsize(); //#22364 + var _5u = $k[--$j]; //#22364 + var _5v = $k[--$j]; //#22364 + $_[$k[--$j]] = $f(_5v + _5u); //#22364 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#22368 + $put($_.nxtlen, $_.x, $_.cost); //#22366 + $k[$j++] = $_.nxtseq; //#22367 + $k[$j++] = $_.x; //#22367 + $k[$j++] = Infinity; //#22367 + $aload($get($_.curseq, $_.x)); //#22367 + $k[$j++] = $_.char; //#22367 + var _6A = $a(); //#22367 + var _6B = $k[--$j]; //#22367 + $put($k[--$j], _6B, _6A); //#22367 + } //#22367 + if ($_.x == $_.B) { //#22371 + break; //#22371 + } //#22371 + var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22372 + for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22385 + $_.y = $get(_6K, _6L); //#22373 + if ($ne($_.x, $_.y)) { //#22384 + $k[$j++] = 'cost'; //#22375 + $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22375 + $k[$j++] = $_.x; //#22375 + $k[$j++] = $_.char; //#22375 + $_.charsize(); //#22375 + var _6a = $k[--$j]; //#22375 + var _6b = $k[--$j]; //#22375 + $_[$k[--$j]] = $f(_6b + _6a); //#22375 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#22383 + $put($_.nxtlen, $_.y, $_.cost); //#22377 + $k[$j++] = $_.nxtseq; //#22381 + $k[$j++] = $_.y; //#22381 + $k[$j++] = Infinity; //#22378 + $aload($get($_.curseq, $_.y)); //#22379 + var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22380 + $k[$j++] = _6r; //#22381 + $k[$j++] = $_.char; //#22381 + var _6t = $a(); //#22381 + var _6u = $k[--$j]; //#22382 + $put($k[--$j], _6u, _6t); //#22382 + } //#22382 + } //#22382 + } //#22382 + break; //#22387 + } //#22387 + } //#22387 + if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22451 + var _6y = $s(2); //#22394 + $put(_6y, 0, $_.lastchar); //#22394 + $put(_6y, 1, $_.char); //#22394 + $_.pchars = _6y; //#22394 + var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22395 + if (_73) { //#22450 + var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22396 + for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22449 + $_.i = $get(_79, _7A); //#22397 + $_.inP = true; //#22398 + if ($_.i == $_.M) { //#22403 + if ($_.lastchar == 13) { //#22400 + $_.inP = false; //#22400 + } //#22400 + } else { //#22403 + if ($_.i == $_.D) { //#22404 + if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22403 + $_.inP = false; //#22403 + } //#22403 + } //#22403 + } //#22403 + if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22448 + $_.curseqi = $get($_.curseq, $_.i); //#22407 + $_.lastld = false; //#22408 + $_.lastsp = false; //#22409 + $_.lastidx = -1; //#22410 + for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22431 + $_.idx = _7V; //#22412 + $_.ch = $get($_.curseqi, $_.idx); //#22413 + if ($_.lastidx == -1) { //#22428 + if ($eq($_.ch, $_.lastchar)) { //#22420 + $_.lastidx = $_.idx; //#22416 + if ($_.idx > 0) { //#22419 + if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22418 + $_.lastsp = true; //#22418 + } //#22418 + } //#22418 + } //#22418 + } else { //#22428 + if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22429 + if ($_.i == $_.P) { //#22426 + if ($_.ch == $_.ld) { //#22424 + $_.lastld = true; //#22424 + } //#22424 + } else { //#22426 + if ($_.ch != $_.lp) { //#22426 + $_.inP = $_.lastsp; //#22426 + } //#22426 + } //#22426 + break; //#22428 + } //#22428 + } //#22428 + } //#22428 + if ($_.inP && ($_.lastidx >= 0)) { //#22447 + $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22433 + if ($_.lastidx < ($_.curseqi.length - 1)) { //#22445 + if ($_.i == $_.P) { //#22442 + if ($_.lastld) { //#22436 + $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22436 + } //#22436 + $k[$j++] = $_.nxtseq; //#22438 + $k[$j++] = $_.i; //#22438 + $k[$j++] = Infinity; //#22438 + $aload($_.curseqi); //#22438 + $r($_.curseqi.length - $_.lastidx, -1); //#22438 + $j--; //#22438 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22438 + var _8H = $a(); //#22438 + var _8I = $k[--$j]; //#22438 + $put($k[--$j], _8I, _8H); //#22438 + } else { //#22442 + $k[$j++] = $_.nxtseq; //#22441 + $k[$j++] = $_.i; //#22441 + $k[$j++] = Infinity; //#22441 + $aload($_.curseqi); //#22441 + var _8N = $a(); //#22441 + var _8O = $k[--$j]; //#22441 + $put($k[--$j], _8O, _8N); //#22441 + $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22442 + } //#22442 + } else { //#22445 + $k[$j++] = $_.nxtseq; //#22445 + $k[$j++] = $_.i; //#22445 + $k[$j++] = Infinity; //#22445 + $aload($_.curseqi); //#22445 + $j--; //#22445 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22445 + var _8d = $a(); //#22445 + var _8e = $k[--$j]; //#22445 + $put($k[--$j], _8e, _8d); //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + if ($ne($get($_.nxtseq, $_.B), null)) { //#22460 + $_.numbytes = 0; //#22455 + $forall($get($_.nxtseq, $_.B), function() { //#22458 + if ($k[--$j] == $_.sb) { //#22457 + $k[$j++] = 0; //#22457 + } else { //#22457 + $k[$j++] = $_.numbytes + 1; //#22457 + } //#22457 + $_.numbytes = $k[--$j]; //#22457 + }); //#22457 + if ($_.numbytes == 32) { //#22459 + $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22459 + } //#22459 + } //#22459 + $_.curlen = $_.nxtlen; //#22462 + $_.curseq = $_.nxtseq; //#22463 + $k[$j++] = 'lastchar'; //#22464 + if ($_.char >= 0) { //#22464 + $k[$j++] = $_.char; //#22464 + } else { //#22464 + $k[$j++] = ""; //#22464 + } //#22464 + var _90 = $k[--$j]; //#22464 + $_[$k[--$j]] = _90; //#22464 + }); //#22464 + $_.minseq = $_.e; //#22469 + var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22470 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22476 + $_.i = $get(_99, _9A); //#22471 + if ($get($_.curlen, $_.i) < $_.minseq) { //#22475 + $_.minseq = $get($_.curlen, $_.i); //#22473 + $_.seq = $get($_.curseq, $_.i); //#22474 + } //#22474 + } //#22474 $_.tobin = function() { - var _9O = $s($k[--$j]); //#22188 - $k[$j++] = _9O; //#22188 - for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22188 - var _9R = $k[--$j]; //#22188 - $put(_9R, _9Q, 48); //#22188 - $k[$j++] = _9R; //#22188 - } //#22188 - var _9S = $k[--$j]; //#22189 - var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22189 - $puti(_9S, _9S.length - _9V.length, _9V); //#22189 - $k[$j++] = _9S; //#22189 - }; //#22189 + var _9O = $s($k[--$j]); //#22480 + $k[$j++] = _9O; //#22480 + for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22480 + var _9R = $k[--$j]; //#22480 + $put(_9R, _9Q, 48); //#22480 + $k[$j++] = _9R; //#22480 + } //#22480 + var _9S = $k[--$j]; //#22481 + var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22481 + $puti(_9S, _9S.length - _9V.length, _9V); //#22481 + $k[$j++] = _9S; //#22481 + }; //#22481 $_.encu = function() { - var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22192 - $k[$j++] = _9a; //#22192 - $k[$j++] = 5; //#22192 - $_.tobin(); //#22192 - }; //#22192 + var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22484 + $k[$j++] = _9a; //#22484 + $k[$j++] = 5; //#22484 + $_.tobin(); //#22484 + }; //#22484 $_.encl = function() { - var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22193 - $k[$j++] = _9f; //#22193 - $k[$j++] = 5; //#22193 - $_.tobin(); //#22193 - }; //#22193 + var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22485 + $k[$j++] = _9f; //#22485 + $k[$j++] = 5; //#22485 + $_.tobin(); //#22485 + }; //#22485 $_.encm = function() { - var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22194 - $k[$j++] = _9k; //#22194 - $k[$j++] = 5; //#22194 - $_.tobin(); //#22194 - }; //#22194 + var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22486 + $k[$j++] = _9k; //#22486 + $k[$j++] = 5; //#22486 + $_.tobin(); //#22486 + }; //#22486 $_.encd = function() { - var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22195 - $k[$j++] = _9p; //#22195 - $k[$j++] = 4; //#22195 - $_.tobin(); //#22195 - }; //#22195 + var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22487 + $k[$j++] = _9p; //#22487 + $k[$j++] = 4; //#22487 + $_.tobin(); //#22487 + }; //#22487 $_.encp = function() { - var _9q = $k[--$j]; //#22198 - $k[$j++] = _9q; //#22215 - if (_9q == $_.fn1) { //#22214 - $j--; //#22199 - $k[$j++] = "00000000"; //#22199 - } else { //#22214 - var _9s = $k[--$j]; //#22201 - $k[$j++] = _9s; //#22215 - if (_9s <= -1000000) { //#22214 - var _9u = $f((-$k[--$j]) - 1000000); //#22202 - $k[$j++] = _9u; //#22202 - $k[$j++] = _9u; //#22202 - if (_9u == 0) { //#22202 - $j--; //#22202 - $k[$j++] = 1; //#22202 - } //#22202 - var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22204 - var _9x = $s(((_9w + 1) * 4) + 8); //#22204 - $puti(_9x, 0, "00000"); //#22205 - $k[$j++] = _9w; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9w + 1; //#22206 - $k[$j++] = 3; //#22206 - $_.tobin(); //#22206 - var _9y = $k[--$j]; //#22206 - $puti($k[--$j], 5, _9y); //#22206 - var _A0 = $k[--$j]; //#22207 - var _A1 = $k[--$j]; //#22207 - var _A2 = $k[--$j]; //#22207 - $k[$j++] = _A0; //#22211 - $k[$j++] = _A2; //#22211 - for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22211 - var _A4 = $k[--$j]; //#22208 - var _A5 = $k[--$j]; //#22209 - $k[$j++] = _A5; //#22210 - $k[$j++] = ~~(_A4 / 10); //#22210 - $k[$j++] = _A5; //#22210 - $k[$j++] = (_A3 * 4) + 8; //#22210 - $k[$j++] = $f((_A4 % 10) + 2); //#22210 - $k[$j++] = 4; //#22210 - $_.tobin(); //#22210 - var _A6 = $k[--$j]; //#22210 - var _A7 = $k[--$j]; //#22210 - $puti($k[--$j], _A7, _A6); //#22210 - } //#22210 - $j--; //#22212 - } else { //#22214 - var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22214 - $k[$j++] = _AD; //#22214 - $k[$j++] = 5; //#22214 - $_.tobin(); //#22214 - } //#22214 - } //#22214 - }; //#22214 - $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22218 + var _9q = $k[--$j]; //#22490 + $k[$j++] = _9q; //#22507 + if (_9q == $_.fn1) { //#22506 + $j--; //#22491 + $k[$j++] = "00000000"; //#22491 + } else { //#22506 + var _9s = $k[--$j]; //#22493 + $k[$j++] = _9s; //#22507 + if (_9s <= -1000000) { //#22506 + var _9u = $f((-$k[--$j]) - 1000000); //#22494 + $k[$j++] = _9u; //#22494 + $k[$j++] = _9u; //#22494 + if (_9u == 0) { //#22494 + $j--; //#22494 + $k[$j++] = 1; //#22494 + } //#22494 + var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22496 + var _9x = $s(((_9w + 1) * 4) + 8); //#22496 + $puti(_9x, 0, "00000"); //#22497 + $k[$j++] = _9w; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9w + 1; //#22498 + $k[$j++] = 3; //#22498 + $_.tobin(); //#22498 + var _9y = $k[--$j]; //#22498 + $puti($k[--$j], 5, _9y); //#22498 + var _A0 = $k[--$j]; //#22499 + var _A1 = $k[--$j]; //#22499 + var _A2 = $k[--$j]; //#22499 + $k[$j++] = _A0; //#22503 + $k[$j++] = _A2; //#22503 + for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22503 + var _A4 = $k[--$j]; //#22500 + var _A5 = $k[--$j]; //#22501 + $k[$j++] = _A5; //#22502 + $k[$j++] = ~~(_A4 / 10); //#22502 + $k[$j++] = _A5; //#22502 + $k[$j++] = (_A3 * 4) + 8; //#22502 + $k[$j++] = $f((_A4 % 10) + 2); //#22502 + $k[$j++] = 4; //#22502 + $_.tobin(); //#22502 + var _A6 = $k[--$j]; //#22502 + var _A7 = $k[--$j]; //#22502 + $puti($k[--$j], _A7, _A6); //#22502 + } //#22502 + $j--; //#22504 + } else { //#22506 + var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22506 + $k[$j++] = _AD; //#22506 + $k[$j++] = 5; //#22506 + $_.tobin(); //#22506 + } //#22506 + } //#22506 + }; //#22506 + $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22510 $_.addtomsgbits = function() { - $_.v = $k[--$j]; //#22221 - $puti($_.msgbits, $_.j, $_.v); //#22222 - $_.j = $_.j + $_.v.length; //#22223 - }; //#22223 - $_.state = $_.U; //#22227 - $_.msgbits = $s($_.minseq); //#22228 - $_.i = 0; //#22229 - $_.j = 0; //#22229 - for (;;) { //#22288 - if ($_.i >= $_.seq.length) { //#22230 - break; //#22230 - } //#22230 - if ($_.state != $_.B) { //#22283 - $_.char = $get($_.seq, $_.i); //#22234 - $k[$j++] = $_.char; //#22237 + $_.v = $k[--$j]; //#22513 + $puti($_.msgbits, $_.j, $_.v); //#22514 + $_.j = $_.j + $_.v.length; //#22515 + }; //#22515 + $_.state = $_.U; //#22519 + $_.msgbits = $s($_.minseq); //#22520 + $_.i = 0; //#22521 + $_.j = 0; //#22521 + for (;;) { //#22580 + if ($_.i >= $_.seq.length) { //#22522 + break; //#22522 + } //#22522 + if ($_.state != $_.B) { //#22575 + $_.char = $get($_.seq, $_.i); //#22526 + $k[$j++] = $_.char; //#22529 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#22237 - $_.addtomsgbits(); //#22237 - $_.i = $_.i + 1; //#22238 - if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22244 - $k[$j++] = $get($_.seq, $_.i); //#22242 - if ($_.char == $_.su) { //#22242 - $_.encu(); //#22242 - } else { //#22242 - $_.encp(); //#22242 - } //#22242 - $_.addtomsgbits(); //#22242 - $_.i = $_.i + 1; //#22243 - } //#22243 - if ($_.char == $_.lu) { //#22247 - $_.state = $_.U; //#22247 - } //#22247 - if ($_.char == $_.ll) { //#22248 - $_.state = $_.L; //#22248 - } //#22248 - if ($_.char == $_.lm) { //#22249 - $_.state = $_.M; //#22249 - } //#22249 - if ($_.char == $_.lp) { //#22250 - $_.state = $_.P; //#22250 - } //#22250 - if ($_.char == $_.ld) { //#22251 - $_.state = $_.D; //#22251 - } //#22251 - if ($_.char == $_.sb) { //#22252 - $_.state = $_.B; //#22252 - } //#22252 - } else { //#22283 - $_.numbytes = 0; //#22257 - for (;;) { //#22261 - if (($_.i + $_.numbytes) >= $_.seq.length) { //#22258 - break; //#22258 - } //#22258 - if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22259 - break; //#22259 - } //#22259 - $_.numbytes = $_.numbytes + 1; //#22260 - } //#22260 - if ($_.numbytes <= 31) { //#22268 - $k[$j++] = $_.numbytes; //#22265 - $k[$j++] = 5; //#22265 - $_.tobin(); //#22265 - $_.addtomsgbits(); //#22265 - } else { //#22268 - $k[$j++] = 0; //#22267 - $k[$j++] = 5; //#22267 - $_.tobin(); //#22267 - $_.addtomsgbits(); //#22267 - $k[$j++] = $_.numbytes - 31; //#22268 - $k[$j++] = 11; //#22268 - $_.tobin(); //#22268 - $_.addtomsgbits(); //#22268 - } //#22268 - for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22275 - $k[$j++] = $get($_.seq, $_.i); //#22273 - $k[$j++] = 8; //#22273 - $_.tobin(); //#22273 - $_.addtomsgbits(); //#22273 - $_.i = $_.i + 1; //#22274 - } //#22274 - if ($_.i < $_.seq.length) { //#22284 - $_.char = $get($_.seq, $_.i); //#22279 - $_.i = $_.i + 1; //#22280 - if ($_.char == $_.lu) { //#22281 - $_.state = $_.U; //#22281 - } //#22281 - if ($_.char == $_.ll) { //#22282 - $_.state = $_.L; //#22282 - } //#22282 - if ($_.char == $_.lm) { //#22283 - $_.state = $_.M; //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - if (!bwipp_azteccode.__22309__) { //#22309 - $_ = Object.create($_); //#22309 - $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22308 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22308 - bwipp_azteccode.__22309__ = 1; //#22308 - $_ = Object.getPrototypeOf($_); //#22308 - } //#22308 - var _CD = $_.metrics; //#22311 - for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22327 - $_.m = $get(_CD, _CE); //#22312 - $_.frmt = $get($_.m, 0); //#22313 - $_.mlyr = $get($_.m, 1); //#22314 - $_.icap = $get($_.m, 2); //#22315 - $_.ncws = $get($_.m, 3); //#22316 - $_.bpcw = $get($_.m, 4); //#22317 - $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22318 - if ($_.msgbits.length == 0) { //#22319 - $_.numecw = 0; //#22319 - } //#22319 - $_.numdcw = $f($_.ncws - $_.numecw); //#22320 - $_.okay = true; //#22321 - if ($ne($_.format, $_.frmt)) { //#22322 - $_.okay = false; //#22322 - } //#22322 - if ($_.readerinit && ($_.icap != 1)) { //#22323 - $_.okay = false; //#22323 - } //#22323 - if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22324 - $_.okay = false; //#22324 - } //#22324 - if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22325 - $_.okay = false; //#22325 - } //#22325 - if ($_.okay) { //#22326 - break; //#22326 - } //#22326 - } //#22326 - if (!$_.okay) { //#22331 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#22330'; //#22330 - $k[$j++] = "Maximum length exceeded"; //#22330 - bwipp_raiseerror(); //#22330 - } //#22330 - $_.layers = $_.mlyr; //#22333 + } //#22529 + $_.addtomsgbits(); //#22529 + $_.i = $_.i + 1; //#22530 + if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22536 + $k[$j++] = $get($_.seq, $_.i); //#22534 + if ($_.char == $_.su) { //#22534 + $_.encu(); //#22534 + } else { //#22534 + $_.encp(); //#22534 + } //#22534 + $_.addtomsgbits(); //#22534 + $_.i = $_.i + 1; //#22535 + } //#22535 + if ($_.char == $_.lu) { //#22539 + $_.state = $_.U; //#22539 + } //#22539 + if ($_.char == $_.ll) { //#22540 + $_.state = $_.L; //#22540 + } //#22540 + if ($_.char == $_.lm) { //#22541 + $_.state = $_.M; //#22541 + } //#22541 + if ($_.char == $_.lp) { //#22542 + $_.state = $_.P; //#22542 + } //#22542 + if ($_.char == $_.ld) { //#22543 + $_.state = $_.D; //#22543 + } //#22543 + if ($_.char == $_.sb) { //#22544 + $_.state = $_.B; //#22544 + } //#22544 + } else { //#22575 + $_.numbytes = 0; //#22549 + for (;;) { //#22553 + if (($_.i + $_.numbytes) >= $_.seq.length) { //#22550 + break; //#22550 + } //#22550 + if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22551 + break; //#22551 + } //#22551 + $_.numbytes = $_.numbytes + 1; //#22552 + } //#22552 + if ($_.numbytes <= 31) { //#22560 + $k[$j++] = $_.numbytes; //#22557 + $k[$j++] = 5; //#22557 + $_.tobin(); //#22557 + $_.addtomsgbits(); //#22557 + } else { //#22560 + $k[$j++] = 0; //#22559 + $k[$j++] = 5; //#22559 + $_.tobin(); //#22559 + $_.addtomsgbits(); //#22559 + $k[$j++] = $_.numbytes - 31; //#22560 + $k[$j++] = 11; //#22560 + $_.tobin(); //#22560 + $_.addtomsgbits(); //#22560 + } //#22560 + for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22567 + $k[$j++] = $get($_.seq, $_.i); //#22565 + $k[$j++] = 8; //#22565 + $_.tobin(); //#22565 + $_.addtomsgbits(); //#22565 + $_.i = $_.i + 1; //#22566 + } //#22566 + if ($_.i < $_.seq.length) { //#22576 + $_.char = $get($_.seq, $_.i); //#22571 + $_.i = $_.i + 1; //#22572 + if ($_.char == $_.lu) { //#22573 + $_.state = $_.U; //#22573 + } //#22573 + if ($_.char == $_.ll) { //#22574 + $_.state = $_.L; //#22574 + } //#22574 + if ($_.char == $_.lm) { //#22575 + $_.state = $_.M; //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + if (!bwipp_azteccode.__22601__) { //#22601 + $_ = Object.create($_); //#22601 + $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22600 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22600 + bwipp_azteccode.__22601__ = 1; //#22600 + $_ = Object.getPrototypeOf($_); //#22600 + } //#22600 + var _CD = $_.metrics; //#22603 + for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22619 + $_.m = $get(_CD, _CE); //#22604 + $_.frmt = $get($_.m, 0); //#22605 + $_.mlyr = $get($_.m, 1); //#22606 + $_.icap = $get($_.m, 2); //#22607 + $_.ncws = $get($_.m, 3); //#22608 + $_.bpcw = $get($_.m, 4); //#22609 + $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22610 + if ($_.msgbits.length == 0) { //#22611 + $_.numecw = 0; //#22611 + } //#22611 + $_.numdcw = $f($_.ncws - $_.numecw); //#22612 + $_.okay = true; //#22613 + if ($ne($_.format, $_.frmt)) { //#22614 + $_.okay = false; //#22614 + } //#22614 + if ($_.readerinit && ($_.icap != 1)) { //#22615 + $_.okay = false; //#22615 + } //#22615 + if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22616 + $_.okay = false; //#22616 + } //#22616 + if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22617 + $_.okay = false; //#22617 + } //#22617 + if ($_.okay) { //#22618 + break; //#22618 + } //#22618 + } //#22618 + if (!$_.okay) { //#22623 + $k[$j++] = 'bwipp.azteccodeNoValidSymbol#22622'; //#22622 + $k[$j++] = "Maximum length exceeded"; //#22622 + bwipp_raiseerror(); //#22622 + } //#22622 + $_.layers = $_.mlyr; //#22625 $_.allzero = function() { - var _Ck = $k[--$j]; //#22336 - $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22336 - }; //#22336 + var _Ck = $k[--$j]; //#22628 + $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22628 + }; //#22628 $_.allones = function() { - var _Cm = $k[--$j]; //#22337 - $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22337 - }; //#22337 - $_.cws = $a($_.ncws); //#22338 - $_.m = 0; //#22339 - $_.c = 0; //#22339 - for (;;) { //#22366 - if ($_.msgbits.length <= $_.m) { //#22341 - break; //#22341 - } //#22341 - if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22343 - $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22344 - $k[$j++] = $_.cwb; //#22345 - $_.allzero(); //#22345 - if ($k[--$j]) { //#22345 - $_.cwf = "1"; //#22345 - $_.m = $_.m - 1; //#22345 - } //#22345 - $k[$j++] = $_.cwb; //#22346 - $_.allones(); //#22346 - if ($k[--$j]) { //#22346 - $_.cwf = "0"; //#22346 - $_.m = $_.m - 1; //#22346 - } //#22346 - var _D9 = $s(12); //#22348 - $puti(_D9, 0, $_.cwb); //#22348 - $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22349 - $_.cwb = $geti(_D9, 0, $_.bpcw); //#22351 - } else { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22353 - var _DL = $strcpy($s(12), "111111111111"); //#22354 - $puti(_DL, 0, $_.cwb); //#22354 - $_.cwb = $geti(_DL, 0, $_.bpcw); //#22354 - $k[$j++] = $_.cwb; //#22355 - $_.allones(); //#22355 - if ($k[--$j]) { //#22355 - $puti($_.cwb, $_.cwb.length - 1, "0"); //#22355 - } //#22355 - } //#22355 - $_.cw = 0; //#22358 - for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22362 - $_.i = _DV; //#22360 - $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22361 - } //#22361 - $put($_.cws, $_.c, $_.cw); //#22363 - $_.m = $f($_.m + $_.bpcw); //#22364 - $_.c = $_.c + 1; //#22365 - } //#22365 - $_.cws = $geti($_.cws, 0, $_.c); //#22367 - var _Dm = $get($_.options, 'debugcws') !== undefined; //#22369 - if (_Dm) { //#22369 - $k[$j++] = 'bwipp.debugcws#22369'; //#22369 - $k[$j++] = $_.cws; //#22369 - bwipp_raiseerror(); //#22369 - } //#22369 + var _Cm = $k[--$j]; //#22629 + $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22629 + }; //#22629 + $_.cws = $a($_.ncws); //#22630 + $_.m = 0; //#22631 + $_.c = 0; //#22631 + for (;;) { //#22658 + if ($_.msgbits.length <= $_.m) { //#22633 + break; //#22633 + } //#22633 + if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22635 + $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22636 + $k[$j++] = $_.cwb; //#22637 + $_.allzero(); //#22637 + if ($k[--$j]) { //#22637 + $_.cwf = "1"; //#22637 + $_.m = $_.m - 1; //#22637 + } //#22637 + $k[$j++] = $_.cwb; //#22638 + $_.allones(); //#22638 + if ($k[--$j]) { //#22638 + $_.cwf = "0"; //#22638 + $_.m = $_.m - 1; //#22638 + } //#22638 + var _D9 = $s(12); //#22640 + $puti(_D9, 0, $_.cwb); //#22640 + $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22641 + $_.cwb = $geti(_D9, 0, $_.bpcw); //#22643 + } else { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22645 + var _DL = $strcpy($s(12), "111111111111"); //#22646 + $puti(_DL, 0, $_.cwb); //#22646 + $_.cwb = $geti(_DL, 0, $_.bpcw); //#22646 + $k[$j++] = $_.cwb; //#22647 + $_.allones(); //#22647 + if ($k[--$j]) { //#22647 + $puti($_.cwb, $_.cwb.length - 1, "0"); //#22647 + } //#22647 + } //#22647 + $_.cw = 0; //#22650 + for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22654 + $_.i = _DV; //#22652 + $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22653 + } //#22653 + $put($_.cws, $_.c, $_.cw); //#22655 + $_.m = $f($_.m + $_.bpcw); //#22656 + $_.c = $_.c + 1; //#22657 + } //#22657 + $_.cws = $geti($_.cws, 0, $_.c); //#22659 + var _Dm = $get($_.options, 'debugcws') !== undefined; //#22661 + if (_Dm) { //#22661 + $k[$j++] = 'bwipp.debugcws#22661'; //#22661 + $k[$j++] = $_.cws; //#22661 + bwipp_raiseerror(); //#22661 + } //#22661 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#22374 - $_.rsgf = $k[--$j]; //#22375 - $_.rsnc = $k[--$j]; //#22376 - $_.rscws = $k[--$j]; //#22377 - $k[$j++] = Infinity; //#22380 - $k[$j++] = 1; //#22380 - for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22380 - var _Dv = $k[--$j]; //#22380 - var _Dw = _Dv * 2; //#22380 - $k[$j++] = _Dv; //#22380 - $k[$j++] = _Dw; //#22380 - if (_Dw >= $_.rsgf) { //#22380 - var _Dz = $k[--$j]; //#22380 - $k[$j++] = $xo(_Dz, $_.rspm); //#22380 - } //#22380 - } //#22380 - $_.rsalog = $a(); //#22380 - $_.rslog = $a($_.rsgf); //#22381 - for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22382 - $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22382 - } //#22382 + $_.rspm = $k[--$j]; //#22666 + $_.rsgf = $k[--$j]; //#22667 + $_.rsnc = $k[--$j]; //#22668 + $_.rscws = $k[--$j]; //#22669 + $k[$j++] = Infinity; //#22672 + $k[$j++] = 1; //#22672 + for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22672 + var _Dv = $k[--$j]; //#22672 + var _Dw = _Dv * 2; //#22672 + $k[$j++] = _Dv; //#22672 + $k[$j++] = _Dw; //#22672 + if (_Dw >= $_.rsgf) { //#22672 + var _Dz = $k[--$j]; //#22672 + $k[$j++] = $xo(_Dz, $_.rspm); //#22672 + } //#22672 + } //#22672 + $_.rsalog = $a(); //#22672 + $_.rslog = $a($_.rsgf); //#22673 + for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22674 + $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22674 + } //#22674 $_.rsprod = function() { - var _E9 = $k[--$j]; //#22386 - var _EA = $k[--$j]; //#22386 - $k[$j++] = _EA; //#22390 - $k[$j++] = _E9; //#22390 - if ((_E9 != 0) && (_EA != 0)) { //#22389 - var _ED = $get($_.rslog, $k[--$j]); //#22387 - var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22387 - $k[$j++] = _EJ; //#22387 - } else { //#22389 - $j -= 2; //#22389 - $k[$j++] = 0; //#22389 - } //#22389 - }; //#22389 - $k[$j++] = Infinity; //#22394 - $k[$j++] = 1; //#22394 - for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22394 - $k[$j++] = 0; //#22394 - } //#22394 - $_.coeffs = $a(); //#22394 - for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22403 - $_.i = _EQ; //#22396 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22397 - for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22401 - $_.j = _EX; //#22399 - $k[$j++] = $_.coeffs; //#22400 - $k[$j++] = $_.j; //#22400 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#22400 - $k[$j++] = $get($_.coeffs, $_.j); //#22400 - $k[$j++] = $get($_.rsalog, $_.i); //#22400 - $_.rsprod(); //#22400 - var _Ej = $k[--$j]; //#22400 - var _Ek = $k[--$j]; //#22400 - var _El = $k[--$j]; //#22400 - $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22400 - } //#22400 - $k[$j++] = $_.coeffs; //#22402 - $k[$j++] = 0; //#22402 - $k[$j++] = $get($_.coeffs, 0); //#22402 - $k[$j++] = $get($_.rsalog, $_.i); //#22402 - $_.rsprod(); //#22402 - var _Et = $k[--$j]; //#22402 - var _Eu = $k[--$j]; //#22402 - $put($k[--$j], _Eu, _Et); //#22402 - } //#22402 - $_.nd = $_.rscws.length; //#22406 - $k[$j++] = Infinity; //#22407 - $forall($_.rscws); //#22407 - for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22407 - $k[$j++] = 0; //#22407 - } //#22407 - $k[$j++] = 0; //#22407 - $_.rscws = $a(); //#22407 - for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22414 - $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22409 - for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22413 - $_.j = _FC; //#22411 - $k[$j++] = $_.rscws; //#22412 - $k[$j++] = $_.nd + $_.j; //#22412 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22412 - $k[$j++] = $_.k; //#22412 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22412 - $_.rsprod(); //#22412 - var _FP = $k[--$j]; //#22412 - var _FQ = $k[--$j]; //#22412 - var _FR = $k[--$j]; //#22412 - $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22412 - } //#22412 - } //#22412 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22417 - }; //#22417 - if ($eq($_.format, "full")) { //#22432 - $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22423 - if ($_.readerinit) { //#22424 - $_.mode = $_.mode | 1024; //#22424 - } //#22424 - $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22430 - $k[$j++] = 'mode'; //#22431 - $k[$j++] = $_.mode; //#22431 - $k[$j++] = 6; //#22431 - $k[$j++] = 16; //#22431 - $k[$j++] = 19; //#22431 - $_.rscodes(); //#22431 - var _Fh = $k[--$j]; //#22431 - $_[$k[--$j]] = _Fh; //#22431 - } //#22431 - if ($eq($_.format, "compact")) { //#22441 - $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22434 - if ($_.readerinit) { //#22435 - $_.mode = $_.mode | 32; //#22435 - } //#22435 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22439 - $k[$j++] = 'mode'; //#22440 - $k[$j++] = $_.mode; //#22440 - $k[$j++] = 5; //#22440 - $k[$j++] = 16; //#22440 - $k[$j++] = 19; //#22440 - $_.rscodes(); //#22440 - var _Fs = $k[--$j]; //#22440 - $_[$k[--$j]] = _Fs; //#22440 - } //#22440 - if ($eq($_.format, "rune")) { //#22450 - $_.mode = $cvi($_.barcode); //#22443 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22447 - $k[$j++] = 'mode'; //#22448 - $k[$j++] = $_.mode; //#22448 - $k[$j++] = 5; //#22448 - $k[$j++] = 16; //#22448 - $k[$j++] = 19; //#22448 - $_.rscodes(); //#22448 - var _G0 = $k[--$j]; //#22448 - $_[$k[--$j]] = _G0; //#22448 - $k[$j++] = Infinity; //#22449 - var _G2 = $_.mode; //#22449 - for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22449 - $k[$j++] = $get(_G2, _G3) ^ 10; //#22449 - } //#22449 - $_.mode = $a(); //#22449 - } //#22449 - $_.modebits = $s($_.mode.length * 4); //#22451 - for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22452 - $puti($_.modebits, _GB, "0"); //#22452 - } //#22452 - for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22456 - $_.i = _GF; //#22454 - var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22455 - $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22455 - } //#22455 - if (!bwipp_azteccode.__22470__) { //#22470 - $_ = Object.create($_); //#22470 - $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22469 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22469 - bwipp_azteccode.__22470__ = 1; //#22469 - $_ = Object.getPrototypeOf($_); //#22469 - } //#22469 - $k[$j++] = 'cws'; //#22471 - $k[$j++] = $_.cws; //#22471 - $k[$j++] = $f($_.ncws - $_.cws.length); //#22471 - $forall($get($_.rsparams, $_.bpcw)); //#22471 - $_.rscodes(); //#22471 - var _Gi = $k[--$j]; //#22471 - $_[$k[--$j]] = _Gi; //#22471 - if ($eq($_.format, "full")) { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22473 - } else { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22475 - } //#22475 - for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22477 - $puti($_.databits, _Gv, "0"); //#22477 - } //#22477 - for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22483 - $_.i = _Gz; //#22479 - var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22480 - $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22482 - } //#22482 + var _E9 = $k[--$j]; //#22678 + var _EA = $k[--$j]; //#22678 + $k[$j++] = _EA; //#22682 + $k[$j++] = _E9; //#22682 + if ((_E9 != 0) && (_EA != 0)) { //#22681 + var _ED = $get($_.rslog, $k[--$j]); //#22679 + var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22679 + $k[$j++] = _EJ; //#22679 + } else { //#22681 + $j -= 2; //#22681 + $k[$j++] = 0; //#22681 + } //#22681 + }; //#22681 + $k[$j++] = Infinity; //#22686 + $k[$j++] = 1; //#22686 + for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22686 + $k[$j++] = 0; //#22686 + } //#22686 + $_.coeffs = $a(); //#22686 + for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22695 + $_.i = _EQ; //#22688 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22689 + for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22693 + $_.j = _EX; //#22691 + $k[$j++] = $_.coeffs; //#22692 + $k[$j++] = $_.j; //#22692 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#22692 + $k[$j++] = $get($_.coeffs, $_.j); //#22692 + $k[$j++] = $get($_.rsalog, $_.i); //#22692 + $_.rsprod(); //#22692 + var _Ej = $k[--$j]; //#22692 + var _Ek = $k[--$j]; //#22692 + var _El = $k[--$j]; //#22692 + $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22692 + } //#22692 + $k[$j++] = $_.coeffs; //#22694 + $k[$j++] = 0; //#22694 + $k[$j++] = $get($_.coeffs, 0); //#22694 + $k[$j++] = $get($_.rsalog, $_.i); //#22694 + $_.rsprod(); //#22694 + var _Et = $k[--$j]; //#22694 + var _Eu = $k[--$j]; //#22694 + $put($k[--$j], _Eu, _Et); //#22694 + } //#22694 + $_.nd = $_.rscws.length; //#22698 + $k[$j++] = Infinity; //#22699 + $forall($_.rscws); //#22699 + for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22699 + $k[$j++] = 0; //#22699 + } //#22699 + $k[$j++] = 0; //#22699 + $_.rscws = $a(); //#22699 + for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22706 + $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22701 + for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22705 + $_.j = _FC; //#22703 + $k[$j++] = $_.rscws; //#22704 + $k[$j++] = $_.nd + $_.j; //#22704 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22704 + $k[$j++] = $_.k; //#22704 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22704 + $_.rsprod(); //#22704 + var _FP = $k[--$j]; //#22704 + var _FQ = $k[--$j]; //#22704 + var _FR = $k[--$j]; //#22704 + $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22704 + } //#22704 + } //#22704 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22709 + }; //#22709 + if ($eq($_.format, "full")) { //#22724 + $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22715 + if ($_.readerinit) { //#22716 + $_.mode = $_.mode | 1024; //#22716 + } //#22716 + $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22722 + $k[$j++] = 'mode'; //#22723 + $k[$j++] = $_.mode; //#22723 + $k[$j++] = 6; //#22723 + $k[$j++] = 16; //#22723 + $k[$j++] = 19; //#22723 + $_.rscodes(); //#22723 + var _Fh = $k[--$j]; //#22723 + $_[$k[--$j]] = _Fh; //#22723 + } //#22723 + if ($eq($_.format, "compact")) { //#22733 + $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22726 + if ($_.readerinit) { //#22727 + $_.mode = $_.mode | 32; //#22727 + } //#22727 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22731 + $k[$j++] = 'mode'; //#22732 + $k[$j++] = $_.mode; //#22732 + $k[$j++] = 5; //#22732 + $k[$j++] = 16; //#22732 + $k[$j++] = 19; //#22732 + $_.rscodes(); //#22732 + var _Fs = $k[--$j]; //#22732 + $_[$k[--$j]] = _Fs; //#22732 + } //#22732 + if ($eq($_.format, "rune")) { //#22742 + $_.mode = $cvi($_.barcode); //#22735 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22739 + $k[$j++] = 'mode'; //#22740 + $k[$j++] = $_.mode; //#22740 + $k[$j++] = 5; //#22740 + $k[$j++] = 16; //#22740 + $k[$j++] = 19; //#22740 + $_.rscodes(); //#22740 + var _G0 = $k[--$j]; //#22740 + $_[$k[--$j]] = _G0; //#22740 + $k[$j++] = Infinity; //#22741 + var _G2 = $_.mode; //#22741 + for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22741 + $k[$j++] = $get(_G2, _G3) ^ 10; //#22741 + } //#22741 + $_.mode = $a(); //#22741 + } //#22741 + $_.modebits = $s($_.mode.length * 4); //#22743 + for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22744 + $puti($_.modebits, _GB, "0"); //#22744 + } //#22744 + for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22748 + $_.i = _GF; //#22746 + var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22747 + $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22747 + } //#22747 + if (!bwipp_azteccode.__22762__) { //#22762 + $_ = Object.create($_); //#22762 + $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22761 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22761 + bwipp_azteccode.__22762__ = 1; //#22761 + $_ = Object.getPrototypeOf($_); //#22761 + } //#22761 + $k[$j++] = 'cws'; //#22763 + $k[$j++] = $_.cws; //#22763 + $k[$j++] = $f($_.ncws - $_.cws.length); //#22763 + $forall($get($_.rsparams, $_.bpcw)); //#22763 + $_.rscodes(); //#22763 + var _Gi = $k[--$j]; //#22763 + $_[$k[--$j]] = _Gi; //#22763 + if ($eq($_.format, "full")) { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22765 + } else { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22767 + } //#22767 + for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22769 + $puti($_.databits, _Gv, "0"); //#22769 + } //#22769 + for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22775 + $_.i = _Gz; //#22771 + var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22772 + $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22774 + } //#22774 $_.cmv = function() { - var _HE = $k[--$j]; //#22486 - var _HF = $k[--$j]; //#22486 - $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22486 - }; //#22486 + var _HE = $k[--$j]; //#22778 + var _HF = $k[--$j]; //#22778 + $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22778 + }; //#22778 $_.lmv = function() { - $_.lbit = $k[--$j]; //#22490 - $_.llyr = $k[--$j]; //#22491 - $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22492 - $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22493 - if ($_.ldir == 0) { //#22498 - $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22497 - $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22497 - $_.cmv(); //#22497 - } //#22497 - if ($_.ldir == 1) { //#22503 - $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22502 - $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22502 - $_.cmv(); //#22502 - } //#22502 - if ($_.ldir == 2) { //#22508 - $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22507 - $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22507 - $_.cmv(); //#22507 - } //#22507 - if ($_.ldir == 3) { //#22513 - $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22512 - $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22512 - $_.cmv(); //#22512 - } //#22512 - }; //#22512 - if ($eq($_.format, "full")) { //#22518 - $_.fw = 12; //#22518 - } else { //#22518 - $_.fw = 9; //#22518 - } //#22518 - $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22519 - $k[$j++] = Infinity; //#22520 - for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22520 - $k[$j++] = -1; //#22520 - } //#22520 - $_.pixs = $a(); //#22520 - $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22521 - $_.i = 0; //#22524 - for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22532 - $_.layer = _I2; //#22526 - for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22531 - $_.pos = _I6; //#22528 - $k[$j++] = $_.pixs; //#22529 - $k[$j++] = $_.layer; //#22529 - $k[$j++] = $_.pos; //#22529 - $_.lmv(); //#22529 - var _IE = $k[--$j]; //#22529 - $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22529 - $_.i = $_.i + 1; //#22530 - } //#22530 - } //#22530 - if ($eq($_.format, "full")) { //#22559 - $_.fw = 13; //#22536 - $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22537 - $_.mid = ~~(($_.size * $_.size) / 2); //#22538 - $k[$j++] = Infinity; //#22539 - for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22539 - $k[$j++] = -2; //#22539 - } //#22539 - $_.npixs = $a(); //#22539 - for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22549 - $_.i = _IU; //#22541 - for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22548 - $_.j = _IX; //#22543 - $k[$j++] = $_.npixs; //#22544 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22544 - $k[$j++] = $_.i; //#22544 - $_.cmv(); //#22544 - var _Ig = $k[--$j]; //#22544 - $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22544 - $k[$j++] = $_.npixs; //#22545 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22545 - $k[$j++] = -$_.i; //#22545 - $_.cmv(); //#22545 - var _Iq = $k[--$j]; //#22545 - $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22545 - $k[$j++] = $_.npixs; //#22546 - $k[$j++] = $_.i; //#22546 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22546 - $_.cmv(); //#22546 - var _J0 = $k[--$j]; //#22546 - $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22546 - $k[$j++] = $_.npixs; //#22547 - $k[$j++] = -$_.i; //#22547 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22547 - $_.cmv(); //#22547 - var _JA = $k[--$j]; //#22547 - $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22547 - } //#22547 - } //#22547 - $_.j = 0; //#22550 - for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22557 - $_.i = _JE; //#22552 - if ($get($_.npixs, $_.i) == -2) { //#22556 - $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22554 - $_.j = $_.j + 1; //#22555 - } //#22555 - } //#22555 - $_.pixs = $_.npixs; //#22558 - } //#22558 - $_.fw = ~~($_.fw / 2); //#22562 - for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22571 - $_.i = _JT; //#22564 - for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22570 - $_.j = _JX; //#22566 - $k[$j++] = $_.pixs; //#22567 - $k[$j++] = $_.i; //#22567 - $k[$j++] = $_.j; //#22567 - $_.cmv(); //#22567 - if (Math.abs($_.i) > Math.abs($_.j)) { //#22568 - $k[$j++] = Math.abs($_.i); //#22568 - } else { //#22568 - $k[$j++] = Math.abs($_.j); //#22568 - } //#22568 - var _Jf = $k[--$j]; //#22568 - var _Jg = $k[--$j]; //#22569 - $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22569 - } //#22569 - } //#22569 - var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22579 - for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22580 - $k[$j++] = $_.pixs; //#22580 - $forall($get(_KI, _KJ)); //#22580 - var _KN = $k[--$j]; //#22580 - var _KO = $k[--$j]; //#22580 - var _KP = $k[--$j]; //#22580 - $k[$j++] = _KN; //#22580 - $k[$j++] = _KP; //#22580 - $k[$j++] = _KO; //#22580 - $_.cmv(); //#22580 - var _KQ = $k[--$j]; //#22580 - var _KR = $k[--$j]; //#22580 - $put($k[--$j], _KQ, _KR); //#22580 - } //#22580 - if (!bwipp_azteccode.__22596__) { //#22596 - $_ = Object.create($_); //#22596 - $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22589 - $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22595 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22595 - bwipp_azteccode.__22596__ = 1; //#22595 - $_ = Object.getPrototypeOf($_); //#22595 - } //#22595 - $k[$j++] = 'modemap'; //#22597 - if ($eq($_.format, "full")) { //#22597 - $k[$j++] = $_.modemapfull; //#22597 - } else { //#22597 - $k[$j++] = $_.modemapcompact; //#22597 - } //#22597 - var _Lf = $k[--$j]; //#22597 - $_[$k[--$j]] = _Lf; //#22597 - for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22601 - $_.i = _Lj; //#22599 - $k[$j++] = $_.pixs; //#22600 - $forall($get($_.modemap, $_.i)); //#22600 - $_.cmv(); //#22600 - var _Lr = $k[--$j]; //#22600 - $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22600 - } //#22600 + $_.lbit = $k[--$j]; //#22782 + $_.llyr = $k[--$j]; //#22783 + $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22784 + $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22785 + if ($_.ldir == 0) { //#22790 + $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22789 + $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22789 + $_.cmv(); //#22789 + } //#22789 + if ($_.ldir == 1) { //#22795 + $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22794 + $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22794 + $_.cmv(); //#22794 + } //#22794 + if ($_.ldir == 2) { //#22800 + $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22799 + $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22799 + $_.cmv(); //#22799 + } //#22799 + if ($_.ldir == 3) { //#22805 + $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22804 + $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22804 + $_.cmv(); //#22804 + } //#22804 + }; //#22804 + if ($eq($_.format, "full")) { //#22810 + $_.fw = 12; //#22810 + } else { //#22810 + $_.fw = 9; //#22810 + } //#22810 + $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22811 + $k[$j++] = Infinity; //#22812 + for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22812 + $k[$j++] = -1; //#22812 + } //#22812 + $_.pixs = $a(); //#22812 + $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22813 + $_.i = 0; //#22816 + for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22824 + $_.layer = _I2; //#22818 + for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22823 + $_.pos = _I6; //#22820 + $k[$j++] = $_.pixs; //#22821 + $k[$j++] = $_.layer; //#22821 + $k[$j++] = $_.pos; //#22821 + $_.lmv(); //#22821 + var _IE = $k[--$j]; //#22821 + $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22821 + $_.i = $_.i + 1; //#22822 + } //#22822 + } //#22822 + if ($eq($_.format, "full")) { //#22851 + $_.fw = 13; //#22828 + $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22829 + $_.mid = ~~(($_.size * $_.size) / 2); //#22830 + $k[$j++] = Infinity; //#22831 + for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22831 + $k[$j++] = -2; //#22831 + } //#22831 + $_.npixs = $a(); //#22831 + for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22841 + $_.i = _IU; //#22833 + for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22840 + $_.j = _IX; //#22835 + $k[$j++] = $_.npixs; //#22836 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22836 + $k[$j++] = $_.i; //#22836 + $_.cmv(); //#22836 + var _Ig = $k[--$j]; //#22836 + $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22836 + $k[$j++] = $_.npixs; //#22837 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22837 + $k[$j++] = -$_.i; //#22837 + $_.cmv(); //#22837 + var _Iq = $k[--$j]; //#22837 + $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22837 + $k[$j++] = $_.npixs; //#22838 + $k[$j++] = $_.i; //#22838 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22838 + $_.cmv(); //#22838 + var _J0 = $k[--$j]; //#22838 + $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22838 + $k[$j++] = $_.npixs; //#22839 + $k[$j++] = -$_.i; //#22839 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22839 + $_.cmv(); //#22839 + var _JA = $k[--$j]; //#22839 + $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22839 + } //#22839 + } //#22839 + $_.j = 0; //#22842 + for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22849 + $_.i = _JE; //#22844 + if ($get($_.npixs, $_.i) == -2) { //#22848 + $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22846 + $_.j = $_.j + 1; //#22847 + } //#22847 + } //#22847 + $_.pixs = $_.npixs; //#22850 + } //#22850 + $_.fw = ~~($_.fw / 2); //#22854 + for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22863 + $_.i = _JT; //#22856 + for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22862 + $_.j = _JX; //#22858 + $k[$j++] = $_.pixs; //#22859 + $k[$j++] = $_.i; //#22859 + $k[$j++] = $_.j; //#22859 + $_.cmv(); //#22859 + if (Math.abs($_.i) > Math.abs($_.j)) { //#22860 + $k[$j++] = Math.abs($_.i); //#22860 + } else { //#22860 + $k[$j++] = Math.abs($_.j); //#22860 + } //#22860 + var _Jf = $k[--$j]; //#22860 + var _Jg = $k[--$j]; //#22861 + $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22861 + } //#22861 + } //#22861 + var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22871 + for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22872 + $k[$j++] = $_.pixs; //#22872 + $forall($get(_KI, _KJ)); //#22872 + var _KN = $k[--$j]; //#22872 + var _KO = $k[--$j]; //#22872 + var _KP = $k[--$j]; //#22872 + $k[$j++] = _KN; //#22872 + $k[$j++] = _KP; //#22872 + $k[$j++] = _KO; //#22872 + $_.cmv(); //#22872 + var _KQ = $k[--$j]; //#22872 + var _KR = $k[--$j]; //#22872 + $put($k[--$j], _KQ, _KR); //#22872 + } //#22872 + if (!bwipp_azteccode.__22888__) { //#22888 + $_ = Object.create($_); //#22888 + $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22881 + $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22887 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22887 + bwipp_azteccode.__22888__ = 1; //#22887 + $_ = Object.getPrototypeOf($_); //#22887 + } //#22887 + $k[$j++] = 'modemap'; //#22889 + if ($eq($_.format, "full")) { //#22889 + $k[$j++] = $_.modemapfull; //#22889 + } else { //#22889 + $k[$j++] = $_.modemapcompact; //#22889 + } //#22889 + var _Lf = $k[--$j]; //#22889 + $_[$k[--$j]] = _Lf; //#22889 + for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22893 + $_.i = _Lj; //#22891 + $k[$j++] = $_.pixs; //#22892 + $forall($get($_.modemap, $_.i)); //#22892 + $_.cmv(); //#22892 + var _Lr = $k[--$j]; //#22892 + $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22892 + } //#22892 var _Lz = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -27946,1730 +28389,1728 @@ function bwipp_azteccode() { ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], ["opt", $_.options] - ]); //#22610 - $k[$j++] = _Lz; //#22613 - if (!$_.dontdraw) { //#22613 - bwipp_renmatrix(); //#22613 - } //#22613 - $_ = Object.getPrototypeOf($_); //#22615 - $_ = Object.getPrototypeOf($_); //#22617 -} - + ]); //#22902 + $k[$j++] = _Lz; //#22905 + if (!$_.dontdraw) { //#22905 + bwipp_renmatrix(); //#22905 + } //#22905 + $_ = Object.getPrototypeOf($_); //#22907 + $_ = Object.getPrototypeOf($_); //#22909 +} //bwipp_azteccode function bwipp_azteccodecompact() { - $_ = Object.create($_); //#22646 - $_.dontdraw = false; //#22649 - $k[$j++] = $_; //#22651 - bwipp_processoptions(); //#22651 - $_.options = $k[--$j]; //#22651 - $_.barcode = $k[--$j]; //#22652 - $put($_.options, "dontdraw", true); //#22655 - $put($_.options, "format", "compact"); //#22656 - $k[$j++] = 'args'; //#22658 - $k[$j++] = $_.barcode; //#22658 - $k[$j++] = $_.options; //#22658 - bwipp_azteccode(); //#22658 - var _6 = $k[--$j]; //#22658 - $_[$k[--$j]] = _6; //#22658 - $put($_.args, "opt", $_.options); //#22660 - $k[$j++] = $_.args; //#22663 - if (!$_.dontdraw) { //#22663 - bwipp_renmatrix(); //#22663 - } //#22663 - $_ = Object.getPrototypeOf($_); //#22665 -} - + $_ = Object.create($_); //#22938 + $_.dontdraw = false; //#22941 + $k[$j++] = $_; //#22943 + bwipp_processoptions(); //#22943 + $_.options = $k[--$j]; //#22943 + $_.barcode = $k[--$j]; //#22944 + $put($_.options, "dontdraw", true); //#22947 + $put($_.options, "format", "compact"); //#22948 + $k[$j++] = 'args'; //#22950 + $k[$j++] = $_.barcode; //#22950 + $k[$j++] = $_.options; //#22950 + bwipp_azteccode(); //#22950 + var _6 = $k[--$j]; //#22950 + $_[$k[--$j]] = _6; //#22950 + $put($_.args, "opt", $_.options); //#22952 + $k[$j++] = $_.args; //#22955 + if (!$_.dontdraw) { //#22955 + bwipp_renmatrix(); //#22955 + } //#22955 + $_ = Object.getPrototypeOf($_); //#22957 +} //bwipp_azteccodecompact function bwipp_aztecrune() { - $_ = Object.create($_); //#22694 - $_.dontdraw = false; //#22697 - $k[$j++] = $_; //#22699 - bwipp_processoptions(); //#22699 - $_.options = $k[--$j]; //#22699 - $_.barcode = $k[--$j]; //#22700 - $put($_.options, "dontdraw", true); //#22703 - $put($_.options, "format", "rune"); //#22704 - $k[$j++] = 'args'; //#22706 - $k[$j++] = $_.barcode; //#22706 - $k[$j++] = $_.options; //#22706 - bwipp_azteccode(); //#22706 - var _6 = $k[--$j]; //#22706 - $_[$k[--$j]] = _6; //#22706 - $put($_.args, "opt", $_.options); //#22708 - $k[$j++] = $_.args; //#22711 - if (!$_.dontdraw) { //#22711 - bwipp_renmatrix(); //#22711 - } //#22711 - $_ = Object.getPrototypeOf($_); //#22713 -} - + $_ = Object.create($_); //#22986 + $_.dontdraw = false; //#22989 + $k[$j++] = $_; //#22991 + bwipp_processoptions(); //#22991 + $_.options = $k[--$j]; //#22991 + $_.barcode = $k[--$j]; //#22992 + $put($_.options, "dontdraw", true); //#22995 + $put($_.options, "format", "rune"); //#22996 + $k[$j++] = 'args'; //#22998 + $k[$j++] = $_.barcode; //#22998 + $k[$j++] = $_.options; //#22998 + bwipp_azteccode(); //#22998 + var _6 = $k[--$j]; //#22998 + $_[$k[--$j]] = _6; //#22998 + $put($_.args, "opt", $_.options); //#23000 + $k[$j++] = $_.args; //#23003 + if (!$_.dontdraw) { //#23003 + bwipp_renmatrix(); //#23003 + } //#23003 + $_ = Object.getPrototypeOf($_); //#23005 +} //bwipp_aztecrune function bwipp_codeone() { - $_ = Object.create($_); //#22744 - $_.dontdraw = false; //#22747 - $_.version = "unset"; //#22748 - $_.parse = false; //#22749 - $_.parsefnc = false; //#22750 - $k[$j++] = $_; //#22752 - bwipp_processoptions(); //#22752 - $_.options = $k[--$j]; //#22752 - $_.barcode = $k[--$j]; //#22753 - var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#22755 - $k[$j++] = false; //#22756 - for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#22756 - var _7 = $k[--$j]; //#22756 - $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#22756 - } //#22756 - if ($nt($k[--$j])) { //#22758 - $k[$j++] = 'bwipp.codeoneBadVersion#22757'; //#22757 - $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#22757 - bwipp_raiseerror(); //#22757 - } //#22757 - bwipp_loadctx(bwipp_codeone) //#22760 - $_.stype = $eq($geti($_.version, 0, 1), "S"); //#22762 - if (!bwipp_codeone.__22920__) { //#22920 - $_ = Object.create($_); //#22920 - $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#22784 - $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#22792 - $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#22808 - $_.fnc1 = -1; //#22811 - $_.fnc3 = -2; //#22811 - $_.lC = -5; //#22812 - $_.lB = -6; //#22812 - $_.lX = -7; //#22812 - $_.lT = -8; //#22812 - $_.lD = -9; //#22812 - $_.unl = -10; //#22812 - $_.fnc2 = -11; //#22813 - $_.fnc4 = -12; //#22813 - $_.sft1 = -13; //#22813 - $_.sft2 = -14; //#22813 - $_.sft3 = -15; //#22813 - $_.eci = -16; //#22813 - $_.pad = -17; //#22813 - $_.fnc1lD = -18; //#22813 - $_.unlcw = 255; //#22814 - $k[$j++] = Infinity; //#22825 - for (var _S = 0; _S <= 128; _S += 1) { //#22817 - $k[$j++] = _S; //#22817 - $k[$j++] = _S + 1; //#22817 - } //#22817 - $k[$j++] = $_.pad; //#22822 - $k[$j++] = 129; //#22822 - for (var _U = 0; _U <= 99; _U += 1) { //#22822 - var _W = $cvrs($s(2), _U, 10); //#22820 - var _Y = $strcpy($s(2), "00"); //#22820 - $puti(_Y, 2 - _W.length, _W); //#22820 - $k[$j++] = _Y; //#22821 - $k[$j++] = _U + 130; //#22821 - } //#22821 - var _g = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#22823 - $k[$j++] = 229; //#22823 - for (var _h = 0, _i = _g.length; _h < _i; _h++) { //#22823 - var _l = $f($k[--$j] + 1); //#22823 - $k[$j++] = $get(_g, _h); //#22823 - $k[$j++] = _l; //#22823 - $k[$j++] = _l; //#22823 - } //#22823 - $j--; //#22823 - $k[$j++] = $_.lX; //#22825 - $k[$j++] = 238; //#22825 - $k[$j++] = $_.lT; //#22825 - $k[$j++] = 239; //#22825 - $_.Avals = $d(); //#22827 - $k[$j++] = Infinity; //#22829 - var _p = $_.Avals; //#22829 - for (var _u = _p.size, _t = _p.keys(), _s = 0; _s < _u; _s++) { //#22829 - var _q = _t.next().value; //#22829 - $k[$j++] = _q; //#22829 - $k[$j++] = _p.get(_q); //#22829 - $k[$j++] = Infinity; //#22829 - var _v = $k[--$j]; //#22829 - var _w = $k[--$j]; //#22829 - $k[$j++] = _v; //#22829 - $k[$j++] = _w; //#22829 - var _x = $a(); //#22829 - $k[$j++] = _x; //#22829 - } //#22829 - $_.Avals = $d(); //#22830 - $k[$j++] = Infinity; //#22838 - $k[$j++] = $_.sft1; //#22837 - $k[$j++] = 0; //#22837 - $k[$j++] = $_.sft2; //#22837 - $k[$j++] = 1; //#22837 - $k[$j++] = $_.sft3; //#22837 - $k[$j++] = 2; //#22837 - $k[$j++] = 32; //#22837 - $k[$j++] = 3; //#22837 - for (var _12 = 48; _12 <= 57; _12 += 1) { //#22837 - $k[$j++] = _12; //#22837 - $k[$j++] = _12 - 44; //#22837 - } //#22837 - for (var _13 = 65; _13 <= 90; _13 += 1) { //#22838 - $k[$j++] = _13; //#22838 - $k[$j++] = _13 - 51; //#22838 - } //#22838 - $_.CNvals = $d(); //#22839 - $k[$j++] = Infinity; //#22840 - for (var _15 = 0; _15 <= 31; _15 += 1) { //#22840 - $k[$j++] = _15; //#22840 - $k[$j++] = _15; //#22840 - } //#22840 - $_.C1vals = $d(); //#22840 - $k[$j++] = Infinity; //#22849 - for (var _17 = 33; _17 <= 47; _17 += 1) { //#22842 - $k[$j++] = _17; //#22842 - $k[$j++] = _17 - 33; //#22842 - } //#22842 - for (var _18 = 58; _18 <= 64; _18 += 1) { //#22843 - $k[$j++] = _18; //#22843 - $k[$j++] = _18 - 43; //#22843 - } //#22843 - for (var _19 = 91; _19 <= 95; _19 += 1) { //#22844 - $k[$j++] = _19; //#22844 - $k[$j++] = _19 - 69; //#22844 - } //#22844 - $k[$j++] = $_.fnc1; //#22849 - $k[$j++] = 27; //#22849 - $k[$j++] = $_.fnc2; //#22849 - $k[$j++] = 28; //#22849 - $k[$j++] = $_.fnc3; //#22849 - $k[$j++] = 29; //#22849 - $k[$j++] = $_.fnc4; //#22849 - $k[$j++] = 30; //#22849 - $k[$j++] = $_.pad; //#22849 - $k[$j++] = 31; //#22849 - $_.C2vals = $d(); //#22850 - $k[$j++] = Infinity; //#22851 - for (var _1G = 96; _1G <= 127; _1G += 1) { //#22851 - $k[$j++] = _1G; //#22851 - $k[$j++] = _1G - 96; //#22851 - } //#22851 - $_.C3vals = $d(); //#22851 - $k[$j++] = Infinity; //#22856 - var _1I = $_.CNvals; //#22853 - for (var _1N = _1I.size, _1M = _1I.keys(), _1L = 0; _1L < _1N; _1L++) { //#22853 - var _1J = _1M.next().value; //#22853 - $k[$j++] = _1J; //#22853 - $k[$j++] = _1I.get(_1J); //#22853 - $k[$j++] = Infinity; //#22853 - var _1O = $k[--$j]; //#22853 - var _1P = $k[--$j]; //#22853 - $k[$j++] = _1O; //#22853 - $k[$j++] = _1P; //#22853 - var _1Q = $a(); //#22853 - $k[$j++] = _1Q; //#22853 - } //#22853 - var _1R = $_.C1vals; //#22854 - for (var _1W = _1R.size, _1V = _1R.keys(), _1U = 0; _1U < _1W; _1U++) { //#22854 - var _1S = _1V.next().value; //#22854 - $k[$j++] = _1S; //#22854 - $k[$j++] = _1R.get(_1S); //#22854 - $k[$j++] = Infinity; //#22854 - var _1X = $k[--$j]; //#22854 - var _1Y = $k[--$j]; //#22854 - $k[$j++] = _1X; //#22854 - $k[$j++] = $get($_.CNvals, $_.sft1); //#22854 - $k[$j++] = _1Y; //#22854 - var _1c = $a(); //#22854 - $k[$j++] = _1c; //#22854 - } //#22854 - var _1d = $_.C2vals; //#22855 - for (var _1i = _1d.size, _1h = _1d.keys(), _1g = 0; _1g < _1i; _1g++) { //#22855 - var _1e = _1h.next().value; //#22855 - $k[$j++] = _1e; //#22855 - $k[$j++] = _1d.get(_1e); //#22855 - $k[$j++] = Infinity; //#22855 - var _1j = $k[--$j]; //#22855 - var _1k = $k[--$j]; //#22855 - $k[$j++] = _1j; //#22855 - $k[$j++] = $get($_.CNvals, $_.sft2); //#22855 - $k[$j++] = _1k; //#22855 - var _1o = $a(); //#22855 - $k[$j++] = _1o; //#22855 - } //#22855 - var _1p = $_.C3vals; //#22856 - for (var _1u = _1p.size, _1t = _1p.keys(), _1s = 0; _1s < _1u; _1s++) { //#22856 - var _1q = _1t.next().value; //#22856 - $k[$j++] = _1q; //#22856 - $k[$j++] = _1p.get(_1q); //#22856 - $k[$j++] = Infinity; //#22856 - var _1v = $k[--$j]; //#22856 - var _1w = $k[--$j]; //#22856 - $k[$j++] = _1v; //#22856 - $k[$j++] = $get($_.CNvals, $_.sft3); //#22856 - $k[$j++] = _1w; //#22856 - var _20 = $a(); //#22856 - $k[$j++] = _20; //#22856 - } //#22856 - $_.Cvals = $d(); //#22857 - $k[$j++] = Infinity; //#22865 - $k[$j++] = $_.sft1; //#22864 - $k[$j++] = 0; //#22864 - $k[$j++] = $_.sft2; //#22864 - $k[$j++] = 1; //#22864 - $k[$j++] = $_.sft3; //#22864 - $k[$j++] = 2; //#22864 - $k[$j++] = 32; //#22864 - $k[$j++] = 3; //#22864 - for (var _25 = 48; _25 <= 57; _25 += 1) { //#22864 - $k[$j++] = _25; //#22864 - $k[$j++] = _25 - 44; //#22864 - } //#22864 - for (var _26 = 97; _26 <= 122; _26 += 1) { //#22865 - $k[$j++] = _26; //#22865 - $k[$j++] = _26 - 83; //#22865 - } //#22865 - $_.TNvals = $d(); //#22866 - $k[$j++] = Infinity; //#22867 - for (var _28 = 0; _28 <= 31; _28 += 1) { //#22867 - $k[$j++] = _28; //#22867 - $k[$j++] = _28; //#22867 - } //#22867 - $_.T1vals = $d(); //#22867 - $k[$j++] = Infinity; //#22876 - for (var _2A = 33; _2A <= 47; _2A += 1) { //#22869 - $k[$j++] = _2A; //#22869 - $k[$j++] = _2A - 33; //#22869 - } //#22869 - for (var _2B = 58; _2B <= 64; _2B += 1) { //#22870 - $k[$j++] = _2B; //#22870 - $k[$j++] = _2B - 43; //#22870 - } //#22870 - for (var _2C = 91; _2C <= 95; _2C += 1) { //#22871 - $k[$j++] = _2C; //#22871 - $k[$j++] = _2C - 69; //#22871 - } //#22871 - $k[$j++] = $_.fnc1; //#22876 - $k[$j++] = 27; //#22876 - $k[$j++] = $_.fnc2; //#22876 - $k[$j++] = 28; //#22876 - $k[$j++] = $_.fnc3; //#22876 - $k[$j++] = 29; //#22876 - $k[$j++] = $_.fnc4; //#22876 - $k[$j++] = 30; //#22876 - $k[$j++] = $_.pad; //#22876 - $k[$j++] = 31; //#22876 - $_.T2vals = $d(); //#22877 - $k[$j++] = Infinity; //#22881 - $k[$j++] = 96; //#22880 - $k[$j++] = 0; //#22880 - for (var _2J = 65; _2J <= 90; _2J += 1) { //#22880 - $k[$j++] = _2J; //#22880 - $k[$j++] = _2J - 64; //#22880 - } //#22880 - for (var _2K = 123; _2K <= 127; _2K += 1) { //#22881 - $k[$j++] = _2K; //#22881 - $k[$j++] = _2K - 96; //#22881 - } //#22881 - $_.T3vals = $d(); //#22882 - $k[$j++] = Infinity; //#22887 - var _2M = $_.TNvals; //#22884 - for (var _2R = _2M.size, _2Q = _2M.keys(), _2P = 0; _2P < _2R; _2P++) { //#22884 - var _2N = _2Q.next().value; //#22884 - $k[$j++] = _2N; //#22884 - $k[$j++] = _2M.get(_2N); //#22884 - $k[$j++] = Infinity; //#22884 - var _2S = $k[--$j]; //#22884 - var _2T = $k[--$j]; //#22884 - $k[$j++] = _2S; //#22884 - $k[$j++] = _2T; //#22884 - var _2U = $a(); //#22884 - $k[$j++] = _2U; //#22884 - } //#22884 - var _2V = $_.T1vals; //#22885 - for (var _2a = _2V.size, _2Z = _2V.keys(), _2Y = 0; _2Y < _2a; _2Y++) { //#22885 - var _2W = _2Z.next().value; //#22885 - $k[$j++] = _2W; //#22885 - $k[$j++] = _2V.get(_2W); //#22885 - $k[$j++] = Infinity; //#22885 - var _2b = $k[--$j]; //#22885 - var _2c = $k[--$j]; //#22885 - $k[$j++] = _2b; //#22885 - $k[$j++] = $get($_.TNvals, $_.sft1); //#22885 - $k[$j++] = _2c; //#22885 - var _2g = $a(); //#22885 - $k[$j++] = _2g; //#22885 - } //#22885 - var _2h = $_.T2vals; //#22886 - for (var _2m = _2h.size, _2l = _2h.keys(), _2k = 0; _2k < _2m; _2k++) { //#22886 - var _2i = _2l.next().value; //#22886 - $k[$j++] = _2i; //#22886 - $k[$j++] = _2h.get(_2i); //#22886 - $k[$j++] = Infinity; //#22886 - var _2n = $k[--$j]; //#22886 - var _2o = $k[--$j]; //#22886 - $k[$j++] = _2n; //#22886 - $k[$j++] = $get($_.TNvals, $_.sft2); //#22886 - $k[$j++] = _2o; //#22886 - var _2s = $a(); //#22886 - $k[$j++] = _2s; //#22886 - } //#22886 - var _2t = $_.T3vals; //#22887 - for (var _2y = _2t.size, _2x = _2t.keys(), _2w = 0; _2w < _2y; _2w++) { //#22887 - var _2u = _2x.next().value; //#22887 - $k[$j++] = _2u; //#22887 - $k[$j++] = _2t.get(_2u); //#22887 - $k[$j++] = Infinity; //#22887 - var _2z = $k[--$j]; //#22887 - var _30 = $k[--$j]; //#22887 - $k[$j++] = _2z; //#22887 - $k[$j++] = $get($_.TNvals, $_.sft3); //#22887 - $k[$j++] = _30; //#22887 - var _34 = $a(); //#22887 - $k[$j++] = _34; //#22887 - } //#22887 - $_.Tvals = $d(); //#22888 - for (var _36 = 128; _36 <= 255; _36 += 1) { //#22896 - $_.i = _36; //#22892 - $k[$j++] = $_.Avals; //#22893 - $k[$j++] = $_.i; //#22893 - $k[$j++] = Infinity; //#22893 - $aload($get($_.Avals, $_.fnc4)); //#22893 - $aload($get($_.Avals, $_.i - 128)); //#22893 - var _3F = $a(); //#22893 - var _3G = $k[--$j]; //#22893 - $put($k[--$j], _3G, _3F); //#22893 - $k[$j++] = $_.Cvals; //#22894 - $k[$j++] = $_.i; //#22894 - $k[$j++] = Infinity; //#22894 - $aload($get($_.Cvals, $_.fnc4)); //#22894 - $aload($get($_.Cvals, $_.i - 128)); //#22894 - var _3Q = $a(); //#22894 - var _3R = $k[--$j]; //#22894 - $put($k[--$j], _3R, _3Q); //#22894 - $k[$j++] = $_.Tvals; //#22895 - $k[$j++] = $_.i; //#22895 - $k[$j++] = Infinity; //#22895 - $aload($get($_.Tvals, $_.fnc4)); //#22895 - $aload($get($_.Tvals, $_.i - 128)); //#22895 - var _3b = $a(); //#22895 - var _3c = $k[--$j]; //#22895 - $put($k[--$j], _3c, _3b); //#22895 - } //#22895 - $k[$j++] = Infinity; //#22904 - $k[$j++] = 13; //#22903 - $k[$j++] = 0; //#22903 - $k[$j++] = 42; //#22903 - $k[$j++] = 1; //#22903 - $k[$j++] = 62; //#22903 - $k[$j++] = 2; //#22903 - $k[$j++] = 32; //#22903 - $k[$j++] = 3; //#22903 - for (var _3e = 48; _3e <= 57; _3e += 1) { //#22903 - $k[$j++] = _3e; //#22903 - $k[$j++] = _3e - 44; //#22903 - } //#22903 - for (var _3f = 65; _3f <= 90; _3f += 1) { //#22904 - $k[$j++] = _3f; //#22904 - $k[$j++] = _3f - 51; //#22904 - } //#22904 - $_.Xvals = $d(); //#22905 - $k[$j++] = Infinity; //#22907 - var _3h = $_.Xvals; //#22907 - for (var _3m = _3h.size, _3l = _3h.keys(), _3k = 0; _3k < _3m; _3k++) { //#22907 - var _3i = _3l.next().value; //#22907 - $k[$j++] = _3i; //#22907 - $k[$j++] = _3h.get(_3i); //#22907 - $k[$j++] = Infinity; //#22907 - var _3n = $k[--$j]; //#22907 - var _3o = $k[--$j]; //#22907 - $k[$j++] = _3n; //#22907 - $k[$j++] = _3o; //#22907 - var _3p = $a(); //#22907 - $k[$j++] = _3p; //#22907 - } //#22907 - $_.Xvals = $d(); //#22908 - $k[$j++] = Infinity; //#22911 - for (var _3r = 0; _3r <= 255; _3r += 1) { //#22911 - $k[$j++] = _3r; //#22911 - $k[$j++] = _3r; //#22911 - } //#22911 - $_.Bvals = $d(); //#22912 - $k[$j++] = Infinity; //#22914 - var _3t = $_.Bvals; //#22914 - for (var _3y = _3t.size, _3x = _3t.keys(), _3w = 0; _3w < _3y; _3w++) { //#22914 - var _3u = _3x.next().value; //#22914 - $k[$j++] = _3u; //#22914 - $k[$j++] = _3t.get(_3u); //#22914 - $k[$j++] = Infinity; //#22914 - var _3z = $k[--$j]; //#22914 - var _40 = $k[--$j]; //#22914 - $k[$j++] = _3z; //#22914 - $k[$j++] = _40; //#22914 - var _41 = $a(); //#22914 - $k[$j++] = _41; //#22914 - } //#22914 - $_.Bvals = $d(); //#22915 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#22917 - $_.A = 0; //#22919 - $_.C = 1; //#22919 - $_.T = 2; //#22919 - $_.X = 3; //#22919 - $_.D = 4; //#22919 - $_.B = 5; //#22919 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#22919 - bwipp_codeone.__22920__ = 1; //#22919 - $_ = Object.getPrototypeOf($_); //#22919 - } //#22919 - if ($_.stype) { //#23418 - $forall($_.barcode, function() { //#22928 - var _4C = $k[--$j]; //#22925 - if ((_4C < 48) || (_4C > 57)) { //#22927 - $k[$j++] = 'bwipp.codeoneStypeNonDigit#22926'; //#22926 - $k[$j++] = "S-Type symbols can only contain digits"; //#22926 - bwipp_raiseerror(); //#22926 - } //#22926 - }); //#22926 - $_.barlen = $_.barcode.length; //#22930 - if ($_.barlen > 18) { //#22933 - $k[$j++] = 'bwipp.codeoneStypeTooLong#22932'; //#22932 - $k[$j++] = "Maximum length exceeded"; //#22932 - bwipp_raiseerror(); //#22932 - } //#22932 + $_ = Object.create($_); //#23036 + $_.dontdraw = false; //#23039 + $_.version = "unset"; //#23040 + $_.parse = false; //#23041 + $_.parsefnc = false; //#23042 + $k[$j++] = $_; //#23044 + bwipp_processoptions(); //#23044 + $_.options = $k[--$j]; //#23044 + $_.barcode = $k[--$j]; //#23045 + var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#23047 + $k[$j++] = false; //#23048 + for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#23048 + var _7 = $k[--$j]; //#23048 + $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#23048 + } //#23048 + if ($nt($k[--$j])) { //#23050 + $k[$j++] = 'bwipp.codeoneBadVersion#23049'; //#23049 + $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#23049 + bwipp_raiseerror(); //#23049 + } //#23049 + bwipp_loadctx(bwipp_codeone) //#23052 + $_.stype = $eq($geti($_.version, 0, 1), "S"); //#23054 + $_.ttype = $eq($geti($_.version, 0, 1), "T"); //#23055 + if (!bwipp_codeone.__23213__) { //#23213 + $_ = Object.create($_); //#23213 + $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#23077 + $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#23085 + $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#23101 + $_.fnc1 = -1; //#23104 + $_.fnc3 = -2; //#23104 + $_.lC = -5; //#23105 + $_.lB = -6; //#23105 + $_.lX = -7; //#23105 + $_.lT = -8; //#23105 + $_.lD = -9; //#23105 + $_.unl = -10; //#23105 + $_.fnc2 = -11; //#23106 + $_.fnc4 = -12; //#23106 + $_.sft1 = -13; //#23106 + $_.sft2 = -14; //#23106 + $_.sft3 = -15; //#23106 + $_.eci = -16; //#23106 + $_.pad = -17; //#23106 + $_.fnc1lD = -18; //#23106 + $_.unlcw = 255; //#23107 + $k[$j++] = Infinity; //#23109 + for (var _U = 0; _U <= 128; _U += 1) { //#23110 + $k[$j++] = _U; //#23110 + $k[$j++] = _U + 1; //#23110 + } //#23110 + $k[$j++] = $_.pad; //#23115 + $k[$j++] = 129; //#23115 + for (var _W = 0; _W <= 99; _W += 1) { //#23115 + var _Y = $cvrs($s(2), _W, 10); //#23113 + var _a = $strcpy($s(2), "00"); //#23113 + $puti(_a, 2 - _Y.length, _Y); //#23113 + $k[$j++] = _a; //#23114 + $k[$j++] = _W + 130; //#23114 + } //#23114 + var _i = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#23116 + $k[$j++] = 229; //#23116 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#23116 + var _n = $f($k[--$j] + 1); //#23116 + $k[$j++] = $get(_i, _j); //#23116 + $k[$j++] = _n; //#23116 + $k[$j++] = _n; //#23116 + } //#23116 + $j--; //#23116 + $k[$j++] = $_.lX; //#23118 + $k[$j++] = 238; //#23118 + $k[$j++] = $_.lT; //#23118 + $k[$j++] = 239; //#23118 + $_.Avals = $d(); //#23120 + $k[$j++] = Infinity; //#23121 + var _r = $_.Avals; //#23122 + for (var _w = _r.size, _v = _r.keys(), _u = 0; _u < _w; _u++) { //#23122 + var _s = _v.next().value; //#23122 + $k[$j++] = _s; //#23122 + $k[$j++] = _r.get(_s); //#23122 + $k[$j++] = Infinity; //#23122 + var _x = $k[--$j]; //#23122 + var _y = $k[--$j]; //#23122 + $k[$j++] = _x; //#23122 + $k[$j++] = _y; //#23122 + var _z = $a(); //#23122 + $k[$j++] = _z; //#23122 + } //#23122 + $_.Avals = $d(); //#23123 + $k[$j++] = Infinity; //#23125 + $k[$j++] = $_.sft1; //#23130 + $k[$j++] = 0; //#23130 + $k[$j++] = $_.sft2; //#23130 + $k[$j++] = 1; //#23130 + $k[$j++] = $_.sft3; //#23130 + $k[$j++] = 2; //#23130 + $k[$j++] = 32; //#23130 + $k[$j++] = 3; //#23130 + for (var _14 = 48; _14 <= 57; _14 += 1) { //#23130 + $k[$j++] = _14; //#23130 + $k[$j++] = _14 - 44; //#23130 + } //#23130 + for (var _15 = 65; _15 <= 90; _15 += 1) { //#23131 + $k[$j++] = _15; //#23131 + $k[$j++] = _15 - 51; //#23131 + } //#23131 + $_.CNvals = $d(); //#23132 + $k[$j++] = Infinity; //#23133 + for (var _17 = 0; _17 <= 31; _17 += 1) { //#23133 + $k[$j++] = _17; //#23133 + $k[$j++] = _17; //#23133 + } //#23133 + $_.C1vals = $d(); //#23133 + $k[$j++] = Infinity; //#23134 + for (var _19 = 33; _19 <= 47; _19 += 1) { //#23135 + $k[$j++] = _19; //#23135 + $k[$j++] = _19 - 33; //#23135 + } //#23135 + for (var _1A = 58; _1A <= 64; _1A += 1) { //#23136 + $k[$j++] = _1A; //#23136 + $k[$j++] = _1A - 43; //#23136 + } //#23136 + for (var _1B = 91; _1B <= 95; _1B += 1) { //#23137 + $k[$j++] = _1B; //#23137 + $k[$j++] = _1B - 69; //#23137 + } //#23137 + $k[$j++] = $_.fnc1; //#23142 + $k[$j++] = 27; //#23142 + $k[$j++] = $_.fnc2; //#23142 + $k[$j++] = 28; //#23142 + $k[$j++] = $_.fnc3; //#23142 + $k[$j++] = 29; //#23142 + $k[$j++] = $_.fnc4; //#23142 + $k[$j++] = 30; //#23142 + $k[$j++] = $_.pad; //#23142 + $k[$j++] = 31; //#23142 + $_.C2vals = $d(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _1I = 96; _1I <= 127; _1I += 1) { //#23144 + $k[$j++] = _1I; //#23144 + $k[$j++] = _1I - 96; //#23144 + } //#23144 + $_.C3vals = $d(); //#23144 + $k[$j++] = Infinity; //#23145 + var _1K = $_.CNvals; //#23146 + for (var _1P = _1K.size, _1O = _1K.keys(), _1N = 0; _1N < _1P; _1N++) { //#23146 + var _1L = _1O.next().value; //#23146 + $k[$j++] = _1L; //#23146 + $k[$j++] = _1K.get(_1L); //#23146 + $k[$j++] = Infinity; //#23146 + var _1Q = $k[--$j]; //#23146 + var _1R = $k[--$j]; //#23146 + $k[$j++] = _1Q; //#23146 + $k[$j++] = _1R; //#23146 + var _1S = $a(); //#23146 + $k[$j++] = _1S; //#23146 + } //#23146 + var _1T = $_.C1vals; //#23147 + for (var _1Y = _1T.size, _1X = _1T.keys(), _1W = 0; _1W < _1Y; _1W++) { //#23147 + var _1U = _1X.next().value; //#23147 + $k[$j++] = _1U; //#23147 + $k[$j++] = _1T.get(_1U); //#23147 + $k[$j++] = Infinity; //#23147 + var _1Z = $k[--$j]; //#23147 + var _1a = $k[--$j]; //#23147 + $k[$j++] = _1Z; //#23147 + $k[$j++] = $get($_.CNvals, $_.sft1); //#23147 + $k[$j++] = _1a; //#23147 + var _1e = $a(); //#23147 + $k[$j++] = _1e; //#23147 + } //#23147 + var _1f = $_.C2vals; //#23148 + for (var _1k = _1f.size, _1j = _1f.keys(), _1i = 0; _1i < _1k; _1i++) { //#23148 + var _1g = _1j.next().value; //#23148 + $k[$j++] = _1g; //#23148 + $k[$j++] = _1f.get(_1g); //#23148 + $k[$j++] = Infinity; //#23148 + var _1l = $k[--$j]; //#23148 + var _1m = $k[--$j]; //#23148 + $k[$j++] = _1l; //#23148 + $k[$j++] = $get($_.CNvals, $_.sft2); //#23148 + $k[$j++] = _1m; //#23148 + var _1q = $a(); //#23148 + $k[$j++] = _1q; //#23148 + } //#23148 + var _1r = $_.C3vals; //#23149 + for (var _1w = _1r.size, _1v = _1r.keys(), _1u = 0; _1u < _1w; _1u++) { //#23149 + var _1s = _1v.next().value; //#23149 + $k[$j++] = _1s; //#23149 + $k[$j++] = _1r.get(_1s); //#23149 + $k[$j++] = Infinity; //#23149 + var _1x = $k[--$j]; //#23149 + var _1y = $k[--$j]; //#23149 + $k[$j++] = _1x; //#23149 + $k[$j++] = $get($_.CNvals, $_.sft3); //#23149 + $k[$j++] = _1y; //#23149 + var _22 = $a(); //#23149 + $k[$j++] = _22; //#23149 + } //#23149 + $_.Cvals = $d(); //#23150 + $k[$j++] = Infinity; //#23152 + $k[$j++] = $_.sft1; //#23157 + $k[$j++] = 0; //#23157 + $k[$j++] = $_.sft2; //#23157 + $k[$j++] = 1; //#23157 + $k[$j++] = $_.sft3; //#23157 + $k[$j++] = 2; //#23157 + $k[$j++] = 32; //#23157 + $k[$j++] = 3; //#23157 + for (var _27 = 48; _27 <= 57; _27 += 1) { //#23157 + $k[$j++] = _27; //#23157 + $k[$j++] = _27 - 44; //#23157 + } //#23157 + for (var _28 = 97; _28 <= 122; _28 += 1) { //#23158 + $k[$j++] = _28; //#23158 + $k[$j++] = _28 - 83; //#23158 + } //#23158 + $_.TNvals = $d(); //#23159 + $k[$j++] = Infinity; //#23160 + for (var _2A = 0; _2A <= 31; _2A += 1) { //#23160 + $k[$j++] = _2A; //#23160 + $k[$j++] = _2A; //#23160 + } //#23160 + $_.T1vals = $d(); //#23160 + $k[$j++] = Infinity; //#23161 + for (var _2C = 33; _2C <= 47; _2C += 1) { //#23162 + $k[$j++] = _2C; //#23162 + $k[$j++] = _2C - 33; //#23162 + } //#23162 + for (var _2D = 58; _2D <= 64; _2D += 1) { //#23163 + $k[$j++] = _2D; //#23163 + $k[$j++] = _2D - 43; //#23163 + } //#23163 + for (var _2E = 91; _2E <= 95; _2E += 1) { //#23164 + $k[$j++] = _2E; //#23164 + $k[$j++] = _2E - 69; //#23164 + } //#23164 + $k[$j++] = $_.fnc1; //#23169 + $k[$j++] = 27; //#23169 + $k[$j++] = $_.fnc2; //#23169 + $k[$j++] = 28; //#23169 + $k[$j++] = $_.fnc3; //#23169 + $k[$j++] = 29; //#23169 + $k[$j++] = $_.fnc4; //#23169 + $k[$j++] = 30; //#23169 + $k[$j++] = $_.pad; //#23169 + $k[$j++] = 31; //#23169 + $_.T2vals = $d(); //#23170 + $k[$j++] = Infinity; //#23171 + $k[$j++] = 96; //#23173 + $k[$j++] = 0; //#23173 + for (var _2L = 65; _2L <= 90; _2L += 1) { //#23173 + $k[$j++] = _2L; //#23173 + $k[$j++] = _2L - 64; //#23173 + } //#23173 + for (var _2M = 123; _2M <= 127; _2M += 1) { //#23174 + $k[$j++] = _2M; //#23174 + $k[$j++] = _2M - 96; //#23174 + } //#23174 + $_.T3vals = $d(); //#23175 + $k[$j++] = Infinity; //#23176 + var _2O = $_.TNvals; //#23177 + for (var _2T = _2O.size, _2S = _2O.keys(), _2R = 0; _2R < _2T; _2R++) { //#23177 + var _2P = _2S.next().value; //#23177 + $k[$j++] = _2P; //#23177 + $k[$j++] = _2O.get(_2P); //#23177 + $k[$j++] = Infinity; //#23177 + var _2U = $k[--$j]; //#23177 + var _2V = $k[--$j]; //#23177 + $k[$j++] = _2U; //#23177 + $k[$j++] = _2V; //#23177 + var _2W = $a(); //#23177 + $k[$j++] = _2W; //#23177 + } //#23177 + var _2X = $_.T1vals; //#23178 + for (var _2c = _2X.size, _2b = _2X.keys(), _2a = 0; _2a < _2c; _2a++) { //#23178 + var _2Y = _2b.next().value; //#23178 + $k[$j++] = _2Y; //#23178 + $k[$j++] = _2X.get(_2Y); //#23178 + $k[$j++] = Infinity; //#23178 + var _2d = $k[--$j]; //#23178 + var _2e = $k[--$j]; //#23178 + $k[$j++] = _2d; //#23178 + $k[$j++] = $get($_.TNvals, $_.sft1); //#23178 + $k[$j++] = _2e; //#23178 + var _2i = $a(); //#23178 + $k[$j++] = _2i; //#23178 + } //#23178 + var _2j = $_.T2vals; //#23179 + for (var _2o = _2j.size, _2n = _2j.keys(), _2m = 0; _2m < _2o; _2m++) { //#23179 + var _2k = _2n.next().value; //#23179 + $k[$j++] = _2k; //#23179 + $k[$j++] = _2j.get(_2k); //#23179 + $k[$j++] = Infinity; //#23179 + var _2p = $k[--$j]; //#23179 + var _2q = $k[--$j]; //#23179 + $k[$j++] = _2p; //#23179 + $k[$j++] = $get($_.TNvals, $_.sft2); //#23179 + $k[$j++] = _2q; //#23179 + var _2u = $a(); //#23179 + $k[$j++] = _2u; //#23179 + } //#23179 + var _2v = $_.T3vals; //#23180 + for (var _30 = _2v.size, _2z = _2v.keys(), _2y = 0; _2y < _30; _2y++) { //#23180 + var _2w = _2z.next().value; //#23180 + $k[$j++] = _2w; //#23180 + $k[$j++] = _2v.get(_2w); //#23180 + $k[$j++] = Infinity; //#23180 + var _31 = $k[--$j]; //#23180 + var _32 = $k[--$j]; //#23180 + $k[$j++] = _31; //#23180 + $k[$j++] = $get($_.TNvals, $_.sft3); //#23180 + $k[$j++] = _32; //#23180 + var _36 = $a(); //#23180 + $k[$j++] = _36; //#23180 + } //#23180 + $_.Tvals = $d(); //#23181 + for (var _38 = 128; _38 <= 255; _38 += 1) { //#23189 + $_.i = _38; //#23185 + $k[$j++] = $_.Avals; //#23186 + $k[$j++] = $_.i; //#23186 + $k[$j++] = Infinity; //#23186 + $aload($get($_.Avals, $_.fnc4)); //#23186 + $aload($get($_.Avals, $_.i - 128)); //#23186 + var _3H = $a(); //#23186 + var _3I = $k[--$j]; //#23186 + $put($k[--$j], _3I, _3H); //#23186 + $k[$j++] = $_.Cvals; //#23187 + $k[$j++] = $_.i; //#23187 + $k[$j++] = Infinity; //#23187 + $aload($get($_.Cvals, $_.fnc4)); //#23187 + $aload($get($_.Cvals, $_.i - 128)); //#23187 + var _3S = $a(); //#23187 + var _3T = $k[--$j]; //#23187 + $put($k[--$j], _3T, _3S); //#23187 + $k[$j++] = $_.Tvals; //#23188 + $k[$j++] = $_.i; //#23188 + $k[$j++] = Infinity; //#23188 + $aload($get($_.Tvals, $_.fnc4)); //#23188 + $aload($get($_.Tvals, $_.i - 128)); //#23188 + var _3d = $a(); //#23188 + var _3e = $k[--$j]; //#23188 + $put($k[--$j], _3e, _3d); //#23188 + } //#23188 + $k[$j++] = Infinity; //#23191 + $k[$j++] = 13; //#23196 + $k[$j++] = 0; //#23196 + $k[$j++] = 42; //#23196 + $k[$j++] = 1; //#23196 + $k[$j++] = 62; //#23196 + $k[$j++] = 2; //#23196 + $k[$j++] = 32; //#23196 + $k[$j++] = 3; //#23196 + for (var _3g = 48; _3g <= 57; _3g += 1) { //#23196 + $k[$j++] = _3g; //#23196 + $k[$j++] = _3g - 44; //#23196 + } //#23196 + for (var _3h = 65; _3h <= 90; _3h += 1) { //#23197 + $k[$j++] = _3h; //#23197 + $k[$j++] = _3h - 51; //#23197 + } //#23197 + $_.Xvals = $d(); //#23198 + $k[$j++] = Infinity; //#23199 + var _3j = $_.Xvals; //#23200 + for (var _3o = _3j.size, _3n = _3j.keys(), _3m = 0; _3m < _3o; _3m++) { //#23200 + var _3k = _3n.next().value; //#23200 + $k[$j++] = _3k; //#23200 + $k[$j++] = _3j.get(_3k); //#23200 + $k[$j++] = Infinity; //#23200 + var _3p = $k[--$j]; //#23200 + var _3q = $k[--$j]; //#23200 + $k[$j++] = _3p; //#23200 + $k[$j++] = _3q; //#23200 + var _3r = $a(); //#23200 + $k[$j++] = _3r; //#23200 + } //#23200 + $_.Xvals = $d(); //#23201 + $k[$j++] = Infinity; //#23203 + for (var _3t = 0; _3t <= 255; _3t += 1) { //#23204 + $k[$j++] = _3t; //#23204 + $k[$j++] = _3t; //#23204 + } //#23204 + $_.Bvals = $d(); //#23205 + $k[$j++] = Infinity; //#23206 + var _3v = $_.Bvals; //#23207 + for (var _40 = _3v.size, _3z = _3v.keys(), _3y = 0; _3y < _40; _3y++) { //#23207 + var _3w = _3z.next().value; //#23207 + $k[$j++] = _3w; //#23207 + $k[$j++] = _3v.get(_3w); //#23207 + $k[$j++] = Infinity; //#23207 + var _41 = $k[--$j]; //#23207 + var _42 = $k[--$j]; //#23207 + $k[$j++] = _41; //#23207 + $k[$j++] = _42; //#23207 + var _43 = $a(); //#23207 + $k[$j++] = _43; //#23207 + } //#23207 + $_.Bvals = $d(); //#23208 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#23210 + $_.A = 0; //#23212 + $_.C = 1; //#23212 + $_.T = 2; //#23212 + $_.X = 3; //#23212 + $_.D = 4; //#23212 + $_.B = 5; //#23212 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23212 + bwipp_codeone.__23213__ = 1; //#23212 + $_ = Object.getPrototypeOf($_); //#23212 + } //#23212 + if ($_.stype) { //#23711 + $forall($_.barcode, function() { //#23221 + var _4E = $k[--$j]; //#23218 + if ((_4E < 48) || (_4E > 57)) { //#23220 + $k[$j++] = 'bwipp.codeoneStypeNonDigit#23219'; //#23219 + $k[$j++] = "S-Type symbols can only contain digits"; //#23219 + bwipp_raiseerror(); //#23219 + } //#23219 + }); //#23219 + $_.barlen = $_.barcode.length; //#23223 + if ($_.barlen > 18) { //#23226 + $k[$j++] = 'bwipp.codeoneStypeTooLong#23225'; //#23225 + $k[$j++] = "Maximum length exceeded"; //#23225 + bwipp_raiseerror(); //#23225 + } //#23225 $_.normalize = function() { - $_.base = $k[--$j]; //#22936 - $_.num = $k[--$j]; //#22937 - for (var _4I = $_.num.length - 1; _4I >= 1; _4I -= 1) { //#22942 - $_.i = _4I; //#22939 - var _4J = $_.num; //#22940 - var _4K = $_.i; //#22940 - $put(_4J, _4K - 1, $f($get(_4J, _4K - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#22940 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#22941 - } //#22941 - for (;;) { //#22948 - if ($lt($get($_.num, 0), $_.base)) { //#22944 - break; //#22944 - } //#22944 - $k[$j++] = Infinity; //#22945 - $k[$j++] = 0; //#22945 - $forall($_.num); //#22945 - $_.num = $a(); //#22945 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#22946 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#22947 - } //#22947 - $k[$j++] = Infinity; //#22950 - $_.i = true; //#22950 - var _4l = $_.num; //#22950 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#22950 - var _4o = $get(_4l, _4m); //#22950 - $k[$j++] = _4o; //#22950 - if ((_4o == 0) && $_.i) { //#22950 - $j--; //#22950 - } else { //#22950 - $_.i = false; //#22950 - } //#22950 - } //#22950 - $_.num = $a(); //#22950 - if ($_.num.length == 0) { //#22951 - $_.num = $a([0]); //#22951 - } //#22951 - $k[$j++] = $_.num; //#22952 - }; //#22952 + $_.base = $k[--$j]; //#23229 + $_.num = $k[--$j]; //#23230 + for (var _4K = $_.num.length - 1; _4K >= 1; _4K -= 1) { //#23235 + $_.i = _4K; //#23232 + var _4L = $_.num; //#23233 + var _4M = $_.i; //#23233 + $put(_4L, _4M - 1, $f($get(_4L, _4M - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#23233 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#23234 + } //#23234 + for (;;) { //#23241 + if ($lt($get($_.num, 0), $_.base)) { //#23237 + break; //#23237 + } //#23237 + $k[$j++] = Infinity; //#23238 + $k[$j++] = 0; //#23238 + $forall($_.num); //#23238 + $_.num = $a(); //#23238 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#23239 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#23240 + } //#23240 + $k[$j++] = Infinity; //#23243 + $_.i = true; //#23243 + var _4n = $_.num; //#23243 + for (var _4o = 0, _4p = _4n.length; _4o < _4p; _4o++) { //#23243 + var _4q = $get(_4n, _4o); //#23243 + $k[$j++] = _4q; //#23243 + if ((_4q == 0) && $_.i) { //#23243 + $j--; //#23243 + } else { //#23243 + $_.i = false; //#23243 + } //#23243 + } //#23243 + $_.num = $a(); //#23243 + if ($_.num.length == 0) { //#23244 + $_.num = $a([0]); //#23244 + } //#23244 + $k[$j++] = $_.num; //#23245 + }; //#23245 $_.bigadd = function() { - var _4u = $k[--$j]; //#22956 - var _4v = $k[--$j]; //#22956 - $_.offset = Math.abs(_4u.length - _4v.length); //#22957 - if (_4u.length < _4v.length) { //#22958 - var _ = _4u; //#22958 - _4u = _4v; //#22958 - _4v = _; //#22958 - } //#22958 - $_.a = _4u; //#22959 - $_.b = _4v; //#22959 - for (var _4y = 0, _4x = $_.b.length - 1; _4y <= _4x; _4y += 1) { //#22962 - var _4z = $_.a; //#22961 - var _50 = $_.offset; //#22961 - $put(_4z, _4y + _50, $f($get(_4z, _4y + _50) + $get($_.b, _4y))); //#22961 - } //#22961 - $k[$j++] = $_.a; //#22963 - }; //#22963 - $_.barlen = $_.barcode.length; //#22966 - $_.v = $a([1]); //#22969 - for (var _59 = 0, _58 = $_.barlen - 1; _59 <= _58; _59 += 1) { //#22974 - $_.i = _59; //#22971 - $k[$j++] = Infinity; //#22972 - $forall($get($_.stypevals, $_.i), function() { //#22972 - var _5D = $k[--$j]; //#22972 - $k[$j++] = $f(_5D - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#22972 - }); //#22972 - var _5I = $a(); //#22972 - $k[$j++] = _5I; //#22973 - $k[$j++] = $_.v; //#22973 - $_.bigadd(); //#22973 - $_.v = $k[--$j]; //#22973 - } //#22973 - $k[$j++] = 'v'; //#22975 - $k[$j++] = $_.v; //#22975 - $k[$j++] = 2; //#22975 - $_.normalize(); //#22975 - var _5M = $k[--$j]; //#22975 - $_[$k[--$j]] = _5M; //#22975 - $k[$j++] = Infinity; //#22978 - for (var _5P = 0, _5Q = (5 - ($_.v.length % 5)) % 5; _5P < _5Q; _5P++) { //#22978 - $k[$j++] = 0; //#22978 - } //#22978 - $aload($_.v); //#22978 - $_.v = $a(); //#22978 - $_.cws = $a(~~($_.v.length / 5)); //#22979 - for (var _5X = 0, _5W = $_.cws.length - 1; _5X <= _5W; _5X += 1) { //#22985 - $_.i = _5X; //#22981 - var _5a = $geti($_.v, $_.i * 5, 5); //#22982 - $k[$j++] = 0; //#22983 - for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#22983 - var _5e = $k[--$j]; //#22983 - $k[$j++] = $f(_5e + $get(_5a, _5b)) * 2; //#22983 - } //#22983 - $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#22984 - } //#22984 - $_.metrics = $_.stypemetrics; //#22987 - } else { //#23418 - var _5n = new Map([ + var _4w = $k[--$j]; //#23249 + var _4x = $k[--$j]; //#23249 + $_.offset = Math.abs(_4w.length - _4x.length); //#23250 + if (_4w.length < _4x.length) { //#23251 + var _ = _4w; //#23251 + _4w = _4x; //#23251 + _4x = _; //#23251 + } //#23251 + $_.a = _4w; //#23252 + $_.b = _4x; //#23252 + for (var _50 = 0, _4z = $_.b.length - 1; _50 <= _4z; _50 += 1) { //#23255 + var _51 = $_.a; //#23254 + var _52 = $_.offset; //#23254 + $put(_51, _50 + _52, $f($get(_51, _50 + _52) + $get($_.b, _50))); //#23254 + } //#23254 + $k[$j++] = $_.a; //#23256 + }; //#23256 + $_.barlen = $_.barcode.length; //#23259 + $_.v = $a([1]); //#23262 + for (var _5B = 0, _5A = $_.barlen - 1; _5B <= _5A; _5B += 1) { //#23267 + $_.i = _5B; //#23264 + $k[$j++] = Infinity; //#23265 + $forall($get($_.stypevals, $_.i), function() { //#23265 + var _5F = $k[--$j]; //#23265 + $k[$j++] = $f(_5F - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#23265 + }); //#23265 + var _5K = $a(); //#23265 + $k[$j++] = _5K; //#23266 + $k[$j++] = $_.v; //#23266 + $_.bigadd(); //#23266 + $_.v = $k[--$j]; //#23266 + } //#23266 + $k[$j++] = 'v'; //#23268 + $k[$j++] = $_.v; //#23268 + $k[$j++] = 2; //#23268 + $_.normalize(); //#23268 + var _5O = $k[--$j]; //#23268 + $_[$k[--$j]] = _5O; //#23268 + $k[$j++] = Infinity; //#23271 + for (var _5R = 0, _5S = (5 - ($_.v.length % 5)) % 5; _5R < _5S; _5R++) { //#23271 + $k[$j++] = 0; //#23271 + } //#23271 + $aload($_.v); //#23271 + $_.v = $a(); //#23271 + $_.cws = $a(~~($_.v.length / 5)); //#23272 + for (var _5Z = 0, _5Y = $_.cws.length - 1; _5Z <= _5Y; _5Z += 1) { //#23278 + $_.i = _5Z; //#23274 + var _5c = $geti($_.v, $_.i * 5, 5); //#23275 + $k[$j++] = 0; //#23276 + for (var _5d = 0, _5e = _5c.length; _5d < _5e; _5d++) { //#23276 + var _5g = $k[--$j]; //#23276 + $k[$j++] = $f(_5g + $get(_5c, _5d)) * 2; //#23276 + } //#23276 + $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#23277 + } //#23277 + $_.metrics = $_.stypemetrics; //#23280 + } else { //#23711 + var _5p = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["FNC3", $_.fnc3] - ]); //#22997 - $_.fncvals = _5n; //#22998 - $k[$j++] = 'msg'; //#22999 - $k[$j++] = $_.barcode; //#22999 - $k[$j++] = $_.fncvals; //#22999 - bwipp_parseinput(); //#22999 - var _5q = $k[--$j]; //#22999 - $_[$k[--$j]] = _5q; //#22999 - $_.msglen = $_.msg.length; //#23000 - $_.eciesc = 92; //#23003 - var _5t = $_.msg; //#23004 - $k[$j++] = 'numecis'; //#23004 - $k[$j++] = 0; //#23004 - for (var _5u = 0, _5v = _5t.length; _5u < _5v; _5u++) { //#23004 - if ($get(_5t, _5u) <= -1000000) { //#23004 - var _5x = $k[--$j]; //#23004 - $k[$j++] = $f(_5x + 1); //#23004 - } //#23004 - } //#23004 - var _5y = $k[--$j]; //#23004 - $_[$k[--$j]] = _5y; //#23004 - if ($_.numecis > 0) { //#23031 - $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23006 - $put($_.msgtmp, 0, $_.pad); //#23007 - $put($_.msgtmp, 1, $_.eciesc); //#23008 - $_.j = 2; //#23009 - for (var _6A = 0, _69 = $_.msg.length - 1; _6A <= _69; _6A += 1) { //#23028 - var _6C = $get($_.msg, _6A); //#23011 - $k[$j++] = _6C; //#23027 - if (_6C <= -1000000) { //#23025 - var _6G = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23013 - for (var _6H = 0, _6I = _6G.length; _6H < _6I; _6H++) { //#23013 - $k[$j++] = $get(_6G, _6H); //#23013 - } //#23013 - $astore($a(6)); //#23013 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23014 - $put($_.msgtmp, $_.j, $_.eciesc); //#23015 - $_.j = $_.j + 7; //#23016 - } else { //#23025 - var _6S = $k[--$j]; //#23018 - $k[$j++] = _6S; //#23026 - if (_6S != $_.eciesc) { //#23025 - $put($_.msgtmp, $_.j, $k[--$j]); //#23019 - $_.j = $_.j + 1; //#23020 - } else { //#23025 - $j--; //#23022 - $put($_.msgtmp, $_.j, $_.eciesc); //#23023 - $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23024 - $_.j = $_.j + 2; //#23025 - } //#23025 - } //#23025 - } //#23025 - $_.msg = $geti($_.msgtmp, 0, $_.j); //#23029 - $_.msglen = $_.msg.length; //#23030 - } //#23030 - $_.metrics = $_.nonstypemetrics; //#23033 - $_.fullcws = $a([]); //#23036 - var _6l = $_.metrics; //#23037 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#23048 - $_.m = $get(_6l, _6m); //#23038 - $_.vers = $get($_.m, 0); //#23039 - $_.dcws = $get($_.m, 4); //#23040 - $_.okay = true; //#23041 - if ($eq($_.version, "unset")) { //#23045 - if ($_.vers.length != 1) { //#23043 - $_.okay = false; //#23043 - } //#23043 - } else { //#23045 - if ($ne($_.version, $_.vers)) { //#23045 - $_.okay = false; //#23045 - } //#23045 - } //#23045 - if ($_.okay) { //#23047 - $k[$j++] = Infinity; //#23047 - $aload($_.fullcws); //#23047 - $k[$j++] = $_.dcws; //#23047 - $_.fullcws = $a(); //#23047 - } //#23047 - } //#23047 - $k[$j++] = Infinity; //#23049 - for (var _71 = 0, _72 = 1480; _71 < _72; _71++) { //#23049 - $k[$j++] = 10000; //#23049 - } //#23049 - $_.numremcws = $a(); //#23049 - var _74 = $_.fullcws; //#23050 - for (var _75 = 0, _76 = _74.length; _75 < _76; _75++) { //#23050 - $put($_.numremcws, $f($get(_74, _75) - 1), 1); //#23050 - } //#23050 - for (var _79 = 1478; _79 >= 0; _79 -= 1) { //#23056 - $_.i = _79; //#23052 - if ($get($_.numremcws, $_.i) != 1) { //#23055 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23054 - } //#23054 - } //#23054 - $k[$j++] = Infinity; //#23058 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#23058 - $k[$j++] = 0; //#23058 - } //#23058 - $k[$j++] = 0; //#23058 - $_.numD = $a(); //#23058 - $k[$j++] = Infinity; //#23059 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#23059 - $k[$j++] = 0; //#23059 - } //#23059 - $k[$j++] = 9999; //#23059 - $_.nextXterm = $a(); //#23059 - $k[$j++] = Infinity; //#23060 - for (var _7R = 0, _7S = $_.msglen; _7R < _7S; _7R++) { //#23060 - $k[$j++] = 0; //#23060 - } //#23060 - $k[$j++] = 9999; //#23060 - $_.nextNonX = $a(); //#23060 - for (var _7V = $_.msglen - 1; _7V >= 0; _7V -= 1) { //#23077 - $_.i = _7V; //#23062 - $_.barchar = $get($_.msg, $_.i); //#23063 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23066 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23065 - } //#23065 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23070 - $put($_.nextXterm, $_.i, 0); //#23068 - } else { //#23070 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23070 - } //#23070 - var _7s = $get($_.Xvals, $_.barchar) !== undefined; //#23072 - if (!_7s) { //#23075 - $put($_.nextNonX, $_.i, 0); //#23073 - } else { //#23075 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23075 - } //#23075 - } //#23075 - $k[$j++] = Infinity; //#23078 - var _80 = $_.nextXterm; //#23078 - for (var _81 = 0, _82 = _80.length; _81 < _82; _81++) { //#23078 - var _83 = $get(_80, _81); //#23078 - $k[$j++] = _83; //#23078 - if (_83 > 10000) { //#23078 - $j--; //#23078 - $k[$j++] = 10000; //#23078 - } //#23078 - } //#23078 - $_.nextXterm = $a(); //#23078 - $k[$j++] = Infinity; //#23079 - var _85 = $_.nextNonX; //#23079 - for (var _86 = 0, _87 = _85.length; _86 < _87; _86++) { //#23079 - var _88 = $get(_85, _86); //#23079 - $k[$j++] = _88; //#23079 - if (_88 > 10000) { //#23079 - $j--; //#23079 - $k[$j++] = 10000; //#23079 - } //#23079 - } //#23079 - $_.nextNonX = $a(); //#23079 + ]); //#23290 + $_.fncvals = _5p; //#23291 + $k[$j++] = 'msg'; //#23292 + $k[$j++] = $_.barcode; //#23292 + $k[$j++] = $_.fncvals; //#23292 + bwipp_parseinput(); //#23292 + var _5s = $k[--$j]; //#23292 + $_[$k[--$j]] = _5s; //#23292 + $_.msglen = $_.msg.length; //#23293 + $_.eciesc = 92; //#23296 + var _5v = $_.msg; //#23297 + $k[$j++] = 'numecis'; //#23297 + $k[$j++] = 0; //#23297 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#23297 + if ($get(_5v, _5w) <= -1000000) { //#23297 + var _5z = $k[--$j]; //#23297 + $k[$j++] = $f(_5z + 1); //#23297 + } //#23297 + } //#23297 + var _60 = $k[--$j]; //#23297 + $_[$k[--$j]] = _60; //#23297 + if ($_.numecis > 0) { //#23324 + $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23299 + $put($_.msgtmp, 0, $_.pad); //#23300 + $put($_.msgtmp, 1, $_.eciesc); //#23301 + $_.j = 2; //#23302 + for (var _6C = 0, _6B = $_.msg.length - 1; _6C <= _6B; _6C += 1) { //#23321 + var _6E = $get($_.msg, _6C); //#23304 + $k[$j++] = _6E; //#23320 + if (_6E <= -1000000) { //#23318 + var _6I = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23306 + for (var _6J = 0, _6K = _6I.length; _6J < _6K; _6J++) { //#23306 + $k[$j++] = $get(_6I, _6J); //#23306 + } //#23306 + $astore($a(6)); //#23306 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23307 + $put($_.msgtmp, $_.j, $_.eciesc); //#23308 + $_.j = $_.j + 7; //#23309 + } else { //#23318 + var _6U = $k[--$j]; //#23311 + $k[$j++] = _6U; //#23319 + if (_6U != $_.eciesc) { //#23318 + $put($_.msgtmp, $_.j, $k[--$j]); //#23312 + $_.j = $_.j + 1; //#23313 + } else { //#23318 + $j--; //#23315 + $put($_.msgtmp, $_.j, $_.eciesc); //#23316 + $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23317 + $_.j = $_.j + 2; //#23318 + } //#23318 + } //#23318 + } //#23318 + $_.msg = $geti($_.msgtmp, 0, $_.j); //#23322 + $_.msglen = $_.msg.length; //#23323 + } //#23323 + $_.metrics = $_.nonstypemetrics; //#23326 + $_.fullcws = $a([]); //#23329 + var _6n = $_.metrics; //#23330 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#23341 + $_.m = $get(_6n, _6o); //#23331 + $_.vers = $get($_.m, 0); //#23332 + $_.dcws = $get($_.m, 4); //#23333 + $_.okay = true; //#23334 + if ($eq($_.version, "unset")) { //#23338 + if ($_.vers.length != 1) { //#23336 + $_.okay = false; //#23336 + } //#23336 + } else { //#23338 + if ($ne($_.version, $_.vers)) { //#23338 + $_.okay = false; //#23338 + } //#23338 + } //#23338 + if ($_.okay) { //#23340 + $k[$j++] = Infinity; //#23340 + $aload($_.fullcws); //#23340 + $k[$j++] = $_.dcws; //#23340 + $_.fullcws = $a(); //#23340 + } //#23340 + } //#23340 + $k[$j++] = Infinity; //#23342 + for (var _73 = 0, _74 = 1480; _73 < _74; _73++) { //#23342 + $k[$j++] = 10000; //#23342 + } //#23342 + $_.numremcws = $a(); //#23342 + var _76 = $_.fullcws; //#23343 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#23343 + $put($_.numremcws, $f($get(_76, _77) - 1), 1); //#23343 + } //#23343 + for (var _7B = 1478; _7B >= 0; _7B -= 1) { //#23349 + $_.i = _7B; //#23345 + if ($get($_.numremcws, $_.i) != 1) { //#23348 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23347 + } //#23347 + } //#23347 + $k[$j++] = Infinity; //#23351 + for (var _7L = 0, _7M = $_.msglen; _7L < _7M; _7L++) { //#23351 + $k[$j++] = 0; //#23351 + } //#23351 + $k[$j++] = 0; //#23351 + $_.numD = $a(); //#23351 + $k[$j++] = Infinity; //#23352 + for (var _7P = 0, _7Q = $_.msglen; _7P < _7Q; _7P++) { //#23352 + $k[$j++] = 0; //#23352 + } //#23352 + $k[$j++] = 9999; //#23352 + $_.nextXterm = $a(); //#23352 + $k[$j++] = Infinity; //#23353 + for (var _7T = 0, _7U = $_.msglen; _7T < _7U; _7T++) { //#23353 + $k[$j++] = 0; //#23353 + } //#23353 + $k[$j++] = 9999; //#23353 + $_.nextNonX = $a(); //#23353 + for (var _7X = $_.msglen - 1; _7X >= 0; _7X -= 1) { //#23370 + $_.i = _7X; //#23355 + $_.barchar = $get($_.msg, $_.i); //#23356 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23359 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23358 + } //#23358 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23363 + $put($_.nextXterm, $_.i, 0); //#23361 + } else { //#23363 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23363 + } //#23363 + var _7u = $get($_.Xvals, $_.barchar) !== undefined; //#23365 + if (!_7u) { //#23368 + $put($_.nextNonX, $_.i, 0); //#23366 + } else { //#23368 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23368 + } //#23368 + } //#23368 + $k[$j++] = Infinity; //#23371 + var _82 = $_.nextXterm; //#23371 + for (var _83 = 0, _84 = _82.length; _83 < _84; _83++) { //#23371 + var _85 = $get(_82, _83); //#23371 + $k[$j++] = _85; //#23371 + if (_85 > 10000) { //#23371 + $j--; //#23371 + $k[$j++] = 10000; //#23371 + } //#23371 + } //#23371 + $_.nextXterm = $a(); //#23371 + $k[$j++] = Infinity; //#23372 + var _87 = $_.nextNonX; //#23372 + for (var _88 = 0, _89 = _87.length; _88 < _89; _88++) { //#23372 + var _8A = $get(_87, _88); //#23372 + $k[$j++] = _8A; //#23372 + if (_8A > 10000) { //#23372 + $j--; //#23372 + $k[$j++] = 10000; //#23372 + } //#23372 + } //#23372 + $_.nextNonX = $a(); //#23372 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23081 - }; //#23081 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23374 + }; //#23374 $_.isC = function() { - var _8E = $get($_.CNvals, $_.char) !== undefined; //#23082 - $k[$j++] = _8E; //#23082 - }; //#23082 + var _8G = $get($_.CNvals, $_.char) !== undefined; //#23375 + $k[$j++] = _8G; //#23375 + }; //#23375 $_.isT = function() { - var _8H = $get($_.TNvals, $_.char) !== undefined; //#23083 - $k[$j++] = _8H; //#23083 - }; //#23083 + var _8J = $get($_.TNvals, $_.char) !== undefined; //#23376 + $k[$j++] = _8J; //#23376 + }; //#23376 $_.isX = function() { - var _8K = $get($_.Xvals, $_.char) !== undefined; //#23084 - $k[$j++] = _8K; //#23084 - }; //#23084 + var _8M = $get($_.Xvals, $_.char) !== undefined; //#23377 + $k[$j++] = _8M; //#23377 + }; //#23377 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#23085 - }; //#23085 + $k[$j++] = $_.char > 127; //#23378 + }; //#23378 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#23086 - }; //#23086 + $k[$j++] = $_.char < 0; //#23379 + }; //#23379 $_.XtermFirst = function() { - var _8N = $k[--$j]; //#23087 - $k[$j++] = $lt($get($_.nextXterm, _8N), $get($_.nextNonX, _8N)); //#23087 - }; //#23087 + var _8P = $k[--$j]; //#23380 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#23380 + }; //#23380 $_.lookup = function() { - $_.ac = 1; //#23090 - $_.cc = 2; //#23090 - $_.tc = 2; //#23090 - $_.xc = 2; //#23090 - $_.bc = 3; //#23090 - if ($_.mode == $_.A) { //#23091 - $_.ac = 0; //#23091 - $_.cc = 1; //#23091 - $_.tc = 1; //#23091 - $_.xc = 1; //#23091 - $_.bc = 2; //#23091 - } //#23091 - if ($_.mode == $_.C) { //#23092 - $_.cc = 0; //#23092 - } //#23092 - if ($_.mode == $_.T) { //#23093 - $_.tc = 0; //#23093 - } //#23093 - if ($_.mode == $_.X) { //#23094 - $_.xc = 0; //#23094 - } //#23094 - if ($_.mode == $_.B) { //#23095 - $_.bc = 0; //#23095 - } //#23095 - for (var _8c = 0, _8d = 1; _8c < _8d; _8c++) { //#23123 - $_.k = 0; //#23097 - for (;;) { //#23122 - if (($_.i + $_.k) == $_.msglen) { //#23104 - var _8l = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23099 - $k[$j++] = true; //#23099 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#23099 - var _8q = $k[--$j]; //#23099 - $k[$j++] = _8q && ($_.bc <= Math.ceil($get(_8l, _8m))); //#23099 - } //#23099 - if ($k[--$j]) { //#23099 - $k[$j++] = $_.B; //#23099 - break; //#23099 - } //#23099 - var _8x = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23100 - $k[$j++] = true; //#23100 - for (var _8y = 0, _8z = _8x.length; _8y < _8z; _8y++) { //#23100 - var _92 = $k[--$j]; //#23100 - $k[$j++] = _92 && ($_.ac <= Math.ceil($get(_8x, _8y))); //#23100 - } //#23100 - if ($k[--$j]) { //#23100 - $k[$j++] = $_.A; //#23100 - break; //#23100 - } //#23100 - var _97 = $a([$_.tc, $_.xc]); //#23101 - $k[$j++] = true; //#23101 - for (var _98 = 0, _99 = _97.length; _98 < _99; _98++) { //#23101 - var _9C = $k[--$j]; //#23101 - $k[$j++] = _9C && (Math.ceil($_.cc) <= Math.ceil($get(_97, _98))); //#23101 - } //#23101 - if ($k[--$j]) { //#23101 - $k[$j++] = $_.C; //#23101 - break; //#23101 - } //#23101 - var _9G = $a([$_.xc]); //#23102 - $k[$j++] = true; //#23102 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#23102 - var _9L = $k[--$j]; //#23102 - $k[$j++] = _9L && (Math.ceil($_.tc) <= Math.ceil($get(_9G, _9H))); //#23102 - } //#23102 - if ($k[--$j]) { //#23102 - $k[$j++] = $_.T; //#23102 - break; //#23102 - } //#23102 - $k[$j++] = $_.X; //#23103 - break; //#23103 - } //#23103 - $_.char = $get($_.msg, $_.i + $_.k); //#23105 - $k[$j++] = 'ac'; //#23106 - $k[$j++] = $_.ac; //#23106 - $_.isD(); //#23106 - if ($k[--$j]) { //#23106 - var _9V = $k[--$j]; //#23106 - $k[$j++] = $f(_9V + (1 / 2)); //#23106 - } else { //#23106 - $_.isEA(); //#23106 - if ($k[--$j]) { //#23106 - var _9X = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9X) + 2; //#23106 - } else { //#23106 - var _9Y = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9Y) + 1; //#23106 - } //#23106 - } //#23106 - var _9Z = $k[--$j]; //#23106 - $_[$k[--$j]] = _9Z; //#23106 - $k[$j++] = 'cc'; //#23107 - $k[$j++] = $_.cc; //#23107 - $_.isC(); //#23107 - if ($k[--$j]) { //#23107 - var _9d = $k[--$j]; //#23107 - $k[$j++] = $f(_9d + 0.6666667); //#23107 - } else { //#23107 - $_.isEA(); //#23107 - if ($k[--$j]) { //#23107 - var _9f = $k[--$j]; //#23107 - $k[$j++] = $f(_9f + 2.6666667); //#23107 - } else { //#23107 - var _9g = $k[--$j]; //#23107 - $k[$j++] = $f(_9g + 1.3333334); //#23107 - } //#23107 - } //#23107 - var _9h = $k[--$j]; //#23107 - $_[$k[--$j]] = _9h; //#23107 - $k[$j++] = 'tc'; //#23108 - $k[$j++] = $_.tc; //#23108 - $_.isT(); //#23108 - if ($k[--$j]) { //#23108 - var _9l = $k[--$j]; //#23108 - $k[$j++] = $f(_9l + 0.6666667); //#23108 - } else { //#23108 - $_.isEA(); //#23108 - if ($k[--$j]) { //#23108 - var _9n = $k[--$j]; //#23108 - $k[$j++] = $f(_9n + 2.6666667); //#23108 - } else { //#23108 - var _9o = $k[--$j]; //#23108 - $k[$j++] = $f(_9o + 1.3333334); //#23108 - } //#23108 - } //#23108 - var _9p = $k[--$j]; //#23108 - $_[$k[--$j]] = _9p; //#23108 - $k[$j++] = 'xc'; //#23109 - $k[$j++] = $_.xc; //#23109 - $_.isX(); //#23109 - if ($k[--$j]) { //#23109 - var _9t = $k[--$j]; //#23109 - $k[$j++] = $f(_9t + 0.6666667); //#23109 - } else { //#23109 - $_.isEA(); //#23109 - if ($k[--$j]) { //#23109 - var _9v = $k[--$j]; //#23109 - $k[$j++] = $f(_9v + 4.3333334); //#23109 - } else { //#23109 - var _9w = $k[--$j]; //#23109 - $k[$j++] = $f(_9w + 3.3333334); //#23109 - } //#23109 - } //#23109 - var _9x = $k[--$j]; //#23109 - $_[$k[--$j]] = _9x; //#23109 - $k[$j++] = 'bc'; //#23110 - $k[$j++] = $_.bc; //#23110 - $_.isFN(); //#23110 - if ($k[--$j]) { //#23110 - var _A1 = $k[--$j]; //#23110 - $k[$j++] = $f(_A1 + 3); //#23110 - } else { //#23110 - var _A2 = $k[--$j]; //#23110 - $k[$j++] = $f(_A2 + 1); //#23110 - } //#23110 - var _A3 = $k[--$j]; //#23110 - $_[$k[--$j]] = _A3; //#23110 - if ($_.k >= 3) { //#23120 - var _AA = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23112 - $k[$j++] = true; //#23112 - for (var _AB = 0, _AC = _AA.length; _AB < _AC; _AB++) { //#23112 - var _AF = $k[--$j]; //#23112 - $k[$j++] = _AF && (($_.bc + 1) <= Math.ceil($get(_AA, _AB))); //#23112 - } //#23112 - if ($k[--$j]) { //#23112 - $k[$j++] = $_.B; //#23112 - break; //#23112 - } //#23112 - var _AM = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23113 - $k[$j++] = true; //#23113 - for (var _AN = 0, _AO = _AM.length; _AN < _AO; _AN++) { //#23113 - var _AR = $k[--$j]; //#23113 - $k[$j++] = _AR && (($_.ac + 1) <= Math.ceil($get(_AM, _AN))); //#23113 - } //#23113 - if ($k[--$j]) { //#23113 - $k[$j++] = $_.A; //#23113 - break; //#23113 - } //#23113 - var _AY = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23114 - $k[$j++] = true; //#23114 - for (var _AZ = 0, _Aa = _AY.length; _AZ < _Aa; _AZ++) { //#23114 - var _Ad = $k[--$j]; //#23114 - $k[$j++] = _Ad && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_AY, _AZ))); //#23114 - } //#23114 - if ($k[--$j]) { //#23114 - $k[$j++] = $_.T; //#23114 - break; //#23114 - } //#23114 - var _Ai = $a([$_.ac, $_.tc]); //#23115 - $k[$j++] = true; //#23115 - for (var _Aj = 0, _Ak = _Ai.length; _Aj < _Ak; _Aj++) { //#23115 - var _An = $k[--$j]; //#23115 - $k[$j++] = _An && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ai, _Aj))); //#23115 - } //#23115 - if ($k[--$j]) { //#23118 - if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23116 - $k[$j++] = $_.C; //#23116 - break; //#23116 - } //#23116 - if ($_.cc == $_.xc) { //#23117 - $k[$j++] = ($_.i + $_.k) + 1; //#23117 - $_.XtermFirst(); //#23117 - if ($k[--$j]) { //#23117 - $k[$j++] = $_.X; //#23117 - break; //#23117 - } else { //#23117 - $k[$j++] = $_.C; //#23117 - break; //#23117 - } //#23117 - } //#23117 - } //#23117 - var _B3 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23119 - $k[$j++] = true; //#23119 - for (var _B4 = 0, _B5 = _B3.length; _B4 < _B5; _B4++) { //#23119 - var _B8 = $k[--$j]; //#23119 - $k[$j++] = _B8 && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B3, _B4))); //#23119 - } //#23119 - if ($k[--$j]) { //#23119 - $k[$j++] = $_.X; //#23119 - break; //#23119 - } //#23119 - } //#23119 - $_.k = $_.k + 1; //#23121 - } //#23121 - } //#23121 - }; //#23121 + $_.ac = 1; //#23383 + $_.cc = 2; //#23383 + $_.tc = 2; //#23383 + $_.xc = 2; //#23383 + $_.bc = 3; //#23383 + if ($_.mode == $_.A) { //#23384 + $_.ac = 0; //#23384 + $_.cc = 1; //#23384 + $_.tc = 1; //#23384 + $_.xc = 1; //#23384 + $_.bc = 2; //#23384 + } //#23384 + if ($_.mode == $_.C) { //#23385 + $_.cc = 0; //#23385 + } //#23385 + if ($_.mode == $_.T) { //#23386 + $_.tc = 0; //#23386 + } //#23386 + if ($_.mode == $_.X) { //#23387 + $_.xc = 0; //#23387 + } //#23387 + if ($_.mode == $_.B) { //#23388 + $_.bc = 0; //#23388 + } //#23388 + for (var _8e = 0, _8f = 1; _8e < _8f; _8e++) { //#23416 + $_.k = 0; //#23390 + for (;;) { //#23415 + if (($_.i + $_.k) == $_.msglen) { //#23397 + var _8n = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23392 + $k[$j++] = true; //#23392 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#23392 + var _8s = $k[--$j]; //#23392 + $k[$j++] = _8s && ($_.bc <= Math.ceil($get(_8n, _8o))); //#23392 + } //#23392 + if ($k[--$j]) { //#23392 + $k[$j++] = $_.B; //#23392 + break; //#23392 + } //#23392 + var _8z = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23393 + $k[$j++] = true; //#23393 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#23393 + var _94 = $k[--$j]; //#23393 + $k[$j++] = _94 && ($_.ac <= Math.ceil($get(_8z, _90))); //#23393 + } //#23393 + if ($k[--$j]) { //#23393 + $k[$j++] = $_.A; //#23393 + break; //#23393 + } //#23393 + var _99 = $a([$_.tc, $_.xc]); //#23394 + $k[$j++] = true; //#23394 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#23394 + var _9E = $k[--$j]; //#23394 + $k[$j++] = _9E && (Math.ceil($_.cc) <= Math.ceil($get(_99, _9A))); //#23394 + } //#23394 + if ($k[--$j]) { //#23394 + $k[$j++] = $_.C; //#23394 + break; //#23394 + } //#23394 + var _9I = $a([$_.xc]); //#23395 + $k[$j++] = true; //#23395 + for (var _9J = 0, _9K = _9I.length; _9J < _9K; _9J++) { //#23395 + var _9N = $k[--$j]; //#23395 + $k[$j++] = _9N && (Math.ceil($_.tc) <= Math.ceil($get(_9I, _9J))); //#23395 + } //#23395 + if ($k[--$j]) { //#23395 + $k[$j++] = $_.T; //#23395 + break; //#23395 + } //#23395 + $k[$j++] = $_.X; //#23396 + break; //#23396 + } //#23396 + $_.char = $get($_.msg, $_.i + $_.k); //#23398 + $k[$j++] = 'ac'; //#23399 + $k[$j++] = $_.ac; //#23399 + $_.isD(); //#23399 + if ($k[--$j]) { //#23399 + var _9X = $k[--$j]; //#23399 + $k[$j++] = $f(_9X + (1 / 2)); //#23399 + } else { //#23399 + $_.isEA(); //#23399 + if ($k[--$j]) { //#23399 + var _9Z = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9Z) + 2; //#23399 + } else { //#23399 + var _9a = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9a) + 1; //#23399 + } //#23399 + } //#23399 + var _9b = $k[--$j]; //#23399 + $_[$k[--$j]] = _9b; //#23399 + $k[$j++] = 'cc'; //#23400 + $k[$j++] = $_.cc; //#23400 + $_.isC(); //#23400 + if ($k[--$j]) { //#23400 + var _9f = $k[--$j]; //#23400 + $k[$j++] = $f(_9f + 0.6666667); //#23400 + } else { //#23400 + $_.isEA(); //#23400 + if ($k[--$j]) { //#23400 + var _9h = $k[--$j]; //#23400 + $k[$j++] = $f(_9h + 2.6666667); //#23400 + } else { //#23400 + var _9i = $k[--$j]; //#23400 + $k[$j++] = $f(_9i + 1.3333334); //#23400 + } //#23400 + } //#23400 + var _9j = $k[--$j]; //#23400 + $_[$k[--$j]] = _9j; //#23400 + $k[$j++] = 'tc'; //#23401 + $k[$j++] = $_.tc; //#23401 + $_.isT(); //#23401 + if ($k[--$j]) { //#23401 + var _9n = $k[--$j]; //#23401 + $k[$j++] = $f(_9n + 0.6666667); //#23401 + } else { //#23401 + $_.isEA(); //#23401 + if ($k[--$j]) { //#23401 + var _9p = $k[--$j]; //#23401 + $k[$j++] = $f(_9p + 2.6666667); //#23401 + } else { //#23401 + var _9q = $k[--$j]; //#23401 + $k[$j++] = $f(_9q + 1.3333334); //#23401 + } //#23401 + } //#23401 + var _9r = $k[--$j]; //#23401 + $_[$k[--$j]] = _9r; //#23401 + $k[$j++] = 'xc'; //#23402 + $k[$j++] = $_.xc; //#23402 + $_.isX(); //#23402 + if ($k[--$j]) { //#23402 + var _9v = $k[--$j]; //#23402 + $k[$j++] = $f(_9v + 0.6666667); //#23402 + } else { //#23402 + $_.isEA(); //#23402 + if ($k[--$j]) { //#23402 + var _9x = $k[--$j]; //#23402 + $k[$j++] = $f(_9x + 4.3333334); //#23402 + } else { //#23402 + var _9y = $k[--$j]; //#23402 + $k[$j++] = $f(_9y + 3.3333334); //#23402 + } //#23402 + } //#23402 + var _9z = $k[--$j]; //#23402 + $_[$k[--$j]] = _9z; //#23402 + $k[$j++] = 'bc'; //#23403 + $k[$j++] = $_.bc; //#23403 + $_.isFN(); //#23403 + if ($k[--$j]) { //#23403 + var _A3 = $k[--$j]; //#23403 + $k[$j++] = $f(_A3 + 3); //#23403 + } else { //#23403 + var _A4 = $k[--$j]; //#23403 + $k[$j++] = $f(_A4 + 1); //#23403 + } //#23403 + var _A5 = $k[--$j]; //#23403 + $_[$k[--$j]] = _A5; //#23403 + if ($_.k >= 3) { //#23413 + var _AC = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23405 + $k[$j++] = true; //#23405 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#23405 + var _AH = $k[--$j]; //#23405 + $k[$j++] = _AH && (($_.bc + 1) <= Math.ceil($get(_AC, _AD))); //#23405 + } //#23405 + if ($k[--$j]) { //#23405 + $k[$j++] = $_.B; //#23405 + break; //#23405 + } //#23405 + var _AO = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23406 + $k[$j++] = true; //#23406 + for (var _AP = 0, _AQ = _AO.length; _AP < _AQ; _AP++) { //#23406 + var _AT = $k[--$j]; //#23406 + $k[$j++] = _AT && (($_.ac + 1) <= Math.ceil($get(_AO, _AP))); //#23406 + } //#23406 + if ($k[--$j]) { //#23406 + $k[$j++] = $_.A; //#23406 + break; //#23406 + } //#23406 + var _Aa = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23407 + $k[$j++] = true; //#23407 + for (var _Ab = 0, _Ac = _Aa.length; _Ab < _Ac; _Ab++) { //#23407 + var _Af = $k[--$j]; //#23407 + $k[$j++] = _Af && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_Aa, _Ab))); //#23407 + } //#23407 + if ($k[--$j]) { //#23407 + $k[$j++] = $_.T; //#23407 + break; //#23407 + } //#23407 + var _Ak = $a([$_.ac, $_.tc]); //#23408 + $k[$j++] = true; //#23408 + for (var _Al = 0, _Am = _Ak.length; _Al < _Am; _Al++) { //#23408 + var _Ap = $k[--$j]; //#23408 + $k[$j++] = _Ap && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ak, _Al))); //#23408 + } //#23408 + if ($k[--$j]) { //#23411 + if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23409 + $k[$j++] = $_.C; //#23409 + break; //#23409 + } //#23409 + if ($_.cc == $_.xc) { //#23410 + $k[$j++] = ($_.i + $_.k) + 1; //#23410 + $_.XtermFirst(); //#23410 + if ($k[--$j]) { //#23410 + $k[$j++] = $_.X; //#23410 + break; //#23410 + } else { //#23410 + $k[$j++] = $_.C; //#23410 + break; //#23410 + } //#23410 + } //#23410 + } //#23410 + var _B5 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23412 + $k[$j++] = true; //#23412 + for (var _B6 = 0, _B7 = _B5.length; _B6 < _B7; _B6++) { //#23412 + var _BA = $k[--$j]; //#23412 + $k[$j++] = _BA && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B5, _B6))); //#23412 + } //#23412 + if ($k[--$j]) { //#23412 + $k[$j++] = $_.X; //#23412 + break; //#23412 + } //#23412 + } //#23412 + $_.k = $_.k + 1; //#23414 + } //#23414 + } //#23414 + }; //#23414 $_.addtocws = function() { - var _BC = $k[--$j]; //#23127 - $k[$j++] = _BC; //#23129 - if ((_BC.length + $_.j) > 1480) { //#23129 - $j--; //#23128 - $k[$j++] = 'bwipp.codeoneTooLong#23128'; //#23128 - $k[$j++] = "Maximum length exceeded"; //#23128 - bwipp_raiseerror(); //#23128 - } //#23128 - var _BE = $k[--$j]; //#23130 - $puti($_.cws, $_.j, _BE); //#23130 - $_.j = _BE.length + $_.j; //#23131 - }; //#23131 + var _BE = $k[--$j]; //#23420 + $k[$j++] = _BE; //#23422 + if ((_BE.length + $_.j) > 1480) { //#23422 + $j--; //#23421 + $k[$j++] = 'bwipp.codeoneTooLong#23421'; //#23421 + $k[$j++] = "Maximum length exceeded"; //#23421 + bwipp_raiseerror(); //#23421 + } //#23421 + var _BG = $k[--$j]; //#23423 + $puti($_.cws, $_.j, _BG); //#23423 + $_.j = _BG.length + $_.j; //#23424 + }; //#23424 $_.tobin = function() { - var _BJ = $s($k[--$j]); //#23135 - $k[$j++] = _BJ; //#23135 - for (var _BL = 0, _BK = _BJ.length - 1; _BL <= _BK; _BL += 1) { //#23135 - var _BM = $k[--$j]; //#23135 - $put(_BM, _BL, 48); //#23135 - $k[$j++] = _BM; //#23135 - } //#23135 - var _BN = $k[--$j]; //#23136 - var _BQ = $cvrs($s(_BN.length), $k[--$j], 2); //#23136 - $puti(_BN, _BN.length - _BQ.length, _BQ); //#23136 - $k[$j++] = _BN; //#23137 - $k[$j++] = Infinity; //#23137 - var _BR = $k[--$j]; //#23137 - var _BS = $k[--$j]; //#23137 - $k[$j++] = _BR; //#23137 - $forall(_BS, function() { //#23137 - var _BT = $k[--$j]; //#23137 - $k[$j++] = $f(_BT - 48); //#23137 - }); //#23137 - var _BU = $a(); //#23137 - $k[$j++] = _BU; //#23137 - }; //#23137 + var _BL = $s($k[--$j]); //#23428 + $k[$j++] = _BL; //#23428 + for (var _BN = 0, _BM = _BL.length - 1; _BN <= _BM; _BN += 1) { //#23428 + var _BO = $k[--$j]; //#23428 + $put(_BO, _BN, 48); //#23428 + $k[$j++] = _BO; //#23428 + } //#23428 + var _BP = $k[--$j]; //#23429 + var _BS = $cvrs($s(_BP.length), $k[--$j], 2); //#23429 + $puti(_BP, _BP.length - _BS.length, _BS); //#23429 + $k[$j++] = _BP; //#23430 + $k[$j++] = Infinity; //#23430 + var _BT = $k[--$j]; //#23430 + var _BU = $k[--$j]; //#23430 + $k[$j++] = _BT; //#23430 + $forall(_BU, function() { //#23430 + var _BV = $k[--$j]; //#23430 + $k[$j++] = $f(_BV - 48); //#23430 + }); //#23430 + var _BW = $a(); //#23430 + $k[$j++] = _BW; //#23430 + }; //#23430 $_.encA = function() { - for (var _BV = 0, _BW = 1; _BV < _BW; _BV++) { //#23182 - if ($get($_.numD, $_.i) >= 21) { //#23146 - $_.Dbits = $a([1, 1, 1, 1]); //#23143 - $_.mode = $_.D; //#23144 - break; //#23145 - } //#23145 - var _Be = $get($_.numD, $_.i); //#23147 - if ((_Be >= 13) && ($f(_Be + $_.i) == $_.msglen)) { //#23151 - $_.Dbits = $a([1, 1, 1, 1]); //#23148 - $_.mode = $_.D; //#23149 - break; //#23150 - } //#23150 - if ($get($_.numD, $_.i) >= 2) { //#23156 - var _Bm = $s(2); //#23153 - $put(_Bm, 0, $get($_.msg, $_.i)); //#23153 - $put(_Bm, 1, $get($_.msg, $_.i + 1)); //#23153 - $k[$j++] = $get($_.Avals, _Bm); //#23153 - $_.addtocws(); //#23153 - $_.i = $_.i + 2; //#23154 - break; //#23155 - } //#23155 - if ($get($_.msg, $_.i) == $_.fnc1) { //#23172 - if ($get($_.numD, $_.i + 1) >= 15) { //#23164 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23159 - $_.addtocws(); //#23159 - $_.i = $_.i + 1; //#23160 - $_.Dbits = $a([]); //#23161 - $_.mode = $_.D; //#23162 - break; //#23163 - } //#23163 - var _CB = $get($_.numD, $_.i + 1); //#23165 - if ((_CB >= 7) && (($f($f(_CB + $_.i) + 1)) == $_.msglen)) { //#23171 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23166 - $_.addtocws(); //#23166 - $_.i = $_.i + 1; //#23167 - $_.Dbits = $a([]); //#23168 - $_.mode = $_.D; //#23169 - break; //#23170 - } //#23170 - } //#23170 - $k[$j++] = 'newmode'; //#23173 - $_.lookup(); //#23173 - var _CK = $k[--$j]; //#23173 - $_[$k[--$j]] = _CK; //#23173 - if ($_.newmode != $_.mode) { //#23178 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23175 - $_.addtocws(); //#23175 - $_.mode = $_.newmode; //#23176 - break; //#23177 - } //#23177 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23179 - $_.addtocws(); //#23179 - $_.i = $_.i + 1; //#23180 - break; //#23181 - } //#23181 - }; //#23181 + for (var _BX = 0, _BY = 1; _BX < _BY; _BX++) { //#23475 + if ($get($_.numD, $_.i) >= 21) { //#23439 + $_.Dbits = $a([1, 1, 1, 1]); //#23436 + $_.mode = $_.D; //#23437 + break; //#23438 + } //#23438 + var _Bg = $get($_.numD, $_.i); //#23440 + if ((_Bg >= 13) && ($f(_Bg + $_.i) == $_.msglen)) { //#23444 + $_.Dbits = $a([1, 1, 1, 1]); //#23441 + $_.mode = $_.D; //#23442 + break; //#23443 + } //#23443 + if ($get($_.numD, $_.i) >= 2) { //#23449 + var _Bo = $s(2); //#23446 + $put(_Bo, 0, $get($_.msg, $_.i)); //#23446 + $put(_Bo, 1, $get($_.msg, $_.i + 1)); //#23446 + $k[$j++] = $get($_.Avals, _Bo); //#23446 + $_.addtocws(); //#23446 + $_.i = $_.i + 2; //#23447 + break; //#23448 + } //#23448 + if ($get($_.msg, $_.i) == $_.fnc1) { //#23465 + if ($get($_.numD, $_.i + 1) >= 15) { //#23457 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23452 + $_.addtocws(); //#23452 + $_.i = $_.i + 1; //#23453 + $_.Dbits = $a([]); //#23454 + $_.mode = $_.D; //#23455 + break; //#23456 + } //#23456 + var _CD = $get($_.numD, $_.i + 1); //#23458 + if ((_CD >= 7) && (($f($f(_CD + $_.i) + 1)) == $_.msglen)) { //#23464 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23459 + $_.addtocws(); //#23459 + $_.i = $_.i + 1; //#23460 + $_.Dbits = $a([]); //#23461 + $_.mode = $_.D; //#23462 + break; //#23463 + } //#23463 + } //#23463 + $k[$j++] = 'newmode'; //#23466 + $_.lookup(); //#23466 + var _CM = $k[--$j]; //#23466 + $_[$k[--$j]] = _CM; //#23466 + if ($_.newmode != $_.mode) { //#23471 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23468 + $_.addtocws(); //#23468 + $_.mode = $_.newmode; //#23469 + break; //#23470 + } //#23470 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23472 + $_.addtocws(); //#23472 + $_.i = $_.i + 1; //#23473 + break; //#23474 + } //#23474 + }; //#23474 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#23186 - $k[$j++] = Infinity; //#23187 - for (var _Ci = 0, _Ch = $_.in.length - 1; _Ci <= _Ch; _Ci += 3) { //#23191 - var _Ck = $geti($_.in, _Ci, 3); //#23189 - $k[$j++] = 0; //#23189 - for (var _Cl = 0, _Cm = _Ck.length; _Cl < _Cm; _Cl++) { //#23189 - var _Co = $k[--$j]; //#23189 - $k[$j++] = $f(_Co + $get(_Ck, _Cl)) * 40; //#23189 - } //#23189 - var _Cq = (~~($k[--$j] / 40)) + 1; //#23190 - $k[$j++] = ~~(_Cq / 256); //#23190 - $k[$j++] = _Cq % 256; //#23190 - } //#23190 - $astore($a($counttomark())); //#23192 - var _Ct = $k[--$j]; //#23192 - var _Cu = $k[--$j]; //#23192 - $k[$j++] = _Ct; //#23192 - $k[$j++] = _Cu; //#23192 - $j--; //#23192 - }; //#23192 + $_.in = $k[--$j]; //#23479 + $k[$j++] = Infinity; //#23480 + for (var _Ck = 0, _Cj = $_.in.length - 1; _Ck <= _Cj; _Ck += 3) { //#23484 + var _Cm = $geti($_.in, _Ck, 3); //#23482 + $k[$j++] = 0; //#23482 + for (var _Cn = 0, _Co = _Cm.length; _Cn < _Co; _Cn++) { //#23482 + var _Cq = $k[--$j]; //#23482 + $k[$j++] = $f(_Cq + $get(_Cm, _Cn)) * 40; //#23482 + } //#23482 + var _Cs = (~~($k[--$j] / 40)) + 1; //#23483 + $k[$j++] = ~~(_Cs / 256); //#23483 + $k[$j++] = _Cs % 256; //#23483 + } //#23483 + $astore($a($counttomark())); //#23485 + var _Cv = $k[--$j]; //#23485 + var _Cw = $k[--$j]; //#23485 + $k[$j++] = _Cv; //#23485 + $k[$j++] = _Cw; //#23485 + $j--; //#23485 + }; //#23485 $_.encCTX = function() { - $_.p = 0; //#23196 - $_.ctxvals = $a(2220); //#23197 - for (;;) { //#23294 - if ($_.i == $_.msglen) { //#23201 - break; //#23201 - } //#23201 - if (($_.p % 3) == 0) { //#23289 - if ($get($_.numD, $_.i) >= 12) { //#23208 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23204 - $_.CTXvalstocws(); //#23204 - $_.addtocws(); //#23204 - $k[$j++] = $a([$_.unlcw]); //#23205 - $_.addtocws(); //#23205 - $_.mode = $_.A; //#23206 - break; //#23207 - } //#23207 - var _DA = $get($_.numD, $_.i); //#23209 - if ((_DA >= 8) && ($f(_DA + $_.i) == $_.msglen)) { //#23214 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23210 - $_.CTXvalstocws(); //#23210 - $_.addtocws(); //#23210 - $k[$j++] = $a([$_.unlcw]); //#23211 - $_.addtocws(); //#23211 - $_.mode = $_.A; //#23212 - break; //#23213 - } //#23213 - if ($_.mode == $_.X) { //#23236 - var _DP = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23216 - if (!_DP) { //#23224 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23217 - $_.CTXvalstocws(); //#23217 - $_.addtocws(); //#23217 - if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23221 - $k[$j++] = $a([$_.unlcw]); //#23220 - $_.addtocws(); //#23220 - } //#23220 - $_.mode = $_.A; //#23222 - break; //#23223 - } //#23223 - if (($_.i + 1) < $_.msglen) { //#23230 - var _Di = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23226 - if (!_Di) { //#23226 - break; //#23226 - } //#23226 - if (($_.i + 2) < $_.msglen) { //#23229 - var _Dp = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23228 - if (!_Dp) { //#23228 - break; //#23228 - } //#23228 - } //#23228 - } //#23228 - } else { //#23236 - $_.lookup(); //#23232 - if ($k[--$j] != $_.mode) { //#23237 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23233 - $_.CTXvalstocws(); //#23233 - $_.addtocws(); //#23233 - $k[$j++] = $a([$_.unlcw]); //#23234 - $_.addtocws(); //#23234 - $_.mode = $_.A; //#23235 - break; //#23236 - } //#23236 - } //#23236 - if (($_.msglen - $_.i) <= 3) { //#23288 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23240 - $k[$j++] = Infinity; //#23246 - var _E8 = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23242 - for (var _E9 = 0, _EA = _E8.length; _E9 < _EA; _E9++) { //#23248 - var _EB = $get(_E8, _E9); //#23248 - var _EF = $get($get($_.encvals, $_.mode), _EB) !== undefined; //#23243 - $k[$j++] = _EB; //#23247 - if (_EF) { //#23246 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23244 - } else { //#23246 - $j--; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - } //#23246 - } //#23246 - $_.remvals = $a(); //#23246 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23259 - $k[$j++] = Infinity; //#23254 - $aload($geti($_.ctxvals, 0, $_.p)); //#23253 - $aload($_.remvals); //#23254 - var _ES = $a(); //#23254 - $k[$j++] = _ES; //#23255 - $_.CTXvalstocws(); //#23255 - $_.addtocws(); //#23255 - $_.mode = $_.A; //#23256 - $_.i = $_.msglen; //#23257 - break; //#23258 - } //#23258 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23270 - $k[$j++] = Infinity; //#23265 - $aload($geti($_.ctxvals, 0, $_.p)); //#23263 - $aload($_.remvals); //#23264 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23265 - var _Ei = $a(); //#23265 - $k[$j++] = _Ei; //#23266 - $_.CTXvalstocws(); //#23266 - $_.addtocws(); //#23266 - $_.mode = $_.A; //#23267 - $_.i = $_.msglen; //#23268 - break; //#23269 - } //#23269 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23279 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23273 - $_.CTXvalstocws(); //#23273 - $_.addtocws(); //#23273 - $k[$j++] = $a([$_.unlcw]); //#23274 - $_.addtocws(); //#23274 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23275 - $_.addtocws(); //#23275 - $_.mode = $_.A; //#23276 - $_.i = $_.msglen; //#23277 - break; //#23278 - } //#23278 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23287 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23282 - $_.CTXvalstocws(); //#23282 - $_.addtocws(); //#23282 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23283 - $_.addtocws(); //#23283 - $_.mode = $_.A; //#23284 - $_.i = $_.msglen; //#23285 - break; //#23286 - } //#23286 - } //#23286 - } //#23286 - var _FH = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23290 - $puti($_.ctxvals, $_.p, _FH); //#23291 - $_.p = _FH.length + $_.p; //#23292 - $_.i = $_.i + 1; //#23293 - } //#23293 - if ($_.mode != $_.A) { //#23318 - for (;;) { //#23302 - if (($_.p % 3) == 0) { //#23299 - break; //#23299 - } //#23299 - $_.i = $_.i - 1; //#23300 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23301 - } //#23301 - $k[$j++] = Infinity; //#23304 - $aload($geti($_.ctxvals, 0, $_.p)); //#23304 - var _Fb = $a(); //#23304 - $k[$j++] = _Fb; //#23305 - $_.CTXvalstocws(); //#23305 - $_.addtocws(); //#23305 - $k[$j++] = $a([$_.unlcw]); //#23306 - $_.addtocws(); //#23306 - $_.mode = $_.A; //#23307 - if ($_.i != $_.msglen) { //#23317 - if ($get($_.numD, $_.i) >= 2) { //#23315 - var _Fk = $s(2); //#23311 - $put(_Fk, 0, $get($_.msg, $_.i)); //#23311 - $put(_Fk, 1, $get($_.msg, $_.i + 1)); //#23311 - $k[$j++] = $get($_.Avals, _Fk); //#23311 - $_.addtocws(); //#23311 - $_.i = $_.i + 2; //#23312 - } else { //#23315 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23314 - $_.addtocws(); //#23314 - $_.i = $_.i + 1; //#23315 - } //#23315 - } //#23315 - } //#23315 - }; //#23315 + $_.p = 0; //#23489 + $_.ctxvals = $a(2220); //#23490 + for (;;) { //#23587 + if ($_.i == $_.msglen) { //#23494 + break; //#23494 + } //#23494 + if (($_.p % 3) == 0) { //#23582 + if ($get($_.numD, $_.i) >= 12) { //#23501 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23497 + $_.CTXvalstocws(); //#23497 + $_.addtocws(); //#23497 + $k[$j++] = $a([$_.unlcw]); //#23498 + $_.addtocws(); //#23498 + $_.mode = $_.A; //#23499 + break; //#23500 + } //#23500 + var _DC = $get($_.numD, $_.i); //#23502 + if ((_DC >= 8) && ($f(_DC + $_.i) == $_.msglen)) { //#23507 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23503 + $_.CTXvalstocws(); //#23503 + $_.addtocws(); //#23503 + $k[$j++] = $a([$_.unlcw]); //#23504 + $_.addtocws(); //#23504 + $_.mode = $_.A; //#23505 + break; //#23506 + } //#23506 + if ($_.mode == $_.X) { //#23529 + var _DR = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23509 + if (!_DR) { //#23517 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23510 + $_.CTXvalstocws(); //#23510 + $_.addtocws(); //#23510 + if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23514 + $k[$j++] = $a([$_.unlcw]); //#23513 + $_.addtocws(); //#23513 + } //#23513 + $_.mode = $_.A; //#23515 + break; //#23516 + } //#23516 + if (($_.i + 1) < $_.msglen) { //#23523 + var _Dk = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23519 + if (!_Dk) { //#23519 + break; //#23519 + } //#23519 + if (($_.i + 2) < $_.msglen) { //#23522 + var _Dr = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23521 + if (!_Dr) { //#23521 + break; //#23521 + } //#23521 + } //#23521 + } //#23521 + } else { //#23529 + $_.lookup(); //#23525 + if ($k[--$j] != $_.mode) { //#23530 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23526 + $_.CTXvalstocws(); //#23526 + $_.addtocws(); //#23526 + $k[$j++] = $a([$_.unlcw]); //#23527 + $_.addtocws(); //#23527 + $_.mode = $_.A; //#23528 + break; //#23529 + } //#23529 + } //#23529 + if (($_.msglen - $_.i) <= 3) { //#23581 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23533 + $k[$j++] = Infinity; //#23534 + var _EA = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23535 + for (var _EB = 0, _EC = _EA.length; _EB < _EC; _EB++) { //#23541 + var _ED = $get(_EA, _EB); //#23541 + var _EH = $get($get($_.encvals, $_.mode), _ED) !== undefined; //#23536 + $k[$j++] = _ED; //#23540 + if (_EH) { //#23539 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23537 + } else { //#23539 + $j--; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + } //#23539 + } //#23539 + $_.remvals = $a(); //#23539 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23552 + $k[$j++] = Infinity; //#23545 + $aload($geti($_.ctxvals, 0, $_.p)); //#23546 + $aload($_.remvals); //#23547 + var _EU = $a(); //#23547 + $k[$j++] = _EU; //#23548 + $_.CTXvalstocws(); //#23548 + $_.addtocws(); //#23548 + $_.mode = $_.A; //#23549 + $_.i = $_.msglen; //#23550 + break; //#23551 + } //#23551 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23563 + $k[$j++] = Infinity; //#23555 + $aload($geti($_.ctxvals, 0, $_.p)); //#23556 + $aload($_.remvals); //#23557 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23558 + var _Ek = $a(); //#23558 + $k[$j++] = _Ek; //#23559 + $_.CTXvalstocws(); //#23559 + $_.addtocws(); //#23559 + $_.mode = $_.A; //#23560 + $_.i = $_.msglen; //#23561 + break; //#23562 + } //#23562 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23572 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23566 + $_.CTXvalstocws(); //#23566 + $_.addtocws(); //#23566 + $k[$j++] = $a([$_.unlcw]); //#23567 + $_.addtocws(); //#23567 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23568 + $_.addtocws(); //#23568 + $_.mode = $_.A; //#23569 + $_.i = $_.msglen; //#23570 + break; //#23571 + } //#23571 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23580 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23575 + $_.CTXvalstocws(); //#23575 + $_.addtocws(); //#23575 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23576 + $_.addtocws(); //#23576 + $_.mode = $_.A; //#23577 + $_.i = $_.msglen; //#23578 + break; //#23579 + } //#23579 + } //#23579 + } //#23579 + var _FJ = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23583 + $puti($_.ctxvals, $_.p, _FJ); //#23584 + $_.p = _FJ.length + $_.p; //#23585 + $_.i = $_.i + 1; //#23586 + } //#23586 + if ($_.mode != $_.A) { //#23611 + for (;;) { //#23595 + if (($_.p % 3) == 0) { //#23592 + break; //#23592 + } //#23592 + $_.i = $_.i - 1; //#23593 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23594 + } //#23594 + $k[$j++] = Infinity; //#23596 + $aload($geti($_.ctxvals, 0, $_.p)); //#23597 + var _Fd = $a(); //#23597 + $k[$j++] = _Fd; //#23598 + $_.CTXvalstocws(); //#23598 + $_.addtocws(); //#23598 + $k[$j++] = $a([$_.unlcw]); //#23599 + $_.addtocws(); //#23599 + $_.mode = $_.A; //#23600 + if ($_.i != $_.msglen) { //#23610 + if ($get($_.numD, $_.i) >= 2) { //#23608 + var _Fm = $s(2); //#23604 + $put(_Fm, 0, $get($_.msg, $_.i)); //#23604 + $put(_Fm, 1, $get($_.msg, $_.i + 1)); //#23604 + $k[$j++] = $get($_.Avals, _Fm); //#23604 + $_.addtocws(); //#23604 + $_.i = $_.i + 2; //#23605 + } else { //#23608 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23607 + $_.addtocws(); //#23607 + $_.i = $_.i + 1; //#23608 + } //#23608 + } //#23608 + } //#23608 + }; //#23608 $_.encD = function() { - for (;;) { //#23379 - if ($get($_.numD, $_.i) < 3) { //#23369 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23328 - $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23329 - if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23338 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23335 - $k[$j++] = Infinity; //#23335 - $aload($_.Dbits); //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $_.Dbits = $a(); //#23335 - } //#23335 - if (($_.Drem == 2) || ($_.Drem == 6)) { //#23336 - $k[$j++] = Infinity; //#23336 - $aload($_.Dbits); //#23336 - $k[$j++] = 0; //#23336 - $k[$j++] = 1; //#23336 - $_.Dbits = $a(); //#23336 - } //#23336 - break; //#23337 - } //#23337 - if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23343 - break; //#23343 - } //#23343 - if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23350 - $k[$j++] = Infinity; //#23348 - $aload($_.Dbits); //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $_.Dbits = $a(); //#23348 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23349 - } //#23349 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23361 - if ($get($_.numD, $_.i) >= 1) { //#23358 - $k[$j++] = Infinity; //#23355 - $aload($_.Dbits); //#23355 - $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23355 - $k[$j++] = 4; //#23355 - $_.tobin(); //#23355 - $aload($k[--$j]); //#23355 - $_.Dbits = $a(); //#23355 - $_.i = $_.i + 1; //#23356 - } else { //#23358 - $k[$j++] = Infinity; //#23358 - $aload($_.Dbits); //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $_.Dbits = $a(); //#23358 - } //#23358 - $_.Drem = $_.Drem - 4; //#23360 - } //#23360 - if ($_.Drem == 2) { //#23365 - $k[$j++] = Infinity; //#23363 - $aload($_.Dbits); //#23363 - $k[$j++] = 0; //#23363 - $k[$j++] = 1; //#23363 - $_.Dbits = $a(); //#23363 - $_.Drem = 0; //#23364 - } //#23364 - break; //#23367 - } //#23367 - $k[$j++] = Infinity; //#23375 - $aload($_.Dbits); //#23373 - var _H7 = $geti($_.msg, $_.i, 3); //#23374 - $k[$j++] = 0; //#23374 - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#23374 - var _HB = $k[--$j]; //#23374 - $k[$j++] = ($f(_HB + $f($get(_H7, _H8) - 48))) * 10; //#23374 - } //#23374 - var _HC = $k[--$j]; //#23374 - $k[$j++] = (~~(_HC / 10)) + 1; //#23375 - $k[$j++] = 10; //#23375 - $_.tobin(); //#23375 - $aload($k[--$j]); //#23375 - $_.Dbits = $a(); //#23375 - $_.i = $_.i + 3; //#23377 - } //#23377 - $k[$j++] = Infinity; //#23381 - for (var _HI = 0, _HH = $_.Dbits.length - 1; _HI <= _HH; _HI += 8) { //#23384 - var _HK = $geti($_.Dbits, _HI, 8); //#23383 - $k[$j++] = 0; //#23383 - for (var _HL = 0, _HM = _HK.length; _HL < _HM; _HL++) { //#23383 - var _HO = $k[--$j]; //#23383 - $k[$j++] = $f(_HO + $get(_HK, _HL)) * 2; //#23383 - } //#23383 - var _HP = $k[--$j]; //#23383 - $k[$j++] = ~~(_HP / 2); //#23383 - } //#23383 - $astore($a($counttomark())); //#23385 - var _HS = $k[--$j]; //#23385 - var _HT = $k[--$j]; //#23385 - $k[$j++] = _HS; //#23385 - $k[$j++] = _HT; //#23385 - $j--; //#23385 - $_.addtocws(); //#23385 - $_.mode = $_.A; //#23386 - }; //#23386 + for (;;) { //#23672 + if ($get($_.numD, $_.i) < 3) { //#23662 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23621 + $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23622 + if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23631 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23628 + $k[$j++] = Infinity; //#23628 + $aload($_.Dbits); //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $_.Dbits = $a(); //#23628 + } //#23628 + if (($_.Drem == 2) || ($_.Drem == 6)) { //#23629 + $k[$j++] = Infinity; //#23629 + $aload($_.Dbits); //#23629 + $k[$j++] = 0; //#23629 + $k[$j++] = 1; //#23629 + $_.Dbits = $a(); //#23629 + } //#23629 + break; //#23630 + } //#23630 + if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23636 + break; //#23636 + } //#23636 + if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23643 + $k[$j++] = Infinity; //#23641 + $aload($_.Dbits); //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $_.Dbits = $a(); //#23641 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23642 + } //#23642 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23654 + if ($get($_.numD, $_.i) >= 1) { //#23651 + $k[$j++] = Infinity; //#23648 + $aload($_.Dbits); //#23648 + $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23648 + $k[$j++] = 4; //#23648 + $_.tobin(); //#23648 + $aload($k[--$j]); //#23648 + $_.Dbits = $a(); //#23648 + $_.i = $_.i + 1; //#23649 + } else { //#23651 + $k[$j++] = Infinity; //#23651 + $aload($_.Dbits); //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $_.Dbits = $a(); //#23651 + } //#23651 + $_.Drem = $_.Drem - 4; //#23653 + } //#23653 + if ($_.Drem == 2) { //#23658 + $k[$j++] = Infinity; //#23656 + $aload($_.Dbits); //#23656 + $k[$j++] = 0; //#23656 + $k[$j++] = 1; //#23656 + $_.Dbits = $a(); //#23656 + $_.Drem = 0; //#23657 + } //#23657 + break; //#23660 + } //#23660 + $k[$j++] = Infinity; //#23665 + $aload($_.Dbits); //#23666 + var _H9 = $geti($_.msg, $_.i, 3); //#23667 + $k[$j++] = 0; //#23667 + for (var _HA = 0, _HB = _H9.length; _HA < _HB; _HA++) { //#23667 + var _HD = $k[--$j]; //#23667 + $k[$j++] = ($f(_HD + $f($get(_H9, _HA) - 48))) * 10; //#23667 + } //#23667 + var _HE = $k[--$j]; //#23667 + $k[$j++] = (~~(_HE / 10)) + 1; //#23668 + $k[$j++] = 10; //#23668 + $_.tobin(); //#23668 + $aload($k[--$j]); //#23668 + $_.Dbits = $a(); //#23668 + $_.i = $_.i + 3; //#23670 + } //#23670 + $k[$j++] = Infinity; //#23674 + for (var _HK = 0, _HJ = $_.Dbits.length - 1; _HK <= _HJ; _HK += 8) { //#23677 + var _HM = $geti($_.Dbits, _HK, 8); //#23676 + $k[$j++] = 0; //#23676 + for (var _HN = 0, _HO = _HM.length; _HN < _HO; _HN++) { //#23676 + var _HQ = $k[--$j]; //#23676 + $k[$j++] = $f(_HQ + $get(_HM, _HN)) * 2; //#23676 + } //#23676 + var _HR = $k[--$j]; //#23676 + $k[$j++] = ~~(_HR / 2); //#23676 + } //#23676 + $astore($a($counttomark())); //#23678 + var _HU = $k[--$j]; //#23678 + var _HV = $k[--$j]; //#23678 + $k[$j++] = _HU; //#23678 + $k[$j++] = _HV; //#23678 + $j--; //#23678 + $_.addtocws(); //#23678 + $_.mode = $_.A; //#23679 + }; //#23679 $_.encB = function() { - $_.p = 0; //#23391 - $_.bvals = $a(1480); //#23391 - for (;;) { //#23398 - if ($_.i == $_.msglen) { //#23392 - break; //#23392 - } //#23392 - if ($get($_.msg, $_.i) < 0) { //#23393 - break; //#23393 - } //#23393 - $_.lookup(); //#23394 - if ($k[--$j] != $_.mode) { //#23394 - break; //#23394 - } //#23394 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23395 - $_.p = $_.p + 1; //#23396 - $_.i = $_.i + 1; //#23397 - } //#23397 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23399 - $k[$j++] = Infinity; //#23406 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23404 - $k[$j++] = 0; //#23402 - } else { //#23404 - if ($_.p < 250) { //#23404 - $k[$j++] = $_.p; //#23404 - } else { //#23404 - $k[$j++] = (~~($_.p / 250)) + 249; //#23404 - $k[$j++] = $_.p % 250; //#23404 - } //#23404 - } //#23404 - $aload($geti($_.bvals, 0, $_.p)); //#23406 - $_.bvals = $a(); //#23406 - $k[$j++] = $_.bvals; //#23408 - $_.addtocws(); //#23408 - $_.mode = $_.A; //#23409 - }; //#23409 - $_.cws = $a(1480); //#23413 - $_.mode = $_.A; //#23414 - $_.i = 0; //#23414 - $_.j = 0; //#23414 - for (;;) { //#23417 - if ($_.i >= $_.msglen) { //#23415 - break; //#23415 - } //#23415 + $_.p = 0; //#23684 + $_.bvals = $a(1480); //#23684 + for (;;) { //#23691 + if ($_.i == $_.msglen) { //#23685 + break; //#23685 + } //#23685 + if ($get($_.msg, $_.i) < 0) { //#23686 + break; //#23686 + } //#23686 + $_.lookup(); //#23687 + if ($k[--$j] != $_.mode) { //#23687 + break; //#23687 + } //#23687 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23688 + $_.p = $_.p + 1; //#23689 + $_.i = $_.i + 1; //#23690 + } //#23690 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23692 + $k[$j++] = Infinity; //#23693 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23697 + $k[$j++] = 0; //#23695 + } else { //#23697 + if ($_.p < 250) { //#23697 + $k[$j++] = $_.p; //#23697 + } else { //#23697 + $k[$j++] = (~~($_.p / 250)) + 249; //#23697 + $k[$j++] = $_.p % 250; //#23697 + } //#23697 + } //#23697 + $aload($geti($_.bvals, 0, $_.p)); //#23699 + $_.bvals = $a(); //#23699 + $k[$j++] = $_.bvals; //#23701 + $_.addtocws(); //#23701 + $_.mode = $_.A; //#23702 + }; //#23702 + $_.cws = $a(1480); //#23706 + $_.mode = $_.A; //#23707 + $_.i = 0; //#23707 + $_.j = 0; //#23707 + for (;;) { //#23710 + if ($_.i >= $_.msglen) { //#23708 + break; //#23708 + } //#23708 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $_.mode)]() === true) { break; - } //#23416 - } //#23416 - $_.cws = $geti($_.cws, 0, $_.j); //#23418 - } //#23418 - var _IC = $_.metrics; //#23423 - for (var _ID = 0, _IE = _IC.length; _ID < _IE; _ID++) { //#23441 - $_.m = $get(_IC, _ID); //#23424 - $_.vers = $get($_.m, 0); //#23425 - $_.rows = $get($_.m, 1); //#23426 - $_.cols = $get($_.m, 2); //#23427 - $_.dcol = $get($_.m, 3); //#23428 - $_.dcws = $get($_.m, 4); //#23429 - $_.rscw = $get($_.m, 5); //#23430 - $_.rsbl = $get($_.m, 6); //#23431 - $_.riso = $get($_.m, 7); //#23432 - $_.risi = $get($_.m, 8); //#23433 - $_.risl = $get($_.m, 9); //#23434 - $_.dcpb = ~~($_.dcws / $_.rsbl); //#23435 - $_.ecpb = ~~($_.rscw / $_.rsbl); //#23436 - $_.okay = true; //#23437 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23438 - $_.okay = false; //#23438 - } //#23438 - if ($_.cws.length > $_.dcws) { //#23439 - $_.okay = false; //#23439 - } //#23439 - if ($_.okay) { //#23440 - break; //#23440 - } //#23440 - } //#23440 - if (!$_.okay) { //#23445 - $k[$j++] = 'bwipp.codeoneNoValidSymbol#23444'; //#23444 - $k[$j++] = "Maximum length exceeded"; //#23444 - bwipp_raiseerror(); //#23444 - } //#23444 - if (!$_.stype) { //#23451 - $k[$j++] = Infinity; //#23449 - $aload($_.cws); //#23449 - for (var _Ip = 0, _Iq = $f($_.dcws - $_.cws.length); _Ip < _Iq; _Ip++) { //#23449 - $k[$j++] = 129; //#23449 - } //#23449 - $_.cws = $a(); //#23449 - } else { //#23451 - $k[$j++] = Infinity; //#23451 - for (var _Iu = 0, _Iv = $f($_.dcws - $_.cws.length); _Iu < _Iv; _Iu++) { //#23451 - $k[$j++] = 0; //#23451 - } //#23451 - $aload($_.cws); //#23451 - $_.cws = $a(); //#23451 - } //#23451 - var _Iz = $get($_.options, 'debugcws') !== undefined; //#23454 - if (_Iz) { //#23454 - $k[$j++] = 'bwipp.debugcws#23454'; //#23454 - $k[$j++] = $_.cws; //#23454 - bwipp_raiseerror(); //#23454 - } //#23454 - $_.cwbs = $a($_.rsbl); //#23457 - $_.ecbs = $a($_.rsbl); //#23458 - for (var _J7 = 0, _J6 = $f($_.rsbl - 1); _J7 <= _J6; _J7 += 1) { //#23467 - $_.i = _J7; //#23460 - $_.cwb = $a($_.dcpb); //#23461 - for (var _JC = 0, _JB = $_.dcpb - 1; _JC <= _JB; _JC += 1) { //#23465 - $_.j = _JC; //#23463 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23464 - } //#23464 - $put($_.cwbs, $_.i, $_.cwb); //#23466 - } //#23466 - var _JO = $_.stype ? 32 : 256; //#23470 - $_.gf = _JO; //#23470 - $_['gf-1'] = $_.gf - 1; //#23471 - var _JR = $_.stype ? 37 : 301; //#23472 - $_.pm = _JR; //#23472 - $k[$j++] = Infinity; //#23473 - $k[$j++] = 1; //#23473 - for (var _JT = 0, _JU = $_["gf-1"]; _JT < _JU; _JT++) { //#23473 - var _JV = $k[--$j]; //#23473 - var _JW = _JV * 2; //#23473 - $k[$j++] = _JV; //#23473 - $k[$j++] = _JW; //#23473 - if (_JW >= $_.gf) { //#23473 - var _JZ = $k[--$j]; //#23473 - $k[$j++] = _JZ ^ $_.pm; //#23473 - } //#23473 - } //#23473 - $_.rsalog = $a(); //#23473 - $_.rslog = $a($_.gf); //#23474 - for (var _Jf = 1, _Je = $_["gf-1"]; _Jf <= _Je; _Jf += 1) { //#23475 - $put($_.rslog, $get($_.rsalog, _Jf), _Jf); //#23475 - } //#23475 + } //#23709 + } //#23709 + $_.cws = $geti($_.cws, 0, $_.j); //#23711 + } //#23711 + var _IE = $_.metrics; //#23716 + for (var _IF = 0, _IG = _IE.length; _IF < _IG; _IF++) { //#23734 + $_.m = $get(_IE, _IF); //#23717 + $_.vers = $get($_.m, 0); //#23718 + $_.rows = $get($_.m, 1); //#23719 + $_.cols = $get($_.m, 2); //#23720 + $_.dcol = $get($_.m, 3); //#23721 + $_.dcws = $get($_.m, 4); //#23722 + $_.rscw = $get($_.m, 5); //#23723 + $_.rsbl = $get($_.m, 6); //#23724 + $_.riso = $get($_.m, 7); //#23725 + $_.risi = $get($_.m, 8); //#23726 + $_.risl = $get($_.m, 9); //#23727 + $_.dcpb = ~~($_.dcws / $_.rsbl); //#23728 + $_.ecpb = ~~($_.rscw / $_.rsbl); //#23729 + $_.okay = true; //#23730 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23731 + $_.okay = false; //#23731 + } //#23731 + if ($_.cws.length > $_.dcws) { //#23732 + $_.okay = false; //#23732 + } //#23732 + if ($_.okay) { //#23733 + break; //#23733 + } //#23733 + } //#23733 + if (!$_.okay) { //#23738 + $k[$j++] = 'bwipp.codeoneNoValidSymbol#23737'; //#23737 + $k[$j++] = "Maximum length exceeded"; //#23737 + bwipp_raiseerror(); //#23737 + } //#23737 + if (!$_.stype) { //#23744 + $k[$j++] = Infinity; //#23742 + $aload($_.cws); //#23742 + for (var _Ir = 0, _Is = $f($_.dcws - $_.cws.length); _Ir < _Is; _Ir++) { //#23742 + $k[$j++] = 129; //#23742 + } //#23742 + $_.cws = $a(); //#23742 + } else { //#23744 + $k[$j++] = Infinity; //#23744 + for (var _Iw = 0, _Ix = $f($_.dcws - $_.cws.length); _Iw < _Ix; _Iw++) { //#23744 + $k[$j++] = 0; //#23744 + } //#23744 + $aload($_.cws); //#23744 + $_.cws = $a(); //#23744 + } //#23744 + var _J1 = $get($_.options, 'debugcws') !== undefined; //#23747 + if (_J1) { //#23747 + $k[$j++] = 'bwipp.debugcws#23747'; //#23747 + $k[$j++] = $_.cws; //#23747 + bwipp_raiseerror(); //#23747 + } //#23747 + $_.cwbs = $a($_.rsbl); //#23750 + $_.ecbs = $a($_.rsbl); //#23751 + for (var _J9 = 0, _J8 = $f($_.rsbl - 1); _J9 <= _J8; _J9 += 1) { //#23760 + $_.i = _J9; //#23753 + $_.cwb = $a($_.dcpb); //#23754 + for (var _JE = 0, _JD = $_.dcpb - 1; _JE <= _JD; _JE += 1) { //#23758 + $_.j = _JE; //#23756 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23757 + } //#23757 + $put($_.cwbs, $_.i, $_.cwb); //#23759 + } //#23759 + var _JQ = $_.stype ? 32 : 256; //#23763 + $_.gf = _JQ; //#23763 + $_['gf-1'] = $_.gf - 1; //#23764 + var _JT = $_.stype ? 37 : 301; //#23765 + $_.pm = _JT; //#23765 + $k[$j++] = Infinity; //#23766 + $k[$j++] = 1; //#23766 + for (var _JV = 0, _JW = $_["gf-1"]; _JV < _JW; _JV++) { //#23766 + var _JX = $k[--$j]; //#23766 + var _JY = _JX * 2; //#23766 + $k[$j++] = _JX; //#23766 + $k[$j++] = _JY; //#23766 + if (_JY >= $_.gf) { //#23766 + var _Jb = $k[--$j]; //#23766 + $k[$j++] = _Jb ^ $_.pm; //#23766 + } //#23766 + } //#23766 + $_.rsalog = $a(); //#23766 + $_.rslog = $a($_.gf); //#23767 + for (var _Jh = 1, _Jg = $_["gf-1"]; _Jh <= _Jg; _Jh += 1) { //#23768 + $put($_.rslog, $get($_.rsalog, _Jh), _Jh); //#23768 + } //#23768 $_.rsprod = function() { - var _Jj = $k[--$j]; //#23477 - var _Jk = $k[--$j]; //#23477 - $k[$j++] = _Jk; //#23481 - $k[$j++] = _Jj; //#23481 - if ((_Jj != 0) && (_Jk != 0)) { //#23480 - var _Jn = $get($_.rslog, $k[--$j]); //#23478 - var _Jt = $get($_.rsalog, $f(_Jn + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23478 - $k[$j++] = _Jt; //#23478 - } else { //#23480 - $j -= 2; //#23480 - $k[$j++] = 0; //#23480 - } //#23480 - }; //#23480 - $k[$j++] = Infinity; //#23485 - $k[$j++] = 1; //#23485 - for (var _Jv = 0, _Jw = $_.ecpb; _Jv < _Jw; _Jv++) { //#23485 - $k[$j++] = 0; //#23485 - } //#23485 - $_.coeffs = $a(); //#23485 - for (var _K0 = 0, _Jz = $_.ecpb - 1; _K0 <= _Jz; _K0 += 1) { //#23494 - $_.i = _K0; //#23487 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23488 - for (var _K7 = $_.i; _K7 >= 1; _K7 -= 1) { //#23492 - $_.j = _K7; //#23490 - $k[$j++] = $_.coeffs; //#23491 - $k[$j++] = $_.j; //#23491 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#23491 - $k[$j++] = $get($_.coeffs, $_.j); //#23491 - $k[$j++] = $get($_.rsalog, $_.i); //#23491 - $_.rsprod(); //#23491 - var _KJ = $k[--$j]; //#23491 - var _KK = $k[--$j]; //#23491 - var _KL = $k[--$j]; //#23491 - $put($k[--$j], _KL, $xo(_KK, _KJ)); //#23491 - } //#23491 - $k[$j++] = $_.coeffs; //#23493 - $k[$j++] = 0; //#23493 - $k[$j++] = $get($_.coeffs, 0); //#23493 - $k[$j++] = $get($_.rsalog, $_.i); //#23493 - $_.rsprod(); //#23493 - var _KT = $k[--$j]; //#23493 - var _KU = $k[--$j]; //#23493 - $put($k[--$j], _KU, _KT); //#23493 - } //#23493 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23495 - for (var _Kb = 0, _Ka = $_.cwbs.length - 1; _Kb <= _Ka; _Kb += 1) { //#23510 - $_.i = _Kb; //#23499 - $k[$j++] = Infinity; //#23500 - $aload($get($_.cwbs, $_.i)); //#23500 - for (var _Kg = 0, _Kh = $_.ecpb; _Kg < _Kh; _Kg++) { //#23500 - $k[$j++] = 0; //#23500 - } //#23500 - $_.rscws = $a(); //#23500 - for (var _Kl = 0, _Kk = $_.dcpb - 1; _Kl <= _Kk; _Kl += 1) { //#23508 - $_.m = _Kl; //#23502 - $_.k = $get($_.rscws, $_.m); //#23503 - for (var _Kr = 0, _Kq = $_.ecpb - 1; _Kr <= _Kq; _Kr += 1) { //#23507 - $_.j = _Kr; //#23505 - $k[$j++] = $_.rscws; //#23506 - $k[$j++] = ($_.m + $_.j) + 1; //#23506 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23506 - $k[$j++] = $_.k; //#23506 - $_.rsprod(); //#23506 - var _L4 = $k[--$j]; //#23506 - var _L5 = $k[--$j]; //#23506 - $put($k[--$j], _L5, $xo(_L4, $get($_.rscws, ($_.m + $_.j) + 1))); //#23506 - } //#23506 - } //#23506 - $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23509 - } //#23509 - $k[$j++] = Infinity; //#23513 - $aload($_.cws); //#23513 - for (var _LF = 0, _LG = $_.rscw; _LF < _LG; _LF++) { //#23513 - $k[$j++] = 0; //#23513 - } //#23513 - $_.cws = $a(); //#23513 - for (var _LK = 0, _LJ = $f($_.rscw - 1); _LK <= _LJ; _LK += 1) { //#23517 - $_.i = _LK; //#23515 - $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23516 - } //#23516 - var _LY = $_.stype ? 5 : 8; //#23520 - $_.mmat = $a($f($_.dcws + $_.rscw) * _LY); //#23520 - $_.r = 0; //#23521 - $_.c = 0; //#23521 - var _Lb = $_.stype ? 2 : 1; //#23522 - for (var _Le = 0, _Lf = _Lb, _Ld = $_.cws.length - 1; _Lf < 0 ? _Le >= _Ld : _Le <= _Ld; _Le += _Lf) { //#23543 - $_.i = _Le; //#23523 - if (!$_.stype) { //#23537 - var _Li = $strcpy($s(8), "00000000"); //#23525 - var _Ln = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23525 - $puti(_Li, 8 - _Ln.length, _Ln); //#23526 - $k[$j++] = _Li; //#23526 - $k[$j++] = Infinity; //#23526 - var _Lo = $k[--$j]; //#23526 - var _Lp = $k[--$j]; //#23526 - $k[$j++] = _Lo; //#23526 - $forall(_Lp, function() { //#23526 - var _Lq = $k[--$j]; //#23526 - $k[$j++] = $f(_Lq - 48); //#23526 - }); //#23526 - var _Lr = $a(); //#23526 - $_.top = $geti(_Lr, 0, 4); //#23527 - $_.bot = $geti(_Lr, 4, 4); //#23528 - } else { //#23537 - var _Lv = $strcpy($s(5), "00000"); //#23530 - var _M0 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23530 - $puti(_Lv, 5 - _M0.length, _M0); //#23531 - $k[$j++] = _Lv; //#23531 - $k[$j++] = Infinity; //#23531 - var _M1 = $k[--$j]; //#23531 - var _M2 = $k[--$j]; //#23531 - $k[$j++] = _M1; //#23531 - $forall(_M2, function() { //#23531 - var _M3 = $k[--$j]; //#23531 - $k[$j++] = $f(_M3 - 48); //#23531 - }); //#23531 - $_.c1 = $a(); //#23532 - var _M6 = $strcpy($s(5), "00000"); //#23533 - var _MB = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23533 - $puti(_M6, 5 - _MB.length, _MB); //#23534 - $k[$j++] = _M6; //#23534 - $k[$j++] = Infinity; //#23534 - var _MC = $k[--$j]; //#23534 - var _MD = $k[--$j]; //#23534 - $k[$j++] = _MC; //#23534 - $forall(_MD, function() { //#23534 - var _ME = $k[--$j]; //#23534 - $k[$j++] = $f(_ME - 48); //#23534 - }); //#23534 - $_.c2 = $a(); //#23535 - $k[$j++] = Infinity; //#23536 - $aload($geti($_.c1, 0, 3)); //#23536 - $aload($geti($_.c2, 0, 2)); //#23536 - $_.top = $a(); //#23536 - $k[$j++] = Infinity; //#23537 - $aload($geti($_.c1, 3, 2)); //#23537 - $aload($geti($_.c2, 2, 3)); //#23537 - $_.bot = $a(); //#23537 - } //#23537 - $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23539 - $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23540 - $_.c = $_.c + $_.top.length; //#23541 - if ($_.c == $_.dcol) { //#23542 - $_.c = 0; //#23542 - $_.r = $_.r + 2; //#23542 - } //#23542 - } //#23542 + var _Jl = $k[--$j]; //#23770 + var _Jm = $k[--$j]; //#23770 + $k[$j++] = _Jm; //#23774 + $k[$j++] = _Jl; //#23774 + if ((_Jl != 0) && (_Jm != 0)) { //#23773 + var _Jp = $get($_.rslog, $k[--$j]); //#23771 + var _Jv = $get($_.rsalog, $f(_Jp + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23771 + $k[$j++] = _Jv; //#23771 + } else { //#23773 + $j -= 2; //#23773 + $k[$j++] = 0; //#23773 + } //#23773 + }; //#23773 + $k[$j++] = Infinity; //#23778 + $k[$j++] = 1; //#23778 + for (var _Jx = 0, _Jy = $_.ecpb; _Jx < _Jy; _Jx++) { //#23778 + $k[$j++] = 0; //#23778 + } //#23778 + $_.coeffs = $a(); //#23778 + for (var _K2 = 0, _K1 = $_.ecpb - 1; _K2 <= _K1; _K2 += 1) { //#23787 + $_.i = _K2; //#23780 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23781 + for (var _K9 = $_.i; _K9 >= 1; _K9 -= 1) { //#23785 + $_.j = _K9; //#23783 + $k[$j++] = $_.coeffs; //#23784 + $k[$j++] = $_.j; //#23784 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#23784 + $k[$j++] = $get($_.coeffs, $_.j); //#23784 + $k[$j++] = $get($_.rsalog, $_.i); //#23784 + $_.rsprod(); //#23784 + var _KL = $k[--$j]; //#23784 + var _KM = $k[--$j]; //#23784 + var _KN = $k[--$j]; //#23784 + $put($k[--$j], _KN, $xo(_KM, _KL)); //#23784 + } //#23784 + $k[$j++] = $_.coeffs; //#23786 + $k[$j++] = 0; //#23786 + $k[$j++] = $get($_.coeffs, 0); //#23786 + $k[$j++] = $get($_.rsalog, $_.i); //#23786 + $_.rsprod(); //#23786 + var _KV = $k[--$j]; //#23786 + var _KW = $k[--$j]; //#23786 + $put($k[--$j], _KW, _KV); //#23786 + } //#23786 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23788 + for (var _Kd = 0, _Kc = $_.cwbs.length - 1; _Kd <= _Kc; _Kd += 1) { //#23803 + $_.i = _Kd; //#23792 + $k[$j++] = Infinity; //#23793 + $aload($get($_.cwbs, $_.i)); //#23793 + for (var _Ki = 0, _Kj = $_.ecpb; _Ki < _Kj; _Ki++) { //#23793 + $k[$j++] = 0; //#23793 + } //#23793 + $_.rscws = $a(); //#23793 + for (var _Kn = 0, _Km = $_.dcpb - 1; _Kn <= _Km; _Kn += 1) { //#23801 + $_.m = _Kn; //#23795 + $_.k = $get($_.rscws, $_.m); //#23796 + for (var _Kt = 0, _Ks = $_.ecpb - 1; _Kt <= _Ks; _Kt += 1) { //#23800 + $_.j = _Kt; //#23798 + $k[$j++] = $_.rscws; //#23799 + $k[$j++] = ($_.m + $_.j) + 1; //#23799 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23799 + $k[$j++] = $_.k; //#23799 + $_.rsprod(); //#23799 + var _L6 = $k[--$j]; //#23799 + var _L7 = $k[--$j]; //#23799 + $put($k[--$j], _L7, $xo(_L6, $get($_.rscws, ($_.m + $_.j) + 1))); //#23799 + } //#23799 + } //#23799 + $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23802 + } //#23802 + $k[$j++] = Infinity; //#23806 + $aload($_.cws); //#23806 + for (var _LH = 0, _LI = $_.rscw; _LH < _LI; _LH++) { //#23806 + $k[$j++] = 0; //#23806 + } //#23806 + $_.cws = $a(); //#23806 + for (var _LM = 0, _LL = $f($_.rscw - 1); _LM <= _LL; _LM += 1) { //#23810 + $_.i = _LM; //#23808 + $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23809 + } //#23809 + var _La = $_.stype ? 5 : 8; //#23813 + $_.mmat = $a($f($_.dcws + $_.rscw) * _La); //#23813 + $_.r = 0; //#23814 + $_.c = 0; //#23814 + var _Ld = $_.stype ? 2 : 1; //#23815 + for (var _Lg = 0, _Lh = _Ld, _Lf = $_.cws.length - 1; _Lh < 0 ? _Lg >= _Lf : _Lg <= _Lf; _Lg += _Lh) { //#23836 + $_.i = _Lg; //#23816 + if (!$_.stype) { //#23830 + var _Lk = $strcpy($s(8), "00000000"); //#23818 + var _Lp = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23818 + $puti(_Lk, 8 - _Lp.length, _Lp); //#23819 + $k[$j++] = _Lk; //#23819 + $k[$j++] = Infinity; //#23819 + var _Lq = $k[--$j]; //#23819 + var _Lr = $k[--$j]; //#23819 + $k[$j++] = _Lq; //#23819 + $forall(_Lr, function() { //#23819 + var _Ls = $k[--$j]; //#23819 + $k[$j++] = $f(_Ls - 48); //#23819 + }); //#23819 + var _Lt = $a(); //#23819 + $_.top = $geti(_Lt, 0, 4); //#23820 + $_.bot = $geti(_Lt, 4, 4); //#23821 + } else { //#23830 + var _Lx = $strcpy($s(5), "00000"); //#23823 + var _M2 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23823 + $puti(_Lx, 5 - _M2.length, _M2); //#23824 + $k[$j++] = _Lx; //#23824 + $k[$j++] = Infinity; //#23824 + var _M3 = $k[--$j]; //#23824 + var _M4 = $k[--$j]; //#23824 + $k[$j++] = _M3; //#23824 + $forall(_M4, function() { //#23824 + var _M5 = $k[--$j]; //#23824 + $k[$j++] = $f(_M5 - 48); //#23824 + }); //#23824 + $_.c1 = $a(); //#23825 + var _M8 = $strcpy($s(5), "00000"); //#23826 + var _MD = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23826 + $puti(_M8, 5 - _MD.length, _MD); //#23827 + $k[$j++] = _M8; //#23827 + $k[$j++] = Infinity; //#23827 + var _ME = $k[--$j]; //#23827 + var _MF = $k[--$j]; //#23827 + $k[$j++] = _ME; //#23827 + $forall(_MF, function() { //#23827 + var _MG = $k[--$j]; //#23827 + $k[$j++] = $f(_MG - 48); //#23827 + }); //#23827 + $_.c2 = $a(); //#23828 + $k[$j++] = Infinity; //#23829 + $aload($geti($_.c1, 0, 3)); //#23829 + $aload($geti($_.c2, 0, 2)); //#23829 + $_.top = $a(); //#23829 + $k[$j++] = Infinity; //#23830 + $aload($geti($_.c1, 3, 2)); //#23830 + $aload($geti($_.c2, 2, 3)); //#23830 + $_.bot = $a(); //#23830 + } //#23830 + $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23832 + $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23833 + $_.c = $_.c + $_.top.length; //#23834 + if ($_.c == $_.dcol) { //#23835 + $_.c = 0; //#23835 + $_.r = $_.r + 2; //#23835 + } //#23835 + } //#23835 $_.mmv = function() { - var _Mg = $k[--$j]; //#23546 - var _Mh = $k[--$j]; //#23546 - $k[$j++] = $f(_Mh + (_Mg * $_.cols)); //#23546 - }; //#23546 - $k[$j++] = Infinity; //#23547 - for (var _Mk = 0, _Ml = $_.rows * $_.cols; _Mk < _Ml; _Mk++) { //#23547 - $k[$j++] = -1; //#23547 - } //#23547 - $_.pixs = $a(); //#23547 - var _NH = $a([function() { - for (var _Mo = 0, _Mp = $_.cols; _Mo < _Mp; _Mo++) { //#23551 - $k[$j++] = 0; //#23551 - } //#23551 + var _Mi = $k[--$j]; //#23839 + var _Mj = $k[--$j]; //#23839 + $k[$j++] = $f(_Mj + (_Mi * $_.cols)); //#23839 + }; //#23839 + $k[$j++] = Infinity; //#23840 + for (var _Mm = 0, _Mn = $_.rows * $_.cols; _Mm < _Mn; _Mm++) { //#23840 + $k[$j++] = -1; //#23840 + } //#23840 + $_.pixs = $a(); //#23840 + var _NJ = $a([function() { + for (var _Mq = 0, _Mr = $_.cols; _Mq < _Mr; _Mq++) { //#23844 + $k[$j++] = 0; //#23844 + } //#23844 }, function() { - for (var _Mr = 0, _Ms = $_.cols; _Mr < _Ms; _Mr++) { //#23552 - $k[$j++] = 1; //#23552 - } //#23552 + for (var _Mt = 0, _Mu = $_.cols; _Mt < _Mu; _Mt++) { //#23845 + $k[$j++] = 1; //#23845 + } //#23845 }, function() { - $k[$j++] = 0; //#23553 - for (var _Mu = 0, _Mv = $f($_.cols - 2); _Mu < _Mv; _Mu++) { //#23553 - $k[$j++] = 1; //#23553 - } //#23553 - $k[$j++] = 0; //#23553 + $k[$j++] = 0; //#23846 + for (var _Mw = 0, _Mx = $f($_.cols - 2); _Mw < _Mx; _Mw++) { //#23846 + $k[$j++] = 1; //#23846 + } //#23846 + $k[$j++] = 0; //#23846 }, function() { - $k[$j++] = 0; //#23554 - $k[$j++] = 1; //#23554 - for (var _Mx = 0, _My = $f($_.cols - 4); _Mx < _My; _Mx++) { //#23554 - $k[$j++] = 0; //#23554 - } //#23554 - $k[$j++] = 1; //#23554 - $k[$j++] = 0; //#23554 + $k[$j++] = 0; //#23847 + $k[$j++] = 1; //#23847 + for (var _Mz = 0, _N0 = $f($_.cols - 4); _Mz < _N0; _Mz++) { //#23847 + $k[$j++] = 0; //#23847 + } //#23847 + $k[$j++] = 1; //#23847 + $k[$j++] = 0; //#23847 }, function() { - for (var _N0 = 0, _N1 = ~~($f($_.cols - 1) / 2); _N0 < _N1; _N0++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 - $k[$j++] = 1; //#23555 - for (var _N3 = 0, _N4 = ~~($f($_.cols - 1) / 2); _N3 < _N4; _N3++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 + for (var _N2 = 0, _N3 = ~~($f($_.cols - 1) / 2); _N2 < _N3; _N2++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 + $k[$j++] = 1; //#23848 + for (var _N5 = 0, _N6 = ~~($f($_.cols - 1) / 2); _N5 < _N6; _N5++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 }, function() { - for (var _N6 = 0, _N7 = ~~($f($_.cols - 1) / 2); _N6 < _N7; _N6++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 - $k[$j++] = 0; //#23556 - for (var _N9 = 0, _NA = ~~($f($_.cols - 1) / 2); _N9 < _NA; _N9++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 + for (var _N8 = 0, _N9 = ~~($f($_.cols - 1) / 2); _N8 < _N9; _N8++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 + $k[$j++] = 0; //#23849 + for (var _NB = 0, _NC = ~~($f($_.cols - 1) / 2); _NB < _NC; _NB++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 }, function() { - $k[$j++] = 1; //#23557 - for (var _NC = 0, _ND = $f($_.cols - 2); _NC < _ND; _NC++) { //#23557 - $k[$j++] = 0; //#23557 - } //#23557 - $k[$j++] = 1; //#23557 + $k[$j++] = 1; //#23850 + for (var _NE = 0, _NF = $f($_.cols - 2); _NE < _NF; _NE++) { //#23850 + $k[$j++] = 0; //#23850 + } //#23850 + $k[$j++] = 1; //#23850 }, function() { - $k[$j++] = 1; //#23558 - $k[$j++] = 0; //#23558 - for (var _NF = 0, _NG = $f($_.cols - 4); _NF < _NG; _NF++) { //#23558 - $k[$j++] = 1; //#23558 - } //#23558 - $k[$j++] = 0; //#23558 - $k[$j++] = 1; //#23558 - }]); //#23558 - $_.artifact = _NH; //#23559 - if (!bwipp_codeone.__23573__) { //#23573 - $_ = Object.create($_); //#23573 - var _NI = new Map([ + $k[$j++] = 1; //#23851 + $k[$j++] = 0; //#23851 + for (var _NH = 0, _NI = $f($_.cols - 4); _NH < _NI; _NH++) { //#23851 + $k[$j++] = 1; //#23851 + } //#23851 + $k[$j++] = 0; //#23851 + $k[$j++] = 1; //#23851 + }]); //#23851 + $_.artifact = _NJ; //#23852 + if (!bwipp_codeone.__23866__) { //#23866 + $_ = Object.create($_); //#23866 + var _NK = new Map([ ["A", "121343"], ["B", "12134343"], ["C", "12121343"], @@ -29680,57 +30121,57 @@ function bwipp_codeone() { ["H", "121212134343"], ["S", "56661278"], ["T", "5666666666127878"] - ]); //#23571 - $_.cpatmap = _NI; //#23572 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23572 - bwipp_codeone.__23573__ = 1; //#23572 - $_ = Object.getPrototypeOf($_); //#23572 - } //#23572 - $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23574 - $k[$j++] = $_.pixs; //#23575 - $k[$j++] = 0; //#23575 - $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23575 - $_.mmv(); //#23575 - $k[$j++] = Infinity; //#23576 - $forall($_.cpat, function() { //#23576 + ]); //#23864 + $_.cpatmap = _NK; //#23865 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23865 + bwipp_codeone.__23866__ = 1; //#23865 + $_ = Object.getPrototypeOf($_); //#23865 + } //#23865 + $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23867 + $k[$j++] = $_.pixs; //#23868 + $k[$j++] = 0; //#23868 + $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23868 + $_.mmv(); //#23868 + $k[$j++] = Infinity; //#23869 + $forall($_.cpat, function() { //#23869 if ($get($_.artifact, $f($k[--$j] - 49))() === true) { return true; - } //#23576 - }); //#23576 - var _NV = $a(); //#23576 - var _NW = $k[--$j]; //#23576 - $puti($k[--$j], _NW, _NV); //#23576 - for (var _Na = 0, _NZ = $f($_.risl - 1); _Na <= _NZ; _Na += 1) { //#23591 - $_.i = _Na; //#23580 - for (var _Nf = $_.riso, _Ng = $_.risi, _Ne = $f($_.cols - 1); _Ng < 0 ? _Nf >= _Ne : _Nf <= _Ne; _Nf += _Ng) { //#23590 - $_.j = _Nf; //#23582 - var _Ni = (($_.i % 12) == 0) ? 1 : 0; //#23583 - var _Nj = $a([1, _Ni]); //#23583 - $k[$j++] = _Nj; //#23584 - $k[$j++] = _Nj; //#23584 - $k[$j++] = $_.pixs; //#23584 - $k[$j++] = $_.j; //#23584 - $k[$j++] = $_.i; //#23584 - $_.mmv(); //#23584 - var _Nn = $k[--$j]; //#23585 - var _No = $k[--$j]; //#23585 - $puti(_No, _Nn, $k[--$j]); //#23585 - if ($_.i != $f($_.risl - 1)) { //#23589 - $k[$j++] = $_.pixs; //#23587 - $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23587 - $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23587 - $_.mmv(); //#23587 - var _Nx = $k[--$j]; //#23588 - var _Ny = $k[--$j]; //#23588 - $puti(_Ny, _Nx, $k[--$j]); //#23588 - } else { //#23589 - $j--; //#23589 - } //#23589 - } //#23589 - } //#23589 - if (!bwipp_codeone.__23611__) { //#23611 - $_ = Object.create($_); //#23611 - var _Od = new Map([ + } //#23869 + }); //#23869 + var _NX = $a(); //#23869 + var _NY = $k[--$j]; //#23869 + $puti($k[--$j], _NY, _NX); //#23869 + for (var _Nc = 0, _Nb = $f($_.risl - 1); _Nc <= _Nb; _Nc += 1) { //#23884 + $_.i = _Nc; //#23873 + for (var _Nh = $_.riso, _Ni = $_.risi, _Ng = $f($_.cols - 1); _Ni < 0 ? _Nh >= _Ng : _Nh <= _Ng; _Nh += _Ni) { //#23883 + $_.j = _Nh; //#23875 + var _Nk = (($_.i % 12) == 0) ? 1 : 0; //#23876 + var _Nl = $a([1, _Nk]); //#23876 + $k[$j++] = _Nl; //#23877 + $k[$j++] = _Nl; //#23877 + $k[$j++] = $_.pixs; //#23877 + $k[$j++] = $_.j; //#23877 + $k[$j++] = $_.i; //#23877 + $_.mmv(); //#23877 + var _Np = $k[--$j]; //#23878 + var _Nq = $k[--$j]; //#23878 + $puti(_Nq, _Np, $k[--$j]); //#23878 + if ($_.i != $f($_.risl - 1)) { //#23882 + $k[$j++] = $_.pixs; //#23880 + $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23880 + $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23880 + $_.mmv(); //#23880 + var _Nz = $k[--$j]; //#23881 + var _O0 = $k[--$j]; //#23881 + $puti(_O0, _Nz, $k[--$j]); //#23881 + } else { //#23882 + $j--; //#23882 + } //#23882 + } //#23882 + } //#23882 + if (!bwipp_codeone.__23904__) { //#23904 + $_ = Object.create($_); //#23904 + var _Of = new Map([ ["A", $a([$a([12, 5])])], ["B", $a([$a([16, 7])])], ["C", $a([$a([26, 12])])], @@ -29745,936 +30186,952 @@ function bwipp_codeone() { ["T-16", $a([$a([8, 10])])], ["T-32", $a([$a([16, 10]), $a([16, 12])])], ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] - ]); //#23609 - $_.blackdotmap = _Od; //#23610 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23610 - bwipp_codeone.__23611__ = 1; //#23610 - $_ = Object.getPrototypeOf($_); //#23610 - } //#23610 - $forall($get($_.blackdotmap, $_.vers), function() { //#23612 - var _Oj = $k[--$j]; //#23612 - $k[$j++] = $_.pixs; //#23612 - $aload(_Oj); //#23612 - $_.mmv(); //#23612 - var _Ok = $k[--$j]; //#23612 - $put($k[--$j], _Ok, 1); //#23612 - }); //#23612 - $_.j = 0; //#23615 - for (var _Oo = 0, _On = $_.pixs.length - 1; _Oo <= _On; _Oo += 1) { //#23622 - $_.i = _Oo; //#23617 - if ($get($_.pixs, $_.i) == -1) { //#23621 - $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23619 - $_.j = $_.j + 1; //#23620 - } //#23620 - } //#23620 - var _P4 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows / 72) * 2], - ["width", ($_.cols / 72) * 2], - ["opt", $_.options] - ]); //#23632 - $k[$j++] = _P4; //#23635 - if (!$_.dontdraw) { //#23635 - bwipp_renmatrix(); //#23635 - } //#23635 - $_ = Object.getPrototypeOf($_); //#23637 - $_ = Object.getPrototypeOf($_); //#23639 -} - + ]); //#23902 + $_.blackdotmap = _Of; //#23903 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23903 + bwipp_codeone.__23904__ = 1; //#23903 + $_ = Object.getPrototypeOf($_); //#23903 + } //#23903 + $forall($get($_.blackdotmap, $_.vers), function() { //#23905 + var _Ol = $k[--$j]; //#23905 + $k[$j++] = $_.pixs; //#23905 + $aload(_Ol); //#23905 + $_.mmv(); //#23905 + var _Om = $k[--$j]; //#23905 + $put($k[--$j], _Om, 1); //#23905 + }); //#23905 + $_.j = 0; //#23908 + for (var _Oq = 0, _Op = $_.pixs.length - 1; _Oq <= _Op; _Oq += 1) { //#23915 + $_.i = _Oq; //#23910 + if ($get($_.pixs, $_.i) == -1) { //#23914 + $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23912 + $_.j = $_.j + 1; //#23913 + } //#23913 + } //#23913 + $k[$j++] = Infinity; //#23918 + $k[$j++] = 'ren'; //#23930 + $k[$j++] = bwipp_renmatrix; //#23930 + $k[$j++] = 'pixs'; //#23930 + $k[$j++] = $_.pixs; //#23930 + $k[$j++] = 'pixx'; //#23930 + $k[$j++] = $_.cols; //#23930 + $k[$j++] = 'pixy'; //#23930 + $k[$j++] = $_.rows; //#23930 + $k[$j++] = 'height'; //#23930 + $k[$j++] = ($_.rows / 72) * 2; //#23930 + $k[$j++] = 'width'; //#23930 + $k[$j++] = ($_.cols / 72) * 2; //#23930 + if ($_.stype || $_.ttype) { //#23930 + $k[$j++] = 'borderleft'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'borderright'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'bordertop'; //#23929 + $k[$j++] = 0; //#23929 + $k[$j++] = 'borderbottom'; //#23929 + $k[$j++] = 1; //#23929 + } //#23929 + $k[$j++] = 'opt'; //#23931 + $k[$j++] = $_.options; //#23931 + var _P8 = $d(); //#23931 + $k[$j++] = _P8; //#23934 + if (!$_.dontdraw) { //#23934 + bwipp_renmatrix(); //#23934 + } //#23934 + $_ = Object.getPrototypeOf($_); //#23936 + $_ = Object.getPrototypeOf($_); //#23938 +} //bwipp_codeone function bwipp_hanxin() { - $_ = Object.create($_); //#23670 - $_.dontdraw = false; //#23673 - $_.version = "unset"; //#23674 - $_.eclevel = "L2"; //#23675 - $_.parse = false; //#23676 - $_.parsefnc = false; //#23677 - $_.mask = -1; //#23678 - $k[$j++] = $_; //#23680 - bwipp_processoptions(); //#23680 - $_.options = $k[--$j]; //#23680 - $_.barcode = $k[--$j]; //#23681 - if ($eq($_.barcode, "")) { //#23685 - $k[$j++] = 'bwipp.hanxinEmptyData#23684'; //#23684 - $k[$j++] = "The data must not be empty"; //#23684 - bwipp_raiseerror(); //#23684 - } //#23684 - if ($ne($_.version, "unset")) { //#23697 - var _5 = $_.version.length; //#23688 - var _6 = (_5 >= 1) && (_5 <= 2); //#23688 - $k[$j++] = _6; //#23693 - if (_6) { //#23693 - $j--; //#23689 - var _7 = $_.version; //#23690 - $k[$j++] = true; //#23690 - for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23690 - var _A = $get(_7, _8); //#23690 - if ((_A < 48) || (_A > 57)) { //#23690 - $j--; //#23690 - $k[$j++] = false; //#23690 - } //#23690 - } //#23690 - var _B = $k[--$j]; //#23690 - $k[$j++] = _B; //#23692 - if (_B) { //#23692 - $j--; //#23691 - var _D = $cvi($_.version); //#23691 - $k[$j++] = (_D >= 1) && (_D <= 84); //#23691 - } //#23691 - } //#23691 - if ($nt($k[--$j])) { //#23696 - $k[$j++] = 'bwipp.hanxinInvalidVersion#23695'; //#23695 - $k[$j++] = "Valid versions are 1 to 84"; //#23695 - bwipp_raiseerror(); //#23695 - } //#23695 - } //#23695 - var _G = $_.eclevel.length == 2; //#23699 - $k[$j++] = _G; //#23703 - if (_G) { //#23703 - $j--; //#23700 - $k[$j++] = $geti($_.eclevel, 0, 1); //#23702 - if ($eq("L", "L")) { //#23702 - $j--; //#23701 - var _L = $get($_.eclevel, 1) - 48; //#23701 - $k[$j++] = (_L >= 1) && (_L <= 4); //#23701 - } //#23701 - } //#23701 - if ($nt($k[--$j])) { //#23706 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23705'; //#23705 - $k[$j++] = "Valid error correction levels are L1 to L4"; //#23705 - bwipp_raiseerror(); //#23705 - } //#23705 - if ($_.mask != -1) { //#23712 - if (($_.mask < 1) || ($_.mask > 4)) { //#23711 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23710'; //#23710 - $k[$j++] = "The valid masks are 1 to 4"; //#23710 - bwipp_raiseerror(); //#23710 - } //#23710 - } //#23710 - bwipp_loadctx(bwipp_hanxin) //#23714 + $_ = Object.create($_); //#23969 + $_.dontdraw = false; //#23972 + $_.version = "unset"; //#23973 + $_.eclevel = "L2"; //#23974 + $_.parse = false; //#23975 + $_.parsefnc = false; //#23976 + $_.mask = -1; //#23977 + $k[$j++] = $_; //#23979 + bwipp_processoptions(); //#23979 + $_.options = $k[--$j]; //#23979 + $_.barcode = $k[--$j]; //#23980 + if ($eq($_.barcode, "")) { //#23984 + $k[$j++] = 'bwipp.hanxinEmptyData#23983'; //#23983 + $k[$j++] = "The data must not be empty"; //#23983 + bwipp_raiseerror(); //#23983 + } //#23983 + if ($ne($_.version, "unset")) { //#23996 + var _5 = $_.version.length; //#23987 + var _6 = (_5 >= 1) && (_5 <= 2); //#23987 + $k[$j++] = _6; //#23992 + if (_6) { //#23992 + $j--; //#23988 + var _7 = $_.version; //#23989 + $k[$j++] = true; //#23989 + for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23989 + var _A = $get(_7, _8); //#23989 + if ((_A < 48) || (_A > 57)) { //#23989 + $j--; //#23989 + $k[$j++] = false; //#23989 + } //#23989 + } //#23989 + var _B = $k[--$j]; //#23989 + $k[$j++] = _B; //#23991 + if (_B) { //#23991 + $j--; //#23990 + var _D = $cvi($_.version); //#23990 + $k[$j++] = (_D >= 1) && (_D <= 84); //#23990 + } //#23990 + } //#23990 + if ($nt($k[--$j])) { //#23995 + $k[$j++] = 'bwipp.hanxinInvalidVersion#23994'; //#23994 + $k[$j++] = "Valid versions are 1 to 84"; //#23994 + bwipp_raiseerror(); //#23994 + } //#23994 + } //#23994 + var _G = $_.eclevel.length == 2; //#23998 + $k[$j++] = _G; //#24002 + if (_G) { //#24002 + $j--; //#23999 + $k[$j++] = $geti($_.eclevel, 0, 1); //#24001 + if ($eq("L", "L")) { //#24001 + $j--; //#24000 + var _L = $get($_.eclevel, 1) - 48; //#24000 + $k[$j++] = (_L >= 1) && (_L <= 4); //#24000 + } //#24000 + } //#24000 + if ($nt($k[--$j])) { //#24005 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24004'; //#24004 + $k[$j++] = "Valid error correction levels are L1 to L4"; //#24004 + bwipp_raiseerror(); //#24004 + } //#24004 + if ($_.mask != -1) { //#24011 + if (($_.mask < 1) || ($_.mask > 4)) { //#24010 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24009'; //#24009 + $k[$j++] = "The valid masks are 1 to 4"; //#24009 + bwipp_raiseerror(); //#24009 + } //#24009 + } //#24009 + bwipp_loadctx(bwipp_hanxin) //#24013 var _S = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc] - ]); //#23719 - $_.fncvals = _S; //#23721 - $k[$j++] = 'msg'; //#23722 - $k[$j++] = $_.barcode; //#23722 - $k[$j++] = $_.fncvals; //#23722 - bwipp_parseinput(); //#23722 - var _V = $k[--$j]; //#23722 - $_[$k[--$j]] = _V; //#23722 - $_.msglen = $_.msg.length; //#23723 + ]); //#24018 + $_.fncvals = _S; //#24020 + $k[$j++] = 'msg'; //#24021 + $k[$j++] = $_.barcode; //#24021 + $k[$j++] = $_.fncvals; //#24021 + bwipp_parseinput(); //#24021 + var _V = $k[--$j]; //#24021 + $_[$k[--$j]] = _V; //#24021 + $_.msglen = $_.msg.length; //#24022 $_.tobin = function() { - var _Z = $s($k[--$j]); //#23726 - $k[$j++] = _Z; //#23726 - for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#23726 - var _c = $k[--$j]; //#23726 - $put(_c, _b, 48); //#23726 - $k[$j++] = _c; //#23726 - } //#23726 - var _d = $k[--$j]; //#23727 - var _g = $cvrs($s(_d.length), $k[--$j], 2); //#23727 - $puti(_d, _d.length - _g.length, _g); //#23728 - $k[$j++] = _d; //#23728 - }; //#23728 - $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#23732 - $puti($_.bits, 0, "0011"); //#23733 - $k[$j++] = $_.bits; //#23734 - $k[$j++] = 4; //#23734 - $k[$j++] = $_.msglen; //#23734 - $k[$j++] = 13; //#23734 - $_.tobin(); //#23734 - var _m = $k[--$j]; //#23734 - var _n = $k[--$j]; //#23734 - $puti($k[--$j], _n, _m); //#23734 - for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#23738 - $_.i = _r; //#23736 - $k[$j++] = $_.bits; //#23737 - $k[$j++] = 17 + ($_.i * 8); //#23737 - $k[$j++] = $get($_.msg, $_.i); //#23737 - $k[$j++] = 8; //#23737 - $_.tobin(); //#23737 - var _x = $k[--$j]; //#23737 - var _y = $k[--$j]; //#23737 - $puti($k[--$j], _y, _x); //#23737 - } //#23737 - if (!bwipp_hanxin.__24081__) { //#24081 - $_ = Object.create($_); //#24081 - var _24 = $a([0, -1, -1]); //#23764 - $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24080 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24080 - bwipp_hanxin.__24081__ = 1; //#24080 - $_ = Object.getPrototypeOf($_); //#24080 - } //#24080 - $_.eclval = $get($_.eclevel, 1) - 49; //#24083 - var _Ig = $_.metrics; //#24084 - for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24102 - $_.m = $get(_Ig, _Ih); //#24085 - $_.vers = $get($_.m, 0); //#24086 - $_.size = $get($_.m, 1); //#24087 - $_.alnk = $get($_.m, 2); //#24088 - $_.alnn = $get($_.m, 3); //#24089 - $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24090 - $_.nmod = $get($_.m, 4); //#24091 - $_.ncws = ~~($_.nmod / 8); //#24092 - $_.rbit = $_.nmod % 8; //#24093 - $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24094 - var _J2 = $_.ecbs; //#24095 - $k[$j++] = 'ecws'; //#24095 - $k[$j++] = 0; //#24095 - for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24095 - var _J5 = $get(_J2, _J3); //#24095 - var _J8 = $k[--$j]; //#24095 - $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24095 - } //#24095 - var _J9 = $k[--$j]; //#24095 - $_[$k[--$j]] = _J9; //#24095 - $_.dcws = $f($_.ncws - $_.ecws); //#24096 - $_.dmod = $_.dcws * 8; //#24097 - $_.okay = true; //#24098 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24099 - $_.okay = false; //#24099 - } //#24099 - if ($_.bits.length > $_.dmod) { //#24100 - $_.okay = false; //#24100 - } //#24100 - if ($_.okay) { //#24101 - break; //#24101 - } //#24101 - } //#24101 - if (!$_.okay) { //#24106 - $k[$j++] = 'bwipp.hanxinNoValidSymbol#24105'; //#24105 - $k[$j++] = "Maximum length exceeded or invalid content"; //#24105 - bwipp_raiseerror(); //#24105 - } //#24105 - $_.version = $_.vers; //#24108 - $_.msgbits = $_.bits; //#24109 - $_.e1nb = $get($get($_.ecbs, 0), 0); //#24110 - $_.e2nb = $get($get($_.ecbs, 1), 0); //#24110 - $_.e3nb = $get($get($_.ecbs, 2), 0); //#24110 - $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24111 - $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24111 - $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24111 - $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24112 - $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24112 - $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24112 - $_.pad = $s($_.dmod); //#24115 - for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24116 - $put($_.pad, _Js, 48); //#24116 - } //#24116 - $puti($_.pad, 0, $_.msgbits); //#24117 - $_.cws = $a($_.dcws); //#24120 - for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24130 - $_.c = _K0; //#24122 - $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24123 - $_.cw = 0; //#24124 - for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24128 - $_.i = _K4; //#24126 - $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24127 - } //#24127 - $put($_.cws, $_.c, $_.cw); //#24129 - } //#24129 + var _Z = $s($k[--$j]); //#24025 + $k[$j++] = _Z; //#24025 + for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#24025 + var _c = $k[--$j]; //#24025 + $put(_c, _b, 48); //#24025 + $k[$j++] = _c; //#24025 + } //#24025 + var _d = $k[--$j]; //#24026 + var _g = $cvrs($s(_d.length), $k[--$j], 2); //#24026 + $puti(_d, _d.length - _g.length, _g); //#24027 + $k[$j++] = _d; //#24027 + }; //#24027 + $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#24031 + $puti($_.bits, 0, "0011"); //#24032 + $k[$j++] = $_.bits; //#24033 + $k[$j++] = 4; //#24033 + $k[$j++] = $_.msglen; //#24033 + $k[$j++] = 13; //#24033 + $_.tobin(); //#24033 + var _m = $k[--$j]; //#24033 + var _n = $k[--$j]; //#24033 + $puti($k[--$j], _n, _m); //#24033 + for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#24037 + $_.i = _r; //#24035 + $k[$j++] = $_.bits; //#24036 + $k[$j++] = 17 + ($_.i * 8); //#24036 + $k[$j++] = $get($_.msg, $_.i); //#24036 + $k[$j++] = 8; //#24036 + $_.tobin(); //#24036 + var _x = $k[--$j]; //#24036 + var _y = $k[--$j]; //#24036 + $puti($k[--$j], _y, _x); //#24036 + } //#24036 + if (!bwipp_hanxin.__24380__) { //#24380 + $_ = Object.create($_); //#24380 + var _24 = $a([0, -1, -1]); //#24063 + $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24379 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24379 + bwipp_hanxin.__24380__ = 1; //#24379 + $_ = Object.getPrototypeOf($_); //#24379 + } //#24379 + $_.eclval = $get($_.eclevel, 1) - 49; //#24382 + var _Ig = $_.metrics; //#24383 + for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24401 + $_.m = $get(_Ig, _Ih); //#24384 + $_.vers = $get($_.m, 0); //#24385 + $_.size = $get($_.m, 1); //#24386 + $_.alnk = $get($_.m, 2); //#24387 + $_.alnn = $get($_.m, 3); //#24388 + $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24389 + $_.nmod = $get($_.m, 4); //#24390 + $_.ncws = ~~($_.nmod / 8); //#24391 + $_.rbit = $_.nmod % 8; //#24392 + $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24393 + var _J2 = $_.ecbs; //#24394 + $k[$j++] = 'ecws'; //#24394 + $k[$j++] = 0; //#24394 + for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24394 + var _J5 = $get(_J2, _J3); //#24394 + var _J8 = $k[--$j]; //#24394 + $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24394 + } //#24394 + var _J9 = $k[--$j]; //#24394 + $_[$k[--$j]] = _J9; //#24394 + $_.dcws = $f($_.ncws - $_.ecws); //#24395 + $_.dmod = $_.dcws * 8; //#24396 + $_.okay = true; //#24397 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24398 + $_.okay = false; //#24398 + } //#24398 + if ($_.bits.length > $_.dmod) { //#24399 + $_.okay = false; //#24399 + } //#24399 + if ($_.okay) { //#24400 + break; //#24400 + } //#24400 + } //#24400 + if (!$_.okay) { //#24405 + $k[$j++] = 'bwipp.hanxinNoValidSymbol#24404'; //#24404 + $k[$j++] = "Maximum length exceeded or invalid content"; //#24404 + bwipp_raiseerror(); //#24404 + } //#24404 + $_.version = $_.vers; //#24407 + $_.msgbits = $_.bits; //#24408 + $_.e1nb = $get($get($_.ecbs, 0), 0); //#24409 + $_.e2nb = $get($get($_.ecbs, 1), 0); //#24409 + $_.e3nb = $get($get($_.ecbs, 2), 0); //#24409 + $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24410 + $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24410 + $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24410 + $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24411 + $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24411 + $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24411 + $_.pad = $s($_.dmod); //#24414 + for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24415 + $put($_.pad, _Js, 48); //#24415 + } //#24415 + $puti($_.pad, 0, $_.msgbits); //#24416 + $_.cws = $a($_.dcws); //#24419 + for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24429 + $_.c = _K0; //#24421 + $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24422 + $_.cw = 0; //#24423 + for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24427 + $_.i = _K4; //#24425 + $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24426 + } //#24426 + $put($_.cws, $_.c, $_.cw); //#24428 + } //#24428 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#24134 - $_.rsgf = $k[--$j]; //#24135 - $_.rsnc = $k[--$j]; //#24136 - $_.rscws = $k[--$j]; //#24137 - $k[$j++] = Infinity; //#24140 - $k[$j++] = 1; //#24140 - for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24140 - var _KK = $k[--$j]; //#24140 - var _KL = _KK * 2; //#24140 - $k[$j++] = _KK; //#24140 - $k[$j++] = _KL; //#24140 - if (_KL >= $_.rsgf) { //#24140 - var _KO = $k[--$j]; //#24140 - $k[$j++] = $xo(_KO, $_.rspm); //#24140 - } //#24140 - } //#24140 - $_.rsalog = $a(); //#24140 - $_.rslog = $a($_.rsgf); //#24141 - for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24142 - $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24142 - } //#24142 + $_.rspm = $k[--$j]; //#24433 + $_.rsgf = $k[--$j]; //#24434 + $_.rsnc = $k[--$j]; //#24435 + $_.rscws = $k[--$j]; //#24436 + $k[$j++] = Infinity; //#24439 + $k[$j++] = 1; //#24439 + for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24439 + var _KK = $k[--$j]; //#24439 + var _KL = _KK * 2; //#24439 + $k[$j++] = _KK; //#24439 + $k[$j++] = _KL; //#24439 + if (_KL >= $_.rsgf) { //#24439 + var _KO = $k[--$j]; //#24439 + $k[$j++] = $xo(_KO, $_.rspm); //#24439 + } //#24439 + } //#24439 + $_.rsalog = $a(); //#24439 + $_.rslog = $a($_.rsgf); //#24440 + for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24441 + $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24441 + } //#24441 $_.rsprod = function() { - var _KY = $k[--$j]; //#24146 - var _KZ = $k[--$j]; //#24146 - $k[$j++] = _KZ; //#24150 - $k[$j++] = _KY; //#24150 - if ((_KY != 0) && (_KZ != 0)) { //#24149 - var _Kc = $get($_.rslog, $k[--$j]); //#24147 - var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24147 - $k[$j++] = _Ki; //#24147 - } else { //#24149 - $j -= 2; //#24149 - $k[$j++] = 0; //#24149 - } //#24149 - }; //#24149 - $k[$j++] = Infinity; //#24154 - $k[$j++] = 1; //#24154 - for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24154 - $k[$j++] = 0; //#24154 - } //#24154 - $_.coeffs = $a(); //#24154 - for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24163 - $_.i = _Kp; //#24156 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24157 - for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24161 - $_.j = _Kw; //#24159 - $k[$j++] = $_.coeffs; //#24160 - $k[$j++] = $_.j; //#24160 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#24160 - $k[$j++] = $get($_.coeffs, $_.j); //#24160 - $k[$j++] = $get($_.rsalog, $_.i); //#24160 - $_.rsprod(); //#24160 - var _L8 = $k[--$j]; //#24160 - var _L9 = $k[--$j]; //#24160 - var _LA = $k[--$j]; //#24160 - $put($k[--$j], _LA, $xo(_L9, _L8)); //#24160 - } //#24160 - $k[$j++] = $_.coeffs; //#24162 - $k[$j++] = 0; //#24162 - $k[$j++] = $get($_.coeffs, 0); //#24162 - $k[$j++] = $get($_.rsalog, $_.i); //#24162 - $_.rsprod(); //#24162 - var _LI = $k[--$j]; //#24162 - var _LJ = $k[--$j]; //#24162 - $put($k[--$j], _LJ, _LI); //#24162 - } //#24162 - $_.nd = $_.rscws.length; //#24166 - $k[$j++] = Infinity; //#24167 - $forall($_.rscws); //#24167 - for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24167 - $k[$j++] = 0; //#24167 - } //#24167 - $k[$j++] = 0; //#24167 - $_.rscws = $a(); //#24167 - for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24174 - $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24169 - for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24173 - $_.j = _Lb; //#24171 - $k[$j++] = $_.rscws; //#24172 - $k[$j++] = $_.nd + $_.j; //#24172 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24172 - $k[$j++] = $_.k; //#24172 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24172 - $_.rsprod(); //#24172 - var _Lo = $k[--$j]; //#24172 - var _Lp = $k[--$j]; //#24172 - var _Lq = $k[--$j]; //#24172 - $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24172 - } //#24172 - } //#24172 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24177 - }; //#24177 - $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24182 - $_.ecwsb = $a($_.dcwsb.length); //#24183 - $_.in = 0; //#24184 - $_.out = 0; //#24184 - for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24190 - $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24186 - $k[$j++] = $_.e1ecws; //#24186 - $k[$j++] = 256; //#24186 - $k[$j++] = 355; //#24186 - $_.rscodes(); //#24186 - var _M9 = $k[--$j]; //#24187 - $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24187 - $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24188 - $_.in = $f($_.in + $_.e1dcws); //#24189 - $_.out = $_.out + 1; //#24189 - } //#24189 - for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24196 - $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24192 - $k[$j++] = $_.e2ecws; //#24192 - $k[$j++] = 256; //#24192 - $k[$j++] = 355; //#24192 - $_.rscodes(); //#24192 - var _MU = $k[--$j]; //#24193 - $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24193 - $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24194 - $_.in = $f($_.in + $_.e2dcws); //#24195 - $_.out = $_.out + 1; //#24195 - } //#24195 - for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24202 - $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24198 - $k[$j++] = $_.e3ecws; //#24198 - $k[$j++] = 256; //#24198 - $k[$j++] = 355; //#24198 - $_.rscodes(); //#24198 - var _Mp = $k[--$j]; //#24199 - $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24199 - $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24200 - $_.in = $f($_.in + $_.e3dcws); //#24201 - $_.out = $_.out + 1; //#24201 - } //#24201 - $_.cws = $a($_.ncws); //#24205 - $_.cw = 0; //#24206 - for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24211 - $_.i = _N6; //#24208 - var _N9 = $get($_.dcwsb, $_.i); //#24209 - $puti($_.cws, $_.cw, _N9); //#24209 - $_.cw = _N9.length + $_.cw; //#24209 - var _NF = $get($_.ecwsb, $_.i); //#24210 - $puti($_.cws, $_.cw, _NF); //#24210 - $_.cw = _NF.length + $_.cw; //#24210 - } //#24210 - $k[$j++] = Infinity; //#24216 - var _NJ = $_.ncws; //#24215 - var _NK = 12; //#24215 - var _NL = _NJ - 1; //#24215 - if ((_NJ - 1) > 12) { //#24215 - var _ = _NK; //#24215 - _NK = _NL; //#24215 - _NL = _; //#24215 - } //#24215 - for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24217 - for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24216 - $k[$j++] = _NQ; //#24216 - if (_NQ < $_.ncws) { //#24216 - var _NU = $get($_.cws, $k[--$j]); //#24216 - $k[$j++] = _NU; //#24216 - } else { //#24216 - $j--; //#24216 - } //#24216 - } //#24216 - } //#24216 - $_.cws = $a(); //#24216 - if ($_.rbit > 0) { //#24226 - $_.pad = $a($_.cws.length + 1); //#24222 - $puti($_.pad, 0, $_.cws); //#24223 - $put($_.pad, $_.pad.length - 1, 0); //#24224 - $_.cws = $_.pad; //#24225 - } //#24225 - $k[$j++] = Infinity; //#24229 - for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24229 - $k[$j++] = -1; //#24229 - } //#24229 - $_.pixs = $a(); //#24229 + var _KY = $k[--$j]; //#24445 + var _KZ = $k[--$j]; //#24445 + $k[$j++] = _KZ; //#24449 + $k[$j++] = _KY; //#24449 + if ((_KY != 0) && (_KZ != 0)) { //#24448 + var _Kc = $get($_.rslog, $k[--$j]); //#24446 + var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24446 + $k[$j++] = _Ki; //#24446 + } else { //#24448 + $j -= 2; //#24448 + $k[$j++] = 0; //#24448 + } //#24448 + }; //#24448 + $k[$j++] = Infinity; //#24453 + $k[$j++] = 1; //#24453 + for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24453 + $k[$j++] = 0; //#24453 + } //#24453 + $_.coeffs = $a(); //#24453 + for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24462 + $_.i = _Kp; //#24455 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24456 + for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24460 + $_.j = _Kw; //#24458 + $k[$j++] = $_.coeffs; //#24459 + $k[$j++] = $_.j; //#24459 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#24459 + $k[$j++] = $get($_.coeffs, $_.j); //#24459 + $k[$j++] = $get($_.rsalog, $_.i); //#24459 + $_.rsprod(); //#24459 + var _L8 = $k[--$j]; //#24459 + var _L9 = $k[--$j]; //#24459 + var _LA = $k[--$j]; //#24459 + $put($k[--$j], _LA, $xo(_L9, _L8)); //#24459 + } //#24459 + $k[$j++] = $_.coeffs; //#24461 + $k[$j++] = 0; //#24461 + $k[$j++] = $get($_.coeffs, 0); //#24461 + $k[$j++] = $get($_.rsalog, $_.i); //#24461 + $_.rsprod(); //#24461 + var _LI = $k[--$j]; //#24461 + var _LJ = $k[--$j]; //#24461 + $put($k[--$j], _LJ, _LI); //#24461 + } //#24461 + $_.nd = $_.rscws.length; //#24465 + $k[$j++] = Infinity; //#24466 + $forall($_.rscws); //#24466 + for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24466 + $k[$j++] = 0; //#24466 + } //#24466 + $k[$j++] = 0; //#24466 + $_.rscws = $a(); //#24466 + for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24473 + $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24468 + for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24472 + $_.j = _Lb; //#24470 + $k[$j++] = $_.rscws; //#24471 + $k[$j++] = $_.nd + $_.j; //#24471 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24471 + $k[$j++] = $_.k; //#24471 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24471 + $_.rsprod(); //#24471 + var _Lo = $k[--$j]; //#24471 + var _Lp = $k[--$j]; //#24471 + var _Lq = $k[--$j]; //#24471 + $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24471 + } //#24471 + } //#24471 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24476 + }; //#24476 + $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24481 + $_.ecwsb = $a($_.dcwsb.length); //#24482 + $_.in = 0; //#24483 + $_.out = 0; //#24483 + for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24489 + $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24485 + $k[$j++] = $_.e1ecws; //#24485 + $k[$j++] = 256; //#24485 + $k[$j++] = 355; //#24485 + $_.rscodes(); //#24485 + var _M9 = $k[--$j]; //#24486 + $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24486 + $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24487 + $_.in = $f($_.in + $_.e1dcws); //#24488 + $_.out = $_.out + 1; //#24488 + } //#24488 + for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24495 + $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24491 + $k[$j++] = $_.e2ecws; //#24491 + $k[$j++] = 256; //#24491 + $k[$j++] = 355; //#24491 + $_.rscodes(); //#24491 + var _MU = $k[--$j]; //#24492 + $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24492 + $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24493 + $_.in = $f($_.in + $_.e2dcws); //#24494 + $_.out = $_.out + 1; //#24494 + } //#24494 + for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24501 + $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24497 + $k[$j++] = $_.e3ecws; //#24497 + $k[$j++] = 256; //#24497 + $k[$j++] = 355; //#24497 + $_.rscodes(); //#24497 + var _Mp = $k[--$j]; //#24498 + $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24498 + $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24499 + $_.in = $f($_.in + $_.e3dcws); //#24500 + $_.out = $_.out + 1; //#24500 + } //#24500 + $_.cws = $a($_.ncws); //#24504 + $_.cw = 0; //#24505 + for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24510 + $_.i = _N6; //#24507 + var _N9 = $get($_.dcwsb, $_.i); //#24508 + $puti($_.cws, $_.cw, _N9); //#24508 + $_.cw = _N9.length + $_.cw; //#24508 + var _NF = $get($_.ecwsb, $_.i); //#24509 + $puti($_.cws, $_.cw, _NF); //#24509 + $_.cw = _NF.length + $_.cw; //#24509 + } //#24509 + $k[$j++] = Infinity; //#24513 + var _NJ = $_.ncws; //#24514 + var _NK = 12; //#24514 + var _NL = _NJ - 1; //#24514 + if ((_NJ - 1) > 12) { //#24514 + var _ = _NK; //#24514 + _NK = _NL; //#24514 + _NL = _; //#24514 + } //#24514 + for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24516 + for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24515 + $k[$j++] = _NQ; //#24515 + if (_NQ < $_.ncws) { //#24515 + var _NU = $get($_.cws, $k[--$j]); //#24515 + $k[$j++] = _NU; //#24515 + } else { //#24515 + $j--; //#24515 + } //#24515 + } //#24515 + } //#24515 + $_.cws = $a(); //#24515 + if ($_.rbit > 0) { //#24525 + $_.pad = $a($_.cws.length + 1); //#24521 + $puti($_.pad, 0, $_.cws); //#24522 + $put($_.pad, $_.pad.length - 1, 0); //#24523 + $_.cws = $_.pad; //#24524 + } //#24524 + $k[$j++] = Infinity; //#24528 + for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24528 + $k[$j++] = -1; //#24528 + } //#24528 + $_.pixs = $a(); //#24528 $_.qmv = function() { - var _Nk = $k[--$j]; //#24230 - var _Nl = $k[--$j]; //#24230 - $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24230 - }; //#24230 - if ($_.alnn != 0) { //#24289 + var _Nk = $k[--$j]; //#24529 + var _Nl = $k[--$j]; //#24529 + $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24529 + }; //#24529 + if ($_.alnn != 0) { //#24588 $_.trmv = function() { - var _No = $k[--$j]; //#24234 - var _Nq = $k[--$j]; //#24234 - $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24234 - }; //#24234 + var _No = $k[--$j]; //#24533 + var _Nq = $k[--$j]; //#24533 + $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24533 + }; //#24533 $_.aplot = function() { - var _Nr = $k[--$j]; //#24236 - var _Ns = $k[--$j]; //#24236 - var _Nt = $k[--$j]; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Nt; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nt; //#24236 - $_.trmv(); //#24236 - var _Nv = $k[--$j]; //#24236 - $put($_.pixs, _Nv, $k[--$j]); //#24236 - $_.trmv(); //#24237 - var _Ny = $k[--$j]; //#24237 - $put($_.pixs, _Ny, $k[--$j]); //#24237 - }; //#24237 - $_.i = 0; //#24239 - $_.stag = 0; //#24239 - for (;;) { //#24261 - if ($_.i >= $_.size) { //#24240 - break; //#24240 - } //#24240 - for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24254 - $_.j = _O4; //#24242 - if ($f($_.j + $_.alnr) < $_.size) { //#24248 - $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24246 - } else { //#24248 - $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24248 - } //#24248 - if ($k[--$j]) { //#24253 - $k[$j++] = $_.j; //#24251 - $k[$j++] = $_.i; //#24251 - $k[$j++] = 1; //#24251 - $_.aplot(); //#24251 - var _OL = $_.j; //#24252 - var _OM = $_.i; //#24252 - $k[$j++] = _OL + 1; //#24252 - $k[$j++] = _OM + 1; //#24252 - if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24252 - $k[$j++] = 0; //#24252 - $_.aplot(); //#24252 - } else { //#24252 - $j -= 2; //#24252 - } //#24252 - } //#24252 - } //#24252 - if ($f($_.i + $_.alnr) == $_.size) { //#24258 - $_.i = $f($f($_.i + $_.alnr) - 1); //#24256 - } else { //#24258 - $_.i = $f($_.i + $_.alnk); //#24258 - } //#24258 - $_.stag = 1 - $_.stag; //#24260 - } //#24260 - for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24288 - $_.i = _Ob; //#24263 - if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24275 - $k[$j++] = $_.pixs; //#24265 - $k[$j++] = 0; //#24265 - $k[$j++] = $_.i - 1; //#24265 - $_.trmv(); //#24265 - var _Oh = $k[--$j]; //#24265 - $put($k[--$j], _Oh, 0); //#24265 - $k[$j++] = $_.pixs; //#24266 - $k[$j++] = 0; //#24266 - $k[$j++] = $_.i + 1; //#24266 - $_.trmv(); //#24266 - var _Ol = $k[--$j]; //#24266 - $put($k[--$j], _Ol, 0); //#24266 - $k[$j++] = $_.pixs; //#24267 - $k[$j++] = 1; //#24267 - $k[$j++] = $_.i - 1; //#24267 - $_.trmv(); //#24267 - var _Op = $k[--$j]; //#24267 - $put($k[--$j], _Op, 0); //#24267 - $k[$j++] = $_.pixs; //#24268 - $k[$j++] = 1; //#24268 - $k[$j++] = $_.i; //#24268 - $_.trmv(); //#24268 - var _Ot = $k[--$j]; //#24268 - $put($k[--$j], _Ot, 0); //#24268 - $k[$j++] = $_.pixs; //#24269 - $k[$j++] = 1; //#24269 - $k[$j++] = $_.i + 1; //#24269 - $_.trmv(); //#24269 - var _Ox = $k[--$j]; //#24269 - $put($k[--$j], _Ox, 0); //#24269 - $k[$j++] = $_.pixs; //#24270 - $k[$j++] = $_.i - 1; //#24270 - $k[$j++] = 0; //#24270 - $_.trmv(); //#24270 - var _P1 = $k[--$j]; //#24270 - $put($k[--$j], _P1, 0); //#24270 - $k[$j++] = $_.pixs; //#24271 - $k[$j++] = $_.i + 1; //#24271 - $k[$j++] = 0; //#24271 - $_.trmv(); //#24271 - var _P5 = $k[--$j]; //#24271 - $put($k[--$j], _P5, 0); //#24271 - $k[$j++] = $_.pixs; //#24272 - $k[$j++] = $_.i - 1; //#24272 - $k[$j++] = 1; //#24272 - $_.trmv(); //#24272 - var _P9 = $k[--$j]; //#24272 - $put($k[--$j], _P9, 0); //#24272 - $k[$j++] = $_.pixs; //#24273 - $k[$j++] = $_.i; //#24273 - $k[$j++] = 1; //#24273 - $_.trmv(); //#24273 - var _PD = $k[--$j]; //#24273 - $put($k[--$j], _PD, 0); //#24273 - $k[$j++] = $_.pixs; //#24274 - $k[$j++] = $_.i + 1; //#24274 - $k[$j++] = 1; //#24274 - $_.trmv(); //#24274 - var _PH = $k[--$j]; //#24274 - $put($k[--$j], _PH, 0); //#24274 - } //#24274 - $k[$j++] = $_.pixs; //#24276 - $k[$j++] = $f($_.size - 1); //#24276 - $k[$j++] = $_.i - 1; //#24276 - $_.trmv(); //#24276 - var _PM = $k[--$j]; //#24276 - if ($get($k[--$j], _PM) != 1) { //#24287 - $k[$j++] = $_.pixs; //#24277 - $k[$j++] = $f($_.size - 1); //#24277 - $k[$j++] = $_.i - 1; //#24277 - $_.trmv(); //#24277 - var _PS = $k[--$j]; //#24277 - $put($k[--$j], _PS, 0); //#24277 - $k[$j++] = $_.pixs; //#24278 - $k[$j++] = $f($_.size - 2); //#24278 - $k[$j++] = $_.i - 1; //#24278 - $_.trmv(); //#24278 - var _PX = $k[--$j]; //#24278 - $put($k[--$j], _PX, 0); //#24278 - $k[$j++] = $_.pixs; //#24279 - $k[$j++] = $f($_.size - 2); //#24279 - $k[$j++] = $_.i; //#24279 - $_.trmv(); //#24279 - var _Pc = $k[--$j]; //#24279 - $put($k[--$j], _Pc, 0); //#24279 - $k[$j++] = $_.pixs; //#24280 - $k[$j++] = $f($_.size - 2); //#24280 - $k[$j++] = $_.i + 1; //#24280 - $_.trmv(); //#24280 - var _Ph = $k[--$j]; //#24280 - $put($k[--$j], _Ph, 0); //#24280 - $k[$j++] = $_.pixs; //#24281 - $k[$j++] = $f($_.size - 1); //#24281 - $k[$j++] = $_.i + 1; //#24281 - $_.trmv(); //#24281 - var _Pm = $k[--$j]; //#24281 - $put($k[--$j], _Pm, 0); //#24281 - $k[$j++] = $_.pixs; //#24282 - $k[$j++] = $_.i - 1; //#24282 - $k[$j++] = $f($_.size - 1); //#24282 - $_.trmv(); //#24282 - var _Pr = $k[--$j]; //#24282 - $put($k[--$j], _Pr, 0); //#24282 - $k[$j++] = $_.pixs; //#24283 - $k[$j++] = $_.i - 1; //#24283 - $k[$j++] = $f($_.size - 2); //#24283 - $_.trmv(); //#24283 - var _Pw = $k[--$j]; //#24283 - $put($k[--$j], _Pw, 0); //#24283 - $k[$j++] = $_.pixs; //#24284 - $k[$j++] = $_.i; //#24284 - $k[$j++] = $f($_.size - 2); //#24284 - $_.trmv(); //#24284 - var _Q1 = $k[--$j]; //#24284 - $put($k[--$j], _Q1, 0); //#24284 - $k[$j++] = $_.pixs; //#24285 - $k[$j++] = $_.i + 1; //#24285 - $k[$j++] = $f($_.size - 2); //#24285 - $_.trmv(); //#24285 - var _Q6 = $k[--$j]; //#24285 - $put($k[--$j], _Q6, 0); //#24285 - $k[$j++] = $_.pixs; //#24286 - $k[$j++] = $_.i + 1; //#24286 - $k[$j++] = $f($_.size - 1); //#24286 - $_.trmv(); //#24286 - var _QB = $k[--$j]; //#24286 - $put($k[--$j], _QB, 0); //#24286 - } //#24286 - } //#24286 - } //#24286 - if (!bwipp_hanxin.__24313__) { //#24313 - $_ = Object.create($_); //#24313 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24302 - $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24312 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24312 - bwipp_hanxin.__24313__ = 1; //#24312 - $_ = Object.getPrototypeOf($_); //#24312 - } //#24312 - for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24325 - $_.y = _QY; //#24315 - for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24324 - $_.x = _Qc; //#24317 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24318 - $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24319 - $k[$j++] = $_.pixs; //#24320 - $k[$j++] = $_.x; //#24320 - $k[$j++] = $_.y; //#24320 - $_.qmv(); //#24320 - var _Qr = $k[--$j]; //#24320 - $put($k[--$j], _Qr, $_.fpb); //#24320 - $k[$j++] = $_.pixs; //#24321 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24321 - $k[$j++] = $_.y; //#24321 - $_.qmv(); //#24321 - var _Qy = $k[--$j]; //#24321 - $put($k[--$j], _Qy, $_.fpb); //#24321 - $k[$j++] = $_.pixs; //#24322 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24322 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24322 - $_.qmv(); //#24322 - var _R6 = $k[--$j]; //#24322 - $put($k[--$j], _R6, $_.fpb); //#24322 - $k[$j++] = $_.pixs; //#24323 - $k[$j++] = $_.x; //#24323 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24323 - $_.qmv(); //#24323 - var _RD = $k[--$j]; //#24323 - $put($k[--$j], _RD, $_.fpb2); //#24323 - } //#24323 - } //#24323 - $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24347 - var _U0 = $_.functionmap; //#24348 - for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24350 - $forall($get(_U0, _U1), function() { //#24349 - $forall($k[--$j]); //#24349 - $_.qmv(); //#24349 - $put($_.pixs, $k[--$j], 0); //#24349 - }); //#24349 - } //#24349 + var _Nr = $k[--$j]; //#24535 + var _Ns = $k[--$j]; //#24535 + var _Nt = $k[--$j]; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Nt; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nt; //#24535 + $_.trmv(); //#24535 + var _Nv = $k[--$j]; //#24535 + $put($_.pixs, _Nv, $k[--$j]); //#24535 + $_.trmv(); //#24536 + var _Ny = $k[--$j]; //#24536 + $put($_.pixs, _Ny, $k[--$j]); //#24536 + }; //#24536 + $_.i = 0; //#24538 + $_.stag = 0; //#24538 + for (;;) { //#24560 + if ($_.i >= $_.size) { //#24539 + break; //#24539 + } //#24539 + for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24553 + $_.j = _O4; //#24541 + if ($f($_.j + $_.alnr) < $_.size) { //#24547 + $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24545 + } else { //#24547 + $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24547 + } //#24547 + if ($k[--$j]) { //#24552 + $k[$j++] = $_.j; //#24550 + $k[$j++] = $_.i; //#24550 + $k[$j++] = 1; //#24550 + $_.aplot(); //#24550 + var _OL = $_.j; //#24551 + var _OM = $_.i; //#24551 + $k[$j++] = _OL + 1; //#24551 + $k[$j++] = _OM + 1; //#24551 + if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24551 + $k[$j++] = 0; //#24551 + $_.aplot(); //#24551 + } else { //#24551 + $j -= 2; //#24551 + } //#24551 + } //#24551 + } //#24551 + if ($f($_.i + $_.alnr) == $_.size) { //#24557 + $_.i = $f($f($_.i + $_.alnr) - 1); //#24555 + } else { //#24557 + $_.i = $f($_.i + $_.alnk); //#24557 + } //#24557 + $_.stag = 1 - $_.stag; //#24559 + } //#24559 + for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24587 + $_.i = _Ob; //#24562 + if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24574 + $k[$j++] = $_.pixs; //#24564 + $k[$j++] = 0; //#24564 + $k[$j++] = $_.i - 1; //#24564 + $_.trmv(); //#24564 + var _Oh = $k[--$j]; //#24564 + $put($k[--$j], _Oh, 0); //#24564 + $k[$j++] = $_.pixs; //#24565 + $k[$j++] = 0; //#24565 + $k[$j++] = $_.i + 1; //#24565 + $_.trmv(); //#24565 + var _Ol = $k[--$j]; //#24565 + $put($k[--$j], _Ol, 0); //#24565 + $k[$j++] = $_.pixs; //#24566 + $k[$j++] = 1; //#24566 + $k[$j++] = $_.i - 1; //#24566 + $_.trmv(); //#24566 + var _Op = $k[--$j]; //#24566 + $put($k[--$j], _Op, 0); //#24566 + $k[$j++] = $_.pixs; //#24567 + $k[$j++] = 1; //#24567 + $k[$j++] = $_.i; //#24567 + $_.trmv(); //#24567 + var _Ot = $k[--$j]; //#24567 + $put($k[--$j], _Ot, 0); //#24567 + $k[$j++] = $_.pixs; //#24568 + $k[$j++] = 1; //#24568 + $k[$j++] = $_.i + 1; //#24568 + $_.trmv(); //#24568 + var _Ox = $k[--$j]; //#24568 + $put($k[--$j], _Ox, 0); //#24568 + $k[$j++] = $_.pixs; //#24569 + $k[$j++] = $_.i - 1; //#24569 + $k[$j++] = 0; //#24569 + $_.trmv(); //#24569 + var _P1 = $k[--$j]; //#24569 + $put($k[--$j], _P1, 0); //#24569 + $k[$j++] = $_.pixs; //#24570 + $k[$j++] = $_.i + 1; //#24570 + $k[$j++] = 0; //#24570 + $_.trmv(); //#24570 + var _P5 = $k[--$j]; //#24570 + $put($k[--$j], _P5, 0); //#24570 + $k[$j++] = $_.pixs; //#24571 + $k[$j++] = $_.i - 1; //#24571 + $k[$j++] = 1; //#24571 + $_.trmv(); //#24571 + var _P9 = $k[--$j]; //#24571 + $put($k[--$j], _P9, 0); //#24571 + $k[$j++] = $_.pixs; //#24572 + $k[$j++] = $_.i; //#24572 + $k[$j++] = 1; //#24572 + $_.trmv(); //#24572 + var _PD = $k[--$j]; //#24572 + $put($k[--$j], _PD, 0); //#24572 + $k[$j++] = $_.pixs; //#24573 + $k[$j++] = $_.i + 1; //#24573 + $k[$j++] = 1; //#24573 + $_.trmv(); //#24573 + var _PH = $k[--$j]; //#24573 + $put($k[--$j], _PH, 0); //#24573 + } //#24573 + $k[$j++] = $_.pixs; //#24575 + $k[$j++] = $f($_.size - 1); //#24575 + $k[$j++] = $_.i - 1; //#24575 + $_.trmv(); //#24575 + var _PM = $k[--$j]; //#24575 + if ($get($k[--$j], _PM) != 1) { //#24586 + $k[$j++] = $_.pixs; //#24576 + $k[$j++] = $f($_.size - 1); //#24576 + $k[$j++] = $_.i - 1; //#24576 + $_.trmv(); //#24576 + var _PS = $k[--$j]; //#24576 + $put($k[--$j], _PS, 0); //#24576 + $k[$j++] = $_.pixs; //#24577 + $k[$j++] = $f($_.size - 2); //#24577 + $k[$j++] = $_.i - 1; //#24577 + $_.trmv(); //#24577 + var _PX = $k[--$j]; //#24577 + $put($k[--$j], _PX, 0); //#24577 + $k[$j++] = $_.pixs; //#24578 + $k[$j++] = $f($_.size - 2); //#24578 + $k[$j++] = $_.i; //#24578 + $_.trmv(); //#24578 + var _Pc = $k[--$j]; //#24578 + $put($k[--$j], _Pc, 0); //#24578 + $k[$j++] = $_.pixs; //#24579 + $k[$j++] = $f($_.size - 2); //#24579 + $k[$j++] = $_.i + 1; //#24579 + $_.trmv(); //#24579 + var _Ph = $k[--$j]; //#24579 + $put($k[--$j], _Ph, 0); //#24579 + $k[$j++] = $_.pixs; //#24580 + $k[$j++] = $f($_.size - 1); //#24580 + $k[$j++] = $_.i + 1; //#24580 + $_.trmv(); //#24580 + var _Pm = $k[--$j]; //#24580 + $put($k[--$j], _Pm, 0); //#24580 + $k[$j++] = $_.pixs; //#24581 + $k[$j++] = $_.i - 1; //#24581 + $k[$j++] = $f($_.size - 1); //#24581 + $_.trmv(); //#24581 + var _Pr = $k[--$j]; //#24581 + $put($k[--$j], _Pr, 0); //#24581 + $k[$j++] = $_.pixs; //#24582 + $k[$j++] = $_.i - 1; //#24582 + $k[$j++] = $f($_.size - 2); //#24582 + $_.trmv(); //#24582 + var _Pw = $k[--$j]; //#24582 + $put($k[--$j], _Pw, 0); //#24582 + $k[$j++] = $_.pixs; //#24583 + $k[$j++] = $_.i; //#24583 + $k[$j++] = $f($_.size - 2); //#24583 + $_.trmv(); //#24583 + var _Q1 = $k[--$j]; //#24583 + $put($k[--$j], _Q1, 0); //#24583 + $k[$j++] = $_.pixs; //#24584 + $k[$j++] = $_.i + 1; //#24584 + $k[$j++] = $f($_.size - 2); //#24584 + $_.trmv(); //#24584 + var _Q6 = $k[--$j]; //#24584 + $put($k[--$j], _Q6, 0); //#24584 + $k[$j++] = $_.pixs; //#24585 + $k[$j++] = $_.i + 1; //#24585 + $k[$j++] = $f($_.size - 1); //#24585 + $_.trmv(); //#24585 + var _QB = $k[--$j]; //#24585 + $put($k[--$j], _QB, 0); //#24585 + } //#24585 + } //#24585 + } //#24585 + if (!bwipp_hanxin.__24612__) { //#24612 + $_ = Object.create($_); //#24612 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24601 + $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24611 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24611 + bwipp_hanxin.__24612__ = 1; //#24611 + $_ = Object.getPrototypeOf($_); //#24611 + } //#24611 + for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24624 + $_.y = _QY; //#24614 + for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24623 + $_.x = _Qc; //#24616 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24617 + $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24618 + $k[$j++] = $_.pixs; //#24619 + $k[$j++] = $_.x; //#24619 + $k[$j++] = $_.y; //#24619 + $_.qmv(); //#24619 + var _Qr = $k[--$j]; //#24619 + $put($k[--$j], _Qr, $_.fpb); //#24619 + $k[$j++] = $_.pixs; //#24620 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24620 + $k[$j++] = $_.y; //#24620 + $_.qmv(); //#24620 + var _Qy = $k[--$j]; //#24620 + $put($k[--$j], _Qy, $_.fpb); //#24620 + $k[$j++] = $_.pixs; //#24621 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24621 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24621 + $_.qmv(); //#24621 + var _R6 = $k[--$j]; //#24621 + $put($k[--$j], _R6, $_.fpb); //#24621 + $k[$j++] = $_.pixs; //#24622 + $k[$j++] = $_.x; //#24622 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24622 + $_.qmv(); //#24622 + var _RD = $k[--$j]; //#24622 + $put($k[--$j], _RD, $_.fpb2); //#24622 + } //#24622 + } //#24622 + $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24646 + var _U0 = $_.functionmap; //#24647 + for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24649 + $forall($get(_U0, _U1), function() { //#24648 + $forall($k[--$j]); //#24648 + $_.qmv(); //#24648 + $put($_.pixs, $k[--$j], 0); //#24648 + }); //#24648 + } //#24648 var _UD = $a([function() { - $j -= 2; //#24353 - $k[$j++] = 1; //#24353 + $j -= 2; //#24652 + $k[$j++] = 1; //#24652 }, function() { - var _U7 = $k[--$j]; //#24354 - var _U8 = $k[--$j]; //#24354 - $k[$j++] = $f(_U8 + _U7) % 2; //#24354 + var _U7 = $k[--$j]; //#24653 + var _U8 = $k[--$j]; //#24653 + $k[$j++] = $f(_U8 + _U7) % 2; //#24653 }, function() { - var _U9 = $k[--$j]; //#24355 - var _UA = $k[--$j]; //#24355 - $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24355 + var _U9 = $k[--$j]; //#24654 + var _UA = $k[--$j]; //#24654 + $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24654 }, function() { - var _UB = $k[--$j]; //#24356 - var _UC = $k[--$j]; //#24356 - $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24357 - }]); //#24357 - $_.maskfuncs = _UD; //#24358 - if ($_.mask != -1) { //#24362 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24360 - $_.bestmaskval = $_.mask - 1; //#24361 - } //#24361 - $_.masks = $a($_.maskfuncs.length); //#24363 - for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24377 - $_.m = _UO; //#24365 - $_.mask = $a($_.size * $_.size); //#24366 - for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24375 - $_.j = _UU; //#24368 - for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24374 - $_.i = _UX; //#24370 - $k[$j++] = $_.i + 1; //#24371 - $k[$j++] = $_.j + 1; //#24371 + var _UB = $k[--$j]; //#24655 + var _UC = $k[--$j]; //#24655 + $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24656 + }]); //#24656 + $_.maskfuncs = _UD; //#24657 + if ($_.mask != -1) { //#24661 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24659 + $_.bestmaskval = $_.mask - 1; //#24660 + } //#24660 + $_.masks = $a($_.maskfuncs.length); //#24662 + for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24676 + $_.m = _UO; //#24664 + $_.mask = $a($_.size * $_.size); //#24665 + for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24674 + $_.j = _UU; //#24667 + for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24673 + $_.i = _UX; //#24669 + $k[$j++] = $_.i + 1; //#24670 + $k[$j++] = $_.j + 1; //#24670 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#24371 - var _Ud = $k[--$j]; //#24371 - $k[$j++] = _Ud == 0; //#24372 - $k[$j++] = $_.pixs; //#24372 - $k[$j++] = $_.i; //#24372 - $k[$j++] = $_.j; //#24372 - $_.qmv(); //#24372 - var _Uh = $k[--$j]; //#24372 - var _Uj = $get($k[--$j], _Uh); //#24372 - var _Uk = $k[--$j]; //#24372 - var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24372 - $k[$j++] = _Ul; //#24373 - $k[$j++] = $_.mask; //#24373 - $k[$j++] = $_.i; //#24373 - $k[$j++] = $_.j; //#24373 - $_.qmv(); //#24373 - var _Up = $k[--$j]; //#24373 - var _Uq = $k[--$j]; //#24373 - $put(_Uq, _Up, $k[--$j]); //#24373 - } //#24373 - } //#24373 - $put($_.masks, $_.m, $_.mask); //#24376 - } //#24376 - $_.posx = 0; //#24380 - $_.posy = 0; //#24381 - $_.num = 0; //#24382 - for (;;) { //#24392 - if ($_.posy == $_.size) { //#24384 - break; //#24384 - } //#24384 - $k[$j++] = $_.pixs; //#24385 - $k[$j++] = $_.posx; //#24385 - $k[$j++] = $_.posy; //#24385 - $_.qmv(); //#24385 - var _V0 = $k[--$j]; //#24385 - if ($get($k[--$j], _V0) == -1) { //#24389 - var _V5 = $get($_.cws, ~~($_.num / 8)); //#24386 - var _V7 = -(7 - ($_.num % 8)); //#24386 - $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24387 - $k[$j++] = $_.pixs; //#24387 - $k[$j++] = $_.posx; //#24387 - $k[$j++] = $_.posy; //#24387 - $_.qmv(); //#24387 - var _VB = $k[--$j]; //#24387 - var _VC = $k[--$j]; //#24387 - $put(_VC, _VB, $k[--$j]); //#24387 - $_.num = $_.num + 1; //#24388 - } //#24388 - $_.posx = $_.posx + 1; //#24390 - if ($_.posx == $_.size) { //#24391 - $_.posx = 0; //#24391 - $_.posy = $_.posy + 1; //#24391 - } //#24391 - } //#24391 + } //#24670 + var _Ud = $k[--$j]; //#24670 + $k[$j++] = _Ud == 0; //#24671 + $k[$j++] = $_.pixs; //#24671 + $k[$j++] = $_.i; //#24671 + $k[$j++] = $_.j; //#24671 + $_.qmv(); //#24671 + var _Uh = $k[--$j]; //#24671 + var _Uj = $get($k[--$j], _Uh); //#24671 + var _Uk = $k[--$j]; //#24671 + var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24671 + $k[$j++] = _Ul; //#24672 + $k[$j++] = $_.mask; //#24672 + $k[$j++] = $_.i; //#24672 + $k[$j++] = $_.j; //#24672 + $_.qmv(); //#24672 + var _Up = $k[--$j]; //#24672 + var _Uq = $k[--$j]; //#24672 + $put(_Uq, _Up, $k[--$j]); //#24672 + } //#24672 + } //#24672 + $put($_.masks, $_.m, $_.mask); //#24675 + } //#24675 + $_.posx = 0; //#24679 + $_.posy = 0; //#24680 + $_.num = 0; //#24681 + for (;;) { //#24691 + if ($_.posy == $_.size) { //#24683 + break; //#24683 + } //#24683 + $k[$j++] = $_.pixs; //#24684 + $k[$j++] = $_.posx; //#24684 + $k[$j++] = $_.posy; //#24684 + $_.qmv(); //#24684 + var _V0 = $k[--$j]; //#24684 + if ($get($k[--$j], _V0) == -1) { //#24688 + var _V5 = $get($_.cws, ~~($_.num / 8)); //#24685 + var _V7 = -(7 - ($_.num % 8)); //#24685 + $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24686 + $k[$j++] = $_.pixs; //#24686 + $k[$j++] = $_.posx; //#24686 + $k[$j++] = $_.posy; //#24686 + $_.qmv(); //#24686 + var _VB = $k[--$j]; //#24686 + var _VC = $k[--$j]; //#24686 + $put(_VC, _VB, $k[--$j]); //#24686 + $_.num = $_.num + 1; //#24687 + } //#24687 + $_.posx = $_.posx + 1; //#24689 + if ($_.posx == $_.size) { //#24690 + $_.posx = 0; //#24690 + $_.posy = $_.posy + 1; //#24690 + } //#24690 + } //#24690 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#24396 - $k[$j++] = 'scr1'; //#24398 - $k[$j++] = 0; //#24398 - $forall($_.scrle, function() { //#24398 - var _VL = $k[--$j]; //#24398 - $k[$j++] = _VL; //#24398 - if (_VL >= 3) { //#24398 - var _VM = $k[--$j]; //#24398 - var _VO = $f($k[--$j] + (_VM * 4)); //#24398 - $k[$j++] = _VO; //#24398 - $k[$j++] = _VO; //#24398 - } //#24398 - $j--; //#24398 - }); //#24398 - var _VP = $k[--$j]; //#24398 - $_[$k[--$j]] = _VP; //#24398 - $_.scr3 = 0; //#24399 - for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24415 - $_.j = _VT; //#24402 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24414 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24404 - var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24405 - for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24405 - $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24405 - } //#24405 - var _Vh = $k[--$j]; //#24405 - var _Vi = $k[--$j]; //#24405 - var _Vj = $k[--$j]; //#24405 - var _Vk = $k[--$j]; //#24405 - if (_Vk && (_Vj && (_Vi && _Vh))) { //#24413 - if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24410 - $_.scr3 = $_.scr3 + 50; //#24407 - } else { //#24410 - if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24411 - $_.scr3 = $_.scr3 + 50; //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24431 - $_.j = _Vy; //#24418 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24430 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24420 - var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24421 - for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24421 - $k[$j++] = $get(_W7, _W8) == $_.fact; //#24421 - } //#24421 - var _WC = $k[--$j]; //#24421 - var _WD = $k[--$j]; //#24421 - var _WE = $k[--$j]; //#24421 - var _WF = $k[--$j]; //#24421 - if (_WF && (_WE && (_WD && _WC))) { //#24429 - if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24426 - $_.scr3 = $_.scr3 + 50; //#24423 - } else { //#24426 - if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24427 - $_.scr3 = $_.scr3 + 50; //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - $k[$j++] = $_.scr1; //#24432 - $k[$j++] = $_.scr3; //#24432 - }; //#24432 + $_.scrle = $k[--$j]; //#24695 + $k[$j++] = 'scr1'; //#24697 + $k[$j++] = 0; //#24697 + $forall($_.scrle, function() { //#24697 + var _VL = $k[--$j]; //#24697 + $k[$j++] = _VL; //#24697 + if (_VL >= 3) { //#24697 + var _VM = $k[--$j]; //#24697 + var _VO = $f($k[--$j] + (_VM * 4)); //#24697 + $k[$j++] = _VO; //#24697 + $k[$j++] = _VO; //#24697 + } //#24697 + $j--; //#24697 + }); //#24697 + var _VP = $k[--$j]; //#24697 + $_[$k[--$j]] = _VP; //#24697 + $_.scr3 = 0; //#24698 + for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24714 + $_.j = _VT; //#24701 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24713 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24703 + var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24704 + for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24704 + $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24704 + } //#24704 + var _Vh = $k[--$j]; //#24704 + var _Vi = $k[--$j]; //#24704 + var _Vj = $k[--$j]; //#24704 + var _Vk = $k[--$j]; //#24704 + if (_Vk && (_Vj && (_Vi && _Vh))) { //#24712 + if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24709 + $_.scr3 = $_.scr3 + 50; //#24706 + } else { //#24709 + if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24710 + $_.scr3 = $_.scr3 + 50; //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24730 + $_.j = _Vy; //#24717 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24729 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24719 + var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24720 + for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24720 + $k[$j++] = $get(_W7, _W8) == $_.fact; //#24720 + } //#24720 + var _WC = $k[--$j]; //#24720 + var _WD = $k[--$j]; //#24720 + var _WE = $k[--$j]; //#24720 + var _WF = $k[--$j]; //#24720 + if (_WF && (_WE && (_WD && _WC))) { //#24728 + if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24725 + $_.scr3 = $_.scr3 + 50; //#24722 + } else { //#24725 + if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24726 + $_.scr3 = $_.scr3 + 50; //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + $k[$j++] = $_.scr1; //#24731 + $k[$j++] = $_.scr3; //#24731 + }; //#24731 $_.evalfull = function() { - $_.sym = $k[--$j]; //#24437 - $_.n1 = 0; //#24439 - $_.n3 = 0; //#24439 - $_.rle = $a($f($_.size + 1)); //#24440 - $_.lastpairs = $a($_.size); //#24441 - $_.thispairs = $a($_.size); //#24442 - $_.sizeadd1 = $f($_.size + 1); //#24443 - for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24468 - $_.i = _Wd; //#24445 - $k[$j++] = Infinity; //#24448 - var _Wf = $_.size; //#24449 - $k[$j++] = 0; //#24451 - $k[$j++] = 0; //#24451 - for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24451 - var _Wk = $get($_.sym, _Wh); //#24450 - var _Wl = $k[--$j]; //#24450 - $k[$j++] = _Wk; //#24450 - if ($eq(_Wl, _Wk)) { //#24450 - var _Wm = $k[--$j]; //#24450 - var _Wn = $k[--$j]; //#24450 - $k[$j++] = $f(_Wn + 1); //#24450 - $k[$j++] = _Wm; //#24450 - } else { //#24450 - var _Wo = $k[--$j]; //#24450 - $k[$j++] = 1; //#24450 - $k[$j++] = _Wo; //#24450 - } //#24450 - } //#24450 - $j--; //#24452 - var _Wq = $counttomark() + 2; //#24453 - $astore($geti($_.rle, 0, _Wq - 2)); //#24453 - $_.evalfulln1n3(); //#24454 - $_.n3 = $f($k[--$j] + $_.n3); //#24454 - $_.n1 = $f($k[--$j] + $_.n1); //#24454 - $j--; //#24455 - $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24458 - $k[$j++] = Infinity; //#24459 - var _X1 = $_.symrow; //#24460 - $k[$j++] = 0; //#24462 - $k[$j++] = 0; //#24462 - for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24462 - var _X4 = $get(_X1, _X2); //#24462 - var _X5 = $k[--$j]; //#24461 - $k[$j++] = _X4; //#24461 - if ($eq(_X5, _X4)) { //#24461 - var _X6 = $k[--$j]; //#24461 - var _X7 = $k[--$j]; //#24461 - $k[$j++] = $f(_X7 + 1); //#24461 - $k[$j++] = _X6; //#24461 - } else { //#24461 - var _X8 = $k[--$j]; //#24461 - $k[$j++] = 1; //#24461 - $k[$j++] = _X8; //#24461 - } //#24461 - } //#24461 - $j--; //#24463 - var _XA = $counttomark() + 2; //#24464 - $astore($geti($_.rle, 0, _XA - 2)); //#24464 - $_.evalfulln1n3(); //#24465 - $_.n3 = $f($k[--$j] + $_.n3); //#24465 - $_.n1 = $f($k[--$j] + $_.n1); //#24465 - $j--; //#24466 - } //#24466 - $k[$j++] = $f($_.n1 + $_.n3); //#24470 - }; //#24470 - $_.bestscore = 999999999; //#24474 - for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24492 - $_.m = _XK; //#24476 - $_.masksym = $a($_.size * $_.size); //#24477 - for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24481 - $_.i = _XR; //#24479 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24480 - } //#24480 - if ($_.masks.length != 1) { //#24490 - $k[$j++] = $_.masksym; //#24483 - $_.evalfull(); //#24483 - $_.score = $k[--$j]; //#24483 - if ($_.score < $_.bestscore) { //#24488 - $_.bestsym = $_.masksym; //#24485 - $_.bestmaskval = $_.m; //#24486 - $_.bestscore = $_.score; //#24487 - } //#24487 - } else { //#24490 - $_.bestsym = $_.masksym; //#24490 - } //#24490 - } //#24490 - $_.pixs = $_.bestsym; //#24493 - $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24496 - $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24500 - $k[$j++] = 4; //#24500 - $k[$j++] = 16; //#24500 - $k[$j++] = 19; //#24500 - $_.rscodes(); //#24500 - $_.funvals = $k[--$j]; //#24500 - $k[$j++] = Infinity; //#24505 - $forall($_.funvals, function() { //#24504 - $k[$j++] = 4; //#24503 - $_.tobin(); //#24503 - $forall($k[--$j], function() { //#24503 - var _Xw = $k[--$j]; //#24503 - $k[$j++] = $f(_Xw - 48); //#24503 - }); //#24503 - }); //#24503 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $_.funbits = $a(); //#24505 - for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24512 - $_.i = _Y0; //#24508 - $forall($get($_.functionmap, $_.i), function() { //#24511 - var _Y5 = $k[--$j]; //#24510 - $k[$j++] = $_.pixs; //#24510 - $aload(_Y5); //#24510 - $_.qmv(); //#24510 - var _Y9 = $k[--$j]; //#24510 - $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24510 - }); //#24510 - } //#24510 + $_.sym = $k[--$j]; //#24736 + $_.n1 = 0; //#24738 + $_.n3 = 0; //#24738 + $_.rle = $a($f($_.size + 1)); //#24739 + $_.lastpairs = $a($_.size); //#24740 + $_.thispairs = $a($_.size); //#24741 + $_.sizeadd1 = $f($_.size + 1); //#24742 + for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24767 + $_.i = _Wd; //#24744 + $k[$j++] = Infinity; //#24747 + var _Wf = $_.size; //#24748 + $k[$j++] = 0; //#24750 + $k[$j++] = 0; //#24750 + for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24750 + var _Wk = $get($_.sym, _Wh); //#24749 + var _Wl = $k[--$j]; //#24749 + $k[$j++] = _Wk; //#24749 + if ($eq(_Wl, _Wk)) { //#24749 + var _Wm = $k[--$j]; //#24749 + var _Wn = $k[--$j]; //#24749 + $k[$j++] = $f(_Wn + 1); //#24749 + $k[$j++] = _Wm; //#24749 + } else { //#24749 + var _Wo = $k[--$j]; //#24749 + $k[$j++] = 1; //#24749 + $k[$j++] = _Wo; //#24749 + } //#24749 + } //#24749 + $j--; //#24751 + var _Wq = $counttomark() + 2; //#24752 + $astore($geti($_.rle, 0, _Wq - 2)); //#24752 + $_.evalfulln1n3(); //#24753 + $_.n3 = $f($k[--$j] + $_.n3); //#24753 + $_.n1 = $f($k[--$j] + $_.n1); //#24753 + $j--; //#24754 + $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24757 + $k[$j++] = Infinity; //#24758 + var _X1 = $_.symrow; //#24759 + $k[$j++] = 0; //#24761 + $k[$j++] = 0; //#24761 + for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24761 + var _X4 = $get(_X1, _X2); //#24761 + var _X5 = $k[--$j]; //#24760 + $k[$j++] = _X4; //#24760 + if ($eq(_X5, _X4)) { //#24760 + var _X6 = $k[--$j]; //#24760 + var _X7 = $k[--$j]; //#24760 + $k[$j++] = $f(_X7 + 1); //#24760 + $k[$j++] = _X6; //#24760 + } else { //#24760 + var _X8 = $k[--$j]; //#24760 + $k[$j++] = 1; //#24760 + $k[$j++] = _X8; //#24760 + } //#24760 + } //#24760 + $j--; //#24762 + var _XA = $counttomark() + 2; //#24763 + $astore($geti($_.rle, 0, _XA - 2)); //#24763 + $_.evalfulln1n3(); //#24764 + $_.n3 = $f($k[--$j] + $_.n3); //#24764 + $_.n1 = $f($k[--$j] + $_.n1); //#24764 + $j--; //#24765 + } //#24765 + $k[$j++] = $f($_.n1 + $_.n3); //#24769 + }; //#24769 + $_.bestscore = 999999999; //#24773 + for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24791 + $_.m = _XK; //#24775 + $_.masksym = $a($_.size * $_.size); //#24776 + for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24780 + $_.i = _XR; //#24778 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24779 + } //#24779 + if ($_.masks.length != 1) { //#24789 + $k[$j++] = $_.masksym; //#24782 + $_.evalfull(); //#24782 + $_.score = $k[--$j]; //#24782 + if ($_.score < $_.bestscore) { //#24787 + $_.bestsym = $_.masksym; //#24784 + $_.bestmaskval = $_.m; //#24785 + $_.bestscore = $_.score; //#24786 + } //#24786 + } else { //#24789 + $_.bestsym = $_.masksym; //#24789 + } //#24789 + } //#24789 + $_.pixs = $_.bestsym; //#24792 + $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24795 + $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24799 + $k[$j++] = 4; //#24799 + $k[$j++] = 16; //#24799 + $k[$j++] = 19; //#24799 + $_.rscodes(); //#24799 + $_.funvals = $k[--$j]; //#24799 + $k[$j++] = Infinity; //#24800 + $forall($_.funvals, function() { //#24803 + $k[$j++] = 4; //#24802 + $_.tobin(); //#24802 + $forall($k[--$j], function() { //#24802 + var _Xw = $k[--$j]; //#24802 + $k[$j++] = $f(_Xw - 48); //#24802 + }); //#24802 + }); //#24802 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $_.funbits = $a(); //#24804 + for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24811 + $_.i = _Y0; //#24807 + $forall($get($_.functionmap, $_.i), function() { //#24810 + var _Y5 = $k[--$j]; //#24809 + $k[$j++] = $_.pixs; //#24809 + $aload(_Y5); //#24809 + $_.qmv(); //#24809 + var _Y9 = $k[--$j]; //#24809 + $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24809 + }); //#24809 + } //#24809 var _YH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -30682,1586 +31139,1595 @@ function bwipp_hanxin() { ["pixy", $_.size], ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#24522 - $k[$j++] = _YH; //#24525 - if (!$_.dontdraw) { //#24525 - bwipp_renmatrix(); //#24525 - } //#24525 - $_ = Object.getPrototypeOf($_); //#24527 - $_ = Object.getPrototypeOf($_); //#24529 -} - + ]); //#24825 + $k[$j++] = _YH; //#24828 + if (!$_.dontdraw) { //#24828 + bwipp_renmatrix(); //#24828 + } //#24828 + $_ = Object.getPrototypeOf($_); //#24830 + $_ = Object.getPrototypeOf($_); //#24832 +} //bwipp_hanxin function bwipp_dotcode() { - $_ = Object.create($_); //#24560 - $_.dontdraw = false; //#24563 - $_.rows = -1; //#24564 - $_.columns = -1; //#24565 - $_.ratio = -1; //#24566 - $_.parse = false; //#24567 - $_.parsefnc = false; //#24568 - $_.raw = false; //#24569 - $_.fast = false; //#24570 - $_.mask = -1; //#24571 - $k[$j++] = $_; //#24573 - bwipp_processoptions(); //#24573 - $_.options = $k[--$j]; //#24573 - $_.barcode = $k[--$j]; //#24574 - if ($_.rows != -1) { //#24580 - if ($_.rows < 5) { //#24579 - $k[$j++] = 'bwipp.dotcodeBadRows#24578'; //#24578 - $k[$j++] = "There must be at least 5 rows"; //#24578 - bwipp_raiseerror(); //#24578 - } //#24578 - } //#24578 - if ($_.columns != -1) { //#24586 - if ($_.columns < 5) { //#24585 - $k[$j++] = 'bwipp.dotcodeBadColumns#24584'; //#24584 - $k[$j++] = "There must be at least 5 columns"; //#24584 - bwipp_raiseerror(); //#24584 - } //#24584 - } //#24584 - if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24590 - $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24589'; //#24589 - $k[$j++] = "Sum of rows and columns must be odd"; //#24589 - bwipp_raiseerror(); //#24589 - } //#24589 - if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24595 - $_.ratio = 3 / 2; //#24594 - } //#24594 - if ($_.ratio != -1) { //#24600 - if ($_.ratio <= 0) { //#24599 - $k[$j++] = 'bwipp.dotcodeRatio#24598'; //#24598 - $k[$j++] = "The ratio must be greater than 0"; //#24598 - bwipp_raiseerror(); //#24598 - } //#24598 - } //#24598 - if ($_.mask != -1) { //#24606 - if (($_.mask < 0) || ($_.mask > 3)) { //#24605 - $k[$j++] = 'bwipp.dotcodeBadMask#24604'; //#24604 - $k[$j++] = "Valid mask values are 0 to 3"; //#24604 - bwipp_raiseerror(); //#24604 - } //#24604 - } //#24604 - bwipp_loadctx(bwipp_dotcode) //#24608 - if (!bwipp_dotcode.__24621__) { //#24621 - $_ = Object.create($_); //#24621 - $_.laa = -1; //#24612 - $_.lab = -2; //#24612 - $_.lac = -3; //#24612 - $_.bin = -4; //#24612 - $_.sfa = -5; //#24613 - $_.sfb = -6; //#24613 - $_.sb2 = -7; //#24613 - $_.sb3 = -8; //#24613 - $_.sb4 = -9; //#24614 - $_.sb5 = -10; //#24614 - $_.sb6 = -11; //#24614 - $_.sfc = -12; //#24614 - $_.sc2 = -13; //#24615 - $_.sc3 = -14; //#24615 - $_.sc4 = -15; //#24615 - $_.sc5 = -16; //#24615 - $_.sc6 = -17; //#24616 - $_.sc7 = -18; //#24616 - $_.bsa = -19; //#24616 - $_.bsb = -20; //#24616 - $_.tma = -21; //#24617 - $_.tmb = -22; //#24617 - $_.tmc = -23; //#24617 - $_.tms = -24; //#24617 - $_.fn1 = -25; //#24618 - $_.fn2 = -26; //#24618 - $_.fn3 = -27; //#24618 - $_.crl = -28; //#24618 - $_.aim = -29; //#24619 - $_.m05 = -30; //#24619 - $_.m06 = -31; //#24619 - $_.m12 = -32; //#24619 - $_.mac = -33; //#24620 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24620 - bwipp_dotcode.__24621__ = 1; //#24620 - $_ = Object.getPrototypeOf($_); //#24620 - } //#24620 + $_ = Object.create($_); //#24863 + $_.dontdraw = false; //#24866 + $_.rows = -1; //#24867 + $_.columns = -1; //#24868 + $_.ratio = -1; //#24869 + $_.parse = false; //#24870 + $_.parsefnc = false; //#24871 + $_.raw = false; //#24872 + $_.fast = false; //#24873 + $_.mask = -1; //#24874 + $k[$j++] = $_; //#24876 + bwipp_processoptions(); //#24876 + $_.options = $k[--$j]; //#24876 + $_.barcode = $k[--$j]; //#24877 + if ($_.rows != -1) { //#24883 + if ($_.rows < 5) { //#24882 + $k[$j++] = 'bwipp.dotcodeBadRows#24881'; //#24881 + $k[$j++] = "There must be at least 5 rows"; //#24881 + bwipp_raiseerror(); //#24881 + } //#24881 + } //#24881 + if ($_.columns != -1) { //#24889 + if ($_.columns < 5) { //#24888 + $k[$j++] = 'bwipp.dotcodeBadColumns#24887'; //#24887 + $k[$j++] = "There must be at least 5 columns"; //#24887 + bwipp_raiseerror(); //#24887 + } //#24887 + } //#24887 + if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24893 + $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24892'; //#24892 + $k[$j++] = "Sum of rows and columns must be odd"; //#24892 + bwipp_raiseerror(); //#24892 + } //#24892 + if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24898 + $_.ratio = 3 / 2; //#24897 + } //#24897 + if ($_.ratio != -1) { //#24903 + if ($_.ratio <= 0) { //#24902 + $k[$j++] = 'bwipp.dotcodeRatio#24901'; //#24901 + $k[$j++] = "The ratio must be greater than 0"; //#24901 + bwipp_raiseerror(); //#24901 + } //#24901 + } //#24901 + if ($_.mask != -1) { //#24909 + if (($_.mask < 0) || ($_.mask > 3)) { //#24908 + $k[$j++] = 'bwipp.dotcodeBadMask#24907'; //#24907 + $k[$j++] = "Valid mask values are 0 to 3"; //#24907 + bwipp_raiseerror(); //#24907 + } //#24907 + } //#24907 + bwipp_loadctx(bwipp_dotcode) //#24911 + if (!bwipp_dotcode.__24924__) { //#24924 + $_ = Object.create($_); //#24924 + $_.laa = -1; //#24915 + $_.lab = -2; //#24915 + $_.lac = -3; //#24915 + $_.bin = -4; //#24915 + $_.sfa = -5; //#24916 + $_.sfb = -6; //#24916 + $_.sb2 = -7; //#24916 + $_.sb3 = -8; //#24916 + $_.sb4 = -9; //#24917 + $_.sb5 = -10; //#24917 + $_.sb6 = -11; //#24917 + $_.sfc = -12; //#24917 + $_.sc2 = -13; //#24918 + $_.sc3 = -14; //#24918 + $_.sc4 = -15; //#24918 + $_.sc5 = -16; //#24918 + $_.sc6 = -17; //#24919 + $_.sc7 = -18; //#24919 + $_.bsa = -19; //#24919 + $_.bsb = -20; //#24919 + $_.tma = -21; //#24920 + $_.tmb = -22; //#24920 + $_.tmc = -23; //#24920 + $_.tms = -24; //#24920 + $_.fn1 = -25; //#24921 + $_.fn2 = -26; //#24921 + $_.fn3 = -27; //#24921 + $_.crl = -28; //#24921 + $_.aim = -29; //#24922 + $_.m05 = -30; //#24922 + $_.m06 = -31; //#24922 + $_.m12 = -32; //#24922 + $_.mac = -33; //#24923 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24923 + bwipp_dotcode.__24924__ = 1; //#24923 + $_ = Object.getPrototypeOf($_); //#24923 + } //#24923 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#24630 - $_.fncvals = _N; //#24631 - $k[$j++] = 'msg'; //#24632 - $k[$j++] = $_.barcode; //#24632 - $k[$j++] = $_.fncvals; //#24632 - bwipp_parseinput(); //#24632 - var _Q = $k[--$j]; //#24632 - $_[$k[--$j]] = _Q; //#24632 - $_.msglen = $_.msg.length; //#24633 - var _T = $_.msg; //#24636 - $k[$j++] = 'numecis'; //#24636 - $k[$j++] = 0; //#24636 - for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24636 - if ($get(_T, _U) <= -1000000) { //#24636 - var _X = $k[--$j]; //#24636 - $k[$j++] = $f(_X + 1); //#24636 - } //#24636 - } //#24636 - var _Y = $k[--$j]; //#24636 - $_[$k[--$j]] = _Y; //#24636 - $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24637 - $_.j = 0; //#24638 - for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24649 - var _h = $get($_.msg, _f); //#24640 - $k[$j++] = _h; //#24648 - if (_h <= -1000000) { //#24647 - var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24641 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24641 - $k[$j++] = $get(_l, _m); //#24641 - } //#24641 - $astore($a(6)); //#24641 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24642 - $put($_.msgtmp, $_.j, $_.fn2); //#24643 - $_.j = $_.j + 7; //#24644 - } else { //#24647 - $put($_.msgtmp, $_.j, $k[--$j]); //#24646 - $_.j = $_.j + 1; //#24647 - } //#24647 - } //#24647 - $_.msg = $_.msgtmp; //#24650 - $_.msglen = $_.msg.length; //#24651 - if (!bwipp_dotcode.__24720__) { //#24720 - $_ = Object.create($_); //#24720 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24695 - $_.charvals = $a([new Map, new Map, new Map]); //#24698 - for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#24707 - $_.i = _3d; //#24700 - $_.encs = $get($_.charmaps, $_.i); //#24701 - for (var _3h = 0; _3h <= 2; _3h += 1) { //#24706 - $_.j = _3h; //#24703 - var _3k = $get($_.encs, $_.j); //#24704 - $k[$j++] = _3k; //#24704 - if ($eq($type(_3k), 'stringtype')) { //#24704 - var _3n = $get($k[--$j], 0); //#24704 - $k[$j++] = _3n; //#24704 - } //#24704 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#24705 - } //#24705 - } //#24705 - $_.Avals = $get($_.charvals, 0); //#24708 - $_.Bvals = $get($_.charvals, 1); //#24709 - $put($_.Bvals, $_.m05, 97); //#24710 - $put($_.Bvals, $_.m06, 98); //#24711 - $put($_.Bvals, $_.m12, 99); //#24712 - $put($_.Bvals, $_.mac, 100); //#24713 - $_.Cvals = $get($_.charvals, 2); //#24714 - $k[$j++] = Infinity; //#24716 - var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#24716 - $k[$j++] = 102; //#24716 - for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#24716 - var _4M = $f($k[--$j] + 1); //#24716 - $k[$j++] = $get(_4H, _4I); //#24716 - $k[$j++] = _4M; //#24716 - $k[$j++] = _4M; //#24716 - } //#24716 - $j--; //#24716 - $_.BINvals = $d(); //#24717 - $_.A = 0; //#24719 - $_.B = 1; //#24719 - $_.C = 2; //#24719 - $_.BIN = 3; //#24719 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24719 - bwipp_dotcode.__24720__ = 1; //#24719 - $_ = Object.getPrototypeOf($_); //#24719 - } //#24719 - $k[$j++] = Infinity; //#24723 - for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#24723 - $k[$j++] = 0; //#24723 - } //#24723 - $_.nDigits = $a(); //#24723 - $k[$j++] = Infinity; //#24724 - for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#24724 - $k[$j++] = false; //#24724 - } //#24724 - $_.SeventeenTen = $a(); //#24724 - $k[$j++] = Infinity; //#24725 - for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#24725 - $k[$j++] = false; //#24725 - } //#24725 - $_.ECI = $a(); //#24725 - $k[$j++] = Infinity; //#24726 - for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#24726 - $k[$j++] = false; //#24726 - } //#24726 - $_.DatumA = $a(); //#24726 - $k[$j++] = Infinity; //#24727 - for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#24727 - $k[$j++] = false; //#24727 - } //#24727 - $_.DatumB = $a(); //#24727 - $k[$j++] = Infinity; //#24728 - for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#24728 - $k[$j++] = false; //#24728 - } //#24728 - $_.DatumC = $a(); //#24728 - $k[$j++] = Infinity; //#24729 - for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#24729 - $k[$j++] = false; //#24729 - } //#24729 - $_.Binary = $a(); //#24729 - $k[$j++] = Infinity; //#24730 - for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#24730 - $k[$j++] = 0; //#24730 - } //#24730 - $_.AheadC = $a(); //#24730 - $k[$j++] = Infinity; //#24731 - for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#24731 - $k[$j++] = 0; //#24731 - } //#24731 - $_.TryC = $a(); //#24731 - $k[$j++] = Infinity; //#24732 - for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#24732 - $k[$j++] = 0; //#24732 - } //#24732 - $_.AheadA = $a(); //#24732 - $k[$j++] = Infinity; //#24733 - for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#24733 - $k[$j++] = 0; //#24733 - } //#24733 - $_.AheadB = $a(); //#24733 - $k[$j++] = Infinity; //#24734 - for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#24734 - $k[$j++] = 0; //#24734 - } //#24734 - $_.UntilEndSeg = $a(); //#24734 - for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#24789 - $_.i = _5C; //#24736 - $_.barchar = $get($_.msg, $_.i); //#24737 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#24740 - $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#24739 - } //#24739 - var _5P = $get($_.Avals, $_.barchar) !== undefined; //#24741 - if (_5P) { //#24741 - $put($_.DatumA, $_.i, true); //#24741 - } //#24741 - var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#24742 - if (_5U) { //#24742 - $put($_.DatumB, $_.i, true); //#24742 - } //#24742 - $_.CRLF = false; //#24743 - if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#24746 - if ($get($_.msg, $_.i + 1) == 10) { //#24745 - $_.CRLF = true; //#24745 - } //#24745 - } //#24745 - if ($_.CRLF) { //#24747 - $put($_.DatumB, $_.i, true); //#24747 - } //#24747 - if ($get($_.nDigits, $_.i) >= 2) { //#24748 - $put($_.DatumC, $_.i, true); //#24748 - } //#24748 - if ($_.barchar < 0) { //#24749 - $put($_.DatumC, $_.i, true); //#24749 - } //#24749 - if ($_.barchar >= 128) { //#24750 - $put($_.Binary, $_.i, true); //#24750 - } //#24750 - if ($get($_.nDigits, $_.i) >= 10) { //#24764 - $k[$j++] = Infinity; //#24752 - $aload($geti($_.msg, $_.i, 10)); //#24753 - for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#24761 - if ($k[--$j] != 48) { //#24755 - $k[$j++] = false; //#24755 - break; //#24755 - } //#24755 - if ($k[--$j] != 49) { //#24756 - $k[$j++] = false; //#24756 - break; //#24756 - } //#24756 - $j -= 6; //#24757 - if ($k[--$j] != 55) { //#24758 - $k[$j++] = false; //#24758 - break; //#24758 - } //#24758 - if ($k[--$j] != 49) { //#24759 - $k[$j++] = false; //#24759 - break; //#24759 - } //#24759 - $k[$j++] = true; //#24760 - } //#24760 - $put($_.SeventeenTen, $_.i, $k[--$j]); //#24762 - $cleartomark(); //#24763 - } //#24763 - if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#24767 - $put($_.ECI, $_.i, true); //#24766 - } //#24766 - if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#24769 - } else { //#24774 - if ($get($_.nDigits, $_.i) <= 1) { //#24774 - $put($_.AheadC, $_.i, 0); //#24772 - } else { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#24774 - } //#24774 - } //#24774 - if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#24779 - $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#24778 - } //#24778 - if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24782 - $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#24781 - } //#24781 - if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24785 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i; //#24784 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i + 1; //#24784 - if ($_.CRLF) { //#24784 - var _7B = $k[--$j]; //#24784 - $k[$j++] = $f(_7B + 1); //#24784 - } //#24784 - var _7C = $k[--$j]; //#24784 - var _7E = $get($k[--$j], _7C); //#24784 - var _7F = $k[--$j]; //#24784 - $put($k[--$j], _7F, $f(_7E + 1)); //#24784 - } //#24784 - if ($_.barchar != $_.fn3) { //#24788 - $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#24787 - } //#24787 - } //#24787 + ]); //#24933 + $_.fncvals = _N; //#24934 + $k[$j++] = 'msg'; //#24935 + $k[$j++] = $_.barcode; //#24935 + $k[$j++] = $_.fncvals; //#24935 + bwipp_parseinput(); //#24935 + var _Q = $k[--$j]; //#24935 + $_[$k[--$j]] = _Q; //#24935 + $_.msglen = $_.msg.length; //#24936 + var _T = $_.msg; //#24939 + $k[$j++] = 'numecis'; //#24939 + $k[$j++] = 0; //#24939 + for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24939 + if ($get(_T, _U) <= -1000000) { //#24939 + var _X = $k[--$j]; //#24939 + $k[$j++] = $f(_X + 1); //#24939 + } //#24939 + } //#24939 + var _Y = $k[--$j]; //#24939 + $_[$k[--$j]] = _Y; //#24939 + $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24940 + $_.j = 0; //#24941 + for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24952 + var _h = $get($_.msg, _f); //#24943 + $k[$j++] = _h; //#24951 + if (_h <= -1000000) { //#24950 + var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24944 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24944 + $k[$j++] = $get(_l, _m); //#24944 + } //#24944 + $astore($a(6)); //#24944 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24945 + $put($_.msgtmp, $_.j, $_.fn2); //#24946 + $_.j = $_.j + 7; //#24947 + } else { //#24950 + $put($_.msgtmp, $_.j, $k[--$j]); //#24949 + $_.j = $_.j + 1; //#24950 + } //#24950 + } //#24950 + $_.msg = $_.msgtmp; //#24953 + $_.msglen = $_.msg.length; //#24954 + if (!bwipp_dotcode.__25023__) { //#25023 + $_ = Object.create($_); //#25023 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24998 + $_.charvals = $a([new Map, new Map, new Map]); //#25001 + for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#25010 + $_.i = _3d; //#25003 + $_.encs = $get($_.charmaps, $_.i); //#25004 + for (var _3h = 0; _3h <= 2; _3h += 1) { //#25009 + $_.j = _3h; //#25006 + var _3k = $get($_.encs, $_.j); //#25007 + $k[$j++] = _3k; //#25007 + if ($eq($type(_3k), 'stringtype')) { //#25007 + var _3n = $get($k[--$j], 0); //#25007 + $k[$j++] = _3n; //#25007 + } //#25007 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#25008 + } //#25008 + } //#25008 + $_.Avals = $get($_.charvals, 0); //#25011 + $_.Bvals = $get($_.charvals, 1); //#25012 + $put($_.Bvals, $_.m05, 97); //#25013 + $put($_.Bvals, $_.m06, 98); //#25014 + $put($_.Bvals, $_.m12, 99); //#25015 + $put($_.Bvals, $_.mac, 100); //#25016 + $_.Cvals = $get($_.charvals, 2); //#25017 + $k[$j++] = Infinity; //#25018 + var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#25019 + $k[$j++] = 102; //#25019 + for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#25019 + var _4M = $f($k[--$j] + 1); //#25019 + $k[$j++] = $get(_4H, _4I); //#25019 + $k[$j++] = _4M; //#25019 + $k[$j++] = _4M; //#25019 + } //#25019 + $j--; //#25019 + $_.BINvals = $d(); //#25020 + $_.A = 0; //#25022 + $_.B = 1; //#25022 + $_.C = 2; //#25022 + $_.BIN = 3; //#25022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25022 + bwipp_dotcode.__25023__ = 1; //#25022 + $_ = Object.getPrototypeOf($_); //#25022 + } //#25022 + $k[$j++] = Infinity; //#25026 + for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#25026 + $k[$j++] = 0; //#25026 + } //#25026 + $_.nDigits = $a(); //#25026 + $k[$j++] = Infinity; //#25027 + for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#25027 + $k[$j++] = false; //#25027 + } //#25027 + $_.SeventeenTen = $a(); //#25027 + $k[$j++] = Infinity; //#25028 + for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#25028 + $k[$j++] = false; //#25028 + } //#25028 + $_.ECI = $a(); //#25028 + $k[$j++] = Infinity; //#25029 + for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#25029 + $k[$j++] = false; //#25029 + } //#25029 + $_.DatumA = $a(); //#25029 + $k[$j++] = Infinity; //#25030 + for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#25030 + $k[$j++] = false; //#25030 + } //#25030 + $_.DatumB = $a(); //#25030 + $k[$j++] = Infinity; //#25031 + for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#25031 + $k[$j++] = false; //#25031 + } //#25031 + $_.DatumC = $a(); //#25031 + $k[$j++] = Infinity; //#25032 + for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#25032 + $k[$j++] = false; //#25032 + } //#25032 + $_.Binary = $a(); //#25032 + $k[$j++] = Infinity; //#25033 + for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#25033 + $k[$j++] = 0; //#25033 + } //#25033 + $_.AheadC = $a(); //#25033 + $k[$j++] = Infinity; //#25034 + for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#25034 + $k[$j++] = 0; //#25034 + } //#25034 + $_.TryC = $a(); //#25034 + $k[$j++] = Infinity; //#25035 + for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#25035 + $k[$j++] = 0; //#25035 + } //#25035 + $_.AheadA = $a(); //#25035 + $k[$j++] = Infinity; //#25036 + for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#25036 + $k[$j++] = 0; //#25036 + } //#25036 + $_.AheadB = $a(); //#25036 + $k[$j++] = Infinity; //#25037 + for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#25037 + $k[$j++] = 0; //#25037 + } //#25037 + $_.UntilEndSeg = $a(); //#25037 + for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#25092 + $_.i = _5C; //#25039 + $_.barchar = $get($_.msg, $_.i); //#25040 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#25043 + $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#25042 + } //#25042 + var _5P = $get($_.Avals, $_.barchar) !== undefined; //#25044 + if (_5P) { //#25044 + $put($_.DatumA, $_.i, true); //#25044 + } //#25044 + var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#25045 + if (_5U) { //#25045 + $put($_.DatumB, $_.i, true); //#25045 + } //#25045 + $_.CRLF = false; //#25046 + if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#25049 + if ($get($_.msg, $_.i + 1) == 10) { //#25048 + $_.CRLF = true; //#25048 + } //#25048 + } //#25048 + if ($_.CRLF) { //#25050 + $put($_.DatumB, $_.i, true); //#25050 + } //#25050 + if ($get($_.nDigits, $_.i) >= 2) { //#25051 + $put($_.DatumC, $_.i, true); //#25051 + } //#25051 + if ($_.barchar < 0) { //#25052 + $put($_.DatumC, $_.i, true); //#25052 + } //#25052 + if ($_.barchar >= 128) { //#25053 + $put($_.Binary, $_.i, true); //#25053 + } //#25053 + if ($get($_.nDigits, $_.i) >= 10) { //#25067 + $k[$j++] = Infinity; //#25055 + $aload($geti($_.msg, $_.i, 10)); //#25056 + for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#25064 + if ($k[--$j] != 48) { //#25058 + $k[$j++] = false; //#25058 + break; //#25058 + } //#25058 + if ($k[--$j] != 49) { //#25059 + $k[$j++] = false; //#25059 + break; //#25059 + } //#25059 + $j -= 6; //#25060 + if ($k[--$j] != 55) { //#25061 + $k[$j++] = false; //#25061 + break; //#25061 + } //#25061 + if ($k[--$j] != 49) { //#25062 + $k[$j++] = false; //#25062 + break; //#25062 + } //#25062 + $k[$j++] = true; //#25063 + } //#25063 + $put($_.SeventeenTen, $_.i, $k[--$j]); //#25065 + $cleartomark(); //#25066 + } //#25066 + if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#25070 + $put($_.ECI, $_.i, true); //#25069 + } //#25069 + if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#25072 + } else { //#25077 + if ($get($_.nDigits, $_.i) <= 1) { //#25077 + $put($_.AheadC, $_.i, 0); //#25075 + } else { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#25077 + } //#25077 + } //#25077 + if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#25082 + $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#25081 + } //#25081 + if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25085 + $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#25084 + } //#25084 + if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25088 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i; //#25087 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i + 1; //#25087 + if ($_.CRLF) { //#25087 + var _7B = $k[--$j]; //#25087 + $k[$j++] = $f(_7B + 1); //#25087 + } //#25087 + var _7C = $k[--$j]; //#25087 + var _7E = $get($k[--$j], _7C); //#25087 + var _7F = $k[--$j]; //#25087 + $put($k[--$j], _7F, $f(_7E + 1)); //#25087 + } //#25087 + if ($_.barchar != $_.fn3) { //#25091 + $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#25090 + } //#25090 + } //#25090 $_.addtocws = function() { - var _7O = $k[--$j]; //#24792 - $puti($_.cws, $_.j, _7O); //#24792 - $_.j = _7O.length + $_.j; //#24793 - }; //#24793 + var _7O = $k[--$j]; //#25095 + $puti($_.cws, $_.j, _7O); //#25095 + $_.j = _7O.length + $_.j; //#25096 + }; //#25096 $_.base259to103 = function() { - $_.in = $k[--$j]; //#24798 - $_.inlen = $_.in.length; //#24799 - $k[$j++] = Infinity; //#24800 - for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#24800 - $k[$j++] = 0; //#24800 - } //#24800 - $aload($_.in); //#24800 - $_.in = $a(); //#24800 - $_.out = $a(6); //#24801 - $k[$j++] = Infinity; //#24802 - $aload($geti($_.in, 0, 2)); //#24802 - $_.msbs = $a(); //#24802 - $k[$j++] = Infinity; //#24805 - $aload($_.msbs); //#24804 - var _7e = $k[--$j]; //#24804 - var _7f = $k[--$j]; //#24804 - $k[$j++] = $f(_7e + (_7f * 259)); //#24805 - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#24805 - var _7i = $k[--$j]; //#24805 - $k[$j++] = _7i % 103; //#24805 - $k[$j++] = ~~(_7i / 103); //#24805 - } //#24805 - $_.mscs = $a(); //#24805 - $k[$j++] = Infinity; //#24807 - $aload($geti($_.in, 2, 3)); //#24807 - $_.lsbs = $a(); //#24807 - $k[$j++] = Infinity; //#24810 - $aload($_.lsbs); //#24809 - var _7o = $k[--$j]; //#24809 - var _7p = $k[--$j]; //#24809 - var _7q = $k[--$j]; //#24809 - $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#24810 - for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#24810 - var _7t = $k[--$j]; //#24810 - $k[$j++] = _7t % 103; //#24810 - $k[$j++] = ~~(_7t / 103); //#24810 - } //#24810 - $_.lscs = $a(); //#24810 - var _7w = $get($_.lscs, 0); //#24812 - var _7y = $get($_.mscs, 0); //#24812 - $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#24813 - var _81 = $get($_.lscs, 1); //#24814 - var _83 = $get($_.mscs, 0); //#24814 - var _85 = $get($_.mscs, 1); //#24814 - $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#24815 - var _88 = $get($_.lscs, 2); //#24816 - var _8A = $get($_.mscs, 0); //#24816 - var _8C = $get($_.mscs, 1); //#24816 - var _8E = $get($_.mscs, 2); //#24816 - $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#24817 - var _8H = $get($_.lscs, 3); //#24818 - var _8J = $get($_.mscs, 0); //#24818 - var _8L = $get($_.mscs, 1); //#24818 - var _8N = $get($_.mscs, 2); //#24818 - $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#24819 - var _8Q = $get($_.mscs, 1); //#24820 - var _8S = $get($_.mscs, 2); //#24820 - $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#24821 - $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#24823 - $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#24824 - }; //#24824 + $_.in = $k[--$j]; //#25101 + $_.inlen = $_.in.length; //#25102 + $k[$j++] = Infinity; //#25103 + for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#25103 + $k[$j++] = 0; //#25103 + } //#25103 + $aload($_.in); //#25103 + $_.in = $a(); //#25103 + $_.out = $a(6); //#25104 + $k[$j++] = Infinity; //#25105 + $aload($geti($_.in, 0, 2)); //#25105 + $_.msbs = $a(); //#25105 + $k[$j++] = Infinity; //#25106 + $aload($_.msbs); //#25107 + var _7e = $k[--$j]; //#25107 + var _7f = $k[--$j]; //#25107 + $k[$j++] = $f(_7e + (_7f * 259)); //#25108 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#25108 + var _7i = $k[--$j]; //#25108 + $k[$j++] = _7i % 103; //#25108 + $k[$j++] = ~~(_7i / 103); //#25108 + } //#25108 + $_.mscs = $a(); //#25108 + $k[$j++] = Infinity; //#25110 + $aload($geti($_.in, 2, 3)); //#25110 + $_.lsbs = $a(); //#25110 + $k[$j++] = Infinity; //#25111 + $aload($_.lsbs); //#25112 + var _7o = $k[--$j]; //#25112 + var _7p = $k[--$j]; //#25112 + var _7q = $k[--$j]; //#25112 + $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#25113 + for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#25113 + var _7t = $k[--$j]; //#25113 + $k[$j++] = _7t % 103; //#25113 + $k[$j++] = ~~(_7t / 103); //#25113 + } //#25113 + $_.lscs = $a(); //#25113 + var _7w = $get($_.lscs, 0); //#25115 + var _7y = $get($_.mscs, 0); //#25115 + $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#25116 + var _81 = $get($_.lscs, 1); //#25117 + var _83 = $get($_.mscs, 0); //#25117 + var _85 = $get($_.mscs, 1); //#25117 + $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#25118 + var _88 = $get($_.lscs, 2); //#25119 + var _8A = $get($_.mscs, 0); //#25119 + var _8C = $get($_.mscs, 1); //#25119 + var _8E = $get($_.mscs, 2); //#25119 + $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#25120 + var _8H = $get($_.lscs, 3); //#25121 + var _8J = $get($_.mscs, 0); //#25121 + var _8L = $get($_.mscs, 1); //#25121 + var _8N = $get($_.mscs, 2); //#25121 + $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#25122 + var _8Q = $get($_.mscs, 1); //#25123 + var _8S = $get($_.mscs, 2); //#25123 + $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#25124 + $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#25126 + $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#25127 + }; //#25127 $_.finaliseBIN = function() { - if ($_.bpos != 0) { //#24831 - $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#24829 - $_.base259to103(); //#24829 - $aload($k[--$j]); //#24829 - $_.bpos = 0; //#24830 - } //#24830 - }; //#24830 + if ($_.bpos != 0) { //#25134 + $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#25132 + $_.base259to103(); //#25132 + $aload($k[--$j]); //#25132 + $_.bpos = 0; //#25133 + } //#25133 + }; //#25133 $_.addtobin = function() { - $put($_.bvals, $_.bpos, $k[--$j]); //#24835 - $_.bpos = $_.bpos + 1; //#24836 - if ($_.bpos == 5) { //#24837 - $_.finaliseBIN(); //#24837 - } //#24837 - }; //#24837 + $put($_.bvals, $_.bpos, $k[--$j]); //#25138 + $_.bpos = $_.bpos + 1; //#25139 + if ($_.bpos == 5) { //#25140 + $_.finaliseBIN(); //#25140 + } //#25140 + }; //#25140 $_.ECIabc = function() { - var _8n = $geti($_.msg, $_.i + 1, 6); //#24841 - $k[$j++] = 0; //#24841 - for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#24841 - var _8r = $k[--$j]; //#24841 - $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#24841 - } //#24841 - var _8t = ~~($k[--$j] / 10); //#24842 - $k[$j++] = _8t; //#24846 - if (_8t >= 40) { //#24846 - var _8v = $f($k[--$j] - 40); //#24844 - var _8w = _8v % 12769; //#24845 - $k[$j++] = (~~(_8v / 12769)) + 40; //#24845 - $k[$j++] = ~~(_8w / 113); //#24845 - $k[$j++] = _8w % 113; //#24845 - } //#24845 - }; //#24845 + var _8n = $geti($_.msg, $_.i + 1, 6); //#25144 + $k[$j++] = 0; //#25144 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#25144 + var _8r = $k[--$j]; //#25144 + $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#25144 + } //#25144 + var _8t = ~~($k[--$j] / 10); //#25145 + $k[$j++] = _8t; //#25149 + if (_8t >= 40) { //#25149 + var _8v = $f($k[--$j] - 40); //#25147 + var _8w = _8v % 12769; //#25148 + $k[$j++] = (~~(_8v / 12769)) + 40; //#25148 + $k[$j++] = ~~(_8w / 113); //#25148 + $k[$j++] = _8w % 113; //#25148 + } //#25148 + }; //#25148 $_.ECIbin = function() { - $k[$j++] = Infinity; //#24858 - var _8z = $geti($_.msg, $_.i + 1, 6); //#24851 - $k[$j++] = 0; //#24851 - for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#24851 - var _93 = $k[--$j]; //#24851 - $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#24851 - } //#24851 - var _95 = ~~($k[--$j] / 10); //#24852 - $k[$j++] = _95; //#24860 - if (_95 >= 65536) { //#24858 - var _96 = $k[--$j]; //#24853 - var _97 = _96 % 65536; //#24853 - $k[$j++] = 258; //#24853 - $k[$j++] = ~~(_96 / 65536); //#24853 - $k[$j++] = ~~(_97 / 256); //#24853 - $k[$j++] = _97 % 256; //#24853 - } else { //#24858 - var _98 = $k[--$j]; //#24855 - $k[$j++] = _98; //#24859 - if (_98 >= 256) { //#24858 - var _99 = $k[--$j]; //#24856 - $k[$j++] = 257; //#24856 - $k[$j++] = ~~(_99 / 256); //#24856 - $k[$j++] = _99 % 256; //#24856 - } else { //#24858 - var _9A = $k[--$j]; //#24858 - $k[$j++] = 256; //#24858 - $k[$j++] = _9A; //#24858 - } //#24858 - } //#24858 - var _9B = $a(); //#24858 - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#24863 - $k[$j++] = $get(_9B, _9C); //#24862 - $_.addtobin(); //#24862 - } //#24862 - }; //#24862 + $k[$j++] = Infinity; //#25153 + var _8z = $geti($_.msg, $_.i + 1, 6); //#25154 + $k[$j++] = 0; //#25154 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#25154 + var _93 = $k[--$j]; //#25154 + $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#25154 + } //#25154 + var _95 = ~~($k[--$j] / 10); //#25155 + $k[$j++] = _95; //#25163 + if (_95 >= 65536) { //#25161 + var _96 = $k[--$j]; //#25156 + var _97 = _96 % 65536; //#25156 + $k[$j++] = 258; //#25156 + $k[$j++] = ~~(_96 / 65536); //#25156 + $k[$j++] = ~~(_97 / 256); //#25156 + $k[$j++] = _97 % 256; //#25156 + } else { //#25161 + var _98 = $k[--$j]; //#25158 + $k[$j++] = _98; //#25162 + if (_98 >= 256) { //#25161 + var _99 = $k[--$j]; //#25159 + $k[$j++] = 257; //#25159 + $k[$j++] = ~~(_99 / 256); //#25159 + $k[$j++] = _99 % 256; //#25159 + } else { //#25161 + var _9A = $k[--$j]; //#25161 + $k[$j++] = 256; //#25161 + $k[$j++] = _9A; //#25161 + } //#25161 + } //#25161 + var _9B = $a(); //#25161 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#25166 + $k[$j++] = $get(_9B, _9C); //#25165 + $_.addtobin(); //#25165 + } //#25165 + }; //#25165 $_.encC = function() { - for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#24987 - if ($_.i == $_.segstart) { //#24900 - for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#24885 - if ($_.i > $f($_.segend - 7)) { //#24870 - $k[$j++] = 0; //#24870 - break; //#24870 - } //#24870 - if ($get($_.msg, $_.segstart) != 91) { //#24871 - $k[$j++] = 0; //#24871 - break; //#24871 - } //#24871 - if ($get($_.msg, $_.segstart + 1) != 41) { //#24872 - $k[$j++] = 0; //#24872 - break; //#24872 - } //#24872 - if ($get($_.msg, $_.segstart + 2) != 62) { //#24873 - $k[$j++] = 0; //#24873 - break; //#24873 - } //#24873 - if ($get($_.msg, $_.segstart + 3) != 30) { //#24874 - $k[$j++] = 0; //#24874 - break; //#24874 - } //#24874 - var _9b = $get($_.msg, $_.segstart + 4); //#24875 - if ((_9b < 48) || (_9b > 57)) { //#24875 - $k[$j++] = 0; //#24875 - break; //#24875 - } //#24875 - var _9e = $get($_.msg, $_.segstart + 5); //#24876 - if ((_9e < 48) || (_9e > 57)) { //#24876 - $k[$j++] = 0; //#24876 - break; //#24876 - } //#24876 - if ($get($_.msg, $f($_.segend - 1)) != 4) { //#24877 - $k[$j++] = 0; //#24877 - break; //#24877 - } //#24877 - var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#24879 - $k[$j++] = _9o; //#24879 - if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#24879 - $j--; //#24879 - $k[$j++] = $_.mac; //#24879 - break; //#24879 - } //#24879 - if ($get($_.msg, $_.segstart + 6) != 29) { //#24880 - $j--; //#24880 - $k[$j++] = 0; //#24880 - break; //#24880 - } //#24880 - if ($get($_.msg, $f($_.segend - 2)) != 30) { //#24881 - $j--; //#24881 - $k[$j++] = 0; //#24881 - break; //#24881 - } //#24881 - var _9w = $k[--$j]; //#24882 - $k[$j++] = _9w; //#24882 - if (_9w == 5) { //#24882 - $j--; //#24882 - $k[$j++] = $_.m05; //#24882 - break; //#24882 - } //#24882 - if ($k[--$j] == 6) { //#24883 - $k[$j++] = $_.m06; //#24883 - break; //#24883 - } //#24883 - $k[$j++] = $_.m12; //#24884 - break; //#24884 - } //#24884 - $_.inmac = $k[--$j]; //#24886 - if ($_.inmac != 0) { //#24899 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24888 - $_.addtocws(); //#24888 - $_.mode = $_.B; //#24889 - $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#24890 - $_.addtocws(); //#24890 - if ($_.inmac == $_.mac) { //#24896 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#24892 - $_.addtocws(); //#24892 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#24893 - $_.addtocws(); //#24893 - $_.i = $_.i + 6; //#24894 - } else { //#24896 - $_.i = $_.i + 7; //#24896 - } //#24896 - break; //#24898 - } //#24898 - } //#24898 - if ($_.i == $_.segstart) { //#24911 - if ($get($_.nDigits, $_.i) >= 2) { //#24906 - $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#24905 - $_.addtocws(); //#24905 - } //#24905 - if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#24910 - $_.i = $_.i + 1; //#24909 - } //#24909 - } //#24909 - if ($get($_.SeventeenTen, $_.i)) { //#24921 - $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#24918 - $_.addtocws(); //#24918 - $_.i = $_.i + 10; //#24919 - break; //#24920 - } //#24920 - if ($get($_.DatumC, $_.i)) { //#24943 - var _BE = $get($_.msg, $_.i); //#24923 - if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#24939 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#24924 - $_.addtocws(); //#24924 - if ($get($_.ECI, $_.i)) { //#24929 - $k[$j++] = Infinity; //#24926 - $_.ECIabc(); //#24926 - var _BR = $a(); //#24926 - $k[$j++] = _BR; //#24926 - $_.addtocws(); //#24926 - $_.i = $_.i + 7; //#24927 - break; //#24928 - } //#24928 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#24936 - $_.i = $_.i + 1; //#24931 - $_.inmac = 0; //#24932 - $_.segstart = $_.i; //#24933 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#24934 - break; //#24935 - } //#24935 - $_.i = $_.i + 1; //#24937 - break; //#24938 - } //#24938 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#24940 - $_.addtocws(); //#24940 - $_.i = $_.i + 2; //#24941 - break; //#24942 - } //#24942 - if ($get($_.Binary, $_.i)) { //#24957 - if ($get($_.nDigits, $_.i + 1) > 0) { //#24953 - if ($get($_.msg, $_.i) < 160) { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#24947 - $_.addtocws(); //#24947 - } else { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#24949 - $_.addtocws(); //#24949 - } //#24949 - $_.i = $_.i + 1; //#24951 - break; //#24952 - } //#24952 - $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#24954 - $_.addtocws(); //#24954 - $_.mode = $_.BIN; //#24955 - break; //#24956 - } //#24956 - $_.m = $get($_.AheadA, $_.i); //#24958 - $_.n = $get($_.AheadB, $_.i); //#24958 - if ($gt($_.m, $_.n)) { //#24963 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24960 - $_.addtocws(); //#24960 - $_.mode = $_.A; //#24961 - break; //#24962 - } //#24962 - if ($_.i == $_.segstart) { //#24970 - var _Cc = $get($_.msg, $_.i); //#24965 - if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#24969 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24966 - $_.addtocws(); //#24966 - $_.mode = $_.A; //#24967 - break; //#24968 - } //#24968 - } //#24968 - if ($_.n > 4) { //#24975 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24972 - $_.addtocws(); //#24972 - $_.mode = $_.B; //#24973 - break; //#24974 - } //#24974 - $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#24976 - $_.addtocws(); //#24976 - for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#24985 - if ($get($_.msg, $_.i) == 13) { //#24983 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#24979 - $_.addtocws(); //#24979 - $_.i = $_.i + 2; //#24980 - } else { //#24983 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#24982 - $_.addtocws(); //#24982 - $_.i = $_.i + 1; //#24983 - } //#24983 - } //#24983 - break; //#24986 - } //#24986 - }; //#24986 + for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#25290 + if ($_.i == $_.segstart) { //#25203 + for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#25188 + if ($_.i > $f($_.segend - 7)) { //#25173 + $k[$j++] = 0; //#25173 + break; //#25173 + } //#25173 + if ($get($_.msg, $_.segstart) != 91) { //#25174 + $k[$j++] = 0; //#25174 + break; //#25174 + } //#25174 + if ($get($_.msg, $_.segstart + 1) != 41) { //#25175 + $k[$j++] = 0; //#25175 + break; //#25175 + } //#25175 + if ($get($_.msg, $_.segstart + 2) != 62) { //#25176 + $k[$j++] = 0; //#25176 + break; //#25176 + } //#25176 + if ($get($_.msg, $_.segstart + 3) != 30) { //#25177 + $k[$j++] = 0; //#25177 + break; //#25177 + } //#25177 + var _9b = $get($_.msg, $_.segstart + 4); //#25178 + if ((_9b < 48) || (_9b > 57)) { //#25178 + $k[$j++] = 0; //#25178 + break; //#25178 + } //#25178 + var _9e = $get($_.msg, $_.segstart + 5); //#25179 + if ((_9e < 48) || (_9e > 57)) { //#25179 + $k[$j++] = 0; //#25179 + break; //#25179 + } //#25179 + if ($get($_.msg, $f($_.segend - 1)) != 4) { //#25180 + $k[$j++] = 0; //#25180 + break; //#25180 + } //#25180 + var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#25182 + $k[$j++] = _9o; //#25182 + if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#25182 + $j--; //#25182 + $k[$j++] = $_.mac; //#25182 + break; //#25182 + } //#25182 + if ($get($_.msg, $_.segstart + 6) != 29) { //#25183 + $j--; //#25183 + $k[$j++] = 0; //#25183 + break; //#25183 + } //#25183 + if ($get($_.msg, $f($_.segend - 2)) != 30) { //#25184 + $j--; //#25184 + $k[$j++] = 0; //#25184 + break; //#25184 + } //#25184 + var _9w = $k[--$j]; //#25185 + $k[$j++] = _9w; //#25185 + if (_9w == 5) { //#25185 + $j--; //#25185 + $k[$j++] = $_.m05; //#25185 + break; //#25185 + } //#25185 + if ($k[--$j] == 6) { //#25186 + $k[$j++] = $_.m06; //#25186 + break; //#25186 + } //#25186 + $k[$j++] = $_.m12; //#25187 + break; //#25187 + } //#25187 + $_.inmac = $k[--$j]; //#25189 + if ($_.inmac != 0) { //#25202 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25191 + $_.addtocws(); //#25191 + $_.mode = $_.B; //#25192 + $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#25193 + $_.addtocws(); //#25193 + if ($_.inmac == $_.mac) { //#25199 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#25195 + $_.addtocws(); //#25195 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#25196 + $_.addtocws(); //#25196 + $_.i = $_.i + 6; //#25197 + } else { //#25199 + $_.i = $_.i + 7; //#25199 + } //#25199 + break; //#25201 + } //#25201 + } //#25201 + if ($_.i == $_.segstart) { //#25214 + if ($get($_.nDigits, $_.i) >= 2) { //#25209 + $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#25208 + $_.addtocws(); //#25208 + } //#25208 + if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#25213 + $_.i = $_.i + 1; //#25212 + } //#25212 + } //#25212 + if ($get($_.SeventeenTen, $_.i)) { //#25224 + $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#25221 + $_.addtocws(); //#25221 + $_.i = $_.i + 10; //#25222 + break; //#25223 + } //#25223 + if ($get($_.DatumC, $_.i)) { //#25246 + var _BE = $get($_.msg, $_.i); //#25226 + if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#25242 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25227 + $_.addtocws(); //#25227 + if ($get($_.ECI, $_.i)) { //#25232 + $k[$j++] = Infinity; //#25229 + $_.ECIabc(); //#25229 + var _BR = $a(); //#25229 + $k[$j++] = _BR; //#25229 + $_.addtocws(); //#25229 + $_.i = $_.i + 7; //#25230 + break; //#25231 + } //#25231 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#25239 + $_.i = $_.i + 1; //#25234 + $_.inmac = 0; //#25235 + $_.segstart = $_.i; //#25236 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25237 + break; //#25238 + } //#25238 + $_.i = $_.i + 1; //#25240 + break; //#25241 + } //#25241 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25243 + $_.addtocws(); //#25243 + $_.i = $_.i + 2; //#25244 + break; //#25245 + } //#25245 + if ($get($_.Binary, $_.i)) { //#25260 + if ($get($_.nDigits, $_.i + 1) > 0) { //#25256 + if ($get($_.msg, $_.i) < 160) { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25250 + $_.addtocws(); //#25250 + } else { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25252 + $_.addtocws(); //#25252 + } //#25252 + $_.i = $_.i + 1; //#25254 + break; //#25255 + } //#25255 + $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#25257 + $_.addtocws(); //#25257 + $_.mode = $_.BIN; //#25258 + break; //#25259 + } //#25259 + $_.m = $get($_.AheadA, $_.i); //#25261 + $_.n = $get($_.AheadB, $_.i); //#25261 + if ($gt($_.m, $_.n)) { //#25266 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25263 + $_.addtocws(); //#25263 + $_.mode = $_.A; //#25264 + break; //#25265 + } //#25265 + if ($_.i == $_.segstart) { //#25273 + var _Cc = $get($_.msg, $_.i); //#25268 + if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#25272 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25269 + $_.addtocws(); //#25269 + $_.mode = $_.A; //#25270 + break; //#25271 + } //#25271 + } //#25271 + if ($_.n > 4) { //#25278 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25275 + $_.addtocws(); //#25275 + $_.mode = $_.B; //#25276 + break; //#25277 + } //#25277 + $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#25279 + $_.addtocws(); //#25279 + for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#25288 + if ($get($_.msg, $_.i) == 13) { //#25286 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25282 + $_.addtocws(); //#25282 + $_.i = $_.i + 2; //#25283 + } else { //#25286 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25285 + $_.addtocws(); //#25285 + $_.i = $_.i + 1; //#25286 + } //#25286 + } //#25286 + break; //#25289 + } //#25289 + }; //#25289 $_.encB = function() { - for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25063 - $_.n = $get($_.TryC, $_.i); //#24992 - if ($_.n >= 2) { //#25010 - if ($_.n > 4) { //#24998 - $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#24995 - $_.addtocws(); //#24995 - $_.mode = $_.C; //#24996 - break; //#24997 - } //#24997 - $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#24999 - $_.addtocws(); //#24999 - for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25008 - if ($get($_.msg, $_.i) < 0) { //#25006 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25002 - $_.addtocws(); //#25002 - $_.i = $_.i + 1; //#25003 - } else { //#25006 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25005 - $_.addtocws(); //#25005 - $_.i = $_.i + 2; //#25006 - } //#25006 - } //#25006 - break; //#25009 - } //#25009 - if ($get($_.DatumB, $_.i)) { //#25040 - var _E2 = $get($_.msg, $_.i); //#25012 - if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25029 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25013 - $_.addtocws(); //#25013 - if ($get($_.ECI, $_.i)) { //#25018 - $k[$j++] = Infinity; //#25015 - $_.ECIabc(); //#25015 - var _EF = $a(); //#25015 - $k[$j++] = _EF; //#25015 - $_.addtocws(); //#25015 - $_.i = $_.i + 7; //#25016 - break; //#25017 - } //#25017 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25026 - $_.i = $_.i + 1; //#25020 - $_.mode = $_.C; //#25021 - $_.inmac = 0; //#25022 - $_.segstart = $_.i; //#25023 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25024 - break; //#25025 - } //#25025 - $_.i = $_.i + 1; //#25027 - break; //#25028 - } //#25028 - if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25036 - if ($get($_.msg, $_.i + 1) == 10) { //#25035 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25032 - $_.addtocws(); //#25032 - $_.i = $_.i + 2; //#25033 - break; //#25034 - } //#25034 - } //#25034 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25037 - $_.addtocws(); //#25037 - $_.i = $_.i + 1; //#25038 - break; //#25039 - } //#25039 - if ($get($_.Binary, $_.i)) { //#25054 - if ($get($_.DatumB, $_.i + 1)) { //#25050 - if ($get($_.msg, $_.i) < 160) { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25044 - $_.addtocws(); //#25044 - } else { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25046 - $_.addtocws(); //#25046 - } //#25046 - $_.i = $_.i + 1; //#25048 - break; //#25049 - } //#25049 - $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25051 - $_.addtocws(); //#25051 - $_.mode = $_.BIN; //#25052 - break; //#25053 - } //#25053 - if ($get($_.AheadA, $_.i) == 1) { //#25059 - $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25056 - $_.addtocws(); //#25056 - $_.i = $_.i + 1; //#25057 - break; //#25058 - } //#25058 - $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25060 - $_.addtocws(); //#25060 - $_.mode = $_.A; //#25061 - break; //#25062 - } //#25062 - }; //#25062 + for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25366 + $_.n = $get($_.TryC, $_.i); //#25295 + if ($_.n >= 2) { //#25313 + if ($_.n > 4) { //#25301 + $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#25298 + $_.addtocws(); //#25298 + $_.mode = $_.C; //#25299 + break; //#25300 + } //#25300 + $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25302 + $_.addtocws(); //#25302 + for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25311 + if ($get($_.msg, $_.i) < 0) { //#25309 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25305 + $_.addtocws(); //#25305 + $_.i = $_.i + 1; //#25306 + } else { //#25309 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25308 + $_.addtocws(); //#25308 + $_.i = $_.i + 2; //#25309 + } //#25309 + } //#25309 + break; //#25312 + } //#25312 + if ($get($_.DatumB, $_.i)) { //#25343 + var _E2 = $get($_.msg, $_.i); //#25315 + if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25332 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25316 + $_.addtocws(); //#25316 + if ($get($_.ECI, $_.i)) { //#25321 + $k[$j++] = Infinity; //#25318 + $_.ECIabc(); //#25318 + var _EF = $a(); //#25318 + $k[$j++] = _EF; //#25318 + $_.addtocws(); //#25318 + $_.i = $_.i + 7; //#25319 + break; //#25320 + } //#25320 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25329 + $_.i = $_.i + 1; //#25323 + $_.mode = $_.C; //#25324 + $_.inmac = 0; //#25325 + $_.segstart = $_.i; //#25326 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25327 + break; //#25328 + } //#25328 + $_.i = $_.i + 1; //#25330 + break; //#25331 + } //#25331 + if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25339 + if ($get($_.msg, $_.i + 1) == 10) { //#25338 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25335 + $_.addtocws(); //#25335 + $_.i = $_.i + 2; //#25336 + break; //#25337 + } //#25337 + } //#25337 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25340 + $_.addtocws(); //#25340 + $_.i = $_.i + 1; //#25341 + break; //#25342 + } //#25342 + if ($get($_.Binary, $_.i)) { //#25357 + if ($get($_.DatumB, $_.i + 1)) { //#25353 + if ($get($_.msg, $_.i) < 160) { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25347 + $_.addtocws(); //#25347 + } else { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25349 + $_.addtocws(); //#25349 + } //#25349 + $_.i = $_.i + 1; //#25351 + break; //#25352 + } //#25352 + $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25354 + $_.addtocws(); //#25354 + $_.mode = $_.BIN; //#25355 + break; //#25356 + } //#25356 + if ($get($_.AheadA, $_.i) == 1) { //#25362 + $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25359 + $_.addtocws(); //#25359 + $_.i = $_.i + 1; //#25360 + break; //#25361 + } //#25361 + $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25363 + $_.addtocws(); //#25363 + $_.mode = $_.A; //#25364 + break; //#25365 + } //#25365 + }; //#25365 $_.encA = function() { - for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25141 - $_.n = $get($_.TryC, $_.i); //#25068 - if ($_.n >= 2) { //#25086 - if ($_.n > 4) { //#25074 - $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25071 - $_.addtocws(); //#25071 - $_.mode = $_.C; //#25072 - break; //#25073 - } //#25073 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25075 - $_.addtocws(); //#25075 - for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25084 - if ($get($_.msg, $_.i) < 0) { //#25082 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25078 - $_.addtocws(); //#25078 - $_.i = $_.i + 1; //#25079 - } else { //#25082 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25081 - $_.addtocws(); //#25081 - $_.i = $_.i + 2; //#25082 - } //#25082 - } //#25082 - break; //#25085 - } //#25085 - if ($get($_.DatumA, $_.i)) { //#25109 - var _GQ = $get($_.msg, $_.i); //#25088 - if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25105 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25089 - $_.addtocws(); //#25089 - if ($get($_.ECI, $_.i)) { //#25094 - $k[$j++] = Infinity; //#25091 - $_.ECIabc(); //#25091 - var _Gd = $a(); //#25091 - $k[$j++] = _Gd; //#25091 - $_.addtocws(); //#25091 - $_.i = $_.i + 7; //#25092 - break; //#25093 - } //#25093 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25102 - $_.i = $_.i + 1; //#25096 - $_.mode = $_.C; //#25097 - $_.inmac = 0; //#25098 - $_.segstart = $_.i; //#25099 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25100 - break; //#25101 - } //#25101 - $_.i = $_.i + 1; //#25103 - break; //#25104 - } //#25104 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25106 - $_.addtocws(); //#25106 - $_.i = $_.i + 1; //#25107 - break; //#25108 - } //#25108 - if ($get($_.Binary, $_.i)) { //#25123 - if ($get($_.DatumA, $_.i + 1)) { //#25119 - if ($get($_.msg, $_.i) < 160) { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25113 - $_.addtocws(); //#25113 - } else { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25115 - $_.addtocws(); //#25115 - } //#25115 - $_.i = $_.i + 1; //#25117 - break; //#25118 - } //#25118 - $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25120 - $_.addtocws(); //#25120 - $_.mode = $_.BIN; //#25121 - break; //#25122 - } //#25122 - $_.n = $get($_.AheadB, $_.i); //#25124 - if ($_.n > 6) { //#25129 - $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25126 - $_.addtocws(); //#25126 - $_.mode = $_.B; //#25127 - break; //#25128 - } //#25128 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25130 - $_.addtocws(); //#25130 - for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25139 - if ($get($_.msg, $_.i) == 13) { //#25137 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25133 - $_.addtocws(); //#25133 - $_.i = $_.i + 2; //#25134 - } else { //#25137 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25136 - $_.addtocws(); //#25136 - $_.i = $_.i + 1; //#25137 - } //#25137 - } //#25137 - break; //#25140 - } //#25140 - }; //#25140 + for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25444 + $_.n = $get($_.TryC, $_.i); //#25371 + if ($_.n >= 2) { //#25389 + if ($_.n > 4) { //#25377 + $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25374 + $_.addtocws(); //#25374 + $_.mode = $_.C; //#25375 + break; //#25376 + } //#25376 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25378 + $_.addtocws(); //#25378 + for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25387 + if ($get($_.msg, $_.i) < 0) { //#25385 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25381 + $_.addtocws(); //#25381 + $_.i = $_.i + 1; //#25382 + } else { //#25385 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25384 + $_.addtocws(); //#25384 + $_.i = $_.i + 2; //#25385 + } //#25385 + } //#25385 + break; //#25388 + } //#25388 + if ($get($_.DatumA, $_.i)) { //#25412 + var _GQ = $get($_.msg, $_.i); //#25391 + if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25408 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25392 + $_.addtocws(); //#25392 + if ($get($_.ECI, $_.i)) { //#25397 + $k[$j++] = Infinity; //#25394 + $_.ECIabc(); //#25394 + var _Gd = $a(); //#25394 + $k[$j++] = _Gd; //#25394 + $_.addtocws(); //#25394 + $_.i = $_.i + 7; //#25395 + break; //#25396 + } //#25396 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25405 + $_.i = $_.i + 1; //#25399 + $_.mode = $_.C; //#25400 + $_.inmac = 0; //#25401 + $_.segstart = $_.i; //#25402 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25403 + break; //#25404 + } //#25404 + $_.i = $_.i + 1; //#25406 + break; //#25407 + } //#25407 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25409 + $_.addtocws(); //#25409 + $_.i = $_.i + 1; //#25410 + break; //#25411 + } //#25411 + if ($get($_.Binary, $_.i)) { //#25426 + if ($get($_.DatumA, $_.i + 1)) { //#25422 + if ($get($_.msg, $_.i) < 160) { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25416 + $_.addtocws(); //#25416 + } else { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25418 + $_.addtocws(); //#25418 + } //#25418 + $_.i = $_.i + 1; //#25420 + break; //#25421 + } //#25421 + $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25423 + $_.addtocws(); //#25423 + $_.mode = $_.BIN; //#25424 + break; //#25425 + } //#25425 + $_.n = $get($_.AheadB, $_.i); //#25427 + if ($_.n > 6) { //#25432 + $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25429 + $_.addtocws(); //#25429 + $_.mode = $_.B; //#25430 + break; //#25431 + } //#25431 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25433 + $_.addtocws(); //#25433 + for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25442 + if ($get($_.msg, $_.i) == 13) { //#25440 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25436 + $_.addtocws(); //#25436 + $_.i = $_.i + 2; //#25437 + } else { //#25440 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25439 + $_.addtocws(); //#25439 + $_.i = $_.i + 1; //#25440 + } //#25440 + } //#25440 + break; //#25443 + } //#25443 + }; //#25443 $_.encBIN = function() { - for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25203 - $_.n = $get($_.TryC, $_.i); //#25146 - if ($_.n >= 2) { //#25165 - $k[$j++] = Infinity; //#25148 - $_.finaliseBIN(); //#25148 - var _IG = $a(); //#25148 - $k[$j++] = _IG; //#25148 - $_.addtocws(); //#25148 - if ($_.n > 7) { //#25153 - $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25150 - $_.addtocws(); //#25150 - $_.mode = $_.C; //#25151 - break; //#25152 - } //#25152 - $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25154 - $_.addtocws(); //#25154 - for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25163 - if ($get($_.msg, $_.i) < 0) { //#25161 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25157 - $_.addtocws(); //#25157 - $_.i = $_.i + 1; //#25158 - } else { //#25161 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25160 - $_.addtocws(); //#25160 - $_.i = $_.i + 2; //#25161 - } //#25161 - } //#25161 - break; //#25164 - } //#25164 - if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25171 - $k[$j++] = Infinity; //#25167 - $_.ECIbin(); //#25167 - var _J0 = $a(); //#25167 - $k[$j++] = _J0; //#25167 - $_.addtocws(); //#25167 - $_.i = $_.i + 7; //#25168 - if ($_.i == $_.msglen) { //#25169 - $k[$j++] = Infinity; //#25169 - $_.finaliseBIN(); //#25169 - var _J4 = $a(); //#25169 - $k[$j++] = _J4; //#25169 - $_.addtocws(); //#25169 - } //#25169 - break; //#25170 - } //#25170 - if ($get($_.msg, $_.i) >= 0) { //#25181 - if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25180 - $k[$j++] = Infinity; //#25176 - $k[$j++] = $get($_.msg, $_.i); //#25176 - $_.addtobin(); //#25176 - var _JT = $a(); //#25176 - $k[$j++] = _JT; //#25176 - $_.addtocws(); //#25176 - $_.i = $_.i + 1; //#25177 - if ($_.i == $_.msglen) { //#25178 - $k[$j++] = Infinity; //#25178 - $_.finaliseBIN(); //#25178 - var _JX = $a(); //#25178 - $k[$j++] = _JX; //#25178 - $_.addtocws(); //#25178 - } //#25178 - break; //#25179 - } //#25179 - } //#25179 - $k[$j++] = Infinity; //#25182 - $_.finaliseBIN(); //#25182 - var _JY = $a(); //#25182 - $k[$j++] = _JY; //#25182 - $_.addtocws(); //#25182 - if ($_.i != ($_.msglen - 1)) { //#25201 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25192 - $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25185 - $_.addtocws(); //#25185 - $_.i = $_.i + 1; //#25186 - $_.mode = $_.C; //#25187 - $_.inmac = 0; //#25188 - $_.segstart = $_.i; //#25189 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25190 - break; //#25191 - } //#25191 - if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25194 - $_.addtocws(); //#25194 - $_.mode = $_.A; //#25195 - } else { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25197 - $_.addtocws(); //#25197 - $_.mode = $_.B; //#25198 - } //#25198 - break; //#25200 - } //#25200 - break; //#25202 - } //#25202 - }; //#25202 - $_.cws = $a(($_.msglen * 2) + 1); //#25206 - $_.mode = $_.C; //#25207 - $_.bvals = $a(5); //#25208 - $_.bpos = 0; //#25208 - $_.inmac = 0; //#25209 - $_.segstart = 0; //#25209 - $_.segend = $get($_.UntilEndSeg, 0); //#25209 - $_.i = 0; //#25210 - $_.j = 0; //#25210 - for (;;) { //#25223 - if ($_.i >= $_.msglen) { //#25211 - break; //#25211 - } //#25211 - if ($_.inmac != 0) { //#25221 - if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25216 - $_.i = $_.i + 2; //#25214 - if ($_.i >= $_.msglen) { //#25215 - break; //#25215 - } //#25215 - } //#25215 - if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25220 - $_.i = $_.i + 1; //#25218 - if ($_.i >= $_.msglen) { //#25219 - break; //#25219 - } //#25219 - } //#25219 - } //#25219 + for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25506 + $_.n = $get($_.TryC, $_.i); //#25449 + if ($_.n >= 2) { //#25468 + $k[$j++] = Infinity; //#25451 + $_.finaliseBIN(); //#25451 + var _IG = $a(); //#25451 + $k[$j++] = _IG; //#25451 + $_.addtocws(); //#25451 + if ($_.n > 7) { //#25456 + $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25453 + $_.addtocws(); //#25453 + $_.mode = $_.C; //#25454 + break; //#25455 + } //#25455 + $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25457 + $_.addtocws(); //#25457 + for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25466 + if ($get($_.msg, $_.i) < 0) { //#25464 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25460 + $_.addtocws(); //#25460 + $_.i = $_.i + 1; //#25461 + } else { //#25464 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25463 + $_.addtocws(); //#25463 + $_.i = $_.i + 2; //#25464 + } //#25464 + } //#25464 + break; //#25467 + } //#25467 + if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25474 + $k[$j++] = Infinity; //#25470 + $_.ECIbin(); //#25470 + var _J0 = $a(); //#25470 + $k[$j++] = _J0; //#25470 + $_.addtocws(); //#25470 + $_.i = $_.i + 7; //#25471 + if ($_.i == $_.msglen) { //#25472 + $k[$j++] = Infinity; //#25472 + $_.finaliseBIN(); //#25472 + var _J4 = $a(); //#25472 + $k[$j++] = _J4; //#25472 + $_.addtocws(); //#25472 + } //#25472 + break; //#25473 + } //#25473 + if ($get($_.msg, $_.i) >= 0) { //#25484 + if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25483 + $k[$j++] = Infinity; //#25479 + $k[$j++] = $get($_.msg, $_.i); //#25479 + $_.addtobin(); //#25479 + var _JT = $a(); //#25479 + $k[$j++] = _JT; //#25479 + $_.addtocws(); //#25479 + $_.i = $_.i + 1; //#25480 + if ($_.i == $_.msglen) { //#25481 + $k[$j++] = Infinity; //#25481 + $_.finaliseBIN(); //#25481 + var _JX = $a(); //#25481 + $k[$j++] = _JX; //#25481 + $_.addtocws(); //#25481 + } //#25481 + break; //#25482 + } //#25482 + } //#25482 + $k[$j++] = Infinity; //#25485 + $_.finaliseBIN(); //#25485 + var _JY = $a(); //#25485 + $k[$j++] = _JY; //#25485 + $_.addtocws(); //#25485 + if ($_.i != ($_.msglen - 1)) { //#25504 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25495 + $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25488 + $_.addtocws(); //#25488 + $_.i = $_.i + 1; //#25489 + $_.mode = $_.C; //#25490 + $_.inmac = 0; //#25491 + $_.segstart = $_.i; //#25492 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25493 + break; //#25494 + } //#25494 + if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25497 + $_.addtocws(); //#25497 + $_.mode = $_.A; //#25498 + } else { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25500 + $_.addtocws(); //#25500 + $_.mode = $_.B; //#25501 + } //#25501 + break; //#25503 + } //#25503 + break; //#25505 + } //#25505 + }; //#25505 + $_.cws = $a(($_.msglen * 2) + 1); //#25509 + $_.mode = $_.C; //#25510 + $_.bvals = $a(5); //#25511 + $_.bpos = 0; //#25511 + $_.inmac = 0; //#25512 + $_.segstart = 0; //#25512 + $_.segend = $get($_.UntilEndSeg, 0); //#25512 + $_.i = 0; //#25513 + $_.j = 0; //#25513 + for (;;) { //#25526 + if ($_.i >= $_.msglen) { //#25514 + break; //#25514 + } //#25514 + if ($_.inmac != 0) { //#25524 + if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25519 + $_.i = $_.i + 2; //#25517 + if ($_.i >= $_.msglen) { //#25518 + break; //#25518 + } //#25518 + } //#25518 + if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25523 + $_.i = $_.i + 1; //#25521 + if ($_.i >= $_.msglen) { //#25522 + break; //#25522 + } //#25522 + } //#25522 + } //#25522 if ($_[$get($a(['encA', 'encB', 'encC', 'encBIN']), $_.mode)]() === true) { break; - } //#25222 - } //#25222 - $_.cws = $geti($_.cws, 0, $_.j); //#25224 - $_.nd = $_.cws.length; //#25227 - $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25228 - if ($_.ratio != -1) { //#25256 - $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25230 - $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25231 - $_.h = ~~$_.hgt; //#25232 - $_.w = ~~$_.wid; //#25232 - if ((($_.h + $_.w) % 2) == 1) { //#25246 - if (($_.h * $_.w) < $_.minarea) { //#25234 - $_.h = $_.h + 1; //#25234 - $_.w = $_.w + 1; //#25234 - } //#25234 - } else { //#25246 - if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25246 - $_.w = $_.w + 1; //#25237 - if (($_.h * $_.w) < $_.minarea) { //#25241 - $_.w = $_.w - 1; //#25239 - $_.h = $_.h + 1; //#25239 - if (($_.h * $_.w) < $_.minarea) { //#25240 - $_.w = $_.w + 2; //#25240 - } //#25240 - } //#25240 - } else { //#25246 - $_.h = $_.h + 1; //#25243 - if (($_.h * $_.w) < $_.minarea) { //#25247 - $_.h = $_.h - 1; //#25245 - $_.w = $_.w + 1; //#25245 - if (($_.h * $_.w) < $_.minarea) { //#25246 - $_.h = $_.h + 2; //#25246 - } //#25246 - } //#25246 - } //#25246 - } //#25246 - $_.rows = $_.h; //#25250 - $_.columns = $_.w; //#25250 - } else { //#25256 - if ($_.columns == -1) { //#25254 - var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25253 - $k[$j++] = 'columns'; //#25253 - $k[$j++] = _LN; //#25253 - if (((_LN + $_.rows) % 2) == 0) { //#25253 - var _LP = $k[--$j]; //#25253 - $k[$j++] = $f(_LP + 1); //#25253 - } //#25253 - var _LQ = $k[--$j]; //#25253 - $_[$k[--$j]] = _LQ; //#25253 - } //#25253 - if ($_.rows == -1) { //#25257 - var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25256 - $k[$j++] = 'rows'; //#25256 - $k[$j++] = _LW; //#25256 - if (((_LW + $_.columns) % 2) == 0) { //#25256 - var _LY = $k[--$j]; //#25256 - $k[$j++] = $f(_LY + 1); //#25256 - } //#25256 - var _LZ = $k[--$j]; //#25256 - $_[$k[--$j]] = _LZ; //#25256 - } //#25256 - } //#25256 - $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25261 - for (;;) { //#25265 - var _Le = $_.nd + 1; //#25263 - if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25263 - break; //#25263 - } //#25263 - $_.nd = $_.nd + 1; //#25264 - } //#25264 - $_.nc = (~~($_.nd / 2)) + 3; //#25266 - $_.nw = $_.nd + $_.nc; //#25267 - $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25268 - if ($_.nd > $_.cws.length) { //#25275 - $k[$j++] = Infinity; //#25273 - $aload($_.cws); //#25271 - var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25272 - $k[$j++] = _Lr; //#25273 - for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25273 - $k[$j++] = 106; //#25273 - } //#25273 - $_.cws = $a(); //#25273 - } //#25274 - var _Ly = $get($_.options, 'debugcws') !== undefined; //#25277 - if (_Ly) { //#25277 - $k[$j++] = 'bwipp.debugcws#25277'; //#25277 - $k[$j++] = $_.cws; //#25277 - bwipp_raiseerror(); //#25277 - } //#25277 - if (($_.nw * 9) > ($_.ndots - 2)) { //#25282 - $k[$j++] = 'bwipp.dotcodeTooLong#25281'; //#25281 - $k[$j++] = "Maximum length exceeded"; //#25281 - bwipp_raiseerror(); //#25281 - } //#25281 - if (!bwipp_dotcode.__25311__) { //#25311 - $_ = Object.create($_); //#25311 - $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25310 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25310 - bwipp_dotcode.__25311__ = 1; //#25310 - $_ = Object.getPrototypeOf($_); //#25310 - } //#25310 - if (($_.rows % 2) == 0) { //#25331 - $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25322 - } else { //#25331 - $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25331 - } //#25331 + } //#25525 + } //#25525 + $_.cws = $geti($_.cws, 0, $_.j); //#25527 + $_.nd = $_.cws.length; //#25530 + $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25531 + if ($_.ratio != -1) { //#25559 + $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25533 + $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25534 + $_.h = ~~$_.hgt; //#25535 + $_.w = ~~$_.wid; //#25535 + if ((($_.h + $_.w) % 2) == 1) { //#25549 + if (($_.h * $_.w) < $_.minarea) { //#25537 + $_.h = $_.h + 1; //#25537 + $_.w = $_.w + 1; //#25537 + } //#25537 + } else { //#25549 + if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25549 + $_.w = $_.w + 1; //#25540 + if (($_.h * $_.w) < $_.minarea) { //#25544 + $_.w = $_.w - 1; //#25542 + $_.h = $_.h + 1; //#25542 + if (($_.h * $_.w) < $_.minarea) { //#25543 + $_.w = $_.w + 2; //#25543 + } //#25543 + } //#25543 + } else { //#25549 + $_.h = $_.h + 1; //#25546 + if (($_.h * $_.w) < $_.minarea) { //#25550 + $_.h = $_.h - 1; //#25548 + $_.w = $_.w + 1; //#25548 + if (($_.h * $_.w) < $_.minarea) { //#25549 + $_.h = $_.h + 2; //#25549 + } //#25549 + } //#25549 + } //#25549 + } //#25549 + $_.rows = $_.h; //#25553 + $_.columns = $_.w; //#25553 + } else { //#25559 + if ($_.columns == -1) { //#25557 + var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25556 + $k[$j++] = 'columns'; //#25556 + $k[$j++] = _LN; //#25556 + if (((_LN + $_.rows) % 2) == 0) { //#25556 + var _LP = $k[--$j]; //#25556 + $k[$j++] = $f(_LP + 1); //#25556 + } //#25556 + var _LQ = $k[--$j]; //#25556 + $_[$k[--$j]] = _LQ; //#25556 + } //#25556 + if ($_.rows == -1) { //#25560 + var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25559 + $k[$j++] = 'rows'; //#25559 + $k[$j++] = _LW; //#25559 + if (((_LW + $_.columns) % 2) == 0) { //#25559 + var _LY = $k[--$j]; //#25559 + $k[$j++] = $f(_LY + 1); //#25559 + } //#25559 + var _LZ = $k[--$j]; //#25559 + $_[$k[--$j]] = _LZ; //#25559 + } //#25559 + } //#25559 + $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25564 + for (;;) { //#25568 + var _Le = $_.nd + 1; //#25566 + if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25566 + break; //#25566 + } //#25566 + $_.nd = $_.nd + 1; //#25567 + } //#25567 + $_.nc = (~~($_.nd / 2)) + 3; //#25569 + $_.nw = $_.nd + $_.nc; //#25570 + $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25571 + if ($_.nd > $_.cws.length) { //#25578 + $k[$j++] = Infinity; //#25573 + $aload($_.cws); //#25574 + var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25575 + $k[$j++] = _Lr; //#25576 + for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25576 + $k[$j++] = 106; //#25576 + } //#25576 + $_.cws = $a(); //#25576 + } //#25577 + var _Ly = $get($_.options, 'debugcws') !== undefined; //#25580 + if (_Ly) { //#25580 + $k[$j++] = 'bwipp.debugcws#25580'; //#25580 + $k[$j++] = $_.cws; //#25580 + bwipp_raiseerror(); //#25580 + } //#25580 + if (($_.nw * 9) > ($_.ndots - 2)) { //#25585 + $k[$j++] = 'bwipp.dotcodeTooLong#25584'; //#25584 + $k[$j++] = "Maximum length exceeded"; //#25584 + bwipp_raiseerror(); //#25584 + } //#25584 + if (!bwipp_dotcode.__25614__) { //#25614 + $_ = Object.create($_); //#25614 + $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25613 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25613 + bwipp_dotcode.__25614__ = 1; //#25613 + $_ = Object.getPrototypeOf($_); //#25613 + } //#25613 + if (($_.rows % 2) == 0) { //#25634 + $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25625 + } else { //#25634 + $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25634 + } //#25634 $_.dmv = function() { - var _MY = $k[--$j]; //#25334 - var _MZ = $k[--$j]; //#25334 - $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25334 - }; //#25334 - $_.outline = $a($_.rows * $_.columns); //#25337 - for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25344 - $_.y = _Mf; //#25339 - for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25343 - $_.x = _Mi; //#25341 - $k[$j++] = $_.outline; //#25342 - $k[$j++] = $_.x; //#25342 - $k[$j++] = $_.y; //#25342 - $_.dmv(); //#25342 - var _Mo = $k[--$j]; //#25342 - $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25342 - } //#25342 - } //#25342 - var _Mq = $_.sixedges; //#25345 - for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25347 - $k[$j++] = $_.outline; //#25346 - $aload($get(_Mq, _Mr)); //#25346 - $_.dmv(); //#25346 - var _Mv = $k[--$j]; //#25346 - $put($k[--$j], _Mv, 1); //#25346 - } //#25346 + var _MY = $k[--$j]; //#25637 + var _MZ = $k[--$j]; //#25637 + $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25637 + }; //#25637 + $_.outline = $a($_.rows * $_.columns); //#25640 + for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25647 + $_.y = _Mf; //#25642 + for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25646 + $_.x = _Mi; //#25644 + $k[$j++] = $_.outline; //#25645 + $k[$j++] = $_.x; //#25645 + $k[$j++] = $_.y; //#25645 + $_.dmv(); //#25645 + var _Mo = $k[--$j]; //#25645 + $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25645 + } //#25645 + } //#25645 + var _Mq = $_.sixedges; //#25648 + for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25650 + $k[$j++] = $_.outline; //#25649 + $aload($get(_Mq, _Mr)); //#25649 + $_.dmv(); //#25649 + var _Mv = $k[--$j]; //#25649 + $put($k[--$j], _Mv, 1); //#25649 + } //#25649 $_.clearcol = function() { - $_.x = $k[--$j]; //#25350 - $k[$j++] = true; //#25354 - for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25354 - $k[$j++] = $_.x; //#25353 - $k[$j++] = _N1; //#25353 - $_.dmv(); //#25353 - if ($get($_.sym, $k[--$j]) == 1) { //#25353 - $j--; //#25353 - $k[$j++] = false; //#25353 - break; //#25353 - } //#25353 - } //#25353 - }; //#25353 + $_.x = $k[--$j]; //#25653 + $k[$j++] = true; //#25657 + for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25657 + $k[$j++] = $_.x; //#25656 + $k[$j++] = _N1; //#25656 + $_.dmv(); //#25656 + if ($get($_.sym, $k[--$j]) == 1) { //#25656 + $j--; //#25656 + $k[$j++] = false; //#25656 + break; //#25656 + } //#25656 + } //#25656 + }; //#25656 $_.clearrow = function() { - $_.y = $k[--$j]; //#25358 - $k[$j++] = true; //#25362 - for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25362 - $k[$j++] = _NA; //#25361 - $k[$j++] = $_.y; //#25361 - $_.dmv(); //#25361 - if ($get($_.sym, $k[--$j]) == 1) { //#25361 - $j--; //#25361 - $k[$j++] = false; //#25361 - break; //#25361 - } //#25361 - } //#25361 - }; //#25361 + $_.y = $k[--$j]; //#25661 + $k[$j++] = true; //#25665 + for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25665 + $k[$j++] = _NA; //#25664 + $k[$j++] = $_.y; //#25664 + $_.dmv(); //#25664 + if ($get($_.sym, $k[--$j]) == 1) { //#25664 + $j--; //#25664 + $k[$j++] = false; //#25664 + break; //#25664 + } //#25664 + } //#25664 + }; //#25664 $_.evalsymbol = function() { - $_.sym = $k[--$j]; //#25367 - $_.worst = 9999999; //#25370 - var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25371 - for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25389 - $aload($get(_NK, _NL)); //#25372 - $_.fl = $k[--$j]; //#25372 - $_.dir = $k[--$j]; //#25372 - $_.sum = 0; //#25373 - $_.first = -1; //#25373 - $_.last = -1; //#25373 - var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25374 - for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25385 - $_[$_.dir] = _NT; //#25375 - var _NV = $_.sym; //#25376 - var _NX = $_[$_.dir]; //#25377 - var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25378 - var _Nc = (_NZ - 1) * $_.fl; //#25379 - if ($eq($_.dir, 'y')) { //#25379 - var _ = _Nc; //#25379 - _Nc = _NX; //#25379 - _NX = _; //#25379 - } //#25379 - $k[$j++] = _NV; //#25380 - $k[$j++] = _NX; //#25380 - $k[$j++] = _Nc; //#25380 - $_.dmv(); //#25380 - var _Nd = $k[--$j]; //#25380 - if ($get($k[--$j], _Nd) == 1) { //#25384 - if ($_.first == -1) { //#25381 - $_.first = $_[$_.dir]; //#25381 - } //#25381 - $_.last = $_[$_.dir]; //#25382 - $_.sum = $_.sum + 1; //#25383 - } //#25383 - } //#25383 - var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25387 - var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25388 - $k[$j++] = _Nr; //#25388 - if (_Nr < $_.worst) { //#25388 - $_.worst = $k[--$j]; //#25388 - } else { //#25388 - $j--; //#25388 - } //#25388 - } //#25388 - $_.pen = 0; //#25391 - if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25409 - $_.sum = 0; //#25397 - $_.p = 0; //#25397 - for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25407 - $k[$j++] = _Ny; //#25399 - $_.clearcol(); //#25399 - if ($k[--$j]) { //#25405 - $_.sum = $_.sum + 1; //#25400 - $k[$j++] = 'p'; //#25401 - if ($_.sum == 1) { //#25401 - $k[$j++] = $_.rows; //#25401 - } else { //#25401 - $k[$j++] = $_.p * $_.rows; //#25401 - } //#25401 - var _O5 = $k[--$j]; //#25401 - $_[$k[--$j]] = _O5; //#25401 - } else { //#25405 - $_.sum = 0; //#25403 - $_.pen = $_.pen + $_.p; //#25404 - $_.p = 0; //#25405 - } //#25405 - } //#25405 - $_.pen = $_.pen + $_.p; //#25408 - } //#25408 - if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25427 - $_.sum = 0; //#25415 - $_.p = 0; //#25415 - for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25425 - $k[$j++] = _OF; //#25417 - $_.clearrow(); //#25417 - if ($k[--$j]) { //#25423 - $_.sum = $_.sum + 1; //#25418 - $k[$j++] = 'p'; //#25419 - if ($_.sum == 1) { //#25419 - $k[$j++] = $_.columns; //#25419 - } else { //#25419 - $k[$j++] = $_.p * $_.columns; //#25419 - } //#25419 - var _OM = $k[--$j]; //#25419 - $_[$k[--$j]] = _OM; //#25419 - } else { //#25423 - $_.sum = 0; //#25421 - $_.pen = $_.pen + $_.p; //#25422 - $_.p = 0; //#25423 - } //#25423 - } //#25423 - $_.pen = $_.pen + $_.p; //#25426 - } //#25426 - $k[$j++] = Infinity; //#25437 - for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25431 - $k[$j++] = 0; //#25431 - } //#25431 - for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25436 - $k[$j++] = 0; //#25434 - $k[$j++] = 0; //#25434 - $aload($geti($_.sym, _OY, $_.columns)); //#25434 - $k[$j++] = 0; //#25435 - $k[$j++] = 0; //#25435 - } //#25435 - for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25437 - $k[$j++] = 0; //#25437 - } //#25437 - $_.symp = $a(); //#25437 - $_.columns = $_.columns + 4; //#25441 - $_.rows = $_.rows + 4; //#25442 - $_.sum = 0; //#25443 - for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25461 - $_.y = _Ol; //#25445 - for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25460 - $_.x = _Op; //#25447 - for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25459 - $k[$j++] = $_.symp; //#25449 - $k[$j++] = $_.x - 1; //#25449 - $k[$j++] = $_.y - 1; //#25449 - $_.dmv(); //#25449 - var _Ov = $k[--$j]; //#25449 - if ($get($k[--$j], _Ov) == 1) { //#25449 - break; //#25449 - } //#25449 - $k[$j++] = $_.symp; //#25450 - $k[$j++] = $_.x + 1; //#25450 - $k[$j++] = $_.y - 1; //#25450 - $_.dmv(); //#25450 - var _P1 = $k[--$j]; //#25450 - if ($get($k[--$j], _P1) == 1) { //#25450 - break; //#25450 - } //#25450 - $k[$j++] = $_.symp; //#25451 - $k[$j++] = $_.x - 1; //#25451 - $k[$j++] = $_.y + 1; //#25451 - $_.dmv(); //#25451 - var _P7 = $k[--$j]; //#25451 - if ($get($k[--$j], _P7) == 1) { //#25451 - break; //#25451 - } //#25451 - $k[$j++] = $_.symp; //#25452 - $k[$j++] = $_.x + 1; //#25452 - $k[$j++] = $_.y + 1; //#25452 - $_.dmv(); //#25452 - var _PD = $k[--$j]; //#25452 - if ($get($k[--$j], _PD) == 1) { //#25452 - break; //#25452 - } //#25452 - $k[$j++] = $_.symp; //#25453 - $k[$j++] = $_.x; //#25453 - $k[$j++] = $_.y; //#25453 - $_.dmv(); //#25453 - var _PJ = $k[--$j]; //#25453 - if ($get($k[--$j], _PJ) == 0) { //#25453 - $_.sum = $_.sum + 1; //#25453 - break; //#25453 - } //#25453 - $k[$j++] = $_.symp; //#25454 - $k[$j++] = $_.x - 2; //#25454 - $k[$j++] = $_.y; //#25454 - $_.dmv(); //#25454 - var _PQ = $k[--$j]; //#25454 - if ($get($k[--$j], _PQ) == 1) { //#25454 - break; //#25454 - } //#25454 - $k[$j++] = $_.symp; //#25455 - $k[$j++] = $_.x; //#25455 - $k[$j++] = $_.y - 2; //#25455 - $_.dmv(); //#25455 - var _PW = $k[--$j]; //#25455 - if ($get($k[--$j], _PW) == 1) { //#25455 - break; //#25455 - } //#25455 - $k[$j++] = $_.symp; //#25456 - $k[$j++] = $_.x + 2; //#25456 - $k[$j++] = $_.y; //#25456 - $_.dmv(); //#25456 - var _Pc = $k[--$j]; //#25456 - if ($get($k[--$j], _Pc) == 1) { //#25456 - break; //#25456 - } //#25456 - $k[$j++] = $_.symp; //#25457 - $k[$j++] = $_.x; //#25457 - $k[$j++] = $_.y + 2; //#25457 - $_.dmv(); //#25457 - var _Pi = $k[--$j]; //#25457 - if ($get($k[--$j], _Pi) == 1) { //#25457 - break; //#25457 - } //#25457 - $_.sum = $_.sum + 1; //#25458 - } //#25458 - } //#25458 - } //#25458 - $_.columns = $_.columns - 4; //#25462 - $_.rows = $_.rows - 4; //#25463 - if ($_.worst == 0) { //#25468 - $k[$j++] = -99999; //#25466 - } else { //#25468 - $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25468 - } //#25468 - }; //#25468 - $k[$j++] = Infinity; //#25474 - $k[$j++] = 1; //#25474 - for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25474 - var _Pv = $k[--$j]; //#25474 - $k[$j++] = _Pv; //#25474 - $k[$j++] = (_Pv * 3) % 113; //#25474 - } //#25474 - $_.rsalog = $a(); //#25474 - $_.step = (~~($_.nw / 112)) + 1; //#25475 + $_.sym = $k[--$j]; //#25670 + $_.worst = 9999999; //#25673 + var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25674 + for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25692 + $aload($get(_NK, _NL)); //#25675 + $_.fl = $k[--$j]; //#25675 + $_.dir = $k[--$j]; //#25675 + $_.sum = 0; //#25676 + $_.first = -1; //#25676 + $_.last = -1; //#25676 + var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25677 + for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25688 + $_[$_.dir] = _NT; //#25678 + var _NV = $_.sym; //#25679 + var _NX = $_[$_.dir]; //#25680 + var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25681 + var _Nc = (_NZ - 1) * $_.fl; //#25682 + if ($eq($_.dir, 'y')) { //#25682 + var _ = _Nc; //#25682 + _Nc = _NX; //#25682 + _NX = _; //#25682 + } //#25682 + $k[$j++] = _NV; //#25683 + $k[$j++] = _NX; //#25683 + $k[$j++] = _Nc; //#25683 + $_.dmv(); //#25683 + var _Nd = $k[--$j]; //#25683 + if ($get($k[--$j], _Nd) == 1) { //#25687 + if ($_.first == -1) { //#25684 + $_.first = $_[$_.dir]; //#25684 + } //#25684 + $_.last = $_[$_.dir]; //#25685 + $_.sum = $_.sum + 1; //#25686 + } //#25686 + } //#25686 + var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25690 + var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25691 + $k[$j++] = _Nr; //#25691 + if (_Nr < $_.worst) { //#25691 + $_.worst = $k[--$j]; //#25691 + } else { //#25691 + $j--; //#25691 + } //#25691 + } //#25691 + $_.pen = 0; //#25694 + if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25712 + $_.sum = 0; //#25700 + $_.p = 0; //#25700 + for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25710 + $k[$j++] = _Ny; //#25702 + $_.clearcol(); //#25702 + if ($k[--$j]) { //#25708 + $_.sum = $_.sum + 1; //#25703 + $k[$j++] = 'p'; //#25704 + if ($_.sum == 1) { //#25704 + $k[$j++] = $_.rows; //#25704 + } else { //#25704 + $k[$j++] = $_.p * $_.rows; //#25704 + } //#25704 + var _O5 = $k[--$j]; //#25704 + $_[$k[--$j]] = _O5; //#25704 + } else { //#25708 + $_.sum = 0; //#25706 + $_.pen = $_.pen + $_.p; //#25707 + $_.p = 0; //#25708 + } //#25708 + } //#25708 + $_.pen = $_.pen + $_.p; //#25711 + } //#25711 + if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25730 + $_.sum = 0; //#25718 + $_.p = 0; //#25718 + for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25728 + $k[$j++] = _OF; //#25720 + $_.clearrow(); //#25720 + if ($k[--$j]) { //#25726 + $_.sum = $_.sum + 1; //#25721 + $k[$j++] = 'p'; //#25722 + if ($_.sum == 1) { //#25722 + $k[$j++] = $_.columns; //#25722 + } else { //#25722 + $k[$j++] = $_.p * $_.columns; //#25722 + } //#25722 + var _OM = $k[--$j]; //#25722 + $_[$k[--$j]] = _OM; //#25722 + } else { //#25726 + $_.sum = 0; //#25724 + $_.pen = $_.pen + $_.p; //#25725 + $_.p = 0; //#25726 + } //#25726 + } //#25726 + $_.pen = $_.pen + $_.p; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25733 + for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25734 + $k[$j++] = 0; //#25734 + } //#25734 + for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25739 + $k[$j++] = 0; //#25737 + $k[$j++] = 0; //#25737 + $aload($geti($_.sym, _OY, $_.columns)); //#25737 + $k[$j++] = 0; //#25738 + $k[$j++] = 0; //#25738 + } //#25738 + for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25740 + $k[$j++] = 0; //#25740 + } //#25740 + $_.symp = $a(); //#25740 + $_.columns = $_.columns + 4; //#25744 + $_.rows = $_.rows + 4; //#25745 + $_.sum = 0; //#25746 + for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25764 + $_.y = _Ol; //#25748 + for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25763 + $_.x = _Op; //#25750 + for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25762 + $k[$j++] = $_.symp; //#25752 + $k[$j++] = $_.x - 1; //#25752 + $k[$j++] = $_.y - 1; //#25752 + $_.dmv(); //#25752 + var _Ov = $k[--$j]; //#25752 + if ($get($k[--$j], _Ov) == 1) { //#25752 + break; //#25752 + } //#25752 + $k[$j++] = $_.symp; //#25753 + $k[$j++] = $_.x + 1; //#25753 + $k[$j++] = $_.y - 1; //#25753 + $_.dmv(); //#25753 + var _P1 = $k[--$j]; //#25753 + if ($get($k[--$j], _P1) == 1) { //#25753 + break; //#25753 + } //#25753 + $k[$j++] = $_.symp; //#25754 + $k[$j++] = $_.x - 1; //#25754 + $k[$j++] = $_.y + 1; //#25754 + $_.dmv(); //#25754 + var _P7 = $k[--$j]; //#25754 + if ($get($k[--$j], _P7) == 1) { //#25754 + break; //#25754 + } //#25754 + $k[$j++] = $_.symp; //#25755 + $k[$j++] = $_.x + 1; //#25755 + $k[$j++] = $_.y + 1; //#25755 + $_.dmv(); //#25755 + var _PD = $k[--$j]; //#25755 + if ($get($k[--$j], _PD) == 1) { //#25755 + break; //#25755 + } //#25755 + $k[$j++] = $_.symp; //#25756 + $k[$j++] = $_.x; //#25756 + $k[$j++] = $_.y; //#25756 + $_.dmv(); //#25756 + var _PJ = $k[--$j]; //#25756 + if ($get($k[--$j], _PJ) == 0) { //#25756 + $_.sum = $_.sum + 1; //#25756 + break; //#25756 + } //#25756 + $k[$j++] = $_.symp; //#25757 + $k[$j++] = $_.x - 2; //#25757 + $k[$j++] = $_.y; //#25757 + $_.dmv(); //#25757 + var _PQ = $k[--$j]; //#25757 + if ($get($k[--$j], _PQ) == 1) { //#25757 + break; //#25757 + } //#25757 + $k[$j++] = $_.symp; //#25758 + $k[$j++] = $_.x; //#25758 + $k[$j++] = $_.y - 2; //#25758 + $_.dmv(); //#25758 + var _PW = $k[--$j]; //#25758 + if ($get($k[--$j], _PW) == 1) { //#25758 + break; //#25758 + } //#25758 + $k[$j++] = $_.symp; //#25759 + $k[$j++] = $_.x + 2; //#25759 + $k[$j++] = $_.y; //#25759 + $_.dmv(); //#25759 + var _Pc = $k[--$j]; //#25759 + if ($get($k[--$j], _Pc) == 1) { //#25759 + break; //#25759 + } //#25759 + $k[$j++] = $_.symp; //#25760 + $k[$j++] = $_.x; //#25760 + $k[$j++] = $_.y + 2; //#25760 + $_.dmv(); //#25760 + var _Pi = $k[--$j]; //#25760 + if ($get($k[--$j], _Pi) == 1) { //#25760 + break; //#25760 + } //#25760 + $_.sum = $_.sum + 1; //#25761 + } //#25761 + } //#25761 + } //#25761 + $_.columns = $_.columns - 4; //#25765 + $_.rows = $_.rows - 4; //#25766 + if ($_.worst == 0) { //#25771 + $k[$j++] = -99999; //#25769 + } else { //#25771 + $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25771 + } //#25771 + }; //#25771 + if (!bwipp_dotcode.__25779__) { //#25779 + $_ = Object.create($_); //#25779 + $k[$j++] = Infinity; //#25778 + $k[$j++] = 1; //#25778 + for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25778 + var _Pv = $k[--$j]; //#25778 + $k[$j++] = _Pv; //#25778 + $k[$j++] = (_Pv * 3) % 113; //#25778 + } //#25778 + $_.rsalog = $a(); //#25778 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25778 + bwipp_dotcode.__25779__ = 1; //#25778 + $_ = Object.getPrototypeOf($_); //#25778 + } //#25778 + $_.step = (~~($_.nw / 112)) + 1; //#25780 $_.offset = function() { - var _Pz = $k[--$j]; //#25476 - $k[$j++] = $f((_Pz * $_.step) + $_.start); //#25476 - }; //#25476 - $_.bestscore = -99999999; //#25484 - $k[$j++] = 'masks'; //#25489 - if ($_.mask != -1) { //#25488 - $k[$j++] = $a([$_.mask]); //#25486 - } else { //#25488 - if ($_.fast) { //#25488 - $k[$j++] = $a([3, 2, 1, 0]); //#25488 - } else { //#25488 - $k[$j++] = $a([0, 1, 2, 3]); //#25488 - } //#25488 - } //#25488 - var _Q7 = $k[--$j]; //#25489 - $_[$k[--$j]] = _Q7; //#25489 - $_.litmasks = $a(4); //#25490 - $forall($_.masks, function() { //#25592 - $_.mask = $k[--$j]; //#25493 - $k[$j++] = Infinity; //#25499 - var _QG = $_.cws; //#25498 - $k[$j++] = $_.mask; //#25498 - $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25498 - $k[$j++] = 0; //#25498 - for (var _QH = 0, _QI = _QG.length; _QH < _QI; _QH++) { //#25498 - var _QK = $k[--$j]; //#25498 - var _QL = $k[--$j]; //#25498 - $k[$j++] = $f($get(_QG, _QH) + _QK) % 113; //#25498 - $k[$j++] = _QL; //#25498 - $k[$j++] = $f(_QK + _QL); //#25498 - } //#25498 - $j -= 2; //#25498 - for (var _QN = 0, _QO = $_.nc; _QN < _QO; _QN++) { //#25499 - $k[$j++] = 0; //#25499 - } //#25499 - $_.rscws = $a(); //#25499 - for (var _QS = 0, _QR = $_.step - 1; _QS <= _QR; _QS += 1) { //#25523 - $_.start = _QS; //#25502 - $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25503 - $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25504 - $_.NC = $_.NW - $_.ND; //#25505 - $k[$j++] = Infinity; //#25506 - $k[$j++] = 1; //#25506 - for (var _Qe = 0, _Qf = $_.NC; _Qe < _Qf; _Qe++) { //#25506 - $k[$j++] = 0; //#25506 - } //#25506 - $_.coeffs = $a(); //#25506 - for (var _Qj = 1, _Qi = $_.NC; _Qj <= _Qi; _Qj += 1) { //#25513 - $_.i = _Qj; //#25508 - for (var _Ql = $_.NC; _Ql >= 1; _Ql -= 1) { //#25512 - $_.j = _Ql; //#25510 - $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25511 - } //#25511 - } //#25511 - for (var _Qz = 0, _Qy = $_.ND - 1; _Qz <= _Qy; _Qz += 1) { //#25521 - $k[$j++] = 't'; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = _Qz; //#25515 - $_.offset(); //#25515 - var _R1 = $k[--$j]; //#25515 - var _R3 = $get($k[--$j], _R1); //#25515 - $k[$j++] = _R3; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = $_.ND; //#25515 - $_.offset(); //#25515 - var _R6 = $k[--$j]; //#25515 - var _R8 = $get($k[--$j], _R6); //#25515 - var _R9 = $k[--$j]; //#25515 - $_[$k[--$j]] = $f(_R9 + _R8) % 113; //#25515 - for (var _RD = 0, _RC = $_.NC - 2; _RD <= _RC; _RD += 1) { //#25519 - $_.j = _RD; //#25517 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = $_.ND + $_.j; //#25518 - $_.offset(); //#25518 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = ($_.ND + $_.j) + 1; //#25518 - $_.offset(); //#25518 - var _RK = $k[--$j]; //#25518 - var _RM = $get($k[--$j], _RK); //#25518 - var _RR = $k[--$j]; //#25518 - $put($k[--$j], _RR, ($f($f(_RM + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25518 - } //#25518 - $k[$j++] = $_.rscws; //#25520 - $k[$j++] = ($_.ND + $_.NC) - 1; //#25520 - $_.offset(); //#25520 - var _Ra = $k[--$j]; //#25520 - $put($k[--$j], _Ra, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25520 - } //#25520 - for (var _Rf = $_.ND, _Re = $_.NW - 1; _Rf <= _Re; _Rf += 1) { //#25522 - $k[$j++] = _Rf; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rf; //#25522 - $_.offset(); //#25522 - var _Ri = $k[--$j]; //#25522 - var _Rj = $k[--$j]; //#25522 - var _Rk = $k[--$j]; //#25522 - $k[$j++] = _Rj; //#25522 - $k[$j++] = _Ri; //#25522 - $k[$j++] = 113; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rk; //#25522 - $_.offset(); //#25522 - var _Rl = $k[--$j]; //#25522 - var _Rn = $get($k[--$j], _Rl); //#25522 - var _Ro = $k[--$j]; //#25522 - var _Rp = $k[--$j]; //#25522 - $put($k[--$j], _Rp, $f(_Ro - _Rn) % 113); //#25522 - } //#25522 - } //#25522 - $_.bits = $s($_.ndots); //#25526 - $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25527 - for (var _Rz = 1, _Ry = $_.nw; _Rz <= _Ry; _Rz += 1) { //#25531 - $_.i = _Rz; //#25529 - $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25530 - } //#25530 - if ($_.rembits > 0) { //#25534 - $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25533 - } //#25533 - var _SC = $_.outline; //#25537 - $_.pixs = $arrcpy($a(_SC.length), _SC); //#25537 - $_.posx = 0; //#25538 - $k[$j++] = 'posy'; //#25539 - if (($_.rows % 2) == 0) { //#25539 - $k[$j++] = 0; //#25539 - } else { //#25539 - $k[$j++] = $_.rows - 1; //#25539 - } //#25539 - var _SH = $k[--$j]; //#25539 - $_[$k[--$j]] = _SH; //#25539 - var _SL = $geti($_.bits, 0, $_.bits.length - 6); //#25540 - for (var _SM = 0, _SN = _SL.length; _SM < _SN; _SM++) { //#25558 - $k[$j++] = $get(_SL, _SM); //#25556 - for (;;) { //#25556 - $k[$j++] = $_.pixs; //#25542 - $k[$j++] = $_.posx; //#25542 - $k[$j++] = $_.posy; //#25542 - $_.dmv(); //#25542 - var _SS = $k[--$j]; //#25542 - if ($get($k[--$j], _SS) == -1) { //#25542 - break; //#25542 - } //#25542 - if (($_.rows % 2) == 0) { //#25553 - $_.posy = $_.posy + 1; //#25544 - if ($_.posy == $_.rows) { //#25548 - $_.posy = 0; //#25546 - $_.posx = $_.posx + 1; //#25547 - } //#25547 - } else { //#25553 - $_.posx = $_.posx + 1; //#25550 - if ($_.posx == $_.columns) { //#25554 - $_.posx = 0; //#25552 - $_.posy = $_.posy - 1; //#25553 - } //#25553 - } //#25553 - } //#25553 - $k[$j++] = $_.pixs; //#25557 - $k[$j++] = $_.posx; //#25557 - $k[$j++] = $_.posy; //#25557 - $_.dmv(); //#25557 - var _Sh = $k[--$j]; //#25557 - var _Si = $k[--$j]; //#25557 - $put(_Si, _Sh, $f($k[--$j] - 48)); //#25557 - } //#25557 - for (var _Sk = 0; _Sk <= 5; _Sk += 1) { //#25563 - $_.i = _Sk; //#25560 - $k[$j++] = $_.pixs; //#25561 - $aload($get($_.sixedges, $_.i)); //#25561 - $_.dmv(); //#25561 - var _St = $k[--$j]; //#25562 - $put($k[--$j], _St, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25562 - } //#25562 - $k[$j++] = 'score'; //#25566 - $k[$j++] = $_.pixs; //#25566 - $_.evalsymbol(); //#25566 - var _Sw = $k[--$j]; //#25566 - $_[$k[--$j]] = _Sw; //#25566 - if ($_.score > $_.bestscore) { //#25571 - $_.bestsym = $_.pixs; //#25568 - $_.bestscore = $_.score; //#25569 - if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25570 - return true; //#25570 - } //#25570 - } //#25570 - var _T6 = $_.pixs; //#25574 - $_.litmask = $arrcpy($a(_T6.length), _T6); //#25574 - for (var _T9 = 0; _T9 <= 5; _T9 += 1) { //#25579 - $_.i = _T9; //#25576 - $k[$j++] = $_.litmask; //#25577 - $aload($get($_.sixedges, $_.i)); //#25577 - $_.dmv(); //#25577 - var _TE = $k[--$j]; //#25578 - $put($k[--$j], _TE, 1); //#25578 - } //#25578 - $put($_.litmasks, $_.mask, $_.litmask); //#25580 - if ($_.fast) { //#25590 - $k[$j++] = 'score'; //#25584 - $k[$j++] = $_.litmask; //#25584 - $_.evalsymbol(); //#25584 - var _TL = $k[--$j]; //#25584 - $_[$k[--$j]] = _TL; //#25584 - if ($gt($_.score, $_.bestscore)) { //#25589 - $_.bestsym = $_.litmask; //#25586 - $_.bestscore = $_.score; //#25587 - if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25588 - return true; //#25588 - } //#25588 - } //#25588 - } //#25588 - }); //#25588 - $_.pixs = $_.bestsym; //#25593 - if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25607 - $_.bestscore = -99999999; //#25597 - $forall($_.masks, function() { //#25605 - $_.litmask = $get($_.litmasks, $k[--$j]); //#25599 - $k[$j++] = 'score'; //#25600 - $k[$j++] = $_.litmask; //#25600 - $_.evalsymbol(); //#25600 - var _Te = $k[--$j]; //#25600 - $_[$k[--$j]] = _Te; //#25600 - if ($_.score > $_.bestscore) { //#25604 - $_.bestsym = $_.litmask; //#25602 - $_.bestscore = $_.score; //#25603 - } //#25603 - }); //#25603 - $_.pixs = $_.bestsym; //#25606 - } //#25606 - var _Tr = new Map([ + var _Q0 = $k[--$j]; //#25781 + $k[$j++] = $f((_Q0 * $_.step) + $_.start); //#25781 + }; //#25781 + $_.bestscore = -99999999; //#25789 + $k[$j++] = 'masks'; //#25794 + if ($_.mask != -1) { //#25793 + $k[$j++] = $a([$_.mask]); //#25791 + } else { //#25793 + if ($_.fast) { //#25793 + $k[$j++] = $a([3, 2, 1, 0]); //#25793 + } else { //#25793 + $k[$j++] = $a([0, 1, 2, 3]); //#25793 + } //#25793 + } //#25793 + var _Q8 = $k[--$j]; //#25794 + $_[$k[--$j]] = _Q8; //#25794 + $_.litmasks = $a(4); //#25795 + $forall($_.masks, function() { //#25897 + $_.mask = $k[--$j]; //#25798 + $k[$j++] = Infinity; //#25801 + var _QH = $_.cws; //#25803 + $k[$j++] = $_.mask; //#25803 + $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25803 + $k[$j++] = 0; //#25803 + for (var _QI = 0, _QJ = _QH.length; _QI < _QJ; _QI++) { //#25803 + var _QL = $k[--$j]; //#25803 + var _QM = $k[--$j]; //#25803 + $k[$j++] = $f($get(_QH, _QI) + _QL) % 113; //#25803 + $k[$j++] = _QM; //#25803 + $k[$j++] = $f(_QL + _QM); //#25803 + } //#25803 + $j -= 2; //#25803 + for (var _QO = 0, _QP = $_.nc; _QO < _QP; _QO++) { //#25804 + $k[$j++] = 0; //#25804 + } //#25804 + $_.rscws = $a(); //#25804 + for (var _QT = 0, _QS = $_.step - 1; _QT <= _QS; _QT += 1) { //#25828 + $_.start = _QT; //#25807 + $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25808 + $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25809 + $_.NC = $_.NW - $_.ND; //#25810 + $k[$j++] = Infinity; //#25811 + $k[$j++] = 1; //#25811 + for (var _Qf = 0, _Qg = $_.NC; _Qf < _Qg; _Qf++) { //#25811 + $k[$j++] = 0; //#25811 + } //#25811 + $_.coeffs = $a(); //#25811 + for (var _Qk = 1, _Qj = $_.NC; _Qk <= _Qj; _Qk += 1) { //#25818 + $_.i = _Qk; //#25813 + for (var _Qm = $_.NC; _Qm >= 1; _Qm -= 1) { //#25817 + $_.j = _Qm; //#25815 + $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25816 + } //#25816 + } //#25816 + for (var _R0 = 0, _Qz = $_.ND - 1; _R0 <= _Qz; _R0 += 1) { //#25826 + $k[$j++] = 't'; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = _R0; //#25820 + $_.offset(); //#25820 + var _R2 = $k[--$j]; //#25820 + var _R4 = $get($k[--$j], _R2); //#25820 + $k[$j++] = _R4; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = $_.ND; //#25820 + $_.offset(); //#25820 + var _R7 = $k[--$j]; //#25820 + var _R9 = $get($k[--$j], _R7); //#25820 + var _RA = $k[--$j]; //#25820 + $_[$k[--$j]] = $f(_RA + _R9) % 113; //#25820 + for (var _RE = 0, _RD = $_.NC - 2; _RE <= _RD; _RE += 1) { //#25824 + $_.j = _RE; //#25822 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = $_.ND + $_.j; //#25823 + $_.offset(); //#25823 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = ($_.ND + $_.j) + 1; //#25823 + $_.offset(); //#25823 + var _RL = $k[--$j]; //#25823 + var _RN = $get($k[--$j], _RL); //#25823 + var _RS = $k[--$j]; //#25823 + $put($k[--$j], _RS, ($f($f(_RN + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25823 + } //#25823 + $k[$j++] = $_.rscws; //#25825 + $k[$j++] = ($_.ND + $_.NC) - 1; //#25825 + $_.offset(); //#25825 + var _Rb = $k[--$j]; //#25825 + $put($k[--$j], _Rb, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25825 + } //#25825 + for (var _Rg = $_.ND, _Rf = $_.NW - 1; _Rg <= _Rf; _Rg += 1) { //#25827 + $k[$j++] = _Rg; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rg; //#25827 + $_.offset(); //#25827 + var _Rj = $k[--$j]; //#25827 + var _Rk = $k[--$j]; //#25827 + var _Rl = $k[--$j]; //#25827 + $k[$j++] = _Rk; //#25827 + $k[$j++] = _Rj; //#25827 + $k[$j++] = 113; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rl; //#25827 + $_.offset(); //#25827 + var _Rm = $k[--$j]; //#25827 + var _Ro = $get($k[--$j], _Rm); //#25827 + var _Rp = $k[--$j]; //#25827 + var _Rq = $k[--$j]; //#25827 + $put($k[--$j], _Rq, $f(_Rp - _Ro) % 113); //#25827 + } //#25827 + } //#25827 + $_.bits = $s($_.ndots); //#25831 + $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25832 + for (var _S0 = 1, _Rz = $_.nw; _S0 <= _Rz; _S0 += 1) { //#25836 + $_.i = _S0; //#25834 + $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25835 + } //#25835 + if ($_.rembits > 0) { //#25839 + $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25838 + } //#25838 + var _SD = $_.outline; //#25842 + $_.pixs = $arrcpy($a(_SD.length), _SD); //#25842 + $_.posx = 0; //#25843 + $k[$j++] = 'posy'; //#25844 + if (($_.rows % 2) == 0) { //#25844 + $k[$j++] = 0; //#25844 + } else { //#25844 + $k[$j++] = $_.rows - 1; //#25844 + } //#25844 + var _SI = $k[--$j]; //#25844 + $_[$k[--$j]] = _SI; //#25844 + var _SM = $geti($_.bits, 0, $_.bits.length - 6); //#25845 + for (var _SN = 0, _SO = _SM.length; _SN < _SO; _SN++) { //#25863 + $k[$j++] = $get(_SM, _SN); //#25861 + for (;;) { //#25861 + $k[$j++] = $_.pixs; //#25847 + $k[$j++] = $_.posx; //#25847 + $k[$j++] = $_.posy; //#25847 + $_.dmv(); //#25847 + var _ST = $k[--$j]; //#25847 + if ($get($k[--$j], _ST) == -1) { //#25847 + break; //#25847 + } //#25847 + if (($_.rows % 2) == 0) { //#25858 + $_.posy = $_.posy + 1; //#25849 + if ($_.posy == $_.rows) { //#25853 + $_.posy = 0; //#25851 + $_.posx = $_.posx + 1; //#25852 + } //#25852 + } else { //#25858 + $_.posx = $_.posx + 1; //#25855 + if ($_.posx == $_.columns) { //#25859 + $_.posx = 0; //#25857 + $_.posy = $_.posy - 1; //#25858 + } //#25858 + } //#25858 + } //#25858 + $k[$j++] = $_.pixs; //#25862 + $k[$j++] = $_.posx; //#25862 + $k[$j++] = $_.posy; //#25862 + $_.dmv(); //#25862 + var _Si = $k[--$j]; //#25862 + var _Sj = $k[--$j]; //#25862 + $put(_Sj, _Si, $f($k[--$j] - 48)); //#25862 + } //#25862 + for (var _Sl = 0; _Sl <= 5; _Sl += 1) { //#25868 + $_.i = _Sl; //#25865 + $k[$j++] = $_.pixs; //#25866 + $aload($get($_.sixedges, $_.i)); //#25866 + $_.dmv(); //#25866 + var _Su = $k[--$j]; //#25867 + $put($k[--$j], _Su, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25867 + } //#25867 + $k[$j++] = 'score'; //#25871 + $k[$j++] = $_.pixs; //#25871 + $_.evalsymbol(); //#25871 + var _Sx = $k[--$j]; //#25871 + $_[$k[--$j]] = _Sx; //#25871 + if ($_.score > $_.bestscore) { //#25876 + $_.bestsym = $_.pixs; //#25873 + $_.bestscore = $_.score; //#25874 + if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25875 + return true; //#25875 + } //#25875 + } //#25875 + var _T7 = $_.pixs; //#25879 + $_.litmask = $arrcpy($a(_T7.length), _T7); //#25879 + for (var _TA = 0; _TA <= 5; _TA += 1) { //#25884 + $_.i = _TA; //#25881 + $k[$j++] = $_.litmask; //#25882 + $aload($get($_.sixedges, $_.i)); //#25882 + $_.dmv(); //#25882 + var _TF = $k[--$j]; //#25883 + $put($k[--$j], _TF, 1); //#25883 + } //#25883 + $put($_.litmasks, $_.mask, $_.litmask); //#25885 + if ($_.fast) { //#25895 + $k[$j++] = 'score'; //#25889 + $k[$j++] = $_.litmask; //#25889 + $_.evalsymbol(); //#25889 + var _TM = $k[--$j]; //#25889 + $_[$k[--$j]] = _TM; //#25889 + if ($gt($_.score, $_.bestscore)) { //#25894 + $_.bestsym = $_.litmask; //#25891 + $_.bestscore = $_.score; //#25892 + if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25893 + return true; //#25893 + } //#25893 + } //#25893 + } //#25893 + }); //#25893 + $_.pixs = $_.bestsym; //#25898 + if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25912 + $_.bestscore = -99999999; //#25902 + $forall($_.masks, function() { //#25910 + $_.litmask = $get($_.litmasks, $k[--$j]); //#25904 + $k[$j++] = 'score'; //#25905 + $k[$j++] = $_.litmask; //#25905 + $_.evalsymbol(); //#25905 + var _Tf = $k[--$j]; //#25905 + $_[$k[--$j]] = _Tf; //#25905 + if ($_.score > $_.bestscore) { //#25909 + $_.bestsym = $_.litmask; //#25907 + $_.bestscore = $_.score; //#25908 + } //#25908 + }); //#25908 + $_.pixs = $_.bestsym; //#25911 + } //#25911 + var _Ts = new Map([ ["ren", bwipp_renmatrix], ["dotty", true], ["pixs", $_.pixs], @@ -32269,468 +32735,477 @@ function bwipp_dotcode() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.columns * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#25618 - $k[$j++] = _Tr; //#25621 - if (!$_.dontdraw) { //#25621 - bwipp_renmatrix(); //#25621 - } //#25621 - $_ = Object.getPrototypeOf($_); //#25623 - $_ = Object.getPrototypeOf($_); //#25625 -} - + ]); //#25927 + $k[$j++] = _Ts; //#25930 + if (!$_.dontdraw) { //#25930 + bwipp_renmatrix(); //#25930 + } //#25930 + $_ = Object.getPrototypeOf($_); //#25932 + $_ = Object.getPrototypeOf($_); //#25934 +} //bwipp_dotcode function bwipp_ultracode() { - $_ = Object.create($_); //#25656 - $_.dontdraw = false; //#25659 - $_.eclevel = "EC2"; //#25660 - $_.parse = false; //#25661 - $_.parsefnc = false; //#25662 - $_.start = 257; //#25663 - $_.link1 = 0; //#25664 - $_.raw = false; //#25665 - $_.rev = 2; //#25666 - $k[$j++] = $_; //#25668 - bwipp_processoptions(); //#25668 - $_.options = $k[--$j]; //#25668 - $_.barcode = $k[--$j]; //#25669 - var _2 = $_.rev; //#25671 - if ((_2 != 1) && (_2 != 2)) { //#25673 - $k[$j++] = 'bwipp.ultracodeInvalidRevision#25672'; //#25672 - $k[$j++] = "Valid revisions are 1 and 2"; //#25672 - bwipp_raiseerror(); //#25672 - } //#25672 - var _4 = $_.eclevel.length == 3; //#25675 - $k[$j++] = _4; //#25679 - if (_4) { //#25679 - $j--; //#25676 - $k[$j++] = $geti($_.eclevel, 0, 2); //#25678 - if ($eq("EC", "EC")) { //#25678 - $j--; //#25677 - var _9 = $get($_.eclevel, 2) - 48; //#25677 - var _B = ($_.rev == 2) ? 1 : 0; //#25677 - $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25677 - } //#25677 - } //#25677 - if ($nt($k[--$j])) { //#25682 - $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25681'; //#25681 - $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25681 - bwipp_raiseerror(); //#25681 - } //#25681 - bwipp_loadctx(bwipp_ultracode) //#25684 - if ($_.raw) { //#25721 - $_.dcws = $a($_.barcode.length); //#25688 - $_.i = 0; //#25689 - $_.j = 0; //#25689 - for (;;) { //#25696 - if ($_.i == $_.barcode.length) { //#25691 - break; //#25691 - } //#25691 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#25692 - $put($_.dcws, $_.j, $_.cw); //#25693 - $_.i = $_.i + 4; //#25694 - $_.j = $_.j + 1; //#25695 - } //#25695 - $_.dcws = $geti($_.dcws, 0, $_.j); //#25697 - } else { //#25721 - $_.fn1 = -1; //#25702 - $_.fn3 = -2; //#25702 + $_ = Object.create($_); //#25965 + $_.dontdraw = false; //#25968 + $_.eclevel = "EC2"; //#25969 + $_.parse = false; //#25970 + $_.parsefnc = false; //#25971 + $_.start = 257; //#25972 + $_.link1 = 0; //#25973 + $_.raw = false; //#25974 + $_.rev = 2; //#25975 + $k[$j++] = $_; //#25977 + bwipp_processoptions(); //#25977 + $_.options = $k[--$j]; //#25977 + $_.barcode = $k[--$j]; //#25978 + var _2 = $_.rev; //#25980 + if ((_2 != 1) && (_2 != 2)) { //#25982 + $k[$j++] = 'bwipp.ultracodeInvalidRevision#25981'; //#25981 + $k[$j++] = "Valid revisions are 1 and 2"; //#25981 + bwipp_raiseerror(); //#25981 + } //#25981 + var _4 = $_.eclevel.length == 3; //#25984 + $k[$j++] = _4; //#25988 + if (_4) { //#25988 + $j--; //#25985 + $k[$j++] = $geti($_.eclevel, 0, 2); //#25987 + if ($eq("EC", "EC")) { //#25987 + $j--; //#25986 + var _9 = $get($_.eclevel, 2) - 48; //#25986 + var _B = ($_.rev == 2) ? 1 : 0; //#25986 + $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25986 + } //#25986 + } //#25986 + if ($nt($k[--$j])) { //#25991 + $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25990'; //#25990 + $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25990 + bwipp_raiseerror(); //#25990 + } //#25990 + bwipp_loadctx(bwipp_ultracode) //#25993 + if ($_.raw) { //#26030 + $_.dcws = $a($_.barcode.length); //#25997 + $_.i = 0; //#25998 + $_.j = 0; //#25998 + for (;;) { //#26005 + if ($_.i == $_.barcode.length) { //#26000 + break; //#26000 + } //#26000 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#26001 + $put($_.dcws, $_.j, $_.cw); //#26002 + $_.i = $_.i + 4; //#26003 + $_.j = $_.j + 1; //#26004 + } //#26004 + $_.dcws = $geti($_.dcws, 0, $_.j); //#26006 + } else { //#26030 + $_.fn1 = -1; //#26011 + $_.fn3 = -2; //#26011 var _X = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#25707 - $_.fncvals = _X; //#25708 - $k[$j++] = 'msg'; //#25709 - $k[$j++] = $_.barcode; //#25709 - $k[$j++] = $_.fncvals; //#25709 - bwipp_parseinput(); //#25709 - var _a = $k[--$j]; //#25709 - $_[$k[--$j]] = _a; //#25709 - $_.msglen = $_.msg.length; //#25710 - $_.scr = $a([]); //#25712 - $_.scp = $a([]); //#25713 - $k[$j++] = Infinity; //#25719 - $aload($_.scr); //#25715 - $aload($_.scp); //#25716 - $forall($_.msg, function() { //#25720 - var _i = $k[--$j]; //#25718 - $k[$j++] = _i; //#25718 - if (_i == $_.fn1) { //#25718 - $j--; //#25718 - $k[$j++] = 268; //#25718 - } //#25718 - var _k = $k[--$j]; //#25719 - $k[$j++] = _k; //#25719 - if (_k == $_.fn3) { //#25719 - $j--; //#25719 - $k[$j++] = 269; //#25719 - } //#25719 - }); //#25719 - $_.dcws = $a(); //#25719 - } //#25721 - var _o = $get($_.options, 'debugcws') !== undefined; //#25725 - if (_o) { //#25725 - $k[$j++] = 'bwipp.debugcws#25725'; //#25725 - $k[$j++] = $_.dcws; //#25725 - bwipp_raiseerror(); //#25725 - } //#25725 - $_.mcc = $_.dcws.length + 3; //#25727 - $_.eclval = $get($_.eclevel, 2) - 48; //#25729 - if ($_.eclval != 0) { //#25733 - $k[$j++] = 'qcc'; //#25731 - $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#25731 - $k[$j++] = ~~($_.mcc / 25); //#25731 - if (($_.mcc % 25) != 0) { //#25731 - var _z = $k[--$j]; //#25731 - $k[$j++] = $f(_z + 1); //#25731 - } //#25731 - var _10 = $k[--$j]; //#25731 - var _11 = $k[--$j]; //#25731 - $_[$k[--$j]] = $f((_11 * _10) + 5); //#25731 - } else { //#25733 - $_.qcc = 3; //#25733 - } //#25733 - $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#25735 - $_.tcc = $_.mcc + $_.qcc; //#25736 - if (!bwipp_ultracode.__25747__) { //#25747 - $_ = Object.create($_); //#25747 - $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#25746 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25746 - bwipp_ultracode.__25747__ = 1; //#25746 - $_ = Object.getPrototypeOf($_); //#25746 - } //#25746 - var _1D = $_.metrics; //#25749 - for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#25758 - $_.m = $get(_1D, _1E); //#25750 - $_.rows = $get($_.m, 0); //#25751 - $_.minc = $get($_.m, 1); //#25752 - $_.maxc = $get($_.m, 2); //#25753 - $_.mcol = $get($_.m, 3); //#25754 - $_.okay = true; //#25755 - if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#25756 - $_.okay = false; //#25756 - } //#25756 - if ($_.okay) { //#25757 - break; //#25757 - } //#25757 - } //#25757 - if (!$_.okay) { //#25762 - $k[$j++] = 'bwipp.ultracodeNoValidSymbol#25761'; //#25761 - $k[$j++] = "Maximum length exceeded or invalid content"; //#25761 - bwipp_raiseerror(); //#25761 - } //#25761 - for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#25776 - $_.columns = _1W; //#25766 - $k[$j++] = $_.columns; //#25768 - if ($_.columns >= 15) { //#25768 - var _1Z = $k[--$j]; //#25768 - $k[$j++] = $f(_1Z - 1); //#25768 - } //#25768 - if ($_.columns >= 31) { //#25769 - var _1b = $k[--$j]; //#25769 - $k[$j++] = $f(_1b - 1); //#25769 - } //#25769 - if ($_.columns >= 47) { //#25770 - var _1d = $k[--$j]; //#25770 - $k[$j++] = $f(_1d - 1); //#25770 - } //#25770 - var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#25771 - $k[$j++] = _1h; //#25774 - if (_1h >= 0) { //#25774 - $_.pads = $k[--$j]; //#25772 - break; //#25773 - } //#25773 - $j--; //#25775 - } //#25775 - $_.dcc = $f($_.columns - $_.mcol); //#25777 - $k[$j++] = Infinity; //#25786 - $k[$j++] = $_.start; //#25784 - $k[$j++] = $_.mcc; //#25784 - $k[$j++] = $_.acc; //#25784 - $aload($_.dcws); //#25784 - for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#25785 - $k[$j++] = 0; //#25785 - } //#25785 - $k[$j++] = 0; //#25786 - $_.rsseq = $a(); //#25786 - $k[$j++] = Infinity; //#25790 - $k[$j++] = 1; //#25790 - for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#25790 - var _1v = $k[--$j]; //#25790 - $k[$j++] = _1v; //#25790 - $k[$j++] = (_1v * 3) % 283; //#25790 - } //#25790 - $_.rsalog = $a(); //#25790 - $_.rslog = $a(283); //#25791 - for (var _1y = 1; _1y <= 282; _1y += 1) { //#25792 - $put($_.rslog, $get($_.rsalog, _1y), _1y); //#25792 - } //#25792 + ]); //#26016 + $_.fncvals = _X; //#26017 + $k[$j++] = 'msg'; //#26018 + $k[$j++] = $_.barcode; //#26018 + $k[$j++] = $_.fncvals; //#26018 + bwipp_parseinput(); //#26018 + var _a = $k[--$j]; //#26018 + $_[$k[--$j]] = _a; //#26018 + $_.msglen = $_.msg.length; //#26019 + $_.scr = $a([]); //#26021 + $_.scp = $a([]); //#26022 + $k[$j++] = Infinity; //#26023 + $aload($_.scr); //#26024 + $aload($_.scp); //#26025 + $forall($_.msg, function() { //#26029 + var _i = $k[--$j]; //#26027 + $k[$j++] = _i; //#26027 + if (_i == $_.fn1) { //#26027 + $j--; //#26027 + $k[$j++] = 268; //#26027 + } //#26027 + var _k = $k[--$j]; //#26028 + $k[$j++] = _k; //#26028 + if (_k == $_.fn3) { //#26028 + $j--; //#26028 + $k[$j++] = 269; //#26028 + } //#26028 + }); //#26028 + $_.dcws = $a(); //#26028 + } //#26030 + var _o = $get($_.options, 'debugcws') !== undefined; //#26034 + if (_o) { //#26034 + $k[$j++] = 'bwipp.debugcws#26034'; //#26034 + $k[$j++] = $_.dcws; //#26034 + bwipp_raiseerror(); //#26034 + } //#26034 + $_.mcc = $_.dcws.length + 3; //#26036 + $_.eclval = $get($_.eclevel, 2) - 48; //#26038 + if ($_.eclval != 0) { //#26042 + $k[$j++] = 'qcc'; //#26040 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#26040 + $k[$j++] = ~~($_.mcc / 25); //#26040 + if (($_.mcc % 25) != 0) { //#26040 + var _z = $k[--$j]; //#26040 + $k[$j++] = $f(_z + 1); //#26040 + } //#26040 + var _10 = $k[--$j]; //#26040 + var _11 = $k[--$j]; //#26040 + $_[$k[--$j]] = $f((_11 * _10) + 5); //#26040 + } else { //#26042 + $_.qcc = 3; //#26042 + } //#26042 + $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#26044 + $_.tcc = $_.mcc + $_.qcc; //#26045 + if (!bwipp_ultracode.__26056__) { //#26056 + $_ = Object.create($_); //#26056 + $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#26055 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26055 + bwipp_ultracode.__26056__ = 1; //#26055 + $_ = Object.getPrototypeOf($_); //#26055 + } //#26055 + var _1D = $_.metrics; //#26058 + for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#26067 + $_.m = $get(_1D, _1E); //#26059 + $_.rows = $get($_.m, 0); //#26060 + $_.minc = $get($_.m, 1); //#26061 + $_.maxc = $get($_.m, 2); //#26062 + $_.mcol = $get($_.m, 3); //#26063 + $_.okay = true; //#26064 + if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#26065 + $_.okay = false; //#26065 + } //#26065 + if ($_.okay) { //#26066 + break; //#26066 + } //#26066 + } //#26066 + if (!$_.okay) { //#26071 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol#26070'; //#26070 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26070 + bwipp_raiseerror(); //#26070 + } //#26070 + for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#26085 + $_.columns = _1W; //#26075 + $k[$j++] = $_.columns; //#26077 + if ($_.columns >= 15) { //#26077 + var _1Z = $k[--$j]; //#26077 + $k[$j++] = $f(_1Z - 1); //#26077 + } //#26077 + if ($_.columns >= 31) { //#26078 + var _1b = $k[--$j]; //#26078 + $k[$j++] = $f(_1b - 1); //#26078 + } //#26078 + if ($_.columns >= 47) { //#26079 + var _1d = $k[--$j]; //#26079 + $k[$j++] = $f(_1d - 1); //#26079 + } //#26079 + var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#26080 + $k[$j++] = _1h; //#26083 + if (_1h >= 0) { //#26083 + $_.pads = $k[--$j]; //#26081 + break; //#26082 + } //#26082 + $j--; //#26084 + } //#26084 + $_.dcc = $f($_.columns - $_.mcol); //#26086 + $k[$j++] = Infinity; //#26089 + $k[$j++] = $_.start; //#26093 + $k[$j++] = $_.mcc; //#26093 + $k[$j++] = $_.acc; //#26093 + $aload($_.dcws); //#26093 + for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#26094 + $k[$j++] = 0; //#26094 + } //#26094 + $k[$j++] = 0; //#26095 + $_.rsseq = $a(); //#26095 + if (!bwipp_ultracode.__26103__) { //#26103 + $_ = Object.create($_); //#26103 + $k[$j++] = Infinity; //#26100 + $k[$j++] = 1; //#26100 + for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#26100 + var _1v = $k[--$j]; //#26100 + $k[$j++] = _1v; //#26100 + $k[$j++] = (_1v * 3) % 283; //#26100 + } //#26100 + $_.rsalog = $a(); //#26100 + $_.rslog = $a(283); //#26101 + for (var _1y = 1; _1y <= 282; _1y += 1) { //#26102 + $put($_.rslog, $get($_.rsalog, _1y), _1y); //#26102 + } //#26102 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26102 + bwipp_ultracode.__26103__ = 1; //#26102 + $_ = Object.getPrototypeOf($_); //#26102 + } //#26102 $_.rsprod = function() { - var _22 = $k[--$j]; //#25796 - var _23 = $k[--$j]; //#25796 - $k[$j++] = _23; //#25800 - $k[$j++] = _22; //#25800 - if ((_22 != 0) && (_23 != 0)) { //#25799 - var _26 = $get($_.rslog, $k[--$j]); //#25797 - var _2B = $get($_.rsalog, $f(_26 + $get($_.rslog, $k[--$j])) % 282); //#25797 - $k[$j++] = _2B; //#25797 - } else { //#25799 - $j -= 2; //#25799 - $k[$j++] = 0; //#25799 - } //#25799 - }; //#25799 - $_.n = $_.mcc; //#25804 - $_.k = $_.qcc; //#25804 - $k[$j++] = Infinity; //#25805 - $k[$j++] = 1; //#25805 - for (var _2F = 0, _2G = $_.k; _2F < _2G; _2F++) { //#25805 - $k[$j++] = 0; //#25805 - } //#25805 - $_.coeffs = $a(); //#25805 - for (var _2K = 1, _2J = $_.k; _2K <= _2J; _2K += 1) { //#25814 - $_.i = _2K; //#25807 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#25808 - for (var _2R = $_.i - 1; _2R >= 1; _2R -= 1) { //#25812 - $_.j = _2R; //#25810 - $k[$j++] = $_.coeffs; //#25811 - $k[$j++] = $_.j; //#25811 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#25811 - $k[$j++] = $get($_.coeffs, $_.j); //#25811 - $k[$j++] = $get($_.rsalog, $_.i); //#25811 - $_.rsprod(); //#25811 - var _2d = $k[--$j]; //#25811 - var _2e = $k[--$j]; //#25811 - var _2f = $k[--$j]; //#25811 - $put($k[--$j], _2f, $f(_2e + _2d) % 283); //#25811 - } //#25811 - $k[$j++] = $_.coeffs; //#25813 - $k[$j++] = 0; //#25813 - $k[$j++] = $get($_.coeffs, 0); //#25813 - $k[$j++] = $get($_.rsalog, $_.i); //#25813 - $_.rsprod(); //#25813 - var _2n = $k[--$j]; //#25813 - var _2o = $k[--$j]; //#25813 - $put($k[--$j], _2o, _2n); //#25813 - } //#25813 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#25815 - for (var _2u = $_.coeffs.length - 1; _2u >= 0; _2u -= 2) { //#25816 - var _2v = $_.coeffs; //#25816 - $put(_2v, _2u, $f(283 - $get(_2v, _2u))); //#25816 - } //#25816 - for (var _2z = 0, _2y = $_.n - 1; _2z <= _2y; _2z += 1) { //#25825 - $_.t = $f($get($_.rsseq, _2z) + $get($_.rsseq, $_.n)) % 283; //#25820 - for (var _37 = 0, _36 = $_.k - 1; _37 <= _36; _37 += 1) { //#25824 - $_.j = _37; //#25822 - $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#25823 - } //#25823 - } //#25823 - for (var _3O = $_.n, _3N = $_.n + $_.k; _3O <= _3N; _3O += 1) { //#25826 - $put($_.rsseq, _3O, $f(283 - $get($_.rsseq, _3O)) % 283); //#25826 - } //#25826 - $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#25827 - var _3X = $get($_.options, 'debugecc') !== undefined; //#25829 - if (_3X) { //#25829 - $k[$j++] = 'bwipp.debugecc#25829'; //#25829 - $k[$j++] = $_.ecws; //#25829 - bwipp_raiseerror(); //#25829 - } //#25829 - if (!bwipp_ultracode.__25888__) { //#25888 - $_ = Object.create($_); //#25888 - $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#25862 - $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#25869 - $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#25875 - $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#25881 - $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#25887 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25887 - bwipp_ultracode.__25888__ = 1; //#25887 - $_ = Object.getPrototypeOf($_); //#25887 - } //#25887 - $k[$j++] = 'dccu'; //#25890 - if ($_.rev == 1) { //#25890 - $k[$j++] = $_.dccurev1; //#25890 - } else { //#25890 - $k[$j++] = $_.dccurev2; //#25890 - } //#25890 - var _3i = $k[--$j]; //#25890 - $_[$k[--$j]] = _3i; //#25890 - $k[$j++] = 'dccl'; //#25891 - if ($_.rev == 1) { //#25891 - $k[$j++] = $_.dcclrev1; //#25891 - } else { //#25891 - $k[$j++] = $_.dcclrev2; //#25891 - } //#25891 - var _3n = $k[--$j]; //#25891 - $_[$k[--$j]] = _3n; //#25891 - $_.rows = $f(($_.rows * 6) + 1); //#25894 - $_.columns = $_.columns + 6; //#25895 - $k[$j++] = Infinity; //#25896 - for (var _3t = 0, _3u = $_.rows * $_.columns; _3t < _3u; _3t++) { //#25896 - $k[$j++] = -1; //#25896 - } //#25896 - $_.pixs = $a(); //#25896 + var _23 = $k[--$j]; //#26107 + var _24 = $k[--$j]; //#26107 + $k[$j++] = _24; //#26111 + $k[$j++] = _23; //#26111 + if ((_23 != 0) && (_24 != 0)) { //#26110 + var _27 = $get($_.rslog, $k[--$j]); //#26108 + var _2C = $get($_.rsalog, $f(_27 + $get($_.rslog, $k[--$j])) % 282); //#26108 + $k[$j++] = _2C; //#26108 + } else { //#26110 + $j -= 2; //#26110 + $k[$j++] = 0; //#26110 + } //#26110 + }; //#26110 + $_.n = $_.mcc; //#26115 + $_.k = $_.qcc; //#26115 + $k[$j++] = Infinity; //#26116 + $k[$j++] = 1; //#26116 + for (var _2G = 0, _2H = $_.k; _2G < _2H; _2G++) { //#26116 + $k[$j++] = 0; //#26116 + } //#26116 + $_.coeffs = $a(); //#26116 + for (var _2L = 1, _2K = $_.k; _2L <= _2K; _2L += 1) { //#26125 + $_.i = _2L; //#26118 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#26119 + for (var _2S = $_.i - 1; _2S >= 1; _2S -= 1) { //#26123 + $_.j = _2S; //#26121 + $k[$j++] = $_.coeffs; //#26122 + $k[$j++] = $_.j; //#26122 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#26122 + $k[$j++] = $get($_.coeffs, $_.j); //#26122 + $k[$j++] = $get($_.rsalog, $_.i); //#26122 + $_.rsprod(); //#26122 + var _2e = $k[--$j]; //#26122 + var _2f = $k[--$j]; //#26122 + var _2g = $k[--$j]; //#26122 + $put($k[--$j], _2g, $f(_2f + _2e) % 283); //#26122 + } //#26122 + $k[$j++] = $_.coeffs; //#26124 + $k[$j++] = 0; //#26124 + $k[$j++] = $get($_.coeffs, 0); //#26124 + $k[$j++] = $get($_.rsalog, $_.i); //#26124 + $_.rsprod(); //#26124 + var _2o = $k[--$j]; //#26124 + var _2p = $k[--$j]; //#26124 + $put($k[--$j], _2p, _2o); //#26124 + } //#26124 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#26126 + for (var _2v = $_.coeffs.length - 1; _2v >= 0; _2v -= 2) { //#26127 + var _2w = $_.coeffs; //#26127 + $put(_2w, _2v, $f(283 - $get(_2w, _2v))); //#26127 + } //#26127 + for (var _30 = 0, _2z = $_.n - 1; _30 <= _2z; _30 += 1) { //#26136 + $_.t = $f($get($_.rsseq, _30) + $get($_.rsseq, $_.n)) % 283; //#26131 + for (var _38 = 0, _37 = $_.k - 1; _38 <= _37; _38 += 1) { //#26135 + $_.j = _38; //#26133 + $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#26134 + } //#26134 + } //#26134 + for (var _3P = $_.n, _3O = $_.n + $_.k; _3P <= _3O; _3P += 1) { //#26137 + $put($_.rsseq, _3P, $f(283 - $get($_.rsseq, _3P)) % 283); //#26137 + } //#26137 + $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#26138 + var _3Y = $get($_.options, 'debugecc') !== undefined; //#26140 + if (_3Y) { //#26140 + $k[$j++] = 'bwipp.debugecc#26140'; //#26140 + $k[$j++] = $_.ecws; //#26140 + bwipp_raiseerror(); //#26140 + } //#26140 + if (!bwipp_ultracode.__26199__) { //#26199 + $_ = Object.create($_); //#26199 + $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#26173 + $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#26180 + $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#26186 + $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#26192 + $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#26198 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26198 + bwipp_ultracode.__26199__ = 1; //#26198 + $_ = Object.getPrototypeOf($_); //#26198 + } //#26198 + $k[$j++] = 'dccu'; //#26201 + if ($_.rev == 1) { //#26201 + $k[$j++] = $_.dccurev1; //#26201 + } else { //#26201 + $k[$j++] = $_.dccurev2; //#26201 + } //#26201 + var _3j = $k[--$j]; //#26201 + $_[$k[--$j]] = _3j; //#26201 + $k[$j++] = 'dccl'; //#26202 + if ($_.rev == 1) { //#26202 + $k[$j++] = $_.dcclrev1; //#26202 + } else { //#26202 + $k[$j++] = $_.dcclrev2; //#26202 + } //#26202 + var _3o = $k[--$j]; //#26202 + $_[$k[--$j]] = _3o; //#26202 + $_.rows = $f(($_.rows * 6) + 1); //#26205 + $_.columns = $_.columns + 6; //#26206 + $k[$j++] = Infinity; //#26207 + for (var _3u = 0, _3v = $_.rows * $_.columns; _3u < _3v; _3u++) { //#26207 + $k[$j++] = -1; //#26207 + } //#26207 + $_.pixs = $a(); //#26207 $_.qmv = function() { - var _3x = $k[--$j]; //#25897 - var _3y = $k[--$j]; //#25897 - $k[$j++] = $f(_3y + (_3x * $_.columns)); //#25897 - }; //#25897 - for (var _41 = 0, _40 = $_.columns - 1; _41 <= _40; _41 += 1) { //#25906 - $_.i = _41; //#25899 - for (var _44 = 0, _43 = $f($_.rows - 1); _44 <= _43; _44 += 6) { //#25903 - $_.j = _44; //#25901 - if ($_.i >= 5) { //#25902 - $k[$j++] = $_.pixs; //#25902 - $k[$j++] = $_.i; //#25902 - $k[$j++] = $_.j; //#25902 - $_.qmv(); //#25902 - var _4A = $k[--$j]; //#25902 - $put($k[--$j], _4A, ($_.i % 2) * 9); //#25902 - } //#25902 - } //#25902 - $k[$j++] = $_.pixs; //#25904 - $k[$j++] = $_.i; //#25904 - $k[$j++] = 0; //#25904 - $_.qmv(); //#25904 - var _4E = $k[--$j]; //#25904 - $put($k[--$j], _4E, 9); //#25904 - $k[$j++] = $_.pixs; //#25905 - $k[$j++] = $_.i; //#25905 - $k[$j++] = $f($_.rows - 1); //#25905 - $_.qmv(); //#25905 - var _4J = $k[--$j]; //#25905 - $put($k[--$j], _4J, 9); //#25905 - } //#25905 - for (var _4N = 1, _4M = $f($_.rows - 2); _4N <= _4M; _4N += 1) { //#25919 - $_.i = _4N; //#25908 - for (var _4Q = 3, _4P = $_.columns - 1; _4Q <= _4P; _4Q += 16) { //#25912 - $_.j = _4Q; //#25910 - $k[$j++] = $_.pixs; //#25911 - $k[$j++] = $_.j; //#25911 - $k[$j++] = $_.i; //#25911 - $_.qmv(); //#25911 - var _4V = $k[--$j]; //#25911 - $put($k[--$j], _4V, (1 - ($_.i % 2)) * 9); //#25911 - } //#25911 - $k[$j++] = $_.pixs; //#25913 - $k[$j++] = 0; //#25913 - $k[$j++] = $_.i; //#25913 - $_.qmv(); //#25913 - var _4Z = $k[--$j]; //#25913 - $put($k[--$j], _4Z, 9); //#25913 - $k[$j++] = $_.pixs; //#25914 - $k[$j++] = 1; //#25914 - $k[$j++] = $_.i; //#25914 - $_.qmv(); //#25914 - var _4e = $k[--$j]; //#25914 - $put($k[--$j], _4e, (1 - ($_.i % 2)) * 9); //#25914 - $k[$j++] = $_.pixs; //#25915 - $k[$j++] = 2; //#25915 - $k[$j++] = $_.i; //#25915 - $_.qmv(); //#25915 - var _4i = $k[--$j]; //#25915 - $put($k[--$j], _4i, 0); //#25915 - $k[$j++] = $_.pixs; //#25916 - $k[$j++] = 3; //#25916 - $k[$j++] = $_.i; //#25916 - $_.qmv(); //#25916 - var _4m = $k[--$j]; //#25916 - $put($k[--$j], _4m, 9); //#25916 - $k[$j++] = $_.pixs; //#25917 - $k[$j++] = 4; //#25917 - $k[$j++] = $_.i; //#25917 - $_.qmv(); //#25917 - var _4q = $k[--$j]; //#25917 - $put($k[--$j], _4q, 0); //#25917 - $k[$j++] = $_.pixs; //#25918 - $k[$j++] = $_.columns - 1; //#25918 - $k[$j++] = $_.i; //#25918 - $_.qmv(); //#25918 - var _4v = $k[--$j]; //#25918 - $put($k[--$j], _4v, 9); //#25918 - } //#25918 - $_.i = (~~($_.rows / 2)) - 5; //#25922 - $k[$j++] = Infinity; //#25926 - var _52 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#25924 - for (var _53 = 0, _54 = _52.length; _53 < _54; _53++) { //#25924 - $k[$j++] = $get(_52, _53) - 48; //#25924 - } //#25924 - var _5A = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#25926 - $k[$j++] = 0; //#25926 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#25926 - $k[$j++] = $get(_5A, _5B) - 48; //#25926 - } //#25926 - var _5E = $a(); //#25926 - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#25930 - $k[$j++] = $get(_5E, _5F); //#25928 - $k[$j++] = $_.pixs; //#25928 - $k[$j++] = 2; //#25928 - $k[$j++] = $_.i; //#25928 - $_.qmv(); //#25928 - var _5K = $k[--$j]; //#25928 - var _5L = $k[--$j]; //#25928 - $put(_5L, _5K, $k[--$j]); //#25928 - $_.i = $_.i + 1; //#25929 - } //#25929 - $k[$j++] = Infinity; //#25942 - $k[$j++] = $_.start; //#25936 - $k[$j++] = $_.mcc; //#25936 - $aload($_.ecws); //#25936 - $k[$j++] = $_.tcc; //#25940 - $k[$j++] = 283; //#25940 - $k[$j++] = $_.acc; //#25940 - $aload($_.dcws); //#25940 - for (var _5V = 0, _5W = $_.pads; _5V < _5W; _5V++) { //#25941 - $k[$j++] = 284; //#25941 - } //#25941 - $k[$j++] = $_.qcc; //#25942 - $_.tileseq = $a(); //#25942 - $_.x = 5; //#25945 - $_.y = 1; //#25945 - var _5Z = $_.tileseq; //#25946 - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#25959 - var _5g = $cvrs($s(5), $get($_.tiles, $get(_5Z, _5a)), 10); //#25947 - for (var _5h = 0, _5i = _5g.length; _5h < _5i; _5h++) { //#25950 - $k[$j++] = $get(_5g, _5h); //#25948 - $k[$j++] = $_.pixs; //#25948 - $k[$j++] = $_.x; //#25948 - $k[$j++] = $_.y; //#25948 - $_.qmv(); //#25948 - var _5n = $k[--$j]; //#25948 - var _5o = $k[--$j]; //#25948 - $put(_5o, _5n, $f($k[--$j] - 48)); //#25948 - $_.y = $_.y + 1; //#25949 - } //#25949 - if ($_.y != $f($_.rows - 1)) { //#25956 - $_.y = $_.y + 1; //#25952 - } else { //#25956 - $_.x = $_.x + 1; //#25954 - $_.y = 1; //#25954 - $k[$j++] = $_.pixs; //#25955 - $k[$j++] = $_.x; //#25955 - $k[$j++] = $_.y; //#25955 - $_.qmv(); //#25955 - var _5y = $k[--$j]; //#25955 - if ($get($k[--$j], _5y) != -1) { //#25957 - $_.x = $_.x + 1; //#25956 - } //#25956 - } //#25956 - } //#25956 - if (!bwipp_ultracode.__25970__) { //#25970 - $_ = Object.create($_); //#25970 - var _62 = new Map([ + var _3y = $k[--$j]; //#26208 + var _3z = $k[--$j]; //#26208 + $k[$j++] = $f(_3z + (_3y * $_.columns)); //#26208 + }; //#26208 + for (var _42 = 0, _41 = $_.columns - 1; _42 <= _41; _42 += 1) { //#26217 + $_.i = _42; //#26210 + for (var _45 = 0, _44 = $f($_.rows - 1); _45 <= _44; _45 += 6) { //#26214 + $_.j = _45; //#26212 + if ($_.i >= 5) { //#26213 + $k[$j++] = $_.pixs; //#26213 + $k[$j++] = $_.i; //#26213 + $k[$j++] = $_.j; //#26213 + $_.qmv(); //#26213 + var _4B = $k[--$j]; //#26213 + $put($k[--$j], _4B, ($_.i % 2) * 9); //#26213 + } //#26213 + } //#26213 + $k[$j++] = $_.pixs; //#26215 + $k[$j++] = $_.i; //#26215 + $k[$j++] = 0; //#26215 + $_.qmv(); //#26215 + var _4F = $k[--$j]; //#26215 + $put($k[--$j], _4F, 9); //#26215 + $k[$j++] = $_.pixs; //#26216 + $k[$j++] = $_.i; //#26216 + $k[$j++] = $f($_.rows - 1); //#26216 + $_.qmv(); //#26216 + var _4K = $k[--$j]; //#26216 + $put($k[--$j], _4K, 9); //#26216 + } //#26216 + for (var _4O = 1, _4N = $f($_.rows - 2); _4O <= _4N; _4O += 1) { //#26230 + $_.i = _4O; //#26219 + for (var _4R = 3, _4Q = $_.columns - 1; _4R <= _4Q; _4R += 16) { //#26223 + $_.j = _4R; //#26221 + $k[$j++] = $_.pixs; //#26222 + $k[$j++] = $_.j; //#26222 + $k[$j++] = $_.i; //#26222 + $_.qmv(); //#26222 + var _4W = $k[--$j]; //#26222 + $put($k[--$j], _4W, (1 - ($_.i % 2)) * 9); //#26222 + } //#26222 + $k[$j++] = $_.pixs; //#26224 + $k[$j++] = 0; //#26224 + $k[$j++] = $_.i; //#26224 + $_.qmv(); //#26224 + var _4a = $k[--$j]; //#26224 + $put($k[--$j], _4a, 9); //#26224 + $k[$j++] = $_.pixs; //#26225 + $k[$j++] = 1; //#26225 + $k[$j++] = $_.i; //#26225 + $_.qmv(); //#26225 + var _4f = $k[--$j]; //#26225 + $put($k[--$j], _4f, (1 - ($_.i % 2)) * 9); //#26225 + $k[$j++] = $_.pixs; //#26226 + $k[$j++] = 2; //#26226 + $k[$j++] = $_.i; //#26226 + $_.qmv(); //#26226 + var _4j = $k[--$j]; //#26226 + $put($k[--$j], _4j, 0); //#26226 + $k[$j++] = $_.pixs; //#26227 + $k[$j++] = 3; //#26227 + $k[$j++] = $_.i; //#26227 + $_.qmv(); //#26227 + var _4n = $k[--$j]; //#26227 + $put($k[--$j], _4n, 9); //#26227 + $k[$j++] = $_.pixs; //#26228 + $k[$j++] = 4; //#26228 + $k[$j++] = $_.i; //#26228 + $_.qmv(); //#26228 + var _4r = $k[--$j]; //#26228 + $put($k[--$j], _4r, 0); //#26228 + $k[$j++] = $_.pixs; //#26229 + $k[$j++] = $_.columns - 1; //#26229 + $k[$j++] = $_.i; //#26229 + $_.qmv(); //#26229 + var _4w = $k[--$j]; //#26229 + $put($k[--$j], _4w, 9); //#26229 + } //#26229 + $_.i = (~~($_.rows / 2)) - 5; //#26233 + $k[$j++] = Infinity; //#26234 + var _53 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#26235 + for (var _54 = 0, _55 = _53.length; _54 < _55; _54++) { //#26235 + $k[$j++] = $get(_53, _54) - 48; //#26235 + } //#26235 + var _5B = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#26237 + $k[$j++] = 0; //#26237 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#26237 + $k[$j++] = $get(_5B, _5C) - 48; //#26237 + } //#26237 + var _5F = $a(); //#26237 + for (var _5G = 0, _5H = _5F.length; _5G < _5H; _5G++) { //#26241 + $k[$j++] = $get(_5F, _5G); //#26239 + $k[$j++] = $_.pixs; //#26239 + $k[$j++] = 2; //#26239 + $k[$j++] = $_.i; //#26239 + $_.qmv(); //#26239 + var _5L = $k[--$j]; //#26239 + var _5M = $k[--$j]; //#26239 + $put(_5M, _5L, $k[--$j]); //#26239 + $_.i = $_.i + 1; //#26240 + } //#26240 + $k[$j++] = Infinity; //#26244 + $k[$j++] = $_.start; //#26247 + $k[$j++] = $_.mcc; //#26247 + $aload($_.ecws); //#26247 + $k[$j++] = $_.tcc; //#26251 + $k[$j++] = 283; //#26251 + $k[$j++] = $_.acc; //#26251 + $aload($_.dcws); //#26251 + for (var _5W = 0, _5X = $_.pads; _5W < _5X; _5W++) { //#26252 + $k[$j++] = 284; //#26252 + } //#26252 + $k[$j++] = $_.qcc; //#26253 + $_.tileseq = $a(); //#26253 + $_.x = 5; //#26256 + $_.y = 1; //#26256 + var _5a = $_.tileseq; //#26257 + for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#26270 + var _5h = $cvrs($s(5), $get($_.tiles, $get(_5a, _5b)), 10); //#26258 + for (var _5i = 0, _5j = _5h.length; _5i < _5j; _5i++) { //#26261 + $k[$j++] = $get(_5h, _5i); //#26259 + $k[$j++] = $_.pixs; //#26259 + $k[$j++] = $_.x; //#26259 + $k[$j++] = $_.y; //#26259 + $_.qmv(); //#26259 + var _5o = $k[--$j]; //#26259 + var _5p = $k[--$j]; //#26259 + $put(_5p, _5o, $f($k[--$j] - 48)); //#26259 + $_.y = $_.y + 1; //#26260 + } //#26260 + if ($_.y != $f($_.rows - 1)) { //#26267 + $_.y = $_.y + 1; //#26263 + } else { //#26267 + $_.x = $_.x + 1; //#26265 + $_.y = 1; //#26265 + $k[$j++] = $_.pixs; //#26266 + $k[$j++] = $_.x; //#26266 + $k[$j++] = $_.y; //#26266 + $_.qmv(); //#26266 + var _5z = $k[--$j]; //#26266 + if ($get($k[--$j], _5z) != -1) { //#26268 + $_.x = $_.x + 1; //#26267 + } //#26267 + } //#26267 + } //#26267 + if (!bwipp_ultracode.__26281__) { //#26281 + $_ = Object.create($_); //#26281 + var _63 = new Map([ [0, "FFFFFF"], [9, "000000"], [1, "00FFFF"], [3, "FF00FF"], [5, "FFFF00"], [6, "00FF00"] - ]); //#25968 - $_.colormap = _62; //#25969 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25969 - bwipp_ultracode.__25970__ = 1; //#25969 - $_ = Object.getPrototypeOf($_); //#25969 - } //#25969 - var _6B = new Map([ + ]); //#26279 + $_.colormap = _63; //#26280 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26280 + bwipp_ultracode.__26281__ = 1; //#26280 + $_ = Object.getPrototypeOf($_); //#26280 + } //#26280 + var _6C = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.columns], @@ -32738,780 +33213,783 @@ function bwipp_ultracode() { ["height", ($_.rows / 72) * 2], ["width", ($_.columns / 72) * 2], ["colormap", $_.colormap], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#25981 - $k[$j++] = _6B; //#25984 - if (!$_.dontdraw) { //#25984 - bwipp_renmatrix(); //#25984 - } //#25984 - $_ = Object.getPrototypeOf($_); //#25986 - $_ = Object.getPrototypeOf($_); //#25988 -} - + ]); //#26296 + $k[$j++] = _6C; //#26299 + if (!$_.dontdraw) { //#26299 + bwipp_renmatrix(); //#26299 + } //#26299 + $_ = Object.getPrototypeOf($_); //#26301 + $_ = Object.getPrototypeOf($_); //#26303 +} //bwipp_ultracode function bwipp_jabcode() { - $_ = Object.create($_); //#26017 - $_.dontdraw = false; //#26020 - $_.rows = -1; //#26021 - $_.columns = -1; //#26022 - $_.slave = false; //#26023 - $_.colors = 16; //#26024 - $_.eclevel = 6; //#26025 - $_.raw = false; //#26026 - $_.parse = false; //#26027 - $_.parsefnc = false; //#26028 - $_.mask = -1; //#26029 - $k[$j++] = $_; //#26031 - bwipp_processoptions(); //#26031 - $_.options = $k[--$j]; //#26031 - $_.barcode = $k[--$j]; //#26032 - $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26034 - var _3 = $_.colors; //#26035 - $k[$j++] = 'metabpm'; //#26035 - $k[$j++] = _3; //#26035 - if (_3 > 8) { //#26035 - $j--; //#26035 - $k[$j++] = 8; //#26035 - } //#26035 - var _4 = $k[--$j]; //#26035 - $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26035 - $_.fn1 = -1; //#26038 + $_ = Object.create($_); //#26332 + $_.dontdraw = false; //#26335 + $_.rows = -1; //#26336 + $_.columns = -1; //#26337 + $_.slave = false; //#26338 + $_.colors = 16; //#26339 + $_.eclevel = 6; //#26340 + $_.raw = false; //#26341 + $_.parse = false; //#26342 + $_.parsefnc = false; //#26343 + $_.mask = -1; //#26344 + $k[$j++] = $_; //#26346 + bwipp_processoptions(); //#26346 + $_.options = $k[--$j]; //#26346 + $_.barcode = $k[--$j]; //#26347 + $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26349 + var _3 = $_.colors; //#26350 + $k[$j++] = 'metabpm'; //#26350 + $k[$j++] = _3; //#26350 + if (_3 > 8) { //#26350 + $j--; //#26350 + $k[$j++] = 8; //#26350 + } //#26350 + var _4 = $k[--$j]; //#26350 + $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26350 + $_.fn1 = -1; //#26353 var _9 = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1] - ]); //#26042 - $_.fncvals = _9; //#26043 - $k[$j++] = 'msg'; //#26044 - $k[$j++] = $_.barcode; //#26044 - $k[$j++] = $_.fncvals; //#26044 - bwipp_parseinput(); //#26044 - var _C = $k[--$j]; //#26044 - $_[$k[--$j]] = _C; //#26044 - $_.msglen = $_.msg.length; //#26045 + ]); //#26357 + $_.fncvals = _9; //#26358 + $k[$j++] = 'msg'; //#26359 + $k[$j++] = $_.barcode; //#26359 + $k[$j++] = $_.fncvals; //#26359 + bwipp_parseinput(); //#26359 + var _C = $k[--$j]; //#26359 + $_[$k[--$j]] = _C; //#26359 + $_.msglen = $_.msg.length; //#26360 $_.addtobits = function() { - var _F = $k[--$j]; //#26066 - $puti($_.bits, $_.j, _F); //#26066 - $_.j = _F.length + $_.j; //#26067 - }; //#26067 + var _F = $k[--$j]; //#26381 + $puti($_.bits, $_.j, _F); //#26381 + $_.j = _F.length + $_.j; //#26382 + }; //#26382 $_.tofixedbits = function() { - var _K = $strcpy($s(13), "0000000000000"); //#26071 - var _L = $k[--$j]; //#26071 - var _O = $cvrs($s(13), $k[--$j], 2); //#26071 - $puti(_K, $f(_L - _O.length), _O); //#26072 - $k[$j++] = $geti(_K, 0, _L); //#26073 - }; //#26073 - var _R = ($_.msglen <= 15) ? 4 : 17; //#26077 - $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26077 - $_.j = 0; //#26078 - $k[$j++] = 31; //#26079 - $k[$j++] = 5; //#26079 - $_.tofixedbits(); //#26079 - $_.addtobits(); //#26079 - $k[$j++] = "00"; //#26080 - $_.addtobits(); //#26080 - if ($_.msglen <= 15) { //#26085 - $k[$j++] = $_.msglen; //#26082 - $k[$j++] = 4; //#26082 - $_.tofixedbits(); //#26082 - $_.addtobits(); //#26082 - } else { //#26085 - $k[$j++] = "0000"; //#26084 - $_.addtobits(); //#26084 - $k[$j++] = $_.msglen - 16; //#26085 - $k[$j++] = 13; //#26085 - $_.tofixedbits(); //#26085 - $_.addtobits(); //#26085 - } //#26085 - for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26089 - $k[$j++] = $get($_.msg, _Z); //#26088 - $k[$j++] = 8; //#26088 - $_.tofixedbits(); //#26088 - $_.addtobits(); //#26088 - } //#26088 - $k[$j++] = 28; //#26090 - $k[$j++] = 5; //#26090 - $_.tofixedbits(); //#26090 - $_.addtobits(); //#26090 - $k[$j++] = 31; //#26091 - $k[$j++] = 5; //#26091 - $_.tofixedbits(); //#26091 - $_.addtobits(); //#26091 - $k[$j++] = "11"; //#26092 - $_.addtobits(); //#26092 - $_.diffside = 21; //#26095 - $_.sameshape = false; //#26096 - $_.sameecc = false; //#26097 - $_.hasslaves = false; //#26098 + var _K = $strcpy($s(13), "0000000000000"); //#26386 + var _L = $k[--$j]; //#26386 + var _O = $cvrs($s(13), $k[--$j], 2); //#26386 + $puti(_K, $f(_L - _O.length), _O); //#26387 + $k[$j++] = $geti(_K, 0, _L); //#26388 + }; //#26388 + var _R = ($_.msglen <= 15) ? 4 : 17; //#26392 + $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26392 + $_.j = 0; //#26393 + $k[$j++] = 31; //#26394 + $k[$j++] = 5; //#26394 + $_.tofixedbits(); //#26394 + $_.addtobits(); //#26394 + $k[$j++] = "00"; //#26395 + $_.addtobits(); //#26395 + if ($_.msglen <= 15) { //#26400 + $k[$j++] = $_.msglen; //#26397 + $k[$j++] = 4; //#26397 + $_.tofixedbits(); //#26397 + $_.addtobits(); //#26397 + } else { //#26400 + $k[$j++] = "0000"; //#26399 + $_.addtobits(); //#26399 + $k[$j++] = $_.msglen - 16; //#26400 + $k[$j++] = 13; //#26400 + $_.tofixedbits(); //#26400 + $_.addtobits(); //#26400 + } //#26400 + for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26404 + $k[$j++] = $get($_.msg, _Z); //#26403 + $k[$j++] = 8; //#26403 + $_.tofixedbits(); //#26403 + $_.addtobits(); //#26403 + } //#26403 + $k[$j++] = 28; //#26405 + $k[$j++] = 5; //#26405 + $_.tofixedbits(); //#26405 + $_.addtobits(); //#26405 + $k[$j++] = 31; //#26406 + $k[$j++] = 5; //#26406 + $_.tofixedbits(); //#26406 + $_.addtobits(); //#26406 + $k[$j++] = "11"; //#26407 + $_.addtobits(); //#26407 + $_.diffside = 21; //#26410 + $_.sameshape = false; //#26411 + $_.sameecc = false; //#26412 + $_.hasslaves = false; //#26413 $_.metrics = function() { - $_.mc = $k[--$j]; //#26102 - $_.mr = $k[--$j]; //#26102 - var _e = $_.mc; //#26103 - var _f = $_.mr; //#26103 - var _g = $_.mc; //#26104 - var _h = $_.mr; //#26104 - var _i = $_.colors; //#26106 - var _j = 64; //#26106 - if (64 > _i) { //#26106 - var _ = _i; //#26106 - _i = _j; //#26106 - _j = _; //#26106 - } //#26106 - var _l = $_.slave ? 7 : 17; //#26107 - $k[$j++] = _e * _f; //#26135 - $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26135 - $k[$j++] = _j * 2; //#26135 - $k[$j++] = _l * 4; //#26135 - if (!$_.slave) { //#26134 - var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26111 - $_.metass = _p; //#26111 - var _q = $_.mr; //#26112 - var _r = $_.mc; //#26112 - if ($lt(_q, _r)) { //#26112 - var _ = _r; //#26112 - _r = _q; //#26112 - _q = _; //#26112 - } //#26112 - $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26113 - $k[$j++] = 'metavlen'; //#26114 - if ($_.metass == 0) { //#26114 - $k[$j++] = $a([2, 2, 3, 4]); //#26114 - } else { //#26114 - $k[$j++] = $a([4, 6, 8, 10]); //#26114 - } //#26114 - var _z = $get($k[--$j], $_.metavf); //#26114 - $_[$k[--$j]] = _z; //#26114 - $_.metaelen = $f(($_.metavf * 2) + 10); //#26115 - $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26118 - if ($_.hasslaves) { //#26118 - var _15 = $k[--$j]; //#26118 - $k[$j++] = $f(_15 + 4); //#26118 - } //#26118 - var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26121 - $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26121 - $k[$j++] = _18 + 6; //#26122 - } else { //#26134 - $k[$j++] = 3; //#26125 - if (!$_.sameshape) { //#26125 - var _1B = $k[--$j]; //#26125 - $k[$j++] = $f(_1B + 5); //#26125 - } //#26125 - if ($_.hasslaves) { //#26126 - var _1D = $k[--$j]; //#26126 - $k[$j++] = $f(_1D + 3); //#26126 - } //#26126 - if (!$_.sameecc) { //#26131 - var _1F = $_.mr; //#26128 - var _1G = $_.mc; //#26128 - if ($lt(_1F, _1G)) { //#26128 - var _ = _1G; //#26128 - _1G = _1F; //#26128 - _1F = _; //#26128 - } //#26128 - var _1J = $k[--$j]; //#26130 - $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26130 - } //#26130 - var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26134 - $_.nummetabits = _1M * $_.metabpm; //#26134 - $k[$j++] = _1M; //#26134 - } //#26134 - var _1O = $k[--$j]; //#26137 - $_.nummetamodules = _1O; //#26137 - var _1P = $k[--$j]; //#26138 - var _1Q = $k[--$j]; //#26138 - var _1R = $k[--$j]; //#26138 - $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26138 - $_.numdatabits = $_.numdatamodules * $_.databpm; //#26139 - }; //#26139 - $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26143 - $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26144 + $_.mc = $k[--$j]; //#26417 + $_.mr = $k[--$j]; //#26417 + var _e = $_.mc; //#26418 + var _f = $_.mr; //#26418 + var _g = $_.mc; //#26419 + var _h = $_.mr; //#26419 + var _i = $_.colors; //#26421 + var _j = 64; //#26421 + if (64 > _i) { //#26421 + var _ = _i; //#26421 + _i = _j; //#26421 + _j = _; //#26421 + } //#26421 + var _l = $_.slave ? 7 : 17; //#26422 + $k[$j++] = _e * _f; //#26450 + $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26450 + $k[$j++] = _j * 2; //#26450 + $k[$j++] = _l * 4; //#26450 + if (!$_.slave) { //#26449 + var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26426 + $_.metass = _p; //#26426 + var _q = $_.mr; //#26427 + var _r = $_.mc; //#26427 + if ($lt(_q, _r)) { //#26427 + var _ = _r; //#26427 + _r = _q; //#26427 + _q = _; //#26427 + } //#26427 + $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26428 + $k[$j++] = 'metavlen'; //#26429 + if ($_.metass == 0) { //#26429 + $k[$j++] = $a([2, 2, 3, 4]); //#26429 + } else { //#26429 + $k[$j++] = $a([4, 6, 8, 10]); //#26429 + } //#26429 + var _z = $get($k[--$j], $_.metavf); //#26429 + $_[$k[--$j]] = _z; //#26429 + $_.metaelen = $f(($_.metavf * 2) + 10); //#26430 + $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26433 + if ($_.hasslaves) { //#26433 + var _15 = $k[--$j]; //#26433 + $k[$j++] = $f(_15 + 4); //#26433 + } //#26433 + var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26436 + $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26436 + $k[$j++] = _18 + 6; //#26437 + } else { //#26449 + $k[$j++] = 3; //#26440 + if (!$_.sameshape) { //#26440 + var _1B = $k[--$j]; //#26440 + $k[$j++] = $f(_1B + 5); //#26440 + } //#26440 + if ($_.hasslaves) { //#26441 + var _1D = $k[--$j]; //#26441 + $k[$j++] = $f(_1D + 3); //#26441 + } //#26441 + if (!$_.sameecc) { //#26446 + var _1F = $_.mr; //#26443 + var _1G = $_.mc; //#26443 + if ($lt(_1F, _1G)) { //#26443 + var _ = _1G; //#26443 + _1G = _1F; //#26443 + _1F = _; //#26443 + } //#26443 + var _1J = $k[--$j]; //#26445 + $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26445 + } //#26445 + var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26449 + $_.nummetabits = _1M * $_.metabpm; //#26449 + $k[$j++] = _1M; //#26449 + } //#26449 + var _1O = $k[--$j]; //#26452 + $_.nummetamodules = _1O; //#26452 + var _1P = $k[--$j]; //#26453 + var _1Q = $k[--$j]; //#26453 + var _1R = $k[--$j]; //#26453 + $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26453 + $_.numdatabits = $_.numdatamodules * $_.databpm; //#26454 + }; //#26454 + $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26458 + $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26459 $_.snapsize = function() { - var _1b = (~~Math.ceil($k[--$j])) - 18; //#26145 - $k[$j++] = _1b; //#26145 - if (_1b < 0) { //#26145 - $j--; //#26145 - $k[$j++] = 0; //#26145 - } //#26145 - var _1c = $k[--$j]; //#26145 - $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26145 - }; //#26145 - if (($_.rows == -1) && ($_.columns == -1)) { //#26174 - $k[$j++] = 'size'; //#26148 - $k[$j++] = Math.sqrt($_.grosslen); //#26148 - $_.snapsize(); //#26148 - var _1g = $k[--$j]; //#26148 - $_[$k[--$j]] = _1g; //#26148 - for (;;) { //#26153 - $k[$j++] = $_.size; //#26150 - $k[$j++] = $_.size; //#26150 - $_.metrics(); //#26150 - if ($_.grosslen <= $_.numdatabits) { //#26151 - break; //#26151 - } //#26151 - $_.size = $f($_.size + 4); //#26152 - } //#26152 - $_.rows = $_.size; //#26154 - $_.columns = $_.size; //#26155 - } else { //#26174 - if (($_.columns == -1) && ($_.rows != -1)) { //#26164 - $k[$j++] = 'columns'; //#26158 - $k[$j++] = $_.grosslen / $_.rows; //#26158 - $_.snapsize(); //#26158 - var _1t = $k[--$j]; //#26158 - $_[$k[--$j]] = _1t; //#26158 - for (;;) { //#26163 - $k[$j++] = $_.rows; //#26160 - $k[$j++] = $_.columns; //#26160 - $_.metrics(); //#26160 - if ($_.grosslen <= $_.numdatabits) { //#26161 - break; //#26161 - } //#26161 - $_.columns = $f($_.columns + 4); //#26162 - } //#26162 - } //#26162 - if (($_.rows == -1) && ($_.columns != -1)) { //#26172 - $k[$j++] = 'rows'; //#26166 - $k[$j++] = $_.grosslen / $_.columns; //#26166 - $_.snapsize(); //#26166 - var _24 = $k[--$j]; //#26166 - $_[$k[--$j]] = _24; //#26166 - for (;;) { //#26171 - $k[$j++] = $_.rows; //#26168 - $k[$j++] = $_.columns; //#26168 - $_.metrics(); //#26168 - if ($_.grosslen <= $_.numdatabits) { //#26169 - break; //#26169 - } //#26169 - $_.rows = $f($_.rows + 4); //#26170 - } //#26170 - } //#26170 - if (($_.rows != -1) && ($_.columns != -1)) { //#26175 - $k[$j++] = $_.rows; //#26174 - $k[$j++] = $_.columns; //#26174 - $_.metrics(); //#26174 - } //#26174 - } //#26174 - $_.C = $_.numdatabits; //#26177 - $_.cols = $_.columns; //#26178 - if (($_.rows > 145) || ($_.cols > 145)) { //#26183 - $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26182'; //#26182 - $k[$j++] = "Maximum length exceeded or invalid content"; //#26182 - bwipp_raiseerror(); //#26182 - } //#26182 - $_.min = $_.C; //#26186 - for (var _2K = 3; _2K <= 8; _2K += 1) { //#26198 - $_.i = _2K; //#26188 - for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26197 - $_.j = _2M; //#26190 - $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26191 - if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26196 - $_.datawc = $_.i; //#26193 - $_.datawr = $_.j; //#26194 - $_.min = $_.dist; //#26195 - } //#26195 - } //#26195 - } //#26195 - $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26201 - $puti($_.tmpbits, 0, $_.bits); //#26202 - for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26206 - var _2o = $get($_.tmpbits, _2m - 1); //#26204 - $k[$j++] = _2m; //#26204 - $k[$j++] = _2o; //#26204 - if ((_2o % 2) == 0) { //#26204 - var _2p = $k[--$j]; //#26204 - $k[$j++] = $f(_2p + 1); //#26204 - } else { //#26204 - var _2q = $k[--$j]; //#26204 - $k[$j++] = $f(_2q - 1); //#26204 - } //#26204 - var _2s = $k[--$j]; //#26205 - $put($_.tmpbits, $k[--$j], _2s); //#26205 - } //#26205 - $_.bits = $_.tmpbits; //#26207 - $_.m0 = 22609 + 1; //#26211 - $_.m1 = 62509 - 65536; //#26211 - $_.m2 = 19605; //#26211 - $_.m3 = 32557; //#26211 + var _1b = (~~Math.ceil($k[--$j])) - 18; //#26460 + $k[$j++] = _1b; //#26460 + if (_1b < 0) { //#26460 + $j--; //#26460 + $k[$j++] = 0; //#26460 + } //#26460 + var _1c = $k[--$j]; //#26460 + $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26460 + }; //#26460 + if (($_.rows == -1) && ($_.columns == -1)) { //#26489 + $k[$j++] = 'size'; //#26463 + $k[$j++] = Math.sqrt($_.grosslen); //#26463 + $_.snapsize(); //#26463 + var _1g = $k[--$j]; //#26463 + $_[$k[--$j]] = _1g; //#26463 + for (;;) { //#26468 + $k[$j++] = $_.size; //#26465 + $k[$j++] = $_.size; //#26465 + $_.metrics(); //#26465 + if ($_.grosslen <= $_.numdatabits) { //#26466 + break; //#26466 + } //#26466 + $_.size = $f($_.size + 4); //#26467 + } //#26467 + $_.rows = $_.size; //#26469 + $_.columns = $_.size; //#26470 + } else { //#26489 + if (($_.columns == -1) && ($_.rows != -1)) { //#26479 + $k[$j++] = 'columns'; //#26473 + $k[$j++] = $_.grosslen / $_.rows; //#26473 + $_.snapsize(); //#26473 + var _1t = $k[--$j]; //#26473 + $_[$k[--$j]] = _1t; //#26473 + for (;;) { //#26478 + $k[$j++] = $_.rows; //#26475 + $k[$j++] = $_.columns; //#26475 + $_.metrics(); //#26475 + if ($_.grosslen <= $_.numdatabits) { //#26476 + break; //#26476 + } //#26476 + $_.columns = $f($_.columns + 4); //#26477 + } //#26477 + } //#26477 + if (($_.rows == -1) && ($_.columns != -1)) { //#26487 + $k[$j++] = 'rows'; //#26481 + $k[$j++] = $_.grosslen / $_.columns; //#26481 + $_.snapsize(); //#26481 + var _24 = $k[--$j]; //#26481 + $_[$k[--$j]] = _24; //#26481 + for (;;) { //#26486 + $k[$j++] = $_.rows; //#26483 + $k[$j++] = $_.columns; //#26483 + $_.metrics(); //#26483 + if ($_.grosslen <= $_.numdatabits) { //#26484 + break; //#26484 + } //#26484 + $_.rows = $f($_.rows + 4); //#26485 + } //#26485 + } //#26485 + if (($_.rows != -1) && ($_.columns != -1)) { //#26490 + $k[$j++] = $_.rows; //#26489 + $k[$j++] = $_.columns; //#26489 + $_.metrics(); //#26489 + } //#26489 + } //#26489 + $_.C = $_.numdatabits; //#26492 + $_.cols = $_.columns; //#26493 + if (($_.rows > 145) || ($_.cols > 145)) { //#26498 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26497'; //#26497 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26497 + bwipp_raiseerror(); //#26497 + } //#26497 + $_.min = $_.C; //#26501 + for (var _2K = 3; _2K <= 8; _2K += 1) { //#26513 + $_.i = _2K; //#26503 + for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26512 + $_.j = _2M; //#26505 + $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26506 + if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26511 + $_.datawc = $_.i; //#26508 + $_.datawr = $_.j; //#26509 + $_.min = $_.dist; //#26510 + } //#26510 + } //#26510 + } //#26510 + $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26516 + $puti($_.tmpbits, 0, $_.bits); //#26517 + for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26521 + var _2o = $get($_.tmpbits, _2m - 1); //#26519 + $k[$j++] = _2m; //#26519 + $k[$j++] = _2o; //#26519 + if ((_2o % 2) == 0) { //#26519 + var _2p = $k[--$j]; //#26519 + $k[$j++] = $f(_2p + 1); //#26519 + } else { //#26519 + var _2q = $k[--$j]; //#26519 + $k[$j++] = $f(_2q - 1); //#26519 + } //#26519 + var _2s = $k[--$j]; //#26520 + $put($_.tmpbits, $k[--$j], _2s); //#26520 + } //#26520 + $_.bits = $_.tmpbits; //#26522 + $_.m0 = 22609 + 1; //#26526 + $_.m1 = 62509 - 65536; //#26526 + $_.m2 = 19605; //#26526 + $_.m3 = 32557; //#26526 $_.lcg64_temper = function() { - $_.p00 = $_.m0 * $_.s0; //#26217 - $_.p01 = $_.m0 * $_.s1; //#26217 - $_.p02 = $_.m0 * $_.s2; //#26217 - $_.p03 = $_.m0 * $_.s3; //#26217 - $_.p10 = $_.m1 * $_.s0; //#26218 - $_.p11 = $_.m1 * $_.s1; //#26218 - $_.p12 = $_.m1 * $_.s2; //#26218 - $_.p13 = $_.m1 * $_.s3; //#26218 - $_.p20 = $_.m2 * $_.s0; //#26219 - $_.p21 = $_.m2 * $_.s1; //#26219 - $_.p22 = $_.m2 * $_.s2; //#26219 - $_.p23 = $_.m2 * $_.s3; //#26219 - $_.p30 = $_.m3 * $_.s0; //#26220 - $_.p31 = $_.m3 * $_.s1; //#26220 - $_.p32 = $_.m3 * $_.s2; //#26220 - $_.p33 = $_.m3 * $_.s3; //#26220 - $_.s3 = ($_.p33 % 65536) + 1; //#26222 - $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26224 - $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26227 - $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26231 - $_.s3 = $_.s3 + 65536; //#26234 - $_.s2 = $_.s2 + 65535; //#26235 - $_.s1 = $_.s1 + 65535; //#26236 - $_.s0 = $_.s0 + 65535; //#26237 - $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26240 - $_.s3 = $_.s3 % 65536; //#26240 - $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26241 - $_.s2 = $_.s2 % 65536; //#26241 - $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26242 - $_.s1 = $_.s1 % 65536; //#26242 - $_.s0 = $_.s0 % 65536; //#26243 - var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26248 - var _3y = _3x ^ (_3x >>> 11); //#26249 - var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26250 - var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26252 - $k[$j++] = _40 ^ (_40 >>> 18); //#26252 - }; //#26252 + $_.p00 = $_.m0 * $_.s0; //#26532 + $_.p01 = $_.m0 * $_.s1; //#26532 + $_.p02 = $_.m0 * $_.s2; //#26532 + $_.p03 = $_.m0 * $_.s3; //#26532 + $_.p10 = $_.m1 * $_.s0; //#26533 + $_.p11 = $_.m1 * $_.s1; //#26533 + $_.p12 = $_.m1 * $_.s2; //#26533 + $_.p13 = $_.m1 * $_.s3; //#26533 + $_.p20 = $_.m2 * $_.s0; //#26534 + $_.p21 = $_.m2 * $_.s1; //#26534 + $_.p22 = $_.m2 * $_.s2; //#26534 + $_.p23 = $_.m2 * $_.s3; //#26534 + $_.p30 = $_.m3 * $_.s0; //#26535 + $_.p31 = $_.m3 * $_.s1; //#26535 + $_.p32 = $_.m3 * $_.s2; //#26535 + $_.p33 = $_.m3 * $_.s3; //#26535 + $_.s3 = ($_.p33 % 65536) + 1; //#26537 + $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26539 + $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26542 + $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26546 + $_.s3 = $_.s3 + 65536; //#26549 + $_.s2 = $_.s2 + 65535; //#26550 + $_.s1 = $_.s1 + 65535; //#26551 + $_.s0 = $_.s0 + 65535; //#26552 + $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26555 + $_.s3 = $_.s3 % 65536; //#26555 + $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26556 + $_.s2 = $_.s2 % 65536; //#26556 + $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26557 + $_.s1 = $_.s1 % 65536; //#26557 + $_.s0 = $_.s0 % 65536; //#26558 + var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26563 + var _3y = _3x ^ (_3x >>> 11); //#26564 + var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26565 + var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26567 + $k[$j++] = _40 ^ (_40 >>> 18); //#26567 + }; //#26567 $_.createMatrixA = function() { - $k[$j++] = 'nb_pcb'; //#26258 - if ($_.wr < 4) { //#26258 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26258 - } else { //#26258 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26258 - } //#26258 - var _46 = $k[--$j]; //#26258 - $_[$k[--$j]] = _46; //#26258 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26259 - $_.effwidth = $_.offset * 32; //#26260 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26261 - for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26262 - $put($_.matrixA, _4G, 0); //#26262 - } //#26262 - $_.permutation = $a($_.Pg_sub_block); //#26263 - for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26264 - $put($_.permutation, _4M, _4M); //#26264 - } //#26264 - for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26273 - $_.i = _4R; //#26267 - for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26272 - $_.j = _4U; //#26269 - var _4V = $_.matrixA; //#26270 - var _4W = $_.i; //#26270 - var _4X = $_.effwidth; //#26270 - var _4Y = $_.wr; //#26270 - var _4Z = $_.j; //#26270 - var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26271 - $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26271 - } //#26271 - } //#26271 - $_.s0 = 0; //#26276 - $_.s1 = 0; //#26276 - $_.s2 = 11; //#26276 - $_.s3 = 64569; //#26276 - for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26299 - $_.i = _4i; //#26278 - $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26279 - for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26298 - $_.j = _4o; //#26281 - $_.lcg64_temper(); //#26282 - var _4p = $k[--$j]; //#26283 - $k[$j++] = _4p; //#26283 - if (_4p < 0) { //#26283 - var _4q = $k[--$j]; //#26283 - $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26283 - } //#26283 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26285 - for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26294 - $_.k = _4x; //#26287 - var _4y = $_.matrixA; //#26288 - var _4z = $_.off_index; //#26288 - var _50 = $_.k; //#26288 - var _51 = $_.offset; //#26288 - var _52 = $_.j; //#26288 - var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26290 - var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26291 - var _5G = 31 - ($_.j % 32); //#26292 - $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26293 - } //#26293 - var _5J = $_.permutation; //#26295 - var _5K = $_.Pg_sub_block; //#26295 - var _5L = $_.j; //#26295 - $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26297 - $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26297 - } //#26297 - } //#26297 - }; //#26297 + $k[$j++] = 'nb_pcb'; //#26573 + if ($_.wr < 4) { //#26573 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26573 + } else { //#26573 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26573 + } //#26573 + var _46 = $k[--$j]; //#26573 + $_[$k[--$j]] = _46; //#26573 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26574 + $_.effwidth = $_.offset * 32; //#26575 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26576 + for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26577 + $put($_.matrixA, _4G, 0); //#26577 + } //#26577 + $_.permutation = $a($_.Pg_sub_block); //#26578 + for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26579 + $put($_.permutation, _4M, _4M); //#26579 + } //#26579 + for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26588 + $_.i = _4R; //#26582 + for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26587 + $_.j = _4U; //#26584 + var _4V = $_.matrixA; //#26585 + var _4W = $_.i; //#26585 + var _4X = $_.effwidth; //#26585 + var _4Y = $_.wr; //#26585 + var _4Z = $_.j; //#26585 + var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26586 + $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26586 + } //#26586 + } //#26586 + $_.s0 = 0; //#26591 + $_.s1 = 0; //#26591 + $_.s2 = 11; //#26591 + $_.s3 = 64569; //#26591 + for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26614 + $_.i = _4i; //#26593 + $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26594 + for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26613 + $_.j = _4o; //#26596 + $_.lcg64_temper(); //#26597 + var _4p = $k[--$j]; //#26598 + $k[$j++] = _4p; //#26598 + if (_4p < 0) { //#26598 + var _4q = $k[--$j]; //#26598 + $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26598 + } //#26598 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26600 + for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26609 + $_.k = _4x; //#26602 + var _4y = $_.matrixA; //#26603 + var _4z = $_.off_index; //#26603 + var _50 = $_.k; //#26603 + var _51 = $_.offset; //#26603 + var _52 = $_.j; //#26603 + var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26605 + var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26606 + var _5G = 31 - ($_.j % 32); //#26607 + $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26608 + } //#26608 + var _5J = $_.permutation; //#26610 + var _5K = $_.Pg_sub_block; //#26610 + var _5L = $_.j; //#26610 + $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26612 + $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26612 + } //#26612 + } //#26612 + }; //#26612 $_.createMetadataMatrixA = function() { - $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26305 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26306 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26307 - for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26308 - $put($_.matrixA, _5Y, 0); //#26308 - } //#26308 - $_.permutation = $a($_.Pg_sub_block); //#26309 - for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26310 - $put($_.permutation, _5e, _5e); //#26310 - } //#26310 - $_.s0 = 0; //#26313 - $_.s1 = 0; //#26313 - $_.s2 = 0; //#26313 - $_.s3 = 38545; //#26313 - $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26314 - for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26329 - $_.i = _5m; //#26316 - for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26328 - $_.j = _5p; //#26318 - $_.lcg64_temper(); //#26319 - var _5q = $k[--$j]; //#26320 - $k[$j++] = _5q; //#26320 - if (_5q < 0) { //#26320 - var _5r = $k[--$j]; //#26320 - $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26320 - } //#26320 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26322 - var _5v = $_.matrixA; //#26323 - var _5w = $_.i; //#26323 - var _5x = $_.offset; //#26323 - var _60 = $get($_.permutation, $_.pos); //#26323 - var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26324 - $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26324 - var _68 = $_.permutation; //#26325 - var _69 = $_.Pg_sub_block; //#26325 - var _6A = $_.j; //#26325 - $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26327 - $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26327 - } //#26327 - } //#26327 - }; //#26327 + $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26620 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26621 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26622 + for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26623 + $put($_.matrixA, _5Y, 0); //#26623 + } //#26623 + $_.permutation = $a($_.Pg_sub_block); //#26624 + for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26625 + $put($_.permutation, _5e, _5e); //#26625 + } //#26625 + $_.s0 = 0; //#26628 + $_.s1 = 0; //#26628 + $_.s2 = 0; //#26628 + $_.s3 = 38545; //#26628 + $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26629 + for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26644 + $_.i = _5m; //#26631 + for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26643 + $_.j = _5p; //#26633 + $_.lcg64_temper(); //#26634 + var _5q = $k[--$j]; //#26635 + $k[$j++] = _5q; //#26635 + if (_5q < 0) { //#26635 + var _5r = $k[--$j]; //#26635 + $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26635 + } //#26635 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26637 + var _5v = $_.matrixA; //#26638 + var _5w = $_.i; //#26638 + var _5x = $_.offset; //#26638 + var _60 = $get($_.permutation, $_.pos); //#26638 + var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26639 + $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26639 + var _68 = $_.permutation; //#26640 + var _69 = $_.Pg_sub_block; //#26640 + var _6A = $_.j; //#26640 + $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26642 + $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26642 + } //#26642 + } //#26642 + }; //#26642 $_.GaussJordan = function() { - $k[$j++] = 'nb_pcb'; //#26335 - if ($_.wr < 4) { //#26335 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26335 - } else { //#26335 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26335 - } //#26335 - var _6K = $k[--$j]; //#26335 - $_[$k[--$j]] = _6K; //#26335 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26336 - var _6N = $_.matrixA; //#26337 - $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26337 - $k[$j++] = Infinity; //#26338 - for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26338 - $k[$j++] = 0; //#26338 - } //#26338 - $_.column_arrangement = $a(); //#26338 - $k[$j++] = Infinity; //#26339 - for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26339 - $k[$j++] = false; //#26339 - } //#26339 - $_.processed_column = $a(); //#26339 - $k[$j++] = Infinity; //#26340 - for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26340 - $k[$j++] = 0; //#26340 - } //#26340 - $_.zero_lines_nb = $a(); //#26340 - $k[$j++] = Infinity; //#26341 - for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26341 - $k[$j++] = 0; //#26341 - } //#26341 - $_.swap_col = $a(); //#26341 - $_.zero_lines = 0; //#26342 - $_.loop0 = 0; //#26344 - for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26382 - $_.i = _6i; //#26346 - $_.pivot_column = $_.Pg_sub_block + 1; //#26347 - for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26355 - $_.j = _6m; //#26349 - var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26350 - var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26351 - if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26354 - $_.pivot_column = $_.j; //#26352 - break; //#26353 - } //#26353 - } //#26353 - if ($_.pivot_column < $_.Pg_sub_block) { //#26380 - $put($_.processed_column, $_.pivot_column, true); //#26357 - $put($_.column_arrangement, $_.pivot_column, $_.i); //#26358 - if ($_.pivot_column >= $_.nb_pcb) { //#26362 - $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26360 - $_.loop0 = $_.loop0 + 1; //#26361 - } //#26361 - $_.off_index = ~~($_.pivot_column / 32); //#26363 - $_.off_index1 = $_.pivot_column % 32; //#26364 - for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26377 - $_.j = _7E; //#26366 - if ($_.i != $_.j) { //#26376 - var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26368 - var _7N = -(31 - $_.off_index1); //#26369 - if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26375 - for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26374 - $_.k = _7Q; //#26371 - var _7R = $_.matrixH; //#26372 - var _7S = $_.offset; //#26372 - var _7T = $_.j; //#26372 - var _7U = $_.k; //#26372 - $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26373 - } //#26373 - } //#26373 - } //#26373 - } //#26373 - } else { //#26380 - $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26379 - $_.zero_lines = $_.zero_lines + 1; //#26380 - } //#26380 - } //#26380 - $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26384 - $_.loop2 = 0; //#26385 - for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26405 - $_.i = _7k; //#26387 - if ($get($_.column_arrangement, $_.i) > 0) { //#26404 - for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26403 - $_.j = _7q; //#26390 - if ($nt($get($_.processed_column, $_.j))) { //#26402 - $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26392 - $put($_.column_arrangement, $_.i, 0); //#26393 - $put($_.processed_column, $_.j, true); //#26394 - $put($_.processed_column, $_.i, false); //#26395 - $put($_.swap_col, $_.loop0 * 2, $_.i); //#26396 - $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26397 - $put($_.column_arrangement, $_.i, $_.j); //#26398 - $_.loop0 = $_.loop0 + 1; //#26399 - $_.loop2 = $_.loop2 + 1; //#26400 - break; //#26401 - } //#26401 - } //#26401 - } //#26401 - } //#26401 - $_.loop1 = 0; //#26407 - for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26416 - $_.kl = _8I; //#26409 - if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26415 - $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26411 - $put($_.processed_column, $_.kl, true); //#26412 - $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26413 - $_.loop1 = $_.loop1 + 1; //#26414 - } //#26414 - } //#26414 - $_.loop1 = 0; //#26418 - for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26425 - $_.kl = _8e; //#26420 - if ($nt($get($_.processed_column, $_.kl))) { //#26424 - $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26422 - $_.loop1 = $_.loop1 + 1; //#26423 - } //#26423 - } //#26423 - for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26434 - $_.i = _8q; //#26428 - for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26433 - $_.j = _8t; //#26430 - $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26432 - } //#26432 - } //#26432 - $_.tmp = 0; //#26436 - for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26458 - $_.i = _97; //#26438 - for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26457 - $_.j = _9A; //#26440 - var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26441 - var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26442 - $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26443 - var _9O = $_.matrixA; //#26444 - var _9R = $get($_.swap_col, $_.i * 2); //#26444 - var _9S = $_.j; //#26444 - var _9T = $_.offset; //#26444 - var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26446 - var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26447 - var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26449 - $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26450 - var _9r = $_.matrixA; //#26451 - var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26451 - var _9v = $_.j; //#26451 - var _9w = $_.offset; //#26451 - var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26455 - $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26456 - } //#26456 - } //#26456 - }; //#26456 + $k[$j++] = 'nb_pcb'; //#26650 + if ($_.wr < 4) { //#26650 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26650 + } else { //#26650 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26650 + } //#26650 + var _6K = $k[--$j]; //#26650 + $_[$k[--$j]] = _6K; //#26650 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26651 + var _6N = $_.matrixA; //#26652 + $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26652 + $k[$j++] = Infinity; //#26653 + for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26653 + $k[$j++] = 0; //#26653 + } //#26653 + $_.column_arrangement = $a(); //#26653 + $k[$j++] = Infinity; //#26654 + for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26654 + $k[$j++] = false; //#26654 + } //#26654 + $_.processed_column = $a(); //#26654 + $k[$j++] = Infinity; //#26655 + for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26655 + $k[$j++] = 0; //#26655 + } //#26655 + $_.zero_lines_nb = $a(); //#26655 + $k[$j++] = Infinity; //#26656 + for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26656 + $k[$j++] = 0; //#26656 + } //#26656 + $_.swap_col = $a(); //#26656 + $_.zero_lines = 0; //#26657 + $_.loop0 = 0; //#26659 + for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26697 + $_.i = _6i; //#26661 + $_.pivot_column = $_.Pg_sub_block + 1; //#26662 + for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26670 + $_.j = _6m; //#26664 + var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26665 + var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26666 + if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26669 + $_.pivot_column = $_.j; //#26667 + break; //#26668 + } //#26668 + } //#26668 + if ($_.pivot_column < $_.Pg_sub_block) { //#26695 + $put($_.processed_column, $_.pivot_column, true); //#26672 + $put($_.column_arrangement, $_.pivot_column, $_.i); //#26673 + if ($_.pivot_column >= $_.nb_pcb) { //#26677 + $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26675 + $_.loop0 = $_.loop0 + 1; //#26676 + } //#26676 + $_.off_index = ~~($_.pivot_column / 32); //#26678 + $_.off_index1 = $_.pivot_column % 32; //#26679 + for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26692 + $_.j = _7E; //#26681 + if ($_.i != $_.j) { //#26691 + var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26683 + var _7N = -(31 - $_.off_index1); //#26684 + if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26690 + for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26689 + $_.k = _7Q; //#26686 + var _7R = $_.matrixH; //#26687 + var _7S = $_.offset; //#26687 + var _7T = $_.j; //#26687 + var _7U = $_.k; //#26687 + $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26688 + } //#26688 + } //#26688 + } //#26688 + } //#26688 + } else { //#26695 + $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26694 + $_.zero_lines = $_.zero_lines + 1; //#26695 + } //#26695 + } //#26695 + $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26699 + $_.loop2 = 0; //#26700 + for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26720 + $_.i = _7k; //#26702 + if ($get($_.column_arrangement, $_.i) > 0) { //#26719 + for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26718 + $_.j = _7q; //#26705 + if ($nt($get($_.processed_column, $_.j))) { //#26717 + $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26707 + $put($_.column_arrangement, $_.i, 0); //#26708 + $put($_.processed_column, $_.j, true); //#26709 + $put($_.processed_column, $_.i, false); //#26710 + $put($_.swap_col, $_.loop0 * 2, $_.i); //#26711 + $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26712 + $put($_.column_arrangement, $_.i, $_.j); //#26713 + $_.loop0 = $_.loop0 + 1; //#26714 + $_.loop2 = $_.loop2 + 1; //#26715 + break; //#26716 + } //#26716 + } //#26716 + } //#26716 + } //#26716 + $_.loop1 = 0; //#26722 + for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26731 + $_.kl = _8I; //#26724 + if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26730 + $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26726 + $put($_.processed_column, $_.kl, true); //#26727 + $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26728 + $_.loop1 = $_.loop1 + 1; //#26729 + } //#26729 + } //#26729 + $_.loop1 = 0; //#26733 + for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26740 + $_.kl = _8e; //#26735 + if ($nt($get($_.processed_column, $_.kl))) { //#26739 + $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26737 + $_.loop1 = $_.loop1 + 1; //#26738 + } //#26738 + } //#26738 + for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26749 + $_.i = _8q; //#26743 + for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26748 + $_.j = _8t; //#26745 + $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26747 + } //#26747 + } //#26747 + $_.tmp = 0; //#26751 + for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26773 + $_.i = _97; //#26753 + for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26772 + $_.j = _9A; //#26755 + var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26756 + var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26757 + $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26758 + var _9O = $_.matrixA; //#26759 + var _9R = $get($_.swap_col, $_.i * 2); //#26759 + var _9S = $_.j; //#26759 + var _9T = $_.offset; //#26759 + var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26761 + var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26762 + var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26764 + $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26765 + var _9r = $_.matrixA; //#26766 + var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26766 + var _9v = $_.j; //#26766 + var _9w = $_.offset; //#26766 + var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26770 + $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26771 + } //#26771 + } //#26771 + }; //#26771 $_.createGeneratorMatrix = function() { - $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26464 - $_.offset = ~~Math.ceil($_.pn / 32); //#26465 - $_.effwidth = $_.offset * 32; //#26466 - $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26467 - $_.G = $a($_.offset * $_.Pg_sub_block); //#26468 - for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26471 - $put($_.G, _AL, 0); //#26470 - } //#26470 - for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26476 - $_.i = _AP; //#26473 - var _AQ = $_.G; //#26474 - var _AR = $_.Pg_sub_block; //#26474 - var _AS = $_.pn; //#26474 - var _AT = $_.i; //#26474 - var _AU = $_.offset; //#26474 - var _AV = $_.i; //#26474 - var _AY = 31 - ($_.i % 32); //#26475 - $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26475 - } //#26475 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26477 - $_.loop0 = 0; //#26478 - for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26495 - $_.i = _Af; //#26480 - if ($_.matrix_index >= $_.Pg_sub_block) { //#26484 - $_.loop0 = $_.loop0 + 1; //#26482 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26483 - } //#26483 - if (($_.i % $_.effwidth) < $_.pn) { //#26494 - var _Ao = $_.G; //#26486 - var _Ap = $_.i; //#26486 - var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26488 - var _Ax = -(31 - ($_.matrix_index % 32)); //#26489 - var _B2 = 31 - ($_.i % 32); //#26491 - $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26492 - $_.matrix_index = $_.matrix_index + 1; //#26493 - } //#26493 - } //#26493 - }; //#26493 + $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26779 + $_.offset = ~~Math.ceil($_.pn / 32); //#26780 + $_.effwidth = $_.offset * 32; //#26781 + $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26782 + $_.G = $a($_.offset * $_.Pg_sub_block); //#26783 + for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26786 + $put($_.G, _AL, 0); //#26785 + } //#26785 + for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26791 + $_.i = _AP; //#26788 + var _AQ = $_.G; //#26789 + var _AR = $_.Pg_sub_block; //#26789 + var _AS = $_.pn; //#26789 + var _AT = $_.i; //#26789 + var _AU = $_.offset; //#26789 + var _AV = $_.i; //#26789 + var _AY = 31 - ($_.i % 32); //#26790 + $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26790 + } //#26790 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26792 + $_.loop0 = 0; //#26793 + for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26810 + $_.i = _Af; //#26795 + if ($_.matrix_index >= $_.Pg_sub_block) { //#26799 + $_.loop0 = $_.loop0 + 1; //#26797 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26798 + } //#26798 + if (($_.i % $_.effwidth) < $_.pn) { //#26809 + var _Ao = $_.G; //#26801 + var _Ap = $_.i; //#26801 + var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26803 + var _Ax = -(31 - ($_.matrix_index % 32)); //#26804 + var _B2 = 31 - ($_.i % 32); //#26806 + $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26807 + $_.matrix_index = $_.matrix_index + 1; //#26808 + } //#26808 + } //#26808 + }; //#26808 $_.ldpc = function() { - $_.wr = $k[--$j]; //#26501 - $_.wc = $k[--$j]; //#26502 - $k[$j++] = Infinity; //#26503 - var _B6 = $k[--$j]; //#26503 - var _B7 = $k[--$j]; //#26503 - $k[$j++] = _B6; //#26503 - $forall(_B7, function() { //#26503 - var _B8 = $k[--$j]; //#26503 - $k[$j++] = $f(_B8 - 48); //#26503 - }); //#26503 - $_.data = $a(); //#26503 - $_.Pn = $_.data.length; //#26505 - if ($_.wr != -1) { //#26520 - $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26507 - $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26508 - $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26509 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26510 - $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26511 - $k[$j++] = 'encoding_iterations'; //#26512 - $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26512 - if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26512 - var _BY = $k[--$j]; //#26512 - $k[$j++] = $f(_BY - 1); //#26512 - } //#26512 - var _BZ = $k[--$j]; //#26512 - $_[$k[--$j]] = _BZ; //#26512 - $_.createMatrixA(); //#26513 - } else { //#26520 - $_.Pg = $_.Pn * 2; //#26515 - $_.nb_sub_blocks = 1; //#26516 - $_.Pg_sub_block = $_.Pg; //#26517 - $_.Pn_sub_block = $_.Pn; //#26518 - $_.encoding_iterations = 1; //#26519 - $_.createMetadataMatrixA(); //#26520 - } //#26520 - $_.GaussJordan(); //#26522 - $_.createGeneratorMatrix(); //#26523 - $_.ecc_encoded_data = $a($_.Pg); //#26525 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26527 - for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26543 - $_.iter = _Bk; //#26529 - for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26542 - $_.i = _Bn; //#26531 - $_.temp = 0; //#26532 - $_.loop0 = 0; //#26533 - $_.offset_index = $_.offset * $_.i; //#26534 - for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26540 - var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26537 - var _C3 = -(31 - ($_.loop0 % 32)); //#26537 - $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26538 - $_.loop0 = $_.loop0 + 1; //#26539 - } //#26539 - $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26541 - } //#26541 - } //#26541 - if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26567 - $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26546 - $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26547 - $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26548 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26549 - $_.createMatrixA(); //#26550 - $_.GaussJordan(); //#26551 - $_.createGeneratorMatrix(); //#26552 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26553 - for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26566 - $_.i = _CS; //#26555 - $_.temp = 0; //#26556 - $_.loop0 = 0; //#26557 - $_.offset_index = $_.offset * $_.i; //#26558 - for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26564 - var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26561 - var _Cg = -(31 - ($_.loop0 % 32)); //#26561 - $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26562 - $_.loop0 = $_.loop0 + 1; //#26563 - } //#26563 - $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26565 - } //#26565 - } //#26565 - $_.out = $s($_.Pg); //#26569 - for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26573 - $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26572 - } //#26572 - $k[$j++] = $_.out; //#26574 - }; //#26574 - $k[$j++] = 'bits'; //#26579 - $k[$j++] = $_.bits; //#26579 - $k[$j++] = $_.datawc; //#26579 - $k[$j++] = $_.datawr; //#26579 - $_.ldpc(); //#26579 - var _Cz = $k[--$j]; //#26579 - $_[$k[--$j]] = _Cz; //#26579 - $_.s0 = 0; //#26582 - $_.s1 = 0; //#26582 - $_.s2 = 3; //#26582 - $_.s3 = 30151; //#26582 - for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26592 - $_.l = _D2; //#26584 - $_.lcg64_temper(); //#26585 - var _D3 = $k[--$j]; //#26586 - $k[$j++] = _D3; //#26586 - if (_D3 < 0) { //#26586 - var _D4 = $k[--$j]; //#26586 - $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26586 - } //#26586 - $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26588 - $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26590 - $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26591 - } //#26591 - $_.tmpbits = $s($_.C); //#26595 - $puti($_.tmpbits, 0, $_.bits); //#26596 - $_.j = $_.bits.length; //#26597 - for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26602 - $put($_.tmpbits, $_.j, 48); //#26599 - if (($_.j + 1) < $_.C) { //#26600 - $put($_.tmpbits, $_.j + 1, 49); //#26600 - } //#26600 - $_.j = $_.j + 2; //#26601 - } //#26601 - $_.bits = $_.tmpbits; //#26603 - if ($_.colors == 4) { //#26668 - $_.bi = 0; //#26607 - $_.gi = 1; //#26607 - $_.mi = 2; //#26607 - $_.yi = 3; //#26607 - $_.ki = 4; //#26608 - $_.wi = 5; //#26608 - $k[$j++] = Infinity; //#26611 - $k[$j++] = $_.bi; //#26611 - $k[$j++] = "0000FF"; //#26611 - $k[$j++] = $_.gi; //#26611 - $k[$j++] = "00FF00"; //#26611 - $k[$j++] = $_.mi; //#26611 - $k[$j++] = "FF00FF"; //#26611 - $k[$j++] = $_.yi; //#26611 - $k[$j++] = "FFFF00"; //#26611 - $k[$j++] = $_.ki; //#26611 - $k[$j++] = "000000"; //#26611 - $k[$j++] = $_.wi; //#26611 - $k[$j++] = "FFFFFF"; //#26611 - $_.palette = $d(); //#26612 - $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26613 - $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26614 - } else { //#26668 + $_.wr = $k[--$j]; //#26816 + $_.wc = $k[--$j]; //#26817 + $k[$j++] = Infinity; //#26818 + var _B6 = $k[--$j]; //#26818 + var _B7 = $k[--$j]; //#26818 + $k[$j++] = _B6; //#26818 + $forall(_B7, function() { //#26818 + var _B8 = $k[--$j]; //#26818 + $k[$j++] = $f(_B8 - 48); //#26818 + }); //#26818 + $_.data = $a(); //#26818 + $_.Pn = $_.data.length; //#26820 + if ($_.wr != -1) { //#26835 + $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26822 + $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26823 + $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26824 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26825 + $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26826 + $k[$j++] = 'encoding_iterations'; //#26827 + $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26827 + if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26827 + var _BY = $k[--$j]; //#26827 + $k[$j++] = $f(_BY - 1); //#26827 + } //#26827 + var _BZ = $k[--$j]; //#26827 + $_[$k[--$j]] = _BZ; //#26827 + $_.createMatrixA(); //#26828 + } else { //#26835 + $_.Pg = $_.Pn * 2; //#26830 + $_.nb_sub_blocks = 1; //#26831 + $_.Pg_sub_block = $_.Pg; //#26832 + $_.Pn_sub_block = $_.Pn; //#26833 + $_.encoding_iterations = 1; //#26834 + $_.createMetadataMatrixA(); //#26835 + } //#26835 + $_.GaussJordan(); //#26837 + $_.createGeneratorMatrix(); //#26838 + $_.ecc_encoded_data = $a($_.Pg); //#26840 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26842 + for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26858 + $_.iter = _Bk; //#26844 + for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26857 + $_.i = _Bn; //#26846 + $_.temp = 0; //#26847 + $_.loop0 = 0; //#26848 + $_.offset_index = $_.offset * $_.i; //#26849 + for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26855 + var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26852 + var _C3 = -(31 - ($_.loop0 % 32)); //#26852 + $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26853 + $_.loop0 = $_.loop0 + 1; //#26854 + } //#26854 + $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26856 + } //#26856 + } //#26856 + if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26882 + $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26861 + $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26862 + $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26863 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26864 + $_.createMatrixA(); //#26865 + $_.GaussJordan(); //#26866 + $_.createGeneratorMatrix(); //#26867 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26868 + for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26881 + $_.i = _CS; //#26870 + $_.temp = 0; //#26871 + $_.loop0 = 0; //#26872 + $_.offset_index = $_.offset * $_.i; //#26873 + for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26879 + var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26876 + var _Cg = -(31 - ($_.loop0 % 32)); //#26876 + $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26877 + $_.loop0 = $_.loop0 + 1; //#26878 + } //#26878 + $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26880 + } //#26880 + } //#26880 + $_.out = $s($_.Pg); //#26884 + for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26888 + $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26887 + } //#26887 + $k[$j++] = $_.out; //#26889 + }; //#26889 + $k[$j++] = 'bits'; //#26894 + $k[$j++] = $_.bits; //#26894 + $k[$j++] = $_.datawc; //#26894 + $k[$j++] = $_.datawr; //#26894 + $_.ldpc(); //#26894 + var _Cz = $k[--$j]; //#26894 + $_[$k[--$j]] = _Cz; //#26894 + $_.s0 = 0; //#26897 + $_.s1 = 0; //#26897 + $_.s2 = 3; //#26897 + $_.s3 = 30151; //#26897 + for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26907 + $_.l = _D2; //#26899 + $_.lcg64_temper(); //#26900 + var _D3 = $k[--$j]; //#26901 + $k[$j++] = _D3; //#26901 + if (_D3 < 0) { //#26901 + var _D4 = $k[--$j]; //#26901 + $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26901 + } //#26901 + $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26903 + $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26905 + $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26906 + } //#26906 + $_.tmpbits = $s($_.C); //#26910 + $puti($_.tmpbits, 0, $_.bits); //#26911 + $_.j = $_.bits.length; //#26912 + for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26917 + $put($_.tmpbits, $_.j, 48); //#26914 + if (($_.j + 1) < $_.C) { //#26915 + $put($_.tmpbits, $_.j + 1, 49); //#26915 + } //#26915 + $_.j = $_.j + 2; //#26916 + } //#26916 + $_.bits = $_.tmpbits; //#26918 + if ($_.colors == 4) { //#26983 + $_.bi = 0; //#26922 + $_.gi = 1; //#26922 + $_.mi = 2; //#26922 + $_.yi = 3; //#26922 + $_.ki = 4; //#26923 + $_.wi = 5; //#26923 + $k[$j++] = Infinity; //#26924 + $k[$j++] = $_.bi; //#26926 + $k[$j++] = "0000FF"; //#26926 + $k[$j++] = $_.gi; //#26926 + $k[$j++] = "00FF00"; //#26926 + $k[$j++] = $_.mi; //#26926 + $k[$j++] = "FF00FF"; //#26926 + $k[$j++] = $_.yi; //#26926 + $k[$j++] = "FFFF00"; //#26926 + $k[$j++] = $_.ki; //#26926 + $k[$j++] = "000000"; //#26926 + $k[$j++] = $_.wi; //#26926 + $k[$j++] = "FFFFFF"; //#26926 + $_.palette = $d(); //#26927 + $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26928 + $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26929 + } else { //#26983 var _Dw = new Map([ [8, $a([2, 2, 2])], [16, $a([4, 2, 2])], @@ -33519,1037 +33997,1037 @@ function bwipp_jabcode() { [64, $a([4, 4, 4])], [128, $a([8, 4, 4])], [256, $a([8, 8, 4])] - ]); //#26623 - $_.rgbres = $get(_Dw, $_.colors); //#26624 - $k[$j++] = 'rvals'; //#26626 - $k[$j++] = $get($_.rgbres, 0); //#26626 - $k[$j++] = Infinity; //#26626 - var _E1 = $k[--$j]; //#26626 - var _E3 = $f($k[--$j] - 1); //#26626 - $k[$j++] = _E1; //#26626 - $k[$j++] = _E3; //#26626 - for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26626 - var _E6 = $k[--$j]; //#26626 - $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26626 - $k[$j++] = _E6; //#26626 - } //#26626 - $j--; //#26626 - var _E7 = $a(); //#26626 - $_[$k[--$j]] = _E7; //#26626 - $k[$j++] = 'gvals'; //#26627 - $k[$j++] = $get($_.rgbres, 1); //#26627 - $k[$j++] = Infinity; //#26627 - var _EB = $k[--$j]; //#26627 - var _ED = $f($k[--$j] - 1); //#26627 - $k[$j++] = _EB; //#26627 - $k[$j++] = _ED; //#26627 - for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26627 - var _EG = $k[--$j]; //#26627 - $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26627 - $k[$j++] = _EG; //#26627 - } //#26627 - $j--; //#26627 - var _EH = $a(); //#26627 - $_[$k[--$j]] = _EH; //#26627 - $k[$j++] = 'bvals'; //#26628 - $k[$j++] = $get($_.rgbres, 2); //#26628 - $k[$j++] = Infinity; //#26628 - var _EL = $k[--$j]; //#26628 - var _EN = $f($k[--$j] - 1); //#26628 - $k[$j++] = _EL; //#26628 - $k[$j++] = _EN; //#26628 - for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26628 - var _EQ = $k[--$j]; //#26628 - $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26628 - $k[$j++] = _EQ; //#26628 - } //#26628 - $j--; //#26628 - var _ER = $a(); //#26628 - $_[$k[--$j]] = _ER; //#26628 - var _ET = $_.colors; //#26630 - $_.palette = new Map; //#26630 - var _EU = $_.colors; //#26631 - var _EV = 64; //#26631 - if (64 > _EU) { //#26631 - var _ = _EU; //#26631 - _EU = _EV; //#26631 - _EV = _; //#26631 - } //#26631 - $_.palettelayout = $a(_EV); //#26631 - $_.i = 0; //#26632 - $_.j = 8; //#26632 - $forall($_.rvals, function() { //#26666 - $_.r = $k[--$j]; //#26634 - $forall($_.gvals, function() { //#26665 - $_.g = $k[--$j]; //#26636 - $forall($_.bvals, function() { //#26664 - $_.b = $k[--$j]; //#26638 - var _Eh = $strcpy($s(6), "000000"); //#26640 - var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26640 - $puti(_Eh, 6 - _Ej.length, _Ej); //#26640 - $k[$j++] = _Eh; //#26642 - $k[$j++] = false; //#26642 - if ($eq(_Eh, "000000")) { //#26642 - $_.ki = $_.i; //#26642 - $j--; //#26642 - $k[$j++] = true; //#26642 - } //#26642 - var _El = $k[--$j]; //#26643 - var _Em = $k[--$j]; //#26643 - $k[$j++] = _Em; //#26643 - $k[$j++] = _El; //#26643 - if ($eq(_Em, "0000FF")) { //#26643 - $_.bi = $_.i; //#26643 - $j--; //#26643 - $k[$j++] = true; //#26643 - } //#26643 - var _Eo = $k[--$j]; //#26644 - var _Ep = $k[--$j]; //#26644 - $k[$j++] = _Ep; //#26644 - $k[$j++] = _Eo; //#26644 - if ($eq(_Ep, "00FF00")) { //#26644 - $_.gi = $_.i; //#26644 - $j--; //#26644 - $k[$j++] = true; //#26644 - } //#26644 - var _Er = $k[--$j]; //#26645 - var _Es = $k[--$j]; //#26645 - $k[$j++] = _Es; //#26645 - $k[$j++] = _Er; //#26645 - if ($eq(_Es, "00FFFF")) { //#26645 - $_.ci = $_.i; //#26645 - $j--; //#26645 - $k[$j++] = true; //#26645 - } //#26645 - var _Eu = $k[--$j]; //#26646 - var _Ev = $k[--$j]; //#26646 - $k[$j++] = _Ev; //#26646 - $k[$j++] = _Eu; //#26646 - if ($eq(_Ev, "FF0000")) { //#26646 - $_.ri = $_.i; //#26646 - $j--; //#26646 - $k[$j++] = true; //#26646 - } //#26646 - var _Ex = $k[--$j]; //#26647 - var _Ey = $k[--$j]; //#26647 - $k[$j++] = _Ey; //#26647 - $k[$j++] = _Ex; //#26647 - if ($eq(_Ey, "FF00FF")) { //#26647 - $_.mi = $_.i; //#26647 - $j--; //#26647 - $k[$j++] = true; //#26647 - } //#26647 - var _F0 = $k[--$j]; //#26648 - var _F1 = $k[--$j]; //#26648 - $k[$j++] = _F1; //#26648 - $k[$j++] = _F0; //#26648 - if ($eq(_F1, "FFFF00")) { //#26648 - $_.yi = $_.i; //#26648 - $j--; //#26648 - $k[$j++] = true; //#26648 - } //#26648 - var _F3 = $k[--$j]; //#26649 - var _F4 = $k[--$j]; //#26649 - $k[$j++] = _F4; //#26649 - $k[$j++] = _F3; //#26649 - if ($eq(_F4, "FFFFFF")) { //#26649 - $_.wi = $_.i; //#26649 - $j--; //#26649 - $k[$j++] = true; //#26649 - } //#26649 - if ($nt($k[--$j])) { //#26661 - if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26660 - $put($_.palettelayout, $_.j, $_.i); //#26658 - $_.j = $_.j + 1; //#26659 - } //#26659 - } //#26659 - $put($_.palette, $_.i, $k[--$j]); //#26662 - $_.i = $_.i + 1; //#26663 - }); //#26663 - }); //#26663 - }); //#26663 - $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26667 - $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26668 - } //#26668 - $k[$j++] = Infinity; //#26672 - for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26672 - $k[$j++] = -1; //#26672 - } //#26672 - $_.pixs = $a(); //#26672 + ]); //#26938 + $_.rgbres = $get(_Dw, $_.colors); //#26939 + $k[$j++] = 'rvals'; //#26941 + $k[$j++] = $get($_.rgbres, 0); //#26941 + $k[$j++] = Infinity; //#26941 + var _E1 = $k[--$j]; //#26941 + var _E3 = $f($k[--$j] - 1); //#26941 + $k[$j++] = _E1; //#26941 + $k[$j++] = _E3; //#26941 + for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26941 + var _E6 = $k[--$j]; //#26941 + $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26941 + $k[$j++] = _E6; //#26941 + } //#26941 + $j--; //#26941 + var _E7 = $a(); //#26941 + $_[$k[--$j]] = _E7; //#26941 + $k[$j++] = 'gvals'; //#26942 + $k[$j++] = $get($_.rgbres, 1); //#26942 + $k[$j++] = Infinity; //#26942 + var _EB = $k[--$j]; //#26942 + var _ED = $f($k[--$j] - 1); //#26942 + $k[$j++] = _EB; //#26942 + $k[$j++] = _ED; //#26942 + for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26942 + var _EG = $k[--$j]; //#26942 + $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26942 + $k[$j++] = _EG; //#26942 + } //#26942 + $j--; //#26942 + var _EH = $a(); //#26942 + $_[$k[--$j]] = _EH; //#26942 + $k[$j++] = 'bvals'; //#26943 + $k[$j++] = $get($_.rgbres, 2); //#26943 + $k[$j++] = Infinity; //#26943 + var _EL = $k[--$j]; //#26943 + var _EN = $f($k[--$j] - 1); //#26943 + $k[$j++] = _EL; //#26943 + $k[$j++] = _EN; //#26943 + for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26943 + var _EQ = $k[--$j]; //#26943 + $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26943 + $k[$j++] = _EQ; //#26943 + } //#26943 + $j--; //#26943 + var _ER = $a(); //#26943 + $_[$k[--$j]] = _ER; //#26943 + var _ET = $_.colors; //#26945 + $_.palette = new Map; //#26945 + var _EU = $_.colors; //#26946 + var _EV = 64; //#26946 + if (64 > _EU) { //#26946 + var _ = _EU; //#26946 + _EU = _EV; //#26946 + _EV = _; //#26946 + } //#26946 + $_.palettelayout = $a(_EV); //#26946 + $_.i = 0; //#26947 + $_.j = 8; //#26947 + $forall($_.rvals, function() { //#26981 + $_.r = $k[--$j]; //#26949 + $forall($_.gvals, function() { //#26980 + $_.g = $k[--$j]; //#26951 + $forall($_.bvals, function() { //#26979 + $_.b = $k[--$j]; //#26953 + var _Eh = $strcpy($s(6), "000000"); //#26955 + var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26955 + $puti(_Eh, 6 - _Ej.length, _Ej); //#26955 + $k[$j++] = _Eh; //#26957 + $k[$j++] = false; //#26957 + if ($eq(_Eh, "000000")) { //#26957 + $_.ki = $_.i; //#26957 + $j--; //#26957 + $k[$j++] = true; //#26957 + } //#26957 + var _El = $k[--$j]; //#26958 + var _Em = $k[--$j]; //#26958 + $k[$j++] = _Em; //#26958 + $k[$j++] = _El; //#26958 + if ($eq(_Em, "0000FF")) { //#26958 + $_.bi = $_.i; //#26958 + $j--; //#26958 + $k[$j++] = true; //#26958 + } //#26958 + var _Eo = $k[--$j]; //#26959 + var _Ep = $k[--$j]; //#26959 + $k[$j++] = _Ep; //#26959 + $k[$j++] = _Eo; //#26959 + if ($eq(_Ep, "00FF00")) { //#26959 + $_.gi = $_.i; //#26959 + $j--; //#26959 + $k[$j++] = true; //#26959 + } //#26959 + var _Er = $k[--$j]; //#26960 + var _Es = $k[--$j]; //#26960 + $k[$j++] = _Es; //#26960 + $k[$j++] = _Er; //#26960 + if ($eq(_Es, "00FFFF")) { //#26960 + $_.ci = $_.i; //#26960 + $j--; //#26960 + $k[$j++] = true; //#26960 + } //#26960 + var _Eu = $k[--$j]; //#26961 + var _Ev = $k[--$j]; //#26961 + $k[$j++] = _Ev; //#26961 + $k[$j++] = _Eu; //#26961 + if ($eq(_Ev, "FF0000")) { //#26961 + $_.ri = $_.i; //#26961 + $j--; //#26961 + $k[$j++] = true; //#26961 + } //#26961 + var _Ex = $k[--$j]; //#26962 + var _Ey = $k[--$j]; //#26962 + $k[$j++] = _Ey; //#26962 + $k[$j++] = _Ex; //#26962 + if ($eq(_Ey, "FF00FF")) { //#26962 + $_.mi = $_.i; //#26962 + $j--; //#26962 + $k[$j++] = true; //#26962 + } //#26962 + var _F0 = $k[--$j]; //#26963 + var _F1 = $k[--$j]; //#26963 + $k[$j++] = _F1; //#26963 + $k[$j++] = _F0; //#26963 + if ($eq(_F1, "FFFF00")) { //#26963 + $_.yi = $_.i; //#26963 + $j--; //#26963 + $k[$j++] = true; //#26963 + } //#26963 + var _F3 = $k[--$j]; //#26964 + var _F4 = $k[--$j]; //#26964 + $k[$j++] = _F4; //#26964 + $k[$j++] = _F3; //#26964 + if ($eq(_F4, "FFFFFF")) { //#26964 + $_.wi = $_.i; //#26964 + $j--; //#26964 + $k[$j++] = true; //#26964 + } //#26964 + if ($nt($k[--$j])) { //#26976 + if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26975 + $put($_.palettelayout, $_.j, $_.i); //#26973 + $_.j = $_.j + 1; //#26974 + } //#26974 + } //#26974 + $put($_.palette, $_.i, $k[--$j]); //#26977 + $_.i = $_.i + 1; //#26978 + }); //#26978 + }); //#26978 + }); //#26978 + $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26982 + $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26983 + } //#26983 + $k[$j++] = Infinity; //#26987 + for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26987 + $k[$j++] = -1; //#26987 + } //#26987 + $_.pixs = $a(); //#26987 $_.jmv = function() { - var _Ft = $k[--$j]; //#26673 - var _Fu = $k[--$j]; //#26673 - $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26673 - }; //#26673 - if (!$_.slave) { //#26703 - $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26683 - $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#26689 - } else { //#26703 - $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#26697 - $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#26703 - } //#26703 - for (var _GY = 0; _GY <= 4; _GY += 1) { //#26715 - $_.y = _GY; //#26706 - for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#26714 - $_.x = _GZ; //#26708 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#26709 - $k[$j++] = $_.pixs; //#26710 - $k[$j++] = $_.x + 1; //#26710 - $k[$j++] = $_.y + 1; //#26710 - $_.jmv(); //#26710 - var _Gm = $k[--$j]; //#26710 - $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#26710 - $k[$j++] = $_.pixs; //#26711 - $k[$j++] = $_.x + 1; //#26711 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26711 - $_.jmv(); //#26711 - var _Gw = $k[--$j]; //#26711 - $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#26711 - $k[$j++] = $_.pixs; //#26712 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26712 - $k[$j++] = $_.y + 1; //#26712 - $_.jmv(); //#26712 - var _H6 = $k[--$j]; //#26712 - $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#26712 - $k[$j++] = $_.pixs; //#26713 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26713 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26713 - $_.jmv(); //#26713 - var _HH = $k[--$j]; //#26713 - $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#26713 - } //#26713 - } //#26713 - $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#26722 - $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#26727 - $_.num = (~~Math.round($_.cols / 16)) - 1; //#26728 - $_.algnrpos = $a([3, 17]); //#26729 - if ($_.num > 0) { //#26732 - $k[$j++] = Infinity; //#26731 - for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#26731 - $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#26731 - } //#26731 - $_.algnrpos = $a(); //#26731 - } //#26731 - $_.num = (~~Math.round($_.rows / 16)) - 1; //#26733 - $_.algncpos = $a([3, 17]); //#26734 - if ($_.num > 0) { //#26737 - $k[$j++] = Infinity; //#26736 - for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#26736 - $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#26736 - } //#26736 - $_.algncpos = $a(); //#26736 - } //#26736 + var _Ft = $k[--$j]; //#26988 + var _Fu = $k[--$j]; //#26988 + $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26988 + }; //#26988 + if (!$_.slave) { //#27018 + $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26998 + $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#27004 + } else { //#27018 + $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#27012 + $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#27018 + } //#27018 + for (var _GY = 0; _GY <= 4; _GY += 1) { //#27030 + $_.y = _GY; //#27021 + for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#27029 + $_.x = _GZ; //#27023 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#27024 + $k[$j++] = $_.pixs; //#27025 + $k[$j++] = $_.x + 1; //#27025 + $k[$j++] = $_.y + 1; //#27025 + $_.jmv(); //#27025 + var _Gm = $k[--$j]; //#27025 + $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#27025 + $k[$j++] = $_.pixs; //#27026 + $k[$j++] = $_.x + 1; //#27026 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27026 + $_.jmv(); //#27026 + var _Gw = $k[--$j]; //#27026 + $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#27026 + $k[$j++] = $_.pixs; //#27027 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27027 + $k[$j++] = $_.y + 1; //#27027 + $_.jmv(); //#27027 + var _H6 = $k[--$j]; //#27027 + $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#27027 + $k[$j++] = $_.pixs; //#27028 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27028 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27028 + $_.jmv(); //#27028 + var _HH = $k[--$j]; //#27028 + $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#27028 + } //#27028 + } //#27028 + $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#27037 + $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#27042 + $_.num = (~~Math.round($_.cols / 16)) - 1; //#27043 + $_.algnrpos = $a([3, 17]); //#27044 + if ($_.num > 0) { //#27047 + $k[$j++] = Infinity; //#27046 + for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#27046 + $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#27046 + } //#27046 + $_.algnrpos = $a(); //#27046 + } //#27046 + $_.num = (~~Math.round($_.rows / 16)) - 1; //#27048 + $_.algncpos = $a([3, 17]); //#27049 + if ($_.num > 0) { //#27052 + $k[$j++] = Infinity; //#27051 + for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#27051 + $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#27051 + } //#27051 + $_.algncpos = $a(); //#27051 + } //#27051 $_.putalgnpat = function() { - $_.pp = $k[--$j]; //#26739 - $_.py = $k[--$j]; //#26740 - $_.px = $k[--$j]; //#26741 - for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#26748 - $_.pb = _I0; //#26743 - for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#26747 - $_.pa = _I1; //#26745 - $k[$j++] = $_.pixs; //#26746 - $k[$j++] = $f($_.px + $_.pa); //#26746 - $k[$j++] = $f($_.py + $_.pb); //#26746 - $_.jmv(); //#26746 - var _IC = $k[--$j]; //#26746 - $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#26746 - } //#26746 - } //#26746 - }; //#26746 - for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#26760 - $_.j = _IG; //#26751 - $_.y = $get($_.algncpos, $_.j); //#26752 - for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#26759 - $_.i = _IM; //#26754 - $_.x = $get($_.algnrpos, $_.i); //#26755 - $k[$j++] = $_.pixs; //#26756 - $k[$j++] = $_.x; //#26756 - $k[$j++] = $_.y; //#26756 - $_.jmv(); //#26756 - var _IT = $k[--$j]; //#26756 - if ($get($k[--$j], _IT) == -1) { //#26758 - $k[$j++] = $f($_.x - 1); //#26757 - $k[$j++] = $f($_.y - 1); //#26757 - if ((($_.i + $_.j) % 2) == 0) { //#26757 - $k[$j++] = $_.algnpat0; //#26757 - } else { //#26757 - $k[$j++] = $_.algnpat1; //#26757 - } //#26757 - $_.putalgnpat(); //#26757 - } //#26757 - } //#26757 - } //#26757 - if (!$_.slave) { //#26812 - var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#26771 - for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#26775 - $aload($get(_JL, _JM)); //#26773 - $_.y = $k[--$j]; //#26773 - $_.x = $k[--$j]; //#26773 - $k[$j++] = $a([$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, -$_.y]); //#26774 - $k[$j++] = $a([$_.x, -$_.y]); //#26774 - } //#26774 - $astore($a(176)); //#26776 - $_.metadatamap = $k[--$j]; //#26776 - $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#26781 - $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#26786 - } else { //#26812 - $k[$j++] = Infinity; //#26799 - for (var _KD = 1; _KD <= 19; _KD += 1) { //#26796 - $_.i = _KD; //#26794 - $k[$j++] = $a([0, $_.i]); //#26795 - $k[$j++] = $a([1, $_.i]); //#26795 - } //#26795 - for (var _KI = 5; _KI <= 12; _KI += 1) { //#26800 - $_.i = _KI; //#26798 - $k[$j++] = $a([2, $_.i]); //#26799 - $k[$j++] = $a([3, $_.i]); //#26799 - } //#26799 - $_.metadatamap = $a(); //#26799 - $k[$j++] = Infinity; //#26807 - for (var _KO = 5; _KO <= 12; _KO += 1) { //#26804 - $k[$j++] = _KO; //#26804 - $k[$j++] = Infinity; //#26804 - var _KP = $k[--$j]; //#26804 - var _KQ = $k[--$j]; //#26804 - $k[$j++] = _KP; //#26804 - $k[$j++] = 4; //#26804 - $k[$j++] = _KQ; //#26804 - var _KR = $a(); //#26804 - $k[$j++] = _KR; //#26804 - } //#26804 - for (var _KS = 12; _KS >= 5; _KS -= 1) { //#26805 - $k[$j++] = _KS; //#26805 - $k[$j++] = Infinity; //#26805 - var _KT = $k[--$j]; //#26805 - var _KU = $k[--$j]; //#26805 - $k[$j++] = _KT; //#26805 - $k[$j++] = 5; //#26805 - $k[$j++] = _KU; //#26805 - var _KV = $a(); //#26805 - $k[$j++] = _KV; //#26805 - } //#26805 - for (var _KW = 5; _KW <= 12; _KW += 1) { //#26806 - $k[$j++] = _KW; //#26806 - $k[$j++] = Infinity; //#26806 - var _KX = $k[--$j]; //#26806 - var _KY = $k[--$j]; //#26806 - $k[$j++] = _KX; //#26806 - $k[$j++] = 6; //#26806 - $k[$j++] = _KY; //#26806 - var _KZ = $a(); //#26806 - $k[$j++] = _KZ; //#26806 - } //#26806 - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#26807 - $k[$j++] = _Ka; //#26807 - $k[$j++] = Infinity; //#26807 - var _Kb = $k[--$j]; //#26807 - var _Kc = $k[--$j]; //#26807 - $k[$j++] = _Kb; //#26807 - $k[$j++] = 7; //#26807 - $k[$j++] = _Kc; //#26807 - var _Kd = $a(); //#26807 - $k[$j++] = _Kd; //#26807 - } //#26807 - $_.palettemap1 = $a(); //#26807 - $k[$j++] = Infinity; //#26811 - var _Kf = $_.palettemap1; //#26811 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#26811 - $k[$j++] = $get(_Kf, _Kg); //#26811 - $k[$j++] = Infinity; //#26811 - var _Kj = $k[--$j]; //#26811 - var _Kk = $k[--$j]; //#26811 - $k[$j++] = _Kj; //#26811 - $aload(_Kk); //#26811 - var _Kl = $k[--$j]; //#26811 - var _Km = $k[--$j]; //#26811 - $k[$j++] = -_Km; //#26811 - $k[$j++] = -_Kl; //#26811 - var _Kn = $a(); //#26811 - $k[$j++] = _Kn; //#26811 - } //#26811 - $_.palettemap2 = $a(); //#26811 - } //#26812 - var _Kp = $_.metadatamap; //#26817 - for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#26821 - var _Ks = $get(_Kp, _Kq); //#26821 - var _Kt = $get(_Ks, 0); //#26818 - $k[$j++] = _Ks; //#26818 - $k[$j++] = _Kt; //#26818 - if (_Kt < 0) { //#26818 - var _Kv = $k[--$j]; //#26818 - var _Kw = $k[--$j]; //#26818 - $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#26818 - $k[$j++] = _Kw; //#26818 - } else { //#26818 - $j--; //#26818 - } //#26818 - var _Kx = $k[--$j]; //#26819 - var _Ky = $get(_Kx, 1); //#26819 - $k[$j++] = _Kx; //#26819 - $k[$j++] = _Ky; //#26819 - if (_Ky < 0) { //#26819 - var _L0 = $k[--$j]; //#26819 - var _L1 = $k[--$j]; //#26819 - $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#26819 - $k[$j++] = _L1; //#26819 - } else { //#26819 - $j--; //#26819 - } //#26819 - $j--; //#26820 - } //#26820 - var _L2 = $_.palettemap1; //#26822 - for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#26826 - var _L5 = $get(_L2, _L3); //#26826 - var _L6 = $get(_L5, 0); //#26823 - $k[$j++] = _L5; //#26823 - $k[$j++] = _L6; //#26823 - if (_L6 < 0) { //#26823 - var _L8 = $k[--$j]; //#26823 - var _L9 = $k[--$j]; //#26823 - $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#26823 - $k[$j++] = _L9; //#26823 - } else { //#26823 - $j--; //#26823 - } //#26823 - var _LA = $k[--$j]; //#26824 - var _LB = $get(_LA, 1); //#26824 - $k[$j++] = _LA; //#26824 - $k[$j++] = _LB; //#26824 - if (_LB < 0) { //#26824 - var _LD = $k[--$j]; //#26824 - var _LE = $k[--$j]; //#26824 - $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#26824 - $k[$j++] = _LE; //#26824 - } else { //#26824 - $j--; //#26824 - } //#26824 - $j--; //#26825 - } //#26825 - var _LF = $_.palettemap2; //#26827 - for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#26831 - var _LI = $get(_LF, _LG); //#26831 - var _LJ = $get(_LI, 0); //#26828 - $k[$j++] = _LI; //#26828 - $k[$j++] = _LJ; //#26828 - if (_LJ < 0) { //#26828 - var _LL = $k[--$j]; //#26828 - var _LM = $k[--$j]; //#26828 - $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#26828 - $k[$j++] = _LM; //#26828 - } else { //#26828 - $j--; //#26828 - } //#26828 - var _LN = $k[--$j]; //#26829 - var _LO = $get(_LN, 1); //#26829 - $k[$j++] = _LN; //#26829 - $k[$j++] = _LO; //#26829 - if (_LO < 0) { //#26829 - var _LQ = $k[--$j]; //#26829 - var _LR = $k[--$j]; //#26829 - $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#26829 - $k[$j++] = _LR; //#26829 - } else { //#26829 - $j--; //#26829 - } //#26829 - $j--; //#26830 - } //#26830 - for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#26836 - $k[$j++] = $_.pixs; //#26835 - $aload($get($_.metadatamap, _LU)); //#26835 - $_.jmv(); //#26835 - var _LY = $k[--$j]; //#26835 - $put($k[--$j], _LY, 0); //#26835 - } //#26835 - if (!$_.slave) { //#26849 - var _Lb = $_.colors; //#26841 - var _Lc = 16; //#26841 - if (16 > _Lb) { //#26841 - var _ = _Lb; //#26841 - _Lb = _Lc; //#26841 - _Lc = _; //#26841 - } //#26841 - for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#26846 - $_.i = _Le; //#26842 - var _Lh = $get($_.palettelayout, $_.i); //#26843 - $k[$j++] = _Lh; //#26844 - $k[$j++] = $_.pixs; //#26844 - $k[$j++] = _Lh; //#26844 - $aload($get($_.palettemap1, $_.i)); //#26844 - $_.jmv(); //#26844 - var _Lm = $k[--$j]; //#26844 - var _Ln = $k[--$j]; //#26844 - $put($k[--$j], _Lm, _Ln); //#26844 - var _Lq = $k[--$j]; //#26845 - $k[$j++] = $_.pixs; //#26845 - $k[$j++] = _Lq; //#26845 - $aload($get($_.palettemap2, $_.i)); //#26845 - $_.jmv(); //#26845 - var _Lu = $k[--$j]; //#26845 - var _Lv = $k[--$j]; //#26845 - $put($k[--$j], _Lu, _Lv); //#26845 - } //#26845 - $_.i = 16; //#26847 - } else { //#26849 - $_.i = 0; //#26849 - } //#26849 - $_.j = $_.nummetamodules; //#26853 - for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#26863 - $_.i = _M1; //#26855 - var _M4 = $get($_.palettelayout, $_.i); //#26856 - $k[$j++] = _M4; //#26857 - $k[$j++] = $_.pixs; //#26857 - $k[$j++] = _M4; //#26857 - $aload($get($_.metadatamap, $_.j)); //#26857 - $_.jmv(); //#26857 - var _M9 = $k[--$j]; //#26857 - var _MA = $k[--$j]; //#26857 - $put($k[--$j], _M9, _MA); //#26857 - var _MD = $k[--$j]; //#26858 - $k[$j++] = $_.pixs; //#26858 - $k[$j++] = _MD; //#26858 - $aload($get($_.metadatamap, $f($_.j + 2))); //#26858 - $_.jmv(); //#26858 - var _MH = $k[--$j]; //#26858 - var _MI = $k[--$j]; //#26858 - $put($k[--$j], _MH, _MI); //#26858 - var _MM = $get($_.palettelayout, $_.i + 1); //#26859 - $k[$j++] = _MM; //#26860 - $k[$j++] = $_.pixs; //#26860 - $k[$j++] = _MM; //#26860 - $aload($get($_.metadatamap, $f($_.j + 1))); //#26860 - $_.jmv(); //#26860 - var _MR = $k[--$j]; //#26860 - var _MS = $k[--$j]; //#26860 - $put($k[--$j], _MR, _MS); //#26860 - var _MV = $k[--$j]; //#26861 - $k[$j++] = $_.pixs; //#26861 - $k[$j++] = _MV; //#26861 - $aload($get($_.metadatamap, $f($_.j + 3))); //#26861 - $_.jmv(); //#26861 - var _MZ = $k[--$j]; //#26861 - var _Ma = $k[--$j]; //#26861 - $put($k[--$j], _MZ, _Ma); //#26861 - $_.j = $f($_.j + 4); //#26862 - } //#26862 + $_.pp = $k[--$j]; //#27054 + $_.py = $k[--$j]; //#27055 + $_.px = $k[--$j]; //#27056 + for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#27063 + $_.pb = _I0; //#27058 + for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#27062 + $_.pa = _I1; //#27060 + $k[$j++] = $_.pixs; //#27061 + $k[$j++] = $f($_.px + $_.pa); //#27061 + $k[$j++] = $f($_.py + $_.pb); //#27061 + $_.jmv(); //#27061 + var _IC = $k[--$j]; //#27061 + $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#27061 + } //#27061 + } //#27061 + }; //#27061 + for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#27075 + $_.j = _IG; //#27066 + $_.y = $get($_.algncpos, $_.j); //#27067 + for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#27074 + $_.i = _IM; //#27069 + $_.x = $get($_.algnrpos, $_.i); //#27070 + $k[$j++] = $_.pixs; //#27071 + $k[$j++] = $_.x; //#27071 + $k[$j++] = $_.y; //#27071 + $_.jmv(); //#27071 + var _IT = $k[--$j]; //#27071 + if ($get($k[--$j], _IT) == -1) { //#27073 + $k[$j++] = $f($_.x - 1); //#27072 + $k[$j++] = $f($_.y - 1); //#27072 + if ((($_.i + $_.j) % 2) == 0) { //#27072 + $k[$j++] = $_.algnpat0; //#27072 + } else { //#27072 + $k[$j++] = $_.algnpat1; //#27072 + } //#27072 + $_.putalgnpat(); //#27072 + } //#27072 + } //#27072 + } //#27072 + if (!$_.slave) { //#27127 + var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#27086 + for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#27090 + $aload($get(_JL, _JM)); //#27088 + $_.y = $k[--$j]; //#27088 + $_.x = $k[--$j]; //#27088 + $k[$j++] = $a([$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, -$_.y]); //#27089 + $k[$j++] = $a([$_.x, -$_.y]); //#27089 + } //#27089 + $astore($a(176)); //#27091 + $_.metadatamap = $k[--$j]; //#27091 + $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#27096 + $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#27101 + } else { //#27127 + $k[$j++] = Infinity; //#27107 + for (var _KD = 1; _KD <= 19; _KD += 1) { //#27111 + $_.i = _KD; //#27109 + $k[$j++] = $a([0, $_.i]); //#27110 + $k[$j++] = $a([1, $_.i]); //#27110 + } //#27110 + for (var _KI = 5; _KI <= 12; _KI += 1) { //#27115 + $_.i = _KI; //#27113 + $k[$j++] = $a([2, $_.i]); //#27114 + $k[$j++] = $a([3, $_.i]); //#27114 + } //#27114 + $_.metadatamap = $a(); //#27114 + $k[$j++] = Infinity; //#27118 + for (var _KO = 5; _KO <= 12; _KO += 1) { //#27119 + $k[$j++] = _KO; //#27119 + $k[$j++] = Infinity; //#27119 + var _KP = $k[--$j]; //#27119 + var _KQ = $k[--$j]; //#27119 + $k[$j++] = _KP; //#27119 + $k[$j++] = 4; //#27119 + $k[$j++] = _KQ; //#27119 + var _KR = $a(); //#27119 + $k[$j++] = _KR; //#27119 + } //#27119 + for (var _KS = 12; _KS >= 5; _KS -= 1) { //#27120 + $k[$j++] = _KS; //#27120 + $k[$j++] = Infinity; //#27120 + var _KT = $k[--$j]; //#27120 + var _KU = $k[--$j]; //#27120 + $k[$j++] = _KT; //#27120 + $k[$j++] = 5; //#27120 + $k[$j++] = _KU; //#27120 + var _KV = $a(); //#27120 + $k[$j++] = _KV; //#27120 + } //#27120 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#27121 + $k[$j++] = _KW; //#27121 + $k[$j++] = Infinity; //#27121 + var _KX = $k[--$j]; //#27121 + var _KY = $k[--$j]; //#27121 + $k[$j++] = _KX; //#27121 + $k[$j++] = 6; //#27121 + $k[$j++] = _KY; //#27121 + var _KZ = $a(); //#27121 + $k[$j++] = _KZ; //#27121 + } //#27121 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#27122 + $k[$j++] = _Ka; //#27122 + $k[$j++] = Infinity; //#27122 + var _Kb = $k[--$j]; //#27122 + var _Kc = $k[--$j]; //#27122 + $k[$j++] = _Kb; //#27122 + $k[$j++] = 7; //#27122 + $k[$j++] = _Kc; //#27122 + var _Kd = $a(); //#27122 + $k[$j++] = _Kd; //#27122 + } //#27122 + $_.palettemap1 = $a(); //#27122 + $k[$j++] = Infinity; //#27125 + var _Kf = $_.palettemap1; //#27126 + for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#27126 + $k[$j++] = $get(_Kf, _Kg); //#27126 + $k[$j++] = Infinity; //#27126 + var _Kj = $k[--$j]; //#27126 + var _Kk = $k[--$j]; //#27126 + $k[$j++] = _Kj; //#27126 + $aload(_Kk); //#27126 + var _Kl = $k[--$j]; //#27126 + var _Km = $k[--$j]; //#27126 + $k[$j++] = -_Km; //#27126 + $k[$j++] = -_Kl; //#27126 + var _Kn = $a(); //#27126 + $k[$j++] = _Kn; //#27126 + } //#27126 + $_.palettemap2 = $a(); //#27126 + } //#27127 + var _Kp = $_.metadatamap; //#27132 + for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#27136 + var _Ks = $get(_Kp, _Kq); //#27136 + var _Kt = $get(_Ks, 0); //#27133 + $k[$j++] = _Ks; //#27133 + $k[$j++] = _Kt; //#27133 + if (_Kt < 0) { //#27133 + var _Kv = $k[--$j]; //#27133 + var _Kw = $k[--$j]; //#27133 + $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#27133 + $k[$j++] = _Kw; //#27133 + } else { //#27133 + $j--; //#27133 + } //#27133 + var _Kx = $k[--$j]; //#27134 + var _Ky = $get(_Kx, 1); //#27134 + $k[$j++] = _Kx; //#27134 + $k[$j++] = _Ky; //#27134 + if (_Ky < 0) { //#27134 + var _L0 = $k[--$j]; //#27134 + var _L1 = $k[--$j]; //#27134 + $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#27134 + $k[$j++] = _L1; //#27134 + } else { //#27134 + $j--; //#27134 + } //#27134 + $j--; //#27135 + } //#27135 + var _L2 = $_.palettemap1; //#27137 + for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#27141 + var _L5 = $get(_L2, _L3); //#27141 + var _L6 = $get(_L5, 0); //#27138 + $k[$j++] = _L5; //#27138 + $k[$j++] = _L6; //#27138 + if (_L6 < 0) { //#27138 + var _L8 = $k[--$j]; //#27138 + var _L9 = $k[--$j]; //#27138 + $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#27138 + $k[$j++] = _L9; //#27138 + } else { //#27138 + $j--; //#27138 + } //#27138 + var _LA = $k[--$j]; //#27139 + var _LB = $get(_LA, 1); //#27139 + $k[$j++] = _LA; //#27139 + $k[$j++] = _LB; //#27139 + if (_LB < 0) { //#27139 + var _LD = $k[--$j]; //#27139 + var _LE = $k[--$j]; //#27139 + $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#27139 + $k[$j++] = _LE; //#27139 + } else { //#27139 + $j--; //#27139 + } //#27139 + $j--; //#27140 + } //#27140 + var _LF = $_.palettemap2; //#27142 + for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#27146 + var _LI = $get(_LF, _LG); //#27146 + var _LJ = $get(_LI, 0); //#27143 + $k[$j++] = _LI; //#27143 + $k[$j++] = _LJ; //#27143 + if (_LJ < 0) { //#27143 + var _LL = $k[--$j]; //#27143 + var _LM = $k[--$j]; //#27143 + $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#27143 + $k[$j++] = _LM; //#27143 + } else { //#27143 + $j--; //#27143 + } //#27143 + var _LN = $k[--$j]; //#27144 + var _LO = $get(_LN, 1); //#27144 + $k[$j++] = _LN; //#27144 + $k[$j++] = _LO; //#27144 + if (_LO < 0) { //#27144 + var _LQ = $k[--$j]; //#27144 + var _LR = $k[--$j]; //#27144 + $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#27144 + $k[$j++] = _LR; //#27144 + } else { //#27144 + $j--; //#27144 + } //#27144 + $j--; //#27145 + } //#27145 + for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#27151 + $k[$j++] = $_.pixs; //#27150 + $aload($get($_.metadatamap, _LU)); //#27150 + $_.jmv(); //#27150 + var _LY = $k[--$j]; //#27150 + $put($k[--$j], _LY, 0); //#27150 + } //#27150 + if (!$_.slave) { //#27164 + var _Lb = $_.colors; //#27156 + var _Lc = 16; //#27156 + if (16 > _Lb) { //#27156 + var _ = _Lb; //#27156 + _Lb = _Lc; //#27156 + _Lc = _; //#27156 + } //#27156 + for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#27161 + $_.i = _Le; //#27157 + var _Lh = $get($_.palettelayout, $_.i); //#27158 + $k[$j++] = _Lh; //#27159 + $k[$j++] = $_.pixs; //#27159 + $k[$j++] = _Lh; //#27159 + $aload($get($_.palettemap1, $_.i)); //#27159 + $_.jmv(); //#27159 + var _Lm = $k[--$j]; //#27159 + var _Ln = $k[--$j]; //#27159 + $put($k[--$j], _Lm, _Ln); //#27159 + var _Lq = $k[--$j]; //#27160 + $k[$j++] = $_.pixs; //#27160 + $k[$j++] = _Lq; //#27160 + $aload($get($_.palettemap2, $_.i)); //#27160 + $_.jmv(); //#27160 + var _Lu = $k[--$j]; //#27160 + var _Lv = $k[--$j]; //#27160 + $put($k[--$j], _Lu, _Lv); //#27160 + } //#27160 + $_.i = 16; //#27162 + } else { //#27164 + $_.i = 0; //#27164 + } //#27164 + $_.j = $_.nummetamodules; //#27168 + for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#27178 + $_.i = _M1; //#27170 + var _M4 = $get($_.palettelayout, $_.i); //#27171 + $k[$j++] = _M4; //#27172 + $k[$j++] = $_.pixs; //#27172 + $k[$j++] = _M4; //#27172 + $aload($get($_.metadatamap, $_.j)); //#27172 + $_.jmv(); //#27172 + var _M9 = $k[--$j]; //#27172 + var _MA = $k[--$j]; //#27172 + $put($k[--$j], _M9, _MA); //#27172 + var _MD = $k[--$j]; //#27173 + $k[$j++] = $_.pixs; //#27173 + $k[$j++] = _MD; //#27173 + $aload($get($_.metadatamap, $f($_.j + 2))); //#27173 + $_.jmv(); //#27173 + var _MH = $k[--$j]; //#27173 + var _MI = $k[--$j]; //#27173 + $put($k[--$j], _MH, _MI); //#27173 + var _MM = $get($_.palettelayout, $_.i + 1); //#27174 + $k[$j++] = _MM; //#27175 + $k[$j++] = $_.pixs; //#27175 + $k[$j++] = _MM; //#27175 + $aload($get($_.metadatamap, $f($_.j + 1))); //#27175 + $_.jmv(); //#27175 + var _MR = $k[--$j]; //#27175 + var _MS = $k[--$j]; //#27175 + $put($k[--$j], _MR, _MS); //#27175 + var _MV = $k[--$j]; //#27176 + $k[$j++] = $_.pixs; //#27176 + $k[$j++] = _MV; //#27176 + $aload($get($_.metadatamap, $f($_.j + 3))); //#27176 + $_.jmv(); //#27176 + var _MZ = $k[--$j]; //#27176 + var _Ma = $k[--$j]; //#27176 + $put($k[--$j], _MZ, _Ma); //#27176 + $_.j = $f($_.j + 4); //#27177 + } //#27177 var _N2 = $a([function() { - var _Md = $k[--$j]; //#26867 - var _Me = $k[--$j]; //#26867 - $k[$j++] = $f(_Me + _Md) % $_.colors; //#26867 + var _Md = $k[--$j]; //#27182 + var _Me = $k[--$j]; //#27182 + $k[$j++] = $f(_Me + _Md) % $_.colors; //#27182 }, function() { - $j--; //#26868 - var _Mh = $k[--$j]; //#26868 - $k[$j++] = _Mh % $_.colors; //#26868 + $j--; //#27183 + var _Mh = $k[--$j]; //#27183 + $k[$j++] = _Mh % $_.colors; //#27183 }, function() { - var _Mi = $k[--$j]; //#26869 - var _Mj = $k[--$j]; //#26869 - $k[$j++] = _Mi; //#26869 - $k[$j++] = _Mj; //#26869 - $j--; //#26869 - var _Ml = $k[--$j]; //#26869 - $k[$j++] = _Ml % $_.colors; //#26869 + var _Mi = $k[--$j]; //#27184 + var _Mj = $k[--$j]; //#27184 + $k[$j++] = _Mi; //#27184 + $k[$j++] = _Mj; //#27184 + $j--; //#27184 + var _Ml = $k[--$j]; //#27184 + $k[$j++] = _Ml % $_.colors; //#27184 }, function() { - var _Mm = $k[--$j]; //#26870 - var _Mn = $k[--$j]; //#26870 - $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#26870 + var _Mm = $k[--$j]; //#27185 + var _Mn = $k[--$j]; //#27185 + $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#27185 }, function() { - var _Mp = $k[--$j]; //#26871 - var _Mq = $k[--$j]; //#26871 - $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#26871 + var _Mp = $k[--$j]; //#27186 + var _Mq = $k[--$j]; //#27186 + $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#27186 }, function() { - var _Ms = $k[--$j]; //#26872 - var _Mu = $f($k[--$j] + _Ms); //#26872 - $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#26872 + var _Ms = $k[--$j]; //#27187 + var _Mu = $f($k[--$j] + _Ms); //#27187 + $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#27187 }, function() { - var _Mw = $k[--$j]; //#26873 - var _Mx = $k[--$j]; //#26873 - $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#26873 + var _Mw = $k[--$j]; //#27188 + var _Mx = $k[--$j]; //#27188 + $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#27188 }, function() { - var _Mz = $k[--$j]; //#26874 - var _N0 = $k[--$j]; //#26874 - $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#26874 - }]); //#26874 - $_.maskfuncs = _N2; //#26875 - if ($_.mask != -1) { //#26879 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#26877 - $_.bestmaskval = $_.mask; //#26878 - } //#26878 - $_.masks = $a($_.maskfuncs.length); //#26880 - for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#26893 - $_.m = _ND; //#26882 - $_.mask = $a($_.rows * $_.cols); //#26883 - for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#26891 - $_.j = _NJ; //#26885 - for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#26890 - $_.i = _NM; //#26887 - $k[$j++] = $_.pixs; //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 - $_.jmv(); //#26888 - var _NQ = $k[--$j]; //#26888 - if ($get($k[--$j], _NQ) == -1) { //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 + var _Mz = $k[--$j]; //#27189 + var _N0 = $k[--$j]; //#27189 + $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#27189 + }]); //#27189 + $_.maskfuncs = _N2; //#27190 + if ($_.mask != -1) { //#27194 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#27192 + $_.bestmaskval = $_.mask; //#27193 + } //#27193 + $_.masks = $a($_.maskfuncs.length); //#27195 + for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#27208 + $_.m = _ND; //#27197 + $_.mask = $a($_.rows * $_.cols); //#27198 + for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#27206 + $_.j = _NJ; //#27200 + for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#27205 + $_.i = _NM; //#27202 + $k[$j++] = $_.pixs; //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 + $_.jmv(); //#27203 + var _NQ = $k[--$j]; //#27203 + if ($get($k[--$j], _NQ) == -1) { //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#26888 - } else { //#26888 - $k[$j++] = 0; //#26888 - } //#26888 - $k[$j++] = $_.mask; //#26889 - $k[$j++] = $_.i; //#26889 - $k[$j++] = $_.j; //#26889 - $_.jmv(); //#26889 - var _Nb = $k[--$j]; //#26889 - var _Nc = $k[--$j]; //#26889 - $put(_Nc, _Nb, $k[--$j]); //#26889 - } //#26889 - } //#26889 - $put($_.masks, $_.m, $_.mask); //#26892 - } //#26892 - $_.posx = 0; //#26896 - $_.posy = 0; //#26896 - $_.i = 0; //#26897 - for (;;) { //#26907 - if ($_.posx == $_.cols) { //#26899 - break; //#26899 - } //#26899 - $k[$j++] = $_.pixs; //#26900 - $k[$j++] = $_.posx; //#26900 - $k[$j++] = $_.posy; //#26900 - $_.jmv(); //#26900 - var _Nm = $k[--$j]; //#26900 - if ($get($k[--$j], _Nm) == -1) { //#26904 - var _Ns = $geti($_.bits, $_.i, $_.databpm); //#26901 - $k[$j++] = 0; //#26901 - for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#26901 - var _Nw = $k[--$j]; //#26901 - $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#26901 - } //#26901 - var _Nx = $k[--$j]; //#26901 - $k[$j++] = ~~(_Nx / 2); //#26902 - $k[$j++] = $_.pixs; //#26902 - $k[$j++] = $_.posx; //#26902 - $k[$j++] = $_.posy; //#26902 - $_.jmv(); //#26902 - var _O1 = $k[--$j]; //#26902 - var _O2 = $k[--$j]; //#26902 - $put(_O2, _O1, $k[--$j]); //#26902 - $_.i = $_.i + $_.databpm; //#26903 - } //#26903 - $_.posy = $_.posy + 1; //#26905 - if ($_.posy == $_.rows) { //#26906 - $_.posy = 0; //#26906 - $_.posx = $_.posx + 1; //#26906 - } //#26906 - } //#26906 + } //#27203 + } else { //#27203 + $k[$j++] = 0; //#27203 + } //#27203 + $k[$j++] = $_.mask; //#27204 + $k[$j++] = $_.i; //#27204 + $k[$j++] = $_.j; //#27204 + $_.jmv(); //#27204 + var _Nb = $k[--$j]; //#27204 + var _Nc = $k[--$j]; //#27204 + $put(_Nc, _Nb, $k[--$j]); //#27204 + } //#27204 + } //#27204 + $put($_.masks, $_.m, $_.mask); //#27207 + } //#27207 + $_.posx = 0; //#27211 + $_.posy = 0; //#27211 + $_.i = 0; //#27212 + for (;;) { //#27222 + if ($_.posx == $_.cols) { //#27214 + break; //#27214 + } //#27214 + $k[$j++] = $_.pixs; //#27215 + $k[$j++] = $_.posx; //#27215 + $k[$j++] = $_.posy; //#27215 + $_.jmv(); //#27215 + var _Nm = $k[--$j]; //#27215 + if ($get($k[--$j], _Nm) == -1) { //#27219 + var _Ns = $geti($_.bits, $_.i, $_.databpm); //#27216 + $k[$j++] = 0; //#27216 + for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#27216 + var _Nw = $k[--$j]; //#27216 + $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#27216 + } //#27216 + var _Nx = $k[--$j]; //#27216 + $k[$j++] = ~~(_Nx / 2); //#27217 + $k[$j++] = $_.pixs; //#27217 + $k[$j++] = $_.posx; //#27217 + $k[$j++] = $_.posy; //#27217 + $_.jmv(); //#27217 + var _O1 = $k[--$j]; //#27217 + var _O2 = $k[--$j]; //#27217 + $put(_O2, _O1, $k[--$j]); //#27217 + $_.i = $_.i + $_.databpm; //#27218 + } //#27218 + $_.posy = $_.posy + 1; //#27220 + if ($_.posy == $_.rows) { //#27221 + $_.posy = 0; //#27221 + $_.posx = $_.posx + 1; //#27221 + } //#27221 + } //#27221 $_.evalrle = function() { - $_.scrle = $k[--$j]; //#26911 - $_.scr1 = 0; //#26912 - $_.scr3 = 0; //#26912 - for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#26934 - $_.j = _OD; //#26914 - if ($get($_.scrle, $_.j + 1) != -1) { //#26933 - var _OJ = $get($_.scrle, $_.j); //#26917 - $k[$j++] = _OJ; //#26917 - if (_OJ >= 5) { //#26917 - $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#26917 - } else { //#26917 - $j--; //#26917 - } //#26917 - if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#26932 - var _OR = $geti($_.scrle, $_.j - 4, 10); //#26920 - $k[$j++] = _OR; //#26921 - for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#26921 - $k[$j++] = $get(_OR, _OS) == 1; //#26921 - } //#26921 - $j--; //#26921 - for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#26921 - var _OX = $k[--$j]; //#26921 - var _OY = $k[--$j]; //#26921 - $k[$j++] = _OX; //#26921 - $k[$j++] = _OY; //#26921 - $j--; //#26921 - var _OZ = $k[--$j]; //#26921 - var _Oa = $k[--$j]; //#26921 - $k[$j++] = $an(_Oa, _OZ); //#26921 - } //#26921 - if ($k[--$j]) { //#26931 - $k[$j++] = Infinity; //#26922 - var _Oc = $k[--$j]; //#26922 - var _Od = $k[--$j]; //#26922 - $k[$j++] = _Oc; //#26922 - $aload(_Od); //#26922 - var _Oe = $k[--$j]; //#26923 - var _Of = $k[--$j]; //#26923 - var _Og = $k[--$j]; //#26923 - var _Oh = $k[--$j]; //#26923 - var _Oi = $k[--$j]; //#26923 - var _Oj = $k[--$j]; //#26923 - var _Ok = $k[--$j]; //#26923 - var _Ol = $k[--$j]; //#26923 - var _Om = $k[--$j]; //#26923 - $k[$j++] = _Om; //#26929 - $k[$j++] = _Ol; //#26929 - $k[$j++] = _Ok; //#26929 - $k[$j++] = _Oj; //#26929 - $k[$j++] = _Oi; //#26929 - $k[$j++] = _Oh; //#26929 - $k[$j++] = _Og; //#26929 - $k[$j++] = _Of; //#26929 - $k[$j++] = _Oe; //#26929 - if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#26929 - var _On = $k[--$j]; //#26925 - var _Oo = $k[--$j]; //#26925 - var _Op = $k[--$j]; //#26925 - $_.c4 = _Op; //#26925 - $_.c5 = _On; //#26925 - $k[$j++] = _Op; //#26928 - $k[$j++] = _Oo; //#26928 - if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#26928 - $_.scr3 = $_.scr3 + 100; //#26928 - } //#26928 - } //#26928 - $cleartomark(); //#26930 - } else { //#26931 - $j--; //#26931 - } //#26931 - } //#26931 - } //#26931 - } //#26931 - $k[$j++] = $_.scr1; //#26935 - $k[$j++] = $_.scr3; //#26935 - }; //#26935 + $_.scrle = $k[--$j]; //#27226 + $_.scr1 = 0; //#27227 + $_.scr3 = 0; //#27227 + for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#27249 + $_.j = _OD; //#27229 + if ($get($_.scrle, $_.j + 1) != -1) { //#27248 + var _OJ = $get($_.scrle, $_.j); //#27232 + $k[$j++] = _OJ; //#27232 + if (_OJ >= 5) { //#27232 + $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#27232 + } else { //#27232 + $j--; //#27232 + } //#27232 + if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#27247 + var _OR = $geti($_.scrle, $_.j - 4, 10); //#27235 + $k[$j++] = _OR; //#27236 + for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#27236 + $k[$j++] = $get(_OR, _OS) == 1; //#27236 + } //#27236 + $j--; //#27236 + for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#27236 + var _OX = $k[--$j]; //#27236 + var _OY = $k[--$j]; //#27236 + $k[$j++] = _OX; //#27236 + $k[$j++] = _OY; //#27236 + $j--; //#27236 + var _OZ = $k[--$j]; //#27236 + var _Oa = $k[--$j]; //#27236 + $k[$j++] = $an(_Oa, _OZ); //#27236 + } //#27236 + if ($k[--$j]) { //#27246 + $k[$j++] = Infinity; //#27237 + var _Oc = $k[--$j]; //#27237 + var _Od = $k[--$j]; //#27237 + $k[$j++] = _Oc; //#27237 + $aload(_Od); //#27237 + var _Oe = $k[--$j]; //#27238 + var _Of = $k[--$j]; //#27238 + var _Og = $k[--$j]; //#27238 + var _Oh = $k[--$j]; //#27238 + var _Oi = $k[--$j]; //#27238 + var _Oj = $k[--$j]; //#27238 + var _Ok = $k[--$j]; //#27238 + var _Ol = $k[--$j]; //#27238 + var _Om = $k[--$j]; //#27238 + $k[$j++] = _Om; //#27244 + $k[$j++] = _Ol; //#27244 + $k[$j++] = _Ok; //#27244 + $k[$j++] = _Oj; //#27244 + $k[$j++] = _Oi; //#27244 + $k[$j++] = _Oh; //#27244 + $k[$j++] = _Og; //#27244 + $k[$j++] = _Of; //#27244 + $k[$j++] = _Oe; //#27244 + if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#27244 + var _On = $k[--$j]; //#27240 + var _Oo = $k[--$j]; //#27240 + var _Op = $k[--$j]; //#27240 + $_.c4 = _Op; //#27240 + $_.c5 = _On; //#27240 + $k[$j++] = _Op; //#27243 + $k[$j++] = _Oo; //#27243 + if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#27243 + $_.scr3 = $_.scr3 + 100; //#27243 + } //#27243 + } //#27243 + $cleartomark(); //#27245 + } else { //#27246 + $j--; //#27246 + } //#27246 + } //#27246 + } //#27246 + } //#27246 + $k[$j++] = $_.scr1; //#27250 + $k[$j++] = $_.scr3; //#27250 + }; //#27250 $_.evalmask = function() { - $_.sym = $k[--$j]; //#26939 - $_.n1 = 0; //#26941 - $_.n2 = 0; //#26941 - $_.n3 = 0; //#26941 - var _PA = $_.rows; //#26942 - var _PB = $_.cols; //#26942 - if (_PA < _PB) { //#26942 - var _ = _PB; //#26942 - _PB = _PA; //#26942 - _PA = _; //#26942 - } //#26942 - $_.rle = $a($f((_PA * 2) + 2)); //#26942 - $_.lastpairs = $a($_.cols); //#26943 - $_.thispairs = $a($_.cols); //#26944 - for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#26956 - $_.i = _PJ; //#26948 - $k[$j++] = Infinity; //#26949 - $k[$j++] = 0; //#26952 - $k[$j++] = -1; //#26952 - for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#26952 - var _PS = $get($_.sym, _PP); //#26951 - var _PT = $k[--$j]; //#26951 - $k[$j++] = _PT; //#26951 - $k[$j++] = _PS; //#26951 - if ($eq(_PT, _PS)) { //#26951 - $j--; //#26951 - var _PU = $k[--$j]; //#26951 - var _PV = $k[--$j]; //#26951 - $k[$j++] = $f(_PV + 1); //#26951 - $k[$j++] = _PU; //#26951 - } else { //#26951 - var _PW = $k[--$j]; //#26951 - $k[$j++] = 1; //#26951 - $k[$j++] = _PW; //#26951 - } //#26951 - } //#26951 - var _PY = $counttomark() + 2; //#26953 - $astore($geti($_.rle, 0, _PY - 2)); //#26953 - $_.evalrle(); //#26954 - $_.n3 = $f($k[--$j] + $_.n3); //#26954 - $_.n1 = $f($k[--$j] + $_.n1); //#26954 - $j--; //#26955 - } //#26955 - for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#26983 - $_.i = _Pg; //#26959 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#26962 - $k[$j++] = Infinity; //#26963 - var _Pm = $_.symrow; //#26964 - $k[$j++] = 0; //#26966 - $k[$j++] = -1; //#26966 - for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#26966 - var _Pp = $get(_Pm, _Pn); //#26966 - var _Pq = $k[--$j]; //#26965 - $k[$j++] = _Pq; //#26965 - $k[$j++] = _Pp; //#26965 - if ($eq(_Pq, _Pp)) { //#26965 - $j--; //#26965 - var _Pr = $k[--$j]; //#26965 - var _Ps = $k[--$j]; //#26965 - $k[$j++] = $f(_Ps + 1); //#26965 - $k[$j++] = _Pr; //#26965 - } else { //#26965 - var _Pt = $k[--$j]; //#26965 - $k[$j++] = 1; //#26965 - $k[$j++] = _Pt; //#26965 - } //#26965 - } //#26965 - var _Pv = $counttomark() + 2; //#26967 - $astore($geti($_.rle, 0, _Pv - 2)); //#26967 - $_.evalrle(); //#26968 - $_.n3 = $f($k[--$j] + $_.n3); //#26968 - $_.n1 = $f($k[--$j] + $_.n1); //#26968 - $j--; //#26969 - var _Q1 = $_.thispairs; //#26972 - $_.thispairs = $_.lastpairs; //#26972 - $_.lastpairs = _Q1; //#26972 - var _Q3 = $_.symrow; //#26973 - $k[$j++] = -1; //#26973 - for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#26973 - var _Q6 = $get(_Q3, _Q4); //#26973 - var _Q7 = $k[--$j]; //#26973 - $k[$j++] = _Q6; //#26973 - $k[$j++] = _Q7; //#26973 - if ($ne(_Q6, _Q7)) { //#26973 - $j--; //#26973 - var _Q8 = $k[--$j]; //#26973 - $k[$j++] = -1; //#26973 - $k[$j++] = _Q8; //#26973 - } //#26973 - } //#26973 - $j--; //#26974 - $astore($_.thispairs); //#26975 - $j--; //#26975 - if ($_.i > 0) { //#26982 - $k[$j++] = Infinity; //#26977 - $aload($_.lastpairs); //#26978 - $aload($_.thispairs); //#26978 - $k[$j++] = $_.n2; //#26979 - for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#26979 - var _QH = $k[--$j]; //#26979 - var _QI = $k[--$j]; //#26979 - $k[$j++] = _QH; //#26979 - $k[$j++] = _QI; //#26979 - if (_QI != -1) { //#26979 - var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#26979 - if ($eq($k[--$j], _QK)) { //#26979 - var _QM = $k[--$j]; //#26979 - $k[$j++] = $f(_QM + 3); //#26979 - } //#26979 - } else { //#26979 - $j--; //#26979 - } //#26979 - } //#26979 - $_.n2 = $k[--$j]; //#26980 - $cleartomark(); //#26981 - } //#26981 - } //#26981 - $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#26985 - }; //#26985 - $_.bestscore = 999999999; //#26989 - for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27007 - $_.m = _QT; //#26991 - $_.masksym = $a($_.rows * $_.cols); //#26992 - for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#26996 - $_.i = _Qa; //#26994 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#26995 - } //#26995 - if ($_.masks.length != 1) { //#27005 - $k[$j++] = $_.masksym; //#26998 - $_.evalmask(); //#26998 - $_.score = $k[--$j]; //#26998 - if ($_.score < $_.bestscore) { //#27003 - $_.bestsym = $_.masksym; //#27000 - $_.bestmaskval = $_.m; //#27001 - $_.bestscore = $_.score; //#27002 - } //#27002 - } else { //#27005 - $_.bestsym = $_.masksym; //#27005 - } //#27005 - } //#27005 - $_.pixs = $_.bestsym; //#27008 - $_.metamask = $_.bestmaskval; //#27009 + $_.sym = $k[--$j]; //#27254 + $_.n1 = 0; //#27256 + $_.n2 = 0; //#27256 + $_.n3 = 0; //#27256 + var _PA = $_.rows; //#27257 + var _PB = $_.cols; //#27257 + if (_PA < _PB) { //#27257 + var _ = _PB; //#27257 + _PB = _PA; //#27257 + _PA = _; //#27257 + } //#27257 + $_.rle = $a($f((_PA * 2) + 2)); //#27257 + $_.lastpairs = $a($_.cols); //#27258 + $_.thispairs = $a($_.cols); //#27259 + for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#27271 + $_.i = _PJ; //#27263 + $k[$j++] = Infinity; //#27264 + $k[$j++] = 0; //#27267 + $k[$j++] = -1; //#27267 + for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#27267 + var _PS = $get($_.sym, _PP); //#27266 + var _PT = $k[--$j]; //#27266 + $k[$j++] = _PT; //#27266 + $k[$j++] = _PS; //#27266 + if ($eq(_PT, _PS)) { //#27266 + $j--; //#27266 + var _PU = $k[--$j]; //#27266 + var _PV = $k[--$j]; //#27266 + $k[$j++] = $f(_PV + 1); //#27266 + $k[$j++] = _PU; //#27266 + } else { //#27266 + var _PW = $k[--$j]; //#27266 + $k[$j++] = 1; //#27266 + $k[$j++] = _PW; //#27266 + } //#27266 + } //#27266 + var _PY = $counttomark() + 2; //#27268 + $astore($geti($_.rle, 0, _PY - 2)); //#27268 + $_.evalrle(); //#27269 + $_.n3 = $f($k[--$j] + $_.n3); //#27269 + $_.n1 = $f($k[--$j] + $_.n1); //#27269 + $j--; //#27270 + } //#27270 + for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#27298 + $_.i = _Pg; //#27274 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#27277 + $k[$j++] = Infinity; //#27278 + var _Pm = $_.symrow; //#27279 + $k[$j++] = 0; //#27281 + $k[$j++] = -1; //#27281 + for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#27281 + var _Pp = $get(_Pm, _Pn); //#27281 + var _Pq = $k[--$j]; //#27280 + $k[$j++] = _Pq; //#27280 + $k[$j++] = _Pp; //#27280 + if ($eq(_Pq, _Pp)) { //#27280 + $j--; //#27280 + var _Pr = $k[--$j]; //#27280 + var _Ps = $k[--$j]; //#27280 + $k[$j++] = $f(_Ps + 1); //#27280 + $k[$j++] = _Pr; //#27280 + } else { //#27280 + var _Pt = $k[--$j]; //#27280 + $k[$j++] = 1; //#27280 + $k[$j++] = _Pt; //#27280 + } //#27280 + } //#27280 + var _Pv = $counttomark() + 2; //#27282 + $astore($geti($_.rle, 0, _Pv - 2)); //#27282 + $_.evalrle(); //#27283 + $_.n3 = $f($k[--$j] + $_.n3); //#27283 + $_.n1 = $f($k[--$j] + $_.n1); //#27283 + $j--; //#27284 + var _Q1 = $_.thispairs; //#27287 + $_.thispairs = $_.lastpairs; //#27287 + $_.lastpairs = _Q1; //#27287 + var _Q3 = $_.symrow; //#27288 + $k[$j++] = -1; //#27288 + for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#27288 + var _Q6 = $get(_Q3, _Q4); //#27288 + var _Q7 = $k[--$j]; //#27288 + $k[$j++] = _Q6; //#27288 + $k[$j++] = _Q7; //#27288 + if ($ne(_Q6, _Q7)) { //#27288 + $j--; //#27288 + var _Q8 = $k[--$j]; //#27288 + $k[$j++] = -1; //#27288 + $k[$j++] = _Q8; //#27288 + } //#27288 + } //#27288 + $j--; //#27289 + $astore($_.thispairs); //#27290 + $j--; //#27290 + if ($_.i > 0) { //#27297 + $k[$j++] = Infinity; //#27292 + $aload($_.lastpairs); //#27293 + $aload($_.thispairs); //#27293 + $k[$j++] = $_.n2; //#27294 + for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#27294 + var _QH = $k[--$j]; //#27294 + var _QI = $k[--$j]; //#27294 + $k[$j++] = _QH; //#27294 + $k[$j++] = _QI; //#27294 + if (_QI != -1) { //#27294 + var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#27294 + if ($eq($k[--$j], _QK)) { //#27294 + var _QM = $k[--$j]; //#27294 + $k[$j++] = $f(_QM + 3); //#27294 + } //#27294 + } else { //#27294 + $j--; //#27294 + } //#27294 + } //#27294 + $_.n2 = $k[--$j]; //#27295 + $cleartomark(); //#27296 + } //#27296 + } //#27296 + $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#27300 + }; //#27300 + $_.bestscore = 999999999; //#27304 + for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27322 + $_.m = _QT; //#27306 + $_.masksym = $a($_.rows * $_.cols); //#27307 + for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#27311 + $_.i = _Qa; //#27309 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#27310 + } //#27310 + if ($_.masks.length != 1) { //#27320 + $k[$j++] = $_.masksym; //#27313 + $_.evalmask(); //#27313 + $_.score = $k[--$j]; //#27313 + if ($_.score < $_.bestscore) { //#27318 + $_.bestsym = $_.masksym; //#27315 + $_.bestmaskval = $_.m; //#27316 + $_.bestscore = $_.score; //#27317 + } //#27317 + } else { //#27320 + $_.bestsym = $_.masksym; //#27320 + } //#27320 + } //#27320 + $_.pixs = $_.bestsym; //#27323 + $_.metamask = $_.bestmaskval; //#27324 $_.addtometapart = function() { - var _Qw = $k[--$j]; //#27013 - $puti($_.metapart, $_.p, _Qw); //#27013 - $_.p = _Qw.length + $_.p; //#27014 - }; //#27014 + var _Qw = $k[--$j]; //#27328 + $puti($_.metapart, $_.p, _Qw); //#27328 + $_.p = _Qw.length + $_.p; //#27329 + }; //#27329 $_.addtometabits = function() { - var _R0 = $k[--$j]; //#27018 - $puti($_.metabits, $_.q, _R0); //#27018 - $_.q = _R0.length + $_.q; //#27019 - }; //#27019 - $_.metapart = $s(40); //#27022 - $_.metabits = $s($_.nummetabits); //#27023 - $_.p = 0; //#27024 - $_.q = 0; //#27024 - if (!$_.slave) { //#27079 - $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27029 - $k[$j++] = 3; //#27029 - $_.tofixedbits(); //#27029 - $_.addtometapart(); //#27029 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27030 - $k[$j++] = 2; //#27030 - $k[$j++] = -1; //#27030 - $_.ldpc(); //#27030 - $_.addtometabits(); //#27030 - $_.p = 0; //#27030 - $k[$j++] = $_.metass; //#27033 - $k[$j++] = 1; //#27033 - $_.tofixedbits(); //#27033 - $_.addtometapart(); //#27033 - $k[$j++] = $_.metavf; //#27034 - $k[$j++] = 2; //#27034 - $_.tofixedbits(); //#27034 - $_.addtometapart(); //#27034 - $k[$j++] = $_.metamask; //#27035 - $k[$j++] = 3; //#27035 - $_.tofixedbits(); //#27035 - $_.addtometapart(); //#27035 - if ($_.hasslaves) { //#27036 - $k[$j++] = "1"; //#27036 - } else { //#27036 - $k[$j++] = "0"; //#27036 - } //#27036 - $_.addtometapart(); //#27036 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27037 - $k[$j++] = 2; //#27037 - $k[$j++] = -1; //#27037 - $_.ldpc(); //#27037 - $_.addtometabits(); //#27037 - $_.p = 0; //#27037 - if ($_.metass == 0) { //#27047 - $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27042 - $k[$j++] = $_.metavlen; //#27042 - $_.tofixedbits(); //#27042 - $_.addtometapart(); //#27042 - } else { //#27047 - $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27045 - $k[$j++] = ~~($_.metavlen / 2); //#27045 - $_.tofixedbits(); //#27045 - $_.addtometapart(); //#27045 - $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27047 - $k[$j++] = ~~($_.metavlen / 2); //#27047 - $_.tofixedbits(); //#27047 - $_.addtometapart(); //#27047 - } //#27047 - $k[$j++] = $_.datawc - 3; //#27049 - $k[$j++] = ~~($_.metaelen / 2); //#27049 - $_.tofixedbits(); //#27049 - $_.addtometapart(); //#27049 - $k[$j++] = $_.datawr - 4; //#27050 - $k[$j++] = ~~($_.metaelen / 2); //#27050 - $_.tofixedbits(); //#27050 - $_.addtometapart(); //#27050 - if ($_.hasslaves) { //#27053 - $k[$j++] = 0; //#27052 - $k[$j++] = 4; //#27052 - $_.tofixedbits(); //#27052 - $_.addtometapart(); //#27052 - } //#27052 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27054 - $k[$j++] = 2; //#27054 - $k[$j++] = -1; //#27054 - $_.ldpc(); //#27054 - $_.addtometabits(); //#27054 - $_.p = 0; //#27054 - } else { //#27079 - var _Rc = $_.sameshape ? 0 : 1; //#27059 - $k[$j++] = _Rc; //#27059 - $k[$j++] = 1; //#27059 - $_.tofixedbits(); //#27059 - $_.addtometapart(); //#27059 - var _Re = $_.sameecc ? 0 : 1; //#27060 - $k[$j++] = _Re; //#27060 - $k[$j++] = 1; //#27060 - $_.tofixedbits(); //#27060 - $_.addtometapart(); //#27060 - var _Rg = $_.hasslaves ? 1 : 0; //#27061 - $k[$j++] = _Rg; //#27061 - $k[$j++] = 1; //#27061 - $_.tofixedbits(); //#27061 - $_.addtometapart(); //#27061 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27062 - $k[$j++] = 2; //#27062 - $k[$j++] = -1; //#27062 - $_.ldpc(); //#27062 - $_.addtometabits(); //#27062 - $_.p = 0; //#27062 - if (!$_.sameshape) { //#27068 - $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27067 - $k[$j++] = 5; //#27067 - $_.tofixedbits(); //#27067 - $_.addtometapart(); //#27067 - } //#27067 - if ($_.hasslaves) { //#27071 - $k[$j++] = 0; //#27070 - $k[$j++] = 3; //#27070 - $_.tofixedbits(); //#27070 - $_.addtometapart(); //#27070 - } //#27070 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27072 - $k[$j++] = 2; //#27072 - $k[$j++] = -1; //#27072 - $_.ldpc(); //#27072 - $_.addtometabits(); //#27072 - $_.p = 0; //#27072 - if (!$_.sameecc) { //#27078 - $k[$j++] = $_.datawc - 3; //#27076 - $k[$j++] = ~~($_.metaelen / 2); //#27076 - $_.tofixedbits(); //#27076 - $_.addtometapart(); //#27076 - $k[$j++] = $_.datawr - 4; //#27077 - $k[$j++] = ~~($_.metaelen / 2); //#27077 - $_.tofixedbits(); //#27077 - $_.addtometapart(); //#27077 - } //#27077 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27079 - $k[$j++] = 2; //#27079 - $k[$j++] = -1; //#27079 - $_.ldpc(); //#27079 - $_.addtometabits(); //#27079 - $_.p = 0; //#27079 - } //#27079 - for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27084 - $put($_.metabits, _S1, 48); //#27083 - } //#27083 - $_.i = 0; //#27087 - $_.j = 0; //#27087 - if (!$_.slave) { //#27095 - var _S6 = $geti($_.metabits, $_.i, 6); //#27089 - for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27093 - $k[$j++] = $get(_S6, _S7); //#27090 - if ($_.colors == 4) { //#27090 - $k[$j++] = $a([$_.bi, $_.yi]); //#27090 - } else { //#27090 - $k[$j++] = $a([$_.ki, $_.wi]); //#27090 - } //#27090 - var _SH = $k[--$j]; //#27090 - var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27090 - $k[$j++] = _SJ; //#27091 - $k[$j++] = $_.pixs; //#27091 - $aload($get($_.metadatamap, $_.j)); //#27091 - $_.jmv(); //#27091 - var _SO = $k[--$j]; //#27091 - var _SP = $k[--$j]; //#27091 - $put(_SP, _SO, $k[--$j]); //#27091 - $_.j = $_.j + 1; //#27092 - } //#27092 - $_.i = $_.i + 6; //#27094 - } //#27094 - for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27102 - var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27097 - $k[$j++] = 0; //#27097 - for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27097 - var _Sf = $k[--$j]; //#27097 - $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27097 - } //#27097 - var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27098 - $k[$j++] = _Si; //#27099 - $k[$j++] = $_.pixs; //#27099 - $aload($get($_.metadatamap, $_.j)); //#27099 - $_.jmv(); //#27099 - var _Sn = $k[--$j]; //#27099 - var _So = $k[--$j]; //#27099 - $put(_So, _Sn, $k[--$j]); //#27099 - $_.i = $f($_.i + $_.metabpm); //#27100 - $_.j = $_.j + 1; //#27101 - } //#27101 + var _R0 = $k[--$j]; //#27333 + $puti($_.metabits, $_.q, _R0); //#27333 + $_.q = _R0.length + $_.q; //#27334 + }; //#27334 + $_.metapart = $s(40); //#27337 + $_.metabits = $s($_.nummetabits); //#27338 + $_.p = 0; //#27339 + $_.q = 0; //#27339 + if (!$_.slave) { //#27394 + $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27344 + $k[$j++] = 3; //#27344 + $_.tofixedbits(); //#27344 + $_.addtometapart(); //#27344 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27345 + $k[$j++] = 2; //#27345 + $k[$j++] = -1; //#27345 + $_.ldpc(); //#27345 + $_.addtometabits(); //#27345 + $_.p = 0; //#27345 + $k[$j++] = $_.metass; //#27348 + $k[$j++] = 1; //#27348 + $_.tofixedbits(); //#27348 + $_.addtometapart(); //#27348 + $k[$j++] = $_.metavf; //#27349 + $k[$j++] = 2; //#27349 + $_.tofixedbits(); //#27349 + $_.addtometapart(); //#27349 + $k[$j++] = $_.metamask; //#27350 + $k[$j++] = 3; //#27350 + $_.tofixedbits(); //#27350 + $_.addtometapart(); //#27350 + if ($_.hasslaves) { //#27351 + $k[$j++] = "1"; //#27351 + } else { //#27351 + $k[$j++] = "0"; //#27351 + } //#27351 + $_.addtometapart(); //#27351 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27352 + $k[$j++] = 2; //#27352 + $k[$j++] = -1; //#27352 + $_.ldpc(); //#27352 + $_.addtometabits(); //#27352 + $_.p = 0; //#27352 + if ($_.metass == 0) { //#27362 + $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27357 + $k[$j++] = $_.metavlen; //#27357 + $_.tofixedbits(); //#27357 + $_.addtometapart(); //#27357 + } else { //#27362 + $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27360 + $k[$j++] = ~~($_.metavlen / 2); //#27360 + $_.tofixedbits(); //#27360 + $_.addtometapart(); //#27360 + $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27362 + $k[$j++] = ~~($_.metavlen / 2); //#27362 + $_.tofixedbits(); //#27362 + $_.addtometapart(); //#27362 + } //#27362 + $k[$j++] = $_.datawc - 3; //#27364 + $k[$j++] = ~~($_.metaelen / 2); //#27364 + $_.tofixedbits(); //#27364 + $_.addtometapart(); //#27364 + $k[$j++] = $_.datawr - 4; //#27365 + $k[$j++] = ~~($_.metaelen / 2); //#27365 + $_.tofixedbits(); //#27365 + $_.addtometapart(); //#27365 + if ($_.hasslaves) { //#27368 + $k[$j++] = 0; //#27367 + $k[$j++] = 4; //#27367 + $_.tofixedbits(); //#27367 + $_.addtometapart(); //#27367 + } //#27367 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27369 + $k[$j++] = 2; //#27369 + $k[$j++] = -1; //#27369 + $_.ldpc(); //#27369 + $_.addtometabits(); //#27369 + $_.p = 0; //#27369 + } else { //#27394 + var _Rc = $_.sameshape ? 0 : 1; //#27374 + $k[$j++] = _Rc; //#27374 + $k[$j++] = 1; //#27374 + $_.tofixedbits(); //#27374 + $_.addtometapart(); //#27374 + var _Re = $_.sameecc ? 0 : 1; //#27375 + $k[$j++] = _Re; //#27375 + $k[$j++] = 1; //#27375 + $_.tofixedbits(); //#27375 + $_.addtometapart(); //#27375 + var _Rg = $_.hasslaves ? 1 : 0; //#27376 + $k[$j++] = _Rg; //#27376 + $k[$j++] = 1; //#27376 + $_.tofixedbits(); //#27376 + $_.addtometapart(); //#27376 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27377 + $k[$j++] = 2; //#27377 + $k[$j++] = -1; //#27377 + $_.ldpc(); //#27377 + $_.addtometabits(); //#27377 + $_.p = 0; //#27377 + if (!$_.sameshape) { //#27383 + $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27382 + $k[$j++] = 5; //#27382 + $_.tofixedbits(); //#27382 + $_.addtometapart(); //#27382 + } //#27382 + if ($_.hasslaves) { //#27386 + $k[$j++] = 0; //#27385 + $k[$j++] = 3; //#27385 + $_.tofixedbits(); //#27385 + $_.addtometapart(); //#27385 + } //#27385 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27387 + $k[$j++] = 2; //#27387 + $k[$j++] = -1; //#27387 + $_.ldpc(); //#27387 + $_.addtometabits(); //#27387 + $_.p = 0; //#27387 + if (!$_.sameecc) { //#27393 + $k[$j++] = $_.datawc - 3; //#27391 + $k[$j++] = ~~($_.metaelen / 2); //#27391 + $_.tofixedbits(); //#27391 + $_.addtometapart(); //#27391 + $k[$j++] = $_.datawr - 4; //#27392 + $k[$j++] = ~~($_.metaelen / 2); //#27392 + $_.tofixedbits(); //#27392 + $_.addtometapart(); //#27392 + } //#27392 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27394 + $k[$j++] = 2; //#27394 + $k[$j++] = -1; //#27394 + $_.ldpc(); //#27394 + $_.addtometabits(); //#27394 + $_.p = 0; //#27394 + } //#27394 + for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27399 + $put($_.metabits, _S1, 48); //#27398 + } //#27398 + $_.i = 0; //#27402 + $_.j = 0; //#27402 + if (!$_.slave) { //#27410 + var _S6 = $geti($_.metabits, $_.i, 6); //#27404 + for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27408 + $k[$j++] = $get(_S6, _S7); //#27405 + if ($_.colors == 4) { //#27405 + $k[$j++] = $a([$_.bi, $_.yi]); //#27405 + } else { //#27405 + $k[$j++] = $a([$_.ki, $_.wi]); //#27405 + } //#27405 + var _SH = $k[--$j]; //#27405 + var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27405 + $k[$j++] = _SJ; //#27406 + $k[$j++] = $_.pixs; //#27406 + $aload($get($_.metadatamap, $_.j)); //#27406 + $_.jmv(); //#27406 + var _SO = $k[--$j]; //#27406 + var _SP = $k[--$j]; //#27406 + $put(_SP, _SO, $k[--$j]); //#27406 + $_.j = $_.j + 1; //#27407 + } //#27407 + $_.i = $_.i + 6; //#27409 + } //#27409 + for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27417 + var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27412 + $k[$j++] = 0; //#27412 + for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27412 + var _Sf = $k[--$j]; //#27412 + $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27412 + } //#27412 + var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27413 + $k[$j++] = _Si; //#27414 + $k[$j++] = $_.pixs; //#27414 + $aload($get($_.metadatamap, $_.j)); //#27414 + $_.jmv(); //#27414 + var _Sn = $k[--$j]; //#27414 + var _So = $k[--$j]; //#27414 + $put(_So, _Sn, $k[--$j]); //#27414 + $_.i = $f($_.i + $_.metabpm); //#27415 + $_.j = $_.j + 1; //#27416 + } //#27416 var _T0 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -34558,42 +35036,45 @@ function bwipp_jabcode() { ["colormap", $_.palette], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#27112 - $k[$j++] = _T0; //#27115 - if (!$_.dontdraw) { //#27115 - bwipp_renmatrix(); //#27115 - } //#27115 - $_ = Object.getPrototypeOf($_); //#27117 -} - + ]); //#27431 + $k[$j++] = _T0; //#27434 + if (!$_.dontdraw) { //#27434 + bwipp_renmatrix(); //#27434 + } //#27434 + $_ = Object.getPrototypeOf($_); //#27436 +} //bwipp_jabcode function bwipp_gs1_cc() { - $_ = Object.create($_); //#27150 - $_.parse = false; //#27153 - $_.dontlint = false; //#27154 - $_.lintreqs = false; //#27155 - $_.dontdraw = false; //#27156 - $_.ccversion = "a"; //#27157 - $_.cccolumns = -1; //#27158 - $_.lintype = ""; //#27159 - $_.linwidth = -1; //#27160 - $k[$j++] = $_; //#27162 - bwipp_processoptions(); //#27162 - $_.options = $k[--$j]; //#27162 - $_.barcode = $k[--$j]; //#27163 - bwipp_loadctx(bwipp_gs1_cc) //#27165 - if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27169 - $k[$j++] = 'bwipp.gs1ccBadCCversion#27168'; //#27168 - $k[$j++] = "ccversion must be a, b or c"; //#27168 - bwipp_raiseerror(); //#27168 - } //#27168 - if ($_.cccolumns > 30) { //#27173 - $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27172'; //#27172 - $k[$j++] = "The maximum number of composite component columns is 30"; //#27172 - bwipp_raiseerror(); //#27172 - } //#27172 - if (!bwipp_gs1_cc.__27190__) { //#27190 - $_ = Object.create($_); //#27190 + $_ = Object.create($_); //#27469 + $_.parse = false; //#27472 + $_.dontlint = false; //#27473 + $_.lintreqs = false; //#27474 + $_.dontdraw = false; //#27475 + $_.ccversion = "a"; //#27476 + $_.cccolumns = -1; //#27477 + $_.lintype = ""; //#27478 + $_.linwidth = -1; //#27479 + $k[$j++] = $_; //#27481 + bwipp_processoptions(); //#27481 + $_.options = $k[--$j]; //#27481 + $_.barcode = $k[--$j]; //#27482 + bwipp_loadctx(bwipp_gs1_cc) //#27484 + if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27488 + $k[$j++] = 'bwipp.gs1ccBadCCversion#27487'; //#27487 + $k[$j++] = "ccversion must be a, b or c"; //#27487 + bwipp_raiseerror(); //#27487 + } //#27487 + if ($_.cccolumns > 30) { //#27492 + $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27491'; //#27491 + $k[$j++] = "The maximum number of composite component columns is 30"; //#27491 + bwipp_raiseerror(); //#27491 + } //#27491 + if (!bwipp_gs1_cc.__27509__) { //#27509 + $_ = Object.create($_); //#27509 var _6 = new Map([ ["ean13", 4], ["upca", 4], @@ -34607,1806 +35088,1383 @@ function bwipp_gs1_cc() { ["databarlimited", 3], ["databarexpanded", 4], ["databarexpandedstacked", 4] - ]); //#27188 - $_.lintypecccolumns = _6; //#27189 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27189 - bwipp_gs1_cc.__27190__ = 1; //#27189 - $_ = Object.getPrototypeOf($_); //#27189 - } //#27189 - if ($ne($_.lintype, "")) { //#27196 - var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27193 - if (!_B) { //#27195 - $k[$j++] = 'bwipp.gs1ccBadLinType#27194'; //#27194 - $k[$j++] = "The lintype is not recognised"; //#27194 - bwipp_raiseerror(); //#27194 - } //#27194 - } //#27194 - if ($_.cccolumns == -1) { //#27209 - if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27206 - if ($_.linwidth < 0) { //#27203 - $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27202'; //#27202 - $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27202 - bwipp_raiseerror(); //#27202 - } //#27202 - $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27204 - } else { //#27206 - $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27206 - } //#27206 - $_.cccolumns = $k[--$j]; //#27208 - } //#27208 - $k[$j++] = $_.barcode; //#27211 - $k[$j++] = 'ai'; //#27211 - bwipp_gs1process(); //#27211 - $_.fncs = $k[--$j]; //#27212 - $_.vals = $k[--$j]; //#27213 - $_.ais = $k[--$j]; //#27214 + ]); //#27507 + $_.lintypecccolumns = _6; //#27508 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27508 + bwipp_gs1_cc.__27509__ = 1; //#27508 + $_ = Object.getPrototypeOf($_); //#27508 + } //#27508 + if ($ne($_.lintype, "")) { //#27515 + var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27512 + if (!_B) { //#27514 + $k[$j++] = 'bwipp.gs1ccBadLinType#27513'; //#27513 + $k[$j++] = "The lintype is not recognised"; //#27513 + bwipp_raiseerror(); //#27513 + } //#27513 + } //#27513 + if ($_.cccolumns == -1) { //#27531 + if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27528 + if ($_.linwidth < 0) { //#27522 + $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27521'; //#27521 + $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27521 + bwipp_raiseerror(); //#27521 + } //#27521 + if ($_.linwidth < 68) { //#27525 + $k[$j++] = 'bwipp.gs1ccMinimumLinWidth#27524'; //#27524 + $k[$j++] = "Minimum linwidth for a GS1-128 with a CC-C composite component is 68"; //#27524 + bwipp_raiseerror(); //#27524 + } //#27524 + if ($_.linwidth == 68) { //#27526 + $k[$j++] = 1; //#27526 + } else { //#27526 + $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27526 + } //#27526 + } else { //#27528 + if ($ne($_.lintype, "")) { //#27528 + $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27528 + } else { //#27528 + $k[$j++] = 2; //#27528 + } //#27528 + } //#27528 + $_.cccolumns = $k[--$j]; //#27530 + } //#27530 + $k[$j++] = $_.barcode; //#27533 + $k[$j++] = 'ai'; //#27533 + bwipp_gs1process(); //#27533 + $_.fncs = $k[--$j]; //#27534 + $_.vals = $k[--$j]; //#27535 + $_.ais = $k[--$j]; //#27536 $_.isupper = function() { - var _P = $k[--$j]; //#27217 - $k[$j++] = (_P >= 65) && (_P <= 90); //#27217 - }; //#27217 + var _S = $k[--$j]; //#27539 + $k[$j++] = (_S >= 65) && (_S <= 90); //#27539 + }; //#27539 $_.isnum0 = function() { - var _Q = $k[--$j]; //#27218 - $k[$j++] = (_Q >= 48) && (_Q <= 57); //#27218 - }; //#27218 + var _T = $k[--$j]; //#27540 + $k[$j++] = (_T >= 48) && (_T <= 57); //#27540 + }; //#27540 $_.isnum1 = function() { - var _R = $k[--$j]; //#27219 - $k[$j++] = (_R >= 49) && (_R <= 57); //#27219 - }; //#27219 - for (;;) { //#27265 - if ($_.ais.length >= 1) { //#27227 - if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27226 - $k[$j++] = -1; //#27225 - $k[$j++] = "10"; //#27225 - break; //#27225 - } //#27225 - } //#27225 - if ($_.ais.length >= 1) { //#27260 - if ($eq($get($_.ais, 0), "90")) { //#27259 - $_.v = $get($_.vals, 0); //#27232 - if ($_.v.length >= 1) { //#27237 - $k[$j++] = $get($_.v, 0); //#27234 - $_.isupper(); //#27234 - if ($k[--$j]) { //#27236 - $k[$j++] = 0; //#27235 - $k[$j++] = "11"; //#27235 - break; //#27235 - } //#27235 - } //#27235 - if ($_.v.length >= 2) { //#27243 - $k[$j++] = $get($_.v, 0); //#27239 - $_.isnum1(); //#27239 - $k[$j++] = $get($_.v, 1); //#27240 - $_.isupper(); //#27240 - var _n = $k[--$j]; //#27240 - var _o = $k[--$j]; //#27240 - if ((_o && _n)) { //#27242 - $k[$j++] = 1; //#27241 - $k[$j++] = "11"; //#27241 - break; //#27241 - } //#27241 - } //#27241 - if ($_.v.length >= 3) { //#27250 - $k[$j++] = $get($_.v, 0); //#27245 - $_.isnum1(); //#27245 - $k[$j++] = $get($_.v, 1); //#27246 - $_.isnum0(); //#27246 - var _u = $k[--$j]; //#27246 - var _v = $k[--$j]; //#27246 - $k[$j++] = $an(_v, _u); //#27247 - $k[$j++] = $get($_.v, 2); //#27247 - $_.isupper(); //#27247 - var _y = $k[--$j]; //#27247 - var _z = $k[--$j]; //#27247 - if ((_z && _y)) { //#27249 - $k[$j++] = 2; //#27248 - $k[$j++] = "11"; //#27248 - break; //#27248 - } //#27248 - } //#27248 - if ($_.v.length >= 4) { //#27258 - $k[$j++] = $get($_.v, 0); //#27252 - $_.isnum1(); //#27252 - $k[$j++] = $get($_.v, 1); //#27253 - $_.isnum0(); //#27253 - var _15 = $k[--$j]; //#27253 - var _16 = $k[--$j]; //#27253 - $k[$j++] = $an(_16, _15); //#27254 - $k[$j++] = $get($_.v, 2); //#27254 - $_.isnum0(); //#27254 - var _19 = $k[--$j]; //#27254 - var _1A = $k[--$j]; //#27254 - $k[$j++] = $an(_1A, _19); //#27255 - $k[$j++] = $get($_.v, 3); //#27255 - $_.isupper(); //#27255 - var _1D = $k[--$j]; //#27255 - var _1E = $k[--$j]; //#27255 - if ((_1E && _1D)) { //#27257 - $k[$j++] = 3; //#27256 - $k[$j++] = "11"; //#27256 - break; //#27256 - } //#27256 - } //#27256 - } //#27256 - } //#27256 - $k[$j++] = -1; //#27263 - $k[$j++] = "0"; //#27263 - break; //#27263 - } //#27263 - $_.method = $k[--$j]; //#27266 - $_.npre = $k[--$j]; //#27267 + var _U = $k[--$j]; //#27541 + $k[$j++] = (_U >= 49) && (_U <= 57); //#27541 + }; //#27541 + for (;;) { //#27587 + if ($_.ais.length >= 1) { //#27549 + if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27548 + $k[$j++] = -1; //#27547 + $k[$j++] = "10"; //#27547 + break; //#27547 + } //#27547 + } //#27547 + if ($_.ais.length >= 1) { //#27582 + if ($eq($get($_.ais, 0), "90")) { //#27581 + $_.v = $get($_.vals, 0); //#27554 + if ($_.v.length >= 1) { //#27559 + $k[$j++] = $get($_.v, 0); //#27556 + $_.isupper(); //#27556 + if ($k[--$j]) { //#27558 + $k[$j++] = 0; //#27557 + $k[$j++] = "11"; //#27557 + break; //#27557 + } //#27557 + } //#27557 + if ($_.v.length >= 2) { //#27565 + $k[$j++] = $get($_.v, 0); //#27561 + $_.isnum1(); //#27561 + $k[$j++] = $get($_.v, 1); //#27562 + $_.isupper(); //#27562 + var _q = $k[--$j]; //#27562 + var _r = $k[--$j]; //#27562 + if ((_r && _q)) { //#27564 + $k[$j++] = 1; //#27563 + $k[$j++] = "11"; //#27563 + break; //#27563 + } //#27563 + } //#27563 + if ($_.v.length >= 3) { //#27572 + $k[$j++] = $get($_.v, 0); //#27567 + $_.isnum1(); //#27567 + $k[$j++] = $get($_.v, 1); //#27568 + $_.isnum0(); //#27568 + var _x = $k[--$j]; //#27568 + var _y = $k[--$j]; //#27568 + $k[$j++] = $an(_y, _x); //#27569 + $k[$j++] = $get($_.v, 2); //#27569 + $_.isupper(); //#27569 + var _11 = $k[--$j]; //#27569 + var _12 = $k[--$j]; //#27569 + if ((_12 && _11)) { //#27571 + $k[$j++] = 2; //#27570 + $k[$j++] = "11"; //#27570 + break; //#27570 + } //#27570 + } //#27570 + if ($_.v.length >= 4) { //#27580 + $k[$j++] = $get($_.v, 0); //#27574 + $_.isnum1(); //#27574 + $k[$j++] = $get($_.v, 1); //#27575 + $_.isnum0(); //#27575 + var _18 = $k[--$j]; //#27575 + var _19 = $k[--$j]; //#27575 + $k[$j++] = $an(_19, _18); //#27576 + $k[$j++] = $get($_.v, 2); //#27576 + $_.isnum0(); //#27576 + var _1C = $k[--$j]; //#27576 + var _1D = $k[--$j]; //#27576 + $k[$j++] = $an(_1D, _1C); //#27577 + $k[$j++] = $get($_.v, 3); //#27577 + $_.isupper(); //#27577 + var _1G = $k[--$j]; //#27577 + var _1H = $k[--$j]; //#27577 + if ((_1H && _1G)) { //#27579 + $k[$j++] = 3; //#27578 + $k[$j++] = "11"; //#27578 + break; //#27578 + } //#27578 + } //#27578 + } //#27578 + } //#27578 + $k[$j++] = -1; //#27585 + $k[$j++] = "0"; //#27585 + break; //#27585 + } //#27585 + $_.method = $k[--$j]; //#27588 + $_.npre = $k[--$j]; //#27589 $_.tobin = function() { - var _1I = $s($k[--$j]); //#27270 - $k[$j++] = _1I; //#27270 - for (var _1K = 0, _1J = _1I.length - 1; _1K <= _1J; _1K += 1) { //#27270 - var _1L = $k[--$j]; //#27270 - $put(_1L, _1K, 48); //#27270 - $k[$j++] = _1L; //#27270 - } //#27270 - var _1M = $k[--$j]; //#27271 - var _1P = $cvrs($s(_1M.length), $k[--$j], 2); //#27271 - $puti(_1M, _1M.length - _1P.length, _1P); //#27271 - $k[$j++] = _1M; //#27271 - }; //#27271 - if (!bwipp_gs1_cc.__27322__) { //#27322 - $_ = Object.create($_); //#27322 - $_.fnc1 = -1; //#27276 - $_.lnumeric = -2; //#27276 - $_.lalphanumeric = -3; //#27276 - $_.liso646 = -4; //#27276 - $k[$j++] = Infinity; //#27281 - for (var _1Q = 65; _1Q <= 90; _1Q += 1) { //#27279 - $k[$j++] = _1Q; //#27279 - $k[$j++] = _1Q - 65; //#27279 - $k[$j++] = 5; //#27279 - $_.tobin(); //#27279 - } //#27279 - for (var _1R = 48; _1R <= 57; _1R += 1) { //#27280 - $k[$j++] = _1R; //#27280 - $k[$j++] = _1R + 4; //#27280 - $k[$j++] = 6; //#27280 - $_.tobin(); //#27280 - } //#27280 - $k[$j++] = $_.fnc1; //#27281 - $k[$j++] = "11111"; //#27281 - $_.alpha = $d(); //#27282 - $k[$j++] = Infinity; //#27294 - for (var _1U = 0; _1U <= 119; _1U += 1) { //#27293 - var _1W = $strcpy($s(2), "00"); //#27286 - var _1Y = $cvrs($s(2), _1U, 11); //#27286 - $puti(_1W, 2 - _1Y.length, _1Y); //#27287 - $k[$j++] = _1U; //#27288 - $k[$j++] = _1W; //#27288 - if ($get(_1W, 0) == 65) { //#27288 - var _1a = $k[--$j]; //#27288 - $put(_1a, 0, 94); //#27288 - $k[$j++] = _1a; //#27288 - } //#27288 - var _1b = $k[--$j]; //#27289 - $k[$j++] = _1b; //#27289 - if ($get(_1b, 1) == 65) { //#27289 - var _1d = $k[--$j]; //#27289 - $put(_1d, 1, 94); //#27289 - $k[$j++] = _1d; //#27289 - } //#27289 - var _1e = $k[--$j]; //#27290 - var _1h = $strcpy($s(7), "0000000"); //#27291 - var _1j = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27291 - $puti(_1h, 7 - _1j.length, _1j); //#27292 - $k[$j++] = _1e; //#27292 - $k[$j++] = _1h; //#27292 - } //#27292 - $k[$j++] = $_.lalphanumeric; //#27294 - $k[$j++] = "0000"; //#27294 - $_.numeric = $d(); //#27295 - $k[$j++] = Infinity; //#27304 - for (var _1m = 48; _1m <= 57; _1m += 1) { //#27298 - $k[$j++] = _1m; //#27298 - $k[$j++] = _1m - 43; //#27298 - $k[$j++] = 5; //#27298 - $_.tobin(); //#27298 - } //#27298 - $k[$j++] = $_.fnc1; //#27300 - $k[$j++] = "01111"; //#27300 - for (var _1o = 65; _1o <= 90; _1o += 1) { //#27300 - $k[$j++] = _1o; //#27300 - $k[$j++] = _1o - 33; //#27300 - $k[$j++] = 6; //#27300 - $_.tobin(); //#27300 - } //#27300 - $k[$j++] = 42; //#27302 - $k[$j++] = "111010"; //#27302 - for (var _1p = 44; _1p <= 47; _1p += 1) { //#27302 - $k[$j++] = _1p; //#27302 - $k[$j++] = _1p + 15; //#27302 - $k[$j++] = 6; //#27302 - $_.tobin(); //#27302 - } //#27302 - $k[$j++] = $_.lnumeric; //#27304 - $k[$j++] = "000"; //#27304 - $k[$j++] = $_.liso646; //#27304 - $k[$j++] = "00100"; //#27304 - $_.alphanumeric = $d(); //#27305 - $k[$j++] = Infinity; //#27319 - for (var _1t = 48; _1t <= 57; _1t += 1) { //#27308 - $k[$j++] = _1t; //#27308 - $k[$j++] = _1t - 43; //#27308 - $k[$j++] = 5; //#27308 - $_.tobin(); //#27308 - } //#27308 - $k[$j++] = $_.fnc1; //#27310 - $k[$j++] = "01111"; //#27310 - for (var _1v = 65; _1v <= 90; _1v += 1) { //#27310 - $k[$j++] = _1v; //#27310 - $k[$j++] = _1v - 1; //#27310 - $k[$j++] = 7; //#27310 - $_.tobin(); //#27310 - } //#27310 - for (var _1w = 97; _1w <= 122; _1w += 1) { //#27311 - $k[$j++] = _1w; //#27311 - $k[$j++] = _1w - 7; //#27311 - $k[$j++] = 7; //#27311 - $_.tobin(); //#27311 - } //#27311 - $k[$j++] = 33; //#27314 - $k[$j++] = "11101000"; //#27314 - $k[$j++] = 34; //#27314 - $k[$j++] = "11101001"; //#27314 - for (var _1x = 37; _1x <= 47; _1x += 1) { //#27314 - $k[$j++] = _1x; //#27314 - $k[$j++] = _1x + 197; //#27314 - $k[$j++] = 8; //#27314 - $_.tobin(); //#27314 - } //#27314 - for (var _1y = 58; _1y <= 63; _1y += 1) { //#27315 - $k[$j++] = _1y; //#27315 - $k[$j++] = _1y + 187; //#27315 - $k[$j++] = 8; //#27315 - $_.tobin(); //#27315 - } //#27315 - $k[$j++] = 95; //#27319 - $k[$j++] = "11111011"; //#27319 - $k[$j++] = 32; //#27319 - $k[$j++] = "11111100"; //#27319 - $k[$j++] = $_.lnumeric; //#27319 - $k[$j++] = "000"; //#27319 - $k[$j++] = $_.lalphanumeric; //#27319 - $k[$j++] = "00100"; //#27319 - $_.iso646 = $d(); //#27320 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27320 - bwipp_gs1_cc.__27322__ = 1; //#27320 - $_ = Object.getPrototypeOf($_); //#27320 - } //#27320 - if ($eq($_.method, "10")) { //#27357 - if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27340 - var _29 = $get($_.vals, 0); //#27326 - var _2E = $strcpy($s(16), "0000000000000000"); //#27330 - var _2G = $cvrs($s(16), ($cvi($geti(_29, 0, 2)) * 384) + ((($cvi($geti(_29, 2, 2)) - 1) * 32) + $cvi($geti(_29, 4, 2))), 2); //#27330 - $puti(_2E, 16 - _2G.length, _2G); //#27331 - $k[$j++] = _2E; //#27334 - $k[$j++] = Infinity; //#27334 - var _2H = $k[--$j]; //#27333 - var _2I = $k[--$j]; //#27333 - $k[$j++] = _2H; //#27333 - $k[$j++] = 1; //#27333 - $k[$j++] = 0; //#27333 - $forall(_2I, function() { //#27333 - var _2J = $k[--$j]; //#27333 - $k[$j++] = $f(_2J - 48); //#27333 - }); //#27333 - var _2M = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27334 - $k[$j++] = _2M; //#27334 - $_.cdf = $a(); //#27335 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27336 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27337 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27338 - } else { //#27340 - $_.cdf = $a([1, 0, 1, 1]); //#27340 - } //#27340 - if ($_.ais.length != 0) { //#27354 - if ($eq($get($_.ais, 0), "10")) { //#27350 - $k[$j++] = Infinity; //#27344 - $forall($get($_.vals, 0)); //#27344 - $_.gpf = $a(); //#27344 - if ($_.ais.length > 1) { //#27345 - $k[$j++] = Infinity; //#27345 - $aload($_.gpf); //#27345 - $k[$j++] = $_.fnc1; //#27345 - $_.gpf = $a(); //#27345 - } //#27345 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27346 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27347 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27348 - } else { //#27350 - $_.gpf = $a([$_.fnc1]); //#27350 - } //#27350 - } else { //#27354 - $k[$j++] = Infinity; //#27353 - $aload($_.cdf); //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $_.cdf = $a(); //#27353 - $_.gpf = $a([]); //#27354 - } //#27354 - $_.mode = "numeric"; //#27356 - } //#27356 - if ($eq($_.method, "11")) { //#27451 - $_.cdf = $a([1, 1]); //#27360 - $_.ai90 = $get($_.vals, 0); //#27361 - if ($f($_.npre + 1) != $_.ai90.length) { //#27365 - $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27363 - } else { //#27365 - $k[$j++] = ""; //#27365 - } //#27365 - $_.ai90rem = $k[--$j]; //#27367 - $k[$j++] = 'nalpha'; //#27368 - $k[$j++] = 0; //#27368 - $forall($_.ai90rem, function() { //#27368 - var _39 = $k[--$j]; //#27368 - if ((_39 >= 65) && (_39 <= 90)) { //#27368 - var _3A = $k[--$j]; //#27368 - $k[$j++] = $f(_3A + 1); //#27368 - } //#27368 - }); //#27368 - var _3B = $k[--$j]; //#27368 - $_[$k[--$j]] = _3B; //#27368 - $k[$j++] = 'nnums'; //#27369 - $k[$j++] = 0; //#27369 - $forall($_.ai90rem, function() { //#27369 - var _3E = $k[--$j]; //#27369 - if ((_3E >= 48) && (_3E <= 57)) { //#27369 - var _3F = $k[--$j]; //#27369 - $k[$j++] = $f(_3F + 1); //#27369 - } //#27369 - }); //#27369 - var _3G = $k[--$j]; //#27369 - $_[$k[--$j]] = _3G; //#27369 - $k[$j++] = 'mode'; //#27370 - if ($gt($_.nalpha, $_.nnums)) { //#27370 - $k[$j++] = "alpha"; //#27370 - } else { //#27370 - if ($_.nalpha == 0) { //#27370 - $k[$j++] = "numeric"; //#27370 - } else { //#27370 - $k[$j++] = "alphanumeric"; //#27370 - } //#27370 - } //#27370 - var _3L = $k[--$j]; //#27370 - $_[$k[--$j]] = _3L; //#27370 - if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27371 - $_.mode = "alphanumeric"; //#27371 - } //#27371 - $k[$j++] = Infinity; //#27376 - $aload($_.cdf); //#27373 - if ($eq($_.mode, "alphanumeric")) { //#27374 - $k[$j++] = 0; //#27374 - } //#27374 - if ($eq($_.mode, "numeric")) { //#27375 - $k[$j++] = 1; //#27375 - $k[$j++] = 0; //#27375 - } //#27375 - if ($eq($_.mode, "alpha")) { //#27376 - $k[$j++] = 1; //#27376 - $k[$j++] = 1; //#27376 - } //#27376 - $_.cdf = $a(); //#27376 - $k[$j++] = 'ais1'; //#27378 - if ($_.ais.length > 1) { //#27378 - $k[$j++] = $get($_.ais, 1); //#27378 - } else { //#27378 - $k[$j++] = -1; //#27378 - } //#27378 - var _3Y = $k[--$j]; //#27378 - $_[$k[--$j]] = _3Y; //#27378 - $k[$j++] = 'vals1'; //#27379 - if ($_.vals.length > 1) { //#27379 - $k[$j++] = $get($_.vals, 1); //#27379 - } else { //#27379 - $k[$j++] = -1; //#27379 - } //#27379 - var _3d = $k[--$j]; //#27379 - $_[$k[--$j]] = _3d; //#27379 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27383 - $k[$j++] = Infinity; //#27381 - $aload($_.cdf); //#27381 - if ($eq($_.ais1, "21")) { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 0; //#27381 - } else { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 1; //#27381 - } //#27381 - $_.cdf = $a(); //#27381 - } else { //#27383 - $k[$j++] = Infinity; //#27383 - $aload($_.cdf); //#27383 - $k[$j++] = 0; //#27383 - $_.cdf = $a(); //#27383 - } //#27383 - $k[$j++] = 'nval'; //#27385 - if ($_.npre != 0) { //#27385 - $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27385 - } else { //#27385 - $k[$j++] = 0; //#27385 - } //#27385 - var _3q = $k[--$j]; //#27385 - $_[$k[--$j]] = _3q; //#27385 - $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27386 - if ($k[--$j]) { //#27390 - var _3w = $k[--$j]; //#27387 - var _3x = $k[--$j]; //#27387 - $k[$j++] = _3w.length; //#27387 - $k[$j++] = _3x; //#27387 - $j--; //#27387 - var _3y = $k[--$j]; //#27387 - var _3z = $k[--$j]; //#27387 - $k[$j++] = _3y; //#27387 - $k[$j++] = _3z; //#27387 - $j--; //#27387 - $_.aval = $k[--$j]; //#27388 - } else { //#27390 - $j--; //#27390 - $_.aval = -1; //#27390 - } //#27390 - if (($_.nval < 31) && ($_.aval != -1)) { //#27416 - var _44 = $strcpy($s(5), "00000"); //#27393 - var _47 = $cvrs($s(5), $_.nval, 2); //#27393 - $puti(_44, 5 - _47.length, _47); //#27394 - $k[$j++] = _44; //#27395 - $k[$j++] = Infinity; //#27395 - var _48 = $k[--$j]; //#27395 - var _49 = $k[--$j]; //#27395 - $k[$j++] = _48; //#27395 - $forall(_49, function() { //#27395 - var _4A = $k[--$j]; //#27395 - $k[$j++] = $f(_4A - 48); //#27395 - }); //#27395 - $_.nbits = $a(); //#27395 - var _4D = $strcpy($s(4), "0000"); //#27396 - var _4G = $cvrs($s(4), $_.aval, 2); //#27396 - $puti(_4D, 4 - _4G.length, _4G); //#27397 - $k[$j++] = _4D; //#27398 - $k[$j++] = Infinity; //#27398 - var _4H = $k[--$j]; //#27398 - var _4I = $k[--$j]; //#27398 - $k[$j++] = _4H; //#27398 - $forall(_4I, function() { //#27398 - var _4J = $k[--$j]; //#27398 - $k[$j++] = $f(_4J - 48); //#27398 - }); //#27398 - $_.abits = $a(); //#27398 - $k[$j++] = Infinity; //#27402 - $aload($_.cdf); //#27400 - $aload($_.nbits); //#27401 - $aload($_.abits); //#27402 - $_.cdf = $a(); //#27402 - } else { //#27416 - var _4Q = $strcpy($s(10), "0000000000"); //#27405 - var _4T = $cvrs($s(10), $_.nval, 2); //#27405 - $puti(_4Q, 10 - _4T.length, _4T); //#27406 - $k[$j++] = _4Q; //#27407 - $k[$j++] = Infinity; //#27407 - var _4U = $k[--$j]; //#27407 - var _4V = $k[--$j]; //#27407 - $k[$j++] = _4U; //#27407 - $forall(_4V, function() { //#27407 - var _4W = $k[--$j]; //#27407 - $k[$j++] = $f(_4W - 48); //#27407 - }); //#27407 - $_.nbits = $a(); //#27407 - var _4Z = $strcpy($s(5), "00000"); //#27408 - var _4e = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27408 - $puti(_4Z, 5 - _4e.length, _4e); //#27409 - $k[$j++] = _4Z; //#27410 - $k[$j++] = Infinity; //#27410 - var _4f = $k[--$j]; //#27410 - var _4g = $k[--$j]; //#27410 - $k[$j++] = _4f; //#27410 - $forall(_4g, function() { //#27410 - var _4h = $k[--$j]; //#27410 - $k[$j++] = $f(_4h - 48); //#27410 - }); //#27410 - $_.abits = $a(); //#27410 - $k[$j++] = Infinity; //#27415 - $aload($_.cdf); //#27412 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $aload($_.nbits); //#27414 - $aload($_.abits); //#27415 - $_.cdf = $a(); //#27415 - } //#27416 - if ($ne($_.mode, "alpha")) { //#27434 - $k[$j++] = Infinity; //#27419 - $forall($_.ai90rem); //#27419 - if ($_.ais.length > 1) { //#27419 - $k[$j++] = $_.fnc1; //#27419 - } //#27419 - $_.gpf = $a(); //#27419 - } else { //#27434 - $k[$j++] = Infinity; //#27421 - $forall($_.ai90rem); //#27421 - if ($_.ais.length > 1) { //#27421 - $k[$j++] = $_.fnc1; //#27421 - } //#27421 - $_.in = $a(); //#27421 - $_.out = $a($_.in.length * 6); //#27422 - $_.j = 0; //#27423 - for (var _50 = 0, _4z = $_.in.length - 1; _50 <= _4z; _50 += 1) { //#27428 - var _54 = $get($_.alpha, $get($_.in, _50)); //#27425 - $k[$j++] = _54; //#27426 - $k[$j++] = _54; //#27426 - $k[$j++] = Infinity; //#27426 - var _55 = $k[--$j]; //#27426 - var _56 = $k[--$j]; //#27426 - $k[$j++] = _55; //#27426 - $forall(_56, function() { //#27426 - var _57 = $k[--$j]; //#27426 - $k[$j++] = $f(_57 - 48); //#27426 - }); //#27426 - $puti($_.out, $_.j, $a()); //#27426 - $_.j = $k[--$j].length + $_.j; //#27427 - } //#27427 - $k[$j++] = Infinity; //#27431 - $aload($_.cdf); //#27430 - $aload($geti($_.out, 0, $_.j)); //#27431 - $_.cdf = $a(); //#27431 - $_.gpf = $a([]); //#27433 - if ($_.ais.length > 1) { //#27434 - $_.mode = "numeric"; //#27434 - } //#27434 - } //#27434 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27436 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27437 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27438 - if ($_.ais.length != 0) { //#27450 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27449 - $k[$j++] = Infinity; //#27443 - $aload($_.gpf); //#27442 - $forall($_.vals1); //#27443 - $_.gpf = $a(); //#27443 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27445 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27446 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27447 - if ($_.ais.length != 0) { //#27448 - $k[$j++] = Infinity; //#27448 - $aload($_.gpf); //#27448 - $k[$j++] = $_.fnc1; //#27448 - $_.gpf = $a(); //#27448 - } //#27448 - } //#27448 - } //#27448 - } //#27448 - if ($eq($_.method, "0")) { //#27457 - $_.cdf = $a([0]); //#27454 - $_.gpf = $a([]); //#27455 - $_.mode = "numeric"; //#27456 - } //#27456 - for (var _5r = 0, _5q = $_.ais.length - 1; _5r <= _5q; _5r += 1) { //#27475 - $_.i = _5r; //#27461 - $_.ai = $get($_.ais, $_.i); //#27462 - $_.val = $get($_.vals, $_.i); //#27463 - var _61 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27464 - $puti(_61, 0, $_.gpf); //#27465 - $k[$j++] = _61; //#27466 - $k[$j++] = _61; //#27466 - $k[$j++] = $_.gpf.length; //#27466 - $k[$j++] = $_.ai; //#27466 - $k[$j++] = Infinity; //#27466 - var _65 = $k[--$j]; //#27466 - var _66 = $k[--$j]; //#27466 - $k[$j++] = _65; //#27466 - $forall(_66); //#27466 - var _67 = $a(); //#27466 - var _68 = $k[--$j]; //#27466 - $puti($k[--$j], _68, _67); //#27466 - var _6A = $k[--$j]; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = $_.gpf.length + $_.ai.length; //#27467 - $k[$j++] = $_.val; //#27467 - $k[$j++] = Infinity; //#27467 - var _6E = $k[--$j]; //#27467 - var _6F = $k[--$j]; //#27467 - $k[$j++] = _6E; //#27467 - $forall(_6F); //#27467 - var _6G = $a(); //#27467 - var _6H = $k[--$j]; //#27467 - $puti($k[--$j], _6H, _6G); //#27467 - $_.gpf = $k[--$j]; //#27468 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27474 - var _6Q = $a($_.gpf.length + 1); //#27470 - $puti(_6Q, 0, $_.gpf); //#27471 - $put(_6Q, $_.gpf.length, $_.fnc1); //#27472 - $_.gpf = _6Q; //#27473 - } //#27473 - } //#27473 - if (!bwipp_gs1_cc.__27491__) { //#27491 - $_ = Object.create($_); //#27491 - var _6c = new Map([ + var _1L = $s($k[--$j]); //#27592 + $k[$j++] = _1L; //#27592 + for (var _1N = 0, _1M = _1L.length - 1; _1N <= _1M; _1N += 1) { //#27592 + var _1O = $k[--$j]; //#27592 + $put(_1O, _1N, 48); //#27592 + $k[$j++] = _1O; //#27592 + } //#27592 + var _1P = $k[--$j]; //#27593 + var _1S = $cvrs($s(_1P.length), $k[--$j], 2); //#27593 + $puti(_1P, _1P.length - _1S.length, _1S); //#27593 + $k[$j++] = _1P; //#27593 + }; //#27593 + if (!bwipp_gs1_cc.__27644__) { //#27644 + $_ = Object.create($_); //#27644 + $_.fnc1 = -1; //#27598 + $_.lnumeric = -2; //#27598 + $_.lalphanumeric = -3; //#27598 + $_.liso646 = -4; //#27598 + $k[$j++] = Infinity; //#27600 + for (var _1T = 65; _1T <= 90; _1T += 1) { //#27601 + $k[$j++] = _1T; //#27601 + $k[$j++] = _1T - 65; //#27601 + $k[$j++] = 5; //#27601 + $_.tobin(); //#27601 + } //#27601 + for (var _1U = 48; _1U <= 57; _1U += 1) { //#27602 + $k[$j++] = _1U; //#27602 + $k[$j++] = _1U + 4; //#27602 + $k[$j++] = 6; //#27602 + $_.tobin(); //#27602 + } //#27602 + $k[$j++] = $_.fnc1; //#27603 + $k[$j++] = "11111"; //#27603 + $_.alpha = $d(); //#27604 + $k[$j++] = Infinity; //#27606 + for (var _1X = 0; _1X <= 119; _1X += 1) { //#27615 + var _1Z = $strcpy($s(2), "00"); //#27608 + var _1b = $cvrs($s(2), _1X, 11); //#27608 + $puti(_1Z, 2 - _1b.length, _1b); //#27609 + $k[$j++] = _1X; //#27610 + $k[$j++] = _1Z; //#27610 + if ($get(_1Z, 0) == 65) { //#27610 + var _1d = $k[--$j]; //#27610 + $put(_1d, 0, 94); //#27610 + $k[$j++] = _1d; //#27610 + } //#27610 + var _1e = $k[--$j]; //#27611 + $k[$j++] = _1e; //#27611 + if ($get(_1e, 1) == 65) { //#27611 + var _1g = $k[--$j]; //#27611 + $put(_1g, 1, 94); //#27611 + $k[$j++] = _1g; //#27611 + } //#27611 + var _1h = $k[--$j]; //#27612 + var _1k = $strcpy($s(7), "0000000"); //#27613 + var _1m = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27613 + $puti(_1k, 7 - _1m.length, _1m); //#27614 + $k[$j++] = _1h; //#27614 + $k[$j++] = _1k; //#27614 + } //#27614 + $k[$j++] = $_.lalphanumeric; //#27616 + $k[$j++] = "0000"; //#27616 + $_.numeric = $d(); //#27617 + $k[$j++] = Infinity; //#27619 + for (var _1p = 48; _1p <= 57; _1p += 1) { //#27620 + $k[$j++] = _1p; //#27620 + $k[$j++] = _1p - 43; //#27620 + $k[$j++] = 5; //#27620 + $_.tobin(); //#27620 + } //#27620 + $k[$j++] = $_.fnc1; //#27622 + $k[$j++] = "01111"; //#27622 + for (var _1r = 65; _1r <= 90; _1r += 1) { //#27622 + $k[$j++] = _1r; //#27622 + $k[$j++] = _1r - 33; //#27622 + $k[$j++] = 6; //#27622 + $_.tobin(); //#27622 + } //#27622 + $k[$j++] = 42; //#27624 + $k[$j++] = "111010"; //#27624 + for (var _1s = 44; _1s <= 47; _1s += 1) { //#27624 + $k[$j++] = _1s; //#27624 + $k[$j++] = _1s + 15; //#27624 + $k[$j++] = 6; //#27624 + $_.tobin(); //#27624 + } //#27624 + $k[$j++] = $_.lnumeric; //#27626 + $k[$j++] = "000"; //#27626 + $k[$j++] = $_.liso646; //#27626 + $k[$j++] = "00100"; //#27626 + $_.alphanumeric = $d(); //#27627 + $k[$j++] = Infinity; //#27629 + for (var _1w = 48; _1w <= 57; _1w += 1) { //#27630 + $k[$j++] = _1w; //#27630 + $k[$j++] = _1w - 43; //#27630 + $k[$j++] = 5; //#27630 + $_.tobin(); //#27630 + } //#27630 + $k[$j++] = $_.fnc1; //#27632 + $k[$j++] = "01111"; //#27632 + for (var _1y = 65; _1y <= 90; _1y += 1) { //#27632 + $k[$j++] = _1y; //#27632 + $k[$j++] = _1y - 1; //#27632 + $k[$j++] = 7; //#27632 + $_.tobin(); //#27632 + } //#27632 + for (var _1z = 97; _1z <= 122; _1z += 1) { //#27633 + $k[$j++] = _1z; //#27633 + $k[$j++] = _1z - 7; //#27633 + $k[$j++] = 7; //#27633 + $_.tobin(); //#27633 + } //#27633 + $k[$j++] = 33; //#27636 + $k[$j++] = "11101000"; //#27636 + $k[$j++] = 34; //#27636 + $k[$j++] = "11101001"; //#27636 + for (var _20 = 37; _20 <= 47; _20 += 1) { //#27636 + $k[$j++] = _20; //#27636 + $k[$j++] = _20 + 197; //#27636 + $k[$j++] = 8; //#27636 + $_.tobin(); //#27636 + } //#27636 + for (var _21 = 58; _21 <= 63; _21 += 1) { //#27637 + $k[$j++] = _21; //#27637 + $k[$j++] = _21 + 187; //#27637 + $k[$j++] = 8; //#27637 + $_.tobin(); //#27637 + } //#27637 + $k[$j++] = 95; //#27641 + $k[$j++] = "11111011"; //#27641 + $k[$j++] = 32; //#27641 + $k[$j++] = "11111100"; //#27641 + $k[$j++] = $_.lnumeric; //#27641 + $k[$j++] = "000"; //#27641 + $k[$j++] = $_.lalphanumeric; //#27641 + $k[$j++] = "00100"; //#27641 + $_.iso646 = $d(); //#27642 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27642 + bwipp_gs1_cc.__27644__ = 1; //#27642 + $_ = Object.getPrototypeOf($_); //#27642 + } //#27642 + if ($eq($_.method, "10")) { //#27679 + if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27662 + var _2C = $get($_.vals, 0); //#27648 + var _2H = $strcpy($s(16), "0000000000000000"); //#27652 + var _2J = $cvrs($s(16), ($cvi($geti(_2C, 0, 2)) * 384) + ((($cvi($geti(_2C, 2, 2)) - 1) * 32) + $cvi($geti(_2C, 4, 2))), 2); //#27652 + $puti(_2H, 16 - _2J.length, _2J); //#27653 + $k[$j++] = _2H; //#27656 + $k[$j++] = Infinity; //#27654 + var _2K = $k[--$j]; //#27655 + var _2L = $k[--$j]; //#27655 + $k[$j++] = _2K; //#27655 + $k[$j++] = 1; //#27655 + $k[$j++] = 0; //#27655 + $forall(_2L, function() { //#27655 + var _2M = $k[--$j]; //#27655 + $k[$j++] = $f(_2M - 48); //#27655 + }); //#27655 + var _2P = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27656 + $k[$j++] = _2P; //#27656 + $_.cdf = $a(); //#27657 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27658 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27659 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27660 + } else { //#27662 + $_.cdf = $a([1, 0, 1, 1]); //#27662 + } //#27662 + if ($_.ais.length != 0) { //#27676 + if ($eq($get($_.ais, 0), "10")) { //#27672 + $k[$j++] = Infinity; //#27666 + $forall($get($_.vals, 0)); //#27666 + $_.gpf = $a(); //#27666 + if ($_.ais.length > 1) { //#27667 + $k[$j++] = Infinity; //#27667 + $aload($_.gpf); //#27667 + $k[$j++] = $_.fnc1; //#27667 + $_.gpf = $a(); //#27667 + } //#27667 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27668 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27669 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27670 + } else { //#27672 + $_.gpf = $a([$_.fnc1]); //#27672 + } //#27672 + } else { //#27676 + $k[$j++] = Infinity; //#27675 + $aload($_.cdf); //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $_.cdf = $a(); //#27675 + $_.gpf = $a([]); //#27676 + } //#27676 + $_.mode = "numeric"; //#27678 + } //#27678 + if ($eq($_.method, "11")) { //#27773 + $_.cdf = $a([1, 1]); //#27682 + $_.ai90 = $get($_.vals, 0); //#27683 + if ($f($_.npre + 1) != $_.ai90.length) { //#27687 + $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27685 + } else { //#27687 + $k[$j++] = ""; //#27687 + } //#27687 + $_.ai90rem = $k[--$j]; //#27689 + $k[$j++] = 'nalpha'; //#27690 + $k[$j++] = 0; //#27690 + $forall($_.ai90rem, function() { //#27690 + var _3C = $k[--$j]; //#27690 + if ((_3C >= 65) && (_3C <= 90)) { //#27690 + var _3D = $k[--$j]; //#27690 + $k[$j++] = $f(_3D + 1); //#27690 + } //#27690 + }); //#27690 + var _3E = $k[--$j]; //#27690 + $_[$k[--$j]] = _3E; //#27690 + $k[$j++] = 'nnums'; //#27691 + $k[$j++] = 0; //#27691 + $forall($_.ai90rem, function() { //#27691 + var _3H = $k[--$j]; //#27691 + if ((_3H >= 48) && (_3H <= 57)) { //#27691 + var _3I = $k[--$j]; //#27691 + $k[$j++] = $f(_3I + 1); //#27691 + } //#27691 + }); //#27691 + var _3J = $k[--$j]; //#27691 + $_[$k[--$j]] = _3J; //#27691 + $k[$j++] = 'mode'; //#27692 + if ($gt($_.nalpha, $_.nnums)) { //#27692 + $k[$j++] = "alpha"; //#27692 + } else { //#27692 + if ($_.nalpha == 0) { //#27692 + $k[$j++] = "numeric"; //#27692 + } else { //#27692 + $k[$j++] = "alphanumeric"; //#27692 + } //#27692 + } //#27692 + var _3O = $k[--$j]; //#27692 + $_[$k[--$j]] = _3O; //#27692 + if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27693 + $_.mode = "alphanumeric"; //#27693 + } //#27693 + $k[$j++] = Infinity; //#27694 + $aload($_.cdf); //#27695 + if ($eq($_.mode, "alphanumeric")) { //#27696 + $k[$j++] = 0; //#27696 + } //#27696 + if ($eq($_.mode, "numeric")) { //#27697 + $k[$j++] = 1; //#27697 + $k[$j++] = 0; //#27697 + } //#27697 + if ($eq($_.mode, "alpha")) { //#27698 + $k[$j++] = 1; //#27698 + $k[$j++] = 1; //#27698 + } //#27698 + $_.cdf = $a(); //#27698 + $k[$j++] = 'ais1'; //#27700 + if ($_.ais.length > 1) { //#27700 + $k[$j++] = $get($_.ais, 1); //#27700 + } else { //#27700 + $k[$j++] = -1; //#27700 + } //#27700 + var _3b = $k[--$j]; //#27700 + $_[$k[--$j]] = _3b; //#27700 + $k[$j++] = 'vals1'; //#27701 + if ($_.vals.length > 1) { //#27701 + $k[$j++] = $get($_.vals, 1); //#27701 + } else { //#27701 + $k[$j++] = -1; //#27701 + } //#27701 + var _3g = $k[--$j]; //#27701 + $_[$k[--$j]] = _3g; //#27701 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27705 + $k[$j++] = Infinity; //#27703 + $aload($_.cdf); //#27703 + if ($eq($_.ais1, "21")) { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 0; //#27703 + } else { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 1; //#27703 + } //#27703 + $_.cdf = $a(); //#27703 + } else { //#27705 + $k[$j++] = Infinity; //#27705 + $aload($_.cdf); //#27705 + $k[$j++] = 0; //#27705 + $_.cdf = $a(); //#27705 + } //#27705 + $k[$j++] = 'nval'; //#27707 + if ($_.npre != 0) { //#27707 + $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27707 + } else { //#27707 + $k[$j++] = 0; //#27707 + } //#27707 + var _3t = $k[--$j]; //#27707 + $_[$k[--$j]] = _3t; //#27707 + $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27708 + if ($k[--$j]) { //#27712 + var _3z = $k[--$j]; //#27709 + var _40 = $k[--$j]; //#27709 + $k[$j++] = _3z.length; //#27709 + $k[$j++] = _40; //#27709 + $j--; //#27709 + var _41 = $k[--$j]; //#27709 + var _42 = $k[--$j]; //#27709 + $k[$j++] = _41; //#27709 + $k[$j++] = _42; //#27709 + $j--; //#27709 + $_.aval = $k[--$j]; //#27710 + } else { //#27712 + $j--; //#27712 + $_.aval = -1; //#27712 + } //#27712 + if (($_.nval < 31) && ($_.aval != -1)) { //#27738 + var _47 = $strcpy($s(5), "00000"); //#27715 + var _4A = $cvrs($s(5), $_.nval, 2); //#27715 + $puti(_47, 5 - _4A.length, _4A); //#27716 + $k[$j++] = _47; //#27717 + $k[$j++] = Infinity; //#27717 + var _4B = $k[--$j]; //#27717 + var _4C = $k[--$j]; //#27717 + $k[$j++] = _4B; //#27717 + $forall(_4C, function() { //#27717 + var _4D = $k[--$j]; //#27717 + $k[$j++] = $f(_4D - 48); //#27717 + }); //#27717 + $_.nbits = $a(); //#27717 + var _4G = $strcpy($s(4), "0000"); //#27718 + var _4J = $cvrs($s(4), $_.aval, 2); //#27718 + $puti(_4G, 4 - _4J.length, _4J); //#27719 + $k[$j++] = _4G; //#27720 + $k[$j++] = Infinity; //#27720 + var _4K = $k[--$j]; //#27720 + var _4L = $k[--$j]; //#27720 + $k[$j++] = _4K; //#27720 + $forall(_4L, function() { //#27720 + var _4M = $k[--$j]; //#27720 + $k[$j++] = $f(_4M - 48); //#27720 + }); //#27720 + $_.abits = $a(); //#27720 + $k[$j++] = Infinity; //#27721 + $aload($_.cdf); //#27722 + $aload($_.nbits); //#27723 + $aload($_.abits); //#27724 + $_.cdf = $a(); //#27724 + } else { //#27738 + var _4T = $strcpy($s(10), "0000000000"); //#27727 + var _4W = $cvrs($s(10), $_.nval, 2); //#27727 + $puti(_4T, 10 - _4W.length, _4W); //#27728 + $k[$j++] = _4T; //#27729 + $k[$j++] = Infinity; //#27729 + var _4X = $k[--$j]; //#27729 + var _4Y = $k[--$j]; //#27729 + $k[$j++] = _4X; //#27729 + $forall(_4Y, function() { //#27729 + var _4Z = $k[--$j]; //#27729 + $k[$j++] = $f(_4Z - 48); //#27729 + }); //#27729 + $_.nbits = $a(); //#27729 + var _4c = $strcpy($s(5), "00000"); //#27730 + var _4h = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27730 + $puti(_4c, 5 - _4h.length, _4h); //#27731 + $k[$j++] = _4c; //#27732 + $k[$j++] = Infinity; //#27732 + var _4i = $k[--$j]; //#27732 + var _4j = $k[--$j]; //#27732 + $k[$j++] = _4i; //#27732 + $forall(_4j, function() { //#27732 + var _4k = $k[--$j]; //#27732 + $k[$j++] = $f(_4k - 48); //#27732 + }); //#27732 + $_.abits = $a(); //#27732 + $k[$j++] = Infinity; //#27733 + $aload($_.cdf); //#27734 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $aload($_.nbits); //#27736 + $aload($_.abits); //#27737 + $_.cdf = $a(); //#27737 + } //#27738 + if ($ne($_.mode, "alpha")) { //#27756 + $k[$j++] = Infinity; //#27741 + $forall($_.ai90rem); //#27741 + if ($_.ais.length > 1) { //#27741 + $k[$j++] = $_.fnc1; //#27741 + } //#27741 + $_.gpf = $a(); //#27741 + } else { //#27756 + $k[$j++] = Infinity; //#27743 + $forall($_.ai90rem); //#27743 + if ($_.ais.length > 1) { //#27743 + $k[$j++] = $_.fnc1; //#27743 + } //#27743 + $_.in = $a(); //#27743 + $_.out = $a($_.in.length * 6); //#27744 + $_.j = 0; //#27745 + for (var _53 = 0, _52 = $_.in.length - 1; _53 <= _52; _53 += 1) { //#27750 + var _57 = $get($_.alpha, $get($_.in, _53)); //#27747 + $k[$j++] = _57; //#27748 + $k[$j++] = _57; //#27748 + $k[$j++] = Infinity; //#27748 + var _58 = $k[--$j]; //#27748 + var _59 = $k[--$j]; //#27748 + $k[$j++] = _58; //#27748 + $forall(_59, function() { //#27748 + var _5A = $k[--$j]; //#27748 + $k[$j++] = $f(_5A - 48); //#27748 + }); //#27748 + $puti($_.out, $_.j, $a()); //#27748 + $_.j = $k[--$j].length + $_.j; //#27749 + } //#27749 + $k[$j++] = Infinity; //#27751 + $aload($_.cdf); //#27752 + $aload($geti($_.out, 0, $_.j)); //#27753 + $_.cdf = $a(); //#27753 + $_.gpf = $a([]); //#27755 + if ($_.ais.length > 1) { //#27756 + $_.mode = "numeric"; //#27756 + } //#27756 + } //#27756 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27758 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27759 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27760 + if ($_.ais.length != 0) { //#27772 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27771 + $k[$j++] = Infinity; //#27763 + $aload($_.gpf); //#27764 + $forall($_.vals1); //#27765 + $_.gpf = $a(); //#27765 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27767 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27768 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27769 + if ($_.ais.length != 0) { //#27770 + $k[$j++] = Infinity; //#27770 + $aload($_.gpf); //#27770 + $k[$j++] = $_.fnc1; //#27770 + $_.gpf = $a(); //#27770 + } //#27770 + } //#27770 + } //#27770 + } //#27770 + if ($eq($_.method, "0")) { //#27779 + $_.cdf = $a([0]); //#27776 + $_.gpf = $a([]); //#27777 + $_.mode = "numeric"; //#27778 + } //#27778 + for (var _5u = 0, _5t = $_.ais.length - 1; _5u <= _5t; _5u += 1) { //#27797 + $_.i = _5u; //#27783 + $_.ai = $get($_.ais, $_.i); //#27784 + $_.val = $get($_.vals, $_.i); //#27785 + var _64 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27786 + $puti(_64, 0, $_.gpf); //#27787 + $k[$j++] = _64; //#27788 + $k[$j++] = _64; //#27788 + $k[$j++] = $_.gpf.length; //#27788 + $k[$j++] = $_.ai; //#27788 + $k[$j++] = Infinity; //#27788 + var _68 = $k[--$j]; //#27788 + var _69 = $k[--$j]; //#27788 + $k[$j++] = _68; //#27788 + $forall(_69); //#27788 + var _6A = $a(); //#27788 + var _6B = $k[--$j]; //#27788 + $puti($k[--$j], _6B, _6A); //#27788 + var _6D = $k[--$j]; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = $_.gpf.length + $_.ai.length; //#27789 + $k[$j++] = $_.val; //#27789 + $k[$j++] = Infinity; //#27789 + var _6H = $k[--$j]; //#27789 + var _6I = $k[--$j]; //#27789 + $k[$j++] = _6H; //#27789 + $forall(_6I); //#27789 + var _6J = $a(); //#27789 + var _6K = $k[--$j]; //#27789 + $puti($k[--$j], _6K, _6J); //#27789 + $_.gpf = $k[--$j]; //#27790 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27796 + var _6T = $a($_.gpf.length + 1); //#27792 + $puti(_6T, 0, $_.gpf); //#27793 + $put(_6T, $_.gpf.length, $_.fnc1); //#27794 + $_.gpf = _6T; //#27795 + } //#27795 + } //#27795 + if (!bwipp_gs1_cc.__27813__) { //#27813 + $_ = Object.create($_); //#27813 + var _6f = new Map([ ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] - ]); //#27488 - $_.bitcapsmaps = _6c; //#27490 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27490 - bwipp_gs1_cc.__27491__ = 1; //#27490 - $_ = Object.getPrototypeOf($_); //#27490 - } //#27490 + ]); //#27810 + $_.bitcapsmaps = _6f; //#27812 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27812 + bwipp_gs1_cc.__27813__ = 1; //#27812 + $_ = Object.getPrototypeOf($_); //#27812 + } //#27812 $_.rembits = function() { - $_.used = $k[--$j]; //#27494 - if ($ne($_.ccversion, "c")) { //#27517 - $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27496 - $k[$j++] = -1; //#27497 - $forall($_.bitcaps, function() { //#27497 - var _6m = $k[--$j]; //#27497 - $k[$j++] = _6m; //#27497 - if ($ge(_6m, $_.used)) { //#27497 - var _6o = $k[--$j]; //#27497 - var _6p = $k[--$j]; //#27497 - $k[$j++] = _6o; //#27497 - $k[$j++] = _6p; //#27497 - } //#27497 - $j--; //#27497 - }); //#27497 - var _6q = $k[--$j]; //#27498 - $k[$j++] = _6q; //#27498 - if (_6q != -1) { //#27498 - var _6s = $k[--$j]; //#27498 - $k[$j++] = $f(_6s - $_.used); //#27498 - } //#27498 - } else { //#27517 - var _6t = new Map([ + $_.used = $k[--$j]; //#27816 + if ($ne($_.ccversion, "c")) { //#27839 + $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27818 + $k[$j++] = -1; //#27819 + $forall($_.bitcaps, function() { //#27819 + var _6p = $k[--$j]; //#27819 + $k[$j++] = _6p; //#27819 + if ($ge(_6p, $_.used)) { //#27819 + var _6r = $k[--$j]; //#27819 + var _6s = $k[--$j]; //#27819 + $k[$j++] = _6r; //#27819 + $k[$j++] = _6s; //#27819 + } //#27819 + $j--; //#27819 + }); //#27819 + var _6t = $k[--$j]; //#27820 + $k[$j++] = _6t; //#27820 + if (_6t != -1) { //#27820 + var _6v = $k[--$j]; //#27820 + $k[$j++] = $f(_6v - $_.used); //#27820 + } //#27820 + } else { //#27839 + var _6w = new Map([ ["c", -1] - ]); //#27500 - var _6v = $get(_6t, $_.ccversion); //#27500 - var _6x = ~~Math.ceil($_.used / 8); //#27501 - $_.m = ((~~(_6x / 6)) * 5) + (_6x % 6); //#27501 - if ($_.m <= 40) { //#27502 - $k[$j++] = 8; //#27502 - } //#27502 - if (($_.m >= 41) && ($_.m <= 160)) { //#27503 - $k[$j++] = 16; //#27503 - } //#27503 - if (($_.m >= 161) && ($_.m <= 320)) { //#27504 - $k[$j++] = 32; //#27504 - } //#27504 - if (($_.m >= 321) && ($_.m <= 833)) { //#27505 - $k[$j++] = 64; //#27505 - } //#27505 - if ($_.m >= 834) { //#27506 - $k[$j++] = 32; //#27506 - } //#27506 - $_.eccws = $k[--$j]; //#27507 - $_.m = $f($f($_.m + $_.eccws) + 3); //#27508 - if ($_.cccolumns > 30) { //#27509 - $_.cccolumns = 30; //#27509 - } //#27509 - for (;;) { //#27513 - if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27511 - break; //#27511 - } //#27511 - $_.cccolumns = $_.cccolumns + 1; //#27512 - } //#27512 - $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27514 - if ($_.r < 3) { //#27515 - $_.r = 3; //#27515 - } //#27515 - var _7K = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27516 - $_.tgt = ($f(((~~(_7K / 5)) * 6) + (_7K % 5))) * 8; //#27516 - if ($_.used <= 8304) { //#27517 - $k[$j++] = $f($_.tgt - $_.used); //#27517 - } else { //#27517 - $k[$j++] = -1; //#27517 - } //#27517 - } //#27517 - var _7O = $k[--$j]; //#27519 - $k[$j++] = _7O; //#27532 - if (_7O == -1) { //#27532 - $j--; //#27520 - if ($eq($_.ccversion, "a")) { //#27528 - $_.ccversion = "b"; //#27522 - } else { //#27528 - if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27528 - $_.ccversion = "c"; //#27525 - $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27526 - } else { //#27528 - $_.ccversion = -1; //#27528 - } //#27528 - } //#27528 - $k[$j++] = $_.used; //#27531 - $_.rembits(); //#27531 - } //#27531 - }; //#27531 + ]); //#27822 + var _6y = $get(_6w, $_.ccversion); //#27822 + var _70 = ~~Math.ceil($_.used / 8); //#27823 + $_.m = ((~~(_70 / 6)) * 5) + (_70 % 6); //#27823 + if ($_.m <= 40) { //#27824 + $k[$j++] = 8; //#27824 + } //#27824 + if (($_.m >= 41) && ($_.m <= 160)) { //#27825 + $k[$j++] = 16; //#27825 + } //#27825 + if (($_.m >= 161) && ($_.m <= 320)) { //#27826 + $k[$j++] = 32; //#27826 + } //#27826 + if (($_.m >= 321) && ($_.m <= 833)) { //#27827 + $k[$j++] = 64; //#27827 + } //#27827 + if ($_.m >= 834) { //#27828 + $k[$j++] = 32; //#27828 + } //#27828 + $_.eccws = $k[--$j]; //#27829 + $_.m = $f($f($_.m + $_.eccws) + 3); //#27830 + if ($_.cccolumns > 30) { //#27831 + $_.cccolumns = 30; //#27831 + } //#27831 + for (;;) { //#27835 + if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27833 + break; //#27833 + } //#27833 + $_.cccolumns = $_.cccolumns + 1; //#27834 + } //#27834 + $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27836 + if ($_.r < 3) { //#27837 + $_.r = 3; //#27837 + } //#27837 + var _7N = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27838 + $_.tgt = ($f(((~~(_7N / 5)) * 6) + (_7N % 5))) * 8; //#27838 + if ($_.used <= 8304) { //#27839 + $k[$j++] = $f($_.tgt - $_.used); //#27839 + } else { //#27839 + $k[$j++] = -1; //#27839 + } //#27839 + } //#27839 + var _7R = $k[--$j]; //#27841 + $k[$j++] = _7R; //#27854 + if (_7R == -1) { //#27854 + $j--; //#27842 + if ($eq($_.ccversion, "a")) { //#27850 + $_.ccversion = "b"; //#27844 + } else { //#27850 + if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27850 + $_.ccversion = "c"; //#27847 + $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27848 + } else { //#27850 + $_.ccversion = -1; //#27850 + } //#27850 + } //#27850 + $k[$j++] = $_.used; //#27853 + $_.rembits(); //#27853 + } //#27853 + }; //#27853 $_.encode = function() { - var _7U = $k[--$j]; //#27536 - $k[$j++] = _7U; //#27536 - if ($ne(_7U, 'raw')) { //#27536 - var _7V = $k[--$j]; //#27536 - var _7X = $get(_7V, $k[--$j]); //#27536 - $k[$j++] = _7X; //#27536 - } else { //#27536 - $j--; //#27536 - } //#27536 - $k[$j++] = Infinity; //#27537 - var _7Y = $k[--$j]; //#27537 - var _7Z = $k[--$j]; //#27537 - $k[$j++] = _7Y; //#27537 - $forall(_7Z, function() { //#27537 - var _7a = $k[--$j]; //#27537 - $k[$j++] = $f(_7a - 48); //#27537 - }); //#27537 - var _7b = $a(); //#27537 - $puti($_.gpfenc, $_.j, _7b); //#27539 - $_.j = _7b.length + $_.j; //#27540 - }; //#27540 - $k[$j++] = Infinity; //#27544 - for (var _7g = 0, _7h = $_.gpf.length; _7g < _7h; _7g++) { //#27544 - $k[$j++] = 0; //#27544 - } //#27544 - $k[$j++] = 0; //#27544 - $k[$j++] = -1; //#27544 - $_.numericruns = $a(); //#27544 - $k[$j++] = Infinity; //#27545 - for (var _7k = 0, _7l = $_.gpf.length; _7k < _7l; _7k++) { //#27545 - $k[$j++] = 0; //#27545 - } //#27545 - $k[$j++] = 0; //#27545 - $_.alphanumericruns = $a(); //#27545 - $k[$j++] = Infinity; //#27546 - for (var _7o = 0, _7p = $_.gpf.length; _7o < _7p; _7o++) { //#27546 - $k[$j++] = 0; //#27546 - } //#27546 - $k[$j++] = 9999; //#27546 - $_.nextiso646only = $a(); //#27546 - for (var _7s = $_.gpf.length - 1; _7s >= 0; _7s -= 1) { //#27568 - $_.i = _7s; //#27548 - var _7x = $strcpy($s(2), "00"); //#27550 - var _80 = $get($_.gpf, $_.i); //#27551 - $k[$j++] = $get($_.gpf, $_.i); //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = 0; //#27551 - $k[$j++] = _80; //#27551 - if (_80 == $_.fnc1) { //#27551 - $j--; //#27551 - $k[$j++] = 94; //#27551 - } //#27551 - var _82 = $k[--$j]; //#27551 - var _83 = $k[--$j]; //#27551 - $put($k[--$j], _83, _82); //#27551 - if ($_.i < ($_.gpf.length - 1)) { //#27552 - var _87 = $k[--$j]; //#27552 - var _8A = $get($_.gpf, $_.i + 1); //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = 1; //#27552 - $k[$j++] = _8A; //#27552 - if (_8A == $_.fnc1) { //#27552 - $j--; //#27552 - $k[$j++] = 94; //#27552 - } //#27552 - var _8C = $k[--$j]; //#27552 - var _8D = $k[--$j]; //#27552 - $put($k[--$j], _8D, _8C); //#27552 - } //#27552 - var _8H = $get($_.numeric, $k[--$j]) !== undefined; //#27553 - if (_8H) { //#27556 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27554 - } else { //#27556 - $put($_.numericruns, $_.i, 0); //#27556 - } //#27556 - var _8P = $k[--$j]; //#27558 - var _8R = $get($_.alphanumeric, _8P) !== undefined; //#27558 - $k[$j++] = _8P; //#27562 - if (_8R) { //#27561 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27559 - } else { //#27561 - $put($_.alphanumericruns, $_.i, 0); //#27561 - } //#27561 - var _8Z = $k[--$j]; //#27563 - var _8b = $get($_.iso646, _8Z) !== undefined; //#27563 - var _8d = $get($_.alphanumeric, _8Z) !== undefined; //#27563 - if (_8b && (!_8d)) { //#27566 - $put($_.nextiso646only, $_.i, 0); //#27564 - } else { //#27566 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27566 - } //#27566 - } //#27566 - $_.gpfenc = $a(8304); //#27571 - $_.i = 0; //#27572 - $_.j = 0; //#27572 - for (;;) { //#27662 - if ($_.i == $_.gpf.length) { //#27574 - break; //#27574 - } //#27574 - for (;;) { //#27661 - if ($eq($_.mode, "numeric")) { //#27610 - if ($_.i <= ($_.gpf.length - 2)) { //#27607 - var _8r = $s(2); //#27579 - var _8u = $get($_.gpf, $_.i); //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = 0; //#27580 - $k[$j++] = _8u; //#27580 - if (_8u == $_.fnc1) { //#27580 - $j--; //#27580 - $k[$j++] = 94; //#27580 - } //#27580 - var _8w = $k[--$j]; //#27580 - var _8x = $k[--$j]; //#27580 - $put($k[--$j], _8x, _8w); //#27580 - var _8z = $k[--$j]; //#27581 - var _92 = $get($_.gpf, $_.i + 1); //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = 1; //#27581 - $k[$j++] = _92; //#27581 - if (_92 == $_.fnc1) { //#27581 - $j--; //#27581 - $k[$j++] = 94; //#27581 - } //#27581 - var _94 = $k[--$j]; //#27581 - var _95 = $k[--$j]; //#27581 - $put($k[--$j], _95, _94); //#27581 - var _97 = $k[--$j]; //#27582 - var _99 = $get($_.numeric, _97) !== undefined; //#27582 - $k[$j++] = _97; //#27586 - if (_99) { //#27586 - $k[$j++] = $_.numeric; //#27583 - $_.encode(); //#27583 - $_.i = $_.i + 2; //#27584 - break; //#27585 - } //#27585 - $j--; //#27587 - $k[$j++] = $_.lalphanumeric; //#27588 - $k[$j++] = $_.numeric; //#27588 - $_.encode(); //#27588 - $_.mode = "alphanumeric"; //#27589 - break; //#27590 - } else { //#27607 - var _9G = $get($_.gpf, $_.i); //#27592 - if ((_9G < 48) || (_9G > 57)) { //#27596 - $k[$j++] = $_.lalphanumeric; //#27593 - $k[$j++] = $_.numeric; //#27593 - $_.encode(); //#27593 - $_.mode = "alphanumeric"; //#27594 - break; //#27595 - } //#27595 - $k[$j++] = 'rem'; //#27597 - $k[$j++] = $_.cdf.length + $_.j; //#27597 - $_.rembits(); //#27597 - var _9L = $k[--$j]; //#27597 - $_[$k[--$j]] = _9L; //#27597 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#27607 - var _9S = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27599 - var _9X = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27600 - $puti(_9S, 4 - _9X.length, _9X); //#27601 - $k[$j++] = _9S; //#27601 - $k[$j++] = 'raw'; //#27601 - $_.encode(); //#27601 - $_.i = $_.i + 1; //#27602 - break; //#27603 - } else { //#27607 - var _9Z = $s(2); //#27605 - $put(_9Z, 0, $get($_.gpf, $_.i)); //#27605 - $put(_9Z, 1, 94); //#27605 - $k[$j++] = _9Z; //#27605 - $k[$j++] = $_.numeric; //#27605 - $_.encode(); //#27605 - $_.i = $_.i + 1; //#27606 - break; //#27607 - } //#27607 - } //#27607 - } //#27607 - if ($eq($_.mode, "alphanumeric")) { //#27637 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27618 - $k[$j++] = $_.fnc1; //#27614 - $k[$j++] = $_.alphanumeric; //#27614 - $_.encode(); //#27614 - $_.mode = "numeric"; //#27615 - $_.i = $_.i + 1; //#27616 - break; //#27617 - } //#27617 - var _9p = $get($_.gpf, $_.i); //#27619 - var _9r = $get($_.iso646, _9p) !== undefined; //#27619 - var _9t = $get($_.alphanumeric, _9p) !== undefined; //#27619 - if (_9r && (!_9t)) { //#27623 - $k[$j++] = $_.liso646; //#27620 - $k[$j++] = $_.alphanumeric; //#27620 - $_.encode(); //#27620 - $_.mode = "iso646"; //#27621 - break; //#27622 - } //#27622 - if ($get($_.numericruns, $_.i) >= 6) { //#27628 - $k[$j++] = $_.lnumeric; //#27625 - $k[$j++] = $_.alphanumeric; //#27625 - $_.encode(); //#27625 - $_.mode = "numeric"; //#27626 - break; //#27627 - } //#27627 - var _A3 = $get($_.numericruns, $_.i); //#27629 - if ((_A3 >= 4) && ($f(_A3 + $_.i) == $_.gpf.length)) { //#27633 - $k[$j++] = $_.lnumeric; //#27630 - $k[$j++] = $_.alphanumeric; //#27630 - $_.encode(); //#27630 - $_.mode = "numeric"; //#27631 - break; //#27632 - } //#27632 - $k[$j++] = $get($_.gpf, $_.i); //#27634 - $k[$j++] = $_.alphanumeric; //#27634 - $_.encode(); //#27634 - $_.i = $_.i + 1; //#27635 - break; //#27636 - } //#27636 - if ($eq($_.mode, "iso646")) { //#27659 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27645 - $k[$j++] = $_.fnc1; //#27641 - $k[$j++] = $_.iso646; //#27641 - $_.encode(); //#27641 - $_.mode = "numeric"; //#27642 - $_.i = $_.i + 1; //#27643 - break; //#27644 - } //#27644 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27650 - $k[$j++] = $_.lnumeric; //#27647 - $k[$j++] = $_.iso646; //#27647 - $_.encode(); //#27647 - $_.mode = "numeric"; //#27648 - break; //#27649 - } //#27649 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27655 - $k[$j++] = $_.lalphanumeric; //#27652 - $k[$j++] = $_.iso646; //#27652 - $_.encode(); //#27652 - $_.mode = "alphanumeric"; //#27653 - break; //#27654 - } //#27654 - $k[$j++] = $get($_.gpf, $_.i); //#27656 - $k[$j++] = $_.iso646; //#27656 - $_.encode(); //#27656 - $_.i = $_.i + 1; //#27657 - break; //#27658 - } //#27658 - } //#27658 - } //#27658 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27663 - $k[$j++] = 'pad'; //#27666 - $k[$j++] = $_.cdf.length + $_.gpf.length; //#27666 - $_.rembits(); //#27666 - var _Am = $a($k[--$j]); //#27666 - $_[$k[--$j]] = _Am; //#27666 - if ($_.pad.length > 0) { //#27678 - for (var _Ar = 0, _Aq = $_.pad.length - 1; _Ar <= _Aq; _Ar += 5) { //#27671 - $_.i = _Ar; //#27669 - var _As = $_.pad; //#27670 - var _At = $_.i; //#27670 - var _Au = $a([0, 0, 1, 0, 0]); //#27670 - var _Av = $_.pad; //#27670 - var _Aw = $_.i; //#27670 - var _Ax = 5; //#27670 - var _Ay = _Av.length - _Aw; //#27670 - if ((_Av.length - _Aw) > 5) { //#27670 - var _ = _Ax; //#27670 - _Ax = _Ay; //#27670 - _Ay = _; //#27670 - } //#27670 - $puti(_As, _At, $geti(_Au, 0, _Ay)); //#27670 - } //#27670 - if ($eq($_.mode, "numeric")) { //#27674 - $k[$j++] = Infinity; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $aload($_.pad); //#27673 - $_.pad = $geti($a(), 0, $_.pad.length); //#27673 - } //#27673 - if ($eq($_.mode, "alpha")) { //#27677 - $k[$j++] = Infinity; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $aload($_.pad); //#27676 - $_.pad = $geti($a(), 0, $_.pad.length); //#27676 - } //#27676 - } //#27676 - $k[$j++] = Infinity; //#27684 - $aload($_.cdf); //#27682 - $aload($_.gpf); //#27683 - $aload($_.pad); //#27684 - $_.bits = $a(); //#27684 - if (!bwipp_gs1_cc.__27702__) { //#27702 - $_ = Object.create($_); //#27702 - $k[$j++] = Infinity; //#27690 - $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#27690 - for (var _BF = 0, _BG = 68; _BF < _BG; _BF++) { //#27690 - $k[$j++] = $a(7); //#27690 - } //#27690 - $_.pwr928 = $a(); //#27690 - for (var _BJ = 1; _BJ <= 68; _BJ += 1) { //#27701 - $_.j = _BJ; //#27693 - $_.v = 0; //#27694 - for (var _BK = 6; _BK >= 1; _BK -= 1) { //#27699 - $_.i = _BK; //#27696 - $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#27697 - $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#27698 - } //#27698 - $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#27700 - } //#27700 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27700 - bwipp_gs1_cc.__27702__ = 1; //#27700 - $_ = Object.getPrototypeOf($_); //#27700 - } //#27700 - if ($_.ccversion == "a") { //#27744 - $k[$j++] = Infinity; //#27705 - for (var _Bg = 0, _Bh = 28; _Bg < _Bh; _Bg++) { //#27705 - $k[$j++] = 0; //#27705 - } //#27705 - $_.cws = $a(); //#27705 - $_.b = 0; //#27706 - $_.c = 0; //#27706 - for (;;) { //#27730 - if ($_.b == $_.bits.length) { //#27708 - break; //#27708 - } //#27708 - var _Bl = $_.bits; //#27709 - var _Bm = $_.b; //#27709 - var _Bn = $_.bits; //#27709 - var _Bo = $_.b; //#27709 - var _Bp = _Bn.length - _Bo; //#27709 - var _Bq = 69; //#27709 - if (69 > (_Bn.length - _Bo)) { //#27709 - var _ = _Bp; //#27709 - _Bp = _Bq; //#27709 - _Bq = _; //#27709 - } //#27709 - $_.bs = $geti(_Bl, _Bm, _Bq); //#27709 - $_.bsl = $_.bs.length; //#27710 - $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#27711 - $_.csl = $_.cs.length; //#27712 - for (var _C0 = 0, _Bz = $_.bsl - 1; _C0 <= _Bz; _C0 += 1) { //#27722 - $_.i = _C0; //#27714 - for (var _C3 = 0, _C2 = $_.csl - 1; _C3 <= _C2; _C3 += 1) { //#27721 - $_.j = _C3; //#27716 - var _C4 = $_.cs; //#27717 - var _C5 = $_.j; //#27717 - $put(_C4, _C5, $f($get(_C4, _C5) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#27720 - } //#27720 - } //#27720 - for (var _CI = $_.csl - 1; _CI >= 1; _CI -= 1) { //#27727 - $_.i = _CI; //#27724 - var _CJ = $_.cs; //#27725 - var _CK = $_.i; //#27725 - $put(_CJ, _CK - 1, $f($get(_CJ, _CK - 1) + (~~($get($_.cs, $_.i) / 928)))); //#27725 - var _CP = $_.cs; //#27726 - var _CQ = $_.i; //#27726 - $put(_CP, _CQ, $get(_CP, _CQ) % 928); //#27726 - } //#27726 - $_.b = $_.b + $_.bsl; //#27728 - $_.c = $_.c + $_.csl; //#27729 - } //#27729 - $_.cws = $geti($_.cws, 0, $_.c); //#27731 - $_.barcode = $s($_.cws.length * 4); //#27732 - for (var _Cd = 0, _Cc = $_.cws.length - 1; _Cd <= _Cc; _Cd += 1) { //#27738 - $_.i = _Cd; //#27734 - var _Cf = $strcpy($s(4), "^000"); //#27735 - var _Ck = $cvrs($s(4), $get($_.cws, $_.i), 10); //#27735 - $puti(_Cf, 4 - _Ck.length, _Ck); //#27736 - $puti($_.barcode, $_.i * 4, _Cf); //#27737 - } //#27737 - delete $_.options["parse"]; //#27739 - $put($_.options, "dontdraw", true); //#27740 - $put($_.options, "cca", true); //#27741 - $put($_.options, "columns", $_.cccolumns); //#27742 - $k[$j++] = 'args'; //#27743 - $k[$j++] = $_.barcode; //#27743 - $k[$j++] = $_.options; //#27743 - bwipp_micropdf417(); //#27743 - var _Cu = $k[--$j]; //#27743 - $_[$k[--$j]] = _Cu; //#27743 - } //#27743 - if ($_.ccversion == "b") { //#27758 - $_.barcode = $s(~~($_.bits.length / 8)); //#27747 - for (var _D1 = 0, _D0 = $_.barcode.length - 1; _D1 <= _D0; _D1 += 1) { //#27752 - $_.i = _D1; //#27749 - var _D4 = $geti($_.bits, $_.i * 8, 8); //#27750 - $k[$j++] = 0; //#27750 - for (var _D5 = 0, _D6 = _D4.length; _D5 < _D6; _D5++) { //#27750 - var _D8 = $k[--$j]; //#27750 - $k[$j++] = $f(_D8 + $get(_D4, _D5)) * 2; //#27750 - } //#27750 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27751 - } //#27751 - delete $_.options["parse"]; //#27753 - $put($_.options, "dontdraw", true); //#27754 - $put($_.options, "ccb", true); //#27755 - $put($_.options, "columns", $_.cccolumns); //#27756 - $k[$j++] = 'args'; //#27757 - $k[$j++] = $_.barcode; //#27757 - $k[$j++] = $_.options; //#27757 - bwipp_micropdf417(); //#27757 - var _DJ = $k[--$j]; //#27757 - $_[$k[--$j]] = _DJ; //#27757 - } //#27757 - if ($_.ccversion == "c") { //#27773 - $_.barcode = $s(~~($_.bits.length / 8)); //#27761 - for (var _DQ = 0, _DP = $_.barcode.length - 1; _DQ <= _DP; _DQ += 1) { //#27766 - $_.i = _DQ; //#27763 - var _DT = $geti($_.bits, $_.i * 8, 8); //#27764 - $k[$j++] = 0; //#27764 - for (var _DU = 0, _DV = _DT.length; _DU < _DV; _DU++) { //#27764 - var _DX = $k[--$j]; //#27764 - $k[$j++] = $f(_DX + $get(_DT, _DU)) * 2; //#27764 - } //#27764 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27765 - } //#27765 - delete $_.options["parse"]; //#27767 - $put($_.options, "dontdraw", true); //#27768 - $put($_.options, "ccc", true); //#27769 - $put($_.options, "columns", $_.cccolumns); //#27770 - $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#27771 - $k[$j++] = 'args'; //#27772 - $k[$j++] = $_.barcode; //#27772 - $k[$j++] = $_.options; //#27772 - bwipp_pdf417(); //#27772 - var _Dk = $k[--$j]; //#27772 - $_[$k[--$j]] = _Dk; //#27772 - } //#27772 - $k[$j++] = $_.args; //#27776 - if (!$_.dontdraw) { //#27776 - bwipp_renmatrix(); //#27776 - } //#27776 - $_ = Object.getPrototypeOf($_); //#27778 - $_ = Object.getPrototypeOf($_); //#27780 -} - -function bwipp_ean13composite() { - $_ = Object.create($_); //#27812 - $_.dontdraw = false; //#27815 - $_.usematrix = false; //#27816 - $_.parse = false; //#27817 - $_.dontlint = false; //#27818 - $_.lintreqs = true; //#27819 - $k[$j++] = $_; //#27821 - bwipp_processoptions(); //#27821 - $_.options = $k[--$j]; //#27821 - $_.barcode = $k[--$j]; //#27822 - if ($_.dontdraw) { //#27824 - $_.usematrix = true; //#27824 - } //#27824 - $search($_.barcode, "|"); //#27827 - if ($k[--$j]) { //#27832 - $_.linear = $k[--$j]; //#27828 - $j--; //#27829 - $_.comp = $k[--$j]; //#27830 - } else { //#27832 - $j--; //#27832 - $k[$j++] = 'bwipp.missingCompositeComponent#27832'; //#27832 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27832 - bwipp_raiseerror(); //#27832 - } //#27832 - $put($_.options, "lintype", "ean13"); //#27835 - $put($_.options, "inkspread", "0"); //#27836 - $put($_.options, "dontdraw", true); //#27837 - $put($_.options, "dontlint", true); //#27838 - var _C = $s($_.comp.length + 18); //#27841 - $puti(_C, 0, "(01)00000000000000"); //#27842 - $puti(_C, 18, $_.comp); //#27843 - $k[$j++] = _C; //#27844 - $k[$j++] = 'ai'; //#27844 - bwipp_gs1process(); //#27844 - $j -= 3; //#27844 - $k[$j++] = $_.linear; //#27847 - $k[$j++] = $_.options; //#27847 - bwipp_ean13(); //#27847 - if (!$_.usematrix) { //#27937 - $$.save(); //#27849 - bwipp_renlinear(); //#27851 - $$.rmoveto(-1, 72); //#27854 - $k[$j++] = Infinity; //#27865 - $k[$j++] = Infinity; //#27859 - $k[$j++] = 0; //#27857 - $k[$j++] = 1; //#27857 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#27857 - $k[$j++] = 0; //#27857 - } //#27857 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#27858 - $k[$j++] = 0; //#27858 + var _7X = $k[--$j]; //#27858 + $k[$j++] = _7X; //#27858 + if ($ne(_7X, 'raw')) { //#27858 + var _7Y = $k[--$j]; //#27858 + var _7a = $get(_7Y, $k[--$j]); //#27858 + $k[$j++] = _7a; //#27858 + } else { //#27858 + $j--; //#27858 } //#27858 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#27859 - $k[$j++] = 0; //#27859 - } //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - var _N = $a(); //#27859 - $k[$j++] = 'ren'; //#27865 - $k[$j++] = bwipp_renmatrix; //#27865 - $k[$j++] = 'pixs'; //#27865 - $k[$j++] = _N; //#27865 - $k[$j++] = 'pixx'; //#27865 - $k[$j++] = 97; //#27865 - $k[$j++] = 'pixy'; //#27865 - $k[$j++] = 3; //#27865 - $k[$j++] = 'height'; //#27865 - $k[$j++] = 6 / 72; //#27865 - $k[$j++] = 'width'; //#27865 - $k[$j++] = 97 / 72; //#27865 - $k[$j++] = 'opt'; //#27865 - $k[$j++] = $_.options; //#27865 - var _P = $d(); //#27865 - $k[$j++] = _P; //#27866 - bwipp_renmatrix(); //#27866 - $$.rmoveto(-2, 6); //#27869 - $k[$j++] = $_.comp; //#27869 - $k[$j++] = $_.options; //#27869 - bwipp_gs1_cc(); //#27869 - bwipp_renmatrix(); //#27869 - $$.restore(); //#27871 - } else { //#27937 - $_.linsym = $k[--$j]; //#27873 - $_.sbs = $get($_.linsym, 'sbs'); //#27874 - $_.bhs = $get($_.linsym, 'bhs'); //#27875 - $_.bbs = $get($_.linsym, 'bbs'); //#27876 - $k[$j++] = 'linwidth'; //#27877 - $k[$j++] = 0; //#27877 - $forall($_.sbs, function() { //#27877 - var _a = $k[--$j]; //#27877 - var _b = $k[--$j]; //#27877 - $k[$j++] = $f(_b + $cvi(_a)); //#27877 - }); //#27877 - var _c = $k[--$j]; //#27877 - $_[$k[--$j]] = _c; //#27877 - $k[$j++] = 'compsym'; //#27879 - $k[$j++] = $_.comp; //#27879 - $k[$j++] = $_.options; //#27879 - bwipp_gs1_cc(); //#27879 - var _g = $k[--$j]; //#27879 - $_[$k[--$j]] = _g; //#27879 - $_.ccpixs = $get($_.compsym, 'pixs'); //#27880 - $_.ccpixx = $get($_.compsym, 'pixx'); //#27881 - $k[$j++] = Infinity; //#27883 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#27883 - $k[$j++] = 0; //#27883 + $k[$j++] = Infinity; //#27859 + var _7b = $k[--$j]; //#27859 + var _7c = $k[--$j]; //#27859 + $k[$j++] = _7b; //#27859 + $forall(_7c, function() { //#27859 + var _7d = $k[--$j]; //#27859 + $k[$j++] = $f(_7d - 48); //#27859 + }); //#27859 + var _7e = $a(); //#27859 + $puti($_.gpfenc, $_.j, _7e); //#27861 + $_.j = _7e.length + $_.j; //#27862 + }; //#27862 + $k[$j++] = Infinity; //#27866 + for (var _7j = 0, _7k = $_.gpf.length; _7j < _7k; _7j++) { //#27866 + $k[$j++] = 0; //#27866 + } //#27866 + $k[$j++] = 0; //#27866 + $k[$j++] = -1; //#27866 + $_.numericruns = $a(); //#27866 + $k[$j++] = Infinity; //#27867 + for (var _7n = 0, _7o = $_.gpf.length; _7n < _7o; _7n++) { //#27867 + $k[$j++] = 0; //#27867 + } //#27867 + $k[$j++] = 0; //#27867 + $_.alphanumericruns = $a(); //#27867 + $k[$j++] = Infinity; //#27868 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#27868 + $k[$j++] = 0; //#27868 + } //#27868 + $k[$j++] = 9999; //#27868 + $_.nextiso646only = $a(); //#27868 + for (var _7v = $_.gpf.length - 1; _7v >= 0; _7v -= 1) { //#27890 + $_.i = _7v; //#27870 + var _80 = $strcpy($s(2), "00"); //#27872 + var _83 = $get($_.gpf, $_.i); //#27873 + $k[$j++] = $get($_.gpf, $_.i); //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = 0; //#27873 + $k[$j++] = _83; //#27873 + if (_83 == $_.fnc1) { //#27873 + $j--; //#27873 + $k[$j++] = 94; //#27873 + } //#27873 + var _85 = $k[--$j]; //#27873 + var _86 = $k[--$j]; //#27873 + $put($k[--$j], _86, _85); //#27873 + if ($_.i < ($_.gpf.length - 1)) { //#27874 + var _8A = $k[--$j]; //#27874 + var _8D = $get($_.gpf, $_.i + 1); //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = 1; //#27874 + $k[$j++] = _8D; //#27874 + if (_8D == $_.fnc1) { //#27874 + $j--; //#27874 + $k[$j++] = 94; //#27874 + } //#27874 + var _8F = $k[--$j]; //#27874 + var _8G = $k[--$j]; //#27874 + $put($k[--$j], _8G, _8F); //#27874 + } //#27874 + var _8K = $get($_.numeric, $k[--$j]) !== undefined; //#27875 + if (_8K) { //#27878 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27876 + } else { //#27878 + $put($_.numericruns, $_.i, 0); //#27878 + } //#27878 + var _8S = $k[--$j]; //#27880 + var _8U = $get($_.alphanumeric, _8S) !== undefined; //#27880 + $k[$j++] = _8S; //#27884 + if (_8U) { //#27883 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27881 + } else { //#27883 + $put($_.alphanumericruns, $_.i, 0); //#27883 } //#27883 - $_.linpad = $a(); //#27883 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#27885 - if ($_.diff > 0) { //#27891 - $k[$j++] = Infinity; //#27887 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#27887 - $k[$j++] = 0; //#27887 - } //#27887 - $_.ccrpad = $a(); //#27887 - $_.pixx = $f($_.ccpixx + $_.diff); //#27888 - } else { //#27891 - $_.ccrpad = $a(0); //#27890 - $_.pixx = $_.ccpixx; //#27891 - } //#27891 - $k[$j++] = Infinity; //#27919 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#27898 - $_.i = _15; //#27896 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#27897 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#27897 - $aload($_.ccrpad); //#27897 - } //#27897 - } //#27897 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#27899 - $aload($_.linpad); //#27899 - $k[$j++] = 0; //#27899 - $k[$j++] = 1; //#27899 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#27899 - $k[$j++] = 0; //#27899 - } //#27899 - $k[$j++] = 1; //#27899 - $k[$j++] = 0; //#27899 - $aload($_.ccrpad); //#27899 - } //#27899 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#27900 - $aload($_.linpad); //#27900 - $k[$j++] = 1; //#27900 - $k[$j++] = 0; //#27900 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#27900 - $k[$j++] = 0; //#27900 - } //#27900 - $k[$j++] = 0; //#27900 - $k[$j++] = 1; //#27900 - $aload($_.ccrpad); //#27900 - } //#27900 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#27901 - $aload($_.linpad); //#27901 - $k[$j++] = 0; //#27901 - $k[$j++] = 1; //#27901 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#27901 - $k[$j++] = 0; //#27901 - } //#27901 - $k[$j++] = 1; //#27901 - $k[$j++] = 0; //#27901 - $aload($_.ccrpad); //#27901 - } //#27901 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#27920 - $_.y = _1W; //#27903 - $aload($_.linpad); //#27904 - $k[$j++] = 0; //#27918 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#27918 - $_.i = _1a; //#27907 - if (($_.i % 2) == 0) { //#27916 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#27910 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#27913 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#27911 - $k[$j++] = 0; //#27911 - } //#27911 - } else { //#27913 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#27913 - $k[$j++] = 1; //#27913 - } //#27913 - } //#27913 - } else { //#27916 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#27916 - $k[$j++] = 0; //#27916 - } //#27916 - } //#27916 - } //#27916 - $k[$j++] = 0; //#27919 - } //#27919 - $_.pixs = $a(); //#27919 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#27923 - var _29 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#27931 - $k[$j++] = _29; //#27938 - if (!$_.dontdraw) { //#27938 - $$.save(); //#27935 - bwipp_renmatrix(); //#27936 - $$.restore(); //#27937 - } //#27937 - } //#27937 - $_ = Object.getPrototypeOf($_); //#27941 -} - -function bwipp_ean8composite() { - $_ = Object.create($_); //#27973 - $_.dontdraw = false; //#27976 - $_.usematrix = false; //#27977 - $_.parse = false; //#27978 - $_.dontlint = false; //#27979 - $_.lintreqs = true; //#27980 - $k[$j++] = $_; //#27982 - bwipp_processoptions(); //#27982 - $_.options = $k[--$j]; //#27982 - $_.barcode = $k[--$j]; //#27983 - if ($_.dontdraw) { //#27985 - $_.usematrix = true; //#27985 - } //#27985 - $search($_.barcode, "|"); //#27988 - if ($k[--$j]) { //#27993 - $_.linear = $k[--$j]; //#27989 - $j--; //#27990 - $_.comp = $k[--$j]; //#27991 - } else { //#27993 - $j--; //#27993 - $k[$j++] = 'bwipp.missingCompositeComponent#27993'; //#27993 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27993 - bwipp_raiseerror(); //#27993 - } //#27993 - $put($_.options, "lintype", "ean8"); //#27997 - $put($_.options, "inkspread", "0"); //#27998 - $put($_.options, "dontdraw", true); //#27999 - $put($_.options, "dontlint", true); //#28000 - var _C = $s($_.comp.length + 18); //#28003 - $puti(_C, 0, "(01)00000000000000"); //#28004 - $puti(_C, 18, $_.comp); //#28005 - $k[$j++] = _C; //#28006 - $k[$j++] = 'ai'; //#28006 - bwipp_gs1process(); //#28006 - $j -= 3; //#28006 - $k[$j++] = $_.linear; //#28009 - $k[$j++] = $_.options; //#28009 - bwipp_ean8(); //#28009 - if (!$_.usematrix) { //#28101 - $$.save(); //#28011 - bwipp_renlinear(); //#28013 - $$.rmoveto(-1, 72); //#28016 + var _8c = $k[--$j]; //#27885 + var _8e = $get($_.iso646, _8c) !== undefined; //#27885 + var _8g = $get($_.alphanumeric, _8c) !== undefined; //#27885 + if (_8e && (!_8g)) { //#27888 + $put($_.nextiso646only, $_.i, 0); //#27886 + } else { //#27888 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27888 + } //#27888 + } //#27888 + $_.gpfenc = $a(8304); //#27893 + $_.i = 0; //#27894 + $_.j = 0; //#27894 + for (;;) { //#27984 + if ($_.i == $_.gpf.length) { //#27896 + break; //#27896 + } //#27896 + for (;;) { //#27983 + if ($eq($_.mode, "numeric")) { //#27932 + if ($_.i <= ($_.gpf.length - 2)) { //#27929 + var _8u = $s(2); //#27901 + var _8x = $get($_.gpf, $_.i); //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = 0; //#27902 + $k[$j++] = _8x; //#27902 + if (_8x == $_.fnc1) { //#27902 + $j--; //#27902 + $k[$j++] = 94; //#27902 + } //#27902 + var _8z = $k[--$j]; //#27902 + var _90 = $k[--$j]; //#27902 + $put($k[--$j], _90, _8z); //#27902 + var _92 = $k[--$j]; //#27903 + var _95 = $get($_.gpf, $_.i + 1); //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = 1; //#27903 + $k[$j++] = _95; //#27903 + if (_95 == $_.fnc1) { //#27903 + $j--; //#27903 + $k[$j++] = 94; //#27903 + } //#27903 + var _97 = $k[--$j]; //#27903 + var _98 = $k[--$j]; //#27903 + $put($k[--$j], _98, _97); //#27903 + var _9A = $k[--$j]; //#27904 + var _9C = $get($_.numeric, _9A) !== undefined; //#27904 + $k[$j++] = _9A; //#27908 + if (_9C) { //#27908 + $k[$j++] = $_.numeric; //#27905 + $_.encode(); //#27905 + $_.i = $_.i + 2; //#27906 + break; //#27907 + } //#27907 + $j--; //#27909 + $k[$j++] = $_.lalphanumeric; //#27910 + $k[$j++] = $_.numeric; //#27910 + $_.encode(); //#27910 + $_.mode = "alphanumeric"; //#27911 + break; //#27912 + } else { //#27929 + var _9J = $get($_.gpf, $_.i); //#27914 + if ((_9J < 48) || (_9J > 57)) { //#27918 + $k[$j++] = $_.lalphanumeric; //#27915 + $k[$j++] = $_.numeric; //#27915 + $_.encode(); //#27915 + $_.mode = "alphanumeric"; //#27916 + break; //#27917 + } //#27917 + $k[$j++] = 'rem'; //#27919 + $k[$j++] = $_.cdf.length + $_.j; //#27919 + $_.rembits(); //#27919 + var _9O = $k[--$j]; //#27919 + $_[$k[--$j]] = _9O; //#27919 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#27929 + var _9V = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27921 + var _9a = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27922 + $puti(_9V, 4 - _9a.length, _9a); //#27923 + $k[$j++] = _9V; //#27923 + $k[$j++] = 'raw'; //#27923 + $_.encode(); //#27923 + $_.i = $_.i + 1; //#27924 + break; //#27925 + } else { //#27929 + var _9c = $s(2); //#27927 + $put(_9c, 0, $get($_.gpf, $_.i)); //#27927 + $put(_9c, 1, 94); //#27927 + $k[$j++] = _9c; //#27927 + $k[$j++] = $_.numeric; //#27927 + $_.encode(); //#27927 + $_.i = $_.i + 1; //#27928 + break; //#27929 + } //#27929 + } //#27929 + } //#27929 + if ($eq($_.mode, "alphanumeric")) { //#27959 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27940 + $k[$j++] = $_.fnc1; //#27936 + $k[$j++] = $_.alphanumeric; //#27936 + $_.encode(); //#27936 + $_.mode = "numeric"; //#27937 + $_.i = $_.i + 1; //#27938 + break; //#27939 + } //#27939 + var _9s = $get($_.gpf, $_.i); //#27941 + var _9u = $get($_.iso646, _9s) !== undefined; //#27941 + var _9w = $get($_.alphanumeric, _9s) !== undefined; //#27941 + if (_9u && (!_9w)) { //#27945 + $k[$j++] = $_.liso646; //#27942 + $k[$j++] = $_.alphanumeric; //#27942 + $_.encode(); //#27942 + $_.mode = "iso646"; //#27943 + break; //#27944 + } //#27944 + if ($get($_.numericruns, $_.i) >= 6) { //#27950 + $k[$j++] = $_.lnumeric; //#27947 + $k[$j++] = $_.alphanumeric; //#27947 + $_.encode(); //#27947 + $_.mode = "numeric"; //#27948 + break; //#27949 + } //#27949 + var _A6 = $get($_.numericruns, $_.i); //#27951 + if ((_A6 >= 4) && ($f(_A6 + $_.i) == $_.gpf.length)) { //#27955 + $k[$j++] = $_.lnumeric; //#27952 + $k[$j++] = $_.alphanumeric; //#27952 + $_.encode(); //#27952 + $_.mode = "numeric"; //#27953 + break; //#27954 + } //#27954 + $k[$j++] = $get($_.gpf, $_.i); //#27956 + $k[$j++] = $_.alphanumeric; //#27956 + $_.encode(); //#27956 + $_.i = $_.i + 1; //#27957 + break; //#27958 + } //#27958 + if ($eq($_.mode, "iso646")) { //#27981 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27967 + $k[$j++] = $_.fnc1; //#27963 + $k[$j++] = $_.iso646; //#27963 + $_.encode(); //#27963 + $_.mode = "numeric"; //#27964 + $_.i = $_.i + 1; //#27965 + break; //#27966 + } //#27966 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27972 + $k[$j++] = $_.lnumeric; //#27969 + $k[$j++] = $_.iso646; //#27969 + $_.encode(); //#27969 + $_.mode = "numeric"; //#27970 + break; //#27971 + } //#27971 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27977 + $k[$j++] = $_.lalphanumeric; //#27974 + $k[$j++] = $_.iso646; //#27974 + $_.encode(); //#27974 + $_.mode = "alphanumeric"; //#27975 + break; //#27976 + } //#27976 + $k[$j++] = $get($_.gpf, $_.i); //#27978 + $k[$j++] = $_.iso646; //#27978 + $_.encode(); //#27978 + $_.i = $_.i + 1; //#27979 + break; //#27980 + } //#27980 + } //#27980 + } //#27980 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27985 + $k[$j++] = 'pad'; //#27988 + $k[$j++] = $_.cdf.length + $_.gpf.length; //#27988 + $_.rembits(); //#27988 + var _Ap = $a($k[--$j]); //#27988 + $_[$k[--$j]] = _Ap; //#27988 + if ($_.pad.length > 0) { //#28000 + for (var _Au = 0, _At = $_.pad.length - 1; _Au <= _At; _Au += 5) { //#27993 + $_.i = _Au; //#27991 + var _Av = $_.pad; //#27992 + var _Aw = $_.i; //#27992 + var _Ax = $a([0, 0, 1, 0, 0]); //#27992 + var _Ay = $_.pad; //#27992 + var _Az = $_.i; //#27992 + var _B0 = 5; //#27992 + var _B1 = _Ay.length - _Az; //#27992 + if ((_Ay.length - _Az) > 5) { //#27992 + var _ = _B0; //#27992 + _B0 = _B1; //#27992 + _B1 = _; //#27992 + } //#27992 + $puti(_Av, _Aw, $geti(_Ax, 0, _B1)); //#27992 + } //#27992 + if ($eq($_.mode, "numeric")) { //#27996 + $k[$j++] = Infinity; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $aload($_.pad); //#27995 + $_.pad = $geti($a(), 0, $_.pad.length); //#27995 + } //#27995 + if ($eq($_.mode, "alpha")) { //#27999 + $k[$j++] = Infinity; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $aload($_.pad); //#27998 + $_.pad = $geti($a(), 0, $_.pad.length); //#27998 + } //#27998 + } //#27998 + $k[$j++] = Infinity; //#28003 + $aload($_.cdf); //#28004 + $aload($_.gpf); //#28005 + $aload($_.pad); //#28006 + $_.bits = $a(); //#28006 + if (!bwipp_gs1_cc.__28024__) { //#28024 + $_ = Object.create($_); //#28024 + $k[$j++] = Infinity; //#28010 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#28012 + for (var _BI = 0, _BJ = 68; _BI < _BJ; _BI++) { //#28012 + $k[$j++] = $a(7); //#28012 + } //#28012 + $_.pwr928 = $a(); //#28012 + for (var _BM = 1; _BM <= 68; _BM += 1) { //#28023 + $_.j = _BM; //#28015 + $_.v = 0; //#28016 + for (var _BN = 6; _BN >= 1; _BN -= 1) { //#28021 + $_.i = _BN; //#28018 + $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#28019 + $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#28020 + } //#28020 + $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#28022 + } //#28022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#28022 + bwipp_gs1_cc.__28024__ = 1; //#28022 + $_ = Object.getPrototypeOf($_); //#28022 + } //#28022 + if ($_.ccversion == "a") { //#28066 $k[$j++] = Infinity; //#28027 - $k[$j++] = Infinity; //#28021 - $k[$j++] = 0; //#28019 - $k[$j++] = 1; //#28019 - for (var _H = 0, _I = 65; _H < _I; _H++) { //#28019 - $k[$j++] = 0; //#28019 - } //#28019 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - for (var _J = 0, _K = 65; _J < _K; _J++) { //#28020 - $k[$j++] = 0; //#28020 - } //#28020 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - for (var _L = 0, _M = 65; _L < _M; _L++) { //#28021 - $k[$j++] = 0; //#28021 - } //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - var _N = $a(); //#28021 - $k[$j++] = 'ren'; //#28027 - $k[$j++] = bwipp_renmatrix; //#28027 - $k[$j++] = 'pixs'; //#28027 - $k[$j++] = _N; //#28027 - $k[$j++] = 'pixx'; //#28027 - $k[$j++] = 69; //#28027 - $k[$j++] = 'pixy'; //#28027 - $k[$j++] = 3; //#28027 - $k[$j++] = 'height'; //#28027 - $k[$j++] = 6 / 72; //#28027 - $k[$j++] = 'width'; //#28027 - $k[$j++] = 69 / 72; //#28027 - $k[$j++] = 'opt'; //#28027 - $k[$j++] = $_.options; //#28027 - var _P = $d(); //#28027 - $k[$j++] = _P; //#28028 - bwipp_renmatrix(); //#28028 - $k[$j++] = $_.comp; //#28031 - $k[$j++] = $_.options; //#28031 - bwipp_gs1_cc(); //#28031 - var _S = $k[--$j]; //#28032 - $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28032 - $k[$j++] = _S; //#28033 - bwipp_renmatrix(); //#28033 - $$.restore(); //#28035 - } else { //#28101 - $_.linsym = $k[--$j]; //#28037 - $_.sbs = $get($_.linsym, 'sbs'); //#28038 - $_.bhs = $get($_.linsym, 'bhs'); //#28039 - $_.bbs = $get($_.linsym, 'bbs'); //#28040 - $k[$j++] = 'linwidth'; //#28041 - $k[$j++] = 0; //#28041 - $forall($_.sbs, function() { //#28041 - var _c = $k[--$j]; //#28041 - var _d = $k[--$j]; //#28041 - $k[$j++] = $f(_d + $cvi(_c)); //#28041 - }); //#28041 - var _e = $k[--$j]; //#28041 - $_[$k[--$j]] = _e; //#28041 - var _g = $_.comp; //#28043 - $k[$j++] = 'compsym'; //#28043 - $k[$j++] = _g; //#28043 - $k[$j++] = $_.options; //#28043 - bwipp_gs1_cc(); //#28043 - var _i = $k[--$j]; //#28043 - $_[$k[--$j]] = _i; //#28043 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28044 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28045 - $k[$j++] = Infinity; //#28047 - for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28047 - $k[$j++] = 0; //#28047 - } //#28047 - $_.linpad = $a(); //#28047 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28049 - if ($_.diff > 0) { //#28055 - $k[$j++] = Infinity; //#28051 - for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28051 - $k[$j++] = 0; //#28051 - } //#28051 - $_.ccrpad = $a(); //#28051 - $_.pixx = $f($_.ccpixx + $_.diff); //#28052 - } else { //#28055 - $_.ccrpad = $a(0); //#28054 - $_.pixx = $_.ccpixx; //#28055 - } //#28055 - $k[$j++] = Infinity; //#28083 - for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28062 - $_.i = _17; //#28060 - for (var _19 = 0, _1A = 2; _19 < _1A; _19++) { //#28061 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28061 - $aload($_.ccrpad); //#28061 - } //#28061 - } //#28061 - for (var _1G = 0, _1H = 2; _1G < _1H; _1G++) { //#28063 - $aload($_.linpad); //#28063 - $k[$j++] = 0; //#28063 - $k[$j++] = 1; //#28063 - for (var _1J = 0, _1K = 65; _1J < _1K; _1J++) { //#28063 - $k[$j++] = 0; //#28063 - } //#28063 - $k[$j++] = 1; //#28063 - $k[$j++] = 0; //#28063 - $aload($_.ccrpad); //#28063 - } //#28063 - for (var _1M = 0, _1N = 2; _1M < _1N; _1M++) { //#28064 - $aload($_.linpad); //#28064 - $k[$j++] = 1; //#28064 - $k[$j++] = 0; //#28064 - for (var _1P = 0, _1Q = 65; _1P < _1Q; _1P++) { //#28064 - $k[$j++] = 0; //#28064 - } //#28064 - $k[$j++] = 0; //#28064 - $k[$j++] = 1; //#28064 - $aload($_.ccrpad); //#28064 - } //#28064 - for (var _1S = 0, _1T = 2; _1S < _1T; _1S++) { //#28065 - $aload($_.linpad); //#28065 - $k[$j++] = 0; //#28065 - $k[$j++] = 1; //#28065 - for (var _1V = 0, _1W = 65; _1V < _1W; _1V++) { //#28065 - $k[$j++] = 0; //#28065 - } //#28065 - $k[$j++] = 1; //#28065 - $k[$j++] = 0; //#28065 - $aload($_.ccrpad); //#28065 - } //#28065 - for (var _1Y = 71; _1Y >= 0; _1Y -= 1) { //#28084 - $_.y = _1Y; //#28067 - $aload($_.linpad); //#28068 - $k[$j++] = 0; //#28082 - for (var _1c = 0, _1b = $_.sbs.length - 1; _1c <= _1b; _1c += 1) { //#28082 - $_.i = _1c; //#28071 - if (($_.i % 2) == 0) { //#28080 - var _1h = $get($_.bbs, ~~($_.i / 2)) * 72; //#28074 - if ((_1h > $_.y) || (($f(_1h + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28077 - for (var _1q = 0, _1r = $cvi($get($_.sbs, $_.i)); _1q < _1r; _1q++) { //#28075 - $k[$j++] = 0; //#28075 - } //#28075 - } else { //#28077 - for (var _1v = 0, _1w = $cvi($get($_.sbs, $_.i)); _1v < _1w; _1v++) { //#28077 - $k[$j++] = 1; //#28077 - } //#28077 - } //#28077 - } else { //#28080 - for (var _20 = 0, _21 = $cvi($get($_.sbs, $_.i)); _20 < _21; _20++) { //#28080 - $k[$j++] = 0; //#28080 - } //#28080 - } //#28080 - } //#28080 - $k[$j++] = 0; //#28083 - } //#28083 - $_.pixs = $a(); //#28083 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28087 - var _2B = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#28095 - $k[$j++] = _2B; //#28102 - if (!$_.dontdraw) { //#28102 - $$.save(); //#28099 - bwipp_renmatrix(); //#28100 - $$.restore(); //#28101 - } //#28101 - } //#28101 - $_ = Object.getPrototypeOf($_); //#28105 -} - -function bwipp_upcacomposite() { - $_ = Object.create($_); //#28137 - $_.dontdraw = false; //#28140 - $_.usematrix = false; //#28141 - $_.parse = false; //#28142 - $_.dontlint = false; //#28143 - $_.lintreqs = true; //#28144 - $k[$j++] = $_; //#28146 - bwipp_processoptions(); //#28146 - $_.options = $k[--$j]; //#28146 - $_.barcode = $k[--$j]; //#28147 - if ($_.dontdraw) { //#28149 - $_.usematrix = true; //#28149 - } //#28149 - $search($_.barcode, "|"); //#28152 - if ($k[--$j]) { //#28157 - $_.linear = $k[--$j]; //#28153 + for (var _Bj = 0, _Bk = 28; _Bj < _Bk; _Bj++) { //#28027 + $k[$j++] = 0; //#28027 + } //#28027 + $_.cws = $a(); //#28027 + $_.b = 0; //#28028 + $_.c = 0; //#28028 + for (;;) { //#28052 + if ($_.b == $_.bits.length) { //#28030 + break; //#28030 + } //#28030 + var _Bo = $_.bits; //#28031 + var _Bp = $_.b; //#28031 + var _Bq = $_.bits; //#28031 + var _Br = $_.b; //#28031 + var _Bs = _Bq.length - _Br; //#28031 + var _Bt = 69; //#28031 + if (69 > (_Bq.length - _Br)) { //#28031 + var _ = _Bs; //#28031 + _Bs = _Bt; //#28031 + _Bt = _; //#28031 + } //#28031 + $_.bs = $geti(_Bo, _Bp, _Bt); //#28031 + $_.bsl = $_.bs.length; //#28032 + $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#28033 + $_.csl = $_.cs.length; //#28034 + for (var _C3 = 0, _C2 = $_.bsl - 1; _C3 <= _C2; _C3 += 1) { //#28044 + $_.i = _C3; //#28036 + for (var _C6 = 0, _C5 = $_.csl - 1; _C6 <= _C5; _C6 += 1) { //#28043 + $_.j = _C6; //#28038 + var _C7 = $_.cs; //#28039 + var _C8 = $_.j; //#28039 + $put(_C7, _C8, $f($get(_C7, _C8) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#28042 + } //#28042 + } //#28042 + for (var _CL = $_.csl - 1; _CL >= 1; _CL -= 1) { //#28049 + $_.i = _CL; //#28046 + var _CM = $_.cs; //#28047 + var _CN = $_.i; //#28047 + $put(_CM, _CN - 1, $f($get(_CM, _CN - 1) + (~~($get($_.cs, $_.i) / 928)))); //#28047 + var _CS = $_.cs; //#28048 + var _CT = $_.i; //#28048 + $put(_CS, _CT, $get(_CS, _CT) % 928); //#28048 + } //#28048 + $_.b = $_.b + $_.bsl; //#28050 + $_.c = $_.c + $_.csl; //#28051 + } //#28051 + $_.cws = $geti($_.cws, 0, $_.c); //#28053 + $_.barcode = $s($_.cws.length * 4); //#28054 + for (var _Cg = 0, _Cf = $_.cws.length - 1; _Cg <= _Cf; _Cg += 1) { //#28060 + $_.i = _Cg; //#28056 + var _Ci = $strcpy($s(4), "^000"); //#28057 + var _Cn = $cvrs($s(4), $get($_.cws, $_.i), 10); //#28057 + $puti(_Ci, 4 - _Cn.length, _Cn); //#28058 + $puti($_.barcode, $_.i * 4, _Ci); //#28059 + } //#28059 + delete $_.options["parse"]; //#28061 + $put($_.options, "dontdraw", true); //#28062 + $put($_.options, "cca", true); //#28063 + $put($_.options, "columns", $_.cccolumns); //#28064 + $k[$j++] = 'args'; //#28065 + $k[$j++] = $_.barcode; //#28065 + $k[$j++] = $_.options; //#28065 + bwipp_micropdf417(); //#28065 + var _Cx = $k[--$j]; //#28065 + $_[$k[--$j]] = _Cx; //#28065 + } //#28065 + if ($_.ccversion == "b") { //#28080 + $_.barcode = $s(~~($_.bits.length / 8)); //#28069 + for (var _D4 = 0, _D3 = $_.barcode.length - 1; _D4 <= _D3; _D4 += 1) { //#28074 + $_.i = _D4; //#28071 + var _D7 = $geti($_.bits, $_.i * 8, 8); //#28072 + $k[$j++] = 0; //#28072 + for (var _D8 = 0, _D9 = _D7.length; _D8 < _D9; _D8++) { //#28072 + var _DB = $k[--$j]; //#28072 + $k[$j++] = $f(_DB + $get(_D7, _D8)) * 2; //#28072 + } //#28072 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28073 + } //#28073 + delete $_.options["parse"]; //#28075 + $put($_.options, "dontdraw", true); //#28076 + $put($_.options, "ccb", true); //#28077 + $put($_.options, "columns", $_.cccolumns); //#28078 + $k[$j++] = 'args'; //#28079 + $k[$j++] = $_.barcode; //#28079 + $k[$j++] = $_.options; //#28079 + bwipp_micropdf417(); //#28079 + var _DM = $k[--$j]; //#28079 + $_[$k[--$j]] = _DM; //#28079 + } //#28079 + if ($_.ccversion == "c") { //#28095 + $_.barcode = $s(~~($_.bits.length / 8)); //#28083 + for (var _DT = 0, _DS = $_.barcode.length - 1; _DT <= _DS; _DT += 1) { //#28088 + $_.i = _DT; //#28085 + var _DW = $geti($_.bits, $_.i * 8, 8); //#28086 + $k[$j++] = 0; //#28086 + for (var _DX = 0, _DY = _DW.length; _DX < _DY; _DX++) { //#28086 + var _Da = $k[--$j]; //#28086 + $k[$j++] = $f(_Da + $get(_DW, _DX)) * 2; //#28086 + } //#28086 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28087 + } //#28087 + delete $_.options["parse"]; //#28089 + $put($_.options, "dontdraw", true); //#28090 + $put($_.options, "ccc", true); //#28091 + $put($_.options, "columns", $_.cccolumns); //#28092 + $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#28093 + $k[$j++] = 'args'; //#28094 + $k[$j++] = $_.barcode; //#28094 + $k[$j++] = $_.options; //#28094 + bwipp_pdf417(); //#28094 + var _Dn = $k[--$j]; //#28094 + $_[$k[--$j]] = _Dn; //#28094 + } //#28094 + $k[$j++] = $_.args; //#28098 + if (!$_.dontdraw) { //#28098 + bwipp_renmatrix(); //#28098 + } //#28098 + $_ = Object.getPrototypeOf($_); //#28100 + $_ = Object.getPrototypeOf($_); //#28102 +} //bwipp_gs1_cc +function bwipp_ean13composite() { + $_ = Object.create($_); //#28134 + $_.dontdraw = false; //#28137 + $_.usematrix = false; //#28138 + $_.parse = false; //#28139 + $_.dontlint = false; //#28140 + $_.lintreqs = true; //#28141 + $k[$j++] = $_; //#28143 + bwipp_processoptions(); //#28143 + $_.options = $k[--$j]; //#28143 + $_.barcode = $k[--$j]; //#28144 + if ($_.dontdraw) { //#28146 + $_.usematrix = true; //#28146 + } //#28146 + $search($_.barcode, "|"); //#28149 + if ($k[--$j]) { //#28154 + $_.linear = $k[--$j]; //#28150 + $j--; //#28151 + $_.comp = $k[--$j]; //#28152 + } else { //#28154 $j--; //#28154 - $_.comp = $k[--$j]; //#28155 - } else { //#28157 - $j--; //#28157 - $k[$j++] = 'bwipp.missingCompositeComponent#28157'; //#28157 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28157 - bwipp_raiseerror(); //#28157 - } //#28157 - $put($_.options, "lintype", "ean13"); //#28160 - $put($_.options, "inkspread", "0"); //#28161 - $put($_.options, "dontdraw", true); //#28162 - $put($_.options, "dontlint", true); //#28163 - var _C = $s($_.comp.length + 18); //#28166 - $puti(_C, 0, "(01)00000000000000"); //#28167 - $puti(_C, 18, $_.comp); //#28168 - $k[$j++] = _C; //#28169 - $k[$j++] = 'ai'; //#28169 - bwipp_gs1process(); //#28169 - $j -= 3; //#28169 - $k[$j++] = $_.linear; //#28172 - $k[$j++] = $_.options; //#28172 - bwipp_upca(); //#28172 - if (!$_.usematrix) { //#28262 - $$.save(); //#28174 - bwipp_renlinear(); //#28176 - $$.rmoveto(-1, 72); //#28179 - $k[$j++] = Infinity; //#28190 - $k[$j++] = Infinity; //#28184 - $k[$j++] = 0; //#28182 - $k[$j++] = 1; //#28182 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#28182 - $k[$j++] = 0; //#28182 - } //#28182 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#28183 - $k[$j++] = 0; //#28183 - } //#28183 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#28184 - $k[$j++] = 0; //#28184 - } //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - var _N = $a(); //#28184 - $k[$j++] = 'ren'; //#28190 - $k[$j++] = bwipp_renmatrix; //#28190 - $k[$j++] = 'pixs'; //#28190 - $k[$j++] = _N; //#28190 - $k[$j++] = 'pixx'; //#28190 - $k[$j++] = 97; //#28190 - $k[$j++] = 'pixy'; //#28190 - $k[$j++] = 3; //#28190 - $k[$j++] = 'height'; //#28190 - $k[$j++] = 6 / 72; //#28190 - $k[$j++] = 'width'; //#28190 - $k[$j++] = 97 / 72; //#28190 - $k[$j++] = 'opt'; //#28190 - $k[$j++] = $_.options; //#28190 - var _P = $d(); //#28190 - $k[$j++] = _P; //#28191 + $k[$j++] = 'bwipp.missingCompositeComponent#28154'; //#28154 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28154 + bwipp_raiseerror(); //#28154 + } //#28154 + $put($_.options, "lintype", "ean13"); //#28157 + $put($_.options, "inkspreadv", 0); //#28158 + $put($_.options, "dontdraw", true); //#28159 + $put($_.options, "dontlint", true); //#28160 + var _C = $s($_.comp.length + 18); //#28163 + $puti(_C, 0, "(01)00000000000000"); //#28164 + $puti(_C, 18, $_.comp); //#28165 + $k[$j++] = _C; //#28166 + $k[$j++] = 'ai'; //#28166 + bwipp_gs1process(); //#28166 + $j -= 3; //#28166 + $k[$j++] = $_.linear; //#28169 + $k[$j++] = $_.options; //#28169 + bwipp_ean13(); //#28169 + if (!$_.usematrix) { //#28259 + $$.save(); //#28171 + bwipp_renlinear(); //#28173 + $$.rmoveto(-1, 72); //#28176 + $k[$j++] = Infinity; //#28176 + $k[$j++] = Infinity; //#28178 + $k[$j++] = 0; //#28179 + $k[$j++] = 1; //#28179 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28179 + $k[$j++] = 0; //#28179 + } //#28179 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28180 + $k[$j++] = 0; //#28180 + } //#28180 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28181 + $k[$j++] = 0; //#28181 + } //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + var _N = $a(); //#28181 + $k[$j++] = 'ren'; //#28187 + $k[$j++] = bwipp_renmatrix; //#28187 + $k[$j++] = 'pixs'; //#28187 + $k[$j++] = _N; //#28187 + $k[$j++] = 'pixx'; //#28187 + $k[$j++] = 97; //#28187 + $k[$j++] = 'pixy'; //#28187 + $k[$j++] = 3; //#28187 + $k[$j++] = 'height'; //#28187 + $k[$j++] = 6 / 72; //#28187 + $k[$j++] = 'width'; //#28187 + $k[$j++] = 97 / 72; //#28187 + $k[$j++] = 'opt'; //#28187 + $k[$j++] = $_.options; //#28187 + var _P = $d(); //#28187 + $k[$j++] = _P; //#28188 + bwipp_renmatrix(); //#28188 + $$.rmoveto(-2, 6); //#28191 + $k[$j++] = $_.comp; //#28191 + $k[$j++] = $_.options; //#28191 + bwipp_gs1_cc(); //#28191 bwipp_renmatrix(); //#28191 - $$.rmoveto(-2, 6); //#28194 - $k[$j++] = $_.comp; //#28194 - $k[$j++] = $_.options; //#28194 - bwipp_gs1_cc(); //#28194 - bwipp_renmatrix(); //#28194 - $$.restore(); //#28196 - } else { //#28262 - $_.linsym = $k[--$j]; //#28198 - $_.sbs = $get($_.linsym, 'sbs'); //#28199 - $_.bhs = $get($_.linsym, 'bhs'); //#28200 - $_.bbs = $get($_.linsym, 'bbs'); //#28201 - $k[$j++] = 'linwidth'; //#28202 - $k[$j++] = 0; //#28202 - $forall($_.sbs, function() { //#28202 - var _a = $k[--$j]; //#28202 - var _b = $k[--$j]; //#28202 - $k[$j++] = $f(_b + $cvi(_a)); //#28202 - }); //#28202 - var _c = $k[--$j]; //#28202 - $_[$k[--$j]] = _c; //#28202 - $k[$j++] = 'compsym'; //#28204 - $k[$j++] = $_.comp; //#28204 - $k[$j++] = $_.options; //#28204 - bwipp_gs1_cc(); //#28204 - var _g = $k[--$j]; //#28204 - $_[$k[--$j]] = _g; //#28204 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28205 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28206 - $k[$j++] = Infinity; //#28208 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28208 - $k[$j++] = 0; //#28208 - } //#28208 - $_.linpad = $a(); //#28208 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28210 - if ($_.diff > 0) { //#28216 - $k[$j++] = Infinity; //#28212 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28212 - $k[$j++] = 0; //#28212 - } //#28212 - $_.ccrpad = $a(); //#28212 - $_.pixx = $f($_.ccpixx + $_.diff); //#28213 - } else { //#28216 - $_.ccrpad = $a(0); //#28215 - $_.pixx = $_.ccpixx; //#28216 - } //#28216 - $k[$j++] = Infinity; //#28244 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28223 - $_.i = _15; //#28221 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28222 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28222 - $aload($_.ccrpad); //#28222 + $$.restore(); //#28193 + } else { //#28259 + $_.linsym = $k[--$j]; //#28195 + $_.sbs = $get($_.linsym, 'sbs'); //#28196 + $_.bhs = $get($_.linsym, 'bhs'); //#28197 + $_.bbs = $get($_.linsym, 'bbs'); //#28198 + $k[$j++] = 'linwidth'; //#28199 + $k[$j++] = 0; //#28199 + $forall($_.sbs, function() { //#28199 + var _a = $k[--$j]; //#28199 + var _b = $k[--$j]; //#28199 + $k[$j++] = $f(_b + $cvi(_a)); //#28199 + }); //#28199 + var _c = $k[--$j]; //#28199 + $_[$k[--$j]] = _c; //#28199 + $k[$j++] = 'compsym'; //#28201 + $k[$j++] = $_.comp; //#28201 + $k[$j++] = $_.options; //#28201 + bwipp_gs1_cc(); //#28201 + var _g = $k[--$j]; //#28201 + $_[$k[--$j]] = _g; //#28201 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28202 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28203 + $k[$j++] = Infinity; //#28205 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28205 + $k[$j++] = 0; //#28205 + } //#28205 + $_.linpad = $a(); //#28205 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28207 + if ($_.diff > 0) { //#28213 + $k[$j++] = Infinity; //#28209 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28209 + $k[$j++] = 0; //#28209 + } //#28209 + $_.ccrpad = $a(); //#28209 + $_.pixx = $f($_.ccpixx + $_.diff); //#28210 + } else { //#28213 + $_.ccrpad = $a(0); //#28212 + $_.pixx = $_.ccpixx; //#28213 + } //#28213 + $k[$j++] = Infinity; //#28216 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28220 + $_.i = _15; //#28218 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28219 + $aload($_.ccrpad); //#28219 + } //#28219 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28221 + $aload($_.linpad); //#28221 + $k[$j++] = 0; //#28221 + $k[$j++] = 1; //#28221 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28221 + $k[$j++] = 0; //#28221 + } //#28221 + $k[$j++] = 1; //#28221 + $k[$j++] = 0; //#28221 + $aload($_.ccrpad); //#28221 + } //#28221 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28222 + $aload($_.linpad); //#28222 + $k[$j++] = 1; //#28222 + $k[$j++] = 0; //#28222 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28222 + $k[$j++] = 0; //#28222 } //#28222 + $k[$j++] = 0; //#28222 + $k[$j++] = 1; //#28222 + $aload($_.ccrpad); //#28222 } //#28222 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28224 - $aload($_.linpad); //#28224 - $k[$j++] = 0; //#28224 - $k[$j++] = 1; //#28224 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#28224 - $k[$j++] = 0; //#28224 - } //#28224 - $k[$j++] = 1; //#28224 - $k[$j++] = 0; //#28224 - $aload($_.ccrpad); //#28224 - } //#28224 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#28225 - $aload($_.linpad); //#28225 - $k[$j++] = 1; //#28225 - $k[$j++] = 0; //#28225 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#28225 - $k[$j++] = 0; //#28225 - } //#28225 - $k[$j++] = 0; //#28225 - $k[$j++] = 1; //#28225 - $aload($_.ccrpad); //#28225 - } //#28225 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#28226 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28223 + $aload($_.linpad); //#28223 + $k[$j++] = 0; //#28223 + $k[$j++] = 1; //#28223 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28223 + $k[$j++] = 0; //#28223 + } //#28223 + $k[$j++] = 1; //#28223 + $k[$j++] = 0; //#28223 + $aload($_.ccrpad); //#28223 + } //#28223 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28242 + $_.y = _1U; //#28225 $aload($_.linpad); //#28226 - $k[$j++] = 0; //#28226 - $k[$j++] = 1; //#28226 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#28226 - $k[$j++] = 0; //#28226 - } //#28226 - $k[$j++] = 1; //#28226 - $k[$j++] = 0; //#28226 - $aload($_.ccrpad); //#28226 - } //#28226 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#28245 - $_.y = _1W; //#28228 - $aload($_.linpad); //#28229 - $k[$j++] = 0; //#28243 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#28243 - $_.i = _1a; //#28232 - if (($_.i % 2) == 0) { //#28241 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#28235 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28238 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#28236 - $k[$j++] = 0; //#28236 - } //#28236 - } else { //#28238 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#28238 - $k[$j++] = 1; //#28238 - } //#28238 + $k[$j++] = 0; //#28240 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28240 + $_.i = _1Y; //#28229 + if (($_.i % 2) == 0) { //#28238 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28232 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28235 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28233 + $k[$j++] = 0; //#28233 + } //#28233 + } else { //#28235 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28235 + $k[$j++] = 1; //#28235 + } //#28235 + } //#28235 + } else { //#28238 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28238 + $k[$j++] = 0; //#28238 } //#28238 - } else { //#28241 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#28241 - $k[$j++] = 0; //#28241 - } //#28241 - } //#28241 + } //#28238 + } //#28238 + if ($_.diff < 0) { //#28241 + $k[$j++] = 0; //#28241 } //#28241 - $k[$j++] = 0; //#28244 - } //#28244 - $_.pixs = $a(); //#28244 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28248 - var _29 = new Map([ + } //#28241 + $_.pixs = $a(); //#28241 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28245 + var _28 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36414,105 +36472,106 @@ function bwipp_upcacomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28256 - $k[$j++] = _29; //#28263 - if (!$_.dontdraw) { //#28263 - $$.save(); //#28260 - bwipp_renmatrix(); //#28261 - $$.restore(); //#28262 - } //#28262 - } //#28262 - $_ = Object.getPrototypeOf($_); //#28266 -} - -function bwipp_upcecomposite() { - $_ = Object.create($_); //#28298 - $_.dontdraw = false; //#28301 - $_.usematrix = false; //#28302 - $_.parse = false; //#28303 - $_.dontlint = false; //#28304 - $_.lintreqs = true; //#28305 - $k[$j++] = $_; //#28307 - bwipp_processoptions(); //#28307 - $_.options = $k[--$j]; //#28307 - $_.barcode = $k[--$j]; //#28308 - if ($_.dontdraw) { //#28310 - $_.usematrix = true; //#28310 - } //#28310 - $search($_.barcode, "|"); //#28313 - if ($k[--$j]) { //#28318 - $_.linear = $k[--$j]; //#28314 + ]); //#28253 + $k[$j++] = _28; //#28260 + if (!$_.dontdraw) { //#28260 + $$.save(); //#28257 + bwipp_renmatrix(); //#28258 + $$.restore(); //#28259 + } //#28259 + } //#28259 + $_ = Object.getPrototypeOf($_); //#28263 +} //bwipp_ean13composite +function bwipp_ean8composite() { + $_ = Object.create($_); //#28295 + $_.dontdraw = false; //#28298 + $_.usematrix = false; //#28299 + $_.parse = false; //#28300 + $_.dontlint = false; //#28301 + $_.lintreqs = true; //#28302 + $k[$j++] = $_; //#28304 + bwipp_processoptions(); //#28304 + $_.options = $k[--$j]; //#28304 + $_.barcode = $k[--$j]; //#28305 + if ($_.dontdraw) { //#28307 + $_.usematrix = true; //#28307 + } //#28307 + $search($_.barcode, "|"); //#28310 + if ($k[--$j]) { //#28315 + $_.linear = $k[--$j]; //#28311 + $j--; //#28312 + $_.comp = $k[--$j]; //#28313 + } else { //#28315 $j--; //#28315 - $_.comp = $k[--$j]; //#28316 - } else { //#28318 - $j--; //#28318 - $k[$j++] = 'bwipp.missingCompositeComponent#28318'; //#28318 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28318 - bwipp_raiseerror(); //#28318 - } //#28318 - $put($_.options, "lintype", "upce"); //#28321 - $put($_.options, "inkspread", "0"); //#28322 - $put($_.options, "dontdraw", true); //#28323 - $put($_.options, "dontlint", true); //#28324 - var _C = $s($_.comp.length + 18); //#28327 - $puti(_C, 0, "(01)00000000000000"); //#28328 - $puti(_C, 18, $_.comp); //#28329 - $k[$j++] = _C; //#28330 - $k[$j++] = 'ai'; //#28330 - bwipp_gs1process(); //#28330 - $j -= 3; //#28330 - $k[$j++] = $_.linear; //#28333 - $k[$j++] = $_.options; //#28333 - bwipp_upce(); //#28333 + $k[$j++] = 'bwipp.missingCompositeComponent#28315'; //#28315 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28315 + bwipp_raiseerror(); //#28315 + } //#28315 + $put($_.options, "lintype", "ean8"); //#28319 + $put($_.options, "inkspreadv", 0); //#28320 + $put($_.options, "dontdraw", true); //#28321 + $put($_.options, "dontlint", true); //#28322 + var _C = $s($_.comp.length + 18); //#28325 + $puti(_C, 0, "(01)00000000000000"); //#28326 + $puti(_C, 18, $_.comp); //#28327 + $k[$j++] = _C; //#28328 + $k[$j++] = 'ai'; //#28328 + bwipp_gs1process(); //#28328 + $j -= 3; //#28328 + $k[$j++] = $_.linear; //#28331 + $k[$j++] = $_.options; //#28331 + bwipp_ean8(); //#28331 if (!$_.usematrix) { //#28423 - $$.save(); //#28335 - bwipp_renlinear(); //#28337 - $$.rmoveto(-1, 72); //#28340 - $k[$j++] = Infinity; //#28351 - $k[$j++] = Infinity; //#28345 + $$.save(); //#28333 + bwipp_renlinear(); //#28335 + $$.rmoveto(-1, 72); //#28338 + $k[$j++] = Infinity; //#28338 + $k[$j++] = Infinity; //#28340 + $k[$j++] = 0; //#28341 + $k[$j++] = 1; //#28341 + for (var _H = 0, _I = 65; _H < _I; _H++) { //#28341 + $k[$j++] = 0; //#28341 + } //#28341 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + for (var _J = 0, _K = 65; _J < _K; _J++) { //#28342 + $k[$j++] = 0; //#28342 + } //#28342 + $k[$j++] = 0; //#28343 + $k[$j++] = 1; //#28343 $k[$j++] = 0; //#28343 $k[$j++] = 1; //#28343 - for (var _H = 0, _I = 49; _H < _I; _H++) { //#28343 + for (var _L = 0, _M = 65; _L < _M; _L++) { //#28343 $k[$j++] = 0; //#28343 } //#28343 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - for (var _J = 0, _K = 49; _J < _K; _J++) { //#28344 - $k[$j++] = 0; //#28344 - } //#28344 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - for (var _L = 0, _M = 49; _L < _M; _L++) { //#28345 - $k[$j++] = 0; //#28345 - } //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - var _N = $a(); //#28345 - $k[$j++] = 'ren'; //#28351 - $k[$j++] = bwipp_renmatrix; //#28351 - $k[$j++] = 'pixs'; //#28351 - $k[$j++] = _N; //#28351 - $k[$j++] = 'pixx'; //#28351 - $k[$j++] = 53; //#28351 - $k[$j++] = 'pixy'; //#28351 - $k[$j++] = 3; //#28351 - $k[$j++] = 'height'; //#28351 - $k[$j++] = 6 / 72; //#28351 - $k[$j++] = 'width'; //#28351 - $k[$j++] = 53 / 72; //#28351 - $k[$j++] = 'opt'; //#28351 - $k[$j++] = $_.options; //#28351 - var _P = $d(); //#28351 - $k[$j++] = _P; //#28352 - bwipp_renmatrix(); //#28352 - $$.rmoveto(-2, 6); //#28355 - $k[$j++] = $_.comp; //#28355 - $k[$j++] = $_.options; //#28355 - bwipp_gs1_cc(); //#28355 + $k[$j++] = 1; //#28343 + $k[$j++] = 0; //#28343 + var _N = $a(); //#28343 + $k[$j++] = 'ren'; //#28349 + $k[$j++] = bwipp_renmatrix; //#28349 + $k[$j++] = 'pixs'; //#28349 + $k[$j++] = _N; //#28349 + $k[$j++] = 'pixx'; //#28349 + $k[$j++] = 69; //#28349 + $k[$j++] = 'pixy'; //#28349 + $k[$j++] = 3; //#28349 + $k[$j++] = 'height'; //#28349 + $k[$j++] = 6 / 72; //#28349 + $k[$j++] = 'width'; //#28349 + $k[$j++] = 69 / 72; //#28349 + $k[$j++] = 'opt'; //#28349 + $k[$j++] = $_.options; //#28349 + var _P = $d(); //#28349 + $k[$j++] = _P; //#28350 + bwipp_renmatrix(); //#28350 + $k[$j++] = $_.comp; //#28353 + $k[$j++] = $_.options; //#28353 + bwipp_gs1_cc(); //#28353 + var _S = $k[--$j]; //#28354 + $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28354 + $k[$j++] = _S; //#28355 bwipp_renmatrix(); //#28355 $$.restore(); //#28357 } else { //#28423 @@ -36523,29 +36582,30 @@ function bwipp_upcecomposite() { $k[$j++] = 'linwidth'; //#28363 $k[$j++] = 0; //#28363 $forall($_.sbs, function() { //#28363 - var _a = $k[--$j]; //#28363 - var _b = $k[--$j]; //#28363 - $k[$j++] = $f(_b + $cvi(_a)); //#28363 + var _c = $k[--$j]; //#28363 + var _d = $k[--$j]; //#28363 + $k[$j++] = $f(_d + $cvi(_c)); //#28363 }); //#28363 - var _c = $k[--$j]; //#28363 - $_[$k[--$j]] = _c; //#28363 + var _e = $k[--$j]; //#28363 + $_[$k[--$j]] = _e; //#28363 + var _g = $_.comp; //#28365 $k[$j++] = 'compsym'; //#28365 - $k[$j++] = $_.comp; //#28365 + $k[$j++] = _g; //#28365 $k[$j++] = $_.options; //#28365 bwipp_gs1_cc(); //#28365 - var _g = $k[--$j]; //#28365 - $_[$k[--$j]] = _g; //#28365 + var _i = $k[--$j]; //#28365 + $_[$k[--$j]] = _i; //#28365 $_.ccpixs = $get($_.compsym, 'pixs'); //#28366 $_.ccpixx = $get($_.compsym, 'pixx'); //#28367 $k[$j++] = Infinity; //#28369 - for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28369 + for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28369 $k[$j++] = 0; //#28369 } //#28369 $_.linpad = $a(); //#28369 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28371 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28371 if ($_.diff > 0) { //#28377 $k[$j++] = Infinity; //#28373 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28373 + for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28373 $k[$j++] = 0; //#28373 } //#28373 $_.ccrpad = $a(); //#28373 @@ -36554,19 +36614,17 @@ function bwipp_upcecomposite() { $_.ccrpad = $a(0); //#28376 $_.pixx = $_.ccpixx; //#28377 } //#28377 - $k[$j++] = Infinity; //#28405 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28384 - $_.i = _15; //#28382 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28383 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 - $aload($_.ccrpad); //#28383 - } //#28383 + $k[$j++] = Infinity; //#28380 + for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28384 + $_.i = _17; //#28382 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 + $aload($_.ccrpad); //#28383 } //#28383 for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28385 $aload($_.linpad); //#28385 $k[$j++] = 0; //#28385 $k[$j++] = 1; //#28385 - for (var _1H = 0, _1I = 49; _1H < _1I; _1H++) { //#28385 + for (var _1H = 0, _1I = 65; _1H < _1I; _1H++) { //#28385 $k[$j++] = 0; //#28385 } //#28385 $k[$j++] = 1; //#28385 @@ -36577,7 +36635,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28386 $k[$j++] = 1; //#28386 $k[$j++] = 0; //#28386 - for (var _1N = 0, _1O = 49; _1N < _1O; _1N++) { //#28386 + for (var _1N = 0, _1O = 65; _1N < _1O; _1N++) { //#28386 $k[$j++] = 0; //#28386 } //#28386 $k[$j++] = 0; //#28386 @@ -36588,7 +36646,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28387 $k[$j++] = 0; //#28387 $k[$j++] = 1; //#28387 - for (var _1T = 0, _1U = 49; _1T < _1U; _1T++) { //#28387 + for (var _1T = 0, _1U = 65; _1T < _1U; _1T++) { //#28387 $k[$j++] = 0; //#28387 } //#28387 $k[$j++] = 1; //#28387 @@ -36618,11 +36676,13 @@ function bwipp_upcecomposite() { } //#28402 } //#28402 } //#28402 - $k[$j++] = 0; //#28405 + if ($_.diff < 0) { //#28405 + $k[$j++] = 0; //#28405 + } //#28405 } //#28405 $_.pixs = $a(); //#28405 $_.pixy = ~~($_.pixs.length / $_.pixx); //#28409 - var _29 = new Map([ + var _2A = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36631,7 +36691,7 @@ function bwipp_upcecomposite() { ["width", $_.pixx / 72], ["opt", $_.options] ]); //#28417 - $k[$j++] = _29; //#28424 + $k[$j++] = _2A; //#28424 if (!$_.dontdraw) { //#28424 $$.save(); //#28421 bwipp_renmatrix(); //#28422 @@ -36639,9 +36699,8 @@ function bwipp_upcecomposite() { } //#28423 } //#28423 $_ = Object.getPrototypeOf($_); //#28427 -} - -function bwipp_databaromnicomposite() { +} //bwipp_ean8composite +function bwipp_upcacomposite() { $_ = Object.create($_); //#28459 $_.dontdraw = false; //#28462 $_.usematrix = false; //#28463 @@ -36666,87 +36725,517 @@ function bwipp_databaromnicomposite() { $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28479 bwipp_raiseerror(); //#28479 } //#28479 - if (!$_.usematrix) { //#28482 - $$.save(); //#28482 - } //#28482 - $put($_.options, "lintype", "databaromni"); //#28484 - $put($_.options, "linkage", true); //#28485 - $put($_.options, "inkspread", "0"); //#28486 - $put($_.options, "dontdraw", true); //#28487 - $put($_.options, "dontlint", true); //#28488 - var _F = $s($_.linear.length + $_.comp.length); //#28491 - $puti(_F, 0, $_.linear); //#28492 - $puti(_F, $_.linear.length, $_.comp); //#28493 - $k[$j++] = _F; //#28494 - $k[$j++] = 'ai'; //#28494 - bwipp_gs1process(); //#28494 - $j -= 3; //#28494 - $k[$j++] = $_.linear; //#28497 - $k[$j++] = $_.options; //#28497 - bwipp_databaromni(); //#28497 - var _L = $k[--$j]; //#28498 - $_.linsbs = $get(_L, "sbs"); //#28498 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28499 - $k[$j++] = _L; //#28500 - if (!$_.usematrix) { //#28500 - bwipp_renlinear(); //#28500 - } else { //#28500 - $j--; //#28500 - } //#28500 + $put($_.options, "lintype", "ean13"); //#28482 + $put($_.options, "inkspreadv", 0); //#28483 + $put($_.options, "dontdraw", true); //#28484 + $put($_.options, "dontlint", true); //#28485 + var _C = $s($_.comp.length + 18); //#28488 + $puti(_C, 0, "(01)00000000000000"); //#28489 + $puti(_C, 18, $_.comp); //#28490 + $k[$j++] = _C; //#28491 + $k[$j++] = 'ai'; //#28491 + bwipp_gs1process(); //#28491 + $j -= 3; //#28491 + $k[$j++] = $_.linear; //#28494 + $k[$j++] = $_.options; //#28494 + bwipp_upca(); //#28494 + if (!$_.usematrix) { //#28584 + $$.save(); //#28496 + bwipp_renlinear(); //#28498 + $$.rmoveto(-1, 72); //#28501 + $k[$j++] = Infinity; //#28501 + $k[$j++] = Infinity; //#28503 + $k[$j++] = 0; //#28504 + $k[$j++] = 1; //#28504 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28504 + $k[$j++] = 0; //#28504 + } //#28504 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28505 + $k[$j++] = 0; //#28505 + } //#28505 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28506 + $k[$j++] = 0; //#28506 + } //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + var _N = $a(); //#28506 + $k[$j++] = 'ren'; //#28512 + $k[$j++] = bwipp_renmatrix; //#28512 + $k[$j++] = 'pixs'; //#28512 + $k[$j++] = _N; //#28512 + $k[$j++] = 'pixx'; //#28512 + $k[$j++] = 97; //#28512 + $k[$j++] = 'pixy'; //#28512 + $k[$j++] = 3; //#28512 + $k[$j++] = 'height'; //#28512 + $k[$j++] = 6 / 72; //#28512 + $k[$j++] = 'width'; //#28512 + $k[$j++] = 97 / 72; //#28512 + $k[$j++] = 'opt'; //#28512 + $k[$j++] = $_.options; //#28512 + var _P = $d(); //#28512 + $k[$j++] = _P; //#28513 + bwipp_renmatrix(); //#28513 + $$.rmoveto(-2, 6); //#28516 + $k[$j++] = $_.comp; //#28516 + $k[$j++] = $_.options; //#28516 + bwipp_gs1_cc(); //#28516 + bwipp_renmatrix(); //#28516 + $$.restore(); //#28518 + } else { //#28584 + $_.linsym = $k[--$j]; //#28520 + $_.sbs = $get($_.linsym, 'sbs'); //#28521 + $_.bhs = $get($_.linsym, 'bhs'); //#28522 + $_.bbs = $get($_.linsym, 'bbs'); //#28523 + $k[$j++] = 'linwidth'; //#28524 + $k[$j++] = 0; //#28524 + $forall($_.sbs, function() { //#28524 + var _a = $k[--$j]; //#28524 + var _b = $k[--$j]; //#28524 + $k[$j++] = $f(_b + $cvi(_a)); //#28524 + }); //#28524 + var _c = $k[--$j]; //#28524 + $_[$k[--$j]] = _c; //#28524 + $k[$j++] = 'compsym'; //#28526 + $k[$j++] = $_.comp; //#28526 + $k[$j++] = $_.options; //#28526 + bwipp_gs1_cc(); //#28526 + var _g = $k[--$j]; //#28526 + $_[$k[--$j]] = _g; //#28526 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28527 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28528 + $k[$j++] = Infinity; //#28530 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28530 + $k[$j++] = 0; //#28530 + } //#28530 + $_.linpad = $a(); //#28530 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28532 + if ($_.diff > 0) { //#28538 + $k[$j++] = Infinity; //#28534 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28534 + $k[$j++] = 0; //#28534 + } //#28534 + $_.ccrpad = $a(); //#28534 + $_.pixx = $f($_.ccpixx + $_.diff); //#28535 + } else { //#28538 + $_.ccrpad = $a(0); //#28537 + $_.pixx = $_.ccpixx; //#28538 + } //#28538 + $k[$j++] = Infinity; //#28541 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28545 + $_.i = _15; //#28543 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28544 + $aload($_.ccrpad); //#28544 + } //#28544 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28546 + $aload($_.linpad); //#28546 + $k[$j++] = 0; //#28546 + $k[$j++] = 1; //#28546 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28546 + $k[$j++] = 0; //#28546 + } //#28546 + $k[$j++] = 1; //#28546 + $k[$j++] = 0; //#28546 + $aload($_.ccrpad); //#28546 + } //#28546 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28547 + $aload($_.linpad); //#28547 + $k[$j++] = 1; //#28547 + $k[$j++] = 0; //#28547 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28547 + $k[$j++] = 0; //#28547 + } //#28547 + $k[$j++] = 0; //#28547 + $k[$j++] = 1; //#28547 + $aload($_.ccrpad); //#28547 + } //#28547 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28548 + $aload($_.linpad); //#28548 + $k[$j++] = 0; //#28548 + $k[$j++] = 1; //#28548 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28548 + $k[$j++] = 0; //#28548 + } //#28548 + $k[$j++] = 1; //#28548 + $k[$j++] = 0; //#28548 + $aload($_.ccrpad); //#28548 + } //#28548 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28567 + $_.y = _1U; //#28550 + $aload($_.linpad); //#28551 + $k[$j++] = 0; //#28565 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28565 + $_.i = _1Y; //#28554 + if (($_.i % 2) == 0) { //#28563 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28557 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28560 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28558 + $k[$j++] = 0; //#28558 + } //#28558 + } else { //#28560 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28560 + $k[$j++] = 1; //#28560 + } //#28560 + } //#28560 + } else { //#28563 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28563 + $k[$j++] = 0; //#28563 + } //#28563 + } //#28563 + } //#28563 + if ($_.diff < 0) { //#28566 + $k[$j++] = 0; //#28566 + } //#28566 + } //#28566 + $_.pixs = $a(); //#28566 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28570 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28578 + $k[$j++] = _28; //#28585 + if (!$_.dontdraw) { //#28585 + $$.save(); //#28582 + bwipp_renmatrix(); //#28583 + $$.restore(); //#28584 + } //#28584 + } //#28584 + $_ = Object.getPrototypeOf($_); //#28588 +} //bwipp_upcacomposite +function bwipp_upcecomposite() { + $_ = Object.create($_); //#28620 + $_.dontdraw = false; //#28623 + $_.usematrix = false; //#28624 + $_.parse = false; //#28625 + $_.dontlint = false; //#28626 + $_.lintreqs = true; //#28627 + $k[$j++] = $_; //#28629 + bwipp_processoptions(); //#28629 + $_.options = $k[--$j]; //#28629 + $_.barcode = $k[--$j]; //#28630 + if ($_.dontdraw) { //#28632 + $_.usematrix = true; //#28632 + } //#28632 + $search($_.barcode, "|"); //#28635 + if ($k[--$j]) { //#28640 + $_.linear = $k[--$j]; //#28636 + $j--; //#28637 + $_.comp = $k[--$j]; //#28638 + } else { //#28640 + $j--; //#28640 + $k[$j++] = 'bwipp.missingCompositeComponent#28640'; //#28640 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28640 + bwipp_raiseerror(); //#28640 + } //#28640 + $put($_.options, "lintype", "upce"); //#28643 + $put($_.options, "inkspreadv", 0); //#28644 + $put($_.options, "dontdraw", true); //#28645 + $put($_.options, "dontlint", true); //#28646 + var _C = $s($_.comp.length + 18); //#28649 + $puti(_C, 0, "(01)00000000000000"); //#28650 + $puti(_C, 18, $_.comp); //#28651 + $k[$j++] = _C; //#28652 + $k[$j++] = 'ai'; //#28652 + bwipp_gs1process(); //#28652 + $j -= 3; //#28652 + $k[$j++] = $_.linear; //#28655 + $k[$j++] = $_.options; //#28655 + bwipp_upce(); //#28655 + if (!$_.usematrix) { //#28745 + $$.save(); //#28657 + bwipp_renlinear(); //#28659 + $$.rmoveto(-1, 72); //#28662 + $k[$j++] = Infinity; //#28662 + $k[$j++] = Infinity; //#28664 + $k[$j++] = 0; //#28665 + $k[$j++] = 1; //#28665 + for (var _H = 0, _I = 49; _H < _I; _H++) { //#28665 + $k[$j++] = 0; //#28665 + } //#28665 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + for (var _J = 0, _K = 49; _J < _K; _J++) { //#28666 + $k[$j++] = 0; //#28666 + } //#28666 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + for (var _L = 0, _M = 49; _L < _M; _L++) { //#28667 + $k[$j++] = 0; //#28667 + } //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + var _N = $a(); //#28667 + $k[$j++] = 'ren'; //#28673 + $k[$j++] = bwipp_renmatrix; //#28673 + $k[$j++] = 'pixs'; //#28673 + $k[$j++] = _N; //#28673 + $k[$j++] = 'pixx'; //#28673 + $k[$j++] = 53; //#28673 + $k[$j++] = 'pixy'; //#28673 + $k[$j++] = 3; //#28673 + $k[$j++] = 'height'; //#28673 + $k[$j++] = 6 / 72; //#28673 + $k[$j++] = 'width'; //#28673 + $k[$j++] = 53 / 72; //#28673 + $k[$j++] = 'opt'; //#28673 + $k[$j++] = $_.options; //#28673 + var _P = $d(); //#28673 + $k[$j++] = _P; //#28674 + bwipp_renmatrix(); //#28674 + $$.rmoveto(-2, 6); //#28677 + $k[$j++] = $_.comp; //#28677 + $k[$j++] = $_.options; //#28677 + bwipp_gs1_cc(); //#28677 + bwipp_renmatrix(); //#28677 + $$.restore(); //#28679 + } else { //#28745 + $_.linsym = $k[--$j]; //#28681 + $_.sbs = $get($_.linsym, 'sbs'); //#28682 + $_.bhs = $get($_.linsym, 'bhs'); //#28683 + $_.bbs = $get($_.linsym, 'bbs'); //#28684 + $k[$j++] = 'linwidth'; //#28685 + $k[$j++] = 0; //#28685 + $forall($_.sbs, function() { //#28685 + var _a = $k[--$j]; //#28685 + var _b = $k[--$j]; //#28685 + $k[$j++] = $f(_b + $cvi(_a)); //#28685 + }); //#28685 + var _c = $k[--$j]; //#28685 + $_[$k[--$j]] = _c; //#28685 + $k[$j++] = 'compsym'; //#28687 + $k[$j++] = $_.comp; //#28687 + $k[$j++] = $_.options; //#28687 + bwipp_gs1_cc(); //#28687 + var _g = $k[--$j]; //#28687 + $_[$k[--$j]] = _g; //#28687 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28688 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28689 + $k[$j++] = Infinity; //#28691 + for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28691 + $k[$j++] = 0; //#28691 + } //#28691 + $_.linpad = $a(); //#28691 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28693 + if ($_.diff > 0) { //#28699 + $k[$j++] = Infinity; //#28695 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28695 + $k[$j++] = 0; //#28695 + } //#28695 + $_.ccrpad = $a(); //#28695 + $_.pixx = $f($_.ccpixx + $_.diff); //#28696 + } else { //#28699 + $_.ccrpad = $a(0); //#28698 + $_.pixx = $_.ccpixx; //#28699 + } //#28699 + $k[$j++] = Infinity; //#28702 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28706 + $_.i = _15; //#28704 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28705 + $aload($_.ccrpad); //#28705 + } //#28705 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28707 + $aload($_.linpad); //#28707 + $k[$j++] = 0; //#28707 + $k[$j++] = 1; //#28707 + for (var _1F = 0, _1G = 49; _1F < _1G; _1F++) { //#28707 + $k[$j++] = 0; //#28707 + } //#28707 + $k[$j++] = 1; //#28707 + $k[$j++] = 0; //#28707 + $aload($_.ccrpad); //#28707 + } //#28707 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28708 + $aload($_.linpad); //#28708 + $k[$j++] = 1; //#28708 + $k[$j++] = 0; //#28708 + for (var _1L = 0, _1M = 49; _1L < _1M; _1L++) { //#28708 + $k[$j++] = 0; //#28708 + } //#28708 + $k[$j++] = 0; //#28708 + $k[$j++] = 1; //#28708 + $aload($_.ccrpad); //#28708 + } //#28708 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28709 + $aload($_.linpad); //#28709 + $k[$j++] = 0; //#28709 + $k[$j++] = 1; //#28709 + for (var _1R = 0, _1S = 49; _1R < _1S; _1R++) { //#28709 + $k[$j++] = 0; //#28709 + } //#28709 + $k[$j++] = 1; //#28709 + $k[$j++] = 0; //#28709 + $aload($_.ccrpad); //#28709 + } //#28709 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28728 + $_.y = _1U; //#28711 + $aload($_.linpad); //#28712 + $k[$j++] = 0; //#28726 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28726 + $_.i = _1Y; //#28715 + if (($_.i % 2) == 0) { //#28724 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28718 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28721 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28719 + $k[$j++] = 0; //#28719 + } //#28719 + } else { //#28721 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28721 + $k[$j++] = 1; //#28721 + } //#28721 + } //#28721 + } else { //#28724 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28724 + $k[$j++] = 0; //#28724 + } //#28724 + } //#28724 + } //#28724 + if ($_.diff < 0) { //#28727 + $k[$j++] = 0; //#28727 + } //#28727 + } //#28727 + $_.pixs = $a(); //#28727 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28731 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28739 + $k[$j++] = _28; //#28746 + if (!$_.dontdraw) { //#28746 + $$.save(); //#28743 + bwipp_renmatrix(); //#28744 + $$.restore(); //#28745 + } //#28745 + } //#28745 + $_ = Object.getPrototypeOf($_); //#28749 +} //bwipp_upcecomposite +function bwipp_databaromnicomposite() { + $_ = Object.create($_); //#28781 + $_.dontdraw = false; //#28784 + $_.usematrix = false; //#28785 + $_.parse = false; //#28786 + $_.dontlint = false; //#28787 + $_.lintreqs = true; //#28788 + $k[$j++] = $_; //#28790 + bwipp_processoptions(); //#28790 + $_.options = $k[--$j]; //#28790 + $_.barcode = $k[--$j]; //#28791 + if ($_.dontdraw) { //#28793 + $_.usematrix = true; //#28793 + } //#28793 + $search($_.barcode, "|"); //#28796 + if ($k[--$j]) { //#28801 + $_.linear = $k[--$j]; //#28797 + $j--; //#28798 + $_.comp = $k[--$j]; //#28799 + } else { //#28801 + $j--; //#28801 + $k[$j++] = 'bwipp.missingCompositeComponent#28801'; //#28801 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28801 + bwipp_raiseerror(); //#28801 + } //#28801 + if (!$_.usematrix) { //#28804 + $$.save(); //#28804 + } //#28804 + $put($_.options, "lintype", "databaromni"); //#28806 + $put($_.options, "linkage", true); //#28807 + $put($_.options, "inkspreadv", 0); //#28808 + $put($_.options, "dontdraw", true); //#28809 + $put($_.options, "dontlint", true); //#28810 + var _F = $s($_.linear.length + $_.comp.length); //#28813 + $puti(_F, 0, $_.linear); //#28814 + $puti(_F, $_.linear.length, $_.comp); //#28815 + $k[$j++] = _F; //#28816 + $k[$j++] = 'ai'; //#28816 + bwipp_gs1process(); //#28816 + $j -= 3; //#28816 + $k[$j++] = $_.linear; //#28819 + $k[$j++] = $_.options; //#28819 + bwipp_databaromni(); //#28819 + var _L = $k[--$j]; //#28820 + $_.linsbs = $get(_L, "sbs"); //#28820 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28821 + $k[$j++] = _L; //#28822 + if (!$_.usematrix) { //#28822 + bwipp_renlinear(); //#28822 + } else { //#28822 + $j--; //#28822 + } //#28822 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28504 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28517 - $_.i = _U; //#28506 - if ($get($_.bot, $_.i) == 0) { //#28514 - if ($get($_.bot, $_.i - 1) == 1) { //#28511 - $k[$j++] = 1; //#28509 - } else { //#28511 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28511 - $k[$j++] = _e; //#28511 - } //#28511 - } else { //#28514 - $k[$j++] = 0; //#28514 - } //#28514 - $put($_.sep, $_.i, $k[--$j]); //#28516 - } //#28516 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28518 - $k[$j++] = true; //#28519 - for (var _j = 0; _j <= 12; _j += 1) { //#28519 - var _p = $k[--$j]; //#28519 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28519 - } //#28519 - if ($k[--$j]) { //#28522 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28521 - } //#28521 - }; //#28521 - $k[$j++] = Infinity; //#28524 - $k[$j++] = 0; //#28525 - $forall($_.linsbs, function() { //#28525 - var _v = $k[--$j]; //#28525 - var _w = $k[--$j]; //#28525 - var _x = (_w == 1) ? 0 : 1; //#28525 - $k[$j++] = _w; //#28525 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28525 - $k[$j++] = _x //#28525 - } //#28525 - }); //#28525 - $astore($a($counttomark() - 1)); //#28526 - $_.bot = $k[--$j]; //#28526 - $j -= 2; //#28526 - $k[$j++] = Infinity; //#28527 - $forall($_.bot, function() { //#28527 - var _14 = $k[--$j]; //#28527 - $k[$j++] = $f(1 - _14); //#28527 - }); //#28527 - $_.sep = $a(); //#28527 - $puti($_.sep, 0, $a([0, 0, 0])); //#28528 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28529 - $k[$j++] = 18; //#28530 - $_.sepfinder(); //#28530 - $k[$j++] = 64; //#28530 - $_.sepfinder(); //#28530 - if (!$_.usematrix) { //#28581 - $$.rmoveto(0, $_.linheight); //#28532 + $_.fp = $k[--$j]; //#28826 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28839 + $_.i = _U; //#28828 + if ($get($_.bot, $_.i) == 0) { //#28836 + if ($get($_.bot, $_.i - 1) == 1) { //#28833 + $k[$j++] = 1; //#28831 + } else { //#28833 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28833 + $k[$j++] = _e; //#28833 + } //#28833 + } else { //#28836 + $k[$j++] = 0; //#28836 + } //#28836 + $put($_.sep, $_.i, $k[--$j]); //#28838 + } //#28838 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28840 + $k[$j++] = true; //#28841 + for (var _j = 0; _j <= 12; _j += 1) { //#28841 + var _p = $k[--$j]; //#28841 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28841 + } //#28841 + if ($k[--$j]) { //#28844 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28843 + } //#28843 + }; //#28843 + $k[$j++] = Infinity; //#28846 + $k[$j++] = 0; //#28847 + $forall($_.linsbs, function() { //#28847 + var _v = $k[--$j]; //#28847 + var _w = $k[--$j]; //#28847 + var _x = (_w == 1) ? 0 : 1; //#28847 + $k[$j++] = _w; //#28847 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#28847 + $k[$j++] = _x //#28847 + } //#28847 + }); //#28847 + $astore($a($counttomark() - 1)); //#28848 + $_.bot = $k[--$j]; //#28848 + $j -= 2; //#28848 + $k[$j++] = Infinity; //#28849 + $forall($_.bot, function() { //#28849 + var _14 = $k[--$j]; //#28849 + $k[$j++] = $f(1 - _14); //#28849 + }); //#28849 + $_.sep = $a(); //#28849 + $puti($_.sep, 0, $a([0, 0, 0])); //#28850 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28851 + $k[$j++] = 18; //#28852 + $_.sepfinder(); //#28852 + $k[$j++] = 64; //#28852 + $_.sepfinder(); //#28852 + if (!$_.usematrix) { //#28903 + $$.rmoveto(0, $_.linheight); //#28854 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36755,65 +37244,63 @@ function bwipp_databaromnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28539 - $k[$j++] = _1H; //#28540 - bwipp_renmatrix(); //#28540 - $$.rmoveto(-5, 1); //#28543 - $k[$j++] = $_.comp; //#28543 - $k[$j++] = $_.options; //#28543 - bwipp_gs1_cc(); //#28543 - bwipp_renmatrix(); //#28543 - $$.restore(); //#28545 - } else { //#28581 - $k[$j++] = 'compsym'; //#28547 - $k[$j++] = $_.comp; //#28547 - $k[$j++] = $_.options; //#28547 - bwipp_gs1_cc(); //#28547 - var _1M = $k[--$j]; //#28547 - $_[$k[--$j]] = _1M; //#28547 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28548 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28549 - $k[$j++] = Infinity; //#28552 - $k[$j++] = 0; //#28552 - $forall($_.linsbs, function() { //#28552 - var _1T = $k[--$j]; //#28552 - var _1U = $k[--$j]; //#28552 - var _1V = (_1U == 0) ? 1 : 0; //#28552 - $k[$j++] = _1U; //#28552 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28552 - $k[$j++] = _1V //#28552 - } //#28552 - }); //#28552 - $_.linpixs = $a(); //#28552 - $k[$j++] = Infinity; //#28554 - $k[$j++] = 0; //#28554 - $aload($_.sep); //#28554 - $_.sep = $a(); //#28554 - $_.linheight = ~~$_.linheight; //#28556 - $k[$j++] = Infinity; //#28563 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28562 - $_.i = _1f; //#28560 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#28561 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28561 - $k[$j++] = 0; //#28561 - } //#28561 - } //#28561 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.sep); //#28563 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.linpixs); //#28563 - } //#28563 - $_.pixs = $a(); //#28563 - $_.pixx = $f($_.ccpixx + 1); //#28565 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28567 - var _22 = new Map([ + ]); //#28861 + $k[$j++] = _1H; //#28862 + bwipp_renmatrix(); //#28862 + $$.rmoveto(-5, 1); //#28865 + $k[$j++] = $_.comp; //#28865 + $k[$j++] = $_.options; //#28865 + bwipp_gs1_cc(); //#28865 + bwipp_renmatrix(); //#28865 + $$.restore(); //#28867 + } else { //#28903 + $k[$j++] = 'compsym'; //#28869 + $k[$j++] = $_.comp; //#28869 + $k[$j++] = $_.options; //#28869 + bwipp_gs1_cc(); //#28869 + var _1M = $k[--$j]; //#28869 + $_[$k[--$j]] = _1M; //#28869 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28870 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28871 + $k[$j++] = Infinity; //#28873 + $k[$j++] = 0; //#28874 + $forall($_.linsbs, function() { //#28874 + var _1T = $k[--$j]; //#28874 + var _1U = $k[--$j]; //#28874 + var _1V = (_1U == 0) ? 1 : 0; //#28874 + $k[$j++] = _1U; //#28874 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28874 + $k[$j++] = _1V //#28874 + } //#28874 + }); //#28874 + $_.linpixs = $a(); //#28874 + $k[$j++] = Infinity; //#28876 + $k[$j++] = 0; //#28876 + $aload($_.sep); //#28876 + $_.sep = $a(); //#28876 + $_.linheight = ~~$_.linheight; //#28878 + $k[$j++] = Infinity; //#28880 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28884 + $_.i = _1f; //#28882 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28883 + $k[$j++] = 0; //#28883 + } //#28883 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.sep); //#28885 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.linpixs); //#28885 + } //#28885 + $_.pixs = $a(); //#28885 + $_.pixx = $f($_.ccpixx + 1); //#28887 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28889 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36821,107 +37308,106 @@ function bwipp_databaromnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28575 - $k[$j++] = _22; //#28582 - if (!$_.dontdraw) { //#28582 - $$.save(); //#28579 - bwipp_renmatrix(); //#28580 - $$.restore(); //#28581 - } //#28581 - } //#28581 - $_ = Object.getPrototypeOf($_); //#28585 -} - + ]); //#28897 + $k[$j++] = _20; //#28904 + if (!$_.dontdraw) { //#28904 + $$.save(); //#28901 + bwipp_renmatrix(); //#28902 + $$.restore(); //#28903 + } //#28903 + } //#28903 + $_ = Object.getPrototypeOf($_); //#28907 +} //bwipp_databaromnicomposite function bwipp_databarstackedcomposite() { - $_ = Object.create($_); //#28616 - $_.dontdraw = false; //#28619 - $_.usematrix = false; //#28620 - $_.parse = false; //#28621 - $_.dontlint = false; //#28622 - $_.lintreqs = true; //#28623 - $k[$j++] = $_; //#28625 - bwipp_processoptions(); //#28625 - $_.options = $k[--$j]; //#28625 - $_.barcode = $k[--$j]; //#28626 - if ($_.dontdraw) { //#28628 - $_.usematrix = true; //#28628 - } //#28628 - $search($_.barcode, "|"); //#28631 - if ($k[--$j]) { //#28636 - $_.linear = $k[--$j]; //#28632 - $j--; //#28633 - $_.comp = $k[--$j]; //#28634 - } else { //#28636 - $j--; //#28636 - $k[$j++] = 'bwipp.missingCompositeComponent#28636'; //#28636 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28636 - bwipp_raiseerror(); //#28636 - } //#28636 - if (!$_.usematrix) { //#28639 - $$.save(); //#28639 - } //#28639 - $put($_.options, "lintype", "databarstacked"); //#28641 - $put($_.options, "linkage", true); //#28642 - $put($_.options, "inkspread", "0"); //#28643 - $put($_.options, "dontdraw", true); //#28644 - $put($_.options, "dontlint", true); //#28645 - var _F = $s($_.linear.length + $_.comp.length); //#28648 - $puti(_F, 0, $_.linear); //#28649 - $puti(_F, $_.linear.length, $_.comp); //#28650 - $k[$j++] = _F; //#28651 - $k[$j++] = 'ai'; //#28651 - bwipp_gs1process(); //#28651 - $j -= 3; //#28651 - $k[$j++] = $_.linear; //#28654 - $k[$j++] = $_.options; //#28654 - bwipp_databarstacked(); //#28654 - var _L = $k[--$j]; //#28655 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28655 - $_.linheight = $get(_L, "pixy"); //#28656 - $k[$j++] = _L; //#28657 - if (!$_.usematrix) { //#28657 - bwipp_renmatrix(); //#28657 - } else { //#28657 - $_.linpixs = $get($k[--$j], 'pixs'); //#28657 - } //#28657 + $_ = Object.create($_); //#28938 + $_.dontdraw = false; //#28941 + $_.usematrix = false; //#28942 + $_.parse = false; //#28943 + $_.dontlint = false; //#28944 + $_.lintreqs = true; //#28945 + $k[$j++] = $_; //#28947 + bwipp_processoptions(); //#28947 + $_.options = $k[--$j]; //#28947 + $_.barcode = $k[--$j]; //#28948 + if ($_.dontdraw) { //#28950 + $_.usematrix = true; //#28950 + } //#28950 + $search($_.barcode, "|"); //#28953 + if ($k[--$j]) { //#28958 + $_.linear = $k[--$j]; //#28954 + $j--; //#28955 + $_.comp = $k[--$j]; //#28956 + } else { //#28958 + $j--; //#28958 + $k[$j++] = 'bwipp.missingCompositeComponent#28958'; //#28958 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28958 + bwipp_raiseerror(); //#28958 + } //#28958 + if (!$_.usematrix) { //#28961 + $$.save(); //#28961 + } //#28961 + $put($_.options, "lintype", "databarstacked"); //#28963 + $put($_.options, "linkage", true); //#28964 + $put($_.options, "inkspreadv", 0); //#28965 + $put($_.options, "dontdraw", true); //#28966 + $put($_.options, "dontlint", true); //#28967 + var _F = $s($_.linear.length + $_.comp.length); //#28970 + $puti(_F, 0, $_.linear); //#28971 + $puti(_F, $_.linear.length, $_.comp); //#28972 + $k[$j++] = _F; //#28973 + $k[$j++] = 'ai'; //#28973 + bwipp_gs1process(); //#28973 + $j -= 3; //#28973 + $k[$j++] = $_.linear; //#28976 + $k[$j++] = $_.options; //#28976 + bwipp_databarstacked(); //#28976 + var _L = $k[--$j]; //#28977 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28977 + $_.linheight = $get(_L, "pixy"); //#28978 + $k[$j++] = _L; //#28979 + if (!$_.usematrix) { //#28979 + bwipp_renmatrix(); //#28979 + } else { //#28979 + $_.linpixs = $get($k[--$j], 'pixs'); //#28979 + } //#28979 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28661 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28674 - $_.i = _X; //#28663 - if ($get($_.bot, $_.i) == 0) { //#28671 - if ($get($_.bot, $_.i - 1) == 1) { //#28668 - $k[$j++] = 1; //#28666 - } else { //#28668 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28668 - $k[$j++] = _h; //#28668 - } //#28668 - } else { //#28671 - $k[$j++] = 0; //#28671 - } //#28671 - $put($_.sep, $_.i, $k[--$j]); //#28673 - } //#28673 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28675 - $k[$j++] = true; //#28676 - for (var _m = 0; _m <= 12; _m += 1) { //#28676 - var _s = $k[--$j]; //#28676 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28676 - } //#28676 - if ($k[--$j]) { //#28679 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28678 - } //#28678 - }; //#28678 - $k[$j++] = Infinity; //#28681 - var _x = $_.bot; //#28681 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28681 - $k[$j++] = $f(1 - $get(_x, _y)); //#28681 - } //#28681 - $_.sep = $a(); //#28681 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28682 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28683 - $k[$j++] = 18; //#28684 - $_.sepfinder(); //#28684 - if (!$_.usematrix) { //#28734 - $$.rmoveto(0, $_.linheight); //#28686 + $_.fp = $k[--$j]; //#28983 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28996 + $_.i = _X; //#28985 + if ($get($_.bot, $_.i) == 0) { //#28993 + if ($get($_.bot, $_.i - 1) == 1) { //#28990 + $k[$j++] = 1; //#28988 + } else { //#28990 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28990 + $k[$j++] = _h; //#28990 + } //#28990 + } else { //#28993 + $k[$j++] = 0; //#28993 + } //#28993 + $put($_.sep, $_.i, $k[--$j]); //#28995 + } //#28995 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28997 + $k[$j++] = true; //#28998 + for (var _m = 0; _m <= 12; _m += 1) { //#28998 + var _s = $k[--$j]; //#28998 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28998 + } //#28998 + if ($k[--$j]) { //#29001 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29000 + } //#29000 + }; //#29000 + $k[$j++] = Infinity; //#29003 + var _x = $_.bot; //#29003 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29003 + $k[$j++] = $f(1 - $get(_x, _y)); //#29003 + } //#29003 + $_.sep = $a(); //#29003 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29004 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29005 + $k[$j++] = 18; //#29006 + $_.sepfinder(); //#29006 + if (!$_.usematrix) { //#29056 + $$.rmoveto(0, $_.linheight); //#29008 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36930,54 +37416,52 @@ function bwipp_databarstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28693 - $k[$j++] = _1D; //#28694 - bwipp_renmatrix(); //#28694 - $$.rmoveto(1, 1); //#28697 - $k[$j++] = $_.comp; //#28697 - $k[$j++] = $_.options; //#28697 - bwipp_gs1_cc(); //#28697 - bwipp_renmatrix(); //#28697 - $$.restore(); //#28699 - } else { //#28734 - $k[$j++] = 'compsym'; //#28701 - $k[$j++] = $_.comp; //#28701 - $k[$j++] = $_.options; //#28701 - bwipp_gs1_cc(); //#28701 - var _1I = $k[--$j]; //#28701 - $_[$k[--$j]] = _1I; //#28701 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28702 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28703 - $_.linwidth = $_.sep.length; //#28705 - $k[$j++] = Infinity; //#28715 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28711 - $_.i = _1S; //#28709 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28710 - $k[$j++] = 0; //#28710 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28710 - } //#28710 - } //#28710 - $aload($_.sep); //#28712 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28716 - $_.i = _1e; //#28714 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - } //#28715 - $_.pixs = $a(); //#28715 - $_.pixx = $f($_.ccpixx + 1); //#28718 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28720 - var _1u = new Map([ + ]); //#29015 + $k[$j++] = _1D; //#29016 + bwipp_renmatrix(); //#29016 + $$.rmoveto(1, 1); //#29019 + $k[$j++] = $_.comp; //#29019 + $k[$j++] = $_.options; //#29019 + bwipp_gs1_cc(); //#29019 + bwipp_renmatrix(); //#29019 + $$.restore(); //#29021 + } else { //#29056 + $k[$j++] = 'compsym'; //#29023 + $k[$j++] = $_.comp; //#29023 + $k[$j++] = $_.options; //#29023 + bwipp_gs1_cc(); //#29023 + var _1I = $k[--$j]; //#29023 + $_[$k[--$j]] = _1I; //#29023 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29024 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29025 + $_.linwidth = $_.sep.length; //#29027 + $k[$j++] = Infinity; //#29029 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29033 + $_.i = _1S; //#29031 + $k[$j++] = 0; //#29032 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29032 + } //#29032 + $aload($_.sep); //#29034 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29038 + $_.i = _1c; //#29036 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + } //#29037 + $_.pixs = $a(); //#29037 + $_.pixx = $f($_.ccpixx + 1); //#29040 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29042 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36985,107 +37469,106 @@ function bwipp_databarstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28728 - $k[$j++] = _1u; //#28735 - if (!$_.dontdraw) { //#28735 - $$.save(); //#28732 - bwipp_renmatrix(); //#28733 - $$.restore(); //#28734 - } //#28734 - } //#28734 - $_ = Object.getPrototypeOf($_); //#28738 -} - + ]); //#29050 + $k[$j++] = _1s; //#29057 + if (!$_.dontdraw) { //#29057 + $$.save(); //#29054 + bwipp_renmatrix(); //#29055 + $$.restore(); //#29056 + } //#29056 + } //#29056 + $_ = Object.getPrototypeOf($_); //#29060 +} //bwipp_databarstackedcomposite function bwipp_databarstackedomnicomposite() { - $_ = Object.create($_); //#28769 - $_.dontdraw = false; //#28772 - $_.usematrix = false; //#28773 - $_.parse = false; //#28774 - $_.dontlint = false; //#28775 - $_.lintreqs = true; //#28776 - $k[$j++] = $_; //#28778 - bwipp_processoptions(); //#28778 - $_.options = $k[--$j]; //#28778 - $_.barcode = $k[--$j]; //#28779 - if ($_.dontdraw) { //#28781 - $_.usematrix = true; //#28781 - } //#28781 - $search($_.barcode, "|"); //#28784 - if ($k[--$j]) { //#28789 - $_.linear = $k[--$j]; //#28785 - $j--; //#28786 - $_.comp = $k[--$j]; //#28787 - } else { //#28789 - $j--; //#28789 - $k[$j++] = 'bwipp.missingCompositeComponent#28789'; //#28789 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28789 - bwipp_raiseerror(); //#28789 - } //#28789 - if (!$_.usematrix) { //#28792 - $$.save(); //#28792 - } //#28792 - $put($_.options, "lintype", "databarstackedomni"); //#28794 - $put($_.options, "linkage", true); //#28795 - $put($_.options, "inkspread", "0"); //#28796 - $put($_.options, "dontdraw", true); //#28797 - $put($_.options, "dontlint", true); //#28798 - var _F = $s($_.linear.length + $_.comp.length); //#28801 - $puti(_F, 0, $_.linear); //#28802 - $puti(_F, $_.linear.length, $_.comp); //#28803 - $k[$j++] = _F; //#28804 - $k[$j++] = 'ai'; //#28804 - bwipp_gs1process(); //#28804 - $j -= 3; //#28804 - $k[$j++] = $_.linear; //#28807 - $k[$j++] = $_.options; //#28807 - bwipp_databarstackedomni(); //#28807 - var _L = $k[--$j]; //#28808 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28808 - $_.linheight = $get(_L, "pixy"); //#28809 - $k[$j++] = _L; //#28810 - if (!$_.usematrix) { //#28810 - bwipp_renmatrix(); //#28810 - } else { //#28810 - $_.linpixs = $get($k[--$j], 'pixs'); //#28810 - } //#28810 + $_ = Object.create($_); //#29091 + $_.dontdraw = false; //#29094 + $_.usematrix = false; //#29095 + $_.parse = false; //#29096 + $_.dontlint = false; //#29097 + $_.lintreqs = true; //#29098 + $k[$j++] = $_; //#29100 + bwipp_processoptions(); //#29100 + $_.options = $k[--$j]; //#29100 + $_.barcode = $k[--$j]; //#29101 + if ($_.dontdraw) { //#29103 + $_.usematrix = true; //#29103 + } //#29103 + $search($_.barcode, "|"); //#29106 + if ($k[--$j]) { //#29111 + $_.linear = $k[--$j]; //#29107 + $j--; //#29108 + $_.comp = $k[--$j]; //#29109 + } else { //#29111 + $j--; //#29111 + $k[$j++] = 'bwipp.missingCompositeComponent#29111'; //#29111 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29111 + bwipp_raiseerror(); //#29111 + } //#29111 + if (!$_.usematrix) { //#29114 + $$.save(); //#29114 + } //#29114 + $put($_.options, "lintype", "databarstackedomni"); //#29116 + $put($_.options, "linkage", true); //#29117 + $put($_.options, "inkspreadv", 0); //#29118 + $put($_.options, "dontdraw", true); //#29119 + $put($_.options, "dontlint", true); //#29120 + var _F = $s($_.linear.length + $_.comp.length); //#29123 + $puti(_F, 0, $_.linear); //#29124 + $puti(_F, $_.linear.length, $_.comp); //#29125 + $k[$j++] = _F; //#29126 + $k[$j++] = 'ai'; //#29126 + bwipp_gs1process(); //#29126 + $j -= 3; //#29126 + $k[$j++] = $_.linear; //#29129 + $k[$j++] = $_.options; //#29129 + bwipp_databarstackedomni(); //#29129 + var _L = $k[--$j]; //#29130 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29130 + $_.linheight = $get(_L, "pixy"); //#29131 + $k[$j++] = _L; //#29132 + if (!$_.usematrix) { //#29132 + bwipp_renmatrix(); //#29132 + } else { //#29132 + $_.linpixs = $get($k[--$j], 'pixs'); //#29132 + } //#29132 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28814 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28827 - $_.i = _X; //#28816 - if ($get($_.bot, $_.i) == 0) { //#28824 - if ($get($_.bot, $_.i - 1) == 1) { //#28821 - $k[$j++] = 1; //#28819 - } else { //#28821 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28821 - $k[$j++] = _h; //#28821 - } //#28821 - } else { //#28824 - $k[$j++] = 0; //#28824 - } //#28824 - $put($_.sep, $_.i, $k[--$j]); //#28826 - } //#28826 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28828 - $k[$j++] = true; //#28829 - for (var _m = 0; _m <= 12; _m += 1) { //#28829 - var _s = $k[--$j]; //#28829 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28829 - } //#28829 - if ($k[--$j]) { //#28832 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28831 - } //#28831 - }; //#28831 - $k[$j++] = Infinity; //#28834 - var _x = $_.bot; //#28834 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28834 - $k[$j++] = $f(1 - $get(_x, _y)); //#28834 - } //#28834 - $_.sep = $a(); //#28834 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28835 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28836 - $k[$j++] = 18; //#28837 - $_.sepfinder(); //#28837 - if (!$_.usematrix) { //#28887 - $$.rmoveto(0, $_.linheight); //#28839 + $_.fp = $k[--$j]; //#29136 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29149 + $_.i = _X; //#29138 + if ($get($_.bot, $_.i) == 0) { //#29146 + if ($get($_.bot, $_.i - 1) == 1) { //#29143 + $k[$j++] = 1; //#29141 + } else { //#29143 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29143 + $k[$j++] = _h; //#29143 + } //#29143 + } else { //#29146 + $k[$j++] = 0; //#29146 + } //#29146 + $put($_.sep, $_.i, $k[--$j]); //#29148 + } //#29148 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29150 + $k[$j++] = true; //#29151 + for (var _m = 0; _m <= 12; _m += 1) { //#29151 + var _s = $k[--$j]; //#29151 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#29151 + } //#29151 + if ($k[--$j]) { //#29154 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29153 + } //#29153 + }; //#29153 + $k[$j++] = Infinity; //#29156 + var _x = $_.bot; //#29156 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29156 + $k[$j++] = $f(1 - $get(_x, _y)); //#29156 + } //#29156 + $_.sep = $a(); //#29156 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29157 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29158 + $k[$j++] = 18; //#29159 + $_.sepfinder(); //#29159 + if (!$_.usematrix) { //#29209 + $$.rmoveto(0, $_.linheight); //#29161 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37094,178 +37577,175 @@ function bwipp_databarstackedomnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28846 - $k[$j++] = _1D; //#28847 - bwipp_renmatrix(); //#28847 - $$.rmoveto(1, 1); //#28850 - $k[$j++] = $_.comp; //#28850 - $k[$j++] = $_.options; //#28850 - bwipp_gs1_cc(); //#28850 - bwipp_renmatrix(); //#28850 - $$.restore(); //#28852 - } else { //#28887 - $k[$j++] = 'compsym'; //#28854 - $k[$j++] = $_.comp; //#28854 - $k[$j++] = $_.options; //#28854 - bwipp_gs1_cc(); //#28854 - var _1I = $k[--$j]; //#28854 - $_[$k[--$j]] = _1I; //#28854 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28855 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28856 - $_.linwidth = $_.sep.length; //#28858 - $k[$j++] = Infinity; //#28868 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28864 - $_.i = _1S; //#28862 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28863 - $k[$j++] = 0; //#28863 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28863 - } //#28863 - } //#28863 - $aload($_.sep); //#28865 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28869 - $_.i = _1e; //#28867 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - } //#28868 - $_.pixs = $a(); //#28868 - $_.pixx = $f($_.ccpixx + 1); //#28871 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28873 - var _1u = new Map([ + ]); //#29168 + $k[$j++] = _1D; //#29169 + bwipp_renmatrix(); //#29169 + $$.rmoveto(1, 1); //#29172 + $k[$j++] = $_.comp; //#29172 + $k[$j++] = $_.options; //#29172 + bwipp_gs1_cc(); //#29172 + bwipp_renmatrix(); //#29172 + $$.restore(); //#29174 + } else { //#29209 + $k[$j++] = 'compsym'; //#29176 + $k[$j++] = $_.comp; //#29176 + $k[$j++] = $_.options; //#29176 + bwipp_gs1_cc(); //#29176 + var _1I = $k[--$j]; //#29176 + $_[$k[--$j]] = _1I; //#29176 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29177 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29178 + $_.linwidth = $_.sep.length; //#29180 + $k[$j++] = Infinity; //#29182 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29186 + $_.i = _1S; //#29184 + $k[$j++] = 0; //#29185 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29185 + } //#29185 + $aload($_.sep); //#29187 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29191 + $_.i = _1c; //#29189 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + } //#29190 + $_.pixs = $a(); //#29190 + $_.pixx = $f($_.ccpixx + 1); //#29193 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29195 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], ["pixy", $_.pixy], ["height", $_.pixy / 72], ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#28881 - $k[$j++] = _1u; //#28888 - if (!$_.dontdraw) { //#28888 - $$.save(); //#28885 - bwipp_renmatrix(); //#28886 - $$.restore(); //#28887 - } //#28887 - } //#28887 - $_ = Object.getPrototypeOf($_); //#28891 -} - + ["opt", $_.options] + ]); //#29203 + $k[$j++] = _1s; //#29210 + if (!$_.dontdraw) { //#29210 + $$.save(); //#29207 + bwipp_renmatrix(); //#29208 + $$.restore(); //#29209 + } //#29209 + } //#29209 + $_ = Object.getPrototypeOf($_); //#29213 +} //bwipp_databarstackedomnicomposite function bwipp_databartruncatedcomposite() { - $_ = Object.create($_); //#28923 - $_.dontdraw = false; //#28926 - $_.usematrix = false; //#28927 - $_.parse = false; //#28928 - $_.dontlint = false; //#28929 - $_.lintreqs = true; //#28930 - $k[$j++] = $_; //#28932 - bwipp_processoptions(); //#28932 - $_.options = $k[--$j]; //#28932 - $_.barcode = $k[--$j]; //#28933 - if ($_.dontdraw) { //#28935 - $_.usematrix = true; //#28935 - } //#28935 - $search($_.barcode, "|"); //#28938 - if ($k[--$j]) { //#28943 - $_.linear = $k[--$j]; //#28939 - $j--; //#28940 - $_.comp = $k[--$j]; //#28941 - } else { //#28943 - $j--; //#28943 - $k[$j++] = 'bwipp.missingCompositeComponent#28943'; //#28943 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28943 - bwipp_raiseerror(); //#28943 - } //#28943 - if (!$_.usematrix) { //#28946 - $$.save(); //#28946 - } //#28946 - $put($_.options, "lintype", "databartruncated"); //#28948 - $put($_.options, "linkage", true); //#28949 - $put($_.options, "inkspread", "0"); //#28950 - $put($_.options, "dontdraw", true); //#28951 - $put($_.options, "dontlint", true); //#28952 - var _F = $s($_.linear.length + $_.comp.length); //#28955 - $puti(_F, 0, $_.linear); //#28956 - $puti(_F, $_.linear.length, $_.comp); //#28957 - $k[$j++] = _F; //#28958 - $k[$j++] = 'ai'; //#28958 - bwipp_gs1process(); //#28958 - $j -= 3; //#28958 - $k[$j++] = $_.linear; //#28961 - $k[$j++] = $_.options; //#28961 - bwipp_databartruncated(); //#28961 - var _L = $k[--$j]; //#28962 - $_.linsbs = $get(_L, "sbs"); //#28962 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28963 - $k[$j++] = _L; //#28964 - if (!$_.usematrix) { //#28964 - bwipp_renlinear(); //#28964 - } else { //#28964 - $j--; //#28964 - } //#28964 + $_ = Object.create($_); //#29245 + $_.dontdraw = false; //#29248 + $_.usematrix = false; //#29249 + $_.parse = false; //#29250 + $_.dontlint = false; //#29251 + $_.lintreqs = true; //#29252 + $k[$j++] = $_; //#29254 + bwipp_processoptions(); //#29254 + $_.options = $k[--$j]; //#29254 + $_.barcode = $k[--$j]; //#29255 + if ($_.dontdraw) { //#29257 + $_.usematrix = true; //#29257 + } //#29257 + $search($_.barcode, "|"); //#29260 + if ($k[--$j]) { //#29265 + $_.linear = $k[--$j]; //#29261 + $j--; //#29262 + $_.comp = $k[--$j]; //#29263 + } else { //#29265 + $j--; //#29265 + $k[$j++] = 'bwipp.missingCompositeComponent#29265'; //#29265 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29265 + bwipp_raiseerror(); //#29265 + } //#29265 + if (!$_.usematrix) { //#29268 + $$.save(); //#29268 + } //#29268 + $put($_.options, "lintype", "databartruncated"); //#29270 + $put($_.options, "linkage", true); //#29271 + $put($_.options, "inkspreadv", 0); //#29272 + $put($_.options, "dontdraw", true); //#29273 + $put($_.options, "dontlint", true); //#29274 + var _F = $s($_.linear.length + $_.comp.length); //#29277 + $puti(_F, 0, $_.linear); //#29278 + $puti(_F, $_.linear.length, $_.comp); //#29279 + $k[$j++] = _F; //#29280 + $k[$j++] = 'ai'; //#29280 + bwipp_gs1process(); //#29280 + $j -= 3; //#29280 + $k[$j++] = $_.linear; //#29283 + $k[$j++] = $_.options; //#29283 + bwipp_databartruncated(); //#29283 + var _L = $k[--$j]; //#29284 + $_.linsbs = $get(_L, "sbs"); //#29284 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29285 + $k[$j++] = _L; //#29286 + if (!$_.usematrix) { //#29286 + bwipp_renlinear(); //#29286 + } else { //#29286 + $j--; //#29286 + } //#29286 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28968 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28981 - $_.i = _U; //#28970 - if ($get($_.bot, $_.i) == 0) { //#28978 - if ($get($_.bot, $_.i - 1) == 1) { //#28975 - $k[$j++] = 1; //#28973 - } else { //#28975 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28975 - $k[$j++] = _e; //#28975 - } //#28975 - } else { //#28978 - $k[$j++] = 0; //#28978 - } //#28978 - $put($_.sep, $_.i, $k[--$j]); //#28980 - } //#28980 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28982 - $k[$j++] = true; //#28983 - for (var _j = 0; _j <= 12; _j += 1) { //#28983 - var _p = $k[--$j]; //#28983 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28983 - } //#28983 - if ($k[--$j]) { //#28986 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28985 - } //#28985 - }; //#28985 - $k[$j++] = Infinity; //#28988 - $k[$j++] = 0; //#28989 - $forall($_.linsbs, function() { //#28989 - var _v = $k[--$j]; //#28989 - var _w = $k[--$j]; //#28989 - var _x = (_w == 1) ? 0 : 1; //#28989 - $k[$j++] = _w; //#28989 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28989 - $k[$j++] = _x //#28989 - } //#28989 - }); //#28989 - $astore($a($counttomark() - 1)); //#28990 - $_.bot = $k[--$j]; //#28990 - $j -= 2; //#28990 - $k[$j++] = Infinity; //#28991 - $forall($_.bot, function() { //#28991 - var _14 = $k[--$j]; //#28991 - $k[$j++] = $f(1 - _14); //#28991 - }); //#28991 - $_.sep = $a(); //#28991 - $puti($_.sep, 0, $a([0, 0, 0])); //#28992 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28993 - $k[$j++] = 18; //#28994 - $_.sepfinder(); //#28994 - $k[$j++] = 64; //#28994 - $_.sepfinder(); //#28994 - if (!$_.usematrix) { //#29045 - $$.rmoveto(0, $_.linheight); //#28996 + $_.fp = $k[--$j]; //#29290 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29303 + $_.i = _U; //#29292 + if ($get($_.bot, $_.i) == 0) { //#29300 + if ($get($_.bot, $_.i - 1) == 1) { //#29297 + $k[$j++] = 1; //#29295 + } else { //#29297 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29297 + $k[$j++] = _e; //#29297 + } //#29297 + } else { //#29300 + $k[$j++] = 0; //#29300 + } //#29300 + $put($_.sep, $_.i, $k[--$j]); //#29302 + } //#29302 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29304 + $k[$j++] = true; //#29305 + for (var _j = 0; _j <= 12; _j += 1) { //#29305 + var _p = $k[--$j]; //#29305 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#29305 + } //#29305 + if ($k[--$j]) { //#29308 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29307 + } //#29307 + }; //#29307 + $k[$j++] = Infinity; //#29310 + $k[$j++] = 0; //#29311 + $forall($_.linsbs, function() { //#29311 + var _v = $k[--$j]; //#29311 + var _w = $k[--$j]; //#29311 + var _x = (_w == 1) ? 0 : 1; //#29311 + $k[$j++] = _w; //#29311 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#29311 + $k[$j++] = _x //#29311 + } //#29311 + }); //#29311 + $astore($a($counttomark() - 1)); //#29312 + $_.bot = $k[--$j]; //#29312 + $j -= 2; //#29312 + $k[$j++] = Infinity; //#29313 + $forall($_.bot, function() { //#29313 + var _14 = $k[--$j]; //#29313 + $k[$j++] = $f(1 - _14); //#29313 + }); //#29313 + $_.sep = $a(); //#29313 + $puti($_.sep, 0, $a([0, 0, 0])); //#29314 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29315 + $k[$j++] = 18; //#29316 + $_.sepfinder(); //#29316 + $k[$j++] = 64; //#29316 + $_.sepfinder(); //#29316 + if (!$_.usematrix) { //#29367 + $$.rmoveto(0, $_.linheight); //#29318 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37274,65 +37754,63 @@ function bwipp_databartruncatedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29003 - $k[$j++] = _1H; //#29004 - bwipp_renmatrix(); //#29004 - $$.rmoveto(-5, 1); //#29007 - $k[$j++] = $_.comp; //#29007 - $k[$j++] = $_.options; //#29007 - bwipp_gs1_cc(); //#29007 - bwipp_renmatrix(); //#29007 - $$.restore(); //#29009 - } else { //#29045 - $k[$j++] = 'compsym'; //#29011 - $k[$j++] = $_.comp; //#29011 - $k[$j++] = $_.options; //#29011 - bwipp_gs1_cc(); //#29011 - var _1M = $k[--$j]; //#29011 - $_[$k[--$j]] = _1M; //#29011 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29012 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29013 - $k[$j++] = Infinity; //#29016 - $k[$j++] = 0; //#29016 - $forall($_.linsbs, function() { //#29016 - var _1T = $k[--$j]; //#29016 - var _1U = $k[--$j]; //#29016 - var _1V = (_1U == 0) ? 1 : 0; //#29016 - $k[$j++] = _1U; //#29016 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29016 - $k[$j++] = _1V //#29016 - } //#29016 - }); //#29016 - $_.linpixs = $a(); //#29016 - $k[$j++] = Infinity; //#29018 - $k[$j++] = 0; //#29018 - $aload($_.sep); //#29018 - $_.sep = $a(); //#29018 - $_.linheight = ~~$_.linheight; //#29020 - $k[$j++] = Infinity; //#29027 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29026 - $_.i = _1f; //#29024 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#29025 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29025 - $k[$j++] = 0; //#29025 - } //#29025 - } //#29025 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.sep); //#29027 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.linpixs); //#29027 - } //#29027 - $_.pixs = $a(); //#29027 - $_.pixx = $f($_.ccpixx + 1); //#29029 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29031 - var _22 = new Map([ + ]); //#29325 + $k[$j++] = _1H; //#29326 + bwipp_renmatrix(); //#29326 + $$.rmoveto(-5, 1); //#29329 + $k[$j++] = $_.comp; //#29329 + $k[$j++] = $_.options; //#29329 + bwipp_gs1_cc(); //#29329 + bwipp_renmatrix(); //#29329 + $$.restore(); //#29331 + } else { //#29367 + $k[$j++] = 'compsym'; //#29333 + $k[$j++] = $_.comp; //#29333 + $k[$j++] = $_.options; //#29333 + bwipp_gs1_cc(); //#29333 + var _1M = $k[--$j]; //#29333 + $_[$k[--$j]] = _1M; //#29333 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29334 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29335 + $k[$j++] = Infinity; //#29337 + $k[$j++] = 0; //#29338 + $forall($_.linsbs, function() { //#29338 + var _1T = $k[--$j]; //#29338 + var _1U = $k[--$j]; //#29338 + var _1V = (_1U == 0) ? 1 : 0; //#29338 + $k[$j++] = _1U; //#29338 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29338 + $k[$j++] = _1V //#29338 + } //#29338 + }); //#29338 + $_.linpixs = $a(); //#29338 + $k[$j++] = Infinity; //#29340 + $k[$j++] = 0; //#29340 + $aload($_.sep); //#29340 + $_.sep = $a(); //#29340 + $_.linheight = ~~$_.linheight; //#29342 + $k[$j++] = Infinity; //#29344 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29348 + $_.i = _1f; //#29346 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29347 + $k[$j++] = 0; //#29347 + } //#29347 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.sep); //#29349 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.linpixs); //#29349 + } //#29349 + $_.pixs = $a(); //#29349 + $_.pixx = $f($_.ccpixx + 1); //#29351 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29353 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37340,89 +37818,88 @@ function bwipp_databartruncatedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29039 - $k[$j++] = _22; //#29046 - if (!$_.dontdraw) { //#29046 - $$.save(); //#29043 - bwipp_renmatrix(); //#29044 - $$.restore(); //#29045 - } //#29045 - } //#29045 - $_ = Object.getPrototypeOf($_); //#29049 -} - + ]); //#29361 + $k[$j++] = _20; //#29368 + if (!$_.dontdraw) { //#29368 + $$.save(); //#29365 + bwipp_renmatrix(); //#29366 + $$.restore(); //#29367 + } //#29367 + } //#29367 + $_ = Object.getPrototypeOf($_); //#29371 +} //bwipp_databartruncatedcomposite function bwipp_databarlimitedcomposite() { - $_ = Object.create($_); //#29081 - $_.dontdraw = false; //#29084 - $_.usematrix = false; //#29085 - $_.parse = false; //#29086 - $_.dontlint = false; //#29087 - $_.lintreqs = true; //#29088 - $k[$j++] = $_; //#29090 - bwipp_processoptions(); //#29090 - $_.options = $k[--$j]; //#29090 - $_.barcode = $k[--$j]; //#29091 - if ($_.dontdraw) { //#29093 - $_.usematrix = true; //#29093 - } //#29093 - $search($_.barcode, "|"); //#29096 - if ($k[--$j]) { //#29101 - $_.linear = $k[--$j]; //#29097 - $j--; //#29098 - $_.comp = $k[--$j]; //#29099 - } else { //#29101 - $j--; //#29101 - $k[$j++] = 'bwipp.missingCompositeComponent#29101'; //#29101 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29101 - bwipp_raiseerror(); //#29101 - } //#29101 - if (!$_.usematrix) { //#29104 - $$.save(); //#29104 - } //#29104 - $put($_.options, "lintype", "databarlimited"); //#29106 - $put($_.options, "linkage", true); //#29107 - $put($_.options, "inkspread", "0"); //#29108 - $put($_.options, "dontdraw", true); //#29109 - $put($_.options, "dontlint", true); //#29110 - var _F = $s($_.linear.length + $_.comp.length); //#29113 - $puti(_F, 0, $_.linear); //#29114 - $puti(_F, $_.linear.length, $_.comp); //#29115 - $k[$j++] = _F; //#29116 - $k[$j++] = 'ai'; //#29116 - bwipp_gs1process(); //#29116 - $j -= 3; //#29116 - $k[$j++] = $_.linear; //#29119 - $k[$j++] = $_.options; //#29119 - bwipp_databarlimited(); //#29119 - var _L = $k[--$j]; //#29120 - $_.linsbs = $get(_L, "sbs"); //#29120 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29121 - $k[$j++] = _L; //#29122 - if (!$_.usematrix) { //#29122 - bwipp_renlinear(); //#29122 - } else { //#29122 - $j--; //#29122 - } //#29122 - $k[$j++] = Infinity; //#29125 - $k[$j++] = 1; //#29126 - $forall($_.linsbs, function() { //#29126 - var _R = $k[--$j]; //#29126 - var _S = $k[--$j]; //#29126 - var _T = (_S == 0) ? 1 : 0; //#29126 - $k[$j++] = _S; //#29126 - for (var _U = 0, _V = _R; _U < _V; _U++) { //#29126 - $k[$j++] = _T //#29126 - } //#29126 - }); //#29126 - $astore($a($counttomark() - 1)); //#29127 - $_.sep = $k[--$j]; //#29127 - $j -= 2; //#29127 - $puti($_.sep, 0, $a([0, 0, 0])); //#29128 - var _c = $_.sep; //#29129 - $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29129 - if (!$_.usematrix) { //#29194 - $$.rmoveto(0, $_.linheight); //#29132 - var _g = $_.sep; //#29134 + $_ = Object.create($_); //#29403 + $_.dontdraw = false; //#29406 + $_.usematrix = false; //#29407 + $_.parse = false; //#29408 + $_.dontlint = false; //#29409 + $_.lintreqs = true; //#29410 + $k[$j++] = $_; //#29412 + bwipp_processoptions(); //#29412 + $_.options = $k[--$j]; //#29412 + $_.barcode = $k[--$j]; //#29413 + if ($_.dontdraw) { //#29415 + $_.usematrix = true; //#29415 + } //#29415 + $search($_.barcode, "|"); //#29418 + if ($k[--$j]) { //#29423 + $_.linear = $k[--$j]; //#29419 + $j--; //#29420 + $_.comp = $k[--$j]; //#29421 + } else { //#29423 + $j--; //#29423 + $k[$j++] = 'bwipp.missingCompositeComponent#29423'; //#29423 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29423 + bwipp_raiseerror(); //#29423 + } //#29423 + if (!$_.usematrix) { //#29426 + $$.save(); //#29426 + } //#29426 + $put($_.options, "lintype", "databarlimited"); //#29428 + $put($_.options, "linkage", true); //#29429 + $put($_.options, "inkspreadv", 0); //#29430 + $put($_.options, "dontdraw", true); //#29431 + $put($_.options, "dontlint", true); //#29432 + var _F = $s($_.linear.length + $_.comp.length); //#29435 + $puti(_F, 0, $_.linear); //#29436 + $puti(_F, $_.linear.length, $_.comp); //#29437 + $k[$j++] = _F; //#29438 + $k[$j++] = 'ai'; //#29438 + bwipp_gs1process(); //#29438 + $j -= 3; //#29438 + $k[$j++] = $_.linear; //#29441 + $k[$j++] = $_.options; //#29441 + bwipp_databarlimited(); //#29441 + var _L = $k[--$j]; //#29442 + $_.linsbs = $get(_L, "sbs"); //#29442 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29443 + $k[$j++] = _L; //#29444 + if (!$_.usematrix) { //#29444 + bwipp_renlinear(); //#29444 + } else { //#29444 + $j--; //#29444 + } //#29444 + $k[$j++] = Infinity; //#29447 + $k[$j++] = 1; //#29448 + $forall($_.linsbs, function() { //#29448 + var _R = $k[--$j]; //#29448 + var _S = $k[--$j]; //#29448 + var _T = (_S == 0) ? 1 : 0; //#29448 + $k[$j++] = _S; //#29448 + for (var _U = 0, _V = _R; _U < _V; _U++) { //#29448 + $k[$j++] = _T //#29448 + } //#29448 + }); //#29448 + $astore($a($counttomark() - 1)); //#29449 + $_.sep = $k[--$j]; //#29449 + $j -= 2; //#29449 + $puti($_.sep, 0, $a([0, 0, 0])); //#29450 + var _c = $_.sep; //#29451 + $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29451 + if (!$_.usematrix) { //#29516 + $$.rmoveto(0, $_.linheight); //#29454 + var _g = $_.sep; //#29456 var _k = new Map([ ["ren", bwipp_renmatrix], ["pixs", _g], @@ -37431,105 +37908,101 @@ function bwipp_databarlimitedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29139 - $k[$j++] = _k; //#29140 - bwipp_renmatrix(); //#29140 - $k[$j++] = $_.comp; //#29143 - $k[$j++] = $_.options; //#29143 - bwipp_gs1_cc(); //#29143 - var _n = $k[--$j]; //#29144 - $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29144 - $k[$j++] = _n; //#29145 - bwipp_renmatrix(); //#29145 - $$.restore(); //#29147 - } else { //#29194 - $k[$j++] = 'compsym'; //#29149 - $k[$j++] = $_.comp; //#29149 - $k[$j++] = $_.options; //#29149 - bwipp_gs1_cc(); //#29149 - var _r = $k[--$j]; //#29149 - $_[$k[--$j]] = _r; //#29149 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29150 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29151 - $k[$j++] = Infinity; //#29154 - $k[$j++] = 0; //#29154 - $forall($_.linsbs, function() { //#29154 - var _y = $k[--$j]; //#29154 - var _z = $k[--$j]; //#29154 - var _10 = (_z == 0) ? 1 : 0; //#29154 - $k[$j++] = _z; //#29154 - for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29154 - $k[$j++] = _10 //#29154 - } //#29154 - }); //#29154 - $_.linpixs = $a(); //#29154 - $k[$j++] = Infinity; //#29156 - $k[$j++] = 0; //#29156 - $aload($_.sep); //#29156 - $_.sep = $a(); //#29156 - $_.linheight = ~~$_.linheight; //#29158 - if ($_.ccpixx == 72) { //#29177 - $k[$j++] = Infinity; //#29166 - for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29165 - $_.i = _1B; //#29163 - for (var _1D = 0, _1E = 2; _1D < _1E; _1D++) { //#29164 - $k[$j++] = 0; //#29164 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - } //#29164 - } //#29164 - $aload($_.sep); //#29166 - for (var _1L = 0, _1M = $_.linheight; _1L < _1M; _1L++) { //#29166 - $aload($_.linpixs); //#29166 - } //#29166 - $_.pixs = $a(); //#29166 - $_.pixx = $_.linpixs.length; //#29168 - } else { //#29177 - $k[$j++] = Infinity; //#29175 - for (var _1T = 0, _1U = $_.ccpixx, _1S = $_.ccpixs.length - 1; _1U < 0 ? _1T >= _1S : _1T <= _1S; _1T += _1U) { //#29174 - $_.i = _1T; //#29172 - for (var _1V = 0, _1W = 2; _1V < _1W; _1V++) { //#29173 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - } //#29173 - } //#29173 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.sep); //#29175 - for (var _1d = 0, _1e = $_.linheight; _1d < _1e; _1d++) { //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.linpixs); //#29175 - } //#29175 - $_.pixs = $a(); //#29175 - $_.pixx = $f($_.ccpixx + 6); //#29177 - } //#29177 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29180 - var _1q = new Map([ + ]); //#29461 + $k[$j++] = _k; //#29462 + bwipp_renmatrix(); //#29462 + $k[$j++] = $_.comp; //#29465 + $k[$j++] = $_.options; //#29465 + bwipp_gs1_cc(); //#29465 + var _n = $k[--$j]; //#29466 + $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29466 + $k[$j++] = _n; //#29467 + bwipp_renmatrix(); //#29467 + $$.restore(); //#29469 + } else { //#29516 + $k[$j++] = 'compsym'; //#29471 + $k[$j++] = $_.comp; //#29471 + $k[$j++] = $_.options; //#29471 + bwipp_gs1_cc(); //#29471 + var _r = $k[--$j]; //#29471 + $_[$k[--$j]] = _r; //#29471 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 + $k[$j++] = Infinity; //#29475 + $k[$j++] = 0; //#29476 + $forall($_.linsbs, function() { //#29476 + var _y = $k[--$j]; //#29476 + var _z = $k[--$j]; //#29476 + var _10 = (_z == 0) ? 1 : 0; //#29476 + $k[$j++] = _z; //#29476 + for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29476 + $k[$j++] = _10 //#29476 + } //#29476 + }); //#29476 + $_.linpixs = $a(); //#29476 + $k[$j++] = Infinity; //#29478 + $k[$j++] = 0; //#29478 + $aload($_.sep); //#29478 + $_.sep = $a(); //#29478 + $_.linheight = ~~$_.linheight; //#29480 + if ($_.ccpixx == 72) { //#29499 + $k[$j++] = Infinity; //#29483 + for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29487 + $_.i = _1B; //#29485 + $k[$j++] = 0; //#29486 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + } //#29486 + $aload($_.sep); //#29488 + for (var _1J = 0, _1K = $_.linheight; _1J < _1K; _1J++) { //#29488 + $aload($_.linpixs); //#29488 + } //#29488 + $_.pixs = $a(); //#29488 + $_.pixx = $_.linpixs.length; //#29490 + } else { //#29499 + $k[$j++] = Infinity; //#29492 + for (var _1R = 0, _1S = $_.ccpixx, _1Q = $_.ccpixs.length - 1; _1S < 0 ? _1R >= _1Q : _1R <= _1Q; _1R += _1S) { //#29496 + $_.i = _1R; //#29494 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + } //#29495 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.sep); //#29497 + for (var _1Z = 0, _1a = $_.linheight; _1Z < _1a; _1Z++) { //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.linpixs); //#29497 + } //#29497 + $_.pixs = $a(); //#29497 + $_.pixx = $f($_.ccpixx + 6); //#29499 + } //#29499 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29502 + var _1m = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37537,122 +38010,121 @@ function bwipp_databarlimitedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29188 - $k[$j++] = _1q; //#29195 - if (!$_.dontdraw) { //#29195 - $$.save(); //#29192 - bwipp_renmatrix(); //#29193 - $$.restore(); //#29194 - } //#29194 - } //#29194 - $_ = Object.getPrototypeOf($_); //#29198 -} - + ]); //#29510 + $k[$j++] = _1m; //#29517 + if (!$_.dontdraw) { //#29517 + $$.save(); //#29514 + bwipp_renmatrix(); //#29515 + $$.restore(); //#29516 + } //#29516 + } //#29516 + $_ = Object.getPrototypeOf($_); //#29520 +} //bwipp_databarlimitedcomposite function bwipp_databarexpandedcomposite() { - $_ = Object.create($_); //#29230 - $_.dontdraw = false; //#29233 - $_.usematrix = false; //#29234 - $_.parse = false; //#29235 - $_.dontlint = false; //#29236 - $_.lintreqs = true; //#29237 - $k[$j++] = $_; //#29239 - bwipp_processoptions(); //#29239 - $_.options = $k[--$j]; //#29239 - $_.barcode = $k[--$j]; //#29240 - if ($_.dontdraw) { //#29242 - $_.usematrix = true; //#29242 - } //#29242 - $search($_.barcode, "|"); //#29245 - if ($k[--$j]) { //#29250 - $_.linear = $k[--$j]; //#29246 - $j--; //#29247 - $_.comp = $k[--$j]; //#29248 - } else { //#29250 - $j--; //#29250 - $k[$j++] = 'bwipp.missingCompositeComponent#29250'; //#29250 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29250 - bwipp_raiseerror(); //#29250 - } //#29250 - if (!$_.usematrix) { //#29253 - $$.save(); //#29253 - } //#29253 - $put($_.options, "lintype", "databarexpanded"); //#29255 - $put($_.options, "linkage", true); //#29256 - $put($_.options, "inkspread", "0"); //#29257 - $put($_.options, "dontdraw", true); //#29258 - $put($_.options, "dontlint", true); //#29259 - var _F = $s($_.linear.length + $_.comp.length); //#29262 - $puti(_F, 0, $_.linear); //#29263 - $puti(_F, $_.linear.length, $_.comp); //#29264 - $k[$j++] = _F; //#29265 - $k[$j++] = 'ai'; //#29265 - bwipp_gs1process(); //#29265 - $j -= 3; //#29265 - $k[$j++] = $_.linear; //#29268 - $k[$j++] = $_.options; //#29268 - bwipp_databarexpanded(); //#29268 - var _L = $k[--$j]; //#29269 - $_.linsbs = $get(_L, "sbs"); //#29269 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29270 - $k[$j++] = _L; //#29271 - if (!$_.usematrix) { //#29271 - bwipp_renlinear(); //#29271 - } else { //#29271 - $j--; //#29271 - } //#29271 + $_ = Object.create($_); //#29552 + $_.dontdraw = false; //#29555 + $_.usematrix = false; //#29556 + $_.parse = false; //#29557 + $_.dontlint = false; //#29558 + $_.lintreqs = true; //#29559 + $k[$j++] = $_; //#29561 + bwipp_processoptions(); //#29561 + $_.options = $k[--$j]; //#29561 + $_.barcode = $k[--$j]; //#29562 + if ($_.dontdraw) { //#29564 + $_.usematrix = true; //#29564 + } //#29564 + $search($_.barcode, "|"); //#29567 + if ($k[--$j]) { //#29572 + $_.linear = $k[--$j]; //#29568 + $j--; //#29569 + $_.comp = $k[--$j]; //#29570 + } else { //#29572 + $j--; //#29572 + $k[$j++] = 'bwipp.missingCompositeComponent#29572'; //#29572 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29572 + bwipp_raiseerror(); //#29572 + } //#29572 + if (!$_.usematrix) { //#29575 + $$.save(); //#29575 + } //#29575 + $put($_.options, "lintype", "databarexpanded"); //#29577 + $put($_.options, "linkage", true); //#29578 + $put($_.options, "inkspreadv", 0); //#29579 + $put($_.options, "dontdraw", true); //#29580 + $put($_.options, "dontlint", true); //#29581 + var _F = $s($_.linear.length + $_.comp.length); //#29584 + $puti(_F, 0, $_.linear); //#29585 + $puti(_F, $_.linear.length, $_.comp); //#29586 + $k[$j++] = _F; //#29587 + $k[$j++] = 'ai'; //#29587 + bwipp_gs1process(); //#29587 + $j -= 3; //#29587 + $k[$j++] = $_.linear; //#29590 + $k[$j++] = $_.options; //#29590 + bwipp_databarexpanded(); //#29590 + var _L = $k[--$j]; //#29591 + $_.linsbs = $get(_L, "sbs"); //#29591 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29592 + $k[$j++] = _L; //#29593 + if (!$_.usematrix) { //#29593 + bwipp_renlinear(); //#29593 + } else { //#29593 + $j--; //#29593 + } //#29593 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29275 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29288 - $_.i = _U; //#29277 - if ($get($_.bot, $_.i) == 0) { //#29285 - if ($get($_.bot, $_.i - 1) == 1) { //#29282 - $k[$j++] = 1; //#29280 - } else { //#29282 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29282 - $k[$j++] = _e; //#29282 - } //#29282 - } else { //#29285 - $k[$j++] = 0; //#29285 - } //#29285 - $put($_.sep, $_.i, $k[--$j]); //#29287 - } //#29287 - }; //#29287 - $k[$j++] = Infinity; //#29290 - $k[$j++] = 0; //#29291 - $forall($_.linsbs, function() { //#29291 - var _j = $k[--$j]; //#29291 - var _k = $k[--$j]; //#29291 - var _l = (_k == 1) ? 0 : 1; //#29291 - $k[$j++] = _k; //#29291 - for (var _m = 0, _n = _j; _m < _n; _m++) { //#29291 - $k[$j++] = _l //#29291 - } //#29291 - }); //#29291 - $astore($a($counttomark() - 1)); //#29292 - $_.bot = $k[--$j]; //#29292 - $j -= 2; //#29292 - $k[$j++] = Infinity; //#29293 - $forall($_.bot, function() { //#29293 - var _s = $k[--$j]; //#29293 - $k[$j++] = $f(1 - _s); //#29293 - }); //#29293 - $_.sep = $a(); //#29293 - $puti($_.sep, 0, $a([0, 0, 0])); //#29294 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29295 - $k[$j++] = Infinity; //#29298 - for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29297 - $k[$j++] = _11; //#29297 - } //#29297 - for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29298 - $k[$j++] = _14; //#29298 - } //#29298 - var _15 = $a(); //#29298 - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29299 - $k[$j++] = $get(_15, _16); //#29299 - $_.sepfinder(); //#29299 - } //#29299 - if (!$_.usematrix) { //#29352 - $$.rmoveto(0, $_.linheight); //#29302 + $_.fp = $k[--$j]; //#29597 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29610 + $_.i = _U; //#29599 + if ($get($_.bot, $_.i) == 0) { //#29607 + if ($get($_.bot, $_.i - 1) == 1) { //#29604 + $k[$j++] = 1; //#29602 + } else { //#29604 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29604 + $k[$j++] = _e; //#29604 + } //#29604 + } else { //#29607 + $k[$j++] = 0; //#29607 + } //#29607 + $put($_.sep, $_.i, $k[--$j]); //#29609 + } //#29609 + }; //#29609 + $k[$j++] = Infinity; //#29612 + $k[$j++] = 0; //#29613 + $forall($_.linsbs, function() { //#29613 + var _j = $k[--$j]; //#29613 + var _k = $k[--$j]; //#29613 + var _l = (_k == 1) ? 0 : 1; //#29613 + $k[$j++] = _k; //#29613 + for (var _m = 0, _n = _j; _m < _n; _m++) { //#29613 + $k[$j++] = _l //#29613 + } //#29613 + }); //#29613 + $astore($a($counttomark() - 1)); //#29614 + $_.bot = $k[--$j]; //#29614 + $j -= 2; //#29614 + $k[$j++] = Infinity; //#29615 + $forall($_.bot, function() { //#29615 + var _s = $k[--$j]; //#29615 + $k[$j++] = $f(1 - _s); //#29615 + }); //#29615 + $_.sep = $a(); //#29615 + $puti($_.sep, 0, $a([0, 0, 0])); //#29616 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29617 + $k[$j++] = Infinity; //#29618 + for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29619 + $k[$j++] = _11; //#29619 + } //#29619 + for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29620 + $k[$j++] = _14; //#29620 + } //#29620 + var _15 = $a(); //#29620 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29621 + $k[$j++] = $get(_15, _16); //#29621 + $_.sepfinder(); //#29621 + } //#29621 + if (!$_.usematrix) { //#29674 + $$.rmoveto(0, $_.linheight); //#29624 var _1F = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37661,65 +38133,63 @@ function bwipp_databarexpandedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29309 - $k[$j++] = _1F; //#29310 - bwipp_renmatrix(); //#29310 - $$.rmoveto(1, 1); //#29313 - $k[$j++] = $_.comp; //#29313 - $k[$j++] = $_.options; //#29313 - bwipp_gs1_cc(); //#29313 - bwipp_renmatrix(); //#29313 - $$.restore(); //#29315 - } else { //#29352 - $k[$j++] = 'compsym'; //#29317 - $k[$j++] = $_.comp; //#29317 - $k[$j++] = $_.options; //#29317 - bwipp_gs1_cc(); //#29317 - var _1K = $k[--$j]; //#29317 - $_[$k[--$j]] = _1K; //#29317 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29318 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29319 - $k[$j++] = Infinity; //#29322 - $k[$j++] = 0; //#29322 - $forall($_.linsbs, function() { //#29322 - var _1R = $k[--$j]; //#29322 - var _1S = $k[--$j]; //#29322 - var _1T = (_1S == 0) ? 1 : 0; //#29322 - $k[$j++] = _1S; //#29322 - for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29322 - $k[$j++] = _1T //#29322 - } //#29322 - }); //#29322 - $_.linpixs = $a(); //#29322 - $k[$j++] = Infinity; //#29324 - $k[$j++] = 0; //#29324 - $aload($_.sep); //#29324 - $_.sep = $a(); //#29324 - $_.linheight = ~~$_.linheight; //#29326 - $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29327 - $k[$j++] = Infinity; //#29328 - for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29328 - $k[$j++] = 0; //#29328 - } //#29328 - $_.ccrpad = $a(); //#29328 - $k[$j++] = Infinity; //#29334 - for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29333 - $_.i = _1j; //#29331 - for (var _1l = 0, _1m = 2; _1l < _1m; _1l++) { //#29332 - $k[$j++] = 0; //#29332 - $k[$j++] = 0; //#29332 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29332 - $aload($_.ccrpad); //#29332 - } //#29332 - } //#29332 - $aload($_.sep); //#29334 - for (var _1u = 0, _1v = $_.linheight; _1u < _1v; _1u++) { //#29334 - $aload($_.linpixs); //#29334 - } //#29334 - $_.pixs = $a(); //#29334 - $_.pixx = $_.linpixs.length; //#29337 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29338 - var _27 = new Map([ + ]); //#29631 + $k[$j++] = _1F; //#29632 + bwipp_renmatrix(); //#29632 + $$.rmoveto(1, 1); //#29635 + $k[$j++] = $_.comp; //#29635 + $k[$j++] = $_.options; //#29635 + bwipp_gs1_cc(); //#29635 + bwipp_renmatrix(); //#29635 + $$.restore(); //#29637 + } else { //#29674 + $k[$j++] = 'compsym'; //#29639 + $k[$j++] = $_.comp; //#29639 + $k[$j++] = $_.options; //#29639 + bwipp_gs1_cc(); //#29639 + var _1K = $k[--$j]; //#29639 + $_[$k[--$j]] = _1K; //#29639 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29640 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29641 + $k[$j++] = Infinity; //#29643 + $k[$j++] = 0; //#29644 + $forall($_.linsbs, function() { //#29644 + var _1R = $k[--$j]; //#29644 + var _1S = $k[--$j]; //#29644 + var _1T = (_1S == 0) ? 1 : 0; //#29644 + $k[$j++] = _1S; //#29644 + for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29644 + $k[$j++] = _1T //#29644 + } //#29644 + }); //#29644 + $_.linpixs = $a(); //#29644 + $k[$j++] = Infinity; //#29646 + $k[$j++] = 0; //#29646 + $aload($_.sep); //#29646 + $_.sep = $a(); //#29646 + $_.linheight = ~~$_.linheight; //#29648 + $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29649 + $k[$j++] = Infinity; //#29650 + for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29650 + $k[$j++] = 0; //#29650 + } //#29650 + $_.ccrpad = $a(); //#29650 + $k[$j++] = Infinity; //#29651 + for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29655 + $_.i = _1j; //#29653 + $k[$j++] = 0; //#29654 + $k[$j++] = 0; //#29654 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 + $aload($_.ccrpad); //#29654 + } //#29654 + $aload($_.sep); //#29656 + for (var _1s = 0, _1t = $_.linheight; _1s < _1t; _1s++) { //#29656 + $aload($_.linpixs); //#29656 + } //#29656 + $_.pixs = $a(); //#29656 + $_.pixx = $_.linpixs.length; //#29659 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29660 + var _25 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37727,108 +38197,107 @@ function bwipp_databarexpandedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29346 - $k[$j++] = _27; //#29353 - if (!$_.dontdraw) { //#29353 - $$.save(); //#29350 - bwipp_renmatrix(); //#29351 - $$.restore(); //#29352 - } //#29352 - } //#29352 - $_ = Object.getPrototypeOf($_); //#29356 -} - + ]); //#29668 + $k[$j++] = _25; //#29675 + if (!$_.dontdraw) { //#29675 + $$.save(); //#29672 + bwipp_renmatrix(); //#29673 + $$.restore(); //#29674 + } //#29674 + } //#29674 + $_ = Object.getPrototypeOf($_); //#29678 +} //bwipp_databarexpandedcomposite function bwipp_databarexpandedstackedcomposite() { - $_ = Object.create($_); //#29387 - $_.dontdraw = false; //#29390 - $_.usematrix = false; //#29391 - $_.parse = false; //#29392 - $_.dontlint = false; //#29393 - $_.lintreqs = true; //#29394 - $k[$j++] = $_; //#29396 - bwipp_processoptions(); //#29396 - $_.options = $k[--$j]; //#29396 - $_.barcode = $k[--$j]; //#29397 - if ($_.dontdraw) { //#29399 - $_.usematrix = true; //#29399 - } //#29399 - $search($_.barcode, "|"); //#29402 - if ($k[--$j]) { //#29407 - $_.linear = $k[--$j]; //#29403 - $j--; //#29404 - $_.comp = $k[--$j]; //#29405 - } else { //#29407 - $j--; //#29407 - $k[$j++] = 'bwipp.missingCompositeComponent#29407'; //#29407 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29407 - bwipp_raiseerror(); //#29407 - } //#29407 - if (!$_.usematrix) { //#29410 - $$.save(); //#29410 - } //#29410 - $put($_.options, "lintype", "databarexpandedstacked"); //#29412 - $put($_.options, "linkage", true); //#29413 - $put($_.options, "inkspread", "0"); //#29414 - $put($_.options, "dontdraw", true); //#29415 - $put($_.options, "dontlint", true); //#29416 - var _F = $s($_.linear.length + $_.comp.length); //#29419 - $puti(_F, 0, $_.linear); //#29420 - $puti(_F, $_.linear.length, $_.comp); //#29421 - $k[$j++] = _F; //#29422 - $k[$j++] = 'ai'; //#29422 - bwipp_gs1process(); //#29422 - $j -= 3; //#29422 - $k[$j++] = $_.linear; //#29425 - $k[$j++] = $_.options; //#29425 - bwipp_databarexpandedstacked(); //#29425 - var _L = $k[--$j]; //#29426 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29426 - $_.linheight = $get(_L, "pixy"); //#29427 - $k[$j++] = _L; //#29428 - if (!$_.usematrix) { //#29428 - bwipp_renmatrix(); //#29428 - } else { //#29428 - $_.linpixs = $get($k[--$j], 'pixs'); //#29428 - } //#29428 + $_ = Object.create($_); //#29709 + $_.dontdraw = false; //#29712 + $_.usematrix = false; //#29713 + $_.parse = false; //#29714 + $_.dontlint = false; //#29715 + $_.lintreqs = true; //#29716 + $k[$j++] = $_; //#29718 + bwipp_processoptions(); //#29718 + $_.options = $k[--$j]; //#29718 + $_.barcode = $k[--$j]; //#29719 + if ($_.dontdraw) { //#29721 + $_.usematrix = true; //#29721 + } //#29721 + $search($_.barcode, "|"); //#29724 + if ($k[--$j]) { //#29729 + $_.linear = $k[--$j]; //#29725 + $j--; //#29726 + $_.comp = $k[--$j]; //#29727 + } else { //#29729 + $j--; //#29729 + $k[$j++] = 'bwipp.missingCompositeComponent#29729'; //#29729 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29729 + bwipp_raiseerror(); //#29729 + } //#29729 + if (!$_.usematrix) { //#29732 + $$.save(); //#29732 + } //#29732 + $put($_.options, "lintype", "databarexpandedstacked"); //#29734 + $put($_.options, "linkage", true); //#29735 + $put($_.options, "inkspreadv", 0); //#29736 + $put($_.options, "dontdraw", true); //#29737 + $put($_.options, "dontlint", true); //#29738 + var _F = $s($_.linear.length + $_.comp.length); //#29741 + $puti(_F, 0, $_.linear); //#29742 + $puti(_F, $_.linear.length, $_.comp); //#29743 + $k[$j++] = _F; //#29744 + $k[$j++] = 'ai'; //#29744 + bwipp_gs1process(); //#29744 + $j -= 3; //#29744 + $k[$j++] = $_.linear; //#29747 + $k[$j++] = $_.options; //#29747 + bwipp_databarexpandedstacked(); //#29747 + var _L = $k[--$j]; //#29748 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29748 + $_.linheight = $get(_L, "pixy"); //#29749 + $k[$j++] = _L; //#29750 + if (!$_.usematrix) { //#29750 + bwipp_renmatrix(); //#29750 + } else { //#29750 + $_.linpixs = $get($k[--$j], 'pixs'); //#29750 + } //#29750 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29432 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29445 - $_.i = _X; //#29434 - if ($get($_.bot, $_.i) == 0) { //#29442 - if ($get($_.bot, $_.i - 1) == 1) { //#29439 - $k[$j++] = 1; //#29437 - } else { //#29439 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29439 - $k[$j++] = _h; //#29439 - } //#29439 - } else { //#29442 - $k[$j++] = 0; //#29442 - } //#29442 - $put($_.sep, $_.i, $k[--$j]); //#29444 - } //#29444 - }; //#29444 - $k[$j++] = Infinity; //#29447 - var _l = $_.bot; //#29447 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29447 - $k[$j++] = $f(1 - $get(_l, _m)); //#29447 - } //#29447 - $_.sep = $a(); //#29447 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29448 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29449 - $k[$j++] = Infinity; //#29452 - for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29451 - $k[$j++] = _x; //#29451 - } //#29451 - for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29452 - $k[$j++] = _10; //#29452 - } //#29452 - var _11 = $a(); //#29452 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29453 - $k[$j++] = $get(_11, _12); //#29453 - $_.sepfinder(); //#29453 - } //#29453 - if (!$_.usematrix) { //#29500 - $$.rmoveto(0, $_.linheight); //#29455 + $_.fp = $k[--$j]; //#29754 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29767 + $_.i = _X; //#29756 + if ($get($_.bot, $_.i) == 0) { //#29764 + if ($get($_.bot, $_.i - 1) == 1) { //#29761 + $k[$j++] = 1; //#29759 + } else { //#29761 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29761 + $k[$j++] = _h; //#29761 + } //#29761 + } else { //#29764 + $k[$j++] = 0; //#29764 + } //#29764 + $put($_.sep, $_.i, $k[--$j]); //#29766 + } //#29766 + }; //#29766 + $k[$j++] = Infinity; //#29769 + var _l = $_.bot; //#29769 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29769 + $k[$j++] = $f(1 - $get(_l, _m)); //#29769 + } //#29769 + $_.sep = $a(); //#29769 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29770 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29771 + $k[$j++] = Infinity; //#29772 + for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29773 + $k[$j++] = _x; //#29773 + } //#29773 + for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29774 + $k[$j++] = _10; //#29774 + } //#29774 + var _11 = $a(); //#29774 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29775 + $k[$j++] = $get(_11, _12); //#29775 + $_.sepfinder(); //#29775 + } //#29775 + if (!$_.usematrix) { //#29822 + $$.rmoveto(0, $_.linheight); //#29777 var _1B = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37837,50 +38306,48 @@ function bwipp_databarexpandedstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29462 - $k[$j++] = _1B; //#29463 - bwipp_renmatrix(); //#29463 - var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29466 - $$.rmoveto(_1E, 1); //#29466 - $k[$j++] = $_.comp; //#29467 - $k[$j++] = $_.options; //#29467 - bwipp_gs1_cc(); //#29467 - bwipp_renmatrix(); //#29467 - $$.restore(); //#29469 - } else { //#29500 - $k[$j++] = 'compsym'; //#29471 - $k[$j++] = $_.comp; //#29471 - $k[$j++] = $_.options; //#29471 - bwipp_gs1_cc(); //#29471 - var _1J = $k[--$j]; //#29471 - $_[$k[--$j]] = _1J; //#29471 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 - $_.pixx = $_.sep.length; //#29475 - $k[$j++] = Infinity; //#29476 - for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29476 - $k[$j++] = 0; //#29476 - } //#29476 - $_.cclpad = $a(); //#29476 - $k[$j++] = Infinity; //#29477 - for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29477 - $k[$j++] = 0; //#29477 - } //#29477 - $_.ccrpad = $a(); //#29477 - $k[$j++] = Infinity; //#29483 - for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29482 - $_.i = _1d; //#29480 - for (var _1f = 0, _1g = 2; _1f < _1g; _1f++) { //#29481 - $aload($_.cclpad); //#29481 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29481 - $aload($_.ccrpad); //#29481 - } //#29481 - } //#29481 - $aload($_.sep); //#29483 - $aload($_.linpixs); //#29483 - $_.pixs = $a(); //#29483 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29486 - var _1y = new Map([ + ]); //#29784 + $k[$j++] = _1B; //#29785 + bwipp_renmatrix(); //#29785 + var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29788 + $$.rmoveto(_1E, 1); //#29788 + $k[$j++] = $_.comp; //#29789 + $k[$j++] = $_.options; //#29789 + bwipp_gs1_cc(); //#29789 + bwipp_renmatrix(); //#29789 + $$.restore(); //#29791 + } else { //#29822 + $k[$j++] = 'compsym'; //#29793 + $k[$j++] = $_.comp; //#29793 + $k[$j++] = $_.options; //#29793 + bwipp_gs1_cc(); //#29793 + var _1J = $k[--$j]; //#29793 + $_[$k[--$j]] = _1J; //#29793 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29794 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29795 + $_.pixx = $_.sep.length; //#29797 + $k[$j++] = Infinity; //#29798 + for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29798 + $k[$j++] = 0; //#29798 + } //#29798 + $_.cclpad = $a(); //#29798 + $k[$j++] = Infinity; //#29799 + for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29799 + $k[$j++] = 0; //#29799 + } //#29799 + $_.ccrpad = $a(); //#29799 + $k[$j++] = Infinity; //#29800 + for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29804 + $_.i = _1d; //#29802 + $aload($_.cclpad); //#29803 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29803 + $aload($_.ccrpad); //#29803 + } //#29803 + $aload($_.sep); //#29805 + $aload($_.linpixs); //#29805 + $_.pixs = $a(); //#29805 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29808 + var _1w = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37888,121 +38355,124 @@ function bwipp_databarexpandedstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29494 - $k[$j++] = _1y; //#29501 - if (!$_.dontdraw) { //#29501 - $$.save(); //#29498 - bwipp_renmatrix(); //#29499 - $$.restore(); //#29500 - } //#29500 - } //#29500 - $_ = Object.getPrototypeOf($_); //#29504 -} - + ]); //#29816 + $k[$j++] = _1w; //#29823 + if (!$_.dontdraw) { //#29823 + $$.save(); //#29820 + bwipp_renmatrix(); //#29821 + $$.restore(); //#29822 + } //#29822 + } //#29822 + $_ = Object.getPrototypeOf($_); //#29826 +} //bwipp_databarexpandedstackedcomposite function bwipp_gs1_128composite() { - $_ = Object.create($_); //#29536 - $_.dontdraw = false; //#29539 - $_.usematrix = false; //#29540 - $_.parse = false; //#29541 - $_.dontlint = false; //#29542 - $_.lintreqs = true; //#29543 - $k[$j++] = $_; //#29545 - bwipp_processoptions(); //#29545 - $_.options = $k[--$j]; //#29545 - $_.barcode = $k[--$j]; //#29546 - if ($_.dontdraw) { //#29548 - $_.usematrix = true; //#29548 - } //#29548 - $search($_.barcode, "|"); //#29551 - if ($k[--$j]) { //#29556 - $_.linear = $k[--$j]; //#29552 - $j--; //#29553 - $_.comp = $k[--$j]; //#29554 - } else { //#29556 - $j--; //#29556 - $k[$j++] = 'bwipp.missingCompositeComponent#29556'; //#29556 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29556 - bwipp_raiseerror(); //#29556 - } //#29556 - if (!$_.usematrix) { //#29559 - $$.save(); //#29559 - } //#29559 - $put($_.options, "inkspread", "0"); //#29561 - $put($_.options, "dontdraw", true); //#29562 - $put($_.options, "dontlint", true); //#29563 - var _D = $s($_.linear.length + $_.comp.length); //#29566 - $puti(_D, 0, $_.linear); //#29567 - $puti(_D, $_.linear.length, $_.comp); //#29568 - $k[$j++] = _D; //#29569 - $k[$j++] = 'ai'; //#29569 - bwipp_gs1process(); //#29569 - $j -= 3; //#29569 - $put($_.options, "linkagea", true); //#29572 - $k[$j++] = $_.linear; //#29573 - $k[$j++] = Infinity; //#29573 - $forall($_.options); //#29573 - var _K = $d(); //#29573 - $k[$j++] = _K; //#29573 - bwipp_gs1_128(); //#29573 - var _M = $get($k[--$j], "sbs"); //#29574 - $k[$j++] = 0; //#29574 - $forall(_M, function() { //#29574 - var _N = $k[--$j]; //#29574 - var _O = $k[--$j]; //#29574 - $k[$j++] = $f(_O + _N); //#29574 - }); //#29574 - $_.linwidth = $k[--$j]; //#29574 - $put($_.options, "lintype", "gs1-128"); //#29577 - $put($_.options, "linwidth", $_.linwidth); //#29578 - $k[$j++] = $_.comp; //#29579 - $k[$j++] = $_.options; //#29579 - bwipp_gs1_cc(); //#29579 - $_.compsym = $k[--$j]; //#29579 - if ($get($_.compsym, "pixx") == 99) { //#29580 - $k[$j++] = "a"; //#29580 - } else { //#29580 - $k[$j++] = "c"; //#29580 - } //#29580 - $_.linktype = $k[--$j]; //#29580 - if ($eq($_.linktype, "a")) { //#29588 - $put($_.options, "linkagea", true); //#29584 - $put($_.options, "linkagec", false); //#29585 - } else { //#29588 - $put($_.options, "linkagea", false); //#29587 - $put($_.options, "linkagec", true); //#29588 - } //#29588 - $k[$j++] = $_.linear; //#29590 - $k[$j++] = Infinity; //#29590 - $forall($_.options); //#29590 - var _g = $d(); //#29590 - $k[$j++] = _g; //#29590 - bwipp_gs1_128(); //#29590 - var _h = $k[--$j]; //#29591 - $_.linsbs = $get(_h, "sbs"); //#29591 - $_.linheight = $get($get(_h, "bhs"), 0) * 72; //#29592 - $k[$j++] = _h; //#29593 - if (!$_.usematrix) { //#29593 - bwipp_renlinear(); //#29593 - } else { //#29593 - $j--; //#29593 - } //#29593 - $k[$j++] = Infinity; //#29596 - $k[$j++] = 1; //#29597 - $forall($_.linsbs, function() { //#29597 - var _n = $k[--$j]; //#29597 - var _o = $k[--$j]; //#29597 - var _p = (_o == 0) ? 1 : 0; //#29597 - $k[$j++] = _o; //#29597 - for (var _q = 0, _r = _n; _q < _r; _q++) { //#29597 - $k[$j++] = _p //#29597 - } //#29597 - }); //#29597 - $astore($a($counttomark() - 1)); //#29598 - $_.sep = $k[--$j]; //#29598 - $j -= 2; //#29598 - if (!$_.usematrix) { //#29609 - $$.rmoveto(0, $_.linheight); //#29600 - var _11 = new Map([ + $_ = Object.create($_); //#29858 + $_.dontdraw = false; //#29861 + $_.usematrix = false; //#29862 + $_.parse = false; //#29863 + $_.dontlint = false; //#29864 + $_.lintreqs = true; //#29865 + $k[$j++] = $_; //#29867 + bwipp_processoptions(); //#29867 + $_.options = $k[--$j]; //#29867 + $_.barcode = $k[--$j]; //#29868 + if ($_.dontdraw) { //#29870 + $_.usematrix = true; //#29870 + } //#29870 + $search($_.barcode, "|"); //#29873 + if ($k[--$j]) { //#29878 + $_.linear = $k[--$j]; //#29874 + $j--; //#29875 + $_.comp = $k[--$j]; //#29876 + } else { //#29878 + $j--; //#29878 + $k[$j++] = 'bwipp.missingCompositeComponent#29878'; //#29878 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29878 + bwipp_raiseerror(); //#29878 + } //#29878 + if (!$_.usematrix) { //#29881 + $$.save(); //#29881 + } //#29881 + $put($_.options, "inkspreadv", 0); //#29883 + $put($_.options, "dontdraw", true); //#29884 + $put($_.options, "dontlint", true); //#29885 + var _D = $s($_.linear.length + $_.comp.length); //#29888 + $puti(_D, 0, $_.linear); //#29889 + $puti(_D, $_.linear.length, $_.comp); //#29890 + $k[$j++] = _D; //#29891 + $k[$j++] = 'ai'; //#29891 + bwipp_gs1process(); //#29891 + $j -= 3; //#29891 + $put($_.options, "linkagea", true); //#29894 + $k[$j++] = $_.linear; //#29895 + $k[$j++] = Infinity; //#29895 + $forall($_.options); //#29895 + var _K = $d(); //#29895 + $k[$j++] = _K; //#29895 + bwipp_gs1_128(); //#29895 + var _M = $get($k[--$j], "sbs"); //#29896 + $k[$j++] = 0; //#29896 + $forall(_M, function() { //#29896 + var _N = $k[--$j]; //#29896 + var _O = $k[--$j]; //#29896 + $k[$j++] = $f(_O + _N); //#29896 + }); //#29896 + $_.linwidth = $k[--$j]; //#29896 + $put($_.options, "lintype", "gs1-128"); //#29899 + $put($_.options, "linwidth", $_.linwidth); //#29900 + $k[$j++] = $_.comp; //#29901 + $k[$j++] = Infinity; //#29901 + $forall($_.options); //#29901 + var _V = $d(); //#29901 + $k[$j++] = _V; //#29901 + bwipp_gs1_cc(); //#29901 + $_.compsym = $k[--$j]; //#29901 + if ($get($_.compsym, "pixx") == 99) { //#29902 + $k[$j++] = "a"; //#29902 + } else { //#29902 + $k[$j++] = "c"; //#29902 + } //#29902 + $_.linktype = $k[--$j]; //#29902 + if ($eq($_.linktype, "a")) { //#29910 + $put($_.options, "linkagea", true); //#29906 + $put($_.options, "linkagec", false); //#29907 + } else { //#29910 + $put($_.options, "linkagea", false); //#29909 + $put($_.options, "linkagec", true); //#29910 + } //#29910 + $k[$j++] = $_.linear; //#29912 + $k[$j++] = Infinity; //#29912 + var _g = $_.options; //#29912 + $forall(_g); //#29912 + var _h = $d(); //#29912 + $k[$j++] = _h; //#29912 + bwipp_gs1_128(); //#29912 + var _i = $k[--$j]; //#29913 + $_.linsbs = $get(_i, "sbs"); //#29913 + $_.linheight = $get($get(_i, "bhs"), 0) * 72; //#29914 + $k[$j++] = _i; //#29915 + if (!$_.usematrix) { //#29915 + bwipp_renlinear(); //#29915 + } else { //#29915 + $j--; //#29915 + } //#29915 + $k[$j++] = Infinity; //#29918 + $k[$j++] = 1; //#29919 + $forall($_.linsbs, function() { //#29919 + var _o = $k[--$j]; //#29919 + var _p = $k[--$j]; //#29919 + var _q = (_p == 0) ? 1 : 0; //#29919 + $k[$j++] = _p; //#29919 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#29919 + $k[$j++] = _q //#29919 + } //#29919 + }); //#29919 + $astore($a($counttomark() - 1)); //#29920 + $_.sep = $k[--$j]; //#29920 + $j -= 2; //#29920 + if (!$_.usematrix) { //#29931 + $$.rmoveto(0, $_.linheight); //#29922 + var _12 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], ["pixx", $_.sep.length], @@ -38010,98 +38480,94 @@ function bwipp_gs1_128composite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29607 - $k[$j++] = _11; //#29608 - bwipp_renmatrix(); //#29608 - } //#29608 - if ($eq($_.linktype, "a")) { //#29617 - $_.s = ~~($f($_.linwidth - 2) / 11); //#29613 - $_.p = ~~(($_.s - 9) / 2); //#29614 - $k[$j++] = 'x'; //#29615 - $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29615 - if ($_.p == 0) { //#29615 - var _18 = $k[--$j]; //#29615 - $k[$j++] = $f(_18 + 2); //#29615 - } //#29615 - var _19 = $k[--$j]; //#29615 - $_[$k[--$j]] = $f(_19 - 99); //#29615 - } else { //#29617 - $_.x = -7; //#29617 - } //#29617 - if (!$_.usematrix) { //#29675 - $$.rmoveto($_.x, 1); //#29621 - $k[$j++] = $_.compsym; //#29621 - bwipp_renmatrix(); //#29621 - $$.restore(); //#29623 - } else { //#29675 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29625 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29626 - $k[$j++] = Infinity; //#29629 - $forall($_.linsbs, function() { //#29629 - var _1J = $k[--$j]; //#29629 - var _1K = $k[--$j]; //#29629 - var _1L = (_1K == 1) ? 0 : 1; //#29629 - $k[$j++] = _1K; //#29629 - for (var _1M = 0, _1N = _1J; _1M < _1N; _1M++) { //#29629 - $k[$j++] = _1L //#29629 - } //#29629 - }); //#29629 - $_.linpixs = $a(); //#29629 - if ($_.x > 0) { //#29637 - $k[$j++] = Infinity; //#29633 - for (var _1R = 0, _1S = $_.x; _1R < _1S; _1R++) { //#29633 - $k[$j++] = 0; //#29633 - } //#29633 - $_.cclpad = $a(); //#29633 - $_.linlpad = $a(0); //#29634 - } else { //#29637 - $_.cclpad = $a(0); //#29636 - $k[$j++] = Infinity; //#29637 - for (var _1X = 0, _1Y = -$_.x; _1X < _1Y; _1X++) { //#29637 - $k[$j++] = 0; //#29637 - } //#29637 - $_.linlpad = $a(); //#29637 - } //#29637 - $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29640 - if ($_.diff > 0) { //#29646 - $k[$j++] = Infinity; //#29642 - for (var _1f = 0, _1g = $_.diff; _1f < _1g; _1f++) { //#29642 - $k[$j++] = 0; //#29642 - } //#29642 - $_.ccrpad = $a(); //#29642 - $_.linrpad = $a(0); //#29643 - } else { //#29646 - $_.ccrpad = $a(0); //#29645 - $k[$j++] = Infinity; //#29646 - for (var _1l = 0, _1m = -$_.diff; _1l < _1m; _1l++) { //#29646 - $k[$j++] = 0; //#29646 - } //#29646 - $_.linrpad = $a(); //#29646 - } //#29646 - $_.linheight = ~~$_.linheight; //#29649 - var _1q = $eq($_.linktype, "a") ? 2 : 3; //#29650 - $_.ccrepeat = _1q; //#29650 - $k[$j++] = Infinity; //#29657 - for (var _1u = 0, _1v = $_.ccpixx, _1t = $_.ccpixs.length - 1; _1v < 0 ? _1u >= _1t : _1u <= _1t; _1u += _1v) { //#29655 - $_.i = _1u; //#29653 - for (var _1x = 0, _1y = $_.ccrepeat; _1x < _1y; _1x++) { //#29654 - $aload($_.cclpad); //#29654 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 - $aload($_.ccrpad); //#29654 - } //#29654 - } //#29654 - $aload($_.linlpad); //#29656 - $aload($_.sep); //#29656 - $aload($_.linrpad); //#29656 - for (var _29 = 0, _2A = $_.linheight; _29 < _2A; _29++) { //#29657 - $aload($_.linlpad); //#29657 - $aload($_.linpixs); //#29657 - $aload($_.linrpad); //#29657 - } //#29657 - $_.pixs = $a(); //#29657 - $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29660 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29661 - var _2Q = new Map([ + ]); //#29929 + $k[$j++] = _12; //#29930 + bwipp_renmatrix(); //#29930 + } //#29930 + if ($eq($_.linktype, "a")) { //#29939 + $_.s = ~~($f($_.linwidth - 2) / 11); //#29935 + $_.p = ~~(($_.s - 9) / 2); //#29936 + $k[$j++] = 'x'; //#29937 + $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29937 + if ($_.p == 0) { //#29937 + var _19 = $k[--$j]; //#29937 + $k[$j++] = $f(_19 + 2); //#29937 + } //#29937 + var _1A = $k[--$j]; //#29937 + $_[$k[--$j]] = $f(_1A - 99); //#29937 + } else { //#29939 + $_.x = -7; //#29939 + } //#29939 + if (!$_.usematrix) { //#29996 + $$.rmoveto($_.x, 1); //#29943 + $k[$j++] = $_.compsym; //#29943 + bwipp_renmatrix(); //#29943 + $$.restore(); //#29945 + } else { //#29996 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29947 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29948 + $k[$j++] = Infinity; //#29950 + $forall($_.linsbs, function() { //#29951 + var _1K = $k[--$j]; //#29951 + var _1L = $k[--$j]; //#29951 + var _1M = (_1L == 1) ? 0 : 1; //#29951 + $k[$j++] = _1L; //#29951 + for (var _1N = 0, _1O = _1K; _1N < _1O; _1N++) { //#29951 + $k[$j++] = _1M //#29951 + } //#29951 + }); //#29951 + $_.linpixs = $a(); //#29951 + if ($_.x > 0) { //#29959 + $k[$j++] = Infinity; //#29955 + for (var _1S = 0, _1T = $_.x; _1S < _1T; _1S++) { //#29955 + $k[$j++] = 0; //#29955 + } //#29955 + $_.cclpad = $a(); //#29955 + $_.linlpad = $a(0); //#29956 + } else { //#29959 + $_.cclpad = $a(0); //#29958 + $k[$j++] = Infinity; //#29959 + for (var _1Y = 0, _1Z = -$_.x; _1Y < _1Z; _1Y++) { //#29959 + $k[$j++] = 0; //#29959 + } //#29959 + $_.linlpad = $a(); //#29959 + } //#29959 + $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29962 + if ($_.diff > 0) { //#29968 + $k[$j++] = Infinity; //#29964 + for (var _1g = 0, _1h = $_.diff; _1g < _1h; _1g++) { //#29964 + $k[$j++] = 0; //#29964 + } //#29964 + $_.ccrpad = $a(); //#29964 + $_.linrpad = $a(0); //#29965 + } else { //#29968 + $_.ccrpad = $a(0); //#29967 + $k[$j++] = Infinity; //#29968 + for (var _1m = 0, _1n = -$_.diff; _1m < _1n; _1m++) { //#29968 + $k[$j++] = 0; //#29968 + } //#29968 + $_.linrpad = $a(); //#29968 + } //#29968 + $_.linheight = ~~$_.linheight; //#29971 + $k[$j++] = Infinity; //#29972 + for (var _1t = 0, _1u = $_.ccpixx, _1s = $_.ccpixs.length - 1; _1u < 0 ? _1t >= _1s : _1t <= _1s; _1t += _1u) { //#29976 + $_.i = _1t; //#29974 + $aload($_.cclpad); //#29975 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29975 + $aload($_.ccrpad); //#29975 + } //#29975 + $aload($_.linlpad); //#29977 + $aload($_.sep); //#29977 + $aload($_.linrpad); //#29977 + for (var _25 = 0, _26 = $_.linheight; _25 < _26; _25++) { //#29978 + $aload($_.linlpad); //#29978 + $aload($_.linpixs); //#29978 + $aload($_.linrpad); //#29978 + } //#29978 + $_.pixs = $a(); //#29978 + $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29981 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29982 + var _2M = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -38109,1671 +38575,1709 @@ function bwipp_gs1_128composite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29669 - $k[$j++] = _2Q; //#29676 - if (!$_.dontdraw) { //#29676 - $$.save(); //#29673 - bwipp_renmatrix(); //#29674 - $$.restore(); //#29675 - } //#29675 - } //#29675 - $_ = Object.getPrototypeOf($_); //#29679 -} - + ]); //#29990 + $k[$j++] = _2M; //#29997 + if (!$_.dontdraw) { //#29997 + $$.save(); //#29994 + bwipp_renmatrix(); //#29995 + $$.restore(); //#29996 + } //#29996 + } //#29996 + $_ = Object.getPrototypeOf($_); //#30000 +} //bwipp_gs1_128composite function bwipp_gs1datamatrix() { - $_ = Object.create($_); //#29709 - $_.dontdraw = false; //#29712 - $_.parse = false; //#29713 - $_.dontlint = false; //#29714 - $_.lintreqs = true; //#29715 - $_.gssep = false; //#29716 - $k[$j++] = $_; //#29718 - bwipp_processoptions(); //#29718 - $_.options = $k[--$j]; //#29718 - $_.barcode = $k[--$j]; //#29719 - $k[$j++] = $_.barcode; //#29721 - $k[$j++] = 'ai'; //#29721 - bwipp_gs1process(); //#29721 - $_.fncs = $k[--$j]; //#29722 - $_.vals = $k[--$j]; //#29723 - $_.ais = $k[--$j]; //#29724 - $_.fnc1 = -1; //#29727 - $_.dmtx = $a([$_.fnc1]); //#29728 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29744 - $_.i = _A; //#29730 - $_.ai = $get($_.ais, $_.i); //#29731 - $_.val = $get($_.vals, $_.i); //#29732 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29733 - $puti(_K, 0, $_.dmtx); //#29734 - $k[$j++] = _K; //#29735 - $k[$j++] = _K; //#29735 - $k[$j++] = $_.dmtx.length; //#29735 - $k[$j++] = $_.ai; //#29735 - $k[$j++] = Infinity; //#29735 - var _O = $k[--$j]; //#29735 - var _P = $k[--$j]; //#29735 - $k[$j++] = _O; //#29735 - $forall(_P); //#29735 - var _Q = $a(); //#29735 - var _R = $k[--$j]; //#29735 - $puti($k[--$j], _R, _Q); //#29735 - var _T = $k[--$j]; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29736 - $k[$j++] = $_.val; //#29736 - $k[$j++] = Infinity; //#29736 - var _X = $k[--$j]; //#29736 - var _Y = $k[--$j]; //#29736 - $k[$j++] = _X; //#29736 - $forall(_Y); //#29736 - var _Z = $a(); //#29736 - var _a = $k[--$j]; //#29736 - $puti($k[--$j], _a, _Z); //#29736 - $_.dmtx = $k[--$j]; //#29737 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29743 - var _j = $a($_.dmtx.length + 1); //#29739 - $puti(_j, 0, $_.dmtx); //#29740 - $k[$j++] = _j; //#29741 - $k[$j++] = _j; //#29741 - $k[$j++] = $_.dmtx.length; //#29741 - if ($_.gssep) { //#29741 - $k[$j++] = 29; //#29741 - } else { //#29741 - $k[$j++] = $_.fnc1; //#29741 - } //#29741 - var _o = $k[--$j]; //#29741 - var _p = $k[--$j]; //#29741 - $put($k[--$j], _p, _o); //#29741 - $_.dmtx = $k[--$j]; //#29742 - } //#29742 - } //#29742 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29747 - $_.i = 0; //#29748 - $_.j = 0; //#29748 - for (;;) { //#29758 - if ($_.i == $_.dmtx.length) { //#29749 - break; //#29749 - } //#29749 - var _y = $get($_.dmtx, $_.i); //#29750 - $k[$j++] = _y; //#29755 - if (_y == $_.fnc1) { //#29754 - $j--; //#29751 - $puti($_.barcode, $_.j, "^FNC1"); //#29751 - $_.j = $_.j + 4; //#29752 - } else { //#29754 - $put($_.barcode, $_.j, $k[--$j]); //#29754 - } //#29754 - $_.i = $_.i + 1; //#29756 - $_.j = $_.j + 1; //#29757 - } //#29757 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29759 - delete $_.options["parse"]; //#29762 - $put($_.options, "dontdraw", true); //#29763 - $put($_.options, "parsefnc", true); //#29764 - $k[$j++] = 'args'; //#29765 - $k[$j++] = $_.barcode; //#29765 - $k[$j++] = $_.options; //#29765 - bwipp_datamatrix(); //#29765 - var _1G = $k[--$j]; //#29765 - $_[$k[--$j]] = _1G; //#29765 - $put($_.args, "opt", $_.options); //#29767 - $k[$j++] = $_.args; //#29770 - if (!$_.dontdraw) { //#29770 - bwipp_renmatrix(); //#29770 - } //#29770 - $_ = Object.getPrototypeOf($_); //#29772 -} - + $_ = Object.create($_); //#30030 + $_.dontdraw = false; //#30033 + $_.parse = false; //#30034 + $_.dontlint = false; //#30035 + $_.lintreqs = true; //#30036 + $_.gssep = false; //#30037 + $k[$j++] = $_; //#30039 + bwipp_processoptions(); //#30039 + $_.options = $k[--$j]; //#30039 + $_.barcode = $k[--$j]; //#30040 + $k[$j++] = $_.barcode; //#30042 + $k[$j++] = 'ai'; //#30042 + bwipp_gs1process(); //#30042 + $_.fncs = $k[--$j]; //#30043 + $_.vals = $k[--$j]; //#30044 + $_.ais = $k[--$j]; //#30045 + $_.fnc1 = -1; //#30048 + $_.dmtx = $a([$_.fnc1]); //#30049 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30065 + $_.i = _A; //#30051 + $_.ai = $get($_.ais, $_.i); //#30052 + $_.val = $get($_.vals, $_.i); //#30053 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30054 + $puti(_K, 0, $_.dmtx); //#30055 + $k[$j++] = _K; //#30056 + $k[$j++] = _K; //#30056 + $k[$j++] = $_.dmtx.length; //#30056 + $k[$j++] = $_.ai; //#30056 + $k[$j++] = Infinity; //#30056 + var _O = $k[--$j]; //#30056 + var _P = $k[--$j]; //#30056 + $k[$j++] = _O; //#30056 + $forall(_P); //#30056 + var _Q = $a(); //#30056 + var _R = $k[--$j]; //#30056 + $puti($k[--$j], _R, _Q); //#30056 + var _T = $k[--$j]; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30057 + $k[$j++] = $_.val; //#30057 + $k[$j++] = Infinity; //#30057 + var _X = $k[--$j]; //#30057 + var _Y = $k[--$j]; //#30057 + $k[$j++] = _X; //#30057 + $forall(_Y); //#30057 + var _Z = $a(); //#30057 + var _a = $k[--$j]; //#30057 + $puti($k[--$j], _a, _Z); //#30057 + $_.dmtx = $k[--$j]; //#30058 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30064 + var _j = $a($_.dmtx.length + 1); //#30060 + $puti(_j, 0, $_.dmtx); //#30061 + $k[$j++] = _j; //#30062 + $k[$j++] = _j; //#30062 + $k[$j++] = $_.dmtx.length; //#30062 + if ($_.gssep) { //#30062 + $k[$j++] = 29; //#30062 + } else { //#30062 + $k[$j++] = $_.fnc1; //#30062 + } //#30062 + var _o = $k[--$j]; //#30062 + var _p = $k[--$j]; //#30062 + $put($k[--$j], _p, _o); //#30062 + $_.dmtx = $k[--$j]; //#30063 + } //#30063 + } //#30063 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30068 + $_.i = 0; //#30069 + $_.j = 0; //#30069 + for (;;) { //#30079 + if ($_.i == $_.dmtx.length) { //#30070 + break; //#30070 + } //#30070 + var _y = $get($_.dmtx, $_.i); //#30071 + $k[$j++] = _y; //#30076 + if (_y == $_.fnc1) { //#30075 + $j--; //#30072 + $puti($_.barcode, $_.j, "^FNC1"); //#30072 + $_.j = $_.j + 4; //#30073 + } else { //#30075 + $put($_.barcode, $_.j, $k[--$j]); //#30075 + } //#30075 + $_.i = $_.i + 1; //#30077 + $_.j = $_.j + 1; //#30078 + } //#30078 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30080 + delete $_.options["parse"]; //#30083 + $put($_.options, "dontdraw", true); //#30084 + $put($_.options, "parsefnc", true); //#30085 + $k[$j++] = 'args'; //#30086 + $k[$j++] = $_.barcode; //#30086 + $k[$j++] = $_.options; //#30086 + bwipp_datamatrix(); //#30086 + var _1G = $k[--$j]; //#30086 + $_[$k[--$j]] = _1G; //#30086 + $put($_.args, "opt", $_.options); //#30088 + $k[$j++] = $_.args; //#30091 + if (!$_.dontdraw) { //#30091 + bwipp_renmatrix(); //#30091 + } //#30091 + $_ = Object.getPrototypeOf($_); //#30093 +} //bwipp_gs1datamatrix function bwipp_gs1datamatrixrectangular() { - $_ = Object.create($_); //#29802 - $_.parse = false; //#29805 - $_.dontlint = false; //#29806 - $_.lintreqs = true; //#29807 - $_.dontdraw = false; //#29808 - $_.gssep = false; //#29809 - $k[$j++] = $_; //#29811 - bwipp_processoptions(); //#29811 - $_.options = $k[--$j]; //#29811 - $_.barcode = $k[--$j]; //#29812 - $k[$j++] = $_.barcode; //#29814 - $k[$j++] = 'ai'; //#29814 - bwipp_gs1process(); //#29814 - $_.fncs = $k[--$j]; //#29815 - $_.vals = $k[--$j]; //#29816 - $_.ais = $k[--$j]; //#29817 - $_.fnc1 = -1; //#29820 - $_.dmtx = $a([$_.fnc1]); //#29821 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29837 - $_.i = _A; //#29823 - $_.ai = $get($_.ais, $_.i); //#29824 - $_.val = $get($_.vals, $_.i); //#29825 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29826 - $puti(_K, 0, $_.dmtx); //#29827 - $k[$j++] = _K; //#29828 - $k[$j++] = _K; //#29828 - $k[$j++] = $_.dmtx.length; //#29828 - $k[$j++] = $_.ai; //#29828 - $k[$j++] = Infinity; //#29828 - var _O = $k[--$j]; //#29828 - var _P = $k[--$j]; //#29828 - $k[$j++] = _O; //#29828 - $forall(_P); //#29828 - var _Q = $a(); //#29828 - var _R = $k[--$j]; //#29828 - $puti($k[--$j], _R, _Q); //#29828 - var _T = $k[--$j]; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29829 - $k[$j++] = $_.val; //#29829 - $k[$j++] = Infinity; //#29829 - var _X = $k[--$j]; //#29829 - var _Y = $k[--$j]; //#29829 - $k[$j++] = _X; //#29829 - $forall(_Y); //#29829 - var _Z = $a(); //#29829 - var _a = $k[--$j]; //#29829 - $puti($k[--$j], _a, _Z); //#29829 - $_.dmtx = $k[--$j]; //#29830 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29836 - var _j = $a($_.dmtx.length + 1); //#29832 - $puti(_j, 0, $_.dmtx); //#29833 - $k[$j++] = _j; //#29834 - $k[$j++] = _j; //#29834 - $k[$j++] = $_.dmtx.length; //#29834 - if ($_.gssep) { //#29834 - $k[$j++] = 29; //#29834 - } else { //#29834 - $k[$j++] = $_.fnc1; //#29834 - } //#29834 - var _o = $k[--$j]; //#29834 - var _p = $k[--$j]; //#29834 - $put($k[--$j], _p, _o); //#29834 - $_.dmtx = $k[--$j]; //#29835 - } //#29835 - } //#29835 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29840 - $_.i = 0; //#29841 - $_.j = 0; //#29841 - for (;;) { //#29851 - if ($_.i == $_.dmtx.length) { //#29842 - break; //#29842 - } //#29842 - var _y = $get($_.dmtx, $_.i); //#29843 - $k[$j++] = _y; //#29848 - if (_y == $_.fnc1) { //#29847 - $j--; //#29844 - $puti($_.barcode, $_.j, "^FNC1"); //#29844 - $_.j = $_.j + 4; //#29845 - } else { //#29847 - $put($_.barcode, $_.j, $k[--$j]); //#29847 - } //#29847 - $_.i = $_.i + 1; //#29849 - $_.j = $_.j + 1; //#29850 - } //#29850 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29852 - delete $_.options["parse"]; //#29855 - $put($_.options, "dontdraw", true); //#29856 - $put($_.options, "parsefnc", true); //#29857 - $put($_.options, "format", "rectangle"); //#29858 - $k[$j++] = 'args'; //#29859 - $k[$j++] = $_.barcode; //#29859 - $k[$j++] = $_.options; //#29859 - bwipp_datamatrix(); //#29859 - var _1H = $k[--$j]; //#29859 - $_[$k[--$j]] = _1H; //#29859 - $put($_.args, "opt", $_.options); //#29861 - $k[$j++] = $_.args; //#29864 - if (!$_.dontdraw) { //#29864 - bwipp_renmatrix(); //#29864 - } //#29864 - $_ = Object.getPrototypeOf($_); //#29866 -} - + $_ = Object.create($_); //#30123 + $_.parse = false; //#30126 + $_.dontlint = false; //#30127 + $_.lintreqs = true; //#30128 + $_.dontdraw = false; //#30129 + $_.gssep = false; //#30130 + $k[$j++] = $_; //#30132 + bwipp_processoptions(); //#30132 + $_.options = $k[--$j]; //#30132 + $_.barcode = $k[--$j]; //#30133 + $k[$j++] = $_.barcode; //#30135 + $k[$j++] = 'ai'; //#30135 + bwipp_gs1process(); //#30135 + $_.fncs = $k[--$j]; //#30136 + $_.vals = $k[--$j]; //#30137 + $_.ais = $k[--$j]; //#30138 + $_.fnc1 = -1; //#30141 + $_.dmtx = $a([$_.fnc1]); //#30142 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30158 + $_.i = _A; //#30144 + $_.ai = $get($_.ais, $_.i); //#30145 + $_.val = $get($_.vals, $_.i); //#30146 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30147 + $puti(_K, 0, $_.dmtx); //#30148 + $k[$j++] = _K; //#30149 + $k[$j++] = _K; //#30149 + $k[$j++] = $_.dmtx.length; //#30149 + $k[$j++] = $_.ai; //#30149 + $k[$j++] = Infinity; //#30149 + var _O = $k[--$j]; //#30149 + var _P = $k[--$j]; //#30149 + $k[$j++] = _O; //#30149 + $forall(_P); //#30149 + var _Q = $a(); //#30149 + var _R = $k[--$j]; //#30149 + $puti($k[--$j], _R, _Q); //#30149 + var _T = $k[--$j]; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30150 + $k[$j++] = $_.val; //#30150 + $k[$j++] = Infinity; //#30150 + var _X = $k[--$j]; //#30150 + var _Y = $k[--$j]; //#30150 + $k[$j++] = _X; //#30150 + $forall(_Y); //#30150 + var _Z = $a(); //#30150 + var _a = $k[--$j]; //#30150 + $puti($k[--$j], _a, _Z); //#30150 + $_.dmtx = $k[--$j]; //#30151 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30157 + var _j = $a($_.dmtx.length + 1); //#30153 + $puti(_j, 0, $_.dmtx); //#30154 + $k[$j++] = _j; //#30155 + $k[$j++] = _j; //#30155 + $k[$j++] = $_.dmtx.length; //#30155 + if ($_.gssep) { //#30155 + $k[$j++] = 29; //#30155 + } else { //#30155 + $k[$j++] = $_.fnc1; //#30155 + } //#30155 + var _o = $k[--$j]; //#30155 + var _p = $k[--$j]; //#30155 + $put($k[--$j], _p, _o); //#30155 + $_.dmtx = $k[--$j]; //#30156 + } //#30156 + } //#30156 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30161 + $_.i = 0; //#30162 + $_.j = 0; //#30162 + for (;;) { //#30172 + if ($_.i == $_.dmtx.length) { //#30163 + break; //#30163 + } //#30163 + var _y = $get($_.dmtx, $_.i); //#30164 + $k[$j++] = _y; //#30169 + if (_y == $_.fnc1) { //#30168 + $j--; //#30165 + $puti($_.barcode, $_.j, "^FNC1"); //#30165 + $_.j = $_.j + 4; //#30166 + } else { //#30168 + $put($_.barcode, $_.j, $k[--$j]); //#30168 + } //#30168 + $_.i = $_.i + 1; //#30170 + $_.j = $_.j + 1; //#30171 + } //#30171 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30173 + delete $_.options["parse"]; //#30176 + $put($_.options, "dontdraw", true); //#30177 + $put($_.options, "parsefnc", true); //#30178 + $put($_.options, "format", "rectangle"); //#30179 + $k[$j++] = 'args'; //#30180 + $k[$j++] = $_.barcode; //#30180 + $k[$j++] = $_.options; //#30180 + bwipp_datamatrix(); //#30180 + var _1H = $k[--$j]; //#30180 + $_[$k[--$j]] = _1H; //#30180 + $put($_.args, "opt", $_.options); //#30182 + $k[$j++] = $_.args; //#30185 + if (!$_.dontdraw) { //#30185 + bwipp_renmatrix(); //#30185 + } //#30185 + $_ = Object.getPrototypeOf($_); //#30187 +} //bwipp_gs1datamatrixrectangular function bwipp_gs1dldatamatrix() { - $_ = Object.create($_); //#29896 - $_.parse = false; //#29899 - $_.dontlint = false; //#29900 - $_.lintreqs = true; //#29901 - $_.dontdraw = false; //#29902 - $k[$j++] = $_; //#29904 - bwipp_processoptions(); //#29904 - $_.options = $k[--$j]; //#29904 - $_.barcode = $k[--$j]; //#29905 + $_ = Object.create($_); //#30217 + $_.parse = false; //#30220 + $_.dontlint = false; //#30221 + $_.lintreqs = true; //#30222 + $_.dontdraw = false; //#30223 + $k[$j++] = $_; //#30225 + bwipp_processoptions(); //#30225 + $_.options = $k[--$j]; //#30225 + $_.barcode = $k[--$j]; //#30226 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#29911 - $_.fncvals = _3; //#29912 - $k[$j++] = 'barcode'; //#29913 - $k[$j++] = $_.barcode; //#29913 - $k[$j++] = $_.fncvals; //#29913 - bwipp_parseinput(); //#29913 - var _6 = $k[--$j]; //#29913 - $_[$k[--$j]] = _6; //#29913 - $k[$j++] = $_.barcode; //#29915 - $k[$j++] = 'dl'; //#29915 - bwipp_gs1process(); //#29915 - $j -= 3; //#29915 - delete $_.options["parse"]; //#29918 - $put($_.options, "dontdraw", true); //#29919 - $k[$j++] = 'args'; //#29920 - $k[$j++] = $_.barcode; //#29920 - $k[$j++] = $_.options; //#29920 - bwipp_datamatrix(); //#29920 - var _D = $k[--$j]; //#29920 - $_[$k[--$j]] = _D; //#29920 - $put($_.args, "opt", $_.options); //#29922 - $k[$j++] = $_.args; //#29925 - if (!$_.dontdraw) { //#29925 - bwipp_renmatrix(); //#29925 - } //#29925 - $_ = Object.getPrototypeOf($_); //#29927 -} - + ]); //#30232 + $_.fncvals = _3; //#30233 + $k[$j++] = 'barcode'; //#30234 + $k[$j++] = $_.barcode; //#30234 + $k[$j++] = $_.fncvals; //#30234 + bwipp_parseinput(); //#30234 + var _6 = $k[--$j]; //#30234 + $_[$k[--$j]] = _6; //#30234 + $k[$j++] = $_.barcode; //#30236 + $k[$j++] = 'dl'; //#30236 + bwipp_gs1process(); //#30236 + $j -= 3; //#30236 + delete $_.options["parse"]; //#30239 + $put($_.options, "dontdraw", true); //#30240 + $k[$j++] = 'args'; //#30241 + $k[$j++] = $_.barcode; //#30241 + $k[$j++] = $_.options; //#30241 + bwipp_datamatrix(); //#30241 + var _D = $k[--$j]; //#30241 + $_[$k[--$j]] = _D; //#30241 + $put($_.args, "opt", $_.options); //#30243 + $k[$j++] = $_.args; //#30246 + if (!$_.dontdraw) { //#30246 + bwipp_renmatrix(); //#30246 + } //#30246 + $_ = Object.getPrototypeOf($_); //#30248 +} //bwipp_gs1dldatamatrix function bwipp_gs1qrcode() { - $_ = Object.create($_); //#29956 - $_.parse = false; //#29959 - $_.dontlint = false; //#29960 - $_.lintreqs = true; //#29961 - $_.dontdraw = false; //#29962 - $k[$j++] = $_; //#29964 - bwipp_processoptions(); //#29964 - $_.options = $k[--$j]; //#29964 - $_.barcode = $k[--$j]; //#29965 - $k[$j++] = $_.barcode; //#29967 - $k[$j++] = 'ai'; //#29967 - bwipp_gs1process(); //#29967 - $_.fncs = $k[--$j]; //#29968 - $_.vals = $k[--$j]; //#29969 - $_.ais = $k[--$j]; //#29970 - $_.fnc1 = -1; //#29973 - $_.qrc = $a([$_.fnc1]); //#29974 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29990 - $_.i = _A; //#29976 - $_.ai = $get($_.ais, $_.i); //#29977 - $_.val = $get($_.vals, $_.i); //#29978 - var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#29979 - $puti(_K, 0, $_.qrc); //#29980 - $k[$j++] = _K; //#29981 - $k[$j++] = _K; //#29981 - $k[$j++] = $_.qrc.length; //#29981 - $k[$j++] = $_.ai; //#29981 - $k[$j++] = Infinity; //#29981 - var _O = $k[--$j]; //#29981 - var _P = $k[--$j]; //#29981 - $k[$j++] = _O; //#29981 - $forall(_P); //#29981 - var _Q = $a(); //#29981 - var _R = $k[--$j]; //#29981 - $puti($k[--$j], _R, _Q); //#29981 - var _T = $k[--$j]; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = $_.qrc.length + $_.ai.length; //#29982 - $k[$j++] = $_.val; //#29982 - $k[$j++] = Infinity; //#29982 - var _X = $k[--$j]; //#29982 - var _Y = $k[--$j]; //#29982 - $k[$j++] = _X; //#29982 - $forall(_Y); //#29982 - var _Z = $a(); //#29982 - var _a = $k[--$j]; //#29982 - $puti($k[--$j], _a, _Z); //#29982 - $_.qrc = $k[--$j]; //#29983 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29989 - var _j = $a($_.qrc.length + 1); //#29985 - $puti(_j, 0, $_.qrc); //#29986 - $put(_j, $_.qrc.length, $_.fnc1); //#29987 - $_.qrc = _j; //#29988 - } //#29988 - } //#29988 - $_.barcode = $s(($_.qrc.length + 1) * 5); //#29993 - $_.i = 0; //#29994 - $_.j = 0; //#29994 - for (;;) { //#30004 - if ($_.i == $_.qrc.length) { //#29995 - break; //#29995 - } //#29995 - var _t = $get($_.qrc, $_.i); //#29996 - $k[$j++] = _t; //#30001 - if (_t == $_.fnc1) { //#30000 - $j--; //#29997 - $puti($_.barcode, $_.j, "^FNC1"); //#29997 - $_.j = $_.j + 4; //#29998 - } else { //#30000 - $put($_.barcode, $_.j, $k[--$j]); //#30000 - } //#30000 - $_.i = $_.i + 1; //#30002 - $_.j = $_.j + 1; //#30003 - } //#30003 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30005 - delete $_.options["parse"]; //#30008 - $put($_.options, "dontdraw", true); //#30009 - $put($_.options, "parsefnc", true); //#30010 - $k[$j++] = 'args'; //#30011 - $k[$j++] = $_.barcode; //#30011 - $k[$j++] = $_.options; //#30011 - bwipp_qrcode(); //#30011 - var _1B = $k[--$j]; //#30011 - $_[$k[--$j]] = _1B; //#30011 - $put($_.args, "opt", $_.options); //#30013 - $k[$j++] = $_.args; //#30016 - if (!$_.dontdraw) { //#30016 - bwipp_renmatrix(); //#30016 - } //#30016 - $_ = Object.getPrototypeOf($_); //#30018 -} - + $_ = Object.create($_); //#30277 + $_.parse = false; //#30280 + $_.dontlint = false; //#30281 + $_.lintreqs = true; //#30282 + $_.dontdraw = false; //#30283 + $k[$j++] = $_; //#30285 + bwipp_processoptions(); //#30285 + $_.options = $k[--$j]; //#30285 + $_.barcode = $k[--$j]; //#30286 + $k[$j++] = $_.barcode; //#30288 + $k[$j++] = 'ai'; //#30288 + bwipp_gs1process(); //#30288 + $_.fncs = $k[--$j]; //#30289 + $_.vals = $k[--$j]; //#30290 + $_.ais = $k[--$j]; //#30291 + $_.fnc1 = -1; //#30294 + $_.qrc = $a([$_.fnc1]); //#30295 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30311 + $_.i = _A; //#30297 + $_.ai = $get($_.ais, $_.i); //#30298 + $_.val = $get($_.vals, $_.i); //#30299 + var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#30300 + $puti(_K, 0, $_.qrc); //#30301 + $k[$j++] = _K; //#30302 + $k[$j++] = _K; //#30302 + $k[$j++] = $_.qrc.length; //#30302 + $k[$j++] = $_.ai; //#30302 + $k[$j++] = Infinity; //#30302 + var _O = $k[--$j]; //#30302 + var _P = $k[--$j]; //#30302 + $k[$j++] = _O; //#30302 + $forall(_P); //#30302 + var _Q = $a(); //#30302 + var _R = $k[--$j]; //#30302 + $puti($k[--$j], _R, _Q); //#30302 + var _T = $k[--$j]; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = $_.qrc.length + $_.ai.length; //#30303 + $k[$j++] = $_.val; //#30303 + $k[$j++] = Infinity; //#30303 + var _X = $k[--$j]; //#30303 + var _Y = $k[--$j]; //#30303 + $k[$j++] = _X; //#30303 + $forall(_Y); //#30303 + var _Z = $a(); //#30303 + var _a = $k[--$j]; //#30303 + $puti($k[--$j], _a, _Z); //#30303 + $_.qrc = $k[--$j]; //#30304 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30310 + var _j = $a($_.qrc.length + 1); //#30306 + $puti(_j, 0, $_.qrc); //#30307 + $put(_j, $_.qrc.length, $_.fnc1); //#30308 + $_.qrc = _j; //#30309 + } //#30309 + } //#30309 + $_.barcode = $s(($_.qrc.length + 1) * 5); //#30314 + $_.i = 0; //#30315 + $_.j = 0; //#30315 + for (;;) { //#30325 + if ($_.i == $_.qrc.length) { //#30316 + break; //#30316 + } //#30316 + var _t = $get($_.qrc, $_.i); //#30317 + $k[$j++] = _t; //#30322 + if (_t == $_.fnc1) { //#30321 + $j--; //#30318 + $puti($_.barcode, $_.j, "^FNC1"); //#30318 + $_.j = $_.j + 4; //#30319 + } else { //#30321 + $put($_.barcode, $_.j, $k[--$j]); //#30321 + } //#30321 + $_.i = $_.i + 1; //#30323 + $_.j = $_.j + 1; //#30324 + } //#30324 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30326 + delete $_.options["parse"]; //#30329 + $put($_.options, "dontdraw", true); //#30330 + $put($_.options, "parsefnc", true); //#30331 + $k[$j++] = 'args'; //#30332 + $k[$j++] = $_.barcode; //#30332 + $k[$j++] = $_.options; //#30332 + bwipp_qrcode(); //#30332 + var _1B = $k[--$j]; //#30332 + $_[$k[--$j]] = _1B; //#30332 + $put($_.args, "opt", $_.options); //#30334 + $k[$j++] = $_.args; //#30337 + if (!$_.dontdraw) { //#30337 + bwipp_renmatrix(); //#30337 + } //#30337 + $_ = Object.getPrototypeOf($_); //#30339 +} //bwipp_gs1qrcode function bwipp_gs1dlqrcode() { - $_ = Object.create($_); //#30048 - $_.parse = false; //#30051 - $_.dontlint = false; //#30052 - $_.lintreqs = true; //#30053 - $_.dontdraw = false; //#30054 - $k[$j++] = $_; //#30056 - bwipp_processoptions(); //#30056 - $_.options = $k[--$j]; //#30056 - $_.barcode = $k[--$j]; //#30057 + $_ = Object.create($_); //#30369 + $_.parse = false; //#30372 + $_.dontlint = false; //#30373 + $_.lintreqs = true; //#30374 + $_.dontdraw = false; //#30375 + $k[$j++] = $_; //#30377 + bwipp_processoptions(); //#30377 + $_.options = $k[--$j]; //#30377 + $_.barcode = $k[--$j]; //#30378 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#30063 - $_.fncvals = _3; //#30064 - $k[$j++] = 'barcode'; //#30065 - $k[$j++] = $_.barcode; //#30065 - $k[$j++] = $_.fncvals; //#30065 - bwipp_parseinput(); //#30065 - var _6 = $k[--$j]; //#30065 - $_[$k[--$j]] = _6; //#30065 - $k[$j++] = $_.barcode; //#30067 - $k[$j++] = 'dl'; //#30067 - bwipp_gs1process(); //#30067 - $j -= 3; //#30067 - delete $_.options["parse"]; //#30070 - $put($_.options, "dontdraw", true); //#30071 - $k[$j++] = 'args'; //#30072 - $k[$j++] = $_.barcode; //#30072 - $k[$j++] = $_.options; //#30072 - bwipp_qrcode(); //#30072 - var _D = $k[--$j]; //#30072 - $_[$k[--$j]] = _D; //#30072 - $put($_.args, "opt", $_.options); //#30074 - $k[$j++] = $_.args; //#30077 - if (!$_.dontdraw) { //#30077 - bwipp_renmatrix(); //#30077 - } //#30077 - $_ = Object.getPrototypeOf($_); //#30079 -} - + ]); //#30384 + $_.fncvals = _3; //#30385 + $k[$j++] = 'barcode'; //#30386 + $k[$j++] = $_.barcode; //#30386 + $k[$j++] = $_.fncvals; //#30386 + bwipp_parseinput(); //#30386 + var _6 = $k[--$j]; //#30386 + $_[$k[--$j]] = _6; //#30386 + $k[$j++] = $_.barcode; //#30388 + $k[$j++] = 'dl'; //#30388 + bwipp_gs1process(); //#30388 + $j -= 3; //#30388 + delete $_.options["parse"]; //#30391 + $put($_.options, "dontdraw", true); //#30392 + $k[$j++] = 'args'; //#30393 + $k[$j++] = $_.barcode; //#30393 + $k[$j++] = $_.options; //#30393 + bwipp_qrcode(); //#30393 + var _D = $k[--$j]; //#30393 + $_[$k[--$j]] = _D; //#30393 + $put($_.args, "opt", $_.options); //#30395 + $k[$j++] = $_.args; //#30398 + if (!$_.dontdraw) { //#30398 + bwipp_renmatrix(); //#30398 + } //#30398 + $_ = Object.getPrototypeOf($_); //#30400 +} //bwipp_gs1dlqrcode function bwipp_gs1dotcode() { - $_ = Object.create($_); //#30109 - $_.dontdraw = false; //#30112 - $_.parse = false; //#30113 - $_.dontlint = false; //#30114 - $_.lintreqs = true; //#30115 - $k[$j++] = $_; //#30117 - bwipp_processoptions(); //#30117 - $_.options = $k[--$j]; //#30117 - $_.barcode = $k[--$j]; //#30118 - $k[$j++] = $_.barcode; //#30120 - $k[$j++] = 'ai'; //#30120 - bwipp_gs1process(); //#30120 - $_.fncs = $k[--$j]; //#30121 - $_.vals = $k[--$j]; //#30122 - $_.ais = $k[--$j]; //#30123 - $_.fnc1 = -1; //#30126 - $_.dmtx = $a([$_.fnc1]); //#30127 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30143 - $_.i = _A; //#30129 - $_.ai = $get($_.ais, $_.i); //#30130 - $_.val = $get($_.vals, $_.i); //#30131 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30132 - $puti(_K, 0, $_.dmtx); //#30133 - $k[$j++] = _K; //#30134 - $k[$j++] = _K; //#30134 - $k[$j++] = $_.dmtx.length; //#30134 - $k[$j++] = $_.ai; //#30134 - $k[$j++] = Infinity; //#30134 - var _O = $k[--$j]; //#30134 - var _P = $k[--$j]; //#30134 - $k[$j++] = _O; //#30134 - $forall(_P); //#30134 - var _Q = $a(); //#30134 - var _R = $k[--$j]; //#30134 - $puti($k[--$j], _R, _Q); //#30134 - var _T = $k[--$j]; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#30135 - $k[$j++] = $_.val; //#30135 - $k[$j++] = Infinity; //#30135 - var _X = $k[--$j]; //#30135 - var _Y = $k[--$j]; //#30135 - $k[$j++] = _X; //#30135 - $forall(_Y); //#30135 - var _Z = $a(); //#30135 - var _a = $k[--$j]; //#30135 - $puti($k[--$j], _a, _Z); //#30135 - $_.dmtx = $k[--$j]; //#30136 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30142 - var _j = $a($_.dmtx.length + 1); //#30138 - $puti(_j, 0, $_.dmtx); //#30139 - $put(_j, $_.dmtx.length, $_.fnc1); //#30140 - $_.dmtx = _j; //#30141 - } //#30141 - } //#30141 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30146 - $_.i = 0; //#30147 - $_.j = 0; //#30147 - for (;;) { //#30157 - if ($_.i == $_.dmtx.length) { //#30148 - break; //#30148 - } //#30148 - var _t = $get($_.dmtx, $_.i); //#30149 - $k[$j++] = _t; //#30154 - if (_t == $_.fnc1) { //#30153 - $j--; //#30150 - $puti($_.barcode, $_.j, "^FNC1"); //#30150 - $_.j = $_.j + 4; //#30151 - } else { //#30153 - $put($_.barcode, $_.j, $k[--$j]); //#30153 - } //#30153 - $_.i = $_.i + 1; //#30155 - $_.j = $_.j + 1; //#30156 - } //#30156 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30158 - delete $_.options["parse"]; //#30161 - $put($_.options, "dontdraw", true); //#30162 - $put($_.options, "parsefnc", true); //#30163 - $k[$j++] = 'args'; //#30164 - $k[$j++] = $_.barcode; //#30164 - $k[$j++] = $_.options; //#30164 - bwipp_dotcode(); //#30164 - var _1B = $k[--$j]; //#30164 - $_[$k[--$j]] = _1B; //#30164 - $put($_.args, "opt", $_.options); //#30166 - $k[$j++] = $_.args; //#30169 - if (!$_.dontdraw) { //#30169 - bwipp_renmatrix(); //#30169 - } //#30169 - $_ = Object.getPrototypeOf($_); //#30171 -} - + $_ = Object.create($_); //#30430 + $_.dontdraw = false; //#30433 + $_.parse = false; //#30434 + $_.dontlint = false; //#30435 + $_.lintreqs = true; //#30436 + $k[$j++] = $_; //#30438 + bwipp_processoptions(); //#30438 + $_.options = $k[--$j]; //#30438 + $_.barcode = $k[--$j]; //#30439 + $k[$j++] = $_.barcode; //#30441 + $k[$j++] = 'ai'; //#30441 + bwipp_gs1process(); //#30441 + $_.fncs = $k[--$j]; //#30442 + $_.vals = $k[--$j]; //#30443 + $_.ais = $k[--$j]; //#30444 + $_.fnc1 = -1; //#30447 + $_.dmtx = $a([$_.fnc1]); //#30448 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30464 + $_.i = _A; //#30450 + $_.ai = $get($_.ais, $_.i); //#30451 + $_.val = $get($_.vals, $_.i); //#30452 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30453 + $puti(_K, 0, $_.dmtx); //#30454 + $k[$j++] = _K; //#30455 + $k[$j++] = _K; //#30455 + $k[$j++] = $_.dmtx.length; //#30455 + $k[$j++] = $_.ai; //#30455 + $k[$j++] = Infinity; //#30455 + var _O = $k[--$j]; //#30455 + var _P = $k[--$j]; //#30455 + $k[$j++] = _O; //#30455 + $forall(_P); //#30455 + var _Q = $a(); //#30455 + var _R = $k[--$j]; //#30455 + $puti($k[--$j], _R, _Q); //#30455 + var _T = $k[--$j]; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30456 + $k[$j++] = $_.val; //#30456 + $k[$j++] = Infinity; //#30456 + var _X = $k[--$j]; //#30456 + var _Y = $k[--$j]; //#30456 + $k[$j++] = _X; //#30456 + $forall(_Y); //#30456 + var _Z = $a(); //#30456 + var _a = $k[--$j]; //#30456 + $puti($k[--$j], _a, _Z); //#30456 + $_.dmtx = $k[--$j]; //#30457 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30463 + var _j = $a($_.dmtx.length + 1); //#30459 + $puti(_j, 0, $_.dmtx); //#30460 + $put(_j, $_.dmtx.length, $_.fnc1); //#30461 + $_.dmtx = _j; //#30462 + } //#30462 + } //#30462 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30467 + $_.i = 0; //#30468 + $_.j = 0; //#30468 + for (;;) { //#30478 + if ($_.i == $_.dmtx.length) { //#30469 + break; //#30469 + } //#30469 + var _t = $get($_.dmtx, $_.i); //#30470 + $k[$j++] = _t; //#30475 + if (_t == $_.fnc1) { //#30474 + $j--; //#30471 + $puti($_.barcode, $_.j, "^FNC1"); //#30471 + $_.j = $_.j + 4; //#30472 + } else { //#30474 + $put($_.barcode, $_.j, $k[--$j]); //#30474 + } //#30474 + $_.i = $_.i + 1; //#30476 + $_.j = $_.j + 1; //#30477 + } //#30477 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30479 + delete $_.options["parse"]; //#30482 + $put($_.options, "dontdraw", true); //#30483 + $put($_.options, "parsefnc", true); //#30484 + $k[$j++] = 'args'; //#30485 + $k[$j++] = $_.barcode; //#30485 + $k[$j++] = $_.options; //#30485 + bwipp_dotcode(); //#30485 + var _1B = $k[--$j]; //#30485 + $_[$k[--$j]] = _1B; //#30485 + $put($_.args, "opt", $_.options); //#30487 + $k[$j++] = $_.args; //#30490 + if (!$_.dontdraw) { //#30490 + bwipp_renmatrix(); //#30490 + } //#30490 + $_ = Object.getPrototypeOf($_); //#30492 +} //bwipp_gs1dotcode function bwipp_hibccode39() { - $_ = Object.create($_); //#30202 - $_.dontdraw = false; //#30205 - $_.textfont = "OCR-B"; //#30206 - $_.textsize = 10; //#30207 - $_.textyoffset = -8; //#30208 - $_.textxoffset = 0; //#30209 - $_.validatecheck = false; //#30210 - $k[$j++] = $_; //#30212 - bwipp_processoptions(); //#30212 - $_.options = $k[--$j]; //#30212 - $_.barcode = $k[--$j]; //#30213 - bwipp_loadctx(bwipp_hibccode39) //#30215 - if (!bwipp_hibccode39.__30222__) { //#30222 - $_ = Object.create($_); //#30222 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30219 - $_.charvals = new Map; //#30220 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30221 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30221 - } //#30221 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30221 - bwipp_hibccode39.__30222__ = 1; //#30221 - $_ = Object.getPrototypeOf($_); //#30221 - } //#30221 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30229 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30226 - if (!_D) { //#30228 - $k[$j++] = 'bwipp.hibccode39badCharacter#30227'; //#30227 - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30227 - bwipp_raiseerror(); //#30227 - } //#30227 - } //#30227 - $k[$j++] = 'barlen'; //#30231 - $k[$j++] = $_.barcode.length; //#30231 - if ($_.validatecheck) { //#30231 - var _G = $k[--$j]; //#30231 - $k[$j++] = $f(_G - 1); //#30231 - } //#30231 - var _H = $k[--$j]; //#30231 - $_[$k[--$j]] = _H; //#30231 - $_.checksum = 41; //#30233 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30237 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30236 - } //#30236 - $_.checksum = $_.checksum % 43; //#30238 - if ($_.validatecheck) { //#30244 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30242 - $k[$j++] = 'bwipp.hibccode39badCheckDigit#30241'; //#30241 - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30241 - bwipp_raiseerror(); //#30241 - } //#30241 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30243 - } //#30243 - var _d = $s($f($_.barlen + 2)); //#30246 - $puti(_d, 1, $_.barcode); //#30246 - $_.barcode = _d; //#30246 - $put($_.barcode, 0, 43); //#30247 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30248 - $_.text = $s($f($_.barlen + 4)); //#30250 - $put($_.text, 0, 42); //#30251 - $puti($_.text, 1, $_.barcode); //#30252 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30253 - $k[$j++] = $_.text; //#30253 - $k[$j++] = $f($_.barlen + 2); //#30253 - $k[$j++] = _u; //#30253 - if (_u == 32) { //#30253 - $j--; //#30253 - $k[$j++] = 95; //#30253 - } //#30253 - var _v = $k[--$j]; //#30253 - var _w = $k[--$j]; //#30253 - $put($k[--$j], _w, _v); //#30253 - $put($_.text, $f($_.barlen + 3), 42); //#30254 - $put($_.options, "dontdraw", true); //#30257 - $put($_.options, "includecheck", false); //#30258 - $put($_.options, "validatecheck", false); //#30259 - $k[$j++] = 'args'; //#30260 - $k[$j++] = $_.barcode; //#30260 - $k[$j++] = $_.options; //#30260 - bwipp_code39(); //#30260 - var _15 = $k[--$j]; //#30260 - $_[$k[--$j]] = _15; //#30260 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30262 - $put($_.args, "textxalign", "center"); //#30263 - $put($_.args, "opt", $_.options); //#30264 - $k[$j++] = $_.args; //#30267 - if (!$_.dontdraw) { //#30267 - bwipp_renlinear(); //#30267 - } //#30267 - $_ = Object.getPrototypeOf($_); //#30269 - $_ = Object.getPrototypeOf($_); //#30271 -} - + $_ = Object.create($_); //#30523 + $_.dontdraw = false; //#30526 + $_.textfont = "OCR-B"; //#30527 + $_.textsize = 10; //#30528 + $_.textyoffset = -8; //#30529 + $_.textxoffset = 0; //#30530 + $_.validatecheck = false; //#30531 + $k[$j++] = $_; //#30533 + bwipp_processoptions(); //#30533 + $_.options = $k[--$j]; //#30533 + $_.barcode = $k[--$j]; //#30534 + if ($eq($_.barcode, "")) { //#30538 + $k[$j++] = 'bwipp.hibccode39emptyData#30537'; //#30537 + $k[$j++] = "The data must not be empty"; //#30537 + bwipp_raiseerror(); //#30537 + } //#30537 + bwipp_loadctx(bwipp_hibccode39) //#30540 + if (!bwipp_hibccode39.__30547__) { //#30547 + $_ = Object.create($_); //#30547 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30544 + $_.charvals = new Map; //#30545 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30546 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30546 + } //#30546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30546 + bwipp_hibccode39.__30547__ = 1; //#30546 + $_ = Object.getPrototypeOf($_); //#30546 + } //#30546 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30554 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30551 + if (!_E) { //#30553 + $k[$j++] = 'bwipp.hibccode39badCharacter#30552'; //#30552 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30552 + bwipp_raiseerror(); //#30552 + } //#30552 + } //#30552 + $k[$j++] = 'barlen'; //#30556 + $k[$j++] = $_.barcode.length; //#30556 + if ($_.validatecheck) { //#30556 + var _H = $k[--$j]; //#30556 + $k[$j++] = $f(_H - 1); //#30556 + } //#30556 + var _I = $k[--$j]; //#30556 + $_[$k[--$j]] = _I; //#30556 + $_.checksum = 41; //#30558 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30562 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30561 + } //#30561 + $_.checksum = $_.checksum % 43; //#30563 + if ($_.validatecheck) { //#30569 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30567 + $k[$j++] = 'bwipp.hibccode39badCheckDigit#30566'; //#30566 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30566 + bwipp_raiseerror(); //#30566 + } //#30566 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30568 + } //#30568 + var _e = $s($f($_.barlen + 2)); //#30571 + $puti(_e, 1, $_.barcode); //#30571 + $_.barcode = _e; //#30571 + $put($_.barcode, 0, 43); //#30572 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30573 + $_.text = $s($f($_.barlen + 4)); //#30575 + $put($_.text, 0, 42); //#30576 + $puti($_.text, 1, $_.barcode); //#30577 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30578 + $k[$j++] = $_.text; //#30578 + $k[$j++] = $f($_.barlen + 2); //#30578 + $k[$j++] = _v; //#30578 + if (_v == 32) { //#30578 + $j--; //#30578 + $k[$j++] = 95; //#30578 + } //#30578 + var _w = $k[--$j]; //#30578 + var _x = $k[--$j]; //#30578 + $put($k[--$j], _x, _w); //#30578 + $put($_.text, $f($_.barlen + 3), 42); //#30579 + $put($_.options, "dontdraw", true); //#30582 + $put($_.options, "includecheck", false); //#30583 + $put($_.options, "validatecheck", false); //#30584 + $k[$j++] = 'args'; //#30585 + $k[$j++] = $_.barcode; //#30585 + $k[$j++] = $_.options; //#30585 + bwipp_code39(); //#30585 + var _16 = $k[--$j]; //#30585 + $_[$k[--$j]] = _16; //#30585 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30587 + $put($_.args, "textxalign", "center"); //#30588 + $put($_.args, "opt", $_.options); //#30589 + $k[$j++] = $_.args; //#30592 + if (!$_.dontdraw) { //#30592 + bwipp_renlinear(); //#30592 + } //#30592 + $_ = Object.getPrototypeOf($_); //#30594 + $_ = Object.getPrototypeOf($_); //#30596 +} //bwipp_hibccode39 function bwipp_hibccode128() { - $_ = Object.create($_); //#30302 - $_.dontdraw = false; //#30305 - $_.textfont = "OCR-B"; //#30306 - $_.textsize = 10; //#30307 - $_.textyoffset = -8; //#30308 - $_.textxoffset = 0; //#30309 - $_.validatecheck = false; //#30310 - $k[$j++] = $_; //#30312 - bwipp_processoptions(); //#30312 - $_.options = $k[--$j]; //#30312 - $_.barcode = $k[--$j]; //#30313 - bwipp_loadctx(bwipp_hibccode128) //#30315 - if (!bwipp_hibccode128.__30322__) { //#30322 - $_ = Object.create($_); //#30322 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30319 - $_.charvals = new Map; //#30320 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30321 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30321 - } //#30321 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30321 - bwipp_hibccode128.__30322__ = 1; //#30321 - $_ = Object.getPrototypeOf($_); //#30321 - } //#30321 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30329 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30326 - if (!_D) { //#30328 - $k[$j++] = 'bwipp.hibccode128badCharacter#30327'; //#30327 - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30327 - bwipp_raiseerror(); //#30327 - } //#30327 - } //#30327 - $k[$j++] = 'barlen'; //#30331 - $k[$j++] = $_.barcode.length; //#30331 - if ($_.validatecheck) { //#30331 - var _G = $k[--$j]; //#30331 - $k[$j++] = $f(_G - 1); //#30331 - } //#30331 - var _H = $k[--$j]; //#30331 - $_[$k[--$j]] = _H; //#30331 - $_.checksum = 41; //#30333 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30337 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30336 - } //#30336 - $_.checksum = $_.checksum % 43; //#30338 - if ($_.validatecheck) { //#30344 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30342 - $k[$j++] = 'bwipp.hibccode128badCheckDigit#30341'; //#30341 - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30341 - bwipp_raiseerror(); //#30341 - } //#30341 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30343 - } //#30343 - var _d = $s($f($_.barlen + 2)); //#30346 - $puti(_d, 1, $_.barcode); //#30346 - $_.barcode = _d; //#30346 - $put($_.barcode, 0, 43); //#30347 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30348 - $_.text = $s($f($_.barlen + 4)); //#30350 - $put($_.text, 0, 42); //#30351 - $puti($_.text, 1, $_.barcode); //#30352 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30353 - $k[$j++] = $_.text; //#30353 - $k[$j++] = $f($_.barlen + 2); //#30353 - $k[$j++] = _u; //#30353 - if (_u == 32) { //#30353 - $j--; //#30353 - $k[$j++] = 95; //#30353 - } //#30353 - var _v = $k[--$j]; //#30353 - var _w = $k[--$j]; //#30353 - $put($k[--$j], _w, _v); //#30353 - $put($_.text, $f($_.barlen + 3), 42); //#30354 - $put($_.options, "dontdraw", true); //#30357 - $put($_.options, "validatecheck", false); //#30358 - $k[$j++] = 'args'; //#30359 - $k[$j++] = $_.barcode; //#30359 - $k[$j++] = $_.options; //#30359 - bwipp_code128(); //#30359 - var _14 = $k[--$j]; //#30359 - $_[$k[--$j]] = _14; //#30359 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30361 - $put($_.args, "textxalign", "center"); //#30362 - $put($_.args, "opt", $_.options); //#30363 - $k[$j++] = $_.args; //#30366 - if (!$_.dontdraw) { //#30366 - bwipp_renlinear(); //#30366 - } //#30366 - $_ = Object.getPrototypeOf($_); //#30368 - $_ = Object.getPrototypeOf($_); //#30370 -} - + $_ = Object.create($_); //#30627 + $_.dontdraw = false; //#30630 + $_.textfont = "OCR-B"; //#30631 + $_.textsize = 10; //#30632 + $_.textyoffset = -8; //#30633 + $_.textxoffset = 0; //#30634 + $_.validatecheck = false; //#30635 + $k[$j++] = $_; //#30637 + bwipp_processoptions(); //#30637 + $_.options = $k[--$j]; //#30637 + $_.barcode = $k[--$j]; //#30638 + if ($eq($_.barcode, "")) { //#30642 + $k[$j++] = 'bwipp.hibccode128emptyData#30641'; //#30641 + $k[$j++] = "The data must not be empty"; //#30641 + bwipp_raiseerror(); //#30641 + } //#30641 + bwipp_loadctx(bwipp_hibccode128) //#30644 + if (!bwipp_hibccode128.__30651__) { //#30651 + $_ = Object.create($_); //#30651 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30648 + $_.charvals = new Map; //#30649 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30650 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30650 + } //#30650 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30650 + bwipp_hibccode128.__30651__ = 1; //#30650 + $_ = Object.getPrototypeOf($_); //#30650 + } //#30650 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30658 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30655 + if (!_E) { //#30657 + $k[$j++] = 'bwipp.hibccode128badCharacter#30656'; //#30656 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30656 + bwipp_raiseerror(); //#30656 + } //#30656 + } //#30656 + $k[$j++] = 'barlen'; //#30660 + $k[$j++] = $_.barcode.length; //#30660 + if ($_.validatecheck) { //#30660 + var _H = $k[--$j]; //#30660 + $k[$j++] = $f(_H - 1); //#30660 + } //#30660 + var _I = $k[--$j]; //#30660 + $_[$k[--$j]] = _I; //#30660 + $_.checksum = 41; //#30662 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30666 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30665 + } //#30665 + $_.checksum = $_.checksum % 43; //#30667 + if ($_.validatecheck) { //#30673 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30671 + $k[$j++] = 'bwipp.hibccode128badCheckDigit#30670'; //#30670 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30670 + bwipp_raiseerror(); //#30670 + } //#30670 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30672 + } //#30672 + var _e = $s($f($_.barlen + 2)); //#30675 + $puti(_e, 1, $_.barcode); //#30675 + $_.barcode = _e; //#30675 + $put($_.barcode, 0, 43); //#30676 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30677 + $_.text = $s($f($_.barlen + 4)); //#30679 + $put($_.text, 0, 42); //#30680 + $puti($_.text, 1, $_.barcode); //#30681 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30682 + $k[$j++] = $_.text; //#30682 + $k[$j++] = $f($_.barlen + 2); //#30682 + $k[$j++] = _v; //#30682 + if (_v == 32) { //#30682 + $j--; //#30682 + $k[$j++] = 95; //#30682 + } //#30682 + var _w = $k[--$j]; //#30682 + var _x = $k[--$j]; //#30682 + $put($k[--$j], _x, _w); //#30682 + $put($_.text, $f($_.barlen + 3), 42); //#30683 + $put($_.options, "dontdraw", true); //#30686 + $put($_.options, "validatecheck", false); //#30687 + $k[$j++] = 'args'; //#30688 + $k[$j++] = $_.barcode; //#30688 + $k[$j++] = $_.options; //#30688 + bwipp_code128(); //#30688 + var _15 = $k[--$j]; //#30688 + $_[$k[--$j]] = _15; //#30688 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30690 + $put($_.args, "textxalign", "center"); //#30691 + $put($_.args, "opt", $_.options); //#30692 + $k[$j++] = $_.args; //#30695 + if (!$_.dontdraw) { //#30695 + bwipp_renlinear(); //#30695 + } //#30695 + $_ = Object.getPrototypeOf($_); //#30697 + $_ = Object.getPrototypeOf($_); //#30699 +} //bwipp_hibccode128 function bwipp_hibcdatamatrix() { - $_ = Object.create($_); //#30401 - $_.dontdraw = false; //#30404 - $_.validatecheck = false; //#30405 - $k[$j++] = $_; //#30407 - bwipp_processoptions(); //#30407 - $_.options = $k[--$j]; //#30407 - $_.barcode = $k[--$j]; //#30408 - bwipp_loadctx(bwipp_hibcdatamatrix) //#30410 - if (!bwipp_hibcdatamatrix.__30417__) { //#30417 - $_ = Object.create($_); //#30417 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30414 - $_.charvals = new Map; //#30415 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30416 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30416 - } //#30416 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30416 - bwipp_hibcdatamatrix.__30417__ = 1; //#30416 - $_ = Object.getPrototypeOf($_); //#30416 - } //#30416 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30424 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30421 - if (!_D) { //#30423 - $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30422'; //#30422 - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30422 - bwipp_raiseerror(); //#30422 - } //#30422 - } //#30422 - $k[$j++] = 'barlen'; //#30426 - $k[$j++] = $_.barcode.length; //#30426 - if ($_.validatecheck) { //#30426 - var _G = $k[--$j]; //#30426 - $k[$j++] = $f(_G - 1); //#30426 - } //#30426 - var _H = $k[--$j]; //#30426 - $_[$k[--$j]] = _H; //#30426 - $_.checksum = 41; //#30428 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30432 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30431 - } //#30431 - $_.checksum = $_.checksum % 43; //#30433 - if ($_.validatecheck) { //#30439 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30437 - $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30436'; //#30436 - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30436 - bwipp_raiseerror(); //#30436 - } //#30436 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30438 - } //#30438 - var _d = $s($f($_.barlen + 2)); //#30441 - $puti(_d, 1, $_.barcode); //#30441 - $_.barcode = _d; //#30441 - $put($_.barcode, 0, 43); //#30442 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30443 - $put($_.options, "dontdraw", true); //#30446 - $put($_.options, "validatecheck", false); //#30447 - $k[$j++] = 'args'; //#30448 - $k[$j++] = $_.barcode; //#30448 - $k[$j++] = $_.options; //#30448 - bwipp_datamatrix(); //#30448 - var _p = $k[--$j]; //#30448 - $_[$k[--$j]] = _p; //#30448 - var _r = $_.args; //#30450 - $put(_r, "opt", $_.options); //#30450 - $k[$j++] = $_.args; //#30453 - if (!$_.dontdraw) { //#30453 - bwipp_renmatrix(); //#30453 - } //#30453 - $_ = Object.getPrototypeOf($_); //#30455 - $_ = Object.getPrototypeOf($_); //#30457 -} - + $_ = Object.create($_); //#30730 + $_.dontdraw = false; //#30733 + $_.validatecheck = false; //#30734 + $k[$j++] = $_; //#30736 + bwipp_processoptions(); //#30736 + $_.options = $k[--$j]; //#30736 + $_.barcode = $k[--$j]; //#30737 + if ($eq($_.barcode, "")) { //#30741 + $k[$j++] = 'bwipp.hibcdatamatrixEmptyData#30740'; //#30740 + $k[$j++] = "The data must not be empty"; //#30740 + bwipp_raiseerror(); //#30740 + } //#30740 + bwipp_loadctx(bwipp_hibcdatamatrix) //#30743 + if (!bwipp_hibcdatamatrix.__30750__) { //#30750 + $_ = Object.create($_); //#30750 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30747 + $_.charvals = new Map; //#30748 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30749 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30749 + } //#30749 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30749 + bwipp_hibcdatamatrix.__30750__ = 1; //#30749 + $_ = Object.getPrototypeOf($_); //#30749 + } //#30749 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30757 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30754 + if (!_E) { //#30756 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30755'; //#30755 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30755 + bwipp_raiseerror(); //#30755 + } //#30755 + } //#30755 + $k[$j++] = 'barlen'; //#30759 + $k[$j++] = $_.barcode.length; //#30759 + if ($_.validatecheck) { //#30759 + var _H = $k[--$j]; //#30759 + $k[$j++] = $f(_H - 1); //#30759 + } //#30759 + var _I = $k[--$j]; //#30759 + $_[$k[--$j]] = _I; //#30759 + $_.checksum = 41; //#30761 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30765 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30764 + } //#30764 + $_.checksum = $_.checksum % 43; //#30766 + if ($_.validatecheck) { //#30772 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30770 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30769'; //#30769 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30769 + bwipp_raiseerror(); //#30769 + } //#30769 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30771 + } //#30771 + var _d = $_.barlen; //#30774 + var _e = $s($f(_d + 2)); //#30774 + $puti(_e, 1, $_.barcode); //#30774 + $_.barcode = _e; //#30774 + $put($_.barcode, 0, 43); //#30775 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30776 + $put($_.options, "dontdraw", true); //#30779 + $put($_.options, "validatecheck", false); //#30780 + $k[$j++] = 'args'; //#30781 + $k[$j++] = $_.barcode; //#30781 + $k[$j++] = $_.options; //#30781 + bwipp_datamatrix(); //#30781 + var _q = $k[--$j]; //#30781 + var _r = $k[--$j]; //#30781 + $_[_r] = _q; //#30781 + $put($_.args, "opt", $_.options); //#30783 + $k[$j++] = $_.args; //#30786 + if (!$_.dontdraw) { //#30786 + bwipp_renmatrix(); //#30786 + } //#30786 + $_ = Object.getPrototypeOf($_); //#30788 + $_ = Object.getPrototypeOf($_); //#30790 +} //bwipp_hibcdatamatrix function bwipp_hibcdatamatrixrectangular() { - $_ = Object.create($_); //#30488 - $_.dontdraw = false; //#30491 - $_.validatecheck = false; //#30492 - $k[$j++] = $_; //#30494 - bwipp_processoptions(); //#30494 - $_.options = $k[--$j]; //#30494 - $_.barcode = $k[--$j]; //#30495 - bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30497 - if (!bwipp_hibcdatamatrixrectangular.__30504__) { //#30504 - $_ = Object.create($_); //#30504 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30501 - $_.charvals = new Map; //#30502 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30503 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30503 - } //#30503 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30503 - bwipp_hibcdatamatrixrectangular.__30504__ = 1; //#30503 - $_ = Object.getPrototypeOf($_); //#30503 - } //#30503 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30511 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30508 - if (!_D) { //#30510 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30509'; //#30509 - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30509 - bwipp_raiseerror(); //#30509 - } //#30509 - } //#30509 - $k[$j++] = 'barlen'; //#30513 - $k[$j++] = $_.barcode.length; //#30513 - if ($_.validatecheck) { //#30513 - var _G = $k[--$j]; //#30513 - $k[$j++] = $f(_G - 1); //#30513 - } //#30513 - var _H = $k[--$j]; //#30513 - $_[$k[--$j]] = _H; //#30513 - $_.checksum = 41; //#30515 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30519 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30518 - } //#30518 - $_.checksum = $_.checksum % 43; //#30520 - if ($_.validatecheck) { //#30526 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30524 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30523'; //#30523 - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30523 - bwipp_raiseerror(); //#30523 - } //#30523 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30525 - } //#30525 - var _d = $s($f($_.barlen + 2)); //#30528 - $puti(_d, 1, $_.barcode); //#30528 - $_.barcode = _d; //#30528 - $put($_.barcode, 0, 43); //#30529 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30530 - $put($_.options, "dontdraw", true); //#30533 - $put($_.options, "validatecheck", false); //#30534 - $put($_.options, "format", "rectangle"); //#30535 - $k[$j++] = 'args'; //#30536 - $k[$j++] = $_.barcode; //#30536 - $k[$j++] = $_.options; //#30536 - bwipp_datamatrix(); //#30536 - var _q = $k[--$j]; //#30536 - var _r = $k[--$j]; //#30536 - $_[_r] = _q; //#30536 - $put($_.args, "opt", $_.options); //#30538 - $k[$j++] = $_.args; //#30541 - if (!$_.dontdraw) { //#30541 - bwipp_renmatrix(); //#30541 - } //#30541 - $_ = Object.getPrototypeOf($_); //#30543 - $_ = Object.getPrototypeOf($_); //#30545 -} - + $_ = Object.create($_); //#30821 + $_.dontdraw = false; //#30824 + $_.validatecheck = false; //#30825 + $k[$j++] = $_; //#30827 + bwipp_processoptions(); //#30827 + $_.options = $k[--$j]; //#30827 + $_.barcode = $k[--$j]; //#30828 + if ($eq($_.barcode, "")) { //#30832 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularEmptyData#30831'; //#30831 + $k[$j++] = "The data must not be empty"; //#30831 + bwipp_raiseerror(); //#30831 + } //#30831 + bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30834 + if (!bwipp_hibcdatamatrixrectangular.__30841__) { //#30841 + $_ = Object.create($_); //#30841 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30838 + $_.charvals = new Map; //#30839 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30840 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30840 + } //#30840 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30840 + bwipp_hibcdatamatrixrectangular.__30841__ = 1; //#30840 + $_ = Object.getPrototypeOf($_); //#30840 + } //#30840 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30848 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30845 + if (!_E) { //#30847 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30846'; //#30846 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30846 + bwipp_raiseerror(); //#30846 + } //#30846 + } //#30846 + $k[$j++] = 'barlen'; //#30850 + $k[$j++] = $_.barcode.length; //#30850 + if ($_.validatecheck) { //#30850 + var _H = $k[--$j]; //#30850 + $k[$j++] = $f(_H - 1); //#30850 + } //#30850 + var _I = $k[--$j]; //#30850 + $_[$k[--$j]] = _I; //#30850 + $_.checksum = 41; //#30852 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30856 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30855 + } //#30855 + $_.checksum = $_.checksum % 43; //#30857 + if ($_.validatecheck) { //#30863 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30861 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30860'; //#30860 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30860 + bwipp_raiseerror(); //#30860 + } //#30860 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30862 + } //#30862 + var _d = $_.barlen; //#30865 + var _e = $s($f(_d + 2)); //#30865 + $puti(_e, 1, $_.barcode); //#30865 + $_.barcode = _e; //#30865 + $put($_.barcode, 0, 43); //#30866 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30867 + $put($_.options, "dontdraw", true); //#30870 + $put($_.options, "validatecheck", false); //#30871 + $put($_.options, "format", "rectangle"); //#30872 + $k[$j++] = 'args'; //#30873 + $k[$j++] = $_.barcode; //#30873 + $k[$j++] = $_.options; //#30873 + bwipp_datamatrix(); //#30873 + var _r = $k[--$j]; //#30873 + $_[$k[--$j]] = _r; //#30873 + $put($_.args, "opt", $_.options); //#30875 + $k[$j++] = $_.args; //#30878 + if (!$_.dontdraw) { //#30878 + bwipp_renmatrix(); //#30878 + } //#30878 + $_ = Object.getPrototypeOf($_); //#30880 + $_ = Object.getPrototypeOf($_); //#30882 +} //bwipp_hibcdatamatrixrectangular function bwipp_hibcpdf417() { - $_ = Object.create($_); //#30576 - $_.dontdraw = false; //#30579 - $_.columns = 2; //#30580 - $_.validatecheck = false; //#30581 - $k[$j++] = $_; //#30583 - bwipp_processoptions(); //#30583 - $_.options = $k[--$j]; //#30583 - $_.barcode = $k[--$j]; //#30584 - bwipp_loadctx(bwipp_hibcpdf417) //#30586 - if (!bwipp_hibcpdf417.__30593__) { //#30593 - $_ = Object.create($_); //#30593 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30590 - $_.charvals = new Map; //#30591 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30592 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30592 - } //#30592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30592 - bwipp_hibcpdf417.__30593__ = 1; //#30592 - $_ = Object.getPrototypeOf($_); //#30592 - } //#30592 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30600 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30597 - if (!_D) { //#30599 - $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30598'; //#30598 - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30598 - bwipp_raiseerror(); //#30598 - } //#30598 - } //#30598 - $k[$j++] = 'barlen'; //#30602 - $k[$j++] = $_.barcode.length; //#30602 - if ($_.validatecheck) { //#30602 - var _G = $k[--$j]; //#30602 - $k[$j++] = $f(_G - 1); //#30602 - } //#30602 - var _H = $k[--$j]; //#30602 - $_[$k[--$j]] = _H; //#30602 - $_.checksum = 41; //#30604 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30608 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30607 - } //#30607 - $_.checksum = $_.checksum % 43; //#30609 - if ($_.validatecheck) { //#30615 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30613 - $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30612'; //#30612 - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30612 - bwipp_raiseerror(); //#30612 - } //#30612 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30614 - } //#30614 - var _d = $s($f($_.barlen + 2)); //#30617 - $puti(_d, 1, $_.barcode); //#30617 - $_.barcode = _d; //#30617 - $put($_.barcode, 0, 43); //#30618 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30619 - $put($_.options, "dontdraw", true); //#30622 - $put($_.options, "columns", $_.columns); //#30623 - $put($_.options, "validatecheck", false); //#30624 - var _p = $_.barcode; //#30625 - $k[$j++] = 'args'; //#30625 - $k[$j++] = _p; //#30625 - $k[$j++] = $_.options; //#30625 - bwipp_pdf417(); //#30625 - var _r = $k[--$j]; //#30625 - $_[$k[--$j]] = _r; //#30625 - $put($_.args, "opt", $_.options); //#30627 - $k[$j++] = $_.args; //#30630 - if (!$_.dontdraw) { //#30630 - bwipp_renmatrix(); //#30630 - } //#30630 - $_ = Object.getPrototypeOf($_); //#30632 - $_ = Object.getPrototypeOf($_); //#30634 -} - + $_ = Object.create($_); //#30913 + $_.dontdraw = false; //#30916 + $_.columns = 2; //#30917 + $_.validatecheck = false; //#30918 + $k[$j++] = $_; //#30920 + bwipp_processoptions(); //#30920 + $_.options = $k[--$j]; //#30920 + $_.barcode = $k[--$j]; //#30921 + if ($eq($_.barcode, "")) { //#30925 + $k[$j++] = 'bwipp.hibcpdf417EmptyData#30924'; //#30924 + $k[$j++] = "The data must not be empty"; //#30924 + bwipp_raiseerror(); //#30924 + } //#30924 + bwipp_loadctx(bwipp_hibcpdf417) //#30927 + if (!bwipp_hibcpdf417.__30934__) { //#30934 + $_ = Object.create($_); //#30934 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30931 + $_.charvals = new Map; //#30932 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30933 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30933 + } //#30933 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30933 + bwipp_hibcpdf417.__30934__ = 1; //#30933 + $_ = Object.getPrototypeOf($_); //#30933 + } //#30933 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30941 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30938 + if (!_E) { //#30940 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30939'; //#30939 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30939 + bwipp_raiseerror(); //#30939 + } //#30939 + } //#30939 + $k[$j++] = 'barlen'; //#30943 + $k[$j++] = $_.barcode.length; //#30943 + if ($_.validatecheck) { //#30943 + var _H = $k[--$j]; //#30943 + $k[$j++] = $f(_H - 1); //#30943 + } //#30943 + var _I = $k[--$j]; //#30943 + $_[$k[--$j]] = _I; //#30943 + $_.checksum = 41; //#30945 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30949 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30948 + } //#30948 + $_.checksum = $_.checksum % 43; //#30950 + if ($_.validatecheck) { //#30956 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30954 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30953'; //#30953 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30953 + bwipp_raiseerror(); //#30953 + } //#30953 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30955 + } //#30955 + var _e = $s($f($_.barlen + 2)); //#30958 + $puti(_e, 1, $_.barcode); //#30958 + $_.barcode = _e; //#30958 + $put($_.barcode, 0, 43); //#30959 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30960 + $put($_.options, "dontdraw", true); //#30963 + $put($_.options, "columns", $_.columns); //#30964 + var _p = $_.options; //#30965 + $put(_p, "validatecheck", false); //#30965 + var _r = $_.options; //#30966 + $k[$j++] = 'args'; //#30966 + $k[$j++] = $_.barcode; //#30966 + $k[$j++] = _r; //#30966 + bwipp_pdf417(); //#30966 + var _s = $k[--$j]; //#30966 + $_[$k[--$j]] = _s; //#30966 + $put($_.args, "opt", $_.options); //#30968 + $k[$j++] = $_.args; //#30971 + if (!$_.dontdraw) { //#30971 + bwipp_renmatrix(); //#30971 + } //#30971 + $_ = Object.getPrototypeOf($_); //#30973 + $_ = Object.getPrototypeOf($_); //#30975 +} //bwipp_hibcpdf417 function bwipp_hibcmicropdf417() { - $_ = Object.create($_); //#30665 - $_.dontdraw = false; //#30668 - $_.columns = 2; //#30669 - $_.validatecheck = false; //#30670 - $k[$j++] = $_; //#30672 - bwipp_processoptions(); //#30672 - $_.options = $k[--$j]; //#30672 - $_.barcode = $k[--$j]; //#30673 - bwipp_loadctx(bwipp_hibcmicropdf417) //#30675 - if (!bwipp_hibcmicropdf417.__30682__) { //#30682 - $_ = Object.create($_); //#30682 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30679 - $_.charvals = new Map; //#30680 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30681 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30681 - } //#30681 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#30681 - bwipp_hibcmicropdf417.__30682__ = 1; //#30681 - $_ = Object.getPrototypeOf($_); //#30681 - } //#30681 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30689 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30686 - if (!_D) { //#30688 - $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#30687'; //#30687 - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30687 - bwipp_raiseerror(); //#30687 - } //#30687 - } //#30687 - $k[$j++] = 'barlen'; //#30691 - $k[$j++] = $_.barcode.length; //#30691 - if ($_.validatecheck) { //#30691 - var _G = $k[--$j]; //#30691 - $k[$j++] = $f(_G - 1); //#30691 - } //#30691 - var _H = $k[--$j]; //#30691 - $_[$k[--$j]] = _H; //#30691 - $_.checksum = 41; //#30693 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30697 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30696 - } //#30696 - $_.checksum = $_.checksum % 43; //#30698 - if ($_.validatecheck) { //#30704 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30702 - $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#30701'; //#30701 - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#30701 - bwipp_raiseerror(); //#30701 - } //#30701 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30703 - } //#30703 - var _d = $s($f($_.barlen + 2)); //#30706 - $puti(_d, 1, $_.barcode); //#30706 - $_.barcode = _d; //#30706 - $put($_.barcode, 0, 43); //#30707 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30708 - $put($_.options, "dontdraw", true); //#30711 - var _m = $_.options; //#30712 - $put(_m, "columns", $_.columns); //#30712 - $put($_.options, "validatecheck", false); //#30713 - $k[$j++] = 'args'; //#30714 - $k[$j++] = $_.barcode; //#30714 - $k[$j++] = $_.options; //#30714 - bwipp_micropdf417(); //#30714 - var _r = $k[--$j]; //#30714 - $_[$k[--$j]] = _r; //#30714 - $put($_.args, "opt", $_.options); //#30716 - $k[$j++] = $_.args; //#30719 - if (!$_.dontdraw) { //#30719 - bwipp_renmatrix(); //#30719 - } //#30719 - $_ = Object.getPrototypeOf($_); //#30721 - $_ = Object.getPrototypeOf($_); //#30723 -} - + $_ = Object.create($_); //#31006 + $_.dontdraw = false; //#31009 + $_.columns = 2; //#31010 + $_.validatecheck = false; //#31011 + $k[$j++] = $_; //#31013 + bwipp_processoptions(); //#31013 + $_.options = $k[--$j]; //#31013 + $_.barcode = $k[--$j]; //#31014 + if ($eq($_.barcode, "")) { //#31018 + $k[$j++] = 'bwipp.hibcmicropdf417EmptyData#31017'; //#31017 + $k[$j++] = "The data must not be empty"; //#31017 + bwipp_raiseerror(); //#31017 + } //#31017 + bwipp_loadctx(bwipp_hibcmicropdf417) //#31020 + if (!bwipp_hibcmicropdf417.__31027__) { //#31027 + $_ = Object.create($_); //#31027 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31024 + $_.charvals = new Map; //#31025 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31026 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31026 + } //#31026 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#31026 + bwipp_hibcmicropdf417.__31027__ = 1; //#31026 + $_ = Object.getPrototypeOf($_); //#31026 + } //#31026 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31034 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31031 + if (!_E) { //#31033 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#31032'; //#31032 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31032 + bwipp_raiseerror(); //#31032 + } //#31032 + } //#31032 + $k[$j++] = 'barlen'; //#31036 + $k[$j++] = $_.barcode.length; //#31036 + if ($_.validatecheck) { //#31036 + var _H = $k[--$j]; //#31036 + $k[$j++] = $f(_H - 1); //#31036 + } //#31036 + var _I = $k[--$j]; //#31036 + $_[$k[--$j]] = _I; //#31036 + $_.checksum = 41; //#31038 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31042 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31041 + } //#31041 + $_.checksum = $_.checksum % 43; //#31043 + if ($_.validatecheck) { //#31049 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31047 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#31046'; //#31046 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#31046 + bwipp_raiseerror(); //#31046 + } //#31046 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31048 + } //#31048 + var _e = $s($f($_.barlen + 2)); //#31051 + $puti(_e, 1, $_.barcode); //#31051 + $_.barcode = _e; //#31051 + $put($_.barcode, 0, 43); //#31052 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31053 + var _m = $_.options; //#31056 + $put(_m, "dontdraw", true); //#31056 + $put($_.options, "columns", $_.columns); //#31057 + $put($_.options, "validatecheck", false); //#31058 + var _r = $_.options; //#31059 + $k[$j++] = 'args'; //#31059 + $k[$j++] = $_.barcode; //#31059 + $k[$j++] = _r; //#31059 + bwipp_micropdf417(); //#31059 + var _s = $k[--$j]; //#31059 + $_[$k[--$j]] = _s; //#31059 + $put($_.args, "opt", $_.options); //#31061 + $k[$j++] = $_.args; //#31064 + if (!$_.dontdraw) { //#31064 + bwipp_renmatrix(); //#31064 + } //#31064 + $_ = Object.getPrototypeOf($_); //#31066 + $_ = Object.getPrototypeOf($_); //#31068 +} //bwipp_hibcmicropdf417 function bwipp_hibcqrcode() { - $_ = Object.create($_); //#30754 - $_.dontdraw = false; //#30757 - $_.validatecheck = false; //#30758 - $k[$j++] = $_; //#30760 - bwipp_processoptions(); //#30760 - $_.options = $k[--$j]; //#30760 - $_.barcode = $k[--$j]; //#30761 - bwipp_loadctx(bwipp_hibcqrcode) //#30763 - if (!bwipp_hibcqrcode.__30770__) { //#30770 - $_ = Object.create($_); //#30770 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30767 - $_.charvals = new Map; //#30768 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30769 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30769 - } //#30769 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#30769 - bwipp_hibcqrcode.__30770__ = 1; //#30769 - $_ = Object.getPrototypeOf($_); //#30769 - } //#30769 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30777 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30774 - if (!_D) { //#30776 - $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#30775'; //#30775 - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30775 - bwipp_raiseerror(); //#30775 - } //#30775 - } //#30775 - $k[$j++] = 'barlen'; //#30779 - $k[$j++] = $_.barcode.length; //#30779 - if ($_.validatecheck) { //#30779 - var _G = $k[--$j]; //#30779 - $k[$j++] = $f(_G - 1); //#30779 - } //#30779 - var _H = $k[--$j]; //#30779 - $_[$k[--$j]] = _H; //#30779 - $_.checksum = 41; //#30781 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30785 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30784 - } //#30784 - $_.checksum = $_.checksum % 43; //#30786 - if ($_.validatecheck) { //#30792 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30790 - $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#30789'; //#30789 - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#30789 - bwipp_raiseerror(); //#30789 - } //#30789 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30791 - } //#30791 - var _d = $s($f($_.barlen + 2)); //#30794 - $puti(_d, 1, $_.barcode); //#30794 - $_.barcode = _d; //#30794 - $put($_.barcode, 0, 43); //#30795 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30796 - $put($_.options, "dontdraw", true); //#30799 - $put($_.options, "validatecheck", false); //#30800 - $k[$j++] = 'args'; //#30801 - $k[$j++] = $_.barcode; //#30801 - $k[$j++] = $_.options; //#30801 - bwipp_qrcode(); //#30801 - var _p = $k[--$j]; //#30801 - $_[$k[--$j]] = _p; //#30801 - var _r = $_.args; //#30803 - $put(_r, "opt", $_.options); //#30803 - $k[$j++] = $_.args; //#30806 - if (!$_.dontdraw) { //#30806 - bwipp_renmatrix(); //#30806 - } //#30806 - $_ = Object.getPrototypeOf($_); //#30808 - $_ = Object.getPrototypeOf($_); //#30810 -} - + $_ = Object.create($_); //#31099 + $_.dontdraw = false; //#31102 + $_.validatecheck = false; //#31103 + $k[$j++] = $_; //#31105 + bwipp_processoptions(); //#31105 + $_.options = $k[--$j]; //#31105 + $_.barcode = $k[--$j]; //#31106 + if ($eq($_.barcode, "")) { //#31110 + $k[$j++] = 'bwipp.hibcqrcodeEmptyData#31109'; //#31109 + $k[$j++] = "The data must not be empty"; //#31109 + bwipp_raiseerror(); //#31109 + } //#31109 + bwipp_loadctx(bwipp_hibcqrcode) //#31112 + if (!bwipp_hibcqrcode.__31119__) { //#31119 + $_ = Object.create($_); //#31119 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31116 + $_.charvals = new Map; //#31117 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31118 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31118 + } //#31118 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#31118 + bwipp_hibcqrcode.__31119__ = 1; //#31118 + $_ = Object.getPrototypeOf($_); //#31118 + } //#31118 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31126 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31123 + if (!_E) { //#31125 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#31124'; //#31124 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31124 + bwipp_raiseerror(); //#31124 + } //#31124 + } //#31124 + $k[$j++] = 'barlen'; //#31128 + $k[$j++] = $_.barcode.length; //#31128 + if ($_.validatecheck) { //#31128 + var _H = $k[--$j]; //#31128 + $k[$j++] = $f(_H - 1); //#31128 + } //#31128 + var _I = $k[--$j]; //#31128 + $_[$k[--$j]] = _I; //#31128 + $_.checksum = 41; //#31130 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31134 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31133 + } //#31133 + $_.checksum = $_.checksum % 43; //#31135 + if ($_.validatecheck) { //#31141 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31139 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#31138'; //#31138 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#31138 + bwipp_raiseerror(); //#31138 + } //#31138 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31140 + } //#31140 + var _e = $s($f($_.barlen + 2)); //#31143 + $puti(_e, 1, $_.barcode); //#31143 + $_.barcode = _e; //#31143 + $put($_.barcode, 0, 43); //#31144 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31145 + $put($_.options, "dontdraw", true); //#31148 + $put($_.options, "validatecheck", false); //#31149 + $k[$j++] = 'args'; //#31150 + $k[$j++] = $_.barcode; //#31150 + $k[$j++] = $_.options; //#31150 + bwipp_qrcode(); //#31150 + var _q = $k[--$j]; //#31150 + var _r = $k[--$j]; //#31150 + $_[_r] = _q; //#31150 + $put($_.args, "opt", $_.options); //#31152 + $k[$j++] = $_.args; //#31155 + if (!$_.dontdraw) { //#31155 + bwipp_renmatrix(); //#31155 + } //#31155 + $_ = Object.getPrototypeOf($_); //#31157 + $_ = Object.getPrototypeOf($_); //#31159 +} //bwipp_hibcqrcode function bwipp_hibccodablockf() { - $_ = Object.create($_); //#30841 - $_.dontdraw = false; //#30844 - $_.validatecheck = false; //#30845 - $k[$j++] = $_; //#30847 - bwipp_processoptions(); //#30847 - $_.options = $k[--$j]; //#30847 - $_.barcode = $k[--$j]; //#30848 - bwipp_loadctx(bwipp_hibccodablockf) //#30850 - if (!bwipp_hibccodablockf.__30857__) { //#30857 - $_ = Object.create($_); //#30857 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30854 - $_.charvals = new Map; //#30855 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30856 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30856 - } //#30856 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#30856 - bwipp_hibccodablockf.__30857__ = 1; //#30856 - $_ = Object.getPrototypeOf($_); //#30856 - } //#30856 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30864 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30861 - if (!_D) { //#30863 - $k[$j++] = 'bwipp.codablockfBadCharacter#30862'; //#30862 - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30862 - bwipp_raiseerror(); //#30862 - } //#30862 - } //#30862 - $k[$j++] = 'barlen'; //#30866 - $k[$j++] = $_.barcode.length; //#30866 - if ($_.validatecheck) { //#30866 - var _G = $k[--$j]; //#30866 - $k[$j++] = $f(_G - 1); //#30866 - } //#30866 - var _H = $k[--$j]; //#30866 - $_[$k[--$j]] = _H; //#30866 - $_.checksum = 41; //#30868 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30872 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30871 - } //#30871 - $_.checksum = $_.checksum % 43; //#30873 - if ($_.validatecheck) { //#30879 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30877 - $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#30876'; //#30876 - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#30876 - bwipp_raiseerror(); //#30876 - } //#30876 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30878 - } //#30878 - var _c = $_.barlen; //#30881 - var _d = $s($f(_c + 2)); //#30881 - $puti(_d, 1, $_.barcode); //#30881 - $_.barcode = _d; //#30881 - $put($_.barcode, 0, 43); //#30882 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30883 - $put($_.options, "dontdraw", true); //#30886 - $put($_.options, "validatecheck", false); //#30887 - $k[$j++] = 'args'; //#30888 - $k[$j++] = $_.barcode; //#30888 - $k[$j++] = $_.options; //#30888 - bwipp_codablockf(); //#30888 - var _p = $k[--$j]; //#30888 - $_[$k[--$j]] = _p; //#30888 - var _r = $_.args; //#30890 - $put(_r, "opt", $_.options); //#30890 - $k[$j++] = $_.args; //#30893 - if (!$_.dontdraw) { //#30893 - bwipp_renmatrix(); //#30893 - } //#30893 - $_ = Object.getPrototypeOf($_); //#30895 - $_ = Object.getPrototypeOf($_); //#30897 -} - + $_ = Object.create($_); //#31190 + $_.dontdraw = false; //#31193 + $_.validatecheck = false; //#31194 + $k[$j++] = $_; //#31196 + bwipp_processoptions(); //#31196 + $_.options = $k[--$j]; //#31196 + $_.barcode = $k[--$j]; //#31197 + if ($eq($_.barcode, "")) { //#31201 + $k[$j++] = 'bwipp.hibccodablockfEmptyData#31200'; //#31200 + $k[$j++] = "The data must not be empty"; //#31200 + bwipp_raiseerror(); //#31200 + } //#31200 + bwipp_loadctx(bwipp_hibccodablockf) //#31203 + if (!bwipp_hibccodablockf.__31210__) { //#31210 + $_ = Object.create($_); //#31210 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31207 + $_.charvals = new Map; //#31208 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31209 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31209 + } //#31209 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#31209 + bwipp_hibccodablockf.__31210__ = 1; //#31209 + $_ = Object.getPrototypeOf($_); //#31209 + } //#31209 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31217 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31214 + if (!_E) { //#31216 + $k[$j++] = 'bwipp.hibccodablockfBadCharacter#31215'; //#31215 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31215 + bwipp_raiseerror(); //#31215 + } //#31215 + } //#31215 + $k[$j++] = 'barlen'; //#31219 + $k[$j++] = $_.barcode.length; //#31219 + if ($_.validatecheck) { //#31219 + var _H = $k[--$j]; //#31219 + $k[$j++] = $f(_H - 1); //#31219 + } //#31219 + var _I = $k[--$j]; //#31219 + $_[$k[--$j]] = _I; //#31219 + $_.checksum = 41; //#31221 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31225 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31224 + } //#31224 + $_.checksum = $_.checksum % 43; //#31226 + if ($_.validatecheck) { //#31232 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31230 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#31229'; //#31229 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#31229 + bwipp_raiseerror(); //#31229 + } //#31229 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31231 + } //#31231 + var _e = $s($f($_.barlen + 2)); //#31234 + $puti(_e, 1, $_.barcode); //#31234 + $_.barcode = _e; //#31234 + $put($_.barcode, 0, 43); //#31235 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31236 + $put($_.options, "dontdraw", true); //#31239 + $put($_.options, "validatecheck", false); //#31240 + $k[$j++] = 'args'; //#31241 + $k[$j++] = $_.barcode; //#31241 + $k[$j++] = $_.options; //#31241 + bwipp_codablockf(); //#31241 + var _q = $k[--$j]; //#31241 + var _r = $k[--$j]; //#31241 + $_[_r] = _q; //#31241 + $put($_.args, "opt", $_.options); //#31243 + $k[$j++] = $_.args; //#31246 + if (!$_.dontdraw) { //#31246 + bwipp_renmatrix(); //#31246 + } //#31246 + $_ = Object.getPrototypeOf($_); //#31248 + $_ = Object.getPrototypeOf($_); //#31250 +} //bwipp_hibccodablockf function bwipp_hibcazteccode() { - $_ = Object.create($_); //#30928 - $_.dontdraw = false; //#30931 - $_.validatecheck = false; //#30932 - $k[$j++] = $_; //#30934 - bwipp_processoptions(); //#30934 - $_.options = $k[--$j]; //#30934 - $_.barcode = $k[--$j]; //#30935 - bwipp_loadctx(bwipp_hibcazteccode) //#30937 - if (!bwipp_hibcazteccode.__30944__) { //#30944 - $_ = Object.create($_); //#30944 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30941 - $_.charvals = new Map; //#30942 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30943 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30943 - } //#30943 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#30943 - bwipp_hibcazteccode.__30944__ = 1; //#30943 - $_ = Object.getPrototypeOf($_); //#30943 - } //#30943 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30951 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30948 - if (!_D) { //#30950 - $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#30949'; //#30949 - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30949 - bwipp_raiseerror(); //#30949 - } //#30949 - } //#30949 - $k[$j++] = 'barlen'; //#30953 - $k[$j++] = $_.barcode.length; //#30953 - if ($_.validatecheck) { //#30953 - var _G = $k[--$j]; //#30953 - $k[$j++] = $f(_G - 1); //#30953 - } //#30953 - var _H = $k[--$j]; //#30953 - $_[$k[--$j]] = _H; //#30953 - $_.checksum = 41; //#30955 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30959 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30958 - } //#30958 - $_.checksum = $_.checksum % 43; //#30960 - if ($_.validatecheck) { //#30966 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30964 - $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#30963'; //#30963 - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#30963 - bwipp_raiseerror(); //#30963 - } //#30963 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30965 - } //#30965 - var _d = $s($f($_.barlen + 2)); //#30968 - $puti(_d, 1, $_.barcode); //#30968 - $_.barcode = _d; //#30968 - $put($_.barcode, 0, 43); //#30969 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30970 - $put($_.options, "dontdraw", true); //#30973 - $put($_.options, "validatecheck", false); //#30974 - $k[$j++] = 'args'; //#30975 - $k[$j++] = $_.barcode; //#30975 - $k[$j++] = $_.options; //#30975 - bwipp_azteccode(); //#30975 - var _p = $k[--$j]; //#30975 - $_[$k[--$j]] = _p; //#30975 - var _r = $_.args; //#30977 - $put(_r, "opt", $_.options); //#30977 - $k[$j++] = $_.args; //#30980 - if (!$_.dontdraw) { //#30980 - bwipp_renmatrix(); //#30980 - } //#30980 - $_ = Object.getPrototypeOf($_); //#30982 - $_ = Object.getPrototypeOf($_); //#30984 -} - + $_ = Object.create($_); //#31281 + $_.dontdraw = false; //#31284 + $_.validatecheck = false; //#31285 + $k[$j++] = $_; //#31287 + bwipp_processoptions(); //#31287 + $_.options = $k[--$j]; //#31287 + $_.barcode = $k[--$j]; //#31288 + if ($eq($_.barcode, "")) { //#31292 + $k[$j++] = 'bwipp.hibcazteccodeEmptyData#31291'; //#31291 + $k[$j++] = "The data must not be empty"; //#31291 + bwipp_raiseerror(); //#31291 + } //#31291 + bwipp_loadctx(bwipp_hibcazteccode) //#31294 + if (!bwipp_hibcazteccode.__31301__) { //#31301 + $_ = Object.create($_); //#31301 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31298 + $_.charvals = new Map; //#31299 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31300 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31300 + } //#31300 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#31300 + bwipp_hibcazteccode.__31301__ = 1; //#31300 + $_ = Object.getPrototypeOf($_); //#31300 + } //#31300 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31308 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31305 + if (!_E) { //#31307 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#31306'; //#31306 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31306 + bwipp_raiseerror(); //#31306 + } //#31306 + } //#31306 + $k[$j++] = 'barlen'; //#31310 + $k[$j++] = $_.barcode.length; //#31310 + if ($_.validatecheck) { //#31310 + var _H = $k[--$j]; //#31310 + $k[$j++] = $f(_H - 1); //#31310 + } //#31310 + var _I = $k[--$j]; //#31310 + $_[$k[--$j]] = _I; //#31310 + $_.checksum = 41; //#31312 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31316 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31315 + } //#31315 + $_.checksum = $_.checksum % 43; //#31317 + if ($_.validatecheck) { //#31323 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31321 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#31320'; //#31320 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#31320 + bwipp_raiseerror(); //#31320 + } //#31320 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31322 + } //#31322 + var _e = $s($f($_.barlen + 2)); //#31325 + $puti(_e, 1, $_.barcode); //#31325 + $_.barcode = _e; //#31325 + $put($_.barcode, 0, 43); //#31326 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31327 + $put($_.options, "dontdraw", true); //#31330 + $put($_.options, "validatecheck", false); //#31331 + $k[$j++] = 'args'; //#31332 + $k[$j++] = $_.barcode; //#31332 + $k[$j++] = $_.options; //#31332 + bwipp_azteccode(); //#31332 + var _q = $k[--$j]; //#31332 + var _r = $k[--$j]; //#31332 + $_[_r] = _q; //#31332 + $put($_.args, "opt", $_.options); //#31334 + $k[$j++] = $_.args; //#31337 + if (!$_.dontdraw) { //#31337 + bwipp_renmatrix(); //#31337 + } //#31337 + $_ = Object.getPrototypeOf($_); //#31339 + $_ = Object.getPrototypeOf($_); //#31341 +} //bwipp_hibcazteccode function bwipp_channelcode() { - $_ = Object.create($_); //#31012 - $_.options = $k[--$j]; //#31014 - $_.barcode = $k[--$j]; //#31015 - $_.dontdraw = false; //#31017 - $_.shortfinder = false; //#31018 - $_.includetext = false; //#31019 - $_.includecheck = false; //#31020 - $_.height = 1; //#31021 - $forall($_.options, function() { //#31032 - var _3 = $k[--$j]; //#31032 - $_[$k[--$j]] = _3; //#31032 - }); //#31032 - $_.height = +$_.height; //#31034 - if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31039 - $k[$j++] = 'bwipp.channelcodeBadLength#31038'; //#31038 - $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31038 - bwipp_raiseerror(); //#31038 - } //#31038 - $forall($_.barcode, function() { //#31044 - var _9 = $k[--$j]; //#31041 - if ((_9 < 48) || (_9 > 57)) { //#31043 - $k[$j++] = 'bwipp.channelcodeBadCharacter#31042'; //#31042 - $k[$j++] = "Channel Code must contain only digits"; //#31042 - bwipp_raiseerror(); //#31042 - } //#31042 - }); //#31042 - if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31047 - $k[$j++] = 'bwipp.channelcodeTooBig#31046'; //#31046 - $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31046 - bwipp_raiseerror(); //#31046 - } //#31046 + $_ = Object.create($_); //#31369 + $_.options = $k[--$j]; //#31371 + $_.barcode = $k[--$j]; //#31372 + $_.dontdraw = false; //#31374 + $_.shortfinder = false; //#31375 + $_.includetext = false; //#31376 + $_.includecheck = false; //#31377 + $_.height = 1; //#31378 + $forall($_.options, function() { //#31389 + var _3 = $k[--$j]; //#31389 + $_[$k[--$j]] = _3; //#31389 + }); //#31389 + $_.height = +$_.height; //#31391 + if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31396 + $k[$j++] = 'bwipp.channelcodeBadLength#31395'; //#31395 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31395 + bwipp_raiseerror(); //#31395 + } //#31395 + $forall($_.barcode, function() { //#31401 + var _9 = $k[--$j]; //#31398 + if ((_9 < 48) || (_9 > 57)) { //#31400 + $k[$j++] = 'bwipp.channelcodeBadCharacter#31399'; //#31399 + $k[$j++] = "Channel Code must contain only digits"; //#31399 + bwipp_raiseerror(); //#31399 + } //#31399 + }); //#31399 + if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31404 + $k[$j++] = 'bwipp.channelcodeTooBig#31403'; //#31403 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31403 + bwipp_raiseerror(); //#31403 + } //#31403 $_.nextb = function() { - var _E = $k[--$j]; //#31050 - var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31055 - $k[$j++] = _E; //#31071 - $k[$j++] = _N; //#31071 - if (_E < $f($_.chan + 2)) { //#31069 - var _P = $k[--$j]; //#31057 - var _Q = $k[--$j]; //#31057 - var _R = $k[--$j]; //#31057 - $k[$j++] = _R; //#31060 - $k[$j++] = _Q; //#31060 - $k[$j++] = _P; //#31060 - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31060 - var _V = $k[--$j]; //#31058 - var _W = $k[--$j]; //#31058 - $put($_.b, _W, _T); //#31058 - var _X = $k[--$j]; //#31059 - var _Y = $k[--$j]; //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = _X; //#31059 - $k[$j++] = _W; //#31059 - $k[$j++] = _V; //#31059 - $k[$j++] = $f($f(_X - _T) + 1); //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = $f(_W + 1); //#31059 - $_.nexts(); //#31059 - } //#31059 - } else { //#31069 - var _Z = $k[--$j]; //#31062 - var _a = $k[--$j]; //#31062 - var _b = $k[--$j]; //#31062 - $k[$j++] = _b; //#31070 - $k[$j++] = _a; //#31070 - $k[$j++] = _Z; //#31070 - if ($le(_Z, _b)) { //#31070 - var _d = $k[--$j]; //#31063 - var _e = $k[--$j]; //#31063 - var _f = $k[--$j]; //#31063 - $put($_.b, _e, _f); //#31063 - $k[$j++] = _f; //#31068 - $k[$j++] = _e; //#31068 - $k[$j++] = _d; //#31068 - if ($_.value == $_.target) { //#31068 - $k[$j++] = Infinity; //#31066 - for (var _i = 3; _i <= 10; _i += 1) { //#31066 - $k[$j++] = $get($_.s, _i); //#31066 - $k[$j++] = $get($_.b, _i); //#31066 - } //#31066 - $_.out = $geti($a(), 0, $_.chan * 2); //#31067 - } //#31067 - $_.value = $_.value + 1; //#31069 - } //#31069 - } //#31069 - $j -= 4; //#31072 - }; //#31073 + var _E = $k[--$j]; //#31407 + var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31412 + $k[$j++] = _E; //#31428 + $k[$j++] = _N; //#31428 + if (_E < $f($_.chan + 2)) { //#31426 + var _P = $k[--$j]; //#31414 + var _Q = $k[--$j]; //#31414 + var _R = $k[--$j]; //#31414 + $k[$j++] = _R; //#31417 + $k[$j++] = _Q; //#31417 + $k[$j++] = _P; //#31417 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31417 + var _V = $k[--$j]; //#31415 + var _W = $k[--$j]; //#31415 + $put($_.b, _W, _T); //#31415 + var _X = $k[--$j]; //#31416 + var _Y = $k[--$j]; //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = _X; //#31416 + $k[$j++] = _W; //#31416 + $k[$j++] = _V; //#31416 + $k[$j++] = $f($f(_X - _T) + 1); //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = $f(_W + 1); //#31416 + $_.nexts(); //#31416 + } //#31416 + } else { //#31426 + var _Z = $k[--$j]; //#31419 + var _a = $k[--$j]; //#31419 + var _b = $k[--$j]; //#31419 + $k[$j++] = _b; //#31427 + $k[$j++] = _a; //#31427 + $k[$j++] = _Z; //#31427 + if ($le(_Z, _b)) { //#31427 + var _d = $k[--$j]; //#31420 + var _e = $k[--$j]; //#31420 + var _f = $k[--$j]; //#31420 + $put($_.b, _e, _f); //#31420 + $k[$j++] = _f; //#31425 + $k[$j++] = _e; //#31425 + $k[$j++] = _d; //#31425 + if ($_.value == $_.target) { //#31425 + $k[$j++] = Infinity; //#31422 + for (var _i = 3; _i <= 10; _i += 1) { //#31423 + $k[$j++] = $get($_.s, _i); //#31423 + $k[$j++] = $get($_.b, _i); //#31423 + } //#31423 + $_.out = $geti($a(), 0, $_.chan * 2); //#31424 + } //#31424 + $_.value = $_.value + 1; //#31426 + } //#31426 + } //#31426 + $j -= 4; //#31429 + }; //#31430 $_.nexts = function() { - var _r = $k[--$j]; //#31076 - $k[$j++] = _r; //#31076 - if (_r < $f($_.chan + 2)) { //#31076 - $k[$j++] = 1; //#31076 - } else { //#31076 - var _t = $k[--$j]; //#31076 - var _u = $k[--$j]; //#31076 - $k[$j++] = _u; //#31076 - $k[$j++] = _t; //#31076 - $k[$j++] = _u; //#31076 - } //#31076 - var _v = $k[--$j]; //#31076 - var _w = $k[--$j]; //#31076 - var _x = $k[--$j]; //#31076 - $k[$j++] = _x; //#31079 - $k[$j++] = _w; //#31079 - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31079 - var _11 = $k[--$j]; //#31077 - $put($_.s, _11, _z); //#31077 - var _12 = $k[--$j]; //#31078 - var _13 = $k[--$j]; //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _12; //#31078 - $k[$j++] = _11; //#31078 - $k[$j++] = $f($f(_12 - _z) + 1); //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _11; //#31078 - $_.nextb(); //#31078 - } //#31078 - $j -= 3; //#31080 - }; //#31081 + var _r = $k[--$j]; //#31433 + $k[$j++] = _r; //#31433 + if (_r < $f($_.chan + 2)) { //#31433 + $k[$j++] = 1; //#31433 + } else { //#31433 + var _t = $k[--$j]; //#31433 + var _u = $k[--$j]; //#31433 + $k[$j++] = _u; //#31433 + $k[$j++] = _t; //#31433 + $k[$j++] = _u; //#31433 + } //#31433 + var _v = $k[--$j]; //#31433 + var _w = $k[--$j]; //#31433 + var _x = $k[--$j]; //#31433 + $k[$j++] = _x; //#31436 + $k[$j++] = _w; //#31436 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31436 + var _11 = $k[--$j]; //#31434 + $put($_.s, _11, _z); //#31434 + var _12 = $k[--$j]; //#31435 + var _13 = $k[--$j]; //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _12; //#31435 + $k[$j++] = _11; //#31435 + $k[$j++] = $f($f(_12 - _z) + 1); //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _11; //#31435 + $_.nextb(); //#31435 + } //#31435 + $j -= 3; //#31437 + }; //#31438 $_.encode = function() { - $_.chan = $k[--$j]; //#31084 - $_.target = $k[--$j]; //#31085 - $_.value = 0; //#31086 - $_.out = -1; //#31087 - $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31088 - $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31089 - var _18 = $_.chan; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = 3; //#31090 - $_.nexts(); //#31090 - $k[$j++] = $_.out; //#31091 - }; //#31092 - $_.barlen = $_.barcode.length; //#31094 - $k[$j++] = 'finder'; //#31097 - if ($_.shortfinder) { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1]); //#31097 - } else { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31097 - } //#31097 - var _1E = $k[--$j]; //#31097 - $_[$k[--$j]] = _1E; //#31097 - $k[$j++] = 'data'; //#31100 - $k[$j++] = $cvi($_.barcode); //#31100 - $k[$j++] = $_.barlen + 1; //#31100 - $_.encode(); //#31100 - var _1I = $k[--$j]; //#31100 - $_[$k[--$j]] = _1I; //#31100 - $_.check = $a([]); //#31103 - if ($_.includecheck) { //#31119 - $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31113 - $k[$j++] = 0; //#31117 - for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31117 - var _1e = $k[--$j]; //#31116 - $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31116 - } //#31116 - var _1f = $k[--$j]; //#31118 - $k[$j++] = _1f % 23; //#31118 - $k[$j++] = 3; //#31118 - $_.encode(); //#31118 - $_.check = $k[--$j]; //#31118 - } //#31118 - $k[$j++] = Infinity; //#31125 - $aload($_.finder); //#31123 - $aload($_.data); //#31124 - $aload($_.check); //#31125 - $_.sbs = $a(); //#31125 - $_.txt = $a($_.barlen); //#31129 - for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31133 - $_.i = _1p; //#31131 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31132 - } //#31132 - $k[$j++] = Infinity; //#31143 - var _1w = $_.sbs; //#31138 - $k[$j++] = Infinity; //#31139 - for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31139 - $k[$j++] = $_.height; //#31139 - } //#31139 - var _21 = $a(); //#31139 - $k[$j++] = Infinity; //#31140 - for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31140 - $k[$j++] = 0; //#31140 - } //#31140 - var _25 = $a(); //#31140 - $k[$j++] = 'ren'; //#31143 - $k[$j++] = bwipp_renlinear; //#31143 - $k[$j++] = 'sbs'; //#31143 - $k[$j++] = _1w; //#31143 - $k[$j++] = 'bhs'; //#31143 - $k[$j++] = _21; //#31143 - $k[$j++] = 'bbs'; //#31143 - $k[$j++] = _25; //#31143 - $k[$j++] = 'txt'; //#31143 - $k[$j++] = $_.txt; //#31143 - $k[$j++] = 'textxalign'; //#31143 - $k[$j++] = "center"; //#31143 - $k[$j++] = 'opt'; //#31143 - $k[$j++] = $_.options; //#31143 - var _28 = $d(); //#31143 - $k[$j++] = _28; //#31146 - if (!$_.dontdraw) { //#31146 - bwipp_renlinear(); //#31146 - } //#31146 - $_ = Object.getPrototypeOf($_); //#31148 -} - + $_.chan = $k[--$j]; //#31441 + $_.target = $k[--$j]; //#31442 + $_.value = 0; //#31443 + $_.out = -1; //#31444 + $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31445 + $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31446 + var _18 = $_.chan; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = 3; //#31447 + $_.nexts(); //#31447 + $k[$j++] = $_.out; //#31448 + }; //#31449 + $_.barlen = $_.barcode.length; //#31451 + $k[$j++] = 'finder'; //#31454 + if ($_.shortfinder) { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#31454 + } else { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31454 + } //#31454 + var _1E = $k[--$j]; //#31454 + $_[$k[--$j]] = _1E; //#31454 + $k[$j++] = 'data'; //#31457 + $k[$j++] = $cvi($_.barcode); //#31457 + $k[$j++] = $_.barlen + 1; //#31457 + $_.encode(); //#31457 + var _1I = $k[--$j]; //#31457 + $_[$k[--$j]] = _1I; //#31457 + $_.check = $a([]); //#31460 + if ($_.includecheck) { //#31476 + $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31470 + $k[$j++] = 0; //#31474 + for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31474 + var _1e = $k[--$j]; //#31473 + $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31473 + } //#31473 + var _1f = $k[--$j]; //#31475 + $k[$j++] = _1f % 23; //#31475 + $k[$j++] = 3; //#31475 + $_.encode(); //#31475 + $_.check = $k[--$j]; //#31475 + } //#31475 + $k[$j++] = Infinity; //#31479 + $aload($_.finder); //#31480 + $aload($_.data); //#31481 + $aload($_.check); //#31482 + $_.sbs = $a(); //#31482 + $_.txt = $a($_.barlen); //#31486 + for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31490 + $_.i = _1p; //#31488 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31489 + } //#31489 + $k[$j++] = Infinity; //#31493 + var _1w = $_.sbs; //#31495 + $k[$j++] = Infinity; //#31496 + for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31496 + $k[$j++] = $_.height; //#31496 + } //#31496 + var _21 = $a(); //#31496 + $k[$j++] = Infinity; //#31497 + for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31497 + $k[$j++] = 0; //#31497 + } //#31497 + var _25 = $a(); //#31497 + $k[$j++] = 'ren'; //#31500 + $k[$j++] = bwipp_renlinear; //#31500 + $k[$j++] = 'sbs'; //#31500 + $k[$j++] = _1w; //#31500 + $k[$j++] = 'bhs'; //#31500 + $k[$j++] = _21; //#31500 + $k[$j++] = 'bbs'; //#31500 + $k[$j++] = _25; //#31500 + $k[$j++] = 'txt'; //#31500 + $k[$j++] = $_.txt; //#31500 + $k[$j++] = 'textxalign'; //#31500 + $k[$j++] = "center"; //#31500 + $k[$j++] = 'opt'; //#31500 + $k[$j++] = $_.options; //#31500 + var _28 = $d(); //#31500 + $k[$j++] = _28; //#31503 + if (!$_.dontdraw) { //#31503 + bwipp_renlinear(); //#31503 + } //#31503 + $_ = Object.getPrototypeOf($_); //#31505 +} //bwipp_channelcode function bwipp_renlinear() { - if ($_.bwipjs_dontdraw) { //#31176 - return; //#31176 - } //#31176 - $_ = Object.create($_); //#31177 - $_.args = $k[--$j]; //#31179 - $_.sbs = $a([]); //#31182 - $_.bhs = $a([]); //#31183 - $_.bbs = $a([]); //#31184 - $_.txt = $a([]); //#31185 - $_.barcolor = "unset"; //#31186 - $_.includetext = false; //#31187 - $_.textcolor = "unset"; //#31188 - $_.textxalign = "unset"; //#31189 - $_.textyalign = "unset"; //#31190 - $_.textfont = "OCR-B"; //#31191 - $_.textsize = 10; //#31192 - $_.textxoffset = 0; //#31193 - $_.textyoffset = 0; //#31194 - $_.textgaps = 0; //#31195 - $_.alttext = ""; //#31196 - $_.bordercolor = "unset"; //#31197 - $_.backgroundcolor = "unset"; //#31198 - $_.inkspread = 0; //#31199 - $_.width = 0; //#31200 - $_.barratio = 1; //#31201 - $_.spaceratio = 1; //#31202 - $_.showborder = false; //#31203 - $_.borderleft = 10; //#31204 - $_.borderright = 10; //#31205 - $_.bordertop = 1; //#31206 - $_.borderbottom = 1; //#31207 - $_.borderwidth = 0.5; //#31208 - $_.guardwhitespace = false; //#31209 - $_.guardleftpos = 0; //#31210 - $_.guardleftypos = 0; //#31211 - $_.guardrightpos = 0; //#31212 - $_.guardrightypos = 0; //#31213 - $_.guardwidth = 7; //#31214 - $_.guardheight = 7; //#31215 - $forall($_.args, function() { //#31218 - var _7 = $k[--$j]; //#31218 - $_[$k[--$j]] = _7; //#31218 - }); //#31218 - var _9 = $_.opt; //#31219 - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#31219 - var _A = _D.next().value; //#31219 - $_[_A] = _9.get(_A); //#31219 - } //#31219 - $_.barcolor = "" + $_.barcolor; //#31221 - $_.textcolor = "" + $_.textcolor; //#31222 - $_.textxalign = "" + $_.textxalign; //#31223 - $_.textyalign = "" + $_.textyalign; //#31224 - $_.textfont = "" + $_.textfont; //#31225 - $_.textsize = +$_.textsize; //#31226 - $_.textxoffset = +$_.textxoffset; //#31227 - $_.textyoffset = +$_.textyoffset; //#31228 - $_.textgaps = +$_.textgaps; //#31229 - $_.alttext = "" + $_.alttext; //#31230 - $_.bordercolor = "" + $_.bordercolor; //#31231 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31232 - $_.inkspread = +$_.inkspread; //#31233 - $_.width = +$_.width; //#31234 - $_.barratio = +$_.barratio; //#31235 - $_.spaceratio = +$_.spaceratio; //#31236 - $_.borderleft = +$_.borderleft; //#31237 - $_.borderright = +$_.borderright; //#31238 - $_.bordertop = +$_.bordertop; //#31239 - $_.borderbottom = +$_.borderbottom; //#31240 - $_.borderwidth = +$_.borderwidth; //#31241 - $_.guardleftpos = +$_.guardleftpos; //#31242 - $_.guardleftypos = +$_.guardleftypos; //#31243 - $_.guardrightpos = +$_.guardrightpos; //#31244 - $_.guardrightypos = +$_.guardrightypos; //#31245 - $_.guardwidth = +$_.guardwidth; //#31246 - $_.guardheight = +$_.guardheight; //#31247 - $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31250 - $_.x = 0; //#31251 - $_.maxh = 0; //#31251 - for (var _k = 0, _j = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#31270 - $_.i = _k; //#31253 - if (($_.i % 2) == 0) { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31255 - if ($get($_.sbs, $_.i) != 0) { //#31264 - $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31257 - $_.c = $f(($_.d / 2) + $_.x); //#31258 - $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31259 - $_.w = $f($_.d - $_.inkspread); //#31260 - $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31261 - if ($f($_.h + $_.y) > $_.maxh) { //#31262 - $_.maxh = $f($_.h + $_.y); //#31262 - } //#31262 - } else { //#31264 - $put($_.bars, ~~($_.i / 2), -1); //#31264 - } //#31264 - } else { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31267 - } //#31267 - $_.x = $f($_.x + $_.d); //#31269 - } //#31269 - $$.save(); //#31272 - var _1P = $$.currpos(); //#31274 - $$.translate(_1P.x, _1P.y); //#31274 - if ($_.width != 0) { //#31279 - $$.scale(($_.width * 72) / $_.x, 1); //#31278 - } //#31278 - $$.newpath(); //#31282 - $$.moveto(-$_.borderleft, -$_.borderbottom); //#31283 - $$.rlineto($f($f($_.x + $_.borderleft) + $_.borderright), 0); //#31284 - $$.rlineto(0, $f($f($_.maxh + $_.borderbottom) + $_.bordertop)); //#31285 - $$.rlineto(-($f($f($_.x + $_.borderleft) + $_.borderright)), 0); //#31286 - $$.rlineto(0, -($f($f($_.maxh + $_.borderbottom) + $_.bordertop))); //#31287 - $$.closepath(); //#31288 - if ($_.showborder) { //#31296 - $$.save(); //#31292 - if ($ne($_.bordercolor, "unset")) { //#31293 - $$.setcolor($_.bordercolor); //#31293 - } //#31293 - $$.setlinewidth($_.borderwidth); //#31294 - $$.stroke(); //#31294 - $$.restore(); //#31295 - } //#31295 - $$.save(); //#31299 - if ($ne($_.barcolor, "unset")) { //#31301 - $$.setcolor($_.barcolor); //#31301 - } //#31301 - var _1n = $_.bars; //#31302 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#31308 - var _1q = $get(_1n, _1o); //#31308 - $k[$j++] = _1q; //#31307 - if (_1q != -1) { //#31306 - $aload($k[--$j]); //#31304 - $$.newpath(); //#31304 - $$.setlinewidth($k[--$j]); //#31304 - var _1t = $k[--$j]; //#31304 - $$.moveto($k[--$j], _1t); //#31304 - $$.rlineto(0, $k[--$j]); //#31304 - $$.stroke(); //#31304 - } else { //#31306 - $j--; //#31306 - } //#31306 - } //#31306 - $$.restore(); //#31309 - if ($ne($_.textcolor, "unset")) { //#31312 - $$.setcolor($_.textcolor); //#31312 - } //#31312 - if ($_.includetext) { //#31369 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31367 - $_.s = 0; //#31315 - $_.fn = ""; //#31315 - var _22 = $_.txt; //#31316 - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#31325 - $forall($get(_22, _23)); //#31317 - var _26 = $k[--$j]; //#31318 - var _27 = $k[--$j]; //#31318 - $k[$j++] = _27; //#31323 - $k[$j++] = _26; //#31323 - if ((_26 != $_.s) || $ne(_27, $_.fn)) { //#31322 - var _2A = $k[--$j]; //#31319 - var _2B = $k[--$j]; //#31319 - $_.s = _2A; //#31319 - $_.fn = _2B; //#31319 - $$.selectfont(_2B, _2A); //#31320 - } else { //#31322 - $j -= 2; //#31322 - } //#31322 - var _2C = $k[--$j]; //#31324 - $$.moveto($k[--$j], _2C); //#31324 - $$.show($k[--$j], 0, 0); //#31324 - } //#31324 - } else { //#31367 - $$.selectfont($_.textfont, $_.textsize); //#31327 - if ($eq($_.alttext, "")) { //#31333 - $k[$j++] = Infinity; //#31329 - var _2I = $_.txt; //#31329 - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#31329 - $forall($get($get(_2I, _2J), 0)); //#31329 - } //#31329 - $_.txt = $a(); //#31329 - $_.tstr = $s($_.txt.length); //#31330 - for (var _2S = 0, _2R = $_.txt.length - 1; _2S <= _2R; _2S += 1) { //#31331 - $put($_.tstr, _2S, $get($_.txt, _2S)); //#31331 - } //#31331 - } else { //#31333 - $_.tstr = $_.alttext; //#31333 - } //#31333 - if ($_.tstr.length == 0) { //#31343 - $k[$j++] = 0; //#31338 - } else { //#31343 - $$.save(); //#31340 - $$.newpath(); //#31341 - $$.moveto(0, 0); //#31341 - $$.charpath("0", false); //#31341 - var _2Y = $$.pathbbox(); //#31341 - $$.restore(); //#31343 - $k[$j++] = _2Y.ury; //#31343 - } //#31343 - $_.textascent = $k[--$j]; //#31352 - var _2b = $$.stringwidth($_.tstr); //#31353 - $_.textwidth = $f(_2b.w + (($_.tstr.length - 1) * $_.textgaps)); //#31353 - $_.textxpos = $f($_.textxoffset + ($f($_.x - $_.textwidth) / 2)); //#31355 - if ($eq($_.textxalign, "left")) { //#31356 - $_.textxpos = $_.textxoffset; //#31356 - } //#31356 - if ($eq($_.textxalign, "right")) { //#31357 - $_.textxpos = $f($f($_.x - $_.textxoffset) - $_.textwidth); //#31357 - } //#31357 - if ($eq($_.textxalign, "offleft")) { //#31358 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31358 - } //#31358 - if ($eq($_.textxalign, "offright")) { //#31359 - $_.textxpos = $f($_.x + $_.textxoffset); //#31359 - } //#31359 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.x)) { //#31363 - $_.textxpos = 0; //#31361 - $_.textgaps = $f($_.x - $_.textwidth) / ($_.tstr.length - 1); //#31362 - } //#31362 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31364 - if ($eq($_.textyalign, "above")) { //#31365 - $_.textypos = $f($f($_.textyoffset + $_.maxh) + 1); //#31365 - } //#31365 - if ($eq($_.textyalign, "center")) { //#31366 - $_.textypos = $f($_.textyoffset + ($f($_.maxh - $_.textascent) / 2)); //#31366 - } //#31366 - $$.moveto($_.textxpos, $_.textypos); //#31367 - $$.show($_.tstr, $_.textgaps, 0); //#31367 - } //#31367 - } //#31367 - if ($_.guardwhitespace) { //#31382 - $$.selectfont("OCR-B", $_.guardheight * 2); //#31373 - if ($_.guardleftpos != 0) { //#31377 - $$.moveto($f((-$_.guardleftpos) - 1), $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.5)); //#31375 - $$.show("<", 0, 0); //#31376 - } //#31376 - if ($_.guardrightpos != 0) { //#31381 - $$.moveto($f(($f($f($_.guardrightpos + $_.x) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.5)); //#31379 - $$.show(">", 0, 0); //#31380 - } //#31380 - } //#31380 - $$.restore(); //#31384 - $_ = Object.getPrototypeOf($_); //#31386 -} - + if ($_.bwipjs_dontdraw) { //#31533 + return; //#31533 + } //#31533 + $_ = Object.create($_); //#31534 + $_.sbs = $a([]); //#31539 + $_.bhs = $a([]); //#31540 + $_.bbs = $a([]); //#31541 + $_.txt = $a([]); //#31542 + $_.barcolor = "unset"; //#31543 + $_.includetext = false; //#31544 + $_.textcolor = "unset"; //#31545 + $_.textxalign = "unset"; //#31546 + $_.textyalign = "unset"; //#31547 + $_.textfont = "OCR-B"; //#31548 + $_.textsize = 10; //#31549 + $_.textxoffset = 0; //#31550 + $_.textyoffset = 0; //#31551 + $_.textgaps = 0; //#31552 + $_.alttext = ""; //#31553 + $_.bordercolor = "unset"; //#31554 + $_.backgroundcolor = "unset"; //#31555 + $_.inkspread = 0; //#31556 + $_.width = 0; //#31557 + $_.barratio = 1; //#31558 + $_.spaceratio = 1; //#31559 + $_.showborder = false; //#31560 + $_.showbearer = false; //#31561 + $_.borderleft = 10; //#31562 + $_.borderright = 10; //#31563 + $_.bordertop = 1; //#31564 + $_.borderbottom = 1; //#31565 + $_.borderwidth = 0.5; //#31566 + $_.guardwhitespace = false; //#31567 + $_.guardleftpos = 0; //#31568 + $_.guardleftypos = 0; //#31569 + $_.guardrightpos = 0; //#31570 + $_.guardrightypos = 0; //#31571 + $_.guardwidth = 7; //#31572 + $_.guardheight = 7; //#31573 + $forall($k[--$j], function() { //#31575 + var _6 = $k[--$j]; //#31575 + $_[$k[--$j]] = _6; //#31575 + }); //#31575 + $k[$j++] = $_.opt; //#31576 + delete $_['opt']; //#31576 + $k[$j++] = $_; //#31576 + bwipp_processoptions(); //#31576 + $j--; //#31576 + if ($_.textsize <= 0) { //#31580 + $k[$j++] = 'bwipp.renlinearBadTextsize#31579'; //#31579 + $k[$j++] = "The font size must be greater than zero"; //#31579 + bwipp_raiseerror(); //#31579 + } //#31579 + $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31583 + $_.pixx = 0; //#31584 + $_.pixy = 0; //#31584 + for (var _E = 0, _D = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _E <= _D; _E += 1) { //#31603 + $_.i = _E; //#31586 + if (($_.i % 2) == 0) { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31588 + if ($get($_.sbs, $_.i) != 0) { //#31597 + $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31590 + $_.c = $f(($_.d / 2) + $_.pixx); //#31591 + $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31592 + $_.w = $f($_.d - $_.inkspread); //#31593 + $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31594 + if ($f($_.h + $_.y) > $_.pixy) { //#31595 + $_.pixy = $f($_.h + $_.y); //#31595 + } //#31595 + } else { //#31597 + $put($_.bars, ~~($_.i / 2), -1); //#31597 + } //#31597 + } else { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31600 + } //#31600 + $_.pixx = $f($_.pixx + $_.d); //#31602 + } //#31602 + $$.save(); //#31605 + var _t = $$.currpos(); //#31607 + $$.translate(_t.x, _t.y); //#31607 + if ($_.width != 0) { //#31612 + $$.scale(($_.width * 72) / $_.pixx, 1); //#31611 + } //#31611 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31622 + $_.tr = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31623 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31624 + $_.br = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31625 + if ($_.showbearer) { //#31650 + $$.save(); //#31627 + $$.newpath(); //#31628 + $aload($_.bl); //#31629 + var _1N = $k[--$j]; //#31629 + $$.moveto($k[--$j], _1N); //#31629 + $aload($_.br); //#31629 + var _1Q = $k[--$j]; //#31629 + $$.lineto($k[--$j], _1Q); //#31629 + $aload($_.tl); //#31630 + var _1T = $k[--$j]; //#31630 + $$.moveto($k[--$j], _1T); //#31630 + $aload($_.tr); //#31630 + var _1W = $k[--$j]; //#31630 + $$.lineto($k[--$j], _1W); //#31630 + if ($ne($_.bordercolor, "unset")) { //#31631 + $$.setcolor($_.bordercolor); //#31631 + } //#31631 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#31632 + $$.stroke(); //#31632 + $$.restore(); //#31633 + } else { //#31650 + if ($_.showborder) { //#31651 + $$.save(); //#31646 + $$.newpath(); //#31647 + $aload($_.bl); //#31647 + var _1e = $k[--$j]; //#31647 + $$.moveto($k[--$j], _1e); //#31647 + var _1j = $a([$_.br, $_.tr, $_.tl]); //#31647 + for (var _1k = 0, _1l = _1j.length; _1k < _1l; _1k++) { //#31647 + $aload($get(_1j, _1k)); //#31647 + var _1n = $k[--$j]; //#31647 + $$.lineto($k[--$j], _1n); //#31647 + } //#31647 + $$.closepath(); //#31647 + if ($ne($_.bordercolor, "unset")) { //#31648 + $$.setcolor($_.bordercolor); //#31648 + } //#31648 + $$.setlinewidth($_.borderwidth); //#31649 + $$.stroke(); //#31649 + $$.restore(); //#31650 + } //#31650 + } //#31650 + $$.save(); //#31654 + if ($ne($_.barcolor, "unset")) { //#31656 + $$.setcolor($_.barcolor); //#31656 + } //#31656 + var _1u = $_.bars; //#31657 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#31663 + var _1x = $get(_1u, _1v); //#31663 + $k[$j++] = _1x; //#31662 + if (_1x != -1) { //#31661 + $aload($k[--$j]); //#31659 + $$.newpath(); //#31659 + $$.setlinewidth($k[--$j]); //#31659 + var _20 = $k[--$j]; //#31659 + $$.moveto($k[--$j], _20); //#31659 + $$.rlineto(0, $k[--$j]); //#31659 + $$.stroke(); //#31659 + } else { //#31661 + $j--; //#31661 + } //#31661 + } //#31661 + $$.restore(); //#31664 + if ($ne($_.textcolor, "unset")) { //#31667 + $$.setcolor($_.textcolor); //#31667 + } //#31667 + if ($_.includetext) { //#31724 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31722 + $_.s = 0; //#31670 + $_.fn = ""; //#31670 + var _29 = $_.txt; //#31671 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#31680 + $forall($get(_29, _2A)); //#31672 + var _2D = $k[--$j]; //#31673 + var _2E = $k[--$j]; //#31673 + $k[$j++] = _2E; //#31678 + $k[$j++] = _2D; //#31678 + if ((_2D != $_.s) || $ne(_2E, $_.fn)) { //#31677 + var _2H = $k[--$j]; //#31674 + var _2I = $k[--$j]; //#31674 + $_.s = _2H; //#31674 + $_.fn = _2I; //#31674 + $$.selectfont(_2I, _2H); //#31675 + } else { //#31677 + $j -= 2; //#31677 + } //#31677 + var _2J = $k[--$j]; //#31679 + $$.moveto($k[--$j], _2J); //#31679 + $$.show($k[--$j], 0, 0); //#31679 + } //#31679 + } else { //#31722 + $$.selectfont($_.textfont, $_.textsize); //#31682 + if ($eq($_.alttext, "")) { //#31688 + $k[$j++] = Infinity; //#31684 + var _2P = $_.txt; //#31684 + for (var _2Q = 0, _2R = _2P.length; _2Q < _2R; _2Q++) { //#31684 + $forall($get($get(_2P, _2Q), 0)); //#31684 + } //#31684 + $_.txt = $a(); //#31684 + $_.tstr = $s($_.txt.length); //#31685 + for (var _2Z = 0, _2Y = $_.txt.length - 1; _2Z <= _2Y; _2Z += 1) { //#31686 + $put($_.tstr, _2Z, $get($_.txt, _2Z)); //#31686 + } //#31686 + } else { //#31688 + $_.tstr = $_.alttext; //#31688 + } //#31688 + if ($_.tstr.length == 0) { //#31698 + $k[$j++] = 0; //#31693 + } else { //#31698 + $$.save(); //#31695 + $$.newpath(); //#31696 + $$.moveto(0, 0); //#31696 + $$.charpath("0", false); //#31696 + var _2f = $$.pathbbox(); //#31696 + $$.restore(); //#31698 + $k[$j++] = _2f.ury; //#31698 + } //#31698 + $_.textascent = $k[--$j]; //#31707 + var _2i = $$.stringwidth($_.tstr); //#31708 + $_.textwidth = $f(_2i.w + (($_.tstr.length - 1) * $_.textgaps)); //#31708 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#31710 + if ($eq($_.textxalign, "left")) { //#31711 + $_.textxpos = $_.textxoffset; //#31711 + } //#31711 + if ($eq($_.textxalign, "right")) { //#31712 + $_.textxpos = $f($f($_.pixx - $_.textxoffset) - $_.textwidth); //#31712 + } //#31712 + if ($eq($_.textxalign, "offleft")) { //#31713 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31713 + } //#31713 + if ($eq($_.textxalign, "offright")) { //#31714 + $_.textxpos = $f($_.pixx + $_.textxoffset); //#31714 + } //#31714 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#31718 + $_.textxpos = 0; //#31716 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#31717 + } //#31717 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31719 + if ($eq($_.textyalign, "above")) { //#31720 + $_.textypos = $f($f($_.textyoffset + $_.pixy) + 1); //#31720 + } //#31720 + if ($eq($_.textyalign, "center")) { //#31721 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#31721 + } //#31721 + $$.moveto($_.textxpos, $_.textypos); //#31722 + $$.show($_.tstr, $_.textgaps, 0); //#31722 + } //#31722 + } //#31722 + if ($_.guardwhitespace) { //#31737 + $$.selectfont("OCR-B", $_.guardheight * 2); //#31728 + if ($_.guardleftpos != 0) { //#31732 + $$.moveto((-$_.guardleftpos) - 2, $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.25)); //#31730 + $$.show("<", 0, 0); //#31731 + } //#31731 + if ($_.guardrightpos != 0) { //#31736 + $$.moveto($f(($f($f($_.guardrightpos + $_.pixx) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.25)); //#31734 + $$.show(">", 0, 0); //#31735 + } //#31735 + } //#31735 + $$.restore(); //#31739 + $_ = Object.getPrototypeOf($_); //#31741 +} //bwipp_renlinear function bwipp_renmaximatrix() { - if ($_.bwipjs_dontdraw) { //#31404 - return; //#31404 - } //#31404 - $_ = Object.create($_); //#31406 - $_.args = $k[--$j]; //#31408 - $_.barcolor = "unset"; //#31411 - $_.backgroundcolor = "unset"; //#31412 - $forall($_.args, function() { //#31415 - var _3 = $k[--$j]; //#31415 - $_[$k[--$j]] = _3; //#31415 - }); //#31415 - var _5 = $_.opt; //#31416 - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31416 - var _6 = _9.next().value; //#31416 - $_[_6] = _5.get(_6); //#31416 - } //#31416 - $_.barcolor = "" + $_.barcolor; //#31418 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31419 - $$.save(); //#31421 - if ($ne($_.barcolor, "unset")) { //#31423 - $$.setcolor($_.barcolor); //#31423 - } //#31423 - $$.maxicode($_.pixs); //#31424 - $$.restore(); //#31426 - $_ = Object.getPrototypeOf($_); //#31428 -} + if ($_.bwipjs_dontdraw) { //#31759 + return; //#31759 + } //#31759 + $_ = Object.create($_); //#31761 + $_.args = $k[--$j]; //#31763 + $_.barcolor = "unset"; //#31766 + $_.backgroundcolor = "unset"; //#31767 + $forall($_.args, function() { //#31770 + var _3 = $k[--$j]; //#31770 + $_[$k[--$j]] = _3; //#31770 + }); //#31770 + var _5 = $_.opt; //#31771 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31771 + var _6 = _9.next().value; //#31771 + $_[_6] = _5.get(_6); //#31771 + } //#31771 + $_.barcolor = "" + $_.barcolor; //#31773 + $_.backgroundcolor = "" + $_.backgroundcolor; //#31774 + $$.save(); //#31776 + if ($ne($_.barcolor, "unset")) { //#31778 + $$.setcolor($_.barcolor); //#31778 + } //#31778 + $$.maxicode($_.pixs); //#31779 + $$.restore(); //#31781 + $_ = Object.getPrototypeOf($_); //#31783 +} //bwipp_renmaximatrix // bwip-js/barcode-ftr.js // // This code is injected below the cross-compiled barcode.js. @@ -40069,7 +40573,7 @@ function bwipp_lookup(symbol) { } throw new Error("bwipp.unknownEncoder: unknown encoder name: " + symbol); } -var BWIPP_VERSION = '2023-04-03'; +var BWIPP_VERSION = '2024-01-03'; // file : bwipjs.js // // Graphics-context interface to the BWIPP cross-compiled code @@ -40080,141 +40584,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface - - this.reset(); - - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface + + this.reset(); + + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -40225,24 +40729,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -40251,452 +40755,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; - - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + var minx = this.minx; + var maxy = this.maxy; + + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -40716,344 +41220,344 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); - - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); + + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; -return BWIPJS; -})(); // BWIPJS closure -// drawing-builtin.js -// -// The aliased (except the fonts) graphics used by drawing-canvas.js and -// drawing-zlibpng.js -// -// All x,y and lengths are integer values. -// -// For the methods that take a color `rgb` parameter, the value is always a -// string with format RRGGBB. -function DrawingBuiltin() { - var floor = Math.floor; +return BWIPJS; +})(); // BWIPJS closure +// drawing-builtin.js +// +// The aliased (except the fonts) graphics used by drawing-canvas.js and +// drawing-zlibpng.js +// +// All x,y and lengths are integer values. +// +// For the methods that take a color `rgb` parameter, the value is always a +// string with format RRGGBB. +function DrawingBuiltin() { + var floor = Math.floor; + + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + + var opts; // see setopts() + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map + var gs_xyclip; // clip region map (similar to xymap) + + return { + // setopts() is called after the options are fixed-up/normalized, + // but before calling into BWIPP. + // This method allows omitting the options in the constructor call. + // The method is optional. + setopts(options) { + opts = options; + }, + + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { + // swissqrcode requires clipping and drawing that are not scaled to the + // the barcode module size. + if (opts.bcid == 'swissqrcode') { + return [ sx, sy ]; + } else { + return [ (sx|0)||1, (sy|0)||1 ]; + } + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } + } + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } - var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map - var gs_xyclip; // clip region map (similar to xymap) + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; + } - return { - // setopts() is called after the options are fixed-up/normalized, - // but before calling into BWIPP. - // This method allows omitting the options in the constructor call. - // The method is optional. - setopts(options) { - opts = options; + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; + gs_xyclip = null; + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { - // swissqrcode requires clipping and drawing that are not scaled to the - // the barcode module size. - if (opts.bcid == 'swissqrcode') { - return [ sx, sy ]; + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half } else { - return [ (sx|0)||1, (sy|0)||1 ]; + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; - gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -41078,196 +41582,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -41280,18 +41784,18 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } - - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + } + + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } // drawing-zlibpng.js // @@ -41299,19 +41803,19 @@ var PNGTYPE_PALETTE = 3; var PNGTYPE_TRUEALPHA = 6; var PNG_TEXT = "Software\0bwip-js.metafloor.com"; var PNG_CRC = (function() { - var precalc = []; - for (var i = 0; i < 256; i++) { - var c = i; - for (var j = 0; j < 8; j++) { - if (c & 1) { - c = 0xedb88320 ^ (c >>> 1); - } else { - c = c >>> 1; - } - } - precalc[i] = c; - } - return precalc; + var precalc = []; + for (var i = 0; i < 256; i++) { + var c = i; + for (var j = 0; j < 8; j++) { + if (c & 1) { + c = 0xedb88320 ^ (c >>> 1); + } else { + c = c >>> 1; + } + } + precalc[i] = c; + } + return precalc; })(); // This has been moved to the nodejs-only section of exports.js due to @@ -41324,12 +41828,12 @@ function DrawingZlibPng(callback, maybe) { if (maybe && typeof maybe == 'function') { callback = maybe; } - var image_buffer, image_width, image_height; + var image_buffer, image_width, image_height; - // Provide our specializations for the builtin drawing - var drawing = DrawingBuiltin(); - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + var drawing = DrawingBuiltin(); + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -41339,164 +41843,164 @@ function DrawingZlibPng(callback, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; - - // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. - function image(width, height) { - // PNG RGBA buffers are prefixed with a one-byte filter type - image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) - : new Buffer(width * height * 4 + height); - image_width = width; - image_height = height; - - // Set background - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - var rgb = opts.backgroundcolor; - fillRGB(parseInt(rgb.substr(0,2), 16), - parseInt(rgb.substr(2,2), 16), - parseInt(rgb.substr(4,2), 16)); - } - - // The return value is designed to accommodate both canvas pure-RGBA buffers - // and PNG's row-filter prefixed RGBA buffers. - return { buffer:image_buffer, ispng:true }; - } - - function fillRGB(r, g, b) { - var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; - - // This is made complex by the filter byte that prefixes each row... - var len = image_width * 4 + 1; - var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); - for (var i = 1; i < len; i += 4) { - row.writeUInt32BE(color, i); - } - image_buffer.fill(row); - } - - function end() { - if (!callback) { - return new Promise(makePNG); - } else { - makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); - } - } - - function makePNG(resolve, reject) { - // DEFLATE the image data - var bufs = []; - var buflen = 0; - var deflator = PNG_ZLIB.createDeflate({ - chunkSize: 32 * 1024, - level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, - strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); - deflator.on('error', reject); - deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); - deflator.on('end', returnPNG); - deflator.end(image_buffer); - - function returnPNG() { - var length = 8 + 12 + 13 + // PNG Header + IHDR chunk - 12 + PNG_TEXT.length + // tEXt - 12 + buflen + // IDAT - 12; // IEND - if (opts.dpi) { - length += 12 + 9; // pHYs - } - - // Emulate a byte-stream - var png = Buffer.alloc(length); - var pngoff = 0; // running offset into the png buffer - - write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header - writeIHDR(); - writeTEXT(); - if (opts.dpi) { - writePHYS(); - } - writeIDAT(); - writeIEND(); - - // Success - resolve(png); - - function writeIHDR() { - write32(13); // chunk length - var crcoff = pngoff; - - write('IHDR'); - write32(image_width); - write32(image_height); - write8(8); // bit depth - write8(PNGTYPE_TRUEALPHA); - write8(0); // compression default - write8(0); // filter default - write8(0); // no interlace - - writeCRC(crcoff); - } - function writeTEXT() { - write32(PNG_TEXT.length); // chunk length - var crcoff = pngoff; - - write('tEXt'); - write(PNG_TEXT); - writeCRC(crcoff); - } - function writePHYS() { - write32(9); - var crcoff = pngoff; - - var pxm = ((opts.dpi || 72) / 0.0254)|0; - write('pHYs'); - write32(pxm); // x-axis - write32(pxm); // y-axis - write8(1); // px/m (the only usable option) - writeCRC(crcoff); - } - function writeIDAT() { - write32(buflen); // chunk length - var crcoff = pngoff; - - write('IDAT'); - for (var i = 0; i < bufs.length; i++) { - bufs[i].copy(png, pngoff); - pngoff += bufs[i].length; - } - writeCRC(crcoff); - } - function writeIEND() { - write32(0); // chunk length; - var crcoff = pngoff; - - write('IEND'); - writeCRC(crcoff); - } - - function write(s) { - png.write(s, pngoff, 'binary'); - pngoff += s.length; - } - function write32(v) { - png.writeUInt32BE(v, pngoff); - pngoff += 4; - } - function write16(v) { - png.writeUInt16BE(v, pngoff); - pngoff += 2; - } - function write8(v) { - png[pngoff++] = v; - } - function writeCRC(off) { - var crc = -1; - while (off < pngoff) { - crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); - } - write32((crc ^ -1) >>> 0); - } - } - } + return drawing; + + // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. + function image(width, height) { + // PNG RGBA buffers are prefixed with a one-byte filter type + image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) + : new Buffer(width * height * 4 + height); + image_width = width; + image_height = height; + + // Set background + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + var rgb = opts.backgroundcolor; + fillRGB(parseInt(rgb.substr(0,2), 16), + parseInt(rgb.substr(2,2), 16), + parseInt(rgb.substr(4,2), 16)); + } + + // The return value is designed to accommodate both canvas pure-RGBA buffers + // and PNG's row-filter prefixed RGBA buffers. + return { buffer:image_buffer, ispng:true }; + } + + function fillRGB(r, g, b) { + var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; + + // This is made complex by the filter byte that prefixes each row... + var len = image_width * 4 + 1; + var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); + for (var i = 1; i < len; i += 4) { + row.writeUInt32BE(color, i); + } + image_buffer.fill(row); + } + + function end() { + if (!callback) { + return new Promise(makePNG); + } else { + makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); + } + } + + function makePNG(resolve, reject) { + // DEFLATE the image data + var bufs = []; + var buflen = 0; + var deflator = PNG_ZLIB.createDeflate({ + chunkSize: 32 * 1024, + level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, + strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); + deflator.on('error', reject); + deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); + deflator.on('end', returnPNG); + deflator.end(image_buffer); + + function returnPNG() { + var length = 8 + 12 + 13 + // PNG Header + IHDR chunk + 12 + PNG_TEXT.length + // tEXt + 12 + buflen + // IDAT + 12; // IEND + if (opts.dpi) { + length += 12 + 9; // pHYs + } + + // Emulate a byte-stream + var png = Buffer.alloc(length); + var pngoff = 0; // running offset into the png buffer + + write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header + writeIHDR(); + writeTEXT(); + if (opts.dpi) { + writePHYS(); + } + writeIDAT(); + writeIEND(); + + // Success + resolve(png); + + function writeIHDR() { + write32(13); // chunk length + var crcoff = pngoff; + + write('IHDR'); + write32(image_width); + write32(image_height); + write8(8); // bit depth + write8(PNGTYPE_TRUEALPHA); + write8(0); // compression default + write8(0); // filter default + write8(0); // no interlace + + writeCRC(crcoff); + } + function writeTEXT() { + write32(PNG_TEXT.length); // chunk length + var crcoff = pngoff; + + write('tEXt'); + write(PNG_TEXT); + writeCRC(crcoff); + } + function writePHYS() { + write32(9); + var crcoff = pngoff; + + var pxm = ((opts.dpi || 72) / 0.0254)|0; + write('pHYs'); + write32(pxm); // x-axis + write32(pxm); // y-axis + write8(1); // px/m (the only usable option) + writeCRC(crcoff); + } + function writeIDAT() { + write32(buflen); // chunk length + var crcoff = pngoff; + + write('IDAT'); + for (var i = 0; i < bufs.length; i++) { + bufs[i].copy(png, pngoff); + pngoff += bufs[i].length; + } + writeCRC(crcoff); + } + function writeIEND() { + write32(0); // chunk length; + var crcoff = pngoff; + + write('IEND'); + writeCRC(crcoff); + } + + function write(s) { + png.write(s, pngoff, 'binary'); + pngoff += s.length; + } + function write32(v) { + png.writeUInt32BE(v, pngoff); + pngoff += 4; + } + function write16(v) { + png.writeUInt16BE(v, pngoff); + pngoff += 2; + } + function write8(v) { + png[pngoff++] = v; + } + function writeCRC(off) { + var crc = -1; + while (off < pngoff) { + crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); + } + write32((crc ^ -1) >>> 0); + } + } + } } // drawing-svg.js // @@ -41520,7 +42024,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -41687,8 +42191,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -41697,23 +42201,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -41766,10 +42270,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + @@ -41969,7 +42471,7 @@ function LoadFont() { // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -41998,26 +42500,26 @@ function LoadFont() { var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -42026,11 +42528,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -42066,7 +42568,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -42074,9 +42576,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -42157,7 +42659,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -42180,7 +42682,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -42191,7 +42693,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -42236,13 +42738,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -42253,9 +42755,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -42264,7 +42766,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -42302,7 +42804,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -42346,14 +42848,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -42362,7 +42864,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -42384,22 +42886,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -42412,7 +42914,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -42461,10 +42963,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -42476,14 +42978,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -42491,22 +42993,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -42568,8 +43070,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -42595,7 +43097,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -42604,13 +43106,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -42662,8 +43164,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -42672,16 +43174,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -42705,23 +43207,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -42740,12 +43242,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -42797,11 +43299,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -42860,7 +43362,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -42871,8 +43373,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -42895,7 +43397,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -42910,8 +43412,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -42942,7 +43444,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -42953,7 +43455,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -42995,7 +43497,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -43004,7 +43506,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -43039,7 +43541,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -43123,7 +43625,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -43152,18 +43654,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -43173,15 +43675,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -43195,16 +43697,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -43216,27 +43718,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -43244,11 +43746,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -43256,21 +43758,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -43317,11 +43819,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -43341,7 +43843,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -43372,18 +43874,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -43418,55 +43920,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -43499,9 +44001,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -43556,8 +44058,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -43599,9 +44101,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -43611,7 +44113,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -43621,42 +44123,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -43664,48 +44166,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -43715,14 +44217,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -43731,7 +44233,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -43742,7 +44244,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -43751,7 +44253,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -43764,107 +44266,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/dist/bwip-js-node.mjs b/dist/bwip-js-node.mjs index f39f6f9b..c7ac851e 100644 --- a/dist/bwip-js-node.mjs +++ b/dist/bwip-js-node.mjs @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -33,7 +33,7 @@ import { bwipp_auspost,bwipp_azteccode,bwipp_azteccodecompact,bwipp_aztecrune,bwipp_bc412,bwipp_channelcode,bwipp_codablockf,bwipp_code11,bwipp_code128,bwipp_code16k,bwipp_code2of5,bwipp_code32,bwipp_code39,bwipp_code39ext,bwipp_code49,bwipp_code93,bwipp_code93ext,bwipp_codeone,bwipp_coop2of5,bwipp_daft,bwipp_databarexpanded,bwipp_databarexpandedcomposite,bwipp_databarexpandedstacked,bwipp_databarexpandedstackedcomposite,bwipp_databarlimited,bwipp_databarlimitedcomposite,bwipp_databaromni,bwipp_databaromnicomposite,bwipp_databarstacked,bwipp_databarstackedcomposite,bwipp_databarstackedomni,bwipp_databarstackedomnicomposite,bwipp_databartruncated,bwipp_databartruncatedcomposite,bwipp_datalogic2of5,bwipp_datamatrix,bwipp_datamatrixrectangular,bwipp_datamatrixrectangularextension,bwipp_dotcode,bwipp_ean13,bwipp_ean13composite,bwipp_ean14,bwipp_ean2,bwipp_ean5,bwipp_ean8,bwipp_ean8composite,bwipp_flattermarken,bwipp_gs1_128,bwipp_gs1_128composite,bwipp_gs1_cc,bwipp_gs1datamatrix,bwipp_gs1datamatrixrectangular,bwipp_gs1dldatamatrix,bwipp_gs1dlqrcode,bwipp_gs1dotcode,bwipp_gs1northamericancoupon,bwipp_gs1qrcode,bwipp_hanxin,bwipp_hibcazteccode,bwipp_hibccodablockf,bwipp_hibccode128,bwipp_hibccode39,bwipp_hibcdatamatrix,bwipp_hibcdatamatrixrectangular,bwipp_hibcmicropdf417,bwipp_hibcpdf417,bwipp_hibcqrcode,bwipp_iata2of5,bwipp_identcode,bwipp_industrial2of5,bwipp_interleaved2of5,bwipp_isbn,bwipp_ismn,bwipp_issn,bwipp_itf14,bwipp_jabcode,bwipp_japanpost,bwipp_kix,bwipp_leitcode,bwipp_mailmark,bwipp_mands,bwipp_matrix2of5,bwipp_maxicode,bwipp_micropdf417,bwipp_microqrcode,bwipp_msi,bwipp_onecode,bwipp_pdf417,bwipp_pdf417compact,bwipp_pharmacode,bwipp_pharmacode2,bwipp_planet,bwipp_plessey,bwipp_posicode,bwipp_postnet,bwipp_pzn,bwipp_qrcode,bwipp_rationalizedCodabar,bwipp_raw,bwipp_rectangularmicroqrcode,bwipp_royalmail,bwipp_sscc18,bwipp_swissqrcode,bwipp_symbol,bwipp_telepen,bwipp_telepennumeric,bwipp_ultracode,bwipp_upca,bwipp_upcacomposite,bwipp_upce,bwipp_upcecomposite,bwipp_lookup,bwipp_encode,BWIPP_VERSION } from './bwipp.mjs'; // exports.js -const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; +const BWIPJS_VERSION = '4.3.0 (2024-03-12)'; import url from 'url'; import PNG_ZLIB from 'zlib'; @@ -45,31 +45,31 @@ import 'stream'; // fix for https://github.com/nodejs/node/issues/37021 // // This function is asynchronous. function Request(req, res, extra) { - var opts = url.parse(req.url, true).query; - - // Convert boolean empty parameters to true - for (var id in opts) { - if (opts[id] === '') { - opts[id] = true; - } - } - - // Add in server options/overrides - if (extra) { - for (var id in extra) { - opts[id] = extra[id]; - } - } - - ToBuffer(opts, function(err, png) { - if (err) { - res.writeHead(400, { 'Content-Type':'text/plain' }); - res.end('' + (err.stack || err), 'utf-8'); - } else { - res.writeHead(200, { 'Content-Type':'image/png' }); - res.end(png, 'binary'); - } - }); + var opts = url.parse(req.url, true).query; + + // Convert boolean empty parameters to true + for (var id in opts) { + if (opts[id] === '') { + opts[id] = true; + } + } + + // Add in server options/overrides + if (extra) { + for (var id in extra) { + opts[id] = extra[id]; + } + } + + ToBuffer(opts, function(err, png) { + if (err) { + res.writeHead(400, { 'Content-Type':'text/plain' }); + res.end('' + (err.stack || err), 'utf-8'); + } else { + res.writeHead(200, { 'Content-Type':'image/png' }); + res.end(png, 'binary'); + } + }); } // bwipjs.toBuffer(options[, callback]) @@ -80,10 +80,10 @@ function Request(req, res, extra) { // `options` are a bwip-js/BWIPP options object. // `callback` is an optional callback handler with prototype: // -// function callback(err, png) +// function callback(err, png) // -// `err` is an Error object or string. If `err` is set, `png` is null. -// `png` is a node Buffer containing the PNG image. +// `err` is an Error object or string. If `err` is set, `png` is null. +// `png` is a node Buffer containing the PNG image. // // If `callback` is not provided, a Promise is returned. function ToBuffer(opts, callback) { @@ -132,7 +132,7 @@ function _ToAny(encoder, opts, drawing) { // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -142,18 +142,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; - - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; + + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -181,34 +181,34 @@ function FixupOptions(opts) { } } - return opts; - - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + return opts; + + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -224,56 +224,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; - - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); - - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } - - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } - - // Scale the image - bw.scale(scaleX, scaleY); - - // Call into the BWIPP cross-compiled code and render the image. + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; + + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); + + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } + + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } + + // Scale the image + bw.scale(scaleX, scaleY); + + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -285,48 +285,48 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } // file : bwipjs.js // @@ -338,141 +338,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface - - this.reset(); - - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface + + this.reset(); + + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -483,24 +483,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -509,452 +509,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; - - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + var minx = this.minx; + var maxy = this.maxy; + + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -974,74 +974,74 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); - - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); + + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; return BWIPJS; -})(); // BWIPJS closure +})(); // BWIPJS closure // drawing-builtin.js // // The aliased (except the fonts) graphics used by drawing-canvas.js and @@ -1052,21 +1052,21 @@ return BWIPJS; // For the methods that take a color `rgb` parameter, the value is always a // string with format RRGGBB. function DrawingBuiltin() { - var floor = Math.floor; + var floor = Math.floor; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map var gs_xyclip; // clip region map (similar to xymap) - return { + return { // setopts() is called after the options are fixed-up/normalized, // but before calling into BWIPP. // This method allows omitting the options in the constructor call. @@ -1075,243 +1075,243 @@ function DrawingBuiltin() { opts = options; }, - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { // swissqrcode requires clipping and drawing that are not scaled to the // the barcode module size. if (opts.bcid == 'swissqrcode') { return [ sx, sy ]; } else { - return [ (sx|0)||1, (sy|0)||1 ]; + return [ (sx|0)||1, (sy|0)||1 ]; } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } + } + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; + + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } + + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; + } + + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; + }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half + } else { + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; + } + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -1336,196 +1336,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -1538,18 +1538,18 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } - - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + } + + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } // drawing-zlibpng.js // @@ -1557,19 +1557,19 @@ var PNGTYPE_PALETTE = 3; var PNGTYPE_TRUEALPHA = 6; var PNG_TEXT = "Software\0bwip-js.metafloor.com"; var PNG_CRC = (function() { - var precalc = []; - for (var i = 0; i < 256; i++) { - var c = i; - for (var j = 0; j < 8; j++) { - if (c & 1) { - c = 0xedb88320 ^ (c >>> 1); - } else { - c = c >>> 1; - } - } - precalc[i] = c; - } - return precalc; + var precalc = []; + for (var i = 0; i < 256; i++) { + var c = i; + for (var j = 0; j < 8; j++) { + if (c & 1) { + c = 0xedb88320 ^ (c >>> 1); + } else { + c = c >>> 1; + } + } + precalc[i] = c; + } + return precalc; })(); // This has been moved to the nodejs-only section of exports.js due to @@ -1582,12 +1582,12 @@ function DrawingZlibPng(callback, maybe) { if (maybe && typeof maybe == 'function') { callback = maybe; } - var image_buffer, image_width, image_height; + var image_buffer, image_width, image_height; - // Provide our specializations for the builtin drawing - var drawing = DrawingBuiltin(); - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + var drawing = DrawingBuiltin(); + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -1597,164 +1597,164 @@ function DrawingZlibPng(callback, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; - - // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. - function image(width, height) { - // PNG RGBA buffers are prefixed with a one-byte filter type - image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) - : new Buffer(width * height * 4 + height); - image_width = width; - image_height = height; - - // Set background - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - var rgb = opts.backgroundcolor; - fillRGB(parseInt(rgb.substr(0,2), 16), - parseInt(rgb.substr(2,2), 16), - parseInt(rgb.substr(4,2), 16)); - } - - // The return value is designed to accommodate both canvas pure-RGBA buffers - // and PNG's row-filter prefixed RGBA buffers. - return { buffer:image_buffer, ispng:true }; - } - - function fillRGB(r, g, b) { - var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; - - // This is made complex by the filter byte that prefixes each row... - var len = image_width * 4 + 1; - var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); - for (var i = 1; i < len; i += 4) { - row.writeUInt32BE(color, i); - } - image_buffer.fill(row); - } - - function end() { - if (!callback) { - return new Promise(makePNG); - } else { - makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); - } - } - - function makePNG(resolve, reject) { - // DEFLATE the image data - var bufs = []; - var buflen = 0; - var deflator = PNG_ZLIB.createDeflate({ - chunkSize: 32 * 1024, - level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, - strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); - deflator.on('error', reject); - deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); - deflator.on('end', returnPNG); - deflator.end(image_buffer); - - function returnPNG() { - var length = 8 + 12 + 13 + // PNG Header + IHDR chunk - 12 + PNG_TEXT.length + // tEXt - 12 + buflen + // IDAT - 12; // IEND - if (opts.dpi) { - length += 12 + 9; // pHYs - } - - // Emulate a byte-stream - var png = Buffer.alloc(length); - var pngoff = 0; // running offset into the png buffer - - write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header - writeIHDR(); - writeTEXT(); - if (opts.dpi) { - writePHYS(); - } - writeIDAT(); - writeIEND(); - - // Success - resolve(png); - - function writeIHDR() { - write32(13); // chunk length - var crcoff = pngoff; - - write('IHDR'); - write32(image_width); - write32(image_height); - write8(8); // bit depth - write8(PNGTYPE_TRUEALPHA); - write8(0); // compression default - write8(0); // filter default - write8(0); // no interlace - - writeCRC(crcoff); - } - function writeTEXT() { - write32(PNG_TEXT.length); // chunk length - var crcoff = pngoff; - - write('tEXt'); - write(PNG_TEXT); - writeCRC(crcoff); - } - function writePHYS() { - write32(9); - var crcoff = pngoff; - - var pxm = ((opts.dpi || 72) / 0.0254)|0; - write('pHYs'); - write32(pxm); // x-axis - write32(pxm); // y-axis - write8(1); // px/m (the only usable option) - writeCRC(crcoff); - } - function writeIDAT() { - write32(buflen); // chunk length - var crcoff = pngoff; - - write('IDAT'); - for (var i = 0; i < bufs.length; i++) { - bufs[i].copy(png, pngoff); - pngoff += bufs[i].length; - } - writeCRC(crcoff); - } - function writeIEND() { - write32(0); // chunk length; - var crcoff = pngoff; - - write('IEND'); - writeCRC(crcoff); - } - - function write(s) { - png.write(s, pngoff, 'binary'); - pngoff += s.length; - } - function write32(v) { - png.writeUInt32BE(v, pngoff); - pngoff += 4; - } - function write16(v) { - png.writeUInt16BE(v, pngoff); - pngoff += 2; - } - function write8(v) { - png[pngoff++] = v; - } - function writeCRC(off) { - var crc = -1; - while (off < pngoff) { - crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); - } - write32((crc ^ -1) >>> 0); - } - } - } + return drawing; + + // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. + function image(width, height) { + // PNG RGBA buffers are prefixed with a one-byte filter type + image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) + : new Buffer(width * height * 4 + height); + image_width = width; + image_height = height; + + // Set background + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + var rgb = opts.backgroundcolor; + fillRGB(parseInt(rgb.substr(0,2), 16), + parseInt(rgb.substr(2,2), 16), + parseInt(rgb.substr(4,2), 16)); + } + + // The return value is designed to accommodate both canvas pure-RGBA buffers + // and PNG's row-filter prefixed RGBA buffers. + return { buffer:image_buffer, ispng:true }; + } + + function fillRGB(r, g, b) { + var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; + + // This is made complex by the filter byte that prefixes each row... + var len = image_width * 4 + 1; + var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); + for (var i = 1; i < len; i += 4) { + row.writeUInt32BE(color, i); + } + image_buffer.fill(row); + } + + function end() { + if (!callback) { + return new Promise(makePNG); + } else { + makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); + } + } + + function makePNG(resolve, reject) { + // DEFLATE the image data + var bufs = []; + var buflen = 0; + var deflator = PNG_ZLIB.createDeflate({ + chunkSize: 32 * 1024, + level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, + strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); + deflator.on('error', reject); + deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); + deflator.on('end', returnPNG); + deflator.end(image_buffer); + + function returnPNG() { + var length = 8 + 12 + 13 + // PNG Header + IHDR chunk + 12 + PNG_TEXT.length + // tEXt + 12 + buflen + // IDAT + 12; // IEND + if (opts.dpi) { + length += 12 + 9; // pHYs + } + + // Emulate a byte-stream + var png = Buffer.alloc(length); + var pngoff = 0; // running offset into the png buffer + + write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header + writeIHDR(); + writeTEXT(); + if (opts.dpi) { + writePHYS(); + } + writeIDAT(); + writeIEND(); + + // Success + resolve(png); + + function writeIHDR() { + write32(13); // chunk length + var crcoff = pngoff; + + write('IHDR'); + write32(image_width); + write32(image_height); + write8(8); // bit depth + write8(PNGTYPE_TRUEALPHA); + write8(0); // compression default + write8(0); // filter default + write8(0); // no interlace + + writeCRC(crcoff); + } + function writeTEXT() { + write32(PNG_TEXT.length); // chunk length + var crcoff = pngoff; + + write('tEXt'); + write(PNG_TEXT); + writeCRC(crcoff); + } + function writePHYS() { + write32(9); + var crcoff = pngoff; + + var pxm = ((opts.dpi || 72) / 0.0254)|0; + write('pHYs'); + write32(pxm); // x-axis + write32(pxm); // y-axis + write8(1); // px/m (the only usable option) + writeCRC(crcoff); + } + function writeIDAT() { + write32(buflen); // chunk length + var crcoff = pngoff; + + write('IDAT'); + for (var i = 0; i < bufs.length; i++) { + bufs[i].copy(png, pngoff); + pngoff += bufs[i].length; + } + writeCRC(crcoff); + } + function writeIEND() { + write32(0); // chunk length; + var crcoff = pngoff; + + write('IEND'); + writeCRC(crcoff); + } + + function write(s) { + png.write(s, pngoff, 'binary'); + pngoff += s.length; + } + function write32(v) { + png.writeUInt32BE(v, pngoff); + pngoff += 4; + } + function write16(v) { + png.writeUInt16BE(v, pngoff); + pngoff += 2; + } + function write8(v) { + png[pngoff++] = v; + } + function writeCRC(off) { + var crc = -1; + while (off < pngoff) { + crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); + } + write32((crc ^ -1) >>> 0); + } + } + } } // drawing-svg.js // @@ -1778,7 +1778,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -1945,8 +1945,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -1955,23 +1955,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -2024,10 +2024,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + @@ -2227,7 +2225,7 @@ function LoadFont() { // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -2256,26 +2254,26 @@ function LoadFont() { var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -2284,11 +2282,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -2324,7 +2322,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -2332,9 +2330,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -2415,7 +2413,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -2438,7 +2436,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -2449,7 +2447,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -2494,13 +2492,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -2511,9 +2509,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -2522,7 +2520,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -2560,7 +2558,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -2604,14 +2602,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -2620,7 +2618,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -2642,22 +2640,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -2670,7 +2668,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -2719,10 +2717,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -2734,14 +2732,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -2749,22 +2747,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -2826,8 +2824,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -2853,7 +2851,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -2862,13 +2860,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -2920,8 +2918,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -2930,16 +2928,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -2963,23 +2961,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -2998,12 +2996,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -3055,11 +3053,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -3118,7 +3116,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -3129,8 +3127,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -3153,7 +3151,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -3168,8 +3166,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -3200,7 +3198,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -3211,7 +3209,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -3253,7 +3251,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -3262,7 +3260,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -3297,7 +3295,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -3381,7 +3379,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -3410,18 +3408,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -3431,15 +3429,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -3453,16 +3451,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -3474,27 +3472,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -3502,11 +3500,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -3514,21 +3512,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -3575,11 +3573,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -3599,7 +3597,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -3630,18 +3628,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -3676,55 +3674,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -3757,9 +3755,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -3814,8 +3812,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -3857,9 +3855,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -3869,7 +3867,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -3879,42 +3877,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -3922,48 +3920,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -3973,14 +3971,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -3989,7 +3987,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -4000,7 +3998,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -4009,7 +4007,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -4022,107 +4020,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/dist/bwip-js-rn.d.ts b/dist/bwip-js-rn.d.ts index d2d134bd..4383012b 100644 --- a/dist/bwip-js-rn.d.ts +++ b/dist/bwip-js-rn.d.ts @@ -1,4 +1,4 @@ -// Type definitions for bwip-js 4.2.0 (2024-01-02) +// Type definitions for bwip-js 4.3.0 (2024-03-12) // // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT // @@ -135,7 +135,7 @@ declare namespace BwipJs { ): | Array<{ bbs: number[]; bhs: number[]; sbs: number[] }> | Array<{ pixs: number[]; pixx: number; pixy: number; height: number; width: number }>; - + export const BWIPP_VERSION: string; export const BWIPJS_VERSION: string; diff --git a/dist/bwip-js-rn.mjs b/dist/bwip-js-rn.mjs index 0348f3b2..b2eec96d 100644 --- a/dist/bwip-js-rn.mjs +++ b/dist/bwip-js-rn.mjs @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -33,7 +33,7 @@ import { bwipp_auspost,bwipp_azteccode,bwipp_azteccodecompact,bwipp_aztecrune,bwipp_bc412,bwipp_channelcode,bwipp_codablockf,bwipp_code11,bwipp_code128,bwipp_code16k,bwipp_code2of5,bwipp_code32,bwipp_code39,bwipp_code39ext,bwipp_code49,bwipp_code93,bwipp_code93ext,bwipp_codeone,bwipp_coop2of5,bwipp_daft,bwipp_databarexpanded,bwipp_databarexpandedcomposite,bwipp_databarexpandedstacked,bwipp_databarexpandedstackedcomposite,bwipp_databarlimited,bwipp_databarlimitedcomposite,bwipp_databaromni,bwipp_databaromnicomposite,bwipp_databarstacked,bwipp_databarstackedcomposite,bwipp_databarstackedomni,bwipp_databarstackedomnicomposite,bwipp_databartruncated,bwipp_databartruncatedcomposite,bwipp_datalogic2of5,bwipp_datamatrix,bwipp_datamatrixrectangular,bwipp_datamatrixrectangularextension,bwipp_dotcode,bwipp_ean13,bwipp_ean13composite,bwipp_ean14,bwipp_ean2,bwipp_ean5,bwipp_ean8,bwipp_ean8composite,bwipp_flattermarken,bwipp_gs1_128,bwipp_gs1_128composite,bwipp_gs1_cc,bwipp_gs1datamatrix,bwipp_gs1datamatrixrectangular,bwipp_gs1dldatamatrix,bwipp_gs1dlqrcode,bwipp_gs1dotcode,bwipp_gs1northamericancoupon,bwipp_gs1qrcode,bwipp_hanxin,bwipp_hibcazteccode,bwipp_hibccodablockf,bwipp_hibccode128,bwipp_hibccode39,bwipp_hibcdatamatrix,bwipp_hibcdatamatrixrectangular,bwipp_hibcmicropdf417,bwipp_hibcpdf417,bwipp_hibcqrcode,bwipp_iata2of5,bwipp_identcode,bwipp_industrial2of5,bwipp_interleaved2of5,bwipp_isbn,bwipp_ismn,bwipp_issn,bwipp_itf14,bwipp_jabcode,bwipp_japanpost,bwipp_kix,bwipp_leitcode,bwipp_mailmark,bwipp_mands,bwipp_matrix2of5,bwipp_maxicode,bwipp_micropdf417,bwipp_microqrcode,bwipp_msi,bwipp_onecode,bwipp_pdf417,bwipp_pdf417compact,bwipp_pharmacode,bwipp_pharmacode2,bwipp_planet,bwipp_plessey,bwipp_posicode,bwipp_postnet,bwipp_pzn,bwipp_qrcode,bwipp_rationalizedCodabar,bwipp_raw,bwipp_rectangularmicroqrcode,bwipp_royalmail,bwipp_sscc18,bwipp_swissqrcode,bwipp_symbol,bwipp_telepen,bwipp_telepennumeric,bwipp_ultracode,bwipp_upca,bwipp_upcacomposite,bwipp_upce,bwipp_upcecomposite,bwipp_lookup,bwipp_encode,BWIPP_VERSION } from './bwipp.mjs'; // exports.js -const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; +const BWIPJS_VERSION = '4.3.0 (2024-03-12)'; import PNG_ZLIB from 'react-zlib-js'; import Buffer from 'react-zlib-js/buffer.js'; @@ -46,10 +46,10 @@ import Buffer from 'react-zlib-js/buffer.js'; // `options` are a bwip-js/BWIPP options object. // `callback` is an optional callback handler with prototype: // -// function callback(err, png) +// function callback(err, png) // -// `err` is an Error object or string. If `err` is set, `png` is null. -// `png` is an object with properties: +// `err` is an Error object or string. If `err` is set, `png` is null. +// `png` is an object with properties: // `width` : The width of the image, in pixels. // `height` : The height of the image, in pixels. // `uri` : A base64 encoded data URL. @@ -147,7 +147,7 @@ function DrawingDataURL(opts, callback) { // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -157,18 +157,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; - - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; + + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -196,34 +196,34 @@ function FixupOptions(opts) { } } - return opts; - - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + return opts; + + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -239,56 +239,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; - - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); - - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } - - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } - - // Scale the image - bw.scale(scaleX, scaleY); - - // Call into the BWIPP cross-compiled code and render the image. + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; + + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); + + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } + + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } + + // Scale the image + bw.scale(scaleX, scaleY); + + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -300,48 +300,48 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } // file : bwipjs.js // @@ -353,141 +353,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface - - this.reset(); - - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface + + this.reset(); + + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -498,24 +498,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -524,452 +524,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; - - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + var minx = this.minx; + var maxy = this.maxy; + + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -989,74 +989,74 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); - - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); + + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; return BWIPJS; -})(); // BWIPJS closure +})(); // BWIPJS closure // drawing-builtin.js // // The aliased (except the fonts) graphics used by drawing-canvas.js and @@ -1067,21 +1067,21 @@ return BWIPJS; // For the methods that take a color `rgb` parameter, the value is always a // string with format RRGGBB. function DrawingBuiltin() { - var floor = Math.floor; + var floor = Math.floor; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map var gs_xyclip; // clip region map (similar to xymap) - return { + return { // setopts() is called after the options are fixed-up/normalized, // but before calling into BWIPP. // This method allows omitting the options in the constructor call. @@ -1090,243 +1090,243 @@ function DrawingBuiltin() { opts = options; }, - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { // swissqrcode requires clipping and drawing that are not scaled to the // the barcode module size. if (opts.bcid == 'swissqrcode') { return [ sx, sy ]; } else { - return [ (sx|0)||1, (sy|0)||1 ]; + return [ (sx|0)||1, (sy|0)||1 ]; + } + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; + + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } + + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; + } + + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; + }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half + } else { + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; + } + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -1351,196 +1351,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -1553,18 +1553,18 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } - - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + } + + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } // drawing-zlibpng.js // @@ -1572,19 +1572,19 @@ var PNGTYPE_PALETTE = 3; var PNGTYPE_TRUEALPHA = 6; var PNG_TEXT = "Software\0bwip-js.metafloor.com"; var PNG_CRC = (function() { - var precalc = []; - for (var i = 0; i < 256; i++) { - var c = i; - for (var j = 0; j < 8; j++) { - if (c & 1) { - c = 0xedb88320 ^ (c >>> 1); - } else { - c = c >>> 1; - } - } - precalc[i] = c; - } - return precalc; + var precalc = []; + for (var i = 0; i < 256; i++) { + var c = i; + for (var j = 0; j < 8; j++) { + if (c & 1) { + c = 0xedb88320 ^ (c >>> 1); + } else { + c = c >>> 1; + } + } + precalc[i] = c; + } + return precalc; })(); // This has been moved to the nodejs-only section of exports.js due to @@ -1597,12 +1597,12 @@ function DrawingZlibPng(callback, maybe) { if (maybe && typeof maybe == 'function') { callback = maybe; } - var image_buffer, image_width, image_height; + var image_buffer, image_width, image_height; - // Provide our specializations for the builtin drawing - var drawing = DrawingBuiltin(); - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + var drawing = DrawingBuiltin(); + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -1612,164 +1612,164 @@ function DrawingZlibPng(callback, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; - - // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. - function image(width, height) { - // PNG RGBA buffers are prefixed with a one-byte filter type - image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) - : new Buffer(width * height * 4 + height); - image_width = width; - image_height = height; - - // Set background - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - var rgb = opts.backgroundcolor; - fillRGB(parseInt(rgb.substr(0,2), 16), - parseInt(rgb.substr(2,2), 16), - parseInt(rgb.substr(4,2), 16)); - } - - // The return value is designed to accommodate both canvas pure-RGBA buffers - // and PNG's row-filter prefixed RGBA buffers. - return { buffer:image_buffer, ispng:true }; - } - - function fillRGB(r, g, b) { - var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; - - // This is made complex by the filter byte that prefixes each row... - var len = image_width * 4 + 1; - var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); - for (var i = 1; i < len; i += 4) { - row.writeUInt32BE(color, i); - } - image_buffer.fill(row); - } - - function end() { - if (!callback) { - return new Promise(makePNG); - } else { - makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); - } - } - - function makePNG(resolve, reject) { - // DEFLATE the image data - var bufs = []; - var buflen = 0; - var deflator = PNG_ZLIB.createDeflate({ - chunkSize: 32 * 1024, - level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, - strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); - deflator.on('error', reject); - deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); - deflator.on('end', returnPNG); - deflator.end(image_buffer); - - function returnPNG() { - var length = 8 + 12 + 13 + // PNG Header + IHDR chunk - 12 + PNG_TEXT.length + // tEXt - 12 + buflen + // IDAT - 12; // IEND - if (opts.dpi) { - length += 12 + 9; // pHYs - } - - // Emulate a byte-stream - var png = Buffer.alloc(length); - var pngoff = 0; // running offset into the png buffer - - write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header - writeIHDR(); - writeTEXT(); - if (opts.dpi) { - writePHYS(); - } - writeIDAT(); - writeIEND(); - - // Success - resolve(png); - - function writeIHDR() { - write32(13); // chunk length - var crcoff = pngoff; - - write('IHDR'); - write32(image_width); - write32(image_height); - write8(8); // bit depth - write8(PNGTYPE_TRUEALPHA); - write8(0); // compression default - write8(0); // filter default - write8(0); // no interlace - - writeCRC(crcoff); - } - function writeTEXT() { - write32(PNG_TEXT.length); // chunk length - var crcoff = pngoff; - - write('tEXt'); - write(PNG_TEXT); - writeCRC(crcoff); - } - function writePHYS() { - write32(9); - var crcoff = pngoff; - - var pxm = ((opts.dpi || 72) / 0.0254)|0; - write('pHYs'); - write32(pxm); // x-axis - write32(pxm); // y-axis - write8(1); // px/m (the only usable option) - writeCRC(crcoff); - } - function writeIDAT() { - write32(buflen); // chunk length - var crcoff = pngoff; - - write('IDAT'); - for (var i = 0; i < bufs.length; i++) { - bufs[i].copy(png, pngoff); - pngoff += bufs[i].length; - } - writeCRC(crcoff); - } - function writeIEND() { - write32(0); // chunk length; - var crcoff = pngoff; - - write('IEND'); - writeCRC(crcoff); - } - - function write(s) { - png.write(s, pngoff, 'binary'); - pngoff += s.length; - } - function write32(v) { - png.writeUInt32BE(v, pngoff); - pngoff += 4; - } - function write16(v) { - png.writeUInt16BE(v, pngoff); - pngoff += 2; - } - function write8(v) { - png[pngoff++] = v; - } - function writeCRC(off) { - var crc = -1; - while (off < pngoff) { - crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); - } - write32((crc ^ -1) >>> 0); - } - } - } + return drawing; + + // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. + function image(width, height) { + // PNG RGBA buffers are prefixed with a one-byte filter type + image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) + : new Buffer(width * height * 4 + height); + image_width = width; + image_height = height; + + // Set background + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + var rgb = opts.backgroundcolor; + fillRGB(parseInt(rgb.substr(0,2), 16), + parseInt(rgb.substr(2,2), 16), + parseInt(rgb.substr(4,2), 16)); + } + + // The return value is designed to accommodate both canvas pure-RGBA buffers + // and PNG's row-filter prefixed RGBA buffers. + return { buffer:image_buffer, ispng:true }; + } + + function fillRGB(r, g, b) { + var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; + + // This is made complex by the filter byte that prefixes each row... + var len = image_width * 4 + 1; + var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); + for (var i = 1; i < len; i += 4) { + row.writeUInt32BE(color, i); + } + image_buffer.fill(row); + } + + function end() { + if (!callback) { + return new Promise(makePNG); + } else { + makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); + } + } + + function makePNG(resolve, reject) { + // DEFLATE the image data + var bufs = []; + var buflen = 0; + var deflator = PNG_ZLIB.createDeflate({ + chunkSize: 32 * 1024, + level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, + strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); + deflator.on('error', reject); + deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); + deflator.on('end', returnPNG); + deflator.end(image_buffer); + + function returnPNG() { + var length = 8 + 12 + 13 + // PNG Header + IHDR chunk + 12 + PNG_TEXT.length + // tEXt + 12 + buflen + // IDAT + 12; // IEND + if (opts.dpi) { + length += 12 + 9; // pHYs + } + + // Emulate a byte-stream + var png = Buffer.alloc(length); + var pngoff = 0; // running offset into the png buffer + + write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header + writeIHDR(); + writeTEXT(); + if (opts.dpi) { + writePHYS(); + } + writeIDAT(); + writeIEND(); + + // Success + resolve(png); + + function writeIHDR() { + write32(13); // chunk length + var crcoff = pngoff; + + write('IHDR'); + write32(image_width); + write32(image_height); + write8(8); // bit depth + write8(PNGTYPE_TRUEALPHA); + write8(0); // compression default + write8(0); // filter default + write8(0); // no interlace + + writeCRC(crcoff); + } + function writeTEXT() { + write32(PNG_TEXT.length); // chunk length + var crcoff = pngoff; + + write('tEXt'); + write(PNG_TEXT); + writeCRC(crcoff); + } + function writePHYS() { + write32(9); + var crcoff = pngoff; + + var pxm = ((opts.dpi || 72) / 0.0254)|0; + write('pHYs'); + write32(pxm); // x-axis + write32(pxm); // y-axis + write8(1); // px/m (the only usable option) + writeCRC(crcoff); + } + function writeIDAT() { + write32(buflen); // chunk length + var crcoff = pngoff; + + write('IDAT'); + for (var i = 0; i < bufs.length; i++) { + bufs[i].copy(png, pngoff); + pngoff += bufs[i].length; + } + writeCRC(crcoff); + } + function writeIEND() { + write32(0); // chunk length; + var crcoff = pngoff; + + write('IEND'); + writeCRC(crcoff); + } + + function write(s) { + png.write(s, pngoff, 'binary'); + pngoff += s.length; + } + function write32(v) { + png.writeUInt32BE(v, pngoff); + pngoff += 4; + } + function write16(v) { + png.writeUInt16BE(v, pngoff); + pngoff += 2; + } + function write8(v) { + png[pngoff++] = v; + } + function writeCRC(off) { + var crc = -1; + while (off < pngoff) { + crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); + } + write32((crc ^ -1) >>> 0); + } + } + } } // drawing-svg.js // @@ -1793,7 +1793,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -1960,8 +1960,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -1970,23 +1970,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -2039,10 +2039,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + @@ -2242,7 +2240,7 @@ function LoadFont() { // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -2271,26 +2269,26 @@ function LoadFont() { var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -2299,11 +2297,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -2339,7 +2337,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -2347,9 +2345,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -2430,7 +2428,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -2453,7 +2451,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -2464,7 +2462,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -2509,13 +2507,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -2526,9 +2524,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -2537,7 +2535,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -2575,7 +2573,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -2619,14 +2617,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -2635,7 +2633,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -2657,22 +2655,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -2685,7 +2683,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -2734,10 +2732,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -2749,14 +2747,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -2764,22 +2762,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -2841,8 +2839,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -2868,7 +2866,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -2877,13 +2875,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -2935,8 +2933,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -2945,16 +2943,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -2978,23 +2976,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -3013,12 +3011,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -3070,11 +3068,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -3133,7 +3131,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -3144,8 +3142,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -3168,7 +3166,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -3183,8 +3181,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -3215,7 +3213,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -3226,7 +3224,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -3268,7 +3266,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -3277,7 +3275,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -3312,7 +3310,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -3396,7 +3394,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -3425,18 +3423,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -3446,15 +3444,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -3468,16 +3466,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -3489,27 +3487,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -3517,11 +3515,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -3529,21 +3527,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -3590,11 +3588,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -3614,7 +3612,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -3645,18 +3643,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -3691,55 +3689,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -3772,9 +3770,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -3829,8 +3827,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -3872,9 +3870,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -3884,7 +3882,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -3894,42 +3892,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -3937,48 +3935,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -3988,14 +3986,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -4004,7 +4002,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -4015,7 +4013,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -4024,7 +4022,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -4037,107 +4035,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/dist/bwip-js.d.ts b/dist/bwip-js.d.ts index 0c6333df..58de5161 100644 --- a/dist/bwip-js.d.ts +++ b/dist/bwip-js.d.ts @@ -1,4 +1,4 @@ -// Type definitions for bwip-js 4.2.0 (2024-01-02) +// Type definitions for bwip-js 4.3.0 (2024-03-12) // // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT // @@ -135,7 +135,7 @@ declare namespace BwipJs { ): | Array<{ bbs: number[]; bhs: number[]; sbs: number[] }> | Array<{ pixs: number[]; pixx: number; pixy: number; height: number; width: number }>; - + export const BWIPP_VERSION: string; export const BWIPJS_VERSION: string; diff --git a/dist/bwip-js.js b/dist/bwip-js.js index a2a7052e..db2b4965 100644 --- a/dist/bwip-js.js +++ b/dist/bwip-js.js @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -37,11 +37,11 @@ module.exports = factory(); } else { root.bwipjs = factory(); - } + } }(typeof self !== 'undefined' ? self : this, function () { // exports.js -const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; +const BWIPJS_VERSION = '4.3.0 (2024-03-12)'; // bwipjs.toCanvas(canvas, options) // bwipjs.toCanvas(options, canvas) @@ -55,11 +55,11 @@ const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; // // Returns the HTMLCanvasElement. function ToCanvas(cvs, opts) { - if (typeof opts == 'string' || opts instanceof HTMLCanvasElement) { + if (typeof opts == 'string' || opts instanceof HTMLCanvasElement) { let tmp = cvs; cvs = opts; opts = tmp; - } + } return _ToAny(bwipp_lookup(opts.bcid), opts, cvs); } // Entry point for the symbol-specific exports @@ -74,7 +74,7 @@ function ToCanvas(cvs, opts) { // 'string` can be either an `id` or query selector returning a single canvas element. function _ToAny(encoder, opts, drawing) { if (typeof opts == 'string') { - var canvas = document.getElementById(opts) || document.querySelector(opts); + var canvas = document.getElementById(opts) || document.querySelector(opts); if (!(canvas instanceof HTMLCanvasElement)) { throw new Error('bwipjs: `' + opts + '`: not a canvas'); } @@ -85,16 +85,16 @@ function _ToAny(encoder, opts, drawing) { opts = drawing; drawing = DrawingCanvas(canvas); } else if (typeof drawing == 'string') { - var canvas = document.getElementById(drawing) || document.querySelector(drawing); + var canvas = document.getElementById(drawing) || document.querySelector(drawing); if (!(canvas instanceof HTMLCanvasElement)) { throw new Error('bwipjs: `' + drawing + '`: not a canvas'); } drawing = DrawingCanvas(canvas); } else if (drawing instanceof HTMLCanvasElement) { drawing = DrawingCanvas(drawing); - } else if (!drawing || typeof drawing != 'object' || !drawing.init) { + } else if (!drawing || typeof drawing != 'object' || !drawing.init) { throw new Error('bwipjs: not a canvas or drawing object'); - } + } return _Render(encoder, opts, drawing); } @@ -109,7 +109,7 @@ function _ToAny(encoder, opts, drawing) { // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -119,18 +119,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; - - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; + + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -158,34 +158,34 @@ function FixupOptions(opts) { } } - return opts; - - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + return opts; + + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -201,56 +201,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; - - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); - - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } - - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } - - // Scale the image - bw.scale(scaleX, scaleY); - - // Call into the BWIPP cross-compiled code and render the image. + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; + + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); + + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } + + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } + + // Scale the image + bw.scale(scaleX, scaleY); + + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -262,57 +262,57 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } // bwip-js // Barcode Writer in Pure JavaScript // https://github.com/metafloor/bwip-js // // This code was automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 +// Barcode Writer in Pure PostScript - Version 2024-01-03 // // Copyright (c) 2011-2024 Mark Warren -// Copyright (c) 2004-2023 Terry Burton +// Copyright (c) 2004-2024 Terry Burton // // Licensed MIT. See the LICENSE file in the bwip-js root directory. // bwip-js/barcode-hdr.js @@ -326,9 +326,9 @@ var $k = []; // operand stack var $_ = {}; // base of the dictionary stack // Array ctor -// $a() : Build a new array up to the Infinity-marker on the stack. -// $a(arr) : Convert native array to a "view" of the array. -// $a(len) : Create a new array of length `len` +// $a() : Build a new array up to the Infinity-marker on the stack. +// $a(arr) : Convert native array to a "view" of the array. +// $a(len) : Create a new array of length `len` function $a(a) { if (!arguments.length) { for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); @@ -349,7 +349,7 @@ function $a(a) { } // dict ctor -// $d() : look for the Infinity marker on the stack +// $d() : look for the Infinity marker on the stack function $d() { // Build the dictionary in the order the keys/values were pushed so enumeration // occurs in the correct sequence. @@ -380,9 +380,9 @@ function $d() { } // string ctor -// s(number) : create zero-filled string of number-length -// s(string) : make a copy of the string -// s(uint8[]) : make a copy of the string +// s(number) : create zero-filled string of number-length +// s(string) : make a copy of the string +// s(uint8[]) : make a copy of the string // // Returns a Uint8Array-string. function $s(v) { @@ -452,8 +452,8 @@ function $arrcpy(dst, src) { } // cvs operator - convert a value to its string representation -// s : string to store into -// v : any value +// s : string to store into +// v : any value function $cvs(s, v) { var t = typeof v; if (t == 'number' || t == 'boolean' || v === null) { @@ -477,9 +477,9 @@ function $cvi(s) { } // cvrs operator - convert a number to a radix string -// s : string to store into -// n : number -// r : radix +// s : string to store into +// n : number +// r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } @@ -505,8 +505,8 @@ function $cvx(s) { } // get operator -// s : source -// k : key +// s : source +// k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; @@ -524,9 +524,9 @@ function $get(s, k) { } // put operator -// d : dest -// k : key -// v : value +// d : dest +// k : key +// v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; @@ -544,9 +544,9 @@ function $put(d, k, v) { } // getinterval operator -// s : src -// o : offset -// l : length +// s : src +// o : offset +// l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); @@ -562,9 +562,9 @@ function $geti(s, o, l) { } // putinterval operator -// d : dst -// o : offset -// s : src +// d : dst +// o : offset +// s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { if (typeof s == 'string') { @@ -619,14 +619,14 @@ function $type(v) { // filetype // fonttype // gstatetype - // marktype (v === Infinity) + // marktype (v === Infinity) // nametype // savetype } // anchorsearch operator -// string seek anchorsearch suffix seek true %if-found -// string false %if-not-found +// string seek anchorsearch suffix seek true %if-found +// string false %if-not-found function $anchorsearch(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -657,8 +657,8 @@ function $anchorsearch(str, seek) { } // search operator -// string seek search suffix match prefix true %if-found -// string false %if-not-found +// string seek search suffix match prefix true %if-found +// string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -959,7 +959,7 @@ function bwipp_parseinput() { delete $_.fncvals[_E]; //#210 if (!bwipp_parseinput.__225__) { //#225 $_ = Object.create($_); //#225 - $k[$j++] = Infinity; //#223 + $k[$j++] = Infinity; //#214 var _I = $a(['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', "", "", 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US']); //#219 $k[$j++] = 0; //#223 for (var _J = 0, _K = _I.length; _J < _K; _J++) { //#223 @@ -1190,13 +1190,12 @@ function bwipp_parseinput() { } //#353 $_ = Object.getPrototypeOf($_); //#356 $_ = Object.getPrototypeOf($_); //#358 -} - +} //bwipp_parseinput function bwipp_gs1process() { $_ = Object.create($_); //#383 bwipp_loadctx(bwipp_gs1process) //#385 - if (!bwipp_gs1process.__2289__) { //#2289 - $_ = Object.create($_); //#2289 + if (!bwipp_gs1process.__2299__) { //#2299 + $_ = Object.create($_); //#2299 var _1 = new Map([ ["cset", 'N'], ["min", 18], @@ -1239,7544 +1238,7804 @@ function bwipp_gs1process() { var _F = $a([_E]); //#412 var _G = $a(["37"]); //#414 var _H = $a([_G]); //#414 - var _I = new Map([ + var _I = $a([_H]); //#414 + var _J = new Map([ ["parts", _F], - ["req", _H] + ["req", _I] ]); //#414 - var _K = new Map([ + var _K = $a([]); //#421 + var _L = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], - ["linters", $a([])] + ["linters", _K] ]); //#421 - var _O = new Map([ - ["parts", $a([_K])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _T = new Map([ + ["parts", $a([_L])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#423 - var _Q = new Map([ + var _V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#430 - var _U = new Map([ - ["parts", $a([_Q])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _d = new Map([ + ["parts", $a([_V])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#432 - var _W = new Map([ + var _f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#439 - var _a = new Map([ - ["parts", $a([_W])], - ["req", $a([$a(["8020"])])] + var _k = new Map([ + ["parts", $a([_f])], + ["req", $a([$a([$a(["8020"])])])] ]); //#441 - var _c = new Map([ + var _m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#448 - var _g = new Map([ - ["parts", $a([_c])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _u = new Map([ + ["parts", $a([_m])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#450 - var _i = new Map([ + var _w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#459 - var _m = new Map([ - ["parts", $a([_i])], - ["req", $a([$a(["01", "02", "255", "8006", "8026"])])] + var _15 = new Map([ + ["parts", $a([_w])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["255"]), $a(["8006"]), $a(["8026"])])])] ]); //#461 - var _o = new Map([ + var _17 = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] ]); //#468 - var _s = new Map([ - ["parts", $a([_o])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1F = new Map([ + ["parts", $a([_17])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#470 - var _u = new Map([ + var _1H = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#477 - var _z = new Map([ - ["parts", $a([_u])], + var _1O = new Map([ + ["parts", $a([_1H])], ["ex", $a(["235"])], - ["req", $a([$a(["01", "8006"])])] + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#480 - var _11 = new Map([ + var _1Q = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#487 - var _15 = new Map([ - ["parts", $a([_11])], - ["req", $a([$a(["01"])])] + var _1V = new Map([ + ["parts", $a([_1Q])], + ["req", $a([$a([$a(["01"])])])] ]); //#489 - var _17 = new Map([ + var _1X = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] ]); //#496 - var _1B = new Map([ - ["parts", $a([_17])], - ["req", $a([$a(["01"])])] + var _1c = new Map([ + ["parts", $a([_1X])], + ["req", $a([$a([$a(["01"])])])] ]); //#498 - var _1D = new Map([ + var _1e = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#505 - var _1H = new Map([ - ["parts", $a([_1D])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1m = new Map([ + ["parts", $a([_1e])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#507 - var _1J = new Map([ + var _1o = new Map([ ["cset", 'N'], ["min", 1], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#515 - var _1N = new Map([ - ["parts", $a([_1J])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1w = new Map([ + ["parts", $a([_1o])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#517 - var _1P = new Map([ + var _1y = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#524 - var _1T = new Map([ - ["parts", $a([_1P])], - ["req", $a([$a(["01"])])] + var _22 = $a([$a([$a(["01"])])]); //#526 + var _23 = new Map([ + ["parts", $a([_1y])], + ["req", _22] ]); //#526 - var _1V = new Map([ + var _25 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#533 - var _1a = new Map([ - ["parts", $a([_1V])], - ["req", $a([$a(["01", "8006"]), $a(["21"])])] + var _2D = new Map([ + ["parts", $a([_25])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["21"])])])] ]); //#535 - var _1c = new Map([ + var _2F = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#542 - var _1g = new Map([ - ["parts", $a([_1c])], - ["req", $a([$a(["01", "8006"])])] + var _2L = new Map([ + ["parts", $a([_2F])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#544 - var _1i = new Map([ + var _2N = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#551 - var _1k = new Map([ + var _2P = new Map([ ["cset", 'X'], ["min", 1], ["max", 17], ["opt", true], ["linters", $a([])] ]); //#552 - var _1n = new Map([ - ["parts", $a([_1i, _1k])], + var _2S = new Map([ + ["parts", $a([_2N, _2P])], ["dlpkey", $a([])] ]); //#554 - var _1p = new Map([ + var _2U = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#561 - var _1t = new Map([ - ["parts", $a([_1p])], - ["req", $a([$a(["414"])])] + var _2Z = new Map([ + ["parts", $a([_2U])], + ["req", $a([$a([$a(["414"])])])] ]); //#563 - var _1v = new Map([ + var _2b = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#570 - var _1x = new Map([ + var _2d = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", true], ["linters", $a([])] ]); //#571 - var _21 = new Map([ - ["parts", $a([_1v, _1x])], + var _2h = new Map([ + ["parts", $a([_2b, _2d])], ["ex", $a(["01", "02", "415", "8006", "8020", "8026"])], ["dlpkey", $a([])] ]); //#574 - var _22 = $a([]); //#581 - var _23 = new Map([ + var _2j = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], - ["linters", _22] + ["linters", $a([])] ]); //#581 - var _27 = new Map([ - ["parts", $a([_23])], - ["req", $a([$a(["01", "02"])])] + var _2p = new Map([ + ["parts", $a([_2j])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#583 - var _29 = new Map([ + var _2r = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#590 - var _2E = new Map([ - ["parts", $a([_29])], + var _2y = new Map([ + ["parts", $a([_2r])], ["ex", $a(["310n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#593 - var _2G = new Map([ + var _30 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#605 - var _2L = new Map([ - ["parts", $a([_2G])], + var _37 = new Map([ + ["parts", $a([_30])], ["ex", $a(["311n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#608 - var _2N = new Map([ + var _39 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#620 - var _2S = new Map([ - ["parts", $a([_2N])], + var _3G = new Map([ + ["parts", $a([_39])], ["ex", $a(["312n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#623 - var _2U = new Map([ + var _3I = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#635 - var _2Z = new Map([ - ["parts", $a([_2U])], + var _3P = new Map([ + ["parts", $a([_3I])], ["ex", $a(["313n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#638 - var _2b = new Map([ + var _3R = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#650 - var _2g = new Map([ - ["parts", $a([_2b])], + var _3Y = new Map([ + ["parts", $a([_3R])], ["ex", $a(["314n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#653 - var _2i = new Map([ + var _3a = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#665 - var _2n = new Map([ - ["parts", $a([_2i])], + var _3h = new Map([ + ["parts", $a([_3a])], ["ex", $a(["315n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#668 - var _2p = new Map([ + var _3j = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#680 - var _2u = new Map([ - ["parts", $a([_2p])], + var _3q = new Map([ + ["parts", $a([_3j])], ["ex", $a(["316n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#683 - var _2w = new Map([ + var _3s = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#695 - var _31 = new Map([ - ["parts", $a([_2w])], + var _3z = new Map([ + ["parts", $a([_3s])], ["ex", $a(["320n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#698 - var _33 = new Map([ + var _41 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#710 - var _38 = new Map([ - ["parts", $a([_33])], + var _48 = new Map([ + ["parts", $a([_41])], ["ex", $a(["321n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#713 - var _3A = new Map([ + var _4A = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#725 - var _3F = new Map([ - ["parts", $a([_3A])], + var _4H = new Map([ + ["parts", $a([_4A])], ["ex", $a(["322n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#728 - var _3H = new Map([ + var _4J = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#740 - var _3M = new Map([ - ["parts", $a([_3H])], + var _4Q = new Map([ + ["parts", $a([_4J])], ["ex", $a(["323n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#743 - var _3O = new Map([ + var _4S = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#755 - var _3T = new Map([ - ["parts", $a([_3O])], + var _4Z = new Map([ + ["parts", $a([_4S])], ["ex", $a(["324n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#758 - var _3V = new Map([ + var _4b = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#770 - var _3a = new Map([ - ["parts", $a([_3V])], + var _4i = new Map([ + ["parts", $a([_4b])], ["ex", $a(["325n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#773 - var _3c = new Map([ + var _4k = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#785 - var _3h = new Map([ - ["parts", $a([_3c])], + var _4r = new Map([ + ["parts", $a([_4k])], ["ex", $a(["326n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#788 - var _3j = new Map([ + var _4t = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#800 - var _3o = new Map([ - ["parts", $a([_3j])], + var _50 = new Map([ + ["parts", $a([_4t])], ["ex", $a(["327n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#803 - var _3q = new Map([ + var _52 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#815 - var _3v = new Map([ - ["parts", $a([_3q])], + var _59 = new Map([ + ["parts", $a([_52])], ["ex", $a(["328n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#818 - var _3x = new Map([ + var _5B = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#830 - var _42 = new Map([ - ["parts", $a([_3x])], + var _5I = new Map([ + ["parts", $a([_5B])], ["ex", $a(["329n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#833 - var _44 = new Map([ + var _5K = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#845 - var _49 = new Map([ - ["parts", $a([_44])], + var _5R = new Map([ + ["parts", $a([_5K])], ["ex", $a(["330n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#848 - var _4B = new Map([ + var _5T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#860 - var _4G = new Map([ - ["parts", $a([_4B])], + var _5a = new Map([ + ["parts", $a([_5T])], ["ex", $a(["331n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#863 - var _4I = new Map([ + var _5c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#875 - var _4N = new Map([ - ["parts", $a([_4I])], + var _5j = new Map([ + ["parts", $a([_5c])], ["ex", $a(["332n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#878 - var _4P = new Map([ + var _5l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#890 - var _4U = new Map([ - ["parts", $a([_4P])], + var _5s = new Map([ + ["parts", $a([_5l])], ["ex", $a(["333n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#893 - var _4W = new Map([ + var _5u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#905 - var _4b = new Map([ - ["parts", $a([_4W])], + var _61 = new Map([ + ["parts", $a([_5u])], ["ex", $a(["334n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#908 - var _4d = new Map([ + var _63 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#920 - var _4i = new Map([ - ["parts", $a([_4d])], + var _6A = new Map([ + ["parts", $a([_63])], ["ex", $a(["335n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#923 - var _4k = new Map([ + var _6C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#935 - var _4p = new Map([ - ["parts", $a([_4k])], + var _6J = new Map([ + ["parts", $a([_6C])], ["ex", $a(["336n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#938 - var _4r = new Map([ + var _6L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#950 - var _4w = new Map([ - ["parts", $a([_4r])], + var _6R = new Map([ + ["parts", $a([_6L])], ["ex", $a(["337n"])], - ["req", $a([$a(["01"])])] + ["req", $a([$a([$a(["01"])])])] ]); //#953 - var _4y = new Map([ + var _6T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#965 - var _53 = new Map([ - ["parts", $a([_4y])], + var _6a = new Map([ + ["parts", $a([_6T])], ["ex", $a(["340n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#968 - var _55 = new Map([ + var _6c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#980 - var _5A = new Map([ - ["parts", $a([_55])], + var _6j = new Map([ + ["parts", $a([_6c])], ["ex", $a(["341n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#983 - var _5C = new Map([ + var _6l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#995 - var _5H = new Map([ - ["parts", $a([_5C])], + var _6s = new Map([ + ["parts", $a([_6l])], ["ex", $a(["342n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#998 - var _5J = new Map([ + var _6u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1010 - var _5O = new Map([ - ["parts", $a([_5J])], + var _71 = new Map([ + ["parts", $a([_6u])], ["ex", $a(["343n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1013 - var _5Q = new Map([ + var _73 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1025 - var _5V = new Map([ - ["parts", $a([_5Q])], + var _7A = new Map([ + ["parts", $a([_73])], ["ex", $a(["344n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1028 - var _5X = new Map([ + var _7C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1040 - var _5c = new Map([ - ["parts", $a([_5X])], + var _7J = new Map([ + ["parts", $a([_7C])], ["ex", $a(["345n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1043 - var _5e = new Map([ + var _7L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1055 - var _5j = new Map([ - ["parts", $a([_5e])], + var _7S = new Map([ + ["parts", $a([_7L])], ["ex", $a(["346n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1058 - var _5l = new Map([ + var _7U = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1070 - var _5q = new Map([ - ["parts", $a([_5l])], + var _7b = new Map([ + ["parts", $a([_7U])], ["ex", $a(["347n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1073 - var _5s = new Map([ + var _7d = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1085 - var _5x = new Map([ - ["parts", $a([_5s])], + var _7k = new Map([ + ["parts", $a([_7d])], ["ex", $a(["348n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1088 - var _5z = new Map([ + var _7m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1100 - var _64 = new Map([ - ["parts", $a([_5z])], + var _7t = new Map([ + ["parts", $a([_7m])], ["ex", $a(["349n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1103 - var _66 = new Map([ + var _7v = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1115 - var _6B = new Map([ - ["parts", $a([_66])], + var _82 = new Map([ + ["parts", $a([_7v])], ["ex", $a(["350n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1118 - var _6D = new Map([ + var _84 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1130 - var _6I = new Map([ - ["parts", $a([_6D])], + var _8B = new Map([ + ["parts", $a([_84])], ["ex", $a(["351n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1133 - var _6K = new Map([ + var _8D = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1145 - var _6P = new Map([ - ["parts", $a([_6K])], + var _8K = new Map([ + ["parts", $a([_8D])], ["ex", $a(["352n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1148 - var _6R = new Map([ + var _8M = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1160 - var _6W = new Map([ - ["parts", $a([_6R])], + var _8T = new Map([ + ["parts", $a([_8M])], ["ex", $a(["353n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1163 - var _6Y = new Map([ + var _8V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1175 - var _6d = new Map([ - ["parts", $a([_6Y])], + var _8c = new Map([ + ["parts", $a([_8V])], ["ex", $a(["354n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1178 - var _6f = new Map([ + var _8e = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1190 - var _6k = new Map([ - ["parts", $a([_6f])], + var _8l = new Map([ + ["parts", $a([_8e])], ["ex", $a(["355n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1193 - var _6m = new Map([ + var _8n = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1205 - var _6r = new Map([ - ["parts", $a([_6m])], + var _8u = new Map([ + ["parts", $a([_8n])], ["ex", $a(["356n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1208 - var _6t = new Map([ + var _8w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1220 - var _6y = new Map([ - ["parts", $a([_6t])], + var _93 = new Map([ + ["parts", $a([_8w])], ["ex", $a(["357n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1223 - var _70 = new Map([ + var _95 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1235 - var _75 = new Map([ - ["parts", $a([_70])], + var _9C = new Map([ + ["parts", $a([_95])], ["ex", $a(["360n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1238 - var _77 = new Map([ + var _9E = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1250 - var _7C = new Map([ - ["parts", $a([_77])], + var _9L = new Map([ + ["parts", $a([_9E])], ["ex", $a(["361n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1253 - var _7E = new Map([ + var _9N = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1265 - var _7J = new Map([ - ["parts", $a([_7E])], + var _9U = new Map([ + ["parts", $a([_9N])], ["ex", $a(["362n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1268 - var _7L = new Map([ + var _9W = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1280 - var _7Q = new Map([ - ["parts", $a([_7L])], + var _9d = new Map([ + ["parts", $a([_9W])], ["ex", $a(["363n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1283 - var _7S = new Map([ + var _9f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1295 - var _7X = new Map([ - ["parts", $a([_7S])], + var _9m = new Map([ + ["parts", $a([_9f])], ["ex", $a(["364n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1298 - var _7Z = new Map([ + var _9o = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1310 - var _7e = new Map([ - ["parts", $a([_7Z])], + var _9v = new Map([ + ["parts", $a([_9o])], ["ex", $a(["365n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1313 - var _7g = new Map([ + var _9x = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1325 - var _7l = new Map([ - ["parts", $a([_7g])], + var _A4 = new Map([ + ["parts", $a([_9x])], ["ex", $a(["366n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1328 - var _7n = new Map([ + var _A6 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1340 - var _7s = new Map([ - ["parts", $a([_7n])], + var _AD = new Map([ + ["parts", $a([_A6])], ["ex", $a(["367n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1343 - var _7u = new Map([ + var _AF = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1355 - var _7z = new Map([ - ["parts", $a([_7u])], + var _AM = new Map([ + ["parts", $a([_AF])], ["ex", $a(["368n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1358 - var _81 = new Map([ + var _AO = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1370 - var _86 = new Map([ - ["parts", $a([_81])], + var _AV = new Map([ + ["parts", $a([_AO])], ["ex", $a(["369n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1373 - var _88 = new Map([ + var _AX = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], ["linters", $a([])] ]); //#1385 - var _8D = new Map([ - ["parts", $a([_88])], - ["req", $a([$a(["00"]), $a(["02", "8026"])])] + var _Af = new Map([ + ["parts", $a([_AX])], + ["req", $a([$a([$a(["00"])]), $a([$a(["02"]), $a(["8026"])])])] ]); //#1387 - var _8F = new Map([ + var _Ah = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1394 - var _8K = new Map([ - ["parts", $a([_8F])], + var _Ao = new Map([ + ["parts", $a([_Ah])], ["ex", $a(["390n", "391n", "394n", "8111"])], - ["req", $a([$a(["255", "8020"])])] + ["req", $a([$a([$a(["255"]), $a(["8020"])])])] ]); //#1397 - var _8M = new Map([ + var _Aq = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1413 - var _8O = new Map([ + var _As = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1414 - var _8T = new Map([ - ["parts", $a([_8M, _8O])], + var _Ay = new Map([ + ["parts", $a([_Aq, _As])], ["ex", $a(["391n"])], - ["req", $a([$a(["8020"])])] + ["req", $a([$a([$a(["8020"])])])] ]); //#1417 - var _8V = new Map([ + var _B0 = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1433 - var _8b = new Map([ - ["parts", $a([_8V])], + var _BC = new Map([ + ["parts", $a([_B0])], ["ex", $a(["392n", "393n"])], - ["req", $a([$a(["01"]), $a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["01"])]), $a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1436 - var _8d = new Map([ + var _BE = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1452 - var _8f = new Map([ + var _BG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1453 - var _8k = new Map([ - ["parts", $a([_8d, _8f])], + var _BQ = new Map([ + ["parts", $a([_BE, _BG])], ["ex", $a(["393n"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1456 - var _8m = new Map([ + var _BS = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] ]); //#1472 - var _8r = new Map([ - ["parts", $a([_8m])], + var _BY = new Map([ + ["parts", $a([_BS])], ["ex", $a(["394n", "8111"])], - ["req", $a([$a(["255"])])] + ["req", $a([$a([$a(["255"])])])] ]); //#1475 - var _8t = new Map([ + var _Ba = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1485 - var _8y = new Map([ - ["parts", $a([_8t])], + var _Bk = new Map([ + ["parts", $a([_Ba])], ["ex", $a(["392n", "393n", "395n", "8005"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1488 - var _90 = new Map([ + var _Bm = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1500 - var _92 = new Map([ - ["parts", $a([_90])] + var _Bo = new Map([ + ["parts", $a([_Bm])] ]); //#1500 - var _94 = new Map([ + var _Bq = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] ]); //#1508 - var _97 = new Map([ - ["parts", $a([_94])], + var _Bt = new Map([ + ["parts", $a([_Bq])], ["dlpkey", $a([])] ]); //#1510 - var _99 = new Map([ + var _Bv = new Map([ ["cset", 'N'], ["min", 17], ["max", 17], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1517 - var _9C = new Map([ - ["parts", $a([_99])], + var _By = new Map([ + ["parts", $a([_Bv])], ["dlpkey", $a([])] ]); //#1519 - var _9E = new Map([ + var _C0 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1526 - var _9I = new Map([ - ["parts", $a([_9E])], - ["req", $a([$a(["00"])])] + var _C5 = new Map([ + ["parts", $a([_C0])], + ["req", $a([$a([$a(["00"])])])] ]); //#1528 - var _9K = new Map([ + var _C7 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1535 - var _9M = new Map([ - ["parts", $a([_9K])] + var _C9 = new Map([ + ["parts", $a([_C7])] ]); //#1535 - var _9O = new Map([ + var _CB = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1546 - var _9T = new Map([ - ["parts", $a([_9O])], + var _CG = new Map([ + ["parts", $a([_CB])], ["dlpkey", $a([$a(["254"]), $a(["7040"])])] ]); //#1548 - var _9V = new Map([ + var _CI = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1555 - var _9b = new Map([ - ["parts", $a([_9V])], - ["req", $a([$a(["8020"])])], + var _CP = new Map([ + ["parts", $a([_CI])], + ["req", $a([$a([$a(["8020"])])])], ["dlpkey", $a([$a(["8020"])])] ]); //#1558 - var _9d = new Map([ + var _CR = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1565 - var _9f = new Map([ - ["parts", $a([_9d])] + var _CT = new Map([ + ["parts", $a([_CR])] ]); //#1565 - var _9h = new Map([ + var _CV = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1573 - var _9l = new Map([ - ["parts", $a([_9h])], + var _CZ = new Map([ + ["parts", $a([_CV])], ["dlpkey", $a([$a(["7040"])])] ]); //#1575 - var _9n = new Map([ + var _Cb = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#1582 - var _9q = new Map([ - ["parts", $a([_9n])], + var _Ce = new Map([ + ["parts", $a([_Cb])], ["ex", $a(["421"])] ]); //#1584 - var _9s = new Map([ + var _Cg = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1591 - var _9u = new Map([ + var _Ci = new Map([ ["cset", 'X'], ["min", 1], ["max", 9], ["opt", false], ["linters", $a([])] ]); //#1592 - var _9x = new Map([ - ["parts", $a([_9s, _9u])], + var _Cl = new Map([ + ["parts", $a([_Cg, _Ci])], ["ex", $a(["4307"])] ]); //#1594 - var _9z = new Map([ + var _Cn = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1601 - var _A4 = new Map([ - ["parts", $a([_9z])], + var _Cw = new Map([ + ["parts", $a([_Cn])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#1604 - var _A6 = new Map([ + var _Cy = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1611 - var _AB = new Map([ - ["parts", $a([_A6])], + var _D5 = new Map([ + ["parts", $a([_Cy])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1614 - var _AD = new Map([ + var _D7 = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1621 - var _AI = new Map([ - ["parts", $a([_AD])], + var _DE = new Map([ + ["parts", $a([_D7])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1624 - var _AK = new Map([ + var _DG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1631 - var _AP = new Map([ - ["parts", $a([_AK])], + var _DN = new Map([ + ["parts", $a([_DG])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1634 - var _AR = new Map([ + var _DP = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1641 - var _AV = new Map([ - ["parts", $a([_AR])], - ["req", $a([$a(["01", "02"])])] + var _DV = new Map([ + ["parts", $a([_DP])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1643 - var _AX = new Map([ + var _DX = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] ]); //#1650 - var _Ac = new Map([ - ["parts", $a([_AX])], - ["req", $a([$a(["01", "02"]), $a(["422"])])] + var _Df = new Map([ + ["parts", $a([_DX])], + ["req", $a([$a([$a(["01"]), $a(["02"])]), $a([$a(["422"])])])] ]); //#1652 - var _Ae = new Map([ + var _Dh = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1659 - var _Ai = new Map([ - ["parts", $a([_Ae])], - ["req", $a([$a(["00"])])] + var _Dm = new Map([ + ["parts", $a([_Dh])], + ["req", $a([$a([$a(["00"])])])] ]); //#1661 - var _Ak = new Map([ + var _Do = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1669 - var _Ao = new Map([ - ["parts", $a([_Ak])], - ["req", $a([$a(["00"])])] + var _Dt = new Map([ + ["parts", $a([_Do])], + ["req", $a([$a([$a(["00"])])])] ]); //#1671 - var _Aq = new Map([ + var _Dv = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1678 - var _Au = new Map([ - ["parts", $a([_Aq])], - ["req", $a([$a(["4302"])])] + var _E0 = new Map([ + ["parts", $a([_Dv])], + ["req", $a([$a([$a(["4302"])])])] ]); //#1680 - var _Aw = new Map([ + var _E2 = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1687 - var _B0 = new Map([ - ["parts", $a([_Aw])], - ["req", $a([$a(["00"])])] + var _E7 = new Map([ + ["parts", $a([_E2])], + ["req", $a([$a([$a(["00"])])])] ]); //#1689 - var _B2 = new Map([ + var _E9 = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] ]); //#1698 - var _B6 = new Map([ - ["parts", $a([_B2])], - ["req", $a([$a(["00"])])] + var _EE = new Map([ + ["parts", $a([_E9])], + ["req", $a([$a([$a(["00"])])])] ]); //#1700 - var _B8 = new Map([ + var _EG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1707 - var _BC = new Map([ - ["parts", $a([_B8])], - ["req", $a([$a(["00"])])] + var _EL = new Map([ + ["parts", $a([_EG])], + ["req", $a([$a([$a(["00"])])])] ]); //#1709 - var _BE = new Map([ + var _EN = new Map([ ["cset", 'N'], - ["min", 20], - ["max", 20], + ["min", 10], + ["max", 10], ["opt", false], - ["linters", $a(['lintlatlong'])] + ["linters", $a(['lintlatitude'])] ]); //#1716 - var _BI = new Map([ - ["parts", $a([_BE])], - ["req", $a([$a(["00"])])] - ]); //#1718 - var _BK = new Map([ + var _EP = new Map([ + ["cset", 'N'], + ["min", 10], + ["max", 10], + ["opt", false], + ["linters", $a(['lintlongitude'])] + ]); //#1717 + var _EU = new Map([ + ["parts", $a([_EN, _EP])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1719 + var _EW = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1725 - var _BO = new Map([ - ["parts", $a([_BK])], - ["req", $a([$a(["00"])])] - ]); //#1727 - var _BQ = new Map([ + ]); //#1726 + var _Eb = new Map([ + ["parts", $a([_EW])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1728 + var _Ed = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1735 - var _BU = new Map([ - ["parts", $a([_BQ])], - ["req", $a([$a(["00"])])] - ]); //#1737 - var _BW = new Map([ + ]); //#1736 + var _Ei = new Map([ + ["parts", $a([_Ed])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1738 + var _Ek = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1744 - var _Ba = new Map([ - ["parts", $a([_BW])], - ["req", $a([$a(["4312"])])] - ]); //#1746 - var _Bc = new Map([ + ]); //#1745 + var _Ep = new Map([ + ["parts", $a([_Ek])], + ["req", $a([$a([$a(["4312"])])])] + ]); //#1747 + var _Er = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1753 - var _Bg = new Map([ - ["parts", $a([_Bc])], - ["req", $a([$a(["00"])])] - ]); //#1755 - var _Bi = new Map([ + ]); //#1754 + var _Ew = new Map([ + ["parts", $a([_Er])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1756 + var _Ey = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] - ]); //#1764 - var _Bm = new Map([ - ["parts", $a([_Bi])], - ["req", $a([$a(["00"])])] - ]); //#1766 - var _Bo = new Map([ + ]); //#1765 + var _F3 = new Map([ + ["parts", $a([_Ey])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1767 + var _F5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1773 - var _Bs = new Map([ - ["parts", $a([_Bo])], - ["req", $a([$a(["00"])])] - ]); //#1775 - var _Bu = new Map([ + ]); //#1774 + var _FA = new Map([ + ["parts", $a([_F5])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1776 + var _FC = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1782 - var _By = new Map([ - ["parts", $a([_Bu])], - ["req", $a([$a(["00"])])] - ]); //#1784 - var _C0 = new Map([ + ]); //#1783 + var _FH = new Map([ + ["parts", $a([_FC])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1785 + var _FJ = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1791 - var _C4 = new Map([ - ["parts", $a([_C0])], - ["req", $a([$a(["00"])])] - ]); //#1793 - var _C6 = new Map([ + ]); //#1792 + var _FO = new Map([ + ["parts", $a([_FJ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1794 + var _FQ = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintyesno'])] - ]); //#1800 - var _CA = new Map([ - ["parts", $a([_C6])], - ["req", $a([$a(["00"])])] - ]); //#1802 - var _CC = new Map([ + ]); //#1801 + var _FV = new Map([ + ["parts", $a([_FQ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1803 + var _FX = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] - ]); //#1811 - var _CE = new Map([ + ]); //#1812 + var _FZ = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1812 - var _CI = new Map([ - ["parts", $a([_CC, _CE])], - ["req", $a([$a(["00"])])] - ]); //#1814 - var _CK = new Map([ + ]); //#1813 + var _Fe = new Map([ + ["parts", $a([_FX, _FZ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1815 + var _Fg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1822 - var _CO = new Map([ - ["parts", $a([_CK])], - ["req", $a([$a(["00"])])] - ]); //#1824 - var _CQ = new Map([ + ]); //#1823 + var _Fl = new Map([ + ["parts", $a([_Fg])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1825 + var _Fn = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a([])] - ]); //#1831 - var _CU = new Map([ - ["parts", $a([_CQ])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] - ]); //#1833 - var _CW = new Map([ + ]); //#1832 + var _Fv = new Map([ + ["parts", $a([_Fn])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] + ]); //#1834 + var _Fx = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1840 - var _Ca = new Map([ - ["parts", $a([_CW])], - ["req", $a([$a(["01", "02"])])] - ]); //#1842 - var _Cc = new Map([ + ]); //#1841 + var _G3 = new Map([ + ["parts", $a([_Fx])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1843 + var _G5 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1849 - var _Ce = new Map([ + ]); //#1850 + var _G7 = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1850 - var _Ci = new Map([ - ["parts", $a([_Cc, _Ce])], - ["req", $a([$a(["01", "02"])])] - ]); //#1852 - var _Ck = new Map([ + ]); //#1851 + var _GD = new Map([ + ["parts", $a([_G5, _G7])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1853 + var _GF = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#1859 - var _Cp = new Map([ - ["parts", $a([_Ck])], - ["req", $a([$a(["01"]), $a(["10"])])] - ]); //#1861 - var _Cr = new Map([ + ]); //#1860 + var _GM = new Map([ + ["parts", $a([_GF])], + ["req", $a([$a([$a(["01"])]), $a([$a(["10"])])])] + ]); //#1862 + var _GO = new Map([ ["cset", 'X'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a([])] - ]); //#1868 - var _Cv = new Map([ - ["parts", $a([_Cr])], - ["req", $a([$a(["01", "02"])])] - ]); //#1870 - var _Cx = new Map([ + ]); //#1869 + var _GU = new Map([ + ["parts", $a([_GO])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1871 + var _GW = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1877 - var _D1 = new Map([ - ["parts", $a([_Cx])], - ["req", $a([$a(["01", "02"])])] - ]); //#1879 - var _D3 = new Map([ + ]); //#1878 + var _Gc = new Map([ + ["parts", $a([_GW])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1880 + var _Ge = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1886 - var _D5 = new Map([ + ]); //#1887 + var _Gg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", true], ["linters", $a(['lintyymmdd'])] - ]); //#1887 - var _D9 = new Map([ - ["parts", $a([_D3, _D5])], - ["req", $a([$a(["01", "02"])])] - ]); //#1889 - var _DB = new Map([ + ]); //#1888 + var _Gm = new Map([ + ["parts", $a([_Ge, _Gg])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1890 + var _Go = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] - ]); //#1896 - var _DF = new Map([ - ["parts", $a([_DB])], - ["req", $a([$a(["01", "02"])])] - ]); //#1898 - var _DH = new Map([ + ]); //#1897 + var _Gu = new Map([ + ["parts", $a([_Go])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1899 + var _Gw = new Map([ ["cset", 'X'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#1905 - var _DL = new Map([ - ["parts", $a([_DH])], - ["req", $a([$a(["01", "02"])])] - ]); //#1907 - var _DN = new Map([ + ]); //#1906 + var _H2 = new Map([ + ["parts", $a([_Gw])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1908 + var _H4 = new Map([ ["cset", 'X'], ["min", 1], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#1914 - var _DR = new Map([ - ["parts", $a([_DN])], - ["req", $a([$a(["01", "02"])])] - ]); //#1916 - var _DT = new Map([ + ]); //#1915 + var _HA = new Map([ + ["parts", $a([_H4])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1917 + var _HC = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1923 - var _DV = new Map([ + ]); //#1924 + var _HE = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", true], ["linters", $a(['linthhmm'])] - ]); //#1924 - var _DZ = new Map([ - ["parts", $a([_DT, _DV])], - ["req", $a([$a(["01", "02"])])] - ]); //#1926 - var _Db = new Map([ + ]); //#1925 + var _HK = new Map([ + ["parts", $a([_HC, _HE])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1927 + var _HM = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1933 - var _Dg = new Map([ - ["parts", $a([_Db])], - ["req", $a([$a(["01", "8006"]), $a(["416"])])] - ]); //#1935 - var _Di = new Map([ + ]); //#1934 + var _HU = new Map([ + ["parts", $a([_HM])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["416"])])])] + ]); //#1936 + var _HW = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1942 - var _Dm = new Map([ - ["parts", $a([_Di])], - ["req", $a([$a(["01", "8006"])])] - ]); //#1944 - var _Do = new Map([ + ]); //#1943 + var _Hc = new Map([ + ["parts", $a([_HW])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#1945 + var _He = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1951 - var _Ds = new Map([ - ["parts", $a([_Do])], - ["req", $a([$a(["7021"])])] - ]); //#1953 - var _Du = new Map([ + ]); //#1952 + var _Hj = new Map([ + ["parts", $a([_He])], + ["req", $a([$a([$a(["7021"])])])] + ]); //#1954 + var _Hl = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#1960 - var _Dw = new Map([ - ["parts", $a([_Du])] - ]); //#1960 - var _Dy = new Map([ + ]); //#1961 + var _Hn = new Map([ + ["parts", $a([_Hl])] + ]); //#1961 + var _Hp = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166999'])] - ]); //#1968 - var _E0 = new Map([ + ]); //#1969 + var _Hr = new Map([ ["cset", 'X'], ["min", 1], ["max", 27], ["opt", false], ["linters", $a([])] - ]); //#1969 - var _E4 = new Map([ - ["parts", $a([_Dy, _E0])], - ["req", $a([$a(["01", "02"])])] - ]); //#1971 - var _E6 = new Map([ + ]); //#1970 + var _Hx = new Map([ + ["parts", $a([_Hp, _Hr])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1972 + var _Hz = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1987 - var _E8 = new Map([ + ]); //#1988 + var _I1 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1988 - var _EA = new Map([ + ]); //#1989 + var _I3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1989 - var _EC = new Map([ + ]); //#1990 + var _I5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintimporteridx'])] - ]); //#1990 - var _EE = new Map([ - ["parts", $a([_E6, _E8, _EA, _EC])] - ]); //#1990 - var _EG = new Map([ + ]); //#1991 + var _I7 = new Map([ + ["parts", $a([_Hz, _I1, _I3, _I5])] + ]); //#1991 + var _I9 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1998 - var _EK = new Map([ - ["parts", $a([_EG])], - ["req", $a([$a(["01"])])] - ]); //#2000 - var _EM = new Map([ + ]); //#1999 + var _IE = new Map([ + ["parts", $a([_I9])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2001 + var _IG = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#2012 - var _EO = new Map([ + ]); //#2013 + var _II = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] - ]); //#2013 - var _ES = new Map([ - ["parts", $a([_EM, _EO])], - ["req", $a([$a(["01", "8004"])])] - ]); //#2015 - var _EU = new Map([ + ]); //#2014 + var _IO = new Map([ + ["parts", $a([_IG, _II])], + ["req", $a([$a([$a(["01"]), $a(["8004"])])])] + ]); //#2016 + var _IQ = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2031 - var _EY = new Map([ - ["parts", $a([_EU])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2033 - var _Ea = new Map([ + ]); //#2032 + var _IW = new Map([ + ["parts", $a([_IQ])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2034 + var _IY = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintmediatype'])] - ]); //#2040 - var _Ee = new Map([ - ["parts", $a([_Ea])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2042 - var _Eg = new Map([ + ]); //#2041 + var _Ie = new Map([ + ["parts", $a([_IY])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2043 + var _Ig = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2049 - var _Ek = new Map([ - ["parts", $a([_Eg])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2051 - var _Em = new Map([ + ]); //#2050 + var _Im = new Map([ + ["parts", $a([_Ig])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2052 + var _Io = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2058 - var _Eo = new Map([ + ]); //#2059 + var _Iq = new Map([ ["cset", 'N'], ["min", 5], ["max", 5], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2059 - var _Eq = new Map([ + ]); //#2060 + var _Is = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2060 - var _Es = new Map([ + ]); //#2061 + var _Iu = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintwinding'])] - ]); //#2061 - var _Eu = new Map([ + ]); //#2062 + var _Iw = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#2062 - var _Ey = new Map([ - ["parts", $a([_Em, _Eo, _Eq, _Es, _Eu])], - ["req", $a([$a(["01"])])] - ]); //#2064 - var _F0 = new Map([ + ]); //#2063 + var _J1 = new Map([ + ["parts", $a([_Io, _Iq, _Is, _Iu, _Iw])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2065 + var _J3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2071 - var _F2 = new Map([ - ["parts", $a([_F0])] - ]); //#2071 - var _F4 = new Map([ + ]); //#2072 + var _J5 = new Map([ + ["parts", $a([_J3])] + ]); //#2072 + var _J7 = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintzero'])] - ]); //#2079 - var _F6 = new Map([ + ]); //#2080 + var _J9 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2080 - var _F8 = new Map([ + ]); //#2081 + var _JB = new Map([ ["cset", 'X'], ["min", 1], ["max", 16], ["opt", true], ["linters", $a([])] - ]); //#2081 - var _FB = new Map([ - ["parts", $a([_F4, _F6, _F8])], + ]); //#2082 + var _JE = new Map([ + ["parts", $a([_J7, _J9, _JB])], ["dlpkey", $a([])] - ]); //#2083 - var _FD = new Map([ + ]); //#2084 + var _JG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2090 - var _FH = new Map([ - ["parts", $a([_FD])], + ]); //#2091 + var _JK = new Map([ + ["parts", $a([_JG])], ["dlpkey", $a([$a(["7040"])])] - ]); //#2092 - var _FJ = new Map([ + ]); //#2093 + var _JM = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] - ]); //#2099 - var _FN = new Map([ - ["parts", $a([_FJ])], - ["req", $a([$a(["01", "02"])])] - ]); //#2101 - var _FP = new Map([ + ]); //#2100 + var _JS = new Map([ + ["parts", $a([_JM])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2102 + var _JU = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2108 - var _FR = new Map([ + ]); //#2109 + var _JW = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2109 - var _FW = new Map([ - ["parts", $a([_FP, _FR])], + ]); //#2110 + var _Jb = new Map([ + ["parts", $a([_JU, _JW])], ["ex", $a(["01", "37"])], ["dlpkey", $a([$a(["22", "10", "21"])])] - ]); //#2112 - var _FY = new Map([ + ]); //#2113 + var _Jd = new Map([ ["cset", 'X'], ["min", 1], ["max", 34], ["opt", false], ["linters", $a(['lintiban'])] - ]); //#2119 - var _Fc = new Map([ - ["parts", $a([_FY])], - ["req", $a([$a(["415"])])] - ]); //#2121 - var _Fe = new Map([ + ]); //#2120 + var _Ji = new Map([ + ["parts", $a([_Jd])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2122 + var _Jk = new Map([ ["cset", 'N'], ["min", 8], ["max", 8], ["opt", false], ["linters", $a(['lintyymmddhh'])] - ]); //#2128 - var _Fg = new Map([ + ]); //#2129 + var _Jm = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", true], ["linters", $a(['lintmmoptss'])] - ]); //#2129 - var _Fk = new Map([ - ["parts", $a([_Fe, _Fg])], - ["req", $a([$a(["01", "02"])])] - ]); //#2131 - var _Fm = new Map([ + ]); //#2130 + var _Js = new Map([ + ["parts", $a([_Jk, _Jm])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2132 + var _Ju = new Map([ ["cset", 'X'], ["min", 1], ["max", 50], ["opt", false], ["linters", $a([])] - ]); //#2138 - var _Fq = new Map([ - ["parts", $a([_Fm])], - ["req", $a([$a(["00", "01"])])] - ]); //#2140 - var _Fs = new Map([ + ]); //#2139 + var _K0 = new Map([ + ["parts", $a([_Ju])], + ["req", $a([$a([$a(["00"]), $a(["01"])])])] + ]); //#2141 + var _K2 = new Map([ ["cset", 'Y'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2147 - var _Fw = new Map([ - ["parts", $a([_Fs])], + ]); //#2148 + var _K6 = new Map([ + ["parts", $a([_K2])], ["dlpkey", $a([$a(["8011"])])] - ]); //#2149 - var _Fy = new Map([ + ]); //#2150 + var _K8 = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a(['lintnozeroprefix'])] - ]); //#2156 - var _G2 = new Map([ - ["parts", $a([_Fy])], - ["req", $a([$a(["8010"])])] - ]); //#2158 - var _G4 = new Map([ + ]); //#2157 + var _KD = new Map([ + ["parts", $a([_K8])], + ["req", $a([$a([$a(["8010"])])])] + ]); //#2159 + var _KF = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2165 - var _G8 = new Map([ - ["parts", $a([_G4])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2167 - var _GA = new Map([ + ]); //#2166 + var _KL = new Map([ + ["parts", $a([_KF])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2168 + var _KN = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a(['lintcsumalpha', 'lintkey'])] - ]); //#2174 - var _GD = new Map([ - ["parts", $a([_GA])], + ]); //#2175 + var _KQ = new Map([ + ["parts", $a([_KN])], ["dlpkey", $a([])] - ]); //#2176 - var _GF = new Map([ + ]); //#2177 + var _KS = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2183 - var _GK = new Map([ - ["parts", $a([_GF])], + ]); //#2184 + var _KX = new Map([ + ["parts", $a([_KS])], ["ex", $a(["8018"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2186 - var _GM = new Map([ + ]); //#2187 + var _KZ = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2193 - var _GR = new Map([ - ["parts", $a([_GM])], + ]); //#2194 + var _Ke = new Map([ + ["parts", $a([_KZ])], ["ex", $a(["8017"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2196 - var _GT = new Map([ + ]); //#2197 + var _Kg = new Map([ ["cset", 'N'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#2203 - var _GX = new Map([ - ["parts", $a([_GT])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2205 - var _GZ = new Map([ + ]); //#2204 + var _Km = new Map([ + ["parts", $a([_Kg])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2206 + var _Ko = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2212 - var _Gd = new Map([ - ["parts", $a([_GZ])], - ["req", $a([$a(["415"])])] - ]); //#2214 - var _Gf = new Map([ + ]); //#2213 + var _Kt = new Map([ + ["parts", $a([_Ko])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2215 + var _Kv = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2221 - var _Gh = new Map([ + ]); //#2222 + var _Kx = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2222 - var _Gm = new Map([ - ["parts", $a([_Gf, _Gh])], + ]); //#2223 + var _L3 = new Map([ + ["parts", $a([_Kv, _Kx])], ["ex", $a(["02", "8006"])], - ["req", $a([$a(["37"])])] - ]); //#2225 - var _Go = new Map([ + ["req", $a([$a([$a(["37"])])])] + ]); //#2226 + var _L5 = new Map([ + ["cset", 'Z'], + ["min", 1], + ["max", 90], + ["opt", false], + ["linters", $a([])] + ]); //#2233 + var _LJ = new Map([ + ["parts", $a([_L5])], + ["req", $a([$a([$a(["00"]), $a(["01"]), $a(["253"]), $a(["255"]), $a(["8003"]), $a(["8004"]), $a(["8006"]), $a(["8010"]), $a(["8017"]), $a(["8018"])])])] + ]); //#2235 + var _LL = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponcode'])] - ]); //#2232 - var _Gq = new Map([ - ["parts", $a([_Go])] - ]); //#2232 - var _Gs = new Map([ + ]); //#2242 + var _LN = new Map([ + ["parts", $a([_LL])] + ]); //#2242 + var _LP = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#2240 - var _Gw = new Map([ - ["parts", $a([_Gs])], - ["req", $a([$a(["255"])])] - ]); //#2242 - var _Gy = new Map([ + ]); //#2250 + var _LU = new Map([ + ["parts", $a([_LP])], + ["req", $a([$a([$a(["255"])])])] + ]); //#2252 + var _LW = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponposoffer'])] - ]); //#2249 - var _H0 = new Map([ - ["parts", $a([_Gy])] - ]); //#2249 - var _H2 = new Map([ + ]); //#2259 + var _LY = new Map([ + ["parts", $a([_LW])] + ]); //#2259 + var _La = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a([])] - ]); //#2257 - var _H6 = new Map([ - ["parts", $a([_H2])], - ["req", $a([$a(["01"])])] - ]); //#2259 - var _H8 = new Map([ + ]); //#2267 + var _Lf = new Map([ + ["parts", $a([_La])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2269 + var _Lh = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#2266 - var _HA = new Map([ - ["parts", $a([_H8])] - ]); //#2266 - var _HC = new Map([ + ]); //#2276 + var _Lj = new Map([ + ["parts", $a([_Lh])] + ]); //#2276 + var _Ll = new Map([ ["cset", 'X'], ["min", 1], ["max", 90], ["opt", false], ["linters", $a([])] - ]); //#2274 - var _HE = new Map([ - ["parts", $a([_HC])] - ]); //#2274 - var _HF = new Map([ + ]); //#2284 + var _Ln = new Map([ + ["parts", $a([_Ll])] + ]); //#2284 + var _Lo = new Map([ ["00", _4], ["01", _C], - ["02", _I], - ["10", _O], - ["11", _U], - ["12", _a], - ["13", _g], - ["15", _g], - ["16", _g], - ["17", _m], - ["20", _s], - ["21", _z], - ["22", _15], - ["235", _1B], - ["240", _1H], - ["241", _1H], - ["242", _1N], - ["243", _1T], - ["250", _1a], - ["251", _1g], - ["253", _1n], - ["254", _1t], - ["255", _21], - ["30", _27], - ["3100", _2E], - ["3101", _2E], - ["3102", _2E], - ["3103", _2E], - ["3104", _2E], - ["3105", _2E], - ["3110", _2L], - ["3111", _2L], - ["3112", _2L], - ["3113", _2L], - ["3114", _2L], - ["3115", _2L], - ["3120", _2S], - ["3121", _2S], - ["3122", _2S], - ["3123", _2S], - ["3124", _2S], - ["3125", _2S], - ["3130", _2Z], - ["3131", _2Z], - ["3132", _2Z], - ["3133", _2Z], - ["3134", _2Z], - ["3135", _2Z], - ["3140", _2g], - ["3141", _2g], - ["3142", _2g], - ["3143", _2g], - ["3144", _2g], - ["3145", _2g], - ["3150", _2n], - ["3151", _2n], - ["3152", _2n], - ["3153", _2n], - ["3154", _2n], - ["3155", _2n], - ["3160", _2u], - ["3161", _2u], - ["3162", _2u], - ["3163", _2u], - ["3164", _2u], - ["3165", _2u], - ["3200", _31], - ["3201", _31], - ["3202", _31], - ["3203", _31], - ["3204", _31], - ["3205", _31], - ["3210", _38], - ["3211", _38], - ["3212", _38], - ["3213", _38], - ["3214", _38], - ["3215", _38], - ["3220", _3F], - ["3221", _3F], - ["3222", _3F], - ["3223", _3F], - ["3224", _3F], - ["3225", _3F], - ["3230", _3M], - ["3231", _3M], - ["3232", _3M], - ["3233", _3M], - ["3234", _3M], - ["3235", _3M], - ["3240", _3T], - ["3241", _3T], - ["3242", _3T], - ["3243", _3T], - ["3244", _3T], - ["3245", _3T], - ["3250", _3a], - ["3251", _3a], - ["3252", _3a], - ["3253", _3a], - ["3254", _3a], - ["3255", _3a], - ["3260", _3h], - ["3261", _3h], - ["3262", _3h], - ["3263", _3h], - ["3264", _3h], - ["3265", _3h], - ["3270", _3o], - ["3271", _3o], - ["3272", _3o], - ["3273", _3o], - ["3274", _3o], - ["3275", _3o], - ["3280", _3v], - ["3281", _3v], - ["3282", _3v], - ["3283", _3v], - ["3284", _3v], - ["3285", _3v], - ["3290", _42], - ["3291", _42], - ["3292", _42], - ["3293", _42], - ["3294", _42], - ["3295", _42], - ["3300", _49], - ["3301", _49], - ["3302", _49], - ["3303", _49], - ["3304", _49], - ["3305", _49], - ["3310", _4G], - ["3311", _4G], - ["3312", _4G], - ["3313", _4G], - ["3314", _4G], - ["3315", _4G], - ["3320", _4N], - ["3321", _4N], - ["3322", _4N], - ["3323", _4N], - ["3324", _4N], - ["3325", _4N], - ["3330", _4U], - ["3331", _4U], - ["3332", _4U], - ["3333", _4U], - ["3334", _4U], - ["3335", _4U], - ["3340", _4b], - ["3341", _4b], - ["3342", _4b], - ["3343", _4b], - ["3344", _4b], - ["3345", _4b], - ["3350", _4i], - ["3351", _4i], - ["3352", _4i], - ["3353", _4i], - ["3354", _4i], - ["3355", _4i], - ["3360", _4p], - ["3361", _4p], - ["3362", _4p], - ["3363", _4p], - ["3364", _4p], - ["3365", _4p], - ["3370", _4w], - ["3371", _4w], - ["3372", _4w], - ["3373", _4w], - ["3374", _4w], - ["3375", _4w], - ["3400", _53], - ["3401", _53], - ["3402", _53], - ["3403", _53], - ["3404", _53], - ["3405", _53], - ["3410", _5A], - ["3411", _5A], - ["3412", _5A], - ["3413", _5A], - ["3414", _5A], - ["3415", _5A], - ["3420", _5H], - ["3421", _5H], - ["3422", _5H], - ["3423", _5H], - ["3424", _5H], - ["3425", _5H], - ["3430", _5O], - ["3431", _5O], - ["3432", _5O], - ["3433", _5O], - ["3434", _5O], - ["3435", _5O], - ["3440", _5V], - ["3441", _5V], - ["3442", _5V], - ["3443", _5V], - ["3444", _5V], - ["3445", _5V], - ["3450", _5c], - ["3451", _5c], - ["3452", _5c], - ["3453", _5c], - ["3454", _5c], - ["3455", _5c], - ["3460", _5j], - ["3461", _5j], - ["3462", _5j], - ["3463", _5j], - ["3464", _5j], - ["3465", _5j], - ["3470", _5q], - ["3471", _5q], - ["3472", _5q], - ["3473", _5q], - ["3474", _5q], - ["3475", _5q], - ["3480", _5x], - ["3481", _5x], - ["3482", _5x], - ["3483", _5x], - ["3484", _5x], - ["3485", _5x], - ["3490", _64], - ["3491", _64], - ["3492", _64], - ["3493", _64], - ["3494", _64], - ["3495", _64], - ["3500", _6B], - ["3501", _6B], - ["3502", _6B], - ["3503", _6B], - ["3504", _6B], - ["3505", _6B], - ["3510", _6I], - ["3511", _6I], - ["3512", _6I], - ["3513", _6I], - ["3514", _6I], - ["3515", _6I], - ["3520", _6P], - ["3521", _6P], - ["3522", _6P], - ["3523", _6P], - ["3524", _6P], - ["3525", _6P], - ["3530", _6W], - ["3531", _6W], - ["3532", _6W], - ["3533", _6W], - ["3534", _6W], - ["3535", _6W], - ["3540", _6d], - ["3541", _6d], - ["3542", _6d], - ["3543", _6d], - ["3544", _6d], - ["3545", _6d], - ["3550", _6k], - ["3551", _6k], - ["3552", _6k], - ["3553", _6k], - ["3554", _6k], - ["3555", _6k], - ["3560", _6r], - ["3561", _6r], - ["3562", _6r], - ["3563", _6r], - ["3564", _6r], - ["3565", _6r], - ["3570", _6y], - ["3571", _6y], - ["3572", _6y], - ["3573", _6y], - ["3574", _6y], - ["3575", _6y], - ["3600", _75], - ["3601", _75], - ["3602", _75], - ["3603", _75], - ["3604", _75], - ["3605", _75], - ["3610", _7C], - ["3611", _7C], - ["3612", _7C], - ["3613", _7C], - ["3614", _7C], - ["3615", _7C], - ["3620", _7J], - ["3621", _7J], - ["3622", _7J], - ["3623", _7J], - ["3624", _7J], - ["3625", _7J], - ["3630", _7Q], - ["3631", _7Q], - ["3632", _7Q], - ["3633", _7Q], - ["3634", _7Q], - ["3635", _7Q], - ["3640", _7X], - ["3641", _7X], - ["3642", _7X], - ["3643", _7X], - ["3644", _7X], - ["3645", _7X], - ["3650", _7e], - ["3651", _7e], - ["3652", _7e], - ["3653", _7e], - ["3654", _7e], - ["3655", _7e], - ["3660", _7l], - ["3661", _7l], - ["3662", _7l], - ["3663", _7l], - ["3664", _7l], - ["3665", _7l], - ["3670", _7s], - ["3671", _7s], - ["3672", _7s], - ["3673", _7s], - ["3674", _7s], - ["3675", _7s], - ["3680", _7z], - ["3681", _7z], - ["3682", _7z], - ["3683", _7z], - ["3684", _7z], - ["3685", _7z], - ["3690", _86], - ["3691", _86], - ["3692", _86], - ["3693", _86], - ["3694", _86], - ["3695", _86], - ["37", _8D], - ["3900", _8K], - ["3901", _8K], - ["3902", _8K], - ["3903", _8K], - ["3904", _8K], - ["3905", _8K], - ["3906", _8K], - ["3907", _8K], - ["3908", _8K], - ["3909", _8K], - ["3910", _8T], - ["3911", _8T], - ["3912", _8T], - ["3913", _8T], - ["3914", _8T], - ["3915", _8T], - ["3916", _8T], - ["3917", _8T], - ["3918", _8T], - ["3919", _8T], - ["3920", _8b], - ["3921", _8b], - ["3922", _8b], - ["3923", _8b], - ["3924", _8b], - ["3925", _8b], - ["3926", _8b], - ["3927", _8b], - ["3928", _8b], - ["3929", _8b], - ["3930", _8k], - ["3931", _8k], - ["3932", _8k], - ["3933", _8k], - ["3934", _8k], - ["3935", _8k], - ["3936", _8k], - ["3937", _8k], - ["3938", _8k], - ["3939", _8k], - ["3940", _8r], - ["3941", _8r], - ["3942", _8r], - ["3943", _8r], - ["3950", _8y], - ["3951", _8y], - ["3952", _8y], - ["3953", _8y], - ["3954", _8y], - ["3955", _8y], - ["400", _92], - ["401", _97], - ["402", _9C], - ["403", _9I], - ["410", _9M], - ["411", _9M], - ["412", _9M], - ["413", _9M], - ["414", _9T], - ["415", _9b], - ["416", _9f], - ["417", _9l], - ["420", _9q], - ["421", _9x], - ["422", _A4], - ["423", _AB], - ["424", _AI], - ["425", _AP], - ["426", _AV], - ["427", _Ac], - ["4300", _Ai], - ["4301", _Ai], - ["4302", _Ao], - ["4303", _Au], - ["4304", _B0], - ["4305", _B0], - ["4306", _B0], - ["4307", _B6], - ["4308", _BC], - ["4309", _BI], - ["4310", _BO], - ["4311", _BO], - ["4312", _BU], - ["4313", _Ba], - ["4314", _Bg], - ["4315", _Bg], - ["4316", _Bg], - ["4317", _Bm], - ["4318", _Bs], - ["4319", _By], - ["4320", _C4], - ["4321", _CA], - ["4322", _CA], - ["4323", _CA], - ["4324", _CI], - ["4325", _CI], - ["4326", _CO], - ["7001", _CU], - ["7002", _Ca], - ["7003", _Ci], - ["7004", _Cp], - ["7005", _Cv], - ["7006", _D1], - ["7007", _D9], - ["7008", _DF], - ["7009", _DL], - ["7010", _DR], - ["7011", _DZ], - ["7020", _Dg], - ["7021", _Dm], - ["7022", _Ds], - ["7023", _Dw], - ["7030", _E4], - ["7031", _E4], - ["7032", _E4], - ["7033", _E4], - ["7034", _E4], - ["7035", _E4], - ["7036", _E4], - ["7037", _E4], - ["7038", _E4], - ["7039", _E4], - ["7040", _EE], - ["710", _EK], - ["711", _EK], - ["712", _EK], - ["713", _EK], - ["714", _EK], - ["715", _EK], - ["7230", _ES], - ["7231", _ES], - ["7232", _ES], - ["7233", _ES], - ["7234", _ES], - ["7235", _ES], - ["7236", _ES], - ["7237", _ES], - ["7238", _ES], - ["7239", _ES], - ["7240", _EY], - ["7241", _Ee], - ["7242", _Ek], - ["8001", _Ey], - ["8002", _F2], - ["8003", _FB], - ["8004", _FH], - ["8005", _FN], - ["8006", _FW], - ["8007", _Fc], - ["8008", _Fk], - ["8009", _Fq], - ["8010", _Fw], - ["8011", _G2], - ["8012", _G8], - ["8013", _GD], - ["8017", _GK], - ["8018", _GR], - ["8019", _GX], - ["8020", _Gd], - ["8026", _Gm], - ["8110", _Gq], - ["8111", _Gw], - ["8112", _H0], - ["8200", _H6], - ["90", _HA], - ["91", _HE], - ["92", _HE], - ["93", _HE], - ["94", _HE], - ["95", _HE], - ["96", _HE], - ["97", _HE], - ["98", _HE], - ["99", _HE] - ]); //#2286 - $_.gs1syntax = _HF; //#2288 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2288 - bwipp_gs1process.__2289__ = 1; //#2288 - $_ = Object.getPrototypeOf($_); //#2288 - } //#2288 - if ($eq($k[--$j], 'ai')) { //#2473 - $anchorsearch($k[--$j], "("); //#2296 - if ($nt($k[--$j])) { //#2298 - $j--; //#2297 - $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2297'; //#2297 - $k[$j++] = "AIs must start with '('"; //#2297 - bwipp_raiseerror(); //#2297 - } //#2297 - $j--; //#2299 - $k[$j++] = Infinity; //#2300 - var _HK = $k[--$j]; //#2300 - var _HL = $k[--$j]; //#2300 - $k[$j++] = _HK; //#2307 - $k[$j++] = _HL; //#2307 - for (;;) { //#2307 - var _HM = $k[--$j]; //#2301 - $k[$j++] = _HM; //#2301 - if ($eq(_HM, "")) { //#2301 - $j--; //#2301 - break; //#2301 - } //#2301 - $search($k[--$j], ")"); //#2302 - if ($nt($k[--$j])) { //#2304 - $cleartomark(); //#2303 - $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2303'; //#2303 - $k[$j++] = "AIs must end with ')'"; //#2303 - bwipp_raiseerror(); //#2303 - } //#2303 - var _HP = $k[--$j]; //#2305 - var _HQ = $k[--$j]; //#2305 - $k[$j++] = _HP; //#2305 - $k[$j++] = _HQ; //#2305 - $j--; //#2305 - var _HR = $k[--$j]; //#2305 - var _HS = $k[--$j]; //#2305 - $k[$j++] = _HR; //#2306 - $search(_HS, "("); //#2306 - if ($k[--$j]) { //#2306 - var _HU = $k[--$j]; //#2306 - var _HV = $k[--$j]; //#2306 - $k[$j++] = _HU; //#2306 - $k[$j++] = _HV; //#2306 - $j--; //#2306 - var _HW = $k[--$j]; //#2306 - var _HX = $k[--$j]; //#2306 - $k[$j++] = _HW; //#2306 - $k[$j++] = _HX; //#2306 - } else { //#2306 - $k[$j++] = ""; //#2306 - } //#2306 - } //#2306 - var _HY = $counttomark(); //#2308 - $k[$j++] = _HY; //#2308 - if (_HY > 0) { //#2308 - var _HZ = $k[--$j]; //#2308 - for (var _Hb = _HZ, _Ha = (~~(_HZ / 2)) + 1; _Hb >= _Ha; _Hb -= 1) { //#2308 - $r(_Hb, -1); //#2308 - } //#2308 - } else { //#2308 - $j--; //#2308 - } //#2308 - $astore($a(~~($counttomark() / 2))); //#2309 - $_.ais = $k[--$j]; //#2309 - $astore($a($counttomark())); //#2310 - $k[$j++] = Infinity; //#2311 - var _Hh = $k[--$j]; //#2310 - var _Hi = $k[--$j]; //#2310 - $k[$j++] = _Hh; //#2312 - $forall(_Hi, function() { //#2312 - var _Hk = new Map([ + ["02", _J], + ["10", _T], + ["11", _d], + ["12", _k], + ["13", _u], + ["15", _u], + ["16", _u], + ["17", _15], + ["20", _1F], + ["21", _1O], + ["22", _1V], + ["235", _1c], + ["240", _1m], + ["241", _1m], + ["242", _1w], + ["243", _23], + ["250", _2D], + ["251", _2L], + ["253", _2S], + ["254", _2Z], + ["255", _2h], + ["30", _2p], + ["3100", _2y], + ["3101", _2y], + ["3102", _2y], + ["3103", _2y], + ["3104", _2y], + ["3105", _2y], + ["3110", _37], + ["3111", _37], + ["3112", _37], + ["3113", _37], + ["3114", _37], + ["3115", _37], + ["3120", _3G], + ["3121", _3G], + ["3122", _3G], + ["3123", _3G], + ["3124", _3G], + ["3125", _3G], + ["3130", _3P], + ["3131", _3P], + ["3132", _3P], + ["3133", _3P], + ["3134", _3P], + ["3135", _3P], + ["3140", _3Y], + ["3141", _3Y], + ["3142", _3Y], + ["3143", _3Y], + ["3144", _3Y], + ["3145", _3Y], + ["3150", _3h], + ["3151", _3h], + ["3152", _3h], + ["3153", _3h], + ["3154", _3h], + ["3155", _3h], + ["3160", _3q], + ["3161", _3q], + ["3162", _3q], + ["3163", _3q], + ["3164", _3q], + ["3165", _3q], + ["3200", _3z], + ["3201", _3z], + ["3202", _3z], + ["3203", _3z], + ["3204", _3z], + ["3205", _3z], + ["3210", _48], + ["3211", _48], + ["3212", _48], + ["3213", _48], + ["3214", _48], + ["3215", _48], + ["3220", _4H], + ["3221", _4H], + ["3222", _4H], + ["3223", _4H], + ["3224", _4H], + ["3225", _4H], + ["3230", _4Q], + ["3231", _4Q], + ["3232", _4Q], + ["3233", _4Q], + ["3234", _4Q], + ["3235", _4Q], + ["3240", _4Z], + ["3241", _4Z], + ["3242", _4Z], + ["3243", _4Z], + ["3244", _4Z], + ["3245", _4Z], + ["3250", _4i], + ["3251", _4i], + ["3252", _4i], + ["3253", _4i], + ["3254", _4i], + ["3255", _4i], + ["3260", _4r], + ["3261", _4r], + ["3262", _4r], + ["3263", _4r], + ["3264", _4r], + ["3265", _4r], + ["3270", _50], + ["3271", _50], + ["3272", _50], + ["3273", _50], + ["3274", _50], + ["3275", _50], + ["3280", _59], + ["3281", _59], + ["3282", _59], + ["3283", _59], + ["3284", _59], + ["3285", _59], + ["3290", _5I], + ["3291", _5I], + ["3292", _5I], + ["3293", _5I], + ["3294", _5I], + ["3295", _5I], + ["3300", _5R], + ["3301", _5R], + ["3302", _5R], + ["3303", _5R], + ["3304", _5R], + ["3305", _5R], + ["3310", _5a], + ["3311", _5a], + ["3312", _5a], + ["3313", _5a], + ["3314", _5a], + ["3315", _5a], + ["3320", _5j], + ["3321", _5j], + ["3322", _5j], + ["3323", _5j], + ["3324", _5j], + ["3325", _5j], + ["3330", _5s], + ["3331", _5s], + ["3332", _5s], + ["3333", _5s], + ["3334", _5s], + ["3335", _5s], + ["3340", _61], + ["3341", _61], + ["3342", _61], + ["3343", _61], + ["3344", _61], + ["3345", _61], + ["3350", _6A], + ["3351", _6A], + ["3352", _6A], + ["3353", _6A], + ["3354", _6A], + ["3355", _6A], + ["3360", _6J], + ["3361", _6J], + ["3362", _6J], + ["3363", _6J], + ["3364", _6J], + ["3365", _6J], + ["3370", _6R], + ["3371", _6R], + ["3372", _6R], + ["3373", _6R], + ["3374", _6R], + ["3375", _6R], + ["3400", _6a], + ["3401", _6a], + ["3402", _6a], + ["3403", _6a], + ["3404", _6a], + ["3405", _6a], + ["3410", _6j], + ["3411", _6j], + ["3412", _6j], + ["3413", _6j], + ["3414", _6j], + ["3415", _6j], + ["3420", _6s], + ["3421", _6s], + ["3422", _6s], + ["3423", _6s], + ["3424", _6s], + ["3425", _6s], + ["3430", _71], + ["3431", _71], + ["3432", _71], + ["3433", _71], + ["3434", _71], + ["3435", _71], + ["3440", _7A], + ["3441", _7A], + ["3442", _7A], + ["3443", _7A], + ["3444", _7A], + ["3445", _7A], + ["3450", _7J], + ["3451", _7J], + ["3452", _7J], + ["3453", _7J], + ["3454", _7J], + ["3455", _7J], + ["3460", _7S], + ["3461", _7S], + ["3462", _7S], + ["3463", _7S], + ["3464", _7S], + ["3465", _7S], + ["3470", _7b], + ["3471", _7b], + ["3472", _7b], + ["3473", _7b], + ["3474", _7b], + ["3475", _7b], + ["3480", _7k], + ["3481", _7k], + ["3482", _7k], + ["3483", _7k], + ["3484", _7k], + ["3485", _7k], + ["3490", _7t], + ["3491", _7t], + ["3492", _7t], + ["3493", _7t], + ["3494", _7t], + ["3495", _7t], + ["3500", _82], + ["3501", _82], + ["3502", _82], + ["3503", _82], + ["3504", _82], + ["3505", _82], + ["3510", _8B], + ["3511", _8B], + ["3512", _8B], + ["3513", _8B], + ["3514", _8B], + ["3515", _8B], + ["3520", _8K], + ["3521", _8K], + ["3522", _8K], + ["3523", _8K], + ["3524", _8K], + ["3525", _8K], + ["3530", _8T], + ["3531", _8T], + ["3532", _8T], + ["3533", _8T], + ["3534", _8T], + ["3535", _8T], + ["3540", _8c], + ["3541", _8c], + ["3542", _8c], + ["3543", _8c], + ["3544", _8c], + ["3545", _8c], + ["3550", _8l], + ["3551", _8l], + ["3552", _8l], + ["3553", _8l], + ["3554", _8l], + ["3555", _8l], + ["3560", _8u], + ["3561", _8u], + ["3562", _8u], + ["3563", _8u], + ["3564", _8u], + ["3565", _8u], + ["3570", _93], + ["3571", _93], + ["3572", _93], + ["3573", _93], + ["3574", _93], + ["3575", _93], + ["3600", _9C], + ["3601", _9C], + ["3602", _9C], + ["3603", _9C], + ["3604", _9C], + ["3605", _9C], + ["3610", _9L], + ["3611", _9L], + ["3612", _9L], + ["3613", _9L], + ["3614", _9L], + ["3615", _9L], + ["3620", _9U], + ["3621", _9U], + ["3622", _9U], + ["3623", _9U], + ["3624", _9U], + ["3625", _9U], + ["3630", _9d], + ["3631", _9d], + ["3632", _9d], + ["3633", _9d], + ["3634", _9d], + ["3635", _9d], + ["3640", _9m], + ["3641", _9m], + ["3642", _9m], + ["3643", _9m], + ["3644", _9m], + ["3645", _9m], + ["3650", _9v], + ["3651", _9v], + ["3652", _9v], + ["3653", _9v], + ["3654", _9v], + ["3655", _9v], + ["3660", _A4], + ["3661", _A4], + ["3662", _A4], + ["3663", _A4], + ["3664", _A4], + ["3665", _A4], + ["3670", _AD], + ["3671", _AD], + ["3672", _AD], + ["3673", _AD], + ["3674", _AD], + ["3675", _AD], + ["3680", _AM], + ["3681", _AM], + ["3682", _AM], + ["3683", _AM], + ["3684", _AM], + ["3685", _AM], + ["3690", _AV], + ["3691", _AV], + ["3692", _AV], + ["3693", _AV], + ["3694", _AV], + ["3695", _AV], + ["37", _Af], + ["3900", _Ao], + ["3901", _Ao], + ["3902", _Ao], + ["3903", _Ao], + ["3904", _Ao], + ["3905", _Ao], + ["3906", _Ao], + ["3907", _Ao], + ["3908", _Ao], + ["3909", _Ao], + ["3910", _Ay], + ["3911", _Ay], + ["3912", _Ay], + ["3913", _Ay], + ["3914", _Ay], + ["3915", _Ay], + ["3916", _Ay], + ["3917", _Ay], + ["3918", _Ay], + ["3919", _Ay], + ["3920", _BC], + ["3921", _BC], + ["3922", _BC], + ["3923", _BC], + ["3924", _BC], + ["3925", _BC], + ["3926", _BC], + ["3927", _BC], + ["3928", _BC], + ["3929", _BC], + ["3930", _BQ], + ["3931", _BQ], + ["3932", _BQ], + ["3933", _BQ], + ["3934", _BQ], + ["3935", _BQ], + ["3936", _BQ], + ["3937", _BQ], + ["3938", _BQ], + ["3939", _BQ], + ["3940", _BY], + ["3941", _BY], + ["3942", _BY], + ["3943", _BY], + ["3950", _Bk], + ["3951", _Bk], + ["3952", _Bk], + ["3953", _Bk], + ["3954", _Bk], + ["3955", _Bk], + ["400", _Bo], + ["401", _Bt], + ["402", _By], + ["403", _C5], + ["410", _C9], + ["411", _C9], + ["412", _C9], + ["413", _C9], + ["414", _CG], + ["415", _CP], + ["416", _CT], + ["417", _CZ], + ["420", _Ce], + ["421", _Cl], + ["422", _Cw], + ["423", _D5], + ["424", _DE], + ["425", _DN], + ["426", _DV], + ["427", _Df], + ["4300", _Dm], + ["4301", _Dm], + ["4302", _Dt], + ["4303", _E0], + ["4304", _E7], + ["4305", _E7], + ["4306", _E7], + ["4307", _EE], + ["4308", _EL], + ["4309", _EU], + ["4310", _Eb], + ["4311", _Eb], + ["4312", _Ei], + ["4313", _Ep], + ["4314", _Ew], + ["4315", _Ew], + ["4316", _Ew], + ["4317", _F3], + ["4318", _FA], + ["4319", _FH], + ["4320", _FO], + ["4321", _FV], + ["4322", _FV], + ["4323", _FV], + ["4324", _Fe], + ["4325", _Fe], + ["4326", _Fl], + ["7001", _Fv], + ["7002", _G3], + ["7003", _GD], + ["7004", _GM], + ["7005", _GU], + ["7006", _Gc], + ["7007", _Gm], + ["7008", _Gu], + ["7009", _H2], + ["7010", _HA], + ["7011", _HK], + ["7020", _HU], + ["7021", _Hc], + ["7022", _Hj], + ["7023", _Hn], + ["7030", _Hx], + ["7031", _Hx], + ["7032", _Hx], + ["7033", _Hx], + ["7034", _Hx], + ["7035", _Hx], + ["7036", _Hx], + ["7037", _Hx], + ["7038", _Hx], + ["7039", _Hx], + ["7040", _I7], + ["710", _IE], + ["711", _IE], + ["712", _IE], + ["713", _IE], + ["714", _IE], + ["715", _IE], + ["7230", _IO], + ["7231", _IO], + ["7232", _IO], + ["7233", _IO], + ["7234", _IO], + ["7235", _IO], + ["7236", _IO], + ["7237", _IO], + ["7238", _IO], + ["7239", _IO], + ["7240", _IW], + ["7241", _Ie], + ["7242", _Im], + ["8001", _J1], + ["8002", _J5], + ["8003", _JE], + ["8004", _JK], + ["8005", _JS], + ["8006", _Jb], + ["8007", _Ji], + ["8008", _Js], + ["8009", _K0], + ["8010", _K6], + ["8011", _KD], + ["8012", _KL], + ["8013", _KQ], + ["8017", _KX], + ["8018", _Ke], + ["8019", _Km], + ["8020", _Kt], + ["8026", _L3], + ["8030", _LJ], + ["8110", _LN], + ["8111", _LU], + ["8112", _LY], + ["8200", _Lf], + ["90", _Lj], + ["91", _Ln], + ["92", _Ln], + ["93", _Ln], + ["94", _Ln], + ["95", _Ln], + ["96", _Ln], + ["97", _Ln], + ["98", _Ln], + ["99", _Ln] + ]); //#2296 + $_.gs1syntax = _Lo; //#2298 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2298 + bwipp_gs1process.__2299__ = 1; //#2298 + $_ = Object.getPrototypeOf($_); //#2298 + } //#2298 + if ($eq($k[--$j], 'ai')) { //#2507 + $anchorsearch($k[--$j], "("); //#2306 + if ($nt($k[--$j])) { //#2308 + $j--; //#2307 + $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2307'; //#2307 + $k[$j++] = "AIs must start with '('"; //#2307 + bwipp_raiseerror(); //#2307 + } //#2307 + $j--; //#2309 + $k[$j++] = Infinity; //#2310 + var _Lt = $k[--$j]; //#2310 + var _Lu = $k[--$j]; //#2310 + $k[$j++] = _Lt; //#2317 + $k[$j++] = _Lu; //#2317 + for (;;) { //#2317 + var _Lv = $k[--$j]; //#2311 + $k[$j++] = _Lv; //#2311 + if ($eq(_Lv, "")) { //#2311 + $j--; //#2311 + break; //#2311 + } //#2311 + $search($k[--$j], ")"); //#2312 + if ($nt($k[--$j])) { //#2314 + $cleartomark(); //#2313 + $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2313'; //#2313 + $k[$j++] = "AIs must end with ')'"; //#2313 + bwipp_raiseerror(); //#2313 + } //#2313 + var _Ly = $k[--$j]; //#2315 + var _Lz = $k[--$j]; //#2315 + $k[$j++] = _Ly; //#2315 + $k[$j++] = _Lz; //#2315 + $j--; //#2315 + var _M0 = $k[--$j]; //#2315 + var _M1 = $k[--$j]; //#2315 + $k[$j++] = _M0; //#2316 + $search(_M1, "("); //#2316 + if ($k[--$j]) { //#2316 + var _M3 = $k[--$j]; //#2316 + var _M4 = $k[--$j]; //#2316 + $k[$j++] = _M3; //#2316 + $k[$j++] = _M4; //#2316 + $j--; //#2316 + var _M5 = $k[--$j]; //#2316 + var _M6 = $k[--$j]; //#2316 + $k[$j++] = _M5; //#2316 + $k[$j++] = _M6; //#2316 + } else { //#2316 + $k[$j++] = ""; //#2316 + } //#2316 + } //#2316 + var _M7 = $counttomark(); //#2318 + $k[$j++] = _M7; //#2318 + if (_M7 > 0) { //#2318 + var _M8 = $k[--$j]; //#2318 + for (var _MA = _M8, _M9 = (~~(_M8 / 2)) + 1; _MA >= _M9; _MA -= 1) { //#2318 + $r(_MA, -1); //#2318 + } //#2318 + } else { //#2318 + $j--; //#2318 + } //#2318 + $astore($a(~~($counttomark() / 2))); //#2319 + $_.ais = $k[--$j]; //#2319 + $astore($a($counttomark())); //#2320 + $k[$j++] = Infinity; //#2320 + var _MG = $k[--$j]; //#2320 + var _MH = $k[--$j]; //#2320 + $k[$j++] = _MG; //#2322 + $forall(_MH, function() { //#2322 + var _MJ = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#2311 - $k[$j++] = _Hk; //#2311 - bwipp_parseinput(); //#2311 - }); //#2311 - $_.vals = $a(); //#2312 - $j--; //#2313 - } else { //#2473 - $anchorsearch($k[--$j], "http://"); //#2318 - if ($nt($k[--$j])) { //#2321 - $anchorsearch($k[--$j], "https://"); //#2319 - if ($nt($k[--$j])) { //#2321 - $j--; //#2320 - $k[$j++] = 'bwipp.GS1dlURIbadScheme#2320'; //#2320 - $k[$j++] = "Scheme must be http:// or https://"; //#2320 - bwipp_raiseerror(); //#2320 - } //#2320 - } //#2320 - $j--; //#2322 - $search($k[--$j], "/"); //#2325 - if ($nt($k[--$j])) { //#2327 - $j--; //#2326 - $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2326'; //#2326 - $k[$j++] = "URI must contain a domain and path info"; //#2326 - bwipp_raiseerror(); //#2326 - } //#2326 - $j -= 2; //#2328 - $search($k[--$j], "#"); //#2331 - if ($k[--$j]) { //#2333 - var _Hu = $k[--$j]; //#2332 - var _Hv = $k[--$j]; //#2332 - $k[$j++] = _Hu; //#2332 - $k[$j++] = _Hv; //#2332 - $j--; //#2332 - var _Hw = $k[--$j]; //#2332 - var _Hx = $k[--$j]; //#2332 - $k[$j++] = _Hw; //#2332 - $k[$j++] = _Hx; //#2332 - $j--; //#2332 - } //#2332 - $search($k[--$j], "?"); //#2336 - if ($nt($k[--$j])) { //#2338 - var _I0 = $k[--$j]; //#2337 - $k[$j++] = ""; //#2337 - $k[$j++] = null; //#2337 - $k[$j++] = _I0; //#2337 - } //#2337 - $_.pp = $k[--$j]; //#2339 - $j--; //#2340 - $_.qp = $k[--$j]; //#2341 - $k[$j++] = Infinity; //#2344 - $k[$j++] = 0; //#2348 - $k[$j++] = 0; //#2348 - $k[$j++] = $_.pp; //#2348 - for (;;) { //#2348 - $search($k[--$j], "/"); //#2346 - if ($nt($k[--$j])) { //#2346 - $j--; //#2346 - break; //#2346 - } //#2346 - var _I6 = $k[--$j]; //#2347 - var _I7 = $k[--$j]; //#2347 - $k[$j++] = _I6.length + 1; //#2347 - $k[$j++] = _I7; //#2347 - $j--; //#2347 - var _I8 = $k[--$j]; //#2347 - var _I9 = $k[--$j]; //#2347 - var _IA = $k[--$j]; //#2347 - $k[$j++] = _IA; //#2347 - $k[$j++] = $f(_I8 + _IA); //#2347 - $k[$j++] = _I9; //#2347 + ]); //#2321 + $k[$j++] = _MJ; //#2321 + bwipp_parseinput(); //#2321 + }); //#2321 + $_.vals = $a(); //#2322 + $j--; //#2323 + } else { //#2507 + $anchorsearch($k[--$j], "http://"); //#2328 + if ($nt($k[--$j])) { //#2331 + $anchorsearch($k[--$j], "https://"); //#2329 + if ($nt($k[--$j])) { //#2331 + $j--; //#2330 + $k[$j++] = 'bwipp.GS1dlURIbadScheme#2330'; //#2330 + $k[$j++] = "Scheme must be http:// or https://"; //#2330 + bwipp_raiseerror(); //#2330 + } //#2330 + } //#2330 + $j--; //#2332 + $search($k[--$j], "/"); //#2335 + if ($nt($k[--$j])) { //#2337 + $j--; //#2336 + $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2336'; //#2336 + $k[$j++] = "URI must contain a domain and path info"; //#2336 + bwipp_raiseerror(); //#2336 + } //#2336 + $j -= 2; //#2338 + $search($k[--$j], "#"); //#2341 + if ($k[--$j]) { //#2343 + var _MT = $k[--$j]; //#2342 + var _MU = $k[--$j]; //#2342 + $k[$j++] = _MT; //#2342 + $k[$j++] = _MU; //#2342 + $j--; //#2342 + var _MV = $k[--$j]; //#2342 + var _MW = $k[--$j]; //#2342 + $k[$j++] = _MV; //#2342 + $k[$j++] = _MW; //#2342 + $j--; //#2342 + } //#2342 + $search($k[--$j], "?"); //#2346 + if ($nt($k[--$j])) { //#2348 + var _MZ = $k[--$j]; //#2347 + $k[$j++] = ""; //#2347 + $k[$j++] = null; //#2347 + $k[$j++] = _MZ; //#2347 } //#2347 - $astore($a($counttomark() - 1)); //#2349 - $_.pipos = $k[--$j]; //#2349 - $j -= 2; //#2349 - if ($_.pipos.length <= 1) { //#2352 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2351'; //#2351 - $k[$j++] = "The path was too short to contain AI info"; //#2351 - bwipp_raiseerror(); //#2351 - } //#2351 - $k[$j++] = false; //#2368 - for (var _IG = $_.pipos.length - 2; _IG >= 0; _IG -= 2) { //#2368 - var _II = $get($_.pipos, _IG); //#2358 - var _IM = $geti($_.pp, _II, $f($f($get($_.pipos, _IG + 1) - _II) - 1)); //#2359 - var _IO = $get($_.gs1syntax, _IM) !== undefined; //#2360 - $k[$j++] = _IG; //#2366 - $k[$j++] = _IM; //#2366 - if (_IO) { //#2365 - var _IS = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2361 - if (_IS) { //#2363 - var _IT = $k[--$j]; //#2362 - var _IU = $k[--$j]; //#2362 - $k[$j++] = _IT; //#2362 - $k[$j++] = _IU; //#2362 - $j--; //#2362 - $k[$j++] = true; //#2362 - break; //#2362 - } //#2362 - } else { //#2365 - $j--; //#2365 - } //#2365 - $j--; //#2367 - } //#2367 - if ($nt($k[--$j])) { //#2371 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2370'; //#2370 - $k[$j++] = "The path does not contain a valid primary key"; //#2370 - bwipp_raiseerror(); //#2370 - } //#2370 - var _IY = $get($_.pipos, $k[--$j]); //#2372 - $_.pp = $geti($_.pp, _IY, $f($_.pp.length - _IY)); //#2372 + $_.pp = $k[--$j]; //#2349 + $j--; //#2350 + $_.qp = $k[--$j]; //#2351 + $k[$j++] = Infinity; //#2354 + $k[$j++] = 0; //#2358 + $k[$j++] = 0; //#2358 + $k[$j++] = $_.pp; //#2358 + for (;;) { //#2358 + $search($k[--$j], "/"); //#2356 + if ($nt($k[--$j])) { //#2356 + $j--; //#2356 + break; //#2356 + } //#2356 + var _Mf = $k[--$j]; //#2357 + var _Mg = $k[--$j]; //#2357 + $k[$j++] = _Mf.length + 1; //#2357 + $k[$j++] = _Mg; //#2357 + $j--; //#2357 + var _Mh = $k[--$j]; //#2357 + var _Mi = $k[--$j]; //#2357 + var _Mj = $k[--$j]; //#2357 + $k[$j++] = _Mj; //#2357 + $k[$j++] = $f(_Mh + _Mj); //#2357 + $k[$j++] = _Mi; //#2357 + } //#2357 + $astore($a($counttomark() - 1)); //#2359 + $_.pipos = $k[--$j]; //#2359 + $j -= 2; //#2359 + if ($_.pipos.length <= 1) { //#2362 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2361'; //#2361 + $k[$j++] = "The path was too short to contain AI info"; //#2361 + bwipp_raiseerror(); //#2361 + } //#2361 + $k[$j++] = false; //#2378 + for (var _Mp = $_.pipos.length - 2; _Mp >= 0; _Mp -= 2) { //#2378 + var _Mr = $get($_.pipos, _Mp); //#2368 + var _Mv = $geti($_.pp, _Mr, $f($f($get($_.pipos, _Mp + 1) - _Mr) - 1)); //#2369 + var _Mx = $get($_.gs1syntax, _Mv) !== undefined; //#2370 + $k[$j++] = _Mp; //#2376 + $k[$j++] = _Mv; //#2376 + if (_Mx) { //#2375 + var _N1 = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2371 + if (_N1) { //#2373 + var _N2 = $k[--$j]; //#2372 + var _N3 = $k[--$j]; //#2372 + $k[$j++] = _N2; //#2372 + $k[$j++] = _N3; //#2372 + $j--; //#2372 + $k[$j++] = true; //#2372 + break; //#2372 + } //#2372 + } else { //#2375 + $j--; //#2375 + } //#2375 + $j--; //#2377 + } //#2377 + if ($nt($k[--$j])) { //#2381 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2380'; //#2380 + $k[$j++] = "The path does not contain a valid primary key"; //#2380 + bwipp_raiseerror(); //#2380 + } //#2380 + var _N7 = $get($_.pipos, $k[--$j]); //#2382 + $_.pp = $geti($_.pp, _N7, $f($_.pp.length - _N7)); //#2382 $_.uriunescape = function() { - $_.in = $k[--$j]; //#2375 - $_.out = $s($_.in.length); //#2376 - $k[$j++] = 0; //#2396 - $k[$j++] = 0; //#2396 - for (;;) { //#2396 - var _If = $k[--$j]; //#2378 - var _Ig = $k[--$j]; //#2378 - $k[$j++] = _Ig; //#2378 - $k[$j++] = _If; //#2378 - if (_Ig >= $_.in.length) { //#2378 - break; //#2378 - } //#2378 - var _Ij = $k[--$j]; //#2379 - var _Ik = $k[--$j]; //#2379 - var _Il = $get($_.in, _Ik); //#2379 - $k[$j++] = _Ik; //#2395 - $k[$j++] = _Ij; //#2395 - $k[$j++] = _Il; //#2395 - if (_Il == 43) { //#2394 - $j--; //#2381 - var _In = $k[--$j]; //#2381 - $put($_.out, _In, 32); //#2381 - var _Io = $k[--$j]; //#2382 - $k[$j++] = $f(_Io + 1); //#2382 - $k[$j++] = $f(_In + 1); //#2382 - } else { //#2394 - var _Ip = $k[--$j]; //#2384 - var _Iq = $k[--$j]; //#2384 - var _Ir = $k[--$j]; //#2384 - $k[$j++] = _Ir; //#2395 - $k[$j++] = _Iq; //#2395 - $k[$j++] = _Ip; //#2395 - if ((_Ip == 37) && (_Ir < ($_.in.length - 2))) { //#2394 - $j--; //#2385 - var _Iu = $strcpy($s(4), "< >"); //#2386 - var _Iw = $k[--$j]; //#2386 - var _Ix = $k[--$j]; //#2386 - $puti(_Iu, 1, $geti($_.in, $f(_Ix + 1), 2)); //#2386 - try { //#2387 - $k[$j++] = _Ix; //#2387 - $k[$j++] = _Iw; //#2387 - $k[$j++] = $cvx(_Iu); //#2387 + $_.qq = $k[--$j]; //#2385 + $_.in = $k[--$j]; //#2386 + $_.out = $s($_.in.length); //#2387 + $k[$j++] = 0; //#2407 + $k[$j++] = 0; //#2407 + for (;;) { //#2407 + var _NF = $k[--$j]; //#2389 + var _NG = $k[--$j]; //#2389 + $k[$j++] = _NG; //#2389 + $k[$j++] = _NF; //#2389 + if (_NG >= $_.in.length) { //#2389 + break; //#2389 + } //#2389 + var _NJ = $k[--$j]; //#2390 + var _NK = $k[--$j]; //#2390 + var _NL = $get($_.in, _NK); //#2390 + $k[$j++] = _NK; //#2406 + $k[$j++] = _NJ; //#2406 + $k[$j++] = _NL; //#2406 + if ((_NL == 43) && $_.qq) { //#2405 + $j--; //#2392 + var _NO = $k[--$j]; //#2392 + $put($_.out, _NO, 32); //#2392 + var _NP = $k[--$j]; //#2393 + $k[$j++] = $f(_NP + 1); //#2393 + $k[$j++] = $f(_NO + 1); //#2393 + } else { //#2405 + var _NQ = $k[--$j]; //#2395 + var _NR = $k[--$j]; //#2395 + var _NS = $k[--$j]; //#2395 + $k[$j++] = _NS; //#2406 + $k[$j++] = _NR; //#2406 + $k[$j++] = _NQ; //#2406 + if ((_NQ == 37) && (_NS < ($_.in.length - 2))) { //#2405 + $j--; //#2396 + var _NV = $strcpy($s(4), "< >"); //#2397 + var _NX = $k[--$j]; //#2397 + var _NY = $k[--$j]; //#2397 + $puti(_NV, 1, $geti($_.in, $f(_NY + 1), 2)); //#2397 + try { //#2398 + $k[$j++] = _NY; //#2398 + $k[$j++] = _NX; //#2398 + $k[$j++] = $cvx(_NV); //#2398 $k[$j++] = false } catch (e) { $k[$j++] = true - } //#2387 - if ($k[--$j]) { //#2389 - $j -= 2; //#2388 - $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2388'; //#2388 - $k[$j++] = "Invalid hex character"; //#2388 - bwipp_raiseerror(); //#2388 - } //#2388 - var _J1 = $get($k[--$j], 0); //#2390 - var _J3 = $k[--$j]; //#2390 - $put($_.out, _J3, _J1); //#2390 - var _J4 = $k[--$j]; //#2391 - $k[$j++] = $f(_J4 + 3); //#2391 - $k[$j++] = $f(_J3 + 1); //#2391 - } else { //#2394 - var _J6 = $k[--$j]; //#2393 - var _J7 = $k[--$j]; //#2393 - $put($_.out, _J7, _J6); //#2393 - var _J8 = $k[--$j]; //#2394 - $k[$j++] = $f(_J8 + 1); //#2394 - $k[$j++] = $f(_J7 + 1); //#2394 - } //#2394 - } //#2394 - } //#2394 - $_.out = $geti($_.out, 0, $k[--$j]); //#2397 - $j--; //#2398 - $k[$j++] = $_.out; //#2399 - }; //#2399 - $_.ais = $a(99); //#2402 - $_.vals = $a(99); //#2403 - $k[$j++] = 0; //#2417 - $k[$j++] = $_.pp; //#2417 - for (;;) { //#2417 - $search($k[--$j], "/"); //#2408 - if ($k[--$j]) { //#2414 - var _JJ = $k[--$j]; //#2409 - var _JK = $k[--$j]; //#2409 - var _JL = $k[--$j]; //#2409 - var _JM = $k[--$j]; //#2409 - $put($_.ais, _JM, _JJ); //#2409 - $k[$j++] = _JM; //#2411 - $search(_JL, "/"); //#2411 - if ($k[--$j]) { //#2411 - var _JO = $k[--$j]; //#2411 - var _JP = $k[--$j]; //#2411 - $k[$j++] = _JO; //#2411 - $k[$j++] = _JP; //#2411 - $j--; //#2411 - } else { //#2411 - var _JQ = $k[--$j]; //#2411 - $k[$j++] = ""; //#2411 - $k[$j++] = _JQ; //#2411 - } //#2411 - var _JS = $k[--$j]; //#2412 - var _JT = $k[--$j]; //#2412 - var _JU = $k[--$j]; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JT; //#2412 - $k[$j++] = $_.vals; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JS; //#2412 - $_.uriunescape(); //#2412 - var _JV = $k[--$j]; //#2412 - var _JW = $k[--$j]; //#2412 - $put($k[--$j], _JW, _JV); //#2412 - } else { //#2414 - $j--; //#2414 - break; //#2414 - } //#2414 - var _JY = $k[--$j]; //#2416 - var _JZ = $k[--$j]; //#2416 - $k[$j++] = $f(_JZ + 1); //#2416 - $k[$j++] = _JY; //#2416 - } //#2416 - var _Ja = $k[--$j]; //#2420 - $k[$j++] = _Ja; //#2438 - if (_Ja > 1) { //#2438 - $k[$j++] = false; //#2434 - $forall($get($get($_.gs1syntax, $get($_.ais, 0)), 'dlpkey'), function() { //#2434 - $_.seq = $k[--$j]; //#2423 - $_.i = 1; //#2424 - $_.j = 0; //#2424 - for (;;) { //#2432 - if ($_.i >= $_.ais.length) { //#2426 - break; //#2426 - } //#2426 - if ($_.j >= $_.seq.length) { //#2427 - break; //#2427 - } //#2427 - if ($eq($get($_.ais, $_.i), $get($_.seq, $_.j))) { //#2430 - $_.i = $_.i + 1; //#2429 - } //#2429 - $_.j = $_.j + 1; //#2431 - } //#2431 - var _Ju = $k[--$j]; //#2433 - var _Jv = $k[--$j]; //#2433 - $k[$j++] = _Jv; //#2433 - $k[$j++] = _Ju; //#2433 - if ($_.i == _Jv) { //#2433 - $j--; //#2433 - $k[$j++] = true; //#2433 - return true; //#2433 - } //#2433 - }); //#2433 - if ($nt($k[--$j])) { //#2437 - $j--; //#2436 - $k[$j++] = 'bwipp.GS1dlBadPathInfo#2436'; //#2436 - $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2436 - bwipp_raiseerror(); //#2436 - } //#2436 - } //#2436 - $k[$j++] = $_.qp; //#2456 - for (;;) { //#2456 - var _Jy = $k[--$j]; //#2442 - $k[$j++] = _Jy; //#2442 - if ($eq(_Jy, "")) { //#2442 - $j--; //#2442 - break; //#2442 - } //#2442 - $search($k[--$j], "&"); //#2443 + } //#2398 + if ($k[--$j]) { //#2400 + $j -= 2; //#2399 + $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2399'; //#2399 + $k[$j++] = "Invalid hex character"; //#2399 + bwipp_raiseerror(); //#2399 + } //#2399 + var _Nc = $get($k[--$j], 0); //#2401 + var _Ne = $k[--$j]; //#2401 + $put($_.out, _Ne, _Nc); //#2401 + var _Nf = $k[--$j]; //#2402 + $k[$j++] = $f(_Nf + 3); //#2402 + $k[$j++] = $f(_Ne + 1); //#2402 + } else { //#2405 + var _Nh = $k[--$j]; //#2404 + var _Ni = $k[--$j]; //#2404 + $put($_.out, _Ni, _Nh); //#2404 + var _Nj = $k[--$j]; //#2405 + $k[$j++] = $f(_Nj + 1); //#2405 + $k[$j++] = $f(_Ni + 1); //#2405 + } //#2405 + } //#2405 + } //#2405 + $_.out = $geti($_.out, 0, $k[--$j]); //#2408 + $j--; //#2409 + $k[$j++] = $_.out; //#2410 + }; //#2410 + $_.isvaliddlpkeyseq = function() { + $_.in = $k[--$j]; //#2414 + $k[$j++] = false; //#2428 + $forall($get($get($_.gs1syntax, $get($_.in, 0)), 'dlpkey'), function() { //#2428 + $_.seq = $k[--$j]; //#2417 + $_.i = 1; //#2418 + $_.j = 0; //#2418 + for (;;) { //#2426 + if ($_.i >= $_.in.length) { //#2420 + break; //#2420 + } //#2420 + if ($_.j >= $_.seq.length) { //#2421 + break; //#2421 + } //#2421 + if ($eq($get($_.in, $_.i), $get($_.seq, $_.j))) { //#2424 + $_.i = $_.i + 1; //#2423 + } //#2423 + $_.j = $_.j + 1; //#2425 + } //#2425 + if ($_.i == $_.in.length) { //#2427 + $j--; //#2427 + $k[$j++] = true; //#2427 + return true; //#2427 + } //#2427 + }); //#2427 + }; //#2427 + $_.ais = $a(99); //#2431 + $_.vals = $a(99); //#2432 + $k[$j++] = 0; //#2446 + $k[$j++] = $_.pp; //#2446 + for (;;) { //#2446 + $search($k[--$j], "/"); //#2437 if ($k[--$j]) { //#2443 - var _K1 = $k[--$j]; //#2443 - var _K2 = $k[--$j]; //#2443 - $k[$j++] = _K1; //#2443 - $k[$j++] = _K2; //#2443 - $j--; //#2443 + var _OF = $k[--$j]; //#2438 + var _OG = $k[--$j]; //#2438 + var _OH = $k[--$j]; //#2438 + var _OI = $k[--$j]; //#2438 + $put($_.ais, _OI, _OF); //#2438 + $k[$j++] = _OI; //#2440 + $search(_OH, "/"); //#2440 + if ($k[--$j]) { //#2440 + var _OK = $k[--$j]; //#2440 + var _OL = $k[--$j]; //#2440 + $k[$j++] = _OK; //#2440 + $k[$j++] = _OL; //#2440 + $j--; //#2440 + } else { //#2440 + var _OM = $k[--$j]; //#2440 + $k[$j++] = ""; //#2440 + $k[$j++] = _OM; //#2440 + } //#2440 + var _OO = $k[--$j]; //#2441 + var _OP = $k[--$j]; //#2441 + var _OQ = $k[--$j]; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OP; //#2441 + $k[$j++] = $_.vals; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OO; //#2441 + $k[$j++] = false; //#2441 + $_.uriunescape(); //#2441 + var _OR = $k[--$j]; //#2441 + var _OS = $k[--$j]; //#2441 + $put($k[--$j], _OS, _OR); //#2441 } else { //#2443 - var _K3 = $k[--$j]; //#2443 - $k[$j++] = ""; //#2443 - $k[$j++] = _K3; //#2443 + $j--; //#2443 + break; //#2443 } //#2443 - $search($k[--$j], "="); //#2444 - if ($k[--$j]) { //#2454 - var _K6 = $k[--$j]; //#2445 - $k[$j++] = _K6; //#2445 - $k[$j++] = true; //#2445 - $forall(_K6, function() { //#2445 - var _K7 = $k[--$j]; //#2445 - var _K8 = $k[--$j]; //#2445 - $k[$j++] = _K8 && ((_K7 >= 48) && (_K7 <= 57)); //#2445 - }); //#2445 - if ($k[--$j]) { //#2451 - var _KB = $k[--$j]; //#2446 - var _KC = $k[--$j]; //#2446 - var _KD = $k[--$j]; //#2446 - var _KE = $k[--$j]; //#2446 - var _KF = $k[--$j]; //#2446 - $put($_.ais, _KF, _KB); //#2446 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KE; //#2448 - $k[$j++] = $_.vals; //#2448 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KD; //#2448 - $_.uriunescape(); //#2448 - var _KH = $k[--$j]; //#2448 - var _KI = $k[--$j]; //#2448 - $put($k[--$j], _KI, _KH); //#2448 - var _KK = $k[--$j]; //#2449 - var _KL = $k[--$j]; //#2449 - $k[$j++] = $f(_KL + 1); //#2449 - $k[$j++] = _KK; //#2449 - } else { //#2451 - $j -= 3; //#2451 - } //#2451 - } else { //#2454 - $j--; //#2454 - } //#2454 - } //#2454 - var _KN = $k[--$j]; //#2458 - $_.ais = $geti($_.ais, 0, _KN); //#2458 - $_.vals = $geti($_.vals, 0, _KN); //#2459 - for (var _KT = 0, _KS = $_.ais.length - 1; _KT <= _KS; _KT += 1) { //#2474 - $k[$j++] = _KT; //#2472 - if ($eq($get($_.ais, _KT), "01")) { //#2472 - var _KW = $k[--$j]; //#2465 - var _KY = $get($_.vals, _KW); //#2465 - var _KZ = _KY.length; //#2466 - $k[$j++] = _KW; //#2471 - $k[$j++] = _KY; //#2471 - if ((_KZ == 8) || ((_KZ == 12) || (_KZ == 13))) { //#2470 - var _Kb = $strcpy($s(14), "00000000000000"); //#2467 - var _Kc = $k[--$j]; //#2467 - $puti(_Kb, 14 - _Kc.length, _Kc); //#2467 - var _Ke = $k[--$j]; //#2468 - $put($_.vals, _Ke, _Kb); //#2468 - $k[$j++] = _Ke; //#2468 - } else { //#2470 - $j--; //#2470 - } //#2470 + var _OU = $k[--$j]; //#2445 + var _OV = $k[--$j]; //#2445 + $k[$j++] = $f(_OV + 1); //#2445 + $k[$j++] = _OU; //#2445 + } //#2445 + var _OW = $k[--$j]; //#2447 + $_.plen = _OW; //#2447 + $k[$j++] = _OW; //#2454 + if (_OW > 1) { //#2454 + $k[$j++] = $geti($_.ais, 0, $_.plen); //#2451 + $_.isvaliddlpkeyseq(); //#2451 + if ($nt($k[--$j])) { //#2453 + $j--; //#2452 + $k[$j++] = 'bwipp.GS1dlBadPathInfo#2452'; //#2452 + $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2452 + bwipp_raiseerror(); //#2452 + } //#2452 + } //#2452 + $k[$j++] = $_.qp; //#2472 + for (;;) { //#2472 + var _Oc = $k[--$j]; //#2458 + $k[$j++] = _Oc; //#2458 + if ($eq(_Oc, "")) { //#2458 + $j--; //#2458 + break; //#2458 + } //#2458 + $search($k[--$j], "&"); //#2459 + if ($k[--$j]) { //#2459 + var _Of = $k[--$j]; //#2459 + var _Og = $k[--$j]; //#2459 + $k[$j++] = _Of; //#2459 + $k[$j++] = _Og; //#2459 + $j--; //#2459 + } else { //#2459 + var _Oh = $k[--$j]; //#2459 + $k[$j++] = ""; //#2459 + $k[$j++] = _Oh; //#2459 + } //#2459 + $search($k[--$j], "="); //#2460 + if ($k[--$j]) { //#2470 + var _Ok = $k[--$j]; //#2461 + $k[$j++] = _Ok; //#2461 + $k[$j++] = true; //#2461 + $forall(_Ok, function() { //#2461 + var _Ol = $k[--$j]; //#2461 + var _Om = $k[--$j]; //#2461 + $k[$j++] = _Om && ((_Ol >= 48) && (_Ol <= 57)); //#2461 + }); //#2461 + if ($k[--$j]) { //#2467 + var _Op = $k[--$j]; //#2462 + var _Oq = $k[--$j]; //#2462 + var _Or = $k[--$j]; //#2462 + var _Os = $k[--$j]; //#2462 + var _Ot = $k[--$j]; //#2462 + $put($_.ais, _Ot, _Op); //#2462 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Os; //#2464 + $k[$j++] = $_.vals; //#2464 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Or; //#2464 + $k[$j++] = true; //#2464 + $_.uriunescape(); //#2464 + var _Ov = $k[--$j]; //#2464 + var _Ow = $k[--$j]; //#2464 + $put($k[--$j], _Ow, _Ov); //#2464 + var _Oy = $k[--$j]; //#2465 + var _Oz = $k[--$j]; //#2465 + $k[$j++] = $f(_Oz + 1); //#2465 + $k[$j++] = _Oy; //#2465 + } else { //#2467 + $j -= 3; //#2467 + } //#2467 + } else { //#2470 + $j--; //#2470 } //#2470 - $j--; //#2473 - } //#2473 - } //#2473 - if (!bwipp_gs1process.__2487__) { //#2487 - $_ = Object.create($_); //#2487 - $k[$j++] = Infinity; //#2486 - var _Kf = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2485 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#2486 - var _Ki = $get(_Kf, _Kg); //#2486 - $k[$j++] = _Ki; //#2486 - $k[$j++] = _Ki; //#2486 - } //#2486 - $_.aifixed = $d(); //#2486 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2486 - bwipp_gs1process.__2487__ = 1; //#2486 - $_ = Object.getPrototypeOf($_); //#2486 - } //#2486 - $k[$j++] = Infinity; //#2495 - var _Kl = $_.ais; //#2490 - for (var _Km = 0, _Kn = _Kl.length; _Km < _Kn; _Km++) { //#2497 - var _Ko = $get(_Kl, _Km); //#2497 - $k[$j++] = true; //#2496 - $k[$j++] = _Ko; //#2496 - if (_Ko.length >= 2) { //#2495 - var _Ks = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2493 - if (_Ks) { //#2493 - $j--; //#2493 - $k[$j++] = false; //#2493 - } //#2493 - } else { //#2495 - $j--; //#2495 - } //#2495 - } //#2495 - $_.fncs = $a(); //#2495 - $_.lintnumeric = function() { - var _Ku = $k[--$j]; //#2504 - $k[$j++] = true; //#2506 - $forall(_Ku, function() { //#2506 - var _Kv = $k[--$j]; //#2505 - if ((_Kv < 48) || (_Kv > 57)) { //#2505 - $j--; //#2505 - $k[$j++] = false; //#2505 - return true; //#2505 - } //#2505 - }); //#2505 - if ($nt($k[--$j])) { //#2507 + } //#2470 + var _P2 = $k[--$j]; //#2475 + var _P4 = $geti($_.ais, $_.plen, $f(_P2 - $_.plen)); //#2475 + $k[$j++] = _P2; //#2490 + for (var _P5 = 0, _P6 = _P4.length; _P5 < _P6; _P5++) { //#2490 + $k[$j++] = $get(_P4, _P5); //#2488 + for (var _P9 = $_.plen; _P9 >= 1; _P9 -= 1) { //#2488 + var _PA = $k[--$j]; //#2477 + $k[$j++] = _PA; //#2479 + $k[$j++] = _P9; //#2479 + $k[$j++] = _PA; //#2479 + $k[$j++] = Infinity; //#2477 + $aload($geti($_.ais, 0, $_.plen)); //#2478 + $r($counttomark() + 3, -2); //#2479 + var _PF = $k[--$j]; //#2479 + var _PG = $k[--$j]; //#2479 + $k[$j++] = _PF; //#2479 + $r(_PG, 1); //#2479 + var _PH = $a(); //#2479 + $k[$j++] = _PH; //#2480 + $_.isvaliddlpkeyseq(); //#2480 + if ($k[--$j]) { //#2487 + var _PJ = $k[--$j]; //#2481 + var _PK = $k[--$j]; //#2481 + $k[$j++] = _PJ; //#2481 + $k[$j++] = _PK; //#2481 + $j--; //#2481 + var _PL = $k[--$j]; //#2482 + var _PM = _PL.length; //#2482 + var _PN = $s(_PM + 50); //#2482 + $puti(_PN, 0, "AI ("); //#2483 + $puti(_PN, 4, _PL); //#2484 + $puti(_PN, _PM + 4, ") from query params should be in the path info"); //#2485 + $k[$j++] = _PL; //#2486 + $k[$j++] = _PN; //#2486 + $k[$j++] = _PM; //#2486 + $j--; //#2486 + var _PO = $k[--$j]; //#2486 + var _PP = $k[--$j]; //#2486 + $k[$j++] = _PO; //#2486 + $k[$j++] = _PP; //#2486 + $j--; //#2486 + var _PQ = $k[--$j]; //#2486 + $k[$j++] = 'bwipp.GS1dlAttributeMustBeQualifier#2486'; //#2486 + $k[$j++] = _PQ; //#2486 + bwipp_raiseerror(); //#2486 + } //#2486 + } //#2486 + $j--; //#2489 + } //#2489 + var _PS = $k[--$j]; //#2492 + $_.ais = $geti($_.ais, 0, _PS); //#2492 + $_.vals = $geti($_.vals, 0, _PS); //#2493 + for (var _PY = 0, _PX = $_.ais.length - 1; _PY <= _PX; _PY += 1) { //#2508 + $k[$j++] = _PY; //#2506 + if ($eq($get($_.ais, _PY), "01")) { //#2506 + var _Pb = $k[--$j]; //#2499 + var _Pd = $get($_.vals, _Pb); //#2499 + var _Pe = _Pd.length; //#2500 + $k[$j++] = _Pb; //#2505 + $k[$j++] = _Pd; //#2505 + if ((_Pe == 8) || ((_Pe == 12) || (_Pe == 13))) { //#2504 + var _Pg = $strcpy($s(14), "00000000000000"); //#2501 + var _Ph = $k[--$j]; //#2501 + $puti(_Pg, 14 - _Ph.length, _Ph); //#2501 + var _Pj = $k[--$j]; //#2502 + $put($_.vals, _Pj, _Pg); //#2502 + $k[$j++] = _Pj; //#2502 + } else { //#2504 + $j--; //#2504 + } //#2504 + } //#2504 $j--; //#2507 - $k[$j++] = 'bwipp.GS1notNumeric#2507'; //#2507 - $k[$j++] = "Not numeric"; //#2507 - $k[$j++] = false; //#2507 - return true; //#2507 } //#2507 - }; //#2507 - $_.lintcset82 = function() { - var _Kx = $k[--$j]; //#2511 - $k[$j++] = true; //#2516 - $forall(_Kx, function() { //#2516 - var _Ky = $s(1); //#2512 - $put(_Ky, 0, $k[--$j]); //#2512 - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Ky); //#2514 - if ($nt($k[--$j])) { //#2514 - $j -= 2; //#2514 - $k[$j++] = false; //#2514 - return true; //#2514 - } //#2514 - $j -= 3; //#2515 - }); //#2515 - if ($nt($k[--$j])) { //#2517 - $j--; //#2517 - $k[$j++] = 'bwipp.GS1badCSET82character#2517'; //#2517 - $k[$j++] = "Invalid CSET 82 character"; //#2517 - $k[$j++] = false; //#2517 - return true; //#2517 - } //#2517 - }; //#2517 - $_.lintcset39 = function() { - var _L2 = $k[--$j]; //#2521 - $k[$j++] = true; //#2526 - $forall(_L2, function() { //#2526 - var _L3 = $s(1); //#2522 - $put(_L3, 0, $k[--$j]); //#2522 - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _L3); //#2524 - if ($nt($k[--$j])) { //#2524 - $j -= 2; //#2524 - $k[$j++] = false; //#2524 - return true; //#2524 - } //#2524 - $j -= 3; //#2525 - }); //#2525 - if ($nt($k[--$j])) { //#2527 - $j--; //#2527 - $k[$j++] = 'bwipp.GS1badCSET39character#2527'; //#2527 - $k[$j++] = "Invalid CSET 39 character"; //#2527 - $k[$j++] = false; //#2527 - return true; //#2527 - } //#2527 - }; //#2527 - $_.lintkey = function() { - var _L7 = $k[--$j]; //#2531 - $k[$j++] = _L7; //#2531 - if (_L7.length < 2) { //#2531 - $j -= 2; //#2531 - $k[$j++] = 'bwipp.GS1keyTooShort#2531'; //#2531 - $k[$j++] = "Key is too short"; //#2531 - $k[$j++] = false; //#2531 - return true; //#2531 - } //#2531 - var _L8 = $k[--$j]; //#2532 - var _L9 = $get(_L8, 0); //#2532 - var _LA = $get(_L8, 1); //#2533 - if (((_L9 < 48) || (_L9 > 57)) || ((_LA < 48) || (_LA > 57))) { //#2535 - $j--; //#2534 - $k[$j++] = 'bwipp.GS1badGCP#2534'; //#2534 - $k[$j++] = "Non-numeric company prefix"; //#2534 - $k[$j++] = false; //#2534 - return true; //#2534 - } //#2534 - }; //#2534 - $_.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2540 - if ($nt($k[--$j])) { //#2540 - $j -= 2; //#2540 - $k[$j++] = 'bwipp.GS1badImporterIndex#2540'; //#2540 - $k[$j++] = "Invalid importer index"; //#2540 - $k[$j++] = false; //#2540 - return true; //#2540 - } //#2540 - $j -= 3; //#2541 - }; //#2541 - $_.lintcsum = function() { - $k[$j++] = Infinity; //#2545 - var _LD = $k[--$j]; //#2545 - var _LE = $k[--$j]; //#2545 - var _LF = ((_LE.length % 2) == 0) ? 3 : 1; //#2546 - $k[$j++] = _LD; //#2547 - $k[$j++] = _LF; //#2547 - $forall(_LE, function() { //#2547 - var _LG = $k[--$j]; //#2547 - var _LH = $k[--$j]; //#2547 - $k[$j++] = $f(_LG - 48) * _LH; //#2547 - $k[$j++] = $f(4 - _LH); //#2547 - }); //#2547 - $j--; //#2547 - var _LI = $counttomark() + 1; //#2548 - $k[$j++] = 0; //#2548 - for (var _LJ = 0, _LK = _LI - 1; _LJ < _LK; _LJ++) { //#2548 - var _LL = $k[--$j]; //#2548 - var _LM = $k[--$j]; //#2548 - $k[$j++] = $f(_LM + _LL); //#2548 - } //#2548 - var _LN = $k[--$j]; //#2548 - var _LO = $k[--$j]; //#2548 - $k[$j++] = _LN; //#2548 - $k[$j++] = _LO; //#2548 - $j--; //#2548 - if (($k[--$j] % 10) != 0) { //#2549 - $j--; //#2549 - $k[$j++] = 'bwipp.GS1badChecksum#2549'; //#2549 - $k[$j++] = "Bad checksum"; //#2549 - $k[$j++] = false; //#2549 - return true; //#2549 + } //#2507 + if (!bwipp_gs1process.__2521__) { //#2521 + $_ = Object.create($_); //#2521 + $k[$j++] = Infinity; //#2514 + var _Pk = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2519 + for (var _Pl = 0, _Pm = _Pk.length; _Pl < _Pm; _Pl++) { //#2520 + var _Pn = $get(_Pk, _Pl); //#2520 + $k[$j++] = _Pn; //#2520 + $k[$j++] = _Pn; //#2520 + } //#2520 + $_.aifixed = $d(); //#2520 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2520 + bwipp_gs1process.__2521__ = 1; //#2520 + $_ = Object.getPrototypeOf($_); //#2520 + } //#2520 + $k[$j++] = Infinity; //#2523 + var _Pq = $_.ais; //#2524 + for (var _Pr = 0, _Ps = _Pq.length; _Pr < _Ps; _Pr++) { //#2531 + var _Pt = $get(_Pq, _Pr); //#2531 + $k[$j++] = true; //#2530 + $k[$j++] = _Pt; //#2530 + if (_Pt.length >= 2) { //#2529 + var _Px = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2527 + if (_Px) { //#2527 + $j--; //#2527 + $k[$j++] = false; //#2527 + } //#2527 + } else { //#2529 + $j--; //#2529 + } //#2529 + } //#2529 + $_.fncs = $a(); //#2529 + if (!bwipp_gs1process.__2556__) { //#2556 + $_ = Object.create($_); //#2556 + $k[$j++] = Infinity; //#2537 + $k[$j++] = 0; //#2539 + for (var _Pz = 0, _Q0 = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Pz < _Q0; _Pz++) { //#2539 + var _Q2 = $k[--$j]; //#2539 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Pz); //#2539 + $k[$j++] = _Q2; //#2539 + $k[$j++] = $f(_Q2 + 1); //#2539 + } //#2539 + $j--; //#2539 + $_.cset82 = $d(); //#2540 + $k[$j++] = Infinity; //#2542 + $k[$j++] = 0; //#2544 + for (var _Q4 = 0, _Q5 = "#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".length; _Q4 < _Q5; _Q4++) { //#2544 + var _Q7 = $k[--$j]; //#2544 + $k[$j++] = $get("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _Q4); //#2544 + $k[$j++] = _Q7; //#2544 + $k[$j++] = $f(_Q7 + 1); //#2544 + } //#2544 + $j--; //#2544 + $_.cset39 = $d(); //#2545 + $k[$j++] = Infinity; //#2547 + $k[$j++] = 0; //#2549 + for (var _Q9 = 0, _QA = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _Q9 < _QA; _Q9++) { //#2549 + var _QC = $k[--$j]; //#2549 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _Q9); //#2549 + $k[$j++] = _QC; //#2549 + $k[$j++] = $f(_QC + 1); //#2549 } //#2549 - }; //#2549 - if (!bwipp_gs1process.__2562__) { //#2562 - $_ = Object.create($_); //#2562 - $k[$j++] = Infinity; //#2555 - $k[$j++] = 0; //#2555 - for (var _LQ = 0, _LR = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _LQ < _LR; _LQ++) { //#2555 - var _LT = $k[--$j]; //#2555 - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _LQ); //#2555 - $k[$j++] = _LT; //#2555 - $k[$j++] = $f(_LT + 1); //#2555 - } //#2555 - $j--; //#2555 - $_.cset82 = $d(); //#2556 - $k[$j++] = Infinity; //#2560 - $k[$j++] = 0; //#2560 - for (var _LV = 0, _LW = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _LV < _LW; _LV++) { //#2560 - var _LY = $k[--$j]; //#2560 - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _LV); //#2560 - $k[$j++] = _LY; //#2560 - $k[$j++] = $f(_LY + 1); //#2560 + $j--; //#2549 + $_.cset32 = $d(); //#2550 + $k[$j++] = Infinity; //#2552 + $k[$j++] = 0; //#2554 + for (var _QE = 0, _QF = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".length; _QE < _QF; _QE++) { //#2554 + var _QH = $k[--$j]; //#2554 + $k[$j++] = $get("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", _QE); //#2554 + $k[$j++] = _QH; //#2554 + $k[$j++] = $f(_QH + 1); //#2554 + } //#2554 + $j--; //#2554 + $_.cset64 = $d(); //#2555 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2555 + bwipp_gs1process.__2556__ = 1; //#2555 + $_ = Object.getPrototypeOf($_); //#2555 + } //#2555 + $_.lintnumeric = function() { + var _QK = $k[--$j]; //#2559 + $k[$j++] = true; //#2559 + $forall(_QK, function() { //#2559 + var _QL = $k[--$j]; //#2559 + if ((_QL < 48) || (_QL > 57)) { //#2559 + $j--; //#2559 + $k[$j++] = false; //#2559 + return true; //#2559 + } //#2559 + }); //#2559 + if ($nt($k[--$j])) { //#2560 + $j--; //#2560 + $k[$j++] = 'bwipp.GS1notNumeric#2560'; //#2560 + $k[$j++] = "Not numeric"; //#2560 + $k[$j++] = false; //#2560 + return true; //#2560 } //#2560 - $j--; //#2560 - $_.cset32 = $d(); //#2561 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2561 - bwipp_gs1process.__2562__ = 1; //#2561 - $_ = Object.getPrototypeOf($_); //#2561 - } //#2561 - $_.lintcsumalpha = function() { - var _Lb = $k[--$j]; //#2565 - $k[$j++] = _Lb; //#2565 - if (_Lb.length < 2) { //#2565 - $j -= 2; //#2565 - $k[$j++] = 'bwipp.GS1alphaTooShort#2565'; //#2565 - $k[$j++] = "Alphanumeric string is too short to check"; //#2565 + }; //#2560 + $_.lintcset82 = function() { + var _QN = $k[--$j]; //#2564 + $k[$j++] = true; //#2564 + $forall(_QN, function() { //#2564 + var _QQ = $get($_.cset82, $k[--$j]) !== undefined; //#2564 + if (!_QQ) { //#2564 + $j--; //#2564 + $k[$j++] = false; //#2564 + return true; //#2564 + } //#2564 + }); //#2564 + if ($nt($k[--$j])) { //#2565 + $j--; //#2565 + $k[$j++] = 'bwipp.GS1badCSET82character#2565'; //#2565 + $k[$j++] = "Invalid CSET 82 character"; //#2565 $k[$j++] = false; //#2565 return true; //#2565 } //#2565 - var _Lc = $k[--$j]; //#2566 - $k[$j++] = _Lc; //#2568 - $k[$j++] = _Lc.length - 2; //#2568 - $k[$j++] = $geti(_Lc, 0, _Lc.length - 2); //#2568 - $k[$j++] = Infinity; //#2568 - var _Le = $k[--$j]; //#2568 - var _Lf = $k[--$j]; //#2568 - $k[$j++] = _Le; //#2570 - $forall(_Lf, function() { //#2570 - var _Lg = $k[--$j]; //#2569 - var _Li = $get($_.cset82, _Lg) !== undefined; //#2569 - $k[$j++] = _Lg; //#2569 - if (_Li) { //#2569 - var _Ll = $get($_.cset82, $k[--$j]); //#2569 - $k[$j++] = _Ll; //#2569 - } else { //#2569 - $k[$j++] = -1; //#2569 + }; //#2565 + $_.lintcset39 = function() { + var _QS = $k[--$j]; //#2569 + $k[$j++] = true; //#2569 + $forall(_QS, function() { //#2569 + var _QV = $get($_.cset39, $k[--$j]) !== undefined; //#2569 + if (!_QV) { //#2569 + $j--; //#2569 + $k[$j++] = false; //#2569 return true; //#2569 } //#2569 }); //#2569 - var _Lm = $k[--$j]; //#2571 - $k[$j++] = _Lm; //#2571 - if (_Lm == -1) { //#2571 - $cleartomark(); //#2571 - $j -= 3; //#2571 - $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2571'; //#2571 - $k[$j++] = "Unknown CSET 82 character"; //#2571 - $k[$j++] = false; //#2571 - return true; //#2571 - } //#2571 - $astore($a($counttomark())); //#2572 - var _Lp = $k[--$j]; //#2572 - var _Lq = $k[--$j]; //#2572 - $k[$j++] = _Lp; //#2572 - $k[$j++] = _Lq; //#2572 - $j--; //#2572 - var _Lr = $k[--$j]; //#2573 - var _Ls = $k[--$j]; //#2573 - var _Lu = $geti($k[--$j], _Ls, 2); //#2574 - $k[$j++] = _Lr; //#2574 - $k[$j++] = _Lu; //#2574 - $k[$j++] = Infinity; //#2574 - var _Lv = $k[--$j]; //#2574 - var _Lw = $k[--$j]; //#2574 - $k[$j++] = _Lv; //#2576 - $forall(_Lw, function() { //#2576 - var _Lx = $k[--$j]; //#2575 - var _Lz = $get($_.cset32, _Lx) !== undefined; //#2575 - $k[$j++] = _Lx; //#2575 - if (_Lz) { //#2575 - var _M2 = $get($_.cset32, $k[--$j]); //#2575 - $k[$j++] = _M2; //#2575 - } else { //#2575 - $k[$j++] = -1; //#2575 + if ($nt($k[--$j])) { //#2570 + $j--; //#2570 + $k[$j++] = 'bwipp.GS1badCSET39character#2570'; //#2570 + $k[$j++] = "Invalid CSET 39 character"; //#2570 + $k[$j++] = false; //#2570 + return true; //#2570 + } //#2570 + }; //#2570 + $_.lintcset64 = function() { + var _QX = $k[--$j]; //#2575 + $k[$j++] = true; //#2575 + $forall(_QX, function() { //#2575 + var _QY = $k[--$j]; //#2575 + var _Qa = $get($_.cset64, _QY) !== undefined; //#2575 + if ((!_Qa) && (_QY != 61)) { //#2575 + $j--; //#2575 + $k[$j++] = false; //#2575 return true; //#2575 } //#2575 }); //#2575 - var _M3 = $k[--$j]; //#2577 - $k[$j++] = _M3; //#2577 - if (_M3 == -1) { //#2577 - $cleartomark(); //#2577 - $j -= 2; //#2577 - $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2577'; //#2577 - $k[$j++] = "Unknown CSET 32 character"; //#2577 - $k[$j++] = false; //#2577 - return true; //#2577 - } //#2577 - $astore($a($counttomark())); //#2578 - var _M6 = $k[--$j]; //#2578 - var _M7 = $k[--$j]; //#2578 - $k[$j++] = _M6; //#2578 - $k[$j++] = _M7; //#2578 - $j--; //#2578 - var _M8 = $k[--$j]; //#2579 - var _MB = $k[--$j]; //#2579 - var _MC = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2580 - var _MD = _MB.length; //#2582 - $k[$j++] = $f(($get(_M8, 0) << 5) + $get(_M8, 1)); //#2582 - $k[$j++] = _MB; //#2582 - $k[$j++] = _MC; //#2582 - $k[$j++] = _MD; //#2582 - if (_MD > _MC.length) { //#2582 - $j -= 5; //#2582 - $k[$j++] = 'bwipp.GS1alphaTooLong#2582'; //#2582 - $k[$j++] = "Alphanumeric string is too long to check"; //#2582 - $k[$j++] = false; //#2582 - return true; //#2582 - } //#2582 - var _ME = $k[--$j]; //#2583 - var _MG = $geti($k[--$j], 0, _ME); //#2583 - for (var _MH = 0, _MI = _MG.length; _MH < _MI; _MH++) { //#2583 - var _MK = $k[--$j]; //#2583 - $k[$j++] = $get(_MG, _MH); //#2583 - $k[$j++] = _MK; //#2583 + if ($nt($k[--$j])) { //#2576 + $j--; //#2576 + $k[$j++] = 'bwipp.GS1badCSET64character#2576'; //#2576 + $k[$j++] = "Invalid CSET 64 character"; //#2576 + $k[$j++] = false; //#2576 + return true; //#2576 + } //#2576 + }; //#2576 + $_.lintkey = function() { + var _Qc = $k[--$j]; //#2580 + $k[$j++] = _Qc; //#2580 + if (_Qc.length < 2) { //#2580 + $j -= 2; //#2580 + $k[$j++] = 'bwipp.GS1keyTooShort#2580'; //#2580 + $k[$j++] = "Key is too short"; //#2580 + $k[$j++] = false; //#2580 + return true; //#2580 + } //#2580 + var _Qd = $k[--$j]; //#2581 + var _Qe = $get(_Qd, 0); //#2581 + var _Qf = $get(_Qd, 1); //#2582 + if (((_Qe < 48) || (_Qe > 57)) || ((_Qf < 48) || (_Qf > 57))) { //#2584 + $j--; //#2583 + $k[$j++] = 'bwipp.GS1badGCP#2583'; //#2583 + $k[$j++] = "Non-numeric company prefix"; //#2583 + $k[$j++] = false; //#2583 + return true; //#2583 } //#2583 - var _ML = $k[--$j]; //#2584 - $k[$j++] = 0; //#2584 - $forall(_ML, function() { //#2584 - var _MM = $k[--$j]; //#2584 - var _MN = $k[--$j]; //#2584 - var _MO = $k[--$j]; //#2584 - $k[$j++] = $f(_MN + (_MO * _MM)); //#2584 - }); //#2584 - var _MP = $k[--$j]; //#2584 - if ($k[--$j] != (_MP % 1021)) { //#2585 - $j--; //#2585 - $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2585'; //#2585 - $k[$j++] = "Bad alphanumeric check characters"; //#2585 - $k[$j++] = false; //#2585 - return true; //#2585 - } //#2585 - }; //#2585 - if (!bwipp_gs1process.__2609__) { //#2609 - $_ = Object.create($_); //#2609 - $k[$j++] = Infinity; //#2608 - var _MR = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2607 - for (var _MS = 0, _MT = _MR.length; _MS < _MT; _MS++) { //#2608 - var _MU = $get(_MR, _MS); //#2608 - $k[$j++] = _MU; //#2608 - $k[$j++] = _MU; //#2608 + }; //#2583 + $_.lintimporteridx = function() { + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2589 + if ($nt($k[--$j])) { //#2589 + $j -= 2; //#2589 + $k[$j++] = 'bwipp.GS1badImporterIndex#2589'; //#2589 + $k[$j++] = "Invalid importer index"; //#2589 + $k[$j++] = false; //#2589 + return true; //#2589 + } //#2589 + $j -= 3; //#2590 + }; //#2590 + $_.lintcsum = function() { + $k[$j++] = Infinity; //#2594 + var _Qi = $k[--$j]; //#2594 + var _Qj = $k[--$j]; //#2594 + var _Qk = ((_Qj.length % 2) == 0) ? 3 : 1; //#2595 + $k[$j++] = _Qi; //#2596 + $k[$j++] = _Qk; //#2596 + $forall(_Qj, function() { //#2596 + var _Ql = $k[--$j]; //#2596 + var _Qm = $k[--$j]; //#2596 + $k[$j++] = $f(_Ql - 48) * _Qm; //#2596 + $k[$j++] = $f(4 - _Qm); //#2596 + }); //#2596 + $j--; //#2596 + var _Qn = $counttomark() + 1; //#2597 + $k[$j++] = 0; //#2597 + for (var _Qo = 0, _Qp = _Qn - 1; _Qo < _Qp; _Qo++) { //#2597 + var _Qq = $k[--$j]; //#2597 + var _Qr = $k[--$j]; //#2597 + $k[$j++] = $f(_Qr + _Qq); //#2597 + } //#2597 + var _Qs = $k[--$j]; //#2597 + var _Qt = $k[--$j]; //#2597 + $k[$j++] = _Qs; //#2597 + $k[$j++] = _Qt; //#2597 + $j--; //#2597 + if (($k[--$j] % 10) != 0) { //#2598 + $j--; //#2598 + $k[$j++] = 'bwipp.GS1badChecksum#2598'; //#2598 + $k[$j++] = "Bad checksum"; //#2598 + $k[$j++] = false; //#2598 + return true; //#2598 + } //#2598 + }; //#2598 + $_.lintcsumalpha = function() { + var _Qv = $k[--$j]; //#2602 + $k[$j++] = _Qv; //#2602 + if (_Qv.length < 2) { //#2602 + $j -= 2; //#2602 + $k[$j++] = 'bwipp.GS1alphaTooShort#2602'; //#2602 + $k[$j++] = "Alphanumeric string is too short to check"; //#2602 + $k[$j++] = false; //#2602 + return true; //#2602 + } //#2602 + var _Qw = $k[--$j]; //#2603 + $k[$j++] = _Qw; //#2605 + $k[$j++] = _Qw.length - 2; //#2605 + $k[$j++] = $geti(_Qw, 0, _Qw.length - 2); //#2605 + $k[$j++] = Infinity; //#2605 + var _Qy = $k[--$j]; //#2605 + var _Qz = $k[--$j]; //#2605 + $k[$j++] = _Qy; //#2607 + $forall(_Qz, function() { //#2607 + var _R0 = $k[--$j]; //#2606 + var _R2 = $get($_.cset82, _R0) !== undefined; //#2606 + $k[$j++] = _R0; //#2606 + if (_R2) { //#2606 + var _R5 = $get($_.cset82, $k[--$j]); //#2606 + $k[$j++] = _R5; //#2606 + } else { //#2606 + $k[$j++] = -1; //#2606 + return true; //#2606 + } //#2606 + }); //#2606 + var _R6 = $k[--$j]; //#2608 + $k[$j++] = _R6; //#2608 + if (_R6 == -1) { //#2608 + $cleartomark(); //#2608 + $j -= 3; //#2608 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2608'; //#2608 + $k[$j++] = "Unknown CSET 82 character"; //#2608 + $k[$j++] = false; //#2608 + return true; //#2608 } //#2608 - $_.iso3166 = $d(); //#2608 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2608 - bwipp_gs1process.__2609__ = 1; //#2608 - $_ = Object.getPrototypeOf($_); //#2608 - } //#2608 + $astore($a($counttomark())); //#2609 + var _R9 = $k[--$j]; //#2609 + var _RA = $k[--$j]; //#2609 + $k[$j++] = _R9; //#2609 + $k[$j++] = _RA; //#2609 + $j--; //#2609 + var _RB = $k[--$j]; //#2610 + var _RC = $k[--$j]; //#2610 + var _RE = $geti($k[--$j], _RC, 2); //#2611 + $k[$j++] = _RB; //#2611 + $k[$j++] = _RE; //#2611 + $k[$j++] = Infinity; //#2611 + var _RF = $k[--$j]; //#2611 + var _RG = $k[--$j]; //#2611 + $k[$j++] = _RF; //#2613 + $forall(_RG, function() { //#2613 + var _RH = $k[--$j]; //#2612 + var _RJ = $get($_.cset32, _RH) !== undefined; //#2612 + $k[$j++] = _RH; //#2612 + if (_RJ) { //#2612 + var _RM = $get($_.cset32, $k[--$j]); //#2612 + $k[$j++] = _RM; //#2612 + } else { //#2612 + $k[$j++] = -1; //#2612 + return true; //#2612 + } //#2612 + }); //#2612 + var _RN = $k[--$j]; //#2614 + $k[$j++] = _RN; //#2614 + if (_RN == -1) { //#2614 + $cleartomark(); //#2614 + $j -= 2; //#2614 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2614'; //#2614 + $k[$j++] = "Unknown CSET 32 character"; //#2614 + $k[$j++] = false; //#2614 + return true; //#2614 + } //#2614 + $astore($a($counttomark())); //#2615 + var _RQ = $k[--$j]; //#2615 + var _RR = $k[--$j]; //#2615 + $k[$j++] = _RQ; //#2615 + $k[$j++] = _RR; //#2615 + $j--; //#2615 + var _RS = $k[--$j]; //#2616 + var _RV = $k[--$j]; //#2616 + var _RW = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2617 + var _RX = _RV.length; //#2619 + $k[$j++] = $f(($get(_RS, 0) << 5) + $get(_RS, 1)); //#2619 + $k[$j++] = _RV; //#2619 + $k[$j++] = _RW; //#2619 + $k[$j++] = _RX; //#2619 + if (_RX > _RW.length) { //#2619 + $j -= 5; //#2619 + $k[$j++] = 'bwipp.GS1alphaTooLong#2619'; //#2619 + $k[$j++] = "Alphanumeric string is too long to check"; //#2619 + $k[$j++] = false; //#2619 + return true; //#2619 + } //#2619 + var _RY = $k[--$j]; //#2620 + var _Ra = $geti($k[--$j], 0, _RY); //#2620 + for (var _Rb = 0, _Rc = _Ra.length; _Rb < _Rc; _Rb++) { //#2620 + var _Re = $k[--$j]; //#2620 + $k[$j++] = $get(_Ra, _Rb); //#2620 + $k[$j++] = _Re; //#2620 + } //#2620 + var _Rf = $k[--$j]; //#2621 + $k[$j++] = 0; //#2621 + $forall(_Rf, function() { //#2621 + var _Rg = $k[--$j]; //#2621 + var _Rh = $k[--$j]; //#2621 + var _Ri = $k[--$j]; //#2621 + $k[$j++] = $f(_Rh + (_Ri * _Rg)); //#2621 + }); //#2621 + var _Rj = $k[--$j]; //#2621 + if ($k[--$j] != (_Rj % 1021)) { //#2622 + $j--; //#2622 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2622'; //#2622 + $k[$j++] = "Bad alphanumeric check characters"; //#2622 + $k[$j++] = false; //#2622 + return true; //#2622 + } //#2622 + }; //#2622 + if (!bwipp_gs1process.__2646__) { //#2646 + $_ = Object.create($_); //#2646 + $k[$j++] = Infinity; //#2626 + var _Rl = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2644 + for (var _Rm = 0, _Rn = _Rl.length; _Rm < _Rn; _Rm++) { //#2645 + var _Ro = $get(_Rl, _Rm); //#2645 + $k[$j++] = _Ro; //#2645 + $k[$j++] = _Ro; //#2645 + } //#2645 + $_.iso3166 = $d(); //#2645 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2645 + bwipp_gs1process.__2646__ = 1; //#2645 + $_ = Object.getPrototypeOf($_); //#2645 + } //#2645 $_.lintiso3166 = function() { - var _MZ = $get($_.iso3166, $k[--$j]) !== undefined; //#2612 - if (!_MZ) { //#2612 - $j--; //#2612 - $k[$j++] = 'bwipp.GS1UnknownCountry#2612'; //#2612 - $k[$j++] = "Unknown country code"; //#2612 - $k[$j++] = false; //#2612 - return true; //#2612 - } //#2612 - }; //#2612 + var _Rt = $get($_.iso3166, $k[--$j]) !== undefined; //#2649 + if (!_Rt) { //#2649 + $j--; //#2649 + $k[$j++] = 'bwipp.GS1UnknownCountry#2649'; //#2649 + $k[$j++] = "Unknown country code"; //#2649 + $k[$j++] = false; //#2649 + return true; //#2649 + } //#2649 + }; //#2649 $_.lintiso3166999 = function() { - var _Ma = $k[--$j]; //#2616 - $k[$j++] = _Ma; //#2620 - if ($ne(_Ma, '999')) { //#2619 - var _Md = $get($_.iso3166, $k[--$j]) !== undefined; //#2617 - if (!_Md) { //#2617 - $j--; //#2617 - $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2617'; //#2617 - $k[$j++] = "Unknown country code or not 999"; //#2617 - $k[$j++] = false; //#2617 - return true; //#2617 - } //#2617 - } else { //#2619 - $j--; //#2619 - } //#2619 - }; //#2619 + var _Ru = $k[--$j]; //#2653 + $k[$j++] = _Ru; //#2657 + if ($ne(_Ru, '999')) { //#2656 + var _Rx = $get($_.iso3166, $k[--$j]) !== undefined; //#2654 + if (!_Rx) { //#2654 + $j--; //#2654 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2654'; //#2654 + $k[$j++] = "Unknown country code or not 999"; //#2654 + $k[$j++] = false; //#2654 + return true; //#2654 + } //#2654 + } else { //#2656 + $j--; //#2656 + } //#2656 + }; //#2656 $_.lintiso3166list = function() { - var _Me = $k[--$j]; //#2624 - $k[$j++] = _Me; //#2626 - if ((_Me.length % 3) != 0) { //#2626 - $j -= 2; //#2625 - $k[$j++] = 'bwipp.GS1BadCountryListLength#2625'; //#2625 - $k[$j++] = "Not a group of three-digit country codes"; //#2625 - $k[$j++] = false; //#2625 - return true; //#2625 - } //#2625 - var _Mf = $k[--$j]; //#2628 - $k[$j++] = _Mf; //#2631 - $k[$j++] = true; //#2631 - for (var _Mh = 0, _Mg = _Mf.length - 1; _Mh <= _Mg; _Mh += 3) { //#2631 - var _Mi = $k[--$j]; //#2629 - var _Mj = $k[--$j]; //#2629 - var _Mm = $get($_.iso3166, $geti(_Mj, _Mh, 3)) !== undefined; //#2630 - $k[$j++] = _Mj; //#2630 - $k[$j++] = _Mi; //#2630 - if (!_Mm) { //#2630 - $j -= 2; //#2630 - $k[$j++] = false; //#2630 - break; //#2630 - } //#2630 - } //#2630 - if ($nt($k[--$j])) { //#2632 - $j--; //#2632 - $k[$j++] = 'bwipp.GS1UnknownCountry#2632'; //#2632 - $k[$j++] = "Unknown country code"; //#2632 - $k[$j++] = false; //#2632 - return true; //#2632 - } //#2632 - $j--; //#2633 - }; //#2633 - if (!bwipp_gs1process.__2663__) { //#2663 - $_ = Object.create($_); //#2663 - $k[$j++] = Infinity; //#2662 - var _Mo = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2661 - for (var _Mp = 0, _Mq = _Mo.length; _Mp < _Mq; _Mp++) { //#2662 - var _Mr = $get(_Mo, _Mp); //#2662 - $k[$j++] = _Mr; //#2662 - $k[$j++] = _Mr; //#2662 + var _Ry = $k[--$j]; //#2661 + $k[$j++] = _Ry; //#2663 + if ((_Ry.length % 3) != 0) { //#2663 + $j -= 2; //#2662 + $k[$j++] = 'bwipp.GS1BadCountryListLength#2662'; //#2662 + $k[$j++] = "Not a group of three-digit country codes"; //#2662 + $k[$j++] = false; //#2662 + return true; //#2662 } //#2662 - $_.iso3166alpha2 = $d(); //#2662 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2662 - bwipp_gs1process.__2663__ = 1; //#2662 - $_ = Object.getPrototypeOf($_); //#2662 - } //#2662 + var _Rz = $k[--$j]; //#2665 + $k[$j++] = _Rz; //#2668 + $k[$j++] = true; //#2668 + for (var _S1 = 0, _S0 = _Rz.length - 1; _S1 <= _S0; _S1 += 3) { //#2668 + var _S2 = $k[--$j]; //#2666 + var _S3 = $k[--$j]; //#2666 + var _S6 = $get($_.iso3166, $geti(_S3, _S1, 3)) !== undefined; //#2667 + $k[$j++] = _S3; //#2667 + $k[$j++] = _S2; //#2667 + if (!_S6) { //#2667 + $j -= 2; //#2667 + $k[$j++] = false; //#2667 + break; //#2667 + } //#2667 + } //#2667 + if ($nt($k[--$j])) { //#2669 + $j--; //#2669 + $k[$j++] = 'bwipp.GS1UnknownCountry#2669'; //#2669 + $k[$j++] = "Unknown country code"; //#2669 + $k[$j++] = false; //#2669 + return true; //#2669 + } //#2669 + $j--; //#2670 + }; //#2670 + if (!bwipp_gs1process.__2700__) { //#2700 + $_ = Object.create($_); //#2700 + $k[$j++] = Infinity; //#2674 + var _S8 = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2698 + for (var _S9 = 0, _SA = _S8.length; _S9 < _SA; _S9++) { //#2699 + var _SB = $get(_S8, _S9); //#2699 + $k[$j++] = _SB; //#2699 + $k[$j++] = _SB; //#2699 + } //#2699 + $_.iso3166alpha2 = $d(); //#2699 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2699 + bwipp_gs1process.__2700__ = 1; //#2699 + $_ = Object.getPrototypeOf($_); //#2699 + } //#2699 $_.lintiso3166alpha2 = function() { - var _Mw = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2666 - if (!_Mw) { //#2666 - $j--; //#2666 - $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2666'; //#2666 - $k[$j++] = "Unknown country alpha code"; //#2666 - $k[$j++] = false; //#2666 - return true; //#2666 - } //#2666 - }; //#2666 - if (!bwipp_gs1process.__2694__) { //#2694 - $_ = Object.create($_); //#2694 - $k[$j++] = Infinity; //#2693 - var _Mx = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2692 - for (var _My = 0, _Mz = _Mx.length; _My < _Mz; _My++) { //#2693 - var _N0 = $get(_Mx, _My); //#2693 - $k[$j++] = _N0; //#2693 - $k[$j++] = _N0; //#2693 - } //#2693 - $_.iso4217 = $d(); //#2693 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2693 - bwipp_gs1process.__2694__ = 1; //#2693 - $_ = Object.getPrototypeOf($_); //#2693 - } //#2693 + var _SG = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2703 + if (!_SG) { //#2703 + $j--; //#2703 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2703'; //#2703 + $k[$j++] = "Unknown country alpha code"; //#2703 + $k[$j++] = false; //#2703 + return true; //#2703 + } //#2703 + }; //#2703 + if (!bwipp_gs1process.__2731__) { //#2731 + $_ = Object.create($_); //#2731 + $k[$j++] = Infinity; //#2707 + var _SH = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2729 + for (var _SI = 0, _SJ = _SH.length; _SI < _SJ; _SI++) { //#2730 + var _SK = $get(_SH, _SI); //#2730 + $k[$j++] = _SK; //#2730 + $k[$j++] = _SK; //#2730 + } //#2730 + $_.iso4217 = $d(); //#2730 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2730 + bwipp_gs1process.__2731__ = 1; //#2730 + $_ = Object.getPrototypeOf($_); //#2730 + } //#2730 $_.lintiso4217 = function() { - var _N5 = $get($_.iso4217, $k[--$j]) !== undefined; //#2697 - if (!_N5) { //#2697 - $j--; //#2697 - $k[$j++] = 'bwipp.GS1UnknownCurrency#2697'; //#2697 - $k[$j++] = "Unknown currency code"; //#2697 - $k[$j++] = false; //#2697 - return true; //#2697 - } //#2697 - }; //#2697 + var _SP = $get($_.iso4217, $k[--$j]) !== undefined; //#2734 + if (!_SP) { //#2734 + $j--; //#2734 + $k[$j++] = 'bwipp.GS1UnknownCurrency#2734'; //#2734 + $k[$j++] = "Unknown currency code"; //#2734 + $k[$j++] = false; //#2734 + return true; //#2734 + } //#2734 + }; //#2734 $_.lintiban = function() { - var _N6 = $k[--$j]; //#2701 - $k[$j++] = _N6; //#2701 - if (_N6.length <= 4) { //#2701 - $j -= 2; //#2701 - $k[$j++] = 'bwipp.GS1tooShort#2701'; //#2701 - $k[$j++] = "IBAN too short"; //#2701 - $k[$j++] = false; //#2701 - return true; //#2701 - } //#2701 - var _N7 = $k[--$j]; //#2702 - $k[$j++] = _N7; //#2707 - $k[$j++] = true; //#2707 - $forall(_N7, function() { //#2707 - var _N8 = $s(1); //#2703 - $put(_N8, 0, $k[--$j]); //#2703 - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _N8); //#2705 - if ($nt($k[--$j])) { //#2705 - $j -= 2; //#2705 - $k[$j++] = false; //#2705 - return true; //#2705 - } //#2705 - $j -= 3; //#2706 - }); //#2706 - if ($nt($k[--$j])) { //#2708 - $j--; //#2708 - $k[$j++] = 'bwipp.GS1badIBANcharacter#2708'; //#2708 - $k[$j++] = "Invalid IBAN character"; //#2708 - $k[$j++] = false; //#2708 - return true; //#2708 - } //#2708 - var _NC = $k[--$j]; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = Infinity; //#2709 - var _ND = $k[--$j]; //#2709 - var _NE = $k[--$j]; //#2709 - $k[$j++] = _ND; //#2709 - $k[$j++] = _NE; //#2709 - $k[$j++] = Infinity; //#2709 - var _NF = $k[--$j]; //#2709 - var _NG = $k[--$j]; //#2709 - $k[$j++] = _NF; //#2709 - $forall(_NG); //#2709 - $r($counttomark(), -4); //#2709 - $astore($a($counttomark())); //#2709 - var _NK = $k[--$j]; //#2709 - var _NL = $k[--$j]; //#2709 - $k[$j++] = _NK; //#2709 - $k[$j++] = _NL; //#2709 - $j--; //#2709 - $forall($k[--$j], function() { //#2711 - var _NO = $f($k[--$j] - 48); //#2710 - $k[$j++] = _NO; //#2710 - if (_NO > 9) { //#2710 - var _NQ = $f($k[--$j] - 7); //#2710 - $k[$j++] = ~~(_NQ / 10); //#2710 - $k[$j++] = _NQ % 10; //#2710 - } //#2710 - }); //#2710 - $astore($a($counttomark())); //#2711 - var _NT = $k[--$j]; //#2711 - var _NU = $k[--$j]; //#2711 - $k[$j++] = _NT; //#2711 - $k[$j++] = _NU; //#2711 - $j--; //#2711 - var _NV = $k[--$j]; //#2712 - $k[$j++] = 0; //#2712 - $forall(_NV, function() { //#2712 - var _NW = $k[--$j]; //#2712 - var _NX = $k[--$j]; //#2712 - $k[$j++] = ($f(_NW + (_NX * 10))) % 97; //#2712 - }); //#2712 - if ($k[--$j] != 1) { //#2713 - $j -= 2; //#2713 - $k[$j++] = 'bwipp.GS1badIBANchecksum#2713'; //#2713 - $k[$j++] = "IBAN checksum incorrect"; //#2713 - $k[$j++] = false; //#2713 - return true; //#2713 - } //#2713 - var _Na = $geti($k[--$j], 0, 2); //#2714 - $k[$j++] = _Na; //#2714 - $_.lintiso3166alpha2(); //#2714 - }; //#2714 - $_.lintzero = function() { - if ($ne($k[--$j], "0")) { //#2718 - $j--; //#2718 - $k[$j++] = 'bwipp.GS1zeroRequired#2718'; //#2718 - $k[$j++] = "Zero is required"; //#2718 - $k[$j++] = false; //#2718 - return true; //#2718 - } //#2718 - }; //#2718 - $_.lintnonzero = function() { - var _Nc = $k[--$j]; //#2722 - $k[$j++] = false; //#2722 - $forall(_Nc, function() { //#2722 - if ($k[--$j] != 48) { //#2722 - $j--; //#2722 - $k[$j++] = true; //#2722 - } //#2722 - }); //#2722 - if ($nt($k[--$j])) { //#2723 - $j--; //#2723 - $k[$j++] = 'bwipp.GS1zeroNotPermitted#2723'; //#2723 - $k[$j++] = "Zero not permitted"; //#2723 - $k[$j++] = false; //#2723 - return true; //#2723 - } //#2723 - }; //#2723 - $_.lintnozeroprefix = function() { - var _Nf = $k[--$j]; //#2727 - if ((_Nf.length > 1) && ($get(_Nf, 0) == 48)) { //#2729 - $j--; //#2728 - $k[$j++] = 'bwipp.GS1badZeroPrefix#2728'; //#2728 - $k[$j++] = "Zero prefix is not permitted"; //#2728 - $k[$j++] = false; //#2728 - return true; //#2728 - } //#2728 - }; //#2728 - $_.lintyymmd0 = function() { - var _Nh = $k[--$j]; //#2733 - var _Nj = $cvi($geti(_Nh, 2, 2)); //#2733 - $k[$j++] = _Nh; //#2733 - if ((_Nj < 1) || (_Nj > 12)) { //#2733 - $j--; //#2733 - $k[$j++] = 'bwipp.GS1badMonth#2733'; //#2733 - $k[$j++] = "Invalid month"; //#2733 - $k[$j++] = false; //#2733 - return true; //#2733 - } //#2733 - var _Nk = $k[--$j]; //#2734 - var _Nm = $cvi($geti(_Nk, 0, 2)); //#2734 - var _Nn = _Nm - 21; //#2735 - $k[$j++] = _Nk; //#2735 - $k[$j++] = _Nm; //#2735 - $k[$j++] = _Nn; //#2735 - if (_Nn >= 51) { //#2735 - $j--; //#2735 - var _No = $k[--$j]; //#2735 - $k[$j++] = $f(_No + 1900); //#2735 - } else { //#2735 - if ($k[--$j] <= -50) { //#2735 - var _Nq = $k[--$j]; //#2735 - $k[$j++] = $f(_Nq + 2100); //#2735 - } else { //#2735 - var _Nr = $k[--$j]; //#2735 - $k[$j++] = $f(_Nr + 2000); //#2735 - } //#2735 - } //#2735 - var _Ns = $k[--$j]; //#2736 - $k[$j++] = ((_Ns % 400) == 0) || (((_Ns % 4) == 0) && ((_Ns % 100) != 0)); //#2737 - $k[$j++] = Infinity; //#2737 - var _Nt = $k[--$j]; //#2737 - var _Nv = $k[--$j] ? 29 : 28; //#2737 - $k[$j++] = _Nt; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = _Nv; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - var _Nw = $a(); //#2737 - var _Nx = $k[--$j]; //#2738 - if ($get(_Nw, $cvi($geti(_Nx, 2, 2)) - 1) < $cvi($geti(_Nx, 4, 2))) { //#2739 - $j--; //#2739 - $k[$j++] = 'bwipp.GS1badDay#2739'; //#2739 - $k[$j++] = "Invalid day of month"; //#2739 - $k[$j++] = false; //#2739 - return true; //#2739 - } //#2739 - }; //#2739 - $_.lintyymmdd = function() { - var _O1 = $k[--$j]; //#2743 - $k[$j++] = _O1; //#2743 - if (_O1.length != 6) { //#2743 - $j--; //#2743 - $k[$j++] = 'bwipp.GS1badDateLength#2743'; //#2743 - $k[$j++] = "Invalid length for date"; //#2743 - $k[$j++] = false; //#2743 - return true; //#2743 - } //#2743 - var _O2 = $k[--$j]; //#2744 - $k[$j++] = _O2; //#2744 - if ($cvi($geti(_O2, 4, 2)) < 1) { //#2744 - $j--; //#2744 - $k[$j++] = 'bwipp.GS1badDay#2744'; //#2744 - $k[$j++] = "Invalid day of month"; //#2744 - $k[$j++] = false; //#2744 - return true; //#2744 - } //#2744 - $_.lintyymmd0(); //#2745 - }; //#2745 - $_.lintyymmddhh = function() { - var _O4 = $k[--$j]; //#2749 - $k[$j++] = _O4; //#2749 - if (_O4.length != 8) { //#2749 - $j--; //#2749 - $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2749'; //#2749 - $k[$j++] = "Invalid length for date with hour"; //#2749 - $k[$j++] = false; //#2749 - return true; //#2749 - } //#2749 - var _O5 = $k[--$j]; //#2750 - $k[$j++] = _O5; //#2750 - if ($cvi($geti(_O5, 6, 2)) > 23) { //#2750 + var _SQ = $k[--$j]; //#2738 + $k[$j++] = _SQ; //#2738 + if (_SQ.length <= 4) { //#2738 + $j -= 2; //#2738 + $k[$j++] = 'bwipp.GS1tooShort#2738'; //#2738 + $k[$j++] = "IBAN too short"; //#2738 + $k[$j++] = false; //#2738 + return true; //#2738 + } //#2738 + var _SR = $k[--$j]; //#2739 + $k[$j++] = _SR; //#2744 + $k[$j++] = true; //#2744 + $forall(_SR, function() { //#2744 + var _SS = $s(1); //#2740 + $put(_SS, 0, $k[--$j]); //#2740 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _SS); //#2742 + if ($nt($k[--$j])) { //#2742 + $j -= 2; //#2742 + $k[$j++] = false; //#2742 + return true; //#2742 + } //#2742 + $j -= 3; //#2743 + }); //#2743 + if ($nt($k[--$j])) { //#2745 + $j--; //#2745 + $k[$j++] = 'bwipp.GS1badIBANcharacter#2745'; //#2745 + $k[$j++] = "Invalid IBAN character"; //#2745 + $k[$j++] = false; //#2745 + return true; //#2745 + } //#2745 + var _SW = $k[--$j]; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = Infinity; //#2746 + var _SX = $k[--$j]; //#2746 + var _SY = $k[--$j]; //#2746 + $k[$j++] = _SX; //#2746 + $k[$j++] = _SY; //#2746 + $k[$j++] = Infinity; //#2746 + var _SZ = $k[--$j]; //#2746 + var _Sa = $k[--$j]; //#2746 + $k[$j++] = _SZ; //#2746 + $forall(_Sa); //#2746 + $r($counttomark(), -4); //#2746 + $astore($a($counttomark())); //#2746 + var _Se = $k[--$j]; //#2746 + var _Sf = $k[--$j]; //#2746 + $k[$j++] = _Se; //#2746 + $k[$j++] = _Sf; //#2746 + $j--; //#2746 + $forall($k[--$j], function() { //#2748 + var _Si = $f($k[--$j] - 48); //#2747 + $k[$j++] = _Si; //#2747 + if (_Si > 9) { //#2747 + var _Sk = $f($k[--$j] - 7); //#2747 + $k[$j++] = ~~(_Sk / 10); //#2747 + $k[$j++] = _Sk % 10; //#2747 + } //#2747 + }); //#2747 + $astore($a($counttomark())); //#2748 + var _Sn = $k[--$j]; //#2748 + var _So = $k[--$j]; //#2748 + $k[$j++] = _Sn; //#2748 + $k[$j++] = _So; //#2748 + $j--; //#2748 + var _Sp = $k[--$j]; //#2749 + $k[$j++] = 0; //#2749 + $forall(_Sp, function() { //#2749 + var _Sq = $k[--$j]; //#2749 + var _Sr = $k[--$j]; //#2749 + $k[$j++] = ($f(_Sq + (_Sr * 10))) % 97; //#2749 + }); //#2749 + if ($k[--$j] != 1) { //#2750 $j -= 2; //#2750 - $k[$j++] = 'bwipp.GS1badHour#2750'; //#2750 - $k[$j++] = "Invalid hour of day"; //#2750 + $k[$j++] = 'bwipp.GS1badIBANchecksum#2750'; //#2750 + $k[$j++] = "IBAN checksum incorrect"; //#2750 $k[$j++] = false; //#2750 return true; //#2750 } //#2750 - var _O8 = $geti($k[--$j], 0, 6); //#2751 - $k[$j++] = _O8; //#2751 - $_.lintyymmdd(); //#2751 + var _Su = $geti($k[--$j], 0, 2); //#2751 + $k[$j++] = _Su; //#2751 + $_.lintiso3166alpha2(); //#2751 }; //#2751 - $_.linthhmm = function() { - var _O9 = $k[--$j]; //#2755 - $k[$j++] = _O9; //#2755 - if ($cvi($geti(_O9, 0, 2)) > 23) { //#2755 - $j -= 2; //#2755 - $k[$j++] = 'bwipp.GS1badHour#2755'; //#2755 - $k[$j++] = "Invalid hour of day"; //#2755 + $_.lintzero = function() { + if ($ne($k[--$j], "0")) { //#2755 + $j--; //#2755 + $k[$j++] = 'bwipp.GS1zeroRequired#2755'; //#2755 + $k[$j++] = "Zero is required"; //#2755 $k[$j++] = false; //#2755 return true; //#2755 } //#2755 - if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2756 - $j--; //#2756 - $k[$j++] = 'bwipp.GS1badMinute#2756'; //#2756 - $k[$j++] = "Invalid minute in the hour"; //#2756 - $k[$j++] = false; //#2756 - return true; //#2756 - } //#2756 - }; //#2756 - $_.lintmmoptss = function() { - var _OD = $k[--$j]; //#2760 - var _OE = _OD.length; //#2760 - $k[$j++] = _OD; //#2762 - if ((_OE != 2) && (_OE != 4)) { //#2762 - $j--; //#2761 - $k[$j++] = 'bwipp.GS1badTimeLength#2761'; //#2761 - $k[$j++] = "Invalid length for optional minutes and seconds"; //#2761 - $k[$j++] = false; //#2761 - return true; //#2761 - } //#2761 - var _OF = $k[--$j]; //#2763 - $k[$j++] = _OF; //#2763 - if ($cvi($geti(_OF, 0, 2)) > 59) { //#2763 - $j -= 2; //#2763 - $k[$j++] = 'bwipp.GS1badMinute#2763'; //#2763 - $k[$j++] = "Invalid minute in the hour"; //#2763 - $k[$j++] = false; //#2763 - return true; //#2763 - } //#2763 - var _OH = $k[--$j]; //#2764 - $k[$j++] = _OH; //#2766 - if (_OH.length >= 4) { //#2766 - var _OI = $k[--$j]; //#2765 - $k[$j++] = _OI; //#2765 - if ($cvi($geti(_OI, 2, 2)) > 59) { //#2765 - $j -= 2; //#2765 - $k[$j++] = 'bwipp.GS1badSecond#2765'; //#2765 - $k[$j++] = "Invalid second in the minute"; //#2765 - $k[$j++] = false; //#2765 - return true; //#2765 - } //#2765 + }; //#2755 + $_.lintnonzero = function() { + var _Sw = $k[--$j]; //#2759 + $k[$j++] = false; //#2759 + $forall(_Sw, function() { //#2759 + if ($k[--$j] != 48) { //#2759 + $j--; //#2759 + $k[$j++] = true; //#2759 + } //#2759 + }); //#2759 + if ($nt($k[--$j])) { //#2760 + $j--; //#2760 + $k[$j++] = 'bwipp.GS1zeroNotPermitted#2760'; //#2760 + $k[$j++] = "Zero not permitted"; //#2760 + $k[$j++] = false; //#2760 + return true; //#2760 + } //#2760 + }; //#2760 + $_.lintnozeroprefix = function() { + var _Sz = $k[--$j]; //#2764 + if ((_Sz.length > 1) && ($get(_Sz, 0) == 48)) { //#2766 + $j--; //#2765 + $k[$j++] = 'bwipp.GS1badZeroPrefix#2765'; //#2765 + $k[$j++] = "Zero prefix is not permitted"; //#2765 + $k[$j++] = false; //#2765 + return true; //#2765 } //#2765 - $j--; //#2767 - }; //#2767 - $_.lintyesno = function() { - var _OK = $k[--$j]; //#2771 - if ($ne(_OK, "0") && $ne(_OK, "1")) { //#2773 + }; //#2765 + $_.lintyymmd0 = function() { + var _T1 = $k[--$j]; //#2770 + var _T3 = $cvi($geti(_T1, 2, 2)); //#2770 + $k[$j++] = _T1; //#2770 + if ((_T3 < 1) || (_T3 > 12)) { //#2770 + $j--; //#2770 + $k[$j++] = 'bwipp.GS1badMonth#2770'; //#2770 + $k[$j++] = "Invalid month"; //#2770 + $k[$j++] = false; //#2770 + return true; //#2770 + } //#2770 + var _T4 = $k[--$j]; //#2771 + var _T6 = $cvi($geti(_T4, 0, 2)); //#2771 + var _T7 = _T6 - 21; //#2772 + $k[$j++] = _T4; //#2772 + $k[$j++] = _T6; //#2772 + $k[$j++] = _T7; //#2772 + if (_T7 >= 51) { //#2772 $j--; //#2772 - $k[$j++] = 'bwipp.GS1badBoolean#2772'; //#2772 - $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2772 - $k[$j++] = false; //#2772 - return true; //#2772 + var _T8 = $k[--$j]; //#2772 + $k[$j++] = $f(_T8 + 1900); //#2772 + } else { //#2772 + if ($k[--$j] <= -50) { //#2772 + var _TA = $k[--$j]; //#2772 + $k[$j++] = $f(_TA + 2100); //#2772 + } else { //#2772 + var _TB = $k[--$j]; //#2772 + $k[$j++] = $f(_TB + 2000); //#2772 + } //#2772 } //#2772 - }; //#2772 - $_.lintwinding = function() { - var _OL = $k[--$j]; //#2777 - if ($ne(_OL, "0") && ($ne(_OL, "1") && $ne(_OL, "9"))) { //#2779 - $j--; //#2778 - $k[$j++] = 'bwipp.GS1badWinding#2778'; //#2778 - $k[$j++] = "Invalid winding direction"; //#2778 - $k[$j++] = false; //#2778 - return true; //#2778 - } //#2778 - }; //#2778 - $_.lintpieceoftotal = function() { - var _OM = $k[--$j]; //#2783 - $k[$j++] = _OM; //#2783 - if ((_OM.length % 2) != 0) { //#2783 - $j -= 2; //#2783 - $k[$j++] = 'bwipp.GS1badPieceTotalLength#2783'; //#2783 - $k[$j++] = "Invalid piece/total length"; //#2783 - $k[$j++] = false; //#2783 - return true; //#2783 - } //#2783 - var _ON = $k[--$j]; //#2784 - var _OP = $cvi($geti(_ON, 0, ~~(_ON.length / 2))); //#2785 - $k[$j++] = _ON; //#2785 - $k[$j++] = _OP; //#2785 - if (_OP == 0) { //#2785 - $j -= 3; //#2785 - $k[$j++] = 'bwipp.GS1badPieceNumber#2785'; //#2785 - $k[$j++] = "Invalid piece number"; //#2785 - $k[$j++] = false; //#2785 - return true; //#2785 - } //#2785 - var _OQ = $k[--$j]; //#2786 - var _OR = $k[--$j]; //#2786 - var _OS = ~~(_OR.length / 2); //#2786 - var _OU = $cvi($geti(_OR, _OS, _OS)); //#2787 - $k[$j++] = _OQ; //#2787 - $k[$j++] = _OU; //#2787 - if (_OU == 0) { //#2787 - $j -= 3; //#2787 - $k[$j++] = 'bwipp.GS1badPieceTotal#2787'; //#2787 - $k[$j++] = "Invalid total number"; //#2787 + var _TC = $k[--$j]; //#2773 + $k[$j++] = ((_TC % 400) == 0) || (((_TC % 4) == 0) && ((_TC % 100) != 0)); //#2774 + $k[$j++] = Infinity; //#2774 + var _TD = $k[--$j]; //#2774 + var _TF = $k[--$j] ? 29 : 28; //#2774 + $k[$j++] = _TD; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = _TF; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + var _TG = $a(); //#2774 + var _TH = $k[--$j]; //#2775 + if ($get(_TG, $cvi($geti(_TH, 2, 2)) - 1) < $cvi($geti(_TH, 4, 2))) { //#2776 + $j--; //#2776 + $k[$j++] = 'bwipp.GS1badDay#2776'; //#2776 + $k[$j++] = "Invalid day of month"; //#2776 + $k[$j++] = false; //#2776 + return true; //#2776 + } //#2776 + }; //#2776 + $_.lintyymmdd = function() { + var _TL = $k[--$j]; //#2780 + $k[$j++] = _TL; //#2780 + if (_TL.length != 6) { //#2780 + $j--; //#2780 + $k[$j++] = 'bwipp.GS1badDateLength#2780'; //#2780 + $k[$j++] = "Invalid length for date"; //#2780 + $k[$j++] = false; //#2780 + return true; //#2780 + } //#2780 + var _TM = $k[--$j]; //#2781 + $k[$j++] = _TM; //#2781 + if ($cvi($geti(_TM, 4, 2)) < 1) { //#2781 + $j--; //#2781 + $k[$j++] = 'bwipp.GS1badDay#2781'; //#2781 + $k[$j++] = "Invalid day of month"; //#2781 + $k[$j++] = false; //#2781 + return true; //#2781 + } //#2781 + $_.lintyymmd0(); //#2782 + }; //#2782 + $_.lintyymmddhh = function() { + var _TO = $k[--$j]; //#2786 + $k[$j++] = _TO; //#2786 + if (_TO.length != 8) { //#2786 + $j--; //#2786 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2786'; //#2786 + $k[$j++] = "Invalid length for date with hour"; //#2786 + $k[$j++] = false; //#2786 + return true; //#2786 + } //#2786 + var _TP = $k[--$j]; //#2787 + $k[$j++] = _TP; //#2787 + if ($cvi($geti(_TP, 6, 2)) > 23) { //#2787 + $j -= 2; //#2787 + $k[$j++] = 'bwipp.GS1badHour#2787'; //#2787 + $k[$j++] = "Invalid hour of day"; //#2787 $k[$j++] = false; //#2787 return true; //#2787 } //#2787 - var _OV = $k[--$j]; //#2788 - if ($gt($k[--$j], _OV)) { //#2788 - $j--; //#2788 - $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2788'; //#2788 - $k[$j++] = "Piece number exceeds total"; //#2788 - $k[$j++] = false; //#2788 - return true; //#2788 - } //#2788 + var _TS = $geti($k[--$j], 0, 6); //#2788 + $k[$j++] = _TS; //#2788 + $_.lintyymmdd(); //#2788 }; //#2788 - $_.lintpcenc = function() { - for (;;) { //#2802 - $search($k[--$j], "%"); //#2793 - if ($nt($k[--$j])) { //#2793 - $j--; //#2793 - break; //#2793 - } //#2793 - $j -= 2; //#2794 - var _OZ = $k[--$j]; //#2794 - $k[$j++] = _OZ; //#2794 - if (_OZ.length < 2) { //#2794 - $j -= 2; //#2794 - $k[$j++] = 'bwipp.GS1badPercentEscape#2794'; //#2794 - $k[$j++] = "Invalid % escape"; //#2794 - $k[$j++] = false; //#2794 - break; //#2794 - } //#2794 - var _Oa = $k[--$j]; //#2795 - var _Ob = $geti(_Oa, 0, 2); //#2795 - $k[$j++] = _Oa; //#2800 - $k[$j++] = true; //#2800 - for (var _Oc = 0, _Od = _Ob.length; _Oc < _Od; _Oc++) { //#2800 - var _Of = $s(1); //#2796 - $put(_Of, 0, $get(_Ob, _Oc)); //#2796 - $search("0123456789ABCDEFabcdef", _Of); //#2798 - if ($nt($k[--$j])) { //#2798 - $j -= 2; //#2798 - $k[$j++] = false; //#2798 - break; //#2798 - } //#2798 - $j -= 3; //#2799 - } //#2799 - if ($nt($k[--$j])) { //#2801 - $j -= 2; //#2801 - $k[$j++] = 'bwipp.GS1badPercentChars#2801'; //#2801 - $k[$j++] = "Invalid characters for percent encoding"; //#2801 - $k[$j++] = false; //#2801 - break; //#2801 - } //#2801 - } //#2801 - }; //#2801 - $_.lintcouponcode = function() { - var _Oi = $k[--$j]; //#2806 - $k[$j++] = _Oi; //#2808 - $k[$j++] = true; //#2808 - $forall(_Oi, function() { //#2808 - var _Oj = $k[--$j]; //#2807 - if ((_Oj < 48) || (_Oj > 57)) { //#2807 - $j--; //#2807 - $k[$j++] = false; //#2807 - return true; //#2807 - } //#2807 - }); //#2807 - if ($nt($k[--$j])) { //#2809 - $j -= 2; //#2809 - $k[$j++] = 'bwipp.GS1couponNotNumeric#2809'; //#2809 - $k[$j++] = "Coupon not numeric"; //#2809 + $_.linthhmm = function() { + var _TT = $k[--$j]; //#2792 + $k[$j++] = _TT; //#2792 + if ($cvi($geti(_TT, 0, 2)) > 23) { //#2792 + $j -= 2; //#2792 + $k[$j++] = 'bwipp.GS1badHour#2792'; //#2792 + $k[$j++] = "Invalid hour of day"; //#2792 + $k[$j++] = false; //#2792 + return true; //#2792 + } //#2792 + if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2793 + $j--; //#2793 + $k[$j++] = 'bwipp.GS1badMinute#2793'; //#2793 + $k[$j++] = "Invalid minute in the hour"; //#2793 + $k[$j++] = false; //#2793 + return true; //#2793 + } //#2793 + }; //#2793 + $_.lintmmoptss = function() { + var _TX = $k[--$j]; //#2797 + var _TY = _TX.length; //#2797 + $k[$j++] = _TX; //#2799 + if ((_TY != 2) && (_TY != 4)) { //#2799 + $j--; //#2798 + $k[$j++] = 'bwipp.GS1badTimeLength#2798'; //#2798 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#2798 + $k[$j++] = false; //#2798 + return true; //#2798 + } //#2798 + var _TZ = $k[--$j]; //#2800 + $k[$j++] = _TZ; //#2800 + if ($cvi($geti(_TZ, 0, 2)) > 59) { //#2800 + $j -= 2; //#2800 + $k[$j++] = 'bwipp.GS1badMinute#2800'; //#2800 + $k[$j++] = "Invalid minute in the hour"; //#2800 + $k[$j++] = false; //#2800 + return true; //#2800 + } //#2800 + var _Tb = $k[--$j]; //#2801 + $k[$j++] = _Tb; //#2803 + if (_Tb.length >= 4) { //#2803 + var _Tc = $k[--$j]; //#2802 + $k[$j++] = _Tc; //#2802 + if ($cvi($geti(_Tc, 2, 2)) > 59) { //#2802 + $j -= 2; //#2802 + $k[$j++] = 'bwipp.GS1badSecond#2802'; //#2802 + $k[$j++] = "Invalid second in the minute"; //#2802 + $k[$j++] = false; //#2802 + return true; //#2802 + } //#2802 + } //#2802 + $j--; //#2804 + }; //#2804 + $_.lintyesno = function() { + var _Te = $k[--$j]; //#2808 + if ($ne(_Te, "0") && $ne(_Te, "1")) { //#2810 + $j--; //#2809 + $k[$j++] = 'bwipp.GS1badBoolean#2809'; //#2809 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2809 $k[$j++] = false; //#2809 return true; //#2809 } //#2809 - var _Ol = $k[--$j]; //#2812 - $k[$j++] = _Ol; //#2814 - if (_Ol.length < 1) { //#2814 - $j -= 2; //#2813 - $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2813'; //#2813 - $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2813 - $k[$j++] = false; //#2813 - return true; //#2813 - } //#2813 - var _Om = $k[--$j]; //#2815 - var _Oo = $cvi($geti(_Om, 0, 1)); //#2815 - $k[$j++] = _Om; //#2817 - $k[$j++] = _Oo; //#2817 - if (_Oo > 6) { //#2817 - $j -= 2; //#2816 - $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2816'; //#2816 - $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2816 - $k[$j++] = false; //#2816 - return true; //#2816 - } //#2816 - var _Op = $k[--$j]; //#2818 - var _Oq = $k[--$j]; //#2819 - $k[$j++] = _Oq; //#2821 - $k[$j++] = $f($f(_Op + 6) + 1); //#2821 - if (($f($f(_Op + 6) + 1)) > _Oq.length) { //#2821 - $j -= 3; //#2820 - $k[$j++] = 'bwipp.GS1couponTooShortGCP#2820'; //#2820 - $k[$j++] = "Coupon too short: GCP truncated"; //#2820 + }; //#2809 + $_.lintwinding = function() { + var _Tf = $k[--$j]; //#2814 + if ($ne(_Tf, "0") && ($ne(_Tf, "1") && $ne(_Tf, "9"))) { //#2816 + $j--; //#2815 + $k[$j++] = 'bwipp.GS1badWinding#2815'; //#2815 + $k[$j++] = "Invalid winding direction"; //#2815 + $k[$j++] = false; //#2815 + return true; //#2815 + } //#2815 + }; //#2815 + $_.lintpieceoftotal = function() { + var _Tg = $k[--$j]; //#2820 + $k[$j++] = _Tg; //#2820 + if ((_Tg.length % 2) != 0) { //#2820 + $j -= 2; //#2820 + $k[$j++] = 'bwipp.GS1badPieceTotalLength#2820'; //#2820 + $k[$j++] = "Invalid piece/total length"; //#2820 $k[$j++] = false; //#2820 return true; //#2820 } //#2820 - var _Or = $k[--$j]; //#2822 - var _Os = $k[--$j]; //#2822 - var _Ot = $geti(_Os, _Or, $f(_Os.length - _Or)); //#2822 - $k[$j++] = _Ot; //#2827 - if (_Ot.length < 6) { //#2827 - $j -= 2; //#2826 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2826'; //#2826 - $k[$j++] = "Coupon too short: Offer Code truncated"; //#2826 - $k[$j++] = false; //#2826 - return true; //#2826 - } //#2826 - var _Ou = $k[--$j]; //#2828 - var _Ov = $geti(_Ou, 6, _Ou.length - 6); //#2828 - $k[$j++] = _Ov; //#2833 - if (_Ov.length < 1) { //#2833 - $j -= 2; //#2832 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2832'; //#2832 - $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2832 - $k[$j++] = false; //#2832 - return true; //#2832 - } //#2832 - var _Ow = $k[--$j]; //#2834 - var _Oy = $cvi($geti(_Ow, 0, 1)); //#2834 - $k[$j++] = _Ow; //#2836 - $k[$j++] = _Oy; //#2836 - if ((_Oy < 1) || (_Oy > 5)) { //#2836 - $j -= 2; //#2835 - $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2835'; //#2835 - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2835 - $k[$j++] = false; //#2835 - return true; //#2835 - } //#2835 - var _Oz = $k[--$j]; //#2837 - var _P0 = $k[--$j]; //#2838 - $k[$j++] = _P0; //#2840 - $k[$j++] = $f(_Oz + 1); //#2840 - if ($f(_Oz + 1) > _P0.length) { //#2840 - $j -= 3; //#2839 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2839'; //#2839 - $k[$j++] = "Coupon too short: Save Value truncated"; //#2839 - $k[$j++] = false; //#2839 - return true; //#2839 - } //#2839 - var _P1 = $k[--$j]; //#2841 - var _P2 = $k[--$j]; //#2841 - var _P3 = $geti(_P2, _P1, $f(_P2.length - _P1)); //#2841 - $k[$j++] = _P3; //#2846 - if (_P3.length < 1) { //#2846 - $j -= 2; //#2845 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2845'; //#2845 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2845 - $k[$j++] = false; //#2845 - return true; //#2845 - } //#2845 - var _P4 = $k[--$j]; //#2847 - var _P6 = $cvi($geti(_P4, 0, 1)); //#2847 - $k[$j++] = _P4; //#2849 - $k[$j++] = _P6; //#2849 - if ((_P6 < 1) || (_P6 > 5)) { //#2849 - $j -= 2; //#2848 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2848'; //#2848 - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2848 - $k[$j++] = false; //#2848 - return true; //#2848 - } //#2848 - var _P7 = $k[--$j]; //#2850 - var _P8 = $k[--$j]; //#2851 - $k[$j++] = _P8; //#2853 - $k[$j++] = $f(_P7 + 1); //#2853 - if ($f(_P7 + 1) > _P8.length) { //#2853 - $j -= 3; //#2852 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2852'; //#2852 - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2852 - $k[$j++] = false; //#2852 - return true; //#2852 - } //#2852 - var _P9 = $k[--$j]; //#2854 - var _PA = $k[--$j]; //#2854 - var _PB = $geti(_PA, _P9, $f(_PA.length - _P9)); //#2854 - $k[$j++] = _PB; //#2859 - if (_PB.length < 1) { //#2859 - $j -= 2; //#2858 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2858'; //#2858 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2858 - $k[$j++] = false; //#2858 - return true; //#2858 - } //#2858 - var _PC = $k[--$j]; //#2860 - var _PE = $cvi($geti(_PC, 0, 1)); //#2860 - $k[$j++] = _PC; //#2862 - if ((_PE > 4) && (_PE != 9)) { //#2862 - $j -= 2; //#2861 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2861'; //#2861 - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2861 - $k[$j++] = false; //#2861 - return true; //#2861 - } //#2861 - var _PF = $k[--$j]; //#2863 - var _PG = $geti(_PF, 1, _PF.length - 1); //#2863 - $k[$j++] = _PG; //#2868 - if (_PG.length < 3) { //#2868 - $j -= 2; //#2867 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2867'; //#2867 - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2867 - $k[$j++] = false; //#2867 - return true; //#2867 - } //#2867 - var _PH = $k[--$j]; //#2869 - var _PI = $geti(_PH, 3, _PH.length - 3); //#2869 - $k[$j++] = _PI; //#2925 - if (_PI.length >= 1) { //#2925 - var _PJ = $k[--$j]; //#2872 - $k[$j++] = _PJ; //#2925 - if ($cvi($geti(_PJ, 0, 1)) == 1) { //#2925 - var _PL = $k[--$j]; //#2873 - var _PM = $geti(_PL, 1, _PL.length - 1); //#2873 - $k[$j++] = _PM; //#2878 - if (_PM.length < 1) { //#2878 - $j -= 2; //#2877 - $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2877'; //#2877 - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2877 - $k[$j++] = false; //#2877 - return true; //#2877 - } //#2877 - var _PN = $k[--$j]; //#2879 - $k[$j++] = _PN; //#2881 - if ($cvi($geti(_PN, 0, 1)) > 3) { //#2881 - $j -= 2; //#2880 - $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2880'; //#2880 - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2880 - $k[$j++] = false; //#2880 - return true; //#2880 - } //#2880 - var _PP = $k[--$j]; //#2882 - var _PQ = $geti(_PP, 1, _PP.length - 1); //#2882 - $k[$j++] = _PQ; //#2887 - if (_PQ.length < 1) { //#2887 - $j -= 2; //#2886 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2886'; //#2886 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2886 - $k[$j++] = false; //#2886 - return true; //#2886 - } //#2886 - var _PR = $k[--$j]; //#2888 - var _PT = $cvi($geti(_PR, 0, 1)); //#2888 - $k[$j++] = _PR; //#2890 - $k[$j++] = _PT; //#2890 - if ((_PT < 1) || (_PT > 5)) { //#2890 - $j -= 2; //#2889 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2889'; //#2889 - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2889 - $k[$j++] = false; //#2889 - return true; //#2889 - } //#2889 - var _PU = $k[--$j]; //#2891 - var _PV = $k[--$j]; //#2892 - $k[$j++] = _PV; //#2894 - $k[$j++] = $f(_PU + 1); //#2894 - if ($f(_PU + 1) > _PV.length) { //#2894 - $j -= 3; //#2893 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2893'; //#2893 - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2893 - $k[$j++] = false; //#2893 - return true; //#2893 - } //#2893 - var _PW = $k[--$j]; //#2895 - var _PX = $k[--$j]; //#2895 - var _PY = $geti(_PX, _PW, $f(_PX.length - _PW)); //#2895 - $k[$j++] = _PY; //#2900 - if (_PY.length < 1) { //#2900 - $j -= 2; //#2899 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2899'; //#2899 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2899 - $k[$j++] = false; //#2899 - return true; //#2899 - } //#2899 - var _PZ = $k[--$j]; //#2901 - var _Pb = $cvi($geti(_PZ, 0, 1)); //#2901 - $k[$j++] = _PZ; //#2903 - if ((_Pb > 4) && (_Pb != 9)) { //#2903 - $j -= 2; //#2902 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2902'; //#2902 - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2902 - $k[$j++] = false; //#2902 - return true; //#2902 - } //#2902 - var _Pc = $k[--$j]; //#2904 - var _Pd = $geti(_Pc, 1, _Pc.length - 1); //#2904 - $k[$j++] = _Pd; //#2909 - if (_Pd.length < 3) { //#2909 - $j -= 2; //#2908 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2908'; //#2908 - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2908 - $k[$j++] = false; //#2908 - return true; //#2908 - } //#2908 - var _Pe = $k[--$j]; //#2910 - var _Pf = $geti(_Pe, 3, _Pe.length - 3); //#2910 - $k[$j++] = _Pf; //#2915 - if (_Pf.length < 1) { //#2915 + var _Th = $k[--$j]; //#2821 + var _Tj = $cvi($geti(_Th, 0, ~~(_Th.length / 2))); //#2822 + $k[$j++] = _Th; //#2822 + $k[$j++] = _Tj; //#2822 + if (_Tj == 0) { //#2822 + $j -= 3; //#2822 + $k[$j++] = 'bwipp.GS1badPieceNumber#2822'; //#2822 + $k[$j++] = "Invalid piece number"; //#2822 + $k[$j++] = false; //#2822 + return true; //#2822 + } //#2822 + var _Tk = $k[--$j]; //#2823 + var _Tl = $k[--$j]; //#2823 + var _Tm = ~~(_Tl.length / 2); //#2823 + var _To = $cvi($geti(_Tl, _Tm, _Tm)); //#2824 + $k[$j++] = _Tk; //#2824 + $k[$j++] = _To; //#2824 + if (_To == 0) { //#2824 + $j -= 3; //#2824 + $k[$j++] = 'bwipp.GS1badPieceTotal#2824'; //#2824 + $k[$j++] = "Invalid total number"; //#2824 + $k[$j++] = false; //#2824 + return true; //#2824 + } //#2824 + var _Tp = $k[--$j]; //#2825 + if ($gt($k[--$j], _Tp)) { //#2825 + $j--; //#2825 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2825'; //#2825 + $k[$j++] = "Piece number exceeds total"; //#2825 + $k[$j++] = false; //#2825 + return true; //#2825 + } //#2825 + }; //#2825 + $_.lintpcenc = function() { + for (;;) { //#2839 + $search($k[--$j], "%"); //#2830 + if ($nt($k[--$j])) { //#2830 + $j--; //#2830 + break; //#2830 + } //#2830 + $j -= 2; //#2831 + var _Tt = $k[--$j]; //#2831 + $k[$j++] = _Tt; //#2831 + if (_Tt.length < 2) { //#2831 + $j -= 2; //#2831 + $k[$j++] = 'bwipp.GS1badPercentEscape#2831'; //#2831 + $k[$j++] = "Invalid % escape"; //#2831 + $k[$j++] = false; //#2831 + break; //#2831 + } //#2831 + var _Tu = $k[--$j]; //#2832 + var _Tv = $geti(_Tu, 0, 2); //#2832 + $k[$j++] = _Tu; //#2837 + $k[$j++] = true; //#2837 + for (var _Tw = 0, _Tx = _Tv.length; _Tw < _Tx; _Tw++) { //#2837 + var _Tz = $s(1); //#2833 + $put(_Tz, 0, $get(_Tv, _Tw)); //#2833 + $search("0123456789ABCDEFabcdef", _Tz); //#2835 + if ($nt($k[--$j])) { //#2835 + $j -= 2; //#2835 + $k[$j++] = false; //#2835 + break; //#2835 + } //#2835 + $j -= 3; //#2836 + } //#2836 + if ($nt($k[--$j])) { //#2838 + $j -= 2; //#2838 + $k[$j++] = 'bwipp.GS1badPercentChars#2838'; //#2838 + $k[$j++] = "Invalid characters for percent encoding"; //#2838 + $k[$j++] = false; //#2838 + break; //#2838 + } //#2838 + } //#2838 + }; //#2838 + $_.lintcouponcode = function() { + var _U2 = $k[--$j]; //#2843 + $k[$j++] = _U2; //#2845 + $k[$j++] = true; //#2845 + $forall(_U2, function() { //#2845 + var _U3 = $k[--$j]; //#2844 + if ((_U3 < 48) || (_U3 > 57)) { //#2844 + $j--; //#2844 + $k[$j++] = false; //#2844 + return true; //#2844 + } //#2844 + }); //#2844 + if ($nt($k[--$j])) { //#2846 + $j -= 2; //#2846 + $k[$j++] = 'bwipp.GS1couponNotNumeric#2846'; //#2846 + $k[$j++] = "Coupon not numeric"; //#2846 + $k[$j++] = false; //#2846 + return true; //#2846 + } //#2846 + var _U5 = $k[--$j]; //#2849 + $k[$j++] = _U5; //#2851 + if (_U5.length < 1) { //#2851 + $j -= 2; //#2850 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2850'; //#2850 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2850 + $k[$j++] = false; //#2850 + return true; //#2850 + } //#2850 + var _U6 = $k[--$j]; //#2852 + var _U8 = $cvi($geti(_U6, 0, 1)); //#2852 + $k[$j++] = _U6; //#2854 + $k[$j++] = _U8; //#2854 + if (_U8 > 6) { //#2854 + $j -= 2; //#2853 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2853'; //#2853 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2853 + $k[$j++] = false; //#2853 + return true; //#2853 + } //#2853 + var _U9 = $k[--$j]; //#2855 + var _UA = $k[--$j]; //#2856 + $k[$j++] = _UA; //#2858 + $k[$j++] = $f($f(_U9 + 6) + 1); //#2858 + if (($f($f(_U9 + 6) + 1)) > _UA.length) { //#2858 + $j -= 3; //#2857 + $k[$j++] = 'bwipp.GS1couponTooShortGCP#2857'; //#2857 + $k[$j++] = "Coupon too short: GCP truncated"; //#2857 + $k[$j++] = false; //#2857 + return true; //#2857 + } //#2857 + var _UB = $k[--$j]; //#2859 + var _UC = $k[--$j]; //#2859 + var _UD = $geti(_UC, _UB, $f(_UC.length - _UB)); //#2859 + $k[$j++] = _UD; //#2864 + if (_UD.length < 6) { //#2864 + $j -= 2; //#2863 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2863'; //#2863 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#2863 + $k[$j++] = false; //#2863 + return true; //#2863 + } //#2863 + var _UE = $k[--$j]; //#2865 + var _UF = $geti(_UE, 6, _UE.length - 6); //#2865 + $k[$j++] = _UF; //#2870 + if (_UF.length < 1) { //#2870 + $j -= 2; //#2869 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2869'; //#2869 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2869 + $k[$j++] = false; //#2869 + return true; //#2869 + } //#2869 + var _UG = $k[--$j]; //#2871 + var _UI = $cvi($geti(_UG, 0, 1)); //#2871 + $k[$j++] = _UG; //#2873 + $k[$j++] = _UI; //#2873 + if ((_UI < 1) || (_UI > 5)) { //#2873 + $j -= 2; //#2872 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2872'; //#2872 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2872 + $k[$j++] = false; //#2872 + return true; //#2872 + } //#2872 + var _UJ = $k[--$j]; //#2874 + var _UK = $k[--$j]; //#2875 + $k[$j++] = _UK; //#2877 + $k[$j++] = $f(_UJ + 1); //#2877 + if ($f(_UJ + 1) > _UK.length) { //#2877 + $j -= 3; //#2876 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2876'; //#2876 + $k[$j++] = "Coupon too short: Save Value truncated"; //#2876 + $k[$j++] = false; //#2876 + return true; //#2876 + } //#2876 + var _UL = $k[--$j]; //#2878 + var _UM = $k[--$j]; //#2878 + var _UN = $geti(_UM, _UL, $f(_UM.length - _UL)); //#2878 + $k[$j++] = _UN; //#2883 + if (_UN.length < 1) { //#2883 + $j -= 2; //#2882 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2882'; //#2882 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2882 + $k[$j++] = false; //#2882 + return true; //#2882 + } //#2882 + var _UO = $k[--$j]; //#2884 + var _UQ = $cvi($geti(_UO, 0, 1)); //#2884 + $k[$j++] = _UO; //#2886 + $k[$j++] = _UQ; //#2886 + if ((_UQ < 1) || (_UQ > 5)) { //#2886 + $j -= 2; //#2885 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2885'; //#2885 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2885 + $k[$j++] = false; //#2885 + return true; //#2885 + } //#2885 + var _UR = $k[--$j]; //#2887 + var _US = $k[--$j]; //#2888 + $k[$j++] = _US; //#2890 + $k[$j++] = $f(_UR + 1); //#2890 + if ($f(_UR + 1) > _US.length) { //#2890 + $j -= 3; //#2889 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2889'; //#2889 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2889 + $k[$j++] = false; //#2889 + return true; //#2889 + } //#2889 + var _UT = $k[--$j]; //#2891 + var _UU = $k[--$j]; //#2891 + var _UV = $geti(_UU, _UT, $f(_UU.length - _UT)); //#2891 + $k[$j++] = _UV; //#2896 + if (_UV.length < 1) { //#2896 + $j -= 2; //#2895 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2895'; //#2895 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2895 + $k[$j++] = false; //#2895 + return true; //#2895 + } //#2895 + var _UW = $k[--$j]; //#2897 + var _UY = $cvi($geti(_UW, 0, 1)); //#2897 + $k[$j++] = _UW; //#2899 + if ((_UY > 4) && (_UY != 9)) { //#2899 + $j -= 2; //#2898 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2898'; //#2898 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2898 + $k[$j++] = false; //#2898 + return true; //#2898 + } //#2898 + var _UZ = $k[--$j]; //#2900 + var _Ua = $geti(_UZ, 1, _UZ.length - 1); //#2900 + $k[$j++] = _Ua; //#2905 + if (_Ua.length < 3) { //#2905 + $j -= 2; //#2904 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2904'; //#2904 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2904 + $k[$j++] = false; //#2904 + return true; //#2904 + } //#2904 + var _Ub = $k[--$j]; //#2906 + var _Uc = $geti(_Ub, 3, _Ub.length - 3); //#2906 + $k[$j++] = _Uc; //#2962 + if (_Uc.length >= 1) { //#2962 + var _Ud = $k[--$j]; //#2909 + $k[$j++] = _Ud; //#2962 + if ($cvi($geti(_Ud, 0, 1)) == 1) { //#2962 + var _Uf = $k[--$j]; //#2910 + var _Ug = $geti(_Uf, 1, _Uf.length - 1); //#2910 + $k[$j++] = _Ug; //#2915 + if (_Ug.length < 1) { //#2915 $j -= 2; //#2914 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2914'; //#2914 - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2914 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2914'; //#2914 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2914 $k[$j++] = false; //#2914 return true; //#2914 } //#2914 - var _Pg = $k[--$j]; //#2916 - var _Pi = $cvi($geti(_Pg, 0, 1)); //#2916 - $k[$j++] = _Pg; //#2918 - $k[$j++] = _Pi; //#2918 - if ((_Pi > 6) && (_Pi != 9)) { //#2918 + var _Uh = $k[--$j]; //#2916 + $k[$j++] = _Uh; //#2918 + if ($cvi($geti(_Uh, 0, 1)) > 3) { //#2918 $j -= 2; //#2917 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2917'; //#2917 - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2917 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2917'; //#2917 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2917 $k[$j++] = false; //#2917 return true; //#2917 } //#2917 - var _Pj = $k[--$j]; //#2919 - $k[$j++] = _Pj; //#2919 - if (_Pj != 9) { //#2919 - var _Pk = $k[--$j]; //#2919 - $k[$j++] = $f(_Pk + 6); //#2919 - } else { //#2919 - $j--; //#2919 - $k[$j++] = 0; //#2919 - } //#2919 - var _Pl = $k[--$j]; //#2919 - var _Pm = $k[--$j]; //#2920 - $k[$j++] = _Pm; //#2922 - $k[$j++] = $f(_Pl + 1); //#2922 - if ($f(_Pl + 1) > _Pm.length) { //#2922 - $j -= 3; //#2921 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2921'; //#2921 - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2921 - $k[$j++] = false; //#2921 - return true; //#2921 - } //#2921 - var _Pn = $k[--$j]; //#2923 - var _Po = $k[--$j]; //#2923 - $k[$j++] = $geti(_Po, _Pn, $f(_Po.length - _Pn)); //#2923 - } //#2923 - } //#2923 - var _Pq = $k[--$j]; //#2928 - $k[$j++] = _Pq; //#2972 - if (_Pq.length >= 1) { //#2972 - var _Pr = $k[--$j]; //#2928 - $k[$j++] = _Pr; //#2972 - if ($cvi($geti(_Pr, 0, 1)) == 2) { //#2972 - var _Pt = $k[--$j]; //#2929 - var _Pu = $geti(_Pt, 1, _Pt.length - 1); //#2929 - $k[$j++] = _Pu; //#2934 - if (_Pu.length < 1) { //#2934 - $j -= 2; //#2933 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2933'; //#2933 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2933 - $k[$j++] = false; //#2933 - return true; //#2933 - } //#2933 - var _Pv = $k[--$j]; //#2935 - var _Px = $cvi($geti(_Pv, 0, 1)); //#2935 - $k[$j++] = _Pv; //#2937 - $k[$j++] = _Px; //#2937 - if ((_Px < 1) || (_Px > 5)) { //#2937 + var _Uj = $k[--$j]; //#2919 + var _Uk = $geti(_Uj, 1, _Uj.length - 1); //#2919 + $k[$j++] = _Uk; //#2924 + if (_Uk.length < 1) { //#2924 + $j -= 2; //#2923 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2923'; //#2923 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2923 + $k[$j++] = false; //#2923 + return true; //#2923 + } //#2923 + var _Ul = $k[--$j]; //#2925 + var _Un = $cvi($geti(_Ul, 0, 1)); //#2925 + $k[$j++] = _Ul; //#2927 + $k[$j++] = _Un; //#2927 + if ((_Un < 1) || (_Un > 5)) { //#2927 + $j -= 2; //#2926 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2926'; //#2926 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2926 + $k[$j++] = false; //#2926 + return true; //#2926 + } //#2926 + var _Uo = $k[--$j]; //#2928 + var _Up = $k[--$j]; //#2929 + $k[$j++] = _Up; //#2931 + $k[$j++] = $f(_Uo + 1); //#2931 + if ($f(_Uo + 1) > _Up.length) { //#2931 + $j -= 3; //#2930 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2930'; //#2930 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2930 + $k[$j++] = false; //#2930 + return true; //#2930 + } //#2930 + var _Uq = $k[--$j]; //#2932 + var _Ur = $k[--$j]; //#2932 + var _Us = $geti(_Ur, _Uq, $f(_Ur.length - _Uq)); //#2932 + $k[$j++] = _Us; //#2937 + if (_Us.length < 1) { //#2937 $j -= 2; //#2936 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2936'; //#2936 - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2936 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2936'; //#2936 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2936 $k[$j++] = false; //#2936 return true; //#2936 } //#2936 - var _Py = $k[--$j]; //#2938 - var _Pz = $k[--$j]; //#2939 - $k[$j++] = _Pz; //#2941 - $k[$j++] = $f(_Py + 1); //#2941 - if ($f(_Py + 1) > _Pz.length) { //#2941 - $j -= 3; //#2940 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2940'; //#2940 - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2940 - $k[$j++] = false; //#2940 - return true; //#2940 - } //#2940 - var _Q0 = $k[--$j]; //#2942 - var _Q1 = $k[--$j]; //#2942 - var _Q2 = $geti(_Q1, _Q0, $f(_Q1.length - _Q0)); //#2942 - $k[$j++] = _Q2; //#2947 - if (_Q2.length < 1) { //#2947 - $j -= 2; //#2946 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2946'; //#2946 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2946 - $k[$j++] = false; //#2946 - return true; //#2946 - } //#2946 - var _Q3 = $k[--$j]; //#2948 - var _Q5 = $cvi($geti(_Q3, 0, 1)); //#2948 - $k[$j++] = _Q3; //#2950 - if ((_Q5 > 4) && (_Q5 != 9)) { //#2950 - $j -= 2; //#2949 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2949'; //#2949 - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2949 - $k[$j++] = false; //#2949 - return true; //#2949 - } //#2949 - var _Q6 = $k[--$j]; //#2951 - var _Q7 = $geti(_Q6, 1, _Q6.length - 1); //#2951 - $k[$j++] = _Q7; //#2956 - if (_Q7.length < 3) { //#2956 - $j -= 2; //#2955 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2955'; //#2955 - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2955 - $k[$j++] = false; //#2955 - return true; //#2955 - } //#2955 - var _Q8 = $k[--$j]; //#2957 - var _Q9 = $geti(_Q8, 3, _Q8.length - 3); //#2957 - $k[$j++] = _Q9; //#2962 - if (_Q9.length < 1) { //#2962 - $j -= 2; //#2961 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2961'; //#2961 - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2961 - $k[$j++] = false; //#2961 - return true; //#2961 - } //#2961 - var _QA = $k[--$j]; //#2963 - var _QC = $cvi($geti(_QA, 0, 1)); //#2963 - $k[$j++] = _QA; //#2965 - $k[$j++] = _QC; //#2965 - if ((_QC > 6) && (_QC != 9)) { //#2965 - $j -= 2; //#2964 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#2964'; //#2964 - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#2964 - $k[$j++] = false; //#2964 - return true; //#2964 - } //#2964 - var _QD = $k[--$j]; //#2966 - $k[$j++] = _QD; //#2966 - if (_QD != 9) { //#2966 - var _QE = $k[--$j]; //#2966 - $k[$j++] = $f(_QE + 6); //#2966 - } else { //#2966 - $j--; //#2966 - $k[$j++] = 0; //#2966 - } //#2966 - var _QF = $k[--$j]; //#2966 - var _QG = $k[--$j]; //#2967 - $k[$j++] = _QG; //#2969 - $k[$j++] = $f(_QF + 1); //#2969 - if ($f(_QF + 1) > _QG.length) { //#2969 - $j -= 3; //#2968 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#2968'; //#2968 - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#2968 - $k[$j++] = false; //#2968 - return true; //#2968 - } //#2968 - var _QH = $k[--$j]; //#2970 - var _QI = $k[--$j]; //#2970 - $k[$j++] = $geti(_QI, _QH, $f(_QI.length - _QH)); //#2970 - } //#2970 - } //#2970 - $_.couponexpire = -1; //#2975 - var _QK = $k[--$j]; //#2976 - $k[$j++] = _QK; //#2994 - if (_QK.length >= 1) { //#2994 - var _QL = $k[--$j]; //#2976 - $k[$j++] = _QL; //#2994 - if ($cvi($geti(_QL, 0, 1)) == 3) { //#2994 - var _QN = $k[--$j]; //#2977 - var _QO = $geti(_QN, 1, _QN.length - 1); //#2977 - $k[$j++] = _QO; //#2982 - if (_QO.length < 6) { //#2982 - $j -= 2; //#2981 - $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#2981'; //#2981 - $k[$j++] = "Coupon too short: Expiration date"; //#2981 - $k[$j++] = false; //#2981 - return true; //#2981 - } //#2981 - var _QP = $k[--$j]; //#2983 - var _QR = $cvi($geti(_QP, 2, 2)); //#2983 - $k[$j++] = _QP; //#2983 - if ((_QR < 1) || (_QR > 12)) { //#2983 + var _Ut = $k[--$j]; //#2938 + var _Uv = $cvi($geti(_Ut, 0, 1)); //#2938 + $k[$j++] = _Ut; //#2940 + if ((_Uv > 4) && (_Uv != 9)) { //#2940 + $j -= 2; //#2939 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2939'; //#2939 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2939 + $k[$j++] = false; //#2939 + return true; //#2939 + } //#2939 + var _Uw = $k[--$j]; //#2941 + var _Ux = $geti(_Uw, 1, _Uw.length - 1); //#2941 + $k[$j++] = _Ux; //#2946 + if (_Ux.length < 3) { //#2946 + $j -= 2; //#2945 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2945'; //#2945 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2945 + $k[$j++] = false; //#2945 + return true; //#2945 + } //#2945 + var _Uy = $k[--$j]; //#2947 + var _Uz = $geti(_Uy, 3, _Uy.length - 3); //#2947 + $k[$j++] = _Uz; //#2952 + if (_Uz.length < 1) { //#2952 + $j -= 2; //#2951 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2951'; //#2951 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2951 + $k[$j++] = false; //#2951 + return true; //#2951 + } //#2951 + var _V0 = $k[--$j]; //#2953 + var _V2 = $cvi($geti(_V0, 0, 1)); //#2953 + $k[$j++] = _V0; //#2955 + $k[$j++] = _V2; //#2955 + if ((_V2 > 6) && (_V2 != 9)) { //#2955 + $j -= 2; //#2954 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2954'; //#2954 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2954 + $k[$j++] = false; //#2954 + return true; //#2954 + } //#2954 + var _V3 = $k[--$j]; //#2956 + $k[$j++] = _V3; //#2956 + if (_V3 != 9) { //#2956 + var _V4 = $k[--$j]; //#2956 + $k[$j++] = $f(_V4 + 6); //#2956 + } else { //#2956 + $j--; //#2956 + $k[$j++] = 0; //#2956 + } //#2956 + var _V5 = $k[--$j]; //#2956 + var _V6 = $k[--$j]; //#2957 + $k[$j++] = _V6; //#2959 + $k[$j++] = $f(_V5 + 1); //#2959 + if ($f(_V5 + 1) > _V6.length) { //#2959 + $j -= 3; //#2958 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2958'; //#2958 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2958 + $k[$j++] = false; //#2958 + return true; //#2958 + } //#2958 + var _V7 = $k[--$j]; //#2960 + var _V8 = $k[--$j]; //#2960 + $k[$j++] = $geti(_V8, _V7, $f(_V8.length - _V7)); //#2960 + } //#2960 + } //#2960 + var _VA = $k[--$j]; //#2965 + $k[$j++] = _VA; //#3009 + if (_VA.length >= 1) { //#3009 + var _VB = $k[--$j]; //#2965 + $k[$j++] = _VB; //#3009 + if ($cvi($geti(_VB, 0, 1)) == 2) { //#3009 + var _VD = $k[--$j]; //#2966 + var _VE = $geti(_VD, 1, _VD.length - 1); //#2966 + $k[$j++] = _VE; //#2971 + if (_VE.length < 1) { //#2971 + $j -= 2; //#2970 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2970'; //#2970 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2970 + $k[$j++] = false; //#2970 + return true; //#2970 + } //#2970 + var _VF = $k[--$j]; //#2972 + var _VH = $cvi($geti(_VF, 0, 1)); //#2972 + $k[$j++] = _VF; //#2974 + $k[$j++] = _VH; //#2974 + if ((_VH < 1) || (_VH > 5)) { //#2974 + $j -= 2; //#2973 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2973'; //#2973 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2973 + $k[$j++] = false; //#2973 + return true; //#2973 + } //#2973 + var _VI = $k[--$j]; //#2975 + var _VJ = $k[--$j]; //#2976 + $k[$j++] = _VJ; //#2978 + $k[$j++] = $f(_VI + 1); //#2978 + if ($f(_VI + 1) > _VJ.length) { //#2978 + $j -= 3; //#2977 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2977'; //#2977 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2977 + $k[$j++] = false; //#2977 + return true; //#2977 + } //#2977 + var _VK = $k[--$j]; //#2979 + var _VL = $k[--$j]; //#2979 + var _VM = $geti(_VL, _VK, $f(_VL.length - _VK)); //#2979 + $k[$j++] = _VM; //#2984 + if (_VM.length < 1) { //#2984 $j -= 2; //#2983 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#2983'; //#2983 - $k[$j++] = "Invalid month in expiration date"; //#2983 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2983'; //#2983 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2983 $k[$j++] = false; //#2983 return true; //#2983 } //#2983 - var _QS = $k[--$j]; //#2984 - var _QU = $cvi($geti(_QS, 0, 2)); //#2984 - var _QV = _QU - 21; //#2985 - $k[$j++] = _QS; //#2985 - $k[$j++] = _QU; //#2985 - $k[$j++] = _QV; //#2985 - if (_QV >= 51) { //#2985 - $j--; //#2985 - var _QW = $k[--$j]; //#2985 - $k[$j++] = $f(_QW + 1900); //#2985 - } else { //#2985 - if ($k[--$j] <= -50) { //#2985 - var _QY = $k[--$j]; //#2985 - $k[$j++] = $f(_QY + 2100); //#2985 - } else { //#2985 - var _QZ = $k[--$j]; //#2985 - $k[$j++] = $f(_QZ + 2000); //#2985 - } //#2985 - } //#2985 - var _Qa = $k[--$j]; //#2986 - $k[$j++] = ((_Qa % 400) == 0) || (((_Qa % 4) == 0) && ((_Qa % 100) != 0)); //#2987 - $k[$j++] = Infinity; //#2987 - var _Qb = $k[--$j]; //#2987 - var _Qd = $k[--$j] ? 29 : 28; //#2987 - $k[$j++] = _Qb; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = _Qd; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - var _Qe = $a(); //#2987 - var _Qf = $k[--$j]; //#2988 - var _Qj = $cvi($geti(_Qf, 4, 2)); //#2989 - $k[$j++] = _Qf; //#2990 - if (($get(_Qe, $cvi($geti(_Qf, 2, 2)) - 1) < _Qj) || (_Qj < 1)) { //#2990 - $j -= 2; //#2990 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#2990'; //#2990 - $k[$j++] = "Invalid day of month in expiration date"; //#2990 - $k[$j++] = false; //#2990 - return true; //#2990 - } //#2990 - var _Qk = $k[--$j]; //#2991 - $_.couponexpire = $cvi($geti(_Qk, 0, 6)); //#2991 - $k[$j++] = $geti(_Qk, 6, _Qk.length - 6); //#2992 - } //#2992 - } //#2992 - var _Qn = $k[--$j]; //#2997 - $k[$j++] = _Qn; //#3018 - if (_Qn.length >= 1) { //#3018 - var _Qo = $k[--$j]; //#2997 - $k[$j++] = _Qo; //#3018 - if ($cvi($geti(_Qo, 0, 1)) == 4) { //#3018 - var _Qq = $k[--$j]; //#2998 - var _Qr = $geti(_Qq, 1, _Qq.length - 1); //#2998 - $k[$j++] = _Qr; //#3003 - if (_Qr.length < 6) { //#3003 - $j -= 2; //#3002 - $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3002'; //#3002 - $k[$j++] = "Coupon too short: Start date"; //#3002 - $k[$j++] = false; //#3002 - return true; //#3002 - } //#3002 - var _Qs = $k[--$j]; //#3004 - var _Qu = $cvi($geti(_Qs, 2, 2)); //#3004 - $k[$j++] = _Qs; //#3004 - if ((_Qu < 1) || (_Qu > 12)) { //#3004 - $j -= 2; //#3004 - $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3004'; //#3004 - $k[$j++] = "Invalid month in start date"; //#3004 - $k[$j++] = false; //#3004 - return true; //#3004 - } //#3004 - var _Qv = $k[--$j]; //#3005 - var _Qx = $cvi($geti(_Qv, 0, 2)); //#3005 - var _Qy = _Qx - 21; //#3006 - $k[$j++] = _Qv; //#3006 - $k[$j++] = _Qx; //#3006 - $k[$j++] = _Qy; //#3006 - if (_Qy >= 51) { //#3006 - $j--; //#3006 - var _Qz = $k[--$j]; //#3006 - $k[$j++] = $f(_Qz + 1900); //#3006 - } else { //#3006 - if ($k[--$j] <= -50) { //#3006 - var _R1 = $k[--$j]; //#3006 - $k[$j++] = $f(_R1 + 2100); //#3006 - } else { //#3006 - var _R2 = $k[--$j]; //#3006 - $k[$j++] = $f(_R2 + 2000); //#3006 - } //#3006 - } //#3006 - var _R3 = $k[--$j]; //#3007 - $k[$j++] = ((_R3 % 400) == 0) || (((_R3 % 4) == 0) && ((_R3 % 100) != 0)); //#3008 - $k[$j++] = Infinity; //#3008 - var _R4 = $k[--$j]; //#3008 - var _R6 = $k[--$j] ? 29 : 28; //#3008 - $k[$j++] = _R4; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = _R6; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - var _R7 = $a(); //#3008 - var _R8 = $k[--$j]; //#3009 - var _RC = $cvi($geti(_R8, 4, 2)); //#3010 - $k[$j++] = _R8; //#3011 - if (($get(_R7, $cvi($geti(_R8, 2, 2)) - 1) < _RC) || (_RC < 1)) { //#3011 - $j -= 2; //#3011 - $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3011'; //#3011 - $k[$j++] = "Invalid day of month in start date"; //#3011 - $k[$j++] = false; //#3011 - return true; //#3011 - } //#3011 - var _RD = $k[--$j]; //#3012 - $_.couponstart = $cvi($geti(_RD, 0, 6)); //#3012 - $k[$j++] = _RD; //#3015 - if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3015 - $j -= 2; //#3014 - $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3014'; //#3014 - $k[$j++] = "Coupon expires before it starts"; //#3014 - $k[$j++] = false; //#3014 - return true; //#3014 - } //#3014 - var _RI = $k[--$j]; //#3016 - $k[$j++] = $geti(_RI, 6, _RI.length - 6); //#3016 - } //#3016 - } //#3016 - var _RK = $k[--$j]; //#3021 - $k[$j++] = _RK; //#3034 - if (_RK.length >= 1) { //#3034 - var _RL = $k[--$j]; //#3021 - $k[$j++] = _RL; //#3034 - if ($cvi($geti(_RL, 0, 1)) == 5) { //#3034 - var _RN = $k[--$j]; //#3022 - var _RO = $geti(_RN, 1, _RN.length - 1); //#3022 - $k[$j++] = _RO; //#3027 - if (_RO.length < 1) { //#3027 - $j -= 2; //#3026 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3026'; //#3026 - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3026 - $k[$j++] = false; //#3026 - return true; //#3026 - } //#3026 - var _RP = $k[--$j]; //#3028 - var _RQ = $geti(_RP, 0, 1); //#3028 - $k[$j++] = _RP; //#3031 - $k[$j++] = ($cvi(_RQ) + 6) + 1; //#3031 - if ((($cvi(_RQ) + 6) + 1) > _RP.length) { //#3031 - $j -= 3; //#3030 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3030'; //#3030 - $k[$j++] = "Coupon too short: Serial Number truncated"; //#3030 - $k[$j++] = false; //#3030 - return true; //#3030 - } //#3030 - var _RR = $k[--$j]; //#3032 - var _RS = $k[--$j]; //#3032 - $k[$j++] = $geti(_RS, _RR, $f(_RS.length - _RR)); //#3032 - } //#3032 - } //#3032 - var _RU = $k[--$j]; //#3037 - $k[$j++] = _RU; //#3053 - if (_RU.length >= 1) { //#3053 - var _RV = $k[--$j]; //#3037 - $k[$j++] = _RV; //#3053 - if ($cvi($geti(_RV, 0, 1)) == 6) { //#3053 - var _RX = $k[--$j]; //#3038 - var _RY = $geti(_RX, 1, _RX.length - 1); //#3038 - $k[$j++] = _RY; //#3043 - if (_RY.length < 1) { //#3043 - $j -= 2; //#3042 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3042'; //#3042 - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3042 - $k[$j++] = false; //#3042 - return true; //#3042 - } //#3042 - var _RZ = $k[--$j]; //#3044 - var _Rb = $cvi($geti(_RZ, 0, 1)); //#3044 - $k[$j++] = _RZ; //#3046 - $k[$j++] = _Rb; //#3046 - if ((_Rb < 1) || (_Rb > 7)) { //#3046 - $j -= 2; //#3045 - $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3045'; //#3045 - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3045 - $k[$j++] = false; //#3045 - return true; //#3045 - } //#3045 - var _Rc = $k[--$j]; //#3047 - var _Rd = $k[--$j]; //#3048 - $k[$j++] = _Rd; //#3050 - $k[$j++] = $f($f(_Rc + 6) + 1); //#3050 - if (($f($f(_Rc + 6) + 1)) > _Rd.length) { //#3050 - $j -= 3; //#3049 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3049'; //#3049 - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3049 - $k[$j++] = false; //#3049 - return true; //#3049 - } //#3049 - var _Re = $k[--$j]; //#3051 - var _Rf = $k[--$j]; //#3051 - $k[$j++] = $geti(_Rf, _Re, $f(_Rf.length - _Re)); //#3051 - } //#3051 - } //#3051 - var _Rh = $k[--$j]; //#3056 - $k[$j++] = _Rh; //#3092 - if (_Rh.length >= 1) { //#3092 - var _Ri = $k[--$j]; //#3056 - $k[$j++] = _Ri; //#3092 - if ($cvi($geti(_Ri, 0, 1)) == 9) { //#3092 - var _Rk = $k[--$j]; //#3057 - var _Rl = $geti(_Rk, 1, _Rk.length - 1); //#3057 - $k[$j++] = _Rl; //#3062 - if (_Rl.length < 1) { //#3062 - $j -= 2; //#3061 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3061'; //#3061 - $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3061 - $k[$j++] = false; //#3061 - return true; //#3061 - } //#3061 - var _Rm = $k[--$j]; //#3063 - var _Ro = $cvi($geti(_Rm, 0, 1)); //#3063 - $k[$j++] = _Rm; //#3065 - if ((_Ro > 6) || ((_Ro == 3) || (_Ro == 4))) { //#3065 - $j -= 2; //#3064 - $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3064'; //#3064 - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3064 - $k[$j++] = false; //#3064 - return true; //#3064 - } //#3064 - var _Rp = $k[--$j]; //#3066 - var _Rq = $geti(_Rp, 1, _Rp.length - 1); //#3066 - $k[$j++] = _Rq; //#3071 - if (_Rq.length < 1) { //#3071 - $j -= 2; //#3070 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3070'; //#3070 - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3070 - $k[$j++] = false; //#3070 - return true; //#3070 - } //#3070 - var _Rr = $k[--$j]; //#3072 - $k[$j++] = _Rr; //#3074 - if ($cvi($geti(_Rr, 0, 1)) > 2) { //#3074 - $j -= 2; //#3073 - $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3073'; //#3073 - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3073 - $k[$j++] = false; //#3073 - return true; //#3073 - } //#3073 - var _Rt = $k[--$j]; //#3075 - var _Ru = $geti(_Rt, 1, _Rt.length - 1); //#3075 - $k[$j++] = _Ru; //#3080 - if (_Ru.length < 1) { //#3080 + var _VN = $k[--$j]; //#2985 + var _VP = $cvi($geti(_VN, 0, 1)); //#2985 + $k[$j++] = _VN; //#2987 + if ((_VP > 4) && (_VP != 9)) { //#2987 + $j -= 2; //#2986 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2986'; //#2986 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2986 + $k[$j++] = false; //#2986 + return true; //#2986 + } //#2986 + var _VQ = $k[--$j]; //#2988 + var _VR = $geti(_VQ, 1, _VQ.length - 1); //#2988 + $k[$j++] = _VR; //#2993 + if (_VR.length < 3) { //#2993 + $j -= 2; //#2992 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2992'; //#2992 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2992 + $k[$j++] = false; //#2992 + return true; //#2992 + } //#2992 + var _VS = $k[--$j]; //#2994 + var _VT = $geti(_VS, 3, _VS.length - 3); //#2994 + $k[$j++] = _VT; //#2999 + if (_VT.length < 1) { //#2999 + $j -= 2; //#2998 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2998'; //#2998 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2998 + $k[$j++] = false; //#2998 + return true; //#2998 + } //#2998 + var _VU = $k[--$j]; //#3000 + var _VW = $cvi($geti(_VU, 0, 1)); //#3000 + $k[$j++] = _VU; //#3002 + $k[$j++] = _VW; //#3002 + if ((_VW > 6) && (_VW != 9)) { //#3002 + $j -= 2; //#3001 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#3001'; //#3001 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#3001 + $k[$j++] = false; //#3001 + return true; //#3001 + } //#3001 + var _VX = $k[--$j]; //#3003 + $k[$j++] = _VX; //#3003 + if (_VX != 9) { //#3003 + var _VY = $k[--$j]; //#3003 + $k[$j++] = $f(_VY + 6); //#3003 + } else { //#3003 + $j--; //#3003 + $k[$j++] = 0; //#3003 + } //#3003 + var _VZ = $k[--$j]; //#3003 + var _Va = $k[--$j]; //#3004 + $k[$j++] = _Va; //#3006 + $k[$j++] = $f(_VZ + 1); //#3006 + if ($f(_VZ + 1) > _Va.length) { //#3006 + $j -= 3; //#3005 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#3005'; //#3005 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#3005 + $k[$j++] = false; //#3005 + return true; //#3005 + } //#3005 + var _Vb = $k[--$j]; //#3007 + var _Vc = $k[--$j]; //#3007 + $k[$j++] = $geti(_Vc, _Vb, $f(_Vc.length - _Vb)); //#3007 + } //#3007 + } //#3007 + $_.couponexpire = -1; //#3012 + var _Ve = $k[--$j]; //#3013 + $k[$j++] = _Ve; //#3031 + if (_Ve.length >= 1) { //#3031 + var _Vf = $k[--$j]; //#3013 + $k[$j++] = _Vf; //#3031 + if ($cvi($geti(_Vf, 0, 1)) == 3) { //#3031 + var _Vh = $k[--$j]; //#3014 + var _Vi = $geti(_Vh, 1, _Vh.length - 1); //#3014 + $k[$j++] = _Vi; //#3019 + if (_Vi.length < 6) { //#3019 + $j -= 2; //#3018 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#3018'; //#3018 + $k[$j++] = "Coupon too short: Expiration date"; //#3018 + $k[$j++] = false; //#3018 + return true; //#3018 + } //#3018 + var _Vj = $k[--$j]; //#3020 + var _Vl = $cvi($geti(_Vj, 2, 2)); //#3020 + $k[$j++] = _Vj; //#3020 + if ((_Vl < 1) || (_Vl > 12)) { //#3020 + $j -= 2; //#3020 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#3020'; //#3020 + $k[$j++] = "Invalid month in expiration date"; //#3020 + $k[$j++] = false; //#3020 + return true; //#3020 + } //#3020 + var _Vm = $k[--$j]; //#3021 + var _Vo = $cvi($geti(_Vm, 0, 2)); //#3021 + var _Vp = _Vo - 21; //#3022 + $k[$j++] = _Vm; //#3022 + $k[$j++] = _Vo; //#3022 + $k[$j++] = _Vp; //#3022 + if (_Vp >= 51) { //#3022 + $j--; //#3022 + var _Vq = $k[--$j]; //#3022 + $k[$j++] = $f(_Vq + 1900); //#3022 + } else { //#3022 + if ($k[--$j] <= -50) { //#3022 + var _Vs = $k[--$j]; //#3022 + $k[$j++] = $f(_Vs + 2100); //#3022 + } else { //#3022 + var _Vt = $k[--$j]; //#3022 + $k[$j++] = $f(_Vt + 2000); //#3022 + } //#3022 + } //#3022 + var _Vu = $k[--$j]; //#3023 + $k[$j++] = ((_Vu % 400) == 0) || (((_Vu % 4) == 0) && ((_Vu % 100) != 0)); //#3024 + $k[$j++] = Infinity; //#3024 + var _Vv = $k[--$j]; //#3024 + var _Vx = $k[--$j] ? 29 : 28; //#3024 + $k[$j++] = _Vv; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = _Vx; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + var _Vy = $a(); //#3024 + var _Vz = $k[--$j]; //#3025 + var _W3 = $cvi($geti(_Vz, 4, 2)); //#3026 + $k[$j++] = _Vz; //#3027 + if (($get(_Vy, $cvi($geti(_Vz, 2, 2)) - 1) < _W3) || (_W3 < 1)) { //#3027 + $j -= 2; //#3027 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#3027'; //#3027 + $k[$j++] = "Invalid day of month in expiration date"; //#3027 + $k[$j++] = false; //#3027 + return true; //#3027 + } //#3027 + var _W4 = $k[--$j]; //#3028 + $_.couponexpire = $cvi($geti(_W4, 0, 6)); //#3028 + $k[$j++] = $geti(_W4, 6, _W4.length - 6); //#3029 + } //#3029 + } //#3029 + var _W7 = $k[--$j]; //#3034 + $k[$j++] = _W7; //#3055 + if (_W7.length >= 1) { //#3055 + var _W8 = $k[--$j]; //#3034 + $k[$j++] = _W8; //#3055 + if ($cvi($geti(_W8, 0, 1)) == 4) { //#3055 + var _WA = $k[--$j]; //#3035 + var _WB = $geti(_WA, 1, _WA.length - 1); //#3035 + $k[$j++] = _WB; //#3040 + if (_WB.length < 6) { //#3040 + $j -= 2; //#3039 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3039'; //#3039 + $k[$j++] = "Coupon too short: Start date"; //#3039 + $k[$j++] = false; //#3039 + return true; //#3039 + } //#3039 + var _WC = $k[--$j]; //#3041 + var _WE = $cvi($geti(_WC, 2, 2)); //#3041 + $k[$j++] = _WC; //#3041 + if ((_WE < 1) || (_WE > 12)) { //#3041 + $j -= 2; //#3041 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3041'; //#3041 + $k[$j++] = "Invalid month in start date"; //#3041 + $k[$j++] = false; //#3041 + return true; //#3041 + } //#3041 + var _WF = $k[--$j]; //#3042 + var _WH = $cvi($geti(_WF, 0, 2)); //#3042 + var _WI = _WH - 21; //#3043 + $k[$j++] = _WF; //#3043 + $k[$j++] = _WH; //#3043 + $k[$j++] = _WI; //#3043 + if (_WI >= 51) { //#3043 + $j--; //#3043 + var _WJ = $k[--$j]; //#3043 + $k[$j++] = $f(_WJ + 1900); //#3043 + } else { //#3043 + if ($k[--$j] <= -50) { //#3043 + var _WL = $k[--$j]; //#3043 + $k[$j++] = $f(_WL + 2100); //#3043 + } else { //#3043 + var _WM = $k[--$j]; //#3043 + $k[$j++] = $f(_WM + 2000); //#3043 + } //#3043 + } //#3043 + var _WN = $k[--$j]; //#3044 + $k[$j++] = ((_WN % 400) == 0) || (((_WN % 4) == 0) && ((_WN % 100) != 0)); //#3045 + $k[$j++] = Infinity; //#3045 + var _WO = $k[--$j]; //#3045 + var _WQ = $k[--$j] ? 29 : 28; //#3045 + $k[$j++] = _WO; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = _WQ; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + var _WR = $a(); //#3045 + var _WS = $k[--$j]; //#3046 + var _WW = $cvi($geti(_WS, 4, 2)); //#3047 + $k[$j++] = _WS; //#3048 + if (($get(_WR, $cvi($geti(_WS, 2, 2)) - 1) < _WW) || (_WW < 1)) { //#3048 + $j -= 2; //#3048 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3048'; //#3048 + $k[$j++] = "Invalid day of month in start date"; //#3048 + $k[$j++] = false; //#3048 + return true; //#3048 + } //#3048 + var _WX = $k[--$j]; //#3049 + $_.couponstart = $cvi($geti(_WX, 0, 6)); //#3049 + $k[$j++] = _WX; //#3052 + if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3052 + $j -= 2; //#3051 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3051'; //#3051 + $k[$j++] = "Coupon expires before it starts"; //#3051 + $k[$j++] = false; //#3051 + return true; //#3051 + } //#3051 + var _Wc = $k[--$j]; //#3053 + $k[$j++] = $geti(_Wc, 6, _Wc.length - 6); //#3053 + } //#3053 + } //#3053 + var _We = $k[--$j]; //#3058 + $k[$j++] = _We; //#3071 + if (_We.length >= 1) { //#3071 + var _Wf = $k[--$j]; //#3058 + $k[$j++] = _Wf; //#3071 + if ($cvi($geti(_Wf, 0, 1)) == 5) { //#3071 + var _Wh = $k[--$j]; //#3059 + var _Wi = $geti(_Wh, 1, _Wh.length - 1); //#3059 + $k[$j++] = _Wi; //#3064 + if (_Wi.length < 1) { //#3064 + $j -= 2; //#3063 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3063'; //#3063 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3063 + $k[$j++] = false; //#3063 + return true; //#3063 + } //#3063 + var _Wj = $k[--$j]; //#3065 + var _Wk = $geti(_Wj, 0, 1); //#3065 + $k[$j++] = _Wj; //#3068 + $k[$j++] = ($cvi(_Wk) + 6) + 1; //#3068 + if ((($cvi(_Wk) + 6) + 1) > _Wj.length) { //#3068 + $j -= 3; //#3067 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3067'; //#3067 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#3067 + $k[$j++] = false; //#3067 + return true; //#3067 + } //#3067 + var _Wl = $k[--$j]; //#3069 + var _Wm = $k[--$j]; //#3069 + $k[$j++] = $geti(_Wm, _Wl, $f(_Wm.length - _Wl)); //#3069 + } //#3069 + } //#3069 + var _Wo = $k[--$j]; //#3074 + $k[$j++] = _Wo; //#3090 + if (_Wo.length >= 1) { //#3090 + var _Wp = $k[--$j]; //#3074 + $k[$j++] = _Wp; //#3090 + if ($cvi($geti(_Wp, 0, 1)) == 6) { //#3090 + var _Wr = $k[--$j]; //#3075 + var _Ws = $geti(_Wr, 1, _Wr.length - 1); //#3075 + $k[$j++] = _Ws; //#3080 + if (_Ws.length < 1) { //#3080 $j -= 2; //#3079 - $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3079'; //#3079 - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3079 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3079'; //#3079 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3079 $k[$j++] = false; //#3079 return true; //#3079 } //#3079 - var _Rv = $k[--$j]; //#3081 - var _Rw = $geti(_Rv, 1, _Rv.length - 1); //#3081 - $k[$j++] = _Rw; //#3086 - if (_Rw.length < 1) { //#3086 - $j -= 2; //#3085 - $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3085'; //#3085 - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3085 - $k[$j++] = false; //#3085 - return true; //#3085 - } //#3085 - var _Rx = $k[--$j]; //#3087 - $k[$j++] = _Rx; //#3089 - if ($cvi($geti(_Rx, 0, 1)) > 1) { //#3089 - $j -= 2; //#3088 - $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3088'; //#3088 - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3088 - $k[$j++] = false; //#3088 - return true; //#3088 - } //#3088 - var _Rz = $k[--$j]; //#3090 - $k[$j++] = $geti(_Rz, 1, _Rz.length - 1); //#3090 - } //#3090 - } //#3090 - var _S1 = $k[--$j]; //#3094 - $k[$j++] = _S1; //#3096 - if (_S1.length != 0) { //#3096 - $j -= 2; //#3095 - $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3095'; //#3095 - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3095 - $k[$j++] = false; //#3095 - return true; //#3095 - } //#3095 - $j--; //#3097 - }; //#3097 - $_.lintcouponposoffer = function() { - var _S2 = $k[--$j]; //#3101 - $k[$j++] = _S2; //#3103 - $k[$j++] = true; //#3103 - $forall(_S2, function() { //#3103 - var _S3 = $k[--$j]; //#3102 - if ((_S3 < 48) || (_S3 > 57)) { //#3102 - $j--; //#3102 - $k[$j++] = false; //#3102 - return true; //#3102 - } //#3102 - }); //#3102 - if ($nt($k[--$j])) { //#3104 - $j -= 2; //#3104 - $k[$j++] = 'bwipp.GS1couponNotNumeric#3104'; //#3104 - $k[$j++] = "Coupon not numeric"; //#3104 - $k[$j++] = false; //#3104 - return true; //#3104 - } //#3104 - var _S5 = $k[--$j]; //#3106 - $k[$j++] = _S5; //#3108 - if (_S5.length < 1) { //#3108 - $j -= 2; //#3107 - $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3107'; //#3107 - $k[$j++] = "Coupon too short: Missing Format Code"; //#3107 - $k[$j++] = false; //#3107 - return true; //#3107 - } //#3107 - var _S6 = $k[--$j]; //#3109 - var _S7 = $geti(_S6, 0, 1); //#3109 - $k[$j++] = _S6; //#3111 - if ($ne(_S7, "0") && $ne(_S7, "1")) { //#3111 - $j -= 2; //#3110 - $k[$j++] = 'bwipp.GS1couponBadFormatCode#3110'; //#3110 - $k[$j++] = "Coupon format must be 0 or 1"; //#3110 - $k[$j++] = false; //#3110 - return true; //#3110 - } //#3110 - var _S8 = $k[--$j]; //#3112 - var _S9 = $geti(_S8, 1, _S8.length - 1); //#3112 - $k[$j++] = _S9; //#3116 - if (_S9.length < 1) { //#3116 - $j -= 2; //#3115 - $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3115'; //#3115 - $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3115 - $k[$j++] = false; //#3115 - return true; //#3115 - } //#3115 - var _SA = $k[--$j]; //#3117 - var _SC = $cvi($geti(_SA, 0, 1)); //#3117 - $k[$j++] = _SA; //#3119 - $k[$j++] = _SC; //#3119 - if (_SC > 6) { //#3119 - $j -= 3; //#3118 - $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3118'; //#3118 - $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3118 - $k[$j++] = false; //#3118 - return true; //#3118 - } //#3118 - var _SD = $k[--$j]; //#3120 - var _SE = $k[--$j]; //#3121 - $k[$j++] = _SE; //#3123 - $k[$j++] = $f($f(_SD + 6) + 1); //#3123 - if (($f($f(_SD + 6) + 1)) > _SE.length) { //#3123 - $j -= 3; //#3122 - $k[$j++] = 'bwipp.GS1couponTooShortFunder#3122'; //#3122 - $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3122 - $k[$j++] = false; //#3122 - return true; //#3122 - } //#3122 - var _SF = $k[--$j]; //#3124 - var _SG = $k[--$j]; //#3124 - var _SH = $geti(_SG, _SF, $f(_SG.length - _SF)); //#3124 - $k[$j++] = _SH; //#3128 - if (_SH.length < 6) { //#3128 - $j -= 2; //#3127 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3127'; //#3127 - $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3127 - $k[$j++] = false; //#3127 - return true; //#3127 + var _Wt = $k[--$j]; //#3081 + var _Wv = $cvi($geti(_Wt, 0, 1)); //#3081 + $k[$j++] = _Wt; //#3083 + $k[$j++] = _Wv; //#3083 + if ((_Wv < 1) || (_Wv > 7)) { //#3083 + $j -= 2; //#3082 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3082'; //#3082 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3082 + $k[$j++] = false; //#3082 + return true; //#3082 + } //#3082 + var _Ww = $k[--$j]; //#3084 + var _Wx = $k[--$j]; //#3085 + $k[$j++] = _Wx; //#3087 + $k[$j++] = $f($f(_Ww + 6) + 1); //#3087 + if (($f($f(_Ww + 6) + 1)) > _Wx.length) { //#3087 + $j -= 3; //#3086 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3086'; //#3086 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3086 + $k[$j++] = false; //#3086 + return true; //#3086 + } //#3086 + var _Wy = $k[--$j]; //#3088 + var _Wz = $k[--$j]; //#3088 + $k[$j++] = $geti(_Wz, _Wy, $f(_Wz.length - _Wy)); //#3088 + } //#3088 + } //#3088 + var _X1 = $k[--$j]; //#3093 + $k[$j++] = _X1; //#3129 + if (_X1.length >= 1) { //#3129 + var _X2 = $k[--$j]; //#3093 + $k[$j++] = _X2; //#3129 + if ($cvi($geti(_X2, 0, 1)) == 9) { //#3129 + var _X4 = $k[--$j]; //#3094 + var _X5 = $geti(_X4, 1, _X4.length - 1); //#3094 + $k[$j++] = _X5; //#3099 + if (_X5.length < 1) { //#3099 + $j -= 2; //#3098 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3098'; //#3098 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3098 + $k[$j++] = false; //#3098 + return true; //#3098 + } //#3098 + var _X6 = $k[--$j]; //#3100 + var _X8 = $cvi($geti(_X6, 0, 1)); //#3100 + $k[$j++] = _X6; //#3102 + if ((_X8 > 6) || ((_X8 == 3) || (_X8 == 4))) { //#3102 + $j -= 2; //#3101 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3101'; //#3101 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3101 + $k[$j++] = false; //#3101 + return true; //#3101 + } //#3101 + var _X9 = $k[--$j]; //#3103 + var _XA = $geti(_X9, 1, _X9.length - 1); //#3103 + $k[$j++] = _XA; //#3108 + if (_XA.length < 1) { //#3108 + $j -= 2; //#3107 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3107'; //#3107 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3107 + $k[$j++] = false; //#3107 + return true; //#3107 + } //#3107 + var _XB = $k[--$j]; //#3109 + $k[$j++] = _XB; //#3111 + if ($cvi($geti(_XB, 0, 1)) > 2) { //#3111 + $j -= 2; //#3110 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3110'; //#3110 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3110 + $k[$j++] = false; //#3110 + return true; //#3110 + } //#3110 + var _XD = $k[--$j]; //#3112 + var _XE = $geti(_XD, 1, _XD.length - 1); //#3112 + $k[$j++] = _XE; //#3117 + if (_XE.length < 1) { //#3117 + $j -= 2; //#3116 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3116'; //#3116 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3116 + $k[$j++] = false; //#3116 + return true; //#3116 + } //#3116 + var _XF = $k[--$j]; //#3118 + var _XG = $geti(_XF, 1, _XF.length - 1); //#3118 + $k[$j++] = _XG; //#3123 + if (_XG.length < 1) { //#3123 + $j -= 2; //#3122 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3122'; //#3122 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3122 + $k[$j++] = false; //#3122 + return true; //#3122 + } //#3122 + var _XH = $k[--$j]; //#3124 + $k[$j++] = _XH; //#3126 + if ($cvi($geti(_XH, 0, 1)) > 1) { //#3126 + $j -= 2; //#3125 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3125'; //#3125 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3125 + $k[$j++] = false; //#3125 + return true; //#3125 + } //#3125 + var _XJ = $k[--$j]; //#3127 + $k[$j++] = $geti(_XJ, 1, _XJ.length - 1); //#3127 + } //#3127 } //#3127 - var _SI = $k[--$j]; //#3129 - var _SJ = $geti(_SI, 6, _SI.length - 6); //#3129 - $k[$j++] = _SJ; //#3133 - if (_SJ.length < 1) { //#3133 + var _XL = $k[--$j]; //#3131 + $k[$j++] = _XL; //#3133 + if (_XL.length != 0) { //#3133 $j -= 2; //#3132 - $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3132'; //#3132 - $k[$j++] = "Coupon too short: Missing SN VLI"; //#3132 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3132'; //#3132 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3132 $k[$j++] = false; //#3132 return true; //#3132 } //#3132 - var _SK = $k[--$j]; //#3134 - var _SL = $geti(_SK, 0, 1); //#3134 - $k[$j++] = _SK; //#3138 - $k[$j++] = ($cvi(_SL) + 6) + 1; //#3138 - if ((($cvi(_SL) + 6) + 1) > _SK.length) { //#3138 - $j -= 3; //#3137 - $k[$j++] = 'bwipp.GS1couponTooShortSn#3137'; //#3137 - $k[$j++] = "Coupon too short: Truncated SN"; //#3137 - $k[$j++] = false; //#3137 - return true; //#3137 - } //#3137 - var _SM = $k[--$j]; //#3139 - var _SN = $k[--$j]; //#3139 - var _SO = $geti(_SN, _SM, $f(_SN.length - _SM)); //#3139 - $k[$j++] = _SO; //#3142 - if (_SO.length != 0) { //#3142 + $j--; //#3134 + }; //#3134 + $_.lintcouponposoffer = function() { + var _XM = $k[--$j]; //#3138 + $k[$j++] = _XM; //#3140 + $k[$j++] = true; //#3140 + $forall(_XM, function() { //#3140 + var _XN = $k[--$j]; //#3139 + if ((_XN < 48) || (_XN > 57)) { //#3139 + $j--; //#3139 + $k[$j++] = false; //#3139 + return true; //#3139 + } //#3139 + }); //#3139 + if ($nt($k[--$j])) { //#3141 $j -= 2; //#3141 - $k[$j++] = 'bwipp.GS1couponTooLong#3141'; //#3141 - $k[$j++] = "Coupon too long"; //#3141 + $k[$j++] = 'bwipp.GS1couponNotNumeric#3141'; //#3141 + $k[$j++] = "Coupon not numeric"; //#3141 $k[$j++] = false; //#3141 return true; //#3141 } //#3141 - $j--; //#3143 - }; //#3143 - $_.lintlatlong = function() { - var _SP = $k[--$j]; //#3147 - $k[$j++] = _SP; //#3149 - if (_SP.length != 20) { //#3149 - $j--; //#3148 - $k[$j++] = 'bwipp.GS1badGeoLength#3148'; //#3148 - $k[$j++] = "Invalid length for a geo-location"; //#3148 - $k[$j++] = false; //#3148 - return true; //#3148 - } //#3148 - var _SQ = $k[--$j]; //#3150 - $k[$j++] = _SQ; //#3150 - if ($cvi($geti(_SQ, 0, 10)) > 1800000000) { //#3150 - $j--; //#3150 - $k[$j++] = 'bwipp.GS1badLatitude#3150'; //#3150 - $k[$j++] = "Invalid value for latitude"; //#3150 - $k[$j++] = false; //#3150 - return true; //#3150 - } //#3150 - var _SS = $k[--$j]; //#3151 - $k[$j++] = _SS; //#3151 - if ($cvi($geti(_SS, 10, 10)) > 3600000000) { //#3151 - $j--; //#3151 - $k[$j++] = 'bwipp.GS1badLongitude#3151'; //#3151 - $k[$j++] = "Invalid value for longitude"; //#3151 - $k[$j++] = false; //#3151 - return true; //#3151 - } //#3151 - $j--; //#3152 - }; //#3152 - if (!bwipp_gs1process.__3161__) { //#3161 - $_ = Object.create($_); //#3161 - $k[$j++] = Infinity; //#3160 - var _SU = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3159 - for (var _SV = 0, _SW = _SU.length; _SV < _SW; _SV++) { //#3160 - var _SX = $get(_SU, _SV); //#3160 - $k[$j++] = _SX; //#3160 - $k[$j++] = _SX; //#3160 - } //#3160 - $_.aidcmediatype = $d(); //#3160 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3160 - bwipp_gs1process.__3161__ = 1; //#3160 - $_ = Object.getPrototypeOf($_); //#3160 - } //#3160 - $_.lintmediatype = function() { - var _Sc = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3164 - if (!_Sc) { //#3164 - $j--; //#3164 - $k[$j++] = 'bwipp.GS1UnknownMediaType#3164'; //#3164 - $k[$j++] = "Unknown AIDC media type"; //#3164 + var _XP = $k[--$j]; //#3143 + $k[$j++] = _XP; //#3145 + if (_XP.length < 1) { //#3145 + $j -= 2; //#3144 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3144'; //#3144 + $k[$j++] = "Coupon too short: Missing Format Code"; //#3144 + $k[$j++] = false; //#3144 + return true; //#3144 + } //#3144 + var _XQ = $k[--$j]; //#3146 + var _XR = $geti(_XQ, 0, 1); //#3146 + $k[$j++] = _XQ; //#3148 + if ($ne(_XR, "0") && $ne(_XR, "1")) { //#3148 + $j -= 2; //#3147 + $k[$j++] = 'bwipp.GS1couponBadFormatCode#3147'; //#3147 + $k[$j++] = "Coupon format must be 0 or 1"; //#3147 + $k[$j++] = false; //#3147 + return true; //#3147 + } //#3147 + var _XS = $k[--$j]; //#3149 + var _XT = $geti(_XS, 1, _XS.length - 1); //#3149 + $k[$j++] = _XT; //#3153 + if (_XT.length < 1) { //#3153 + $j -= 2; //#3152 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3152'; //#3152 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3152 + $k[$j++] = false; //#3152 + return true; //#3152 + } //#3152 + var _XU = $k[--$j]; //#3154 + var _XW = $cvi($geti(_XU, 0, 1)); //#3154 + $k[$j++] = _XU; //#3156 + $k[$j++] = _XW; //#3156 + if (_XW > 6) { //#3156 + $j -= 3; //#3155 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3155'; //#3155 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3155 + $k[$j++] = false; //#3155 + return true; //#3155 + } //#3155 + var _XX = $k[--$j]; //#3157 + var _XY = $k[--$j]; //#3158 + $k[$j++] = _XY; //#3160 + $k[$j++] = $f($f(_XX + 6) + 1); //#3160 + if (($f($f(_XX + 6) + 1)) > _XY.length) { //#3160 + $j -= 3; //#3159 + $k[$j++] = 'bwipp.GS1couponTooShortFunder#3159'; //#3159 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3159 + $k[$j++] = false; //#3159 + return true; //#3159 + } //#3159 + var _XZ = $k[--$j]; //#3161 + var _Xa = $k[--$j]; //#3161 + var _Xb = $geti(_Xa, _XZ, $f(_Xa.length - _XZ)); //#3161 + $k[$j++] = _Xb; //#3165 + if (_Xb.length < 6) { //#3165 + $j -= 2; //#3164 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3164'; //#3164 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3164 $k[$j++] = false; //#3164 return true; //#3164 } //#3164 - }; //#3164 - if (!$_.dontlint) { //#3301 - $k[$j++] = true; //#3207 - for (var _Sg = 0, _Sf = $_.vals.length - 1; _Sg <= _Sf; _Sg += 1) { //#3207 - $_.ai = $get($_.ais, _Sg); //#3172 - $_.val = $get($_.vals, _Sg); //#3173 - var _Sn = $get($_.gs1syntax, $_.ai) !== undefined; //#3174 - if (_Sn) { //#3205 - var _Sr = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3175 - $k[$j++] = _Sr; //#3177 - $k[$j++] = 0; //#3177 - $forall(_Sr, function() { //#3177 - var _Ss = $k[--$j]; //#3177 - $k[$j++] = _Ss; //#3177 - if ($get(_Ss, 'opt')) { //#3177 - $j--; //#3177 - $k[$j++] = 0; //#3177 - } else { //#3177 - var _Sv = $get($k[--$j], 'min'); //#3177 - $k[$j++] = _Sv; //#3177 - } //#3177 - var _Sw = $k[--$j]; //#3177 - var _Sx = $k[--$j]; //#3177 - $k[$j++] = $f(_Sx + _Sw); //#3177 - }); //#3177 - if ($k[--$j] > $_.val.length) { //#3179 - $j--; //#3178 - $k[$j++] = 'bwipp.GS1valueTooShort#3178'; //#3178 - $k[$j++] = "Too short"; //#3178 - $k[$j++] = false; //#3178 - break; //#3178 - } //#3178 - var _T0 = $k[--$j]; //#3180 - $k[$j++] = _T0; //#3180 - $k[$j++] = 0; //#3180 - $forall(_T0, function() { //#3180 - var _T2 = $get($k[--$j], 'max'); //#3180 - var _T3 = $k[--$j]; //#3180 - $k[$j++] = $f(_T3 + _T2); //#3180 - }); //#3180 - if ($k[--$j] < $_.val.length) { //#3182 - $j--; //#3181 - $k[$j++] = 'bwipp.GS1valueTooLong#3181'; //#3181 - $k[$j++] = "Too long"; //#3181 - $k[$j++] = false; //#3181 - break; //#3181 - } //#3181 - $forall($k[--$j], function() { //#3199 - $_.props = $k[--$j]; //#3184 - var _T9 = $get($_.props, 'max'); //#3185 - var _TA = $_.val; //#3185 - var _TB = _TA.length; //#3185 - if (_T9 > _TA.length) { //#3185 - var _ = _TB; //#3185 - _TB = _T9; //#3185 - _T9 = _; //#3185 - } //#3185 - $_.eval = $geti($_.val, 0, _T9); //#3186 - var _TG = $_.eval.length; //#3187 - $_.val = $geti($_.val, _TG, $_.val.length - _TG); //#3187 - if ($_.eval.length == 0) { //#3197 - if ($nt($get($_.props, 'opt'))) { //#3191 - $j--; //#3190 - $k[$j++] = 'bwipp.GS1valueTooShort#3190'; //#3190 - $k[$j++] = "Too short"; //#3190 - $k[$j++] = false; //#3190 - return true; //#3190 - } //#3190 - } else { //#3197 - if ($_.eval.length < $get($_.props, 'min')) { //#3195 - $j--; //#3194 - $k[$j++] = 'bwipp.GS1valueTooShort#3194'; //#3194 - $k[$j++] = "Too short"; //#3194 - $k[$j++] = false; //#3194 - return true; //#3194 - } //#3194 - var _TP = new Map([ + var _Xc = $k[--$j]; //#3166 + var _Xd = $geti(_Xc, 6, _Xc.length - 6); //#3166 + $k[$j++] = _Xd; //#3170 + if (_Xd.length < 1) { //#3170 + $j -= 2; //#3169 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3169'; //#3169 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#3169 + $k[$j++] = false; //#3169 + return true; //#3169 + } //#3169 + var _Xe = $k[--$j]; //#3171 + var _Xf = $geti(_Xe, 0, 1); //#3171 + $k[$j++] = _Xe; //#3175 + $k[$j++] = ($cvi(_Xf) + 6) + 1; //#3175 + if ((($cvi(_Xf) + 6) + 1) > _Xe.length) { //#3175 + $j -= 3; //#3174 + $k[$j++] = 'bwipp.GS1couponTooShortSn#3174'; //#3174 + $k[$j++] = "Coupon too short: Truncated SN"; //#3174 + $k[$j++] = false; //#3174 + return true; //#3174 + } //#3174 + var _Xg = $k[--$j]; //#3176 + var _Xh = $k[--$j]; //#3176 + var _Xi = $geti(_Xh, _Xg, $f(_Xh.length - _Xg)); //#3176 + $k[$j++] = _Xi; //#3179 + if (_Xi.length != 0) { //#3179 + $j -= 2; //#3178 + $k[$j++] = 'bwipp.GS1couponTooLong#3178'; //#3178 + $k[$j++] = "Coupon too long"; //#3178 + $k[$j++] = false; //#3178 + return true; //#3178 + } //#3178 + $j--; //#3180 + }; //#3180 + $_.lintlatitude = function() { + var _Xj = $k[--$j]; //#3184 + $k[$j++] = _Xj; //#3186 + if (_Xj.length != 10) { //#3186 + $j--; //#3185 + $k[$j++] = 'bwipp.GS1badLatitudeLength#3185'; //#3185 + $k[$j++] = "Invalid length for a latitude"; //#3185 + $k[$j++] = false; //#3185 + return true; //#3185 + } //#3185 + if ($cvi($k[--$j]) > $cvi("1800000000")) { //#3189 + $j--; //#3189 + $k[$j++] = 'bwipp.GS1badLatitude#3189'; //#3189 + $k[$j++] = "Invalid value for latitude"; //#3189 + $k[$j++] = false; //#3189 + return true; //#3189 + } //#3189 + }; //#3189 + $_.lintlongitude = function() { + var _Xl = $k[--$j]; //#3193 + $k[$j++] = _Xl; //#3195 + if (_Xl.length != 10) { //#3195 + $j--; //#3194 + $k[$j++] = 'bwipp.GS1badLongitudeLength#3194'; //#3194 + $k[$j++] = "Invalid length for a longitude"; //#3194 + $k[$j++] = false; //#3194 + return true; //#3194 + } //#3194 + if ($cvi($k[--$j]) > $cvi("3600000000")) { //#3199 + $j--; //#3199 + $k[$j++] = 'bwipp.GS1badLongitude#3199'; //#3199 + $k[$j++] = "Invalid value for longitude"; //#3199 + $k[$j++] = false; //#3199 + return true; //#3199 + } //#3199 + }; //#3199 + if (!bwipp_gs1process.__3208__) { //#3208 + $_ = Object.create($_); //#3208 + $k[$j++] = Infinity; //#3203 + var _Xn = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3206 + for (var _Xo = 0, _Xp = _Xn.length; _Xo < _Xp; _Xo++) { //#3207 + var _Xq = $get(_Xn, _Xo); //#3207 + $k[$j++] = _Xq; //#3207 + $k[$j++] = _Xq; //#3207 + } //#3207 + $_.aidcmediatype = $d(); //#3207 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3207 + bwipp_gs1process.__3208__ = 1; //#3207 + $_ = Object.getPrototypeOf($_); //#3207 + } //#3207 + $_.lintmediatype = function() { + var _Xv = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3211 + if (!_Xv) { //#3211 + $j--; //#3211 + $k[$j++] = 'bwipp.GS1UnknownMediaType#3211'; //#3211 + $k[$j++] = "Unknown AIDC media type"; //#3211 + $k[$j++] = false; //#3211 + return true; //#3211 + } //#3211 + }; //#3211 + if (!$_.dontlint) { //#3352 + $k[$j++] = true; //#3255 + for (var _Xz = 0, _Xy = $_.vals.length - 1; _Xz <= _Xy; _Xz += 1) { //#3255 + $_.ai = $get($_.ais, _Xz); //#3219 + $_.val = $get($_.vals, _Xz); //#3220 + var _Y6 = $get($_.gs1syntax, $_.ai) !== undefined; //#3221 + if (_Y6) { //#3253 + var _YA = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3222 + $k[$j++] = _YA; //#3224 + $k[$j++] = 0; //#3224 + $forall(_YA, function() { //#3224 + var _YB = $k[--$j]; //#3224 + $k[$j++] = _YB; //#3224 + if ($get(_YB, 'opt')) { //#3224 + $j--; //#3224 + $k[$j++] = 0; //#3224 + } else { //#3224 + var _YE = $get($k[--$j], 'min'); //#3224 + $k[$j++] = _YE; //#3224 + } //#3224 + var _YF = $k[--$j]; //#3224 + var _YG = $k[--$j]; //#3224 + $k[$j++] = $f(_YG + _YF); //#3224 + }); //#3224 + if ($k[--$j] > $_.val.length) { //#3226 + $j--; //#3225 + $k[$j++] = 'bwipp.GS1valueTooShort#3225'; //#3225 + $k[$j++] = "Too short"; //#3225 + $k[$j++] = false; //#3225 + break; //#3225 + } //#3225 + var _YJ = $k[--$j]; //#3227 + $k[$j++] = _YJ; //#3227 + $k[$j++] = 0; //#3227 + $forall(_YJ, function() { //#3227 + var _YL = $get($k[--$j], 'max'); //#3227 + var _YM = $k[--$j]; //#3227 + $k[$j++] = $f(_YM + _YL); //#3227 + }); //#3227 + if ($k[--$j] < $_.val.length) { //#3229 + $j--; //#3228 + $k[$j++] = 'bwipp.GS1valueTooLong#3228'; //#3228 + $k[$j++] = "Too long"; //#3228 + $k[$j++] = false; //#3228 + break; //#3228 + } //#3228 + $forall($k[--$j], function() { //#3247 + $_.props = $k[--$j]; //#3231 + var _YS = $get($_.props, 'max'); //#3232 + var _YT = $_.val; //#3232 + var _YU = _YT.length; //#3232 + if (_YS > _YT.length) { //#3232 + var _ = _YU; //#3232 + _YU = _YS; //#3232 + _YS = _; //#3232 + } //#3232 + $_.eval = $geti($_.val, 0, _YS); //#3233 + var _YZ = $_.eval.length; //#3234 + $_.val = $geti($_.val, _YZ, $_.val.length - _YZ); //#3234 + if ($_.eval.length == 0) { //#3245 + if ($nt($get($_.props, 'opt'))) { //#3238 + $j--; //#3237 + $k[$j++] = 'bwipp.GS1valueTooShort#3237'; //#3237 + $k[$j++] = "Too short"; //#3237 + $k[$j++] = false; //#3237 + return true; //#3237 + } //#3237 + } else { //#3245 + if ($_.eval.length < $get($_.props, 'min')) { //#3242 + $j--; //#3241 + $k[$j++] = 'bwipp.GS1valueTooShort#3241'; //#3241 + $k[$j++] = "Too short"; //#3241 + $k[$j++] = false; //#3241 + return true; //#3241 + } //#3241 + var _Yi = new Map([ ["N", 'lintnumeric'], ["X", 'lintcset82'], - ["Y", 'lintcset39'] - ]); //#3196 - $k[$j++] = $_.eval; //#3196 - if ($_[$get(_TP, $get($_.props, 'cset'))]() === true) { + ["Y", 'lintcset39'], + ["Z", 'lintcset64'] + ]); //#3243 + $k[$j++] = $_.eval; //#3244 + if ($_[$get(_Yi, $get($_.props, 'cset'))]() === true) { return true; - } //#3196 - $forall($get($_.props, 'linters'), function() { //#3197 - var _TZ = $_[$k[--$j]]; //#3197 - $k[$j++] = $_.eval; //#3197 - if (_TZ() === true) { + } //#3244 + $forall($get($_.props, 'linters'), function() { //#3245 + var _Ys = $_[$k[--$j]]; //#3245 + $k[$j++] = $_.eval; //#3245 + if (_Ys() === true) { return true; - } //#3197 - }); //#3197 - } //#3197 - }); //#3197 - var _Ta = $k[--$j]; //#3200 - $k[$j++] = _Ta; //#3200 - if ($nt(_Ta)) { //#3200 - break; //#3200 - } //#3200 - if ($_.val.length != 0) { //#3203 - $j--; //#3202 - $k[$j++] = 'bwipp.GS1valueTooLong#3202'; //#3202 - $k[$j++] = "Too long"; //#3202 - $k[$j++] = false; //#3202 - break; //#3202 - } //#3202 - } else { //#3205 - $j--; //#3205 - $k[$j++] = 'bwipp.GS1unknownAI#3205'; //#3205 - $k[$j++] = "Unrecognised AI"; //#3205 - $k[$j++] = false; //#3205 - break; //#3205 - } //#3205 - } //#3205 - if ($nt($k[--$j])) { //#3215 - var _Td = $k[--$j]; //#3209 - var _Tf = $s((_Td.length + $_.ai.length) + 5); //#3209 - $puti(_Tf, 0, "AI "); //#3210 - $puti(_Tf, 3, $_.ai); //#3211 - $puti(_Tf, 3 + $_.ai.length, ": "); //#3212 - $puti(_Tf, 5 + $_.ai.length, _Td); //#3213 - $k[$j++] = _Tf; //#3214 - bwipp_raiseerror(); //#3214 - } //#3214 + } //#3245 + }); //#3245 + } //#3245 + }); //#3245 + var _Yt = $k[--$j]; //#3248 + $k[$j++] = _Yt; //#3248 + if ($nt(_Yt)) { //#3248 + break; //#3248 + } //#3248 + if ($_.val.length != 0) { //#3251 + $j--; //#3250 + $k[$j++] = 'bwipp.GS1valueTooLong#3250'; //#3250 + $k[$j++] = "Too long"; //#3250 + $k[$j++] = false; //#3250 + break; //#3250 + } //#3250 + } else { //#3253 + $j--; //#3253 + $k[$j++] = 'bwipp.GS1unknownAI#3253'; //#3253 + $k[$j++] = "Unrecognised AI"; //#3253 + $k[$j++] = false; //#3253 + break; //#3253 + } //#3253 + } //#3253 + if ($nt($k[--$j])) { //#3263 + var _Yw = $k[--$j]; //#3257 + var _Yy = $s((_Yw.length + $_.ai.length) + 5); //#3257 + $puti(_Yy, 0, "AI "); //#3258 + $puti(_Yy, 3, $_.ai); //#3259 + $puti(_Yy, 3 + $_.ai.length, ": "); //#3260 + $puti(_Yy, 5 + $_.ai.length, _Yw); //#3261 + $k[$j++] = _Yy; //#3262 + bwipp_raiseerror(); //#3262 + } //#3262 $_.aiexists = function() { - $_.this = $k[--$j]; //#3219 - $_.patt = $k[--$j]; //#3220 - for (var _Tl = 0, _Tm = 1; _Tl < _Tm; _Tl++) { //#3241 - var _Tp = $get($_.aivals, $_.patt) !== undefined; //#3222 - if (_Tp) { //#3222 - $k[$j++] = true; //#3222 - break; //#3222 - } //#3222 - if ($_.patt.length == 4) { //#3239 - if ($eq($geti($_.patt, 3, 1), "n")) { //#3237 - var _Tv = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3225 - $_.pfxlen = _Tv; //#3225 - var _Tw = $_.ais; //#3227 - $k[$j++] = false; //#3235 - for (var _Tx = 0, _Ty = _Tw.length; _Tx < _Ty; _Tx++) { //#3235 - var _Tz = $get(_Tw, _Tx); //#3235 - $k[$j++] = _Tz; //#3234 - if ($ne(_Tz, $_.this) && (_Tz.length == 4)) { //#3233 - if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3231 - $j--; //#3230 - $k[$j++] = true; //#3230 - } //#3230 - } else { //#3233 - $j--; //#3233 - } //#3233 - } //#3233 - break; //#3236 - } //#3236 - $k[$j++] = false; //#3238 - break; //#3238 - } //#3238 - $k[$j++] = false; //#3240 - break; //#3240 - } //#3240 - }; //#3240 - var _U7 = $_.vals; //#3245 - $_.aivals = new Map; //#3245 - for (var _UA = 0, _U9 = $_.vals.length - 1; _UA <= _U9; _UA += 1) { //#3260 - $_.ai = $get($_.ais, _UA); //#3247 - $_.val = $get($_.vals, _UA); //#3248 - var _UH = $get($_.aivals, $_.ai) !== undefined; //#3249 - if (_UH) { //#3258 - if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3256 - var _UN = $s($_.ai.length + 40); //#3251 - $puti(_UN, 0, "Repeated AIs ("); //#3252 - $puti(_UN, 14, $_.ai); //#3253 - $puti(_UN, 14 + $_.ai.length, ") must have the same value"); //#3254 - $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3255'; //#3255 - $k[$j++] = _UN; //#3255 - bwipp_raiseerror(); //#3255 - } //#3255 - } else { //#3258 - $put($_.aivals, $_.ai, $_.val); //#3258 - } //#3258 - } //#3258 - for (var _UV = 0, _UU = $_.vals.length - 1; _UV <= _UU; _UV += 1) { //#3299 - $_.ai = $get($_.ais, _UV); //#3264 - var _Ua = $get($_.gs1syntax, $_.ai); //#3265 - var _Ub = $get(_Ua, 'ex') !== undefined; //#3265 - $k[$j++] = _Ua; //#3280 - $k[$j++] = 'ex'; //#3280 - if (_Ub) { //#3279 - var _Uc = $k[--$j]; //#3266 - $forall($get($k[--$j], _Uc), function() { //#3277 - $_.patt = $k[--$j]; //#3267 - $k[$j++] = $_.patt; //#3268 - $k[$j++] = $_.ai; //#3268 - $_.aiexists(); //#3268 - if ($k[--$j]) { //#3276 - var _Ul = $s(($_.ai.length + $_.patt.length) + 36); //#3269 - $puti(_Ul, 0, "AIs ("); //#3270 - $puti(_Ul, 5, $_.ai); //#3271 - $puti(_Ul, 5 + $_.ai.length, ") and ("); //#3272 - $puti(_Ul, 12 + $_.ai.length, $_.patt); //#3273 - $puti(_Ul, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3274 - $k[$j++] = 'bwipp.GS1exclusiveAIs#3275'; //#3275 - $k[$j++] = _Ul; //#3275 - bwipp_raiseerror(); //#3275 - } //#3275 - }); //#3275 - } else { //#3279 - $j -= 2; //#3279 - } //#3279 - if ($_.lintreqs) { //#3298 - var _Uv = $get($_.gs1syntax, $_.ai); //#3282 - var _Uw = $get(_Uv, 'req') !== undefined; //#3282 - $k[$j++] = _Uv; //#3297 - $k[$j++] = 'req'; //#3297 - if (_Uw) { //#3296 - var _Ux = $k[--$j]; //#3283 - $forall($get($k[--$j], _Ux), function() { //#3294 - var _V0 = $k[--$j]; //#3284 - $k[$j++] = false; //#3286 - $forall(_V0, function() { //#3286 - $k[$j++] = $_.ai; //#3285 - $_.aiexists(); //#3285 - if ($k[--$j]) { //#3285 - $j--; //#3285 - $k[$j++] = true; //#3285 - } //#3285 - }); //#3285 - if ($nt($k[--$j])) { //#3293 - var _V5 = $s($_.ai.length + 47); //#3288 - $puti(_V5, 0, "One of more requisite AIs for AI ("); //#3289 - $puti(_V5, 34, $_.ai); //#3290 - $puti(_V5, 34 + $_.ai.length, ") are missing"); //#3291 - $k[$j++] = 'bwipp.GS1missingAIs#3292'; //#3292 - $k[$j++] = _V5; //#3292 - bwipp_raiseerror(); //#3292 - } //#3292 - }); //#3292 - } else { //#3296 - $j -= 2; //#3296 - } //#3296 - } //#3296 - } //#3296 - } //#3296 - $k[$j++] = $_.ais; //#3305 - $k[$j++] = $_.vals; //#3305 - $k[$j++] = $_.fncs; //#3305 - $_ = Object.getPrototypeOf($_); //#3305 - $_ = Object.getPrototypeOf($_); //#3307 -} - + $_.this = $k[--$j]; //#3267 + $_.patt = $k[--$j]; //#3268 + for (var _Z4 = 0, _Z5 = 1; _Z4 < _Z5; _Z4++) { //#3289 + var _Z8 = $get($_.aivals, $_.patt) !== undefined; //#3270 + if (_Z8) { //#3270 + $k[$j++] = true; //#3270 + break; //#3270 + } //#3270 + if ($_.patt.length == 4) { //#3287 + if ($eq($geti($_.patt, 3, 1), "n")) { //#3285 + var _ZE = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3273 + $_.pfxlen = _ZE; //#3273 + var _ZF = $_.ais; //#3275 + $k[$j++] = false; //#3283 + for (var _ZG = 0, _ZH = _ZF.length; _ZG < _ZH; _ZG++) { //#3283 + var _ZI = $get(_ZF, _ZG); //#3283 + $k[$j++] = _ZI; //#3282 + if ($ne(_ZI, $_.this) && (_ZI.length == 4)) { //#3281 + if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3279 + $j--; //#3278 + $k[$j++] = true; //#3278 + } //#3278 + } else { //#3281 + $j--; //#3281 + } //#3281 + } //#3281 + break; //#3284 + } //#3284 + $k[$j++] = false; //#3286 + break; //#3286 + } //#3286 + $k[$j++] = false; //#3288 + break; //#3288 + } //#3288 + }; //#3288 + var _ZQ = $_.vals; //#3293 + $_.aivals = new Map; //#3293 + for (var _ZT = 0, _ZS = $_.vals.length - 1; _ZT <= _ZS; _ZT += 1) { //#3308 + $_.ai = $get($_.ais, _ZT); //#3295 + $_.val = $get($_.vals, _ZT); //#3296 + var _Za = $get($_.aivals, $_.ai) !== undefined; //#3297 + if (_Za) { //#3306 + if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3304 + var _Zg = $s($_.ai.length + 40); //#3299 + $puti(_Zg, 0, "Repeated AIs ("); //#3300 + $puti(_Zg, 14, $_.ai); //#3301 + $puti(_Zg, 14 + $_.ai.length, ") must have the same value"); //#3302 + $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3303'; //#3303 + $k[$j++] = _Zg; //#3303 + bwipp_raiseerror(); //#3303 + } //#3303 + } else { //#3306 + $put($_.aivals, $_.ai, $_.val); //#3306 + } //#3306 + } //#3306 + for (var _Zo = 0, _Zn = $_.vals.length - 1; _Zo <= _Zn; _Zo += 1) { //#3350 + $_.ai = $get($_.ais, _Zo); //#3312 + var _Zt = $get($_.gs1syntax, $_.ai); //#3313 + var _Zu = $get(_Zt, 'ex') !== undefined; //#3313 + $k[$j++] = _Zt; //#3328 + $k[$j++] = 'ex'; //#3328 + if (_Zu) { //#3327 + var _Zv = $k[--$j]; //#3314 + $forall($get($k[--$j], _Zv), function() { //#3325 + $_.patt = $k[--$j]; //#3315 + $k[$j++] = $_.patt; //#3316 + $k[$j++] = $_.ai; //#3316 + $_.aiexists(); //#3316 + if ($k[--$j]) { //#3324 + var _a4 = $s(($_.ai.length + $_.patt.length) + 36); //#3317 + $puti(_a4, 0, "AIs ("); //#3318 + $puti(_a4, 5, $_.ai); //#3319 + $puti(_a4, 5 + $_.ai.length, ") and ("); //#3320 + $puti(_a4, 12 + $_.ai.length, $_.patt); //#3321 + $puti(_a4, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3322 + $k[$j++] = 'bwipp.GS1exclusiveAIs#3323'; //#3323 + $k[$j++] = _a4; //#3323 + bwipp_raiseerror(); //#3323 + } //#3323 + }); //#3323 + } else { //#3327 + $j -= 2; //#3327 + } //#3327 + if ($_.lintreqs) { //#3349 + var _aE = $get($_.gs1syntax, $_.ai); //#3330 + var _aF = $get(_aE, 'req') !== undefined; //#3330 + $k[$j++] = _aE; //#3348 + $k[$j++] = 'req'; //#3348 + if (_aF) { //#3347 + var _aG = $k[--$j]; //#3331 + $forall($get($k[--$j], _aG), function() { //#3345 + var _aJ = $k[--$j]; //#3332 + $k[$j++] = false; //#3337 + $forall(_aJ, function() { //#3337 + var _aK = $k[--$j]; //#3333 + $k[$j++] = true; //#3335 + $forall(_aK, function() { //#3335 + $k[$j++] = $_.ai; //#3334 + $_.aiexists(); //#3334 + if ($nt($k[--$j])) { //#3334 + $j--; //#3334 + $k[$j++] = false; //#3334 + } //#3334 + }); //#3334 + if ($k[--$j]) { //#3336 + $j--; //#3336 + $k[$j++] = true; //#3336 + return true; //#3336 + } //#3336 + }); //#3336 + if ($nt($k[--$j])) { //#3344 + var _aQ = $s($_.ai.length + 47); //#3339 + $puti(_aQ, 0, "One of more requisite AIs for AI ("); //#3340 + $puti(_aQ, 34, $_.ai); //#3341 + $puti(_aQ, 34 + $_.ai.length, ") are missing"); //#3342 + $k[$j++] = 'bwipp.GS1missingAIs#3343'; //#3343 + $k[$j++] = _aQ; //#3343 + bwipp_raiseerror(); //#3343 + } //#3343 + }); //#3343 + } else { //#3347 + $j -= 2; //#3347 + } //#3347 + } //#3347 + } //#3347 + } //#3347 + $k[$j++] = $_.ais; //#3356 + $k[$j++] = $_.vals; //#3356 + $k[$j++] = $_.fncs; //#3356 + $_ = Object.getPrototypeOf($_); //#3356 + $_ = Object.getPrototypeOf($_); //#3358 +} //bwipp_gs1process function bwipp_renmatrix() { - if ($_.bwipjs_dontdraw) { //#3569 - return; //#3569 - } //#3569 - $_ = Object.create($_); //#3571 - $_.width = 1; //#3574 - $_.height = 1; //#3575 - $_.barcolor = "unset"; //#3576 - $_.backgroundcolor = "unset"; //#3577 - $_.colormap = "unset"; //#3578 - $_.dotty = false; //#3579 - $_.inkspread = 0; //#3580 - $_.inkspreadh = 0; //#3581 - $_.inkspreadv = 0; //#3582 - $_.includetext = false; //#3583 - $_.txt = $a([]); //#3584 - $_.textcolor = "unset"; //#3585 - $_.textxalign = "unset"; //#3586 - $_.textyalign = "unset"; //#3587 - $_.textfont = "OCR-B"; //#3588 - $_.textsize = 10; //#3589 - $_.textxoffset = 0; //#3590 - $_.textyoffset = 0; //#3591 - $_.textgaps = 0; //#3592 - $_.alttext = ""; //#3593 - $forall($k[--$j], function() { //#3595 - var _3 = $k[--$j]; //#3595 - $_[$k[--$j]] = _3; //#3595 - }); //#3595 - $k[$j++] = $_.opt; //#3596 - delete $_['opt']; //#3596 - $k[$j++] = $_; //#3596 - bwipp_processoptions(); //#3596 - $j--; //#3596 - if ($_.inkspread != 0) { //#3598 - $_.inkspreadh = $_.inkspread; //#3598 - } //#3598 - if ($_.inkspread != 0) { //#3599 - $_.inkspreadv = $_.inkspread; //#3599 - } //#3599 - if ($_.textsize <= 0) { //#3603 - $k[$j++] = 'bwipp.renmatrixBadTextsize#3602'; //#3602 - $k[$j++] = "The font size must be greater than zero"; //#3602 - bwipp_raiseerror(); //#3602 - } //#3602 + if ($_.bwipjs_dontdraw) { //#3633 + return; //#3633 + } //#3633 + $_ = Object.create($_); //#3635 + $_.width = 1; //#3638 + $_.height = 1; //#3639 + $_.bordercolor = "unset"; //#3640 + $_.barcolor = "unset"; //#3641 + $_.backgroundcolor = "unset"; //#3642 + $_.colormap = "unset"; //#3643 + $_.dotty = false; //#3644 + $_.inkspread = null; //#3645 + $_.inkspreadh = null; //#3646 + $_.inkspreadv = null; //#3647 + $_.includetext = false; //#3648 + $_.txt = $a([]); //#3649 + $_.textcolor = "unset"; //#3650 + $_.textxalign = "unset"; //#3651 + $_.textyalign = "unset"; //#3652 + $_.textfont = "OCR-B"; //#3653 + $_.textsize = 10; //#3654 + $_.textxoffset = 0; //#3655 + $_.textyoffset = 0; //#3656 + $_.textgaps = 0; //#3657 + $_.alttext = ""; //#3658 + $_.showborder = false; //#3659 + $_.borderleft = 0; //#3660 + $_.borderright = 0; //#3661 + $_.bordertop = 0; //#3662 + $_.borderbottom = 0; //#3663 + $_.borderwidth = 0.25; //#3664 + $forall($k[--$j], function() { //#3666 + var _3 = $k[--$j]; //#3666 + $_[$k[--$j]] = _3; //#3666 + }); //#3666 + $k[$j++] = $_.opt; //#3667 + delete $_['opt']; //#3667 + $k[$j++] = $_; //#3667 + bwipp_processoptions(); //#3667 + $j--; //#3667 + if ($eq($_.inkspread, null)) { //#3669 + $_.inkspread = 0; //#3669 + } //#3669 + if ($eq($_.inkspreadh, null)) { //#3670 + $_.inkspreadh = $_.inkspread; //#3670 + } //#3670 + if ($eq($_.inkspreadv, null)) { //#3671 + $_.inkspreadv = $_.inkspread; //#3671 + } //#3671 + if ($_.textsize <= 0) { //#3675 + $k[$j++] = 'bwipp.renmatrixBadTextsize#3674'; //#3674 + $k[$j++] = "The font size must be greater than zero"; //#3674 + bwipp_raiseerror(); //#3674 + } //#3674 $_.xyget = function() { - var _C = $k[--$j]; //#3605 - var _F = $get($_.pixs, $f($k[--$j] + (_C * $_.pixx))); //#3605 - $k[$j++] = _F; //#3605 - }; //#3605 + var _D = $k[--$j]; //#3677 + var _G = $get($_.pixs, $f($k[--$j] + (_D * $_.pixx))); //#3677 + $k[$j++] = _G; //#3677 + }; //#3677 $_.cget = function() { - var _H = $k[--$j]; //#3606 - var _K = $get($_.cache, $f($k[--$j] + (_H * $_.pixx))); //#3606 - var _L = $k[--$j]; //#3606 - $k[$j++] = $an(_L, _K); //#3606 - }; //#3606 + var _I = $k[--$j]; //#3678 + var _L = $get($_.cache, $f($k[--$j] + (_I * $_.pixx))); //#3678 + var _M = $k[--$j]; //#3678 + $k[$j++] = $an(_M, _L); //#3678 + }; //#3678 $_.cput = function() { - var _M = $k[--$j]; //#3608 - $k[$j++] = _M; //#3612 - if ((_M % 4) == 0) { //#3611 - var _N = $k[--$j]; //#3609 - var _O = $k[--$j]; //#3609 - var _P = $k[--$j]; //#3609 - var _Q = $_.pixx; //#3609 - var _R = $_.cache; //#3609 - $put(_R, $f(_P + (_O * _Q)), $or($get(_R, $f(_P + (_O * _Q))), _N)); //#3609 - } else { //#3611 - $j -= 3; //#3611 - } //#3611 - }; //#3611 + var _N = $k[--$j]; //#3680 + $k[$j++] = _N; //#3684 + if ((_N % 4) == 0) { //#3683 + var _O = $k[--$j]; //#3681 + var _P = $k[--$j]; //#3681 + var _Q = $k[--$j]; //#3681 + var _R = $_.pixx; //#3681 + var _S = $_.cache; //#3681 + $put(_S, $f(_Q + (_P * _R)), $or($get(_S, $f(_Q + (_P * _R))), _O)); //#3681 + } else { //#3683 + $j -= 3; //#3683 + } //#3683 + }; //#3683 $_.abcd = function() { - $k[$j++] = $s(4); //#3620 - $k[$j++] = 0; //#3620 - $k[$j++] = Infinity; //#3620 - var _U = $k[--$j]; //#3617 - var _V = $k[--$j]; //#3617 - var _W = $k[--$j]; //#3617 - var _X = $k[--$j]; //#3617 - var _a = $f($k[--$j] + (_X * $_.pixx)); //#3618 - $k[$j++] = _W; //#3619 - $k[$j++] = _V; //#3619 - $k[$j++] = _U; //#3619 - $k[$j++] = _a; //#3619 - $aload($geti($_.pixs, _a, 2)); //#3619 - var _d = $k[--$j]; //#3619 - var _e = $k[--$j]; //#3619 - var _i = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3620 - $k[$j++] = _e; //#3620 - $k[$j++] = _d; //#3620 - $aload(_i); //#3620 - var _j = $a(); //#3620 - for (var _k = 0, _l = _j.length; _k < _l; _k++) { //#3621 - var _n = $k[--$j]; //#3621 - var _o = $k[--$j]; //#3621 - $put(_o, _n, $f($get(_j, _k) + 48)); //#3621 - $k[$j++] = _o; //#3621 - $k[$j++] = $f(_n + 1); //#3621 - } //#3621 - $j--; //#3621 - }; //#3621 + $k[$j++] = $s(4); //#3692 + $k[$j++] = 0; //#3692 + $k[$j++] = Infinity; //#3688 + var _V = $k[--$j]; //#3689 + var _W = $k[--$j]; //#3689 + var _X = $k[--$j]; //#3689 + var _Y = $k[--$j]; //#3689 + var _b = $f($k[--$j] + (_Y * $_.pixx)); //#3690 + $k[$j++] = _X; //#3691 + $k[$j++] = _W; //#3691 + $k[$j++] = _V; //#3691 + $k[$j++] = _b; //#3691 + $aload($geti($_.pixs, _b, 2)); //#3691 + var _e = $k[--$j]; //#3691 + var _f = $k[--$j]; //#3691 + var _j = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3692 + $k[$j++] = _f; //#3692 + $k[$j++] = _e; //#3692 + $aload(_j); //#3692 + var _k = $a(); //#3692 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#3693 + var _o = $k[--$j]; //#3693 + var _p = $k[--$j]; //#3693 + $put(_p, _o, $f($get(_k, _l) + 48)); //#3693 + $k[$j++] = _p; //#3693 + $k[$j++] = $f(_o + 1); //#3693 + } //#3693 + $j--; //#3693 + }; //#3693 $_.right = function() { - if ($_.dir != 1) { //#3624 - $k[$j++] = $_.x; //#3624 - $k[$j++] = $_.y; //#3624 - $k[$j++] = $_.dir; //#3624 - $_.cput(); //#3624 - $k[$j++] = $a([$_.x, $_.y]); //#3624 - } //#3624 - $_.x = $_.x + 1; //#3624 - $_.dir = 1; //#3624 - }; //#3624 + if ($_.dir != 1) { //#3696 + $k[$j++] = $_.x; //#3696 + $k[$j++] = $_.y; //#3696 + $k[$j++] = $_.dir; //#3696 + $_.cput(); //#3696 + $k[$j++] = $a([$_.x, $_.y]); //#3696 + } //#3696 + $_.x = $_.x + 1; //#3696 + $_.dir = 1; //#3696 + }; //#3696 $_.down = function() { - if ($_.dir != 2) { //#3625 - $k[$j++] = $_.x; //#3625 - $k[$j++] = $_.y; //#3625 - $k[$j++] = $_.dir; //#3625 - $_.cput(); //#3625 - $k[$j++] = $a([$_.x, $_.y]); //#3625 - } //#3625 - $_.y = $_.y + 1; //#3625 - $_.dir = 2; //#3625 - }; //#3625 + if ($_.dir != 2) { //#3697 + $k[$j++] = $_.x; //#3697 + $k[$j++] = $_.y; //#3697 + $k[$j++] = $_.dir; //#3697 + $_.cput(); //#3697 + $k[$j++] = $a([$_.x, $_.y]); //#3697 + } //#3697 + $_.y = $_.y + 1; //#3697 + $_.dir = 2; //#3697 + }; //#3697 $_.left = function() { - if ($_.dir != 4) { //#3626 - $k[$j++] = $_.x; //#3626 - $k[$j++] = $_.y; //#3626 - $k[$j++] = $_.dir; //#3626 - $_.cput(); //#3626 - $k[$j++] = $a([$_.x, $_.y]); //#3626 - } //#3626 - $_.x = $_.x - 1; //#3626 - $_.dir = 4; //#3626 - }; //#3626 + if ($_.dir != 4) { //#3698 + $k[$j++] = $_.x; //#3698 + $k[$j++] = $_.y; //#3698 + $k[$j++] = $_.dir; //#3698 + $_.cput(); //#3698 + $k[$j++] = $a([$_.x, $_.y]); //#3698 + } //#3698 + $_.x = $_.x - 1; //#3698 + $_.dir = 4; //#3698 + }; //#3698 $_.up = function() { - if ($_.dir != 8) { //#3627 - $k[$j++] = $_.x; //#3627 - $k[$j++] = $_.y; //#3627 - $k[$j++] = $_.dir; //#3627 - $_.cput(); //#3627 - $k[$j++] = $a([$_.x, $_.y]); //#3627 - } //#3627 - $_.y = $_.y - 1; //#3627 - $_.dir = 8; //#3627 - }; //#3627 + if ($_.dir != 8) { //#3699 + $k[$j++] = $_.x; //#3699 + $k[$j++] = $_.y; //#3699 + $k[$j++] = $_.dir; //#3699 + $_.cput(); //#3699 + $k[$j++] = $a([$_.x, $_.y]); //#3699 + } //#3699 + $_.y = $_.y - 1; //#3699 + $_.dir = 8; //#3699 + }; //#3699 $_.trace = function() { - $_.y = $k[--$j]; //#3631 - $_.x = $k[--$j]; //#3631 - $k[$j++] = 'dir'; //#3633 - $k[$j++] = $f($_.x + 1); //#3633 - $k[$j++] = $f($_.y + 1); //#3633 - $_.xyget(); //#3633 - var _1Q = ($k[--$j] == 1) ? 8 : 4; //#3633 - $_[$k[--$j]] = _1Q; //#3633 - $_.sx = $_.x; //#3634 - $_.sy = $_.y; //#3634 - $_.sdir = $_.dir; //#3634 - $k[$j++] = Infinity; //#3638 - for (;;) { //#3652 - $k[$j++] = $_.x; //#3639 - $k[$j++] = $_.y; //#3639 - $_.abcd(); //#3639 - for (var _1X = 0, _1Y = 1; _1X < _1Y; _1X++) { //#3650 - var _1Z = $k[--$j]; //#3641 - $k[$j++] = _1Z; //#3641 - if ($eq(_1Z, "0001") || ($eq(_1Z, "0011") || $eq(_1Z, "1011"))) { //#3641 - $j--; //#3641 - $_.right(); //#3641 - break; //#3641 - } //#3641 - var _1a = $k[--$j]; //#3642 - $k[$j++] = _1a; //#3642 - if ($eq(_1a, "0010") || ($eq(_1a, "1010") || $eq(_1a, "1110"))) { //#3642 - $j--; //#3642 - $_.down(); //#3642 - break; //#3642 - } //#3642 - var _1b = $k[--$j]; //#3643 - $k[$j++] = _1b; //#3643 - if ($eq(_1b, "1000") || ($eq(_1b, "1100") || $eq(_1b, "1101"))) { //#3643 - $j--; //#3643 - $_.left(); //#3643 - break; //#3643 - } //#3643 - var _1c = $k[--$j]; //#3644 - $k[$j++] = _1c; //#3644 - if ($eq(_1c, "0100") || ($eq(_1c, "0101") || $eq(_1c, "0111"))) { //#3644 - $j--; //#3644 - $_.up(); //#3644 - break; //#3644 - } //#3644 - var _1d = $k[--$j]; //#3645 - $k[$j++] = _1d; //#3649 - if ($eq(_1d, "1001")) { //#3648 - if ($_.dir == 2) { //#3646 - $j--; //#3646 - $_.left(); //#3646 - break; //#3646 - } else { //#3646 - $j--; //#3646 - $_.right(); //#3646 - break; //#3646 - } //#3646 - } else { //#3648 - if ($_.dir == 1) { //#3648 - $j--; //#3648 - $_.down(); //#3648 - break; //#3648 - } else { //#3648 - $j--; //#3648 - $_.up(); //#3648 - break; //#3648 - } //#3648 - } //#3648 - } //#3648 - if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3651 - break; //#3651 - } //#3651 - } //#3651 - $astore($a($counttomark())); //#3653 - var _1o = $k[--$j]; //#3653 - var _1p = $k[--$j]; //#3653 - $k[$j++] = _1o; //#3653 - $k[$j++] = _1p; //#3653 - $j--; //#3653 - }; //#3653 + $_.y = $k[--$j]; //#3703 + $_.x = $k[--$j]; //#3703 + $k[$j++] = 'dir'; //#3705 + $k[$j++] = $f($_.x + 1); //#3705 + $k[$j++] = $f($_.y + 1); //#3705 + $_.xyget(); //#3705 + var _1R = ($k[--$j] == 1) ? 8 : 4; //#3705 + $_[$k[--$j]] = _1R; //#3705 + $_.sx = $_.x; //#3706 + $_.sy = $_.y; //#3706 + $_.sdir = $_.dir; //#3706 + $k[$j++] = Infinity; //#3710 + for (;;) { //#3724 + $k[$j++] = $_.x; //#3711 + $k[$j++] = $_.y; //#3711 + $_.abcd(); //#3711 + for (var _1Y = 0, _1Z = 1; _1Y < _1Z; _1Y++) { //#3722 + var _1a = $k[--$j]; //#3713 + $k[$j++] = _1a; //#3713 + if ($eq(_1a, "0001") || ($eq(_1a, "0011") || $eq(_1a, "1011"))) { //#3713 + $j--; //#3713 + $_.right(); //#3713 + break; //#3713 + } //#3713 + var _1b = $k[--$j]; //#3714 + $k[$j++] = _1b; //#3714 + if ($eq(_1b, "0010") || ($eq(_1b, "1010") || $eq(_1b, "1110"))) { //#3714 + $j--; //#3714 + $_.down(); //#3714 + break; //#3714 + } //#3714 + var _1c = $k[--$j]; //#3715 + $k[$j++] = _1c; //#3715 + if ($eq(_1c, "1000") || ($eq(_1c, "1100") || $eq(_1c, "1101"))) { //#3715 + $j--; //#3715 + $_.left(); //#3715 + break; //#3715 + } //#3715 + var _1d = $k[--$j]; //#3716 + $k[$j++] = _1d; //#3716 + if ($eq(_1d, "0100") || ($eq(_1d, "0101") || $eq(_1d, "0111"))) { //#3716 + $j--; //#3716 + $_.up(); //#3716 + break; //#3716 + } //#3716 + var _1e = $k[--$j]; //#3717 + $k[$j++] = _1e; //#3721 + if ($eq(_1e, "1001")) { //#3720 + if ($_.dir == 2) { //#3718 + $j--; //#3718 + $_.left(); //#3718 + break; //#3718 + } else { //#3718 + $j--; //#3718 + $_.right(); //#3718 + break; //#3718 + } //#3718 + } else { //#3720 + if ($_.dir == 1) { //#3720 + $j--; //#3720 + $_.down(); //#3720 + break; //#3720 + } else { //#3720 + $j--; //#3720 + $_.up(); //#3720 + break; //#3720 + } //#3720 + } //#3720 + } //#3720 + if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3723 + break; //#3723 + } //#3723 + } //#3723 + $astore($a($counttomark())); //#3725 + var _1p = $k[--$j]; //#3725 + var _1q = $k[--$j]; //#3725 + $k[$j++] = _1p; //#3725 + $k[$j++] = _1q; //#3725 + $j--; //#3725 + }; //#3725 $_.drawlayer = function() { - $_.pixsorig = $_.pixs; //#3679 - $_.pixs = $k[--$j]; //#3680 - $k[$j++] = Infinity; //#3690 - for (var _1t = 0, _1u = $_.pixx + 2; _1t < _1u; _1t++) { //#3684 - $k[$j++] = 0; //#3684 - } //#3684 - for (var _1y = 0, _1z = $_.pixx, _1x = $_.pixs.length - 1; _1z < 0 ? _1y >= _1x : _1y <= _1x; _1y += _1z) { //#3689 - $k[$j++] = 0; //#3687 - $aload($geti($_.pixs, _1y, $_.pixx)); //#3687 - $k[$j++] = 0; //#3688 - } //#3688 - for (var _24 = 0, _25 = $_.pixx + 2; _24 < _25; _24++) { //#3690 - $k[$j++] = 0; //#3690 - } //#3690 - $_.pixs = $a(); //#3690 - $_.pixx = $_.pixx + 2; //#3692 - $_.pixy = $_.pixy + 2; //#3693 - $k[$j++] = Infinity; //#3696 - for (var _2A = 0, _2B = $_.pixs.length; _2A < _2B; _2A++) { //#3696 - $k[$j++] = 0; //#3696 - } //#3696 - $_.cache = $a(); //#3696 - $k[$j++] = Infinity; //#3712 - for (var _2F = 0, _2E = $_.pixy - 2; _2F <= _2E; _2F += 1) { //#3716 - $_.j = _2F; //#3701 - for (var _2I = 0, _2H = $_.pixx - 2; _2I <= _2H; _2I += 1) { //#3715 - $_.i = _2I; //#3703 - $k[$j++] = 'k'; //#3704 - $k[$j++] = $_.i; //#3704 - $k[$j++] = $_.j; //#3704 - $_.abcd(); //#3704 - var _2L = $k[--$j]; //#3704 - $_[$k[--$j]] = _2L; //#3704 - if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3709 - $k[$j++] = 8; //#3706 - $k[$j++] = $_.i; //#3706 - $k[$j++] = $_.j; //#3706 - $_.cget(); //#3706 - if ($k[--$j] == 0) { //#3708 - $k[$j++] = $_.i; //#3707 - $k[$j++] = $_.j; //#3707 - $_.trace(); //#3707 - } //#3707 - } //#3707 - if ($eq($_.k, "1110")) { //#3714 - $k[$j++] = 4; //#3711 - $k[$j++] = $_.i; //#3711 - $k[$j++] = $_.j; //#3711 - $_.cget(); //#3711 - if ($k[--$j] == 0) { //#3713 - $k[$j++] = $_.i; //#3712 - $k[$j++] = $_.j; //#3712 - $_.trace(); //#3712 - } //#3712 - } //#3712 - } //#3712 - } //#3712 - $_.paths = $a(); //#3712 - $_.pixx = $_.pixx - 2; //#3720 - $_.pixy = $_.pixy - 2; //#3721 - $$.newpath(); //#3724 - var _2d = $_.paths; //#3725 - for (var _2e = 0, _2f = _2d.length; _2e < _2f; _2e++) { //#3743 - $_.p = $get(_2d, _2e); //#3726 - $_.len = $_.p.length; //#3727 - $aload($get($_.p, $_.len - 1)); //#3728 - $aload($get($_.p, 0)); //#3729 - for (var _2p = 0, _2o = $_.len - 1; _2p <= _2o; _2p += 1) { //#3740 - $_.i = _2p; //#3731 - $aload($get($_.p, ($_.i + 1) % $_.len)); //#3732 - var _2u = $k[--$j]; //#3732 - var _2v = $k[--$j]; //#3732 - var _2w = $k[--$j]; //#3732 - var _2x = $k[--$j]; //#3732 - var _2y = $k[--$j]; //#3732 - var _2z = $k[--$j]; //#3732 - $k[$j++] = _2x; //#3734 - $k[$j++] = _2w; //#3734 - $k[$j++] = _2v; //#3734 - $k[$j++] = _2u; //#3734 - $k[$j++] = _2z; //#3734 - $k[$j++] = _2x; //#3734 - $k[$j++] = $_.inkspreadh; //#3734 - if ($lt(_2u, _2y)) { //#3734 - var _31 = $k[--$j]; //#3734 - var _32 = $k[--$j]; //#3734 - $k[$j++] = $f(_32 + _31); //#3734 - } else { //#3734 - var _33 = $k[--$j]; //#3734 - var _34 = $k[--$j]; //#3734 - $k[$j++] = $f(_34 - _33); //#3734 - } //#3734 - var _35 = $k[--$j]; //#3735 - var _36 = $k[--$j]; //#3735 - var _37 = $k[--$j]; //#3735 - var _38 = $k[--$j]; //#3735 - var _39 = $k[--$j]; //#3736 - $k[$j++] = _39; //#3737 - $k[$j++] = _35; //#3737 - $k[$j++] = _38; //#3737 - $k[$j++] = _37; //#3737 - $k[$j++] = _39; //#3737 - $k[$j++] = $_.inkspreadv; //#3737 - if ($gt(_38, _36)) { //#3737 - var _3B = $k[--$j]; //#3737 - var _3C = $k[--$j]; //#3737 - $k[$j++] = $f(_3C + _3B); //#3737 - } else { //#3737 - var _3D = $k[--$j]; //#3737 - var _3E = $k[--$j]; //#3737 - $k[$j++] = $f(_3E - _3D); //#3737 - } //#3737 - var _3F = $k[--$j]; //#3738 - var _3G = $k[--$j]; //#3738 - var _3H = $k[--$j]; //#3738 - var _3I = $k[--$j]; //#3738 - $k[$j++] = _3H; //#3739 - $k[$j++] = _3G; //#3739 - $k[$j++] = _3I; //#3739 - $k[$j++] = $f($_.pixy - _3F); //#3739 - if ($_.i == 0) { //#3739 - var _3L = $k[--$j]; //#3739 - $$.moveto($k[--$j], _3L); //#3739 - } else { //#3739 - var _3N = $k[--$j]; //#3739 - $$.lineto($k[--$j], _3N); //#3739 - } //#3739 - } //#3739 - $$.closepath(); //#3741 - $j -= 4; //#3742 - } //#3742 - $$.fill(); //#3744 - $_.pixs = $_.pixsorig; //#3746 - }; //#3746 + $_.pixsorig = $_.pixs; //#3751 + $_.pixs = $k[--$j]; //#3752 + $k[$j++] = Infinity; //#3755 + for (var _1u = 0, _1v = $_.pixx + 2; _1u < _1v; _1u++) { //#3756 + $k[$j++] = 0; //#3756 + } //#3756 + for (var _1z = 0, _20 = $_.pixx, _1y = $_.pixs.length - 1; _20 < 0 ? _1z >= _1y : _1z <= _1y; _1z += _20) { //#3761 + $k[$j++] = 0; //#3759 + $aload($geti($_.pixs, _1z, $_.pixx)); //#3759 + $k[$j++] = 0; //#3760 + } //#3760 + for (var _25 = 0, _26 = $_.pixx + 2; _25 < _26; _25++) { //#3762 + $k[$j++] = 0; //#3762 + } //#3762 + $_.pixs = $a(); //#3762 + $_.pixx = $_.pixx + 2; //#3764 + $_.pixy = $_.pixy + 2; //#3765 + $k[$j++] = Infinity; //#3768 + for (var _2B = 0, _2C = $_.pixs.length; _2B < _2C; _2B++) { //#3768 + $k[$j++] = 0; //#3768 + } //#3768 + $_.cache = $a(); //#3768 + $k[$j++] = Infinity; //#3771 + for (var _2G = 0, _2F = $_.pixy - 2; _2G <= _2F; _2G += 1) { //#3788 + $_.j = _2G; //#3773 + for (var _2J = 0, _2I = $_.pixx - 2; _2J <= _2I; _2J += 1) { //#3787 + $_.i = _2J; //#3775 + $k[$j++] = 'k'; //#3776 + $k[$j++] = $_.i; //#3776 + $k[$j++] = $_.j; //#3776 + $_.abcd(); //#3776 + var _2M = $k[--$j]; //#3776 + $_[$k[--$j]] = _2M; //#3776 + if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3781 + $k[$j++] = 8; //#3778 + $k[$j++] = $_.i; //#3778 + $k[$j++] = $_.j; //#3778 + $_.cget(); //#3778 + if ($k[--$j] == 0) { //#3780 + $k[$j++] = $_.i; //#3779 + $k[$j++] = $_.j; //#3779 + $_.trace(); //#3779 + } //#3779 + } //#3779 + if ($eq($_.k, "1110")) { //#3786 + $k[$j++] = 4; //#3783 + $k[$j++] = $_.i; //#3783 + $k[$j++] = $_.j; //#3783 + $_.cget(); //#3783 + if ($k[--$j] == 0) { //#3785 + $k[$j++] = $_.i; //#3784 + $k[$j++] = $_.j; //#3784 + $_.trace(); //#3784 + } //#3784 + } //#3784 + } //#3784 + } //#3784 + $_.paths = $a(); //#3784 + $_.pixx = $_.pixx - 2; //#3792 + $_.pixy = $_.pixy - 2; //#3793 + $$.newpath(); //#3796 + var _2e = $_.paths; //#3797 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#3815 + $_.p = $get(_2e, _2f); //#3798 + $_.len = $_.p.length; //#3799 + $aload($get($_.p, $_.len - 1)); //#3800 + $aload($get($_.p, 0)); //#3801 + for (var _2q = 0, _2p = $_.len - 1; _2q <= _2p; _2q += 1) { //#3812 + $_.i = _2q; //#3803 + $aload($get($_.p, ($_.i + 1) % $_.len)); //#3804 + var _2v = $k[--$j]; //#3804 + var _2w = $k[--$j]; //#3804 + var _2x = $k[--$j]; //#3804 + var _2y = $k[--$j]; //#3804 + var _2z = $k[--$j]; //#3804 + var _30 = $k[--$j]; //#3804 + $k[$j++] = _2y; //#3806 + $k[$j++] = _2x; //#3806 + $k[$j++] = _2w; //#3806 + $k[$j++] = _2v; //#3806 + $k[$j++] = _30; //#3806 + $k[$j++] = _2y; //#3806 + $k[$j++] = $_.inkspreadh; //#3806 + if ($lt(_2v, _2z)) { //#3806 + var _32 = $k[--$j]; //#3806 + var _33 = $k[--$j]; //#3806 + $k[$j++] = $f(_33 + _32); //#3806 + } else { //#3806 + var _34 = $k[--$j]; //#3806 + var _35 = $k[--$j]; //#3806 + $k[$j++] = $f(_35 - _34); //#3806 + } //#3806 + var _36 = $k[--$j]; //#3807 + var _37 = $k[--$j]; //#3807 + var _38 = $k[--$j]; //#3807 + var _39 = $k[--$j]; //#3807 + var _3A = $k[--$j]; //#3808 + $k[$j++] = _3A; //#3809 + $k[$j++] = _36; //#3809 + $k[$j++] = _39; //#3809 + $k[$j++] = _38; //#3809 + $k[$j++] = _3A; //#3809 + $k[$j++] = $_.inkspreadv; //#3809 + if ($gt(_39, _37)) { //#3809 + var _3C = $k[--$j]; //#3809 + var _3D = $k[--$j]; //#3809 + $k[$j++] = $f(_3D + _3C); //#3809 + } else { //#3809 + var _3E = $k[--$j]; //#3809 + var _3F = $k[--$j]; //#3809 + $k[$j++] = $f(_3F - _3E); //#3809 + } //#3809 + var _3G = $k[--$j]; //#3810 + var _3H = $k[--$j]; //#3810 + var _3I = $k[--$j]; //#3810 + var _3J = $k[--$j]; //#3810 + $k[$j++] = _3I; //#3811 + $k[$j++] = _3H; //#3811 + $k[$j++] = _3J; //#3811 + $k[$j++] = $f($_.pixy - _3G); //#3811 + if ($_.i == 0) { //#3811 + var _3M = $k[--$j]; //#3811 + $$.moveto($k[--$j], _3M); //#3811 + } else { //#3811 + var _3O = $k[--$j]; //#3811 + $$.lineto($k[--$j], _3O); //#3811 + } //#3811 + } //#3811 + $$.closepath(); //#3813 + $j -= 4; //#3814 + } //#3814 + $$.fill(); //#3816 + $_.pixs = $_.pixsorig; //#3818 + }; //#3818 $_.drawlayerdots = function() { - $_.pixsorig = $_.pixs; //#3752 - $_.pixs = $k[--$j]; //#3753 - $$.newpath(); //#3755 - for (var _3U = 0, _3T = $_.pixs.length - 1; _3U <= _3T; _3U += 1) { //#3763 - $_.x = _3U % $_.pixx; //#3757 - $_.y = ~~(_3U / $_.pixx); //#3758 - $k[$j++] = $_.x; //#3759 - $k[$j++] = $_.y; //#3759 - $_.xyget(); //#3759 - if ($k[--$j] == 1) { //#3762 - $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3760 - $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3761 - } //#3761 - } //#3761 - $$.fill(); //#3764 - $_.pixs = $_.pixsorig; //#3766 - }; //#3766 - $$.save(); //#3770 - $_.inkspread = $_.inkspread / 2; //#3773 - $_.inkspreadh = $_.inkspreadh / 2; //#3774 - $_.inkspreadv = $_.inkspreadv / 2; //#3775 - var _3l = $$.currpos(); //#3776 - $$.translate(_3l.x, _3l.y); //#3776 - $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3777 - $$.moveto(0, 0); //#3778 - $$.lineto($_.pixx, 0); //#3778 - $$.lineto($_.pixx, $_.pixy); //#3778 - $$.lineto(0, $_.pixy); //#3778 - $$.closepath(); //#3778 - if ($eq($_.colormap, "unset")) { //#3783 - var _3w = new Map([ + $_.pixsorig = $_.pixs; //#3824 + $_.pixs = $k[--$j]; //#3825 + $$.newpath(); //#3827 + for (var _3V = 0, _3U = $_.pixs.length - 1; _3V <= _3U; _3V += 1) { //#3835 + $_.x = _3V % $_.pixx; //#3829 + $_.y = ~~(_3V / $_.pixx); //#3830 + $k[$j++] = $_.x; //#3831 + $k[$j++] = $_.y; //#3831 + $_.xyget(); //#3831 + if ($k[--$j] == 1) { //#3834 + $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3832 + $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3833 + } //#3833 + } //#3833 + $$.fill(); //#3836 + $_.pixs = $_.pixsorig; //#3838 + }; //#3838 + $$.save(); //#3842 + var _3j = $$.currpos(); //#3844 + $$.translate(_3j.x, _3j.y); //#3844 + $_.inkspread = $_.inkspread / 2; //#3846 + $_.inkspreadh = $_.inkspreadh / 2; //#3847 + $_.inkspreadv = $_.inkspreadv / 2; //#3848 + $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3851 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3854 + $_.tr = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3855 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3856 + $_.br = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3857 + if ($ne($_.backgroundcolor, "unset")) { //#3863 + $$.save(); //#3859 + $$.newpath(); //#3860 + $aload($_.bl); //#3860 + var _4H = $k[--$j]; //#3860 + $$.moveto($k[--$j], _4H); //#3860 + var _4M = $a([$_.br, $_.tr, $_.tl]); //#3860 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#3860 + $aload($get(_4M, _4N)); //#3860 + var _4Q = $k[--$j]; //#3860 + $$.lineto($k[--$j], _4Q); //#3860 + } //#3860 + $$.closepath(); //#3860 + $$.setcolor($_.backgroundcolor); //#3861 + $$.fill(); //#3861 + $$.restore(); //#3862 + } //#3862 + if ($_.showborder) { //#3870 + $$.save(); //#3865 + $$.newpath(); //#3866 + $aload($_.bl); //#3866 + var _4V = $k[--$j]; //#3866 + $$.moveto($k[--$j], _4V); //#3866 + var _4a = $a([$_.br, $_.tr, $_.tl]); //#3866 + for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3866 + $aload($get(_4a, _4b)); //#3866 + var _4e = $k[--$j]; //#3866 + $$.lineto($k[--$j], _4e); //#3866 + } //#3866 + $$.closepath(); //#3866 + if ($ne($_.bordercolor, "unset")) { //#3867 + $$.setcolor($_.bordercolor); //#3867 + } //#3867 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#3868 + $$.stroke(); //#3868 + $$.restore(); //#3869 + } //#3869 + if ($eq($_.colormap, "unset")) { //#3875 + var _4m = new Map([ [1, $_.barcolor] - ]); //#3782 - $_.colormap = _3w; //#3782 - } //#3782 - var _3x = $_.colormap; //#3785 - for (var _42 = _3x.size, _41 = _3x.keys(), _40 = 0; _40 < _42; _40++) { //#3791 - var _3y = _41.next().value; //#3791 - var _3z = _3x.get(_3y); //#3791 - $k[$j++] = _3y; //#3786 - $k[$j++] = _3z; //#3786 - if ($ne(_3z, "unset")) { //#3786 - $$.setcolor($k[--$j]); //#3786 - } else { //#3786 - $j--; //#3786 - } //#3786 - $_.key = $k[--$j]; //#3787 - $k[$j++] = Infinity; //#3789 - var _45 = $_.pixs; //#3789 - for (var _46 = 0, _47 = _45.length; _46 < _47; _46++) { //#3789 - var _4A = $eq($get(_45, _46), $_.key) ? 1 : 0; //#3789 - $k[$j++] = _4A; //#3789 - } //#3789 - var _4B = $a(); //#3789 - $k[$j++] = _4B; //#3790 - if ($_.dotty) { //#3790 - $_.drawlayerdots(); //#3790 - } else { //#3790 - $_.drawlayer(); //#3790 - } //#3790 - } //#3790 - if ($ne($_.textcolor, "unset")) { //#3794 - $$.setcolor($_.textcolor); //#3794 - } //#3794 - if ($_.includetext) { //#3855 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3853 - $_.s = 0; //#3797 - $_.fn = ""; //#3797 - var _4J = $_.txt; //#3798 - for (var _4K = 0, _4L = _4J.length; _4K < _4L; _4K++) { //#3811 - $forall($get(_4J, _4K)); //#3799 - var _4N = $k[--$j]; //#3800 - var _4O = $k[--$j]; //#3800 - $k[$j++] = _4O; //#3809 - $k[$j++] = _4N; //#3809 - if ((_4N != $_.s) || $ne(_4O, $_.fn)) { //#3808 - var _4R = $k[--$j]; //#3801 - $k[$j++] = _4R; //#3804 - if (_4R <= 0) { //#3804 - $j -= 5; //#3802 - $k[$j++] = 'bwipp.renmatrixFontTooSmall#3803'; //#3803 - $k[$j++] = "The font size is too small"; //#3803 - bwipp_raiseerror(); //#3803 - } //#3803 - var _4S = $k[--$j]; //#3805 - var _4T = $k[--$j]; //#3805 - $_.s = _4S; //#3805 - $_.fn = _4T; //#3805 - $$.selectfont(_4T, _4S); //#3806 - } else { //#3808 - $j -= 2; //#3808 - } //#3808 - var _4U = $k[--$j]; //#3810 - $$.moveto($k[--$j], _4U); //#3810 - $$.show($k[--$j], 0, 0); //#3810 - } //#3810 - } else { //#3853 - $$.selectfont($_.textfont, $_.textsize); //#3813 - if ($eq($_.alttext, "")) { //#3819 - $k[$j++] = Infinity; //#3815 - var _4a = $_.txt; //#3815 - for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3815 - $forall($get($get(_4a, _4b), 0)); //#3815 - } //#3815 - $_.txt = $a(); //#3815 - $_.tstr = $s($_.txt.length); //#3816 - for (var _4k = 0, _4j = $_.txt.length - 1; _4k <= _4j; _4k += 1) { //#3817 - $put($_.tstr, _4k, $get($_.txt, _4k)); //#3817 - } //#3817 - } else { //#3819 - $_.tstr = $_.alttext; //#3819 - } //#3819 - if ($_.tstr.length == 0) { //#3829 - $k[$j++] = 0; //#3824 - } else { //#3829 - $$.save(); //#3826 - $$.newpath(); //#3827 - $$.moveto(0, 0); //#3827 - $$.charpath("0", false); //#3827 - var _4q = $$.pathbbox(); //#3827 - $$.restore(); //#3829 - $k[$j++] = _4q.ury; //#3829 - } //#3829 - $_.textascent = $k[--$j]; //#3838 - var _4t = $$.stringwidth($_.tstr); //#3839 - $_.textwidth = $f(_4t.w + (($_.tstr.length - 1) * $_.textgaps)); //#3839 - $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3841 - if ($eq($_.textxalign, "left")) { //#3842 - $_.textxpos = $_.textxoffset; //#3842 - } //#3842 - if ($eq($_.textxalign, "right")) { //#3843 - $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3843 - } //#3843 - if ($eq($_.textxalign, "offleft")) { //#3844 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3844 - } //#3844 - if ($eq($_.textxalign, "offright")) { //#3845 - $_.textxpos = $_.pixx + $_.textxoffset; //#3845 - } //#3845 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3849 - $_.textxpos = 0; //#3847 - $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3848 - } //#3848 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3850 - if ($eq($_.textyalign, "above")) { //#3851 - $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3851 - } //#3851 - if ($eq($_.textyalign, "center")) { //#3852 - $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3852 - } //#3852 - $$.moveto($_.textxpos, $_.textypos); //#3853 - $$.show($_.tstr, $_.textgaps, 0); //#3853 - } //#3853 - } //#3853 - $$.restore(); //#3857 - $_ = Object.getPrototypeOf($_); //#3859 -} - + ]); //#3874 + $_.colormap = _4m; //#3874 + } //#3874 + var _4n = $_.colormap; //#3877 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#3883 + var _4o = _4r.next().value; //#3883 + var _4p = _4n.get(_4o); //#3883 + $k[$j++] = _4o; //#3878 + $k[$j++] = _4p; //#3878 + if ($ne(_4p, "unset")) { //#3878 + $$.setcolor($k[--$j]); //#3878 + } else { //#3878 + $j--; //#3878 + } //#3878 + $_.key = $k[--$j]; //#3879 + $k[$j++] = Infinity; //#3880 + var _4v = $_.pixs; //#3881 + for (var _4w = 0, _4x = _4v.length; _4w < _4x; _4w++) { //#3881 + var _50 = $eq($get(_4v, _4w), $_.key) ? 1 : 0; //#3881 + $k[$j++] = _50; //#3881 + } //#3881 + var _51 = $a(); //#3881 + $k[$j++] = _51; //#3882 + if ($_.dotty) { //#3882 + $_.drawlayerdots(); //#3882 + } else { //#3882 + $_.drawlayer(); //#3882 + } //#3882 + } //#3882 + if ($ne($_.textcolor, "unset")) { //#3886 + $$.setcolor($_.textcolor); //#3886 + } //#3886 + if ($_.includetext) { //#3947 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3945 + $_.s = 0; //#3889 + $_.fn = ""; //#3889 + var _59 = $_.txt; //#3890 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#3903 + $forall($get(_59, _5A)); //#3891 + var _5D = $k[--$j]; //#3892 + var _5E = $k[--$j]; //#3892 + $k[$j++] = _5E; //#3901 + $k[$j++] = _5D; //#3901 + if ((_5D != $_.s) || $ne(_5E, $_.fn)) { //#3900 + var _5H = $k[--$j]; //#3893 + $k[$j++] = _5H; //#3896 + if (_5H <= 0) { //#3896 + $j -= 5; //#3894 + $k[$j++] = 'bwipp.renmatrixFontTooSmall#3895'; //#3895 + $k[$j++] = "The font size is too small"; //#3895 + bwipp_raiseerror(); //#3895 + } //#3895 + var _5I = $k[--$j]; //#3897 + var _5J = $k[--$j]; //#3897 + $_.s = _5I; //#3897 + $_.fn = _5J; //#3897 + $$.selectfont(_5J, _5I); //#3898 + } else { //#3900 + $j -= 2; //#3900 + } //#3900 + var _5K = $k[--$j]; //#3902 + $$.moveto($k[--$j], _5K); //#3902 + $$.show($k[--$j], 0, 0); //#3902 + } //#3902 + } else { //#3945 + $$.selectfont($_.textfont, $_.textsize); //#3905 + if ($eq($_.alttext, "")) { //#3911 + $k[$j++] = Infinity; //#3907 + var _5Q = $_.txt; //#3907 + for (var _5R = 0, _5S = _5Q.length; _5R < _5S; _5R++) { //#3907 + $forall($get($get(_5Q, _5R), 0)); //#3907 + } //#3907 + $_.txt = $a(); //#3907 + $_.tstr = $s($_.txt.length); //#3908 + for (var _5a = 0, _5Z = $_.txt.length - 1; _5a <= _5Z; _5a += 1) { //#3909 + $put($_.tstr, _5a, $get($_.txt, _5a)); //#3909 + } //#3909 + } else { //#3911 + $_.tstr = $_.alttext; //#3911 + } //#3911 + if ($_.tstr.length == 0) { //#3921 + $k[$j++] = 0; //#3916 + } else { //#3921 + $$.save(); //#3918 + $$.newpath(); //#3919 + $$.moveto(0, 0); //#3919 + $$.charpath("0", false); //#3919 + var _5g = $$.pathbbox(); //#3919 + $$.restore(); //#3921 + $k[$j++] = _5g.ury; //#3921 + } //#3921 + $_.textascent = $k[--$j]; //#3930 + var _5j = $$.stringwidth($_.tstr); //#3931 + $_.textwidth = $f(_5j.w + (($_.tstr.length - 1) * $_.textgaps)); //#3931 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3933 + if ($eq($_.textxalign, "left")) { //#3934 + $_.textxpos = $_.textxoffset; //#3934 + } //#3934 + if ($eq($_.textxalign, "right")) { //#3935 + $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3935 + } //#3935 + if ($eq($_.textxalign, "offleft")) { //#3936 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3936 + } //#3936 + if ($eq($_.textxalign, "offright")) { //#3937 + $_.textxpos = $_.pixx + $_.textxoffset; //#3937 + } //#3937 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3941 + $_.textxpos = 0; //#3939 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3940 + } //#3940 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3942 + if ($eq($_.textyalign, "above")) { //#3943 + $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3943 + } //#3943 + if ($eq($_.textyalign, "center")) { //#3944 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3944 + } //#3944 + $$.moveto($_.textxpos, $_.textypos); //#3945 + $$.show($_.tstr, $_.textgaps, 0); //#3945 + } //#3945 + } //#3945 + $$.restore(); //#3949 + $_ = Object.getPrototypeOf($_); //#3951 +} //bwipp_renmatrix function bwipp_ean5() { - $_ = Object.create($_); //#3981 - $_.dontdraw = false; //#3984 - $_.includetext = false; //#3985 - $_.textfont = "OCR-B"; //#3986 - $_.textsize = 12; //#3987 - $_.textxoffset = 0; //#3988 - $_.textyoffset = null; //#3989 - $_.height = 0.7; //#3990 - $k[$j++] = $_; //#3992 - bwipp_processoptions(); //#3992 - $_.options = $k[--$j]; //#3992 - $_.barcode = $k[--$j]; //#3993 - if ($eq($_.textyoffset, null)) { //#3997 - $_.textyoffset = $f(($_.height * 72) + 1); //#3996 - } //#3996 - bwipp_loadctx(bwipp_ean5) //#3999 - if ($_.barcode.length != 5) { //#4004 - $k[$j++] = 'bwipp.ean5badLength#4003'; //#4003 - $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4003 - bwipp_raiseerror(); //#4003 - } //#4003 - $forall($_.barcode, function() { //#4009 - var _6 = $k[--$j]; //#4006 - if ((_6 < 48) || (_6 > 57)) { //#4008 - $k[$j++] = 'bwipp.ean5badCharacter#4007'; //#4007 - $k[$j++] = "EAN-5 add-on must contain only digits"; //#4007 - bwipp_raiseerror(); //#4007 - } //#4007 - }); //#4007 - if (!bwipp_ean5.__4027__) { //#4027 - $_ = Object.create($_); //#4027 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4017 - $_.barchars = "0123456789"; //#4020 - $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4026 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4026 - bwipp_ean5.__4027__ = 1; //#4026 - $_ = Object.getPrototypeOf($_); //#4026 - } //#4026 - $_.checksum = 0; //#4029 - for (var _A = 0; _A <= 4; _A += 1) { //#4038 - $_.i = _A; //#4031 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4032 - if (($_.i % 2) == 0) { //#4036 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4034 - } else { //#4036 - $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4036 - } //#4036 - } //#4036 - $_.checksum = $_.checksum % 10; //#4039 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4040 - $_.sbs = $s(31); //#4042 - $_.txt = $a(5); //#4043 - for (var _P = 0; _P <= 4; _P += 1) { //#4073 - $_.i = _P; //#4046 - if ($_.i == 0) { //#4052 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4050 - } else { //#4052 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4052 - } //#4052 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4056 - $j--; //#4057 - $_.indx = $k[--$j].length; //#4058 - $j -= 2; //#4059 - $_.enc = $get($_.encs, $_.indx); //#4060 - if ($get($_.mirrormap, $_.i) == 49) { //#4070 - $_.enclen = $_.enc.length; //#4062 - $_.revenc = $s($_.enclen); //#4063 - for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4068 - $_.j = _o; //#4065 - $_.char = $get($_.enc, $_.j); //#4066 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4067 - } //#4067 - $_.enc = $_.revenc; //#4069 - } //#4069 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4071 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4072 - } //#4072 - $k[$j++] = Infinity; //#4087 - $k[$j++] = Infinity; //#4078 - var _1B = $_.sbs; //#4078 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4078 - $k[$j++] = $get(_1B, _1C) - 48; //#4078 - } //#4078 - var _1F = $a(); //#4078 - $k[$j++] = Infinity; //#4079 - for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4079 - $k[$j++] = $_.height; //#4079 - } //#4079 - var _1J = $a(); //#4079 - $k[$j++] = Infinity; //#4080 - for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4080 - $k[$j++] = 0; //#4080 - } //#4080 - var _1M = $a(); //#4080 - $k[$j++] = 'ren'; //#4083 - $k[$j++] = bwipp_renlinear; //#4083 - $k[$j++] = 'sbs'; //#4083 - $k[$j++] = _1F; //#4083 - $k[$j++] = 'bhs'; //#4083 - $k[$j++] = _1J; //#4083 - $k[$j++] = 'bbs'; //#4083 - $k[$j++] = _1M; //#4083 - if ($_.includetext) { //#4083 - $k[$j++] = 'txt'; //#4082 - $k[$j++] = $_.txt; //#4082 - } //#4082 - $k[$j++] = 'opt'; //#4087 - $k[$j++] = $_.options; //#4087 - $k[$j++] = 'guardrightpos'; //#4087 - $k[$j++] = 10; //#4087 - $k[$j++] = 'guardrightypos'; //#4087 - $k[$j++] = $f($_.textyoffset + 4); //#4087 - $k[$j++] = 'bordertop'; //#4087 - $k[$j++] = 10; //#4087 - var _1R = $d(); //#4087 - $k[$j++] = _1R; //#4090 - if (!$_.dontdraw) { //#4090 - bwipp_renlinear(); //#4090 - } //#4090 - $_ = Object.getPrototypeOf($_); //#4092 - $_ = Object.getPrototypeOf($_); //#4094 -} - + $_ = Object.create($_); //#4099 + $_.dontdraw = false; //#4102 + $_.includetext = false; //#4103 + $_.textfont = "OCR-B"; //#4104 + $_.textsize = 12; //#4105 + $_.textxoffset = 0; //#4106 + $_.textyoffset = null; //#4107 + $_.height = 0.7; //#4108 + $k[$j++] = $_; //#4110 + bwipp_processoptions(); //#4110 + $_.options = $k[--$j]; //#4110 + $_.barcode = $k[--$j]; //#4111 + if ($eq($_.textyoffset, null)) { //#4115 + $_.textyoffset = $f(($_.height * 72) + 1); //#4114 + } //#4114 + bwipp_loadctx(bwipp_ean5) //#4117 + if ($_.barcode.length != 5) { //#4122 + $k[$j++] = 'bwipp.ean5badLength#4121'; //#4121 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4121 + bwipp_raiseerror(); //#4121 + } //#4121 + $forall($_.barcode, function() { //#4127 + var _6 = $k[--$j]; //#4124 + if ((_6 < 48) || (_6 > 57)) { //#4126 + $k[$j++] = 'bwipp.ean5badCharacter#4125'; //#4125 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#4125 + bwipp_raiseerror(); //#4125 + } //#4125 + }); //#4125 + if (!bwipp_ean5.__4145__) { //#4145 + $_ = Object.create($_); //#4145 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4135 + $_.barchars = "0123456789"; //#4138 + $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4144 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4144 + bwipp_ean5.__4145__ = 1; //#4144 + $_ = Object.getPrototypeOf($_); //#4144 + } //#4144 + $_.checksum = 0; //#4147 + for (var _A = 0; _A <= 4; _A += 1) { //#4156 + $_.i = _A; //#4149 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4150 + if (($_.i % 2) == 0) { //#4154 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4152 + } else { //#4154 + $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4154 + } //#4154 + } //#4154 + $_.checksum = $_.checksum % 10; //#4157 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4158 + $_.sbs = $s(31); //#4160 + $_.txt = $a(5); //#4161 + for (var _P = 0; _P <= 4; _P += 1) { //#4191 + $_.i = _P; //#4164 + if ($_.i == 0) { //#4170 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4168 + } else { //#4170 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4170 + } //#4170 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4174 + $j--; //#4175 + $_.indx = $k[--$j].length; //#4176 + $j -= 2; //#4177 + $_.enc = $get($_.encs, $_.indx); //#4178 + if ($get($_.mirrormap, $_.i) == 49) { //#4188 + $_.enclen = $_.enc.length; //#4180 + $_.revenc = $s($_.enclen); //#4181 + for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4186 + $_.j = _o; //#4183 + $_.char = $get($_.enc, $_.j); //#4184 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4185 + } //#4185 + $_.enc = $_.revenc; //#4187 + } //#4187 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4189 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4190 + } //#4190 + $k[$j++] = Infinity; //#4194 + $k[$j++] = Infinity; //#4196 + var _1B = $_.sbs; //#4196 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4196 + $k[$j++] = $get(_1B, _1C) - 48; //#4196 + } //#4196 + var _1F = $a(); //#4196 + $k[$j++] = Infinity; //#4197 + for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4197 + $k[$j++] = $_.height; //#4197 + } //#4197 + var _1J = $a(); //#4197 + $k[$j++] = Infinity; //#4198 + for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4198 + $k[$j++] = 0; //#4198 + } //#4198 + var _1M = $a(); //#4198 + $k[$j++] = 'ren'; //#4201 + $k[$j++] = bwipp_renlinear; //#4201 + $k[$j++] = 'sbs'; //#4201 + $k[$j++] = _1F; //#4201 + $k[$j++] = 'bhs'; //#4201 + $k[$j++] = _1J; //#4201 + $k[$j++] = 'bbs'; //#4201 + $k[$j++] = _1M; //#4201 + if ($_.includetext) { //#4201 + $k[$j++] = 'txt'; //#4200 + $k[$j++] = $_.txt; //#4200 + } //#4200 + $k[$j++] = 'opt'; //#4207 + $k[$j++] = $_.options; //#4207 + $k[$j++] = 'guardrightpos'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'guardrightypos'; //#4207 + $k[$j++] = $f($_.textyoffset + 4); //#4207 + $k[$j++] = 'borderleft'; //#4207 + $k[$j++] = 12; //#4207 + $k[$j++] = 'borderright'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'bordertop'; //#4207 + $k[$j++] = 10; //#4207 + var _1R = $d(); //#4207 + $k[$j++] = _1R; //#4210 + if (!$_.dontdraw) { //#4210 + bwipp_renlinear(); //#4210 + } //#4210 + $_ = Object.getPrototypeOf($_); //#4212 + $_ = Object.getPrototypeOf($_); //#4214 +} //bwipp_ean5 function bwipp_ean2() { - $_ = Object.create($_); //#4124 - $_.dontdraw = false; //#4127 - $_.includetext = false; //#4128 - $_.textfont = "OCR-B"; //#4129 - $_.textsize = 12; //#4130 - $_.textxoffset = 0; //#4131 - $_.textyoffset = null; //#4132 - $_.height = 0.7; //#4133 - $k[$j++] = $_; //#4135 - bwipp_processoptions(); //#4135 - $_.options = $k[--$j]; //#4135 - $_.barcode = $k[--$j]; //#4136 - if ($eq($_.textyoffset, null)) { //#4140 - $_.textyoffset = $f(($_.height * 72) + 1); //#4139 - } //#4139 - bwipp_loadctx(bwipp_ean2) //#4142 - if ($_.barcode.length != 2) { //#4147 - $k[$j++] = 'bwipp.ean2badLength#4146'; //#4146 - $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4146 - bwipp_raiseerror(); //#4146 - } //#4146 - $forall($_.barcode, function() { //#4152 - var _6 = $k[--$j]; //#4149 - if ((_6 < 48) || (_6 > 57)) { //#4151 - $k[$j++] = 'bwipp.ean2badCharacter#4150'; //#4150 - $k[$j++] = "EAN-2 add-on must contain only digits"; //#4150 - bwipp_raiseerror(); //#4150 - } //#4150 - }); //#4150 - if (!bwipp_ean2.__4167__) { //#4167 - $_ = Object.create($_); //#4167 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4160 - $_.barchars = "0123456789"; //#4163 - $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4166 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4166 - bwipp_ean2.__4167__ = 1; //#4166 - $_ = Object.getPrototypeOf($_); //#4166 - } //#4166 - $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4169 - $_.sbs = $s(13); //#4171 - $_.txt = $a(2); //#4172 - for (var _G = 0; _G <= 1; _G += 1) { //#4202 - $_.i = _G; //#4175 - if ($_.i == 0) { //#4181 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4179 - } else { //#4181 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4181 - } //#4181 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4185 - $j--; //#4186 - $_.indx = $k[--$j].length; //#4187 - $j -= 2; //#4188 - $_.enc = $get($_.encs, $_.indx); //#4189 - if ($get($_.mirrormap, $_.i) == 49) { //#4199 - $_.enclen = $_.enc.length; //#4191 - $_.revenc = $s($_.enclen); //#4192 - for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4197 - $_.j = _f; //#4194 - $_.char = $get($_.enc, $_.j); //#4195 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4196 - } //#4196 - $_.enc = $_.revenc; //#4198 - } //#4198 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4200 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4201 - } //#4201 - $k[$j++] = Infinity; //#4216 - $k[$j++] = Infinity; //#4207 - var _12 = $_.sbs; //#4207 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4207 - $k[$j++] = $get(_12, _13) - 48; //#4207 - } //#4207 - var _16 = $a(); //#4207 - $k[$j++] = Infinity; //#4208 - for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4208 - $k[$j++] = $_.height; //#4208 - } //#4208 - var _1A = $a(); //#4208 - $k[$j++] = Infinity; //#4209 - for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4209 - $k[$j++] = 0; //#4209 - } //#4209 - var _1D = $a(); //#4209 - $k[$j++] = 'ren'; //#4212 - $k[$j++] = bwipp_renlinear; //#4212 - $k[$j++] = 'sbs'; //#4212 - $k[$j++] = _16; //#4212 - $k[$j++] = 'bhs'; //#4212 - $k[$j++] = _1A; //#4212 - $k[$j++] = 'bbs'; //#4212 - $k[$j++] = _1D; //#4212 - if ($_.includetext) { //#4212 - $k[$j++] = 'txt'; //#4211 - $k[$j++] = $_.txt; //#4211 - } //#4211 - $k[$j++] = 'opt'; //#4216 - $k[$j++] = $_.options; //#4216 - $k[$j++] = 'guardrightpos'; //#4216 - $k[$j++] = 10; //#4216 - $k[$j++] = 'guardrightypos'; //#4216 - $k[$j++] = $f($_.textyoffset + 4); //#4216 - $k[$j++] = 'bordertop'; //#4216 - $k[$j++] = 10; //#4216 - var _1I = $d(); //#4216 - $k[$j++] = _1I; //#4219 - if (!$_.dontdraw) { //#4219 - bwipp_renlinear(); //#4219 - } //#4219 - $_ = Object.getPrototypeOf($_); //#4221 - $_ = Object.getPrototypeOf($_); //#4223 -} - + $_ = Object.create($_); //#4244 + $_.dontdraw = false; //#4247 + $_.includetext = false; //#4248 + $_.textfont = "OCR-B"; //#4249 + $_.textsize = 12; //#4250 + $_.textxoffset = 0; //#4251 + $_.textyoffset = null; //#4252 + $_.height = 0.7; //#4253 + $k[$j++] = $_; //#4255 + bwipp_processoptions(); //#4255 + $_.options = $k[--$j]; //#4255 + $_.barcode = $k[--$j]; //#4256 + if ($eq($_.textyoffset, null)) { //#4260 + $_.textyoffset = $f(($_.height * 72) + 1); //#4259 + } //#4259 + bwipp_loadctx(bwipp_ean2) //#4262 + if ($_.barcode.length != 2) { //#4267 + $k[$j++] = 'bwipp.ean2badLength#4266'; //#4266 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4266 + bwipp_raiseerror(); //#4266 + } //#4266 + $forall($_.barcode, function() { //#4272 + var _6 = $k[--$j]; //#4269 + if ((_6 < 48) || (_6 > 57)) { //#4271 + $k[$j++] = 'bwipp.ean2badCharacter#4270'; //#4270 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#4270 + bwipp_raiseerror(); //#4270 + } //#4270 + }); //#4270 + if (!bwipp_ean2.__4287__) { //#4287 + $_ = Object.create($_); //#4287 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4280 + $_.barchars = "0123456789"; //#4283 + $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4286 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4286 + bwipp_ean2.__4287__ = 1; //#4286 + $_ = Object.getPrototypeOf($_); //#4286 + } //#4286 + $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4289 + $_.sbs = $s(13); //#4291 + $_.txt = $a(2); //#4292 + for (var _G = 0; _G <= 1; _G += 1) { //#4322 + $_.i = _G; //#4295 + if ($_.i == 0) { //#4301 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4299 + } else { //#4301 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4301 + } //#4301 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4305 + $j--; //#4306 + $_.indx = $k[--$j].length; //#4307 + $j -= 2; //#4308 + $_.enc = $get($_.encs, $_.indx); //#4309 + if ($get($_.mirrormap, $_.i) == 49) { //#4319 + $_.enclen = $_.enc.length; //#4311 + $_.revenc = $s($_.enclen); //#4312 + for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4317 + $_.j = _f; //#4314 + $_.char = $get($_.enc, $_.j); //#4315 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4316 + } //#4316 + $_.enc = $_.revenc; //#4318 + } //#4318 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4320 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4321 + } //#4321 + $k[$j++] = Infinity; //#4325 + $k[$j++] = Infinity; //#4327 + var _12 = $_.sbs; //#4327 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4327 + $k[$j++] = $get(_12, _13) - 48; //#4327 + } //#4327 + var _16 = $a(); //#4327 + $k[$j++] = Infinity; //#4328 + for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4328 + $k[$j++] = $_.height; //#4328 + } //#4328 + var _1A = $a(); //#4328 + $k[$j++] = Infinity; //#4329 + for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4329 + $k[$j++] = 0; //#4329 + } //#4329 + var _1D = $a(); //#4329 + $k[$j++] = 'ren'; //#4332 + $k[$j++] = bwipp_renlinear; //#4332 + $k[$j++] = 'sbs'; //#4332 + $k[$j++] = _16; //#4332 + $k[$j++] = 'bhs'; //#4332 + $k[$j++] = _1A; //#4332 + $k[$j++] = 'bbs'; //#4332 + $k[$j++] = _1D; //#4332 + if ($_.includetext) { //#4332 + $k[$j++] = 'txt'; //#4331 + $k[$j++] = $_.txt; //#4331 + } //#4331 + $k[$j++] = 'opt'; //#4338 + $k[$j++] = $_.options; //#4338 + $k[$j++] = 'guardrightpos'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'guardrightypos'; //#4338 + $k[$j++] = $f($_.textyoffset + 4); //#4338 + $k[$j++] = 'borderleft'; //#4338 + $k[$j++] = 12; //#4338 + $k[$j++] = 'borderright'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'bordertop'; //#4338 + $k[$j++] = 10; //#4338 + var _1I = $d(); //#4338 + $k[$j++] = _1I; //#4341 + if (!$_.dontdraw) { //#4341 + bwipp_renlinear(); //#4341 + } //#4341 + $_ = Object.getPrototypeOf($_); //#4343 + $_ = Object.getPrototypeOf($_); //#4345 +} //bwipp_ean2 function bwipp_ean13() { - $_ = Object.create($_); //#4255 - $_.dontdraw = false; //#4258 - $_.includetext = false; //#4259 - $_.textfont = "OCR-B"; //#4260 - $_.textsize = 12; //#4261 - $_.textxoffset = -10; //#4262 - $_.textyoffset = -4; //#4263 - $_.height = 1; //#4264 - $_.addongap = 12; //#4265 - $_.addontextfont = "unset"; //#4266 - $_.addontextsize = null; //#4267 - $_.addontextxoffset = null; //#4268 - $_.addontextyoffset = null; //#4269 - $k[$j++] = $_; //#4271 - bwipp_processoptions(); //#4271 - $_.options = $k[--$j]; //#4271 - $_.barcode = $k[--$j]; //#4272 - bwipp_loadctx(bwipp_ean13) //#4274 - $search($_.barcode, " "); //#4277 - if ($k[--$j]) { //#4283 - $_.barcode = $k[--$j]; //#4278 - $j--; //#4279 - $_.addon = $k[--$j]; //#4280 - } else { //#4283 - $j--; //#4282 - $_.addon = ""; //#4283 - } //#4283 - if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4289 - $k[$j++] = 'bwipp.ean13badLength#4288'; //#4288 - $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4288 - bwipp_raiseerror(); //#4288 - } //#4288 - $forall($_.barcode, function() { //#4294 - var _9 = $k[--$j]; //#4291 - if ((_9 < 48) || (_9 > 57)) { //#4293 - $k[$j++] = 'bwipp.ean13badCharacter#4292'; //#4292 - $k[$j++] = "EAN-13 must contain only digits"; //#4292 - bwipp_raiseerror(); //#4292 - } //#4292 - }); //#4292 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4297 - $k[$j++] = 'bwipp.ean13badAddOnLength#4296'; //#4296 - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4296 - bwipp_raiseerror(); //#4296 - } //#4296 - $_.pad = $s(13); //#4300 - $_.checksum = 0; //#4301 - for (var _E = 0; _E <= 11; _E += 1) { //#4310 - $_.i = _E; //#4303 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4304 - if (($_.i % 2) == 0) { //#4308 - $_.checksum = $f($_.barchar + $_.checksum); //#4306 - } else { //#4308 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4308 - } //#4308 - } //#4308 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4311 - if ($_.barcode.length == 13) { //#4316 - if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4315 - $k[$j++] = 'bwipp.ean13badCheckDigit#4314'; //#4314 - $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4314 - bwipp_raiseerror(); //#4314 - } //#4314 - } //#4314 - $puti($_.pad, 0, $_.barcode); //#4317 - $put($_.pad, 12, $f($_.checksum + 48)); //#4318 - $_.barcode = $_.pad; //#4319 - if (!bwipp_ean13.__4337__) { //#4337 - $_ = Object.create($_); //#4337 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4327 - $_.barchars = "0123456789"; //#4330 - $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4336 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4336 - bwipp_ean13.__4337__ = 1; //#4336 - $_ = Object.getPrototypeOf($_); //#4336 - } //#4336 - $_.sbs = $s(59); //#4339 - $_.txt = $a(13); //#4340 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4343 - $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4346 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4347 - for (var _r = 1; _r <= 6; _r += 1) { //#4370 - $_.i = _r; //#4352 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4353 - $j--; //#4354 - $_.indx = $k[--$j].length; //#4355 - $j -= 2; //#4356 - $_.enc = $get($_.encs, $_.indx); //#4357 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#4367 - $_.enclen = $_.enc.length; //#4359 - $_.revenc = $s($_.enclen); //#4360 - for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4365 - $_.j = _18; //#4362 - $_.char = $get($_.enc, $_.j); //#4363 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4364 - } //#4364 - $_.enc = $_.revenc; //#4366 - } //#4366 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4368 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 14) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4369 - } //#4369 - $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4373 - for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4386 - $_.i = _1Y; //#4378 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4379 - $j--; //#4380 - $_.indx = $k[--$j].length; //#4381 - $j -= 2; //#4382 - $_.enc = $get($_.encs, $_.indx); //#4383 - $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4384 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4385 - } //#4385 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4389 - $k[$j++] = Infinity; //#4391 - var _1y = $_.sbs; //#4391 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4391 - $k[$j++] = $get(_1y, _1z) - 48; //#4391 - } //#4391 - $_.sbs = $a(); //#4391 - if ($_.includetext) { //#4398 - $k[$j++] = Infinity; //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - $_.bhs = $a(); //#4393 - $k[$j++] = Infinity; //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - $_.bbs = $a(); //#4394 - } else { //#4398 - $k[$j++] = Infinity; //#4396 - for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4396 - $k[$j++] = $_.height; //#4396 - } //#4396 - $_.bhs = $a(); //#4396 - $k[$j++] = Infinity; //#4397 - for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4397 - $k[$j++] = 0; //#4397 - } //#4397 - $_.bbs = $a(); //#4397 - $_.txt = $a([]); //#4398 - } //#4398 - $_.guardrightypos = 0; //#4400 - if ($ne($_.addon, "")) { //#4421 - $k[$j++] = Infinity; //#4411 - $k[$j++] = 'dontdraw'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'includetext'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'height'; //#4408 - $k[$j++] = $f($_.height - 0.15); //#4408 - $k[$j++] = 'textxoffset'; //#4408 - if ($ne($_.addontextxoffset, null)) { //#4408 - $k[$j++] = $_.addontextxoffset; //#4408 - } else { //#4408 - $k[$j++] = 95 + $_.addongap; //#4408 - } //#4408 - if ($ne($_.addontextyoffset, null)) { //#4409 - $k[$j++] = 'textyoffset'; //#4409 - $k[$j++] = $_.addontextyoffset; //#4409 - } //#4409 - $k[$j++] = 'textsize'; //#4410 - if ($ne($_.addontextsize, null)) { //#4410 - $k[$j++] = $_.addontextsize; //#4410 - } else { //#4410 - $k[$j++] = $_.textsize; //#4410 - } //#4410 - var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4411 - $k[$j++] = 'textfont'; //#4411 - $k[$j++] = _2f; //#4411 - $_.addopts = $d(); //#4412 - if ($_.addon.length == 2) { //#4413 - $k[$j++] = $_.addon; //#4413 - $k[$j++] = $_.addopts; //#4413 - bwipp_ean2(); //#4413 - } //#4413 - if ($_.addon.length == 5) { //#4414 - $k[$j++] = $_.addon; //#4414 - $k[$j++] = $_.addopts; //#4414 - bwipp_ean5(); //#4414 + $_ = Object.create($_); //#4377 + $_.dontdraw = false; //#4380 + $_.includetext = false; //#4381 + $_.textfont = "OCR-B"; //#4382 + $_.textsize = 12; //#4383 + $_.textxoffset = -11; //#4384 + $_.textyoffset = -4; //#4385 + $_.height = 1; //#4386 + $_.addongap = 12; //#4387 + $_.addontextfont = "unset"; //#4388 + $_.addontextsize = null; //#4389 + $_.addontextxoffset = null; //#4390 + $_.addontextyoffset = null; //#4391 + $k[$j++] = $_; //#4393 + bwipp_processoptions(); //#4393 + $_.options = $k[--$j]; //#4393 + $_.barcode = $k[--$j]; //#4394 + bwipp_loadctx(bwipp_ean13) //#4396 + $search($_.barcode, " "); //#4399 + if ($k[--$j]) { //#4405 + $_.barcode = $k[--$j]; //#4400 + $j--; //#4401 + $_.addon = $k[--$j]; //#4402 + } else { //#4405 + $j--; //#4404 + $_.addon = ""; //#4405 + } //#4405 + if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4411 + $k[$j++] = 'bwipp.ean13badLength#4410'; //#4410 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4410 + bwipp_raiseerror(); //#4410 + } //#4410 + $forall($_.barcode, function() { //#4416 + var _9 = $k[--$j]; //#4413 + if ((_9 < 48) || (_9 > 57)) { //#4415 + $k[$j++] = 'bwipp.ean13badCharacter#4414'; //#4414 + $k[$j++] = "EAN-13 must contain only digits"; //#4414 + bwipp_raiseerror(); //#4414 } //#4414 - $_.addcode = $k[--$j]; //#4415 - $k[$j++] = Infinity; //#4416 - $aload($_.sbs); //#4416 - $k[$j++] = $_.addongap; //#4416 - $aload($get($_.addcode, "sbs")); //#4416 - $_.sbs = $a(); //#4416 - $k[$j++] = Infinity; //#4417 - $aload($_.bhs); //#4417 - $forall($get($_.addcode, "bhs"), function() { //#4417 - var _2w = $k[--$j]; //#4417 - $k[$j++] = $f(_2w - 0.075); //#4417 - }); //#4417 - $_.bhs = $a(); //#4417 - $k[$j++] = Infinity; //#4418 - $aload($_.bbs); //#4418 - $forall($get($_.addcode, "bbs"), function() { //#4418 - var _31 = $k[--$j]; //#4418 - $k[$j++] = $f(_31 + 0.075); //#4418 - }); //#4418 - $_.bbs = $a(); //#4418 - $k[$j++] = Infinity; //#4419 - $aload($_.txt); //#4419 - $aload($get($_.addcode, "txt")); //#4419 - $_.txt = $a(); //#4419 - $_.guardrightypos = ($_.height * 72) - 6; //#4420 - } //#4420 - var _3E = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4433 - $k[$j++] = _3E; //#4436 - if (!$_.dontdraw) { //#4436 - bwipp_renlinear(); //#4436 + }); //#4414 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4419 + $k[$j++] = 'bwipp.ean13badAddOnLength#4418'; //#4418 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4418 + bwipp_raiseerror(); //#4418 + } //#4418 + $_.pad = $s(13); //#4422 + $_.checksum = 0; //#4423 + for (var _E = 0; _E <= 11; _E += 1) { //#4432 + $_.i = _E; //#4425 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4426 + if (($_.i % 2) == 0) { //#4430 + $_.checksum = $f($_.barchar + $_.checksum); //#4428 + } else { //#4430 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4430 + } //#4430 + } //#4430 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4433 + if ($_.barcode.length == 13) { //#4438 + if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4437 + $k[$j++] = 'bwipp.ean13badCheckDigit#4436'; //#4436 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4436 + bwipp_raiseerror(); //#4436 + } //#4436 } //#4436 - $_ = Object.getPrototypeOf($_); //#4438 - $_ = Object.getPrototypeOf($_); //#4440 -} - -function bwipp_ean8() { - $_ = Object.create($_); //#4472 - $_.dontdraw = false; //#4475 - $_.includetext = false; //#4476 - $_.textfont = "OCR-B"; //#4477 - $_.textsize = 12; //#4478 - $_.textxoffset = 4; //#4479 - $_.textyoffset = -4; //#4480 - $_.height = 1; //#4481 - $_.addongap = 12; //#4482 - $_.addontextfont = "unset"; //#4483 - $_.addontextsize = null; //#4484 - $_.addontextxoffset = null; //#4485 - $_.addontextyoffset = null; //#4486 - $k[$j++] = $_; //#4488 - bwipp_processoptions(); //#4488 - $_.options = $k[--$j]; //#4488 - $_.barcode = $k[--$j]; //#4489 - bwipp_loadctx(bwipp_ean8) //#4491 - $search($_.barcode, " "); //#4494 - if ($k[--$j]) { //#4500 - $_.barcode = $k[--$j]; //#4495 - $j--; //#4496 - $_.addon = $k[--$j]; //#4497 - } else { //#4500 - $j--; //#4499 - $_.addon = ""; //#4500 - } //#4500 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4506 - $k[$j++] = 'bwipp.ean8badLength#4505'; //#4505 - $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4505 - bwipp_raiseerror(); //#4505 - } //#4505 - $forall($_.barcode, function() { //#4511 - var _9 = $k[--$j]; //#4508 - if ((_9 < 48) || (_9 > 57)) { //#4510 - $k[$j++] = 'bwipp.ean8badCharacter#4509'; //#4509 - $k[$j++] = "EAN-8 must contain only digits"; //#4509 - bwipp_raiseerror(); //#4509 - } //#4509 - }); //#4509 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4514 - $k[$j++] = 'bwipp.ean8badAddOnLength#4513'; //#4513 - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4513 - bwipp_raiseerror(); //#4513 + $puti($_.pad, 0, $_.barcode); //#4439 + $put($_.pad, 12, $f($_.checksum + 48)); //#4440 + $_.barcode = $_.pad; //#4441 + if (!bwipp_ean13.__4459__) { //#4459 + $_ = Object.create($_); //#4459 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4449 + $_.barchars = "0123456789"; //#4452 + $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4458 + bwipp_ean13.__4459__ = 1; //#4458 + $_ = Object.getPrototypeOf($_); //#4458 + } //#4458 + $_.sbs = $s(59); //#4461 + $_.txt = $a(13); //#4462 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4465 + $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4468 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4469 + for (var _r = 1; _r <= 6; _r += 1) { //#4492 + $_.i = _r; //#4474 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4475 + $j--; //#4476 + $_.indx = $k[--$j].length; //#4477 + $j -= 2; //#4478 + $_.enc = $get($_.encs, $_.indx); //#4479 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#4489 + $_.enclen = $_.enc.length; //#4481 + $_.revenc = $s($_.enclen); //#4482 + for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4487 + $_.j = _18; //#4484 + $_.char = $get($_.enc, $_.j); //#4485 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4486 + } //#4486 + $_.enc = $_.revenc; //#4488 + } //#4488 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4490 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 15) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4491 + } //#4491 + $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4495 + for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4508 + $_.i = _1Y; //#4500 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4501 + $j--; //#4502 + $_.indx = $k[--$j].length; //#4503 + $j -= 2; //#4504 + $_.enc = $get($_.encs, $_.indx); //#4505 + $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4506 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 19) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4507 + } //#4507 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4511 + $k[$j++] = Infinity; //#4513 + var _1y = $_.sbs; //#4513 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4513 + $k[$j++] = $get(_1y, _1z) - 48; //#4513 } //#4513 - $_.pad = $s(8); //#4517 - $_.checksum = 0; //#4518 - for (var _E = 0; _E <= 6; _E += 1) { //#4527 - $_.i = _E; //#4520 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4521 - if (($_.i % 2) != 0) { //#4525 - $_.checksum = $f($_.barchar + $_.checksum); //#4523 - } else { //#4525 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4525 - } //#4525 - } //#4525 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4528 - if ($_.barcode.length == 8) { //#4533 - if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4532 - $k[$j++] = 'bwipp.ean8badCheckDigit#4531'; //#4531 - $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4531 - bwipp_raiseerror(); //#4531 + $_.sbs = $a(); //#4513 + if ($_.includetext) { //#4520 + $k[$j++] = Infinity; //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + $_.bhs = $a(); //#4515 + $k[$j++] = Infinity; //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + $_.bbs = $a(); //#4516 + } else { //#4520 + $k[$j++] = Infinity; //#4518 + for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4518 + $k[$j++] = $_.height; //#4518 + } //#4518 + $_.bhs = $a(); //#4518 + $k[$j++] = Infinity; //#4519 + for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4519 + $k[$j++] = 0; //#4519 + } //#4519 + $_.bbs = $a(); //#4519 + $_.txt = $a([]); //#4520 + } //#4520 + $_.guardrightypos = 0; //#4522 + if ($ne($_.addon, "")) { //#4543 + $k[$j++] = Infinity; //#4526 + $k[$j++] = 'dontdraw'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'includetext'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'height'; //#4530 + $k[$j++] = $f($_.height - 0.15); //#4530 + $k[$j++] = 'textxoffset'; //#4530 + if ($ne($_.addontextxoffset, null)) { //#4530 + $k[$j++] = $_.addontextxoffset; //#4530 + } else { //#4530 + $k[$j++] = 95 + $_.addongap; //#4530 + } //#4530 + if ($ne($_.addontextyoffset, null)) { //#4531 + $k[$j++] = 'textyoffset'; //#4531 + $k[$j++] = $_.addontextyoffset; //#4531 } //#4531 - } //#4531 - $puti($_.pad, 0, $_.barcode); //#4534 - $put($_.pad, 7, $f($_.checksum + 48)); //#4535 - $_.barcode = $_.pad; //#4536 - if (!bwipp_ean8.__4548__) { //#4548 - $_ = Object.create($_); //#4548 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4544 - $_.barchars = "0123456789"; //#4547 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4547 - bwipp_ean8.__4548__ = 1; //#4547 - $_ = Object.getPrototypeOf($_); //#4547 - } //#4547 - $_.sbs = $s(43); //#4550 - $_.txt = $a(8); //#4551 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4554 - for (var _e = 0; _e <= 3; _e += 1) { //#4567 - $_.i = _e; //#4559 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4560 - $j--; //#4561 - $_.indx = $k[--$j].length; //#4562 - $j -= 2; //#4563 - $_.enc = $get($_.encs, $_.indx); //#4564 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4565 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4566 - } //#4566 - $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4570 - for (var _14 = 4; _14 <= 7; _14 += 1) { //#4583 - $_.i = _14; //#4575 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4576 - $j--; //#4577 - $_.indx = $k[--$j].length; //#4578 - $j -= 2; //#4579 - $_.enc = $get($_.encs, $_.indx); //#4580 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4581 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4582 - } //#4582 - $puti($_.sbs, 40, $get($_.encs, 12)); //#4586 - $k[$j++] = Infinity; //#4588 - var _1U = $_.sbs; //#4588 - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4588 - $k[$j++] = $get(_1U, _1V) - 48; //#4588 - } //#4588 - $_.sbs = $a(); //#4588 - if ($_.includetext) { //#4595 - $k[$j++] = Infinity; //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - $_.bhs = $a(); //#4590 - $k[$j++] = Infinity; //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - $_.bbs = $a(); //#4591 - } else { //#4595 - $k[$j++] = Infinity; //#4593 - for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4593 - $k[$j++] = $_.height; //#4593 - } //#4593 - $_.bhs = $a(); //#4593 - $k[$j++] = Infinity; //#4594 - for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4594 - $k[$j++] = 0; //#4594 - } //#4594 - $_.bbs = $a(); //#4594 - $_.txt = $a([]); //#4595 - } //#4595 - $_.guardrightypos = 0; //#4597 - if ($ne($_.addon, "")) { //#4618 - $k[$j++] = Infinity; //#4608 - $k[$j++] = 'dontdraw'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'includetext'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'height'; //#4605 - $k[$j++] = $f($_.height - 0.15); //#4605 - $k[$j++] = 'textxoffset'; //#4605 - if ($ne($_.addontextxoffset, null)) { //#4605 - $k[$j++] = $_.addontextxoffset; //#4605 - } else { //#4605 - $k[$j++] = 67 + $_.addongap; //#4605 - } //#4605 - if ($ne($_.addontextyoffset, null)) { //#4606 - $k[$j++] = 'textyoffset'; //#4606 - $k[$j++] = $_.addontextyoffset; //#4606 - } //#4606 - $k[$j++] = 'textsize'; //#4607 - if ($ne($_.addontextsize, null)) { //#4607 - $k[$j++] = $_.addontextsize; //#4607 - } else { //#4607 - $k[$j++] = $_.textsize; //#4607 - } //#4607 - var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4608 - $k[$j++] = 'textfont'; //#4608 - $k[$j++] = _2B; //#4608 - $_.addopts = $d(); //#4609 - if ($_.addon.length == 2) { //#4610 - $k[$j++] = $_.addon; //#4610 - $k[$j++] = $_.addopts; //#4610 - bwipp_ean2(); //#4610 - } //#4610 - if ($_.addon.length == 5) { //#4611 - $k[$j++] = $_.addon; //#4611 - $k[$j++] = $_.addopts; //#4611 - bwipp_ean5(); //#4611 - } //#4611 - $_.addcode = $k[--$j]; //#4612 - $k[$j++] = Infinity; //#4613 - $aload($_.sbs); //#4613 - $k[$j++] = $_.addongap; //#4613 - $aload($get($_.addcode, "sbs")); //#4613 - $_.sbs = $a(); //#4613 - $k[$j++] = Infinity; //#4614 - $aload($_.bhs); //#4614 - $forall($get($_.addcode, "bhs"), function() { //#4614 - var _2S = $k[--$j]; //#4614 - $k[$j++] = $f(_2S - 0.075); //#4614 - }); //#4614 - $_.bhs = $a(); //#4614 - $k[$j++] = Infinity; //#4615 - $aload($_.bbs); //#4615 - $forall($get($_.addcode, "bbs"), function() { //#4615 - var _2X = $k[--$j]; //#4615 - $k[$j++] = $f(_2X + 0.075); //#4615 - }); //#4615 - $_.bbs = $a(); //#4615 - $k[$j++] = Infinity; //#4616 - $aload($_.txt); //#4616 - $aload($get($_.addcode, "txt")); //#4616 - $_.txt = $a(); //#4616 - $_.guardrightypos = ($_.height * 72) - 6; //#4617 - } //#4617 - var _2k = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardleftpos", 10], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4631 - $k[$j++] = _2k; //#4634 - if (!$_.dontdraw) { //#4634 - bwipp_renlinear(); //#4634 - } //#4634 - $_ = Object.getPrototypeOf($_); //#4636 - $_ = Object.getPrototypeOf($_); //#4638 -} - + $k[$j++] = 'textsize'; //#4532 + if ($ne($_.addontextsize, null)) { //#4532 + $k[$j++] = $_.addontextsize; //#4532 + } else { //#4532 + $k[$j++] = $_.textsize; //#4532 + } //#4532 + var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4533 + $k[$j++] = 'textfont'; //#4533 + $k[$j++] = _2f; //#4533 + $_.addopts = $d(); //#4534 + if ($_.addon.length == 2) { //#4535 + $k[$j++] = $_.addon; //#4535 + $k[$j++] = $_.addopts; //#4535 + bwipp_ean2(); //#4535 + } //#4535 + if ($_.addon.length == 5) { //#4536 + $k[$j++] = $_.addon; //#4536 + $k[$j++] = $_.addopts; //#4536 + bwipp_ean5(); //#4536 + } //#4536 + $_.addcode = $k[--$j]; //#4537 + $k[$j++] = Infinity; //#4538 + $aload($_.sbs); //#4538 + $k[$j++] = $_.addongap; //#4538 + $aload($get($_.addcode, "sbs")); //#4538 + $_.sbs = $a(); //#4538 + $k[$j++] = Infinity; //#4539 + $aload($_.bhs); //#4539 + $forall($get($_.addcode, "bhs"), function() { //#4539 + var _2w = $k[--$j]; //#4539 + $k[$j++] = $f(_2w - 0.075); //#4539 + }); //#4539 + $_.bhs = $a(); //#4539 + $k[$j++] = Infinity; //#4540 + $aload($_.bbs); //#4540 + $forall($get($_.addcode, "bbs"), function() { //#4540 + var _31 = $k[--$j]; //#4540 + $k[$j++] = $f(_31 + 0.075); //#4540 + }); //#4540 + $_.bbs = $a(); //#4540 + $k[$j++] = Infinity; //#4541 + $aload($_.txt); //#4541 + $aload($get($_.addcode, "txt")); //#4541 + $_.txt = $a(); //#4541 + $_.guardrightypos = ($_.height * 72) - 6; //#4542 + } //#4542 + $k[$j++] = Infinity; //#4546 + $k[$j++] = 'ren'; //#4553 + $k[$j++] = bwipp_renlinear; //#4553 + $k[$j++] = 'sbs'; //#4553 + $k[$j++] = $_.sbs; //#4553 + $k[$j++] = 'bhs'; //#4553 + $k[$j++] = $_.bhs; //#4553 + $k[$j++] = 'bbs'; //#4553 + $k[$j++] = $_.bbs; //#4553 + $k[$j++] = 'txt'; //#4553 + $k[$j++] = $_.txt; //#4553 + $k[$j++] = 'opt'; //#4553 + $k[$j++] = $_.options; //#4553 + $k[$j++] = 'guardrightpos'; //#4553 + if ($eq($_.addon, "")) { //#4553 + $k[$j++] = 7; //#4553 + } else { //#4553 + $k[$j++] = 5; //#4553 + } //#4553 + $k[$j++] = 'guardrightypos'; //#4556 + $k[$j++] = $_.guardrightypos; //#4556 + $k[$j++] = 'borderleft'; //#4556 + $k[$j++] = 11; //#4556 + $k[$j++] = 'borderright'; //#4556 + if ($eq($_.addon, "")) { //#4556 + $k[$j++] = 7; //#4556 + } else { //#4556 + $k[$j++] = 5; //#4556 + } //#4556 + $k[$j++] = 'bordertop'; //#4558 + $k[$j++] = 0; //#4558 + $k[$j++] = 'borderbottom'; //#4558 + $k[$j++] = 5; //#4558 + var _3G = $d(); //#4558 + $k[$j++] = _3G; //#4561 + if (!$_.dontdraw) { //#4561 + bwipp_renlinear(); //#4561 + } //#4561 + $_ = Object.getPrototypeOf($_); //#4563 + $_ = Object.getPrototypeOf($_); //#4565 +} //bwipp_ean13 +function bwipp_ean8() { + $_ = Object.create($_); //#4597 + $_.dontdraw = false; //#4600 + $_.includetext = false; //#4601 + $_.textfont = "OCR-B"; //#4602 + $_.textsize = 12; //#4603 + $_.textxoffset = 4; //#4604 + $_.textyoffset = -4; //#4605 + $_.height = 1; //#4606 + $_.addongap = 12; //#4607 + $_.addontextfont = "unset"; //#4608 + $_.addontextsize = null; //#4609 + $_.addontextxoffset = null; //#4610 + $_.addontextyoffset = null; //#4611 + $k[$j++] = $_; //#4613 + bwipp_processoptions(); //#4613 + $_.options = $k[--$j]; //#4613 + $_.barcode = $k[--$j]; //#4614 + bwipp_loadctx(bwipp_ean8) //#4616 + $search($_.barcode, " "); //#4619 + if ($k[--$j]) { //#4625 + $_.barcode = $k[--$j]; //#4620 + $j--; //#4621 + $_.addon = $k[--$j]; //#4622 + } else { //#4625 + $j--; //#4624 + $_.addon = ""; //#4625 + } //#4625 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4631 + $k[$j++] = 'bwipp.ean8badLength#4630'; //#4630 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4630 + bwipp_raiseerror(); //#4630 + } //#4630 + $forall($_.barcode, function() { //#4636 + var _9 = $k[--$j]; //#4633 + if ((_9 < 48) || (_9 > 57)) { //#4635 + $k[$j++] = 'bwipp.ean8badCharacter#4634'; //#4634 + $k[$j++] = "EAN-8 must contain only digits"; //#4634 + bwipp_raiseerror(); //#4634 + } //#4634 + }); //#4634 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4639 + $k[$j++] = 'bwipp.ean8badAddOnLength#4638'; //#4638 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4638 + bwipp_raiseerror(); //#4638 + } //#4638 + $_.pad = $s(8); //#4642 + $_.checksum = 0; //#4643 + for (var _E = 0; _E <= 6; _E += 1) { //#4652 + $_.i = _E; //#4645 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4646 + if (($_.i % 2) != 0) { //#4650 + $_.checksum = $f($_.barchar + $_.checksum); //#4648 + } else { //#4650 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4650 + } //#4650 + } //#4650 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4653 + if ($_.barcode.length == 8) { //#4658 + if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4657 + $k[$j++] = 'bwipp.ean8badCheckDigit#4656'; //#4656 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4656 + bwipp_raiseerror(); //#4656 + } //#4656 + } //#4656 + $puti($_.pad, 0, $_.barcode); //#4659 + $put($_.pad, 7, $f($_.checksum + 48)); //#4660 + $_.barcode = $_.pad; //#4661 + if (!bwipp_ean8.__4673__) { //#4673 + $_ = Object.create($_); //#4673 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4669 + $_.barchars = "0123456789"; //#4672 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4672 + bwipp_ean8.__4673__ = 1; //#4672 + $_ = Object.getPrototypeOf($_); //#4672 + } //#4672 + $_.sbs = $s(43); //#4675 + $_.txt = $a(8); //#4676 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4679 + for (var _e = 0; _e <= 3; _e += 1) { //#4692 + $_.i = _e; //#4684 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4685 + $j--; //#4686 + $_.indx = $k[--$j].length; //#4687 + $j -= 2; //#4688 + $_.enc = $get($_.encs, $_.indx); //#4689 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4690 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4691 + } //#4691 + $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4695 + for (var _14 = 4; _14 <= 7; _14 += 1) { //#4708 + $_.i = _14; //#4700 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4701 + $j--; //#4702 + $_.indx = $k[--$j].length; //#4703 + $j -= 2; //#4704 + $_.enc = $get($_.encs, $_.indx); //#4705 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4706 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4707 + } //#4707 + $puti($_.sbs, 40, $get($_.encs, 12)); //#4711 + $k[$j++] = Infinity; //#4713 + var _1U = $_.sbs; //#4713 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4713 + $k[$j++] = $get(_1U, _1V) - 48; //#4713 + } //#4713 + $_.sbs = $a(); //#4713 + if ($_.includetext) { //#4720 + $k[$j++] = Infinity; //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + $_.bhs = $a(); //#4715 + $k[$j++] = Infinity; //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + $_.bbs = $a(); //#4716 + } else { //#4720 + $k[$j++] = Infinity; //#4718 + for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4718 + $k[$j++] = $_.height; //#4718 + } //#4718 + $_.bhs = $a(); //#4718 + $k[$j++] = Infinity; //#4719 + for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4719 + $k[$j++] = 0; //#4719 + } //#4719 + $_.bbs = $a(); //#4719 + $_.txt = $a([]); //#4720 + } //#4720 + $_.guardrightypos = 0; //#4722 + if ($ne($_.addon, "")) { //#4743 + $k[$j++] = Infinity; //#4726 + $k[$j++] = 'dontdraw'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'includetext'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'height'; //#4730 + $k[$j++] = $f($_.height - 0.15); //#4730 + $k[$j++] = 'textxoffset'; //#4730 + if ($ne($_.addontextxoffset, null)) { //#4730 + $k[$j++] = $_.addontextxoffset; //#4730 + } else { //#4730 + $k[$j++] = 67 + $_.addongap; //#4730 + } //#4730 + if ($ne($_.addontextyoffset, null)) { //#4731 + $k[$j++] = 'textyoffset'; //#4731 + $k[$j++] = $_.addontextyoffset; //#4731 + } //#4731 + $k[$j++] = 'textsize'; //#4732 + if ($ne($_.addontextsize, null)) { //#4732 + $k[$j++] = $_.addontextsize; //#4732 + } else { //#4732 + $k[$j++] = $_.textsize; //#4732 + } //#4732 + var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4733 + $k[$j++] = 'textfont'; //#4733 + $k[$j++] = _2B; //#4733 + $_.addopts = $d(); //#4734 + if ($_.addon.length == 2) { //#4735 + $k[$j++] = $_.addon; //#4735 + $k[$j++] = $_.addopts; //#4735 + bwipp_ean2(); //#4735 + } //#4735 + if ($_.addon.length == 5) { //#4736 + $k[$j++] = $_.addon; //#4736 + $k[$j++] = $_.addopts; //#4736 + bwipp_ean5(); //#4736 + } //#4736 + $_.addcode = $k[--$j]; //#4737 + $k[$j++] = Infinity; //#4738 + $aload($_.sbs); //#4738 + $k[$j++] = $_.addongap; //#4738 + $aload($get($_.addcode, "sbs")); //#4738 + $_.sbs = $a(); //#4738 + $k[$j++] = Infinity; //#4739 + $aload($_.bhs); //#4739 + $forall($get($_.addcode, "bhs"), function() { //#4739 + var _2S = $k[--$j]; //#4739 + $k[$j++] = $f(_2S - 0.075); //#4739 + }); //#4739 + $_.bhs = $a(); //#4739 + $k[$j++] = Infinity; //#4740 + $aload($_.bbs); //#4740 + $forall($get($_.addcode, "bbs"), function() { //#4740 + var _2X = $k[--$j]; //#4740 + $k[$j++] = $f(_2X + 0.075); //#4740 + }); //#4740 + $_.bbs = $a(); //#4740 + $k[$j++] = Infinity; //#4741 + $aload($_.txt); //#4741 + $aload($get($_.addcode, "txt")); //#4741 + $_.txt = $a(); //#4741 + $_.guardrightypos = ($_.height * 72) - 6; //#4742 + } //#4742 + $k[$j++] = Infinity; //#4746 + $k[$j++] = 'ren'; //#4754 + $k[$j++] = bwipp_renlinear; //#4754 + $k[$j++] = 'sbs'; //#4754 + $k[$j++] = $_.sbs; //#4754 + $k[$j++] = 'bhs'; //#4754 + $k[$j++] = $_.bhs; //#4754 + $k[$j++] = 'bbs'; //#4754 + $k[$j++] = $_.bbs; //#4754 + $k[$j++] = 'txt'; //#4754 + $k[$j++] = $_.txt; //#4754 + $k[$j++] = 'opt'; //#4754 + $k[$j++] = $_.options; //#4754 + $k[$j++] = 'guardleftpos'; //#4754 + $k[$j++] = 7; //#4754 + $k[$j++] = 'guardrightpos'; //#4754 + if ($eq($_.addon, "")) { //#4754 + $k[$j++] = 7; //#4754 + } else { //#4754 + $k[$j++] = 5; //#4754 + } //#4754 + $k[$j++] = 'guardrightypos'; //#4757 + $k[$j++] = $_.guardrightypos; //#4757 + $k[$j++] = 'borderleft'; //#4757 + $k[$j++] = 7; //#4757 + $k[$j++] = 'borderright'; //#4757 + if ($eq($_.addon, "")) { //#4757 + $k[$j++] = 7; //#4757 + } else { //#4757 + $k[$j++] = 5; //#4757 + } //#4757 + $k[$j++] = 'bordertop'; //#4759 + $k[$j++] = 0; //#4759 + $k[$j++] = 'borderbottom'; //#4759 + $k[$j++] = 5; //#4759 + var _2m = $d(); //#4759 + $k[$j++] = _2m; //#4762 + if (!$_.dontdraw) { //#4762 + bwipp_renlinear(); //#4762 + } //#4762 + $_ = Object.getPrototypeOf($_); //#4764 + $_ = Object.getPrototypeOf($_); //#4766 +} //bwipp_ean8 function bwipp_upca() { - $_ = Object.create($_); //#4670 - $_.dontdraw = false; //#4673 - $_.includetext = false; //#4674 - $_.textfont = "OCR-B"; //#4675 - $_.textsize = 12; //#4676 - $_.textxoffset = -7; //#4677 - $_.textyoffset = -4; //#4678 - $_.height = 1; //#4679 - $_.addongap = 12; //#4680 - $_.addontextfont = "unset"; //#4681 - $_.addontextsize = null; //#4682 - $_.addontextxoffset = null; //#4683 - $_.addontextyoffset = null; //#4684 - $k[$j++] = $_; //#4686 - bwipp_processoptions(); //#4686 - $_.options = $k[--$j]; //#4686 - $_.barcode = $k[--$j]; //#4687 - bwipp_loadctx(bwipp_upca) //#4689 - $search($_.barcode, " "); //#4692 - if ($k[--$j]) { //#4698 - $_.barcode = $k[--$j]; //#4693 - $j--; //#4694 - $_.addon = $k[--$j]; //#4695 - } else { //#4698 - $j--; //#4697 - $_.addon = ""; //#4698 - } //#4698 - if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4744 - $forall($_.barcode, function() { //#4708 - var _9 = $k[--$j]; //#4705 - if ((_9 < 48) || (_9 > 57)) { //#4707 - $k[$j++] = 'bwipp.upcAupcEbadCharacter#4706'; //#4706 - $k[$j++] = "UPC-E must contain only digits"; //#4706 - bwipp_raiseerror(); //#4706 - } //#4706 - }); //#4706 - var _B = $get($_.barcode, 0); //#4709 - if ((_B != 48) && (_B != 49)) { //#4711 - $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4710'; //#4710 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#4710 - bwipp_raiseerror(); //#4710 - } //#4710 - for (var _C = 0, _D = 1; _C < _D; _C++) { //#4739 - var _F = ($_.barcode.length == 8) ? 12 : 11; //#4713 - $_.upcacode = $s(_F); //#4713 - if ($f($get($_.barcode, 6) - 48) <= 2) { //#4720 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4715 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4716 - $puti($_.upcacode, 4, "0000"); //#4717 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4718 - break; //#4719 - } //#4719 - if ($f($get($_.barcode, 6) - 48) == 3) { //#4726 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4722 - $puti($_.upcacode, 4, "00000"); //#4723 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4724 - break; //#4725 - } //#4725 - if ($f($get($_.barcode, 6) - 48) == 4) { //#4732 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4728 - $puti($_.upcacode, 5, "00000"); //#4729 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4730 - break; //#4731 - } //#4731 - if ($f($get($_.barcode, 6) - 48) >= 5) { //#4738 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4734 - $puti($_.upcacode, 6, "0000"); //#4735 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4736 - break; //#4737 - } //#4737 - } //#4737 - if ($_.barcode.length == 8) { //#4742 - $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4741 - } //#4741 - $_.barcode = $_.upcacode; //#4743 - } //#4743 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4749 - $k[$j++] = 'bwipp.upcAbadLength#4748'; //#4748 - $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4748 - bwipp_raiseerror(); //#4748 - } //#4748 - var _11 = $_.barcode; //#4750 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4754 - var _14 = $get(_11, _12); //#4754 - if ((_14 < 48) || (_14 > 57)) { //#4753 - $k[$j++] = 'bwipp.upcAbadCharacter#4752'; //#4752 - $k[$j++] = "UPC-A must contain only digits"; //#4752 - bwipp_raiseerror(); //#4752 - } //#4752 - } //#4752 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4757 - $k[$j++] = 'bwipp.upcAbadAddOnLength#4756'; //#4756 - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4756 - bwipp_raiseerror(); //#4756 - } //#4756 - $_.pad = $s(12); //#4760 - $_.checksum = 0; //#4761 - for (var _19 = 0; _19 <= 10; _19 += 1) { //#4770 - $_.i = _19; //#4763 - $_.barchar = $get($_.barcode, $_.i) - 48; //#4764 - if (($_.i % 2) != 0) { //#4768 - $_.checksum = $_.checksum + $_.barchar; //#4766 - } else { //#4768 - $_.checksum = $_.checksum + ($_.barchar * 3); //#4768 - } //#4768 - } //#4768 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4771 - if ($_.barcode.length == 12) { //#4776 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4775 - $k[$j++] = 'bwipp.upcAbadCheckDigit#4774'; //#4774 - $k[$j++] = "Incorrect UPC check digit provided"; //#4774 - bwipp_raiseerror(); //#4774 - } //#4774 - } //#4774 - $puti($_.pad, 0, $_.barcode); //#4777 - $put($_.pad, 11, $_.checksum + 48); //#4778 - $_.barcode = $_.pad; //#4779 - if (!bwipp_upca.__4791__) { //#4791 - $_ = Object.create($_); //#4791 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4787 - $_.barchars = "0123456789"; //#4790 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4790 - bwipp_upca.__4791__ = 1; //#4790 - $_ = Object.getPrototypeOf($_); //#4790 - } //#4790 - $_.sbs = $s(59); //#4793 - $_.txt = $a(12); //#4794 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4797 - for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4814 - $_.i = _1Z; //#4802 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4803 - $j--; //#4804 - $_.indx = $k[--$j].length; //#4805 - $j -= 2; //#4806 - $_.enc = $get($_.encs, $_.indx); //#4807 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4808 - if ($_.i == 0) { //#4812 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4810 - } else { //#4812 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4812 - } //#4812 - } //#4812 - $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4817 - for (var _28 = 6; _28 <= 11; _28 += 1) { //#4834 - $_.i = _28; //#4822 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4823 - $j--; //#4824 - $_.indx = $k[--$j].length; //#4825 - $j -= 2; //#4826 - $_.enc = $get($_.encs, $_.indx); //#4827 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4828 - if ($_.i == 11) { //#4832 - $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 104, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4830 - } else { //#4832 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 15, $_.textyoffset, $_.textfont, $_.textsize])); //#4832 - } //#4832 - } //#4832 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4837 - $k[$j++] = Infinity; //#4839 - var _2h = $_.sbs; //#4839 - for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4839 - $k[$j++] = $get(_2h, _2i) - 48; //#4839 - } //#4839 - $_.sbs = $a(); //#4839 - if ($_.includetext) { //#4846 - $k[$j++] = Infinity; //#4841 - for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - $k[$j++] = $_.height; //#4841 - $k[$j++] = $_.height; //#4841 - for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - $_.bhs = $a(); //#4841 - $k[$j++] = Infinity; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $_.bbs = $a(); //#4842 - } else { //#4846 - $k[$j++] = Infinity; //#4844 - for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4844 - $k[$j++] = $_.height; //#4844 - } //#4844 - $_.bhs = $a(); //#4844 - $k[$j++] = Infinity; //#4845 - for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4845 - $k[$j++] = 0; //#4845 - } //#4845 - $_.bbs = $a(); //#4845 - $_.txt = $a([]); //#4846 - } //#4846 - $_.guardrightypos = 0; //#4848 - if ($ne($_.addon, "")) { //#4869 - $k[$j++] = Infinity; //#4859 - $k[$j++] = 'dontdraw'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'includetext'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'height'; //#4856 - $k[$j++] = $f($_.height - 0.15); //#4856 - $k[$j++] = 'textxoffset'; //#4856 - if ($ne($_.addontextxoffset, null)) { //#4856 - $k[$j++] = $_.addontextxoffset; //#4856 - } else { //#4856 - $k[$j++] = 95 + $_.addongap; //#4856 - } //#4856 - if ($ne($_.addontextyoffset, null)) { //#4857 - $k[$j++] = 'textyoffset'; //#4857 - $k[$j++] = $_.addontextyoffset; //#4857 - } //#4857 - $k[$j++] = 'textsize'; //#4858 - if ($ne($_.addontextsize, null)) { //#4858 - $k[$j++] = $_.addontextsize; //#4858 - } else { //#4858 - $k[$j++] = $_.textsize; //#4858 - } //#4858 - var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4859 - $k[$j++] = 'textfont'; //#4859 - $k[$j++] = _3Q; //#4859 - $_.addopts = $d(); //#4860 - if ($_.addon.length == 2) { //#4861 - $k[$j++] = $_.addon; //#4861 - $k[$j++] = $_.addopts; //#4861 - bwipp_ean2(); //#4861 - } //#4861 - if ($_.addon.length == 5) { //#4862 - $k[$j++] = $_.addon; //#4862 - $k[$j++] = $_.addopts; //#4862 - bwipp_ean5(); //#4862 - } //#4862 - $_.addcode = $k[--$j]; //#4863 - $k[$j++] = Infinity; //#4864 - $aload($_.sbs); //#4864 - $k[$j++] = $_.addongap; //#4864 - $aload($get($_.addcode, "sbs")); //#4864 - $_.sbs = $a(); //#4864 - $k[$j++] = Infinity; //#4865 - $aload($_.bhs); //#4865 - $forall($get($_.addcode, "bhs"), function() { //#4865 - var _3h = $k[--$j]; //#4865 - $k[$j++] = $f(_3h - 0.075); //#4865 - }); //#4865 - $_.bhs = $a(); //#4865 - $k[$j++] = Infinity; //#4866 - $aload($_.bbs); //#4866 - $forall($get($_.addcode, "bbs"), function() { //#4866 - var _3m = $k[--$j]; //#4866 - $k[$j++] = $f(_3m + 0.075); //#4866 - }); //#4866 - $_.bbs = $a(); //#4866 - $k[$j++] = Infinity; //#4867 - $aload($_.txt); //#4867 - $aload($get($_.addcode, "txt")); //#4867 - $_.txt = $a(); //#4867 - $_.guardrightypos = ($_.height * 72) - 6; //#4868 - } //#4868 - var _3z = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4881 - $k[$j++] = _3z; //#4884 - if (!$_.dontdraw) { //#4884 - bwipp_renlinear(); //#4884 + $_ = Object.create($_); //#4798 + $_.dontdraw = false; //#4801 + $_.includetext = false; //#4802 + $_.textfont = "OCR-B"; //#4803 + $_.textsize = 12; //#4804 + $_.textxoffset = -9; //#4805 + $_.textyoffset = -4; //#4806 + $_.height = 1; //#4807 + $_.addongap = 12; //#4808 + $_.addontextfont = "unset"; //#4809 + $_.addontextsize = null; //#4810 + $_.addontextxoffset = null; //#4811 + $_.addontextyoffset = null; //#4812 + $k[$j++] = $_; //#4814 + bwipp_processoptions(); //#4814 + $_.options = $k[--$j]; //#4814 + $_.barcode = $k[--$j]; //#4815 + bwipp_loadctx(bwipp_upca) //#4817 + $search($_.barcode, " "); //#4820 + if ($k[--$j]) { //#4826 + $_.barcode = $k[--$j]; //#4821 + $j--; //#4822 + $_.addon = $k[--$j]; //#4823 + } else { //#4826 + $j--; //#4825 + $_.addon = ""; //#4826 + } //#4826 + if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4872 + $forall($_.barcode, function() { //#4836 + var _9 = $k[--$j]; //#4833 + if ((_9 < 48) || (_9 > 57)) { //#4835 + $k[$j++] = 'bwipp.upcAupcEbadCharacter#4834'; //#4834 + $k[$j++] = "UPC-E must contain only digits"; //#4834 + bwipp_raiseerror(); //#4834 + } //#4834 + }); //#4834 + var _B = $get($_.barcode, 0); //#4837 + if ((_B != 48) && (_B != 49)) { //#4839 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4838'; //#4838 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#4838 + bwipp_raiseerror(); //#4838 + } //#4838 + for (var _C = 0, _D = 1; _C < _D; _C++) { //#4867 + var _F = ($_.barcode.length == 8) ? 12 : 11; //#4841 + $_.upcacode = $s(_F); //#4841 + if ($f($get($_.barcode, 6) - 48) <= 2) { //#4848 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4843 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4844 + $puti($_.upcacode, 4, "0000"); //#4845 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4846 + break; //#4847 + } //#4847 + if ($f($get($_.barcode, 6) - 48) == 3) { //#4854 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4850 + $puti($_.upcacode, 4, "00000"); //#4851 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4852 + break; //#4853 + } //#4853 + if ($f($get($_.barcode, 6) - 48) == 4) { //#4860 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4856 + $puti($_.upcacode, 5, "00000"); //#4857 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4858 + break; //#4859 + } //#4859 + if ($f($get($_.barcode, 6) - 48) >= 5) { //#4866 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4862 + $puti($_.upcacode, 6, "0000"); //#4863 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4864 + break; //#4865 + } //#4865 + } //#4865 + if ($_.barcode.length == 8) { //#4870 + $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4869 + } //#4869 + $_.barcode = $_.upcacode; //#4871 + } //#4871 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4877 + $k[$j++] = 'bwipp.upcAbadLength#4876'; //#4876 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4876 + bwipp_raiseerror(); //#4876 + } //#4876 + var _11 = $_.barcode; //#4878 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4882 + var _14 = $get(_11, _12); //#4882 + if ((_14 < 48) || (_14 > 57)) { //#4881 + $k[$j++] = 'bwipp.upcAbadCharacter#4880'; //#4880 + $k[$j++] = "UPC-A must contain only digits"; //#4880 + bwipp_raiseerror(); //#4880 + } //#4880 + } //#4880 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4885 + $k[$j++] = 'bwipp.upcAbadAddOnLength#4884'; //#4884 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4884 + bwipp_raiseerror(); //#4884 } //#4884 - $_ = Object.getPrototypeOf($_); //#4886 - $_ = Object.getPrototypeOf($_); //#4888 -} - -function bwipp_upce() { - $_ = Object.create($_); //#4920 - $_.dontdraw = false; //#4923 - $_.includetext = false; //#4924 - $_.textfont = "OCR-B"; //#4925 - $_.textsize = 12; //#4926 - $_.textxoffset = -7; //#4927 - $_.textyoffset = -4; //#4928 - $_.height = 1; //#4929 - $_.addongap = 12; //#4930 - $_.addontextfont = "unset"; //#4931 - $_.addontextsize = null; //#4932 - $_.addontextxoffset = null; //#4933 - $_.addontextyoffset = null; //#4934 - $k[$j++] = $_; //#4936 - bwipp_processoptions(); //#4936 - $_.options = $k[--$j]; //#4936 - $_.barcode = $k[--$j]; //#4937 - bwipp_loadctx(bwipp_upce) //#4939 - $search($_.barcode, " "); //#4942 - if ($k[--$j]) { //#4948 - $_.barcode = $k[--$j]; //#4943 - $j--; //#4944 - $_.addon = $k[--$j]; //#4945 - } else { //#4948 - $j--; //#4947 - $_.addon = ""; //#4948 - } //#4948 - if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#4990 - $forall($_.barcode, function() { //#4958 - var _9 = $k[--$j]; //#4955 - if ((_9 < 48) || (_9 > 57)) { //#4957 - $k[$j++] = 'bwipp.upcEupcAbadCharacter#4956'; //#4956 - $k[$j++] = "UPC-A must contain only digits"; //#4956 - bwipp_raiseerror(); //#4956 - } //#4956 - }); //#4956 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#4985 - var _D = ($_.barcode.length == 12) ? 8 : 7; //#4960 - $_.upcecode = $s(_D); //#4960 - if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#4966 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#4962 - $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#4963 - $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#4964 - break; //#4965 - } //#4965 - if ($eq($geti($_.barcode, 4, 5), "00000")) { //#4972 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#4968 - $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#4969 - $puti($_.upcecode, 6, "3"); //#4970 - break; //#4971 - } //#4971 - if ($eq($geti($_.barcode, 5, 5), "00000")) { //#4978 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#4974 - $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#4975 - $puti($_.upcecode, 6, "4"); //#4976 - break; //#4977 - } //#4977 - if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#4983 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#4980 - $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#4981 - break; //#4982 - } //#4982 - $k[$j++] = 'bwipp.upcEupcAnotCompressible#4984'; //#4984 - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#4984 - bwipp_raiseerror(); //#4984 + $_.pad = $s(12); //#4888 + $_.checksum = 0; //#4889 + for (var _19 = 0; _19 <= 10; _19 += 1) { //#4898 + $_.i = _19; //#4891 + $_.barchar = $get($_.barcode, $_.i) - 48; //#4892 + if (($_.i % 2) != 0) { //#4896 + $_.checksum = $_.checksum + $_.barchar; //#4894 + } else { //#4896 + $_.checksum = $_.checksum + ($_.barchar * 3); //#4896 + } //#4896 + } //#4896 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4899 + if ($_.barcode.length == 12) { //#4904 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4903 + $k[$j++] = 'bwipp.upcAbadCheckDigit#4902'; //#4902 + $k[$j++] = "Incorrect UPC check digit provided"; //#4902 + bwipp_raiseerror(); //#4902 + } //#4902 + } //#4902 + $puti($_.pad, 0, $_.barcode); //#4905 + $put($_.pad, 11, $_.checksum + 48); //#4906 + $_.barcode = $_.pad; //#4907 + if (!bwipp_upca.__4919__) { //#4919 + $_ = Object.create($_); //#4919 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4915 + $_.barchars = "0123456789"; //#4918 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4918 + bwipp_upca.__4919__ = 1; //#4918 + $_ = Object.getPrototypeOf($_); //#4918 + } //#4918 + $_.sbs = $s(59); //#4921 + $_.txt = $a(12); //#4922 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4925 + for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4942 + $_.i = _1Z; //#4930 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4931 + $j--; //#4932 + $_.indx = $k[--$j].length; //#4933 + $j -= 2; //#4934 + $_.enc = $get($_.encs, $_.indx); //#4935 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4936 + if ($_.i == 0) { //#4940 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4938 + } else { //#4940 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4940 + } //#4940 + } //#4940 + $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4945 + for (var _28 = 6; _28 <= 11; _28 += 1) { //#4962 + $_.i = _28; //#4950 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4951 + $j--; //#4952 + $_.indx = $k[--$j].length; //#4953 + $j -= 2; //#4954 + $_.enc = $get($_.encs, $_.indx); //#4955 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4956 + if ($_.i == 11) { //#4960 + $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 107, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4958 + } else { //#4960 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 17, $_.textyoffset, $_.textfont, $_.textsize])); //#4960 + } //#4960 + } //#4960 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4965 + $k[$j++] = Infinity; //#4967 + var _2h = $_.sbs; //#4967 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4967 + $k[$j++] = $get(_2h, _2i) - 48; //#4967 + } //#4967 + $_.sbs = $a(); //#4967 + if ($_.includetext) { //#4974 + $k[$j++] = Infinity; //#4969 + for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + $k[$j++] = $_.height; //#4969 + $k[$j++] = $_.height; //#4969 + for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + $_.bhs = $a(); //#4969 + $k[$j++] = Infinity; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $_.bbs = $a(); //#4970 + } else { //#4974 + $k[$j++] = Infinity; //#4972 + for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4972 + $k[$j++] = $_.height; //#4972 + } //#4972 + $_.bhs = $a(); //#4972 + $k[$j++] = Infinity; //#4973 + for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4973 + $k[$j++] = 0; //#4973 + } //#4973 + $_.bbs = $a(); //#4973 + $_.txt = $a([]); //#4974 + } //#4974 + $_.guardrightypos = 0; //#4976 + if ($ne($_.addon, "")) { //#4997 + $k[$j++] = Infinity; //#4980 + $k[$j++] = 'dontdraw'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'includetext'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'height'; //#4984 + $k[$j++] = $f($_.height - 0.15); //#4984 + $k[$j++] = 'textxoffset'; //#4984 + if ($ne($_.addontextxoffset, null)) { //#4984 + $k[$j++] = $_.addontextxoffset; //#4984 + } else { //#4984 + $k[$j++] = 95 + $_.addongap; //#4984 } //#4984 - if ($_.barcode.length == 12) { //#4988 - $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#4987 - } //#4987 - $_.barcode = $_.upcecode; //#4989 - } //#4989 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4995 - $k[$j++] = 'bwipp.upcEbadLength#4994'; //#4994 - $k[$j++] = "UPC-E must be 7 or 8 digits"; //#4994 - bwipp_raiseerror(); //#4994 - } //#4994 - var _11 = $_.barcode; //#4996 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5000 - var _14 = $get(_11, _12); //#5000 - if ((_14 < 48) || (_14 > 57)) { //#4999 - $k[$j++] = 'bwipp.upcEbadCharacter#4998'; //#4998 - $k[$j++] = "UPC-E must contain only digits"; //#4998 - bwipp_raiseerror(); //#4998 - } //#4998 - } //#4998 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5003 - $k[$j++] = 'bwipp.upcEbadAddOnLength#5002'; //#5002 - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5002 - bwipp_raiseerror(); //#5002 - } //#5002 - var _19 = $get($_.barcode, 0); //#5006 - if ((_19 != 48) && (_19 != 49)) { //#5008 - $k[$j++] = 'bwipp.upcEbadNumberSystem#5007'; //#5007 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#5007 - bwipp_raiseerror(); //#5007 + if ($ne($_.addontextyoffset, null)) { //#4985 + $k[$j++] = 'textyoffset'; //#4985 + $k[$j++] = $_.addontextyoffset; //#4985 + } //#4985 + $k[$j++] = 'textsize'; //#4986 + if ($ne($_.addontextsize, null)) { //#4986 + $k[$j++] = $_.addontextsize; //#4986 + } else { //#4986 + $k[$j++] = $_.textsize; //#4986 + } //#4986 + var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4987 + $k[$j++] = 'textfont'; //#4987 + $k[$j++] = _3Q; //#4987 + $_.addopts = $d(); //#4988 + if ($_.addon.length == 2) { //#4989 + $k[$j++] = $_.addon; //#4989 + $k[$j++] = $_.addopts; //#4989 + bwipp_ean2(); //#4989 + } //#4989 + if ($_.addon.length == 5) { //#4990 + $k[$j++] = $_.addon; //#4990 + $k[$j++] = $_.addopts; //#4990 + bwipp_ean5(); //#4990 + } //#4990 + $_.addcode = $k[--$j]; //#4991 + $k[$j++] = Infinity; //#4992 + $aload($_.sbs); //#4992 + $k[$j++] = $_.addongap; //#4992 + $aload($get($_.addcode, "sbs")); //#4992 + $_.sbs = $a(); //#4992 + $k[$j++] = Infinity; //#4993 + $aload($_.bhs); //#4993 + $forall($get($_.addcode, "bhs"), function() { //#4993 + var _3h = $k[--$j]; //#4993 + $k[$j++] = $f(_3h - 0.075); //#4993 + }); //#4993 + $_.bhs = $a(); //#4993 + $k[$j++] = Infinity; //#4994 + $aload($_.bbs); //#4994 + $forall($get($_.addcode, "bbs"), function() { //#4994 + var _3m = $k[--$j]; //#4994 + $k[$j++] = $f(_3m + 0.075); //#4994 + }); //#4994 + $_.bbs = $a(); //#4994 + $k[$j++] = Infinity; //#4995 + $aload($_.txt); //#4995 + $aload($get($_.addcode, "txt")); //#4995 + $_.txt = $a(); //#4995 + $_.guardrightypos = ($_.height * 72) - 6; //#4996 + } //#4996 + $k[$j++] = Infinity; //#5000 + $k[$j++] = 'ren'; //#5007 + $k[$j++] = bwipp_renlinear; //#5007 + $k[$j++] = 'sbs'; //#5007 + $k[$j++] = $_.sbs; //#5007 + $k[$j++] = 'bhs'; //#5007 + $k[$j++] = $_.bhs; //#5007 + $k[$j++] = 'bbs'; //#5007 + $k[$j++] = $_.bbs; //#5007 + $k[$j++] = 'txt'; //#5007 + $k[$j++] = $_.txt; //#5007 + $k[$j++] = 'opt'; //#5007 + $k[$j++] = $_.options; //#5007 + $k[$j++] = 'guardrightpos'; //#5007 + if ($eq($_.addon, "")) { //#5007 + $k[$j++] = 9; //#5007 + } else { //#5007 + $k[$j++] = 5; //#5007 } //#5007 - if (!bwipp_upce.__5025__) { //#5025 - $_ = Object.create($_); //#5025 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5016 - $_.barchars = "0123456789"; //#5019 - $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5024 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5024 - bwipp_upce.__5025__ = 1; //#5024 - $_ = Object.getPrototypeOf($_); //#5024 - } //#5024 - for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5055 - $_.upcacode = $s(11); //#5029 - if (($get($_.barcode, 6) - 48) <= 2) { //#5036 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5031 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5032 - $puti($_.upcacode, 4, "0000"); //#5033 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5034 - break; //#5035 - } //#5035 - if (($get($_.barcode, 6) - 48) == 3) { //#5042 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5038 - $puti($_.upcacode, 4, "00000"); //#5039 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5040 - break; //#5041 - } //#5041 - if (($get($_.barcode, 6) - 48) == 4) { //#5048 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5044 - $puti($_.upcacode, 5, "00000"); //#5045 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5046 - break; //#5047 - } //#5047 - if (($get($_.barcode, 6) - 48) >= 5) { //#5054 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5050 - $puti($_.upcacode, 6, "0000"); //#5051 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5052 - break; //#5053 - } //#5053 - } //#5053 - $_.checksum = 0; //#5056 - for (var _1t = 0; _1t <= 10; _1t += 1) { //#5065 - $_.i = _1t; //#5058 - $_.barchar = $get($_.upcacode, $_.i) - 48; //#5059 - if (($_.i % 2) != 0) { //#5063 - $_.checksum = $_.checksum + $_.barchar; //#5061 - } else { //#5063 - $_.checksum = $_.checksum + ($_.barchar * 3); //#5063 - } //#5063 - } //#5063 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5066 - if ($_.barcode.length == 8) { //#5071 - if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5070 - $k[$j++] = 'bwipp.upcEbadCheckDigit#5069'; //#5069 - $k[$j++] = "Incorrect UPC check digit provided"; //#5069 - bwipp_raiseerror(); //#5069 - } //#5069 - } //#5069 - $_.pad = $s(8); //#5072 - $puti($_.pad, 0, $_.barcode); //#5073 - $put($_.pad, 7, $_.checksum + 48); //#5074 - $_.barcode = $_.pad; //#5075 - $_.txt = $a(8); //#5076 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5077 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5080 - if ($get($_.barcode, 0) == 48) { //#5094 - $_.invt = $s($_.mirrormap.length); //#5084 - for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5092 - $_.i = _2V; //#5086 - if ($get($_.mirrormap, $_.i) == 48) { //#5090 - $put($_.invt, $_.i, 49); //#5088 - } else { //#5090 - $put($_.invt, $_.i, 48); //#5090 - } //#5090 - } //#5090 - $_.mirrormap = $_.invt; //#5093 - } //#5093 - $_.sbs = $s(33); //#5096 - $puti($_.sbs, 0, $get($_.encs, 10)); //#5099 - for (var _2i = 1; _2i <= 6; _2i += 1) { //#5121 - $_.i = _2i; //#5102 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5104 - $j--; //#5105 - $_.indx = $k[--$j].length; //#5106 - $j -= 2; //#5107 - $_.enc = $get($_.encs, $_.indx); //#5108 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#5118 - $_.enclen = $_.enc.length; //#5110 - $_.revenc = $s($_.enclen); //#5111 - for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5116 - $_.j = _2z; //#5113 - $_.char = $get($_.enc, $_.j); //#5114 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5115 - } //#5115 - $_.enc = $_.revenc; //#5117 - } //#5117 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5119 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5120 + $k[$j++] = 'guardrightypos'; //#5010 + $k[$j++] = $_.guardrightypos; //#5010 + $k[$j++] = 'borderleft'; //#5010 + $k[$j++] = 9; //#5010 + $k[$j++] = 'borderright'; //#5010 + if ($eq($_.addon, "")) { //#5010 + $k[$j++] = 9; //#5010 + } else { //#5010 + $k[$j++] = 5; //#5010 + } //#5010 + $k[$j++] = 'bordertop'; //#5012 + $k[$j++] = 0; //#5012 + $k[$j++] = 'borderbottom'; //#5012 + $k[$j++] = 5; //#5012 + var _41 = $d(); //#5012 + $k[$j++] = _41; //#5015 + if (!$_.dontdraw) { //#5015 + bwipp_renlinear(); //#5015 + } //#5015 + $_ = Object.getPrototypeOf($_); //#5017 + $_ = Object.getPrototypeOf($_); //#5019 +} //bwipp_upca +function bwipp_upce() { + $_ = Object.create($_); //#5051 + $_.dontdraw = false; //#5054 + $_.includetext = false; //#5055 + $_.textfont = "OCR-B"; //#5056 + $_.textsize = 12; //#5057 + $_.textxoffset = -9; //#5058 + $_.textyoffset = -4; //#5059 + $_.height = 1; //#5060 + $_.addongap = 12; //#5061 + $_.addontextfont = "unset"; //#5062 + $_.addontextsize = null; //#5063 + $_.addontextxoffset = null; //#5064 + $_.addontextyoffset = null; //#5065 + $k[$j++] = $_; //#5067 + bwipp_processoptions(); //#5067 + $_.options = $k[--$j]; //#5067 + $_.barcode = $k[--$j]; //#5068 + bwipp_loadctx(bwipp_upce) //#5070 + $search($_.barcode, " "); //#5073 + if ($k[--$j]) { //#5079 + $_.barcode = $k[--$j]; //#5074 + $j--; //#5075 + $_.addon = $k[--$j]; //#5076 + } else { //#5079 + $j--; //#5078 + $_.addon = ""; //#5079 + } //#5079 + if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#5121 + $forall($_.barcode, function() { //#5089 + var _9 = $k[--$j]; //#5086 + if ((_9 < 48) || (_9 > 57)) { //#5088 + $k[$j++] = 'bwipp.upcEupcAbadCharacter#5087'; //#5087 + $k[$j++] = "UPC-A must contain only digits"; //#5087 + bwipp_raiseerror(); //#5087 + } //#5087 + }); //#5087 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#5116 + var _D = ($_.barcode.length == 12) ? 8 : 7; //#5091 + $_.upcecode = $s(_D); //#5091 + if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#5097 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#5093 + $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#5094 + $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#5095 + break; //#5096 + } //#5096 + if ($eq($geti($_.barcode, 4, 5), "00000")) { //#5103 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#5099 + $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#5100 + $puti($_.upcecode, 6, "3"); //#5101 + break; //#5102 + } //#5102 + if ($eq($geti($_.barcode, 5, 5), "00000")) { //#5109 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#5105 + $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#5106 + $puti($_.upcecode, 6, "4"); //#5107 + break; //#5108 + } //#5108 + if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#5114 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#5111 + $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#5112 + break; //#5113 + } //#5113 + $k[$j++] = 'bwipp.upcEupcAnotCompressible#5115'; //#5115 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#5115 + bwipp_raiseerror(); //#5115 + } //#5115 + if ($_.barcode.length == 12) { //#5119 + $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#5118 + } //#5118 + $_.barcode = $_.upcecode; //#5120 } //#5120 - $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5123 - $puti($_.sbs, 27, $get($_.encs, 11)); //#5126 - $k[$j++] = Infinity; //#5128 - var _3X = $_.sbs; //#5128 - for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5128 - $k[$j++] = $get(_3X, _3Y) - 48; //#5128 - } //#5128 - $_.sbs = $a(); //#5128 - if ($_.includetext) { //#5135 - $k[$j++] = Infinity; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5130 - $k[$j++] = $f($_.height - 0.075); //#5130 - } //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $_.bhs = $a(); //#5130 - $k[$j++] = Infinity; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5131 - $k[$j++] = 0.075; //#5131 - } //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $_.bbs = $a(); //#5131 - } else { //#5135 - $k[$j++] = Infinity; //#5133 - for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5133 - $k[$j++] = $_.height; //#5133 - } //#5133 - $_.bhs = $a(); //#5133 - $k[$j++] = Infinity; //#5134 - for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5134 - $k[$j++] = 0; //#5134 - } //#5134 - $_.bbs = $a(); //#5134 - $_.txt = $a([]); //#5135 - } //#5135 - $_.guardrightypos = 0; //#5137 - if ($ne($_.addon, "")) { //#5158 - $k[$j++] = Infinity; //#5148 - $k[$j++] = 'dontdraw'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'includetext'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'height'; //#5145 - $k[$j++] = $f($_.height - 0.15); //#5145 - $k[$j++] = 'textxoffset'; //#5145 - if ($ne($_.addontextxoffset, null)) { //#5145 - $k[$j++] = $_.addontextxoffset; //#5145 - } else { //#5145 - $k[$j++] = 51 + $_.addongap; //#5145 - } //#5145 - if ($ne($_.addontextyoffset, null)) { //#5146 - $k[$j++] = 'textyoffset'; //#5146 - $k[$j++] = $_.addontextyoffset; //#5146 - } //#5146 - $k[$j++] = 'textsize'; //#5147 - if ($ne($_.addontextsize, null)) { //#5147 - $k[$j++] = $_.addontextsize; //#5147 - } else { //#5147 - $k[$j++] = $_.textsize; //#5147 - } //#5147 - var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5148 - $k[$j++] = 'textfont'; //#5148 - $k[$j++] = _48; //#5148 - $_.addopts = $d(); //#5149 - if ($_.addon.length == 2) { //#5150 - $k[$j++] = $_.addon; //#5150 - $k[$j++] = $_.addopts; //#5150 - bwipp_ean2(); //#5150 - } //#5150 - if ($_.addon.length == 5) { //#5151 - $k[$j++] = $_.addon; //#5151 - $k[$j++] = $_.addopts; //#5151 - bwipp_ean5(); //#5151 - } //#5151 - $_.addcode = $k[--$j]; //#5152 - $k[$j++] = Infinity; //#5153 - $aload($_.sbs); //#5153 - $k[$j++] = $_.addongap; //#5153 - $aload($get($_.addcode, "sbs")); //#5153 - $_.sbs = $a(); //#5153 - $k[$j++] = Infinity; //#5154 - $aload($_.bhs); //#5154 - $forall($get($_.addcode, "bhs"), function() { //#5154 - var _4P = $k[--$j]; //#5154 - $k[$j++] = $f(_4P - 0.075); //#5154 - }); //#5154 - $_.bhs = $a(); //#5154 - $k[$j++] = Infinity; //#5155 - $aload($_.bbs); //#5155 - $forall($get($_.addcode, "bbs"), function() { //#5155 - var _4U = $k[--$j]; //#5155 - $k[$j++] = $f(_4U + 0.075); //#5155 - }); //#5155 - $_.bbs = $a(); //#5155 - $k[$j++] = Infinity; //#5156 - $aload($_.txt); //#5156 - $aload($get($_.addcode, "txt")); //#5156 - $_.txt = $a(); //#5156 - $_.guardrightypos = ($_.height * 72) - 6; //#5157 - } //#5157 - var _4h = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#5170 - $k[$j++] = _4h; //#5173 - if (!$_.dontdraw) { //#5173 - bwipp_renlinear(); //#5173 - } //#5173 - $_ = Object.getPrototypeOf($_); //#5175 - $_ = Object.getPrototypeOf($_); //#5177 -} - + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#5126 + $k[$j++] = 'bwipp.upcEbadLength#5125'; //#5125 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#5125 + bwipp_raiseerror(); //#5125 + } //#5125 + var _11 = $_.barcode; //#5127 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5131 + var _14 = $get(_11, _12); //#5131 + if ((_14 < 48) || (_14 > 57)) { //#5130 + $k[$j++] = 'bwipp.upcEbadCharacter#5129'; //#5129 + $k[$j++] = "UPC-E must contain only digits"; //#5129 + bwipp_raiseerror(); //#5129 + } //#5129 + } //#5129 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5134 + $k[$j++] = 'bwipp.upcEbadAddOnLength#5133'; //#5133 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5133 + bwipp_raiseerror(); //#5133 + } //#5133 + var _19 = $get($_.barcode, 0); //#5137 + if ((_19 != 48) && (_19 != 49)) { //#5139 + $k[$j++] = 'bwipp.upcEbadNumberSystem#5138'; //#5138 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#5138 + bwipp_raiseerror(); //#5138 + } //#5138 + if (!bwipp_upce.__5156__) { //#5156 + $_ = Object.create($_); //#5156 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5147 + $_.barchars = "0123456789"; //#5150 + $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5155 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5155 + bwipp_upce.__5156__ = 1; //#5155 + $_ = Object.getPrototypeOf($_); //#5155 + } //#5155 + for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5186 + $_.upcacode = $s(11); //#5160 + if (($get($_.barcode, 6) - 48) <= 2) { //#5167 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5162 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5163 + $puti($_.upcacode, 4, "0000"); //#5164 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5165 + break; //#5166 + } //#5166 + if (($get($_.barcode, 6) - 48) == 3) { //#5173 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5169 + $puti($_.upcacode, 4, "00000"); //#5170 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5171 + break; //#5172 + } //#5172 + if (($get($_.barcode, 6) - 48) == 4) { //#5179 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5175 + $puti($_.upcacode, 5, "00000"); //#5176 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5177 + break; //#5178 + } //#5178 + if (($get($_.barcode, 6) - 48) >= 5) { //#5185 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5181 + $puti($_.upcacode, 6, "0000"); //#5182 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5183 + break; //#5184 + } //#5184 + } //#5184 + $_.checksum = 0; //#5187 + for (var _1t = 0; _1t <= 10; _1t += 1) { //#5196 + $_.i = _1t; //#5189 + $_.barchar = $get($_.upcacode, $_.i) - 48; //#5190 + if (($_.i % 2) != 0) { //#5194 + $_.checksum = $_.checksum + $_.barchar; //#5192 + } else { //#5194 + $_.checksum = $_.checksum + ($_.barchar * 3); //#5194 + } //#5194 + } //#5194 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5197 + if ($_.barcode.length == 8) { //#5202 + if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5201 + $k[$j++] = 'bwipp.upcEbadCheckDigit#5200'; //#5200 + $k[$j++] = "Incorrect UPC check digit provided"; //#5200 + bwipp_raiseerror(); //#5200 + } //#5200 + } //#5200 + $_.pad = $s(8); //#5203 + $puti($_.pad, 0, $_.barcode); //#5204 + $put($_.pad, 7, $_.checksum + 48); //#5205 + $_.barcode = $_.pad; //#5206 + $_.txt = $a(8); //#5207 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5208 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5211 + if ($get($_.barcode, 0) == 48) { //#5225 + $_.invt = $s($_.mirrormap.length); //#5215 + for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5223 + $_.i = _2V; //#5217 + if ($get($_.mirrormap, $_.i) == 48) { //#5221 + $put($_.invt, $_.i, 49); //#5219 + } else { //#5221 + $put($_.invt, $_.i, 48); //#5221 + } //#5221 + } //#5221 + $_.mirrormap = $_.invt; //#5224 + } //#5224 + $_.sbs = $s(33); //#5227 + $puti($_.sbs, 0, $get($_.encs, 10)); //#5230 + for (var _2i = 1; _2i <= 6; _2i += 1) { //#5252 + $_.i = _2i; //#5233 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5235 + $j--; //#5236 + $_.indx = $k[--$j].length; //#5237 + $j -= 2; //#5238 + $_.enc = $get($_.encs, $_.indx); //#5239 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#5249 + $_.enclen = $_.enc.length; //#5241 + $_.revenc = $s($_.enclen); //#5242 + for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5247 + $_.j = _2z; //#5244 + $_.char = $get($_.enc, $_.j); //#5245 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5246 + } //#5246 + $_.enc = $_.revenc; //#5248 + } //#5248 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5250 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5251 + } //#5251 + $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 21) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5254 + $puti($_.sbs, 27, $get($_.encs, 11)); //#5257 + $k[$j++] = Infinity; //#5259 + var _3X = $_.sbs; //#5259 + for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5259 + $k[$j++] = $get(_3X, _3Y) - 48; //#5259 + } //#5259 + $_.sbs = $a(); //#5259 + if ($_.includetext) { //#5266 + $k[$j++] = Infinity; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5261 + $k[$j++] = $f($_.height - 0.075); //#5261 + } //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $_.bhs = $a(); //#5261 + $k[$j++] = Infinity; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5262 + $k[$j++] = 0.075; //#5262 + } //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $_.bbs = $a(); //#5262 + } else { //#5266 + $k[$j++] = Infinity; //#5264 + for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5264 + $k[$j++] = $_.height; //#5264 + } //#5264 + $_.bhs = $a(); //#5264 + $k[$j++] = Infinity; //#5265 + for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5265 + $k[$j++] = 0; //#5265 + } //#5265 + $_.bbs = $a(); //#5265 + $_.txt = $a([]); //#5266 + } //#5266 + $_.guardrightypos = 0; //#5268 + if ($ne($_.addon, "")) { //#5289 + $k[$j++] = Infinity; //#5272 + $k[$j++] = 'dontdraw'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'includetext'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'height'; //#5276 + $k[$j++] = $f($_.height - 0.15); //#5276 + $k[$j++] = 'textxoffset'; //#5276 + if ($ne($_.addontextxoffset, null)) { //#5276 + $k[$j++] = $_.addontextxoffset; //#5276 + } else { //#5276 + $k[$j++] = 51 + $_.addongap; //#5276 + } //#5276 + if ($ne($_.addontextyoffset, null)) { //#5277 + $k[$j++] = 'textyoffset'; //#5277 + $k[$j++] = $_.addontextyoffset; //#5277 + } //#5277 + $k[$j++] = 'textsize'; //#5278 + if ($ne($_.addontextsize, null)) { //#5278 + $k[$j++] = $_.addontextsize; //#5278 + } else { //#5278 + $k[$j++] = $_.textsize; //#5278 + } //#5278 + var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5279 + $k[$j++] = 'textfont'; //#5279 + $k[$j++] = _48; //#5279 + $_.addopts = $d(); //#5280 + if ($_.addon.length == 2) { //#5281 + $k[$j++] = $_.addon; //#5281 + $k[$j++] = $_.addopts; //#5281 + bwipp_ean2(); //#5281 + } //#5281 + if ($_.addon.length == 5) { //#5282 + $k[$j++] = $_.addon; //#5282 + $k[$j++] = $_.addopts; //#5282 + bwipp_ean5(); //#5282 + } //#5282 + $_.addcode = $k[--$j]; //#5283 + $k[$j++] = Infinity; //#5284 + $aload($_.sbs); //#5284 + $k[$j++] = $_.addongap; //#5284 + $aload($get($_.addcode, "sbs")); //#5284 + $_.sbs = $a(); //#5284 + $k[$j++] = Infinity; //#5285 + $aload($_.bhs); //#5285 + $forall($get($_.addcode, "bhs"), function() { //#5285 + var _4P = $k[--$j]; //#5285 + $k[$j++] = $f(_4P - 0.075); //#5285 + }); //#5285 + $_.bhs = $a(); //#5285 + $k[$j++] = Infinity; //#5286 + $aload($_.bbs); //#5286 + $forall($get($_.addcode, "bbs"), function() { //#5286 + var _4U = $k[--$j]; //#5286 + $k[$j++] = $f(_4U + 0.075); //#5286 + }); //#5286 + $_.bbs = $a(); //#5286 + $k[$j++] = Infinity; //#5287 + $aload($_.txt); //#5287 + $aload($get($_.addcode, "txt")); //#5287 + $_.txt = $a(); //#5287 + $_.guardrightypos = ($_.height * 72) - 6; //#5288 + } //#5288 + $k[$j++] = Infinity; //#5292 + $k[$j++] = 'ren'; //#5299 + $k[$j++] = bwipp_renlinear; //#5299 + $k[$j++] = 'sbs'; //#5299 + $k[$j++] = $_.sbs; //#5299 + $k[$j++] = 'bhs'; //#5299 + $k[$j++] = $_.bhs; //#5299 + $k[$j++] = 'bbs'; //#5299 + $k[$j++] = $_.bbs; //#5299 + $k[$j++] = 'txt'; //#5299 + $k[$j++] = $_.txt; //#5299 + $k[$j++] = 'opt'; //#5299 + $k[$j++] = $_.options; //#5299 + $k[$j++] = 'guardrightpos'; //#5299 + if ($eq($_.addon, "")) { //#5299 + $k[$j++] = 9; //#5299 + } else { //#5299 + $k[$j++] = 5; //#5299 + } //#5299 + $k[$j++] = 'guardrightypos'; //#5302 + $k[$j++] = $_.guardrightypos; //#5302 + $k[$j++] = 'borderleft'; //#5302 + $k[$j++] = 9; //#5302 + $k[$j++] = 'borderright'; //#5302 + if ($eq($_.addon, "")) { //#5302 + $k[$j++] = 9; //#5302 + } else { //#5302 + $k[$j++] = 5; //#5302 + } //#5302 + $k[$j++] = 'bordertop'; //#5304 + $k[$j++] = 0; //#5304 + $k[$j++] = 'borderbottom'; //#5304 + $k[$j++] = 5; //#5304 + var _4j = $d(); //#5304 + $k[$j++] = _4j; //#5307 + if (!$_.dontdraw) { //#5307 + bwipp_renlinear(); //#5307 + } //#5307 + $_ = Object.getPrototypeOf($_); //#5309 + $_ = Object.getPrototypeOf($_); //#5311 +} //bwipp_upce function bwipp_isbn() { - $_ = Object.create($_); //#5206 - $_.dontdraw = false; //#5209 - $_.includetext = false; //#5210 - $_.isbntextfont = 'OCR-A'; //#5211 - $_.isbntextsize = 8; //#5212 - $_.isbntextxoffset = null; //#5213 - $_.isbntextyoffset = null; //#5214 - $_.height = 1; //#5215 - $_.addongap = 12; //#5216 - $_.legacy = false; //#5217 - $k[$j++] = $_; //#5219 - bwipp_processoptions(); //#5219 - $_.options = $k[--$j]; //#5219 - $_.barcode = $k[--$j]; //#5220 - $search($_.barcode, " "); //#5223 - if ($k[--$j]) { //#5229 - $_.barcode = $k[--$j]; //#5224 - $j--; //#5225 - $_.addon = $k[--$j]; //#5226 - } else { //#5229 - $j--; //#5228 - $_.addon = ""; //#5229 - } //#5229 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5236 - $k[$j++] = 'bwipp.isbnBadLength#5235'; //#5235 - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5235 - bwipp_raiseerror(); //#5235 - } //#5235 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5239 - $k[$j++] = 'bwipp.isbnBadAddOnLength#5238'; //#5238 - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5238 - bwipp_raiseerror(); //#5238 - } //#5238 - if ($_.barcode.length >= 15) { //#5303 - var _F = $geti($_.barcode, 0, 4); //#5241 - if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5243 - $k[$j++] = 'bwipp.isbn13badPrefix#5242'; //#5242 - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5242 - bwipp_raiseerror(); //#5242 - } //#5242 - $_.wasdash = false; //#5244 - $_.numdash = 0; //#5244 - $_.numdigit = 0; //#5244 - var _H = $geti($_.barcode, 5, 9); //#5245 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5258 - var _K = $get(_H, _I); //#5258 - $k[$j++] = _K; //#5253 - if (_K == 45) { //#5253 - if ($_.wasdash) { //#5250 - $k[$j++] = 'bwipp.isbn13adjacentDashes#5249'; //#5249 - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5249 - bwipp_raiseerror(); //#5249 - } //#5249 - $_.wasdash = true; //#5251 - $_.numdash = $_.numdash + 1; //#5252 - } //#5252 - var _N = $k[--$j]; //#5254 - if ((_N >= 48) && (_N <= 57)) { //#5257 - $_.wasdash = false; //#5255 - $_.numdigit = $_.numdigit + 1; //#5256 - } //#5256 - } //#5256 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5261 - $k[$j++] = 'bwipp.isbn13numDashesDigits#5260'; //#5260 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5260 - bwipp_raiseerror(); //#5260 - } //#5260 - var _S = $get($_.barcode, 14); //#5262 - if ((_S < 48) || (_S > 57)) { //#5264 - $k[$j++] = 'bwipp.isbn13character15#5263'; //#5263 - $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5263 - bwipp_raiseerror(); //#5263 - } //#5263 - if ($_.barcode.length == 17) { //#5272 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5268 - $k[$j++] = 'bwipp.isbn13character16#5267'; //#5267 - $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5267 - bwipp_raiseerror(); //#5267 - } //#5267 - var _X = $get($_.barcode, 16); //#5269 - if ((_X < 48) || (_X > 57)) { //#5271 - $k[$j++] = 'bwipp.isbn13character17#5270'; //#5270 - $k[$j++] = "ISBN-13 final character must be a digit"; //#5270 - bwipp_raiseerror(); //#5270 - } //#5270 - } //#5270 - } else { //#5303 - var _Z = $get($_.barcode, 0); //#5274 - if ((_Z < 48) || (_Z > 57)) { //#5276 - $k[$j++] = 'bwipp.isbn10FirstDigit#5275'; //#5275 - $k[$j++] = "ISBN-10 first character must be a digit"; //#5275 - bwipp_raiseerror(); //#5275 - } //#5275 - $_.wasdash = false; //#5277 - $_.numdash = 0; //#5277 - $_.numdigit = 0; //#5277 - var _b = $geti($_.barcode, 1, 9); //#5278 - for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5291 - var _e = $get(_b, _c); //#5291 - $k[$j++] = _e; //#5286 - if (_e == 45) { //#5286 - if ($_.wasdash) { //#5283 - $k[$j++] = 'bwipp.isbn10adjacentDashes#5282'; //#5282 - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5282 - bwipp_raiseerror(); //#5282 - } //#5282 - $_.wasdash = true; //#5284 - $_.numdash = $_.numdash + 1; //#5285 - } //#5285 - var _h = $k[--$j]; //#5287 - if ((_h >= 48) && (_h <= 57)) { //#5290 - $_.wasdash = false; //#5288 - $_.numdigit = $_.numdigit + 1; //#5289 - } //#5289 - } //#5289 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5294 - $k[$j++] = 'bwipp.isbn10numDashesDigits#5293'; //#5293 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5293 - bwipp_raiseerror(); //#5293 - } //#5293 - var _m = $get($_.barcode, 10); //#5295 - if ((_m < 48) || (_m > 57)) { //#5297 - $k[$j++] = 'bwipp.isbn10character11#5296'; //#5296 - $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5296 - bwipp_raiseerror(); //#5296 - } //#5296 - if ($_.barcode.length == 13) { //#5305 - if ($ne($geti($_.barcode, 11, 1), "-")) { //#5301 - $k[$j++] = 'bwipp.isbn10character12#5300'; //#5300 - $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5300 - bwipp_raiseerror(); //#5300 - } //#5300 - var _r = $get($_.barcode, 12); //#5302 - if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5304 - $k[$j++] = 'bwipp.isbn10character13#5303'; //#5303 - $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5303 - bwipp_raiseerror(); //#5303 - } //#5303 - } //#5303 - } //#5303 - $_.isbntxt = $_.barcode; //#5308 - if ($_.isbntxt.length <= 13) { //#5334 - $_.isbn = $s(10); //#5312 - $_.checksum = 0; //#5313 - $_.i = 0; //#5314 - $_.n = 0; //#5314 - for (;;) { //#5326 - $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5316 - if ($_.isbnchar != -3) { //#5323 - $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5318 - if ($_.n < 9) { //#5321 - $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5320 - } //#5320 - $_.n = $_.n + 1; //#5322 - } //#5322 - $_.i = $_.i + 1; //#5324 - if ($_.i == $_.isbntxt.length) { //#5325 - break; //#5325 - } //#5325 - } //#5325 - var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5327 - $k[$j++] = 'checksum'; //#5327 - $k[$j++] = _1B; //#5327 - if (_1B == 10) { //#5327 - $j--; //#5327 - $k[$j++] = 40; //#5327 - } //#5327 - var _1C = $k[--$j]; //#5327 - $_[$k[--$j]] = $f(_1C + 48); //#5327 - $_.isbn = $geti($_.isbn, 0, 9); //#5328 - if ($_.isbntxt.length == 13) { //#5333 - if ($get($_.isbntxt, 12) != $_.checksum) { //#5332 - $k[$j++] = 'bwipp.isbn10badCheckDigit#5331'; //#5331 - $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5331 - bwipp_raiseerror(); //#5331 - } //#5331 - } //#5331 - } //#5331 - if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5370 - if ($_.isbntxt.length <= 13) { //#5344 - $_.pad = $s(15); //#5340 - $puti($_.pad, 0, "978-"); //#5341 - $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5342 - $_.isbntxt = $_.pad; //#5343 - } //#5343 - $_.isbn = $s(13); //#5347 - $_.checksum = 0; //#5348 - $_.i = 0; //#5349 - $_.n = 0; //#5349 - for (;;) { //#5361 - $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5351 - if ($_.isbnchar != -3) { //#5358 - $put($_.isbn, $_.n, $_.isbnchar + 48); //#5353 - if ($_.n < 12) { //#5356 - $k[$j++] = 'checksum'; //#5355 - $k[$j++] = $_.isbnchar; //#5355 - if (($_.n % 2) != 0) { //#5355 - var _1e = $k[--$j]; //#5355 - $k[$j++] = _1e * 3; //#5355 - } //#5355 - var _1g = $k[--$j]; //#5355 - $_[$k[--$j]] = $f(_1g + $_.checksum); //#5355 - } //#5355 - $_.n = $_.n + 1; //#5357 - } //#5357 - $_.i = $_.i + 1; //#5359 - if ($_.i == $_.isbntxt.length) { //#5360 - break; //#5360 - } //#5360 - } //#5360 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5362 - $_.isbn = $geti($_.isbn, 0, 12); //#5363 - if ($_.isbntxt.length == 17) { //#5368 - if ($get($_.isbntxt, 16) != $_.checksum) { //#5367 - $k[$j++] = 'bwipp.isbn13badCheckDigit#5366'; //#5366 - $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5366 - bwipp_raiseerror(); //#5366 - } //#5366 - } //#5366 - } //#5366 - var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5373 - $_.pad = $s(_1u); //#5373 - $puti($_.pad, 0, "ISBN "); //#5374 - $puti($_.pad, 5, $_.isbntxt); //#5375 - $put($_.pad, $_.pad.length - 2, 45); //#5376 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5377 - $_.isbntxt = $_.pad; //#5378 - $_.barcode = $s(12); //#5381 - if ($_.isbn.length == 9) { //#5386 - $puti($_.barcode, 0, "978"); //#5383 - $puti($_.barcode, 3, $_.isbn); //#5384 - } else { //#5386 - $puti($_.barcode, 0, $_.isbn); //#5386 - } //#5386 - if ($ne($_.addon, "")) { //#5396 - var _2E = $s((12 + $_.addon.length) + 1); //#5391 - $puti(_2E, 0, $_.barcode); //#5392 - $puti(_2E, 12, " "); //#5393 - $puti(_2E, 13, $_.addon); //#5394 - $_.barcode = _2E; //#5395 - } //#5395 - $put($_.options, "dontdraw", true); //#5399 - $put($_.options, "addongap", $_.addongap); //#5400 - $k[$j++] = 'args'; //#5401 - $k[$j++] = $_.barcode; //#5401 - $k[$j++] = $_.options; //#5401 - bwipp_ean13(); //#5401 - var _2M = $k[--$j]; //#5401 - $_[$k[--$j]] = _2M; //#5401 - if ($_.includetext) { //#5420 - if ($eq($_.isbntextxoffset, null)) { //#5407 - $k[$j++] = 'isbntextxoffset'; //#5406 - if ($_.isbn.length == 9) { //#5406 - $k[$j++] = -1; //#5406 - } else { //#5406 - $k[$j++] = -12; //#5406 - } //#5406 - var _2R = $k[--$j]; //#5406 - $_[$k[--$j]] = _2R; //#5406 - } //#5406 - if ($eq($_.isbntextyoffset, null)) { //#5410 - $_.isbntextyoffset = ($_.height * 72) + 3; //#5409 + $_ = Object.create($_); //#5340 + $_.dontdraw = false; //#5343 + $_.includetext = false; //#5344 + $_.isbntextfont = 'OCR-A'; //#5345 + $_.isbntextsize = 8; //#5346 + $_.isbntextxoffset = null; //#5347 + $_.isbntextyoffset = null; //#5348 + $_.height = 1; //#5349 + $_.addongap = 12; //#5350 + $_.legacy = false; //#5351 + $k[$j++] = $_; //#5353 + bwipp_processoptions(); //#5353 + $_.options = $k[--$j]; //#5353 + $_.barcode = $k[--$j]; //#5354 + $search($_.barcode, " "); //#5357 + if ($k[--$j]) { //#5363 + $_.barcode = $k[--$j]; //#5358 + $j--; //#5359 + $_.addon = $k[--$j]; //#5360 + } else { //#5363 + $j--; //#5362 + $_.addon = ""; //#5363 + } //#5363 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5370 + $k[$j++] = 'bwipp.isbnBadLength#5369'; //#5369 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5369 + bwipp_raiseerror(); //#5369 + } //#5369 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5373 + $k[$j++] = 'bwipp.isbnBadAddOnLength#5372'; //#5372 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5372 + bwipp_raiseerror(); //#5372 + } //#5372 + if ($_.barcode.length >= 15) { //#5437 + var _F = $geti($_.barcode, 0, 4); //#5375 + if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5377 + $k[$j++] = 'bwipp.isbn13badPrefix#5376'; //#5376 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5376 + bwipp_raiseerror(); //#5376 + } //#5376 + $_.wasdash = false; //#5378 + $_.numdash = 0; //#5378 + $_.numdigit = 0; //#5378 + var _H = $geti($_.barcode, 5, 9); //#5379 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5392 + var _K = $get(_H, _I); //#5392 + $k[$j++] = _K; //#5387 + if (_K == 45) { //#5387 + if ($_.wasdash) { //#5384 + $k[$j++] = 'bwipp.isbn13adjacentDashes#5383'; //#5383 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5383 + bwipp_raiseerror(); //#5383 + } //#5383 + $_.wasdash = true; //#5385 + $_.numdash = $_.numdash + 1; //#5386 + } //#5386 + var _N = $k[--$j]; //#5388 + if ((_N >= 48) && (_N <= 57)) { //#5391 + $_.wasdash = false; //#5389 + $_.numdigit = $_.numdigit + 1; //#5390 + } //#5390 + } //#5390 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5395 + $k[$j++] = 'bwipp.isbn13numDashesDigits#5394'; //#5394 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5394 + bwipp_raiseerror(); //#5394 + } //#5394 + var _S = $get($_.barcode, 14); //#5396 + if ((_S < 48) || (_S > 57)) { //#5398 + $k[$j++] = 'bwipp.isbn13character15#5397'; //#5397 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5397 + bwipp_raiseerror(); //#5397 + } //#5397 + if ($_.barcode.length == 17) { //#5406 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5402 + $k[$j++] = 'bwipp.isbn13character16#5401'; //#5401 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5401 + bwipp_raiseerror(); //#5401 + } //#5401 + var _X = $get($_.barcode, 16); //#5403 + if ((_X < 48) || (_X > 57)) { //#5405 + $k[$j++] = 'bwipp.isbn13character17#5404'; //#5404 + $k[$j++] = "ISBN-13 final character must be a digit"; //#5404 + bwipp_raiseerror(); //#5404 + } //#5404 + } //#5404 + } else { //#5437 + var _Z = $get($_.barcode, 0); //#5408 + if ((_Z < 48) || (_Z > 57)) { //#5410 + $k[$j++] = 'bwipp.isbn10FirstDigit#5409'; //#5409 + $k[$j++] = "ISBN-10 first character must be a digit"; //#5409 + bwipp_raiseerror(); //#5409 } //#5409 - var _2W = $get($_.args, "txt") !== undefined; //#5411 - if (_2W) { //#5418 - $_.txt = $get($_.args, "txt"); //#5412 - $_.newtxt = $a($_.txt.length + 1); //#5413 - $puti($_.newtxt, 0, $_.txt); //#5414 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5415 - $put($_.args, "txt", $_.newtxt); //#5416 - } else { //#5418 - $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5418 - } //#5418 - } //#5418 - $put($_.args, "opt", $_.options); //#5422 - $k[$j++] = $_.args; //#5425 - if (!$_.dontdraw) { //#5425 - bwipp_renlinear(); //#5425 - } //#5425 - $_ = Object.getPrototypeOf($_); //#5427 -} - + $_.wasdash = false; //#5411 + $_.numdash = 0; //#5411 + $_.numdigit = 0; //#5411 + var _b = $geti($_.barcode, 1, 9); //#5412 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5425 + var _e = $get(_b, _c); //#5425 + $k[$j++] = _e; //#5420 + if (_e == 45) { //#5420 + if ($_.wasdash) { //#5417 + $k[$j++] = 'bwipp.isbn10adjacentDashes#5416'; //#5416 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5416 + bwipp_raiseerror(); //#5416 + } //#5416 + $_.wasdash = true; //#5418 + $_.numdash = $_.numdash + 1; //#5419 + } //#5419 + var _h = $k[--$j]; //#5421 + if ((_h >= 48) && (_h <= 57)) { //#5424 + $_.wasdash = false; //#5422 + $_.numdigit = $_.numdigit + 1; //#5423 + } //#5423 + } //#5423 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5428 + $k[$j++] = 'bwipp.isbn10numDashesDigits#5427'; //#5427 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5427 + bwipp_raiseerror(); //#5427 + } //#5427 + var _m = $get($_.barcode, 10); //#5429 + if ((_m < 48) || (_m > 57)) { //#5431 + $k[$j++] = 'bwipp.isbn10character11#5430'; //#5430 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5430 + bwipp_raiseerror(); //#5430 + } //#5430 + if ($_.barcode.length == 13) { //#5439 + if ($ne($geti($_.barcode, 11, 1), "-")) { //#5435 + $k[$j++] = 'bwipp.isbn10character12#5434'; //#5434 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5434 + bwipp_raiseerror(); //#5434 + } //#5434 + var _r = $get($_.barcode, 12); //#5436 + if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5438 + $k[$j++] = 'bwipp.isbn10character13#5437'; //#5437 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5437 + bwipp_raiseerror(); //#5437 + } //#5437 + } //#5437 + } //#5437 + $_.isbntxt = $_.barcode; //#5442 + if ($_.isbntxt.length <= 13) { //#5468 + $_.isbn = $s(10); //#5446 + $_.checksum = 0; //#5447 + $_.i = 0; //#5448 + $_.n = 0; //#5448 + for (;;) { //#5460 + $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5450 + if ($_.isbnchar != -3) { //#5457 + $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5452 + if ($_.n < 9) { //#5455 + $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5454 + } //#5454 + $_.n = $_.n + 1; //#5456 + } //#5456 + $_.i = $_.i + 1; //#5458 + if ($_.i == $_.isbntxt.length) { //#5459 + break; //#5459 + } //#5459 + } //#5459 + var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5461 + $k[$j++] = 'checksum'; //#5461 + $k[$j++] = _1B; //#5461 + if (_1B == 10) { //#5461 + $j--; //#5461 + $k[$j++] = 40; //#5461 + } //#5461 + var _1C = $k[--$j]; //#5461 + $_[$k[--$j]] = $f(_1C + 48); //#5461 + $_.isbn = $geti($_.isbn, 0, 9); //#5462 + if ($_.isbntxt.length == 13) { //#5467 + if ($get($_.isbntxt, 12) != $_.checksum) { //#5466 + $k[$j++] = 'bwipp.isbn10badCheckDigit#5465'; //#5465 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5465 + bwipp_raiseerror(); //#5465 + } //#5465 + } //#5465 + } //#5465 + if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5504 + if ($_.isbntxt.length <= 13) { //#5478 + $_.pad = $s(15); //#5474 + $puti($_.pad, 0, "978-"); //#5475 + $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5476 + $_.isbntxt = $_.pad; //#5477 + } //#5477 + $_.isbn = $s(13); //#5481 + $_.checksum = 0; //#5482 + $_.i = 0; //#5483 + $_.n = 0; //#5483 + for (;;) { //#5495 + $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5485 + if ($_.isbnchar != -3) { //#5492 + $put($_.isbn, $_.n, $_.isbnchar + 48); //#5487 + if ($_.n < 12) { //#5490 + $k[$j++] = 'checksum'; //#5489 + $k[$j++] = $_.isbnchar; //#5489 + if (($_.n % 2) != 0) { //#5489 + var _1e = $k[--$j]; //#5489 + $k[$j++] = _1e * 3; //#5489 + } //#5489 + var _1g = $k[--$j]; //#5489 + $_[$k[--$j]] = $f(_1g + $_.checksum); //#5489 + } //#5489 + $_.n = $_.n + 1; //#5491 + } //#5491 + $_.i = $_.i + 1; //#5493 + if ($_.i == $_.isbntxt.length) { //#5494 + break; //#5494 + } //#5494 + } //#5494 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5496 + $_.isbn = $geti($_.isbn, 0, 12); //#5497 + if ($_.isbntxt.length == 17) { //#5502 + if ($get($_.isbntxt, 16) != $_.checksum) { //#5501 + $k[$j++] = 'bwipp.isbn13badCheckDigit#5500'; //#5500 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5500 + bwipp_raiseerror(); //#5500 + } //#5500 + } //#5500 + } //#5500 + var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5507 + $_.pad = $s(_1u); //#5507 + $puti($_.pad, 0, "ISBN "); //#5508 + $puti($_.pad, 5, $_.isbntxt); //#5509 + $put($_.pad, $_.pad.length - 2, 45); //#5510 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5511 + $_.isbntxt = $_.pad; //#5512 + $_.barcode = $s(12); //#5515 + if ($_.isbn.length == 9) { //#5520 + $puti($_.barcode, 0, "978"); //#5517 + $puti($_.barcode, 3, $_.isbn); //#5518 + } else { //#5520 + $puti($_.barcode, 0, $_.isbn); //#5520 + } //#5520 + if ($ne($_.addon, "")) { //#5530 + var _2E = $s((12 + $_.addon.length) + 1); //#5525 + $puti(_2E, 0, $_.barcode); //#5526 + $puti(_2E, 12, " "); //#5527 + $puti(_2E, 13, $_.addon); //#5528 + $_.barcode = _2E; //#5529 + } //#5529 + $put($_.options, "dontdraw", true); //#5533 + $put($_.options, "addongap", $_.addongap); //#5534 + $k[$j++] = 'args'; //#5535 + $k[$j++] = $_.barcode; //#5535 + $k[$j++] = $_.options; //#5535 + bwipp_ean13(); //#5535 + var _2M = $k[--$j]; //#5535 + $_[$k[--$j]] = _2M; //#5535 + if ($_.includetext) { //#5554 + if ($eq($_.isbntextxoffset, null)) { //#5541 + $k[$j++] = 'isbntextxoffset'; //#5540 + if ($_.isbn.length == 9) { //#5540 + $k[$j++] = -1; //#5540 + } else { //#5540 + $k[$j++] = -12; //#5540 + } //#5540 + var _2R = $k[--$j]; //#5540 + $_[$k[--$j]] = _2R; //#5540 + } //#5540 + if ($eq($_.isbntextyoffset, null)) { //#5544 + $_.isbntextyoffset = ($_.height * 72) + 3; //#5543 + } //#5543 + var _2W = $get($_.args, "txt") !== undefined; //#5545 + if (_2W) { //#5552 + $_.txt = $get($_.args, "txt"); //#5546 + $_.newtxt = $a($_.txt.length + 1); //#5547 + $puti($_.newtxt, 0, $_.txt); //#5548 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5549 + $put($_.args, "txt", $_.newtxt); //#5550 + } else { //#5552 + $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5552 + } //#5552 + } //#5552 + $put($_.args, "opt", $_.options); //#5556 + $k[$j++] = $_.args; //#5559 + if (!$_.dontdraw) { //#5559 + bwipp_renlinear(); //#5559 + } //#5559 + $_ = Object.getPrototypeOf($_); //#5561 +} //bwipp_isbn function bwipp_ismn() { - $_ = Object.create($_); //#5456 - $_.dontdraw = false; //#5459 - $_.includetext = false; //#5460 - $_.ismntextfont = 'OCR-A'; //#5461 - $_.ismntextsize = 8; //#5462 - $_.ismntextxoffset = null; //#5463 - $_.ismntextyoffset = null; //#5464 - $_.height = 1; //#5465 - $_.addongap = 12; //#5466 - $_.legacy = false; //#5467 - $k[$j++] = $_; //#5469 - bwipp_processoptions(); //#5469 - $_.options = $k[--$j]; //#5469 - $_.barcode = $k[--$j]; //#5470 - $search($_.barcode, " "); //#5473 - if ($k[--$j]) { //#5479 - $_.barcode = $k[--$j]; //#5474 - $j--; //#5475 - $_.addon = $k[--$j]; //#5476 - } else { //#5479 - $j--; //#5478 - $_.addon = ""; //#5479 - } //#5479 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5486 - $k[$j++] = 'bwipp.ismnBadLength#5485'; //#5485 - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5485 - bwipp_raiseerror(); //#5485 - } //#5485 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5489 - $k[$j++] = 'bwipp.ismnBadAddOnLength#5488'; //#5488 - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5488 - bwipp_raiseerror(); //#5488 - } //#5488 - if ($_.barcode.length >= 15) { //#5556 - if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5493 - $k[$j++] = 'bwipp.ismn13badPrefix#5492'; //#5492 - $k[$j++] = "ISMN-13 prefix must be 979-"; //#5492 - bwipp_raiseerror(); //#5492 - } //#5492 - $_.wasdash = false; //#5494 - $_.numdash = 0; //#5494 - $_.numdigit = 0; //#5494 - var _H = $geti($_.barcode, 5, 9); //#5495 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5508 - var _K = $get(_H, _I); //#5508 - $k[$j++] = _K; //#5503 - if (_K == 45) { //#5503 - if ($_.wasdash) { //#5500 - $k[$j++] = 'bwipp.ismn13adjacentDashes#5499'; //#5499 - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5499 - bwipp_raiseerror(); //#5499 - } //#5499 - $_.wasdash = true; //#5501 - $_.numdash = $_.numdash + 1; //#5502 - } //#5502 - var _N = $k[--$j]; //#5504 - if ((_N >= 48) && (_N <= 57)) { //#5507 - $_.wasdash = false; //#5505 - $_.numdigit = $_.numdigit + 1; //#5506 - } //#5506 - } //#5506 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5511 - $k[$j++] = 'bwipp.ismn13numDashesDigits#5510'; //#5510 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5510 - bwipp_raiseerror(); //#5510 - } //#5510 - var _S = $get($_.barcode, 14); //#5512 - if ((_S < 48) || (_S > 57)) { //#5514 - $k[$j++] = 'bwipp.ismn13character15#5513'; //#5513 - $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5513 - bwipp_raiseerror(); //#5513 - } //#5513 - if ($_.barcode.length == 17) { //#5522 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5518 - $k[$j++] = 'bwipp.ismn13character16#5517'; //#5517 - $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5517 - bwipp_raiseerror(); //#5517 - } //#5517 - var _X = $get($_.barcode, 16); //#5519 - if ((_X < 48) || (_X > 57)) { //#5521 - $k[$j++] = 'bwipp.ismn13character17#5520'; //#5520 - $k[$j++] = "ISMN-13 final character must be a digit"; //#5520 - bwipp_raiseerror(); //#5520 - } //#5520 - } //#5520 - } else { //#5556 - if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5526 - $k[$j++] = 'bwipp.ismn10badPrefix#5525'; //#5525 - $k[$j++] = "ISMN-10 prefix must be M-"; //#5525 - bwipp_raiseerror(); //#5525 - } //#5525 - var _b = $get($_.barcode, 2); //#5527 - if ((_b < 48) || (_b > 57)) { //#5529 - $k[$j++] = 'bwipp.ismn10character3#5528'; //#5528 - $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5528 - bwipp_raiseerror(); //#5528 - } //#5528 - $_.wasdash = false; //#5530 - $_.numdash = 0; //#5530 - $_.numdigit = 0; //#5530 - var _d = $geti($_.barcode, 3, 7); //#5531 - for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5544 - var _g = $get(_d, _e); //#5544 - $k[$j++] = _g; //#5539 - if (_g == 45) { //#5539 - if ($_.wasdash) { //#5536 - $k[$j++] = 'bwipp.ismn10adjacentDashes#5535'; //#5535 - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5535 - bwipp_raiseerror(); //#5535 - } //#5535 - $_.wasdash = true; //#5537 - $_.numdash = $_.numdash + 1; //#5538 - } //#5538 - var _j = $k[--$j]; //#5540 - if ((_j >= 48) && (_j <= 57)) { //#5543 - $_.wasdash = false; //#5541 - $_.numdigit = $_.numdigit + 1; //#5542 - } //#5542 - } //#5542 - if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5547 - $k[$j++] = 'bwipp.ismn10numDashesDigits#5546'; //#5546 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5546 - bwipp_raiseerror(); //#5546 - } //#5546 - var _o = $get($_.barcode, 10); //#5548 - if ((_o < 48) || (_o > 57)) { //#5550 - $k[$j++] = 'bwipp.ismn10character11#5549'; //#5549 - $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5549 - bwipp_raiseerror(); //#5549 - } //#5549 - if ($_.barcode.length == 13) { //#5558 - var _r = $geti($_.barcode, 11, 1); //#5552 - if ($ne(_r, "-")) { //#5554 - $k[$j++] = 'bwipp.ismn10character12#5553'; //#5553 - $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5553 - bwipp_raiseerror(); //#5553 - } //#5553 - var _t = $get($_.barcode, 12); //#5555 - if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5557 - $k[$j++] = 'bwipp.ismn10character13#5556'; //#5556 - $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5556 - bwipp_raiseerror(); //#5556 - } //#5556 - } //#5556 - } //#5556 - $_.ismntxt = $_.barcode; //#5561 - $_.legacytxt = ""; //#5564 - if ($_.ismntxt.length <= 13) { //#5571 - $_.legacytxt = $_.ismntxt; //#5566 - $_.pad = $s($_.ismntxt.length + 4); //#5567 - $puti($_.pad, 0, "979-0-"); //#5568 - $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5569 - $_.ismntxt = $_.pad; //#5570 - } //#5570 - $_.ismn = $s(13); //#5574 - $_.checksum = 0; //#5575 - $_.i = 0; //#5576 - $_.n = 0; //#5576 - for (;;) { //#5592 - $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5578 - if ($_.ismnchar != -3) { //#5589 - $put($_.ismn, $_.n, $_.ismnchar + 48); //#5580 - if ($_.n < 12) { //#5587 - if (($_.n % 2) == 0) { //#5585 - $_.checksum = $_.ismnchar + $_.checksum; //#5583 - } else { //#5585 - $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5585 - } //#5585 - } //#5585 - $_.n = $_.n + 1; //#5588 - } //#5588 - $_.i = $_.i + 1; //#5590 - if ($_.i == $_.ismntxt.length) { //#5591 - break; //#5591 - } //#5591 - } //#5591 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5593 - if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5600 - var _1Q = $_.barcode; //#5597 - if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5599 - $k[$j++] = 'bwipp.ismnBadCheckDigit#5598'; //#5598 - $k[$j++] = "Incorrect ISMN check digit provided"; //#5598 - bwipp_raiseerror(); //#5598 - } //#5598 - } //#5598 - if ($_.legacy && $ne($_.legacytxt, "")) { //#5607 - $_.ismntxt = $_.legacytxt; //#5604 - $_.pad = $s(18); //#5605 - } else { //#5607 - $_.pad = $s(22); //#5607 - } //#5607 - $puti($_.pad, 0, "ISMN "); //#5609 - $puti($_.pad, 5, $_.ismntxt); //#5610 - $put($_.pad, $_.pad.length - 2, 45); //#5611 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5612 - $_.ismntxt = $_.pad; //#5613 - $_.barcode = $geti($_.ismn, 0, 12); //#5616 - if ($ne($_.addon, "")) { //#5625 - var _1l = $s((12 + $_.addon.length) + 1); //#5620 - $puti(_1l, 0, $_.barcode); //#5621 - $puti(_1l, 12, " "); //#5622 - $puti(_1l, 13, $_.addon); //#5623 - $_.barcode = _1l; //#5624 - } //#5624 - $put($_.options, "dontdraw", true); //#5628 - $put($_.options, "addongap", $_.addongap); //#5629 - $k[$j++] = 'args'; //#5630 - $k[$j++] = $_.barcode; //#5630 - $k[$j++] = $_.options; //#5630 - bwipp_ean13(); //#5630 - var _1t = $k[--$j]; //#5630 - $_[$k[--$j]] = _1t; //#5630 - if ($_.includetext) { //#5649 - if ($eq($_.ismntextxoffset, null)) { //#5636 - $k[$j++] = 'ismntextxoffset'; //#5635 - if ($_.ismntxt.length == 18) { //#5635 - $k[$j++] = -1; //#5635 - } else { //#5635 - $k[$j++] = -12; //#5635 - } //#5635 - var _1y = $k[--$j]; //#5635 - $_[$k[--$j]] = _1y; //#5635 - } //#5635 - if ($eq($_.ismntextyoffset, null)) { //#5639 - $_.ismntextyoffset = ($_.height * 72) + 3; //#5638 - } //#5638 - var _23 = $get($_.args, "txt") !== undefined; //#5640 - if (_23) { //#5647 - $_.txt = $get($_.args, "txt"); //#5641 - $_.newtxt = $a($_.txt.length + 1); //#5642 - $puti($_.newtxt, 0, $_.txt); //#5643 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5644 - $put($_.args, "txt", $_.newtxt); //#5645 - } else { //#5647 - $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5647 + $_ = Object.create($_); //#5590 + $_.dontdraw = false; //#5593 + $_.includetext = false; //#5594 + $_.ismntextfont = 'OCR-A'; //#5595 + $_.ismntextsize = 8; //#5596 + $_.ismntextxoffset = null; //#5597 + $_.ismntextyoffset = null; //#5598 + $_.height = 1; //#5599 + $_.addongap = 12; //#5600 + $_.legacy = false; //#5601 + $k[$j++] = $_; //#5603 + bwipp_processoptions(); //#5603 + $_.options = $k[--$j]; //#5603 + $_.barcode = $k[--$j]; //#5604 + $search($_.barcode, " "); //#5607 + if ($k[--$j]) { //#5613 + $_.barcode = $k[--$j]; //#5608 + $j--; //#5609 + $_.addon = $k[--$j]; //#5610 + } else { //#5613 + $j--; //#5612 + $_.addon = ""; //#5613 + } //#5613 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5620 + $k[$j++] = 'bwipp.ismnBadLength#5619'; //#5619 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5619 + bwipp_raiseerror(); //#5619 + } //#5619 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5623 + $k[$j++] = 'bwipp.ismnBadAddOnLength#5622'; //#5622 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5622 + bwipp_raiseerror(); //#5622 + } //#5622 + if ($_.barcode.length >= 15) { //#5690 + if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5627 + $k[$j++] = 'bwipp.ismn13badPrefix#5626'; //#5626 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#5626 + bwipp_raiseerror(); //#5626 + } //#5626 + $_.wasdash = false; //#5628 + $_.numdash = 0; //#5628 + $_.numdigit = 0; //#5628 + var _H = $geti($_.barcode, 5, 9); //#5629 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5642 + var _K = $get(_H, _I); //#5642 + $k[$j++] = _K; //#5637 + if (_K == 45) { //#5637 + if ($_.wasdash) { //#5634 + $k[$j++] = 'bwipp.ismn13adjacentDashes#5633'; //#5633 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5633 + bwipp_raiseerror(); //#5633 + } //#5633 + $_.wasdash = true; //#5635 + $_.numdash = $_.numdash + 1; //#5636 + } //#5636 + var _N = $k[--$j]; //#5638 + if ((_N >= 48) && (_N <= 57)) { //#5641 + $_.wasdash = false; //#5639 + $_.numdigit = $_.numdigit + 1; //#5640 + } //#5640 + } //#5640 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5645 + $k[$j++] = 'bwipp.ismn13numDashesDigits#5644'; //#5644 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5644 + bwipp_raiseerror(); //#5644 + } //#5644 + var _S = $get($_.barcode, 14); //#5646 + if ((_S < 48) || (_S > 57)) { //#5648 + $k[$j++] = 'bwipp.ismn13character15#5647'; //#5647 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5647 + bwipp_raiseerror(); //#5647 } //#5647 - } //#5647 - $put($_.args, "opt", $_.options); //#5651 - $k[$j++] = $_.args; //#5654 - if (!$_.dontdraw) { //#5654 - bwipp_renlinear(); //#5654 - } //#5654 - $_ = Object.getPrototypeOf($_); //#5656 -} - + if ($_.barcode.length == 17) { //#5656 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5652 + $k[$j++] = 'bwipp.ismn13character16#5651'; //#5651 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5651 + bwipp_raiseerror(); //#5651 + } //#5651 + var _X = $get($_.barcode, 16); //#5653 + if ((_X < 48) || (_X > 57)) { //#5655 + $k[$j++] = 'bwipp.ismn13character17#5654'; //#5654 + $k[$j++] = "ISMN-13 final character must be a digit"; //#5654 + bwipp_raiseerror(); //#5654 + } //#5654 + } //#5654 + } else { //#5690 + if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5660 + $k[$j++] = 'bwipp.ismn10badPrefix#5659'; //#5659 + $k[$j++] = "ISMN-10 prefix must be M-"; //#5659 + bwipp_raiseerror(); //#5659 + } //#5659 + var _b = $get($_.barcode, 2); //#5661 + if ((_b < 48) || (_b > 57)) { //#5663 + $k[$j++] = 'bwipp.ismn10character3#5662'; //#5662 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5662 + bwipp_raiseerror(); //#5662 + } //#5662 + $_.wasdash = false; //#5664 + $_.numdash = 0; //#5664 + $_.numdigit = 0; //#5664 + var _d = $geti($_.barcode, 3, 7); //#5665 + for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5678 + var _g = $get(_d, _e); //#5678 + $k[$j++] = _g; //#5673 + if (_g == 45) { //#5673 + if ($_.wasdash) { //#5670 + $k[$j++] = 'bwipp.ismn10adjacentDashes#5669'; //#5669 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5669 + bwipp_raiseerror(); //#5669 + } //#5669 + $_.wasdash = true; //#5671 + $_.numdash = $_.numdash + 1; //#5672 + } //#5672 + var _j = $k[--$j]; //#5674 + if ((_j >= 48) && (_j <= 57)) { //#5677 + $_.wasdash = false; //#5675 + $_.numdigit = $_.numdigit + 1; //#5676 + } //#5676 + } //#5676 + if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5681 + $k[$j++] = 'bwipp.ismn10numDashesDigits#5680'; //#5680 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5680 + bwipp_raiseerror(); //#5680 + } //#5680 + var _o = $get($_.barcode, 10); //#5682 + if ((_o < 48) || (_o > 57)) { //#5684 + $k[$j++] = 'bwipp.ismn10character11#5683'; //#5683 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5683 + bwipp_raiseerror(); //#5683 + } //#5683 + if ($_.barcode.length == 13) { //#5692 + var _r = $geti($_.barcode, 11, 1); //#5686 + if ($ne(_r, "-")) { //#5688 + $k[$j++] = 'bwipp.ismn10character12#5687'; //#5687 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5687 + bwipp_raiseerror(); //#5687 + } //#5687 + var _t = $get($_.barcode, 12); //#5689 + if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5691 + $k[$j++] = 'bwipp.ismn10character13#5690'; //#5690 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5690 + bwipp_raiseerror(); //#5690 + } //#5690 + } //#5690 + } //#5690 + $_.ismntxt = $_.barcode; //#5695 + $_.legacytxt = ""; //#5698 + if ($_.ismntxt.length <= 13) { //#5705 + $_.legacytxt = $_.ismntxt; //#5700 + $_.pad = $s($_.ismntxt.length + 4); //#5701 + $puti($_.pad, 0, "979-0-"); //#5702 + $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5703 + $_.ismntxt = $_.pad; //#5704 + } //#5704 + $_.ismn = $s(13); //#5708 + $_.checksum = 0; //#5709 + $_.i = 0; //#5710 + $_.n = 0; //#5710 + for (;;) { //#5726 + $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5712 + if ($_.ismnchar != -3) { //#5723 + $put($_.ismn, $_.n, $_.ismnchar + 48); //#5714 + if ($_.n < 12) { //#5721 + if (($_.n % 2) == 0) { //#5719 + $_.checksum = $_.ismnchar + $_.checksum; //#5717 + } else { //#5719 + $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5719 + } //#5719 + } //#5719 + $_.n = $_.n + 1; //#5722 + } //#5722 + $_.i = $_.i + 1; //#5724 + if ($_.i == $_.ismntxt.length) { //#5725 + break; //#5725 + } //#5725 + } //#5725 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5727 + if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5734 + var _1Q = $_.barcode; //#5731 + if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5733 + $k[$j++] = 'bwipp.ismnBadCheckDigit#5732'; //#5732 + $k[$j++] = "Incorrect ISMN check digit provided"; //#5732 + bwipp_raiseerror(); //#5732 + } //#5732 + } //#5732 + if ($_.legacy && $ne($_.legacytxt, "")) { //#5741 + $_.ismntxt = $_.legacytxt; //#5738 + $_.pad = $s(18); //#5739 + } else { //#5741 + $_.pad = $s(22); //#5741 + } //#5741 + $puti($_.pad, 0, "ISMN "); //#5743 + $puti($_.pad, 5, $_.ismntxt); //#5744 + $put($_.pad, $_.pad.length - 2, 45); //#5745 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5746 + $_.ismntxt = $_.pad; //#5747 + $_.barcode = $geti($_.ismn, 0, 12); //#5750 + if ($ne($_.addon, "")) { //#5759 + var _1l = $s((12 + $_.addon.length) + 1); //#5754 + $puti(_1l, 0, $_.barcode); //#5755 + $puti(_1l, 12, " "); //#5756 + $puti(_1l, 13, $_.addon); //#5757 + $_.barcode = _1l; //#5758 + } //#5758 + $put($_.options, "dontdraw", true); //#5762 + $put($_.options, "addongap", $_.addongap); //#5763 + $k[$j++] = 'args'; //#5764 + $k[$j++] = $_.barcode; //#5764 + $k[$j++] = $_.options; //#5764 + bwipp_ean13(); //#5764 + var _1t = $k[--$j]; //#5764 + $_[$k[--$j]] = _1t; //#5764 + if ($_.includetext) { //#5783 + if ($eq($_.ismntextxoffset, null)) { //#5770 + $k[$j++] = 'ismntextxoffset'; //#5769 + if ($_.ismntxt.length == 18) { //#5769 + $k[$j++] = -1; //#5769 + } else { //#5769 + $k[$j++] = -12; //#5769 + } //#5769 + var _1y = $k[--$j]; //#5769 + $_[$k[--$j]] = _1y; //#5769 + } //#5769 + if ($eq($_.ismntextyoffset, null)) { //#5773 + $_.ismntextyoffset = ($_.height * 72) + 3; //#5772 + } //#5772 + var _23 = $get($_.args, "txt") !== undefined; //#5774 + if (_23) { //#5781 + $_.txt = $get($_.args, "txt"); //#5775 + $_.newtxt = $a($_.txt.length + 1); //#5776 + $puti($_.newtxt, 0, $_.txt); //#5777 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5778 + $put($_.args, "txt", $_.newtxt); //#5779 + } else { //#5781 + $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5781 + } //#5781 + } //#5781 + $put($_.args, "opt", $_.options); //#5785 + $k[$j++] = $_.args; //#5788 + if (!$_.dontdraw) { //#5788 + bwipp_renlinear(); //#5788 + } //#5788 + $_ = Object.getPrototypeOf($_); //#5790 +} //bwipp_ismn function bwipp_issn() { - $_ = Object.create($_); //#5685 - $_.dontdraw = false; //#5688 - $_.includetext = false; //#5689 - $_.issntextfont = 'OCR-A'; //#5690 - $_.issntextsize = 8; //#5691 - $_.issntextxoffset = null; //#5692 - $_.issntextyoffset = null; //#5693 - $_.height = 1; //#5694 - $_.addongap = 12; //#5695 - $k[$j++] = $_; //#5697 - bwipp_processoptions(); //#5697 - $_.options = $k[--$j]; //#5697 - $_.issntxt = $k[--$j]; //#5698 - $search($_.issntxt, " "); //#5701 - if ($k[--$j]) { //#5707 - $_.issntxt = $k[--$j]; //#5702 - $j--; //#5703 - $_.seqvar = $k[--$j]; //#5704 - } else { //#5707 - $j--; //#5706 - $_.seqvar = "00"; //#5707 - } //#5707 - $search($_.seqvar, " "); //#5711 - if ($k[--$j]) { //#5717 - $_.seqvar = $k[--$j]; //#5712 - $j--; //#5713 - $_.addon = $k[--$j]; //#5714 - } else { //#5717 - $j--; //#5716 - $_.addon = ""; //#5717 - } //#5717 - if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5723 - $k[$j++] = 'bwipp.issnBadLength#5722'; //#5722 - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5722 - bwipp_raiseerror(); //#5722 - } //#5722 - var _D = $geti($_.issntxt, 0, 4); //#5724 - for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5728 - var _G = $get(_D, _E); //#5728 - if ((_G < 48) || (_G > 57)) { //#5727 - $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5726'; //#5726 - $k[$j++] = "ISSN first four characters must be numeral characters"; //#5726 - bwipp_raiseerror(); //#5726 - } //#5726 - } //#5726 - if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5731 - $k[$j++] = 'bwipp.issnNeedsDash#5730'; //#5730 - $k[$j++] = "ISSN fifth character must be a dash"; //#5730 - bwipp_raiseerror(); //#5730 - } //#5730 - var _K = $geti($_.issntxt, 5, 3); //#5732 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5736 - var _N = $get(_K, _L); //#5736 - if ((_N < 48) || (_N > 57)) { //#5735 - $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5734'; //#5734 - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5734 - bwipp_raiseerror(); //#5734 - } //#5734 - } //#5734 - if ($_.issntxt.length == 9) { //#5741 - var _Q = $get($_.issntxt, 8); //#5738 - if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5740 - $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5739'; //#5739 - $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5739 - bwipp_raiseerror(); //#5739 - } //#5739 - } //#5739 - if ($_.seqvar.length != 2) { //#5744 - $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5743'; //#5743 - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5743 - bwipp_raiseerror(); //#5743 - } //#5743 - $forall($_.seqvar, function() { //#5749 - var _T = $k[--$j]; //#5746 - if ((_T < 48) || (_T > 57)) { //#5748 - $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5747'; //#5747 - $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5747 - bwipp_raiseerror(); //#5747 - } //#5747 - }); //#5747 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5752 - $k[$j++] = 'bwipp.issnBadAddOnLength#5751'; //#5751 - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5751 - bwipp_raiseerror(); //#5751 - } //#5751 - $_.issn = $s(8); //#5755 - $_.checksum = 0; //#5756 - $_.i = 0; //#5757 - $_.n = 0; //#5757 - for (;;) { //#5769 - $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5759 - if ($_.issnchar != -3) { //#5766 - $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5761 - if ($_.n < 7) { //#5764 - $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5763 - } //#5763 - $_.n = $_.n + 1; //#5765 - } //#5765 - $_.i = $_.i + 1; //#5767 - if ($_.i == $_.issntxt.length) { //#5768 - break; //#5768 - } //#5768 - } //#5768 - $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5770 - var _p = $f($_.checksum + 48); //#5771 - $k[$j++] = 'checksum'; //#5771 - $k[$j++] = _p; //#5771 - if (_p == 58) { //#5771 - $j--; //#5771 - $k[$j++] = 88; //#5771 - } //#5771 - var _q = $k[--$j]; //#5771 - var _r = $k[--$j]; //#5771 - $_[_r] = _q; //#5771 - if ($_.issntxt.length == 9) { //#5776 - if ($get($_.issntxt, 8) != $_.checksum) { //#5775 - $k[$j++] = 'bwipp.issnBadCheckDigit#5774'; //#5774 - $k[$j++] = "Incorrect ISSN check digit provided"; //#5774 - bwipp_raiseerror(); //#5774 - } //#5774 - } //#5774 - $_.pad = $s(14); //#5779 - $puti($_.pad, 0, "ISSN "); //#5780 - $puti($_.pad, 5, $_.issntxt); //#5781 - $put($_.pad, 13, $_.checksum); //#5782 - $_.issntxt = $_.pad; //#5783 - $_.barcode = $geti($_.issn, 0, 7); //#5786 - $_.barcode = $s(12); //#5789 - $puti($_.barcode, 0, "977"); //#5790 - $puti($_.barcode, 3, $_.issn); //#5791 - $puti($_.barcode, 10, $_.seqvar); //#5792 - if ($ne($_.addon, "")) { //#5801 - var _1D = $s((12 + $_.addon.length) + 1); //#5796 - $puti(_1D, 0, $_.barcode); //#5797 - $puti(_1D, 12, " "); //#5798 - $puti(_1D, 13, $_.addon); //#5799 - $_.barcode = _1D; //#5800 - } //#5800 - $put($_.options, "dontdraw", true); //#5804 - $put($_.options, "addongap", $_.addongap); //#5805 - $k[$j++] = 'args'; //#5806 - $k[$j++] = $_.barcode; //#5806 - $k[$j++] = $_.options; //#5806 - bwipp_ean13(); //#5806 - var _1L = $k[--$j]; //#5806 - $_[$k[--$j]] = _1L; //#5806 - if ($_.includetext) { //#5821 - if ($eq($_.issntextxoffset, null)) { //#5810 - $_.issntextxoffset = 10; //#5810 - } //#5810 - if ($eq($_.issntextyoffset, null)) { //#5811 - $_.issntextyoffset = ($_.height * 72) + 3; //#5811 - } //#5811 - var _1S = $get($_.args, "txt") !== undefined; //#5812 - if (_1S) { //#5819 - $_.txt = $get($_.args, "txt"); //#5813 - $_.newtxt = $a($_.txt.length + 1); //#5814 - $puti($_.newtxt, 0, $_.txt); //#5815 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5816 - $put($_.args, "txt", $_.newtxt); //#5817 - } else { //#5819 - $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5819 - } //#5819 - } //#5819 - $put($_.args, "opt", $_.options); //#5823 - $k[$j++] = $_.args; //#5826 - if (!$_.dontdraw) { //#5826 - bwipp_renlinear(); //#5826 - } //#5826 - $_ = Object.getPrototypeOf($_); //#5828 -} - + $_ = Object.create($_); //#5819 + $_.dontdraw = false; //#5822 + $_.includetext = false; //#5823 + $_.issntextfont = 'OCR-A'; //#5824 + $_.issntextsize = 8; //#5825 + $_.issntextxoffset = null; //#5826 + $_.issntextyoffset = null; //#5827 + $_.height = 1; //#5828 + $_.addongap = 12; //#5829 + $k[$j++] = $_; //#5831 + bwipp_processoptions(); //#5831 + $_.options = $k[--$j]; //#5831 + $_.issntxt = $k[--$j]; //#5832 + $search($_.issntxt, " "); //#5835 + if ($k[--$j]) { //#5841 + $_.issntxt = $k[--$j]; //#5836 + $j--; //#5837 + $_.seqvar = $k[--$j]; //#5838 + } else { //#5841 + $j--; //#5840 + $_.seqvar = "00"; //#5841 + } //#5841 + $search($_.seqvar, " "); //#5845 + if ($k[--$j]) { //#5851 + $_.seqvar = $k[--$j]; //#5846 + $j--; //#5847 + $_.addon = $k[--$j]; //#5848 + } else { //#5851 + $j--; //#5850 + $_.addon = ""; //#5851 + } //#5851 + if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5857 + $k[$j++] = 'bwipp.issnBadLength#5856'; //#5856 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5856 + bwipp_raiseerror(); //#5856 + } //#5856 + var _D = $geti($_.issntxt, 0, 4); //#5858 + for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5862 + var _G = $get(_D, _E); //#5862 + if ((_G < 48) || (_G > 57)) { //#5861 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5860'; //#5860 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#5860 + bwipp_raiseerror(); //#5860 + } //#5860 + } //#5860 + if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5865 + $k[$j++] = 'bwipp.issnNeedsDash#5864'; //#5864 + $k[$j++] = "ISSN fifth character must be a dash"; //#5864 + bwipp_raiseerror(); //#5864 + } //#5864 + var _K = $geti($_.issntxt, 5, 3); //#5866 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5870 + var _N = $get(_K, _L); //#5870 + if ((_N < 48) || (_N > 57)) { //#5869 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5868'; //#5868 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5868 + bwipp_raiseerror(); //#5868 + } //#5868 + } //#5868 + if ($_.issntxt.length == 9) { //#5875 + var _Q = $get($_.issntxt, 8); //#5872 + if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5874 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5873'; //#5873 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5873 + bwipp_raiseerror(); //#5873 + } //#5873 + } //#5873 + if ($_.seqvar.length != 2) { //#5878 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5877'; //#5877 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5877 + bwipp_raiseerror(); //#5877 + } //#5877 + $forall($_.seqvar, function() { //#5883 + var _T = $k[--$j]; //#5880 + if ((_T < 48) || (_T > 57)) { //#5882 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5881'; //#5881 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5881 + bwipp_raiseerror(); //#5881 + } //#5881 + }); //#5881 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5886 + $k[$j++] = 'bwipp.issnBadAddOnLength#5885'; //#5885 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5885 + bwipp_raiseerror(); //#5885 + } //#5885 + $_.issn = $s(8); //#5889 + $_.checksum = 0; //#5890 + $_.i = 0; //#5891 + $_.n = 0; //#5891 + for (;;) { //#5903 + $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5893 + if ($_.issnchar != -3) { //#5900 + $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5895 + if ($_.n < 7) { //#5898 + $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5897 + } //#5897 + $_.n = $_.n + 1; //#5899 + } //#5899 + $_.i = $_.i + 1; //#5901 + if ($_.i == $_.issntxt.length) { //#5902 + break; //#5902 + } //#5902 + } //#5902 + $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5904 + var _p = $f($_.checksum + 48); //#5905 + $k[$j++] = 'checksum'; //#5905 + $k[$j++] = _p; //#5905 + if (_p == 58) { //#5905 + $j--; //#5905 + $k[$j++] = 88; //#5905 + } //#5905 + var _q = $k[--$j]; //#5905 + var _r = $k[--$j]; //#5905 + $_[_r] = _q; //#5905 + if ($_.issntxt.length == 9) { //#5910 + if ($get($_.issntxt, 8) != $_.checksum) { //#5909 + $k[$j++] = 'bwipp.issnBadCheckDigit#5908'; //#5908 + $k[$j++] = "Incorrect ISSN check digit provided"; //#5908 + bwipp_raiseerror(); //#5908 + } //#5908 + } //#5908 + $_.pad = $s(14); //#5913 + $puti($_.pad, 0, "ISSN "); //#5914 + $puti($_.pad, 5, $_.issntxt); //#5915 + $put($_.pad, 13, $_.checksum); //#5916 + $_.issntxt = $_.pad; //#5917 + $_.barcode = $geti($_.issn, 0, 7); //#5920 + $_.barcode = $s(12); //#5923 + $puti($_.barcode, 0, "977"); //#5924 + $puti($_.barcode, 3, $_.issn); //#5925 + $puti($_.barcode, 10, $_.seqvar); //#5926 + if ($ne($_.addon, "")) { //#5935 + var _1D = $s((12 + $_.addon.length) + 1); //#5930 + $puti(_1D, 0, $_.barcode); //#5931 + $puti(_1D, 12, " "); //#5932 + $puti(_1D, 13, $_.addon); //#5933 + $_.barcode = _1D; //#5934 + } //#5934 + $put($_.options, "dontdraw", true); //#5938 + $put($_.options, "addongap", $_.addongap); //#5939 + $k[$j++] = 'args'; //#5940 + $k[$j++] = $_.barcode; //#5940 + $k[$j++] = $_.options; //#5940 + bwipp_ean13(); //#5940 + var _1L = $k[--$j]; //#5940 + $_[$k[--$j]] = _1L; //#5940 + if ($_.includetext) { //#5955 + if ($eq($_.issntextxoffset, null)) { //#5944 + $_.issntextxoffset = 10; //#5944 + } //#5944 + if ($eq($_.issntextyoffset, null)) { //#5945 + $_.issntextyoffset = ($_.height * 72) + 3; //#5945 + } //#5945 + var _1S = $get($_.args, "txt") !== undefined; //#5946 + if (_1S) { //#5953 + $_.txt = $get($_.args, "txt"); //#5947 + $_.newtxt = $a($_.txt.length + 1); //#5948 + $puti($_.newtxt, 0, $_.txt); //#5949 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5950 + $put($_.args, "txt", $_.newtxt); //#5951 + } else { //#5953 + $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5953 + } //#5953 + } //#5953 + $put($_.args, "opt", $_.options); //#5957 + $k[$j++] = $_.args; //#5960 + if (!$_.dontdraw) { //#5960 + bwipp_renlinear(); //#5960 + } //#5960 + $_ = Object.getPrototypeOf($_); //#5962 +} //bwipp_issn function bwipp_mands() { - $_ = Object.create($_); //#5857 - $_.dontdraw = false; //#5860 - $_.includetext = false; //#5861 - $k[$j++] = $_; //#5863 - bwipp_processoptions(); //#5863 - $_.options = $k[--$j]; //#5863 - $_.barcode = $k[--$j]; //#5864 - $_.barlen = $_.barcode.length; //#5866 - if (($_.barlen != 7) && ($_.barlen != 8)) { //#5871 - $k[$j++] = 'bwipp.MandSbadLength#5870'; //#5870 - $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#5870 - bwipp_raiseerror(); //#5870 - } //#5870 - if ($_.barlen == 7) { //#5875 - var _7 = $strcpy($s(8), "00000000"); //#5874 - $puti(_7, 1, $_.barcode); //#5874 - $_.barcode = _7; //#5874 - } //#5874 - $put($_.options, "dontdraw", true); //#5878 - $k[$j++] = 'args'; //#5879 - $k[$j++] = $_.barcode; //#5879 - $k[$j++] = $_.options; //#5879 - bwipp_ean8(); //#5879 - var _C = $k[--$j]; //#5879 - $_[$k[--$j]] = _C; //#5879 - var _F = $get($_.args, "bbs"); //#5882 - $put(_F, 10, $get(_F, 2)); //#5883 - $put(_F, 11, $get(_F, 2)); //#5884 - var _J = $get($_.args, "bhs"); //#5885 - $put(_J, 10, $get(_J, 2)); //#5886 - $put(_J, 11, $get(_J, 2)); //#5887 - $_.txt = $get($_.args, "txt"); //#5890 - if ($_.barlen == 7) { //#5898 - for (var _P = 0; _P <= 6; _P += 1) { //#5896 - var _Q = $_.txt; //#5893 - $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#5895 - } //#5895 - $puti($get($get($_.txt, 7), 0), 0, " "); //#5897 - } //#5897 - var _Y = $a(10); //#5901 - $puti(_Y, 0, $_.txt); //#5901 - $_.txt = _Y; //#5901 - var _b = $get($_.txt, 0); //#5902 - $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#5902 - var _g = $get($_.txt, 0); //#5903 - $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#5903 - $put($get($_.txt, 8), 0, "M"); //#5904 - $put($get($_.txt, 8), 1, -12); //#5904 - $put($get($_.txt, 9), 0, "S"); //#5905 - var _r = $get($_.txt, 9); //#5905 - $put(_r, 1, 69); //#5905 - $put($_.args, "txt", $_.txt); //#5907 - $put($_.args, "opt", $_.options); //#5908 - $k[$j++] = $_.args; //#5911 - if (!$_.dontdraw) { //#5911 - bwipp_renlinear(); //#5911 - } //#5911 - $_ = Object.getPrototypeOf($_); //#5913 -} - + $_ = Object.create($_); //#5991 + $_.dontdraw = false; //#5994 + $_.includetext = false; //#5995 + $k[$j++] = $_; //#5997 + bwipp_processoptions(); //#5997 + $_.options = $k[--$j]; //#5997 + $_.barcode = $k[--$j]; //#5998 + $_.barlen = $_.barcode.length; //#6000 + if (($_.barlen != 7) && ($_.barlen != 8)) { //#6005 + $k[$j++] = 'bwipp.MandSbadLength#6004'; //#6004 + $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#6004 + bwipp_raiseerror(); //#6004 + } //#6004 + if ($_.barlen == 7) { //#6009 + var _7 = $strcpy($s(8), "00000000"); //#6008 + $puti(_7, 1, $_.barcode); //#6008 + $_.barcode = _7; //#6008 + } //#6008 + $put($_.options, "dontdraw", true); //#6012 + $k[$j++] = 'args'; //#6013 + $k[$j++] = $_.barcode; //#6013 + $k[$j++] = $_.options; //#6013 + bwipp_ean8(); //#6013 + var _C = $k[--$j]; //#6013 + $_[$k[--$j]] = _C; //#6013 + var _F = $get($_.args, "bbs"); //#6016 + $put(_F, 10, $get(_F, 2)); //#6017 + $put(_F, 11, $get(_F, 2)); //#6018 + var _J = $get($_.args, "bhs"); //#6019 + $put(_J, 10, $get(_J, 2)); //#6020 + $put(_J, 11, $get(_J, 2)); //#6021 + $_.txt = $get($_.args, "txt"); //#6024 + if ($_.barlen == 7) { //#6032 + for (var _P = 0; _P <= 6; _P += 1) { //#6030 + var _Q = $_.txt; //#6027 + $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#6029 + } //#6029 + $puti($get($get($_.txt, 7), 0), 0, " "); //#6031 + } //#6031 + var _Y = $a(10); //#6035 + $puti(_Y, 0, $_.txt); //#6035 + $_.txt = _Y; //#6035 + var _b = $get($_.txt, 0); //#6036 + $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#6036 + var _g = $get($_.txt, 0); //#6037 + $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#6037 + $put($get($_.txt, 8), 0, "M"); //#6038 + $put($get($_.txt, 8), 1, -12); //#6038 + $put($get($_.txt, 9), 0, "S"); //#6039 + var _r = $get($_.txt, 9); //#6039 + $put(_r, 1, 69); //#6039 + $put($_.args, "txt", $_.txt); //#6041 + $put($_.args, "opt", $_.options); //#6042 + $k[$j++] = $_.args; //#6045 + if (!$_.dontdraw) { //#6045 + bwipp_renlinear(); //#6045 + } //#6045 + $_ = Object.getPrototypeOf($_); //#6047 +} //bwipp_mands function bwipp_code128() { - $_ = Object.create($_); //#5944 - $_.dontdraw = false; //#5947 - $_.includetext = false; //#5948 - $_.textfont = "OCR-B"; //#5949 - $_.textsize = 10; //#5950 - $_.textxoffset = 0; //#5951 - $_.textyoffset = -8; //#5952 - $_.height = 1; //#5953 - $_.encoding = "auto"; //#5954 - $_.raw = false; //#5955 - $_.parse = false; //#5956 - $_.parsefnc = false; //#5957 - $k[$j++] = $_; //#5959 - bwipp_processoptions(); //#5959 - $_.options = $k[--$j]; //#5959 - $_.barcode = $k[--$j]; //#5960 - bwipp_loadctx(bwipp_code128) //#5962 - if (!bwipp_code128.__5971__) { //#5971 - $_ = Object.create($_); //#5971 - $_.sta = -1; //#5966 - $_.stb = -2; //#5966 - $_.stc = -3; //#5966 - $_.swa = -4; //#5967 - $_.swb = -5; //#5967 - $_.swc = -6; //#5967 - $_.fn1 = -7; //#5968 - $_.fn2 = -8; //#5968 - $_.fn3 = -9; //#5968 - $_.fn4 = -10; //#5969 - $_.sft = -11; //#5969 - $_.stp = -12; //#5969 - $_.lka = -13; //#5970 - $_.lkc = -14; //#5970 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#5970 - bwipp_code128.__5971__ = 1; //#5970 - $_ = Object.getPrototypeOf($_); //#5970 - } //#5970 - var _6 = $_.fn1; //#5978 + $_ = Object.create($_); //#6078 + $_.dontdraw = false; //#6081 + $_.includetext = false; //#6082 + $_.textfont = "OCR-B"; //#6083 + $_.textsize = 10; //#6084 + $_.textxoffset = 0; //#6085 + $_.textyoffset = -8; //#6086 + $_.height = 1; //#6087 + $_.encoding = "auto"; //#6088 + $_.raw = false; //#6089 + $_.parse = false; //#6090 + $_.parsefnc = false; //#6091 + $k[$j++] = $_; //#6093 + bwipp_processoptions(); //#6093 + $_.options = $k[--$j]; //#6093 + $_.barcode = $k[--$j]; //#6094 + bwipp_loadctx(bwipp_code128) //#6096 + if (!bwipp_code128.__6105__) { //#6105 + $_ = Object.create($_); //#6105 + $_.sta = -1; //#6100 + $_.stb = -2; //#6100 + $_.stc = -3; //#6100 + $_.swa = -4; //#6101 + $_.swb = -5; //#6101 + $_.swc = -6; //#6101 + $_.fn1 = -7; //#6102 + $_.fn2 = -8; //#6102 + $_.fn3 = -9; //#6102 + $_.fn4 = -10; //#6103 + $_.sft = -11; //#6103 + $_.stp = -12; //#6103 + $_.lka = -13; //#6104 + $_.lkc = -14; //#6104 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6104 + bwipp_code128.__6105__ = 1; //#6104 + $_ = Object.getPrototypeOf($_); //#6104 + } //#6104 + var _6 = $_.fn1; //#6112 var _B = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -8786,1270 +9045,1267 @@ function bwipp_code128() { ["FNC3", $_.fn3], ["LNKA", $_.lka], ["LNKC", $_.lkc] - ]); //#5983 - $_.fncvals = _B; //#5984 - $k[$j++] = 'msg'; //#5985 - $k[$j++] = $_.barcode; //#5985 - $k[$j++] = $_.fncvals; //#5985 - bwipp_parseinput(); //#5985 - var _E = $k[--$j]; //#5985 - $_[$k[--$j]] = _E; //#5985 - $_.msglen = $_.msg.length; //#5986 - if (!bwipp_code128.__6044__) { //#6044 - $_ = Object.create($_); //#6044 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6028 - $_.charvals = $a([new Map, new Map, new Map]); //#6031 - for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6040 - $_.i = _2X; //#6033 - $_.encs = $get($_.charmaps, $_.i); //#6034 - for (var _2b = 0; _2b <= 2; _2b += 1) { //#6039 - $_.j = _2b; //#6036 - var _2e = $get($_.encs, $_.j); //#6037 - $k[$j++] = _2e; //#6037 - if ($eq($type(_2e), 'stringtype')) { //#6037 - var _2h = $get($k[--$j], 0); //#6037 - $k[$j++] = _2h; //#6037 - } //#6037 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6038 - } //#6038 - } //#6038 - $_.seta = $get($_.charvals, 0); //#6041 - $_.setb = $get($_.charvals, 1); //#6042 - $_.setc = $get($_.charvals, 2); //#6043 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6043 - bwipp_code128.__6044__ = 1; //#6043 - $_ = Object.getPrototypeOf($_); //#6043 - } //#6043 - $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6047 - $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6047 - $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6048 - $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6048 - $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6049 - $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6049 - if ($_.raw) { //#6051 - $_.encoding = "raw"; //#6051 - } //#6051 - if ($eq($_.encoding, "raw")) { //#6065 - $_.cws = $a($_.barcode.length); //#6054 - $_.i = 0; //#6055 - $_.j = 0; //#6055 - for (;;) { //#6062 - if ($_.i == $_.barcode.length) { //#6057 - break; //#6057 - } //#6057 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6058 - $put($_.cws, $_.j, $_.cw); //#6059 - $_.i = $_.i + 4; //#6060 - $_.j = $_.j + 1; //#6061 - } //#6061 - $_.cws = $geti($_.cws, 0, $_.j); //#6063 - $_.text = ""; //#6064 - } //#6064 - if ($eq($_.encoding, "auto")) { //#6290 - $_.text = $s($_.msglen); //#6069 - for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6073 - $_.i = _3k; //#6071 - var _3p = $get($_.msg, $_.i); //#6072 - $k[$j++] = $_.text; //#6072 - $k[$j++] = $_.i; //#6072 - $k[$j++] = _3p; //#6072 - if (_3p < 0) { //#6072 - $j--; //#6072 - $k[$j++] = 32; //#6072 - } //#6072 - var _3q = $k[--$j]; //#6072 - var _3r = $k[--$j]; //#6072 - $put($k[--$j], _3r, _3q); //#6072 - } //#6072 - $k[$j++] = Infinity; //#6076 - for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6076 - $k[$j++] = 0; //#6076 - } //#6076 - $k[$j++] = 0; //#6076 - $_.numSA = $a(); //#6076 - $k[$j++] = Infinity; //#6077 - for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6077 - $k[$j++] = 0; //#6077 - } //#6077 - $k[$j++] = 0; //#6077 - $_.numEA = $a(); //#6077 - for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6087 - $_.i = _42; //#6079 - if ($get($_.msg, $_.i) >= 0) { //#6086 - if ($get($_.msg, $_.i) >= 128) { //#6084 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6082 - } else { //#6084 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6084 - } //#6084 - } //#6084 - } //#6084 - $_.ea = false; //#6090 - $_.msgtmp = $a([]); //#6090 - for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6105 - $_.i = _4M; //#6092 - $_.c = $get($_.msg, $_.i); //#6093 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6103 - if ($_.ea) { //#6095 - $k[$j++] = $_.numSA; //#6095 - } else { //#6095 - $k[$j++] = $_.numEA; //#6095 - } //#6095 - var _4Y = $get($k[--$j], $_.i); //#6095 - var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6096 - if (_4Y < _4b) { //#6101 - $k[$j++] = Infinity; //#6098 - $aload($_.msgtmp); //#6098 - $k[$j++] = $_.fn4; //#6098 - $_.msgtmp = $a(); //#6098 - } else { //#6101 - $k[$j++] = Infinity; //#6100 - $aload($_.msgtmp); //#6100 - $k[$j++] = $_.fn4; //#6100 - $k[$j++] = $_.fn4; //#6100 - $_.msgtmp = $a(); //#6100 - $_.ea = !$_.ea; //#6101 - } //#6101 - } //#6101 - $k[$j++] = Infinity; //#6104 - $aload($_.msgtmp); //#6104 - if ($_.c >= 0) { //#6104 - $k[$j++] = $_.c & 127; //#6104 - } else { //#6104 - $k[$j++] = $_.c; //#6104 - } //#6104 - $_.msgtmp = $a(); //#6104 - } //#6104 - $_.msg = $_.msgtmp; //#6106 - $_.msglen = $_.msg.length; //#6107 + ]); //#6117 + $_.fncvals = _B; //#6118 + $k[$j++] = 'msg'; //#6119 + $k[$j++] = $_.barcode; //#6119 + $k[$j++] = $_.fncvals; //#6119 + bwipp_parseinput(); //#6119 + var _E = $k[--$j]; //#6119 + $_[$k[--$j]] = _E; //#6119 + $_.msglen = $_.msg.length; //#6120 + if (!bwipp_code128.__6178__) { //#6178 + $_ = Object.create($_); //#6178 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6162 + $_.charvals = $a([new Map, new Map, new Map]); //#6165 + for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6174 + $_.i = _2X; //#6167 + $_.encs = $get($_.charmaps, $_.i); //#6168 + for (var _2b = 0; _2b <= 2; _2b += 1) { //#6173 + $_.j = _2b; //#6170 + var _2e = $get($_.encs, $_.j); //#6171 + $k[$j++] = _2e; //#6171 + if ($eq($type(_2e), 'stringtype')) { //#6171 + var _2h = $get($k[--$j], 0); //#6171 + $k[$j++] = _2h; //#6171 + } //#6171 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6172 + } //#6172 + } //#6172 + $_.seta = $get($_.charvals, 0); //#6175 + $_.setb = $get($_.charvals, 1); //#6176 + $_.setc = $get($_.charvals, 2); //#6177 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6177 + bwipp_code128.__6178__ = 1; //#6177 + $_ = Object.getPrototypeOf($_); //#6177 + } //#6177 + $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6181 + $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6181 + $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6182 + $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6182 + $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6183 + $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6183 + if ($_.raw) { //#6185 + $_.encoding = "raw"; //#6185 + } //#6185 + if ($eq($_.encoding, "raw")) { //#6199 + $_.cws = $a($_.barcode.length); //#6188 + $_.i = 0; //#6189 + $_.j = 0; //#6189 + for (;;) { //#6196 + if ($_.i == $_.barcode.length) { //#6191 + break; //#6191 + } //#6191 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6192 + $put($_.cws, $_.j, $_.cw); //#6193 + $_.i = $_.i + 4; //#6194 + $_.j = $_.j + 1; //#6195 + } //#6195 + $_.cws = $geti($_.cws, 0, $_.j); //#6197 + $_.text = ""; //#6198 + } //#6198 + if ($eq($_.encoding, "auto")) { //#6424 + $_.text = $s($_.msglen); //#6203 + for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6207 + $_.i = _3k; //#6205 + var _3p = $get($_.msg, $_.i); //#6206 + $k[$j++] = $_.text; //#6206 + $k[$j++] = $_.i; //#6206 + $k[$j++] = _3p; //#6206 + if (_3p < 0) { //#6206 + $j--; //#6206 + $k[$j++] = 32; //#6206 + } //#6206 + var _3q = $k[--$j]; //#6206 + var _3r = $k[--$j]; //#6206 + $put($k[--$j], _3r, _3q); //#6206 + } //#6206 + $k[$j++] = Infinity; //#6210 + for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6210 + $k[$j++] = 0; //#6210 + } //#6210 + $k[$j++] = 0; //#6210 + $_.numSA = $a(); //#6210 + $k[$j++] = Infinity; //#6211 + for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6211 + $k[$j++] = 0; //#6211 + } //#6211 + $k[$j++] = 0; //#6211 + $_.numEA = $a(); //#6211 + for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6221 + $_.i = _42; //#6213 + if ($get($_.msg, $_.i) >= 0) { //#6220 + if ($get($_.msg, $_.i) >= 128) { //#6218 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6216 + } else { //#6218 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6218 + } //#6218 + } //#6218 + } //#6218 + $_.ea = false; //#6224 + $_.msgtmp = $a([]); //#6224 + for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6239 + $_.i = _4M; //#6226 + $_.c = $get($_.msg, $_.i); //#6227 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6237 + if ($_.ea) { //#6229 + $k[$j++] = $_.numSA; //#6229 + } else { //#6229 + $k[$j++] = $_.numEA; //#6229 + } //#6229 + var _4Y = $get($k[--$j], $_.i); //#6229 + var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6230 + if (_4Y < _4b) { //#6235 + $k[$j++] = Infinity; //#6232 + $aload($_.msgtmp); //#6232 + $k[$j++] = $_.fn4; //#6232 + $_.msgtmp = $a(); //#6232 + } else { //#6235 + $k[$j++] = Infinity; //#6234 + $aload($_.msgtmp); //#6234 + $k[$j++] = $_.fn4; //#6234 + $k[$j++] = $_.fn4; //#6234 + $_.msgtmp = $a(); //#6234 + $_.ea = !$_.ea; //#6235 + } //#6235 + } //#6235 + $k[$j++] = Infinity; //#6238 + $aload($_.msgtmp); //#6238 + if ($_.c >= 0) { //#6238 + $k[$j++] = $_.c & 127; //#6238 + } else { //#6238 + $k[$j++] = $_.c; //#6238 + } //#6238 + $_.msgtmp = $a(); //#6238 + } //#6238 + $_.msg = $_.msgtmp; //#6240 + $_.msglen = $_.msg.length; //#6241 $_.numsscr = function() { - $_.n = 0; //#6111 - $_.s = 0; //#6111 - $_.p = $k[--$j]; //#6112 - for (;;) { //#6125 - if ($_.p >= $_.msglen) { //#6113 - break; //#6113 - } //#6113 - var _4w = $get($_.msg, $_.p); //#6114 - var _4y = $get($_.setc, _4w) !== undefined; //#6115 - $k[$j++] = _4w; //#6115 - if (!_4y) { //#6115 - $j--; //#6115 - break; //#6115 - } //#6115 - var _4z = $k[--$j]; //#6116 - $k[$j++] = _4z; //#6121 - if (_4z <= -1) { //#6120 - var _51 = $k[--$j]; //#6118 - if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6118 - $_.s = $_.s + 1; //#6118 - } else { //#6118 - break; //#6118 - } //#6118 - } else { //#6120 - $j--; //#6120 - } //#6120 - $_.n = $_.n + 1; //#6122 - $_.s = $_.s + 1; //#6123 - $_.p = $f($_.p + 1); //#6124 - } //#6124 - $k[$j++] = $_.n; //#6126 - $k[$j++] = $_.s; //#6126 - }; //#6126 + $_.n = 0; //#6245 + $_.s = 0; //#6245 + $_.p = $k[--$j]; //#6246 + for (;;) { //#6259 + if ($_.p >= $_.msglen) { //#6247 + break; //#6247 + } //#6247 + var _4w = $get($_.msg, $_.p); //#6248 + var _4y = $get($_.setc, _4w) !== undefined; //#6249 + $k[$j++] = _4w; //#6249 + if (!_4y) { //#6249 + $j--; //#6249 + break; //#6249 + } //#6249 + var _4z = $k[--$j]; //#6250 + $k[$j++] = _4z; //#6255 + if (_4z <= -1) { //#6254 + var _51 = $k[--$j]; //#6252 + if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6252 + $_.s = $_.s + 1; //#6252 + } else { //#6252 + break; //#6252 + } //#6252 + } else { //#6254 + $j--; //#6254 + } //#6254 + $_.n = $_.n + 1; //#6256 + $_.s = $_.s + 1; //#6257 + $_.p = $f($_.p + 1); //#6258 + } //#6258 + $k[$j++] = $_.n; //#6260 + $k[$j++] = $_.s; //#6260 + }; //#6260 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6131 - $_.j = $_.j + 1; //#6132 - }; //#6132 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6265 + $_.j = $_.j + 1; //#6266 + }; //#6266 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6135 - $_.j = $_.j + 1; //#6136 - }; //#6136 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6269 + $_.j = $_.j + 1; //#6270 + }; //#6270 $_.encc = function() { - var _5L = $k[--$j]; //#6139 - $k[$j++] = _5L; //#6143 - if ($ne($type(_5L), 'arraytype')) { //#6142 - var _5P = $get($_.setc, $k[--$j]); //#6140 - $k[$j++] = _5P; //#6140 - } else { //#6142 - $aload($k[--$j]); //#6142 - var _5R = $k[--$j]; //#6142 - var _5S = $k[--$j]; //#6142 - $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6142 - } //#6142 - $put($_.cws, $_.j, $k[--$j]); //#6144 - $_.j = $_.j + 1; //#6145 - }; //#6145 + var _5L = $k[--$j]; //#6273 + $k[$j++] = _5L; //#6277 + if ($ne($type(_5L), 'arraytype')) { //#6276 + var _5P = $get($_.setc, $k[--$j]); //#6274 + $k[$j++] = _5P; //#6274 + } else { //#6276 + $aload($k[--$j]); //#6276 + var _5R = $k[--$j]; //#6276 + var _5S = $k[--$j]; //#6276 + $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6276 + } //#6276 + $put($_.cws, $_.j, $k[--$j]); //#6278 + $_.j = $_.j + 1; //#6279 + }; //#6279 $_.anotb = function() { - var _5X = $k[--$j]; //#6149 - var _5Z = $get($_.seta, _5X) !== undefined; //#6149 - var _5b = $get($_.setb, _5X) !== undefined; //#6149 - $k[$j++] = _5Z && (!_5b); //#6149 - }; //#6149 + var _5X = $k[--$j]; //#6283 + var _5Z = $get($_.seta, _5X) !== undefined; //#6283 + var _5b = $get($_.setb, _5X) !== undefined; //#6283 + $k[$j++] = _5Z && (!_5b); //#6283 + }; //#6283 $_.bnota = function() { - var _5c = $k[--$j]; //#6150 - var _5e = $get($_.setb, _5c) !== undefined; //#6150 - var _5g = $get($_.seta, _5c) !== undefined; //#6150 - $k[$j++] = _5e && (!_5g); //#6150 - }; //#6150 - $k[$j++] = Infinity; //#6153 - for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6153 - $k[$j++] = 0; //#6153 - } //#6153 - $k[$j++] = 9999; //#6153 - $_.nextanotb = $a(); //#6153 - $k[$j++] = Infinity; //#6154 - for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6154 - $k[$j++] = 0; //#6154 - } //#6154 - $k[$j++] = 9999; //#6154 - $_.nextbnota = $a(); //#6154 - for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6167 - $_.i = _5q; //#6156 - $k[$j++] = $get($_.msg, $_.i); //#6157 - $_.anotb(); //#6157 - if ($k[--$j]) { //#6160 - $put($_.nextanotb, $_.i, 0); //#6158 - } else { //#6160 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6160 - } //#6160 - $k[$j++] = $get($_.msg, $_.i); //#6162 - $_.bnota(); //#6162 - if ($k[--$j]) { //#6165 - $put($_.nextbnota, $_.i, 0); //#6163 - } else { //#6165 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6165 - } //#6165 - } //#6165 + var _5c = $k[--$j]; //#6284 + var _5e = $get($_.setb, _5c) !== undefined; //#6284 + var _5g = $get($_.seta, _5c) !== undefined; //#6284 + $k[$j++] = _5e && (!_5g); //#6284 + }; //#6284 + $k[$j++] = Infinity; //#6287 + for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6287 + $k[$j++] = 0; //#6287 + } //#6287 + $k[$j++] = 9999; //#6287 + $_.nextanotb = $a(); //#6287 + $k[$j++] = Infinity; //#6288 + for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6288 + $k[$j++] = 0; //#6288 + } //#6288 + $k[$j++] = 9999; //#6288 + $_.nextbnota = $a(); //#6288 + for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6301 + $_.i = _5q; //#6290 + $k[$j++] = $get($_.msg, $_.i); //#6291 + $_.anotb(); //#6291 + if ($k[--$j]) { //#6294 + $put($_.nextanotb, $_.i, 0); //#6292 + } else { //#6294 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6294 + } //#6294 + $k[$j++] = $get($_.msg, $_.i); //#6296 + $_.bnota(); //#6296 + if ($k[--$j]) { //#6299 + $put($_.nextbnota, $_.i, 0); //#6297 + } else { //#6299 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6299 + } //#6299 + } //#6299 $_.abeforeb = function() { - var _6D = $k[--$j]; //#6170 - $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6170 - }; //#6170 + var _6D = $k[--$j]; //#6304 + $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6304 + }; //#6304 $_.bbeforea = function() { - var _6I = $k[--$j]; //#6171 - $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6171 - }; //#6171 - $_.cws = $a(($_.barcode.length * 2) + 3); //#6173 - $_.j = 0; //#6176 - if ($_.msglen > 0) { //#6177 - $k[$j++] = 0; //#6177 - $_.numsscr(); //#6177 - } else { //#6177 - $k[$j++] = -1; //#6177 - $k[$j++] = -1; //#6177 - } //#6177 - $_.nums = $k[--$j]; //#6177 - $_.nchars = $k[--$j]; //#6177 - for (;;) { //#6202 - if ($_.msglen == 0) { //#6183 - $k[$j++] = $_.stb; //#6180 - $_.enca(); //#6180 - $_.cset = "setb"; //#6181 - break; //#6182 - } //#6182 - if (($_.msglen == 2) && ($_.nums == 2)) { //#6188 - $k[$j++] = $_.stc; //#6185 - $_.enca(); //#6185 - $_.cset = "setc"; //#6186 - break; //#6187 - } //#6187 - if ($_.nums >= 4) { //#6193 - $k[$j++] = $_.stc; //#6190 - $_.enca(); //#6190 - $_.cset = "setc"; //#6191 - break; //#6192 - } //#6192 - $k[$j++] = 0; //#6194 - $_.abeforeb(); //#6194 - if ($k[--$j]) { //#6198 - $k[$j++] = $_.sta; //#6195 - $_.enca(); //#6195 - $_.cset = "seta"; //#6196 - break; //#6197 - } //#6197 - $k[$j++] = $_.stb; //#6199 - $_.enca(); //#6199 - $_.cset = "setb"; //#6200 - break; //#6201 - } //#6201 - $_.i = 0; //#6205 - for (;;) { //#6288 - if ($_.i == $_.msglen) { //#6206 - break; //#6206 - } //#6206 - $k[$j++] = $_.i; //#6208 - $_.numsscr(); //#6208 - $_.nums = $k[--$j]; //#6208 - $_.nchars = $k[--$j]; //#6208 - for (;;) { //#6286 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6225 - if (($_.nums % 2) == 0) { //#6223 - $k[$j++] = $_.swc; //#6215 - if ($eq($_.cset, "seta")) { //#6215 - $_.enca(); //#6215 - } else { //#6215 - $_.encb(); //#6215 - } //#6215 - $_.cset = "setc"; //#6216 - break; //#6217 - } else { //#6223 - $k[$j++] = $get($_.msg, $_.i); //#6219 - if ($eq($_.cset, "seta")) { //#6219 - $_.enca(); //#6219 - } else { //#6219 - $_.encb(); //#6219 - } //#6219 - $_.i = $_.i + 1; //#6220 - $k[$j++] = $_.swc; //#6221 - if ($eq($_.cset, "seta")) { //#6221 - $_.enca(); //#6221 - } else { //#6221 - $_.encb(); //#6221 - } //#6221 - $_.cset = "setc"; //#6222 - break; //#6223 - } //#6223 - } //#6223 - $k[$j++] = $eq($_.cset, "setb"); //#6226 - $k[$j++] = $get($_.msg, $_.i); //#6226 - $_.anotb(); //#6226 - var _72 = $k[--$j]; //#6226 - var _73 = $k[--$j]; //#6226 - if ((_73 && _72)) { //#6238 - if ($_.i < ($_.msglen - 1)) { //#6234 - $k[$j++] = $_.i + 1; //#6228 - $_.bbeforea(); //#6228 - if ($k[--$j]) { //#6233 - $k[$j++] = $_.sft; //#6229 - $_.encb(); //#6229 - $k[$j++] = $get($_.msg, $_.i); //#6230 - $_.enca(); //#6230 - $_.i = $_.i + 1; //#6231 - break; //#6232 - } //#6232 - } //#6232 - $k[$j++] = $_.swa; //#6235 - $_.encb(); //#6235 - $_.cset = "seta"; //#6236 - break; //#6237 - } //#6237 - $k[$j++] = $eq($_.cset, "seta"); //#6239 - $k[$j++] = $get($_.msg, $_.i); //#6239 - $_.bnota(); //#6239 - var _7I = $k[--$j]; //#6239 - var _7J = $k[--$j]; //#6239 - if ((_7J && _7I)) { //#6251 - if ($_.i < ($_.msglen - 1)) { //#6247 - $k[$j++] = $_.i + 1; //#6241 - $_.abeforeb(); //#6241 - if ($k[--$j]) { //#6246 - $k[$j++] = $_.sft; //#6242 - $_.enca(); //#6242 - $k[$j++] = $get($_.msg, $_.i); //#6243 - $_.encb(); //#6243 - $_.i = $_.i + 1; //#6244 - break; //#6245 - } //#6245 - } //#6245 - $k[$j++] = $_.swb; //#6248 - $_.enca(); //#6248 - $_.cset = "setb"; //#6249 - break; //#6250 - } //#6250 - if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6261 - $k[$j++] = $_.i; //#6253 - $_.abeforeb(); //#6253 - if ($k[--$j]) { //#6257 - $k[$j++] = $_.swa; //#6254 - $_.encc(); //#6254 - $_.cset = "seta"; //#6255 - break; //#6256 - } //#6256 - $k[$j++] = $_.swb; //#6258 - $_.encc(); //#6258 - $_.cset = "setb"; //#6259 - break; //#6260 - } //#6260 - if ($eq($_.cset, "seta")) { //#6268 - $k[$j++] = $get($_.msg, $_.i); //#6265 - $_.enca(); //#6265 - $_.i = $_.i + 1; //#6266 - break; //#6267 - } //#6267 - if ($eq($_.cset, "setb")) { //#6273 - $k[$j++] = $get($_.msg, $_.i); //#6270 - $_.encb(); //#6270 - $_.i = $_.i + 1; //#6271 - break; //#6272 - } //#6272 - if ($eq($_.cset, "setc")) { //#6283 - if ($get($_.msg, $_.i) <= -1) { //#6280 - $k[$j++] = $get($_.msg, $_.i); //#6276 - $_.encc(); //#6276 - $_.i = $_.i + 1; //#6277 - } else { //#6280 - $k[$j++] = $geti($_.msg, $_.i, 2); //#6279 - $_.encc(); //#6279 - $_.i = $_.i + 2; //#6280 - } //#6280 - break; //#6282 - } //#6282 - break; //#6285 - } //#6285 - } //#6285 - $_.cws = $geti($_.cws, 0, $_.j); //#6289 - } //#6289 - var _87 = $a($_.j + 2); //#6293 - $puti(_87, 0, $_.cws); //#6293 - $_.cws = _87; //#6293 - $_.csum = $get($_.cws, 0); //#6294 - for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6298 - $_.i = _8D; //#6296 - $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6297 - } //#6297 - $_.csum = $_.csum % 103; //#6299 - $put($_.cws, $_.j, $_.csum); //#6300 - $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6301 - var _8T = $get($_.options, 'debugcws') !== undefined; //#6303 - if (_8T) { //#6303 - $k[$j++] = 'bwipp.debugcws#6303'; //#6303 - $k[$j++] = $_.cws; //#6303 - bwipp_raiseerror(); //#6303 - } //#6303 - if (!bwipp_code128.__6325__) { //#6325 - $_ = Object.create($_); //#6325 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6324 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6324 - bwipp_code128.__6325__ = 1; //#6324 - $_ = Object.getPrototypeOf($_); //#6324 - } //#6324 - $_.sbs = $s(($_.cws.length * 6) + 1); //#6328 - for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6332 - $_.i = _8b; //#6330 - $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6331 - } //#6331 - $k[$j++] = Infinity; //#6342 - $k[$j++] = Infinity; //#6337 - var _8j = $_.sbs; //#6337 - for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6337 - $k[$j++] = $get(_8j, _8k) - 48; //#6337 - } //#6337 - var _8n = $a(); //#6337 - $k[$j++] = Infinity; //#6338 - for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6338 - $k[$j++] = $_.height; //#6338 - } //#6338 - var _8s = $a(); //#6338 - $k[$j++] = Infinity; //#6339 - for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6339 - $k[$j++] = 0; //#6339 - } //#6339 - var _8w = $a(); //#6339 - $k[$j++] = 'ren'; //#6342 - $k[$j++] = bwipp_renlinear; //#6342 - $k[$j++] = 'sbs'; //#6342 - $k[$j++] = _8n; //#6342 - $k[$j++] = 'bhs'; //#6342 - $k[$j++] = _8s; //#6342 - $k[$j++] = 'bbs'; //#6342 - $k[$j++] = _8w; //#6342 - $k[$j++] = 'txt'; //#6342 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6342 - $k[$j++] = 'textxalign'; //#6342 - $k[$j++] = "center"; //#6342 - $k[$j++] = 'opt'; //#6342 - $k[$j++] = $_.options; //#6342 - var _95 = $d(); //#6342 - $k[$j++] = _95; //#6345 - if (!$_.dontdraw) { //#6345 - bwipp_renlinear(); //#6345 - } //#6345 - $_ = Object.getPrototypeOf($_); //#6347 - $_ = Object.getPrototypeOf($_); //#6349 -} - + var _6I = $k[--$j]; //#6305 + $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6305 + }; //#6305 + $_.cws = $a(($_.barcode.length * 2) + 3); //#6307 + $_.j = 0; //#6310 + if ($_.msglen > 0) { //#6311 + $k[$j++] = 0; //#6311 + $_.numsscr(); //#6311 + } else { //#6311 + $k[$j++] = -1; //#6311 + $k[$j++] = -1; //#6311 + } //#6311 + $_.nums = $k[--$j]; //#6311 + $_.nchars = $k[--$j]; //#6311 + for (;;) { //#6336 + if ($_.msglen == 0) { //#6317 + $k[$j++] = $_.stb; //#6314 + $_.enca(); //#6314 + $_.cset = "setb"; //#6315 + break; //#6316 + } //#6316 + if (($_.msglen == 2) && ($_.nums == 2)) { //#6322 + $k[$j++] = $_.stc; //#6319 + $_.enca(); //#6319 + $_.cset = "setc"; //#6320 + break; //#6321 + } //#6321 + if ($_.nums >= 4) { //#6327 + $k[$j++] = $_.stc; //#6324 + $_.enca(); //#6324 + $_.cset = "setc"; //#6325 + break; //#6326 + } //#6326 + $k[$j++] = 0; //#6328 + $_.abeforeb(); //#6328 + if ($k[--$j]) { //#6332 + $k[$j++] = $_.sta; //#6329 + $_.enca(); //#6329 + $_.cset = "seta"; //#6330 + break; //#6331 + } //#6331 + $k[$j++] = $_.stb; //#6333 + $_.enca(); //#6333 + $_.cset = "setb"; //#6334 + break; //#6335 + } //#6335 + $_.i = 0; //#6339 + for (;;) { //#6422 + if ($_.i == $_.msglen) { //#6340 + break; //#6340 + } //#6340 + $k[$j++] = $_.i; //#6342 + $_.numsscr(); //#6342 + $_.nums = $k[--$j]; //#6342 + $_.nchars = $k[--$j]; //#6342 + for (;;) { //#6420 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6359 + if (($_.nums % 2) == 0) { //#6357 + $k[$j++] = $_.swc; //#6349 + if ($eq($_.cset, "seta")) { //#6349 + $_.enca(); //#6349 + } else { //#6349 + $_.encb(); //#6349 + } //#6349 + $_.cset = "setc"; //#6350 + break; //#6351 + } else { //#6357 + $k[$j++] = $get($_.msg, $_.i); //#6353 + if ($eq($_.cset, "seta")) { //#6353 + $_.enca(); //#6353 + } else { //#6353 + $_.encb(); //#6353 + } //#6353 + $_.i = $_.i + 1; //#6354 + $k[$j++] = $_.swc; //#6355 + if ($eq($_.cset, "seta")) { //#6355 + $_.enca(); //#6355 + } else { //#6355 + $_.encb(); //#6355 + } //#6355 + $_.cset = "setc"; //#6356 + break; //#6357 + } //#6357 + } //#6357 + $k[$j++] = $eq($_.cset, "setb"); //#6360 + $k[$j++] = $get($_.msg, $_.i); //#6360 + $_.anotb(); //#6360 + var _72 = $k[--$j]; //#6360 + var _73 = $k[--$j]; //#6360 + if ((_73 && _72)) { //#6372 + if ($_.i < ($_.msglen - 1)) { //#6368 + $k[$j++] = $_.i + 1; //#6362 + $_.bbeforea(); //#6362 + if ($k[--$j]) { //#6367 + $k[$j++] = $_.sft; //#6363 + $_.encb(); //#6363 + $k[$j++] = $get($_.msg, $_.i); //#6364 + $_.enca(); //#6364 + $_.i = $_.i + 1; //#6365 + break; //#6366 + } //#6366 + } //#6366 + $k[$j++] = $_.swa; //#6369 + $_.encb(); //#6369 + $_.cset = "seta"; //#6370 + break; //#6371 + } //#6371 + $k[$j++] = $eq($_.cset, "seta"); //#6373 + $k[$j++] = $get($_.msg, $_.i); //#6373 + $_.bnota(); //#6373 + var _7I = $k[--$j]; //#6373 + var _7J = $k[--$j]; //#6373 + if ((_7J && _7I)) { //#6385 + if ($_.i < ($_.msglen - 1)) { //#6381 + $k[$j++] = $_.i + 1; //#6375 + $_.abeforeb(); //#6375 + if ($k[--$j]) { //#6380 + $k[$j++] = $_.sft; //#6376 + $_.enca(); //#6376 + $k[$j++] = $get($_.msg, $_.i); //#6377 + $_.encb(); //#6377 + $_.i = $_.i + 1; //#6378 + break; //#6379 + } //#6379 + } //#6379 + $k[$j++] = $_.swb; //#6382 + $_.enca(); //#6382 + $_.cset = "setb"; //#6383 + break; //#6384 + } //#6384 + if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6395 + $k[$j++] = $_.i; //#6387 + $_.abeforeb(); //#6387 + if ($k[--$j]) { //#6391 + $k[$j++] = $_.swa; //#6388 + $_.encc(); //#6388 + $_.cset = "seta"; //#6389 + break; //#6390 + } //#6390 + $k[$j++] = $_.swb; //#6392 + $_.encc(); //#6392 + $_.cset = "setb"; //#6393 + break; //#6394 + } //#6394 + if ($eq($_.cset, "seta")) { //#6402 + $k[$j++] = $get($_.msg, $_.i); //#6399 + $_.enca(); //#6399 + $_.i = $_.i + 1; //#6400 + break; //#6401 + } //#6401 + if ($eq($_.cset, "setb")) { //#6407 + $k[$j++] = $get($_.msg, $_.i); //#6404 + $_.encb(); //#6404 + $_.i = $_.i + 1; //#6405 + break; //#6406 + } //#6406 + if ($eq($_.cset, "setc")) { //#6417 + if ($get($_.msg, $_.i) <= -1) { //#6414 + $k[$j++] = $get($_.msg, $_.i); //#6410 + $_.encc(); //#6410 + $_.i = $_.i + 1; //#6411 + } else { //#6414 + $k[$j++] = $geti($_.msg, $_.i, 2); //#6413 + $_.encc(); //#6413 + $_.i = $_.i + 2; //#6414 + } //#6414 + break; //#6416 + } //#6416 + break; //#6419 + } //#6419 + } //#6419 + $_.cws = $geti($_.cws, 0, $_.j); //#6423 + } //#6423 + var _87 = $a($_.j + 2); //#6427 + $puti(_87, 0, $_.cws); //#6427 + $_.cws = _87; //#6427 + $_.csum = $get($_.cws, 0); //#6428 + for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6432 + $_.i = _8D; //#6430 + $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6431 + } //#6431 + $_.csum = $_.csum % 103; //#6433 + $put($_.cws, $_.j, $_.csum); //#6434 + $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6435 + var _8T = $get($_.options, 'debugcws') !== undefined; //#6437 + if (_8T) { //#6437 + $k[$j++] = 'bwipp.debugcws#6437'; //#6437 + $k[$j++] = $_.cws; //#6437 + bwipp_raiseerror(); //#6437 + } //#6437 + if (!bwipp_code128.__6459__) { //#6459 + $_ = Object.create($_); //#6459 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6458 + bwipp_code128.__6459__ = 1; //#6458 + $_ = Object.getPrototypeOf($_); //#6458 + } //#6458 + $_.sbs = $s(($_.cws.length * 6) + 1); //#6462 + for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6466 + $_.i = _8b; //#6464 + $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6465 + } //#6465 + $k[$j++] = Infinity; //#6469 + $k[$j++] = Infinity; //#6471 + var _8j = $_.sbs; //#6471 + for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6471 + $k[$j++] = $get(_8j, _8k) - 48; //#6471 + } //#6471 + var _8n = $a(); //#6471 + $k[$j++] = Infinity; //#6472 + for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6472 + $k[$j++] = $_.height; //#6472 + } //#6472 + var _8s = $a(); //#6472 + $k[$j++] = Infinity; //#6473 + for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6473 + $k[$j++] = 0; //#6473 + } //#6473 + var _8w = $a(); //#6473 + $k[$j++] = 'ren'; //#6476 + $k[$j++] = bwipp_renlinear; //#6476 + $k[$j++] = 'sbs'; //#6476 + $k[$j++] = _8n; //#6476 + $k[$j++] = 'bhs'; //#6476 + $k[$j++] = _8s; //#6476 + $k[$j++] = 'bbs'; //#6476 + $k[$j++] = _8w; //#6476 + $k[$j++] = 'txt'; //#6476 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6476 + $k[$j++] = 'textxalign'; //#6476 + $k[$j++] = "center"; //#6476 + $k[$j++] = 'opt'; //#6476 + $k[$j++] = $_.options; //#6476 + var _95 = $d(); //#6476 + $k[$j++] = _95; //#6479 + if (!$_.dontdraw) { //#6479 + bwipp_renlinear(); //#6479 + } //#6479 + $_ = Object.getPrototypeOf($_); //#6481 + $_ = Object.getPrototypeOf($_); //#6483 +} //bwipp_code128 function bwipp_gs1_128() { - $_ = Object.create($_); //#6380 - $_.dontdraw = false; //#6383 - $_.includetext = false; //#6384 - $_.textfont = "OCR-B"; //#6385 - $_.textsize = 10; //#6386 - $_.textxoffset = 0; //#6387 - $_.textyoffset = -8; //#6388 - $_.height = 0.5; //#6389 - $_.linkagea = false; //#6390 - $_.linkagec = false; //#6391 - $_.parse = false; //#6392 - $_.dontlint = false; //#6393 - $_.lintreqs = false; //#6394 - $k[$j++] = $_; //#6396 - bwipp_processoptions(); //#6396 - $_.options = $k[--$j]; //#6396 - $_.barcode = $k[--$j]; //#6397 - if ($_.linkagea && $_.linkagec) { //#6401 - $k[$j++] = 'bwipp.gs1128badLinkage#6400'; //#6400 - $k[$j++] = "linkagea and linkagec cannot be used together"; //#6400 - bwipp_raiseerror(); //#6400 - } //#6400 - $_.text = $_.barcode; //#6403 - $k[$j++] = $_.barcode; //#6405 - $k[$j++] = 'ai'; //#6405 - bwipp_gs1process(); //#6405 - $_.fncs = $k[--$j]; //#6406 - $_.vals = $k[--$j]; //#6407 - $_.ais = $k[--$j]; //#6408 - $_.fnc1 = -1; //#6411 - $_.c128 = $a([$_.fnc1]); //#6412 - for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6428 - $_.i = _D; //#6414 - $_.ai = $get($_.ais, $_.i); //#6415 - $_.val = $get($_.vals, $_.i); //#6416 - var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6417 - $puti(_N, 0, $_.c128); //#6418 - $k[$j++] = _N; //#6419 - $k[$j++] = _N; //#6419 - $k[$j++] = $_.c128.length; //#6419 - $k[$j++] = $_.ai; //#6419 - $k[$j++] = Infinity; //#6419 - var _R = $k[--$j]; //#6419 - var _S = $k[--$j]; //#6419 - $k[$j++] = _R; //#6419 - $forall(_S); //#6419 - var _T = $a(); //#6419 - var _U = $k[--$j]; //#6419 - $puti($k[--$j], _U, _T); //#6419 - var _W = $k[--$j]; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = $_.c128.length + $_.ai.length; //#6420 - $k[$j++] = $_.val; //#6420 - $k[$j++] = Infinity; //#6420 - var _a = $k[--$j]; //#6420 - var _b = $k[--$j]; //#6420 - $k[$j++] = _a; //#6420 - $forall(_b); //#6420 - var _c = $a(); //#6420 - var _d = $k[--$j]; //#6420 - $puti($k[--$j], _d, _c); //#6420 - $_.c128 = $k[--$j]; //#6421 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6427 - var _m = $a($_.c128.length + 1); //#6423 - $puti(_m, 0, $_.c128); //#6424 - $put(_m, $_.c128.length, $_.fnc1); //#6425 - $_.c128 = _m; //#6426 - } //#6426 - } //#6426 - $_.barcode = $s(($_.c128.length + 1) * 5); //#6431 - $_.i = 0; //#6432 - $_.j = 0; //#6432 - for (;;) { //#6442 - if ($_.i == $_.c128.length) { //#6433 - break; //#6433 - } //#6433 - var _w = $get($_.c128, $_.i); //#6434 - $k[$j++] = _w; //#6439 - if (_w == $_.fnc1) { //#6438 - $j--; //#6435 - $puti($_.barcode, $_.j, "^FNC1"); //#6435 - $_.j = $_.j + 4; //#6436 - } else { //#6438 - $put($_.barcode, $_.j, $k[--$j]); //#6438 - } //#6438 - $_.i = $_.i + 1; //#6440 - $_.j = $_.j + 1; //#6441 - } //#6441 - if ($_.linkagea || $_.linkagec) { //#6446 - $k[$j++] = $_.barcode; //#6444 - $k[$j++] = $_.j; //#6444 - if ($_.linkagea) { //#6444 - $k[$j++] = "^LNKA"; //#6444 - } else { //#6444 - $k[$j++] = "^LNKC"; //#6444 - } //#6444 - var _1B = $k[--$j]; //#6444 - var _1C = $k[--$j]; //#6444 - $puti($k[--$j], _1C, _1B); //#6444 - $_.j = $_.j + 5; //#6445 - } //#6445 - $_.barcode = $geti($_.barcode, 0, $_.j); //#6447 - delete $_.options["parse"]; //#6450 - $put($_.options, "height", $_.height); //#6451 - $put($_.options, "dontdraw", true); //#6452 - $put($_.options, "parsefnc", true); //#6453 - $k[$j++] = 'args'; //#6454 - $k[$j++] = $_.barcode; //#6454 - $k[$j++] = $_.options; //#6454 - bwipp_code128(); //#6454 - var _1P = $k[--$j]; //#6454 - $_[$k[--$j]] = _1P; //#6454 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6456 - $put($_.args, "textxalign", "center"); //#6457 - $put($_.args, "opt", $_.options); //#6458 - $k[$j++] = $_.args; //#6461 - if (!$_.dontdraw) { //#6461 - bwipp_renlinear(); //#6461 - } //#6461 - $_ = Object.getPrototypeOf($_); //#6463 -} - + $_ = Object.create($_); //#6514 + $_.dontdraw = false; //#6517 + $_.includetext = false; //#6518 + $_.textfont = "OCR-B"; //#6519 + $_.textsize = 10; //#6520 + $_.textxoffset = 0; //#6521 + $_.textyoffset = -8; //#6522 + $_.height = 0.5; //#6523 + $_.linkagea = false; //#6524 + $_.linkagec = false; //#6525 + $_.parse = false; //#6526 + $_.dontlint = false; //#6527 + $_.lintreqs = false; //#6528 + $k[$j++] = $_; //#6530 + bwipp_processoptions(); //#6530 + $_.options = $k[--$j]; //#6530 + $_.barcode = $k[--$j]; //#6531 + if ($_.linkagea && $_.linkagec) { //#6535 + $k[$j++] = 'bwipp.gs1128badLinkage#6534'; //#6534 + $k[$j++] = "linkagea and linkagec cannot be used together"; //#6534 + bwipp_raiseerror(); //#6534 + } //#6534 + $_.text = $_.barcode; //#6537 + $k[$j++] = $_.barcode; //#6539 + $k[$j++] = 'ai'; //#6539 + bwipp_gs1process(); //#6539 + $_.fncs = $k[--$j]; //#6540 + $_.vals = $k[--$j]; //#6541 + $_.ais = $k[--$j]; //#6542 + $_.fnc1 = -1; //#6545 + $_.c128 = $a([$_.fnc1]); //#6546 + for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6562 + $_.i = _D; //#6548 + $_.ai = $get($_.ais, $_.i); //#6549 + $_.val = $get($_.vals, $_.i); //#6550 + var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6551 + $puti(_N, 0, $_.c128); //#6552 + $k[$j++] = _N; //#6553 + $k[$j++] = _N; //#6553 + $k[$j++] = $_.c128.length; //#6553 + $k[$j++] = $_.ai; //#6553 + $k[$j++] = Infinity; //#6553 + var _R = $k[--$j]; //#6553 + var _S = $k[--$j]; //#6553 + $k[$j++] = _R; //#6553 + $forall(_S); //#6553 + var _T = $a(); //#6553 + var _U = $k[--$j]; //#6553 + $puti($k[--$j], _U, _T); //#6553 + var _W = $k[--$j]; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = $_.c128.length + $_.ai.length; //#6554 + $k[$j++] = $_.val; //#6554 + $k[$j++] = Infinity; //#6554 + var _a = $k[--$j]; //#6554 + var _b = $k[--$j]; //#6554 + $k[$j++] = _a; //#6554 + $forall(_b); //#6554 + var _c = $a(); //#6554 + var _d = $k[--$j]; //#6554 + $puti($k[--$j], _d, _c); //#6554 + $_.c128 = $k[--$j]; //#6555 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6561 + var _m = $a($_.c128.length + 1); //#6557 + $puti(_m, 0, $_.c128); //#6558 + $put(_m, $_.c128.length, $_.fnc1); //#6559 + $_.c128 = _m; //#6560 + } //#6560 + } //#6560 + $_.barcode = $s(($_.c128.length + 1) * 5); //#6565 + $_.i = 0; //#6566 + $_.j = 0; //#6566 + for (;;) { //#6576 + if ($_.i == $_.c128.length) { //#6567 + break; //#6567 + } //#6567 + var _w = $get($_.c128, $_.i); //#6568 + $k[$j++] = _w; //#6573 + if (_w == $_.fnc1) { //#6572 + $j--; //#6569 + $puti($_.barcode, $_.j, "^FNC1"); //#6569 + $_.j = $_.j + 4; //#6570 + } else { //#6572 + $put($_.barcode, $_.j, $k[--$j]); //#6572 + } //#6572 + $_.i = $_.i + 1; //#6574 + $_.j = $_.j + 1; //#6575 + } //#6575 + if ($_.linkagea || $_.linkagec) { //#6580 + $k[$j++] = $_.barcode; //#6578 + $k[$j++] = $_.j; //#6578 + if ($_.linkagea) { //#6578 + $k[$j++] = "^LNKA"; //#6578 + } else { //#6578 + $k[$j++] = "^LNKC"; //#6578 + } //#6578 + var _1B = $k[--$j]; //#6578 + var _1C = $k[--$j]; //#6578 + $puti($k[--$j], _1C, _1B); //#6578 + $_.j = $_.j + 5; //#6579 + } //#6579 + $_.barcode = $geti($_.barcode, 0, $_.j); //#6581 + delete $_.options["parse"]; //#6584 + $put($_.options, "height", $_.height); //#6585 + $put($_.options, "dontdraw", true); //#6586 + $put($_.options, "parsefnc", true); //#6587 + $k[$j++] = 'args'; //#6588 + $k[$j++] = $_.barcode; //#6588 + $k[$j++] = $_.options; //#6588 + bwipp_code128(); //#6588 + var _1P = $k[--$j]; //#6588 + $_[$k[--$j]] = _1P; //#6588 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6590 + $put($_.args, "textxalign", "center"); //#6591 + $put($_.args, "opt", $_.options); //#6592 + $k[$j++] = $_.args; //#6595 + if (!$_.dontdraw) { //#6595 + bwipp_renlinear(); //#6595 + } //#6595 + $_ = Object.getPrototypeOf($_); //#6597 +} //bwipp_gs1_128 function bwipp_ean14() { - $_ = Object.create($_); //#6492 - $_.dontdraw = false; //#6495 - $_.includetext = false; //#6496 - $_.textfont = "OCR-B"; //#6497 - $_.textsize = 10; //#6498 - $_.textxoffset = 0; //#6499 - $_.textyoffset = -8; //#6500 - $_.height = 1; //#6501 - $k[$j++] = $_; //#6503 - bwipp_processoptions(); //#6503 - $_.options = $k[--$j]; //#6503 - $_.barcode = $k[--$j]; //#6504 - $_.text = $_.barcode; //#6507 - var _3 = $_.barcode; //#6508 - $k[$j++] = $s(_3.length); //#6509 - $k[$j++] = 0; //#6509 - $forall(_3, function() { //#6509 - var _5 = $k[--$j]; //#6509 - $k[$j++] = _5; //#6509 - if (_5 != 32) { //#6509 - var _6 = $k[--$j]; //#6509 - var _7 = $k[--$j]; //#6509 - var _8 = $k[--$j]; //#6509 - $put(_8, _7, _6); //#6509 - $k[$j++] = _8; //#6509 - $k[$j++] = $f(_7 + 1); //#6509 - } else { //#6509 - $j--; //#6509 - } //#6509 - }); //#6509 - var _9 = $k[--$j]; //#6510 - $_.barcode = $geti($k[--$j], 0, _9); //#6510 - $_.hasspace = $_.text.length != $_.barcode.length; //#6511 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6516 - $k[$j++] = 'bwipp.ean14badAI#6515'; //#6515 - $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6515 - bwipp_raiseerror(); //#6515 - } //#6515 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6519 - $k[$j++] = 'bwipp.ean14badLength#6518'; //#6518 - $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6518 - bwipp_raiseerror(); //#6518 - } //#6518 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6520 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6524 - var _N = $get(_K, _L); //#6524 - if ((_N < 48) || (_N > 57)) { //#6523 - $k[$j++] = 'bwipp.ean14badCharacter#6522'; //#6522 - $k[$j++] = "GS1-14 must contain only digits"; //#6522 - bwipp_raiseerror(); //#6522 - } //#6522 - } //#6522 - $_.checksum = 0; //#6527 - for (var _O = 0; _O <= 12; _O += 1) { //#6531 - $_.i = _O; //#6529 - $k[$j++] = 'checksum'; //#6530 - $k[$j++] = $_.checksum; //#6530 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6530 - if (($_.i % 2) == 0) { //#6530 - var _U = $k[--$j]; //#6530 - $k[$j++] = _U * 3; //#6530 - } //#6530 - var _V = $k[--$j]; //#6530 - var _W = $k[--$j]; //#6530 - $_[$k[--$j]] = $f(_W + _V); //#6530 - } //#6530 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6532 - if ($_.barcode.length == 18) { //#6546 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6536 - $k[$j++] = 'bwipp.ean14badCheckDigit#6535'; //#6535 - $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6535 - bwipp_raiseerror(); //#6535 - } //#6535 - } else { //#6546 - var _d = $s(18); //#6538 - $puti(_d, 0, $_.barcode); //#6539 - $put(_d, 17, $_.checksum + 48); //#6540 - $_.barcode = _d; //#6541 - var _i = $_.hasspace ? 2 : 1; //#6542 - var _j = $s($_.text.length + _i); //#6542 - $puti(_j, _j.length - 2, " "); //#6543 - $put(_j, _j.length - 1, $_.checksum + 48); //#6544 - $puti(_j, 0, $_.text); //#6545 - $_.text = _j; //#6546 - } //#6546 - $_.gtin = $geti($_.barcode, 4, 14); //#6548 - $_.barcode = $s(21); //#6551 - $puti($_.barcode, 0, "^FNC101"); //#6552 - var _r = $_.gtin; //#6553 - $puti($_.barcode, 7, _r); //#6553 - $put($_.options, "dontdraw", true); //#6556 - $put($_.options, "parsefnc", true); //#6557 - $k[$j++] = 'args'; //#6558 - $k[$j++] = $_.barcode; //#6558 - $k[$j++] = $_.options; //#6558 - bwipp_code128(); //#6558 - var _w = $k[--$j]; //#6558 - $_[$k[--$j]] = _w; //#6558 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6560 - $put($_.args, "textxalign", "center"); //#6561 - $put($_.args, "opt", $_.options); //#6562 - $k[$j++] = $_.args; //#6565 - if (!$_.dontdraw) { //#6565 - bwipp_renlinear(); //#6565 - } //#6565 - $_ = Object.getPrototypeOf($_); //#6567 -} - + $_ = Object.create($_); //#6626 + $_.dontdraw = false; //#6629 + $_.includetext = false; //#6630 + $_.textfont = "OCR-B"; //#6631 + $_.textsize = 10; //#6632 + $_.textxoffset = 0; //#6633 + $_.textyoffset = -8; //#6634 + $_.height = 1; //#6635 + $k[$j++] = $_; //#6637 + bwipp_processoptions(); //#6637 + $_.options = $k[--$j]; //#6637 + $_.barcode = $k[--$j]; //#6638 + $_.text = $_.barcode; //#6641 + var _3 = $_.barcode; //#6642 + $k[$j++] = $s(_3.length); //#6643 + $k[$j++] = 0; //#6643 + $forall(_3, function() { //#6643 + var _5 = $k[--$j]; //#6643 + $k[$j++] = _5; //#6643 + if (_5 != 32) { //#6643 + var _6 = $k[--$j]; //#6643 + var _7 = $k[--$j]; //#6643 + var _8 = $k[--$j]; //#6643 + $put(_8, _7, _6); //#6643 + $k[$j++] = _8; //#6643 + $k[$j++] = $f(_7 + 1); //#6643 + } else { //#6643 + $j--; //#6643 + } //#6643 + }); //#6643 + var _9 = $k[--$j]; //#6644 + $_.barcode = $geti($k[--$j], 0, _9); //#6644 + $_.hasspace = $_.text.length != $_.barcode.length; //#6645 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6650 + $k[$j++] = 'bwipp.ean14badLength#6649'; //#6649 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6649 + bwipp_raiseerror(); //#6649 + } //#6649 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6653 + $k[$j++] = 'bwipp.ean14badAI#6652'; //#6652 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6652 + bwipp_raiseerror(); //#6652 + } //#6652 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6654 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6658 + var _N = $get(_K, _L); //#6658 + if ((_N < 48) || (_N > 57)) { //#6657 + $k[$j++] = 'bwipp.ean14badCharacter#6656'; //#6656 + $k[$j++] = "GS1-14 must contain only digits"; //#6656 + bwipp_raiseerror(); //#6656 + } //#6656 + } //#6656 + $_.checksum = 0; //#6661 + for (var _O = 0; _O <= 12; _O += 1) { //#6665 + $_.i = _O; //#6663 + $k[$j++] = 'checksum'; //#6664 + $k[$j++] = $_.checksum; //#6664 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6664 + if (($_.i % 2) == 0) { //#6664 + var _U = $k[--$j]; //#6664 + $k[$j++] = _U * 3; //#6664 + } //#6664 + var _V = $k[--$j]; //#6664 + var _W = $k[--$j]; //#6664 + $_[$k[--$j]] = $f(_W + _V); //#6664 + } //#6664 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6666 + if ($_.barcode.length == 18) { //#6680 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6670 + $k[$j++] = 'bwipp.ean14badCheckDigit#6669'; //#6669 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6669 + bwipp_raiseerror(); //#6669 + } //#6669 + } else { //#6680 + var _d = $s(18); //#6672 + $puti(_d, 0, $_.barcode); //#6673 + $put(_d, 17, $_.checksum + 48); //#6674 + $_.barcode = _d; //#6675 + var _i = $_.hasspace ? 2 : 1; //#6676 + var _j = $s($_.text.length + _i); //#6676 + $puti(_j, _j.length - 2, " "); //#6677 + $put(_j, _j.length - 1, $_.checksum + 48); //#6678 + $puti(_j, 0, $_.text); //#6679 + $_.text = _j; //#6680 + } //#6680 + $_.gtin = $geti($_.barcode, 4, 14); //#6682 + $_.barcode = $s(21); //#6685 + $puti($_.barcode, 0, "^FNC101"); //#6686 + var _r = $_.gtin; //#6687 + $puti($_.barcode, 7, _r); //#6687 + $put($_.options, "dontdraw", true); //#6690 + $put($_.options, "parsefnc", true); //#6691 + $k[$j++] = 'args'; //#6692 + $k[$j++] = $_.barcode; //#6692 + $k[$j++] = $_.options; //#6692 + bwipp_code128(); //#6692 + var _w = $k[--$j]; //#6692 + $_[$k[--$j]] = _w; //#6692 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6694 + $put($_.args, "textxalign", "center"); //#6695 + $put($_.args, "opt", $_.options); //#6696 + $k[$j++] = $_.args; //#6699 + if (!$_.dontdraw) { //#6699 + bwipp_renlinear(); //#6699 + } //#6699 + $_ = Object.getPrototypeOf($_); //#6701 +} //bwipp_ean14 function bwipp_sscc18() { - $_ = Object.create($_); //#6596 - $_.dontdraw = false; //#6599 - $_.includetext = false; //#6600 - $_.textfont = "OCR-B"; //#6601 - $_.textsize = 10; //#6602 - $_.textxoffset = 0; //#6603 - $_.textyoffset = -8; //#6604 - $_.height = 1; //#6605 - $k[$j++] = $_; //#6607 - bwipp_processoptions(); //#6607 - $_.options = $k[--$j]; //#6607 - $_.barcode = $k[--$j]; //#6608 - $_.text = $_.barcode; //#6611 - var _3 = $_.barcode; //#6612 - $k[$j++] = $s(_3.length); //#6613 - $k[$j++] = 0; //#6613 - $forall(_3, function() { //#6613 - var _5 = $k[--$j]; //#6613 - $k[$j++] = _5; //#6613 - if (_5 != 32) { //#6613 - var _6 = $k[--$j]; //#6613 - var _7 = $k[--$j]; //#6613 - var _8 = $k[--$j]; //#6613 - $put(_8, _7, _6); //#6613 - $k[$j++] = _8; //#6613 - $k[$j++] = $f(_7 + 1); //#6613 - } else { //#6613 - $j--; //#6613 - } //#6613 - }); //#6613 - var _9 = $k[--$j]; //#6614 - $_.barcode = $geti($k[--$j], 0, _9); //#6614 - $_.hasspace = $_.text.length != $_.barcode.length; //#6615 - if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6620 - $k[$j++] = 'bwipp.sscc18badAI#6619'; //#6619 - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6619 - bwipp_raiseerror(); //#6619 - } //#6619 - if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6623 - $k[$j++] = 'bwipp.sscc18badLength#6622'; //#6622 - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6622 - bwipp_raiseerror(); //#6622 - } //#6622 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6624 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6628 - var _N = $get(_K, _L); //#6628 - if ((_N < 48) || (_N > 57)) { //#6627 - $k[$j++] = 'bwipp.sscc18badCharacter#6626'; //#6626 - $k[$j++] = "SSCC-18 must contain only digits"; //#6626 - bwipp_raiseerror(); //#6626 - } //#6626 - } //#6626 - $_.checksum = 0; //#6631 - for (var _O = 0; _O <= 16; _O += 1) { //#6635 - $_.i = _O; //#6633 - $k[$j++] = 'checksum'; //#6634 - $k[$j++] = $_.checksum; //#6634 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6634 - if (($_.i % 2) == 0) { //#6634 - var _U = $k[--$j]; //#6634 - $k[$j++] = _U * 3; //#6634 - } //#6634 - var _V = $k[--$j]; //#6634 - var _W = $k[--$j]; //#6634 - $_[$k[--$j]] = $f(_W + _V); //#6634 - } //#6634 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6636 - if ($_.barcode.length == 22) { //#6650 - if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6640 - $k[$j++] = 'bwipp.sscc18badCheckDigit#6639'; //#6639 - $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6639 - bwipp_raiseerror(); //#6639 - } //#6639 - } else { //#6650 - var _d = $s(22); //#6642 - $puti(_d, 0, $_.barcode); //#6643 - $put(_d, 21, $_.checksum + 48); //#6644 - $_.barcode = _d; //#6645 - var _i = $_.hasspace ? 2 : 1; //#6646 - var _j = $s($_.text.length + _i); //#6646 - $puti(_j, _j.length - 2, " "); //#6647 - $put(_j, _j.length - 1, $_.checksum + 48); //#6648 - $puti(_j, 0, $_.text); //#6649 - $_.text = _j; //#6650 - } //#6650 - $_.sscc = $geti($_.barcode, 4, 18); //#6652 - $_.barcode = $s(25); //#6655 - $puti($_.barcode, 0, "^FNC100"); //#6656 - var _r = $_.sscc; //#6657 - $puti($_.barcode, 7, _r); //#6657 - $put($_.options, "dontdraw", true); //#6660 - $put($_.options, "parsefnc", true); //#6661 - $k[$j++] = 'args'; //#6662 - $k[$j++] = $_.barcode; //#6662 - $k[$j++] = $_.options; //#6662 - bwipp_code128(); //#6662 - var _w = $k[--$j]; //#6662 - $_[$k[--$j]] = _w; //#6662 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6664 - $put($_.args, "textxalign", "center"); //#6665 - $put($_.args, "opt", $_.options); //#6666 - $k[$j++] = $_.args; //#6669 - if (!$_.dontdraw) { //#6669 - bwipp_renlinear(); //#6669 - } //#6669 - $_ = Object.getPrototypeOf($_); //#6671 -} - -function bwipp_code39() { - $_ = Object.create($_); //#6701 - $_.dontdraw = false; //#6704 - $_.includecheck = false; //#6705 - $_.validatecheck = false; //#6706 - $_.includetext = false; //#6707 - $_.includecheckintext = false; //#6708 - $_.hidestars = false; //#6709 - $_.textfont = "OCR-B"; //#6710 - $_.textsize = 10; //#6711 - $_.textyoffset = -8; //#6712 - $_.height = 1; //#6713 - $k[$j++] = $_; //#6715 - bwipp_processoptions(); //#6715 - $_.options = $k[--$j]; //#6715 - $_.barcode = $k[--$j]; //#6716 - bwipp_loadctx(bwipp_code39) //#6718 - if (!bwipp_code39.__6738__) { //#6738 - $_ = Object.create($_); //#6738 - $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6732 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6735 - $_.charvals = new Map; //#6736 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#6737 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#6737 - } //#6737 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6737 - bwipp_code39.__6738__ = 1; //#6737 - $_ = Object.getPrototypeOf($_); //#6737 - } //#6737 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#6745 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#6742 - if (!_E) { //#6744 - $k[$j++] = 'bwipp.code39badCharacter#6743'; //#6743 - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6743 - bwipp_raiseerror(); //#6743 - } //#6743 - } //#6743 - $k[$j++] = 'barlen'; //#6747 - $k[$j++] = $_.barcode.length; //#6747 - if ($_.validatecheck) { //#6747 - var _H = $k[--$j]; //#6747 - $k[$j++] = $f(_H - 1); //#6747 - } //#6747 - var _I = $k[--$j]; //#6747 - $_[$k[--$j]] = _I; //#6747 - $_.checksum = 0; //#6749 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#6753 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#6752 - } //#6752 - $_.checksum = $_.checksum % 43; //#6754 - if ($_.validatecheck) { //#6761 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6758 - $k[$j++] = 'bwipp.code39badCheckDigit#6757'; //#6757 - $k[$j++] = "Incorrect Code 39 check digit provided"; //#6757 - bwipp_raiseerror(); //#6757 - } //#6757 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6759 - $_.includecheck = true; //#6760 + $_ = Object.create($_); //#6730 + $_.dontdraw = false; //#6733 + $_.includetext = false; //#6734 + $_.textfont = "OCR-B"; //#6735 + $_.textsize = 10; //#6736 + $_.textxoffset = 0; //#6737 + $_.textyoffset = -8; //#6738 + $_.height = 1; //#6739 + $k[$j++] = $_; //#6741 + bwipp_processoptions(); //#6741 + $_.options = $k[--$j]; //#6741 + $_.barcode = $k[--$j]; //#6742 + $_.text = $_.barcode; //#6745 + var _3 = $_.barcode; //#6746 + $k[$j++] = $s(_3.length); //#6747 + $k[$j++] = 0; //#6747 + $forall(_3, function() { //#6747 + var _5 = $k[--$j]; //#6747 + $k[$j++] = _5; //#6747 + if (_5 != 32) { //#6747 + var _6 = $k[--$j]; //#6747 + var _7 = $k[--$j]; //#6747 + var _8 = $k[--$j]; //#6747 + $put(_8, _7, _6); //#6747 + $k[$j++] = _8; //#6747 + $k[$j++] = $f(_7 + 1); //#6747 + } else { //#6747 + $j--; //#6747 + } //#6747 + }); //#6747 + var _9 = $k[--$j]; //#6748 + $_.barcode = $geti($k[--$j], 0, _9); //#6748 + $_.hasspace = $_.text.length != $_.barcode.length; //#6749 + if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6754 + $k[$j++] = 'bwipp.sscc18badLength#6753'; //#6753 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6753 + bwipp_raiseerror(); //#6753 + } //#6753 + if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6757 + $k[$j++] = 'bwipp.sscc18badAI#6756'; //#6756 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6756 + bwipp_raiseerror(); //#6756 + } //#6756 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6758 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6762 + var _N = $get(_K, _L); //#6762 + if ((_N < 48) || (_N > 57)) { //#6761 + $k[$j++] = 'bwipp.sscc18badCharacter#6760'; //#6760 + $k[$j++] = "SSCC-18 must contain only digits"; //#6760 + bwipp_raiseerror(); //#6760 + } //#6760 } //#6760 - var _f = $_.includecheck ? 3 : 2; //#6763 - $_.sbs = $s($f($_.barlen + _f) * 10); //#6763 - var _j = $_.includecheck ? 3 : 2; //#6764 - $_.txt = $a($f($_.barlen + _j)); //#6764 - $puti($_.sbs, 0, $get($_.encs, 43)); //#6767 - if (!$_.hidestars) { //#6771 - $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6769 - } else { //#6771 - $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6771 - } //#6771 - for (var _11 = 0, _10 = $f($_.barlen - 1); _11 <= _10; _11 += 1) { //#6779 - $_.i = _11; //#6775 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6776 - $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6777 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6778 - } //#6778 - if ($_.includecheck) { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6783 - if ($_.includecheckintext) { //#6787 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6785 - } else { //#6787 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6787 - } //#6787 - $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6789 - if (!$_.hidestars) { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6791 - } else { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6793 - } //#6793 - } else { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6796 - if (!$_.hidestars) { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6798 - } else { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6800 - } //#6800 - } //#6800 - $k[$j++] = Infinity; //#6813 - $k[$j++] = Infinity; //#6807 - var _2M = $_.sbs; //#6807 - for (var _2N = 0, _2O = _2M.length; _2N < _2O; _2N++) { //#6807 - $k[$j++] = $get(_2M, _2N) - 48; //#6807 - } //#6807 - var _2Q = $a(); //#6807 - $k[$j++] = Infinity; //#6808 - for (var _2S = 0, _2T = ~~(($_.sbs.length + 1) / 2); _2S < _2T; _2S++) { //#6808 - $k[$j++] = $_.height; //#6808 - } //#6808 - var _2V = $a(); //#6808 - $k[$j++] = Infinity; //#6809 - for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#6809 - $k[$j++] = 0; //#6809 - } //#6809 - var _2Z = $a(); //#6809 - $k[$j++] = 'ren'; //#6812 - $k[$j++] = bwipp_renlinear; //#6812 - $k[$j++] = 'sbs'; //#6812 - $k[$j++] = _2Q; //#6812 - $k[$j++] = 'bhs'; //#6812 - $k[$j++] = _2V; //#6812 - $k[$j++] = 'bbs'; //#6812 - $k[$j++] = _2Z; //#6812 - if ($_.includetext) { //#6812 - $k[$j++] = 'txt'; //#6811 - $k[$j++] = $_.txt; //#6811 - } //#6811 - $k[$j++] = 'opt'; //#6813 - $k[$j++] = $_.options; //#6813 - var _2d = $d(); //#6813 - $k[$j++] = _2d; //#6816 - if (!$_.dontdraw) { //#6816 - bwipp_renlinear(); //#6816 - } //#6816 - $_ = Object.getPrototypeOf($_); //#6818 - $_ = Object.getPrototypeOf($_); //#6820 -} - + $_.checksum = 0; //#6765 + for (var _O = 0; _O <= 16; _O += 1) { //#6769 + $_.i = _O; //#6767 + $k[$j++] = 'checksum'; //#6768 + $k[$j++] = $_.checksum; //#6768 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6768 + if (($_.i % 2) == 0) { //#6768 + var _U = $k[--$j]; //#6768 + $k[$j++] = _U * 3; //#6768 + } //#6768 + var _V = $k[--$j]; //#6768 + var _W = $k[--$j]; //#6768 + $_[$k[--$j]] = $f(_W + _V); //#6768 + } //#6768 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6770 + if ($_.barcode.length == 22) { //#6784 + if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6774 + $k[$j++] = 'bwipp.sscc18badCheckDigit#6773'; //#6773 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6773 + bwipp_raiseerror(); //#6773 + } //#6773 + } else { //#6784 + var _d = $s(22); //#6776 + $puti(_d, 0, $_.barcode); //#6777 + $put(_d, 21, $_.checksum + 48); //#6778 + $_.barcode = _d; //#6779 + var _i = $_.hasspace ? 2 : 1; //#6780 + var _j = $s($_.text.length + _i); //#6780 + $puti(_j, _j.length - 2, " "); //#6781 + $put(_j, _j.length - 1, $_.checksum + 48); //#6782 + $puti(_j, 0, $_.text); //#6783 + $_.text = _j; //#6784 + } //#6784 + $_.sscc = $geti($_.barcode, 4, 18); //#6786 + $_.barcode = $s(25); //#6789 + $puti($_.barcode, 0, "^FNC100"); //#6790 + var _r = $_.sscc; //#6791 + $puti($_.barcode, 7, _r); //#6791 + $put($_.options, "dontdraw", true); //#6794 + $put($_.options, "parsefnc", true); //#6795 + $k[$j++] = 'args'; //#6796 + $k[$j++] = $_.barcode; //#6796 + $k[$j++] = $_.options; //#6796 + bwipp_code128(); //#6796 + var _w = $k[--$j]; //#6796 + $_[$k[--$j]] = _w; //#6796 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6798 + $put($_.args, "textxalign", "center"); //#6799 + $put($_.args, "opt", $_.options); //#6800 + $k[$j++] = $_.args; //#6803 + if (!$_.dontdraw) { //#6803 + bwipp_renlinear(); //#6803 + } //#6803 + $_ = Object.getPrototypeOf($_); //#6805 +} //bwipp_sscc18 +function bwipp_code39() { + $_ = Object.create($_); //#6835 + $_.dontdraw = false; //#6838 + $_.includecheck = false; //#6839 + $_.validatecheck = false; //#6840 + $_.includetext = false; //#6841 + $_.includecheckintext = false; //#6842 + $_.hidestars = false; //#6843 + $_.textfont = "OCR-B"; //#6844 + $_.textsize = 10; //#6845 + $_.textyoffset = -8; //#6846 + $_.height = 1; //#6847 + $k[$j++] = $_; //#6849 + bwipp_processoptions(); //#6849 + $_.options = $k[--$j]; //#6849 + $_.barcode = $k[--$j]; //#6850 + if ($eq($_.barcode, "")) { //#6854 + $k[$j++] = 'bwipp.code39emptyData#6853'; //#6853 + $k[$j++] = "The data must not be empty"; //#6853 + bwipp_raiseerror(); //#6853 + } //#6853 + bwipp_loadctx(bwipp_code39) //#6856 + if (!bwipp_code39.__6876__) { //#6876 + $_ = Object.create($_); //#6876 + $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6870 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6873 + $_.charvals = new Map; //#6874 + for (var _4 = 0; _4 <= 42; _4 += 1) { //#6875 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#6875 + } //#6875 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6875 + bwipp_code39.__6876__ = 1; //#6875 + $_ = Object.getPrototypeOf($_); //#6875 + } //#6875 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#6883 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#6880 + if (!_F) { //#6882 + $k[$j++] = 'bwipp.code39badCharacter#6881'; //#6881 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6881 + bwipp_raiseerror(); //#6881 + } //#6881 + } //#6881 + $k[$j++] = 'barlen'; //#6885 + $k[$j++] = $_.barcode.length; //#6885 + if ($_.validatecheck) { //#6885 + var _I = $k[--$j]; //#6885 + $k[$j++] = $f(_I - 1); //#6885 + } //#6885 + var _J = $k[--$j]; //#6885 + $_[$k[--$j]] = _J; //#6885 + $_.checksum = 0; //#6887 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#6891 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _N, 1)) + $_.checksum); //#6890 + } //#6890 + $_.checksum = $_.checksum % 43; //#6892 + if ($_.validatecheck) { //#6899 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6896 + $k[$j++] = 'bwipp.code39badCheckDigit#6895'; //#6895 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#6895 + bwipp_raiseerror(); //#6895 + } //#6895 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6897 + $_.includecheck = true; //#6898 + } //#6898 + var _g = $_.includecheck ? 3 : 2; //#6901 + $_.sbs = $s($f($_.barlen + _g) * 10); //#6901 + var _k = $_.includecheck ? 3 : 2; //#6902 + $_.txt = $a($f($_.barlen + _k)); //#6902 + $puti($_.sbs, 0, $get($_.encs, 43)); //#6905 + if (!$_.hidestars) { //#6909 + $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6907 + } else { //#6909 + $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6909 + } //#6909 + for (var _12 = 0, _11 = $f($_.barlen - 1); _12 <= _11; _12 += 1) { //#6917 + $_.i = _12; //#6913 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6914 + $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6915 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6916 + } //#6916 + if ($_.includecheck) { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6921 + if ($_.includecheckintext) { //#6925 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6923 + } else { //#6925 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6925 + } //#6925 + $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6927 + if (!$_.hidestars) { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6929 + } else { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6931 + } //#6931 + } else { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6934 + if (!$_.hidestars) { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6936 + } else { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6938 + } //#6938 + } //#6938 + $k[$j++] = Infinity; //#6943 + $k[$j++] = Infinity; //#6945 + var _2N = $_.sbs; //#6945 + for (var _2O = 0, _2P = _2N.length; _2O < _2P; _2O++) { //#6945 + $k[$j++] = $get(_2N, _2O) - 48; //#6945 + } //#6945 + var _2R = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + for (var _2T = 0, _2U = ~~(($_.sbs.length + 1) / 2); _2T < _2U; _2T++) { //#6946 + $k[$j++] = $_.height; //#6946 + } //#6946 + var _2W = $a(); //#6946 + $k[$j++] = Infinity; //#6947 + for (var _2Y = 0, _2Z = ~~(($_.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#6947 + $k[$j++] = 0; //#6947 + } //#6947 + var _2a = $a(); //#6947 + $k[$j++] = 'ren'; //#6950 + $k[$j++] = bwipp_renlinear; //#6950 + $k[$j++] = 'sbs'; //#6950 + $k[$j++] = _2R; //#6950 + $k[$j++] = 'bhs'; //#6950 + $k[$j++] = _2W; //#6950 + $k[$j++] = 'bbs'; //#6950 + $k[$j++] = _2a; //#6950 + if ($_.includetext) { //#6950 + $k[$j++] = 'txt'; //#6949 + $k[$j++] = $_.txt; //#6949 + } //#6949 + $k[$j++] = 'opt'; //#6951 + $k[$j++] = $_.options; //#6951 + var _2e = $d(); //#6951 + $k[$j++] = _2e; //#6954 + if (!$_.dontdraw) { //#6954 + bwipp_renlinear(); //#6954 + } //#6954 + $_ = Object.getPrototypeOf($_); //#6956 + $_ = Object.getPrototypeOf($_); //#6958 +} //bwipp_code39 function bwipp_code39ext() { - $_ = Object.create($_); //#6852 - $_.dontdraw = false; //#6855 - $_.includetext = false; //#6856 - $_.parse = false; //#6857 - $k[$j++] = $_; //#6859 - bwipp_processoptions(); //#6859 - $_.options = $k[--$j]; //#6859 - $_.barcode = $k[--$j]; //#6860 - bwipp_loadctx(bwipp_code39ext) //#6862 + $_ = Object.create($_); //#6990 + $_.dontdraw = false; //#6993 + $_.includetext = false; //#6994 + $_.parse = false; //#6995 + $k[$j++] = $_; //#6997 + bwipp_processoptions(); //#6997 + $_.options = $k[--$j]; //#6997 + $_.barcode = $k[--$j]; //#6998 + bwipp_loadctx(bwipp_code39ext) //#7000 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#6868 - $_.fncvals = _3; //#6869 - $k[$j++] = 'barcode'; //#6870 - $k[$j++] = $_.barcode; //#6870 - $k[$j++] = $_.fncvals; //#6870 - bwipp_parseinput(); //#6870 - var _6 = $k[--$j]; //#6870 - $_[$k[--$j]] = _6; //#6870 - $_.barlen = $_.barcode.length; //#6871 - delete $_.options["parse"]; //#6872 - $forall($_.barcode, function() { //#6879 - if ($k[--$j] >= 128) { //#6878 - $k[$j++] = 'bwipp.code39extBadCharacter#6877'; //#6877 - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#6877 - bwipp_raiseerror(); //#6877 - } //#6877 - }); //#6877 - if (!bwipp_code39ext.__6893__) { //#6893 - $_ = Object.create($_); //#6893 - $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#6892 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#6892 - bwipp_code39ext.__6893__ = 1; //#6892 - $_ = Object.getPrototypeOf($_); //#6892 - } //#6892 - $_.newcode = $s($_.barlen * 2); //#6895 - $_.newtext = $s($_.barlen * 2); //#6896 - $_.j = 0; //#6897 - for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#6905 - $_.i = _K; //#6899 - $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#6900 - $puti($_.newcode, $_.j, $_.extchar); //#6901 - var _X = $get($_.barcode, $_.i); //#6902 - $k[$j++] = $_.newtext; //#6902 - $k[$j++] = $_.j; //#6902 - $k[$j++] = _X; //#6902 - if ((_X < 32) || (_X == 127)) { //#6902 - $j--; //#6902 - $k[$j++] = 32; //#6902 - } //#6902 - var _Y = $k[--$j]; //#6902 - var _Z = $k[--$j]; //#6902 - $put($k[--$j], _Z, _Y); //#6902 - if ($_.extchar.length != 1) { //#6903 - $put($_.newtext, $_.j + 1, 32); //#6903 - } //#6903 - $_.j = $_.j + $_.extchar.length; //#6904 - } //#6904 - $_.newcode = $geti($_.newcode, 0, $_.j); //#6906 - $_.newtext = $geti($_.newtext, 0, $_.j); //#6907 - $put($_.options, "dontdraw", true); //#6910 - $k[$j++] = 'args'; //#6911 - $k[$j++] = $_.newcode; //#6911 - $k[$j++] = $_.options; //#6911 - bwipp_code39(); //#6911 - var _p = $k[--$j]; //#6911 - $_[$k[--$j]] = _p; //#6911 - if ($_.includetext) { //#6923 - $_.txt = $get($_.args, "txt"); //#6915 - for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#6921 - $_.i = _w; //#6917 - $_.txtentry = $get($_.txt, $_.i + 1); //#6918 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#6919 - $put($_.txt, $_.i + 1, $_.txtentry); //#6920 - } //#6920 - $put($_.args, "txt", $_.txt); //#6922 - } //#6922 - $put($_.args, "opt", $_.options); //#6924 - $k[$j++] = $_.args; //#6927 - if (!$_.dontdraw) { //#6927 - bwipp_renlinear(); //#6927 - } //#6927 - $_ = Object.getPrototypeOf($_); //#6929 - $_ = Object.getPrototypeOf($_); //#6931 -} - + ]); //#7006 + $_.fncvals = _3; //#7007 + $k[$j++] = 'barcode'; //#7008 + $k[$j++] = $_.barcode; //#7008 + $k[$j++] = $_.fncvals; //#7008 + bwipp_parseinput(); //#7008 + var _6 = $k[--$j]; //#7008 + $_[$k[--$j]] = _6; //#7008 + $_.barlen = $_.barcode.length; //#7009 + delete $_.options["parse"]; //#7010 + $forall($_.barcode, function() { //#7017 + if ($k[--$j] >= 128) { //#7016 + $k[$j++] = 'bwipp.code39extBadCharacter#7015'; //#7015 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#7015 + bwipp_raiseerror(); //#7015 + } //#7015 + }); //#7015 + if (!bwipp_code39ext.__7031__) { //#7031 + $_ = Object.create($_); //#7031 + $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#7030 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#7030 + bwipp_code39ext.__7031__ = 1; //#7030 + $_ = Object.getPrototypeOf($_); //#7030 + } //#7030 + $_.newcode = $s($_.barlen * 2); //#7033 + $_.newtext = $s($_.barlen * 2); //#7034 + $_.j = 0; //#7035 + for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#7043 + $_.i = _K; //#7037 + $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#7038 + $puti($_.newcode, $_.j, $_.extchar); //#7039 + var _X = $get($_.barcode, $_.i); //#7040 + $k[$j++] = $_.newtext; //#7040 + $k[$j++] = $_.j; //#7040 + $k[$j++] = _X; //#7040 + if ((_X < 32) || (_X == 127)) { //#7040 + $j--; //#7040 + $k[$j++] = 32; //#7040 + } //#7040 + var _Y = $k[--$j]; //#7040 + var _Z = $k[--$j]; //#7040 + $put($k[--$j], _Z, _Y); //#7040 + if ($_.extchar.length != 1) { //#7041 + $put($_.newtext, $_.j + 1, 32); //#7041 + } //#7041 + $_.j = $_.j + $_.extchar.length; //#7042 + } //#7042 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7044 + $_.newtext = $geti($_.newtext, 0, $_.j); //#7045 + $put($_.options, "dontdraw", true); //#7048 + $k[$j++] = 'args'; //#7049 + $k[$j++] = $_.newcode; //#7049 + $k[$j++] = $_.options; //#7049 + bwipp_code39(); //#7049 + var _p = $k[--$j]; //#7049 + $_[$k[--$j]] = _p; //#7049 + if ($_.includetext) { //#7061 + $_.txt = $get($_.args, "txt"); //#7053 + for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#7059 + $_.i = _w; //#7055 + $_.txtentry = $get($_.txt, $_.i + 1); //#7056 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7057 + $put($_.txt, $_.i + 1, $_.txtentry); //#7058 + } //#7058 + $put($_.args, "txt", $_.txt); //#7060 + } //#7060 + $put($_.args, "opt", $_.options); //#7062 + $k[$j++] = $_.args; //#7065 + if (!$_.dontdraw) { //#7065 + bwipp_renlinear(); //#7065 + } //#7065 + $_ = Object.getPrototypeOf($_); //#7067 + $_ = Object.getPrototypeOf($_); //#7069 +} //bwipp_code39ext function bwipp_code32() { - $_ = Object.create($_); //#6960 - $_.dontdraw = false; //#6963 - $_.includetext = false; //#6964 - $_.textfont = "OCR-B"; //#6965 - $_.textsize = 10; //#6966 - $_.textyoffset = -8; //#6967 - $_.textxoffset = 0; //#6968 - $_.height = 1; //#6969 - $k[$j++] = $_; //#6971 - bwipp_processoptions(); //#6971 - $_.options = $k[--$j]; //#6971 - $_.barcode = $k[--$j]; //#6972 - if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#6977 - $k[$j++] = 'bwipp.code32badLength#6976'; //#6976 - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#6976 - bwipp_raiseerror(); //#6976 - } //#6976 - $forall($_.barcode, function() { //#6982 - var _5 = $k[--$j]; //#6979 - if ((_5 < 48) || (_5 > 57)) { //#6981 - $k[$j++] = 'bwipp.code32badCharacter#6980'; //#6980 - $k[$j++] = "Italian Pharmacode must contain only digits"; //#6980 - bwipp_raiseerror(); //#6980 - } //#6980 - }); //#6980 - $_.checksum = 0; //#6985 - for (var _6 = 0; _6 <= 7; _6 += 1) { //#6990 - $_.i = _6; //#6987 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#6988 - if (($_.i % 2) != 0) { //#6988 - var _B = $k[--$j]; //#6988 - $k[$j++] = _B * 2; //#6988 - } //#6988 - var _C = $k[--$j]; //#6988 - $k[$j++] = _C; //#6988 - if (_C > 9) { //#6988 - var _D = $k[--$j]; //#6988 - $k[$j++] = $f(_D - 9); //#6988 - } //#6988 - $_.checksum = $f($k[--$j] + $_.checksum); //#6989 - } //#6989 - $_.checksum = $_.checksum % 10; //#6991 - if ($_.barcode.length == 9) { //#6996 - if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#6995 - $k[$j++] = 'bwipp.code32badCheckDigit#6994'; //#6994 - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#6994 - bwipp_raiseerror(); //#6994 - } //#6994 - } //#6994 - var _L = $s(10); //#6997 - $puti(_L, 0, $_.barcode); //#6998 - $put(_L, 8, $f($_.checksum + 48)); //#6999 - $_.text = _L; //#7000 - $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7003 - $_.barcode = $s(6); //#7004 - for (var _S = 0; _S <= 5; _S += 1) { //#7005 - $put($_.barcode, _S, 48); //#7005 - } //#7005 - $puti($_.barcode, 6 - $_.val.length, $_.val); //#7006 - for (var _X = 0; _X <= 5; _X += 1) { //#7013 - var _Z = $get($_.barcode, _X); //#7010 - $k[$j++] = _X; //#7011 - $k[$j++] = _Z; //#7011 - $k[$j++] = _Z; //#7011 - for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7011 - if ($k[--$j] >= $get("AEIO", _a)) { //#7011 - var _e = $k[--$j]; //#7011 - $k[$j++] = $f(_e + 1); //#7011 - } //#7011 - var _f = $k[--$j]; //#7011 - $k[$j++] = _f; //#7011 - $k[$j++] = _f; //#7011 - } //#7011 - $j--; //#7011 - var _h = $k[--$j]; //#7012 - $put($_.barcode, $k[--$j], _h); //#7012 - } //#7012 - $puti($_.text, 1, $geti($_.text, 0, 9)); //#7016 - $put($_.text, 0, 65); //#7017 - $put($_.options, "dontdraw", true); //#7020 - $k[$j++] = 'args'; //#7021 - $k[$j++] = $_.barcode; //#7021 - $k[$j++] = $_.options; //#7021 - bwipp_code39(); //#7021 - var _q = $k[--$j]; //#7021 - var _r = $k[--$j]; //#7021 - $_[_r] = _q; //#7021 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7023 - $put($_.args, "textxalign", "center"); //#7024 - $put($_.args, "opt", $_.options); //#7025 - $k[$j++] = $_.args; //#7028 - if (!$_.dontdraw) { //#7028 - bwipp_renlinear(); //#7028 - } //#7028 - $_ = Object.getPrototypeOf($_); //#7030 -} - -function bwipp_pzn() { - $_ = Object.create($_); //#7059 - $_.dontdraw = false; //#7062 - $_.includetext = false; //#7063 - $_.textfont = "OCR-B"; //#7064 - $_.textsize = 10; //#7065 - $_.textyoffset = -8; //#7066 - $_.textxoffset = 0; //#7067 - $_.height = 1; //#7068 - $_.pzn8 = false; //#7069 - $k[$j++] = $_; //#7071 - bwipp_processoptions(); //#7071 - $_.options = $k[--$j]; //#7071 - $_.barcode = $k[--$j]; //#7072 - if ($_.pzn8) { //#7081 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7078 - $k[$j++] = 'bwipp.pzn8badLength#7077'; //#7077 - $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7077 - bwipp_raiseerror(); //#7077 - } //#7077 - } else { //#7081 - if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7082 - $k[$j++] = 'bwipp.pzn7badLength#7081'; //#7081 - $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7081 - bwipp_raiseerror(); //#7081 - } //#7081 - } //#7081 - $forall($_.barcode, function() { //#7088 - var _8 = $k[--$j]; //#7085 - if ((_8 < 48) || (_8 > 57)) { //#7087 - $k[$j++] = 'bwipp.pznBadCharacter#7086'; //#7086 - $k[$j++] = "PZN must contain only digits"; //#7086 - bwipp_raiseerror(); //#7086 - } //#7086 - }); //#7086 - var _A = $_.pzn8 ? 9 : 8; //#7091 - $_.msglen = _A; //#7091 - $_.checksum = 0; //#7092 - for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7097 - $_.i = _D; //#7094 - var _J = $_.pzn8 ? 1 : 2; //#7095 - $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7096 - } //#7096 - $_.checksum = $_.checksum % 11; //#7098 - if ($_.checksum == 10) { //#7101 - $k[$j++] = 'bwipp.pznBadInputSequence#7100'; //#7100 - $k[$j++] = "Incorrect PZN input sequence provided"; //#7100 - bwipp_raiseerror(); //#7100 - } //#7100 - if ($_.barcode.length == ($_.msglen - 1)) { //#7106 - if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7105 - $k[$j++] = 'bwipp.pznBadCheckDigit#7104'; //#7104 - $k[$j++] = "Incorrect PZN check digit provided"; //#7104 - bwipp_raiseerror(); //#7104 - } //#7104 - } //#7104 - var _U = $s($_.msglen); //#7107 - $put(_U, 0, 45); //#7108 - $puti(_U, 1, $_.barcode); //#7109 - $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7110 - $_.msg = _U; //#7111 - $put($_.options, "dontdraw", true); //#7114 - $k[$j++] = 'args'; //#7115 - $k[$j++] = $_.msg; //#7115 - $k[$j++] = $_.options; //#7115 - bwipp_code39(); //#7115 - var _b = $k[--$j]; //#7115 - $_[$k[--$j]] = _b; //#7115 - $_.text = $s($_.msglen + 5); //#7118 - $puti($_.text, 0, "PZN - "); //#7119 - $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7120 - var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7122 - $put($_.args, "txt", _r); //#7122 - $put($_.args, "textxalign", "center"); //#7123 - $put($_.args, "opt", $_.options); //#7124 - $k[$j++] = $_.args; //#7127 - if (!$_.dontdraw) { //#7127 - bwipp_renlinear(); //#7127 + $_ = Object.create($_); //#7098 + $_.dontdraw = false; //#7101 + $_.includetext = false; //#7102 + $_.textfont = "OCR-B"; //#7103 + $_.textsize = 10; //#7104 + $_.textyoffset = -8; //#7105 + $_.textxoffset = 0; //#7106 + $_.height = 1; //#7107 + $k[$j++] = $_; //#7109 + bwipp_processoptions(); //#7109 + $_.options = $k[--$j]; //#7109 + $_.barcode = $k[--$j]; //#7110 + if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#7115 + $k[$j++] = 'bwipp.code32badLength#7114'; //#7114 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#7114 + bwipp_raiseerror(); //#7114 + } //#7114 + $forall($_.barcode, function() { //#7120 + var _5 = $k[--$j]; //#7117 + if ((_5 < 48) || (_5 > 57)) { //#7119 + $k[$j++] = 'bwipp.code32badCharacter#7118'; //#7118 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#7118 + bwipp_raiseerror(); //#7118 + } //#7118 + }); //#7118 + $_.checksum = 0; //#7123 + for (var _6 = 0; _6 <= 7; _6 += 1) { //#7128 + $_.i = _6; //#7125 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7126 + if (($_.i % 2) != 0) { //#7126 + var _B = $k[--$j]; //#7126 + $k[$j++] = _B * 2; //#7126 + } //#7126 + var _C = $k[--$j]; //#7126 + $k[$j++] = _C; //#7126 + if (_C > 9) { //#7126 + var _D = $k[--$j]; //#7126 + $k[$j++] = $f(_D - 9); //#7126 + } //#7126 + $_.checksum = $f($k[--$j] + $_.checksum); //#7127 } //#7127 - $_ = Object.getPrototypeOf($_); //#7129 -} - + $_.checksum = $_.checksum % 10; //#7129 + if ($_.barcode.length == 9) { //#7134 + if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#7133 + $k[$j++] = 'bwipp.code32badCheckDigit#7132'; //#7132 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#7132 + bwipp_raiseerror(); //#7132 + } //#7132 + } //#7132 + var _L = $s(10); //#7135 + $puti(_L, 0, $_.barcode); //#7136 + $put(_L, 8, $f($_.checksum + 48)); //#7137 + $_.text = _L; //#7138 + $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7141 + $_.barcode = $s(6); //#7142 + for (var _S = 0; _S <= 5; _S += 1) { //#7143 + $put($_.barcode, _S, 48); //#7143 + } //#7143 + $puti($_.barcode, 6 - $_.val.length, $_.val); //#7144 + for (var _X = 0; _X <= 5; _X += 1) { //#7151 + var _Z = $get($_.barcode, _X); //#7148 + $k[$j++] = _X; //#7149 + $k[$j++] = _Z; //#7149 + $k[$j++] = _Z; //#7149 + for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7149 + if ($k[--$j] >= $get("AEIO", _a)) { //#7149 + var _e = $k[--$j]; //#7149 + $k[$j++] = $f(_e + 1); //#7149 + } //#7149 + var _f = $k[--$j]; //#7149 + $k[$j++] = _f; //#7149 + $k[$j++] = _f; //#7149 + } //#7149 + $j--; //#7149 + var _h = $k[--$j]; //#7150 + $put($_.barcode, $k[--$j], _h); //#7150 + } //#7150 + $puti($_.text, 1, $geti($_.text, 0, 9)); //#7154 + $put($_.text, 0, 65); //#7155 + $put($_.options, "dontdraw", true); //#7158 + $k[$j++] = 'args'; //#7159 + $k[$j++] = $_.barcode; //#7159 + $k[$j++] = $_.options; //#7159 + bwipp_code39(); //#7159 + var _q = $k[--$j]; //#7159 + var _r = $k[--$j]; //#7159 + $_[_r] = _q; //#7159 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7161 + $put($_.args, "textxalign", "center"); //#7162 + $put($_.args, "opt", $_.options); //#7163 + $k[$j++] = $_.args; //#7166 + if (!$_.dontdraw) { //#7166 + bwipp_renlinear(); //#7166 + } //#7166 + $_ = Object.getPrototypeOf($_); //#7168 +} //bwipp_code32 +function bwipp_pzn() { + $_ = Object.create($_); //#7197 + $_.dontdraw = false; //#7200 + $_.includetext = false; //#7201 + $_.textfont = "OCR-B"; //#7202 + $_.textsize = 10; //#7203 + $_.textyoffset = -8; //#7204 + $_.textxoffset = 0; //#7205 + $_.height = 1; //#7206 + $_.pzn8 = false; //#7207 + $k[$j++] = $_; //#7209 + bwipp_processoptions(); //#7209 + $_.options = $k[--$j]; //#7209 + $_.barcode = $k[--$j]; //#7210 + if ($_.pzn8) { //#7219 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7216 + $k[$j++] = 'bwipp.pzn8badLength#7215'; //#7215 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7215 + bwipp_raiseerror(); //#7215 + } //#7215 + } else { //#7219 + if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7220 + $k[$j++] = 'bwipp.pzn7badLength#7219'; //#7219 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7219 + bwipp_raiseerror(); //#7219 + } //#7219 + } //#7219 + $forall($_.barcode, function() { //#7226 + var _8 = $k[--$j]; //#7223 + if ((_8 < 48) || (_8 > 57)) { //#7225 + $k[$j++] = 'bwipp.pznBadCharacter#7224'; //#7224 + $k[$j++] = "PZN must contain only digits"; //#7224 + bwipp_raiseerror(); //#7224 + } //#7224 + }); //#7224 + var _A = $_.pzn8 ? 9 : 8; //#7229 + $_.msglen = _A; //#7229 + $_.checksum = 0; //#7230 + for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7235 + $_.i = _D; //#7232 + var _J = $_.pzn8 ? 1 : 2; //#7233 + $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7234 + } //#7234 + $_.checksum = $_.checksum % 11; //#7236 + if ($_.checksum == 10) { //#7239 + $k[$j++] = 'bwipp.pznBadInputSequence#7238'; //#7238 + $k[$j++] = "Incorrect PZN input sequence provided"; //#7238 + bwipp_raiseerror(); //#7238 + } //#7238 + if ($_.barcode.length == ($_.msglen - 1)) { //#7244 + if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7243 + $k[$j++] = 'bwipp.pznBadCheckDigit#7242'; //#7242 + $k[$j++] = "Incorrect PZN check digit provided"; //#7242 + bwipp_raiseerror(); //#7242 + } //#7242 + } //#7242 + var _U = $s($_.msglen); //#7245 + $put(_U, 0, 45); //#7246 + $puti(_U, 1, $_.barcode); //#7247 + $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7248 + $_.msg = _U; //#7249 + $put($_.options, "dontdraw", true); //#7252 + $k[$j++] = 'args'; //#7253 + $k[$j++] = $_.msg; //#7253 + $k[$j++] = $_.options; //#7253 + bwipp_code39(); //#7253 + var _b = $k[--$j]; //#7253 + $_[$k[--$j]] = _b; //#7253 + $_.text = $s($_.msglen + 5); //#7256 + $puti($_.text, 0, "PZN - "); //#7257 + $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7258 + var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7260 + $put($_.args, "txt", _r); //#7260 + $put($_.args, "textxalign", "center"); //#7261 + $put($_.args, "opt", $_.options); //#7262 + $k[$j++] = $_.args; //#7265 + if (!$_.dontdraw) { //#7265 + bwipp_renlinear(); //#7265 + } //#7265 + $_ = Object.getPrototypeOf($_); //#7267 +} //bwipp_pzn function bwipp_code93() { - $_ = Object.create($_); //#7160 - $_.dontdraw = false; //#7163 - $_.includecheck = false; //#7164 - $_.includetext = false; //#7165 - $_.textfont = "OCR-B"; //#7166 - $_.textsize = 10; //#7167 - $_.textyoffset = -8; //#7168 - $_.height = 1; //#7169 - $_.parse = false; //#7170 - $_.parsefnc = false; //#7171 - $k[$j++] = $_; //#7173 - bwipp_processoptions(); //#7173 - $_.options = $k[--$j]; //#7173 - $_.barcode = $k[--$j]; //#7174 - bwipp_loadctx(bwipp_code93) //#7176 - if (!bwipp_code93.__7204__) { //#7204 - $_ = Object.create($_); //#7204 - $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7190 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7193 - $_.charvals = new Map; //#7194 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#7195 - $put($_.charvals, $get($_.barchars, _3), _3); //#7195 - } //#7195 - $_.sft1 = -1; //#7197 - $_.sft2 = -2; //#7197 - $_.sft3 = -3; //#7197 - $_.sft4 = -4; //#7197 - var _7 = $_.charvals; //#7199 - $put(_7, $_.sft1, 43); //#7199 - $put($_.charvals, $_.sft2, 44); //#7200 - $put($_.charvals, $_.sft3, 45); //#7201 - $put($_.charvals, $_.sft4, 46); //#7202 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7202 - bwipp_code93.__7204__ = 1; //#7202 - $_ = Object.getPrototypeOf($_); //#7202 - } //#7202 + $_ = Object.create($_); //#7298 + $_.dontdraw = false; //#7301 + $_.includecheck = false; //#7302 + $_.includetext = false; //#7303 + $_.textfont = "OCR-B"; //#7304 + $_.textsize = 10; //#7305 + $_.textyoffset = -8; //#7306 + $_.height = 1; //#7307 + $_.parse = false; //#7308 + $_.parsefnc = false; //#7309 + $k[$j++] = $_; //#7311 + bwipp_processoptions(); //#7311 + $_.options = $k[--$j]; //#7311 + $_.barcode = $k[--$j]; //#7312 + bwipp_loadctx(bwipp_code93) //#7314 + if (!bwipp_code93.__7342__) { //#7342 + $_ = Object.create($_); //#7342 + $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7328 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7331 + $_.charvals = new Map; //#7332 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#7333 + $put($_.charvals, $get($_.barchars, _3), _3); //#7333 + } //#7333 + $_.sft1 = -1; //#7335 + $_.sft2 = -2; //#7335 + $_.sft3 = -3; //#7335 + $_.sft4 = -4; //#7335 + var _7 = $_.charvals; //#7337 + $put(_7, $_.sft1, 43); //#7337 + $put($_.charvals, $_.sft2, 44); //#7338 + $put($_.charvals, $_.sft3, 45); //#7339 + $put($_.charvals, $_.sft4, 46); //#7340 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7340 + bwipp_code93.__7342__ = 1; //#7340 + $_ = Object.getPrototypeOf($_); //#7340 + } //#7340 var _M = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -10057,1272 +10313,1274 @@ function bwipp_code93() { ["SFT%", $_.sft2], ["SFT/", $_.sft3], ["SFT+", $_.sft4] - ]); //#7213 - $_.fncvals = _M; //#7214 - $k[$j++] = 'msg'; //#7215 - $k[$j++] = $_.barcode; //#7215 - $k[$j++] = $_.fncvals; //#7215 - bwipp_parseinput(); //#7215 - var _P = $k[--$j]; //#7215 - $_[$k[--$j]] = _P; //#7215 - $_.msglen = $_.msg.length; //#7216 - $forall($_.msg, function() { //#7223 - var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7220 - if (!_V) { //#7222 - $k[$j++] = 'bwipp.code93BadCharacter#7221'; //#7221 - $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7221 - bwipp_raiseerror(); //#7221 - } //#7221 - }); //#7221 - if ($_.includecheck) { //#7228 - $_.sbs = $s(($_.msglen * 6) + 25); //#7226 - } else { //#7228 - $_.sbs = $s(($_.msglen * 6) + 13); //#7228 - } //#7228 - $_.txt = $a($_.msglen); //#7230 - $puti($_.sbs, 0, $get($_.encs, 47)); //#7233 - $_.checksum1 = 0; //#7235 - $_.checksum2 = 0; //#7235 - for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7244 - $_.i = _i; //#7237 - $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7238 - $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7239 - var _v = $get($_.msg, $_.i); //#7240 - $k[$j++] = 'char'; //#7240 - $k[$j++] = _v; //#7240 - if (_v < 0) { //#7240 - $j--; //#7240 - $k[$j++] = " "; //#7240 - } else { //#7240 - var _w = $s(1); //#7240 - $put(_w, 0, $k[--$j]); //#7240 - $k[$j++] = _w; //#7240 - } //#7240 - var _y = $k[--$j]; //#7240 - $_[$k[--$j]] = _y; //#7240 - $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7241 - $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7242 - $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7243 - } //#7243 - if ($_.includecheck) { //#7256 - $_.checksum1 = $_.checksum1 % 47; //#7248 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7249 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7250 - $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7251 - $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7253 - } else { //#7256 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7256 - } //#7256 - $k[$j++] = Infinity; //#7268 - $k[$j++] = Infinity; //#7262 - var _1c = $_.sbs; //#7262 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7262 - $k[$j++] = $get(_1c, _1d) - 48; //#7262 - } //#7262 - var _1g = $a(); //#7262 - $k[$j++] = Infinity; //#7263 - for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7263 - $k[$j++] = $_.height; //#7263 - } //#7263 - var _1l = $a(); //#7263 - $k[$j++] = Infinity; //#7264 - for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7264 - $k[$j++] = 0; //#7264 - } //#7264 - var _1p = $a(); //#7264 - $k[$j++] = 'ren'; //#7267 - $k[$j++] = bwipp_renlinear; //#7267 - $k[$j++] = 'sbs'; //#7267 - $k[$j++] = _1g; //#7267 - $k[$j++] = 'bhs'; //#7267 - $k[$j++] = _1l; //#7267 - $k[$j++] = 'bbs'; //#7267 - $k[$j++] = _1p; //#7267 - if ($_.includetext) { //#7267 - $k[$j++] = 'txt'; //#7266 - $k[$j++] = $_.txt; //#7266 - } //#7266 - $k[$j++] = 'opt'; //#7268 - $k[$j++] = $_.options; //#7268 - var _1t = $d(); //#7268 - $k[$j++] = _1t; //#7271 - if (!$_.dontdraw) { //#7271 - bwipp_renlinear(); //#7271 - } //#7271 - $_ = Object.getPrototypeOf($_); //#7273 - $_ = Object.getPrototypeOf($_); //#7275 -} - + ]); //#7351 + $_.fncvals = _M; //#7352 + $k[$j++] = 'msg'; //#7353 + $k[$j++] = $_.barcode; //#7353 + $k[$j++] = $_.fncvals; //#7353 + bwipp_parseinput(); //#7353 + var _P = $k[--$j]; //#7353 + $_[$k[--$j]] = _P; //#7353 + $_.msglen = $_.msg.length; //#7354 + $forall($_.msg, function() { //#7361 + var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7358 + if (!_V) { //#7360 + $k[$j++] = 'bwipp.code93BadCharacter#7359'; //#7359 + $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7359 + bwipp_raiseerror(); //#7359 + } //#7359 + }); //#7359 + if ($_.includecheck) { //#7366 + $_.sbs = $s(($_.msglen * 6) + 25); //#7364 + } else { //#7366 + $_.sbs = $s(($_.msglen * 6) + 13); //#7366 + } //#7366 + $_.txt = $a($_.msglen); //#7368 + $puti($_.sbs, 0, $get($_.encs, 47)); //#7371 + $_.checksum1 = 0; //#7373 + $_.checksum2 = 0; //#7373 + for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7382 + $_.i = _i; //#7375 + $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7376 + $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7377 + var _v = $get($_.msg, $_.i); //#7378 + $k[$j++] = 'char'; //#7378 + $k[$j++] = _v; //#7378 + if (_v < 0) { //#7378 + $j--; //#7378 + $k[$j++] = " "; //#7378 + } else { //#7378 + var _w = $s(1); //#7378 + $put(_w, 0, $k[--$j]); //#7378 + $k[$j++] = _w; //#7378 + } //#7378 + var _y = $k[--$j]; //#7378 + $_[$k[--$j]] = _y; //#7378 + $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7379 + $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7380 + $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7381 + } //#7381 + if ($_.includecheck) { //#7394 + $_.checksum1 = $_.checksum1 % 47; //#7386 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7387 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7388 + $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7389 + $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7391 + } else { //#7394 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7394 + } //#7394 + $k[$j++] = Infinity; //#7398 + $k[$j++] = Infinity; //#7400 + var _1c = $_.sbs; //#7400 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7400 + $k[$j++] = $get(_1c, _1d) - 48; //#7400 + } //#7400 + var _1g = $a(); //#7400 + $k[$j++] = Infinity; //#7401 + for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7401 + $k[$j++] = $_.height; //#7401 + } //#7401 + var _1l = $a(); //#7401 + $k[$j++] = Infinity; //#7402 + for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7402 + $k[$j++] = 0; //#7402 + } //#7402 + var _1p = $a(); //#7402 + $k[$j++] = 'ren'; //#7405 + $k[$j++] = bwipp_renlinear; //#7405 + $k[$j++] = 'sbs'; //#7405 + $k[$j++] = _1g; //#7405 + $k[$j++] = 'bhs'; //#7405 + $k[$j++] = _1l; //#7405 + $k[$j++] = 'bbs'; //#7405 + $k[$j++] = _1p; //#7405 + if ($_.includetext) { //#7405 + $k[$j++] = 'txt'; //#7404 + $k[$j++] = $_.txt; //#7404 + } //#7404 + $k[$j++] = 'opt'; //#7406 + $k[$j++] = $_.options; //#7406 + var _1t = $d(); //#7406 + $k[$j++] = _1t; //#7409 + if (!$_.dontdraw) { //#7409 + bwipp_renlinear(); //#7409 + } //#7409 + $_ = Object.getPrototypeOf($_); //#7411 + $_ = Object.getPrototypeOf($_); //#7413 +} //bwipp_code93 function bwipp_code93ext() { - $_ = Object.create($_); //#7307 - $_.dontdraw = false; //#7310 - $_.includetext = false; //#7311 - $_.parse = false; //#7312 - $k[$j++] = $_; //#7314 - bwipp_processoptions(); //#7314 - $_.options = $k[--$j]; //#7314 - $_.barcode = $k[--$j]; //#7315 - bwipp_loadctx(bwipp_code93ext) //#7317 + $_ = Object.create($_); //#7445 + $_.dontdraw = false; //#7448 + $_.includetext = false; //#7449 + $_.parse = false; //#7450 + $k[$j++] = $_; //#7452 + bwipp_processoptions(); //#7452 + $_.options = $k[--$j]; //#7452 + $_.barcode = $k[--$j]; //#7453 + bwipp_loadctx(bwipp_code93ext) //#7455 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#7323 - $_.fncvals = _3; //#7324 - $k[$j++] = 'barcode'; //#7325 - $k[$j++] = $_.barcode; //#7325 - $k[$j++] = $_.fncvals; //#7325 - bwipp_parseinput(); //#7325 - var _6 = $k[--$j]; //#7325 - var _7 = $k[--$j]; //#7325 - $_[_7] = _6; //#7325 - $_.barlen = $_.barcode.length; //#7326 - delete $_.options["parse"]; //#7327 - if (!bwipp_code93ext.__7349__) { //#7349 - $_ = Object.create($_); //#7349 - $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7348 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7348 - bwipp_code93ext.__7349__ = 1; //#7348 - $_ = Object.getPrototypeOf($_); //#7348 - } //#7348 - $_.newcode = $s($_.barlen * 6); //#7351 - $_.newtext = $s($_.barlen * 6); //#7352 - $_.j = 0; //#7353 - $_.k = 0; //#7353 - for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7367 - $_.i = _I; //#7355 - var _L = $get($_.barcode, $_.i); //#7356 - $k[$j++] = _L; //#7359 - if (_L > 127) { //#7359 - $j--; //#7358 - $k[$j++] = 'bwipp.code93extbadCharacter#7358'; //#7358 - $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7358 - bwipp_raiseerror(); //#7358 - } //#7358 - $_.extchar = $get($_.extencs, $k[--$j]); //#7360 - $_.extlen = $_.extchar.length; //#7361 - $puti($_.newcode, $_.j, $_.extchar); //#7362 - var _X = $get($_.barcode, $_.i); //#7363 - $k[$j++] = $_.newtext; //#7363 - $k[$j++] = $_.k; //#7363 - $k[$j++] = _X; //#7363 - if ((_X < 32) || (_X == 127)) { //#7363 - $j--; //#7363 - $k[$j++] = 32; //#7363 - } //#7363 - var _Y = $k[--$j]; //#7363 - var _Z = $k[--$j]; //#7363 - $put($k[--$j], _Z, _Y); //#7363 - if ($_.extlen != 1) { //#7364 - $put($_.newtext, $_.k + 1, 32); //#7364 - } //#7364 - $_.j = $_.j + $_.extlen; //#7365 - var _i = ($_.extlen == 1) ? 1 : 2; //#7366 - $_.k = $_.k + _i; //#7366 - } //#7366 - $_.newcode = $geti($_.newcode, 0, $_.j); //#7368 - $_.newtext = $geti($_.newtext, 0, $_.k); //#7369 - $put($_.options, "dontdraw", true); //#7372 - $put($_.options, "parsefnc", true); //#7373 - $k[$j++] = 'args'; //#7374 - $k[$j++] = $_.newcode; //#7374 - $k[$j++] = $_.options; //#7374 - bwipp_code93(); //#7374 - var _t = $k[--$j]; //#7374 - $_[$k[--$j]] = _t; //#7374 - if ($_.includetext) { //#7386 - $_.txt = $get($_.args, "txt"); //#7378 - for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7384 - $_.i = _10; //#7380 - $_.txtentry = $get($_.txt, $_.i); //#7381 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7382 - $put($_.txt, $_.i, $_.txtentry); //#7383 - } //#7383 - $put($_.args, "txt", $_.txt); //#7385 - } //#7385 - $put($_.args, "opt", $_.options); //#7387 - $k[$j++] = $_.args; //#7390 - if (!$_.dontdraw) { //#7390 - bwipp_renlinear(); //#7390 - } //#7390 - $_ = Object.getPrototypeOf($_); //#7392 - $_ = Object.getPrototypeOf($_); //#7394 -} - -function bwipp_interleaved2of5() { - $_ = Object.create($_); //#7424 - $_.dontdraw = false; //#7427 - $_.includecheck = false; //#7428 - $_.includetext = false; //#7429 - $_.includecheckintext = false; //#7430 - $_.textfont = "OCR-B"; //#7431 - $_.textsize = 10; //#7432 - $_.textyoffset = -8; //#7433 - $_.height = 1; //#7434 - $k[$j++] = $_; //#7436 - bwipp_processoptions(); //#7436 - $_.options = $k[--$j]; //#7436 - $_.barcode = $k[--$j]; //#7437 - bwipp_loadctx(bwipp_interleaved2of5) //#7439 - $forall($_.barcode, function() { //#7446 - var _3 = $k[--$j]; //#7443 - if ((_3 < 48) || (_3 > 57)) { //#7445 - $k[$j++] = 'bwipp.interleaved2of5badCharacter#7444'; //#7444 - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7444 - bwipp_raiseerror(); //#7444 - } //#7444 - }); //#7444 - $_.barlen = $_.barcode.length; //#7448 - if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7459 - $_.pad = $s($_.barlen + 1); //#7454 - $put($_.pad, 0, 48); //#7455 - $puti($_.pad, 1, $_.barcode); //#7456 - $_.barcode = $_.pad; //#7457 - $_.barlen = $_.barlen + 1; //#7458 - } //#7458 - if ($_.includecheck) { //#7478 - $_.checksum = 0; //#7463 - for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7471 - $_.i = _J; //#7465 - if (($_.i % 2) == 0) { //#7469 - $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7467 - } else { //#7469 - $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7469 - } //#7469 - } //#7469 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7472 - $_.pad = $s($_.barlen + 1); //#7473 - $puti($_.pad, 0, $_.barcode); //#7474 - $put($_.pad, $_.barlen, $_.checksum + 48); //#7475 - $_.barcode = $_.pad; //#7476 - $_.barlen = $_.barlen + 1; //#7477 - } //#7477 - if (!bwipp_interleaved2of5.__7490__) { //#7490 - $_ = Object.create($_); //#7490 - $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7486 - $_.barchars = "0123456789"; //#7489 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7489 - bwipp_interleaved2of5.__7490__ = 1; //#7489 - $_ = Object.getPrototypeOf($_); //#7489 - } //#7489 - $_.sbs = $s(($_.barlen * 5) + 8); //#7492 - $_.txt = $a($_.barlen); //#7493 - $puti($_.sbs, 0, $get($_.encs, 10)); //#7496 - for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7530 - $_.i = _o; //#7499 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7501 - $j--; //#7502 - $_.indx = $k[--$j].length; //#7503 - $j -= 2; //#7504 - $_.enca = $get($_.encs, $_.indx); //#7505 - $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7507 - $j--; //#7508 - $_.indx = $k[--$j].length; //#7509 - $j -= 2; //#7510 - $_.encb = $get($_.encs, $_.indx); //#7511 - $_.intl = $s($_.enca.length * 2); //#7514 - for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7521 - $_.j = _19; //#7516 - $_.achar = $get($_.enca, $_.j); //#7517 - $_.bchar = $get($_.encb, $_.j); //#7518 - $put($_.intl, $_.j * 2, $_.achar); //#7519 - $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7520 - } //#7520 - $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7523 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7524 - if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7528 - $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7526 - } else { //#7528 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7528 - } //#7528 + ]); //#7461 + $_.fncvals = _3; //#7462 + $k[$j++] = 'barcode'; //#7463 + $k[$j++] = $_.barcode; //#7463 + $k[$j++] = $_.fncvals; //#7463 + bwipp_parseinput(); //#7463 + var _6 = $k[--$j]; //#7463 + var _7 = $k[--$j]; //#7463 + $_[_7] = _6; //#7463 + $_.barlen = $_.barcode.length; //#7464 + delete $_.options["parse"]; //#7465 + if (!bwipp_code93ext.__7487__) { //#7487 + $_ = Object.create($_); //#7487 + $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7486 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7486 + bwipp_code93ext.__7487__ = 1; //#7486 + $_ = Object.getPrototypeOf($_); //#7486 + } //#7486 + $_.newcode = $s($_.barlen * 6); //#7489 + $_.newtext = $s($_.barlen * 6); //#7490 + $_.j = 0; //#7491 + $_.k = 0; //#7491 + for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7505 + $_.i = _I; //#7493 + var _L = $get($_.barcode, $_.i); //#7494 + $k[$j++] = _L; //#7497 + if (_L > 127) { //#7497 + $j--; //#7496 + $k[$j++] = 'bwipp.code93extbadCharacter#7496'; //#7496 + $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7496 + bwipp_raiseerror(); //#7496 + } //#7496 + $_.extchar = $get($_.extencs, $k[--$j]); //#7498 + $_.extlen = $_.extchar.length; //#7499 + $puti($_.newcode, $_.j, $_.extchar); //#7500 + var _X = $get($_.barcode, $_.i); //#7501 + $k[$j++] = $_.newtext; //#7501 + $k[$j++] = $_.k; //#7501 + $k[$j++] = _X; //#7501 + if ((_X < 32) || (_X == 127)) { //#7501 + $j--; //#7501 + $k[$j++] = 32; //#7501 + } //#7501 + var _Y = $k[--$j]; //#7501 + var _Z = $k[--$j]; //#7501 + $put($k[--$j], _Z, _Y); //#7501 + if ($_.extlen != 1) { //#7502 + $put($_.newtext, $_.k + 1, 32); //#7502 + } //#7502 + $_.j = $_.j + $_.extlen; //#7503 + var _i = ($_.extlen == 1) ? 1 : 2; //#7504 + $_.k = $_.k + _i; //#7504 + } //#7504 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7506 + $_.newtext = $geti($_.newtext, 0, $_.k); //#7507 + $put($_.options, "dontdraw", true); //#7510 + $put($_.options, "parsefnc", true); //#7511 + $k[$j++] = 'args'; //#7512 + $k[$j++] = $_.newcode; //#7512 + $k[$j++] = $_.options; //#7512 + bwipp_code93(); //#7512 + var _t = $k[--$j]; //#7512 + $_[$k[--$j]] = _t; //#7512 + if ($_.includetext) { //#7524 + $_.txt = $get($_.args, "txt"); //#7516 + for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7522 + $_.i = _10; //#7518 + $_.txtentry = $get($_.txt, $_.i); //#7519 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7520 + $put($_.txt, $_.i, $_.txtentry); //#7521 + } //#7521 + $put($_.args, "txt", $_.txt); //#7523 + } //#7523 + $put($_.args, "opt", $_.options); //#7525 + $k[$j++] = $_.args; //#7528 + if (!$_.dontdraw) { //#7528 + bwipp_renlinear(); //#7528 } //#7528 - $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7533 - $k[$j++] = Infinity; //#7546 - $k[$j++] = Infinity; //#7538 - var _1y = $_.sbs; //#7538 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7538 - $k[$j++] = $get(_1y, _1z) - 48; //#7538 - } //#7538 - var _22 = $a(); //#7538 - $k[$j++] = Infinity; //#7539 - for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7539 - $k[$j++] = $_.height; //#7539 - } //#7539 - var _27 = $a(); //#7539 - $k[$j++] = Infinity; //#7540 - for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7540 - $k[$j++] = 0; //#7540 - } //#7540 - var _2B = $a(); //#7540 - $k[$j++] = 'ren'; //#7543 - $k[$j++] = bwipp_renlinear; //#7543 - $k[$j++] = 'sbs'; //#7543 - $k[$j++] = _22; //#7543 - $k[$j++] = 'bhs'; //#7543 - $k[$j++] = _27; //#7543 - $k[$j++] = 'bbs'; //#7543 - $k[$j++] = _2B; //#7543 - if ($_.includetext) { //#7543 - $k[$j++] = 'txt'; //#7542 - $k[$j++] = $_.txt; //#7542 - } //#7542 - $k[$j++] = 'barratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'spaceratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'opt'; //#7546 - $k[$j++] = $_.options; //#7546 - var _2F = $d(); //#7546 - $k[$j++] = _2F; //#7549 - if (!$_.dontdraw) { //#7549 - bwipp_renlinear(); //#7549 - } //#7549 - $_ = Object.getPrototypeOf($_); //#7551 - $_ = Object.getPrototypeOf($_); //#7553 -} - + $_ = Object.getPrototypeOf($_); //#7530 + $_ = Object.getPrototypeOf($_); //#7532 +} //bwipp_code93ext +function bwipp_interleaved2of5() { + $_ = Object.create($_); //#7562 + $_.dontdraw = false; //#7565 + $_.includecheck = false; //#7566 + $_.includetext = false; //#7567 + $_.includecheckintext = false; //#7568 + $_.textfont = "OCR-B"; //#7569 + $_.textsize = 10; //#7570 + $_.textyoffset = -8; //#7571 + $_.height = 1; //#7572 + $k[$j++] = $_; //#7574 + bwipp_processoptions(); //#7574 + $_.options = $k[--$j]; //#7574 + $_.barcode = $k[--$j]; //#7575 + bwipp_loadctx(bwipp_interleaved2of5) //#7577 + $forall($_.barcode, function() { //#7584 + var _3 = $k[--$j]; //#7581 + if ((_3 < 48) || (_3 > 57)) { //#7583 + $k[$j++] = 'bwipp.interleaved2of5badCharacter#7582'; //#7582 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7582 + bwipp_raiseerror(); //#7582 + } //#7582 + }); //#7582 + $_.barlen = $_.barcode.length; //#7586 + if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7597 + $_.pad = $s($_.barlen + 1); //#7592 + $put($_.pad, 0, 48); //#7593 + $puti($_.pad, 1, $_.barcode); //#7594 + $_.barcode = $_.pad; //#7595 + $_.barlen = $_.barlen + 1; //#7596 + } //#7596 + if ($_.includecheck) { //#7616 + $_.checksum = 0; //#7601 + for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7609 + $_.i = _J; //#7603 + if (($_.i % 2) == 0) { //#7607 + $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7605 + } else { //#7607 + $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7607 + } //#7607 + } //#7607 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7610 + $_.pad = $s($_.barlen + 1); //#7611 + $puti($_.pad, 0, $_.barcode); //#7612 + $put($_.pad, $_.barlen, $_.checksum + 48); //#7613 + $_.barcode = $_.pad; //#7614 + $_.barlen = $_.barlen + 1; //#7615 + } //#7615 + if (!bwipp_interleaved2of5.__7628__) { //#7628 + $_ = Object.create($_); //#7628 + $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7624 + $_.barchars = "0123456789"; //#7627 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7627 + bwipp_interleaved2of5.__7628__ = 1; //#7627 + $_ = Object.getPrototypeOf($_); //#7627 + } //#7627 + $_.sbs = $s(($_.barlen * 5) + 8); //#7630 + $_.txt = $a($_.barlen); //#7631 + $puti($_.sbs, 0, $get($_.encs, 10)); //#7634 + for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7668 + $_.i = _o; //#7637 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7639 + $j--; //#7640 + $_.indx = $k[--$j].length; //#7641 + $j -= 2; //#7642 + $_.enca = $get($_.encs, $_.indx); //#7643 + $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7645 + $j--; //#7646 + $_.indx = $k[--$j].length; //#7647 + $j -= 2; //#7648 + $_.encb = $get($_.encs, $_.indx); //#7649 + $_.intl = $s($_.enca.length * 2); //#7652 + for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7659 + $_.j = _19; //#7654 + $_.achar = $get($_.enca, $_.j); //#7655 + $_.bchar = $get($_.encb, $_.j); //#7656 + $put($_.intl, $_.j * 2, $_.achar); //#7657 + $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7658 + } //#7658 + $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7661 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7662 + if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7666 + $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7664 + } else { //#7666 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7666 + } //#7666 + } //#7666 + $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7671 + $k[$j++] = Infinity; //#7674 + $k[$j++] = Infinity; //#7676 + var _1y = $_.sbs; //#7676 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7676 + $k[$j++] = $get(_1y, _1z) - 48; //#7676 + } //#7676 + var _22 = $a(); //#7676 + $k[$j++] = Infinity; //#7677 + for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7677 + $k[$j++] = $_.height; //#7677 + } //#7677 + var _27 = $a(); //#7677 + $k[$j++] = Infinity; //#7678 + for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7678 + $k[$j++] = 0; //#7678 + } //#7678 + var _2B = $a(); //#7678 + $k[$j++] = 'ren'; //#7681 + $k[$j++] = bwipp_renlinear; //#7681 + $k[$j++] = 'sbs'; //#7681 + $k[$j++] = _22; //#7681 + $k[$j++] = 'bhs'; //#7681 + $k[$j++] = _27; //#7681 + $k[$j++] = 'bbs'; //#7681 + $k[$j++] = _2B; //#7681 + if ($_.includetext) { //#7681 + $k[$j++] = 'txt'; //#7680 + $k[$j++] = $_.txt; //#7680 + } //#7680 + $k[$j++] = 'barratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'spaceratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'opt'; //#7684 + $k[$j++] = $_.options; //#7684 + var _2F = $d(); //#7684 + $k[$j++] = _2F; //#7687 + if (!$_.dontdraw) { //#7687 + bwipp_renlinear(); //#7687 + } //#7687 + $_ = Object.getPrototypeOf($_); //#7689 + $_ = Object.getPrototypeOf($_); //#7691 +} //bwipp_interleaved2of5 function bwipp_itf14() { - $_ = Object.create($_); //#7582 - $_.dontdraw = false; //#7585 - $_.includetext = false; //#7586 - $_.includecheckintext = true; //#7587 - $_.textfont = "OCR-B"; //#7588 - $_.textsize = 10; //#7589 - $_.textxoffset = 0; //#7590 - $_.textyoffset = 3; //#7591 - $_.height = 0.5; //#7592 - $_.showborder = true; //#7593 - $_.borderwidth = 4; //#7594 - $_.borderleft = 15; //#7595 - $_.borderright = 15; //#7596 - $k[$j++] = $_; //#7598 - bwipp_processoptions(); //#7598 - $_.options = $k[--$j]; //#7598 - $_.barcode = $k[--$j]; //#7599 - $_.text = $_.barcode; //#7602 - var _3 = $_.barcode; //#7603 - $k[$j++] = $s(_3.length); //#7604 - $k[$j++] = 0; //#7604 - $forall(_3, function() { //#7604 - var _5 = $k[--$j]; //#7604 - $k[$j++] = _5; //#7604 - if (_5 != 32) { //#7604 - var _6 = $k[--$j]; //#7604 - var _7 = $k[--$j]; //#7604 - var _8 = $k[--$j]; //#7604 - $put(_8, _7, _6); //#7604 - $k[$j++] = _8; //#7604 - $k[$j++] = $f(_7 + 1); //#7604 - } else { //#7604 - $j--; //#7604 - } //#7604 - }); //#7604 - var _9 = $k[--$j]; //#7605 - $_.barcode = $geti($k[--$j], 0, _9); //#7605 - $_.hasspace = $_.text.length != $_.barcode.length; //#7606 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7611 - $k[$j++] = 'bwipp.itf14badLength#7610'; //#7610 - $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7610 - bwipp_raiseerror(); //#7610 - } //#7610 - var _G = $_.barcode; //#7612 - for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7616 - var _J = $get(_G, _H); //#7616 - if ((_J < 48) || (_J > 57)) { //#7615 - $k[$j++] = 'bwipp.itf14badCharacter#7614'; //#7614 - $k[$j++] = "ITF-14 must contain only digits"; //#7614 - bwipp_raiseerror(); //#7614 - } //#7614 - } //#7614 - $_.checksum = 0; //#7619 - for (var _K = 0; _K <= 12; _K += 1) { //#7623 - $_.i = _K; //#7621 - $k[$j++] = 'checksum'; //#7622 - $k[$j++] = $_.checksum; //#7622 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7622 - if (($_.i % 2) == 0) { //#7622 - var _Q = $k[--$j]; //#7622 - $k[$j++] = _Q * 3; //#7622 - } //#7622 - var _R = $k[--$j]; //#7622 - var _S = $k[--$j]; //#7622 - $_[$k[--$j]] = $f(_S + _R); //#7622 - } //#7622 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7624 - if ($_.barcode.length == 14) { //#7638 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7628 - $k[$j++] = 'bwipp.itf14badCheckDigit#7627'; //#7627 - $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7627 - bwipp_raiseerror(); //#7627 - } //#7627 - } else { //#7638 - var _Z = $s(14); //#7630 - $puti(_Z, 0, $_.barcode); //#7631 - $put(_Z, 13, $_.checksum + 48); //#7632 - $_.barcode = _Z; //#7633 - var _e = $_.hasspace ? 2 : 1; //#7634 - var _f = $s($_.text.length + _e); //#7634 - $puti(_f, _f.length - 2, " "); //#7635 - $put(_f, _f.length - 1, $_.checksum + 48); //#7636 - $puti(_f, 0, $_.text); //#7637 - $_.text = _f; //#7638 - } //#7638 - var _i = $_.options; //#7642 - $put(_i, "dontdraw", true); //#7642 - $put($_.options, "showborder", $_.showborder); //#7643 - $put($_.options, "borderwidth", $_.borderwidth); //#7644 - $put($_.options, "borderleft", $_.borderleft); //#7645 - $put($_.options, "borderright", $_.borderright); //#7646 - var _r = $_.options; //#7647 - $put(_r, "height", $_.height); //#7647 - $put($_.options, "textyoffset", $_.textyoffset); //#7648 - $k[$j++] = 'args'; //#7649 - $k[$j++] = $_.barcode; //#7649 - $k[$j++] = $_.options; //#7649 - bwipp_interleaved2of5(); //#7649 - var _x = $k[--$j]; //#7649 - $_[$k[--$j]] = _x; //#7649 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7651 - $put($_.args, "textxalign", "center"); //#7652 - $put($_.args, "opt", $_.options); //#7653 - $k[$j++] = $_.args; //#7656 - if (!$_.dontdraw) { //#7656 - bwipp_renlinear(); //#7656 - } //#7656 - $_ = Object.getPrototypeOf($_); //#7658 -} - + $_ = Object.create($_); //#7720 + $_.dontdraw = false; //#7723 + $_.includetext = false; //#7724 + $_.includecheckintext = true; //#7725 + $_.textfont = "OCR-B"; //#7726 + $_.textsize = 10; //#7727 + $_.textxoffset = 0; //#7728 + $_.textyoffset = 3.5; //#7729 + $_.height = 0.5; //#7730 + $_.showborder = true; //#7731 + $_.borderwidth = 4; //#7732 + $_.borderleft = 10; //#7733 + $_.borderright = 10; //#7734 + $_.bordertop = -0.55; //#7735 + $_.borderbottom = -0.55; //#7736 + $k[$j++] = $_; //#7738 + bwipp_processoptions(); //#7738 + $_.options = $k[--$j]; //#7738 + $_.barcode = $k[--$j]; //#7739 + $_.text = $_.barcode; //#7742 + var _3 = $_.barcode; //#7743 + $k[$j++] = $s(_3.length); //#7744 + $k[$j++] = 0; //#7744 + $forall(_3, function() { //#7744 + var _5 = $k[--$j]; //#7744 + $k[$j++] = _5; //#7744 + if (_5 != 32) { //#7744 + var _6 = $k[--$j]; //#7744 + var _7 = $k[--$j]; //#7744 + var _8 = $k[--$j]; //#7744 + $put(_8, _7, _6); //#7744 + $k[$j++] = _8; //#7744 + $k[$j++] = $f(_7 + 1); //#7744 + } else { //#7744 + $j--; //#7744 + } //#7744 + }); //#7744 + var _9 = $k[--$j]; //#7745 + $_.barcode = $geti($k[--$j], 0, _9); //#7745 + $_.hasspace = $_.text.length != $_.barcode.length; //#7746 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7751 + $k[$j++] = 'bwipp.itf14badLength#7750'; //#7750 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7750 + bwipp_raiseerror(); //#7750 + } //#7750 + var _G = $_.barcode; //#7752 + for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7756 + var _J = $get(_G, _H); //#7756 + if ((_J < 48) || (_J > 57)) { //#7755 + $k[$j++] = 'bwipp.itf14badCharacter#7754'; //#7754 + $k[$j++] = "ITF-14 must contain only digits"; //#7754 + bwipp_raiseerror(); //#7754 + } //#7754 + } //#7754 + $_.checksum = 0; //#7759 + for (var _K = 0; _K <= 12; _K += 1) { //#7763 + $_.i = _K; //#7761 + $k[$j++] = 'checksum'; //#7762 + $k[$j++] = $_.checksum; //#7762 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7762 + if (($_.i % 2) == 0) { //#7762 + var _Q = $k[--$j]; //#7762 + $k[$j++] = _Q * 3; //#7762 + } //#7762 + var _R = $k[--$j]; //#7762 + var _S = $k[--$j]; //#7762 + $_[$k[--$j]] = $f(_S + _R); //#7762 + } //#7762 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7764 + if ($_.barcode.length == 14) { //#7778 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7768 + $k[$j++] = 'bwipp.itf14badCheckDigit#7767'; //#7767 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7767 + bwipp_raiseerror(); //#7767 + } //#7767 + } else { //#7778 + var _Z = $s(14); //#7770 + $puti(_Z, 0, $_.barcode); //#7771 + $put(_Z, 13, $_.checksum + 48); //#7772 + $_.barcode = _Z; //#7773 + var _e = $_.hasspace ? 2 : 1; //#7774 + var _f = $s($_.text.length + _e); //#7774 + $puti(_f, _f.length - 2, " "); //#7775 + $put(_f, _f.length - 1, $_.checksum + 48); //#7776 + $puti(_f, 0, $_.text); //#7777 + $_.text = _f; //#7778 + } //#7778 + var _i = $_.options; //#7782 + $put(_i, "dontdraw", true); //#7782 + $put($_.options, "showborder", $_.showborder); //#7783 + $put($_.options, "borderwidth", $_.borderwidth); //#7784 + $put($_.options, "borderleft", $_.borderleft); //#7785 + $put($_.options, "borderright", $_.borderright); //#7786 + var _r = $_.options; //#7787 + $put(_r, "bordertop", $_.bordertop); //#7787 + $put($_.options, "borderbottom", $_.borderbottom); //#7788 + $put($_.options, "height", $_.height); //#7789 + $put($_.options, "textyoffset", $_.textyoffset); //#7790 + $k[$j++] = 'args'; //#7791 + $k[$j++] = $_.barcode; //#7791 + $k[$j++] = $_.options; //#7791 + bwipp_interleaved2of5(); //#7791 + var _11 = $k[--$j]; //#7791 + $_[$k[--$j]] = _11; //#7791 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7793 + $put($_.args, "textxalign", "center"); //#7794 + $put($_.args, "opt", $_.options); //#7795 + $k[$j++] = $_.args; //#7798 + if (!$_.dontdraw) { //#7798 + bwipp_renlinear(); //#7798 + } //#7798 + $_ = Object.getPrototypeOf($_); //#7800 +} //bwipp_itf14 function bwipp_identcode() { - $_ = Object.create($_); //#7687 - $_.dontdraw = false; //#7690 - $_.includetext = false; //#7691 - $_.textfont = "OCR-B"; //#7692 - $_.textsize = 10; //#7693 - $_.textxoffset = 0; //#7694 - $_.textyoffset = -8; //#7695 - $_.height = 1; //#7696 - $k[$j++] = $_; //#7698 - bwipp_processoptions(); //#7698 - $_.options = $k[--$j]; //#7698 - $_.barcode = $k[--$j]; //#7699 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7704 - $k[$j++] = 'bwipp.identcodeBadLength#7703'; //#7703 - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7703 - bwipp_raiseerror(); //#7703 - } //#7703 - $forall($_.barcode, function() { //#7709 - var _5 = $k[--$j]; //#7706 - if ((_5 < 48) || (_5 > 57)) { //#7708 - $k[$j++] = 'bwipp.identcodeBadCharacter#7707'; //#7707 - $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7707 - bwipp_raiseerror(); //#7707 - } //#7707 - }); //#7707 - $_.checksum = 0; //#7712 - for (var _6 = 0; _6 <= 10; _6 += 1) { //#7716 - $_.i = _6; //#7714 - $k[$j++] = 'checksum'; //#7715 - $k[$j++] = $_.checksum; //#7715 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7715 - if (($_.i % 2) == 0) { //#7715 - var _C = $k[--$j]; //#7715 - $k[$j++] = _C * 4; //#7715 - } else { //#7715 - var _D = $k[--$j]; //#7715 - $k[$j++] = _D * 9; //#7715 - } //#7715 - var _E = $k[--$j]; //#7715 - var _F = $k[--$j]; //#7715 - $_[$k[--$j]] = $f(_F + _E); //#7715 - } //#7715 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7717 - if ($_.barcode.length == 12) { //#7722 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7721 - $k[$j++] = 'bwipp.identcodeBadCheckDigit#7720'; //#7720 - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7720 - bwipp_raiseerror(); //#7720 - } //#7720 - } //#7720 - var _M = $s(12); //#7723 - $puti(_M, 0, $_.barcode); //#7724 - $put(_M, 11, $_.checksum + 48); //#7725 - $_.barcode = _M; //#7726 - $_.text = $strcpy($s(16), " . . "); //#7729 - $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7730 - $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7731 - $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7732 - $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7733 - $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7734 - $put($_.options, "dontdraw", true); //#7737 - $put($_.options, "includecheck", false); //#7738 - var _i = $_.barcode; //#7739 - $k[$j++] = 'args'; //#7739 - $k[$j++] = _i; //#7739 - $k[$j++] = $_.options; //#7739 - bwipp_interleaved2of5(); //#7739 - var _k = $k[--$j]; //#7739 - $_[$k[--$j]] = _k; //#7739 - var _r = $_.textsize; //#7741 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7741 - $put($_.args, "textxalign", "center"); //#7742 - $put($_.args, "opt", $_.options); //#7743 - $k[$j++] = $_.args; //#7746 - if (!$_.dontdraw) { //#7746 - bwipp_renlinear(); //#7746 - } //#7746 - $_ = Object.getPrototypeOf($_); //#7748 -} - + $_ = Object.create($_); //#7829 + $_.dontdraw = false; //#7832 + $_.includetext = false; //#7833 + $_.textfont = "OCR-B"; //#7834 + $_.textsize = 10; //#7835 + $_.textxoffset = 0; //#7836 + $_.textyoffset = -8; //#7837 + $_.height = 1; //#7838 + $k[$j++] = $_; //#7840 + bwipp_processoptions(); //#7840 + $_.options = $k[--$j]; //#7840 + $_.barcode = $k[--$j]; //#7841 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7846 + $k[$j++] = 'bwipp.identcodeBadLength#7845'; //#7845 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7845 + bwipp_raiseerror(); //#7845 + } //#7845 + $forall($_.barcode, function() { //#7851 + var _5 = $k[--$j]; //#7848 + if ((_5 < 48) || (_5 > 57)) { //#7850 + $k[$j++] = 'bwipp.identcodeBadCharacter#7849'; //#7849 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7849 + bwipp_raiseerror(); //#7849 + } //#7849 + }); //#7849 + $_.checksum = 0; //#7854 + for (var _6 = 0; _6 <= 10; _6 += 1) { //#7858 + $_.i = _6; //#7856 + $k[$j++] = 'checksum'; //#7857 + $k[$j++] = $_.checksum; //#7857 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7857 + if (($_.i % 2) == 0) { //#7857 + var _C = $k[--$j]; //#7857 + $k[$j++] = _C * 4; //#7857 + } else { //#7857 + var _D = $k[--$j]; //#7857 + $k[$j++] = _D * 9; //#7857 + } //#7857 + var _E = $k[--$j]; //#7857 + var _F = $k[--$j]; //#7857 + $_[$k[--$j]] = $f(_F + _E); //#7857 + } //#7857 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7859 + if ($_.barcode.length == 12) { //#7864 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7863 + $k[$j++] = 'bwipp.identcodeBadCheckDigit#7862'; //#7862 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7862 + bwipp_raiseerror(); //#7862 + } //#7862 + } //#7862 + var _M = $s(12); //#7865 + $puti(_M, 0, $_.barcode); //#7866 + $put(_M, 11, $_.checksum + 48); //#7867 + $_.barcode = _M; //#7868 + $_.text = $strcpy($s(16), " . . "); //#7871 + $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7872 + $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7873 + $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7874 + $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7875 + $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7876 + $put($_.options, "dontdraw", true); //#7879 + $put($_.options, "includecheck", false); //#7880 + var _i = $_.barcode; //#7881 + $k[$j++] = 'args'; //#7881 + $k[$j++] = _i; //#7881 + $k[$j++] = $_.options; //#7881 + bwipp_interleaved2of5(); //#7881 + var _k = $k[--$j]; //#7881 + $_[$k[--$j]] = _k; //#7881 + var _r = $_.textsize; //#7883 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7883 + $put($_.args, "textxalign", "center"); //#7884 + $put($_.args, "opt", $_.options); //#7885 + $k[$j++] = $_.args; //#7888 + if (!$_.dontdraw) { //#7888 + bwipp_renlinear(); //#7888 + } //#7888 + $_ = Object.getPrototypeOf($_); //#7890 +} //bwipp_identcode function bwipp_leitcode() { - $_ = Object.create($_); //#7777 - $_.dontdraw = false; //#7780 - $_.includetext = false; //#7781 - $_.textfont = "OCR-B"; //#7782 - $_.textsize = 10; //#7783 - $_.textxoffset = 0; //#7784 - $_.textyoffset = -8; //#7785 - $_.height = 1; //#7786 - $k[$j++] = $_; //#7788 - bwipp_processoptions(); //#7788 - $_.options = $k[--$j]; //#7788 - $_.barcode = $k[--$j]; //#7789 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7794 - $k[$j++] = 'bwipp.leitcodeBadLength#7793'; //#7793 - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7793 - bwipp_raiseerror(); //#7793 - } //#7793 - $forall($_.barcode, function() { //#7799 - var _5 = $k[--$j]; //#7796 - if ((_5 < 48) || (_5 > 57)) { //#7798 - $k[$j++] = 'bwipp.leitcodeBadCharacter#7797'; //#7797 - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7797 - bwipp_raiseerror(); //#7797 - } //#7797 - }); //#7797 - $_.checksum = 0; //#7802 - for (var _6 = 0; _6 <= 12; _6 += 1) { //#7806 - $_.i = _6; //#7804 - $k[$j++] = 'checksum'; //#7805 - $k[$j++] = $_.checksum; //#7805 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7805 - if (($_.i % 2) == 0) { //#7805 - var _C = $k[--$j]; //#7805 - $k[$j++] = _C * 4; //#7805 - } else { //#7805 - var _D = $k[--$j]; //#7805 - $k[$j++] = _D * 9; //#7805 - } //#7805 - var _E = $k[--$j]; //#7805 - var _F = $k[--$j]; //#7805 - $_[$k[--$j]] = $f(_F + _E); //#7805 - } //#7805 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7807 - if ($_.barcode.length == 14) { //#7812 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7811 - $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7810'; //#7810 - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7810 - bwipp_raiseerror(); //#7810 - } //#7810 - } //#7810 - var _M = $s(14); //#7813 - $puti(_M, 0, $_.barcode); //#7814 - $put(_M, 13, $_.checksum + 48); //#7815 - $_.barcode = _M; //#7816 - $_.text = $strcpy($s(18), " . . . "); //#7819 - $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7820 - $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7821 - $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7822 - $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7823 - $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7824 - $put($_.options, "dontdraw", true); //#7827 - $put($_.options, "includecheck", false); //#7828 - var _i = $_.barcode; //#7829 - $k[$j++] = 'args'; //#7829 - $k[$j++] = _i; //#7829 - $k[$j++] = $_.options; //#7829 - bwipp_interleaved2of5(); //#7829 - var _k = $k[--$j]; //#7829 - $_[$k[--$j]] = _k; //#7829 - var _r = $_.textsize; //#7831 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7831 - $put($_.args, "textxalign", "center"); //#7832 - $put($_.args, "opt", $_.options); //#7833 - $k[$j++] = $_.args; //#7836 - if (!$_.dontdraw) { //#7836 - bwipp_renlinear(); //#7836 - } //#7836 - $_ = Object.getPrototypeOf($_); //#7838 -} - + $_ = Object.create($_); //#7919 + $_.dontdraw = false; //#7922 + $_.includetext = false; //#7923 + $_.textfont = "OCR-B"; //#7924 + $_.textsize = 10; //#7925 + $_.textxoffset = 0; //#7926 + $_.textyoffset = -8; //#7927 + $_.height = 1; //#7928 + $k[$j++] = $_; //#7930 + bwipp_processoptions(); //#7930 + $_.options = $k[--$j]; //#7930 + $_.barcode = $k[--$j]; //#7931 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7936 + $k[$j++] = 'bwipp.leitcodeBadLength#7935'; //#7935 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7935 + bwipp_raiseerror(); //#7935 + } //#7935 + $forall($_.barcode, function() { //#7941 + var _5 = $k[--$j]; //#7938 + if ((_5 < 48) || (_5 > 57)) { //#7940 + $k[$j++] = 'bwipp.leitcodeBadCharacter#7939'; //#7939 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7939 + bwipp_raiseerror(); //#7939 + } //#7939 + }); //#7939 + $_.checksum = 0; //#7944 + for (var _6 = 0; _6 <= 12; _6 += 1) { //#7948 + $_.i = _6; //#7946 + $k[$j++] = 'checksum'; //#7947 + $k[$j++] = $_.checksum; //#7947 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7947 + if (($_.i % 2) == 0) { //#7947 + var _C = $k[--$j]; //#7947 + $k[$j++] = _C * 4; //#7947 + } else { //#7947 + var _D = $k[--$j]; //#7947 + $k[$j++] = _D * 9; //#7947 + } //#7947 + var _E = $k[--$j]; //#7947 + var _F = $k[--$j]; //#7947 + $_[$k[--$j]] = $f(_F + _E); //#7947 + } //#7947 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7949 + if ($_.barcode.length == 14) { //#7954 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7953 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7952'; //#7952 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7952 + bwipp_raiseerror(); //#7952 + } //#7952 + } //#7952 + var _M = $s(14); //#7955 + $puti(_M, 0, $_.barcode); //#7956 + $put(_M, 13, $_.checksum + 48); //#7957 + $_.barcode = _M; //#7958 + $_.text = $strcpy($s(18), " . . . "); //#7961 + $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7962 + $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7963 + $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7964 + $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7965 + $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7966 + $put($_.options, "dontdraw", true); //#7969 + $put($_.options, "includecheck", false); //#7970 + var _i = $_.barcode; //#7971 + $k[$j++] = 'args'; //#7971 + $k[$j++] = _i; //#7971 + $k[$j++] = $_.options; //#7971 + bwipp_interleaved2of5(); //#7971 + var _k = $k[--$j]; //#7971 + $_[$k[--$j]] = _k; //#7971 + var _r = $_.textsize; //#7973 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7973 + $put($_.args, "textxalign", "center"); //#7974 + $put($_.args, "opt", $_.options); //#7975 + $k[$j++] = $_.args; //#7978 + if (!$_.dontdraw) { //#7978 + bwipp_renlinear(); //#7978 + } //#7978 + $_ = Object.getPrototypeOf($_); //#7980 +} //bwipp_leitcode function bwipp_databaromni() { - $_ = Object.create($_); //#7869 - $_.dontdraw = false; //#7872 - $_.height = 33 / 72; //#7873 - $_.linkage = false; //#7874 - $_.format = "omni"; //#7875 - $_.barxmult = 33; //#7876 - $k[$j++] = $_; //#7878 - bwipp_processoptions(); //#7878 - $_.options = $k[--$j]; //#7878 - $_.barcode = $k[--$j]; //#7879 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#7883 - $k[$j++] = 'bwipp.databaromniBadAI#7882'; //#7882 - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#7882 - bwipp_raiseerror(); //#7882 - } //#7882 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#7886 - $k[$j++] = 'bwipp.databaromniBadLength#7885'; //#7885 - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#7885 - bwipp_raiseerror(); //#7885 - } //#7885 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#7887 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#7891 - var _B = $get(_8, _9); //#7891 - if ((_B < 48) || (_B > 57)) { //#7890 - $k[$j++] = 'bwipp.databaromniBadCharacter#7889'; //#7889 - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#7889 - bwipp_raiseerror(); //#7889 - } //#7889 - } //#7889 - if ($_.barxmult < 33) { //#7895 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#7894'; //#7894 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#7894 - bwipp_raiseerror(); //#7894 - } //#7894 - if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#7899 - $k[$j++] = 'bwipp.databaromniBadFormat#7898'; //#7898 - $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#7898 - bwipp_raiseerror(); //#7898 - } //#7898 - if ($eq($_.format, "truncated")) { //#7901 - $_.height = 13 / 72; //#7901 - } //#7901 - bwipp_loadctx(bwipp_databaromni) //#7903 - $_.checksum = 0; //#7906 - for (var _I = 0; _I <= 12; _I += 1) { //#7910 - $_.i = _I; //#7908 - $k[$j++] = 'checksum'; //#7909 - $k[$j++] = $_.checksum; //#7909 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#7909 - if (($_.i % 2) == 0) { //#7909 - var _O = $k[--$j]; //#7909 - $k[$j++] = _O * 3; //#7909 - } //#7909 - var _P = $k[--$j]; //#7909 - var _Q = $k[--$j]; //#7909 - $_[$k[--$j]] = $f(_Q + _P); //#7909 - } //#7909 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7911 - if ($_.barcode.length == 18) { //#7916 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#7915 - $k[$j++] = 'bwipp.databaromniBadCheckDigit#7914'; //#7914 - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#7914 - bwipp_raiseerror(); //#7914 - } //#7914 - } //#7914 - var _X = $s(18); //#7917 - $puti(_X, 0, $_.barcode); //#7918 - $put(_X, 17, $_.checksum + 48); //#7919 - $_.barcode = _X; //#7920 - $_.txt = $a($_.barcode.length); //#7923 - for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#7927 - $_.i = _e; //#7925 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#7926 - } //#7926 + $_ = Object.create($_); //#8011 + $_.dontdraw = false; //#8014 + $_.height = 33 / 72; //#8015 + $_.linkage = false; //#8016 + $_.format = "omni"; //#8017 + $_.barxmult = 33; //#8018 + $k[$j++] = $_; //#8020 + bwipp_processoptions(); //#8020 + $_.options = $k[--$j]; //#8020 + $_.barcode = $k[--$j]; //#8021 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8025 + $k[$j++] = 'bwipp.databaromniBadLength#8024'; //#8024 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#8024 + bwipp_raiseerror(); //#8024 + } //#8024 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8028 + $k[$j++] = 'bwipp.databaromniBadAI#8027'; //#8027 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#8027 + bwipp_raiseerror(); //#8027 + } //#8027 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8029 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8033 + var _B = $get(_8, _9); //#8033 + if ((_B < 48) || (_B > 57)) { //#8032 + $k[$j++] = 'bwipp.databaromniBadCharacter#8031'; //#8031 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#8031 + bwipp_raiseerror(); //#8031 + } //#8031 + } //#8031 + if ($_.barxmult < 33) { //#8037 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8036'; //#8036 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#8036 + bwipp_raiseerror(); //#8036 + } //#8036 + if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#8041 + $k[$j++] = 'bwipp.databaromniBadFormat#8040'; //#8040 + $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#8040 + bwipp_raiseerror(); //#8040 + } //#8040 + if ($eq($_.format, "truncated")) { //#8043 + $_.height = 13 / 72; //#8043 + } //#8043 + bwipp_loadctx(bwipp_databaromni) //#8045 + $_.checksum = 0; //#8048 + for (var _I = 0; _I <= 12; _I += 1) { //#8052 + $_.i = _I; //#8050 + $k[$j++] = 'checksum'; //#8051 + $k[$j++] = $_.checksum; //#8051 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8051 + if (($_.i % 2) == 0) { //#8051 + var _O = $k[--$j]; //#8051 + $k[$j++] = _O * 3; //#8051 + } //#8051 + var _P = $k[--$j]; //#8051 + var _Q = $k[--$j]; //#8051 + $_[$k[--$j]] = $f(_Q + _P); //#8051 + } //#8051 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8053 + if ($_.barcode.length == 18) { //#8058 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8057 + $k[$j++] = 'bwipp.databaromniBadCheckDigit#8056'; //#8056 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#8056 + bwipp_raiseerror(); //#8056 + } //#8056 + } //#8056 + var _X = $s(18); //#8059 + $puti(_X, 0, $_.barcode); //#8060 + $put(_X, 17, $_.checksum + 48); //#8061 + $_.barcode = _X; //#8062 + $_.txt = $a($_.barcode.length); //#8065 + for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#8069 + $_.i = _e; //#8067 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8068 + } //#8068 $_.ncr = function() { - var _l = $k[--$j]; //#7930 - var _m = $k[--$j]; //#7930 - var _n = $f(_m - _l); //#7930 - if (_l < $f(_m - _l)) { //#7930 - var _ = _n; //#7930 - _n = _l; //#7930 - _l = _; //#7930 - } //#7930 - $k[$j++] = _n; //#7937 - $k[$j++] = 1; //#7937 - $k[$j++] = 1; //#7937 - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#7937 - var _q = $k[--$j]; //#7933 - var _r = $k[--$j]; //#7934 - var _s = $k[--$j]; //#7934 - $k[$j++] = _s; //#7936 - $k[$j++] = _r; //#7936 - $k[$j++] = _q * _p; //#7936 - if ($le(_r, _s)) { //#7936 - var _t = $k[--$j]; //#7935 - var _u = $k[--$j]; //#7935 - $k[$j++] = $f(_u + 1); //#7935 - $k[$j++] = ~~(_t / _u); //#7935 - } //#7935 - } //#7935 - for (;;) { //#7941 - var _v = $k[--$j]; //#7939 - var _w = $k[--$j]; //#7939 - var _x = $k[--$j]; //#7939 - $k[$j++] = _x; //#7939 - $k[$j++] = _w; //#7939 - $k[$j++] = _v; //#7939 - if ($gt(_w, _x)) { //#7939 - break; //#7939 - } //#7939 - var _y = $k[--$j]; //#7940 - var _z = $k[--$j]; //#7940 - $k[$j++] = $f(_z + 1); //#7940 - $k[$j++] = ~~(_y / _z); //#7940 - } //#7940 - var _10 = $k[--$j]; //#7942 - var _11 = $k[--$j]; //#7942 - $k[$j++] = _10; //#7942 - $k[$j++] = _11; //#7942 - $j--; //#7942 - var _12 = $k[--$j]; //#7942 - var _13 = $k[--$j]; //#7942 - $k[$j++] = _12; //#7942 - $k[$j++] = _13; //#7942 - $j--; //#7942 - }; //#7942 + var _l = $k[--$j]; //#8072 + var _m = $k[--$j]; //#8072 + var _n = $f(_m - _l); //#8072 + if (_l < $f(_m - _l)) { //#8072 + var _ = _n; //#8072 + _n = _l; //#8072 + _l = _; //#8072 + } //#8072 + $k[$j++] = _n; //#8079 + $k[$j++] = 1; //#8079 + $k[$j++] = 1; //#8079 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#8079 + var _q = $k[--$j]; //#8075 + var _r = $k[--$j]; //#8076 + var _s = $k[--$j]; //#8076 + $k[$j++] = _s; //#8078 + $k[$j++] = _r; //#8078 + $k[$j++] = _q * _p; //#8078 + if ($le(_r, _s)) { //#8078 + var _t = $k[--$j]; //#8077 + var _u = $k[--$j]; //#8077 + $k[$j++] = $f(_u + 1); //#8077 + $k[$j++] = ~~(_t / _u); //#8077 + } //#8077 + } //#8077 + for (;;) { //#8083 + var _v = $k[--$j]; //#8081 + var _w = $k[--$j]; //#8081 + var _x = $k[--$j]; //#8081 + $k[$j++] = _x; //#8081 + $k[$j++] = _w; //#8081 + $k[$j++] = _v; //#8081 + if ($gt(_w, _x)) { //#8081 + break; //#8081 + } //#8081 + var _y = $k[--$j]; //#8082 + var _z = $k[--$j]; //#8082 + $k[$j++] = $f(_z + 1); //#8082 + $k[$j++] = ~~(_y / _z); //#8082 + } //#8082 + var _10 = $k[--$j]; //#8084 + var _11 = $k[--$j]; //#8084 + $k[$j++] = _10; //#8084 + $k[$j++] = _11; //#8084 + $j--; //#8084 + var _12 = $k[--$j]; //#8084 + var _13 = $k[--$j]; //#8084 + $k[$j++] = _12; //#8084 + $k[$j++] = _13; //#8084 + $j--; //#8084 + }; //#8084 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#7946 - $_.el = $k[--$j]; //#7947 - $_.mw = $k[--$j]; //#7948 - $_.nm = $k[--$j]; //#7949 - $_.val = $k[--$j]; //#7950 - $_.out = $a($_.el); //#7951 - $_.mask = 0; //#7952 - for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#7979 - $_.bar = _1D; //#7954 - $_.ew = 1; //#7955 - var _1F = $_.bar; //#7956 - $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#7956 - for (;;) { //#7975 - $k[$j++] = 'sval'; //#7957 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#7957 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7957 - $_.ncr(); //#7957 - var _1K = $k[--$j]; //#7957 - $_[$k[--$j]] = _1K; //#7957 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#7960 - $k[$j++] = 'sval'; //#7959 - $k[$j++] = $_.sval; //#7959 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#7959 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7959 - $_.ncr(); //#7959 - var _1Z = $k[--$j]; //#7959 - var _1a = $k[--$j]; //#7959 - $_[$k[--$j]] = $f(_1a - _1Z); //#7959 - } //#7959 - if ($f($_.el - $_.bar) > 2) { //#7969 - $_.lval = 0; //#7962 - for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#7966 - $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#7964 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#7964 - $_.ncr(); //#7964 - $_.lval = $f($k[--$j] + $_.lval); //#7965 - } //#7965 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#7967 - } else { //#7969 - if ($f($_.nm - $_.ew) > $_.mw) { //#7969 - $_.sval = $f($_.sval - 1); //#7969 - } //#7969 - } //#7969 - $_.val = $f($_.val - $_.sval); //#7971 - if ($_.val < 0) { //#7972 - break; //#7972 - } //#7972 - $_.ew = $_.ew + 1; //#7973 - var _24 = $_.bar; //#7974 - $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#7974 - } //#7974 - $_.val = $f($_.val + $_.sval); //#7976 - $_.nm = $f($_.nm - $_.ew); //#7977 - $put($_.out, $_.bar, $_.ew); //#7978 - } //#7978 - $put($_.out, $f($_.el - 1), $_.nm); //#7980 - $k[$j++] = $_.out; //#7981 - }; //#7981 - $k[$j++] = Infinity; //#7986 - var _2H = $_.linkage ? 1 : 0; //#7985 - var _2J = $geti($_.barcode, 4, 13); //#7986 - $k[$j++] = _2H; //#7986 - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#7986 - $k[$j++] = $f($get(_2J, _2K) - 48); //#7986 - } //#7986 - $_.binval = $a(); //#7986 - for (var _2O = 0; _2O <= 12; _2O += 1) { //#7993 - $_.i = _2O; //#7990 - var _2P = $_.binval; //#7991 - var _2Q = $_.i; //#7991 - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#7991 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#7992 - } //#7992 - $_.right = $get($_.binval, 13) % 4537077; //#7994 - var _2c = $_.binval; //#7995 - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#7995 - $_.left = 0; //#7997 - $_.i = true; //#7998 - for (var _2e = 0; _2e <= 13; _2e += 1) { //#8008 - $_.j = _2e; //#8000 - var _2h = $get($_.binval, $_.j); //#8001 - $k[$j++] = _2h; //#8007 - if ((_2h == 0) && $_.i) { //#8006 - $j--; //#8003 - } else { //#8006 - $_.i = false; //#8005 - $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8006 - } //#8006 - } //#8006 - $_.d1 = ~~($_.left / 1597); //#8010 - $_.d2 = $_.left % 1597; //#8011 - $_.d3 = ~~($_.right / 1597); //#8012 - $_.d4 = $_.right % 1597; //#8013 - if (!bwipp_databaromni.__8030__) { //#8030 - $_ = Object.create($_); //#8030 - $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8022 - $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8029 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8029 - bwipp_databaromni.__8030__ = 1; //#8029 - $_ = Object.getPrototypeOf($_); //#8029 - } //#8029 - $_.i = 0; //#8032 - for (;;) { //#8042 - if ($_.d1 <= $get($_.tab164, $_.i)) { //#8040 - var _2z = $geti($_.tab164, $_.i + 1, 7); //#8034 - for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8034 - $k[$j++] = $get(_2z, _30); //#8034 - } //#8034 - $_.d1te = $k[--$j]; //#8035 - $_.d1to = $k[--$j]; //#8035 - $_.d1mwe = $k[--$j]; //#8036 - $_.d1mwo = $k[--$j]; //#8036 - $_.d1ele = $k[--$j]; //#8037 - $_.d1elo = $k[--$j]; //#8037 - $_.d1gs = $k[--$j]; //#8038 - break; //#8039 - } //#8039 - $_.i = $_.i + 8; //#8041 - } //#8041 - $_.i = 0; //#8044 - for (;;) { //#8054 - if ($_.d2 <= $get($_.tab154, $_.i)) { //#8052 - var _3H = $geti($_.tab154, $_.i + 1, 7); //#8046 - for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8046 - $k[$j++] = $get(_3H, _3I); //#8046 - } //#8046 - $_.d2te = $k[--$j]; //#8047 - $_.d2to = $k[--$j]; //#8047 - $_.d2mwe = $k[--$j]; //#8048 - $_.d2mwo = $k[--$j]; //#8048 - $_.d2ele = $k[--$j]; //#8049 - $_.d2elo = $k[--$j]; //#8049 - $_.d2gs = $k[--$j]; //#8050 - break; //#8051 - } //#8051 - $_.i = $_.i + 8; //#8053 - } //#8053 - $_.i = 0; //#8056 - for (;;) { //#8066 - if ($_.d3 <= $get($_.tab164, $_.i)) { //#8064 - var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8058 - for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8058 - $k[$j++] = $get(_3Z, _3a); //#8058 - } //#8058 - $_.d3te = $k[--$j]; //#8059 - $_.d3to = $k[--$j]; //#8059 - $_.d3mwe = $k[--$j]; //#8060 - $_.d3mwo = $k[--$j]; //#8060 - $_.d3ele = $k[--$j]; //#8061 - $_.d3elo = $k[--$j]; //#8061 - $_.d3gs = $k[--$j]; //#8062 - break; //#8063 - } //#8063 - $_.i = $_.i + 8; //#8065 - } //#8065 - $_.i = 0; //#8068 - for (;;) { //#8078 - if ($_.d4 <= $get($_.tab154, $_.i)) { //#8076 - var _3r = $geti($_.tab154, $_.i + 1, 7); //#8070 - for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8070 - $k[$j++] = $get(_3r, _3s); //#8070 - } //#8070 - $_.d4te = $k[--$j]; //#8071 - $_.d4to = $k[--$j]; //#8071 - $_.d4mwe = $k[--$j]; //#8072 - $_.d4mwo = $k[--$j]; //#8072 - $_.d4ele = $k[--$j]; //#8073 - $_.d4elo = $k[--$j]; //#8073 - $_.d4gs = $k[--$j]; //#8074 - break; //#8075 - } //#8075 - $_.i = $_.i + 8; //#8077 - } //#8077 - $k[$j++] = 'd1wo'; //#8080 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8080 - $k[$j++] = $_.d1elo; //#8080 - $k[$j++] = $_.d1mwo; //#8080 - $k[$j++] = 4; //#8080 - $k[$j++] = false; //#8080 - $_.getRSSwidths(); //#8080 - var _48 = $k[--$j]; //#8080 - $_[$k[--$j]] = _48; //#8080 - $k[$j++] = 'd1we'; //#8081 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8081 - $k[$j++] = $_.d1ele; //#8081 - $k[$j++] = $_.d1mwe; //#8081 - $k[$j++] = 4; //#8081 - $k[$j++] = true; //#8081 - $_.getRSSwidths(); //#8081 - var _4F = $k[--$j]; //#8081 - $_[$k[--$j]] = _4F; //#8081 - $k[$j++] = 'd2wo'; //#8082 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8082 - $k[$j++] = $_.d2elo; //#8082 - $k[$j++] = $_.d2mwo; //#8082 - $k[$j++] = 4; //#8082 - $k[$j++] = true; //#8082 - $_.getRSSwidths(); //#8082 - var _4M = $k[--$j]; //#8082 - $_[$k[--$j]] = _4M; //#8082 - $k[$j++] = 'd2we'; //#8083 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8083 - $k[$j++] = $_.d2ele; //#8083 - $k[$j++] = $_.d2mwe; //#8083 - $k[$j++] = 4; //#8083 - $k[$j++] = false; //#8083 - $_.getRSSwidths(); //#8083 - var _4T = $k[--$j]; //#8083 - $_[$k[--$j]] = _4T; //#8083 - $k[$j++] = 'd3wo'; //#8084 - $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8084 - $k[$j++] = $_.d3elo; //#8084 - $k[$j++] = $_.d3mwo; //#8084 - $k[$j++] = 4; //#8084 - $k[$j++] = false; //#8084 - $_.getRSSwidths(); //#8084 - var _4a = $k[--$j]; //#8084 - $_[$k[--$j]] = _4a; //#8084 - $k[$j++] = 'd3we'; //#8085 - $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8085 - $k[$j++] = $_.d3ele; //#8085 - $k[$j++] = $_.d3mwe; //#8085 - $k[$j++] = 4; //#8085 - $k[$j++] = true; //#8085 - $_.getRSSwidths(); //#8085 - var _4h = $k[--$j]; //#8085 - $_[$k[--$j]] = _4h; //#8085 - $k[$j++] = 'd4wo'; //#8086 - $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8086 - $k[$j++] = $_.d4elo; //#8086 - $k[$j++] = $_.d4mwo; //#8086 - $k[$j++] = 4; //#8086 - $k[$j++] = true; //#8086 - $_.getRSSwidths(); //#8086 - var _4o = $k[--$j]; //#8086 - $_[$k[--$j]] = _4o; //#8086 - $k[$j++] = 'd4we'; //#8087 - $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8087 - $k[$j++] = $_.d4ele; //#8087 - $k[$j++] = $_.d4mwe; //#8087 - $k[$j++] = 4; //#8087 - $k[$j++] = false; //#8087 - $_.getRSSwidths(); //#8087 - var _4v = $k[--$j]; //#8087 - $_[$k[--$j]] = _4v; //#8087 - $_.d1w = $a(8); //#8089 - for (var _4y = 0; _4y <= 3; _4y += 1) { //#8094 - $_.i = _4y; //#8091 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8092 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8093 - } //#8093 - $_.d2w = $a(8); //#8096 - for (var _5A = 0; _5A <= 3; _5A += 1) { //#8101 - $_.i = _5A; //#8098 - $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8099 - $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8100 - } //#8100 - $_.d3w = $a(8); //#8103 - for (var _5M = 0; _5M <= 3; _5M += 1) { //#8108 - $_.i = _5M; //#8105 - $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8106 - $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8107 - } //#8107 - $_.d4w = $a(8); //#8110 - for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8115 - $_.i = _5Y; //#8112 - $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8113 - $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8114 - } //#8114 - $k[$j++] = Infinity; //#8121 - var _5j = $_.d1w; //#8118 - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8118 - $k[$j++] = $get(_5j, _5k); //#8118 - } //#8118 - var _5n = $_.d2w; //#8119 - for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8119 - $k[$j++] = $get(_5n, _5o); //#8119 - } //#8119 - var _5r = $_.d3w; //#8120 - for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8120 - $k[$j++] = $get(_5r, _5s); //#8120 - } //#8120 - var _5v = $_.d4w; //#8121 - for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8121 - $k[$j++] = $get(_5v, _5w); //#8121 - } //#8121 - $_.widths = $a(); //#8121 - if (!bwipp_databaromni.__8137__) { //#8137 - $_ = Object.create($_); //#8137 - $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8130 - $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8136 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8136 - bwipp_databaromni.__8137__ = 1; //#8136 - $_ = Object.getPrototypeOf($_); //#8136 - } //#8136 - $_.checksum = 0; //#8139 - for (var _63 = 0; _63 <= 31; _63 += 1) { //#8143 - $_.i = _63; //#8141 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8142 - } //#8142 - $_.checksum = $_.checksum % 79; //#8144 - if ($_.checksum >= 8) { //#8145 - $_.checksum = $f($_.checksum + 1); //#8145 - } //#8145 - if ($_.checksum >= 72) { //#8146 - $_.checksum = $f($_.checksum + 1); //#8146 - } //#8146 - $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8147 - $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8148 - $_.checkrt = $a(5); //#8149 - for (var _6N = 0; _6N <= 4; _6N += 1) { //#8153 - $_.i = _6N; //#8151 - $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8152 - } //#8152 - if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8275 - $k[$j++] = Infinity; //#8160 - var _6V = $_.d1w; //#8159 - $k[$j++] = 1; //#8159 - for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8159 - $k[$j++] = $get(_6V, _6W); //#8159 - } //#8159 - var _6Z = $_.checklt; //#8159 - for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8159 - $k[$j++] = $get(_6Z, _6a); //#8159 - } //#8159 - var _6d = $_.d2w; //#8159 - for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8159 - $k[$j++] = $get(_6d, _6e); //#8159 - } //#8159 - var _6h = $_.d4w; //#8160 - for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8160 - $k[$j++] = $get(_6h, _6i); //#8160 - } //#8160 - var _6l = $_.checkrt; //#8160 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8160 - $k[$j++] = $get(_6l, _6m); //#8160 - } //#8160 - var _6p = $_.d3w; //#8160 - for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8160 - $k[$j++] = $get(_6p, _6q); //#8160 - } //#8160 - $k[$j++] = 1; //#8160 - $k[$j++] = 1; //#8160 - $_.sbs = $a(); //#8160 - $k[$j++] = Infinity; //#8170 - var _6u = $_.sbs; //#8165 - $k[$j++] = Infinity; //#8166 - for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8166 - $k[$j++] = $_.height; //#8166 - } //#8166 - var _6z = $a(); //#8166 - $k[$j++] = Infinity; //#8167 - for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8167 - $k[$j++] = 0; //#8167 - } //#8167 - var _73 = $a(); //#8167 - $k[$j++] = 'ren'; //#8170 - $k[$j++] = bwipp_renlinear; //#8170 - $k[$j++] = 'sbs'; //#8170 - $k[$j++] = _6u; //#8170 - $k[$j++] = 'bhs'; //#8170 - $k[$j++] = _6z; //#8170 - $k[$j++] = 'bbs'; //#8170 - $k[$j++] = _73; //#8170 - $k[$j++] = 'txt'; //#8170 - $k[$j++] = $_.txt; //#8170 - $k[$j++] = 'textxalign'; //#8170 - $k[$j++] = "center"; //#8170 - $k[$j++] = 'opt'; //#8170 - $k[$j++] = $_.options; //#8170 - var _76 = $d(); //#8170 - $k[$j++] = _76; //#8173 - if (!$_.dontdraw) { //#8173 - bwipp_renlinear(); //#8173 - } //#8173 - } else { //#8275 - $k[$j++] = Infinity; //#8177 - var _78 = $_.d1w; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8177 - $k[$j++] = $get(_78, _79); //#8177 - } //#8177 - var _7C = $_.checklt; //#8177 - for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8177 - $k[$j++] = $get(_7C, _7D); //#8177 - } //#8177 - var _7G = $_.d2w; //#8177 - for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8177 - $k[$j++] = $get(_7G, _7H); //#8177 - } //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 0; //#8177 - $_.top = $a(); //#8177 - $k[$j++] = Infinity; //#8178 - var _7L = $_.d4w; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8178 - $k[$j++] = $get(_7L, _7M); //#8178 - } //#8178 - var _7P = $_.checkrt; //#8178 - for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8178 - $k[$j++] = $get(_7P, _7Q); //#8178 - } //#8178 - var _7T = $_.d3w; //#8178 - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8178 - $k[$j++] = $get(_7T, _7U); //#8178 - } //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 0; //#8178 - $_.bot = $a(); //#8178 - for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8183 - $_.i = _7Y; //#8180 - for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8181 - $k[$j++] = 0; //#8181 - } //#8181 - for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8182 - $k[$j++] = 1; //#8182 - } //#8182 - } //#8182 - $astore($a(50)); //#8184 - $_.top = $k[--$j]; //#8184 - for (var _7l = 0; _7l <= 24; _7l += 2) { //#8189 - $_.i = _7l; //#8186 - for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8187 - $k[$j++] = 1; //#8187 - } //#8187 - for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8188 - $k[$j++] = 0; //#8188 + $_.oe = $k[--$j]; //#8088 + $_.el = $k[--$j]; //#8089 + $_.mw = $k[--$j]; //#8090 + $_.nm = $k[--$j]; //#8091 + $_.val = $k[--$j]; //#8092 + $_.out = $a($_.el); //#8093 + $_.mask = 0; //#8094 + for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#8121 + $_.bar = _1D; //#8096 + $_.ew = 1; //#8097 + var _1F = $_.bar; //#8098 + $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#8098 + for (;;) { //#8117 + $k[$j++] = 'sval'; //#8099 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8099 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8099 + $_.ncr(); //#8099 + var _1K = $k[--$j]; //#8099 + $_[$k[--$j]] = _1K; //#8099 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8102 + $k[$j++] = 'sval'; //#8101 + $k[$j++] = $_.sval; //#8101 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8101 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8101 + $_.ncr(); //#8101 + var _1Z = $k[--$j]; //#8101 + var _1a = $k[--$j]; //#8101 + $_[$k[--$j]] = $f(_1a - _1Z); //#8101 + } //#8101 + if ($f($_.el - $_.bar) > 2) { //#8111 + $_.lval = 0; //#8104 + for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#8108 + $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#8106 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8106 + $_.ncr(); //#8106 + $_.lval = $f($k[--$j] + $_.lval); //#8107 + } //#8107 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8109 + } else { //#8111 + if ($f($_.nm - $_.ew) > $_.mw) { //#8111 + $_.sval = $f($_.sval - 1); //#8111 + } //#8111 + } //#8111 + $_.val = $f($_.val - $_.sval); //#8113 + if ($_.val < 0) { //#8114 + break; //#8114 + } //#8114 + $_.ew = $_.ew + 1; //#8115 + var _24 = $_.bar; //#8116 + $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#8116 + } //#8116 + $_.val = $f($_.val + $_.sval); //#8118 + $_.nm = $f($_.nm - $_.ew); //#8119 + $put($_.out, $_.bar, $_.ew); //#8120 + } //#8120 + $put($_.out, $f($_.el - 1), $_.nm); //#8122 + $k[$j++] = $_.out; //#8123 + }; //#8123 + $k[$j++] = Infinity; //#8126 + var _2H = $_.linkage ? 1 : 0; //#8127 + var _2J = $geti($_.barcode, 4, 13); //#8128 + $k[$j++] = _2H; //#8128 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#8128 + $k[$j++] = $f($get(_2J, _2K) - 48); //#8128 + } //#8128 + $_.binval = $a(); //#8128 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#8135 + $_.i = _2O; //#8132 + var _2P = $_.binval; //#8133 + var _2Q = $_.i; //#8133 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#8133 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#8134 + } //#8134 + $_.right = $get($_.binval, 13) % 4537077; //#8136 + var _2c = $_.binval; //#8137 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#8137 + $_.left = 0; //#8139 + $_.i = true; //#8140 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#8150 + $_.j = _2e; //#8142 + var _2h = $get($_.binval, $_.j); //#8143 + $k[$j++] = _2h; //#8149 + if ((_2h == 0) && $_.i) { //#8148 + $j--; //#8145 + } else { //#8148 + $_.i = false; //#8147 + $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8148 + } //#8148 + } //#8148 + $_.d1 = ~~($_.left / 1597); //#8152 + $_.d2 = $_.left % 1597; //#8153 + $_.d3 = ~~($_.right / 1597); //#8154 + $_.d4 = $_.right % 1597; //#8155 + if (!bwipp_databaromni.__8172__) { //#8172 + $_ = Object.create($_); //#8172 + $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8164 + $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8171 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8171 + bwipp_databaromni.__8172__ = 1; //#8171 + $_ = Object.getPrototypeOf($_); //#8171 + } //#8171 + $_.i = 0; //#8174 + for (;;) { //#8184 + if ($_.d1 <= $get($_.tab164, $_.i)) { //#8182 + var _2z = $geti($_.tab164, $_.i + 1, 7); //#8176 + for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8176 + $k[$j++] = $get(_2z, _30); //#8176 + } //#8176 + $_.d1te = $k[--$j]; //#8177 + $_.d1to = $k[--$j]; //#8177 + $_.d1mwe = $k[--$j]; //#8178 + $_.d1mwo = $k[--$j]; //#8178 + $_.d1ele = $k[--$j]; //#8179 + $_.d1elo = $k[--$j]; //#8179 + $_.d1gs = $k[--$j]; //#8180 + break; //#8181 + } //#8181 + $_.i = $_.i + 8; //#8183 + } //#8183 + $_.i = 0; //#8186 + for (;;) { //#8196 + if ($_.d2 <= $get($_.tab154, $_.i)) { //#8194 + var _3H = $geti($_.tab154, $_.i + 1, 7); //#8188 + for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8188 + $k[$j++] = $get(_3H, _3I); //#8188 } //#8188 - } //#8188 - $astore($a(50)); //#8190 - $_.bot = $k[--$j]; //#8190 - if ($eq($_.format, "stacked")) { //#8212 - $_.sep = $a(50); //#8194 - $put($_.sep, 0, 0); //#8195 - for (var _81 = 1; _81 <= 49; _81 += 1) { //#8203 - $_.i = _81; //#8197 - if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8199 - } else { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8201 - } //#8201 - } //#8201 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8204 - $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8205 - $k[$j++] = Infinity; //#8209 - for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8207 - $aload($_.top); //#8207 - } //#8207 - $aload($_.sep); //#8208 - for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8209 - $aload($_.bot); //#8209 - } //#8209 - $_.pixs = $a(); //#8209 - $_.pixy = ~~($_.pixs.length / 50); //#8211 - } //#8211 - if ($eq($_.format, "stackedomni")) { //#8262 - $k[$j++] = Infinity; //#8216 - $forall($_.top, function() { //#8216 - var _8X = $k[--$j]; //#8216 - $k[$j++] = $f(1 - _8X); //#8216 - }); //#8216 - $_.sep1 = $a(); //#8216 - $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8217 - $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8218 - for (var _8d = 18; _8d <= 30; _8d += 1) { //#8231 - $_.i = _8d; //#8220 - if ($get($_.top, $_.i) == 0) { //#8228 - if ($get($_.top, $_.i - 1) == 1) { //#8225 - $k[$j++] = 1; //#8223 - } else { //#8225 - var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8225 - $k[$j++] = _8n; //#8225 - } //#8225 - } else { //#8228 - $k[$j++] = 0; //#8228 - } //#8228 - $put($_.sep1, $_.i, $k[--$j]); //#8230 - } //#8230 - $k[$j++] = Infinity; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 1; //#8232 - } //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $_.sep2 = $a(); //#8232 - $k[$j++] = Infinity; //#8233 - $forall($_.bot, function() { //#8233 - var _8v = $k[--$j]; //#8233 - $k[$j++] = $f(1 - _8v); //#8233 - }); //#8233 - $_.sep3 = $a(); //#8233 - $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8234 - $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8235 - for (var _91 = 19; _91 <= 31; _91 += 1) { //#8248 - $_.i = _91; //#8237 - if ($get($_.bot, $_.i) == 0) { //#8245 - if ($get($_.bot, $_.i - 1) == 1) { //#8242 - $k[$j++] = 1; //#8240 - } else { //#8242 - var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8242 - $k[$j++] = _9B; //#8242 - } //#8242 - } else { //#8245 - $k[$j++] = 0; //#8245 - } //#8245 - $put($_.sep3, $_.i, $k[--$j]); //#8247 - } //#8247 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8249 - $k[$j++] = true; //#8250 - for (var _9G = 0; _9G <= 12; _9G += 1) { //#8250 - var _9L = $k[--$j]; //#8250 - $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8250 - } //#8250 - if ($k[--$j]) { //#8253 - $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8252 - } //#8252 - $k[$j++] = Infinity; //#8259 - for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8255 - $aload($_.top); //#8255 - } //#8255 - $aload($_.sep1); //#8256 - $aload($_.sep2); //#8257 - $aload($_.sep3); //#8258 - for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8259 - $aload($_.bot); //#8259 - } //#8259 - $_.pixs = $a(); //#8259 - $_.pixy = ~~($_.pixs.length / 50); //#8261 - } //#8261 + $_.d2te = $k[--$j]; //#8189 + $_.d2to = $k[--$j]; //#8189 + $_.d2mwe = $k[--$j]; //#8190 + $_.d2mwo = $k[--$j]; //#8190 + $_.d2ele = $k[--$j]; //#8191 + $_.d2elo = $k[--$j]; //#8191 + $_.d2gs = $k[--$j]; //#8192 + break; //#8193 + } //#8193 + $_.i = $_.i + 8; //#8195 + } //#8195 + $_.i = 0; //#8198 + for (;;) { //#8208 + if ($_.d3 <= $get($_.tab164, $_.i)) { //#8206 + var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8200 + for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8200 + $k[$j++] = $get(_3Z, _3a); //#8200 + } //#8200 + $_.d3te = $k[--$j]; //#8201 + $_.d3to = $k[--$j]; //#8201 + $_.d3mwe = $k[--$j]; //#8202 + $_.d3mwo = $k[--$j]; //#8202 + $_.d3ele = $k[--$j]; //#8203 + $_.d3elo = $k[--$j]; //#8203 + $_.d3gs = $k[--$j]; //#8204 + break; //#8205 + } //#8205 + $_.i = $_.i + 8; //#8207 + } //#8207 + $_.i = 0; //#8210 + for (;;) { //#8220 + if ($_.d4 <= $get($_.tab154, $_.i)) { //#8218 + var _3r = $geti($_.tab154, $_.i + 1, 7); //#8212 + for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8212 + $k[$j++] = $get(_3r, _3s); //#8212 + } //#8212 + $_.d4te = $k[--$j]; //#8213 + $_.d4to = $k[--$j]; //#8213 + $_.d4mwe = $k[--$j]; //#8214 + $_.d4mwo = $k[--$j]; //#8214 + $_.d4ele = $k[--$j]; //#8215 + $_.d4elo = $k[--$j]; //#8215 + $_.d4gs = $k[--$j]; //#8216 + break; //#8217 + } //#8217 + $_.i = $_.i + 8; //#8219 + } //#8219 + $k[$j++] = 'd1wo'; //#8222 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8222 + $k[$j++] = $_.d1elo; //#8222 + $k[$j++] = $_.d1mwo; //#8222 + $k[$j++] = 4; //#8222 + $k[$j++] = false; //#8222 + $_.getRSSwidths(); //#8222 + var _48 = $k[--$j]; //#8222 + $_[$k[--$j]] = _48; //#8222 + $k[$j++] = 'd1we'; //#8223 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8223 + $k[$j++] = $_.d1ele; //#8223 + $k[$j++] = $_.d1mwe; //#8223 + $k[$j++] = 4; //#8223 + $k[$j++] = true; //#8223 + $_.getRSSwidths(); //#8223 + var _4F = $k[--$j]; //#8223 + $_[$k[--$j]] = _4F; //#8223 + $k[$j++] = 'd2wo'; //#8224 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8224 + $k[$j++] = $_.d2elo; //#8224 + $k[$j++] = $_.d2mwo; //#8224 + $k[$j++] = 4; //#8224 + $k[$j++] = true; //#8224 + $_.getRSSwidths(); //#8224 + var _4M = $k[--$j]; //#8224 + $_[$k[--$j]] = _4M; //#8224 + $k[$j++] = 'd2we'; //#8225 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8225 + $k[$j++] = $_.d2ele; //#8225 + $k[$j++] = $_.d2mwe; //#8225 + $k[$j++] = 4; //#8225 + $k[$j++] = false; //#8225 + $_.getRSSwidths(); //#8225 + var _4T = $k[--$j]; //#8225 + $_[$k[--$j]] = _4T; //#8225 + $k[$j++] = 'd3wo'; //#8226 + $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8226 + $k[$j++] = $_.d3elo; //#8226 + $k[$j++] = $_.d3mwo; //#8226 + $k[$j++] = 4; //#8226 + $k[$j++] = false; //#8226 + $_.getRSSwidths(); //#8226 + var _4a = $k[--$j]; //#8226 + $_[$k[--$j]] = _4a; //#8226 + $k[$j++] = 'd3we'; //#8227 + $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8227 + $k[$j++] = $_.d3ele; //#8227 + $k[$j++] = $_.d3mwe; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $_.getRSSwidths(); //#8227 + var _4h = $k[--$j]; //#8227 + $_[$k[--$j]] = _4h; //#8227 + $k[$j++] = 'd4wo'; //#8228 + $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8228 + $k[$j++] = $_.d4elo; //#8228 + $k[$j++] = $_.d4mwo; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = true; //#8228 + $_.getRSSwidths(); //#8228 + var _4o = $k[--$j]; //#8228 + $_[$k[--$j]] = _4o; //#8228 + $k[$j++] = 'd4we'; //#8229 + $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8229 + $k[$j++] = $_.d4ele; //#8229 + $k[$j++] = $_.d4mwe; //#8229 + $k[$j++] = 4; //#8229 + $k[$j++] = false; //#8229 + $_.getRSSwidths(); //#8229 + var _4v = $k[--$j]; //#8229 + $_[$k[--$j]] = _4v; //#8229 + $_.d1w = $a(8); //#8231 + for (var _4y = 0; _4y <= 3; _4y += 1) { //#8236 + $_.i = _4y; //#8233 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8234 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8235 + } //#8235 + $_.d2w = $a(8); //#8238 + for (var _5A = 0; _5A <= 3; _5A += 1) { //#8243 + $_.i = _5A; //#8240 + $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8241 + $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8242 + } //#8242 + $_.d3w = $a(8); //#8245 + for (var _5M = 0; _5M <= 3; _5M += 1) { //#8250 + $_.i = _5M; //#8247 + $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8248 + $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8249 + } //#8249 + $_.d4w = $a(8); //#8252 + for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8257 + $_.i = _5Y; //#8254 + $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8255 + $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8256 + } //#8256 + $k[$j++] = Infinity; //#8259 + var _5j = $_.d1w; //#8260 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8260 + $k[$j++] = $get(_5j, _5k); //#8260 + } //#8260 + var _5n = $_.d2w; //#8261 + for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8261 + $k[$j++] = $get(_5n, _5o); //#8261 + } //#8261 + var _5r = $_.d3w; //#8262 + for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8262 + $k[$j++] = $get(_5r, _5s); //#8262 + } //#8262 + var _5v = $_.d4w; //#8263 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8263 + $k[$j++] = $get(_5v, _5w); //#8263 + } //#8263 + $_.widths = $a(); //#8263 + if (!bwipp_databaromni.__8279__) { //#8279 + $_ = Object.create($_); //#8279 + $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8272 + $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8278 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8278 + bwipp_databaromni.__8279__ = 1; //#8278 + $_ = Object.getPrototypeOf($_); //#8278 + } //#8278 + $_.checksum = 0; //#8281 + for (var _63 = 0; _63 <= 31; _63 += 1) { //#8285 + $_.i = _63; //#8283 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8284 + } //#8284 + $_.checksum = $_.checksum % 79; //#8286 + if ($_.checksum >= 8) { //#8287 + $_.checksum = $f($_.checksum + 1); //#8287 + } //#8287 + if ($_.checksum >= 72) { //#8288 + $_.checksum = $f($_.checksum + 1); //#8288 + } //#8288 + $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8289 + $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8290 + $_.checkrt = $a(5); //#8291 + for (var _6N = 0; _6N <= 4; _6N += 1) { //#8295 + $_.i = _6N; //#8293 + $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8294 + } //#8294 + if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8423 + $k[$j++] = Infinity; //#8300 + var _6V = $_.d1w; //#8301 + $k[$j++] = 1; //#8301 + for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8301 + $k[$j++] = $get(_6V, _6W); //#8301 + } //#8301 + var _6Z = $_.checklt; //#8301 + for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8301 + $k[$j++] = $get(_6Z, _6a); //#8301 + } //#8301 + var _6d = $_.d2w; //#8301 + for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8301 + $k[$j++] = $get(_6d, _6e); //#8301 + } //#8301 + var _6h = $_.d4w; //#8302 + for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8302 + $k[$j++] = $get(_6h, _6i); //#8302 + } //#8302 + var _6l = $_.checkrt; //#8302 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8302 + $k[$j++] = $get(_6l, _6m); //#8302 + } //#8302 + var _6p = $_.d3w; //#8302 + for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8302 + $k[$j++] = $get(_6p, _6q); //#8302 + } //#8302 + $k[$j++] = 1; //#8302 + $k[$j++] = 1; //#8302 + $_.sbs = $a(); //#8302 + $k[$j++] = Infinity; //#8305 + var _6u = $_.sbs; //#8307 + $k[$j++] = Infinity; //#8308 + for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8308 + $k[$j++] = $_.height; //#8308 + } //#8308 + var _6z = $a(); //#8308 + $k[$j++] = Infinity; //#8309 + for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8309 + $k[$j++] = 0; //#8309 + } //#8309 + var _73 = $a(); //#8309 + $k[$j++] = 'ren'; //#8314 + $k[$j++] = bwipp_renlinear; //#8314 + $k[$j++] = 'sbs'; //#8314 + $k[$j++] = _6u; //#8314 + $k[$j++] = 'bhs'; //#8314 + $k[$j++] = _6z; //#8314 + $k[$j++] = 'bbs'; //#8314 + $k[$j++] = _73; //#8314 + $k[$j++] = 'txt'; //#8314 + $k[$j++] = $_.txt; //#8314 + $k[$j++] = 'textxalign'; //#8314 + $k[$j++] = "center"; //#8314 + $k[$j++] = 'borderleft'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'borderright'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'opt'; //#8314 + $k[$j++] = $_.options; //#8314 + var _76 = $d(); //#8314 + $k[$j++] = _76; //#8317 + if (!$_.dontdraw) { //#8317 + bwipp_renlinear(); //#8317 + } //#8317 + } else { //#8423 + $k[$j++] = Infinity; //#8321 + var _78 = $_.d1w; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8321 + $k[$j++] = $get(_78, _79); //#8321 + } //#8321 + var _7C = $_.checklt; //#8321 + for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8321 + $k[$j++] = $get(_7C, _7D); //#8321 + } //#8321 + var _7G = $_.d2w; //#8321 + for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8321 + $k[$j++] = $get(_7G, _7H); //#8321 + } //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 0; //#8321 + $_.top = $a(); //#8321 + $k[$j++] = Infinity; //#8322 + var _7L = $_.d4w; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8322 + $k[$j++] = $get(_7L, _7M); //#8322 + } //#8322 + var _7P = $_.checkrt; //#8322 + for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8322 + $k[$j++] = $get(_7P, _7Q); //#8322 + } //#8322 + var _7T = $_.d3w; //#8322 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8322 + $k[$j++] = $get(_7T, _7U); //#8322 + } //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 0; //#8322 + $_.bot = $a(); //#8322 + for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8327 + $_.i = _7Y; //#8324 + for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8325 + $k[$j++] = 0; //#8325 + } //#8325 + for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8326 + $k[$j++] = 1; //#8326 + } //#8326 + } //#8326 + $astore($a(50)); //#8328 + $_.top = $k[--$j]; //#8328 + for (var _7l = 0; _7l <= 24; _7l += 2) { //#8333 + $_.i = _7l; //#8330 + for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8331 + $k[$j++] = 1; //#8331 + } //#8331 + for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8332 + $k[$j++] = 0; //#8332 + } //#8332 + } //#8332 + $astore($a(50)); //#8334 + $_.bot = $k[--$j]; //#8334 + if ($eq($_.format, "stacked")) { //#8356 + $_.sep = $a(50); //#8338 + $put($_.sep, 0, 0); //#8339 + for (var _81 = 1; _81 <= 49; _81 += 1) { //#8347 + $_.i = _81; //#8341 + if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8343 + } else { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8345 + } //#8345 + } //#8345 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8348 + $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8349 + $k[$j++] = Infinity; //#8350 + for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8351 + $aload($_.top); //#8351 + } //#8351 + $aload($_.sep); //#8352 + for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8353 + $aload($_.bot); //#8353 + } //#8353 + $_.pixs = $a(); //#8353 + $_.pixy = ~~($_.pixs.length / 50); //#8355 + } //#8355 + if ($eq($_.format, "stackedomni")) { //#8406 + $k[$j++] = Infinity; //#8360 + $forall($_.top, function() { //#8360 + var _8X = $k[--$j]; //#8360 + $k[$j++] = $f(1 - _8X); //#8360 + }); //#8360 + $_.sep1 = $a(); //#8360 + $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8361 + $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8362 + for (var _8d = 18; _8d <= 30; _8d += 1) { //#8375 + $_.i = _8d; //#8364 + if ($get($_.top, $_.i) == 0) { //#8372 + if ($get($_.top, $_.i - 1) == 1) { //#8369 + $k[$j++] = 1; //#8367 + } else { //#8369 + var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8369 + $k[$j++] = _8n; //#8369 + } //#8369 + } else { //#8372 + $k[$j++] = 0; //#8372 + } //#8372 + $put($_.sep1, $_.i, $k[--$j]); //#8374 + } //#8374 + $k[$j++] = Infinity; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 1; //#8376 + } //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $_.sep2 = $a(); //#8376 + $k[$j++] = Infinity; //#8377 + $forall($_.bot, function() { //#8377 + var _8v = $k[--$j]; //#8377 + $k[$j++] = $f(1 - _8v); //#8377 + }); //#8377 + $_.sep3 = $a(); //#8377 + $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8378 + $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8379 + for (var _91 = 19; _91 <= 31; _91 += 1) { //#8392 + $_.i = _91; //#8381 + if ($get($_.bot, $_.i) == 0) { //#8389 + if ($get($_.bot, $_.i - 1) == 1) { //#8386 + $k[$j++] = 1; //#8384 + } else { //#8386 + var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8386 + $k[$j++] = _9B; //#8386 + } //#8386 + } else { //#8389 + $k[$j++] = 0; //#8389 + } //#8389 + $put($_.sep3, $_.i, $k[--$j]); //#8391 + } //#8391 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8393 + $k[$j++] = true; //#8394 + for (var _9G = 0; _9G <= 12; _9G += 1) { //#8394 + var _9L = $k[--$j]; //#8394 + $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8394 + } //#8394 + if ($k[--$j]) { //#8397 + $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8396 + } //#8396 + $k[$j++] = Infinity; //#8398 + for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8399 + $aload($_.top); //#8399 + } //#8399 + $aload($_.sep1); //#8400 + $aload($_.sep2); //#8401 + $aload($_.sep3); //#8402 + for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8403 + $aload($_.bot); //#8403 + } //#8403 + $_.pixs = $a(); //#8403 + $_.pixy = ~~($_.pixs.length / 50); //#8405 + } //#8405 var _9g = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -11330,2056 +11588,2073 @@ function bwipp_databaromni() { ["pixy", $_.pixy], ["height", $_.pixy / 72], ["width", 50 / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#8272 - $k[$j++] = _9g; //#8275 - if (!$_.dontdraw) { //#8275 - bwipp_renmatrix(); //#8275 - } //#8275 - } //#8275 - $_ = Object.getPrototypeOf($_); //#8279 - $_ = Object.getPrototypeOf($_); //#8281 -} - + ]); //#8420 + $k[$j++] = _9g; //#8423 + if (!$_.dontdraw) { //#8423 + bwipp_renmatrix(); //#8423 + } //#8423 + } //#8423 + $_ = Object.getPrototypeOf($_); //#8427 + $_ = Object.getPrototypeOf($_); //#8429 +} //bwipp_databaromni function bwipp_databarstacked() { - $_ = Object.create($_); //#8310 - $_.dontdraw = false; //#8313 - $k[$j++] = $_; //#8315 - bwipp_processoptions(); //#8315 - $_.options = $k[--$j]; //#8315 - $_.barcode = $k[--$j]; //#8316 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8321 - $k[$j++] = 'bwipp.databarstackedBadAI#8320'; //#8320 - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8320 - bwipp_raiseerror(); //#8320 - } //#8320 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8324 - $k[$j++] = 'bwipp.databarstackedBadLength#8323'; //#8323 - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8323 - bwipp_raiseerror(); //#8323 - } //#8323 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8325 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8329 - var _B = $get(_8, _9); //#8329 - if ((_B < 48) || (_B > 57)) { //#8328 - $k[$j++] = 'bwipp.databarstackedBadCharacter#8327'; //#8327 - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8327 - bwipp_raiseerror(); //#8327 - } //#8327 - } //#8327 - $_.checksum = 0; //#8332 - for (var _C = 0; _C <= 12; _C += 1) { //#8336 - $_.i = _C; //#8334 - $k[$j++] = 'checksum'; //#8335 - $k[$j++] = $_.checksum; //#8335 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8335 - if (($_.i % 2) == 0) { //#8335 - var _I = $k[--$j]; //#8335 - $k[$j++] = _I * 3; //#8335 - } //#8335 - var _J = $k[--$j]; //#8335 - var _K = $k[--$j]; //#8335 - $_[$k[--$j]] = $f(_K + _J); //#8335 - } //#8335 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8337 - if ($_.barcode.length == 18) { //#8342 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8341 - $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8340'; //#8340 - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8340 - bwipp_raiseerror(); //#8340 - } //#8340 - } //#8340 - var _R = $s(18); //#8343 - $puti(_R, 0, $_.barcode); //#8344 - $put(_R, 17, $_.checksum + 48); //#8345 - $_.barcode = _R; //#8346 - $put($_.options, "dontdraw", true); //#8349 - $put($_.options, "format", "stacked"); //#8350 - $k[$j++] = 'args'; //#8352 - $k[$j++] = $_.barcode; //#8352 - $k[$j++] = $_.options; //#8352 - bwipp_databaromni(); //#8352 - var _Y = $k[--$j]; //#8352 - $_[$k[--$j]] = _Y; //#8352 - $put($_.args, "opt", $_.options); //#8354 - $k[$j++] = $_.args; //#8357 - if (!$_.dontdraw) { //#8357 - bwipp_renmatrix(); //#8357 - } //#8357 - $_ = Object.getPrototypeOf($_); //#8359 -} - -function bwipp_databarstackedomni() { - $_ = Object.create($_); //#8388 - $_.dontdraw = false; //#8391 - $k[$j++] = $_; //#8393 - bwipp_processoptions(); //#8393 - $_.options = $k[--$j]; //#8393 - $_.barcode = $k[--$j]; //#8394 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8399 - $k[$j++] = 'bwipp.databarstackedomniBadAI#8398'; //#8398 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8398 - bwipp_raiseerror(); //#8398 - } //#8398 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8402 - $k[$j++] = 'bwipp.databarstackedomniBadLength#8401'; //#8401 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8401 - bwipp_raiseerror(); //#8401 - } //#8401 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8403 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8407 - var _B = $get(_8, _9); //#8407 - if ((_B < 48) || (_B > 57)) { //#8406 - $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8405'; //#8405 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8405 - bwipp_raiseerror(); //#8405 - } //#8405 - } //#8405 - $_.checksum = 0; //#8410 - for (var _C = 0; _C <= 12; _C += 1) { //#8414 - $_.i = _C; //#8412 - $k[$j++] = 'checksum'; //#8413 - $k[$j++] = $_.checksum; //#8413 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8413 - if (($_.i % 2) == 0) { //#8413 - var _I = $k[--$j]; //#8413 - $k[$j++] = _I * 3; //#8413 - } //#8413 - var _J = $k[--$j]; //#8413 - var _K = $k[--$j]; //#8413 - $_[$k[--$j]] = $f(_K + _J); //#8413 - } //#8413 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8415 - if ($_.barcode.length == 18) { //#8420 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8419 - $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8418'; //#8418 - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8418 - bwipp_raiseerror(); //#8418 - } //#8418 - } //#8418 - var _R = $s(18); //#8421 - $puti(_R, 0, $_.barcode); //#8422 - $put(_R, 17, $_.checksum + 48); //#8423 - $_.barcode = _R; //#8424 - $put($_.options, "dontdraw", true); //#8427 - $put($_.options, "format", "stackedomni"); //#8428 - $k[$j++] = 'args'; //#8430 - $k[$j++] = $_.barcode; //#8430 - $k[$j++] = $_.options; //#8430 - bwipp_databaromni(); //#8430 - var _Y = $k[--$j]; //#8430 - $_[$k[--$j]] = _Y; //#8430 - $put($_.args, "opt", $_.options); //#8432 - $k[$j++] = $_.args; //#8435 - if (!$_.dontdraw) { //#8435 - bwipp_renmatrix(); //#8435 - } //#8435 - $_ = Object.getPrototypeOf($_); //#8437 -} - -function bwipp_databartruncated() { - $_ = Object.create($_); //#8466 - $_.dontdraw = false; //#8469 - $k[$j++] = $_; //#8471 - bwipp_processoptions(); //#8471 - $_.options = $k[--$j]; //#8471 - $_.barcode = $k[--$j]; //#8472 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8477 - $k[$j++] = 'bwipp.databartruncatedBadAI#8476'; //#8476 - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8476 - bwipp_raiseerror(); //#8476 - } //#8476 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8480 - $k[$j++] = 'bwipp.databartruncatedBadLength#8479'; //#8479 - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8479 - bwipp_raiseerror(); //#8479 - } //#8479 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8481 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8485 - var _B = $get(_8, _9); //#8485 - if ((_B < 48) || (_B > 57)) { //#8484 - $k[$j++] = 'bwipp.databartruncatedBadCharacter#8483'; //#8483 - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8483 - bwipp_raiseerror(); //#8483 + $_ = Object.create($_); //#8458 + $_.dontdraw = false; //#8461 + $k[$j++] = $_; //#8463 + bwipp_processoptions(); //#8463 + $_.options = $k[--$j]; //#8463 + $_.barcode = $k[--$j]; //#8464 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8469 + $k[$j++] = 'bwipp.databarstackedBadLength#8468'; //#8468 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8468 + bwipp_raiseerror(); //#8468 + } //#8468 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8472 + $k[$j++] = 'bwipp.databarstackedBadAI#8471'; //#8471 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8471 + bwipp_raiseerror(); //#8471 + } //#8471 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8473 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8477 + var _B = $get(_8, _9); //#8477 + if ((_B < 48) || (_B > 57)) { //#8476 + $k[$j++] = 'bwipp.databarstackedBadCharacter#8475'; //#8475 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8475 + bwipp_raiseerror(); //#8475 + } //#8475 + } //#8475 + $_.checksum = 0; //#8480 + for (var _C = 0; _C <= 12; _C += 1) { //#8484 + $_.i = _C; //#8482 + $k[$j++] = 'checksum'; //#8483 + $k[$j++] = $_.checksum; //#8483 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8483 + if (($_.i % 2) == 0) { //#8483 + var _I = $k[--$j]; //#8483 + $k[$j++] = _I * 3; //#8483 } //#8483 + var _J = $k[--$j]; //#8483 + var _K = $k[--$j]; //#8483 + $_[$k[--$j]] = $f(_K + _J); //#8483 } //#8483 - $_.checksum = 0; //#8488 - for (var _C = 0; _C <= 12; _C += 1) { //#8492 - $_.i = _C; //#8490 - $k[$j++] = 'checksum'; //#8491 - $k[$j++] = $_.checksum; //#8491 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8491 - if (($_.i % 2) == 0) { //#8491 - var _I = $k[--$j]; //#8491 - $k[$j++] = _I * 3; //#8491 - } //#8491 - var _J = $k[--$j]; //#8491 - var _K = $k[--$j]; //#8491 - $_[$k[--$j]] = $f(_K + _J); //#8491 - } //#8491 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8493 - if ($_.barcode.length == 18) { //#8498 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8497 - $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8496'; //#8496 - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8496 - bwipp_raiseerror(); //#8496 - } //#8496 - } //#8496 - var _R = $s(18); //#8499 - $puti(_R, 0, $_.barcode); //#8500 - $put(_R, 17, $_.checksum + 48); //#8501 - $_.barcode = _R; //#8502 - $put($_.options, "dontdraw", true); //#8505 - $put($_.options, "format", "truncated"); //#8506 - $k[$j++] = 'args'; //#8508 - $k[$j++] = $_.barcode; //#8508 - $k[$j++] = $_.options; //#8508 - bwipp_databaromni(); //#8508 - var _Y = $k[--$j]; //#8508 - $_[$k[--$j]] = _Y; //#8508 - $put($_.args, "opt", $_.options); //#8510 - $k[$j++] = $_.args; //#8513 - if (!$_.dontdraw) { //#8513 - bwipp_renlinear(); //#8513 - } //#8513 - $_ = Object.getPrototypeOf($_); //#8515 -} - + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8485 + if ($_.barcode.length == 18) { //#8490 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8489 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8488'; //#8488 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8488 + bwipp_raiseerror(); //#8488 + } //#8488 + } //#8488 + var _R = $s(18); //#8491 + $puti(_R, 0, $_.barcode); //#8492 + $put(_R, 17, $_.checksum + 48); //#8493 + $_.barcode = _R; //#8494 + $put($_.options, "dontdraw", true); //#8497 + $put($_.options, "format", "stacked"); //#8498 + $k[$j++] = 'args'; //#8500 + $k[$j++] = $_.barcode; //#8500 + $k[$j++] = $_.options; //#8500 + bwipp_databaromni(); //#8500 + var _Y = $k[--$j]; //#8500 + $_[$k[--$j]] = _Y; //#8500 + $put($_.args, "opt", $_.options); //#8502 + $k[$j++] = $_.args; //#8505 + if (!$_.dontdraw) { //#8505 + bwipp_renmatrix(); //#8505 + } //#8505 + $_ = Object.getPrototypeOf($_); //#8507 +} //bwipp_databarstacked +function bwipp_databarstackedomni() { + $_ = Object.create($_); //#8536 + $_.dontdraw = false; //#8539 + $k[$j++] = $_; //#8541 + bwipp_processoptions(); //#8541 + $_.options = $k[--$j]; //#8541 + $_.barcode = $k[--$j]; //#8542 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8547 + $k[$j++] = 'bwipp.databarstackedomniBadAI#8546'; //#8546 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8546 + bwipp_raiseerror(); //#8546 + } //#8546 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8550 + $k[$j++] = 'bwipp.databarstackedomniBadLength#8549'; //#8549 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8549 + bwipp_raiseerror(); //#8549 + } //#8549 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8551 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8555 + var _B = $get(_8, _9); //#8555 + if ((_B < 48) || (_B > 57)) { //#8554 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8553'; //#8553 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8553 + bwipp_raiseerror(); //#8553 + } //#8553 + } //#8553 + $_.checksum = 0; //#8558 + for (var _C = 0; _C <= 12; _C += 1) { //#8562 + $_.i = _C; //#8560 + $k[$j++] = 'checksum'; //#8561 + $k[$j++] = $_.checksum; //#8561 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8561 + if (($_.i % 2) == 0) { //#8561 + var _I = $k[--$j]; //#8561 + $k[$j++] = _I * 3; //#8561 + } //#8561 + var _J = $k[--$j]; //#8561 + var _K = $k[--$j]; //#8561 + $_[$k[--$j]] = $f(_K + _J); //#8561 + } //#8561 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8563 + if ($_.barcode.length == 18) { //#8568 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8567 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8566'; //#8566 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8566 + bwipp_raiseerror(); //#8566 + } //#8566 + } //#8566 + var _R = $s(18); //#8569 + $puti(_R, 0, $_.barcode); //#8570 + $put(_R, 17, $_.checksum + 48); //#8571 + $_.barcode = _R; //#8572 + $put($_.options, "dontdraw", true); //#8575 + $put($_.options, "format", "stackedomni"); //#8576 + $k[$j++] = 'args'; //#8578 + $k[$j++] = $_.barcode; //#8578 + $k[$j++] = $_.options; //#8578 + bwipp_databaromni(); //#8578 + var _Y = $k[--$j]; //#8578 + $_[$k[--$j]] = _Y; //#8578 + $put($_.args, "opt", $_.options); //#8580 + $k[$j++] = $_.args; //#8583 + if (!$_.dontdraw) { //#8583 + bwipp_renmatrix(); //#8583 + } //#8583 + $_ = Object.getPrototypeOf($_); //#8585 +} //bwipp_databarstackedomni +function bwipp_databartruncated() { + $_ = Object.create($_); //#8614 + $_.dontdraw = false; //#8617 + $k[$j++] = $_; //#8619 + bwipp_processoptions(); //#8619 + $_.options = $k[--$j]; //#8619 + $_.barcode = $k[--$j]; //#8620 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8625 + $k[$j++] = 'bwipp.databartruncatedBadLength#8624'; //#8624 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8624 + bwipp_raiseerror(); //#8624 + } //#8624 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8628 + $k[$j++] = 'bwipp.databartruncatedBadAI#8627'; //#8627 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8627 + bwipp_raiseerror(); //#8627 + } //#8627 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8629 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8633 + var _B = $get(_8, _9); //#8633 + if ((_B < 48) || (_B > 57)) { //#8632 + $k[$j++] = 'bwipp.databartruncatedBadCharacter#8631'; //#8631 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8631 + bwipp_raiseerror(); //#8631 + } //#8631 + } //#8631 + $_.checksum = 0; //#8636 + for (var _C = 0; _C <= 12; _C += 1) { //#8640 + $_.i = _C; //#8638 + $k[$j++] = 'checksum'; //#8639 + $k[$j++] = $_.checksum; //#8639 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8639 + if (($_.i % 2) == 0) { //#8639 + var _I = $k[--$j]; //#8639 + $k[$j++] = _I * 3; //#8639 + } //#8639 + var _J = $k[--$j]; //#8639 + var _K = $k[--$j]; //#8639 + $_[$k[--$j]] = $f(_K + _J); //#8639 + } //#8639 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8641 + if ($_.barcode.length == 18) { //#8646 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8645 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8644'; //#8644 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8644 + bwipp_raiseerror(); //#8644 + } //#8644 + } //#8644 + var _R = $s(18); //#8647 + $puti(_R, 0, $_.barcode); //#8648 + $put(_R, 17, $_.checksum + 48); //#8649 + $_.barcode = _R; //#8650 + $put($_.options, "dontdraw", true); //#8653 + $put($_.options, "format", "truncated"); //#8654 + $k[$j++] = 'args'; //#8656 + $k[$j++] = $_.barcode; //#8656 + $k[$j++] = $_.options; //#8656 + bwipp_databaromni(); //#8656 + var _Y = $k[--$j]; //#8656 + $_[$k[--$j]] = _Y; //#8656 + $put($_.args, "opt", $_.options); //#8658 + $k[$j++] = $_.args; //#8661 + if (!$_.dontdraw) { //#8661 + bwipp_renlinear(); //#8661 + } //#8661 + $_ = Object.getPrototypeOf($_); //#8663 +} //bwipp_databartruncated function bwipp_databarlimited() { - $_ = Object.create($_); //#8545 - $_.dontdraw = false; //#8548 - $_.height = 10 / 72; //#8549 - $_.linkage = false; //#8550 - $k[$j++] = $_; //#8552 - bwipp_processoptions(); //#8552 - $_.options = $k[--$j]; //#8552 - $_.barcode = $k[--$j]; //#8553 - bwipp_loadctx(bwipp_databarlimited) //#8555 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8560 - $k[$j++] = 'bwipp.databarlimitedBadAI#8559'; //#8559 - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8559 - bwipp_raiseerror(); //#8559 - } //#8559 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8563 - $k[$j++] = 'bwipp.databarlimitedBadLength#8562'; //#8562 - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8562 - bwipp_raiseerror(); //#8562 - } //#8562 - var _7 = $get($_.barcode, 4); //#8564 - if ((_7 < 48) || (_7 > 49)) { //#8566 - $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8565'; //#8565 - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8565 - bwipp_raiseerror(); //#8565 - } //#8565 - var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8567 - for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8571 - var _D = $get(_A, _B); //#8571 - if ((_D < 48) || (_D > 57)) { //#8570 - $k[$j++] = 'bwipp.databarlimitedBadCharacter#8569'; //#8569 - $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8569 - bwipp_raiseerror(); //#8569 - } //#8569 - } //#8569 - $_.checksum = 0; //#8574 - for (var _E = 0; _E <= 12; _E += 1) { //#8578 - $_.i = _E; //#8576 - $k[$j++] = 'checksum'; //#8577 - $k[$j++] = $_.checksum; //#8577 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8577 - if (($_.i % 2) == 0) { //#8577 - var _K = $k[--$j]; //#8577 - $k[$j++] = _K * 3; //#8577 - } //#8577 - var _L = $k[--$j]; //#8577 - var _M = $k[--$j]; //#8577 - $_[$k[--$j]] = $f(_M + _L); //#8577 - } //#8577 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8579 - if ($_.barcode.length == 18) { //#8584 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8583 - $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8582'; //#8582 - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8582 - bwipp_raiseerror(); //#8582 - } //#8582 - } //#8582 - var _T = $s(18); //#8585 - $puti(_T, 0, $_.barcode); //#8586 - $put(_T, 17, $_.checksum + 48); //#8587 - $_.barcode = _T; //#8588 - if (!bwipp_databarlimited.__8593__) { //#8593 - $_ = Object.create($_); //#8593 - $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8592 - bwipp_databarlimited.__8593__ = 1; //#8592 - $_ = Object.getPrototypeOf($_); //#8592 - } //#8592 - $k[$j++] = Infinity; //#8595 - var _Z = $geti($_.barcode, 4, 13); //#8595 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8595 - $k[$j++] = $f($get(_Z, _a) - 48); //#8595 - } //#8595 - $_.binval = $a(); //#8595 - if ($_.linkage) { //#8602 - for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8601 - $_.i = _h; //#8599 - $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8600 - } //#8600 - } //#8600 - $_.txt = $a($_.barcode.length); //#8605 - for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8609 - $_.i = _u; //#8607 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8608 - } //#8608 + $_ = Object.create($_); //#8693 + $_.dontdraw = false; //#8696 + $_.height = 10 / 72; //#8697 + $_.linkage = false; //#8698 + $k[$j++] = $_; //#8700 + bwipp_processoptions(); //#8700 + $_.options = $k[--$j]; //#8700 + $_.barcode = $k[--$j]; //#8701 + bwipp_loadctx(bwipp_databarlimited) //#8703 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8708 + $k[$j++] = 'bwipp.databarlimitedBadLength#8707'; //#8707 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8707 + bwipp_raiseerror(); //#8707 + } //#8707 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8711 + $k[$j++] = 'bwipp.databarlimitedBadAI#8710'; //#8710 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8710 + bwipp_raiseerror(); //#8710 + } //#8710 + var _7 = $get($_.barcode, 4); //#8712 + if ((_7 < 48) || (_7 > 49)) { //#8714 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8713'; //#8713 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8713 + bwipp_raiseerror(); //#8713 + } //#8713 + var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8715 + for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8719 + var _D = $get(_A, _B); //#8719 + if ((_D < 48) || (_D > 57)) { //#8718 + $k[$j++] = 'bwipp.databarlimitedBadCharacter#8717'; //#8717 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8717 + bwipp_raiseerror(); //#8717 + } //#8717 + } //#8717 + $_.checksum = 0; //#8722 + for (var _E = 0; _E <= 12; _E += 1) { //#8726 + $_.i = _E; //#8724 + $k[$j++] = 'checksum'; //#8725 + $k[$j++] = $_.checksum; //#8725 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8725 + if (($_.i % 2) == 0) { //#8725 + var _K = $k[--$j]; //#8725 + $k[$j++] = _K * 3; //#8725 + } //#8725 + var _L = $k[--$j]; //#8725 + var _M = $k[--$j]; //#8725 + $_[$k[--$j]] = $f(_M + _L); //#8725 + } //#8725 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8727 + if ($_.barcode.length == 18) { //#8732 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8731 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8730'; //#8730 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8730 + bwipp_raiseerror(); //#8730 + } //#8730 + } //#8730 + var _T = $s(18); //#8733 + $puti(_T, 0, $_.barcode); //#8734 + $put(_T, 17, $_.checksum + 48); //#8735 + $_.barcode = _T; //#8736 + if (!bwipp_databarlimited.__8741__) { //#8741 + $_ = Object.create($_); //#8741 + $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8740 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8740 + bwipp_databarlimited.__8741__ = 1; //#8740 + $_ = Object.getPrototypeOf($_); //#8740 + } //#8740 + $k[$j++] = Infinity; //#8742 + var _Z = $geti($_.barcode, 4, 13); //#8743 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8743 + $k[$j++] = $f($get(_Z, _a) - 48); //#8743 + } //#8743 + $_.binval = $a(); //#8743 + if ($_.linkage) { //#8750 + for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8749 + $_.i = _h; //#8747 + $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8748 + } //#8748 + } //#8748 + $_.txt = $a($_.barcode.length); //#8753 + for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8757 + $_.i = _u; //#8755 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8756 + } //#8756 $_.ncr = function() { - var _11 = $k[--$j]; //#8612 - var _12 = $k[--$j]; //#8612 - var _13 = $f(_12 - _11); //#8612 - if (_11 < $f(_12 - _11)) { //#8612 - var _ = _13; //#8612 - _13 = _11; //#8612 - _11 = _; //#8612 - } //#8612 - $k[$j++] = _13; //#8619 - $k[$j++] = 1; //#8619 - $k[$j++] = 1; //#8619 - for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8619 - var _16 = $k[--$j]; //#8615 - var _17 = $k[--$j]; //#8616 - var _18 = $k[--$j]; //#8616 - $k[$j++] = _18; //#8618 - $k[$j++] = _17; //#8618 - $k[$j++] = _16 * _15; //#8618 - if ($le(_17, _18)) { //#8618 - var _19 = $k[--$j]; //#8617 - var _1A = $k[--$j]; //#8617 - $k[$j++] = $f(_1A + 1); //#8617 - $k[$j++] = ~~(_19 / _1A); //#8617 - } //#8617 - } //#8617 - for (;;) { //#8623 - var _1B = $k[--$j]; //#8621 - var _1C = $k[--$j]; //#8621 - var _1D = $k[--$j]; //#8621 - $k[$j++] = _1D; //#8621 - $k[$j++] = _1C; //#8621 - $k[$j++] = _1B; //#8621 - if ($gt(_1C, _1D)) { //#8621 - break; //#8621 - } //#8621 - var _1E = $k[--$j]; //#8622 - var _1F = $k[--$j]; //#8622 - $k[$j++] = $f(_1F + 1); //#8622 - $k[$j++] = ~~(_1E / _1F); //#8622 - } //#8622 - var _1G = $k[--$j]; //#8624 - var _1H = $k[--$j]; //#8624 - $k[$j++] = _1G; //#8624 - $k[$j++] = _1H; //#8624 - $j--; //#8624 - var _1I = $k[--$j]; //#8624 - var _1J = $k[--$j]; //#8624 - $k[$j++] = _1I; //#8624 - $k[$j++] = _1J; //#8624 - $j--; //#8624 - }; //#8624 + var _11 = $k[--$j]; //#8760 + var _12 = $k[--$j]; //#8760 + var _13 = $f(_12 - _11); //#8760 + if (_11 < $f(_12 - _11)) { //#8760 + var _ = _13; //#8760 + _13 = _11; //#8760 + _11 = _; //#8760 + } //#8760 + $k[$j++] = _13; //#8767 + $k[$j++] = 1; //#8767 + $k[$j++] = 1; //#8767 + for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8767 + var _16 = $k[--$j]; //#8763 + var _17 = $k[--$j]; //#8764 + var _18 = $k[--$j]; //#8764 + $k[$j++] = _18; //#8766 + $k[$j++] = _17; //#8766 + $k[$j++] = _16 * _15; //#8766 + if ($le(_17, _18)) { //#8766 + var _19 = $k[--$j]; //#8765 + var _1A = $k[--$j]; //#8765 + $k[$j++] = $f(_1A + 1); //#8765 + $k[$j++] = ~~(_19 / _1A); //#8765 + } //#8765 + } //#8765 + for (;;) { //#8771 + var _1B = $k[--$j]; //#8769 + var _1C = $k[--$j]; //#8769 + var _1D = $k[--$j]; //#8769 + $k[$j++] = _1D; //#8769 + $k[$j++] = _1C; //#8769 + $k[$j++] = _1B; //#8769 + if ($gt(_1C, _1D)) { //#8769 + break; //#8769 + } //#8769 + var _1E = $k[--$j]; //#8770 + var _1F = $k[--$j]; //#8770 + $k[$j++] = $f(_1F + 1); //#8770 + $k[$j++] = ~~(_1E / _1F); //#8770 + } //#8770 + var _1G = $k[--$j]; //#8772 + var _1H = $k[--$j]; //#8772 + $k[$j++] = _1G; //#8772 + $k[$j++] = _1H; //#8772 + $j--; //#8772 + var _1I = $k[--$j]; //#8772 + var _1J = $k[--$j]; //#8772 + $k[$j++] = _1I; //#8772 + $k[$j++] = _1J; //#8772 + $j--; //#8772 + }; //#8772 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#8628 - $_.el = $k[--$j]; //#8629 - $_.mw = $k[--$j]; //#8630 - $_.nm = $k[--$j]; //#8631 - $_.val = $k[--$j]; //#8632 - $_.out = $a($_.el); //#8633 - $_.mask = 0; //#8634 - for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8661 - $_.bar = _1T; //#8636 - $_.ew = 1; //#8637 - var _1V = $_.bar; //#8638 - $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8638 - for (;;) { //#8657 - $k[$j++] = 'sval'; //#8639 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8639 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8639 - $_.ncr(); //#8639 - var _1a = $k[--$j]; //#8639 - $_[$k[--$j]] = _1a; //#8639 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8642 - $k[$j++] = 'sval'; //#8641 - $k[$j++] = $_.sval; //#8641 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8641 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8641 - $_.ncr(); //#8641 - var _1p = $k[--$j]; //#8641 - var _1q = $k[--$j]; //#8641 - $_[$k[--$j]] = $f(_1q - _1p); //#8641 - } //#8641 - if ($f($_.el - $_.bar) > 2) { //#8651 - $_.lval = 0; //#8644 - for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8648 - $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8646 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8646 - $_.ncr(); //#8646 - $_.lval = $f($k[--$j] + $_.lval); //#8647 - } //#8647 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8649 - } else { //#8651 - if ($f($_.nm - $_.ew) > $_.mw) { //#8651 - $_.sval = $f($_.sval - 1); //#8651 - } //#8651 - } //#8651 - $_.val = $f($_.val - $_.sval); //#8653 - if ($_.val < 0) { //#8654 - break; //#8654 - } //#8654 - $_.ew = $_.ew + 1; //#8655 - var _2K = $_.bar; //#8656 - $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8656 - } //#8656 - $_.val = $f($_.val + $_.sval); //#8658 - $_.nm = $f($_.nm - $_.ew); //#8659 - $put($_.out, $_.bar, $_.ew); //#8660 - } //#8660 - $put($_.out, $f($_.el - 1), $_.nm); //#8662 - $k[$j++] = $_.out; //#8663 - }; //#8663 - for (var _2W = 0; _2W <= 11; _2W += 1) { //#8670 - $_.i = _2W; //#8667 - var _2X = $_.binval; //#8668 - var _2Y = $_.i; //#8668 - $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8668 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8669 - } //#8669 - $_.d2 = $get($_.binval, 12) % 2013571; //#8671 - var _2k = $_.binval; //#8672 - $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8672 - $_.d1 = 0; //#8674 - $_.i = true; //#8675 - for (var _2m = 0; _2m <= 12; _2m += 1) { //#8685 - $_.j = _2m; //#8677 - var _2p = $get($_.binval, $_.j); //#8678 - $k[$j++] = _2p; //#8684 - if ((_2p == 0) && $_.i) { //#8683 - $j--; //#8680 - } else { //#8683 - $_.i = false; //#8682 - $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8683 - } //#8683 - } //#8683 - if (!bwipp_databarlimited.__8697__) { //#8697 - $_ = Object.create($_); //#8697 - $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8696 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8696 - bwipp_databarlimited.__8697__ = 1; //#8696 - $_ = Object.getPrototypeOf($_); //#8696 - } //#8696 - $_.i = 0; //#8699 - for (;;) { //#8709 - if ($_.d1 <= $get($_.tab267, $_.i)) { //#8707 - var _32 = $geti($_.tab267, $_.i + 1, 7); //#8701 - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8701 - $k[$j++] = $get(_32, _33); //#8701 - } //#8701 - $_.d1te = $k[--$j]; //#8702 - $_.d1to = $k[--$j]; //#8702 - $_.d1mwe = $k[--$j]; //#8703 - $_.d1mwo = $k[--$j]; //#8703 - $_.d1ele = $k[--$j]; //#8704 - $_.d1elo = $k[--$j]; //#8704 - $_.d1gs = $k[--$j]; //#8705 - break; //#8706 - } //#8706 - $_.i = $_.i + 8; //#8708 - } //#8708 - $_.i = 0; //#8711 - for (;;) { //#8721 - if ($_.d2 <= $get($_.tab267, $_.i)) { //#8719 - var _3K = $geti($_.tab267, $_.i + 1, 7); //#8713 - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8713 - $k[$j++] = $get(_3K, _3L); //#8713 - } //#8713 - $_.d2te = $k[--$j]; //#8714 - $_.d2to = $k[--$j]; //#8714 - $_.d2mwe = $k[--$j]; //#8715 - $_.d2mwo = $k[--$j]; //#8715 - $_.d2ele = $k[--$j]; //#8716 - $_.d2elo = $k[--$j]; //#8716 - $_.d2gs = $k[--$j]; //#8717 - break; //#8718 - } //#8718 - $_.i = $_.i + 8; //#8720 - } //#8720 - $k[$j++] = 'd1wo'; //#8723 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8723 - $k[$j++] = $_.d1elo; //#8723 - $k[$j++] = $_.d1mwo; //#8723 - $k[$j++] = 7; //#8723 - $k[$j++] = false; //#8723 - $_.getRSSwidths(); //#8723 - var _3b = $k[--$j]; //#8723 - $_[$k[--$j]] = _3b; //#8723 - $k[$j++] = 'd1we'; //#8724 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8724 - $k[$j++] = $_.d1ele; //#8724 - $k[$j++] = $_.d1mwe; //#8724 - $k[$j++] = 7; //#8724 - $k[$j++] = true; //#8724 - $_.getRSSwidths(); //#8724 - var _3i = $k[--$j]; //#8724 - $_[$k[--$j]] = _3i; //#8724 - $k[$j++] = 'd2wo'; //#8725 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8725 - $k[$j++] = $_.d2elo; //#8725 - $k[$j++] = $_.d2mwo; //#8725 - $k[$j++] = 7; //#8725 - $k[$j++] = false; //#8725 - $_.getRSSwidths(); //#8725 - var _3p = $k[--$j]; //#8725 - $_[$k[--$j]] = _3p; //#8725 - $k[$j++] = 'd2we'; //#8726 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8726 - $k[$j++] = $_.d2ele; //#8726 - $k[$j++] = $_.d2mwe; //#8726 - $k[$j++] = 7; //#8726 - $k[$j++] = true; //#8726 - $_.getRSSwidths(); //#8726 - var _3w = $k[--$j]; //#8726 - $_[$k[--$j]] = _3w; //#8726 - $_.d1w = $a(14); //#8728 - for (var _3z = 0; _3z <= 6; _3z += 1) { //#8733 - $_.i = _3z; //#8730 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8731 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8732 - } //#8732 - $_.d2w = $a(14); //#8735 - for (var _4B = 0; _4B <= 6; _4B += 1) { //#8740 - $_.i = _4B; //#8737 - $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8738 - $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8739 - } //#8739 - $k[$j++] = Infinity; //#8744 - var _4M = $_.d1w; //#8743 - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8743 - $k[$j++] = $get(_4M, _4N); //#8743 - } //#8743 - var _4Q = $_.d2w; //#8744 - for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8744 - $k[$j++] = $get(_4Q, _4R); //#8744 - } //#8744 - $_.widths = $a(); //#8744 - if (!bwipp_databarlimited.__8768__) { //#8768 - $_ = Object.create($_); //#8768 - $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8751 - $k[$j++] = Infinity; //#8766 - for (var _4W = 0; _4W <= 43; _4W += 1) { //#8754 - $k[$j++] = _4W; //#8754 - } //#8754 - $k[$j++] = 45; //#8756 - $k[$j++] = 52; //#8756 - $k[$j++] = 57; //#8756 - for (var _4X = 63; _4X <= 66; _4X += 1) { //#8756 - $k[$j++] = _4X; //#8756 - } //#8756 - for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8757 - $k[$j++] = _4Y; //#8757 - } //#8757 - $k[$j++] = 82; //#8759 - for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8759 - $k[$j++] = _4Z; //#8759 - } //#8759 - $k[$j++] = 132; //#8761 - for (var _4a = 141; _4a <= 146; _4a += 1) { //#8761 - $k[$j++] = _4a; //#8761 - } //#8761 - for (var _4b = 210; _4b <= 217; _4b += 1) { //#8762 - $k[$j++] = _4b; //#8762 - } //#8762 - $k[$j++] = 220; //#8764 - for (var _4c = 316; _4c <= 320; _4c += 1) { //#8764 - $k[$j++] = _4c; //#8764 - } //#8764 - $k[$j++] = 322; //#8766 - $k[$j++] = 323; //#8766 - $k[$j++] = 326; //#8766 - $k[$j++] = 337; //#8766 - $_.checkseq = $a(); //#8766 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8767 - bwipp_databarlimited.__8768__ = 1; //#8767 - $_ = Object.getPrototypeOf($_); //#8767 - } //#8767 - $_.checksum = 0; //#8770 - for (var _4f = 0; _4f <= 27; _4f += 1) { //#8774 - $_.i = _4f; //#8772 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8773 - } //#8773 - $_.checksum = $_.checksum % 89; //#8775 - $_.seq = $get($_.checkseq, $_.checksum); //#8776 - $k[$j++] = 'swidths'; //#8777 - $k[$j++] = ~~($_.seq / 21); //#8777 - $k[$j++] = 8; //#8777 - $k[$j++] = 3; //#8777 - $k[$j++] = 6; //#8777 - $k[$j++] = false; //#8777 - $_.getRSSwidths(); //#8777 - var _4s = $k[--$j]; //#8777 - $_[$k[--$j]] = _4s; //#8777 - $k[$j++] = 'bwidths'; //#8778 - $k[$j++] = $_.seq % 21; //#8778 - $k[$j++] = 8; //#8778 - $k[$j++] = 3; //#8778 - $k[$j++] = 6; //#8778 - $k[$j++] = false; //#8778 - $_.getRSSwidths(); //#8778 - var _4v = $k[--$j]; //#8778 - $_[$k[--$j]] = _4v; //#8778 - $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8780 - for (var _4y = 0; _4y <= 5; _4y += 1) { //#8785 - $_.i = _4y; //#8782 - $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8783 - $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8784 - } //#8784 - $k[$j++] = Infinity; //#8788 - var _59 = $_.d1w; //#8788 - $k[$j++] = 1; //#8788 - for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8788 - $k[$j++] = $get(_59, _5A); //#8788 - } //#8788 - var _5D = $_.checkwidths; //#8788 - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8788 - $k[$j++] = $get(_5D, _5E); //#8788 - } //#8788 - var _5H = $_.d2w; //#8788 - for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8788 - $k[$j++] = $get(_5H, _5I); //#8788 - } //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 5; //#8788 - $_.sbs = $a(); //#8788 - $k[$j++] = Infinity; //#8799 - var _5M = $_.sbs; //#8794 - $k[$j++] = Infinity; //#8795 - for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8795 - $k[$j++] = $_.height; //#8795 - } //#8795 - var _5R = $a(); //#8795 - $k[$j++] = Infinity; //#8796 - for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8796 - $k[$j++] = 0; //#8796 - } //#8796 - var _5V = $a(); //#8796 - $k[$j++] = 'ren'; //#8799 - $k[$j++] = bwipp_renlinear; //#8799 - $k[$j++] = 'sbs'; //#8799 - $k[$j++] = _5M; //#8799 - $k[$j++] = 'bhs'; //#8799 - $k[$j++] = _5R; //#8799 - $k[$j++] = 'bbs'; //#8799 - $k[$j++] = _5V; //#8799 - $k[$j++] = 'txt'; //#8799 - $k[$j++] = $_.txt; //#8799 - $k[$j++] = 'textxalign'; //#8799 - $k[$j++] = "center"; //#8799 - $k[$j++] = 'opt'; //#8799 - $k[$j++] = $_.options; //#8799 - var _5Y = $d(); //#8799 - $k[$j++] = _5Y; //#8802 - if (!$_.dontdraw) { //#8802 - bwipp_renlinear(); //#8802 - } //#8802 - $_ = Object.getPrototypeOf($_); //#8804 - $_ = Object.getPrototypeOf($_); //#8806 -} - -function bwipp_databarexpanded() { - $_ = Object.create($_); //#8838 - $_.parse = false; //#8841 - $_.dontlint = false; //#8842 - $_.lintreqs = true; //#8843 - $_.dontdraw = false; //#8844 - $_.height = 34 / 72; //#8845 - $_.format = "expanded"; //#8846 - $_.segments = -1; //#8847 - $_.linkage = false; //#8848 - $_.barxmult = 34; //#8849 - $k[$j++] = $_; //#8851 - bwipp_processoptions(); //#8851 - $_.options = $k[--$j]; //#8851 - $_.barcode = $k[--$j]; //#8852 - bwipp_loadctx(bwipp_databarexpanded) //#8854 - if ($_.barxmult < 34) { //#8858 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8857'; //#8857 - $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#8857 - bwipp_raiseerror(); //#8857 - } //#8857 - if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#8862 - $k[$j++] = 'bwipp.databarexpandedBadFormat#8861'; //#8861 - $k[$j++] = "Valid formats are expanded and expandedstacked"; //#8861 - bwipp_raiseerror(); //#8861 - } //#8861 - if ($_.segments == -1) { //#8868 - var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#8865 - $_.segments = _7; //#8865 - } else { //#8868 - if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#8869 - $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#8868'; //#8868 - $k[$j++] = "The number of segments must be even from 2 to 22"; //#8868 - bwipp_raiseerror(); //#8868 - } //#8868 + $_.oe = $k[--$j]; //#8776 + $_.el = $k[--$j]; //#8777 + $_.mw = $k[--$j]; //#8778 + $_.nm = $k[--$j]; //#8779 + $_.val = $k[--$j]; //#8780 + $_.out = $a($_.el); //#8781 + $_.mask = 0; //#8782 + for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8809 + $_.bar = _1T; //#8784 + $_.ew = 1; //#8785 + var _1V = $_.bar; //#8786 + $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8786 + for (;;) { //#8805 + $k[$j++] = 'sval'; //#8787 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8787 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8787 + $_.ncr(); //#8787 + var _1a = $k[--$j]; //#8787 + $_[$k[--$j]] = _1a; //#8787 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8790 + $k[$j++] = 'sval'; //#8789 + $k[$j++] = $_.sval; //#8789 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8789 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8789 + $_.ncr(); //#8789 + var _1p = $k[--$j]; //#8789 + var _1q = $k[--$j]; //#8789 + $_[$k[--$j]] = $f(_1q - _1p); //#8789 + } //#8789 + if ($f($_.el - $_.bar) > 2) { //#8799 + $_.lval = 0; //#8792 + for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8796 + $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8794 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8794 + $_.ncr(); //#8794 + $_.lval = $f($k[--$j] + $_.lval); //#8795 + } //#8795 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8797 + } else { //#8799 + if ($f($_.nm - $_.ew) > $_.mw) { //#8799 + $_.sval = $f($_.sval - 1); //#8799 + } //#8799 + } //#8799 + $_.val = $f($_.val - $_.sval); //#8801 + if ($_.val < 0) { //#8802 + break; //#8802 + } //#8802 + $_.ew = $_.ew + 1; //#8803 + var _2K = $_.bar; //#8804 + $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8804 + } //#8804 + $_.val = $f($_.val + $_.sval); //#8806 + $_.nm = $f($_.nm - $_.ew); //#8807 + $put($_.out, $_.bar, $_.ew); //#8808 + } //#8808 + $put($_.out, $f($_.el - 1), $_.nm); //#8810 + $k[$j++] = $_.out; //#8811 + }; //#8811 + for (var _2W = 0; _2W <= 11; _2W += 1) { //#8818 + $_.i = _2W; //#8815 + var _2X = $_.binval; //#8816 + var _2Y = $_.i; //#8816 + $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8816 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8817 + } //#8817 + $_.d2 = $get($_.binval, 12) % 2013571; //#8819 + var _2k = $_.binval; //#8820 + $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8820 + $_.d1 = 0; //#8822 + $_.i = true; //#8823 + for (var _2m = 0; _2m <= 12; _2m += 1) { //#8833 + $_.j = _2m; //#8825 + var _2p = $get($_.binval, $_.j); //#8826 + $k[$j++] = _2p; //#8832 + if ((_2p == 0) && $_.i) { //#8831 + $j--; //#8828 + } else { //#8831 + $_.i = false; //#8830 + $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8831 + } //#8831 + } //#8831 + if (!bwipp_databarlimited.__8845__) { //#8845 + $_ = Object.create($_); //#8845 + $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8844 + bwipp_databarlimited.__8845__ = 1; //#8844 + $_ = Object.getPrototypeOf($_); //#8844 + } //#8844 + $_.i = 0; //#8847 + for (;;) { //#8857 + if ($_.d1 <= $get($_.tab267, $_.i)) { //#8855 + var _32 = $geti($_.tab267, $_.i + 1, 7); //#8849 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8849 + $k[$j++] = $get(_32, _33); //#8849 + } //#8849 + $_.d1te = $k[--$j]; //#8850 + $_.d1to = $k[--$j]; //#8850 + $_.d1mwe = $k[--$j]; //#8851 + $_.d1mwo = $k[--$j]; //#8851 + $_.d1ele = $k[--$j]; //#8852 + $_.d1elo = $k[--$j]; //#8852 + $_.d1gs = $k[--$j]; //#8853 + break; //#8854 + } //#8854 + $_.i = $_.i + 8; //#8856 + } //#8856 + $_.i = 0; //#8859 + for (;;) { //#8869 + if ($_.d2 <= $get($_.tab267, $_.i)) { //#8867 + var _3K = $geti($_.tab267, $_.i + 1, 7); //#8861 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8861 + $k[$j++] = $get(_3K, _3L); //#8861 + } //#8861 + $_.d2te = $k[--$j]; //#8862 + $_.d2to = $k[--$j]; //#8862 + $_.d2mwe = $k[--$j]; //#8863 + $_.d2mwo = $k[--$j]; //#8863 + $_.d2ele = $k[--$j]; //#8864 + $_.d2elo = $k[--$j]; //#8864 + $_.d2gs = $k[--$j]; //#8865 + break; //#8866 + } //#8866 + $_.i = $_.i + 8; //#8868 } //#8868 - $k[$j++] = $_.barcode; //#8872 - $k[$j++] = 'ai'; //#8872 - bwipp_gs1process(); //#8872 - $_.fncs = $k[--$j]; //#8873 - $_.vals = $k[--$j]; //#8874 - $_.ais = $k[--$j]; //#8875 - for (;;) { //#8963 - if ($_.ais.length == 2) { //#8887 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#8886 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#8885 - $k[$j++] = "0100"; //#8884 - $k[$j++] = false; //#8884 - break; //#8884 - } //#8884 - } //#8884 - } //#8884 - if ($_.ais.length == 2) { //#8896 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#8895 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#8894 - $k[$j++] = "0101"; //#8893 - $k[$j++] = false; //#8893 - break; //#8893 - } //#8893 - } //#8893 - } //#8893 - if ($_.ais.length == 2) { //#8905 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#8904 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#8903 - $k[$j++] = "0101"; //#8902 - $k[$j++] = false; //#8902 - break; //#8902 - } //#8902 - } //#8902 + $k[$j++] = 'd1wo'; //#8871 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8871 + $k[$j++] = $_.d1elo; //#8871 + $k[$j++] = $_.d1mwo; //#8871 + $k[$j++] = 7; //#8871 + $k[$j++] = false; //#8871 + $_.getRSSwidths(); //#8871 + var _3b = $k[--$j]; //#8871 + $_[$k[--$j]] = _3b; //#8871 + $k[$j++] = 'd1we'; //#8872 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8872 + $k[$j++] = $_.d1ele; //#8872 + $k[$j++] = $_.d1mwe; //#8872 + $k[$j++] = 7; //#8872 + $k[$j++] = true; //#8872 + $_.getRSSwidths(); //#8872 + var _3i = $k[--$j]; //#8872 + $_[$k[--$j]] = _3i; //#8872 + $k[$j++] = 'd2wo'; //#8873 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8873 + $k[$j++] = $_.d2elo; //#8873 + $k[$j++] = $_.d2mwo; //#8873 + $k[$j++] = 7; //#8873 + $k[$j++] = false; //#8873 + $_.getRSSwidths(); //#8873 + var _3p = $k[--$j]; //#8873 + $_[$k[--$j]] = _3p; //#8873 + $k[$j++] = 'd2we'; //#8874 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8874 + $k[$j++] = $_.d2ele; //#8874 + $k[$j++] = $_.d2mwe; //#8874 + $k[$j++] = 7; //#8874 + $k[$j++] = true; //#8874 + $_.getRSSwidths(); //#8874 + var _3w = $k[--$j]; //#8874 + $_[$k[--$j]] = _3w; //#8874 + $_.d1w = $a(14); //#8876 + for (var _3z = 0; _3z <= 6; _3z += 1) { //#8881 + $_.i = _3z; //#8878 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8879 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8880 + } //#8880 + $_.d2w = $a(14); //#8883 + for (var _4B = 0; _4B <= 6; _4B += 1) { //#8888 + $_.i = _4B; //#8885 + $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8886 + $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8887 + } //#8887 + $k[$j++] = Infinity; //#8890 + var _4M = $_.d1w; //#8891 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8891 + $k[$j++] = $get(_4M, _4N); //#8891 + } //#8891 + var _4Q = $_.d2w; //#8892 + for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8892 + $k[$j++] = $get(_4Q, _4R); //#8892 + } //#8892 + $_.widths = $a(); //#8892 + if (!bwipp_databarlimited.__8916__) { //#8916 + $_ = Object.create($_); //#8916 + $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8899 + $k[$j++] = Infinity; //#8901 + for (var _4W = 0; _4W <= 43; _4W += 1) { //#8902 + $k[$j++] = _4W; //#8902 } //#8902 - var _k = $_.ais.length; //#8908 - if ((_k == 2) || (_k == 3)) { //#8939 - $k[$j++] = 'ai310x'; //#8909 - $k[$j++] = false; //#8909 - for (var _l = 3100; _l <= 3109; _l += 1) { //#8909 - var _q = $k[--$j]; //#8909 - $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#8909 - } //#8909 - var _r = $k[--$j]; //#8909 - $_[$k[--$j]] = _r; //#8909 - $k[$j++] = 'ai320x'; //#8910 - $k[$j++] = false; //#8910 - for (var _t = 3200; _t <= 3209; _t += 1) { //#8910 - var _y = $k[--$j]; //#8910 - $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#8910 - } //#8910 - var _z = $k[--$j]; //#8910 - $_[$k[--$j]] = _z; //#8910 - if ($_.ais.length == 3) { //#8914 - var _12 = $a(["11", "13", "15", "17"]); //#8912 - $k[$j++] = 'aibad'; //#8912 - $k[$j++] = true; //#8912 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#8912 - var _18 = $k[--$j]; //#8912 - $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#8912 - } //#8912 - var _19 = $k[--$j]; //#8912 - $_[$k[--$j]] = _19; //#8912 - } else { //#8914 - $_.aibad = false; //#8914 - } //#8914 - if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#8938 - if ($_.ais.length == 3) { //#8935 - var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#8920 - var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#8921 - if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#8930 - if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#8922 - $k[$j++] = "0111000"; //#8922 - $k[$j++] = false; //#8922 - break; //#8922 - } //#8922 - if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#8923 - $k[$j++] = "0111001"; //#8923 - $k[$j++] = false; //#8923 - break; //#8923 - } //#8923 - if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#8924 - $k[$j++] = "0111010"; //#8924 - $k[$j++] = false; //#8924 - break; //#8924 - } //#8924 - if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#8925 - $k[$j++] = "0111011"; //#8925 - $k[$j++] = false; //#8925 - break; //#8925 - } //#8925 - if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#8926 - $k[$j++] = "0111100"; //#8926 - $k[$j++] = false; //#8926 - break; //#8926 - } //#8926 - if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#8927 - $k[$j++] = "0111101"; //#8927 - $k[$j++] = false; //#8927 - break; //#8927 - } //#8927 - if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#8928 - $k[$j++] = "0111110"; //#8928 - $k[$j++] = false; //#8928 - break; //#8928 - } //#8928 - if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#8929 - $k[$j++] = "0111111"; //#8929 - $k[$j++] = false; //#8929 - break; //#8929 - } //#8929 - } //#8929 - } else { //#8935 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#8936 - if ($_.ai310x) { //#8934 - $k[$j++] = "0111000"; //#8934 - $k[$j++] = false; //#8934 - break; //#8934 - } //#8934 - if ($_.ai320x) { //#8935 - $k[$j++] = "0111001"; //#8935 - $k[$j++] = false; //#8935 - break; //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - if ($_.ais.length >= 2) { //#8947 - $k[$j++] = 'ai392x'; //#8943 - $k[$j++] = false; //#8943 - for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#8943 - var _25 = $k[--$j]; //#8943 - $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#8943 - } //#8943 - var _26 = $k[--$j]; //#8943 - $_[$k[--$j]] = _26; //#8943 - if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#8946 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8945 - $k[$j++] = "01100"; //#8945 - $k[$j++] = true; //#8945 - break; //#8945 - } //#8945 - } //#8945 - } //#8945 - if ($_.ais.length >= 2) { //#8955 - $k[$j++] = 'ai393x'; //#8951 - $k[$j++] = false; //#8951 - for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#8951 - var _2K = $k[--$j]; //#8951 - $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#8951 - } //#8951 - var _2L = $k[--$j]; //#8951 - $_[$k[--$j]] = _2L; //#8951 - if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#8954 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8953 - $k[$j++] = "01101"; //#8953 - $k[$j++] = true; //#8953 - break; //#8953 - } //#8953 - } //#8953 - } //#8953 - if ($eq($get($_.ais, 0), "01")) { //#8958 - $k[$j++] = "1"; //#8958 - $k[$j++] = true; //#8958 - break; //#8958 - } //#8958 - $k[$j++] = "00"; //#8961 - $k[$j++] = true; //#8961 - break; //#8961 - } //#8961 - $_.gpfallow = $k[--$j]; //#8964 - $_.method = $k[--$j]; //#8965 + $k[$j++] = 45; //#8904 + $k[$j++] = 52; //#8904 + $k[$j++] = 57; //#8904 + for (var _4X = 63; _4X <= 66; _4X += 1) { //#8904 + $k[$j++] = _4X; //#8904 + } //#8904 + for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8905 + $k[$j++] = _4Y; //#8905 + } //#8905 + $k[$j++] = 82; //#8907 + for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8907 + $k[$j++] = _4Z; //#8907 + } //#8907 + $k[$j++] = 132; //#8909 + for (var _4a = 141; _4a <= 146; _4a += 1) { //#8909 + $k[$j++] = _4a; //#8909 + } //#8909 + for (var _4b = 210; _4b <= 217; _4b += 1) { //#8910 + $k[$j++] = _4b; //#8910 + } //#8910 + $k[$j++] = 220; //#8912 + for (var _4c = 316; _4c <= 320; _4c += 1) { //#8912 + $k[$j++] = _4c; //#8912 + } //#8912 + $k[$j++] = 322; //#8914 + $k[$j++] = 323; //#8914 + $k[$j++] = 326; //#8914 + $k[$j++] = 337; //#8914 + $_.checkseq = $a(); //#8914 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8915 + bwipp_databarlimited.__8916__ = 1; //#8915 + $_ = Object.getPrototypeOf($_); //#8915 + } //#8915 + $_.checksum = 0; //#8918 + for (var _4f = 0; _4f <= 27; _4f += 1) { //#8922 + $_.i = _4f; //#8920 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8921 + } //#8921 + $_.checksum = $_.checksum % 89; //#8923 + $_.seq = $get($_.checkseq, $_.checksum); //#8924 + $k[$j++] = 'swidths'; //#8925 + $k[$j++] = ~~($_.seq / 21); //#8925 + $k[$j++] = 8; //#8925 + $k[$j++] = 3; //#8925 + $k[$j++] = 6; //#8925 + $k[$j++] = false; //#8925 + $_.getRSSwidths(); //#8925 + var _4s = $k[--$j]; //#8925 + $_[$k[--$j]] = _4s; //#8925 + $k[$j++] = 'bwidths'; //#8926 + $k[$j++] = $_.seq % 21; //#8926 + $k[$j++] = 8; //#8926 + $k[$j++] = 3; //#8926 + $k[$j++] = 6; //#8926 + $k[$j++] = false; //#8926 + $_.getRSSwidths(); //#8926 + var _4v = $k[--$j]; //#8926 + $_[$k[--$j]] = _4v; //#8926 + $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8928 + for (var _4y = 0; _4y <= 5; _4y += 1) { //#8933 + $_.i = _4y; //#8930 + $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8931 + $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8932 + } //#8932 + $k[$j++] = Infinity; //#8935 + var _59 = $_.d1w; //#8936 + $k[$j++] = 1; //#8936 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8936 + $k[$j++] = $get(_59, _5A); //#8936 + } //#8936 + var _5D = $_.checkwidths; //#8936 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8936 + $k[$j++] = $get(_5D, _5E); //#8936 + } //#8936 + var _5H = $_.d2w; //#8936 + for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8936 + $k[$j++] = $get(_5H, _5I); //#8936 + } //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 5; //#8936 + $_.sbs = $a(); //#8936 + $k[$j++] = Infinity; //#8940 + var _5M = $_.sbs; //#8942 + $k[$j++] = Infinity; //#8943 + for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8943 + $k[$j++] = $_.height; //#8943 + } //#8943 + var _5R = $a(); //#8943 + $k[$j++] = Infinity; //#8944 + for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8944 + $k[$j++] = 0; //#8944 + } //#8944 + var _5V = $a(); //#8944 + $k[$j++] = 'ren'; //#8949 + $k[$j++] = bwipp_renlinear; //#8949 + $k[$j++] = 'sbs'; //#8949 + $k[$j++] = _5M; //#8949 + $k[$j++] = 'bhs'; //#8949 + $k[$j++] = _5R; //#8949 + $k[$j++] = 'bbs'; //#8949 + $k[$j++] = _5V; //#8949 + $k[$j++] = 'txt'; //#8949 + $k[$j++] = $_.txt; //#8949 + $k[$j++] = 'textxalign'; //#8949 + $k[$j++] = "center"; //#8949 + $k[$j++] = 'borderleft'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'borderright'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'opt'; //#8949 + $k[$j++] = $_.options; //#8949 + var _5Y = $d(); //#8949 + $k[$j++] = _5Y; //#8952 + if (!$_.dontdraw) { //#8952 + bwipp_renlinear(); //#8952 + } //#8952 + $_ = Object.getPrototypeOf($_); //#8954 + $_ = Object.getPrototypeOf($_); //#8956 +} //bwipp_databarlimited +function bwipp_databarexpanded() { + $_ = Object.create($_); //#8988 + $_.parse = false; //#8991 + $_.dontlint = false; //#8992 + $_.lintreqs = true; //#8993 + $_.dontdraw = false; //#8994 + $_.height = 34 / 72; //#8995 + $_.format = "expanded"; //#8996 + $_.segments = -1; //#8997 + $_.linkage = false; //#8998 + $_.barxmult = 34; //#8999 + $k[$j++] = $_; //#9001 + bwipp_processoptions(); //#9001 + $_.options = $k[--$j]; //#9001 + $_.barcode = $k[--$j]; //#9002 + bwipp_loadctx(bwipp_databarexpanded) //#9004 + if ($_.barxmult < 34) { //#9008 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#9007'; //#9007 + $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#9007 + bwipp_raiseerror(); //#9007 + } //#9007 + if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#9012 + $k[$j++] = 'bwipp.databarexpandedBadFormat#9011'; //#9011 + $k[$j++] = "Valid formats are expanded and expandedstacked"; //#9011 + bwipp_raiseerror(); //#9011 + } //#9011 + if ($_.segments == -1) { //#9018 + var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#9015 + $_.segments = _7; //#9015 + } else { //#9018 + if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#9019 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#9018'; //#9018 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#9018 + bwipp_raiseerror(); //#9018 + } //#9018 + } //#9018 + $k[$j++] = $_.barcode; //#9022 + $k[$j++] = 'ai'; //#9022 + bwipp_gs1process(); //#9022 + $_.fncs = $k[--$j]; //#9023 + $_.vals = $k[--$j]; //#9024 + $_.ais = $k[--$j]; //#9025 + for (;;) { //#9113 + if ($_.ais.length == 2) { //#9037 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#9036 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#9035 + $k[$j++] = "0100"; //#9034 + $k[$j++] = false; //#9034 + break; //#9034 + } //#9034 + } //#9034 + } //#9034 + if ($_.ais.length == 2) { //#9046 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#9045 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#9044 + $k[$j++] = "0101"; //#9043 + $k[$j++] = false; //#9043 + break; //#9043 + } //#9043 + } //#9043 + } //#9043 + if ($_.ais.length == 2) { //#9055 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#9054 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#9053 + $k[$j++] = "0101"; //#9052 + $k[$j++] = false; //#9052 + break; //#9052 + } //#9052 + } //#9052 + } //#9052 + var _k = $_.ais.length; //#9058 + if ((_k == 2) || (_k == 3)) { //#9089 + $k[$j++] = 'ai310x'; //#9059 + $k[$j++] = false; //#9059 + for (var _l = 3100; _l <= 3109; _l += 1) { //#9059 + var _q = $k[--$j]; //#9059 + $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#9059 + } //#9059 + var _r = $k[--$j]; //#9059 + $_[$k[--$j]] = _r; //#9059 + $k[$j++] = 'ai320x'; //#9060 + $k[$j++] = false; //#9060 + for (var _t = 3200; _t <= 3209; _t += 1) { //#9060 + var _y = $k[--$j]; //#9060 + $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#9060 + } //#9060 + var _z = $k[--$j]; //#9060 + $_[$k[--$j]] = _z; //#9060 + if ($_.ais.length == 3) { //#9064 + var _12 = $a(["11", "13", "15", "17"]); //#9062 + $k[$j++] = 'aibad'; //#9062 + $k[$j++] = true; //#9062 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#9062 + var _18 = $k[--$j]; //#9062 + $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#9062 + } //#9062 + var _19 = $k[--$j]; //#9062 + $_[$k[--$j]] = _19; //#9062 + } else { //#9064 + $_.aibad = false; //#9064 + } //#9064 + if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#9088 + if ($_.ais.length == 3) { //#9085 + var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#9070 + var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#9071 + if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#9080 + if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#9072 + $k[$j++] = "0111000"; //#9072 + $k[$j++] = false; //#9072 + break; //#9072 + } //#9072 + if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#9073 + $k[$j++] = "0111001"; //#9073 + $k[$j++] = false; //#9073 + break; //#9073 + } //#9073 + if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#9074 + $k[$j++] = "0111010"; //#9074 + $k[$j++] = false; //#9074 + break; //#9074 + } //#9074 + if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#9075 + $k[$j++] = "0111011"; //#9075 + $k[$j++] = false; //#9075 + break; //#9075 + } //#9075 + if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#9076 + $k[$j++] = "0111100"; //#9076 + $k[$j++] = false; //#9076 + break; //#9076 + } //#9076 + if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#9077 + $k[$j++] = "0111101"; //#9077 + $k[$j++] = false; //#9077 + break; //#9077 + } //#9077 + if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#9078 + $k[$j++] = "0111110"; //#9078 + $k[$j++] = false; //#9078 + break; //#9078 + } //#9078 + if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#9079 + $k[$j++] = "0111111"; //#9079 + $k[$j++] = false; //#9079 + break; //#9079 + } //#9079 + } //#9079 + } else { //#9085 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#9086 + if ($_.ai310x) { //#9084 + $k[$j++] = "0111000"; //#9084 + $k[$j++] = false; //#9084 + break; //#9084 + } //#9084 + if ($_.ai320x) { //#9085 + $k[$j++] = "0111001"; //#9085 + $k[$j++] = false; //#9085 + break; //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + if ($_.ais.length >= 2) { //#9097 + $k[$j++] = 'ai392x'; //#9093 + $k[$j++] = false; //#9093 + for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#9093 + var _25 = $k[--$j]; //#9093 + $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#9093 + } //#9093 + var _26 = $k[--$j]; //#9093 + $_[$k[--$j]] = _26; //#9093 + if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#9096 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9095 + $k[$j++] = "01100"; //#9095 + $k[$j++] = true; //#9095 + break; //#9095 + } //#9095 + } //#9095 + } //#9095 + if ($_.ais.length >= 2) { //#9105 + $k[$j++] = 'ai393x'; //#9101 + $k[$j++] = false; //#9101 + for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#9101 + var _2K = $k[--$j]; //#9101 + $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#9101 + } //#9101 + var _2L = $k[--$j]; //#9101 + $_[$k[--$j]] = _2L; //#9101 + if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#9104 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9103 + $k[$j++] = "01101"; //#9103 + $k[$j++] = true; //#9103 + break; //#9103 + } //#9103 + } //#9103 + } //#9103 + if ($eq($get($_.ais, 0), "01")) { //#9108 + $k[$j++] = "1"; //#9108 + $k[$j++] = true; //#9108 + break; //#9108 + } //#9108 + $k[$j++] = "00"; //#9111 + $k[$j++] = true; //#9111 + break; //#9111 + } //#9111 + $_.gpfallow = $k[--$j]; //#9114 + $_.method = $k[--$j]; //#9115 $_.conv12to40 = function() { - var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#8968 - var _2Z = $k[--$j]; //#8969 - var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#8969 - $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#8969 - var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#8970 - $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#8970 - var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#8971 - $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#8971 - var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#8972 - $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#8972 - $k[$j++] = _2Y; //#8973 - $k[$j++] = _2Z; //#8973 - $j--; //#8973 - }; //#8973 + var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#9118 + var _2Z = $k[--$j]; //#9119 + var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#9119 + $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#9119 + var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#9120 + $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#9120 + var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#9121 + $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#9121 + var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#9122 + $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#9122 + $k[$j++] = _2Y; //#9123 + $k[$j++] = _2Z; //#9123 + $j--; //#9123 + }; //#9123 $_.conv13to44 = function() { - var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#8977 - var _2s = $k[--$j]; //#8978 - var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#8978 - $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#8978 - $k[$j++] = _2r; //#8979 - $k[$j++] = _2r; //#8979 - $k[$j++] = $geti(_2s, 1, 12); //#8979 - $_.conv12to40(); //#8979 - var _2y = $k[--$j]; //#8979 - $puti($k[--$j], 4, _2y); //#8979 - }; //#8979 + var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#9127 + var _2s = $k[--$j]; //#9128 + var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#9128 + $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#9128 + $k[$j++] = _2r; //#9129 + $k[$j++] = _2r; //#9129 + $k[$j++] = $geti(_2s, 1, 12); //#9129 + $_.conv12to40(); //#9129 + var _2y = $k[--$j]; //#9129 + $puti($k[--$j], 4, _2y); //#9129 + }; //#9129 $_.tobin = function() { - var _31 = $s($k[--$j]); //#8983 - $k[$j++] = _31; //#8983 - for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#8983 - var _34 = $k[--$j]; //#8983 - $put(_34, _33, 48); //#8983 - $k[$j++] = _34; //#8983 - } //#8983 - var _35 = $k[--$j]; //#8984 - var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#8984 - $puti(_35, _35.length - _38.length, _38); //#8984 - $k[$j++] = _35; //#8984 - }; //#8984 - $_.fnc1 = -1; //#8987 - $_.lnumeric = -2; //#8987 - $_.lalphanumeric = -3; //#8987 - $_.liso646 = -4; //#8987 - if ($eq($_.method, "00")) { //#8992 - $_.cdf = $a([]); //#8990 - $_.gpf = $a([]); //#8991 - } //#8991 - if ($eq($_.method, "1")) { //#9001 - $k[$j++] = 'cdf'; //#8995 - $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#8995 - $_.conv13to44(); //#8995 - var _3G = $k[--$j]; //#8995 - $_[$k[--$j]] = _3G; //#8995 - $k[$j++] = Infinity; //#8996 - var _3I = $_.cdf; //#8996 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#8996 - $k[$j++] = $f($get(_3I, _3J) - 48); //#8996 - } //#8996 - $_.cdf = $a(); //#8996 - $_.gpf = $a([]); //#8997 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#8998 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#8999 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9000 - } //#9000 - if ($eq($_.method, "0100")) { //#9012 - $_.cdf = $s(55); //#9004 - $k[$j++] = $_.cdf; //#9005 - $k[$j++] = 0; //#9005 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9005 - $_.conv12to40(); //#9005 - var _3d = $k[--$j]; //#9005 - var _3e = $k[--$j]; //#9005 - $puti($k[--$j], _3e, _3d); //#9005 - $k[$j++] = $_.cdf; //#9006 - $k[$j++] = 40; //#9006 - $k[$j++] = $cvi($get($_.vals, 1)); //#9006 - $k[$j++] = 15; //#9006 - $_.tobin(); //#9006 - var _3j = $k[--$j]; //#9006 - var _3k = $k[--$j]; //#9006 - $puti($k[--$j], _3k, _3j); //#9006 - $k[$j++] = Infinity; //#9007 - var _3m = $_.cdf; //#9007 - for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9007 - $k[$j++] = $get(_3m, _3n) - 48; //#9007 - } //#9007 - $_.cdf = $a(); //#9007 - $_.gpf = $a([]); //#9008 - $_.ais = $a([]); //#9009 - $_.vals = $a([]); //#9010 - $_.fncs = $a([]); //#9011 - } //#9011 - if ($eq($_.method, "0101")) { //#9028 - $_.cdf = $s(55); //#9015 - $k[$j++] = $_.cdf; //#9016 - $k[$j++] = 0; //#9016 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9016 - $_.conv12to40(); //#9016 - var _41 = $k[--$j]; //#9016 - var _42 = $k[--$j]; //#9016 - $puti($k[--$j], _42, _41); //#9016 - if ($eq($get($_.ais, 1), "3202")) { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)); //#9018 - $k[$j++] = 15; //#9018 - $_.tobin(); //#9018 - } else { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9020 - $k[$j++] = 15; //#9020 - $_.tobin(); //#9020 - } //#9020 - $puti($_.cdf, 40, $k[--$j]); //#9022 - $k[$j++] = Infinity; //#9023 - var _4C = $_.cdf; //#9023 - for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9023 - $k[$j++] = $get(_4C, _4D) - 48; //#9023 - } //#9023 - $_.cdf = $a(); //#9023 - $_.gpf = $a([]); //#9024 - $_.ais = $a([]); //#9025 - $_.vals = $a([]); //#9026 - $_.fncs = $a([]); //#9027 - } //#9027 - if ($_.method.length == 7) { //#9050 - $_.cdf = $s(76); //#9031 - $k[$j++] = $_.cdf; //#9032 - $k[$j++] = 0; //#9032 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9032 - $_.conv12to40(); //#9032 - var _4R = $k[--$j]; //#9032 - var _4S = $k[--$j]; //#9032 - $puti($k[--$j], _4S, _4R); //#9032 - var _4U = $s(6); //#9033 - $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9033 - $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9034 - $k[$j++] = $cvi(_4U); //#9034 - $k[$j++] = 20; //#9034 - $_.tobin(); //#9034 - $puti($_.cdf, 40, $k[--$j]); //#9035 - if ($_.ais.length == 3) { //#9042 - var _4f = $get($_.vals, 2); //#9037 - $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9040 - } else { //#9042 - $k[$j++] = 38400; //#9042 - } //#9042 - $k[$j++] = 16; //#9044 - $_.tobin(); //#9044 - $puti($_.cdf, 60, $k[--$j]); //#9044 - $k[$j++] = Infinity; //#9045 - var _4l = $_.cdf; //#9045 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9045 - $k[$j++] = $get(_4l, _4m) - 48; //#9045 - } //#9045 - $_.cdf = $a(); //#9045 - $_.gpf = $a([]); //#9046 - $_.ais = $a([]); //#9047 - $_.vals = $a([]); //#9048 - $_.fncs = $a([]); //#9049 - } //#9049 - if ($eq($_.method, "01100")) { //#9061 - $_.cdf = $s(42); //#9053 - $k[$j++] = $_.cdf; //#9054 - $k[$j++] = 0; //#9054 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9054 - $_.conv12to40(); //#9054 - var _50 = $k[--$j]; //#9054 - var _51 = $k[--$j]; //#9054 - $puti($k[--$j], _51, _50); //#9054 - $k[$j++] = $_.cdf; //#9055 - $k[$j++] = 40; //#9055 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9055 - $k[$j++] = 2; //#9055 - $_.tobin(); //#9055 - var _57 = $k[--$j]; //#9055 - var _58 = $k[--$j]; //#9055 - $puti($k[--$j], _58, _57); //#9055 - $k[$j++] = Infinity; //#9056 - var _5A = $_.cdf; //#9056 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9056 - $k[$j++] = $get(_5A, _5B) - 48; //#9056 - } //#9056 - $_.cdf = $a(); //#9056 - $k[$j++] = Infinity; //#9057 - $forall($get($_.vals, 1)); //#9057 - if ($_.ais.length > 2) { //#9057 - $k[$j++] = $_.fnc1; //#9057 - } //#9057 - $_.gpf = $a(); //#9057 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9058 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9059 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9060 - } //#9060 - if ($eq($_.method, "01101")) { //#9073 - $_.cdf = $s(52); //#9064 - $k[$j++] = $_.cdf; //#9065 - $k[$j++] = 0; //#9065 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9065 - $_.conv12to40(); //#9065 - var _5Z = $k[--$j]; //#9065 - var _5a = $k[--$j]; //#9065 - $puti($k[--$j], _5a, _5Z); //#9065 - $k[$j++] = $_.cdf; //#9066 - $k[$j++] = 40; //#9066 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9066 - $k[$j++] = 2; //#9066 - $_.tobin(); //#9066 - var _5g = $k[--$j]; //#9066 - var _5h = $k[--$j]; //#9066 - $puti($k[--$j], _5h, _5g); //#9066 - $k[$j++] = $_.cdf; //#9067 - $k[$j++] = 42; //#9067 - $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9067 - $k[$j++] = 10; //#9067 - $_.tobin(); //#9067 - var _5n = $k[--$j]; //#9067 - var _5o = $k[--$j]; //#9067 - $puti($k[--$j], _5o, _5n); //#9067 - $k[$j++] = Infinity; //#9068 - var _5q = $_.cdf; //#9068 - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9068 - $k[$j++] = $get(_5q, _5r) - 48; //#9068 - } //#9068 - $_.cdf = $a(); //#9068 - $k[$j++] = Infinity; //#9069 - var _5w = $get($_.vals, 1); //#9069 - var _5x = $geti(_5w, 3, _5w.length - 3); //#9069 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9069 - $k[$j++] = $get(_5x, _5y); //#9069 - } //#9069 - if ($_.ais.length > 2) { //#9069 - $k[$j++] = $_.fnc1; //#9069 - } //#9069 - $_.gpf = $a(); //#9069 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9070 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9071 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9072 - } //#9072 - if ($_.gpfallow) { //#9079 - $_.vlf = $a(2); //#9077 - } else { //#9079 - $_.vlf = $a([]); //#9079 - } //#9079 - if (!bwipp_databarexpanded.__9120__) { //#9120 - $_ = Object.create($_); //#9120 - $k[$j++] = Infinity; //#9093 - for (var _6G = 0; _6G <= 119; _6G += 1) { //#9092 - var _6I = $strcpy($s(2), "00"); //#9085 - var _6K = $cvrs($s(2), _6G, 11); //#9085 - $puti(_6I, 2 - _6K.length, _6K); //#9086 - $k[$j++] = _6G; //#9087 - $k[$j++] = _6I; //#9087 - if ($get(_6I, 0) == 65) { //#9087 - var _6M = $k[--$j]; //#9087 - $put(_6M, 0, 94); //#9087 - $k[$j++] = _6M; //#9087 - } //#9087 - var _6N = $k[--$j]; //#9088 - $k[$j++] = _6N; //#9088 - if ($get(_6N, 1) == 65) { //#9088 - var _6P = $k[--$j]; //#9088 - $put(_6P, 1, 94); //#9088 - $k[$j++] = _6P; //#9088 - } //#9088 - var _6Q = $k[--$j]; //#9089 - var _6T = $strcpy($s(7), "0000000"); //#9090 - var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9090 - $puti(_6T, 7 - _6V.length, _6V); //#9091 - $k[$j++] = _6Q; //#9091 - $k[$j++] = _6T; //#9091 - } //#9091 - $k[$j++] = $_.lalphanumeric; //#9093 - $k[$j++] = "0000"; //#9093 - $_.numeric = $d(); //#9094 - $k[$j++] = Infinity; //#9103 - for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9097 - $k[$j++] = _6Y; //#9097 - $k[$j++] = _6Y - 43; //#9097 - $k[$j++] = 5; //#9097 - $_.tobin(); //#9097 - } //#9097 - $k[$j++] = $_.fnc1; //#9099 - $k[$j++] = "01111"; //#9099 - for (var _6a = 65; _6a <= 90; _6a += 1) { //#9099 - $k[$j++] = _6a; //#9099 - $k[$j++] = _6a - 33; //#9099 - $k[$j++] = 6; //#9099 - $_.tobin(); //#9099 - } //#9099 - $k[$j++] = 42; //#9101 - $k[$j++] = "111010"; //#9101 - for (var _6b = 44; _6b <= 47; _6b += 1) { //#9101 - $k[$j++] = _6b; //#9101 - $k[$j++] = _6b + 15; //#9101 - $k[$j++] = 6; //#9101 - $_.tobin(); //#9101 - } //#9101 - $k[$j++] = $_.lnumeric; //#9103 - $k[$j++] = "000"; //#9103 - $k[$j++] = $_.liso646; //#9103 - $k[$j++] = "00100"; //#9103 - $_.alphanumeric = $d(); //#9104 - $k[$j++] = Infinity; //#9118 - for (var _6f = 48; _6f <= 57; _6f += 1) { //#9107 - $k[$j++] = _6f; //#9107 - $k[$j++] = _6f - 43; //#9107 - $k[$j++] = 5; //#9107 - $_.tobin(); //#9107 - } //#9107 - $k[$j++] = $_.fnc1; //#9109 - $k[$j++] = "01111"; //#9109 - for (var _6h = 65; _6h <= 90; _6h += 1) { //#9109 - $k[$j++] = _6h; //#9109 - $k[$j++] = _6h - 1; //#9109 - $k[$j++] = 7; //#9109 - $_.tobin(); //#9109 - } //#9109 - for (var _6i = 97; _6i <= 122; _6i += 1) { //#9110 - $k[$j++] = _6i; //#9110 - $k[$j++] = _6i - 7; //#9110 - $k[$j++] = 7; //#9110 - $_.tobin(); //#9110 - } //#9110 - $k[$j++] = 33; //#9113 - $k[$j++] = "11101000"; //#9113 - $k[$j++] = 34; //#9113 - $k[$j++] = "11101001"; //#9113 - for (var _6j = 37; _6j <= 47; _6j += 1) { //#9113 - $k[$j++] = _6j; //#9113 - $k[$j++] = _6j + 197; //#9113 - $k[$j++] = 8; //#9113 - $_.tobin(); //#9113 - } //#9113 - for (var _6k = 58; _6k <= 63; _6k += 1) { //#9114 - $k[$j++] = _6k; //#9114 - $k[$j++] = _6k + 187; //#9114 - $k[$j++] = 8; //#9114 - $_.tobin(); //#9114 - } //#9114 - $k[$j++] = 95; //#9118 - $k[$j++] = "11111011"; //#9118 - $k[$j++] = 32; //#9118 - $k[$j++] = "11111100"; //#9118 - $k[$j++] = $_.lnumeric; //#9118 - $k[$j++] = "000"; //#9118 - $k[$j++] = $_.lalphanumeric; //#9118 - $k[$j++] = "00100"; //#9118 - $_.iso646 = $d(); //#9119 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9119 - bwipp_databarexpanded.__9120__ = 1; //#9119 - $_ = Object.getPrototypeOf($_); //#9119 - } //#9119 - for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9138 - $_.i = _6r; //#9124 - $_.ai = $get($_.ais, $_.i); //#9125 - $_.val = $get($_.vals, $_.i); //#9126 - var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9127 - $puti(_71, 0, $_.gpf); //#9128 - $k[$j++] = _71; //#9129 - $k[$j++] = _71; //#9129 - $k[$j++] = $_.gpf.length; //#9129 - $k[$j++] = $_.ai; //#9129 - $k[$j++] = Infinity; //#9129 - var _75 = $k[--$j]; //#9129 - var _76 = $k[--$j]; //#9129 - $k[$j++] = _75; //#9129 - $forall(_76); //#9129 - var _77 = $a(); //#9129 - var _78 = $k[--$j]; //#9129 - $puti($k[--$j], _78, _77); //#9129 - var _7A = $k[--$j]; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = $_.gpf.length + $_.ai.length; //#9130 - $k[$j++] = $_.val; //#9130 - $k[$j++] = Infinity; //#9130 - var _7E = $k[--$j]; //#9130 - var _7F = $k[--$j]; //#9130 - $k[$j++] = _7E; //#9130 - $forall(_7F); //#9130 - var _7G = $a(); //#9130 - var _7H = $k[--$j]; //#9130 - $puti($k[--$j], _7H, _7G); //#9130 - $_.gpf = $k[--$j]; //#9131 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9137 - var _7Q = $a($_.gpf.length + 1); //#9133 - $puti(_7Q, 0, $_.gpf); //#9134 - $put(_7Q, $_.gpf.length, $_.fnc1); //#9135 - $_.gpf = _7Q; //#9136 - } //#9136 - } //#9136 - $_.rembits = function() { - var _7U = $k[--$j]; //#9142 - var _7V = 48; //#9144 - var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9144 - if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9144 - var _ = _7V; //#9144 - _7V = _7W; //#9144 - _7W = _; //#9144 - } //#9144 - var _7X = ~~(_7W / 12); //#9145 - $k[$j++] = _7U; //#9149 - $k[$j++] = _7W; //#9149 - $k[$j++] = _7X; //#9149 - if ((_7X % $_.segments) == 1) { //#9148 - var _7Z = $k[--$j]; //#9146 - var _7a = $k[--$j]; //#9146 - $k[$j++] = $f(_7Z + 1) * 12; //#9146 - $k[$j++] = _7a; //#9146 - $j--; //#9146 - } else { //#9148 - $j--; //#9148 - } //#9148 - var _7b = $k[--$j]; //#9150 - var _7c = $k[--$j]; //#9150 - $k[$j++] = $f(_7b - _7c); //#9150 - }; //#9150 - $_.encode = function() { - var _7d = $k[--$j]; //#9154 - $k[$j++] = _7d; //#9154 - if ($ne(_7d, 'raw')) { //#9154 - var _7e = $k[--$j]; //#9154 - var _7g = $get(_7e, $k[--$j]); //#9154 - $k[$j++] = _7g; //#9154 - } else { //#9154 - $j--; //#9154 - } //#9154 - $k[$j++] = Infinity; //#9155 - var _7h = $k[--$j]; //#9155 - var _7i = $k[--$j]; //#9155 - $k[$j++] = _7h; //#9155 - $forall(_7i, function() { //#9155 - var _7j = $k[--$j]; //#9155 - $k[$j++] = $f(_7j - 48); //#9155 - }); //#9155 - var _7k = $a(); //#9155 - $puti($_.gpfenc, $_.j, _7k); //#9157 - $_.j = _7k.length + $_.j; //#9158 - }; //#9158 - $k[$j++] = Infinity; //#9162 - for (var _7p = 0, _7q = $_.gpf.length; _7p < _7q; _7p++) { //#9162 - $k[$j++] = 0; //#9162 - } //#9162 - $k[$j++] = 0; //#9162 - $k[$j++] = -1; //#9162 - $_.numericruns = $a(); //#9162 - $k[$j++] = Infinity; //#9163 - for (var _7t = 0, _7u = $_.gpf.length; _7t < _7u; _7t++) { //#9163 - $k[$j++] = 0; //#9163 - } //#9163 - $k[$j++] = 0; //#9163 - $_.alphanumericruns = $a(); //#9163 - $k[$j++] = Infinity; //#9164 - for (var _7x = 0, _7y = $_.gpf.length; _7x < _7y; _7x++) { //#9164 - $k[$j++] = 0; //#9164 - } //#9164 - $k[$j++] = 9999; //#9164 - $_.nextiso646only = $a(); //#9164 - for (var _81 = $_.gpf.length - 1; _81 >= 0; _81 -= 1) { //#9186 - $_.i = _81; //#9166 - var _86 = $strcpy($s(2), "00"); //#9168 - var _89 = $get($_.gpf, $_.i); //#9169 - $k[$j++] = $get($_.gpf, $_.i); //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = 0; //#9169 - $k[$j++] = _89; //#9169 - if (_89 == $_.fnc1) { //#9169 - $j--; //#9169 - $k[$j++] = 94; //#9169 - } //#9169 - var _8B = $k[--$j]; //#9169 - var _8C = $k[--$j]; //#9169 - $put($k[--$j], _8C, _8B); //#9169 - if ($_.i < ($_.gpf.length - 1)) { //#9170 - var _8G = $k[--$j]; //#9170 - var _8J = $get($_.gpf, $_.i + 1); //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = 1; //#9170 - $k[$j++] = _8J; //#9170 - if (_8J == $_.fnc1) { //#9170 - $j--; //#9170 - $k[$j++] = 94; //#9170 - } //#9170 - var _8L = $k[--$j]; //#9170 - var _8M = $k[--$j]; //#9170 - $put($k[--$j], _8M, _8L); //#9170 + var _31 = $s($k[--$j]); //#9133 + $k[$j++] = _31; //#9133 + for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#9133 + var _34 = $k[--$j]; //#9133 + $put(_34, _33, 48); //#9133 + $k[$j++] = _34; //#9133 + } //#9133 + var _35 = $k[--$j]; //#9134 + var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#9134 + $puti(_35, _35.length - _38.length, _38); //#9134 + $k[$j++] = _35; //#9134 + }; //#9134 + $_.fnc1 = -1; //#9137 + $_.lnumeric = -2; //#9137 + $_.lalphanumeric = -3; //#9137 + $_.liso646 = -4; //#9137 + if ($eq($_.method, "00")) { //#9142 + $_.cdf = $a([]); //#9140 + $_.gpf = $a([]); //#9141 + } //#9141 + if ($eq($_.method, "1")) { //#9151 + $k[$j++] = 'cdf'; //#9145 + $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#9145 + $_.conv13to44(); //#9145 + var _3G = $k[--$j]; //#9145 + $_[$k[--$j]] = _3G; //#9145 + $k[$j++] = Infinity; //#9146 + var _3I = $_.cdf; //#9146 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#9146 + $k[$j++] = $f($get(_3I, _3J) - 48); //#9146 + } //#9146 + $_.cdf = $a(); //#9146 + $_.gpf = $a([]); //#9147 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#9148 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#9149 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9150 + } //#9150 + if ($eq($_.method, "0100")) { //#9162 + $_.cdf = $s(55); //#9154 + $k[$j++] = $_.cdf; //#9155 + $k[$j++] = 0; //#9155 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9155 + $_.conv12to40(); //#9155 + var _3d = $k[--$j]; //#9155 + var _3e = $k[--$j]; //#9155 + $puti($k[--$j], _3e, _3d); //#9155 + $k[$j++] = $_.cdf; //#9156 + $k[$j++] = 40; //#9156 + $k[$j++] = $cvi($get($_.vals, 1)); //#9156 + $k[$j++] = 15; //#9156 + $_.tobin(); //#9156 + var _3j = $k[--$j]; //#9156 + var _3k = $k[--$j]; //#9156 + $puti($k[--$j], _3k, _3j); //#9156 + $k[$j++] = Infinity; //#9157 + var _3m = $_.cdf; //#9157 + for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9157 + $k[$j++] = $get(_3m, _3n) - 48; //#9157 + } //#9157 + $_.cdf = $a(); //#9157 + $_.gpf = $a([]); //#9158 + $_.ais = $a([]); //#9159 + $_.vals = $a([]); //#9160 + $_.fncs = $a([]); //#9161 + } //#9161 + if ($eq($_.method, "0101")) { //#9178 + $_.cdf = $s(55); //#9165 + $k[$j++] = $_.cdf; //#9166 + $k[$j++] = 0; //#9166 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9166 + $_.conv12to40(); //#9166 + var _41 = $k[--$j]; //#9166 + var _42 = $k[--$j]; //#9166 + $puti($k[--$j], _42, _41); //#9166 + if ($eq($get($_.ais, 1), "3202")) { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)); //#9168 + $k[$j++] = 15; //#9168 + $_.tobin(); //#9168 + } else { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9170 + $k[$j++] = 15; //#9170 + $_.tobin(); //#9170 } //#9170 - var _8Q = $get($_.numeric, $k[--$j]) !== undefined; //#9171 - if (_8Q) { //#9174 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9172 - } else { //#9174 - $put($_.numericruns, $_.i, 0); //#9174 - } //#9174 - var _8Y = $k[--$j]; //#9176 - var _8a = $get($_.alphanumeric, _8Y) !== undefined; //#9176 - $k[$j++] = _8Y; //#9180 - if (_8a) { //#9179 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9177 - } else { //#9179 - $put($_.alphanumericruns, $_.i, 0); //#9179 - } //#9179 - var _8i = $k[--$j]; //#9181 - var _8k = $get($_.iso646, _8i) !== undefined; //#9181 - var _8m = $get($_.alphanumeric, _8i) !== undefined; //#9181 - if (_8k && (!_8m)) { //#9184 - $put($_.nextiso646only, $_.i, 0); //#9182 - } else { //#9184 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9184 - } //#9184 - } //#9184 - $_.gpfenc = $a(252); //#9189 - $_.i = 0; //#9190 - $_.j = 0; //#9190 - $_.mode = "numeric"; //#9190 - for (;;) { //#9280 - if ($_.i == $_.gpf.length) { //#9192 - break; //#9192 + $puti($_.cdf, 40, $k[--$j]); //#9172 + $k[$j++] = Infinity; //#9173 + var _4C = $_.cdf; //#9173 + for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9173 + $k[$j++] = $get(_4C, _4D) - 48; //#9173 + } //#9173 + $_.cdf = $a(); //#9173 + $_.gpf = $a([]); //#9174 + $_.ais = $a([]); //#9175 + $_.vals = $a([]); //#9176 + $_.fncs = $a([]); //#9177 + } //#9177 + if ($_.method.length == 7) { //#9200 + $_.cdf = $s(76); //#9181 + $k[$j++] = $_.cdf; //#9182 + $k[$j++] = 0; //#9182 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9182 + $_.conv12to40(); //#9182 + var _4R = $k[--$j]; //#9182 + var _4S = $k[--$j]; //#9182 + $puti($k[--$j], _4S, _4R); //#9182 + var _4U = $s(6); //#9183 + $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9183 + $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9184 + $k[$j++] = $cvi(_4U); //#9184 + $k[$j++] = 20; //#9184 + $_.tobin(); //#9184 + $puti($_.cdf, 40, $k[--$j]); //#9185 + if ($_.ais.length == 3) { //#9192 + var _4f = $get($_.vals, 2); //#9187 + $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9190 + } else { //#9192 + $k[$j++] = 38400; //#9192 } //#9192 - for (;;) { //#9279 - if ($eq($_.mode, "numeric")) { //#9228 - if ($_.i <= ($_.gpf.length - 2)) { //#9225 - var _90 = $s(2); //#9197 - var _93 = $get($_.gpf, $_.i); //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = 0; //#9198 - $k[$j++] = _93; //#9198 - if (_93 == $_.fnc1) { //#9198 - $j--; //#9198 - $k[$j++] = 94; //#9198 - } //#9198 - var _95 = $k[--$j]; //#9198 - var _96 = $k[--$j]; //#9198 - $put($k[--$j], _96, _95); //#9198 - var _98 = $k[--$j]; //#9199 - var _9B = $get($_.gpf, $_.i + 1); //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = 1; //#9199 - $k[$j++] = _9B; //#9199 - if (_9B == $_.fnc1) { //#9199 - $j--; //#9199 - $k[$j++] = 94; //#9199 - } //#9199 - var _9D = $k[--$j]; //#9199 - var _9E = $k[--$j]; //#9199 - $put($k[--$j], _9E, _9D); //#9199 - var _9G = $k[--$j]; //#9200 - var _9I = $get($_.numeric, _9G) !== undefined; //#9200 - $k[$j++] = _9G; //#9204 - if (_9I) { //#9204 - $k[$j++] = $_.numeric; //#9201 - $_.encode(); //#9201 - $_.i = $_.i + 2; //#9202 - break; //#9203 - } //#9203 - $j--; //#9205 - $k[$j++] = $_.lalphanumeric; //#9206 - $k[$j++] = $_.numeric; //#9206 - $_.encode(); //#9206 - $_.mode = "alphanumeric"; //#9207 - break; //#9208 - } else { //#9225 - var _9P = $get($_.gpf, $_.i); //#9210 - if ((_9P < 48) || (_9P > 57)) { //#9214 - $k[$j++] = $_.lalphanumeric; //#9211 - $k[$j++] = $_.numeric; //#9211 - $_.encode(); //#9211 - $_.mode = "alphanumeric"; //#9212 - break; //#9213 - } //#9213 - $k[$j++] = 'rem'; //#9215 - $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9215 - $_.rembits(); //#9215 - var _9W = $k[--$j]; //#9215 - $_[$k[--$j]] = _9W; //#9215 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#9225 - var _9d = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9217 - var _9i = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9218 - $puti(_9d, 4 - _9i.length, _9i); //#9219 - $k[$j++] = _9d; //#9219 - $k[$j++] = 'raw'; //#9219 - $_.encode(); //#9219 - $_.i = $_.i + 1; //#9220 - break; //#9221 - } else { //#9225 - var _9k = $s(2); //#9223 - $put(_9k, 0, $get($_.gpf, $_.i)); //#9223 - $put(_9k, 1, 94); //#9223 - $k[$j++] = _9k; //#9223 - $k[$j++] = $_.numeric; //#9223 - $_.encode(); //#9223 - $_.i = $_.i + 1; //#9224 - break; //#9225 - } //#9225 - } //#9225 - } //#9225 - if ($eq($_.mode, "alphanumeric")) { //#9255 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9236 - $k[$j++] = $_.fnc1; //#9232 - $k[$j++] = $_.alphanumeric; //#9232 - $_.encode(); //#9232 - $_.mode = "numeric"; //#9233 - $_.i = $_.i + 1; //#9234 - break; //#9235 - } //#9235 - var _A0 = $get($_.gpf, $_.i); //#9237 - var _A2 = $get($_.iso646, _A0) !== undefined; //#9237 - var _A4 = $get($_.alphanumeric, _A0) !== undefined; //#9237 - if (_A2 && (!_A4)) { //#9241 - $k[$j++] = $_.liso646; //#9238 - $k[$j++] = $_.alphanumeric; //#9238 - $_.encode(); //#9238 - $_.mode = "iso646"; //#9239 - break; //#9240 - } //#9240 - if ($get($_.numericruns, $_.i) >= 6) { //#9246 - $k[$j++] = $_.lnumeric; //#9243 - $k[$j++] = $_.alphanumeric; //#9243 - $_.encode(); //#9243 - $_.mode = "numeric"; //#9244 - break; //#9245 - } //#9245 - var _AE = $get($_.numericruns, $_.i); //#9247 - if ((_AE >= 4) && ($f(_AE + $_.i) == $_.gpf.length)) { //#9251 - $k[$j++] = $_.lnumeric; //#9248 - $k[$j++] = $_.alphanumeric; //#9248 - $_.encode(); //#9248 - $_.mode = "numeric"; //#9249 - break; //#9250 - } //#9250 - $k[$j++] = $get($_.gpf, $_.i); //#9252 - $k[$j++] = $_.alphanumeric; //#9252 - $_.encode(); //#9252 - $_.i = $_.i + 1; //#9253 - break; //#9254 - } //#9254 - if ($eq($_.mode, "iso646")) { //#9277 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9263 - $k[$j++] = $_.fnc1; //#9259 - $k[$j++] = $_.iso646; //#9259 - $_.encode(); //#9259 - $_.mode = "numeric"; //#9260 - $_.i = $_.i + 1; //#9261 - break; //#9262 - } //#9262 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9268 - $k[$j++] = $_.lnumeric; //#9265 - $k[$j++] = $_.iso646; //#9265 - $_.encode(); //#9265 - $_.mode = "numeric"; //#9266 - break; //#9267 - } //#9267 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9273 - $k[$j++] = $_.lalphanumeric; //#9270 - $k[$j++] = $_.iso646; //#9270 - $_.encode(); //#9270 - $_.mode = "alphanumeric"; //#9271 - break; //#9272 - } //#9272 - $k[$j++] = $get($_.gpf, $_.i); //#9274 - $k[$j++] = $_.iso646; //#9274 - $_.encode(); //#9274 - $_.i = $_.i + 1; //#9275 - break; //#9276 - } //#9276 - } //#9276 - } //#9276 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9281 - var _Ay = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9285 - $k[$j++] = _Ay; //#9285 - $k[$j++] = _Ay; //#9285 - $_.rembits(); //#9285 - var _Az = $k[--$j]; //#9285 - $_.pad = $a(_Az); //#9285 - $k[$j++] = _Az; //#9292 - if ($_.vlf.length != 0) { //#9291 - var _B2 = $k[--$j]; //#9287 - var _B4 = ~~($f($k[--$j] + _B2) / 12); //#9288 - $put($_.vlf, 0, _B4 % 2); //#9288 - var _B6 = (_B4 <= 14) ? 0 : 1; //#9289 - $put($_.vlf, 1, _B6); //#9289 - } else { //#9291 - $j -= 2; //#9291 - } //#9291 - if ($_.pad.length > 0) { //#9301 - for (var _BB = 0, _BA = $_.pad.length - 1; _BB <= _BA; _BB += 5) { //#9297 - $_.i = _BB; //#9295 - var _BC = $_.pad; //#9296 - var _BD = $_.i; //#9296 - var _BE = $a([0, 0, 1, 0, 0]); //#9296 - var _BF = $_.pad; //#9296 - var _BG = $_.i; //#9296 - var _BH = 5; //#9296 - var _BI = _BF.length - _BG; //#9296 - if ((_BF.length - _BG) > 5) { //#9296 - var _ = _BH; //#9296 - _BH = _BI; //#9296 - _BI = _; //#9296 - } //#9296 - $puti(_BC, _BD, $geti(_BE, 0, _BI)); //#9296 - } //#9296 - if ($eq($_.mode, "numeric")) { //#9300 - $k[$j++] = Infinity; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $aload($_.pad); //#9299 - $_.pad = $geti($a(), 0, $_.pad.length); //#9299 - } //#9299 - } //#9299 - $k[$j++] = Infinity; //#9310 - var _BQ = $_.linkage ? 1 : 0; //#9305 - $k[$j++] = _BQ; //#9306 - $forall($_.method, function() { //#9306 - var _BS = $k[--$j]; //#9306 - $k[$j++] = $f(_BS - 48); //#9306 - }); //#9306 - $aload($_.vlf); //#9307 - $aload($_.cdf); //#9308 - $aload($_.gpf); //#9309 - $aload($_.pad); //#9310 - $_.binval = $a(); //#9310 - $_.datalen = ~~($_.binval.length / 12); //#9312 + $k[$j++] = 16; //#9194 + $_.tobin(); //#9194 + $puti($_.cdf, 60, $k[--$j]); //#9194 + $k[$j++] = Infinity; //#9195 + var _4l = $_.cdf; //#9195 + for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9195 + $k[$j++] = $get(_4l, _4m) - 48; //#9195 + } //#9195 + $_.cdf = $a(); //#9195 + $_.gpf = $a([]); //#9196 + $_.ais = $a([]); //#9197 + $_.vals = $a([]); //#9198 + $_.fncs = $a([]); //#9199 + } //#9199 + if ($eq($_.method, "01100")) { //#9211 + $_.cdf = $s(42); //#9203 + $k[$j++] = $_.cdf; //#9204 + $k[$j++] = 0; //#9204 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9204 + $_.conv12to40(); //#9204 + var _50 = $k[--$j]; //#9204 + var _51 = $k[--$j]; //#9204 + $puti($k[--$j], _51, _50); //#9204 + $k[$j++] = $_.cdf; //#9205 + $k[$j++] = 40; //#9205 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9205 + $k[$j++] = 2; //#9205 + $_.tobin(); //#9205 + var _57 = $k[--$j]; //#9205 + var _58 = $k[--$j]; //#9205 + $puti($k[--$j], _58, _57); //#9205 + $k[$j++] = Infinity; //#9206 + var _5A = $_.cdf; //#9206 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9206 + $k[$j++] = $get(_5A, _5B) - 48; //#9206 + } //#9206 + $_.cdf = $a(); //#9206 + $k[$j++] = Infinity; //#9207 + $forall($get($_.vals, 1)); //#9207 + if ($_.ais.length > 2) { //#9207 + $k[$j++] = $_.fnc1; //#9207 + } //#9207 + $_.gpf = $a(); //#9207 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9208 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9209 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9210 + } //#9210 + if ($eq($_.method, "01101")) { //#9223 + $_.cdf = $s(52); //#9214 + $k[$j++] = $_.cdf; //#9215 + $k[$j++] = 0; //#9215 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9215 + $_.conv12to40(); //#9215 + var _5Z = $k[--$j]; //#9215 + var _5a = $k[--$j]; //#9215 + $puti($k[--$j], _5a, _5Z); //#9215 + $k[$j++] = $_.cdf; //#9216 + $k[$j++] = 40; //#9216 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9216 + $k[$j++] = 2; //#9216 + $_.tobin(); //#9216 + var _5g = $k[--$j]; //#9216 + var _5h = $k[--$j]; //#9216 + $puti($k[--$j], _5h, _5g); //#9216 + $k[$j++] = $_.cdf; //#9217 + $k[$j++] = 42; //#9217 + $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9217 + $k[$j++] = 10; //#9217 + $_.tobin(); //#9217 + var _5n = $k[--$j]; //#9217 + var _5o = $k[--$j]; //#9217 + $puti($k[--$j], _5o, _5n); //#9217 + $k[$j++] = Infinity; //#9218 + var _5q = $_.cdf; //#9218 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9218 + $k[$j++] = $get(_5q, _5r) - 48; //#9218 + } //#9218 + $_.cdf = $a(); //#9218 + $k[$j++] = Infinity; //#9219 + var _5w = $get($_.vals, 1); //#9219 + var _5x = $geti(_5w, 3, _5w.length - 3); //#9219 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9219 + $k[$j++] = $get(_5x, _5y); //#9219 + } //#9219 + if ($_.ais.length > 2) { //#9219 + $k[$j++] = $_.fnc1; //#9219 + } //#9219 + $_.gpf = $a(); //#9219 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9220 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9221 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9222 + } //#9222 + if ($_.gpfallow) { //#9229 + $_.vlf = $a(2); //#9227 + } else { //#9229 + $_.vlf = $a([]); //#9229 + } //#9229 + if (!bwipp_databarexpanded.__9270__) { //#9270 + $_ = Object.create($_); //#9270 + $k[$j++] = Infinity; //#9233 + for (var _6G = 0; _6G <= 119; _6G += 1) { //#9242 + var _6I = $strcpy($s(2), "00"); //#9235 + var _6K = $cvrs($s(2), _6G, 11); //#9235 + $puti(_6I, 2 - _6K.length, _6K); //#9236 + $k[$j++] = _6G; //#9237 + $k[$j++] = _6I; //#9237 + if ($get(_6I, 0) == 65) { //#9237 + var _6M = $k[--$j]; //#9237 + $put(_6M, 0, 94); //#9237 + $k[$j++] = _6M; //#9237 + } //#9237 + var _6N = $k[--$j]; //#9238 + $k[$j++] = _6N; //#9238 + if ($get(_6N, 1) == 65) { //#9238 + var _6P = $k[--$j]; //#9238 + $put(_6P, 1, 94); //#9238 + $k[$j++] = _6P; //#9238 + } //#9238 + var _6Q = $k[--$j]; //#9239 + var _6T = $strcpy($s(7), "0000000"); //#9240 + var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9240 + $puti(_6T, 7 - _6V.length, _6V); //#9241 + $k[$j++] = _6Q; //#9241 + $k[$j++] = _6T; //#9241 + } //#9241 + $k[$j++] = $_.lalphanumeric; //#9243 + $k[$j++] = "0000"; //#9243 + $_.numeric = $d(); //#9244 + $k[$j++] = Infinity; //#9246 + for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9247 + $k[$j++] = _6Y; //#9247 + $k[$j++] = _6Y - 43; //#9247 + $k[$j++] = 5; //#9247 + $_.tobin(); //#9247 + } //#9247 + $k[$j++] = $_.fnc1; //#9249 + $k[$j++] = "01111"; //#9249 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#9249 + $k[$j++] = _6a; //#9249 + $k[$j++] = _6a - 33; //#9249 + $k[$j++] = 6; //#9249 + $_.tobin(); //#9249 + } //#9249 + $k[$j++] = 42; //#9251 + $k[$j++] = "111010"; //#9251 + for (var _6b = 44; _6b <= 47; _6b += 1) { //#9251 + $k[$j++] = _6b; //#9251 + $k[$j++] = _6b + 15; //#9251 + $k[$j++] = 6; //#9251 + $_.tobin(); //#9251 + } //#9251 + $k[$j++] = $_.lnumeric; //#9253 + $k[$j++] = "000"; //#9253 + $k[$j++] = $_.liso646; //#9253 + $k[$j++] = "00100"; //#9253 + $_.alphanumeric = $d(); //#9254 + $k[$j++] = Infinity; //#9256 + for (var _6f = 48; _6f <= 57; _6f += 1) { //#9257 + $k[$j++] = _6f; //#9257 + $k[$j++] = _6f - 43; //#9257 + $k[$j++] = 5; //#9257 + $_.tobin(); //#9257 + } //#9257 + $k[$j++] = $_.fnc1; //#9259 + $k[$j++] = "01111"; //#9259 + for (var _6h = 65; _6h <= 90; _6h += 1) { //#9259 + $k[$j++] = _6h; //#9259 + $k[$j++] = _6h - 1; //#9259 + $k[$j++] = 7; //#9259 + $_.tobin(); //#9259 + } //#9259 + for (var _6i = 97; _6i <= 122; _6i += 1) { //#9260 + $k[$j++] = _6i; //#9260 + $k[$j++] = _6i - 7; //#9260 + $k[$j++] = 7; //#9260 + $_.tobin(); //#9260 + } //#9260 + $k[$j++] = 33; //#9263 + $k[$j++] = "11101000"; //#9263 + $k[$j++] = 34; //#9263 + $k[$j++] = "11101001"; //#9263 + for (var _6j = 37; _6j <= 47; _6j += 1) { //#9263 + $k[$j++] = _6j; //#9263 + $k[$j++] = _6j + 197; //#9263 + $k[$j++] = 8; //#9263 + $_.tobin(); //#9263 + } //#9263 + for (var _6k = 58; _6k <= 63; _6k += 1) { //#9264 + $k[$j++] = _6k; //#9264 + $k[$j++] = _6k + 187; //#9264 + $k[$j++] = 8; //#9264 + $_.tobin(); //#9264 + } //#9264 + $k[$j++] = 95; //#9268 + $k[$j++] = "11111011"; //#9268 + $k[$j++] = 32; //#9268 + $k[$j++] = "11111100"; //#9268 + $k[$j++] = $_.lnumeric; //#9268 + $k[$j++] = "000"; //#9268 + $k[$j++] = $_.lalphanumeric; //#9268 + $k[$j++] = "00100"; //#9268 + $_.iso646 = $d(); //#9269 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9269 + bwipp_databarexpanded.__9270__ = 1; //#9269 + $_ = Object.getPrototypeOf($_); //#9269 + } //#9269 + for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9288 + $_.i = _6r; //#9274 + $_.ai = $get($_.ais, $_.i); //#9275 + $_.val = $get($_.vals, $_.i); //#9276 + var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9277 + $puti(_71, 0, $_.gpf); //#9278 + $k[$j++] = _71; //#9279 + $k[$j++] = _71; //#9279 + $k[$j++] = $_.gpf.length; //#9279 + $k[$j++] = $_.ai; //#9279 + $k[$j++] = Infinity; //#9279 + var _75 = $k[--$j]; //#9279 + var _76 = $k[--$j]; //#9279 + $k[$j++] = _75; //#9279 + $forall(_76); //#9279 + var _77 = $a(); //#9279 + var _78 = $k[--$j]; //#9279 + $puti($k[--$j], _78, _77); //#9279 + var _7A = $k[--$j]; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = $_.gpf.length + $_.ai.length; //#9280 + $k[$j++] = $_.val; //#9280 + $k[$j++] = Infinity; //#9280 + var _7E = $k[--$j]; //#9280 + var _7F = $k[--$j]; //#9280 + $k[$j++] = _7E; //#9280 + $forall(_7F); //#9280 + var _7G = $a(); //#9280 + var _7H = $k[--$j]; //#9280 + $puti($k[--$j], _7H, _7G); //#9280 + $_.gpf = $k[--$j]; //#9281 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9287 + var _7Q = $a($_.gpf.length + 1); //#9283 + $puti(_7Q, 0, $_.gpf); //#9284 + $put(_7Q, $_.gpf.length, $_.fnc1); //#9285 + $_.gpf = _7Q; //#9286 + } //#9286 + } //#9286 + $_.rembits = function() { + var _7U = $k[--$j]; //#9292 + var _7V = 48; //#9294 + var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9294 + if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9294 + var _ = _7V; //#9294 + _7V = _7W; //#9294 + _7W = _; //#9294 + } //#9294 + var _7X = ~~(_7W / 12); //#9295 + $k[$j++] = _7U; //#9299 + $k[$j++] = _7W; //#9299 + $k[$j++] = _7X; //#9299 + if ((_7X % $_.segments) == 1) { //#9298 + var _7Z = $k[--$j]; //#9296 + var _7a = $k[--$j]; //#9296 + $k[$j++] = $f(_7Z + 1) * 12; //#9296 + $k[$j++] = _7a; //#9296 + $j--; //#9296 + } else { //#9298 + $j--; //#9298 + } //#9298 + var _7b = $k[--$j]; //#9300 + var _7c = $k[--$j]; //#9300 + $k[$j++] = $f(_7b - _7c); //#9300 + }; //#9300 + $_.encode = function() { + var _7d = $k[--$j]; //#9304 + $k[$j++] = _7d; //#9304 + if ($ne(_7d, 'raw')) { //#9304 + var _7e = $k[--$j]; //#9304 + var _7g = $get(_7e, $k[--$j]); //#9304 + $k[$j++] = _7g; //#9304 + } else { //#9304 + $j--; //#9304 + } //#9304 + var _7h = $k[--$j]; //#9305 + $k[$j++] = _7h; //#9307 + if ((_7h.length + $_.j) >= 252) { //#9307 + $j--; //#9306 + $k[$j++] = 'bwipp.gs1databarexpandedTooLong#9306'; //#9306 + $k[$j++] = "Maximum length exceeded"; //#9306 + bwipp_raiseerror(); //#9306 + } //#9306 + $k[$j++] = Infinity; //#9308 + var _7j = $k[--$j]; //#9308 + var _7k = $k[--$j]; //#9308 + $k[$j++] = _7j; //#9308 + $forall(_7k, function() { //#9308 + var _7l = $k[--$j]; //#9308 + $k[$j++] = $f(_7l - 48); //#9308 + }); //#9308 + var _7m = $a(); //#9308 + $puti($_.gpfenc, $_.j, _7m); //#9310 + $_.j = _7m.length + $_.j; //#9311 + }; //#9311 + $k[$j++] = Infinity; //#9315 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#9315 + $k[$j++] = 0; //#9315 + } //#9315 + $k[$j++] = 0; //#9315 + $k[$j++] = -1; //#9315 + $_.numericruns = $a(); //#9315 + $k[$j++] = Infinity; //#9316 + for (var _7v = 0, _7w = $_.gpf.length; _7v < _7w; _7v++) { //#9316 + $k[$j++] = 0; //#9316 + } //#9316 + $k[$j++] = 0; //#9316 + $_.alphanumericruns = $a(); //#9316 + $k[$j++] = Infinity; //#9317 + for (var _7z = 0, _80 = $_.gpf.length; _7z < _80; _7z++) { //#9317 + $k[$j++] = 0; //#9317 + } //#9317 + $k[$j++] = 9999; //#9317 + $_.nextiso646only = $a(); //#9317 + for (var _83 = $_.gpf.length - 1; _83 >= 0; _83 -= 1) { //#9339 + $_.i = _83; //#9319 + var _88 = $strcpy($s(2), "00"); //#9321 + var _8B = $get($_.gpf, $_.i); //#9322 + $k[$j++] = $get($_.gpf, $_.i); //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = 0; //#9322 + $k[$j++] = _8B; //#9322 + if (_8B == $_.fnc1) { //#9322 + $j--; //#9322 + $k[$j++] = 94; //#9322 + } //#9322 + var _8D = $k[--$j]; //#9322 + var _8E = $k[--$j]; //#9322 + $put($k[--$j], _8E, _8D); //#9322 + if ($_.i < ($_.gpf.length - 1)) { //#9323 + var _8I = $k[--$j]; //#9323 + var _8L = $get($_.gpf, $_.i + 1); //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = 1; //#9323 + $k[$j++] = _8L; //#9323 + if (_8L == $_.fnc1) { //#9323 + $j--; //#9323 + $k[$j++] = 94; //#9323 + } //#9323 + var _8N = $k[--$j]; //#9323 + var _8O = $k[--$j]; //#9323 + $put($k[--$j], _8O, _8N); //#9323 + } //#9323 + var _8S = $get($_.numeric, $k[--$j]) !== undefined; //#9324 + if (_8S) { //#9327 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9325 + } else { //#9327 + $put($_.numericruns, $_.i, 0); //#9327 + } //#9327 + var _8a = $k[--$j]; //#9329 + var _8c = $get($_.alphanumeric, _8a) !== undefined; //#9329 + $k[$j++] = _8a; //#9333 + if (_8c) { //#9332 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9330 + } else { //#9332 + $put($_.alphanumericruns, $_.i, 0); //#9332 + } //#9332 + var _8k = $k[--$j]; //#9334 + var _8m = $get($_.iso646, _8k) !== undefined; //#9334 + var _8o = $get($_.alphanumeric, _8k) !== undefined; //#9334 + if (_8m && (!_8o)) { //#9337 + $put($_.nextiso646only, $_.i, 0); //#9335 + } else { //#9337 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9337 + } //#9337 + } //#9337 + $_.gpfenc = $a(252); //#9342 + $_.i = 0; //#9343 + $_.j = 0; //#9343 + $_.mode = "numeric"; //#9343 + for (;;) { //#9433 + if ($_.i == $_.gpf.length) { //#9345 + break; //#9345 + } //#9345 + for (;;) { //#9432 + if ($eq($_.mode, "numeric")) { //#9381 + if ($_.i <= ($_.gpf.length - 2)) { //#9378 + var _92 = $s(2); //#9350 + var _95 = $get($_.gpf, $_.i); //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = 0; //#9351 + $k[$j++] = _95; //#9351 + if (_95 == $_.fnc1) { //#9351 + $j--; //#9351 + $k[$j++] = 94; //#9351 + } //#9351 + var _97 = $k[--$j]; //#9351 + var _98 = $k[--$j]; //#9351 + $put($k[--$j], _98, _97); //#9351 + var _9A = $k[--$j]; //#9352 + var _9D = $get($_.gpf, $_.i + 1); //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = 1; //#9352 + $k[$j++] = _9D; //#9352 + if (_9D == $_.fnc1) { //#9352 + $j--; //#9352 + $k[$j++] = 94; //#9352 + } //#9352 + var _9F = $k[--$j]; //#9352 + var _9G = $k[--$j]; //#9352 + $put($k[--$j], _9G, _9F); //#9352 + var _9I = $k[--$j]; //#9353 + var _9K = $get($_.numeric, _9I) !== undefined; //#9353 + $k[$j++] = _9I; //#9357 + if (_9K) { //#9357 + $k[$j++] = $_.numeric; //#9354 + $_.encode(); //#9354 + $_.i = $_.i + 2; //#9355 + break; //#9356 + } //#9356 + $j--; //#9358 + $k[$j++] = $_.lalphanumeric; //#9359 + $k[$j++] = $_.numeric; //#9359 + $_.encode(); //#9359 + $_.mode = "alphanumeric"; //#9360 + break; //#9361 + } else { //#9378 + var _9R = $get($_.gpf, $_.i); //#9363 + if ((_9R < 48) || (_9R > 57)) { //#9367 + $k[$j++] = $_.lalphanumeric; //#9364 + $k[$j++] = $_.numeric; //#9364 + $_.encode(); //#9364 + $_.mode = "alphanumeric"; //#9365 + break; //#9366 + } //#9366 + $k[$j++] = 'rem'; //#9368 + $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9368 + $_.rembits(); //#9368 + var _9Y = $k[--$j]; //#9368 + $_[$k[--$j]] = _9Y; //#9368 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#9378 + var _9f = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9370 + var _9k = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9371 + $puti(_9f, 4 - _9k.length, _9k); //#9372 + $k[$j++] = _9f; //#9372 + $k[$j++] = 'raw'; //#9372 + $_.encode(); //#9372 + $_.i = $_.i + 1; //#9373 + break; //#9374 + } else { //#9378 + var _9m = $s(2); //#9376 + $put(_9m, 0, $get($_.gpf, $_.i)); //#9376 + $put(_9m, 1, 94); //#9376 + $k[$j++] = _9m; //#9376 + $k[$j++] = $_.numeric; //#9376 + $_.encode(); //#9376 + $_.i = $_.i + 1; //#9377 + break; //#9378 + } //#9378 + } //#9378 + } //#9378 + if ($eq($_.mode, "alphanumeric")) { //#9408 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9389 + $k[$j++] = $_.fnc1; //#9385 + $k[$j++] = $_.alphanumeric; //#9385 + $_.encode(); //#9385 + $_.mode = "numeric"; //#9386 + $_.i = $_.i + 1; //#9387 + break; //#9388 + } //#9388 + var _A2 = $get($_.gpf, $_.i); //#9390 + var _A4 = $get($_.iso646, _A2) !== undefined; //#9390 + var _A6 = $get($_.alphanumeric, _A2) !== undefined; //#9390 + if (_A4 && (!_A6)) { //#9394 + $k[$j++] = $_.liso646; //#9391 + $k[$j++] = $_.alphanumeric; //#9391 + $_.encode(); //#9391 + $_.mode = "iso646"; //#9392 + break; //#9393 + } //#9393 + if ($get($_.numericruns, $_.i) >= 6) { //#9399 + $k[$j++] = $_.lnumeric; //#9396 + $k[$j++] = $_.alphanumeric; //#9396 + $_.encode(); //#9396 + $_.mode = "numeric"; //#9397 + break; //#9398 + } //#9398 + var _AG = $get($_.numericruns, $_.i); //#9400 + if ((_AG >= 4) && ($f(_AG + $_.i) == $_.gpf.length)) { //#9404 + $k[$j++] = $_.lnumeric; //#9401 + $k[$j++] = $_.alphanumeric; //#9401 + $_.encode(); //#9401 + $_.mode = "numeric"; //#9402 + break; //#9403 + } //#9403 + $k[$j++] = $get($_.gpf, $_.i); //#9405 + $k[$j++] = $_.alphanumeric; //#9405 + $_.encode(); //#9405 + $_.i = $_.i + 1; //#9406 + break; //#9407 + } //#9407 + if ($eq($_.mode, "iso646")) { //#9430 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9416 + $k[$j++] = $_.fnc1; //#9412 + $k[$j++] = $_.iso646; //#9412 + $_.encode(); //#9412 + $_.mode = "numeric"; //#9413 + $_.i = $_.i + 1; //#9414 + break; //#9415 + } //#9415 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9421 + $k[$j++] = $_.lnumeric; //#9418 + $k[$j++] = $_.iso646; //#9418 + $_.encode(); //#9418 + $_.mode = "numeric"; //#9419 + break; //#9420 + } //#9420 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9426 + $k[$j++] = $_.lalphanumeric; //#9423 + $k[$j++] = $_.iso646; //#9423 + $_.encode(); //#9423 + $_.mode = "alphanumeric"; //#9424 + break; //#9425 + } //#9425 + $k[$j++] = $get($_.gpf, $_.i); //#9427 + $k[$j++] = $_.iso646; //#9427 + $_.encode(); //#9427 + $_.i = $_.i + 1; //#9428 + break; //#9429 + } //#9429 + } //#9429 + } //#9429 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9434 + var _B0 = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9438 + $k[$j++] = _B0; //#9438 + $k[$j++] = _B0; //#9438 + $_.rembits(); //#9438 + var _B1 = $k[--$j]; //#9438 + $_.pad = $a(_B1); //#9438 + $k[$j++] = _B1; //#9445 + if ($_.vlf.length != 0) { //#9444 + var _B4 = $k[--$j]; //#9440 + var _B6 = ~~($f($k[--$j] + _B4) / 12); //#9441 + $put($_.vlf, 0, _B6 % 2); //#9441 + var _B8 = (_B6 <= 14) ? 0 : 1; //#9442 + $put($_.vlf, 1, _B8); //#9442 + } else { //#9444 + $j -= 2; //#9444 + } //#9444 + if ($_.pad.length > 0) { //#9454 + for (var _BD = 0, _BC = $_.pad.length - 1; _BD <= _BC; _BD += 5) { //#9450 + $_.i = _BD; //#9448 + var _BE = $_.pad; //#9449 + var _BF = $_.i; //#9449 + var _BG = $a([0, 0, 1, 0, 0]); //#9449 + var _BH = $_.pad; //#9449 + var _BI = $_.i; //#9449 + var _BJ = 5; //#9449 + var _BK = _BH.length - _BI; //#9449 + if ((_BH.length - _BI) > 5) { //#9449 + var _ = _BJ; //#9449 + _BJ = _BK; //#9449 + _BK = _; //#9449 + } //#9449 + $puti(_BE, _BF, $geti(_BG, 0, _BK)); //#9449 + } //#9449 + if ($eq($_.mode, "numeric")) { //#9453 + $k[$j++] = Infinity; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $aload($_.pad); //#9452 + $_.pad = $geti($a(), 0, $_.pad.length); //#9452 + } //#9452 + } //#9452 + $k[$j++] = Infinity; //#9457 + var _BS = $_.linkage ? 1 : 0; //#9458 + $k[$j++] = _BS; //#9459 + $forall($_.method, function() { //#9459 + var _BU = $k[--$j]; //#9459 + $k[$j++] = $f(_BU - 48); //#9459 + }); //#9459 + $aload($_.vlf); //#9460 + $aload($_.cdf); //#9461 + $aload($_.gpf); //#9462 + $aload($_.pad); //#9463 + $_.binval = $a(); //#9463 + $_.datalen = ~~($_.binval.length / 12); //#9465 $_.ncr = function() { - var _BZ = $k[--$j]; //#9315 - var _Ba = $k[--$j]; //#9315 - var _Bb = $f(_Ba - _BZ); //#9315 - if (_BZ < $f(_Ba - _BZ)) { //#9315 - var _ = _Bb; //#9315 - _Bb = _BZ; //#9315 - _BZ = _; //#9315 - } //#9315 - $k[$j++] = _Bb; //#9322 - $k[$j++] = 1; //#9322 - $k[$j++] = 1; //#9322 - for (var _Bd = _Ba, _Bc = $f(_BZ + 1); _Bd >= _Bc; _Bd -= 1) { //#9322 - var _Be = $k[--$j]; //#9318 - var _Bf = $k[--$j]; //#9319 - var _Bg = $k[--$j]; //#9319 - $k[$j++] = _Bg; //#9321 - $k[$j++] = _Bf; //#9321 - $k[$j++] = _Be * _Bd; //#9321 - if ($le(_Bf, _Bg)) { //#9321 - var _Bh = $k[--$j]; //#9320 - var _Bi = $k[--$j]; //#9320 - $k[$j++] = $f(_Bi + 1); //#9320 - $k[$j++] = ~~(_Bh / _Bi); //#9320 - } //#9320 - } //#9320 - for (;;) { //#9326 - var _Bj = $k[--$j]; //#9324 - var _Bk = $k[--$j]; //#9324 - var _Bl = $k[--$j]; //#9324 - $k[$j++] = _Bl; //#9324 - $k[$j++] = _Bk; //#9324 - $k[$j++] = _Bj; //#9324 - if ($gt(_Bk, _Bl)) { //#9324 - break; //#9324 - } //#9324 - var _Bm = $k[--$j]; //#9325 - var _Bn = $k[--$j]; //#9325 - $k[$j++] = $f(_Bn + 1); //#9325 - $k[$j++] = ~~(_Bm / _Bn); //#9325 - } //#9325 - var _Bo = $k[--$j]; //#9327 - var _Bp = $k[--$j]; //#9327 - $k[$j++] = _Bo; //#9327 - $k[$j++] = _Bp; //#9327 - $j--; //#9327 - var _Bq = $k[--$j]; //#9327 - var _Br = $k[--$j]; //#9327 - $k[$j++] = _Bq; //#9327 - $k[$j++] = _Br; //#9327 - $j--; //#9327 - }; //#9327 + var _Bb = $k[--$j]; //#9468 + var _Bc = $k[--$j]; //#9468 + var _Bd = $f(_Bc - _Bb); //#9468 + if (_Bb < $f(_Bc - _Bb)) { //#9468 + var _ = _Bd; //#9468 + _Bd = _Bb; //#9468 + _Bb = _; //#9468 + } //#9468 + $k[$j++] = _Bd; //#9475 + $k[$j++] = 1; //#9475 + $k[$j++] = 1; //#9475 + for (var _Bf = _Bc, _Be = $f(_Bb + 1); _Bf >= _Be; _Bf -= 1) { //#9475 + var _Bg = $k[--$j]; //#9471 + var _Bh = $k[--$j]; //#9472 + var _Bi = $k[--$j]; //#9472 + $k[$j++] = _Bi; //#9474 + $k[$j++] = _Bh; //#9474 + $k[$j++] = _Bg * _Bf; //#9474 + if ($le(_Bh, _Bi)) { //#9474 + var _Bj = $k[--$j]; //#9473 + var _Bk = $k[--$j]; //#9473 + $k[$j++] = $f(_Bk + 1); //#9473 + $k[$j++] = ~~(_Bj / _Bk); //#9473 + } //#9473 + } //#9473 + for (;;) { //#9479 + var _Bl = $k[--$j]; //#9477 + var _Bm = $k[--$j]; //#9477 + var _Bn = $k[--$j]; //#9477 + $k[$j++] = _Bn; //#9477 + $k[$j++] = _Bm; //#9477 + $k[$j++] = _Bl; //#9477 + if ($gt(_Bm, _Bn)) { //#9477 + break; //#9477 + } //#9477 + var _Bo = $k[--$j]; //#9478 + var _Bp = $k[--$j]; //#9478 + $k[$j++] = $f(_Bp + 1); //#9478 + $k[$j++] = ~~(_Bo / _Bp); //#9478 + } //#9478 + var _Bq = $k[--$j]; //#9480 + var _Br = $k[--$j]; //#9480 + $k[$j++] = _Bq; //#9480 + $k[$j++] = _Br; //#9480 + $j--; //#9480 + var _Bs = $k[--$j]; //#9480 + var _Bt = $k[--$j]; //#9480 + $k[$j++] = _Bs; //#9480 + $k[$j++] = _Bt; //#9480 + $j--; //#9480 + }; //#9480 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#9331 - $_.el = $k[--$j]; //#9332 - $_.mw = $k[--$j]; //#9333 - $_.nm = $k[--$j]; //#9334 - $_.val = $k[--$j]; //#9335 - $_.out = $a($_.el); //#9336 - $_.mask = 0; //#9337 - for (var _C1 = 0, _C0 = $f($_.el - 2); _C1 <= _C0; _C1 += 1) { //#9364 - $_.bar = _C1; //#9339 - $_.ew = 1; //#9340 - var _C3 = $_.bar; //#9341 - $_.mask = $_.mask | ((_C3 < 0 ? 1 >>> -_C3 : 1 << _C3)); //#9341 - for (;;) { //#9360 - $k[$j++] = 'sval'; //#9342 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9342 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9342 - $_.ncr(); //#9342 - var _C8 = $k[--$j]; //#9342 - $_[$k[--$j]] = _C8; //#9342 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9345 - $k[$j++] = 'sval'; //#9344 - $k[$j++] = $_.sval; //#9344 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9344 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9344 - $_.ncr(); //#9344 - var _CN = $k[--$j]; //#9344 - var _CO = $k[--$j]; //#9344 - $_[$k[--$j]] = $f(_CO - _CN); //#9344 - } //#9344 - if ($f($_.el - $_.bar) > 2) { //#9354 - $_.lval = 0; //#9347 - for (var _CY = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CX = $f($_.mw + 1); _CY >= _CX; _CY -= 1) { //#9351 - $k[$j++] = $f(($f($f($_.nm - _CY) - $_.ew)) - 1); //#9349 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9349 - $_.ncr(); //#9349 - $_.lval = $f($k[--$j] + $_.lval); //#9350 - } //#9350 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9352 - } else { //#9354 - if ($f($_.nm - $_.ew) > $_.mw) { //#9354 - $_.sval = $f($_.sval - 1); //#9354 - } //#9354 - } //#9354 - $_.val = $f($_.val - $_.sval); //#9356 - if ($_.val < 0) { //#9357 - break; //#9357 - } //#9357 - $_.ew = $_.ew + 1; //#9358 - var _Cs = $_.bar; //#9359 - $_.mask = $_.mask & (~((_Cs < 0 ? 1 >>> -_Cs : 1 << _Cs))); //#9359 - } //#9359 - $_.val = $f($_.val + $_.sval); //#9361 - $_.nm = $f($_.nm - $_.ew); //#9362 - $put($_.out, $_.bar, $_.ew); //#9363 - } //#9363 - $put($_.out, $f($_.el - 1), $_.nm); //#9365 - $k[$j++] = $_.out; //#9366 - }; //#9366 - if (!bwipp_databarexpanded.__9377__) { //#9377 - $_ = Object.create($_); //#9377 - $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9376 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9376 - bwipp_databarexpanded.__9377__ = 1; //#9376 - $_ = Object.getPrototypeOf($_); //#9376 - } //#9376 - $_.dxw = $a($_.datalen); //#9379 - for (var _DA = 0, _D9 = $_.datalen - 1; _DA <= _D9; _DA += 1) { //#9420 - $_.x = _DA; //#9383 - $_.d = $geti($_.binval, $_.x * 12, 12); //#9385 - $k[$j++] = 'd'; //#9386 - $k[$j++] = 0; //#9386 - for (var _DE = 0; _DE <= 11; _DE += 1) { //#9386 - $_.j = _DE; //#9386 - var _DJ = $k[--$j]; //#9386 - $k[$j++] = $f(_DJ + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9386 - } //#9386 - var _DK = $k[--$j]; //#9386 - $_[$k[--$j]] = _DK; //#9386 - $_.j = 0; //#9388 - for (;;) { //#9398 - if ($le($_.d, $get($_.tab174, $_.j))) { //#9396 - var _DS = $geti($_.tab174, $_.j + 1, 7); //#9390 - for (var _DT = 0, _DU = _DS.length; _DT < _DU; _DT++) { //#9390 - $k[$j++] = $get(_DS, _DT); //#9390 - } //#9390 - $_.dte = $k[--$j]; //#9391 - $_.dto = $k[--$j]; //#9391 - $_.dmwe = $k[--$j]; //#9392 - $_.dmwo = $k[--$j]; //#9392 - $_.dele = $k[--$j]; //#9393 - $_.delo = $k[--$j]; //#9393 - $_.dgs = $k[--$j]; //#9394 - break; //#9395 - } //#9395 - $_.j = $_.j + 8; //#9397 - } //#9397 - $k[$j++] = 'dwo'; //#9400 - $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9400 - $k[$j++] = $_.delo; //#9400 - $k[$j++] = $_.dmwo; //#9400 - $k[$j++] = 4; //#9400 - $k[$j++] = true; //#9400 - $_.getRSSwidths(); //#9400 - var _Dj = $k[--$j]; //#9400 - $_[$k[--$j]] = _Dj; //#9400 - $k[$j++] = 'dwe'; //#9401 - $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9401 - $k[$j++] = $_.dele; //#9401 - $k[$j++] = $_.dmwe; //#9401 - $k[$j++] = 4; //#9401 - $k[$j++] = false; //#9401 - $_.getRSSwidths(); //#9401 - var _Dq = $k[--$j]; //#9401 - $_[$k[--$j]] = _Dq; //#9401 - $_.dw = $a(8); //#9403 - if (($_.x % 2) == 0) { //#9414 - for (var _Du = 0; _Du <= 3; _Du += 1) { //#9409 - $_.j = _Du; //#9406 - $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9407 - $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9408 - } //#9408 - } else { //#9414 - for (var _E5 = 0; _E5 <= 3; _E5 += 1) { //#9415 - $_.j = _E5; //#9412 - $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9413 - $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9414 - } //#9414 - } //#9414 - $put($_.dxw, $_.x, $_.dw); //#9418 - } //#9418 - if (!bwipp_databarexpanded.__9444__) { //#9444 - $_ = Object.create($_); //#9444 - $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9430 - $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9443 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9443 - bwipp_databarexpanded.__9444__ = 1; //#9443 - $_ = Object.getPrototypeOf($_); //#9443 - } //#9443 - $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9446 - $_.fxw = $a($_.seq.length); //#9447 - for (var _Ed = 0, _Ec = $_.seq.length - 1; _Ed <= _Ec; _Ed += 1) { //#9451 - $_.x = _Ed; //#9449 - $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9450 - } //#9450 - if (!bwipp_databarexpanded.__9480__) { //#9480 - $_ = Object.create($_); //#9480 - $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9479 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9479 - bwipp_databarexpanded.__9480__ = 1; //#9479 - $_ = Object.getPrototypeOf($_); //#9479 - } //#9479 - $k[$j++] = Infinity; //#9483 - $forall($_.seq, function() { //#9483 - $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9483 - }); //#9483 - var _Er = $a(); //#9483 - $_.checkweightseq = $geti(_Er, 8, _Er.length - 8); //#9484 - $k[$j++] = Infinity; //#9487 - var _Et = $_.dxw; //#9487 - for (var _Eu = 0, _Ev = _Et.length; _Eu < _Ev; _Eu++) { //#9487 - $forall($get(_Et, _Eu)); //#9487 - } //#9487 - $_.widths = $a(); //#9487 - $_.checksum = 0; //#9490 - for (var _F0 = 0, _Ez = $_.widths.length - 1; _F0 <= _Ez; _F0 += 1) { //#9494 - $_.i = _F0; //#9492 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9493 - } //#9493 - $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9495 - $_.i = 0; //#9497 - for (;;) { //#9507 - if ($_.checksum <= $get($_.tab174, $_.i)) { //#9505 - var _FG = $geti($_.tab174, $_.i + 1, 7); //#9499 - for (var _FH = 0, _FI = _FG.length; _FH < _FI; _FH++) { //#9499 - $k[$j++] = $get(_FG, _FH); //#9499 - } //#9499 - $_.cte = $k[--$j]; //#9500 - $_.cto = $k[--$j]; //#9500 - $_.cmwe = $k[--$j]; //#9501 - $_.cmwo = $k[--$j]; //#9501 - $_.cele = $k[--$j]; //#9502 - $_.celo = $k[--$j]; //#9502 - $_.cgs = $k[--$j]; //#9503 - break; //#9504 - } //#9504 - $_.i = $_.i + 8; //#9506 - } //#9506 - $k[$j++] = 'cwo'; //#9509 - $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9509 - $k[$j++] = $_.celo; //#9509 - $k[$j++] = $_.cmwo; //#9509 - $k[$j++] = 4; //#9509 - $k[$j++] = true; //#9509 - $_.getRSSwidths(); //#9509 - var _FX = $k[--$j]; //#9509 - $_[$k[--$j]] = _FX; //#9509 - $k[$j++] = 'cwe'; //#9510 - $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9510 - $k[$j++] = $_.cele; //#9510 - $k[$j++] = $_.cmwe; //#9510 - $k[$j++] = 4; //#9510 - $k[$j++] = false; //#9510 - $_.getRSSwidths(); //#9510 - var _Fe = $k[--$j]; //#9510 - $_[$k[--$j]] = _Fe; //#9510 - $_.cw = $a(8); //#9512 - for (var _Fh = 0; _Fh <= 3; _Fh += 1) { //#9517 - $_.i = _Fh; //#9514 - $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9515 - $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9516 - } //#9516 - var _Fs = $a(22); //#9519 - $put(_Fs, 0, $_.cw); //#9520 - $puti(_Fs, 1, $_.dxw); //#9520 - $_.dxw = $geti(_Fs, 0, $_.datalen + 1); //#9521 - $_.datalen = $_.dxw.length; //#9522 - $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9525 - $_.numrows = $_.rows.length; //#9526 - for (var _G4 = 0, _G3 = $_.numrows - 1; _G4 <= _G3; _G4 += 1) { //#9541 - $_.r = _G4; //#9528 - $k[$j++] = Infinity; //#9529 - if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9530 - $k[$j++] = 0; //#9530 - } //#9530 - $k[$j++] = 1; //#9538 - $k[$j++] = 1; //#9538 - for (var _G9 = 0, _G8 = $_.segments - 1; _G9 <= _G8; _G9 += 1) { //#9538 - $_.pos = _G9 + ($_.r * $_.segments); //#9533 - if ($_.pos < $_.datalen) { //#9537 - $forall($get($_.dxw, $_.pos)); //#9535 - if (($_.pos % 2) == 0) { //#9536 - $forall($get($_.fxw, ~~($_.pos / 2))); //#9536 - } //#9536 - } //#9536 - } //#9536 - var _GL = $counttomark() + 2; //#9540 - $k[$j++] = 1; //#9540 - $k[$j++] = 1; //#9540 - $astore($a(_GL)); //#9540 - $put($_.rows, $_.r, $k[--$j]); //#9540 - $j--; //#9540 - } //#9540 - if ($ne($_.format, "expandedstacked")) { //#9669 - var _GS = $get($_.rows, 0); //#9546 - $_.sbs = $geti(_GS, 1, _GS.length - 1); //#9546 - $k[$j++] = Infinity; //#9555 - $k[$j++] = 1; //#9554 - for (var _GW = 0, _GV = $_.datalen - 1; _GW <= _GV; _GW += 1) { //#9554 - $_.i = _GW; //#9551 - $forall($get($_.dxw, $_.i)); //#9552 - if (($_.i % 2) == 0) { //#9553 - $forall($get($_.fxw, ~~($_.i / 2))); //#9553 - } //#9553 - } //#9553 - $k[$j++] = 1; //#9555 - $k[$j++] = 1; //#9555 - $_.sbs = $a(); //#9555 - delete $_.options["parse"]; //#9558 - $k[$j++] = Infinity; //#9565 - var _Gg = $_.sbs; //#9562 - $k[$j++] = Infinity; //#9563 - for (var _Gi = 0, _Gj = ~~(($_.sbs.length + 1) / 2); _Gi < _Gj; _Gi++) { //#9563 - $k[$j++] = $_.height; //#9563 - } //#9563 - var _Gl = $a(); //#9563 - $k[$j++] = Infinity; //#9564 - for (var _Gn = 0, _Go = ~~(($_.sbs.length + 1) / 2); _Gn < _Go; _Gn++) { //#9564 - $k[$j++] = 0; //#9564 - } //#9564 - var _Gp = $a(); //#9564 - $k[$j++] = 'ren'; //#9565 - $k[$j++] = bwipp_renlinear; //#9565 - $k[$j++] = 'sbs'; //#9565 - $k[$j++] = _Gg; //#9565 - $k[$j++] = 'bhs'; //#9565 - $k[$j++] = _Gl; //#9565 - $k[$j++] = 'bbs'; //#9565 - $k[$j++] = _Gp; //#9565 - $k[$j++] = 'opt'; //#9565 - $k[$j++] = $_.options; //#9565 - var _Gr = $d(); //#9565 - $k[$j++] = _Gr; //#9568 - if (!$_.dontdraw) { //#9568 - bwipp_renlinear(); //#9568 - } //#9568 - } else { //#9669 - $_.seps = $a($_.numrows); //#9572 - for (var _Gx = 0, _Gw = $_.numrows - 1; _Gx <= _Gw; _Gx += 1) { //#9628 - $_.r = _Gx; //#9575 - $_.row = $get($_.rows, $_.r); //#9576 - $k[$j++] = Infinity; //#9579 - for (var _H3 = 0, _H2 = $_.row.length - 1; _H3 <= _H2; _H3 += 2) { //#9584 - $_.i = _H3; //#9581 - for (var _H7 = 0, _H8 = $get($_.row, $_.i); _H7 < _H8; _H7++) { //#9582 - $k[$j++] = 0; //#9582 - } //#9582 - if ($_.i < ($_.row.length - 1)) { //#9583 - for (var _HE = 0, _HF = $get($_.row, $_.i + 1); _HE < _HF; _HE++) { //#9583 - $k[$j++] = 1; //#9583 - } //#9583 - } //#9583 - } //#9583 - $astore($a($counttomark())); //#9585 - $_.row = $k[--$j]; //#9585 - $j--; //#9585 - $k[$j++] = Infinity; //#9588 - $forall($_.row, function() { //#9588 - var _HK = $k[--$j]; //#9588 - $k[$j++] = $f(1 - _HK); //#9588 - }); //#9588 - $_.sep = $a(); //#9588 - $k[$j++] = Infinity; //#9591 - for (var _HO = 19, _HN = $_.row.length - 13; _HO <= _HN; _HO += 98) { //#9590 - $k[$j++] = _HO; //#9590 - } //#9590 - for (var _HR = 68, _HQ = $_.row.length - 13; _HR <= _HQ; _HR += 98) { //#9591 - $k[$j++] = _HR; //#9591 - } //#9591 - $_.finderpos = $a(); //#9591 - var _HT = $_.finderpos; //#9593 - for (var _HU = 0, _HV = _HT.length; _HU < _HV; _HU++) { //#9607 - var _HW = $get(_HT, _HU); //#9607 - for (var _HY = _HW, _HX = $f(_HW + 14); _HY <= _HX; _HY += 1) { //#9606 - $_.i = _HY; //#9595 - if ($get($_.row, $_.i) == 0) { //#9603 - if ($get($_.row, $_.i - 1) == 1) { //#9600 - $k[$j++] = 1; //#9598 - } else { //#9600 - var _Hi = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9600 - $k[$j++] = _Hi; //#9600 - } //#9600 - } else { //#9603 - $k[$j++] = 0; //#9603 - } //#9603 - $put($_.sep, $_.i, $k[--$j]); //#9605 - } //#9605 - } //#9605 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9608 - $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9609 - if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9623 - if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9621 - $k[$j++] = Infinity; //#9615 - $k[$j++] = 0; //#9615 - $aload($_.row); //#9615 - $_.row = $a(); //#9615 - $k[$j++] = Infinity; //#9616 - $k[$j++] = 0; //#9616 - $aload($_.sep); //#9616 - $_.sep = $a(); //#9616 - } else { //#9621 - for (var _I4 = $_.row.length - 1; _I4 >= 0; _I4 -= 1) { //#9618 - $k[$j++] = $get($_.row, _I4); //#9618 - } //#9618 - $astore($_.row); //#9619 - $j--; //#9619 - for (var _I9 = $_.sep.length - 1; _I9 >= 0; _I9 -= 1) { //#9620 - $k[$j++] = $get($_.sep, _I9); //#9620 - } //#9620 - $astore($_.sep); //#9621 - $j--; //#9621 - } //#9621 - } //#9621 - $put($_.rows, $_.r, $_.row); //#9625 - $put($_.seps, $_.r, $_.sep); //#9626 - } //#9626 - $_.pixx = $get($_.rows, 0).length; //#9631 - $k[$j++] = Infinity; //#9632 - for (var _IM = 0, _IN = $_.pixx; _IM < _IN; _IM++) { //#9632 - $k[$j++] = 0; //#9632 - } //#9632 - var _IO = $a(); //#9632 - $puti(_IO, 0, $get($_.rows, $_.numrows - 1)); //#9632 - $put($_.rows, $_.numrows - 1, _IO); //#9633 - $k[$j++] = Infinity; //#9634 - for (var _IV = 0, _IW = $_.pixx; _IV < _IW; _IV++) { //#9634 - $k[$j++] = 0; //#9634 - } //#9634 - var _IX = $a(); //#9634 - $puti(_IX, 0, $get($_.seps, $_.numrows - 1)); //#9634 - $put($_.seps, $_.numrows - 1, _IX); //#9635 - $k[$j++] = Infinity; //#9638 - for (var _Ie = 0, _If = (~~($_.pixx / 2)) + 1; _Ie < _If; _Ie++) { //#9638 - $k[$j++] = 0; //#9638 - $k[$j++] = 1; //#9638 - } //#9638 - $_.sep = $geti($a(), 0, $_.pixx); //#9638 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9639 - $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9640 - $k[$j++] = Infinity; //#9652 - for (var _Iq = 0, _Ip = $_.numrows - 1; _Iq <= _Ip; _Iq += 1) { //#9654 - $_.r = _Iq; //#9645 - if ($_.r != 0) { //#9648 - $aload($get($_.seps, $_.r)); //#9647 - } //#9647 - for (var _Iw = 0, _Ix = $_.barxmult; _Iw < _Ix; _Iw++) { //#9649 - $aload($get($_.rows, $_.r)); //#9649 - } //#9649 - if ($_.r != ($_.numrows - 1)) { //#9653 - $aload($get($_.seps, $_.r)); //#9651 - $aload($_.sep); //#9652 + $_.oe = $k[--$j]; //#9484 + $_.el = $k[--$j]; //#9485 + $_.mw = $k[--$j]; //#9486 + $_.nm = $k[--$j]; //#9487 + $_.val = $k[--$j]; //#9488 + $_.out = $a($_.el); //#9489 + $_.mask = 0; //#9490 + for (var _C3 = 0, _C2 = $f($_.el - 2); _C3 <= _C2; _C3 += 1) { //#9517 + $_.bar = _C3; //#9492 + $_.ew = 1; //#9493 + var _C5 = $_.bar; //#9494 + $_.mask = $_.mask | ((_C5 < 0 ? 1 >>> -_C5 : 1 << _C5)); //#9494 + for (;;) { //#9513 + $k[$j++] = 'sval'; //#9495 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9495 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9495 + $_.ncr(); //#9495 + var _CA = $k[--$j]; //#9495 + $_[$k[--$j]] = _CA; //#9495 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9498 + $k[$j++] = 'sval'; //#9497 + $k[$j++] = $_.sval; //#9497 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9497 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9497 + $_.ncr(); //#9497 + var _CP = $k[--$j]; //#9497 + var _CQ = $k[--$j]; //#9497 + $_[$k[--$j]] = $f(_CQ - _CP); //#9497 + } //#9497 + if ($f($_.el - $_.bar) > 2) { //#9507 + $_.lval = 0; //#9500 + for (var _Ca = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CZ = $f($_.mw + 1); _Ca >= _CZ; _Ca -= 1) { //#9504 + $k[$j++] = $f(($f($f($_.nm - _Ca) - $_.ew)) - 1); //#9502 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9502 + $_.ncr(); //#9502 + $_.lval = $f($k[--$j] + $_.lval); //#9503 + } //#9503 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9505 + } else { //#9507 + if ($f($_.nm - $_.ew) > $_.mw) { //#9507 + $_.sval = $f($_.sval - 1); //#9507 + } //#9507 + } //#9507 + $_.val = $f($_.val - $_.sval); //#9509 + if ($_.val < 0) { //#9510 + break; //#9510 + } //#9510 + $_.ew = $_.ew + 1; //#9511 + var _Cu = $_.bar; //#9512 + $_.mask = $_.mask & (~((_Cu < 0 ? 1 >>> -_Cu : 1 << _Cu))); //#9512 + } //#9512 + $_.val = $f($_.val + $_.sval); //#9514 + $_.nm = $f($_.nm - $_.ew); //#9515 + $put($_.out, $_.bar, $_.ew); //#9516 + } //#9516 + $put($_.out, $f($_.el - 1), $_.nm); //#9518 + $k[$j++] = $_.out; //#9519 + }; //#9519 + if (!bwipp_databarexpanded.__9530__) { //#9530 + $_ = Object.create($_); //#9530 + $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9529 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9529 + bwipp_databarexpanded.__9530__ = 1; //#9529 + $_ = Object.getPrototypeOf($_); //#9529 + } //#9529 + $_.dxw = $a($_.datalen); //#9532 + for (var _DC = 0, _DB = $_.datalen - 1; _DC <= _DB; _DC += 1) { //#9573 + $_.x = _DC; //#9536 + $_.d = $geti($_.binval, $_.x * 12, 12); //#9538 + $k[$j++] = 'd'; //#9539 + $k[$j++] = 0; //#9539 + for (var _DG = 0; _DG <= 11; _DG += 1) { //#9539 + $_.j = _DG; //#9539 + var _DL = $k[--$j]; //#9539 + $k[$j++] = $f(_DL + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9539 + } //#9539 + var _DM = $k[--$j]; //#9539 + $_[$k[--$j]] = _DM; //#9539 + $_.j = 0; //#9541 + for (;;) { //#9551 + if ($le($_.d, $get($_.tab174, $_.j))) { //#9549 + var _DU = $geti($_.tab174, $_.j + 1, 7); //#9543 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#9543 + $k[$j++] = $get(_DU, _DV); //#9543 + } //#9543 + $_.dte = $k[--$j]; //#9544 + $_.dto = $k[--$j]; //#9544 + $_.dmwe = $k[--$j]; //#9545 + $_.dmwo = $k[--$j]; //#9545 + $_.dele = $k[--$j]; //#9546 + $_.delo = $k[--$j]; //#9546 + $_.dgs = $k[--$j]; //#9547 + break; //#9548 + } //#9548 + $_.j = $_.j + 8; //#9550 + } //#9550 + $k[$j++] = 'dwo'; //#9553 + $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9553 + $k[$j++] = $_.delo; //#9553 + $k[$j++] = $_.dmwo; //#9553 + $k[$j++] = 4; //#9553 + $k[$j++] = true; //#9553 + $_.getRSSwidths(); //#9553 + var _Dl = $k[--$j]; //#9553 + $_[$k[--$j]] = _Dl; //#9553 + $k[$j++] = 'dwe'; //#9554 + $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9554 + $k[$j++] = $_.dele; //#9554 + $k[$j++] = $_.dmwe; //#9554 + $k[$j++] = 4; //#9554 + $k[$j++] = false; //#9554 + $_.getRSSwidths(); //#9554 + var _Ds = $k[--$j]; //#9554 + $_[$k[--$j]] = _Ds; //#9554 + $_.dw = $a(8); //#9556 + if (($_.x % 2) == 0) { //#9567 + for (var _Dw = 0; _Dw <= 3; _Dw += 1) { //#9562 + $_.j = _Dw; //#9559 + $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9560 + $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9561 + } //#9561 + } else { //#9567 + for (var _E7 = 0; _E7 <= 3; _E7 += 1) { //#9568 + $_.j = _E7; //#9565 + $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9566 + $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9567 + } //#9567 + } //#9567 + $put($_.dxw, $_.x, $_.dw); //#9571 + } //#9571 + if (!bwipp_databarexpanded.__9597__) { //#9597 + $_ = Object.create($_); //#9597 + $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9583 + $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9596 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9596 + bwipp_databarexpanded.__9597__ = 1; //#9596 + $_ = Object.getPrototypeOf($_); //#9596 + } //#9596 + $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9599 + $_.fxw = $a($_.seq.length); //#9600 + for (var _Ef = 0, _Ee = $_.seq.length - 1; _Ef <= _Ee; _Ef += 1) { //#9604 + $_.x = _Ef; //#9602 + $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9603 + } //#9603 + if (!bwipp_databarexpanded.__9633__) { //#9633 + $_ = Object.create($_); //#9633 + $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9632 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9632 + bwipp_databarexpanded.__9633__ = 1; //#9632 + $_ = Object.getPrototypeOf($_); //#9632 + } //#9632 + $k[$j++] = Infinity; //#9635 + $forall($_.seq, function() { //#9636 + $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9636 + }); //#9636 + var _Et = $a(); //#9636 + $_.checkweightseq = $geti(_Et, 8, _Et.length - 8); //#9637 + $k[$j++] = Infinity; //#9639 + var _Ev = $_.dxw; //#9640 + for (var _Ew = 0, _Ex = _Ev.length; _Ew < _Ex; _Ew++) { //#9640 + $forall($get(_Ev, _Ew)); //#9640 + } //#9640 + $_.widths = $a(); //#9640 + $_.checksum = 0; //#9643 + for (var _F2 = 0, _F1 = $_.widths.length - 1; _F2 <= _F1; _F2 += 1) { //#9647 + $_.i = _F2; //#9645 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9646 + } //#9646 + $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9648 + $_.i = 0; //#9650 + for (;;) { //#9660 + if ($_.checksum <= $get($_.tab174, $_.i)) { //#9658 + var _FI = $geti($_.tab174, $_.i + 1, 7); //#9652 + for (var _FJ = 0, _FK = _FI.length; _FJ < _FK; _FJ++) { //#9652 + $k[$j++] = $get(_FI, _FJ); //#9652 } //#9652 - } //#9652 - $_.pixs = $a(); //#9652 - delete $_.options["parse"]; //#9657 + $_.cte = $k[--$j]; //#9653 + $_.cto = $k[--$j]; //#9653 + $_.cmwe = $k[--$j]; //#9654 + $_.cmwo = $k[--$j]; //#9654 + $_.cele = $k[--$j]; //#9655 + $_.celo = $k[--$j]; //#9655 + $_.cgs = $k[--$j]; //#9656 + break; //#9657 + } //#9657 + $_.i = $_.i + 8; //#9659 + } //#9659 + $k[$j++] = 'cwo'; //#9662 + $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9662 + $k[$j++] = $_.celo; //#9662 + $k[$j++] = $_.cmwo; //#9662 + $k[$j++] = 4; //#9662 + $k[$j++] = true; //#9662 + $_.getRSSwidths(); //#9662 + var _FZ = $k[--$j]; //#9662 + $_[$k[--$j]] = _FZ; //#9662 + $k[$j++] = 'cwe'; //#9663 + $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9663 + $k[$j++] = $_.cele; //#9663 + $k[$j++] = $_.cmwe; //#9663 + $k[$j++] = 4; //#9663 + $k[$j++] = false; //#9663 + $_.getRSSwidths(); //#9663 + var _Fg = $k[--$j]; //#9663 + $_[$k[--$j]] = _Fg; //#9663 + $_.cw = $a(8); //#9665 + for (var _Fj = 0; _Fj <= 3; _Fj += 1) { //#9670 + $_.i = _Fj; //#9667 + $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9668 + $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9669 + } //#9669 + var _Fu = $a(22); //#9672 + $put(_Fu, 0, $_.cw); //#9673 + $puti(_Fu, 1, $_.dxw); //#9673 + $_.dxw = $geti(_Fu, 0, $_.datalen + 1); //#9674 + $_.datalen = $_.dxw.length; //#9675 + $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9678 + $_.numrows = $_.rows.length; //#9679 + for (var _G6 = 0, _G5 = $_.numrows - 1; _G6 <= _G5; _G6 += 1) { //#9694 + $_.r = _G6; //#9681 + $k[$j++] = Infinity; //#9682 + if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9683 + $k[$j++] = 0; //#9683 + } //#9683 + $k[$j++] = 1; //#9691 + $k[$j++] = 1; //#9691 + for (var _GB = 0, _GA = $_.segments - 1; _GB <= _GA; _GB += 1) { //#9691 + $_.pos = _GB + ($_.r * $_.segments); //#9686 + if ($_.pos < $_.datalen) { //#9690 + $forall($get($_.dxw, $_.pos)); //#9688 + if (($_.pos % 2) == 0) { //#9689 + $forall($get($_.fxw, ~~($_.pos / 2))); //#9689 + } //#9689 + } //#9689 + } //#9689 + var _GN = $counttomark() + 2; //#9693 + $k[$j++] = 1; //#9693 + $k[$j++] = 1; //#9693 + $astore($a(_GN)); //#9693 + $put($_.rows, $_.r, $k[--$j]); //#9693 + $j--; //#9693 + } //#9693 + if ($ne($_.format, "expandedstacked")) { //#9826 + var _GU = $get($_.rows, 0); //#9699 + $_.sbs = $geti(_GU, 1, _GU.length - 1); //#9699 + $k[$j++] = Infinity; //#9701 + $k[$j++] = 1; //#9707 + for (var _GY = 0, _GX = $_.datalen - 1; _GY <= _GX; _GY += 1) { //#9707 + $_.i = _GY; //#9704 + $forall($get($_.dxw, $_.i)); //#9705 + if (($_.i % 2) == 0) { //#9706 + $forall($get($_.fxw, ~~($_.i / 2))); //#9706 + } //#9706 + } //#9706 + $k[$j++] = 1; //#9708 + $k[$j++] = 1; //#9708 + $_.sbs = $a(); //#9708 + $k[$j++] = Infinity; //#9711 + var _Gh = $_.sbs; //#9713 + $k[$j++] = Infinity; //#9714 + for (var _Gj = 0, _Gk = ~~(($_.sbs.length + 1) / 2); _Gj < _Gk; _Gj++) { //#9714 + $k[$j++] = $_.height; //#9714 + } //#9714 + var _Gm = $a(); //#9714 + $k[$j++] = Infinity; //#9715 + for (var _Go = 0, _Gp = ~~(($_.sbs.length + 1) / 2); _Go < _Gp; _Go++) { //#9715 + $k[$j++] = 0; //#9715 + } //#9715 + var _Gq = $a(); //#9715 + $k[$j++] = 'ren'; //#9720 + $k[$j++] = bwipp_renlinear; //#9720 + $k[$j++] = 'sbs'; //#9720 + $k[$j++] = _Gh; //#9720 + $k[$j++] = 'bhs'; //#9720 + $k[$j++] = _Gm; //#9720 + $k[$j++] = 'bbs'; //#9720 + $k[$j++] = _Gq; //#9720 + $k[$j++] = 'borderleft'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderright'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'bordertop'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderbottom'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'opt'; //#9720 + $k[$j++] = $_.options; //#9720 + var _Gs = $d(); //#9720 + $k[$j++] = _Gs; //#9723 + if (!$_.dontdraw) { //#9723 + bwipp_renlinear(); //#9723 + } //#9723 + } else { //#9826 + $_.seps = $a($_.numrows); //#9727 + for (var _Gy = 0, _Gx = $_.numrows - 1; _Gy <= _Gx; _Gy += 1) { //#9783 + $_.r = _Gy; //#9730 + $_.row = $get($_.rows, $_.r); //#9731 + $k[$j++] = Infinity; //#9734 + for (var _H4 = 0, _H3 = $_.row.length - 1; _H4 <= _H3; _H4 += 2) { //#9739 + $_.i = _H4; //#9736 + for (var _H8 = 0, _H9 = $get($_.row, $_.i); _H8 < _H9; _H8++) { //#9737 + $k[$j++] = 0; //#9737 + } //#9737 + if ($_.i < ($_.row.length - 1)) { //#9738 + for (var _HF = 0, _HG = $get($_.row, $_.i + 1); _HF < _HG; _HF++) { //#9738 + $k[$j++] = 1; //#9738 + } //#9738 + } //#9738 + } //#9738 + $astore($a($counttomark())); //#9740 + $_.row = $k[--$j]; //#9740 + $j--; //#9740 + $k[$j++] = Infinity; //#9743 + $forall($_.row, function() { //#9743 + var _HL = $k[--$j]; //#9743 + $k[$j++] = $f(1 - _HL); //#9743 + }); //#9743 + $_.sep = $a(); //#9743 + $k[$j++] = Infinity; //#9744 + for (var _HP = 19, _HO = $_.row.length - 13; _HP <= _HO; _HP += 98) { //#9745 + $k[$j++] = _HP; //#9745 + } //#9745 + for (var _HS = 68, _HR = $_.row.length - 13; _HS <= _HR; _HS += 98) { //#9746 + $k[$j++] = _HS; //#9746 + } //#9746 + $_.finderpos = $a(); //#9746 + var _HU = $_.finderpos; //#9748 + for (var _HV = 0, _HW = _HU.length; _HV < _HW; _HV++) { //#9762 + var _HX = $get(_HU, _HV); //#9762 + for (var _HZ = _HX, _HY = $f(_HX + 14); _HZ <= _HY; _HZ += 1) { //#9761 + $_.i = _HZ; //#9750 + if ($get($_.row, $_.i) == 0) { //#9758 + if ($get($_.row, $_.i - 1) == 1) { //#9755 + $k[$j++] = 1; //#9753 + } else { //#9755 + var _Hj = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9755 + $k[$j++] = _Hj; //#9755 + } //#9755 + } else { //#9758 + $k[$j++] = 0; //#9758 + } //#9758 + $put($_.sep, $_.i, $k[--$j]); //#9760 + } //#9760 + } //#9760 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9763 + $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9764 + if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9778 + if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9776 + $k[$j++] = Infinity; //#9770 + $k[$j++] = 0; //#9770 + $aload($_.row); //#9770 + $_.row = $a(); //#9770 + $k[$j++] = Infinity; //#9771 + $k[$j++] = 0; //#9771 + $aload($_.sep); //#9771 + $_.sep = $a(); //#9771 + } else { //#9776 + for (var _I5 = $_.row.length - 1; _I5 >= 0; _I5 -= 1) { //#9773 + $k[$j++] = $get($_.row, _I5); //#9773 + } //#9773 + $astore($_.row); //#9774 + $j--; //#9774 + for (var _IA = $_.sep.length - 1; _IA >= 0; _IA -= 1) { //#9775 + $k[$j++] = $get($_.sep, _IA); //#9775 + } //#9775 + $astore($_.sep); //#9776 + $j--; //#9776 + } //#9776 + } //#9776 + $put($_.rows, $_.r, $_.row); //#9780 + $put($_.seps, $_.r, $_.sep); //#9781 + } //#9781 + $_.pixx = $get($_.rows, 0).length; //#9786 + $k[$j++] = Infinity; //#9787 + for (var _IN = 0, _IO = $_.pixx; _IN < _IO; _IN++) { //#9787 + $k[$j++] = 0; //#9787 + } //#9787 + var _IP = $a(); //#9787 + $puti(_IP, 0, $get($_.rows, $_.numrows - 1)); //#9787 + $put($_.rows, $_.numrows - 1, _IP); //#9788 + $k[$j++] = Infinity; //#9789 + for (var _IW = 0, _IX = $_.pixx; _IW < _IX; _IW++) { //#9789 + $k[$j++] = 0; //#9789 + } //#9789 + var _IY = $a(); //#9789 + $puti(_IY, 0, $get($_.seps, $_.numrows - 1)); //#9789 + $put($_.seps, $_.numrows - 1, _IY); //#9790 + $k[$j++] = Infinity; //#9793 + for (var _If = 0, _Ig = (~~($_.pixx / 2)) + 1; _If < _Ig; _If++) { //#9793 + $k[$j++] = 0; //#9793 + $k[$j++] = 1; //#9793 + } //#9793 + $_.sep = $geti($a(), 0, $_.pixx); //#9793 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9794 + $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9795 + $k[$j++] = Infinity; //#9798 + for (var _Ir = 0, _Iq = $_.numrows - 1; _Ir <= _Iq; _Ir += 1) { //#9809 + $_.r = _Ir; //#9800 + if ($_.r != 0) { //#9803 + $aload($get($_.seps, $_.r)); //#9802 + } //#9802 + for (var _Ix = 0, _Iy = $_.barxmult; _Ix < _Iy; _Ix++) { //#9804 + $aload($get($_.rows, $_.r)); //#9804 + } //#9804 + if ($_.r != ($_.numrows - 1)) { //#9808 + $aload($get($_.seps, $_.r)); //#9806 + $aload($_.sep); //#9807 + } //#9807 + } //#9807 + $_.pixs = $a(); //#9807 var _JH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -13387,4085 +13662,4133 @@ function bwipp_databarexpanded() { ["pixy", ~~($_.pixs.length / $_.pixx)], ["height", (~~($_.pixs.length / $_.pixx)) / 72], ["width", $_.pixx / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#9666 - $k[$j++] = _JH; //#9669 - if (!$_.dontdraw) { //#9669 - bwipp_renmatrix(); //#9669 - } //#9669 - } //#9669 - $_ = Object.getPrototypeOf($_); //#9673 - $_ = Object.getPrototypeOf($_); //#9675 -} - + ]); //#9823 + $k[$j++] = _JH; //#9826 + if (!$_.dontdraw) { //#9826 + bwipp_renmatrix(); //#9826 + } //#9826 + } //#9826 + $_ = Object.getPrototypeOf($_); //#9830 + $_ = Object.getPrototypeOf($_); //#9832 +} //bwipp_databarexpanded function bwipp_databarexpandedstacked() { - $_ = Object.create($_); //#9704 - $_.dontdraw = false; //#9707 - $k[$j++] = $_; //#9709 - bwipp_processoptions(); //#9709 - $_.options = $k[--$j]; //#9709 - $_.barcode = $k[--$j]; //#9710 - $put($_.options, "dontdraw", true); //#9713 - $put($_.options, "format", "expandedstacked"); //#9714 - $k[$j++] = 'args'; //#9716 - $k[$j++] = $_.barcode; //#9716 - $k[$j++] = $_.options; //#9716 - bwipp_databarexpanded(); //#9716 - var _6 = $k[--$j]; //#9716 - $_[$k[--$j]] = _6; //#9716 - $put($_.args, "opt", $_.options); //#9718 - $k[$j++] = $_.args; //#9721 - if (!$_.dontdraw) { //#9721 - bwipp_renmatrix(); //#9721 - } //#9721 - $_ = Object.getPrototypeOf($_); //#9723 -} - + $_ = Object.create($_); //#9861 + $_.dontdraw = false; //#9864 + $k[$j++] = $_; //#9866 + bwipp_processoptions(); //#9866 + $_.options = $k[--$j]; //#9866 + $_.barcode = $k[--$j]; //#9867 + $put($_.options, "dontdraw", true); //#9870 + $put($_.options, "format", "expandedstacked"); //#9871 + $k[$j++] = 'args'; //#9873 + $k[$j++] = $_.barcode; //#9873 + $k[$j++] = $_.options; //#9873 + bwipp_databarexpanded(); //#9873 + var _6 = $k[--$j]; //#9873 + $_[$k[--$j]] = _6; //#9873 + $put($_.args, "opt", $_.options); //#9875 + $k[$j++] = $_.args; //#9878 + if (!$_.dontdraw) { //#9878 + bwipp_renmatrix(); //#9878 + } //#9878 + $_ = Object.getPrototypeOf($_); //#9880 +} //bwipp_databarexpandedstacked function bwipp_gs1northamericancoupon() { - $_ = Object.create($_); //#9753 - $_.dontdraw = false; //#9756 - $_.includetext = false; //#9757 - $_.coupontextfont = "OCR-B"; //#9758 - $_.coupontextsize = 9; //#9759 - $_.coupontextxoffset = null; //#9760 - $_.coupontextyoffset = null; //#9761 - $_.parse = false; //#9762 - $_.dontlint = false; //#9763 - $_.lintreqs = true; //#9764 - $k[$j++] = $_; //#9766 - bwipp_processoptions(); //#9766 - $_.options = $k[--$j]; //#9766 - $_.barcode = $k[--$j]; //#9767 - $k[$j++] = $_.barcode; //#9769 - $k[$j++] = 'ai'; //#9769 - bwipp_gs1process(); //#9769 - $j--; //#9770 - $_.vals = $k[--$j]; //#9771 - $_.ais = $k[--$j]; //#9772 - if ($_.ais.length != 1) { //#9777 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9776'; //#9776 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9776 - bwipp_raiseerror(); //#9776 - } //#9776 - if ($ne($get($_.ais, 0), "8110")) { //#9780 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9779'; //#9779 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9779 - bwipp_raiseerror(); //#9779 - } //#9779 - $_.val = $get($_.vals, 0); //#9783 - $_.vli = $f($get($_.val, 0) - 48); //#9784 - if (($_.vli < 0) || ($_.vli > 6)) { //#9787 - $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9786'; //#9786 - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9786 - bwipp_raiseerror(); //#9786 - } //#9786 - $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9788 - $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9789 - $_.coupontext = $s($_.gcp.length + 7); //#9790 - $puti($_.coupontext, 0, $_.gcp); //#9791 - $puti($_.coupontext, $_.gcp.length, "-"); //#9792 - $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9793 - delete $_.options["parse"]; //#9796 - $put($_.options, "dontdraw", true); //#9797 - $k[$j++] = 'args'; //#9799 - $k[$j++] = $_.barcode; //#9799 - $k[$j++] = $_.options; //#9799 - bwipp_databarexpandedstacked(); //#9799 - var _X = $k[--$j]; //#9799 - $_[$k[--$j]] = _X; //#9799 - if ($_.includetext) { //#9818 - if ($eq($_.coupontextxoffset, null)) { //#9805 - $_.coupontextxoffset = 0; //#9804 - } //#9804 - if ($eq($_.coupontextyoffset, null)) { //#9808 - $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9807 - } //#9807 - var _f = $get($_.args, "txt") !== undefined; //#9809 - if (_f) { //#9816 - $_.txt = $get($_.args, "txt"); //#9810 - $_.newtxt = $a($_.txt.length + 1); //#9811 - $puti($_.newtxt, 0, $_.txt); //#9812 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9813 - $put($_.args, "txt", $_.newtxt); //#9814 - } else { //#9816 - $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9816 - } //#9816 - } //#9816 - $put($_.args, "opt", $_.options); //#9820 - $k[$j++] = $_.args; //#9823 - if (!$_.dontdraw) { //#9823 - bwipp_renmatrix(); //#9823 - } //#9823 - $_ = Object.getPrototypeOf($_); //#9825 -} - + $_ = Object.create($_); //#9910 + $_.dontdraw = false; //#9913 + $_.includetext = false; //#9914 + $_.coupontextfont = "OCR-B"; //#9915 + $_.coupontextsize = 9; //#9916 + $_.coupontextxoffset = null; //#9917 + $_.coupontextyoffset = null; //#9918 + $_.parse = false; //#9919 + $_.dontlint = false; //#9920 + $_.lintreqs = true; //#9921 + $k[$j++] = $_; //#9923 + bwipp_processoptions(); //#9923 + $_.options = $k[--$j]; //#9923 + $_.barcode = $k[--$j]; //#9924 + $k[$j++] = $_.barcode; //#9926 + $k[$j++] = 'ai'; //#9926 + bwipp_gs1process(); //#9926 + $j--; //#9927 + $_.vals = $k[--$j]; //#9928 + $_.ais = $k[--$j]; //#9929 + if ($_.ais.length != 1) { //#9934 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9933'; //#9933 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9933 + bwipp_raiseerror(); //#9933 + } //#9933 + if ($ne($get($_.ais, 0), "8110")) { //#9937 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9936'; //#9936 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9936 + bwipp_raiseerror(); //#9936 + } //#9936 + $_.val = $get($_.vals, 0); //#9940 + $_.vli = $f($get($_.val, 0) - 48); //#9941 + if (($_.vli < 0) || ($_.vli > 6)) { //#9944 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9943'; //#9943 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9943 + bwipp_raiseerror(); //#9943 + } //#9943 + $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9945 + $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9946 + $_.coupontext = $s($_.gcp.length + 7); //#9947 + $puti($_.coupontext, 0, $_.gcp); //#9948 + $puti($_.coupontext, $_.gcp.length, "-"); //#9949 + $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9950 + $put($_.options, "dontdraw", true); //#9953 + $k[$j++] = 'args'; //#9955 + $k[$j++] = $_.barcode; //#9955 + $k[$j++] = $_.options; //#9955 + bwipp_databarexpandedstacked(); //#9955 + var _W = $k[--$j]; //#9955 + $_[$k[--$j]] = _W; //#9955 + if ($_.includetext) { //#9974 + if ($eq($_.coupontextxoffset, null)) { //#9961 + $_.coupontextxoffset = 0; //#9960 + } //#9960 + if ($eq($_.coupontextyoffset, null)) { //#9964 + $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9963 + } //#9963 + var _e = $get($_.args, "txt") !== undefined; //#9965 + if (_e) { //#9972 + $_.txt = $get($_.args, "txt"); //#9966 + $_.newtxt = $a($_.txt.length + 1); //#9967 + $puti($_.newtxt, 0, $_.txt); //#9968 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9969 + $put($_.args, "txt", $_.newtxt); //#9970 + } else { //#9972 + $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9972 + } //#9972 + } //#9972 + $put($_.args, "opt", $_.options); //#9976 + $k[$j++] = $_.args; //#9979 + if (!$_.dontdraw) { //#9979 + bwipp_renmatrix(); //#9979 + } //#9979 + $_ = Object.getPrototypeOf($_); //#9981 +} //bwipp_gs1northamericancoupon function bwipp_pharmacode() { - $_ = Object.create($_); //#9853 - $_.dontdraw = false; //#9856 - $_.height = (8 * 2.835) / 72; //#9857 - $_.nwidth = 0.5 * 2.835; //#9858 - $_.wwidth = 1.5 * 2.835; //#9859 - $_.swidth = 1 * 2.835; //#9860 - $k[$j++] = $_; //#9862 - bwipp_processoptions(); //#9862 - $_.options = $k[--$j]; //#9862 - $_.barcode = $k[--$j]; //#9863 - if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#9868 - $k[$j++] = 'bwipp.pharmacodeBadLength#9867'; //#9867 - $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#9867 - bwipp_raiseerror(); //#9867 - } //#9867 - $forall($_.barcode, function() { //#9873 - var _5 = $k[--$j]; //#9870 - if ((_5 < 48) || (_5 > 57)) { //#9872 - $k[$j++] = 'bwipp.pharmacodeBadCharacter#9871'; //#9871 - $k[$j++] = "Pharmacode must contain only digits"; //#9871 - bwipp_raiseerror(); //#9871 - } //#9871 - }); //#9871 - var _7 = $cvi($_.barcode); //#9874 - if ((_7 < 3) || (_7 > 131070)) { //#9876 - $k[$j++] = 'bwipp.pharmacodeBadValue#9875'; //#9875 - $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#9875 - bwipp_raiseerror(); //#9875 - } //#9875 - $_.txt = $a($_.barcode.length); //#9879 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9883 - $_.i = _C; //#9881 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9882 - } //#9882 - $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#9886 - $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#9887 - $_.barlen = $_.barcode.length; //#9889 - $_.sbs = $a($_.barlen * 2); //#9890 - for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#9901 - $_.i = _U; //#9893 - $_.enc = $geti($_.barcode, $_.i, 1); //#9894 - if ($eq($_.enc, "0")) { //#9898 - $put($_.sbs, $_.i * 2, $_.nwidth); //#9896 - } else { //#9898 - $put($_.sbs, $_.i * 2, $_.wwidth); //#9898 - } //#9898 - $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#9900 - } //#9900 - $k[$j++] = Infinity; //#9911 - var _i = $_.sbs; //#9906 - $k[$j++] = Infinity; //#9907 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#9907 - $k[$j++] = $_.height; //#9907 - } //#9907 - var _n = $a(); //#9907 - $k[$j++] = Infinity; //#9908 - for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#9908 - $k[$j++] = 0; //#9908 - } //#9908 - var _r = $a(); //#9908 - $k[$j++] = 'ren'; //#9911 - $k[$j++] = bwipp_renlinear; //#9911 - $k[$j++] = 'sbs'; //#9911 - $k[$j++] = _i; //#9911 - $k[$j++] = 'bhs'; //#9911 - $k[$j++] = _n; //#9911 - $k[$j++] = 'bbs'; //#9911 - $k[$j++] = _r; //#9911 - $k[$j++] = 'txt'; //#9911 - $k[$j++] = $_.txt; //#9911 - $k[$j++] = 'textxalign'; //#9911 - $k[$j++] = "center"; //#9911 - $k[$j++] = 'opt'; //#9911 - $k[$j++] = $_.options; //#9911 - var _u = $d(); //#9911 - $k[$j++] = _u; //#9914 - if (!$_.dontdraw) { //#9914 - bwipp_renlinear(); //#9914 - } //#9914 - $_ = Object.getPrototypeOf($_); //#9916 -} - + $_ = Object.create($_); //#10009 + $_.dontdraw = false; //#10012 + $_.height = (8 * 2.835) / 72; //#10013 + $_.nwidth = 0.5 * 2.835; //#10014 + $_.wwidth = 1.5 * 2.835; //#10015 + $_.swidth = 1 * 2.835; //#10016 + $k[$j++] = $_; //#10018 + bwipp_processoptions(); //#10018 + $_.options = $k[--$j]; //#10018 + $_.barcode = $k[--$j]; //#10019 + if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#10024 + $k[$j++] = 'bwipp.pharmacodeBadLength#10023'; //#10023 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#10023 + bwipp_raiseerror(); //#10023 + } //#10023 + $forall($_.barcode, function() { //#10029 + var _5 = $k[--$j]; //#10026 + if ((_5 < 48) || (_5 > 57)) { //#10028 + $k[$j++] = 'bwipp.pharmacodeBadCharacter#10027'; //#10027 + $k[$j++] = "Pharmacode must contain only digits"; //#10027 + bwipp_raiseerror(); //#10027 + } //#10027 + }); //#10027 + var _7 = $cvi($_.barcode); //#10030 + if ((_7 < 3) || (_7 > 131070)) { //#10032 + $k[$j++] = 'bwipp.pharmacodeBadValue#10031'; //#10031 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#10031 + bwipp_raiseerror(); //#10031 + } //#10031 + $_.txt = $a($_.barcode.length); //#10035 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10039 + $_.i = _C; //#10037 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10038 + } //#10038 + $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#10042 + $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#10043 + $_.barlen = $_.barcode.length; //#10045 + $_.sbs = $a($_.barlen * 2); //#10046 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10057 + $_.i = _U; //#10049 + $_.enc = $geti($_.barcode, $_.i, 1); //#10050 + if ($eq($_.enc, "0")) { //#10054 + $put($_.sbs, $_.i * 2, $_.nwidth); //#10052 + } else { //#10054 + $put($_.sbs, $_.i * 2, $_.wwidth); //#10054 + } //#10054 + $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#10056 + } //#10056 + $k[$j++] = Infinity; //#10060 + var _i = $_.sbs; //#10062 + $k[$j++] = Infinity; //#10063 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#10063 + $k[$j++] = $_.height; //#10063 + } //#10063 + var _n = $a(); //#10063 + $k[$j++] = Infinity; //#10064 + for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#10064 + $k[$j++] = 0; //#10064 + } //#10064 + var _r = $a(); //#10064 + $k[$j++] = 'ren'; //#10067 + $k[$j++] = bwipp_renlinear; //#10067 + $k[$j++] = 'sbs'; //#10067 + $k[$j++] = _i; //#10067 + $k[$j++] = 'bhs'; //#10067 + $k[$j++] = _n; //#10067 + $k[$j++] = 'bbs'; //#10067 + $k[$j++] = _r; //#10067 + $k[$j++] = 'txt'; //#10067 + $k[$j++] = $_.txt; //#10067 + $k[$j++] = 'textxalign'; //#10067 + $k[$j++] = "center"; //#10067 + $k[$j++] = 'opt'; //#10067 + $k[$j++] = $_.options; //#10067 + var _u = $d(); //#10067 + $k[$j++] = _u; //#10070 + if (!$_.dontdraw) { //#10070 + bwipp_renlinear(); //#10070 + } //#10070 + $_ = Object.getPrototypeOf($_); //#10072 +} //bwipp_pharmacode function bwipp_pharmacode2() { - $_ = Object.create($_); //#9944 - $_.dontdraw = false; //#9947 - $_.includetext = false; //#9948 - $_.height = 4; //#9949 - $k[$j++] = $_; //#9951 - bwipp_processoptions(); //#9951 - $_.options = $k[--$j]; //#9951 - $_.barcode = $k[--$j]; //#9952 - if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#9957 - $k[$j++] = 'bwipp.pharmacode2BadLength#9956'; //#9956 - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#9956 - bwipp_raiseerror(); //#9956 - } //#9956 - $forall($_.barcode, function() { //#9962 - var _5 = $k[--$j]; //#9959 - if ((_5 < 48) || (_5 > 57)) { //#9961 - $k[$j++] = 'bwipp.pharmacode2badCharacter#9960'; //#9960 - $k[$j++] = "Two-track Pharmacode must contain only digits"; //#9960 - bwipp_raiseerror(); //#9960 - } //#9960 - }); //#9960 - var _7 = $cvi($_.barcode); //#9963 - if ((_7 < 4) || (_7 > 64570080)) { //#9965 - $k[$j++] = 'bwipp.pharmacode2badValue#9964'; //#9964 - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#9964 - bwipp_raiseerror(); //#9964 - } //#9964 - $_.txt = $a($_.barcode.length); //#9968 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9972 - $_.i = _C; //#9970 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9971 - } //#9971 - $_.encstr = $s(16); //#9974 - $_.sbs = $a(32); //#9975 - $_.bar = (1 / 25.4) * $_.height; //#9976 - $_.spc = (1 / 25.4) * 72; //#9977 - $_.i = 15; //#9980 - $_.val = $cvi($_.barcode); //#9981 - for (;;) { //#9988 - if ($_.val == 0) { //#9983 - break; //#9983 - } //#9983 - var _P = $_.val % 3; //#9984 - $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#9985 - $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#9986 - $_.i = $_.i - 1; //#9987 - } //#9987 - $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#9989 - $_.bhs = $a($_.encstr.length); //#9992 - $_.bbs = $a($_.encstr.length); //#9993 - for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#9999 - $_.i = _i; //#9995 - var _l = $get($_.encstr, $_.i); //#9996 - $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#9997 - $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#9998 - } //#9998 - $k[$j++] = Infinity; //#10010 - var _w = $_.bhs; //#10004 - var _x = $_.bbs; //#10005 - $k[$j++] = Infinity; //#10006 - for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10006 - $k[$j++] = $_.spc; //#10006 - } //#10006 - var _12 = $a(); //#10006 - $k[$j++] = 'ren'; //#10010 - $k[$j++] = bwipp_renlinear; //#10010 - $k[$j++] = 'bhs'; //#10010 - $k[$j++] = _w; //#10010 - $k[$j++] = 'bbs'; //#10010 - $k[$j++] = _x; //#10010 - $k[$j++] = 'sbs'; //#10010 - $k[$j++] = _12; //#10010 - $k[$j++] = 'txt'; //#10010 - $k[$j++] = $_.txt; //#10010 - $k[$j++] = 'textxalign'; //#10010 - $k[$j++] = "center"; //#10010 - $k[$j++] = 'textyoffset'; //#10010 - $k[$j++] = 4; //#10010 - $k[$j++] = 'opt'; //#10010 - $k[$j++] = $_.options; //#10010 - var _15 = $d(); //#10010 - $k[$j++] = _15; //#10013 - if (!$_.dontdraw) { //#10013 - bwipp_renlinear(); //#10013 - } //#10013 - $_ = Object.getPrototypeOf($_); //#10015 -} - + $_ = Object.create($_); //#10100 + $_.dontdraw = false; //#10103 + $_.includetext = false; //#10104 + $_.height = 4; //#10105 + $k[$j++] = $_; //#10107 + bwipp_processoptions(); //#10107 + $_.options = $k[--$j]; //#10107 + $_.barcode = $k[--$j]; //#10108 + if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#10113 + $k[$j++] = 'bwipp.pharmacode2BadLength#10112'; //#10112 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#10112 + bwipp_raiseerror(); //#10112 + } //#10112 + $forall($_.barcode, function() { //#10118 + var _5 = $k[--$j]; //#10115 + if ((_5 < 48) || (_5 > 57)) { //#10117 + $k[$j++] = 'bwipp.pharmacode2badCharacter#10116'; //#10116 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#10116 + bwipp_raiseerror(); //#10116 + } //#10116 + }); //#10116 + var _7 = $cvi($_.barcode); //#10119 + if ((_7 < 4) || (_7 > 64570080)) { //#10121 + $k[$j++] = 'bwipp.pharmacode2badValue#10120'; //#10120 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#10120 + bwipp_raiseerror(); //#10120 + } //#10120 + $_.txt = $a($_.barcode.length); //#10124 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10128 + $_.i = _C; //#10126 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10127 + } //#10127 + $_.encstr = $s(16); //#10130 + $_.sbs = $a(32); //#10131 + $_.bar = (1 / 25.4) * $_.height; //#10132 + $_.spc = (1 / 25.4) * 72; //#10133 + $_.i = 15; //#10136 + $_.val = $cvi($_.barcode); //#10137 + for (;;) { //#10144 + if ($_.val == 0) { //#10139 + break; //#10139 + } //#10139 + var _P = $_.val % 3; //#10140 + $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#10141 + $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#10142 + $_.i = $_.i - 1; //#10143 + } //#10143 + $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#10145 + $_.bhs = $a($_.encstr.length); //#10148 + $_.bbs = $a($_.encstr.length); //#10149 + for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#10155 + $_.i = _i; //#10151 + var _l = $get($_.encstr, $_.i); //#10152 + $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#10153 + $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#10154 + } //#10154 + $k[$j++] = Infinity; //#10158 + var _w = $_.bhs; //#10160 + var _x = $_.bbs; //#10161 + $k[$j++] = Infinity; //#10162 + for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10162 + $k[$j++] = $_.spc; //#10162 + } //#10162 + var _12 = $a(); //#10162 + $k[$j++] = 'ren'; //#10166 + $k[$j++] = bwipp_renlinear; //#10166 + $k[$j++] = 'bhs'; //#10166 + $k[$j++] = _w; //#10166 + $k[$j++] = 'bbs'; //#10166 + $k[$j++] = _x; //#10166 + $k[$j++] = 'sbs'; //#10166 + $k[$j++] = _12; //#10166 + $k[$j++] = 'txt'; //#10166 + $k[$j++] = $_.txt; //#10166 + $k[$j++] = 'textxalign'; //#10166 + $k[$j++] = "center"; //#10166 + $k[$j++] = 'textyoffset'; //#10166 + $k[$j++] = 4; //#10166 + $k[$j++] = 'opt'; //#10166 + $k[$j++] = $_.options; //#10166 + var _15 = $d(); //#10166 + $k[$j++] = _15; //#10169 + if (!$_.dontdraw) { //#10169 + bwipp_renlinear(); //#10169 + } //#10169 + $_ = Object.getPrototypeOf($_); //#10171 +} //bwipp_pharmacode2 function bwipp_code2of5() { - $_ = Object.create($_); //#10045 - $_.dontdraw = false; //#10048 - $_.includecheck = false; //#10049 - $_.validatecheck = false; //#10050 - $_.includetext = false; //#10051 - $_.includecheckintext = false; //#10052 - $_.textfont = "OCR-B"; //#10053 - $_.textsize = 10; //#10054 - $_.textyoffset = -8; //#10055 - $_.height = 1; //#10056 - $_.version = "industrial"; //#10057 - $k[$j++] = $_; //#10059 - bwipp_processoptions(); //#10059 - $_.options = $k[--$j]; //#10059 - $_.barcode = $k[--$j]; //#10060 - bwipp_loadctx(bwipp_code2of5) //#10062 - $forall($_.barcode, function() { //#10069 - var _3 = $k[--$j]; //#10066 - if ((_3 < 48) || (_3 > 57)) { //#10068 - $k[$j++] = 'bwipp.code2of5badCharacter#10067'; //#10067 - $k[$j++] = "Code 25 must contain only digits"; //#10067 - bwipp_raiseerror(); //#10067 - } //#10067 - }); //#10067 - $k[$j++] = 'barlen'; //#10071 - $k[$j++] = $_.barcode.length; //#10071 - if ($_.validatecheck) { //#10071 - var _6 = $k[--$j]; //#10071 - $k[$j++] = $f(_6 - 1); //#10071 - } //#10071 - var _7 = $k[--$j]; //#10071 - $_[$k[--$j]] = _7; //#10071 - $_.checksum = 0; //#10073 - for (var _B = 0, _A = $f($_.barlen - 1); _B <= _A; _B += 1) { //#10077 - $_.i = _B; //#10075 - $k[$j++] = 'checksum'; //#10076 - $k[$j++] = $_.checksum; //#10076 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10076 - if (($f($_.barlen - $_.i) % 2) != 0) { //#10076 - var _I = $k[--$j]; //#10076 - $k[$j++] = _I * 3; //#10076 - } //#10076 - var _J = $k[--$j]; //#10076 - var _K = $k[--$j]; //#10076 - $_[$k[--$j]] = $f(_K + _J); //#10076 - } //#10076 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10078 - if ($_.validatecheck) { //#10085 - if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10082 - $k[$j++] = 'bwipp.code2of5badCheckDigit#10081'; //#10081 - $k[$j++] = "Incorrect Code 25 check digit provided"; //#10081 - bwipp_raiseerror(); //#10081 - } //#10081 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10083 - $_.includecheck = true; //#10084 - } //#10084 - if (!bwipp_code2of5.__10113__) { //#10113 - $_ = Object.create($_); //#10113 - var _a = new Map([ + $_ = Object.create($_); //#10201 + $_.dontdraw = false; //#10204 + $_.includecheck = false; //#10205 + $_.validatecheck = false; //#10206 + $_.includetext = false; //#10207 + $_.includecheckintext = false; //#10208 + $_.textfont = "OCR-B"; //#10209 + $_.textsize = 10; //#10210 + $_.textyoffset = -8; //#10211 + $_.height = 1; //#10212 + $_.version = "industrial"; //#10213 + $k[$j++] = $_; //#10215 + bwipp_processoptions(); //#10215 + $_.options = $k[--$j]; //#10215 + $_.barcode = $k[--$j]; //#10216 + if ($eq($_.barcode, "")) { //#10220 + $k[$j++] = 'bwipp.code2of5emptyData#10219'; //#10219 + $k[$j++] = "The data must not be empty"; //#10219 + bwipp_raiseerror(); //#10219 + } //#10219 + bwipp_loadctx(bwipp_code2of5) //#10222 + $forall($_.barcode, function() { //#10229 + var _4 = $k[--$j]; //#10226 + if ((_4 < 48) || (_4 > 57)) { //#10228 + $k[$j++] = 'bwipp.code2of5badCharacter#10227'; //#10227 + $k[$j++] = "Code 25 must contain only digits"; //#10227 + bwipp_raiseerror(); //#10227 + } //#10227 + }); //#10227 + $k[$j++] = 'barlen'; //#10231 + $k[$j++] = $_.barcode.length; //#10231 + if ($_.validatecheck) { //#10231 + var _7 = $k[--$j]; //#10231 + $k[$j++] = $f(_7 - 1); //#10231 + } //#10231 + var _8 = $k[--$j]; //#10231 + $_[$k[--$j]] = _8; //#10231 + $_.checksum = 0; //#10233 + for (var _C = 0, _B = $f($_.barlen - 1); _C <= _B; _C += 1) { //#10237 + $_.i = _C; //#10235 + $k[$j++] = 'checksum'; //#10236 + $k[$j++] = $_.checksum; //#10236 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10236 + if (($f($_.barlen - $_.i) % 2) != 0) { //#10236 + var _J = $k[--$j]; //#10236 + $k[$j++] = _J * 3; //#10236 + } //#10236 + var _K = $k[--$j]; //#10236 + var _L = $k[--$j]; //#10236 + $_[$k[--$j]] = $f(_L + _K); //#10236 + } //#10236 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10238 + if ($_.validatecheck) { //#10245 + if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10242 + $k[$j++] = 'bwipp.code2of5badCheckDigit#10241'; //#10241 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#10241 + bwipp_raiseerror(); //#10241 + } //#10241 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10243 + $_.includecheck = true; //#10244 + } //#10244 + if (!bwipp_code2of5.__10273__) { //#10273 + $_ = Object.create($_); //#10273 + var _b = new Map([ ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] - ]); //#10110 - $_.versions = _a; //#10112 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10112 - bwipp_code2of5.__10113__ = 1; //#10112 - $_ = Object.getPrototypeOf($_); //#10112 - } //#10112 - var _e = $get($_.versions, $_.version) !== undefined; //#10115 - if (!_e) { //#10117 - $k[$j++] = 'bwipp.code2of5badVersion#10116'; //#10116 - $k[$j++] = "Unrecognised Code 25 version"; //#10116 - bwipp_raiseerror(); //#10116 - } //#10116 - $_.encs = $get($_.versions, $_.version); //#10118 - $_.cs = $get($_.encs, 0).length; //#10120 - $k[$j++] = 'cw'; //#10121 - $k[$j++] = 0; //#10121 - $forall($get($_.encs, 0), function() { //#10121 - var _m = $k[--$j]; //#10121 - var _n = $k[--$j]; //#10121 - $k[$j++] = $f(_n + $f(_m - 48)); //#10121 - }); //#10121 - var _o = $k[--$j]; //#10121 - $_[$k[--$j]] = _o; //#10121 - $_.ss = $get($_.encs, 10).length; //#10122 - $k[$j++] = 'sw'; //#10123 - $k[$j++] = 0; //#10123 - $forall($get($_.encs, 10), function() { //#10123 - var _u = $k[--$j]; //#10123 - var _v = $k[--$j]; //#10123 - $k[$j++] = $f(_v + $f(_u - 48)); //#10123 - }); //#10123 - var _w = $k[--$j]; //#10123 - $_[$k[--$j]] = _w; //#10123 - $_.es = $get($_.encs, 11).length; //#10124 - if (!bwipp_code2of5.__10129__) { //#10129 - $_ = Object.create($_); //#10129 - $_.barchars = "0123456789"; //#10128 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10128 - bwipp_code2of5.__10129__ = 1; //#10128 - $_ = Object.getPrototypeOf($_); //#10128 - } //#10128 - $k[$j++] = 'sbs'; //#10131 - $k[$j++] = $_.barlen; //#10131 - if ($_.includecheck) { //#10131 - var _13 = $k[--$j]; //#10131 - $k[$j++] = $f(_13 + 1); //#10131 - } //#10131 - var _18 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10131 - $_[$k[--$j]] = _18; //#10131 - $k[$j++] = 'txt'; //#10132 - $k[$j++] = $_.barlen; //#10132 - if ($_.includecheck) { //#10132 - var _1C = $k[--$j]; //#10132 - $k[$j++] = $f(_1C + 1); //#10132 - } //#10132 - var _1E = $a($k[--$j]); //#10132 - $_[$k[--$j]] = _1E; //#10132 - $puti($_.sbs, 0, $get($_.encs, 10)); //#10135 - for (var _1L = 0, _1K = $f($_.barlen - 1); _1L <= _1K; _1L += 1) { //#10146 - $_.i = _1L; //#10137 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10139 - $j--; //#10140 - $_.indx = $k[--$j].length; //#10141 - $j -= 2; //#10142 - $_.enc = $get($_.encs, $_.indx); //#10143 - $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10144 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10145 - } //#10145 - if ($_.includecheck) { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10150 - $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10151 - if ($_.includecheckintext) { //#10155 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10153 - } else { //#10155 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10155 - } //#10155 - } else { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10158 - } //#10158 - $k[$j++] = Infinity; //#10170 - $k[$j++] = Infinity; //#10164 - $forall($_.sbs, function() { //#10164 - var _2T = $k[--$j]; //#10164 - $k[$j++] = $f(_2T - 48); //#10164 - }); //#10164 - var _2U = $a(); //#10164 - $k[$j++] = Infinity; //#10165 - for (var _2W = 0, _2X = ~~(($_.sbs.length + 1) / 2); _2W < _2X; _2W++) { //#10165 - $k[$j++] = $_.height; //#10165 - } //#10165 - var _2Z = $a(); //#10165 - $k[$j++] = Infinity; //#10166 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10166 - $k[$j++] = 0; //#10166 - } //#10166 - var _2d = $a(); //#10166 - $k[$j++] = 'ren'; //#10169 - $k[$j++] = bwipp_renlinear; //#10169 - $k[$j++] = 'sbs'; //#10169 - $k[$j++] = _2U; //#10169 - $k[$j++] = 'bhs'; //#10169 - $k[$j++] = _2Z; //#10169 - $k[$j++] = 'bbs'; //#10169 - $k[$j++] = _2d; //#10169 - if ($_.includetext) { //#10169 - $k[$j++] = 'txt'; //#10168 - $k[$j++] = $_.txt; //#10168 - } //#10168 - $k[$j++] = 'opt'; //#10170 - $k[$j++] = $_.options; //#10170 - var _2h = $d(); //#10170 - $k[$j++] = _2h; //#10173 - if (!$_.dontdraw) { //#10173 - bwipp_renlinear(); //#10173 - } //#10173 - $_ = Object.getPrototypeOf($_); //#10175 - $_ = Object.getPrototypeOf($_); //#10177 -} - + ]); //#10270 + $_.versions = _b; //#10272 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10272 + bwipp_code2of5.__10273__ = 1; //#10272 + $_ = Object.getPrototypeOf($_); //#10272 + } //#10272 + var _f = $get($_.versions, $_.version) !== undefined; //#10275 + if (!_f) { //#10277 + $k[$j++] = 'bwipp.code2of5badVersion#10276'; //#10276 + $k[$j++] = "Unrecognised Code 25 version"; //#10276 + bwipp_raiseerror(); //#10276 + } //#10276 + $_.encs = $get($_.versions, $_.version); //#10278 + $_.cs = $get($_.encs, 0).length; //#10280 + $k[$j++] = 'cw'; //#10281 + $k[$j++] = 0; //#10281 + $forall($get($_.encs, 0), function() { //#10281 + var _n = $k[--$j]; //#10281 + var _o = $k[--$j]; //#10281 + $k[$j++] = $f(_o + $f(_n - 48)); //#10281 + }); //#10281 + var _p = $k[--$j]; //#10281 + $_[$k[--$j]] = _p; //#10281 + $_.ss = $get($_.encs, 10).length; //#10282 + $k[$j++] = 'sw'; //#10283 + $k[$j++] = 0; //#10283 + $forall($get($_.encs, 10), function() { //#10283 + var _v = $k[--$j]; //#10283 + var _w = $k[--$j]; //#10283 + $k[$j++] = $f(_w + $f(_v - 48)); //#10283 + }); //#10283 + var _x = $k[--$j]; //#10283 + $_[$k[--$j]] = _x; //#10283 + var _10 = $get($_.encs, 11); //#10284 + $_.es = _10.length; //#10284 + if (!bwipp_code2of5.__10289__) { //#10289 + $_ = Object.create($_); //#10289 + $_.barchars = "0123456789"; //#10288 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10288 + bwipp_code2of5.__10289__ = 1; //#10288 + $_ = Object.getPrototypeOf($_); //#10288 + } //#10288 + $k[$j++] = 'sbs'; //#10291 + $k[$j++] = $_.barlen; //#10291 + if ($_.includecheck) { //#10291 + var _14 = $k[--$j]; //#10291 + $k[$j++] = $f(_14 + 1); //#10291 + } //#10291 + var _19 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10291 + $_[$k[--$j]] = _19; //#10291 + $k[$j++] = 'txt'; //#10292 + $k[$j++] = $_.barlen; //#10292 + if ($_.includecheck) { //#10292 + var _1D = $k[--$j]; //#10292 + $k[$j++] = $f(_1D + 1); //#10292 + } //#10292 + var _1F = $a($k[--$j]); //#10292 + $_[$k[--$j]] = _1F; //#10292 + $puti($_.sbs, 0, $get($_.encs, 10)); //#10295 + for (var _1M = 0, _1L = $f($_.barlen - 1); _1M <= _1L; _1M += 1) { //#10306 + $_.i = _1M; //#10297 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10299 + $j--; //#10300 + $_.indx = $k[--$j].length; //#10301 + $j -= 2; //#10302 + $_.enc = $get($_.encs, $_.indx); //#10303 + $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10304 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10305 + } //#10305 + if ($_.includecheck) { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10310 + $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10311 + if ($_.includecheckintext) { //#10315 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10313 + } else { //#10315 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10315 + } //#10315 + } else { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10318 + } //#10318 + $k[$j++] = Infinity; //#10322 + $k[$j++] = Infinity; //#10324 + $forall($_.sbs, function() { //#10324 + var _2U = $k[--$j]; //#10324 + $k[$j++] = $f(_2U - 48); //#10324 + }); //#10324 + var _2V = $a(); //#10324 + $k[$j++] = Infinity; //#10325 + for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#10325 + $k[$j++] = $_.height; //#10325 + } //#10325 + var _2a = $a(); //#10325 + $k[$j++] = Infinity; //#10326 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10326 + $k[$j++] = 0; //#10326 + } //#10326 + var _2e = $a(); //#10326 + $k[$j++] = 'ren'; //#10329 + $k[$j++] = bwipp_renlinear; //#10329 + $k[$j++] = 'sbs'; //#10329 + $k[$j++] = _2V; //#10329 + $k[$j++] = 'bhs'; //#10329 + $k[$j++] = _2a; //#10329 + $k[$j++] = 'bbs'; //#10329 + $k[$j++] = _2e; //#10329 + if ($_.includetext) { //#10329 + $k[$j++] = 'txt'; //#10328 + $k[$j++] = $_.txt; //#10328 + } //#10328 + $k[$j++] = 'opt'; //#10330 + $k[$j++] = $_.options; //#10330 + var _2i = $d(); //#10330 + $k[$j++] = _2i; //#10333 + if (!$_.dontdraw) { //#10333 + bwipp_renlinear(); //#10333 + } //#10333 + $_ = Object.getPrototypeOf($_); //#10335 + $_ = Object.getPrototypeOf($_); //#10337 +} //bwipp_code2of5 function bwipp_industrial2of5() { - $_ = Object.create($_); //#10206 - $_.dontdraw = false; //#10209 - $k[$j++] = $_; //#10211 - bwipp_processoptions(); //#10211 - $_.options = $k[--$j]; //#10211 - $_.barcode = $k[--$j]; //#10212 - $put($_.options, "dontdraw", true); //#10215 - $put($_.options, "version", "industrial"); //#10216 - $k[$j++] = 'args'; //#10218 - $k[$j++] = $_.barcode; //#10218 - $k[$j++] = $_.options; //#10218 - bwipp_code2of5(); //#10218 - var _6 = $k[--$j]; //#10218 - $_[$k[--$j]] = _6; //#10218 - $put($_.args, "opt", $_.options); //#10220 - $k[$j++] = $_.args; //#10223 - if (!$_.dontdraw) { //#10223 - bwipp_renlinear(); //#10223 - } //#10223 - $_ = Object.getPrototypeOf($_); //#10225 -} - + $_ = Object.create($_); //#10366 + $_.dontdraw = false; //#10369 + $k[$j++] = $_; //#10371 + bwipp_processoptions(); //#10371 + $_.options = $k[--$j]; //#10371 + $_.barcode = $k[--$j]; //#10372 + $put($_.options, "dontdraw", true); //#10375 + $put($_.options, "version", "industrial"); //#10376 + $k[$j++] = 'args'; //#10378 + $k[$j++] = $_.barcode; //#10378 + $k[$j++] = $_.options; //#10378 + bwipp_code2of5(); //#10378 + var _6 = $k[--$j]; //#10378 + $_[$k[--$j]] = _6; //#10378 + $put($_.args, "opt", $_.options); //#10380 + $k[$j++] = $_.args; //#10383 + if (!$_.dontdraw) { //#10383 + bwipp_renlinear(); //#10383 + } //#10383 + $_ = Object.getPrototypeOf($_); //#10385 +} //bwipp_industrial2of5 function bwipp_iata2of5() { - $_ = Object.create($_); //#10254 - $_.dontdraw = false; //#10257 - $k[$j++] = $_; //#10259 - bwipp_processoptions(); //#10259 - $_.options = $k[--$j]; //#10259 - $_.barcode = $k[--$j]; //#10260 - $put($_.options, "dontdraw", true); //#10263 - $put($_.options, "version", "iata"); //#10264 - $k[$j++] = 'args'; //#10266 - $k[$j++] = $_.barcode; //#10266 - $k[$j++] = $_.options; //#10266 - bwipp_code2of5(); //#10266 - var _6 = $k[--$j]; //#10266 - $_[$k[--$j]] = _6; //#10266 - $put($_.args, "opt", $_.options); //#10268 - $k[$j++] = $_.args; //#10271 - if (!$_.dontdraw) { //#10271 - bwipp_renlinear(); //#10271 - } //#10271 - $_ = Object.getPrototypeOf($_); //#10273 -} - + $_ = Object.create($_); //#10414 + $_.dontdraw = false; //#10417 + $k[$j++] = $_; //#10419 + bwipp_processoptions(); //#10419 + $_.options = $k[--$j]; //#10419 + $_.barcode = $k[--$j]; //#10420 + $put($_.options, "dontdraw", true); //#10423 + $put($_.options, "version", "iata"); //#10424 + $k[$j++] = 'args'; //#10426 + $k[$j++] = $_.barcode; //#10426 + $k[$j++] = $_.options; //#10426 + bwipp_code2of5(); //#10426 + var _6 = $k[--$j]; //#10426 + $_[$k[--$j]] = _6; //#10426 + $put($_.args, "opt", $_.options); //#10428 + $k[$j++] = $_.args; //#10431 + if (!$_.dontdraw) { //#10431 + bwipp_renlinear(); //#10431 + } //#10431 + $_ = Object.getPrototypeOf($_); //#10433 +} //bwipp_iata2of5 function bwipp_matrix2of5() { - $_ = Object.create($_); //#10302 - $_.dontdraw = false; //#10305 - $k[$j++] = $_; //#10307 - bwipp_processoptions(); //#10307 - $_.options = $k[--$j]; //#10307 - $_.barcode = $k[--$j]; //#10308 - $put($_.options, "dontdraw", true); //#10311 - $put($_.options, "version", "matrix"); //#10312 - $k[$j++] = 'args'; //#10314 - $k[$j++] = $_.barcode; //#10314 - $k[$j++] = $_.options; //#10314 - bwipp_code2of5(); //#10314 - var _6 = $k[--$j]; //#10314 - $_[$k[--$j]] = _6; //#10314 - $put($_.args, "opt", $_.options); //#10316 - $k[$j++] = $_.args; //#10319 - if (!$_.dontdraw) { //#10319 - bwipp_renlinear(); //#10319 - } //#10319 - $_ = Object.getPrototypeOf($_); //#10321 -} - + $_ = Object.create($_); //#10462 + $_.dontdraw = false; //#10465 + $k[$j++] = $_; //#10467 + bwipp_processoptions(); //#10467 + $_.options = $k[--$j]; //#10467 + $_.barcode = $k[--$j]; //#10468 + $put($_.options, "dontdraw", true); //#10471 + $put($_.options, "version", "matrix"); //#10472 + $k[$j++] = 'args'; //#10474 + $k[$j++] = $_.barcode; //#10474 + $k[$j++] = $_.options; //#10474 + bwipp_code2of5(); //#10474 + var _6 = $k[--$j]; //#10474 + $_[$k[--$j]] = _6; //#10474 + $put($_.args, "opt", $_.options); //#10476 + $k[$j++] = $_.args; //#10479 + if (!$_.dontdraw) { //#10479 + bwipp_renlinear(); //#10479 + } //#10479 + $_ = Object.getPrototypeOf($_); //#10481 +} //bwipp_matrix2of5 function bwipp_coop2of5() { - $_ = Object.create($_); //#10350 - $_.dontdraw = false; //#10353 - $k[$j++] = $_; //#10355 - bwipp_processoptions(); //#10355 - $_.options = $k[--$j]; //#10355 - $_.barcode = $k[--$j]; //#10356 - $put($_.options, "dontdraw", true); //#10359 - $put($_.options, "version", "coop"); //#10360 - $k[$j++] = 'args'; //#10362 - $k[$j++] = $_.barcode; //#10362 - $k[$j++] = $_.options; //#10362 - bwipp_code2of5(); //#10362 - var _6 = $k[--$j]; //#10362 - $_[$k[--$j]] = _6; //#10362 - $put($_.args, "opt", $_.options); //#10364 - $k[$j++] = $_.args; //#10367 - if (!$_.dontdraw) { //#10367 - bwipp_renlinear(); //#10367 - } //#10367 - $_ = Object.getPrototypeOf($_); //#10369 -} - + $_ = Object.create($_); //#10510 + $_.dontdraw = false; //#10513 + $k[$j++] = $_; //#10515 + bwipp_processoptions(); //#10515 + $_.options = $k[--$j]; //#10515 + $_.barcode = $k[--$j]; //#10516 + $put($_.options, "dontdraw", true); //#10519 + $put($_.options, "version", "coop"); //#10520 + $k[$j++] = 'args'; //#10522 + $k[$j++] = $_.barcode; //#10522 + $k[$j++] = $_.options; //#10522 + bwipp_code2of5(); //#10522 + var _6 = $k[--$j]; //#10522 + $_[$k[--$j]] = _6; //#10522 + $put($_.args, "opt", $_.options); //#10524 + $k[$j++] = $_.args; //#10527 + if (!$_.dontdraw) { //#10527 + bwipp_renlinear(); //#10527 + } //#10527 + $_ = Object.getPrototypeOf($_); //#10529 +} //bwipp_coop2of5 function bwipp_datalogic2of5() { - $_ = Object.create($_); //#10398 - $_.dontdraw = false; //#10401 - $k[$j++] = $_; //#10403 - bwipp_processoptions(); //#10403 - $_.options = $k[--$j]; //#10403 - $_.barcode = $k[--$j]; //#10404 - $put($_.options, "dontdraw", true); //#10407 - $put($_.options, "version", "datalogic"); //#10408 - $k[$j++] = 'args'; //#10410 - $k[$j++] = $_.barcode; //#10410 - $k[$j++] = $_.options; //#10410 - bwipp_code2of5(); //#10410 - var _6 = $k[--$j]; //#10410 - $_[$k[--$j]] = _6; //#10410 - $put($_.args, "opt", $_.options); //#10412 - $k[$j++] = $_.args; //#10415 - if (!$_.dontdraw) { //#10415 - bwipp_renlinear(); //#10415 - } //#10415 - $_ = Object.getPrototypeOf($_); //#10417 -} - + $_ = Object.create($_); //#10558 + $_.dontdraw = false; //#10561 + $k[$j++] = $_; //#10563 + bwipp_processoptions(); //#10563 + $_.options = $k[--$j]; //#10563 + $_.barcode = $k[--$j]; //#10564 + $put($_.options, "dontdraw", true); //#10567 + $put($_.options, "version", "datalogic"); //#10568 + $k[$j++] = 'args'; //#10570 + $k[$j++] = $_.barcode; //#10570 + $k[$j++] = $_.options; //#10570 + bwipp_code2of5(); //#10570 + var _6 = $k[--$j]; //#10570 + $_[$k[--$j]] = _6; //#10570 + $put($_.args, "opt", $_.options); //#10572 + $k[$j++] = $_.args; //#10575 + if (!$_.dontdraw) { //#10575 + bwipp_renlinear(); //#10575 + } //#10575 + $_ = Object.getPrototypeOf($_); //#10577 +} //bwipp_datalogic2of5 function bwipp_code11() { - $_ = Object.create($_); //#10447 - $_.dontdraw = false; //#10450 - $_.includecheck = false; //#10451 - $_.validatecheck = false; //#10452 - $_.includetext = false; //#10453 - $_.includecheckintext = false; //#10454 - $_.textfont = "OCR-B"; //#10455 - $_.textsize = 10; //#10456 - $_.textyoffset = -8; //#10457 - $_.height = 1; //#10458 - $k[$j++] = $_; //#10460 - bwipp_processoptions(); //#10460 - $_.options = $k[--$j]; //#10460 - var _1 = $k[--$j]; //#10461 - $_.barcode = _1; //#10461 - bwipp_loadctx(bwipp_code11) //#10463 - if (!bwipp_code11.__10477__) { //#10477 - $_ = Object.create($_); //#10477 - $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10471 - $_.barchars = "0123456789-"; //#10474 - $_.charvals = new Map; //#10475 - for (var _3 = 0; _3 <= 10; _3 += 1) { //#10476 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10476 - } //#10476 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10476 - bwipp_code11.__10477__ = 1; //#10476 - $_ = Object.getPrototypeOf($_); //#10476 - } //#10476 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10484 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10481 - if (!_E) { //#10483 - $k[$j++] = 'bwipp.code11badCharacter#10482'; //#10482 - $k[$j++] = "Code 11 must contain only digits and dashes"; //#10482 - bwipp_raiseerror(); //#10482 - } //#10482 - } //#10482 - $_.barlen = $_.barcode.length; //#10486 - if ($_.validatecheck) { //#10492 - if ($_.barlen == 11) { //#10490 - $k[$j++] = 'bwipp.code11badLength#10489'; //#10489 - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10489 - bwipp_raiseerror(); //#10489 - } //#10489 - var _K = ($_.barlen <= 10) ? 1 : 2; //#10491 - $_.barlen = $_.barlen - _K; //#10491 - } //#10491 - $k[$j++] = 'numchecks'; //#10494 - if ($_.includecheck || $_.validatecheck) { //#10494 - var _O = ($_.barlen >= 10) ? 2 : 1; //#10494 - $k[$j++] = _O; //#10494 - } else { //#10494 - $k[$j++] = 0; //#10494 - } //#10494 - var _P = $k[--$j]; //#10494 - $_[$k[--$j]] = _P; //#10494 - $_.checksum1 = 0; //#10495 - $_.checksum2 = 0; //#10495 - for (var _T = 0, _S = $_.barlen - 1; _T <= _S; _T += 1) { //#10501 - $_.i = _T; //#10497 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10498 - $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10499 - $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10500 - } //#10500 - $_.checksum1 = $_.checksum1 % 11; //#10502 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10503 - if ($_.validatecheck) { //#10517 - if ($_.numchecks == 1) { //#10512 - var _r = $get($_.barchars, $_.checksum1); //#10506 - if ($get($_.barcode, $_.barlen) != _r) { //#10508 - $k[$j++] = 'bwipp.code11badCheckDigit#10507'; //#10507 - $k[$j++] = "Incorrect Code 11 check digit provided"; //#10507 - bwipp_raiseerror(); //#10507 - } //#10507 - } else { //#10512 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10513 - $k[$j++] = 'bwipp.code11badCheckDigits#10512'; //#10512 - $k[$j++] = "Incorrect Code 11 check digits provided"; //#10512 - bwipp_raiseerror(); //#10512 - } //#10512 - } //#10512 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10515 - $_.includecheck = true; //#10516 - } //#10516 - $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10519 - $_.txt = $a($f($_.barlen + $_.numchecks)); //#10520 - $puti($_.sbs, 0, $get($_.encs, 11)); //#10523 - $_.xpos = 8; //#10525 - for (var _1I = 0, _1H = $_.barlen - 1; _1I <= _1H; _1I += 1) { //#10535 - $_.i = _1I; //#10527 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10528 - $_.enc = $get($_.encs, $_.indx); //#10529 - $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10530 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10531 - for (var _1e = 0; _1e <= 5; _1e += 1) { //#10534 - $_.xpos = $f($f($get($_.enc, _1e) - 48) + $_.xpos); //#10533 - } //#10533 - } //#10533 - if ($_.includecheck) { //#10564 - if ($_.barlen >= 10) { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10540 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10541 - if ($_.includecheckintext) { //#10551 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10543 - $_.enc = $get($_.encs, $_.checksum1); //#10544 - for (var _28 = 0; _28 <= 5; _28 += 1) { //#10547 - $_.xpos = $f($f($get($_.enc, _28) - 48) + $_.xpos); //#10546 - } //#10546 - $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10548 - } else { //#10551 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10550 - $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10551 - } //#10551 - $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10553 - } else { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10555 - if ($_.includecheckintext) { //#10559 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10557 - } else { //#10559 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10559 - } //#10559 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10561 - } //#10561 - } else { //#10564 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10564 - } //#10564 - $k[$j++] = Infinity; //#10576 - $k[$j++] = Infinity; //#10570 - var _39 = $_.sbs; //#10570 - for (var _3A = 0, _3B = _39.length; _3A < _3B; _3A++) { //#10570 - $k[$j++] = $get(_39, _3A) - 48; //#10570 - } //#10570 - var _3D = $a(); //#10570 - $k[$j++] = Infinity; //#10571 - for (var _3F = 0, _3G = ~~(($_.sbs.length + 1) / 2); _3F < _3G; _3F++) { //#10571 - $k[$j++] = $_.height; //#10571 - } //#10571 - var _3I = $a(); //#10571 - $k[$j++] = Infinity; //#10572 - for (var _3K = 0, _3L = ~~(($_.sbs.length + 1) / 2); _3K < _3L; _3K++) { //#10572 - $k[$j++] = 0; //#10572 - } //#10572 - var _3M = $a(); //#10572 - $k[$j++] = 'ren'; //#10575 - $k[$j++] = bwipp_renlinear; //#10575 - $k[$j++] = 'sbs'; //#10575 - $k[$j++] = _3D; //#10575 - $k[$j++] = 'bhs'; //#10575 - $k[$j++] = _3I; //#10575 - $k[$j++] = 'bbs'; //#10575 - $k[$j++] = _3M; //#10575 - if ($_.includetext) { //#10575 - $k[$j++] = 'txt'; //#10574 - $k[$j++] = $_.txt; //#10574 - } //#10574 - $k[$j++] = 'opt'; //#10576 - $k[$j++] = $_.options; //#10576 - var _3Q = $d(); //#10576 - $k[$j++] = _3Q; //#10579 - if (!$_.dontdraw) { //#10579 - bwipp_renlinear(); //#10579 - } //#10579 - $_ = Object.getPrototypeOf($_); //#10581 - $_ = Object.getPrototypeOf($_); //#10583 -} - -function bwipp_bc412() { - $_ = Object.create($_); //#10613 - $_.dontdraw = false; //#10616 - $_.includecheck = false; //#10617 - $_.validatecheck = false; //#10618 - $_.includetext = false; //#10619 - $_.includecheckintext = false; //#10620 - $_.includestartstop = false; //#10621 - $_.semi = false; //#10622 - $_.textfont = "OCR-B"; //#10623 - $_.textsize = 10; //#10624 - $_.textyoffset = -8; //#10625 - $_.height = 1; //#10626 - $k[$j++] = $_; //#10628 - bwipp_processoptions(); //#10628 - $_.options = $k[--$j]; //#10628 - $_.barcode = $k[--$j]; //#10629 - if ($_.semi) { //#10634 - $_.includestartstop = true; //#10633 - } //#10633 - bwipp_loadctx(bwipp_bc412) //#10636 - if (!bwipp_bc412.__10643__) { //#10643 - $_ = Object.create($_); //#10643 - $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10640 - $_.charvals = new Map; //#10641 - for (var _3 = 0; _3 <= 34; _3 += 1) { //#10642 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10642 - } //#10642 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10642 - bwipp_bc412.__10643__ = 1; //#10642 - $_ = Object.getPrototypeOf($_); //#10642 - } //#10642 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10650 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10647 - if (!_E) { //#10649 - $k[$j++] = 'bwipp.bc412badCharacter#10648'; //#10648 - $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10648 - bwipp_raiseerror(); //#10648 - } //#10648 - } //#10648 - if ($_.semi) { //#10706 - if ($_.validatecheck) { //#10660 - if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10657 - $k[$j++] = 'bwipp.bc412semivalidateBadLength#10656'; //#10656 - $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10656 - bwipp_raiseerror(); //#10656 - } //#10656 - } else { //#10660 - if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10661 - $k[$j++] = 'bwipp.bc412semiBadLength#10660'; //#10660 - $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10660 - bwipp_raiseerror(); //#10660 - } //#10660 - } //#10660 - $_.barlen = $_.barcode.length; //#10664 - if (!$_.validatecheck) { //#10672 - $_.barlen = $_.barlen + 1; //#10666 - $_.sbarcode = $s($_.barlen); //#10667 - $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10668 - $put($_.sbarcode, 1, 48); //#10669 - $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10670 - $_.barcode = $_.sbarcode; //#10671 - } //#10671 - $_.sumodd = 0; //#10673 - $_.sumeven = 0; //#10673 - for (var _b = 0, _a = $_.barlen - 1; _b <= _a; _b += 1) { //#10682 - $_.i = _b; //#10675 - $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10681 - if (($_.i % 2) == 0) { //#10680 - $_.sumodd = $f($k[--$j] + $_.sumodd); //#10678 - } else { //#10680 - $_.sumeven = $f($k[--$j] + $_.sumeven); //#10680 - } //#10680 - } //#10680 - $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10683 - if ($_.validatecheck) { //#10690 - if ($_.checksum != 0) { //#10687 - $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10686'; //#10686 - $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10686 - bwipp_raiseerror(); //#10686 - } //#10686 - } else { //#10690 - $_.checksum = ($_.checksum * 17) % 35; //#10689 - $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10690 - } //#10690 - } else { //#10706 - $k[$j++] = 'barlen'; //#10693 - $k[$j++] = $_.barcode.length; //#10693 - if ($_.validatecheck) { //#10693 - var _x = $k[--$j]; //#10693 - $k[$j++] = $f(_x - 1); //#10693 - } //#10693 - var _y = $k[--$j]; //#10693 - $_[$k[--$j]] = _y; //#10693 - $_.checksum = 0; //#10695 - for (var _12 = 0, _11 = $_.barlen - 1; _12 <= _11; _12 += 1) { //#10699 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _12, 1)) + $_.checksum); //#10698 - } //#10698 - $_.checksum = $_.checksum % 35; //#10700 - if ($_.validatecheck) { //#10707 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10704 - $k[$j++] = 'bwipp.bc412badCheckDigit#10703'; //#10703 - $k[$j++] = "Incorrect BC412 check digit provided"; //#10703 - bwipp_raiseerror(); //#10703 - } //#10703 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10705 - $_.includecheck = true; //#10706 - } //#10706 - } //#10706 - if (!bwipp_bc412.__10722__) { //#10722 - $_ = Object.create($_); //#10722 - $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10721 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10721 - bwipp_bc412.__10722__ = 1; //#10721 - $_ = Object.getPrototypeOf($_); //#10721 - } //#10721 - $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10724 + $_ = Object.create($_); //#10607 + $_.dontdraw = false; //#10610 + $_.includecheck = false; //#10611 + $_.validatecheck = false; //#10612 + $_.includetext = false; //#10613 + $_.includecheckintext = false; //#10614 + $_.textfont = "OCR-B"; //#10615 + $_.textsize = 10; //#10616 + $_.textyoffset = -8; //#10617 + $_.height = 1; //#10618 + $k[$j++] = $_; //#10620 + bwipp_processoptions(); //#10620 + $_.options = $k[--$j]; //#10620 + $_.barcode = $k[--$j]; //#10621 + if ($eq($_.barcode, "")) { //#10625 + $k[$j++] = 'bwipp.code11emptyData#10624'; //#10624 + $k[$j++] = "The data must not be empty"; //#10624 + bwipp_raiseerror(); //#10624 + } //#10624 + bwipp_loadctx(bwipp_code11) //#10627 + if (!bwipp_code11.__10641__) { //#10641 + $_ = Object.create($_); //#10641 + $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10635 + $_.barchars = "0123456789-"; //#10638 + $_.charvals = new Map; //#10639 + for (var _4 = 0; _4 <= 10; _4 += 1) { //#10640 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10640 + } //#10640 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10640 + bwipp_code11.__10641__ = 1; //#10640 + $_ = Object.getPrototypeOf($_); //#10640 + } //#10640 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10648 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10645 + if (!_F) { //#10647 + $k[$j++] = 'bwipp.code11badCharacter#10646'; //#10646 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#10646 + bwipp_raiseerror(); //#10646 + } //#10646 + } //#10646 + $_.barlen = $_.barcode.length; //#10650 + if ($_.validatecheck) { //#10656 + if ($_.barlen == 11) { //#10654 + $k[$j++] = 'bwipp.code11badLength#10653'; //#10653 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10653 + bwipp_raiseerror(); //#10653 + } //#10653 + var _L = ($_.barlen <= 10) ? 1 : 2; //#10655 + $_.barlen = $_.barlen - _L; //#10655 + } //#10655 + $k[$j++] = 'numchecks'; //#10658 + if ($_.includecheck || $_.validatecheck) { //#10658 + var _P = ($_.barlen >= 10) ? 2 : 1; //#10658 + $k[$j++] = _P; //#10658 + } else { //#10658 + $k[$j++] = 0; //#10658 + } //#10658 + var _Q = $k[--$j]; //#10658 + $_[$k[--$j]] = _Q; //#10658 + $_.checksum1 = 0; //#10659 + $_.checksum2 = 0; //#10659 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10665 + $_.i = _U; //#10661 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10662 + $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10663 + $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10664 + } //#10664 + $_.checksum1 = $_.checksum1 % 11; //#10666 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10667 + if ($_.validatecheck) { //#10681 + if ($_.numchecks == 1) { //#10676 + var _r = $_.checksum1; //#10670 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, _r)) { //#10672 + $k[$j++] = 'bwipp.code11badCheckDigit#10671'; //#10671 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#10671 + bwipp_raiseerror(); //#10671 + } //#10671 + } else { //#10676 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10677 + $k[$j++] = 'bwipp.code11badCheckDigits#10676'; //#10676 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#10676 + bwipp_raiseerror(); //#10676 + } //#10676 + } //#10676 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10679 + $_.includecheck = true; //#10680 + } //#10680 + $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10683 + $_.txt = $a($f($_.barlen + $_.numchecks)); //#10684 + $puti($_.sbs, 0, $get($_.encs, 11)); //#10687 + $_.xpos = 8; //#10689 + for (var _1J = 0, _1I = $_.barlen - 1; _1J <= _1I; _1J += 1) { //#10699 + $_.i = _1J; //#10691 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10692 + $_.enc = $get($_.encs, $_.indx); //#10693 + $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10694 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10695 + for (var _1f = 0; _1f <= 5; _1f += 1) { //#10698 + $_.xpos = $f($f($get($_.enc, _1f) - 48) + $_.xpos); //#10697 + } //#10697 + } //#10697 if ($_.includecheck) { //#10728 - $_.txt = $a($_.barlen + 1); //#10726 + if ($_.barlen >= 10) { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10704 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10705 + if ($_.includecheckintext) { //#10715 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10707 + $_.enc = $get($_.encs, $_.checksum1); //#10708 + for (var _29 = 0; _29 <= 5; _29 += 1) { //#10711 + $_.xpos = $f($f($get($_.enc, _29) - 48) + $_.xpos); //#10710 + } //#10710 + $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10712 + } else { //#10715 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10714 + $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10715 + } //#10715 + $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10717 + } else { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10719 + if ($_.includecheckintext) { //#10723 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10721 + } else { //#10723 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10723 + } //#10723 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10725 + } //#10725 } else { //#10728 - $_.txt = $a($_.barlen); //#10728 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10728 } //#10728 - if ($_.includestartstop) { //#10738 - $puti($_.sbs, 0, $get($_.encs, 35)); //#10733 - $_.pos = 2; //#10734 - $_.txtpos = 3; //#10735 - } else { //#10738 - $_.pos = 0; //#10737 - $_.txtpos = 0; //#10738 + $k[$j++] = Infinity; //#10732 + $k[$j++] = Infinity; //#10734 + var _3A = $_.sbs; //#10734 + for (var _3B = 0, _3C = _3A.length; _3B < _3C; _3B++) { //#10734 + $k[$j++] = $get(_3A, _3B) - 48; //#10734 + } //#10734 + var _3E = $a(); //#10734 + $k[$j++] = Infinity; //#10735 + for (var _3G = 0, _3H = ~~(($_.sbs.length + 1) / 2); _3G < _3H; _3G++) { //#10735 + $k[$j++] = $_.height; //#10735 + } //#10735 + var _3J = $a(); //#10735 + $k[$j++] = Infinity; //#10736 + for (var _3L = 0, _3M = ~~(($_.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#10736 + $k[$j++] = 0; //#10736 + } //#10736 + var _3N = $a(); //#10736 + $k[$j++] = 'ren'; //#10739 + $k[$j++] = bwipp_renlinear; //#10739 + $k[$j++] = 'sbs'; //#10739 + $k[$j++] = _3E; //#10739 + $k[$j++] = 'bhs'; //#10739 + $k[$j++] = _3J; //#10739 + $k[$j++] = 'bbs'; //#10739 + $k[$j++] = _3N; //#10739 + if ($_.includetext) { //#10739 + $k[$j++] = 'txt'; //#10738 + $k[$j++] = $_.txt; //#10738 } //#10738 - for (var _1Y = 0, _1X = $_.barlen - 1; _1Y <= _1X; _1Y += 1) { //#10747 - $_.i = _1Y; //#10742 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10743 - $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10744 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10745 - $_.pos = $_.pos + 8; //#10746 - } //#10746 - if ($_.includecheck) { //#10758 - $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10751 - if ($_.includecheckintext) { //#10755 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10753 - } else { //#10755 - $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10755 - } //#10755 - $_.pos = $_.pos + 8; //#10757 - } //#10757 - if ($_.includestartstop) { //#10764 - $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10762 - $_.pos = $_.pos + 3; //#10763 - } //#10763 - $_.sbs = $geti($_.sbs, 0, $_.pos); //#10767 - $k[$j++] = Infinity; //#10776 - $k[$j++] = Infinity; //#10770 - var _2V = $_.sbs; //#10770 - for (var _2W = 0, _2X = _2V.length; _2W < _2X; _2W++) { //#10770 - $k[$j++] = $f($get(_2V, _2W) - 48); //#10770 - } //#10770 - var _2Z = $a(); //#10770 - $k[$j++] = Infinity; //#10771 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10771 - $k[$j++] = $_.height; //#10771 - } //#10771 - var _2e = $a(); //#10771 - $k[$j++] = Infinity; //#10772 - for (var _2g = 0, _2h = ~~(($_.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#10772 - $k[$j++] = 0; //#10772 - } //#10772 - var _2i = $a(); //#10772 - $k[$j++] = 'ren'; //#10775 - $k[$j++] = bwipp_renlinear; //#10775 - $k[$j++] = 'sbs'; //#10775 - $k[$j++] = _2Z; //#10775 - $k[$j++] = 'bhs'; //#10775 - $k[$j++] = _2e; //#10775 - $k[$j++] = 'bbs'; //#10775 - $k[$j++] = _2i; //#10775 - if ($_.includetext) { //#10775 - $k[$j++] = 'txt'; //#10774 - $k[$j++] = $_.txt; //#10774 - } //#10774 - $k[$j++] = 'opt'; //#10776 - $k[$j++] = $_.options; //#10776 - var _2m = $d(); //#10776 - $k[$j++] = _2m; //#10779 - if (!$_.dontdraw) { //#10779 - bwipp_renlinear(); //#10779 - } //#10779 - $_ = Object.getPrototypeOf($_); //#10781 - $_ = Object.getPrototypeOf($_); //#10783 -} - -function bwipp_rationalizedCodabar() { - $_ = Object.create($_); //#10813 - $_.dontdraw = false; //#10816 - $_.altstartstop = false; //#10817 - $_.includecheck = false; //#10818 - $_.validatecheck = false; //#10819 - $_.includetext = false; //#10820 - $_.includecheckintext = false; //#10821 - $_.textfont = "OCR-B"; //#10822 - $_.textsize = 10; //#10823 - $_.textyoffset = -8; //#10824 - $_.height = 1; //#10825 - $k[$j++] = $_; //#10827 - bwipp_processoptions(); //#10827 - $_.options = $k[--$j]; //#10827 - var _1 = $k[--$j]; //#10828 - $_.barcode = _1; //#10828 - bwipp_loadctx(bwipp_rationalizedCodabar) //#10830 - if (!bwipp_rationalizedCodabar.__10844__) { //#10844 - $_ = Object.create($_); //#10844 - $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#10839 - $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#10842 - $_.barcharsalt = "0123456789-$:/.+TN*E"; //#10843 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#10843 - bwipp_rationalizedCodabar.__10844__ = 1; //#10843 - $_ = Object.getPrototypeOf($_); //#10843 - } //#10843 - var _5 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#10846 - $_.barchars = _5; //#10846 - $_.charvals = new Map; //#10848 - for (var _6 = 0; _6 <= 19; _6 += 1) { //#10849 - $put($_.charvals, $geti($_.barchars, _6, 1), _6); //#10849 - } //#10849 - $_.bodyvals = new Map; //#10850 - for (var _A = 0; _A <= 15; _A += 1) { //#10851 - $put($_.bodyvals, $geti($_.barchars, _A, 1), _A); //#10851 - } //#10851 - $_.ssvals = new Map; //#10852 - for (var _E = 16; _E <= 19; _E += 1) { //#10853 - $put($_.ssvals, $geti($_.barchars, _E, 1), _E); //#10853 - } //#10853 - var _L = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#10856 - var _Q = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#10857 - if ((!_L) || (!_Q)) { //#10863 - if ($_.altstartstop) { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#10859'; //#10859 - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#10859 - bwipp_raiseerror(); //#10859 - } else { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#10861'; //#10861 - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#10861 - bwipp_raiseerror(); //#10861 + $k[$j++] = 'opt'; //#10740 + $k[$j++] = $_.options; //#10740 + var _3R = $d(); //#10740 + $k[$j++] = _3R; //#10743 + if (!$_.dontdraw) { //#10743 + bwipp_renlinear(); //#10743 + } //#10743 + $_ = Object.getPrototypeOf($_); //#10745 + $_ = Object.getPrototypeOf($_); //#10747 +} //bwipp_code11 +function bwipp_bc412() { + $_ = Object.create($_); //#10777 + $_.dontdraw = false; //#10780 + $_.includecheck = false; //#10781 + $_.validatecheck = false; //#10782 + $_.includetext = false; //#10783 + $_.includecheckintext = false; //#10784 + $_.includestartstop = false; //#10785 + $_.semi = false; //#10786 + $_.textfont = "OCR-B"; //#10787 + $_.textsize = 10; //#10788 + $_.textyoffset = -8; //#10789 + $_.height = 1; //#10790 + $k[$j++] = $_; //#10792 + bwipp_processoptions(); //#10792 + $_.options = $k[--$j]; //#10792 + $_.barcode = $k[--$j]; //#10793 + if ($eq($_.barcode, "")) { //#10797 + $k[$j++] = 'bwipp.bc412emptyData#10796'; //#10796 + $k[$j++] = "The data must not be empty"; //#10796 + bwipp_raiseerror(); //#10796 + } //#10796 + if ($_.semi) { //#10802 + $_.includestartstop = true; //#10801 + } //#10801 + bwipp_loadctx(bwipp_bc412) //#10804 + if (!bwipp_bc412.__10811__) { //#10811 + $_ = Object.create($_); //#10811 + $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10808 + $_.charvals = new Map; //#10809 + for (var _4 = 0; _4 <= 34; _4 += 1) { //#10810 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10810 + } //#10810 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10810 + bwipp_bc412.__10811__ = 1; //#10810 + $_ = Object.getPrototypeOf($_); //#10810 + } //#10810 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10818 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10815 + if (!_F) { //#10817 + $k[$j++] = 'bwipp.bc412badCharacter#10816'; //#10816 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10816 + bwipp_raiseerror(); //#10816 + } //#10816 + } //#10816 + if ($_.semi) { //#10874 + if ($_.validatecheck) { //#10828 + if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10825 + $k[$j++] = 'bwipp.bc412semivalidateBadLength#10824'; //#10824 + $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10824 + bwipp_raiseerror(); //#10824 + } //#10824 + } else { //#10828 + if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10829 + $k[$j++] = 'bwipp.bc412semiBadLength#10828'; //#10828 + $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10828 + bwipp_raiseerror(); //#10828 + } //#10828 + } //#10828 + $_.barlen = $_.barcode.length; //#10832 + if (!$_.validatecheck) { //#10840 + $_.barlen = $_.barlen + 1; //#10834 + $_.sbarcode = $s($_.barlen); //#10835 + $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10836 + $put($_.sbarcode, 1, 48); //#10837 + $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10838 + $_.barcode = $_.sbarcode; //#10839 + } //#10839 + $_.sumodd = 0; //#10841 + $_.sumeven = 0; //#10841 + for (var _c = 0, _b = $_.barlen - 1; _c <= _b; _c += 1) { //#10850 + $_.i = _c; //#10843 + $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10849 + if (($_.i % 2) == 0) { //#10848 + $_.sumodd = $f($k[--$j] + $_.sumodd); //#10846 + } else { //#10848 + $_.sumeven = $f($k[--$j] + $_.sumeven); //#10848 + } //#10848 + } //#10848 + $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10851 + if ($_.validatecheck) { //#10858 + if ($_.checksum != 0) { //#10855 + $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10854'; //#10854 + $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10854 + bwipp_raiseerror(); //#10854 + } //#10854 + } else { //#10858 + $_.checksum = ($_.checksum * 17) % 35; //#10857 + $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10858 + } //#10858 + } else { //#10874 + $k[$j++] = 'barlen'; //#10861 + $k[$j++] = $_.barcode.length; //#10861 + if ($_.validatecheck) { //#10861 + var _y = $k[--$j]; //#10861 + $k[$j++] = $f(_y - 1); //#10861 } //#10861 - } //#10861 - for (var _U = 1, _T = $_.barcode.length - 2; _U <= _T; _U += 1) { //#10868 - var _Y = $get($_.bodyvals, $geti($_.barcode, _U, 1)) !== undefined; //#10865 - if (!_Y) { //#10867 - $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#10866'; //#10866 - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#10866 - bwipp_raiseerror(); //#10866 + var _z = $k[--$j]; //#10861 + $_[$k[--$j]] = _z; //#10861 + $_.checksum = 0; //#10863 + for (var _13 = 0, _12 = $_.barlen - 1; _13 <= _12; _13 += 1) { //#10867 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _13, 1)) + $_.checksum); //#10866 } //#10866 - } //#10866 - $k[$j++] = 'barlen'; //#10870 - $k[$j++] = $_.barcode.length; //#10870 - if ($_.validatecheck) { //#10870 - var _b = $k[--$j]; //#10870 - $k[$j++] = $f(_b - 1); //#10870 - } //#10870 - var _c = $k[--$j]; //#10870 - $_[$k[--$j]] = _c; //#10870 - $_.checksum = 0; //#10872 - for (var _g = 0, _f = $f($_.barlen - 2); _g <= _f; _g += 1) { //#10876 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _g, 1)) + $_.checksum); //#10875 - } //#10875 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, $_.barcode.length - 1, 1)) + $_.checksum); //#10878 - $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#10879 - if ($_.validatecheck) { //#10889 - if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#10883 - $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#10882'; //#10882 - $k[$j++] = "Incorrect Codabar check digit provided"; //#10882 - bwipp_raiseerror(); //#10882 - } //#10882 - var _11 = $s($_.barlen); //#10884 - $puti(_11, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#10885 - $puti(_11, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#10886 - $_.barcode = _11; //#10887 - $_.includecheck = true; //#10888 - } //#10888 - $k[$j++] = 'sbs'; //#10891 - $k[$j++] = $_.barlen; //#10891 - if ($_.includecheck) { //#10891 - var _1B = $k[--$j]; //#10891 - $k[$j++] = $f(_1B + 1); //#10891 - } //#10891 - var _1D = $s($k[--$j] * 8); //#10891 - $_[$k[--$j]] = _1D; //#10891 - $k[$j++] = 'txt'; //#10892 - $k[$j++] = $_.barlen; //#10892 - if ($_.includecheck) { //#10892 - var _1H = $k[--$j]; //#10892 - $k[$j++] = $f(_1H + 1); //#10892 - } //#10892 - var _1J = $a($k[--$j]); //#10892 - $_[$k[--$j]] = _1J; //#10892 - $_.xpos = 0; //#10894 - for (var _1N = 0, _1M = $f($_.barlen - 2); _1N <= _1M; _1N += 1) { //#10904 - $_.i = _1N; //#10896 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10897 - $_.enc = $get($_.encs, $_.indx); //#10898 - $puti($_.sbs, $_.i * 8, $_.enc); //#10899 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10900 - for (var _1j = 0; _1j <= 7; _1j += 1) { //#10903 - $_.xpos = $f($f($get($_.enc, _1j) - 48) + $_.xpos); //#10902 - } //#10902 - } //#10902 - if ($_.includecheck) { //#10928 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#10909 - if ($_.includecheckintext) { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10911 - } else { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 - } //#10913 - for (var _2B = 0; _2B <= 7; _2B += 1) { //#10917 - $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2B) - 48) + $_.xpos); //#10916 - } //#10916 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10919 - $_.enc = $get($_.encs, $_.indx); //#10920 - $puti($_.sbs, $_.barlen * 8, $_.enc); //#10921 - $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10922 - } else { //#10928 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10925 - $_.enc = $get($_.encs, $_.indx); //#10926 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#10927 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10928 - } //#10928 - $k[$j++] = Infinity; //#10940 - $k[$j++] = Infinity; //#10934 - $forall($_.sbs, function() { //#10934 - var _2y = $k[--$j]; //#10934 - $k[$j++] = $f(_2y - 48); //#10934 - }); //#10934 - var _2z = $a(); //#10934 - $k[$j++] = Infinity; //#10935 - for (var _31 = 0, _32 = ~~(($_.sbs.length + 1) / 2); _31 < _32; _31++) { //#10935 - $k[$j++] = $_.height; //#10935 - } //#10935 - var _34 = $a(); //#10935 + $_.checksum = $_.checksum % 35; //#10868 + if ($_.validatecheck) { //#10875 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10872 + $k[$j++] = 'bwipp.bc412badCheckDigit#10871'; //#10871 + $k[$j++] = "Incorrect BC412 check digit provided"; //#10871 + bwipp_raiseerror(); //#10871 + } //#10871 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10873 + $_.includecheck = true; //#10874 + } //#10874 + } //#10874 + if (!bwipp_bc412.__10890__) { //#10890 + $_ = Object.create($_); //#10890 + $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10889 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10889 + bwipp_bc412.__10890__ = 1; //#10889 + $_ = Object.getPrototypeOf($_); //#10889 + } //#10889 + $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10892 + if ($_.includecheck) { //#10896 + $_.txt = $a($_.barlen + 1); //#10894 + } else { //#10896 + $_.txt = $a($_.barlen); //#10896 + } //#10896 + if ($_.includestartstop) { //#10906 + $puti($_.sbs, 0, $get($_.encs, 35)); //#10901 + $_.pos = 2; //#10902 + $_.txtpos = 3; //#10903 + } else { //#10906 + $_.pos = 0; //#10905 + $_.txtpos = 0; //#10906 + } //#10906 + for (var _1Z = 0, _1Y = $_.barlen - 1; _1Z <= _1Y; _1Z += 1) { //#10915 + $_.i = _1Z; //#10910 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10911 + $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10912 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 + $_.pos = $_.pos + 8; //#10914 + } //#10914 + if ($_.includecheck) { //#10926 + $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10919 + if ($_.includecheckintext) { //#10923 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10921 + } else { //#10923 + $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10923 + } //#10923 + $_.pos = $_.pos + 8; //#10925 + } //#10925 + if ($_.includestartstop) { //#10932 + $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10930 + $_.pos = $_.pos + 3; //#10931 + } //#10931 + $_.sbs = $geti($_.sbs, 0, $_.pos); //#10935 $k[$j++] = Infinity; //#10936 - for (var _36 = 0, _37 = ~~(($_.sbs.length + 1) / 2); _36 < _37; _36++) { //#10936 - $k[$j++] = 0; //#10936 - } //#10936 - var _38 = $a(); //#10936 - $k[$j++] = 'ren'; //#10939 - $k[$j++] = bwipp_renlinear; //#10939 - $k[$j++] = 'sbs'; //#10939 - $k[$j++] = _2z; //#10939 - $k[$j++] = 'bhs'; //#10939 - $k[$j++] = _34; //#10939 - $k[$j++] = 'bbs'; //#10939 - $k[$j++] = _38; //#10939 - if ($_.includetext) { //#10939 - $k[$j++] = 'txt'; //#10938 - $k[$j++] = $_.txt; //#10938 + $k[$j++] = Infinity; //#10938 + var _2W = $_.sbs; //#10938 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#10938 + $k[$j++] = $f($get(_2W, _2X) - 48); //#10938 } //#10938 - $k[$j++] = 'opt'; //#10940 - $k[$j++] = $_.options; //#10940 - var _3C = $d(); //#10940 - $k[$j++] = _3C; //#10943 - if (!$_.dontdraw) { //#10943 - bwipp_renlinear(); //#10943 - } //#10943 - $_ = Object.getPrototypeOf($_); //#10945 - $_ = Object.getPrototypeOf($_); //#10947 -} - + var _2a = $a(); //#10938 + $k[$j++] = Infinity; //#10939 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10939 + $k[$j++] = $_.height; //#10939 + } //#10939 + var _2f = $a(); //#10939 + $k[$j++] = Infinity; //#10940 + for (var _2h = 0, _2i = ~~(($_.sbs.length + 1) / 2); _2h < _2i; _2h++) { //#10940 + $k[$j++] = 0; //#10940 + } //#10940 + var _2j = $a(); //#10940 + $k[$j++] = 'ren'; //#10943 + $k[$j++] = bwipp_renlinear; //#10943 + $k[$j++] = 'sbs'; //#10943 + $k[$j++] = _2a; //#10943 + $k[$j++] = 'bhs'; //#10943 + $k[$j++] = _2f; //#10943 + $k[$j++] = 'bbs'; //#10943 + $k[$j++] = _2j; //#10943 + if ($_.includetext) { //#10943 + $k[$j++] = 'txt'; //#10942 + $k[$j++] = $_.txt; //#10942 + } //#10942 + $k[$j++] = 'opt'; //#10944 + $k[$j++] = $_.options; //#10944 + var _2n = $d(); //#10944 + $k[$j++] = _2n; //#10947 + if (!$_.dontdraw) { //#10947 + bwipp_renlinear(); //#10947 + } //#10947 + $_ = Object.getPrototypeOf($_); //#10949 + $_ = Object.getPrototypeOf($_); //#10951 +} //bwipp_bc412 +function bwipp_rationalizedCodabar() { + $_ = Object.create($_); //#10981 + $_.dontdraw = false; //#10984 + $_.altstartstop = false; //#10985 + $_.includecheck = false; //#10986 + $_.validatecheck = false; //#10987 + $_.includetext = false; //#10988 + $_.includecheckintext = false; //#10989 + $_.textfont = "OCR-B"; //#10990 + $_.textsize = 10; //#10991 + $_.textyoffset = -8; //#10992 + $_.height = 1; //#10993 + $k[$j++] = $_; //#10995 + bwipp_processoptions(); //#10995 + $_.options = $k[--$j]; //#10995 + $_.barcode = $k[--$j]; //#10996 + if (($_.barcode.length < 2) || (($_.barcode.length < 3) && $_.validatecheck)) { //#11000 + $k[$j++] = 'bwipp.rationalizedCodabarBadLength#10999'; //#10999 + $k[$j++] = "Codabar must be at least 2 characters in length excluding any check digit"; //#10999 + bwipp_raiseerror(); //#10999 + } //#10999 + bwipp_loadctx(bwipp_rationalizedCodabar) //#11002 + if (!bwipp_rationalizedCodabar.__11016__) { //#11016 + $_ = Object.create($_); //#11016 + $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#11011 + $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#11014 + $_.barcharsalt = "0123456789-$:/.+TN*E"; //#11015 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#11015 + bwipp_rationalizedCodabar.__11016__ = 1; //#11015 + $_ = Object.getPrototypeOf($_); //#11015 + } //#11015 + var _8 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#11018 + $_.barchars = _8; //#11018 + $_.charvals = new Map; //#11020 + for (var _9 = 0; _9 <= 19; _9 += 1) { //#11021 + $put($_.charvals, $geti($_.barchars, _9, 1), _9); //#11021 + } //#11021 + $_.bodyvals = new Map; //#11022 + for (var _D = 0; _D <= 15; _D += 1) { //#11023 + $put($_.bodyvals, $geti($_.barchars, _D, 1), _D); //#11023 + } //#11023 + $_.ssvals = new Map; //#11024 + for (var _H = 16; _H <= 19; _H += 1) { //#11025 + $put($_.ssvals, $geti($_.barchars, _H, 1), _H); //#11025 + } //#11025 + var _O = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#11028 + var _T = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#11029 + if ((!_O) || (!_T)) { //#11035 + if ($_.altstartstop) { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#11031'; //#11031 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#11031 + bwipp_raiseerror(); //#11031 + } else { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#11033'; //#11033 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#11033 + bwipp_raiseerror(); //#11033 + } //#11033 + } //#11033 + for (var _X = 1, _W = $_.barcode.length - 2; _X <= _W; _X += 1) { //#11040 + var _b = $get($_.bodyvals, $geti($_.barcode, _X, 1)) !== undefined; //#11037 + if (!_b) { //#11039 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#11038'; //#11038 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#11038 + bwipp_raiseerror(); //#11038 + } //#11038 + } //#11038 + $k[$j++] = 'barlen'; //#11042 + $k[$j++] = $_.barcode.length; //#11042 + if ($_.validatecheck) { //#11042 + var _e = $k[--$j]; //#11042 + $k[$j++] = $f(_e - 1); //#11042 + } //#11042 + var _f = $k[--$j]; //#11042 + $_[$k[--$j]] = _f; //#11042 + $_.checksum = 0; //#11044 + for (var _j = 0, _i = $f($_.barlen - 2); _j <= _i; _j += 1) { //#11048 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _j, 1)) + $_.checksum); //#11047 + } //#11047 + var _r = $geti($_.barcode, $_.barcode.length - 1, 1); //#11049 + $_.checksum = $f($get($_.charvals, _r) + $_.checksum); //#11050 + $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#11051 + if ($_.validatecheck) { //#11061 + if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#11055 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#11054'; //#11054 + $k[$j++] = "Incorrect Codabar check digit provided"; //#11054 + bwipp_raiseerror(); //#11054 + } //#11054 + var _14 = $s($_.barlen); //#11056 + $puti(_14, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#11057 + $puti(_14, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#11058 + $_.barcode = _14; //#11059 + $_.includecheck = true; //#11060 + } //#11060 + $k[$j++] = 'sbs'; //#11063 + $k[$j++] = $_.barlen; //#11063 + if ($_.includecheck) { //#11063 + var _1E = $k[--$j]; //#11063 + $k[$j++] = $f(_1E + 1); //#11063 + } //#11063 + var _1G = $s($k[--$j] * 8); //#11063 + $_[$k[--$j]] = _1G; //#11063 + $k[$j++] = 'txt'; //#11064 + $k[$j++] = $_.barlen; //#11064 + if ($_.includecheck) { //#11064 + var _1K = $k[--$j]; //#11064 + $k[$j++] = $f(_1K + 1); //#11064 + } //#11064 + var _1M = $a($k[--$j]); //#11064 + $_[$k[--$j]] = _1M; //#11064 + $_.xpos = 0; //#11066 + for (var _1Q = 0, _1P = $f($_.barlen - 2); _1Q <= _1P; _1Q += 1) { //#11076 + $_.i = _1Q; //#11068 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11069 + $_.enc = $get($_.encs, $_.indx); //#11070 + $puti($_.sbs, $_.i * 8, $_.enc); //#11071 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11072 + for (var _1m = 0; _1m <= 7; _1m += 1) { //#11075 + $_.xpos = $f($f($get($_.enc, _1m) - 48) + $_.xpos); //#11074 + } //#11074 + } //#11074 + if ($_.includecheck) { //#11100 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#11081 + if ($_.includecheckintext) { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11083 + } else { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11085 + } //#11085 + for (var _2E = 0; _2E <= 7; _2E += 1) { //#11089 + $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2E) - 48) + $_.xpos); //#11088 + } //#11088 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11091 + $_.enc = $get($_.encs, $_.indx); //#11092 + $puti($_.sbs, $_.barlen * 8, $_.enc); //#11093 + $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11094 + } else { //#11100 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11097 + $_.enc = $get($_.encs, $_.indx); //#11098 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#11099 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11100 + } //#11100 + $k[$j++] = Infinity; //#11104 + $k[$j++] = Infinity; //#11106 + $forall($_.sbs, function() { //#11106 + var _31 = $k[--$j]; //#11106 + $k[$j++] = $f(_31 - 48); //#11106 + }); //#11106 + var _32 = $a(); //#11106 + $k[$j++] = Infinity; //#11107 + for (var _34 = 0, _35 = ~~(($_.sbs.length + 1) / 2); _34 < _35; _34++) { //#11107 + $k[$j++] = $_.height; //#11107 + } //#11107 + var _37 = $a(); //#11107 + $k[$j++] = Infinity; //#11108 + for (var _39 = 0, _3A = ~~(($_.sbs.length + 1) / 2); _39 < _3A; _39++) { //#11108 + $k[$j++] = 0; //#11108 + } //#11108 + var _3B = $a(); //#11108 + $k[$j++] = 'ren'; //#11111 + $k[$j++] = bwipp_renlinear; //#11111 + $k[$j++] = 'sbs'; //#11111 + $k[$j++] = _32; //#11111 + $k[$j++] = 'bhs'; //#11111 + $k[$j++] = _37; //#11111 + $k[$j++] = 'bbs'; //#11111 + $k[$j++] = _3B; //#11111 + if ($_.includetext) { //#11111 + $k[$j++] = 'txt'; //#11110 + $k[$j++] = $_.txt; //#11110 + } //#11110 + $k[$j++] = 'opt'; //#11112 + $k[$j++] = $_.options; //#11112 + var _3F = $d(); //#11112 + $k[$j++] = _3F; //#11115 + if (!$_.dontdraw) { //#11115 + bwipp_renlinear(); //#11115 + } //#11115 + $_ = Object.getPrototypeOf($_); //#11117 + $_ = Object.getPrototypeOf($_); //#11119 +} //bwipp_rationalizedCodabar function bwipp_onecode() { - $_ = Object.create($_); //#10977 - $_.dontdraw = false; //#10980 - $_.height = 0.15; //#10981 - $k[$j++] = $_; //#10983 - bwipp_processoptions(); //#10983 - $_.options = $k[--$j]; //#10983 - $_.barcode = $k[--$j]; //#10984 - bwipp_loadctx(bwipp_onecode) //#10986 - $_.barlen = $_.barcode.length; //#10988 - $forall($_.barcode, function() { //#10994 - var _4 = $k[--$j]; //#10991 - if ((_4 < 48) || (_4 > 57)) { //#10993 - $k[$j++] = 'bwipp.onecodeBadCharacter#10992'; //#10992 - $k[$j++] = "The data must contain only digits"; //#10992 - bwipp_raiseerror(); //#10992 - } //#10992 - }); //#10992 - if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#10998 - $k[$j++] = 'bwipp.onecodeInvalidLength#10997'; //#10997 - $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#10997 - bwipp_raiseerror(); //#10997 - } //#10997 - $k[$j++] = Infinity; //#11007 - var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11004 - $k[$j++] = 2; //#11007 - $k[$j++] = 2; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 29; //#11007 - $k[$j++] = 29; //#11007 - $_.txtdict = $d(); //#11008 - $_.txt = $a($_.barlen + 6); //#11009 - $_.spacecnt = 0; //#11010 - for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11018 - $_.i = _H; //#11012 - var _K = $get($_.txtdict, $_.i) !== undefined; //#11013 - if (_K) { //#11016 - $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11014 - $_.spacecnt = $_.spacecnt + 1; //#11015 - } //#11015 - $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11017 - } //#11017 - $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11019 + $_ = Object.create($_); //#11149 + $_.dontdraw = false; //#11152 + $_.height = 0.15; //#11153 + $k[$j++] = $_; //#11155 + bwipp_processoptions(); //#11155 + $_.options = $k[--$j]; //#11155 + $_.barcode = $k[--$j]; //#11156 + bwipp_loadctx(bwipp_onecode) //#11158 + $_.barlen = $_.barcode.length; //#11160 + $forall($_.barcode, function() { //#11166 + var _4 = $k[--$j]; //#11163 + if ((_4 < 48) || (_4 > 57)) { //#11165 + $k[$j++] = 'bwipp.onecodeBadCharacter#11164'; //#11164 + $k[$j++] = "The data must contain only digits"; //#11164 + bwipp_raiseerror(); //#11164 + } //#11164 + }); //#11164 + if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#11170 + $k[$j++] = 'bwipp.onecodeInvalidLength#11169'; //#11169 + $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#11169 + bwipp_raiseerror(); //#11169 + } //#11169 + $k[$j++] = Infinity; //#11173 + var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11176 + $k[$j++] = 2; //#11179 + $k[$j++] = 2; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 29; //#11179 + $k[$j++] = 29; //#11179 + $_.txtdict = $d(); //#11180 + $_.txt = $a($_.barlen + 6); //#11181 + $_.spacecnt = 0; //#11182 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11190 + $_.i = _H; //#11184 + var _K = $get($_.txtdict, $_.i) !== undefined; //#11185 + if (_K) { //#11188 + $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11186 + $_.spacecnt = $_.spacecnt + 1; //#11187 + } //#11187 + $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11189 + } //#11189 + $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11191 $_.normalize = function() { - $_.base = $k[--$j]; //#11022 - $_.num = $k[--$j]; //#11023 - for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11028 - $_.i = _e; //#11025 - var _f = $_.num; //#11026 - var _g = $_.i; //#11026 - $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11026 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11027 - } //#11027 - for (;;) { //#11034 - if ($lt($get($_.num, 0), $_.base)) { //#11030 - break; //#11030 - } //#11030 - $k[$j++] = Infinity; //#11031 - $k[$j++] = 0; //#11031 - $aload($_.num); //#11031 - $_.num = $a(); //#11031 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11032 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#11033 - } //#11033 - $k[$j++] = Infinity; //#11036 - $_.i = true; //#11036 - var _17 = $_.num; //#11036 - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11036 - var _1A = $get(_17, _18); //#11036 - $k[$j++] = _1A; //#11036 - if ((_1A == 0) && $_.i) { //#11036 - $j--; //#11036 - } else { //#11036 - $_.i = false; //#11036 - } //#11036 - } //#11036 - $_.num = $a(); //#11036 - if ($_.num.length == 0) { //#11037 - $_.num = $a([0]); //#11037 - } //#11037 - $k[$j++] = $_.num; //#11038 - }; //#11038 + $_.base = $k[--$j]; //#11194 + $_.num = $k[--$j]; //#11195 + for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11200 + $_.i = _e; //#11197 + var _f = $_.num; //#11198 + var _g = $_.i; //#11198 + $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11198 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11199 + } //#11199 + for (;;) { //#11206 + if ($lt($get($_.num, 0), $_.base)) { //#11202 + break; //#11202 + } //#11202 + $k[$j++] = Infinity; //#11203 + $k[$j++] = 0; //#11203 + $aload($_.num); //#11203 + $_.num = $a(); //#11203 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11204 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#11205 + } //#11205 + $k[$j++] = Infinity; //#11208 + $_.i = true; //#11208 + var _17 = $_.num; //#11208 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11208 + var _1A = $get(_17, _18); //#11208 + $k[$j++] = _1A; //#11208 + if ((_1A == 0) && $_.i) { //#11208 + $j--; //#11208 + } else { //#11208 + $_.i = false; //#11208 + } //#11208 + } //#11208 + $_.num = $a(); //#11208 + if ($_.num.length == 0) { //#11209 + $_.num = $a([0]); //#11209 + } //#11209 + $k[$j++] = $_.num; //#11210 + }; //#11210 $_.bigadd = function() { - var _1G = $k[--$j]; //#11042 - var _1H = $k[--$j]; //#11042 - $_.offset = Math.abs(_1G.length - _1H.length); //#11043 - if (_1G.length < _1H.length) { //#11044 - var _ = _1G; //#11044 - _1G = _1H; //#11044 - _1H = _; //#11044 - } //#11044 - $_.a = _1G; //#11045 - $_.b = _1H; //#11045 - for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11048 - var _1L = $_.a; //#11047 - var _1M = $_.offset; //#11047 - $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11047 - } //#11047 - $k[$j++] = $_.a; //#11049 - }; //#11049 - if (!bwipp_onecode.__11060__) { //#11060 - $_ = Object.create($_); //#11060 + var _1G = $k[--$j]; //#11214 + var _1H = $k[--$j]; //#11214 + $_.offset = Math.abs(_1G.length - _1H.length); //#11215 + if (_1G.length < _1H.length) { //#11216 + var _ = _1G; //#11216 + _1G = _1H; //#11216 + _1H = _; //#11216 + } //#11216 + $_.a = _1G; //#11217 + $_.b = _1H; //#11217 + for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11220 + var _1L = $_.a; //#11219 + var _1M = $_.offset; //#11219 + $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11219 + } //#11219 + $k[$j++] = $_.a; //#11221 + }; //#11221 + if (!bwipp_onecode.__11232__) { //#11232 + $_ = Object.create($_); //#11232 var _1V = new Map([ [20, $a([0])], [25, $a([1])], [29, $a([1, 0, 0, 0, 0, 1])], [31, $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1])] - ]); //#11058 - $_.startvals = _1V; //#11059 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11059 - bwipp_onecode.__11060__ = 1; //#11059 - $_ = Object.getPrototypeOf($_); //#11059 - } //#11059 - $k[$j++] = 'binval'; //#11062 - $k[$j++] = $get($_.startvals, $_.barlen); //#11062 - $k[$j++] = Infinity; //#11062 - var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11062 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11062 - $k[$j++] = $f($get(_1c, _1d) - 48); //#11062 - } //#11062 - var _1g = $a(); //#11062 - $k[$j++] = _1g; //#11062 - $_.bigadd(); //#11062 - var _1h = $k[--$j]; //#11062 - $_[$k[--$j]] = _1h; //#11062 - $k[$j++] = Infinity; //#11063 - $aload($_.binval); //#11063 - $k[$j++] = $f($get($_.barcode, 0) - 48); //#11063 - $_.binval = $a(); //#11063 - $k[$j++] = Infinity; //#11064 - var _1n = $_.binval; //#11064 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11064 - $k[$j++] = $get(_1n, _1o) * 5; //#11064 - } //#11064 - var _1r = $a(); //#11064 - $k[$j++] = 'binval'; //#11064 - $k[$j++] = _1r; //#11064 - $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11064 - $_.bigadd(); //#11064 - $k[$j++] = 10; //#11064 - $_.normalize(); //#11064 - var _1v = $k[--$j]; //#11064 - $_[$k[--$j]] = _1v; //#11064 - $k[$j++] = Infinity; //#11065 - $aload($_.binval); //#11065 - var _1z = $geti($_.barcode, 2, 18); //#11065 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11065 - $k[$j++] = $f($get(_1z, _20) - 48); //#11065 - } //#11065 - $_.binval = $a(); //#11065 - $_.bytes = $a(13); //#11068 - var _25 = $_.binval; //#11069 - $_.bintmp = $arrcpy($a(_25.length), _25); //#11069 - for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11079 - $_.i = _28; //#11071 - for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11076 - $_.j = _2B; //#11073 - var _2C = $_.bintmp; //#11074 - var _2D = $_.j; //#11074 - $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11074 - $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11075 - } //#11075 - $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11077 - var _2S = $_.bintmp; //#11078 - var _2T = $_.bintmp; //#11078 - $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11078 - } //#11078 - $_.fcs = 2047; //#11082 - $_.dat = $get($_.bytes, 0) << 5; //#11083 - for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11092 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11088 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11086 - } else { //#11088 - $_.fcs = $_.fcs << 1; //#11088 - } //#11088 - $_.fcs = $_.fcs & 2047; //#11090 - $_.dat = $_.dat << 1; //#11091 - } //#11091 - for (var _2f = 1; _2f <= 12; _2f += 1) { //#11104 - $_.dat = $get($_.bytes, _2f) << 3; //#11094 - for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11103 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11099 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11097 - } else { //#11099 - $_.fcs = $_.fcs << 1; //#11099 - } //#11099 - $_.fcs = $_.fcs & 2047; //#11101 - $_.dat = $_.dat << 1; //#11102 - } //#11102 - } //#11102 - $_.codewords = $a(10); //#11107 - for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11118 - $_.i = _2r; //#11109 - var _2t = ($_.i == 9) ? 636 : 1365; //#11110 - $_.b = _2t; //#11110 - for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11115 - $_.j = _2w; //#11112 - var _2x = $_.binval; //#11113 - var _2y = $_.j; //#11113 - $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11113 - $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11114 - } //#11114 - $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11116 - var _3G = $_.binval; //#11117 - var _3H = $_.binval; //#11117 - $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11117 - } //#11117 - $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11121 - if (($_.fcs & 1024) != 0) { //#11124 - $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11123 - } //#11123 - if (!bwipp_onecode.__11225__) { //#11225 - $_ = Object.create($_); //#11225 - $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11215 - $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11224 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11224 - bwipp_onecode.__11225__ = 1; //#11224 - $_ = Object.getPrototypeOf($_); //#11224 - } //#11224 - $_.chars = $a(10); //#11227 - for (var _3V = 0; _3V <= 9; _3V += 1) { //#11236 - $_.i = _3V; //#11229 - var _3Y = $get($_.codewords, $_.i); //#11230 - $k[$j++] = _3Y; //#11234 - if (_3Y <= 1286) { //#11233 - var _3b = $get($_.tab513, $k[--$j]); //#11231 - $k[$j++] = _3b; //#11231 - } else { //#11233 - var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11233 - $k[$j++] = _3e; //#11233 - } //#11233 - $put($_.chars, $_.i, $k[--$j]); //#11235 - } //#11235 - for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11243 - $_.i = _3i; //#11239 - if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11242 - $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11241 - } //#11241 - } //#11241 - if (!bwipp_onecode.__11262__) { //#11262 - $_ = Object.create($_); //#11262 - $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11261 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11261 - bwipp_onecode.__11262__ = 1; //#11261 - $_ = Object.getPrototypeOf($_); //#11261 - } //#11261 - $_.bbs = $a(65); //#11264 - $_.bhs = $a(65); //#11265 - for (var _3u = 0; _3u <= 64; _3u += 1) { //#11286 - $_.i = _3u; //#11267 - $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11268 - $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11269 - if ((!$_.dec) && (!$_.asc)) { //#11273 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11271 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11272 - } //#11272 - if ((!$_.dec) && $_.asc) { //#11277 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11275 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11276 - } //#11276 - if ($_.dec && (!$_.asc)) { //#11281 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11279 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11280 - } //#11280 - if ($_.dec && $_.asc) { //#11285 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11283 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11284 - } //#11284 - } //#11284 - $k[$j++] = Infinity; //#11299 - var _4h = $_.bbs; //#11291 - var _4i = $_.bhs; //#11292 - $k[$j++] = Infinity; //#11293 - for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11293 - $k[$j++] = 1.44; //#11293 - $k[$j++] = 1.872; //#11293 - } //#11293 - $k[$j++] = 1.44; //#11293 - var _4m = $a(); //#11293 - $k[$j++] = 'ren'; //#11299 - $k[$j++] = bwipp_renlinear; //#11299 - $k[$j++] = 'bbs'; //#11299 - $k[$j++] = _4h; //#11299 - $k[$j++] = 'bhs'; //#11299 - $k[$j++] = _4i; //#11299 - $k[$j++] = 'sbs'; //#11299 - $k[$j++] = _4m; //#11299 - $k[$j++] = 'txt'; //#11299 - $k[$j++] = $_.txt; //#11299 - $k[$j++] = 'textxalign'; //#11299 - $k[$j++] = "left"; //#11299 - $k[$j++] = 'textfont'; //#11299 - $k[$j++] = "OCR-B"; //#11299 - $k[$j++] = 'textyoffset'; //#11299 - $k[$j++] = 1; //#11299 - $k[$j++] = 'textxoffset'; //#11299 - $k[$j++] = -0.3; //#11299 - $k[$j++] = 'opt'; //#11299 - $k[$j++] = $_.options; //#11299 - var _4p = $d(); //#11299 - $k[$j++] = _4p; //#11302 - if (!$_.dontdraw) { //#11302 - bwipp_renlinear(); //#11302 - } //#11302 - $_ = Object.getPrototypeOf($_); //#11304 - $_ = Object.getPrototypeOf($_); //#11306 -} - + ]); //#11230 + $_.startvals = _1V; //#11231 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11231 + bwipp_onecode.__11232__ = 1; //#11231 + $_ = Object.getPrototypeOf($_); //#11231 + } //#11231 + $k[$j++] = 'binval'; //#11234 + $k[$j++] = $get($_.startvals, $_.barlen); //#11234 + $k[$j++] = Infinity; //#11234 + var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11234 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11234 + $k[$j++] = $f($get(_1c, _1d) - 48); //#11234 + } //#11234 + var _1g = $a(); //#11234 + $k[$j++] = _1g; //#11234 + $_.bigadd(); //#11234 + var _1h = $k[--$j]; //#11234 + $_[$k[--$j]] = _1h; //#11234 + $k[$j++] = Infinity; //#11235 + $aload($_.binval); //#11235 + $k[$j++] = $f($get($_.barcode, 0) - 48); //#11235 + $_.binval = $a(); //#11235 + $k[$j++] = Infinity; //#11236 + var _1n = $_.binval; //#11236 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11236 + $k[$j++] = $get(_1n, _1o) * 5; //#11236 + } //#11236 + var _1r = $a(); //#11236 + $k[$j++] = 'binval'; //#11236 + $k[$j++] = _1r; //#11236 + $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11236 + $_.bigadd(); //#11236 + $k[$j++] = 10; //#11236 + $_.normalize(); //#11236 + var _1v = $k[--$j]; //#11236 + $_[$k[--$j]] = _1v; //#11236 + $k[$j++] = Infinity; //#11237 + $aload($_.binval); //#11237 + var _1z = $geti($_.barcode, 2, 18); //#11237 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11237 + $k[$j++] = $f($get(_1z, _20) - 48); //#11237 + } //#11237 + $_.binval = $a(); //#11237 + $_.bytes = $a(13); //#11240 + var _25 = $_.binval; //#11241 + $_.bintmp = $arrcpy($a(_25.length), _25); //#11241 + for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11251 + $_.i = _28; //#11243 + for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11248 + $_.j = _2B; //#11245 + var _2C = $_.bintmp; //#11246 + var _2D = $_.j; //#11246 + $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11246 + $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11247 + } //#11247 + $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11249 + var _2S = $_.bintmp; //#11250 + var _2T = $_.bintmp; //#11250 + $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11250 + } //#11250 + $_.fcs = 2047; //#11254 + $_.dat = $get($_.bytes, 0) << 5; //#11255 + for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11264 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11260 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11258 + } else { //#11260 + $_.fcs = $_.fcs << 1; //#11260 + } //#11260 + $_.fcs = $_.fcs & 2047; //#11262 + $_.dat = $_.dat << 1; //#11263 + } //#11263 + for (var _2f = 1; _2f <= 12; _2f += 1) { //#11276 + $_.dat = $get($_.bytes, _2f) << 3; //#11266 + for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11275 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11271 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11269 + } else { //#11271 + $_.fcs = $_.fcs << 1; //#11271 + } //#11271 + $_.fcs = $_.fcs & 2047; //#11273 + $_.dat = $_.dat << 1; //#11274 + } //#11274 + } //#11274 + $_.codewords = $a(10); //#11279 + for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11290 + $_.i = _2r; //#11281 + var _2t = ($_.i == 9) ? 636 : 1365; //#11282 + $_.b = _2t; //#11282 + for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11287 + $_.j = _2w; //#11284 + var _2x = $_.binval; //#11285 + var _2y = $_.j; //#11285 + $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11285 + $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11286 + } //#11286 + $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11288 + var _3G = $_.binval; //#11289 + var _3H = $_.binval; //#11289 + $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11289 + } //#11289 + $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11293 + if (($_.fcs & 1024) != 0) { //#11296 + $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11295 + } //#11295 + if (!bwipp_onecode.__11397__) { //#11397 + $_ = Object.create($_); //#11397 + $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11387 + $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11396 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11396 + bwipp_onecode.__11397__ = 1; //#11396 + $_ = Object.getPrototypeOf($_); //#11396 + } //#11396 + $_.chars = $a(10); //#11399 + for (var _3V = 0; _3V <= 9; _3V += 1) { //#11408 + $_.i = _3V; //#11401 + var _3Y = $get($_.codewords, $_.i); //#11402 + $k[$j++] = _3Y; //#11406 + if (_3Y <= 1286) { //#11405 + var _3b = $get($_.tab513, $k[--$j]); //#11403 + $k[$j++] = _3b; //#11403 + } else { //#11405 + var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11405 + $k[$j++] = _3e; //#11405 + } //#11405 + $put($_.chars, $_.i, $k[--$j]); //#11407 + } //#11407 + for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11415 + $_.i = _3i; //#11411 + if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11414 + $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11413 + } //#11413 + } //#11413 + if (!bwipp_onecode.__11434__) { //#11434 + $_ = Object.create($_); //#11434 + $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11433 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11433 + bwipp_onecode.__11434__ = 1; //#11433 + $_ = Object.getPrototypeOf($_); //#11433 + } //#11433 + $_.bbs = $a(65); //#11436 + $_.bhs = $a(65); //#11437 + for (var _3u = 0; _3u <= 64; _3u += 1) { //#11458 + $_.i = _3u; //#11439 + $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11440 + $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11441 + if ((!$_.dec) && (!$_.asc)) { //#11445 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11443 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11444 + } //#11444 + if ((!$_.dec) && $_.asc) { //#11449 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11447 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11448 + } //#11448 + if ($_.dec && (!$_.asc)) { //#11453 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11451 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11452 + } //#11452 + if ($_.dec && $_.asc) { //#11457 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11455 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11456 + } //#11456 + } //#11456 + $k[$j++] = Infinity; //#11461 + var _4h = $_.bbs; //#11463 + var _4i = $_.bhs; //#11464 + $k[$j++] = Infinity; //#11465 + for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11465 + $k[$j++] = 1.44; //#11465 + $k[$j++] = 1.872; //#11465 + } //#11465 + $k[$j++] = 1.44; //#11465 + var _4m = $a(); //#11465 + $k[$j++] = 'ren'; //#11471 + $k[$j++] = bwipp_renlinear; //#11471 + $k[$j++] = 'bbs'; //#11471 + $k[$j++] = _4h; //#11471 + $k[$j++] = 'bhs'; //#11471 + $k[$j++] = _4i; //#11471 + $k[$j++] = 'sbs'; //#11471 + $k[$j++] = _4m; //#11471 + $k[$j++] = 'txt'; //#11471 + $k[$j++] = $_.txt; //#11471 + $k[$j++] = 'textxalign'; //#11471 + $k[$j++] = "left"; //#11471 + $k[$j++] = 'textfont'; //#11471 + $k[$j++] = "OCR-B"; //#11471 + $k[$j++] = 'textyoffset'; //#11471 + $k[$j++] = 1; //#11471 + $k[$j++] = 'textxoffset'; //#11471 + $k[$j++] = -0.3; //#11471 + $k[$j++] = 'opt'; //#11471 + $k[$j++] = $_.options; //#11471 + var _4p = $d(); //#11471 + $k[$j++] = _4p; //#11474 + if (!$_.dontdraw) { //#11474 + bwipp_renlinear(); //#11474 + } //#11474 + $_ = Object.getPrototypeOf($_); //#11476 + $_ = Object.getPrototypeOf($_); //#11478 +} //bwipp_onecode function bwipp_postnet() { - $_ = Object.create($_); //#11336 - $_.dontdraw = false; //#11339 - $_.includetext = false; //#11340 - $_.validatecheck = false; //#11341 - $_.includecheckintext = false; //#11342 - $_.textfont = "OCR-B"; //#11343 - $_.textsize = 10; //#11344 - $_.textyoffset = -8; //#11345 - $_.height = 0.125; //#11346 - $k[$j++] = $_; //#11348 - bwipp_processoptions(); //#11348 - $_.options = $k[--$j]; //#11348 - $_.barcode = $k[--$j]; //#11349 - bwipp_loadctx(bwipp_postnet) //#11351 - $k[$j++] = 'barlen'; //#11353 - $k[$j++] = $_.barcode.length; //#11353 - if ($_.validatecheck) { //#11353 - var _4 = $k[--$j]; //#11353 - $k[$j++] = $f(_4 - 1); //#11353 - } //#11353 - var _5 = $k[--$j]; //#11353 - $_[$k[--$j]] = _5; //#11353 - if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11358 - $k[$j++] = 'bwipp.postnetBadLength#11357'; //#11357 - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11357 - bwipp_raiseerror(); //#11357 - } //#11357 - $forall($_.barcode, function() { //#11363 - var _B = $k[--$j]; //#11360 - if ((_B < 48) || (_B > 57)) { //#11362 - $k[$j++] = 'bwipp.postnetBadCharacter#11361'; //#11361 - $k[$j++] = "USPS POSTNET must contain only digits"; //#11361 - bwipp_raiseerror(); //#11361 - } //#11361 - }); //#11361 - if (!bwipp_postnet.__11375__) { //#11375 - $_ = Object.create($_); //#11375 - $_.barchars = "0123456789"; //#11367 - $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11374 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11374 - bwipp_postnet.__11375__ = 1; //#11374 - $_ = Object.getPrototypeOf($_); //#11374 - } //#11374 - $_.checksum = 0; //#11377 - for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11381 - $_.i = _G; //#11379 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11380 - } //#11380 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11382 - if ($_.validatecheck) { //#11388 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11386 - $k[$j++] = 'bwipp.postnetBadCheckDigit#11385'; //#11385 - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11385 - bwipp_raiseerror(); //#11385 - } //#11385 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11387 - } //#11387 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11390 - $_.txt = $a($f($_.barlen + 1)); //#11391 - $_.enc = $get($_.encs, 10); //#11394 - $_.heights = $a($_.enc.length); //#11395 - for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11399 - $_.j = _g; //#11397 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11398 - } //#11398 - $puti($_.bhs, 0, $_.heights); //#11400 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11412 - $_.i = _r; //#11403 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11404 - $_.heights = $a($_.enc.length); //#11405 - for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11409 - $_.j = _11; //#11407 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11408 - } //#11408 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11410 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11411 - } //#11411 - $_.enc = $get($_.encs, $_.checksum); //#11415 - $_.heights = $a($_.enc.length); //#11416 - for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11420 - $_.j = _1S; //#11418 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11419 - } //#11419 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11421 - if ($_.includecheckintext) { //#11426 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11424 - } else { //#11426 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11426 - } //#11426 - $_.enc = $get($_.encs, 11); //#11430 - $_.heights = $a($_.enc.length); //#11431 - for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11435 - $_.j = _20; //#11433 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11434 - } //#11434 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11436 - $k[$j++] = Infinity; //#11447 - var _2A = $_.bhs; //#11441 - $k[$j++] = Infinity; //#11442 - for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11442 - $k[$j++] = 0; //#11442 - } //#11442 - var _2E = $a(); //#11442 - $k[$j++] = Infinity; //#11443 - for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11443 - $k[$j++] = 1.44; //#11443 - $k[$j++] = 1.872; //#11443 - } //#11443 - $k[$j++] = 1.44; //#11443 - var _2I = $a(); //#11443 - $k[$j++] = 'ren'; //#11446 - $k[$j++] = bwipp_renlinear; //#11446 - $k[$j++] = 'bhs'; //#11446 - $k[$j++] = _2A; //#11446 - $k[$j++] = 'bbs'; //#11446 - $k[$j++] = _2E; //#11446 - $k[$j++] = 'sbs'; //#11446 - $k[$j++] = _2I; //#11446 - if ($_.includetext) { //#11446 - $k[$j++] = 'txt'; //#11445 - $k[$j++] = $_.txt; //#11445 - } //#11445 - $k[$j++] = 'opt'; //#11447 - $k[$j++] = $_.options; //#11447 - var _2M = $d(); //#11447 - $k[$j++] = _2M; //#11450 - if (!$_.dontdraw) { //#11450 - bwipp_renlinear(); //#11450 - } //#11450 - $_ = Object.getPrototypeOf($_); //#11452 - $_ = Object.getPrototypeOf($_); //#11454 -} - -function bwipp_planet() { - $_ = Object.create($_); //#11484 - $_.dontdraw = false; //#11487 - $_.includetext = false; //#11488 - $_.validatecheck = false; //#11489 - $_.includecheckintext = false; //#11490 - $_.textfont = "OCR-B"; //#11491 - $_.textsize = 10; //#11492 - $_.textyoffset = -8; //#11493 - $_.height = 0.125; //#11494 - $k[$j++] = $_; //#11496 - bwipp_processoptions(); //#11496 - $_.options = $k[--$j]; //#11496 - $_.barcode = $k[--$j]; //#11497 - bwipp_loadctx(bwipp_planet) //#11499 - $k[$j++] = 'barlen'; //#11501 - $k[$j++] = $_.barcode.length; //#11501 - if ($_.validatecheck) { //#11501 - var _4 = $k[--$j]; //#11501 - $k[$j++] = $f(_4 - 1); //#11501 - } //#11501 - var _5 = $k[--$j]; //#11501 - $_[$k[--$j]] = _5; //#11501 - if (($_.barlen != 11) && ($_.barlen != 13)) { //#11506 - $k[$j++] = 'bwipp.planetBadLength#11505'; //#11505 - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11505 - bwipp_raiseerror(); //#11505 - } //#11505 - $forall($_.barcode, function() { //#11511 - var _A = $k[--$j]; //#11508 - if ((_A < 48) || (_A > 57)) { //#11510 - $k[$j++] = 'bwipp.planetBadCharacter#11509'; //#11509 - $k[$j++] = "USPS PLANET must contain only digits"; //#11509 - bwipp_raiseerror(); //#11509 - } //#11509 - }); //#11509 - if (!bwipp_planet.__11523__) { //#11523 - $_ = Object.create($_); //#11523 - $_.barchars = "0123456789"; //#11515 - $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11522 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11522 - bwipp_planet.__11523__ = 1; //#11522 - $_ = Object.getPrototypeOf($_); //#11522 - } //#11522 - $_.checksum = 0; //#11526 - for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11530 - $_.i = _F; //#11528 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11529 + $_ = Object.create($_); //#11508 + $_.dontdraw = false; //#11511 + $_.includetext = false; //#11512 + $_.validatecheck = false; //#11513 + $_.includecheckintext = false; //#11514 + $_.textfont = "OCR-B"; //#11515 + $_.textsize = 10; //#11516 + $_.textyoffset = -8; //#11517 + $_.height = 0.125; //#11518 + $k[$j++] = $_; //#11520 + bwipp_processoptions(); //#11520 + $_.options = $k[--$j]; //#11520 + $_.barcode = $k[--$j]; //#11521 + bwipp_loadctx(bwipp_postnet) //#11523 + $k[$j++] = 'barlen'; //#11525 + $k[$j++] = $_.barcode.length; //#11525 + if ($_.validatecheck) { //#11525 + var _4 = $k[--$j]; //#11525 + $k[$j++] = $f(_4 - 1); //#11525 + } //#11525 + var _5 = $k[--$j]; //#11525 + $_[$k[--$j]] = _5; //#11525 + if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11530 + $k[$j++] = 'bwipp.postnetBadLength#11529'; //#11529 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11529 + bwipp_raiseerror(); //#11529 } //#11529 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11531 - if ($_.validatecheck) { //#11537 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11535 - $k[$j++] = 'bwipp.planetBadCheckDigit#11534'; //#11534 - $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11534 - bwipp_raiseerror(); //#11534 - } //#11534 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11536 - } //#11536 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11539 - $_.txt = $a($f($_.barlen + 1)); //#11540 - $_.enc = $get($_.encs, 10); //#11543 - $_.heights = $a($_.enc.length); //#11544 - for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11548 - $_.j = _f; //#11546 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11547 - } //#11547 - $puti($_.bhs, 0, $_.heights); //#11549 - for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11561 - $_.i = _q; //#11552 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11553 - $_.heights = $a($_.enc.length); //#11554 - for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11558 - $_.j = _10; //#11556 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11557 + $forall($_.barcode, function() { //#11535 + var _B = $k[--$j]; //#11532 + if ((_B < 48) || (_B > 57)) { //#11534 + $k[$j++] = 'bwipp.postnetBadCharacter#11533'; //#11533 + $k[$j++] = "USPS POSTNET must contain only digits"; //#11533 + bwipp_raiseerror(); //#11533 + } //#11533 + }); //#11533 + if (!bwipp_postnet.__11547__) { //#11547 + $_ = Object.create($_); //#11547 + $_.barchars = "0123456789"; //#11539 + $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11546 + bwipp_postnet.__11547__ = 1; //#11546 + $_ = Object.getPrototypeOf($_); //#11546 + } //#11546 + $_.checksum = 0; //#11549 + for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11553 + $_.i = _G; //#11551 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11552 + } //#11552 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11554 + if ($_.validatecheck) { //#11560 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11558 + $k[$j++] = 'bwipp.postnetBadCheckDigit#11557'; //#11557 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11557 + bwipp_raiseerror(); //#11557 } //#11557 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11559 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11560 - } //#11560 - $_.enc = $get($_.encs, $_.checksum); //#11564 - $_.heights = $a($_.enc.length); //#11565 - for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11569 - $_.j = _1R; //#11567 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11568 - } //#11568 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11570 - if ($_.includecheckintext) { //#11575 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11573 - } else { //#11575 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11575 - } //#11575 - $_.enc = $get($_.encs, 11); //#11579 - $_.heights = $a($_.enc.length); //#11580 - for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11584 - $_.j = _1z; //#11582 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11583 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11559 + } //#11559 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11562 + $_.txt = $a($f($_.barlen + 1)); //#11563 + $_.enc = $get($_.encs, 10); //#11566 + $_.heights = $a($_.enc.length); //#11567 + for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11571 + $_.j = _g; //#11569 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11570 + } //#11570 + $puti($_.bhs, 0, $_.heights); //#11572 + for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11584 + $_.i = _r; //#11575 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11576 + $_.heights = $a($_.enc.length); //#11577 + for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11581 + $_.j = _11; //#11579 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11580 + } //#11580 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11582 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11583 } //#11583 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11585 - $k[$j++] = Infinity; //#11596 - var _29 = $_.bhs; //#11590 - $k[$j++] = Infinity; //#11591 - for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11591 - $k[$j++] = 0; //#11591 + $_.enc = $get($_.encs, $_.checksum); //#11587 + $_.heights = $a($_.enc.length); //#11588 + for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11592 + $_.j = _1S; //#11590 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11591 } //#11591 - var _2D = $a(); //#11591 - $k[$j++] = Infinity; //#11592 - for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11592 - $k[$j++] = 1.44; //#11592 - $k[$j++] = 1.872; //#11592 - } //#11592 - $k[$j++] = 1.44; //#11592 - var _2H = $a(); //#11592 - $k[$j++] = 'ren'; //#11595 - $k[$j++] = bwipp_renlinear; //#11595 - $k[$j++] = 'bhs'; //#11595 - $k[$j++] = _29; //#11595 - $k[$j++] = 'bbs'; //#11595 - $k[$j++] = _2D; //#11595 - $k[$j++] = 'sbs'; //#11595 - $k[$j++] = _2H; //#11595 - if ($_.includetext) { //#11595 - $k[$j++] = 'txt'; //#11594 - $k[$j++] = $_.txt; //#11594 - } //#11594 - $k[$j++] = 'opt'; //#11596 - $k[$j++] = $_.options; //#11596 - var _2L = $d(); //#11596 - $k[$j++] = _2L; //#11599 - if (!$_.dontdraw) { //#11599 - bwipp_renlinear(); //#11599 - } //#11599 - $_ = Object.getPrototypeOf($_); //#11601 - $_ = Object.getPrototypeOf($_); //#11603 -} - -function bwipp_royalmail() { - $_ = Object.create($_); //#11633 - $_.dontdraw = false; //#11636 - $_.includetext = false; //#11637 - $_.validatecheck = false; //#11638 - $_.includecheckintext = false; //#11639 - $_.textfont = "OCR-B"; //#11640 - $_.textsize = 10; //#11641 - $_.textyoffset = -8; //#11642 - $_.height = 0.175; //#11643 - $k[$j++] = $_; //#11645 - bwipp_processoptions(); //#11645 - $_.options = $k[--$j]; //#11645 - var _1 = $k[--$j]; //#11646 - $_.barcode = _1; //#11646 - bwipp_loadctx(bwipp_royalmail) //#11648 - if (!bwipp_royalmail.__11666__) { //#11666 - $_ = Object.create($_); //#11666 - $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11652 - $_.charvals = new Map; //#11653 - for (var _2 = 0; _2 <= 35; _2 += 1) { //#11654 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#11654 - } //#11654 - $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11665 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11665 - bwipp_royalmail.__11666__ = 1; //#11665 - $_ = Object.getPrototypeOf($_); //#11665 - } //#11665 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#11673 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#11670 - if (!_E) { //#11672 - $k[$j++] = 'bwipp.royalmailBadCharacter#11671'; //#11671 - $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11671 - bwipp_raiseerror(); //#11671 - } //#11671 - } //#11671 - $k[$j++] = 'barlen'; //#11675 - $k[$j++] = $_.barcode.length; //#11675 - if ($_.validatecheck) { //#11675 - var _H = $k[--$j]; //#11675 - $k[$j++] = $f(_H - 1); //#11675 - } //#11675 - var _I = $k[--$j]; //#11675 - $_[$k[--$j]] = _I; //#11675 - $_.checksumrow = 0; //#11677 - $_.checksumcol = 0; //#11678 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#11684 - $_.i = _M; //#11680 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11681 - $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11682 - $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11683 - } //#11683 - $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11685 - if ($_.validatecheck) { //#11691 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11689 - $k[$j++] = 'bwipp.royalmailBadCheckDigit#11688'; //#11688 - $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11688 - bwipp_raiseerror(); //#11688 - } //#11688 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11690 - } //#11690 - $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11693 - $_.txt = $a($f($_.barlen + 1)); //#11694 - $puti($_.encstr, 0, $get($_.encs, 36)); //#11697 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11704 - $_.i = _r; //#11700 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11701 - $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11702 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11703 - } //#11703 - $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11707 - if ($_.includecheckintext) { //#11711 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11709 - } else { //#11711 - $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11711 - } //#11711 - $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11715 - $_.bbs = $a($_.encstr.length); //#11717 - $_.bhs = $a($_.encstr.length); //#11718 - for (var _1j = 0, _1i = $_.encstr.length - 1; _1j <= _1i; _1j += 1) { //#11738 - $_.i = _1j; //#11720 - $_.enc = $geti($_.encstr, $_.i, 1); //#11721 - if ($eq($_.enc, "0")) { //#11725 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11723 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11724 - } //#11724 - if ($eq($_.enc, "1")) { //#11729 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11727 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11728 - } //#11728 - if ($eq($_.enc, "2")) { //#11733 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11731 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11732 - } //#11732 - if ($eq($_.enc, "3")) { //#11737 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11735 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11736 - } //#11736 - } //#11736 - $k[$j++] = Infinity; //#11749 - var _2F = $_.bbs; //#11743 - var _2G = $_.bhs; //#11744 - $k[$j++] = Infinity; //#11745 - for (var _2I = 0, _2J = $_.bhs.length - 1; _2I < _2J; _2I++) { //#11745 - $k[$j++] = 1.44; //#11745 - $k[$j++] = 1.872; //#11745 - } //#11745 - $k[$j++] = 1.44; //#11745 - var _2K = $a(); //#11745 - $k[$j++] = 'ren'; //#11748 - $k[$j++] = bwipp_renlinear; //#11748 - $k[$j++] = 'bbs'; //#11748 - $k[$j++] = _2F; //#11748 - $k[$j++] = 'bhs'; //#11748 - $k[$j++] = _2G; //#11748 - $k[$j++] = 'sbs'; //#11748 - $k[$j++] = _2K; //#11748 - if ($_.includetext) { //#11748 - $k[$j++] = 'txt'; //#11747 - $k[$j++] = $_.txt; //#11747 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11593 + if ($_.includecheckintext) { //#11598 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11596 + } else { //#11598 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11598 + } //#11598 + $_.enc = $get($_.encs, 11); //#11602 + $_.heights = $a($_.enc.length); //#11603 + for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11607 + $_.j = _20; //#11605 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11606 + } //#11606 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11608 + $k[$j++] = Infinity; //#11611 + var _2A = $_.bhs; //#11613 + $k[$j++] = Infinity; //#11614 + for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11614 + $k[$j++] = 0; //#11614 + } //#11614 + var _2E = $a(); //#11614 + $k[$j++] = Infinity; //#11615 + for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11615 + $k[$j++] = 1.44; //#11615 + $k[$j++] = 1.872; //#11615 + } //#11615 + $k[$j++] = 1.44; //#11615 + var _2I = $a(); //#11615 + $k[$j++] = 'ren'; //#11618 + $k[$j++] = bwipp_renlinear; //#11618 + $k[$j++] = 'bhs'; //#11618 + $k[$j++] = _2A; //#11618 + $k[$j++] = 'bbs'; //#11618 + $k[$j++] = _2E; //#11618 + $k[$j++] = 'sbs'; //#11618 + $k[$j++] = _2I; //#11618 + if ($_.includetext) { //#11618 + $k[$j++] = 'txt'; //#11617 + $k[$j++] = $_.txt; //#11617 + } //#11617 + $k[$j++] = 'opt'; //#11619 + $k[$j++] = $_.options; //#11619 + var _2M = $d(); //#11619 + $k[$j++] = _2M; //#11622 + if (!$_.dontdraw) { //#11622 + bwipp_renlinear(); //#11622 + } //#11622 + $_ = Object.getPrototypeOf($_); //#11624 + $_ = Object.getPrototypeOf($_); //#11626 +} //bwipp_postnet +function bwipp_planet() { + $_ = Object.create($_); //#11656 + $_.dontdraw = false; //#11659 + $_.includetext = false; //#11660 + $_.validatecheck = false; //#11661 + $_.includecheckintext = false; //#11662 + $_.textfont = "OCR-B"; //#11663 + $_.textsize = 10; //#11664 + $_.textyoffset = -8; //#11665 + $_.height = 0.125; //#11666 + $k[$j++] = $_; //#11668 + bwipp_processoptions(); //#11668 + $_.options = $k[--$j]; //#11668 + $_.barcode = $k[--$j]; //#11669 + bwipp_loadctx(bwipp_planet) //#11671 + $k[$j++] = 'barlen'; //#11673 + $k[$j++] = $_.barcode.length; //#11673 + if ($_.validatecheck) { //#11673 + var _4 = $k[--$j]; //#11673 + $k[$j++] = $f(_4 - 1); //#11673 + } //#11673 + var _5 = $k[--$j]; //#11673 + $_[$k[--$j]] = _5; //#11673 + if (($_.barlen != 11) && ($_.barlen != 13)) { //#11678 + $k[$j++] = 'bwipp.planetBadLength#11677'; //#11677 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11677 + bwipp_raiseerror(); //#11677 + } //#11677 + $forall($_.barcode, function() { //#11683 + var _A = $k[--$j]; //#11680 + if ((_A < 48) || (_A > 57)) { //#11682 + $k[$j++] = 'bwipp.planetBadCharacter#11681'; //#11681 + $k[$j++] = "USPS PLANET must contain only digits"; //#11681 + bwipp_raiseerror(); //#11681 + } //#11681 + }); //#11681 + if (!bwipp_planet.__11695__) { //#11695 + $_ = Object.create($_); //#11695 + $_.barchars = "0123456789"; //#11687 + $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11694 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11694 + bwipp_planet.__11695__ = 1; //#11694 + $_ = Object.getPrototypeOf($_); //#11694 + } //#11694 + $_.checksum = 0; //#11698 + for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11702 + $_.i = _F; //#11700 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11701 + } //#11701 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11703 + if ($_.validatecheck) { //#11709 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11707 + $k[$j++] = 'bwipp.planetBadCheckDigit#11706'; //#11706 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11706 + bwipp_raiseerror(); //#11706 + } //#11706 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11708 + } //#11708 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11711 + $_.txt = $a($f($_.barlen + 1)); //#11712 + $_.enc = $get($_.encs, 10); //#11715 + $_.heights = $a($_.enc.length); //#11716 + for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11720 + $_.j = _f; //#11718 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11719 + } //#11719 + $puti($_.bhs, 0, $_.heights); //#11721 + for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11733 + $_.i = _q; //#11724 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11725 + $_.heights = $a($_.enc.length); //#11726 + for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11730 + $_.j = _10; //#11728 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11729 + } //#11729 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11731 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11732 + } //#11732 + $_.enc = $get($_.encs, $_.checksum); //#11736 + $_.heights = $a($_.enc.length); //#11737 + for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11741 + $_.j = _1R; //#11739 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11740 + } //#11740 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11742 + if ($_.includecheckintext) { //#11747 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11745 + } else { //#11747 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11747 } //#11747 - $k[$j++] = 'opt'; //#11749 - $k[$j++] = $_.options; //#11749 - var _2O = $d(); //#11749 - $k[$j++] = _2O; //#11752 - if (!$_.dontdraw) { //#11752 - bwipp_renlinear(); //#11752 - } //#11752 - $_ = Object.getPrototypeOf($_); //#11754 - $_ = Object.getPrototypeOf($_); //#11756 -} - + $_.enc = $get($_.encs, 11); //#11751 + $_.heights = $a($_.enc.length); //#11752 + for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11756 + $_.j = _1z; //#11754 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11755 + } //#11755 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11757 + $k[$j++] = Infinity; //#11760 + var _29 = $_.bhs; //#11762 + $k[$j++] = Infinity; //#11763 + for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11763 + $k[$j++] = 0; //#11763 + } //#11763 + var _2D = $a(); //#11763 + $k[$j++] = Infinity; //#11764 + for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11764 + $k[$j++] = 1.44; //#11764 + $k[$j++] = 1.872; //#11764 + } //#11764 + $k[$j++] = 1.44; //#11764 + var _2H = $a(); //#11764 + $k[$j++] = 'ren'; //#11767 + $k[$j++] = bwipp_renlinear; //#11767 + $k[$j++] = 'bhs'; //#11767 + $k[$j++] = _29; //#11767 + $k[$j++] = 'bbs'; //#11767 + $k[$j++] = _2D; //#11767 + $k[$j++] = 'sbs'; //#11767 + $k[$j++] = _2H; //#11767 + if ($_.includetext) { //#11767 + $k[$j++] = 'txt'; //#11766 + $k[$j++] = $_.txt; //#11766 + } //#11766 + $k[$j++] = 'opt'; //#11768 + $k[$j++] = $_.options; //#11768 + var _2L = $d(); //#11768 + $k[$j++] = _2L; //#11771 + if (!$_.dontdraw) { //#11771 + bwipp_renlinear(); //#11771 + } //#11771 + $_ = Object.getPrototypeOf($_); //#11773 + $_ = Object.getPrototypeOf($_); //#11775 +} //bwipp_planet +function bwipp_royalmail() { + $_ = Object.create($_); //#11805 + $_.dontdraw = false; //#11808 + $_.includetext = false; //#11809 + $_.validatecheck = false; //#11810 + $_.includecheckintext = false; //#11811 + $_.textfont = "OCR-B"; //#11812 + $_.textsize = 10; //#11813 + $_.textyoffset = -8; //#11814 + $_.height = 0.175; //#11815 + $k[$j++] = $_; //#11817 + bwipp_processoptions(); //#11817 + $_.options = $k[--$j]; //#11817 + $_.barcode = $k[--$j]; //#11818 + if ($eq($_.barcode, "")) { //#11822 + $k[$j++] = 'bwipp.royalmailEmptyData#11821'; //#11821 + $k[$j++] = "The data must not be empty"; //#11821 + bwipp_raiseerror(); //#11821 + } //#11821 + bwipp_loadctx(bwipp_royalmail) //#11824 + if (!bwipp_royalmail.__11842__) { //#11842 + $_ = Object.create($_); //#11842 + $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11828 + $_.charvals = new Map; //#11829 + for (var _3 = 0; _3 <= 35; _3 += 1) { //#11830 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#11830 + } //#11830 + $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11841 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11841 + bwipp_royalmail.__11842__ = 1; //#11841 + $_ = Object.getPrototypeOf($_); //#11841 + } //#11841 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#11849 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#11846 + if (!_F) { //#11848 + $k[$j++] = 'bwipp.royalmailBadCharacter#11847'; //#11847 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11847 + bwipp_raiseerror(); //#11847 + } //#11847 + } //#11847 + $k[$j++] = 'barlen'; //#11851 + $k[$j++] = $_.barcode.length; //#11851 + if ($_.validatecheck) { //#11851 + var _I = $k[--$j]; //#11851 + $k[$j++] = $f(_I - 1); //#11851 + } //#11851 + var _J = $k[--$j]; //#11851 + $_[$k[--$j]] = _J; //#11851 + $_.checksumrow = 0; //#11853 + $_.checksumcol = 0; //#11854 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#11860 + $_.i = _N; //#11856 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11857 + $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11858 + $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11859 + } //#11859 + $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11861 + if ($_.validatecheck) { //#11867 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11865 + $k[$j++] = 'bwipp.royalmailBadCheckDigit#11864'; //#11864 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11864 + bwipp_raiseerror(); //#11864 + } //#11864 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11866 + } //#11866 + $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11869 + $_.txt = $a($f($_.barlen + 1)); //#11870 + $puti($_.encstr, 0, $get($_.encs, 36)); //#11873 + for (var _s = 0, _r = $f($_.barlen - 1); _s <= _r; _s += 1) { //#11880 + $_.i = _s; //#11876 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11877 + $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11878 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11879 + } //#11879 + $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11883 + if ($_.includecheckintext) { //#11887 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11885 + } else { //#11887 + $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11887 + } //#11887 + $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11891 + $_.bbs = $a($_.encstr.length); //#11893 + $_.bhs = $a($_.encstr.length); //#11894 + for (var _1k = 0, _1j = $_.encstr.length - 1; _1k <= _1j; _1k += 1) { //#11914 + $_.i = _1k; //#11896 + $_.enc = $geti($_.encstr, $_.i, 1); //#11897 + if ($eq($_.enc, "0")) { //#11901 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11899 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11900 + } //#11900 + if ($eq($_.enc, "1")) { //#11905 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11903 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11904 + } //#11904 + if ($eq($_.enc, "2")) { //#11909 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11907 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11908 + } //#11908 + if ($eq($_.enc, "3")) { //#11913 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11911 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11912 + } //#11912 + } //#11912 + $k[$j++] = Infinity; //#11917 + var _2G = $_.bbs; //#11919 + var _2H = $_.bhs; //#11920 + $k[$j++] = Infinity; //#11921 + for (var _2J = 0, _2K = $_.bhs.length - 1; _2J < _2K; _2J++) { //#11921 + $k[$j++] = 1.44; //#11921 + $k[$j++] = 1.872; //#11921 + } //#11921 + $k[$j++] = 1.44; //#11921 + var _2L = $a(); //#11921 + $k[$j++] = 'ren'; //#11924 + $k[$j++] = bwipp_renlinear; //#11924 + $k[$j++] = 'bbs'; //#11924 + $k[$j++] = _2G; //#11924 + $k[$j++] = 'bhs'; //#11924 + $k[$j++] = _2H; //#11924 + $k[$j++] = 'sbs'; //#11924 + $k[$j++] = _2L; //#11924 + if ($_.includetext) { //#11924 + $k[$j++] = 'txt'; //#11923 + $k[$j++] = $_.txt; //#11923 + } //#11923 + $k[$j++] = 'opt'; //#11925 + $k[$j++] = $_.options; //#11925 + var _2P = $d(); //#11925 + $k[$j++] = _2P; //#11928 + if (!$_.dontdraw) { //#11928 + bwipp_renlinear(); //#11928 + } //#11928 + $_ = Object.getPrototypeOf($_); //#11930 + $_ = Object.getPrototypeOf($_); //#11932 +} //bwipp_royalmail function bwipp_auspost() { - $_ = Object.create($_); //#11786 - $_.dontdraw = false; //#11789 - $_.includetext = false; //#11790 - $_.textfont = "OCR-B"; //#11791 - $_.textsize = 10; //#11792 - $_.textyoffset = -8; //#11793 - $_.height = 0.175; //#11794 - $_.custinfoenc = "character"; //#11795 - $k[$j++] = $_; //#11797 - bwipp_processoptions(); //#11797 - $_.options = $k[--$j]; //#11797 - $_.barcode = $k[--$j]; //#11798 - if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11802 - $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11801'; //#11801 - $k[$j++] = "Customer information encoding must be either character or numeric"; //#11801 - bwipp_raiseerror(); //#11801 - } //#11801 - bwipp_loadctx(bwipp_auspost) //#11804 - if (!bwipp_auspost.__11827__) { //#11827 - $_ = Object.create($_); //#11827 - $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11819 - $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11822 + $_ = Object.create($_); //#11962 + $_.dontdraw = false; //#11965 + $_.includetext = false; //#11966 + $_.textfont = "OCR-B"; //#11967 + $_.textsize = 10; //#11968 + $_.textyoffset = -8; //#11969 + $_.height = 0.175; //#11970 + $_.custinfoenc = "character"; //#11971 + $k[$j++] = $_; //#11973 + bwipp_processoptions(); //#11973 + $_.options = $k[--$j]; //#11973 + $_.barcode = $k[--$j]; //#11974 + if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11978 + $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11977'; //#11977 + $k[$j++] = "Customer information encoding must be either character or numeric"; //#11977 + bwipp_raiseerror(); //#11977 + } //#11977 + bwipp_loadctx(bwipp_auspost) //#11980 + if (!bwipp_auspost.__12003__) { //#12003 + $_ = Object.create($_); //#12003 + $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11995 + $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11998 var _5 = new Map([ ["11", 37], ["45", 37], ["59", 52], ["62", 67] - ]); //#11825 - $_.fcclen = _5; //#11825 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11825 - bwipp_auspost.__11827__ = 1; //#11825 - $_ = Object.getPrototypeOf($_); //#11825 - } //#11825 - $_.barlen = $_.barcode.length; //#11829 - $_.txt = $a($_.barlen - 2); //#11830 - $k[$j++] = $_.fcclen; //#11832 - if ($_.barlen >= 2) { //#11832 - $k[$j++] = $geti($_.barcode, 0, 2); //#11832 - } else { //#11832 - $k[$j++] = ""; //#11832 - } //#11832 - var _E = $k[--$j]; //#11833 - var _F = $k[--$j]; //#11833 - var _G = $get(_F, _E) !== undefined; //#11833 - $k[$j++] = _F; //#11835 - $k[$j++] = _E; //#11835 - if (!_G) { //#11835 - $j -= 2; //#11834 - $k[$j++] = 'bwipp.auspostBadFCC#11834'; //#11834 - $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#11834 - bwipp_raiseerror(); //#11834 - } //#11834 - var _H = $k[--$j]; //#11836 - $_.encstr = $s($get($k[--$j], _H)); //#11836 - $k[$j++] = true; //#11843 - for (var _L = 0, _M = 1; _L < _M; _L++) { //#11843 - if ($_.barlen < 10) { //#11841 - $j--; //#11841 - $k[$j++] = false; //#11841 - break; //#11841 - } //#11841 - var _P = $geti($_.barcode, 2, 8); //#11842 - for (var _Q = 0, _R = _P.length; _Q < _R; _Q++) { //#11842 - var _S = $get(_P, _Q); //#11842 - if ((_S < 48) || (_S > 57)) { //#11842 - $j--; //#11842 - $k[$j++] = false; //#11842 - break; //#11842 - } //#11842 - } //#11842 - } //#11842 - if ($nt($k[--$j])) { //#11846 - $k[$j++] = 'bwipp.auspostIncompleteDPID#11845'; //#11845 - $k[$j++] = "The DPID must be 8 digits"; //#11845 - bwipp_raiseerror(); //#11845 - } //#11845 - var _W = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#11849 - if ((($_.barlen - 10) * _W) > (($_.encstr.length - 22) - 14)) { //#11852 - $k[$j++] = 'bwipp.auspostTooLong#11851'; //#11851 - $k[$j++] = "The message is too long"; //#11851 - bwipp_raiseerror(); //#11851 - } //#11851 - $puti($_.encstr, 0, $get($_.encs, 74)); //#11855 - for (var _b = 0; _b <= 1; _b += 1) { //#11862 - $_.i = _b; //#11859 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11861 - } //#11861 - for (var _j = 2; _j <= 9; _j += 1) { //#11870 - $_.i = _j; //#11866 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11868 - $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11869 - } //#11869 - if ($eq($_.custinfoenc, "numeric")) { //#11898 - for (var _14 = 0, _13 = $_.barlen - 11; _14 <= _13; _14 += 1) { //#11883 - $_.i = _14; //#11875 - var _18 = $get($_.barcode, $_.i + 10); //#11876 - $k[$j++] = $_.encs; //#11879 - $k[$j++] = _18; //#11879 - if ((_18 < 48) || (_18 > 57)) { //#11879 - $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#11878'; //#11878 - $k[$j++] = "The customer information data contains a non-digit character"; //#11878 - bwipp_raiseerror(); //#11878 - } //#11878 - var _19 = $k[--$j]; //#11880 - $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_19 - 48) + 64))); //#11881 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11882 - } //#11882 - $_.ciflen = ($_.barlen - 10) * 2; //#11884 - } else { //#11898 - for (var _1R = 0, _1Q = $_.barlen - 11; _1R <= _1Q; _1R += 1) { //#11897 - $_.i = _1R; //#11887 - $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#11888 - if ($nt($k[--$j])) { //#11891 - $j--; //#11890 - $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#11890'; //#11890 - $k[$j++] = "The customer information contains an invalid character"; //#11890 - bwipp_raiseerror(); //#11890 - } //#11890 - $_.indx = $k[--$j].length; //#11892 - $j -= 2; //#11893 - $_.enc = $get($_.encs, $_.indx); //#11894 - $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#11895 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11896 - } //#11896 - $_.ciflen = ($_.barlen - 10) * 3; //#11898 - } //#11898 - for (var _1s = 22 + $_.ciflen, _1r = $_.encstr.length - 14; _1s <= _1r; _1s += 1) { //#11904 - $puti($_.encstr, _1s, $get($_.encs, 75)); //#11903 - } //#11903 - if (!bwipp_auspost.__11927__) { //#11927 - $_ = Object.create($_); //#11927 - $_.rstable = $a(64 * 64); //#11908 - $k[$j++] = $_.rstable; //#11909 - $k[$j++] = 0; //#11909 - $k[$j++] = Infinity; //#11909 - for (var _1y = 0, _1z = 64; _1y < _1z; _1y++) { //#11909 - $k[$j++] = 0; //#11909 - } //#11909 - var _20 = $a(); //#11909 - var _21 = $k[--$j]; //#11909 - $puti($k[--$j], _21, _20); //#11909 - $k[$j++] = $_.rstable; //#11910 - $k[$j++] = 64; //#11910 - $k[$j++] = Infinity; //#11910 - for (var _24 = 0; _24 <= 63; _24 += 1) { //#11910 - $k[$j++] = _24; //#11910 - } //#11910 - var _25 = $a(); //#11910 - var _26 = $k[--$j]; //#11910 - $puti($k[--$j], _26, _25); //#11910 - $_.prev = 1; //#11911 - for (var _28 = 0, _29 = 64; _28 < _29; _28++) { //#11926 - $_.next = $_.prev << 1; //#11913 - if (($_.next & 64) != 0) { //#11916 - $_.next = $_.next ^ 67; //#11915 - } //#11915 - for (var _2D = 0; _2D <= 63; _2D += 1) { //#11924 - $_.j = _2D; //#11918 - $_.nextcell = function() { - $k[$j++] = $_.rstable; //#11919 - $k[$j++] = (64 * $_.next) + $_.j; //#11919 - }; //#11919 - $_.nextcell(); //#11920 - var _2L = $k[--$j]; //#11920 - $put($k[--$j], _2L, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#11920 - $_.nextcell(); //#11921 - var _2N = $k[--$j]; //#11921 - if (($get($k[--$j], _2N) & 64) != 0) { //#11923 - $_.nextcell(); //#11922 - $_.nextcell(); //#11922 - var _2Q = $k[--$j]; //#11922 - var _2S = $get($k[--$j], _2Q); //#11922 - var _2T = $k[--$j]; //#11922 - $put($k[--$j], _2T, _2S ^ 67); //#11922 - } //#11922 - } //#11922 - $_.prev = $_.next; //#11925 - } //#11925 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11925 - bwipp_auspost.__11927__ = 1; //#11925 - $_ = Object.getPrototypeOf($_); //#11925 - } //#11925 - $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#11930 - $k[$j++] = $_.rscodes; //#11931 - $k[$j++] = 0; //#11931 - $k[$j++] = Infinity; //#11931 - for (var _2a = 0, _2b = 4; _2a < _2b; _2a++) { //#11931 - $k[$j++] = 0; //#11931 - } //#11931 - var _2c = $a(); //#11931 - var _2d = $k[--$j]; //#11931 - $puti($k[--$j], _2d, _2c); //#11931 - for (var _2h = 2, _2g = $_.encstr.length - 16; _2h <= _2g; _2h += 3) { //#11939 - $_.i = _2h; //#11933 - $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#11938 - } //#11938 - for (var _2v = $_.rscodes.length - 5; _2v >= 0; _2v -= 1) { //#11948 - $_.i = _2v; //#11941 - for (var _2w = 0; _2w <= 4; _2w += 1) { //#11947 - $_.j = _2w; //#11943 - $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#11946 - } //#11946 - } //#11946 - $_.checkcode = $strcpy($s(12), "000000000000"); //#11949 - for (var _3E = 0; _3E <= 3; _3E += 1) { //#11954 - $_.i = _3E; //#11951 - $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#11952 - $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#11953 - } //#11953 - $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#11957 - $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#11958 - $_.bbs = $a($_.encstr.length); //#11960 - $_.bhs = $a($_.encstr.length); //#11961 - for (var _3b = 0, _3a = $_.encstr.length - 1; _3b <= _3a; _3b += 1) { //#11981 - $_.i = _3b; //#11963 - $_.enc = $geti($_.encstr, $_.i, 1); //#11964 - if ($eq($_.enc, "0")) { //#11968 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11966 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11967 - } //#11967 - if ($eq($_.enc, "1")) { //#11972 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11970 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11971 - } //#11971 - if ($eq($_.enc, "2")) { //#11976 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11974 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11975 - } //#11975 - if ($eq($_.enc, "3")) { //#11980 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11978 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11979 - } //#11979 - } //#11979 - $k[$j++] = Infinity; //#11992 - var _47 = $_.bbs; //#11986 - var _48 = $_.bhs; //#11987 - $k[$j++] = Infinity; //#11988 - for (var _4A = 0, _4B = $_.bhs.length - 1; _4A < _4B; _4A++) { //#11988 - $k[$j++] = 1.44; //#11988 - $k[$j++] = 1.872; //#11988 - } //#11988 - $k[$j++] = 1.44; //#11988 - var _4C = $a(); //#11988 - $k[$j++] = 'ren'; //#11991 - $k[$j++] = bwipp_renlinear; //#11991 - $k[$j++] = 'bbs'; //#11991 - $k[$j++] = _47; //#11991 - $k[$j++] = 'bhs'; //#11991 - $k[$j++] = _48; //#11991 - $k[$j++] = 'sbs'; //#11991 - $k[$j++] = _4C; //#11991 - if ($_.includetext) { //#11991 - $k[$j++] = 'txt'; //#11990 - $k[$j++] = $_.txt; //#11990 - } //#11990 - $k[$j++] = 'opt'; //#11992 - $k[$j++] = $_.options; //#11992 - var _4G = $d(); //#11992 - $k[$j++] = _4G; //#11995 - if (!$_.dontdraw) { //#11995 - bwipp_renlinear(); //#11995 - } //#11995 - $_ = Object.getPrototypeOf($_); //#11997 - $_ = Object.getPrototypeOf($_); //#11999 -} - -function bwipp_kix() { - $_ = Object.create($_); //#12029 - $_.dontdraw = false; //#12032 - $_.includetext = false; //#12033 - $_.textfont = "OCR-B"; //#12034 - $_.textsize = 10; //#12035 - $_.textyoffset = -8; //#12036 - $_.height = 0.175; //#12037 - $k[$j++] = $_; //#12039 - bwipp_processoptions(); //#12039 - $_.options = $k[--$j]; //#12039 - var _1 = $k[--$j]; //#12040 - $_.barcode = _1; //#12040 - bwipp_loadctx(bwipp_kix) //#12042 - if (!bwipp_kix.__12059__) { //#12059 - $_ = Object.create($_); //#12059 - $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12053 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12056 - $_.charvals = new Map; //#12057 - for (var _3 = 0; _3 <= 35; _3 += 1) { //#12058 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12058 - } //#12058 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12058 - bwipp_kix.__12059__ = 1; //#12058 - $_ = Object.getPrototypeOf($_); //#12058 - } //#12058 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12066 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12063 - if (!_E) { //#12065 - $k[$j++] = 'bwipp.kixBadCharacter#12064'; //#12064 - $k[$j++] = "KIX must contain only capital letters and digits"; //#12064 - bwipp_raiseerror(); //#12064 - } //#12064 - } //#12064 - $_.barlen = $_.barcode.length; //#12068 - $_.encstr = $s($_.barlen * 4); //#12069 - $_.txt = $a($_.barlen); //#12070 - for (var _M = 0, _L = $_.barlen - 1; _M <= _L; _M += 1) { //#12077 - $_.i = _M; //#12073 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12074 - $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12075 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 - } //#12076 - $_.bbs = $a($_.encstr.length); //#12079 - $_.bhs = $a($_.encstr.length); //#12080 - for (var _n = 0, _m = $_.encstr.length - 1; _n <= _m; _n += 1) { //#12100 - $_.i = _n; //#12082 - $_.enc = $geti($_.encstr, $_.i, 1); //#12083 - if ($eq($_.enc, "0")) { //#12087 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12085 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12086 - } //#12086 - if ($eq($_.enc, "1")) { //#12091 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12089 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12090 + ]); //#12001 + $_.fcclen = _5; //#12001 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12001 + bwipp_auspost.__12003__ = 1; //#12001 + $_ = Object.getPrototypeOf($_); //#12001 + } //#12001 + $_.barlen = $_.barcode.length; //#12005 + if ($_.barlen < 10) { //#12008 + $k[$j++] = 'bwipp.auspostTooShort#12007'; //#12007 + $k[$j++] = "The data length must be at least 10"; //#12007 + bwipp_raiseerror(); //#12007 + } //#12007 + $_.txt = $a($_.barlen - 2); //#12010 + $k[$j++] = $_.fcclen; //#12012 + if ($_.barlen >= 2) { //#12012 + $k[$j++] = $geti($_.barcode, 0, 2); //#12012 + } else { //#12012 + $k[$j++] = ""; //#12012 + } //#12012 + var _F = $k[--$j]; //#12013 + var _G = $k[--$j]; //#12013 + var _H = $get(_G, _F) !== undefined; //#12013 + $k[$j++] = _G; //#12015 + $k[$j++] = _F; //#12015 + if (!_H) { //#12015 + $j -= 2; //#12014 + $k[$j++] = 'bwipp.auspostBadFCC#12014'; //#12014 + $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#12014 + bwipp_raiseerror(); //#12014 + } //#12014 + var _I = $k[--$j]; //#12016 + $_.encstr = $s($get($k[--$j], _I)); //#12016 + $k[$j++] = true; //#12023 + for (var _M = 0, _N = 1; _M < _N; _M++) { //#12023 + if ($_.barlen < 10) { //#12021 + $j--; //#12021 + $k[$j++] = false; //#12021 + break; //#12021 + } //#12021 + var _Q = $geti($_.barcode, 2, 8); //#12022 + for (var _R = 0, _S = _Q.length; _R < _S; _R++) { //#12022 + var _T = $get(_Q, _R); //#12022 + if ((_T < 48) || (_T > 57)) { //#12022 + $j--; //#12022 + $k[$j++] = false; //#12022 + break; //#12022 + } //#12022 + } //#12022 + } //#12022 + if ($nt($k[--$j])) { //#12026 + $k[$j++] = 'bwipp.auspostIncompleteDPID#12025'; //#12025 + $k[$j++] = "The DPID must be 8 digits"; //#12025 + bwipp_raiseerror(); //#12025 + } //#12025 + var _X = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#12029 + if ((($_.barlen - 10) * _X) > (($_.encstr.length - 22) - 14)) { //#12032 + $k[$j++] = 'bwipp.auspostTooLong#12031'; //#12031 + $k[$j++] = "The message is too long"; //#12031 + bwipp_raiseerror(); //#12031 + } //#12031 + $puti($_.encstr, 0, $get($_.encs, 74)); //#12035 + for (var _c = 0; _c <= 1; _c += 1) { //#12042 + $_.i = _c; //#12039 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12041 + } //#12041 + for (var _k = 2; _k <= 9; _k += 1) { //#12050 + $_.i = _k; //#12046 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12048 + $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12049 + } //#12049 + if ($eq($_.custinfoenc, "numeric")) { //#12078 + for (var _15 = 0, _14 = $_.barlen - 11; _15 <= _14; _15 += 1) { //#12063 + $_.i = _15; //#12055 + var _19 = $get($_.barcode, $_.i + 10); //#12056 + $k[$j++] = $_.encs; //#12059 + $k[$j++] = _19; //#12059 + if ((_19 < 48) || (_19 > 57)) { //#12059 + $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#12058'; //#12058 + $k[$j++] = "The customer information data contains a non-digit character"; //#12058 + bwipp_raiseerror(); //#12058 + } //#12058 + var _1A = $k[--$j]; //#12060 + $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_1A - 48) + 64))); //#12061 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12062 + } //#12062 + $_.ciflen = ($_.barlen - 10) * 2; //#12064 + } else { //#12078 + for (var _1S = 0, _1R = $_.barlen - 11; _1S <= _1R; _1S += 1) { //#12077 + $_.i = _1S; //#12067 + $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#12068 + if ($nt($k[--$j])) { //#12071 + $j--; //#12070 + $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#12070'; //#12070 + $k[$j++] = "The customer information contains an invalid character"; //#12070 + bwipp_raiseerror(); //#12070 + } //#12070 + $_.indx = $k[--$j].length; //#12072 + $j -= 2; //#12073 + $_.enc = $get($_.encs, $_.indx); //#12074 + $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#12075 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 + } //#12076 + $_.ciflen = ($_.barlen - 10) * 3; //#12078 + } //#12078 + for (var _1t = 22 + $_.ciflen, _1s = $_.encstr.length - 14; _1t <= _1s; _1t += 1) { //#12084 + $puti($_.encstr, _1t, $get($_.encs, 75)); //#12083 + } //#12083 + if (!bwipp_auspost.__12107__) { //#12107 + $_ = Object.create($_); //#12107 + $_.rstable = $a(64 * 64); //#12088 + $k[$j++] = $_.rstable; //#12089 + $k[$j++] = 0; //#12089 + $k[$j++] = Infinity; //#12089 + for (var _1z = 0, _20 = 64; _1z < _20; _1z++) { //#12089 + $k[$j++] = 0; //#12089 + } //#12089 + var _21 = $a(); //#12089 + var _22 = $k[--$j]; //#12089 + $puti($k[--$j], _22, _21); //#12089 + $k[$j++] = $_.rstable; //#12090 + $k[$j++] = 64; //#12090 + $k[$j++] = Infinity; //#12090 + for (var _25 = 0; _25 <= 63; _25 += 1) { //#12090 + $k[$j++] = _25; //#12090 } //#12090 - if ($eq($_.enc, "2")) { //#12095 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12093 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12094 - } //#12094 - if ($eq($_.enc, "3")) { //#12099 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12097 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12098 - } //#12098 - } //#12098 + var _26 = $a(); //#12090 + var _27 = $k[--$j]; //#12090 + $puti($k[--$j], _27, _26); //#12090 + $_.prev = 1; //#12091 + for (var _29 = 0, _2A = 64; _29 < _2A; _29++) { //#12106 + $_.next = $_.prev << 1; //#12093 + if (($_.next & 64) != 0) { //#12096 + $_.next = $_.next ^ 67; //#12095 + } //#12095 + for (var _2E = 0; _2E <= 63; _2E += 1) { //#12104 + $_.j = _2E; //#12098 + $_.nextcell = function() { + $k[$j++] = $_.rstable; //#12099 + $k[$j++] = (64 * $_.next) + $_.j; //#12099 + }; //#12099 + $_.nextcell(); //#12100 + var _2M = $k[--$j]; //#12100 + $put($k[--$j], _2M, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#12100 + $_.nextcell(); //#12101 + var _2O = $k[--$j]; //#12101 + if (($get($k[--$j], _2O) & 64) != 0) { //#12103 + $_.nextcell(); //#12102 + $_.nextcell(); //#12102 + var _2R = $k[--$j]; //#12102 + var _2T = $get($k[--$j], _2R); //#12102 + var _2U = $k[--$j]; //#12102 + $put($k[--$j], _2U, _2T ^ 67); //#12102 + } //#12102 + } //#12102 + $_.prev = $_.next; //#12105 + } //#12105 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12105 + bwipp_auspost.__12107__ = 1; //#12105 + $_ = Object.getPrototypeOf($_); //#12105 + } //#12105 + $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#12110 + $k[$j++] = $_.rscodes; //#12111 + $k[$j++] = 0; //#12111 $k[$j++] = Infinity; //#12111 - var _1J = $_.bbs; //#12105 - var _1K = $_.bhs; //#12106 - $k[$j++] = Infinity; //#12107 - for (var _1M = 0, _1N = $_.bhs.length - 1; _1M < _1N; _1M++) { //#12107 - $k[$j++] = 1.44; //#12107 - $k[$j++] = 1.872; //#12107 - } //#12107 - $k[$j++] = 1.44; //#12107 - var _1O = $a(); //#12107 - $k[$j++] = 'ren'; //#12110 - $k[$j++] = bwipp_renlinear; //#12110 - $k[$j++] = 'bbs'; //#12110 - $k[$j++] = _1J; //#12110 - $k[$j++] = 'bhs'; //#12110 - $k[$j++] = _1K; //#12110 - $k[$j++] = 'sbs'; //#12110 - $k[$j++] = _1O; //#12110 - if ($_.includetext) { //#12110 - $k[$j++] = 'txt'; //#12109 - $k[$j++] = $_.txt; //#12109 - } //#12109 - $k[$j++] = 'opt'; //#12111 - $k[$j++] = $_.options; //#12111 - var _1S = $d(); //#12111 - $k[$j++] = _1S; //#12114 - if (!$_.dontdraw) { //#12114 - bwipp_renlinear(); //#12114 - } //#12114 - $_ = Object.getPrototypeOf($_); //#12116 - $_ = Object.getPrototypeOf($_); //#12118 -} - -function bwipp_japanpost() { - $_ = Object.create($_); //#12148 - $_.dontdraw = false; //#12151 - $_.includetext = false; //#12152 - $_.includecheckintext = false; //#12153 - $_.textfont = "OCR-B"; //#12154 - $_.textsize = 10; //#12155 - $_.textyoffset = -8; //#12156 - $_.height = 0.175; //#12157 - $k[$j++] = $_; //#12159 - bwipp_processoptions(); //#12159 - $_.options = $k[--$j]; //#12159 - $_.barcode = $k[--$j]; //#12160 - bwipp_loadctx(bwipp_japanpost) //#12162 - $forall($_.barcode, function() { //#12171 - var _3 = $k[--$j]; //#12166 - if (!(((_3 >= 48) && (_3 <= 57)) || (((_3 >= 65) && (_3 <= 90)) || (_3 == 45)))) { //#12170 - $k[$j++] = 'bwipp.japanPostBadCharacter#12169'; //#12169 - $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12169 - if ('raiseerror'() === true) { - return true; - } //#12169 - } //#12169 - }); //#12169 - if (!bwipp_japanpost.__12183__) { //#12183 - $_ = Object.create($_); //#12183 - $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12179 - $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12182 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12182 - bwipp_japanpost.__12183__ = 1; //#12182 - $_ = Object.getPrototypeOf($_); //#12182 - } //#12182 - $_.barlen = $_.barcode.length; //#12185 - $_.encstr = $s(((20 + 1) * 3) + 4); //#12187 - $_.digits = $a(20); //#12188 - $_.txt = $a($_.barlen + 1); //#12189 - $puti($_.encstr, 0, $get($_.encs, 19)); //#12192 - $_.checksum = 0; //#12194 - $_.j = 0; //#12195 - $_.i = 0; //#12195 - $k[$j++] = true; //#12230 - for (var _G = 0, _F = $_.barlen - 1; _G <= _F; _G += 1) { //#12230 - $_.i = _G; //#12198 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12199 - $j--; //#12200 - $_.indx = $k[--$j].length; //#12201 - $j -= 2; //#12202 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12213 - if ($_.j > 18) { //#12204 - $j--; //#12204 - $k[$j++] = false; //#12204 - break; //#12204 - } //#12204 - $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12208 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12209 - $_.checksum = $_.checksum + $_.digit; //#12210 - $put($_.digits, $_.j, $_.digit); //#12211 - $_.j = $_.j + 1; //#12212 - } //#12212 - if ($_.j > 19) { //#12214 - $j--; //#12214 - $k[$j++] = false; //#12214 - break; //#12214 - } //#12214 - $_.digit = 0; //#12215 - if ($_.indx == 37) { //#12218 - $_.digit = 14; //#12217 - } //#12217 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12221 - $_.digit = ($_.indx - 1) % 10; //#12220 - } //#12220 - if ($_.indx < 11) { //#12224 - $_.digit = $_.indx; //#12223 - } //#12223 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12225 - $_.checksum = $_.checksum + $_.digit; //#12226 - $put($_.digits, $_.j, $_.digit); //#12227 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12228 - $_.j = $_.j + 1; //#12229 - } //#12229 - if ($nt($k[--$j])) { //#12234 - $k[$j++] = 'bwipp.japanpostTooLong#12233'; //#12233 - $k[$j++] = "The input is too long"; //#12233 - bwipp_raiseerror(); //#12233 - } //#12233 - for (var _16 = $_.j, _15 = 20 - 1; _16 <= _15; _16 += 1) { //#12242 - $_.k = _16; //#12238 - $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12239 - $_.checksum = $_.checksum + 14; //#12240 - $put($_.digits, $_.k, 14); //#12241 - } //#12241 - $_.checksum = 19 - ($_.checksum % 19); //#12245 - $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12246 - $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12249 - $_.checkdigit = " "; //#12250 - if ($_.includecheckintext) { //#12253 - $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12252 - } //#12252 - $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12254 - $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12257 - $_.bbs = $a((21 * 3) + 4); //#12259 - $_.bhs = $a($_.bbs.length); //#12260 - for (var _1f = 0, _1e = $_.bbs.length - 1; _1f <= _1e; _1f += 1) { //#12284 - $_.i = _1f; //#12262 - $_.enc = $geti($_.encstr, $_.i, 1); //#12263 - $_.bunit = 0; //#12264 - $_.hunit = 0; //#12265 - if ($eq($_.enc, "0")) { //#12269 - $_.bunit = 3; //#12267 - $_.hunit = 2; //#12268 - } //#12268 - if ($eq($_.enc, "1")) { //#12273 - $_.bunit = 0; //#12271 - $_.hunit = 5; //#12272 - } //#12272 - if ($eq($_.enc, "2")) { //#12277 - $_.bunit = 3; //#12275 - $_.hunit = 5; //#12276 - } //#12276 - if ($eq($_.enc, "3")) { //#12281 - $_.bunit = 0; //#12279 - $_.hunit = 8; //#12280 - } //#12280 - $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12282 - $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12283 - } //#12283 - $k[$j++] = Infinity; //#12295 - var _1v = $_.bbs; //#12289 - var _1w = $_.bhs; //#12290 + for (var _2b = 0, _2c = 4; _2b < _2c; _2b++) { //#12111 + $k[$j++] = 0; //#12111 + } //#12111 + var _2d = $a(); //#12111 + var _2e = $k[--$j]; //#12111 + $puti($k[--$j], _2e, _2d); //#12111 + for (var _2i = 2, _2h = $_.encstr.length - 16; _2i <= _2h; _2i += 3) { //#12119 + $_.i = _2i; //#12113 + $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#12118 + } //#12118 + for (var _2w = $_.rscodes.length - 5; _2w >= 0; _2w -= 1) { //#12128 + $_.i = _2w; //#12121 + for (var _2x = 0; _2x <= 4; _2x += 1) { //#12127 + $_.j = _2x; //#12123 + $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#12126 + } //#12126 + } //#12126 + $_.checkcode = $strcpy($s(12), "000000000000"); //#12129 + for (var _3F = 0; _3F <= 3; _3F += 1) { //#12134 + $_.i = _3F; //#12131 + $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#12132 + $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#12133 + } //#12133 + $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#12137 + $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#12138 + $_.bbs = $a($_.encstr.length); //#12140 + $_.bhs = $a($_.encstr.length); //#12141 + for (var _3c = 0, _3b = $_.encstr.length - 1; _3c <= _3b; _3c += 1) { //#12161 + $_.i = _3c; //#12143 + $_.enc = $geti($_.encstr, $_.i, 1); //#12144 + if ($eq($_.enc, "0")) { //#12148 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12146 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12147 + } //#12147 + if ($eq($_.enc, "1")) { //#12152 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12150 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12151 + } //#12151 + if ($eq($_.enc, "2")) { //#12156 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12154 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12155 + } //#12155 + if ($eq($_.enc, "3")) { //#12160 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12158 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12159 + } //#12159 + } //#12159 + $k[$j++] = Infinity; //#12164 + var _48 = $_.bbs; //#12166 + var _49 = $_.bhs; //#12167 + $k[$j++] = Infinity; //#12168 + for (var _4B = 0, _4C = $_.bhs.length - 1; _4B < _4C; _4B++) { //#12168 + $k[$j++] = 1.44; //#12168 + $k[$j++] = 1.872; //#12168 + } //#12168 + $k[$j++] = 1.44; //#12168 + var _4D = $a(); //#12168 + $k[$j++] = 'ren'; //#12171 + $k[$j++] = bwipp_renlinear; //#12171 + $k[$j++] = 'bbs'; //#12171 + $k[$j++] = _48; //#12171 + $k[$j++] = 'bhs'; //#12171 + $k[$j++] = _49; //#12171 + $k[$j++] = 'sbs'; //#12171 + $k[$j++] = _4D; //#12171 + if ($_.includetext) { //#12171 + $k[$j++] = 'txt'; //#12170 + $k[$j++] = $_.txt; //#12170 + } //#12170 + $k[$j++] = 'opt'; //#12172 + $k[$j++] = $_.options; //#12172 + var _4H = $d(); //#12172 + $k[$j++] = _4H; //#12175 + if (!$_.dontdraw) { //#12175 + bwipp_renlinear(); //#12175 + } //#12175 + $_ = Object.getPrototypeOf($_); //#12177 + $_ = Object.getPrototypeOf($_); //#12179 +} //bwipp_auspost +function bwipp_kix() { + $_ = Object.create($_); //#12209 + $_.dontdraw = false; //#12212 + $_.includetext = false; //#12213 + $_.textfont = "OCR-B"; //#12214 + $_.textsize = 10; //#12215 + $_.textyoffset = -8; //#12216 + $_.height = 0.175; //#12217 + $k[$j++] = $_; //#12219 + bwipp_processoptions(); //#12219 + $_.options = $k[--$j]; //#12219 + $_.barcode = $k[--$j]; //#12220 + if ($eq($_.barcode, "")) { //#12224 + $k[$j++] = 'bwipp.kixEmptyData#12223'; //#12223 + $k[$j++] = "The data must not be empty"; //#12223 + bwipp_raiseerror(); //#12223 + } //#12223 + bwipp_loadctx(bwipp_kix) //#12226 + if (!bwipp_kix.__12243__) { //#12243 + $_ = Object.create($_); //#12243 + $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12237 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12240 + $_.charvals = new Map; //#12241 + for (var _4 = 0; _4 <= 35; _4 += 1) { //#12242 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#12242 + } //#12242 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12242 + bwipp_kix.__12243__ = 1; //#12242 + $_ = Object.getPrototypeOf($_); //#12242 + } //#12242 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12250 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12247 + if (!_F) { //#12249 + $k[$j++] = 'bwipp.kixBadCharacter#12248'; //#12248 + $k[$j++] = "KIX must contain only capital letters and digits"; //#12248 + bwipp_raiseerror(); //#12248 + } //#12248 + } //#12248 + $_.barlen = $_.barcode.length; //#12252 + $_.encstr = $s($_.barlen * 4); //#12253 + $_.txt = $a($_.barlen); //#12254 + for (var _N = 0, _M = $_.barlen - 1; _N <= _M; _N += 1) { //#12261 + $_.i = _N; //#12257 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12258 + $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12259 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12260 + } //#12260 + $_.bbs = $a($_.encstr.length); //#12263 + $_.bhs = $a($_.encstr.length); //#12264 + for (var _o = 0, _n = $_.encstr.length - 1; _o <= _n; _o += 1) { //#12284 + $_.i = _o; //#12266 + $_.enc = $geti($_.encstr, $_.i, 1); //#12267 + if ($eq($_.enc, "0")) { //#12271 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12269 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12270 + } //#12270 + if ($eq($_.enc, "1")) { //#12275 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12273 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12274 + } //#12274 + if ($eq($_.enc, "2")) { //#12279 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12277 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12278 + } //#12278 + if ($eq($_.enc, "3")) { //#12283 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12281 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12282 + } //#12282 + } //#12282 + $k[$j++] = Infinity; //#12287 + var _1K = $_.bbs; //#12289 + var _1L = $_.bhs; //#12290 $k[$j++] = Infinity; //#12291 - for (var _1y = 0, _1z = $_.bhs.length - 1; _1y < _1z; _1y++) { //#12291 + for (var _1N = 0, _1O = $_.bhs.length - 1; _1N < _1O; _1N++) { //#12291 $k[$j++] = 1.44; //#12291 $k[$j++] = 1.872; //#12291 } //#12291 $k[$j++] = 1.44; //#12291 - var _20 = $a(); //#12291 + var _1P = $a(); //#12291 $k[$j++] = 'ren'; //#12294 $k[$j++] = bwipp_renlinear; //#12294 $k[$j++] = 'bbs'; //#12294 - $k[$j++] = _1v; //#12294 + $k[$j++] = _1K; //#12294 $k[$j++] = 'bhs'; //#12294 - $k[$j++] = _1w; //#12294 + $k[$j++] = _1L; //#12294 $k[$j++] = 'sbs'; //#12294 - $k[$j++] = _20; //#12294 + $k[$j++] = _1P; //#12294 if ($_.includetext) { //#12294 $k[$j++] = 'txt'; //#12293 $k[$j++] = $_.txt; //#12293 } //#12293 $k[$j++] = 'opt'; //#12295 $k[$j++] = $_.options; //#12295 - var _24 = $d(); //#12295 - $k[$j++] = _24; //#12298 + var _1T = $d(); //#12295 + $k[$j++] = _1T; //#12298 if (!$_.dontdraw) { //#12298 bwipp_renlinear(); //#12298 } //#12298 $_ = Object.getPrototypeOf($_); //#12300 $_ = Object.getPrototypeOf($_); //#12302 -} - -function bwipp_msi() { +} //bwipp_kix +function bwipp_japanpost() { $_ = Object.create($_); //#12332 $_.dontdraw = false; //#12335 - $_.includecheck = false; //#12336 - $_.includetext = false; //#12337 - $_.includecheckintext = false; //#12338 - $_.checktype = "unset"; //#12339 - $_.badmod11 = false; //#12340 - $_.textfont = "OCR-B"; //#12341 - $_.textsize = 10; //#12342 - $_.textyoffset = -8; //#12343 - $_.height = 1; //#12344 - $k[$j++] = $_; //#12346 - bwipp_processoptions(); //#12346 - $_.options = $k[--$j]; //#12346 - $_.barcode = $k[--$j]; //#12347 - if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12351 - $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12350'; //#12350 - $k[$j++] = "checktype requires includecheck"; //#12350 - bwipp_raiseerror(); //#12350 - } //#12350 - if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12355 - $k[$j++] = 'bwipp.msiBadMod11Mismatch#12354'; //#12354 - $k[$j++] = "badmod11 requires checktype with mod11"; //#12354 - bwipp_raiseerror(); //#12354 - } //#12354 - if ($eq($_.checktype, "unset")) { //#12357 - $_.checktype = "mod10"; //#12357 - } //#12357 - bwipp_loadctx(bwipp_msi) //#12359 - $forall($_.barcode, function() { //#12366 - var _B = $k[--$j]; //#12363 - if ((_B < 48) || (_B > 57)) { //#12365 - $k[$j++] = 'bwipp.msiBadCharacter#12364'; //#12364 - $k[$j++] = "MSI must contain only digits"; //#12364 - bwipp_raiseerror(); //#12364 - } //#12364 - }); //#12364 - if (!bwipp_msi.__12378__) { //#12378 - $_ = Object.create($_); //#12378 - $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12374 - $_.barchars = "0123456789"; //#12377 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12377 - bwipp_msi.__12378__ = 1; //#12377 - $_ = Object.getPrototypeOf($_); //#12377 - } //#12377 - $_.barlen = $_.barcode.length; //#12380 - $_.txtlen = $_.barlen; //#12381 + $_.includetext = false; //#12336 + $_.includecheckintext = false; //#12337 + $_.textfont = "OCR-B"; //#12338 + $_.textsize = 10; //#12339 + $_.textyoffset = -8; //#12340 + $_.height = 0.175; //#12341 + $k[$j++] = $_; //#12343 + bwipp_processoptions(); //#12343 + $_.options = $k[--$j]; //#12343 + $_.barcode = $k[--$j]; //#12344 + if ($eq($_.barcode, "")) { //#12348 + $k[$j++] = 'bwipp.japanpostEmptyData#12347'; //#12347 + $k[$j++] = "The data must not be empty"; //#12347 + bwipp_raiseerror(); //#12347 + } //#12347 + bwipp_loadctx(bwipp_japanpost) //#12350 + $forall($_.barcode, function() { //#12359 + var _4 = $k[--$j]; //#12354 + if (!(((_4 >= 48) && (_4 <= 57)) || (((_4 >= 65) && (_4 <= 90)) || (_4 == 45)))) { //#12358 + $k[$j++] = 'bwipp.japanpostBadCharacter#12357'; //#12357 + $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12357 + bwipp_raiseerror(); //#12357 + } //#12357 + }); //#12357 + if (!bwipp_japanpost.__12371__) { //#12371 + $_ = Object.create($_); //#12371 + $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12367 + $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12370 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12370 + bwipp_japanpost.__12371__ = 1; //#12370 + $_ = Object.getPrototypeOf($_); //#12370 + } //#12370 + $_.barlen = $_.barcode.length; //#12373 + $_.encstr = $s(((20 + 1) * 3) + 4); //#12375 + $_.digits = $a(20); //#12376 + $_.txt = $a($_.barlen + 1); //#12377 + $puti($_.encstr, 0, $get($_.encs, 19)); //#12380 + $_.checksum = 0; //#12382 + $_.j = 0; //#12383 + $_.i = 0; //#12383 + $k[$j++] = true; //#12418 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#12418 + $_.i = _H; //#12386 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12387 + $j--; //#12388 + $_.indx = $k[--$j].length; //#12389 + $j -= 2; //#12390 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12401 + if ($_.j > 18) { //#12392 + $j--; //#12392 + $k[$j++] = false; //#12392 + break; //#12392 + } //#12392 + $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12396 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12397 + $_.checksum = $_.checksum + $_.digit; //#12398 + $put($_.digits, $_.j, $_.digit); //#12399 + $_.j = $_.j + 1; //#12400 + } //#12400 + if ($_.j > 19) { //#12402 + $j--; //#12402 + $k[$j++] = false; //#12402 + break; //#12402 + } //#12402 + $_.digit = 0; //#12403 + if ($_.indx == 37) { //#12406 + $_.digit = 14; //#12405 + } //#12405 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12409 + $_.digit = ($_.indx - 1) % 10; //#12408 + } //#12408 + if ($_.indx < 11) { //#12412 + $_.digit = $_.indx; //#12411 + } //#12411 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12413 + $_.checksum = $_.checksum + $_.digit; //#12414 + $put($_.digits, $_.j, $_.digit); //#12415 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12416 + $_.j = $_.j + 1; //#12417 + } //#12417 + if ($nt($k[--$j])) { //#12422 + $k[$j++] = 'bwipp.japanpostTooLong#12421'; //#12421 + $k[$j++] = "The input is too long"; //#12421 + bwipp_raiseerror(); //#12421 + } //#12421 + for (var _17 = $_.j, _16 = 20 - 1; _17 <= _16; _17 += 1) { //#12430 + $_.k = _17; //#12426 + $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12427 + $_.checksum = $_.checksum + 14; //#12428 + $put($_.digits, $_.k, 14); //#12429 + } //#12429 + $_.checksum = 19 - ($_.checksum % 19); //#12433 + $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12434 + $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12437 + $_.checkdigit = " "; //#12438 + if ($_.includecheckintext) { //#12441 + $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12440 + } //#12440 + $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12442 + $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12445 + $_.bbs = $a((21 * 3) + 4); //#12447 + $_.bhs = $a($_.bbs.length); //#12448 + for (var _1g = 0, _1f = $_.bbs.length - 1; _1g <= _1f; _1g += 1) { //#12472 + $_.i = _1g; //#12450 + $_.enc = $geti($_.encstr, $_.i, 1); //#12451 + $_.bunit = 0; //#12452 + $_.hunit = 0; //#12453 + if ($eq($_.enc, "0")) { //#12457 + $_.bunit = 3; //#12455 + $_.hunit = 2; //#12456 + } //#12456 + if ($eq($_.enc, "1")) { //#12461 + $_.bunit = 0; //#12459 + $_.hunit = 5; //#12460 + } //#12460 + if ($eq($_.enc, "2")) { //#12465 + $_.bunit = 3; //#12463 + $_.hunit = 5; //#12464 + } //#12464 + if ($eq($_.enc, "3")) { //#12469 + $_.bunit = 0; //#12467 + $_.hunit = 8; //#12468 + } //#12468 + $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12470 + $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12471 + } //#12471 + $k[$j++] = Infinity; //#12475 + var _1w = $_.bbs; //#12477 + var _1x = $_.bhs; //#12478 + $k[$j++] = Infinity; //#12479 + for (var _1z = 0, _20 = $_.bhs.length - 1; _1z < _20; _1z++) { //#12479 + $k[$j++] = 1.44; //#12479 + $k[$j++] = 1.872; //#12479 + } //#12479 + $k[$j++] = 1.44; //#12479 + var _21 = $a(); //#12479 + $k[$j++] = 'ren'; //#12482 + $k[$j++] = bwipp_renlinear; //#12482 + $k[$j++] = 'bbs'; //#12482 + $k[$j++] = _1w; //#12482 + $k[$j++] = 'bhs'; //#12482 + $k[$j++] = _1x; //#12482 + $k[$j++] = 'sbs'; //#12482 + $k[$j++] = _21; //#12482 + if ($_.includetext) { //#12482 + $k[$j++] = 'txt'; //#12481 + $k[$j++] = $_.txt; //#12481 + } //#12481 + $k[$j++] = 'opt'; //#12483 + $k[$j++] = $_.options; //#12483 + var _25 = $d(); //#12483 + $k[$j++] = _25; //#12486 + if (!$_.dontdraw) { //#12486 + bwipp_renlinear(); //#12486 + } //#12486 + $_ = Object.getPrototypeOf($_); //#12488 + $_ = Object.getPrototypeOf($_); //#12490 +} //bwipp_japanpost +function bwipp_msi() { + $_ = Object.create($_); //#12520 + $_.dontdraw = false; //#12523 + $_.includecheck = false; //#12524 + $_.includetext = false; //#12525 + $_.includecheckintext = false; //#12526 + $_.checktype = "unset"; //#12527 + $_.badmod11 = false; //#12528 + $_.textfont = "OCR-B"; //#12529 + $_.textsize = 10; //#12530 + $_.textyoffset = -8; //#12531 + $_.height = 1; //#12532 + $k[$j++] = $_; //#12534 + bwipp_processoptions(); //#12534 + $_.options = $k[--$j]; //#12534 + $_.barcode = $k[--$j]; //#12535 + if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12539 + $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12538'; //#12538 + $k[$j++] = "checktype requires includecheck"; //#12538 + bwipp_raiseerror(); //#12538 + } //#12538 + if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12543 + $k[$j++] = 'bwipp.msiBadMod11Mismatch#12542'; //#12542 + $k[$j++] = "badmod11 requires checktype with mod11"; //#12542 + bwipp_raiseerror(); //#12542 + } //#12542 + if ($eq($_.checktype, "unset")) { //#12545 + $_.checktype = "mod10"; //#12545 + } //#12545 + bwipp_loadctx(bwipp_msi) //#12547 + $forall($_.barcode, function() { //#12554 + var _B = $k[--$j]; //#12551 + if ((_B < 48) || (_B > 57)) { //#12553 + $k[$j++] = 'bwipp.msiBadCharacter#12552'; //#12552 + $k[$j++] = "MSI must contain only digits"; //#12552 + bwipp_raiseerror(); //#12552 + } //#12552 + }); //#12552 + if (!bwipp_msi.__12566__) { //#12566 + $_ = Object.create($_); //#12566 + $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12562 + $_.barchars = "0123456789"; //#12565 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12565 + bwipp_msi.__12566__ = 1; //#12565 + $_ = Object.getPrototypeOf($_); //#12565 + } //#12565 + $_.barlen = $_.barcode.length; //#12568 + $_.txtlen = $_.barlen; //#12569 $_.mod10 = function() { - $_.code = $k[--$j]; //#12384 - $k[$j++] = 0; //#12385 - $k[$j++] = 0; //#12385 - $forall($_.code, function() { //#12385 - var _I = $k[--$j]; //#12385 - var _J = $k[--$j]; //#12385 - var _K = $k[--$j]; //#12385 - $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12385 - $k[$j++] = _K; //#12385 - }); //#12385 - $j--; //#12385 - var _L = $k[--$j]; //#12385 - $k[$j++] = _L * 2; //#12386 - $k[$j++] = 0; //#12386 - for (;;) { //#12386 - var _M = $k[--$j]; //#12386 - var _N = $k[--$j]; //#12386 - var _O = ~~(_N / 10); //#12386 - $k[$j++] = $f(_M + (_N % 10)); //#12386 - $k[$j++] = _O; //#12386 - if (_O == 0) { //#12386 - $j--; //#12386 - break; //#12386 - } //#12386 - var _P = $k[--$j]; //#12386 - var _Q = $k[--$j]; //#12386 - $k[$j++] = _P; //#12386 - $k[$j++] = _Q; //#12386 - } //#12386 - $k[$j++] = 0; //#12387 - $k[$j++] = 0; //#12387 - $forall($_.code, function() { //#12387 - var _S = $k[--$j]; //#12387 - var _T = $k[--$j]; //#12387 - var _U = $k[--$j]; //#12387 - $k[$j++] = $f(_T + $f(_S - 48)); //#12387 - $k[$j++] = _U; //#12387 - }); //#12387 - var _V = $k[--$j]; //#12387 - var _W = $k[--$j]; //#12387 - $k[$j++] = _V; //#12387 - $k[$j++] = _W; //#12387 - $j--; //#12387 - var _X = $k[--$j]; //#12387 - var _a = $s($_.code.length + 1); //#12389 - $puti(_a, 0, $_.code); //#12389 - $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12389 - $k[$j++] = _a; //#12389 - }; //#12389 + $_.code = $k[--$j]; //#12572 + $k[$j++] = 0; //#12573 + $k[$j++] = 0; //#12573 + $forall($_.code, function() { //#12573 + var _I = $k[--$j]; //#12573 + var _J = $k[--$j]; //#12573 + var _K = $k[--$j]; //#12573 + $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12573 + $k[$j++] = _K; //#12573 + }); //#12573 + $j--; //#12573 + var _L = $k[--$j]; //#12573 + $k[$j++] = _L * 2; //#12574 + $k[$j++] = 0; //#12574 + for (;;) { //#12574 + var _M = $k[--$j]; //#12574 + var _N = $k[--$j]; //#12574 + var _O = ~~(_N / 10); //#12574 + $k[$j++] = $f(_M + (_N % 10)); //#12574 + $k[$j++] = _O; //#12574 + if (_O == 0) { //#12574 + $j--; //#12574 + break; //#12574 + } //#12574 + var _P = $k[--$j]; //#12574 + var _Q = $k[--$j]; //#12574 + $k[$j++] = _P; //#12574 + $k[$j++] = _Q; //#12574 + } //#12574 + $k[$j++] = 0; //#12575 + $k[$j++] = 0; //#12575 + $forall($_.code, function() { //#12575 + var _S = $k[--$j]; //#12575 + var _T = $k[--$j]; //#12575 + var _U = $k[--$j]; //#12575 + $k[$j++] = $f(_T + $f(_S - 48)); //#12575 + $k[$j++] = _U; //#12575 + }); //#12575 + var _V = $k[--$j]; //#12575 + var _W = $k[--$j]; //#12575 + $k[$j++] = _V; //#12575 + $k[$j++] = _W; //#12575 + $j--; //#12575 + var _X = $k[--$j]; //#12575 + var _a = $s($_.code.length + 1); //#12577 + $puti(_a, 0, $_.code); //#12577 + $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12577 + $k[$j++] = _a; //#12577 + }; //#12577 $_.mod11 = function() { - $_.code = $k[--$j]; //#12393 - $k[$j++] = $_.code.length - 1; //#12394 - $forall($_.code, function() { //#12394 - var _g = $k[--$j]; //#12394 - var _h = $k[--$j]; //#12394 - $k[$j++] = $f(_g - 48); //#12394 - $k[$j++] = $f((_h % 6) + 2); //#12394 - $k[$j++] = $f(_h - 1); //#12394 - }); //#12394 - $j--; //#12394 - $k[$j++] = 0; //#12395 - for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12395 - var _l = $k[--$j]; //#12395 - var _m = $k[--$j]; //#12395 - var _n = $k[--$j]; //#12395 - $k[$j++] = $f(_l + (_n * _m)); //#12395 - } //#12395 - var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12397 - $k[$j++] = _p; //#12405 - if (_p == 10) { //#12404 - if ($_.badmod11) { //#12401 - $j--; //#12399 - var _s = $s($_.code.length + 2); //#12399 - $puti(_s, 0, $_.code); //#12399 - $puti(_s, $_.code.length, "10"); //#12399 - $k[$j++] = _s; //#12399 - } else { //#12401 - $j--; //#12401 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12401'; //#12401 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12401 - bwipp_raiseerror(); //#12401 - } //#12401 - } else { //#12404 - var _w = $s($_.code.length + 1); //#12404 - $puti(_w, 0, $_.code); //#12404 - $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12404 - $k[$j++] = _w; //#12404 - } //#12404 - }; //#12404 + $_.code = $k[--$j]; //#12581 + $k[$j++] = $_.code.length - 1; //#12582 + $forall($_.code, function() { //#12582 + var _g = $k[--$j]; //#12582 + var _h = $k[--$j]; //#12582 + $k[$j++] = $f(_g - 48); //#12582 + $k[$j++] = $f((_h % 6) + 2); //#12582 + $k[$j++] = $f(_h - 1); //#12582 + }); //#12582 + $j--; //#12582 + $k[$j++] = 0; //#12583 + for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12583 + var _l = $k[--$j]; //#12583 + var _m = $k[--$j]; //#12583 + var _n = $k[--$j]; //#12583 + $k[$j++] = $f(_l + (_n * _m)); //#12583 + } //#12583 + var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12585 + $k[$j++] = _p; //#12593 + if (_p == 10) { //#12592 + if ($_.badmod11) { //#12589 + $j--; //#12587 + var _s = $s($_.code.length + 2); //#12587 + $puti(_s, 0, $_.code); //#12587 + $puti(_s, $_.code.length, "10"); //#12587 + $k[$j++] = _s; //#12587 + } else { //#12589 + $j--; //#12589 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12589'; //#12589 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12589 + bwipp_raiseerror(); //#12589 + } //#12589 + } else { //#12592 + var _w = $s($_.code.length + 1); //#12592 + $puti(_w, 0, $_.code); //#12592 + $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12592 + $k[$j++] = _w; //#12592 + } //#12592 + }; //#12592 $_.ncrmod11 = function() { - $_.code = $k[--$j]; //#12409 - $k[$j++] = $_.code.length - 1; //#12410 - $forall($_.code, function() { //#12410 - var _13 = $k[--$j]; //#12410 - var _14 = $k[--$j]; //#12410 - $k[$j++] = $f(_13 - 48); //#12410 - $k[$j++] = $f((_14 % 8) + 2); //#12410 - $k[$j++] = $f(_14 - 1); //#12410 - }); //#12410 - $j--; //#12410 - $k[$j++] = 0; //#12411 - for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12411 - var _18 = $k[--$j]; //#12411 - var _19 = $k[--$j]; //#12411 - var _1A = $k[--$j]; //#12411 - $k[$j++] = $f(_18 + (_1A * _19)); //#12411 - } //#12411 - var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12413 - $k[$j++] = _1C; //#12421 - if (_1C == 10) { //#12420 - if ($_.badmod11) { //#12417 - $j--; //#12415 - var _1F = $s($_.code.length + 2); //#12415 - $puti(_1F, 0, $_.code); //#12415 - $puti(_1F, $_.code.length, "10"); //#12415 - $k[$j++] = _1F; //#12415 - } else { //#12417 - $j--; //#12417 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12417'; //#12417 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12417 - bwipp_raiseerror(); //#12417 - } //#12417 - } else { //#12420 - var _1J = $s($_.code.length + 1); //#12420 - $puti(_1J, 0, $_.code); //#12420 - $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12420 - $k[$j++] = _1J; //#12420 - } //#12420 - }; //#12420 - if (!bwipp_msi.__12433__) { //#12433 - $_ = Object.create($_); //#12433 + $_.code = $k[--$j]; //#12597 + $k[$j++] = $_.code.length - 1; //#12598 + $forall($_.code, function() { //#12598 + var _13 = $k[--$j]; //#12598 + var _14 = $k[--$j]; //#12598 + $k[$j++] = $f(_13 - 48); //#12598 + $k[$j++] = $f((_14 % 8) + 2); //#12598 + $k[$j++] = $f(_14 - 1); //#12598 + }); //#12598 + $j--; //#12598 + $k[$j++] = 0; //#12599 + for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12599 + var _18 = $k[--$j]; //#12599 + var _19 = $k[--$j]; //#12599 + var _1A = $k[--$j]; //#12599 + $k[$j++] = $f(_18 + (_1A * _19)); //#12599 + } //#12599 + var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12601 + $k[$j++] = _1C; //#12609 + if (_1C == 10) { //#12608 + if ($_.badmod11) { //#12605 + $j--; //#12603 + var _1F = $s($_.code.length + 2); //#12603 + $puti(_1F, 0, $_.code); //#12603 + $puti(_1F, $_.code.length, "10"); //#12603 + $k[$j++] = _1F; //#12603 + } else { //#12605 + $j--; //#12605 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12605'; //#12605 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12605 + bwipp_raiseerror(); //#12605 + } //#12605 + } else { //#12608 + var _1J = $s($_.code.length + 1); //#12608 + $puti(_1J, 0, $_.code); //#12608 + $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12608 + $k[$j++] = _1J; //#12608 + } //#12608 + }; //#12608 + if (!bwipp_msi.__12621__) { //#12621 + $_ = Object.create($_); //#12621 var _1N = new Map([ ["mod10", function() { - $_.mod10(); //#12426 + $_.mod10(); //#12614 }], ["mod1010", function() { - $_.mod10(); //#12427 - $_.mod10(); //#12427 + $_.mod10(); //#12615 + $_.mod10(); //#12615 }], ["mod11", function() { - $_.mod11(); //#12428 + $_.mod11(); //#12616 }], ["ncrmod11", function() { - $_.ncrmod11(); //#12429 + $_.ncrmod11(); //#12617 }], ["mod1110", function() { - $_.mod11(); //#12430 - $_.mod10(); //#12430 + $_.mod11(); //#12618 + $_.mod10(); //#12618 }], ["ncrmod1110", function() { - $_.ncrmod11(); //#12431 - $_.mod10(); //#12431 + $_.ncrmod11(); //#12619 + $_.mod10(); //#12619 }] - ]); //#12431 - $_.checkfunc = _1N; //#12432 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12432 - bwipp_msi.__12433__ = 1; //#12432 - $_ = Object.getPrototypeOf($_); //#12432 - } //#12432 - if ($_.includecheck) { //#12443 - var _1Q = $_.checkfunc; //#12437 - var _1R = $_.checktype; //#12437 - var _1S = $get(_1Q, _1R) !== undefined; //#12437 - $k[$j++] = _1Q; //#12439 - $k[$j++] = _1R; //#12439 - if (!_1S) { //#12439 - $j -= 2; //#12438 - $k[$j++] = 'bwipp.msiBadCharacter#12438'; //#12438 - $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12438 - bwipp_raiseerror(); //#12438 - } //#12438 - var _1T = $k[--$j]; //#12440 - var _1V = $get($k[--$j], _1T); //#12440 - $k[$j++] = $_.barcode; //#12440 + ]); //#12619 + $_.checkfunc = _1N; //#12620 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12620 + bwipp_msi.__12621__ = 1; //#12620 + $_ = Object.getPrototypeOf($_); //#12620 + } //#12620 + if ($_.includecheck) { //#12631 + var _1Q = $_.checkfunc; //#12625 + var _1R = $_.checktype; //#12625 + var _1S = $get(_1Q, _1R) !== undefined; //#12625 + $k[$j++] = _1Q; //#12627 + $k[$j++] = _1R; //#12627 + if (!_1S) { //#12627 + $j -= 2; //#12626 + $k[$j++] = 'bwipp.msiBadCharacter#12626'; //#12626 + $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12626 + bwipp_raiseerror(); //#12626 + } //#12626 + var _1T = $k[--$j]; //#12628 + var _1V = $get($k[--$j], _1T); //#12628 + $k[$j++] = $_.barcode; //#12628 if (_1V() === true) { return true; - } //#12440 - $_.barcode = $k[--$j]; //#12440 - $_.barlen = $_.barcode.length; //#12441 - if ($_.includecheckintext) { //#12442 - $_.txtlen = $_.barlen; //#12442 - } //#12442 - } //#12442 - $_.sbs = $s(($_.barlen * 8) + 5); //#12445 - $_.txt = $a($_.barlen); //#12446 - $puti($_.sbs, 0, $get($_.encs, 10)); //#12449 - for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12461 - $_.i = _1k; //#12452 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12454 - $j--; //#12455 - $_.indx = $k[--$j].length; //#12456 - $j -= 2; //#12457 - $_.enc = $get($_.encs, $_.indx); //#12458 - $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12459 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12460 - } //#12460 - $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12464 - $k[$j++] = Infinity; //#12475 - $k[$j++] = Infinity; //#12469 - var _2A = $_.sbs; //#12469 - for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12469 - $k[$j++] = $get(_2A, _2B) - 48; //#12469 - } //#12469 - var _2E = $a(); //#12469 - $k[$j++] = Infinity; //#12470 - for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12470 - $k[$j++] = $_.height; //#12470 - } //#12470 - var _2J = $a(); //#12470 - $k[$j++] = Infinity; //#12471 - for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12471 - $k[$j++] = 0; //#12471 - } //#12471 - var _2N = $a(); //#12471 - $k[$j++] = 'ren'; //#12474 - $k[$j++] = bwipp_renlinear; //#12474 - $k[$j++] = 'sbs'; //#12474 - $k[$j++] = _2E; //#12474 - $k[$j++] = 'bhs'; //#12474 - $k[$j++] = _2J; //#12474 - $k[$j++] = 'bbs'; //#12474 - $k[$j++] = _2N; //#12474 - if ($_.includetext) { //#12474 - $k[$j++] = 'txt'; //#12473 - $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12473 - } //#12473 - $k[$j++] = 'opt'; //#12475 - $k[$j++] = $_.options; //#12475 - var _2T = $d(); //#12475 - $k[$j++] = _2T; //#12478 - if (!$_.dontdraw) { //#12478 - bwipp_renlinear(); //#12478 - } //#12478 - $_ = Object.getPrototypeOf($_); //#12480 - $_ = Object.getPrototypeOf($_); //#12482 -} - + } //#12628 + $_.barcode = $k[--$j]; //#12628 + $_.barlen = $_.barcode.length; //#12629 + if ($_.includecheckintext) { //#12630 + $_.txtlen = $_.barlen; //#12630 + } //#12630 + } //#12630 + $_.sbs = $s(($_.barlen * 8) + 5); //#12633 + $_.txt = $a($_.barlen); //#12634 + $puti($_.sbs, 0, $get($_.encs, 10)); //#12637 + for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12649 + $_.i = _1k; //#12640 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12642 + $j--; //#12643 + $_.indx = $k[--$j].length; //#12644 + $j -= 2; //#12645 + $_.enc = $get($_.encs, $_.indx); //#12646 + $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12647 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12648 + } //#12648 + $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12652 + $k[$j++] = Infinity; //#12655 + $k[$j++] = Infinity; //#12657 + var _2A = $_.sbs; //#12657 + for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12657 + $k[$j++] = $get(_2A, _2B) - 48; //#12657 + } //#12657 + var _2E = $a(); //#12657 + $k[$j++] = Infinity; //#12658 + for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12658 + $k[$j++] = $_.height; //#12658 + } //#12658 + var _2J = $a(); //#12658 + $k[$j++] = Infinity; //#12659 + for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12659 + $k[$j++] = 0; //#12659 + } //#12659 + var _2N = $a(); //#12659 + $k[$j++] = 'ren'; //#12662 + $k[$j++] = bwipp_renlinear; //#12662 + $k[$j++] = 'sbs'; //#12662 + $k[$j++] = _2E; //#12662 + $k[$j++] = 'bhs'; //#12662 + $k[$j++] = _2J; //#12662 + $k[$j++] = 'bbs'; //#12662 + $k[$j++] = _2N; //#12662 + if ($_.includetext) { //#12662 + $k[$j++] = 'txt'; //#12661 + $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12661 + } //#12661 + $k[$j++] = 'opt'; //#12663 + $k[$j++] = $_.options; //#12663 + var _2T = $d(); //#12663 + $k[$j++] = _2T; //#12666 + if (!$_.dontdraw) { //#12666 + bwipp_renlinear(); //#12666 + } //#12666 + $_ = Object.getPrototypeOf($_); //#12668 + $_ = Object.getPrototypeOf($_); //#12670 +} //bwipp_msi function bwipp_plessey() { - $_ = Object.create($_); //#12512 - $_.dontdraw = false; //#12515 - $_.includetext = false; //#12516 - $_.validatecheck = false; //#12517 - $_.includecheckintext = false; //#12518 - $_.unidirectional = false; //#12519 - $_.textfont = "OCR-B"; //#12520 - $_.textsize = 10; //#12521 - $_.textyoffset = -8; //#12522 - $_.height = 1; //#12523 - $k[$j++] = $_; //#12525 - bwipp_processoptions(); //#12525 - $_.options = $k[--$j]; //#12525 - var _1 = $k[--$j]; //#12526 - $_.barcode = _1; //#12526 - bwipp_loadctx(bwipp_plessey) //#12528 - if (!bwipp_plessey.__12544__) { //#12544 - $_ = Object.create($_); //#12544 - $_.barchars = "0123456789ABCDEF"; //#12532 - $_.charvals = new Map; //#12533 - for (var _2 = 0; _2 <= 15; _2 += 1) { //#12534 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#12534 - } //#12534 - $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12543 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12543 - bwipp_plessey.__12544__ = 1; //#12543 - $_ = Object.getPrototypeOf($_); //#12543 - } //#12543 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12551 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12548 - if (!_E) { //#12550 - $k[$j++] = 'bwipp.plesseyBadCharacter#12549'; //#12549 - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12549 - bwipp_raiseerror(); //#12549 - } //#12549 - } //#12549 - $k[$j++] = 'barlen'; //#12553 - $k[$j++] = $_.barcode.length; //#12553 - if ($_.validatecheck) { //#12553 - var _H = $k[--$j]; //#12553 - $k[$j++] = $f(_H - 2); //#12553 - } //#12553 - var _I = $k[--$j]; //#12553 - $_[$k[--$j]] = _I; //#12553 - $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12556 - $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12557 - for (var _R = 0, _Q = $f($_.barlen - 1); _R <= _Q; _R += 1) { //#12567 - $_.i = _R; //#12559 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12560 - $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12566 - } //#12566 - $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12568 - for (var _h = 0, _g = $f(($_.barlen * 4) - 1); _h <= _g; _h += 1) { //#12577 - $_.i = _h; //#12570 - if ($get($_.checkbits, $_.i) == 1) { //#12576 - for (var _l = 0; _l <= 8; _l += 1) { //#12575 - $_.j = _l; //#12573 - $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12574 - } //#12574 - } //#12574 - } //#12574 - $_.checkval = 0; //#12578 - for (var _w = 0; _w <= 7; _w += 1) { //#12582 - $_.i = _w; //#12580 - $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12581 - } //#12581 - $_.checksum1 = $_.checkval & 15; //#12583 - $_.checksum2 = $_.checkval >>> 4; //#12584 - if ($_.validatecheck) { //#12591 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12589 - $k[$j++] = 'bwipp.plesseyBadCheckDigits#12588'; //#12588 - $k[$j++] = "Incorrect Plessey check digits provided"; //#12588 - bwipp_raiseerror(); //#12588 - } //#12588 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12590 - } //#12590 - var _1N = $_.unidirectional ? 27 : 33; //#12593 - $_.sbs = $s($f(($_.barlen * 8) + _1N)); //#12593 - $_.txt = $a($f($_.barlen + 2)); //#12594 - $puti($_.sbs, 0, $get($_.encs, 16)); //#12597 - for (var _1W = 0, _1V = $f($_.barlen - 1); _1W <= _1V; _1W += 1) { //#12604 - $_.i = _1W; //#12600 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12601 - $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12602 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12603 - } //#12603 - $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12607 - $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12608 - if ($_.includecheckintext) { //#12614 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12610 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12611 - } else { //#12614 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12613 - $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12614 - } //#12614 - var _2e = $_.unidirectional ? 18 : 17; //#12618 - $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2e)); //#12618 - $k[$j++] = Infinity; //#12629 - $k[$j++] = Infinity; //#12623 - var _2g = $_.sbs; //#12623 - for (var _2h = 0, _2i = _2g.length; _2h < _2i; _2h++) { //#12623 - $k[$j++] = $get(_2g, _2h) - 48; //#12623 - } //#12623 - var _2k = $a(); //#12623 - $k[$j++] = Infinity; //#12624 - for (var _2m = 0, _2n = ~~(($_.sbs.length + 1) / 2); _2m < _2n; _2m++) { //#12624 - $k[$j++] = $_.height; //#12624 - } //#12624 - var _2p = $a(); //#12624 - $k[$j++] = Infinity; //#12625 - for (var _2r = 0, _2s = ~~(($_.sbs.length + 1) / 2); _2r < _2s; _2r++) { //#12625 - $k[$j++] = 0; //#12625 - } //#12625 - var _2t = $a(); //#12625 - $k[$j++] = 'ren'; //#12628 - $k[$j++] = bwipp_renlinear; //#12628 - $k[$j++] = 'sbs'; //#12628 - $k[$j++] = _2k; //#12628 - $k[$j++] = 'bhs'; //#12628 - $k[$j++] = _2p; //#12628 - $k[$j++] = 'bbs'; //#12628 - $k[$j++] = _2t; //#12628 - if ($_.includetext) { //#12628 - $k[$j++] = 'txt'; //#12627 - $k[$j++] = $_.txt; //#12627 - } //#12627 - $k[$j++] = 'opt'; //#12629 - $k[$j++] = $_.options; //#12629 - var _2x = $d(); //#12629 - $k[$j++] = _2x; //#12632 - if (!$_.dontdraw) { //#12632 - bwipp_renlinear(); //#12632 - } //#12632 - $_ = Object.getPrototypeOf($_); //#12634 - $_ = Object.getPrototypeOf($_); //#12636 -} - + $_ = Object.create($_); //#12700 + $_.dontdraw = false; //#12703 + $_.includetext = false; //#12704 + $_.validatecheck = false; //#12705 + $_.includecheckintext = false; //#12706 + $_.unidirectional = false; //#12707 + $_.textfont = "OCR-B"; //#12708 + $_.textsize = 10; //#12709 + $_.textyoffset = -8; //#12710 + $_.height = 1; //#12711 + $k[$j++] = $_; //#12713 + bwipp_processoptions(); //#12713 + $_.options = $k[--$j]; //#12713 + $_.barcode = $k[--$j]; //#12714 + if ($eq($_.barcode, "")) { //#12718 + $k[$j++] = 'bwipp.plesseyEmptyData#12717'; //#12717 + $k[$j++] = "The data must not be empty"; //#12717 + bwipp_raiseerror(); //#12717 + } //#12717 + bwipp_loadctx(bwipp_plessey) //#12720 + if (!bwipp_plessey.__12736__) { //#12736 + $_ = Object.create($_); //#12736 + $_.barchars = "0123456789ABCDEF"; //#12724 + $_.charvals = new Map; //#12725 + for (var _3 = 0; _3 <= 15; _3 += 1) { //#12726 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12726 + } //#12726 + $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12735 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12735 + bwipp_plessey.__12736__ = 1; //#12735 + $_ = Object.getPrototypeOf($_); //#12735 + } //#12735 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12743 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12740 + if (!_F) { //#12742 + $k[$j++] = 'bwipp.plesseyBadCharacter#12741'; //#12741 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12741 + bwipp_raiseerror(); //#12741 + } //#12741 + } //#12741 + $k[$j++] = 'barlen'; //#12745 + $k[$j++] = $_.barcode.length; //#12745 + if ($_.validatecheck) { //#12745 + var _I = $k[--$j]; //#12745 + $k[$j++] = $f(_I - 2); //#12745 + } //#12745 + var _J = $k[--$j]; //#12745 + $_[$k[--$j]] = _J; //#12745 + $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12748 + $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12749 + for (var _S = 0, _R = $f($_.barlen - 1); _S <= _R; _S += 1) { //#12759 + $_.i = _S; //#12751 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12752 + $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12758 + } //#12758 + $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12760 + for (var _i = 0, _h = $f(($_.barlen * 4) - 1); _i <= _h; _i += 1) { //#12769 + $_.i = _i; //#12762 + if ($get($_.checkbits, $_.i) == 1) { //#12768 + for (var _m = 0; _m <= 8; _m += 1) { //#12767 + $_.j = _m; //#12765 + $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12766 + } //#12766 + } //#12766 + } //#12766 + $_.checkval = 0; //#12770 + for (var _x = 0; _x <= 7; _x += 1) { //#12774 + $_.i = _x; //#12772 + $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12773 + } //#12773 + $_.checksum1 = $_.checkval & 15; //#12775 + $_.checksum2 = $_.checkval >>> 4; //#12776 + if ($_.validatecheck) { //#12783 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12781 + $k[$j++] = 'bwipp.plesseyBadCheckDigits#12780'; //#12780 + $k[$j++] = "Incorrect Plessey check digits provided"; //#12780 + bwipp_raiseerror(); //#12780 + } //#12780 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12782 + } //#12782 + var _1O = $_.unidirectional ? 27 : 33; //#12785 + $_.sbs = $s($f(($_.barlen * 8) + _1O)); //#12785 + $_.txt = $a($f($_.barlen + 2)); //#12786 + $puti($_.sbs, 0, $get($_.encs, 16)); //#12789 + for (var _1X = 0, _1W = $f($_.barlen - 1); _1X <= _1W; _1X += 1) { //#12796 + $_.i = _1X; //#12792 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12793 + $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12794 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12795 + } //#12795 + $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12799 + $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12800 + if ($_.includecheckintext) { //#12806 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12802 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12803 + } else { //#12806 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12805 + $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12806 + } //#12806 + var _2f = $_.unidirectional ? 18 : 17; //#12810 + $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2f)); //#12810 + $k[$j++] = Infinity; //#12813 + $k[$j++] = Infinity; //#12815 + var _2h = $_.sbs; //#12815 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#12815 + $k[$j++] = $get(_2h, _2i) - 48; //#12815 + } //#12815 + var _2l = $a(); //#12815 + $k[$j++] = Infinity; //#12816 + for (var _2n = 0, _2o = ~~(($_.sbs.length + 1) / 2); _2n < _2o; _2n++) { //#12816 + $k[$j++] = $_.height; //#12816 + } //#12816 + var _2q = $a(); //#12816 + $k[$j++] = Infinity; //#12817 + for (var _2s = 0, _2t = ~~(($_.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#12817 + $k[$j++] = 0; //#12817 + } //#12817 + var _2u = $a(); //#12817 + $k[$j++] = 'ren'; //#12820 + $k[$j++] = bwipp_renlinear; //#12820 + $k[$j++] = 'sbs'; //#12820 + $k[$j++] = _2l; //#12820 + $k[$j++] = 'bhs'; //#12820 + $k[$j++] = _2q; //#12820 + $k[$j++] = 'bbs'; //#12820 + $k[$j++] = _2u; //#12820 + if ($_.includetext) { //#12820 + $k[$j++] = 'txt'; //#12819 + $k[$j++] = $_.txt; //#12819 + } //#12819 + $k[$j++] = 'opt'; //#12821 + $k[$j++] = $_.options; //#12821 + var _2y = $d(); //#12821 + $k[$j++] = _2y; //#12824 + if (!$_.dontdraw) { //#12824 + bwipp_renlinear(); //#12824 + } //#12824 + $_ = Object.getPrototypeOf($_); //#12826 + $_ = Object.getPrototypeOf($_); //#12828 +} //bwipp_plessey function bwipp_telepen() { - $_ = Object.create($_); //#12667 - $_.numeric = false; //#12670 - $_.dontdraw = false; //#12671 - $_.includetext = false; //#12672 - $_.textfont = "OCR-B"; //#12673 - $_.textsize = 10; //#12674 - $_.textyoffset = -8; //#12675 - $_.height = 1; //#12676 - $_.parse = false; //#12677 - $k[$j++] = $_; //#12679 - bwipp_processoptions(); //#12679 - $_.options = $k[--$j]; //#12679 - $_.barcode = $k[--$j]; //#12680 - bwipp_loadctx(bwipp_telepen) //#12682 + $_ = Object.create($_); //#12859 + $_.numeric = false; //#12862 + $_.dontdraw = false; //#12863 + $_.includetext = false; //#12864 + $_.textfont = "OCR-B"; //#12865 + $_.textsize = 10; //#12866 + $_.textyoffset = -8; //#12867 + $_.height = 1; //#12868 + $_.parse = false; //#12869 + $k[$j++] = $_; //#12871 + bwipp_processoptions(); //#12871 + $_.options = $k[--$j]; //#12871 + $_.barcode = $k[--$j]; //#12872 + bwipp_loadctx(bwipp_telepen) //#12874 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#12688 - $_.fncvals = _3; //#12689 - $k[$j++] = 'barcode'; //#12690 - $k[$j++] = $_.barcode; //#12690 - $k[$j++] = $_.fncvals; //#12690 - bwipp_parseinput(); //#12690 - var _6 = $k[--$j]; //#12690 - $_[$k[--$j]] = _6; //#12690 - $_.barlen = $_.barcode.length; //#12691 - delete $_.options["parse"]; //#12692 - if ($_.numeric && (($_.barlen % 2) != 0)) { //#12696 - $k[$j++] = 'bwipp.telepenNumericOddLength#12695'; //#12695 - $k[$j++] = "Telepen Numeric must have an even length"; //#12695 - bwipp_raiseerror(); //#12695 - } //#12695 - if (!bwipp_telepen.__12734__) { //#12734 - $_ = Object.create($_); //#12734 - $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12733 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12733 - bwipp_telepen.__12734__ = 1; //#12733 - $_ = Object.getPrototypeOf($_); //#12733 - } //#12733 - $_.sbs = $s(($_.barlen * 16) + 48); //#12736 - $_.txt = $a($_.barlen); //#12737 - $_.enc = $get($_.encs, 95); //#12740 - $puti($_.sbs, 0, $_.enc); //#12741 - $_.l = $_.enc.length; //#12742 - $_.checksum = 0; //#12744 - $_.i = 0; //#12745 - $_.j = 0; //#12745 - for (;;) { //#12788 - if ($_.i == $_.barlen) { //#12747 - break; //#12747 - } //#12747 - if ($_.numeric) { //#12781 - if ($get($_.barcode, $_.i) > 16) { //#12769 - $_.np = $geti($_.barcode, $_.i, 2); //#12750 - var _X = $get($_.np, 0); //#12751 - var _Z = $get($_.np, 1); //#12752 - if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12758 - $k[$j++] = -1; //#12754 - } else { //#12758 - var _e = $f($get($_.np, 1) - 48); //#12757 - $k[$j++] = $f($get($_.np, 0) - 48); //#12757 - $k[$j++] = _e; //#12757 - if (_e != 40) { //#12757 - var _f = $k[--$j]; //#12757 - var _g = $k[--$j]; //#12757 - $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12757 - } else { //#12757 - $j--; //#12757 - } //#12757 - var _h = $k[--$j]; //#12758 - $k[$j++] = $f(_h + 17); //#12758 - } //#12758 - var _i = $k[--$j]; //#12760 - $k[$j++] = _i; //#12762 - if (_i == -1) { //#12762 - $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12761'; //#12761 - $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12761 - bwipp_raiseerror(); //#12761 - } //#12761 - $_.indx = $k[--$j]; //#12763 - $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12764 - $_.i = $_.i + 2; //#12765 - } else { //#12769 - $_.indx = $get($_.barcode, $_.i); //#12767 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12768 - $_.i = $_.i + 1; //#12769 - } //#12769 - } else { //#12781 - $_.indx = $get($_.barcode, $_.i); //#12772 - if ($_.indx > 127) { //#12775 - $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12774'; //#12774 - $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12774 - bwipp_raiseerror(); //#12774 - } //#12774 - if (($_.indx >= 32) && ($_.indx <= 126)) { //#12779 - $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12777 - } else { //#12779 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12779 - } //#12779 - $_.i = $_.i + 1; //#12781 - } //#12781 - $_.checksum = $f($_.checksum + $_.indx); //#12783 - $_.enc = $get($_.encs, $_.indx); //#12784 - $puti($_.sbs, $_.l, $_.enc); //#12785 - $_.l = $_.l + $_.enc.length; //#12786 - $_.j = $_.j + 1; //#12787 - } //#12787 - $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12791 - $_.enc = $get($_.encs, $_.checksum); //#12792 - $puti($_.sbs, $_.l, $_.enc); //#12793 - $_.l = $_.l + $_.enc.length; //#12794 - $_.enc = $get($_.encs, 122); //#12797 - $puti($_.sbs, $_.l, $_.enc); //#12798 - $_.l = $_.l + $_.enc.length; //#12799 - $_.sbs = $geti($_.sbs, 0, $_.l); //#12802 - $_.txt = $geti($_.txt, 0, $_.j); //#12803 - $k[$j++] = Infinity; //#12814 - $k[$j++] = Infinity; //#12808 - var _1z = $_.sbs; //#12808 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#12808 - $k[$j++] = $f($get(_1z, _20) - 48); //#12808 - } //#12808 - var _23 = $a(); //#12808 - $k[$j++] = Infinity; //#12809 - for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#12809 - $k[$j++] = $_.height; //#12809 - } //#12809 - var _28 = $a(); //#12809 - $k[$j++] = Infinity; //#12810 - for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#12810 - $k[$j++] = 0; //#12810 - } //#12810 - var _2C = $a(); //#12810 - $k[$j++] = 'ren'; //#12813 - $k[$j++] = bwipp_renlinear; //#12813 - $k[$j++] = 'sbs'; //#12813 - $k[$j++] = _23; //#12813 - $k[$j++] = 'bhs'; //#12813 - $k[$j++] = _28; //#12813 - $k[$j++] = 'bbs'; //#12813 - $k[$j++] = _2C; //#12813 - if ($_.includetext) { //#12813 - $k[$j++] = 'txt'; //#12812 - $k[$j++] = $_.txt; //#12812 - } //#12812 - $k[$j++] = 'opt'; //#12814 - $k[$j++] = $_.options; //#12814 - var _2G = $d(); //#12814 - $k[$j++] = _2G; //#12817 - if (!$_.dontdraw) { //#12817 - bwipp_renlinear(); //#12817 - } //#12817 - $_ = Object.getPrototypeOf($_); //#12819 - $_ = Object.getPrototypeOf($_); //#12821 -} - + ]); //#12880 + $_.fncvals = _3; //#12881 + $k[$j++] = 'barcode'; //#12882 + $k[$j++] = $_.barcode; //#12882 + $k[$j++] = $_.fncvals; //#12882 + bwipp_parseinput(); //#12882 + var _6 = $k[--$j]; //#12882 + $_[$k[--$j]] = _6; //#12882 + $_.barlen = $_.barcode.length; //#12883 + delete $_.options["parse"]; //#12884 + if ($_.numeric && (($_.barlen % 2) != 0)) { //#12888 + $k[$j++] = 'bwipp.telepenNumericOddLength#12887'; //#12887 + $k[$j++] = "Telepen Numeric must have an even length"; //#12887 + bwipp_raiseerror(); //#12887 + } //#12887 + if (!bwipp_telepen.__12926__) { //#12926 + $_ = Object.create($_); //#12926 + $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12925 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12925 + bwipp_telepen.__12926__ = 1; //#12925 + $_ = Object.getPrototypeOf($_); //#12925 + } //#12925 + $_.sbs = $s(($_.barlen * 16) + 48); //#12928 + $_.txt = $a($_.barlen); //#12929 + $_.enc = $get($_.encs, 95); //#12932 + $puti($_.sbs, 0, $_.enc); //#12933 + $_.l = $_.enc.length; //#12934 + $_.checksum = 0; //#12936 + $_.i = 0; //#12937 + $_.j = 0; //#12937 + for (;;) { //#12980 + if ($_.i == $_.barlen) { //#12939 + break; //#12939 + } //#12939 + if ($_.numeric) { //#12973 + if ($get($_.barcode, $_.i) > 16) { //#12961 + $_.np = $geti($_.barcode, $_.i, 2); //#12942 + var _X = $get($_.np, 0); //#12943 + var _Z = $get($_.np, 1); //#12944 + if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12950 + $k[$j++] = -1; //#12946 + } else { //#12950 + var _e = $f($get($_.np, 1) - 48); //#12949 + $k[$j++] = $f($get($_.np, 0) - 48); //#12949 + $k[$j++] = _e; //#12949 + if (_e != 40) { //#12949 + var _f = $k[--$j]; //#12949 + var _g = $k[--$j]; //#12949 + $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12949 + } else { //#12949 + $j--; //#12949 + } //#12949 + var _h = $k[--$j]; //#12950 + $k[$j++] = $f(_h + 17); //#12950 + } //#12950 + var _i = $k[--$j]; //#12952 + $k[$j++] = _i; //#12954 + if (_i == -1) { //#12954 + $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12953'; //#12953 + $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12953 + bwipp_raiseerror(); //#12953 + } //#12953 + $_.indx = $k[--$j]; //#12955 + $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12956 + $_.i = $_.i + 2; //#12957 + } else { //#12961 + $_.indx = $get($_.barcode, $_.i); //#12959 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12960 + $_.i = $_.i + 1; //#12961 + } //#12961 + } else { //#12973 + $_.indx = $get($_.barcode, $_.i); //#12964 + if ($_.indx > 127) { //#12967 + $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12966'; //#12966 + $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12966 + bwipp_raiseerror(); //#12966 + } //#12966 + if (($_.indx >= 32) && ($_.indx <= 126)) { //#12971 + $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12969 + } else { //#12971 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12971 + } //#12971 + $_.i = $_.i + 1; //#12973 + } //#12973 + $_.checksum = $f($_.checksum + $_.indx); //#12975 + $_.enc = $get($_.encs, $_.indx); //#12976 + $puti($_.sbs, $_.l, $_.enc); //#12977 + $_.l = $_.l + $_.enc.length; //#12978 + $_.j = $_.j + 1; //#12979 + } //#12979 + $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12983 + $_.enc = $get($_.encs, $_.checksum); //#12984 + $puti($_.sbs, $_.l, $_.enc); //#12985 + $_.l = $_.l + $_.enc.length; //#12986 + $_.enc = $get($_.encs, 122); //#12989 + $puti($_.sbs, $_.l, $_.enc); //#12990 + $_.l = $_.l + $_.enc.length; //#12991 + $_.sbs = $geti($_.sbs, 0, $_.l); //#12994 + $_.txt = $geti($_.txt, 0, $_.j); //#12995 + $k[$j++] = Infinity; //#12998 + $k[$j++] = Infinity; //#13000 + var _1z = $_.sbs; //#13000 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#13000 + $k[$j++] = $f($get(_1z, _20) - 48); //#13000 + } //#13000 + var _23 = $a(); //#13000 + $k[$j++] = Infinity; //#13001 + for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#13001 + $k[$j++] = $_.height; //#13001 + } //#13001 + var _28 = $a(); //#13001 + $k[$j++] = Infinity; //#13002 + for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#13002 + $k[$j++] = 0; //#13002 + } //#13002 + var _2C = $a(); //#13002 + $k[$j++] = 'ren'; //#13005 + $k[$j++] = bwipp_renlinear; //#13005 + $k[$j++] = 'sbs'; //#13005 + $k[$j++] = _23; //#13005 + $k[$j++] = 'bhs'; //#13005 + $k[$j++] = _28; //#13005 + $k[$j++] = 'bbs'; //#13005 + $k[$j++] = _2C; //#13005 + if ($_.includetext) { //#13005 + $k[$j++] = 'txt'; //#13004 + $k[$j++] = $_.txt; //#13004 + } //#13004 + $k[$j++] = 'opt'; //#13006 + $k[$j++] = $_.options; //#13006 + var _2G = $d(); //#13006 + $k[$j++] = _2G; //#13009 + if (!$_.dontdraw) { //#13009 + bwipp_renlinear(); //#13009 + } //#13009 + $_ = Object.getPrototypeOf($_); //#13011 + $_ = Object.getPrototypeOf($_); //#13013 +} //bwipp_telepen function bwipp_telepennumeric() { - $_ = Object.create($_); //#12850 - $_.dontdraw = false; //#12853 - $k[$j++] = $_; //#12855 - bwipp_processoptions(); //#12855 - $_.options = $k[--$j]; //#12855 - $_.barcode = $k[--$j]; //#12856 - $put($_.options, "dontdraw", true); //#12859 - $put($_.options, "numeric", true); //#12860 - $k[$j++] = 'args'; //#12862 - $k[$j++] = $_.barcode; //#12862 - $k[$j++] = $_.options; //#12862 - bwipp_telepen(); //#12862 - var _6 = $k[--$j]; //#12862 - $_[$k[--$j]] = _6; //#12862 - $put($_.args, "opt", $_.options); //#12864 - $k[$j++] = $_.args; //#12867 - if (!$_.dontdraw) { //#12867 - bwipp_renlinear(); //#12867 - } //#12867 - $_ = Object.getPrototypeOf($_); //#12869 -} - + $_ = Object.create($_); //#13042 + $_.dontdraw = false; //#13045 + $k[$j++] = $_; //#13047 + bwipp_processoptions(); //#13047 + $_.options = $k[--$j]; //#13047 + $_.barcode = $k[--$j]; //#13048 + $put($_.options, "dontdraw", true); //#13051 + $put($_.options, "numeric", true); //#13052 + $k[$j++] = 'args'; //#13054 + $k[$j++] = $_.barcode; //#13054 + $k[$j++] = $_.options; //#13054 + bwipp_telepen(); //#13054 + var _6 = $k[--$j]; //#13054 + $_[$k[--$j]] = _6; //#13054 + $put($_.args, "opt", $_.options); //#13056 + $k[$j++] = $_.args; //#13059 + if (!$_.dontdraw) { //#13059 + bwipp_renlinear(); //#13059 + } //#13059 + $_ = Object.getPrototypeOf($_); //#13061 +} //bwipp_telepennumeric function bwipp_posicode() { - $_ = Object.create($_); //#12900 - $_.dontdraw = false; //#12903 - $_.includetext = false; //#12904 - $_.textfont = "OCR-B"; //#12905 - $_.textsize = 10; //#12906 - $_.textxoffset = 0; //#12907 - $_.textyoffset = -8; //#12908 - $_.height = 1; //#12909 - $_.encoding = "auto"; //#12910 - $_.version = "a"; //#12911 - $_.checkoffset = 0; //#12912 - $_.raw = false; //#12913 - $_.parse = false; //#12914 - $_.parsefnc = false; //#12915 - $k[$j++] = $_; //#12917 - bwipp_processoptions(); //#12917 - $_.options = $k[--$j]; //#12917 - var _1 = $k[--$j]; //#12918 - $_.barcode = _1; //#12918 - bwipp_loadctx(bwipp_posicode) //#12920 - if (!bwipp_posicode.__12963__) { //#12963 - $_ = Object.create($_); //#12963 - $_.la0 = -1; //#12924 - $_.la1 = -2; //#12924 - $_.la2 = -3; //#12924 - $_.sf0 = -4; //#12925 - $_.sf1 = -5; //#12925 - $_.sf2 = -6; //#12925 - $_.fn1 = -7; //#12926 - $_.fn2 = -8; //#12926 - $_.fn3 = -9; //#12926 - $_.fn4 = -10; //#12926 - $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#12947 - var _12 = $a(["5", -98, -98]); //#12950 - $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), _12, $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#12962 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#12962 - bwipp_posicode.__12963__ = 1; //#12962 - $_ = Object.getPrototypeOf($_); //#12962 - } //#12962 - $k[$j++] = 'charmaps'; //#12965 - if ($eq($_.version, "a") || $eq($_.version, "b")) { //#12965 - $k[$j++] = $_.charmapsnormal; //#12965 - } else { //#12965 - $k[$j++] = $_.chapmapslimited; //#12965 - } //#12965 - var _1f = $k[--$j]; //#12965 - $_[$k[--$j]] = _1f; //#12965 - var _1h = $_.charmaps; //#12969 - var _1i = $_.charmaps; //#12969 - var _1j = $_.charmaps; //#12969 - $_.charvals = $a([new Map, new Map, new Map]); //#12970 - for (var _1n = 0, _1m = $_.charmaps.length - 1; _1n <= _1m; _1n += 1) { //#12979 - $_.i = _1n; //#12972 - $_.encs = $get($_.charmaps, $_.i); //#12973 - for (var _1r = 0; _1r <= 2; _1r += 1) { //#12978 - $_.j = _1r; //#12975 - var _1u = $get($_.encs, $_.j); //#12976 - $k[$j++] = _1u; //#12976 - if ($eq($type(_1u), 'stringtype')) { //#12976 - var _1x = $get($k[--$j], 0); //#12976 - $k[$j++] = _1x; //#12976 - } //#12976 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#12977 - } //#12977 - } //#12977 - $_.set0 = $get($_.charvals, 0); //#12980 - $_.set1 = $get($_.charvals, 1); //#12981 - $_.set2 = $get($_.charvals, 2); //#12982 - if ($_.raw) { //#12984 - $_.encoding = "raw"; //#12984 - } //#12984 - if ($eq($_.encoding, "raw")) { //#12998 - $_.cws = $a($_.barcode.length); //#12987 - $_.i = 0; //#12988 - $_.j = 0; //#12988 - for (;;) { //#12995 - if ($_.i == $_.barcode.length) { //#12990 - break; //#12990 - } //#12990 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#12991 - $put($_.cws, $_.j, $_.cw); //#12992 - $_.i = $_.i + 4; //#12993 - $_.j = $_.j + 1; //#12994 - } //#12994 - $_.cws = $geti($_.cws, 0, $_.j); //#12996 - $_.text = ""; //#12997 - } //#12997 - if ($eq($_.encoding, "auto")) { //#13113 - var _2W = new Map([ + $_ = Object.create($_); //#13092 + $_.dontdraw = false; //#13095 + $_.includetext = false; //#13096 + $_.textfont = "OCR-B"; //#13097 + $_.textsize = 10; //#13098 + $_.textxoffset = 0; //#13099 + $_.textyoffset = -8; //#13100 + $_.height = 1; //#13101 + $_.encoding = "auto"; //#13102 + $_.version = "a"; //#13103 + $_.checkoffset = 0; //#13104 + $_.raw = false; //#13105 + $_.parse = false; //#13106 + $_.parsefnc = false; //#13107 + $k[$j++] = $_; //#13109 + bwipp_processoptions(); //#13109 + $_.options = $k[--$j]; //#13109 + var _1 = $k[--$j]; //#13110 + $_.barcode = _1; //#13110 + bwipp_loadctx(bwipp_posicode) //#13112 + if (!bwipp_posicode.__13155__) { //#13155 + $_ = Object.create($_); //#13155 + $_.la0 = -1; //#13116 + $_.la1 = -2; //#13116 + $_.la2 = -3; //#13116 + $_.sf0 = -4; //#13117 + $_.sf1 = -5; //#13117 + $_.sf2 = -6; //#13117 + $_.fn1 = -7; //#13118 + $_.fn2 = -8; //#13118 + $_.fn3 = -9; //#13118 + $_.fn4 = -10; //#13118 + $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#13139 + var _13 = $a(["6", -98, -98]); //#13143 + $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), _13, $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#13154 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13154 + bwipp_posicode.__13155__ = 1; //#13154 + $_ = Object.getPrototypeOf($_); //#13154 + } //#13154 + if ((($ne($_.version, "a") && $ne($_.version, "b")) && $ne($_.version, "limiteda")) && $ne($_.version, "limitedb")) { //#13159 + $k[$j++] = 'bwipp.posicodeInvalidVersion#13158'; //#13158 + $k[$j++] = "The version must be either a, b, limiteda or limitedb"; //#13158 + bwipp_raiseerror(); //#13158 + } //#13158 + $k[$j++] = 'charmaps'; //#13161 + if ($eq($_.version, "a") || $eq($_.version, "b")) { //#13161 + $k[$j++] = $_.charmapsnormal; //#13161 + } else { //#13161 + $k[$j++] = $_.chapmapslimited; //#13161 + } //#13161 + var _1j = $k[--$j]; //#13161 + $_[$k[--$j]] = _1j; //#13161 + var _1l = $_.charmaps; //#13165 + var _1m = $_.charmaps; //#13165 + var _1n = $_.charmaps; //#13165 + $_.charvals = $a([new Map, new Map, new Map]); //#13166 + for (var _1r = 0, _1q = $_.charmaps.length - 1; _1r <= _1q; _1r += 1) { //#13175 + $_.i = _1r; //#13168 + $_.encs = $get($_.charmaps, $_.i); //#13169 + for (var _1v = 0; _1v <= 2; _1v += 1) { //#13174 + $_.j = _1v; //#13171 + var _1y = $get($_.encs, $_.j); //#13172 + $k[$j++] = _1y; //#13172 + if ($eq($type(_1y), 'stringtype')) { //#13172 + var _21 = $get($k[--$j], 0); //#13172 + $k[$j++] = _21; //#13172 + } //#13172 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13173 + } //#13173 + } //#13173 + $_.set0 = $get($_.charvals, 0); //#13176 + $_.set1 = $get($_.charvals, 1); //#13177 + $_.set2 = $get($_.charvals, 2); //#13178 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13187 + for (var _2H = 0, _2G = $_.barcode.length - 1; _2H <= _2G; _2H += 1) { //#13186 + var _2M = $get($_.set0, $get($geti($_.barcode, _2H, 1), 0)) !== undefined; //#13183 + if (!_2M) { //#13185 + $k[$j++] = 'bwipp.posicodeBadCharacter#13184'; //#13184 + $k[$j++] = "Posicode limited must contain only digits, capital letters, and the symbols - and ."; //#13184 + bwipp_raiseerror(); //#13184 + } //#13184 + } //#13184 + } //#13184 + if ($_.raw) { //#13189 + $_.encoding = "raw"; //#13189 + } //#13189 + if ($eq($_.encoding, "raw")) { //#13203 + $_.cws = $a($_.barcode.length); //#13192 + $_.i = 0; //#13193 + $_.j = 0; //#13193 + for (;;) { //#13200 + if ($_.i == $_.barcode.length) { //#13195 + break; //#13195 + } //#13195 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#13196 + $put($_.cws, $_.j, $_.cw); //#13197 + $_.i = $_.i + 4; //#13198 + $_.j = $_.j + 1; //#13199 + } //#13199 + $_.cws = $geti($_.cws, 0, $_.j); //#13201 + $_.text = ""; //#13202 + } //#13202 + if ($eq($_.encoding, "auto")) { //#13318 + var _2k = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13008 - $_.fncvals = _2W; //#13010 - $k[$j++] = 'msg'; //#13011 - $k[$j++] = $_.barcode; //#13011 - $k[$j++] = $_.fncvals; //#13011 - bwipp_parseinput(); //#13011 - var _2Z = $k[--$j]; //#13011 - $_[$k[--$j]] = _2Z; //#13011 - $_.msglen = $_.msg.length; //#13012 - $_.text = $s($_.msglen); //#13014 - for (var _2g = 0, _2f = $_.msglen - 1; _2g <= _2f; _2g += 1) { //#13018 - $_.i = _2g; //#13016 - var _2l = $get($_.msg, $_.i); //#13017 - $k[$j++] = $_.text; //#13017 - $k[$j++] = $_.i; //#13017 - $k[$j++] = _2l; //#13017 - if (_2l < 0) { //#13017 - $j--; //#13017 - $k[$j++] = 32; //#13017 - } //#13017 - var _2m = $k[--$j]; //#13017 - var _2n = $k[--$j]; //#13017 - $put($k[--$j], _2n, _2m); //#13017 - } //#13017 - $k[$j++] = Infinity; //#13021 - for (var _2q = 0, _2r = $_.msglen; _2q < _2r; _2q++) { //#13021 - $k[$j++] = 0; //#13021 - } //#13021 - $k[$j++] = 0; //#13021 - $_.numSA = $a(); //#13021 - $k[$j++] = Infinity; //#13022 - for (var _2u = 0, _2v = $_.msglen; _2u < _2v; _2u++) { //#13022 - $k[$j++] = 0; //#13022 - } //#13022 - $k[$j++] = 0; //#13022 - $_.numEA = $a(); //#13022 - for (var _2y = $_.msglen - 1; _2y >= 0; _2y -= 1) { //#13032 - $_.i = _2y; //#13024 - if ($get($_.msg, $_.i) >= 0) { //#13031 - if ($get($_.msg, $_.i) >= 128) { //#13029 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13027 - } else { //#13029 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13029 - } //#13029 - } //#13029 - } //#13029 - $_.ea = false; //#13035 - $_.msgtmp = $a([]); //#13035 - for (var _3I = 0, _3H = $_.msglen - 1; _3I <= _3H; _3I += 1) { //#13050 - $_.i = _3I; //#13037 - $_.c = $get($_.msg, $_.i); //#13038 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13048 - if ($_.ea) { //#13040 - $k[$j++] = $_.numSA; //#13040 - } else { //#13040 - $k[$j++] = $_.numEA; //#13040 - } //#13040 - var _3U = $get($k[--$j], $_.i); //#13040 - var _3X = ($f(_3U + $_.i) == $_.msglen) ? 3 : 5; //#13041 - if (_3U < _3X) { //#13046 - $k[$j++] = Infinity; //#13043 - $aload($_.msgtmp); //#13043 - $k[$j++] = $_.fn4; //#13043 - $_.msgtmp = $a(); //#13043 - } else { //#13046 - $k[$j++] = Infinity; //#13045 - $aload($_.msgtmp); //#13045 - $k[$j++] = $_.fn4; //#13045 - $k[$j++] = $_.fn4; //#13045 - $_.msgtmp = $a(); //#13045 - $_.ea = !$_.ea; //#13046 - } //#13046 - } //#13046 - $k[$j++] = Infinity; //#13049 - $aload($_.msgtmp); //#13049 - if ($_.c >= 0) { //#13049 - $k[$j++] = $_.c & 127; //#13049 - } else { //#13049 - $k[$j++] = $_.c; //#13049 - } //#13049 - $_.msgtmp = $a(); //#13049 - } //#13049 - $_.msg = $_.msgtmp; //#13051 - $_.msglen = $_.msg.length; //#13052 + ]); //#13213 + $_.fncvals = _2k; //#13215 + $k[$j++] = 'msg'; //#13216 + $k[$j++] = $_.barcode; //#13216 + $k[$j++] = $_.fncvals; //#13216 + bwipp_parseinput(); //#13216 + var _2n = $k[--$j]; //#13216 + $_[$k[--$j]] = _2n; //#13216 + $_.msglen = $_.msg.length; //#13217 + $_.text = $s($_.msglen); //#13219 + for (var _2u = 0, _2t = $_.msglen - 1; _2u <= _2t; _2u += 1) { //#13223 + $_.i = _2u; //#13221 + var _2z = $get($_.msg, $_.i); //#13222 + $k[$j++] = $_.text; //#13222 + $k[$j++] = $_.i; //#13222 + $k[$j++] = _2z; //#13222 + if (_2z < 0) { //#13222 + $j--; //#13222 + $k[$j++] = 32; //#13222 + } //#13222 + var _30 = $k[--$j]; //#13222 + var _31 = $k[--$j]; //#13222 + $put($k[--$j], _31, _30); //#13222 + } //#13222 + $k[$j++] = Infinity; //#13226 + for (var _34 = 0, _35 = $_.msglen; _34 < _35; _34++) { //#13226 + $k[$j++] = 0; //#13226 + } //#13226 + $k[$j++] = 0; //#13226 + $_.numSA = $a(); //#13226 + $k[$j++] = Infinity; //#13227 + for (var _38 = 0, _39 = $_.msglen; _38 < _39; _38++) { //#13227 + $k[$j++] = 0; //#13227 + } //#13227 + $k[$j++] = 0; //#13227 + $_.numEA = $a(); //#13227 + for (var _3C = $_.msglen - 1; _3C >= 0; _3C -= 1) { //#13237 + $_.i = _3C; //#13229 + if ($get($_.msg, $_.i) >= 0) { //#13236 + if ($get($_.msg, $_.i) >= 128) { //#13234 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13232 + } else { //#13234 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13234 + } //#13234 + } //#13234 + } //#13234 + $_.ea = false; //#13240 + $_.msgtmp = $a([]); //#13240 + for (var _3W = 0, _3V = $_.msglen - 1; _3W <= _3V; _3W += 1) { //#13255 + $_.i = _3W; //#13242 + $_.c = $get($_.msg, $_.i); //#13243 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13253 + if ($_.ea) { //#13245 + $k[$j++] = $_.numSA; //#13245 + } else { //#13245 + $k[$j++] = $_.numEA; //#13245 + } //#13245 + var _3i = $get($k[--$j], $_.i); //#13245 + var _3l = ($f(_3i + $_.i) == $_.msglen) ? 3 : 5; //#13246 + if (_3i < _3l) { //#13251 + $k[$j++] = Infinity; //#13248 + $aload($_.msgtmp); //#13248 + $k[$j++] = $_.fn4; //#13248 + $_.msgtmp = $a(); //#13248 + } else { //#13251 + $k[$j++] = Infinity; //#13250 + $aload($_.msgtmp); //#13250 + $k[$j++] = $_.fn4; //#13250 + $k[$j++] = $_.fn4; //#13250 + $_.msgtmp = $a(); //#13250 + $_.ea = !$_.ea; //#13251 + } //#13251 + } //#13251 + $k[$j++] = Infinity; //#13254 + $aload($_.msgtmp); //#13254 + if ($_.c >= 0) { //#13254 + $k[$j++] = $_.c & 127; //#13254 + } else { //#13254 + $k[$j++] = $_.c; //#13254 + } //#13254 + $_.msgtmp = $a(); //#13254 + } //#13254 + $_.msg = $_.msgtmp; //#13256 + $_.msglen = $_.msg.length; //#13257 $_.enc = function() { - var _3n = $k[--$j]; //#13056 - $put($_.cws, $_.j, $get(_3n, $k[--$j])); //#13056 - $_.j = $_.j + 1; //#13057 - }; //#13057 - $_.cws = $a($_.msglen * 2); //#13060 - $_.i = 0; //#13061 - $_.j = 0; //#13061 - $_.cset = "set0"; //#13061 - for (;;) { //#13111 - if ($_.i == $_.msglen) { //#13063 - break; //#13063 - } //#13063 - for (;;) { //#13109 - $_.char1 = $get($_.msg, $_.i); //#13068 - $k[$j++] = 'char2'; //#13069 - if (($_.i + 1) < $_.msglen) { //#13069 - $k[$j++] = $get($_.msg, $_.i + 1); //#13069 - } else { //#13069 - $k[$j++] = -99; //#13069 - } //#13069 - var _45 = $k[--$j]; //#13069 - $_[$k[--$j]] = _45; //#13069 - var _4A = $get($_[$_.cset], $_.char1) !== undefined; //#13072 - if (_4A) { //#13076 - $k[$j++] = $_.char1; //#13073 - $k[$j++] = $_[$_.cset]; //#13073 - $_.enc(); //#13073 - $_.i = $_.i + 1; //#13074 - break; //#13075 - } //#13075 - var _4H = $get($_.set2, $_.char1) !== undefined; //#13079 - if (_4H) { //#13084 - $k[$j++] = $_.sf2; //#13080 - $k[$j++] = $_[$_.cset]; //#13080 - $_.enc(); //#13080 - $k[$j++] = $_.char1; //#13081 - $k[$j++] = $_.set2; //#13081 - $_.enc(); //#13081 - $_.i = $_.i + 1; //#13082 - break; //#13083 - } //#13083 - var _4R = $get($_[$_.cset], $_.char2) !== undefined; //#13087 - if (!_4R) { //#13105 - if ($eq($_.cset, "set0")) { //#13093 - $k[$j++] = $_.la1; //#13089 - $k[$j++] = $_[$_.cset]; //#13089 - $_.enc(); //#13089 - $_.cset = "set1"; //#13090 - } else { //#13093 - $k[$j++] = $_.la0; //#13092 - $k[$j++] = $_[$_.cset]; //#13092 - $_.enc(); //#13092 - $_.cset = "set0"; //#13093 - } //#13093 - break; //#13095 - } else { //#13105 - if ($eq($_.cset, "set0")) { //#13102 - $k[$j++] = $_.sf1; //#13098 - $k[$j++] = $_[$_.cset]; //#13098 - $_.enc(); //#13098 - $k[$j++] = $_.char1; //#13099 - $k[$j++] = $_.set1; //#13099 - $_.enc(); //#13099 - } else { //#13102 - $k[$j++] = $_.sf0; //#13101 - $k[$j++] = $_[$_.cset]; //#13101 - $_.enc(); //#13101 - $k[$j++] = $_.char1; //#13102 - $k[$j++] = $_.set0; //#13102 - $_.enc(); //#13102 - } //#13102 - $_.i = $_.i + 1; //#13104 - break; //#13105 - } //#13105 - break; //#13108 - } //#13108 - } //#13108 - $_.cws = $geti($_.cws, 0, $_.j); //#13112 - } //#13112 - if (!bwipp_posicode.__13163__) { //#13163 - $_ = Object.create($_); //#13163 - var _4s = new Map([ + var _41 = $k[--$j]; //#13261 + $put($_.cws, $_.j, $get(_41, $k[--$j])); //#13261 + $_.j = $_.j + 1; //#13262 + }; //#13262 + $_.cws = $a($_.msglen * 2); //#13265 + $_.i = 0; //#13266 + $_.j = 0; //#13266 + $_.cset = "set0"; //#13266 + for (;;) { //#13316 + if ($_.i == $_.msglen) { //#13268 + break; //#13268 + } //#13268 + for (;;) { //#13314 + $_.char1 = $get($_.msg, $_.i); //#13273 + $k[$j++] = 'char2'; //#13274 + if (($_.i + 1) < $_.msglen) { //#13274 + $k[$j++] = $get($_.msg, $_.i + 1); //#13274 + } else { //#13274 + $k[$j++] = -99; //#13274 + } //#13274 + var _4J = $k[--$j]; //#13274 + $_[$k[--$j]] = _4J; //#13274 + var _4O = $get($_[$_.cset], $_.char1) !== undefined; //#13277 + if (_4O) { //#13281 + $k[$j++] = $_.char1; //#13278 + $k[$j++] = $_[$_.cset]; //#13278 + $_.enc(); //#13278 + $_.i = $_.i + 1; //#13279 + break; //#13280 + } //#13280 + var _4V = $get($_.set2, $_.char1) !== undefined; //#13284 + if (_4V) { //#13289 + $k[$j++] = $_.sf2; //#13285 + $k[$j++] = $_[$_.cset]; //#13285 + $_.enc(); //#13285 + $k[$j++] = $_.char1; //#13286 + $k[$j++] = $_.set2; //#13286 + $_.enc(); //#13286 + $_.i = $_.i + 1; //#13287 + break; //#13288 + } //#13288 + var _4f = $get($_[$_.cset], $_.char2) !== undefined; //#13292 + if (!_4f) { //#13310 + if ($eq($_.cset, "set0")) { //#13298 + $k[$j++] = $_.la1; //#13294 + $k[$j++] = $_[$_.cset]; //#13294 + $_.enc(); //#13294 + $_.cset = "set1"; //#13295 + } else { //#13298 + $k[$j++] = $_.la0; //#13297 + $k[$j++] = $_[$_.cset]; //#13297 + $_.enc(); //#13297 + $_.cset = "set0"; //#13298 + } //#13298 + break; //#13300 + } else { //#13310 + if ($eq($_.cset, "set0")) { //#13307 + $k[$j++] = $_.sf1; //#13303 + $k[$j++] = $_[$_.cset]; //#13303 + $_.enc(); //#13303 + $k[$j++] = $_.char1; //#13304 + $k[$j++] = $_.set1; //#13304 + $_.enc(); //#13304 + } else { //#13307 + $k[$j++] = $_.sf0; //#13306 + $k[$j++] = $_[$_.cset]; //#13306 + $_.enc(); //#13306 + $k[$j++] = $_.char1; //#13307 + $k[$j++] = $_.set0; //#13307 + $_.enc(); //#13307 + } //#13307 + $_.i = $_.i + 1; //#13309 + break; //#13310 + } //#13310 + break; //#13313 + } //#13313 + } //#13313 + $_.cws = $geti($_.cws, 0, $_.j); //#13317 + } //#13317 + if (!bwipp_posicode.__13368__) { //#13368 + $_ = Object.create($_); //#13368 + var _56 = new Map([ ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] - ]); //#13160 - $_.encmaps = _4s; //#13162 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13162 - bwipp_posicode.__13163__ = 1; //#13162 - $_ = Object.getPrototypeOf($_); //#13162 - } //#13162 - $_.encs = $get($_.encmaps, $_.version); //#13164 - if (!bwipp_posicode.__13174__) { //#13174 - $_ = Object.create($_); //#13174 - $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13173 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13173 - bwipp_posicode.__13174__ = 1; //#13173 - $_ = Object.getPrototypeOf($_); //#13173 - } //#13173 - $_.v = 0; //#13175 - var _54 = $_.cws; //#13176 - for (var _55 = 0, _56 = _54.length; _55 < _56; _55++) { //#13185 - $_.cw = $get(_54, _55); //#13177 - for (var _58 = 0, _59 = 6; _58 < _59; _58++) { //#13184 - if ((($_.cw ^ $_.v) & 1) != 0) { //#13181 - $_.v = $_.v ^ 7682; //#13180 - } //#13180 - $_.v = $_.v >>> 1; //#13182 - $_.cw = $_.cw >>> 1; //#13183 - } //#13183 - } //#13183 - $_.v = $_.v + $_.checkoffset; //#13186 - if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13194 - $_.v = $_.v & 1023; //#13189 - if (($_.v > 824) && ($_.v < 853)) { //#13192 - $_.v = $_.v + 292; //#13191 - } //#13191 - } else { //#13194 - $_.v = ($_.v & 1023) + 45; //#13194 - } //#13194 - $_.d = $a([2, 2, 2, 2, 2, 2]); //#13197 - $_.r = 0; //#13198 - $_.c = 0; //#13198 - $_.w = 0; //#13198 - $_.sum = 0; //#13198 - for (;;) { //#13217 - if ($_.sum == $_.v) { //#13200 - break; //#13200 - } //#13200 - $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13201 - if ($_.t == $_.v) { //#13206 - $_.w = $_.w + 1; //#13203 - $put($_.d, $_.r, $_.w + 2); //#13204 - $_.sum = $_.t; //#13205 - } //#13205 - if ($_.t > $_.v) { //#13211 - $put($_.d, $_.r, $_.w + 2); //#13208 - $_.r = $_.r + 1; //#13209 - $_.w = 0; //#13210 - } //#13210 - if ($_.t < $_.v) { //#13216 - $_.c = $_.c + 1; //#13213 - $_.w = $_.w + 1; //#13214 - $_.sum = $_.t; //#13215 - } //#13215 - } //#13215 - $k[$j++] = 20; //#13218 - for (var _5p = 0; _5p <= 4; _5p += 1) { //#13218 - var _5s = $k[--$j]; //#13218 - $k[$j++] = $f(_5s - $get($_.d, _5p)); //#13218 - } //#13218 - $put($_.d, 5, $k[--$j]); //#13219 - if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13222 - $k[$j++] = Infinity; //#13221 - var _5x = $_.d; //#13221 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#13221 - $k[$j++] = $f($get(_5x, _5y) + 1); //#13221 - } //#13221 - $_.d = $a(); //#13221 - } //#13221 - $_.cbs = $strcpy($s(12), "111111111111"); //#13223 - for (var _64 = 5; _64 >= 0; _64 -= 1) { //#13227 - $_.i = _64; //#13225 - $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13226 - } //#13226 - $_.sbs = $s(($_.cws.length * 6) + 31); //#13230 - var _6E = $get($_.encs, $_.encs.length - 2); //#13231 - $puti($_.sbs, 0, _6E); //#13232 - $_.j = _6E.length; //#13233 - for (var _6I = 0, _6H = $_.cws.length - 1; _6I <= _6H; _6I += 1) { //#13238 - $_.i = _6I; //#13235 - $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13236 - $_.j = $_.j + 6; //#13237 - } //#13237 - $puti($_.sbs, $_.j, $_.cbs); //#13239 - $_.j = $_.j + 12; //#13240 - var _6X = $get($_.encs, $_.encs.length - 1); //#13241 - $puti($_.sbs, $_.j, _6X); //#13242 - $_.j = _6X.length + $_.j; //#13243 - $_.sbs = $geti($_.sbs, 0, $_.j); //#13244 - $k[$j++] = Infinity; //#13254 - $k[$j++] = Infinity; //#13249 - var _6e = $_.sbs; //#13249 - for (var _6f = 0, _6g = _6e.length; _6f < _6g; _6f++) { //#13249 - $k[$j++] = $f($get(_6e, _6f) - 48); //#13249 - } //#13249 - var _6i = $a(); //#13249 - $k[$j++] = Infinity; //#13250 - for (var _6k = 0, _6l = ~~(($_.sbs.length + 1) / 2); _6k < _6l; _6k++) { //#13250 - $k[$j++] = $_.height; //#13250 - } //#13250 - var _6n = $a(); //#13250 - $k[$j++] = Infinity; //#13251 - for (var _6p = 0, _6q = ~~(($_.sbs.length + 1) / 2); _6p < _6q; _6p++) { //#13251 - $k[$j++] = 0; //#13251 - } //#13251 - var _6r = $a(); //#13251 - $k[$j++] = 'ren'; //#13254 - $k[$j++] = bwipp_renlinear; //#13254 - $k[$j++] = 'sbs'; //#13254 - $k[$j++] = _6i; //#13254 - $k[$j++] = 'bhs'; //#13254 - $k[$j++] = _6n; //#13254 - $k[$j++] = 'bbs'; //#13254 - $k[$j++] = _6r; //#13254 - $k[$j++] = 'txt'; //#13254 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13254 - $k[$j++] = 'textxalign'; //#13254 - $k[$j++] = "center"; //#13254 - $k[$j++] = 'opt'; //#13254 - $k[$j++] = $_.options; //#13254 - var _70 = $d(); //#13254 - $k[$j++] = _70; //#13257 - if (!$_.dontdraw) { //#13257 - bwipp_renlinear(); //#13257 - } //#13257 - $_ = Object.getPrototypeOf($_); //#13259 - $_ = Object.getPrototypeOf($_); //#13261 -} - + ]); //#13365 + $_.encmaps = _56; //#13367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13367 + bwipp_posicode.__13368__ = 1; //#13367 + $_ = Object.getPrototypeOf($_); //#13367 + } //#13367 + $_.encs = $get($_.encmaps, $_.version); //#13369 + if (!bwipp_posicode.__13379__) { //#13379 + $_ = Object.create($_); //#13379 + $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13378 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13378 + bwipp_posicode.__13379__ = 1; //#13378 + $_ = Object.getPrototypeOf($_); //#13378 + } //#13378 + $_.v = 0; //#13380 + var _5I = $_.cws; //#13381 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#13390 + $_.cw = $get(_5I, _5J); //#13382 + for (var _5M = 0, _5N = 6; _5M < _5N; _5M++) { //#13389 + if ((($_.cw ^ $_.v) & 1) != 0) { //#13386 + $_.v = $_.v ^ 7682; //#13385 + } //#13385 + $_.v = $_.v >>> 1; //#13387 + $_.cw = $_.cw >>> 1; //#13388 + } //#13388 + } //#13388 + $_.v = $_.v + $_.checkoffset; //#13391 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13399 + $_.v = $_.v & 1023; //#13394 + if (($_.v > 824) && ($_.v < 853)) { //#13397 + $_.v = $_.v + 292; //#13396 + } //#13396 + } else { //#13399 + $_.v = ($_.v & 1023) + 45; //#13399 + } //#13399 + $_.d = $a([2, 2, 2, 2, 2, 2]); //#13402 + $_.r = 0; //#13403 + $_.c = 0; //#13403 + $_.w = 0; //#13403 + $_.sum = 0; //#13403 + for (;;) { //#13422 + if ($_.sum == $_.v) { //#13405 + break; //#13405 + } //#13405 + $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13406 + if ($_.t == $_.v) { //#13411 + $_.w = $_.w + 1; //#13408 + $put($_.d, $_.r, $_.w + 2); //#13409 + $_.sum = $_.t; //#13410 + } //#13410 + if ($_.t > $_.v) { //#13416 + $put($_.d, $_.r, $_.w + 2); //#13413 + $_.r = $_.r + 1; //#13414 + $_.w = 0; //#13415 + } //#13415 + if ($_.t < $_.v) { //#13421 + $_.c = $_.c + 1; //#13418 + $_.w = $_.w + 1; //#13419 + $_.sum = $_.t; //#13420 + } //#13420 + } //#13420 + $k[$j++] = 20; //#13423 + for (var _63 = 0; _63 <= 4; _63 += 1) { //#13423 + var _66 = $k[--$j]; //#13423 + $k[$j++] = $f(_66 - $get($_.d, _63)); //#13423 + } //#13423 + $put($_.d, 5, $k[--$j]); //#13424 + if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13427 + $k[$j++] = Infinity; //#13426 + var _6B = $_.d; //#13426 + for (var _6C = 0, _6D = _6B.length; _6C < _6D; _6C++) { //#13426 + $k[$j++] = $f($get(_6B, _6C) + 1); //#13426 + } //#13426 + $_.d = $a(); //#13426 + } //#13426 + $_.cbs = $strcpy($s(12), "111111111111"); //#13428 + for (var _6I = 5; _6I >= 0; _6I -= 1) { //#13432 + $_.i = _6I; //#13430 + $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13431 + } //#13431 + $_.sbs = $s(($_.cws.length * 6) + 31); //#13435 + var _6S = $get($_.encs, $_.encs.length - 2); //#13436 + $puti($_.sbs, 0, _6S); //#13437 + $_.j = _6S.length; //#13438 + for (var _6W = 0, _6V = $_.cws.length - 1; _6W <= _6V; _6W += 1) { //#13443 + $_.i = _6W; //#13440 + $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13441 + $_.j = $_.j + 6; //#13442 + } //#13442 + $puti($_.sbs, $_.j, $_.cbs); //#13444 + $_.j = $_.j + 12; //#13445 + var _6l = $get($_.encs, $_.encs.length - 1); //#13446 + $puti($_.sbs, $_.j, _6l); //#13447 + $_.j = _6l.length + $_.j; //#13448 + $_.sbs = $geti($_.sbs, 0, $_.j); //#13449 + $k[$j++] = Infinity; //#13452 + $k[$j++] = Infinity; //#13454 + var _6s = $_.sbs; //#13454 + for (var _6t = 0, _6u = _6s.length; _6t < _6u; _6t++) { //#13454 + $k[$j++] = $f($get(_6s, _6t) - 48); //#13454 + } //#13454 + var _6w = $a(); //#13454 + $k[$j++] = Infinity; //#13455 + for (var _6y = 0, _6z = ~~(($_.sbs.length + 1) / 2); _6y < _6z; _6y++) { //#13455 + $k[$j++] = $_.height; //#13455 + } //#13455 + var _71 = $a(); //#13455 + $k[$j++] = Infinity; //#13456 + for (var _73 = 0, _74 = ~~(($_.sbs.length + 1) / 2); _73 < _74; _73++) { //#13456 + $k[$j++] = 0; //#13456 + } //#13456 + var _75 = $a(); //#13456 + var _7D = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13459 + var _7G = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13460 + $k[$j++] = 'ren'; //#13461 + $k[$j++] = bwipp_renlinear; //#13461 + $k[$j++] = 'sbs'; //#13461 + $k[$j++] = _6w; //#13461 + $k[$j++] = 'bhs'; //#13461 + $k[$j++] = _71; //#13461 + $k[$j++] = 'bbs'; //#13461 + $k[$j++] = _75; //#13461 + $k[$j++] = 'txt'; //#13461 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13461 + $k[$j++] = 'textxalign'; //#13461 + $k[$j++] = "center"; //#13461 + $k[$j++] = 'borderleft'; //#13461 + $k[$j++] = $get(_7D, $_.version); //#13461 + $k[$j++] = 'borderright'; //#13461 + $k[$j++] = $get(_7G, $_.version); //#13461 + $k[$j++] = 'opt'; //#13461 + $k[$j++] = $_.options; //#13461 + var _7K = $d(); //#13461 + $k[$j++] = _7K; //#13464 + if (!$_.dontdraw) { //#13464 + bwipp_renlinear(); //#13464 + } //#13464 + $_ = Object.getPrototypeOf($_); //#13466 + $_ = Object.getPrototypeOf($_); //#13468 +} //bwipp_posicode function bwipp_codablockf() { - $_ = Object.create($_); //#13292 - $_.dontdraw = false; //#13295 - $_.rows = -1; //#13296 - $_.columns = 8; //#13297 - $_.rowheight = 10; //#13298 - $_.sepheight = 1; //#13299 - $_.parse = false; //#13300 - $_.parsefnc = false; //#13301 - $k[$j++] = $_; //#13303 - bwipp_processoptions(); //#13303 - $_.options = $k[--$j]; //#13303 - $_.barcode = $k[--$j]; //#13304 - if (($_.columns < 4) || ($_.columns > 62)) { //#13308 - $k[$j++] = 'bwipp.codablockfBadColumns#13307'; //#13307 - $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13307 - bwipp_raiseerror(); //#13307 - } //#13307 - if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13312 - $k[$j++] = 'bwipp.codablockfBadRows#13311'; //#13311 - $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13311 - bwipp_raiseerror(); //#13311 - } //#13311 - if ($_.rowheight < 8) { //#13316 - $k[$j++] = 'bwipp.codablockfBadRowHeight#13315'; //#13315 - $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13315 - bwipp_raiseerror(); //#13315 - } //#13315 - if ($_.sepheight < 1) { //#13320 - $k[$j++] = 'bwipp.codablockfBadSepHeight#13319'; //#13319 - $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13319 - bwipp_raiseerror(); //#13319 - } //#13319 - bwipp_loadctx(bwipp_codablockf) //#13322 - $k[$j++] = 'c'; //#13324 - if (($_.columns >= 4) && ($_.columns <= 62)) { //#13324 - $k[$j++] = $_.columns; //#13324 - } else { //#13324 - $k[$j++] = 8; //#13324 - } //#13324 - var _C = $k[--$j]; //#13324 - $_[$k[--$j]] = _C; //#13324 - $k[$j++] = 'rows'; //#13325 - if (($_.rows >= 2) && ($_.rows <= 44)) { //#13325 - $k[$j++] = $_.rows; //#13325 - } else { //#13325 - $k[$j++] = -1; //#13325 - } //#13325 - var _H = $k[--$j]; //#13325 - $_[$k[--$j]] = _H; //#13325 - $_.swa = -1; //#13328 - $_.swb = -2; //#13328 - $_.swc = -3; //#13328 - $_.sft = -4; //#13328 - $_.fn1 = -5; //#13329 - $_.fn2 = -6; //#13329 - $_.fn3 = -7; //#13329 - $_.fn4 = -8; //#13329 - $_.sta = -9; //#13330 - $_.stp = -10; //#13330 + $_ = Object.create($_); //#13499 + $_.dontdraw = false; //#13502 + $_.rows = -1; //#13503 + $_.columns = 8; //#13504 + $_.rowheight = 10; //#13505 + $_.sepheight = 1; //#13506 + $_.parse = false; //#13507 + $_.parsefnc = false; //#13508 + $k[$j++] = $_; //#13510 + bwipp_processoptions(); //#13510 + $_.options = $k[--$j]; //#13510 + $_.barcode = $k[--$j]; //#13511 + if (($_.columns < 4) || ($_.columns > 62)) { //#13515 + $k[$j++] = 'bwipp.codablockfBadColumns#13514'; //#13514 + $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13514 + bwipp_raiseerror(); //#13514 + } //#13514 + if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13519 + $k[$j++] = 'bwipp.codablockfBadRows#13518'; //#13518 + $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13518 + bwipp_raiseerror(); //#13518 + } //#13518 + if ($_.rowheight < 8) { //#13523 + $k[$j++] = 'bwipp.codablockfBadRowHeight#13522'; //#13522 + $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13522 + bwipp_raiseerror(); //#13522 + } //#13522 + if ($_.sepheight < 1) { //#13527 + $k[$j++] = 'bwipp.codablockfBadSepHeight#13526'; //#13526 + $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13526 + bwipp_raiseerror(); //#13526 + } //#13526 + bwipp_loadctx(bwipp_codablockf) //#13529 + $k[$j++] = 'c'; //#13531 + if (($_.columns >= 4) && ($_.columns <= 62)) { //#13531 + $k[$j++] = $_.columns; //#13531 + } else { //#13531 + $k[$j++] = 8; //#13531 + } //#13531 + var _C = $k[--$j]; //#13531 + $_[$k[--$j]] = _C; //#13531 + $k[$j++] = 'rows'; //#13532 + if (($_.rows >= 2) && ($_.rows <= 44)) { //#13532 + $k[$j++] = $_.rows; //#13532 + } else { //#13532 + $k[$j++] = -1; //#13532 + } //#13532 + var _H = $k[--$j]; //#13532 + $_[$k[--$j]] = _H; //#13532 + $_.swa = -1; //#13535 + $_.swb = -2; //#13535 + $_.swc = -3; //#13535 + $_.sft = -4; //#13535 + $_.fn1 = -5; //#13536 + $_.fn2 = -6; //#13536 + $_.fn3 = -7; //#13536 + $_.fn4 = -8; //#13536 + $_.sta = -9; //#13537 + $_.stp = -10; //#13537 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#13338 - $_.fncvals = _N; //#13340 - $k[$j++] = 'msg'; //#13341 - $k[$j++] = $_.barcode; //#13341 - $k[$j++] = $_.fncvals; //#13341 - bwipp_parseinput(); //#13341 - var _Q = $k[--$j]; //#13341 - $_[$k[--$j]] = _Q; //#13341 - $_.msglen = $_.msg.length; //#13342 - $_.msgtmp = $a([]); //#13345 - var _U = $_.msg; //#13346 - for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13349 - $_.char = $get(_U, _V); //#13347 - $k[$j++] = Infinity; //#13348 - $aload($_.msgtmp); //#13348 - if ($_.char < 128) { //#13348 - $k[$j++] = $_.char; //#13348 - } else { //#13348 - $k[$j++] = $_.fn4; //#13348 - $k[$j++] = $_.char & 127; //#13348 - } //#13348 - $_.msgtmp = $a(); //#13348 - } //#13348 - $_.kmsg = $_.msg; //#13350 - $_.msg = $_.msgtmp; //#13351 - $_.msglen = $_.msg.length; //#13352 - if (!bwipp_codablockf.__13409__) { //#13409 - $_ = Object.create($_); //#13409 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13393 - $_.charvals = $a([new Map, new Map, new Map]); //#13396 - for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13405 - $_.i = _2p; //#13398 - $_.encs = $get($_.charmaps, $_.i); //#13399 - for (var _2t = 0; _2t <= 2; _2t += 1) { //#13404 - $_.j = _2t; //#13401 - var _2w = $get($_.encs, $_.j); //#13402 - $k[$j++] = _2w; //#13402 - if ($eq($type(_2w), 'stringtype')) { //#13402 - var _2z = $get($k[--$j], 0); //#13402 - $k[$j++] = _2z; //#13402 - } //#13402 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13403 - } //#13403 - } //#13403 - $_.seta = $get($_.charvals, 0); //#13406 - $_.setb = $get($_.charvals, 1); //#13407 - $_.setc = $get($_.charvals, 2); //#13408 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13408 - bwipp_codablockf.__13409__ = 1; //#13408 - $_ = Object.getPrototypeOf($_); //#13408 - } //#13408 + ]); //#13545 + $_.fncvals = _N; //#13547 + $k[$j++] = 'msg'; //#13548 + $k[$j++] = $_.barcode; //#13548 + $k[$j++] = $_.fncvals; //#13548 + bwipp_parseinput(); //#13548 + var _Q = $k[--$j]; //#13548 + $_[$k[--$j]] = _Q; //#13548 + $_.msglen = $_.msg.length; //#13549 + $_.msgtmp = $a([]); //#13552 + var _U = $_.msg; //#13553 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13556 + $_.char = $get(_U, _V); //#13554 + $k[$j++] = Infinity; //#13555 + $aload($_.msgtmp); //#13555 + if ($_.char < 128) { //#13555 + $k[$j++] = $_.char; //#13555 + } else { //#13555 + $k[$j++] = $_.fn4; //#13555 + $k[$j++] = $_.char & 127; //#13555 + } //#13555 + $_.msgtmp = $a(); //#13555 + } //#13555 + $_.kmsg = $_.msg; //#13557 + $_.msg = $_.msgtmp; //#13558 + $_.msglen = $_.msg.length; //#13559 + if (!bwipp_codablockf.__13616__) { //#13616 + $_ = Object.create($_); //#13616 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13600 + $_.charvals = $a([new Map, new Map, new Map]); //#13603 + for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13612 + $_.i = _2p; //#13605 + $_.encs = $get($_.charmaps, $_.i); //#13606 + for (var _2t = 0; _2t <= 2; _2t += 1) { //#13611 + $_.j = _2t; //#13608 + var _2w = $get($_.encs, $_.j); //#13609 + $k[$j++] = _2w; //#13609 + if ($eq($type(_2w), 'stringtype')) { //#13609 + var _2z = $get($k[--$j], 0); //#13609 + $k[$j++] = _2z; //#13609 + } //#13609 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13610 + } //#13610 + } //#13610 + $_.seta = $get($_.charvals, 0); //#13613 + $_.setb = $get($_.charvals, 1); //#13614 + $_.setc = $get($_.charvals, 2); //#13615 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13615 + bwipp_codablockf.__13616__ = 1; //#13615 + $_ = Object.getPrototypeOf($_); //#13615 + } //#13615 $_.numsscr = function() { - $_.n = 0; //#13413 - $_.s = 0; //#13413 - $_.p = $k[--$j]; //#13414 - for (;;) { //#13425 - if ($_.p >= $_.msglen) { //#13415 - break; //#13415 - } //#13415 - var _3H = $get($_.msg, $_.p); //#13416 - var _3J = $get($_.setc, _3H) !== undefined; //#13417 - $k[$j++] = _3H; //#13417 - if (!_3J) { //#13417 - $j--; //#13417 - break; //#13417 - } //#13417 - if ($k[--$j] == $_.fn1) { //#13421 - if (($_.s % 2) == 0) { //#13420 - $_.s = $_.s + 1; //#13420 - } else { //#13420 - break; //#13420 - } //#13420 - } //#13420 - $_.n = $_.n + 1; //#13422 - $_.s = $_.s + 1; //#13423 - $_.p = $f($_.p + 1); //#13424 - } //#13424 - $k[$j++] = $_.n; //#13426 - $k[$j++] = $_.s; //#13426 - }; //#13426 + $_.n = 0; //#13620 + $_.s = 0; //#13620 + $_.p = $k[--$j]; //#13621 + for (;;) { //#13632 + if ($_.p >= $_.msglen) { //#13622 + break; //#13622 + } //#13622 + var _3H = $get($_.msg, $_.p); //#13623 + var _3J = $get($_.setc, _3H) !== undefined; //#13624 + $k[$j++] = _3H; //#13624 + if (!_3J) { //#13624 + $j--; //#13624 + break; //#13624 + } //#13624 + if ($k[--$j] == $_.fn1) { //#13628 + if (($_.s % 2) == 0) { //#13627 + $_.s = $_.s + 1; //#13627 + } else { //#13627 + break; //#13627 + } //#13627 + } //#13627 + $_.n = $_.n + 1; //#13629 + $_.s = $_.s + 1; //#13630 + $_.p = $f($_.p + 1); //#13631 + } //#13631 + $k[$j++] = $_.n; //#13633 + $k[$j++] = $_.s; //#13633 + }; //#13633 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13431 - $_.j = $_.j + 1; //#13432 - }; //#13432 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13638 + $_.j = $_.j + 1; //#13639 + }; //#13639 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13435 - $_.j = $_.j + 1; //#13436 - }; //#13436 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13642 + $_.j = $_.j + 1; //#13643 + }; //#13643 $_.encc = function() { - var _3f = $k[--$j]; //#13439 - $k[$j++] = _3f; //#13443 - if ($ne($type(_3f), 'arraytype')) { //#13442 - var _3j = $get($_.setc, $k[--$j]); //#13440 - $k[$j++] = _3j; //#13440 - } else { //#13442 - $aload($k[--$j]); //#13442 - var _3l = $k[--$j]; //#13442 - var _3m = $k[--$j]; //#13442 - $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13442 - } //#13442 - $put($_.cws, $_.j, $k[--$j]); //#13444 - $_.j = $_.j + 1; //#13445 - }; //#13445 + var _3f = $k[--$j]; //#13646 + $k[$j++] = _3f; //#13650 + if ($ne($type(_3f), 'arraytype')) { //#13649 + var _3j = $get($_.setc, $k[--$j]); //#13647 + $k[$j++] = _3j; //#13647 + } else { //#13649 + $aload($k[--$j]); //#13649 + var _3l = $k[--$j]; //#13649 + var _3m = $k[--$j]; //#13649 + $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13649 + } //#13649 + $put($_.cws, $_.j, $k[--$j]); //#13651 + $_.j = $_.j + 1; //#13652 + }; //#13652 $_.anotb = function() { - var _3r = $k[--$j]; //#13449 - var _3t = $get($_.seta, _3r) !== undefined; //#13449 - var _3v = $get($_.setb, _3r) !== undefined; //#13449 - $k[$j++] = _3t && (!_3v); //#13449 - }; //#13449 + var _3r = $k[--$j]; //#13656 + var _3t = $get($_.seta, _3r) !== undefined; //#13656 + var _3v = $get($_.setb, _3r) !== undefined; //#13656 + $k[$j++] = _3t && (!_3v); //#13656 + }; //#13656 $_.bnota = function() { - var _3w = $k[--$j]; //#13450 - var _3y = $get($_.setb, _3w) !== undefined; //#13450 - var _40 = $get($_.seta, _3w) !== undefined; //#13450 - $k[$j++] = _3y && (!_40); //#13450 - }; //#13450 - $k[$j++] = Infinity; //#13453 - for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13453 - $k[$j++] = 0; //#13453 - } //#13453 - $k[$j++] = 9999; //#13453 - $_.nextanotb = $a(); //#13453 - $k[$j++] = Infinity; //#13454 - for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13454 - $k[$j++] = 0; //#13454 - } //#13454 - $k[$j++] = 9999; //#13454 - $_.nextbnota = $a(); //#13454 - for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13467 - $_.i = _4A; //#13456 - $k[$j++] = $get($_.msg, $_.i); //#13457 - $_.anotb(); //#13457 - if ($k[--$j]) { //#13460 - $put($_.nextanotb, $_.i, 0); //#13458 - } else { //#13460 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13460 - } //#13460 - $k[$j++] = $get($_.msg, $_.i); //#13462 - $_.bnota(); //#13462 - if ($k[--$j]) { //#13465 - $put($_.nextbnota, $_.i, 0); //#13463 - } else { //#13465 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13465 - } //#13465 - } //#13465 + var _3w = $k[--$j]; //#13657 + var _3y = $get($_.setb, _3w) !== undefined; //#13657 + var _40 = $get($_.seta, _3w) !== undefined; //#13657 + $k[$j++] = _3y && (!_40); //#13657 + }; //#13657 + $k[$j++] = Infinity; //#13660 + for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13660 + $k[$j++] = 0; //#13660 + } //#13660 + $k[$j++] = 9999; //#13660 + $_.nextanotb = $a(); //#13660 + $k[$j++] = Infinity; //#13661 + for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13661 + $k[$j++] = 0; //#13661 + } //#13661 + $k[$j++] = 9999; //#13661 + $_.nextbnota = $a(); //#13661 + for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13674 + $_.i = _4A; //#13663 + $k[$j++] = $get($_.msg, $_.i); //#13664 + $_.anotb(); //#13664 + if ($k[--$j]) { //#13667 + $put($_.nextanotb, $_.i, 0); //#13665 + } else { //#13667 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13667 + } //#13667 + $k[$j++] = $get($_.msg, $_.i); //#13669 + $_.bnota(); //#13669 + if ($k[--$j]) { //#13672 + $put($_.nextbnota, $_.i, 0); //#13670 + } else { //#13672 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13672 + } //#13672 + } //#13672 $_.abeforeb = function() { - var _4X = $k[--$j]; //#13470 - $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13470 - }; //#13470 + var _4X = $k[--$j]; //#13677 + $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13677 + }; //#13677 $_.bbeforea = function() { - var _4c = $k[--$j]; //#13471 - $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13471 - }; //#13471 + var _4c = $k[--$j]; //#13678 + $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13678 + }; //#13678 $_.padrow = function() { - for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13481 - for (;;) { //#13480 - if ($eq($_.cset, "seta")) { //#13477 - $k[$j++] = $_.swc; //#13477 - $_.enca(); //#13477 - $_.cset = "setc"; //#13477 - break; //#13477 - } //#13477 - if ($eq($_.cset, "setb")) { //#13478 - $k[$j++] = $_.swc; //#13478 - $_.encb(); //#13478 - $_.cset = "setc"; //#13478 - break; //#13478 - } //#13478 - if ($eq($_.cset, "setc")) { //#13479 - $k[$j++] = $_.swb; //#13479 - $_.encc(); //#13479 - $_.cset = "setb"; //#13479 - break; //#13479 - } //#13479 - } //#13479 - } //#13479 - }; //#13479 + for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13688 + for (;;) { //#13687 + if ($eq($_.cset, "seta")) { //#13684 + $k[$j++] = $_.swc; //#13684 + $_.enca(); //#13684 + $_.cset = "setc"; //#13684 + break; //#13684 + } //#13684 + if ($eq($_.cset, "setb")) { //#13685 + $k[$j++] = $_.swc; //#13685 + $_.encb(); //#13685 + $_.cset = "setc"; //#13685 + break; //#13685 + } //#13685 + if ($eq($_.cset, "setc")) { //#13686 + $k[$j++] = $_.swb; //#13686 + $_.encc(); //#13686 + $_.cset = "setb"; //#13686 + break; //#13686 + } //#13686 + } //#13686 + } //#13686 + }; //#13686 $_.encafitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13496 - var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13488 - $k[$j++] = _4z; //#13492 - if (_4z) { //#13492 - $k[$j++] = $_.fn4; //#13489 - $_.enca(); //#13489 - $k[$j++] = $get($_.msg, $_.i + 1); //#13490 - $_.enca(); //#13490 - $_.i = $_.i + 2; //#13491 - } //#13491 - } else { //#13496 - $k[$j++] = $get($_.msg, $_.i); //#13494 - $_.enca(); //#13494 - $_.i = $_.i + 1; //#13495 - $k[$j++] = true; //#13496 - } //#13496 - }; //#13496 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13703 + var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13695 + $k[$j++] = _4z; //#13699 + if (_4z) { //#13699 + $k[$j++] = $_.fn4; //#13696 + $_.enca(); //#13696 + $k[$j++] = $get($_.msg, $_.i + 1); //#13697 + $_.enca(); //#13697 + $_.i = $_.i + 2; //#13698 + } //#13698 + } else { //#13703 + $k[$j++] = $get($_.msg, $_.i); //#13701 + $_.enca(); //#13701 + $_.i = $_.i + 1; //#13702 + $k[$j++] = true; //#13703 + } //#13703 + }; //#13703 $_.encbfitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13512 - var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13504 - $k[$j++] = _5I; //#13508 - if (_5I) { //#13508 - $k[$j++] = $_.fn4; //#13505 - $_.encb(); //#13505 - $k[$j++] = $get($_.msg, $_.i + 1); //#13506 - $_.encb(); //#13506 - $_.i = $_.i + 2; //#13507 - } //#13507 - } else { //#13512 - $k[$j++] = $get($_.msg, $_.i); //#13510 - $_.encb(); //#13510 - $_.i = $_.i + 1; //#13511 - $k[$j++] = true; //#13512 - } //#13512 - }; //#13512 - $_.cws = $a($f($_.c + 5) * 44); //#13517 - $_.i = 0; //#13519 - $_.j = 0; //#13519 - $_.r = 1; //#13519 - $_.lastrow = false; //#13520 - for (;;) { //#13687 - if ($_.lastrow) { //#13522 - break; //#13522 - } //#13522 - if ($_.r > 44) { //#13526 - $k[$j++] = 'bwipp.codablockfTooBig#13525'; //#13525 - $k[$j++] = "Maximum length exceeded"; //#13525 - bwipp_raiseerror(); //#13525 - } //#13525 - $k[$j++] = $_.sta; //#13529 - $_.enca(); //#13529 - if ($_.i < $_.msglen) { //#13530 - $k[$j++] = $_.i; //#13530 - $_.numsscr(); //#13530 - } else { //#13530 - $k[$j++] = -1; //#13530 - $k[$j++] = -1; //#13530 - } //#13530 - $_.nums = $k[--$j]; //#13530 - $_.nchars = $k[--$j]; //#13530 - for (;;) { //#13550 - if ($_.msglen == 0) { //#13536 - $k[$j++] = $_.swb; //#13533 - $_.enca(); //#13533 - $_.cset = "setb"; //#13534 - break; //#13535 - } //#13535 - if ($_.nums >= 2) { //#13541 - $k[$j++] = $_.swc; //#13538 - $_.enca(); //#13538 - $_.cset = "setc"; //#13539 - break; //#13540 - } //#13540 - $k[$j++] = $_.i; //#13542 - $_.abeforeb(); //#13542 - if ($k[--$j]) { //#13546 - $k[$j++] = $_.sft; //#13543 - $_.enca(); //#13543 - $_.cset = "seta"; //#13544 - break; //#13545 - } //#13545 - $k[$j++] = $_.swb; //#13547 - $_.enca(); //#13547 - $_.cset = "setb"; //#13548 - break; //#13549 - } //#13549 - $_.j = $_.j + 1; //#13551 - $_.endofrow = false; //#13554 - for (;;) { //#13672 - $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13555 - if (($_.i == $_.msglen) || $_.endofrow) { //#13557 - break; //#13557 - } //#13557 - $k[$j++] = $_.i; //#13559 - $_.numsscr(); //#13559 - $_.nums = $k[--$j]; //#13559 - $_.nchars = $k[--$j]; //#13559 - $k[$j++] = 'remnums'; //#13560 - if ($_.nums > ($_.rem * 2)) { //#13560 - $k[$j++] = $_.rem * 2; //#13560 - } else { //#13560 - $k[$j++] = $_.nums; //#13560 - } //#13560 - var _5y = $k[--$j]; //#13560 - $_[$k[--$j]] = _5y; //#13560 - for (;;) { //#13670 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13598 - if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13580 - $k[$j++] = $_.swc; //#13568 - if ($eq($_.cset, "seta")) { //#13568 - $_.enca(); //#13568 - } else { //#13568 - $_.encb(); //#13568 - } //#13568 - $_.cset = "setc"; //#13569 - for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13578 - if ($get($_.msg, $_.i) == $_.fn1) { //#13576 - $k[$j++] = $_.fn1; //#13572 - $_.encc(); //#13572 - $_.i = $_.i + 1; //#13573 - } else { //#13576 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13575 - $_.encc(); //#13575 - $_.i = $_.i + 2; //#13576 - } //#13576 - } //#13576 - break; //#13579 - } //#13579 - if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13597 - $k[$j++] = $get($_.msg, $_.i); //#13583 - if ($eq($_.cset, "seta")) { //#13583 - $_.enca(); //#13583 - } else { //#13583 - $_.encb(); //#13583 - } //#13583 - $_.i = $_.i + 1; //#13584 - $k[$j++] = $_.swc; //#13585 - if ($eq($_.cset, "seta")) { //#13585 - $_.enca(); //#13585 - } else { //#13585 - $_.encb(); //#13585 - } //#13585 - $_.cset = "setc"; //#13586 - for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13595 - if ($get($_.msg, $_.i) == $_.fn1) { //#13593 - $k[$j++] = $_.fn1; //#13589 - $_.encc(); //#13589 - $_.i = $_.i + 1; //#13590 - } else { //#13593 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13592 - $_.encc(); //#13592 - $_.i = $_.i + 2; //#13593 - } //#13593 - } //#13593 - break; //#13596 - } //#13596 - } //#13596 - $k[$j++] = $eq($_.cset, "setb"); //#13599 - $k[$j++] = $get($_.msg, $_.i); //#13599 - $_.anotb(); //#13599 - var _6m = $k[--$j]; //#13599 - var _6n = $k[--$j]; //#13599 - if ((_6n && _6m) && ($_.rem >= 2)) { //#13614 - if ($_.i < ($_.msglen - 1)) { //#13608 - $k[$j++] = $_.i + 1; //#13602 - $_.bbeforea(); //#13602 - if ($k[--$j]) { //#13607 - $k[$j++] = $_.sft; //#13603 - $_.encb(); //#13603 - $k[$j++] = $get($_.msg, $_.i); //#13604 - $_.enca(); //#13604 - $_.i = $_.i + 1; //#13605 - break; //#13606 - } //#13606 - } //#13606 - $k[$j++] = $_.swa; //#13609 - $_.encb(); //#13609 - $_.cset = "seta"; //#13610 - $k[$j++] = $get($_.msg, $_.i); //#13611 - $_.enca(); //#13611 - $_.i = $_.i + 1; //#13612 - break; //#13613 - } //#13613 - $k[$j++] = $eq($_.cset, "seta"); //#13615 - $k[$j++] = $get($_.msg, $_.i); //#13615 - $_.bnota(); //#13615 - var _77 = $k[--$j]; //#13615 - var _78 = $k[--$j]; //#13615 - if ((_78 && _77) && ($_.rem >= 2)) { //#13630 - if ($_.i < ($_.msglen - 1)) { //#13624 - $k[$j++] = $_.i + 1; //#13618 - $_.abeforeb(); //#13618 - if ($k[--$j]) { //#13623 - $k[$j++] = $_.sft; //#13619 - $_.enca(); //#13619 - $k[$j++] = $get($_.msg, $_.i); //#13620 - $_.encb(); //#13620 - $_.i = $_.i + 1; //#13621 - break; //#13622 - } //#13622 - } //#13622 - $k[$j++] = $_.swb; //#13625 - $_.enca(); //#13625 - $_.cset = "setb"; //#13626 - $k[$j++] = $get($_.msg, $_.i); //#13627 - $_.encb(); //#13627 - $_.i = $_.i + 1; //#13628 - break; //#13629 - } //#13629 - if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13643 - $_.rem = $f($_.rem - 1); //#13633 - $k[$j++] = $_.i; //#13634 - $_.abeforeb(); //#13634 - if ($k[--$j]) { //#13641 - $k[$j++] = $_.swa; //#13635 - $_.encc(); //#13635 - $_.cset = "seta"; //#13636 - $_.encafitsrow(); //#13637 - if ($k[--$j]) { //#13637 - break; //#13637 - } //#13637 - } else { //#13641 - $k[$j++] = $_.swb; //#13639 - $_.encc(); //#13639 - $_.cset = "setb"; //#13640 - $_.encbfitsrow(); //#13641 - if ($k[--$j]) { //#13641 - break; //#13641 - } //#13641 - } //#13641 - } //#13641 - var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13646 - if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13649 - $_.encafitsrow(); //#13648 - if ($k[--$j]) { //#13648 - break; //#13648 - } //#13648 - } //#13648 - var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13650 - if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13653 - $_.encbfitsrow(); //#13652 - if ($k[--$j]) { //#13652 - break; //#13652 - } //#13652 - } //#13652 - if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13664 - if ($get($_.msg, $_.i) == $_.fn1) { //#13661 - $k[$j++] = $_.fn1; //#13657 - $_.encc(); //#13657 - $_.i = $_.i + 1; //#13658 - } else { //#13661 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13660 - $_.encc(); //#13660 - $_.i = $_.i + 2; //#13661 - } //#13661 - break; //#13663 - } //#13663 - $_.endofrow = true; //#13667 - break; //#13668 - } //#13668 - } //#13668 - if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13684 - $k[$j++] = $f($_.rem - 2); //#13676 - $_.padrow(); //#13676 - $_.j = $_.j + 3; //#13677 - $k[$j++] = $_.stp; //#13678 - $_.enca(); //#13678 - $_.lastrow = true; //#13679 - } else { //#13684 - $k[$j++] = $_.rem; //#13681 - $_.padrow(); //#13681 - $_.j = $_.j + 1; //#13682 - $k[$j++] = $_.stp; //#13683 - $_.enca(); //#13683 - $_.r = $_.r + 1; //#13684 - } //#13684 - } //#13684 - $_.cws = $geti($_.cws, 0, $_.j); //#13688 - if (!bwipp_codablockf.__13698__) { //#13698 - $_ = Object.create($_); //#13698 - $k[$j++] = Infinity; //#13695 - for (var _8I = 64; _8I <= 95; _8I += 1) { //#13693 - $k[$j++] = _8I; //#13693 - } //#13693 - for (var _8J = 0; _8J <= 15; _8J += 1) { //#13694 - $k[$j++] = _8J; //#13694 - } //#13694 - for (var _8K = 26; _8K <= 63; _8K += 1) { //#13695 - $k[$j++] = _8K; //#13695 - } //#13695 - $_.abmap = $a(); //#13695 - $k[$j++] = Infinity; //#13697 - for (var _8M = 0; _8M <= 85; _8M += 1) { //#13697 - $k[$j++] = _8M; //#13697 - } //#13697 - $_.cmap = $a(); //#13697 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13697 - bwipp_codablockf.__13698__ = 1; //#13697 - $_ = Object.getPrototypeOf($_); //#13697 - } //#13697 - $_.chkmsg = $a($_.kmsg.length); //#13701 - $_.j = 0; //#13702 - for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13708 - $_.i = _8T; //#13704 - $_.char = $get($_.kmsg, $_.i); //#13705 - if ($_.char >= 0) { //#13706 - $put($_.chkmsg, $_.j, $_.char); //#13706 - $_.j = $_.j + 1; //#13706 - } //#13706 - if (($_.char == $_.fn1) && ($_.i != 0)) { //#13707 - $put($_.chkmsg, $_.j, 29); //#13707 - $_.j = $_.j + 1; //#13707 - } //#13707 - } //#13707 - $_.t1 = 0; //#13709 - $_.t2 = 0; //#13709 - $_.k1 = 0; //#13709 - $_.k2 = 0; //#13709 - for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13716 - $_.i = _8k; //#13711 - $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13712 - $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13713 - $_.k1 = $f($_.k1 + $_.t2) % 86; //#13714 - $_.k2 = $f($_.k2 + $_.t1) % 86; //#13715 - } //#13715 - $k[$j++] = $_.cws; //#13717 - $k[$j++] = $_.cws.length - 4; //#13717 - if ($ne($_.cset, "setc")) { //#13717 - $k[$j++] = $_.abmap; //#13717 - } else { //#13717 - $k[$j++] = $_.cmap; //#13717 - } //#13717 - var _94 = $get($k[--$j], $_.k1); //#13717 - var _95 = $k[--$j]; //#13717 - $put($k[--$j], _95, _94); //#13717 - $k[$j++] = $_.cws; //#13718 - $k[$j++] = $_.cws.length - 3; //#13718 - if ($ne($_.cset, "setc")) { //#13718 - $k[$j++] = $_.abmap; //#13718 - } else { //#13718 - $k[$j++] = $_.cmap; //#13718 - } //#13718 - var _9E = $get($k[--$j], $_.k2); //#13718 - var _9F = $k[--$j]; //#13718 - $put($k[--$j], _9F, _9E); //#13718 - var _9H = $_.cws; //#13721 - $k[$j++] = _9H; //#13721 - $k[$j++] = 2; //#13721 - if ($get(_9H, 2 - 1) != 99) { //#13721 - $k[$j++] = $_.abmap; //#13721 - } else { //#13721 - $k[$j++] = $_.cmap; //#13721 - } //#13721 - var _9N = $get($k[--$j], $_.r - 2); //#13721 - var _9O = $k[--$j]; //#13721 - $put($k[--$j], _9O, _9N); //#13721 - for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13725 - $_.i = _9S; //#13723 - var _9T = $_.cws; //#13724 - var _9U = $_.i; //#13724 - var _9V = $_.c; //#13724 - $k[$j++] = _9T; //#13724 - $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13724 - if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13724 - $k[$j++] = $_.abmap; //#13724 - } else { //#13724 - $k[$j++] = $_.cmap; //#13724 - } //#13724 - var _9b = $get($k[--$j], $_.i + 42); //#13724 - var _9c = $k[--$j]; //#13724 - $put($k[--$j], _9c, _9b); //#13724 - } //#13724 - for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13736 - $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13729 - $_.csum = $get($_.rcws, 0); //#13730 - for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13734 - $_.i = _9p; //#13732 - $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13733 - } //#13733 - $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13735 - } //#13735 - var _9z = $get($_.options, 'debugcws') !== undefined; //#13738 - if (_9z) { //#13738 - $k[$j++] = 'bwipp.debugcws#13738'; //#13738 - $k[$j++] = $_.cws; //#13738 - bwipp_raiseerror(); //#13738 - } //#13738 - if (!bwipp_codablockf.__13759__) { //#13759 - $_ = Object.create($_); //#13759 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13758 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13758 - bwipp_codablockf.__13759__ = 1; //#13758 - $_ = Object.getPrototypeOf($_); //#13758 - } //#13758 - $_.rowbits = $a($_.r); //#13762 - for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13774 - $_.i = _A7; //#13764 - $k[$j++] = Infinity; //#13767 - var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13766 - for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13768 - $forall($get($_.encs, $get(_AC, _AD)), function() { //#13767 - var _AI = $k[--$j]; //#13767 - $k[$j++] = $f(_AI - 48); //#13767 - }); //#13767 - } //#13767 - $_.sbs = $a(); //#13767 - $k[$j++] = Infinity; //#13770 - var _AK = $_.sbs; //#13771 - $k[$j++] = 0; //#13771 - for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13771 - var _AO = $k[--$j]; //#13771 - var _AP = (_AO == 1) ? 0 : 1; //#13771 - $k[$j++] = _AO; //#13771 - for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13771 - $k[$j++] = _AP //#13771 - } //#13771 - } //#13771 - $astore($a($counttomark() - 1)); //#13772 - var _AU = $k[--$j]; //#13772 - var _AV = $k[--$j]; //#13772 - $k[$j++] = _AU; //#13772 - $k[$j++] = _AV; //#13772 - $j--; //#13772 - var _AW = $k[--$j]; //#13772 - var _AX = $k[--$j]; //#13772 - $k[$j++] = _AW; //#13772 - $k[$j++] = _AX; //#13772 - $j--; //#13772 - $put($_.rowbits, $_.i, $k[--$j]); //#13773 - } //#13773 - $_.symwid = $f(($_.c * 11) + 57); //#13777 - $k[$j++] = Infinity; //#13790 - for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13779 - $k[$j++] = 1; //#13779 - } //#13779 - for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13788 - $_.i = _Ai; //#13781 - for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13782 - $aload($get($_.rowbits, $_.i)); //#13782 - } //#13782 - for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13787 - $k[$j++] = 1; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13785 - $k[$j++] = 1; //#13785 - } //#13785 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - } //#13786 - } //#13786 - for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13789 - $aload($get($_.rowbits, $_.r - 1)); //#13789 - } //#13789 - for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13790 - $k[$j++] = 1; //#13790 - } //#13790 - $_.pixs = $a(); //#13790 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13719 + var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13711 + $k[$j++] = _5I; //#13715 + if (_5I) { //#13715 + $k[$j++] = $_.fn4; //#13712 + $_.encb(); //#13712 + $k[$j++] = $get($_.msg, $_.i + 1); //#13713 + $_.encb(); //#13713 + $_.i = $_.i + 2; //#13714 + } //#13714 + } else { //#13719 + $k[$j++] = $get($_.msg, $_.i); //#13717 + $_.encb(); //#13717 + $_.i = $_.i + 1; //#13718 + $k[$j++] = true; //#13719 + } //#13719 + }; //#13719 + $_.cws = $a($f($_.c + 5) * 44); //#13724 + $_.i = 0; //#13726 + $_.j = 0; //#13726 + $_.r = 1; //#13726 + $_.lastrow = false; //#13727 + for (;;) { //#13894 + if ($_.lastrow) { //#13729 + break; //#13729 + } //#13729 + if ($_.r > 44) { //#13733 + $k[$j++] = 'bwipp.codablockfTooBig#13732'; //#13732 + $k[$j++] = "Maximum length exceeded"; //#13732 + bwipp_raiseerror(); //#13732 + } //#13732 + $k[$j++] = $_.sta; //#13736 + $_.enca(); //#13736 + if ($_.i < $_.msglen) { //#13737 + $k[$j++] = $_.i; //#13737 + $_.numsscr(); //#13737 + } else { //#13737 + $k[$j++] = -1; //#13737 + $k[$j++] = -1; //#13737 + } //#13737 + $_.nums = $k[--$j]; //#13737 + $_.nchars = $k[--$j]; //#13737 + for (;;) { //#13757 + if ($_.msglen == 0) { //#13743 + $k[$j++] = $_.swb; //#13740 + $_.enca(); //#13740 + $_.cset = "setb"; //#13741 + break; //#13742 + } //#13742 + if ($_.nums >= 2) { //#13748 + $k[$j++] = $_.swc; //#13745 + $_.enca(); //#13745 + $_.cset = "setc"; //#13746 + break; //#13747 + } //#13747 + $k[$j++] = $_.i; //#13749 + $_.abeforeb(); //#13749 + if ($k[--$j]) { //#13753 + $k[$j++] = $_.sft; //#13750 + $_.enca(); //#13750 + $_.cset = "seta"; //#13751 + break; //#13752 + } //#13752 + $k[$j++] = $_.swb; //#13754 + $_.enca(); //#13754 + $_.cset = "setb"; //#13755 + break; //#13756 + } //#13756 + $_.j = $_.j + 1; //#13758 + $_.endofrow = false; //#13761 + for (;;) { //#13879 + $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13762 + if (($_.i == $_.msglen) || $_.endofrow) { //#13764 + break; //#13764 + } //#13764 + $k[$j++] = $_.i; //#13766 + $_.numsscr(); //#13766 + $_.nums = $k[--$j]; //#13766 + $_.nchars = $k[--$j]; //#13766 + $k[$j++] = 'remnums'; //#13767 + if ($_.nums > ($_.rem * 2)) { //#13767 + $k[$j++] = $_.rem * 2; //#13767 + } else { //#13767 + $k[$j++] = $_.nums; //#13767 + } //#13767 + var _5y = $k[--$j]; //#13767 + $_[$k[--$j]] = _5y; //#13767 + for (;;) { //#13877 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13805 + if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13787 + $k[$j++] = $_.swc; //#13775 + if ($eq($_.cset, "seta")) { //#13775 + $_.enca(); //#13775 + } else { //#13775 + $_.encb(); //#13775 + } //#13775 + $_.cset = "setc"; //#13776 + for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13785 + if ($get($_.msg, $_.i) == $_.fn1) { //#13783 + $k[$j++] = $_.fn1; //#13779 + $_.encc(); //#13779 + $_.i = $_.i + 1; //#13780 + } else { //#13783 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13782 + $_.encc(); //#13782 + $_.i = $_.i + 2; //#13783 + } //#13783 + } //#13783 + break; //#13786 + } //#13786 + if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13804 + $k[$j++] = $get($_.msg, $_.i); //#13790 + if ($eq($_.cset, "seta")) { //#13790 + $_.enca(); //#13790 + } else { //#13790 + $_.encb(); //#13790 + } //#13790 + $_.i = $_.i + 1; //#13791 + $k[$j++] = $_.swc; //#13792 + if ($eq($_.cset, "seta")) { //#13792 + $_.enca(); //#13792 + } else { //#13792 + $_.encb(); //#13792 + } //#13792 + $_.cset = "setc"; //#13793 + for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13802 + if ($get($_.msg, $_.i) == $_.fn1) { //#13800 + $k[$j++] = $_.fn1; //#13796 + $_.encc(); //#13796 + $_.i = $_.i + 1; //#13797 + } else { //#13800 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13799 + $_.encc(); //#13799 + $_.i = $_.i + 2; //#13800 + } //#13800 + } //#13800 + break; //#13803 + } //#13803 + } //#13803 + $k[$j++] = $eq($_.cset, "setb"); //#13806 + $k[$j++] = $get($_.msg, $_.i); //#13806 + $_.anotb(); //#13806 + var _6m = $k[--$j]; //#13806 + var _6n = $k[--$j]; //#13806 + if ((_6n && _6m) && ($_.rem >= 2)) { //#13821 + if ($_.i < ($_.msglen - 1)) { //#13815 + $k[$j++] = $_.i + 1; //#13809 + $_.bbeforea(); //#13809 + if ($k[--$j]) { //#13814 + $k[$j++] = $_.sft; //#13810 + $_.encb(); //#13810 + $k[$j++] = $get($_.msg, $_.i); //#13811 + $_.enca(); //#13811 + $_.i = $_.i + 1; //#13812 + break; //#13813 + } //#13813 + } //#13813 + $k[$j++] = $_.swa; //#13816 + $_.encb(); //#13816 + $_.cset = "seta"; //#13817 + $k[$j++] = $get($_.msg, $_.i); //#13818 + $_.enca(); //#13818 + $_.i = $_.i + 1; //#13819 + break; //#13820 + } //#13820 + $k[$j++] = $eq($_.cset, "seta"); //#13822 + $k[$j++] = $get($_.msg, $_.i); //#13822 + $_.bnota(); //#13822 + var _77 = $k[--$j]; //#13822 + var _78 = $k[--$j]; //#13822 + if ((_78 && _77) && ($_.rem >= 2)) { //#13837 + if ($_.i < ($_.msglen - 1)) { //#13831 + $k[$j++] = $_.i + 1; //#13825 + $_.abeforeb(); //#13825 + if ($k[--$j]) { //#13830 + $k[$j++] = $_.sft; //#13826 + $_.enca(); //#13826 + $k[$j++] = $get($_.msg, $_.i); //#13827 + $_.encb(); //#13827 + $_.i = $_.i + 1; //#13828 + break; //#13829 + } //#13829 + } //#13829 + $k[$j++] = $_.swb; //#13832 + $_.enca(); //#13832 + $_.cset = "setb"; //#13833 + $k[$j++] = $get($_.msg, $_.i); //#13834 + $_.encb(); //#13834 + $_.i = $_.i + 1; //#13835 + break; //#13836 + } //#13836 + if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13850 + $_.rem = $f($_.rem - 1); //#13840 + $k[$j++] = $_.i; //#13841 + $_.abeforeb(); //#13841 + if ($k[--$j]) { //#13848 + $k[$j++] = $_.swa; //#13842 + $_.encc(); //#13842 + $_.cset = "seta"; //#13843 + $_.encafitsrow(); //#13844 + if ($k[--$j]) { //#13844 + break; //#13844 + } //#13844 + } else { //#13848 + $k[$j++] = $_.swb; //#13846 + $_.encc(); //#13846 + $_.cset = "setb"; //#13847 + $_.encbfitsrow(); //#13848 + if ($k[--$j]) { //#13848 + break; //#13848 + } //#13848 + } //#13848 + } //#13848 + var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13853 + if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13856 + $_.encafitsrow(); //#13855 + if ($k[--$j]) { //#13855 + break; //#13855 + } //#13855 + } //#13855 + var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13857 + if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13860 + $_.encbfitsrow(); //#13859 + if ($k[--$j]) { //#13859 + break; //#13859 + } //#13859 + } //#13859 + if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13871 + if ($get($_.msg, $_.i) == $_.fn1) { //#13868 + $k[$j++] = $_.fn1; //#13864 + $_.encc(); //#13864 + $_.i = $_.i + 1; //#13865 + } else { //#13868 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13867 + $_.encc(); //#13867 + $_.i = $_.i + 2; //#13868 + } //#13868 + break; //#13870 + } //#13870 + $_.endofrow = true; //#13874 + break; //#13875 + } //#13875 + } //#13875 + if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13891 + $k[$j++] = $f($_.rem - 2); //#13883 + $_.padrow(); //#13883 + $_.j = $_.j + 3; //#13884 + $k[$j++] = $_.stp; //#13885 + $_.enca(); //#13885 + $_.lastrow = true; //#13886 + } else { //#13891 + $k[$j++] = $_.rem; //#13888 + $_.padrow(); //#13888 + $_.j = $_.j + 1; //#13889 + $k[$j++] = $_.stp; //#13890 + $_.enca(); //#13890 + $_.r = $_.r + 1; //#13891 + } //#13891 + } //#13891 + $_.cws = $geti($_.cws, 0, $_.j); //#13895 + if (!bwipp_codablockf.__13905__) { //#13905 + $_ = Object.create($_); //#13905 + $k[$j++] = Infinity; //#13899 + for (var _8I = 64; _8I <= 95; _8I += 1) { //#13900 + $k[$j++] = _8I; //#13900 + } //#13900 + for (var _8J = 0; _8J <= 15; _8J += 1) { //#13901 + $k[$j++] = _8J; //#13901 + } //#13901 + for (var _8K = 26; _8K <= 63; _8K += 1) { //#13902 + $k[$j++] = _8K; //#13902 + } //#13902 + $_.abmap = $a(); //#13902 + $k[$j++] = Infinity; //#13904 + for (var _8M = 0; _8M <= 85; _8M += 1) { //#13904 + $k[$j++] = _8M; //#13904 + } //#13904 + $_.cmap = $a(); //#13904 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13904 + bwipp_codablockf.__13905__ = 1; //#13904 + $_ = Object.getPrototypeOf($_); //#13904 + } //#13904 + $_.chkmsg = $a($_.kmsg.length); //#13908 + $_.j = 0; //#13909 + for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13915 + $_.i = _8T; //#13911 + $_.char = $get($_.kmsg, $_.i); //#13912 + if ($_.char >= 0) { //#13913 + $put($_.chkmsg, $_.j, $_.char); //#13913 + $_.j = $_.j + 1; //#13913 + } //#13913 + if (($_.char == $_.fn1) && ($_.i != 0)) { //#13914 + $put($_.chkmsg, $_.j, 29); //#13914 + $_.j = $_.j + 1; //#13914 + } //#13914 + } //#13914 + $_.t1 = 0; //#13916 + $_.t2 = 0; //#13916 + $_.k1 = 0; //#13916 + $_.k2 = 0; //#13916 + for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13923 + $_.i = _8k; //#13918 + $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13919 + $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13920 + $_.k1 = $f($_.k1 + $_.t2) % 86; //#13921 + $_.k2 = $f($_.k2 + $_.t1) % 86; //#13922 + } //#13922 + $k[$j++] = $_.cws; //#13924 + $k[$j++] = $_.cws.length - 4; //#13924 + if ($ne($_.cset, "setc")) { //#13924 + $k[$j++] = $_.abmap; //#13924 + } else { //#13924 + $k[$j++] = $_.cmap; //#13924 + } //#13924 + var _94 = $get($k[--$j], $_.k1); //#13924 + var _95 = $k[--$j]; //#13924 + $put($k[--$j], _95, _94); //#13924 + $k[$j++] = $_.cws; //#13925 + $k[$j++] = $_.cws.length - 3; //#13925 + if ($ne($_.cset, "setc")) { //#13925 + $k[$j++] = $_.abmap; //#13925 + } else { //#13925 + $k[$j++] = $_.cmap; //#13925 + } //#13925 + var _9E = $get($k[--$j], $_.k2); //#13925 + var _9F = $k[--$j]; //#13925 + $put($k[--$j], _9F, _9E); //#13925 + var _9H = $_.cws; //#13928 + $k[$j++] = _9H; //#13928 + $k[$j++] = 2; //#13928 + if ($get(_9H, 2 - 1) != 99) { //#13928 + $k[$j++] = $_.abmap; //#13928 + } else { //#13928 + $k[$j++] = $_.cmap; //#13928 + } //#13928 + var _9N = $get($k[--$j], $_.r - 2); //#13928 + var _9O = $k[--$j]; //#13928 + $put($k[--$j], _9O, _9N); //#13928 + for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13932 + $_.i = _9S; //#13930 + var _9T = $_.cws; //#13931 + var _9U = $_.i; //#13931 + var _9V = $_.c; //#13931 + $k[$j++] = _9T; //#13931 + $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13931 + if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13931 + $k[$j++] = $_.abmap; //#13931 + } else { //#13931 + $k[$j++] = $_.cmap; //#13931 + } //#13931 + var _9b = $get($k[--$j], $_.i + 42); //#13931 + var _9c = $k[--$j]; //#13931 + $put($k[--$j], _9c, _9b); //#13931 + } //#13931 + for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13943 + $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13936 + $_.csum = $get($_.rcws, 0); //#13937 + for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13941 + $_.i = _9p; //#13939 + $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13940 + } //#13940 + $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13942 + } //#13942 + var _9z = $get($_.options, 'debugcws') !== undefined; //#13945 + if (_9z) { //#13945 + $k[$j++] = 'bwipp.debugcws#13945'; //#13945 + $k[$j++] = $_.cws; //#13945 + bwipp_raiseerror(); //#13945 + } //#13945 + if (!bwipp_codablockf.__13966__) { //#13966 + $_ = Object.create($_); //#13966 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13965 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13965 + bwipp_codablockf.__13966__ = 1; //#13965 + $_ = Object.getPrototypeOf($_); //#13965 + } //#13965 + $_.rowbits = $a($_.r); //#13969 + for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13981 + $_.i = _A7; //#13971 + $k[$j++] = Infinity; //#13972 + var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13973 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13975 + $forall($get($_.encs, $get(_AC, _AD)), function() { //#13974 + var _AI = $k[--$j]; //#13974 + $k[$j++] = $f(_AI - 48); //#13974 + }); //#13974 + } //#13974 + $_.sbs = $a(); //#13974 + $k[$j++] = Infinity; //#13977 + var _AK = $_.sbs; //#13978 + $k[$j++] = 0; //#13978 + for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13978 + var _AO = $k[--$j]; //#13978 + var _AP = (_AO == 1) ? 0 : 1; //#13978 + $k[$j++] = _AO; //#13978 + for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13978 + $k[$j++] = _AP //#13978 + } //#13978 + } //#13978 + $astore($a($counttomark() - 1)); //#13979 + var _AU = $k[--$j]; //#13979 + var _AV = $k[--$j]; //#13979 + $k[$j++] = _AU; //#13979 + $k[$j++] = _AV; //#13979 + $j--; //#13979 + var _AW = $k[--$j]; //#13979 + var _AX = $k[--$j]; //#13979 + $k[$j++] = _AW; //#13979 + $k[$j++] = _AX; //#13979 + $j--; //#13979 + $put($_.rowbits, $_.i, $k[--$j]); //#13980 + } //#13980 + $_.symwid = $f(($_.c * 11) + 57); //#13984 + $k[$j++] = Infinity; //#13985 + for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13986 + $k[$j++] = 1; //#13986 + } //#13986 + for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13995 + $_.i = _Ai; //#13988 + for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13989 + $aload($get($_.rowbits, $_.i)); //#13989 + } //#13989 + for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13994 + $k[$j++] = 1; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13992 + $k[$j++] = 1; //#13992 + } //#13992 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + } //#13993 + } //#13993 + for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13996 + $aload($get($_.rowbits, $_.r - 1)); //#13996 + } //#13996 + for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13997 + $k[$j++] = 1; //#13997 + } //#13997 + $_.pixs = $a(); //#13997 var _BE = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -17474,152 +17797,151 @@ function bwipp_codablockf() { ["height", (~~($_.pixs.length / $_.symwid)) / 72], ["width", $_.symwid / 72], ["opt", $_.options] - ]); //#13801 - $k[$j++] = _BE; //#13804 - if (!$_.dontdraw) { //#13804 - bwipp_renmatrix(); //#13804 - } //#13804 - $_ = Object.getPrototypeOf($_); //#13806 - $_ = Object.getPrototypeOf($_); //#13808 -} - + ]); //#14008 + $k[$j++] = _BE; //#14011 + if (!$_.dontdraw) { //#14011 + bwipp_renmatrix(); //#14011 + } //#14011 + $_ = Object.getPrototypeOf($_); //#14013 + $_ = Object.getPrototypeOf($_); //#14015 +} //bwipp_codablockf function bwipp_code16k() { - $_ = Object.create($_); //#13839 - $_.dontdraw = false; //#13842 - $_.sam = -1; //#13843 - $_.rows = 0; //#13844 - $_.rowheight = 8; //#13845 - $_.sepheight = 1; //#13846 - $_.raw = false; //#13847 - $_.parse = false; //#13848 - $_.parsefnc = false; //#13849 - $k[$j++] = $_; //#13851 - bwipp_processoptions(); //#13851 - $_.options = $k[--$j]; //#13851 - $_.barcode = $k[--$j]; //#13852 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#13856 - $k[$j++] = 'bwipp.code16kBadRows#13855'; //#13855 - $k[$j++] = "Code 16K must have 2 to 16 rows"; //#13855 - bwipp_raiseerror(); //#13855 - } //#13855 - if ($_.rowheight < 8) { //#13860 - $k[$j++] = 'bwipp.code16kBadRowHeight#13859'; //#13859 - $k[$j++] = "Code 16K must have rowheight of at least 8"; //#13859 - bwipp_raiseerror(); //#13859 - } //#13859 - if ($_.sepheight < 1) { //#13864 - $k[$j++] = 'bwipp.code16kBadSepHeight#13863'; //#13863 - $k[$j++] = "Code 16K must have sepheight of at least 1"; //#13863 - bwipp_raiseerror(); //#13863 - } //#13863 - if ($_.sam != -1) { //#13876 - $k[$j++] = true; //#13872 - for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#13872 - var _A = $_.sam; //#13869 - if ((_A < 12) || (_A > 99)) { //#13869 - $j--; //#13869 - $k[$j++] = false; //#13869 - break; //#13869 - } //#13869 - if (($_.sam % 10) < 2) { //#13870 - $j--; //#13870 - $k[$j++] = false; //#13870 - break; //#13870 - } //#13870 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#13871 - $j--; //#13871 - $k[$j++] = false; //#13871 - break; //#13871 - } //#13871 - } //#13871 - if ($nt($k[--$j])) { //#13875 - $k[$j++] = 'bwipp.code16kBadSAM#13874'; //#13874 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#13874 - bwipp_raiseerror(); //#13874 - } //#13874 - } //#13874 - bwipp_loadctx(bwipp_code16k) //#13878 - if ($_.sam != -1) { //#13880 - $_.rows = 16; //#13880 - } //#13880 - if (!bwipp_code16k.__13945__) { //#13945 - $_ = Object.create($_); //#13945 - $_.swa = -1; //#13884 - $_.swb = -2; //#13884 - $_.swc = -3; //#13884 - $_.sa1 = -4; //#13885 - $_.sb1 = -5; //#13885 - $_.sc1 = -6; //#13885 - $_.sa2 = -7; //#13886 - $_.sb2 = -8; //#13886 - $_.sc2 = -9; //#13886 - $_.pad = -10; //#13887 - $_.sb3 = -11; //#13887 - $_.sc3 = -12; //#13887 - $_.fn1 = -13; //#13888 - $_.fn2 = -14; //#13888 - $_.fn3 = -15; //#13888 - $_.fn4 = -16; //#13888 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#13929 - $_.charvals = $a([new Map, new Map, new Map]); //#13932 - for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#13941 - $_.i = _2W; //#13934 - $_.encs = $get($_.charmaps, $_.i); //#13935 - for (var _2a = 0; _2a <= 2; _2a += 1) { //#13940 - $_.j = _2a; //#13937 - var _2d = $get($_.encs, $_.j); //#13938 - $k[$j++] = _2d; //#13938 - if ($eq($type(_2d), 'stringtype')) { //#13938 - var _2g = $get($k[--$j], 0); //#13938 - $k[$j++] = _2g; //#13938 - } //#13938 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13939 - } //#13939 - } //#13939 - $_.seta = $get($_.charvals, 0); //#13942 - $_.setb = $get($_.charvals, 1); //#13943 - $_.setc = $get($_.charvals, 2); //#13944 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#13944 - bwipp_code16k.__13945__ = 1; //#13944 - $_ = Object.getPrototypeOf($_); //#13944 - } //#13944 - if ($_.raw) { //#14415 - $_.cws = $a($_.barcode.length); //#13949 - $_.i = 0; //#13950 - $_.j = 0; //#13950 - for (;;) { //#13961 - if ($_.i >= ($_.barcode.length - 3)) { //#13952 - break; //#13952 - } //#13952 - if ($get($_.barcode, $_.i) != 94) { //#13953 - break; //#13953 - } //#13953 - var _33 = $geti($_.barcode, $_.i + 1, 3); //#13954 - $k[$j++] = _33; //#13956 - $k[$j++] = false; //#13956 - for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#13956 - var _36 = $get(_33, _34); //#13956 - if ((_36 < 48) || (_36 > 57)) { //#13955 - $j--; //#13955 - $k[$j++] = true; //#13955 - } //#13955 - } //#13955 - if ($k[--$j]) { //#13956 - $j--; //#13956 - break; //#13956 - } //#13956 - $_.cw = $cvi($k[--$j]); //#13957 - $put($_.cws, $_.j, $_.cw); //#13958 - $_.i = $_.i + 4; //#13959 - $_.j = $_.j + 1; //#13960 - } //#13960 - if ($_.i != $_.barcode.length) { //#13964 - $k[$j++] = 'bwipp.code16kBadRawFormat#13963'; //#13963 - $k[$j++] = "raw data must be formatted as ^NNN"; //#13963 - bwipp_raiseerror(); //#13963 - } //#13963 - $_.cws = $geti($_.cws, 0, $_.j); //#13965 - } else { //#14415 + $_ = Object.create($_); //#14046 + $_.dontdraw = false; //#14049 + $_.sam = -1; //#14050 + $_.rows = 0; //#14051 + $_.rowheight = 8; //#14052 + $_.sepheight = 1; //#14053 + $_.raw = false; //#14054 + $_.parse = false; //#14055 + $_.parsefnc = false; //#14056 + $k[$j++] = $_; //#14058 + bwipp_processoptions(); //#14058 + $_.options = $k[--$j]; //#14058 + $_.barcode = $k[--$j]; //#14059 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#14063 + $k[$j++] = 'bwipp.code16kBadRows#14062'; //#14062 + $k[$j++] = "Code 16K must have 2 to 16 rows"; //#14062 + bwipp_raiseerror(); //#14062 + } //#14062 + if ($_.rowheight < 8) { //#14067 + $k[$j++] = 'bwipp.code16kBadRowHeight#14066'; //#14066 + $k[$j++] = "Code 16K must have rowheight of at least 8"; //#14066 + bwipp_raiseerror(); //#14066 + } //#14066 + if ($_.sepheight < 1) { //#14071 + $k[$j++] = 'bwipp.code16kBadSepHeight#14070'; //#14070 + $k[$j++] = "Code 16K must have sepheight of at least 1"; //#14070 + bwipp_raiseerror(); //#14070 + } //#14070 + if ($_.sam != -1) { //#14083 + $k[$j++] = true; //#14079 + for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#14079 + var _A = $_.sam; //#14076 + if ((_A < 12) || (_A > 99)) { //#14076 + $j--; //#14076 + $k[$j++] = false; //#14076 + break; //#14076 + } //#14076 + if (($_.sam % 10) < 2) { //#14077 + $j--; //#14077 + $k[$j++] = false; //#14077 + break; //#14077 + } //#14077 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14078 + $j--; //#14078 + $k[$j++] = false; //#14078 + break; //#14078 + } //#14078 + } //#14078 + if ($nt($k[--$j])) { //#14082 + $k[$j++] = 'bwipp.code16kBadSAM#14081'; //#14081 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14081 + bwipp_raiseerror(); //#14081 + } //#14081 + } //#14081 + bwipp_loadctx(bwipp_code16k) //#14085 + if ($_.sam != -1) { //#14087 + $_.rows = 16; //#14087 + } //#14087 + if (!bwipp_code16k.__14152__) { //#14152 + $_ = Object.create($_); //#14152 + $_.swa = -1; //#14091 + $_.swb = -2; //#14091 + $_.swc = -3; //#14091 + $_.sa1 = -4; //#14092 + $_.sb1 = -5; //#14092 + $_.sc1 = -6; //#14092 + $_.sa2 = -7; //#14093 + $_.sb2 = -8; //#14093 + $_.sc2 = -9; //#14093 + $_.pad = -10; //#14094 + $_.sb3 = -11; //#14094 + $_.sc3 = -12; //#14094 + $_.fn1 = -13; //#14095 + $_.fn2 = -14; //#14095 + $_.fn3 = -15; //#14095 + $_.fn4 = -16; //#14095 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#14136 + $_.charvals = $a([new Map, new Map, new Map]); //#14139 + for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#14148 + $_.i = _2W; //#14141 + $_.encs = $get($_.charmaps, $_.i); //#14142 + for (var _2a = 0; _2a <= 2; _2a += 1) { //#14147 + $_.j = _2a; //#14144 + var _2d = $get($_.encs, $_.j); //#14145 + $k[$j++] = _2d; //#14145 + if ($eq($type(_2d), 'stringtype')) { //#14145 + var _2g = $get($k[--$j], 0); //#14145 + $k[$j++] = _2g; //#14145 + } //#14145 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#14146 + } //#14146 + } //#14146 + $_.seta = $get($_.charvals, 0); //#14149 + $_.setb = $get($_.charvals, 1); //#14150 + $_.setc = $get($_.charvals, 2); //#14151 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14151 + bwipp_code16k.__14152__ = 1; //#14151 + $_ = Object.getPrototypeOf($_); //#14151 + } //#14151 + if ($_.raw) { //#14622 + $_.cws = $a($_.barcode.length); //#14156 + $_.i = 0; //#14157 + $_.j = 0; //#14157 + for (;;) { //#14168 + if ($_.i >= ($_.barcode.length - 3)) { //#14159 + break; //#14159 + } //#14159 + if ($get($_.barcode, $_.i) != 94) { //#14160 + break; //#14160 + } //#14160 + var _33 = $geti($_.barcode, $_.i + 1, 3); //#14161 + $k[$j++] = _33; //#14163 + $k[$j++] = false; //#14163 + for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#14163 + var _36 = $get(_33, _34); //#14163 + if ((_36 < 48) || (_36 > 57)) { //#14162 + $j--; //#14162 + $k[$j++] = true; //#14162 + } //#14162 + } //#14162 + if ($k[--$j]) { //#14163 + $j--; //#14163 + break; //#14163 + } //#14163 + $_.cw = $cvi($k[--$j]); //#14164 + $put($_.cws, $_.j, $_.cw); //#14165 + $_.i = $_.i + 4; //#14166 + $_.j = $_.j + 1; //#14167 + } //#14167 + if ($_.i != $_.barcode.length) { //#14171 + $k[$j++] = 'bwipp.code16kBadRawFormat#14170'; //#14170 + $k[$j++] = "raw data must be formatted as ^NNN"; //#14170 + bwipp_raiseerror(); //#14170 + } //#14170 + $_.cws = $geti($_.cws, 0, $_.j); //#14172 + } else { //#14622 var _3O = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -17627,826 +17949,826 @@ function bwipp_code16k() { ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13976 - $_.fncvals = _3O; //#13978 - $k[$j++] = 'msg'; //#13979 - $k[$j++] = $_.barcode; //#13979 - $k[$j++] = $_.fncvals; //#13979 - bwipp_parseinput(); //#13979 - var _3R = $k[--$j]; //#13979 - $_[$k[--$j]] = _3R; //#13979 - $_.msglen = $_.msg.length; //#13980 - $k[$j++] = Infinity; //#13983 - for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#13983 - $k[$j++] = 0; //#13983 - } //#13983 - $k[$j++] = 0; //#13983 - $_.numSA = $a(); //#13983 - $k[$j++] = Infinity; //#13984 - for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#13984 - $k[$j++] = 0; //#13984 - } //#13984 - $k[$j++] = 0; //#13984 - $_.numEA = $a(); //#13984 - for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#13994 - $_.i = _3d; //#13986 - if ($get($_.msg, $_.i) >= 0) { //#13993 - if ($get($_.msg, $_.i) >= 128) { //#13991 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13989 - } else { //#13991 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13991 - } //#13991 - } //#13991 - } //#13991 - $_.ea = false; //#13997 - $_.msgtmp = $a([]); //#13997 - for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14012 - $_.i = _3x; //#13999 - $_.c = $get($_.msg, $_.i); //#14000 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14010 - if ($_.ea) { //#14002 - $k[$j++] = $_.numSA; //#14002 - } else { //#14002 - $k[$j++] = $_.numEA; //#14002 - } //#14002 - var _49 = $get($k[--$j], $_.i); //#14002 - var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14003 - if (_49 < _4C) { //#14008 - $k[$j++] = Infinity; //#14005 - $aload($_.msgtmp); //#14005 - $k[$j++] = $_.fn4; //#14005 - $_.msgtmp = $a(); //#14005 - } else { //#14008 - $k[$j++] = Infinity; //#14007 - $aload($_.msgtmp); //#14007 - $k[$j++] = $_.fn4; //#14007 - $k[$j++] = $_.fn4; //#14007 - $_.msgtmp = $a(); //#14007 - $_.ea = !$_.ea; //#14008 - } //#14008 - } //#14008 - $k[$j++] = Infinity; //#14011 - $aload($_.msgtmp); //#14011 - if ($_.c >= 0) { //#14011 - $k[$j++] = $_.c & 127; //#14011 - } else { //#14011 - $k[$j++] = $_.c; //#14011 - } //#14011 - $_.msgtmp = $a(); //#14011 - } //#14011 - $_.msg = $_.msgtmp; //#14013 - $_.msglen = $_.msg.length; //#14014 + ]); //#14183 + $_.fncvals = _3O; //#14185 + $k[$j++] = 'msg'; //#14186 + $k[$j++] = $_.barcode; //#14186 + $k[$j++] = $_.fncvals; //#14186 + bwipp_parseinput(); //#14186 + var _3R = $k[--$j]; //#14186 + $_[$k[--$j]] = _3R; //#14186 + $_.msglen = $_.msg.length; //#14187 + $k[$j++] = Infinity; //#14190 + for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#14190 + $k[$j++] = 0; //#14190 + } //#14190 + $k[$j++] = 0; //#14190 + $_.numSA = $a(); //#14190 + $k[$j++] = Infinity; //#14191 + for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#14191 + $k[$j++] = 0; //#14191 + } //#14191 + $k[$j++] = 0; //#14191 + $_.numEA = $a(); //#14191 + for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#14201 + $_.i = _3d; //#14193 + if ($get($_.msg, $_.i) >= 0) { //#14200 + if ($get($_.msg, $_.i) >= 128) { //#14198 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#14196 + } else { //#14198 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#14198 + } //#14198 + } //#14198 + } //#14198 + $_.ea = false; //#14204 + $_.msgtmp = $a([]); //#14204 + for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14219 + $_.i = _3x; //#14206 + $_.c = $get($_.msg, $_.i); //#14207 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14217 + if ($_.ea) { //#14209 + $k[$j++] = $_.numSA; //#14209 + } else { //#14209 + $k[$j++] = $_.numEA; //#14209 + } //#14209 + var _49 = $get($k[--$j], $_.i); //#14209 + var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14210 + if (_49 < _4C) { //#14215 + $k[$j++] = Infinity; //#14212 + $aload($_.msgtmp); //#14212 + $k[$j++] = $_.fn4; //#14212 + $_.msgtmp = $a(); //#14212 + } else { //#14215 + $k[$j++] = Infinity; //#14214 + $aload($_.msgtmp); //#14214 + $k[$j++] = $_.fn4; //#14214 + $k[$j++] = $_.fn4; //#14214 + $_.msgtmp = $a(); //#14214 + $_.ea = !$_.ea; //#14215 + } //#14215 + } //#14215 + $k[$j++] = Infinity; //#14218 + $aload($_.msgtmp); //#14218 + if ($_.c >= 0) { //#14218 + $k[$j++] = $_.c & 127; //#14218 + } else { //#14218 + $k[$j++] = $_.c; //#14218 + } //#14218 + $_.msgtmp = $a(); //#14218 + } //#14218 + $_.msg = $_.msgtmp; //#14220 + $_.msglen = $_.msg.length; //#14221 $_.numsscr = function() { - $_.n = 0; //#14018 - $_.s = 0; //#14018 - $_.p = $k[--$j]; //#14019 - for (;;) { //#14030 - if ($_.p >= $_.msglen) { //#14020 - break; //#14020 - } //#14020 - var _4X = $get($_.msg, $_.p); //#14021 - var _4Z = $get($_.setc, _4X) !== undefined; //#14022 - $k[$j++] = _4X; //#14022 - if (!_4Z) { //#14022 - $j--; //#14022 - break; //#14022 - } //#14022 - if ($k[--$j] == $_.fn1) { //#14026 - if (($_.s % 2) == 0) { //#14025 - $_.s = $_.s + 1; //#14025 - } else { //#14025 - break; //#14025 - } //#14025 - } //#14025 - $_.n = $_.n + 1; //#14027 - $_.s = $_.s + 1; //#14028 - $_.p = $f($_.p + 1); //#14029 - } //#14029 - $k[$j++] = $_.n; //#14031 - $k[$j++] = $_.s; //#14031 - }; //#14031 + $_.n = 0; //#14225 + $_.s = 0; //#14225 + $_.p = $k[--$j]; //#14226 + for (;;) { //#14237 + if ($_.p >= $_.msglen) { //#14227 + break; //#14227 + } //#14227 + var _4X = $get($_.msg, $_.p); //#14228 + var _4Z = $get($_.setc, _4X) !== undefined; //#14229 + $k[$j++] = _4X; //#14229 + if (!_4Z) { //#14229 + $j--; //#14229 + break; //#14229 + } //#14229 + if ($k[--$j] == $_.fn1) { //#14233 + if (($_.s % 2) == 0) { //#14232 + $_.s = $_.s + 1; //#14232 + } else { //#14232 + break; //#14232 + } //#14232 + } //#14232 + $_.n = $_.n + 1; //#14234 + $_.s = $_.s + 1; //#14235 + $_.p = $f($_.p + 1); //#14236 + } //#14236 + $k[$j++] = $_.n; //#14238 + $k[$j++] = $_.s; //#14238 + }; //#14238 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14036 - $_.j = $_.j + 1; //#14037 - }; //#14037 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14243 + $_.j = $_.j + 1; //#14244 + }; //#14244 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14040 - $_.j = $_.j + 1; //#14041 - }; //#14041 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14247 + $_.j = $_.j + 1; //#14248 + }; //#14248 $_.encc = function() { - var _4v = $k[--$j]; //#14044 - $k[$j++] = _4v; //#14048 - if ($ne($type(_4v), 'arraytype')) { //#14047 - var _4z = $get($_.setc, $k[--$j]); //#14045 - $k[$j++] = _4z; //#14045 - } else { //#14047 - $aload($k[--$j]); //#14047 - var _51 = $k[--$j]; //#14047 - var _52 = $k[--$j]; //#14047 - $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14047 - } //#14047 - $put($_.cws, $_.j, $k[--$j]); //#14049 - $_.j = $_.j + 1; //#14050 - }; //#14050 + var _4v = $k[--$j]; //#14251 + $k[$j++] = _4v; //#14255 + if ($ne($type(_4v), 'arraytype')) { //#14254 + var _4z = $get($_.setc, $k[--$j]); //#14252 + $k[$j++] = _4z; //#14252 + } else { //#14254 + $aload($k[--$j]); //#14254 + var _51 = $k[--$j]; //#14254 + var _52 = $k[--$j]; //#14254 + $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14254 + } //#14254 + $put($_.cws, $_.j, $k[--$j]); //#14256 + $_.j = $_.j + 1; //#14257 + }; //#14257 $_.anotb = function() { - var _57 = $k[--$j]; //#14054 - var _59 = $get($_.seta, _57) !== undefined; //#14054 - var _5B = $get($_.setb, _57) !== undefined; //#14054 - $k[$j++] = _59 && (!_5B); //#14054 - }; //#14054 + var _57 = $k[--$j]; //#14261 + var _59 = $get($_.seta, _57) !== undefined; //#14261 + var _5B = $get($_.setb, _57) !== undefined; //#14261 + $k[$j++] = _59 && (!_5B); //#14261 + }; //#14261 $_.bnota = function() { - var _5C = $k[--$j]; //#14055 - var _5E = $get($_.setb, _5C) !== undefined; //#14055 - var _5G = $get($_.seta, _5C) !== undefined; //#14055 - $k[$j++] = _5E && (!_5G); //#14055 - }; //#14055 - $k[$j++] = Infinity; //#14058 - for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14058 - $k[$j++] = 0; //#14058 - } //#14058 - $k[$j++] = 9999; //#14058 - $_.nextanotb = $a(); //#14058 - $k[$j++] = Infinity; //#14059 - for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14059 - $k[$j++] = 0; //#14059 - } //#14059 - $k[$j++] = 9999; //#14059 - $_.nextbnota = $a(); //#14059 - for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14072 - $_.i = _5Q; //#14061 - $k[$j++] = $get($_.msg, $_.i); //#14062 - $_.anotb(); //#14062 - if ($k[--$j]) { //#14065 - $put($_.nextanotb, $_.i, 0); //#14063 - } else { //#14065 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14065 - } //#14065 - $k[$j++] = $get($_.msg, $_.i); //#14067 - $_.bnota(); //#14067 - if ($k[--$j]) { //#14070 - $put($_.nextbnota, $_.i, 0); //#14068 - } else { //#14070 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14070 - } //#14070 - } //#14070 + var _5C = $k[--$j]; //#14262 + var _5E = $get($_.setb, _5C) !== undefined; //#14262 + var _5G = $get($_.seta, _5C) !== undefined; //#14262 + $k[$j++] = _5E && (!_5G); //#14262 + }; //#14262 + $k[$j++] = Infinity; //#14265 + for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14265 + $k[$j++] = 0; //#14265 + } //#14265 + $k[$j++] = 9999; //#14265 + $_.nextanotb = $a(); //#14265 + $k[$j++] = Infinity; //#14266 + for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14266 + $k[$j++] = 0; //#14266 + } //#14266 + $k[$j++] = 9999; //#14266 + $_.nextbnota = $a(); //#14266 + for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14279 + $_.i = _5Q; //#14268 + $k[$j++] = $get($_.msg, $_.i); //#14269 + $_.anotb(); //#14269 + if ($k[--$j]) { //#14272 + $put($_.nextanotb, $_.i, 0); //#14270 + } else { //#14272 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14272 + } //#14272 + $k[$j++] = $get($_.msg, $_.i); //#14274 + $_.bnota(); //#14274 + if ($k[--$j]) { //#14277 + $put($_.nextbnota, $_.i, 0); //#14275 + } else { //#14277 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14277 + } //#14277 + } //#14277 $_.abeforeb = function() { - var _5n = $k[--$j]; //#14075 - $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14075 - }; //#14075 + var _5n = $k[--$j]; //#14282 + $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14282 + }; //#14282 $_.bbeforea = function() { - var _5s = $k[--$j]; //#14076 - $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14076 - }; //#14076 - $_.cws = $a(($_.barcode.length * 2) + 3); //#14078 - $_.i = 0; //#14081 - $_.j = 0; //#14081 - for (;;) { //#14171 - if ($_.sam != -1) { //#14092 - $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14086 - $put($_.cws, 1, ($_.sam % 10) - 1); //#14087 - $_.j = 2; //#14088 - $_.cset = "setb"; //#14089 - $_.mode = 7; //#14090 - break; //#14091 - } //#14091 - if ($_.msglen == 0) { //#14098 - $_.cset = "setb"; //#14095 - $_.mode = 1; //#14096 - break; //#14097 - } //#14097 - if ($_.msglen >= 2) { //#14107 - $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14101 - $k[$j++] = 1; //#14101 - $_.numsscr(); //#14101 - var _69 = $k[--$j]; //#14101 - var _6A = $k[--$j]; //#14101 - $k[$j++] = _69; //#14101 - $k[$j++] = _6A; //#14101 - $j--; //#14101 - var _6B = $k[--$j]; //#14101 - var _6C = $k[--$j]; //#14101 - if (_6C && (_6B >= 2)) { //#14106 - $_.cset = "setc"; //#14102 - $_.mode = 4; //#14103 - $_.i = 1; //#14104 - break; //#14105 - } //#14105 - } //#14105 - if ($get($_.msg, 0) == $_.fn1) { //#14114 - $_.cset = "setb"; //#14110 - $_.mode = 3; //#14111 - $_.i = 1; //#14112 - break; //#14113 - } //#14113 - if ($_.msglen >= 2) { //#14160 - $k[$j++] = 0; //#14117 - $_.numsscr(); //#14117 - var _6H = $k[--$j]; //#14117 - var _6I = $k[--$j]; //#14117 - $k[$j++] = _6H; //#14117 - $k[$j++] = _6I; //#14117 - $j--; //#14117 - var _6J = $k[--$j]; //#14117 - if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14121 - $_.cset = "setc"; //#14118 - $_.mode = 2; //#14119 - break; //#14120 - } //#14120 - $k[$j++] = 0; //#14123 - $_.numsscr(); //#14123 - var _6K = $k[--$j]; //#14123 - var _6L = $k[--$j]; //#14123 - $k[$j++] = _6K; //#14123 - $k[$j++] = _6L; //#14123 - $j--; //#14123 - var _6M = $k[--$j]; //#14123 - if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14129 - $k[$j++] = $get($_.msg, 0); //#14124 - $_.encb(); //#14124 - $_.cset = "setc"; //#14125 - $_.mode = 5; //#14126 - $_.i = 1; //#14127 - break; //#14128 - } //#14128 - var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14131 - $k[$j++] = _6S; //#14132 - $k[$j++] = 1; //#14132 - $_.numsscr(); //#14132 - var _6T = $k[--$j]; //#14132 - var _6U = $k[--$j]; //#14132 - $k[$j++] = _6T; //#14132 - $k[$j++] = _6U; //#14132 - $j--; //#14132 - var _6V = $k[--$j]; //#14132 - var _6W = $k[--$j]; //#14132 - if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14138 - $k[$j++] = $get($_.msg, 0); //#14133 - $_.encb(); //#14133 - $_.cset = "setc"; //#14134 - $_.mode = 5; //#14135 - $_.i = 1; //#14136 - break; //#14137 - } //#14137 - var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14140 - $k[$j++] = _6c; //#14141 - $k[$j++] = 1; //#14141 - $_.numsscr(); //#14141 - var _6d = $k[--$j]; //#14141 - var _6e = $k[--$j]; //#14141 - $k[$j++] = _6d; //#14141 - $k[$j++] = _6e; //#14141 - $j--; //#14141 - var _6f = $k[--$j]; //#14141 - var _6g = $k[--$j]; //#14141 - if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14148 - $k[$j++] = $get($_.msg, 0); //#14142 - $_.encb(); //#14142 - $k[$j++] = $get($_.msg, 1); //#14143 - $_.encb(); //#14143 - $_.cset = "setc"; //#14144 - $_.mode = 6; //#14145 - $_.i = 2; //#14146 - break; //#14147 - } //#14147 - var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14150 - var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14151 - $k[$j++] = _6o && _6s; //#14152 - $k[$j++] = 2; //#14152 - $_.numsscr(); //#14152 - var _6t = $k[--$j]; //#14152 - var _6u = $k[--$j]; //#14152 - $k[$j++] = _6t; //#14152 - $k[$j++] = _6u; //#14152 - $j--; //#14152 - var _6v = $k[--$j]; //#14152 - var _6w = $k[--$j]; //#14152 - if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14159 - $k[$j++] = $get($_.msg, 0); //#14153 - $_.encb(); //#14153 - $k[$j++] = $get($_.msg, 1); //#14154 - $_.encb(); //#14154 - $_.cset = "setc"; //#14155 - $_.mode = 6; //#14156 - $_.i = 2; //#14157 - break; //#14158 - } //#14158 - } //#14158 - $k[$j++] = 0; //#14162 - $_.abeforeb(); //#14162 - if ($k[--$j]) { //#14166 - $_.cset = "seta"; //#14163 - $_.mode = 0; //#14164 - break; //#14165 - } //#14165 - $_.cset = "setb"; //#14168 - $_.mode = 1; //#14169 - break; //#14170 - } //#14170 - for (;;) { //#14414 - if ($_.i == $_.msglen) { //#14174 - break; //#14174 - } //#14174 - $k[$j++] = $_.i; //#14176 - $_.numsscr(); //#14176 - $_.nums = $k[--$j]; //#14176 - $_.nchars = $k[--$j]; //#14176 - for (;;) { //#14412 - if ($eq($_.cset, "seta")) { //#14253 - if ($_.i < ($_.msglen - 1)) { //#14190 - $k[$j++] = $get($_.msg, $_.i); //#14183 - $_.bnota(); //#14183 - $k[$j++] = $_.i + 1; //#14184 - $_.abeforeb(); //#14184 - var _7E = $k[--$j]; //#14184 - var _7F = $k[--$j]; //#14184 - if ((_7F && _7E)) { //#14189 - $k[$j++] = $_.sb1; //#14185 - $_.enca(); //#14185 - $k[$j++] = $get($_.msg, $_.i); //#14186 - $_.encb(); //#14186 - $_.i = $_.i + 1; //#14187 - break; //#14188 - } //#14188 - } //#14188 - if ($_.i < ($_.msglen - 2)) { //#14202 - $k[$j++] = $get($_.msg, $_.i); //#14193 - $_.bnota(); //#14193 - $k[$j++] = $get($_.msg, $_.i + 1); //#14194 - $_.bnota(); //#14194 - var _7T = $k[--$j]; //#14194 - var _7U = $k[--$j]; //#14194 - $k[$j++] = $an(_7U, _7T); //#14195 - $k[$j++] = $_.i + 2; //#14195 - $_.abeforeb(); //#14195 - var _7W = $k[--$j]; //#14195 - var _7X = $k[--$j]; //#14195 - if ((_7X && _7W)) { //#14201 - $k[$j++] = $_.sb2; //#14196 - $_.enca(); //#14196 - $k[$j++] = $get($_.msg, $_.i); //#14197 - $_.encb(); //#14197 - $k[$j++] = $get($_.msg, $_.i + 1); //#14198 - $_.encb(); //#14198 - $_.i = $_.i + 2; //#14199 - break; //#14200 - } //#14200 - } //#14200 - $k[$j++] = $get($_.msg, $_.i); //#14204 - $_.bnota(); //#14204 - if ($k[--$j]) { //#14208 - $k[$j++] = $_.swb; //#14205 - $_.enca(); //#14205 - $_.cset = "setb"; //#14206 - break; //#14207 - } //#14207 - if ($_.i < ($_.msglen - 4)) { //#14225 - var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14212 - if (($_.nums == 4) && _7s) { //#14224 - $k[$j++] = $_.sc2; //#14213 - $_.enca(); //#14213 - for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14222 - if ($get($_.msg, $_.i) == $_.fn1) { //#14220 - $k[$j++] = $_.fn1; //#14216 - $_.encc(); //#14216 - $_.i = $_.i + 1; //#14217 - } else { //#14220 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14219 - $_.encc(); //#14219 - $_.i = $_.i + 2; //#14220 - } //#14220 - } //#14220 - break; //#14223 - } //#14223 - } //#14223 - if ($_.i < ($_.msglen - 6)) { //#14242 - var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14229 - if (($_.nums == 6) && _8D) { //#14241 - $k[$j++] = $_.sc3; //#14230 - $_.enca(); //#14230 - for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14239 - if ($get($_.msg, $_.i) == $_.fn1) { //#14237 - $k[$j++] = $_.fn1; //#14233 - $_.encc(); //#14233 - $_.i = $_.i + 1; //#14234 - } else { //#14237 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14236 - $_.encc(); //#14236 - $_.i = $_.i + 2; //#14237 - } //#14237 - } //#14237 - break; //#14240 - } //#14240 - } //#14240 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14248 - $k[$j++] = $_.swc; //#14245 - $_.enca(); //#14245 - $_.cset = "setc"; //#14246 - break; //#14247 - } //#14247 - $k[$j++] = $get($_.msg, $_.i); //#14250 - $_.enca(); //#14250 - $_.i = $_.i + 1; //#14251 - break; //#14252 - } //#14252 - if ($eq($_.cset, "setb")) { //#14327 - if ($_.i < ($_.msglen - 1)) { //#14264 - $k[$j++] = $get($_.msg, $_.i); //#14257 - $_.anotb(); //#14257 - $k[$j++] = $_.i + 1; //#14258 - $_.bbeforea(); //#14258 - var _8f = $k[--$j]; //#14258 - var _8g = $k[--$j]; //#14258 - if ((_8g && _8f)) { //#14263 - $k[$j++] = $_.sa1; //#14259 - $_.encb(); //#14259 - $k[$j++] = $get($_.msg, $_.i); //#14260 - $_.enca(); //#14260 - $_.i = $_.i + 1; //#14261 - break; //#14262 - } //#14262 - } //#14262 - if ($_.i < ($_.msglen - 2)) { //#14276 - $k[$j++] = $get($_.msg, $_.i); //#14267 - $_.anotb(); //#14267 - $k[$j++] = $get($_.msg, $_.i + 1); //#14268 - $_.anotb(); //#14268 - var _8u = $k[--$j]; //#14268 - var _8v = $k[--$j]; //#14268 - $k[$j++] = $an(_8v, _8u); //#14269 - $k[$j++] = $_.i + 2; //#14269 - $_.bbeforea(); //#14269 - var _8x = $k[--$j]; //#14269 - var _8y = $k[--$j]; //#14269 - if ((_8y && _8x)) { //#14275 - $k[$j++] = $_.sa2; //#14270 - $_.encb(); //#14270 - $k[$j++] = $get($_.msg, $_.i); //#14271 - $_.enca(); //#14271 - $k[$j++] = $get($_.msg, $_.i + 1); //#14272 - $_.enca(); //#14272 - $_.i = $_.i + 2; //#14273 - break; //#14274 - } //#14274 - } //#14274 - $k[$j++] = $get($_.msg, $_.i); //#14278 - $_.anotb(); //#14278 - if ($k[--$j]) { //#14282 - $k[$j++] = $_.swa; //#14279 - $_.encb(); //#14279 - $_.cset = "seta"; //#14280 - break; //#14281 - } //#14281 - if ($_.i < ($_.msglen - 4)) { //#14299 - var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14286 - if (($_.nums == 4) && _9J) { //#14298 - $k[$j++] = $_.sc2; //#14287 - $_.encb(); //#14287 - for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14296 - if ($get($_.msg, $_.i) == $_.fn1) { //#14294 - $k[$j++] = $_.fn1; //#14290 - $_.encc(); //#14290 - $_.i = $_.i + 1; //#14291 - } else { //#14294 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14293 - $_.encc(); //#14293 - $_.i = $_.i + 2; //#14294 - } //#14294 - } //#14294 - break; //#14297 - } //#14297 - } //#14297 - if ($_.i < ($_.msglen - 6)) { //#14316 - var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14303 - if (($_.nums == 6) && _9e) { //#14315 - $k[$j++] = $_.sc3; //#14304 - $_.encb(); //#14304 - for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14313 - if ($get($_.msg, $_.i) == $_.fn1) { //#14311 - $k[$j++] = $_.fn1; //#14307 - $_.encc(); //#14307 - $_.i = $_.i + 1; //#14308 - } else { //#14311 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14310 - $_.encc(); //#14310 - $_.i = $_.i + 2; //#14311 - } //#14311 - } //#14311 - break; //#14314 - } //#14314 - } //#14314 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14322 - $k[$j++] = $_.swc; //#14319 - $_.encb(); //#14319 - $_.cset = "setc"; //#14320 - break; //#14321 - } //#14321 - $k[$j++] = $get($_.msg, $_.i); //#14324 - $_.encb(); //#14324 - $_.i = $_.i + 1; //#14325 - break; //#14326 - } //#14326 - if ($eq($_.cset, "setc")) { //#14410 - if ($_.nums >= 2) { //#14339 - if ($get($_.msg, $_.i) == $_.fn1) { //#14336 - $k[$j++] = $_.fn1; //#14332 - $_.encc(); //#14332 - $_.i = $_.i + 1; //#14333 - } else { //#14336 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14335 - $_.encc(); //#14335 - $_.i = $_.i + 2; //#14336 - } //#14336 - break; //#14338 - } //#14338 - if ($_.i < ($_.msglen - 1)) { //#14349 - var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14342 - $k[$j++] = _AH; //#14343 - $k[$j++] = $_.i + 1; //#14343 - $_.numsscr(); //#14343 - var _AJ = $k[--$j]; //#14343 - var _AK = $k[--$j]; //#14343 - $k[$j++] = _AJ; //#14343 - $k[$j++] = _AK; //#14343 - $j--; //#14343 - var _AL = $k[--$j]; //#14343 - var _AM = $k[--$j]; //#14343 - if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14348 - $k[$j++] = $_.sb1; //#14344 - $_.encc(); //#14344 - $k[$j++] = $get($_.msg, $_.i); //#14345 - $_.encb(); //#14345 - $_.i = $_.i + 1; //#14346 - break; //#14347 - } //#14347 - } //#14347 - if ($_.i < ($_.msglen - 1)) { //#14360 - var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14352 - $k[$j++] = _AY; //#14353 - $k[$j++] = $_.i + 1; //#14353 - $_.numsscr(); //#14353 - var _Aa = $k[--$j]; //#14353 - var _Ab = $k[--$j]; //#14353 - $k[$j++] = _Aa; //#14353 - $k[$j++] = _Ab; //#14353 - $j--; //#14353 - var _Ac = $k[--$j]; //#14353 - var _Ad = $k[--$j]; //#14353 - if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14359 - $k[$j++] = $_.sb2; //#14354 - $_.encc(); //#14354 - $k[$j++] = $get($_.msg, $_.i); //#14355 - $_.encb(); //#14355 - $k[$j++] = $get($_.msg, $_.i + 1); //#14356 - $_.encb(); //#14356 - $_.i = $_.i + 2; //#14357 - break; //#14358 - } //#14358 - } //#14358 - if ($_.i < ($_.msglen - 2)) { //#14372 - var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14363 - var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14364 - $k[$j++] = _As && _Ax; //#14365 - $k[$j++] = $_.i + 2; //#14365 - $_.numsscr(); //#14365 - var _Az = $k[--$j]; //#14365 - var _B0 = $k[--$j]; //#14365 - $k[$j++] = _Az; //#14365 - $k[$j++] = _B0; //#14365 - $j--; //#14365 - var _B1 = $k[--$j]; //#14365 - var _B2 = $k[--$j]; //#14365 - if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14371 - $k[$j++] = $_.sb2; //#14366 - $_.encc(); //#14366 - $k[$j++] = $get($_.msg, $_.i); //#14367 - $_.encb(); //#14367 - $k[$j++] = $get($_.msg, $_.i + 1); //#14368 - $_.encb(); //#14368 - $_.i = $_.i + 2; //#14369 - break; //#14370 - } //#14370 - } //#14370 - if ($_.i < ($_.msglen - 3)) { //#14385 - var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14375 - var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14376 - $k[$j++] = _BH && _BM; //#14377 - $k[$j++] = $_.i + 2; //#14377 - $_.numsscr(); //#14377 - var _BO = $k[--$j]; //#14377 - var _BP = $k[--$j]; //#14377 - $k[$j++] = _BO; //#14377 - $k[$j++] = _BP; //#14377 - $j--; //#14377 - var _BQ = $k[--$j]; //#14377 - var _BR = $k[--$j]; //#14377 - if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14384 - $k[$j++] = $_.sb3; //#14378 - $_.encc(); //#14378 - $k[$j++] = $get($_.msg, $_.i); //#14379 - $_.encb(); //#14379 - $k[$j++] = $get($_.msg, $_.i + 1); //#14380 - $_.encb(); //#14380 - $k[$j++] = $get($_.msg, $_.i + 2); //#14381 - $_.encb(); //#14381 - $_.i = $_.i + 3; //#14382 - break; //#14383 - } //#14383 - } //#14383 - if ($_.i < ($_.msglen - 3)) { //#14399 - var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14388 - var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14389 - var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14390 - $k[$j++] = (_Bj && _Bo) && _Bt; //#14391 - $k[$j++] = $_.i + 3; //#14391 - $_.numsscr(); //#14391 - var _Bv = $k[--$j]; //#14391 - var _Bw = $k[--$j]; //#14391 - $k[$j++] = _Bv; //#14391 - $k[$j++] = _Bw; //#14391 - $j--; //#14391 - var _Bx = $k[--$j]; //#14391 - var _By = $k[--$j]; //#14391 - if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14398 - $k[$j++] = $_.sb3; //#14392 - $_.encc(); //#14392 + var _5s = $k[--$j]; //#14283 + $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14283 + }; //#14283 + $_.cws = $a(($_.barcode.length * 2) + 3); //#14285 + $_.i = 0; //#14288 + $_.j = 0; //#14288 + for (;;) { //#14378 + if ($_.sam != -1) { //#14299 + $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14293 + $put($_.cws, 1, ($_.sam % 10) - 1); //#14294 + $_.j = 2; //#14295 + $_.cset = "setb"; //#14296 + $_.mode = 7; //#14297 + break; //#14298 + } //#14298 + if ($_.msglen == 0) { //#14305 + $_.cset = "setb"; //#14302 + $_.mode = 1; //#14303 + break; //#14304 + } //#14304 + if ($_.msglen >= 2) { //#14314 + $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14308 + $k[$j++] = 1; //#14308 + $_.numsscr(); //#14308 + var _69 = $k[--$j]; //#14308 + var _6A = $k[--$j]; //#14308 + $k[$j++] = _69; //#14308 + $k[$j++] = _6A; //#14308 + $j--; //#14308 + var _6B = $k[--$j]; //#14308 + var _6C = $k[--$j]; //#14308 + if (_6C && (_6B >= 2)) { //#14313 + $_.cset = "setc"; //#14309 + $_.mode = 4; //#14310 + $_.i = 1; //#14311 + break; //#14312 + } //#14312 + } //#14312 + if ($get($_.msg, 0) == $_.fn1) { //#14321 + $_.cset = "setb"; //#14317 + $_.mode = 3; //#14318 + $_.i = 1; //#14319 + break; //#14320 + } //#14320 + if ($_.msglen >= 2) { //#14367 + $k[$j++] = 0; //#14324 + $_.numsscr(); //#14324 + var _6H = $k[--$j]; //#14324 + var _6I = $k[--$j]; //#14324 + $k[$j++] = _6H; //#14324 + $k[$j++] = _6I; //#14324 + $j--; //#14324 + var _6J = $k[--$j]; //#14324 + if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14328 + $_.cset = "setc"; //#14325 + $_.mode = 2; //#14326 + break; //#14327 + } //#14327 + $k[$j++] = 0; //#14330 + $_.numsscr(); //#14330 + var _6K = $k[--$j]; //#14330 + var _6L = $k[--$j]; //#14330 + $k[$j++] = _6K; //#14330 + $k[$j++] = _6L; //#14330 + $j--; //#14330 + var _6M = $k[--$j]; //#14330 + if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14336 + $k[$j++] = $get($_.msg, 0); //#14331 + $_.encb(); //#14331 + $_.cset = "setc"; //#14332 + $_.mode = 5; //#14333 + $_.i = 1; //#14334 + break; //#14335 + } //#14335 + var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14338 + $k[$j++] = _6S; //#14339 + $k[$j++] = 1; //#14339 + $_.numsscr(); //#14339 + var _6T = $k[--$j]; //#14339 + var _6U = $k[--$j]; //#14339 + $k[$j++] = _6T; //#14339 + $k[$j++] = _6U; //#14339 + $j--; //#14339 + var _6V = $k[--$j]; //#14339 + var _6W = $k[--$j]; //#14339 + if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14345 + $k[$j++] = $get($_.msg, 0); //#14340 + $_.encb(); //#14340 + $_.cset = "setc"; //#14341 + $_.mode = 5; //#14342 + $_.i = 1; //#14343 + break; //#14344 + } //#14344 + var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14347 + $k[$j++] = _6c; //#14348 + $k[$j++] = 1; //#14348 + $_.numsscr(); //#14348 + var _6d = $k[--$j]; //#14348 + var _6e = $k[--$j]; //#14348 + $k[$j++] = _6d; //#14348 + $k[$j++] = _6e; //#14348 + $j--; //#14348 + var _6f = $k[--$j]; //#14348 + var _6g = $k[--$j]; //#14348 + if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14355 + $k[$j++] = $get($_.msg, 0); //#14349 + $_.encb(); //#14349 + $k[$j++] = $get($_.msg, 1); //#14350 + $_.encb(); //#14350 + $_.cset = "setc"; //#14351 + $_.mode = 6; //#14352 + $_.i = 2; //#14353 + break; //#14354 + } //#14354 + var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14357 + var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14358 + $k[$j++] = _6o && _6s; //#14359 + $k[$j++] = 2; //#14359 + $_.numsscr(); //#14359 + var _6t = $k[--$j]; //#14359 + var _6u = $k[--$j]; //#14359 + $k[$j++] = _6t; //#14359 + $k[$j++] = _6u; //#14359 + $j--; //#14359 + var _6v = $k[--$j]; //#14359 + var _6w = $k[--$j]; //#14359 + if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14366 + $k[$j++] = $get($_.msg, 0); //#14360 + $_.encb(); //#14360 + $k[$j++] = $get($_.msg, 1); //#14361 + $_.encb(); //#14361 + $_.cset = "setc"; //#14362 + $_.mode = 6; //#14363 + $_.i = 2; //#14364 + break; //#14365 + } //#14365 + } //#14365 + $k[$j++] = 0; //#14369 + $_.abeforeb(); //#14369 + if ($k[--$j]) { //#14373 + $_.cset = "seta"; //#14370 + $_.mode = 0; //#14371 + break; //#14372 + } //#14372 + $_.cset = "setb"; //#14375 + $_.mode = 1; //#14376 + break; //#14377 + } //#14377 + for (;;) { //#14621 + if ($_.i == $_.msglen) { //#14381 + break; //#14381 + } //#14381 + $k[$j++] = $_.i; //#14383 + $_.numsscr(); //#14383 + $_.nums = $k[--$j]; //#14383 + $_.nchars = $k[--$j]; //#14383 + for (;;) { //#14619 + if ($eq($_.cset, "seta")) { //#14460 + if ($_.i < ($_.msglen - 1)) { //#14397 + $k[$j++] = $get($_.msg, $_.i); //#14390 + $_.bnota(); //#14390 + $k[$j++] = $_.i + 1; //#14391 + $_.abeforeb(); //#14391 + var _7E = $k[--$j]; //#14391 + var _7F = $k[--$j]; //#14391 + if ((_7F && _7E)) { //#14396 + $k[$j++] = $_.sb1; //#14392 + $_.enca(); //#14392 $k[$j++] = $get($_.msg, $_.i); //#14393 $_.encb(); //#14393 - $k[$j++] = $get($_.msg, $_.i + 1); //#14394 - $_.encb(); //#14394 - $k[$j++] = $get($_.msg, $_.i + 2); //#14395 - $_.encb(); //#14395 - $_.i = $_.i + 3; //#14396 - break; //#14397 - } //#14397 - } //#14397 - $k[$j++] = $_.i; //#14401 - $_.abeforeb(); //#14401 - if ($k[--$j]) { //#14405 - $k[$j++] = $_.swa; //#14402 - $_.encc(); //#14402 - $_.cset = "seta"; //#14403 - break; //#14404 - } //#14404 - $k[$j++] = $_.swb; //#14407 - $_.encc(); //#14407 - $_.cset = "setb"; //#14408 - break; //#14409 - } //#14409 - break; //#14411 - } //#14411 - } //#14411 - $_.cws = $geti($_.cws, 0, $_.j); //#14415 - } //#14415 - if (!bwipp_code16k.__14438__) { //#14438 - $_ = Object.create($_); //#14438 - $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14437 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14437 - bwipp_code16k.__14438__ = 1; //#14437 - $_ = Object.getPrototypeOf($_); //#14437 - } //#14437 - $_.urows = $_.rows; //#14441 - var _CZ = $_.metrics; //#14442 - for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14450 - $_.m = $get(_CZ, _Ca); //#14443 - $_.r = $get($_.m, 0); //#14444 - $_.dcws = $get($_.m, 1); //#14445 - $_.okay = true; //#14446 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14447 - $_.okay = false; //#14447 - } //#14447 - if ($_.cws.length > $_.dcws) { //#14448 - $_.okay = false; //#14448 - } //#14448 - if ($_.okay) { //#14449 - break; //#14449 - } //#14449 - } //#14449 - if (!$_.okay) { //#14454 - $k[$j++] = 'bwipp.code16kNoValidSymbol#14453'; //#14453 - $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14453 - bwipp_raiseerror(); //#14453 - } //#14453 - $k[$j++] = Infinity; //#14457 - $aload($_.cws); //#14457 - for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14457 - $k[$j++] = 103; //#14457 - } //#14457 - $_.cws = $a(); //#14457 - $k[$j++] = Infinity; //#14460 - $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14460 - $aload($_.cws); //#14460 - $_.cws = $a(); //#14460 - $k[$j++] = 0; //#14463 - for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14463 - var _D3 = $k[--$j]; //#14463 - $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14463 - } //#14463 - $_.c1 = $k[--$j] % 107; //#14464 - $k[$j++] = 0; //#14465 - for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14465 - var _DA = $k[--$j]; //#14465 - $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14465 - } //#14465 - $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14466 - $k[$j++] = Infinity; //#14467 - $aload($_.cws); //#14467 - $k[$j++] = $_.c1; //#14467 - $k[$j++] = $_.c2; //#14467 - $_.cws = $a(); //#14467 - var _DJ = $get($_.options, 'debugcws') !== undefined; //#14469 - if (_DJ) { //#14469 - $k[$j++] = 'bwipp.debugcws#14469'; //#14469 - $k[$j++] = $_.cws; //#14469 - bwipp_raiseerror(); //#14469 - } //#14469 - if (!bwipp_code16k.__14505__) { //#14505 - $_ = Object.create($_); //#14505 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14490 - $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14496 - $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14500 - $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14504 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14504 - bwipp_code16k.__14505__ = 1; //#14504 - $_ = Object.getPrototypeOf($_); //#14504 - } //#14504 - if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14510 - $_.stopencs = $_.stopencsodd; //#14508 - } else { //#14510 - $_.stopencs = $_.stopencseven; //#14510 - } //#14510 - $_.rowbits = $a($_.r); //#14514 - for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14531 - $_.i = _DY; //#14516 - $k[$j++] = Infinity; //#14525 - $k[$j++] = 10; //#14519 - $forall($get($_.startencs, $_.i), function() { //#14519 - var _Dc = $k[--$j]; //#14519 - $k[$j++] = $f(_Dc - 48); //#14519 - }); //#14519 - var _Df = $geti($_.cws, $_.i * 5, 5); //#14521 - $k[$j++] = 1; //#14523 - for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14523 - $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14522 - var _Dl = $k[--$j]; //#14522 - $k[$j++] = $f(_Dl - 48); //#14522 - }); //#14522 - } //#14522 - $forall($get($_.stopencs, $_.i), function() { //#14524 - var _Dp = $k[--$j]; //#14524 - $k[$j++] = $f(_Dp - 48); //#14524 - }); //#14524 - $k[$j++] = 1; //#14525 - $_.sbs = $a(); //#14525 - $k[$j++] = Infinity; //#14527 - var _Dr = $_.sbs; //#14528 - $k[$j++] = 1; //#14528 - for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14528 - var _Dv = $k[--$j]; //#14528 - var _Dw = (_Dv == 0) ? 1 : 0; //#14528 - $k[$j++] = _Dv; //#14528 - for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14528 - $k[$j++] = _Dw //#14528 - } //#14528 - } //#14528 - $astore($a($counttomark() - 1)); //#14529 - var _E1 = $k[--$j]; //#14529 - var _E2 = $k[--$j]; //#14529 - $k[$j++] = _E1; //#14529 - $k[$j++] = _E2; //#14529 - $j--; //#14529 - var _E3 = $k[--$j]; //#14529 - var _E4 = $k[--$j]; //#14529 - $k[$j++] = _E3; //#14529 - $k[$j++] = _E4; //#14529 - $j--; //#14529 - $put($_.rowbits, $_.i, $k[--$j]); //#14530 - } //#14530 - $k[$j++] = Infinity; //#14542 - for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14535 - $k[$j++] = 1; //#14535 - } //#14535 - for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14540 - $_.i = _ED; //#14537 - for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14538 - $aload($get($_.rowbits, $_.i)); //#14538 - } //#14538 - for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14539 - for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14539 - $k[$j++] = 1; //#14539 - } //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - } //#14539 - for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14541 - $aload($get($_.rowbits, $f($_.r - 1))); //#14541 - } //#14541 - for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14542 - $k[$j++] = 1; //#14542 - } //#14542 - $_.pixs = $a(); //#14542 + $_.i = $_.i + 1; //#14394 + break; //#14395 + } //#14395 + } //#14395 + if ($_.i < ($_.msglen - 2)) { //#14409 + $k[$j++] = $get($_.msg, $_.i); //#14400 + $_.bnota(); //#14400 + $k[$j++] = $get($_.msg, $_.i + 1); //#14401 + $_.bnota(); //#14401 + var _7T = $k[--$j]; //#14401 + var _7U = $k[--$j]; //#14401 + $k[$j++] = $an(_7U, _7T); //#14402 + $k[$j++] = $_.i + 2; //#14402 + $_.abeforeb(); //#14402 + var _7W = $k[--$j]; //#14402 + var _7X = $k[--$j]; //#14402 + if ((_7X && _7W)) { //#14408 + $k[$j++] = $_.sb2; //#14403 + $_.enca(); //#14403 + $k[$j++] = $get($_.msg, $_.i); //#14404 + $_.encb(); //#14404 + $k[$j++] = $get($_.msg, $_.i + 1); //#14405 + $_.encb(); //#14405 + $_.i = $_.i + 2; //#14406 + break; //#14407 + } //#14407 + } //#14407 + $k[$j++] = $get($_.msg, $_.i); //#14411 + $_.bnota(); //#14411 + if ($k[--$j]) { //#14415 + $k[$j++] = $_.swb; //#14412 + $_.enca(); //#14412 + $_.cset = "setb"; //#14413 + break; //#14414 + } //#14414 + if ($_.i < ($_.msglen - 4)) { //#14432 + var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14419 + if (($_.nums == 4) && _7s) { //#14431 + $k[$j++] = $_.sc2; //#14420 + $_.enca(); //#14420 + for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14429 + if ($get($_.msg, $_.i) == $_.fn1) { //#14427 + $k[$j++] = $_.fn1; //#14423 + $_.encc(); //#14423 + $_.i = $_.i + 1; //#14424 + } else { //#14427 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14426 + $_.encc(); //#14426 + $_.i = $_.i + 2; //#14427 + } //#14427 + } //#14427 + break; //#14430 + } //#14430 + } //#14430 + if ($_.i < ($_.msglen - 6)) { //#14449 + var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14436 + if (($_.nums == 6) && _8D) { //#14448 + $k[$j++] = $_.sc3; //#14437 + $_.enca(); //#14437 + for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14446 + if ($get($_.msg, $_.i) == $_.fn1) { //#14444 + $k[$j++] = $_.fn1; //#14440 + $_.encc(); //#14440 + $_.i = $_.i + 1; //#14441 + } else { //#14444 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14443 + $_.encc(); //#14443 + $_.i = $_.i + 2; //#14444 + } //#14444 + } //#14444 + break; //#14447 + } //#14447 + } //#14447 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14455 + $k[$j++] = $_.swc; //#14452 + $_.enca(); //#14452 + $_.cset = "setc"; //#14453 + break; //#14454 + } //#14454 + $k[$j++] = $get($_.msg, $_.i); //#14457 + $_.enca(); //#14457 + $_.i = $_.i + 1; //#14458 + break; //#14459 + } //#14459 + if ($eq($_.cset, "setb")) { //#14534 + if ($_.i < ($_.msglen - 1)) { //#14471 + $k[$j++] = $get($_.msg, $_.i); //#14464 + $_.anotb(); //#14464 + $k[$j++] = $_.i + 1; //#14465 + $_.bbeforea(); //#14465 + var _8f = $k[--$j]; //#14465 + var _8g = $k[--$j]; //#14465 + if ((_8g && _8f)) { //#14470 + $k[$j++] = $_.sa1; //#14466 + $_.encb(); //#14466 + $k[$j++] = $get($_.msg, $_.i); //#14467 + $_.enca(); //#14467 + $_.i = $_.i + 1; //#14468 + break; //#14469 + } //#14469 + } //#14469 + if ($_.i < ($_.msglen - 2)) { //#14483 + $k[$j++] = $get($_.msg, $_.i); //#14474 + $_.anotb(); //#14474 + $k[$j++] = $get($_.msg, $_.i + 1); //#14475 + $_.anotb(); //#14475 + var _8u = $k[--$j]; //#14475 + var _8v = $k[--$j]; //#14475 + $k[$j++] = $an(_8v, _8u); //#14476 + $k[$j++] = $_.i + 2; //#14476 + $_.bbeforea(); //#14476 + var _8x = $k[--$j]; //#14476 + var _8y = $k[--$j]; //#14476 + if ((_8y && _8x)) { //#14482 + $k[$j++] = $_.sa2; //#14477 + $_.encb(); //#14477 + $k[$j++] = $get($_.msg, $_.i); //#14478 + $_.enca(); //#14478 + $k[$j++] = $get($_.msg, $_.i + 1); //#14479 + $_.enca(); //#14479 + $_.i = $_.i + 2; //#14480 + break; //#14481 + } //#14481 + } //#14481 + $k[$j++] = $get($_.msg, $_.i); //#14485 + $_.anotb(); //#14485 + if ($k[--$j]) { //#14489 + $k[$j++] = $_.swa; //#14486 + $_.encb(); //#14486 + $_.cset = "seta"; //#14487 + break; //#14488 + } //#14488 + if ($_.i < ($_.msglen - 4)) { //#14506 + var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14493 + if (($_.nums == 4) && _9J) { //#14505 + $k[$j++] = $_.sc2; //#14494 + $_.encb(); //#14494 + for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14503 + if ($get($_.msg, $_.i) == $_.fn1) { //#14501 + $k[$j++] = $_.fn1; //#14497 + $_.encc(); //#14497 + $_.i = $_.i + 1; //#14498 + } else { //#14501 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14500 + $_.encc(); //#14500 + $_.i = $_.i + 2; //#14501 + } //#14501 + } //#14501 + break; //#14504 + } //#14504 + } //#14504 + if ($_.i < ($_.msglen - 6)) { //#14523 + var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14510 + if (($_.nums == 6) && _9e) { //#14522 + $k[$j++] = $_.sc3; //#14511 + $_.encb(); //#14511 + for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14520 + if ($get($_.msg, $_.i) == $_.fn1) { //#14518 + $k[$j++] = $_.fn1; //#14514 + $_.encc(); //#14514 + $_.i = $_.i + 1; //#14515 + } else { //#14518 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14517 + $_.encc(); //#14517 + $_.i = $_.i + 2; //#14518 + } //#14518 + } //#14518 + break; //#14521 + } //#14521 + } //#14521 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14529 + $k[$j++] = $_.swc; //#14526 + $_.encb(); //#14526 + $_.cset = "setc"; //#14527 + break; //#14528 + } //#14528 + $k[$j++] = $get($_.msg, $_.i); //#14531 + $_.encb(); //#14531 + $_.i = $_.i + 1; //#14532 + break; //#14533 + } //#14533 + if ($eq($_.cset, "setc")) { //#14617 + if ($_.nums >= 2) { //#14546 + if ($get($_.msg, $_.i) == $_.fn1) { //#14543 + $k[$j++] = $_.fn1; //#14539 + $_.encc(); //#14539 + $_.i = $_.i + 1; //#14540 + } else { //#14543 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14542 + $_.encc(); //#14542 + $_.i = $_.i + 2; //#14543 + } //#14543 + break; //#14545 + } //#14545 + if ($_.i < ($_.msglen - 1)) { //#14556 + var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14549 + $k[$j++] = _AH; //#14550 + $k[$j++] = $_.i + 1; //#14550 + $_.numsscr(); //#14550 + var _AJ = $k[--$j]; //#14550 + var _AK = $k[--$j]; //#14550 + $k[$j++] = _AJ; //#14550 + $k[$j++] = _AK; //#14550 + $j--; //#14550 + var _AL = $k[--$j]; //#14550 + var _AM = $k[--$j]; //#14550 + if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14555 + $k[$j++] = $_.sb1; //#14551 + $_.encc(); //#14551 + $k[$j++] = $get($_.msg, $_.i); //#14552 + $_.encb(); //#14552 + $_.i = $_.i + 1; //#14553 + break; //#14554 + } //#14554 + } //#14554 + if ($_.i < ($_.msglen - 1)) { //#14567 + var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14559 + $k[$j++] = _AY; //#14560 + $k[$j++] = $_.i + 1; //#14560 + $_.numsscr(); //#14560 + var _Aa = $k[--$j]; //#14560 + var _Ab = $k[--$j]; //#14560 + $k[$j++] = _Aa; //#14560 + $k[$j++] = _Ab; //#14560 + $j--; //#14560 + var _Ac = $k[--$j]; //#14560 + var _Ad = $k[--$j]; //#14560 + if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14566 + $k[$j++] = $_.sb2; //#14561 + $_.encc(); //#14561 + $k[$j++] = $get($_.msg, $_.i); //#14562 + $_.encb(); //#14562 + $k[$j++] = $get($_.msg, $_.i + 1); //#14563 + $_.encb(); //#14563 + $_.i = $_.i + 2; //#14564 + break; //#14565 + } //#14565 + } //#14565 + if ($_.i < ($_.msglen - 2)) { //#14579 + var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14570 + var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14571 + $k[$j++] = _As && _Ax; //#14572 + $k[$j++] = $_.i + 2; //#14572 + $_.numsscr(); //#14572 + var _Az = $k[--$j]; //#14572 + var _B0 = $k[--$j]; //#14572 + $k[$j++] = _Az; //#14572 + $k[$j++] = _B0; //#14572 + $j--; //#14572 + var _B1 = $k[--$j]; //#14572 + var _B2 = $k[--$j]; //#14572 + if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14578 + $k[$j++] = $_.sb2; //#14573 + $_.encc(); //#14573 + $k[$j++] = $get($_.msg, $_.i); //#14574 + $_.encb(); //#14574 + $k[$j++] = $get($_.msg, $_.i + 1); //#14575 + $_.encb(); //#14575 + $_.i = $_.i + 2; //#14576 + break; //#14577 + } //#14577 + } //#14577 + if ($_.i < ($_.msglen - 3)) { //#14592 + var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14582 + var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14583 + $k[$j++] = _BH && _BM; //#14584 + $k[$j++] = $_.i + 2; //#14584 + $_.numsscr(); //#14584 + var _BO = $k[--$j]; //#14584 + var _BP = $k[--$j]; //#14584 + $k[$j++] = _BO; //#14584 + $k[$j++] = _BP; //#14584 + $j--; //#14584 + var _BQ = $k[--$j]; //#14584 + var _BR = $k[--$j]; //#14584 + if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14591 + $k[$j++] = $_.sb3; //#14585 + $_.encc(); //#14585 + $k[$j++] = $get($_.msg, $_.i); //#14586 + $_.encb(); //#14586 + $k[$j++] = $get($_.msg, $_.i + 1); //#14587 + $_.encb(); //#14587 + $k[$j++] = $get($_.msg, $_.i + 2); //#14588 + $_.encb(); //#14588 + $_.i = $_.i + 3; //#14589 + break; //#14590 + } //#14590 + } //#14590 + if ($_.i < ($_.msglen - 3)) { //#14606 + var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14595 + var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14596 + var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14597 + $k[$j++] = (_Bj && _Bo) && _Bt; //#14598 + $k[$j++] = $_.i + 3; //#14598 + $_.numsscr(); //#14598 + var _Bv = $k[--$j]; //#14598 + var _Bw = $k[--$j]; //#14598 + $k[$j++] = _Bv; //#14598 + $k[$j++] = _Bw; //#14598 + $j--; //#14598 + var _Bx = $k[--$j]; //#14598 + var _By = $k[--$j]; //#14598 + if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14605 + $k[$j++] = $_.sb3; //#14599 + $_.encc(); //#14599 + $k[$j++] = $get($_.msg, $_.i); //#14600 + $_.encb(); //#14600 + $k[$j++] = $get($_.msg, $_.i + 1); //#14601 + $_.encb(); //#14601 + $k[$j++] = $get($_.msg, $_.i + 2); //#14602 + $_.encb(); //#14602 + $_.i = $_.i + 3; //#14603 + break; //#14604 + } //#14604 + } //#14604 + $k[$j++] = $_.i; //#14608 + $_.abeforeb(); //#14608 + if ($k[--$j]) { //#14612 + $k[$j++] = $_.swa; //#14609 + $_.encc(); //#14609 + $_.cset = "seta"; //#14610 + break; //#14611 + } //#14611 + $k[$j++] = $_.swb; //#14614 + $_.encc(); //#14614 + $_.cset = "setb"; //#14615 + break; //#14616 + } //#14616 + break; //#14618 + } //#14618 + } //#14618 + $_.cws = $geti($_.cws, 0, $_.j); //#14622 + } //#14622 + if (!bwipp_code16k.__14645__) { //#14645 + $_ = Object.create($_); //#14645 + $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14644 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14644 + bwipp_code16k.__14645__ = 1; //#14644 + $_ = Object.getPrototypeOf($_); //#14644 + } //#14644 + $_.urows = $_.rows; //#14648 + var _CZ = $_.metrics; //#14649 + for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14657 + $_.m = $get(_CZ, _Ca); //#14650 + $_.r = $get($_.m, 0); //#14651 + $_.dcws = $get($_.m, 1); //#14652 + $_.okay = true; //#14653 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#14654 + $_.okay = false; //#14654 + } //#14654 + if ($_.cws.length > $_.dcws) { //#14655 + $_.okay = false; //#14655 + } //#14655 + if ($_.okay) { //#14656 + break; //#14656 + } //#14656 + } //#14656 + if (!$_.okay) { //#14661 + $k[$j++] = 'bwipp.code16kNoValidSymbol#14660'; //#14660 + $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14660 + bwipp_raiseerror(); //#14660 + } //#14660 + $k[$j++] = Infinity; //#14664 + $aload($_.cws); //#14664 + for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14664 + $k[$j++] = 103; //#14664 + } //#14664 + $_.cws = $a(); //#14664 + $k[$j++] = Infinity; //#14667 + $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14667 + $aload($_.cws); //#14667 + $_.cws = $a(); //#14667 + $k[$j++] = 0; //#14670 + for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14670 + var _D3 = $k[--$j]; //#14670 + $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14670 + } //#14670 + $_.c1 = $k[--$j] % 107; //#14671 + $k[$j++] = 0; //#14672 + for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14672 + var _DA = $k[--$j]; //#14672 + $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14672 + } //#14672 + $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14673 + $k[$j++] = Infinity; //#14674 + $aload($_.cws); //#14674 + $k[$j++] = $_.c1; //#14674 + $k[$j++] = $_.c2; //#14674 + $_.cws = $a(); //#14674 + var _DJ = $get($_.options, 'debugcws') !== undefined; //#14676 + if (_DJ) { //#14676 + $k[$j++] = 'bwipp.debugcws#14676'; //#14676 + $k[$j++] = $_.cws; //#14676 + bwipp_raiseerror(); //#14676 + } //#14676 + if (!bwipp_code16k.__14712__) { //#14712 + $_ = Object.create($_); //#14712 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14697 + $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14703 + $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14707 + $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14711 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14711 + bwipp_code16k.__14712__ = 1; //#14711 + $_ = Object.getPrototypeOf($_); //#14711 + } //#14711 + if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14717 + $_.stopencs = $_.stopencsodd; //#14715 + } else { //#14717 + $_.stopencs = $_.stopencseven; //#14717 + } //#14717 + $_.rowbits = $a($_.r); //#14721 + for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14738 + $_.i = _DY; //#14723 + $k[$j++] = Infinity; //#14724 + $k[$j++] = 10; //#14726 + $forall($get($_.startencs, $_.i), function() { //#14726 + var _Dc = $k[--$j]; //#14726 + $k[$j++] = $f(_Dc - 48); //#14726 + }); //#14726 + var _Df = $geti($_.cws, $_.i * 5, 5); //#14728 + $k[$j++] = 1; //#14730 + for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14730 + $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14729 + var _Dl = $k[--$j]; //#14729 + $k[$j++] = $f(_Dl - 48); //#14729 + }); //#14729 + } //#14729 + $forall($get($_.stopencs, $_.i), function() { //#14731 + var _Dp = $k[--$j]; //#14731 + $k[$j++] = $f(_Dp - 48); //#14731 + }); //#14731 + $k[$j++] = 1; //#14732 + $_.sbs = $a(); //#14732 + $k[$j++] = Infinity; //#14734 + var _Dr = $_.sbs; //#14735 + $k[$j++] = 1; //#14735 + for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14735 + var _Dv = $k[--$j]; //#14735 + var _Dw = (_Dv == 0) ? 1 : 0; //#14735 + $k[$j++] = _Dv; //#14735 + for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14735 + $k[$j++] = _Dw //#14735 + } //#14735 + } //#14735 + $astore($a($counttomark() - 1)); //#14736 + var _E1 = $k[--$j]; //#14736 + var _E2 = $k[--$j]; //#14736 + $k[$j++] = _E1; //#14736 + $k[$j++] = _E2; //#14736 + $j--; //#14736 + var _E3 = $k[--$j]; //#14736 + var _E4 = $k[--$j]; //#14736 + $k[$j++] = _E3; //#14736 + $k[$j++] = _E4; //#14736 + $j--; //#14736 + $put($_.rowbits, $_.i, $k[--$j]); //#14737 + } //#14737 + $k[$j++] = Infinity; //#14741 + for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14742 + $k[$j++] = 1; //#14742 + } //#14742 + for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14747 + $_.i = _ED; //#14744 + for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14745 + $aload($get($_.rowbits, $_.i)); //#14745 + } //#14745 + for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14746 + for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14746 + $k[$j++] = 1; //#14746 + } //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + } //#14746 + for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14748 + $aload($get($_.rowbits, $f($_.r - 1))); //#14748 + } //#14748 + for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14749 + $k[$j++] = 1; //#14749 + } //#14749 + $_.pixs = $a(); //#14749 var _Ef = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -18455,594 +18777,593 @@ function bwipp_code16k() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#14553 - $k[$j++] = _Ef; //#14556 - if (!$_.dontdraw) { //#14556 - bwipp_renmatrix(); //#14556 - } //#14556 - $_ = Object.getPrototypeOf($_); //#14558 - $_ = Object.getPrototypeOf($_); //#14560 -} - + ]); //#14760 + $k[$j++] = _Ef; //#14763 + if (!$_.dontdraw) { //#14763 + bwipp_renmatrix(); //#14763 + } //#14763 + $_ = Object.getPrototypeOf($_); //#14765 + $_ = Object.getPrototypeOf($_); //#14767 +} //bwipp_code16k function bwipp_code49() { - $_ = Object.create($_); //#14591 - $_.dontdraw = false; //#14594 - $_.sam = -1; //#14595 - $_.append = false; //#14596 - $_.rows = 0; //#14597 - $_.rowheight = 8; //#14598 - $_.sepheight = 1; //#14599 - $_.parse = false; //#14600 - $_.parsefnc = false; //#14601 - $k[$j++] = $_; //#14603 - bwipp_processoptions(); //#14603 - $_.options = $k[--$j]; //#14603 - $_.barcode = $k[--$j]; //#14604 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14608 - $k[$j++] = 'bwipp.code49badRows#14607'; //#14607 - $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14607 - bwipp_raiseerror(); //#14607 - } //#14607 - if ($_.rowheight < 8) { //#14612 - $k[$j++] = 'bwipp.code49badRowHeight#14611'; //#14611 - $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14611 - bwipp_raiseerror(); //#14611 - } //#14611 - if ($_.sepheight < 1) { //#14616 - $k[$j++] = 'bwipp.code49badSepHeight#14615'; //#14615 - $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14615 - bwipp_raiseerror(); //#14615 - } //#14615 - if ($_.append && ($_.sam != -1)) { //#14620 - $k[$j++] = 'bwipp.code49samAndAppend#14619'; //#14619 - $k[$j++] = "sam and append cannot be specified together"; //#14619 - bwipp_raiseerror(); //#14619 - } //#14619 - if ($_.sam != -1) { //#14632 - $k[$j++] = true; //#14628 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#14628 - var _C = $_.sam; //#14625 - if ((_C < 12) || (_C > 99)) { //#14625 - $j--; //#14625 - $k[$j++] = false; //#14625 - break; //#14625 - } //#14625 - if (($_.sam % 10) < 2) { //#14626 - $j--; //#14626 - $k[$j++] = false; //#14626 - break; //#14626 - } //#14626 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14627 - $j--; //#14627 - $k[$j++] = false; //#14627 - break; //#14627 - } //#14627 - } //#14627 - if ($nt($k[--$j])) { //#14631 - $k[$j++] = 'bwipp.code49badSAM#14630'; //#14630 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14630 - bwipp_raiseerror(); //#14630 - } //#14630 - } //#14630 - bwipp_loadctx(bwipp_code49) //#14634 - if (!bwipp_code49.__14638__) { //#14638 - $_ = Object.create($_); //#14638 - $_.s1 = -1; //#14637 - $_.s2 = -2; //#14637 - $_.fn1 = -3; //#14637 - $_.fn2 = -4; //#14637 - $_.fn3 = -5; //#14637 - $_.ns = -6; //#14637 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14637 - bwipp_code49.__14638__ = 1; //#14637 - $_ = Object.getPrototypeOf($_); //#14637 - } //#14637 + $_ = Object.create($_); //#14798 + $_.dontdraw = false; //#14801 + $_.sam = -1; //#14802 + $_.append = false; //#14803 + $_.rows = 0; //#14804 + $_.rowheight = 8; //#14805 + $_.sepheight = 1; //#14806 + $_.parse = false; //#14807 + $_.parsefnc = false; //#14808 + $k[$j++] = $_; //#14810 + bwipp_processoptions(); //#14810 + $_.options = $k[--$j]; //#14810 + $_.barcode = $k[--$j]; //#14811 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14815 + $k[$j++] = 'bwipp.code49badRows#14814'; //#14814 + $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14814 + bwipp_raiseerror(); //#14814 + } //#14814 + if ($_.rowheight < 8) { //#14819 + $k[$j++] = 'bwipp.code49badRowHeight#14818'; //#14818 + $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14818 + bwipp_raiseerror(); //#14818 + } //#14818 + if ($_.sepheight < 1) { //#14823 + $k[$j++] = 'bwipp.code49badSepHeight#14822'; //#14822 + $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14822 + bwipp_raiseerror(); //#14822 + } //#14822 + if ($_.append && ($_.sam != -1)) { //#14827 + $k[$j++] = 'bwipp.code49samAndAppend#14826'; //#14826 + $k[$j++] = "sam and append cannot be specified together"; //#14826 + bwipp_raiseerror(); //#14826 + } //#14826 + if ($_.sam != -1) { //#14839 + $k[$j++] = true; //#14835 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#14835 + var _C = $_.sam; //#14832 + if ((_C < 12) || (_C > 99)) { //#14832 + $j--; //#14832 + $k[$j++] = false; //#14832 + break; //#14832 + } //#14832 + if (($_.sam % 10) < 2) { //#14833 + $j--; //#14833 + $k[$j++] = false; //#14833 + break; //#14833 + } //#14833 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14834 + $j--; //#14834 + $k[$j++] = false; //#14834 + break; //#14834 + } //#14834 + } //#14834 + if ($nt($k[--$j])) { //#14838 + $k[$j++] = 'bwipp.code49badSAM#14837'; //#14837 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14837 + bwipp_raiseerror(); //#14837 + } //#14837 + } //#14837 + bwipp_loadctx(bwipp_code49) //#14841 + if (!bwipp_code49.__14845__) { //#14845 + $_ = Object.create($_); //#14845 + $_.s1 = -1; //#14844 + $_.s2 = -2; //#14844 + $_.fn1 = -3; //#14844 + $_.fn2 = -4; //#14844 + $_.fn3 = -5; //#14844 + $_.ns = -6; //#14844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14844 + bwipp_code49.__14845__ = 1; //#14844 + $_ = Object.getPrototypeOf($_); //#14844 + } //#14844 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#14646 - $_.fncvals = _N; //#14647 - $k[$j++] = 'msg'; //#14648 - $k[$j++] = $_.barcode; //#14648 - $k[$j++] = $_.fncvals; //#14648 - bwipp_parseinput(); //#14648 - var _Q = $k[--$j]; //#14648 - $_[$k[--$j]] = _Q; //#14648 - $_.msglen = $_.msg.length; //#14649 - $forall($_.msg, function() { //#14655 - if ($k[--$j] > 127) { //#14654 - $k[$j++] = 'bwipp.code49badCharacter#14653'; //#14653 - $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14653 - bwipp_raiseerror(); //#14653 - } //#14653 - }); //#14653 - if (!bwipp_code49.__14697__) { //#14697 - $_ = Object.create($_); //#14697 - $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14665 - $_.charvals = new Map; //#14668 - for (var _c = 0; _c <= 48; _c += 1) { //#14674 - $_.i = _c; //#14670 - var _f = $get($_.charmap, $_.i); //#14671 - $k[$j++] = _f; //#14672 - if ($eq($type(_f), 'stringtype')) { //#14672 - var _i = $get($k[--$j], 0); //#14672 - $k[$j++] = _i; //#14672 - } //#14672 - $put($_.charvals, $k[--$j], $_.i); //#14673 - } //#14673 - $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14686 - for (var _n = 0; _n <= 127; _n += 1) { //#14696 - $_.i = _n; //#14688 - var _q = $get($_.combos, $_.i); //#14689 - $_.c1 = $get(_q, 0); //#14689 - $_.c2 = $get(_q, 1); //#14689 - if ($_.c1 == 49) { //#14692 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14691 - } //#14691 - if ($_.c1 == 50) { //#14695 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14694 - } //#14694 - } //#14694 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14694 - bwipp_code49.__14697__ = 1; //#14694 - $_ = Object.getPrototypeOf($_); //#14694 - } //#14694 + ]); //#14853 + $_.fncvals = _N; //#14854 + $k[$j++] = 'msg'; //#14855 + $k[$j++] = $_.barcode; //#14855 + $k[$j++] = $_.fncvals; //#14855 + bwipp_parseinput(); //#14855 + var _Q = $k[--$j]; //#14855 + $_[$k[--$j]] = _Q; //#14855 + $_.msglen = $_.msg.length; //#14856 + $forall($_.msg, function() { //#14862 + if ($k[--$j] > 127) { //#14861 + $k[$j++] = 'bwipp.code49badCharacter#14860'; //#14860 + $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14860 + bwipp_raiseerror(); //#14860 + } //#14860 + }); //#14860 + if (!bwipp_code49.__14904__) { //#14904 + $_ = Object.create($_); //#14904 + $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14872 + $_.charvals = new Map; //#14875 + for (var _c = 0; _c <= 48; _c += 1) { //#14881 + $_.i = _c; //#14877 + var _f = $get($_.charmap, $_.i); //#14878 + $k[$j++] = _f; //#14879 + if ($eq($type(_f), 'stringtype')) { //#14879 + var _i = $get($k[--$j], 0); //#14879 + $k[$j++] = _i; //#14879 + } //#14879 + $put($_.charvals, $k[--$j], $_.i); //#14880 + } //#14880 + $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14893 + for (var _n = 0; _n <= 127; _n += 1) { //#14903 + $_.i = _n; //#14895 + var _q = $get($_.combos, $_.i); //#14896 + $_.c1 = $get(_q, 0); //#14896 + $_.c2 = $get(_q, 1); //#14896 + if ($_.c1 == 49) { //#14899 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14898 + } //#14898 + if ($_.c1 == 50) { //#14902 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14901 + } //#14901 + } //#14901 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14901 + bwipp_code49.__14904__ = 1; //#14901 + $_ = Object.getPrototypeOf($_); //#14901 + } //#14901 $_.encodealpha = function() { - var _1G = $get($_.charvals, $k[--$j]); //#14700 - $k[$j++] = _1G; //#14701 - if ($ne($type(_1G), 'arraytype')) { //#14701 - $astore($a(1)); //#14701 - } //#14701 - var _1J = $k[--$j]; //#14702 - $puti($_.cws, $_.j, _1J); //#14702 - $_.j = _1J.length + $_.j; //#14703 - }; //#14703 + var _1G = $get($_.charvals, $k[--$j]); //#14907 + $k[$j++] = _1G; //#14908 + if ($ne($type(_1G), 'arraytype')) { //#14908 + $astore($a(1)); //#14908 + } //#14908 + var _1J = $k[--$j]; //#14909 + $puti($_.cws, $_.j, _1J); //#14909 + $_.j = _1J.length + $_.j; //#14910 + }; //#14910 $_.base48 = function() { - var _1N = $k[--$j]; //#14707 - $k[$j++] = 0; //#14707 - $forall(_1N, function() { //#14707 - var _1O = $k[--$j]; //#14707 - var _1P = $k[--$j]; //#14707 - $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14707 - }); //#14707 - $k[$j++] = Infinity; //#14708 - var _1Q = $k[--$j]; //#14708 - var _1R = $k[--$j]; //#14708 - var _1S = $k[--$j]; //#14708 - $k[$j++] = _1Q; //#14708 - $k[$j++] = _1R; //#14708 - for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14708 - var _1V = $k[--$j]; //#14708 - $k[$j++] = _1V % 48; //#14708 - $k[$j++] = ~~(_1V / 48); //#14708 - } //#14708 - var _1W = $a(); //#14708 - $k[$j++] = _1W; //#14709 - $k[$j++] = Infinity; //#14709 - var _1X = $k[--$j]; //#14709 - var _1Y = $k[--$j]; //#14709 - $k[$j++] = _1X; //#14709 - $k[$j++] = _1Y; //#14709 - for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14709 - var _1a = $k[--$j]; //#14709 - $k[$j++] = $get(_1a, _1Z); //#14709 - $k[$j++] = _1a; //#14709 - } //#14709 - $j--; //#14709 - var _1c = $a(); //#14709 - $puti($_.cws, $_.j, _1c); //#14710 - $_.j = _1c.length + $_.j; //#14711 - }; //#14711 + var _1N = $k[--$j]; //#14914 + $k[$j++] = 0; //#14914 + $forall(_1N, function() { //#14914 + var _1O = $k[--$j]; //#14914 + var _1P = $k[--$j]; //#14914 + $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14914 + }); //#14914 + $k[$j++] = Infinity; //#14915 + var _1Q = $k[--$j]; //#14915 + var _1R = $k[--$j]; //#14915 + var _1S = $k[--$j]; //#14915 + $k[$j++] = _1Q; //#14915 + $k[$j++] = _1R; //#14915 + for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14915 + var _1V = $k[--$j]; //#14915 + $k[$j++] = _1V % 48; //#14915 + $k[$j++] = ~~(_1V / 48); //#14915 + } //#14915 + var _1W = $a(); //#14915 + $k[$j++] = _1W; //#14916 + $k[$j++] = Infinity; //#14916 + var _1X = $k[--$j]; //#14916 + var _1Y = $k[--$j]; //#14916 + $k[$j++] = _1X; //#14916 + $k[$j++] = _1Y; //#14916 + for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14916 + var _1a = $k[--$j]; //#14916 + $k[$j++] = $get(_1a, _1Z); //#14916 + $k[$j++] = _1a; //#14916 + } //#14916 + $j--; //#14916 + var _1c = $a(); //#14916 + $puti($_.cws, $_.j, _1c); //#14917 + $_.j = _1c.length + $_.j; //#14918 + }; //#14918 $_.encodenumeric = function() { - $_.nums = $k[--$j]; //#14715 - var _1i = $_.nums.length; //#14716 - var _1j = _1i % 5; //#14716 - $k[$j++] = 'pre'; //#14716 - $k[$j++] = _1i; //#14716 - $k[$j++] = _1j; //#14716 - if (_1j != 2) { //#14716 - var _1k = $k[--$j]; //#14716 - var _1l = $k[--$j]; //#14716 - $k[$j++] = $f(_1l - _1k); //#14716 - } else { //#14716 - var _1m = $k[--$j]; //#14716 - var _1n = $k[--$j]; //#14716 - $k[$j++] = $f($f(_1n - _1m) - 5); //#14716 - } //#14716 - var _1o = $k[--$j]; //#14716 - $_[$k[--$j]] = _1o; //#14716 - for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14717 - $k[$j++] = 3; //#14717 - $k[$j++] = $geti($_.nums, _1s, 5); //#14717 - $_.base48(); //#14717 - } //#14717 - $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14718 - var _21 = $_.nums.length; //#14720 - $k[$j++] = _21; //#14720 - if (_21 == 1) { //#14720 - $k[$j++] = $get($_.nums, $_.i); //#14720 - $_.encodealpha(); //#14720 - } //#14720 - var _25 = $k[--$j]; //#14721 - $k[$j++] = _25; //#14721 - if (_25 == 3) { //#14721 - $k[$j++] = 2; //#14721 - $k[$j++] = $_.nums; //#14721 - $_.base48(); //#14721 - } //#14721 - var _27 = $k[--$j]; //#14722 - $k[$j++] = _27; //#14722 - if (_27 == 4) { //#14722 - $k[$j++] = 3; //#14722 - $k[$j++] = Infinity; //#14722 - $k[$j++] = 49; //#14722 - $k[$j++] = 48; //#14722 - $aload($_.nums); //#14722 - var _29 = $a(); //#14722 - $k[$j++] = _29; //#14722 - $_.base48(); //#14722 - } //#14722 - if ($k[--$j] == 7) { //#14726 - $k[$j++] = 3; //#14724 - $k[$j++] = Infinity; //#14724 - $k[$j++] = 49; //#14724 - $k[$j++] = 48; //#14724 - $aload($geti($_.nums, 0, 4)); //#14724 - var _2D = $a(); //#14724 - $k[$j++] = _2D; //#14724 - $_.base48(); //#14724 - $k[$j++] = 2; //#14725 - $k[$j++] = $geti($_.nums, 4, 3); //#14725 - $_.base48(); //#14725 - } //#14725 - }; //#14725 - $k[$j++] = Infinity; //#14730 - for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14730 - $k[$j++] = 0; //#14730 - } //#14730 - $k[$j++] = 0; //#14730 - $_.numericruns = $a(); //#14730 - for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14739 - $_.i = _2L; //#14732 - var _2O = $get($_.msg, $_.i); //#14733 - if ((_2O >= 48) && (_2O <= 57)) { //#14737 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14735 - } else { //#14737 - $put($_.numericruns, $_.i, 0); //#14737 - } //#14737 - } //#14737 - $_.cws = $a(($_.msglen * 2) + 1); //#14741 - if (!bwipp_code49.__14754__) { //#14754 - $_ = Object.create($_); //#14754 - $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14753 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14753 - bwipp_code49.__14754__ = 1; //#14753 - $_ = Object.getPrototypeOf($_); //#14753 - } //#14753 - for (;;) { //#14790 - if ($_.append) { //#14763 - $_.mode = 1; //#14759 - $_.method = "alpha"; //#14760 - $_.i = 0; //#14761 - $_.j = 0; //#14761 - break; //#14762 - } //#14762 - if ($_.sam != -1) { //#14770 - $_.mode = 3; //#14765 - $k[$j++] = $_.cws; //#14766 - $k[$j++] = 0; //#14766 - for (var _2d = 0; _2d <= 43; _2d += 1) { //#14766 - $k[$j++] = _2d; //#14766 - if ($get($_.samval, _2d) != $_.sam) { //#14766 - $j--; //#14766 - } //#14766 - } //#14766 - var _2h = $k[--$j]; //#14766 - var _2i = $k[--$j]; //#14766 - $put($k[--$j], _2i, $f(_2h + 1)); //#14766 - $_.method = "alpha"; //#14767 - $_.i = 0; //#14768 - $_.j = 1; //#14768 - break; //#14769 - } //#14769 - if ($get($_.numericruns, 0) >= 5) { //#14775 - $_.mode = 2; //#14772 - $_.method = "numeric"; //#14773 - $_.i = 0; //#14773 - $_.j = 0; //#14773 - break; //#14774 - } //#14774 - var _2p = $get($_.charvals, $get($_.msg, 0)); //#14776 - $k[$j++] = _2p; //#14783 - if ($ne($type(_2p), 'arraytype')) { //#14783 - $j--; //#14778 - $_.mode = 0; //#14779 - $_.method = "alpha"; //#14780 - $_.i = 0; //#14781 - $_.j = 0; //#14781 - break; //#14782 - } //#14782 - var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14785 - $_.mode = _2t; //#14785 - $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14786 - $_.method = "alpha"; //#14787 - $_.i = 1; //#14788 - $_.j = 1; //#14788 - break; //#14789 - } //#14789 - for (;;) { //#14817 - if ($_.i == $_.msglen) { //#14794 - break; //#14794 - } //#14794 - for (;;) { //#14816 - if ($eq($_.method, "alpha")) { //#14805 - if ($get($_.numericruns, $_.i) >= 5) { //#14801 - $k[$j++] = $_.ns; //#14798 - $_.encodealpha(); //#14798 - $_.method = "numeric"; //#14799 - break; //#14800 - } //#14800 - $k[$j++] = $get($_.msg, $_.i); //#14802 - $_.encodealpha(); //#14802 - $_.i = $_.i + 1; //#14803 - break; //#14804 - } //#14804 - if ($eq($_.method, "numeric")) { //#14815 - if ($get($_.numericruns, $_.i) < 5) { //#14811 - $k[$j++] = $_.ns; //#14808 - $_.encodealpha(); //#14808 - $_.method = "alpha"; //#14809 - break; //#14810 - } //#14810 - $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#14812 - $_.encodenumeric(); //#14812 - $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#14813 - break; //#14814 - } //#14814 - } //#14814 - } //#14814 - $_.cws = $geti($_.cws, 0, $_.j); //#14818 - if (!bwipp_code49.__14832__) { //#14832 - $_ = Object.create($_); //#14832 - $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#14831 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14831 - bwipp_code49.__14832__ = 1; //#14831 - $_ = Object.getPrototypeOf($_); //#14831 - } //#14831 - $_.urows = $_.rows; //#14835 - var _3d = $_.metrics; //#14836 - for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#14844 - $_.m = $get(_3d, _3e); //#14837 - $_.r = $get($_.m, 0); //#14838 - $_.dcws = $get($_.m, 1); //#14839 - $_.okay = true; //#14840 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14841 - $_.okay = false; //#14841 - } //#14841 - if ($_.cws.length > $_.dcws) { //#14842 - $_.okay = false; //#14842 - } //#14842 - if ($_.okay) { //#14843 - break; //#14843 - } //#14843 - } //#14843 - if (!$_.okay) { //#14848 - $k[$j++] = 'bwipp.code49noValidSymbol#14847'; //#14847 - $k[$j++] = "Maximum length exceeded"; //#14847 - bwipp_raiseerror(); //#14847 - } //#14847 - $k[$j++] = Infinity; //#14851 - $aload($_.cws); //#14851 - for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#14851 - $k[$j++] = 48; //#14851 - } //#14851 - $_.cws = $a(); //#14851 - $_.ccs = $a($_.r * 8); //#14854 - $_.j = 0; //#14855 - for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#14862 - $_.i = _42; //#14857 - $_.cc = $geti($_.cws, $_.j, 7); //#14858 - $puti($_.ccs, $_.i * 8, $_.cc); //#14859 - var _4B = $_.cc; //#14860 - $k[$j++] = $_.ccs; //#14860 - $k[$j++] = ($_.i * 8) + 7; //#14860 - $k[$j++] = 0; //#14860 - for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#14860 - var _4F = $k[--$j]; //#14860 - $k[$j++] = $f(_4F + $get(_4B, _4C)); //#14860 - } //#14860 - var _4G = $k[--$j]; //#14860 - var _4H = $k[--$j]; //#14860 - $put($k[--$j], _4H, _4G % 49); //#14860 - $_.j = $_.j + 7; //#14861 - } //#14861 - if ($_.j < $_.dcws) { //#14865 - $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#14864 - } //#14864 - $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#14868 - $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#14869 - if (!bwipp_code49.__14878__) { //#14878 - $_ = Object.create($_); //#14878 - var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#14874 - $k[$j++] = _4Y; //#14875 - $k[$j++] = _4Y; //#14875 - $k[$j++] = Infinity; //#14875 - var _4Z = $k[--$j]; //#14875 - var _4b = $geti($k[--$j], 0, 32); //#14875 - $k[$j++] = _4Z; //#14875 - $k[$j++] = 20; //#14875 - $aload(_4b); //#14875 - $_.weightx = $a(); //#14875 - var _4d = $k[--$j]; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = Infinity; //#14876 - var _4e = $k[--$j]; //#14876 - var _4g = $geti($k[--$j], 1, 32); //#14876 - $k[$j++] = _4e; //#14876 - $k[$j++] = 16; //#14876 - $aload(_4g); //#14876 - $_.weighty = $a(); //#14876 - $k[$j++] = Infinity; //#14877 - var _4i = $k[--$j]; //#14877 - var _4k = $geti($k[--$j], 2, 32); //#14877 - $k[$j++] = _4i; //#14877 - $k[$j++] = 38; //#14877 - $aload(_4k); //#14877 - $_.weightz = $a(); //#14877 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14877 - bwipp_code49.__14878__ = 1; //#14877 - $_ = Object.getPrototypeOf($_); //#14877 - } //#14877 + $_.nums = $k[--$j]; //#14922 + var _1i = $_.nums.length; //#14923 + var _1j = _1i % 5; //#14923 + $k[$j++] = 'pre'; //#14923 + $k[$j++] = _1i; //#14923 + $k[$j++] = _1j; //#14923 + if (_1j != 2) { //#14923 + var _1k = $k[--$j]; //#14923 + var _1l = $k[--$j]; //#14923 + $k[$j++] = $f(_1l - _1k); //#14923 + } else { //#14923 + var _1m = $k[--$j]; //#14923 + var _1n = $k[--$j]; //#14923 + $k[$j++] = $f($f(_1n - _1m) - 5); //#14923 + } //#14923 + var _1o = $k[--$j]; //#14923 + $_[$k[--$j]] = _1o; //#14923 + for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14924 + $k[$j++] = 3; //#14924 + $k[$j++] = $geti($_.nums, _1s, 5); //#14924 + $_.base48(); //#14924 + } //#14924 + $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14925 + var _21 = $_.nums.length; //#14927 + $k[$j++] = _21; //#14927 + if (_21 == 1) { //#14927 + $k[$j++] = $get($_.nums, $_.i); //#14927 + $_.encodealpha(); //#14927 + } //#14927 + var _25 = $k[--$j]; //#14928 + $k[$j++] = _25; //#14928 + if (_25 == 3) { //#14928 + $k[$j++] = 2; //#14928 + $k[$j++] = $_.nums; //#14928 + $_.base48(); //#14928 + } //#14928 + var _27 = $k[--$j]; //#14929 + $k[$j++] = _27; //#14929 + if (_27 == 4) { //#14929 + $k[$j++] = 3; //#14929 + $k[$j++] = Infinity; //#14929 + $k[$j++] = 49; //#14929 + $k[$j++] = 48; //#14929 + $aload($_.nums); //#14929 + var _29 = $a(); //#14929 + $k[$j++] = _29; //#14929 + $_.base48(); //#14929 + } //#14929 + if ($k[--$j] == 7) { //#14933 + $k[$j++] = 3; //#14931 + $k[$j++] = Infinity; //#14931 + $k[$j++] = 49; //#14931 + $k[$j++] = 48; //#14931 + $aload($geti($_.nums, 0, 4)); //#14931 + var _2D = $a(); //#14931 + $k[$j++] = _2D; //#14931 + $_.base48(); //#14931 + $k[$j++] = 2; //#14932 + $k[$j++] = $geti($_.nums, 4, 3); //#14932 + $_.base48(); //#14932 + } //#14932 + }; //#14932 + $k[$j++] = Infinity; //#14937 + for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14937 + $k[$j++] = 0; //#14937 + } //#14937 + $k[$j++] = 0; //#14937 + $_.numericruns = $a(); //#14937 + for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14946 + $_.i = _2L; //#14939 + var _2O = $get($_.msg, $_.i); //#14940 + if ((_2O >= 48) && (_2O <= 57)) { //#14944 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14942 + } else { //#14944 + $put($_.numericruns, $_.i, 0); //#14944 + } //#14944 + } //#14944 + $_.cws = $a(($_.msglen * 2) + 1); //#14948 + if (!bwipp_code49.__14961__) { //#14961 + $_ = Object.create($_); //#14961 + $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14960 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14960 + bwipp_code49.__14961__ = 1; //#14960 + $_ = Object.getPrototypeOf($_); //#14960 + } //#14960 + for (;;) { //#14997 + if ($_.append) { //#14970 + $_.mode = 1; //#14966 + $_.method = "alpha"; //#14967 + $_.i = 0; //#14968 + $_.j = 0; //#14968 + break; //#14969 + } //#14969 + if ($_.sam != -1) { //#14977 + $_.mode = 3; //#14972 + $k[$j++] = $_.cws; //#14973 + $k[$j++] = 0; //#14973 + for (var _2d = 0; _2d <= 43; _2d += 1) { //#14973 + $k[$j++] = _2d; //#14973 + if ($get($_.samval, _2d) != $_.sam) { //#14973 + $j--; //#14973 + } //#14973 + } //#14973 + var _2h = $k[--$j]; //#14973 + var _2i = $k[--$j]; //#14973 + $put($k[--$j], _2i, $f(_2h + 1)); //#14973 + $_.method = "alpha"; //#14974 + $_.i = 0; //#14975 + $_.j = 1; //#14975 + break; //#14976 + } //#14976 + if ($get($_.numericruns, 0) >= 5) { //#14982 + $_.mode = 2; //#14979 + $_.method = "numeric"; //#14980 + $_.i = 0; //#14980 + $_.j = 0; //#14980 + break; //#14981 + } //#14981 + var _2p = $get($_.charvals, $get($_.msg, 0)); //#14983 + $k[$j++] = _2p; //#14990 + if ($ne($type(_2p), 'arraytype')) { //#14990 + $j--; //#14985 + $_.mode = 0; //#14986 + $_.method = "alpha"; //#14987 + $_.i = 0; //#14988 + $_.j = 0; //#14988 + break; //#14989 + } //#14989 + var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14992 + $_.mode = _2t; //#14992 + $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14993 + $_.method = "alpha"; //#14994 + $_.i = 1; //#14995 + $_.j = 1; //#14995 + break; //#14996 + } //#14996 + for (;;) { //#15024 + if ($_.i == $_.msglen) { //#15001 + break; //#15001 + } //#15001 + for (;;) { //#15023 + if ($eq($_.method, "alpha")) { //#15012 + if ($get($_.numericruns, $_.i) >= 5) { //#15008 + $k[$j++] = $_.ns; //#15005 + $_.encodealpha(); //#15005 + $_.method = "numeric"; //#15006 + break; //#15007 + } //#15007 + $k[$j++] = $get($_.msg, $_.i); //#15009 + $_.encodealpha(); //#15009 + $_.i = $_.i + 1; //#15010 + break; //#15011 + } //#15011 + if ($eq($_.method, "numeric")) { //#15022 + if ($get($_.numericruns, $_.i) < 5) { //#15018 + $k[$j++] = $_.ns; //#15015 + $_.encodealpha(); //#15015 + $_.method = "alpha"; //#15016 + break; //#15017 + } //#15017 + $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#15019 + $_.encodenumeric(); //#15019 + $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#15020 + break; //#15021 + } //#15021 + } //#15021 + } //#15021 + $_.cws = $geti($_.cws, 0, $_.j); //#15025 + if (!bwipp_code49.__15039__) { //#15039 + $_ = Object.create($_); //#15039 + $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#15038 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15038 + bwipp_code49.__15039__ = 1; //#15038 + $_ = Object.getPrototypeOf($_); //#15038 + } //#15038 + $_.urows = $_.rows; //#15042 + var _3d = $_.metrics; //#15043 + for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#15051 + $_.m = $get(_3d, _3e); //#15044 + $_.r = $get($_.m, 0); //#15045 + $_.dcws = $get($_.m, 1); //#15046 + $_.okay = true; //#15047 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#15048 + $_.okay = false; //#15048 + } //#15048 + if ($_.cws.length > $_.dcws) { //#15049 + $_.okay = false; //#15049 + } //#15049 + if ($_.okay) { //#15050 + break; //#15050 + } //#15050 + } //#15050 + if (!$_.okay) { //#15055 + $k[$j++] = 'bwipp.code49noValidSymbol#15054'; //#15054 + $k[$j++] = "Maximum length exceeded"; //#15054 + bwipp_raiseerror(); //#15054 + } //#15054 + $k[$j++] = Infinity; //#15058 + $aload($_.cws); //#15058 + for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#15058 + $k[$j++] = 48; //#15058 + } //#15058 + $_.cws = $a(); //#15058 + $_.ccs = $a($_.r * 8); //#15061 + $_.j = 0; //#15062 + for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#15069 + $_.i = _42; //#15064 + $_.cc = $geti($_.cws, $_.j, 7); //#15065 + $puti($_.ccs, $_.i * 8, $_.cc); //#15066 + var _4B = $_.cc; //#15067 + $k[$j++] = $_.ccs; //#15067 + $k[$j++] = ($_.i * 8) + 7; //#15067 + $k[$j++] = 0; //#15067 + for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#15067 + var _4F = $k[--$j]; //#15067 + $k[$j++] = $f(_4F + $get(_4B, _4C)); //#15067 + } //#15067 + var _4G = $k[--$j]; //#15067 + var _4H = $k[--$j]; //#15067 + $put($k[--$j], _4H, _4G % 49); //#15067 + $_.j = $_.j + 7; //#15068 + } //#15068 + if ($_.j < $_.dcws) { //#15072 + $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#15071 + } //#15071 + $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#15075 + $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#15076 + if (!bwipp_code49.__15085__) { //#15085 + $_ = Object.create($_); //#15085 + var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#15081 + $k[$j++] = _4Y; //#15082 + $k[$j++] = _4Y; //#15082 + $k[$j++] = Infinity; //#15082 + var _4Z = $k[--$j]; //#15082 + var _4b = $geti($k[--$j], 0, 32); //#15082 + $k[$j++] = _4Z; //#15082 + $k[$j++] = 20; //#15082 + $aload(_4b); //#15082 + $_.weightx = $a(); //#15082 + var _4d = $k[--$j]; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = Infinity; //#15083 + var _4e = $k[--$j]; //#15083 + var _4g = $geti($k[--$j], 1, 32); //#15083 + $k[$j++] = _4e; //#15083 + $k[$j++] = 16; //#15083 + $aload(_4g); //#15083 + $_.weighty = $a(); //#15083 + $k[$j++] = Infinity; //#15084 + var _4i = $k[--$j]; //#15084 + var _4k = $geti($k[--$j], 2, 32); //#15084 + $k[$j++] = _4i; //#15084 + $k[$j++] = 38; //#15084 + $aload(_4k); //#15084 + $_.weightz = $a(); //#15084 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15084 + bwipp_code49.__15085__ = 1; //#15084 + $_ = Object.getPrototypeOf($_); //#15084 + } //#15084 $_.calccheck = function() { - $_.weights = $k[--$j]; //#14880 - $_.score = 0; //#14881 - for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#14886 - $_.i = _4q; //#14883 - $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#14885 - } //#14885 - $k[$j++] = $_.score; //#14887 - }; //#14887 - $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#14889 - if ($_.r >= 7) { //#14896 - $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#14893 - $k[$j++] = $_.weightz; //#14893 - $_.calccheck(); //#14893 - var _5A = $k[--$j]; //#14893 - var _5C = $f($k[--$j] + _5A) % 2401; //#14894 - $k[$j++] = ~~(_5C / 49); //#14894 - $k[$j++] = _5C % 49; //#14894 - $astore($a(2)); //#14894 - $puti($_.lastrow, 0, $k[--$j]); //#14895 - } //#14895 - $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#14897 - $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#14900 - $k[$j++] = $_.weighty; //#14900 - $_.calccheck(); //#14900 - var _5O = $k[--$j]; //#14900 - var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#14902 - $_.wr2 = _5U; //#14902 - $k[$j++] = ~~(_5U / 49); //#14903 - $k[$j++] = _5U % 49; //#14903 - $astore($a(2)); //#14903 - $puti($_.lastrow, 2, $k[--$j]); //#14904 - $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#14907 - $k[$j++] = $_.weightx; //#14907 - $_.calccheck(); //#14907 - var _5c = $k[--$j]; //#14907 - var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#14911 - $k[$j++] = ~~(_5m / 49); //#14911 - $k[$j++] = _5m % 49; //#14911 - $astore($a(2)); //#14911 - $puti($_.lastrow, 4, $k[--$j]); //#14912 - var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#14915 - $k[$j++] = 0; //#14915 - for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#14915 - var _5w = $k[--$j]; //#14915 - $k[$j++] = $f(_5w + $get(_5s, _5t)); //#14915 - } //#14915 - $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#14916 - var _61 = $get($_.options, 'debugcws') !== undefined; //#14918 - if (_61) { //#14918 - $k[$j++] = 'bwipp.debugcws#14918'; //#14918 - $k[$j++] = $_.ccs; //#14918 - bwipp_raiseerror(); //#14918 - } //#14918 - if (!bwipp_code49.__15616__) { //#15616 - $_ = Object.create($_); //#15616 - $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15611 - $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15615 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15615 - bwipp_code49.__15616__ = 1; //#15615 - $_ = Object.getPrototypeOf($_); //#15615 - } //#15615 - $_.rowbits = $a($_.r); //#15619 - for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15639 - $_.i = _6C; //#15621 - $k[$j++] = 'p'; //#15622 - if ($_.i != $f($_.r - 1)) { //#15622 - $k[$j++] = $get($_.parity, $_.i); //#15622 - } else { //#15622 - $k[$j++] = "0000"; //#15622 - } //#15622 - var _6I = $k[--$j]; //#15622 - $_[$k[--$j]] = _6I; //#15622 - $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15623 - $k[$j++] = Infinity; //#15625 - for (var _6N = 0; _6N <= 7; _6N += 2) { //#15625 - $aload($geti($_.ccrow, _6N, 2)); //#15625 - var _6Q = $k[--$j]; //#15625 - var _6R = $k[--$j]; //#15625 - $k[$j++] = $f(_6Q + (_6R * 49)); //#15625 - } //#15625 - $_.scrow = $a(); //#15625 - $k[$j++] = Infinity; //#15633 - $k[$j++] = 10; //#15632 - $k[$j++] = 1; //#15632 - $k[$j++] = 1; //#15632 - for (var _6T = 0; _6T <= 3; _6T += 1) { //#15632 - $_.j = _6T; //#15630 - $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15631 - var _6d = $k[--$j]; //#15631 - $k[$j++] = $f(_6d - 48); //#15631 - }); //#15631 - } //#15631 - $k[$j++] = 4; //#15633 - $k[$j++] = 1; //#15633 - $_.sbs = $a(); //#15633 - $k[$j++] = Infinity; //#15635 - var _6f = $_.sbs; //#15636 - $k[$j++] = 1; //#15636 - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15636 - var _6j = $k[--$j]; //#15636 - var _6k = (_6j == 0) ? 1 : 0; //#15636 - $k[$j++] = _6j; //#15636 - for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15636 - $k[$j++] = _6k //#15636 - } //#15636 - } //#15636 - $astore($a($counttomark() - 1)); //#15637 - var _6p = $k[--$j]; //#15637 - var _6q = $k[--$j]; //#15637 - $k[$j++] = _6p; //#15637 - $k[$j++] = _6q; //#15637 - $j--; //#15637 - var _6r = $k[--$j]; //#15637 - var _6s = $k[--$j]; //#15637 - $k[$j++] = _6r; //#15637 - $k[$j++] = _6s; //#15637 - $j--; //#15637 - $put($_.rowbits, $_.i, $k[--$j]); //#15638 - } //#15638 - $k[$j++] = Infinity; //#15650 - for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15643 - $k[$j++] = 1; //#15643 - } //#15643 - for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15648 - $_.i = _71; //#15645 - for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15646 - $aload($get($_.rowbits, $_.i)); //#15646 - } //#15646 - for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15647 - for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15647 - $k[$j++] = 1; //#15647 - } //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - } //#15647 - for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15649 - $aload($get($_.rowbits, $f($_.r - 1))); //#15649 - } //#15649 - for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15650 - $k[$j++] = 1; //#15650 - } //#15650 - $_.pixs = $a(); //#15650 + $_.weights = $k[--$j]; //#15087 + $_.score = 0; //#15088 + for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#15093 + $_.i = _4q; //#15090 + $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#15092 + } //#15092 + $k[$j++] = $_.score; //#15094 + }; //#15094 + $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#15096 + if ($_.r >= 7) { //#15103 + $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#15100 + $k[$j++] = $_.weightz; //#15100 + $_.calccheck(); //#15100 + var _5A = $k[--$j]; //#15100 + var _5C = $f($k[--$j] + _5A) % 2401; //#15101 + $k[$j++] = ~~(_5C / 49); //#15101 + $k[$j++] = _5C % 49; //#15101 + $astore($a(2)); //#15101 + $puti($_.lastrow, 0, $k[--$j]); //#15102 + } //#15102 + $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#15104 + $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#15107 + $k[$j++] = $_.weighty; //#15107 + $_.calccheck(); //#15107 + var _5O = $k[--$j]; //#15107 + var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#15109 + $_.wr2 = _5U; //#15109 + $k[$j++] = ~~(_5U / 49); //#15110 + $k[$j++] = _5U % 49; //#15110 + $astore($a(2)); //#15110 + $puti($_.lastrow, 2, $k[--$j]); //#15111 + $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#15114 + $k[$j++] = $_.weightx; //#15114 + $_.calccheck(); //#15114 + var _5c = $k[--$j]; //#15114 + var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#15118 + $k[$j++] = ~~(_5m / 49); //#15118 + $k[$j++] = _5m % 49; //#15118 + $astore($a(2)); //#15118 + $puti($_.lastrow, 4, $k[--$j]); //#15119 + var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#15122 + $k[$j++] = 0; //#15122 + for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#15122 + var _5w = $k[--$j]; //#15122 + $k[$j++] = $f(_5w + $get(_5s, _5t)); //#15122 + } //#15122 + $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#15123 + var _61 = $get($_.options, 'debugcws') !== undefined; //#15125 + if (_61) { //#15125 + $k[$j++] = 'bwipp.debugcws#15125'; //#15125 + $k[$j++] = $_.ccs; //#15125 + bwipp_raiseerror(); //#15125 + } //#15125 + if (!bwipp_code49.__15823__) { //#15823 + $_ = Object.create($_); //#15823 + $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15818 + $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15822 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15822 + bwipp_code49.__15823__ = 1; //#15822 + $_ = Object.getPrototypeOf($_); //#15822 + } //#15822 + $_.rowbits = $a($_.r); //#15826 + for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15846 + $_.i = _6C; //#15828 + $k[$j++] = 'p'; //#15829 + if ($_.i != $f($_.r - 1)) { //#15829 + $k[$j++] = $get($_.parity, $_.i); //#15829 + } else { //#15829 + $k[$j++] = "0000"; //#15829 + } //#15829 + var _6I = $k[--$j]; //#15829 + $_[$k[--$j]] = _6I; //#15829 + $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15830 + $k[$j++] = Infinity; //#15831 + for (var _6N = 0; _6N <= 7; _6N += 2) { //#15832 + $aload($geti($_.ccrow, _6N, 2)); //#15832 + var _6Q = $k[--$j]; //#15832 + var _6R = $k[--$j]; //#15832 + $k[$j++] = $f(_6Q + (_6R * 49)); //#15832 + } //#15832 + $_.scrow = $a(); //#15832 + $k[$j++] = Infinity; //#15834 + $k[$j++] = 10; //#15839 + $k[$j++] = 1; //#15839 + $k[$j++] = 1; //#15839 + for (var _6T = 0; _6T <= 3; _6T += 1) { //#15839 + $_.j = _6T; //#15837 + $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15838 + var _6d = $k[--$j]; //#15838 + $k[$j++] = $f(_6d - 48); //#15838 + }); //#15838 + } //#15838 + $k[$j++] = 4; //#15840 + $k[$j++] = 1; //#15840 + $_.sbs = $a(); //#15840 + $k[$j++] = Infinity; //#15842 + var _6f = $_.sbs; //#15843 + $k[$j++] = 1; //#15843 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15843 + var _6j = $k[--$j]; //#15843 + var _6k = (_6j == 0) ? 1 : 0; //#15843 + $k[$j++] = _6j; //#15843 + for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15843 + $k[$j++] = _6k //#15843 + } //#15843 + } //#15843 + $astore($a($counttomark() - 1)); //#15844 + var _6p = $k[--$j]; //#15844 + var _6q = $k[--$j]; //#15844 + $k[$j++] = _6p; //#15844 + $k[$j++] = _6q; //#15844 + $j--; //#15844 + var _6r = $k[--$j]; //#15844 + var _6s = $k[--$j]; //#15844 + $k[$j++] = _6r; //#15844 + $k[$j++] = _6s; //#15844 + $j--; //#15844 + $put($_.rowbits, $_.i, $k[--$j]); //#15845 + } //#15845 + $k[$j++] = Infinity; //#15849 + for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15850 + $k[$j++] = 1; //#15850 + } //#15850 + for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15855 + $_.i = _71; //#15852 + for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15853 + $aload($get($_.rowbits, $_.i)); //#15853 + } //#15853 + for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15854 + for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15854 + $k[$j++] = 1; //#15854 + } //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + } //#15854 + for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15856 + $aload($get($_.rowbits, $f($_.r - 1))); //#15856 + } //#15856 + for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15857 + $k[$j++] = 1; //#15857 + } //#15857 + $_.pixs = $a(); //#15857 var _7T = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -19051,4438 +19372,4524 @@ function bwipp_code49() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#15661 - $k[$j++] = _7T; //#15664 - if (!$_.dontdraw) { //#15664 - bwipp_renmatrix(); //#15664 - } //#15664 - $_ = Object.getPrototypeOf($_); //#15666 - $_ = Object.getPrototypeOf($_); //#15668 -} - + ]); //#15868 + $k[$j++] = _7T; //#15871 + if (!$_.dontdraw) { //#15871 + bwipp_renmatrix(); //#15871 + } //#15871 + $_ = Object.getPrototypeOf($_); //#15873 + $_ = Object.getPrototypeOf($_); //#15875 +} //bwipp_code49 function bwipp_flattermarken() { - $_ = Object.create($_); //#15960 - $_.dontdraw = false; //#15963 - $_.includetext = false; //#15964 - $_.textfont = "OCR-B"; //#15965 - $_.textsize = 10; //#15966 - $_.textyoffset = -8; //#15967 - $_.height = 0.3; //#15968 - $k[$j++] = $_; //#15970 - bwipp_processoptions(); //#15970 - $_.options = $k[--$j]; //#15970 - $_.barcode = $k[--$j]; //#15971 - bwipp_loadctx(bwipp_flattermarken) //#15973 - $forall($_.barcode, function() { //#15980 - var _3 = $k[--$j]; //#15977 - if ((_3 < 48) || (_3 > 57)) { //#15979 - $k[$j++] = 'bwipp.flattermarkenBadCharacter#15978'; //#15978 - $k[$j++] = "Flattermarken must contain only digits"; //#15978 - bwipp_raiseerror(); //#15978 - } //#15978 - }); //#15978 - if (!bwipp_flattermarken.__15991__) { //#15991 - $_ = Object.create($_); //#15991 - $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#15987 - $_.barchars = "1234567890"; //#15990 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#15990 - bwipp_flattermarken.__15991__ = 1; //#15990 - $_ = Object.getPrototypeOf($_); //#15990 - } //#15990 - $_.barlen = $_.barcode.length; //#15993 - $_.sbs = $s($_.barlen * 4); //#15995 - $_.txt = $a($_.barlen); //#15996 - for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16008 - $_.i = _D; //#15999 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16001 - $j--; //#16002 - $_.indx = $k[--$j].length; //#16003 - $j -= 2; //#16004 - $_.enc = $get($_.encs, $_.indx); //#16005 - $puti($_.sbs, $_.i * 4, $_.enc); //#16006 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16007 - } //#16007 - $k[$j++] = Infinity; //#16017 - $k[$j++] = Infinity; //#16013 - var _Z = $_.sbs; //#16013 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16013 - $k[$j++] = $get(_Z, _a) - 48; //#16013 - } //#16013 - var _d = $a(); //#16013 - $k[$j++] = Infinity; //#16014 - for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16014 - $k[$j++] = $_.height; //#16014 - } //#16014 - var _i = $a(); //#16014 - $k[$j++] = Infinity; //#16015 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16015 - $k[$j++] = 0; //#16015 - } //#16015 - var _m = $a(); //#16015 - $k[$j++] = 'ren'; //#16017 - $k[$j++] = bwipp_renlinear; //#16017 - $k[$j++] = 'sbs'; //#16017 - $k[$j++] = _d; //#16017 - $k[$j++] = 'bhs'; //#16017 - $k[$j++] = _i; //#16017 - $k[$j++] = 'bbs'; //#16017 - $k[$j++] = _m; //#16017 - $k[$j++] = 'txt'; //#16017 - $k[$j++] = $_.txt; //#16017 - $k[$j++] = 'opt'; //#16017 - $k[$j++] = $_.options; //#16017 - var _p = $d(); //#16017 - $k[$j++] = _p; //#16020 - if (!$_.dontdraw) { //#16020 - bwipp_renlinear(); //#16020 - } //#16020 - $_ = Object.getPrototypeOf($_); //#16022 - $_ = Object.getPrototypeOf($_); //#16024 -} - + $_ = Object.create($_); //#16169 + $_.dontdraw = false; //#16172 + $_.includetext = false; //#16173 + $_.textfont = "OCR-B"; //#16174 + $_.textsize = 10; //#16175 + $_.textyoffset = -8; //#16176 + $_.height = 0.3; //#16177 + $k[$j++] = $_; //#16179 + bwipp_processoptions(); //#16179 + $_.options = $k[--$j]; //#16179 + $_.barcode = $k[--$j]; //#16180 + bwipp_loadctx(bwipp_flattermarken) //#16182 + $forall($_.barcode, function() { //#16189 + var _3 = $k[--$j]; //#16186 + if ((_3 < 48) || (_3 > 57)) { //#16188 + $k[$j++] = 'bwipp.flattermarkenBadCharacter#16187'; //#16187 + $k[$j++] = "Flattermarken must contain only digits"; //#16187 + bwipp_raiseerror(); //#16187 + } //#16187 + }); //#16187 + if (!bwipp_flattermarken.__16200__) { //#16200 + $_ = Object.create($_); //#16200 + $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#16196 + $_.barchars = "1234567890"; //#16199 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#16199 + bwipp_flattermarken.__16200__ = 1; //#16199 + $_ = Object.getPrototypeOf($_); //#16199 + } //#16199 + $_.barlen = $_.barcode.length; //#16202 + $_.sbs = $s($_.barlen * 4); //#16204 + $_.txt = $a($_.barlen); //#16205 + for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16217 + $_.i = _D; //#16208 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16210 + $j--; //#16211 + $_.indx = $k[--$j].length; //#16212 + $j -= 2; //#16213 + $_.enc = $get($_.encs, $_.indx); //#16214 + $puti($_.sbs, $_.i * 4, $_.enc); //#16215 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16216 + } //#16216 + $k[$j++] = Infinity; //#16220 + $k[$j++] = Infinity; //#16222 + var _Z = $_.sbs; //#16222 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16222 + $k[$j++] = $get(_Z, _a) - 48; //#16222 + } //#16222 + var _d = $a(); //#16222 + $k[$j++] = Infinity; //#16223 + for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16223 + $k[$j++] = $_.height; //#16223 + } //#16223 + var _i = $a(); //#16223 + $k[$j++] = Infinity; //#16224 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16224 + $k[$j++] = 0; //#16224 + } //#16224 + var _m = $a(); //#16224 + $k[$j++] = 'ren'; //#16226 + $k[$j++] = bwipp_renlinear; //#16226 + $k[$j++] = 'sbs'; //#16226 + $k[$j++] = _d; //#16226 + $k[$j++] = 'bhs'; //#16226 + $k[$j++] = _i; //#16226 + $k[$j++] = 'bbs'; //#16226 + $k[$j++] = _m; //#16226 + $k[$j++] = 'txt'; //#16226 + $k[$j++] = $_.txt; //#16226 + $k[$j++] = 'opt'; //#16226 + $k[$j++] = $_.options; //#16226 + var _p = $d(); //#16226 + $k[$j++] = _p; //#16229 + if (!$_.dontdraw) { //#16229 + bwipp_renlinear(); //#16229 + } //#16229 + $_ = Object.getPrototypeOf($_); //#16231 + $_ = Object.getPrototypeOf($_); //#16233 +} //bwipp_flattermarken function bwipp_raw() { - $_ = Object.create($_); //#16052 - $_.dontdraw = false; //#16055 - $_.height = 1; //#16056 - $k[$j++] = $_; //#16058 - bwipp_processoptions(); //#16058 - $_.options = $k[--$j]; //#16058 - $_.barcode = $k[--$j]; //#16059 - $forall($_.barcode, function() { //#16066 - var _3 = $k[--$j]; //#16063 - if ((_3 < 49) || (_3 > 57)) { //#16065 - $k[$j++] = 'bwipp.rawBadCharacter#16064'; //#16064 - $k[$j++] = "Raw must contain only digits 1 to 9"; //#16064 - bwipp_raiseerror(); //#16064 - } //#16064 - }); //#16064 - $k[$j++] = Infinity; //#16074 - $k[$j++] = Infinity; //#16071 - $forall($_.barcode, function() { //#16071 - var _5 = $k[--$j]; //#16071 - $k[$j++] = $f(_5 - 48); //#16071 - }); //#16071 - var _6 = $a(); //#16071 - $k[$j++] = Infinity; //#16072 - for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16072 - $k[$j++] = $_.height; //#16072 - } //#16072 - var _B = $a(); //#16072 - $k[$j++] = Infinity; //#16073 - for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16073 - $k[$j++] = 0; //#16073 - } //#16073 - var _F = $a(); //#16073 - $k[$j++] = 'ren'; //#16074 - $k[$j++] = bwipp_renlinear; //#16074 - $k[$j++] = 'sbs'; //#16074 - $k[$j++] = _6; //#16074 - $k[$j++] = 'bhs'; //#16074 - $k[$j++] = _B; //#16074 - $k[$j++] = 'bbs'; //#16074 - $k[$j++] = _F; //#16074 - $k[$j++] = 'opt'; //#16074 - $k[$j++] = $_.options; //#16074 - var _H = $d(); //#16074 - $k[$j++] = _H; //#16077 - if (!$_.dontdraw) { //#16077 - bwipp_renlinear(); //#16077 - } //#16077 - $_ = Object.getPrototypeOf($_); //#16079 -} - + $_ = Object.create($_); //#16261 + $_.dontdraw = false; //#16264 + $_.height = 1; //#16265 + $k[$j++] = $_; //#16267 + bwipp_processoptions(); //#16267 + $_.options = $k[--$j]; //#16267 + $_.barcode = $k[--$j]; //#16268 + $forall($_.barcode, function() { //#16275 + var _3 = $k[--$j]; //#16272 + if ((_3 < 49) || (_3 > 57)) { //#16274 + $k[$j++] = 'bwipp.rawBadCharacter#16273'; //#16273 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#16273 + bwipp_raiseerror(); //#16273 + } //#16273 + }); //#16273 + $k[$j++] = Infinity; //#16278 + $k[$j++] = Infinity; //#16280 + $forall($_.barcode, function() { //#16280 + var _5 = $k[--$j]; //#16280 + $k[$j++] = $f(_5 - 48); //#16280 + }); //#16280 + var _6 = $a(); //#16280 + $k[$j++] = Infinity; //#16281 + for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16281 + $k[$j++] = $_.height; //#16281 + } //#16281 + var _B = $a(); //#16281 + $k[$j++] = Infinity; //#16282 + for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16282 + $k[$j++] = 0; //#16282 + } //#16282 + var _F = $a(); //#16282 + $k[$j++] = 'ren'; //#16283 + $k[$j++] = bwipp_renlinear; //#16283 + $k[$j++] = 'sbs'; //#16283 + $k[$j++] = _6; //#16283 + $k[$j++] = 'bhs'; //#16283 + $k[$j++] = _B; //#16283 + $k[$j++] = 'bbs'; //#16283 + $k[$j++] = _F; //#16283 + $k[$j++] = 'opt'; //#16283 + $k[$j++] = $_.options; //#16283 + var _H = $d(); //#16283 + $k[$j++] = _H; //#16286 + if (!$_.dontdraw) { //#16286 + bwipp_renlinear(); //#16286 + } //#16286 + $_ = Object.getPrototypeOf($_); //#16288 +} //bwipp_raw function bwipp_daft() { - $_ = Object.create($_); //#16107 - $_.dontdraw = false; //#16110 - $_.height = 0.175; //#16111 - $k[$j++] = $_; //#16113 - bwipp_processoptions(); //#16113 - $_.options = $k[--$j]; //#16113 - $_.barcode = $k[--$j]; //#16114 - $forall($_.barcode, function() { //#16120 - var _3 = $k[--$j]; //#16117 - if ((_3 != 68) && ((_3 != 65) && ((_3 != 70) && (_3 != 84)))) { //#16119 - $k[$j++] = 'bwipp.daftBadCharacter#16118'; //#16118 - $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16118 - bwipp_raiseerror(); //#16118 - } //#16118 - }); //#16118 - $_.barlen = $_.barcode.length; //#16122 - $_.bbs = $a($_.barlen); //#16124 - $_.bhs = $a($_.barlen); //#16125 - for (var _B = 0, _A = $_.barlen - 1; _B <= _A; _B += 1) { //#16145 - $_.i = _B; //#16127 - $_.enc = $geti($_.barcode, $_.i, 1); //#16128 - if ($eq($_.enc, "D")) { //#16132 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16130 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16131 - } //#16131 - if ($eq($_.enc, "A")) { //#16136 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16134 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16135 - } //#16135 - if ($eq($_.enc, "F")) { //#16140 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16138 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16139 - } //#16139 - if ($eq($_.enc, "T")) { //#16144 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16142 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16143 - } //#16143 - } //#16143 - $k[$j++] = Infinity; //#16153 - var _h = $_.bbs; //#16150 - var _i = $_.bhs; //#16151 - $k[$j++] = Infinity; //#16152 - for (var _k = 0, _l = $_.bhs.length - 1; _k < _l; _k++) { //#16152 - $k[$j++] = 1.44; //#16152 - $k[$j++] = 1.872; //#16152 - } //#16152 - $k[$j++] = 1.44; //#16152 - var _m = $a(); //#16152 - $k[$j++] = 'ren'; //#16153 - $k[$j++] = bwipp_renlinear; //#16153 - $k[$j++] = 'bbs'; //#16153 - $k[$j++] = _h; //#16153 - $k[$j++] = 'bhs'; //#16153 - $k[$j++] = _i; //#16153 - $k[$j++] = 'sbs'; //#16153 - $k[$j++] = _m; //#16153 - $k[$j++] = 'opt'; //#16153 - $k[$j++] = $_.options; //#16153 - var _o = $d(); //#16153 - $k[$j++] = _o; //#16156 - if (!$_.dontdraw) { //#16156 - bwipp_renlinear(); //#16156 - } //#16156 - $_ = Object.getPrototypeOf($_); //#16158 -} - + $_ = Object.create($_); //#16316 + $_.dontdraw = false; //#16319 + $_.height = 0.175; //#16320 + $k[$j++] = $_; //#16322 + bwipp_processoptions(); //#16322 + $_.options = $k[--$j]; //#16322 + $_.barcode = $k[--$j]; //#16323 + if ($eq($_.barcode, "")) { //#16327 + $k[$j++] = 'bwipp.daftEmptyData#16326'; //#16326 + $k[$j++] = "The data must not be empty"; //#16326 + bwipp_raiseerror(); //#16326 + } //#16326 + $forall($_.barcode, function() { //#16333 + var _4 = $k[--$j]; //#16330 + if ((_4 != 68) && ((_4 != 65) && ((_4 != 70) && (_4 != 84)))) { //#16332 + $k[$j++] = 'bwipp.daftBadCharacter#16331'; //#16331 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16331 + bwipp_raiseerror(); //#16331 + } //#16331 + }); //#16331 + $_.barlen = $_.barcode.length; //#16335 + $_.bbs = $a($_.barlen); //#16337 + $_.bhs = $a($_.barlen); //#16338 + for (var _C = 0, _B = $_.barlen - 1; _C <= _B; _C += 1) { //#16358 + $_.i = _C; //#16340 + $_.enc = $geti($_.barcode, $_.i, 1); //#16341 + if ($eq($_.enc, "D")) { //#16345 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16343 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16344 + } //#16344 + if ($eq($_.enc, "A")) { //#16349 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16347 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16348 + } //#16348 + if ($eq($_.enc, "F")) { //#16353 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16351 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16352 + } //#16352 + if ($eq($_.enc, "T")) { //#16357 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16355 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16356 + } //#16356 + } //#16356 + $k[$j++] = Infinity; //#16361 + var _i = $_.bbs; //#16363 + var _j = $_.bhs; //#16364 + $k[$j++] = Infinity; //#16365 + for (var _l = 0, _m = $_.bhs.length - 1; _l < _m; _l++) { //#16365 + $k[$j++] = 1.44; //#16365 + $k[$j++] = 1.872; //#16365 + } //#16365 + $k[$j++] = 1.44; //#16365 + var _n = $a(); //#16365 + $k[$j++] = 'ren'; //#16366 + $k[$j++] = bwipp_renlinear; //#16366 + $k[$j++] = 'bbs'; //#16366 + $k[$j++] = _i; //#16366 + $k[$j++] = 'bhs'; //#16366 + $k[$j++] = _j; //#16366 + $k[$j++] = 'sbs'; //#16366 + $k[$j++] = _n; //#16366 + $k[$j++] = 'opt'; //#16366 + $k[$j++] = $_.options; //#16366 + var _p = $d(); //#16366 + $k[$j++] = _p; //#16369 + if (!$_.dontdraw) { //#16369 + bwipp_renlinear(); //#16369 + } //#16369 + $_ = Object.getPrototypeOf($_); //#16371 +} //bwipp_daft function bwipp_symbol() { - $_ = Object.create($_); //#16186 - $_.dontdraw = false; //#16189 - $k[$j++] = $_; //#16191 - bwipp_processoptions(); //#16191 - $_.options = $k[--$j]; //#16191 - $_.barcode = $k[--$j]; //#16192 + $_ = Object.create($_); //#16399 + $_.dontdraw = false; //#16402 + $k[$j++] = $_; //#16404 + bwipp_processoptions(); //#16404 + $_.options = $k[--$j]; //#16404 + $_.barcode = $k[--$j]; //#16405 var _H = new Map([ ["fima", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16196 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16197 - $_.bbs = $a([0, 0, 0, 0, 0]); //#16198 + $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16409 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16410 + $_.bbs = $a([0, 0, 0, 0, 0]); //#16411 }], ["fimb", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16201 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16202 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16203 + $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16414 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16415 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16416 }], ["fimc", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16206 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16207 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16208 + $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16419 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16420 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16421 }], ["fimd", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16211 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16212 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16213 + $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16424 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16425 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16426 }], ["fime", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16216 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16217 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16218 + $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16429 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16430 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16431 }] - ]); //#16218 - $_.symbols = _H; //#16220 - var _K = $get($_.symbols, $_.barcode) !== undefined; //#16223 - if (!_K) { //#16225 - $k[$j++] = 'bwipp.symbolUnknownSymbol#16224'; //#16224 - $k[$j++] = "Unknown symbol name provided"; //#16224 - bwipp_raiseerror(); //#16224 - } //#16224 + ]); //#16431 + $_.symbols = _H; //#16433 + var _K = $get($_.symbols, $_.barcode) !== undefined; //#16436 + if (!_K) { //#16438 + $k[$j++] = 'bwipp.symbolUnknownSymbol#16437'; //#16437 + $k[$j++] = "Unknown symbol name provided"; //#16437 + bwipp_raiseerror(); //#16437 + } //#16437 if ($get($_.symbols, $_.barcode)() === true) { return true; - } //#16227 + } //#16440 var _S = new Map([ ["ren", bwipp_renlinear], ["sbs", $_.sbs], ["bhs", $_.bhs], ["bbs", $_.bbs], ["opt", $_.options] - ]); //#16235 - $k[$j++] = _S; //#16238 - if (!$_.dontdraw) { //#16238 - bwipp_renlinear(); //#16238 - } //#16238 - $_ = Object.getPrototypeOf($_); //#16240 -} - + ]); //#16448 + $k[$j++] = _S; //#16451 + if (!$_.dontdraw) { //#16451 + bwipp_renlinear(); //#16451 + } //#16451 + $_ = Object.getPrototypeOf($_); //#16453 +} //bwipp_symbol function bwipp_pdf417() { - $_ = Object.create($_); //#16271 - $_.dontdraw = false; //#16274 - $_.compact = false; //#16275 - $_.eclevel = -1; //#16276 - $_.columns = 0; //#16277 - $_.rows = 0; //#16278 - $_.rowmult = 3; //#16279 - $_.ccc = false; //#16280 - $_.raw = false; //#16281 - $_.parse = false; //#16282 - $_.parsefnc = false; //#16283 - $k[$j++] = $_; //#16285 - bwipp_processoptions(); //#16285 - $_.options = $k[--$j]; //#16285 - $_.barcode = $k[--$j]; //#16286 - if ($eq($_.barcode, "")) { //#16290 - $k[$j++] = 'bwipp.pdf417emptyData#16289'; //#16289 - $k[$j++] = "The data must not be empty"; //#16289 - bwipp_raiseerror(); //#16289 - } //#16289 - if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16294 - $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16293'; //#16293 - $k[$j++] = "Valid error correction levels are 0 to 8"; //#16293 - bwipp_raiseerror(); //#16293 - } //#16293 - if ($_.ccc && $_.raw) { //#16298 - $k[$j++] = 'bwipp.pdf417cccAndRaw#16297'; //#16297 - $k[$j++] = "Cannot combine ccc and raw"; //#16297 - bwipp_raiseerror(); //#16297 - } //#16297 - if ($_.ccc && $_.compact) { //#16302 - $k[$j++] = 'bwipp.pdf417cccAndCompact#16301'; //#16301 - $k[$j++] = "Cannot combine ccc and compact"; //#16301 - bwipp_raiseerror(); //#16301 - } //#16301 - if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16306 - $k[$j++] = 'bwipp.pdf417invalidRows#16305'; //#16305 - $k[$j++] = "There must be between 3 and 90 rows"; //#16305 - bwipp_raiseerror(); //#16305 - } //#16305 - if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16310 - $k[$j++] = 'bwipp.pdf417invalidColumns#16309'; //#16309 - $k[$j++] = "There must be between 1 and 30 columns"; //#16309 - bwipp_raiseerror(); //#16309 - } //#16309 - if ($_.rowmult <= 0) { //#16314 - $k[$j++] = 'bwipp.pdf417badRowMult#16313'; //#16313 - $k[$j++] = "The row multiplier must be greater than zero"; //#16313 - bwipp_raiseerror(); //#16313 - } //#16313 - bwipp_loadctx(bwipp_pdf417) //#16316 - if (!bwipp_pdf417.__16407__) { //#16407 - $_ = Object.create($_); //#16407 - $_.T = 0; //#16320 - $_.N = 1; //#16320 - $_.B = 2; //#16320 - $_.A = 0; //#16321 - $_.L = 1; //#16321 - $_.M = 2; //#16321 - $_.P = 3; //#16321 - $_.tl = -1; //#16324 - $_.nl = -2; //#16324 - $_.bl = -3; //#16324 - $_.bl6 = -4; //#16324 - $_.bs = -5; //#16324 - $_.al = -6; //#16327 - $_.ll = -7; //#16327 - $_.ml = -8; //#16327 - $_.pl = -9; //#16327 - $_.as = -10; //#16327 - $_.ps = -11; //#16327 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16362 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16365 - $_.alltext = new Map; //#16366 - for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16376 - $_.i = _10; //#16368 - $_.encs = $get($_.charmaps, $_.i); //#16369 - for (var _14 = 0; _14 <= 3; _14 += 1) { //#16375 - $_.j = _14; //#16371 - var _17 = $get($_.encs, $_.j); //#16372 - $k[$j++] = _17; //#16372 - if ($eq($type(_17), 'stringtype')) { //#16372 - var _1A = $get($k[--$j], 0); //#16372 - $k[$j++] = _1A; //#16372 - } //#16372 - var _1B = $k[--$j]; //#16373 - $put($get($_.charvals, $_.j), _1B, $_.i); //#16373 - $put($_.alltext, _1B, -1); //#16374 - } //#16374 - } //#16374 - $_.e = 10000; //#16378 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16386 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16394 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16402 - $k[$j++] = Infinity; //#16405 - $k[$j++] = $_.tl; //#16405 - $k[$j++] = 900; //#16405 - $k[$j++] = $_.bl; //#16405 - $k[$j++] = 901; //#16405 - $k[$j++] = $_.bl6; //#16405 - $k[$j++] = 924; //#16405 - $k[$j++] = $_.nl; //#16405 - $k[$j++] = 902; //#16405 - $k[$j++] = $_.bs; //#16405 - $k[$j++] = 913; //#16405 - $_.latchcws = $d(); //#16406 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16406 - bwipp_pdf417.__16407__ = 1; //#16406 - $_ = Object.getPrototypeOf($_); //#16406 - } //#16406 - if ($_.raw) { //#16428 - $_.datcws = $a($_.barcode.length); //#16411 - $_.i = 0; //#16412 - $_.j = 0; //#16412 - for (;;) { //#16423 - if ($_.i >= ($_.barcode.length - 3)) { //#16414 - break; //#16414 - } //#16414 - if ($get($_.barcode, $_.i) != 94) { //#16415 - break; //#16415 - } //#16415 - var _2W = $geti($_.barcode, $_.i + 1, 3); //#16416 - $k[$j++] = _2W; //#16418 - $k[$j++] = false; //#16418 - for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16418 - var _2Z = $get(_2W, _2X); //#16418 - if ((_2Z < 48) || (_2Z > 57)) { //#16417 - $j--; //#16417 - $k[$j++] = true; //#16417 - } //#16417 - } //#16417 - if ($k[--$j]) { //#16418 - $j--; //#16418 - break; //#16418 - } //#16418 - $_.cw = $cvi($k[--$j]); //#16419 - $put($_.datcws, $_.j, $_.cw); //#16420 - $_.i = $_.i + 4; //#16421 - $_.j = $_.j + 1; //#16422 - } //#16422 - if ($_.i != $_.barcode.length) { //#16426 - $k[$j++] = 'bwipp.pdf417badRawFormat#16425'; //#16425 - $k[$j++] = "raw data must be formatted as ^NNN"; //#16425 - bwipp_raiseerror(); //#16425 - } //#16425 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16427 - } //#16427 + $_ = Object.create($_); //#16484 + $_.dontdraw = false; //#16487 + $_.compact = false; //#16488 + $_.eclevel = -1; //#16489 + $_.columns = 0; //#16490 + $_.rows = 0; //#16491 + $_.rowmult = 3; //#16492 + $_.ccc = false; //#16493 + $_.raw = false; //#16494 + $_.parse = false; //#16495 + $_.parsefnc = false; //#16496 + $k[$j++] = $_; //#16498 + bwipp_processoptions(); //#16498 + $_.options = $k[--$j]; //#16498 + $_.barcode = $k[--$j]; //#16499 + if ($eq($_.barcode, "")) { //#16503 + $k[$j++] = 'bwipp.pdf417emptyData#16502'; //#16502 + $k[$j++] = "The data must not be empty"; //#16502 + bwipp_raiseerror(); //#16502 + } //#16502 + if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16507 + $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16506'; //#16506 + $k[$j++] = "Valid error correction levels are 0 to 8"; //#16506 + bwipp_raiseerror(); //#16506 + } //#16506 + if ($_.ccc && $_.raw) { //#16511 + $k[$j++] = 'bwipp.pdf417cccAndRaw#16510'; //#16510 + $k[$j++] = "Cannot combine ccc and raw"; //#16510 + bwipp_raiseerror(); //#16510 + } //#16510 + if ($_.ccc && $_.compact) { //#16515 + $k[$j++] = 'bwipp.pdf417cccAndCompact#16514'; //#16514 + $k[$j++] = "Cannot combine ccc and compact"; //#16514 + bwipp_raiseerror(); //#16514 + } //#16514 + if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16519 + $k[$j++] = 'bwipp.pdf417invalidRows#16518'; //#16518 + $k[$j++] = "There must be between 3 and 90 rows"; //#16518 + bwipp_raiseerror(); //#16518 + } //#16518 + if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16523 + $k[$j++] = 'bwipp.pdf417invalidColumns#16522'; //#16522 + $k[$j++] = "There must be between 1 and 30 columns"; //#16522 + bwipp_raiseerror(); //#16522 + } //#16522 + if ($_.rowmult <= 0) { //#16527 + $k[$j++] = 'bwipp.pdf417badRowMult#16526'; //#16526 + $k[$j++] = "The row multiplier must be greater than zero"; //#16526 + bwipp_raiseerror(); //#16526 + } //#16526 + bwipp_loadctx(bwipp_pdf417) //#16529 + if (!bwipp_pdf417.__16620__) { //#16620 + $_ = Object.create($_); //#16620 + $_.T = 0; //#16533 + $_.N = 1; //#16533 + $_.B = 2; //#16533 + $_.A = 0; //#16534 + $_.L = 1; //#16534 + $_.M = 2; //#16534 + $_.P = 3; //#16534 + $_.tl = -1; //#16537 + $_.nl = -2; //#16537 + $_.bl = -3; //#16537 + $_.bl6 = -4; //#16537 + $_.bs = -5; //#16537 + $_.al = -6; //#16540 + $_.ll = -7; //#16540 + $_.ml = -8; //#16540 + $_.pl = -9; //#16540 + $_.as = -10; //#16540 + $_.ps = -11; //#16540 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16575 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16578 + $_.alltext = new Map; //#16579 + for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16589 + $_.i = _10; //#16581 + $_.encs = $get($_.charmaps, $_.i); //#16582 + for (var _14 = 0; _14 <= 3; _14 += 1) { //#16588 + $_.j = _14; //#16584 + var _17 = $get($_.encs, $_.j); //#16585 + $k[$j++] = _17; //#16585 + if ($eq($type(_17), 'stringtype')) { //#16585 + var _1A = $get($k[--$j], 0); //#16585 + $k[$j++] = _1A; //#16585 + } //#16585 + var _1B = $k[--$j]; //#16586 + $put($get($_.charvals, $_.j), _1B, $_.i); //#16586 + $put($_.alltext, _1B, -1); //#16587 + } //#16587 + } //#16587 + $_.e = 10000; //#16591 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16599 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16607 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16615 + $k[$j++] = Infinity; //#16617 + $k[$j++] = $_.tl; //#16618 + $k[$j++] = 900; //#16618 + $k[$j++] = $_.bl; //#16618 + $k[$j++] = 901; //#16618 + $k[$j++] = $_.bl6; //#16618 + $k[$j++] = 924; //#16618 + $k[$j++] = $_.nl; //#16618 + $k[$j++] = 902; //#16618 + $k[$j++] = $_.bs; //#16618 + $k[$j++] = 913; //#16618 + $_.latchcws = $d(); //#16619 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16619 + bwipp_pdf417.__16620__ = 1; //#16619 + $_ = Object.getPrototypeOf($_); //#16619 + } //#16619 + if ($_.raw) { //#16641 + $_.datcws = $a($_.barcode.length); //#16624 + $_.i = 0; //#16625 + $_.j = 0; //#16625 + for (;;) { //#16636 + if ($_.i >= ($_.barcode.length - 3)) { //#16627 + break; //#16627 + } //#16627 + if ($get($_.barcode, $_.i) != 94) { //#16628 + break; //#16628 + } //#16628 + var _2W = $geti($_.barcode, $_.i + 1, 3); //#16629 + $k[$j++] = _2W; //#16631 + $k[$j++] = false; //#16631 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16631 + var _2Z = $get(_2W, _2X); //#16631 + if ((_2Z < 48) || (_2Z > 57)) { //#16630 + $j--; //#16630 + $k[$j++] = true; //#16630 + } //#16630 + } //#16630 + if ($k[--$j]) { //#16631 + $j--; //#16631 + break; //#16631 + } //#16631 + $_.cw = $cvi($k[--$j]); //#16632 + $put($_.datcws, $_.j, $_.cw); //#16633 + $_.i = $_.i + 4; //#16634 + $_.j = $_.j + 1; //#16635 + } //#16635 + if ($_.i != $_.barcode.length) { //#16639 + $k[$j++] = 'bwipp.pdf417badRawFormat#16638'; //#16638 + $k[$j++] = "raw data must be formatted as ^NNN"; //#16638 + bwipp_raiseerror(); //#16638 + } //#16638 + $_.datcws = $geti($_.datcws, 0, $_.j); //#16640 + } //#16640 $_.encb = function() { - $_.in = $k[--$j]; //#16431 - $_.inlen = $_.in.length; //#16432 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16433 - for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16456 - $_.k = _2t; //#16435 - $k[$j++] = Infinity; //#16436 - $aload($geti($_.in, $_.k * 6, 3)); //#16436 - $_.msbs = $a(); //#16436 - $k[$j++] = Infinity; //#16439 - $aload($_.msbs); //#16438 - var _2z = $k[--$j]; //#16438 - var _30 = $k[--$j]; //#16438 - var _31 = $k[--$j]; //#16438 - $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16439 - for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16439 - var _34 = $k[--$j]; //#16439 - $k[$j++] = _34 % 900; //#16439 - $k[$j++] = ~~(_34 / 900); //#16439 - } //#16439 - $_.mscs = $a(); //#16439 - $k[$j++] = Infinity; //#16441 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16441 - $_.lsbs = $a(); //#16441 - $k[$j++] = Infinity; //#16444 - $aload($_.lsbs); //#16443 - var _3B = $k[--$j]; //#16443 - var _3C = $k[--$j]; //#16443 - var _3D = $k[--$j]; //#16443 - $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16444 - for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16444 - var _3G = $k[--$j]; //#16444 - $k[$j++] = _3G % 900; //#16444 - $k[$j++] = ~~(_3G / 900); //#16444 - } //#16444 - $_.lscs = $a(); //#16444 - var _3J = $get($_.lscs, 0); //#16446 - var _3L = $get($_.mscs, 0); //#16446 - $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16447 - var _3P = $get($_.lscs, 1); //#16448 - var _3R = $get($_.mscs, 0); //#16448 - var _3T = $get($_.mscs, 1); //#16448 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16449 - var _3X = $get($_.lscs, 2); //#16450 - var _3Z = $get($_.mscs, 0); //#16450 - var _3b = $get($_.mscs, 1); //#16450 - var _3d = $get($_.mscs, 2); //#16450 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16451 - var _3h = $get($_.lscs, 3); //#16452 - var _3j = $get($_.mscs, 1); //#16452 - var _3l = $get($_.mscs, 2); //#16452 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16453 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16455 - } //#16455 - $_.rem = $_.inlen % 6; //#16457 - if ($_.rem != 0) { //#16462 - $k[$j++] = $_.out; //#16460 - $k[$j++] = $_.out.length - $_.rem; //#16460 - $k[$j++] = Infinity; //#16460 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16460 - var _42 = $a(); //#16460 - var _43 = $k[--$j]; //#16461 - $puti($k[--$j], _43, _42); //#16461 - } //#16461 - $k[$j++] = $_.out; //#16463 - }; //#16463 - if ($_.ccc) { //#16472 - $_.barlen = $_.barcode.length; //#16467 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16468 - $put($_.datcws, 0, 920); //#16469 - var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16470 - $put($_.datcws, 1, _4E); //#16470 - $k[$j++] = $_.datcws; //#16471 - $k[$j++] = 2; //#16471 - $k[$j++] = Infinity; //#16471 - $forall($_.barcode); //#16471 - var _4H = $a(); //#16471 - $k[$j++] = _4H; //#16471 - $_.encb(); //#16471 - var _4I = $k[--$j]; //#16471 - var _4J = $k[--$j]; //#16471 - $puti($k[--$j], _4J, _4I); //#16471 - } //#16471 - if ((!$_.raw) && (!$_.ccc)) { //#16823 + $_.in = $k[--$j]; //#16644 + $_.inlen = $_.in.length; //#16645 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16646 + for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16669 + $_.k = _2t; //#16648 + $k[$j++] = Infinity; //#16649 + $aload($geti($_.in, $_.k * 6, 3)); //#16649 + $_.msbs = $a(); //#16649 + $k[$j++] = Infinity; //#16650 + $aload($_.msbs); //#16651 + var _2z = $k[--$j]; //#16651 + var _30 = $k[--$j]; //#16651 + var _31 = $k[--$j]; //#16651 + $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16652 + for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16652 + var _34 = $k[--$j]; //#16652 + $k[$j++] = _34 % 900; //#16652 + $k[$j++] = ~~(_34 / 900); //#16652 + } //#16652 + $_.mscs = $a(); //#16652 + $k[$j++] = Infinity; //#16654 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16654 + $_.lsbs = $a(); //#16654 + $k[$j++] = Infinity; //#16655 + $aload($_.lsbs); //#16656 + var _3B = $k[--$j]; //#16656 + var _3C = $k[--$j]; //#16656 + var _3D = $k[--$j]; //#16656 + $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16657 + for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16657 + var _3G = $k[--$j]; //#16657 + $k[$j++] = _3G % 900; //#16657 + $k[$j++] = ~~(_3G / 900); //#16657 + } //#16657 + $_.lscs = $a(); //#16657 + var _3J = $get($_.lscs, 0); //#16659 + var _3L = $get($_.mscs, 0); //#16659 + $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16660 + var _3P = $get($_.lscs, 1); //#16661 + var _3R = $get($_.mscs, 0); //#16661 + var _3T = $get($_.mscs, 1); //#16661 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16662 + var _3X = $get($_.lscs, 2); //#16663 + var _3Z = $get($_.mscs, 0); //#16663 + var _3b = $get($_.mscs, 1); //#16663 + var _3d = $get($_.mscs, 2); //#16663 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16664 + var _3h = $get($_.lscs, 3); //#16665 + var _3j = $get($_.mscs, 1); //#16665 + var _3l = $get($_.mscs, 2); //#16665 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16666 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16668 + } //#16668 + $_.rem = $_.inlen % 6; //#16670 + if ($_.rem != 0) { //#16675 + $k[$j++] = $_.out; //#16673 + $k[$j++] = $_.out.length - $_.rem; //#16673 + $k[$j++] = Infinity; //#16673 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16673 + var _42 = $a(); //#16673 + var _43 = $k[--$j]; //#16674 + $puti($k[--$j], _43, _42); //#16674 + } //#16674 + $k[$j++] = $_.out; //#16676 + }; //#16676 + if ($_.ccc) { //#16685 + $_.barlen = $_.barcode.length; //#16680 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16681 + $put($_.datcws, 0, 920); //#16682 + var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16683 + $put($_.datcws, 1, _4E); //#16683 + $k[$j++] = $_.datcws; //#16684 + $k[$j++] = 2; //#16684 + $k[$j++] = Infinity; //#16684 + $forall($_.barcode); //#16684 + var _4H = $a(); //#16684 + $k[$j++] = _4H; //#16684 + $_.encb(); //#16684 + var _4I = $k[--$j]; //#16684 + var _4J = $k[--$j]; //#16684 + $puti($k[--$j], _4J, _4I); //#16684 + } //#16684 + if ((!$_.raw) && (!$_.ccc)) { //#17036 var _4P = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#16480 - $_.fncvals = _4P; //#16482 - $k[$j++] = 'msg'; //#16483 - $k[$j++] = $_.barcode; //#16483 - $k[$j++] = $_.fncvals; //#16483 - bwipp_parseinput(); //#16483 - var _4S = $k[--$j]; //#16483 - $_[$k[--$j]] = _4S; //#16483 - $_.msglen = $_.msg.length; //#16484 - $k[$j++] = Infinity; //#16487 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16487 - $k[$j++] = 0; //#16487 - } //#16487 - $k[$j++] = 0; //#16487 - $_.numdigits = $a(); //#16487 - $k[$j++] = Infinity; //#16488 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16488 - $k[$j++] = 0; //#16488 - } //#16488 - $k[$j++] = 0; //#16488 - $_.numtext = $a(); //#16488 - $k[$j++] = Infinity; //#16489 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16489 - $k[$j++] = 0; //#16489 - } //#16489 - $k[$j++] = 0; //#16489 - $_.numbytes = $a(); //#16489 - $k[$j++] = Infinity; //#16490 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16490 - $k[$j++] = 0; //#16490 - } //#16490 - $k[$j++] = 0; //#16490 - $_.iseci = $a(); //#16490 - for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16503 - $_.i = _4m; //#16492 - var _4p = $get($_.msg, $_.i); //#16493 - if ((_4p >= 48) && (_4p <= 57)) { //#16495 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16494 - } //#16494 - var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16496 - if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16498 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16497 - } //#16497 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16501 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16500 - } //#16500 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16502 - } //#16502 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16504 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16505 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16506 - $_.seq = $a([]); //#16508 - $_.seqlen = 0; //#16508 - $_.state = $_.T; //#16508 - $_.p = 0; //#16508 - for (;;) { //#16562 - if ($_.p == $_.msglen) { //#16509 - break; //#16509 - } //#16509 - if ($get($_.iseci, $_.p)) { //#16560 - $_.eci = $get($_.msg, $_.p); //#16511 - $k[$j++] = Infinity; //#16514 - $aload($_.seq); //#16513 - $k[$j++] = $a([$_.eci]); //#16514 - $_.seq = $a(); //#16514 - $_.p = $_.p + 1; //#16516 - $k[$j++] = 'seqlen'; //#16517 - $k[$j++] = $_.seqlen; //#16517 - if ($_.eci <= -1810900) { //#16517 - $k[$j++] = 2; //#16517 - } else { //#16517 - var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16517 - $k[$j++] = _5s; //#16517 - } //#16517 - var _5t = $k[--$j]; //#16517 - var _5u = $k[--$j]; //#16517 - $_[$k[--$j]] = $f(_5u + _5t); //#16517 - } else { //#16560 - $_.n = $get($_.numdigits, $_.p); //#16519 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16560 - $k[$j++] = Infinity; //#16524 - $aload($_.seq); //#16522 - $k[$j++] = $_.nl; //#16524 - $k[$j++] = Infinity; //#16524 - $aload($geti($_.msg, $_.p, $_.n)); //#16524 - var _69 = $a(); //#16524 - $k[$j++] = _69; //#16524 - $_.seq = $a(); //#16524 - $_.state = $_.N; //#16526 - $_.p = $f($_.p + $_.n); //#16527 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16528 - } else { //#16560 - $_.t = $get($_.numtext, $_.p); //#16530 - if ($_.t >= 5) { //#16560 - $k[$j++] = Infinity; //#16537 - $aload($_.seq); //#16533 - if ($_.state != $_.T) { //#16536 - $k[$j++] = $_.tl; //#16535 - } //#16535 - $k[$j++] = Infinity; //#16537 - $aload($geti($_.msg, $_.p, $_.t)); //#16537 - var _6S = $a(); //#16537 - $k[$j++] = _6S; //#16537 - $_.seq = $a(); //#16537 - $_.state = $_.T; //#16539 - $_.p = $f($_.p + $_.t); //#16540 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16541 - } else { //#16560 - $_.b = $get($_.numbytes, $_.p); //#16543 - if (($_.b == 1) && ($_.state == $_.T)) { //#16560 - $k[$j++] = Infinity; //#16548 - $aload($_.seq); //#16546 - $k[$j++] = $_.bs; //#16548 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#16548 - $_.seq = $a(); //#16548 - $_.p = $f($_.p + $_.b); //#16550 - $_.seqlen = $f($_.seqlen + 2); //#16551 - } else { //#16560 - $k[$j++] = Infinity; //#16556 - $aload($_.seq); //#16554 - var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16555 - $k[$j++] = _6r; //#16556 - $k[$j++] = Infinity; //#16556 - $aload($geti($_.msg, $_.p, $_.b)); //#16556 - var _6w = $a(); //#16556 - $k[$j++] = _6w; //#16556 - $_.seq = $a(); //#16556 - $_.state = $_.B; //#16558 - $_.p = $f($_.p + $_.b); //#16559 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 + ]); //#16693 + $_.fncvals = _4P; //#16695 + $k[$j++] = 'msg'; //#16696 + $k[$j++] = $_.barcode; //#16696 + $k[$j++] = $_.fncvals; //#16696 + bwipp_parseinput(); //#16696 + var _4S = $k[--$j]; //#16696 + $_[$k[--$j]] = _4S; //#16696 + $_.msglen = $_.msg.length; //#16697 + $k[$j++] = Infinity; //#16700 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16700 + $k[$j++] = 0; //#16700 + } //#16700 + $k[$j++] = 0; //#16700 + $_.numdigits = $a(); //#16700 + $k[$j++] = Infinity; //#16701 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16701 + $k[$j++] = 0; //#16701 + } //#16701 + $k[$j++] = 0; //#16701 + $_.numtext = $a(); //#16701 + $k[$j++] = Infinity; //#16702 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16702 + $k[$j++] = 0; //#16702 + } //#16702 + $k[$j++] = 0; //#16702 + $_.numbytes = $a(); //#16702 + $k[$j++] = Infinity; //#16703 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16703 + $k[$j++] = 0; //#16703 + } //#16703 + $k[$j++] = 0; //#16703 + $_.iseci = $a(); //#16703 + for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16716 + $_.i = _4m; //#16705 + var _4p = $get($_.msg, $_.i); //#16706 + if ((_4p >= 48) && (_4p <= 57)) { //#16708 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16707 + } //#16707 + var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16709 + if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16711 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16710 + } //#16710 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16714 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16713 + } //#16713 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16715 + } //#16715 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16717 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16718 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16719 + $_.seq = $a([]); //#16721 + $_.seqlen = 0; //#16721 + $_.state = $_.T; //#16721 + $_.p = 0; //#16721 + for (;;) { //#16775 + if ($_.p == $_.msglen) { //#16722 + break; //#16722 + } //#16722 + if ($get($_.iseci, $_.p)) { //#16773 + $_.eci = $get($_.msg, $_.p); //#16724 + $k[$j++] = Infinity; //#16725 + $aload($_.seq); //#16726 + $k[$j++] = $a([$_.eci]); //#16727 + $_.seq = $a(); //#16727 + $_.p = $_.p + 1; //#16729 + $k[$j++] = 'seqlen'; //#16730 + $k[$j++] = $_.seqlen; //#16730 + if ($_.eci <= -1810900) { //#16730 + $k[$j++] = 2; //#16730 + } else { //#16730 + var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16730 + $k[$j++] = _5s; //#16730 + } //#16730 + var _5t = $k[--$j]; //#16730 + var _5u = $k[--$j]; //#16730 + $_[$k[--$j]] = $f(_5u + _5t); //#16730 + } else { //#16773 + $_.n = $get($_.numdigits, $_.p); //#16732 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16773 + $k[$j++] = Infinity; //#16734 + $aload($_.seq); //#16735 + $k[$j++] = $_.nl; //#16737 + $k[$j++] = Infinity; //#16737 + $aload($geti($_.msg, $_.p, $_.n)); //#16737 + var _69 = $a(); //#16737 + $k[$j++] = _69; //#16737 + $_.seq = $a(); //#16737 + $_.state = $_.N; //#16739 + $_.p = $f($_.p + $_.n); //#16740 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16741 + } else { //#16773 + $_.t = $get($_.numtext, $_.p); //#16743 + if ($_.t >= 5) { //#16773 + $k[$j++] = Infinity; //#16745 + $aload($_.seq); //#16746 + if ($_.state != $_.T) { //#16749 + $k[$j++] = $_.tl; //#16748 + } //#16748 + $k[$j++] = Infinity; //#16750 + $aload($geti($_.msg, $_.p, $_.t)); //#16750 + var _6S = $a(); //#16750 + $k[$j++] = _6S; //#16750 + $_.seq = $a(); //#16750 + $_.state = $_.T; //#16752 + $_.p = $f($_.p + $_.t); //#16753 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16754 + } else { //#16773 + $_.b = $get($_.numbytes, $_.p); //#16756 + if (($_.b == 1) && ($_.state == $_.T)) { //#16773 + $k[$j++] = Infinity; //#16758 + $aload($_.seq); //#16759 + $k[$j++] = $_.bs; //#16761 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#16761 + $_.seq = $a(); //#16761 + $_.p = $f($_.p + $_.b); //#16763 + $_.seqlen = $f($_.seqlen + 2); //#16764 + } else { //#16773 + $k[$j++] = Infinity; //#16766 + $aload($_.seq); //#16767 + var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16768 + $k[$j++] = _6r; //#16769 + $k[$j++] = Infinity; //#16769 + $aload($geti($_.msg, $_.p, $_.b)); //#16769 + var _6w = $a(); //#16769 + $k[$j++] = _6w; //#16769 + $_.seq = $a(); //#16769 + $_.state = $_.B; //#16771 + $_.p = $f($_.p + $_.b); //#16772 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 $_.enca = function() { - var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16565 - $k[$j++] = _77; //#16565 - }; //#16565 + var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16778 + $k[$j++] = _77; //#16778 + }; //#16778 $_.encl = function() { - var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16566 - $k[$j++] = _7C; //#16566 - }; //#16566 + var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16779 + $k[$j++] = _7C; //#16779 + }; //#16779 $_.encm = function() { - var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16567 - $k[$j++] = _7H; //#16567 - }; //#16567 + var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16780 + $k[$j++] = _7H; //#16780 + }; //#16780 $_.encp = function() { - var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16568 - $k[$j++] = _7M; //#16568 - }; //#16568 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16569 + var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16781 + $k[$j++] = _7M; //#16781 + }; //#16781 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16782 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#16572 - $_.l = $_.l + 1; //#16573 - }; //#16573 + $put($_.text, $_.l, $k[--$j]); //#16785 + $_.l = $_.l + 1; //#16786 + }; //#16786 $_.enct = function() { - $_.in = $k[--$j]; //#16577 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16579 - $put($_.curlen, $_.submode, 0); //#16580 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16581 - $forall($_.in, function() { //#16651 - $_.char = $k[--$j]; //#16586 - for (;;) { //#16607 - $_.imp = false; //#16590 - var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16591 - for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16605 - $_.x = $get(_7l, _7m); //#16592 - var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16593 - for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16604 - $_.y = $get(_7t, _7u); //#16594 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16595 - if ($_.cost < $get($_.curlen, $_.y)) { //#16603 - $put($_.curlen, $_.y, $_.cost); //#16597 - $k[$j++] = $_.curseq; //#16600 - $k[$j++] = $_.y; //#16600 - $k[$j++] = Infinity; //#16600 - $aload($get($_.curseq, $_.x)); //#16599 - $aload($get($get($_.latseq, $_.x), $_.y)); //#16600 - var _8M = $a(); //#16600 - var _8N = $k[--$j]; //#16601 - $put($k[--$j], _8N, _8M); //#16601 - $_.imp = true; //#16602 - } //#16602 - } //#16602 - } //#16602 - if (!$_.imp) { //#16606 - break; //#16606 - } //#16606 - } //#16606 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16610 - $_.nxtseq = $a(4); //#16611 - var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16613 - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16646 - $_.x = $get(_8a, _8b); //#16614 - for (;;) { //#16644 - var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16618 - if (!_8i) { //#16618 - break; //#16618 - } //#16618 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#16621 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#16625 - $put($_.nxtlen, $_.x, $_.cost); //#16623 - $k[$j++] = $_.nxtseq; //#16624 - $k[$j++] = $_.x; //#16624 - $k[$j++] = Infinity; //#16624 - $aload($get($_.curseq, $_.x)); //#16624 - $k[$j++] = $_.char; //#16624 - var _8z = $a(); //#16624 - var _90 = $k[--$j]; //#16624 - $put($k[--$j], _90, _8z); //#16624 - } //#16624 - var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16628 - for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16641 - $_.y = $get(_96, _97); //#16629 - if ($ne($_.x, $_.y)) { //#16640 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16631 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#16639 - $put($_.nxtlen, $_.y, $_.cost); //#16633 - $k[$j++] = $_.nxtseq; //#16637 - $k[$j++] = $_.y; //#16637 - $k[$j++] = Infinity; //#16637 - $aload($get($_.curseq, $_.y)); //#16635 - var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16636 - $k[$j++] = _9Y; //#16637 - $k[$j++] = $_.char; //#16637 - var _9a = $a(); //#16637 - var _9b = $k[--$j]; //#16638 - $put($k[--$j], _9b, _9a); //#16638 - } //#16638 - } //#16638 - } //#16638 - break; //#16643 - } //#16643 - } //#16643 - $_.curlen = $_.nxtlen; //#16648 - $_.curseq = $_.nxtseq; //#16649 - }); //#16649 - $_.minseq = $_.e; //#16654 - var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16655 - for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16661 - $_.k = $get(_9k, _9l); //#16656 - if ($get($_.curlen, $_.k) < $_.minseq) { //#16660 - $_.minseq = $get($_.curlen, $_.k); //#16658 - $_.txtseq = $get($_.curseq, $_.k); //#16659 - } //#16659 - } //#16659 - $_.text = $a($_.minseq); //#16664 - $_.k = 0; //#16665 - $_.l = 0; //#16665 - for (;;) { //#16685 - if ($_.k >= $_.txtseq.length) { //#16666 - break; //#16666 - } //#16666 - $_.char = $get($_.txtseq, $_.k); //#16668 - $k[$j++] = $_.char; //#16671 + $_.in = $k[--$j]; //#16790 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16792 + $put($_.curlen, $_.submode, 0); //#16793 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16794 + $forall($_.in, function() { //#16864 + $_.char = $k[--$j]; //#16799 + for (;;) { //#16820 + $_.imp = false; //#16803 + var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16804 + for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16818 + $_.x = $get(_7l, _7m); //#16805 + var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16806 + for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16817 + $_.y = $get(_7t, _7u); //#16807 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16808 + if ($_.cost < $get($_.curlen, $_.y)) { //#16816 + $put($_.curlen, $_.y, $_.cost); //#16810 + $k[$j++] = $_.curseq; //#16813 + $k[$j++] = $_.y; //#16813 + $k[$j++] = Infinity; //#16811 + $aload($get($_.curseq, $_.x)); //#16812 + $aload($get($get($_.latseq, $_.x), $_.y)); //#16813 + var _8M = $a(); //#16813 + var _8N = $k[--$j]; //#16814 + $put($k[--$j], _8N, _8M); //#16814 + $_.imp = true; //#16815 + } //#16815 + } //#16815 + } //#16815 + if (!$_.imp) { //#16819 + break; //#16819 + } //#16819 + } //#16819 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16823 + $_.nxtseq = $a(4); //#16824 + var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16826 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16859 + $_.x = $get(_8a, _8b); //#16827 + for (;;) { //#16857 + var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16831 + if (!_8i) { //#16831 + break; //#16831 + } //#16831 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#16834 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#16838 + $put($_.nxtlen, $_.x, $_.cost); //#16836 + $k[$j++] = $_.nxtseq; //#16837 + $k[$j++] = $_.x; //#16837 + $k[$j++] = Infinity; //#16837 + $aload($get($_.curseq, $_.x)); //#16837 + $k[$j++] = $_.char; //#16837 + var _8z = $a(); //#16837 + var _90 = $k[--$j]; //#16837 + $put($k[--$j], _90, _8z); //#16837 + } //#16837 + var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16841 + for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16854 + $_.y = $get(_96, _97); //#16842 + if ($ne($_.x, $_.y)) { //#16853 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16844 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#16852 + $put($_.nxtlen, $_.y, $_.cost); //#16846 + $k[$j++] = $_.nxtseq; //#16850 + $k[$j++] = $_.y; //#16850 + $k[$j++] = Infinity; //#16847 + $aload($get($_.curseq, $_.y)); //#16848 + var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16849 + $k[$j++] = _9Y; //#16850 + $k[$j++] = $_.char; //#16850 + var _9a = $a(); //#16850 + var _9b = $k[--$j]; //#16851 + $put($k[--$j], _9b, _9a); //#16851 + } //#16851 + } //#16851 + } //#16851 + break; //#16856 + } //#16856 + } //#16856 + $_.curlen = $_.nxtlen; //#16861 + $_.curseq = $_.nxtseq; //#16862 + }); //#16862 + $_.minseq = $_.e; //#16867 + var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16868 + for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16874 + $_.k = $get(_9k, _9l); //#16869 + if ($get($_.curlen, $_.k) < $_.minseq) { //#16873 + $_.minseq = $get($_.curlen, $_.k); //#16871 + $_.txtseq = $get($_.curseq, $_.k); //#16872 + } //#16872 + } //#16872 + $_.text = $a($_.minseq); //#16877 + $_.k = 0; //#16878 + $_.l = 0; //#16878 + for (;;) { //#16898 + if ($_.k >= $_.txtseq.length) { //#16879 + break; //#16879 + } //#16879 + $_.char = $get($_.txtseq, $_.k); //#16881 + $k[$j++] = $_.char; //#16884 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#16671 - $_.addtotext(); //#16671 - $_.k = $_.k + 1; //#16672 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16678 - $k[$j++] = $get($_.txtseq, $_.k); //#16676 - if ($_.char == $_.as) { //#16676 - $_.enca(); //#16676 - } else { //#16676 - $_.encp(); //#16676 - } //#16676 - $_.addtotext(); //#16676 - $_.k = $_.k + 1; //#16677 - } //#16677 - if ($_.char == $_.al) { //#16681 - $_.submode = $_.A; //#16681 - } //#16681 - if ($_.char == $_.ll) { //#16682 - $_.submode = $_.L; //#16682 - } //#16682 - if ($_.char == $_.ml) { //#16683 - $_.submode = $_.M; //#16683 - } //#16683 - if ($_.char == $_.pl) { //#16684 - $_.submode = $_.P; //#16684 - } //#16684 - } //#16684 - if (($_.text.length % 2) == 1) { //#16732 - if ($_.submode == $_.P) { //#16728 - $k[$j++] = 'pad'; //#16689 - $k[$j++] = $_.al; //#16689 - $_.encp(); //#16689 - var _Ab = $k[--$j]; //#16689 - $_[$k[--$j]] = _Ab; //#16689 - $_.submode = $_.A; //#16690 - } else { //#16728 - $_.nextecitext = false; //#16693 - for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16700 - $_.ti = _Ah; //#16696 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16697 - $_.nextecitext = false; //#16697 - break; //#16697 - } //#16697 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16698 - break; //#16698 - } //#16698 - $_.nextecitext = true; //#16699 - } //#16699 - if ($_.nextecitext) { //#16728 - if ($_.submode == $_.A) { //#16725 - var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16703 - if (_B0) { //#16708 - $k[$j++] = 'pad'; //#16704 - $k[$j++] = $_.ll; //#16704 - $_.enca(); //#16704 - var _B2 = $k[--$j]; //#16704 - $_[$k[--$j]] = _B2; //#16704 - $_.submode = $_.L; //#16705 - } else { //#16708 - $k[$j++] = 'pad'; //#16707 - $k[$j++] = $_.ml; //#16707 - $_.enca(); //#16707 - var _B6 = $k[--$j]; //#16707 - $_[$k[--$j]] = _B6; //#16707 - $_.submode = $_.M; //#16708 - } //#16708 - } else { //#16725 - if ($_.submode == $_.M) { //#16725 - var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16712 - if (_BI) { //#16721 - $k[$j++] = 'pad'; //#16713 - $k[$j++] = $_.ll; //#16713 - $_.encm(); //#16713 - var _BK = $k[--$j]; //#16713 - $_[$k[--$j]] = _BK; //#16713 - $_.submode = $_.L; //#16714 - } else { //#16721 - var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16716 - if (_BU) { //#16721 - $k[$j++] = 'pad'; //#16717 - $k[$j++] = $_.pl; //#16717 - $_.encm(); //#16717 - var _BW = $k[--$j]; //#16717 - $_[$k[--$j]] = _BW; //#16717 - $_.submode = $_.P; //#16718 - } else { //#16721 - $k[$j++] = 'pad'; //#16720 - $k[$j++] = $_.al; //#16720 - $_.encm(); //#16720 - var _Ba = $k[--$j]; //#16720 - $_[$k[--$j]] = _Ba; //#16720 - $_.submode = $_.A; //#16721 - } //#16721 - } //#16721 - } else { //#16725 - $k[$j++] = 'pad'; //#16724 - $k[$j++] = $_.ml; //#16724 - $_.encl(); //#16724 - var _Be = $k[--$j]; //#16724 - $_[$k[--$j]] = _Be; //#16724 - $_.submode = $_.M; //#16725 - } //#16725 - } //#16725 - } else { //#16728 - $k[$j++] = 'pad'; //#16728 - $k[$j++] = $_.ps; //#16728 + } //#16884 + $_.addtotext(); //#16884 + $_.k = $_.k + 1; //#16885 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16891 + $k[$j++] = $get($_.txtseq, $_.k); //#16889 + if ($_.char == $_.as) { //#16889 + $_.enca(); //#16889 + } else { //#16889 + $_.encp(); //#16889 + } //#16889 + $_.addtotext(); //#16889 + $_.k = $_.k + 1; //#16890 + } //#16890 + if ($_.char == $_.al) { //#16894 + $_.submode = $_.A; //#16894 + } //#16894 + if ($_.char == $_.ll) { //#16895 + $_.submode = $_.L; //#16895 + } //#16895 + if ($_.char == $_.ml) { //#16896 + $_.submode = $_.M; //#16896 + } //#16896 + if ($_.char == $_.pl) { //#16897 + $_.submode = $_.P; //#16897 + } //#16897 + } //#16897 + if (($_.text.length % 2) == 1) { //#16945 + if ($_.submode == $_.P) { //#16941 + $k[$j++] = 'pad'; //#16902 + $k[$j++] = $_.al; //#16902 + $_.encp(); //#16902 + var _Ab = $k[--$j]; //#16902 + $_[$k[--$j]] = _Ab; //#16902 + $_.submode = $_.A; //#16903 + } else { //#16941 + $_.nextecitext = false; //#16906 + for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16913 + $_.ti = _Ah; //#16909 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16910 + $_.nextecitext = false; //#16910 + break; //#16910 + } //#16910 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16911 + break; //#16911 + } //#16911 + $_.nextecitext = true; //#16912 + } //#16912 + if ($_.nextecitext) { //#16941 + if ($_.submode == $_.A) { //#16938 + var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16916 + if (_B0) { //#16921 + $k[$j++] = 'pad'; //#16917 + $k[$j++] = $_.ll; //#16917 + $_.enca(); //#16917 + var _B2 = $k[--$j]; //#16917 + $_[$k[--$j]] = _B2; //#16917 + $_.submode = $_.L; //#16918 + } else { //#16921 + $k[$j++] = 'pad'; //#16920 + $k[$j++] = $_.ml; //#16920 + $_.enca(); //#16920 + var _B6 = $k[--$j]; //#16920 + $_[$k[--$j]] = _B6; //#16920 + $_.submode = $_.M; //#16921 + } //#16921 + } else { //#16938 + if ($_.submode == $_.M) { //#16938 + var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16925 + if (_BI) { //#16934 + $k[$j++] = 'pad'; //#16926 + $k[$j++] = $_.ll; //#16926 + $_.encm(); //#16926 + var _BK = $k[--$j]; //#16926 + $_[$k[--$j]] = _BK; //#16926 + $_.submode = $_.L; //#16927 + } else { //#16934 + var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16929 + if (_BU) { //#16934 + $k[$j++] = 'pad'; //#16930 + $k[$j++] = $_.pl; //#16930 + $_.encm(); //#16930 + var _BW = $k[--$j]; //#16930 + $_[$k[--$j]] = _BW; //#16930 + $_.submode = $_.P; //#16931 + } else { //#16934 + $k[$j++] = 'pad'; //#16933 + $k[$j++] = $_.al; //#16933 + $_.encm(); //#16933 + var _Ba = $k[--$j]; //#16933 + $_[$k[--$j]] = _Ba; //#16933 + $_.submode = $_.A; //#16934 + } //#16934 + } //#16934 + } else { //#16938 + $k[$j++] = 'pad'; //#16937 + $k[$j++] = $_.ml; //#16937 + $_.encl(); //#16937 + var _Be = $k[--$j]; //#16937 + $_[$k[--$j]] = _Be; //#16937 + $_.submode = $_.M; //#16938 + } //#16938 + } //#16938 + } else { //#16941 + $k[$j++] = 'pad'; //#16941 + $k[$j++] = $_.ps; //#16941 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#16728 - var _Bm = $k[--$j]; //#16728 - $_[$k[--$j]] = _Bm; //#16728 - } //#16728 - } //#16728 - $k[$j++] = Infinity; //#16731 - $aload($_.text); //#16731 - $k[$j++] = $_.pad; //#16731 - $_.text = $a(); //#16731 - } //#16731 - $_.out = $a(~~($_.text.length / 2)); //#16734 - for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16738 - $_.k = _Bv; //#16736 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16737 - } //#16737 - $k[$j++] = $_.out; //#16740 - }; //#16740 + } //#16941 + var _Bm = $k[--$j]; //#16941 + $_[$k[--$j]] = _Bm; //#16941 + } //#16941 + } //#16941 + $k[$j++] = Infinity; //#16944 + $aload($_.text); //#16944 + $k[$j++] = $_.pad; //#16944 + $_.text = $a(); //#16944 + } //#16944 + $_.out = $a(~~($_.text.length / 2)); //#16947 + for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16951 + $_.k = _Bv; //#16949 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16950 + } //#16950 + $k[$j++] = $_.out; //#16953 + }; //#16953 $_.encn = function() { - $_.in = $k[--$j]; //#16745 - $_.out = $a([]); //#16746 - for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16774 - $_.k = _C9; //#16748 - $k[$j++] = Infinity; //#16751 - var _CE = $_.in.length - $_.k; //#16750 - $k[$j++] = 1; //#16750 - $k[$j++] = $_.in; //#16750 - $k[$j++] = $_.k; //#16750 - $k[$j++] = _CE; //#16750 - if (_CE > 44) { //#16750 - $j--; //#16750 - $k[$j++] = 44; //#16750 - } //#16750 - var _CF = $k[--$j]; //#16750 - var _CG = $k[--$j]; //#16750 - var _CI = $geti($k[--$j], _CG, _CF); //#16750 - for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16751 - $k[$j++] = $f($get(_CI, _CJ) - 48); //#16751 - } //#16751 - $_.gmod = $a(); //#16751 - $_.cwn = $a([]); //#16753 - for (;;) { //#16772 - $_.dv = 900; //#16754 - $_.gmul = $a([]); //#16755 - $_.val = 0; //#16755 - for (;;) { //#16767 - if ($_.gmod.length == 0) { //#16756 - break; //#16756 - } //#16756 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16757 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16758 - if ($_.val < $_.dv) { //#16764 - if ($_.gmul.length != 0) { //#16762 - $k[$j++] = Infinity; //#16761 - $aload($_.gmul); //#16761 - $k[$j++] = 0; //#16761 - $_.gmul = $a(); //#16761 - } //#16761 - } else { //#16764 - $k[$j++] = Infinity; //#16764 - $aload($_.gmul); //#16764 - $k[$j++] = ~~($_.val / $_.dv); //#16764 - $_.gmul = $a(); //#16764 - } //#16764 - $_.val = $_.val % $_.dv; //#16766 - } //#16766 - $_.dv = $_.val; //#16768 - $k[$j++] = Infinity; //#16769 - $k[$j++] = $_.dv; //#16769 - $aload($_.cwn); //#16769 - $_.cwn = $a(); //#16769 - $_.gmod = $_.gmul; //#16770 - if ($_.gmul.length == 0) { //#16771 - break; //#16771 - } //#16771 - } //#16771 - $k[$j++] = Infinity; //#16773 - $aload($_.out); //#16773 - $aload($_.cwn); //#16773 - $_.out = $a(); //#16773 - } //#16773 - $k[$j++] = $_.out; //#16775 - }; //#16775 + $_.in = $k[--$j]; //#16958 + $_.out = $a([]); //#16959 + for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16987 + $_.k = _C9; //#16961 + $k[$j++] = Infinity; //#16962 + var _CE = $_.in.length - $_.k; //#16963 + $k[$j++] = 1; //#16963 + $k[$j++] = $_.in; //#16963 + $k[$j++] = $_.k; //#16963 + $k[$j++] = _CE; //#16963 + if (_CE > 44) { //#16963 + $j--; //#16963 + $k[$j++] = 44; //#16963 + } //#16963 + var _CF = $k[--$j]; //#16963 + var _CG = $k[--$j]; //#16963 + var _CI = $geti($k[--$j], _CG, _CF); //#16963 + for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16964 + $k[$j++] = $f($get(_CI, _CJ) - 48); //#16964 + } //#16964 + $_.gmod = $a(); //#16964 + $_.cwn = $a([]); //#16966 + for (;;) { //#16985 + $_.dv = 900; //#16967 + $_.gmul = $a([]); //#16968 + $_.val = 0; //#16968 + for (;;) { //#16980 + if ($_.gmod.length == 0) { //#16969 + break; //#16969 + } //#16969 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16970 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16971 + if ($_.val < $_.dv) { //#16977 + if ($_.gmul.length != 0) { //#16975 + $k[$j++] = Infinity; //#16974 + $aload($_.gmul); //#16974 + $k[$j++] = 0; //#16974 + $_.gmul = $a(); //#16974 + } //#16974 + } else { //#16977 + $k[$j++] = Infinity; //#16977 + $aload($_.gmul); //#16977 + $k[$j++] = ~~($_.val / $_.dv); //#16977 + $_.gmul = $a(); //#16977 + } //#16977 + $_.val = $_.val % $_.dv; //#16979 + } //#16979 + $_.dv = $_.val; //#16981 + $k[$j++] = Infinity; //#16982 + $k[$j++] = $_.dv; //#16982 + $aload($_.cwn); //#16982 + $_.cwn = $a(); //#16982 + $_.gmod = $_.gmul; //#16983 + if ($_.gmul.length == 0) { //#16984 + break; //#16984 + } //#16984 + } //#16984 + $k[$j++] = Infinity; //#16986 + $aload($_.out); //#16986 + $aload($_.cwn); //#16986 + $_.out = $a(); //#16986 + } //#16986 + $k[$j++] = $_.out; //#16988 + }; //#16988 $_.ence = function() { - var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16780 - $k[$j++] = _Ct; //#16788 - if (_Ct <= 899) { //#16787 - var _Cu = $k[--$j]; //#16781 - $k[$j++] = 927; //#16781 - $k[$j++] = _Cu; //#16781 - $astore($a(2)); //#16781 - } else { //#16787 - var _Cw = $k[--$j]; //#16782 - $k[$j++] = _Cw; //#16788 - if (_Cw <= 810899) { //#16787 - var _Cx = $k[--$j]; //#16783 - $k[$j++] = 926; //#16783 - $k[$j++] = (~~(_Cx / 900)) - 1; //#16783 - $k[$j++] = _Cx % 900; //#16783 - $astore($a(3)); //#16783 - } else { //#16787 - var _Cz = $k[--$j]; //#16784 - $k[$j++] = _Cz; //#16788 - if (_Cz <= 811799) { //#16787 - var _D0 = $k[--$j]; //#16785 - $k[$j++] = 925; //#16785 - $k[$j++] = $f(_D0 - 810900); //#16785 - $astore($a(2)); //#16785 - } else { //#16787 - $k[$j++] = 'bwipp.pdf417badECI#16787'; //#16787 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16787 - bwipp_raiseerror(); //#16787 - } //#16787 - } //#16787 - } //#16787 - }; //#16787 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#16791 + var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16993 + $k[$j++] = _Ct; //#17001 + if (_Ct <= 899) { //#17000 + var _Cu = $k[--$j]; //#16994 + $k[$j++] = 927; //#16994 + $k[$j++] = _Cu; //#16994 + $astore($a(2)); //#16994 + } else { //#17000 + var _Cw = $k[--$j]; //#16995 + $k[$j++] = _Cw; //#17001 + if (_Cw <= 810899) { //#17000 + var _Cx = $k[--$j]; //#16996 + $k[$j++] = 926; //#16996 + $k[$j++] = (~~(_Cx / 900)) - 1; //#16996 + $k[$j++] = _Cx % 900; //#16996 + $astore($a(3)); //#16996 + } else { //#17000 + var _Cz = $k[--$j]; //#16997 + $k[$j++] = _Cz; //#17001 + if (_Cz <= 811799) { //#17000 + var _D0 = $k[--$j]; //#16998 + $k[$j++] = 925; //#16998 + $k[$j++] = $f(_D0 - 810900); //#16998 + $astore($a(2)); //#16998 + } else { //#17000 + $k[$j++] = 'bwipp.pdf417badECI#17000'; //#17000 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17000 + bwipp_raiseerror(); //#17000 + } //#17000 + } //#17000 + } //#17000 + }; //#17000 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17004 $_.addtocws = function() { - var _D3 = $k[--$j]; //#16794 - $puti($_.datcws, $_.j, _D3); //#16794 - $_.j = _D3.length + $_.j; //#16795 - }; //#16795 - $_.state = $_.T; //#16799 - $_.submode = $_.A; //#16799 - $_.datcws = $a($_.seqlen); //#16800 - $_.i = 0; //#16801 - $_.j = 0; //#16801 - for (;;) { //#16821 - if ($_.i >= $_.seq.length) { //#16802 - break; //#16802 - } //#16802 - $_.chars = $get($_.seq, $_.i); //#16803 - if ($eq($type($_.chars), 'arraytype')) { //#16817 - if ($get($_.chars, 0) <= -1000000) { //#16808 - $k[$j++] = $_.chars; //#16806 - $_.ence(); //#16806 - $_.addtocws(); //#16806 - } else { //#16808 - $k[$j++] = $_.chars; //#16808 + var _D3 = $k[--$j]; //#17007 + $puti($_.datcws, $_.j, _D3); //#17007 + $_.j = _D3.length + $_.j; //#17008 + }; //#17008 + $_.state = $_.T; //#17012 + $_.submode = $_.A; //#17012 + $_.datcws = $a($_.seqlen); //#17013 + $_.i = 0; //#17014 + $_.j = 0; //#17014 + for (;;) { //#17034 + if ($_.i >= $_.seq.length) { //#17015 + break; //#17015 + } //#17015 + $_.chars = $get($_.seq, $_.i); //#17016 + if ($eq($type($_.chars), 'arraytype')) { //#17030 + if ($get($_.chars, 0) <= -1000000) { //#17021 + $k[$j++] = $_.chars; //#17019 + $_.ence(); //#17019 + $_.addtocws(); //#17019 + } else { //#17021 + $k[$j++] = $_.chars; //#17021 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#16808 - $_.addtocws(); //#16808 - } //#16808 - } else { //#16817 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#16811 - $_.addtocws(); //#16811 - if ($_.chars == $_.tl) { //#16812 - $_.state = $_.T; //#16812 - $_.submode = $_.A; //#16812 - } //#16812 - if ($_.chars == $_.nl) { //#16813 - $_.state = $_.N; //#16813 - } //#16813 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#16814 - $_.state = $_.B; //#16814 - } //#16814 - if ($_.chars == $_.bs) { //#16818 - $_.i = $_.i + 1; //#16816 - $k[$j++] = $get($_.seq, $_.i); //#16817 - $_.encb(); //#16817 - $_.addtocws(); //#16817 - } //#16817 - } //#16817 - $_.i = $_.i + 1; //#16820 - } //#16820 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16822 - } //#16822 - $_.m = $_.datcws.length; //#16826 - if ($_.eclevel == -1) { //#16832 - if ($_.m <= 40) { //#16828 - $_.eclevel = 2; //#16828 - } //#16828 - if (($_.m >= 41) && ($_.m <= 160)) { //#16829 - $_.eclevel = 3; //#16829 - } //#16829 - if (($_.m >= 161) && ($_.m <= 320)) { //#16830 - $_.eclevel = 4; //#16830 - } //#16830 - if ($_.m >= 321) { //#16831 - $_.eclevel = 5; //#16831 - } //#16831 - } //#16831 - $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#16835 - if ($_.eclevel > $_.maxeclevel) { //#16836 - $_.eclevel = $_.maxeclevel; //#16836 - } //#16836 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16837 - if ($_.columns == 0) { //#16840 - $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#16840 - } //#16840 - $k[$j++] = 'c'; //#16841 - if ($_.columns >= 1) { //#16841 - $k[$j++] = $_.columns; //#16841 - } else { //#16841 - $k[$j++] = 1; //#16841 - } //#16841 - var _E8 = $k[--$j]; //#16841 - $_[$k[--$j]] = _E8; //#16841 - $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#16844 - if (($_.r < $_.rows) && ($_.rows <= 90)) { //#16845 - $_.r = $_.rows; //#16845 - } //#16845 - if ($_.r < 3) { //#16846 - $_.r = 3; //#16846 - } //#16846 - if ($_.r > 90) { //#16851 - $k[$j++] = 'bwipp.pdf417insufficientCapacity#16850'; //#16850 - $k[$j++] = "Insufficient capacity in the symbol"; //#16850 - bwipp_raiseerror(); //#16850 - } //#16850 - var _EJ = $_.c; //#16854 - var _EK = $_.r; //#16854 - var _EL = $_.m; //#16854 - var _EM = 8; //#16854 - var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#16854 - if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#16854 - var _ = _EM; //#16854 - _EM = _EN; //#16854 - _EN = _; //#16854 - } //#16854 - $_.maxeclevel = _EN; //#16854 - if ($_.maxeclevel > $_.eclevel) { //#16858 - $_.eclevel = $_.maxeclevel; //#16856 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16857 - } //#16857 - $_.n = $f(($_.c * $_.r) - $_.k); //#16861 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#16862 - $put($_.cws, 0, $_.n); //#16863 - $puti($_.cws, 1, $_.datcws); //#16864 - $k[$j++] = $_.cws; //#16865 - $k[$j++] = $_.m + 1; //#16865 - $k[$j++] = Infinity; //#16865 - for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#16865 - $k[$j++] = 900; //#16865 - } //#16865 - var _Ei = $a(); //#16865 - var _Ej = $k[--$j]; //#16865 - $puti($k[--$j], _Ej, _Ei); //#16865 - $k[$j++] = $_.cws; //#16866 - $k[$j++] = $_.n; //#16866 - $k[$j++] = Infinity; //#16866 - for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#16866 - $k[$j++] = 0; //#16866 - } //#16866 - $k[$j++] = 0; //#16866 - var _Eq = $a(); //#16866 - var _Er = $k[--$j]; //#16866 - $puti($k[--$j], _Er, _Eq); //#16866 - $k[$j++] = Infinity; //#16869 - $k[$j++] = 1; //#16869 - for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#16869 - var _Ev = $k[--$j]; //#16869 - $k[$j++] = _Ev; //#16869 - $k[$j++] = (_Ev * 3) % 929; //#16869 - } //#16869 - $_.rsalog = $a(); //#16869 - $_.rslog = $a(929); //#16870 - for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#16871 - $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#16871 - } //#16871 + } //#17021 + $_.addtocws(); //#17021 + } //#17021 + } else { //#17030 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17024 + $_.addtocws(); //#17024 + if ($_.chars == $_.tl) { //#17025 + $_.state = $_.T; //#17025 + $_.submode = $_.A; //#17025 + } //#17025 + if ($_.chars == $_.nl) { //#17026 + $_.state = $_.N; //#17026 + } //#17026 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17027 + $_.state = $_.B; //#17027 + } //#17027 + if ($_.chars == $_.bs) { //#17031 + $_.i = $_.i + 1; //#17029 + $k[$j++] = $get($_.seq, $_.i); //#17030 + $_.encb(); //#17030 + $_.addtocws(); //#17030 + } //#17030 + } //#17030 + $_.i = $_.i + 1; //#17033 + } //#17033 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17035 + } //#17035 + $_.m = $_.datcws.length; //#17039 + if ($_.eclevel == -1) { //#17045 + if ($_.m <= 40) { //#17041 + $_.eclevel = 2; //#17041 + } //#17041 + if (($_.m >= 41) && ($_.m <= 160)) { //#17042 + $_.eclevel = 3; //#17042 + } //#17042 + if (($_.m >= 161) && ($_.m <= 320)) { //#17043 + $_.eclevel = 4; //#17043 + } //#17043 + if ($_.m >= 321) { //#17044 + $_.eclevel = 5; //#17044 + } //#17044 + } //#17044 + $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#17048 + if ($_.eclevel > $_.maxeclevel) { //#17049 + $_.eclevel = $_.maxeclevel; //#17049 + } //#17049 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17050 + if ($_.columns == 0) { //#17053 + $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#17053 + } //#17053 + $k[$j++] = 'c'; //#17054 + if ($_.columns >= 1) { //#17054 + $k[$j++] = $_.columns; //#17054 + } else { //#17054 + $k[$j++] = 1; //#17054 + } //#17054 + var _E8 = $k[--$j]; //#17054 + $_[$k[--$j]] = _E8; //#17054 + $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#17057 + if (($_.r < $_.rows) && ($_.rows <= 90)) { //#17058 + $_.r = $_.rows; //#17058 + } //#17058 + if ($_.r < 3) { //#17059 + $_.r = 3; //#17059 + } //#17059 + if ($_.r > 90) { //#17064 + $k[$j++] = 'bwipp.pdf417insufficientCapacity#17063'; //#17063 + $k[$j++] = "Insufficient capacity in the symbol"; //#17063 + bwipp_raiseerror(); //#17063 + } //#17063 + var _EJ = $_.c; //#17067 + var _EK = $_.r; //#17067 + var _EL = $_.m; //#17067 + var _EM = 8; //#17067 + var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#17067 + if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#17067 + var _ = _EM; //#17067 + _EM = _EN; //#17067 + _EN = _; //#17067 + } //#17067 + $_.maxeclevel = _EN; //#17067 + if ($_.maxeclevel > $_.eclevel) { //#17071 + $_.eclevel = $_.maxeclevel; //#17069 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17070 + } //#17070 + $_.n = $f(($_.c * $_.r) - $_.k); //#17074 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#17075 + $put($_.cws, 0, $_.n); //#17076 + $puti($_.cws, 1, $_.datcws); //#17077 + $k[$j++] = $_.cws; //#17078 + $k[$j++] = $_.m + 1; //#17078 + $k[$j++] = Infinity; //#17078 + for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#17078 + $k[$j++] = 900; //#17078 + } //#17078 + var _Ei = $a(); //#17078 + var _Ej = $k[--$j]; //#17078 + $puti($k[--$j], _Ej, _Ei); //#17078 + $k[$j++] = $_.cws; //#17079 + $k[$j++] = $_.n; //#17079 + $k[$j++] = Infinity; //#17079 + for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#17079 + $k[$j++] = 0; //#17079 + } //#17079 + $k[$j++] = 0; //#17079 + var _Eq = $a(); //#17079 + var _Er = $k[--$j]; //#17079 + $puti($k[--$j], _Er, _Eq); //#17079 + if (!bwipp_pdf417.__17086__) { //#17086 + $_ = Object.create($_); //#17086 + $k[$j++] = Infinity; //#17083 + $k[$j++] = 1; //#17083 + for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#17083 + var _Ev = $k[--$j]; //#17083 + $k[$j++] = _Ev; //#17083 + $k[$j++] = (_Ev * 3) % 929; //#17083 + } //#17083 + $_.rsalog = $a(); //#17083 + $_.rslog = $a(929); //#17084 + for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#17085 + $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#17085 + } //#17085 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17085 + bwipp_pdf417.__17086__ = 1; //#17085 + $_ = Object.getPrototypeOf($_); //#17085 + } //#17085 $_.rsprod = function() { - var _F2 = $k[--$j]; //#16875 - var _F3 = $k[--$j]; //#16875 - $k[$j++] = _F3; //#16879 - $k[$j++] = _F2; //#16879 - if ((_F2 != 0) && (_F3 != 0)) { //#16878 - var _F6 = $get($_.rslog, $k[--$j]); //#16876 - var _FB = $get($_.rsalog, $f(_F6 + $get($_.rslog, $k[--$j])) % 928); //#16876 - $k[$j++] = _FB; //#16876 - } else { //#16878 - $j -= 2; //#16878 - $k[$j++] = 0; //#16878 - } //#16878 - }; //#16878 - $k[$j++] = Infinity; //#16883 - $k[$j++] = 1; //#16883 - for (var _FD = 0, _FE = $_.k; _FD < _FE; _FD++) { //#16883 - $k[$j++] = 0; //#16883 - } //#16883 - $_.coeffs = $a(); //#16883 - for (var _FI = 1, _FH = $_.k; _FI <= _FH; _FI += 1) { //#16892 - $_.i = _FI; //#16885 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#16886 - for (var _FP = $_.i - 1; _FP >= 1; _FP -= 1) { //#16890 - $_.j = _FP; //#16888 - $k[$j++] = $_.coeffs; //#16889 - $k[$j++] = $_.j; //#16889 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#16889 - $k[$j++] = $get($_.coeffs, $_.j); //#16889 - $k[$j++] = $get($_.rsalog, $_.i); //#16889 - $_.rsprod(); //#16889 - var _Fb = $k[--$j]; //#16889 - var _Fc = $k[--$j]; //#16889 - var _Fd = $k[--$j]; //#16889 - $put($k[--$j], _Fd, $f(_Fc + _Fb) % 929); //#16889 - } //#16889 - $k[$j++] = $_.coeffs; //#16891 - $k[$j++] = 0; //#16891 - $k[$j++] = $get($_.coeffs, 0); //#16891 - $k[$j++] = $get($_.rsalog, $_.i); //#16891 - $_.rsprod(); //#16891 - var _Fl = $k[--$j]; //#16891 - var _Fm = $k[--$j]; //#16891 - $put($k[--$j], _Fm, _Fl); //#16891 - } //#16891 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#16893 - for (var _Fs = $_.coeffs.length - 1; _Fs >= 0; _Fs -= 2) { //#16894 - var _Ft = $_.coeffs; //#16894 - $put(_Ft, _Fs, $f(929 - $get(_Ft, _Fs))); //#16894 - } //#16894 - for (var _Fx = 0, _Fw = $f($_.n - 1); _Fx <= _Fw; _Fx += 1) { //#16903 - $_.t = $f($get($_.cws, _Fx) + $get($_.cws, $_.n)) % 929; //#16898 - for (var _G5 = 0, _G4 = $_.k - 1; _G5 <= _G4; _G5 += 1) { //#16902 - $_.j = _G5; //#16900 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#16901 - } //#16901 - } //#16901 - for (var _GM = $_.n, _GL = $f($_.n + $_.k); _GM <= _GL; _GM += 1) { //#16904 - $put($_.cws, _GM, $f(929 - $get($_.cws, _GM)) % 929); //#16904 - } //#16904 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#16907 - var _GU = $get($_.options, 'debugcws') !== undefined; //#16909 - if (_GU) { //#16909 - $k[$j++] = 'bwipp.debugcws#16909'; //#16909 - $k[$j++] = $_.cws; //#16909 - bwipp_raiseerror(); //#16909 - } //#16909 - if (!bwipp_pdf417.__17153__) { //#17153 - $_ = Object.create($_); //#17153 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17152 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17152 - bwipp_pdf417.__17153__ = 1; //#17152 - $_ = Object.getPrototypeOf($_); //#17152 - } //#17152 + var _F3 = $k[--$j]; //#17090 + var _F4 = $k[--$j]; //#17090 + $k[$j++] = _F4; //#17094 + $k[$j++] = _F3; //#17094 + if ((_F3 != 0) && (_F4 != 0)) { //#17093 + var _F7 = $get($_.rslog, $k[--$j]); //#17091 + var _FC = $get($_.rsalog, $f(_F7 + $get($_.rslog, $k[--$j])) % 928); //#17091 + $k[$j++] = _FC; //#17091 + } else { //#17093 + $j -= 2; //#17093 + $k[$j++] = 0; //#17093 + } //#17093 + }; //#17093 + $k[$j++] = Infinity; //#17098 + $k[$j++] = 1; //#17098 + for (var _FE = 0, _FF = $_.k; _FE < _FF; _FE++) { //#17098 + $k[$j++] = 0; //#17098 + } //#17098 + $_.coeffs = $a(); //#17098 + for (var _FJ = 1, _FI = $_.k; _FJ <= _FI; _FJ += 1) { //#17107 + $_.i = _FJ; //#17100 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17101 + for (var _FQ = $_.i - 1; _FQ >= 1; _FQ -= 1) { //#17105 + $_.j = _FQ; //#17103 + $k[$j++] = $_.coeffs; //#17104 + $k[$j++] = $_.j; //#17104 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#17104 + $k[$j++] = $get($_.coeffs, $_.j); //#17104 + $k[$j++] = $get($_.rsalog, $_.i); //#17104 + $_.rsprod(); //#17104 + var _Fc = $k[--$j]; //#17104 + var _Fd = $k[--$j]; //#17104 + var _Fe = $k[--$j]; //#17104 + $put($k[--$j], _Fe, $f(_Fd + _Fc) % 929); //#17104 + } //#17104 + $k[$j++] = $_.coeffs; //#17106 + $k[$j++] = 0; //#17106 + $k[$j++] = $get($_.coeffs, 0); //#17106 + $k[$j++] = $get($_.rsalog, $_.i); //#17106 + $_.rsprod(); //#17106 + var _Fm = $k[--$j]; //#17106 + var _Fn = $k[--$j]; //#17106 + $put($k[--$j], _Fn, _Fm); //#17106 + } //#17106 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17108 + for (var _Ft = $_.coeffs.length - 1; _Ft >= 0; _Ft -= 2) { //#17109 + var _Fu = $_.coeffs; //#17109 + $put(_Fu, _Ft, $f(929 - $get(_Fu, _Ft))); //#17109 + } //#17109 + for (var _Fy = 0, _Fx = $f($_.n - 1); _Fy <= _Fx; _Fy += 1) { //#17118 + $_.t = $f($get($_.cws, _Fy) + $get($_.cws, $_.n)) % 929; //#17113 + for (var _G6 = 0, _G5 = $_.k - 1; _G6 <= _G5; _G6 += 1) { //#17117 + $_.j = _G6; //#17115 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#17116 + } //#17116 + } //#17116 + for (var _GN = $_.n, _GM = $f($_.n + $_.k); _GN <= _GM; _GN += 1) { //#17119 + $put($_.cws, _GN, $f(929 - $get($_.cws, _GN)) % 929); //#17119 + } //#17119 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17122 + var _GV = $get($_.options, 'debugcws') !== undefined; //#17124 + if (_GV) { //#17124 + $k[$j++] = 'bwipp.debugcws#17124'; //#17124 + $k[$j++] = $_.cws; //#17124 + bwipp_raiseerror(); //#17124 + } //#17124 + if (!bwipp_pdf417.__17368__) { //#17368 + $_ = Object.create($_); //#17368 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17367 + bwipp_pdf417.__17368__ = 1; //#17367 + $_ = Object.getPrototypeOf($_); //#17367 + } //#17367 $_.cwtobits = function() { - var _Gd = $get($_.clusters, $k[--$j]); //#17157 - $_.v = $get(_Gd, $k[--$j]); //#17157 - $k[$j++] = Infinity; //#17158 - for (var _Gg = 0, _Gh = 17; _Gg < _Gh; _Gg++) { //#17158 - $k[$j++] = 0; //#17158 - } //#17158 - var _Gk = $cvrs($s(17), $_.v, 2); //#17158 - for (var _Gl = 0, _Gm = _Gk.length; _Gl < _Gm; _Gl++) { //#17158 - $k[$j++] = $get(_Gk, _Gl) - 48; //#17158 - } //#17158 - var _Go = $a(); //#17158 - $k[$j++] = $geti(_Go, _Go.length - 17, 17); //#17159 - }; //#17159 - if ($_.compact) { //#17166 - $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17164 - } else { //#17166 - $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17166 - } //#17166 - $_.pixs = $a($_.rwid * $_.r); //#17168 - for (var _Gy = 0, _Gx = $_.r - 1; _Gy <= _Gx; _Gy += 1) { //#17198 - $_.i = _Gy; //#17171 - if (($_.i % 3) == 0) { //#17176 - $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17174 - $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17175 - } //#17175 - if (($_.i % 3) == 1) { //#17180 - $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17178 - $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17179 - } //#17179 - if (($_.i % 3) == 2) { //#17184 - $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17182 - $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17183 - } //#17183 - $k[$j++] = $_.pixs; //#17194 - $k[$j++] = $_.rwid * $_.i; //#17194 - $k[$j++] = Infinity; //#17194 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = $_.lcw; //#17188 - $k[$j++] = $_.i % 3; //#17188 - $_.cwtobits(); //#17188 - $forall($k[--$j]); //#17188 - var _HQ = $geti($_.cws, $_.c * $_.i, $_.c); //#17189 - for (var _HR = 0, _HS = _HQ.length; _HR < _HS; _HR++) { //#17189 - $k[$j++] = $get(_HQ, _HR); //#17189 - $k[$j++] = $_.i % 3; //#17189 - $_.cwtobits(); //#17189 - $forall($k[--$j]); //#17189 - } //#17189 - if ($_.compact) { //#17194 - $k[$j++] = 1; //#17191 - } else { //#17194 - $k[$j++] = $_.rcw; //#17193 - $k[$j++] = $_.i % 3; //#17193 - $_.cwtobits(); //#17193 - $forall($k[--$j]); //#17193 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - } //#17194 - var _Ha = $a(); //#17194 - var _Hb = $k[--$j]; //#17196 - $puti($k[--$j], _Hb, _Ha); //#17196 - } //#17196 - var _Hk = new Map([ + var _Ge = $get($_.clusters, $k[--$j]); //#17372 + $_.v = $get(_Ge, $k[--$j]); //#17372 + $k[$j++] = Infinity; //#17373 + for (var _Gh = 0, _Gi = 17; _Gh < _Gi; _Gh++) { //#17373 + $k[$j++] = 0; //#17373 + } //#17373 + var _Gl = $cvrs($s(17), $_.v, 2); //#17373 + for (var _Gm = 0, _Gn = _Gl.length; _Gm < _Gn; _Gm++) { //#17373 + $k[$j++] = $get(_Gl, _Gm) - 48; //#17373 + } //#17373 + var _Gp = $a(); //#17373 + $k[$j++] = $geti(_Gp, _Gp.length - 17, 17); //#17374 + }; //#17374 + if ($_.compact) { //#17381 + $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17379 + } else { //#17381 + $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17381 + } //#17381 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#17383 + for (var _H0 = 0, _Gz = $_.r - 1; _H0 <= _Gz; _H0 += 1) { //#17416 + $_.i = _H0; //#17386 + if (($_.i % 3) == 0) { //#17391 + $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17389 + $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17390 + } //#17390 + if (($_.i % 3) == 1) { //#17395 + $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17393 + $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17394 + } //#17394 + if (($_.i % 3) == 2) { //#17399 + $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17397 + $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17398 + } //#17398 + $k[$j++] = Infinity; //#17401 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = $_.lcw; //#17403 + $k[$j++] = $_.i % 3; //#17403 + $_.cwtobits(); //#17403 + $aload($k[--$j]); //#17403 + var _HP = $geti($_.cws, $_.c * $_.i, $_.c); //#17404 + for (var _HQ = 0, _HR = _HP.length; _HQ < _HR; _HQ++) { //#17404 + $k[$j++] = $get(_HP, _HQ); //#17404 + $k[$j++] = $_.i % 3; //#17404 + $_.cwtobits(); //#17404 + $aload($k[--$j]); //#17404 + } //#17404 + if ($_.compact) { //#17409 + $k[$j++] = 1; //#17406 + } else { //#17409 + $k[$j++] = $_.rcw; //#17408 + $k[$j++] = $_.i % 3; //#17408 + $_.cwtobits(); //#17408 + $aload($k[--$j]); //#17408 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + } //#17409 + var _HZ = $a(); //#17409 + $k[$j++] = _HZ; //#17414 + for (var _Hc = 0, _Hb = $_.rowmult - 1; _Hc <= _Hb; _Hc += 1) { //#17414 + var _Hh = $k[--$j]; //#17413 + $puti($_.pixs, (_Hc + ($_.i * $_.rowmult)) * $_.rwid, _Hh); //#17413 + $k[$j++] = _Hh; //#17413 + } //#17413 + $j--; //#17415 + } //#17415 + var _Hq = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 2], + ["borderright", 2], + ["bordertop", 2], + ["borderbottom", 2], ["opt", $_.options] - ]); //#17208 - $k[$j++] = _Hk; //#17211 - if (!$_.dontdraw) { //#17211 - bwipp_renmatrix(); //#17211 - } //#17211 - $_ = Object.getPrototypeOf($_); //#17213 - $_ = Object.getPrototypeOf($_); //#17215 -} - + ]); //#17430 + $k[$j++] = _Hq; //#17433 + if (!$_.dontdraw) { //#17433 + bwipp_renmatrix(); //#17433 + } //#17433 + $_ = Object.getPrototypeOf($_); //#17435 + $_ = Object.getPrototypeOf($_); //#17437 +} //bwipp_pdf417 function bwipp_pdf417compact() { - $_ = Object.create($_); //#17244 - $_.dontdraw = false; //#17247 - $k[$j++] = $_; //#17249 - bwipp_processoptions(); //#17249 - $_.options = $k[--$j]; //#17249 - $_.barcode = $k[--$j]; //#17250 - $put($_.options, "dontdraw", true); //#17253 - $put($_.options, "compact", true); //#17254 - $k[$j++] = 'args'; //#17256 - $k[$j++] = $_.barcode; //#17256 - $k[$j++] = $_.options; //#17256 - bwipp_pdf417(); //#17256 - var _6 = $k[--$j]; //#17256 - $_[$k[--$j]] = _6; //#17256 - $put($_.args, "opt", $_.options); //#17258 - $k[$j++] = $_.args; //#17261 - if (!$_.dontdraw) { //#17261 - bwipp_renmatrix(); //#17261 - } //#17261 - $_ = Object.getPrototypeOf($_); //#17263 -} - + $_ = Object.create($_); //#17466 + $_.dontdraw = false; //#17469 + $k[$j++] = $_; //#17471 + bwipp_processoptions(); //#17471 + $_.options = $k[--$j]; //#17471 + $_.barcode = $k[--$j]; //#17472 + $put($_.options, "dontdraw", true); //#17475 + $put($_.options, "compact", true); //#17476 + $k[$j++] = 'args'; //#17478 + $k[$j++] = $_.barcode; //#17478 + $k[$j++] = $_.options; //#17478 + bwipp_pdf417(); //#17478 + var _6 = $k[--$j]; //#17478 + $_[$k[--$j]] = _6; //#17478 + $put($_.args, "opt", $_.options); //#17480 + $k[$j++] = $_.args; //#17483 + if (!$_.dontdraw) { //#17483 + bwipp_renmatrix(); //#17483 + } //#17483 + $_ = Object.getPrototypeOf($_); //#17485 +} //bwipp_pdf417compact function bwipp_micropdf417() { - $_ = Object.create($_); //#17294 - $_.dontdraw = false; //#17297 - $_.version = "unset"; //#17298 - $_.columns = 0; //#17299 - $_.rows = 0; //#17300 - $_.rowmult = 2; //#17301 - $_.cca = false; //#17302 - $_.ccb = false; //#17303 - $_.raw = false; //#17304 - $_.parse = false; //#17305 - $_.parsefnc = false; //#17306 - $k[$j++] = $_; //#17308 - bwipp_processoptions(); //#17308 - $_.options = $k[--$j]; //#17308 - $_.barcode = $k[--$j]; //#17309 - if ($eq($_.barcode, "")) { //#17313 - $k[$j++] = 'bwipp.micropdf417emptyData#17312'; //#17312 - $k[$j++] = "The data must not be empty"; //#17312 - bwipp_raiseerror(); //#17312 - } //#17312 - if ($_.rowmult <= 0) { //#17317 - $k[$j++] = 'bwipp.micropdf417badRowMult#17316'; //#17316 - $k[$j++] = "The row multiplier must be greater than zero"; //#17316 - bwipp_raiseerror(); //#17316 - } //#17316 - if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17321 - $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17320'; //#17320 - $k[$j++] = "Cannot combine cca, ccb and raw"; //#17320 - bwipp_raiseerror(); //#17320 - } //#17320 - if ($ne($_.version, "unset")) { //#17342 - $search($_.version, "x"); //#17325 - if ($k[--$j]) { //#17340 - var _D = $k[--$j]; //#17326 - var _E = $k[--$j]; //#17326 - $k[$j++] = _D; //#17326 - $k[$j++] = _E; //#17326 - $j--; //#17326 - var _F = $k[--$j]; //#17327 - var _G = $k[--$j]; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $astore($a(2)); //#17327 - $forall($k[--$j], function() { //#17336 - var _J = $k[--$j]; //#17329 - $k[$j++] = _J; //#17329 - $k[$j++] = true; //#17329 - if (_J.length == 0) { //#17329 - $j--; //#17329 - $k[$j++] = false; //#17329 - } //#17329 - var _K = $k[--$j]; //#17330 - var _L = $k[--$j]; //#17330 - $k[$j++] = _K; //#17332 - $forall(_L, function() { //#17332 - var _M = $k[--$j]; //#17331 - if ((_M < 48) || (_M > 57)) { //#17331 - $j--; //#17331 - $k[$j++] = false; //#17331 - } //#17331 - }); //#17331 - if ($nt($k[--$j])) { //#17335 - $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17334'; //#17334 - $k[$j++] = "version must be formatted as RxC"; //#17334 - bwipp_raiseerror(); //#17334 - } //#17334 - }); //#17334 - $_.rows = $cvi($k[--$j]); //#17337 - $_.columns = $cvi($k[--$j]); //#17338 - } else { //#17340 - $j--; //#17340 - $k[$j++] = 'bwipp.micropdf417badVersionFormat#17340'; //#17340 - $k[$j++] = "version must be formatted as RxC"; //#17340 - bwipp_raiseerror(); //#17340 - } //#17340 - } //#17340 - bwipp_loadctx(bwipp_micropdf417) //#17344 - if (!bwipp_micropdf417.__17431__) { //#17431 - $_ = Object.create($_); //#17431 - $_.T = 0; //#17348 - $_.N = 1; //#17348 - $_.B = 2; //#17348 - $_.A = 0; //#17349 - $_.L = 1; //#17349 - $_.M = 2; //#17349 - $_.P = 3; //#17349 - $_.tl = -1; //#17352 - $_.nl = -2; //#17352 - $_.bl = -3; //#17352 - $_.bl6 = -4; //#17352 - $_.bs = -5; //#17352 - $_.al = -6; //#17355 - $_.ll = -7; //#17355 - $_.ml = -8; //#17355 - $_.pl = -9; //#17355 - $_.as = -10; //#17355 - $_.ps = -11; //#17355 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17390 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17393 - $_.alltext = new Map; //#17394 - for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17404 - $_.i = _19; //#17396 - $_.encs = $get($_.charmaps, $_.i); //#17397 - for (var _1D = 0; _1D <= 3; _1D += 1) { //#17403 - $_.j = _1D; //#17399 - var _1G = $get($_.encs, $_.j); //#17400 - $k[$j++] = _1G; //#17400 - if ($eq($type(_1G), 'stringtype')) { //#17400 - var _1J = $get($k[--$j], 0); //#17400 - $k[$j++] = _1J; //#17400 - } //#17400 - var _1K = $k[--$j]; //#17401 - $put($get($_.charvals, $_.j), _1K, $_.i); //#17401 - $put($_.alltext, _1K, -1); //#17402 - } //#17402 - } //#17402 - $_.e = 10000; //#17406 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17414 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17422 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17430 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17430 - bwipp_micropdf417.__17431__ = 1; //#17430 - $_ = Object.getPrototypeOf($_); //#17430 - } //#17430 - if ($_.raw || $_.cca) { //#17452 - $_.datcws = $a($_.barcode.length); //#17435 - $_.i = 0; //#17436 - $_.j = 0; //#17436 - for (;;) { //#17447 - if ($_.i >= ($_.barcode.length - 3)) { //#17438 - break; //#17438 - } //#17438 - if ($get($_.barcode, $_.i) != 94) { //#17439 - break; //#17439 - } //#17439 - var _2a = $geti($_.barcode, $_.i + 1, 3); //#17440 - $k[$j++] = _2a; //#17442 - $k[$j++] = false; //#17442 - for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17442 - var _2d = $get(_2a, _2b); //#17442 - if ((_2d < 48) || (_2d > 57)) { //#17441 - $j--; //#17441 - $k[$j++] = true; //#17441 - } //#17441 - } //#17441 - if ($k[--$j]) { //#17442 - $j--; //#17442 - break; //#17442 - } //#17442 - $_.cw = $cvi($k[--$j]); //#17443 - $put($_.datcws, $_.j, $_.cw); //#17444 - $_.i = $_.i + 4; //#17445 - $_.j = $_.j + 1; //#17446 - } //#17446 - if ($_.i != $_.barcode.length) { //#17450 - $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17449'; //#17449 - $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17449 - bwipp_raiseerror(); //#17449 - } //#17449 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17451 - } //#17451 + $_ = Object.create($_); //#17516 + $_.dontdraw = false; //#17519 + $_.version = "unset"; //#17520 + $_.columns = 0; //#17521 + $_.rows = 0; //#17522 + $_.rowmult = 2; //#17523 + $_.cca = false; //#17524 + $_.ccb = false; //#17525 + $_.raw = false; //#17526 + $_.parse = false; //#17527 + $_.parsefnc = false; //#17528 + $k[$j++] = $_; //#17530 + bwipp_processoptions(); //#17530 + $_.options = $k[--$j]; //#17530 + $_.barcode = $k[--$j]; //#17531 + if ($eq($_.barcode, "")) { //#17535 + $k[$j++] = 'bwipp.micropdf417emptyData#17534'; //#17534 + $k[$j++] = "The data must not be empty"; //#17534 + bwipp_raiseerror(); //#17534 + } //#17534 + if ($_.rowmult <= 0) { //#17539 + $k[$j++] = 'bwipp.micropdf417badRowMult#17538'; //#17538 + $k[$j++] = "The row multiplier must be greater than zero"; //#17538 + bwipp_raiseerror(); //#17538 + } //#17538 + if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17543 + $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17542'; //#17542 + $k[$j++] = "Cannot combine cca, ccb and raw"; //#17542 + bwipp_raiseerror(); //#17542 + } //#17542 + if ($ne($_.version, "unset")) { //#17564 + $search($_.version, "x"); //#17547 + if ($k[--$j]) { //#17562 + var _D = $k[--$j]; //#17548 + var _E = $k[--$j]; //#17548 + $k[$j++] = _D; //#17548 + $k[$j++] = _E; //#17548 + $j--; //#17548 + var _F = $k[--$j]; //#17549 + var _G = $k[--$j]; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $astore($a(2)); //#17549 + $forall($k[--$j], function() { //#17558 + var _J = $k[--$j]; //#17551 + $k[$j++] = _J; //#17551 + $k[$j++] = true; //#17551 + if (_J.length == 0) { //#17551 + $j--; //#17551 + $k[$j++] = false; //#17551 + } //#17551 + var _K = $k[--$j]; //#17552 + var _L = $k[--$j]; //#17552 + $k[$j++] = _K; //#17554 + $forall(_L, function() { //#17554 + var _M = $k[--$j]; //#17553 + if ((_M < 48) || (_M > 57)) { //#17553 + $j--; //#17553 + $k[$j++] = false; //#17553 + } //#17553 + }); //#17553 + if ($nt($k[--$j])) { //#17557 + $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17556'; //#17556 + $k[$j++] = "version must be formatted as RxC"; //#17556 + bwipp_raiseerror(); //#17556 + } //#17556 + }); //#17556 + $_.rows = $cvi($k[--$j]); //#17559 + $_.columns = $cvi($k[--$j]); //#17560 + } else { //#17562 + $j--; //#17562 + $k[$j++] = 'bwipp.micropdf417badVersionFormat#17562'; //#17562 + $k[$j++] = "version must be formatted as RxC"; //#17562 + bwipp_raiseerror(); //#17562 + } //#17562 + } //#17562 + bwipp_loadctx(bwipp_micropdf417) //#17566 + if (!bwipp_micropdf417.__17656__) { //#17656 + $_ = Object.create($_); //#17656 + $_.T = 0; //#17570 + $_.N = 1; //#17570 + $_.B = 2; //#17570 + $_.A = 0; //#17571 + $_.L = 1; //#17571 + $_.M = 2; //#17571 + $_.P = 3; //#17571 + $_.tl = -1; //#17574 + $_.nl = -2; //#17574 + $_.bl = -3; //#17574 + $_.bl6 = -4; //#17574 + $_.bs = -5; //#17574 + $_.al = -6; //#17577 + $_.ll = -7; //#17577 + $_.ml = -8; //#17577 + $_.pl = -9; //#17577 + $_.as = -10; //#17577 + $_.ps = -11; //#17577 + $_.m05 = -12; //#17580 + $_.m06 = -13; //#17580 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17615 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17618 + $_.alltext = new Map; //#17619 + for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17629 + $_.i = _19; //#17621 + $_.encs = $get($_.charmaps, $_.i); //#17622 + for (var _1D = 0; _1D <= 3; _1D += 1) { //#17628 + $_.j = _1D; //#17624 + var _1G = $get($_.encs, $_.j); //#17625 + $k[$j++] = _1G; //#17625 + if ($eq($type(_1G), 'stringtype')) { //#17625 + var _1J = $get($k[--$j], 0); //#17625 + $k[$j++] = _1J; //#17625 + } //#17625 + var _1K = $k[--$j]; //#17626 + $put($get($_.charvals, $_.j), _1K, $_.i); //#17626 + $put($_.alltext, _1K, -1); //#17627 + } //#17627 + } //#17627 + $_.e = 10000; //#17631 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17639 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17647 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17655 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17655 + bwipp_micropdf417.__17656__ = 1; //#17655 + $_ = Object.getPrototypeOf($_); //#17655 + } //#17655 + if ($_.raw || $_.cca) { //#17677 + $_.datcws = $a($_.barcode.length); //#17660 + $_.i = 0; //#17661 + $_.j = 0; //#17661 + for (;;) { //#17672 + if ($_.i >= ($_.barcode.length - 3)) { //#17663 + break; //#17663 + } //#17663 + if ($get($_.barcode, $_.i) != 94) { //#17664 + break; //#17664 + } //#17664 + var _2a = $geti($_.barcode, $_.i + 1, 3); //#17665 + $k[$j++] = _2a; //#17667 + $k[$j++] = false; //#17667 + for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17667 + var _2d = $get(_2a, _2b); //#17667 + if ((_2d < 48) || (_2d > 57)) { //#17666 + $j--; //#17666 + $k[$j++] = true; //#17666 + } //#17666 + } //#17666 + if ($k[--$j]) { //#17667 + $j--; //#17667 + break; //#17667 + } //#17667 + $_.cw = $cvi($k[--$j]); //#17668 + $put($_.datcws, $_.j, $_.cw); //#17669 + $_.i = $_.i + 4; //#17670 + $_.j = $_.j + 1; //#17671 + } //#17671 + if ($_.i != $_.barcode.length) { //#17675 + $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17674'; //#17674 + $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17674 + bwipp_raiseerror(); //#17674 + } //#17674 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17676 + } //#17676 $_.encb = function() { - $_.in = $k[--$j]; //#17455 - $_.inlen = $_.in.length; //#17456 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17457 - for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17480 - $_.k = _2x; //#17459 - $k[$j++] = Infinity; //#17460 - $aload($geti($_.in, $_.k * 6, 3)); //#17460 - $_.msbs = $a(); //#17460 - $k[$j++] = Infinity; //#17463 - $aload($_.msbs); //#17462 - var _33 = $k[--$j]; //#17462 - var _34 = $k[--$j]; //#17462 - var _35 = $k[--$j]; //#17462 - $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17463 - for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17463 - var _38 = $k[--$j]; //#17463 - $k[$j++] = _38 % 900; //#17463 - $k[$j++] = ~~(_38 / 900); //#17463 - } //#17463 - $_.mscs = $a(); //#17463 - $k[$j++] = Infinity; //#17465 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17465 - $_.lsbs = $a(); //#17465 - $k[$j++] = Infinity; //#17468 - $aload($_.lsbs); //#17467 - var _3F = $k[--$j]; //#17467 - var _3G = $k[--$j]; //#17467 - var _3H = $k[--$j]; //#17467 - $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17468 - for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17468 - var _3K = $k[--$j]; //#17468 - $k[$j++] = _3K % 900; //#17468 - $k[$j++] = ~~(_3K / 900); //#17468 - } //#17468 - $_.lscs = $a(); //#17468 - var _3N = $get($_.lscs, 0); //#17470 - var _3P = $get($_.mscs, 0); //#17470 - $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17471 - var _3T = $get($_.lscs, 1); //#17472 - var _3V = $get($_.mscs, 0); //#17472 - var _3X = $get($_.mscs, 1); //#17472 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17473 - var _3b = $get($_.lscs, 2); //#17474 - var _3d = $get($_.mscs, 0); //#17474 - var _3f = $get($_.mscs, 1); //#17474 - var _3h = $get($_.mscs, 2); //#17474 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17475 - var _3l = $get($_.lscs, 3); //#17476 - var _3n = $get($_.mscs, 1); //#17476 - var _3p = $get($_.mscs, 2); //#17476 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17477 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17479 - } //#17479 - $_.rem = $_.inlen % 6; //#17481 - if ($_.rem != 0) { //#17486 - $k[$j++] = $_.out; //#17484 - $k[$j++] = $_.out.length - $_.rem; //#17484 - $k[$j++] = Infinity; //#17484 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17484 - var _46 = $a(); //#17484 - var _47 = $k[--$j]; //#17485 - $puti($k[--$j], _47, _46); //#17485 - } //#17485 - $k[$j++] = $_.out; //#17487 - }; //#17487 - if ($_.ccb) { //#17496 - $_.barlen = $_.barcode.length; //#17491 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17492 - $put($_.datcws, 0, 920); //#17493 - var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17494 - $put($_.datcws, 1, _4I); //#17494 - $k[$j++] = $_.datcws; //#17495 - $k[$j++] = 2; //#17495 - $k[$j++] = Infinity; //#17495 - $forall($_.barcode); //#17495 - var _4L = $a(); //#17495 - $k[$j++] = _4L; //#17495 - $_.encb(); //#17495 - var _4M = $k[--$j]; //#17495 - var _4N = $k[--$j]; //#17495 - $puti($k[--$j], _4N, _4M); //#17495 - } //#17495 - if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#17852 + $_.in = $k[--$j]; //#17680 + $_.inlen = $_.in.length; //#17681 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17682 + for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17705 + $_.k = _2x; //#17684 + $k[$j++] = Infinity; //#17685 + $aload($geti($_.in, $_.k * 6, 3)); //#17685 + $_.msbs = $a(); //#17685 + $k[$j++] = Infinity; //#17686 + $aload($_.msbs); //#17687 + var _33 = $k[--$j]; //#17687 + var _34 = $k[--$j]; //#17687 + var _35 = $k[--$j]; //#17687 + $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17688 + for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17688 + var _38 = $k[--$j]; //#17688 + $k[$j++] = _38 % 900; //#17688 + $k[$j++] = ~~(_38 / 900); //#17688 + } //#17688 + $_.mscs = $a(); //#17688 + $k[$j++] = Infinity; //#17690 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17690 + $_.lsbs = $a(); //#17690 + $k[$j++] = Infinity; //#17691 + $aload($_.lsbs); //#17692 + var _3F = $k[--$j]; //#17692 + var _3G = $k[--$j]; //#17692 + var _3H = $k[--$j]; //#17692 + $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17693 + for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17693 + var _3K = $k[--$j]; //#17693 + $k[$j++] = _3K % 900; //#17693 + $k[$j++] = ~~(_3K / 900); //#17693 + } //#17693 + $_.lscs = $a(); //#17693 + var _3N = $get($_.lscs, 0); //#17695 + var _3P = $get($_.mscs, 0); //#17695 + $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17696 + var _3T = $get($_.lscs, 1); //#17697 + var _3V = $get($_.mscs, 0); //#17697 + var _3X = $get($_.mscs, 1); //#17697 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17698 + var _3b = $get($_.lscs, 2); //#17699 + var _3d = $get($_.mscs, 0); //#17699 + var _3f = $get($_.mscs, 1); //#17699 + var _3h = $get($_.mscs, 2); //#17699 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17700 + var _3l = $get($_.lscs, 3); //#17701 + var _3n = $get($_.mscs, 1); //#17701 + var _3p = $get($_.mscs, 2); //#17701 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17702 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17704 + } //#17704 + $_.rem = $_.inlen % 6; //#17706 + if ($_.rem != 0) { //#17711 + $k[$j++] = $_.out; //#17709 + $k[$j++] = $_.out.length - $_.rem; //#17709 + $k[$j++] = Infinity; //#17709 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17709 + var _46 = $a(); //#17709 + var _47 = $k[--$j]; //#17710 + $puti($k[--$j], _47, _46); //#17710 + } //#17710 + $k[$j++] = $_.out; //#17712 + }; //#17712 + if ($_.ccb) { //#17721 + $_.barlen = $_.barcode.length; //#17716 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17717 + $put($_.datcws, 0, 920); //#17718 + var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17719 + $put($_.datcws, 1, _4I); //#17719 + $k[$j++] = $_.datcws; //#17720 + $k[$j++] = 2; //#17720 + $k[$j++] = Infinity; //#17720 + $forall($_.barcode); //#17720 + var _4L = $a(); //#17720 + $k[$j++] = _4L; //#17720 + $_.encb(); //#17720 + var _4M = $k[--$j]; //#17720 + var _4N = $k[--$j]; //#17720 + $puti($k[--$j], _4N, _4M); //#17720 + } //#17720 + if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#18122 var _4U = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#17504 - $_.fncvals = _4U; //#17506 - $k[$j++] = 'msg'; //#17507 - $k[$j++] = $_.barcode; //#17507 - $k[$j++] = $_.fncvals; //#17507 - bwipp_parseinput(); //#17507 - var _4X = $k[--$j]; //#17507 - $_[$k[--$j]] = _4X; //#17507 - $_.msglen = $_.msg.length; //#17508 - $k[$j++] = Infinity; //#17511 - for (var _4b = 0, _4c = $_.msglen; _4b < _4c; _4b++) { //#17511 - $k[$j++] = 0; //#17511 - } //#17511 - $k[$j++] = 0; //#17511 - $_.numdigits = $a(); //#17511 - $k[$j++] = Infinity; //#17512 - for (var _4f = 0, _4g = $_.msglen; _4f < _4g; _4f++) { //#17512 - $k[$j++] = 0; //#17512 - } //#17512 - $k[$j++] = 0; //#17512 - $_.numtext = $a(); //#17512 - $k[$j++] = Infinity; //#17513 - for (var _4j = 0, _4k = $_.msglen; _4j < _4k; _4j++) { //#17513 - $k[$j++] = 0; //#17513 - } //#17513 - $k[$j++] = 0; //#17513 - $_.numbytes = $a(); //#17513 - $k[$j++] = Infinity; //#17514 - for (var _4n = 0, _4o = $_.msglen; _4n < _4o; _4n++) { //#17514 - $k[$j++] = 0; //#17514 - } //#17514 - $_.iseci = $a(); //#17514 - for (var _4r = $_.msglen - 1; _4r >= 0; _4r -= 1) { //#17527 - $_.i = _4r; //#17516 - var _4u = $get($_.msg, $_.i); //#17517 - if ((_4u >= 48) && (_4u <= 57)) { //#17519 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17518 - } //#17518 - var _54 = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17520 - if (_54 && ($get($_.numdigits, $_.i) < 13)) { //#17522 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17521 - } //#17521 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17525 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17524 - } //#17524 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17526 - } //#17526 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17528 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17529 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17530 - $_.seq = $a([]); //#17532 - $_.seqlen = 0; //#17532 - $_.state = $_.B; //#17532 - $_.p = 0; //#17532 - for (;;) { //#17586 - if ($_.p == $_.msglen) { //#17533 - break; //#17533 - } //#17533 - if ($get($_.iseci, $_.p)) { //#17584 - $_.eci = $get($_.msg, $_.p); //#17535 - $k[$j++] = Infinity; //#17538 - $aload($_.seq); //#17537 - $k[$j++] = $a([$_.eci]); //#17538 - $_.seq = $a(); //#17538 - $_.p = $_.p + 1; //#17540 - $k[$j++] = 'seqlen'; //#17541 - $k[$j++] = $_.seqlen; //#17541 - if ($_.eci <= -1810900) { //#17541 - $k[$j++] = 2; //#17541 - } else { //#17541 - var _5x = ($_.eci <= -1000900) ? 3 : 2; //#17541 - $k[$j++] = _5x; //#17541 - } //#17541 - var _5y = $k[--$j]; //#17541 - var _5z = $k[--$j]; //#17541 - $_[$k[--$j]] = $f(_5z + _5y); //#17541 - } else { //#17584 - $_.n = $get($_.numdigits, $_.p); //#17543 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17584 - $k[$j++] = Infinity; //#17548 - $aload($_.seq); //#17546 - $k[$j++] = $_.nl; //#17548 - $k[$j++] = Infinity; //#17548 - $aload($geti($_.msg, $_.p, $_.n)); //#17548 - var _6E = $a(); //#17548 - $k[$j++] = _6E; //#17548 - $_.seq = $a(); //#17548 - $_.state = $_.N; //#17550 - $_.p = $f($_.p + $_.n); //#17551 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17552 - } else { //#17584 - $_.t = $get($_.numtext, $_.p); //#17554 - if ($_.t >= 5) { //#17584 - $k[$j++] = Infinity; //#17561 - $aload($_.seq); //#17557 - if ($_.state != $_.T) { //#17560 - $k[$j++] = $_.tl; //#17559 - } //#17559 - $k[$j++] = Infinity; //#17561 - $aload($geti($_.msg, $_.p, $_.t)); //#17561 - var _6X = $a(); //#17561 - $k[$j++] = _6X; //#17561 - $_.seq = $a(); //#17561 - $_.state = $_.T; //#17563 - $_.p = $f($_.p + $_.t); //#17564 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17565 - } else { //#17584 - $_.b = $get($_.numbytes, $_.p); //#17567 - if (($_.b == 1) && ($_.state == $_.T)) { //#17584 - $k[$j++] = Infinity; //#17572 - $aload($_.seq); //#17570 - $k[$j++] = $_.bs; //#17572 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#17572 - $_.seq = $a(); //#17572 - $_.p = $f($_.p + $_.b); //#17574 - $_.seqlen = $f($_.seqlen + 2); //#17575 - } else { //#17584 - $k[$j++] = Infinity; //#17580 - $aload($_.seq); //#17578 - var _6w = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17579 - $k[$j++] = _6w; //#17580 - $k[$j++] = Infinity; //#17580 - $aload($geti($_.msg, $_.p, $_.b)); //#17580 - var _71 = $a(); //#17580 - $k[$j++] = _71; //#17580 - $_.seq = $a(); //#17580 - $_.state = $_.B; //#17582 - $_.p = $f($_.p + $_.b); //#17583 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - $k[$j++] = Infinity; //#17589 - $k[$j++] = $_.tl; //#17589 - $k[$j++] = 900; //#17589 - $k[$j++] = $_.bl; //#17589 - $k[$j++] = 901; //#17589 - $k[$j++] = $_.bl6; //#17589 - $k[$j++] = 924; //#17589 - $k[$j++] = $_.nl; //#17589 - $k[$j++] = 902; //#17589 - $k[$j++] = $_.bs; //#17589 - $k[$j++] = 913; //#17589 - $_.latchcws = $d(); //#17590 + ]); //#17732 + $_.fncvals = _4U; //#17733 + $k[$j++] = 'msg'; //#17734 + $k[$j++] = $_.barcode; //#17734 + $k[$j++] = $_.fncvals; //#17734 + bwipp_parseinput(); //#17734 + var _4X = $k[--$j]; //#17734 + $_[$k[--$j]] = _4X; //#17734 + $_.msglen = $_.msg.length; //#17735 + if ($_.msglen >= 9) { //#17753 + $aload($geti($_.msg, 0, 7)); //#17739 + var _4d = $k[--$j]; //#17740 + var _4e = $k[--$j]; //#17740 + $k[$j++] = _4d == 29; //#17740 + $k[$j++] = _4e; //#17740 + $j--; //#17740 + var _4f = $k[--$j]; //#17740 + var _4g = $k[--$j]; //#17740 + var _4h = $k[--$j]; //#17740 + var _4i = $k[--$j]; //#17741 + var _4j = $k[--$j]; //#17741 + var _4k = $k[--$j]; //#17741 + if (((((_4f && (_4g == 48)) && (_4h == 30)) && (_4i == 62)) && (_4j == 41)) && (_4k == 91)) { //#17752 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#17742 + var _4o = $k[--$j]; //#17743 + var _4p = $k[--$j]; //#17743 + if ((_4o == 4) && (_4p == 30)) { //#17751 + if ($get($_.msg, 5) == 53) { //#17748 + $k[$j++] = Infinity; //#17745 + $k[$j++] = $_.m05; //#17745 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17745 + $_.msg = $a(); //#17745 + } else { //#17748 + if ($get($_.msg, 5) == 54) { //#17749 + $k[$j++] = Infinity; //#17748 + $k[$j++] = $_.m06; //#17748 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17748 + $_.msg = $a(); //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + $_.msglen = $_.msg.length; //#17754 + $k[$j++] = Infinity; //#17757 + for (var _56 = 0, _57 = $_.msglen; _56 < _57; _56++) { //#17757 + $k[$j++] = 0; //#17757 + } //#17757 + $k[$j++] = 0; //#17757 + $_.numdigits = $a(); //#17757 + $k[$j++] = Infinity; //#17758 + for (var _5A = 0, _5B = $_.msglen; _5A < _5B; _5A++) { //#17758 + $k[$j++] = 0; //#17758 + } //#17758 + $k[$j++] = 0; //#17758 + $_.numtext = $a(); //#17758 + $k[$j++] = Infinity; //#17759 + for (var _5E = 0, _5F = $_.msglen; _5E < _5F; _5E++) { //#17759 + $k[$j++] = 0; //#17759 + } //#17759 + $k[$j++] = 0; //#17759 + $_.numbytes = $a(); //#17759 + $k[$j++] = Infinity; //#17760 + for (var _5I = 0, _5J = $_.msglen; _5I < _5J; _5I++) { //#17760 + $k[$j++] = 0; //#17760 + } //#17760 + $_.iseci = $a(); //#17760 + for (var _5M = $_.msglen - 1; _5M >= 0; _5M -= 1) { //#17773 + $_.i = _5M; //#17762 + var _5P = $get($_.msg, $_.i); //#17763 + if ((_5P >= 48) && (_5P <= 57)) { //#17765 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17764 + } //#17764 + var _5Z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17766 + if (_5Z && ($get($_.numdigits, $_.i) < 13)) { //#17768 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17767 + } //#17767 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17771 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17770 + } //#17770 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17772 + } //#17772 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17774 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17775 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17776 + $_.seq = $a([]); //#17778 + $_.seqlen = 0; //#17778 + $_.state = $_.B; //#17778 + $_.p = 0; //#17778 + for (;;) { //#17840 + if ($_.p == $_.msglen) { //#17779 + break; //#17779 + } //#17779 + var _6H = $get($_.msg, $_.p); //#17780 + if (($_.p == 0) && ((_6H == $_.m05) || (_6H == $_.m06))) { //#17838 + $k[$j++] = Infinity; //#17781 + $aload($_.seq); //#17782 + var _6P = ($get($_.msg, $_.p) == $_.m05) ? $_.m05 : $_.m06; //#17783 + $k[$j++] = _6P; //#17783 + $_.seq = $a(); //#17783 + $_.p = $_.p + 1; //#17785 + $_.seqlen = $_.seqlen + 1; //#17786 + } else { //#17838 + if ($get($_.iseci, $_.p)) { //#17838 + $_.eci = $get($_.msg, $_.p); //#17789 + $k[$j++] = Infinity; //#17790 + $aload($_.seq); //#17791 + $k[$j++] = $a([$_.eci]); //#17792 + $_.seq = $a(); //#17792 + $_.p = $_.p + 1; //#17794 + $k[$j++] = 'seqlen'; //#17795 + $k[$j++] = $_.seqlen; //#17795 + if ($_.eci <= -1810900) { //#17795 + $k[$j++] = 2; //#17795 + } else { //#17795 + var _6h = ($_.eci <= -1000900) ? 3 : 2; //#17795 + $k[$j++] = _6h; //#17795 + } //#17795 + var _6i = $k[--$j]; //#17795 + var _6j = $k[--$j]; //#17795 + $_[$k[--$j]] = $f(_6j + _6i); //#17795 + } else { //#17838 + $_.n = $get($_.numdigits, $_.p); //#17797 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17838 + $k[$j++] = Infinity; //#17799 + $aload($_.seq); //#17800 + $k[$j++] = $_.nl; //#17802 + $k[$j++] = Infinity; //#17802 + $aload($geti($_.msg, $_.p, $_.n)); //#17802 + var _6y = $a(); //#17802 + $k[$j++] = _6y; //#17802 + $_.seq = $a(); //#17802 + $_.state = $_.N; //#17804 + $_.p = $f($_.p + $_.n); //#17805 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17806 + } else { //#17838 + $_.t = $get($_.numtext, $_.p); //#17808 + if ($_.t >= 5) { //#17838 + $k[$j++] = Infinity; //#17810 + $aload($_.seq); //#17811 + if ($_.state != $_.T) { //#17814 + $k[$j++] = $_.tl; //#17813 + } //#17813 + $k[$j++] = Infinity; //#17815 + $aload($geti($_.msg, $_.p, $_.t)); //#17815 + var _7H = $a(); //#17815 + $k[$j++] = _7H; //#17815 + $_.seq = $a(); //#17815 + $_.state = $_.T; //#17817 + $_.p = $f($_.p + $_.t); //#17818 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17819 + } else { //#17838 + $_.b = $get($_.numbytes, $_.p); //#17821 + if (($_.b == 1) && ($_.state == $_.T)) { //#17838 + $k[$j++] = Infinity; //#17823 + $aload($_.seq); //#17824 + $k[$j++] = $_.bs; //#17826 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#17826 + $_.seq = $a(); //#17826 + $_.p = $f($_.p + $_.b); //#17828 + $_.seqlen = $f($_.seqlen + 2); //#17829 + } else { //#17838 + $k[$j++] = Infinity; //#17831 + $aload($_.seq); //#17832 + var _7g = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17833 + $k[$j++] = _7g; //#17834 + $k[$j++] = Infinity; //#17834 + $aload($geti($_.msg, $_.p, $_.b)); //#17834 + var _7l = $a(); //#17834 + $k[$j++] = _7l; //#17834 + $_.seq = $a(); //#17834 + $_.state = $_.B; //#17836 + $_.p = $f($_.p + $_.b); //#17837 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + $k[$j++] = Infinity; //#17842 + $k[$j++] = $_.tl; //#17843 + $k[$j++] = 900; //#17843 + $k[$j++] = $_.bl; //#17843 + $k[$j++] = 901; //#17843 + $k[$j++] = $_.bl6; //#17843 + $k[$j++] = 924; //#17843 + $k[$j++] = $_.nl; //#17843 + $k[$j++] = 902; //#17843 + $k[$j++] = $_.bs; //#17843 + $k[$j++] = 913; //#17843 + $k[$j++] = $_.m05; //#17843 + $k[$j++] = 916; //#17843 + $k[$j++] = $_.m06; //#17843 + $k[$j++] = 917; //#17843 + $_.latchcws = $d(); //#17844 $_.enca = function() { - var _7I = $get($get($_.charvals, $_.A), $k[--$j]); //#17593 - $k[$j++] = _7I; //#17593 - }; //#17593 + var _84 = $get($get($_.charvals, $_.A), $k[--$j]); //#17847 + $k[$j++] = _84; //#17847 + }; //#17847 $_.encl = function() { - var _7N = $get($get($_.charvals, $_.L), $k[--$j]); //#17594 - $k[$j++] = _7N; //#17594 - }; //#17594 + var _89 = $get($get($_.charvals, $_.L), $k[--$j]); //#17848 + $k[$j++] = _89; //#17848 + }; //#17848 $_.encm = function() { - var _7S = $get($get($_.charvals, $_.M), $k[--$j]); //#17595 - $k[$j++] = _7S; //#17595 - }; //#17595 + var _8E = $get($get($_.charvals, $_.M), $k[--$j]); //#17849 + $k[$j++] = _8E; //#17849 + }; //#17849 $_.encp = function() { - var _7X = $get($get($_.charvals, $_.P), $k[--$j]); //#17596 - $k[$j++] = _7X; //#17596 - }; //#17596 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17597 + var _8J = $get($get($_.charvals, $_.P), $k[--$j]); //#17850 + $k[$j++] = _8J; //#17850 + }; //#17850 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17851 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#17600 - $_.l = $_.l + 1; //#17601 - }; //#17601 + $put($_.text, $_.l, $k[--$j]); //#17854 + $_.l = $_.l + 1; //#17855 + }; //#17855 $_.enct = function() { - $_.in = $k[--$j]; //#17606 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17608 - $put($_.curlen, $_.submode, 0); //#17609 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17610 - $forall($_.in, function() { //#17680 - $_.char = $k[--$j]; //#17615 - for (;;) { //#17636 - $_.imp = false; //#17619 - var _7w = $a([$_.A, $_.L, $_.M, $_.P]); //#17620 - for (var _7x = 0, _7y = _7w.length; _7x < _7y; _7x++) { //#17634 - $_.x = $get(_7w, _7x); //#17621 - var _84 = $a([$_.A, $_.L, $_.M, $_.P]); //#17622 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#17633 - $_.y = $get(_84, _85); //#17623 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17624 - if ($_.cost < $get($_.curlen, $_.y)) { //#17632 - $put($_.curlen, $_.y, $_.cost); //#17626 - $k[$j++] = $_.curseq; //#17629 - $k[$j++] = $_.y; //#17629 - $k[$j++] = Infinity; //#17629 - $aload($get($_.curseq, $_.x)); //#17628 - $aload($get($get($_.latseq, $_.x), $_.y)); //#17629 - var _8X = $a(); //#17629 - var _8Y = $k[--$j]; //#17630 - $put($k[--$j], _8Y, _8X); //#17630 - $_.imp = true; //#17631 - } //#17631 - } //#17631 - } //#17631 - if (!$_.imp) { //#17635 - break; //#17635 - } //#17635 - } //#17635 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17639 - $_.nxtseq = $a(4); //#17640 - var _8l = $a([$_.A, $_.L, $_.M, $_.P]); //#17642 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#17675 - $_.x = $get(_8l, _8m); //#17643 - for (;;) { //#17673 - var _8t = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17647 - if (!_8t) { //#17647 - break; //#17647 - } //#17647 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#17650 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#17654 - $put($_.nxtlen, $_.x, $_.cost); //#17652 - $k[$j++] = $_.nxtseq; //#17653 - $k[$j++] = $_.x; //#17653 - $k[$j++] = Infinity; //#17653 - $aload($get($_.curseq, $_.x)); //#17653 - $k[$j++] = $_.char; //#17653 - var _9A = $a(); //#17653 - var _9B = $k[--$j]; //#17653 - $put($k[--$j], _9B, _9A); //#17653 - } //#17653 - var _9H = $a([$_.A, $_.L, $_.M, $_.P]); //#17657 - for (var _9I = 0, _9J = _9H.length; _9I < _9J; _9I++) { //#17670 - $_.y = $get(_9H, _9I); //#17658 - if ($ne($_.x, $_.y)) { //#17669 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17660 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#17668 - $put($_.nxtlen, $_.y, $_.cost); //#17662 - $k[$j++] = $_.nxtseq; //#17666 - $k[$j++] = $_.y; //#17666 - $k[$j++] = Infinity; //#17666 - $aload($get($_.curseq, $_.y)); //#17664 - var _9j = ($_.x == $_.A) ? $_.as : $_.ps; //#17665 - $k[$j++] = _9j; //#17666 - $k[$j++] = $_.char; //#17666 - var _9l = $a(); //#17666 - var _9m = $k[--$j]; //#17667 - $put($k[--$j], _9m, _9l); //#17667 - } //#17667 - } //#17667 - } //#17667 - break; //#17672 - } //#17672 - } //#17672 - $_.curlen = $_.nxtlen; //#17677 - $_.curseq = $_.nxtseq; //#17678 - }); //#17678 - $_.minseq = $_.e; //#17683 - var _9v = $a([$_.A, $_.L, $_.M, $_.P]); //#17684 - for (var _9w = 0, _9x = _9v.length; _9w < _9x; _9w++) { //#17690 - $_.k = $get(_9v, _9w); //#17685 - if ($get($_.curlen, $_.k) < $_.minseq) { //#17689 - $_.minseq = $get($_.curlen, $_.k); //#17687 - $_.txtseq = $get($_.curseq, $_.k); //#17688 - } //#17688 - } //#17688 - $_.text = $a($_.minseq); //#17693 - $_.k = 0; //#17694 - $_.l = 0; //#17694 - for (;;) { //#17714 - if ($_.k >= $_.txtseq.length) { //#17695 - break; //#17695 - } //#17695 - $_.char = $get($_.txtseq, $_.k); //#17697 - $k[$j++] = $_.char; //#17700 + $_.in = $k[--$j]; //#17860 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17862 + $put($_.curlen, $_.submode, 0); //#17863 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17864 + $forall($_.in, function() { //#17934 + $_.char = $k[--$j]; //#17869 + for (;;) { //#17890 + $_.imp = false; //#17873 + var _8i = $a([$_.A, $_.L, $_.M, $_.P]); //#17874 + for (var _8j = 0, _8k = _8i.length; _8j < _8k; _8j++) { //#17888 + $_.x = $get(_8i, _8j); //#17875 + var _8q = $a([$_.A, $_.L, $_.M, $_.P]); //#17876 + for (var _8r = 0, _8s = _8q.length; _8r < _8s; _8r++) { //#17887 + $_.y = $get(_8q, _8r); //#17877 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17878 + if ($_.cost < $get($_.curlen, $_.y)) { //#17886 + $put($_.curlen, $_.y, $_.cost); //#17880 + $k[$j++] = $_.curseq; //#17883 + $k[$j++] = $_.y; //#17883 + $k[$j++] = Infinity; //#17881 + $aload($get($_.curseq, $_.x)); //#17882 + $aload($get($get($_.latseq, $_.x), $_.y)); //#17883 + var _9J = $a(); //#17883 + var _9K = $k[--$j]; //#17884 + $put($k[--$j], _9K, _9J); //#17884 + $_.imp = true; //#17885 + } //#17885 + } //#17885 + } //#17885 + if (!$_.imp) { //#17889 + break; //#17889 + } //#17889 + } //#17889 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17893 + $_.nxtseq = $a(4); //#17894 + var _9X = $a([$_.A, $_.L, $_.M, $_.P]); //#17896 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#17929 + $_.x = $get(_9X, _9Y); //#17897 + for (;;) { //#17927 + var _9f = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17901 + if (!_9f) { //#17901 + break; //#17901 + } //#17901 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#17904 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#17908 + $put($_.nxtlen, $_.x, $_.cost); //#17906 + $k[$j++] = $_.nxtseq; //#17907 + $k[$j++] = $_.x; //#17907 + $k[$j++] = Infinity; //#17907 + $aload($get($_.curseq, $_.x)); //#17907 + $k[$j++] = $_.char; //#17907 + var _9w = $a(); //#17907 + var _9x = $k[--$j]; //#17907 + $put($k[--$j], _9x, _9w); //#17907 + } //#17907 + var _A3 = $a([$_.A, $_.L, $_.M, $_.P]); //#17911 + for (var _A4 = 0, _A5 = _A3.length; _A4 < _A5; _A4++) { //#17924 + $_.y = $get(_A3, _A4); //#17912 + if ($ne($_.x, $_.y)) { //#17923 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17914 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#17922 + $put($_.nxtlen, $_.y, $_.cost); //#17916 + $k[$j++] = $_.nxtseq; //#17920 + $k[$j++] = $_.y; //#17920 + $k[$j++] = Infinity; //#17917 + $aload($get($_.curseq, $_.y)); //#17918 + var _AV = ($_.x == $_.A) ? $_.as : $_.ps; //#17919 + $k[$j++] = _AV; //#17920 + $k[$j++] = $_.char; //#17920 + var _AX = $a(); //#17920 + var _AY = $k[--$j]; //#17921 + $put($k[--$j], _AY, _AX); //#17921 + } //#17921 + } //#17921 + } //#17921 + break; //#17926 + } //#17926 + } //#17926 + $_.curlen = $_.nxtlen; //#17931 + $_.curseq = $_.nxtseq; //#17932 + }); //#17932 + $_.minseq = $_.e; //#17937 + var _Ah = $a([$_.A, $_.L, $_.M, $_.P]); //#17938 + for (var _Ai = 0, _Aj = _Ah.length; _Ai < _Aj; _Ai++) { //#17944 + $_.k = $get(_Ah, _Ai); //#17939 + if ($get($_.curlen, $_.k) < $_.minseq) { //#17943 + $_.minseq = $get($_.curlen, $_.k); //#17941 + $_.txtseq = $get($_.curseq, $_.k); //#17942 + } //#17942 + } //#17942 + $_.text = $a($_.minseq); //#17947 + $_.k = 0; //#17948 + $_.l = 0; //#17948 + for (;;) { //#17968 + if ($_.k >= $_.txtseq.length) { //#17949 + break; //#17949 + } //#17949 + $_.char = $get($_.txtseq, $_.k); //#17951 + $k[$j++] = $_.char; //#17954 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#17700 - $_.addtotext(); //#17700 - $_.k = $_.k + 1; //#17701 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17707 - $k[$j++] = $get($_.txtseq, $_.k); //#17705 - if ($_.char == $_.as) { //#17705 - $_.enca(); //#17705 - } else { //#17705 - $_.encp(); //#17705 - } //#17705 - $_.addtotext(); //#17705 - $_.k = $_.k + 1; //#17706 - } //#17706 - if ($_.char == $_.al) { //#17710 - $_.submode = $_.A; //#17710 - } //#17710 - if ($_.char == $_.ll) { //#17711 - $_.submode = $_.L; //#17711 - } //#17711 - if ($_.char == $_.ml) { //#17712 - $_.submode = $_.M; //#17712 - } //#17712 - if ($_.char == $_.pl) { //#17713 - $_.submode = $_.P; //#17713 - } //#17713 - } //#17713 - if (($_.text.length % 2) == 1) { //#17761 - if ($_.submode == $_.P) { //#17757 - $k[$j++] = 'pad'; //#17718 - $k[$j++] = $_.al; //#17718 - $_.encp(); //#17718 - var _Am = $k[--$j]; //#17718 - $_[$k[--$j]] = _Am; //#17718 - $_.submode = $_.A; //#17719 - } else { //#17757 - $_.nextecitext = false; //#17722 - for (var _As = $_.i + 1, _Ar = $_.seq.length - 1; _As <= _Ar; _As += 1) { //#17729 - $_.ti = _As; //#17725 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17726 - $_.nextecitext = false; //#17726 - break; //#17726 - } //#17726 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17727 - break; //#17727 - } //#17727 - $_.nextecitext = true; //#17728 - } //#17728 - if ($_.nextecitext) { //#17757 - if ($_.submode == $_.A) { //#17754 - var _BB = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17732 - if (_BB) { //#17737 - $k[$j++] = 'pad'; //#17733 - $k[$j++] = $_.ll; //#17733 - $_.enca(); //#17733 - var _BD = $k[--$j]; //#17733 - $_[$k[--$j]] = _BD; //#17733 - $_.submode = $_.L; //#17734 - } else { //#17737 - $k[$j++] = 'pad'; //#17736 - $k[$j++] = $_.ml; //#17736 - $_.enca(); //#17736 - var _BH = $k[--$j]; //#17736 - $_[$k[--$j]] = _BH; //#17736 - $_.submode = $_.M; //#17737 - } //#17737 - } else { //#17754 - if ($_.submode == $_.M) { //#17754 - var _BT = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17741 - if (_BT) { //#17750 - $k[$j++] = 'pad'; //#17742 - $k[$j++] = $_.ll; //#17742 - $_.encm(); //#17742 - var _BV = $k[--$j]; //#17742 - $_[$k[--$j]] = _BV; //#17742 - $_.submode = $_.L; //#17743 - } else { //#17750 - var _Bf = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17745 - if (_Bf) { //#17750 - $k[$j++] = 'pad'; //#17746 - $k[$j++] = $_.pl; //#17746 - $_.encm(); //#17746 - var _Bh = $k[--$j]; //#17746 - $_[$k[--$j]] = _Bh; //#17746 - $_.submode = $_.P; //#17747 - } else { //#17750 - $k[$j++] = 'pad'; //#17749 - $k[$j++] = $_.al; //#17749 - $_.encm(); //#17749 - var _Bl = $k[--$j]; //#17749 - $_[$k[--$j]] = _Bl; //#17749 - $_.submode = $_.A; //#17750 - } //#17750 - } //#17750 - } else { //#17754 - $k[$j++] = 'pad'; //#17753 - $k[$j++] = $_.ml; //#17753 - $_.encl(); //#17753 - var _Bp = $k[--$j]; //#17753 - $_[$k[--$j]] = _Bp; //#17753 - $_.submode = $_.M; //#17754 - } //#17754 - } //#17754 - } else { //#17757 - $k[$j++] = 'pad'; //#17757 - $k[$j++] = $_.ps; //#17757 + } //#17954 + $_.addtotext(); //#17954 + $_.k = $_.k + 1; //#17955 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17961 + $k[$j++] = $get($_.txtseq, $_.k); //#17959 + if ($_.char == $_.as) { //#17959 + $_.enca(); //#17959 + } else { //#17959 + $_.encp(); //#17959 + } //#17959 + $_.addtotext(); //#17959 + $_.k = $_.k + 1; //#17960 + } //#17960 + if ($_.char == $_.al) { //#17964 + $_.submode = $_.A; //#17964 + } //#17964 + if ($_.char == $_.ll) { //#17965 + $_.submode = $_.L; //#17965 + } //#17965 + if ($_.char == $_.ml) { //#17966 + $_.submode = $_.M; //#17966 + } //#17966 + if ($_.char == $_.pl) { //#17967 + $_.submode = $_.P; //#17967 + } //#17967 + } //#17967 + if (($_.text.length % 2) == 1) { //#18015 + if ($_.submode == $_.P) { //#18011 + $k[$j++] = 'pad'; //#17972 + $k[$j++] = $_.al; //#17972 + $_.encp(); //#17972 + var _BY = $k[--$j]; //#17972 + $_[$k[--$j]] = _BY; //#17972 + $_.submode = $_.A; //#17973 + } else { //#18011 + $_.nextecitext = false; //#17976 + for (var _Be = $_.i + 1, _Bd = $_.seq.length - 1; _Be <= _Bd; _Be += 1) { //#17983 + $_.ti = _Be; //#17979 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17980 + $_.nextecitext = false; //#17980 + break; //#17980 + } //#17980 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17981 + break; //#17981 + } //#17981 + $_.nextecitext = true; //#17982 + } //#17982 + if ($_.nextecitext) { //#18011 + if ($_.submode == $_.A) { //#18008 + var _Bx = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17986 + if (_Bx) { //#17991 + $k[$j++] = 'pad'; //#17987 + $k[$j++] = $_.ll; //#17987 + $_.enca(); //#17987 + var _Bz = $k[--$j]; //#17987 + $_[$k[--$j]] = _Bz; //#17987 + $_.submode = $_.L; //#17988 + } else { //#17991 + $k[$j++] = 'pad'; //#17990 + $k[$j++] = $_.ml; //#17990 + $_.enca(); //#17990 + var _C3 = $k[--$j]; //#17990 + $_[$k[--$j]] = _C3; //#17990 + $_.submode = $_.M; //#17991 + } //#17991 + } else { //#18008 + if ($_.submode == $_.M) { //#18008 + var _CF = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17995 + if (_CF) { //#18004 + $k[$j++] = 'pad'; //#17996 + $k[$j++] = $_.ll; //#17996 + $_.encm(); //#17996 + var _CH = $k[--$j]; //#17996 + $_[$k[--$j]] = _CH; //#17996 + $_.submode = $_.L; //#17997 + } else { //#18004 + var _CR = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17999 + if (_CR) { //#18004 + $k[$j++] = 'pad'; //#18000 + $k[$j++] = $_.pl; //#18000 + $_.encm(); //#18000 + var _CT = $k[--$j]; //#18000 + $_[$k[--$j]] = _CT; //#18000 + $_.submode = $_.P; //#18001 + } else { //#18004 + $k[$j++] = 'pad'; //#18003 + $k[$j++] = $_.al; //#18003 + $_.encm(); //#18003 + var _CX = $k[--$j]; //#18003 + $_[$k[--$j]] = _CX; //#18003 + $_.submode = $_.A; //#18004 + } //#18004 + } //#18004 + } else { //#18008 + $k[$j++] = 'pad'; //#18007 + $k[$j++] = $_.ml; //#18007 + $_.encl(); //#18007 + var _Cb = $k[--$j]; //#18007 + $_[$k[--$j]] = _Cb; //#18007 + $_.submode = $_.M; //#18008 + } //#18008 + } //#18008 + } else { //#18011 + $k[$j++] = 'pad'; //#18011 + $k[$j++] = $_.ps; //#18011 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#17757 - var _Bx = $k[--$j]; //#17757 - $_[$k[--$j]] = _Bx; //#17757 - } //#17757 - } //#17757 - $k[$j++] = Infinity; //#17760 - $aload($_.text); //#17760 - $k[$j++] = $_.pad; //#17760 - $_.text = $a(); //#17760 - } //#17760 - $_.out = $a(~~($_.text.length / 2)); //#17763 - for (var _C6 = 0, _C5 = $_.out.length - 1; _C6 <= _C5; _C6 += 1) { //#17767 - $_.k = _C6; //#17765 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#17766 - } //#17766 - $k[$j++] = $_.out; //#17769 - }; //#17769 + } //#18011 + var _Cj = $k[--$j]; //#18011 + $_[$k[--$j]] = _Cj; //#18011 + } //#18011 + } //#18011 + $k[$j++] = Infinity; //#18014 + $aload($_.text); //#18014 + $k[$j++] = $_.pad; //#18014 + $_.text = $a(); //#18014 + } //#18014 + $_.out = $a(~~($_.text.length / 2)); //#18017 + for (var _Cs = 0, _Cr = $_.out.length - 1; _Cs <= _Cr; _Cs += 1) { //#18021 + $_.k = _Cs; //#18019 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#18020 + } //#18020 + $k[$j++] = $_.out; //#18023 + }; //#18023 $_.encn = function() { - $_.in = $k[--$j]; //#17774 - $_.out = $a([]); //#17775 - for (var _CK = 0, _CJ = $_.in.length - 1; _CK <= _CJ; _CK += 44) { //#17803 - $_.k = _CK; //#17777 - $k[$j++] = Infinity; //#17780 - var _CP = $_.in.length - $_.k; //#17779 - $k[$j++] = 1; //#17779 - $k[$j++] = $_.in; //#17779 - $k[$j++] = $_.k; //#17779 - $k[$j++] = _CP; //#17779 - if (_CP > 44) { //#17779 - $j--; //#17779 - $k[$j++] = 44; //#17779 - } //#17779 - var _CQ = $k[--$j]; //#17779 - var _CR = $k[--$j]; //#17779 - var _CT = $geti($k[--$j], _CR, _CQ); //#17779 - for (var _CU = 0, _CV = _CT.length; _CU < _CV; _CU++) { //#17780 - $k[$j++] = $f($get(_CT, _CU) - 48); //#17780 - } //#17780 - $_.gmod = $a(); //#17780 - $_.cwn = $a([]); //#17782 - for (;;) { //#17801 - $_.dv = 900; //#17783 - $_.gmul = $a([]); //#17784 - $_.val = 0; //#17784 - for (;;) { //#17796 - if ($_.gmod.length == 0) { //#17785 - break; //#17785 - } //#17785 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#17786 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#17787 - if ($_.val < $_.dv) { //#17793 - if ($_.gmul.length != 0) { //#17791 - $k[$j++] = Infinity; //#17790 - $aload($_.gmul); //#17790 - $k[$j++] = 0; //#17790 - $_.gmul = $a(); //#17790 - } //#17790 - } else { //#17793 - $k[$j++] = Infinity; //#17793 - $aload($_.gmul); //#17793 - $k[$j++] = ~~($_.val / $_.dv); //#17793 - $_.gmul = $a(); //#17793 - } //#17793 - $_.val = $_.val % $_.dv; //#17795 - } //#17795 - $_.dv = $_.val; //#17797 - $k[$j++] = Infinity; //#17798 - $k[$j++] = $_.dv; //#17798 - $aload($_.cwn); //#17798 - $_.cwn = $a(); //#17798 - $_.gmod = $_.gmul; //#17799 - if ($_.gmul.length == 0) { //#17800 - break; //#17800 - } //#17800 - } //#17800 - $k[$j++] = Infinity; //#17802 - $aload($_.out); //#17802 - $aload($_.cwn); //#17802 - $_.out = $a(); //#17802 - } //#17802 - $k[$j++] = $_.out; //#17804 - }; //#17804 + $_.in = $k[--$j]; //#18028 + $_.out = $a([]); //#18029 + for (var _D6 = 0, _D5 = $_.in.length - 1; _D6 <= _D5; _D6 += 44) { //#18057 + $_.k = _D6; //#18031 + $k[$j++] = Infinity; //#18032 + var _DB = $_.in.length - $_.k; //#18033 + $k[$j++] = 1; //#18033 + $k[$j++] = $_.in; //#18033 + $k[$j++] = $_.k; //#18033 + $k[$j++] = _DB; //#18033 + if (_DB > 44) { //#18033 + $j--; //#18033 + $k[$j++] = 44; //#18033 + } //#18033 + var _DC = $k[--$j]; //#18033 + var _DD = $k[--$j]; //#18033 + var _DF = $geti($k[--$j], _DD, _DC); //#18033 + for (var _DG = 0, _DH = _DF.length; _DG < _DH; _DG++) { //#18034 + $k[$j++] = $f($get(_DF, _DG) - 48); //#18034 + } //#18034 + $_.gmod = $a(); //#18034 + $_.cwn = $a([]); //#18036 + for (;;) { //#18055 + $_.dv = 900; //#18037 + $_.gmul = $a([]); //#18038 + $_.val = 0; //#18038 + for (;;) { //#18050 + if ($_.gmod.length == 0) { //#18039 + break; //#18039 + } //#18039 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#18040 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#18041 + if ($_.val < $_.dv) { //#18047 + if ($_.gmul.length != 0) { //#18045 + $k[$j++] = Infinity; //#18044 + $aload($_.gmul); //#18044 + $k[$j++] = 0; //#18044 + $_.gmul = $a(); //#18044 + } //#18044 + } else { //#18047 + $k[$j++] = Infinity; //#18047 + $aload($_.gmul); //#18047 + $k[$j++] = ~~($_.val / $_.dv); //#18047 + $_.gmul = $a(); //#18047 + } //#18047 + $_.val = $_.val % $_.dv; //#18049 + } //#18049 + $_.dv = $_.val; //#18051 + $k[$j++] = Infinity; //#18052 + $k[$j++] = $_.dv; //#18052 + $aload($_.cwn); //#18052 + $_.cwn = $a(); //#18052 + $_.gmod = $_.gmul; //#18053 + if ($_.gmul.length == 0) { //#18054 + break; //#18054 + } //#18054 + } //#18054 + $k[$j++] = Infinity; //#18056 + $aload($_.out); //#18056 + $aload($_.cwn); //#18056 + $_.out = $a(); //#18056 + } //#18056 + $k[$j++] = $_.out; //#18058 + }; //#18058 $_.ence = function() { - var _D4 = $f((-$get($k[--$j], 0)) - 1000000); //#17809 - $k[$j++] = _D4; //#17817 - if (_D4 <= 899) { //#17816 - var _D5 = $k[--$j]; //#17810 - $k[$j++] = 927; //#17810 - $k[$j++] = _D5; //#17810 - $astore($a(2)); //#17810 - } else { //#17816 - var _D7 = $k[--$j]; //#17811 - $k[$j++] = _D7; //#17817 - if (_D7 <= 810899) { //#17816 - var _D8 = $k[--$j]; //#17812 - $k[$j++] = 926; //#17812 - $k[$j++] = (~~(_D8 / 900)) - 1; //#17812 - $k[$j++] = _D8 % 900; //#17812 - $astore($a(3)); //#17812 - } else { //#17816 - var _DA = $k[--$j]; //#17813 - $k[$j++] = _DA; //#17817 - if (_DA <= 811799) { //#17816 - var _DB = $k[--$j]; //#17814 - $k[$j++] = 925; //#17814 - $k[$j++] = $f(_DB - 810900); //#17814 - $astore($a(2)); //#17814 - } else { //#17816 - $k[$j++] = 'bwipp.pdf417badECI#17816'; //#17816 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17816 - bwipp_raiseerror(); //#17816 - } //#17816 - } //#17816 - } //#17816 - }; //#17816 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17820 + var _Dq = $f((-$get($k[--$j], 0)) - 1000000); //#18063 + $k[$j++] = _Dq; //#18071 + if (_Dq <= 899) { //#18070 + var _Dr = $k[--$j]; //#18064 + $k[$j++] = 927; //#18064 + $k[$j++] = _Dr; //#18064 + $astore($a(2)); //#18064 + } else { //#18070 + var _Dt = $k[--$j]; //#18065 + $k[$j++] = _Dt; //#18071 + if (_Dt <= 810899) { //#18070 + var _Du = $k[--$j]; //#18066 + $k[$j++] = 926; //#18066 + $k[$j++] = (~~(_Du / 900)) - 1; //#18066 + $k[$j++] = _Du % 900; //#18066 + $astore($a(3)); //#18066 + } else { //#18070 + var _Dw = $k[--$j]; //#18067 + $k[$j++] = _Dw; //#18071 + if (_Dw <= 811799) { //#18070 + var _Dx = $k[--$j]; //#18068 + $k[$j++] = 925; //#18068 + $k[$j++] = $f(_Dx - 810900); //#18068 + $astore($a(2)); //#18068 + } else { //#18070 + $k[$j++] = 'bwipp.pdf417badECI#18070'; //#18070 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#18070 + bwipp_raiseerror(); //#18070 + } //#18070 + } //#18070 + } //#18070 + }; //#18070 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#18074 $_.addtocws = function() { - var _DE = $k[--$j]; //#17823 - $puti($_.datcws, $_.j, _DE); //#17823 - $_.j = _DE.length + $_.j; //#17824 - }; //#17824 - $_.datcws = $a($_.seqlen); //#17829 - $_.i = 0; //#17830 - $_.j = 0; //#17830 - for (;;) { //#17850 - if ($_.i >= $_.seq.length) { //#17831 - break; //#17831 - } //#17831 - $_.chars = $get($_.seq, $_.i); //#17832 - if ($eq($type($_.chars), 'arraytype')) { //#17846 - if ($get($_.chars, 0) <= -1000000) { //#17837 - $k[$j++] = $_.chars; //#17835 - $_.ence(); //#17835 - $_.addtocws(); //#17835 - } else { //#17837 - $k[$j++] = $_.chars; //#17837 + var _E0 = $k[--$j]; //#18077 + $puti($_.datcws, $_.j, _E0); //#18077 + $_.j = _E0.length + $_.j; //#18078 + }; //#18078 + $_.datcws = $a($_.seqlen); //#18083 + $_.i = 0; //#18084 + $_.j = 0; //#18084 + for (;;) { //#18120 + if ($_.i >= $_.seq.length) { //#18085 + break; //#18085 + } //#18085 + $_.chars = $get($_.seq, $_.i); //#18086 + if ($eq($type($_.chars), 'arraytype')) { //#18116 + if ($get($_.chars, 0) <= -1000000) { //#18091 + $k[$j++] = $_.chars; //#18089 + $_.ence(); //#18089 + $_.addtocws(); //#18089 + } else { //#18091 + $k[$j++] = $_.chars; //#18091 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#17837 - $_.addtocws(); //#17837 - } //#17837 - } else { //#17846 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17840 - $_.addtocws(); //#17840 - if ($_.chars == $_.tl) { //#17841 - $_.state = $_.T; //#17841 - $_.submode = $_.A; //#17841 - } //#17841 - if ($_.chars == $_.nl) { //#17842 - $_.state = $_.N; //#17842 - } //#17842 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17843 - $_.state = $_.B; //#17843 - } //#17843 - if ($_.chars == $_.bs) { //#17847 - $_.i = $_.i + 1; //#17845 - $k[$j++] = $get($_.seq, $_.i); //#17846 - $_.encb(); //#17846 - $_.addtocws(); //#17846 - } //#17846 - } //#17846 - $_.i = $_.i + 1; //#17849 - } //#17849 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17851 - } //#17851 - if (!bwipp_micropdf417.__17915__) { //#17915 - $_ = Object.create($_); //#17915 - $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#17875 - $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#17914 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17914 - bwipp_micropdf417.__17915__ = 1; //#17914 - $_ = Object.getPrototypeOf($_); //#17914 - } //#17914 - $k[$j++] = 'metrics'; //#17917 - if ($_.cca) { //#17917 - $k[$j++] = $_.ccametrics; //#17917 - } else { //#17917 - $k[$j++] = $_.nonccametrics; //#17917 - } //#17917 - var _Eu = $k[--$j]; //#17917 - $_[$k[--$j]] = _Eu; //#17917 - $_.urows = $_.rows; //#17920 - $_.ucols = $_.columns; //#17921 - $forall($_.metrics, function() { //#17936 - $_.m = $k[--$j]; //#17923 - $_.c = $get($_.m, 0); //#17924 - $_.r = $get($_.m, 1); //#17925 - $_.k = $get($_.m, 2); //#17926 - $_.rapl = $get($_.m, 3); //#17927 - $_.rapc = $get($_.m, 4); //#17928 - $_.rapr = $get($_.m, 5); //#17929 - $_.ncws = $f(($_.r * $_.c) - $_.k); //#17930 - $_.okay = true; //#17931 - if ($_.datcws.length > $_.ncws) { //#17932 - $_.okay = false; //#17932 - } //#17932 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#17933 - $_.okay = false; //#17933 - } //#17933 - if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#17934 - $_.okay = false; //#17934 - } //#17934 - if ($_.okay) { //#17935 - return true; //#17935 - } //#17935 - }); //#17935 - if (!$_.okay) { //#17940 - $k[$j++] = 'bwipp.micropdf417noValidSymbol#17939'; //#17939 - $k[$j++] = "Maximum length exceeded or invalid size"; //#17939 - bwipp_raiseerror(); //#17939 - } //#17939 - $_.m = $_.datcws.length; //#17943 - $_.n = $f(($_.c * $_.r) - $_.k); //#17944 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#17945 - $puti($_.cws, 0, $_.datcws); //#17946 - $k[$j++] = $_.cws; //#17947 - $k[$j++] = $_.m; //#17947 - $k[$j++] = Infinity; //#17947 - for (var _Fc = 0, _Fd = $f($_.n - $_.m); _Fc < _Fd; _Fc++) { //#17947 - $k[$j++] = 900; //#17947 - } //#17947 - var _Fe = $a(); //#17947 - var _Ff = $k[--$j]; //#17947 - $puti($k[--$j], _Ff, _Fe); //#17947 - $k[$j++] = $_.cws; //#17948 - $k[$j++] = $_.n; //#17948 - $k[$j++] = Infinity; //#17948 - for (var _Fk = 0, _Fl = $_.k; _Fk < _Fl; _Fk++) { //#17948 - $k[$j++] = 0; //#17948 - } //#17948 - $k[$j++] = 0; //#17948 - var _Fm = $a(); //#17948 - var _Fn = $k[--$j]; //#17948 - $puti($k[--$j], _Fn, _Fm); //#17948 - if (!bwipp_micropdf417.__17955__) { //#17955 - $_ = Object.create($_); //#17955 - $k[$j++] = Infinity; //#17952 - $k[$j++] = 1; //#17952 - for (var _Fp = 0, _Fq = 928; _Fp < _Fq; _Fp++) { //#17952 - var _Fr = $k[--$j]; //#17952 - $k[$j++] = _Fr; //#17952 - $k[$j++] = (_Fr * 3) % 929; //#17952 - } //#17952 - $_.rsalog = $a(); //#17952 - $_.rslog = $a(929); //#17953 - for (var _Fu = 1; _Fu <= 928; _Fu += 1) { //#17954 - $put($_.rslog, $get($_.rsalog, _Fu), _Fu); //#17954 - } //#17954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17954 - bwipp_micropdf417.__17955__ = 1; //#17954 - $_ = Object.getPrototypeOf($_); //#17954 - } //#17954 + } //#18091 + $_.addtocws(); //#18091 + } //#18091 + } else { //#18116 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#18094 + $_.addtocws(); //#18094 + if ($_.chars == $_.tl) { //#18095 + $_.state = $_.T; //#18095 + $_.submode = $_.A; //#18095 + } //#18095 + if ($_.chars == $_.nl) { //#18096 + $_.state = $_.N; //#18096 + } //#18096 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#18097 + $_.state = $_.B; //#18097 + } //#18097 + if ($_.chars == $_.bs) { //#18101 + $_.i = $_.i + 1; //#18099 + $k[$j++] = $get($_.seq, $_.i); //#18100 + $_.encb(); //#18100 + $_.addtocws(); //#18100 + } //#18100 + if ($_.chars == $_.m05) { //#18109 + if (($_.i + 1) < $_.seq.length) { //#18107 + if ($get($_.seq, $_.i + 1) == $_.nl) { //#18106 + $_.i = $_.i + 1; //#18105 + } //#18105 + } //#18105 + $_.state = $_.N; //#18108 + } //#18108 + if ($_.chars == $_.m06) { //#18117 + if (($_.i + 1) < $_.seq.length) { //#18115 + if ($get($_.seq, $_.i + 1) == $_.tl) { //#18114 + $_.i = $_.i + 1; //#18113 + } //#18113 + } //#18113 + $_.state = $_.T; //#18116 + $_.submode = $_.M; //#18116 + } //#18116 + } //#18116 + $_.i = $_.i + 1; //#18119 + } //#18119 + $_.datcws = $geti($_.datcws, 0, $_.j); //#18121 + } //#18121 + if (!bwipp_micropdf417.__18185__) { //#18185 + $_ = Object.create($_); //#18185 + $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#18145 + $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#18184 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18184 + bwipp_micropdf417.__18185__ = 1; //#18184 + $_ = Object.getPrototypeOf($_); //#18184 + } //#18184 + $k[$j++] = 'metrics'; //#18187 + if ($_.cca) { //#18187 + $k[$j++] = $_.ccametrics; //#18187 + } else { //#18187 + $k[$j++] = $_.nonccametrics; //#18187 + } //#18187 + var _G1 = $k[--$j]; //#18187 + $_[$k[--$j]] = _G1; //#18187 + $_.urows = $_.rows; //#18190 + $_.ucols = $_.columns; //#18191 + $forall($_.metrics, function() { //#18206 + $_.m = $k[--$j]; //#18193 + $_.c = $get($_.m, 0); //#18194 + $_.r = $get($_.m, 1); //#18195 + $_.k = $get($_.m, 2); //#18196 + $_.rapl = $get($_.m, 3); //#18197 + $_.rapc = $get($_.m, 4); //#18198 + $_.rapr = $get($_.m, 5); //#18199 + $_.ncws = $f(($_.r * $_.c) - $_.k); //#18200 + $_.okay = true; //#18201 + if ($_.datcws.length > $_.ncws) { //#18202 + $_.okay = false; //#18202 + } //#18202 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#18203 + $_.okay = false; //#18203 + } //#18203 + if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#18204 + $_.okay = false; //#18204 + } //#18204 + if ($_.okay) { //#18205 + return true; //#18205 + } //#18205 + }); //#18205 + if (!$_.okay) { //#18210 + $k[$j++] = 'bwipp.micropdf417noValidSymbol#18209'; //#18209 + $k[$j++] = "Maximum length exceeded or invalid size"; //#18209 + bwipp_raiseerror(); //#18209 + } //#18209 + $_.m = $_.datcws.length; //#18213 + $_.n = $f(($_.c * $_.r) - $_.k); //#18214 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#18215 + $puti($_.cws, 0, $_.datcws); //#18216 + $k[$j++] = $_.cws; //#18217 + $k[$j++] = $_.m; //#18217 + $k[$j++] = Infinity; //#18217 + for (var _Gj = 0, _Gk = $f($_.n - $_.m); _Gj < _Gk; _Gj++) { //#18217 + $k[$j++] = 900; //#18217 + } //#18217 + var _Gl = $a(); //#18217 + var _Gm = $k[--$j]; //#18217 + $puti($k[--$j], _Gm, _Gl); //#18217 + $k[$j++] = $_.cws; //#18218 + $k[$j++] = $_.n; //#18218 + $k[$j++] = Infinity; //#18218 + for (var _Gr = 0, _Gs = $_.k; _Gr < _Gs; _Gr++) { //#18218 + $k[$j++] = 0; //#18218 + } //#18218 + $k[$j++] = 0; //#18218 + var _Gt = $a(); //#18218 + var _Gu = $k[--$j]; //#18218 + $puti($k[--$j], _Gu, _Gt); //#18218 + if (!bwipp_micropdf417.__18225__) { //#18225 + $_ = Object.create($_); //#18225 + $k[$j++] = Infinity; //#18222 + $k[$j++] = 1; //#18222 + for (var _Gw = 0, _Gx = 928; _Gw < _Gx; _Gw++) { //#18222 + var _Gy = $k[--$j]; //#18222 + $k[$j++] = _Gy; //#18222 + $k[$j++] = (_Gy * 3) % 929; //#18222 + } //#18222 + $_.rsalog = $a(); //#18222 + $_.rslog = $a(929); //#18223 + for (var _H1 = 1; _H1 <= 928; _H1 += 1) { //#18224 + $put($_.rslog, $get($_.rsalog, _H1), _H1); //#18224 + } //#18224 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18224 + bwipp_micropdf417.__18225__ = 1; //#18224 + $_ = Object.getPrototypeOf($_); //#18224 + } //#18224 $_.rsprod = function() { - var _Fz = $k[--$j]; //#17959 - var _G0 = $k[--$j]; //#17959 - $k[$j++] = _G0; //#17963 - $k[$j++] = _Fz; //#17963 - if ((_Fz != 0) && (_G0 != 0)) { //#17962 - var _G3 = $get($_.rslog, $k[--$j]); //#17960 - var _G8 = $get($_.rsalog, $f(_G3 + $get($_.rslog, $k[--$j])) % 928); //#17960 - $k[$j++] = _G8; //#17960 - } else { //#17962 - $j -= 2; //#17962 - $k[$j++] = 0; //#17962 - } //#17962 - }; //#17962 - $k[$j++] = Infinity; //#17967 - $k[$j++] = 1; //#17967 - for (var _GA = 0, _GB = $_.k; _GA < _GB; _GA++) { //#17967 - $k[$j++] = 0; //#17967 - } //#17967 - $_.coeffs = $a(); //#17967 - for (var _GF = 1, _GE = $_.k; _GF <= _GE; _GF += 1) { //#17976 - $_.i = _GF; //#17969 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17970 - for (var _GM = $_.i - 1; _GM >= 1; _GM -= 1) { //#17974 - $_.j = _GM; //#17972 - $k[$j++] = $_.coeffs; //#17973 - $k[$j++] = $_.j; //#17973 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#17973 - $k[$j++] = $get($_.coeffs, $_.j); //#17973 - $k[$j++] = $get($_.rsalog, $_.i); //#17973 - $_.rsprod(); //#17973 - var _GY = $k[--$j]; //#17973 - var _GZ = $k[--$j]; //#17973 - var _Ga = $k[--$j]; //#17973 - $put($k[--$j], _Ga, $f(_GZ + _GY) % 929); //#17973 - } //#17973 - $k[$j++] = $_.coeffs; //#17975 - $k[$j++] = 0; //#17975 - $k[$j++] = $get($_.coeffs, 0); //#17975 - $k[$j++] = $get($_.rsalog, $_.i); //#17975 - $_.rsprod(); //#17975 - var _Gi = $k[--$j]; //#17975 - var _Gj = $k[--$j]; //#17975 - $put($k[--$j], _Gj, _Gi); //#17975 - } //#17975 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17977 - for (var _Gp = $_.coeffs.length - 1; _Gp >= 0; _Gp -= 2) { //#17978 - var _Gq = $_.coeffs; //#17978 - $put(_Gq, _Gp, $f(929 - $get(_Gq, _Gp))); //#17978 - } //#17978 - for (var _Gu = 0, _Gt = $f($_.n - 1); _Gu <= _Gt; _Gu += 1) { //#17987 - $_.t = $f($get($_.cws, _Gu) + $get($_.cws, $_.n)) % 929; //#17982 - for (var _H2 = 0, _H1 = $f($_.k - 1); _H2 <= _H1; _H2 += 1) { //#17986 - $_.j = _H2; //#17984 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#17985 - } //#17985 - } //#17985 - for (var _HJ = $_.n, _HI = $f($_.n + $_.k); _HJ <= _HI; _HJ += 1) { //#17988 - $put($_.cws, _HJ, $f(929 - $get($_.cws, _HJ)) % 929); //#17988 - } //#17988 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17991 - var _HR = $get($_.options, 'debugcws') !== undefined; //#17993 - if (_HR) { //#17993 - $k[$j++] = 'bwipp.debugcws#17993'; //#17993 - $k[$j++] = $_.cws; //#17993 - bwipp_raiseerror(); //#17993 - } //#17993 - if (!bwipp_micropdf417.__18252__) { //#18252 - $_ = Object.create($_); //#18252 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18236 - $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18251 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18251 - bwipp_micropdf417.__18252__ = 1; //#18251 - $_ = Object.getPrototypeOf($_); //#18251 - } //#18251 + var _H6 = $k[--$j]; //#18229 + var _H7 = $k[--$j]; //#18229 + $k[$j++] = _H7; //#18233 + $k[$j++] = _H6; //#18233 + if ((_H6 != 0) && (_H7 != 0)) { //#18232 + var _HA = $get($_.rslog, $k[--$j]); //#18230 + var _HF = $get($_.rsalog, $f(_HA + $get($_.rslog, $k[--$j])) % 928); //#18230 + $k[$j++] = _HF; //#18230 + } else { //#18232 + $j -= 2; //#18232 + $k[$j++] = 0; //#18232 + } //#18232 + }; //#18232 + $k[$j++] = Infinity; //#18237 + $k[$j++] = 1; //#18237 + for (var _HH = 0, _HI = $_.k; _HH < _HI; _HH++) { //#18237 + $k[$j++] = 0; //#18237 + } //#18237 + $_.coeffs = $a(); //#18237 + for (var _HM = 1, _HL = $_.k; _HM <= _HL; _HM += 1) { //#18246 + $_.i = _HM; //#18239 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#18240 + for (var _HT = $_.i - 1; _HT >= 1; _HT -= 1) { //#18244 + $_.j = _HT; //#18242 + $k[$j++] = $_.coeffs; //#18243 + $k[$j++] = $_.j; //#18243 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#18243 + $k[$j++] = $get($_.coeffs, $_.j); //#18243 + $k[$j++] = $get($_.rsalog, $_.i); //#18243 + $_.rsprod(); //#18243 + var _Hf = $k[--$j]; //#18243 + var _Hg = $k[--$j]; //#18243 + var _Hh = $k[--$j]; //#18243 + $put($k[--$j], _Hh, $f(_Hg + _Hf) % 929); //#18243 + } //#18243 + $k[$j++] = $_.coeffs; //#18245 + $k[$j++] = 0; //#18245 + $k[$j++] = $get($_.coeffs, 0); //#18245 + $k[$j++] = $get($_.rsalog, $_.i); //#18245 + $_.rsprod(); //#18245 + var _Hp = $k[--$j]; //#18245 + var _Hq = $k[--$j]; //#18245 + $put($k[--$j], _Hq, _Hp); //#18245 + } //#18245 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#18247 + for (var _Hw = $_.coeffs.length - 1; _Hw >= 0; _Hw -= 2) { //#18248 + var _Hx = $_.coeffs; //#18248 + $put(_Hx, _Hw, $f(929 - $get(_Hx, _Hw))); //#18248 + } //#18248 + for (var _I1 = 0, _I0 = $f($_.n - 1); _I1 <= _I0; _I1 += 1) { //#18257 + $_.t = $f($get($_.cws, _I1) + $get($_.cws, $_.n)) % 929; //#18252 + for (var _I9 = 0, _I8 = $f($_.k - 1); _I9 <= _I8; _I9 += 1) { //#18256 + $_.j = _I9; //#18254 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#18255 + } //#18255 + } //#18255 + for (var _IQ = $_.n, _IP = $f($_.n + $_.k); _IQ <= _IP; _IQ += 1) { //#18258 + $put($_.cws, _IQ, $f(929 - $get($_.cws, _IQ)) % 929); //#18258 + } //#18258 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#18261 + var _IY = $get($_.options, 'debugcws') !== undefined; //#18263 + if (_IY) { //#18263 + $k[$j++] = 'bwipp.debugcws#18263'; //#18263 + $k[$j++] = $_.cws; //#18263 + bwipp_raiseerror(); //#18263 + } //#18263 + if (!bwipp_micropdf417.__18522__) { //#18522 + $_ = Object.create($_); //#18522 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18506 + $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18521 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18521 + bwipp_micropdf417.__18522__ = 1; //#18521 + $_ = Object.getPrototypeOf($_); //#18521 + } //#18521 $_.cwtobits = function() { - var _Hd = $get($_.clusters, $k[--$j]); //#18256 - $_.v = $get(_Hd, $k[--$j]); //#18256 - $k[$j++] = Infinity; //#18257 - for (var _Hg = 0, _Hh = 17; _Hg < _Hh; _Hg++) { //#18257 - $k[$j++] = 0; //#18257 - } //#18257 - var _Hk = $cvrs($s(17), $_.v, 2); //#18257 - for (var _Hl = 0, _Hm = _Hk.length; _Hl < _Hm; _Hl++) { //#18257 - $k[$j++] = $get(_Hk, _Hl) - 48; //#18257 - } //#18257 - var _Ho = $a(); //#18257 - $k[$j++] = $geti(_Ho, _Ho.length - 17, 17); //#18258 - }; //#18258 + var _Ik = $get($_.clusters, $k[--$j]); //#18526 + $_.v = $get(_Ik, $k[--$j]); //#18526 + $k[$j++] = Infinity; //#18527 + for (var _In = 0, _Io = 17; _In < _Io; _In++) { //#18527 + $k[$j++] = 0; //#18527 + } //#18527 + var _Ir = $cvrs($s(17), $_.v, 2); //#18527 + for (var _Is = 0, _It = _Ir.length; _Is < _It; _Is++) { //#18527 + $k[$j++] = $get(_Ir, _Is) - 48; //#18527 + } //#18527 + var _Iv = $a(); //#18527 + $k[$j++] = $geti(_Iv, _Iv.length - 17, 17); //#18528 + }; //#18528 $_.raptobits = function() { - var _Hs = $get($_.raps, $k[--$j]); //#18263 - $_.v = $get(_Hs, $k[--$j]); //#18263 - $k[$j++] = Infinity; //#18264 - for (var _Hv = 0, _Hw = 10; _Hv < _Hw; _Hv++) { //#18264 - $k[$j++] = 0; //#18264 - } //#18264 - var _Hz = $cvrs($s(10), $_.v, 2); //#18264 - for (var _I0 = 0, _I1 = _Hz.length; _I0 < _I1; _I0++) { //#18264 - $k[$j++] = $get(_Hz, _I0) - 48; //#18264 - } //#18264 - var _I3 = $a(); //#18264 - $k[$j++] = $geti(_I3, _I3.length - 10, 10); //#18265 - }; //#18265 - $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18269 - if (($_.c == 3) && $_.cca) { //#18270 - $_.rwid = 72; //#18270 - } //#18270 - $_.pixs = $a($_.rwid * $_.r); //#18271 - for (var _IF = 0, _IE = $f($_.r - 1); _IF <= _IE; _IF += 1) { //#18309 - $_.i = _IF; //#18274 - $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18275 - $k[$j++] = $_.pixs; //#18307 - $k[$j++] = $_.rwid * $_.i; //#18307 - $k[$j++] = Infinity; //#18307 - if ($_.c == 1) { //#18281 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18278 - $k[$j++] = 0; //#18278 - $_.raptobits(); //#18278 - $aload($k[--$j]); //#18278 - $k[$j++] = $get($_.cws, $_.i); //#18279 - $k[$j++] = $_.clst; //#18279 - $_.cwtobits(); //#18279 - $aload($k[--$j]); //#18279 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18280 - $k[$j++] = 0; //#18280 - $_.raptobits(); //#18280 - $aload($k[--$j]); //#18280 - } //#18280 - if ($_.c == 2) { //#18287 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18283 - $k[$j++] = 0; //#18283 - $_.raptobits(); //#18283 - $aload($k[--$j]); //#18283 - $k[$j++] = $get($_.cws, $_.i * 2); //#18284 - $k[$j++] = $_.clst; //#18284 - $_.cwtobits(); //#18284 - $aload($k[--$j]); //#18284 - $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18285 - $k[$j++] = $_.clst; //#18285 - $_.cwtobits(); //#18285 - $aload($k[--$j]); //#18285 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18286 - $k[$j++] = 0; //#18286 - $_.raptobits(); //#18286 - $aload($k[--$j]); //#18286 - } //#18286 - if ($_.c == 3) { //#18297 - if (!$_.cca) { //#18291 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18290 - $k[$j++] = 0; //#18290 - $_.raptobits(); //#18290 - $aload($k[--$j]); //#18290 - } //#18290 - $k[$j++] = $get($_.cws, $_.i * 3); //#18292 - $k[$j++] = $_.clst; //#18292 - $_.cwtobits(); //#18292 - $aload($k[--$j]); //#18292 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18293 - $k[$j++] = 1; //#18293 - $_.raptobits(); //#18293 - $aload($k[--$j]); //#18293 - $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18294 - $k[$j++] = $_.clst; //#18294 - $_.cwtobits(); //#18294 - $aload($k[--$j]); //#18294 - $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18295 - $k[$j++] = $_.clst; //#18295 - $_.cwtobits(); //#18295 - $aload($k[--$j]); //#18295 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18296 - $k[$j++] = 0; //#18296 - $_.raptobits(); //#18296 - $aload($k[--$j]); //#18296 - } //#18296 - if ($_.c == 4) { //#18306 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18299 - $k[$j++] = 0; //#18299 - $_.raptobits(); //#18299 - $aload($k[--$j]); //#18299 - $k[$j++] = $get($_.cws, $_.i * 4); //#18300 - $k[$j++] = $_.clst; //#18300 - $_.cwtobits(); //#18300 - $aload($k[--$j]); //#18300 - $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18301 - $k[$j++] = $_.clst; //#18301 - $_.cwtobits(); //#18301 - $aload($k[--$j]); //#18301 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18302 - $k[$j++] = 1; //#18302 - $_.raptobits(); //#18302 - $aload($k[--$j]); //#18302 - $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18303 - $k[$j++] = $_.clst; //#18303 - $_.cwtobits(); //#18303 - $aload($k[--$j]); //#18303 - $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18304 - $k[$j++] = $_.clst; //#18304 - $_.cwtobits(); //#18304 - $aload($k[--$j]); //#18304 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18305 - $k[$j++] = 0; //#18305 - $_.raptobits(); //#18305 - $aload($k[--$j]); //#18305 - } //#18305 - $k[$j++] = 1; //#18307 - var _Ji = $a(); //#18307 - var _Jj = $k[--$j]; //#18308 - $puti($k[--$j], _Jj, _Ji); //#18308 - } //#18308 - var _Js = new Map([ + var _Iz = $get($_.raps, $k[--$j]); //#18533 + $_.v = $get(_Iz, $k[--$j]); //#18533 + $k[$j++] = Infinity; //#18534 + for (var _J2 = 0, _J3 = 10; _J2 < _J3; _J2++) { //#18534 + $k[$j++] = 0; //#18534 + } //#18534 + var _J6 = $cvrs($s(10), $_.v, 2); //#18534 + for (var _J7 = 0, _J8 = _J6.length; _J7 < _J8; _J7++) { //#18534 + $k[$j++] = $get(_J6, _J7) - 48; //#18534 + } //#18534 + var _JA = $a(); //#18534 + $k[$j++] = $geti(_JA, _JA.length - 10, 10); //#18535 + }; //#18535 + $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18539 + if (($_.c == 3) && $_.cca) { //#18540 + $_.rwid = 72; //#18540 + } //#18540 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#18541 + for (var _JN = 0, _JM = $f($_.r - 1); _JN <= _JM; _JN += 1) { //#18583 + $_.i = _JN; //#18544 + $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18545 + $k[$j++] = Infinity; //#18546 + if ($_.c == 1) { //#18551 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18548 + $k[$j++] = 0; //#18548 + $_.raptobits(); //#18548 + $aload($k[--$j]); //#18548 + $k[$j++] = $get($_.cws, $_.i); //#18549 + $k[$j++] = $_.clst; //#18549 + $_.cwtobits(); //#18549 + $aload($k[--$j]); //#18549 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18550 + $k[$j++] = 0; //#18550 + $_.raptobits(); //#18550 + $aload($k[--$j]); //#18550 + } //#18550 + if ($_.c == 2) { //#18557 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18553 + $k[$j++] = 0; //#18553 + $_.raptobits(); //#18553 + $aload($k[--$j]); //#18553 + $k[$j++] = $get($_.cws, $_.i * 2); //#18554 + $k[$j++] = $_.clst; //#18554 + $_.cwtobits(); //#18554 + $aload($k[--$j]); //#18554 + $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18555 + $k[$j++] = $_.clst; //#18555 + $_.cwtobits(); //#18555 + $aload($k[--$j]); //#18555 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18556 + $k[$j++] = 0; //#18556 + $_.raptobits(); //#18556 + $aload($k[--$j]); //#18556 + } //#18556 + if ($_.c == 3) { //#18567 + if (!$_.cca) { //#18561 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18560 + $k[$j++] = 0; //#18560 + $_.raptobits(); //#18560 + $aload($k[--$j]); //#18560 + } //#18560 + $k[$j++] = $get($_.cws, $_.i * 3); //#18562 + $k[$j++] = $_.clst; //#18562 + $_.cwtobits(); //#18562 + $aload($k[--$j]); //#18562 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18563 + $k[$j++] = 1; //#18563 + $_.raptobits(); //#18563 + $aload($k[--$j]); //#18563 + $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18564 + $k[$j++] = $_.clst; //#18564 + $_.cwtobits(); //#18564 + $aload($k[--$j]); //#18564 + $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18565 + $k[$j++] = $_.clst; //#18565 + $_.cwtobits(); //#18565 + $aload($k[--$j]); //#18565 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18566 + $k[$j++] = 0; //#18566 + $_.raptobits(); //#18566 + $aload($k[--$j]); //#18566 + } //#18566 + if ($_.c == 4) { //#18576 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18569 + $k[$j++] = 0; //#18569 + $_.raptobits(); //#18569 + $aload($k[--$j]); //#18569 + $k[$j++] = $get($_.cws, $_.i * 4); //#18570 + $k[$j++] = $_.clst; //#18570 + $_.cwtobits(); //#18570 + $aload($k[--$j]); //#18570 + $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18571 + $k[$j++] = $_.clst; //#18571 + $_.cwtobits(); //#18571 + $aload($k[--$j]); //#18571 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18572 + $k[$j++] = 1; //#18572 + $_.raptobits(); //#18572 + $aload($k[--$j]); //#18572 + $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18573 + $k[$j++] = $_.clst; //#18573 + $_.cwtobits(); //#18573 + $aload($k[--$j]); //#18573 + $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18574 + $k[$j++] = $_.clst; //#18574 + $_.cwtobits(); //#18574 + $aload($k[--$j]); //#18574 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18575 + $k[$j++] = 0; //#18575 + $_.raptobits(); //#18575 + $aload($k[--$j]); //#18575 + } //#18575 + $k[$j++] = 1; //#18577 + var _Kn = $a(); //#18577 + $k[$j++] = _Kn; //#18581 + for (var _Kq = 0, _Kp = $_.rowmult - 1; _Kq <= _Kp; _Kq += 1) { //#18581 + var _Kv = $k[--$j]; //#18580 + $puti($_.pixs, (_Kq + ($_.i * $_.rowmult)) * $_.rwid, _Kv); //#18580 + $k[$j++] = _Kv; //#18580 + } //#18580 + $j--; //#18582 + } //#18582 + var _L4 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#18319 - $k[$j++] = _Js; //#18322 - if (!$_.dontdraw) { //#18322 - bwipp_renmatrix(); //#18322 - } //#18322 - $_ = Object.getPrototypeOf($_); //#18324 - $_ = Object.getPrototypeOf($_); //#18326 -} - + ]); //#18597 + $k[$j++] = _L4; //#18600 + if (!$_.dontdraw) { //#18600 + bwipp_renmatrix(); //#18600 + } //#18600 + $_ = Object.getPrototypeOf($_); //#18602 + $_ = Object.getPrototypeOf($_); //#18604 +} //bwipp_micropdf417 function bwipp_datamatrix() { - $_ = Object.create($_); //#18357 - $_.dontdraw = false; //#18360 - $_.columns = 0; //#18361 - $_.rows = 0; //#18362 - $_.format = "unset"; //#18363 - $_.version = "unset"; //#18364 - $_.parse = false; //#18365 - $_.parsefnc = false; //#18366 - $_.c40headerlength = -1; //#18367 - $_.raw = false; //#18368 - $_.dmre = false; //#18369 - $k[$j++] = $_; //#18371 - bwipp_processoptions(); //#18371 - $_.options = $k[--$j]; //#18371 - $_.barcode = $k[--$j]; //#18372 - if ($eq($_.barcode, "")) { //#18376 - $k[$j++] = 'bwipp.datamatrixEmptyData#18375'; //#18375 - $k[$j++] = "The data must not be empty"; //#18375 - bwipp_raiseerror(); //#18375 - } //#18375 - if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18380 - $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18379'; //#18379 - $k[$j++] = "rows and columns must not be given if version is specified"; //#18379 - bwipp_raiseerror(); //#18379 - } //#18379 - if ($ne($_.version, "unset")) { //#18404 - $search($_.version, "x"); //#18384 - if ($k[--$j]) { //#18400 - var _9 = $k[--$j]; //#18385 - var _A = $k[--$j]; //#18385 - $k[$j++] = _9; //#18385 - $k[$j++] = _A; //#18385 - $j--; //#18385 - var _B = $k[--$j]; //#18386 - var _C = $k[--$j]; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $astore($a(2)); //#18386 - $forall($k[--$j], function() { //#18395 - var _F = $k[--$j]; //#18388 - $k[$j++] = _F; //#18388 - $k[$j++] = true; //#18388 - if (_F.length == 0) { //#18388 - $j--; //#18388 - $k[$j++] = false; //#18388 - } //#18388 - var _G = $k[--$j]; //#18389 - var _H = $k[--$j]; //#18389 - $k[$j++] = _G; //#18391 - $forall(_H, function() { //#18391 - var _I = $k[--$j]; //#18390 - if ((_I < 48) || (_I > 57)) { //#18390 - $j--; //#18390 - $k[$j++] = false; //#18390 - } //#18390 - }); //#18390 - if ($nt($k[--$j])) { //#18394 - $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18393'; //#18393 - $k[$j++] = "version must be formatted as RxC"; //#18393 - bwipp_raiseerror(); //#18393 - } //#18393 - }); //#18393 - $_.rows = $cvi($k[--$j]); //#18396 - $_.columns = $cvi($k[--$j]); //#18397 - $k[$j++] = 'format'; //#18398 - if ($_.rows == $_.columns) { //#18398 - $k[$j++] = "square"; //#18398 - } else { //#18398 - $k[$j++] = "rectangle"; //#18398 - } //#18398 - var _O = $k[--$j]; //#18398 - $_[$k[--$j]] = _O; //#18398 - } else { //#18400 - $j--; //#18400 - $k[$j++] = 'bwipp.datamatrixVersionFormat#18400'; //#18400 - $k[$j++] = "version must be formatted as RxC"; //#18400 - bwipp_raiseerror(); //#18400 - } //#18400 - } else { //#18404 - if ($eq($_.format, "unset")) { //#18405 - $k[$j++] = 'format'; //#18404 - if ($_.dmre) { //#18404 - $k[$j++] = "rectangle"; //#18404 - } else { //#18404 - $k[$j++] = "square"; //#18404 - } //#18404 - var _S = $k[--$j]; //#18404 - $_[$k[--$j]] = _S; //#18404 - } //#18404 - } //#18404 - if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18410 - $k[$j++] = 'bwipp.datamatrixInvalidFormat#18409'; //#18409 - $k[$j++] = "The format must be either square or rectangle"; //#18409 - bwipp_raiseerror(); //#18409 - } //#18409 - bwipp_loadctx(bwipp_datamatrix) //#18412 - if (!bwipp_datamatrix.__18469__) { //#18469 - $_ = Object.create($_); //#18469 - var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18458 - $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18468 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18468 - bwipp_datamatrix.__18469__ = 1; //#18468 - $_ = Object.getPrototypeOf($_); //#18468 - } //#18468 - $_.urows = $_.rows; //#18472 - $_.ucols = $_.columns; //#18473 - $_.fullcws = $a([]); //#18474 - var _1N = $_.metrics; //#18475 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18494 - $_.m = $get(_1N, _1O); //#18476 - $_.rows = $get($_.m, 0); //#18477 - $_.cols = $get($_.m, 1); //#18478 - $_.regh = $get($_.m, 2); //#18479 - $_.regv = $get($_.m, 3); //#18480 - $_.rscw = $get($_.m, 4); //#18481 - $_.rsbl = $get($_.m, 5); //#18482 - $_.doly = $get($_.m, 6); //#18483 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#18484 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#18485 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18486 - $_.okay = true; //#18487 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18488 - $_.okay = false; //#18488 - } //#18488 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18489 - $_.okay = false; //#18489 - } //#18489 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18490 - $_.okay = false; //#18490 - } //#18490 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18491 - $_.okay = false; //#18491 - } //#18491 - if ((!$_.dmre) && ($_.doly == 1)) { //#18492 - $_.okay = false; //#18492 - } //#18492 - if ($_.okay) { //#18493 - $k[$j++] = Infinity; //#18493 - $aload($_.fullcws); //#18493 - $k[$j++] = $_.ncws; //#18493 - $_.fullcws = $a(); //#18493 - } //#18493 - } //#18493 - $k[$j++] = Infinity; //#18495 - for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18495 - $k[$j++] = 10000; //#18495 - } //#18495 - $_.numremcws = $a(); //#18495 - var _27 = $_.fullcws; //#18496 - for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18496 - $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18496 - } //#18496 - for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18502 - $_.i = _2C; //#18498 - if ($get($_.numremcws, $_.i) != 1) { //#18501 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18500 - } //#18500 - } //#18500 - if (!bwipp_datamatrix.__18615__) { //#18615 - $_ = Object.create($_); //#18615 - $_.fnc1 = -1; //#18506 - $_.prog = -2; //#18506 - $_.m05 = -3; //#18506 - $_.m06 = -4; //#18506 - $_.lC = -5; //#18507 - $_.lB = -6; //#18507 - $_.lX = -7; //#18507 - $_.lT = -8; //#18507 - $_.lE = -9; //#18507 - $_.unl = -10; //#18507 - $_.sapp = -11; //#18508 - $_.usft = -12; //#18508 - $_.sft1 = -13; //#18508 - $_.sft2 = -14; //#18508 - $_.sft3 = -15; //#18508 - $_.eci = -16; //#18508 - $_.pad = -17; //#18508 - $_.unlcw = 254; //#18509 - $k[$j++] = Infinity; //#18518 - for (var _2L = 0; _2L <= 128; _2L += 1) { //#18512 - $k[$j++] = _2L; //#18512 - $k[$j++] = _2L + 1; //#18512 - } //#18512 - $k[$j++] = $_.pad; //#18517 - $k[$j++] = 129; //#18517 - for (var _2N = 0; _2N <= 99; _2N += 1) { //#18517 - var _2P = $cvrs($s(2), _2N, 10); //#18515 - var _2R = $strcpy($s(2), "00"); //#18515 - $puti(_2R, 2 - _2P.length, _2P); //#18515 - $k[$j++] = _2R; //#18516 - $k[$j++] = _2N + 130; //#18516 - } //#18516 - var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18518 - $k[$j++] = 229; //#18518 - for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18518 - var _2j = $f($k[--$j] + 1); //#18518 - $k[$j++] = $get(_2e, _2f); //#18518 - $k[$j++] = _2j; //#18518 - $k[$j++] = _2j; //#18518 - } //#18518 - $j--; //#18518 - $_.Avals = $d(); //#18519 - $k[$j++] = Infinity; //#18521 - var _2l = $_.Avals; //#18521 - for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18521 - var _2m = _2p.next().value; //#18521 - $k[$j++] = _2m; //#18521 - $k[$j++] = _2l.get(_2m); //#18521 - $k[$j++] = Infinity; //#18521 - var _2r = $k[--$j]; //#18521 - var _2s = $k[--$j]; //#18521 - $k[$j++] = _2r; //#18521 - $k[$j++] = _2s; //#18521 - var _2t = $a(); //#18521 - $k[$j++] = _2t; //#18521 - } //#18521 - $_.Avals = $d(); //#18522 - $k[$j++] = Infinity; //#18530 - $k[$j++] = $_.sft1; //#18529 - $k[$j++] = 0; //#18529 - $k[$j++] = $_.sft2; //#18529 - $k[$j++] = 1; //#18529 - $k[$j++] = $_.sft3; //#18529 - $k[$j++] = 2; //#18529 - $k[$j++] = 32; //#18529 - $k[$j++] = 3; //#18529 - for (var _2y = 48; _2y <= 57; _2y += 1) { //#18529 - $k[$j++] = _2y; //#18529 - $k[$j++] = _2y - 44; //#18529 - } //#18529 - for (var _2z = 65; _2z <= 90; _2z += 1) { //#18530 - $k[$j++] = _2z; //#18530 - $k[$j++] = _2z - 51; //#18530 - } //#18530 - $_.CNvals = $d(); //#18531 - $k[$j++] = Infinity; //#18532 - for (var _31 = 0; _31 <= 31; _31 += 1) { //#18532 - $k[$j++] = _31; //#18532 - $k[$j++] = _31; //#18532 - } //#18532 - $_.C1vals = $d(); //#18532 - $k[$j++] = Infinity; //#18538 - for (var _33 = 33; _33 <= 47; _33 += 1) { //#18534 - $k[$j++] = _33; //#18534 - $k[$j++] = _33 - 33; //#18534 - } //#18534 - for (var _34 = 58; _34 <= 64; _34 += 1) { //#18535 - $k[$j++] = _34; //#18535 - $k[$j++] = _34 - 43; //#18535 - } //#18535 - for (var _35 = 91; _35 <= 95; _35 += 1) { //#18536 - $k[$j++] = _35; //#18536 - $k[$j++] = _35 - 69; //#18536 - } //#18536 - $k[$j++] = $_.fnc1; //#18538 - $k[$j++] = 27; //#18538 - $k[$j++] = $_.usft; //#18538 - $k[$j++] = 30; //#18538 - $_.C2vals = $d(); //#18539 - $k[$j++] = Infinity; //#18540 - for (var _39 = 96; _39 <= 127; _39 += 1) { //#18540 - $k[$j++] = _39; //#18540 - $k[$j++] = _39 - 96; //#18540 - } //#18540 - $_.C3vals = $d(); //#18540 - $k[$j++] = Infinity; //#18545 - var _3B = $_.CNvals; //#18542 - for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18542 - var _3C = _3F.next().value; //#18542 - $k[$j++] = _3C; //#18542 - $k[$j++] = _3B.get(_3C); //#18542 - $k[$j++] = Infinity; //#18542 - var _3H = $k[--$j]; //#18542 - var _3I = $k[--$j]; //#18542 - $k[$j++] = _3H; //#18542 - $k[$j++] = _3I; //#18542 - var _3J = $a(); //#18542 - $k[$j++] = _3J; //#18542 - } //#18542 - var _3K = $_.C1vals; //#18543 - for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18543 - var _3L = _3O.next().value; //#18543 - $k[$j++] = _3L; //#18543 - $k[$j++] = _3K.get(_3L); //#18543 - $k[$j++] = Infinity; //#18543 - var _3Q = $k[--$j]; //#18543 - var _3R = $k[--$j]; //#18543 - $k[$j++] = _3Q; //#18543 - $k[$j++] = $get($_.CNvals, $_.sft1); //#18543 - $k[$j++] = _3R; //#18543 - var _3V = $a(); //#18543 - $k[$j++] = _3V; //#18543 - } //#18543 - var _3W = $_.C2vals; //#18544 - for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18544 - var _3X = _3a.next().value; //#18544 - $k[$j++] = _3X; //#18544 - $k[$j++] = _3W.get(_3X); //#18544 - $k[$j++] = Infinity; //#18544 - var _3c = $k[--$j]; //#18544 - var _3d = $k[--$j]; //#18544 - $k[$j++] = _3c; //#18544 - $k[$j++] = $get($_.CNvals, $_.sft2); //#18544 - $k[$j++] = _3d; //#18544 - var _3h = $a(); //#18544 - $k[$j++] = _3h; //#18544 - } //#18544 - var _3i = $_.C3vals; //#18545 - for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18545 - var _3j = _3m.next().value; //#18545 - $k[$j++] = _3j; //#18545 - $k[$j++] = _3i.get(_3j); //#18545 - $k[$j++] = Infinity; //#18545 - var _3o = $k[--$j]; //#18545 - var _3p = $k[--$j]; //#18545 - $k[$j++] = _3o; //#18545 - $k[$j++] = $get($_.CNvals, $_.sft3); //#18545 - $k[$j++] = _3p; //#18545 - var _3t = $a(); //#18545 - $k[$j++] = _3t; //#18545 - } //#18545 - $_.Cvals = $d(); //#18546 - $k[$j++] = Infinity; //#18554 - $k[$j++] = $_.sft1; //#18553 - $k[$j++] = 0; //#18553 - $k[$j++] = $_.sft2; //#18553 - $k[$j++] = 1; //#18553 - $k[$j++] = $_.sft3; //#18553 - $k[$j++] = 2; //#18553 - $k[$j++] = 32; //#18553 - $k[$j++] = 3; //#18553 - for (var _3y = 48; _3y <= 57; _3y += 1) { //#18553 - $k[$j++] = _3y; //#18553 - $k[$j++] = _3y - 44; //#18553 - } //#18553 - for (var _3z = 97; _3z <= 122; _3z += 1) { //#18554 - $k[$j++] = _3z; //#18554 - $k[$j++] = _3z - 83; //#18554 - } //#18554 - $_.TNvals = $d(); //#18555 - $k[$j++] = Infinity; //#18556 - for (var _41 = 0; _41 <= 31; _41 += 1) { //#18556 - $k[$j++] = _41; //#18556 - $k[$j++] = _41; //#18556 - } //#18556 - $_.T1vals = $d(); //#18556 - $k[$j++] = Infinity; //#18562 - for (var _43 = 33; _43 <= 47; _43 += 1) { //#18558 - $k[$j++] = _43; //#18558 - $k[$j++] = _43 - 33; //#18558 - } //#18558 - for (var _44 = 58; _44 <= 64; _44 += 1) { //#18559 - $k[$j++] = _44; //#18559 - $k[$j++] = _44 - 43; //#18559 - } //#18559 - for (var _45 = 91; _45 <= 95; _45 += 1) { //#18560 - $k[$j++] = _45; //#18560 - $k[$j++] = _45 - 69; //#18560 - } //#18560 - $k[$j++] = $_.fnc1; //#18562 - $k[$j++] = 27; //#18562 - $k[$j++] = $_.usft; //#18562 - $k[$j++] = 30; //#18562 - $_.T2vals = $d(); //#18563 - $k[$j++] = Infinity; //#18567 - $k[$j++] = 96; //#18566 - $k[$j++] = 0; //#18566 - for (var _49 = 65; _49 <= 90; _49 += 1) { //#18566 - $k[$j++] = _49; //#18566 - $k[$j++] = _49 - 64; //#18566 - } //#18566 - for (var _4A = 123; _4A <= 127; _4A += 1) { //#18567 - $k[$j++] = _4A; //#18567 - $k[$j++] = _4A - 96; //#18567 - } //#18567 - $_.T3vals = $d(); //#18568 - $k[$j++] = Infinity; //#18573 - var _4C = $_.TNvals; //#18570 - for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18570 - var _4D = _4G.next().value; //#18570 - $k[$j++] = _4D; //#18570 - $k[$j++] = _4C.get(_4D); //#18570 - $k[$j++] = Infinity; //#18570 - var _4I = $k[--$j]; //#18570 - var _4J = $k[--$j]; //#18570 - $k[$j++] = _4I; //#18570 - $k[$j++] = _4J; //#18570 - var _4K = $a(); //#18570 - $k[$j++] = _4K; //#18570 - } //#18570 - var _4L = $_.T1vals; //#18571 - for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18571 - var _4M = _4P.next().value; //#18571 - $k[$j++] = _4M; //#18571 - $k[$j++] = _4L.get(_4M); //#18571 - $k[$j++] = Infinity; //#18571 - var _4R = $k[--$j]; //#18571 - var _4S = $k[--$j]; //#18571 - $k[$j++] = _4R; //#18571 - $k[$j++] = $get($_.TNvals, $_.sft1); //#18571 - $k[$j++] = _4S; //#18571 - var _4W = $a(); //#18571 - $k[$j++] = _4W; //#18571 - } //#18571 - var _4X = $_.T2vals; //#18572 - for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18572 - var _4Y = _4b.next().value; //#18572 - $k[$j++] = _4Y; //#18572 - $k[$j++] = _4X.get(_4Y); //#18572 - $k[$j++] = Infinity; //#18572 - var _4d = $k[--$j]; //#18572 - var _4e = $k[--$j]; //#18572 - $k[$j++] = _4d; //#18572 - $k[$j++] = $get($_.TNvals, $_.sft2); //#18572 - $k[$j++] = _4e; //#18572 - var _4i = $a(); //#18572 - $k[$j++] = _4i; //#18572 - } //#18572 - var _4j = $_.T3vals; //#18573 - for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18573 - var _4k = _4n.next().value; //#18573 - $k[$j++] = _4k; //#18573 - $k[$j++] = _4j.get(_4k); //#18573 - $k[$j++] = Infinity; //#18573 - var _4p = $k[--$j]; //#18573 - var _4q = $k[--$j]; //#18573 - $k[$j++] = _4p; //#18573 - $k[$j++] = $get($_.TNvals, $_.sft3); //#18573 - $k[$j++] = _4q; //#18573 - var _4u = $a(); //#18573 - $k[$j++] = _4u; //#18573 - } //#18573 - $_.Tvals = $d(); //#18574 - for (var _4w = 128; _4w <= 255; _4w += 1) { //#18582 - $_.i = _4w; //#18578 - $k[$j++] = $_.Avals; //#18579 - $k[$j++] = $_.i; //#18579 - $k[$j++] = Infinity; //#18579 - $aload($get($_.Avals, $_.usft)); //#18579 - $aload($get($_.Avals, $_.i - 128)); //#18579 - var _55 = $a(); //#18579 - var _56 = $k[--$j]; //#18579 - $put($k[--$j], _56, _55); //#18579 - $k[$j++] = $_.Cvals; //#18580 - $k[$j++] = $_.i; //#18580 - $k[$j++] = Infinity; //#18580 - $aload($get($_.Cvals, $_.usft)); //#18580 - $aload($get($_.Cvals, $_.i - 128)); //#18580 - var _5G = $a(); //#18580 - var _5H = $k[--$j]; //#18580 - $put($k[--$j], _5H, _5G); //#18580 - $k[$j++] = $_.Tvals; //#18581 - $k[$j++] = $_.i; //#18581 - $k[$j++] = Infinity; //#18581 - $aload($get($_.Tvals, $_.usft)); //#18581 - $aload($get($_.Tvals, $_.i - 128)); //#18581 - var _5R = $a(); //#18581 - var _5S = $k[--$j]; //#18581 - $put($k[--$j], _5S, _5R); //#18581 - } //#18581 - $k[$j++] = Infinity; //#18590 - $k[$j++] = 13; //#18589 - $k[$j++] = 0; //#18589 - $k[$j++] = 42; //#18589 - $k[$j++] = 1; //#18589 - $k[$j++] = 62; //#18589 - $k[$j++] = 2; //#18589 - $k[$j++] = 32; //#18589 - $k[$j++] = 3; //#18589 - for (var _5U = 48; _5U <= 57; _5U += 1) { //#18589 - $k[$j++] = _5U; //#18589 - $k[$j++] = _5U - 44; //#18589 - } //#18589 - for (var _5V = 65; _5V <= 90; _5V += 1) { //#18590 - $k[$j++] = _5V; //#18590 - $k[$j++] = _5V - 51; //#18590 - } //#18590 - $_.Xvals = $d(); //#18591 - $k[$j++] = Infinity; //#18593 - var _5X = $_.Xvals; //#18593 - for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18593 - var _5Y = _5b.next().value; //#18593 - $k[$j++] = _5Y; //#18593 - $k[$j++] = _5X.get(_5Y); //#18593 - $k[$j++] = Infinity; //#18593 - var _5d = $k[--$j]; //#18593 - var _5e = $k[--$j]; //#18593 - $k[$j++] = _5d; //#18593 - $k[$j++] = _5e; //#18593 - var _5f = $a(); //#18593 - $k[$j++] = _5f; //#18593 - } //#18593 - $_.Xvals = $d(); //#18594 - $k[$j++] = Infinity; //#18599 - for (var _5h = 64; _5h <= 94; _5h += 1) { //#18597 - $k[$j++] = _5h; //#18597 - $k[$j++] = _5h - 64; //#18597 - } //#18597 - $k[$j++] = $_.unl; //#18599 - $k[$j++] = 31; //#18599 - for (var _5j = 32; _5j <= 63; _5j += 1) { //#18599 - $k[$j++] = _5j; //#18599 - $k[$j++] = _5j; //#18599 - } //#18599 - $_.Evals = $d(); //#18600 - $k[$j++] = Infinity; //#18602 - var _5l = $_.Evals; //#18602 - for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18602 - var _5m = _5p.next().value; //#18602 - $k[$j++] = _5m; //#18602 - $k[$j++] = _5l.get(_5m); //#18602 - $k[$j++] = Infinity; //#18602 - var _5r = $k[--$j]; //#18602 - var _5s = $k[--$j]; //#18602 - $k[$j++] = _5r; //#18602 - $k[$j++] = _5s; //#18602 - var _5t = $a(); //#18602 - $k[$j++] = _5t; //#18602 - } //#18602 - $_.Evals = $d(); //#18603 - $k[$j++] = Infinity; //#18606 - for (var _5v = 0; _5v <= 255; _5v += 1) { //#18606 - $k[$j++] = _5v; //#18606 - $k[$j++] = _5v; //#18606 - } //#18606 - $_.Bvals = $d(); //#18607 - $k[$j++] = Infinity; //#18609 - var _5x = $_.Bvals; //#18609 - for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18609 - var _5y = _61.next().value; //#18609 - $k[$j++] = _5y; //#18609 - $k[$j++] = _5x.get(_5y); //#18609 - $k[$j++] = Infinity; //#18609 - var _63 = $k[--$j]; //#18609 - var _64 = $k[--$j]; //#18609 - $k[$j++] = _63; //#18609 - $k[$j++] = _64; //#18609 - var _65 = $a(); //#18609 - $k[$j++] = _65; //#18609 - } //#18609 - $_.Bvals = $d(); //#18610 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18612 - $_.A = 0; //#18614 - $_.C = 1; //#18614 - $_.T = 2; //#18614 - $_.X = 3; //#18614 - $_.E = 4; //#18614 - $_.B = 5; //#18614 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18614 - bwipp_datamatrix.__18615__ = 1; //#18614 - $_ = Object.getPrototypeOf($_); //#18614 - } //#18614 - if ($_.raw) { //#19019 - $_.cws = $a($_.barcode.length); //#18619 - $_.i = 0; //#18620 - $_.j = 0; //#18620 - for (;;) { //#18627 - if ($_.i == $_.barcode.length) { //#18622 - break; //#18622 - } //#18622 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18623 - $put($_.cws, $_.j, $_.cw); //#18624 - $_.i = $_.i + 4; //#18625 - $_.j = $_.j + 1; //#18626 - } //#18626 - $_.cws = $geti($_.cws, 0, $_.j); //#18628 - } else { //#19019 + $_ = Object.create($_); //#18635 + $_.dontdraw = false; //#18638 + $_.columns = 0; //#18639 + $_.rows = 0; //#18640 + $_.format = "unset"; //#18641 + $_.version = "unset"; //#18642 + $_.parse = false; //#18643 + $_.parsefnc = false; //#18644 + $_.c40headerlength = -1; //#18645 + $_.raw = false; //#18646 + $_.dmre = false; //#18647 + $k[$j++] = $_; //#18649 + bwipp_processoptions(); //#18649 + $_.options = $k[--$j]; //#18649 + $_.barcode = $k[--$j]; //#18650 + if ($eq($_.barcode, "")) { //#18654 + $k[$j++] = 'bwipp.datamatrixEmptyData#18653'; //#18653 + $k[$j++] = "The data must not be empty"; //#18653 + bwipp_raiseerror(); //#18653 + } //#18653 + if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18658 + $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18657'; //#18657 + $k[$j++] = "rows and columns must not be given if version is specified"; //#18657 + bwipp_raiseerror(); //#18657 + } //#18657 + if ($ne($_.version, "unset")) { //#18682 + $search($_.version, "x"); //#18662 + if ($k[--$j]) { //#18678 + var _9 = $k[--$j]; //#18663 + var _A = $k[--$j]; //#18663 + $k[$j++] = _9; //#18663 + $k[$j++] = _A; //#18663 + $j--; //#18663 + var _B = $k[--$j]; //#18664 + var _C = $k[--$j]; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $astore($a(2)); //#18664 + $forall($k[--$j], function() { //#18673 + var _F = $k[--$j]; //#18666 + $k[$j++] = _F; //#18666 + $k[$j++] = true; //#18666 + if (_F.length == 0) { //#18666 + $j--; //#18666 + $k[$j++] = false; //#18666 + } //#18666 + var _G = $k[--$j]; //#18667 + var _H = $k[--$j]; //#18667 + $k[$j++] = _G; //#18669 + $forall(_H, function() { //#18669 + var _I = $k[--$j]; //#18668 + if ((_I < 48) || (_I > 57)) { //#18668 + $j--; //#18668 + $k[$j++] = false; //#18668 + } //#18668 + }); //#18668 + if ($nt($k[--$j])) { //#18672 + $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18671'; //#18671 + $k[$j++] = "version must be formatted as RxC"; //#18671 + bwipp_raiseerror(); //#18671 + } //#18671 + }); //#18671 + $_.rows = $cvi($k[--$j]); //#18674 + $_.columns = $cvi($k[--$j]); //#18675 + $k[$j++] = 'format'; //#18676 + if ($_.rows == $_.columns) { //#18676 + $k[$j++] = "square"; //#18676 + } else { //#18676 + $k[$j++] = "rectangle"; //#18676 + } //#18676 + var _O = $k[--$j]; //#18676 + $_[$k[--$j]] = _O; //#18676 + } else { //#18678 + $j--; //#18678 + $k[$j++] = 'bwipp.datamatrixVersionFormat#18678'; //#18678 + $k[$j++] = "version must be formatted as RxC"; //#18678 + bwipp_raiseerror(); //#18678 + } //#18678 + } else { //#18682 + if ($eq($_.format, "unset")) { //#18683 + $k[$j++] = 'format'; //#18682 + if ($_.dmre) { //#18682 + $k[$j++] = "rectangle"; //#18682 + } else { //#18682 + $k[$j++] = "square"; //#18682 + } //#18682 + var _S = $k[--$j]; //#18682 + $_[$k[--$j]] = _S; //#18682 + } //#18682 + } //#18682 + if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18688 + $k[$j++] = 'bwipp.datamatrixInvalidFormat#18687'; //#18687 + $k[$j++] = "The format must be either square or rectangle"; //#18687 + bwipp_raiseerror(); //#18687 + } //#18687 + bwipp_loadctx(bwipp_datamatrix) //#18690 + if (!bwipp_datamatrix.__18747__) { //#18747 + $_ = Object.create($_); //#18747 + var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18736 + $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18746 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18746 + bwipp_datamatrix.__18747__ = 1; //#18746 + $_ = Object.getPrototypeOf($_); //#18746 + } //#18746 + $_.urows = $_.rows; //#18750 + $_.ucols = $_.columns; //#18751 + $_.fullcws = $a([]); //#18752 + var _1N = $_.metrics; //#18753 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18772 + $_.m = $get(_1N, _1O); //#18754 + $_.rows = $get($_.m, 0); //#18755 + $_.cols = $get($_.m, 1); //#18756 + $_.regh = $get($_.m, 2); //#18757 + $_.regv = $get($_.m, 3); //#18758 + $_.rscw = $get($_.m, 4); //#18759 + $_.rsbl = $get($_.m, 5); //#18760 + $_.doly = $get($_.m, 6); //#18761 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#18762 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#18763 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18764 + $_.okay = true; //#18765 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18766 + $_.okay = false; //#18766 + } //#18766 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18767 + $_.okay = false; //#18767 + } //#18767 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18768 + $_.okay = false; //#18768 + } //#18768 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18769 + $_.okay = false; //#18769 + } //#18769 + if ((!$_.dmre) && ($_.doly == 1)) { //#18770 + $_.okay = false; //#18770 + } //#18770 + if ($_.okay) { //#18771 + $k[$j++] = Infinity; //#18771 + $aload($_.fullcws); //#18771 + $k[$j++] = $_.ncws; //#18771 + $_.fullcws = $a(); //#18771 + } //#18771 + } //#18771 + $k[$j++] = Infinity; //#18773 + for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18773 + $k[$j++] = 10000; //#18773 + } //#18773 + $_.numremcws = $a(); //#18773 + var _27 = $_.fullcws; //#18774 + for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18774 + $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18774 + } //#18774 + for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18780 + $_.i = _2C; //#18776 + if ($get($_.numremcws, $_.i) != 1) { //#18779 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18778 + } //#18778 + } //#18778 + if (!bwipp_datamatrix.__18893__) { //#18893 + $_ = Object.create($_); //#18893 + $_.fnc1 = -1; //#18784 + $_.prog = -2; //#18784 + $_.m05 = -3; //#18784 + $_.m06 = -4; //#18784 + $_.lC = -5; //#18785 + $_.lB = -6; //#18785 + $_.lX = -7; //#18785 + $_.lT = -8; //#18785 + $_.lE = -9; //#18785 + $_.unl = -10; //#18785 + $_.sapp = -11; //#18786 + $_.usft = -12; //#18786 + $_.sft1 = -13; //#18786 + $_.sft2 = -14; //#18786 + $_.sft3 = -15; //#18786 + $_.eci = -16; //#18786 + $_.pad = -17; //#18786 + $_.unlcw = 254; //#18787 + $k[$j++] = Infinity; //#18789 + for (var _2L = 0; _2L <= 128; _2L += 1) { //#18790 + $k[$j++] = _2L; //#18790 + $k[$j++] = _2L + 1; //#18790 + } //#18790 + $k[$j++] = $_.pad; //#18795 + $k[$j++] = 129; //#18795 + for (var _2N = 0; _2N <= 99; _2N += 1) { //#18795 + var _2P = $cvrs($s(2), _2N, 10); //#18793 + var _2R = $strcpy($s(2), "00"); //#18793 + $puti(_2R, 2 - _2P.length, _2P); //#18793 + $k[$j++] = _2R; //#18794 + $k[$j++] = _2N + 130; //#18794 + } //#18794 + var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18796 + $k[$j++] = 229; //#18796 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18796 + var _2j = $f($k[--$j] + 1); //#18796 + $k[$j++] = $get(_2e, _2f); //#18796 + $k[$j++] = _2j; //#18796 + $k[$j++] = _2j; //#18796 + } //#18796 + $j--; //#18796 + $_.Avals = $d(); //#18797 + $k[$j++] = Infinity; //#18798 + var _2l = $_.Avals; //#18799 + for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18799 + var _2m = _2p.next().value; //#18799 + $k[$j++] = _2m; //#18799 + $k[$j++] = _2l.get(_2m); //#18799 + $k[$j++] = Infinity; //#18799 + var _2r = $k[--$j]; //#18799 + var _2s = $k[--$j]; //#18799 + $k[$j++] = _2r; //#18799 + $k[$j++] = _2s; //#18799 + var _2t = $a(); //#18799 + $k[$j++] = _2t; //#18799 + } //#18799 + $_.Avals = $d(); //#18800 + $k[$j++] = Infinity; //#18802 + $k[$j++] = $_.sft1; //#18807 + $k[$j++] = 0; //#18807 + $k[$j++] = $_.sft2; //#18807 + $k[$j++] = 1; //#18807 + $k[$j++] = $_.sft3; //#18807 + $k[$j++] = 2; //#18807 + $k[$j++] = 32; //#18807 + $k[$j++] = 3; //#18807 + for (var _2y = 48; _2y <= 57; _2y += 1) { //#18807 + $k[$j++] = _2y; //#18807 + $k[$j++] = _2y - 44; //#18807 + } //#18807 + for (var _2z = 65; _2z <= 90; _2z += 1) { //#18808 + $k[$j++] = _2z; //#18808 + $k[$j++] = _2z - 51; //#18808 + } //#18808 + $_.CNvals = $d(); //#18809 + $k[$j++] = Infinity; //#18810 + for (var _31 = 0; _31 <= 31; _31 += 1) { //#18810 + $k[$j++] = _31; //#18810 + $k[$j++] = _31; //#18810 + } //#18810 + $_.C1vals = $d(); //#18810 + $k[$j++] = Infinity; //#18811 + for (var _33 = 33; _33 <= 47; _33 += 1) { //#18812 + $k[$j++] = _33; //#18812 + $k[$j++] = _33 - 33; //#18812 + } //#18812 + for (var _34 = 58; _34 <= 64; _34 += 1) { //#18813 + $k[$j++] = _34; //#18813 + $k[$j++] = _34 - 43; //#18813 + } //#18813 + for (var _35 = 91; _35 <= 95; _35 += 1) { //#18814 + $k[$j++] = _35; //#18814 + $k[$j++] = _35 - 69; //#18814 + } //#18814 + $k[$j++] = $_.fnc1; //#18816 + $k[$j++] = 27; //#18816 + $k[$j++] = $_.usft; //#18816 + $k[$j++] = 30; //#18816 + $_.C2vals = $d(); //#18817 + $k[$j++] = Infinity; //#18818 + for (var _39 = 96; _39 <= 127; _39 += 1) { //#18818 + $k[$j++] = _39; //#18818 + $k[$j++] = _39 - 96; //#18818 + } //#18818 + $_.C3vals = $d(); //#18818 + $k[$j++] = Infinity; //#18819 + var _3B = $_.CNvals; //#18820 + for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18820 + var _3C = _3F.next().value; //#18820 + $k[$j++] = _3C; //#18820 + $k[$j++] = _3B.get(_3C); //#18820 + $k[$j++] = Infinity; //#18820 + var _3H = $k[--$j]; //#18820 + var _3I = $k[--$j]; //#18820 + $k[$j++] = _3H; //#18820 + $k[$j++] = _3I; //#18820 + var _3J = $a(); //#18820 + $k[$j++] = _3J; //#18820 + } //#18820 + var _3K = $_.C1vals; //#18821 + for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18821 + var _3L = _3O.next().value; //#18821 + $k[$j++] = _3L; //#18821 + $k[$j++] = _3K.get(_3L); //#18821 + $k[$j++] = Infinity; //#18821 + var _3Q = $k[--$j]; //#18821 + var _3R = $k[--$j]; //#18821 + $k[$j++] = _3Q; //#18821 + $k[$j++] = $get($_.CNvals, $_.sft1); //#18821 + $k[$j++] = _3R; //#18821 + var _3V = $a(); //#18821 + $k[$j++] = _3V; //#18821 + } //#18821 + var _3W = $_.C2vals; //#18822 + for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18822 + var _3X = _3a.next().value; //#18822 + $k[$j++] = _3X; //#18822 + $k[$j++] = _3W.get(_3X); //#18822 + $k[$j++] = Infinity; //#18822 + var _3c = $k[--$j]; //#18822 + var _3d = $k[--$j]; //#18822 + $k[$j++] = _3c; //#18822 + $k[$j++] = $get($_.CNvals, $_.sft2); //#18822 + $k[$j++] = _3d; //#18822 + var _3h = $a(); //#18822 + $k[$j++] = _3h; //#18822 + } //#18822 + var _3i = $_.C3vals; //#18823 + for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18823 + var _3j = _3m.next().value; //#18823 + $k[$j++] = _3j; //#18823 + $k[$j++] = _3i.get(_3j); //#18823 + $k[$j++] = Infinity; //#18823 + var _3o = $k[--$j]; //#18823 + var _3p = $k[--$j]; //#18823 + $k[$j++] = _3o; //#18823 + $k[$j++] = $get($_.CNvals, $_.sft3); //#18823 + $k[$j++] = _3p; //#18823 + var _3t = $a(); //#18823 + $k[$j++] = _3t; //#18823 + } //#18823 + $_.Cvals = $d(); //#18824 + $k[$j++] = Infinity; //#18826 + $k[$j++] = $_.sft1; //#18831 + $k[$j++] = 0; //#18831 + $k[$j++] = $_.sft2; //#18831 + $k[$j++] = 1; //#18831 + $k[$j++] = $_.sft3; //#18831 + $k[$j++] = 2; //#18831 + $k[$j++] = 32; //#18831 + $k[$j++] = 3; //#18831 + for (var _3y = 48; _3y <= 57; _3y += 1) { //#18831 + $k[$j++] = _3y; //#18831 + $k[$j++] = _3y - 44; //#18831 + } //#18831 + for (var _3z = 97; _3z <= 122; _3z += 1) { //#18832 + $k[$j++] = _3z; //#18832 + $k[$j++] = _3z - 83; //#18832 + } //#18832 + $_.TNvals = $d(); //#18833 + $k[$j++] = Infinity; //#18834 + for (var _41 = 0; _41 <= 31; _41 += 1) { //#18834 + $k[$j++] = _41; //#18834 + $k[$j++] = _41; //#18834 + } //#18834 + $_.T1vals = $d(); //#18834 + $k[$j++] = Infinity; //#18835 + for (var _43 = 33; _43 <= 47; _43 += 1) { //#18836 + $k[$j++] = _43; //#18836 + $k[$j++] = _43 - 33; //#18836 + } //#18836 + for (var _44 = 58; _44 <= 64; _44 += 1) { //#18837 + $k[$j++] = _44; //#18837 + $k[$j++] = _44 - 43; //#18837 + } //#18837 + for (var _45 = 91; _45 <= 95; _45 += 1) { //#18838 + $k[$j++] = _45; //#18838 + $k[$j++] = _45 - 69; //#18838 + } //#18838 + $k[$j++] = $_.fnc1; //#18840 + $k[$j++] = 27; //#18840 + $k[$j++] = $_.usft; //#18840 + $k[$j++] = 30; //#18840 + $_.T2vals = $d(); //#18841 + $k[$j++] = Infinity; //#18842 + $k[$j++] = 96; //#18844 + $k[$j++] = 0; //#18844 + for (var _49 = 65; _49 <= 90; _49 += 1) { //#18844 + $k[$j++] = _49; //#18844 + $k[$j++] = _49 - 64; //#18844 + } //#18844 + for (var _4A = 123; _4A <= 127; _4A += 1) { //#18845 + $k[$j++] = _4A; //#18845 + $k[$j++] = _4A - 96; //#18845 + } //#18845 + $_.T3vals = $d(); //#18846 + $k[$j++] = Infinity; //#18847 + var _4C = $_.TNvals; //#18848 + for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18848 + var _4D = _4G.next().value; //#18848 + $k[$j++] = _4D; //#18848 + $k[$j++] = _4C.get(_4D); //#18848 + $k[$j++] = Infinity; //#18848 + var _4I = $k[--$j]; //#18848 + var _4J = $k[--$j]; //#18848 + $k[$j++] = _4I; //#18848 + $k[$j++] = _4J; //#18848 + var _4K = $a(); //#18848 + $k[$j++] = _4K; //#18848 + } //#18848 + var _4L = $_.T1vals; //#18849 + for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18849 + var _4M = _4P.next().value; //#18849 + $k[$j++] = _4M; //#18849 + $k[$j++] = _4L.get(_4M); //#18849 + $k[$j++] = Infinity; //#18849 + var _4R = $k[--$j]; //#18849 + var _4S = $k[--$j]; //#18849 + $k[$j++] = _4R; //#18849 + $k[$j++] = $get($_.TNvals, $_.sft1); //#18849 + $k[$j++] = _4S; //#18849 + var _4W = $a(); //#18849 + $k[$j++] = _4W; //#18849 + } //#18849 + var _4X = $_.T2vals; //#18850 + for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18850 + var _4Y = _4b.next().value; //#18850 + $k[$j++] = _4Y; //#18850 + $k[$j++] = _4X.get(_4Y); //#18850 + $k[$j++] = Infinity; //#18850 + var _4d = $k[--$j]; //#18850 + var _4e = $k[--$j]; //#18850 + $k[$j++] = _4d; //#18850 + $k[$j++] = $get($_.TNvals, $_.sft2); //#18850 + $k[$j++] = _4e; //#18850 + var _4i = $a(); //#18850 + $k[$j++] = _4i; //#18850 + } //#18850 + var _4j = $_.T3vals; //#18851 + for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18851 + var _4k = _4n.next().value; //#18851 + $k[$j++] = _4k; //#18851 + $k[$j++] = _4j.get(_4k); //#18851 + $k[$j++] = Infinity; //#18851 + var _4p = $k[--$j]; //#18851 + var _4q = $k[--$j]; //#18851 + $k[$j++] = _4p; //#18851 + $k[$j++] = $get($_.TNvals, $_.sft3); //#18851 + $k[$j++] = _4q; //#18851 + var _4u = $a(); //#18851 + $k[$j++] = _4u; //#18851 + } //#18851 + $_.Tvals = $d(); //#18852 + for (var _4w = 128; _4w <= 255; _4w += 1) { //#18860 + $_.i = _4w; //#18856 + $k[$j++] = $_.Avals; //#18857 + $k[$j++] = $_.i; //#18857 + $k[$j++] = Infinity; //#18857 + $aload($get($_.Avals, $_.usft)); //#18857 + $aload($get($_.Avals, $_.i - 128)); //#18857 + var _55 = $a(); //#18857 + var _56 = $k[--$j]; //#18857 + $put($k[--$j], _56, _55); //#18857 + $k[$j++] = $_.Cvals; //#18858 + $k[$j++] = $_.i; //#18858 + $k[$j++] = Infinity; //#18858 + $aload($get($_.Cvals, $_.usft)); //#18858 + $aload($get($_.Cvals, $_.i - 128)); //#18858 + var _5G = $a(); //#18858 + var _5H = $k[--$j]; //#18858 + $put($k[--$j], _5H, _5G); //#18858 + $k[$j++] = $_.Tvals; //#18859 + $k[$j++] = $_.i; //#18859 + $k[$j++] = Infinity; //#18859 + $aload($get($_.Tvals, $_.usft)); //#18859 + $aload($get($_.Tvals, $_.i - 128)); //#18859 + var _5R = $a(); //#18859 + var _5S = $k[--$j]; //#18859 + $put($k[--$j], _5S, _5R); //#18859 + } //#18859 + $k[$j++] = Infinity; //#18862 + $k[$j++] = 13; //#18867 + $k[$j++] = 0; //#18867 + $k[$j++] = 42; //#18867 + $k[$j++] = 1; //#18867 + $k[$j++] = 62; //#18867 + $k[$j++] = 2; //#18867 + $k[$j++] = 32; //#18867 + $k[$j++] = 3; //#18867 + for (var _5U = 48; _5U <= 57; _5U += 1) { //#18867 + $k[$j++] = _5U; //#18867 + $k[$j++] = _5U - 44; //#18867 + } //#18867 + for (var _5V = 65; _5V <= 90; _5V += 1) { //#18868 + $k[$j++] = _5V; //#18868 + $k[$j++] = _5V - 51; //#18868 + } //#18868 + $_.Xvals = $d(); //#18869 + $k[$j++] = Infinity; //#18870 + var _5X = $_.Xvals; //#18871 + for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18871 + var _5Y = _5b.next().value; //#18871 + $k[$j++] = _5Y; //#18871 + $k[$j++] = _5X.get(_5Y); //#18871 + $k[$j++] = Infinity; //#18871 + var _5d = $k[--$j]; //#18871 + var _5e = $k[--$j]; //#18871 + $k[$j++] = _5d; //#18871 + $k[$j++] = _5e; //#18871 + var _5f = $a(); //#18871 + $k[$j++] = _5f; //#18871 + } //#18871 + $_.Xvals = $d(); //#18872 + $k[$j++] = Infinity; //#18874 + for (var _5h = 64; _5h <= 94; _5h += 1) { //#18875 + $k[$j++] = _5h; //#18875 + $k[$j++] = _5h - 64; //#18875 + } //#18875 + $k[$j++] = $_.unl; //#18877 + $k[$j++] = 31; //#18877 + for (var _5j = 32; _5j <= 63; _5j += 1) { //#18877 + $k[$j++] = _5j; //#18877 + $k[$j++] = _5j; //#18877 + } //#18877 + $_.Evals = $d(); //#18878 + $k[$j++] = Infinity; //#18879 + var _5l = $_.Evals; //#18880 + for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18880 + var _5m = _5p.next().value; //#18880 + $k[$j++] = _5m; //#18880 + $k[$j++] = _5l.get(_5m); //#18880 + $k[$j++] = Infinity; //#18880 + var _5r = $k[--$j]; //#18880 + var _5s = $k[--$j]; //#18880 + $k[$j++] = _5r; //#18880 + $k[$j++] = _5s; //#18880 + var _5t = $a(); //#18880 + $k[$j++] = _5t; //#18880 + } //#18880 + $_.Evals = $d(); //#18881 + $k[$j++] = Infinity; //#18883 + for (var _5v = 0; _5v <= 255; _5v += 1) { //#18884 + $k[$j++] = _5v; //#18884 + $k[$j++] = _5v; //#18884 + } //#18884 + $_.Bvals = $d(); //#18885 + $k[$j++] = Infinity; //#18886 + var _5x = $_.Bvals; //#18887 + for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18887 + var _5y = _61.next().value; //#18887 + $k[$j++] = _5y; //#18887 + $k[$j++] = _5x.get(_5y); //#18887 + $k[$j++] = Infinity; //#18887 + var _63 = $k[--$j]; //#18887 + var _64 = $k[--$j]; //#18887 + $k[$j++] = _63; //#18887 + $k[$j++] = _64; //#18887 + var _65 = $a(); //#18887 + $k[$j++] = _65; //#18887 + } //#18887 + $_.Bvals = $d(); //#18888 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18890 + $_.A = 0; //#18892 + $_.C = 1; //#18892 + $_.T = 2; //#18892 + $_.X = 3; //#18892 + $_.E = 4; //#18892 + $_.B = 5; //#18892 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18892 + bwipp_datamatrix.__18893__ = 1; //#18892 + $_ = Object.getPrototypeOf($_); //#18892 + } //#18892 + if ($_.raw) { //#19297 + $_.cws = $a($_.barcode.length); //#18897 + $_.i = 0; //#18898 + $_.j = 0; //#18898 + for (;;) { //#18905 + if ($_.i == $_.barcode.length) { //#18900 + break; //#18900 + } //#18900 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18901 + $put($_.cws, $_.j, $_.cw); //#18902 + $_.i = $_.i + 4; //#18903 + $_.j = $_.j + 1; //#18904 + } //#18904 + $_.cws = $geti($_.cws, 0, $_.j); //#18906 + } else { //#19297 var _6Z = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["PROG", $_.prog] - ]); //#18638 - $_.fncvals = _6Z; //#18641 - $k[$j++] = 'msg'; //#18642 - $k[$j++] = $_.barcode; //#18642 - $k[$j++] = $_.fncvals; //#18642 - bwipp_parseinput(); //#18642 - var _6c = $k[--$j]; //#18642 - $_[$k[--$j]] = _6c; //#18642 - $_.msglen = $_.msg.length; //#18643 - if ($_.msglen >= 9) { //#18661 - $aload($geti($_.msg, 0, 7)); //#18647 - var _6i = $k[--$j]; //#18648 - var _6j = $k[--$j]; //#18648 - $k[$j++] = _6i == 29; //#18648 - $k[$j++] = _6j; //#18648 - $j--; //#18648 - var _6k = $k[--$j]; //#18648 - var _6l = $k[--$j]; //#18648 - var _6m = $k[--$j]; //#18648 - var _6n = $k[--$j]; //#18649 - var _6o = $k[--$j]; //#18649 - var _6p = $k[--$j]; //#18649 - if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18660 - $aload($geti($_.msg, $_.msglen - 2, 2)); //#18650 - var _6t = $k[--$j]; //#18651 - var _6u = $k[--$j]; //#18651 - if ((_6t == 4) && (_6u == 30)) { //#18659 - if ($get($_.msg, 5) == 53) { //#18656 - $k[$j++] = Infinity; //#18653 - $k[$j++] = $_.m05; //#18653 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18653 - $_.msg = $a(); //#18653 - } else { //#18656 - if ($get($_.msg, 5) == 54) { //#18657 - $k[$j++] = Infinity; //#18656 - $k[$j++] = $_.m06; //#18656 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18656 - $_.msg = $a(); //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - $_.msglen = $_.msg.length; //#18662 - $k[$j++] = Infinity; //#18664 - for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18664 - $k[$j++] = 0; //#18664 - } //#18664 - $k[$j++] = 0; //#18664 - $_.numD = $a(); //#18664 - $k[$j++] = Infinity; //#18665 - for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18665 - $k[$j++] = 0; //#18665 - } //#18665 - $k[$j++] = 9999; //#18665 - $_.nextXterm = $a(); //#18665 - $k[$j++] = Infinity; //#18666 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18666 - $k[$j++] = 0; //#18666 - } //#18666 - $k[$j++] = 9999; //#18666 - $_.nextNonX = $a(); //#18666 - $k[$j++] = Infinity; //#18667 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18667 - $k[$j++] = false; //#18667 - } //#18667 - $k[$j++] = false; //#18667 - $_.isECI = $a(); //#18667 - for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18685 - $_.i = _7R; //#18669 - $_.barchar = $get($_.msg, $_.i); //#18670 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18673 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18672 - } //#18672 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18677 - $put($_.nextXterm, $_.i, 0); //#18675 - } else { //#18677 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18677 - } //#18677 - var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18679 - if (!_7o) { //#18682 - $put($_.nextNonX, $_.i, 0); //#18680 - } else { //#18682 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18682 - } //#18682 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18684 - } //#18684 - $k[$j++] = Infinity; //#18686 - var _7z = $_.nextXterm; //#18686 - for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18686 - var _82 = $get(_7z, _80); //#18686 - $k[$j++] = _82; //#18686 - if (_82 > 10000) { //#18686 - $j--; //#18686 - $k[$j++] = 10000; //#18686 - } //#18686 - } //#18686 - $_.nextXterm = $a(); //#18686 - $k[$j++] = Infinity; //#18687 - var _84 = $_.nextNonX; //#18687 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18687 - var _87 = $get(_84, _85); //#18687 - $k[$j++] = _87; //#18687 - if (_87 > 10000) { //#18687 - $j--; //#18687 - $k[$j++] = 10000; //#18687 - } //#18687 - } //#18687 - $_.nextNonX = $a(); //#18687 + ]); //#18916 + $_.fncvals = _6Z; //#18919 + $k[$j++] = 'msg'; //#18920 + $k[$j++] = $_.barcode; //#18920 + $k[$j++] = $_.fncvals; //#18920 + bwipp_parseinput(); //#18920 + var _6c = $k[--$j]; //#18920 + $_[$k[--$j]] = _6c; //#18920 + $_.msglen = $_.msg.length; //#18921 + if ($_.msglen >= 9) { //#18939 + $aload($geti($_.msg, 0, 7)); //#18925 + var _6i = $k[--$j]; //#18926 + var _6j = $k[--$j]; //#18926 + $k[$j++] = _6i == 29; //#18926 + $k[$j++] = _6j; //#18926 + $j--; //#18926 + var _6k = $k[--$j]; //#18926 + var _6l = $k[--$j]; //#18926 + var _6m = $k[--$j]; //#18926 + var _6n = $k[--$j]; //#18927 + var _6o = $k[--$j]; //#18927 + var _6p = $k[--$j]; //#18927 + if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18938 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#18928 + var _6t = $k[--$j]; //#18929 + var _6u = $k[--$j]; //#18929 + if ((_6t == 4) && (_6u == 30)) { //#18937 + if ($get($_.msg, 5) == 53) { //#18934 + $k[$j++] = Infinity; //#18931 + $k[$j++] = $_.m05; //#18931 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18931 + $_.msg = $a(); //#18931 + } else { //#18934 + if ($get($_.msg, 5) == 54) { //#18935 + $k[$j++] = Infinity; //#18934 + $k[$j++] = $_.m06; //#18934 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18934 + $_.msg = $a(); //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + $_.msglen = $_.msg.length; //#18940 + $k[$j++] = Infinity; //#18942 + for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18942 + $k[$j++] = 0; //#18942 + } //#18942 + $k[$j++] = 0; //#18942 + $_.numD = $a(); //#18942 + $k[$j++] = Infinity; //#18943 + for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18943 + $k[$j++] = 0; //#18943 + } //#18943 + $k[$j++] = 9999; //#18943 + $_.nextXterm = $a(); //#18943 + $k[$j++] = Infinity; //#18944 + for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $k[$j++] = 9999; //#18944 + $_.nextNonX = $a(); //#18944 + $k[$j++] = Infinity; //#18945 + for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18945 + $k[$j++] = false; //#18945 + } //#18945 + $k[$j++] = false; //#18945 + $_.isECI = $a(); //#18945 + for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18963 + $_.i = _7R; //#18947 + $_.barchar = $get($_.msg, $_.i); //#18948 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18951 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18950 + } //#18950 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18955 + $put($_.nextXterm, $_.i, 0); //#18953 + } else { //#18955 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18955 + } //#18955 + var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18957 + if (!_7o) { //#18960 + $put($_.nextNonX, $_.i, 0); //#18958 + } else { //#18960 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18960 + } //#18960 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18962 + } //#18962 + $k[$j++] = Infinity; //#18964 + var _7z = $_.nextXterm; //#18964 + for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18964 + var _82 = $get(_7z, _80); //#18964 + $k[$j++] = _82; //#18964 + if (_82 > 10000) { //#18964 + $j--; //#18964 + $k[$j++] = 10000; //#18964 + } //#18964 + } //#18964 + $_.nextXterm = $a(); //#18964 + $k[$j++] = Infinity; //#18965 + var _84 = $_.nextNonX; //#18965 + for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18965 + var _87 = $get(_84, _85); //#18965 + $k[$j++] = _87; //#18965 + if (_87 > 10000) { //#18965 + $j--; //#18965 + $k[$j++] = 10000; //#18965 + } //#18965 + } //#18965 + $_.nextNonX = $a(); //#18965 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18689 - }; //#18689 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18967 + }; //#18967 $_.isC = function() { - var _8D = $get($_.CNvals, $_.char) !== undefined; //#18690 - $k[$j++] = _8D; //#18690 - }; //#18690 + var _8D = $get($_.CNvals, $_.char) !== undefined; //#18968 + $k[$j++] = _8D; //#18968 + }; //#18968 $_.isT = function() { - var _8G = $get($_.TNvals, $_.char) !== undefined; //#18691 - $k[$j++] = _8G; //#18691 - }; //#18691 + var _8G = $get($_.TNvals, $_.char) !== undefined; //#18969 + $k[$j++] = _8G; //#18969 + }; //#18969 $_.isX = function() { - var _8J = $get($_.Xvals, $_.char) !== undefined; //#18692 - $k[$j++] = _8J; //#18692 - }; //#18692 + var _8J = $get($_.Xvals, $_.char) !== undefined; //#18970 + $k[$j++] = _8J; //#18970 + }; //#18970 $_.isE = function() { - var _8M = $get($_.Evals, $_.char) !== undefined; //#18693 - $k[$j++] = _8M; //#18693 - }; //#18693 + var _8M = $get($_.Evals, $_.char) !== undefined; //#18971 + $k[$j++] = _8M; //#18971 + }; //#18971 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#18694 - }; //#18694 + $k[$j++] = $_.char > 127; //#18972 + }; //#18972 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#18695 - }; //#18695 + $k[$j++] = $_.char < 0; //#18973 + }; //#18973 $_.XtermFirst = function() { - var _8P = $k[--$j]; //#18696 - $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18696 - }; //#18696 + var _8P = $k[--$j]; //#18974 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18974 + }; //#18974 $_.lookup = function() { - $_.ac = 1; //#18700 - $_.cc = 2; //#18700 - $_.tc = 2; //#18700 - $_.xc = 2; //#18700 - $_.ec = 2; //#18700 - $_.bc = 2.25; //#18700 - if ($_.mode == $_.A) { //#18701 - $_.ac = 0; //#18701 - $_.cc = 1; //#18701 - $_.tc = 1; //#18701 - $_.xc = 1; //#18701 - $_.ec = 1; //#18701 - $_.bc = 1.25; //#18701 - } //#18701 - if ($_.mode == $_.C) { //#18702 - $_.cc = 0; //#18702 - } //#18702 - if ($_.mode == $_.T) { //#18703 - $_.tc = 0; //#18703 - } //#18703 - if ($_.mode == $_.X) { //#18704 - $_.xc = 0; //#18704 - } //#18704 - if ($_.mode == $_.E) { //#18705 - $_.ec = 0; //#18705 - } //#18705 - if ($_.mode == $_.B) { //#18706 - $_.bc = 0; //#18706 - } //#18706 - for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#18741 - if ($get($_.isECI, $_.i)) { //#18708 - $k[$j++] = $_.A; //#18708 - break; //#18708 - } //#18708 - if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18709 - $k[$j++] = $_.C; //#18709 - break; //#18709 - } //#18709 - $_.k = 0; //#18710 - for (;;) { //#18740 - if (($_.i + $_.k) == $_.msglen) { //#18719 - var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18712 - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18712 - var _8w = $get(_8t, _8u); //#18712 - $_[_8w] = Math.ceil($_[_8w]); //#18712 - } //#18712 - var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18713 - $k[$j++] = true; //#18713 - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18713 - var _98 = $k[--$j]; //#18713 - $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18713 - } //#18713 - if ($k[--$j]) { //#18713 - $k[$j++] = $_.A; //#18713 - break; //#18713 - } //#18713 - var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18714 - $k[$j++] = true; //#18714 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18714 - var _9L = $k[--$j]; //#18714 - $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18714 - } //#18714 - if ($k[--$j]) { //#18714 - $k[$j++] = $_.B; //#18714 - break; //#18714 - } //#18714 - var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18715 - $k[$j++] = true; //#18715 - for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18715 - var _9Y = $k[--$j]; //#18715 - $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18715 - } //#18715 - if ($k[--$j]) { //#18715 - $k[$j++] = $_.E; //#18715 - break; //#18715 - } //#18715 - var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18716 - $k[$j++] = true; //#18716 - for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18716 - var _9l = $k[--$j]; //#18716 - $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18716 - } //#18716 - if ($k[--$j]) { //#18716 - $k[$j++] = $_.T; //#18716 - break; //#18716 - } //#18716 - var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18717 - $k[$j++] = true; //#18717 - for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18717 - var _9y = $k[--$j]; //#18717 - $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18717 - } //#18717 - if ($k[--$j]) { //#18717 - $k[$j++] = $_.X; //#18717 - break; //#18717 - } //#18717 - $k[$j++] = $_.C; //#18718 - break; //#18718 - } //#18718 - $_.char = $get($_.msg, $_.i + $_.k); //#18720 - $k[$j++] = 'ac'; //#18721 - $k[$j++] = $_.ac; //#18721 - $_.isD(); //#18721 - if ($k[--$j]) { //#18721 - var _A8 = $k[--$j]; //#18721 - $k[$j++] = $f(_A8 + (1 / 2)); //#18721 - } else { //#18721 - $_.isEA(); //#18721 - if ($k[--$j]) { //#18721 - var _AA = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AA) + 2; //#18721 - } else { //#18721 - var _AB = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AB) + 1; //#18721 - } //#18721 - } //#18721 - var _AC = $k[--$j]; //#18721 - $_[$k[--$j]] = _AC; //#18721 - $k[$j++] = 'cc'; //#18722 - $k[$j++] = $_.cc; //#18722 - $_.isC(); //#18722 - if ($k[--$j]) { //#18722 - var _AG = $k[--$j]; //#18722 - $k[$j++] = $f(_AG + 0.6666667); //#18722 - } else { //#18722 - $_.isEA(); //#18722 - if ($k[--$j]) { //#18722 - var _AI = $k[--$j]; //#18722 - $k[$j++] = $f(_AI + 2.6666667); //#18722 - } else { //#18722 - var _AJ = $k[--$j]; //#18722 - $k[$j++] = $f(_AJ + 1.3333334); //#18722 - } //#18722 - } //#18722 - var _AK = $k[--$j]; //#18722 - $_[$k[--$j]] = _AK; //#18722 - $k[$j++] = 'tc'; //#18723 - $k[$j++] = $_.tc; //#18723 - $_.isT(); //#18723 - if ($k[--$j]) { //#18723 - var _AO = $k[--$j]; //#18723 - $k[$j++] = $f(_AO + 0.6666667); //#18723 - } else { //#18723 - $_.isEA(); //#18723 - if ($k[--$j]) { //#18723 - var _AQ = $k[--$j]; //#18723 - $k[$j++] = $f(_AQ + 2.6666667); //#18723 - } else { //#18723 - var _AR = $k[--$j]; //#18723 - $k[$j++] = $f(_AR + 1.3333334); //#18723 - } //#18723 - } //#18723 - var _AS = $k[--$j]; //#18723 - $_[$k[--$j]] = _AS; //#18723 - $k[$j++] = 'xc'; //#18724 - $k[$j++] = $_.xc; //#18724 - $_.isX(); //#18724 - if ($k[--$j]) { //#18724 - var _AW = $k[--$j]; //#18724 - $k[$j++] = $f(_AW + 0.6666667); //#18724 - } else { //#18724 - $_.isEA(); //#18724 - if ($k[--$j]) { //#18724 - var _AY = $k[--$j]; //#18724 - $k[$j++] = $f(_AY + 4.3333334); //#18724 - } else { //#18724 - var _AZ = $k[--$j]; //#18724 - $k[$j++] = $f(_AZ + 3.3333334); //#18724 - } //#18724 - } //#18724 - var _Aa = $k[--$j]; //#18724 - $_[$k[--$j]] = _Aa; //#18724 - $k[$j++] = 'ec'; //#18725 - $k[$j++] = $_.ec; //#18725 - $_.isE(); //#18725 - if ($k[--$j]) { //#18725 - var _Ae = $k[--$j]; //#18725 - $k[$j++] = $f(_Ae + (3 / 4)); //#18725 - } else { //#18725 - $_.isEA(); //#18725 - if ($k[--$j]) { //#18725 - var _Ag = $k[--$j]; //#18725 - $k[$j++] = $f(_Ag + (17 / 4)); //#18725 - } else { //#18725 - var _Ah = $k[--$j]; //#18725 - $k[$j++] = $f(_Ah + (13 / 4)); //#18725 - } //#18725 - } //#18725 - var _Ai = $k[--$j]; //#18725 - $_[$k[--$j]] = _Ai; //#18725 - $k[$j++] = 'bc'; //#18726 - $k[$j++] = $_.bc; //#18726 - $_.isFN(); //#18726 - if ($k[--$j]) { //#18726 - var _Am = $k[--$j]; //#18726 - $k[$j++] = $f(_Am + 4); //#18726 - } else { //#18726 - var _An = $k[--$j]; //#18726 - $k[$j++] = $f(_An + 1); //#18726 - } //#18726 - var _Ao = $k[--$j]; //#18726 - $_[$k[--$j]] = _Ao; //#18726 - if ($_.k >= 4) { //#18738 - var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18728 - $k[$j++] = true; //#18728 - for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#18728 - var _B1 = $k[--$j]; //#18728 - $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#18728 - } //#18728 - if ($k[--$j]) { //#18728 - $k[$j++] = $_.A; //#18728 - break; //#18728 - } //#18728 - if (($_.bc + 1) <= $_.ac) { //#18729 - $k[$j++] = $_.B; //#18729 - break; //#18729 - } //#18729 - var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#18730 - $k[$j++] = true; //#18730 - for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#18730 - var _BG = $k[--$j]; //#18730 - $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#18730 - } //#18730 - if ($k[--$j]) { //#18730 - $k[$j++] = $_.B; //#18730 - break; //#18730 - } //#18730 - var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18731 - $k[$j++] = true; //#18731 - for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#18731 - var _BT = $k[--$j]; //#18731 - $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#18731 - } //#18731 - if ($k[--$j]) { //#18731 - $k[$j++] = $_.E; //#18731 - break; //#18731 - } //#18731 - var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18732 - $k[$j++] = true; //#18732 - for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#18732 - var _Bg = $k[--$j]; //#18732 - $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#18732 - } //#18732 - if ($k[--$j]) { //#18732 - $k[$j++] = $_.T; //#18732 - break; //#18732 - } //#18732 - var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18733 - $k[$j++] = true; //#18733 - for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#18733 - var _Bt = $k[--$j]; //#18733 - $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#18733 - } //#18733 - if ($k[--$j]) { //#18733 - $k[$j++] = $_.X; //#18733 - break; //#18733 - } //#18733 - var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#18734 - $k[$j++] = true; //#18734 - for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#18734 - var _C5 = $k[--$j]; //#18734 - $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#18734 - } //#18734 - if ($k[--$j]) { //#18737 - if ($_.cc < $_.xc) { //#18735 - $k[$j++] = $_.C; //#18735 - break; //#18735 - } //#18735 - if ($_.cc == $_.xc) { //#18736 - $k[$j++] = ($_.i + $_.k) + 1; //#18736 - $_.XtermFirst(); //#18736 - if ($k[--$j]) { //#18736 - $k[$j++] = $_.X; //#18736 - break; //#18736 - } else { //#18736 - $k[$j++] = $_.C; //#18736 - break; //#18736 - } //#18736 - } //#18736 - } //#18736 - } //#18736 - $_.k = $_.k + 1; //#18739 - } //#18739 - } //#18739 - }; //#18739 + $_.ac = 1; //#18978 + $_.cc = 2; //#18978 + $_.tc = 2; //#18978 + $_.xc = 2; //#18978 + $_.ec = 2; //#18978 + $_.bc = 2.25; //#18978 + if ($_.mode == $_.A) { //#18979 + $_.ac = 0; //#18979 + $_.cc = 1; //#18979 + $_.tc = 1; //#18979 + $_.xc = 1; //#18979 + $_.ec = 1; //#18979 + $_.bc = 1.25; //#18979 + } //#18979 + if ($_.mode == $_.C) { //#18980 + $_.cc = 0; //#18980 + } //#18980 + if ($_.mode == $_.T) { //#18981 + $_.tc = 0; //#18981 + } //#18981 + if ($_.mode == $_.X) { //#18982 + $_.xc = 0; //#18982 + } //#18982 + if ($_.mode == $_.E) { //#18983 + $_.ec = 0; //#18983 + } //#18983 + if ($_.mode == $_.B) { //#18984 + $_.bc = 0; //#18984 + } //#18984 + for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#19019 + if ($get($_.isECI, $_.i)) { //#18986 + $k[$j++] = $_.A; //#18986 + break; //#18986 + } //#18986 + if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18987 + $k[$j++] = $_.C; //#18987 + break; //#18987 + } //#18987 + $_.k = 0; //#18988 + for (;;) { //#19018 + if (($_.i + $_.k) == $_.msglen) { //#18997 + var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18990 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18990 + var _8w = $get(_8t, _8u); //#18990 + $_[_8w] = Math.ceil($_[_8w]); //#18990 + } //#18990 + var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18991 + $k[$j++] = true; //#18991 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18991 + var _98 = $k[--$j]; //#18991 + $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18991 + } //#18991 + if ($k[--$j]) { //#18991 + $k[$j++] = $_.A; //#18991 + break; //#18991 + } //#18991 + var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18992 + $k[$j++] = true; //#18992 + for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18992 + var _9L = $k[--$j]; //#18992 + $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18992 + } //#18992 + if ($k[--$j]) { //#18992 + $k[$j++] = $_.B; //#18992 + break; //#18992 + } //#18992 + var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18993 + $k[$j++] = true; //#18993 + for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18993 + var _9Y = $k[--$j]; //#18993 + $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18993 + } //#18993 + if ($k[--$j]) { //#18993 + $k[$j++] = $_.E; //#18993 + break; //#18993 + } //#18993 + var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18994 + $k[$j++] = true; //#18994 + for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18994 + var _9l = $k[--$j]; //#18994 + $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18994 + } //#18994 + if ($k[--$j]) { //#18994 + $k[$j++] = $_.T; //#18994 + break; //#18994 + } //#18994 + var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18995 + $k[$j++] = true; //#18995 + for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18995 + var _9y = $k[--$j]; //#18995 + $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18995 + } //#18995 + if ($k[--$j]) { //#18995 + $k[$j++] = $_.X; //#18995 + break; //#18995 + } //#18995 + $k[$j++] = $_.C; //#18996 + break; //#18996 + } //#18996 + $_.char = $get($_.msg, $_.i + $_.k); //#18998 + $k[$j++] = 'ac'; //#18999 + $k[$j++] = $_.ac; //#18999 + $_.isD(); //#18999 + if ($k[--$j]) { //#18999 + var _A8 = $k[--$j]; //#18999 + $k[$j++] = $f(_A8 + (1 / 2)); //#18999 + } else { //#18999 + $_.isEA(); //#18999 + if ($k[--$j]) { //#18999 + var _AA = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AA) + 2; //#18999 + } else { //#18999 + var _AB = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AB) + 1; //#18999 + } //#18999 + } //#18999 + var _AC = $k[--$j]; //#18999 + $_[$k[--$j]] = _AC; //#18999 + $k[$j++] = 'cc'; //#19000 + $k[$j++] = $_.cc; //#19000 + $_.isC(); //#19000 + if ($k[--$j]) { //#19000 + var _AG = $k[--$j]; //#19000 + $k[$j++] = $f(_AG + 0.6666667); //#19000 + } else { //#19000 + $_.isEA(); //#19000 + if ($k[--$j]) { //#19000 + var _AI = $k[--$j]; //#19000 + $k[$j++] = $f(_AI + 2.6666667); //#19000 + } else { //#19000 + var _AJ = $k[--$j]; //#19000 + $k[$j++] = $f(_AJ + 1.3333334); //#19000 + } //#19000 + } //#19000 + var _AK = $k[--$j]; //#19000 + $_[$k[--$j]] = _AK; //#19000 + $k[$j++] = 'tc'; //#19001 + $k[$j++] = $_.tc; //#19001 + $_.isT(); //#19001 + if ($k[--$j]) { //#19001 + var _AO = $k[--$j]; //#19001 + $k[$j++] = $f(_AO + 0.6666667); //#19001 + } else { //#19001 + $_.isEA(); //#19001 + if ($k[--$j]) { //#19001 + var _AQ = $k[--$j]; //#19001 + $k[$j++] = $f(_AQ + 2.6666667); //#19001 + } else { //#19001 + var _AR = $k[--$j]; //#19001 + $k[$j++] = $f(_AR + 1.3333334); //#19001 + } //#19001 + } //#19001 + var _AS = $k[--$j]; //#19001 + $_[$k[--$j]] = _AS; //#19001 + $k[$j++] = 'xc'; //#19002 + $k[$j++] = $_.xc; //#19002 + $_.isX(); //#19002 + if ($k[--$j]) { //#19002 + var _AW = $k[--$j]; //#19002 + $k[$j++] = $f(_AW + 0.6666667); //#19002 + } else { //#19002 + $_.isEA(); //#19002 + if ($k[--$j]) { //#19002 + var _AY = $k[--$j]; //#19002 + $k[$j++] = $f(_AY + 4.3333334); //#19002 + } else { //#19002 + var _AZ = $k[--$j]; //#19002 + $k[$j++] = $f(_AZ + 3.3333334); //#19002 + } //#19002 + } //#19002 + var _Aa = $k[--$j]; //#19002 + $_[$k[--$j]] = _Aa; //#19002 + $k[$j++] = 'ec'; //#19003 + $k[$j++] = $_.ec; //#19003 + $_.isE(); //#19003 + if ($k[--$j]) { //#19003 + var _Ae = $k[--$j]; //#19003 + $k[$j++] = $f(_Ae + (3 / 4)); //#19003 + } else { //#19003 + $_.isEA(); //#19003 + if ($k[--$j]) { //#19003 + var _Ag = $k[--$j]; //#19003 + $k[$j++] = $f(_Ag + (17 / 4)); //#19003 + } else { //#19003 + var _Ah = $k[--$j]; //#19003 + $k[$j++] = $f(_Ah + (13 / 4)); //#19003 + } //#19003 + } //#19003 + var _Ai = $k[--$j]; //#19003 + $_[$k[--$j]] = _Ai; //#19003 + $k[$j++] = 'bc'; //#19004 + $k[$j++] = $_.bc; //#19004 + $_.isFN(); //#19004 + if ($k[--$j]) { //#19004 + var _Am = $k[--$j]; //#19004 + $k[$j++] = $f(_Am + 4); //#19004 + } else { //#19004 + var _An = $k[--$j]; //#19004 + $k[$j++] = $f(_An + 1); //#19004 + } //#19004 + var _Ao = $k[--$j]; //#19004 + $_[$k[--$j]] = _Ao; //#19004 + if ($_.k >= 4) { //#19016 + var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#19006 + $k[$j++] = true; //#19006 + for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#19006 + var _B1 = $k[--$j]; //#19006 + $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#19006 + } //#19006 + if ($k[--$j]) { //#19006 + $k[$j++] = $_.A; //#19006 + break; //#19006 + } //#19006 + if (($_.bc + 1) <= $_.ac) { //#19007 + $k[$j++] = $_.B; //#19007 + break; //#19007 + } //#19007 + var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#19008 + $k[$j++] = true; //#19008 + for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#19008 + var _BG = $k[--$j]; //#19008 + $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#19008 + } //#19008 + if ($k[--$j]) { //#19008 + $k[$j++] = $_.B; //#19008 + break; //#19008 + } //#19008 + var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#19009 + $k[$j++] = true; //#19009 + for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#19009 + var _BT = $k[--$j]; //#19009 + $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#19009 + } //#19009 + if ($k[--$j]) { //#19009 + $k[$j++] = $_.E; //#19009 + break; //#19009 + } //#19009 + var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#19010 + $k[$j++] = true; //#19010 + for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#19010 + var _Bg = $k[--$j]; //#19010 + $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#19010 + } //#19010 + if ($k[--$j]) { //#19010 + $k[$j++] = $_.T; //#19010 + break; //#19010 + } //#19010 + var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#19011 + $k[$j++] = true; //#19011 + for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#19011 + var _Bt = $k[--$j]; //#19011 + $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#19011 + } //#19011 + if ($k[--$j]) { //#19011 + $k[$j++] = $_.X; //#19011 + break; //#19011 + } //#19011 + var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#19012 + $k[$j++] = true; //#19012 + for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#19012 + var _C5 = $k[--$j]; //#19012 + $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#19012 + } //#19012 + if ($k[--$j]) { //#19015 + if ($_.cc < $_.xc) { //#19013 + $k[$j++] = $_.C; //#19013 + break; //#19013 + } //#19013 + if ($_.cc == $_.xc) { //#19014 + $k[$j++] = ($_.i + $_.k) + 1; //#19014 + $_.XtermFirst(); //#19014 + if ($k[--$j]) { //#19014 + $k[$j++] = $_.X; //#19014 + break; //#19014 + } else { //#19014 + $k[$j++] = $_.C; //#19014 + break; //#19014 + } //#19014 + } //#19014 + } //#19014 + } //#19014 + $_.k = $_.k + 1; //#19017 + } //#19017 + } //#19017 + }; //#19017 $_.addtocws = function() { - var _CI = $k[--$j]; //#18745 - $puti($_.cws, $_.j, _CI); //#18745 - $_.j = _CI.length + $_.j; //#18746 - }; //#18746 + var _CI = $k[--$j]; //#19023 + $puti($_.cws, $_.j, _CI); //#19023 + $_.j = _CI.length + $_.j; //#19024 + }; //#19024 $_.ECItocws = function() { - var _CN = $f((-$k[--$j]) - 1000000); //#18751 - $k[$j++] = _CN; //#18765 - if (_CN <= 126) { //#18764 - var _CO = $k[--$j]; //#18752 - $k[$j++] = $f(_CO + 1); //#18753 - $astore($a(1)); //#18753 - } else { //#18764 - var _CQ = $k[--$j]; //#18754 - $k[$j++] = _CQ; //#18765 - if (_CQ <= 16382) { //#18764 - var _CS = $f($k[--$j] - 127); //#18756 - $k[$j++] = (~~(_CS / 254)) + 128; //#18758 - $k[$j++] = $f((_CS % 254) + 1); //#18758 - $astore($a(2)); //#18758 - } else { //#18764 - var _CV = $f($k[--$j] - 16383); //#18761 - $k[$j++] = (~~(_CV / 64516)) + 192; //#18764 - $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#18764 - $k[$j++] = $f((_CV % 254) + 1); //#18764 - $astore($a(3)); //#18764 - } //#18764 - } //#18764 - }; //#18764 + var _CN = $f((-$k[--$j]) - 1000000); //#19029 + $k[$j++] = _CN; //#19043 + if (_CN <= 126) { //#19042 + var _CO = $k[--$j]; //#19030 + $k[$j++] = $f(_CO + 1); //#19031 + $astore($a(1)); //#19031 + } else { //#19042 + var _CQ = $k[--$j]; //#19032 + $k[$j++] = _CQ; //#19043 + if (_CQ <= 16382) { //#19042 + var _CS = $f($k[--$j] - 127); //#19034 + $k[$j++] = (~~(_CS / 254)) + 128; //#19036 + $k[$j++] = $f((_CS % 254) + 1); //#19036 + $astore($a(2)); //#19036 + } else { //#19042 + var _CV = $f($k[--$j] - 16383); //#19039 + $k[$j++] = (~~(_CV / 64516)) + 192; //#19042 + $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#19042 + $k[$j++] = $f((_CV % 254) + 1); //#19042 + $astore($a(3)); //#19042 + } //#19042 + } //#19042 + }; //#19042 $_.encA = function() { - for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#18790 - if ($get($_.isECI, $_.i)) { //#18775 - $k[$j++] = $get($_.Avals, $_.eci); //#18771 - $_.addtocws(); //#18771 - $k[$j++] = $get($_.msg, $_.i); //#18772 - $_.ECItocws(); //#18772 - $_.addtocws(); //#18772 - $_.i = $_.i + 1; //#18773 - break; //#18774 - } //#18774 - if ($get($_.numD, $_.i) >= 2) { //#18780 - var _Cm = $s(2); //#18777 - $put(_Cm, 0, $get($_.msg, $_.i)); //#18777 - $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#18777 - $k[$j++] = $get($_.Avals, _Cm); //#18777 - $_.addtocws(); //#18777 - $_.i = $_.i + 2; //#18778 - break; //#18779 - } //#18779 - $k[$j++] = 'newmode'; //#18781 - $_.lookup(); //#18781 - var _Cw = $k[--$j]; //#18781 - $_[$k[--$j]] = _Cw; //#18781 - if ($_.newmode != $_.mode) { //#18786 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18783 - $_.addtocws(); //#18783 - $_.mode = $_.newmode; //#18784 - break; //#18785 - } //#18785 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18787 - $_.addtocws(); //#18787 - $_.i = $_.i + 1; //#18788 - break; //#18789 - } //#18789 - }; //#18789 + for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#19068 + if ($get($_.isECI, $_.i)) { //#19053 + $k[$j++] = $get($_.Avals, $_.eci); //#19049 + $_.addtocws(); //#19049 + $k[$j++] = $get($_.msg, $_.i); //#19050 + $_.ECItocws(); //#19050 + $_.addtocws(); //#19050 + $_.i = $_.i + 1; //#19051 + break; //#19052 + } //#19052 + if ($get($_.numD, $_.i) >= 2) { //#19058 + var _Cm = $s(2); //#19055 + $put(_Cm, 0, $get($_.msg, $_.i)); //#19055 + $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#19055 + $k[$j++] = $get($_.Avals, _Cm); //#19055 + $_.addtocws(); //#19055 + $_.i = $_.i + 2; //#19056 + break; //#19057 + } //#19057 + $k[$j++] = 'newmode'; //#19059 + $_.lookup(); //#19059 + var _Cw = $k[--$j]; //#19059 + $_[$k[--$j]] = _Cw; //#19059 + if ($_.newmode != $_.mode) { //#19064 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19061 + $_.addtocws(); //#19061 + $_.mode = $_.newmode; //#19062 + break; //#19063 + } //#19063 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19065 + $_.addtocws(); //#19065 + $_.i = $_.i + 1; //#19066 + break; //#19067 + } //#19067 + }; //#19067 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#18794 - $k[$j++] = Infinity; //#18795 - for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#18799 - var _DM = $geti($_.in, _DK, 3); //#18797 - $k[$j++] = 0; //#18797 - for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#18797 - var _DQ = $k[--$j]; //#18797 - $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#18797 - } //#18797 - var _DS = (~~($k[--$j] / 40)) + 1; //#18798 - $k[$j++] = ~~(_DS / 256); //#18798 - $k[$j++] = _DS % 256; //#18798 - } //#18798 - $astore($a($counttomark())); //#18800 - var _DV = $k[--$j]; //#18800 - var _DW = $k[--$j]; //#18800 - $k[$j++] = _DV; //#18800 - $k[$j++] = _DW; //#18800 - $j--; //#18800 - }; //#18800 + $_.in = $k[--$j]; //#19072 + $k[$j++] = Infinity; //#19073 + for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#19077 + var _DM = $geti($_.in, _DK, 3); //#19075 + $k[$j++] = 0; //#19075 + for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#19075 + var _DQ = $k[--$j]; //#19075 + $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#19075 + } //#19075 + var _DS = (~~($k[--$j] / 40)) + 1; //#19076 + $k[$j++] = ~~(_DS / 256); //#19076 + $k[$j++] = _DS % 256; //#19076 + } //#19076 + $astore($a($counttomark())); //#19078 + var _DV = $k[--$j]; //#19078 + var _DW = $k[--$j]; //#19078 + $k[$j++] = _DV; //#19078 + $k[$j++] = _DW; //#19078 + $j--; //#19078 + }; //#19078 $_.encCTX = function() { - $_.p = 0; //#18804 - $_.ctxvals = $a(2500); //#18805 - $_.done = false; //#18806 - for (;;) { //#18885 - if ($_.i == $_.msglen) { //#18810 - break; //#18810 - } //#18810 - var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#18811 - if (!_Dg) { //#18811 - break; //#18811 - } //#18811 - if (($_.p % 3) == 0) { //#18880 - if ($_.p > 0) { //#18825 - $k[$j++] = 'newmode'; //#18814 - $_.lookup(); //#18814 - var _Dj = $k[--$j]; //#18814 - $_[$k[--$j]] = _Dj; //#18814 - if ($ne($_.newmode, $_.mode)) { //#18824 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18816 - $_.CTXvalstocws(); //#18816 - $_.addtocws(); //#18816 - $k[$j++] = $a([$_.unlcw]); //#18817 - $_.addtocws(); //#18817 - if ($_.newmode != $_.A) { //#18820 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18819 - $_.addtocws(); //#18819 - } //#18819 - $_.mode = $_.newmode; //#18821 - $_.done = true; //#18822 - break; //#18823 - } //#18823 - } //#18823 - if (($_.msglen - $_.i) <= 3) { //#18879 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#18827 - $k[$j++] = Infinity; //#18833 - var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18829 - for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#18835 - var _EI = $get(_EF, _EG); //#18835 - var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#18830 - $k[$j++] = _EI; //#18834 - if (_EM) { //#18833 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#18831 - } else { //#18833 - $j--; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - } //#18833 - } //#18833 - $_.remvals = $a(); //#18833 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#18847 - $k[$j++] = Infinity; //#18841 - $aload($geti($_.ctxvals, 0, $_.p)); //#18840 - $aload($_.remvals); //#18841 - var _EZ = $a(); //#18841 - $k[$j++] = _EZ; //#18842 - $_.CTXvalstocws(); //#18842 - $_.addtocws(); //#18842 - $_.mode = $_.A; //#18843 - $_.i = $_.msglen; //#18844 - $_.done = true; //#18845 - break; //#18846 - } //#18846 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#18859 - $k[$j++] = Infinity; //#18853 - $aload($geti($_.ctxvals, 0, $_.p)); //#18851 - $aload($_.remvals); //#18852 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#18853 - var _Ep = $a(); //#18853 - $k[$j++] = _Ep; //#18854 - $_.CTXvalstocws(); //#18854 - $_.addtocws(); //#18854 - $_.mode = $_.A; //#18855 - $_.i = $_.msglen; //#18856 - $_.done = true; //#18857 - break; //#18858 - } //#18858 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#18869 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18862 - $_.CTXvalstocws(); //#18862 - $_.addtocws(); //#18862 - $k[$j++] = $a([$_.unlcw]); //#18863 - $_.addtocws(); //#18863 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18864 - $_.addtocws(); //#18864 - $_.mode = $_.A; //#18865 - $_.i = $_.msglen; //#18866 - $_.done = true; //#18867 - break; //#18868 - } //#18868 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#18878 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18872 - $_.CTXvalstocws(); //#18872 - $_.addtocws(); //#18872 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18873 - $_.addtocws(); //#18873 - $_.mode = $_.A; //#18874 - $_.i = $_.msglen; //#18875 - $_.done = true; //#18876 - break; //#18877 - } //#18877 - } //#18877 - } //#18877 - var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#18881 - $puti($_.ctxvals, $_.p, _FO); //#18882 - $_.p = _FO.length + $_.p; //#18883 - $_.i = $_.i + 1; //#18884 - } //#18884 - if (!$_.done) { //#18909 - for (;;) { //#18893 - if (($_.p % 3) == 0) { //#18890 - break; //#18890 - } //#18890 - $_.i = $_.i - 1; //#18891 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#18892 - } //#18892 - $k[$j++] = Infinity; //#18895 - $aload($geti($_.ctxvals, 0, $_.p)); //#18895 - var _Fh = $a(); //#18895 - $k[$j++] = _Fh; //#18896 - $_.CTXvalstocws(); //#18896 - $_.addtocws(); //#18896 - $k[$j++] = $a([$_.unlcw]); //#18897 - $_.addtocws(); //#18897 - $_.mode = $_.A; //#18898 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18908 - if ($get($_.numD, $_.i) >= 2) { //#18906 - var _Ft = $s(2); //#18902 - $put(_Ft, 0, $get($_.msg, $_.i)); //#18902 - $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#18902 - $k[$j++] = $get($_.Avals, _Ft); //#18902 - $_.addtocws(); //#18902 - $_.i = $_.i + 2; //#18903 - } else { //#18906 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18905 - $_.addtocws(); //#18905 - $_.i = $_.i + 1; //#18906 - } //#18906 - } //#18906 - } //#18906 - }; //#18906 + $_.p = 0; //#19082 + $_.ctxvals = $a(2500); //#19083 + $_.done = false; //#19084 + for (;;) { //#19163 + if ($_.i == $_.msglen) { //#19088 + break; //#19088 + } //#19088 + var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#19089 + if (!_Dg) { //#19089 + break; //#19089 + } //#19089 + if (($_.p % 3) == 0) { //#19158 + if ($_.p > 0) { //#19103 + $k[$j++] = 'newmode'; //#19092 + $_.lookup(); //#19092 + var _Dj = $k[--$j]; //#19092 + $_[$k[--$j]] = _Dj; //#19092 + if ($ne($_.newmode, $_.mode)) { //#19102 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19094 + $_.CTXvalstocws(); //#19094 + $_.addtocws(); //#19094 + $k[$j++] = $a([$_.unlcw]); //#19095 + $_.addtocws(); //#19095 + if ($_.newmode != $_.A) { //#19098 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19097 + $_.addtocws(); //#19097 + } //#19097 + $_.mode = $_.newmode; //#19099 + $_.done = true; //#19100 + break; //#19101 + } //#19101 + } //#19101 + if (($_.msglen - $_.i) <= 3) { //#19157 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#19105 + $k[$j++] = Infinity; //#19106 + var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19107 + for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#19113 + var _EI = $get(_EF, _EG); //#19113 + var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#19108 + $k[$j++] = _EI; //#19112 + if (_EM) { //#19111 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#19109 + } else { //#19111 + $j--; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + } //#19111 + } //#19111 + $_.remvals = $a(); //#19111 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#19125 + $k[$j++] = Infinity; //#19117 + $aload($geti($_.ctxvals, 0, $_.p)); //#19118 + $aload($_.remvals); //#19119 + var _EZ = $a(); //#19119 + $k[$j++] = _EZ; //#19120 + $_.CTXvalstocws(); //#19120 + $_.addtocws(); //#19120 + $_.mode = $_.A; //#19121 + $_.i = $_.msglen; //#19122 + $_.done = true; //#19123 + break; //#19124 + } //#19124 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#19137 + $k[$j++] = Infinity; //#19128 + $aload($geti($_.ctxvals, 0, $_.p)); //#19129 + $aload($_.remvals); //#19130 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#19131 + var _Ep = $a(); //#19131 + $k[$j++] = _Ep; //#19132 + $_.CTXvalstocws(); //#19132 + $_.addtocws(); //#19132 + $_.mode = $_.A; //#19133 + $_.i = $_.msglen; //#19134 + $_.done = true; //#19135 + break; //#19136 + } //#19136 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#19147 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19140 + $_.CTXvalstocws(); //#19140 + $_.addtocws(); //#19140 + $k[$j++] = $a([$_.unlcw]); //#19141 + $_.addtocws(); //#19141 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19142 + $_.addtocws(); //#19142 + $_.mode = $_.A; //#19143 + $_.i = $_.msglen; //#19144 + $_.done = true; //#19145 + break; //#19146 + } //#19146 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#19156 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19150 + $_.CTXvalstocws(); //#19150 + $_.addtocws(); //#19150 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19151 + $_.addtocws(); //#19151 + $_.mode = $_.A; //#19152 + $_.i = $_.msglen; //#19153 + $_.done = true; //#19154 + break; //#19155 + } //#19155 + } //#19155 + } //#19155 + var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#19159 + $puti($_.ctxvals, $_.p, _FO); //#19160 + $_.p = _FO.length + $_.p; //#19161 + $_.i = $_.i + 1; //#19162 + } //#19162 + if (!$_.done) { //#19187 + for (;;) { //#19171 + if (($_.p % 3) == 0) { //#19168 + break; //#19168 + } //#19168 + $_.i = $_.i - 1; //#19169 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#19170 + } //#19170 + $k[$j++] = Infinity; //#19172 + $aload($geti($_.ctxvals, 0, $_.p)); //#19173 + var _Fh = $a(); //#19173 + $k[$j++] = _Fh; //#19174 + $_.CTXvalstocws(); //#19174 + $_.addtocws(); //#19174 + $k[$j++] = $a([$_.unlcw]); //#19175 + $_.addtocws(); //#19175 + $_.mode = $_.A; //#19176 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19186 + if ($get($_.numD, $_.i) >= 2) { //#19184 + var _Ft = $s(2); //#19180 + $put(_Ft, 0, $get($_.msg, $_.i)); //#19180 + $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#19180 + $k[$j++] = $get($_.Avals, _Ft); //#19180 + $_.addtocws(); //#19180 + $_.i = $_.i + 2; //#19181 + } else { //#19184 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19183 + $_.addtocws(); //#19183 + $_.i = $_.i + 1; //#19184 + } //#19184 + } //#19184 + } //#19184 + }; //#19184 $_.Evalstocws = function() { - $_.in = $k[--$j]; //#18914 - $_.inlen = $_.in.length; //#18915 - $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#18916 - $k[$j++] = Infinity; //#18917 - $aload($_.in); //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $_.in = $a(); //#18917 - $k[$j++] = Infinity; //#18918 - for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#18924 - var _GI = $geti($_.in, _GG, 4); //#18920 - $k[$j++] = 0; //#18920 - for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#18920 - var _GM = $k[--$j]; //#18920 - $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#18920 - } //#18920 - var _GO = $k[--$j] >>> 6; //#18921 - $k[$j++] = (_GO >>> 16) & 255; //#18923 - $k[$j++] = (_GO >>> 8) & 255; //#18923 - $k[$j++] = _GO & 255; //#18923 - } //#18923 - $astore($a($counttomark())); //#18925 - var _GR = $k[--$j]; //#18925 - var _GS = $k[--$j]; //#18925 - $k[$j++] = _GR; //#18925 - $k[$j++] = _GS; //#18925 - $j--; //#18925 - var _GV = $geti($k[--$j], 0, $_.outlen); //#18926 - $k[$j++] = _GV; //#18926 - }; //#18926 + $_.in = $k[--$j]; //#19192 + $_.inlen = $_.in.length; //#19193 + $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#19194 + $k[$j++] = Infinity; //#19195 + $aload($_.in); //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $_.in = $a(); //#19195 + $k[$j++] = Infinity; //#19196 + for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#19202 + var _GI = $geti($_.in, _GG, 4); //#19198 + $k[$j++] = 0; //#19198 + for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#19198 + var _GM = $k[--$j]; //#19198 + $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#19198 + } //#19198 + var _GO = $k[--$j] >>> 6; //#19199 + $k[$j++] = (_GO >>> 16) & 255; //#19201 + $k[$j++] = (_GO >>> 8) & 255; //#19201 + $k[$j++] = _GO & 255; //#19201 + } //#19201 + $astore($a($counttomark())); //#19203 + var _GR = $k[--$j]; //#19203 + var _GS = $k[--$j]; //#19203 + $k[$j++] = _GR; //#19203 + $k[$j++] = _GS; //#19203 + $j--; //#19203 + var _GV = $geti($k[--$j], 0, $_.outlen); //#19204 + $k[$j++] = _GV; //#19204 + }; //#19204 $_.encE = function() { - $_.p = 0; //#18930 - $_.edifactvals = $a(2100); //#18931 - for (;;) { //#18960 - if ($_.i == $_.msglen) { //#18935 - break; //#18935 - } //#18935 - var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#18936 - if (!_Gd) { //#18936 - break; //#18936 - } //#18936 - if (($_.p % 4) == 0) { //#18955 - if (($_.msglen - $_.i) <= 2) { //#18953 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#18939 - $k[$j++] = Infinity; //#18942 - var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18941 - for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#18943 - $aload($get($_.Avals, $get(_Gp, _Gq))); //#18942 - } //#18942 - $_.remvals = $a(); //#18942 - if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#18952 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18947 - $_.Evalstocws(); //#18947 - $_.addtocws(); //#18947 - $k[$j++] = $_.remvals; //#18948 - $_.addtocws(); //#18948 - $_.mode = $_.A; //#18949 - $_.i = $_.msglen; //#18950 - break; //#18951 - } //#18951 - } //#18951 - $_.lookup(); //#18954 - if ($k[--$j] != $_.mode) { //#18954 - break; //#18954 - } //#18954 - } //#18954 - var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#18956 - $puti($_.edifactvals, $_.p, _HC); //#18957 - $_.p = _HC.length + $_.p; //#18958 - $_.i = $_.i + 1; //#18959 - } //#18959 - if ($_.mode != $_.A) { //#18982 - $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#18964 - if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#18969 - var _HT = $get($_.Evals, $_.unl); //#18966 - $puti($_.edifactvals, $_.p, _HT); //#18967 - $_.p = _HT.length + $_.p; //#18968 - } //#18968 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18970 - $_.Evalstocws(); //#18970 - $_.addtocws(); //#18970 - $_.mode = $_.A; //#18971 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18981 - if ($get($_.numD, $_.i) >= 2) { //#18979 - var _Hj = $s(2); //#18975 - $put(_Hj, 0, $get($_.msg, $_.i)); //#18975 - $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#18975 - $k[$j++] = $get($_.Avals, _Hj); //#18975 - $_.addtocws(); //#18975 - $_.i = $_.i + 2; //#18976 - } else { //#18979 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18978 - $_.addtocws(); //#18978 - $_.i = $_.i + 1; //#18979 - } //#18979 - } //#18979 - } //#18979 - }; //#18979 + $_.p = 0; //#19208 + $_.edifactvals = $a(2100); //#19209 + for (;;) { //#19238 + if ($_.i == $_.msglen) { //#19213 + break; //#19213 + } //#19213 + var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#19214 + if (!_Gd) { //#19214 + break; //#19214 + } //#19214 + if (($_.p % 4) == 0) { //#19233 + if (($_.msglen - $_.i) <= 2) { //#19231 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#19217 + $k[$j++] = Infinity; //#19218 + var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19219 + for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#19221 + $aload($get($_.Avals, $get(_Gp, _Gq))); //#19220 + } //#19220 + $_.remvals = $a(); //#19220 + if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#19230 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19225 + $_.Evalstocws(); //#19225 + $_.addtocws(); //#19225 + $k[$j++] = $_.remvals; //#19226 + $_.addtocws(); //#19226 + $_.mode = $_.A; //#19227 + $_.i = $_.msglen; //#19228 + break; //#19229 + } //#19229 + } //#19229 + $_.lookup(); //#19232 + if ($k[--$j] != $_.mode) { //#19232 + break; //#19232 + } //#19232 + } //#19232 + var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#19234 + $puti($_.edifactvals, $_.p, _HC); //#19235 + $_.p = _HC.length + $_.p; //#19236 + $_.i = $_.i + 1; //#19237 + } //#19237 + if ($_.mode != $_.A) { //#19260 + $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#19242 + if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#19247 + var _HT = $get($_.Evals, $_.unl); //#19244 + $puti($_.edifactvals, $_.p, _HT); //#19245 + $_.p = _HT.length + $_.p; //#19246 + } //#19246 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19248 + $_.Evalstocws(); //#19248 + $_.addtocws(); //#19248 + $_.mode = $_.A; //#19249 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19259 + if ($get($_.numD, $_.i) >= 2) { //#19257 + var _Hj = $s(2); //#19253 + $put(_Hj, 0, $get($_.msg, $_.i)); //#19253 + $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#19253 + $k[$j++] = $get($_.Avals, _Hj); //#19253 + $_.addtocws(); //#19253 + $_.i = $_.i + 2; //#19254 + } else { //#19257 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19256 + $_.addtocws(); //#19256 + $_.i = $_.i + 1; //#19257 + } //#19257 + } //#19257 + } //#19257 + }; //#19257 $_.encB = function() { - $_.p = 0; //#18987 - $_.bvals = $a(1558); //#18987 - for (;;) { //#18993 - if ($_.i == $_.msglen) { //#18988 - break; //#18988 - } //#18988 - $_.lookup(); //#18989 - if ($k[--$j] != $_.mode) { //#18989 - break; //#18989 - } //#18989 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#18990 - $_.p = $_.p + 1; //#18991 - $_.i = $_.i + 1; //#18992 - } //#18992 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#18994 - $k[$j++] = Infinity; //#19001 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#18999 - $k[$j++] = 0; //#18997 - } else { //#18999 - if ($_.p < 250) { //#18999 - $k[$j++] = $_.p; //#18999 - } else { //#18999 - $k[$j++] = (~~($_.p / 250)) + 249; //#18999 - $k[$j++] = $_.p % 250; //#18999 - } //#18999 - } //#18999 - $aload($geti($_.bvals, 0, $_.p)); //#19001 - $_.bvals = $a(); //#19001 - for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19008 - $_.p = _IS; //#19004 - var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19006 - $k[$j++] = _IY; //#19006 - if (_IY >= 256) { //#19006 - var _IZ = $k[--$j]; //#19006 - $k[$j++] = $f(_IZ - 256); //#19006 - } //#19006 - $put($_.bvals, $_.p, $k[--$j]); //#19007 - } //#19007 - $k[$j++] = $_.bvals; //#19009 - $_.addtocws(); //#19009 - $_.mode = $_.A; //#19010 - }; //#19010 - $_.cws = $a(1558); //#19014 - $_.mode = $_.A; //#19015 - $_.i = 0; //#19015 - $_.j = 0; //#19015 - for (;;) { //#19018 - if ($_.i >= $_.msglen) { //#19016 - break; //#19016 - } //#19016 + $_.p = 0; //#19265 + $_.bvals = $a(1558); //#19265 + for (;;) { //#19271 + if ($_.i == $_.msglen) { //#19266 + break; //#19266 + } //#19266 + $_.lookup(); //#19267 + if ($k[--$j] != $_.mode) { //#19267 + break; //#19267 + } //#19267 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#19268 + $_.p = $_.p + 1; //#19269 + $_.i = $_.i + 1; //#19270 + } //#19270 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#19272 + $k[$j++] = Infinity; //#19273 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#19277 + $k[$j++] = 0; //#19275 + } else { //#19277 + if ($_.p < 250) { //#19277 + $k[$j++] = $_.p; //#19277 + } else { //#19277 + $k[$j++] = (~~($_.p / 250)) + 249; //#19277 + $k[$j++] = $_.p % 250; //#19277 + } //#19277 + } //#19277 + $aload($geti($_.bvals, 0, $_.p)); //#19279 + $_.bvals = $a(); //#19279 + for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19286 + $_.p = _IS; //#19282 + var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19284 + $k[$j++] = _IY; //#19284 + if (_IY >= 256) { //#19284 + var _IZ = $k[--$j]; //#19284 + $k[$j++] = $f(_IZ - 256); //#19284 + } //#19284 + $put($_.bvals, $_.p, $k[--$j]); //#19285 + } //#19285 + $k[$j++] = $_.bvals; //#19287 + $_.addtocws(); //#19287 + $_.mode = $_.A; //#19288 + }; //#19288 + $_.cws = $a(1558); //#19292 + $_.mode = $_.A; //#19293 + $_.i = 0; //#19293 + $_.j = 0; //#19293 + for (;;) { //#19296 + if ($_.i >= $_.msglen) { //#19294 + break; //#19294 + } //#19294 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $_.mode)]() === true) { break; - } //#19017 - } //#19017 - $_.cws = $geti($_.cws, 0, $_.j); //#19019 - } //#19019 - $_.datlen = $_.cws.length; //#19024 - $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19025 - if ($_.remcws > 0) { //#19034 - $k[$j++] = Infinity; //#19027 - $aload($_.cws); //#19027 - for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19027 - $k[$j++] = 129; //#19027 - } //#19027 - $_.cws = $a(); //#19027 - for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19033 - $_.i = _J4; //#19029 - var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19031 - $k[$j++] = _J6; //#19031 - if (_J6 > 254) { //#19031 - var _J7 = $k[--$j]; //#19031 - $k[$j++] = $f(_J7 - 254); //#19031 - } //#19031 - $put($_.cws, $_.i, $k[--$j]); //#19032 - } //#19032 - } //#19032 - var _JC = $get($_.options, 'debugcws') !== undefined; //#19036 - if (_JC) { //#19036 - $k[$j++] = 'bwipp.debugcws#19036'; //#19036 - $k[$j++] = $_.cws; //#19036 - bwipp_raiseerror(); //#19036 - } //#19036 - var _JE = $_.metrics; //#19039 - for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19061 - $_.m = $get(_JE, _JF); //#19040 - $_.rows = $get($_.m, 0); //#19041 - $_.cols = $get($_.m, 1); //#19042 - $_.regh = $get($_.m, 2); //#19043 - $_.regv = $get($_.m, 3); //#19044 - $_.rscw = $get($_.m, 4); //#19045 - $_.rsbl = $get($_.m, 5); //#19046 - $_.doly = $get($_.m, 6); //#19047 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#19048 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#19049 - $_.rrows = ~~($_.mrows / $_.regh); //#19050 - $_.rcols = ~~($_.mcols / $_.regv); //#19051 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19052 - $_.okay = true; //#19053 - if ($_.cws.length != $_.ncws) { //#19054 - $_.okay = false; //#19054 - } //#19054 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19055 - $_.okay = false; //#19055 - } //#19055 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19056 - $_.okay = false; //#19056 - } //#19056 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19057 - $_.okay = false; //#19057 - } //#19057 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19058 - $_.okay = false; //#19058 - } //#19058 - if ((!$_.dmre) && ($_.doly == 1)) { //#19059 - $_.okay = false; //#19059 - } //#19059 - if ($_.okay) { //#19060 - break; //#19060 - } //#19060 - } //#19060 - if (!$_.okay) { //#19065 - $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19064'; //#19064 - $k[$j++] = "Maximum length exceeded or invalid size"; //#19064 - bwipp_raiseerror(); //#19064 - } //#19064 - $_.cwbs = $a($_.rsbl); //#19068 - $_.ecbs = $a($_.rsbl); //#19069 - for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19084 - $_.i = _K5; //#19071 - if ($_.cws.length != 1558) { //#19075 - $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19073 - } else { //#19075 - if ($_.i <= 7) { //#19075 - $_.cwbsize = 156; //#19075 - } else { //#19075 - $_.cwbsize = 155; //#19075 - } //#19075 - } //#19075 - $_.cwb = $a($_.cwbsize); //#19077 - for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19081 - $_.j = _KE; //#19079 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19080 - } //#19080 - $put($_.cwbs, $_.i, $_.cwb); //#19082 - $k[$j++] = $_.ecbs; //#19083 - $k[$j++] = $_.i; //#19083 - $k[$j++] = Infinity; //#19083 - for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19083 - $k[$j++] = 0; //#19083 - } //#19083 - var _KV = $a(); //#19083 - var _KW = $k[--$j]; //#19083 - $put($k[--$j], _KW, _KV); //#19083 - } //#19083 - if (!bwipp_datamatrix.__19091__) { //#19091 - $_ = Object.create($_); //#19091 - $k[$j++] = Infinity; //#19088 - $k[$j++] = 1; //#19088 - for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19088 - var _Ka = $k[--$j]; //#19088 - var _Kb = _Ka * 2; //#19088 - $k[$j++] = _Ka; //#19088 - $k[$j++] = _Kb; //#19088 - if (_Kb >= 256) { //#19088 - var _Kc = $k[--$j]; //#19088 - $k[$j++] = _Kc ^ 301; //#19088 - } //#19088 - } //#19088 - $_.rsalog = $a(); //#19088 - $_.rslog = $a(256); //#19089 - for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19090 - $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19090 - } //#19090 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19090 - bwipp_datamatrix.__19091__ = 1; //#19090 - $_ = Object.getPrototypeOf($_); //#19090 - } //#19090 + } //#19295 + } //#19295 + $_.cws = $geti($_.cws, 0, $_.j); //#19297 + } //#19297 + $_.datlen = $_.cws.length; //#19302 + $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19303 + if ($_.remcws > 0) { //#19312 + $k[$j++] = Infinity; //#19305 + $aload($_.cws); //#19305 + for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19305 + $k[$j++] = 129; //#19305 + } //#19305 + $_.cws = $a(); //#19305 + for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19311 + $_.i = _J4; //#19307 + var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19309 + $k[$j++] = _J6; //#19309 + if (_J6 > 254) { //#19309 + var _J7 = $k[--$j]; //#19309 + $k[$j++] = $f(_J7 - 254); //#19309 + } //#19309 + $put($_.cws, $_.i, $k[--$j]); //#19310 + } //#19310 + } //#19310 + var _JC = $get($_.options, 'debugcws') !== undefined; //#19314 + if (_JC) { //#19314 + $k[$j++] = 'bwipp.debugcws#19314'; //#19314 + $k[$j++] = $_.cws; //#19314 + bwipp_raiseerror(); //#19314 + } //#19314 + var _JE = $_.metrics; //#19317 + for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19339 + $_.m = $get(_JE, _JF); //#19318 + $_.rows = $get($_.m, 0); //#19319 + $_.cols = $get($_.m, 1); //#19320 + $_.regh = $get($_.m, 2); //#19321 + $_.regv = $get($_.m, 3); //#19322 + $_.rscw = $get($_.m, 4); //#19323 + $_.rsbl = $get($_.m, 5); //#19324 + $_.doly = $get($_.m, 6); //#19325 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#19326 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#19327 + $_.rrows = ~~($_.mrows / $_.regh); //#19328 + $_.rcols = ~~($_.mcols / $_.regv); //#19329 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19330 + $_.okay = true; //#19331 + if ($_.cws.length != $_.ncws) { //#19332 + $_.okay = false; //#19332 + } //#19332 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19333 + $_.okay = false; //#19333 + } //#19333 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19334 + $_.okay = false; //#19334 + } //#19334 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19335 + $_.okay = false; //#19335 + } //#19335 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19336 + $_.okay = false; //#19336 + } //#19336 + if ((!$_.dmre) && ($_.doly == 1)) { //#19337 + $_.okay = false; //#19337 + } //#19337 + if ($_.okay) { //#19338 + break; //#19338 + } //#19338 + } //#19338 + if (!$_.okay) { //#19343 + $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19342'; //#19342 + $k[$j++] = "Maximum length exceeded or invalid size"; //#19342 + bwipp_raiseerror(); //#19342 + } //#19342 + $_.cwbs = $a($_.rsbl); //#19346 + $_.ecbs = $a($_.rsbl); //#19347 + for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19362 + $_.i = _K5; //#19349 + if ($_.cws.length != 1558) { //#19353 + $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19351 + } else { //#19353 + if ($_.i <= 7) { //#19353 + $_.cwbsize = 156; //#19353 + } else { //#19353 + $_.cwbsize = 155; //#19353 + } //#19353 + } //#19353 + $_.cwb = $a($_.cwbsize); //#19355 + for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19359 + $_.j = _KE; //#19357 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19358 + } //#19358 + $put($_.cwbs, $_.i, $_.cwb); //#19360 + $k[$j++] = $_.ecbs; //#19361 + $k[$j++] = $_.i; //#19361 + $k[$j++] = Infinity; //#19361 + for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19361 + $k[$j++] = 0; //#19361 + } //#19361 + var _KV = $a(); //#19361 + var _KW = $k[--$j]; //#19361 + $put($k[--$j], _KW, _KV); //#19361 + } //#19361 + if (!bwipp_datamatrix.__19369__) { //#19369 + $_ = Object.create($_); //#19369 + $k[$j++] = Infinity; //#19366 + $k[$j++] = 1; //#19366 + for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19366 + var _Ka = $k[--$j]; //#19366 + var _Kb = _Ka * 2; //#19366 + $k[$j++] = _Ka; //#19366 + $k[$j++] = _Kb; //#19366 + if (_Kb >= 256) { //#19366 + var _Kc = $k[--$j]; //#19366 + $k[$j++] = _Kc ^ 301; //#19366 + } //#19366 + } //#19366 + $_.rsalog = $a(); //#19366 + $_.rslog = $a(256); //#19367 + for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19368 + $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19368 + } //#19368 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19368 + bwipp_datamatrix.__19369__ = 1; //#19368 + $_ = Object.getPrototypeOf($_); //#19368 + } //#19368 $_.rsprod = function() { - var _Kk = $k[--$j]; //#19095 - var _Kl = $k[--$j]; //#19095 - $k[$j++] = _Kl; //#19099 - $k[$j++] = _Kk; //#19099 - if ((_Kk != 0) && (_Kl != 0)) { //#19098 - var _Ko = $get($_.rslog, $k[--$j]); //#19096 - var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19096 - $k[$j++] = _Kt; //#19096 - } else { //#19098 - $j -= 2; //#19098 - $k[$j++] = 0; //#19098 - } //#19098 - }; //#19098 - $k[$j++] = Infinity; //#19103 - $k[$j++] = 1; //#19103 - for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19103 - $k[$j++] = 0; //#19103 - } //#19103 - $_.coeffs = $a(); //#19103 - for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19112 - $_.i = _L2; //#19105 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19106 - for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19110 - $_.j = _L9; //#19108 - $k[$j++] = $_.coeffs; //#19109 - $k[$j++] = $_.j; //#19109 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#19109 - $k[$j++] = $get($_.coeffs, $_.j); //#19109 - $k[$j++] = $get($_.rsalog, $_.i); //#19109 - $_.rsprod(); //#19109 - var _LL = $k[--$j]; //#19109 - var _LM = $k[--$j]; //#19109 - var _LN = $k[--$j]; //#19109 - $put($k[--$j], _LN, $xo(_LM, _LL)); //#19109 - } //#19109 - $k[$j++] = $_.coeffs; //#19111 - $k[$j++] = 0; //#19111 - $k[$j++] = $get($_.coeffs, 0); //#19111 - $k[$j++] = $get($_.rsalog, $_.i); //#19111 - $_.rsprod(); //#19111 - var _LV = $k[--$j]; //#19111 - var _LW = $k[--$j]; //#19111 - $put($k[--$j], _LW, _LV); //#19111 - } //#19111 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19113 - for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19129 - $_.i = _Ld; //#19117 - $_.cwb = $get($_.cwbs, $_.i); //#19118 - $_.ecb = $get($_.ecbs, $_.i); //#19119 - for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19128 - $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19121 - for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19127 - $_.j = _Ls; //#19123 - $_.p = ($_.ecb.length - $_.j) - 1; //#19124 - $k[$j++] = $_.ecb; //#19125 - $k[$j++] = $_.p; //#19125 - $k[$j++] = $_.t; //#19125 - $k[$j++] = $get($_.coeffs, $_.j); //#19125 - $_.rsprod(); //#19125 - var _M1 = $k[--$j]; //#19125 - var _M2 = $k[--$j]; //#19125 - $put($k[--$j], _M2, _M1); //#19125 - if ($_.j > 0) { //#19126 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19126 - } //#19126 - } //#19126 - } //#19126 - } //#19126 - if ($_.ncws == 1558) { //#19134 - $k[$j++] = Infinity; //#19133 - var _MF = $geti($_.ecbs, 8, 2); //#19133 - for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19133 - $k[$j++] = $get(_MF, _MG); //#19133 - } //#19133 - var _MK = $geti($_.ecbs, 0, 8); //#19133 - for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19133 - $k[$j++] = $get(_MK, _ML); //#19133 - } //#19133 - $_.ecbs = $a(); //#19133 - } //#19133 - $k[$j++] = Infinity; //#19137 - var _MP = $_.cws; //#19137 - for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19137 - $k[$j++] = $get(_MP, _MQ); //#19137 - } //#19137 - for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19137 - $k[$j++] = 0; //#19137 - } //#19137 - $_.cws = $a(); //#19137 - for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19141 - $_.i = _MZ; //#19139 - $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19140 - } //#19140 + var _Kk = $k[--$j]; //#19373 + var _Kl = $k[--$j]; //#19373 + $k[$j++] = _Kl; //#19377 + $k[$j++] = _Kk; //#19377 + if ((_Kk != 0) && (_Kl != 0)) { //#19376 + var _Ko = $get($_.rslog, $k[--$j]); //#19374 + var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19374 + $k[$j++] = _Kt; //#19374 + } else { //#19376 + $j -= 2; //#19376 + $k[$j++] = 0; //#19376 + } //#19376 + }; //#19376 + $k[$j++] = Infinity; //#19381 + $k[$j++] = 1; //#19381 + for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19381 + $k[$j++] = 0; //#19381 + } //#19381 + $_.coeffs = $a(); //#19381 + for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19390 + $_.i = _L2; //#19383 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19384 + for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19388 + $_.j = _L9; //#19386 + $k[$j++] = $_.coeffs; //#19387 + $k[$j++] = $_.j; //#19387 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#19387 + $k[$j++] = $get($_.coeffs, $_.j); //#19387 + $k[$j++] = $get($_.rsalog, $_.i); //#19387 + $_.rsprod(); //#19387 + var _LL = $k[--$j]; //#19387 + var _LM = $k[--$j]; //#19387 + var _LN = $k[--$j]; //#19387 + $put($k[--$j], _LN, $xo(_LM, _LL)); //#19387 + } //#19387 + $k[$j++] = $_.coeffs; //#19389 + $k[$j++] = 0; //#19389 + $k[$j++] = $get($_.coeffs, 0); //#19389 + $k[$j++] = $get($_.rsalog, $_.i); //#19389 + $_.rsprod(); //#19389 + var _LV = $k[--$j]; //#19389 + var _LW = $k[--$j]; //#19389 + $put($k[--$j], _LW, _LV); //#19389 + } //#19389 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19391 + for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19407 + $_.i = _Ld; //#19395 + $_.cwb = $get($_.cwbs, $_.i); //#19396 + $_.ecb = $get($_.ecbs, $_.i); //#19397 + for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19406 + $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19399 + for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19405 + $_.j = _Ls; //#19401 + $_.p = ($_.ecb.length - $_.j) - 1; //#19402 + $k[$j++] = $_.ecb; //#19403 + $k[$j++] = $_.p; //#19403 + $k[$j++] = $_.t; //#19403 + $k[$j++] = $get($_.coeffs, $_.j); //#19403 + $_.rsprod(); //#19403 + var _M1 = $k[--$j]; //#19403 + var _M2 = $k[--$j]; //#19403 + $put($k[--$j], _M2, _M1); //#19403 + if ($_.j > 0) { //#19404 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19404 + } //#19404 + } //#19404 + } //#19404 + } //#19404 + if ($_.ncws == 1558) { //#19412 + $k[$j++] = Infinity; //#19411 + var _MF = $geti($_.ecbs, 8, 2); //#19411 + for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19411 + $k[$j++] = $get(_MF, _MG); //#19411 + } //#19411 + var _MK = $geti($_.ecbs, 0, 8); //#19411 + for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19411 + $k[$j++] = $get(_MK, _ML); //#19411 + } //#19411 + $_.ecbs = $a(); //#19411 + } //#19411 + $k[$j++] = Infinity; //#19415 + var _MP = $_.cws; //#19415 + for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19415 + $k[$j++] = $get(_MP, _MQ); //#19415 + } //#19415 + for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19415 + $k[$j++] = 0; //#19415 + } //#19415 + $_.cws = $a(); //#19415 + for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19419 + $_.i = _MZ; //#19417 + $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19418 + } //#19418 $_.module = function() { - var _Mk = $k[--$j]; //#19146 - var _Ml = $k[--$j]; //#19146 - var _Mm = $k[--$j]; //#19146 - var _Mp = $strcpy($s(8), "00000000"); //#19147 - var _Mr = $cvrs($s(8), $k[--$j], 2); //#19147 - $puti(_Mp, 8 - _Mr.length, _Mr); //#19148 - $k[$j++] = _Mm; //#19149 - $k[$j++] = _Ml; //#19149 - $k[$j++] = _Mk; //#19149 - $k[$j++] = _Mp; //#19149 - for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19149 - var _Mt = $k[--$j]; //#19149 - $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19149 - $k[$j++] = _Mt; //#19149 - } //#19149 - $j--; //#19149 - var _Mv = $k[--$j]; //#19150 - var _Mw = $k[--$j]; //#19150 - var _Mx = $k[--$j]; //#19150 - var _My = $k[--$j]; //#19150 - var _Mz = $k[--$j]; //#19150 - var _N0 = $k[--$j]; //#19150 - var _N1 = $k[--$j]; //#19150 - var _N2 = $k[--$j]; //#19150 - var _N3 = $k[--$j]; //#19150 - var _N4 = $k[--$j]; //#19150 - var _N5 = $k[--$j]; //#19150 - $k[$j++] = _N2; //#19167 - $k[$j++] = _N1; //#19167 - $k[$j++] = _N0; //#19167 - $k[$j++] = _Mz; //#19167 - $k[$j++] = _My; //#19167 - $k[$j++] = _Mx; //#19167 - $k[$j++] = _Mw; //#19167 - $k[$j++] = _Mv; //#19167 - $k[$j++] = _N5; //#19167 - $k[$j++] = _N4; //#19167 - $forall(_N3, function() { //#19167 + var _Mk = $k[--$j]; //#19424 + var _Ml = $k[--$j]; //#19424 + var _Mm = $k[--$j]; //#19424 + var _Mp = $strcpy($s(8), "00000000"); //#19425 + var _Mr = $cvrs($s(8), $k[--$j], 2); //#19425 + $puti(_Mp, 8 - _Mr.length, _Mr); //#19426 + $k[$j++] = _Mm; //#19427 + $k[$j++] = _Ml; //#19427 + $k[$j++] = _Mk; //#19427 + $k[$j++] = _Mp; //#19427 + for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19427 + var _Mt = $k[--$j]; //#19427 + $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19427 + $k[$j++] = _Mt; //#19427 + } //#19427 + $j--; //#19427 + var _Mv = $k[--$j]; //#19428 + var _Mw = $k[--$j]; //#19428 + var _Mx = $k[--$j]; //#19428 + var _My = $k[--$j]; //#19428 + var _Mz = $k[--$j]; //#19428 + var _N0 = $k[--$j]; //#19428 + var _N1 = $k[--$j]; //#19428 + var _N2 = $k[--$j]; //#19428 + var _N3 = $k[--$j]; //#19428 + var _N4 = $k[--$j]; //#19428 + var _N5 = $k[--$j]; //#19428 + $k[$j++] = _N2; //#19445 + $k[$j++] = _N1; //#19445 + $k[$j++] = _N0; //#19445 + $k[$j++] = _Mz; //#19445 + $k[$j++] = _My; //#19445 + $k[$j++] = _Mx; //#19445 + $k[$j++] = _Mw; //#19445 + $k[$j++] = _Mv; //#19445 + $k[$j++] = _N5; //#19445 + $k[$j++] = _N4; //#19445 + $forall(_N3, function() { //#19445 if ($k[--$j]() === true) { return true; - } //#19153 - var _N7 = $k[--$j]; //#19154 - var _N8 = $k[--$j]; //#19154 - $k[$j++] = _N8; //#19157 - $k[$j++] = _N7; //#19157 - if (_N8 < 0) { //#19157 - var _N9 = $k[--$j]; //#19155 - var _NA = $k[--$j]; //#19155 - $k[$j++] = $f(_NA + $_.mrows); //#19156 - $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19156 - } //#19156 - var _ND = $k[--$j]; //#19158 - $k[$j++] = _ND; //#19161 - if (_ND < 0) { //#19161 - var _NF = $k[--$j]; //#19159 - var _NG = $k[--$j]; //#19159 - $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19160 - $k[$j++] = $f(_NF + $_.mcols); //#19160 - } //#19160 - var _NI = $k[--$j]; //#19162 - var _NJ = $k[--$j]; //#19162 - $k[$j++] = _NJ; //#19164 - $k[$j++] = _NI; //#19164 - if (_NJ >= $_.mrows) { //#19164 - var _NL = $k[--$j]; //#19163 - var _NM = $k[--$j]; //#19163 - $k[$j++] = $f(_NM - $_.mrows); //#19163 - $k[$j++] = _NL; //#19163 - } //#19163 - var _NO = $k[--$j]; //#19165 - var _NP = $k[--$j]; //#19165 - var _NS = $k[--$j]; //#19166 - var _NT = $k[--$j]; //#19166 - $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19166 - $k[$j++] = _NT; //#19166 - $k[$j++] = _NS; //#19166 - }); //#19166 - }; //#19166 + } //#19431 + var _N7 = $k[--$j]; //#19432 + var _N8 = $k[--$j]; //#19432 + $k[$j++] = _N8; //#19435 + $k[$j++] = _N7; //#19435 + if (_N8 < 0) { //#19435 + var _N9 = $k[--$j]; //#19433 + var _NA = $k[--$j]; //#19433 + $k[$j++] = $f(_NA + $_.mrows); //#19434 + $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19434 + } //#19434 + var _ND = $k[--$j]; //#19436 + $k[$j++] = _ND; //#19439 + if (_ND < 0) { //#19439 + var _NF = $k[--$j]; //#19437 + var _NG = $k[--$j]; //#19437 + $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19438 + $k[$j++] = $f(_NF + $_.mcols); //#19438 + } //#19438 + var _NI = $k[--$j]; //#19440 + var _NJ = $k[--$j]; //#19440 + $k[$j++] = _NJ; //#19442 + $k[$j++] = _NI; //#19442 + if (_NJ >= $_.mrows) { //#19442 + var _NL = $k[--$j]; //#19441 + var _NM = $k[--$j]; //#19441 + $k[$j++] = $f(_NM - $_.mrows); //#19441 + $k[$j++] = _NL; //#19441 + } //#19441 + var _NO = $k[--$j]; //#19443 + var _NP = $k[--$j]; //#19443 + var _NS = $k[--$j]; //#19444 + var _NT = $k[--$j]; //#19444 + $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19444 + $k[$j++] = _NT; //#19444 + $k[$j++] = _NS; //#19444 + }); //#19444 + }; //#19444 var _Nl = $a([function() { - var _NV = $k[--$j]; //#19172 - var _NW = $k[--$j]; //#19172 - $k[$j++] = _NW; //#19172 - $k[$j++] = _NV; //#19172 - $k[$j++] = $f(_NW - 2); //#19172 - $k[$j++] = $f(_NV - 2); //#19172 + var _NV = $k[--$j]; //#19450 + var _NW = $k[--$j]; //#19450 + $k[$j++] = _NW; //#19450 + $k[$j++] = _NV; //#19450 + $k[$j++] = $f(_NW - 2); //#19450 + $k[$j++] = $f(_NV - 2); //#19450 }, function() { - var _NX = $k[--$j]; //#19172 - var _NY = $k[--$j]; //#19172 - $k[$j++] = _NY; //#19172 - $k[$j++] = _NX; //#19172 - $k[$j++] = $f(_NY - 2); //#19172 - $k[$j++] = $f(_NX - 1); //#19172 + var _NX = $k[--$j]; //#19450 + var _NY = $k[--$j]; //#19450 + $k[$j++] = _NY; //#19450 + $k[$j++] = _NX; //#19450 + $k[$j++] = $f(_NY - 2); //#19450 + $k[$j++] = $f(_NX - 1); //#19450 }, function() { - var _NZ = $k[--$j]; //#19173 - var _Na = $k[--$j]; //#19173 - $k[$j++] = _Na; //#19173 - $k[$j++] = _NZ; //#19173 - $k[$j++] = $f(_Na - 1); //#19173 - $k[$j++] = $f(_NZ - 2); //#19173 + var _NZ = $k[--$j]; //#19451 + var _Na = $k[--$j]; //#19451 + $k[$j++] = _Na; //#19451 + $k[$j++] = _NZ; //#19451 + $k[$j++] = $f(_Na - 1); //#19451 + $k[$j++] = $f(_NZ - 2); //#19451 }, function() { - var _Nb = $k[--$j]; //#19173 - var _Nc = $k[--$j]; //#19173 - $k[$j++] = _Nc; //#19173 - $k[$j++] = _Nb; //#19173 - $k[$j++] = $f(_Nc - 1); //#19173 - $k[$j++] = $f(_Nb - 1); //#19173 + var _Nb = $k[--$j]; //#19451 + var _Nc = $k[--$j]; //#19451 + $k[$j++] = _Nc; //#19451 + $k[$j++] = _Nb; //#19451 + $k[$j++] = $f(_Nc - 1); //#19451 + $k[$j++] = $f(_Nb - 1); //#19451 }, function() { - var _Nd = $k[--$j]; //#19174 - var _Ne = $k[--$j]; //#19174 - $k[$j++] = _Ne; //#19174 - $k[$j++] = _Nd; //#19174 - $k[$j++] = $f(_Ne - 1); //#19174 - $k[$j++] = _Nd; //#19174 + var _Nd = $k[--$j]; //#19452 + var _Ne = $k[--$j]; //#19452 + $k[$j++] = _Ne; //#19452 + $k[$j++] = _Nd; //#19452 + $k[$j++] = $f(_Ne - 1); //#19452 + $k[$j++] = _Nd; //#19452 }, function() { - var _Nf = $k[--$j]; //#19174 - var _Ng = $k[--$j]; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = _Nf; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = $f(_Nf - 2); //#19174 + var _Nf = $k[--$j]; //#19452 + var _Ng = $k[--$j]; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = _Nf; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = $f(_Nf - 2); //#19452 }, function() { - var _Nh = $k[--$j]; //#19175 - var _Ni = $k[--$j]; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = _Nh; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = $f(_Nh - 1); //#19175 + var _Nh = $k[--$j]; //#19453 + var _Ni = $k[--$j]; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = _Nh; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = $f(_Nh - 1); //#19453 }, function() { - var _Nj = $k[--$j]; //#19175 - var _Nk = $k[--$j]; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - }]); //#19175 - $_.dmn = _Nl; //#19176 + var _Nj = $k[--$j]; //#19453 + var _Nk = $k[--$j]; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + }]); //#19453 + $_.dmn = _Nl; //#19454 var _Nu = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 0; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 0; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 1; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 1; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19180 - $k[$j++] = 2; //#19180 + $k[$j++] = $f($_.mrows - 1); //#19458 + $k[$j++] = 2; //#19458 }, function() { - $k[$j++] = 0; //#19180 - $k[$j++] = $f($_.mcols - 2); //#19180 + $k[$j++] = 0; //#19458 + $k[$j++] = $f($_.mcols - 2); //#19458 }, function() { - $k[$j++] = 0; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 0; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 1; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 1; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 2; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 + $k[$j++] = 2; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 }, function() { - $k[$j++] = 3; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 - }]); //#19182 - $_.dmc1 = _Nu; //#19183 + $k[$j++] = 3; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 + }]); //#19460 + $_.dmc1 = _Nu; //#19461 var _O3 = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 3); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 2); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19187 - $k[$j++] = 0; //#19187 + $k[$j++] = $f($_.mrows - 1); //#19465 + $k[$j++] = 0; //#19465 }, function() { - $k[$j++] = 0; //#19187 - $k[$j++] = $f($_.mcols - 4); //#19187 + $k[$j++] = 0; //#19465 + $k[$j++] = $f($_.mcols - 4); //#19465 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 3); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 3); //#19466 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 2); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 2); //#19466 }, function() { - $k[$j++] = 0; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 + $k[$j++] = 0; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 }, function() { - $k[$j++] = 1; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 - }]); //#19189 - $_.dmc2 = _O3; //#19190 + $k[$j++] = 1; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 + }]); //#19467 + $_.dmc2 = _O3; //#19468 var _OC = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 3); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 2); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19194 - $k[$j++] = 0; //#19194 + $k[$j++] = $f($_.mrows - 1); //#19472 + $k[$j++] = 0; //#19472 }, function() { - $k[$j++] = 0; //#19194 - $k[$j++] = $f($_.mcols - 2); //#19194 + $k[$j++] = 0; //#19472 + $k[$j++] = $f($_.mcols - 2); //#19472 }, function() { - $k[$j++] = 0; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 0; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 1; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 1; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 2; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 + $k[$j++] = 2; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 }, function() { - $k[$j++] = 3; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 - }]); //#19196 - $_.dmc3 = _OC; //#19197 + $k[$j++] = 3; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 + }]); //#19474 + $_.dmc3 = _OC; //#19475 var _OM = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = 0; //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = 0; //#19478 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = $f($_.mcols - 1); //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = $f($_.mcols - 1); //#19478 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 3); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 3); //#19479 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 2); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 2); //#19479 }, function() { - $k[$j++] = 0; //#19202 - $k[$j++] = $f($_.mcols - 1); //#19202 + $k[$j++] = 0; //#19480 + $k[$j++] = $f($_.mcols - 1); //#19480 }, function() { - $k[$j++] = 1; //#19202 - $k[$j++] = $f($_.mcols - 3); //#19202 + $k[$j++] = 1; //#19480 + $k[$j++] = $f($_.mcols - 3); //#19480 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 2); //#19203 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 2); //#19481 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 1); //#19203 - }]); //#19203 - $_.dmc4 = _OM; //#19204 - $k[$j++] = Infinity; //#19206 - for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19206 - $k[$j++] = -1; //#19206 - } //#19206 - $_.mmat = $a(); //#19206 - for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19207 - $k[$j++] = $get($_.cws, _OT); //#19207 - } //#19207 - $k[$j++] = 4; //#19247 - $k[$j++] = 0; //#19247 - for (;;) { //#19247 - var _OW = $k[--$j]; //#19210 - var _OX = $k[--$j]; //#19210 - $k[$j++] = _OX; //#19212 - $k[$j++] = _OW; //#19212 - if ((_OW == 0) && (_OX == $_.mrows)) { //#19212 - $k[$j++] = $_.dmc1; //#19211 - $_.module(); //#19211 - } //#19211 - var _Oa = $k[--$j]; //#19213 - var _Ob = $k[--$j]; //#19213 - $k[$j++] = _Ob; //#19215 - $k[$j++] = _Oa; //#19215 - if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19215 - $k[$j++] = $_.dmc2; //#19214 - $_.module(); //#19214 - } //#19214 - var _Of = $k[--$j]; //#19216 - var _Og = $k[--$j]; //#19216 - $k[$j++] = _Og; //#19218 - $k[$j++] = _Of; //#19218 - if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19218 - $k[$j++] = $_.dmc3; //#19217 - $_.module(); //#19217 - } //#19217 - var _Ok = $k[--$j]; //#19219 - var _Ol = $k[--$j]; //#19219 - $k[$j++] = _Ol; //#19221 - $k[$j++] = _Ok; //#19221 - if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19221 - $k[$j++] = $_.dmc4; //#19220 - $_.module(); //#19220 - } //#19220 - for (;;) { //#19231 - var _Op = $k[--$j]; //#19224 - var _Oq = $k[--$j]; //#19224 - $k[$j++] = _Oq; //#19228 - $k[$j++] = _Op; //#19228 - if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19228 - var _Os = $k[--$j]; //#19225 - var _Ot = $k[--$j]; //#19225 - $k[$j++] = _Ot; //#19227 - $k[$j++] = _Os; //#19227 - if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19227 - $k[$j++] = $_.dmn; //#19226 - $_.module(); //#19226 - } //#19226 - } //#19226 - var _Oy = $k[--$j]; //#19229 - var _Oz = $k[--$j]; //#19229 - $k[$j++] = $f(_Oz - 2); //#19230 - $k[$j++] = $f(_Oy + 2); //#19230 - if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19230 - break; //#19230 - } //#19230 - } //#19230 - var _P1 = $k[--$j]; //#19232 - var _P2 = $k[--$j]; //#19232 - $k[$j++] = $f(_P2 + 1); //#19242 - $k[$j++] = $f(_P1 + 3); //#19242 - for (;;) { //#19242 - var _P3 = $k[--$j]; //#19235 - var _P4 = $k[--$j]; //#19235 - $k[$j++] = _P4; //#19239 - $k[$j++] = _P3; //#19239 - if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19239 - var _P6 = $k[--$j]; //#19236 - var _P7 = $k[--$j]; //#19236 - $k[$j++] = _P7; //#19238 - $k[$j++] = _P6; //#19238 - if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19238 - $k[$j++] = $_.dmn; //#19237 - $_.module(); //#19237 - } //#19237 - } //#19237 - var _PC = $k[--$j]; //#19240 - var _PD = $k[--$j]; //#19240 - $k[$j++] = $f(_PD + 2); //#19241 - $k[$j++] = $f(_PC - 2); //#19241 - if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19241 - break; //#19241 - } //#19241 - } //#19241 - var _PF = $k[--$j]; //#19243 - var _PG = $k[--$j]; //#19243 - $k[$j++] = $f(_PG + 3); //#19245 - $k[$j++] = $f(_PF + 1); //#19245 - if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19245 - $j -= 2; //#19245 - break; //#19245 - } //#19245 - } //#19245 - if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19253 - $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19251 - $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19252 - } //#19252 - $_.pixs = $a($_.rows * $_.cols); //#19256 - $_.cwpos = 0; //#19257 - for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19273 - $_.i = _Pa; //#19259 - if (($_.i % ($_.rrows + 2)) == 0) { //#19260 - $k[$j++] = $_.pixs; //#19260 - $k[$j++] = $_.i * $_.cols; //#19260 - $k[$j++] = Infinity; //#19260 - for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19260 - $k[$j++] = 1; //#19260 - $k[$j++] = 0; //#19260 - } //#19260 - var _Pj = $a(); //#19260 - var _Pk = $k[--$j]; //#19260 - $puti($k[--$j], _Pk, _Pj); //#19260 - } //#19260 - if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19261 - $k[$j++] = $_.pixs; //#19261 - $k[$j++] = $_.i * $_.cols; //#19261 - $k[$j++] = Infinity; //#19261 - for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19261 - $k[$j++] = 1; //#19261 - } //#19261 - var _Pv = $a(); //#19261 - var _Pw = $k[--$j]; //#19261 - $puti($k[--$j], _Pw, _Pv); //#19261 - } //#19261 - if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19272 - for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19271 - $_.j = _Q5; //#19264 - if (($_.j % ($_.rcols + 2)) == 0) { //#19265 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19265 - } //#19265 - if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19266 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19266 - } //#19266 - if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19270 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19268 - $_.cwpos = $_.cwpos + 1; //#19269 - } //#19269 - } //#19269 - } //#19269 - } //#19269 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 1); //#19481 + }]); //#19481 + $_.dmc4 = _OM; //#19482 + $k[$j++] = Infinity; //#19484 + for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19484 + $k[$j++] = -1; //#19484 + } //#19484 + $_.mmat = $a(); //#19484 + for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19485 + $k[$j++] = $get($_.cws, _OT); //#19485 + } //#19485 + $k[$j++] = 4; //#19525 + $k[$j++] = 0; //#19525 + for (;;) { //#19525 + var _OW = $k[--$j]; //#19488 + var _OX = $k[--$j]; //#19488 + $k[$j++] = _OX; //#19490 + $k[$j++] = _OW; //#19490 + if ((_OW == 0) && (_OX == $_.mrows)) { //#19490 + $k[$j++] = $_.dmc1; //#19489 + $_.module(); //#19489 + } //#19489 + var _Oa = $k[--$j]; //#19491 + var _Ob = $k[--$j]; //#19491 + $k[$j++] = _Ob; //#19493 + $k[$j++] = _Oa; //#19493 + if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19493 + $k[$j++] = $_.dmc2; //#19492 + $_.module(); //#19492 + } //#19492 + var _Of = $k[--$j]; //#19494 + var _Og = $k[--$j]; //#19494 + $k[$j++] = _Og; //#19496 + $k[$j++] = _Of; //#19496 + if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19496 + $k[$j++] = $_.dmc3; //#19495 + $_.module(); //#19495 + } //#19495 + var _Ok = $k[--$j]; //#19497 + var _Ol = $k[--$j]; //#19497 + $k[$j++] = _Ol; //#19499 + $k[$j++] = _Ok; //#19499 + if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19499 + $k[$j++] = $_.dmc4; //#19498 + $_.module(); //#19498 + } //#19498 + for (;;) { //#19509 + var _Op = $k[--$j]; //#19502 + var _Oq = $k[--$j]; //#19502 + $k[$j++] = _Oq; //#19506 + $k[$j++] = _Op; //#19506 + if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19506 + var _Os = $k[--$j]; //#19503 + var _Ot = $k[--$j]; //#19503 + $k[$j++] = _Ot; //#19505 + $k[$j++] = _Os; //#19505 + if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19505 + $k[$j++] = $_.dmn; //#19504 + $_.module(); //#19504 + } //#19504 + } //#19504 + var _Oy = $k[--$j]; //#19507 + var _Oz = $k[--$j]; //#19507 + $k[$j++] = $f(_Oz - 2); //#19508 + $k[$j++] = $f(_Oy + 2); //#19508 + if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19508 + break; //#19508 + } //#19508 + } //#19508 + var _P1 = $k[--$j]; //#19510 + var _P2 = $k[--$j]; //#19510 + $k[$j++] = $f(_P2 + 1); //#19520 + $k[$j++] = $f(_P1 + 3); //#19520 + for (;;) { //#19520 + var _P3 = $k[--$j]; //#19513 + var _P4 = $k[--$j]; //#19513 + $k[$j++] = _P4; //#19517 + $k[$j++] = _P3; //#19517 + if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19517 + var _P6 = $k[--$j]; //#19514 + var _P7 = $k[--$j]; //#19514 + $k[$j++] = _P7; //#19516 + $k[$j++] = _P6; //#19516 + if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19516 + $k[$j++] = $_.dmn; //#19515 + $_.module(); //#19515 + } //#19515 + } //#19515 + var _PC = $k[--$j]; //#19518 + var _PD = $k[--$j]; //#19518 + $k[$j++] = $f(_PD + 2); //#19519 + $k[$j++] = $f(_PC - 2); //#19519 + if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19519 + break; //#19519 + } //#19519 + } //#19519 + var _PF = $k[--$j]; //#19521 + var _PG = $k[--$j]; //#19521 + $k[$j++] = $f(_PG + 3); //#19523 + $k[$j++] = $f(_PF + 1); //#19523 + if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19523 + $j -= 2; //#19523 + break; //#19523 + } //#19523 + } //#19523 + if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19531 + $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19529 + $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19530 + } //#19530 + $_.pixs = $a($_.rows * $_.cols); //#19534 + $_.cwpos = 0; //#19535 + for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19551 + $_.i = _Pa; //#19537 + if (($_.i % ($_.rrows + 2)) == 0) { //#19538 + $k[$j++] = $_.pixs; //#19538 + $k[$j++] = $_.i * $_.cols; //#19538 + $k[$j++] = Infinity; //#19538 + for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19538 + $k[$j++] = 1; //#19538 + $k[$j++] = 0; //#19538 + } //#19538 + var _Pj = $a(); //#19538 + var _Pk = $k[--$j]; //#19538 + $puti($k[--$j], _Pk, _Pj); //#19538 + } //#19538 + if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19539 + $k[$j++] = $_.pixs; //#19539 + $k[$j++] = $_.i * $_.cols; //#19539 + $k[$j++] = Infinity; //#19539 + for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19539 + $k[$j++] = 1; //#19539 + } //#19539 + var _Pv = $a(); //#19539 + var _Pw = $k[--$j]; //#19539 + $puti($k[--$j], _Pw, _Pv); //#19539 + } //#19539 + if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19550 + for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19549 + $_.j = _Q5; //#19542 + if (($_.j % ($_.rcols + 2)) == 0) { //#19543 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19543 + } //#19543 + if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19544 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19544 + } //#19544 + if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19548 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19546 + $_.cwpos = $_.cwpos + 1; //#19547 + } //#19547 + } //#19547 + } //#19547 + } //#19547 var _Qd = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -23490,715 +23897,715 @@ function bwipp_datamatrix() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#19283 - $k[$j++] = _Qd; //#19286 - if (!$_.dontdraw) { //#19286 - bwipp_renmatrix(); //#19286 - } //#19286 - $_ = Object.getPrototypeOf($_); //#19288 - $_ = Object.getPrototypeOf($_); //#19290 -} - + ]); //#19565 + $k[$j++] = _Qd; //#19568 + if (!$_.dontdraw) { //#19568 + bwipp_renmatrix(); //#19568 + } //#19568 + $_ = Object.getPrototypeOf($_); //#19570 + $_ = Object.getPrototypeOf($_); //#19572 +} //bwipp_datamatrix function bwipp_datamatrixrectangular() { - $_ = Object.create($_); //#19319 - $_.dontdraw = false; //#19322 - $k[$j++] = $_; //#19324 - bwipp_processoptions(); //#19324 - $_.options = $k[--$j]; //#19324 - $_.barcode = $k[--$j]; //#19325 - $put($_.options, "dontdraw", true); //#19328 - $put($_.options, "format", "rectangle"); //#19329 - $k[$j++] = 'args'; //#19331 - $k[$j++] = $_.barcode; //#19331 - $k[$j++] = $_.options; //#19331 - bwipp_datamatrix(); //#19331 - var _6 = $k[--$j]; //#19331 - $_[$k[--$j]] = _6; //#19331 - $put($_.args, "opt", $_.options); //#19333 - $k[$j++] = $_.args; //#19336 - if (!$_.dontdraw) { //#19336 - bwipp_renmatrix(); //#19336 - } //#19336 - $_ = Object.getPrototypeOf($_); //#19338 -} - + $_ = Object.create($_); //#19601 + $_.dontdraw = false; //#19604 + $k[$j++] = $_; //#19606 + bwipp_processoptions(); //#19606 + $_.options = $k[--$j]; //#19606 + $_.barcode = $k[--$j]; //#19607 + $put($_.options, "dontdraw", true); //#19610 + $put($_.options, "format", "rectangle"); //#19611 + $k[$j++] = 'args'; //#19613 + $k[$j++] = $_.barcode; //#19613 + $k[$j++] = $_.options; //#19613 + bwipp_datamatrix(); //#19613 + var _6 = $k[--$j]; //#19613 + $_[$k[--$j]] = _6; //#19613 + $put($_.args, "opt", $_.options); //#19615 + $k[$j++] = $_.args; //#19618 + if (!$_.dontdraw) { //#19618 + bwipp_renmatrix(); //#19618 + } //#19618 + $_ = Object.getPrototypeOf($_); //#19620 +} //bwipp_datamatrixrectangular function bwipp_datamatrixrectangularextension() { - $_ = Object.create($_); //#19367 - $_.dontdraw = false; //#19370 - $k[$j++] = $_; //#19372 - bwipp_processoptions(); //#19372 - $_.options = $k[--$j]; //#19372 - $_.barcode = $k[--$j]; //#19373 - $put($_.options, "dontdraw", true); //#19376 - $put($_.options, "dmre", true); //#19377 - $k[$j++] = 'args'; //#19379 - $k[$j++] = $_.barcode; //#19379 - $k[$j++] = $_.options; //#19379 - bwipp_datamatrix(); //#19379 - var _6 = $k[--$j]; //#19379 - $_[$k[--$j]] = _6; //#19379 - $put($_.args, "opt", $_.options); //#19381 - $k[$j++] = $_.args; //#19384 - if (!$_.dontdraw) { //#19384 - bwipp_renmatrix(); //#19384 - } //#19384 - $_ = Object.getPrototypeOf($_); //#19386 -} - + $_ = Object.create($_); //#19649 + $_.dontdraw = false; //#19652 + $k[$j++] = $_; //#19654 + bwipp_processoptions(); //#19654 + $_.options = $k[--$j]; //#19654 + $_.barcode = $k[--$j]; //#19655 + $put($_.options, "dontdraw", true); //#19658 + $put($_.options, "dmre", true); //#19659 + $k[$j++] = 'args'; //#19661 + $k[$j++] = $_.barcode; //#19661 + $k[$j++] = $_.options; //#19661 + bwipp_datamatrix(); //#19661 + var _6 = $k[--$j]; //#19661 + $_[$k[--$j]] = _6; //#19661 + $put($_.args, "opt", $_.options); //#19663 + $k[$j++] = $_.args; //#19666 + if (!$_.dontdraw) { //#19666 + bwipp_renmatrix(); //#19666 + } //#19666 + $_ = Object.getPrototypeOf($_); //#19668 +} //bwipp_datamatrixrectangularextension function bwipp_mailmark() { - $_ = Object.create($_); //#19416 - $_.type = "unset"; //#19419 - $_.parse = false; //#19420 - $_.dontdraw = false; //#19421 - $k[$j++] = $_; //#19423 - bwipp_processoptions(); //#19423 - $_.options = $k[--$j]; //#19423 - $_.barcode = $k[--$j]; //#19424 + $_ = Object.create($_); //#19698 + $_.type = "unset"; //#19701 + $_.parse = false; //#19702 + $_.dontdraw = false; //#19703 + $k[$j++] = $_; //#19705 + bwipp_processoptions(); //#19705 + $_.options = $k[--$j]; //#19705 + $_.barcode = $k[--$j]; //#19706 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#19430 - $_.fncvals = _3; //#19431 - $k[$j++] = 'barcode'; //#19432 - $k[$j++] = $_.barcode; //#19432 - $k[$j++] = $_.fncvals; //#19432 - bwipp_parseinput(); //#19432 - var _6 = $k[--$j]; //#19432 - $_[$k[--$j]] = _6; //#19432 - $_.barlen = $_.barcode.length; //#19433 - delete $_.options["parse"]; //#19434 - var _A = $_['type']; //#19437 - if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19439 - $k[$j++] = 'bwipp.mailmarkBadType#19438'; //#19438 - $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19438 - bwipp_raiseerror(); //#19438 - } //#19438 + ]); //#19712 + $_.fncvals = _3; //#19713 + $k[$j++] = 'barcode'; //#19714 + $k[$j++] = $_.barcode; //#19714 + $k[$j++] = $_.fncvals; //#19714 + bwipp_parseinput(); //#19714 + var _6 = $k[--$j]; //#19714 + $_[$k[--$j]] = _6; //#19714 + $_.barlen = $_.barcode.length; //#19715 + delete $_.options["parse"]; //#19716 + var _A = $_['type']; //#19719 + if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19721 + $k[$j++] = 'bwipp.mailmarkBadType#19720'; //#19720 + $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19720 + bwipp_raiseerror(); //#19720 + } //#19720 var _B = new Map([ ["7", "24x24"], ["9", "32x32"], ["29", "16x48"] - ]); //#19443 - $_.version = $get(_B, $_['type']); //#19444 + ]); //#19725 + $_.version = $get(_B, $_['type']); //#19726 var _E = new Map([ ["7", "square"], ["9", "square"], ["29", "rectangle"] - ]); //#19449 - $_.format = $get(_E, $_['type']); //#19450 - if ($_.barcode.length < 45) { //#19455 - $k[$j++] = 'bwipp.mailmarkBadLength#19454'; //#19454 - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19454 - bwipp_raiseerror(); //#19454 - } //#19454 - if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19458 - $k[$j++] = 'bwipp.mailmarkBadIndicator#19457'; //#19457 - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19457 - bwipp_raiseerror(); //#19457 - } //#19457 - $put($_.options, "dontdraw", true); //#19461 - $put($_.options, "version", $_.version); //#19462 - $put($_.options, "format", $_.format); //#19463 - $put($_.options, "c40headerlength", 45); //#19464 - $k[$j++] = 'args'; //#19465 - $k[$j++] = $_.barcode; //#19465 - $k[$j++] = $_.options; //#19465 - bwipp_datamatrix(); //#19465 - var _S = $k[--$j]; //#19465 - $_[$k[--$j]] = _S; //#19465 - $put($_.args, "opt", $_.options); //#19467 - $k[$j++] = $_.args; //#19470 - if (!$_.dontdraw) { //#19470 - bwipp_renmatrix(); //#19470 - } //#19470 - $_ = Object.getPrototypeOf($_); //#19472 -} - + ]); //#19731 + $_.format = $get(_E, $_['type']); //#19732 + if ($_.barcode.length < 45) { //#19737 + $k[$j++] = 'bwipp.mailmarkBadLength#19736'; //#19736 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19736 + bwipp_raiseerror(); //#19736 + } //#19736 + if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19740 + $k[$j++] = 'bwipp.mailmarkBadIndicator#19739'; //#19739 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19739 + bwipp_raiseerror(); //#19739 + } //#19739 + $put($_.options, "dontdraw", true); //#19743 + $put($_.options, "version", $_.version); //#19744 + $put($_.options, "format", $_.format); //#19745 + $put($_.options, "c40headerlength", 45); //#19746 + $k[$j++] = 'args'; //#19747 + $k[$j++] = $_.barcode; //#19747 + $k[$j++] = $_.options; //#19747 + bwipp_datamatrix(); //#19747 + var _S = $k[--$j]; //#19747 + $_[$k[--$j]] = _S; //#19747 + $put($_.args, "opt", $_.options); //#19749 + $k[$j++] = $_.args; //#19752 + if (!$_.dontdraw) { //#19752 + bwipp_renmatrix(); //#19752 + } //#19752 + $_ = Object.getPrototypeOf($_); //#19754 +} //bwipp_mailmark function bwipp_qrcode() { - $_ = Object.create($_); //#19503 - $_.dontdraw = false; //#19506 - $_.format = "unset"; //#19507 - $_.version = "unset"; //#19508 - $_.eclevel = "unset"; //#19509 - $_.parse = false; //#19510 - $_.parsefnc = false; //#19511 - $_.mask = -1; //#19512 - $k[$j++] = $_; //#19514 - bwipp_processoptions(); //#19514 - $_.options = $k[--$j]; //#19514 - $_.barcode = $k[--$j]; //#19515 - bwipp_loadctx(bwipp_qrcode) //#19517 - if ($eq($_.barcode, "")) { //#19521 - $k[$j++] = 'bwipp.qrcodeEmptyData#19520'; //#19520 - $k[$j++] = "The data must not be empty"; //#19520 - bwipp_raiseerror(); //#19520 - } //#19520 - if ($ne($_.version, "unset")) { //#19532 - if ($eq($_.format, "unset")) { //#19530 - $k[$j++] = "full"; //#19527 - if ($eq($geti($_.version, 0, 1), "M")) { //#19527 - $j--; //#19527 - $k[$j++] = "micro"; //#19527 - } //#19527 - if ($eq($geti($_.version, 0, 1), "R")) { //#19528 - $j--; //#19528 - $k[$j++] = "rmqr"; //#19528 - } //#19528 - $_.format = $k[--$j]; //#19529 - } //#19529 - } else { //#19532 - if ($eq($_.format, "unset")) { //#19532 - $_.format = "full"; //#19532 - } //#19532 - } //#19532 - if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19537 - $k[$j++] = 'bwipp.qrcodeInvalidFormat#19536'; //#19536 - $k[$j++] = "The format must be either full, micro or rmqr"; //#19536 - bwipp_raiseerror(); //#19536 - } //#19536 - if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19541 - $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19540'; //#19540 - $k[$j++] = "A version must be provided for RMQR"; //#19540 - bwipp_raiseerror(); //#19540 - } //#19540 - if ($eq($_.eclevel, "unset")) { //#19544 - $k[$j++] = 'eclevel'; //#19544 - if ($ne($_.format, "micro")) { //#19544 - $k[$j++] = "M"; //#19544 - } else { //#19544 - $k[$j++] = "L"; //#19544 - } //#19544 - var _I = $k[--$j]; //#19544 - $_[$k[--$j]] = _I; //#19544 - } //#19544 - if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19548 - $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19547'; //#19547 - $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19547 - bwipp_raiseerror(); //#19547 - } //#19547 - if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19552 - $k[$j++] = 'bwipp.qrcodeRMQRmask#19551'; //#19551 - $k[$j++] = "A mask cannot be supplied for RMQR"; //#19551 - bwipp_raiseerror(); //#19551 - } //#19551 - if ($_.mask != -1) { //#19558 - var _U = $eq($_.format, "full") ? 8 : 4; //#19555 - if (($_.mask < 1) || ($_.mask > _U)) { //#19557 - $k[$j++] = 'bwipp.qrcodeBadMask#19556'; //#19556 - $k[$j++] = "An invalid mask was supplied"; //#19556 - bwipp_raiseerror(); //#19556 - } //#19556 - } //#19556 - $_.fn1 = -1; //#19561 + $_ = Object.create($_); //#19785 + $_.dontdraw = false; //#19788 + $_.format = "unset"; //#19789 + $_.version = "unset"; //#19790 + $_.eclevel = "unset"; //#19791 + $_.parse = false; //#19792 + $_.parsefnc = false; //#19793 + $_.mask = -1; //#19794 + $k[$j++] = $_; //#19796 + bwipp_processoptions(); //#19796 + $_.options = $k[--$j]; //#19796 + $_.barcode = $k[--$j]; //#19797 + bwipp_loadctx(bwipp_qrcode) //#19799 + if ($eq($_.barcode, "")) { //#19803 + $k[$j++] = 'bwipp.qrcodeEmptyData#19802'; //#19802 + $k[$j++] = "The data must not be empty"; //#19802 + bwipp_raiseerror(); //#19802 + } //#19802 + if ($ne($_.version, "unset")) { //#19814 + if ($eq($_.format, "unset")) { //#19812 + $k[$j++] = "full"; //#19809 + if ($eq($geti($_.version, 0, 1), "M")) { //#19809 + $j--; //#19809 + $k[$j++] = "micro"; //#19809 + } //#19809 + if ($eq($geti($_.version, 0, 1), "R")) { //#19810 + $j--; //#19810 + $k[$j++] = "rmqr"; //#19810 + } //#19810 + $_.format = $k[--$j]; //#19811 + } //#19811 + } else { //#19814 + if ($eq($_.format, "unset")) { //#19814 + $_.format = "full"; //#19814 + } //#19814 + } //#19814 + if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19819 + $k[$j++] = 'bwipp.qrcodeInvalidFormat#19818'; //#19818 + $k[$j++] = "The format must be either full, micro or rmqr"; //#19818 + bwipp_raiseerror(); //#19818 + } //#19818 + if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19823 + $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19822'; //#19822 + $k[$j++] = "A version must be provided for RMQR"; //#19822 + bwipp_raiseerror(); //#19822 + } //#19822 + if ($eq($_.eclevel, "unset")) { //#19826 + $k[$j++] = 'eclevel'; //#19826 + if ($ne($_.format, "micro")) { //#19826 + $k[$j++] = "M"; //#19826 + } else { //#19826 + $k[$j++] = "L"; //#19826 + } //#19826 + var _I = $k[--$j]; //#19826 + $_[$k[--$j]] = _I; //#19826 + } //#19826 + if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19830 + $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19829'; //#19829 + $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19829 + bwipp_raiseerror(); //#19829 + } //#19829 + if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19834 + $k[$j++] = 'bwipp.qrcodeRMQRmask#19833'; //#19833 + $k[$j++] = "A mask cannot be supplied for RMQR"; //#19833 + bwipp_raiseerror(); //#19833 + } //#19833 + if ($_.mask != -1) { //#19840 + var _U = $eq($_.format, "full") ? 8 : 4; //#19837 + if (($_.mask < 1) || ($_.mask > _U)) { //#19839 + $k[$j++] = 'bwipp.qrcodeBadMask#19838'; //#19838 + $k[$j++] = "An invalid mask was supplied"; //#19838 + bwipp_raiseerror(); //#19838 + } //#19838 + } //#19838 + $_.fn1 = -1; //#19843 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#19566 - $_.fncvals = _Y; //#19567 - $k[$j++] = 'msg'; //#19568 - $k[$j++] = $_.barcode; //#19568 - $k[$j++] = $_.fncvals; //#19568 - bwipp_parseinput(); //#19568 - var _b = $k[--$j]; //#19568 - $_[$k[--$j]] = _b; //#19568 - $_.msglen = $_.msg.length; //#19569 - $_.fnc1first = false; //#19572 - if ($_.msglen > 0) { //#19579 - if ($get($_.msg, 0) == $_.fn1) { //#19578 - $_.fnc1first = true; //#19575 - $k[$j++] = Infinity; //#19576 - var _k = $geti($_.msg, 1, $_.msglen - 1); //#19576 - for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19576 - var _n = $get(_k, _l); //#19576 - $k[$j++] = _n; //#19576 - if (_n == 37) { //#19576 - var _o = $k[--$j]; //#19576 - $k[$j++] = _o; //#19576 - $k[$j++] = _o; //#19576 - } //#19576 - } //#19576 - $_.msg = $a(); //#19576 - $_.msglen = $_.msg.length; //#19577 - } //#19577 - } //#19577 - if (!bwipp_qrcode.__19700__) { //#19700 - $_ = Object.create($_); //#19700 - var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19592 - $k[$j++] = 0; //#19593 - for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19593 - var _v = $k[--$j]; //#19593 - $_[$get(_r, _s)] = _v; //#19593 - $k[$j++] = $f(_v + 1); //#19593 - } //#19593 - $j--; //#19593 - $_.N = 0; //#19599 - $_.A = 1; //#19599 - $_.B = 2; //#19599 - $_.K = 3; //#19599 - $_.E = 4; //#19599 - $k[$j++] = Infinity; //#19604 - $k[$j++] = Infinity; //#19603 - for (var _w = 48; _w <= 57; _w += 1) { //#19603 - $k[$j++] = _w; //#19603 - } //#19603 - var _x = $a(); //#19603 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19604 - $k[$j++] = $get(_x, _y); //#19604 - $k[$j++] = -1; //#19604 - } //#19604 - $_.Nexcl = $d(); //#19605 - $k[$j++] = Infinity; //#19612 - $k[$j++] = Infinity; //#19611 - $k[$j++] = 32; //#19610 - $k[$j++] = 36; //#19610 - $k[$j++] = 37; //#19610 - $k[$j++] = 42; //#19610 - $k[$j++] = 43; //#19610 - $k[$j++] = 45; //#19610 - $k[$j++] = 46; //#19610 - $k[$j++] = 47; //#19610 - $k[$j++] = 58; //#19610 - for (var _12 = 65; _12 <= 90; _12 += 1) { //#19610 - $k[$j++] = _12; //#19610 - } //#19610 - $k[$j++] = $_.fn1; //#19611 - var _14 = $a(); //#19611 - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19612 - $k[$j++] = $get(_14, _15); //#19612 - $k[$j++] = -1; //#19612 - } //#19612 - $_.Aexcl = $d(); //#19613 - $k[$j++] = Infinity; //#19621 - $k[$j++] = Infinity; //#19620 - for (var _19 = 129; _19 <= 159; _19 += 1) { //#19619 - $k[$j++] = _19; //#19619 - } //#19619 - for (var _1A = 224; _1A <= 235; _1A += 1) { //#19620 - $k[$j++] = _1A; //#19620 - } //#19620 - var _1B = $a(); //#19620 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19621 - $k[$j++] = $get(_1B, _1C); //#19621 - $k[$j++] = -1; //#19621 - } //#19621 - $_.Kexcl = $d(); //#19622 - $k[$j++] = Infinity; //#19634 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["", -1, -1, -1, -1]); //#19635 - $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19635 - $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19635 - $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19635 - for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19635 - $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19634 - } //#19634 - $_.mids = $a(); //#19634 - $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19678 - $k[$j++] = Infinity; //#19689 - for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19683 - $k[$j++] = 4; //#19682 - } //#19682 - $k[$j++] = 3; //#19690 - $k[$j++] = 5; //#19690 - $k[$j++] = 7; //#19690 - $k[$j++] = 9; //#19690 - for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19690 - $k[$j++] = 3; //#19689 - } //#19689 - $_.termlens = $a(); //#19689 - $_.padstrs = $a(["11101100", "00010001"]); //#19693 - $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19696 - $_.charvals = new Map; //#19697 - for (var _2B = 0; _2B <= 44; _2B += 1) { //#19698 - $put($_.charvals, $get($_.charmap, _2B), _2B); //#19698 - } //#19698 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19698 - bwipp_qrcode.__19700__ = 1; //#19698 - $_ = Object.getPrototypeOf($_); //#19698 - } //#19698 + ]); //#19848 + $_.fncvals = _Y; //#19849 + $k[$j++] = 'msg'; //#19850 + $k[$j++] = $_.barcode; //#19850 + $k[$j++] = $_.fncvals; //#19850 + bwipp_parseinput(); //#19850 + var _b = $k[--$j]; //#19850 + $_[$k[--$j]] = _b; //#19850 + $_.msglen = $_.msg.length; //#19851 + $_.fnc1first = false; //#19854 + if ($_.msglen > 0) { //#19861 + if ($get($_.msg, 0) == $_.fn1) { //#19860 + $_.fnc1first = true; //#19857 + $k[$j++] = Infinity; //#19858 + var _k = $geti($_.msg, 1, $_.msglen - 1); //#19858 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19858 + var _n = $get(_k, _l); //#19858 + $k[$j++] = _n; //#19858 + if (_n == 37) { //#19858 + var _o = $k[--$j]; //#19858 + $k[$j++] = _o; //#19858 + $k[$j++] = _o; //#19858 + } //#19858 + } //#19858 + $_.msg = $a(); //#19858 + $_.msglen = $_.msg.length; //#19859 + } //#19859 + } //#19859 + if (!bwipp_qrcode.__19982__) { //#19982 + $_ = Object.create($_); //#19982 + var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19874 + $k[$j++] = 0; //#19875 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19875 + var _v = $k[--$j]; //#19875 + $_[$get(_r, _s)] = _v; //#19875 + $k[$j++] = $f(_v + 1); //#19875 + } //#19875 + $j--; //#19875 + $_.N = 0; //#19881 + $_.A = 1; //#19881 + $_.B = 2; //#19881 + $_.K = 3; //#19881 + $_.E = 4; //#19881 + $k[$j++] = Infinity; //#19883 + $k[$j++] = Infinity; //#19884 + for (var _w = 48; _w <= 57; _w += 1) { //#19885 + $k[$j++] = _w; //#19885 + } //#19885 + var _x = $a(); //#19885 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19886 + $k[$j++] = $get(_x, _y); //#19886 + $k[$j++] = -1; //#19886 + } //#19886 + $_.Nexcl = $d(); //#19887 + $k[$j++] = Infinity; //#19889 + $k[$j++] = Infinity; //#19890 + $k[$j++] = 32; //#19892 + $k[$j++] = 36; //#19892 + $k[$j++] = 37; //#19892 + $k[$j++] = 42; //#19892 + $k[$j++] = 43; //#19892 + $k[$j++] = 45; //#19892 + $k[$j++] = 46; //#19892 + $k[$j++] = 47; //#19892 + $k[$j++] = 58; //#19892 + for (var _12 = 65; _12 <= 90; _12 += 1) { //#19892 + $k[$j++] = _12; //#19892 + } //#19892 + $k[$j++] = $_.fn1; //#19893 + var _14 = $a(); //#19893 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19894 + $k[$j++] = $get(_14, _15); //#19894 + $k[$j++] = -1; //#19894 + } //#19894 + $_.Aexcl = $d(); //#19895 + $k[$j++] = Infinity; //#19899 + $k[$j++] = Infinity; //#19900 + for (var _19 = 129; _19 <= 159; _19 += 1) { //#19901 + $k[$j++] = _19; //#19901 + } //#19901 + for (var _1A = 224; _1A <= 235; _1A += 1) { //#19902 + $k[$j++] = _1A; //#19902 + } //#19902 + var _1B = $a(); //#19902 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19903 + $k[$j++] = $get(_1B, _1C); //#19903 + $k[$j++] = -1; //#19903 + } //#19903 + $_.Kexcl = $d(); //#19904 + $k[$j++] = Infinity; //#19906 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#19917 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19917 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19917 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19917 + for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19917 + $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19916 + } //#19916 + $_.mids = $a(); //#19916 + $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19960 + $k[$j++] = Infinity; //#19962 + for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19965 + $k[$j++] = 4; //#19964 + } //#19964 + $k[$j++] = 3; //#19972 + $k[$j++] = 5; //#19972 + $k[$j++] = 7; //#19972 + $k[$j++] = 9; //#19972 + for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19972 + $k[$j++] = 3; //#19971 + } //#19971 + $_.termlens = $a(); //#19971 + $_.padstrs = $a(["11101100", "00010001"]); //#19975 + $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19978 + $_.charvals = new Map; //#19979 + for (var _2B = 0; _2B <= 44; _2B += 1) { //#19980 + $put($_.charvals, $get($_.charmap, _2B), _2B); //#19980 + } //#19980 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19980 + bwipp_qrcode.__19982__ = 1; //#19980 + $_ = Object.getPrototypeOf($_); //#19980 + } //#19980 $_.tobin = function() { - var _2H = $s($k[--$j]); //#19704 - $k[$j++] = _2H; //#19704 - for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19704 - var _2K = $k[--$j]; //#19704 - $put(_2K, _2J, 48); //#19704 - $k[$j++] = _2K; //#19704 - } //#19704 - var _2L = $k[--$j]; //#19705 - var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19705 - $puti(_2L, _2L.length - _2O.length, _2O); //#19705 - $k[$j++] = _2L; //#19705 - }; //#19705 + var _2H = $s($k[--$j]); //#19986 + $k[$j++] = _2H; //#19986 + for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19986 + var _2K = $k[--$j]; //#19986 + $put(_2K, _2J, 48); //#19986 + $k[$j++] = _2K; //#19986 + } //#19986 + var _2L = $k[--$j]; //#19987 + var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19987 + $puti(_2L, _2L.length - _2O.length, _2O); //#19987 + $k[$j++] = _2L; //#19987 + }; //#19987 $_.encA = function() { - $_.in = $k[--$j]; //#19709 - if ($_.fnc1first) { //#19712 - $k[$j++] = Infinity; //#19711 - $forall($_.in, function() { //#19711 - var _2S = $k[--$j]; //#19711 - $k[$j++] = _2S; //#19711 - if (_2S == $_.fn1) { //#19711 - $j--; //#19711 - $k[$j++] = 37; //#19711 - } //#19711 - }); //#19711 - $_.in = $a(); //#19711 - } //#19711 - $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19713 - $_.k = 0; //#19714 - $_.m = 0; //#19714 - for (;;) { //#19725 - if ($_.k == $_.in.length) { //#19715 - break; //#19715 - } //#19715 - if ($_.k < ($_.in.length - 1)) { //#19721 - $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19717 - $k[$j++] = 11; //#19717 - $_.tobin(); //#19717 - $_.k = $_.k + 2; //#19718 - } else { //#19721 - $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#19720 - $k[$j++] = 6; //#19720 - $_.tobin(); //#19720 - $_.k = $_.k + 1; //#19721 - } //#19721 - var _2s = $k[--$j]; //#19723 - $puti($_.out, $_.m, _2s); //#19723 - $_.m = _2s.length + $_.m; //#19724 - } //#19724 - $k[$j++] = $geti($_.out, 0, $_.m); //#19726 - }; //#19726 + $_.in = $k[--$j]; //#19991 + if ($_.fnc1first) { //#19994 + $k[$j++] = Infinity; //#19993 + $forall($_.in, function() { //#19993 + var _2S = $k[--$j]; //#19993 + $k[$j++] = _2S; //#19993 + if (_2S == $_.fn1) { //#19993 + $j--; //#19993 + $k[$j++] = 37; //#19993 + } //#19993 + }); //#19993 + $_.in = $a(); //#19993 + } //#19993 + $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19995 + $_.k = 0; //#19996 + $_.m = 0; //#19996 + for (;;) { //#20007 + if ($_.k == $_.in.length) { //#19997 + break; //#19997 + } //#19997 + if ($_.k < ($_.in.length - 1)) { //#20003 + $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19999 + $k[$j++] = 11; //#19999 + $_.tobin(); //#19999 + $_.k = $_.k + 2; //#20000 + } else { //#20003 + $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#20002 + $k[$j++] = 6; //#20002 + $_.tobin(); //#20002 + $_.k = $_.k + 1; //#20003 + } //#20003 + var _2s = $k[--$j]; //#20005 + $puti($_.out, $_.m, _2s); //#20005 + $_.m = _2s.length + $_.m; //#20006 + } //#20006 + $k[$j++] = $geti($_.out, 0, $_.m); //#20008 + }; //#20008 $_.encN = function() { - $_.in = $k[--$j]; //#19730 - $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#19731 - $_.k = 0; //#19732 - $_.m = 0; //#19732 - for (;;) { //#19748 - if ($_.k == $_.in.length) { //#19733 - break; //#19733 - } //#19733 - if ($_.k < ($_.in.length - 2)) { //#19743 - var _38 = $geti($_.in, $_.k, 3); //#19735 - $k[$j++] = 0; //#19735 - for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#19735 - var _3C = $k[--$j]; //#19735 - $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#19735 - } //#19735 - $k[$j++] = 10; //#19735 - $_.tobin(); //#19735 - $_.k = $_.k + 3; //#19736 - } else { //#19743 - if ($_.k == ($_.in.length - 2)) { //#19743 - var _3I = $geti($_.in, $_.k, 2); //#19739 - $k[$j++] = 0; //#19739 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#19739 - var _3M = $k[--$j]; //#19739 - $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#19739 - } //#19739 - $k[$j++] = 7; //#19739 - $_.tobin(); //#19739 - $_.k = $_.k + 2; //#19740 - } else { //#19743 - var _3Q = $geti($_.in, $_.k, 1); //#19742 - $k[$j++] = 0; //#19742 - for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#19742 - var _3U = $k[--$j]; //#19742 - $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#19742 - } //#19742 - $k[$j++] = 4; //#19742 - $_.tobin(); //#19742 - $_.k = $_.k + 1; //#19743 - } //#19743 - } //#19743 - var _3W = $k[--$j]; //#19746 - $puti($_.out, $_.m, _3W); //#19746 - $_.m = _3W.length + $_.m; //#19747 - } //#19747 - $k[$j++] = $geti($_.out, 0, $_.m); //#19749 - }; //#19749 + $_.in = $k[--$j]; //#20012 + $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#20013 + $_.k = 0; //#20014 + $_.m = 0; //#20014 + for (;;) { //#20030 + if ($_.k == $_.in.length) { //#20015 + break; //#20015 + } //#20015 + if ($_.k < ($_.in.length - 2)) { //#20025 + var _38 = $geti($_.in, $_.k, 3); //#20017 + $k[$j++] = 0; //#20017 + for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#20017 + var _3C = $k[--$j]; //#20017 + $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#20017 + } //#20017 + $k[$j++] = 10; //#20017 + $_.tobin(); //#20017 + $_.k = $_.k + 3; //#20018 + } else { //#20025 + if ($_.k == ($_.in.length - 2)) { //#20025 + var _3I = $geti($_.in, $_.k, 2); //#20021 + $k[$j++] = 0; //#20021 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#20021 + var _3M = $k[--$j]; //#20021 + $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#20021 + } //#20021 + $k[$j++] = 7; //#20021 + $_.tobin(); //#20021 + $_.k = $_.k + 2; //#20022 + } else { //#20025 + var _3Q = $geti($_.in, $_.k, 1); //#20024 + $k[$j++] = 0; //#20024 + for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#20024 + var _3U = $k[--$j]; //#20024 + $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#20024 + } //#20024 + $k[$j++] = 4; //#20024 + $_.tobin(); //#20024 + $_.k = $_.k + 1; //#20025 + } //#20025 + } //#20025 + var _3W = $k[--$j]; //#20028 + $puti($_.out, $_.m, _3W); //#20028 + $_.m = _3W.length + $_.m; //#20029 + } //#20029 + $k[$j++] = $geti($_.out, 0, $_.m); //#20031 + }; //#20031 $_.encB = function() { - $_.in = $k[--$j]; //#19753 - if ($_.fnc1first) { //#19756 - $k[$j++] = Infinity; //#19755 - $forall($_.in, function() { //#19755 - var _3g = $k[--$j]; //#19755 - $k[$j++] = _3g; //#19755 - if (_3g == $_.fn1) { //#19755 - $j--; //#19755 - $k[$j++] = 29; //#19755 - } //#19755 - }); //#19755 - $_.in = $a(); //#19755 - } //#19755 - $_.out = $s($_.in.length * 8); //#19757 - for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#19762 - $_.k = _3n; //#19759 - $k[$j++] = $cvi($get($_.in, $_.k)); //#19760 - $k[$j++] = 8; //#19760 - $_.tobin(); //#19760 - $puti($_.out, $_.k * 8, $k[--$j]); //#19761 - } //#19761 - $k[$j++] = $_.out; //#19763 - }; //#19763 + $_.in = $k[--$j]; //#20035 + if ($_.fnc1first) { //#20038 + $k[$j++] = Infinity; //#20037 + $forall($_.in, function() { //#20037 + var _3g = $k[--$j]; //#20037 + $k[$j++] = _3g; //#20037 + if (_3g == $_.fn1) { //#20037 + $j--; //#20037 + $k[$j++] = 29; //#20037 + } //#20037 + }); //#20037 + $_.in = $a(); //#20037 + } //#20037 + $_.out = $s($_.in.length * 8); //#20039 + for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#20044 + $_.k = _3n; //#20041 + $k[$j++] = $cvi($get($_.in, $_.k)); //#20042 + $k[$j++] = 8; //#20042 + $_.tobin(); //#20042 + $puti($_.out, $_.k * 8, $k[--$j]); //#20043 + } //#20043 + $k[$j++] = $_.out; //#20045 + }; //#20045 $_.encK = function() { - $_.in = $k[--$j]; //#19767 - $_.out = $s((~~($_.in.length / 2)) * 13); //#19768 - $_.k = 0; //#19769 - $_.m = 0; //#19769 - for (;;) { //#19777 - if ($_.k == $_.in.length) { //#19770 - break; //#19770 - } //#19770 - var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#19772 - $k[$j++] = _46; //#19772 - if (_46 < 57408) { //#19772 - $k[$j++] = 33088; //#19772 - } else { //#19772 - $k[$j++] = 49472; //#19772 - } //#19772 - var _47 = $k[--$j]; //#19772 - var _49 = $f($k[--$j] - _47); //#19773 - $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#19774 - $k[$j++] = 13; //#19774 - $_.tobin(); //#19774 - var _4A = $k[--$j]; //#19774 - $puti($_.out, $_.m, _4A); //#19774 - $_.m = _4A.length + $_.m; //#19775 - $_.k = $_.k + 2; //#19776 - } //#19776 - $k[$j++] = $_.out; //#19778 - }; //#19778 + $_.in = $k[--$j]; //#20049 + $_.out = $s((~~($_.in.length / 2)) * 13); //#20050 + $_.k = 0; //#20051 + $_.m = 0; //#20051 + for (;;) { //#20059 + if ($_.k == $_.in.length) { //#20052 + break; //#20052 + } //#20052 + var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#20054 + $k[$j++] = _46; //#20054 + if (_46 < 57408) { //#20054 + $k[$j++] = 33088; //#20054 + } else { //#20054 + $k[$j++] = 49472; //#20054 + } //#20054 + var _47 = $k[--$j]; //#20054 + var _49 = $f($k[--$j] - _47); //#20055 + $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#20056 + $k[$j++] = 13; //#20056 + $_.tobin(); //#20056 + var _4A = $k[--$j]; //#20056 + $puti($_.out, $_.m, _4A); //#20056 + $_.m = _4A.length + $_.m; //#20057 + $_.k = $_.k + 2; //#20058 + } //#20058 + $k[$j++] = $_.out; //#20060 + }; //#20060 $_.encE = function() { - var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#19783 - $k[$j++] = _4I; //#19789 - if (_4I <= 127) { //#19788 - $k[$j++] = 8; //#19784 - $_.tobin(); //#19784 - } else { //#19788 - var _4J = $k[--$j]; //#19785 - $k[$j++] = _4J; //#19789 - if (_4J <= 16383) { //#19788 - var _4K = $k[--$j]; //#19786 - $k[$j++] = $f(_4K + 32768); //#19786 - $k[$j++] = 16; //#19786 - $_.tobin(); //#19786 - } else { //#19788 - var _4L = $k[--$j]; //#19788 - $k[$j++] = $f(_4L + 12582912); //#19788 - $k[$j++] = 24; //#19788 - $_.tobin(); //#19788 - } //#19788 - } //#19788 - }; //#19788 - $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#19792 + var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#20065 + $k[$j++] = _4I; //#20071 + if (_4I <= 127) { //#20070 + $k[$j++] = 8; //#20066 + $_.tobin(); //#20066 + } else { //#20070 + var _4J = $k[--$j]; //#20067 + $k[$j++] = _4J; //#20071 + if (_4J <= 16383) { //#20070 + var _4K = $k[--$j]; //#20068 + $k[$j++] = $f(_4K + 32768); //#20068 + $k[$j++] = 16; //#20068 + $_.tobin(); //#20068 + } else { //#20070 + var _4L = $k[--$j]; //#20070 + $k[$j++] = $f(_4L + 12582912); //#20070 + $k[$j++] = 24; //#20070 + $_.tobin(); //#20070 + } //#20070 + } //#20070 + }; //#20070 + $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#20074 $_.addtobits = function() { - var _4N = $k[--$j]; //#19795 - $puti($_.bits, $_.j, _4N); //#19795 - $_.j = _4N.length + $_.j; //#19796 - }; //#19796 - $k[$j++] = Infinity; //#19799 - for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#19799 - $k[$j++] = 0; //#19799 - } //#19799 - $k[$j++] = 0; //#19799 - $_.numNs = $a(); //#19799 - $k[$j++] = Infinity; //#19800 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#19800 - $k[$j++] = 0; //#19800 - } //#19800 - $k[$j++] = 0; //#19800 - $_.numAs = $a(); //#19800 - $k[$j++] = Infinity; //#19801 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#19801 - $k[$j++] = 0; //#19801 - } //#19801 - $k[$j++] = 0; //#19801 - $_.numAorNs = $a(); //#19801 - $k[$j++] = Infinity; //#19802 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#19802 - $k[$j++] = 0; //#19802 - } //#19802 - $k[$j++] = 0; //#19802 - $_.numBs = $a(); //#19802 - $k[$j++] = Infinity; //#19803 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#19803 - $k[$j++] = 0; //#19803 - } //#19803 - $k[$j++] = 0; //#19803 - $_.numKs = $a(); //#19803 - $k[$j++] = Infinity; //#19804 - for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#19804 - $k[$j++] = 0; //#19804 - } //#19804 - $k[$j++] = 9999; //#19804 - $_.nextNs = $a(); //#19804 - $k[$j++] = Infinity; //#19805 - for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#19805 - $k[$j++] = 0; //#19805 - } //#19805 - $k[$j++] = 9999; //#19805 - $_.nextBs = $a(); //#19805 - $k[$j++] = Infinity; //#19806 - for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#19806 - $k[$j++] = 0; //#19806 - } //#19806 - $k[$j++] = 9999; //#19806 - $_.nextAs = $a(); //#19806 - $k[$j++] = Infinity; //#19807 - for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#19807 - $k[$j++] = 0; //#19807 - } //#19807 - $k[$j++] = 9999; //#19807 - $_.nextKs = $a(); //#19807 - $_.isECI = $a($_.msglen); //#19808 - for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#19838 - $_.i = _54; //#19810 - $_.barchar = $get($_.msg, $_.i); //#19811 - var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#19812 - if (_5A) { //#19821 - $k[$j++] = 'sjis'; //#19813 - if (($_.i + 1) < $_.msglen) { //#19813 - $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#19813 - } else { //#19813 - $k[$j++] = 0; //#19813 - } //#19813 - var _5H = $k[--$j]; //#19813 - $_[$k[--$j]] = _5H; //#19813 - if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#19818 - $put($_.nextKs, $_.i, 0); //#19815 - $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#19816 - } else { //#19818 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19818 - } //#19818 - } else { //#19821 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19821 - } //#19821 - var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#19823 - if (_5g) { //#19828 - $put($_.nextNs, $_.i, 0); //#19824 - $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#19825 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19826 - } else { //#19828 - $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#19828 - } //#19828 - var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#19830 - if (_60) { //#19835 - $put($_.nextAs, $_.i, 0); //#19831 - $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#19832 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19833 - } else { //#19835 - $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#19835 - } //#19835 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#19837 - } //#19837 - for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#19845 - $_.i = _6N; //#19840 - if ($get($_.numKs, $_.i) > 0) { //#19844 - $put($_.numKs, $_.i + 1, 0); //#19842 - $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#19843 - } //#19843 - } //#19843 - for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#19854 - $_.i = _6Z; //#19847 - if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#19852 - $put($_.nextBs, $_.i, 0); //#19849 - $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#19850 - } else { //#19852 - $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#19852 - } //#19852 - } //#19852 + var _4N = $k[--$j]; //#20077 + $puti($_.bits, $_.j, _4N); //#20077 + $_.j = _4N.length + $_.j; //#20078 + }; //#20078 + $k[$j++] = Infinity; //#20081 + for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#20081 + $k[$j++] = 0; //#20081 + } //#20081 + $k[$j++] = 0; //#20081 + $_.numNs = $a(); //#20081 + $k[$j++] = Infinity; //#20082 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#20082 + $k[$j++] = 0; //#20082 + } //#20082 + $k[$j++] = 0; //#20082 + $_.numAs = $a(); //#20082 + $k[$j++] = Infinity; //#20083 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#20083 + $k[$j++] = 0; //#20083 + } //#20083 + $k[$j++] = 0; //#20083 + $_.numAorNs = $a(); //#20083 + $k[$j++] = Infinity; //#20084 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#20084 + $k[$j++] = 0; //#20084 + } //#20084 + $k[$j++] = 0; //#20084 + $_.numBs = $a(); //#20084 + $k[$j++] = Infinity; //#20085 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#20085 + $k[$j++] = 0; //#20085 + } //#20085 + $k[$j++] = 0; //#20085 + $_.numKs = $a(); //#20085 + $k[$j++] = Infinity; //#20086 + for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#20086 + $k[$j++] = 0; //#20086 + } //#20086 + $k[$j++] = 9999; //#20086 + $_.nextNs = $a(); //#20086 + $k[$j++] = Infinity; //#20087 + for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#20087 + $k[$j++] = 0; //#20087 + } //#20087 + $k[$j++] = 9999; //#20087 + $_.nextBs = $a(); //#20087 + $k[$j++] = Infinity; //#20088 + for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#20088 + $k[$j++] = 0; //#20088 + } //#20088 + $k[$j++] = 9999; //#20088 + $_.nextAs = $a(); //#20088 + $k[$j++] = Infinity; //#20089 + for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#20089 + $k[$j++] = 0; //#20089 + } //#20089 + $k[$j++] = 9999; //#20089 + $_.nextKs = $a(); //#20089 + $_.isECI = $a($_.msglen); //#20090 + for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#20120 + $_.i = _54; //#20092 + $_.barchar = $get($_.msg, $_.i); //#20093 + var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#20094 + if (_5A) { //#20103 + $k[$j++] = 'sjis'; //#20095 + if (($_.i + 1) < $_.msglen) { //#20095 + $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#20095 + } else { //#20095 + $k[$j++] = 0; //#20095 + } //#20095 + var _5H = $k[--$j]; //#20095 + $_[$k[--$j]] = _5H; //#20095 + if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#20100 + $put($_.nextKs, $_.i, 0); //#20097 + $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#20098 + } else { //#20100 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20100 + } //#20100 + } else { //#20103 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20103 + } //#20103 + var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#20105 + if (_5g) { //#20110 + $put($_.nextNs, $_.i, 0); //#20106 + $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#20107 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20108 + } else { //#20110 + $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#20110 + } //#20110 + var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#20112 + if (_60) { //#20117 + $put($_.nextAs, $_.i, 0); //#20113 + $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#20114 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20115 + } else { //#20117 + $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#20117 + } //#20117 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#20119 + } //#20119 + for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#20127 + $_.i = _6N; //#20122 + if ($get($_.numKs, $_.i) > 0) { //#20126 + $put($_.numKs, $_.i + 1, 0); //#20124 + $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#20125 + } //#20125 + } //#20125 + for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#20136 + $_.i = _6Z; //#20129 + if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#20134 + $put($_.nextBs, $_.i, 0); //#20131 + $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#20132 + } else { //#20134 + $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#20134 + } //#20134 + } //#20134 $_.KbeforeB = function() { - var _71 = $get($k[--$j], $_.ver); //#19856 - $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#19856 - }; //#19856 + var _71 = $get($k[--$j], $_.ver); //#20138 + $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#20138 + }; //#20138 $_.KbeforeA = function() { - var _79 = $get($k[--$j], $_.ver); //#19857 - $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#19857 - }; //#19857 + var _79 = $get($k[--$j], $_.ver); //#20139 + $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#20139 + }; //#20139 $_.KbeforeN = function() { - var _7H = $get($k[--$j], $_.ver); //#19858 - $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#19858 - }; //#19858 + var _7H = $get($k[--$j], $_.ver); //#20140 + $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#20140 + }; //#20140 $_.KbeforeE = function() { - var _7P = $get($k[--$j], $_.ver); //#19859 - $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#19859 - }; //#19859 + var _7P = $get($k[--$j], $_.ver); //#20141 + $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#20141 + }; //#20141 $_.AbeforeK = function() { - var _7W = $get($k[--$j], $_.ver); //#19860 - $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#19860 - }; //#19860 + var _7W = $get($k[--$j], $_.ver); //#20142 + $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#20142 + }; //#20142 $_.AbeforeB = function() { - var _7e = $get($k[--$j], $_.ver); //#19861 - $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#19861 - }; //#19861 + var _7e = $get($k[--$j], $_.ver); //#20143 + $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#20143 + }; //#20143 $_.AbeforeN = function() { - var _7m = $get($k[--$j], $_.ver); //#19862 - $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#19862 - }; //#19862 + var _7m = $get($k[--$j], $_.ver); //#20144 + $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#20144 + }; //#20144 $_.AbeforeE = function() { - var _7u = $get($k[--$j], $_.ver); //#19863 - $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#19863 - }; //#19863 + var _7u = $get($k[--$j], $_.ver); //#20145 + $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#20145 + }; //#20145 $_.NbeforeK = function() { - var _81 = $get($k[--$j], $_.ver); //#19864 - $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#19864 - }; //#19864 + var _81 = $get($k[--$j], $_.ver); //#20146 + $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#20146 + }; //#20146 $_.NbeforeB = function() { - var _89 = $get($k[--$j], $_.ver); //#19865 - $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#19865 - }; //#19865 + var _89 = $get($k[--$j], $_.ver); //#20147 + $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#20147 + }; //#20147 $_.NbeforeA = function() { - var _8H = $get($k[--$j], $_.ver); //#19866 - $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#19866 - }; //#19866 + var _8H = $get($k[--$j], $_.ver); //#20148 + $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#20148 + }; //#20148 $_.NbeforeE = function() { - var _8P = $get($k[--$j], $_.ver); //#19867 - $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#19867 - }; //#19867 + var _8P = $get($k[--$j], $_.ver); //#20149 + $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#20149 + }; //#20149 $_.AorNbeforeB = function() { - var _8W = $get($k[--$j], $_.ver); //#19868 - $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#19868 - }; //#19868 + var _8W = $get($k[--$j], $_.ver); //#20150 + $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#20150 + }; //#20150 $_.AorNbeforeE = function() { - var _8e = $get($k[--$j], $_.ver); //#19869 - $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#19869 - }; //#19869 + var _8e = $get($k[--$j], $_.ver); //#20151 + $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#20151 + }; //#20151 $_.nextNslt = function() { - if ($get($_.nextNs, $_.i) >= $_.msglen) { //#19871 - $j--; //#19871 - $k[$j++] = true; //#19871 - } else { //#19871 - var _8u = $get($k[--$j], $_.ver); //#19871 - $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#19871 - } //#19871 - }; //#19871 - if (!bwipp_qrcode.__19901__) { //#19901 - $_ = Object.create($_); //#19901 - $k[$j++] = Infinity; //#19896 - $k[$j++] = "full"; //#19885 - $k[$j++] = Infinity; //#19885 - for (var _8v = 0; _8v <= 9; _8v += 1) { //#19883 - $k[$j++] = $cvrs($s(2), _8v, 10); //#19883 - $k[$j++] = $_.v1to9; //#19883 - } //#19883 - for (var _8z = 10; _8z <= 26; _8z += 1) { //#19884 - $k[$j++] = $cvrs($s(2), _8z, 10); //#19884 - $k[$j++] = $_.v10to26; //#19884 - } //#19884 - for (var _93 = 27; _93 <= 40; _93 += 1) { //#19885 - $k[$j++] = $cvrs($s(2), _93, 10); //#19885 - $k[$j++] = $_.v27to40; //#19885 - } //#19885 - var _97 = $d(); //#19885 + if ($get($_.nextNs, $_.i) >= $_.msglen) { //#20153 + $j--; //#20153 + $k[$j++] = true; //#20153 + } else { //#20153 + var _8u = $get($k[--$j], $_.ver); //#20153 + $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#20153 + } //#20153 + }; //#20153 + if (!bwipp_qrcode.__20183__) { //#20183 + $_ = Object.create($_); //#20183 + $k[$j++] = Infinity; //#20163 + $k[$j++] = "full"; //#20167 + $k[$j++] = Infinity; //#20164 + for (var _8v = 0; _8v <= 9; _8v += 1) { //#20165 + $k[$j++] = $cvrs($s(2), _8v, 10); //#20165 + $k[$j++] = $_.v1to9; //#20165 + } //#20165 + for (var _8z = 10; _8z <= 26; _8z += 1) { //#20166 + $k[$j++] = $cvrs($s(2), _8z, 10); //#20166 + $k[$j++] = $_.v10to26; //#20166 + } //#20166 + for (var _93 = 27; _93 <= 40; _93 += 1) { //#20167 + $k[$j++] = $cvrs($s(2), _93, 10); //#20167 + $k[$j++] = $_.v27to40; //#20167 + } //#20167 + var _97 = $d(); //#20167 var _9C = new Map([ ["M1", $_.vM1], ["M2", $_.vM2], ["M3", $_.vM3], ["M4", $_.vM4] - ]); //#19888 + ]); //#20170 var _9j = new Map([ ["R7x43", $_.vR7x43], ["R7x59", $_.vR7x59], @@ -24232,3690 +24639,3726 @@ function bwipp_qrcode() { ["R17x77", $_.vR17x77], ["R17x99", $_.vR17x99], ["R17x139", $_.vR17x139] - ]); //#19896 - $k[$j++] = _97; //#19896 - $k[$j++] = "micro"; //#19896 - $k[$j++] = _9C; //#19896 - $k[$j++] = "rmqr"; //#19896 - $k[$j++] = _9j; //#19896 - $_.versetmap = $d(); //#19898 - $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#19899 - $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#19900 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19900 - bwipp_qrcode.__19901__ = 1; //#19900 - $_ = Object.getPrototypeOf($_); //#19900 - } //#19900 - if ($ne($_.version, "unset")) { //#19919 - var _9y = $get($_.versetmap, $_.format); //#19904 - var _9z = $_.version; //#19904 - var _A0 = $get(_9y, _9z) !== undefined; //#19904 - $k[$j++] = _9y; //#19914 - $k[$j++] = _9z; //#19914 - if (!_A0) { //#19914 - $j -= 2; //#19905 - if ($eq($_.format, "full")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#19907'; //#19907 - $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#19907 - bwipp_raiseerror(); //#19907 - } else { //#19912 - if ($eq($_.format, "micro")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#19910'; //#19910 - $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#19910 - bwipp_raiseerror(); //#19910 - } else { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#19912'; //#19912 - $k[$j++] = "Invalid version for an RMQR symbol"; //#19912 - bwipp_raiseerror(); //#19912 - } //#19912 - } //#19912 - } //#19912 - var _A3 = $k[--$j]; //#19915 - var _A5 = $get($k[--$j], _A3); //#19915 - $k[$j++] = _A5; //#19915 - $k[$j++] = Infinity; //#19915 - var _A6 = $k[--$j]; //#19915 - var _A7 = $k[--$j]; //#19915 - $k[$j++] = _A6; //#19915 - $k[$j++] = _A7; //#19915 - $_.verset = $a(); //#19915 - } else { //#19919 - if ($eq($_.format, "full")) { //#19918 - $_.verset = $_.versetfull; //#19918 - } //#19918 - if ($eq($_.format, "micro")) { //#19919 - $_.verset = $_.versetmicro; //#19919 - } //#19919 - } //#19919 - $k[$j++] = Infinity; //#19924 - for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#19924 - $k[$j++] = -1; //#19924 - } //#19924 - $_.msgbits = $a(); //#19924 - $_.e = 10000; //#19925 - if (!bwipp_qrcode.__19955__) { //#19955 - $_ = Object.create($_); //#19955 - $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19931 - $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19932 - $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19933 - $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19935 - $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#19937 - $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#19938 - $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#19939 - $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#19940 - $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#19942 - $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#19943 - $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#19944 - $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#19945 - $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#19947 - $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#19948 - $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#19949 - $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19950 - $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#19952 - $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#19953 - $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#19954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19954 - bwipp_qrcode.__19955__ = 1; //#19954 - $_ = Object.getPrototypeOf($_); //#19954 - } //#19954 - var _B7 = $_.verset; //#19957 - for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20089 - $_.ver = $get(_B7, _B8); //#19958 - $_.mode = -1; //#19961 - $_.seq = $a([]); //#19961 - $_.i = 0; //#19961 - for (;;) { //#20058 - if ($_.i >= $_.msglen) { //#19962 - break; //#19962 - } //#19962 - $_.numK = $get($_.numKs, $_.i); //#19963 - $_.numB = $get($_.numBs, $_.i); //#19964 - $_.numA = $get($_.numAs, $_.i); //#19965 - $_.numN = $get($_.numNs, $_.i); //#19966 - $_.numAorN = $get($_.numAorNs, $_.i); //#19967 - $_.eci = $get($_.isECI, $_.i); //#19968 - if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#19969 - $_.seq = -1; //#19969 - break; //#19969 - } //#19969 - if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#19970 - $_.seq = -1; //#19970 - break; //#19970 - } //#19970 - if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#19971 - $_.seq = -1; //#19971 - break; //#19971 - } //#19971 - if ($eq($_.ver, $_.vM1) && $_.eci) { //#19972 - $_.seq = -1; //#19972 - break; //#19972 - } //#19972 - if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#19973 - $_.seq = -1; //#19973 - break; //#19973 - } //#19973 - if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#19974 - $_.seq = -1; //#19974 - break; //#19974 - } //#19974 - if ($eq($_.ver, $_.vM2) && $_.eci) { //#19975 - $_.seq = -1; //#19975 - break; //#19975 - } //#19975 - if ($eq($_.ver, $_.vM3) && $_.eci) { //#19976 - $_.seq = -1; //#19976 - break; //#19976 - } //#19976 - if ($eq($_.ver, $_.vM4) && $_.eci) { //#19977 - $_.seq = -1; //#19977 - break; //#19977 - } //#19977 - for (;;) { //#20038 - if ($_.eci) { //#19981 - $k[$j++] = $_.E; //#19980 - break; //#19980 - } //#19980 - if ($_.mode == -1) { //#19996 - $k[$j++] = $_.mode0forceKB; //#19983 - $_.KbeforeA(); //#19983 - if ($k[--$j]) { //#19983 - $k[$j++] = $_.K; //#19983 - break; //#19983 - } //#19983 - $k[$j++] = $_.mode0forceKB; //#19984 - $_.KbeforeN(); //#19984 - if ($k[--$j]) { //#19984 - $k[$j++] = $_.K; //#19984 - break; //#19984 - } //#19984 - $k[$j++] = $_.modeBKbeforeE; //#19985 - $_.KbeforeB(); //#19985 - if ($k[--$j]) { //#19985 - $k[$j++] = $_.K; //#19985 - break; //#19985 - } //#19985 - $k[$j++] = $_.mode0forceKB; //#19986 - $_.KbeforeE(); //#19986 - if ($k[--$j]) { //#19986 - $k[$j++] = $_.K; //#19986 - break; //#19986 - } //#19986 - if ($_.numK >= 1) { //#19987 - $k[$j++] = $_.B; //#19987 - break; //#19987 - } //#19987 - $k[$j++] = $_.mode0NbeforeB; //#19988 - $_.NbeforeB(); //#19988 - if ($k[--$j]) { //#19988 - $k[$j++] = $_.N; //#19988 - break; //#19988 - } //#19988 - $k[$j++] = $_.mode0forceKB; //#19989 - $_.NbeforeB(); //#19989 - if ($k[--$j]) { //#19989 - $k[$j++] = $_.B; //#19989 - break; //#19989 - } //#19989 - $k[$j++] = $_.modeANbeforeE; //#19990 - $_.NbeforeA(); //#19990 - if ($k[--$j]) { //#19990 - $k[$j++] = $_.N; //#19990 - break; //#19990 - } //#19990 - $k[$j++] = $_.mode0forceN; //#19991 - $_.NbeforeE(); //#19991 - if ($k[--$j]) { //#19991 - $k[$j++] = $_.N; //#19991 - break; //#19991 - } //#19991 - $k[$j++] = $_.modeBAbeforeE; //#19992 - $_.AbeforeK(); //#19992 - if ($k[--$j]) { //#19992 - $k[$j++] = $_.A; //#19992 - break; //#19992 - } //#19992 - $k[$j++] = $_.modeBAbeforeE; //#19993 - $_.AorNbeforeB(); //#19993 - if ($k[--$j]) { //#19993 - $k[$j++] = $_.A; //#19993 - break; //#19993 - } //#19993 - $k[$j++] = $_.mode0forceA; //#19994 - $_.AorNbeforeE(); //#19994 - if ($k[--$j]) { //#19994 - $k[$j++] = $_.A; //#19994 - break; //#19994 - } //#19994 - $k[$j++] = $_.B; //#19995 - break; //#19995 - } //#19995 - if ($_.mode == $_.B) { //#20014 - $k[$j++] = $_.modeBKbeforeB; //#19998 - $_.KbeforeB(); //#19998 - if ($k[--$j]) { //#19998 - $k[$j++] = $_.K; //#19998 - break; //#19998 - } //#19998 - $k[$j++] = $_.modeBKbeforeA; //#19999 - $_.KbeforeA(); //#19999 - if ($k[--$j]) { //#19999 - $k[$j++] = $_.K; //#19999 - break; //#19999 - } //#19999 - $k[$j++] = $_.modeBKbeforeN; //#20000 - $_.KbeforeN(); //#20000 - if ($k[--$j]) { //#20000 - $k[$j++] = $_.K; //#20000 - break; //#20000 - } //#20000 - $k[$j++] = $_.modeBKbeforeE; //#20001 - $_.KbeforeE(); //#20001 - if ($k[--$j]) { //#20001 - $k[$j++] = $_.K; //#20001 - break; //#20001 - } //#20001 - $k[$j++] = $_.modeBAbeforeK; //#20002 - $_.AbeforeK(); //#20002 - if ($k[--$j]) { //#20002 - $k[$j++] = $_.A; //#20002 - break; //#20002 - } //#20002 - $k[$j++] = $_.modeBAbeforeB; //#20003 - $_.AbeforeB(); //#20003 - if ($k[--$j]) { //#20003 - $k[$j++] = $_.A; //#20003 - break; //#20003 - } //#20003 - $k[$j++] = $_.modeBAbeforeN; //#20004 - $_.AbeforeN(); //#20004 - if ($k[--$j]) { //#20004 - $k[$j++] = $_.A; //#20004 - break; //#20004 - } //#20004 - $k[$j++] = $_.modeBAbeforeE; //#20005 - $_.AbeforeE(); //#20005 - if ($k[--$j]) { //#20005 - $k[$j++] = $_.A; //#20005 - break; //#20005 - } //#20005 - $k[$j++] = $_.modeBNbeforeK; //#20006 - $_.NbeforeK(); //#20006 - if ($k[--$j]) { //#20006 - $k[$j++] = $_.N; //#20006 - break; //#20006 - } //#20006 - $k[$j++] = $_.modeBNbeforeB; //#20007 - $_.NbeforeB(); //#20007 - if ($k[--$j]) { //#20007 - $k[$j++] = $_.N; //#20007 - break; //#20007 - } //#20007 - $k[$j++] = $_.modeBNbeforeA; //#20008 - $_.NbeforeA(); //#20008 - if ($k[--$j]) { //#20008 - $k[$j++] = $_.N; //#20008 - break; //#20008 - } //#20008 - $k[$j++] = $_.modeBNbeforeE; //#20009 - $_.NbeforeE(); //#20009 - if ($k[--$j]) { //#20009 - $k[$j++] = $_.N; //#20009 - break; //#20009 - } //#20009 - $k[$j++] = $_.modeBAbeforeE; //#20010 - $_.AorNbeforeE(); //#20010 - var _DH = $k[--$j]; //#20010 - if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20012 - $k[$j++] = $_.modeBNbeforeA; //#20011 - $_.nextNslt(); //#20011 - if ($k[--$j]) { //#20011 - $k[$j++] = $_.A; //#20011 - break; //#20011 - } //#20011 - } //#20011 - $k[$j++] = $_.B; //#20013 - break; //#20013 - } //#20013 - if ($_.mode == $_.A) { //#20023 - if ($_.numK >= 1) { //#20016 - $k[$j++] = $_.K; //#20016 - break; //#20016 - } //#20016 - if ($_.numB >= 1) { //#20017 - $k[$j++] = $_.B; //#20017 - break; //#20017 - } //#20017 - $k[$j++] = $_.modeANbeforeA; //#20018 - $_.NbeforeA(); //#20018 - if ($k[--$j]) { //#20018 - $k[$j++] = $_.N; //#20018 - break; //#20018 - } //#20018 - $k[$j++] = $_.modeANbeforeB; //#20019 - $_.NbeforeB(); //#20019 - if ($k[--$j]) { //#20019 - $k[$j++] = $_.N; //#20019 - break; //#20019 - } //#20019 - $k[$j++] = $_.modeANbeforeE; //#20020 - $_.NbeforeE(); //#20020 - if ($k[--$j]) { //#20020 - $k[$j++] = $_.N; //#20020 - break; //#20020 - } //#20020 - if (($_.numA >= 1) || ($_.numN >= 1)) { //#20021 - $k[$j++] = $_.A; //#20021 - break; //#20021 - } //#20021 - $k[$j++] = $_.B; //#20022 - break; //#20022 - } //#20022 - if ($_.mode == $_.N) { //#20030 - if ($_.numK >= 1) { //#20025 - $k[$j++] = $_.K; //#20025 - break; //#20025 - } //#20025 - if ($_.numB >= 1) { //#20026 - $k[$j++] = $_.B; //#20026 - break; //#20026 - } //#20026 - if ($_.numA >= 1) { //#20027 - $k[$j++] = $_.A; //#20027 - break; //#20027 - } //#20027 - if ($_.numN >= 1) { //#20028 - $k[$j++] = $_.N; //#20028 - break; //#20028 - } //#20028 - $k[$j++] = $_.B; //#20029 - break; //#20029 - } //#20029 - if ($_.mode == $_.K) { //#20037 - if ($_.numB >= 1) { //#20032 - $k[$j++] = $_.B; //#20032 - break; //#20032 - } //#20032 - if ($_.numA >= 1) { //#20033 - $k[$j++] = $_.A; //#20033 - break; //#20033 - } //#20033 - if ($_.numN >= 1) { //#20034 - $k[$j++] = $_.N; //#20034 - break; //#20034 - } //#20034 - if ($_.numK >= 1) { //#20035 - $k[$j++] = $_.K; //#20035 - break; //#20035 - } //#20035 - $k[$j++] = $_.B; //#20036 - break; //#20036 - } //#20036 - } //#20036 - var _E1 = $k[--$j]; //#20039 - $k[$j++] = _E1; //#20039 - if ((_E1 == $_.K) && $_.fnc1first) { //#20039 - $j--; //#20039 - $k[$j++] = $_.B; //#20039 - } //#20039 - var _E5 = $k[--$j]; //#20040 - $k[$j++] = _E5; //#20056 - if (_E5 == $_.mode) { //#20055 - $j--; //#20041 - var _EB = ($_.mode == $_.K) ? 2 : 1; //#20042 - $_.dat = $geti($_.msg, $_.i, _EB); //#20042 - $k[$j++] = Infinity; //#20045 - $aload($_.seq); //#20044 - $k[$j++] = Infinity; //#20045 - var _EE = $k[--$j]; //#20045 - var _EF = $k[--$j]; //#20045 - $k[$j++] = _EE; //#20045 - $aload(_EF); //#20045 - $aload($_.dat); //#20045 - var _EH = $a(); //#20045 - $k[$j++] = _EH; //#20045 - $_.seq = $a(); //#20045 - } else { //#20055 - $_.mode = $k[--$j]; //#20048 - if ($_.mode == $_.K) { //#20049 - $k[$j++] = $_.K; //#20049 - $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20049 - } //#20049 - if ($_.mode == $_.B) { //#20050 - $k[$j++] = $_.B; //#20050 - $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20050 - } //#20050 - if ($_.mode == $_.A) { //#20051 - $k[$j++] = $_.A; //#20051 - $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20051 - } //#20051 - if ($_.mode == $_.N) { //#20052 - $k[$j++] = $_.N; //#20052 - $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20052 - } //#20052 - if ($_.mode == $_.E) { //#20053 - $_.mode = -1; //#20053 - $k[$j++] = $_.E; //#20053 - $k[$j++] = $geti($_.msg, $_.i, 1); //#20053 - } //#20053 - $_.dat = $k[--$j]; //#20054 - $_.sw = $k[--$j]; //#20054 - $k[$j++] = Infinity; //#20055 - $aload($_.seq); //#20055 - $k[$j++] = $_.sw; //#20055 - $k[$j++] = $_.dat; //#20055 - $_.seq = $a(); //#20055 - } //#20055 - $_.i = $_.i + $_.dat.length; //#20057 - } //#20057 - for (;;) { //#20088 - if ($_.seq == -1) { //#20062 - break; //#20062 - } //#20062 - $_.bits = $s(23648); //#20063 - $_.j = 0; //#20064 - if ($_.fnc1first) { //#20067 - if ($lt($_.ver, $_.vR7x43)) { //#20066 - $k[$j++] = "0101"; //#20066 - } else { //#20066 - $k[$j++] = "101"; //#20066 - } //#20066 - $_.addtobits(); //#20066 - } //#20066 - $_.abort = false; //#20068 - for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20083 - $_.i = _F7; //#20070 - $_.mode = $get($_.seq, $_.i); //#20071 - $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20072 - $_.addtobits(); //#20072 - $_.chars = $get($_.seq, $_.i + 1); //#20073 - $k[$j++] = 'charslen'; //#20074 - $k[$j++] = $_.chars.length; //#20074 - if ($_.mode == $_.K) { //#20074 - var _FM = $k[--$j]; //#20074 - $k[$j++] = ~~(_FM / 2); //#20074 - } //#20074 - var _FN = $k[--$j]; //#20074 - $_[$k[--$j]] = _FN; //#20074 - if ($_.mode != $_.E) { //#20081 - $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20076 - if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20079 - $_.abort = true; //#20078 - break; //#20078 - } //#20078 - $k[$j++] = $_.charslen; //#20080 - $k[$j++] = $_.cclen; //#20080 - $_.tobin(); //#20080 - $_.addtobits(); //#20080 - } //#20080 - $k[$j++] = $_.chars; //#20082 + ]); //#20178 + $k[$j++] = _97; //#20178 + $k[$j++] = "micro"; //#20178 + $k[$j++] = _9C; //#20178 + $k[$j++] = "rmqr"; //#20178 + $k[$j++] = _9j; //#20178 + $_.versetmap = $d(); //#20180 + $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#20181 + $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#20182 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20182 + bwipp_qrcode.__20183__ = 1; //#20182 + $_ = Object.getPrototypeOf($_); //#20182 + } //#20182 + if ($ne($_.version, "unset")) { //#20201 + var _9y = $get($_.versetmap, $_.format); //#20186 + var _9z = $_.version; //#20186 + var _A0 = $get(_9y, _9z) !== undefined; //#20186 + $k[$j++] = _9y; //#20196 + $k[$j++] = _9z; //#20196 + if (!_A0) { //#20196 + $j -= 2; //#20187 + if ($eq($_.format, "full")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#20189'; //#20189 + $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#20189 + bwipp_raiseerror(); //#20189 + } else { //#20194 + if ($eq($_.format, "micro")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#20192'; //#20192 + $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#20192 + bwipp_raiseerror(); //#20192 + } else { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#20194'; //#20194 + $k[$j++] = "Invalid version for an RMQR symbol"; //#20194 + bwipp_raiseerror(); //#20194 + } //#20194 + } //#20194 + } //#20194 + var _A3 = $k[--$j]; //#20197 + var _A5 = $get($k[--$j], _A3); //#20197 + $k[$j++] = _A5; //#20197 + $k[$j++] = Infinity; //#20197 + var _A6 = $k[--$j]; //#20197 + var _A7 = $k[--$j]; //#20197 + $k[$j++] = _A6; //#20197 + $k[$j++] = _A7; //#20197 + $_.verset = $a(); //#20197 + } else { //#20201 + if ($eq($_.format, "full")) { //#20200 + $_.verset = $_.versetfull; //#20200 + } //#20200 + if ($eq($_.format, "micro")) { //#20201 + $_.verset = $_.versetmicro; //#20201 + } //#20201 + } //#20201 + $k[$j++] = Infinity; //#20206 + for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#20206 + $k[$j++] = -1; //#20206 + } //#20206 + $_.msgbits = $a(); //#20206 + $_.e = 10000; //#20207 + if (!bwipp_qrcode.__20237__) { //#20237 + $_ = Object.create($_); //#20237 + $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20213 + $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20214 + $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20215 + $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20217 + $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#20219 + $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#20220 + $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#20221 + $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#20222 + $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#20224 + $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#20225 + $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#20226 + $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#20227 + $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#20229 + $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#20230 + $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#20231 + $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20232 + $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#20234 + $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#20235 + $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#20236 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20236 + bwipp_qrcode.__20237__ = 1; //#20236 + $_ = Object.getPrototypeOf($_); //#20236 + } //#20236 + var _B7 = $_.verset; //#20239 + for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20371 + $_.ver = $get(_B7, _B8); //#20240 + $_.mode = -1; //#20243 + $_.seq = $a([]); //#20243 + $_.i = 0; //#20243 + for (;;) { //#20340 + if ($_.i >= $_.msglen) { //#20244 + break; //#20244 + } //#20244 + $_.numK = $get($_.numKs, $_.i); //#20245 + $_.numB = $get($_.numBs, $_.i); //#20246 + $_.numA = $get($_.numAs, $_.i); //#20247 + $_.numN = $get($_.numNs, $_.i); //#20248 + $_.numAorN = $get($_.numAorNs, $_.i); //#20249 + $_.eci = $get($_.isECI, $_.i); //#20250 + if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#20251 + $_.seq = -1; //#20251 + break; //#20251 + } //#20251 + if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#20252 + $_.seq = -1; //#20252 + break; //#20252 + } //#20252 + if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#20253 + $_.seq = -1; //#20253 + break; //#20253 + } //#20253 + if ($eq($_.ver, $_.vM1) && $_.eci) { //#20254 + $_.seq = -1; //#20254 + break; //#20254 + } //#20254 + if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#20255 + $_.seq = -1; //#20255 + break; //#20255 + } //#20255 + if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#20256 + $_.seq = -1; //#20256 + break; //#20256 + } //#20256 + if ($eq($_.ver, $_.vM2) && $_.eci) { //#20257 + $_.seq = -1; //#20257 + break; //#20257 + } //#20257 + if ($eq($_.ver, $_.vM3) && $_.eci) { //#20258 + $_.seq = -1; //#20258 + break; //#20258 + } //#20258 + if ($eq($_.ver, $_.vM4) && $_.eci) { //#20259 + $_.seq = -1; //#20259 + break; //#20259 + } //#20259 + for (;;) { //#20320 + if ($_.eci) { //#20263 + $k[$j++] = $_.E; //#20262 + break; //#20262 + } //#20262 + if ($_.mode == -1) { //#20278 + $k[$j++] = $_.mode0forceKB; //#20265 + $_.KbeforeA(); //#20265 + if ($k[--$j]) { //#20265 + $k[$j++] = $_.K; //#20265 + break; //#20265 + } //#20265 + $k[$j++] = $_.mode0forceKB; //#20266 + $_.KbeforeN(); //#20266 + if ($k[--$j]) { //#20266 + $k[$j++] = $_.K; //#20266 + break; //#20266 + } //#20266 + $k[$j++] = $_.modeBKbeforeE; //#20267 + $_.KbeforeB(); //#20267 + if ($k[--$j]) { //#20267 + $k[$j++] = $_.K; //#20267 + break; //#20267 + } //#20267 + $k[$j++] = $_.mode0forceKB; //#20268 + $_.KbeforeE(); //#20268 + if ($k[--$j]) { //#20268 + $k[$j++] = $_.K; //#20268 + break; //#20268 + } //#20268 + if ($_.numK >= 1) { //#20269 + $k[$j++] = $_.B; //#20269 + break; //#20269 + } //#20269 + $k[$j++] = $_.mode0NbeforeB; //#20270 + $_.NbeforeB(); //#20270 + if ($k[--$j]) { //#20270 + $k[$j++] = $_.N; //#20270 + break; //#20270 + } //#20270 + $k[$j++] = $_.mode0forceKB; //#20271 + $_.NbeforeB(); //#20271 + if ($k[--$j]) { //#20271 + $k[$j++] = $_.B; //#20271 + break; //#20271 + } //#20271 + $k[$j++] = $_.modeANbeforeE; //#20272 + $_.NbeforeA(); //#20272 + if ($k[--$j]) { //#20272 + $k[$j++] = $_.N; //#20272 + break; //#20272 + } //#20272 + $k[$j++] = $_.mode0forceN; //#20273 + $_.NbeforeE(); //#20273 + if ($k[--$j]) { //#20273 + $k[$j++] = $_.N; //#20273 + break; //#20273 + } //#20273 + $k[$j++] = $_.modeBAbeforeE; //#20274 + $_.AbeforeK(); //#20274 + if ($k[--$j]) { //#20274 + $k[$j++] = $_.A; //#20274 + break; //#20274 + } //#20274 + $k[$j++] = $_.modeBAbeforeE; //#20275 + $_.AorNbeforeB(); //#20275 + if ($k[--$j]) { //#20275 + $k[$j++] = $_.A; //#20275 + break; //#20275 + } //#20275 + $k[$j++] = $_.mode0forceA; //#20276 + $_.AorNbeforeE(); //#20276 + if ($k[--$j]) { //#20276 + $k[$j++] = $_.A; //#20276 + break; //#20276 + } //#20276 + $k[$j++] = $_.B; //#20277 + break; //#20277 + } //#20277 + if ($_.mode == $_.B) { //#20296 + $k[$j++] = $_.modeBKbeforeB; //#20280 + $_.KbeforeB(); //#20280 + if ($k[--$j]) { //#20280 + $k[$j++] = $_.K; //#20280 + break; //#20280 + } //#20280 + $k[$j++] = $_.modeBKbeforeA; //#20281 + $_.KbeforeA(); //#20281 + if ($k[--$j]) { //#20281 + $k[$j++] = $_.K; //#20281 + break; //#20281 + } //#20281 + $k[$j++] = $_.modeBKbeforeN; //#20282 + $_.KbeforeN(); //#20282 + if ($k[--$j]) { //#20282 + $k[$j++] = $_.K; //#20282 + break; //#20282 + } //#20282 + $k[$j++] = $_.modeBKbeforeE; //#20283 + $_.KbeforeE(); //#20283 + if ($k[--$j]) { //#20283 + $k[$j++] = $_.K; //#20283 + break; //#20283 + } //#20283 + $k[$j++] = $_.modeBAbeforeK; //#20284 + $_.AbeforeK(); //#20284 + if ($k[--$j]) { //#20284 + $k[$j++] = $_.A; //#20284 + break; //#20284 + } //#20284 + $k[$j++] = $_.modeBAbeforeB; //#20285 + $_.AbeforeB(); //#20285 + if ($k[--$j]) { //#20285 + $k[$j++] = $_.A; //#20285 + break; //#20285 + } //#20285 + $k[$j++] = $_.modeBAbeforeN; //#20286 + $_.AbeforeN(); //#20286 + if ($k[--$j]) { //#20286 + $k[$j++] = $_.A; //#20286 + break; //#20286 + } //#20286 + $k[$j++] = $_.modeBAbeforeE; //#20287 + $_.AbeforeE(); //#20287 + if ($k[--$j]) { //#20287 + $k[$j++] = $_.A; //#20287 + break; //#20287 + } //#20287 + $k[$j++] = $_.modeBNbeforeK; //#20288 + $_.NbeforeK(); //#20288 + if ($k[--$j]) { //#20288 + $k[$j++] = $_.N; //#20288 + break; //#20288 + } //#20288 + $k[$j++] = $_.modeBNbeforeB; //#20289 + $_.NbeforeB(); //#20289 + if ($k[--$j]) { //#20289 + $k[$j++] = $_.N; //#20289 + break; //#20289 + } //#20289 + $k[$j++] = $_.modeBNbeforeA; //#20290 + $_.NbeforeA(); //#20290 + if ($k[--$j]) { //#20290 + $k[$j++] = $_.N; //#20290 + break; //#20290 + } //#20290 + $k[$j++] = $_.modeBNbeforeE; //#20291 + $_.NbeforeE(); //#20291 + if ($k[--$j]) { //#20291 + $k[$j++] = $_.N; //#20291 + break; //#20291 + } //#20291 + $k[$j++] = $_.modeBAbeforeE; //#20292 + $_.AorNbeforeE(); //#20292 + var _DH = $k[--$j]; //#20292 + if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20294 + $k[$j++] = $_.modeBNbeforeA; //#20293 + $_.nextNslt(); //#20293 + if ($k[--$j]) { //#20293 + $k[$j++] = $_.A; //#20293 + break; //#20293 + } //#20293 + } //#20293 + $k[$j++] = $_.B; //#20295 + break; //#20295 + } //#20295 + if ($_.mode == $_.A) { //#20305 + if ($_.numK >= 1) { //#20298 + $k[$j++] = $_.K; //#20298 + break; //#20298 + } //#20298 + if ($_.numB >= 1) { //#20299 + $k[$j++] = $_.B; //#20299 + break; //#20299 + } //#20299 + $k[$j++] = $_.modeANbeforeA; //#20300 + $_.NbeforeA(); //#20300 + if ($k[--$j]) { //#20300 + $k[$j++] = $_.N; //#20300 + break; //#20300 + } //#20300 + $k[$j++] = $_.modeANbeforeB; //#20301 + $_.NbeforeB(); //#20301 + if ($k[--$j]) { //#20301 + $k[$j++] = $_.N; //#20301 + break; //#20301 + } //#20301 + $k[$j++] = $_.modeANbeforeE; //#20302 + $_.NbeforeE(); //#20302 + if ($k[--$j]) { //#20302 + $k[$j++] = $_.N; //#20302 + break; //#20302 + } //#20302 + if (($_.numA >= 1) || ($_.numN >= 1)) { //#20303 + $k[$j++] = $_.A; //#20303 + break; //#20303 + } //#20303 + $k[$j++] = $_.B; //#20304 + break; //#20304 + } //#20304 + if ($_.mode == $_.N) { //#20312 + if ($_.numK >= 1) { //#20307 + $k[$j++] = $_.K; //#20307 + break; //#20307 + } //#20307 + if ($_.numB >= 1) { //#20308 + $k[$j++] = $_.B; //#20308 + break; //#20308 + } //#20308 + if ($_.numA >= 1) { //#20309 + $k[$j++] = $_.A; //#20309 + break; //#20309 + } //#20309 + if ($_.numN >= 1) { //#20310 + $k[$j++] = $_.N; //#20310 + break; //#20310 + } //#20310 + $k[$j++] = $_.B; //#20311 + break; //#20311 + } //#20311 + if ($_.mode == $_.K) { //#20319 + if ($_.numB >= 1) { //#20314 + $k[$j++] = $_.B; //#20314 + break; //#20314 + } //#20314 + if ($_.numA >= 1) { //#20315 + $k[$j++] = $_.A; //#20315 + break; //#20315 + } //#20315 + if ($_.numN >= 1) { //#20316 + $k[$j++] = $_.N; //#20316 + break; //#20316 + } //#20316 + if ($_.numK >= 1) { //#20317 + $k[$j++] = $_.K; //#20317 + break; //#20317 + } //#20317 + $k[$j++] = $_.B; //#20318 + break; //#20318 + } //#20318 + } //#20318 + var _E1 = $k[--$j]; //#20321 + $k[$j++] = _E1; //#20321 + if ((_E1 == $_.K) && $_.fnc1first) { //#20321 + $j--; //#20321 + $k[$j++] = $_.B; //#20321 + } //#20321 + var _E5 = $k[--$j]; //#20322 + $k[$j++] = _E5; //#20338 + if (_E5 == $_.mode) { //#20337 + $j--; //#20323 + var _EB = ($_.mode == $_.K) ? 2 : 1; //#20324 + $_.dat = $geti($_.msg, $_.i, _EB); //#20324 + $k[$j++] = Infinity; //#20325 + $aload($_.seq); //#20326 + $k[$j++] = Infinity; //#20327 + var _EE = $k[--$j]; //#20327 + var _EF = $k[--$j]; //#20327 + $k[$j++] = _EE; //#20327 + $aload(_EF); //#20327 + $aload($_.dat); //#20327 + var _EH = $a(); //#20327 + $k[$j++] = _EH; //#20327 + $_.seq = $a(); //#20327 + } else { //#20337 + $_.mode = $k[--$j]; //#20330 + if ($_.mode == $_.K) { //#20331 + $k[$j++] = $_.K; //#20331 + $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20331 + } //#20331 + if ($_.mode == $_.B) { //#20332 + $k[$j++] = $_.B; //#20332 + $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20332 + } //#20332 + if ($_.mode == $_.A) { //#20333 + $k[$j++] = $_.A; //#20333 + $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20333 + } //#20333 + if ($_.mode == $_.N) { //#20334 + $k[$j++] = $_.N; //#20334 + $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20334 + } //#20334 + if ($_.mode == $_.E) { //#20335 + $_.mode = -1; //#20335 + $k[$j++] = $_.E; //#20335 + $k[$j++] = $geti($_.msg, $_.i, 1); //#20335 + } //#20335 + $_.dat = $k[--$j]; //#20336 + $_.sw = $k[--$j]; //#20336 + $k[$j++] = Infinity; //#20337 + $aload($_.seq); //#20337 + $k[$j++] = $_.sw; //#20337 + $k[$j++] = $_.dat; //#20337 + $_.seq = $a(); //#20337 + } //#20337 + $_.i = $_.i + $_.dat.length; //#20339 + } //#20339 + for (;;) { //#20370 + if ($_.seq == -1) { //#20344 + break; //#20344 + } //#20344 + $_.bits = $s(23648); //#20345 + $_.j = 0; //#20346 + if ($_.fnc1first) { //#20349 + if ($lt($_.ver, $_.vR7x43)) { //#20348 + $k[$j++] = "0101"; //#20348 + } else { //#20348 + $k[$j++] = "101"; //#20348 + } //#20348 + $_.addtobits(); //#20348 + } //#20348 + $_.abort = false; //#20350 + for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20365 + $_.i = _F7; //#20352 + $_.mode = $get($_.seq, $_.i); //#20353 + $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20354 + $_.addtobits(); //#20354 + $_.chars = $get($_.seq, $_.i + 1); //#20355 + $k[$j++] = 'charslen'; //#20356 + $k[$j++] = $_.chars.length; //#20356 + if ($_.mode == $_.K) { //#20356 + var _FM = $k[--$j]; //#20356 + $k[$j++] = ~~(_FM / 2); //#20356 + } //#20356 + var _FN = $k[--$j]; //#20356 + $_[$k[--$j]] = _FN; //#20356 + if ($_.mode != $_.E) { //#20363 + $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20358 + if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20361 + $_.abort = true; //#20360 + break; //#20360 + } //#20360 + $k[$j++] = $_.charslen; //#20362 + $k[$j++] = $_.cclen; //#20362 + $_.tobin(); //#20362 + $_.addtobits(); //#20362 + } //#20362 + $k[$j++] = $_.chars; //#20364 if ($_[$get($_.encfuncs, $_.mode)]() === true) { break; - } //#20082 - $_.addtobits(); //#20082 - } //#20082 - if ($_.abort) { //#20084 - break; //#20084 - } //#20084 - $_.bits = $geti($_.bits, 0, $_.j); //#20085 - $put($_.msgbits, $_.ver, $_.bits); //#20086 - break; //#20087 - } //#20087 - } //#20087 - if (!bwipp_qrcode.__20173__) { //#20173 - $_ = Object.create($_); //#20173 - $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20172 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20172 - bwipp_qrcode.__20173__ = 1; //#20172 - $_ = Object.getPrototypeOf($_); //#20172 - } //#20172 - $k[$j++] = 'eclval'; //#20175 - $search("LMQH", $_.eclevel); //#20175 - $j--; //#20175 - var _Kj = $k[--$j]; //#20175 - var _Kk = $k[--$j]; //#20175 - $k[$j++] = _Kj.length; //#20175 - $k[$j++] = _Kk; //#20175 - $j--; //#20175 - var _Kl = $k[--$j]; //#20175 - var _Km = $k[--$j]; //#20175 - $k[$j++] = _Kl; //#20175 - $k[$j++] = _Km; //#20175 - $j--; //#20175 - var _Kn = $k[--$j]; //#20175 - $_[$k[--$j]] = _Kn; //#20175 - for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20214 - $_.i = _Kr; //#20177 - $_.m = $get($_.metrics, $_.i); //#20178 - $_.frmt = $get($_.m, 0); //#20179 - $_.vers = $get($_.m, 1); //#20180 - $_.vergrp = $get($_.m, 2); //#20181 - $_.verind = $_.i - 44; //#20182 - $_.rows = $get($_.m, 3); //#20183 - $_.cols = $get($_.m, 4); //#20184 - $_.asp2 = $get($_.m, 5); //#20185 - $_.asp3 = $get($_.m, 6); //#20186 - $_.nmod = $get($_.m, 7); //#20187 - $_.ncws = ~~($_.nmod / 8); //#20188 - $_.rbit = $_.nmod % 8; //#20189 - $_.lc4b = false; //#20190 - if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20195 - $_.ncws = $_.ncws + 1; //#20192 - $_.rbit = 0; //#20193 - $_.lc4b = true; //#20194 - } //#20194 - $_.ecws = $get($get($_.m, 8), $_.eclval); //#20196 - $_.dcws = $f($_.ncws - $_.ecws); //#20197 - var _LP = $_.lc4b ? 4 : 0; //#20198 - $_.dmod = $f(($_.dcws * 8) - _LP); //#20198 - $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20199 - $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20200 - $_.okay = true; //#20201 - if ($ne($_.format, $_.frmt)) { //#20202 - $_.okay = false; //#20202 - } //#20202 - if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20203 - $_.okay = false; //#20203 - } //#20203 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20204 - $_.okay = false; //#20204 - } //#20204 - if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20205 - $_.okay = false; //#20205 - } //#20205 - $_.verbits = $get($_.msgbits, $_.vergrp); //#20206 - if ($_.verbits == -1) { //#20210 - $_.okay = false; //#20208 - } else { //#20210 - if ($_.verbits.length > $_.dmod) { //#20210 - $_.okay = false; //#20210 - } //#20210 - } //#20210 - $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20212 - if ($_.okay) { //#20213 - break; //#20213 - } //#20213 - } //#20213 - if (!$_.okay) { //#20218 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20217'; //#20217 - $k[$j++] = "Maximum length exceeded or invalid content"; //#20217 - bwipp_raiseerror(); //#20217 - } //#20217 - $_.format = $_.frmt; //#20220 - $_.version = $_.vers; //#20221 - $_.msgbits = $_.verbits; //#20222 - $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20223 - $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20224 - var _M3 = $_.term; //#20227 - var _M4 = $_.dmod; //#20227 - var _M5 = $_.msgbits; //#20227 - var _M6 = $_.term; //#20227 - var _M7 = _M6.length; //#20227 - var _M8 = $f(_M4 - _M5.length); //#20227 - if ($f(_M4 - _M5.length) > _M6.length) { //#20227 - var _ = _M7; //#20227 - _M7 = _M8; //#20227 - _M8 = _; //#20227 - } //#20227 - $_.term = $geti(_M3, 0, _M8); //#20227 - var _MC = $s($_.msgbits.length + $_.term.length); //#20228 - $puti(_MC, 0, $_.msgbits); //#20229 - $puti(_MC, $_.msgbits.length, $_.term); //#20230 - $_.msgbits = _MC; //#20231 - $_.pad = $s($_.dmod); //#20234 - for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20235 - $put($_.pad, _MK, 48); //#20235 - } //#20235 - $puti($_.pad, 0, $_.msgbits); //#20236 - $_.padnum = 0; //#20237 - var _MR = $_.lc4b ? 5 : 1; //#20238 - for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20241 - $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20239 - $_.padnum = ($_.padnum + 1) % 2; //#20240 - } //#20240 - $_.cws = $a($_.dcws); //#20244 - for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20256 - $_.c = _Md; //#20246 - $_.bpcw = 8; //#20247 - if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20248 - $_.bpcw = 4; //#20248 - } //#20248 - $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20249 - $_.cw = 0; //#20250 - for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20254 - $_.i = _Mn; //#20252 - $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20253 - } //#20253 - $put($_.cws, $_.c, $_.cw); //#20255 - } //#20255 - if ($_.lc4b) { //#20259 - var _My = $_.cws; //#20259 - var _Mz = $_.cws; //#20259 - $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20259 - } //#20259 - var _N2 = $get($_.options, 'debugcws') !== undefined; //#20261 - if (_N2) { //#20261 - $k[$j++] = 'bwipp.debugcws#20261'; //#20261 - $k[$j++] = $_.cws; //#20261 - bwipp_raiseerror(); //#20261 - } //#20261 - if (!bwipp_qrcode.__20268__) { //#20268 - $_ = Object.create($_); //#20268 - $k[$j++] = Infinity; //#20265 - $k[$j++] = 1; //#20265 - for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20265 - var _N6 = $k[--$j]; //#20265 - var _N7 = _N6 * 2; //#20265 - $k[$j++] = _N6; //#20265 - $k[$j++] = _N7; //#20265 - if (_N7 >= 256) { //#20265 - var _N8 = $k[--$j]; //#20265 - $k[$j++] = _N8 ^ 285; //#20265 - } //#20265 - } //#20265 - $_.rsalog = $a(); //#20265 - $_.rslog = $a(256); //#20266 - for (var _NB = 1; _NB <= 255; _NB += 1) { //#20267 - $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20267 - } //#20267 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20267 - bwipp_qrcode.__20268__ = 1; //#20267 - $_ = Object.getPrototypeOf($_); //#20267 - } //#20267 + } //#20364 + $_.addtobits(); //#20364 + } //#20364 + if ($_.abort) { //#20366 + break; //#20366 + } //#20366 + $_.bits = $geti($_.bits, 0, $_.j); //#20367 + $put($_.msgbits, $_.ver, $_.bits); //#20368 + break; //#20369 + } //#20369 + } //#20369 + if (!bwipp_qrcode.__20455__) { //#20455 + $_ = Object.create($_); //#20455 + $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20454 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20454 + bwipp_qrcode.__20455__ = 1; //#20454 + $_ = Object.getPrototypeOf($_); //#20454 + } //#20454 + $k[$j++] = 'eclval'; //#20457 + $search("LMQH", $_.eclevel); //#20457 + $j--; //#20457 + var _Kj = $k[--$j]; //#20457 + var _Kk = $k[--$j]; //#20457 + $k[$j++] = _Kj.length; //#20457 + $k[$j++] = _Kk; //#20457 + $j--; //#20457 + var _Kl = $k[--$j]; //#20457 + var _Km = $k[--$j]; //#20457 + $k[$j++] = _Kl; //#20457 + $k[$j++] = _Km; //#20457 + $j--; //#20457 + var _Kn = $k[--$j]; //#20457 + $_[$k[--$j]] = _Kn; //#20457 + for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20496 + $_.i = _Kr; //#20459 + $_.m = $get($_.metrics, $_.i); //#20460 + $_.frmt = $get($_.m, 0); //#20461 + $_.vers = $get($_.m, 1); //#20462 + $_.vergrp = $get($_.m, 2); //#20463 + $_.verind = $_.i - 44; //#20464 + $_.rows = $get($_.m, 3); //#20465 + $_.cols = $get($_.m, 4); //#20466 + $_.asp2 = $get($_.m, 5); //#20467 + $_.asp3 = $get($_.m, 6); //#20468 + $_.nmod = $get($_.m, 7); //#20469 + $_.ncws = ~~($_.nmod / 8); //#20470 + $_.rbit = $_.nmod % 8; //#20471 + $_.lc4b = false; //#20472 + if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20477 + $_.ncws = $_.ncws + 1; //#20474 + $_.rbit = 0; //#20475 + $_.lc4b = true; //#20476 + } //#20476 + $_.ecws = $get($get($_.m, 8), $_.eclval); //#20478 + $_.dcws = $f($_.ncws - $_.ecws); //#20479 + var _LP = $_.lc4b ? 4 : 0; //#20480 + $_.dmod = $f(($_.dcws * 8) - _LP); //#20480 + $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20481 + $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20482 + $_.okay = true; //#20483 + if ($ne($_.format, $_.frmt)) { //#20484 + $_.okay = false; //#20484 + } //#20484 + if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20485 + $_.okay = false; //#20485 + } //#20485 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20486 + $_.okay = false; //#20486 + } //#20486 + if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20487 + $_.okay = false; //#20487 + } //#20487 + $_.verbits = $get($_.msgbits, $_.vergrp); //#20488 + if ($_.verbits == -1) { //#20492 + $_.okay = false; //#20490 + } else { //#20492 + if ($_.verbits.length > $_.dmod) { //#20492 + $_.okay = false; //#20492 + } //#20492 + } //#20492 + $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20494 + if ($_.okay) { //#20495 + break; //#20495 + } //#20495 + } //#20495 + if (!$_.okay) { //#20500 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20499'; //#20499 + $k[$j++] = "Maximum length exceeded or invalid content"; //#20499 + bwipp_raiseerror(); //#20499 + } //#20499 + $_.format = $_.frmt; //#20502 + $_.version = $_.vers; //#20503 + $_.msgbits = $_.verbits; //#20504 + $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20505 + $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20506 + var _M3 = $_.term; //#20509 + var _M4 = $_.dmod; //#20509 + var _M5 = $_.msgbits; //#20509 + var _M6 = $_.term; //#20509 + var _M7 = _M6.length; //#20509 + var _M8 = $f(_M4 - _M5.length); //#20509 + if ($f(_M4 - _M5.length) > _M6.length) { //#20509 + var _ = _M7; //#20509 + _M7 = _M8; //#20509 + _M8 = _; //#20509 + } //#20509 + $_.term = $geti(_M3, 0, _M8); //#20509 + var _MC = $s($_.msgbits.length + $_.term.length); //#20510 + $puti(_MC, 0, $_.msgbits); //#20511 + $puti(_MC, $_.msgbits.length, $_.term); //#20512 + $_.msgbits = _MC; //#20513 + $_.pad = $s($_.dmod); //#20516 + for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20517 + $put($_.pad, _MK, 48); //#20517 + } //#20517 + $puti($_.pad, 0, $_.msgbits); //#20518 + $_.padnum = 0; //#20519 + var _MR = $_.lc4b ? 5 : 1; //#20520 + for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20523 + $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20521 + $_.padnum = ($_.padnum + 1) % 2; //#20522 + } //#20522 + $_.cws = $a($_.dcws); //#20526 + for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20538 + $_.c = _Md; //#20528 + $_.bpcw = 8; //#20529 + if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20530 + $_.bpcw = 4; //#20530 + } //#20530 + $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20531 + $_.cw = 0; //#20532 + for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20536 + $_.i = _Mn; //#20534 + $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20535 + } //#20535 + $put($_.cws, $_.c, $_.cw); //#20537 + } //#20537 + if ($_.lc4b) { //#20541 + var _My = $_.cws; //#20541 + var _Mz = $_.cws; //#20541 + $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20541 + } //#20541 + var _N2 = $get($_.options, 'debugcws') !== undefined; //#20543 + if (_N2) { //#20543 + $k[$j++] = 'bwipp.debugcws#20543'; //#20543 + $k[$j++] = $_.cws; //#20543 + bwipp_raiseerror(); //#20543 + } //#20543 + if (!bwipp_qrcode.__20550__) { //#20550 + $_ = Object.create($_); //#20550 + $k[$j++] = Infinity; //#20547 + $k[$j++] = 1; //#20547 + for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20547 + var _N6 = $k[--$j]; //#20547 + var _N7 = _N6 * 2; //#20547 + $k[$j++] = _N6; //#20547 + $k[$j++] = _N7; //#20547 + if (_N7 >= 256) { //#20547 + var _N8 = $k[--$j]; //#20547 + $k[$j++] = _N8 ^ 285; //#20547 + } //#20547 + } //#20547 + $_.rsalog = $a(); //#20547 + $_.rslog = $a(256); //#20548 + for (var _NB = 1; _NB <= 255; _NB += 1) { //#20549 + $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20549 + } //#20549 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20549 + bwipp_qrcode.__20550__ = 1; //#20549 + $_ = Object.getPrototypeOf($_); //#20549 + } //#20549 $_.rsprod = function() { - var _NG = $k[--$j]; //#20272 - var _NH = $k[--$j]; //#20272 - $k[$j++] = _NH; //#20276 - $k[$j++] = _NG; //#20276 - if ((_NG != 0) && (_NH != 0)) { //#20275 - var _NK = $get($_.rslog, $k[--$j]); //#20273 - var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20273 - $k[$j++] = _NP; //#20273 - } else { //#20275 - $j -= 2; //#20275 - $k[$j++] = 0; //#20275 - } //#20275 - }; //#20275 - $k[$j++] = Infinity; //#20280 - $k[$j++] = 1; //#20280 - for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20280 - $k[$j++] = 0; //#20280 - } //#20280 - $_.coeffs = $a(); //#20280 - for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20289 - $_.i = _NW; //#20282 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20283 - for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20287 - $_.j = _Nd; //#20285 - $k[$j++] = $_.coeffs; //#20286 - $k[$j++] = $_.j; //#20286 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#20286 - $k[$j++] = $get($_.coeffs, $_.j); //#20286 - $k[$j++] = $get($_.rsalog, $_.i); //#20286 - $_.rsprod(); //#20286 - var _Np = $k[--$j]; //#20286 - var _Nq = $k[--$j]; //#20286 - var _Nr = $k[--$j]; //#20286 - $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20286 - } //#20286 - $k[$j++] = $_.coeffs; //#20288 - $k[$j++] = 0; //#20288 - $k[$j++] = $get($_.coeffs, 0); //#20288 - $k[$j++] = $get($_.rsalog, $_.i); //#20288 - $_.rsprod(); //#20288 - var _Nz = $k[--$j]; //#20288 - var _O0 = $k[--$j]; //#20288 - $put($k[--$j], _O0, _Nz); //#20288 - } //#20288 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20290 + var _NG = $k[--$j]; //#20554 + var _NH = $k[--$j]; //#20554 + $k[$j++] = _NH; //#20558 + $k[$j++] = _NG; //#20558 + if ((_NG != 0) && (_NH != 0)) { //#20557 + var _NK = $get($_.rslog, $k[--$j]); //#20555 + var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20555 + $k[$j++] = _NP; //#20555 + } else { //#20557 + $j -= 2; //#20557 + $k[$j++] = 0; //#20557 + } //#20557 + }; //#20557 + $k[$j++] = Infinity; //#20562 + $k[$j++] = 1; //#20562 + for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20562 + $k[$j++] = 0; //#20562 + } //#20562 + $_.coeffs = $a(); //#20562 + for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20571 + $_.i = _NW; //#20564 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20565 + for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20569 + $_.j = _Nd; //#20567 + $k[$j++] = $_.coeffs; //#20568 + $k[$j++] = $_.j; //#20568 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#20568 + $k[$j++] = $get($_.coeffs, $_.j); //#20568 + $k[$j++] = $get($_.rsalog, $_.i); //#20568 + $_.rsprod(); //#20568 + var _Np = $k[--$j]; //#20568 + var _Nq = $k[--$j]; //#20568 + var _Nr = $k[--$j]; //#20568 + $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20568 + } //#20568 + $k[$j++] = $_.coeffs; //#20570 + $k[$j++] = 0; //#20570 + $k[$j++] = $get($_.coeffs, 0); //#20570 + $k[$j++] = $get($_.rsalog, $_.i); //#20570 + $_.rsprod(); //#20570 + var _Nz = $k[--$j]; //#20570 + var _O0 = $k[--$j]; //#20570 + $put($k[--$j], _O0, _Nz); //#20570 + } //#20570 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20572 $_.rscodes = function() { - $_.rscws = $k[--$j]; //#20294 - $_.rsnd = $_.rscws.length; //#20295 - $k[$j++] = Infinity; //#20296 - $forall($_.rscws); //#20296 - for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20296 - $k[$j++] = 0; //#20296 - } //#20296 - $_.rscws = $a(); //#20296 - for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20304 - $_.m = _OE; //#20298 - $_.k = $get($_.rscws, $_.m); //#20299 - for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20303 - $_.j = _OK; //#20301 - $k[$j++] = $_.rscws; //#20302 - $k[$j++] = ($_.m + $_.j) + 1; //#20302 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20302 - $k[$j++] = $_.k; //#20302 - $_.rsprod(); //#20302 - var _OX = $k[--$j]; //#20302 - var _OY = $k[--$j]; //#20302 - $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20302 - } //#20302 - } //#20302 - $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20305 - }; //#20305 - $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20309 - $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20310 - for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20315 - $_.i = _Om; //#20312 - $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20313 - $k[$j++] = $_.ecwsb; //#20314 - $k[$j++] = $_.i; //#20314 - $k[$j++] = $get($_.dcwsb, $_.i); //#20314 - $_.rscodes(); //#20314 - var _Oz = $k[--$j]; //#20314 - var _P0 = $k[--$j]; //#20314 - $put($k[--$j], _P0, _Oz); //#20314 - } //#20314 - for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20320 - $_.i = _P4; //#20317 - $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20318 - $k[$j++] = $_.ecwsb; //#20319 - $k[$j++] = $f($_.ecb1 + $_.i); //#20319 - $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20319 - $_.rscodes(); //#20319 - var _PM = $k[--$j]; //#20319 - var _PN = $k[--$j]; //#20319 - $put($k[--$j], _PN, _PM); //#20319 - } //#20319 - $_.cws = $a($_.ncws); //#20323 - $_.cw = 0; //#20324 - for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20334 - $_.i = _PT; //#20326 - for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20333 - $_.j = _PX; //#20328 - if ($_.i < $get($_.dcwsb, $_.j).length) { //#20332 - $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20330 - $_.cw = $_.cw + 1; //#20331 - } //#20331 - } //#20331 - } //#20331 - for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20342 - $_.i = _Pm; //#20336 - for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20341 - $_.j = _Pq; //#20338 - $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20339 - $_.cw = $_.cw + 1; //#20340 - } //#20340 - } //#20340 - if ($_.rbit > 0) { //#20350 - $_.pad = $a($_.cws.length + 1); //#20346 - $puti($_.pad, 0, $_.cws); //#20347 - $put($_.pad, $_.pad.length - 1, 0); //#20348 - $_.cws = $_.pad; //#20349 - } //#20349 - if ($_.lc4b) { //#20361 - var _Q8 = $_.cws; //#20354 - var _Q9 = $_.dcws; //#20354 - $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20354 - for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20359 - $_.i = _QE; //#20356 - $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20357 - $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20358 - } //#20358 - $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20360 - } //#20360 - var _QY = $get($_.options, 'debugecc') !== undefined; //#20363 - if (_QY) { //#20363 - $k[$j++] = 'bwipp.debugecc#20363'; //#20363 - $k[$j++] = $_.cws; //#20363 - bwipp_raiseerror(); //#20363 - } //#20363 - $k[$j++] = Infinity; //#20366 - for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20366 - $k[$j++] = -1; //#20366 - } //#20366 - $_.pixs = $a(); //#20366 + $_.rscws = $k[--$j]; //#20576 + $_.rsnd = $_.rscws.length; //#20577 + $k[$j++] = Infinity; //#20578 + $forall($_.rscws); //#20578 + for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20578 + $k[$j++] = 0; //#20578 + } //#20578 + $_.rscws = $a(); //#20578 + for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20586 + $_.m = _OE; //#20580 + $_.k = $get($_.rscws, $_.m); //#20581 + for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20585 + $_.j = _OK; //#20583 + $k[$j++] = $_.rscws; //#20584 + $k[$j++] = ($_.m + $_.j) + 1; //#20584 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20584 + $k[$j++] = $_.k; //#20584 + $_.rsprod(); //#20584 + var _OX = $k[--$j]; //#20584 + var _OY = $k[--$j]; //#20584 + $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20584 + } //#20584 + } //#20584 + $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20587 + }; //#20587 + $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20591 + $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20592 + for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20597 + $_.i = _Om; //#20594 + $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20595 + $k[$j++] = $_.ecwsb; //#20596 + $k[$j++] = $_.i; //#20596 + $k[$j++] = $get($_.dcwsb, $_.i); //#20596 + $_.rscodes(); //#20596 + var _Oz = $k[--$j]; //#20596 + var _P0 = $k[--$j]; //#20596 + $put($k[--$j], _P0, _Oz); //#20596 + } //#20596 + for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20602 + $_.i = _P4; //#20599 + $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20600 + $k[$j++] = $_.ecwsb; //#20601 + $k[$j++] = $f($_.ecb1 + $_.i); //#20601 + $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20601 + $_.rscodes(); //#20601 + var _PM = $k[--$j]; //#20601 + var _PN = $k[--$j]; //#20601 + $put($k[--$j], _PN, _PM); //#20601 + } //#20601 + $_.cws = $a($_.ncws); //#20605 + $_.cw = 0; //#20606 + for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20616 + $_.i = _PT; //#20608 + for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20615 + $_.j = _PX; //#20610 + if ($_.i < $get($_.dcwsb, $_.j).length) { //#20614 + $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20612 + $_.cw = $_.cw + 1; //#20613 + } //#20613 + } //#20613 + } //#20613 + for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20624 + $_.i = _Pm; //#20618 + for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20623 + $_.j = _Pq; //#20620 + $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20621 + $_.cw = $_.cw + 1; //#20622 + } //#20622 + } //#20622 + if ($_.rbit > 0) { //#20632 + $_.pad = $a($_.cws.length + 1); //#20628 + $puti($_.pad, 0, $_.cws); //#20629 + $put($_.pad, $_.pad.length - 1, 0); //#20630 + $_.cws = $_.pad; //#20631 + } //#20631 + if ($_.lc4b) { //#20643 + var _Q8 = $_.cws; //#20636 + var _Q9 = $_.dcws; //#20636 + $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20636 + for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20641 + $_.i = _QE; //#20638 + $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20639 + $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20640 + } //#20640 + $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20642 + } //#20642 + var _QY = $get($_.options, 'debugecc') !== undefined; //#20645 + if (_QY) { //#20645 + $k[$j++] = 'bwipp.debugecc#20645'; //#20645 + $k[$j++] = $_.cws; //#20645 + bwipp_raiseerror(); //#20645 + } //#20645 + $k[$j++] = Infinity; //#20648 + for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20648 + $k[$j++] = -1; //#20648 + } //#20648 + $_.pixs = $a(); //#20648 $_.qmv = function() { - var _Qg = $k[--$j]; //#20367 - var _Qh = $k[--$j]; //#20367 - $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20367 - }; //#20367 - if ($eq($_.format, "full")) { //#20376 - for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20375 - $_.i = _Ql; //#20372 - $k[$j++] = $_.pixs; //#20373 - $k[$j++] = $_.i; //#20373 - $k[$j++] = 6; //#20373 - $_.qmv(); //#20373 - var _Qp = $k[--$j]; //#20373 - $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20373 - $k[$j++] = $_.pixs; //#20374 - $k[$j++] = 6; //#20374 - $k[$j++] = $_.i; //#20374 - $_.qmv(); //#20374 - var _Qu = $k[--$j]; //#20374 - $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20374 - } //#20374 - } //#20374 - if ($eq($_.format, "micro")) { //#20383 - for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20382 - $_.i = _Qz; //#20379 - $k[$j++] = $_.pixs; //#20380 - $k[$j++] = $_.i; //#20380 - $k[$j++] = 0; //#20380 - $_.qmv(); //#20380 - var _R3 = $k[--$j]; //#20380 - $put($k[--$j], _R3, ($_.i + 1) % 2); //#20380 - $k[$j++] = $_.pixs; //#20381 - $k[$j++] = 0; //#20381 - $k[$j++] = $_.i; //#20381 - $_.qmv(); //#20381 - var _R8 = $k[--$j]; //#20381 - $put($k[--$j], _R8, ($_.i + 1) % 2); //#20381 - } //#20381 - } //#20381 - if ($eq($_.format, "rmqr")) { //#20402 - for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20389 - $_.i = _RD; //#20386 - $k[$j++] = $_.pixs; //#20387 - $k[$j++] = $_.i; //#20387 - $k[$j++] = 0; //#20387 - $_.qmv(); //#20387 - var _RH = $k[--$j]; //#20387 - $put($k[--$j], _RH, ($_.i + 1) % 2); //#20387 - $k[$j++] = $_.pixs; //#20388 - $k[$j++] = $_.i; //#20388 - $k[$j++] = $f($_.rows - 1); //#20388 - $_.qmv(); //#20388 - var _RN = $k[--$j]; //#20388 - $put($k[--$j], _RN, ($_.i + 1) % 2); //#20388 - } //#20388 - for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20394 - $_.i = _RR; //#20391 - $k[$j++] = $_.pixs; //#20392 - $k[$j++] = 0; //#20392 - $k[$j++] = $_.i; //#20392 - $_.qmv(); //#20392 - var _RV = $k[--$j]; //#20392 - $put($k[--$j], _RV, ($_.i + 1) % 2); //#20392 - $k[$j++] = $_.pixs; //#20393 - $k[$j++] = $f($_.cols - 1); //#20393 - $k[$j++] = $_.i; //#20393 - $_.qmv(); //#20393 - var _Rb = $k[--$j]; //#20393 - $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20393 - } //#20393 - for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20401 - $_.i = _Ri; //#20396 - for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20400 - $_.j = _Rm; //#20398 - $k[$j++] = $_.pixs; //#20399 - $k[$j++] = $_.i; //#20399 - $k[$j++] = $_.j; //#20399 - $_.qmv(); //#20399 - var _Rr = $k[--$j]; //#20399 - $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20399 - } //#20399 - } //#20399 - } //#20399 - if (!bwipp_qrcode.__20452__) { //#20452 - $_ = Object.create($_); //#20452 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20415 - $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20425 - $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20435 - $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20445 + var _Qg = $k[--$j]; //#20649 + var _Qh = $k[--$j]; //#20649 + $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20649 + }; //#20649 + if ($eq($_.format, "full")) { //#20658 + for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20657 + $_.i = _Ql; //#20654 + $k[$j++] = $_.pixs; //#20655 + $k[$j++] = $_.i; //#20655 + $k[$j++] = 6; //#20655 + $_.qmv(); //#20655 + var _Qp = $k[--$j]; //#20655 + $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20655 + $k[$j++] = $_.pixs; //#20656 + $k[$j++] = 6; //#20656 + $k[$j++] = $_.i; //#20656 + $_.qmv(); //#20656 + var _Qu = $k[--$j]; //#20656 + $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20656 + } //#20656 + } //#20656 + if ($eq($_.format, "micro")) { //#20665 + for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20664 + $_.i = _Qz; //#20661 + $k[$j++] = $_.pixs; //#20662 + $k[$j++] = $_.i; //#20662 + $k[$j++] = 0; //#20662 + $_.qmv(); //#20662 + var _R3 = $k[--$j]; //#20662 + $put($k[--$j], _R3, ($_.i + 1) % 2); //#20662 + $k[$j++] = $_.pixs; //#20663 + $k[$j++] = 0; //#20663 + $k[$j++] = $_.i; //#20663 + $_.qmv(); //#20663 + var _R8 = $k[--$j]; //#20663 + $put($k[--$j], _R8, ($_.i + 1) % 2); //#20663 + } //#20663 + } //#20663 + if ($eq($_.format, "rmqr")) { //#20684 + for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20671 + $_.i = _RD; //#20668 + $k[$j++] = $_.pixs; //#20669 + $k[$j++] = $_.i; //#20669 + $k[$j++] = 0; //#20669 + $_.qmv(); //#20669 + var _RH = $k[--$j]; //#20669 + $put($k[--$j], _RH, ($_.i + 1) % 2); //#20669 + $k[$j++] = $_.pixs; //#20670 + $k[$j++] = $_.i; //#20670 + $k[$j++] = $f($_.rows - 1); //#20670 + $_.qmv(); //#20670 + var _RN = $k[--$j]; //#20670 + $put($k[--$j], _RN, ($_.i + 1) % 2); //#20670 + } //#20670 + for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20676 + $_.i = _RR; //#20673 + $k[$j++] = $_.pixs; //#20674 + $k[$j++] = 0; //#20674 + $k[$j++] = $_.i; //#20674 + $_.qmv(); //#20674 + var _RV = $k[--$j]; //#20674 + $put($k[--$j], _RV, ($_.i + 1) % 2); //#20674 + $k[$j++] = $_.pixs; //#20675 + $k[$j++] = $f($_.cols - 1); //#20675 + $k[$j++] = $_.i; //#20675 + $_.qmv(); //#20675 + var _Rb = $k[--$j]; //#20675 + $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20675 + } //#20675 + for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20683 + $_.i = _Ri; //#20678 + for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20682 + $_.j = _Rm; //#20680 + $k[$j++] = $_.pixs; //#20681 + $k[$j++] = $_.i; //#20681 + $k[$j++] = $_.j; //#20681 + $_.qmv(); //#20681 + var _Rr = $k[--$j]; //#20681 + $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20681 + } //#20681 + } //#20681 + } //#20681 + if (!bwipp_qrcode.__20734__) { //#20734 + $_ = Object.create($_); //#20734 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20697 + $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20707 + $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20717 + $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20727 var _Si = new Map([ ["full", $a([$_.fpat, $_.fpat, $_.fpat, $_.fnullpat])], ["micro", $a([$_.fpat, $_.fnullpat, $_.fnullpat, $_.fnullpat])], ["rmqr", $a([$_.fpat, $_.fcorpat, $_.fcorpat, $_.fsubpat])] - ]); //#20450 - $_.fpatmap = _Si; //#20451 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20451 - bwipp_qrcode.__20452__ = 1; //#20451 - $_ = Object.getPrototypeOf($_); //#20451 - } //#20451 - $_.fpats = $get($_.fpatmap, $_.format); //#20453 - for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20467 - $_.y = _Sn; //#20455 - for (var _So = 0; _So <= 7; _So += 1) { //#20466 - $_.x = _So; //#20457 - $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20458 - $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20459 - $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20460 - $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20461 - if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20462 - $k[$j++] = $_.pixs; //#20462 - $k[$j++] = $_.x; //#20462 - $k[$j++] = $_.y; //#20462 - $_.qmv(); //#20462 - var _TK = $k[--$j]; //#20462 - $put($k[--$j], _TK, $_.fpb0); //#20462 - } //#20462 - if ($_.fpb1 != 9) { //#20463 - $k[$j++] = $_.pixs; //#20463 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20463 - $k[$j++] = $_.y; //#20463 - $_.qmv(); //#20463 - var _TS = $k[--$j]; //#20463 - $put($k[--$j], _TS, $_.fpb1); //#20463 - } //#20463 - if ($_.fpb2 != 9) { //#20464 - $k[$j++] = $_.pixs; //#20464 - $k[$j++] = $_.x; //#20464 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20464 - $_.qmv(); //#20464 - var _Ta = $k[--$j]; //#20464 - $put($k[--$j], _Ta, $_.fpb2); //#20464 - } //#20464 - if ($_.fpb3 != 9) { //#20465 - $k[$j++] = $_.pixs; //#20465 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20465 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20465 - $_.qmv(); //#20465 - var _Tj = $k[--$j]; //#20465 - $put($k[--$j], _Tj, $_.fpb3); //#20465 - } //#20465 - } //#20465 - } //#20465 - if (!bwipp_qrcode.__20485__) { //#20485 - $_ = Object.create($_); //#20485 - $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20477 - $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20484 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20484 - bwipp_qrcode.__20485__ = 1; //#20484 - $_ = Object.getPrototypeOf($_); //#20484 - } //#20484 + ]); //#20732 + $_.fpatmap = _Si; //#20733 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20733 + bwipp_qrcode.__20734__ = 1; //#20733 + $_ = Object.getPrototypeOf($_); //#20733 + } //#20733 + $_.fpats = $get($_.fpatmap, $_.format); //#20735 + for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20749 + $_.y = _Sn; //#20737 + for (var _So = 0; _So <= 7; _So += 1) { //#20748 + $_.x = _So; //#20739 + $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20740 + $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20741 + $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20742 + $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20743 + if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20744 + $k[$j++] = $_.pixs; //#20744 + $k[$j++] = $_.x; //#20744 + $k[$j++] = $_.y; //#20744 + $_.qmv(); //#20744 + var _TK = $k[--$j]; //#20744 + $put($k[--$j], _TK, $_.fpb0); //#20744 + } //#20744 + if ($_.fpb1 != 9) { //#20745 + $k[$j++] = $_.pixs; //#20745 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20745 + $k[$j++] = $_.y; //#20745 + $_.qmv(); //#20745 + var _TS = $k[--$j]; //#20745 + $put($k[--$j], _TS, $_.fpb1); //#20745 + } //#20745 + if ($_.fpb2 != 9) { //#20746 + $k[$j++] = $_.pixs; //#20746 + $k[$j++] = $_.x; //#20746 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20746 + $_.qmv(); //#20746 + var _Ta = $k[--$j]; //#20746 + $put($k[--$j], _Ta, $_.fpb2); //#20746 + } //#20746 + if ($_.fpb3 != 9) { //#20747 + $k[$j++] = $_.pixs; //#20747 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20747 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20747 + $_.qmv(); //#20747 + var _Tj = $k[--$j]; //#20747 + $put($k[--$j], _Tj, $_.fpb3); //#20747 + } //#20747 + } //#20747 + } //#20747 + if (!bwipp_qrcode.__20767__) { //#20767 + $_ = Object.create($_); //#20767 + $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20759 + $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20766 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20766 + bwipp_qrcode.__20767__ = 1; //#20766 + $_ = Object.getPrototypeOf($_); //#20766 + } //#20766 $_.putalgnpat = function() { - $_.py = $k[--$j]; //#20488 - $_.px = $k[--$j]; //#20489 - for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20499 - $_.pb = _U0; //#20491 - for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20498 - $_.pa = _U1; //#20493 - $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20494 - if ($_.algnb != 9) { //#20497 - $k[$j++] = $_.pixs; //#20496 - $k[$j++] = $f($_.px + $_.pa); //#20496 - $k[$j++] = $f($_.py + $_.pb); //#20496 - $_.qmv(); //#20496 - var _UE = $k[--$j]; //#20496 - $put($k[--$j], _UE, $_.algnb); //#20496 - } //#20496 - } //#20496 - } //#20496 - }; //#20496 - if ($eq($_.format, "full")) { //#20515 - $_.algnpat = $_.algnpatfull; //#20502 - for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20507 - $_.i = _UN; //#20504 - $k[$j++] = $_.i; //#20505 - $k[$j++] = 4; //#20505 - $_.putalgnpat(); //#20505 - $k[$j++] = 4; //#20506 - $k[$j++] = $_.i; //#20506 - $_.putalgnpat(); //#20506 - } //#20506 - for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20514 - $_.x = _UW; //#20509 - for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20513 - $_.y = _Ud; //#20511 - $k[$j++] = $_.x; //#20512 - $k[$j++] = $_.y; //#20512 - $_.putalgnpat(); //#20512 - } //#20512 - } //#20512 - } //#20512 - if ($eq($_.format, "rmqr")) { //#20523 - $_.algnpat = $_.algnpatrmqr; //#20517 - for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20522 - $_.i = _Uo; //#20519 - $k[$j++] = $_.i; //#20520 - $k[$j++] = 0; //#20520 - $_.putalgnpat(); //#20520 - $k[$j++] = $_.i; //#20521 - $k[$j++] = $f($_.rows - 3); //#20521 - $_.putalgnpat(); //#20521 - } //#20521 - } //#20521 - if (!bwipp_qrcode.__20532__) { //#20532 - $_ = Object.create($_); //#20532 - $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20531 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20531 - bwipp_qrcode.__20532__ = 1; //#20531 - $_ = Object.getPrototypeOf($_); //#20531 - } //#20531 + $_.py = $k[--$j]; //#20770 + $_.px = $k[--$j]; //#20771 + for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20781 + $_.pb = _U0; //#20773 + for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20780 + $_.pa = _U1; //#20775 + $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20776 + if ($_.algnb != 9) { //#20779 + $k[$j++] = $_.pixs; //#20778 + $k[$j++] = $f($_.px + $_.pa); //#20778 + $k[$j++] = $f($_.py + $_.pb); //#20778 + $_.qmv(); //#20778 + var _UE = $k[--$j]; //#20778 + $put($k[--$j], _UE, $_.algnb); //#20778 + } //#20778 + } //#20778 + } //#20778 + }; //#20778 + if ($eq($_.format, "full")) { //#20797 + $_.algnpat = $_.algnpatfull; //#20784 + for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20789 + $_.i = _UN; //#20786 + $k[$j++] = $_.i; //#20787 + $k[$j++] = 4; //#20787 + $_.putalgnpat(); //#20787 + $k[$j++] = 4; //#20788 + $k[$j++] = $_.i; //#20788 + $_.putalgnpat(); //#20788 + } //#20788 + for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20796 + $_.x = _UW; //#20791 + for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20795 + $_.y = _Ud; //#20793 + $k[$j++] = $_.x; //#20794 + $k[$j++] = $_.y; //#20794 + $_.putalgnpat(); //#20794 + } //#20794 + } //#20794 + } //#20794 + if ($eq($_.format, "rmqr")) { //#20805 + $_.algnpat = $_.algnpatrmqr; //#20799 + for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20804 + $_.i = _Uo; //#20801 + $k[$j++] = $_.i; //#20802 + $k[$j++] = 0; //#20802 + $_.putalgnpat(); //#20802 + $k[$j++] = $_.i; //#20803 + $k[$j++] = $f($_.rows - 3); //#20803 + $_.putalgnpat(); //#20803 + } //#20803 + } //#20803 + if (!bwipp_qrcode.__20814__) { //#20814 + $_ = Object.create($_); //#20814 + $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20813 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 + bwipp_qrcode.__20814__ = 1; //#20813 + $_ = Object.getPrototypeOf($_); //#20813 + } //#20813 var _Xs = new Map([ ["full", $a([$a([$a([0, 8]), $a([8, $f($_.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($_.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($_.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($_.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($_.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($_.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($_.cols - 7)])]), $a([$a([8, 8]), $a([$f($_.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($_.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($_.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($_.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($_.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($_.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($_.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($_.cols - 1), 8])])])], ["micro", $_.formatmapmicro], ["rmqr", $a([$a([$a([11, 3]), $a([$f($_.cols - 3), $f($_.rows - 6)])]), $a([$a([11, 2]), $a([$f($_.cols - 4), $f($_.rows - 6)])]), $a([$a([11, 1]), $a([$f($_.cols - 5), $f($_.rows - 6)])]), $a([$a([10, 5]), $a([$f($_.cols - 6), $f($_.rows - 2)])]), $a([$a([10, 4]), $a([$f($_.cols - 6), $f($_.rows - 3)])]), $a([$a([10, 3]), $a([$f($_.cols - 6), $f($_.rows - 4)])]), $a([$a([10, 2]), $a([$f($_.cols - 6), $f($_.rows - 5)])]), $a([$a([10, 1]), $a([$f($_.cols - 6), $f($_.rows - 6)])]), $a([$a([9, 5]), $a([$f($_.cols - 7), $f($_.rows - 2)])]), $a([$a([9, 4]), $a([$f($_.cols - 7), $f($_.rows - 3)])]), $a([$a([9, 3]), $a([$f($_.cols - 7), $f($_.rows - 4)])]), $a([$a([9, 2]), $a([$f($_.cols - 7), $f($_.rows - 5)])]), $a([$a([9, 1]), $a([$f($_.cols - 7), $f($_.rows - 6)])]), $a([$a([8, 5]), $a([$f($_.cols - 8), $f($_.rows - 2)])]), $a([$a([8, 4]), $a([$f($_.cols - 8), $f($_.rows - 3)])]), $a([$a([8, 3]), $a([$f($_.cols - 8), $f($_.rows - 4)])]), $a([$a([8, 2]), $a([$f($_.cols - 8), $f($_.rows - 5)])]), $a([$a([8, 1]), $a([$f($_.cols - 8), $f($_.rows - 6)])])])] - ]); //#20548 - $_.formatmap = $get(_Xs, $_.format); //#20550 - $forall($_.formatmap, function() { //#20553 - $forall($k[--$j], function() { //#20552 - $forall($k[--$j]); //#20552 - $_.qmv(); //#20552 - $put($_.pixs, $k[--$j], 1); //#20552 - }); //#20552 - }); //#20552 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20569 - $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20567 - } else { //#20569 - $_.versionmap = $a([]); //#20569 - } //#20569 - var _ZW = $_.versionmap; //#20571 - for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20573 - $forall($get(_ZW, _ZX), function() { //#20572 - $forall($k[--$j]); //#20572 - $_.qmv(); //#20572 - $put($_.pixs, $k[--$j], 0); //#20572 - }); //#20572 - } //#20572 - if ($eq($_.format, "full")) { //#20578 - $k[$j++] = $_.pixs; //#20577 - $k[$j++] = 8; //#20577 - $k[$j++] = $f($_.rows - 8); //#20577 - $_.qmv(); //#20577 - var _Zg = $k[--$j]; //#20577 - $put($k[--$j], _Zg, 0); //#20577 - } //#20577 + ]); //#20830 + $_.formatmap = $get(_Xs, $_.format); //#20832 + $forall($_.formatmap, function() { //#20835 + $forall($k[--$j], function() { //#20834 + $forall($k[--$j]); //#20834 + $_.qmv(); //#20834 + $put($_.pixs, $k[--$j], 1); //#20834 + }); //#20834 + }); //#20834 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20851 + $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20849 + } else { //#20851 + $_.versionmap = $a([]); //#20851 + } //#20851 + var _ZW = $_.versionmap; //#20853 + for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20855 + $forall($get(_ZW, _ZX), function() { //#20854 + $forall($k[--$j]); //#20854 + $_.qmv(); //#20854 + $put($_.pixs, $k[--$j], 0); //#20854 + }); //#20854 + } //#20854 + if ($eq($_.format, "full")) { //#20860 + $k[$j++] = $_.pixs; //#20859 + $k[$j++] = 8; //#20859 + $k[$j++] = $f($_.rows - 8); //#20859 + $_.qmv(); //#20859 + var _Zg = $k[--$j]; //#20859 + $put($k[--$j], _Zg, 0); //#20859 + } //#20859 var _a0 = $a([function() { - var _Zi = $k[--$j]; //#20583 - var _Zj = $k[--$j]; //#20583 - $k[$j++] = $f(_Zj + _Zi) % 2; //#20583 + var _Zi = $k[--$j]; //#20865 + var _Zj = $k[--$j]; //#20865 + $k[$j++] = $f(_Zj + _Zi) % 2; //#20865 }, function() { - var _Zk = $k[--$j]; //#20584 - var _Zl = $k[--$j]; //#20584 - $k[$j++] = _Zk; //#20584 - $k[$j++] = _Zl; //#20584 - $j--; //#20584 - var _Zm = $k[--$j]; //#20584 - $k[$j++] = _Zm % 2; //#20584 + var _Zk = $k[--$j]; //#20866 + var _Zl = $k[--$j]; //#20866 + $k[$j++] = _Zk; //#20866 + $k[$j++] = _Zl; //#20866 + $j--; //#20866 + var _Zm = $k[--$j]; //#20866 + $k[$j++] = _Zm % 2; //#20866 }, function() { - $j--; //#20585 - var _Zn = $k[--$j]; //#20585 - $k[$j++] = _Zn % 3; //#20585 + $j--; //#20867 + var _Zn = $k[--$j]; //#20867 + $k[$j++] = _Zn % 3; //#20867 }, function() { - var _Zo = $k[--$j]; //#20586 - var _Zp = $k[--$j]; //#20586 - $k[$j++] = $f(_Zp + _Zo) % 3; //#20586 + var _Zo = $k[--$j]; //#20868 + var _Zp = $k[--$j]; //#20868 + $k[$j++] = $f(_Zp + _Zo) % 3; //#20868 }, function() { - var _Zq = $k[--$j]; //#20587 - var _Zr = $k[--$j]; //#20587 - $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20587 + var _Zq = $k[--$j]; //#20869 + var _Zr = $k[--$j]; //#20869 + $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20869 }, function() { - var _Zs = $k[--$j]; //#20588 - var _Zu = $k[--$j] * _Zs; //#20588 - $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20588 + var _Zs = $k[--$j]; //#20870 + var _Zu = $k[--$j] * _Zs; //#20870 + $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20870 }, function() { - var _Zv = $k[--$j]; //#20589 - var _Zx = $k[--$j] * _Zv; //#20589 - $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20589 + var _Zv = $k[--$j]; //#20871 + var _Zx = $k[--$j] * _Zv; //#20871 + $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20871 }, function() { - var _Zy = $k[--$j]; //#20590 - var _Zz = $k[--$j]; //#20590 - $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20590 - }]); //#20590 + var _Zy = $k[--$j]; //#20872 + var _Zz = $k[--$j]; //#20872 + $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20872 + }]); //#20872 var _aB = $a([function() { - var _a1 = $k[--$j]; //#20593 - var _a2 = $k[--$j]; //#20593 - $k[$j++] = _a1; //#20593 - $k[$j++] = _a2; //#20593 - $j--; //#20593 - var _a3 = $k[--$j]; //#20593 - $k[$j++] = _a3 % 2; //#20593 + var _a1 = $k[--$j]; //#20875 + var _a2 = $k[--$j]; //#20875 + $k[$j++] = _a1; //#20875 + $k[$j++] = _a2; //#20875 + $j--; //#20875 + var _a3 = $k[--$j]; //#20875 + $k[$j++] = _a3 % 2; //#20875 }, function() { - var _a4 = $k[--$j]; //#20594 - var _a5 = $k[--$j]; //#20594 - $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20594 + var _a4 = $k[--$j]; //#20876 + var _a5 = $k[--$j]; //#20876 + $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20876 }, function() { - var _a6 = $k[--$j]; //#20595 - var _a8 = $k[--$j] * _a6; //#20595 - $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20595 + var _a6 = $k[--$j]; //#20877 + var _a8 = $k[--$j] * _a6; //#20877 + $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20877 }, function() { - var _a9 = $k[--$j]; //#20596 - var _aA = $k[--$j]; //#20596 - $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20596 - }]); //#20596 + var _a9 = $k[--$j]; //#20878 + var _aA = $k[--$j]; //#20878 + $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20878 + }]); //#20878 var _aE = $a([function() { - var _aC = $k[--$j]; //#20599 - var _aD = $k[--$j]; //#20599 - $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20599 - }]); //#20599 + var _aC = $k[--$j]; //#20881 + var _aD = $k[--$j]; //#20881 + $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20881 + }]); //#20881 var _aF = new Map([ ["full", _a0], ["micro", _aB], ["rmqr", _aE] - ]); //#20599 - $_.maskfuncs = $get(_aF, $_.format); //#20601 - if ($_.mask != -1) { //#20605 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20603 - $_.bestmaskval = $_.mask - 1; //#20604 - } //#20604 - $_.masks = $a($_.maskfuncs.length); //#20606 - for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20620 - $_.m = _aS; //#20608 - $_.mask = $a($_.rows * $_.cols); //#20609 - for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20618 - $_.j = _aY; //#20611 - for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20617 - $_.i = _ab; //#20613 - $k[$j++] = $_.i; //#20614 - $k[$j++] = $_.j; //#20614 + ]); //#20881 + $_.maskfuncs = $get(_aF, $_.format); //#20883 + if ($_.mask != -1) { //#20887 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20885 + $_.bestmaskval = $_.mask - 1; //#20886 + } //#20886 + $_.masks = $a($_.maskfuncs.length); //#20888 + for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20902 + $_.m = _aS; //#20890 + $_.mask = $a($_.rows * $_.cols); //#20891 + for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20900 + $_.j = _aY; //#20893 + for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20899 + $_.i = _ab; //#20895 + $k[$j++] = $_.i; //#20896 + $k[$j++] = $_.j; //#20896 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#20614 - var _ah = $k[--$j]; //#20614 - $k[$j++] = _ah == 0; //#20615 - $k[$j++] = $_.pixs; //#20615 - $k[$j++] = $_.i; //#20615 - $k[$j++] = $_.j; //#20615 - $_.qmv(); //#20615 - var _al = $k[--$j]; //#20615 - var _an = $get($k[--$j], _al); //#20615 - var _ao = $k[--$j]; //#20615 - var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20615 - $k[$j++] = _ap; //#20616 - $k[$j++] = $_.mask; //#20616 - $k[$j++] = $_.i; //#20616 - $k[$j++] = $_.j; //#20616 - $_.qmv(); //#20616 - var _at = $k[--$j]; //#20616 - var _au = $k[--$j]; //#20616 - $put(_au, _at, $k[--$j]); //#20616 - } //#20616 - } //#20616 - $put($_.masks, $_.m, $_.mask); //#20619 - } //#20619 - var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20623 - $_.posx = $f($_.cols - _b1); //#20623 - $_.posy = $f($_.rows - 1); //#20624 - $_.dir = -1; //#20625 - $_.col = 1; //#20626 - $_.num = 0; //#20627 - for (;;) { //#20650 - if ($_.posx < 0) { //#20629 - break; //#20629 - } //#20629 - $k[$j++] = $_.pixs; //#20630 - $k[$j++] = $_.posx; //#20630 - $k[$j++] = $_.posy; //#20630 - $_.qmv(); //#20630 - var _b7 = $k[--$j]; //#20630 - if ($get($k[--$j], _b7) == -1) { //#20634 - var _bC = $get($_.cws, ~~($_.num / 8)); //#20631 - var _bE = -(7 - ($_.num % 8)); //#20631 - $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20632 - $k[$j++] = $_.pixs; //#20632 - $k[$j++] = $_.posx; //#20632 - $k[$j++] = $_.posy; //#20632 - $_.qmv(); //#20632 - var _bI = $k[--$j]; //#20632 - var _bJ = $k[--$j]; //#20632 - $put(_bJ, _bI, $k[--$j]); //#20632 - $_.num = $_.num + 1; //#20633 - } //#20633 - if ($_.col == 1) { //#20647 - $_.col = 0; //#20636 - $_.posx = $f($_.posx - 1); //#20637 - } else { //#20647 - $_.col = 1; //#20639 - $_.posx = $f($_.posx + 1); //#20640 - $_.posy = $f($_.posy + $_.dir); //#20641 - if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20648 - $_.dir = $_.dir * -1; //#20643 - $_.posy = $f($_.posy + $_.dir); //#20644 - $_.posx = $f($_.posx - 2); //#20645 - if ($eq($_.format, "full") && ($_.posx == 6)) { //#20647 - $_.posx = $f($_.posx - 1); //#20647 - } //#20647 - } //#20647 - } //#20647 - } //#20647 + } //#20896 + var _ah = $k[--$j]; //#20896 + $k[$j++] = _ah == 0; //#20897 + $k[$j++] = $_.pixs; //#20897 + $k[$j++] = $_.i; //#20897 + $k[$j++] = $_.j; //#20897 + $_.qmv(); //#20897 + var _al = $k[--$j]; //#20897 + var _an = $get($k[--$j], _al); //#20897 + var _ao = $k[--$j]; //#20897 + var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20897 + $k[$j++] = _ap; //#20898 + $k[$j++] = $_.mask; //#20898 + $k[$j++] = $_.i; //#20898 + $k[$j++] = $_.j; //#20898 + $_.qmv(); //#20898 + var _at = $k[--$j]; //#20898 + var _au = $k[--$j]; //#20898 + $put(_au, _at, $k[--$j]); //#20898 + } //#20898 + } //#20898 + $put($_.masks, $_.m, $_.mask); //#20901 + } //#20901 + var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20905 + $_.posx = $f($_.cols - _b1); //#20905 + $_.posy = $f($_.rows - 1); //#20906 + $_.dir = -1; //#20907 + $_.col = 1; //#20908 + $_.num = 0; //#20909 + for (;;) { //#20932 + if ($_.posx < 0) { //#20911 + break; //#20911 + } //#20911 + $k[$j++] = $_.pixs; //#20912 + $k[$j++] = $_.posx; //#20912 + $k[$j++] = $_.posy; //#20912 + $_.qmv(); //#20912 + var _b7 = $k[--$j]; //#20912 + if ($get($k[--$j], _b7) == -1) { //#20916 + var _bC = $get($_.cws, ~~($_.num / 8)); //#20913 + var _bE = -(7 - ($_.num % 8)); //#20913 + $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20914 + $k[$j++] = $_.pixs; //#20914 + $k[$j++] = $_.posx; //#20914 + $k[$j++] = $_.posy; //#20914 + $_.qmv(); //#20914 + var _bI = $k[--$j]; //#20914 + var _bJ = $k[--$j]; //#20914 + $put(_bJ, _bI, $k[--$j]); //#20914 + $_.num = $_.num + 1; //#20915 + } //#20915 + if ($_.col == 1) { //#20929 + $_.col = 0; //#20918 + $_.posx = $f($_.posx - 1); //#20919 + } else { //#20929 + $_.col = 1; //#20921 + $_.posx = $f($_.posx + 1); //#20922 + $_.posy = $f($_.posy + $_.dir); //#20923 + if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20930 + $_.dir = $_.dir * -1; //#20925 + $_.posy = $f($_.posy + $_.dir); //#20926 + $_.posx = $f($_.posx - 2); //#20927 + if ($eq($_.format, "full") && ($_.posx == 6)) { //#20929 + $_.posx = $f($_.posx - 1); //#20929 + } //#20929 + } //#20929 + } //#20929 + } //#20929 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#20654 - $k[$j++] = 'scr1'; //#20656 - $k[$j++] = 0; //#20656 - $forall($_.scrle, function() { //#20656 - var _bd = $k[--$j]; //#20656 - $k[$j++] = _bd; //#20656 - if (_bd >= 5) { //#20656 - var _be = $k[--$j]; //#20656 - var _bg = $f($f($k[--$j] + _be) - 2); //#20656 - $k[$j++] = _bg; //#20656 - $k[$j++] = _bg; //#20656 - } //#20656 - $j--; //#20656 - }); //#20656 - var _bh = $k[--$j]; //#20656 - $_[$k[--$j]] = _bh; //#20656 - $_.scr3 = 0; //#20658 - for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20673 - $_.j = _bl; //#20660 - if (($get($_.scrle, $_.j) % 3) == 0) { //#20672 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20662 - var _bu = $geti($_.scrle, $_.j - 2, 5); //#20663 - for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20663 - $k[$j++] = $get(_bu, _bv) == $_.fact; //#20663 - } //#20663 - var _bz = $k[--$j]; //#20663 - var _c0 = $k[--$j]; //#20663 - var _c1 = $k[--$j]; //#20663 - $k[$j++] = $an(_c0, _bz); //#20663 - $k[$j++] = _c1; //#20663 - $j--; //#20663 - var _c2 = $k[--$j]; //#20663 - var _c3 = $k[--$j]; //#20663 - var _c4 = $k[--$j]; //#20663 - if (_c4 && (_c3 && _c2)) { //#20671 - if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20668 - $_.scr3 = $_.scr3 + 40; //#20665 - } else { //#20668 - if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20669 - $_.scr3 = $_.scr3 + 40; //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - $k[$j++] = $_.scr1; //#20674 - $k[$j++] = $_.scr3; //#20674 - }; //#20674 + $_.scrle = $k[--$j]; //#20936 + $k[$j++] = 'scr1'; //#20938 + $k[$j++] = 0; //#20938 + $forall($_.scrle, function() { //#20938 + var _bd = $k[--$j]; //#20938 + $k[$j++] = _bd; //#20938 + if (_bd >= 5) { //#20938 + var _be = $k[--$j]; //#20938 + var _bg = $f($f($k[--$j] + _be) - 2); //#20938 + $k[$j++] = _bg; //#20938 + $k[$j++] = _bg; //#20938 + } //#20938 + $j--; //#20938 + }); //#20938 + var _bh = $k[--$j]; //#20938 + $_[$k[--$j]] = _bh; //#20938 + $_.scr3 = 0; //#20940 + for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20955 + $_.j = _bl; //#20942 + if (($get($_.scrle, $_.j) % 3) == 0) { //#20954 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20944 + var _bu = $geti($_.scrle, $_.j - 2, 5); //#20945 + for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20945 + $k[$j++] = $get(_bu, _bv) == $_.fact; //#20945 + } //#20945 + var _bz = $k[--$j]; //#20945 + var _c0 = $k[--$j]; //#20945 + var _c1 = $k[--$j]; //#20945 + $k[$j++] = $an(_c0, _bz); //#20945 + $k[$j++] = _c1; //#20945 + $j--; //#20945 + var _c2 = $k[--$j]; //#20945 + var _c3 = $k[--$j]; //#20945 + var _c4 = $k[--$j]; //#20945 + if (_c4 && (_c3 && _c2)) { //#20953 + if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20950 + $_.scr3 = $_.scr3 + 40; //#20947 + } else { //#20950 + if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20951 + $_.scr3 = $_.scr3 + 40; //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + $k[$j++] = $_.scr1; //#20956 + $k[$j++] = $_.scr3; //#20956 + }; //#20956 $_.evalfull = function() { - $_.sym = $k[--$j]; //#20679 - $_.n1 = 0; //#20681 - $_.n2 = 0; //#20681 - $_.n3 = 0; //#20681 - $_.rle = $a($f($_.cols + 1)); //#20682 - $_.lastpairs = $a($_.cols); //#20683 - $_.thispairs = $a($_.cols); //#20684 - $_.colsadd1 = $f($_.cols + 1); //#20685 - for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#20724 - $_.i = _cS; //#20687 - $k[$j++] = Infinity; //#20690 - var _cU = $_.cols; //#20691 - $k[$j++] = 0; //#20693 - $k[$j++] = 0; //#20693 - for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20693 - var _cZ = $get($_.sym, _cW); //#20692 - var _ca = $k[--$j]; //#20692 - $k[$j++] = _cZ; //#20692 - if ($eq(_ca, _cZ)) { //#20692 - var _cb = $k[--$j]; //#20692 - var _cc = $k[--$j]; //#20692 - $k[$j++] = $f(_cc + 1); //#20692 - $k[$j++] = _cb; //#20692 - } else { //#20692 - var _cd = $k[--$j]; //#20692 - $k[$j++] = 1; //#20692 - $k[$j++] = _cd; //#20692 - } //#20692 - } //#20692 - $j--; //#20694 - var _cf = $counttomark() + 2; //#20695 - $astore($geti($_.rle, 0, _cf - 2)); //#20695 - $_.evalfulln1n3(); //#20696 - $_.n3 = $f($k[--$j] + $_.n3); //#20696 - $_.n1 = $f($k[--$j] + $_.n1); //#20696 - $j--; //#20697 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20700 - $k[$j++] = Infinity; //#20701 - var _cq = $_.symrow; //#20702 - $k[$j++] = 0; //#20704 - $k[$j++] = 0; //#20704 - for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20704 - var _ct = $get(_cq, _cr); //#20704 - var _cu = $k[--$j]; //#20703 - $k[$j++] = _ct; //#20703 - if ($eq(_cu, _ct)) { //#20703 - var _cv = $k[--$j]; //#20703 - var _cw = $k[--$j]; //#20703 - $k[$j++] = $f(_cw + 1); //#20703 - $k[$j++] = _cv; //#20703 - } else { //#20703 - var _cx = $k[--$j]; //#20703 - $k[$j++] = 1; //#20703 - $k[$j++] = _cx; //#20703 - } //#20703 - } //#20703 - $j--; //#20705 - var _cz = $counttomark() + 2; //#20706 - $astore($geti($_.rle, 0, _cz - 2)); //#20706 - $_.evalfulln1n3(); //#20707 - $_.n3 = $f($k[--$j] + $_.n3); //#20707 - $_.n1 = $f($k[--$j] + $_.n1); //#20707 - $j--; //#20708 - var _d5 = $_.thispairs; //#20711 - $_.thispairs = $_.lastpairs; //#20711 - $_.lastpairs = _d5; //#20711 - var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20712 - var _dA = $_.symrow; //#20713 - $k[$j++] = _d9; //#20713 - for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20713 - var _dD = $get(_dA, _dB); //#20713 - var _dE = $k[--$j]; //#20713 - $k[$j++] = $f(_dE + _dD); //#20713 - $k[$j++] = _dD; //#20713 - } //#20713 - $j--; //#20714 - $astore($_.thispairs); //#20715 - $j--; //#20715 - if ($_.i > 0) { //#20722 - $k[$j++] = Infinity; //#20717 - $aload($_.lastpairs); //#20718 - $aload($_.thispairs); //#20718 - $k[$j++] = $_.n2; //#20719 - for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#20719 - var _dN = $k[--$j]; //#20719 - var _dO = $k[--$j]; //#20719 - $k[$j++] = _dN; //#20719 - $k[$j++] = _dO; //#20719 - var _dQ = $k[$j - 1 - $_.colsadd1]; //#20719 - if (($f($k[--$j] + _dQ) & 3) == 0) { //#20719 - var _dS = $k[--$j]; //#20719 - $k[$j++] = $f(_dS + 3); //#20719 - } //#20719 - } //#20719 - $_.n2 = $k[--$j]; //#20720 - $cleartomark(); //#20721 - } //#20721 - } //#20721 - $k[$j++] = 'dark'; //#20727 - $k[$j++] = 0; //#20727 - $forall($_.sym, function() { //#20727 - var _dV = $k[--$j]; //#20727 - var _dW = $k[--$j]; //#20727 - $k[$j++] = $f(_dW + _dV); //#20727 - }); //#20727 - var _dX = $k[--$j]; //#20727 - $_[$k[--$j]] = _dX; //#20727 - var _da = $_.cols; //#20728 - $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#20728 - $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#20730 - }; //#20730 + $_.sym = $k[--$j]; //#20961 + $_.n1 = 0; //#20963 + $_.n2 = 0; //#20963 + $_.n3 = 0; //#20963 + $_.rle = $a($f($_.cols + 1)); //#20964 + $_.lastpairs = $a($_.cols); //#20965 + $_.thispairs = $a($_.cols); //#20966 + $_.colsadd1 = $f($_.cols + 1); //#20967 + for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#21006 + $_.i = _cS; //#20969 + $k[$j++] = Infinity; //#20972 + var _cU = $_.cols; //#20973 + $k[$j++] = 0; //#20975 + $k[$j++] = 0; //#20975 + for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20975 + var _cZ = $get($_.sym, _cW); //#20974 + var _ca = $k[--$j]; //#20974 + $k[$j++] = _cZ; //#20974 + if ($eq(_ca, _cZ)) { //#20974 + var _cb = $k[--$j]; //#20974 + var _cc = $k[--$j]; //#20974 + $k[$j++] = $f(_cc + 1); //#20974 + $k[$j++] = _cb; //#20974 + } else { //#20974 + var _cd = $k[--$j]; //#20974 + $k[$j++] = 1; //#20974 + $k[$j++] = _cd; //#20974 + } //#20974 + } //#20974 + $j--; //#20976 + var _cf = $counttomark() + 2; //#20977 + $astore($geti($_.rle, 0, _cf - 2)); //#20977 + $_.evalfulln1n3(); //#20978 + $_.n3 = $f($k[--$j] + $_.n3); //#20978 + $_.n1 = $f($k[--$j] + $_.n1); //#20978 + $j--; //#20979 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20982 + $k[$j++] = Infinity; //#20983 + var _cq = $_.symrow; //#20984 + $k[$j++] = 0; //#20986 + $k[$j++] = 0; //#20986 + for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20986 + var _ct = $get(_cq, _cr); //#20986 + var _cu = $k[--$j]; //#20985 + $k[$j++] = _ct; //#20985 + if ($eq(_cu, _ct)) { //#20985 + var _cv = $k[--$j]; //#20985 + var _cw = $k[--$j]; //#20985 + $k[$j++] = $f(_cw + 1); //#20985 + $k[$j++] = _cv; //#20985 + } else { //#20985 + var _cx = $k[--$j]; //#20985 + $k[$j++] = 1; //#20985 + $k[$j++] = _cx; //#20985 + } //#20985 + } //#20985 + $j--; //#20987 + var _cz = $counttomark() + 2; //#20988 + $astore($geti($_.rle, 0, _cz - 2)); //#20988 + $_.evalfulln1n3(); //#20989 + $_.n3 = $f($k[--$j] + $_.n3); //#20989 + $_.n1 = $f($k[--$j] + $_.n1); //#20989 + $j--; //#20990 + var _d5 = $_.thispairs; //#20993 + $_.thispairs = $_.lastpairs; //#20993 + $_.lastpairs = _d5; //#20993 + var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20994 + var _dA = $_.symrow; //#20995 + $k[$j++] = _d9; //#20995 + for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20995 + var _dD = $get(_dA, _dB); //#20995 + var _dE = $k[--$j]; //#20995 + $k[$j++] = $f(_dE + _dD); //#20995 + $k[$j++] = _dD; //#20995 + } //#20995 + $j--; //#20996 + $astore($_.thispairs); //#20997 + $j--; //#20997 + if ($_.i > 0) { //#21004 + $k[$j++] = Infinity; //#20999 + $aload($_.lastpairs); //#21000 + $aload($_.thispairs); //#21000 + $k[$j++] = $_.n2; //#21001 + for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#21001 + var _dN = $k[--$j]; //#21001 + var _dO = $k[--$j]; //#21001 + $k[$j++] = _dN; //#21001 + $k[$j++] = _dO; //#21001 + var _dQ = $k[$j - 1 - $_.colsadd1]; //#21001 + if (($f($k[--$j] + _dQ) & 3) == 0) { //#21001 + var _dS = $k[--$j]; //#21001 + $k[$j++] = $f(_dS + 3); //#21001 + } //#21001 + } //#21001 + $_.n2 = $k[--$j]; //#21002 + $cleartomark(); //#21003 + } //#21003 + } //#21003 + $k[$j++] = 'dark'; //#21009 + $k[$j++] = 0; //#21009 + $forall($_.sym, function() { //#21009 + var _dV = $k[--$j]; //#21009 + var _dW = $k[--$j]; //#21009 + $k[$j++] = $f(_dW + _dV); //#21009 + }); //#21009 + var _dX = $k[--$j]; //#21009 + $_[$k[--$j]] = _dX; //#21009 + var _da = $_.cols; //#21010 + $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#21010 + $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#21012 + }; //#21012 $_.evalmicro = function() { - $_.sym = $k[--$j]; //#20735 - $_.dkrhs = 0; //#20736 - $_.dkbot = 0; //#20736 - for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#20741 - $_.i = _di; //#20738 - $k[$j++] = 'dkrhs'; //#20739 - $k[$j++] = $_.dkrhs; //#20739 - $k[$j++] = $_.sym; //#20739 - $k[$j++] = $f($_.cols - 1); //#20739 - $k[$j++] = $_.i; //#20739 - $_.qmv(); //#20739 - var _dn = $k[--$j]; //#20739 - var _dp = $get($k[--$j], _dn); //#20739 - var _dq = $k[--$j]; //#20739 - $_[$k[--$j]] = $f(_dq + _dp); //#20739 - $k[$j++] = 'dkbot'; //#20740 - $k[$j++] = $_.dkbot; //#20740 - $k[$j++] = $_.sym; //#20740 - $k[$j++] = $_.i; //#20740 - $k[$j++] = $f($_.cols - 1); //#20740 - $_.qmv(); //#20740 - var _dw = $k[--$j]; //#20740 - var _dy = $get($k[--$j], _dw); //#20740 - var _dz = $k[--$j]; //#20740 - $_[$k[--$j]] = $f(_dz + _dy); //#20740 - } //#20740 - if ($_.dkrhs <= $_.dkbot) { //#20745 - $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#20743 - } else { //#20745 - $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#20745 - } //#20745 - }; //#20745 - $_.bestscore = 999999999; //#20750 - for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#20772 - $_.m = _e9; //#20752 - $_.masksym = $a($_.rows * $_.cols); //#20753 - for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#20757 - $_.i = _eG; //#20755 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#20756 - } //#20756 - if ($_.masks.length != 1) { //#20770 - if ($eq($_.format, "full")) { //#20762 - $k[$j++] = $_.masksym; //#20760 - $_.evalfull(); //#20760 - $_.score = $k[--$j]; //#20760 - } else { //#20762 - $k[$j++] = $_.masksym; //#20762 - $_.evalmicro(); //#20762 - $_.score = $k[--$j]; //#20762 - } //#20762 - if ($_.score < $_.bestscore) { //#20768 - $_.bestsym = $_.masksym; //#20765 - $_.bestmaskval = $_.m; //#20766 - $_.bestscore = $_.score; //#20767 - } //#20767 - } else { //#20770 - $_.bestsym = $_.masksym; //#20770 - } //#20770 - } //#20770 - $_.pixs = $_.bestsym; //#20773 - if ($eq($_.format, "full")) { //#20778 - $k[$j++] = $_.pixs; //#20777 - $k[$j++] = 8; //#20777 - $k[$j++] = $f($_.cols - 8); //#20777 - $_.qmv(); //#20777 - var _eh = $k[--$j]; //#20777 - $put($k[--$j], _eh, 1); //#20777 - } //#20777 - if (!bwipp_qrcode.__20814__) { //#20814 - $_ = Object.create($_); //#20814 - $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#20787 - $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#20793 - $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#20803 - $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#20813 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 - bwipp_qrcode.__20814__ = 1; //#20813 - $_ = Object.getPrototypeOf($_); //#20813 - } //#20813 - if ($eq($_.format, "full")) { //#20824 - $k[$j++] = 'ecid'; //#20816 - $search("MLHQ", $_.eclevel); //#20816 - $j--; //#20816 - var _eq = $k[--$j]; //#20816 - var _er = $k[--$j]; //#20816 - $k[$j++] = _eq.length; //#20816 - $k[$j++] = _er; //#20816 - $j--; //#20816 - var _es = $k[--$j]; //#20816 - var _et = $k[--$j]; //#20816 - $k[$j++] = _es; //#20816 - $k[$j++] = _et; //#20816 - $j--; //#20816 - var _eu = $k[--$j]; //#20816 - $_[$k[--$j]] = _eu; //#20816 - $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#20817 - for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#20823 - $_.i = _f2; //#20819 - $forall($get($_.formatmap, $_.i), function() { //#20822 - var _f7 = $k[--$j]; //#20821 - $k[$j++] = $_.pixs; //#20821 - $aload(_f7); //#20821 - $_.qmv(); //#20821 - var _f8 = $_.fmtval; //#20821 - var _fA = -(14 - $_.i); //#20821 - var _fB = $k[--$j]; //#20821 - $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#20821 - }); //#20821 - } //#20821 - } //#20821 - if ($eq($_.format, "micro")) { //#20832 - $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#20826 - $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#20827 - for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#20831 - $_.i = _fT; //#20829 - $k[$j++] = $_.pixs; //#20830 - $aload($get($get($_.formatmap, $_.i), 0)); //#20830 - $_.qmv(); //#20830 - var _fZ = $_.fmtval; //#20830 - var _fb = -(14 - $_.i); //#20830 - var _fc = $k[--$j]; //#20830 - $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#20830 - } //#20830 - } //#20830 - if ($eq($_.format, "rmqr")) { //#20842 - $k[$j++] = 'fmtvalu'; //#20834 - $search("MH", $_.eclevel); //#20834 - $j--; //#20834 - var _fg = $k[--$j]; //#20834 - var _fh = $k[--$j]; //#20834 - $k[$j++] = _fg.length; //#20834 - $k[$j++] = _fh; //#20834 - $j--; //#20834 - var _fi = $k[--$j]; //#20834 - var _fj = $k[--$j]; //#20834 - $k[$j++] = _fi; //#20834 - $k[$j++] = _fj; //#20834 - $j--; //#20834 - var _fk = $k[--$j]; //#20834 - $_[$k[--$j]] = (_fk << 5) + $_.verind; //#20834 - $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#20835 - $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#20836 - for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#20841 - $_.i = _fv; //#20838 - $k[$j++] = $_.pixs; //#20839 - $aload($get($get($_.formatmap, $_.i), 0)); //#20839 - $_.qmv(); //#20839 - var _g1 = $_.fmtval1; //#20839 - var _g3 = -(17 - $_.i); //#20839 - var _g4 = $k[--$j]; //#20839 - $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#20839 - $k[$j++] = $_.pixs; //#20840 - $aload($get($get($_.formatmap, $_.i), 1)); //#20840 - $_.qmv(); //#20840 - var _gB = $_.fmtval2; //#20840 - var _gD = -(17 - $_.i); //#20840 - var _gE = $k[--$j]; //#20840 - $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#20840 - } //#20840 - } //#20840 - if (!bwipp_qrcode.__20853__) { //#20853 - $_ = Object.create($_); //#20853 - $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#20852 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20852 - bwipp_qrcode.__20853__ = 1; //#20852 - $_ = Object.getPrototypeOf($_); //#20852 - } //#20852 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20862 - $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#20855 - for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#20861 - $_.i = _gP; //#20857 - $forall($get($_.versionmap, $_.i), function() { //#20860 - var _gU = $k[--$j]; //#20859 - $k[$j++] = $_.pixs; //#20859 - $forall(_gU); //#20859 - $_.qmv(); //#20859 - var _gV = $_.verval; //#20859 - var _gX = -(17 - $_.i); //#20859 - var _gY = $k[--$j]; //#20859 - $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#20859 - }); //#20859 - } //#20859 - } //#20859 - var _gg = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows * 2) / 72], - ["width", ($_.cols * 2) / 72], - ["opt", $_.options] - ]); //#20872 - $k[$j++] = _gg; //#20875 - if (!$_.dontdraw) { //#20875 - bwipp_renmatrix(); //#20875 - } //#20875 - $_ = Object.getPrototypeOf($_); //#20877 - $_ = Object.getPrototypeOf($_); //#20879 -} - + $_.sym = $k[--$j]; //#21017 + $_.dkrhs = 0; //#21018 + $_.dkbot = 0; //#21018 + for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#21023 + $_.i = _di; //#21020 + $k[$j++] = 'dkrhs'; //#21021 + $k[$j++] = $_.dkrhs; //#21021 + $k[$j++] = $_.sym; //#21021 + $k[$j++] = $f($_.cols - 1); //#21021 + $k[$j++] = $_.i; //#21021 + $_.qmv(); //#21021 + var _dn = $k[--$j]; //#21021 + var _dp = $get($k[--$j], _dn); //#21021 + var _dq = $k[--$j]; //#21021 + $_[$k[--$j]] = $f(_dq + _dp); //#21021 + $k[$j++] = 'dkbot'; //#21022 + $k[$j++] = $_.dkbot; //#21022 + $k[$j++] = $_.sym; //#21022 + $k[$j++] = $_.i; //#21022 + $k[$j++] = $f($_.cols - 1); //#21022 + $_.qmv(); //#21022 + var _dw = $k[--$j]; //#21022 + var _dy = $get($k[--$j], _dw); //#21022 + var _dz = $k[--$j]; //#21022 + $_[$k[--$j]] = $f(_dz + _dy); //#21022 + } //#21022 + if ($_.dkrhs <= $_.dkbot) { //#21027 + $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#21025 + } else { //#21027 + $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#21027 + } //#21027 + }; //#21027 + $_.bestscore = 999999999; //#21032 + for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#21054 + $_.m = _e9; //#21034 + $_.masksym = $a($_.rows * $_.cols); //#21035 + for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#21039 + $_.i = _eG; //#21037 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#21038 + } //#21038 + if ($_.masks.length != 1) { //#21052 + if ($eq($_.format, "full")) { //#21044 + $k[$j++] = $_.masksym; //#21042 + $_.evalfull(); //#21042 + $_.score = $k[--$j]; //#21042 + } else { //#21044 + $k[$j++] = $_.masksym; //#21044 + $_.evalmicro(); //#21044 + $_.score = $k[--$j]; //#21044 + } //#21044 + if ($_.score < $_.bestscore) { //#21050 + $_.bestsym = $_.masksym; //#21047 + $_.bestmaskval = $_.m; //#21048 + $_.bestscore = $_.score; //#21049 + } //#21049 + } else { //#21052 + $_.bestsym = $_.masksym; //#21052 + } //#21052 + } //#21052 + $_.pixs = $_.bestsym; //#21055 + if ($eq($_.format, "full")) { //#21060 + $k[$j++] = $_.pixs; //#21059 + $k[$j++] = 8; //#21059 + $k[$j++] = $f($_.cols - 8); //#21059 + $_.qmv(); //#21059 + var _eh = $k[--$j]; //#21059 + $put($k[--$j], _eh, 1); //#21059 + } //#21059 + if (!bwipp_qrcode.__21096__) { //#21096 + $_ = Object.create($_); //#21096 + $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#21069 + $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#21075 + $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#21085 + $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#21095 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21095 + bwipp_qrcode.__21096__ = 1; //#21095 + $_ = Object.getPrototypeOf($_); //#21095 + } //#21095 + if ($eq($_.format, "full")) { //#21106 + $k[$j++] = 'ecid'; //#21098 + $search("MLHQ", $_.eclevel); //#21098 + $j--; //#21098 + var _eq = $k[--$j]; //#21098 + var _er = $k[--$j]; //#21098 + $k[$j++] = _eq.length; //#21098 + $k[$j++] = _er; //#21098 + $j--; //#21098 + var _es = $k[--$j]; //#21098 + var _et = $k[--$j]; //#21098 + $k[$j++] = _es; //#21098 + $k[$j++] = _et; //#21098 + $j--; //#21098 + var _eu = $k[--$j]; //#21098 + $_[$k[--$j]] = _eu; //#21098 + $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#21099 + for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#21105 + $_.i = _f2; //#21101 + $forall($get($_.formatmap, $_.i), function() { //#21104 + var _f7 = $k[--$j]; //#21103 + $k[$j++] = $_.pixs; //#21103 + $aload(_f7); //#21103 + $_.qmv(); //#21103 + var _f8 = $_.fmtval; //#21103 + var _fA = -(14 - $_.i); //#21103 + var _fB = $k[--$j]; //#21103 + $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#21103 + }); //#21103 + } //#21103 + } //#21103 + if ($eq($_.format, "micro")) { //#21114 + $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#21108 + $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#21109 + for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#21113 + $_.i = _fT; //#21111 + $k[$j++] = $_.pixs; //#21112 + $aload($get($get($_.formatmap, $_.i), 0)); //#21112 + $_.qmv(); //#21112 + var _fZ = $_.fmtval; //#21112 + var _fb = -(14 - $_.i); //#21112 + var _fc = $k[--$j]; //#21112 + $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#21112 + } //#21112 + } //#21112 + if ($eq($_.format, "rmqr")) { //#21124 + $k[$j++] = 'fmtvalu'; //#21116 + $search("MH", $_.eclevel); //#21116 + $j--; //#21116 + var _fg = $k[--$j]; //#21116 + var _fh = $k[--$j]; //#21116 + $k[$j++] = _fg.length; //#21116 + $k[$j++] = _fh; //#21116 + $j--; //#21116 + var _fi = $k[--$j]; //#21116 + var _fj = $k[--$j]; //#21116 + $k[$j++] = _fi; //#21116 + $k[$j++] = _fj; //#21116 + $j--; //#21116 + var _fk = $k[--$j]; //#21116 + $_[$k[--$j]] = (_fk << 5) + $_.verind; //#21116 + $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#21117 + $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#21118 + for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#21123 + $_.i = _fv; //#21120 + $k[$j++] = $_.pixs; //#21121 + $aload($get($get($_.formatmap, $_.i), 0)); //#21121 + $_.qmv(); //#21121 + var _g1 = $_.fmtval1; //#21121 + var _g3 = -(17 - $_.i); //#21121 + var _g4 = $k[--$j]; //#21121 + $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#21121 + $k[$j++] = $_.pixs; //#21122 + $aload($get($get($_.formatmap, $_.i), 1)); //#21122 + $_.qmv(); //#21122 + var _gB = $_.fmtval2; //#21122 + var _gD = -(17 - $_.i); //#21122 + var _gE = $k[--$j]; //#21122 + $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#21122 + } //#21122 + } //#21122 + if (!bwipp_qrcode.__21135__) { //#21135 + $_ = Object.create($_); //#21135 + $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#21134 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21134 + bwipp_qrcode.__21135__ = 1; //#21134 + $_ = Object.getPrototypeOf($_); //#21134 + } //#21134 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#21144 + $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#21137 + for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#21143 + $_.i = _gP; //#21139 + $forall($get($_.versionmap, $_.i), function() { //#21142 + var _gU = $k[--$j]; //#21141 + $k[$j++] = $_.pixs; //#21141 + $forall(_gU); //#21141 + $_.qmv(); //#21141 + var _gV = $_.verval; //#21141 + var _gX = -(17 - $_.i); //#21141 + var _gY = $k[--$j]; //#21141 + $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#21141 + }); //#21141 + } //#21141 + } //#21141 + $k[$j++] = Infinity; //#21147 + $k[$j++] = 'ren'; //#21154 + $k[$j++] = bwipp_renmatrix; //#21154 + $k[$j++] = 'pixs'; //#21154 + $k[$j++] = $_.pixs; //#21154 + $k[$j++] = 'pixx'; //#21154 + $k[$j++] = $_.cols; //#21154 + $k[$j++] = 'pixy'; //#21154 + $k[$j++] = $_.rows; //#21154 + $k[$j++] = 'height'; //#21154 + $k[$j++] = ($_.rows * 2) / 72; //#21154 + $k[$j++] = 'width'; //#21154 + $k[$j++] = ($_.cols * 2) / 72; //#21154 + $k[$j++] = 'borderleft'; //#21154 + if ($eq($_.format, "full")) { //#21154 + $k[$j++] = 4; //#21154 + } else { //#21154 + $k[$j++] = 2; //#21154 + } //#21154 + $k[$j++] = 'borderright'; //#21155 + if ($eq($_.format, "full")) { //#21155 + $k[$j++] = 4; //#21155 + } else { //#21155 + $k[$j++] = 2; //#21155 + } //#21155 + $k[$j++] = 'bordertop'; //#21156 + if ($eq($_.format, "full")) { //#21156 + $k[$j++] = 4; //#21156 + } else { //#21156 + $k[$j++] = 2; //#21156 + } //#21156 + $k[$j++] = 'borderbottom'; //#21157 + if ($eq($_.format, "full")) { //#21157 + $k[$j++] = 4; //#21157 + } else { //#21157 + $k[$j++] = 2; //#21157 + } //#21157 + $k[$j++] = 'opt'; //#21158 + $k[$j++] = $_.options; //#21158 + var _gk = $d(); //#21158 + $k[$j++] = _gk; //#21161 + if (!$_.dontdraw) { //#21161 + bwipp_renmatrix(); //#21161 + } //#21161 + $_ = Object.getPrototypeOf($_); //#21163 + $_ = Object.getPrototypeOf($_); //#21165 +} //bwipp_qrcode function bwipp_swissqrcode() { - $_ = Object.create($_); //#20909 - $_.dontdraw = false; //#20912 - $_.parse = false; //#20913 - $k[$j++] = $_; //#20915 - bwipp_processoptions(); //#20915 - $_.options = $k[--$j]; //#20915 - $_.barcode = $k[--$j]; //#20916 + $_ = Object.create($_); //#21195 + $_.dontdraw = false; //#21198 + $_.parse = false; //#21199 + $k[$j++] = $_; //#21201 + bwipp_processoptions(); //#21201 + $_.options = $k[--$j]; //#21201 + $_.barcode = $k[--$j]; //#21202 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#20922 - $_.fncvals = _3; //#20923 - $k[$j++] = 'barcode'; //#20924 - $k[$j++] = $_.barcode; //#20924 - $k[$j++] = $_.fncvals; //#20924 - bwipp_parseinput(); //#20924 - var _6 = $k[--$j]; //#20924 - $_[$k[--$j]] = _6; //#20924 - $_.barlen = $_.barcode.length; //#20925 - delete $_.options["parse"]; //#20926 - if ($_.barcode.length > 997) { //#20931 - $k[$j++] = 'bwipp.swissqrcodeBadLength#20930'; //#20930 - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#20930 - bwipp_raiseerror(); //#20930 - } //#20930 - $put($_.options, "dontdraw", true); //#20934 - $k[$j++] = 'args'; //#20935 - $k[$j++] = $_.barcode; //#20935 - $k[$j++] = $_.options; //#20935 - bwipp_qrcode(); //#20935 - var _E = $k[--$j]; //#20935 - $_[$k[--$j]] = _E; //#20935 - $put($_.args, "opt", $_.options); //#20937 - $k[$j++] = $_.args; //#21006 - if (!$_.dontdraw) { //#21006 - $$.save(); //#20951 - var _K = $$.currpos(); //#20952 - $$.translate(_K.x, _K.y); //#20952 - var _L = 72 / 25.4; //#20953 - $$.scale(_L, _L); //#20953 - $$.save(); //#20956 - $$.newpath(); //#20957 - $$.moveto(0, 0); //#20958 - $$.lineto(46, 0); //#20959 - $$.lineto(46, 46); //#20960 - $$.lineto(0, 46); //#20961 - $$.closepath(); //#20962 - $$.moveto(19.5, 19.5); //#20963 - $$.lineto(19.5, 26.5); //#20964 - $$.lineto(26.5, 26.5); //#20965 - $$.lineto(26.5, 19.5); //#20966 - $$.closepath(); //#20967 - $$.clip(); //#20968 - $$.save(); //#20971 - $$.moveto(0, 0); //#20972 - var _O = (46 / $get($_.args, "pixx")) / 2; //#20973 - $$.scale(_O, _O); //#20973 - bwipp_renmatrix(); //#20974 - $$.restore(); //#20975 - $$.restore(); //#20977 - $$.translate(19.5, 19.5); //#20980 - var _P = 7 / 83; //#20981 - $$.scale(_P, _P); //#20981 - $$.newpath(); //#20983 - $$.moveto(6, 6); //#20984 - $$.lineto(6, 77); //#20985 - $$.lineto(77, 77); //#20986 - $$.lineto(77, 6); //#20987 - $$.closepath(); //#20988 - $$.moveto(49, 18); //#20989 - $$.lineto(49, 34); //#20990 - $$.lineto(65, 34); //#20991 - $$.lineto(65, 49); //#20992 - $$.lineto(49, 49); //#20993 - $$.lineto(49, 65); //#20994 - $$.lineto(34, 65); //#20995 - $$.lineto(34, 49); //#20996 - $$.lineto(18, 49); //#20997 - $$.lineto(18, 34); //#20998 - $$.lineto(34, 34); //#20999 - $$.lineto(34, 18); //#21000 - $$.closepath(); //#21001 - $$.setrgbcolor(0, 0, 0); //#21002 - $$.fill(); //#21002 - $$.restore(); //#21004 - } //#21004 - $_ = Object.getPrototypeOf($_); //#21008 -} - + ]); //#21208 + $_.fncvals = _3; //#21209 + $k[$j++] = 'barcode'; //#21210 + $k[$j++] = $_.barcode; //#21210 + $k[$j++] = $_.fncvals; //#21210 + bwipp_parseinput(); //#21210 + var _6 = $k[--$j]; //#21210 + $_[$k[--$j]] = _6; //#21210 + $_.barlen = $_.barcode.length; //#21211 + delete $_.options["parse"]; //#21212 + if ($_.barcode.length > 997) { //#21217 + $k[$j++] = 'bwipp.swissqrcodeBadLength#21216'; //#21216 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#21216 + bwipp_raiseerror(); //#21216 + } //#21216 + $put($_.options, "dontdraw", true); //#21220 + $k[$j++] = 'args'; //#21221 + $k[$j++] = $_.barcode; //#21221 + $k[$j++] = $_.options; //#21221 + bwipp_qrcode(); //#21221 + var _E = $k[--$j]; //#21221 + $_[$k[--$j]] = _E; //#21221 + $put($_.args, "opt", $_.options); //#21223 + $k[$j++] = $_.args; //#21292 + if (!$_.dontdraw) { //#21292 + $$.save(); //#21237 + var _K = $$.currpos(); //#21238 + $$.translate(_K.x, _K.y); //#21238 + var _L = 72 / 25.4; //#21239 + $$.scale(_L, _L); //#21239 + $$.save(); //#21242 + $$.newpath(); //#21243 + $$.moveto(0, 0); //#21244 + $$.lineto(46, 0); //#21245 + $$.lineto(46, 46); //#21246 + $$.lineto(0, 46); //#21247 + $$.closepath(); //#21248 + $$.moveto(19.5, 19.5); //#21249 + $$.lineto(19.5, 26.5); //#21250 + $$.lineto(26.5, 26.5); //#21251 + $$.lineto(26.5, 19.5); //#21252 + $$.closepath(); //#21253 + $$.clip(); //#21254 + $$.save(); //#21257 + $$.moveto(0, 0); //#21258 + var _O = (46 / $get($_.args, "pixx")) / 2; //#21259 + $$.scale(_O, _O); //#21259 + bwipp_renmatrix(); //#21260 + $$.restore(); //#21261 + $$.restore(); //#21263 + $$.translate(19.5, 19.5); //#21266 + var _P = 7 / 83; //#21267 + $$.scale(_P, _P); //#21267 + $$.newpath(); //#21269 + $$.moveto(6, 6); //#21270 + $$.lineto(6, 77); //#21271 + $$.lineto(77, 77); //#21272 + $$.lineto(77, 6); //#21273 + $$.closepath(); //#21274 + $$.moveto(49, 18); //#21275 + $$.lineto(49, 34); //#21276 + $$.lineto(65, 34); //#21277 + $$.lineto(65, 49); //#21278 + $$.lineto(49, 49); //#21279 + $$.lineto(49, 65); //#21280 + $$.lineto(34, 65); //#21281 + $$.lineto(34, 49); //#21282 + $$.lineto(18, 49); //#21283 + $$.lineto(18, 34); //#21284 + $$.lineto(34, 34); //#21285 + $$.lineto(34, 18); //#21286 + $$.closepath(); //#21287 + $$.setrgbcolor(0, 0, 0); //#21288 + $$.fill(); //#21288 + $$.restore(); //#21290 + } //#21290 + $_ = Object.getPrototypeOf($_); //#21294 +} //bwipp_swissqrcode function bwipp_microqrcode() { - $_ = Object.create($_); //#21037 - $_.dontdraw = false; //#21040 - $k[$j++] = $_; //#21042 - bwipp_processoptions(); //#21042 - $_.options = $k[--$j]; //#21042 - $_.barcode = $k[--$j]; //#21043 - $put($_.options, "dontdraw", true); //#21046 - $put($_.options, "format", "micro"); //#21047 - $k[$j++] = 'args'; //#21049 - $k[$j++] = $_.barcode; //#21049 - $k[$j++] = $_.options; //#21049 - bwipp_qrcode(); //#21049 - var _6 = $k[--$j]; //#21049 - $_[$k[--$j]] = _6; //#21049 - $put($_.args, "opt", $_.options); //#21051 - $k[$j++] = $_.args; //#21054 - if (!$_.dontdraw) { //#21054 - bwipp_renmatrix(); //#21054 - } //#21054 - $_ = Object.getPrototypeOf($_); //#21056 -} - + $_ = Object.create($_); //#21323 + $_.dontdraw = false; //#21326 + $k[$j++] = $_; //#21328 + bwipp_processoptions(); //#21328 + $_.options = $k[--$j]; //#21328 + $_.barcode = $k[--$j]; //#21329 + $put($_.options, "dontdraw", true); //#21332 + $put($_.options, "format", "micro"); //#21333 + $k[$j++] = 'args'; //#21335 + $k[$j++] = $_.barcode; //#21335 + $k[$j++] = $_.options; //#21335 + bwipp_qrcode(); //#21335 + var _6 = $k[--$j]; //#21335 + $_[$k[--$j]] = _6; //#21335 + $put($_.args, "opt", $_.options); //#21337 + $k[$j++] = $_.args; //#21340 + if (!$_.dontdraw) { //#21340 + bwipp_renmatrix(); //#21340 + } //#21340 + $_ = Object.getPrototypeOf($_); //#21342 +} //bwipp_microqrcode function bwipp_rectangularmicroqrcode() { - $_ = Object.create($_); //#21085 - $_.dontdraw = false; //#21088 - $k[$j++] = $_; //#21090 - bwipp_processoptions(); //#21090 - $_.options = $k[--$j]; //#21090 - $_.barcode = $k[--$j]; //#21091 - $put($_.options, "dontdraw", true); //#21094 - $put($_.options, "format", "rmqr"); //#21095 - $k[$j++] = 'args'; //#21097 - $k[$j++] = $_.barcode; //#21097 - $k[$j++] = $_.options; //#21097 - bwipp_qrcode(); //#21097 - var _6 = $k[--$j]; //#21097 - $_[$k[--$j]] = _6; //#21097 - $put($_.args, "opt", $_.options); //#21099 - $k[$j++] = $_.args; //#21102 - if (!$_.dontdraw) { //#21102 - bwipp_renmatrix(); //#21102 - } //#21102 - $_ = Object.getPrototypeOf($_); //#21104 -} - + $_ = Object.create($_); //#21371 + $_.dontdraw = false; //#21374 + $k[$j++] = $_; //#21376 + bwipp_processoptions(); //#21376 + $_.options = $k[--$j]; //#21376 + $_.barcode = $k[--$j]; //#21377 + $put($_.options, "dontdraw", true); //#21380 + $put($_.options, "format", "rmqr"); //#21381 + $k[$j++] = 'args'; //#21383 + $k[$j++] = $_.barcode; //#21383 + $k[$j++] = $_.options; //#21383 + bwipp_qrcode(); //#21383 + var _6 = $k[--$j]; //#21383 + $_[$k[--$j]] = _6; //#21383 + $put($_.args, "opt", $_.options); //#21385 + $k[$j++] = $_.args; //#21388 + if (!$_.dontdraw) { //#21388 + bwipp_renmatrix(); //#21388 + } //#21388 + $_ = Object.getPrototypeOf($_); //#21390 +} //bwipp_rectangularmicroqrcode function bwipp_maxicode() { - $_ = Object.create($_); //#21135 - $_.dontdraw = false; //#21138 - $_.mode = -1; //#21139 - $_.sam = -1; //#21140 - $_.parse = false; //#21141 - $_.parsefnc = false; //#21142 - $k[$j++] = $_; //#21144 - bwipp_processoptions(); //#21144 - $_.options = $k[--$j]; //#21144 - $_.barcode = $k[--$j]; //#21145 - if ($eq($_.barcode, "")) { //#21149 - $k[$j++] = 'bwipp.maxicodeEmptyData#21148'; //#21148 - $k[$j++] = "The data must not be empty"; //#21148 - bwipp_raiseerror(); //#21148 - } //#21148 - if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21153 - $k[$j++] = 'bwipp.maxicodeBadMode#21152'; //#21152 - $k[$j++] = "Mode must be 2 to 6"; //#21152 - bwipp_raiseerror(); //#21152 - } //#21152 - if ($_.sam != -1) { //#21165 - $k[$j++] = true; //#21161 - for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21161 - var _9 = $_.sam; //#21158 - if ((_9 < 12) || (_9 > 88)) { //#21158 - $j--; //#21158 - $k[$j++] = false; //#21158 - break; //#21158 - } //#21158 - var _B = $_.sam % 10; //#21159 - if ((_B < 2) || (_B > 8)) { //#21159 - $j--; //#21159 - $k[$j++] = false; //#21159 - break; //#21159 - } //#21159 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21160 - $j--; //#21160 - $k[$j++] = false; //#21160 - break; //#21160 - } //#21160 - } //#21160 - if ($nt($k[--$j])) { //#21164 - $k[$j++] = 'bwipp.maxicodeBadSAM#21163'; //#21163 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21163 - bwipp_raiseerror(); //#21163 - } //#21163 - } //#21163 - bwipp_loadctx(bwipp_maxicode) //#21167 + $_ = Object.create($_); //#21421 + $_.dontdraw = false; //#21424 + $_.mode = -1; //#21425 + $_.sam = -1; //#21426 + $_.parse = false; //#21427 + $_.parsefnc = false; //#21428 + $k[$j++] = $_; //#21430 + bwipp_processoptions(); //#21430 + $_.options = $k[--$j]; //#21430 + $_.barcode = $k[--$j]; //#21431 + if ($eq($_.barcode, "")) { //#21435 + $k[$j++] = 'bwipp.maxicodeEmptyData#21434'; //#21434 + $k[$j++] = "The data must not be empty"; //#21434 + bwipp_raiseerror(); //#21434 + } //#21434 + if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21439 + $k[$j++] = 'bwipp.maxicodeBadMode#21438'; //#21438 + $k[$j++] = "Mode must be 2 to 6"; //#21438 + bwipp_raiseerror(); //#21438 + } //#21438 + if ($_.sam != -1) { //#21451 + $k[$j++] = true; //#21447 + for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21447 + var _9 = $_.sam; //#21444 + if ((_9 < 12) || (_9 > 88)) { //#21444 + $j--; //#21444 + $k[$j++] = false; //#21444 + break; //#21444 + } //#21444 + var _B = $_.sam % 10; //#21445 + if ((_B < 2) || (_B > 8)) { //#21445 + $j--; //#21445 + $k[$j++] = false; //#21445 + break; //#21445 + } //#21445 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21446 + $j--; //#21446 + $k[$j++] = false; //#21446 + break; //#21446 + } //#21446 + } //#21446 + if ($nt($k[--$j])) { //#21450 + $k[$j++] = 'bwipp.maxicodeBadSAM#21449'; //#21449 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21449 + bwipp_raiseerror(); //#21449 + } //#21449 + } //#21449 + bwipp_loadctx(bwipp_maxicode) //#21453 var _H = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#21173 - $_.fncvals = _H; //#21175 - $k[$j++] = 'msg'; //#21176 - $k[$j++] = $_.barcode; //#21176 - $k[$j++] = $_.fncvals; //#21176 - bwipp_parseinput(); //#21176 - var _K = $k[--$j]; //#21176 - $_[$k[--$j]] = _K; //#21176 - $_.msglen = $_.msg.length; //#21177 - if (($_.mode == 2) || ($_.mode == 3)) { //#21265 - $_.barcode = $s($_.msglen); //#21183 - for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21189 - $_.i = _T; //#21185 - if ($get($_.msg, $_.i) > 0) { //#21188 - $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21187 - } //#21187 - } //#21187 - $_.barlen = $_.barcode.length; //#21190 - $_.fid = ""; //#21193 - if ($_.barlen >= 7) { //#21199 - if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21198 - $_.fid = $geti($_.barcode, 0, 9); //#21196 - $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21197 - } //#21197 - } //#21197 - $search($_.barcode, "\x1d"); //#21203 - if ($k[--$j]) { //#21225 - $_.pcode = $k[--$j]; //#21204 - $j--; //#21204 - if ($_.mode == 2) { //#21220 - $k[$j++] = true; //#21210 - for (var _p = 0, _q = 1; _p < _q; _p++) { //#21210 - if ($_.pcode.length > 9) { //#21208 - $j--; //#21208 - $k[$j++] = false; //#21208 - break; //#21208 - } //#21208 - $forall($_.pcode, function() { //#21209 - var _t = $k[--$j]; //#21209 - if ((_t < 48) || (_t > 57)) { //#21209 - $j--; //#21209 - $k[$j++] = false; //#21209 - return true; //#21209 - } //#21209 - }); //#21209 - } //#21209 - if ($nt($k[--$j])) { //#21213 - $j--; //#21212 - $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21212'; //#21212 - $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21212 - bwipp_raiseerror(); //#21212 - } //#21212 - } else { //#21220 - $forall($_.pcode, function() { //#21222 - var _w = $k[--$j]; //#21216 - if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21221 - $j--; //#21220 - $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21220'; //#21220 - $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21220 - bwipp_raiseerror(); //#21220 - } //#21220 - }); //#21220 - } //#21220 - } else { //#21225 - $j--; //#21225 - $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21225'; //#21225 - $k[$j++] = "Expected postcode followed by group separator character"; //#21225 - bwipp_raiseerror(); //#21225 - } //#21225 - $search($k[--$j], "\x1d"); //#21227 - if ($k[--$j]) { //#21238 - $_.ccode = $k[--$j]; //#21228 - $j--; //#21228 - $k[$j++] = true; //#21233 - for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21233 - if ($_.ccode.length != 3) { //#21231 - $j--; //#21231 - $k[$j++] = false; //#21231 - break; //#21231 - } //#21231 - $forall($_.ccode, function() { //#21232 - var _14 = $k[--$j]; //#21232 - if ((_14 < 48) || (_14 > 57)) { //#21232 - $j--; //#21232 - $k[$j++] = false; //#21232 - return true; //#21232 - } //#21232 - }); //#21232 - } //#21232 - if ($nt($k[--$j])) { //#21236 - $j--; //#21235 - $k[$j++] = 'bwipp.maxicodeBadCountryCode#21235'; //#21235 - $k[$j++] = "Country code must be three digits"; //#21235 - bwipp_raiseerror(); //#21235 - } //#21235 - } else { //#21238 - $j--; //#21238 - $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21238'; //#21238 - $k[$j++] = "Expected country code followed by group separator character"; //#21238 - bwipp_raiseerror(); //#21238 - } //#21238 - $search($k[--$j], "\x1d"); //#21240 - if ($k[--$j]) { //#21251 - $_.scode = $k[--$j]; //#21241 - $j--; //#21241 - $k[$j++] = true; //#21246 - for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21246 - if ($_.scode.length != 3) { //#21244 - $j--; //#21244 - $k[$j++] = false; //#21244 - break; //#21244 - } //#21244 - $forall($_.scode, function() { //#21245 - var _1D = $k[--$j]; //#21245 - if ((_1D < 48) || (_1D > 57)) { //#21245 - $j--; //#21245 - $k[$j++] = false; //#21245 - return true; //#21245 - } //#21245 - }); //#21245 - } //#21245 - if ($nt($k[--$j])) { //#21249 - $j--; //#21248 - $k[$j++] = 'bwipp.maxicodeBadServiceClass#21248'; //#21248 - $k[$j++] = "Service class must be three digits"; //#21248 - bwipp_raiseerror(); //#21248 - } //#21248 - } else { //#21251 - $j--; //#21251 - $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21251'; //#21251 - $k[$j++] = "Expected service class followed by group separator character"; //#21251 - bwipp_raiseerror(); //#21251 - } //#21251 - $_.barcode = $k[--$j]; //#21253 - var _1I = $s($_.barcode.length + $_.fid.length); //#21256 - $puti(_1I, 0, $_.fid); //#21257 - $puti(_1I, $_.fid.length, $_.barcode); //#21258 - $_.barcode = _1I; //#21259 - $_.barlen = $_.barcode.length; //#21260 - $k[$j++] = Infinity; //#21262 - var _1N = $_.barcode; //#21262 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21262 - $k[$j++] = $get(_1N, _1O); //#21262 - } //#21262 - $_.msg = $a(); //#21262 - $_.msglen = $_.msg.length; //#21263 - } //#21263 - if (!bwipp_maxicode.__21361__) { //#21361 - $_ = Object.create($_); //#21361 - $_.eci = -1; //#21269 - $_.pad = -2; //#21269 - $_.ns = -3; //#21269 - $_.la = -4; //#21270 - $_.lb = -5; //#21270 - $_.sa = -6; //#21271 - $_.sb = -7; //#21271 - $_.sc = -8; //#21271 - $_.sd = -9; //#21271 - $_.se = -10; //#21271 - $_.sa2 = -11; //#21272 - $_.sa3 = -12; //#21272 - $_.lkc = -13; //#21273 - $_.lkd = -14; //#21273 - $_.lke = -15; //#21273 - $_.pd2 = -16; //#21274 - $_.pd3 = -17; //#21274 - $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21343 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21346 - for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21355 - $_.i = _3G; //#21348 - $_.encs = $get($_.charmaps, $_.i); //#21349 - for (var _3K = 0; _3K <= 4; _3K += 1) { //#21354 - $_.j = _3K; //#21351 - var _3N = $get($_.encs, $_.j); //#21352 - $k[$j++] = _3N; //#21352 - if ($eq($type(_3N), 'stringtype')) { //#21352 - var _3Q = $get($k[--$j], 0); //#21352 - $k[$j++] = _3Q; //#21352 - } //#21352 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21353 - } //#21353 - } //#21353 - $_.seta = $get($_.charvals, 0); //#21356 - $_.setb = $get($_.charvals, 1); //#21357 - $_.setc = $get($_.charvals, 2); //#21358 - $_.setd = $get($_.charvals, 3); //#21359 - $_.sete = $get($_.charvals, 4); //#21360 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21360 - bwipp_maxicode.__21361__ = 1; //#21360 - $_ = Object.getPrototypeOf($_); //#21360 - } //#21360 - $k[$j++] = Infinity; //#21364 - for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21364 - $k[$j++] = 0; //#21364 - } //#21364 - $_.nseq = $a(); //#21364 - for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21372 - $_.i = _3m; //#21366 - var _3p = $get($_.msg, $_.i); //#21367 - if ((_3p >= 48) && (_3p <= 57)) { //#21370 - $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21368 - } else { //#21370 - $put($_.nseq, $_.i, 0); //#21370 - } //#21370 - } //#21370 - $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21373 + ]); //#21459 + $_.fncvals = _H; //#21461 + $k[$j++] = 'msg'; //#21462 + $k[$j++] = $_.barcode; //#21462 + $k[$j++] = $_.fncvals; //#21462 + bwipp_parseinput(); //#21462 + var _K = $k[--$j]; //#21462 + $_[$k[--$j]] = _K; //#21462 + $_.msglen = $_.msg.length; //#21463 + if (($_.mode == 2) || ($_.mode == 3)) { //#21551 + $_.barcode = $s($_.msglen); //#21469 + for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21475 + $_.i = _T; //#21471 + if ($get($_.msg, $_.i) > 0) { //#21474 + $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21473 + } //#21473 + } //#21473 + $_.barlen = $_.barcode.length; //#21476 + $_.fid = ""; //#21479 + if ($_.barlen >= 7) { //#21485 + if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21484 + $_.fid = $geti($_.barcode, 0, 9); //#21482 + $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21483 + } //#21483 + } //#21483 + $search($_.barcode, "\x1d"); //#21489 + if ($k[--$j]) { //#21511 + $_.pcode = $k[--$j]; //#21490 + $j--; //#21490 + if ($_.mode == 2) { //#21506 + $k[$j++] = true; //#21496 + for (var _p = 0, _q = 1; _p < _q; _p++) { //#21496 + if ($_.pcode.length > 9) { //#21494 + $j--; //#21494 + $k[$j++] = false; //#21494 + break; //#21494 + } //#21494 + $forall($_.pcode, function() { //#21495 + var _t = $k[--$j]; //#21495 + if ((_t < 48) || (_t > 57)) { //#21495 + $j--; //#21495 + $k[$j++] = false; //#21495 + return true; //#21495 + } //#21495 + }); //#21495 + } //#21495 + if ($nt($k[--$j])) { //#21499 + $j--; //#21498 + $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21498'; //#21498 + $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21498 + bwipp_raiseerror(); //#21498 + } //#21498 + } else { //#21506 + $forall($_.pcode, function() { //#21508 + var _w = $k[--$j]; //#21502 + if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21507 + $j--; //#21506 + $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21506'; //#21506 + $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21506 + bwipp_raiseerror(); //#21506 + } //#21506 + }); //#21506 + } //#21506 + } else { //#21511 + $j--; //#21511 + $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21511'; //#21511 + $k[$j++] = "Expected postcode followed by group separator character"; //#21511 + bwipp_raiseerror(); //#21511 + } //#21511 + $search($k[--$j], "\x1d"); //#21513 + if ($k[--$j]) { //#21524 + $_.ccode = $k[--$j]; //#21514 + $j--; //#21514 + $k[$j++] = true; //#21519 + for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21519 + if ($_.ccode.length != 3) { //#21517 + $j--; //#21517 + $k[$j++] = false; //#21517 + break; //#21517 + } //#21517 + $forall($_.ccode, function() { //#21518 + var _14 = $k[--$j]; //#21518 + if ((_14 < 48) || (_14 > 57)) { //#21518 + $j--; //#21518 + $k[$j++] = false; //#21518 + return true; //#21518 + } //#21518 + }); //#21518 + } //#21518 + if ($nt($k[--$j])) { //#21522 + $j--; //#21521 + $k[$j++] = 'bwipp.maxicodeBadCountryCode#21521'; //#21521 + $k[$j++] = "Country code must be three digits"; //#21521 + bwipp_raiseerror(); //#21521 + } //#21521 + } else { //#21524 + $j--; //#21524 + $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21524'; //#21524 + $k[$j++] = "Expected country code followed by group separator character"; //#21524 + bwipp_raiseerror(); //#21524 + } //#21524 + $search($k[--$j], "\x1d"); //#21526 + if ($k[--$j]) { //#21537 + $_.scode = $k[--$j]; //#21527 + $j--; //#21527 + $k[$j++] = true; //#21532 + for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21532 + if ($_.scode.length != 3) { //#21530 + $j--; //#21530 + $k[$j++] = false; //#21530 + break; //#21530 + } //#21530 + $forall($_.scode, function() { //#21531 + var _1D = $k[--$j]; //#21531 + if ((_1D < 48) || (_1D > 57)) { //#21531 + $j--; //#21531 + $k[$j++] = false; //#21531 + return true; //#21531 + } //#21531 + }); //#21531 + } //#21531 + if ($nt($k[--$j])) { //#21535 + $j--; //#21534 + $k[$j++] = 'bwipp.maxicodeBadServiceClass#21534'; //#21534 + $k[$j++] = "Service class must be three digits"; //#21534 + bwipp_raiseerror(); //#21534 + } //#21534 + } else { //#21537 + $j--; //#21537 + $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21537'; //#21537 + $k[$j++] = "Expected service class followed by group separator character"; //#21537 + bwipp_raiseerror(); //#21537 + } //#21537 + $_.barcode = $k[--$j]; //#21539 + var _1I = $s($_.barcode.length + $_.fid.length); //#21542 + $puti(_1I, 0, $_.fid); //#21543 + $puti(_1I, $_.fid.length, $_.barcode); //#21544 + $_.barcode = _1I; //#21545 + $_.barlen = $_.barcode.length; //#21546 + $k[$j++] = Infinity; //#21548 + var _1N = $_.barcode; //#21548 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21548 + $k[$j++] = $get(_1N, _1O); //#21548 + } //#21548 + $_.msg = $a(); //#21548 + $_.msglen = $_.msg.length; //#21549 + } //#21549 + if (!bwipp_maxicode.__21647__) { //#21647 + $_ = Object.create($_); //#21647 + $_.eci = -1; //#21555 + $_.pad = -2; //#21555 + $_.ns = -3; //#21555 + $_.la = -4; //#21556 + $_.lb = -5; //#21556 + $_.sa = -6; //#21557 + $_.sb = -7; //#21557 + $_.sc = -8; //#21557 + $_.sd = -9; //#21557 + $_.se = -10; //#21557 + $_.sa2 = -11; //#21558 + $_.sa3 = -12; //#21558 + $_.lkc = -13; //#21559 + $_.lkd = -14; //#21559 + $_.lke = -15; //#21559 + $_.pd2 = -16; //#21560 + $_.pd3 = -17; //#21560 + $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21629 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21632 + for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21641 + $_.i = _3G; //#21634 + $_.encs = $get($_.charmaps, $_.i); //#21635 + for (var _3K = 0; _3K <= 4; _3K += 1) { //#21640 + $_.j = _3K; //#21637 + var _3N = $get($_.encs, $_.j); //#21638 + $k[$j++] = _3N; //#21638 + if ($eq($type(_3N), 'stringtype')) { //#21638 + var _3Q = $get($k[--$j], 0); //#21638 + $k[$j++] = _3Q; //#21638 + } //#21638 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21639 + } //#21639 + } //#21639 + $_.seta = $get($_.charvals, 0); //#21642 + $_.setb = $get($_.charvals, 1); //#21643 + $_.setc = $get($_.charvals, 2); //#21644 + $_.setd = $get($_.charvals, 3); //#21645 + $_.sete = $get($_.charvals, 4); //#21646 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21646 + bwipp_maxicode.__21647__ = 1; //#21646 + $_ = Object.getPrototypeOf($_); //#21646 + } //#21646 + $k[$j++] = Infinity; //#21650 + for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21650 + $k[$j++] = 0; //#21650 + } //#21650 + $_.nseq = $a(); //#21650 + for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21658 + $_.i = _3m; //#21652 + var _3p = $get($_.msg, $_.i); //#21653 + if ((_3p >= 48) && (_3p <= 57)) { //#21656 + $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21654 + } else { //#21656 + $put($_.nseq, $_.i, 0); //#21656 + } //#21656 + } //#21656 + $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21659 $_.prefixinset = function() { - $k[$j++] = 0; //#21380 - for (;;) { //#21380 - var _40 = $k[--$j]; //#21378 - var _41 = $k[--$j]; //#21378 - $k[$j++] = _41; //#21378 - $k[$j++] = _40; //#21378 - if (_40 >= _41.length) { //#21378 - break; //#21378 - } //#21378 - var _42 = $k[--$j]; //#21379 - var _43 = $k[--$j]; //#21379 - var _45 = $k[--$j]; //#21379 - var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21379 - $k[$j++] = _45; //#21379 - $k[$j++] = _43; //#21379 - $k[$j++] = _42; //#21379 - if (_46) { //#21379 - var _47 = $k[--$j]; //#21379 - $k[$j++] = $f(_47 + 1); //#21379 - } else { //#21379 - break; //#21379 - } //#21379 - } //#21379 - var _48 = $k[--$j]; //#21381 - var _49 = $k[--$j]; //#21381 - $k[$j++] = _48; //#21381 - $k[$j++] = _49; //#21381 - $j--; //#21381 - var _4A = $k[--$j]; //#21381 - var _4B = $k[--$j]; //#21381 - $k[$j++] = _4A; //#21381 - $k[$j++] = _4B; //#21381 - $j--; //#21381 - }; //#21381 + $k[$j++] = 0; //#21666 + for (;;) { //#21666 + var _40 = $k[--$j]; //#21664 + var _41 = $k[--$j]; //#21664 + $k[$j++] = _41; //#21664 + $k[$j++] = _40; //#21664 + if (_40 >= _41.length) { //#21664 + break; //#21664 + } //#21664 + var _42 = $k[--$j]; //#21665 + var _43 = $k[--$j]; //#21665 + var _45 = $k[--$j]; //#21665 + var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21665 + $k[$j++] = _45; //#21665 + $k[$j++] = _43; //#21665 + $k[$j++] = _42; //#21665 + if (_46) { //#21665 + var _47 = $k[--$j]; //#21665 + $k[$j++] = $f(_47 + 1); //#21665 + } else { //#21665 + break; //#21665 + } //#21665 + } //#21665 + var _48 = $k[--$j]; //#21667 + var _49 = $k[--$j]; //#21667 + $k[$j++] = _48; //#21667 + $k[$j++] = _49; //#21667 + $j--; //#21667 + var _4A = $k[--$j]; //#21667 + var _4B = $k[--$j]; //#21667 + $k[$j++] = _4A; //#21667 + $k[$j++] = _4B; //#21667 + $j--; //#21667 + }; //#21667 $_.enc = function() { - var _4C = $k[--$j]; //#21385 - $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21385 - $_.j = $_.j + 1; //#21386 - }; //#21386 - $_.out = $a(144); //#21389 - $_.i = 0; //#21390 - $_.j = 0; //#21390 - $_.cset = "seta"; //#21390 - for (;;) { //#21542 - if ($_.i == $_.msglen) { //#21399 - if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21397 - $k[$j++] = $_.la; //#21395 - $k[$j++] = $_[$_.cset]; //#21395 - $_.enc(); //#21395 - $_.cset = "seta"; //#21396 - } //#21396 - break; //#21398 - } //#21398 - for (;;) { //#21541 - if ($get($_.msg, $_.i) <= -1000000) { //#21428 - $k[$j++] = $_.eci; //#21403 - $k[$j++] = $_[$_.cset]; //#21403 - $_.enc(); //#21403 - var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21405 - $k[$j++] = _4Z; //#21423 - if (_4Z <= 31) { //#21422 - var _4a = $k[--$j]; //#21406 - $k[$j++] = _4a & 63; //#21407 - $astore($a(1)); //#21407 - } else { //#21422 - var _4c = $k[--$j]; //#21408 - $k[$j++] = _4c; //#21423 - if (_4c <= 1023) { //#21422 - var _4d = $k[--$j]; //#21409 - $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21411 - $k[$j++] = _4d & 63; //#21411 - $astore($a(2)); //#21411 - } else { //#21422 - var _4f = $k[--$j]; //#21412 - $k[$j++] = _4f; //#21423 - if (_4f <= 32767) { //#21422 - var _4g = $k[--$j]; //#21413 - $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21416 - $k[$j++] = (_4g >>> 6) & 63; //#21416 - $k[$j++] = _4g & 63; //#21416 - $astore($a(3)); //#21416 - } else { //#21422 - var _4i = $k[--$j]; //#21418 - $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21422 - $k[$j++] = (_4i >>> 12) & 63; //#21422 - $k[$j++] = (_4i >>> 6) & 63; //#21422 - $k[$j++] = _4i & 63; //#21422 - $astore($a(4)); //#21422 - } //#21422 - } //#21422 - } //#21422 - var _4k = $k[--$j]; //#21424 - $puti($_.out, $_.j, _4k); //#21424 - $_.j = _4k.length + $_.j; //#21425 - $_.i = $_.i + 1; //#21426 - break; //#21427 - } //#21427 - if ($get($_.nseq, $_.i) >= 9) { //#21439 - var _4u = $geti($_.msg, $_.i, 9); //#21432 - $k[$j++] = 0; //#21432 - for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21432 - var _4y = $k[--$j]; //#21432 - $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21432 - } //#21432 - var _4z = $k[--$j]; //#21432 - $k[$j++] = ~~(_4z / 10); //#21433 - for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21433 - var _52 = $k[--$j]; //#21433 - $k[$j++] = _52 & 63; //#21433 - $k[$j++] = _52 >>> 6; //#21433 - } //#21433 - $k[$j++] = $get($_[$_.cset], $_.ns); //#21434 - for (var _57 = 0; _57 <= 10; _57 += 2) { //#21434 - var _58 = $k[$j - 1 - _57]; //#21434 - $k[$j++] = _58; //#21434 - } //#21434 - $astore($a(6)); //#21434 - var _5A = $k[--$j]; //#21434 - var _5B = $k[--$j]; //#21434 - var _5C = $k[--$j]; //#21434 - var _5D = $k[--$j]; //#21434 - var _5E = $k[--$j]; //#21434 - var _5F = $k[--$j]; //#21434 - var _5G = $k[--$j]; //#21434 - $k[$j++] = _5A; //#21434 - $k[$j++] = _5G; //#21434 - $k[$j++] = _5F; //#21434 - $k[$j++] = _5E; //#21434 - $k[$j++] = _5D; //#21434 - $k[$j++] = _5C; //#21434 - $k[$j++] = _5B; //#21434 - for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21434 - $j--; //#21434 - } //#21434 - $puti($_.out, $_.j, $k[--$j]); //#21435 - $_.i = $_.i + 9; //#21436 - $_.j = $_.j + 6; //#21437 - break; //#21438 - } //#21438 - $_.char1 = $get($_.msg, $_.i); //#21442 - $k[$j++] = 'char2'; //#21443 - if (($_.i + 1) < $_.msglen) { //#21443 - $k[$j++] = $get($_.msg, $_.i + 1); //#21443 - } else { //#21443 - $k[$j++] = -99; //#21443 - } //#21443 - var _5W = $k[--$j]; //#21443 - $_[$k[--$j]] = _5W; //#21443 - $k[$j++] = 'char3'; //#21444 - if (($_.i + 2) < $_.msglen) { //#21444 - $k[$j++] = $get($_.msg, $_.i + 2); //#21444 - } else { //#21444 - $k[$j++] = -99; //#21444 - } //#21444 - var _5d = $k[--$j]; //#21444 - $_[$k[--$j]] = _5d; //#21444 - var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21447 - if (_5i) { //#21451 - $k[$j++] = $_.char1; //#21448 - $k[$j++] = $_[$_.cset]; //#21448 - $_.enc(); //#21448 - $_.i = $_.i + 1; //#21449 - break; //#21450 - } //#21450 - var _5q = $get($_.setb, $_.char1) !== undefined; //#21454 - if ($eq($_.cset, "seta") && _5q) { //#21464 - var _5t = $get($_.setb, $_.char2) !== undefined; //#21455 - if (_5t) { //#21461 - $k[$j++] = $_.lb; //#21456 - $k[$j++] = $_.seta; //#21456 - $_.enc(); //#21456 - $_.cset = "setb"; //#21457 - } else { //#21461 - $k[$j++] = $_.sb; //#21459 - $k[$j++] = $_.seta; //#21459 - $_.enc(); //#21459 - $k[$j++] = $_.char1; //#21460 - $k[$j++] = $_.setb; //#21460 - $_.enc(); //#21460 - $_.i = $_.i + 1; //#21461 - } //#21461 - break; //#21463 - } //#21463 - var _64 = $get($_.seta, $_.char1) !== undefined; //#21467 - if ($eq($_.cset, "setb") && _64) { //#21492 - var _65 = $_.seta; //#21468 - var _66 = $_.msg; //#21468 - var _67 = $_.i; //#21468 - var _68 = $_.msglen; //#21468 - var _69 = $_.i; //#21468 - var _6A = _68 - _69; //#21468 - var _6B = 4; //#21468 - if (4 > (_68 - _69)) { //#21468 - var _ = _6A; //#21468 - _6A = _6B; //#21468 - _6B = _; //#21468 - } //#21468 - $k[$j++] = 'p'; //#21468 - $k[$j++] = _65; //#21468 - $k[$j++] = $geti(_66, _67, _6B); //#21468 - $_.prefixinset(); //#21468 - var _6D = $k[--$j]; //#21468 - $_[$k[--$j]] = _6D; //#21468 - if ($_.p == 1) { //#21473 - $k[$j++] = $_.sa; //#21470 - $k[$j++] = $_.setb; //#21470 - $_.enc(); //#21470 - $k[$j++] = $_.char1; //#21471 - $k[$j++] = $_.seta; //#21471 - $_.enc(); //#21471 - $_.i = $_.i + 1; //#21472 - } //#21472 - if ($_.p == 2) { //#21479 - $k[$j++] = $_.sa2; //#21475 - $k[$j++] = $_.setb; //#21475 - $_.enc(); //#21475 - $k[$j++] = $_.char1; //#21476 - $k[$j++] = $_.seta; //#21476 - $_.enc(); //#21476 - $k[$j++] = $_.char2; //#21477 - $k[$j++] = $_.seta; //#21477 - $_.enc(); //#21477 - $_.i = $_.i + 2; //#21478 - } //#21478 - if ($_.p == 3) { //#21486 - $k[$j++] = $_.sa3; //#21481 - $k[$j++] = $_.setb; //#21481 - $_.enc(); //#21481 - $k[$j++] = $_.char1; //#21482 - $k[$j++] = $_.seta; //#21482 - $_.enc(); //#21482 - $k[$j++] = $_.char2; //#21483 - $k[$j++] = $_.seta; //#21483 - $_.enc(); //#21483 - $k[$j++] = $_.char3; //#21484 - $k[$j++] = $_.seta; //#21484 - $_.enc(); //#21484 - $_.i = $_.i + 3; //#21485 - } //#21485 - if ($_.p >= 4) { //#21490 - $k[$j++] = $_.la; //#21488 - $k[$j++] = $_.setb; //#21488 - $_.enc(); //#21488 - $_.cset = "seta"; //#21489 - } //#21489 - break; //#21491 - } //#21491 - var _6i = $get($_.seta, $_.char1) !== undefined; //#21495 - if (_6i) { //#21499 - $k[$j++] = $_.la; //#21496 - $k[$j++] = $_[$_.cset]; //#21496 - $_.enc(); //#21496 - $_.cset = "seta"; //#21497 - break; //#21498 - } //#21498 - var _6o = $get($_.setb, $_.char1) !== undefined; //#21500 - if (_6o) { //#21504 - $k[$j++] = $_.lb; //#21501 - $k[$j++] = $_[$_.cset]; //#21501 - $_.enc(); //#21501 - $_.cset = "setb"; //#21502 - break; //#21503 - } //#21503 - var _6u = $get($_.setc, $_.char1) !== undefined; //#21507 - if (_6u) { //#21507 - $_.setx = "setc"; //#21507 - $_.sx = $_.sc; //#21507 - $_.lkx = $_.lkc; //#21507 - } //#21507 - var _6z = $get($_.setd, $_.char1) !== undefined; //#21508 - if (_6z) { //#21508 - $_.setx = "setd"; //#21508 - $_.sx = $_.sd; //#21508 - $_.lkx = $_.lkd; //#21508 - } //#21508 - var _74 = $get($_.sete, $_.char1) !== undefined; //#21509 - if (_74) { //#21509 - $_.setx = "sete"; //#21509 - $_.sx = $_.se; //#21509 - $_.lkx = $_.lke; //#21509 - } //#21509 - var _78 = $_[$_.setx]; //#21512 - var _79 = $_.msg; //#21512 - var _7A = $_.i; //#21512 - var _7B = $_.msglen; //#21512 - var _7C = $_.i; //#21512 - var _7D = _7B - _7C; //#21512 - var _7E = 4; //#21512 - if (4 > (_7B - _7C)) { //#21512 - var _ = _7D; //#21512 - _7D = _7E; //#21512 - _7E = _; //#21512 - } //#21512 - $k[$j++] = 'p'; //#21512 - $k[$j++] = _78; //#21512 - $k[$j++] = $geti(_79, _7A, _7E); //#21512 - $_.prefixinset(); //#21512 - var _7G = $k[--$j]; //#21512 - $_[$k[--$j]] = _7G; //#21512 - if ($_.p == 1) { //#21517 - $k[$j++] = $_.sx; //#21514 - $k[$j++] = $_[$_.cset]; //#21514 - $_.enc(); //#21514 - $k[$j++] = $_.char1; //#21515 - $k[$j++] = $_[$_.setx]; //#21515 - $_.enc(); //#21515 - $_.i = $_.i + 1; //#21516 - } //#21516 - if ($_.p == 2) { //#21524 - $k[$j++] = $_.sx; //#21519 - $k[$j++] = $_[$_.cset]; //#21519 - $_.enc(); //#21519 - $k[$j++] = $_.char1; //#21520 - $k[$j++] = $_[$_.setx]; //#21520 - $_.enc(); //#21520 - $k[$j++] = $_.sx; //#21521 - $k[$j++] = $_[$_.cset]; //#21521 - $_.enc(); //#21521 - $k[$j++] = $_.char2; //#21522 - $k[$j++] = $_[$_.setx]; //#21522 - $_.enc(); //#21522 - $_.i = $_.i + 2; //#21523 - } //#21523 - if ($_.p == 3) { //#21533 - $k[$j++] = $_.sx; //#21526 - $k[$j++] = $_[$_.cset]; //#21526 - $_.enc(); //#21526 - $k[$j++] = $_.char1; //#21527 - $k[$j++] = $_[$_.setx]; //#21527 - $_.enc(); //#21527 - $k[$j++] = $_.sx; //#21528 - $k[$j++] = $_[$_.cset]; //#21528 - $_.enc(); //#21528 - $k[$j++] = $_.char2; //#21529 - $k[$j++] = $_[$_.setx]; //#21529 - $_.enc(); //#21529 - $k[$j++] = $_.sx; //#21530 - $k[$j++] = $_[$_.cset]; //#21530 - $_.enc(); //#21530 - $k[$j++] = $_.char3; //#21531 - $k[$j++] = $_[$_.setx]; //#21531 - $_.enc(); //#21531 - $_.i = $_.i + 3; //#21532 - } //#21532 - if ($_.p >= 4) { //#21538 - $k[$j++] = $_.sx; //#21535 - $k[$j++] = $_[$_.cset]; //#21535 - $_.enc(); //#21535 - $k[$j++] = $_.lkx; //#21536 - $k[$j++] = $_[$_.setx]; //#21536 - $_.enc(); //#21536 - $_.cset = $_.setx; //#21537 - } //#21537 - break; //#21540 - } //#21540 - } //#21540 - $_.encmsg = $geti($_.out, 0, $_.j); //#21543 - $_.padval = $get($_[$_.cset], $_.pad); //#21544 - $k[$j++] = 'sami'; //#21547 - if ($_.sam != -1) { //#21547 - $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21547 - } else { //#21547 - $k[$j++] = $a([]); //#21547 - } //#21547 - var _8L = $k[--$j]; //#21547 - $_[$k[--$j]] = _8L; //#21547 - $k[$j++] = Infinity; //#21548 - $aload($_.sami); //#21548 - $aload($_.encmsg); //#21548 - $_.encmsg = $a(); //#21548 - if (($_.mode == 2) || ($_.mode == 3)) { //#21607 - if ($_.encmsg.length > 84) { //#21555 - $k[$j++] = 'bwipp.maxicodeMode23TooLong#21554'; //#21554 - $k[$j++] = "The secondary message is too long"; //#21554 - bwipp_raiseerror(); //#21554 - } //#21554 - var _8U = $strcpy($s(4), "0000"); //#21558 - var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21558 - $puti(_8U, 4 - _8X.length, _8X); //#21558 - $_.mdb = _8U; //#21558 - var _8Z = $strcpy($s(10), "0000000000"); //#21559 - var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21559 - $puti(_8Z, 10 - _8c.length, _8c); //#21559 - $_.ccb = _8Z; //#21559 - var _8e = $strcpy($s(10), "0000000000"); //#21560 - var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21560 - $puti(_8e, 10 - _8h.length, _8h); //#21560 - $_.scb = _8e; //#21560 - $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21561 - if ($_.mode == 2) { //#21574 - var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21564 - $puti($_.pcb, 6 - _8o.length, _8o); //#21564 - var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21565 - $puti($_.pcb, 36 - _8s.length, _8s); //#21565 - } else { //#21574 - $k[$j++] = Infinity; //#21570 - var _8u = $strcpy($s(6), " "); //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = 0; //#21569 - if ($_.pcode.length > 6) { //#21569 - $k[$j++] = $geti($_.pcode, 0, 6); //#21569 - } else { //#21569 - $k[$j++] = $_.pcode; //#21569 - } //#21569 - var _8z = $k[--$j]; //#21569 - var _90 = $k[--$j]; //#21569 - $puti($k[--$j], _90, _8z); //#21569 - $forall($k[--$j], function() { //#21570 - var _95 = $get($_.seta, $k[--$j]); //#21570 - $k[$j++] = _95; //#21570 - }); //#21570 - $_.pccw = $a(); //#21570 - for (var _97 = 0; _97 <= 5; _97 += 1) { //#21575 - $_.i = _97; //#21573 - var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21574 - $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21574 - } //#21574 - } //#21574 - $_.scm = $s(60); //#21579 - $puti($_.scm, 2, $_.mdb); //#21580 - $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21581 - $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21582 - $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21583 - $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21584 - $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21585 - $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21586 - $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21587 - $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21588 - $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21589 - $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21590 - $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21591 - $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21592 - $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21595 - for (var _9t = 0; _9t <= 59; _9t += 1) { //#21601 - $_.i = _9t; //#21597 - $_.ps = ~~($_.i / 6); //#21598 - $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21599 - $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21600 - } //#21600 - $k[$j++] = Infinity; //#21604 - for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21604 - $k[$j++] = $_.padval; //#21604 - } //#21604 - $_.sec = $a(); //#21604 - $puti($_.sec, 0, $_.encmsg); //#21605 - } //#21605 - if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21628 - if ($_.mode == -1) { //#21615 - var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21614 - $_.mode = _AH; //#21614 - } //#21614 - $k[$j++] = Infinity; //#21617 - var _AJ = ($_.mode == 5) ? 78 : 94; //#21617 - for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21617 - $k[$j++] = $_.padval; //#21617 - } //#21617 - $_.cws = $a(); //#21617 - if ($_.encmsg.length > ($_.cws.length - 1)) { //#21620 - $k[$j++] = 'bwipp.maxicodeMode56TooLong#21619'; //#21619 - $k[$j++] = "The message is too long"; //#21619 - bwipp_raiseerror(); //#21619 - } //#21619 - $put($_.cws, 0, $_.mode); //#21621 - $puti($_.cws, 1, $_.encmsg); //#21622 - $_.pri = $geti($_.cws, 0, 10); //#21625 - $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21626 - } //#21626 - $k[$j++] = Infinity; //#21631 - $k[$j++] = 1; //#21631 - for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21631 - var _Ab = $k[--$j]; //#21631 - var _Ac = _Ab * 2; //#21631 - $k[$j++] = _Ab; //#21631 - $k[$j++] = _Ac; //#21631 - if (_Ac >= 64) { //#21631 - var _Ad = $k[--$j]; //#21631 - $k[$j++] = _Ad ^ 67; //#21631 - } //#21631 - } //#21631 - $_.rsalog = $a(); //#21631 - $_.rslog = $a(64); //#21632 - for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21633 - $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21633 - } //#21633 + var _4C = $k[--$j]; //#21671 + $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21671 + $_.j = $_.j + 1; //#21672 + }; //#21672 + $_.out = $a(144); //#21675 + $_.i = 0; //#21676 + $_.j = 0; //#21676 + $_.cset = "seta"; //#21676 + for (;;) { //#21828 + if ($_.i == $_.msglen) { //#21685 + if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21683 + $k[$j++] = $_.la; //#21681 + $k[$j++] = $_[$_.cset]; //#21681 + $_.enc(); //#21681 + $_.cset = "seta"; //#21682 + } //#21682 + break; //#21684 + } //#21684 + for (;;) { //#21827 + if ($get($_.msg, $_.i) <= -1000000) { //#21714 + $k[$j++] = $_.eci; //#21689 + $k[$j++] = $_[$_.cset]; //#21689 + $_.enc(); //#21689 + var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21691 + $k[$j++] = _4Z; //#21709 + if (_4Z <= 31) { //#21708 + var _4a = $k[--$j]; //#21692 + $k[$j++] = _4a & 63; //#21693 + $astore($a(1)); //#21693 + } else { //#21708 + var _4c = $k[--$j]; //#21694 + $k[$j++] = _4c; //#21709 + if (_4c <= 1023) { //#21708 + var _4d = $k[--$j]; //#21695 + $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21697 + $k[$j++] = _4d & 63; //#21697 + $astore($a(2)); //#21697 + } else { //#21708 + var _4f = $k[--$j]; //#21698 + $k[$j++] = _4f; //#21709 + if (_4f <= 32767) { //#21708 + var _4g = $k[--$j]; //#21699 + $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21702 + $k[$j++] = (_4g >>> 6) & 63; //#21702 + $k[$j++] = _4g & 63; //#21702 + $astore($a(3)); //#21702 + } else { //#21708 + var _4i = $k[--$j]; //#21704 + $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21708 + $k[$j++] = (_4i >>> 12) & 63; //#21708 + $k[$j++] = (_4i >>> 6) & 63; //#21708 + $k[$j++] = _4i & 63; //#21708 + $astore($a(4)); //#21708 + } //#21708 + } //#21708 + } //#21708 + var _4k = $k[--$j]; //#21710 + $puti($_.out, $_.j, _4k); //#21710 + $_.j = _4k.length + $_.j; //#21711 + $_.i = $_.i + 1; //#21712 + break; //#21713 + } //#21713 + if ($get($_.nseq, $_.i) >= 9) { //#21725 + var _4u = $geti($_.msg, $_.i, 9); //#21718 + $k[$j++] = 0; //#21718 + for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21718 + var _4y = $k[--$j]; //#21718 + $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21718 + } //#21718 + var _4z = $k[--$j]; //#21718 + $k[$j++] = ~~(_4z / 10); //#21719 + for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21719 + var _52 = $k[--$j]; //#21719 + $k[$j++] = _52 & 63; //#21719 + $k[$j++] = _52 >>> 6; //#21719 + } //#21719 + $k[$j++] = $get($_[$_.cset], $_.ns); //#21720 + for (var _57 = 0; _57 <= 10; _57 += 2) { //#21720 + var _58 = $k[$j - 1 - _57]; //#21720 + $k[$j++] = _58; //#21720 + } //#21720 + $astore($a(6)); //#21720 + var _5A = $k[--$j]; //#21720 + var _5B = $k[--$j]; //#21720 + var _5C = $k[--$j]; //#21720 + var _5D = $k[--$j]; //#21720 + var _5E = $k[--$j]; //#21720 + var _5F = $k[--$j]; //#21720 + var _5G = $k[--$j]; //#21720 + $k[$j++] = _5A; //#21720 + $k[$j++] = _5G; //#21720 + $k[$j++] = _5F; //#21720 + $k[$j++] = _5E; //#21720 + $k[$j++] = _5D; //#21720 + $k[$j++] = _5C; //#21720 + $k[$j++] = _5B; //#21720 + for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21720 + $j--; //#21720 + } //#21720 + $puti($_.out, $_.j, $k[--$j]); //#21721 + $_.i = $_.i + 9; //#21722 + $_.j = $_.j + 6; //#21723 + break; //#21724 + } //#21724 + $_.char1 = $get($_.msg, $_.i); //#21728 + $k[$j++] = 'char2'; //#21729 + if (($_.i + 1) < $_.msglen) { //#21729 + $k[$j++] = $get($_.msg, $_.i + 1); //#21729 + } else { //#21729 + $k[$j++] = -99; //#21729 + } //#21729 + var _5W = $k[--$j]; //#21729 + $_[$k[--$j]] = _5W; //#21729 + $k[$j++] = 'char3'; //#21730 + if (($_.i + 2) < $_.msglen) { //#21730 + $k[$j++] = $get($_.msg, $_.i + 2); //#21730 + } else { //#21730 + $k[$j++] = -99; //#21730 + } //#21730 + var _5d = $k[--$j]; //#21730 + $_[$k[--$j]] = _5d; //#21730 + var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21733 + if (_5i) { //#21737 + $k[$j++] = $_.char1; //#21734 + $k[$j++] = $_[$_.cset]; //#21734 + $_.enc(); //#21734 + $_.i = $_.i + 1; //#21735 + break; //#21736 + } //#21736 + var _5q = $get($_.setb, $_.char1) !== undefined; //#21740 + if ($eq($_.cset, "seta") && _5q) { //#21750 + var _5t = $get($_.setb, $_.char2) !== undefined; //#21741 + if (_5t) { //#21747 + $k[$j++] = $_.lb; //#21742 + $k[$j++] = $_.seta; //#21742 + $_.enc(); //#21742 + $_.cset = "setb"; //#21743 + } else { //#21747 + $k[$j++] = $_.sb; //#21745 + $k[$j++] = $_.seta; //#21745 + $_.enc(); //#21745 + $k[$j++] = $_.char1; //#21746 + $k[$j++] = $_.setb; //#21746 + $_.enc(); //#21746 + $_.i = $_.i + 1; //#21747 + } //#21747 + break; //#21749 + } //#21749 + var _64 = $get($_.seta, $_.char1) !== undefined; //#21753 + if ($eq($_.cset, "setb") && _64) { //#21778 + var _65 = $_.seta; //#21754 + var _66 = $_.msg; //#21754 + var _67 = $_.i; //#21754 + var _68 = $_.msglen; //#21754 + var _69 = $_.i; //#21754 + var _6A = _68 - _69; //#21754 + var _6B = 4; //#21754 + if (4 > (_68 - _69)) { //#21754 + var _ = _6A; //#21754 + _6A = _6B; //#21754 + _6B = _; //#21754 + } //#21754 + $k[$j++] = 'p'; //#21754 + $k[$j++] = _65; //#21754 + $k[$j++] = $geti(_66, _67, _6B); //#21754 + $_.prefixinset(); //#21754 + var _6D = $k[--$j]; //#21754 + $_[$k[--$j]] = _6D; //#21754 + if ($_.p == 1) { //#21759 + $k[$j++] = $_.sa; //#21756 + $k[$j++] = $_.setb; //#21756 + $_.enc(); //#21756 + $k[$j++] = $_.char1; //#21757 + $k[$j++] = $_.seta; //#21757 + $_.enc(); //#21757 + $_.i = $_.i + 1; //#21758 + } //#21758 + if ($_.p == 2) { //#21765 + $k[$j++] = $_.sa2; //#21761 + $k[$j++] = $_.setb; //#21761 + $_.enc(); //#21761 + $k[$j++] = $_.char1; //#21762 + $k[$j++] = $_.seta; //#21762 + $_.enc(); //#21762 + $k[$j++] = $_.char2; //#21763 + $k[$j++] = $_.seta; //#21763 + $_.enc(); //#21763 + $_.i = $_.i + 2; //#21764 + } //#21764 + if ($_.p == 3) { //#21772 + $k[$j++] = $_.sa3; //#21767 + $k[$j++] = $_.setb; //#21767 + $_.enc(); //#21767 + $k[$j++] = $_.char1; //#21768 + $k[$j++] = $_.seta; //#21768 + $_.enc(); //#21768 + $k[$j++] = $_.char2; //#21769 + $k[$j++] = $_.seta; //#21769 + $_.enc(); //#21769 + $k[$j++] = $_.char3; //#21770 + $k[$j++] = $_.seta; //#21770 + $_.enc(); //#21770 + $_.i = $_.i + 3; //#21771 + } //#21771 + if ($_.p >= 4) { //#21776 + $k[$j++] = $_.la; //#21774 + $k[$j++] = $_.setb; //#21774 + $_.enc(); //#21774 + $_.cset = "seta"; //#21775 + } //#21775 + break; //#21777 + } //#21777 + var _6i = $get($_.seta, $_.char1) !== undefined; //#21781 + if (_6i) { //#21785 + $k[$j++] = $_.la; //#21782 + $k[$j++] = $_[$_.cset]; //#21782 + $_.enc(); //#21782 + $_.cset = "seta"; //#21783 + break; //#21784 + } //#21784 + var _6o = $get($_.setb, $_.char1) !== undefined; //#21786 + if (_6o) { //#21790 + $k[$j++] = $_.lb; //#21787 + $k[$j++] = $_[$_.cset]; //#21787 + $_.enc(); //#21787 + $_.cset = "setb"; //#21788 + break; //#21789 + } //#21789 + var _6u = $get($_.setc, $_.char1) !== undefined; //#21793 + if (_6u) { //#21793 + $_.setx = "setc"; //#21793 + $_.sx = $_.sc; //#21793 + $_.lkx = $_.lkc; //#21793 + } //#21793 + var _6z = $get($_.setd, $_.char1) !== undefined; //#21794 + if (_6z) { //#21794 + $_.setx = "setd"; //#21794 + $_.sx = $_.sd; //#21794 + $_.lkx = $_.lkd; //#21794 + } //#21794 + var _74 = $get($_.sete, $_.char1) !== undefined; //#21795 + if (_74) { //#21795 + $_.setx = "sete"; //#21795 + $_.sx = $_.se; //#21795 + $_.lkx = $_.lke; //#21795 + } //#21795 + var _78 = $_[$_.setx]; //#21798 + var _79 = $_.msg; //#21798 + var _7A = $_.i; //#21798 + var _7B = $_.msglen; //#21798 + var _7C = $_.i; //#21798 + var _7D = _7B - _7C; //#21798 + var _7E = 4; //#21798 + if (4 > (_7B - _7C)) { //#21798 + var _ = _7D; //#21798 + _7D = _7E; //#21798 + _7E = _; //#21798 + } //#21798 + $k[$j++] = 'p'; //#21798 + $k[$j++] = _78; //#21798 + $k[$j++] = $geti(_79, _7A, _7E); //#21798 + $_.prefixinset(); //#21798 + var _7G = $k[--$j]; //#21798 + $_[$k[--$j]] = _7G; //#21798 + if ($_.p == 1) { //#21803 + $k[$j++] = $_.sx; //#21800 + $k[$j++] = $_[$_.cset]; //#21800 + $_.enc(); //#21800 + $k[$j++] = $_.char1; //#21801 + $k[$j++] = $_[$_.setx]; //#21801 + $_.enc(); //#21801 + $_.i = $_.i + 1; //#21802 + } //#21802 + if ($_.p == 2) { //#21810 + $k[$j++] = $_.sx; //#21805 + $k[$j++] = $_[$_.cset]; //#21805 + $_.enc(); //#21805 + $k[$j++] = $_.char1; //#21806 + $k[$j++] = $_[$_.setx]; //#21806 + $_.enc(); //#21806 + $k[$j++] = $_.sx; //#21807 + $k[$j++] = $_[$_.cset]; //#21807 + $_.enc(); //#21807 + $k[$j++] = $_.char2; //#21808 + $k[$j++] = $_[$_.setx]; //#21808 + $_.enc(); //#21808 + $_.i = $_.i + 2; //#21809 + } //#21809 + if ($_.p == 3) { //#21819 + $k[$j++] = $_.sx; //#21812 + $k[$j++] = $_[$_.cset]; //#21812 + $_.enc(); //#21812 + $k[$j++] = $_.char1; //#21813 + $k[$j++] = $_[$_.setx]; //#21813 + $_.enc(); //#21813 + $k[$j++] = $_.sx; //#21814 + $k[$j++] = $_[$_.cset]; //#21814 + $_.enc(); //#21814 + $k[$j++] = $_.char2; //#21815 + $k[$j++] = $_[$_.setx]; //#21815 + $_.enc(); //#21815 + $k[$j++] = $_.sx; //#21816 + $k[$j++] = $_[$_.cset]; //#21816 + $_.enc(); //#21816 + $k[$j++] = $_.char3; //#21817 + $k[$j++] = $_[$_.setx]; //#21817 + $_.enc(); //#21817 + $_.i = $_.i + 3; //#21818 + } //#21818 + if ($_.p >= 4) { //#21824 + $k[$j++] = $_.sx; //#21821 + $k[$j++] = $_[$_.cset]; //#21821 + $_.enc(); //#21821 + $k[$j++] = $_.lkx; //#21822 + $k[$j++] = $_[$_.setx]; //#21822 + $_.enc(); //#21822 + $_.cset = $_.setx; //#21823 + } //#21823 + break; //#21826 + } //#21826 + } //#21826 + $_.encmsg = $geti($_.out, 0, $_.j); //#21829 + $_.padval = $get($_[$_.cset], $_.pad); //#21830 + $k[$j++] = 'sami'; //#21833 + if ($_.sam != -1) { //#21833 + $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21833 + } else { //#21833 + $k[$j++] = $a([]); //#21833 + } //#21833 + var _8L = $k[--$j]; //#21833 + $_[$k[--$j]] = _8L; //#21833 + $k[$j++] = Infinity; //#21834 + $aload($_.sami); //#21834 + $aload($_.encmsg); //#21834 + $_.encmsg = $a(); //#21834 + if (($_.mode == 2) || ($_.mode == 3)) { //#21893 + if ($_.encmsg.length > 84) { //#21841 + $k[$j++] = 'bwipp.maxicodeMode23TooLong#21840'; //#21840 + $k[$j++] = "The secondary message is too long"; //#21840 + bwipp_raiseerror(); //#21840 + } //#21840 + var _8U = $strcpy($s(4), "0000"); //#21844 + var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21844 + $puti(_8U, 4 - _8X.length, _8X); //#21844 + $_.mdb = _8U; //#21844 + var _8Z = $strcpy($s(10), "0000000000"); //#21845 + var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21845 + $puti(_8Z, 10 - _8c.length, _8c); //#21845 + $_.ccb = _8Z; //#21845 + var _8e = $strcpy($s(10), "0000000000"); //#21846 + var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21846 + $puti(_8e, 10 - _8h.length, _8h); //#21846 + $_.scb = _8e; //#21846 + $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21847 + if ($_.mode == 2) { //#21860 + var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21850 + $puti($_.pcb, 6 - _8o.length, _8o); //#21850 + var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21851 + $puti($_.pcb, 36 - _8s.length, _8s); //#21851 + } else { //#21860 + $k[$j++] = Infinity; //#21854 + var _8u = $strcpy($s(6), " "); //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = 0; //#21855 + if ($_.pcode.length > 6) { //#21855 + $k[$j++] = $geti($_.pcode, 0, 6); //#21855 + } else { //#21855 + $k[$j++] = $_.pcode; //#21855 + } //#21855 + var _8z = $k[--$j]; //#21855 + var _90 = $k[--$j]; //#21855 + $puti($k[--$j], _90, _8z); //#21855 + $forall($k[--$j], function() { //#21856 + var _95 = $get($_.seta, $k[--$j]); //#21856 + $k[$j++] = _95; //#21856 + }); //#21856 + $_.pccw = $a(); //#21856 + for (var _97 = 0; _97 <= 5; _97 += 1) { //#21861 + $_.i = _97; //#21859 + var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21860 + $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21860 + } //#21860 + } //#21860 + $_.scm = $s(60); //#21865 + $puti($_.scm, 2, $_.mdb); //#21866 + $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21867 + $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21868 + $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21869 + $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21870 + $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21871 + $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21872 + $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21873 + $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21874 + $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21875 + $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21876 + $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21877 + $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21878 + $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21881 + for (var _9t = 0; _9t <= 59; _9t += 1) { //#21887 + $_.i = _9t; //#21883 + $_.ps = ~~($_.i / 6); //#21884 + $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21885 + $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21886 + } //#21886 + $k[$j++] = Infinity; //#21890 + for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21890 + $k[$j++] = $_.padval; //#21890 + } //#21890 + $_.sec = $a(); //#21890 + $puti($_.sec, 0, $_.encmsg); //#21891 + } //#21891 + if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21914 + if ($_.mode == -1) { //#21901 + var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21900 + $_.mode = _AH; //#21900 + } //#21900 + $k[$j++] = Infinity; //#21903 + var _AJ = ($_.mode == 5) ? 78 : 94; //#21903 + for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21903 + $k[$j++] = $_.padval; //#21903 + } //#21903 + $_.cws = $a(); //#21903 + if ($_.encmsg.length > ($_.cws.length - 1)) { //#21906 + $k[$j++] = 'bwipp.maxicodeMode56TooLong#21905'; //#21905 + $k[$j++] = "The message is too long"; //#21905 + bwipp_raiseerror(); //#21905 + } //#21905 + $put($_.cws, 0, $_.mode); //#21907 + $puti($_.cws, 1, $_.encmsg); //#21908 + $_.pri = $geti($_.cws, 0, 10); //#21911 + $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21912 + } //#21912 + if (!bwipp_maxicode.__21921__) { //#21921 + $_ = Object.create($_); //#21921 + $k[$j++] = Infinity; //#21918 + $k[$j++] = 1; //#21918 + for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21918 + var _Ab = $k[--$j]; //#21918 + var _Ac = _Ab * 2; //#21918 + $k[$j++] = _Ab; //#21918 + $k[$j++] = _Ac; //#21918 + if (_Ac >= 64) { //#21918 + var _Ad = $k[--$j]; //#21918 + $k[$j++] = _Ad ^ 67; //#21918 + } //#21918 + } //#21918 + $_.rsalog = $a(); //#21918 + $_.rslog = $a(64); //#21919 + for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21920 + $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21920 + } //#21920 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21920 + bwipp_maxicode.__21921__ = 1; //#21920 + $_ = Object.getPrototypeOf($_); //#21920 + } //#21920 $_.rsprod = function() { - var _Ak = $k[--$j]; //#21637 - var _Al = $k[--$j]; //#21637 - $k[$j++] = _Al; //#21641 - $k[$j++] = _Ak; //#21641 - if ((_Ak != 0) && (_Al != 0)) { //#21640 - var _Ao = $get($_.rslog, $k[--$j]); //#21638 - var _At = $get($_.rsalog, $f(_Ao + $get($_.rslog, $k[--$j])) % 63); //#21638 - $k[$j++] = _At; //#21638 - } else { //#21640 - $j -= 2; //#21640 - $k[$j++] = 0; //#21640 - } //#21640 - }; //#21640 + var _Al = $k[--$j]; //#21925 + var _Am = $k[--$j]; //#21925 + $k[$j++] = _Am; //#21929 + $k[$j++] = _Al; //#21929 + if ((_Al != 0) && (_Am != 0)) { //#21928 + var _Ap = $get($_.rslog, $k[--$j]); //#21926 + var _Au = $get($_.rsalog, $f(_Ap + $get($_.rslog, $k[--$j])) % 63); //#21926 + $k[$j++] = _Au; //#21926 + } else { //#21928 + $j -= 2; //#21928 + $k[$j++] = 0; //#21928 + } //#21928 + }; //#21928 $_.rscodes = function() { - $_.rsnum = $k[--$j]; //#21647 - $_.cwb = $k[--$j]; //#21648 - $k[$j++] = Infinity; //#21651 - $k[$j++] = 1; //#21651 - for (var _Ax = 0, _Ay = $_.rsnum; _Ax < _Ay; _Ax++) { //#21651 - $k[$j++] = 0; //#21651 - } //#21651 - $_.coeffs = $a(); //#21651 - for (var _B2 = 1, _B1 = $_.rsnum; _B2 <= _B1; _B2 += 1) { //#21660 - $_.i = _B2; //#21653 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21654 - for (var _B9 = $_.i - 1; _B9 >= 1; _B9 -= 1) { //#21658 - $_.j = _B9; //#21656 - $k[$j++] = $_.coeffs; //#21657 - $k[$j++] = $_.j; //#21657 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#21657 - $k[$j++] = $get($_.coeffs, $_.j); //#21657 - $k[$j++] = $get($_.rsalog, $_.i); //#21657 - $_.rsprod(); //#21657 - var _BL = $k[--$j]; //#21657 - var _BM = $k[--$j]; //#21657 - var _BN = $k[--$j]; //#21657 - $put($k[--$j], _BN, $xo(_BM, _BL)); //#21657 - } //#21657 - $k[$j++] = $_.coeffs; //#21659 - $k[$j++] = 0; //#21659 - $k[$j++] = $get($_.coeffs, 0); //#21659 - $k[$j++] = $get($_.rsalog, $_.i); //#21659 - $_.rsprod(); //#21659 - var _BV = $k[--$j]; //#21659 - var _BW = $k[--$j]; //#21659 - $put($k[--$j], _BW, _BV); //#21659 - } //#21659 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21661 - $k[$j++] = Infinity; //#21664 - for (var _Bc = 0, _Bd = $_.rsnum; _Bc < _Bd; _Bc++) { //#21664 - $k[$j++] = 0; //#21664 - } //#21664 - $_.ecb = $a(); //#21664 - for (var _Bh = 0, _Bg = $_.cwb.length - 1; _Bh <= _Bg; _Bh += 1) { //#21673 - $_.t = $xo($get($_.cwb, _Bh), $get($_.ecb, 0)); //#21666 - for (var _Bn = $_.ecb.length - 1; _Bn >= 0; _Bn -= 1) { //#21672 - $_.i = _Bn; //#21668 - $_.p = ($_.ecb.length - $_.i) - 1; //#21669 - $k[$j++] = $_.ecb; //#21670 - $k[$j++] = $_.p; //#21670 - $k[$j++] = $_.t; //#21670 - $k[$j++] = $get($_.coeffs, $_.i); //#21670 - $_.rsprod(); //#21670 - var _Bw = $k[--$j]; //#21670 - var _Bx = $k[--$j]; //#21670 - $put($k[--$j], _Bx, _Bw); //#21670 - if ($_.i > 0) { //#21671 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21671 - } //#21671 - } //#21671 - } //#21671 - $k[$j++] = $_.ecb; //#21675 - }; //#21675 - $k[$j++] = Infinity; //#21680 - for (var _CB = 0, _CA = $_.sec.length - 1; _CB <= _CA; _CB += 2) { //#21680 - $k[$j++] = $get($_.sec, _CB); //#21680 - } //#21680 - $_.seco = $a(); //#21680 - $k[$j++] = Infinity; //#21681 - for (var _CH = 1, _CG = $_.sec.length - 1; _CH <= _CG; _CH += 2) { //#21681 - $k[$j++] = $get($_.sec, _CH); //#21681 - } //#21681 - $_.sece = $a(); //#21681 - var _CM = ($_.sec.length == 84) ? 20 : 28; //#21684 - $_.scodes = _CM; //#21684 - $k[$j++] = 'secochk'; //#21685 - $k[$j++] = $_.seco; //#21685 - $k[$j++] = $_.scodes; //#21685 - $_.rscodes(); //#21685 - var _CP = $k[--$j]; //#21685 - $_[$k[--$j]] = _CP; //#21685 - $k[$j++] = 'secechk'; //#21686 - $k[$j++] = $_.sece; //#21686 - $k[$j++] = $_.scodes; //#21686 - $_.rscodes(); //#21686 - var _CT = $k[--$j]; //#21686 - $_[$k[--$j]] = _CT; //#21686 - $k[$j++] = Infinity; //#21689 - for (var _CX = 0, _CW = $_.scodes - 1; _CX <= _CW; _CX += 1) { //#21689 - $k[$j++] = $get($_.secochk, _CX); //#21689 - $k[$j++] = $get($_.secechk, _CX); //#21689 - } //#21689 - $_.secchk = $a(); //#21689 - $k[$j++] = Infinity; //#21696 - $aload($_.pri); //#21693 - $k[$j++] = $_.pri; //#21694 - $k[$j++] = 10; //#21694 - $_.rscodes(); //#21694 - $aload($k[--$j]); //#21694 - $aload($_.sec); //#21695 - $aload($_.secchk); //#21696 - $_.codewords = $a(); //#21696 - $k[$j++] = Infinity; //#21700 - for (var _Cj = 0, _Ck = 864; _Cj < _Ck; _Cj++) { //#21700 - $k[$j++] = 0; //#21700 - } //#21700 - $_.mods = $a(); //#21700 - for (var _Cm = 0; _Cm <= 143; _Cm += 1) { //#21705 - $_.i = _Cm; //#21702 - $k[$j++] = Infinity; //#21703 - var _Cr = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21703 - for (var _Cs = 0, _Ct = _Cr.length; _Cs < _Ct; _Cs++) { //#21703 - $k[$j++] = $get(_Cr, _Cs) - 48; //#21703 - } //#21703 - $_.cw = $a(); //#21703 - $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21704 - } //#21704 - if (!bwipp_maxicode.__21755__) { //#21755 - $_ = Object.create($_); //#21755 - $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#21754 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21754 - bwipp_maxicode.__21755__ = 1; //#21754 - $_ = Object.getPrototypeOf($_); //#21754 - } //#21754 - $_.pixs = $a(864); //#21758 - $_.j = 0; //#21759 - for (var _D5 = 0, _D4 = $_.mods.length - 1; _D5 <= _D4; _D5 += 1) { //#21766 - $_.i = _D5; //#21761 - if ($get($_.mods, $_.i) == 1) { //#21765 - $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#21763 - $_.j = $_.j + 1; //#21764 - } //#21764 - } //#21764 - $k[$j++] = Infinity; //#21767 - $aload($geti($_.pixs, 0, $_.j)); //#21767 - $k[$j++] = 28; //#21767 - $k[$j++] = 29; //#21767 - $k[$j++] = 280; //#21767 - $k[$j++] = 281; //#21767 - $k[$j++] = 311; //#21767 - $k[$j++] = 457; //#21767 - $k[$j++] = 488; //#21767 - $k[$j++] = 500; //#21767 - $k[$j++] = 530; //#21767 - $k[$j++] = 670; //#21767 - $k[$j++] = 700; //#21767 - $k[$j++] = 677; //#21767 - $k[$j++] = 707; //#21767 - $_.pixs = $a(); //#21767 - var _DL = new Map([ + $_.rsnum = $k[--$j]; //#21935 + $_.cwb = $k[--$j]; //#21936 + $k[$j++] = Infinity; //#21939 + $k[$j++] = 1; //#21939 + for (var _Ay = 0, _Az = $_.rsnum; _Ay < _Az; _Ay++) { //#21939 + $k[$j++] = 0; //#21939 + } //#21939 + $_.coeffs = $a(); //#21939 + for (var _B3 = 1, _B2 = $_.rsnum; _B3 <= _B2; _B3 += 1) { //#21948 + $_.i = _B3; //#21941 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21942 + for (var _BA = $_.i - 1; _BA >= 1; _BA -= 1) { //#21946 + $_.j = _BA; //#21944 + $k[$j++] = $_.coeffs; //#21945 + $k[$j++] = $_.j; //#21945 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#21945 + $k[$j++] = $get($_.coeffs, $_.j); //#21945 + $k[$j++] = $get($_.rsalog, $_.i); //#21945 + $_.rsprod(); //#21945 + var _BM = $k[--$j]; //#21945 + var _BN = $k[--$j]; //#21945 + var _BO = $k[--$j]; //#21945 + $put($k[--$j], _BO, $xo(_BN, _BM)); //#21945 + } //#21945 + $k[$j++] = $_.coeffs; //#21947 + $k[$j++] = 0; //#21947 + $k[$j++] = $get($_.coeffs, 0); //#21947 + $k[$j++] = $get($_.rsalog, $_.i); //#21947 + $_.rsprod(); //#21947 + var _BW = $k[--$j]; //#21947 + var _BX = $k[--$j]; //#21947 + $put($k[--$j], _BX, _BW); //#21947 + } //#21947 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21949 + $k[$j++] = Infinity; //#21952 + for (var _Bd = 0, _Be = $_.rsnum; _Bd < _Be; _Bd++) { //#21952 + $k[$j++] = 0; //#21952 + } //#21952 + $_.ecb = $a(); //#21952 + for (var _Bi = 0, _Bh = $_.cwb.length - 1; _Bi <= _Bh; _Bi += 1) { //#21961 + $_.t = $xo($get($_.cwb, _Bi), $get($_.ecb, 0)); //#21954 + for (var _Bo = $_.ecb.length - 1; _Bo >= 0; _Bo -= 1) { //#21960 + $_.i = _Bo; //#21956 + $_.p = ($_.ecb.length - $_.i) - 1; //#21957 + $k[$j++] = $_.ecb; //#21958 + $k[$j++] = $_.p; //#21958 + $k[$j++] = $_.t; //#21958 + $k[$j++] = $get($_.coeffs, $_.i); //#21958 + $_.rsprod(); //#21958 + var _Bx = $k[--$j]; //#21958 + var _By = $k[--$j]; //#21958 + $put($k[--$j], _By, _Bx); //#21958 + if ($_.i > 0) { //#21959 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21959 + } //#21959 + } //#21959 + } //#21959 + $k[$j++] = $_.ecb; //#21963 + }; //#21963 + $k[$j++] = Infinity; //#21968 + for (var _CC = 0, _CB = $_.sec.length - 1; _CC <= _CB; _CC += 2) { //#21968 + $k[$j++] = $get($_.sec, _CC); //#21968 + } //#21968 + $_.seco = $a(); //#21968 + $k[$j++] = Infinity; //#21969 + for (var _CI = 1, _CH = $_.sec.length - 1; _CI <= _CH; _CI += 2) { //#21969 + $k[$j++] = $get($_.sec, _CI); //#21969 + } //#21969 + $_.sece = $a(); //#21969 + var _CN = ($_.sec.length == 84) ? 20 : 28; //#21972 + $_.scodes = _CN; //#21972 + $k[$j++] = 'secochk'; //#21973 + $k[$j++] = $_.seco; //#21973 + $k[$j++] = $_.scodes; //#21973 + $_.rscodes(); //#21973 + var _CQ = $k[--$j]; //#21973 + $_[$k[--$j]] = _CQ; //#21973 + $k[$j++] = 'secechk'; //#21974 + $k[$j++] = $_.sece; //#21974 + $k[$j++] = $_.scodes; //#21974 + $_.rscodes(); //#21974 + var _CU = $k[--$j]; //#21974 + $_[$k[--$j]] = _CU; //#21974 + $k[$j++] = Infinity; //#21977 + for (var _CY = 0, _CX = $_.scodes - 1; _CY <= _CX; _CY += 1) { //#21977 + $k[$j++] = $get($_.secochk, _CY); //#21977 + $k[$j++] = $get($_.secechk, _CY); //#21977 + } //#21977 + $_.secchk = $a(); //#21977 + $k[$j++] = Infinity; //#21980 + $aload($_.pri); //#21981 + $k[$j++] = $_.pri; //#21982 + $k[$j++] = 10; //#21982 + $_.rscodes(); //#21982 + $aload($k[--$j]); //#21982 + $aload($_.sec); //#21983 + $aload($_.secchk); //#21984 + $_.codewords = $a(); //#21984 + $k[$j++] = Infinity; //#21988 + for (var _Ck = 0, _Cl = 864; _Ck < _Cl; _Ck++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $_.mods = $a(); //#21988 + for (var _Cn = 0; _Cn <= 143; _Cn += 1) { //#21993 + $_.i = _Cn; //#21990 + $k[$j++] = Infinity; //#21991 + var _Cs = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21991 + for (var _Ct = 0, _Cu = _Cs.length; _Ct < _Cu; _Ct++) { //#21991 + $k[$j++] = $get(_Cs, _Ct) - 48; //#21991 + } //#21991 + $_.cw = $a(); //#21991 + $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21992 + } //#21992 + if (!bwipp_maxicode.__22043__) { //#22043 + $_ = Object.create($_); //#22043 + $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#22042 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#22042 + bwipp_maxicode.__22043__ = 1; //#22042 + $_ = Object.getPrototypeOf($_); //#22042 + } //#22042 + $_.pixs = $a(864); //#22046 + $_.j = 0; //#22047 + for (var _D6 = 0, _D5 = $_.mods.length - 1; _D6 <= _D5; _D6 += 1) { //#22054 + $_.i = _D6; //#22049 + if ($get($_.mods, $_.i) == 1) { //#22053 + $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#22051 + $_.j = $_.j + 1; //#22052 + } //#22052 + } //#22052 + $k[$j++] = Infinity; //#22055 + $aload($geti($_.pixs, 0, $_.j)); //#22055 + $k[$j++] = 28; //#22055 + $k[$j++] = 29; //#22055 + $k[$j++] = 280; //#22055 + $k[$j++] = 281; //#22055 + $k[$j++] = 311; //#22055 + $k[$j++] = 457; //#22055 + $k[$j++] = 488; //#22055 + $k[$j++] = 500; //#22055 + $k[$j++] = 530; //#22055 + $k[$j++] = 670; //#22055 + $k[$j++] = 700; //#22055 + $k[$j++] = 677; //#22055 + $k[$j++] = 707; //#22055 + $_.pixs = $a(); //#22055 + var _DM = new Map([ ["ren", bwipp_renmaximatrix], ["pixs", $_.pixs], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#21773 - $k[$j++] = _DL; //#21776 - if (!$_.dontdraw) { //#21776 - bwipp_renmaximatrix(); //#21776 - } //#21776 - $_ = Object.getPrototypeOf($_); //#21778 - $_ = Object.getPrototypeOf($_); //#21780 -} - + ]); //#22065 + $k[$j++] = _DM; //#22068 + if (!$_.dontdraw) { //#22068 + bwipp_renmaximatrix(); //#22068 + } //#22068 + $_ = Object.getPrototypeOf($_); //#22070 + $_ = Object.getPrototypeOf($_); //#22072 +} //bwipp_maxicode function bwipp_azteccode() { - $_ = Object.create($_); //#21811 - $_.dontdraw = false; //#21814 - $_.format = "full"; //#21815 - $_.readerinit = false; //#21816 - $_.layers = -1; //#21817 - $_.eclevel = 23; //#21818 - $_.ecaddchars = 3; //#21819 - $_.raw = false; //#21820 - $_.parse = false; //#21821 - $_.parsefnc = false; //#21822 - $k[$j++] = $_; //#21824 - bwipp_processoptions(); //#21824 - $_.options = $k[--$j]; //#21824 - $_.barcode = $k[--$j]; //#21825 - bwipp_loadctx(bwipp_azteccode) //#21827 - if ($eq($_.barcode, "")) { //#21831 - $k[$j++] = 'bwipp.aztecEmptyData#21830'; //#21830 - $k[$j++] = "The data must not be empty"; //#21830 - bwipp_raiseerror(); //#21830 - } //#21830 - if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#21835 - $k[$j++] = 'bwipp.aztecInvalidEClevel#21834'; //#21834 - $k[$j++] = "The EC percentage must be from 5 to 95"; //#21834 - bwipp_raiseerror(); //#21834 - } //#21834 - if ($_.ecaddchars < 3) { //#21839 - $k[$j++] = 'bwipp.aztecInvalidECaddChars#21838'; //#21838 - $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#21838 - bwipp_raiseerror(); //#21838 - } //#21838 - if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#21843 - $k[$j++] = 'bwipp.aztecInvalidFormat#21842'; //#21842 - $k[$j++] = "The format must be either full, compact or rune"; //#21842 - bwipp_raiseerror(); //#21842 - } //#21842 - if ($eq($_.format, "full")) { //#21852 - if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#21848 - $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#21847'; //#21847 - $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#21847 - bwipp_raiseerror(); //#21847 - } //#21847 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#21851 - $k[$j++] = 'bwipp.aztecFullInvalidLayers#21850'; //#21850 - $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#21850 - bwipp_raiseerror(); //#21850 - } //#21850 - } //#21850 - if ($eq($_.format, "compact")) { //#21864 - if ($_.readerinit) { //#21860 - if (($_.layers != -1) && ($_.layers != 1)) { //#21858 - $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#21857'; //#21857 - $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#21857 - bwipp_raiseerror(); //#21857 - } //#21857 - $_.layers = 1; //#21859 - } //#21859 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#21863 - $k[$j++] = 'bwipp.aztecCompactInvalidLayers#21862'; //#21862 - $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#21862 - bwipp_raiseerror(); //#21862 - } //#21862 - } //#21862 - if ($eq($_.format, "rune")) { //#21884 - if ($_.layers != -1) { //#21869 - $k[$j++] = 'bwipp.aztecRuneInvalidLayers#21868'; //#21868 - $k[$j++] = "It is not valid to specify layers for runes"; //#21868 - bwipp_raiseerror(); //#21868 - } //#21868 - if ($_.readerinit) { //#21872 - $k[$j++] = 'bwipp.aztecRuneReaderInit#21871'; //#21871 - $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#21871 - bwipp_raiseerror(); //#21871 - } //#21871 - if ($_.barcode.length == 0) { //#21875 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21874'; //#21874 - $k[$j++] = "Aztec runes must be numeric"; //#21874 - bwipp_raiseerror(); //#21874 - } //#21874 - $forall($_.barcode, function() { //#21880 - var _S = $k[--$j]; //#21877 - if ((_S < 48) || (_S > 57)) { //#21879 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21878'; //#21878 - $k[$j++] = "Aztec runes must be numeric"; //#21878 - bwipp_raiseerror(); //#21878 - } //#21878 - }); //#21878 - var _U = $cvi($_.barcode); //#21881 - if ((_U < 0) || (_U > 255)) { //#21883 - $k[$j++] = 'bwipp.aztecRuneInvalid#21882'; //#21882 - $k[$j++] = "Aztec runes must be 0 to 255"; //#21882 - bwipp_raiseerror(); //#21882 - } //#21882 - } //#21882 - $_.fn1 = -1; //#21887 + $_ = Object.create($_); //#22103 + $_.dontdraw = false; //#22106 + $_.format = "full"; //#22107 + $_.readerinit = false; //#22108 + $_.layers = -1; //#22109 + $_.eclevel = 23; //#22110 + $_.ecaddchars = 3; //#22111 + $_.raw = false; //#22112 + $_.parse = false; //#22113 + $_.parsefnc = false; //#22114 + $k[$j++] = $_; //#22116 + bwipp_processoptions(); //#22116 + $_.options = $k[--$j]; //#22116 + $_.barcode = $k[--$j]; //#22117 + bwipp_loadctx(bwipp_azteccode) //#22119 + if ($eq($_.barcode, "")) { //#22123 + $k[$j++] = 'bwipp.aztecEmptyData#22122'; //#22122 + $k[$j++] = "The data must not be empty"; //#22122 + bwipp_raiseerror(); //#22122 + } //#22122 + if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#22127 + $k[$j++] = 'bwipp.aztecInvalidEClevel#22126'; //#22126 + $k[$j++] = "The EC percentage must be from 5 to 95"; //#22126 + bwipp_raiseerror(); //#22126 + } //#22126 + if ($_.ecaddchars < 3) { //#22131 + $k[$j++] = 'bwipp.aztecInvalidECaddChars#22130'; //#22130 + $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#22130 + bwipp_raiseerror(); //#22130 + } //#22130 + if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#22135 + $k[$j++] = 'bwipp.aztecInvalidFormat#22134'; //#22134 + $k[$j++] = "The format must be either full, compact or rune"; //#22134 + bwipp_raiseerror(); //#22134 + } //#22134 + if ($eq($_.format, "full")) { //#22144 + if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#22140 + $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#22139'; //#22139 + $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#22139 + bwipp_raiseerror(); //#22139 + } //#22139 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#22143 + $k[$j++] = 'bwipp.aztecFullInvalidLayers#22142'; //#22142 + $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#22142 + bwipp_raiseerror(); //#22142 + } //#22142 + } //#22142 + if ($eq($_.format, "compact")) { //#22156 + if ($_.readerinit) { //#22152 + if (($_.layers != -1) && ($_.layers != 1)) { //#22150 + $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#22149'; //#22149 + $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#22149 + bwipp_raiseerror(); //#22149 + } //#22149 + $_.layers = 1; //#22151 + } //#22151 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#22155 + $k[$j++] = 'bwipp.aztecCompactInvalidLayers#22154'; //#22154 + $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#22154 + bwipp_raiseerror(); //#22154 + } //#22154 + } //#22154 + if ($eq($_.format, "rune")) { //#22176 + if ($_.layers != -1) { //#22161 + $k[$j++] = 'bwipp.aztecRuneInvalidLayers#22160'; //#22160 + $k[$j++] = "It is not valid to specify layers for runes"; //#22160 + bwipp_raiseerror(); //#22160 + } //#22160 + if ($_.readerinit) { //#22164 + $k[$j++] = 'bwipp.aztecRuneReaderInit#22163'; //#22163 + $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#22163 + bwipp_raiseerror(); //#22163 + } //#22163 + if ($_.barcode.length == 0) { //#22167 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22166'; //#22166 + $k[$j++] = "Aztec runes must be numeric"; //#22166 + bwipp_raiseerror(); //#22166 + } //#22166 + $forall($_.barcode, function() { //#22172 + var _S = $k[--$j]; //#22169 + if ((_S < 48) || (_S > 57)) { //#22171 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22170'; //#22170 + $k[$j++] = "Aztec runes must be numeric"; //#22170 + bwipp_raiseerror(); //#22170 + } //#22170 + }); //#22170 + var _U = $cvi($_.barcode); //#22173 + if ((_U < 0) || (_U > 255)) { //#22175 + $k[$j++] = 'bwipp.aztecRuneInvalid#22174'; //#22174 + $k[$j++] = "Aztec runes must be 0 to 255"; //#22174 + bwipp_raiseerror(); //#22174 + } //#22174 + } //#22174 + $_.fn1 = -1; //#22179 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#21892 - $_.fncvals = _Y; //#21893 - $k[$j++] = 'msg'; //#21894 - $k[$j++] = $_.barcode; //#21894 - $k[$j++] = $_.fncvals; //#21894 - bwipp_parseinput(); //#21894 - var _b = $k[--$j]; //#21894 - $_[$k[--$j]] = _b; //#21894 - $_.msglen = $_.msg.length; //#21895 - if (!bwipp_azteccode.__21995__) { //#21995 - $_ = Object.create($_); //#21995 - $_.U = 0; //#21899 - $_.L = 1; //#21899 - $_.M = 2; //#21899 - $_.P = 3; //#21899 - $_.D = 4; //#21899 - $_.B = 5; //#21899 - $_.lu = -2; //#21902 - $_.ll = -3; //#21902 - $_.lm = -4; //#21902 - $_.lp = -5; //#21903 - $_.ld = -6; //#21903 - $_.su = -7; //#21903 - $_.sp = -8; //#21904 - $_.sb = -9; //#21904 - $_.fl = -10; //#21904 - $_.p2 = -11; //#21905 - $_.p3 = -12; //#21905 - $_.p4 = -13; //#21905 - $_.p5 = -14; //#21905 - $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#21942 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21945 - for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#21954 - $_.i = _1c; //#21947 - $_.encs = $get($_.charmaps, $_.i); //#21948 - for (var _1g = 0; _1g <= 4; _1g += 1) { //#21953 - $_.j = _1g; //#21950 - var _1j = $get($_.encs, $_.j); //#21951 - $k[$j++] = _1j; //#21951 - if ($eq($type(_1j), 'stringtype')) { //#21951 - var _1m = $get($k[--$j], 0); //#21951 - $k[$j++] = _1m; //#21951 - } //#21951 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21952 - } //#21952 - } //#21952 + ]); //#22184 + $_.fncvals = _Y; //#22185 + $k[$j++] = 'msg'; //#22186 + $k[$j++] = $_.barcode; //#22186 + $k[$j++] = $_.fncvals; //#22186 + bwipp_parseinput(); //#22186 + var _b = $k[--$j]; //#22186 + $_[$k[--$j]] = _b; //#22186 + $_.msglen = $_.msg.length; //#22187 + if (!bwipp_azteccode.__22287__) { //#22287 + $_ = Object.create($_); //#22287 + $_.U = 0; //#22191 + $_.L = 1; //#22191 + $_.M = 2; //#22191 + $_.P = 3; //#22191 + $_.D = 4; //#22191 + $_.B = 5; //#22191 + $_.lu = -2; //#22194 + $_.ll = -3; //#22194 + $_.lm = -4; //#22194 + $_.lp = -5; //#22195 + $_.ld = -6; //#22195 + $_.su = -7; //#22195 + $_.sp = -8; //#22196 + $_.sb = -9; //#22196 + $_.fl = -10; //#22196 + $_.p2 = -11; //#22197 + $_.p3 = -12; //#22197 + $_.p4 = -13; //#22197 + $_.p5 = -14; //#22197 + $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#22234 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#22237 + for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#22246 + $_.i = _1c; //#22239 + $_.encs = $get($_.charmaps, $_.i); //#22240 + for (var _1g = 0; _1g <= 4; _1g += 1) { //#22245 + $_.j = _1g; //#22242 + var _1j = $get($_.encs, $_.j); //#22243 + $k[$j++] = _1j; //#22243 + if ($eq($type(_1j), 'stringtype')) { //#22243 + var _1m = $get($k[--$j], 0); //#22243 + $k[$j++] = _1m; //#22243 + } //#22243 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#22244 + } //#22244 + } //#22244 var _1w = new Map([ ["\x0d\x0a", $_.p2], [". ", $_.p3], [", ", $_.p4], [": ", $_.p5] - ]); //#21961 - $_.pcomp = _1w; //#21962 - $_.e = 10000; //#21964 - var _21 = $a([4, 9, 9, 14, 0, 14]); //#21972 - $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), _21, $a([0, 0, 0, 0, 0, 0])]); //#21974 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#21984 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#21993 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#21993 - bwipp_azteccode.__21995__ = 1; //#21993 - $_ = Object.getPrototypeOf($_); //#21993 - } //#21993 - $_.msgbits = ""; //#21998 - if ($ne($_.format, "rune") && $_.raw) { //#21999 - $_.msgbits = $_.barcode; //#21999 - } //#21999 - if ($ne($_.format, "rune") && (!$_.raw)) { //#22290 + ]); //#22253 + $_.pcomp = _1w; //#22254 + $_.e = 1000000; //#22256 + var _22 = $a([0, 0, 0, 0, 0, 0]); //#22265 + $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), _22]); //#22266 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#22276 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#22285 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22285 + bwipp_azteccode.__22287__ = 1; //#22285 + $_ = Object.getPrototypeOf($_); //#22285 + } //#22285 + $_.msgbits = ""; //#22290 + if ($ne($_.format, "rune") && $_.raw) { //#22291 + $_.msgbits = $_.barcode; //#22291 + } //#22291 + if ($ne($_.format, "rune") && (!$_.raw)) { //#22582 $_.charsize = function() { - var _3v = $k[--$j]; //#22003 - $k[$j++] = _3v; //#22014 - if (_3v >= 0) { //#22012 - $j--; //#22005 - var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22005 - $k[$j++] = _3y; //#22005 - } else { //#22012 - var _3z = $k[--$j]; //#22007 - var _40 = $k[--$j]; //#22007 - $k[$j++] = _3z; //#22007 - $k[$j++] = _40; //#22007 - $j--; //#22007 - var _41 = $k[--$j]; //#22008 - $k[$j++] = _41; //#22013 - if (_41 == $_.fn1) { //#22012 - $j--; //#22009 - $k[$j++] = 8; //#22009 - } else { //#22012 - var _44 = $f((-$k[--$j]) - 1000000); //#22011 - $k[$j++] = _44; //#22011 - if (_44 == 0) { //#22011 - $j--; //#22011 - $k[$j++] = 1; //#22011 - } //#22011 - var _45 = $k[--$j]; //#22012 - $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22012 - } //#22012 - } //#22012 - }; //#22012 - $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22018 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22019 - $_.backto = $_.U; //#22021 - $_.lastchar = ""; //#22022 - $forall($_.msg, function() { //#22174 - $_.char = $k[--$j]; //#22027 - for (;;) { //#22053 - $_.imp = false; //#22031 - var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22032 - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22051 - $_.x = $get(_4S, _4T); //#22033 - var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22034 - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22050 - $_.y = $get(_4c, _4d); //#22035 - if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22049 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22037 - if ($_.cost < $get($_.curlen, $_.y)) { //#22048 - $put($_.curlen, $_.y, $_.cost); //#22039 - $k[$j++] = $_.curseq; //#22042 - $k[$j++] = $_.y; //#22042 - $k[$j++] = Infinity; //#22042 - $aload($get($_.curseq, $_.x)); //#22041 - $aload($get($get($_.latseq, $_.x), $_.y)); //#22042 - var _59 = $a(); //#22042 - var _5A = $k[--$j]; //#22043 - $put($k[--$j], _5A, _59); //#22043 - if ($_.y == $_.B) { //#22046 - $k[$j++] = 'backto'; //#22045 - if (($_.x == $_.P) || ($_.x == $_.D)) { //#22045 - $k[$j++] = $_.U; //#22045 - } else { //#22045 - $k[$j++] = $_.x; //#22045 - } //#22045 - var _5K = $k[--$j]; //#22045 - $_[$k[--$j]] = _5K; //#22045 - } //#22045 - $_.imp = true; //#22047 - } //#22047 - } //#22047 - } //#22047 - } //#22047 - if (!$_.imp) { //#22052 - break; //#22052 - } //#22052 - } //#22052 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22056 - $_.nxtseq = $a(6); //#22057 - var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22059 - for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22098 - $_.x = $get(_5b, _5c); //#22060 - for (;;) { //#22096 - if ($_.char >= 0) { //#22068 - if ($_.x != $_.B) { //#22066 - var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22066 - if (!_5m) { //#22066 - break; //#22066 - } //#22066 - } //#22066 - } else { //#22068 - if ($_.x != $_.P) { //#22068 - break; //#22068 - } //#22068 - } //#22068 - $k[$j++] = 'cost'; //#22072 - $k[$j++] = $get($_.curlen, $_.x); //#22072 - $k[$j++] = $_.x; //#22072 - $k[$j++] = $_.char; //#22072 - $_.charsize(); //#22072 - var _5u = $k[--$j]; //#22072 - var _5v = $k[--$j]; //#22072 - $_[$k[--$j]] = $f(_5v + _5u); //#22072 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#22076 - $put($_.nxtlen, $_.x, $_.cost); //#22074 - $k[$j++] = $_.nxtseq; //#22075 - $k[$j++] = $_.x; //#22075 - $k[$j++] = Infinity; //#22075 - $aload($get($_.curseq, $_.x)); //#22075 - $k[$j++] = $_.char; //#22075 - var _6A = $a(); //#22075 - var _6B = $k[--$j]; //#22075 - $put($k[--$j], _6B, _6A); //#22075 - } //#22075 - if ($_.x == $_.B) { //#22079 - break; //#22079 - } //#22079 - var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22080 - for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22093 - $_.y = $get(_6K, _6L); //#22081 - if ($ne($_.x, $_.y)) { //#22092 - $k[$j++] = 'cost'; //#22083 - $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22083 - $k[$j++] = $_.x; //#22083 - $k[$j++] = $_.char; //#22083 - $_.charsize(); //#22083 - var _6a = $k[--$j]; //#22083 - var _6b = $k[--$j]; //#22083 - $_[$k[--$j]] = $f(_6b + _6a); //#22083 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#22091 - $put($_.nxtlen, $_.y, $_.cost); //#22085 - $k[$j++] = $_.nxtseq; //#22089 - $k[$j++] = $_.y; //#22089 - $k[$j++] = Infinity; //#22089 - $aload($get($_.curseq, $_.y)); //#22087 - var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22088 - $k[$j++] = _6r; //#22089 - $k[$j++] = $_.char; //#22089 - var _6t = $a(); //#22089 - var _6u = $k[--$j]; //#22090 - $put($k[--$j], _6u, _6t); //#22090 - } //#22090 - } //#22090 - } //#22090 - break; //#22095 - } //#22095 - } //#22095 - if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22159 - var _6y = $s(2); //#22102 - $put(_6y, 0, $_.lastchar); //#22102 - $put(_6y, 1, $_.char); //#22102 - $_.pchars = _6y; //#22102 - var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22103 - if (_73) { //#22158 - var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22104 - for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22157 - $_.i = $get(_79, _7A); //#22105 - $_.inP = true; //#22106 - if ($_.i == $_.M) { //#22111 - if ($_.lastchar == 13) { //#22108 - $_.inP = false; //#22108 - } //#22108 - } else { //#22111 - if ($_.i == $_.D) { //#22112 - if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22111 - $_.inP = false; //#22111 - } //#22111 - } //#22111 - } //#22111 - if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22156 - $_.curseqi = $get($_.curseq, $_.i); //#22115 - $_.lastld = false; //#22116 - $_.lastsp = false; //#22117 - $_.lastidx = -1; //#22118 - for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22139 - $_.idx = _7V; //#22120 - $_.ch = $get($_.curseqi, $_.idx); //#22121 - if ($_.lastidx == -1) { //#22136 - if ($eq($_.ch, $_.lastchar)) { //#22128 - $_.lastidx = $_.idx; //#22124 - if ($_.idx > 0) { //#22127 - if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22126 - $_.lastsp = true; //#22126 - } //#22126 - } //#22126 - } //#22126 - } else { //#22136 - if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22137 - if ($_.i == $_.P) { //#22134 - if ($_.ch == $_.ld) { //#22132 - $_.lastld = true; //#22132 - } //#22132 - } else { //#22134 - if ($_.ch != $_.lp) { //#22134 - $_.inP = $_.lastsp; //#22134 - } //#22134 - } //#22134 - break; //#22136 - } //#22136 - } //#22136 - } //#22136 - if ($_.inP && ($_.lastidx >= 0)) { //#22155 - $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22141 - if ($_.lastidx < ($_.curseqi.length - 1)) { //#22153 - if ($_.i == $_.P) { //#22150 - if ($_.lastld) { //#22144 - $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22144 - } //#22144 - $k[$j++] = $_.nxtseq; //#22146 - $k[$j++] = $_.i; //#22146 - $k[$j++] = Infinity; //#22146 - $aload($_.curseqi); //#22146 - $r($_.curseqi.length - $_.lastidx, -1); //#22146 - $j--; //#22146 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22146 - var _8H = $a(); //#22146 - var _8I = $k[--$j]; //#22146 - $put($k[--$j], _8I, _8H); //#22146 - } else { //#22150 - $k[$j++] = $_.nxtseq; //#22149 - $k[$j++] = $_.i; //#22149 - $k[$j++] = Infinity; //#22149 - $aload($_.curseqi); //#22149 - var _8N = $a(); //#22149 - var _8O = $k[--$j]; //#22149 - $put($k[--$j], _8O, _8N); //#22149 - $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22150 - } //#22150 - } else { //#22153 - $k[$j++] = $_.nxtseq; //#22153 - $k[$j++] = $_.i; //#22153 - $k[$j++] = Infinity; //#22153 - $aload($_.curseqi); //#22153 - $j--; //#22153 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22153 - var _8d = $a(); //#22153 - var _8e = $k[--$j]; //#22153 - $put($k[--$j], _8e, _8d); //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - if ($ne($get($_.nxtseq, $_.B), null)) { //#22168 - $_.numbytes = 0; //#22163 - $forall($get($_.nxtseq, $_.B), function() { //#22166 - if ($k[--$j] == $_.sb) { //#22165 - $k[$j++] = 0; //#22165 - } else { //#22165 - $k[$j++] = $_.numbytes + 1; //#22165 - } //#22165 - $_.numbytes = $k[--$j]; //#22165 - }); //#22165 - if ($_.numbytes == 32) { //#22167 - $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22167 - } //#22167 - } //#22167 - $_.curlen = $_.nxtlen; //#22170 - $_.curseq = $_.nxtseq; //#22171 - $k[$j++] = 'lastchar'; //#22172 - if ($_.char >= 0) { //#22172 - $k[$j++] = $_.char; //#22172 - } else { //#22172 - $k[$j++] = ""; //#22172 - } //#22172 - var _90 = $k[--$j]; //#22172 - $_[$k[--$j]] = _90; //#22172 - }); //#22172 - $_.minseq = $_.e; //#22177 - var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22178 - for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22184 - $_.i = $get(_99, _9A); //#22179 - if ($get($_.curlen, $_.i) < $_.minseq) { //#22183 - $_.minseq = $get($_.curlen, $_.i); //#22181 - $_.seq = $get($_.curseq, $_.i); //#22182 - } //#22182 - } //#22182 + var _3v = $k[--$j]; //#22295 + $k[$j++] = _3v; //#22306 + if (_3v >= 0) { //#22304 + $j--; //#22297 + var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22297 + $k[$j++] = _3y; //#22297 + } else { //#22304 + var _3z = $k[--$j]; //#22299 + var _40 = $k[--$j]; //#22299 + $k[$j++] = _3z; //#22299 + $k[$j++] = _40; //#22299 + $j--; //#22299 + var _41 = $k[--$j]; //#22300 + $k[$j++] = _41; //#22305 + if (_41 == $_.fn1) { //#22304 + $j--; //#22301 + $k[$j++] = 8; //#22301 + } else { //#22304 + var _44 = $f((-$k[--$j]) - 1000000); //#22303 + $k[$j++] = _44; //#22303 + if (_44 == 0) { //#22303 + $j--; //#22303 + $k[$j++] = 1; //#22303 + } //#22303 + var _45 = $k[--$j]; //#22304 + $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22304 + } //#22304 + } //#22304 + }; //#22304 + $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22310 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22311 + $_.backto = $_.U; //#22313 + $_.lastchar = ""; //#22314 + $forall($_.msg, function() { //#22466 + $_.char = $k[--$j]; //#22319 + for (;;) { //#22345 + $_.imp = false; //#22323 + var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22324 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22343 + $_.x = $get(_4S, _4T); //#22325 + var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22326 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22342 + $_.y = $get(_4c, _4d); //#22327 + if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22341 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22329 + if ($_.cost < $get($_.curlen, $_.y)) { //#22340 + $put($_.curlen, $_.y, $_.cost); //#22331 + $k[$j++] = $_.curseq; //#22334 + $k[$j++] = $_.y; //#22334 + $k[$j++] = Infinity; //#22332 + $aload($get($_.curseq, $_.x)); //#22333 + $aload($get($get($_.latseq, $_.x), $_.y)); //#22334 + var _59 = $a(); //#22334 + var _5A = $k[--$j]; //#22335 + $put($k[--$j], _5A, _59); //#22335 + if ($_.y == $_.B) { //#22338 + $k[$j++] = 'backto'; //#22337 + if (($_.x == $_.P) || ($_.x == $_.D)) { //#22337 + $k[$j++] = $_.U; //#22337 + } else { //#22337 + $k[$j++] = $_.x; //#22337 + } //#22337 + var _5K = $k[--$j]; //#22337 + $_[$k[--$j]] = _5K; //#22337 + } //#22337 + $_.imp = true; //#22339 + } //#22339 + } //#22339 + } //#22339 + } //#22339 + if (!$_.imp) { //#22344 + break; //#22344 + } //#22344 + } //#22344 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22348 + $_.nxtseq = $a(6); //#22349 + var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22351 + for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22390 + $_.x = $get(_5b, _5c); //#22352 + for (;;) { //#22388 + if ($_.char >= 0) { //#22360 + if ($_.x != $_.B) { //#22358 + var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22358 + if (!_5m) { //#22358 + break; //#22358 + } //#22358 + } //#22358 + } else { //#22360 + if ($_.x != $_.P) { //#22360 + break; //#22360 + } //#22360 + } //#22360 + $k[$j++] = 'cost'; //#22364 + $k[$j++] = $get($_.curlen, $_.x); //#22364 + $k[$j++] = $_.x; //#22364 + $k[$j++] = $_.char; //#22364 + $_.charsize(); //#22364 + var _5u = $k[--$j]; //#22364 + var _5v = $k[--$j]; //#22364 + $_[$k[--$j]] = $f(_5v + _5u); //#22364 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#22368 + $put($_.nxtlen, $_.x, $_.cost); //#22366 + $k[$j++] = $_.nxtseq; //#22367 + $k[$j++] = $_.x; //#22367 + $k[$j++] = Infinity; //#22367 + $aload($get($_.curseq, $_.x)); //#22367 + $k[$j++] = $_.char; //#22367 + var _6A = $a(); //#22367 + var _6B = $k[--$j]; //#22367 + $put($k[--$j], _6B, _6A); //#22367 + } //#22367 + if ($_.x == $_.B) { //#22371 + break; //#22371 + } //#22371 + var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22372 + for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22385 + $_.y = $get(_6K, _6L); //#22373 + if ($ne($_.x, $_.y)) { //#22384 + $k[$j++] = 'cost'; //#22375 + $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22375 + $k[$j++] = $_.x; //#22375 + $k[$j++] = $_.char; //#22375 + $_.charsize(); //#22375 + var _6a = $k[--$j]; //#22375 + var _6b = $k[--$j]; //#22375 + $_[$k[--$j]] = $f(_6b + _6a); //#22375 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#22383 + $put($_.nxtlen, $_.y, $_.cost); //#22377 + $k[$j++] = $_.nxtseq; //#22381 + $k[$j++] = $_.y; //#22381 + $k[$j++] = Infinity; //#22378 + $aload($get($_.curseq, $_.y)); //#22379 + var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22380 + $k[$j++] = _6r; //#22381 + $k[$j++] = $_.char; //#22381 + var _6t = $a(); //#22381 + var _6u = $k[--$j]; //#22382 + $put($k[--$j], _6u, _6t); //#22382 + } //#22382 + } //#22382 + } //#22382 + break; //#22387 + } //#22387 + } //#22387 + if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22451 + var _6y = $s(2); //#22394 + $put(_6y, 0, $_.lastchar); //#22394 + $put(_6y, 1, $_.char); //#22394 + $_.pchars = _6y; //#22394 + var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22395 + if (_73) { //#22450 + var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22396 + for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22449 + $_.i = $get(_79, _7A); //#22397 + $_.inP = true; //#22398 + if ($_.i == $_.M) { //#22403 + if ($_.lastchar == 13) { //#22400 + $_.inP = false; //#22400 + } //#22400 + } else { //#22403 + if ($_.i == $_.D) { //#22404 + if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22403 + $_.inP = false; //#22403 + } //#22403 + } //#22403 + } //#22403 + if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22448 + $_.curseqi = $get($_.curseq, $_.i); //#22407 + $_.lastld = false; //#22408 + $_.lastsp = false; //#22409 + $_.lastidx = -1; //#22410 + for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22431 + $_.idx = _7V; //#22412 + $_.ch = $get($_.curseqi, $_.idx); //#22413 + if ($_.lastidx == -1) { //#22428 + if ($eq($_.ch, $_.lastchar)) { //#22420 + $_.lastidx = $_.idx; //#22416 + if ($_.idx > 0) { //#22419 + if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22418 + $_.lastsp = true; //#22418 + } //#22418 + } //#22418 + } //#22418 + } else { //#22428 + if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22429 + if ($_.i == $_.P) { //#22426 + if ($_.ch == $_.ld) { //#22424 + $_.lastld = true; //#22424 + } //#22424 + } else { //#22426 + if ($_.ch != $_.lp) { //#22426 + $_.inP = $_.lastsp; //#22426 + } //#22426 + } //#22426 + break; //#22428 + } //#22428 + } //#22428 + } //#22428 + if ($_.inP && ($_.lastidx >= 0)) { //#22447 + $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22433 + if ($_.lastidx < ($_.curseqi.length - 1)) { //#22445 + if ($_.i == $_.P) { //#22442 + if ($_.lastld) { //#22436 + $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22436 + } //#22436 + $k[$j++] = $_.nxtseq; //#22438 + $k[$j++] = $_.i; //#22438 + $k[$j++] = Infinity; //#22438 + $aload($_.curseqi); //#22438 + $r($_.curseqi.length - $_.lastidx, -1); //#22438 + $j--; //#22438 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22438 + var _8H = $a(); //#22438 + var _8I = $k[--$j]; //#22438 + $put($k[--$j], _8I, _8H); //#22438 + } else { //#22442 + $k[$j++] = $_.nxtseq; //#22441 + $k[$j++] = $_.i; //#22441 + $k[$j++] = Infinity; //#22441 + $aload($_.curseqi); //#22441 + var _8N = $a(); //#22441 + var _8O = $k[--$j]; //#22441 + $put($k[--$j], _8O, _8N); //#22441 + $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22442 + } //#22442 + } else { //#22445 + $k[$j++] = $_.nxtseq; //#22445 + $k[$j++] = $_.i; //#22445 + $k[$j++] = Infinity; //#22445 + $aload($_.curseqi); //#22445 + $j--; //#22445 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22445 + var _8d = $a(); //#22445 + var _8e = $k[--$j]; //#22445 + $put($k[--$j], _8e, _8d); //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + if ($ne($get($_.nxtseq, $_.B), null)) { //#22460 + $_.numbytes = 0; //#22455 + $forall($get($_.nxtseq, $_.B), function() { //#22458 + if ($k[--$j] == $_.sb) { //#22457 + $k[$j++] = 0; //#22457 + } else { //#22457 + $k[$j++] = $_.numbytes + 1; //#22457 + } //#22457 + $_.numbytes = $k[--$j]; //#22457 + }); //#22457 + if ($_.numbytes == 32) { //#22459 + $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22459 + } //#22459 + } //#22459 + $_.curlen = $_.nxtlen; //#22462 + $_.curseq = $_.nxtseq; //#22463 + $k[$j++] = 'lastchar'; //#22464 + if ($_.char >= 0) { //#22464 + $k[$j++] = $_.char; //#22464 + } else { //#22464 + $k[$j++] = ""; //#22464 + } //#22464 + var _90 = $k[--$j]; //#22464 + $_[$k[--$j]] = _90; //#22464 + }); //#22464 + $_.minseq = $_.e; //#22469 + var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22470 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22476 + $_.i = $get(_99, _9A); //#22471 + if ($get($_.curlen, $_.i) < $_.minseq) { //#22475 + $_.minseq = $get($_.curlen, $_.i); //#22473 + $_.seq = $get($_.curseq, $_.i); //#22474 + } //#22474 + } //#22474 $_.tobin = function() { - var _9O = $s($k[--$j]); //#22188 - $k[$j++] = _9O; //#22188 - for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22188 - var _9R = $k[--$j]; //#22188 - $put(_9R, _9Q, 48); //#22188 - $k[$j++] = _9R; //#22188 - } //#22188 - var _9S = $k[--$j]; //#22189 - var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22189 - $puti(_9S, _9S.length - _9V.length, _9V); //#22189 - $k[$j++] = _9S; //#22189 - }; //#22189 + var _9O = $s($k[--$j]); //#22480 + $k[$j++] = _9O; //#22480 + for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22480 + var _9R = $k[--$j]; //#22480 + $put(_9R, _9Q, 48); //#22480 + $k[$j++] = _9R; //#22480 + } //#22480 + var _9S = $k[--$j]; //#22481 + var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22481 + $puti(_9S, _9S.length - _9V.length, _9V); //#22481 + $k[$j++] = _9S; //#22481 + }; //#22481 $_.encu = function() { - var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22192 - $k[$j++] = _9a; //#22192 - $k[$j++] = 5; //#22192 - $_.tobin(); //#22192 - }; //#22192 + var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22484 + $k[$j++] = _9a; //#22484 + $k[$j++] = 5; //#22484 + $_.tobin(); //#22484 + }; //#22484 $_.encl = function() { - var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22193 - $k[$j++] = _9f; //#22193 - $k[$j++] = 5; //#22193 - $_.tobin(); //#22193 - }; //#22193 + var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22485 + $k[$j++] = _9f; //#22485 + $k[$j++] = 5; //#22485 + $_.tobin(); //#22485 + }; //#22485 $_.encm = function() { - var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22194 - $k[$j++] = _9k; //#22194 - $k[$j++] = 5; //#22194 - $_.tobin(); //#22194 - }; //#22194 + var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22486 + $k[$j++] = _9k; //#22486 + $k[$j++] = 5; //#22486 + $_.tobin(); //#22486 + }; //#22486 $_.encd = function() { - var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22195 - $k[$j++] = _9p; //#22195 - $k[$j++] = 4; //#22195 - $_.tobin(); //#22195 - }; //#22195 + var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22487 + $k[$j++] = _9p; //#22487 + $k[$j++] = 4; //#22487 + $_.tobin(); //#22487 + }; //#22487 $_.encp = function() { - var _9q = $k[--$j]; //#22198 - $k[$j++] = _9q; //#22215 - if (_9q == $_.fn1) { //#22214 - $j--; //#22199 - $k[$j++] = "00000000"; //#22199 - } else { //#22214 - var _9s = $k[--$j]; //#22201 - $k[$j++] = _9s; //#22215 - if (_9s <= -1000000) { //#22214 - var _9u = $f((-$k[--$j]) - 1000000); //#22202 - $k[$j++] = _9u; //#22202 - $k[$j++] = _9u; //#22202 - if (_9u == 0) { //#22202 - $j--; //#22202 - $k[$j++] = 1; //#22202 - } //#22202 - var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22204 - var _9x = $s(((_9w + 1) * 4) + 8); //#22204 - $puti(_9x, 0, "00000"); //#22205 - $k[$j++] = _9w; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9w + 1; //#22206 - $k[$j++] = 3; //#22206 - $_.tobin(); //#22206 - var _9y = $k[--$j]; //#22206 - $puti($k[--$j], 5, _9y); //#22206 - var _A0 = $k[--$j]; //#22207 - var _A1 = $k[--$j]; //#22207 - var _A2 = $k[--$j]; //#22207 - $k[$j++] = _A0; //#22211 - $k[$j++] = _A2; //#22211 - for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22211 - var _A4 = $k[--$j]; //#22208 - var _A5 = $k[--$j]; //#22209 - $k[$j++] = _A5; //#22210 - $k[$j++] = ~~(_A4 / 10); //#22210 - $k[$j++] = _A5; //#22210 - $k[$j++] = (_A3 * 4) + 8; //#22210 - $k[$j++] = $f((_A4 % 10) + 2); //#22210 - $k[$j++] = 4; //#22210 - $_.tobin(); //#22210 - var _A6 = $k[--$j]; //#22210 - var _A7 = $k[--$j]; //#22210 - $puti($k[--$j], _A7, _A6); //#22210 - } //#22210 - $j--; //#22212 - } else { //#22214 - var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22214 - $k[$j++] = _AD; //#22214 - $k[$j++] = 5; //#22214 - $_.tobin(); //#22214 - } //#22214 - } //#22214 - }; //#22214 - $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22218 + var _9q = $k[--$j]; //#22490 + $k[$j++] = _9q; //#22507 + if (_9q == $_.fn1) { //#22506 + $j--; //#22491 + $k[$j++] = "00000000"; //#22491 + } else { //#22506 + var _9s = $k[--$j]; //#22493 + $k[$j++] = _9s; //#22507 + if (_9s <= -1000000) { //#22506 + var _9u = $f((-$k[--$j]) - 1000000); //#22494 + $k[$j++] = _9u; //#22494 + $k[$j++] = _9u; //#22494 + if (_9u == 0) { //#22494 + $j--; //#22494 + $k[$j++] = 1; //#22494 + } //#22494 + var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22496 + var _9x = $s(((_9w + 1) * 4) + 8); //#22496 + $puti(_9x, 0, "00000"); //#22497 + $k[$j++] = _9w; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9w + 1; //#22498 + $k[$j++] = 3; //#22498 + $_.tobin(); //#22498 + var _9y = $k[--$j]; //#22498 + $puti($k[--$j], 5, _9y); //#22498 + var _A0 = $k[--$j]; //#22499 + var _A1 = $k[--$j]; //#22499 + var _A2 = $k[--$j]; //#22499 + $k[$j++] = _A0; //#22503 + $k[$j++] = _A2; //#22503 + for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22503 + var _A4 = $k[--$j]; //#22500 + var _A5 = $k[--$j]; //#22501 + $k[$j++] = _A5; //#22502 + $k[$j++] = ~~(_A4 / 10); //#22502 + $k[$j++] = _A5; //#22502 + $k[$j++] = (_A3 * 4) + 8; //#22502 + $k[$j++] = $f((_A4 % 10) + 2); //#22502 + $k[$j++] = 4; //#22502 + $_.tobin(); //#22502 + var _A6 = $k[--$j]; //#22502 + var _A7 = $k[--$j]; //#22502 + $puti($k[--$j], _A7, _A6); //#22502 + } //#22502 + $j--; //#22504 + } else { //#22506 + var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22506 + $k[$j++] = _AD; //#22506 + $k[$j++] = 5; //#22506 + $_.tobin(); //#22506 + } //#22506 + } //#22506 + }; //#22506 + $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22510 $_.addtomsgbits = function() { - $_.v = $k[--$j]; //#22221 - $puti($_.msgbits, $_.j, $_.v); //#22222 - $_.j = $_.j + $_.v.length; //#22223 - }; //#22223 - $_.state = $_.U; //#22227 - $_.msgbits = $s($_.minseq); //#22228 - $_.i = 0; //#22229 - $_.j = 0; //#22229 - for (;;) { //#22288 - if ($_.i >= $_.seq.length) { //#22230 - break; //#22230 - } //#22230 - if ($_.state != $_.B) { //#22283 - $_.char = $get($_.seq, $_.i); //#22234 - $k[$j++] = $_.char; //#22237 + $_.v = $k[--$j]; //#22513 + $puti($_.msgbits, $_.j, $_.v); //#22514 + $_.j = $_.j + $_.v.length; //#22515 + }; //#22515 + $_.state = $_.U; //#22519 + $_.msgbits = $s($_.minseq); //#22520 + $_.i = 0; //#22521 + $_.j = 0; //#22521 + for (;;) { //#22580 + if ($_.i >= $_.seq.length) { //#22522 + break; //#22522 + } //#22522 + if ($_.state != $_.B) { //#22575 + $_.char = $get($_.seq, $_.i); //#22526 + $k[$j++] = $_.char; //#22529 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#22237 - $_.addtomsgbits(); //#22237 - $_.i = $_.i + 1; //#22238 - if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22244 - $k[$j++] = $get($_.seq, $_.i); //#22242 - if ($_.char == $_.su) { //#22242 - $_.encu(); //#22242 - } else { //#22242 - $_.encp(); //#22242 - } //#22242 - $_.addtomsgbits(); //#22242 - $_.i = $_.i + 1; //#22243 - } //#22243 - if ($_.char == $_.lu) { //#22247 - $_.state = $_.U; //#22247 - } //#22247 - if ($_.char == $_.ll) { //#22248 - $_.state = $_.L; //#22248 - } //#22248 - if ($_.char == $_.lm) { //#22249 - $_.state = $_.M; //#22249 - } //#22249 - if ($_.char == $_.lp) { //#22250 - $_.state = $_.P; //#22250 - } //#22250 - if ($_.char == $_.ld) { //#22251 - $_.state = $_.D; //#22251 - } //#22251 - if ($_.char == $_.sb) { //#22252 - $_.state = $_.B; //#22252 - } //#22252 - } else { //#22283 - $_.numbytes = 0; //#22257 - for (;;) { //#22261 - if (($_.i + $_.numbytes) >= $_.seq.length) { //#22258 - break; //#22258 - } //#22258 - if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22259 - break; //#22259 - } //#22259 - $_.numbytes = $_.numbytes + 1; //#22260 - } //#22260 - if ($_.numbytes <= 31) { //#22268 - $k[$j++] = $_.numbytes; //#22265 - $k[$j++] = 5; //#22265 - $_.tobin(); //#22265 - $_.addtomsgbits(); //#22265 - } else { //#22268 - $k[$j++] = 0; //#22267 - $k[$j++] = 5; //#22267 - $_.tobin(); //#22267 - $_.addtomsgbits(); //#22267 - $k[$j++] = $_.numbytes - 31; //#22268 - $k[$j++] = 11; //#22268 - $_.tobin(); //#22268 - $_.addtomsgbits(); //#22268 - } //#22268 - for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22275 - $k[$j++] = $get($_.seq, $_.i); //#22273 - $k[$j++] = 8; //#22273 - $_.tobin(); //#22273 - $_.addtomsgbits(); //#22273 - $_.i = $_.i + 1; //#22274 - } //#22274 - if ($_.i < $_.seq.length) { //#22284 - $_.char = $get($_.seq, $_.i); //#22279 - $_.i = $_.i + 1; //#22280 - if ($_.char == $_.lu) { //#22281 - $_.state = $_.U; //#22281 - } //#22281 - if ($_.char == $_.ll) { //#22282 - $_.state = $_.L; //#22282 - } //#22282 - if ($_.char == $_.lm) { //#22283 - $_.state = $_.M; //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - if (!bwipp_azteccode.__22309__) { //#22309 - $_ = Object.create($_); //#22309 - $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22308 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22308 - bwipp_azteccode.__22309__ = 1; //#22308 - $_ = Object.getPrototypeOf($_); //#22308 - } //#22308 - var _CD = $_.metrics; //#22311 - for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22327 - $_.m = $get(_CD, _CE); //#22312 - $_.frmt = $get($_.m, 0); //#22313 - $_.mlyr = $get($_.m, 1); //#22314 - $_.icap = $get($_.m, 2); //#22315 - $_.ncws = $get($_.m, 3); //#22316 - $_.bpcw = $get($_.m, 4); //#22317 - $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22318 - if ($_.msgbits.length == 0) { //#22319 - $_.numecw = 0; //#22319 - } //#22319 - $_.numdcw = $f($_.ncws - $_.numecw); //#22320 - $_.okay = true; //#22321 - if ($ne($_.format, $_.frmt)) { //#22322 - $_.okay = false; //#22322 - } //#22322 - if ($_.readerinit && ($_.icap != 1)) { //#22323 - $_.okay = false; //#22323 - } //#22323 - if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22324 - $_.okay = false; //#22324 - } //#22324 - if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22325 - $_.okay = false; //#22325 - } //#22325 - if ($_.okay) { //#22326 - break; //#22326 - } //#22326 - } //#22326 - if (!$_.okay) { //#22331 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#22330'; //#22330 - $k[$j++] = "Maximum length exceeded"; //#22330 - bwipp_raiseerror(); //#22330 - } //#22330 - $_.layers = $_.mlyr; //#22333 + } //#22529 + $_.addtomsgbits(); //#22529 + $_.i = $_.i + 1; //#22530 + if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22536 + $k[$j++] = $get($_.seq, $_.i); //#22534 + if ($_.char == $_.su) { //#22534 + $_.encu(); //#22534 + } else { //#22534 + $_.encp(); //#22534 + } //#22534 + $_.addtomsgbits(); //#22534 + $_.i = $_.i + 1; //#22535 + } //#22535 + if ($_.char == $_.lu) { //#22539 + $_.state = $_.U; //#22539 + } //#22539 + if ($_.char == $_.ll) { //#22540 + $_.state = $_.L; //#22540 + } //#22540 + if ($_.char == $_.lm) { //#22541 + $_.state = $_.M; //#22541 + } //#22541 + if ($_.char == $_.lp) { //#22542 + $_.state = $_.P; //#22542 + } //#22542 + if ($_.char == $_.ld) { //#22543 + $_.state = $_.D; //#22543 + } //#22543 + if ($_.char == $_.sb) { //#22544 + $_.state = $_.B; //#22544 + } //#22544 + } else { //#22575 + $_.numbytes = 0; //#22549 + for (;;) { //#22553 + if (($_.i + $_.numbytes) >= $_.seq.length) { //#22550 + break; //#22550 + } //#22550 + if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22551 + break; //#22551 + } //#22551 + $_.numbytes = $_.numbytes + 1; //#22552 + } //#22552 + if ($_.numbytes <= 31) { //#22560 + $k[$j++] = $_.numbytes; //#22557 + $k[$j++] = 5; //#22557 + $_.tobin(); //#22557 + $_.addtomsgbits(); //#22557 + } else { //#22560 + $k[$j++] = 0; //#22559 + $k[$j++] = 5; //#22559 + $_.tobin(); //#22559 + $_.addtomsgbits(); //#22559 + $k[$j++] = $_.numbytes - 31; //#22560 + $k[$j++] = 11; //#22560 + $_.tobin(); //#22560 + $_.addtomsgbits(); //#22560 + } //#22560 + for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22567 + $k[$j++] = $get($_.seq, $_.i); //#22565 + $k[$j++] = 8; //#22565 + $_.tobin(); //#22565 + $_.addtomsgbits(); //#22565 + $_.i = $_.i + 1; //#22566 + } //#22566 + if ($_.i < $_.seq.length) { //#22576 + $_.char = $get($_.seq, $_.i); //#22571 + $_.i = $_.i + 1; //#22572 + if ($_.char == $_.lu) { //#22573 + $_.state = $_.U; //#22573 + } //#22573 + if ($_.char == $_.ll) { //#22574 + $_.state = $_.L; //#22574 + } //#22574 + if ($_.char == $_.lm) { //#22575 + $_.state = $_.M; //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + if (!bwipp_azteccode.__22601__) { //#22601 + $_ = Object.create($_); //#22601 + $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22600 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22600 + bwipp_azteccode.__22601__ = 1; //#22600 + $_ = Object.getPrototypeOf($_); //#22600 + } //#22600 + var _CD = $_.metrics; //#22603 + for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22619 + $_.m = $get(_CD, _CE); //#22604 + $_.frmt = $get($_.m, 0); //#22605 + $_.mlyr = $get($_.m, 1); //#22606 + $_.icap = $get($_.m, 2); //#22607 + $_.ncws = $get($_.m, 3); //#22608 + $_.bpcw = $get($_.m, 4); //#22609 + $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22610 + if ($_.msgbits.length == 0) { //#22611 + $_.numecw = 0; //#22611 + } //#22611 + $_.numdcw = $f($_.ncws - $_.numecw); //#22612 + $_.okay = true; //#22613 + if ($ne($_.format, $_.frmt)) { //#22614 + $_.okay = false; //#22614 + } //#22614 + if ($_.readerinit && ($_.icap != 1)) { //#22615 + $_.okay = false; //#22615 + } //#22615 + if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22616 + $_.okay = false; //#22616 + } //#22616 + if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22617 + $_.okay = false; //#22617 + } //#22617 + if ($_.okay) { //#22618 + break; //#22618 + } //#22618 + } //#22618 + if (!$_.okay) { //#22623 + $k[$j++] = 'bwipp.azteccodeNoValidSymbol#22622'; //#22622 + $k[$j++] = "Maximum length exceeded"; //#22622 + bwipp_raiseerror(); //#22622 + } //#22622 + $_.layers = $_.mlyr; //#22625 $_.allzero = function() { - var _Ck = $k[--$j]; //#22336 - $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22336 - }; //#22336 + var _Ck = $k[--$j]; //#22628 + $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22628 + }; //#22628 $_.allones = function() { - var _Cm = $k[--$j]; //#22337 - $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22337 - }; //#22337 - $_.cws = $a($_.ncws); //#22338 - $_.m = 0; //#22339 - $_.c = 0; //#22339 - for (;;) { //#22366 - if ($_.msgbits.length <= $_.m) { //#22341 - break; //#22341 - } //#22341 - if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22343 - $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22344 - $k[$j++] = $_.cwb; //#22345 - $_.allzero(); //#22345 - if ($k[--$j]) { //#22345 - $_.cwf = "1"; //#22345 - $_.m = $_.m - 1; //#22345 - } //#22345 - $k[$j++] = $_.cwb; //#22346 - $_.allones(); //#22346 - if ($k[--$j]) { //#22346 - $_.cwf = "0"; //#22346 - $_.m = $_.m - 1; //#22346 - } //#22346 - var _D9 = $s(12); //#22348 - $puti(_D9, 0, $_.cwb); //#22348 - $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22349 - $_.cwb = $geti(_D9, 0, $_.bpcw); //#22351 - } else { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22353 - var _DL = $strcpy($s(12), "111111111111"); //#22354 - $puti(_DL, 0, $_.cwb); //#22354 - $_.cwb = $geti(_DL, 0, $_.bpcw); //#22354 - $k[$j++] = $_.cwb; //#22355 - $_.allones(); //#22355 - if ($k[--$j]) { //#22355 - $puti($_.cwb, $_.cwb.length - 1, "0"); //#22355 - } //#22355 - } //#22355 - $_.cw = 0; //#22358 - for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22362 - $_.i = _DV; //#22360 - $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22361 - } //#22361 - $put($_.cws, $_.c, $_.cw); //#22363 - $_.m = $f($_.m + $_.bpcw); //#22364 - $_.c = $_.c + 1; //#22365 - } //#22365 - $_.cws = $geti($_.cws, 0, $_.c); //#22367 - var _Dm = $get($_.options, 'debugcws') !== undefined; //#22369 - if (_Dm) { //#22369 - $k[$j++] = 'bwipp.debugcws#22369'; //#22369 - $k[$j++] = $_.cws; //#22369 - bwipp_raiseerror(); //#22369 - } //#22369 + var _Cm = $k[--$j]; //#22629 + $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22629 + }; //#22629 + $_.cws = $a($_.ncws); //#22630 + $_.m = 0; //#22631 + $_.c = 0; //#22631 + for (;;) { //#22658 + if ($_.msgbits.length <= $_.m) { //#22633 + break; //#22633 + } //#22633 + if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22635 + $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22636 + $k[$j++] = $_.cwb; //#22637 + $_.allzero(); //#22637 + if ($k[--$j]) { //#22637 + $_.cwf = "1"; //#22637 + $_.m = $_.m - 1; //#22637 + } //#22637 + $k[$j++] = $_.cwb; //#22638 + $_.allones(); //#22638 + if ($k[--$j]) { //#22638 + $_.cwf = "0"; //#22638 + $_.m = $_.m - 1; //#22638 + } //#22638 + var _D9 = $s(12); //#22640 + $puti(_D9, 0, $_.cwb); //#22640 + $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22641 + $_.cwb = $geti(_D9, 0, $_.bpcw); //#22643 + } else { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22645 + var _DL = $strcpy($s(12), "111111111111"); //#22646 + $puti(_DL, 0, $_.cwb); //#22646 + $_.cwb = $geti(_DL, 0, $_.bpcw); //#22646 + $k[$j++] = $_.cwb; //#22647 + $_.allones(); //#22647 + if ($k[--$j]) { //#22647 + $puti($_.cwb, $_.cwb.length - 1, "0"); //#22647 + } //#22647 + } //#22647 + $_.cw = 0; //#22650 + for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22654 + $_.i = _DV; //#22652 + $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22653 + } //#22653 + $put($_.cws, $_.c, $_.cw); //#22655 + $_.m = $f($_.m + $_.bpcw); //#22656 + $_.c = $_.c + 1; //#22657 + } //#22657 + $_.cws = $geti($_.cws, 0, $_.c); //#22659 + var _Dm = $get($_.options, 'debugcws') !== undefined; //#22661 + if (_Dm) { //#22661 + $k[$j++] = 'bwipp.debugcws#22661'; //#22661 + $k[$j++] = $_.cws; //#22661 + bwipp_raiseerror(); //#22661 + } //#22661 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#22374 - $_.rsgf = $k[--$j]; //#22375 - $_.rsnc = $k[--$j]; //#22376 - $_.rscws = $k[--$j]; //#22377 - $k[$j++] = Infinity; //#22380 - $k[$j++] = 1; //#22380 - for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22380 - var _Dv = $k[--$j]; //#22380 - var _Dw = _Dv * 2; //#22380 - $k[$j++] = _Dv; //#22380 - $k[$j++] = _Dw; //#22380 - if (_Dw >= $_.rsgf) { //#22380 - var _Dz = $k[--$j]; //#22380 - $k[$j++] = $xo(_Dz, $_.rspm); //#22380 - } //#22380 - } //#22380 - $_.rsalog = $a(); //#22380 - $_.rslog = $a($_.rsgf); //#22381 - for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22382 - $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22382 - } //#22382 + $_.rspm = $k[--$j]; //#22666 + $_.rsgf = $k[--$j]; //#22667 + $_.rsnc = $k[--$j]; //#22668 + $_.rscws = $k[--$j]; //#22669 + $k[$j++] = Infinity; //#22672 + $k[$j++] = 1; //#22672 + for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22672 + var _Dv = $k[--$j]; //#22672 + var _Dw = _Dv * 2; //#22672 + $k[$j++] = _Dv; //#22672 + $k[$j++] = _Dw; //#22672 + if (_Dw >= $_.rsgf) { //#22672 + var _Dz = $k[--$j]; //#22672 + $k[$j++] = $xo(_Dz, $_.rspm); //#22672 + } //#22672 + } //#22672 + $_.rsalog = $a(); //#22672 + $_.rslog = $a($_.rsgf); //#22673 + for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22674 + $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22674 + } //#22674 $_.rsprod = function() { - var _E9 = $k[--$j]; //#22386 - var _EA = $k[--$j]; //#22386 - $k[$j++] = _EA; //#22390 - $k[$j++] = _E9; //#22390 - if ((_E9 != 0) && (_EA != 0)) { //#22389 - var _ED = $get($_.rslog, $k[--$j]); //#22387 - var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22387 - $k[$j++] = _EJ; //#22387 - } else { //#22389 - $j -= 2; //#22389 - $k[$j++] = 0; //#22389 - } //#22389 - }; //#22389 - $k[$j++] = Infinity; //#22394 - $k[$j++] = 1; //#22394 - for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22394 - $k[$j++] = 0; //#22394 - } //#22394 - $_.coeffs = $a(); //#22394 - for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22403 - $_.i = _EQ; //#22396 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22397 - for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22401 - $_.j = _EX; //#22399 - $k[$j++] = $_.coeffs; //#22400 - $k[$j++] = $_.j; //#22400 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#22400 - $k[$j++] = $get($_.coeffs, $_.j); //#22400 - $k[$j++] = $get($_.rsalog, $_.i); //#22400 - $_.rsprod(); //#22400 - var _Ej = $k[--$j]; //#22400 - var _Ek = $k[--$j]; //#22400 - var _El = $k[--$j]; //#22400 - $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22400 - } //#22400 - $k[$j++] = $_.coeffs; //#22402 - $k[$j++] = 0; //#22402 - $k[$j++] = $get($_.coeffs, 0); //#22402 - $k[$j++] = $get($_.rsalog, $_.i); //#22402 - $_.rsprod(); //#22402 - var _Et = $k[--$j]; //#22402 - var _Eu = $k[--$j]; //#22402 - $put($k[--$j], _Eu, _Et); //#22402 - } //#22402 - $_.nd = $_.rscws.length; //#22406 - $k[$j++] = Infinity; //#22407 - $forall($_.rscws); //#22407 - for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22407 - $k[$j++] = 0; //#22407 - } //#22407 - $k[$j++] = 0; //#22407 - $_.rscws = $a(); //#22407 - for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22414 - $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22409 - for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22413 - $_.j = _FC; //#22411 - $k[$j++] = $_.rscws; //#22412 - $k[$j++] = $_.nd + $_.j; //#22412 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22412 - $k[$j++] = $_.k; //#22412 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22412 - $_.rsprod(); //#22412 - var _FP = $k[--$j]; //#22412 - var _FQ = $k[--$j]; //#22412 - var _FR = $k[--$j]; //#22412 - $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22412 - } //#22412 - } //#22412 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22417 - }; //#22417 - if ($eq($_.format, "full")) { //#22432 - $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22423 - if ($_.readerinit) { //#22424 - $_.mode = $_.mode | 1024; //#22424 - } //#22424 - $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22430 - $k[$j++] = 'mode'; //#22431 - $k[$j++] = $_.mode; //#22431 - $k[$j++] = 6; //#22431 - $k[$j++] = 16; //#22431 - $k[$j++] = 19; //#22431 - $_.rscodes(); //#22431 - var _Fh = $k[--$j]; //#22431 - $_[$k[--$j]] = _Fh; //#22431 - } //#22431 - if ($eq($_.format, "compact")) { //#22441 - $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22434 - if ($_.readerinit) { //#22435 - $_.mode = $_.mode | 32; //#22435 - } //#22435 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22439 - $k[$j++] = 'mode'; //#22440 - $k[$j++] = $_.mode; //#22440 - $k[$j++] = 5; //#22440 - $k[$j++] = 16; //#22440 - $k[$j++] = 19; //#22440 - $_.rscodes(); //#22440 - var _Fs = $k[--$j]; //#22440 - $_[$k[--$j]] = _Fs; //#22440 - } //#22440 - if ($eq($_.format, "rune")) { //#22450 - $_.mode = $cvi($_.barcode); //#22443 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22447 - $k[$j++] = 'mode'; //#22448 - $k[$j++] = $_.mode; //#22448 - $k[$j++] = 5; //#22448 - $k[$j++] = 16; //#22448 - $k[$j++] = 19; //#22448 - $_.rscodes(); //#22448 - var _G0 = $k[--$j]; //#22448 - $_[$k[--$j]] = _G0; //#22448 - $k[$j++] = Infinity; //#22449 - var _G2 = $_.mode; //#22449 - for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22449 - $k[$j++] = $get(_G2, _G3) ^ 10; //#22449 - } //#22449 - $_.mode = $a(); //#22449 - } //#22449 - $_.modebits = $s($_.mode.length * 4); //#22451 - for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22452 - $puti($_.modebits, _GB, "0"); //#22452 - } //#22452 - for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22456 - $_.i = _GF; //#22454 - var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22455 - $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22455 - } //#22455 - if (!bwipp_azteccode.__22470__) { //#22470 - $_ = Object.create($_); //#22470 - $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22469 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22469 - bwipp_azteccode.__22470__ = 1; //#22469 - $_ = Object.getPrototypeOf($_); //#22469 - } //#22469 - $k[$j++] = 'cws'; //#22471 - $k[$j++] = $_.cws; //#22471 - $k[$j++] = $f($_.ncws - $_.cws.length); //#22471 - $forall($get($_.rsparams, $_.bpcw)); //#22471 - $_.rscodes(); //#22471 - var _Gi = $k[--$j]; //#22471 - $_[$k[--$j]] = _Gi; //#22471 - if ($eq($_.format, "full")) { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22473 - } else { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22475 - } //#22475 - for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22477 - $puti($_.databits, _Gv, "0"); //#22477 - } //#22477 - for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22483 - $_.i = _Gz; //#22479 - var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22480 - $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22482 - } //#22482 + var _E9 = $k[--$j]; //#22678 + var _EA = $k[--$j]; //#22678 + $k[$j++] = _EA; //#22682 + $k[$j++] = _E9; //#22682 + if ((_E9 != 0) && (_EA != 0)) { //#22681 + var _ED = $get($_.rslog, $k[--$j]); //#22679 + var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22679 + $k[$j++] = _EJ; //#22679 + } else { //#22681 + $j -= 2; //#22681 + $k[$j++] = 0; //#22681 + } //#22681 + }; //#22681 + $k[$j++] = Infinity; //#22686 + $k[$j++] = 1; //#22686 + for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22686 + $k[$j++] = 0; //#22686 + } //#22686 + $_.coeffs = $a(); //#22686 + for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22695 + $_.i = _EQ; //#22688 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22689 + for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22693 + $_.j = _EX; //#22691 + $k[$j++] = $_.coeffs; //#22692 + $k[$j++] = $_.j; //#22692 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#22692 + $k[$j++] = $get($_.coeffs, $_.j); //#22692 + $k[$j++] = $get($_.rsalog, $_.i); //#22692 + $_.rsprod(); //#22692 + var _Ej = $k[--$j]; //#22692 + var _Ek = $k[--$j]; //#22692 + var _El = $k[--$j]; //#22692 + $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22692 + } //#22692 + $k[$j++] = $_.coeffs; //#22694 + $k[$j++] = 0; //#22694 + $k[$j++] = $get($_.coeffs, 0); //#22694 + $k[$j++] = $get($_.rsalog, $_.i); //#22694 + $_.rsprod(); //#22694 + var _Et = $k[--$j]; //#22694 + var _Eu = $k[--$j]; //#22694 + $put($k[--$j], _Eu, _Et); //#22694 + } //#22694 + $_.nd = $_.rscws.length; //#22698 + $k[$j++] = Infinity; //#22699 + $forall($_.rscws); //#22699 + for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22699 + $k[$j++] = 0; //#22699 + } //#22699 + $k[$j++] = 0; //#22699 + $_.rscws = $a(); //#22699 + for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22706 + $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22701 + for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22705 + $_.j = _FC; //#22703 + $k[$j++] = $_.rscws; //#22704 + $k[$j++] = $_.nd + $_.j; //#22704 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22704 + $k[$j++] = $_.k; //#22704 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22704 + $_.rsprod(); //#22704 + var _FP = $k[--$j]; //#22704 + var _FQ = $k[--$j]; //#22704 + var _FR = $k[--$j]; //#22704 + $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22704 + } //#22704 + } //#22704 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22709 + }; //#22709 + if ($eq($_.format, "full")) { //#22724 + $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22715 + if ($_.readerinit) { //#22716 + $_.mode = $_.mode | 1024; //#22716 + } //#22716 + $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22722 + $k[$j++] = 'mode'; //#22723 + $k[$j++] = $_.mode; //#22723 + $k[$j++] = 6; //#22723 + $k[$j++] = 16; //#22723 + $k[$j++] = 19; //#22723 + $_.rscodes(); //#22723 + var _Fh = $k[--$j]; //#22723 + $_[$k[--$j]] = _Fh; //#22723 + } //#22723 + if ($eq($_.format, "compact")) { //#22733 + $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22726 + if ($_.readerinit) { //#22727 + $_.mode = $_.mode | 32; //#22727 + } //#22727 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22731 + $k[$j++] = 'mode'; //#22732 + $k[$j++] = $_.mode; //#22732 + $k[$j++] = 5; //#22732 + $k[$j++] = 16; //#22732 + $k[$j++] = 19; //#22732 + $_.rscodes(); //#22732 + var _Fs = $k[--$j]; //#22732 + $_[$k[--$j]] = _Fs; //#22732 + } //#22732 + if ($eq($_.format, "rune")) { //#22742 + $_.mode = $cvi($_.barcode); //#22735 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22739 + $k[$j++] = 'mode'; //#22740 + $k[$j++] = $_.mode; //#22740 + $k[$j++] = 5; //#22740 + $k[$j++] = 16; //#22740 + $k[$j++] = 19; //#22740 + $_.rscodes(); //#22740 + var _G0 = $k[--$j]; //#22740 + $_[$k[--$j]] = _G0; //#22740 + $k[$j++] = Infinity; //#22741 + var _G2 = $_.mode; //#22741 + for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22741 + $k[$j++] = $get(_G2, _G3) ^ 10; //#22741 + } //#22741 + $_.mode = $a(); //#22741 + } //#22741 + $_.modebits = $s($_.mode.length * 4); //#22743 + for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22744 + $puti($_.modebits, _GB, "0"); //#22744 + } //#22744 + for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22748 + $_.i = _GF; //#22746 + var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22747 + $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22747 + } //#22747 + if (!bwipp_azteccode.__22762__) { //#22762 + $_ = Object.create($_); //#22762 + $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22761 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22761 + bwipp_azteccode.__22762__ = 1; //#22761 + $_ = Object.getPrototypeOf($_); //#22761 + } //#22761 + $k[$j++] = 'cws'; //#22763 + $k[$j++] = $_.cws; //#22763 + $k[$j++] = $f($_.ncws - $_.cws.length); //#22763 + $forall($get($_.rsparams, $_.bpcw)); //#22763 + $_.rscodes(); //#22763 + var _Gi = $k[--$j]; //#22763 + $_[$k[--$j]] = _Gi; //#22763 + if ($eq($_.format, "full")) { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22765 + } else { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22767 + } //#22767 + for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22769 + $puti($_.databits, _Gv, "0"); //#22769 + } //#22769 + for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22775 + $_.i = _Gz; //#22771 + var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22772 + $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22774 + } //#22774 $_.cmv = function() { - var _HE = $k[--$j]; //#22486 - var _HF = $k[--$j]; //#22486 - $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22486 - }; //#22486 + var _HE = $k[--$j]; //#22778 + var _HF = $k[--$j]; //#22778 + $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22778 + }; //#22778 $_.lmv = function() { - $_.lbit = $k[--$j]; //#22490 - $_.llyr = $k[--$j]; //#22491 - $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22492 - $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22493 - if ($_.ldir == 0) { //#22498 - $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22497 - $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22497 - $_.cmv(); //#22497 - } //#22497 - if ($_.ldir == 1) { //#22503 - $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22502 - $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22502 - $_.cmv(); //#22502 - } //#22502 - if ($_.ldir == 2) { //#22508 - $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22507 - $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22507 - $_.cmv(); //#22507 - } //#22507 - if ($_.ldir == 3) { //#22513 - $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22512 - $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22512 - $_.cmv(); //#22512 - } //#22512 - }; //#22512 - if ($eq($_.format, "full")) { //#22518 - $_.fw = 12; //#22518 - } else { //#22518 - $_.fw = 9; //#22518 - } //#22518 - $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22519 - $k[$j++] = Infinity; //#22520 - for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22520 - $k[$j++] = -1; //#22520 - } //#22520 - $_.pixs = $a(); //#22520 - $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22521 - $_.i = 0; //#22524 - for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22532 - $_.layer = _I2; //#22526 - for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22531 - $_.pos = _I6; //#22528 - $k[$j++] = $_.pixs; //#22529 - $k[$j++] = $_.layer; //#22529 - $k[$j++] = $_.pos; //#22529 - $_.lmv(); //#22529 - var _IE = $k[--$j]; //#22529 - $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22529 - $_.i = $_.i + 1; //#22530 - } //#22530 - } //#22530 - if ($eq($_.format, "full")) { //#22559 - $_.fw = 13; //#22536 - $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22537 - $_.mid = ~~(($_.size * $_.size) / 2); //#22538 - $k[$j++] = Infinity; //#22539 - for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22539 - $k[$j++] = -2; //#22539 - } //#22539 - $_.npixs = $a(); //#22539 - for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22549 - $_.i = _IU; //#22541 - for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22548 - $_.j = _IX; //#22543 - $k[$j++] = $_.npixs; //#22544 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22544 - $k[$j++] = $_.i; //#22544 - $_.cmv(); //#22544 - var _Ig = $k[--$j]; //#22544 - $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22544 - $k[$j++] = $_.npixs; //#22545 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22545 - $k[$j++] = -$_.i; //#22545 - $_.cmv(); //#22545 - var _Iq = $k[--$j]; //#22545 - $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22545 - $k[$j++] = $_.npixs; //#22546 - $k[$j++] = $_.i; //#22546 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22546 - $_.cmv(); //#22546 - var _J0 = $k[--$j]; //#22546 - $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22546 - $k[$j++] = $_.npixs; //#22547 - $k[$j++] = -$_.i; //#22547 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22547 - $_.cmv(); //#22547 - var _JA = $k[--$j]; //#22547 - $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22547 - } //#22547 - } //#22547 - $_.j = 0; //#22550 - for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22557 - $_.i = _JE; //#22552 - if ($get($_.npixs, $_.i) == -2) { //#22556 - $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22554 - $_.j = $_.j + 1; //#22555 - } //#22555 - } //#22555 - $_.pixs = $_.npixs; //#22558 - } //#22558 - $_.fw = ~~($_.fw / 2); //#22562 - for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22571 - $_.i = _JT; //#22564 - for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22570 - $_.j = _JX; //#22566 - $k[$j++] = $_.pixs; //#22567 - $k[$j++] = $_.i; //#22567 - $k[$j++] = $_.j; //#22567 - $_.cmv(); //#22567 - if (Math.abs($_.i) > Math.abs($_.j)) { //#22568 - $k[$j++] = Math.abs($_.i); //#22568 - } else { //#22568 - $k[$j++] = Math.abs($_.j); //#22568 - } //#22568 - var _Jf = $k[--$j]; //#22568 - var _Jg = $k[--$j]; //#22569 - $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22569 - } //#22569 - } //#22569 - var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22579 - for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22580 - $k[$j++] = $_.pixs; //#22580 - $forall($get(_KI, _KJ)); //#22580 - var _KN = $k[--$j]; //#22580 - var _KO = $k[--$j]; //#22580 - var _KP = $k[--$j]; //#22580 - $k[$j++] = _KN; //#22580 - $k[$j++] = _KP; //#22580 - $k[$j++] = _KO; //#22580 - $_.cmv(); //#22580 - var _KQ = $k[--$j]; //#22580 - var _KR = $k[--$j]; //#22580 - $put($k[--$j], _KQ, _KR); //#22580 - } //#22580 - if (!bwipp_azteccode.__22596__) { //#22596 - $_ = Object.create($_); //#22596 - $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22589 - $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22595 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22595 - bwipp_azteccode.__22596__ = 1; //#22595 - $_ = Object.getPrototypeOf($_); //#22595 - } //#22595 - $k[$j++] = 'modemap'; //#22597 - if ($eq($_.format, "full")) { //#22597 - $k[$j++] = $_.modemapfull; //#22597 - } else { //#22597 - $k[$j++] = $_.modemapcompact; //#22597 - } //#22597 - var _Lf = $k[--$j]; //#22597 - $_[$k[--$j]] = _Lf; //#22597 - for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22601 - $_.i = _Lj; //#22599 - $k[$j++] = $_.pixs; //#22600 - $forall($get($_.modemap, $_.i)); //#22600 - $_.cmv(); //#22600 - var _Lr = $k[--$j]; //#22600 - $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22600 - } //#22600 + $_.lbit = $k[--$j]; //#22782 + $_.llyr = $k[--$j]; //#22783 + $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22784 + $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22785 + if ($_.ldir == 0) { //#22790 + $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22789 + $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22789 + $_.cmv(); //#22789 + } //#22789 + if ($_.ldir == 1) { //#22795 + $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22794 + $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22794 + $_.cmv(); //#22794 + } //#22794 + if ($_.ldir == 2) { //#22800 + $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22799 + $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22799 + $_.cmv(); //#22799 + } //#22799 + if ($_.ldir == 3) { //#22805 + $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22804 + $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22804 + $_.cmv(); //#22804 + } //#22804 + }; //#22804 + if ($eq($_.format, "full")) { //#22810 + $_.fw = 12; //#22810 + } else { //#22810 + $_.fw = 9; //#22810 + } //#22810 + $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22811 + $k[$j++] = Infinity; //#22812 + for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22812 + $k[$j++] = -1; //#22812 + } //#22812 + $_.pixs = $a(); //#22812 + $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22813 + $_.i = 0; //#22816 + for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22824 + $_.layer = _I2; //#22818 + for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22823 + $_.pos = _I6; //#22820 + $k[$j++] = $_.pixs; //#22821 + $k[$j++] = $_.layer; //#22821 + $k[$j++] = $_.pos; //#22821 + $_.lmv(); //#22821 + var _IE = $k[--$j]; //#22821 + $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22821 + $_.i = $_.i + 1; //#22822 + } //#22822 + } //#22822 + if ($eq($_.format, "full")) { //#22851 + $_.fw = 13; //#22828 + $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22829 + $_.mid = ~~(($_.size * $_.size) / 2); //#22830 + $k[$j++] = Infinity; //#22831 + for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22831 + $k[$j++] = -2; //#22831 + } //#22831 + $_.npixs = $a(); //#22831 + for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22841 + $_.i = _IU; //#22833 + for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22840 + $_.j = _IX; //#22835 + $k[$j++] = $_.npixs; //#22836 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22836 + $k[$j++] = $_.i; //#22836 + $_.cmv(); //#22836 + var _Ig = $k[--$j]; //#22836 + $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22836 + $k[$j++] = $_.npixs; //#22837 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22837 + $k[$j++] = -$_.i; //#22837 + $_.cmv(); //#22837 + var _Iq = $k[--$j]; //#22837 + $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22837 + $k[$j++] = $_.npixs; //#22838 + $k[$j++] = $_.i; //#22838 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22838 + $_.cmv(); //#22838 + var _J0 = $k[--$j]; //#22838 + $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22838 + $k[$j++] = $_.npixs; //#22839 + $k[$j++] = -$_.i; //#22839 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22839 + $_.cmv(); //#22839 + var _JA = $k[--$j]; //#22839 + $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22839 + } //#22839 + } //#22839 + $_.j = 0; //#22842 + for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22849 + $_.i = _JE; //#22844 + if ($get($_.npixs, $_.i) == -2) { //#22848 + $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22846 + $_.j = $_.j + 1; //#22847 + } //#22847 + } //#22847 + $_.pixs = $_.npixs; //#22850 + } //#22850 + $_.fw = ~~($_.fw / 2); //#22854 + for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22863 + $_.i = _JT; //#22856 + for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22862 + $_.j = _JX; //#22858 + $k[$j++] = $_.pixs; //#22859 + $k[$j++] = $_.i; //#22859 + $k[$j++] = $_.j; //#22859 + $_.cmv(); //#22859 + if (Math.abs($_.i) > Math.abs($_.j)) { //#22860 + $k[$j++] = Math.abs($_.i); //#22860 + } else { //#22860 + $k[$j++] = Math.abs($_.j); //#22860 + } //#22860 + var _Jf = $k[--$j]; //#22860 + var _Jg = $k[--$j]; //#22861 + $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22861 + } //#22861 + } //#22861 + var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22871 + for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22872 + $k[$j++] = $_.pixs; //#22872 + $forall($get(_KI, _KJ)); //#22872 + var _KN = $k[--$j]; //#22872 + var _KO = $k[--$j]; //#22872 + var _KP = $k[--$j]; //#22872 + $k[$j++] = _KN; //#22872 + $k[$j++] = _KP; //#22872 + $k[$j++] = _KO; //#22872 + $_.cmv(); //#22872 + var _KQ = $k[--$j]; //#22872 + var _KR = $k[--$j]; //#22872 + $put($k[--$j], _KQ, _KR); //#22872 + } //#22872 + if (!bwipp_azteccode.__22888__) { //#22888 + $_ = Object.create($_); //#22888 + $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22881 + $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22887 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22887 + bwipp_azteccode.__22888__ = 1; //#22887 + $_ = Object.getPrototypeOf($_); //#22887 + } //#22887 + $k[$j++] = 'modemap'; //#22889 + if ($eq($_.format, "full")) { //#22889 + $k[$j++] = $_.modemapfull; //#22889 + } else { //#22889 + $k[$j++] = $_.modemapcompact; //#22889 + } //#22889 + var _Lf = $k[--$j]; //#22889 + $_[$k[--$j]] = _Lf; //#22889 + for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22893 + $_.i = _Lj; //#22891 + $k[$j++] = $_.pixs; //#22892 + $forall($get($_.modemap, $_.i)); //#22892 + $_.cmv(); //#22892 + var _Lr = $k[--$j]; //#22892 + $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22892 + } //#22892 var _Lz = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -27924,1730 +28367,1728 @@ function bwipp_azteccode() { ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], ["opt", $_.options] - ]); //#22610 - $k[$j++] = _Lz; //#22613 - if (!$_.dontdraw) { //#22613 - bwipp_renmatrix(); //#22613 - } //#22613 - $_ = Object.getPrototypeOf($_); //#22615 - $_ = Object.getPrototypeOf($_); //#22617 -} - + ]); //#22902 + $k[$j++] = _Lz; //#22905 + if (!$_.dontdraw) { //#22905 + bwipp_renmatrix(); //#22905 + } //#22905 + $_ = Object.getPrototypeOf($_); //#22907 + $_ = Object.getPrototypeOf($_); //#22909 +} //bwipp_azteccode function bwipp_azteccodecompact() { - $_ = Object.create($_); //#22646 - $_.dontdraw = false; //#22649 - $k[$j++] = $_; //#22651 - bwipp_processoptions(); //#22651 - $_.options = $k[--$j]; //#22651 - $_.barcode = $k[--$j]; //#22652 - $put($_.options, "dontdraw", true); //#22655 - $put($_.options, "format", "compact"); //#22656 - $k[$j++] = 'args'; //#22658 - $k[$j++] = $_.barcode; //#22658 - $k[$j++] = $_.options; //#22658 - bwipp_azteccode(); //#22658 - var _6 = $k[--$j]; //#22658 - $_[$k[--$j]] = _6; //#22658 - $put($_.args, "opt", $_.options); //#22660 - $k[$j++] = $_.args; //#22663 - if (!$_.dontdraw) { //#22663 - bwipp_renmatrix(); //#22663 - } //#22663 - $_ = Object.getPrototypeOf($_); //#22665 -} - + $_ = Object.create($_); //#22938 + $_.dontdraw = false; //#22941 + $k[$j++] = $_; //#22943 + bwipp_processoptions(); //#22943 + $_.options = $k[--$j]; //#22943 + $_.barcode = $k[--$j]; //#22944 + $put($_.options, "dontdraw", true); //#22947 + $put($_.options, "format", "compact"); //#22948 + $k[$j++] = 'args'; //#22950 + $k[$j++] = $_.barcode; //#22950 + $k[$j++] = $_.options; //#22950 + bwipp_azteccode(); //#22950 + var _6 = $k[--$j]; //#22950 + $_[$k[--$j]] = _6; //#22950 + $put($_.args, "opt", $_.options); //#22952 + $k[$j++] = $_.args; //#22955 + if (!$_.dontdraw) { //#22955 + bwipp_renmatrix(); //#22955 + } //#22955 + $_ = Object.getPrototypeOf($_); //#22957 +} //bwipp_azteccodecompact function bwipp_aztecrune() { - $_ = Object.create($_); //#22694 - $_.dontdraw = false; //#22697 - $k[$j++] = $_; //#22699 - bwipp_processoptions(); //#22699 - $_.options = $k[--$j]; //#22699 - $_.barcode = $k[--$j]; //#22700 - $put($_.options, "dontdraw", true); //#22703 - $put($_.options, "format", "rune"); //#22704 - $k[$j++] = 'args'; //#22706 - $k[$j++] = $_.barcode; //#22706 - $k[$j++] = $_.options; //#22706 - bwipp_azteccode(); //#22706 - var _6 = $k[--$j]; //#22706 - $_[$k[--$j]] = _6; //#22706 - $put($_.args, "opt", $_.options); //#22708 - $k[$j++] = $_.args; //#22711 - if (!$_.dontdraw) { //#22711 - bwipp_renmatrix(); //#22711 - } //#22711 - $_ = Object.getPrototypeOf($_); //#22713 -} - + $_ = Object.create($_); //#22986 + $_.dontdraw = false; //#22989 + $k[$j++] = $_; //#22991 + bwipp_processoptions(); //#22991 + $_.options = $k[--$j]; //#22991 + $_.barcode = $k[--$j]; //#22992 + $put($_.options, "dontdraw", true); //#22995 + $put($_.options, "format", "rune"); //#22996 + $k[$j++] = 'args'; //#22998 + $k[$j++] = $_.barcode; //#22998 + $k[$j++] = $_.options; //#22998 + bwipp_azteccode(); //#22998 + var _6 = $k[--$j]; //#22998 + $_[$k[--$j]] = _6; //#22998 + $put($_.args, "opt", $_.options); //#23000 + $k[$j++] = $_.args; //#23003 + if (!$_.dontdraw) { //#23003 + bwipp_renmatrix(); //#23003 + } //#23003 + $_ = Object.getPrototypeOf($_); //#23005 +} //bwipp_aztecrune function bwipp_codeone() { - $_ = Object.create($_); //#22744 - $_.dontdraw = false; //#22747 - $_.version = "unset"; //#22748 - $_.parse = false; //#22749 - $_.parsefnc = false; //#22750 - $k[$j++] = $_; //#22752 - bwipp_processoptions(); //#22752 - $_.options = $k[--$j]; //#22752 - $_.barcode = $k[--$j]; //#22753 - var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#22755 - $k[$j++] = false; //#22756 - for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#22756 - var _7 = $k[--$j]; //#22756 - $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#22756 - } //#22756 - if ($nt($k[--$j])) { //#22758 - $k[$j++] = 'bwipp.codeoneBadVersion#22757'; //#22757 - $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#22757 - bwipp_raiseerror(); //#22757 - } //#22757 - bwipp_loadctx(bwipp_codeone) //#22760 - $_.stype = $eq($geti($_.version, 0, 1), "S"); //#22762 - if (!bwipp_codeone.__22920__) { //#22920 - $_ = Object.create($_); //#22920 - $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#22784 - $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#22792 - $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#22808 - $_.fnc1 = -1; //#22811 - $_.fnc3 = -2; //#22811 - $_.lC = -5; //#22812 - $_.lB = -6; //#22812 - $_.lX = -7; //#22812 - $_.lT = -8; //#22812 - $_.lD = -9; //#22812 - $_.unl = -10; //#22812 - $_.fnc2 = -11; //#22813 - $_.fnc4 = -12; //#22813 - $_.sft1 = -13; //#22813 - $_.sft2 = -14; //#22813 - $_.sft3 = -15; //#22813 - $_.eci = -16; //#22813 - $_.pad = -17; //#22813 - $_.fnc1lD = -18; //#22813 - $_.unlcw = 255; //#22814 - $k[$j++] = Infinity; //#22825 - for (var _S = 0; _S <= 128; _S += 1) { //#22817 - $k[$j++] = _S; //#22817 - $k[$j++] = _S + 1; //#22817 - } //#22817 - $k[$j++] = $_.pad; //#22822 - $k[$j++] = 129; //#22822 - for (var _U = 0; _U <= 99; _U += 1) { //#22822 - var _W = $cvrs($s(2), _U, 10); //#22820 - var _Y = $strcpy($s(2), "00"); //#22820 - $puti(_Y, 2 - _W.length, _W); //#22820 - $k[$j++] = _Y; //#22821 - $k[$j++] = _U + 130; //#22821 - } //#22821 - var _g = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#22823 - $k[$j++] = 229; //#22823 - for (var _h = 0, _i = _g.length; _h < _i; _h++) { //#22823 - var _l = $f($k[--$j] + 1); //#22823 - $k[$j++] = $get(_g, _h); //#22823 - $k[$j++] = _l; //#22823 - $k[$j++] = _l; //#22823 - } //#22823 - $j--; //#22823 - $k[$j++] = $_.lX; //#22825 - $k[$j++] = 238; //#22825 - $k[$j++] = $_.lT; //#22825 - $k[$j++] = 239; //#22825 - $_.Avals = $d(); //#22827 - $k[$j++] = Infinity; //#22829 - var _p = $_.Avals; //#22829 - for (var _u = _p.size, _t = _p.keys(), _s = 0; _s < _u; _s++) { //#22829 - var _q = _t.next().value; //#22829 - $k[$j++] = _q; //#22829 - $k[$j++] = _p.get(_q); //#22829 - $k[$j++] = Infinity; //#22829 - var _v = $k[--$j]; //#22829 - var _w = $k[--$j]; //#22829 - $k[$j++] = _v; //#22829 - $k[$j++] = _w; //#22829 - var _x = $a(); //#22829 - $k[$j++] = _x; //#22829 - } //#22829 - $_.Avals = $d(); //#22830 - $k[$j++] = Infinity; //#22838 - $k[$j++] = $_.sft1; //#22837 - $k[$j++] = 0; //#22837 - $k[$j++] = $_.sft2; //#22837 - $k[$j++] = 1; //#22837 - $k[$j++] = $_.sft3; //#22837 - $k[$j++] = 2; //#22837 - $k[$j++] = 32; //#22837 - $k[$j++] = 3; //#22837 - for (var _12 = 48; _12 <= 57; _12 += 1) { //#22837 - $k[$j++] = _12; //#22837 - $k[$j++] = _12 - 44; //#22837 - } //#22837 - for (var _13 = 65; _13 <= 90; _13 += 1) { //#22838 - $k[$j++] = _13; //#22838 - $k[$j++] = _13 - 51; //#22838 - } //#22838 - $_.CNvals = $d(); //#22839 - $k[$j++] = Infinity; //#22840 - for (var _15 = 0; _15 <= 31; _15 += 1) { //#22840 - $k[$j++] = _15; //#22840 - $k[$j++] = _15; //#22840 - } //#22840 - $_.C1vals = $d(); //#22840 - $k[$j++] = Infinity; //#22849 - for (var _17 = 33; _17 <= 47; _17 += 1) { //#22842 - $k[$j++] = _17; //#22842 - $k[$j++] = _17 - 33; //#22842 - } //#22842 - for (var _18 = 58; _18 <= 64; _18 += 1) { //#22843 - $k[$j++] = _18; //#22843 - $k[$j++] = _18 - 43; //#22843 - } //#22843 - for (var _19 = 91; _19 <= 95; _19 += 1) { //#22844 - $k[$j++] = _19; //#22844 - $k[$j++] = _19 - 69; //#22844 - } //#22844 - $k[$j++] = $_.fnc1; //#22849 - $k[$j++] = 27; //#22849 - $k[$j++] = $_.fnc2; //#22849 - $k[$j++] = 28; //#22849 - $k[$j++] = $_.fnc3; //#22849 - $k[$j++] = 29; //#22849 - $k[$j++] = $_.fnc4; //#22849 - $k[$j++] = 30; //#22849 - $k[$j++] = $_.pad; //#22849 - $k[$j++] = 31; //#22849 - $_.C2vals = $d(); //#22850 - $k[$j++] = Infinity; //#22851 - for (var _1G = 96; _1G <= 127; _1G += 1) { //#22851 - $k[$j++] = _1G; //#22851 - $k[$j++] = _1G - 96; //#22851 - } //#22851 - $_.C3vals = $d(); //#22851 - $k[$j++] = Infinity; //#22856 - var _1I = $_.CNvals; //#22853 - for (var _1N = _1I.size, _1M = _1I.keys(), _1L = 0; _1L < _1N; _1L++) { //#22853 - var _1J = _1M.next().value; //#22853 - $k[$j++] = _1J; //#22853 - $k[$j++] = _1I.get(_1J); //#22853 - $k[$j++] = Infinity; //#22853 - var _1O = $k[--$j]; //#22853 - var _1P = $k[--$j]; //#22853 - $k[$j++] = _1O; //#22853 - $k[$j++] = _1P; //#22853 - var _1Q = $a(); //#22853 - $k[$j++] = _1Q; //#22853 - } //#22853 - var _1R = $_.C1vals; //#22854 - for (var _1W = _1R.size, _1V = _1R.keys(), _1U = 0; _1U < _1W; _1U++) { //#22854 - var _1S = _1V.next().value; //#22854 - $k[$j++] = _1S; //#22854 - $k[$j++] = _1R.get(_1S); //#22854 - $k[$j++] = Infinity; //#22854 - var _1X = $k[--$j]; //#22854 - var _1Y = $k[--$j]; //#22854 - $k[$j++] = _1X; //#22854 - $k[$j++] = $get($_.CNvals, $_.sft1); //#22854 - $k[$j++] = _1Y; //#22854 - var _1c = $a(); //#22854 - $k[$j++] = _1c; //#22854 - } //#22854 - var _1d = $_.C2vals; //#22855 - for (var _1i = _1d.size, _1h = _1d.keys(), _1g = 0; _1g < _1i; _1g++) { //#22855 - var _1e = _1h.next().value; //#22855 - $k[$j++] = _1e; //#22855 - $k[$j++] = _1d.get(_1e); //#22855 - $k[$j++] = Infinity; //#22855 - var _1j = $k[--$j]; //#22855 - var _1k = $k[--$j]; //#22855 - $k[$j++] = _1j; //#22855 - $k[$j++] = $get($_.CNvals, $_.sft2); //#22855 - $k[$j++] = _1k; //#22855 - var _1o = $a(); //#22855 - $k[$j++] = _1o; //#22855 - } //#22855 - var _1p = $_.C3vals; //#22856 - for (var _1u = _1p.size, _1t = _1p.keys(), _1s = 0; _1s < _1u; _1s++) { //#22856 - var _1q = _1t.next().value; //#22856 - $k[$j++] = _1q; //#22856 - $k[$j++] = _1p.get(_1q); //#22856 - $k[$j++] = Infinity; //#22856 - var _1v = $k[--$j]; //#22856 - var _1w = $k[--$j]; //#22856 - $k[$j++] = _1v; //#22856 - $k[$j++] = $get($_.CNvals, $_.sft3); //#22856 - $k[$j++] = _1w; //#22856 - var _20 = $a(); //#22856 - $k[$j++] = _20; //#22856 - } //#22856 - $_.Cvals = $d(); //#22857 - $k[$j++] = Infinity; //#22865 - $k[$j++] = $_.sft1; //#22864 - $k[$j++] = 0; //#22864 - $k[$j++] = $_.sft2; //#22864 - $k[$j++] = 1; //#22864 - $k[$j++] = $_.sft3; //#22864 - $k[$j++] = 2; //#22864 - $k[$j++] = 32; //#22864 - $k[$j++] = 3; //#22864 - for (var _25 = 48; _25 <= 57; _25 += 1) { //#22864 - $k[$j++] = _25; //#22864 - $k[$j++] = _25 - 44; //#22864 - } //#22864 - for (var _26 = 97; _26 <= 122; _26 += 1) { //#22865 - $k[$j++] = _26; //#22865 - $k[$j++] = _26 - 83; //#22865 - } //#22865 - $_.TNvals = $d(); //#22866 - $k[$j++] = Infinity; //#22867 - for (var _28 = 0; _28 <= 31; _28 += 1) { //#22867 - $k[$j++] = _28; //#22867 - $k[$j++] = _28; //#22867 - } //#22867 - $_.T1vals = $d(); //#22867 - $k[$j++] = Infinity; //#22876 - for (var _2A = 33; _2A <= 47; _2A += 1) { //#22869 - $k[$j++] = _2A; //#22869 - $k[$j++] = _2A - 33; //#22869 - } //#22869 - for (var _2B = 58; _2B <= 64; _2B += 1) { //#22870 - $k[$j++] = _2B; //#22870 - $k[$j++] = _2B - 43; //#22870 - } //#22870 - for (var _2C = 91; _2C <= 95; _2C += 1) { //#22871 - $k[$j++] = _2C; //#22871 - $k[$j++] = _2C - 69; //#22871 - } //#22871 - $k[$j++] = $_.fnc1; //#22876 - $k[$j++] = 27; //#22876 - $k[$j++] = $_.fnc2; //#22876 - $k[$j++] = 28; //#22876 - $k[$j++] = $_.fnc3; //#22876 - $k[$j++] = 29; //#22876 - $k[$j++] = $_.fnc4; //#22876 - $k[$j++] = 30; //#22876 - $k[$j++] = $_.pad; //#22876 - $k[$j++] = 31; //#22876 - $_.T2vals = $d(); //#22877 - $k[$j++] = Infinity; //#22881 - $k[$j++] = 96; //#22880 - $k[$j++] = 0; //#22880 - for (var _2J = 65; _2J <= 90; _2J += 1) { //#22880 - $k[$j++] = _2J; //#22880 - $k[$j++] = _2J - 64; //#22880 - } //#22880 - for (var _2K = 123; _2K <= 127; _2K += 1) { //#22881 - $k[$j++] = _2K; //#22881 - $k[$j++] = _2K - 96; //#22881 - } //#22881 - $_.T3vals = $d(); //#22882 - $k[$j++] = Infinity; //#22887 - var _2M = $_.TNvals; //#22884 - for (var _2R = _2M.size, _2Q = _2M.keys(), _2P = 0; _2P < _2R; _2P++) { //#22884 - var _2N = _2Q.next().value; //#22884 - $k[$j++] = _2N; //#22884 - $k[$j++] = _2M.get(_2N); //#22884 - $k[$j++] = Infinity; //#22884 - var _2S = $k[--$j]; //#22884 - var _2T = $k[--$j]; //#22884 - $k[$j++] = _2S; //#22884 - $k[$j++] = _2T; //#22884 - var _2U = $a(); //#22884 - $k[$j++] = _2U; //#22884 - } //#22884 - var _2V = $_.T1vals; //#22885 - for (var _2a = _2V.size, _2Z = _2V.keys(), _2Y = 0; _2Y < _2a; _2Y++) { //#22885 - var _2W = _2Z.next().value; //#22885 - $k[$j++] = _2W; //#22885 - $k[$j++] = _2V.get(_2W); //#22885 - $k[$j++] = Infinity; //#22885 - var _2b = $k[--$j]; //#22885 - var _2c = $k[--$j]; //#22885 - $k[$j++] = _2b; //#22885 - $k[$j++] = $get($_.TNvals, $_.sft1); //#22885 - $k[$j++] = _2c; //#22885 - var _2g = $a(); //#22885 - $k[$j++] = _2g; //#22885 - } //#22885 - var _2h = $_.T2vals; //#22886 - for (var _2m = _2h.size, _2l = _2h.keys(), _2k = 0; _2k < _2m; _2k++) { //#22886 - var _2i = _2l.next().value; //#22886 - $k[$j++] = _2i; //#22886 - $k[$j++] = _2h.get(_2i); //#22886 - $k[$j++] = Infinity; //#22886 - var _2n = $k[--$j]; //#22886 - var _2o = $k[--$j]; //#22886 - $k[$j++] = _2n; //#22886 - $k[$j++] = $get($_.TNvals, $_.sft2); //#22886 - $k[$j++] = _2o; //#22886 - var _2s = $a(); //#22886 - $k[$j++] = _2s; //#22886 - } //#22886 - var _2t = $_.T3vals; //#22887 - for (var _2y = _2t.size, _2x = _2t.keys(), _2w = 0; _2w < _2y; _2w++) { //#22887 - var _2u = _2x.next().value; //#22887 - $k[$j++] = _2u; //#22887 - $k[$j++] = _2t.get(_2u); //#22887 - $k[$j++] = Infinity; //#22887 - var _2z = $k[--$j]; //#22887 - var _30 = $k[--$j]; //#22887 - $k[$j++] = _2z; //#22887 - $k[$j++] = $get($_.TNvals, $_.sft3); //#22887 - $k[$j++] = _30; //#22887 - var _34 = $a(); //#22887 - $k[$j++] = _34; //#22887 - } //#22887 - $_.Tvals = $d(); //#22888 - for (var _36 = 128; _36 <= 255; _36 += 1) { //#22896 - $_.i = _36; //#22892 - $k[$j++] = $_.Avals; //#22893 - $k[$j++] = $_.i; //#22893 - $k[$j++] = Infinity; //#22893 - $aload($get($_.Avals, $_.fnc4)); //#22893 - $aload($get($_.Avals, $_.i - 128)); //#22893 - var _3F = $a(); //#22893 - var _3G = $k[--$j]; //#22893 - $put($k[--$j], _3G, _3F); //#22893 - $k[$j++] = $_.Cvals; //#22894 - $k[$j++] = $_.i; //#22894 - $k[$j++] = Infinity; //#22894 - $aload($get($_.Cvals, $_.fnc4)); //#22894 - $aload($get($_.Cvals, $_.i - 128)); //#22894 - var _3Q = $a(); //#22894 - var _3R = $k[--$j]; //#22894 - $put($k[--$j], _3R, _3Q); //#22894 - $k[$j++] = $_.Tvals; //#22895 - $k[$j++] = $_.i; //#22895 - $k[$j++] = Infinity; //#22895 - $aload($get($_.Tvals, $_.fnc4)); //#22895 - $aload($get($_.Tvals, $_.i - 128)); //#22895 - var _3b = $a(); //#22895 - var _3c = $k[--$j]; //#22895 - $put($k[--$j], _3c, _3b); //#22895 - } //#22895 - $k[$j++] = Infinity; //#22904 - $k[$j++] = 13; //#22903 - $k[$j++] = 0; //#22903 - $k[$j++] = 42; //#22903 - $k[$j++] = 1; //#22903 - $k[$j++] = 62; //#22903 - $k[$j++] = 2; //#22903 - $k[$j++] = 32; //#22903 - $k[$j++] = 3; //#22903 - for (var _3e = 48; _3e <= 57; _3e += 1) { //#22903 - $k[$j++] = _3e; //#22903 - $k[$j++] = _3e - 44; //#22903 - } //#22903 - for (var _3f = 65; _3f <= 90; _3f += 1) { //#22904 - $k[$j++] = _3f; //#22904 - $k[$j++] = _3f - 51; //#22904 - } //#22904 - $_.Xvals = $d(); //#22905 - $k[$j++] = Infinity; //#22907 - var _3h = $_.Xvals; //#22907 - for (var _3m = _3h.size, _3l = _3h.keys(), _3k = 0; _3k < _3m; _3k++) { //#22907 - var _3i = _3l.next().value; //#22907 - $k[$j++] = _3i; //#22907 - $k[$j++] = _3h.get(_3i); //#22907 - $k[$j++] = Infinity; //#22907 - var _3n = $k[--$j]; //#22907 - var _3o = $k[--$j]; //#22907 - $k[$j++] = _3n; //#22907 - $k[$j++] = _3o; //#22907 - var _3p = $a(); //#22907 - $k[$j++] = _3p; //#22907 - } //#22907 - $_.Xvals = $d(); //#22908 - $k[$j++] = Infinity; //#22911 - for (var _3r = 0; _3r <= 255; _3r += 1) { //#22911 - $k[$j++] = _3r; //#22911 - $k[$j++] = _3r; //#22911 - } //#22911 - $_.Bvals = $d(); //#22912 - $k[$j++] = Infinity; //#22914 - var _3t = $_.Bvals; //#22914 - for (var _3y = _3t.size, _3x = _3t.keys(), _3w = 0; _3w < _3y; _3w++) { //#22914 - var _3u = _3x.next().value; //#22914 - $k[$j++] = _3u; //#22914 - $k[$j++] = _3t.get(_3u); //#22914 - $k[$j++] = Infinity; //#22914 - var _3z = $k[--$j]; //#22914 - var _40 = $k[--$j]; //#22914 - $k[$j++] = _3z; //#22914 - $k[$j++] = _40; //#22914 - var _41 = $a(); //#22914 - $k[$j++] = _41; //#22914 - } //#22914 - $_.Bvals = $d(); //#22915 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#22917 - $_.A = 0; //#22919 - $_.C = 1; //#22919 - $_.T = 2; //#22919 - $_.X = 3; //#22919 - $_.D = 4; //#22919 - $_.B = 5; //#22919 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#22919 - bwipp_codeone.__22920__ = 1; //#22919 - $_ = Object.getPrototypeOf($_); //#22919 - } //#22919 - if ($_.stype) { //#23418 - $forall($_.barcode, function() { //#22928 - var _4C = $k[--$j]; //#22925 - if ((_4C < 48) || (_4C > 57)) { //#22927 - $k[$j++] = 'bwipp.codeoneStypeNonDigit#22926'; //#22926 - $k[$j++] = "S-Type symbols can only contain digits"; //#22926 - bwipp_raiseerror(); //#22926 - } //#22926 - }); //#22926 - $_.barlen = $_.barcode.length; //#22930 - if ($_.barlen > 18) { //#22933 - $k[$j++] = 'bwipp.codeoneStypeTooLong#22932'; //#22932 - $k[$j++] = "Maximum length exceeded"; //#22932 - bwipp_raiseerror(); //#22932 - } //#22932 + $_ = Object.create($_); //#23036 + $_.dontdraw = false; //#23039 + $_.version = "unset"; //#23040 + $_.parse = false; //#23041 + $_.parsefnc = false; //#23042 + $k[$j++] = $_; //#23044 + bwipp_processoptions(); //#23044 + $_.options = $k[--$j]; //#23044 + $_.barcode = $k[--$j]; //#23045 + var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#23047 + $k[$j++] = false; //#23048 + for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#23048 + var _7 = $k[--$j]; //#23048 + $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#23048 + } //#23048 + if ($nt($k[--$j])) { //#23050 + $k[$j++] = 'bwipp.codeoneBadVersion#23049'; //#23049 + $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#23049 + bwipp_raiseerror(); //#23049 + } //#23049 + bwipp_loadctx(bwipp_codeone) //#23052 + $_.stype = $eq($geti($_.version, 0, 1), "S"); //#23054 + $_.ttype = $eq($geti($_.version, 0, 1), "T"); //#23055 + if (!bwipp_codeone.__23213__) { //#23213 + $_ = Object.create($_); //#23213 + $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#23077 + $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#23085 + $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#23101 + $_.fnc1 = -1; //#23104 + $_.fnc3 = -2; //#23104 + $_.lC = -5; //#23105 + $_.lB = -6; //#23105 + $_.lX = -7; //#23105 + $_.lT = -8; //#23105 + $_.lD = -9; //#23105 + $_.unl = -10; //#23105 + $_.fnc2 = -11; //#23106 + $_.fnc4 = -12; //#23106 + $_.sft1 = -13; //#23106 + $_.sft2 = -14; //#23106 + $_.sft3 = -15; //#23106 + $_.eci = -16; //#23106 + $_.pad = -17; //#23106 + $_.fnc1lD = -18; //#23106 + $_.unlcw = 255; //#23107 + $k[$j++] = Infinity; //#23109 + for (var _U = 0; _U <= 128; _U += 1) { //#23110 + $k[$j++] = _U; //#23110 + $k[$j++] = _U + 1; //#23110 + } //#23110 + $k[$j++] = $_.pad; //#23115 + $k[$j++] = 129; //#23115 + for (var _W = 0; _W <= 99; _W += 1) { //#23115 + var _Y = $cvrs($s(2), _W, 10); //#23113 + var _a = $strcpy($s(2), "00"); //#23113 + $puti(_a, 2 - _Y.length, _Y); //#23113 + $k[$j++] = _a; //#23114 + $k[$j++] = _W + 130; //#23114 + } //#23114 + var _i = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#23116 + $k[$j++] = 229; //#23116 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#23116 + var _n = $f($k[--$j] + 1); //#23116 + $k[$j++] = $get(_i, _j); //#23116 + $k[$j++] = _n; //#23116 + $k[$j++] = _n; //#23116 + } //#23116 + $j--; //#23116 + $k[$j++] = $_.lX; //#23118 + $k[$j++] = 238; //#23118 + $k[$j++] = $_.lT; //#23118 + $k[$j++] = 239; //#23118 + $_.Avals = $d(); //#23120 + $k[$j++] = Infinity; //#23121 + var _r = $_.Avals; //#23122 + for (var _w = _r.size, _v = _r.keys(), _u = 0; _u < _w; _u++) { //#23122 + var _s = _v.next().value; //#23122 + $k[$j++] = _s; //#23122 + $k[$j++] = _r.get(_s); //#23122 + $k[$j++] = Infinity; //#23122 + var _x = $k[--$j]; //#23122 + var _y = $k[--$j]; //#23122 + $k[$j++] = _x; //#23122 + $k[$j++] = _y; //#23122 + var _z = $a(); //#23122 + $k[$j++] = _z; //#23122 + } //#23122 + $_.Avals = $d(); //#23123 + $k[$j++] = Infinity; //#23125 + $k[$j++] = $_.sft1; //#23130 + $k[$j++] = 0; //#23130 + $k[$j++] = $_.sft2; //#23130 + $k[$j++] = 1; //#23130 + $k[$j++] = $_.sft3; //#23130 + $k[$j++] = 2; //#23130 + $k[$j++] = 32; //#23130 + $k[$j++] = 3; //#23130 + for (var _14 = 48; _14 <= 57; _14 += 1) { //#23130 + $k[$j++] = _14; //#23130 + $k[$j++] = _14 - 44; //#23130 + } //#23130 + for (var _15 = 65; _15 <= 90; _15 += 1) { //#23131 + $k[$j++] = _15; //#23131 + $k[$j++] = _15 - 51; //#23131 + } //#23131 + $_.CNvals = $d(); //#23132 + $k[$j++] = Infinity; //#23133 + for (var _17 = 0; _17 <= 31; _17 += 1) { //#23133 + $k[$j++] = _17; //#23133 + $k[$j++] = _17; //#23133 + } //#23133 + $_.C1vals = $d(); //#23133 + $k[$j++] = Infinity; //#23134 + for (var _19 = 33; _19 <= 47; _19 += 1) { //#23135 + $k[$j++] = _19; //#23135 + $k[$j++] = _19 - 33; //#23135 + } //#23135 + for (var _1A = 58; _1A <= 64; _1A += 1) { //#23136 + $k[$j++] = _1A; //#23136 + $k[$j++] = _1A - 43; //#23136 + } //#23136 + for (var _1B = 91; _1B <= 95; _1B += 1) { //#23137 + $k[$j++] = _1B; //#23137 + $k[$j++] = _1B - 69; //#23137 + } //#23137 + $k[$j++] = $_.fnc1; //#23142 + $k[$j++] = 27; //#23142 + $k[$j++] = $_.fnc2; //#23142 + $k[$j++] = 28; //#23142 + $k[$j++] = $_.fnc3; //#23142 + $k[$j++] = 29; //#23142 + $k[$j++] = $_.fnc4; //#23142 + $k[$j++] = 30; //#23142 + $k[$j++] = $_.pad; //#23142 + $k[$j++] = 31; //#23142 + $_.C2vals = $d(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _1I = 96; _1I <= 127; _1I += 1) { //#23144 + $k[$j++] = _1I; //#23144 + $k[$j++] = _1I - 96; //#23144 + } //#23144 + $_.C3vals = $d(); //#23144 + $k[$j++] = Infinity; //#23145 + var _1K = $_.CNvals; //#23146 + for (var _1P = _1K.size, _1O = _1K.keys(), _1N = 0; _1N < _1P; _1N++) { //#23146 + var _1L = _1O.next().value; //#23146 + $k[$j++] = _1L; //#23146 + $k[$j++] = _1K.get(_1L); //#23146 + $k[$j++] = Infinity; //#23146 + var _1Q = $k[--$j]; //#23146 + var _1R = $k[--$j]; //#23146 + $k[$j++] = _1Q; //#23146 + $k[$j++] = _1R; //#23146 + var _1S = $a(); //#23146 + $k[$j++] = _1S; //#23146 + } //#23146 + var _1T = $_.C1vals; //#23147 + for (var _1Y = _1T.size, _1X = _1T.keys(), _1W = 0; _1W < _1Y; _1W++) { //#23147 + var _1U = _1X.next().value; //#23147 + $k[$j++] = _1U; //#23147 + $k[$j++] = _1T.get(_1U); //#23147 + $k[$j++] = Infinity; //#23147 + var _1Z = $k[--$j]; //#23147 + var _1a = $k[--$j]; //#23147 + $k[$j++] = _1Z; //#23147 + $k[$j++] = $get($_.CNvals, $_.sft1); //#23147 + $k[$j++] = _1a; //#23147 + var _1e = $a(); //#23147 + $k[$j++] = _1e; //#23147 + } //#23147 + var _1f = $_.C2vals; //#23148 + for (var _1k = _1f.size, _1j = _1f.keys(), _1i = 0; _1i < _1k; _1i++) { //#23148 + var _1g = _1j.next().value; //#23148 + $k[$j++] = _1g; //#23148 + $k[$j++] = _1f.get(_1g); //#23148 + $k[$j++] = Infinity; //#23148 + var _1l = $k[--$j]; //#23148 + var _1m = $k[--$j]; //#23148 + $k[$j++] = _1l; //#23148 + $k[$j++] = $get($_.CNvals, $_.sft2); //#23148 + $k[$j++] = _1m; //#23148 + var _1q = $a(); //#23148 + $k[$j++] = _1q; //#23148 + } //#23148 + var _1r = $_.C3vals; //#23149 + for (var _1w = _1r.size, _1v = _1r.keys(), _1u = 0; _1u < _1w; _1u++) { //#23149 + var _1s = _1v.next().value; //#23149 + $k[$j++] = _1s; //#23149 + $k[$j++] = _1r.get(_1s); //#23149 + $k[$j++] = Infinity; //#23149 + var _1x = $k[--$j]; //#23149 + var _1y = $k[--$j]; //#23149 + $k[$j++] = _1x; //#23149 + $k[$j++] = $get($_.CNvals, $_.sft3); //#23149 + $k[$j++] = _1y; //#23149 + var _22 = $a(); //#23149 + $k[$j++] = _22; //#23149 + } //#23149 + $_.Cvals = $d(); //#23150 + $k[$j++] = Infinity; //#23152 + $k[$j++] = $_.sft1; //#23157 + $k[$j++] = 0; //#23157 + $k[$j++] = $_.sft2; //#23157 + $k[$j++] = 1; //#23157 + $k[$j++] = $_.sft3; //#23157 + $k[$j++] = 2; //#23157 + $k[$j++] = 32; //#23157 + $k[$j++] = 3; //#23157 + for (var _27 = 48; _27 <= 57; _27 += 1) { //#23157 + $k[$j++] = _27; //#23157 + $k[$j++] = _27 - 44; //#23157 + } //#23157 + for (var _28 = 97; _28 <= 122; _28 += 1) { //#23158 + $k[$j++] = _28; //#23158 + $k[$j++] = _28 - 83; //#23158 + } //#23158 + $_.TNvals = $d(); //#23159 + $k[$j++] = Infinity; //#23160 + for (var _2A = 0; _2A <= 31; _2A += 1) { //#23160 + $k[$j++] = _2A; //#23160 + $k[$j++] = _2A; //#23160 + } //#23160 + $_.T1vals = $d(); //#23160 + $k[$j++] = Infinity; //#23161 + for (var _2C = 33; _2C <= 47; _2C += 1) { //#23162 + $k[$j++] = _2C; //#23162 + $k[$j++] = _2C - 33; //#23162 + } //#23162 + for (var _2D = 58; _2D <= 64; _2D += 1) { //#23163 + $k[$j++] = _2D; //#23163 + $k[$j++] = _2D - 43; //#23163 + } //#23163 + for (var _2E = 91; _2E <= 95; _2E += 1) { //#23164 + $k[$j++] = _2E; //#23164 + $k[$j++] = _2E - 69; //#23164 + } //#23164 + $k[$j++] = $_.fnc1; //#23169 + $k[$j++] = 27; //#23169 + $k[$j++] = $_.fnc2; //#23169 + $k[$j++] = 28; //#23169 + $k[$j++] = $_.fnc3; //#23169 + $k[$j++] = 29; //#23169 + $k[$j++] = $_.fnc4; //#23169 + $k[$j++] = 30; //#23169 + $k[$j++] = $_.pad; //#23169 + $k[$j++] = 31; //#23169 + $_.T2vals = $d(); //#23170 + $k[$j++] = Infinity; //#23171 + $k[$j++] = 96; //#23173 + $k[$j++] = 0; //#23173 + for (var _2L = 65; _2L <= 90; _2L += 1) { //#23173 + $k[$j++] = _2L; //#23173 + $k[$j++] = _2L - 64; //#23173 + } //#23173 + for (var _2M = 123; _2M <= 127; _2M += 1) { //#23174 + $k[$j++] = _2M; //#23174 + $k[$j++] = _2M - 96; //#23174 + } //#23174 + $_.T3vals = $d(); //#23175 + $k[$j++] = Infinity; //#23176 + var _2O = $_.TNvals; //#23177 + for (var _2T = _2O.size, _2S = _2O.keys(), _2R = 0; _2R < _2T; _2R++) { //#23177 + var _2P = _2S.next().value; //#23177 + $k[$j++] = _2P; //#23177 + $k[$j++] = _2O.get(_2P); //#23177 + $k[$j++] = Infinity; //#23177 + var _2U = $k[--$j]; //#23177 + var _2V = $k[--$j]; //#23177 + $k[$j++] = _2U; //#23177 + $k[$j++] = _2V; //#23177 + var _2W = $a(); //#23177 + $k[$j++] = _2W; //#23177 + } //#23177 + var _2X = $_.T1vals; //#23178 + for (var _2c = _2X.size, _2b = _2X.keys(), _2a = 0; _2a < _2c; _2a++) { //#23178 + var _2Y = _2b.next().value; //#23178 + $k[$j++] = _2Y; //#23178 + $k[$j++] = _2X.get(_2Y); //#23178 + $k[$j++] = Infinity; //#23178 + var _2d = $k[--$j]; //#23178 + var _2e = $k[--$j]; //#23178 + $k[$j++] = _2d; //#23178 + $k[$j++] = $get($_.TNvals, $_.sft1); //#23178 + $k[$j++] = _2e; //#23178 + var _2i = $a(); //#23178 + $k[$j++] = _2i; //#23178 + } //#23178 + var _2j = $_.T2vals; //#23179 + for (var _2o = _2j.size, _2n = _2j.keys(), _2m = 0; _2m < _2o; _2m++) { //#23179 + var _2k = _2n.next().value; //#23179 + $k[$j++] = _2k; //#23179 + $k[$j++] = _2j.get(_2k); //#23179 + $k[$j++] = Infinity; //#23179 + var _2p = $k[--$j]; //#23179 + var _2q = $k[--$j]; //#23179 + $k[$j++] = _2p; //#23179 + $k[$j++] = $get($_.TNvals, $_.sft2); //#23179 + $k[$j++] = _2q; //#23179 + var _2u = $a(); //#23179 + $k[$j++] = _2u; //#23179 + } //#23179 + var _2v = $_.T3vals; //#23180 + for (var _30 = _2v.size, _2z = _2v.keys(), _2y = 0; _2y < _30; _2y++) { //#23180 + var _2w = _2z.next().value; //#23180 + $k[$j++] = _2w; //#23180 + $k[$j++] = _2v.get(_2w); //#23180 + $k[$j++] = Infinity; //#23180 + var _31 = $k[--$j]; //#23180 + var _32 = $k[--$j]; //#23180 + $k[$j++] = _31; //#23180 + $k[$j++] = $get($_.TNvals, $_.sft3); //#23180 + $k[$j++] = _32; //#23180 + var _36 = $a(); //#23180 + $k[$j++] = _36; //#23180 + } //#23180 + $_.Tvals = $d(); //#23181 + for (var _38 = 128; _38 <= 255; _38 += 1) { //#23189 + $_.i = _38; //#23185 + $k[$j++] = $_.Avals; //#23186 + $k[$j++] = $_.i; //#23186 + $k[$j++] = Infinity; //#23186 + $aload($get($_.Avals, $_.fnc4)); //#23186 + $aload($get($_.Avals, $_.i - 128)); //#23186 + var _3H = $a(); //#23186 + var _3I = $k[--$j]; //#23186 + $put($k[--$j], _3I, _3H); //#23186 + $k[$j++] = $_.Cvals; //#23187 + $k[$j++] = $_.i; //#23187 + $k[$j++] = Infinity; //#23187 + $aload($get($_.Cvals, $_.fnc4)); //#23187 + $aload($get($_.Cvals, $_.i - 128)); //#23187 + var _3S = $a(); //#23187 + var _3T = $k[--$j]; //#23187 + $put($k[--$j], _3T, _3S); //#23187 + $k[$j++] = $_.Tvals; //#23188 + $k[$j++] = $_.i; //#23188 + $k[$j++] = Infinity; //#23188 + $aload($get($_.Tvals, $_.fnc4)); //#23188 + $aload($get($_.Tvals, $_.i - 128)); //#23188 + var _3d = $a(); //#23188 + var _3e = $k[--$j]; //#23188 + $put($k[--$j], _3e, _3d); //#23188 + } //#23188 + $k[$j++] = Infinity; //#23191 + $k[$j++] = 13; //#23196 + $k[$j++] = 0; //#23196 + $k[$j++] = 42; //#23196 + $k[$j++] = 1; //#23196 + $k[$j++] = 62; //#23196 + $k[$j++] = 2; //#23196 + $k[$j++] = 32; //#23196 + $k[$j++] = 3; //#23196 + for (var _3g = 48; _3g <= 57; _3g += 1) { //#23196 + $k[$j++] = _3g; //#23196 + $k[$j++] = _3g - 44; //#23196 + } //#23196 + for (var _3h = 65; _3h <= 90; _3h += 1) { //#23197 + $k[$j++] = _3h; //#23197 + $k[$j++] = _3h - 51; //#23197 + } //#23197 + $_.Xvals = $d(); //#23198 + $k[$j++] = Infinity; //#23199 + var _3j = $_.Xvals; //#23200 + for (var _3o = _3j.size, _3n = _3j.keys(), _3m = 0; _3m < _3o; _3m++) { //#23200 + var _3k = _3n.next().value; //#23200 + $k[$j++] = _3k; //#23200 + $k[$j++] = _3j.get(_3k); //#23200 + $k[$j++] = Infinity; //#23200 + var _3p = $k[--$j]; //#23200 + var _3q = $k[--$j]; //#23200 + $k[$j++] = _3p; //#23200 + $k[$j++] = _3q; //#23200 + var _3r = $a(); //#23200 + $k[$j++] = _3r; //#23200 + } //#23200 + $_.Xvals = $d(); //#23201 + $k[$j++] = Infinity; //#23203 + for (var _3t = 0; _3t <= 255; _3t += 1) { //#23204 + $k[$j++] = _3t; //#23204 + $k[$j++] = _3t; //#23204 + } //#23204 + $_.Bvals = $d(); //#23205 + $k[$j++] = Infinity; //#23206 + var _3v = $_.Bvals; //#23207 + for (var _40 = _3v.size, _3z = _3v.keys(), _3y = 0; _3y < _40; _3y++) { //#23207 + var _3w = _3z.next().value; //#23207 + $k[$j++] = _3w; //#23207 + $k[$j++] = _3v.get(_3w); //#23207 + $k[$j++] = Infinity; //#23207 + var _41 = $k[--$j]; //#23207 + var _42 = $k[--$j]; //#23207 + $k[$j++] = _41; //#23207 + $k[$j++] = _42; //#23207 + var _43 = $a(); //#23207 + $k[$j++] = _43; //#23207 + } //#23207 + $_.Bvals = $d(); //#23208 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#23210 + $_.A = 0; //#23212 + $_.C = 1; //#23212 + $_.T = 2; //#23212 + $_.X = 3; //#23212 + $_.D = 4; //#23212 + $_.B = 5; //#23212 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23212 + bwipp_codeone.__23213__ = 1; //#23212 + $_ = Object.getPrototypeOf($_); //#23212 + } //#23212 + if ($_.stype) { //#23711 + $forall($_.barcode, function() { //#23221 + var _4E = $k[--$j]; //#23218 + if ((_4E < 48) || (_4E > 57)) { //#23220 + $k[$j++] = 'bwipp.codeoneStypeNonDigit#23219'; //#23219 + $k[$j++] = "S-Type symbols can only contain digits"; //#23219 + bwipp_raiseerror(); //#23219 + } //#23219 + }); //#23219 + $_.barlen = $_.barcode.length; //#23223 + if ($_.barlen > 18) { //#23226 + $k[$j++] = 'bwipp.codeoneStypeTooLong#23225'; //#23225 + $k[$j++] = "Maximum length exceeded"; //#23225 + bwipp_raiseerror(); //#23225 + } //#23225 $_.normalize = function() { - $_.base = $k[--$j]; //#22936 - $_.num = $k[--$j]; //#22937 - for (var _4I = $_.num.length - 1; _4I >= 1; _4I -= 1) { //#22942 - $_.i = _4I; //#22939 - var _4J = $_.num; //#22940 - var _4K = $_.i; //#22940 - $put(_4J, _4K - 1, $f($get(_4J, _4K - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#22940 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#22941 - } //#22941 - for (;;) { //#22948 - if ($lt($get($_.num, 0), $_.base)) { //#22944 - break; //#22944 - } //#22944 - $k[$j++] = Infinity; //#22945 - $k[$j++] = 0; //#22945 - $forall($_.num); //#22945 - $_.num = $a(); //#22945 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#22946 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#22947 - } //#22947 - $k[$j++] = Infinity; //#22950 - $_.i = true; //#22950 - var _4l = $_.num; //#22950 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#22950 - var _4o = $get(_4l, _4m); //#22950 - $k[$j++] = _4o; //#22950 - if ((_4o == 0) && $_.i) { //#22950 - $j--; //#22950 - } else { //#22950 - $_.i = false; //#22950 - } //#22950 - } //#22950 - $_.num = $a(); //#22950 - if ($_.num.length == 0) { //#22951 - $_.num = $a([0]); //#22951 - } //#22951 - $k[$j++] = $_.num; //#22952 - }; //#22952 + $_.base = $k[--$j]; //#23229 + $_.num = $k[--$j]; //#23230 + for (var _4K = $_.num.length - 1; _4K >= 1; _4K -= 1) { //#23235 + $_.i = _4K; //#23232 + var _4L = $_.num; //#23233 + var _4M = $_.i; //#23233 + $put(_4L, _4M - 1, $f($get(_4L, _4M - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#23233 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#23234 + } //#23234 + for (;;) { //#23241 + if ($lt($get($_.num, 0), $_.base)) { //#23237 + break; //#23237 + } //#23237 + $k[$j++] = Infinity; //#23238 + $k[$j++] = 0; //#23238 + $forall($_.num); //#23238 + $_.num = $a(); //#23238 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#23239 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#23240 + } //#23240 + $k[$j++] = Infinity; //#23243 + $_.i = true; //#23243 + var _4n = $_.num; //#23243 + for (var _4o = 0, _4p = _4n.length; _4o < _4p; _4o++) { //#23243 + var _4q = $get(_4n, _4o); //#23243 + $k[$j++] = _4q; //#23243 + if ((_4q == 0) && $_.i) { //#23243 + $j--; //#23243 + } else { //#23243 + $_.i = false; //#23243 + } //#23243 + } //#23243 + $_.num = $a(); //#23243 + if ($_.num.length == 0) { //#23244 + $_.num = $a([0]); //#23244 + } //#23244 + $k[$j++] = $_.num; //#23245 + }; //#23245 $_.bigadd = function() { - var _4u = $k[--$j]; //#22956 - var _4v = $k[--$j]; //#22956 - $_.offset = Math.abs(_4u.length - _4v.length); //#22957 - if (_4u.length < _4v.length) { //#22958 - var _ = _4u; //#22958 - _4u = _4v; //#22958 - _4v = _; //#22958 - } //#22958 - $_.a = _4u; //#22959 - $_.b = _4v; //#22959 - for (var _4y = 0, _4x = $_.b.length - 1; _4y <= _4x; _4y += 1) { //#22962 - var _4z = $_.a; //#22961 - var _50 = $_.offset; //#22961 - $put(_4z, _4y + _50, $f($get(_4z, _4y + _50) + $get($_.b, _4y))); //#22961 - } //#22961 - $k[$j++] = $_.a; //#22963 - }; //#22963 - $_.barlen = $_.barcode.length; //#22966 - $_.v = $a([1]); //#22969 - for (var _59 = 0, _58 = $_.barlen - 1; _59 <= _58; _59 += 1) { //#22974 - $_.i = _59; //#22971 - $k[$j++] = Infinity; //#22972 - $forall($get($_.stypevals, $_.i), function() { //#22972 - var _5D = $k[--$j]; //#22972 - $k[$j++] = $f(_5D - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#22972 - }); //#22972 - var _5I = $a(); //#22972 - $k[$j++] = _5I; //#22973 - $k[$j++] = $_.v; //#22973 - $_.bigadd(); //#22973 - $_.v = $k[--$j]; //#22973 - } //#22973 - $k[$j++] = 'v'; //#22975 - $k[$j++] = $_.v; //#22975 - $k[$j++] = 2; //#22975 - $_.normalize(); //#22975 - var _5M = $k[--$j]; //#22975 - $_[$k[--$j]] = _5M; //#22975 - $k[$j++] = Infinity; //#22978 - for (var _5P = 0, _5Q = (5 - ($_.v.length % 5)) % 5; _5P < _5Q; _5P++) { //#22978 - $k[$j++] = 0; //#22978 - } //#22978 - $aload($_.v); //#22978 - $_.v = $a(); //#22978 - $_.cws = $a(~~($_.v.length / 5)); //#22979 - for (var _5X = 0, _5W = $_.cws.length - 1; _5X <= _5W; _5X += 1) { //#22985 - $_.i = _5X; //#22981 - var _5a = $geti($_.v, $_.i * 5, 5); //#22982 - $k[$j++] = 0; //#22983 - for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#22983 - var _5e = $k[--$j]; //#22983 - $k[$j++] = $f(_5e + $get(_5a, _5b)) * 2; //#22983 - } //#22983 - $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#22984 - } //#22984 - $_.metrics = $_.stypemetrics; //#22987 - } else { //#23418 - var _5n = new Map([ + var _4w = $k[--$j]; //#23249 + var _4x = $k[--$j]; //#23249 + $_.offset = Math.abs(_4w.length - _4x.length); //#23250 + if (_4w.length < _4x.length) { //#23251 + var _ = _4w; //#23251 + _4w = _4x; //#23251 + _4x = _; //#23251 + } //#23251 + $_.a = _4w; //#23252 + $_.b = _4x; //#23252 + for (var _50 = 0, _4z = $_.b.length - 1; _50 <= _4z; _50 += 1) { //#23255 + var _51 = $_.a; //#23254 + var _52 = $_.offset; //#23254 + $put(_51, _50 + _52, $f($get(_51, _50 + _52) + $get($_.b, _50))); //#23254 + } //#23254 + $k[$j++] = $_.a; //#23256 + }; //#23256 + $_.barlen = $_.barcode.length; //#23259 + $_.v = $a([1]); //#23262 + for (var _5B = 0, _5A = $_.barlen - 1; _5B <= _5A; _5B += 1) { //#23267 + $_.i = _5B; //#23264 + $k[$j++] = Infinity; //#23265 + $forall($get($_.stypevals, $_.i), function() { //#23265 + var _5F = $k[--$j]; //#23265 + $k[$j++] = $f(_5F - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#23265 + }); //#23265 + var _5K = $a(); //#23265 + $k[$j++] = _5K; //#23266 + $k[$j++] = $_.v; //#23266 + $_.bigadd(); //#23266 + $_.v = $k[--$j]; //#23266 + } //#23266 + $k[$j++] = 'v'; //#23268 + $k[$j++] = $_.v; //#23268 + $k[$j++] = 2; //#23268 + $_.normalize(); //#23268 + var _5O = $k[--$j]; //#23268 + $_[$k[--$j]] = _5O; //#23268 + $k[$j++] = Infinity; //#23271 + for (var _5R = 0, _5S = (5 - ($_.v.length % 5)) % 5; _5R < _5S; _5R++) { //#23271 + $k[$j++] = 0; //#23271 + } //#23271 + $aload($_.v); //#23271 + $_.v = $a(); //#23271 + $_.cws = $a(~~($_.v.length / 5)); //#23272 + for (var _5Z = 0, _5Y = $_.cws.length - 1; _5Z <= _5Y; _5Z += 1) { //#23278 + $_.i = _5Z; //#23274 + var _5c = $geti($_.v, $_.i * 5, 5); //#23275 + $k[$j++] = 0; //#23276 + for (var _5d = 0, _5e = _5c.length; _5d < _5e; _5d++) { //#23276 + var _5g = $k[--$j]; //#23276 + $k[$j++] = $f(_5g + $get(_5c, _5d)) * 2; //#23276 + } //#23276 + $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#23277 + } //#23277 + $_.metrics = $_.stypemetrics; //#23280 + } else { //#23711 + var _5p = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["FNC3", $_.fnc3] - ]); //#22997 - $_.fncvals = _5n; //#22998 - $k[$j++] = 'msg'; //#22999 - $k[$j++] = $_.barcode; //#22999 - $k[$j++] = $_.fncvals; //#22999 - bwipp_parseinput(); //#22999 - var _5q = $k[--$j]; //#22999 - $_[$k[--$j]] = _5q; //#22999 - $_.msglen = $_.msg.length; //#23000 - $_.eciesc = 92; //#23003 - var _5t = $_.msg; //#23004 - $k[$j++] = 'numecis'; //#23004 - $k[$j++] = 0; //#23004 - for (var _5u = 0, _5v = _5t.length; _5u < _5v; _5u++) { //#23004 - if ($get(_5t, _5u) <= -1000000) { //#23004 - var _5x = $k[--$j]; //#23004 - $k[$j++] = $f(_5x + 1); //#23004 - } //#23004 - } //#23004 - var _5y = $k[--$j]; //#23004 - $_[$k[--$j]] = _5y; //#23004 - if ($_.numecis > 0) { //#23031 - $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23006 - $put($_.msgtmp, 0, $_.pad); //#23007 - $put($_.msgtmp, 1, $_.eciesc); //#23008 - $_.j = 2; //#23009 - for (var _6A = 0, _69 = $_.msg.length - 1; _6A <= _69; _6A += 1) { //#23028 - var _6C = $get($_.msg, _6A); //#23011 - $k[$j++] = _6C; //#23027 - if (_6C <= -1000000) { //#23025 - var _6G = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23013 - for (var _6H = 0, _6I = _6G.length; _6H < _6I; _6H++) { //#23013 - $k[$j++] = $get(_6G, _6H); //#23013 - } //#23013 - $astore($a(6)); //#23013 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23014 - $put($_.msgtmp, $_.j, $_.eciesc); //#23015 - $_.j = $_.j + 7; //#23016 - } else { //#23025 - var _6S = $k[--$j]; //#23018 - $k[$j++] = _6S; //#23026 - if (_6S != $_.eciesc) { //#23025 - $put($_.msgtmp, $_.j, $k[--$j]); //#23019 - $_.j = $_.j + 1; //#23020 - } else { //#23025 - $j--; //#23022 - $put($_.msgtmp, $_.j, $_.eciesc); //#23023 - $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23024 - $_.j = $_.j + 2; //#23025 - } //#23025 - } //#23025 - } //#23025 - $_.msg = $geti($_.msgtmp, 0, $_.j); //#23029 - $_.msglen = $_.msg.length; //#23030 - } //#23030 - $_.metrics = $_.nonstypemetrics; //#23033 - $_.fullcws = $a([]); //#23036 - var _6l = $_.metrics; //#23037 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#23048 - $_.m = $get(_6l, _6m); //#23038 - $_.vers = $get($_.m, 0); //#23039 - $_.dcws = $get($_.m, 4); //#23040 - $_.okay = true; //#23041 - if ($eq($_.version, "unset")) { //#23045 - if ($_.vers.length != 1) { //#23043 - $_.okay = false; //#23043 - } //#23043 - } else { //#23045 - if ($ne($_.version, $_.vers)) { //#23045 - $_.okay = false; //#23045 - } //#23045 - } //#23045 - if ($_.okay) { //#23047 - $k[$j++] = Infinity; //#23047 - $aload($_.fullcws); //#23047 - $k[$j++] = $_.dcws; //#23047 - $_.fullcws = $a(); //#23047 - } //#23047 - } //#23047 - $k[$j++] = Infinity; //#23049 - for (var _71 = 0, _72 = 1480; _71 < _72; _71++) { //#23049 - $k[$j++] = 10000; //#23049 - } //#23049 - $_.numremcws = $a(); //#23049 - var _74 = $_.fullcws; //#23050 - for (var _75 = 0, _76 = _74.length; _75 < _76; _75++) { //#23050 - $put($_.numremcws, $f($get(_74, _75) - 1), 1); //#23050 - } //#23050 - for (var _79 = 1478; _79 >= 0; _79 -= 1) { //#23056 - $_.i = _79; //#23052 - if ($get($_.numremcws, $_.i) != 1) { //#23055 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23054 - } //#23054 - } //#23054 - $k[$j++] = Infinity; //#23058 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#23058 - $k[$j++] = 0; //#23058 - } //#23058 - $k[$j++] = 0; //#23058 - $_.numD = $a(); //#23058 - $k[$j++] = Infinity; //#23059 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#23059 - $k[$j++] = 0; //#23059 - } //#23059 - $k[$j++] = 9999; //#23059 - $_.nextXterm = $a(); //#23059 - $k[$j++] = Infinity; //#23060 - for (var _7R = 0, _7S = $_.msglen; _7R < _7S; _7R++) { //#23060 - $k[$j++] = 0; //#23060 - } //#23060 - $k[$j++] = 9999; //#23060 - $_.nextNonX = $a(); //#23060 - for (var _7V = $_.msglen - 1; _7V >= 0; _7V -= 1) { //#23077 - $_.i = _7V; //#23062 - $_.barchar = $get($_.msg, $_.i); //#23063 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23066 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23065 - } //#23065 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23070 - $put($_.nextXterm, $_.i, 0); //#23068 - } else { //#23070 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23070 - } //#23070 - var _7s = $get($_.Xvals, $_.barchar) !== undefined; //#23072 - if (!_7s) { //#23075 - $put($_.nextNonX, $_.i, 0); //#23073 - } else { //#23075 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23075 - } //#23075 - } //#23075 - $k[$j++] = Infinity; //#23078 - var _80 = $_.nextXterm; //#23078 - for (var _81 = 0, _82 = _80.length; _81 < _82; _81++) { //#23078 - var _83 = $get(_80, _81); //#23078 - $k[$j++] = _83; //#23078 - if (_83 > 10000) { //#23078 - $j--; //#23078 - $k[$j++] = 10000; //#23078 - } //#23078 - } //#23078 - $_.nextXterm = $a(); //#23078 - $k[$j++] = Infinity; //#23079 - var _85 = $_.nextNonX; //#23079 - for (var _86 = 0, _87 = _85.length; _86 < _87; _86++) { //#23079 - var _88 = $get(_85, _86); //#23079 - $k[$j++] = _88; //#23079 - if (_88 > 10000) { //#23079 - $j--; //#23079 - $k[$j++] = 10000; //#23079 - } //#23079 - } //#23079 - $_.nextNonX = $a(); //#23079 + ]); //#23290 + $_.fncvals = _5p; //#23291 + $k[$j++] = 'msg'; //#23292 + $k[$j++] = $_.barcode; //#23292 + $k[$j++] = $_.fncvals; //#23292 + bwipp_parseinput(); //#23292 + var _5s = $k[--$j]; //#23292 + $_[$k[--$j]] = _5s; //#23292 + $_.msglen = $_.msg.length; //#23293 + $_.eciesc = 92; //#23296 + var _5v = $_.msg; //#23297 + $k[$j++] = 'numecis'; //#23297 + $k[$j++] = 0; //#23297 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#23297 + if ($get(_5v, _5w) <= -1000000) { //#23297 + var _5z = $k[--$j]; //#23297 + $k[$j++] = $f(_5z + 1); //#23297 + } //#23297 + } //#23297 + var _60 = $k[--$j]; //#23297 + $_[$k[--$j]] = _60; //#23297 + if ($_.numecis > 0) { //#23324 + $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23299 + $put($_.msgtmp, 0, $_.pad); //#23300 + $put($_.msgtmp, 1, $_.eciesc); //#23301 + $_.j = 2; //#23302 + for (var _6C = 0, _6B = $_.msg.length - 1; _6C <= _6B; _6C += 1) { //#23321 + var _6E = $get($_.msg, _6C); //#23304 + $k[$j++] = _6E; //#23320 + if (_6E <= -1000000) { //#23318 + var _6I = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23306 + for (var _6J = 0, _6K = _6I.length; _6J < _6K; _6J++) { //#23306 + $k[$j++] = $get(_6I, _6J); //#23306 + } //#23306 + $astore($a(6)); //#23306 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23307 + $put($_.msgtmp, $_.j, $_.eciesc); //#23308 + $_.j = $_.j + 7; //#23309 + } else { //#23318 + var _6U = $k[--$j]; //#23311 + $k[$j++] = _6U; //#23319 + if (_6U != $_.eciesc) { //#23318 + $put($_.msgtmp, $_.j, $k[--$j]); //#23312 + $_.j = $_.j + 1; //#23313 + } else { //#23318 + $j--; //#23315 + $put($_.msgtmp, $_.j, $_.eciesc); //#23316 + $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23317 + $_.j = $_.j + 2; //#23318 + } //#23318 + } //#23318 + } //#23318 + $_.msg = $geti($_.msgtmp, 0, $_.j); //#23322 + $_.msglen = $_.msg.length; //#23323 + } //#23323 + $_.metrics = $_.nonstypemetrics; //#23326 + $_.fullcws = $a([]); //#23329 + var _6n = $_.metrics; //#23330 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#23341 + $_.m = $get(_6n, _6o); //#23331 + $_.vers = $get($_.m, 0); //#23332 + $_.dcws = $get($_.m, 4); //#23333 + $_.okay = true; //#23334 + if ($eq($_.version, "unset")) { //#23338 + if ($_.vers.length != 1) { //#23336 + $_.okay = false; //#23336 + } //#23336 + } else { //#23338 + if ($ne($_.version, $_.vers)) { //#23338 + $_.okay = false; //#23338 + } //#23338 + } //#23338 + if ($_.okay) { //#23340 + $k[$j++] = Infinity; //#23340 + $aload($_.fullcws); //#23340 + $k[$j++] = $_.dcws; //#23340 + $_.fullcws = $a(); //#23340 + } //#23340 + } //#23340 + $k[$j++] = Infinity; //#23342 + for (var _73 = 0, _74 = 1480; _73 < _74; _73++) { //#23342 + $k[$j++] = 10000; //#23342 + } //#23342 + $_.numremcws = $a(); //#23342 + var _76 = $_.fullcws; //#23343 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#23343 + $put($_.numremcws, $f($get(_76, _77) - 1), 1); //#23343 + } //#23343 + for (var _7B = 1478; _7B >= 0; _7B -= 1) { //#23349 + $_.i = _7B; //#23345 + if ($get($_.numremcws, $_.i) != 1) { //#23348 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23347 + } //#23347 + } //#23347 + $k[$j++] = Infinity; //#23351 + for (var _7L = 0, _7M = $_.msglen; _7L < _7M; _7L++) { //#23351 + $k[$j++] = 0; //#23351 + } //#23351 + $k[$j++] = 0; //#23351 + $_.numD = $a(); //#23351 + $k[$j++] = Infinity; //#23352 + for (var _7P = 0, _7Q = $_.msglen; _7P < _7Q; _7P++) { //#23352 + $k[$j++] = 0; //#23352 + } //#23352 + $k[$j++] = 9999; //#23352 + $_.nextXterm = $a(); //#23352 + $k[$j++] = Infinity; //#23353 + for (var _7T = 0, _7U = $_.msglen; _7T < _7U; _7T++) { //#23353 + $k[$j++] = 0; //#23353 + } //#23353 + $k[$j++] = 9999; //#23353 + $_.nextNonX = $a(); //#23353 + for (var _7X = $_.msglen - 1; _7X >= 0; _7X -= 1) { //#23370 + $_.i = _7X; //#23355 + $_.barchar = $get($_.msg, $_.i); //#23356 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23359 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23358 + } //#23358 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23363 + $put($_.nextXterm, $_.i, 0); //#23361 + } else { //#23363 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23363 + } //#23363 + var _7u = $get($_.Xvals, $_.barchar) !== undefined; //#23365 + if (!_7u) { //#23368 + $put($_.nextNonX, $_.i, 0); //#23366 + } else { //#23368 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23368 + } //#23368 + } //#23368 + $k[$j++] = Infinity; //#23371 + var _82 = $_.nextXterm; //#23371 + for (var _83 = 0, _84 = _82.length; _83 < _84; _83++) { //#23371 + var _85 = $get(_82, _83); //#23371 + $k[$j++] = _85; //#23371 + if (_85 > 10000) { //#23371 + $j--; //#23371 + $k[$j++] = 10000; //#23371 + } //#23371 + } //#23371 + $_.nextXterm = $a(); //#23371 + $k[$j++] = Infinity; //#23372 + var _87 = $_.nextNonX; //#23372 + for (var _88 = 0, _89 = _87.length; _88 < _89; _88++) { //#23372 + var _8A = $get(_87, _88); //#23372 + $k[$j++] = _8A; //#23372 + if (_8A > 10000) { //#23372 + $j--; //#23372 + $k[$j++] = 10000; //#23372 + } //#23372 + } //#23372 + $_.nextNonX = $a(); //#23372 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23081 - }; //#23081 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23374 + }; //#23374 $_.isC = function() { - var _8E = $get($_.CNvals, $_.char) !== undefined; //#23082 - $k[$j++] = _8E; //#23082 - }; //#23082 + var _8G = $get($_.CNvals, $_.char) !== undefined; //#23375 + $k[$j++] = _8G; //#23375 + }; //#23375 $_.isT = function() { - var _8H = $get($_.TNvals, $_.char) !== undefined; //#23083 - $k[$j++] = _8H; //#23083 - }; //#23083 + var _8J = $get($_.TNvals, $_.char) !== undefined; //#23376 + $k[$j++] = _8J; //#23376 + }; //#23376 $_.isX = function() { - var _8K = $get($_.Xvals, $_.char) !== undefined; //#23084 - $k[$j++] = _8K; //#23084 - }; //#23084 + var _8M = $get($_.Xvals, $_.char) !== undefined; //#23377 + $k[$j++] = _8M; //#23377 + }; //#23377 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#23085 - }; //#23085 + $k[$j++] = $_.char > 127; //#23378 + }; //#23378 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#23086 - }; //#23086 + $k[$j++] = $_.char < 0; //#23379 + }; //#23379 $_.XtermFirst = function() { - var _8N = $k[--$j]; //#23087 - $k[$j++] = $lt($get($_.nextXterm, _8N), $get($_.nextNonX, _8N)); //#23087 - }; //#23087 + var _8P = $k[--$j]; //#23380 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#23380 + }; //#23380 $_.lookup = function() { - $_.ac = 1; //#23090 - $_.cc = 2; //#23090 - $_.tc = 2; //#23090 - $_.xc = 2; //#23090 - $_.bc = 3; //#23090 - if ($_.mode == $_.A) { //#23091 - $_.ac = 0; //#23091 - $_.cc = 1; //#23091 - $_.tc = 1; //#23091 - $_.xc = 1; //#23091 - $_.bc = 2; //#23091 - } //#23091 - if ($_.mode == $_.C) { //#23092 - $_.cc = 0; //#23092 - } //#23092 - if ($_.mode == $_.T) { //#23093 - $_.tc = 0; //#23093 - } //#23093 - if ($_.mode == $_.X) { //#23094 - $_.xc = 0; //#23094 - } //#23094 - if ($_.mode == $_.B) { //#23095 - $_.bc = 0; //#23095 - } //#23095 - for (var _8c = 0, _8d = 1; _8c < _8d; _8c++) { //#23123 - $_.k = 0; //#23097 - for (;;) { //#23122 - if (($_.i + $_.k) == $_.msglen) { //#23104 - var _8l = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23099 - $k[$j++] = true; //#23099 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#23099 - var _8q = $k[--$j]; //#23099 - $k[$j++] = _8q && ($_.bc <= Math.ceil($get(_8l, _8m))); //#23099 - } //#23099 - if ($k[--$j]) { //#23099 - $k[$j++] = $_.B; //#23099 - break; //#23099 - } //#23099 - var _8x = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23100 - $k[$j++] = true; //#23100 - for (var _8y = 0, _8z = _8x.length; _8y < _8z; _8y++) { //#23100 - var _92 = $k[--$j]; //#23100 - $k[$j++] = _92 && ($_.ac <= Math.ceil($get(_8x, _8y))); //#23100 - } //#23100 - if ($k[--$j]) { //#23100 - $k[$j++] = $_.A; //#23100 - break; //#23100 - } //#23100 - var _97 = $a([$_.tc, $_.xc]); //#23101 - $k[$j++] = true; //#23101 - for (var _98 = 0, _99 = _97.length; _98 < _99; _98++) { //#23101 - var _9C = $k[--$j]; //#23101 - $k[$j++] = _9C && (Math.ceil($_.cc) <= Math.ceil($get(_97, _98))); //#23101 - } //#23101 - if ($k[--$j]) { //#23101 - $k[$j++] = $_.C; //#23101 - break; //#23101 - } //#23101 - var _9G = $a([$_.xc]); //#23102 - $k[$j++] = true; //#23102 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#23102 - var _9L = $k[--$j]; //#23102 - $k[$j++] = _9L && (Math.ceil($_.tc) <= Math.ceil($get(_9G, _9H))); //#23102 - } //#23102 - if ($k[--$j]) { //#23102 - $k[$j++] = $_.T; //#23102 - break; //#23102 - } //#23102 - $k[$j++] = $_.X; //#23103 - break; //#23103 - } //#23103 - $_.char = $get($_.msg, $_.i + $_.k); //#23105 - $k[$j++] = 'ac'; //#23106 - $k[$j++] = $_.ac; //#23106 - $_.isD(); //#23106 - if ($k[--$j]) { //#23106 - var _9V = $k[--$j]; //#23106 - $k[$j++] = $f(_9V + (1 / 2)); //#23106 - } else { //#23106 - $_.isEA(); //#23106 - if ($k[--$j]) { //#23106 - var _9X = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9X) + 2; //#23106 - } else { //#23106 - var _9Y = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9Y) + 1; //#23106 - } //#23106 - } //#23106 - var _9Z = $k[--$j]; //#23106 - $_[$k[--$j]] = _9Z; //#23106 - $k[$j++] = 'cc'; //#23107 - $k[$j++] = $_.cc; //#23107 - $_.isC(); //#23107 - if ($k[--$j]) { //#23107 - var _9d = $k[--$j]; //#23107 - $k[$j++] = $f(_9d + 0.6666667); //#23107 - } else { //#23107 - $_.isEA(); //#23107 - if ($k[--$j]) { //#23107 - var _9f = $k[--$j]; //#23107 - $k[$j++] = $f(_9f + 2.6666667); //#23107 - } else { //#23107 - var _9g = $k[--$j]; //#23107 - $k[$j++] = $f(_9g + 1.3333334); //#23107 - } //#23107 - } //#23107 - var _9h = $k[--$j]; //#23107 - $_[$k[--$j]] = _9h; //#23107 - $k[$j++] = 'tc'; //#23108 - $k[$j++] = $_.tc; //#23108 - $_.isT(); //#23108 - if ($k[--$j]) { //#23108 - var _9l = $k[--$j]; //#23108 - $k[$j++] = $f(_9l + 0.6666667); //#23108 - } else { //#23108 - $_.isEA(); //#23108 - if ($k[--$j]) { //#23108 - var _9n = $k[--$j]; //#23108 - $k[$j++] = $f(_9n + 2.6666667); //#23108 - } else { //#23108 - var _9o = $k[--$j]; //#23108 - $k[$j++] = $f(_9o + 1.3333334); //#23108 - } //#23108 - } //#23108 - var _9p = $k[--$j]; //#23108 - $_[$k[--$j]] = _9p; //#23108 - $k[$j++] = 'xc'; //#23109 - $k[$j++] = $_.xc; //#23109 - $_.isX(); //#23109 - if ($k[--$j]) { //#23109 - var _9t = $k[--$j]; //#23109 - $k[$j++] = $f(_9t + 0.6666667); //#23109 - } else { //#23109 - $_.isEA(); //#23109 - if ($k[--$j]) { //#23109 - var _9v = $k[--$j]; //#23109 - $k[$j++] = $f(_9v + 4.3333334); //#23109 - } else { //#23109 - var _9w = $k[--$j]; //#23109 - $k[$j++] = $f(_9w + 3.3333334); //#23109 - } //#23109 - } //#23109 - var _9x = $k[--$j]; //#23109 - $_[$k[--$j]] = _9x; //#23109 - $k[$j++] = 'bc'; //#23110 - $k[$j++] = $_.bc; //#23110 - $_.isFN(); //#23110 - if ($k[--$j]) { //#23110 - var _A1 = $k[--$j]; //#23110 - $k[$j++] = $f(_A1 + 3); //#23110 - } else { //#23110 - var _A2 = $k[--$j]; //#23110 - $k[$j++] = $f(_A2 + 1); //#23110 - } //#23110 - var _A3 = $k[--$j]; //#23110 - $_[$k[--$j]] = _A3; //#23110 - if ($_.k >= 3) { //#23120 - var _AA = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23112 - $k[$j++] = true; //#23112 - for (var _AB = 0, _AC = _AA.length; _AB < _AC; _AB++) { //#23112 - var _AF = $k[--$j]; //#23112 - $k[$j++] = _AF && (($_.bc + 1) <= Math.ceil($get(_AA, _AB))); //#23112 - } //#23112 - if ($k[--$j]) { //#23112 - $k[$j++] = $_.B; //#23112 - break; //#23112 - } //#23112 - var _AM = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23113 - $k[$j++] = true; //#23113 - for (var _AN = 0, _AO = _AM.length; _AN < _AO; _AN++) { //#23113 - var _AR = $k[--$j]; //#23113 - $k[$j++] = _AR && (($_.ac + 1) <= Math.ceil($get(_AM, _AN))); //#23113 - } //#23113 - if ($k[--$j]) { //#23113 - $k[$j++] = $_.A; //#23113 - break; //#23113 - } //#23113 - var _AY = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23114 - $k[$j++] = true; //#23114 - for (var _AZ = 0, _Aa = _AY.length; _AZ < _Aa; _AZ++) { //#23114 - var _Ad = $k[--$j]; //#23114 - $k[$j++] = _Ad && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_AY, _AZ))); //#23114 - } //#23114 - if ($k[--$j]) { //#23114 - $k[$j++] = $_.T; //#23114 - break; //#23114 - } //#23114 - var _Ai = $a([$_.ac, $_.tc]); //#23115 - $k[$j++] = true; //#23115 - for (var _Aj = 0, _Ak = _Ai.length; _Aj < _Ak; _Aj++) { //#23115 - var _An = $k[--$j]; //#23115 - $k[$j++] = _An && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ai, _Aj))); //#23115 - } //#23115 - if ($k[--$j]) { //#23118 - if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23116 - $k[$j++] = $_.C; //#23116 - break; //#23116 - } //#23116 - if ($_.cc == $_.xc) { //#23117 - $k[$j++] = ($_.i + $_.k) + 1; //#23117 - $_.XtermFirst(); //#23117 - if ($k[--$j]) { //#23117 - $k[$j++] = $_.X; //#23117 - break; //#23117 - } else { //#23117 - $k[$j++] = $_.C; //#23117 - break; //#23117 - } //#23117 - } //#23117 - } //#23117 - var _B3 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23119 - $k[$j++] = true; //#23119 - for (var _B4 = 0, _B5 = _B3.length; _B4 < _B5; _B4++) { //#23119 - var _B8 = $k[--$j]; //#23119 - $k[$j++] = _B8 && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B3, _B4))); //#23119 - } //#23119 - if ($k[--$j]) { //#23119 - $k[$j++] = $_.X; //#23119 - break; //#23119 - } //#23119 - } //#23119 - $_.k = $_.k + 1; //#23121 - } //#23121 - } //#23121 - }; //#23121 + $_.ac = 1; //#23383 + $_.cc = 2; //#23383 + $_.tc = 2; //#23383 + $_.xc = 2; //#23383 + $_.bc = 3; //#23383 + if ($_.mode == $_.A) { //#23384 + $_.ac = 0; //#23384 + $_.cc = 1; //#23384 + $_.tc = 1; //#23384 + $_.xc = 1; //#23384 + $_.bc = 2; //#23384 + } //#23384 + if ($_.mode == $_.C) { //#23385 + $_.cc = 0; //#23385 + } //#23385 + if ($_.mode == $_.T) { //#23386 + $_.tc = 0; //#23386 + } //#23386 + if ($_.mode == $_.X) { //#23387 + $_.xc = 0; //#23387 + } //#23387 + if ($_.mode == $_.B) { //#23388 + $_.bc = 0; //#23388 + } //#23388 + for (var _8e = 0, _8f = 1; _8e < _8f; _8e++) { //#23416 + $_.k = 0; //#23390 + for (;;) { //#23415 + if (($_.i + $_.k) == $_.msglen) { //#23397 + var _8n = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23392 + $k[$j++] = true; //#23392 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#23392 + var _8s = $k[--$j]; //#23392 + $k[$j++] = _8s && ($_.bc <= Math.ceil($get(_8n, _8o))); //#23392 + } //#23392 + if ($k[--$j]) { //#23392 + $k[$j++] = $_.B; //#23392 + break; //#23392 + } //#23392 + var _8z = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23393 + $k[$j++] = true; //#23393 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#23393 + var _94 = $k[--$j]; //#23393 + $k[$j++] = _94 && ($_.ac <= Math.ceil($get(_8z, _90))); //#23393 + } //#23393 + if ($k[--$j]) { //#23393 + $k[$j++] = $_.A; //#23393 + break; //#23393 + } //#23393 + var _99 = $a([$_.tc, $_.xc]); //#23394 + $k[$j++] = true; //#23394 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#23394 + var _9E = $k[--$j]; //#23394 + $k[$j++] = _9E && (Math.ceil($_.cc) <= Math.ceil($get(_99, _9A))); //#23394 + } //#23394 + if ($k[--$j]) { //#23394 + $k[$j++] = $_.C; //#23394 + break; //#23394 + } //#23394 + var _9I = $a([$_.xc]); //#23395 + $k[$j++] = true; //#23395 + for (var _9J = 0, _9K = _9I.length; _9J < _9K; _9J++) { //#23395 + var _9N = $k[--$j]; //#23395 + $k[$j++] = _9N && (Math.ceil($_.tc) <= Math.ceil($get(_9I, _9J))); //#23395 + } //#23395 + if ($k[--$j]) { //#23395 + $k[$j++] = $_.T; //#23395 + break; //#23395 + } //#23395 + $k[$j++] = $_.X; //#23396 + break; //#23396 + } //#23396 + $_.char = $get($_.msg, $_.i + $_.k); //#23398 + $k[$j++] = 'ac'; //#23399 + $k[$j++] = $_.ac; //#23399 + $_.isD(); //#23399 + if ($k[--$j]) { //#23399 + var _9X = $k[--$j]; //#23399 + $k[$j++] = $f(_9X + (1 / 2)); //#23399 + } else { //#23399 + $_.isEA(); //#23399 + if ($k[--$j]) { //#23399 + var _9Z = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9Z) + 2; //#23399 + } else { //#23399 + var _9a = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9a) + 1; //#23399 + } //#23399 + } //#23399 + var _9b = $k[--$j]; //#23399 + $_[$k[--$j]] = _9b; //#23399 + $k[$j++] = 'cc'; //#23400 + $k[$j++] = $_.cc; //#23400 + $_.isC(); //#23400 + if ($k[--$j]) { //#23400 + var _9f = $k[--$j]; //#23400 + $k[$j++] = $f(_9f + 0.6666667); //#23400 + } else { //#23400 + $_.isEA(); //#23400 + if ($k[--$j]) { //#23400 + var _9h = $k[--$j]; //#23400 + $k[$j++] = $f(_9h + 2.6666667); //#23400 + } else { //#23400 + var _9i = $k[--$j]; //#23400 + $k[$j++] = $f(_9i + 1.3333334); //#23400 + } //#23400 + } //#23400 + var _9j = $k[--$j]; //#23400 + $_[$k[--$j]] = _9j; //#23400 + $k[$j++] = 'tc'; //#23401 + $k[$j++] = $_.tc; //#23401 + $_.isT(); //#23401 + if ($k[--$j]) { //#23401 + var _9n = $k[--$j]; //#23401 + $k[$j++] = $f(_9n + 0.6666667); //#23401 + } else { //#23401 + $_.isEA(); //#23401 + if ($k[--$j]) { //#23401 + var _9p = $k[--$j]; //#23401 + $k[$j++] = $f(_9p + 2.6666667); //#23401 + } else { //#23401 + var _9q = $k[--$j]; //#23401 + $k[$j++] = $f(_9q + 1.3333334); //#23401 + } //#23401 + } //#23401 + var _9r = $k[--$j]; //#23401 + $_[$k[--$j]] = _9r; //#23401 + $k[$j++] = 'xc'; //#23402 + $k[$j++] = $_.xc; //#23402 + $_.isX(); //#23402 + if ($k[--$j]) { //#23402 + var _9v = $k[--$j]; //#23402 + $k[$j++] = $f(_9v + 0.6666667); //#23402 + } else { //#23402 + $_.isEA(); //#23402 + if ($k[--$j]) { //#23402 + var _9x = $k[--$j]; //#23402 + $k[$j++] = $f(_9x + 4.3333334); //#23402 + } else { //#23402 + var _9y = $k[--$j]; //#23402 + $k[$j++] = $f(_9y + 3.3333334); //#23402 + } //#23402 + } //#23402 + var _9z = $k[--$j]; //#23402 + $_[$k[--$j]] = _9z; //#23402 + $k[$j++] = 'bc'; //#23403 + $k[$j++] = $_.bc; //#23403 + $_.isFN(); //#23403 + if ($k[--$j]) { //#23403 + var _A3 = $k[--$j]; //#23403 + $k[$j++] = $f(_A3 + 3); //#23403 + } else { //#23403 + var _A4 = $k[--$j]; //#23403 + $k[$j++] = $f(_A4 + 1); //#23403 + } //#23403 + var _A5 = $k[--$j]; //#23403 + $_[$k[--$j]] = _A5; //#23403 + if ($_.k >= 3) { //#23413 + var _AC = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23405 + $k[$j++] = true; //#23405 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#23405 + var _AH = $k[--$j]; //#23405 + $k[$j++] = _AH && (($_.bc + 1) <= Math.ceil($get(_AC, _AD))); //#23405 + } //#23405 + if ($k[--$j]) { //#23405 + $k[$j++] = $_.B; //#23405 + break; //#23405 + } //#23405 + var _AO = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23406 + $k[$j++] = true; //#23406 + for (var _AP = 0, _AQ = _AO.length; _AP < _AQ; _AP++) { //#23406 + var _AT = $k[--$j]; //#23406 + $k[$j++] = _AT && (($_.ac + 1) <= Math.ceil($get(_AO, _AP))); //#23406 + } //#23406 + if ($k[--$j]) { //#23406 + $k[$j++] = $_.A; //#23406 + break; //#23406 + } //#23406 + var _Aa = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23407 + $k[$j++] = true; //#23407 + for (var _Ab = 0, _Ac = _Aa.length; _Ab < _Ac; _Ab++) { //#23407 + var _Af = $k[--$j]; //#23407 + $k[$j++] = _Af && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_Aa, _Ab))); //#23407 + } //#23407 + if ($k[--$j]) { //#23407 + $k[$j++] = $_.T; //#23407 + break; //#23407 + } //#23407 + var _Ak = $a([$_.ac, $_.tc]); //#23408 + $k[$j++] = true; //#23408 + for (var _Al = 0, _Am = _Ak.length; _Al < _Am; _Al++) { //#23408 + var _Ap = $k[--$j]; //#23408 + $k[$j++] = _Ap && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ak, _Al))); //#23408 + } //#23408 + if ($k[--$j]) { //#23411 + if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23409 + $k[$j++] = $_.C; //#23409 + break; //#23409 + } //#23409 + if ($_.cc == $_.xc) { //#23410 + $k[$j++] = ($_.i + $_.k) + 1; //#23410 + $_.XtermFirst(); //#23410 + if ($k[--$j]) { //#23410 + $k[$j++] = $_.X; //#23410 + break; //#23410 + } else { //#23410 + $k[$j++] = $_.C; //#23410 + break; //#23410 + } //#23410 + } //#23410 + } //#23410 + var _B5 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23412 + $k[$j++] = true; //#23412 + for (var _B6 = 0, _B7 = _B5.length; _B6 < _B7; _B6++) { //#23412 + var _BA = $k[--$j]; //#23412 + $k[$j++] = _BA && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B5, _B6))); //#23412 + } //#23412 + if ($k[--$j]) { //#23412 + $k[$j++] = $_.X; //#23412 + break; //#23412 + } //#23412 + } //#23412 + $_.k = $_.k + 1; //#23414 + } //#23414 + } //#23414 + }; //#23414 $_.addtocws = function() { - var _BC = $k[--$j]; //#23127 - $k[$j++] = _BC; //#23129 - if ((_BC.length + $_.j) > 1480) { //#23129 - $j--; //#23128 - $k[$j++] = 'bwipp.codeoneTooLong#23128'; //#23128 - $k[$j++] = "Maximum length exceeded"; //#23128 - bwipp_raiseerror(); //#23128 - } //#23128 - var _BE = $k[--$j]; //#23130 - $puti($_.cws, $_.j, _BE); //#23130 - $_.j = _BE.length + $_.j; //#23131 - }; //#23131 + var _BE = $k[--$j]; //#23420 + $k[$j++] = _BE; //#23422 + if ((_BE.length + $_.j) > 1480) { //#23422 + $j--; //#23421 + $k[$j++] = 'bwipp.codeoneTooLong#23421'; //#23421 + $k[$j++] = "Maximum length exceeded"; //#23421 + bwipp_raiseerror(); //#23421 + } //#23421 + var _BG = $k[--$j]; //#23423 + $puti($_.cws, $_.j, _BG); //#23423 + $_.j = _BG.length + $_.j; //#23424 + }; //#23424 $_.tobin = function() { - var _BJ = $s($k[--$j]); //#23135 - $k[$j++] = _BJ; //#23135 - for (var _BL = 0, _BK = _BJ.length - 1; _BL <= _BK; _BL += 1) { //#23135 - var _BM = $k[--$j]; //#23135 - $put(_BM, _BL, 48); //#23135 - $k[$j++] = _BM; //#23135 - } //#23135 - var _BN = $k[--$j]; //#23136 - var _BQ = $cvrs($s(_BN.length), $k[--$j], 2); //#23136 - $puti(_BN, _BN.length - _BQ.length, _BQ); //#23136 - $k[$j++] = _BN; //#23137 - $k[$j++] = Infinity; //#23137 - var _BR = $k[--$j]; //#23137 - var _BS = $k[--$j]; //#23137 - $k[$j++] = _BR; //#23137 - $forall(_BS, function() { //#23137 - var _BT = $k[--$j]; //#23137 - $k[$j++] = $f(_BT - 48); //#23137 - }); //#23137 - var _BU = $a(); //#23137 - $k[$j++] = _BU; //#23137 - }; //#23137 + var _BL = $s($k[--$j]); //#23428 + $k[$j++] = _BL; //#23428 + for (var _BN = 0, _BM = _BL.length - 1; _BN <= _BM; _BN += 1) { //#23428 + var _BO = $k[--$j]; //#23428 + $put(_BO, _BN, 48); //#23428 + $k[$j++] = _BO; //#23428 + } //#23428 + var _BP = $k[--$j]; //#23429 + var _BS = $cvrs($s(_BP.length), $k[--$j], 2); //#23429 + $puti(_BP, _BP.length - _BS.length, _BS); //#23429 + $k[$j++] = _BP; //#23430 + $k[$j++] = Infinity; //#23430 + var _BT = $k[--$j]; //#23430 + var _BU = $k[--$j]; //#23430 + $k[$j++] = _BT; //#23430 + $forall(_BU, function() { //#23430 + var _BV = $k[--$j]; //#23430 + $k[$j++] = $f(_BV - 48); //#23430 + }); //#23430 + var _BW = $a(); //#23430 + $k[$j++] = _BW; //#23430 + }; //#23430 $_.encA = function() { - for (var _BV = 0, _BW = 1; _BV < _BW; _BV++) { //#23182 - if ($get($_.numD, $_.i) >= 21) { //#23146 - $_.Dbits = $a([1, 1, 1, 1]); //#23143 - $_.mode = $_.D; //#23144 - break; //#23145 - } //#23145 - var _Be = $get($_.numD, $_.i); //#23147 - if ((_Be >= 13) && ($f(_Be + $_.i) == $_.msglen)) { //#23151 - $_.Dbits = $a([1, 1, 1, 1]); //#23148 - $_.mode = $_.D; //#23149 - break; //#23150 - } //#23150 - if ($get($_.numD, $_.i) >= 2) { //#23156 - var _Bm = $s(2); //#23153 - $put(_Bm, 0, $get($_.msg, $_.i)); //#23153 - $put(_Bm, 1, $get($_.msg, $_.i + 1)); //#23153 - $k[$j++] = $get($_.Avals, _Bm); //#23153 - $_.addtocws(); //#23153 - $_.i = $_.i + 2; //#23154 - break; //#23155 - } //#23155 - if ($get($_.msg, $_.i) == $_.fnc1) { //#23172 - if ($get($_.numD, $_.i + 1) >= 15) { //#23164 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23159 - $_.addtocws(); //#23159 - $_.i = $_.i + 1; //#23160 - $_.Dbits = $a([]); //#23161 - $_.mode = $_.D; //#23162 - break; //#23163 - } //#23163 - var _CB = $get($_.numD, $_.i + 1); //#23165 - if ((_CB >= 7) && (($f($f(_CB + $_.i) + 1)) == $_.msglen)) { //#23171 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23166 - $_.addtocws(); //#23166 - $_.i = $_.i + 1; //#23167 - $_.Dbits = $a([]); //#23168 - $_.mode = $_.D; //#23169 - break; //#23170 - } //#23170 - } //#23170 - $k[$j++] = 'newmode'; //#23173 - $_.lookup(); //#23173 - var _CK = $k[--$j]; //#23173 - $_[$k[--$j]] = _CK; //#23173 - if ($_.newmode != $_.mode) { //#23178 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23175 - $_.addtocws(); //#23175 - $_.mode = $_.newmode; //#23176 - break; //#23177 - } //#23177 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23179 - $_.addtocws(); //#23179 - $_.i = $_.i + 1; //#23180 - break; //#23181 - } //#23181 - }; //#23181 + for (var _BX = 0, _BY = 1; _BX < _BY; _BX++) { //#23475 + if ($get($_.numD, $_.i) >= 21) { //#23439 + $_.Dbits = $a([1, 1, 1, 1]); //#23436 + $_.mode = $_.D; //#23437 + break; //#23438 + } //#23438 + var _Bg = $get($_.numD, $_.i); //#23440 + if ((_Bg >= 13) && ($f(_Bg + $_.i) == $_.msglen)) { //#23444 + $_.Dbits = $a([1, 1, 1, 1]); //#23441 + $_.mode = $_.D; //#23442 + break; //#23443 + } //#23443 + if ($get($_.numD, $_.i) >= 2) { //#23449 + var _Bo = $s(2); //#23446 + $put(_Bo, 0, $get($_.msg, $_.i)); //#23446 + $put(_Bo, 1, $get($_.msg, $_.i + 1)); //#23446 + $k[$j++] = $get($_.Avals, _Bo); //#23446 + $_.addtocws(); //#23446 + $_.i = $_.i + 2; //#23447 + break; //#23448 + } //#23448 + if ($get($_.msg, $_.i) == $_.fnc1) { //#23465 + if ($get($_.numD, $_.i + 1) >= 15) { //#23457 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23452 + $_.addtocws(); //#23452 + $_.i = $_.i + 1; //#23453 + $_.Dbits = $a([]); //#23454 + $_.mode = $_.D; //#23455 + break; //#23456 + } //#23456 + var _CD = $get($_.numD, $_.i + 1); //#23458 + if ((_CD >= 7) && (($f($f(_CD + $_.i) + 1)) == $_.msglen)) { //#23464 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23459 + $_.addtocws(); //#23459 + $_.i = $_.i + 1; //#23460 + $_.Dbits = $a([]); //#23461 + $_.mode = $_.D; //#23462 + break; //#23463 + } //#23463 + } //#23463 + $k[$j++] = 'newmode'; //#23466 + $_.lookup(); //#23466 + var _CM = $k[--$j]; //#23466 + $_[$k[--$j]] = _CM; //#23466 + if ($_.newmode != $_.mode) { //#23471 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23468 + $_.addtocws(); //#23468 + $_.mode = $_.newmode; //#23469 + break; //#23470 + } //#23470 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23472 + $_.addtocws(); //#23472 + $_.i = $_.i + 1; //#23473 + break; //#23474 + } //#23474 + }; //#23474 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#23186 - $k[$j++] = Infinity; //#23187 - for (var _Ci = 0, _Ch = $_.in.length - 1; _Ci <= _Ch; _Ci += 3) { //#23191 - var _Ck = $geti($_.in, _Ci, 3); //#23189 - $k[$j++] = 0; //#23189 - for (var _Cl = 0, _Cm = _Ck.length; _Cl < _Cm; _Cl++) { //#23189 - var _Co = $k[--$j]; //#23189 - $k[$j++] = $f(_Co + $get(_Ck, _Cl)) * 40; //#23189 - } //#23189 - var _Cq = (~~($k[--$j] / 40)) + 1; //#23190 - $k[$j++] = ~~(_Cq / 256); //#23190 - $k[$j++] = _Cq % 256; //#23190 - } //#23190 - $astore($a($counttomark())); //#23192 - var _Ct = $k[--$j]; //#23192 - var _Cu = $k[--$j]; //#23192 - $k[$j++] = _Ct; //#23192 - $k[$j++] = _Cu; //#23192 - $j--; //#23192 - }; //#23192 + $_.in = $k[--$j]; //#23479 + $k[$j++] = Infinity; //#23480 + for (var _Ck = 0, _Cj = $_.in.length - 1; _Ck <= _Cj; _Ck += 3) { //#23484 + var _Cm = $geti($_.in, _Ck, 3); //#23482 + $k[$j++] = 0; //#23482 + for (var _Cn = 0, _Co = _Cm.length; _Cn < _Co; _Cn++) { //#23482 + var _Cq = $k[--$j]; //#23482 + $k[$j++] = $f(_Cq + $get(_Cm, _Cn)) * 40; //#23482 + } //#23482 + var _Cs = (~~($k[--$j] / 40)) + 1; //#23483 + $k[$j++] = ~~(_Cs / 256); //#23483 + $k[$j++] = _Cs % 256; //#23483 + } //#23483 + $astore($a($counttomark())); //#23485 + var _Cv = $k[--$j]; //#23485 + var _Cw = $k[--$j]; //#23485 + $k[$j++] = _Cv; //#23485 + $k[$j++] = _Cw; //#23485 + $j--; //#23485 + }; //#23485 $_.encCTX = function() { - $_.p = 0; //#23196 - $_.ctxvals = $a(2220); //#23197 - for (;;) { //#23294 - if ($_.i == $_.msglen) { //#23201 - break; //#23201 - } //#23201 - if (($_.p % 3) == 0) { //#23289 - if ($get($_.numD, $_.i) >= 12) { //#23208 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23204 - $_.CTXvalstocws(); //#23204 - $_.addtocws(); //#23204 - $k[$j++] = $a([$_.unlcw]); //#23205 - $_.addtocws(); //#23205 - $_.mode = $_.A; //#23206 - break; //#23207 - } //#23207 - var _DA = $get($_.numD, $_.i); //#23209 - if ((_DA >= 8) && ($f(_DA + $_.i) == $_.msglen)) { //#23214 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23210 - $_.CTXvalstocws(); //#23210 - $_.addtocws(); //#23210 - $k[$j++] = $a([$_.unlcw]); //#23211 - $_.addtocws(); //#23211 - $_.mode = $_.A; //#23212 - break; //#23213 - } //#23213 - if ($_.mode == $_.X) { //#23236 - var _DP = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23216 - if (!_DP) { //#23224 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23217 - $_.CTXvalstocws(); //#23217 - $_.addtocws(); //#23217 - if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23221 - $k[$j++] = $a([$_.unlcw]); //#23220 - $_.addtocws(); //#23220 - } //#23220 - $_.mode = $_.A; //#23222 - break; //#23223 - } //#23223 - if (($_.i + 1) < $_.msglen) { //#23230 - var _Di = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23226 - if (!_Di) { //#23226 - break; //#23226 - } //#23226 - if (($_.i + 2) < $_.msglen) { //#23229 - var _Dp = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23228 - if (!_Dp) { //#23228 - break; //#23228 - } //#23228 - } //#23228 - } //#23228 - } else { //#23236 - $_.lookup(); //#23232 - if ($k[--$j] != $_.mode) { //#23237 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23233 - $_.CTXvalstocws(); //#23233 - $_.addtocws(); //#23233 - $k[$j++] = $a([$_.unlcw]); //#23234 - $_.addtocws(); //#23234 - $_.mode = $_.A; //#23235 - break; //#23236 - } //#23236 - } //#23236 - if (($_.msglen - $_.i) <= 3) { //#23288 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23240 - $k[$j++] = Infinity; //#23246 - var _E8 = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23242 - for (var _E9 = 0, _EA = _E8.length; _E9 < _EA; _E9++) { //#23248 - var _EB = $get(_E8, _E9); //#23248 - var _EF = $get($get($_.encvals, $_.mode), _EB) !== undefined; //#23243 - $k[$j++] = _EB; //#23247 - if (_EF) { //#23246 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23244 - } else { //#23246 - $j--; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - } //#23246 - } //#23246 - $_.remvals = $a(); //#23246 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23259 - $k[$j++] = Infinity; //#23254 - $aload($geti($_.ctxvals, 0, $_.p)); //#23253 - $aload($_.remvals); //#23254 - var _ES = $a(); //#23254 - $k[$j++] = _ES; //#23255 - $_.CTXvalstocws(); //#23255 - $_.addtocws(); //#23255 - $_.mode = $_.A; //#23256 - $_.i = $_.msglen; //#23257 - break; //#23258 - } //#23258 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23270 - $k[$j++] = Infinity; //#23265 - $aload($geti($_.ctxvals, 0, $_.p)); //#23263 - $aload($_.remvals); //#23264 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23265 - var _Ei = $a(); //#23265 - $k[$j++] = _Ei; //#23266 - $_.CTXvalstocws(); //#23266 - $_.addtocws(); //#23266 - $_.mode = $_.A; //#23267 - $_.i = $_.msglen; //#23268 - break; //#23269 - } //#23269 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23279 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23273 - $_.CTXvalstocws(); //#23273 - $_.addtocws(); //#23273 - $k[$j++] = $a([$_.unlcw]); //#23274 - $_.addtocws(); //#23274 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23275 - $_.addtocws(); //#23275 - $_.mode = $_.A; //#23276 - $_.i = $_.msglen; //#23277 - break; //#23278 - } //#23278 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23287 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23282 - $_.CTXvalstocws(); //#23282 - $_.addtocws(); //#23282 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23283 - $_.addtocws(); //#23283 - $_.mode = $_.A; //#23284 - $_.i = $_.msglen; //#23285 - break; //#23286 - } //#23286 - } //#23286 - } //#23286 - var _FH = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23290 - $puti($_.ctxvals, $_.p, _FH); //#23291 - $_.p = _FH.length + $_.p; //#23292 - $_.i = $_.i + 1; //#23293 - } //#23293 - if ($_.mode != $_.A) { //#23318 - for (;;) { //#23302 - if (($_.p % 3) == 0) { //#23299 - break; //#23299 - } //#23299 - $_.i = $_.i - 1; //#23300 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23301 - } //#23301 - $k[$j++] = Infinity; //#23304 - $aload($geti($_.ctxvals, 0, $_.p)); //#23304 - var _Fb = $a(); //#23304 - $k[$j++] = _Fb; //#23305 - $_.CTXvalstocws(); //#23305 - $_.addtocws(); //#23305 - $k[$j++] = $a([$_.unlcw]); //#23306 - $_.addtocws(); //#23306 - $_.mode = $_.A; //#23307 - if ($_.i != $_.msglen) { //#23317 - if ($get($_.numD, $_.i) >= 2) { //#23315 - var _Fk = $s(2); //#23311 - $put(_Fk, 0, $get($_.msg, $_.i)); //#23311 - $put(_Fk, 1, $get($_.msg, $_.i + 1)); //#23311 - $k[$j++] = $get($_.Avals, _Fk); //#23311 - $_.addtocws(); //#23311 - $_.i = $_.i + 2; //#23312 - } else { //#23315 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23314 - $_.addtocws(); //#23314 - $_.i = $_.i + 1; //#23315 - } //#23315 - } //#23315 - } //#23315 - }; //#23315 + $_.p = 0; //#23489 + $_.ctxvals = $a(2220); //#23490 + for (;;) { //#23587 + if ($_.i == $_.msglen) { //#23494 + break; //#23494 + } //#23494 + if (($_.p % 3) == 0) { //#23582 + if ($get($_.numD, $_.i) >= 12) { //#23501 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23497 + $_.CTXvalstocws(); //#23497 + $_.addtocws(); //#23497 + $k[$j++] = $a([$_.unlcw]); //#23498 + $_.addtocws(); //#23498 + $_.mode = $_.A; //#23499 + break; //#23500 + } //#23500 + var _DC = $get($_.numD, $_.i); //#23502 + if ((_DC >= 8) && ($f(_DC + $_.i) == $_.msglen)) { //#23507 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23503 + $_.CTXvalstocws(); //#23503 + $_.addtocws(); //#23503 + $k[$j++] = $a([$_.unlcw]); //#23504 + $_.addtocws(); //#23504 + $_.mode = $_.A; //#23505 + break; //#23506 + } //#23506 + if ($_.mode == $_.X) { //#23529 + var _DR = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23509 + if (!_DR) { //#23517 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23510 + $_.CTXvalstocws(); //#23510 + $_.addtocws(); //#23510 + if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23514 + $k[$j++] = $a([$_.unlcw]); //#23513 + $_.addtocws(); //#23513 + } //#23513 + $_.mode = $_.A; //#23515 + break; //#23516 + } //#23516 + if (($_.i + 1) < $_.msglen) { //#23523 + var _Dk = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23519 + if (!_Dk) { //#23519 + break; //#23519 + } //#23519 + if (($_.i + 2) < $_.msglen) { //#23522 + var _Dr = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23521 + if (!_Dr) { //#23521 + break; //#23521 + } //#23521 + } //#23521 + } //#23521 + } else { //#23529 + $_.lookup(); //#23525 + if ($k[--$j] != $_.mode) { //#23530 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23526 + $_.CTXvalstocws(); //#23526 + $_.addtocws(); //#23526 + $k[$j++] = $a([$_.unlcw]); //#23527 + $_.addtocws(); //#23527 + $_.mode = $_.A; //#23528 + break; //#23529 + } //#23529 + } //#23529 + if (($_.msglen - $_.i) <= 3) { //#23581 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23533 + $k[$j++] = Infinity; //#23534 + var _EA = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23535 + for (var _EB = 0, _EC = _EA.length; _EB < _EC; _EB++) { //#23541 + var _ED = $get(_EA, _EB); //#23541 + var _EH = $get($get($_.encvals, $_.mode), _ED) !== undefined; //#23536 + $k[$j++] = _ED; //#23540 + if (_EH) { //#23539 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23537 + } else { //#23539 + $j--; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + } //#23539 + } //#23539 + $_.remvals = $a(); //#23539 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23552 + $k[$j++] = Infinity; //#23545 + $aload($geti($_.ctxvals, 0, $_.p)); //#23546 + $aload($_.remvals); //#23547 + var _EU = $a(); //#23547 + $k[$j++] = _EU; //#23548 + $_.CTXvalstocws(); //#23548 + $_.addtocws(); //#23548 + $_.mode = $_.A; //#23549 + $_.i = $_.msglen; //#23550 + break; //#23551 + } //#23551 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23563 + $k[$j++] = Infinity; //#23555 + $aload($geti($_.ctxvals, 0, $_.p)); //#23556 + $aload($_.remvals); //#23557 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23558 + var _Ek = $a(); //#23558 + $k[$j++] = _Ek; //#23559 + $_.CTXvalstocws(); //#23559 + $_.addtocws(); //#23559 + $_.mode = $_.A; //#23560 + $_.i = $_.msglen; //#23561 + break; //#23562 + } //#23562 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23572 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23566 + $_.CTXvalstocws(); //#23566 + $_.addtocws(); //#23566 + $k[$j++] = $a([$_.unlcw]); //#23567 + $_.addtocws(); //#23567 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23568 + $_.addtocws(); //#23568 + $_.mode = $_.A; //#23569 + $_.i = $_.msglen; //#23570 + break; //#23571 + } //#23571 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23580 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23575 + $_.CTXvalstocws(); //#23575 + $_.addtocws(); //#23575 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23576 + $_.addtocws(); //#23576 + $_.mode = $_.A; //#23577 + $_.i = $_.msglen; //#23578 + break; //#23579 + } //#23579 + } //#23579 + } //#23579 + var _FJ = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23583 + $puti($_.ctxvals, $_.p, _FJ); //#23584 + $_.p = _FJ.length + $_.p; //#23585 + $_.i = $_.i + 1; //#23586 + } //#23586 + if ($_.mode != $_.A) { //#23611 + for (;;) { //#23595 + if (($_.p % 3) == 0) { //#23592 + break; //#23592 + } //#23592 + $_.i = $_.i - 1; //#23593 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23594 + } //#23594 + $k[$j++] = Infinity; //#23596 + $aload($geti($_.ctxvals, 0, $_.p)); //#23597 + var _Fd = $a(); //#23597 + $k[$j++] = _Fd; //#23598 + $_.CTXvalstocws(); //#23598 + $_.addtocws(); //#23598 + $k[$j++] = $a([$_.unlcw]); //#23599 + $_.addtocws(); //#23599 + $_.mode = $_.A; //#23600 + if ($_.i != $_.msglen) { //#23610 + if ($get($_.numD, $_.i) >= 2) { //#23608 + var _Fm = $s(2); //#23604 + $put(_Fm, 0, $get($_.msg, $_.i)); //#23604 + $put(_Fm, 1, $get($_.msg, $_.i + 1)); //#23604 + $k[$j++] = $get($_.Avals, _Fm); //#23604 + $_.addtocws(); //#23604 + $_.i = $_.i + 2; //#23605 + } else { //#23608 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23607 + $_.addtocws(); //#23607 + $_.i = $_.i + 1; //#23608 + } //#23608 + } //#23608 + } //#23608 + }; //#23608 $_.encD = function() { - for (;;) { //#23379 - if ($get($_.numD, $_.i) < 3) { //#23369 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23328 - $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23329 - if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23338 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23335 - $k[$j++] = Infinity; //#23335 - $aload($_.Dbits); //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $_.Dbits = $a(); //#23335 - } //#23335 - if (($_.Drem == 2) || ($_.Drem == 6)) { //#23336 - $k[$j++] = Infinity; //#23336 - $aload($_.Dbits); //#23336 - $k[$j++] = 0; //#23336 - $k[$j++] = 1; //#23336 - $_.Dbits = $a(); //#23336 - } //#23336 - break; //#23337 - } //#23337 - if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23343 - break; //#23343 - } //#23343 - if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23350 - $k[$j++] = Infinity; //#23348 - $aload($_.Dbits); //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $_.Dbits = $a(); //#23348 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23349 - } //#23349 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23361 - if ($get($_.numD, $_.i) >= 1) { //#23358 - $k[$j++] = Infinity; //#23355 - $aload($_.Dbits); //#23355 - $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23355 - $k[$j++] = 4; //#23355 - $_.tobin(); //#23355 - $aload($k[--$j]); //#23355 - $_.Dbits = $a(); //#23355 - $_.i = $_.i + 1; //#23356 - } else { //#23358 - $k[$j++] = Infinity; //#23358 - $aload($_.Dbits); //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $_.Dbits = $a(); //#23358 - } //#23358 - $_.Drem = $_.Drem - 4; //#23360 - } //#23360 - if ($_.Drem == 2) { //#23365 - $k[$j++] = Infinity; //#23363 - $aload($_.Dbits); //#23363 - $k[$j++] = 0; //#23363 - $k[$j++] = 1; //#23363 - $_.Dbits = $a(); //#23363 - $_.Drem = 0; //#23364 - } //#23364 - break; //#23367 - } //#23367 - $k[$j++] = Infinity; //#23375 - $aload($_.Dbits); //#23373 - var _H7 = $geti($_.msg, $_.i, 3); //#23374 - $k[$j++] = 0; //#23374 - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#23374 - var _HB = $k[--$j]; //#23374 - $k[$j++] = ($f(_HB + $f($get(_H7, _H8) - 48))) * 10; //#23374 - } //#23374 - var _HC = $k[--$j]; //#23374 - $k[$j++] = (~~(_HC / 10)) + 1; //#23375 - $k[$j++] = 10; //#23375 - $_.tobin(); //#23375 - $aload($k[--$j]); //#23375 - $_.Dbits = $a(); //#23375 - $_.i = $_.i + 3; //#23377 - } //#23377 - $k[$j++] = Infinity; //#23381 - for (var _HI = 0, _HH = $_.Dbits.length - 1; _HI <= _HH; _HI += 8) { //#23384 - var _HK = $geti($_.Dbits, _HI, 8); //#23383 - $k[$j++] = 0; //#23383 - for (var _HL = 0, _HM = _HK.length; _HL < _HM; _HL++) { //#23383 - var _HO = $k[--$j]; //#23383 - $k[$j++] = $f(_HO + $get(_HK, _HL)) * 2; //#23383 - } //#23383 - var _HP = $k[--$j]; //#23383 - $k[$j++] = ~~(_HP / 2); //#23383 - } //#23383 - $astore($a($counttomark())); //#23385 - var _HS = $k[--$j]; //#23385 - var _HT = $k[--$j]; //#23385 - $k[$j++] = _HS; //#23385 - $k[$j++] = _HT; //#23385 - $j--; //#23385 - $_.addtocws(); //#23385 - $_.mode = $_.A; //#23386 - }; //#23386 + for (;;) { //#23672 + if ($get($_.numD, $_.i) < 3) { //#23662 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23621 + $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23622 + if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23631 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23628 + $k[$j++] = Infinity; //#23628 + $aload($_.Dbits); //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $_.Dbits = $a(); //#23628 + } //#23628 + if (($_.Drem == 2) || ($_.Drem == 6)) { //#23629 + $k[$j++] = Infinity; //#23629 + $aload($_.Dbits); //#23629 + $k[$j++] = 0; //#23629 + $k[$j++] = 1; //#23629 + $_.Dbits = $a(); //#23629 + } //#23629 + break; //#23630 + } //#23630 + if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23636 + break; //#23636 + } //#23636 + if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23643 + $k[$j++] = Infinity; //#23641 + $aload($_.Dbits); //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $_.Dbits = $a(); //#23641 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23642 + } //#23642 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23654 + if ($get($_.numD, $_.i) >= 1) { //#23651 + $k[$j++] = Infinity; //#23648 + $aload($_.Dbits); //#23648 + $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23648 + $k[$j++] = 4; //#23648 + $_.tobin(); //#23648 + $aload($k[--$j]); //#23648 + $_.Dbits = $a(); //#23648 + $_.i = $_.i + 1; //#23649 + } else { //#23651 + $k[$j++] = Infinity; //#23651 + $aload($_.Dbits); //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $_.Dbits = $a(); //#23651 + } //#23651 + $_.Drem = $_.Drem - 4; //#23653 + } //#23653 + if ($_.Drem == 2) { //#23658 + $k[$j++] = Infinity; //#23656 + $aload($_.Dbits); //#23656 + $k[$j++] = 0; //#23656 + $k[$j++] = 1; //#23656 + $_.Dbits = $a(); //#23656 + $_.Drem = 0; //#23657 + } //#23657 + break; //#23660 + } //#23660 + $k[$j++] = Infinity; //#23665 + $aload($_.Dbits); //#23666 + var _H9 = $geti($_.msg, $_.i, 3); //#23667 + $k[$j++] = 0; //#23667 + for (var _HA = 0, _HB = _H9.length; _HA < _HB; _HA++) { //#23667 + var _HD = $k[--$j]; //#23667 + $k[$j++] = ($f(_HD + $f($get(_H9, _HA) - 48))) * 10; //#23667 + } //#23667 + var _HE = $k[--$j]; //#23667 + $k[$j++] = (~~(_HE / 10)) + 1; //#23668 + $k[$j++] = 10; //#23668 + $_.tobin(); //#23668 + $aload($k[--$j]); //#23668 + $_.Dbits = $a(); //#23668 + $_.i = $_.i + 3; //#23670 + } //#23670 + $k[$j++] = Infinity; //#23674 + for (var _HK = 0, _HJ = $_.Dbits.length - 1; _HK <= _HJ; _HK += 8) { //#23677 + var _HM = $geti($_.Dbits, _HK, 8); //#23676 + $k[$j++] = 0; //#23676 + for (var _HN = 0, _HO = _HM.length; _HN < _HO; _HN++) { //#23676 + var _HQ = $k[--$j]; //#23676 + $k[$j++] = $f(_HQ + $get(_HM, _HN)) * 2; //#23676 + } //#23676 + var _HR = $k[--$j]; //#23676 + $k[$j++] = ~~(_HR / 2); //#23676 + } //#23676 + $astore($a($counttomark())); //#23678 + var _HU = $k[--$j]; //#23678 + var _HV = $k[--$j]; //#23678 + $k[$j++] = _HU; //#23678 + $k[$j++] = _HV; //#23678 + $j--; //#23678 + $_.addtocws(); //#23678 + $_.mode = $_.A; //#23679 + }; //#23679 $_.encB = function() { - $_.p = 0; //#23391 - $_.bvals = $a(1480); //#23391 - for (;;) { //#23398 - if ($_.i == $_.msglen) { //#23392 - break; //#23392 - } //#23392 - if ($get($_.msg, $_.i) < 0) { //#23393 - break; //#23393 - } //#23393 - $_.lookup(); //#23394 - if ($k[--$j] != $_.mode) { //#23394 - break; //#23394 - } //#23394 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23395 - $_.p = $_.p + 1; //#23396 - $_.i = $_.i + 1; //#23397 - } //#23397 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23399 - $k[$j++] = Infinity; //#23406 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23404 - $k[$j++] = 0; //#23402 - } else { //#23404 - if ($_.p < 250) { //#23404 - $k[$j++] = $_.p; //#23404 - } else { //#23404 - $k[$j++] = (~~($_.p / 250)) + 249; //#23404 - $k[$j++] = $_.p % 250; //#23404 - } //#23404 - } //#23404 - $aload($geti($_.bvals, 0, $_.p)); //#23406 - $_.bvals = $a(); //#23406 - $k[$j++] = $_.bvals; //#23408 - $_.addtocws(); //#23408 - $_.mode = $_.A; //#23409 - }; //#23409 - $_.cws = $a(1480); //#23413 - $_.mode = $_.A; //#23414 - $_.i = 0; //#23414 - $_.j = 0; //#23414 - for (;;) { //#23417 - if ($_.i >= $_.msglen) { //#23415 - break; //#23415 - } //#23415 + $_.p = 0; //#23684 + $_.bvals = $a(1480); //#23684 + for (;;) { //#23691 + if ($_.i == $_.msglen) { //#23685 + break; //#23685 + } //#23685 + if ($get($_.msg, $_.i) < 0) { //#23686 + break; //#23686 + } //#23686 + $_.lookup(); //#23687 + if ($k[--$j] != $_.mode) { //#23687 + break; //#23687 + } //#23687 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23688 + $_.p = $_.p + 1; //#23689 + $_.i = $_.i + 1; //#23690 + } //#23690 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23692 + $k[$j++] = Infinity; //#23693 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23697 + $k[$j++] = 0; //#23695 + } else { //#23697 + if ($_.p < 250) { //#23697 + $k[$j++] = $_.p; //#23697 + } else { //#23697 + $k[$j++] = (~~($_.p / 250)) + 249; //#23697 + $k[$j++] = $_.p % 250; //#23697 + } //#23697 + } //#23697 + $aload($geti($_.bvals, 0, $_.p)); //#23699 + $_.bvals = $a(); //#23699 + $k[$j++] = $_.bvals; //#23701 + $_.addtocws(); //#23701 + $_.mode = $_.A; //#23702 + }; //#23702 + $_.cws = $a(1480); //#23706 + $_.mode = $_.A; //#23707 + $_.i = 0; //#23707 + $_.j = 0; //#23707 + for (;;) { //#23710 + if ($_.i >= $_.msglen) { //#23708 + break; //#23708 + } //#23708 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $_.mode)]() === true) { break; - } //#23416 - } //#23416 - $_.cws = $geti($_.cws, 0, $_.j); //#23418 - } //#23418 - var _IC = $_.metrics; //#23423 - for (var _ID = 0, _IE = _IC.length; _ID < _IE; _ID++) { //#23441 - $_.m = $get(_IC, _ID); //#23424 - $_.vers = $get($_.m, 0); //#23425 - $_.rows = $get($_.m, 1); //#23426 - $_.cols = $get($_.m, 2); //#23427 - $_.dcol = $get($_.m, 3); //#23428 - $_.dcws = $get($_.m, 4); //#23429 - $_.rscw = $get($_.m, 5); //#23430 - $_.rsbl = $get($_.m, 6); //#23431 - $_.riso = $get($_.m, 7); //#23432 - $_.risi = $get($_.m, 8); //#23433 - $_.risl = $get($_.m, 9); //#23434 - $_.dcpb = ~~($_.dcws / $_.rsbl); //#23435 - $_.ecpb = ~~($_.rscw / $_.rsbl); //#23436 - $_.okay = true; //#23437 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23438 - $_.okay = false; //#23438 - } //#23438 - if ($_.cws.length > $_.dcws) { //#23439 - $_.okay = false; //#23439 - } //#23439 - if ($_.okay) { //#23440 - break; //#23440 - } //#23440 - } //#23440 - if (!$_.okay) { //#23445 - $k[$j++] = 'bwipp.codeoneNoValidSymbol#23444'; //#23444 - $k[$j++] = "Maximum length exceeded"; //#23444 - bwipp_raiseerror(); //#23444 - } //#23444 - if (!$_.stype) { //#23451 - $k[$j++] = Infinity; //#23449 - $aload($_.cws); //#23449 - for (var _Ip = 0, _Iq = $f($_.dcws - $_.cws.length); _Ip < _Iq; _Ip++) { //#23449 - $k[$j++] = 129; //#23449 - } //#23449 - $_.cws = $a(); //#23449 - } else { //#23451 - $k[$j++] = Infinity; //#23451 - for (var _Iu = 0, _Iv = $f($_.dcws - $_.cws.length); _Iu < _Iv; _Iu++) { //#23451 - $k[$j++] = 0; //#23451 - } //#23451 - $aload($_.cws); //#23451 - $_.cws = $a(); //#23451 - } //#23451 - var _Iz = $get($_.options, 'debugcws') !== undefined; //#23454 - if (_Iz) { //#23454 - $k[$j++] = 'bwipp.debugcws#23454'; //#23454 - $k[$j++] = $_.cws; //#23454 - bwipp_raiseerror(); //#23454 - } //#23454 - $_.cwbs = $a($_.rsbl); //#23457 - $_.ecbs = $a($_.rsbl); //#23458 - for (var _J7 = 0, _J6 = $f($_.rsbl - 1); _J7 <= _J6; _J7 += 1) { //#23467 - $_.i = _J7; //#23460 - $_.cwb = $a($_.dcpb); //#23461 - for (var _JC = 0, _JB = $_.dcpb - 1; _JC <= _JB; _JC += 1) { //#23465 - $_.j = _JC; //#23463 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23464 - } //#23464 - $put($_.cwbs, $_.i, $_.cwb); //#23466 - } //#23466 - var _JO = $_.stype ? 32 : 256; //#23470 - $_.gf = _JO; //#23470 - $_['gf-1'] = $_.gf - 1; //#23471 - var _JR = $_.stype ? 37 : 301; //#23472 - $_.pm = _JR; //#23472 - $k[$j++] = Infinity; //#23473 - $k[$j++] = 1; //#23473 - for (var _JT = 0, _JU = $_["gf-1"]; _JT < _JU; _JT++) { //#23473 - var _JV = $k[--$j]; //#23473 - var _JW = _JV * 2; //#23473 - $k[$j++] = _JV; //#23473 - $k[$j++] = _JW; //#23473 - if (_JW >= $_.gf) { //#23473 - var _JZ = $k[--$j]; //#23473 - $k[$j++] = _JZ ^ $_.pm; //#23473 - } //#23473 - } //#23473 - $_.rsalog = $a(); //#23473 - $_.rslog = $a($_.gf); //#23474 - for (var _Jf = 1, _Je = $_["gf-1"]; _Jf <= _Je; _Jf += 1) { //#23475 - $put($_.rslog, $get($_.rsalog, _Jf), _Jf); //#23475 - } //#23475 + } //#23709 + } //#23709 + $_.cws = $geti($_.cws, 0, $_.j); //#23711 + } //#23711 + var _IE = $_.metrics; //#23716 + for (var _IF = 0, _IG = _IE.length; _IF < _IG; _IF++) { //#23734 + $_.m = $get(_IE, _IF); //#23717 + $_.vers = $get($_.m, 0); //#23718 + $_.rows = $get($_.m, 1); //#23719 + $_.cols = $get($_.m, 2); //#23720 + $_.dcol = $get($_.m, 3); //#23721 + $_.dcws = $get($_.m, 4); //#23722 + $_.rscw = $get($_.m, 5); //#23723 + $_.rsbl = $get($_.m, 6); //#23724 + $_.riso = $get($_.m, 7); //#23725 + $_.risi = $get($_.m, 8); //#23726 + $_.risl = $get($_.m, 9); //#23727 + $_.dcpb = ~~($_.dcws / $_.rsbl); //#23728 + $_.ecpb = ~~($_.rscw / $_.rsbl); //#23729 + $_.okay = true; //#23730 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23731 + $_.okay = false; //#23731 + } //#23731 + if ($_.cws.length > $_.dcws) { //#23732 + $_.okay = false; //#23732 + } //#23732 + if ($_.okay) { //#23733 + break; //#23733 + } //#23733 + } //#23733 + if (!$_.okay) { //#23738 + $k[$j++] = 'bwipp.codeoneNoValidSymbol#23737'; //#23737 + $k[$j++] = "Maximum length exceeded"; //#23737 + bwipp_raiseerror(); //#23737 + } //#23737 + if (!$_.stype) { //#23744 + $k[$j++] = Infinity; //#23742 + $aload($_.cws); //#23742 + for (var _Ir = 0, _Is = $f($_.dcws - $_.cws.length); _Ir < _Is; _Ir++) { //#23742 + $k[$j++] = 129; //#23742 + } //#23742 + $_.cws = $a(); //#23742 + } else { //#23744 + $k[$j++] = Infinity; //#23744 + for (var _Iw = 0, _Ix = $f($_.dcws - $_.cws.length); _Iw < _Ix; _Iw++) { //#23744 + $k[$j++] = 0; //#23744 + } //#23744 + $aload($_.cws); //#23744 + $_.cws = $a(); //#23744 + } //#23744 + var _J1 = $get($_.options, 'debugcws') !== undefined; //#23747 + if (_J1) { //#23747 + $k[$j++] = 'bwipp.debugcws#23747'; //#23747 + $k[$j++] = $_.cws; //#23747 + bwipp_raiseerror(); //#23747 + } //#23747 + $_.cwbs = $a($_.rsbl); //#23750 + $_.ecbs = $a($_.rsbl); //#23751 + for (var _J9 = 0, _J8 = $f($_.rsbl - 1); _J9 <= _J8; _J9 += 1) { //#23760 + $_.i = _J9; //#23753 + $_.cwb = $a($_.dcpb); //#23754 + for (var _JE = 0, _JD = $_.dcpb - 1; _JE <= _JD; _JE += 1) { //#23758 + $_.j = _JE; //#23756 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23757 + } //#23757 + $put($_.cwbs, $_.i, $_.cwb); //#23759 + } //#23759 + var _JQ = $_.stype ? 32 : 256; //#23763 + $_.gf = _JQ; //#23763 + $_['gf-1'] = $_.gf - 1; //#23764 + var _JT = $_.stype ? 37 : 301; //#23765 + $_.pm = _JT; //#23765 + $k[$j++] = Infinity; //#23766 + $k[$j++] = 1; //#23766 + for (var _JV = 0, _JW = $_["gf-1"]; _JV < _JW; _JV++) { //#23766 + var _JX = $k[--$j]; //#23766 + var _JY = _JX * 2; //#23766 + $k[$j++] = _JX; //#23766 + $k[$j++] = _JY; //#23766 + if (_JY >= $_.gf) { //#23766 + var _Jb = $k[--$j]; //#23766 + $k[$j++] = _Jb ^ $_.pm; //#23766 + } //#23766 + } //#23766 + $_.rsalog = $a(); //#23766 + $_.rslog = $a($_.gf); //#23767 + for (var _Jh = 1, _Jg = $_["gf-1"]; _Jh <= _Jg; _Jh += 1) { //#23768 + $put($_.rslog, $get($_.rsalog, _Jh), _Jh); //#23768 + } //#23768 $_.rsprod = function() { - var _Jj = $k[--$j]; //#23477 - var _Jk = $k[--$j]; //#23477 - $k[$j++] = _Jk; //#23481 - $k[$j++] = _Jj; //#23481 - if ((_Jj != 0) && (_Jk != 0)) { //#23480 - var _Jn = $get($_.rslog, $k[--$j]); //#23478 - var _Jt = $get($_.rsalog, $f(_Jn + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23478 - $k[$j++] = _Jt; //#23478 - } else { //#23480 - $j -= 2; //#23480 - $k[$j++] = 0; //#23480 - } //#23480 - }; //#23480 - $k[$j++] = Infinity; //#23485 - $k[$j++] = 1; //#23485 - for (var _Jv = 0, _Jw = $_.ecpb; _Jv < _Jw; _Jv++) { //#23485 - $k[$j++] = 0; //#23485 - } //#23485 - $_.coeffs = $a(); //#23485 - for (var _K0 = 0, _Jz = $_.ecpb - 1; _K0 <= _Jz; _K0 += 1) { //#23494 - $_.i = _K0; //#23487 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23488 - for (var _K7 = $_.i; _K7 >= 1; _K7 -= 1) { //#23492 - $_.j = _K7; //#23490 - $k[$j++] = $_.coeffs; //#23491 - $k[$j++] = $_.j; //#23491 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#23491 - $k[$j++] = $get($_.coeffs, $_.j); //#23491 - $k[$j++] = $get($_.rsalog, $_.i); //#23491 - $_.rsprod(); //#23491 - var _KJ = $k[--$j]; //#23491 - var _KK = $k[--$j]; //#23491 - var _KL = $k[--$j]; //#23491 - $put($k[--$j], _KL, $xo(_KK, _KJ)); //#23491 - } //#23491 - $k[$j++] = $_.coeffs; //#23493 - $k[$j++] = 0; //#23493 - $k[$j++] = $get($_.coeffs, 0); //#23493 - $k[$j++] = $get($_.rsalog, $_.i); //#23493 - $_.rsprod(); //#23493 - var _KT = $k[--$j]; //#23493 - var _KU = $k[--$j]; //#23493 - $put($k[--$j], _KU, _KT); //#23493 - } //#23493 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23495 - for (var _Kb = 0, _Ka = $_.cwbs.length - 1; _Kb <= _Ka; _Kb += 1) { //#23510 - $_.i = _Kb; //#23499 - $k[$j++] = Infinity; //#23500 - $aload($get($_.cwbs, $_.i)); //#23500 - for (var _Kg = 0, _Kh = $_.ecpb; _Kg < _Kh; _Kg++) { //#23500 - $k[$j++] = 0; //#23500 - } //#23500 - $_.rscws = $a(); //#23500 - for (var _Kl = 0, _Kk = $_.dcpb - 1; _Kl <= _Kk; _Kl += 1) { //#23508 - $_.m = _Kl; //#23502 - $_.k = $get($_.rscws, $_.m); //#23503 - for (var _Kr = 0, _Kq = $_.ecpb - 1; _Kr <= _Kq; _Kr += 1) { //#23507 - $_.j = _Kr; //#23505 - $k[$j++] = $_.rscws; //#23506 - $k[$j++] = ($_.m + $_.j) + 1; //#23506 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23506 - $k[$j++] = $_.k; //#23506 - $_.rsprod(); //#23506 - var _L4 = $k[--$j]; //#23506 - var _L5 = $k[--$j]; //#23506 - $put($k[--$j], _L5, $xo(_L4, $get($_.rscws, ($_.m + $_.j) + 1))); //#23506 - } //#23506 - } //#23506 - $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23509 - } //#23509 - $k[$j++] = Infinity; //#23513 - $aload($_.cws); //#23513 - for (var _LF = 0, _LG = $_.rscw; _LF < _LG; _LF++) { //#23513 - $k[$j++] = 0; //#23513 - } //#23513 - $_.cws = $a(); //#23513 - for (var _LK = 0, _LJ = $f($_.rscw - 1); _LK <= _LJ; _LK += 1) { //#23517 - $_.i = _LK; //#23515 - $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23516 - } //#23516 - var _LY = $_.stype ? 5 : 8; //#23520 - $_.mmat = $a($f($_.dcws + $_.rscw) * _LY); //#23520 - $_.r = 0; //#23521 - $_.c = 0; //#23521 - var _Lb = $_.stype ? 2 : 1; //#23522 - for (var _Le = 0, _Lf = _Lb, _Ld = $_.cws.length - 1; _Lf < 0 ? _Le >= _Ld : _Le <= _Ld; _Le += _Lf) { //#23543 - $_.i = _Le; //#23523 - if (!$_.stype) { //#23537 - var _Li = $strcpy($s(8), "00000000"); //#23525 - var _Ln = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23525 - $puti(_Li, 8 - _Ln.length, _Ln); //#23526 - $k[$j++] = _Li; //#23526 - $k[$j++] = Infinity; //#23526 - var _Lo = $k[--$j]; //#23526 - var _Lp = $k[--$j]; //#23526 - $k[$j++] = _Lo; //#23526 - $forall(_Lp, function() { //#23526 - var _Lq = $k[--$j]; //#23526 - $k[$j++] = $f(_Lq - 48); //#23526 - }); //#23526 - var _Lr = $a(); //#23526 - $_.top = $geti(_Lr, 0, 4); //#23527 - $_.bot = $geti(_Lr, 4, 4); //#23528 - } else { //#23537 - var _Lv = $strcpy($s(5), "00000"); //#23530 - var _M0 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23530 - $puti(_Lv, 5 - _M0.length, _M0); //#23531 - $k[$j++] = _Lv; //#23531 - $k[$j++] = Infinity; //#23531 - var _M1 = $k[--$j]; //#23531 - var _M2 = $k[--$j]; //#23531 - $k[$j++] = _M1; //#23531 - $forall(_M2, function() { //#23531 - var _M3 = $k[--$j]; //#23531 - $k[$j++] = $f(_M3 - 48); //#23531 - }); //#23531 - $_.c1 = $a(); //#23532 - var _M6 = $strcpy($s(5), "00000"); //#23533 - var _MB = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23533 - $puti(_M6, 5 - _MB.length, _MB); //#23534 - $k[$j++] = _M6; //#23534 - $k[$j++] = Infinity; //#23534 - var _MC = $k[--$j]; //#23534 - var _MD = $k[--$j]; //#23534 - $k[$j++] = _MC; //#23534 - $forall(_MD, function() { //#23534 - var _ME = $k[--$j]; //#23534 - $k[$j++] = $f(_ME - 48); //#23534 - }); //#23534 - $_.c2 = $a(); //#23535 - $k[$j++] = Infinity; //#23536 - $aload($geti($_.c1, 0, 3)); //#23536 - $aload($geti($_.c2, 0, 2)); //#23536 - $_.top = $a(); //#23536 - $k[$j++] = Infinity; //#23537 - $aload($geti($_.c1, 3, 2)); //#23537 - $aload($geti($_.c2, 2, 3)); //#23537 - $_.bot = $a(); //#23537 - } //#23537 - $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23539 - $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23540 - $_.c = $_.c + $_.top.length; //#23541 - if ($_.c == $_.dcol) { //#23542 - $_.c = 0; //#23542 - $_.r = $_.r + 2; //#23542 - } //#23542 - } //#23542 + var _Jl = $k[--$j]; //#23770 + var _Jm = $k[--$j]; //#23770 + $k[$j++] = _Jm; //#23774 + $k[$j++] = _Jl; //#23774 + if ((_Jl != 0) && (_Jm != 0)) { //#23773 + var _Jp = $get($_.rslog, $k[--$j]); //#23771 + var _Jv = $get($_.rsalog, $f(_Jp + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23771 + $k[$j++] = _Jv; //#23771 + } else { //#23773 + $j -= 2; //#23773 + $k[$j++] = 0; //#23773 + } //#23773 + }; //#23773 + $k[$j++] = Infinity; //#23778 + $k[$j++] = 1; //#23778 + for (var _Jx = 0, _Jy = $_.ecpb; _Jx < _Jy; _Jx++) { //#23778 + $k[$j++] = 0; //#23778 + } //#23778 + $_.coeffs = $a(); //#23778 + for (var _K2 = 0, _K1 = $_.ecpb - 1; _K2 <= _K1; _K2 += 1) { //#23787 + $_.i = _K2; //#23780 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23781 + for (var _K9 = $_.i; _K9 >= 1; _K9 -= 1) { //#23785 + $_.j = _K9; //#23783 + $k[$j++] = $_.coeffs; //#23784 + $k[$j++] = $_.j; //#23784 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#23784 + $k[$j++] = $get($_.coeffs, $_.j); //#23784 + $k[$j++] = $get($_.rsalog, $_.i); //#23784 + $_.rsprod(); //#23784 + var _KL = $k[--$j]; //#23784 + var _KM = $k[--$j]; //#23784 + var _KN = $k[--$j]; //#23784 + $put($k[--$j], _KN, $xo(_KM, _KL)); //#23784 + } //#23784 + $k[$j++] = $_.coeffs; //#23786 + $k[$j++] = 0; //#23786 + $k[$j++] = $get($_.coeffs, 0); //#23786 + $k[$j++] = $get($_.rsalog, $_.i); //#23786 + $_.rsprod(); //#23786 + var _KV = $k[--$j]; //#23786 + var _KW = $k[--$j]; //#23786 + $put($k[--$j], _KW, _KV); //#23786 + } //#23786 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23788 + for (var _Kd = 0, _Kc = $_.cwbs.length - 1; _Kd <= _Kc; _Kd += 1) { //#23803 + $_.i = _Kd; //#23792 + $k[$j++] = Infinity; //#23793 + $aload($get($_.cwbs, $_.i)); //#23793 + for (var _Ki = 0, _Kj = $_.ecpb; _Ki < _Kj; _Ki++) { //#23793 + $k[$j++] = 0; //#23793 + } //#23793 + $_.rscws = $a(); //#23793 + for (var _Kn = 0, _Km = $_.dcpb - 1; _Kn <= _Km; _Kn += 1) { //#23801 + $_.m = _Kn; //#23795 + $_.k = $get($_.rscws, $_.m); //#23796 + for (var _Kt = 0, _Ks = $_.ecpb - 1; _Kt <= _Ks; _Kt += 1) { //#23800 + $_.j = _Kt; //#23798 + $k[$j++] = $_.rscws; //#23799 + $k[$j++] = ($_.m + $_.j) + 1; //#23799 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23799 + $k[$j++] = $_.k; //#23799 + $_.rsprod(); //#23799 + var _L6 = $k[--$j]; //#23799 + var _L7 = $k[--$j]; //#23799 + $put($k[--$j], _L7, $xo(_L6, $get($_.rscws, ($_.m + $_.j) + 1))); //#23799 + } //#23799 + } //#23799 + $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23802 + } //#23802 + $k[$j++] = Infinity; //#23806 + $aload($_.cws); //#23806 + for (var _LH = 0, _LI = $_.rscw; _LH < _LI; _LH++) { //#23806 + $k[$j++] = 0; //#23806 + } //#23806 + $_.cws = $a(); //#23806 + for (var _LM = 0, _LL = $f($_.rscw - 1); _LM <= _LL; _LM += 1) { //#23810 + $_.i = _LM; //#23808 + $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23809 + } //#23809 + var _La = $_.stype ? 5 : 8; //#23813 + $_.mmat = $a($f($_.dcws + $_.rscw) * _La); //#23813 + $_.r = 0; //#23814 + $_.c = 0; //#23814 + var _Ld = $_.stype ? 2 : 1; //#23815 + for (var _Lg = 0, _Lh = _Ld, _Lf = $_.cws.length - 1; _Lh < 0 ? _Lg >= _Lf : _Lg <= _Lf; _Lg += _Lh) { //#23836 + $_.i = _Lg; //#23816 + if (!$_.stype) { //#23830 + var _Lk = $strcpy($s(8), "00000000"); //#23818 + var _Lp = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23818 + $puti(_Lk, 8 - _Lp.length, _Lp); //#23819 + $k[$j++] = _Lk; //#23819 + $k[$j++] = Infinity; //#23819 + var _Lq = $k[--$j]; //#23819 + var _Lr = $k[--$j]; //#23819 + $k[$j++] = _Lq; //#23819 + $forall(_Lr, function() { //#23819 + var _Ls = $k[--$j]; //#23819 + $k[$j++] = $f(_Ls - 48); //#23819 + }); //#23819 + var _Lt = $a(); //#23819 + $_.top = $geti(_Lt, 0, 4); //#23820 + $_.bot = $geti(_Lt, 4, 4); //#23821 + } else { //#23830 + var _Lx = $strcpy($s(5), "00000"); //#23823 + var _M2 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23823 + $puti(_Lx, 5 - _M2.length, _M2); //#23824 + $k[$j++] = _Lx; //#23824 + $k[$j++] = Infinity; //#23824 + var _M3 = $k[--$j]; //#23824 + var _M4 = $k[--$j]; //#23824 + $k[$j++] = _M3; //#23824 + $forall(_M4, function() { //#23824 + var _M5 = $k[--$j]; //#23824 + $k[$j++] = $f(_M5 - 48); //#23824 + }); //#23824 + $_.c1 = $a(); //#23825 + var _M8 = $strcpy($s(5), "00000"); //#23826 + var _MD = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23826 + $puti(_M8, 5 - _MD.length, _MD); //#23827 + $k[$j++] = _M8; //#23827 + $k[$j++] = Infinity; //#23827 + var _ME = $k[--$j]; //#23827 + var _MF = $k[--$j]; //#23827 + $k[$j++] = _ME; //#23827 + $forall(_MF, function() { //#23827 + var _MG = $k[--$j]; //#23827 + $k[$j++] = $f(_MG - 48); //#23827 + }); //#23827 + $_.c2 = $a(); //#23828 + $k[$j++] = Infinity; //#23829 + $aload($geti($_.c1, 0, 3)); //#23829 + $aload($geti($_.c2, 0, 2)); //#23829 + $_.top = $a(); //#23829 + $k[$j++] = Infinity; //#23830 + $aload($geti($_.c1, 3, 2)); //#23830 + $aload($geti($_.c2, 2, 3)); //#23830 + $_.bot = $a(); //#23830 + } //#23830 + $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23832 + $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23833 + $_.c = $_.c + $_.top.length; //#23834 + if ($_.c == $_.dcol) { //#23835 + $_.c = 0; //#23835 + $_.r = $_.r + 2; //#23835 + } //#23835 + } //#23835 $_.mmv = function() { - var _Mg = $k[--$j]; //#23546 - var _Mh = $k[--$j]; //#23546 - $k[$j++] = $f(_Mh + (_Mg * $_.cols)); //#23546 - }; //#23546 - $k[$j++] = Infinity; //#23547 - for (var _Mk = 0, _Ml = $_.rows * $_.cols; _Mk < _Ml; _Mk++) { //#23547 - $k[$j++] = -1; //#23547 - } //#23547 - $_.pixs = $a(); //#23547 - var _NH = $a([function() { - for (var _Mo = 0, _Mp = $_.cols; _Mo < _Mp; _Mo++) { //#23551 - $k[$j++] = 0; //#23551 - } //#23551 + var _Mi = $k[--$j]; //#23839 + var _Mj = $k[--$j]; //#23839 + $k[$j++] = $f(_Mj + (_Mi * $_.cols)); //#23839 + }; //#23839 + $k[$j++] = Infinity; //#23840 + for (var _Mm = 0, _Mn = $_.rows * $_.cols; _Mm < _Mn; _Mm++) { //#23840 + $k[$j++] = -1; //#23840 + } //#23840 + $_.pixs = $a(); //#23840 + var _NJ = $a([function() { + for (var _Mq = 0, _Mr = $_.cols; _Mq < _Mr; _Mq++) { //#23844 + $k[$j++] = 0; //#23844 + } //#23844 }, function() { - for (var _Mr = 0, _Ms = $_.cols; _Mr < _Ms; _Mr++) { //#23552 - $k[$j++] = 1; //#23552 - } //#23552 + for (var _Mt = 0, _Mu = $_.cols; _Mt < _Mu; _Mt++) { //#23845 + $k[$j++] = 1; //#23845 + } //#23845 }, function() { - $k[$j++] = 0; //#23553 - for (var _Mu = 0, _Mv = $f($_.cols - 2); _Mu < _Mv; _Mu++) { //#23553 - $k[$j++] = 1; //#23553 - } //#23553 - $k[$j++] = 0; //#23553 + $k[$j++] = 0; //#23846 + for (var _Mw = 0, _Mx = $f($_.cols - 2); _Mw < _Mx; _Mw++) { //#23846 + $k[$j++] = 1; //#23846 + } //#23846 + $k[$j++] = 0; //#23846 }, function() { - $k[$j++] = 0; //#23554 - $k[$j++] = 1; //#23554 - for (var _Mx = 0, _My = $f($_.cols - 4); _Mx < _My; _Mx++) { //#23554 - $k[$j++] = 0; //#23554 - } //#23554 - $k[$j++] = 1; //#23554 - $k[$j++] = 0; //#23554 + $k[$j++] = 0; //#23847 + $k[$j++] = 1; //#23847 + for (var _Mz = 0, _N0 = $f($_.cols - 4); _Mz < _N0; _Mz++) { //#23847 + $k[$j++] = 0; //#23847 + } //#23847 + $k[$j++] = 1; //#23847 + $k[$j++] = 0; //#23847 }, function() { - for (var _N0 = 0, _N1 = ~~($f($_.cols - 1) / 2); _N0 < _N1; _N0++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 - $k[$j++] = 1; //#23555 - for (var _N3 = 0, _N4 = ~~($f($_.cols - 1) / 2); _N3 < _N4; _N3++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 + for (var _N2 = 0, _N3 = ~~($f($_.cols - 1) / 2); _N2 < _N3; _N2++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 + $k[$j++] = 1; //#23848 + for (var _N5 = 0, _N6 = ~~($f($_.cols - 1) / 2); _N5 < _N6; _N5++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 }, function() { - for (var _N6 = 0, _N7 = ~~($f($_.cols - 1) / 2); _N6 < _N7; _N6++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 - $k[$j++] = 0; //#23556 - for (var _N9 = 0, _NA = ~~($f($_.cols - 1) / 2); _N9 < _NA; _N9++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 + for (var _N8 = 0, _N9 = ~~($f($_.cols - 1) / 2); _N8 < _N9; _N8++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 + $k[$j++] = 0; //#23849 + for (var _NB = 0, _NC = ~~($f($_.cols - 1) / 2); _NB < _NC; _NB++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 }, function() { - $k[$j++] = 1; //#23557 - for (var _NC = 0, _ND = $f($_.cols - 2); _NC < _ND; _NC++) { //#23557 - $k[$j++] = 0; //#23557 - } //#23557 - $k[$j++] = 1; //#23557 + $k[$j++] = 1; //#23850 + for (var _NE = 0, _NF = $f($_.cols - 2); _NE < _NF; _NE++) { //#23850 + $k[$j++] = 0; //#23850 + } //#23850 + $k[$j++] = 1; //#23850 }, function() { - $k[$j++] = 1; //#23558 - $k[$j++] = 0; //#23558 - for (var _NF = 0, _NG = $f($_.cols - 4); _NF < _NG; _NF++) { //#23558 - $k[$j++] = 1; //#23558 - } //#23558 - $k[$j++] = 0; //#23558 - $k[$j++] = 1; //#23558 - }]); //#23558 - $_.artifact = _NH; //#23559 - if (!bwipp_codeone.__23573__) { //#23573 - $_ = Object.create($_); //#23573 - var _NI = new Map([ + $k[$j++] = 1; //#23851 + $k[$j++] = 0; //#23851 + for (var _NH = 0, _NI = $f($_.cols - 4); _NH < _NI; _NH++) { //#23851 + $k[$j++] = 1; //#23851 + } //#23851 + $k[$j++] = 0; //#23851 + $k[$j++] = 1; //#23851 + }]); //#23851 + $_.artifact = _NJ; //#23852 + if (!bwipp_codeone.__23866__) { //#23866 + $_ = Object.create($_); //#23866 + var _NK = new Map([ ["A", "121343"], ["B", "12134343"], ["C", "12121343"], @@ -29658,57 +30099,57 @@ function bwipp_codeone() { ["H", "121212134343"], ["S", "56661278"], ["T", "5666666666127878"] - ]); //#23571 - $_.cpatmap = _NI; //#23572 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23572 - bwipp_codeone.__23573__ = 1; //#23572 - $_ = Object.getPrototypeOf($_); //#23572 - } //#23572 - $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23574 - $k[$j++] = $_.pixs; //#23575 - $k[$j++] = 0; //#23575 - $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23575 - $_.mmv(); //#23575 - $k[$j++] = Infinity; //#23576 - $forall($_.cpat, function() { //#23576 + ]); //#23864 + $_.cpatmap = _NK; //#23865 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23865 + bwipp_codeone.__23866__ = 1; //#23865 + $_ = Object.getPrototypeOf($_); //#23865 + } //#23865 + $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23867 + $k[$j++] = $_.pixs; //#23868 + $k[$j++] = 0; //#23868 + $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23868 + $_.mmv(); //#23868 + $k[$j++] = Infinity; //#23869 + $forall($_.cpat, function() { //#23869 if ($get($_.artifact, $f($k[--$j] - 49))() === true) { return true; - } //#23576 - }); //#23576 - var _NV = $a(); //#23576 - var _NW = $k[--$j]; //#23576 - $puti($k[--$j], _NW, _NV); //#23576 - for (var _Na = 0, _NZ = $f($_.risl - 1); _Na <= _NZ; _Na += 1) { //#23591 - $_.i = _Na; //#23580 - for (var _Nf = $_.riso, _Ng = $_.risi, _Ne = $f($_.cols - 1); _Ng < 0 ? _Nf >= _Ne : _Nf <= _Ne; _Nf += _Ng) { //#23590 - $_.j = _Nf; //#23582 - var _Ni = (($_.i % 12) == 0) ? 1 : 0; //#23583 - var _Nj = $a([1, _Ni]); //#23583 - $k[$j++] = _Nj; //#23584 - $k[$j++] = _Nj; //#23584 - $k[$j++] = $_.pixs; //#23584 - $k[$j++] = $_.j; //#23584 - $k[$j++] = $_.i; //#23584 - $_.mmv(); //#23584 - var _Nn = $k[--$j]; //#23585 - var _No = $k[--$j]; //#23585 - $puti(_No, _Nn, $k[--$j]); //#23585 - if ($_.i != $f($_.risl - 1)) { //#23589 - $k[$j++] = $_.pixs; //#23587 - $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23587 - $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23587 - $_.mmv(); //#23587 - var _Nx = $k[--$j]; //#23588 - var _Ny = $k[--$j]; //#23588 - $puti(_Ny, _Nx, $k[--$j]); //#23588 - } else { //#23589 - $j--; //#23589 - } //#23589 - } //#23589 - } //#23589 - if (!bwipp_codeone.__23611__) { //#23611 - $_ = Object.create($_); //#23611 - var _Od = new Map([ + } //#23869 + }); //#23869 + var _NX = $a(); //#23869 + var _NY = $k[--$j]; //#23869 + $puti($k[--$j], _NY, _NX); //#23869 + for (var _Nc = 0, _Nb = $f($_.risl - 1); _Nc <= _Nb; _Nc += 1) { //#23884 + $_.i = _Nc; //#23873 + for (var _Nh = $_.riso, _Ni = $_.risi, _Ng = $f($_.cols - 1); _Ni < 0 ? _Nh >= _Ng : _Nh <= _Ng; _Nh += _Ni) { //#23883 + $_.j = _Nh; //#23875 + var _Nk = (($_.i % 12) == 0) ? 1 : 0; //#23876 + var _Nl = $a([1, _Nk]); //#23876 + $k[$j++] = _Nl; //#23877 + $k[$j++] = _Nl; //#23877 + $k[$j++] = $_.pixs; //#23877 + $k[$j++] = $_.j; //#23877 + $k[$j++] = $_.i; //#23877 + $_.mmv(); //#23877 + var _Np = $k[--$j]; //#23878 + var _Nq = $k[--$j]; //#23878 + $puti(_Nq, _Np, $k[--$j]); //#23878 + if ($_.i != $f($_.risl - 1)) { //#23882 + $k[$j++] = $_.pixs; //#23880 + $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23880 + $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23880 + $_.mmv(); //#23880 + var _Nz = $k[--$j]; //#23881 + var _O0 = $k[--$j]; //#23881 + $puti(_O0, _Nz, $k[--$j]); //#23881 + } else { //#23882 + $j--; //#23882 + } //#23882 + } //#23882 + } //#23882 + if (!bwipp_codeone.__23904__) { //#23904 + $_ = Object.create($_); //#23904 + var _Of = new Map([ ["A", $a([$a([12, 5])])], ["B", $a([$a([16, 7])])], ["C", $a([$a([26, 12])])], @@ -29723,936 +30164,952 @@ function bwipp_codeone() { ["T-16", $a([$a([8, 10])])], ["T-32", $a([$a([16, 10]), $a([16, 12])])], ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] - ]); //#23609 - $_.blackdotmap = _Od; //#23610 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23610 - bwipp_codeone.__23611__ = 1; //#23610 - $_ = Object.getPrototypeOf($_); //#23610 - } //#23610 - $forall($get($_.blackdotmap, $_.vers), function() { //#23612 - var _Oj = $k[--$j]; //#23612 - $k[$j++] = $_.pixs; //#23612 - $aload(_Oj); //#23612 - $_.mmv(); //#23612 - var _Ok = $k[--$j]; //#23612 - $put($k[--$j], _Ok, 1); //#23612 - }); //#23612 - $_.j = 0; //#23615 - for (var _Oo = 0, _On = $_.pixs.length - 1; _Oo <= _On; _Oo += 1) { //#23622 - $_.i = _Oo; //#23617 - if ($get($_.pixs, $_.i) == -1) { //#23621 - $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23619 - $_.j = $_.j + 1; //#23620 - } //#23620 - } //#23620 - var _P4 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows / 72) * 2], - ["width", ($_.cols / 72) * 2], - ["opt", $_.options] - ]); //#23632 - $k[$j++] = _P4; //#23635 - if (!$_.dontdraw) { //#23635 - bwipp_renmatrix(); //#23635 - } //#23635 - $_ = Object.getPrototypeOf($_); //#23637 - $_ = Object.getPrototypeOf($_); //#23639 -} - + ]); //#23902 + $_.blackdotmap = _Of; //#23903 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23903 + bwipp_codeone.__23904__ = 1; //#23903 + $_ = Object.getPrototypeOf($_); //#23903 + } //#23903 + $forall($get($_.blackdotmap, $_.vers), function() { //#23905 + var _Ol = $k[--$j]; //#23905 + $k[$j++] = $_.pixs; //#23905 + $aload(_Ol); //#23905 + $_.mmv(); //#23905 + var _Om = $k[--$j]; //#23905 + $put($k[--$j], _Om, 1); //#23905 + }); //#23905 + $_.j = 0; //#23908 + for (var _Oq = 0, _Op = $_.pixs.length - 1; _Oq <= _Op; _Oq += 1) { //#23915 + $_.i = _Oq; //#23910 + if ($get($_.pixs, $_.i) == -1) { //#23914 + $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23912 + $_.j = $_.j + 1; //#23913 + } //#23913 + } //#23913 + $k[$j++] = Infinity; //#23918 + $k[$j++] = 'ren'; //#23930 + $k[$j++] = bwipp_renmatrix; //#23930 + $k[$j++] = 'pixs'; //#23930 + $k[$j++] = $_.pixs; //#23930 + $k[$j++] = 'pixx'; //#23930 + $k[$j++] = $_.cols; //#23930 + $k[$j++] = 'pixy'; //#23930 + $k[$j++] = $_.rows; //#23930 + $k[$j++] = 'height'; //#23930 + $k[$j++] = ($_.rows / 72) * 2; //#23930 + $k[$j++] = 'width'; //#23930 + $k[$j++] = ($_.cols / 72) * 2; //#23930 + if ($_.stype || $_.ttype) { //#23930 + $k[$j++] = 'borderleft'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'borderright'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'bordertop'; //#23929 + $k[$j++] = 0; //#23929 + $k[$j++] = 'borderbottom'; //#23929 + $k[$j++] = 1; //#23929 + } //#23929 + $k[$j++] = 'opt'; //#23931 + $k[$j++] = $_.options; //#23931 + var _P8 = $d(); //#23931 + $k[$j++] = _P8; //#23934 + if (!$_.dontdraw) { //#23934 + bwipp_renmatrix(); //#23934 + } //#23934 + $_ = Object.getPrototypeOf($_); //#23936 + $_ = Object.getPrototypeOf($_); //#23938 +} //bwipp_codeone function bwipp_hanxin() { - $_ = Object.create($_); //#23670 - $_.dontdraw = false; //#23673 - $_.version = "unset"; //#23674 - $_.eclevel = "L2"; //#23675 - $_.parse = false; //#23676 - $_.parsefnc = false; //#23677 - $_.mask = -1; //#23678 - $k[$j++] = $_; //#23680 - bwipp_processoptions(); //#23680 - $_.options = $k[--$j]; //#23680 - $_.barcode = $k[--$j]; //#23681 - if ($eq($_.barcode, "")) { //#23685 - $k[$j++] = 'bwipp.hanxinEmptyData#23684'; //#23684 - $k[$j++] = "The data must not be empty"; //#23684 - bwipp_raiseerror(); //#23684 - } //#23684 - if ($ne($_.version, "unset")) { //#23697 - var _5 = $_.version.length; //#23688 - var _6 = (_5 >= 1) && (_5 <= 2); //#23688 - $k[$j++] = _6; //#23693 - if (_6) { //#23693 - $j--; //#23689 - var _7 = $_.version; //#23690 - $k[$j++] = true; //#23690 - for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23690 - var _A = $get(_7, _8); //#23690 - if ((_A < 48) || (_A > 57)) { //#23690 - $j--; //#23690 - $k[$j++] = false; //#23690 - } //#23690 - } //#23690 - var _B = $k[--$j]; //#23690 - $k[$j++] = _B; //#23692 - if (_B) { //#23692 - $j--; //#23691 - var _D = $cvi($_.version); //#23691 - $k[$j++] = (_D >= 1) && (_D <= 84); //#23691 - } //#23691 - } //#23691 - if ($nt($k[--$j])) { //#23696 - $k[$j++] = 'bwipp.hanxinInvalidVersion#23695'; //#23695 - $k[$j++] = "Valid versions are 1 to 84"; //#23695 - bwipp_raiseerror(); //#23695 - } //#23695 - } //#23695 - var _G = $_.eclevel.length == 2; //#23699 - $k[$j++] = _G; //#23703 - if (_G) { //#23703 - $j--; //#23700 - $k[$j++] = $geti($_.eclevel, 0, 1); //#23702 - if ($eq("L", "L")) { //#23702 - $j--; //#23701 - var _L = $get($_.eclevel, 1) - 48; //#23701 - $k[$j++] = (_L >= 1) && (_L <= 4); //#23701 - } //#23701 - } //#23701 - if ($nt($k[--$j])) { //#23706 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23705'; //#23705 - $k[$j++] = "Valid error correction levels are L1 to L4"; //#23705 - bwipp_raiseerror(); //#23705 - } //#23705 - if ($_.mask != -1) { //#23712 - if (($_.mask < 1) || ($_.mask > 4)) { //#23711 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23710'; //#23710 - $k[$j++] = "The valid masks are 1 to 4"; //#23710 - bwipp_raiseerror(); //#23710 - } //#23710 - } //#23710 - bwipp_loadctx(bwipp_hanxin) //#23714 + $_ = Object.create($_); //#23969 + $_.dontdraw = false; //#23972 + $_.version = "unset"; //#23973 + $_.eclevel = "L2"; //#23974 + $_.parse = false; //#23975 + $_.parsefnc = false; //#23976 + $_.mask = -1; //#23977 + $k[$j++] = $_; //#23979 + bwipp_processoptions(); //#23979 + $_.options = $k[--$j]; //#23979 + $_.barcode = $k[--$j]; //#23980 + if ($eq($_.barcode, "")) { //#23984 + $k[$j++] = 'bwipp.hanxinEmptyData#23983'; //#23983 + $k[$j++] = "The data must not be empty"; //#23983 + bwipp_raiseerror(); //#23983 + } //#23983 + if ($ne($_.version, "unset")) { //#23996 + var _5 = $_.version.length; //#23987 + var _6 = (_5 >= 1) && (_5 <= 2); //#23987 + $k[$j++] = _6; //#23992 + if (_6) { //#23992 + $j--; //#23988 + var _7 = $_.version; //#23989 + $k[$j++] = true; //#23989 + for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23989 + var _A = $get(_7, _8); //#23989 + if ((_A < 48) || (_A > 57)) { //#23989 + $j--; //#23989 + $k[$j++] = false; //#23989 + } //#23989 + } //#23989 + var _B = $k[--$j]; //#23989 + $k[$j++] = _B; //#23991 + if (_B) { //#23991 + $j--; //#23990 + var _D = $cvi($_.version); //#23990 + $k[$j++] = (_D >= 1) && (_D <= 84); //#23990 + } //#23990 + } //#23990 + if ($nt($k[--$j])) { //#23995 + $k[$j++] = 'bwipp.hanxinInvalidVersion#23994'; //#23994 + $k[$j++] = "Valid versions are 1 to 84"; //#23994 + bwipp_raiseerror(); //#23994 + } //#23994 + } //#23994 + var _G = $_.eclevel.length == 2; //#23998 + $k[$j++] = _G; //#24002 + if (_G) { //#24002 + $j--; //#23999 + $k[$j++] = $geti($_.eclevel, 0, 1); //#24001 + if ($eq("L", "L")) { //#24001 + $j--; //#24000 + var _L = $get($_.eclevel, 1) - 48; //#24000 + $k[$j++] = (_L >= 1) && (_L <= 4); //#24000 + } //#24000 + } //#24000 + if ($nt($k[--$j])) { //#24005 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24004'; //#24004 + $k[$j++] = "Valid error correction levels are L1 to L4"; //#24004 + bwipp_raiseerror(); //#24004 + } //#24004 + if ($_.mask != -1) { //#24011 + if (($_.mask < 1) || ($_.mask > 4)) { //#24010 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24009'; //#24009 + $k[$j++] = "The valid masks are 1 to 4"; //#24009 + bwipp_raiseerror(); //#24009 + } //#24009 + } //#24009 + bwipp_loadctx(bwipp_hanxin) //#24013 var _S = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc] - ]); //#23719 - $_.fncvals = _S; //#23721 - $k[$j++] = 'msg'; //#23722 - $k[$j++] = $_.barcode; //#23722 - $k[$j++] = $_.fncvals; //#23722 - bwipp_parseinput(); //#23722 - var _V = $k[--$j]; //#23722 - $_[$k[--$j]] = _V; //#23722 - $_.msglen = $_.msg.length; //#23723 + ]); //#24018 + $_.fncvals = _S; //#24020 + $k[$j++] = 'msg'; //#24021 + $k[$j++] = $_.barcode; //#24021 + $k[$j++] = $_.fncvals; //#24021 + bwipp_parseinput(); //#24021 + var _V = $k[--$j]; //#24021 + $_[$k[--$j]] = _V; //#24021 + $_.msglen = $_.msg.length; //#24022 $_.tobin = function() { - var _Z = $s($k[--$j]); //#23726 - $k[$j++] = _Z; //#23726 - for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#23726 - var _c = $k[--$j]; //#23726 - $put(_c, _b, 48); //#23726 - $k[$j++] = _c; //#23726 - } //#23726 - var _d = $k[--$j]; //#23727 - var _g = $cvrs($s(_d.length), $k[--$j], 2); //#23727 - $puti(_d, _d.length - _g.length, _g); //#23728 - $k[$j++] = _d; //#23728 - }; //#23728 - $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#23732 - $puti($_.bits, 0, "0011"); //#23733 - $k[$j++] = $_.bits; //#23734 - $k[$j++] = 4; //#23734 - $k[$j++] = $_.msglen; //#23734 - $k[$j++] = 13; //#23734 - $_.tobin(); //#23734 - var _m = $k[--$j]; //#23734 - var _n = $k[--$j]; //#23734 - $puti($k[--$j], _n, _m); //#23734 - for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#23738 - $_.i = _r; //#23736 - $k[$j++] = $_.bits; //#23737 - $k[$j++] = 17 + ($_.i * 8); //#23737 - $k[$j++] = $get($_.msg, $_.i); //#23737 - $k[$j++] = 8; //#23737 - $_.tobin(); //#23737 - var _x = $k[--$j]; //#23737 - var _y = $k[--$j]; //#23737 - $puti($k[--$j], _y, _x); //#23737 - } //#23737 - if (!bwipp_hanxin.__24081__) { //#24081 - $_ = Object.create($_); //#24081 - var _24 = $a([0, -1, -1]); //#23764 - $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24080 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24080 - bwipp_hanxin.__24081__ = 1; //#24080 - $_ = Object.getPrototypeOf($_); //#24080 - } //#24080 - $_.eclval = $get($_.eclevel, 1) - 49; //#24083 - var _Ig = $_.metrics; //#24084 - for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24102 - $_.m = $get(_Ig, _Ih); //#24085 - $_.vers = $get($_.m, 0); //#24086 - $_.size = $get($_.m, 1); //#24087 - $_.alnk = $get($_.m, 2); //#24088 - $_.alnn = $get($_.m, 3); //#24089 - $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24090 - $_.nmod = $get($_.m, 4); //#24091 - $_.ncws = ~~($_.nmod / 8); //#24092 - $_.rbit = $_.nmod % 8; //#24093 - $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24094 - var _J2 = $_.ecbs; //#24095 - $k[$j++] = 'ecws'; //#24095 - $k[$j++] = 0; //#24095 - for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24095 - var _J5 = $get(_J2, _J3); //#24095 - var _J8 = $k[--$j]; //#24095 - $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24095 - } //#24095 - var _J9 = $k[--$j]; //#24095 - $_[$k[--$j]] = _J9; //#24095 - $_.dcws = $f($_.ncws - $_.ecws); //#24096 - $_.dmod = $_.dcws * 8; //#24097 - $_.okay = true; //#24098 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24099 - $_.okay = false; //#24099 - } //#24099 - if ($_.bits.length > $_.dmod) { //#24100 - $_.okay = false; //#24100 - } //#24100 - if ($_.okay) { //#24101 - break; //#24101 - } //#24101 - } //#24101 - if (!$_.okay) { //#24106 - $k[$j++] = 'bwipp.hanxinNoValidSymbol#24105'; //#24105 - $k[$j++] = "Maximum length exceeded or invalid content"; //#24105 - bwipp_raiseerror(); //#24105 - } //#24105 - $_.version = $_.vers; //#24108 - $_.msgbits = $_.bits; //#24109 - $_.e1nb = $get($get($_.ecbs, 0), 0); //#24110 - $_.e2nb = $get($get($_.ecbs, 1), 0); //#24110 - $_.e3nb = $get($get($_.ecbs, 2), 0); //#24110 - $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24111 - $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24111 - $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24111 - $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24112 - $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24112 - $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24112 - $_.pad = $s($_.dmod); //#24115 - for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24116 - $put($_.pad, _Js, 48); //#24116 - } //#24116 - $puti($_.pad, 0, $_.msgbits); //#24117 - $_.cws = $a($_.dcws); //#24120 - for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24130 - $_.c = _K0; //#24122 - $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24123 - $_.cw = 0; //#24124 - for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24128 - $_.i = _K4; //#24126 - $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24127 - } //#24127 - $put($_.cws, $_.c, $_.cw); //#24129 - } //#24129 + var _Z = $s($k[--$j]); //#24025 + $k[$j++] = _Z; //#24025 + for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#24025 + var _c = $k[--$j]; //#24025 + $put(_c, _b, 48); //#24025 + $k[$j++] = _c; //#24025 + } //#24025 + var _d = $k[--$j]; //#24026 + var _g = $cvrs($s(_d.length), $k[--$j], 2); //#24026 + $puti(_d, _d.length - _g.length, _g); //#24027 + $k[$j++] = _d; //#24027 + }; //#24027 + $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#24031 + $puti($_.bits, 0, "0011"); //#24032 + $k[$j++] = $_.bits; //#24033 + $k[$j++] = 4; //#24033 + $k[$j++] = $_.msglen; //#24033 + $k[$j++] = 13; //#24033 + $_.tobin(); //#24033 + var _m = $k[--$j]; //#24033 + var _n = $k[--$j]; //#24033 + $puti($k[--$j], _n, _m); //#24033 + for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#24037 + $_.i = _r; //#24035 + $k[$j++] = $_.bits; //#24036 + $k[$j++] = 17 + ($_.i * 8); //#24036 + $k[$j++] = $get($_.msg, $_.i); //#24036 + $k[$j++] = 8; //#24036 + $_.tobin(); //#24036 + var _x = $k[--$j]; //#24036 + var _y = $k[--$j]; //#24036 + $puti($k[--$j], _y, _x); //#24036 + } //#24036 + if (!bwipp_hanxin.__24380__) { //#24380 + $_ = Object.create($_); //#24380 + var _24 = $a([0, -1, -1]); //#24063 + $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24379 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24379 + bwipp_hanxin.__24380__ = 1; //#24379 + $_ = Object.getPrototypeOf($_); //#24379 + } //#24379 + $_.eclval = $get($_.eclevel, 1) - 49; //#24382 + var _Ig = $_.metrics; //#24383 + for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24401 + $_.m = $get(_Ig, _Ih); //#24384 + $_.vers = $get($_.m, 0); //#24385 + $_.size = $get($_.m, 1); //#24386 + $_.alnk = $get($_.m, 2); //#24387 + $_.alnn = $get($_.m, 3); //#24388 + $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24389 + $_.nmod = $get($_.m, 4); //#24390 + $_.ncws = ~~($_.nmod / 8); //#24391 + $_.rbit = $_.nmod % 8; //#24392 + $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24393 + var _J2 = $_.ecbs; //#24394 + $k[$j++] = 'ecws'; //#24394 + $k[$j++] = 0; //#24394 + for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24394 + var _J5 = $get(_J2, _J3); //#24394 + var _J8 = $k[--$j]; //#24394 + $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24394 + } //#24394 + var _J9 = $k[--$j]; //#24394 + $_[$k[--$j]] = _J9; //#24394 + $_.dcws = $f($_.ncws - $_.ecws); //#24395 + $_.dmod = $_.dcws * 8; //#24396 + $_.okay = true; //#24397 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24398 + $_.okay = false; //#24398 + } //#24398 + if ($_.bits.length > $_.dmod) { //#24399 + $_.okay = false; //#24399 + } //#24399 + if ($_.okay) { //#24400 + break; //#24400 + } //#24400 + } //#24400 + if (!$_.okay) { //#24405 + $k[$j++] = 'bwipp.hanxinNoValidSymbol#24404'; //#24404 + $k[$j++] = "Maximum length exceeded or invalid content"; //#24404 + bwipp_raiseerror(); //#24404 + } //#24404 + $_.version = $_.vers; //#24407 + $_.msgbits = $_.bits; //#24408 + $_.e1nb = $get($get($_.ecbs, 0), 0); //#24409 + $_.e2nb = $get($get($_.ecbs, 1), 0); //#24409 + $_.e3nb = $get($get($_.ecbs, 2), 0); //#24409 + $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24410 + $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24410 + $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24410 + $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24411 + $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24411 + $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24411 + $_.pad = $s($_.dmod); //#24414 + for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24415 + $put($_.pad, _Js, 48); //#24415 + } //#24415 + $puti($_.pad, 0, $_.msgbits); //#24416 + $_.cws = $a($_.dcws); //#24419 + for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24429 + $_.c = _K0; //#24421 + $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24422 + $_.cw = 0; //#24423 + for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24427 + $_.i = _K4; //#24425 + $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24426 + } //#24426 + $put($_.cws, $_.c, $_.cw); //#24428 + } //#24428 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#24134 - $_.rsgf = $k[--$j]; //#24135 - $_.rsnc = $k[--$j]; //#24136 - $_.rscws = $k[--$j]; //#24137 - $k[$j++] = Infinity; //#24140 - $k[$j++] = 1; //#24140 - for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24140 - var _KK = $k[--$j]; //#24140 - var _KL = _KK * 2; //#24140 - $k[$j++] = _KK; //#24140 - $k[$j++] = _KL; //#24140 - if (_KL >= $_.rsgf) { //#24140 - var _KO = $k[--$j]; //#24140 - $k[$j++] = $xo(_KO, $_.rspm); //#24140 - } //#24140 - } //#24140 - $_.rsalog = $a(); //#24140 - $_.rslog = $a($_.rsgf); //#24141 - for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24142 - $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24142 - } //#24142 + $_.rspm = $k[--$j]; //#24433 + $_.rsgf = $k[--$j]; //#24434 + $_.rsnc = $k[--$j]; //#24435 + $_.rscws = $k[--$j]; //#24436 + $k[$j++] = Infinity; //#24439 + $k[$j++] = 1; //#24439 + for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24439 + var _KK = $k[--$j]; //#24439 + var _KL = _KK * 2; //#24439 + $k[$j++] = _KK; //#24439 + $k[$j++] = _KL; //#24439 + if (_KL >= $_.rsgf) { //#24439 + var _KO = $k[--$j]; //#24439 + $k[$j++] = $xo(_KO, $_.rspm); //#24439 + } //#24439 + } //#24439 + $_.rsalog = $a(); //#24439 + $_.rslog = $a($_.rsgf); //#24440 + for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24441 + $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24441 + } //#24441 $_.rsprod = function() { - var _KY = $k[--$j]; //#24146 - var _KZ = $k[--$j]; //#24146 - $k[$j++] = _KZ; //#24150 - $k[$j++] = _KY; //#24150 - if ((_KY != 0) && (_KZ != 0)) { //#24149 - var _Kc = $get($_.rslog, $k[--$j]); //#24147 - var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24147 - $k[$j++] = _Ki; //#24147 - } else { //#24149 - $j -= 2; //#24149 - $k[$j++] = 0; //#24149 - } //#24149 - }; //#24149 - $k[$j++] = Infinity; //#24154 - $k[$j++] = 1; //#24154 - for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24154 - $k[$j++] = 0; //#24154 - } //#24154 - $_.coeffs = $a(); //#24154 - for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24163 - $_.i = _Kp; //#24156 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24157 - for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24161 - $_.j = _Kw; //#24159 - $k[$j++] = $_.coeffs; //#24160 - $k[$j++] = $_.j; //#24160 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#24160 - $k[$j++] = $get($_.coeffs, $_.j); //#24160 - $k[$j++] = $get($_.rsalog, $_.i); //#24160 - $_.rsprod(); //#24160 - var _L8 = $k[--$j]; //#24160 - var _L9 = $k[--$j]; //#24160 - var _LA = $k[--$j]; //#24160 - $put($k[--$j], _LA, $xo(_L9, _L8)); //#24160 - } //#24160 - $k[$j++] = $_.coeffs; //#24162 - $k[$j++] = 0; //#24162 - $k[$j++] = $get($_.coeffs, 0); //#24162 - $k[$j++] = $get($_.rsalog, $_.i); //#24162 - $_.rsprod(); //#24162 - var _LI = $k[--$j]; //#24162 - var _LJ = $k[--$j]; //#24162 - $put($k[--$j], _LJ, _LI); //#24162 - } //#24162 - $_.nd = $_.rscws.length; //#24166 - $k[$j++] = Infinity; //#24167 - $forall($_.rscws); //#24167 - for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24167 - $k[$j++] = 0; //#24167 - } //#24167 - $k[$j++] = 0; //#24167 - $_.rscws = $a(); //#24167 - for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24174 - $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24169 - for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24173 - $_.j = _Lb; //#24171 - $k[$j++] = $_.rscws; //#24172 - $k[$j++] = $_.nd + $_.j; //#24172 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24172 - $k[$j++] = $_.k; //#24172 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24172 - $_.rsprod(); //#24172 - var _Lo = $k[--$j]; //#24172 - var _Lp = $k[--$j]; //#24172 - var _Lq = $k[--$j]; //#24172 - $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24172 - } //#24172 - } //#24172 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24177 - }; //#24177 - $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24182 - $_.ecwsb = $a($_.dcwsb.length); //#24183 - $_.in = 0; //#24184 - $_.out = 0; //#24184 - for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24190 - $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24186 - $k[$j++] = $_.e1ecws; //#24186 - $k[$j++] = 256; //#24186 - $k[$j++] = 355; //#24186 - $_.rscodes(); //#24186 - var _M9 = $k[--$j]; //#24187 - $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24187 - $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24188 - $_.in = $f($_.in + $_.e1dcws); //#24189 - $_.out = $_.out + 1; //#24189 - } //#24189 - for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24196 - $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24192 - $k[$j++] = $_.e2ecws; //#24192 - $k[$j++] = 256; //#24192 - $k[$j++] = 355; //#24192 - $_.rscodes(); //#24192 - var _MU = $k[--$j]; //#24193 - $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24193 - $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24194 - $_.in = $f($_.in + $_.e2dcws); //#24195 - $_.out = $_.out + 1; //#24195 - } //#24195 - for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24202 - $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24198 - $k[$j++] = $_.e3ecws; //#24198 - $k[$j++] = 256; //#24198 - $k[$j++] = 355; //#24198 - $_.rscodes(); //#24198 - var _Mp = $k[--$j]; //#24199 - $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24199 - $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24200 - $_.in = $f($_.in + $_.e3dcws); //#24201 - $_.out = $_.out + 1; //#24201 - } //#24201 - $_.cws = $a($_.ncws); //#24205 - $_.cw = 0; //#24206 - for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24211 - $_.i = _N6; //#24208 - var _N9 = $get($_.dcwsb, $_.i); //#24209 - $puti($_.cws, $_.cw, _N9); //#24209 - $_.cw = _N9.length + $_.cw; //#24209 - var _NF = $get($_.ecwsb, $_.i); //#24210 - $puti($_.cws, $_.cw, _NF); //#24210 - $_.cw = _NF.length + $_.cw; //#24210 - } //#24210 - $k[$j++] = Infinity; //#24216 - var _NJ = $_.ncws; //#24215 - var _NK = 12; //#24215 - var _NL = _NJ - 1; //#24215 - if ((_NJ - 1) > 12) { //#24215 - var _ = _NK; //#24215 - _NK = _NL; //#24215 - _NL = _; //#24215 - } //#24215 - for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24217 - for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24216 - $k[$j++] = _NQ; //#24216 - if (_NQ < $_.ncws) { //#24216 - var _NU = $get($_.cws, $k[--$j]); //#24216 - $k[$j++] = _NU; //#24216 - } else { //#24216 - $j--; //#24216 - } //#24216 - } //#24216 - } //#24216 - $_.cws = $a(); //#24216 - if ($_.rbit > 0) { //#24226 - $_.pad = $a($_.cws.length + 1); //#24222 - $puti($_.pad, 0, $_.cws); //#24223 - $put($_.pad, $_.pad.length - 1, 0); //#24224 - $_.cws = $_.pad; //#24225 - } //#24225 - $k[$j++] = Infinity; //#24229 - for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24229 - $k[$j++] = -1; //#24229 - } //#24229 - $_.pixs = $a(); //#24229 + var _KY = $k[--$j]; //#24445 + var _KZ = $k[--$j]; //#24445 + $k[$j++] = _KZ; //#24449 + $k[$j++] = _KY; //#24449 + if ((_KY != 0) && (_KZ != 0)) { //#24448 + var _Kc = $get($_.rslog, $k[--$j]); //#24446 + var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24446 + $k[$j++] = _Ki; //#24446 + } else { //#24448 + $j -= 2; //#24448 + $k[$j++] = 0; //#24448 + } //#24448 + }; //#24448 + $k[$j++] = Infinity; //#24453 + $k[$j++] = 1; //#24453 + for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24453 + $k[$j++] = 0; //#24453 + } //#24453 + $_.coeffs = $a(); //#24453 + for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24462 + $_.i = _Kp; //#24455 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24456 + for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24460 + $_.j = _Kw; //#24458 + $k[$j++] = $_.coeffs; //#24459 + $k[$j++] = $_.j; //#24459 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#24459 + $k[$j++] = $get($_.coeffs, $_.j); //#24459 + $k[$j++] = $get($_.rsalog, $_.i); //#24459 + $_.rsprod(); //#24459 + var _L8 = $k[--$j]; //#24459 + var _L9 = $k[--$j]; //#24459 + var _LA = $k[--$j]; //#24459 + $put($k[--$j], _LA, $xo(_L9, _L8)); //#24459 + } //#24459 + $k[$j++] = $_.coeffs; //#24461 + $k[$j++] = 0; //#24461 + $k[$j++] = $get($_.coeffs, 0); //#24461 + $k[$j++] = $get($_.rsalog, $_.i); //#24461 + $_.rsprod(); //#24461 + var _LI = $k[--$j]; //#24461 + var _LJ = $k[--$j]; //#24461 + $put($k[--$j], _LJ, _LI); //#24461 + } //#24461 + $_.nd = $_.rscws.length; //#24465 + $k[$j++] = Infinity; //#24466 + $forall($_.rscws); //#24466 + for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24466 + $k[$j++] = 0; //#24466 + } //#24466 + $k[$j++] = 0; //#24466 + $_.rscws = $a(); //#24466 + for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24473 + $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24468 + for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24472 + $_.j = _Lb; //#24470 + $k[$j++] = $_.rscws; //#24471 + $k[$j++] = $_.nd + $_.j; //#24471 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24471 + $k[$j++] = $_.k; //#24471 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24471 + $_.rsprod(); //#24471 + var _Lo = $k[--$j]; //#24471 + var _Lp = $k[--$j]; //#24471 + var _Lq = $k[--$j]; //#24471 + $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24471 + } //#24471 + } //#24471 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24476 + }; //#24476 + $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24481 + $_.ecwsb = $a($_.dcwsb.length); //#24482 + $_.in = 0; //#24483 + $_.out = 0; //#24483 + for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24489 + $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24485 + $k[$j++] = $_.e1ecws; //#24485 + $k[$j++] = 256; //#24485 + $k[$j++] = 355; //#24485 + $_.rscodes(); //#24485 + var _M9 = $k[--$j]; //#24486 + $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24486 + $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24487 + $_.in = $f($_.in + $_.e1dcws); //#24488 + $_.out = $_.out + 1; //#24488 + } //#24488 + for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24495 + $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24491 + $k[$j++] = $_.e2ecws; //#24491 + $k[$j++] = 256; //#24491 + $k[$j++] = 355; //#24491 + $_.rscodes(); //#24491 + var _MU = $k[--$j]; //#24492 + $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24492 + $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24493 + $_.in = $f($_.in + $_.e2dcws); //#24494 + $_.out = $_.out + 1; //#24494 + } //#24494 + for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24501 + $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24497 + $k[$j++] = $_.e3ecws; //#24497 + $k[$j++] = 256; //#24497 + $k[$j++] = 355; //#24497 + $_.rscodes(); //#24497 + var _Mp = $k[--$j]; //#24498 + $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24498 + $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24499 + $_.in = $f($_.in + $_.e3dcws); //#24500 + $_.out = $_.out + 1; //#24500 + } //#24500 + $_.cws = $a($_.ncws); //#24504 + $_.cw = 0; //#24505 + for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24510 + $_.i = _N6; //#24507 + var _N9 = $get($_.dcwsb, $_.i); //#24508 + $puti($_.cws, $_.cw, _N9); //#24508 + $_.cw = _N9.length + $_.cw; //#24508 + var _NF = $get($_.ecwsb, $_.i); //#24509 + $puti($_.cws, $_.cw, _NF); //#24509 + $_.cw = _NF.length + $_.cw; //#24509 + } //#24509 + $k[$j++] = Infinity; //#24513 + var _NJ = $_.ncws; //#24514 + var _NK = 12; //#24514 + var _NL = _NJ - 1; //#24514 + if ((_NJ - 1) > 12) { //#24514 + var _ = _NK; //#24514 + _NK = _NL; //#24514 + _NL = _; //#24514 + } //#24514 + for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24516 + for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24515 + $k[$j++] = _NQ; //#24515 + if (_NQ < $_.ncws) { //#24515 + var _NU = $get($_.cws, $k[--$j]); //#24515 + $k[$j++] = _NU; //#24515 + } else { //#24515 + $j--; //#24515 + } //#24515 + } //#24515 + } //#24515 + $_.cws = $a(); //#24515 + if ($_.rbit > 0) { //#24525 + $_.pad = $a($_.cws.length + 1); //#24521 + $puti($_.pad, 0, $_.cws); //#24522 + $put($_.pad, $_.pad.length - 1, 0); //#24523 + $_.cws = $_.pad; //#24524 + } //#24524 + $k[$j++] = Infinity; //#24528 + for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24528 + $k[$j++] = -1; //#24528 + } //#24528 + $_.pixs = $a(); //#24528 $_.qmv = function() { - var _Nk = $k[--$j]; //#24230 - var _Nl = $k[--$j]; //#24230 - $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24230 - }; //#24230 - if ($_.alnn != 0) { //#24289 + var _Nk = $k[--$j]; //#24529 + var _Nl = $k[--$j]; //#24529 + $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24529 + }; //#24529 + if ($_.alnn != 0) { //#24588 $_.trmv = function() { - var _No = $k[--$j]; //#24234 - var _Nq = $k[--$j]; //#24234 - $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24234 - }; //#24234 + var _No = $k[--$j]; //#24533 + var _Nq = $k[--$j]; //#24533 + $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24533 + }; //#24533 $_.aplot = function() { - var _Nr = $k[--$j]; //#24236 - var _Ns = $k[--$j]; //#24236 - var _Nt = $k[--$j]; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Nt; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nt; //#24236 - $_.trmv(); //#24236 - var _Nv = $k[--$j]; //#24236 - $put($_.pixs, _Nv, $k[--$j]); //#24236 - $_.trmv(); //#24237 - var _Ny = $k[--$j]; //#24237 - $put($_.pixs, _Ny, $k[--$j]); //#24237 - }; //#24237 - $_.i = 0; //#24239 - $_.stag = 0; //#24239 - for (;;) { //#24261 - if ($_.i >= $_.size) { //#24240 - break; //#24240 - } //#24240 - for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24254 - $_.j = _O4; //#24242 - if ($f($_.j + $_.alnr) < $_.size) { //#24248 - $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24246 - } else { //#24248 - $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24248 - } //#24248 - if ($k[--$j]) { //#24253 - $k[$j++] = $_.j; //#24251 - $k[$j++] = $_.i; //#24251 - $k[$j++] = 1; //#24251 - $_.aplot(); //#24251 - var _OL = $_.j; //#24252 - var _OM = $_.i; //#24252 - $k[$j++] = _OL + 1; //#24252 - $k[$j++] = _OM + 1; //#24252 - if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24252 - $k[$j++] = 0; //#24252 - $_.aplot(); //#24252 - } else { //#24252 - $j -= 2; //#24252 - } //#24252 - } //#24252 - } //#24252 - if ($f($_.i + $_.alnr) == $_.size) { //#24258 - $_.i = $f($f($_.i + $_.alnr) - 1); //#24256 - } else { //#24258 - $_.i = $f($_.i + $_.alnk); //#24258 - } //#24258 - $_.stag = 1 - $_.stag; //#24260 - } //#24260 - for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24288 - $_.i = _Ob; //#24263 - if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24275 - $k[$j++] = $_.pixs; //#24265 - $k[$j++] = 0; //#24265 - $k[$j++] = $_.i - 1; //#24265 - $_.trmv(); //#24265 - var _Oh = $k[--$j]; //#24265 - $put($k[--$j], _Oh, 0); //#24265 - $k[$j++] = $_.pixs; //#24266 - $k[$j++] = 0; //#24266 - $k[$j++] = $_.i + 1; //#24266 - $_.trmv(); //#24266 - var _Ol = $k[--$j]; //#24266 - $put($k[--$j], _Ol, 0); //#24266 - $k[$j++] = $_.pixs; //#24267 - $k[$j++] = 1; //#24267 - $k[$j++] = $_.i - 1; //#24267 - $_.trmv(); //#24267 - var _Op = $k[--$j]; //#24267 - $put($k[--$j], _Op, 0); //#24267 - $k[$j++] = $_.pixs; //#24268 - $k[$j++] = 1; //#24268 - $k[$j++] = $_.i; //#24268 - $_.trmv(); //#24268 - var _Ot = $k[--$j]; //#24268 - $put($k[--$j], _Ot, 0); //#24268 - $k[$j++] = $_.pixs; //#24269 - $k[$j++] = 1; //#24269 - $k[$j++] = $_.i + 1; //#24269 - $_.trmv(); //#24269 - var _Ox = $k[--$j]; //#24269 - $put($k[--$j], _Ox, 0); //#24269 - $k[$j++] = $_.pixs; //#24270 - $k[$j++] = $_.i - 1; //#24270 - $k[$j++] = 0; //#24270 - $_.trmv(); //#24270 - var _P1 = $k[--$j]; //#24270 - $put($k[--$j], _P1, 0); //#24270 - $k[$j++] = $_.pixs; //#24271 - $k[$j++] = $_.i + 1; //#24271 - $k[$j++] = 0; //#24271 - $_.trmv(); //#24271 - var _P5 = $k[--$j]; //#24271 - $put($k[--$j], _P5, 0); //#24271 - $k[$j++] = $_.pixs; //#24272 - $k[$j++] = $_.i - 1; //#24272 - $k[$j++] = 1; //#24272 - $_.trmv(); //#24272 - var _P9 = $k[--$j]; //#24272 - $put($k[--$j], _P9, 0); //#24272 - $k[$j++] = $_.pixs; //#24273 - $k[$j++] = $_.i; //#24273 - $k[$j++] = 1; //#24273 - $_.trmv(); //#24273 - var _PD = $k[--$j]; //#24273 - $put($k[--$j], _PD, 0); //#24273 - $k[$j++] = $_.pixs; //#24274 - $k[$j++] = $_.i + 1; //#24274 - $k[$j++] = 1; //#24274 - $_.trmv(); //#24274 - var _PH = $k[--$j]; //#24274 - $put($k[--$j], _PH, 0); //#24274 - } //#24274 - $k[$j++] = $_.pixs; //#24276 - $k[$j++] = $f($_.size - 1); //#24276 - $k[$j++] = $_.i - 1; //#24276 - $_.trmv(); //#24276 - var _PM = $k[--$j]; //#24276 - if ($get($k[--$j], _PM) != 1) { //#24287 - $k[$j++] = $_.pixs; //#24277 - $k[$j++] = $f($_.size - 1); //#24277 - $k[$j++] = $_.i - 1; //#24277 - $_.trmv(); //#24277 - var _PS = $k[--$j]; //#24277 - $put($k[--$j], _PS, 0); //#24277 - $k[$j++] = $_.pixs; //#24278 - $k[$j++] = $f($_.size - 2); //#24278 - $k[$j++] = $_.i - 1; //#24278 - $_.trmv(); //#24278 - var _PX = $k[--$j]; //#24278 - $put($k[--$j], _PX, 0); //#24278 - $k[$j++] = $_.pixs; //#24279 - $k[$j++] = $f($_.size - 2); //#24279 - $k[$j++] = $_.i; //#24279 - $_.trmv(); //#24279 - var _Pc = $k[--$j]; //#24279 - $put($k[--$j], _Pc, 0); //#24279 - $k[$j++] = $_.pixs; //#24280 - $k[$j++] = $f($_.size - 2); //#24280 - $k[$j++] = $_.i + 1; //#24280 - $_.trmv(); //#24280 - var _Ph = $k[--$j]; //#24280 - $put($k[--$j], _Ph, 0); //#24280 - $k[$j++] = $_.pixs; //#24281 - $k[$j++] = $f($_.size - 1); //#24281 - $k[$j++] = $_.i + 1; //#24281 - $_.trmv(); //#24281 - var _Pm = $k[--$j]; //#24281 - $put($k[--$j], _Pm, 0); //#24281 - $k[$j++] = $_.pixs; //#24282 - $k[$j++] = $_.i - 1; //#24282 - $k[$j++] = $f($_.size - 1); //#24282 - $_.trmv(); //#24282 - var _Pr = $k[--$j]; //#24282 - $put($k[--$j], _Pr, 0); //#24282 - $k[$j++] = $_.pixs; //#24283 - $k[$j++] = $_.i - 1; //#24283 - $k[$j++] = $f($_.size - 2); //#24283 - $_.trmv(); //#24283 - var _Pw = $k[--$j]; //#24283 - $put($k[--$j], _Pw, 0); //#24283 - $k[$j++] = $_.pixs; //#24284 - $k[$j++] = $_.i; //#24284 - $k[$j++] = $f($_.size - 2); //#24284 - $_.trmv(); //#24284 - var _Q1 = $k[--$j]; //#24284 - $put($k[--$j], _Q1, 0); //#24284 - $k[$j++] = $_.pixs; //#24285 - $k[$j++] = $_.i + 1; //#24285 - $k[$j++] = $f($_.size - 2); //#24285 - $_.trmv(); //#24285 - var _Q6 = $k[--$j]; //#24285 - $put($k[--$j], _Q6, 0); //#24285 - $k[$j++] = $_.pixs; //#24286 - $k[$j++] = $_.i + 1; //#24286 - $k[$j++] = $f($_.size - 1); //#24286 - $_.trmv(); //#24286 - var _QB = $k[--$j]; //#24286 - $put($k[--$j], _QB, 0); //#24286 - } //#24286 - } //#24286 - } //#24286 - if (!bwipp_hanxin.__24313__) { //#24313 - $_ = Object.create($_); //#24313 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24302 - $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24312 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24312 - bwipp_hanxin.__24313__ = 1; //#24312 - $_ = Object.getPrototypeOf($_); //#24312 - } //#24312 - for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24325 - $_.y = _QY; //#24315 - for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24324 - $_.x = _Qc; //#24317 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24318 - $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24319 - $k[$j++] = $_.pixs; //#24320 - $k[$j++] = $_.x; //#24320 - $k[$j++] = $_.y; //#24320 - $_.qmv(); //#24320 - var _Qr = $k[--$j]; //#24320 - $put($k[--$j], _Qr, $_.fpb); //#24320 - $k[$j++] = $_.pixs; //#24321 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24321 - $k[$j++] = $_.y; //#24321 - $_.qmv(); //#24321 - var _Qy = $k[--$j]; //#24321 - $put($k[--$j], _Qy, $_.fpb); //#24321 - $k[$j++] = $_.pixs; //#24322 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24322 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24322 - $_.qmv(); //#24322 - var _R6 = $k[--$j]; //#24322 - $put($k[--$j], _R6, $_.fpb); //#24322 - $k[$j++] = $_.pixs; //#24323 - $k[$j++] = $_.x; //#24323 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24323 - $_.qmv(); //#24323 - var _RD = $k[--$j]; //#24323 - $put($k[--$j], _RD, $_.fpb2); //#24323 - } //#24323 - } //#24323 - $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24347 - var _U0 = $_.functionmap; //#24348 - for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24350 - $forall($get(_U0, _U1), function() { //#24349 - $forall($k[--$j]); //#24349 - $_.qmv(); //#24349 - $put($_.pixs, $k[--$j], 0); //#24349 - }); //#24349 - } //#24349 + var _Nr = $k[--$j]; //#24535 + var _Ns = $k[--$j]; //#24535 + var _Nt = $k[--$j]; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Nt; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nt; //#24535 + $_.trmv(); //#24535 + var _Nv = $k[--$j]; //#24535 + $put($_.pixs, _Nv, $k[--$j]); //#24535 + $_.trmv(); //#24536 + var _Ny = $k[--$j]; //#24536 + $put($_.pixs, _Ny, $k[--$j]); //#24536 + }; //#24536 + $_.i = 0; //#24538 + $_.stag = 0; //#24538 + for (;;) { //#24560 + if ($_.i >= $_.size) { //#24539 + break; //#24539 + } //#24539 + for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24553 + $_.j = _O4; //#24541 + if ($f($_.j + $_.alnr) < $_.size) { //#24547 + $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24545 + } else { //#24547 + $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24547 + } //#24547 + if ($k[--$j]) { //#24552 + $k[$j++] = $_.j; //#24550 + $k[$j++] = $_.i; //#24550 + $k[$j++] = 1; //#24550 + $_.aplot(); //#24550 + var _OL = $_.j; //#24551 + var _OM = $_.i; //#24551 + $k[$j++] = _OL + 1; //#24551 + $k[$j++] = _OM + 1; //#24551 + if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24551 + $k[$j++] = 0; //#24551 + $_.aplot(); //#24551 + } else { //#24551 + $j -= 2; //#24551 + } //#24551 + } //#24551 + } //#24551 + if ($f($_.i + $_.alnr) == $_.size) { //#24557 + $_.i = $f($f($_.i + $_.alnr) - 1); //#24555 + } else { //#24557 + $_.i = $f($_.i + $_.alnk); //#24557 + } //#24557 + $_.stag = 1 - $_.stag; //#24559 + } //#24559 + for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24587 + $_.i = _Ob; //#24562 + if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24574 + $k[$j++] = $_.pixs; //#24564 + $k[$j++] = 0; //#24564 + $k[$j++] = $_.i - 1; //#24564 + $_.trmv(); //#24564 + var _Oh = $k[--$j]; //#24564 + $put($k[--$j], _Oh, 0); //#24564 + $k[$j++] = $_.pixs; //#24565 + $k[$j++] = 0; //#24565 + $k[$j++] = $_.i + 1; //#24565 + $_.trmv(); //#24565 + var _Ol = $k[--$j]; //#24565 + $put($k[--$j], _Ol, 0); //#24565 + $k[$j++] = $_.pixs; //#24566 + $k[$j++] = 1; //#24566 + $k[$j++] = $_.i - 1; //#24566 + $_.trmv(); //#24566 + var _Op = $k[--$j]; //#24566 + $put($k[--$j], _Op, 0); //#24566 + $k[$j++] = $_.pixs; //#24567 + $k[$j++] = 1; //#24567 + $k[$j++] = $_.i; //#24567 + $_.trmv(); //#24567 + var _Ot = $k[--$j]; //#24567 + $put($k[--$j], _Ot, 0); //#24567 + $k[$j++] = $_.pixs; //#24568 + $k[$j++] = 1; //#24568 + $k[$j++] = $_.i + 1; //#24568 + $_.trmv(); //#24568 + var _Ox = $k[--$j]; //#24568 + $put($k[--$j], _Ox, 0); //#24568 + $k[$j++] = $_.pixs; //#24569 + $k[$j++] = $_.i - 1; //#24569 + $k[$j++] = 0; //#24569 + $_.trmv(); //#24569 + var _P1 = $k[--$j]; //#24569 + $put($k[--$j], _P1, 0); //#24569 + $k[$j++] = $_.pixs; //#24570 + $k[$j++] = $_.i + 1; //#24570 + $k[$j++] = 0; //#24570 + $_.trmv(); //#24570 + var _P5 = $k[--$j]; //#24570 + $put($k[--$j], _P5, 0); //#24570 + $k[$j++] = $_.pixs; //#24571 + $k[$j++] = $_.i - 1; //#24571 + $k[$j++] = 1; //#24571 + $_.trmv(); //#24571 + var _P9 = $k[--$j]; //#24571 + $put($k[--$j], _P9, 0); //#24571 + $k[$j++] = $_.pixs; //#24572 + $k[$j++] = $_.i; //#24572 + $k[$j++] = 1; //#24572 + $_.trmv(); //#24572 + var _PD = $k[--$j]; //#24572 + $put($k[--$j], _PD, 0); //#24572 + $k[$j++] = $_.pixs; //#24573 + $k[$j++] = $_.i + 1; //#24573 + $k[$j++] = 1; //#24573 + $_.trmv(); //#24573 + var _PH = $k[--$j]; //#24573 + $put($k[--$j], _PH, 0); //#24573 + } //#24573 + $k[$j++] = $_.pixs; //#24575 + $k[$j++] = $f($_.size - 1); //#24575 + $k[$j++] = $_.i - 1; //#24575 + $_.trmv(); //#24575 + var _PM = $k[--$j]; //#24575 + if ($get($k[--$j], _PM) != 1) { //#24586 + $k[$j++] = $_.pixs; //#24576 + $k[$j++] = $f($_.size - 1); //#24576 + $k[$j++] = $_.i - 1; //#24576 + $_.trmv(); //#24576 + var _PS = $k[--$j]; //#24576 + $put($k[--$j], _PS, 0); //#24576 + $k[$j++] = $_.pixs; //#24577 + $k[$j++] = $f($_.size - 2); //#24577 + $k[$j++] = $_.i - 1; //#24577 + $_.trmv(); //#24577 + var _PX = $k[--$j]; //#24577 + $put($k[--$j], _PX, 0); //#24577 + $k[$j++] = $_.pixs; //#24578 + $k[$j++] = $f($_.size - 2); //#24578 + $k[$j++] = $_.i; //#24578 + $_.trmv(); //#24578 + var _Pc = $k[--$j]; //#24578 + $put($k[--$j], _Pc, 0); //#24578 + $k[$j++] = $_.pixs; //#24579 + $k[$j++] = $f($_.size - 2); //#24579 + $k[$j++] = $_.i + 1; //#24579 + $_.trmv(); //#24579 + var _Ph = $k[--$j]; //#24579 + $put($k[--$j], _Ph, 0); //#24579 + $k[$j++] = $_.pixs; //#24580 + $k[$j++] = $f($_.size - 1); //#24580 + $k[$j++] = $_.i + 1; //#24580 + $_.trmv(); //#24580 + var _Pm = $k[--$j]; //#24580 + $put($k[--$j], _Pm, 0); //#24580 + $k[$j++] = $_.pixs; //#24581 + $k[$j++] = $_.i - 1; //#24581 + $k[$j++] = $f($_.size - 1); //#24581 + $_.trmv(); //#24581 + var _Pr = $k[--$j]; //#24581 + $put($k[--$j], _Pr, 0); //#24581 + $k[$j++] = $_.pixs; //#24582 + $k[$j++] = $_.i - 1; //#24582 + $k[$j++] = $f($_.size - 2); //#24582 + $_.trmv(); //#24582 + var _Pw = $k[--$j]; //#24582 + $put($k[--$j], _Pw, 0); //#24582 + $k[$j++] = $_.pixs; //#24583 + $k[$j++] = $_.i; //#24583 + $k[$j++] = $f($_.size - 2); //#24583 + $_.trmv(); //#24583 + var _Q1 = $k[--$j]; //#24583 + $put($k[--$j], _Q1, 0); //#24583 + $k[$j++] = $_.pixs; //#24584 + $k[$j++] = $_.i + 1; //#24584 + $k[$j++] = $f($_.size - 2); //#24584 + $_.trmv(); //#24584 + var _Q6 = $k[--$j]; //#24584 + $put($k[--$j], _Q6, 0); //#24584 + $k[$j++] = $_.pixs; //#24585 + $k[$j++] = $_.i + 1; //#24585 + $k[$j++] = $f($_.size - 1); //#24585 + $_.trmv(); //#24585 + var _QB = $k[--$j]; //#24585 + $put($k[--$j], _QB, 0); //#24585 + } //#24585 + } //#24585 + } //#24585 + if (!bwipp_hanxin.__24612__) { //#24612 + $_ = Object.create($_); //#24612 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24601 + $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24611 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24611 + bwipp_hanxin.__24612__ = 1; //#24611 + $_ = Object.getPrototypeOf($_); //#24611 + } //#24611 + for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24624 + $_.y = _QY; //#24614 + for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24623 + $_.x = _Qc; //#24616 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24617 + $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24618 + $k[$j++] = $_.pixs; //#24619 + $k[$j++] = $_.x; //#24619 + $k[$j++] = $_.y; //#24619 + $_.qmv(); //#24619 + var _Qr = $k[--$j]; //#24619 + $put($k[--$j], _Qr, $_.fpb); //#24619 + $k[$j++] = $_.pixs; //#24620 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24620 + $k[$j++] = $_.y; //#24620 + $_.qmv(); //#24620 + var _Qy = $k[--$j]; //#24620 + $put($k[--$j], _Qy, $_.fpb); //#24620 + $k[$j++] = $_.pixs; //#24621 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24621 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24621 + $_.qmv(); //#24621 + var _R6 = $k[--$j]; //#24621 + $put($k[--$j], _R6, $_.fpb); //#24621 + $k[$j++] = $_.pixs; //#24622 + $k[$j++] = $_.x; //#24622 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24622 + $_.qmv(); //#24622 + var _RD = $k[--$j]; //#24622 + $put($k[--$j], _RD, $_.fpb2); //#24622 + } //#24622 + } //#24622 + $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24646 + var _U0 = $_.functionmap; //#24647 + for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24649 + $forall($get(_U0, _U1), function() { //#24648 + $forall($k[--$j]); //#24648 + $_.qmv(); //#24648 + $put($_.pixs, $k[--$j], 0); //#24648 + }); //#24648 + } //#24648 var _UD = $a([function() { - $j -= 2; //#24353 - $k[$j++] = 1; //#24353 + $j -= 2; //#24652 + $k[$j++] = 1; //#24652 }, function() { - var _U7 = $k[--$j]; //#24354 - var _U8 = $k[--$j]; //#24354 - $k[$j++] = $f(_U8 + _U7) % 2; //#24354 + var _U7 = $k[--$j]; //#24653 + var _U8 = $k[--$j]; //#24653 + $k[$j++] = $f(_U8 + _U7) % 2; //#24653 }, function() { - var _U9 = $k[--$j]; //#24355 - var _UA = $k[--$j]; //#24355 - $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24355 + var _U9 = $k[--$j]; //#24654 + var _UA = $k[--$j]; //#24654 + $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24654 }, function() { - var _UB = $k[--$j]; //#24356 - var _UC = $k[--$j]; //#24356 - $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24357 - }]); //#24357 - $_.maskfuncs = _UD; //#24358 - if ($_.mask != -1) { //#24362 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24360 - $_.bestmaskval = $_.mask - 1; //#24361 - } //#24361 - $_.masks = $a($_.maskfuncs.length); //#24363 - for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24377 - $_.m = _UO; //#24365 - $_.mask = $a($_.size * $_.size); //#24366 - for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24375 - $_.j = _UU; //#24368 - for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24374 - $_.i = _UX; //#24370 - $k[$j++] = $_.i + 1; //#24371 - $k[$j++] = $_.j + 1; //#24371 + var _UB = $k[--$j]; //#24655 + var _UC = $k[--$j]; //#24655 + $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24656 + }]); //#24656 + $_.maskfuncs = _UD; //#24657 + if ($_.mask != -1) { //#24661 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24659 + $_.bestmaskval = $_.mask - 1; //#24660 + } //#24660 + $_.masks = $a($_.maskfuncs.length); //#24662 + for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24676 + $_.m = _UO; //#24664 + $_.mask = $a($_.size * $_.size); //#24665 + for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24674 + $_.j = _UU; //#24667 + for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24673 + $_.i = _UX; //#24669 + $k[$j++] = $_.i + 1; //#24670 + $k[$j++] = $_.j + 1; //#24670 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#24371 - var _Ud = $k[--$j]; //#24371 - $k[$j++] = _Ud == 0; //#24372 - $k[$j++] = $_.pixs; //#24372 - $k[$j++] = $_.i; //#24372 - $k[$j++] = $_.j; //#24372 - $_.qmv(); //#24372 - var _Uh = $k[--$j]; //#24372 - var _Uj = $get($k[--$j], _Uh); //#24372 - var _Uk = $k[--$j]; //#24372 - var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24372 - $k[$j++] = _Ul; //#24373 - $k[$j++] = $_.mask; //#24373 - $k[$j++] = $_.i; //#24373 - $k[$j++] = $_.j; //#24373 - $_.qmv(); //#24373 - var _Up = $k[--$j]; //#24373 - var _Uq = $k[--$j]; //#24373 - $put(_Uq, _Up, $k[--$j]); //#24373 - } //#24373 - } //#24373 - $put($_.masks, $_.m, $_.mask); //#24376 - } //#24376 - $_.posx = 0; //#24380 - $_.posy = 0; //#24381 - $_.num = 0; //#24382 - for (;;) { //#24392 - if ($_.posy == $_.size) { //#24384 - break; //#24384 - } //#24384 - $k[$j++] = $_.pixs; //#24385 - $k[$j++] = $_.posx; //#24385 - $k[$j++] = $_.posy; //#24385 - $_.qmv(); //#24385 - var _V0 = $k[--$j]; //#24385 - if ($get($k[--$j], _V0) == -1) { //#24389 - var _V5 = $get($_.cws, ~~($_.num / 8)); //#24386 - var _V7 = -(7 - ($_.num % 8)); //#24386 - $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24387 - $k[$j++] = $_.pixs; //#24387 - $k[$j++] = $_.posx; //#24387 - $k[$j++] = $_.posy; //#24387 - $_.qmv(); //#24387 - var _VB = $k[--$j]; //#24387 - var _VC = $k[--$j]; //#24387 - $put(_VC, _VB, $k[--$j]); //#24387 - $_.num = $_.num + 1; //#24388 - } //#24388 - $_.posx = $_.posx + 1; //#24390 - if ($_.posx == $_.size) { //#24391 - $_.posx = 0; //#24391 - $_.posy = $_.posy + 1; //#24391 - } //#24391 - } //#24391 + } //#24670 + var _Ud = $k[--$j]; //#24670 + $k[$j++] = _Ud == 0; //#24671 + $k[$j++] = $_.pixs; //#24671 + $k[$j++] = $_.i; //#24671 + $k[$j++] = $_.j; //#24671 + $_.qmv(); //#24671 + var _Uh = $k[--$j]; //#24671 + var _Uj = $get($k[--$j], _Uh); //#24671 + var _Uk = $k[--$j]; //#24671 + var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24671 + $k[$j++] = _Ul; //#24672 + $k[$j++] = $_.mask; //#24672 + $k[$j++] = $_.i; //#24672 + $k[$j++] = $_.j; //#24672 + $_.qmv(); //#24672 + var _Up = $k[--$j]; //#24672 + var _Uq = $k[--$j]; //#24672 + $put(_Uq, _Up, $k[--$j]); //#24672 + } //#24672 + } //#24672 + $put($_.masks, $_.m, $_.mask); //#24675 + } //#24675 + $_.posx = 0; //#24679 + $_.posy = 0; //#24680 + $_.num = 0; //#24681 + for (;;) { //#24691 + if ($_.posy == $_.size) { //#24683 + break; //#24683 + } //#24683 + $k[$j++] = $_.pixs; //#24684 + $k[$j++] = $_.posx; //#24684 + $k[$j++] = $_.posy; //#24684 + $_.qmv(); //#24684 + var _V0 = $k[--$j]; //#24684 + if ($get($k[--$j], _V0) == -1) { //#24688 + var _V5 = $get($_.cws, ~~($_.num / 8)); //#24685 + var _V7 = -(7 - ($_.num % 8)); //#24685 + $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24686 + $k[$j++] = $_.pixs; //#24686 + $k[$j++] = $_.posx; //#24686 + $k[$j++] = $_.posy; //#24686 + $_.qmv(); //#24686 + var _VB = $k[--$j]; //#24686 + var _VC = $k[--$j]; //#24686 + $put(_VC, _VB, $k[--$j]); //#24686 + $_.num = $_.num + 1; //#24687 + } //#24687 + $_.posx = $_.posx + 1; //#24689 + if ($_.posx == $_.size) { //#24690 + $_.posx = 0; //#24690 + $_.posy = $_.posy + 1; //#24690 + } //#24690 + } //#24690 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#24396 - $k[$j++] = 'scr1'; //#24398 - $k[$j++] = 0; //#24398 - $forall($_.scrle, function() { //#24398 - var _VL = $k[--$j]; //#24398 - $k[$j++] = _VL; //#24398 - if (_VL >= 3) { //#24398 - var _VM = $k[--$j]; //#24398 - var _VO = $f($k[--$j] + (_VM * 4)); //#24398 - $k[$j++] = _VO; //#24398 - $k[$j++] = _VO; //#24398 - } //#24398 - $j--; //#24398 - }); //#24398 - var _VP = $k[--$j]; //#24398 - $_[$k[--$j]] = _VP; //#24398 - $_.scr3 = 0; //#24399 - for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24415 - $_.j = _VT; //#24402 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24414 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24404 - var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24405 - for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24405 - $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24405 - } //#24405 - var _Vh = $k[--$j]; //#24405 - var _Vi = $k[--$j]; //#24405 - var _Vj = $k[--$j]; //#24405 - var _Vk = $k[--$j]; //#24405 - if (_Vk && (_Vj && (_Vi && _Vh))) { //#24413 - if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24410 - $_.scr3 = $_.scr3 + 50; //#24407 - } else { //#24410 - if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24411 - $_.scr3 = $_.scr3 + 50; //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24431 - $_.j = _Vy; //#24418 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24430 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24420 - var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24421 - for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24421 - $k[$j++] = $get(_W7, _W8) == $_.fact; //#24421 - } //#24421 - var _WC = $k[--$j]; //#24421 - var _WD = $k[--$j]; //#24421 - var _WE = $k[--$j]; //#24421 - var _WF = $k[--$j]; //#24421 - if (_WF && (_WE && (_WD && _WC))) { //#24429 - if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24426 - $_.scr3 = $_.scr3 + 50; //#24423 - } else { //#24426 - if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24427 - $_.scr3 = $_.scr3 + 50; //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - $k[$j++] = $_.scr1; //#24432 - $k[$j++] = $_.scr3; //#24432 - }; //#24432 + $_.scrle = $k[--$j]; //#24695 + $k[$j++] = 'scr1'; //#24697 + $k[$j++] = 0; //#24697 + $forall($_.scrle, function() { //#24697 + var _VL = $k[--$j]; //#24697 + $k[$j++] = _VL; //#24697 + if (_VL >= 3) { //#24697 + var _VM = $k[--$j]; //#24697 + var _VO = $f($k[--$j] + (_VM * 4)); //#24697 + $k[$j++] = _VO; //#24697 + $k[$j++] = _VO; //#24697 + } //#24697 + $j--; //#24697 + }); //#24697 + var _VP = $k[--$j]; //#24697 + $_[$k[--$j]] = _VP; //#24697 + $_.scr3 = 0; //#24698 + for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24714 + $_.j = _VT; //#24701 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24713 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24703 + var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24704 + for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24704 + $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24704 + } //#24704 + var _Vh = $k[--$j]; //#24704 + var _Vi = $k[--$j]; //#24704 + var _Vj = $k[--$j]; //#24704 + var _Vk = $k[--$j]; //#24704 + if (_Vk && (_Vj && (_Vi && _Vh))) { //#24712 + if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24709 + $_.scr3 = $_.scr3 + 50; //#24706 + } else { //#24709 + if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24710 + $_.scr3 = $_.scr3 + 50; //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24730 + $_.j = _Vy; //#24717 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24729 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24719 + var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24720 + for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24720 + $k[$j++] = $get(_W7, _W8) == $_.fact; //#24720 + } //#24720 + var _WC = $k[--$j]; //#24720 + var _WD = $k[--$j]; //#24720 + var _WE = $k[--$j]; //#24720 + var _WF = $k[--$j]; //#24720 + if (_WF && (_WE && (_WD && _WC))) { //#24728 + if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24725 + $_.scr3 = $_.scr3 + 50; //#24722 + } else { //#24725 + if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24726 + $_.scr3 = $_.scr3 + 50; //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + $k[$j++] = $_.scr1; //#24731 + $k[$j++] = $_.scr3; //#24731 + }; //#24731 $_.evalfull = function() { - $_.sym = $k[--$j]; //#24437 - $_.n1 = 0; //#24439 - $_.n3 = 0; //#24439 - $_.rle = $a($f($_.size + 1)); //#24440 - $_.lastpairs = $a($_.size); //#24441 - $_.thispairs = $a($_.size); //#24442 - $_.sizeadd1 = $f($_.size + 1); //#24443 - for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24468 - $_.i = _Wd; //#24445 - $k[$j++] = Infinity; //#24448 - var _Wf = $_.size; //#24449 - $k[$j++] = 0; //#24451 - $k[$j++] = 0; //#24451 - for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24451 - var _Wk = $get($_.sym, _Wh); //#24450 - var _Wl = $k[--$j]; //#24450 - $k[$j++] = _Wk; //#24450 - if ($eq(_Wl, _Wk)) { //#24450 - var _Wm = $k[--$j]; //#24450 - var _Wn = $k[--$j]; //#24450 - $k[$j++] = $f(_Wn + 1); //#24450 - $k[$j++] = _Wm; //#24450 - } else { //#24450 - var _Wo = $k[--$j]; //#24450 - $k[$j++] = 1; //#24450 - $k[$j++] = _Wo; //#24450 - } //#24450 - } //#24450 - $j--; //#24452 - var _Wq = $counttomark() + 2; //#24453 - $astore($geti($_.rle, 0, _Wq - 2)); //#24453 - $_.evalfulln1n3(); //#24454 - $_.n3 = $f($k[--$j] + $_.n3); //#24454 - $_.n1 = $f($k[--$j] + $_.n1); //#24454 - $j--; //#24455 - $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24458 - $k[$j++] = Infinity; //#24459 - var _X1 = $_.symrow; //#24460 - $k[$j++] = 0; //#24462 - $k[$j++] = 0; //#24462 - for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24462 - var _X4 = $get(_X1, _X2); //#24462 - var _X5 = $k[--$j]; //#24461 - $k[$j++] = _X4; //#24461 - if ($eq(_X5, _X4)) { //#24461 - var _X6 = $k[--$j]; //#24461 - var _X7 = $k[--$j]; //#24461 - $k[$j++] = $f(_X7 + 1); //#24461 - $k[$j++] = _X6; //#24461 - } else { //#24461 - var _X8 = $k[--$j]; //#24461 - $k[$j++] = 1; //#24461 - $k[$j++] = _X8; //#24461 - } //#24461 - } //#24461 - $j--; //#24463 - var _XA = $counttomark() + 2; //#24464 - $astore($geti($_.rle, 0, _XA - 2)); //#24464 - $_.evalfulln1n3(); //#24465 - $_.n3 = $f($k[--$j] + $_.n3); //#24465 - $_.n1 = $f($k[--$j] + $_.n1); //#24465 - $j--; //#24466 - } //#24466 - $k[$j++] = $f($_.n1 + $_.n3); //#24470 - }; //#24470 - $_.bestscore = 999999999; //#24474 - for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24492 - $_.m = _XK; //#24476 - $_.masksym = $a($_.size * $_.size); //#24477 - for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24481 - $_.i = _XR; //#24479 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24480 - } //#24480 - if ($_.masks.length != 1) { //#24490 - $k[$j++] = $_.masksym; //#24483 - $_.evalfull(); //#24483 - $_.score = $k[--$j]; //#24483 - if ($_.score < $_.bestscore) { //#24488 - $_.bestsym = $_.masksym; //#24485 - $_.bestmaskval = $_.m; //#24486 - $_.bestscore = $_.score; //#24487 - } //#24487 - } else { //#24490 - $_.bestsym = $_.masksym; //#24490 - } //#24490 - } //#24490 - $_.pixs = $_.bestsym; //#24493 - $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24496 - $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24500 - $k[$j++] = 4; //#24500 - $k[$j++] = 16; //#24500 - $k[$j++] = 19; //#24500 - $_.rscodes(); //#24500 - $_.funvals = $k[--$j]; //#24500 - $k[$j++] = Infinity; //#24505 - $forall($_.funvals, function() { //#24504 - $k[$j++] = 4; //#24503 - $_.tobin(); //#24503 - $forall($k[--$j], function() { //#24503 - var _Xw = $k[--$j]; //#24503 - $k[$j++] = $f(_Xw - 48); //#24503 - }); //#24503 - }); //#24503 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $_.funbits = $a(); //#24505 - for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24512 - $_.i = _Y0; //#24508 - $forall($get($_.functionmap, $_.i), function() { //#24511 - var _Y5 = $k[--$j]; //#24510 - $k[$j++] = $_.pixs; //#24510 - $aload(_Y5); //#24510 - $_.qmv(); //#24510 - var _Y9 = $k[--$j]; //#24510 - $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24510 - }); //#24510 - } //#24510 + $_.sym = $k[--$j]; //#24736 + $_.n1 = 0; //#24738 + $_.n3 = 0; //#24738 + $_.rle = $a($f($_.size + 1)); //#24739 + $_.lastpairs = $a($_.size); //#24740 + $_.thispairs = $a($_.size); //#24741 + $_.sizeadd1 = $f($_.size + 1); //#24742 + for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24767 + $_.i = _Wd; //#24744 + $k[$j++] = Infinity; //#24747 + var _Wf = $_.size; //#24748 + $k[$j++] = 0; //#24750 + $k[$j++] = 0; //#24750 + for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24750 + var _Wk = $get($_.sym, _Wh); //#24749 + var _Wl = $k[--$j]; //#24749 + $k[$j++] = _Wk; //#24749 + if ($eq(_Wl, _Wk)) { //#24749 + var _Wm = $k[--$j]; //#24749 + var _Wn = $k[--$j]; //#24749 + $k[$j++] = $f(_Wn + 1); //#24749 + $k[$j++] = _Wm; //#24749 + } else { //#24749 + var _Wo = $k[--$j]; //#24749 + $k[$j++] = 1; //#24749 + $k[$j++] = _Wo; //#24749 + } //#24749 + } //#24749 + $j--; //#24751 + var _Wq = $counttomark() + 2; //#24752 + $astore($geti($_.rle, 0, _Wq - 2)); //#24752 + $_.evalfulln1n3(); //#24753 + $_.n3 = $f($k[--$j] + $_.n3); //#24753 + $_.n1 = $f($k[--$j] + $_.n1); //#24753 + $j--; //#24754 + $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24757 + $k[$j++] = Infinity; //#24758 + var _X1 = $_.symrow; //#24759 + $k[$j++] = 0; //#24761 + $k[$j++] = 0; //#24761 + for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24761 + var _X4 = $get(_X1, _X2); //#24761 + var _X5 = $k[--$j]; //#24760 + $k[$j++] = _X4; //#24760 + if ($eq(_X5, _X4)) { //#24760 + var _X6 = $k[--$j]; //#24760 + var _X7 = $k[--$j]; //#24760 + $k[$j++] = $f(_X7 + 1); //#24760 + $k[$j++] = _X6; //#24760 + } else { //#24760 + var _X8 = $k[--$j]; //#24760 + $k[$j++] = 1; //#24760 + $k[$j++] = _X8; //#24760 + } //#24760 + } //#24760 + $j--; //#24762 + var _XA = $counttomark() + 2; //#24763 + $astore($geti($_.rle, 0, _XA - 2)); //#24763 + $_.evalfulln1n3(); //#24764 + $_.n3 = $f($k[--$j] + $_.n3); //#24764 + $_.n1 = $f($k[--$j] + $_.n1); //#24764 + $j--; //#24765 + } //#24765 + $k[$j++] = $f($_.n1 + $_.n3); //#24769 + }; //#24769 + $_.bestscore = 999999999; //#24773 + for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24791 + $_.m = _XK; //#24775 + $_.masksym = $a($_.size * $_.size); //#24776 + for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24780 + $_.i = _XR; //#24778 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24779 + } //#24779 + if ($_.masks.length != 1) { //#24789 + $k[$j++] = $_.masksym; //#24782 + $_.evalfull(); //#24782 + $_.score = $k[--$j]; //#24782 + if ($_.score < $_.bestscore) { //#24787 + $_.bestsym = $_.masksym; //#24784 + $_.bestmaskval = $_.m; //#24785 + $_.bestscore = $_.score; //#24786 + } //#24786 + } else { //#24789 + $_.bestsym = $_.masksym; //#24789 + } //#24789 + } //#24789 + $_.pixs = $_.bestsym; //#24792 + $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24795 + $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24799 + $k[$j++] = 4; //#24799 + $k[$j++] = 16; //#24799 + $k[$j++] = 19; //#24799 + $_.rscodes(); //#24799 + $_.funvals = $k[--$j]; //#24799 + $k[$j++] = Infinity; //#24800 + $forall($_.funvals, function() { //#24803 + $k[$j++] = 4; //#24802 + $_.tobin(); //#24802 + $forall($k[--$j], function() { //#24802 + var _Xw = $k[--$j]; //#24802 + $k[$j++] = $f(_Xw - 48); //#24802 + }); //#24802 + }); //#24802 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $_.funbits = $a(); //#24804 + for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24811 + $_.i = _Y0; //#24807 + $forall($get($_.functionmap, $_.i), function() { //#24810 + var _Y5 = $k[--$j]; //#24809 + $k[$j++] = $_.pixs; //#24809 + $aload(_Y5); //#24809 + $_.qmv(); //#24809 + var _Y9 = $k[--$j]; //#24809 + $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24809 + }); //#24809 + } //#24809 var _YH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -30660,1586 +31117,1595 @@ function bwipp_hanxin() { ["pixy", $_.size], ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#24522 - $k[$j++] = _YH; //#24525 - if (!$_.dontdraw) { //#24525 - bwipp_renmatrix(); //#24525 - } //#24525 - $_ = Object.getPrototypeOf($_); //#24527 - $_ = Object.getPrototypeOf($_); //#24529 -} - + ]); //#24825 + $k[$j++] = _YH; //#24828 + if (!$_.dontdraw) { //#24828 + bwipp_renmatrix(); //#24828 + } //#24828 + $_ = Object.getPrototypeOf($_); //#24830 + $_ = Object.getPrototypeOf($_); //#24832 +} //bwipp_hanxin function bwipp_dotcode() { - $_ = Object.create($_); //#24560 - $_.dontdraw = false; //#24563 - $_.rows = -1; //#24564 - $_.columns = -1; //#24565 - $_.ratio = -1; //#24566 - $_.parse = false; //#24567 - $_.parsefnc = false; //#24568 - $_.raw = false; //#24569 - $_.fast = false; //#24570 - $_.mask = -1; //#24571 - $k[$j++] = $_; //#24573 - bwipp_processoptions(); //#24573 - $_.options = $k[--$j]; //#24573 - $_.barcode = $k[--$j]; //#24574 - if ($_.rows != -1) { //#24580 - if ($_.rows < 5) { //#24579 - $k[$j++] = 'bwipp.dotcodeBadRows#24578'; //#24578 - $k[$j++] = "There must be at least 5 rows"; //#24578 - bwipp_raiseerror(); //#24578 - } //#24578 - } //#24578 - if ($_.columns != -1) { //#24586 - if ($_.columns < 5) { //#24585 - $k[$j++] = 'bwipp.dotcodeBadColumns#24584'; //#24584 - $k[$j++] = "There must be at least 5 columns"; //#24584 - bwipp_raiseerror(); //#24584 - } //#24584 - } //#24584 - if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24590 - $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24589'; //#24589 - $k[$j++] = "Sum of rows and columns must be odd"; //#24589 - bwipp_raiseerror(); //#24589 - } //#24589 - if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24595 - $_.ratio = 3 / 2; //#24594 - } //#24594 - if ($_.ratio != -1) { //#24600 - if ($_.ratio <= 0) { //#24599 - $k[$j++] = 'bwipp.dotcodeRatio#24598'; //#24598 - $k[$j++] = "The ratio must be greater than 0"; //#24598 - bwipp_raiseerror(); //#24598 - } //#24598 - } //#24598 - if ($_.mask != -1) { //#24606 - if (($_.mask < 0) || ($_.mask > 3)) { //#24605 - $k[$j++] = 'bwipp.dotcodeBadMask#24604'; //#24604 - $k[$j++] = "Valid mask values are 0 to 3"; //#24604 - bwipp_raiseerror(); //#24604 - } //#24604 - } //#24604 - bwipp_loadctx(bwipp_dotcode) //#24608 - if (!bwipp_dotcode.__24621__) { //#24621 - $_ = Object.create($_); //#24621 - $_.laa = -1; //#24612 - $_.lab = -2; //#24612 - $_.lac = -3; //#24612 - $_.bin = -4; //#24612 - $_.sfa = -5; //#24613 - $_.sfb = -6; //#24613 - $_.sb2 = -7; //#24613 - $_.sb3 = -8; //#24613 - $_.sb4 = -9; //#24614 - $_.sb5 = -10; //#24614 - $_.sb6 = -11; //#24614 - $_.sfc = -12; //#24614 - $_.sc2 = -13; //#24615 - $_.sc3 = -14; //#24615 - $_.sc4 = -15; //#24615 - $_.sc5 = -16; //#24615 - $_.sc6 = -17; //#24616 - $_.sc7 = -18; //#24616 - $_.bsa = -19; //#24616 - $_.bsb = -20; //#24616 - $_.tma = -21; //#24617 - $_.tmb = -22; //#24617 - $_.tmc = -23; //#24617 - $_.tms = -24; //#24617 - $_.fn1 = -25; //#24618 - $_.fn2 = -26; //#24618 - $_.fn3 = -27; //#24618 - $_.crl = -28; //#24618 - $_.aim = -29; //#24619 - $_.m05 = -30; //#24619 - $_.m06 = -31; //#24619 - $_.m12 = -32; //#24619 - $_.mac = -33; //#24620 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24620 - bwipp_dotcode.__24621__ = 1; //#24620 - $_ = Object.getPrototypeOf($_); //#24620 - } //#24620 + $_ = Object.create($_); //#24863 + $_.dontdraw = false; //#24866 + $_.rows = -1; //#24867 + $_.columns = -1; //#24868 + $_.ratio = -1; //#24869 + $_.parse = false; //#24870 + $_.parsefnc = false; //#24871 + $_.raw = false; //#24872 + $_.fast = false; //#24873 + $_.mask = -1; //#24874 + $k[$j++] = $_; //#24876 + bwipp_processoptions(); //#24876 + $_.options = $k[--$j]; //#24876 + $_.barcode = $k[--$j]; //#24877 + if ($_.rows != -1) { //#24883 + if ($_.rows < 5) { //#24882 + $k[$j++] = 'bwipp.dotcodeBadRows#24881'; //#24881 + $k[$j++] = "There must be at least 5 rows"; //#24881 + bwipp_raiseerror(); //#24881 + } //#24881 + } //#24881 + if ($_.columns != -1) { //#24889 + if ($_.columns < 5) { //#24888 + $k[$j++] = 'bwipp.dotcodeBadColumns#24887'; //#24887 + $k[$j++] = "There must be at least 5 columns"; //#24887 + bwipp_raiseerror(); //#24887 + } //#24887 + } //#24887 + if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24893 + $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24892'; //#24892 + $k[$j++] = "Sum of rows and columns must be odd"; //#24892 + bwipp_raiseerror(); //#24892 + } //#24892 + if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24898 + $_.ratio = 3 / 2; //#24897 + } //#24897 + if ($_.ratio != -1) { //#24903 + if ($_.ratio <= 0) { //#24902 + $k[$j++] = 'bwipp.dotcodeRatio#24901'; //#24901 + $k[$j++] = "The ratio must be greater than 0"; //#24901 + bwipp_raiseerror(); //#24901 + } //#24901 + } //#24901 + if ($_.mask != -1) { //#24909 + if (($_.mask < 0) || ($_.mask > 3)) { //#24908 + $k[$j++] = 'bwipp.dotcodeBadMask#24907'; //#24907 + $k[$j++] = "Valid mask values are 0 to 3"; //#24907 + bwipp_raiseerror(); //#24907 + } //#24907 + } //#24907 + bwipp_loadctx(bwipp_dotcode) //#24911 + if (!bwipp_dotcode.__24924__) { //#24924 + $_ = Object.create($_); //#24924 + $_.laa = -1; //#24915 + $_.lab = -2; //#24915 + $_.lac = -3; //#24915 + $_.bin = -4; //#24915 + $_.sfa = -5; //#24916 + $_.sfb = -6; //#24916 + $_.sb2 = -7; //#24916 + $_.sb3 = -8; //#24916 + $_.sb4 = -9; //#24917 + $_.sb5 = -10; //#24917 + $_.sb6 = -11; //#24917 + $_.sfc = -12; //#24917 + $_.sc2 = -13; //#24918 + $_.sc3 = -14; //#24918 + $_.sc4 = -15; //#24918 + $_.sc5 = -16; //#24918 + $_.sc6 = -17; //#24919 + $_.sc7 = -18; //#24919 + $_.bsa = -19; //#24919 + $_.bsb = -20; //#24919 + $_.tma = -21; //#24920 + $_.tmb = -22; //#24920 + $_.tmc = -23; //#24920 + $_.tms = -24; //#24920 + $_.fn1 = -25; //#24921 + $_.fn2 = -26; //#24921 + $_.fn3 = -27; //#24921 + $_.crl = -28; //#24921 + $_.aim = -29; //#24922 + $_.m05 = -30; //#24922 + $_.m06 = -31; //#24922 + $_.m12 = -32; //#24922 + $_.mac = -33; //#24923 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24923 + bwipp_dotcode.__24924__ = 1; //#24923 + $_ = Object.getPrototypeOf($_); //#24923 + } //#24923 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#24630 - $_.fncvals = _N; //#24631 - $k[$j++] = 'msg'; //#24632 - $k[$j++] = $_.barcode; //#24632 - $k[$j++] = $_.fncvals; //#24632 - bwipp_parseinput(); //#24632 - var _Q = $k[--$j]; //#24632 - $_[$k[--$j]] = _Q; //#24632 - $_.msglen = $_.msg.length; //#24633 - var _T = $_.msg; //#24636 - $k[$j++] = 'numecis'; //#24636 - $k[$j++] = 0; //#24636 - for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24636 - if ($get(_T, _U) <= -1000000) { //#24636 - var _X = $k[--$j]; //#24636 - $k[$j++] = $f(_X + 1); //#24636 - } //#24636 - } //#24636 - var _Y = $k[--$j]; //#24636 - $_[$k[--$j]] = _Y; //#24636 - $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24637 - $_.j = 0; //#24638 - for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24649 - var _h = $get($_.msg, _f); //#24640 - $k[$j++] = _h; //#24648 - if (_h <= -1000000) { //#24647 - var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24641 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24641 - $k[$j++] = $get(_l, _m); //#24641 - } //#24641 - $astore($a(6)); //#24641 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24642 - $put($_.msgtmp, $_.j, $_.fn2); //#24643 - $_.j = $_.j + 7; //#24644 - } else { //#24647 - $put($_.msgtmp, $_.j, $k[--$j]); //#24646 - $_.j = $_.j + 1; //#24647 - } //#24647 - } //#24647 - $_.msg = $_.msgtmp; //#24650 - $_.msglen = $_.msg.length; //#24651 - if (!bwipp_dotcode.__24720__) { //#24720 - $_ = Object.create($_); //#24720 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24695 - $_.charvals = $a([new Map, new Map, new Map]); //#24698 - for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#24707 - $_.i = _3d; //#24700 - $_.encs = $get($_.charmaps, $_.i); //#24701 - for (var _3h = 0; _3h <= 2; _3h += 1) { //#24706 - $_.j = _3h; //#24703 - var _3k = $get($_.encs, $_.j); //#24704 - $k[$j++] = _3k; //#24704 - if ($eq($type(_3k), 'stringtype')) { //#24704 - var _3n = $get($k[--$j], 0); //#24704 - $k[$j++] = _3n; //#24704 - } //#24704 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#24705 - } //#24705 - } //#24705 - $_.Avals = $get($_.charvals, 0); //#24708 - $_.Bvals = $get($_.charvals, 1); //#24709 - $put($_.Bvals, $_.m05, 97); //#24710 - $put($_.Bvals, $_.m06, 98); //#24711 - $put($_.Bvals, $_.m12, 99); //#24712 - $put($_.Bvals, $_.mac, 100); //#24713 - $_.Cvals = $get($_.charvals, 2); //#24714 - $k[$j++] = Infinity; //#24716 - var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#24716 - $k[$j++] = 102; //#24716 - for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#24716 - var _4M = $f($k[--$j] + 1); //#24716 - $k[$j++] = $get(_4H, _4I); //#24716 - $k[$j++] = _4M; //#24716 - $k[$j++] = _4M; //#24716 - } //#24716 - $j--; //#24716 - $_.BINvals = $d(); //#24717 - $_.A = 0; //#24719 - $_.B = 1; //#24719 - $_.C = 2; //#24719 - $_.BIN = 3; //#24719 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24719 - bwipp_dotcode.__24720__ = 1; //#24719 - $_ = Object.getPrototypeOf($_); //#24719 - } //#24719 - $k[$j++] = Infinity; //#24723 - for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#24723 - $k[$j++] = 0; //#24723 - } //#24723 - $_.nDigits = $a(); //#24723 - $k[$j++] = Infinity; //#24724 - for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#24724 - $k[$j++] = false; //#24724 - } //#24724 - $_.SeventeenTen = $a(); //#24724 - $k[$j++] = Infinity; //#24725 - for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#24725 - $k[$j++] = false; //#24725 - } //#24725 - $_.ECI = $a(); //#24725 - $k[$j++] = Infinity; //#24726 - for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#24726 - $k[$j++] = false; //#24726 - } //#24726 - $_.DatumA = $a(); //#24726 - $k[$j++] = Infinity; //#24727 - for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#24727 - $k[$j++] = false; //#24727 - } //#24727 - $_.DatumB = $a(); //#24727 - $k[$j++] = Infinity; //#24728 - for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#24728 - $k[$j++] = false; //#24728 - } //#24728 - $_.DatumC = $a(); //#24728 - $k[$j++] = Infinity; //#24729 - for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#24729 - $k[$j++] = false; //#24729 - } //#24729 - $_.Binary = $a(); //#24729 - $k[$j++] = Infinity; //#24730 - for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#24730 - $k[$j++] = 0; //#24730 - } //#24730 - $_.AheadC = $a(); //#24730 - $k[$j++] = Infinity; //#24731 - for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#24731 - $k[$j++] = 0; //#24731 - } //#24731 - $_.TryC = $a(); //#24731 - $k[$j++] = Infinity; //#24732 - for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#24732 - $k[$j++] = 0; //#24732 - } //#24732 - $_.AheadA = $a(); //#24732 - $k[$j++] = Infinity; //#24733 - for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#24733 - $k[$j++] = 0; //#24733 - } //#24733 - $_.AheadB = $a(); //#24733 - $k[$j++] = Infinity; //#24734 - for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#24734 - $k[$j++] = 0; //#24734 - } //#24734 - $_.UntilEndSeg = $a(); //#24734 - for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#24789 - $_.i = _5C; //#24736 - $_.barchar = $get($_.msg, $_.i); //#24737 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#24740 - $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#24739 - } //#24739 - var _5P = $get($_.Avals, $_.barchar) !== undefined; //#24741 - if (_5P) { //#24741 - $put($_.DatumA, $_.i, true); //#24741 - } //#24741 - var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#24742 - if (_5U) { //#24742 - $put($_.DatumB, $_.i, true); //#24742 - } //#24742 - $_.CRLF = false; //#24743 - if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#24746 - if ($get($_.msg, $_.i + 1) == 10) { //#24745 - $_.CRLF = true; //#24745 - } //#24745 - } //#24745 - if ($_.CRLF) { //#24747 - $put($_.DatumB, $_.i, true); //#24747 - } //#24747 - if ($get($_.nDigits, $_.i) >= 2) { //#24748 - $put($_.DatumC, $_.i, true); //#24748 - } //#24748 - if ($_.barchar < 0) { //#24749 - $put($_.DatumC, $_.i, true); //#24749 - } //#24749 - if ($_.barchar >= 128) { //#24750 - $put($_.Binary, $_.i, true); //#24750 - } //#24750 - if ($get($_.nDigits, $_.i) >= 10) { //#24764 - $k[$j++] = Infinity; //#24752 - $aload($geti($_.msg, $_.i, 10)); //#24753 - for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#24761 - if ($k[--$j] != 48) { //#24755 - $k[$j++] = false; //#24755 - break; //#24755 - } //#24755 - if ($k[--$j] != 49) { //#24756 - $k[$j++] = false; //#24756 - break; //#24756 - } //#24756 - $j -= 6; //#24757 - if ($k[--$j] != 55) { //#24758 - $k[$j++] = false; //#24758 - break; //#24758 - } //#24758 - if ($k[--$j] != 49) { //#24759 - $k[$j++] = false; //#24759 - break; //#24759 - } //#24759 - $k[$j++] = true; //#24760 - } //#24760 - $put($_.SeventeenTen, $_.i, $k[--$j]); //#24762 - $cleartomark(); //#24763 - } //#24763 - if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#24767 - $put($_.ECI, $_.i, true); //#24766 - } //#24766 - if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#24769 - } else { //#24774 - if ($get($_.nDigits, $_.i) <= 1) { //#24774 - $put($_.AheadC, $_.i, 0); //#24772 - } else { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#24774 - } //#24774 - } //#24774 - if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#24779 - $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#24778 - } //#24778 - if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24782 - $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#24781 - } //#24781 - if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24785 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i; //#24784 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i + 1; //#24784 - if ($_.CRLF) { //#24784 - var _7B = $k[--$j]; //#24784 - $k[$j++] = $f(_7B + 1); //#24784 - } //#24784 - var _7C = $k[--$j]; //#24784 - var _7E = $get($k[--$j], _7C); //#24784 - var _7F = $k[--$j]; //#24784 - $put($k[--$j], _7F, $f(_7E + 1)); //#24784 - } //#24784 - if ($_.barchar != $_.fn3) { //#24788 - $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#24787 - } //#24787 - } //#24787 + ]); //#24933 + $_.fncvals = _N; //#24934 + $k[$j++] = 'msg'; //#24935 + $k[$j++] = $_.barcode; //#24935 + $k[$j++] = $_.fncvals; //#24935 + bwipp_parseinput(); //#24935 + var _Q = $k[--$j]; //#24935 + $_[$k[--$j]] = _Q; //#24935 + $_.msglen = $_.msg.length; //#24936 + var _T = $_.msg; //#24939 + $k[$j++] = 'numecis'; //#24939 + $k[$j++] = 0; //#24939 + for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24939 + if ($get(_T, _U) <= -1000000) { //#24939 + var _X = $k[--$j]; //#24939 + $k[$j++] = $f(_X + 1); //#24939 + } //#24939 + } //#24939 + var _Y = $k[--$j]; //#24939 + $_[$k[--$j]] = _Y; //#24939 + $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24940 + $_.j = 0; //#24941 + for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24952 + var _h = $get($_.msg, _f); //#24943 + $k[$j++] = _h; //#24951 + if (_h <= -1000000) { //#24950 + var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24944 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24944 + $k[$j++] = $get(_l, _m); //#24944 + } //#24944 + $astore($a(6)); //#24944 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24945 + $put($_.msgtmp, $_.j, $_.fn2); //#24946 + $_.j = $_.j + 7; //#24947 + } else { //#24950 + $put($_.msgtmp, $_.j, $k[--$j]); //#24949 + $_.j = $_.j + 1; //#24950 + } //#24950 + } //#24950 + $_.msg = $_.msgtmp; //#24953 + $_.msglen = $_.msg.length; //#24954 + if (!bwipp_dotcode.__25023__) { //#25023 + $_ = Object.create($_); //#25023 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24998 + $_.charvals = $a([new Map, new Map, new Map]); //#25001 + for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#25010 + $_.i = _3d; //#25003 + $_.encs = $get($_.charmaps, $_.i); //#25004 + for (var _3h = 0; _3h <= 2; _3h += 1) { //#25009 + $_.j = _3h; //#25006 + var _3k = $get($_.encs, $_.j); //#25007 + $k[$j++] = _3k; //#25007 + if ($eq($type(_3k), 'stringtype')) { //#25007 + var _3n = $get($k[--$j], 0); //#25007 + $k[$j++] = _3n; //#25007 + } //#25007 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#25008 + } //#25008 + } //#25008 + $_.Avals = $get($_.charvals, 0); //#25011 + $_.Bvals = $get($_.charvals, 1); //#25012 + $put($_.Bvals, $_.m05, 97); //#25013 + $put($_.Bvals, $_.m06, 98); //#25014 + $put($_.Bvals, $_.m12, 99); //#25015 + $put($_.Bvals, $_.mac, 100); //#25016 + $_.Cvals = $get($_.charvals, 2); //#25017 + $k[$j++] = Infinity; //#25018 + var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#25019 + $k[$j++] = 102; //#25019 + for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#25019 + var _4M = $f($k[--$j] + 1); //#25019 + $k[$j++] = $get(_4H, _4I); //#25019 + $k[$j++] = _4M; //#25019 + $k[$j++] = _4M; //#25019 + } //#25019 + $j--; //#25019 + $_.BINvals = $d(); //#25020 + $_.A = 0; //#25022 + $_.B = 1; //#25022 + $_.C = 2; //#25022 + $_.BIN = 3; //#25022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25022 + bwipp_dotcode.__25023__ = 1; //#25022 + $_ = Object.getPrototypeOf($_); //#25022 + } //#25022 + $k[$j++] = Infinity; //#25026 + for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#25026 + $k[$j++] = 0; //#25026 + } //#25026 + $_.nDigits = $a(); //#25026 + $k[$j++] = Infinity; //#25027 + for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#25027 + $k[$j++] = false; //#25027 + } //#25027 + $_.SeventeenTen = $a(); //#25027 + $k[$j++] = Infinity; //#25028 + for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#25028 + $k[$j++] = false; //#25028 + } //#25028 + $_.ECI = $a(); //#25028 + $k[$j++] = Infinity; //#25029 + for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#25029 + $k[$j++] = false; //#25029 + } //#25029 + $_.DatumA = $a(); //#25029 + $k[$j++] = Infinity; //#25030 + for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#25030 + $k[$j++] = false; //#25030 + } //#25030 + $_.DatumB = $a(); //#25030 + $k[$j++] = Infinity; //#25031 + for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#25031 + $k[$j++] = false; //#25031 + } //#25031 + $_.DatumC = $a(); //#25031 + $k[$j++] = Infinity; //#25032 + for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#25032 + $k[$j++] = false; //#25032 + } //#25032 + $_.Binary = $a(); //#25032 + $k[$j++] = Infinity; //#25033 + for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#25033 + $k[$j++] = 0; //#25033 + } //#25033 + $_.AheadC = $a(); //#25033 + $k[$j++] = Infinity; //#25034 + for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#25034 + $k[$j++] = 0; //#25034 + } //#25034 + $_.TryC = $a(); //#25034 + $k[$j++] = Infinity; //#25035 + for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#25035 + $k[$j++] = 0; //#25035 + } //#25035 + $_.AheadA = $a(); //#25035 + $k[$j++] = Infinity; //#25036 + for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#25036 + $k[$j++] = 0; //#25036 + } //#25036 + $_.AheadB = $a(); //#25036 + $k[$j++] = Infinity; //#25037 + for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#25037 + $k[$j++] = 0; //#25037 + } //#25037 + $_.UntilEndSeg = $a(); //#25037 + for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#25092 + $_.i = _5C; //#25039 + $_.barchar = $get($_.msg, $_.i); //#25040 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#25043 + $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#25042 + } //#25042 + var _5P = $get($_.Avals, $_.barchar) !== undefined; //#25044 + if (_5P) { //#25044 + $put($_.DatumA, $_.i, true); //#25044 + } //#25044 + var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#25045 + if (_5U) { //#25045 + $put($_.DatumB, $_.i, true); //#25045 + } //#25045 + $_.CRLF = false; //#25046 + if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#25049 + if ($get($_.msg, $_.i + 1) == 10) { //#25048 + $_.CRLF = true; //#25048 + } //#25048 + } //#25048 + if ($_.CRLF) { //#25050 + $put($_.DatumB, $_.i, true); //#25050 + } //#25050 + if ($get($_.nDigits, $_.i) >= 2) { //#25051 + $put($_.DatumC, $_.i, true); //#25051 + } //#25051 + if ($_.barchar < 0) { //#25052 + $put($_.DatumC, $_.i, true); //#25052 + } //#25052 + if ($_.barchar >= 128) { //#25053 + $put($_.Binary, $_.i, true); //#25053 + } //#25053 + if ($get($_.nDigits, $_.i) >= 10) { //#25067 + $k[$j++] = Infinity; //#25055 + $aload($geti($_.msg, $_.i, 10)); //#25056 + for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#25064 + if ($k[--$j] != 48) { //#25058 + $k[$j++] = false; //#25058 + break; //#25058 + } //#25058 + if ($k[--$j] != 49) { //#25059 + $k[$j++] = false; //#25059 + break; //#25059 + } //#25059 + $j -= 6; //#25060 + if ($k[--$j] != 55) { //#25061 + $k[$j++] = false; //#25061 + break; //#25061 + } //#25061 + if ($k[--$j] != 49) { //#25062 + $k[$j++] = false; //#25062 + break; //#25062 + } //#25062 + $k[$j++] = true; //#25063 + } //#25063 + $put($_.SeventeenTen, $_.i, $k[--$j]); //#25065 + $cleartomark(); //#25066 + } //#25066 + if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#25070 + $put($_.ECI, $_.i, true); //#25069 + } //#25069 + if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#25072 + } else { //#25077 + if ($get($_.nDigits, $_.i) <= 1) { //#25077 + $put($_.AheadC, $_.i, 0); //#25075 + } else { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#25077 + } //#25077 + } //#25077 + if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#25082 + $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#25081 + } //#25081 + if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25085 + $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#25084 + } //#25084 + if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25088 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i; //#25087 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i + 1; //#25087 + if ($_.CRLF) { //#25087 + var _7B = $k[--$j]; //#25087 + $k[$j++] = $f(_7B + 1); //#25087 + } //#25087 + var _7C = $k[--$j]; //#25087 + var _7E = $get($k[--$j], _7C); //#25087 + var _7F = $k[--$j]; //#25087 + $put($k[--$j], _7F, $f(_7E + 1)); //#25087 + } //#25087 + if ($_.barchar != $_.fn3) { //#25091 + $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#25090 + } //#25090 + } //#25090 $_.addtocws = function() { - var _7O = $k[--$j]; //#24792 - $puti($_.cws, $_.j, _7O); //#24792 - $_.j = _7O.length + $_.j; //#24793 - }; //#24793 + var _7O = $k[--$j]; //#25095 + $puti($_.cws, $_.j, _7O); //#25095 + $_.j = _7O.length + $_.j; //#25096 + }; //#25096 $_.base259to103 = function() { - $_.in = $k[--$j]; //#24798 - $_.inlen = $_.in.length; //#24799 - $k[$j++] = Infinity; //#24800 - for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#24800 - $k[$j++] = 0; //#24800 - } //#24800 - $aload($_.in); //#24800 - $_.in = $a(); //#24800 - $_.out = $a(6); //#24801 - $k[$j++] = Infinity; //#24802 - $aload($geti($_.in, 0, 2)); //#24802 - $_.msbs = $a(); //#24802 - $k[$j++] = Infinity; //#24805 - $aload($_.msbs); //#24804 - var _7e = $k[--$j]; //#24804 - var _7f = $k[--$j]; //#24804 - $k[$j++] = $f(_7e + (_7f * 259)); //#24805 - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#24805 - var _7i = $k[--$j]; //#24805 - $k[$j++] = _7i % 103; //#24805 - $k[$j++] = ~~(_7i / 103); //#24805 - } //#24805 - $_.mscs = $a(); //#24805 - $k[$j++] = Infinity; //#24807 - $aload($geti($_.in, 2, 3)); //#24807 - $_.lsbs = $a(); //#24807 - $k[$j++] = Infinity; //#24810 - $aload($_.lsbs); //#24809 - var _7o = $k[--$j]; //#24809 - var _7p = $k[--$j]; //#24809 - var _7q = $k[--$j]; //#24809 - $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#24810 - for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#24810 - var _7t = $k[--$j]; //#24810 - $k[$j++] = _7t % 103; //#24810 - $k[$j++] = ~~(_7t / 103); //#24810 - } //#24810 - $_.lscs = $a(); //#24810 - var _7w = $get($_.lscs, 0); //#24812 - var _7y = $get($_.mscs, 0); //#24812 - $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#24813 - var _81 = $get($_.lscs, 1); //#24814 - var _83 = $get($_.mscs, 0); //#24814 - var _85 = $get($_.mscs, 1); //#24814 - $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#24815 - var _88 = $get($_.lscs, 2); //#24816 - var _8A = $get($_.mscs, 0); //#24816 - var _8C = $get($_.mscs, 1); //#24816 - var _8E = $get($_.mscs, 2); //#24816 - $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#24817 - var _8H = $get($_.lscs, 3); //#24818 - var _8J = $get($_.mscs, 0); //#24818 - var _8L = $get($_.mscs, 1); //#24818 - var _8N = $get($_.mscs, 2); //#24818 - $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#24819 - var _8Q = $get($_.mscs, 1); //#24820 - var _8S = $get($_.mscs, 2); //#24820 - $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#24821 - $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#24823 - $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#24824 - }; //#24824 + $_.in = $k[--$j]; //#25101 + $_.inlen = $_.in.length; //#25102 + $k[$j++] = Infinity; //#25103 + for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#25103 + $k[$j++] = 0; //#25103 + } //#25103 + $aload($_.in); //#25103 + $_.in = $a(); //#25103 + $_.out = $a(6); //#25104 + $k[$j++] = Infinity; //#25105 + $aload($geti($_.in, 0, 2)); //#25105 + $_.msbs = $a(); //#25105 + $k[$j++] = Infinity; //#25106 + $aload($_.msbs); //#25107 + var _7e = $k[--$j]; //#25107 + var _7f = $k[--$j]; //#25107 + $k[$j++] = $f(_7e + (_7f * 259)); //#25108 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#25108 + var _7i = $k[--$j]; //#25108 + $k[$j++] = _7i % 103; //#25108 + $k[$j++] = ~~(_7i / 103); //#25108 + } //#25108 + $_.mscs = $a(); //#25108 + $k[$j++] = Infinity; //#25110 + $aload($geti($_.in, 2, 3)); //#25110 + $_.lsbs = $a(); //#25110 + $k[$j++] = Infinity; //#25111 + $aload($_.lsbs); //#25112 + var _7o = $k[--$j]; //#25112 + var _7p = $k[--$j]; //#25112 + var _7q = $k[--$j]; //#25112 + $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#25113 + for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#25113 + var _7t = $k[--$j]; //#25113 + $k[$j++] = _7t % 103; //#25113 + $k[$j++] = ~~(_7t / 103); //#25113 + } //#25113 + $_.lscs = $a(); //#25113 + var _7w = $get($_.lscs, 0); //#25115 + var _7y = $get($_.mscs, 0); //#25115 + $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#25116 + var _81 = $get($_.lscs, 1); //#25117 + var _83 = $get($_.mscs, 0); //#25117 + var _85 = $get($_.mscs, 1); //#25117 + $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#25118 + var _88 = $get($_.lscs, 2); //#25119 + var _8A = $get($_.mscs, 0); //#25119 + var _8C = $get($_.mscs, 1); //#25119 + var _8E = $get($_.mscs, 2); //#25119 + $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#25120 + var _8H = $get($_.lscs, 3); //#25121 + var _8J = $get($_.mscs, 0); //#25121 + var _8L = $get($_.mscs, 1); //#25121 + var _8N = $get($_.mscs, 2); //#25121 + $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#25122 + var _8Q = $get($_.mscs, 1); //#25123 + var _8S = $get($_.mscs, 2); //#25123 + $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#25124 + $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#25126 + $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#25127 + }; //#25127 $_.finaliseBIN = function() { - if ($_.bpos != 0) { //#24831 - $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#24829 - $_.base259to103(); //#24829 - $aload($k[--$j]); //#24829 - $_.bpos = 0; //#24830 - } //#24830 - }; //#24830 + if ($_.bpos != 0) { //#25134 + $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#25132 + $_.base259to103(); //#25132 + $aload($k[--$j]); //#25132 + $_.bpos = 0; //#25133 + } //#25133 + }; //#25133 $_.addtobin = function() { - $put($_.bvals, $_.bpos, $k[--$j]); //#24835 - $_.bpos = $_.bpos + 1; //#24836 - if ($_.bpos == 5) { //#24837 - $_.finaliseBIN(); //#24837 - } //#24837 - }; //#24837 + $put($_.bvals, $_.bpos, $k[--$j]); //#25138 + $_.bpos = $_.bpos + 1; //#25139 + if ($_.bpos == 5) { //#25140 + $_.finaliseBIN(); //#25140 + } //#25140 + }; //#25140 $_.ECIabc = function() { - var _8n = $geti($_.msg, $_.i + 1, 6); //#24841 - $k[$j++] = 0; //#24841 - for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#24841 - var _8r = $k[--$j]; //#24841 - $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#24841 - } //#24841 - var _8t = ~~($k[--$j] / 10); //#24842 - $k[$j++] = _8t; //#24846 - if (_8t >= 40) { //#24846 - var _8v = $f($k[--$j] - 40); //#24844 - var _8w = _8v % 12769; //#24845 - $k[$j++] = (~~(_8v / 12769)) + 40; //#24845 - $k[$j++] = ~~(_8w / 113); //#24845 - $k[$j++] = _8w % 113; //#24845 - } //#24845 - }; //#24845 + var _8n = $geti($_.msg, $_.i + 1, 6); //#25144 + $k[$j++] = 0; //#25144 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#25144 + var _8r = $k[--$j]; //#25144 + $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#25144 + } //#25144 + var _8t = ~~($k[--$j] / 10); //#25145 + $k[$j++] = _8t; //#25149 + if (_8t >= 40) { //#25149 + var _8v = $f($k[--$j] - 40); //#25147 + var _8w = _8v % 12769; //#25148 + $k[$j++] = (~~(_8v / 12769)) + 40; //#25148 + $k[$j++] = ~~(_8w / 113); //#25148 + $k[$j++] = _8w % 113; //#25148 + } //#25148 + }; //#25148 $_.ECIbin = function() { - $k[$j++] = Infinity; //#24858 - var _8z = $geti($_.msg, $_.i + 1, 6); //#24851 - $k[$j++] = 0; //#24851 - for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#24851 - var _93 = $k[--$j]; //#24851 - $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#24851 - } //#24851 - var _95 = ~~($k[--$j] / 10); //#24852 - $k[$j++] = _95; //#24860 - if (_95 >= 65536) { //#24858 - var _96 = $k[--$j]; //#24853 - var _97 = _96 % 65536; //#24853 - $k[$j++] = 258; //#24853 - $k[$j++] = ~~(_96 / 65536); //#24853 - $k[$j++] = ~~(_97 / 256); //#24853 - $k[$j++] = _97 % 256; //#24853 - } else { //#24858 - var _98 = $k[--$j]; //#24855 - $k[$j++] = _98; //#24859 - if (_98 >= 256) { //#24858 - var _99 = $k[--$j]; //#24856 - $k[$j++] = 257; //#24856 - $k[$j++] = ~~(_99 / 256); //#24856 - $k[$j++] = _99 % 256; //#24856 - } else { //#24858 - var _9A = $k[--$j]; //#24858 - $k[$j++] = 256; //#24858 - $k[$j++] = _9A; //#24858 - } //#24858 - } //#24858 - var _9B = $a(); //#24858 - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#24863 - $k[$j++] = $get(_9B, _9C); //#24862 - $_.addtobin(); //#24862 - } //#24862 - }; //#24862 + $k[$j++] = Infinity; //#25153 + var _8z = $geti($_.msg, $_.i + 1, 6); //#25154 + $k[$j++] = 0; //#25154 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#25154 + var _93 = $k[--$j]; //#25154 + $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#25154 + } //#25154 + var _95 = ~~($k[--$j] / 10); //#25155 + $k[$j++] = _95; //#25163 + if (_95 >= 65536) { //#25161 + var _96 = $k[--$j]; //#25156 + var _97 = _96 % 65536; //#25156 + $k[$j++] = 258; //#25156 + $k[$j++] = ~~(_96 / 65536); //#25156 + $k[$j++] = ~~(_97 / 256); //#25156 + $k[$j++] = _97 % 256; //#25156 + } else { //#25161 + var _98 = $k[--$j]; //#25158 + $k[$j++] = _98; //#25162 + if (_98 >= 256) { //#25161 + var _99 = $k[--$j]; //#25159 + $k[$j++] = 257; //#25159 + $k[$j++] = ~~(_99 / 256); //#25159 + $k[$j++] = _99 % 256; //#25159 + } else { //#25161 + var _9A = $k[--$j]; //#25161 + $k[$j++] = 256; //#25161 + $k[$j++] = _9A; //#25161 + } //#25161 + } //#25161 + var _9B = $a(); //#25161 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#25166 + $k[$j++] = $get(_9B, _9C); //#25165 + $_.addtobin(); //#25165 + } //#25165 + }; //#25165 $_.encC = function() { - for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#24987 - if ($_.i == $_.segstart) { //#24900 - for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#24885 - if ($_.i > $f($_.segend - 7)) { //#24870 - $k[$j++] = 0; //#24870 - break; //#24870 - } //#24870 - if ($get($_.msg, $_.segstart) != 91) { //#24871 - $k[$j++] = 0; //#24871 - break; //#24871 - } //#24871 - if ($get($_.msg, $_.segstart + 1) != 41) { //#24872 - $k[$j++] = 0; //#24872 - break; //#24872 - } //#24872 - if ($get($_.msg, $_.segstart + 2) != 62) { //#24873 - $k[$j++] = 0; //#24873 - break; //#24873 - } //#24873 - if ($get($_.msg, $_.segstart + 3) != 30) { //#24874 - $k[$j++] = 0; //#24874 - break; //#24874 - } //#24874 - var _9b = $get($_.msg, $_.segstart + 4); //#24875 - if ((_9b < 48) || (_9b > 57)) { //#24875 - $k[$j++] = 0; //#24875 - break; //#24875 - } //#24875 - var _9e = $get($_.msg, $_.segstart + 5); //#24876 - if ((_9e < 48) || (_9e > 57)) { //#24876 - $k[$j++] = 0; //#24876 - break; //#24876 - } //#24876 - if ($get($_.msg, $f($_.segend - 1)) != 4) { //#24877 - $k[$j++] = 0; //#24877 - break; //#24877 - } //#24877 - var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#24879 - $k[$j++] = _9o; //#24879 - if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#24879 - $j--; //#24879 - $k[$j++] = $_.mac; //#24879 - break; //#24879 - } //#24879 - if ($get($_.msg, $_.segstart + 6) != 29) { //#24880 - $j--; //#24880 - $k[$j++] = 0; //#24880 - break; //#24880 - } //#24880 - if ($get($_.msg, $f($_.segend - 2)) != 30) { //#24881 - $j--; //#24881 - $k[$j++] = 0; //#24881 - break; //#24881 - } //#24881 - var _9w = $k[--$j]; //#24882 - $k[$j++] = _9w; //#24882 - if (_9w == 5) { //#24882 - $j--; //#24882 - $k[$j++] = $_.m05; //#24882 - break; //#24882 - } //#24882 - if ($k[--$j] == 6) { //#24883 - $k[$j++] = $_.m06; //#24883 - break; //#24883 - } //#24883 - $k[$j++] = $_.m12; //#24884 - break; //#24884 - } //#24884 - $_.inmac = $k[--$j]; //#24886 - if ($_.inmac != 0) { //#24899 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24888 - $_.addtocws(); //#24888 - $_.mode = $_.B; //#24889 - $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#24890 - $_.addtocws(); //#24890 - if ($_.inmac == $_.mac) { //#24896 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#24892 - $_.addtocws(); //#24892 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#24893 - $_.addtocws(); //#24893 - $_.i = $_.i + 6; //#24894 - } else { //#24896 - $_.i = $_.i + 7; //#24896 - } //#24896 - break; //#24898 - } //#24898 - } //#24898 - if ($_.i == $_.segstart) { //#24911 - if ($get($_.nDigits, $_.i) >= 2) { //#24906 - $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#24905 - $_.addtocws(); //#24905 - } //#24905 - if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#24910 - $_.i = $_.i + 1; //#24909 - } //#24909 - } //#24909 - if ($get($_.SeventeenTen, $_.i)) { //#24921 - $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#24918 - $_.addtocws(); //#24918 - $_.i = $_.i + 10; //#24919 - break; //#24920 - } //#24920 - if ($get($_.DatumC, $_.i)) { //#24943 - var _BE = $get($_.msg, $_.i); //#24923 - if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#24939 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#24924 - $_.addtocws(); //#24924 - if ($get($_.ECI, $_.i)) { //#24929 - $k[$j++] = Infinity; //#24926 - $_.ECIabc(); //#24926 - var _BR = $a(); //#24926 - $k[$j++] = _BR; //#24926 - $_.addtocws(); //#24926 - $_.i = $_.i + 7; //#24927 - break; //#24928 - } //#24928 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#24936 - $_.i = $_.i + 1; //#24931 - $_.inmac = 0; //#24932 - $_.segstart = $_.i; //#24933 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#24934 - break; //#24935 - } //#24935 - $_.i = $_.i + 1; //#24937 - break; //#24938 - } //#24938 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#24940 - $_.addtocws(); //#24940 - $_.i = $_.i + 2; //#24941 - break; //#24942 - } //#24942 - if ($get($_.Binary, $_.i)) { //#24957 - if ($get($_.nDigits, $_.i + 1) > 0) { //#24953 - if ($get($_.msg, $_.i) < 160) { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#24947 - $_.addtocws(); //#24947 - } else { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#24949 - $_.addtocws(); //#24949 - } //#24949 - $_.i = $_.i + 1; //#24951 - break; //#24952 - } //#24952 - $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#24954 - $_.addtocws(); //#24954 - $_.mode = $_.BIN; //#24955 - break; //#24956 - } //#24956 - $_.m = $get($_.AheadA, $_.i); //#24958 - $_.n = $get($_.AheadB, $_.i); //#24958 - if ($gt($_.m, $_.n)) { //#24963 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24960 - $_.addtocws(); //#24960 - $_.mode = $_.A; //#24961 - break; //#24962 - } //#24962 - if ($_.i == $_.segstart) { //#24970 - var _Cc = $get($_.msg, $_.i); //#24965 - if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#24969 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24966 - $_.addtocws(); //#24966 - $_.mode = $_.A; //#24967 - break; //#24968 - } //#24968 - } //#24968 - if ($_.n > 4) { //#24975 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24972 - $_.addtocws(); //#24972 - $_.mode = $_.B; //#24973 - break; //#24974 - } //#24974 - $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#24976 - $_.addtocws(); //#24976 - for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#24985 - if ($get($_.msg, $_.i) == 13) { //#24983 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#24979 - $_.addtocws(); //#24979 - $_.i = $_.i + 2; //#24980 - } else { //#24983 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#24982 - $_.addtocws(); //#24982 - $_.i = $_.i + 1; //#24983 - } //#24983 - } //#24983 - break; //#24986 - } //#24986 - }; //#24986 + for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#25290 + if ($_.i == $_.segstart) { //#25203 + for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#25188 + if ($_.i > $f($_.segend - 7)) { //#25173 + $k[$j++] = 0; //#25173 + break; //#25173 + } //#25173 + if ($get($_.msg, $_.segstart) != 91) { //#25174 + $k[$j++] = 0; //#25174 + break; //#25174 + } //#25174 + if ($get($_.msg, $_.segstart + 1) != 41) { //#25175 + $k[$j++] = 0; //#25175 + break; //#25175 + } //#25175 + if ($get($_.msg, $_.segstart + 2) != 62) { //#25176 + $k[$j++] = 0; //#25176 + break; //#25176 + } //#25176 + if ($get($_.msg, $_.segstart + 3) != 30) { //#25177 + $k[$j++] = 0; //#25177 + break; //#25177 + } //#25177 + var _9b = $get($_.msg, $_.segstart + 4); //#25178 + if ((_9b < 48) || (_9b > 57)) { //#25178 + $k[$j++] = 0; //#25178 + break; //#25178 + } //#25178 + var _9e = $get($_.msg, $_.segstart + 5); //#25179 + if ((_9e < 48) || (_9e > 57)) { //#25179 + $k[$j++] = 0; //#25179 + break; //#25179 + } //#25179 + if ($get($_.msg, $f($_.segend - 1)) != 4) { //#25180 + $k[$j++] = 0; //#25180 + break; //#25180 + } //#25180 + var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#25182 + $k[$j++] = _9o; //#25182 + if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#25182 + $j--; //#25182 + $k[$j++] = $_.mac; //#25182 + break; //#25182 + } //#25182 + if ($get($_.msg, $_.segstart + 6) != 29) { //#25183 + $j--; //#25183 + $k[$j++] = 0; //#25183 + break; //#25183 + } //#25183 + if ($get($_.msg, $f($_.segend - 2)) != 30) { //#25184 + $j--; //#25184 + $k[$j++] = 0; //#25184 + break; //#25184 + } //#25184 + var _9w = $k[--$j]; //#25185 + $k[$j++] = _9w; //#25185 + if (_9w == 5) { //#25185 + $j--; //#25185 + $k[$j++] = $_.m05; //#25185 + break; //#25185 + } //#25185 + if ($k[--$j] == 6) { //#25186 + $k[$j++] = $_.m06; //#25186 + break; //#25186 + } //#25186 + $k[$j++] = $_.m12; //#25187 + break; //#25187 + } //#25187 + $_.inmac = $k[--$j]; //#25189 + if ($_.inmac != 0) { //#25202 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25191 + $_.addtocws(); //#25191 + $_.mode = $_.B; //#25192 + $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#25193 + $_.addtocws(); //#25193 + if ($_.inmac == $_.mac) { //#25199 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#25195 + $_.addtocws(); //#25195 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#25196 + $_.addtocws(); //#25196 + $_.i = $_.i + 6; //#25197 + } else { //#25199 + $_.i = $_.i + 7; //#25199 + } //#25199 + break; //#25201 + } //#25201 + } //#25201 + if ($_.i == $_.segstart) { //#25214 + if ($get($_.nDigits, $_.i) >= 2) { //#25209 + $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#25208 + $_.addtocws(); //#25208 + } //#25208 + if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#25213 + $_.i = $_.i + 1; //#25212 + } //#25212 + } //#25212 + if ($get($_.SeventeenTen, $_.i)) { //#25224 + $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#25221 + $_.addtocws(); //#25221 + $_.i = $_.i + 10; //#25222 + break; //#25223 + } //#25223 + if ($get($_.DatumC, $_.i)) { //#25246 + var _BE = $get($_.msg, $_.i); //#25226 + if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#25242 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25227 + $_.addtocws(); //#25227 + if ($get($_.ECI, $_.i)) { //#25232 + $k[$j++] = Infinity; //#25229 + $_.ECIabc(); //#25229 + var _BR = $a(); //#25229 + $k[$j++] = _BR; //#25229 + $_.addtocws(); //#25229 + $_.i = $_.i + 7; //#25230 + break; //#25231 + } //#25231 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#25239 + $_.i = $_.i + 1; //#25234 + $_.inmac = 0; //#25235 + $_.segstart = $_.i; //#25236 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25237 + break; //#25238 + } //#25238 + $_.i = $_.i + 1; //#25240 + break; //#25241 + } //#25241 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25243 + $_.addtocws(); //#25243 + $_.i = $_.i + 2; //#25244 + break; //#25245 + } //#25245 + if ($get($_.Binary, $_.i)) { //#25260 + if ($get($_.nDigits, $_.i + 1) > 0) { //#25256 + if ($get($_.msg, $_.i) < 160) { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25250 + $_.addtocws(); //#25250 + } else { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25252 + $_.addtocws(); //#25252 + } //#25252 + $_.i = $_.i + 1; //#25254 + break; //#25255 + } //#25255 + $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#25257 + $_.addtocws(); //#25257 + $_.mode = $_.BIN; //#25258 + break; //#25259 + } //#25259 + $_.m = $get($_.AheadA, $_.i); //#25261 + $_.n = $get($_.AheadB, $_.i); //#25261 + if ($gt($_.m, $_.n)) { //#25266 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25263 + $_.addtocws(); //#25263 + $_.mode = $_.A; //#25264 + break; //#25265 + } //#25265 + if ($_.i == $_.segstart) { //#25273 + var _Cc = $get($_.msg, $_.i); //#25268 + if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#25272 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25269 + $_.addtocws(); //#25269 + $_.mode = $_.A; //#25270 + break; //#25271 + } //#25271 + } //#25271 + if ($_.n > 4) { //#25278 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25275 + $_.addtocws(); //#25275 + $_.mode = $_.B; //#25276 + break; //#25277 + } //#25277 + $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#25279 + $_.addtocws(); //#25279 + for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#25288 + if ($get($_.msg, $_.i) == 13) { //#25286 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25282 + $_.addtocws(); //#25282 + $_.i = $_.i + 2; //#25283 + } else { //#25286 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25285 + $_.addtocws(); //#25285 + $_.i = $_.i + 1; //#25286 + } //#25286 + } //#25286 + break; //#25289 + } //#25289 + }; //#25289 $_.encB = function() { - for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25063 - $_.n = $get($_.TryC, $_.i); //#24992 - if ($_.n >= 2) { //#25010 - if ($_.n > 4) { //#24998 - $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#24995 - $_.addtocws(); //#24995 - $_.mode = $_.C; //#24996 - break; //#24997 - } //#24997 - $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#24999 - $_.addtocws(); //#24999 - for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25008 - if ($get($_.msg, $_.i) < 0) { //#25006 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25002 - $_.addtocws(); //#25002 - $_.i = $_.i + 1; //#25003 - } else { //#25006 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25005 - $_.addtocws(); //#25005 - $_.i = $_.i + 2; //#25006 - } //#25006 - } //#25006 - break; //#25009 - } //#25009 - if ($get($_.DatumB, $_.i)) { //#25040 - var _E2 = $get($_.msg, $_.i); //#25012 - if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25029 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25013 - $_.addtocws(); //#25013 - if ($get($_.ECI, $_.i)) { //#25018 - $k[$j++] = Infinity; //#25015 - $_.ECIabc(); //#25015 - var _EF = $a(); //#25015 - $k[$j++] = _EF; //#25015 - $_.addtocws(); //#25015 - $_.i = $_.i + 7; //#25016 - break; //#25017 - } //#25017 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25026 - $_.i = $_.i + 1; //#25020 - $_.mode = $_.C; //#25021 - $_.inmac = 0; //#25022 - $_.segstart = $_.i; //#25023 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25024 - break; //#25025 - } //#25025 - $_.i = $_.i + 1; //#25027 - break; //#25028 - } //#25028 - if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25036 - if ($get($_.msg, $_.i + 1) == 10) { //#25035 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25032 - $_.addtocws(); //#25032 - $_.i = $_.i + 2; //#25033 - break; //#25034 - } //#25034 - } //#25034 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25037 - $_.addtocws(); //#25037 - $_.i = $_.i + 1; //#25038 - break; //#25039 - } //#25039 - if ($get($_.Binary, $_.i)) { //#25054 - if ($get($_.DatumB, $_.i + 1)) { //#25050 - if ($get($_.msg, $_.i) < 160) { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25044 - $_.addtocws(); //#25044 - } else { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25046 - $_.addtocws(); //#25046 - } //#25046 - $_.i = $_.i + 1; //#25048 - break; //#25049 - } //#25049 - $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25051 - $_.addtocws(); //#25051 - $_.mode = $_.BIN; //#25052 - break; //#25053 - } //#25053 - if ($get($_.AheadA, $_.i) == 1) { //#25059 - $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25056 - $_.addtocws(); //#25056 - $_.i = $_.i + 1; //#25057 - break; //#25058 - } //#25058 - $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25060 - $_.addtocws(); //#25060 - $_.mode = $_.A; //#25061 - break; //#25062 - } //#25062 - }; //#25062 + for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25366 + $_.n = $get($_.TryC, $_.i); //#25295 + if ($_.n >= 2) { //#25313 + if ($_.n > 4) { //#25301 + $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#25298 + $_.addtocws(); //#25298 + $_.mode = $_.C; //#25299 + break; //#25300 + } //#25300 + $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25302 + $_.addtocws(); //#25302 + for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25311 + if ($get($_.msg, $_.i) < 0) { //#25309 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25305 + $_.addtocws(); //#25305 + $_.i = $_.i + 1; //#25306 + } else { //#25309 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25308 + $_.addtocws(); //#25308 + $_.i = $_.i + 2; //#25309 + } //#25309 + } //#25309 + break; //#25312 + } //#25312 + if ($get($_.DatumB, $_.i)) { //#25343 + var _E2 = $get($_.msg, $_.i); //#25315 + if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25332 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25316 + $_.addtocws(); //#25316 + if ($get($_.ECI, $_.i)) { //#25321 + $k[$j++] = Infinity; //#25318 + $_.ECIabc(); //#25318 + var _EF = $a(); //#25318 + $k[$j++] = _EF; //#25318 + $_.addtocws(); //#25318 + $_.i = $_.i + 7; //#25319 + break; //#25320 + } //#25320 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25329 + $_.i = $_.i + 1; //#25323 + $_.mode = $_.C; //#25324 + $_.inmac = 0; //#25325 + $_.segstart = $_.i; //#25326 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25327 + break; //#25328 + } //#25328 + $_.i = $_.i + 1; //#25330 + break; //#25331 + } //#25331 + if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25339 + if ($get($_.msg, $_.i + 1) == 10) { //#25338 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25335 + $_.addtocws(); //#25335 + $_.i = $_.i + 2; //#25336 + break; //#25337 + } //#25337 + } //#25337 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25340 + $_.addtocws(); //#25340 + $_.i = $_.i + 1; //#25341 + break; //#25342 + } //#25342 + if ($get($_.Binary, $_.i)) { //#25357 + if ($get($_.DatumB, $_.i + 1)) { //#25353 + if ($get($_.msg, $_.i) < 160) { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25347 + $_.addtocws(); //#25347 + } else { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25349 + $_.addtocws(); //#25349 + } //#25349 + $_.i = $_.i + 1; //#25351 + break; //#25352 + } //#25352 + $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25354 + $_.addtocws(); //#25354 + $_.mode = $_.BIN; //#25355 + break; //#25356 + } //#25356 + if ($get($_.AheadA, $_.i) == 1) { //#25362 + $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25359 + $_.addtocws(); //#25359 + $_.i = $_.i + 1; //#25360 + break; //#25361 + } //#25361 + $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25363 + $_.addtocws(); //#25363 + $_.mode = $_.A; //#25364 + break; //#25365 + } //#25365 + }; //#25365 $_.encA = function() { - for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25141 - $_.n = $get($_.TryC, $_.i); //#25068 - if ($_.n >= 2) { //#25086 - if ($_.n > 4) { //#25074 - $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25071 - $_.addtocws(); //#25071 - $_.mode = $_.C; //#25072 - break; //#25073 - } //#25073 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25075 - $_.addtocws(); //#25075 - for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25084 - if ($get($_.msg, $_.i) < 0) { //#25082 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25078 - $_.addtocws(); //#25078 - $_.i = $_.i + 1; //#25079 - } else { //#25082 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25081 - $_.addtocws(); //#25081 - $_.i = $_.i + 2; //#25082 - } //#25082 - } //#25082 - break; //#25085 - } //#25085 - if ($get($_.DatumA, $_.i)) { //#25109 - var _GQ = $get($_.msg, $_.i); //#25088 - if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25105 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25089 - $_.addtocws(); //#25089 - if ($get($_.ECI, $_.i)) { //#25094 - $k[$j++] = Infinity; //#25091 - $_.ECIabc(); //#25091 - var _Gd = $a(); //#25091 - $k[$j++] = _Gd; //#25091 - $_.addtocws(); //#25091 - $_.i = $_.i + 7; //#25092 - break; //#25093 - } //#25093 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25102 - $_.i = $_.i + 1; //#25096 - $_.mode = $_.C; //#25097 - $_.inmac = 0; //#25098 - $_.segstart = $_.i; //#25099 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25100 - break; //#25101 - } //#25101 - $_.i = $_.i + 1; //#25103 - break; //#25104 - } //#25104 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25106 - $_.addtocws(); //#25106 - $_.i = $_.i + 1; //#25107 - break; //#25108 - } //#25108 - if ($get($_.Binary, $_.i)) { //#25123 - if ($get($_.DatumA, $_.i + 1)) { //#25119 - if ($get($_.msg, $_.i) < 160) { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25113 - $_.addtocws(); //#25113 - } else { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25115 - $_.addtocws(); //#25115 - } //#25115 - $_.i = $_.i + 1; //#25117 - break; //#25118 - } //#25118 - $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25120 - $_.addtocws(); //#25120 - $_.mode = $_.BIN; //#25121 - break; //#25122 - } //#25122 - $_.n = $get($_.AheadB, $_.i); //#25124 - if ($_.n > 6) { //#25129 - $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25126 - $_.addtocws(); //#25126 - $_.mode = $_.B; //#25127 - break; //#25128 - } //#25128 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25130 - $_.addtocws(); //#25130 - for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25139 - if ($get($_.msg, $_.i) == 13) { //#25137 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25133 - $_.addtocws(); //#25133 - $_.i = $_.i + 2; //#25134 - } else { //#25137 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25136 - $_.addtocws(); //#25136 - $_.i = $_.i + 1; //#25137 - } //#25137 - } //#25137 - break; //#25140 - } //#25140 - }; //#25140 + for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25444 + $_.n = $get($_.TryC, $_.i); //#25371 + if ($_.n >= 2) { //#25389 + if ($_.n > 4) { //#25377 + $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25374 + $_.addtocws(); //#25374 + $_.mode = $_.C; //#25375 + break; //#25376 + } //#25376 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25378 + $_.addtocws(); //#25378 + for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25387 + if ($get($_.msg, $_.i) < 0) { //#25385 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25381 + $_.addtocws(); //#25381 + $_.i = $_.i + 1; //#25382 + } else { //#25385 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25384 + $_.addtocws(); //#25384 + $_.i = $_.i + 2; //#25385 + } //#25385 + } //#25385 + break; //#25388 + } //#25388 + if ($get($_.DatumA, $_.i)) { //#25412 + var _GQ = $get($_.msg, $_.i); //#25391 + if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25408 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25392 + $_.addtocws(); //#25392 + if ($get($_.ECI, $_.i)) { //#25397 + $k[$j++] = Infinity; //#25394 + $_.ECIabc(); //#25394 + var _Gd = $a(); //#25394 + $k[$j++] = _Gd; //#25394 + $_.addtocws(); //#25394 + $_.i = $_.i + 7; //#25395 + break; //#25396 + } //#25396 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25405 + $_.i = $_.i + 1; //#25399 + $_.mode = $_.C; //#25400 + $_.inmac = 0; //#25401 + $_.segstart = $_.i; //#25402 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25403 + break; //#25404 + } //#25404 + $_.i = $_.i + 1; //#25406 + break; //#25407 + } //#25407 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25409 + $_.addtocws(); //#25409 + $_.i = $_.i + 1; //#25410 + break; //#25411 + } //#25411 + if ($get($_.Binary, $_.i)) { //#25426 + if ($get($_.DatumA, $_.i + 1)) { //#25422 + if ($get($_.msg, $_.i) < 160) { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25416 + $_.addtocws(); //#25416 + } else { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25418 + $_.addtocws(); //#25418 + } //#25418 + $_.i = $_.i + 1; //#25420 + break; //#25421 + } //#25421 + $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25423 + $_.addtocws(); //#25423 + $_.mode = $_.BIN; //#25424 + break; //#25425 + } //#25425 + $_.n = $get($_.AheadB, $_.i); //#25427 + if ($_.n > 6) { //#25432 + $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25429 + $_.addtocws(); //#25429 + $_.mode = $_.B; //#25430 + break; //#25431 + } //#25431 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25433 + $_.addtocws(); //#25433 + for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25442 + if ($get($_.msg, $_.i) == 13) { //#25440 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25436 + $_.addtocws(); //#25436 + $_.i = $_.i + 2; //#25437 + } else { //#25440 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25439 + $_.addtocws(); //#25439 + $_.i = $_.i + 1; //#25440 + } //#25440 + } //#25440 + break; //#25443 + } //#25443 + }; //#25443 $_.encBIN = function() { - for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25203 - $_.n = $get($_.TryC, $_.i); //#25146 - if ($_.n >= 2) { //#25165 - $k[$j++] = Infinity; //#25148 - $_.finaliseBIN(); //#25148 - var _IG = $a(); //#25148 - $k[$j++] = _IG; //#25148 - $_.addtocws(); //#25148 - if ($_.n > 7) { //#25153 - $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25150 - $_.addtocws(); //#25150 - $_.mode = $_.C; //#25151 - break; //#25152 - } //#25152 - $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25154 - $_.addtocws(); //#25154 - for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25163 - if ($get($_.msg, $_.i) < 0) { //#25161 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25157 - $_.addtocws(); //#25157 - $_.i = $_.i + 1; //#25158 - } else { //#25161 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25160 - $_.addtocws(); //#25160 - $_.i = $_.i + 2; //#25161 - } //#25161 - } //#25161 - break; //#25164 - } //#25164 - if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25171 - $k[$j++] = Infinity; //#25167 - $_.ECIbin(); //#25167 - var _J0 = $a(); //#25167 - $k[$j++] = _J0; //#25167 - $_.addtocws(); //#25167 - $_.i = $_.i + 7; //#25168 - if ($_.i == $_.msglen) { //#25169 - $k[$j++] = Infinity; //#25169 - $_.finaliseBIN(); //#25169 - var _J4 = $a(); //#25169 - $k[$j++] = _J4; //#25169 - $_.addtocws(); //#25169 - } //#25169 - break; //#25170 - } //#25170 - if ($get($_.msg, $_.i) >= 0) { //#25181 - if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25180 - $k[$j++] = Infinity; //#25176 - $k[$j++] = $get($_.msg, $_.i); //#25176 - $_.addtobin(); //#25176 - var _JT = $a(); //#25176 - $k[$j++] = _JT; //#25176 - $_.addtocws(); //#25176 - $_.i = $_.i + 1; //#25177 - if ($_.i == $_.msglen) { //#25178 - $k[$j++] = Infinity; //#25178 - $_.finaliseBIN(); //#25178 - var _JX = $a(); //#25178 - $k[$j++] = _JX; //#25178 - $_.addtocws(); //#25178 - } //#25178 - break; //#25179 - } //#25179 - } //#25179 - $k[$j++] = Infinity; //#25182 - $_.finaliseBIN(); //#25182 - var _JY = $a(); //#25182 - $k[$j++] = _JY; //#25182 - $_.addtocws(); //#25182 - if ($_.i != ($_.msglen - 1)) { //#25201 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25192 - $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25185 - $_.addtocws(); //#25185 - $_.i = $_.i + 1; //#25186 - $_.mode = $_.C; //#25187 - $_.inmac = 0; //#25188 - $_.segstart = $_.i; //#25189 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25190 - break; //#25191 - } //#25191 - if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25194 - $_.addtocws(); //#25194 - $_.mode = $_.A; //#25195 - } else { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25197 - $_.addtocws(); //#25197 - $_.mode = $_.B; //#25198 - } //#25198 - break; //#25200 - } //#25200 - break; //#25202 - } //#25202 - }; //#25202 - $_.cws = $a(($_.msglen * 2) + 1); //#25206 - $_.mode = $_.C; //#25207 - $_.bvals = $a(5); //#25208 - $_.bpos = 0; //#25208 - $_.inmac = 0; //#25209 - $_.segstart = 0; //#25209 - $_.segend = $get($_.UntilEndSeg, 0); //#25209 - $_.i = 0; //#25210 - $_.j = 0; //#25210 - for (;;) { //#25223 - if ($_.i >= $_.msglen) { //#25211 - break; //#25211 - } //#25211 - if ($_.inmac != 0) { //#25221 - if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25216 - $_.i = $_.i + 2; //#25214 - if ($_.i >= $_.msglen) { //#25215 - break; //#25215 - } //#25215 - } //#25215 - if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25220 - $_.i = $_.i + 1; //#25218 - if ($_.i >= $_.msglen) { //#25219 - break; //#25219 - } //#25219 - } //#25219 - } //#25219 + for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25506 + $_.n = $get($_.TryC, $_.i); //#25449 + if ($_.n >= 2) { //#25468 + $k[$j++] = Infinity; //#25451 + $_.finaliseBIN(); //#25451 + var _IG = $a(); //#25451 + $k[$j++] = _IG; //#25451 + $_.addtocws(); //#25451 + if ($_.n > 7) { //#25456 + $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25453 + $_.addtocws(); //#25453 + $_.mode = $_.C; //#25454 + break; //#25455 + } //#25455 + $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25457 + $_.addtocws(); //#25457 + for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25466 + if ($get($_.msg, $_.i) < 0) { //#25464 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25460 + $_.addtocws(); //#25460 + $_.i = $_.i + 1; //#25461 + } else { //#25464 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25463 + $_.addtocws(); //#25463 + $_.i = $_.i + 2; //#25464 + } //#25464 + } //#25464 + break; //#25467 + } //#25467 + if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25474 + $k[$j++] = Infinity; //#25470 + $_.ECIbin(); //#25470 + var _J0 = $a(); //#25470 + $k[$j++] = _J0; //#25470 + $_.addtocws(); //#25470 + $_.i = $_.i + 7; //#25471 + if ($_.i == $_.msglen) { //#25472 + $k[$j++] = Infinity; //#25472 + $_.finaliseBIN(); //#25472 + var _J4 = $a(); //#25472 + $k[$j++] = _J4; //#25472 + $_.addtocws(); //#25472 + } //#25472 + break; //#25473 + } //#25473 + if ($get($_.msg, $_.i) >= 0) { //#25484 + if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25483 + $k[$j++] = Infinity; //#25479 + $k[$j++] = $get($_.msg, $_.i); //#25479 + $_.addtobin(); //#25479 + var _JT = $a(); //#25479 + $k[$j++] = _JT; //#25479 + $_.addtocws(); //#25479 + $_.i = $_.i + 1; //#25480 + if ($_.i == $_.msglen) { //#25481 + $k[$j++] = Infinity; //#25481 + $_.finaliseBIN(); //#25481 + var _JX = $a(); //#25481 + $k[$j++] = _JX; //#25481 + $_.addtocws(); //#25481 + } //#25481 + break; //#25482 + } //#25482 + } //#25482 + $k[$j++] = Infinity; //#25485 + $_.finaliseBIN(); //#25485 + var _JY = $a(); //#25485 + $k[$j++] = _JY; //#25485 + $_.addtocws(); //#25485 + if ($_.i != ($_.msglen - 1)) { //#25504 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25495 + $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25488 + $_.addtocws(); //#25488 + $_.i = $_.i + 1; //#25489 + $_.mode = $_.C; //#25490 + $_.inmac = 0; //#25491 + $_.segstart = $_.i; //#25492 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25493 + break; //#25494 + } //#25494 + if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25497 + $_.addtocws(); //#25497 + $_.mode = $_.A; //#25498 + } else { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25500 + $_.addtocws(); //#25500 + $_.mode = $_.B; //#25501 + } //#25501 + break; //#25503 + } //#25503 + break; //#25505 + } //#25505 + }; //#25505 + $_.cws = $a(($_.msglen * 2) + 1); //#25509 + $_.mode = $_.C; //#25510 + $_.bvals = $a(5); //#25511 + $_.bpos = 0; //#25511 + $_.inmac = 0; //#25512 + $_.segstart = 0; //#25512 + $_.segend = $get($_.UntilEndSeg, 0); //#25512 + $_.i = 0; //#25513 + $_.j = 0; //#25513 + for (;;) { //#25526 + if ($_.i >= $_.msglen) { //#25514 + break; //#25514 + } //#25514 + if ($_.inmac != 0) { //#25524 + if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25519 + $_.i = $_.i + 2; //#25517 + if ($_.i >= $_.msglen) { //#25518 + break; //#25518 + } //#25518 + } //#25518 + if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25523 + $_.i = $_.i + 1; //#25521 + if ($_.i >= $_.msglen) { //#25522 + break; //#25522 + } //#25522 + } //#25522 + } //#25522 if ($_[$get($a(['encA', 'encB', 'encC', 'encBIN']), $_.mode)]() === true) { break; - } //#25222 - } //#25222 - $_.cws = $geti($_.cws, 0, $_.j); //#25224 - $_.nd = $_.cws.length; //#25227 - $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25228 - if ($_.ratio != -1) { //#25256 - $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25230 - $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25231 - $_.h = ~~$_.hgt; //#25232 - $_.w = ~~$_.wid; //#25232 - if ((($_.h + $_.w) % 2) == 1) { //#25246 - if (($_.h * $_.w) < $_.minarea) { //#25234 - $_.h = $_.h + 1; //#25234 - $_.w = $_.w + 1; //#25234 - } //#25234 - } else { //#25246 - if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25246 - $_.w = $_.w + 1; //#25237 - if (($_.h * $_.w) < $_.minarea) { //#25241 - $_.w = $_.w - 1; //#25239 - $_.h = $_.h + 1; //#25239 - if (($_.h * $_.w) < $_.minarea) { //#25240 - $_.w = $_.w + 2; //#25240 - } //#25240 - } //#25240 - } else { //#25246 - $_.h = $_.h + 1; //#25243 - if (($_.h * $_.w) < $_.minarea) { //#25247 - $_.h = $_.h - 1; //#25245 - $_.w = $_.w + 1; //#25245 - if (($_.h * $_.w) < $_.minarea) { //#25246 - $_.h = $_.h + 2; //#25246 - } //#25246 - } //#25246 - } //#25246 - } //#25246 - $_.rows = $_.h; //#25250 - $_.columns = $_.w; //#25250 - } else { //#25256 - if ($_.columns == -1) { //#25254 - var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25253 - $k[$j++] = 'columns'; //#25253 - $k[$j++] = _LN; //#25253 - if (((_LN + $_.rows) % 2) == 0) { //#25253 - var _LP = $k[--$j]; //#25253 - $k[$j++] = $f(_LP + 1); //#25253 - } //#25253 - var _LQ = $k[--$j]; //#25253 - $_[$k[--$j]] = _LQ; //#25253 - } //#25253 - if ($_.rows == -1) { //#25257 - var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25256 - $k[$j++] = 'rows'; //#25256 - $k[$j++] = _LW; //#25256 - if (((_LW + $_.columns) % 2) == 0) { //#25256 - var _LY = $k[--$j]; //#25256 - $k[$j++] = $f(_LY + 1); //#25256 - } //#25256 - var _LZ = $k[--$j]; //#25256 - $_[$k[--$j]] = _LZ; //#25256 - } //#25256 - } //#25256 - $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25261 - for (;;) { //#25265 - var _Le = $_.nd + 1; //#25263 - if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25263 - break; //#25263 - } //#25263 - $_.nd = $_.nd + 1; //#25264 - } //#25264 - $_.nc = (~~($_.nd / 2)) + 3; //#25266 - $_.nw = $_.nd + $_.nc; //#25267 - $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25268 - if ($_.nd > $_.cws.length) { //#25275 - $k[$j++] = Infinity; //#25273 - $aload($_.cws); //#25271 - var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25272 - $k[$j++] = _Lr; //#25273 - for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25273 - $k[$j++] = 106; //#25273 - } //#25273 - $_.cws = $a(); //#25273 - } //#25274 - var _Ly = $get($_.options, 'debugcws') !== undefined; //#25277 - if (_Ly) { //#25277 - $k[$j++] = 'bwipp.debugcws#25277'; //#25277 - $k[$j++] = $_.cws; //#25277 - bwipp_raiseerror(); //#25277 - } //#25277 - if (($_.nw * 9) > ($_.ndots - 2)) { //#25282 - $k[$j++] = 'bwipp.dotcodeTooLong#25281'; //#25281 - $k[$j++] = "Maximum length exceeded"; //#25281 - bwipp_raiseerror(); //#25281 - } //#25281 - if (!bwipp_dotcode.__25311__) { //#25311 - $_ = Object.create($_); //#25311 - $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25310 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25310 - bwipp_dotcode.__25311__ = 1; //#25310 - $_ = Object.getPrototypeOf($_); //#25310 - } //#25310 - if (($_.rows % 2) == 0) { //#25331 - $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25322 - } else { //#25331 - $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25331 - } //#25331 + } //#25525 + } //#25525 + $_.cws = $geti($_.cws, 0, $_.j); //#25527 + $_.nd = $_.cws.length; //#25530 + $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25531 + if ($_.ratio != -1) { //#25559 + $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25533 + $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25534 + $_.h = ~~$_.hgt; //#25535 + $_.w = ~~$_.wid; //#25535 + if ((($_.h + $_.w) % 2) == 1) { //#25549 + if (($_.h * $_.w) < $_.minarea) { //#25537 + $_.h = $_.h + 1; //#25537 + $_.w = $_.w + 1; //#25537 + } //#25537 + } else { //#25549 + if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25549 + $_.w = $_.w + 1; //#25540 + if (($_.h * $_.w) < $_.minarea) { //#25544 + $_.w = $_.w - 1; //#25542 + $_.h = $_.h + 1; //#25542 + if (($_.h * $_.w) < $_.minarea) { //#25543 + $_.w = $_.w + 2; //#25543 + } //#25543 + } //#25543 + } else { //#25549 + $_.h = $_.h + 1; //#25546 + if (($_.h * $_.w) < $_.minarea) { //#25550 + $_.h = $_.h - 1; //#25548 + $_.w = $_.w + 1; //#25548 + if (($_.h * $_.w) < $_.minarea) { //#25549 + $_.h = $_.h + 2; //#25549 + } //#25549 + } //#25549 + } //#25549 + } //#25549 + $_.rows = $_.h; //#25553 + $_.columns = $_.w; //#25553 + } else { //#25559 + if ($_.columns == -1) { //#25557 + var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25556 + $k[$j++] = 'columns'; //#25556 + $k[$j++] = _LN; //#25556 + if (((_LN + $_.rows) % 2) == 0) { //#25556 + var _LP = $k[--$j]; //#25556 + $k[$j++] = $f(_LP + 1); //#25556 + } //#25556 + var _LQ = $k[--$j]; //#25556 + $_[$k[--$j]] = _LQ; //#25556 + } //#25556 + if ($_.rows == -1) { //#25560 + var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25559 + $k[$j++] = 'rows'; //#25559 + $k[$j++] = _LW; //#25559 + if (((_LW + $_.columns) % 2) == 0) { //#25559 + var _LY = $k[--$j]; //#25559 + $k[$j++] = $f(_LY + 1); //#25559 + } //#25559 + var _LZ = $k[--$j]; //#25559 + $_[$k[--$j]] = _LZ; //#25559 + } //#25559 + } //#25559 + $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25564 + for (;;) { //#25568 + var _Le = $_.nd + 1; //#25566 + if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25566 + break; //#25566 + } //#25566 + $_.nd = $_.nd + 1; //#25567 + } //#25567 + $_.nc = (~~($_.nd / 2)) + 3; //#25569 + $_.nw = $_.nd + $_.nc; //#25570 + $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25571 + if ($_.nd > $_.cws.length) { //#25578 + $k[$j++] = Infinity; //#25573 + $aload($_.cws); //#25574 + var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25575 + $k[$j++] = _Lr; //#25576 + for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25576 + $k[$j++] = 106; //#25576 + } //#25576 + $_.cws = $a(); //#25576 + } //#25577 + var _Ly = $get($_.options, 'debugcws') !== undefined; //#25580 + if (_Ly) { //#25580 + $k[$j++] = 'bwipp.debugcws#25580'; //#25580 + $k[$j++] = $_.cws; //#25580 + bwipp_raiseerror(); //#25580 + } //#25580 + if (($_.nw * 9) > ($_.ndots - 2)) { //#25585 + $k[$j++] = 'bwipp.dotcodeTooLong#25584'; //#25584 + $k[$j++] = "Maximum length exceeded"; //#25584 + bwipp_raiseerror(); //#25584 + } //#25584 + if (!bwipp_dotcode.__25614__) { //#25614 + $_ = Object.create($_); //#25614 + $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25613 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25613 + bwipp_dotcode.__25614__ = 1; //#25613 + $_ = Object.getPrototypeOf($_); //#25613 + } //#25613 + if (($_.rows % 2) == 0) { //#25634 + $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25625 + } else { //#25634 + $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25634 + } //#25634 $_.dmv = function() { - var _MY = $k[--$j]; //#25334 - var _MZ = $k[--$j]; //#25334 - $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25334 - }; //#25334 - $_.outline = $a($_.rows * $_.columns); //#25337 - for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25344 - $_.y = _Mf; //#25339 - for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25343 - $_.x = _Mi; //#25341 - $k[$j++] = $_.outline; //#25342 - $k[$j++] = $_.x; //#25342 - $k[$j++] = $_.y; //#25342 - $_.dmv(); //#25342 - var _Mo = $k[--$j]; //#25342 - $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25342 - } //#25342 - } //#25342 - var _Mq = $_.sixedges; //#25345 - for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25347 - $k[$j++] = $_.outline; //#25346 - $aload($get(_Mq, _Mr)); //#25346 - $_.dmv(); //#25346 - var _Mv = $k[--$j]; //#25346 - $put($k[--$j], _Mv, 1); //#25346 - } //#25346 + var _MY = $k[--$j]; //#25637 + var _MZ = $k[--$j]; //#25637 + $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25637 + }; //#25637 + $_.outline = $a($_.rows * $_.columns); //#25640 + for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25647 + $_.y = _Mf; //#25642 + for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25646 + $_.x = _Mi; //#25644 + $k[$j++] = $_.outline; //#25645 + $k[$j++] = $_.x; //#25645 + $k[$j++] = $_.y; //#25645 + $_.dmv(); //#25645 + var _Mo = $k[--$j]; //#25645 + $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25645 + } //#25645 + } //#25645 + var _Mq = $_.sixedges; //#25648 + for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25650 + $k[$j++] = $_.outline; //#25649 + $aload($get(_Mq, _Mr)); //#25649 + $_.dmv(); //#25649 + var _Mv = $k[--$j]; //#25649 + $put($k[--$j], _Mv, 1); //#25649 + } //#25649 $_.clearcol = function() { - $_.x = $k[--$j]; //#25350 - $k[$j++] = true; //#25354 - for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25354 - $k[$j++] = $_.x; //#25353 - $k[$j++] = _N1; //#25353 - $_.dmv(); //#25353 - if ($get($_.sym, $k[--$j]) == 1) { //#25353 - $j--; //#25353 - $k[$j++] = false; //#25353 - break; //#25353 - } //#25353 - } //#25353 - }; //#25353 + $_.x = $k[--$j]; //#25653 + $k[$j++] = true; //#25657 + for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25657 + $k[$j++] = $_.x; //#25656 + $k[$j++] = _N1; //#25656 + $_.dmv(); //#25656 + if ($get($_.sym, $k[--$j]) == 1) { //#25656 + $j--; //#25656 + $k[$j++] = false; //#25656 + break; //#25656 + } //#25656 + } //#25656 + }; //#25656 $_.clearrow = function() { - $_.y = $k[--$j]; //#25358 - $k[$j++] = true; //#25362 - for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25362 - $k[$j++] = _NA; //#25361 - $k[$j++] = $_.y; //#25361 - $_.dmv(); //#25361 - if ($get($_.sym, $k[--$j]) == 1) { //#25361 - $j--; //#25361 - $k[$j++] = false; //#25361 - break; //#25361 - } //#25361 - } //#25361 - }; //#25361 + $_.y = $k[--$j]; //#25661 + $k[$j++] = true; //#25665 + for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25665 + $k[$j++] = _NA; //#25664 + $k[$j++] = $_.y; //#25664 + $_.dmv(); //#25664 + if ($get($_.sym, $k[--$j]) == 1) { //#25664 + $j--; //#25664 + $k[$j++] = false; //#25664 + break; //#25664 + } //#25664 + } //#25664 + }; //#25664 $_.evalsymbol = function() { - $_.sym = $k[--$j]; //#25367 - $_.worst = 9999999; //#25370 - var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25371 - for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25389 - $aload($get(_NK, _NL)); //#25372 - $_.fl = $k[--$j]; //#25372 - $_.dir = $k[--$j]; //#25372 - $_.sum = 0; //#25373 - $_.first = -1; //#25373 - $_.last = -1; //#25373 - var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25374 - for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25385 - $_[$_.dir] = _NT; //#25375 - var _NV = $_.sym; //#25376 - var _NX = $_[$_.dir]; //#25377 - var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25378 - var _Nc = (_NZ - 1) * $_.fl; //#25379 - if ($eq($_.dir, 'y')) { //#25379 - var _ = _Nc; //#25379 - _Nc = _NX; //#25379 - _NX = _; //#25379 - } //#25379 - $k[$j++] = _NV; //#25380 - $k[$j++] = _NX; //#25380 - $k[$j++] = _Nc; //#25380 - $_.dmv(); //#25380 - var _Nd = $k[--$j]; //#25380 - if ($get($k[--$j], _Nd) == 1) { //#25384 - if ($_.first == -1) { //#25381 - $_.first = $_[$_.dir]; //#25381 - } //#25381 - $_.last = $_[$_.dir]; //#25382 - $_.sum = $_.sum + 1; //#25383 - } //#25383 - } //#25383 - var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25387 - var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25388 - $k[$j++] = _Nr; //#25388 - if (_Nr < $_.worst) { //#25388 - $_.worst = $k[--$j]; //#25388 - } else { //#25388 - $j--; //#25388 - } //#25388 - } //#25388 - $_.pen = 0; //#25391 - if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25409 - $_.sum = 0; //#25397 - $_.p = 0; //#25397 - for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25407 - $k[$j++] = _Ny; //#25399 - $_.clearcol(); //#25399 - if ($k[--$j]) { //#25405 - $_.sum = $_.sum + 1; //#25400 - $k[$j++] = 'p'; //#25401 - if ($_.sum == 1) { //#25401 - $k[$j++] = $_.rows; //#25401 - } else { //#25401 - $k[$j++] = $_.p * $_.rows; //#25401 - } //#25401 - var _O5 = $k[--$j]; //#25401 - $_[$k[--$j]] = _O5; //#25401 - } else { //#25405 - $_.sum = 0; //#25403 - $_.pen = $_.pen + $_.p; //#25404 - $_.p = 0; //#25405 - } //#25405 - } //#25405 - $_.pen = $_.pen + $_.p; //#25408 - } //#25408 - if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25427 - $_.sum = 0; //#25415 - $_.p = 0; //#25415 - for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25425 - $k[$j++] = _OF; //#25417 - $_.clearrow(); //#25417 - if ($k[--$j]) { //#25423 - $_.sum = $_.sum + 1; //#25418 - $k[$j++] = 'p'; //#25419 - if ($_.sum == 1) { //#25419 - $k[$j++] = $_.columns; //#25419 - } else { //#25419 - $k[$j++] = $_.p * $_.columns; //#25419 - } //#25419 - var _OM = $k[--$j]; //#25419 - $_[$k[--$j]] = _OM; //#25419 - } else { //#25423 - $_.sum = 0; //#25421 - $_.pen = $_.pen + $_.p; //#25422 - $_.p = 0; //#25423 - } //#25423 - } //#25423 - $_.pen = $_.pen + $_.p; //#25426 - } //#25426 - $k[$j++] = Infinity; //#25437 - for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25431 - $k[$j++] = 0; //#25431 - } //#25431 - for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25436 - $k[$j++] = 0; //#25434 - $k[$j++] = 0; //#25434 - $aload($geti($_.sym, _OY, $_.columns)); //#25434 - $k[$j++] = 0; //#25435 - $k[$j++] = 0; //#25435 - } //#25435 - for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25437 - $k[$j++] = 0; //#25437 - } //#25437 - $_.symp = $a(); //#25437 - $_.columns = $_.columns + 4; //#25441 - $_.rows = $_.rows + 4; //#25442 - $_.sum = 0; //#25443 - for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25461 - $_.y = _Ol; //#25445 - for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25460 - $_.x = _Op; //#25447 - for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25459 - $k[$j++] = $_.symp; //#25449 - $k[$j++] = $_.x - 1; //#25449 - $k[$j++] = $_.y - 1; //#25449 - $_.dmv(); //#25449 - var _Ov = $k[--$j]; //#25449 - if ($get($k[--$j], _Ov) == 1) { //#25449 - break; //#25449 - } //#25449 - $k[$j++] = $_.symp; //#25450 - $k[$j++] = $_.x + 1; //#25450 - $k[$j++] = $_.y - 1; //#25450 - $_.dmv(); //#25450 - var _P1 = $k[--$j]; //#25450 - if ($get($k[--$j], _P1) == 1) { //#25450 - break; //#25450 - } //#25450 - $k[$j++] = $_.symp; //#25451 - $k[$j++] = $_.x - 1; //#25451 - $k[$j++] = $_.y + 1; //#25451 - $_.dmv(); //#25451 - var _P7 = $k[--$j]; //#25451 - if ($get($k[--$j], _P7) == 1) { //#25451 - break; //#25451 - } //#25451 - $k[$j++] = $_.symp; //#25452 - $k[$j++] = $_.x + 1; //#25452 - $k[$j++] = $_.y + 1; //#25452 - $_.dmv(); //#25452 - var _PD = $k[--$j]; //#25452 - if ($get($k[--$j], _PD) == 1) { //#25452 - break; //#25452 - } //#25452 - $k[$j++] = $_.symp; //#25453 - $k[$j++] = $_.x; //#25453 - $k[$j++] = $_.y; //#25453 - $_.dmv(); //#25453 - var _PJ = $k[--$j]; //#25453 - if ($get($k[--$j], _PJ) == 0) { //#25453 - $_.sum = $_.sum + 1; //#25453 - break; //#25453 - } //#25453 - $k[$j++] = $_.symp; //#25454 - $k[$j++] = $_.x - 2; //#25454 - $k[$j++] = $_.y; //#25454 - $_.dmv(); //#25454 - var _PQ = $k[--$j]; //#25454 - if ($get($k[--$j], _PQ) == 1) { //#25454 - break; //#25454 - } //#25454 - $k[$j++] = $_.symp; //#25455 - $k[$j++] = $_.x; //#25455 - $k[$j++] = $_.y - 2; //#25455 - $_.dmv(); //#25455 - var _PW = $k[--$j]; //#25455 - if ($get($k[--$j], _PW) == 1) { //#25455 - break; //#25455 - } //#25455 - $k[$j++] = $_.symp; //#25456 - $k[$j++] = $_.x + 2; //#25456 - $k[$j++] = $_.y; //#25456 - $_.dmv(); //#25456 - var _Pc = $k[--$j]; //#25456 - if ($get($k[--$j], _Pc) == 1) { //#25456 - break; //#25456 - } //#25456 - $k[$j++] = $_.symp; //#25457 - $k[$j++] = $_.x; //#25457 - $k[$j++] = $_.y + 2; //#25457 - $_.dmv(); //#25457 - var _Pi = $k[--$j]; //#25457 - if ($get($k[--$j], _Pi) == 1) { //#25457 - break; //#25457 - } //#25457 - $_.sum = $_.sum + 1; //#25458 - } //#25458 - } //#25458 - } //#25458 - $_.columns = $_.columns - 4; //#25462 - $_.rows = $_.rows - 4; //#25463 - if ($_.worst == 0) { //#25468 - $k[$j++] = -99999; //#25466 - } else { //#25468 - $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25468 - } //#25468 - }; //#25468 - $k[$j++] = Infinity; //#25474 - $k[$j++] = 1; //#25474 - for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25474 - var _Pv = $k[--$j]; //#25474 - $k[$j++] = _Pv; //#25474 - $k[$j++] = (_Pv * 3) % 113; //#25474 - } //#25474 - $_.rsalog = $a(); //#25474 - $_.step = (~~($_.nw / 112)) + 1; //#25475 + $_.sym = $k[--$j]; //#25670 + $_.worst = 9999999; //#25673 + var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25674 + for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25692 + $aload($get(_NK, _NL)); //#25675 + $_.fl = $k[--$j]; //#25675 + $_.dir = $k[--$j]; //#25675 + $_.sum = 0; //#25676 + $_.first = -1; //#25676 + $_.last = -1; //#25676 + var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25677 + for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25688 + $_[$_.dir] = _NT; //#25678 + var _NV = $_.sym; //#25679 + var _NX = $_[$_.dir]; //#25680 + var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25681 + var _Nc = (_NZ - 1) * $_.fl; //#25682 + if ($eq($_.dir, 'y')) { //#25682 + var _ = _Nc; //#25682 + _Nc = _NX; //#25682 + _NX = _; //#25682 + } //#25682 + $k[$j++] = _NV; //#25683 + $k[$j++] = _NX; //#25683 + $k[$j++] = _Nc; //#25683 + $_.dmv(); //#25683 + var _Nd = $k[--$j]; //#25683 + if ($get($k[--$j], _Nd) == 1) { //#25687 + if ($_.first == -1) { //#25684 + $_.first = $_[$_.dir]; //#25684 + } //#25684 + $_.last = $_[$_.dir]; //#25685 + $_.sum = $_.sum + 1; //#25686 + } //#25686 + } //#25686 + var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25690 + var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25691 + $k[$j++] = _Nr; //#25691 + if (_Nr < $_.worst) { //#25691 + $_.worst = $k[--$j]; //#25691 + } else { //#25691 + $j--; //#25691 + } //#25691 + } //#25691 + $_.pen = 0; //#25694 + if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25712 + $_.sum = 0; //#25700 + $_.p = 0; //#25700 + for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25710 + $k[$j++] = _Ny; //#25702 + $_.clearcol(); //#25702 + if ($k[--$j]) { //#25708 + $_.sum = $_.sum + 1; //#25703 + $k[$j++] = 'p'; //#25704 + if ($_.sum == 1) { //#25704 + $k[$j++] = $_.rows; //#25704 + } else { //#25704 + $k[$j++] = $_.p * $_.rows; //#25704 + } //#25704 + var _O5 = $k[--$j]; //#25704 + $_[$k[--$j]] = _O5; //#25704 + } else { //#25708 + $_.sum = 0; //#25706 + $_.pen = $_.pen + $_.p; //#25707 + $_.p = 0; //#25708 + } //#25708 + } //#25708 + $_.pen = $_.pen + $_.p; //#25711 + } //#25711 + if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25730 + $_.sum = 0; //#25718 + $_.p = 0; //#25718 + for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25728 + $k[$j++] = _OF; //#25720 + $_.clearrow(); //#25720 + if ($k[--$j]) { //#25726 + $_.sum = $_.sum + 1; //#25721 + $k[$j++] = 'p'; //#25722 + if ($_.sum == 1) { //#25722 + $k[$j++] = $_.columns; //#25722 + } else { //#25722 + $k[$j++] = $_.p * $_.columns; //#25722 + } //#25722 + var _OM = $k[--$j]; //#25722 + $_[$k[--$j]] = _OM; //#25722 + } else { //#25726 + $_.sum = 0; //#25724 + $_.pen = $_.pen + $_.p; //#25725 + $_.p = 0; //#25726 + } //#25726 + } //#25726 + $_.pen = $_.pen + $_.p; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25733 + for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25734 + $k[$j++] = 0; //#25734 + } //#25734 + for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25739 + $k[$j++] = 0; //#25737 + $k[$j++] = 0; //#25737 + $aload($geti($_.sym, _OY, $_.columns)); //#25737 + $k[$j++] = 0; //#25738 + $k[$j++] = 0; //#25738 + } //#25738 + for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25740 + $k[$j++] = 0; //#25740 + } //#25740 + $_.symp = $a(); //#25740 + $_.columns = $_.columns + 4; //#25744 + $_.rows = $_.rows + 4; //#25745 + $_.sum = 0; //#25746 + for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25764 + $_.y = _Ol; //#25748 + for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25763 + $_.x = _Op; //#25750 + for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25762 + $k[$j++] = $_.symp; //#25752 + $k[$j++] = $_.x - 1; //#25752 + $k[$j++] = $_.y - 1; //#25752 + $_.dmv(); //#25752 + var _Ov = $k[--$j]; //#25752 + if ($get($k[--$j], _Ov) == 1) { //#25752 + break; //#25752 + } //#25752 + $k[$j++] = $_.symp; //#25753 + $k[$j++] = $_.x + 1; //#25753 + $k[$j++] = $_.y - 1; //#25753 + $_.dmv(); //#25753 + var _P1 = $k[--$j]; //#25753 + if ($get($k[--$j], _P1) == 1) { //#25753 + break; //#25753 + } //#25753 + $k[$j++] = $_.symp; //#25754 + $k[$j++] = $_.x - 1; //#25754 + $k[$j++] = $_.y + 1; //#25754 + $_.dmv(); //#25754 + var _P7 = $k[--$j]; //#25754 + if ($get($k[--$j], _P7) == 1) { //#25754 + break; //#25754 + } //#25754 + $k[$j++] = $_.symp; //#25755 + $k[$j++] = $_.x + 1; //#25755 + $k[$j++] = $_.y + 1; //#25755 + $_.dmv(); //#25755 + var _PD = $k[--$j]; //#25755 + if ($get($k[--$j], _PD) == 1) { //#25755 + break; //#25755 + } //#25755 + $k[$j++] = $_.symp; //#25756 + $k[$j++] = $_.x; //#25756 + $k[$j++] = $_.y; //#25756 + $_.dmv(); //#25756 + var _PJ = $k[--$j]; //#25756 + if ($get($k[--$j], _PJ) == 0) { //#25756 + $_.sum = $_.sum + 1; //#25756 + break; //#25756 + } //#25756 + $k[$j++] = $_.symp; //#25757 + $k[$j++] = $_.x - 2; //#25757 + $k[$j++] = $_.y; //#25757 + $_.dmv(); //#25757 + var _PQ = $k[--$j]; //#25757 + if ($get($k[--$j], _PQ) == 1) { //#25757 + break; //#25757 + } //#25757 + $k[$j++] = $_.symp; //#25758 + $k[$j++] = $_.x; //#25758 + $k[$j++] = $_.y - 2; //#25758 + $_.dmv(); //#25758 + var _PW = $k[--$j]; //#25758 + if ($get($k[--$j], _PW) == 1) { //#25758 + break; //#25758 + } //#25758 + $k[$j++] = $_.symp; //#25759 + $k[$j++] = $_.x + 2; //#25759 + $k[$j++] = $_.y; //#25759 + $_.dmv(); //#25759 + var _Pc = $k[--$j]; //#25759 + if ($get($k[--$j], _Pc) == 1) { //#25759 + break; //#25759 + } //#25759 + $k[$j++] = $_.symp; //#25760 + $k[$j++] = $_.x; //#25760 + $k[$j++] = $_.y + 2; //#25760 + $_.dmv(); //#25760 + var _Pi = $k[--$j]; //#25760 + if ($get($k[--$j], _Pi) == 1) { //#25760 + break; //#25760 + } //#25760 + $_.sum = $_.sum + 1; //#25761 + } //#25761 + } //#25761 + } //#25761 + $_.columns = $_.columns - 4; //#25765 + $_.rows = $_.rows - 4; //#25766 + if ($_.worst == 0) { //#25771 + $k[$j++] = -99999; //#25769 + } else { //#25771 + $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25771 + } //#25771 + }; //#25771 + if (!bwipp_dotcode.__25779__) { //#25779 + $_ = Object.create($_); //#25779 + $k[$j++] = Infinity; //#25778 + $k[$j++] = 1; //#25778 + for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25778 + var _Pv = $k[--$j]; //#25778 + $k[$j++] = _Pv; //#25778 + $k[$j++] = (_Pv * 3) % 113; //#25778 + } //#25778 + $_.rsalog = $a(); //#25778 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25778 + bwipp_dotcode.__25779__ = 1; //#25778 + $_ = Object.getPrototypeOf($_); //#25778 + } //#25778 + $_.step = (~~($_.nw / 112)) + 1; //#25780 $_.offset = function() { - var _Pz = $k[--$j]; //#25476 - $k[$j++] = $f((_Pz * $_.step) + $_.start); //#25476 - }; //#25476 - $_.bestscore = -99999999; //#25484 - $k[$j++] = 'masks'; //#25489 - if ($_.mask != -1) { //#25488 - $k[$j++] = $a([$_.mask]); //#25486 - } else { //#25488 - if ($_.fast) { //#25488 - $k[$j++] = $a([3, 2, 1, 0]); //#25488 - } else { //#25488 - $k[$j++] = $a([0, 1, 2, 3]); //#25488 - } //#25488 - } //#25488 - var _Q7 = $k[--$j]; //#25489 - $_[$k[--$j]] = _Q7; //#25489 - $_.litmasks = $a(4); //#25490 - $forall($_.masks, function() { //#25592 - $_.mask = $k[--$j]; //#25493 - $k[$j++] = Infinity; //#25499 - var _QG = $_.cws; //#25498 - $k[$j++] = $_.mask; //#25498 - $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25498 - $k[$j++] = 0; //#25498 - for (var _QH = 0, _QI = _QG.length; _QH < _QI; _QH++) { //#25498 - var _QK = $k[--$j]; //#25498 - var _QL = $k[--$j]; //#25498 - $k[$j++] = $f($get(_QG, _QH) + _QK) % 113; //#25498 - $k[$j++] = _QL; //#25498 - $k[$j++] = $f(_QK + _QL); //#25498 - } //#25498 - $j -= 2; //#25498 - for (var _QN = 0, _QO = $_.nc; _QN < _QO; _QN++) { //#25499 - $k[$j++] = 0; //#25499 - } //#25499 - $_.rscws = $a(); //#25499 - for (var _QS = 0, _QR = $_.step - 1; _QS <= _QR; _QS += 1) { //#25523 - $_.start = _QS; //#25502 - $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25503 - $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25504 - $_.NC = $_.NW - $_.ND; //#25505 - $k[$j++] = Infinity; //#25506 - $k[$j++] = 1; //#25506 - for (var _Qe = 0, _Qf = $_.NC; _Qe < _Qf; _Qe++) { //#25506 - $k[$j++] = 0; //#25506 - } //#25506 - $_.coeffs = $a(); //#25506 - for (var _Qj = 1, _Qi = $_.NC; _Qj <= _Qi; _Qj += 1) { //#25513 - $_.i = _Qj; //#25508 - for (var _Ql = $_.NC; _Ql >= 1; _Ql -= 1) { //#25512 - $_.j = _Ql; //#25510 - $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25511 - } //#25511 - } //#25511 - for (var _Qz = 0, _Qy = $_.ND - 1; _Qz <= _Qy; _Qz += 1) { //#25521 - $k[$j++] = 't'; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = _Qz; //#25515 - $_.offset(); //#25515 - var _R1 = $k[--$j]; //#25515 - var _R3 = $get($k[--$j], _R1); //#25515 - $k[$j++] = _R3; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = $_.ND; //#25515 - $_.offset(); //#25515 - var _R6 = $k[--$j]; //#25515 - var _R8 = $get($k[--$j], _R6); //#25515 - var _R9 = $k[--$j]; //#25515 - $_[$k[--$j]] = $f(_R9 + _R8) % 113; //#25515 - for (var _RD = 0, _RC = $_.NC - 2; _RD <= _RC; _RD += 1) { //#25519 - $_.j = _RD; //#25517 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = $_.ND + $_.j; //#25518 - $_.offset(); //#25518 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = ($_.ND + $_.j) + 1; //#25518 - $_.offset(); //#25518 - var _RK = $k[--$j]; //#25518 - var _RM = $get($k[--$j], _RK); //#25518 - var _RR = $k[--$j]; //#25518 - $put($k[--$j], _RR, ($f($f(_RM + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25518 - } //#25518 - $k[$j++] = $_.rscws; //#25520 - $k[$j++] = ($_.ND + $_.NC) - 1; //#25520 - $_.offset(); //#25520 - var _Ra = $k[--$j]; //#25520 - $put($k[--$j], _Ra, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25520 - } //#25520 - for (var _Rf = $_.ND, _Re = $_.NW - 1; _Rf <= _Re; _Rf += 1) { //#25522 - $k[$j++] = _Rf; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rf; //#25522 - $_.offset(); //#25522 - var _Ri = $k[--$j]; //#25522 - var _Rj = $k[--$j]; //#25522 - var _Rk = $k[--$j]; //#25522 - $k[$j++] = _Rj; //#25522 - $k[$j++] = _Ri; //#25522 - $k[$j++] = 113; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rk; //#25522 - $_.offset(); //#25522 - var _Rl = $k[--$j]; //#25522 - var _Rn = $get($k[--$j], _Rl); //#25522 - var _Ro = $k[--$j]; //#25522 - var _Rp = $k[--$j]; //#25522 - $put($k[--$j], _Rp, $f(_Ro - _Rn) % 113); //#25522 - } //#25522 - } //#25522 - $_.bits = $s($_.ndots); //#25526 - $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25527 - for (var _Rz = 1, _Ry = $_.nw; _Rz <= _Ry; _Rz += 1) { //#25531 - $_.i = _Rz; //#25529 - $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25530 - } //#25530 - if ($_.rembits > 0) { //#25534 - $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25533 - } //#25533 - var _SC = $_.outline; //#25537 - $_.pixs = $arrcpy($a(_SC.length), _SC); //#25537 - $_.posx = 0; //#25538 - $k[$j++] = 'posy'; //#25539 - if (($_.rows % 2) == 0) { //#25539 - $k[$j++] = 0; //#25539 - } else { //#25539 - $k[$j++] = $_.rows - 1; //#25539 - } //#25539 - var _SH = $k[--$j]; //#25539 - $_[$k[--$j]] = _SH; //#25539 - var _SL = $geti($_.bits, 0, $_.bits.length - 6); //#25540 - for (var _SM = 0, _SN = _SL.length; _SM < _SN; _SM++) { //#25558 - $k[$j++] = $get(_SL, _SM); //#25556 - for (;;) { //#25556 - $k[$j++] = $_.pixs; //#25542 - $k[$j++] = $_.posx; //#25542 - $k[$j++] = $_.posy; //#25542 - $_.dmv(); //#25542 - var _SS = $k[--$j]; //#25542 - if ($get($k[--$j], _SS) == -1) { //#25542 - break; //#25542 - } //#25542 - if (($_.rows % 2) == 0) { //#25553 - $_.posy = $_.posy + 1; //#25544 - if ($_.posy == $_.rows) { //#25548 - $_.posy = 0; //#25546 - $_.posx = $_.posx + 1; //#25547 - } //#25547 - } else { //#25553 - $_.posx = $_.posx + 1; //#25550 - if ($_.posx == $_.columns) { //#25554 - $_.posx = 0; //#25552 - $_.posy = $_.posy - 1; //#25553 - } //#25553 - } //#25553 - } //#25553 - $k[$j++] = $_.pixs; //#25557 - $k[$j++] = $_.posx; //#25557 - $k[$j++] = $_.posy; //#25557 - $_.dmv(); //#25557 - var _Sh = $k[--$j]; //#25557 - var _Si = $k[--$j]; //#25557 - $put(_Si, _Sh, $f($k[--$j] - 48)); //#25557 - } //#25557 - for (var _Sk = 0; _Sk <= 5; _Sk += 1) { //#25563 - $_.i = _Sk; //#25560 - $k[$j++] = $_.pixs; //#25561 - $aload($get($_.sixedges, $_.i)); //#25561 - $_.dmv(); //#25561 - var _St = $k[--$j]; //#25562 - $put($k[--$j], _St, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25562 - } //#25562 - $k[$j++] = 'score'; //#25566 - $k[$j++] = $_.pixs; //#25566 - $_.evalsymbol(); //#25566 - var _Sw = $k[--$j]; //#25566 - $_[$k[--$j]] = _Sw; //#25566 - if ($_.score > $_.bestscore) { //#25571 - $_.bestsym = $_.pixs; //#25568 - $_.bestscore = $_.score; //#25569 - if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25570 - return true; //#25570 - } //#25570 - } //#25570 - var _T6 = $_.pixs; //#25574 - $_.litmask = $arrcpy($a(_T6.length), _T6); //#25574 - for (var _T9 = 0; _T9 <= 5; _T9 += 1) { //#25579 - $_.i = _T9; //#25576 - $k[$j++] = $_.litmask; //#25577 - $aload($get($_.sixedges, $_.i)); //#25577 - $_.dmv(); //#25577 - var _TE = $k[--$j]; //#25578 - $put($k[--$j], _TE, 1); //#25578 - } //#25578 - $put($_.litmasks, $_.mask, $_.litmask); //#25580 - if ($_.fast) { //#25590 - $k[$j++] = 'score'; //#25584 - $k[$j++] = $_.litmask; //#25584 - $_.evalsymbol(); //#25584 - var _TL = $k[--$j]; //#25584 - $_[$k[--$j]] = _TL; //#25584 - if ($gt($_.score, $_.bestscore)) { //#25589 - $_.bestsym = $_.litmask; //#25586 - $_.bestscore = $_.score; //#25587 - if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25588 - return true; //#25588 - } //#25588 - } //#25588 - } //#25588 - }); //#25588 - $_.pixs = $_.bestsym; //#25593 - if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25607 - $_.bestscore = -99999999; //#25597 - $forall($_.masks, function() { //#25605 - $_.litmask = $get($_.litmasks, $k[--$j]); //#25599 - $k[$j++] = 'score'; //#25600 - $k[$j++] = $_.litmask; //#25600 - $_.evalsymbol(); //#25600 - var _Te = $k[--$j]; //#25600 - $_[$k[--$j]] = _Te; //#25600 - if ($_.score > $_.bestscore) { //#25604 - $_.bestsym = $_.litmask; //#25602 - $_.bestscore = $_.score; //#25603 - } //#25603 - }); //#25603 - $_.pixs = $_.bestsym; //#25606 - } //#25606 - var _Tr = new Map([ + var _Q0 = $k[--$j]; //#25781 + $k[$j++] = $f((_Q0 * $_.step) + $_.start); //#25781 + }; //#25781 + $_.bestscore = -99999999; //#25789 + $k[$j++] = 'masks'; //#25794 + if ($_.mask != -1) { //#25793 + $k[$j++] = $a([$_.mask]); //#25791 + } else { //#25793 + if ($_.fast) { //#25793 + $k[$j++] = $a([3, 2, 1, 0]); //#25793 + } else { //#25793 + $k[$j++] = $a([0, 1, 2, 3]); //#25793 + } //#25793 + } //#25793 + var _Q8 = $k[--$j]; //#25794 + $_[$k[--$j]] = _Q8; //#25794 + $_.litmasks = $a(4); //#25795 + $forall($_.masks, function() { //#25897 + $_.mask = $k[--$j]; //#25798 + $k[$j++] = Infinity; //#25801 + var _QH = $_.cws; //#25803 + $k[$j++] = $_.mask; //#25803 + $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25803 + $k[$j++] = 0; //#25803 + for (var _QI = 0, _QJ = _QH.length; _QI < _QJ; _QI++) { //#25803 + var _QL = $k[--$j]; //#25803 + var _QM = $k[--$j]; //#25803 + $k[$j++] = $f($get(_QH, _QI) + _QL) % 113; //#25803 + $k[$j++] = _QM; //#25803 + $k[$j++] = $f(_QL + _QM); //#25803 + } //#25803 + $j -= 2; //#25803 + for (var _QO = 0, _QP = $_.nc; _QO < _QP; _QO++) { //#25804 + $k[$j++] = 0; //#25804 + } //#25804 + $_.rscws = $a(); //#25804 + for (var _QT = 0, _QS = $_.step - 1; _QT <= _QS; _QT += 1) { //#25828 + $_.start = _QT; //#25807 + $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25808 + $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25809 + $_.NC = $_.NW - $_.ND; //#25810 + $k[$j++] = Infinity; //#25811 + $k[$j++] = 1; //#25811 + for (var _Qf = 0, _Qg = $_.NC; _Qf < _Qg; _Qf++) { //#25811 + $k[$j++] = 0; //#25811 + } //#25811 + $_.coeffs = $a(); //#25811 + for (var _Qk = 1, _Qj = $_.NC; _Qk <= _Qj; _Qk += 1) { //#25818 + $_.i = _Qk; //#25813 + for (var _Qm = $_.NC; _Qm >= 1; _Qm -= 1) { //#25817 + $_.j = _Qm; //#25815 + $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25816 + } //#25816 + } //#25816 + for (var _R0 = 0, _Qz = $_.ND - 1; _R0 <= _Qz; _R0 += 1) { //#25826 + $k[$j++] = 't'; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = _R0; //#25820 + $_.offset(); //#25820 + var _R2 = $k[--$j]; //#25820 + var _R4 = $get($k[--$j], _R2); //#25820 + $k[$j++] = _R4; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = $_.ND; //#25820 + $_.offset(); //#25820 + var _R7 = $k[--$j]; //#25820 + var _R9 = $get($k[--$j], _R7); //#25820 + var _RA = $k[--$j]; //#25820 + $_[$k[--$j]] = $f(_RA + _R9) % 113; //#25820 + for (var _RE = 0, _RD = $_.NC - 2; _RE <= _RD; _RE += 1) { //#25824 + $_.j = _RE; //#25822 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = $_.ND + $_.j; //#25823 + $_.offset(); //#25823 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = ($_.ND + $_.j) + 1; //#25823 + $_.offset(); //#25823 + var _RL = $k[--$j]; //#25823 + var _RN = $get($k[--$j], _RL); //#25823 + var _RS = $k[--$j]; //#25823 + $put($k[--$j], _RS, ($f($f(_RN + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25823 + } //#25823 + $k[$j++] = $_.rscws; //#25825 + $k[$j++] = ($_.ND + $_.NC) - 1; //#25825 + $_.offset(); //#25825 + var _Rb = $k[--$j]; //#25825 + $put($k[--$j], _Rb, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25825 + } //#25825 + for (var _Rg = $_.ND, _Rf = $_.NW - 1; _Rg <= _Rf; _Rg += 1) { //#25827 + $k[$j++] = _Rg; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rg; //#25827 + $_.offset(); //#25827 + var _Rj = $k[--$j]; //#25827 + var _Rk = $k[--$j]; //#25827 + var _Rl = $k[--$j]; //#25827 + $k[$j++] = _Rk; //#25827 + $k[$j++] = _Rj; //#25827 + $k[$j++] = 113; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rl; //#25827 + $_.offset(); //#25827 + var _Rm = $k[--$j]; //#25827 + var _Ro = $get($k[--$j], _Rm); //#25827 + var _Rp = $k[--$j]; //#25827 + var _Rq = $k[--$j]; //#25827 + $put($k[--$j], _Rq, $f(_Rp - _Ro) % 113); //#25827 + } //#25827 + } //#25827 + $_.bits = $s($_.ndots); //#25831 + $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25832 + for (var _S0 = 1, _Rz = $_.nw; _S0 <= _Rz; _S0 += 1) { //#25836 + $_.i = _S0; //#25834 + $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25835 + } //#25835 + if ($_.rembits > 0) { //#25839 + $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25838 + } //#25838 + var _SD = $_.outline; //#25842 + $_.pixs = $arrcpy($a(_SD.length), _SD); //#25842 + $_.posx = 0; //#25843 + $k[$j++] = 'posy'; //#25844 + if (($_.rows % 2) == 0) { //#25844 + $k[$j++] = 0; //#25844 + } else { //#25844 + $k[$j++] = $_.rows - 1; //#25844 + } //#25844 + var _SI = $k[--$j]; //#25844 + $_[$k[--$j]] = _SI; //#25844 + var _SM = $geti($_.bits, 0, $_.bits.length - 6); //#25845 + for (var _SN = 0, _SO = _SM.length; _SN < _SO; _SN++) { //#25863 + $k[$j++] = $get(_SM, _SN); //#25861 + for (;;) { //#25861 + $k[$j++] = $_.pixs; //#25847 + $k[$j++] = $_.posx; //#25847 + $k[$j++] = $_.posy; //#25847 + $_.dmv(); //#25847 + var _ST = $k[--$j]; //#25847 + if ($get($k[--$j], _ST) == -1) { //#25847 + break; //#25847 + } //#25847 + if (($_.rows % 2) == 0) { //#25858 + $_.posy = $_.posy + 1; //#25849 + if ($_.posy == $_.rows) { //#25853 + $_.posy = 0; //#25851 + $_.posx = $_.posx + 1; //#25852 + } //#25852 + } else { //#25858 + $_.posx = $_.posx + 1; //#25855 + if ($_.posx == $_.columns) { //#25859 + $_.posx = 0; //#25857 + $_.posy = $_.posy - 1; //#25858 + } //#25858 + } //#25858 + } //#25858 + $k[$j++] = $_.pixs; //#25862 + $k[$j++] = $_.posx; //#25862 + $k[$j++] = $_.posy; //#25862 + $_.dmv(); //#25862 + var _Si = $k[--$j]; //#25862 + var _Sj = $k[--$j]; //#25862 + $put(_Sj, _Si, $f($k[--$j] - 48)); //#25862 + } //#25862 + for (var _Sl = 0; _Sl <= 5; _Sl += 1) { //#25868 + $_.i = _Sl; //#25865 + $k[$j++] = $_.pixs; //#25866 + $aload($get($_.sixedges, $_.i)); //#25866 + $_.dmv(); //#25866 + var _Su = $k[--$j]; //#25867 + $put($k[--$j], _Su, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25867 + } //#25867 + $k[$j++] = 'score'; //#25871 + $k[$j++] = $_.pixs; //#25871 + $_.evalsymbol(); //#25871 + var _Sx = $k[--$j]; //#25871 + $_[$k[--$j]] = _Sx; //#25871 + if ($_.score > $_.bestscore) { //#25876 + $_.bestsym = $_.pixs; //#25873 + $_.bestscore = $_.score; //#25874 + if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25875 + return true; //#25875 + } //#25875 + } //#25875 + var _T7 = $_.pixs; //#25879 + $_.litmask = $arrcpy($a(_T7.length), _T7); //#25879 + for (var _TA = 0; _TA <= 5; _TA += 1) { //#25884 + $_.i = _TA; //#25881 + $k[$j++] = $_.litmask; //#25882 + $aload($get($_.sixedges, $_.i)); //#25882 + $_.dmv(); //#25882 + var _TF = $k[--$j]; //#25883 + $put($k[--$j], _TF, 1); //#25883 + } //#25883 + $put($_.litmasks, $_.mask, $_.litmask); //#25885 + if ($_.fast) { //#25895 + $k[$j++] = 'score'; //#25889 + $k[$j++] = $_.litmask; //#25889 + $_.evalsymbol(); //#25889 + var _TM = $k[--$j]; //#25889 + $_[$k[--$j]] = _TM; //#25889 + if ($gt($_.score, $_.bestscore)) { //#25894 + $_.bestsym = $_.litmask; //#25891 + $_.bestscore = $_.score; //#25892 + if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25893 + return true; //#25893 + } //#25893 + } //#25893 + } //#25893 + }); //#25893 + $_.pixs = $_.bestsym; //#25898 + if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25912 + $_.bestscore = -99999999; //#25902 + $forall($_.masks, function() { //#25910 + $_.litmask = $get($_.litmasks, $k[--$j]); //#25904 + $k[$j++] = 'score'; //#25905 + $k[$j++] = $_.litmask; //#25905 + $_.evalsymbol(); //#25905 + var _Tf = $k[--$j]; //#25905 + $_[$k[--$j]] = _Tf; //#25905 + if ($_.score > $_.bestscore) { //#25909 + $_.bestsym = $_.litmask; //#25907 + $_.bestscore = $_.score; //#25908 + } //#25908 + }); //#25908 + $_.pixs = $_.bestsym; //#25911 + } //#25911 + var _Ts = new Map([ ["ren", bwipp_renmatrix], ["dotty", true], ["pixs", $_.pixs], @@ -32247,468 +32713,477 @@ function bwipp_dotcode() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.columns * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#25618 - $k[$j++] = _Tr; //#25621 - if (!$_.dontdraw) { //#25621 - bwipp_renmatrix(); //#25621 - } //#25621 - $_ = Object.getPrototypeOf($_); //#25623 - $_ = Object.getPrototypeOf($_); //#25625 -} - + ]); //#25927 + $k[$j++] = _Ts; //#25930 + if (!$_.dontdraw) { //#25930 + bwipp_renmatrix(); //#25930 + } //#25930 + $_ = Object.getPrototypeOf($_); //#25932 + $_ = Object.getPrototypeOf($_); //#25934 +} //bwipp_dotcode function bwipp_ultracode() { - $_ = Object.create($_); //#25656 - $_.dontdraw = false; //#25659 - $_.eclevel = "EC2"; //#25660 - $_.parse = false; //#25661 - $_.parsefnc = false; //#25662 - $_.start = 257; //#25663 - $_.link1 = 0; //#25664 - $_.raw = false; //#25665 - $_.rev = 2; //#25666 - $k[$j++] = $_; //#25668 - bwipp_processoptions(); //#25668 - $_.options = $k[--$j]; //#25668 - $_.barcode = $k[--$j]; //#25669 - var _2 = $_.rev; //#25671 - if ((_2 != 1) && (_2 != 2)) { //#25673 - $k[$j++] = 'bwipp.ultracodeInvalidRevision#25672'; //#25672 - $k[$j++] = "Valid revisions are 1 and 2"; //#25672 - bwipp_raiseerror(); //#25672 - } //#25672 - var _4 = $_.eclevel.length == 3; //#25675 - $k[$j++] = _4; //#25679 - if (_4) { //#25679 - $j--; //#25676 - $k[$j++] = $geti($_.eclevel, 0, 2); //#25678 - if ($eq("EC", "EC")) { //#25678 - $j--; //#25677 - var _9 = $get($_.eclevel, 2) - 48; //#25677 - var _B = ($_.rev == 2) ? 1 : 0; //#25677 - $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25677 - } //#25677 - } //#25677 - if ($nt($k[--$j])) { //#25682 - $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25681'; //#25681 - $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25681 - bwipp_raiseerror(); //#25681 - } //#25681 - bwipp_loadctx(bwipp_ultracode) //#25684 - if ($_.raw) { //#25721 - $_.dcws = $a($_.barcode.length); //#25688 - $_.i = 0; //#25689 - $_.j = 0; //#25689 - for (;;) { //#25696 - if ($_.i == $_.barcode.length) { //#25691 - break; //#25691 - } //#25691 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#25692 - $put($_.dcws, $_.j, $_.cw); //#25693 - $_.i = $_.i + 4; //#25694 - $_.j = $_.j + 1; //#25695 - } //#25695 - $_.dcws = $geti($_.dcws, 0, $_.j); //#25697 - } else { //#25721 - $_.fn1 = -1; //#25702 - $_.fn3 = -2; //#25702 + $_ = Object.create($_); //#25965 + $_.dontdraw = false; //#25968 + $_.eclevel = "EC2"; //#25969 + $_.parse = false; //#25970 + $_.parsefnc = false; //#25971 + $_.start = 257; //#25972 + $_.link1 = 0; //#25973 + $_.raw = false; //#25974 + $_.rev = 2; //#25975 + $k[$j++] = $_; //#25977 + bwipp_processoptions(); //#25977 + $_.options = $k[--$j]; //#25977 + $_.barcode = $k[--$j]; //#25978 + var _2 = $_.rev; //#25980 + if ((_2 != 1) && (_2 != 2)) { //#25982 + $k[$j++] = 'bwipp.ultracodeInvalidRevision#25981'; //#25981 + $k[$j++] = "Valid revisions are 1 and 2"; //#25981 + bwipp_raiseerror(); //#25981 + } //#25981 + var _4 = $_.eclevel.length == 3; //#25984 + $k[$j++] = _4; //#25988 + if (_4) { //#25988 + $j--; //#25985 + $k[$j++] = $geti($_.eclevel, 0, 2); //#25987 + if ($eq("EC", "EC")) { //#25987 + $j--; //#25986 + var _9 = $get($_.eclevel, 2) - 48; //#25986 + var _B = ($_.rev == 2) ? 1 : 0; //#25986 + $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25986 + } //#25986 + } //#25986 + if ($nt($k[--$j])) { //#25991 + $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25990'; //#25990 + $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25990 + bwipp_raiseerror(); //#25990 + } //#25990 + bwipp_loadctx(bwipp_ultracode) //#25993 + if ($_.raw) { //#26030 + $_.dcws = $a($_.barcode.length); //#25997 + $_.i = 0; //#25998 + $_.j = 0; //#25998 + for (;;) { //#26005 + if ($_.i == $_.barcode.length) { //#26000 + break; //#26000 + } //#26000 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#26001 + $put($_.dcws, $_.j, $_.cw); //#26002 + $_.i = $_.i + 4; //#26003 + $_.j = $_.j + 1; //#26004 + } //#26004 + $_.dcws = $geti($_.dcws, 0, $_.j); //#26006 + } else { //#26030 + $_.fn1 = -1; //#26011 + $_.fn3 = -2; //#26011 var _X = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#25707 - $_.fncvals = _X; //#25708 - $k[$j++] = 'msg'; //#25709 - $k[$j++] = $_.barcode; //#25709 - $k[$j++] = $_.fncvals; //#25709 - bwipp_parseinput(); //#25709 - var _a = $k[--$j]; //#25709 - $_[$k[--$j]] = _a; //#25709 - $_.msglen = $_.msg.length; //#25710 - $_.scr = $a([]); //#25712 - $_.scp = $a([]); //#25713 - $k[$j++] = Infinity; //#25719 - $aload($_.scr); //#25715 - $aload($_.scp); //#25716 - $forall($_.msg, function() { //#25720 - var _i = $k[--$j]; //#25718 - $k[$j++] = _i; //#25718 - if (_i == $_.fn1) { //#25718 - $j--; //#25718 - $k[$j++] = 268; //#25718 - } //#25718 - var _k = $k[--$j]; //#25719 - $k[$j++] = _k; //#25719 - if (_k == $_.fn3) { //#25719 - $j--; //#25719 - $k[$j++] = 269; //#25719 - } //#25719 - }); //#25719 - $_.dcws = $a(); //#25719 - } //#25721 - var _o = $get($_.options, 'debugcws') !== undefined; //#25725 - if (_o) { //#25725 - $k[$j++] = 'bwipp.debugcws#25725'; //#25725 - $k[$j++] = $_.dcws; //#25725 - bwipp_raiseerror(); //#25725 - } //#25725 - $_.mcc = $_.dcws.length + 3; //#25727 - $_.eclval = $get($_.eclevel, 2) - 48; //#25729 - if ($_.eclval != 0) { //#25733 - $k[$j++] = 'qcc'; //#25731 - $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#25731 - $k[$j++] = ~~($_.mcc / 25); //#25731 - if (($_.mcc % 25) != 0) { //#25731 - var _z = $k[--$j]; //#25731 - $k[$j++] = $f(_z + 1); //#25731 - } //#25731 - var _10 = $k[--$j]; //#25731 - var _11 = $k[--$j]; //#25731 - $_[$k[--$j]] = $f((_11 * _10) + 5); //#25731 - } else { //#25733 - $_.qcc = 3; //#25733 - } //#25733 - $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#25735 - $_.tcc = $_.mcc + $_.qcc; //#25736 - if (!bwipp_ultracode.__25747__) { //#25747 - $_ = Object.create($_); //#25747 - $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#25746 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25746 - bwipp_ultracode.__25747__ = 1; //#25746 - $_ = Object.getPrototypeOf($_); //#25746 - } //#25746 - var _1D = $_.metrics; //#25749 - for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#25758 - $_.m = $get(_1D, _1E); //#25750 - $_.rows = $get($_.m, 0); //#25751 - $_.minc = $get($_.m, 1); //#25752 - $_.maxc = $get($_.m, 2); //#25753 - $_.mcol = $get($_.m, 3); //#25754 - $_.okay = true; //#25755 - if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#25756 - $_.okay = false; //#25756 - } //#25756 - if ($_.okay) { //#25757 - break; //#25757 - } //#25757 - } //#25757 - if (!$_.okay) { //#25762 - $k[$j++] = 'bwipp.ultracodeNoValidSymbol#25761'; //#25761 - $k[$j++] = "Maximum length exceeded or invalid content"; //#25761 - bwipp_raiseerror(); //#25761 - } //#25761 - for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#25776 - $_.columns = _1W; //#25766 - $k[$j++] = $_.columns; //#25768 - if ($_.columns >= 15) { //#25768 - var _1Z = $k[--$j]; //#25768 - $k[$j++] = $f(_1Z - 1); //#25768 - } //#25768 - if ($_.columns >= 31) { //#25769 - var _1b = $k[--$j]; //#25769 - $k[$j++] = $f(_1b - 1); //#25769 - } //#25769 - if ($_.columns >= 47) { //#25770 - var _1d = $k[--$j]; //#25770 - $k[$j++] = $f(_1d - 1); //#25770 - } //#25770 - var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#25771 - $k[$j++] = _1h; //#25774 - if (_1h >= 0) { //#25774 - $_.pads = $k[--$j]; //#25772 - break; //#25773 - } //#25773 - $j--; //#25775 - } //#25775 - $_.dcc = $f($_.columns - $_.mcol); //#25777 - $k[$j++] = Infinity; //#25786 - $k[$j++] = $_.start; //#25784 - $k[$j++] = $_.mcc; //#25784 - $k[$j++] = $_.acc; //#25784 - $aload($_.dcws); //#25784 - for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#25785 - $k[$j++] = 0; //#25785 - } //#25785 - $k[$j++] = 0; //#25786 - $_.rsseq = $a(); //#25786 - $k[$j++] = Infinity; //#25790 - $k[$j++] = 1; //#25790 - for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#25790 - var _1v = $k[--$j]; //#25790 - $k[$j++] = _1v; //#25790 - $k[$j++] = (_1v * 3) % 283; //#25790 - } //#25790 - $_.rsalog = $a(); //#25790 - $_.rslog = $a(283); //#25791 - for (var _1y = 1; _1y <= 282; _1y += 1) { //#25792 - $put($_.rslog, $get($_.rsalog, _1y), _1y); //#25792 - } //#25792 + ]); //#26016 + $_.fncvals = _X; //#26017 + $k[$j++] = 'msg'; //#26018 + $k[$j++] = $_.barcode; //#26018 + $k[$j++] = $_.fncvals; //#26018 + bwipp_parseinput(); //#26018 + var _a = $k[--$j]; //#26018 + $_[$k[--$j]] = _a; //#26018 + $_.msglen = $_.msg.length; //#26019 + $_.scr = $a([]); //#26021 + $_.scp = $a([]); //#26022 + $k[$j++] = Infinity; //#26023 + $aload($_.scr); //#26024 + $aload($_.scp); //#26025 + $forall($_.msg, function() { //#26029 + var _i = $k[--$j]; //#26027 + $k[$j++] = _i; //#26027 + if (_i == $_.fn1) { //#26027 + $j--; //#26027 + $k[$j++] = 268; //#26027 + } //#26027 + var _k = $k[--$j]; //#26028 + $k[$j++] = _k; //#26028 + if (_k == $_.fn3) { //#26028 + $j--; //#26028 + $k[$j++] = 269; //#26028 + } //#26028 + }); //#26028 + $_.dcws = $a(); //#26028 + } //#26030 + var _o = $get($_.options, 'debugcws') !== undefined; //#26034 + if (_o) { //#26034 + $k[$j++] = 'bwipp.debugcws#26034'; //#26034 + $k[$j++] = $_.dcws; //#26034 + bwipp_raiseerror(); //#26034 + } //#26034 + $_.mcc = $_.dcws.length + 3; //#26036 + $_.eclval = $get($_.eclevel, 2) - 48; //#26038 + if ($_.eclval != 0) { //#26042 + $k[$j++] = 'qcc'; //#26040 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#26040 + $k[$j++] = ~~($_.mcc / 25); //#26040 + if (($_.mcc % 25) != 0) { //#26040 + var _z = $k[--$j]; //#26040 + $k[$j++] = $f(_z + 1); //#26040 + } //#26040 + var _10 = $k[--$j]; //#26040 + var _11 = $k[--$j]; //#26040 + $_[$k[--$j]] = $f((_11 * _10) + 5); //#26040 + } else { //#26042 + $_.qcc = 3; //#26042 + } //#26042 + $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#26044 + $_.tcc = $_.mcc + $_.qcc; //#26045 + if (!bwipp_ultracode.__26056__) { //#26056 + $_ = Object.create($_); //#26056 + $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#26055 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26055 + bwipp_ultracode.__26056__ = 1; //#26055 + $_ = Object.getPrototypeOf($_); //#26055 + } //#26055 + var _1D = $_.metrics; //#26058 + for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#26067 + $_.m = $get(_1D, _1E); //#26059 + $_.rows = $get($_.m, 0); //#26060 + $_.minc = $get($_.m, 1); //#26061 + $_.maxc = $get($_.m, 2); //#26062 + $_.mcol = $get($_.m, 3); //#26063 + $_.okay = true; //#26064 + if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#26065 + $_.okay = false; //#26065 + } //#26065 + if ($_.okay) { //#26066 + break; //#26066 + } //#26066 + } //#26066 + if (!$_.okay) { //#26071 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol#26070'; //#26070 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26070 + bwipp_raiseerror(); //#26070 + } //#26070 + for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#26085 + $_.columns = _1W; //#26075 + $k[$j++] = $_.columns; //#26077 + if ($_.columns >= 15) { //#26077 + var _1Z = $k[--$j]; //#26077 + $k[$j++] = $f(_1Z - 1); //#26077 + } //#26077 + if ($_.columns >= 31) { //#26078 + var _1b = $k[--$j]; //#26078 + $k[$j++] = $f(_1b - 1); //#26078 + } //#26078 + if ($_.columns >= 47) { //#26079 + var _1d = $k[--$j]; //#26079 + $k[$j++] = $f(_1d - 1); //#26079 + } //#26079 + var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#26080 + $k[$j++] = _1h; //#26083 + if (_1h >= 0) { //#26083 + $_.pads = $k[--$j]; //#26081 + break; //#26082 + } //#26082 + $j--; //#26084 + } //#26084 + $_.dcc = $f($_.columns - $_.mcol); //#26086 + $k[$j++] = Infinity; //#26089 + $k[$j++] = $_.start; //#26093 + $k[$j++] = $_.mcc; //#26093 + $k[$j++] = $_.acc; //#26093 + $aload($_.dcws); //#26093 + for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#26094 + $k[$j++] = 0; //#26094 + } //#26094 + $k[$j++] = 0; //#26095 + $_.rsseq = $a(); //#26095 + if (!bwipp_ultracode.__26103__) { //#26103 + $_ = Object.create($_); //#26103 + $k[$j++] = Infinity; //#26100 + $k[$j++] = 1; //#26100 + for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#26100 + var _1v = $k[--$j]; //#26100 + $k[$j++] = _1v; //#26100 + $k[$j++] = (_1v * 3) % 283; //#26100 + } //#26100 + $_.rsalog = $a(); //#26100 + $_.rslog = $a(283); //#26101 + for (var _1y = 1; _1y <= 282; _1y += 1) { //#26102 + $put($_.rslog, $get($_.rsalog, _1y), _1y); //#26102 + } //#26102 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26102 + bwipp_ultracode.__26103__ = 1; //#26102 + $_ = Object.getPrototypeOf($_); //#26102 + } //#26102 $_.rsprod = function() { - var _22 = $k[--$j]; //#25796 - var _23 = $k[--$j]; //#25796 - $k[$j++] = _23; //#25800 - $k[$j++] = _22; //#25800 - if ((_22 != 0) && (_23 != 0)) { //#25799 - var _26 = $get($_.rslog, $k[--$j]); //#25797 - var _2B = $get($_.rsalog, $f(_26 + $get($_.rslog, $k[--$j])) % 282); //#25797 - $k[$j++] = _2B; //#25797 - } else { //#25799 - $j -= 2; //#25799 - $k[$j++] = 0; //#25799 - } //#25799 - }; //#25799 - $_.n = $_.mcc; //#25804 - $_.k = $_.qcc; //#25804 - $k[$j++] = Infinity; //#25805 - $k[$j++] = 1; //#25805 - for (var _2F = 0, _2G = $_.k; _2F < _2G; _2F++) { //#25805 - $k[$j++] = 0; //#25805 - } //#25805 - $_.coeffs = $a(); //#25805 - for (var _2K = 1, _2J = $_.k; _2K <= _2J; _2K += 1) { //#25814 - $_.i = _2K; //#25807 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#25808 - for (var _2R = $_.i - 1; _2R >= 1; _2R -= 1) { //#25812 - $_.j = _2R; //#25810 - $k[$j++] = $_.coeffs; //#25811 - $k[$j++] = $_.j; //#25811 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#25811 - $k[$j++] = $get($_.coeffs, $_.j); //#25811 - $k[$j++] = $get($_.rsalog, $_.i); //#25811 - $_.rsprod(); //#25811 - var _2d = $k[--$j]; //#25811 - var _2e = $k[--$j]; //#25811 - var _2f = $k[--$j]; //#25811 - $put($k[--$j], _2f, $f(_2e + _2d) % 283); //#25811 - } //#25811 - $k[$j++] = $_.coeffs; //#25813 - $k[$j++] = 0; //#25813 - $k[$j++] = $get($_.coeffs, 0); //#25813 - $k[$j++] = $get($_.rsalog, $_.i); //#25813 - $_.rsprod(); //#25813 - var _2n = $k[--$j]; //#25813 - var _2o = $k[--$j]; //#25813 - $put($k[--$j], _2o, _2n); //#25813 - } //#25813 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#25815 - for (var _2u = $_.coeffs.length - 1; _2u >= 0; _2u -= 2) { //#25816 - var _2v = $_.coeffs; //#25816 - $put(_2v, _2u, $f(283 - $get(_2v, _2u))); //#25816 - } //#25816 - for (var _2z = 0, _2y = $_.n - 1; _2z <= _2y; _2z += 1) { //#25825 - $_.t = $f($get($_.rsseq, _2z) + $get($_.rsseq, $_.n)) % 283; //#25820 - for (var _37 = 0, _36 = $_.k - 1; _37 <= _36; _37 += 1) { //#25824 - $_.j = _37; //#25822 - $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#25823 - } //#25823 - } //#25823 - for (var _3O = $_.n, _3N = $_.n + $_.k; _3O <= _3N; _3O += 1) { //#25826 - $put($_.rsseq, _3O, $f(283 - $get($_.rsseq, _3O)) % 283); //#25826 - } //#25826 - $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#25827 - var _3X = $get($_.options, 'debugecc') !== undefined; //#25829 - if (_3X) { //#25829 - $k[$j++] = 'bwipp.debugecc#25829'; //#25829 - $k[$j++] = $_.ecws; //#25829 - bwipp_raiseerror(); //#25829 - } //#25829 - if (!bwipp_ultracode.__25888__) { //#25888 - $_ = Object.create($_); //#25888 - $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#25862 - $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#25869 - $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#25875 - $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#25881 - $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#25887 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25887 - bwipp_ultracode.__25888__ = 1; //#25887 - $_ = Object.getPrototypeOf($_); //#25887 - } //#25887 - $k[$j++] = 'dccu'; //#25890 - if ($_.rev == 1) { //#25890 - $k[$j++] = $_.dccurev1; //#25890 - } else { //#25890 - $k[$j++] = $_.dccurev2; //#25890 - } //#25890 - var _3i = $k[--$j]; //#25890 - $_[$k[--$j]] = _3i; //#25890 - $k[$j++] = 'dccl'; //#25891 - if ($_.rev == 1) { //#25891 - $k[$j++] = $_.dcclrev1; //#25891 - } else { //#25891 - $k[$j++] = $_.dcclrev2; //#25891 - } //#25891 - var _3n = $k[--$j]; //#25891 - $_[$k[--$j]] = _3n; //#25891 - $_.rows = $f(($_.rows * 6) + 1); //#25894 - $_.columns = $_.columns + 6; //#25895 - $k[$j++] = Infinity; //#25896 - for (var _3t = 0, _3u = $_.rows * $_.columns; _3t < _3u; _3t++) { //#25896 - $k[$j++] = -1; //#25896 - } //#25896 - $_.pixs = $a(); //#25896 + var _23 = $k[--$j]; //#26107 + var _24 = $k[--$j]; //#26107 + $k[$j++] = _24; //#26111 + $k[$j++] = _23; //#26111 + if ((_23 != 0) && (_24 != 0)) { //#26110 + var _27 = $get($_.rslog, $k[--$j]); //#26108 + var _2C = $get($_.rsalog, $f(_27 + $get($_.rslog, $k[--$j])) % 282); //#26108 + $k[$j++] = _2C; //#26108 + } else { //#26110 + $j -= 2; //#26110 + $k[$j++] = 0; //#26110 + } //#26110 + }; //#26110 + $_.n = $_.mcc; //#26115 + $_.k = $_.qcc; //#26115 + $k[$j++] = Infinity; //#26116 + $k[$j++] = 1; //#26116 + for (var _2G = 0, _2H = $_.k; _2G < _2H; _2G++) { //#26116 + $k[$j++] = 0; //#26116 + } //#26116 + $_.coeffs = $a(); //#26116 + for (var _2L = 1, _2K = $_.k; _2L <= _2K; _2L += 1) { //#26125 + $_.i = _2L; //#26118 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#26119 + for (var _2S = $_.i - 1; _2S >= 1; _2S -= 1) { //#26123 + $_.j = _2S; //#26121 + $k[$j++] = $_.coeffs; //#26122 + $k[$j++] = $_.j; //#26122 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#26122 + $k[$j++] = $get($_.coeffs, $_.j); //#26122 + $k[$j++] = $get($_.rsalog, $_.i); //#26122 + $_.rsprod(); //#26122 + var _2e = $k[--$j]; //#26122 + var _2f = $k[--$j]; //#26122 + var _2g = $k[--$j]; //#26122 + $put($k[--$j], _2g, $f(_2f + _2e) % 283); //#26122 + } //#26122 + $k[$j++] = $_.coeffs; //#26124 + $k[$j++] = 0; //#26124 + $k[$j++] = $get($_.coeffs, 0); //#26124 + $k[$j++] = $get($_.rsalog, $_.i); //#26124 + $_.rsprod(); //#26124 + var _2o = $k[--$j]; //#26124 + var _2p = $k[--$j]; //#26124 + $put($k[--$j], _2p, _2o); //#26124 + } //#26124 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#26126 + for (var _2v = $_.coeffs.length - 1; _2v >= 0; _2v -= 2) { //#26127 + var _2w = $_.coeffs; //#26127 + $put(_2w, _2v, $f(283 - $get(_2w, _2v))); //#26127 + } //#26127 + for (var _30 = 0, _2z = $_.n - 1; _30 <= _2z; _30 += 1) { //#26136 + $_.t = $f($get($_.rsseq, _30) + $get($_.rsseq, $_.n)) % 283; //#26131 + for (var _38 = 0, _37 = $_.k - 1; _38 <= _37; _38 += 1) { //#26135 + $_.j = _38; //#26133 + $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#26134 + } //#26134 + } //#26134 + for (var _3P = $_.n, _3O = $_.n + $_.k; _3P <= _3O; _3P += 1) { //#26137 + $put($_.rsseq, _3P, $f(283 - $get($_.rsseq, _3P)) % 283); //#26137 + } //#26137 + $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#26138 + var _3Y = $get($_.options, 'debugecc') !== undefined; //#26140 + if (_3Y) { //#26140 + $k[$j++] = 'bwipp.debugecc#26140'; //#26140 + $k[$j++] = $_.ecws; //#26140 + bwipp_raiseerror(); //#26140 + } //#26140 + if (!bwipp_ultracode.__26199__) { //#26199 + $_ = Object.create($_); //#26199 + $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#26173 + $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#26180 + $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#26186 + $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#26192 + $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#26198 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26198 + bwipp_ultracode.__26199__ = 1; //#26198 + $_ = Object.getPrototypeOf($_); //#26198 + } //#26198 + $k[$j++] = 'dccu'; //#26201 + if ($_.rev == 1) { //#26201 + $k[$j++] = $_.dccurev1; //#26201 + } else { //#26201 + $k[$j++] = $_.dccurev2; //#26201 + } //#26201 + var _3j = $k[--$j]; //#26201 + $_[$k[--$j]] = _3j; //#26201 + $k[$j++] = 'dccl'; //#26202 + if ($_.rev == 1) { //#26202 + $k[$j++] = $_.dcclrev1; //#26202 + } else { //#26202 + $k[$j++] = $_.dcclrev2; //#26202 + } //#26202 + var _3o = $k[--$j]; //#26202 + $_[$k[--$j]] = _3o; //#26202 + $_.rows = $f(($_.rows * 6) + 1); //#26205 + $_.columns = $_.columns + 6; //#26206 + $k[$j++] = Infinity; //#26207 + for (var _3u = 0, _3v = $_.rows * $_.columns; _3u < _3v; _3u++) { //#26207 + $k[$j++] = -1; //#26207 + } //#26207 + $_.pixs = $a(); //#26207 $_.qmv = function() { - var _3x = $k[--$j]; //#25897 - var _3y = $k[--$j]; //#25897 - $k[$j++] = $f(_3y + (_3x * $_.columns)); //#25897 - }; //#25897 - for (var _41 = 0, _40 = $_.columns - 1; _41 <= _40; _41 += 1) { //#25906 - $_.i = _41; //#25899 - for (var _44 = 0, _43 = $f($_.rows - 1); _44 <= _43; _44 += 6) { //#25903 - $_.j = _44; //#25901 - if ($_.i >= 5) { //#25902 - $k[$j++] = $_.pixs; //#25902 - $k[$j++] = $_.i; //#25902 - $k[$j++] = $_.j; //#25902 - $_.qmv(); //#25902 - var _4A = $k[--$j]; //#25902 - $put($k[--$j], _4A, ($_.i % 2) * 9); //#25902 - } //#25902 - } //#25902 - $k[$j++] = $_.pixs; //#25904 - $k[$j++] = $_.i; //#25904 - $k[$j++] = 0; //#25904 - $_.qmv(); //#25904 - var _4E = $k[--$j]; //#25904 - $put($k[--$j], _4E, 9); //#25904 - $k[$j++] = $_.pixs; //#25905 - $k[$j++] = $_.i; //#25905 - $k[$j++] = $f($_.rows - 1); //#25905 - $_.qmv(); //#25905 - var _4J = $k[--$j]; //#25905 - $put($k[--$j], _4J, 9); //#25905 - } //#25905 - for (var _4N = 1, _4M = $f($_.rows - 2); _4N <= _4M; _4N += 1) { //#25919 - $_.i = _4N; //#25908 - for (var _4Q = 3, _4P = $_.columns - 1; _4Q <= _4P; _4Q += 16) { //#25912 - $_.j = _4Q; //#25910 - $k[$j++] = $_.pixs; //#25911 - $k[$j++] = $_.j; //#25911 - $k[$j++] = $_.i; //#25911 - $_.qmv(); //#25911 - var _4V = $k[--$j]; //#25911 - $put($k[--$j], _4V, (1 - ($_.i % 2)) * 9); //#25911 - } //#25911 - $k[$j++] = $_.pixs; //#25913 - $k[$j++] = 0; //#25913 - $k[$j++] = $_.i; //#25913 - $_.qmv(); //#25913 - var _4Z = $k[--$j]; //#25913 - $put($k[--$j], _4Z, 9); //#25913 - $k[$j++] = $_.pixs; //#25914 - $k[$j++] = 1; //#25914 - $k[$j++] = $_.i; //#25914 - $_.qmv(); //#25914 - var _4e = $k[--$j]; //#25914 - $put($k[--$j], _4e, (1 - ($_.i % 2)) * 9); //#25914 - $k[$j++] = $_.pixs; //#25915 - $k[$j++] = 2; //#25915 - $k[$j++] = $_.i; //#25915 - $_.qmv(); //#25915 - var _4i = $k[--$j]; //#25915 - $put($k[--$j], _4i, 0); //#25915 - $k[$j++] = $_.pixs; //#25916 - $k[$j++] = 3; //#25916 - $k[$j++] = $_.i; //#25916 - $_.qmv(); //#25916 - var _4m = $k[--$j]; //#25916 - $put($k[--$j], _4m, 9); //#25916 - $k[$j++] = $_.pixs; //#25917 - $k[$j++] = 4; //#25917 - $k[$j++] = $_.i; //#25917 - $_.qmv(); //#25917 - var _4q = $k[--$j]; //#25917 - $put($k[--$j], _4q, 0); //#25917 - $k[$j++] = $_.pixs; //#25918 - $k[$j++] = $_.columns - 1; //#25918 - $k[$j++] = $_.i; //#25918 - $_.qmv(); //#25918 - var _4v = $k[--$j]; //#25918 - $put($k[--$j], _4v, 9); //#25918 - } //#25918 - $_.i = (~~($_.rows / 2)) - 5; //#25922 - $k[$j++] = Infinity; //#25926 - var _52 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#25924 - for (var _53 = 0, _54 = _52.length; _53 < _54; _53++) { //#25924 - $k[$j++] = $get(_52, _53) - 48; //#25924 - } //#25924 - var _5A = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#25926 - $k[$j++] = 0; //#25926 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#25926 - $k[$j++] = $get(_5A, _5B) - 48; //#25926 - } //#25926 - var _5E = $a(); //#25926 - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#25930 - $k[$j++] = $get(_5E, _5F); //#25928 - $k[$j++] = $_.pixs; //#25928 - $k[$j++] = 2; //#25928 - $k[$j++] = $_.i; //#25928 - $_.qmv(); //#25928 - var _5K = $k[--$j]; //#25928 - var _5L = $k[--$j]; //#25928 - $put(_5L, _5K, $k[--$j]); //#25928 - $_.i = $_.i + 1; //#25929 - } //#25929 - $k[$j++] = Infinity; //#25942 - $k[$j++] = $_.start; //#25936 - $k[$j++] = $_.mcc; //#25936 - $aload($_.ecws); //#25936 - $k[$j++] = $_.tcc; //#25940 - $k[$j++] = 283; //#25940 - $k[$j++] = $_.acc; //#25940 - $aload($_.dcws); //#25940 - for (var _5V = 0, _5W = $_.pads; _5V < _5W; _5V++) { //#25941 - $k[$j++] = 284; //#25941 - } //#25941 - $k[$j++] = $_.qcc; //#25942 - $_.tileseq = $a(); //#25942 - $_.x = 5; //#25945 - $_.y = 1; //#25945 - var _5Z = $_.tileseq; //#25946 - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#25959 - var _5g = $cvrs($s(5), $get($_.tiles, $get(_5Z, _5a)), 10); //#25947 - for (var _5h = 0, _5i = _5g.length; _5h < _5i; _5h++) { //#25950 - $k[$j++] = $get(_5g, _5h); //#25948 - $k[$j++] = $_.pixs; //#25948 - $k[$j++] = $_.x; //#25948 - $k[$j++] = $_.y; //#25948 - $_.qmv(); //#25948 - var _5n = $k[--$j]; //#25948 - var _5o = $k[--$j]; //#25948 - $put(_5o, _5n, $f($k[--$j] - 48)); //#25948 - $_.y = $_.y + 1; //#25949 - } //#25949 - if ($_.y != $f($_.rows - 1)) { //#25956 - $_.y = $_.y + 1; //#25952 - } else { //#25956 - $_.x = $_.x + 1; //#25954 - $_.y = 1; //#25954 - $k[$j++] = $_.pixs; //#25955 - $k[$j++] = $_.x; //#25955 - $k[$j++] = $_.y; //#25955 - $_.qmv(); //#25955 - var _5y = $k[--$j]; //#25955 - if ($get($k[--$j], _5y) != -1) { //#25957 - $_.x = $_.x + 1; //#25956 - } //#25956 - } //#25956 - } //#25956 - if (!bwipp_ultracode.__25970__) { //#25970 - $_ = Object.create($_); //#25970 - var _62 = new Map([ + var _3y = $k[--$j]; //#26208 + var _3z = $k[--$j]; //#26208 + $k[$j++] = $f(_3z + (_3y * $_.columns)); //#26208 + }; //#26208 + for (var _42 = 0, _41 = $_.columns - 1; _42 <= _41; _42 += 1) { //#26217 + $_.i = _42; //#26210 + for (var _45 = 0, _44 = $f($_.rows - 1); _45 <= _44; _45 += 6) { //#26214 + $_.j = _45; //#26212 + if ($_.i >= 5) { //#26213 + $k[$j++] = $_.pixs; //#26213 + $k[$j++] = $_.i; //#26213 + $k[$j++] = $_.j; //#26213 + $_.qmv(); //#26213 + var _4B = $k[--$j]; //#26213 + $put($k[--$j], _4B, ($_.i % 2) * 9); //#26213 + } //#26213 + } //#26213 + $k[$j++] = $_.pixs; //#26215 + $k[$j++] = $_.i; //#26215 + $k[$j++] = 0; //#26215 + $_.qmv(); //#26215 + var _4F = $k[--$j]; //#26215 + $put($k[--$j], _4F, 9); //#26215 + $k[$j++] = $_.pixs; //#26216 + $k[$j++] = $_.i; //#26216 + $k[$j++] = $f($_.rows - 1); //#26216 + $_.qmv(); //#26216 + var _4K = $k[--$j]; //#26216 + $put($k[--$j], _4K, 9); //#26216 + } //#26216 + for (var _4O = 1, _4N = $f($_.rows - 2); _4O <= _4N; _4O += 1) { //#26230 + $_.i = _4O; //#26219 + for (var _4R = 3, _4Q = $_.columns - 1; _4R <= _4Q; _4R += 16) { //#26223 + $_.j = _4R; //#26221 + $k[$j++] = $_.pixs; //#26222 + $k[$j++] = $_.j; //#26222 + $k[$j++] = $_.i; //#26222 + $_.qmv(); //#26222 + var _4W = $k[--$j]; //#26222 + $put($k[--$j], _4W, (1 - ($_.i % 2)) * 9); //#26222 + } //#26222 + $k[$j++] = $_.pixs; //#26224 + $k[$j++] = 0; //#26224 + $k[$j++] = $_.i; //#26224 + $_.qmv(); //#26224 + var _4a = $k[--$j]; //#26224 + $put($k[--$j], _4a, 9); //#26224 + $k[$j++] = $_.pixs; //#26225 + $k[$j++] = 1; //#26225 + $k[$j++] = $_.i; //#26225 + $_.qmv(); //#26225 + var _4f = $k[--$j]; //#26225 + $put($k[--$j], _4f, (1 - ($_.i % 2)) * 9); //#26225 + $k[$j++] = $_.pixs; //#26226 + $k[$j++] = 2; //#26226 + $k[$j++] = $_.i; //#26226 + $_.qmv(); //#26226 + var _4j = $k[--$j]; //#26226 + $put($k[--$j], _4j, 0); //#26226 + $k[$j++] = $_.pixs; //#26227 + $k[$j++] = 3; //#26227 + $k[$j++] = $_.i; //#26227 + $_.qmv(); //#26227 + var _4n = $k[--$j]; //#26227 + $put($k[--$j], _4n, 9); //#26227 + $k[$j++] = $_.pixs; //#26228 + $k[$j++] = 4; //#26228 + $k[$j++] = $_.i; //#26228 + $_.qmv(); //#26228 + var _4r = $k[--$j]; //#26228 + $put($k[--$j], _4r, 0); //#26228 + $k[$j++] = $_.pixs; //#26229 + $k[$j++] = $_.columns - 1; //#26229 + $k[$j++] = $_.i; //#26229 + $_.qmv(); //#26229 + var _4w = $k[--$j]; //#26229 + $put($k[--$j], _4w, 9); //#26229 + } //#26229 + $_.i = (~~($_.rows / 2)) - 5; //#26233 + $k[$j++] = Infinity; //#26234 + var _53 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#26235 + for (var _54 = 0, _55 = _53.length; _54 < _55; _54++) { //#26235 + $k[$j++] = $get(_53, _54) - 48; //#26235 + } //#26235 + var _5B = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#26237 + $k[$j++] = 0; //#26237 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#26237 + $k[$j++] = $get(_5B, _5C) - 48; //#26237 + } //#26237 + var _5F = $a(); //#26237 + for (var _5G = 0, _5H = _5F.length; _5G < _5H; _5G++) { //#26241 + $k[$j++] = $get(_5F, _5G); //#26239 + $k[$j++] = $_.pixs; //#26239 + $k[$j++] = 2; //#26239 + $k[$j++] = $_.i; //#26239 + $_.qmv(); //#26239 + var _5L = $k[--$j]; //#26239 + var _5M = $k[--$j]; //#26239 + $put(_5M, _5L, $k[--$j]); //#26239 + $_.i = $_.i + 1; //#26240 + } //#26240 + $k[$j++] = Infinity; //#26244 + $k[$j++] = $_.start; //#26247 + $k[$j++] = $_.mcc; //#26247 + $aload($_.ecws); //#26247 + $k[$j++] = $_.tcc; //#26251 + $k[$j++] = 283; //#26251 + $k[$j++] = $_.acc; //#26251 + $aload($_.dcws); //#26251 + for (var _5W = 0, _5X = $_.pads; _5W < _5X; _5W++) { //#26252 + $k[$j++] = 284; //#26252 + } //#26252 + $k[$j++] = $_.qcc; //#26253 + $_.tileseq = $a(); //#26253 + $_.x = 5; //#26256 + $_.y = 1; //#26256 + var _5a = $_.tileseq; //#26257 + for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#26270 + var _5h = $cvrs($s(5), $get($_.tiles, $get(_5a, _5b)), 10); //#26258 + for (var _5i = 0, _5j = _5h.length; _5i < _5j; _5i++) { //#26261 + $k[$j++] = $get(_5h, _5i); //#26259 + $k[$j++] = $_.pixs; //#26259 + $k[$j++] = $_.x; //#26259 + $k[$j++] = $_.y; //#26259 + $_.qmv(); //#26259 + var _5o = $k[--$j]; //#26259 + var _5p = $k[--$j]; //#26259 + $put(_5p, _5o, $f($k[--$j] - 48)); //#26259 + $_.y = $_.y + 1; //#26260 + } //#26260 + if ($_.y != $f($_.rows - 1)) { //#26267 + $_.y = $_.y + 1; //#26263 + } else { //#26267 + $_.x = $_.x + 1; //#26265 + $_.y = 1; //#26265 + $k[$j++] = $_.pixs; //#26266 + $k[$j++] = $_.x; //#26266 + $k[$j++] = $_.y; //#26266 + $_.qmv(); //#26266 + var _5z = $k[--$j]; //#26266 + if ($get($k[--$j], _5z) != -1) { //#26268 + $_.x = $_.x + 1; //#26267 + } //#26267 + } //#26267 + } //#26267 + if (!bwipp_ultracode.__26281__) { //#26281 + $_ = Object.create($_); //#26281 + var _63 = new Map([ [0, "FFFFFF"], [9, "000000"], [1, "00FFFF"], [3, "FF00FF"], [5, "FFFF00"], [6, "00FF00"] - ]); //#25968 - $_.colormap = _62; //#25969 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25969 - bwipp_ultracode.__25970__ = 1; //#25969 - $_ = Object.getPrototypeOf($_); //#25969 - } //#25969 - var _6B = new Map([ + ]); //#26279 + $_.colormap = _63; //#26280 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26280 + bwipp_ultracode.__26281__ = 1; //#26280 + $_ = Object.getPrototypeOf($_); //#26280 + } //#26280 + var _6C = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.columns], @@ -32716,780 +33191,783 @@ function bwipp_ultracode() { ["height", ($_.rows / 72) * 2], ["width", ($_.columns / 72) * 2], ["colormap", $_.colormap], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#25981 - $k[$j++] = _6B; //#25984 - if (!$_.dontdraw) { //#25984 - bwipp_renmatrix(); //#25984 - } //#25984 - $_ = Object.getPrototypeOf($_); //#25986 - $_ = Object.getPrototypeOf($_); //#25988 -} - + ]); //#26296 + $k[$j++] = _6C; //#26299 + if (!$_.dontdraw) { //#26299 + bwipp_renmatrix(); //#26299 + } //#26299 + $_ = Object.getPrototypeOf($_); //#26301 + $_ = Object.getPrototypeOf($_); //#26303 +} //bwipp_ultracode function bwipp_jabcode() { - $_ = Object.create($_); //#26017 - $_.dontdraw = false; //#26020 - $_.rows = -1; //#26021 - $_.columns = -1; //#26022 - $_.slave = false; //#26023 - $_.colors = 16; //#26024 - $_.eclevel = 6; //#26025 - $_.raw = false; //#26026 - $_.parse = false; //#26027 - $_.parsefnc = false; //#26028 - $_.mask = -1; //#26029 - $k[$j++] = $_; //#26031 - bwipp_processoptions(); //#26031 - $_.options = $k[--$j]; //#26031 - $_.barcode = $k[--$j]; //#26032 - $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26034 - var _3 = $_.colors; //#26035 - $k[$j++] = 'metabpm'; //#26035 - $k[$j++] = _3; //#26035 - if (_3 > 8) { //#26035 - $j--; //#26035 - $k[$j++] = 8; //#26035 - } //#26035 - var _4 = $k[--$j]; //#26035 - $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26035 - $_.fn1 = -1; //#26038 + $_ = Object.create($_); //#26332 + $_.dontdraw = false; //#26335 + $_.rows = -1; //#26336 + $_.columns = -1; //#26337 + $_.slave = false; //#26338 + $_.colors = 16; //#26339 + $_.eclevel = 6; //#26340 + $_.raw = false; //#26341 + $_.parse = false; //#26342 + $_.parsefnc = false; //#26343 + $_.mask = -1; //#26344 + $k[$j++] = $_; //#26346 + bwipp_processoptions(); //#26346 + $_.options = $k[--$j]; //#26346 + $_.barcode = $k[--$j]; //#26347 + $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26349 + var _3 = $_.colors; //#26350 + $k[$j++] = 'metabpm'; //#26350 + $k[$j++] = _3; //#26350 + if (_3 > 8) { //#26350 + $j--; //#26350 + $k[$j++] = 8; //#26350 + } //#26350 + var _4 = $k[--$j]; //#26350 + $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26350 + $_.fn1 = -1; //#26353 var _9 = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1] - ]); //#26042 - $_.fncvals = _9; //#26043 - $k[$j++] = 'msg'; //#26044 - $k[$j++] = $_.barcode; //#26044 - $k[$j++] = $_.fncvals; //#26044 - bwipp_parseinput(); //#26044 - var _C = $k[--$j]; //#26044 - $_[$k[--$j]] = _C; //#26044 - $_.msglen = $_.msg.length; //#26045 + ]); //#26357 + $_.fncvals = _9; //#26358 + $k[$j++] = 'msg'; //#26359 + $k[$j++] = $_.barcode; //#26359 + $k[$j++] = $_.fncvals; //#26359 + bwipp_parseinput(); //#26359 + var _C = $k[--$j]; //#26359 + $_[$k[--$j]] = _C; //#26359 + $_.msglen = $_.msg.length; //#26360 $_.addtobits = function() { - var _F = $k[--$j]; //#26066 - $puti($_.bits, $_.j, _F); //#26066 - $_.j = _F.length + $_.j; //#26067 - }; //#26067 + var _F = $k[--$j]; //#26381 + $puti($_.bits, $_.j, _F); //#26381 + $_.j = _F.length + $_.j; //#26382 + }; //#26382 $_.tofixedbits = function() { - var _K = $strcpy($s(13), "0000000000000"); //#26071 - var _L = $k[--$j]; //#26071 - var _O = $cvrs($s(13), $k[--$j], 2); //#26071 - $puti(_K, $f(_L - _O.length), _O); //#26072 - $k[$j++] = $geti(_K, 0, _L); //#26073 - }; //#26073 - var _R = ($_.msglen <= 15) ? 4 : 17; //#26077 - $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26077 - $_.j = 0; //#26078 - $k[$j++] = 31; //#26079 - $k[$j++] = 5; //#26079 - $_.tofixedbits(); //#26079 - $_.addtobits(); //#26079 - $k[$j++] = "00"; //#26080 - $_.addtobits(); //#26080 - if ($_.msglen <= 15) { //#26085 - $k[$j++] = $_.msglen; //#26082 - $k[$j++] = 4; //#26082 - $_.tofixedbits(); //#26082 - $_.addtobits(); //#26082 - } else { //#26085 - $k[$j++] = "0000"; //#26084 - $_.addtobits(); //#26084 - $k[$j++] = $_.msglen - 16; //#26085 - $k[$j++] = 13; //#26085 - $_.tofixedbits(); //#26085 - $_.addtobits(); //#26085 - } //#26085 - for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26089 - $k[$j++] = $get($_.msg, _Z); //#26088 - $k[$j++] = 8; //#26088 - $_.tofixedbits(); //#26088 - $_.addtobits(); //#26088 - } //#26088 - $k[$j++] = 28; //#26090 - $k[$j++] = 5; //#26090 - $_.tofixedbits(); //#26090 - $_.addtobits(); //#26090 - $k[$j++] = 31; //#26091 - $k[$j++] = 5; //#26091 - $_.tofixedbits(); //#26091 - $_.addtobits(); //#26091 - $k[$j++] = "11"; //#26092 - $_.addtobits(); //#26092 - $_.diffside = 21; //#26095 - $_.sameshape = false; //#26096 - $_.sameecc = false; //#26097 - $_.hasslaves = false; //#26098 + var _K = $strcpy($s(13), "0000000000000"); //#26386 + var _L = $k[--$j]; //#26386 + var _O = $cvrs($s(13), $k[--$j], 2); //#26386 + $puti(_K, $f(_L - _O.length), _O); //#26387 + $k[$j++] = $geti(_K, 0, _L); //#26388 + }; //#26388 + var _R = ($_.msglen <= 15) ? 4 : 17; //#26392 + $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26392 + $_.j = 0; //#26393 + $k[$j++] = 31; //#26394 + $k[$j++] = 5; //#26394 + $_.tofixedbits(); //#26394 + $_.addtobits(); //#26394 + $k[$j++] = "00"; //#26395 + $_.addtobits(); //#26395 + if ($_.msglen <= 15) { //#26400 + $k[$j++] = $_.msglen; //#26397 + $k[$j++] = 4; //#26397 + $_.tofixedbits(); //#26397 + $_.addtobits(); //#26397 + } else { //#26400 + $k[$j++] = "0000"; //#26399 + $_.addtobits(); //#26399 + $k[$j++] = $_.msglen - 16; //#26400 + $k[$j++] = 13; //#26400 + $_.tofixedbits(); //#26400 + $_.addtobits(); //#26400 + } //#26400 + for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26404 + $k[$j++] = $get($_.msg, _Z); //#26403 + $k[$j++] = 8; //#26403 + $_.tofixedbits(); //#26403 + $_.addtobits(); //#26403 + } //#26403 + $k[$j++] = 28; //#26405 + $k[$j++] = 5; //#26405 + $_.tofixedbits(); //#26405 + $_.addtobits(); //#26405 + $k[$j++] = 31; //#26406 + $k[$j++] = 5; //#26406 + $_.tofixedbits(); //#26406 + $_.addtobits(); //#26406 + $k[$j++] = "11"; //#26407 + $_.addtobits(); //#26407 + $_.diffside = 21; //#26410 + $_.sameshape = false; //#26411 + $_.sameecc = false; //#26412 + $_.hasslaves = false; //#26413 $_.metrics = function() { - $_.mc = $k[--$j]; //#26102 - $_.mr = $k[--$j]; //#26102 - var _e = $_.mc; //#26103 - var _f = $_.mr; //#26103 - var _g = $_.mc; //#26104 - var _h = $_.mr; //#26104 - var _i = $_.colors; //#26106 - var _j = 64; //#26106 - if (64 > _i) { //#26106 - var _ = _i; //#26106 - _i = _j; //#26106 - _j = _; //#26106 - } //#26106 - var _l = $_.slave ? 7 : 17; //#26107 - $k[$j++] = _e * _f; //#26135 - $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26135 - $k[$j++] = _j * 2; //#26135 - $k[$j++] = _l * 4; //#26135 - if (!$_.slave) { //#26134 - var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26111 - $_.metass = _p; //#26111 - var _q = $_.mr; //#26112 - var _r = $_.mc; //#26112 - if ($lt(_q, _r)) { //#26112 - var _ = _r; //#26112 - _r = _q; //#26112 - _q = _; //#26112 - } //#26112 - $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26113 - $k[$j++] = 'metavlen'; //#26114 - if ($_.metass == 0) { //#26114 - $k[$j++] = $a([2, 2, 3, 4]); //#26114 - } else { //#26114 - $k[$j++] = $a([4, 6, 8, 10]); //#26114 - } //#26114 - var _z = $get($k[--$j], $_.metavf); //#26114 - $_[$k[--$j]] = _z; //#26114 - $_.metaelen = $f(($_.metavf * 2) + 10); //#26115 - $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26118 - if ($_.hasslaves) { //#26118 - var _15 = $k[--$j]; //#26118 - $k[$j++] = $f(_15 + 4); //#26118 - } //#26118 - var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26121 - $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26121 - $k[$j++] = _18 + 6; //#26122 - } else { //#26134 - $k[$j++] = 3; //#26125 - if (!$_.sameshape) { //#26125 - var _1B = $k[--$j]; //#26125 - $k[$j++] = $f(_1B + 5); //#26125 - } //#26125 - if ($_.hasslaves) { //#26126 - var _1D = $k[--$j]; //#26126 - $k[$j++] = $f(_1D + 3); //#26126 - } //#26126 - if (!$_.sameecc) { //#26131 - var _1F = $_.mr; //#26128 - var _1G = $_.mc; //#26128 - if ($lt(_1F, _1G)) { //#26128 - var _ = _1G; //#26128 - _1G = _1F; //#26128 - _1F = _; //#26128 - } //#26128 - var _1J = $k[--$j]; //#26130 - $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26130 - } //#26130 - var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26134 - $_.nummetabits = _1M * $_.metabpm; //#26134 - $k[$j++] = _1M; //#26134 - } //#26134 - var _1O = $k[--$j]; //#26137 - $_.nummetamodules = _1O; //#26137 - var _1P = $k[--$j]; //#26138 - var _1Q = $k[--$j]; //#26138 - var _1R = $k[--$j]; //#26138 - $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26138 - $_.numdatabits = $_.numdatamodules * $_.databpm; //#26139 - }; //#26139 - $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26143 - $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26144 + $_.mc = $k[--$j]; //#26417 + $_.mr = $k[--$j]; //#26417 + var _e = $_.mc; //#26418 + var _f = $_.mr; //#26418 + var _g = $_.mc; //#26419 + var _h = $_.mr; //#26419 + var _i = $_.colors; //#26421 + var _j = 64; //#26421 + if (64 > _i) { //#26421 + var _ = _i; //#26421 + _i = _j; //#26421 + _j = _; //#26421 + } //#26421 + var _l = $_.slave ? 7 : 17; //#26422 + $k[$j++] = _e * _f; //#26450 + $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26450 + $k[$j++] = _j * 2; //#26450 + $k[$j++] = _l * 4; //#26450 + if (!$_.slave) { //#26449 + var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26426 + $_.metass = _p; //#26426 + var _q = $_.mr; //#26427 + var _r = $_.mc; //#26427 + if ($lt(_q, _r)) { //#26427 + var _ = _r; //#26427 + _r = _q; //#26427 + _q = _; //#26427 + } //#26427 + $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26428 + $k[$j++] = 'metavlen'; //#26429 + if ($_.metass == 0) { //#26429 + $k[$j++] = $a([2, 2, 3, 4]); //#26429 + } else { //#26429 + $k[$j++] = $a([4, 6, 8, 10]); //#26429 + } //#26429 + var _z = $get($k[--$j], $_.metavf); //#26429 + $_[$k[--$j]] = _z; //#26429 + $_.metaelen = $f(($_.metavf * 2) + 10); //#26430 + $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26433 + if ($_.hasslaves) { //#26433 + var _15 = $k[--$j]; //#26433 + $k[$j++] = $f(_15 + 4); //#26433 + } //#26433 + var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26436 + $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26436 + $k[$j++] = _18 + 6; //#26437 + } else { //#26449 + $k[$j++] = 3; //#26440 + if (!$_.sameshape) { //#26440 + var _1B = $k[--$j]; //#26440 + $k[$j++] = $f(_1B + 5); //#26440 + } //#26440 + if ($_.hasslaves) { //#26441 + var _1D = $k[--$j]; //#26441 + $k[$j++] = $f(_1D + 3); //#26441 + } //#26441 + if (!$_.sameecc) { //#26446 + var _1F = $_.mr; //#26443 + var _1G = $_.mc; //#26443 + if ($lt(_1F, _1G)) { //#26443 + var _ = _1G; //#26443 + _1G = _1F; //#26443 + _1F = _; //#26443 + } //#26443 + var _1J = $k[--$j]; //#26445 + $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26445 + } //#26445 + var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26449 + $_.nummetabits = _1M * $_.metabpm; //#26449 + $k[$j++] = _1M; //#26449 + } //#26449 + var _1O = $k[--$j]; //#26452 + $_.nummetamodules = _1O; //#26452 + var _1P = $k[--$j]; //#26453 + var _1Q = $k[--$j]; //#26453 + var _1R = $k[--$j]; //#26453 + $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26453 + $_.numdatabits = $_.numdatamodules * $_.databpm; //#26454 + }; //#26454 + $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26458 + $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26459 $_.snapsize = function() { - var _1b = (~~Math.ceil($k[--$j])) - 18; //#26145 - $k[$j++] = _1b; //#26145 - if (_1b < 0) { //#26145 - $j--; //#26145 - $k[$j++] = 0; //#26145 - } //#26145 - var _1c = $k[--$j]; //#26145 - $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26145 - }; //#26145 - if (($_.rows == -1) && ($_.columns == -1)) { //#26174 - $k[$j++] = 'size'; //#26148 - $k[$j++] = Math.sqrt($_.grosslen); //#26148 - $_.snapsize(); //#26148 - var _1g = $k[--$j]; //#26148 - $_[$k[--$j]] = _1g; //#26148 - for (;;) { //#26153 - $k[$j++] = $_.size; //#26150 - $k[$j++] = $_.size; //#26150 - $_.metrics(); //#26150 - if ($_.grosslen <= $_.numdatabits) { //#26151 - break; //#26151 - } //#26151 - $_.size = $f($_.size + 4); //#26152 - } //#26152 - $_.rows = $_.size; //#26154 - $_.columns = $_.size; //#26155 - } else { //#26174 - if (($_.columns == -1) && ($_.rows != -1)) { //#26164 - $k[$j++] = 'columns'; //#26158 - $k[$j++] = $_.grosslen / $_.rows; //#26158 - $_.snapsize(); //#26158 - var _1t = $k[--$j]; //#26158 - $_[$k[--$j]] = _1t; //#26158 - for (;;) { //#26163 - $k[$j++] = $_.rows; //#26160 - $k[$j++] = $_.columns; //#26160 - $_.metrics(); //#26160 - if ($_.grosslen <= $_.numdatabits) { //#26161 - break; //#26161 - } //#26161 - $_.columns = $f($_.columns + 4); //#26162 - } //#26162 - } //#26162 - if (($_.rows == -1) && ($_.columns != -1)) { //#26172 - $k[$j++] = 'rows'; //#26166 - $k[$j++] = $_.grosslen / $_.columns; //#26166 - $_.snapsize(); //#26166 - var _24 = $k[--$j]; //#26166 - $_[$k[--$j]] = _24; //#26166 - for (;;) { //#26171 - $k[$j++] = $_.rows; //#26168 - $k[$j++] = $_.columns; //#26168 - $_.metrics(); //#26168 - if ($_.grosslen <= $_.numdatabits) { //#26169 - break; //#26169 - } //#26169 - $_.rows = $f($_.rows + 4); //#26170 - } //#26170 - } //#26170 - if (($_.rows != -1) && ($_.columns != -1)) { //#26175 - $k[$j++] = $_.rows; //#26174 - $k[$j++] = $_.columns; //#26174 - $_.metrics(); //#26174 - } //#26174 - } //#26174 - $_.C = $_.numdatabits; //#26177 - $_.cols = $_.columns; //#26178 - if (($_.rows > 145) || ($_.cols > 145)) { //#26183 - $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26182'; //#26182 - $k[$j++] = "Maximum length exceeded or invalid content"; //#26182 - bwipp_raiseerror(); //#26182 - } //#26182 - $_.min = $_.C; //#26186 - for (var _2K = 3; _2K <= 8; _2K += 1) { //#26198 - $_.i = _2K; //#26188 - for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26197 - $_.j = _2M; //#26190 - $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26191 - if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26196 - $_.datawc = $_.i; //#26193 - $_.datawr = $_.j; //#26194 - $_.min = $_.dist; //#26195 - } //#26195 - } //#26195 - } //#26195 - $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26201 - $puti($_.tmpbits, 0, $_.bits); //#26202 - for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26206 - var _2o = $get($_.tmpbits, _2m - 1); //#26204 - $k[$j++] = _2m; //#26204 - $k[$j++] = _2o; //#26204 - if ((_2o % 2) == 0) { //#26204 - var _2p = $k[--$j]; //#26204 - $k[$j++] = $f(_2p + 1); //#26204 - } else { //#26204 - var _2q = $k[--$j]; //#26204 - $k[$j++] = $f(_2q - 1); //#26204 - } //#26204 - var _2s = $k[--$j]; //#26205 - $put($_.tmpbits, $k[--$j], _2s); //#26205 - } //#26205 - $_.bits = $_.tmpbits; //#26207 - $_.m0 = 22609 + 1; //#26211 - $_.m1 = 62509 - 65536; //#26211 - $_.m2 = 19605; //#26211 - $_.m3 = 32557; //#26211 + var _1b = (~~Math.ceil($k[--$j])) - 18; //#26460 + $k[$j++] = _1b; //#26460 + if (_1b < 0) { //#26460 + $j--; //#26460 + $k[$j++] = 0; //#26460 + } //#26460 + var _1c = $k[--$j]; //#26460 + $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26460 + }; //#26460 + if (($_.rows == -1) && ($_.columns == -1)) { //#26489 + $k[$j++] = 'size'; //#26463 + $k[$j++] = Math.sqrt($_.grosslen); //#26463 + $_.snapsize(); //#26463 + var _1g = $k[--$j]; //#26463 + $_[$k[--$j]] = _1g; //#26463 + for (;;) { //#26468 + $k[$j++] = $_.size; //#26465 + $k[$j++] = $_.size; //#26465 + $_.metrics(); //#26465 + if ($_.grosslen <= $_.numdatabits) { //#26466 + break; //#26466 + } //#26466 + $_.size = $f($_.size + 4); //#26467 + } //#26467 + $_.rows = $_.size; //#26469 + $_.columns = $_.size; //#26470 + } else { //#26489 + if (($_.columns == -1) && ($_.rows != -1)) { //#26479 + $k[$j++] = 'columns'; //#26473 + $k[$j++] = $_.grosslen / $_.rows; //#26473 + $_.snapsize(); //#26473 + var _1t = $k[--$j]; //#26473 + $_[$k[--$j]] = _1t; //#26473 + for (;;) { //#26478 + $k[$j++] = $_.rows; //#26475 + $k[$j++] = $_.columns; //#26475 + $_.metrics(); //#26475 + if ($_.grosslen <= $_.numdatabits) { //#26476 + break; //#26476 + } //#26476 + $_.columns = $f($_.columns + 4); //#26477 + } //#26477 + } //#26477 + if (($_.rows == -1) && ($_.columns != -1)) { //#26487 + $k[$j++] = 'rows'; //#26481 + $k[$j++] = $_.grosslen / $_.columns; //#26481 + $_.snapsize(); //#26481 + var _24 = $k[--$j]; //#26481 + $_[$k[--$j]] = _24; //#26481 + for (;;) { //#26486 + $k[$j++] = $_.rows; //#26483 + $k[$j++] = $_.columns; //#26483 + $_.metrics(); //#26483 + if ($_.grosslen <= $_.numdatabits) { //#26484 + break; //#26484 + } //#26484 + $_.rows = $f($_.rows + 4); //#26485 + } //#26485 + } //#26485 + if (($_.rows != -1) && ($_.columns != -1)) { //#26490 + $k[$j++] = $_.rows; //#26489 + $k[$j++] = $_.columns; //#26489 + $_.metrics(); //#26489 + } //#26489 + } //#26489 + $_.C = $_.numdatabits; //#26492 + $_.cols = $_.columns; //#26493 + if (($_.rows > 145) || ($_.cols > 145)) { //#26498 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26497'; //#26497 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26497 + bwipp_raiseerror(); //#26497 + } //#26497 + $_.min = $_.C; //#26501 + for (var _2K = 3; _2K <= 8; _2K += 1) { //#26513 + $_.i = _2K; //#26503 + for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26512 + $_.j = _2M; //#26505 + $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26506 + if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26511 + $_.datawc = $_.i; //#26508 + $_.datawr = $_.j; //#26509 + $_.min = $_.dist; //#26510 + } //#26510 + } //#26510 + } //#26510 + $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26516 + $puti($_.tmpbits, 0, $_.bits); //#26517 + for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26521 + var _2o = $get($_.tmpbits, _2m - 1); //#26519 + $k[$j++] = _2m; //#26519 + $k[$j++] = _2o; //#26519 + if ((_2o % 2) == 0) { //#26519 + var _2p = $k[--$j]; //#26519 + $k[$j++] = $f(_2p + 1); //#26519 + } else { //#26519 + var _2q = $k[--$j]; //#26519 + $k[$j++] = $f(_2q - 1); //#26519 + } //#26519 + var _2s = $k[--$j]; //#26520 + $put($_.tmpbits, $k[--$j], _2s); //#26520 + } //#26520 + $_.bits = $_.tmpbits; //#26522 + $_.m0 = 22609 + 1; //#26526 + $_.m1 = 62509 - 65536; //#26526 + $_.m2 = 19605; //#26526 + $_.m3 = 32557; //#26526 $_.lcg64_temper = function() { - $_.p00 = $_.m0 * $_.s0; //#26217 - $_.p01 = $_.m0 * $_.s1; //#26217 - $_.p02 = $_.m0 * $_.s2; //#26217 - $_.p03 = $_.m0 * $_.s3; //#26217 - $_.p10 = $_.m1 * $_.s0; //#26218 - $_.p11 = $_.m1 * $_.s1; //#26218 - $_.p12 = $_.m1 * $_.s2; //#26218 - $_.p13 = $_.m1 * $_.s3; //#26218 - $_.p20 = $_.m2 * $_.s0; //#26219 - $_.p21 = $_.m2 * $_.s1; //#26219 - $_.p22 = $_.m2 * $_.s2; //#26219 - $_.p23 = $_.m2 * $_.s3; //#26219 - $_.p30 = $_.m3 * $_.s0; //#26220 - $_.p31 = $_.m3 * $_.s1; //#26220 - $_.p32 = $_.m3 * $_.s2; //#26220 - $_.p33 = $_.m3 * $_.s3; //#26220 - $_.s3 = ($_.p33 % 65536) + 1; //#26222 - $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26224 - $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26227 - $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26231 - $_.s3 = $_.s3 + 65536; //#26234 - $_.s2 = $_.s2 + 65535; //#26235 - $_.s1 = $_.s1 + 65535; //#26236 - $_.s0 = $_.s0 + 65535; //#26237 - $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26240 - $_.s3 = $_.s3 % 65536; //#26240 - $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26241 - $_.s2 = $_.s2 % 65536; //#26241 - $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26242 - $_.s1 = $_.s1 % 65536; //#26242 - $_.s0 = $_.s0 % 65536; //#26243 - var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26248 - var _3y = _3x ^ (_3x >>> 11); //#26249 - var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26250 - var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26252 - $k[$j++] = _40 ^ (_40 >>> 18); //#26252 - }; //#26252 + $_.p00 = $_.m0 * $_.s0; //#26532 + $_.p01 = $_.m0 * $_.s1; //#26532 + $_.p02 = $_.m0 * $_.s2; //#26532 + $_.p03 = $_.m0 * $_.s3; //#26532 + $_.p10 = $_.m1 * $_.s0; //#26533 + $_.p11 = $_.m1 * $_.s1; //#26533 + $_.p12 = $_.m1 * $_.s2; //#26533 + $_.p13 = $_.m1 * $_.s3; //#26533 + $_.p20 = $_.m2 * $_.s0; //#26534 + $_.p21 = $_.m2 * $_.s1; //#26534 + $_.p22 = $_.m2 * $_.s2; //#26534 + $_.p23 = $_.m2 * $_.s3; //#26534 + $_.p30 = $_.m3 * $_.s0; //#26535 + $_.p31 = $_.m3 * $_.s1; //#26535 + $_.p32 = $_.m3 * $_.s2; //#26535 + $_.p33 = $_.m3 * $_.s3; //#26535 + $_.s3 = ($_.p33 % 65536) + 1; //#26537 + $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26539 + $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26542 + $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26546 + $_.s3 = $_.s3 + 65536; //#26549 + $_.s2 = $_.s2 + 65535; //#26550 + $_.s1 = $_.s1 + 65535; //#26551 + $_.s0 = $_.s0 + 65535; //#26552 + $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26555 + $_.s3 = $_.s3 % 65536; //#26555 + $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26556 + $_.s2 = $_.s2 % 65536; //#26556 + $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26557 + $_.s1 = $_.s1 % 65536; //#26557 + $_.s0 = $_.s0 % 65536; //#26558 + var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26563 + var _3y = _3x ^ (_3x >>> 11); //#26564 + var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26565 + var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26567 + $k[$j++] = _40 ^ (_40 >>> 18); //#26567 + }; //#26567 $_.createMatrixA = function() { - $k[$j++] = 'nb_pcb'; //#26258 - if ($_.wr < 4) { //#26258 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26258 - } else { //#26258 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26258 - } //#26258 - var _46 = $k[--$j]; //#26258 - $_[$k[--$j]] = _46; //#26258 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26259 - $_.effwidth = $_.offset * 32; //#26260 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26261 - for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26262 - $put($_.matrixA, _4G, 0); //#26262 - } //#26262 - $_.permutation = $a($_.Pg_sub_block); //#26263 - for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26264 - $put($_.permutation, _4M, _4M); //#26264 - } //#26264 - for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26273 - $_.i = _4R; //#26267 - for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26272 - $_.j = _4U; //#26269 - var _4V = $_.matrixA; //#26270 - var _4W = $_.i; //#26270 - var _4X = $_.effwidth; //#26270 - var _4Y = $_.wr; //#26270 - var _4Z = $_.j; //#26270 - var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26271 - $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26271 - } //#26271 - } //#26271 - $_.s0 = 0; //#26276 - $_.s1 = 0; //#26276 - $_.s2 = 11; //#26276 - $_.s3 = 64569; //#26276 - for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26299 - $_.i = _4i; //#26278 - $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26279 - for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26298 - $_.j = _4o; //#26281 - $_.lcg64_temper(); //#26282 - var _4p = $k[--$j]; //#26283 - $k[$j++] = _4p; //#26283 - if (_4p < 0) { //#26283 - var _4q = $k[--$j]; //#26283 - $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26283 - } //#26283 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26285 - for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26294 - $_.k = _4x; //#26287 - var _4y = $_.matrixA; //#26288 - var _4z = $_.off_index; //#26288 - var _50 = $_.k; //#26288 - var _51 = $_.offset; //#26288 - var _52 = $_.j; //#26288 - var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26290 - var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26291 - var _5G = 31 - ($_.j % 32); //#26292 - $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26293 - } //#26293 - var _5J = $_.permutation; //#26295 - var _5K = $_.Pg_sub_block; //#26295 - var _5L = $_.j; //#26295 - $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26297 - $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26297 - } //#26297 - } //#26297 - }; //#26297 + $k[$j++] = 'nb_pcb'; //#26573 + if ($_.wr < 4) { //#26573 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26573 + } else { //#26573 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26573 + } //#26573 + var _46 = $k[--$j]; //#26573 + $_[$k[--$j]] = _46; //#26573 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26574 + $_.effwidth = $_.offset * 32; //#26575 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26576 + for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26577 + $put($_.matrixA, _4G, 0); //#26577 + } //#26577 + $_.permutation = $a($_.Pg_sub_block); //#26578 + for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26579 + $put($_.permutation, _4M, _4M); //#26579 + } //#26579 + for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26588 + $_.i = _4R; //#26582 + for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26587 + $_.j = _4U; //#26584 + var _4V = $_.matrixA; //#26585 + var _4W = $_.i; //#26585 + var _4X = $_.effwidth; //#26585 + var _4Y = $_.wr; //#26585 + var _4Z = $_.j; //#26585 + var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26586 + $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26586 + } //#26586 + } //#26586 + $_.s0 = 0; //#26591 + $_.s1 = 0; //#26591 + $_.s2 = 11; //#26591 + $_.s3 = 64569; //#26591 + for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26614 + $_.i = _4i; //#26593 + $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26594 + for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26613 + $_.j = _4o; //#26596 + $_.lcg64_temper(); //#26597 + var _4p = $k[--$j]; //#26598 + $k[$j++] = _4p; //#26598 + if (_4p < 0) { //#26598 + var _4q = $k[--$j]; //#26598 + $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26598 + } //#26598 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26600 + for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26609 + $_.k = _4x; //#26602 + var _4y = $_.matrixA; //#26603 + var _4z = $_.off_index; //#26603 + var _50 = $_.k; //#26603 + var _51 = $_.offset; //#26603 + var _52 = $_.j; //#26603 + var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26605 + var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26606 + var _5G = 31 - ($_.j % 32); //#26607 + $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26608 + } //#26608 + var _5J = $_.permutation; //#26610 + var _5K = $_.Pg_sub_block; //#26610 + var _5L = $_.j; //#26610 + $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26612 + $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26612 + } //#26612 + } //#26612 + }; //#26612 $_.createMetadataMatrixA = function() { - $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26305 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26306 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26307 - for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26308 - $put($_.matrixA, _5Y, 0); //#26308 - } //#26308 - $_.permutation = $a($_.Pg_sub_block); //#26309 - for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26310 - $put($_.permutation, _5e, _5e); //#26310 - } //#26310 - $_.s0 = 0; //#26313 - $_.s1 = 0; //#26313 - $_.s2 = 0; //#26313 - $_.s3 = 38545; //#26313 - $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26314 - for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26329 - $_.i = _5m; //#26316 - for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26328 - $_.j = _5p; //#26318 - $_.lcg64_temper(); //#26319 - var _5q = $k[--$j]; //#26320 - $k[$j++] = _5q; //#26320 - if (_5q < 0) { //#26320 - var _5r = $k[--$j]; //#26320 - $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26320 - } //#26320 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26322 - var _5v = $_.matrixA; //#26323 - var _5w = $_.i; //#26323 - var _5x = $_.offset; //#26323 - var _60 = $get($_.permutation, $_.pos); //#26323 - var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26324 - $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26324 - var _68 = $_.permutation; //#26325 - var _69 = $_.Pg_sub_block; //#26325 - var _6A = $_.j; //#26325 - $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26327 - $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26327 - } //#26327 - } //#26327 - }; //#26327 + $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26620 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26621 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26622 + for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26623 + $put($_.matrixA, _5Y, 0); //#26623 + } //#26623 + $_.permutation = $a($_.Pg_sub_block); //#26624 + for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26625 + $put($_.permutation, _5e, _5e); //#26625 + } //#26625 + $_.s0 = 0; //#26628 + $_.s1 = 0; //#26628 + $_.s2 = 0; //#26628 + $_.s3 = 38545; //#26628 + $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26629 + for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26644 + $_.i = _5m; //#26631 + for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26643 + $_.j = _5p; //#26633 + $_.lcg64_temper(); //#26634 + var _5q = $k[--$j]; //#26635 + $k[$j++] = _5q; //#26635 + if (_5q < 0) { //#26635 + var _5r = $k[--$j]; //#26635 + $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26635 + } //#26635 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26637 + var _5v = $_.matrixA; //#26638 + var _5w = $_.i; //#26638 + var _5x = $_.offset; //#26638 + var _60 = $get($_.permutation, $_.pos); //#26638 + var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26639 + $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26639 + var _68 = $_.permutation; //#26640 + var _69 = $_.Pg_sub_block; //#26640 + var _6A = $_.j; //#26640 + $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26642 + $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26642 + } //#26642 + } //#26642 + }; //#26642 $_.GaussJordan = function() { - $k[$j++] = 'nb_pcb'; //#26335 - if ($_.wr < 4) { //#26335 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26335 - } else { //#26335 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26335 - } //#26335 - var _6K = $k[--$j]; //#26335 - $_[$k[--$j]] = _6K; //#26335 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26336 - var _6N = $_.matrixA; //#26337 - $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26337 - $k[$j++] = Infinity; //#26338 - for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26338 - $k[$j++] = 0; //#26338 - } //#26338 - $_.column_arrangement = $a(); //#26338 - $k[$j++] = Infinity; //#26339 - for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26339 - $k[$j++] = false; //#26339 - } //#26339 - $_.processed_column = $a(); //#26339 - $k[$j++] = Infinity; //#26340 - for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26340 - $k[$j++] = 0; //#26340 - } //#26340 - $_.zero_lines_nb = $a(); //#26340 - $k[$j++] = Infinity; //#26341 - for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26341 - $k[$j++] = 0; //#26341 - } //#26341 - $_.swap_col = $a(); //#26341 - $_.zero_lines = 0; //#26342 - $_.loop0 = 0; //#26344 - for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26382 - $_.i = _6i; //#26346 - $_.pivot_column = $_.Pg_sub_block + 1; //#26347 - for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26355 - $_.j = _6m; //#26349 - var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26350 - var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26351 - if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26354 - $_.pivot_column = $_.j; //#26352 - break; //#26353 - } //#26353 - } //#26353 - if ($_.pivot_column < $_.Pg_sub_block) { //#26380 - $put($_.processed_column, $_.pivot_column, true); //#26357 - $put($_.column_arrangement, $_.pivot_column, $_.i); //#26358 - if ($_.pivot_column >= $_.nb_pcb) { //#26362 - $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26360 - $_.loop0 = $_.loop0 + 1; //#26361 - } //#26361 - $_.off_index = ~~($_.pivot_column / 32); //#26363 - $_.off_index1 = $_.pivot_column % 32; //#26364 - for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26377 - $_.j = _7E; //#26366 - if ($_.i != $_.j) { //#26376 - var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26368 - var _7N = -(31 - $_.off_index1); //#26369 - if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26375 - for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26374 - $_.k = _7Q; //#26371 - var _7R = $_.matrixH; //#26372 - var _7S = $_.offset; //#26372 - var _7T = $_.j; //#26372 - var _7U = $_.k; //#26372 - $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26373 - } //#26373 - } //#26373 - } //#26373 - } //#26373 - } else { //#26380 - $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26379 - $_.zero_lines = $_.zero_lines + 1; //#26380 - } //#26380 - } //#26380 - $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26384 - $_.loop2 = 0; //#26385 - for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26405 - $_.i = _7k; //#26387 - if ($get($_.column_arrangement, $_.i) > 0) { //#26404 - for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26403 - $_.j = _7q; //#26390 - if ($nt($get($_.processed_column, $_.j))) { //#26402 - $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26392 - $put($_.column_arrangement, $_.i, 0); //#26393 - $put($_.processed_column, $_.j, true); //#26394 - $put($_.processed_column, $_.i, false); //#26395 - $put($_.swap_col, $_.loop0 * 2, $_.i); //#26396 - $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26397 - $put($_.column_arrangement, $_.i, $_.j); //#26398 - $_.loop0 = $_.loop0 + 1; //#26399 - $_.loop2 = $_.loop2 + 1; //#26400 - break; //#26401 - } //#26401 - } //#26401 - } //#26401 - } //#26401 - $_.loop1 = 0; //#26407 - for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26416 - $_.kl = _8I; //#26409 - if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26415 - $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26411 - $put($_.processed_column, $_.kl, true); //#26412 - $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26413 - $_.loop1 = $_.loop1 + 1; //#26414 - } //#26414 - } //#26414 - $_.loop1 = 0; //#26418 - for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26425 - $_.kl = _8e; //#26420 - if ($nt($get($_.processed_column, $_.kl))) { //#26424 - $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26422 - $_.loop1 = $_.loop1 + 1; //#26423 - } //#26423 - } //#26423 - for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26434 - $_.i = _8q; //#26428 - for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26433 - $_.j = _8t; //#26430 - $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26432 - } //#26432 - } //#26432 - $_.tmp = 0; //#26436 - for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26458 - $_.i = _97; //#26438 - for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26457 - $_.j = _9A; //#26440 - var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26441 - var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26442 - $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26443 - var _9O = $_.matrixA; //#26444 - var _9R = $get($_.swap_col, $_.i * 2); //#26444 - var _9S = $_.j; //#26444 - var _9T = $_.offset; //#26444 - var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26446 - var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26447 - var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26449 - $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26450 - var _9r = $_.matrixA; //#26451 - var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26451 - var _9v = $_.j; //#26451 - var _9w = $_.offset; //#26451 - var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26455 - $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26456 - } //#26456 - } //#26456 - }; //#26456 + $k[$j++] = 'nb_pcb'; //#26650 + if ($_.wr < 4) { //#26650 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26650 + } else { //#26650 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26650 + } //#26650 + var _6K = $k[--$j]; //#26650 + $_[$k[--$j]] = _6K; //#26650 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26651 + var _6N = $_.matrixA; //#26652 + $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26652 + $k[$j++] = Infinity; //#26653 + for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26653 + $k[$j++] = 0; //#26653 + } //#26653 + $_.column_arrangement = $a(); //#26653 + $k[$j++] = Infinity; //#26654 + for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26654 + $k[$j++] = false; //#26654 + } //#26654 + $_.processed_column = $a(); //#26654 + $k[$j++] = Infinity; //#26655 + for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26655 + $k[$j++] = 0; //#26655 + } //#26655 + $_.zero_lines_nb = $a(); //#26655 + $k[$j++] = Infinity; //#26656 + for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26656 + $k[$j++] = 0; //#26656 + } //#26656 + $_.swap_col = $a(); //#26656 + $_.zero_lines = 0; //#26657 + $_.loop0 = 0; //#26659 + for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26697 + $_.i = _6i; //#26661 + $_.pivot_column = $_.Pg_sub_block + 1; //#26662 + for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26670 + $_.j = _6m; //#26664 + var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26665 + var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26666 + if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26669 + $_.pivot_column = $_.j; //#26667 + break; //#26668 + } //#26668 + } //#26668 + if ($_.pivot_column < $_.Pg_sub_block) { //#26695 + $put($_.processed_column, $_.pivot_column, true); //#26672 + $put($_.column_arrangement, $_.pivot_column, $_.i); //#26673 + if ($_.pivot_column >= $_.nb_pcb) { //#26677 + $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26675 + $_.loop0 = $_.loop0 + 1; //#26676 + } //#26676 + $_.off_index = ~~($_.pivot_column / 32); //#26678 + $_.off_index1 = $_.pivot_column % 32; //#26679 + for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26692 + $_.j = _7E; //#26681 + if ($_.i != $_.j) { //#26691 + var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26683 + var _7N = -(31 - $_.off_index1); //#26684 + if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26690 + for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26689 + $_.k = _7Q; //#26686 + var _7R = $_.matrixH; //#26687 + var _7S = $_.offset; //#26687 + var _7T = $_.j; //#26687 + var _7U = $_.k; //#26687 + $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26688 + } //#26688 + } //#26688 + } //#26688 + } //#26688 + } else { //#26695 + $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26694 + $_.zero_lines = $_.zero_lines + 1; //#26695 + } //#26695 + } //#26695 + $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26699 + $_.loop2 = 0; //#26700 + for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26720 + $_.i = _7k; //#26702 + if ($get($_.column_arrangement, $_.i) > 0) { //#26719 + for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26718 + $_.j = _7q; //#26705 + if ($nt($get($_.processed_column, $_.j))) { //#26717 + $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26707 + $put($_.column_arrangement, $_.i, 0); //#26708 + $put($_.processed_column, $_.j, true); //#26709 + $put($_.processed_column, $_.i, false); //#26710 + $put($_.swap_col, $_.loop0 * 2, $_.i); //#26711 + $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26712 + $put($_.column_arrangement, $_.i, $_.j); //#26713 + $_.loop0 = $_.loop0 + 1; //#26714 + $_.loop2 = $_.loop2 + 1; //#26715 + break; //#26716 + } //#26716 + } //#26716 + } //#26716 + } //#26716 + $_.loop1 = 0; //#26722 + for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26731 + $_.kl = _8I; //#26724 + if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26730 + $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26726 + $put($_.processed_column, $_.kl, true); //#26727 + $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26728 + $_.loop1 = $_.loop1 + 1; //#26729 + } //#26729 + } //#26729 + $_.loop1 = 0; //#26733 + for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26740 + $_.kl = _8e; //#26735 + if ($nt($get($_.processed_column, $_.kl))) { //#26739 + $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26737 + $_.loop1 = $_.loop1 + 1; //#26738 + } //#26738 + } //#26738 + for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26749 + $_.i = _8q; //#26743 + for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26748 + $_.j = _8t; //#26745 + $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26747 + } //#26747 + } //#26747 + $_.tmp = 0; //#26751 + for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26773 + $_.i = _97; //#26753 + for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26772 + $_.j = _9A; //#26755 + var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26756 + var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26757 + $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26758 + var _9O = $_.matrixA; //#26759 + var _9R = $get($_.swap_col, $_.i * 2); //#26759 + var _9S = $_.j; //#26759 + var _9T = $_.offset; //#26759 + var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26761 + var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26762 + var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26764 + $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26765 + var _9r = $_.matrixA; //#26766 + var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26766 + var _9v = $_.j; //#26766 + var _9w = $_.offset; //#26766 + var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26770 + $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26771 + } //#26771 + } //#26771 + }; //#26771 $_.createGeneratorMatrix = function() { - $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26464 - $_.offset = ~~Math.ceil($_.pn / 32); //#26465 - $_.effwidth = $_.offset * 32; //#26466 - $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26467 - $_.G = $a($_.offset * $_.Pg_sub_block); //#26468 - for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26471 - $put($_.G, _AL, 0); //#26470 - } //#26470 - for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26476 - $_.i = _AP; //#26473 - var _AQ = $_.G; //#26474 - var _AR = $_.Pg_sub_block; //#26474 - var _AS = $_.pn; //#26474 - var _AT = $_.i; //#26474 - var _AU = $_.offset; //#26474 - var _AV = $_.i; //#26474 - var _AY = 31 - ($_.i % 32); //#26475 - $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26475 - } //#26475 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26477 - $_.loop0 = 0; //#26478 - for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26495 - $_.i = _Af; //#26480 - if ($_.matrix_index >= $_.Pg_sub_block) { //#26484 - $_.loop0 = $_.loop0 + 1; //#26482 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26483 - } //#26483 - if (($_.i % $_.effwidth) < $_.pn) { //#26494 - var _Ao = $_.G; //#26486 - var _Ap = $_.i; //#26486 - var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26488 - var _Ax = -(31 - ($_.matrix_index % 32)); //#26489 - var _B2 = 31 - ($_.i % 32); //#26491 - $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26492 - $_.matrix_index = $_.matrix_index + 1; //#26493 - } //#26493 - } //#26493 - }; //#26493 + $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26779 + $_.offset = ~~Math.ceil($_.pn / 32); //#26780 + $_.effwidth = $_.offset * 32; //#26781 + $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26782 + $_.G = $a($_.offset * $_.Pg_sub_block); //#26783 + for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26786 + $put($_.G, _AL, 0); //#26785 + } //#26785 + for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26791 + $_.i = _AP; //#26788 + var _AQ = $_.G; //#26789 + var _AR = $_.Pg_sub_block; //#26789 + var _AS = $_.pn; //#26789 + var _AT = $_.i; //#26789 + var _AU = $_.offset; //#26789 + var _AV = $_.i; //#26789 + var _AY = 31 - ($_.i % 32); //#26790 + $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26790 + } //#26790 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26792 + $_.loop0 = 0; //#26793 + for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26810 + $_.i = _Af; //#26795 + if ($_.matrix_index >= $_.Pg_sub_block) { //#26799 + $_.loop0 = $_.loop0 + 1; //#26797 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26798 + } //#26798 + if (($_.i % $_.effwidth) < $_.pn) { //#26809 + var _Ao = $_.G; //#26801 + var _Ap = $_.i; //#26801 + var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26803 + var _Ax = -(31 - ($_.matrix_index % 32)); //#26804 + var _B2 = 31 - ($_.i % 32); //#26806 + $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26807 + $_.matrix_index = $_.matrix_index + 1; //#26808 + } //#26808 + } //#26808 + }; //#26808 $_.ldpc = function() { - $_.wr = $k[--$j]; //#26501 - $_.wc = $k[--$j]; //#26502 - $k[$j++] = Infinity; //#26503 - var _B6 = $k[--$j]; //#26503 - var _B7 = $k[--$j]; //#26503 - $k[$j++] = _B6; //#26503 - $forall(_B7, function() { //#26503 - var _B8 = $k[--$j]; //#26503 - $k[$j++] = $f(_B8 - 48); //#26503 - }); //#26503 - $_.data = $a(); //#26503 - $_.Pn = $_.data.length; //#26505 - if ($_.wr != -1) { //#26520 - $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26507 - $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26508 - $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26509 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26510 - $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26511 - $k[$j++] = 'encoding_iterations'; //#26512 - $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26512 - if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26512 - var _BY = $k[--$j]; //#26512 - $k[$j++] = $f(_BY - 1); //#26512 - } //#26512 - var _BZ = $k[--$j]; //#26512 - $_[$k[--$j]] = _BZ; //#26512 - $_.createMatrixA(); //#26513 - } else { //#26520 - $_.Pg = $_.Pn * 2; //#26515 - $_.nb_sub_blocks = 1; //#26516 - $_.Pg_sub_block = $_.Pg; //#26517 - $_.Pn_sub_block = $_.Pn; //#26518 - $_.encoding_iterations = 1; //#26519 - $_.createMetadataMatrixA(); //#26520 - } //#26520 - $_.GaussJordan(); //#26522 - $_.createGeneratorMatrix(); //#26523 - $_.ecc_encoded_data = $a($_.Pg); //#26525 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26527 - for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26543 - $_.iter = _Bk; //#26529 - for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26542 - $_.i = _Bn; //#26531 - $_.temp = 0; //#26532 - $_.loop0 = 0; //#26533 - $_.offset_index = $_.offset * $_.i; //#26534 - for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26540 - var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26537 - var _C3 = -(31 - ($_.loop0 % 32)); //#26537 - $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26538 - $_.loop0 = $_.loop0 + 1; //#26539 - } //#26539 - $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26541 - } //#26541 - } //#26541 - if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26567 - $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26546 - $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26547 - $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26548 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26549 - $_.createMatrixA(); //#26550 - $_.GaussJordan(); //#26551 - $_.createGeneratorMatrix(); //#26552 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26553 - for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26566 - $_.i = _CS; //#26555 - $_.temp = 0; //#26556 - $_.loop0 = 0; //#26557 - $_.offset_index = $_.offset * $_.i; //#26558 - for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26564 - var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26561 - var _Cg = -(31 - ($_.loop0 % 32)); //#26561 - $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26562 - $_.loop0 = $_.loop0 + 1; //#26563 - } //#26563 - $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26565 - } //#26565 - } //#26565 - $_.out = $s($_.Pg); //#26569 - for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26573 - $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26572 - } //#26572 - $k[$j++] = $_.out; //#26574 - }; //#26574 - $k[$j++] = 'bits'; //#26579 - $k[$j++] = $_.bits; //#26579 - $k[$j++] = $_.datawc; //#26579 - $k[$j++] = $_.datawr; //#26579 - $_.ldpc(); //#26579 - var _Cz = $k[--$j]; //#26579 - $_[$k[--$j]] = _Cz; //#26579 - $_.s0 = 0; //#26582 - $_.s1 = 0; //#26582 - $_.s2 = 3; //#26582 - $_.s3 = 30151; //#26582 - for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26592 - $_.l = _D2; //#26584 - $_.lcg64_temper(); //#26585 - var _D3 = $k[--$j]; //#26586 - $k[$j++] = _D3; //#26586 - if (_D3 < 0) { //#26586 - var _D4 = $k[--$j]; //#26586 - $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26586 - } //#26586 - $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26588 - $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26590 - $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26591 - } //#26591 - $_.tmpbits = $s($_.C); //#26595 - $puti($_.tmpbits, 0, $_.bits); //#26596 - $_.j = $_.bits.length; //#26597 - for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26602 - $put($_.tmpbits, $_.j, 48); //#26599 - if (($_.j + 1) < $_.C) { //#26600 - $put($_.tmpbits, $_.j + 1, 49); //#26600 - } //#26600 - $_.j = $_.j + 2; //#26601 - } //#26601 - $_.bits = $_.tmpbits; //#26603 - if ($_.colors == 4) { //#26668 - $_.bi = 0; //#26607 - $_.gi = 1; //#26607 - $_.mi = 2; //#26607 - $_.yi = 3; //#26607 - $_.ki = 4; //#26608 - $_.wi = 5; //#26608 - $k[$j++] = Infinity; //#26611 - $k[$j++] = $_.bi; //#26611 - $k[$j++] = "0000FF"; //#26611 - $k[$j++] = $_.gi; //#26611 - $k[$j++] = "00FF00"; //#26611 - $k[$j++] = $_.mi; //#26611 - $k[$j++] = "FF00FF"; //#26611 - $k[$j++] = $_.yi; //#26611 - $k[$j++] = "FFFF00"; //#26611 - $k[$j++] = $_.ki; //#26611 - $k[$j++] = "000000"; //#26611 - $k[$j++] = $_.wi; //#26611 - $k[$j++] = "FFFFFF"; //#26611 - $_.palette = $d(); //#26612 - $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26613 - $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26614 - } else { //#26668 + $_.wr = $k[--$j]; //#26816 + $_.wc = $k[--$j]; //#26817 + $k[$j++] = Infinity; //#26818 + var _B6 = $k[--$j]; //#26818 + var _B7 = $k[--$j]; //#26818 + $k[$j++] = _B6; //#26818 + $forall(_B7, function() { //#26818 + var _B8 = $k[--$j]; //#26818 + $k[$j++] = $f(_B8 - 48); //#26818 + }); //#26818 + $_.data = $a(); //#26818 + $_.Pn = $_.data.length; //#26820 + if ($_.wr != -1) { //#26835 + $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26822 + $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26823 + $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26824 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26825 + $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26826 + $k[$j++] = 'encoding_iterations'; //#26827 + $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26827 + if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26827 + var _BY = $k[--$j]; //#26827 + $k[$j++] = $f(_BY - 1); //#26827 + } //#26827 + var _BZ = $k[--$j]; //#26827 + $_[$k[--$j]] = _BZ; //#26827 + $_.createMatrixA(); //#26828 + } else { //#26835 + $_.Pg = $_.Pn * 2; //#26830 + $_.nb_sub_blocks = 1; //#26831 + $_.Pg_sub_block = $_.Pg; //#26832 + $_.Pn_sub_block = $_.Pn; //#26833 + $_.encoding_iterations = 1; //#26834 + $_.createMetadataMatrixA(); //#26835 + } //#26835 + $_.GaussJordan(); //#26837 + $_.createGeneratorMatrix(); //#26838 + $_.ecc_encoded_data = $a($_.Pg); //#26840 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26842 + for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26858 + $_.iter = _Bk; //#26844 + for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26857 + $_.i = _Bn; //#26846 + $_.temp = 0; //#26847 + $_.loop0 = 0; //#26848 + $_.offset_index = $_.offset * $_.i; //#26849 + for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26855 + var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26852 + var _C3 = -(31 - ($_.loop0 % 32)); //#26852 + $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26853 + $_.loop0 = $_.loop0 + 1; //#26854 + } //#26854 + $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26856 + } //#26856 + } //#26856 + if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26882 + $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26861 + $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26862 + $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26863 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26864 + $_.createMatrixA(); //#26865 + $_.GaussJordan(); //#26866 + $_.createGeneratorMatrix(); //#26867 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26868 + for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26881 + $_.i = _CS; //#26870 + $_.temp = 0; //#26871 + $_.loop0 = 0; //#26872 + $_.offset_index = $_.offset * $_.i; //#26873 + for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26879 + var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26876 + var _Cg = -(31 - ($_.loop0 % 32)); //#26876 + $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26877 + $_.loop0 = $_.loop0 + 1; //#26878 + } //#26878 + $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26880 + } //#26880 + } //#26880 + $_.out = $s($_.Pg); //#26884 + for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26888 + $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26887 + } //#26887 + $k[$j++] = $_.out; //#26889 + }; //#26889 + $k[$j++] = 'bits'; //#26894 + $k[$j++] = $_.bits; //#26894 + $k[$j++] = $_.datawc; //#26894 + $k[$j++] = $_.datawr; //#26894 + $_.ldpc(); //#26894 + var _Cz = $k[--$j]; //#26894 + $_[$k[--$j]] = _Cz; //#26894 + $_.s0 = 0; //#26897 + $_.s1 = 0; //#26897 + $_.s2 = 3; //#26897 + $_.s3 = 30151; //#26897 + for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26907 + $_.l = _D2; //#26899 + $_.lcg64_temper(); //#26900 + var _D3 = $k[--$j]; //#26901 + $k[$j++] = _D3; //#26901 + if (_D3 < 0) { //#26901 + var _D4 = $k[--$j]; //#26901 + $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26901 + } //#26901 + $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26903 + $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26905 + $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26906 + } //#26906 + $_.tmpbits = $s($_.C); //#26910 + $puti($_.tmpbits, 0, $_.bits); //#26911 + $_.j = $_.bits.length; //#26912 + for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26917 + $put($_.tmpbits, $_.j, 48); //#26914 + if (($_.j + 1) < $_.C) { //#26915 + $put($_.tmpbits, $_.j + 1, 49); //#26915 + } //#26915 + $_.j = $_.j + 2; //#26916 + } //#26916 + $_.bits = $_.tmpbits; //#26918 + if ($_.colors == 4) { //#26983 + $_.bi = 0; //#26922 + $_.gi = 1; //#26922 + $_.mi = 2; //#26922 + $_.yi = 3; //#26922 + $_.ki = 4; //#26923 + $_.wi = 5; //#26923 + $k[$j++] = Infinity; //#26924 + $k[$j++] = $_.bi; //#26926 + $k[$j++] = "0000FF"; //#26926 + $k[$j++] = $_.gi; //#26926 + $k[$j++] = "00FF00"; //#26926 + $k[$j++] = $_.mi; //#26926 + $k[$j++] = "FF00FF"; //#26926 + $k[$j++] = $_.yi; //#26926 + $k[$j++] = "FFFF00"; //#26926 + $k[$j++] = $_.ki; //#26926 + $k[$j++] = "000000"; //#26926 + $k[$j++] = $_.wi; //#26926 + $k[$j++] = "FFFFFF"; //#26926 + $_.palette = $d(); //#26927 + $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26928 + $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26929 + } else { //#26983 var _Dw = new Map([ [8, $a([2, 2, 2])], [16, $a([4, 2, 2])], @@ -33497,1037 +33975,1037 @@ function bwipp_jabcode() { [64, $a([4, 4, 4])], [128, $a([8, 4, 4])], [256, $a([8, 8, 4])] - ]); //#26623 - $_.rgbres = $get(_Dw, $_.colors); //#26624 - $k[$j++] = 'rvals'; //#26626 - $k[$j++] = $get($_.rgbres, 0); //#26626 - $k[$j++] = Infinity; //#26626 - var _E1 = $k[--$j]; //#26626 - var _E3 = $f($k[--$j] - 1); //#26626 - $k[$j++] = _E1; //#26626 - $k[$j++] = _E3; //#26626 - for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26626 - var _E6 = $k[--$j]; //#26626 - $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26626 - $k[$j++] = _E6; //#26626 - } //#26626 - $j--; //#26626 - var _E7 = $a(); //#26626 - $_[$k[--$j]] = _E7; //#26626 - $k[$j++] = 'gvals'; //#26627 - $k[$j++] = $get($_.rgbres, 1); //#26627 - $k[$j++] = Infinity; //#26627 - var _EB = $k[--$j]; //#26627 - var _ED = $f($k[--$j] - 1); //#26627 - $k[$j++] = _EB; //#26627 - $k[$j++] = _ED; //#26627 - for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26627 - var _EG = $k[--$j]; //#26627 - $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26627 - $k[$j++] = _EG; //#26627 - } //#26627 - $j--; //#26627 - var _EH = $a(); //#26627 - $_[$k[--$j]] = _EH; //#26627 - $k[$j++] = 'bvals'; //#26628 - $k[$j++] = $get($_.rgbres, 2); //#26628 - $k[$j++] = Infinity; //#26628 - var _EL = $k[--$j]; //#26628 - var _EN = $f($k[--$j] - 1); //#26628 - $k[$j++] = _EL; //#26628 - $k[$j++] = _EN; //#26628 - for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26628 - var _EQ = $k[--$j]; //#26628 - $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26628 - $k[$j++] = _EQ; //#26628 - } //#26628 - $j--; //#26628 - var _ER = $a(); //#26628 - $_[$k[--$j]] = _ER; //#26628 - var _ET = $_.colors; //#26630 - $_.palette = new Map; //#26630 - var _EU = $_.colors; //#26631 - var _EV = 64; //#26631 - if (64 > _EU) { //#26631 - var _ = _EU; //#26631 - _EU = _EV; //#26631 - _EV = _; //#26631 - } //#26631 - $_.palettelayout = $a(_EV); //#26631 - $_.i = 0; //#26632 - $_.j = 8; //#26632 - $forall($_.rvals, function() { //#26666 - $_.r = $k[--$j]; //#26634 - $forall($_.gvals, function() { //#26665 - $_.g = $k[--$j]; //#26636 - $forall($_.bvals, function() { //#26664 - $_.b = $k[--$j]; //#26638 - var _Eh = $strcpy($s(6), "000000"); //#26640 - var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26640 - $puti(_Eh, 6 - _Ej.length, _Ej); //#26640 - $k[$j++] = _Eh; //#26642 - $k[$j++] = false; //#26642 - if ($eq(_Eh, "000000")) { //#26642 - $_.ki = $_.i; //#26642 - $j--; //#26642 - $k[$j++] = true; //#26642 - } //#26642 - var _El = $k[--$j]; //#26643 - var _Em = $k[--$j]; //#26643 - $k[$j++] = _Em; //#26643 - $k[$j++] = _El; //#26643 - if ($eq(_Em, "0000FF")) { //#26643 - $_.bi = $_.i; //#26643 - $j--; //#26643 - $k[$j++] = true; //#26643 - } //#26643 - var _Eo = $k[--$j]; //#26644 - var _Ep = $k[--$j]; //#26644 - $k[$j++] = _Ep; //#26644 - $k[$j++] = _Eo; //#26644 - if ($eq(_Ep, "00FF00")) { //#26644 - $_.gi = $_.i; //#26644 - $j--; //#26644 - $k[$j++] = true; //#26644 - } //#26644 - var _Er = $k[--$j]; //#26645 - var _Es = $k[--$j]; //#26645 - $k[$j++] = _Es; //#26645 - $k[$j++] = _Er; //#26645 - if ($eq(_Es, "00FFFF")) { //#26645 - $_.ci = $_.i; //#26645 - $j--; //#26645 - $k[$j++] = true; //#26645 - } //#26645 - var _Eu = $k[--$j]; //#26646 - var _Ev = $k[--$j]; //#26646 - $k[$j++] = _Ev; //#26646 - $k[$j++] = _Eu; //#26646 - if ($eq(_Ev, "FF0000")) { //#26646 - $_.ri = $_.i; //#26646 - $j--; //#26646 - $k[$j++] = true; //#26646 - } //#26646 - var _Ex = $k[--$j]; //#26647 - var _Ey = $k[--$j]; //#26647 - $k[$j++] = _Ey; //#26647 - $k[$j++] = _Ex; //#26647 - if ($eq(_Ey, "FF00FF")) { //#26647 - $_.mi = $_.i; //#26647 - $j--; //#26647 - $k[$j++] = true; //#26647 - } //#26647 - var _F0 = $k[--$j]; //#26648 - var _F1 = $k[--$j]; //#26648 - $k[$j++] = _F1; //#26648 - $k[$j++] = _F0; //#26648 - if ($eq(_F1, "FFFF00")) { //#26648 - $_.yi = $_.i; //#26648 - $j--; //#26648 - $k[$j++] = true; //#26648 - } //#26648 - var _F3 = $k[--$j]; //#26649 - var _F4 = $k[--$j]; //#26649 - $k[$j++] = _F4; //#26649 - $k[$j++] = _F3; //#26649 - if ($eq(_F4, "FFFFFF")) { //#26649 - $_.wi = $_.i; //#26649 - $j--; //#26649 - $k[$j++] = true; //#26649 - } //#26649 - if ($nt($k[--$j])) { //#26661 - if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26660 - $put($_.palettelayout, $_.j, $_.i); //#26658 - $_.j = $_.j + 1; //#26659 - } //#26659 - } //#26659 - $put($_.palette, $_.i, $k[--$j]); //#26662 - $_.i = $_.i + 1; //#26663 - }); //#26663 - }); //#26663 - }); //#26663 - $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26667 - $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26668 - } //#26668 - $k[$j++] = Infinity; //#26672 - for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26672 - $k[$j++] = -1; //#26672 - } //#26672 - $_.pixs = $a(); //#26672 + ]); //#26938 + $_.rgbres = $get(_Dw, $_.colors); //#26939 + $k[$j++] = 'rvals'; //#26941 + $k[$j++] = $get($_.rgbres, 0); //#26941 + $k[$j++] = Infinity; //#26941 + var _E1 = $k[--$j]; //#26941 + var _E3 = $f($k[--$j] - 1); //#26941 + $k[$j++] = _E1; //#26941 + $k[$j++] = _E3; //#26941 + for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26941 + var _E6 = $k[--$j]; //#26941 + $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26941 + $k[$j++] = _E6; //#26941 + } //#26941 + $j--; //#26941 + var _E7 = $a(); //#26941 + $_[$k[--$j]] = _E7; //#26941 + $k[$j++] = 'gvals'; //#26942 + $k[$j++] = $get($_.rgbres, 1); //#26942 + $k[$j++] = Infinity; //#26942 + var _EB = $k[--$j]; //#26942 + var _ED = $f($k[--$j] - 1); //#26942 + $k[$j++] = _EB; //#26942 + $k[$j++] = _ED; //#26942 + for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26942 + var _EG = $k[--$j]; //#26942 + $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26942 + $k[$j++] = _EG; //#26942 + } //#26942 + $j--; //#26942 + var _EH = $a(); //#26942 + $_[$k[--$j]] = _EH; //#26942 + $k[$j++] = 'bvals'; //#26943 + $k[$j++] = $get($_.rgbres, 2); //#26943 + $k[$j++] = Infinity; //#26943 + var _EL = $k[--$j]; //#26943 + var _EN = $f($k[--$j] - 1); //#26943 + $k[$j++] = _EL; //#26943 + $k[$j++] = _EN; //#26943 + for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26943 + var _EQ = $k[--$j]; //#26943 + $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26943 + $k[$j++] = _EQ; //#26943 + } //#26943 + $j--; //#26943 + var _ER = $a(); //#26943 + $_[$k[--$j]] = _ER; //#26943 + var _ET = $_.colors; //#26945 + $_.palette = new Map; //#26945 + var _EU = $_.colors; //#26946 + var _EV = 64; //#26946 + if (64 > _EU) { //#26946 + var _ = _EU; //#26946 + _EU = _EV; //#26946 + _EV = _; //#26946 + } //#26946 + $_.palettelayout = $a(_EV); //#26946 + $_.i = 0; //#26947 + $_.j = 8; //#26947 + $forall($_.rvals, function() { //#26981 + $_.r = $k[--$j]; //#26949 + $forall($_.gvals, function() { //#26980 + $_.g = $k[--$j]; //#26951 + $forall($_.bvals, function() { //#26979 + $_.b = $k[--$j]; //#26953 + var _Eh = $strcpy($s(6), "000000"); //#26955 + var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26955 + $puti(_Eh, 6 - _Ej.length, _Ej); //#26955 + $k[$j++] = _Eh; //#26957 + $k[$j++] = false; //#26957 + if ($eq(_Eh, "000000")) { //#26957 + $_.ki = $_.i; //#26957 + $j--; //#26957 + $k[$j++] = true; //#26957 + } //#26957 + var _El = $k[--$j]; //#26958 + var _Em = $k[--$j]; //#26958 + $k[$j++] = _Em; //#26958 + $k[$j++] = _El; //#26958 + if ($eq(_Em, "0000FF")) { //#26958 + $_.bi = $_.i; //#26958 + $j--; //#26958 + $k[$j++] = true; //#26958 + } //#26958 + var _Eo = $k[--$j]; //#26959 + var _Ep = $k[--$j]; //#26959 + $k[$j++] = _Ep; //#26959 + $k[$j++] = _Eo; //#26959 + if ($eq(_Ep, "00FF00")) { //#26959 + $_.gi = $_.i; //#26959 + $j--; //#26959 + $k[$j++] = true; //#26959 + } //#26959 + var _Er = $k[--$j]; //#26960 + var _Es = $k[--$j]; //#26960 + $k[$j++] = _Es; //#26960 + $k[$j++] = _Er; //#26960 + if ($eq(_Es, "00FFFF")) { //#26960 + $_.ci = $_.i; //#26960 + $j--; //#26960 + $k[$j++] = true; //#26960 + } //#26960 + var _Eu = $k[--$j]; //#26961 + var _Ev = $k[--$j]; //#26961 + $k[$j++] = _Ev; //#26961 + $k[$j++] = _Eu; //#26961 + if ($eq(_Ev, "FF0000")) { //#26961 + $_.ri = $_.i; //#26961 + $j--; //#26961 + $k[$j++] = true; //#26961 + } //#26961 + var _Ex = $k[--$j]; //#26962 + var _Ey = $k[--$j]; //#26962 + $k[$j++] = _Ey; //#26962 + $k[$j++] = _Ex; //#26962 + if ($eq(_Ey, "FF00FF")) { //#26962 + $_.mi = $_.i; //#26962 + $j--; //#26962 + $k[$j++] = true; //#26962 + } //#26962 + var _F0 = $k[--$j]; //#26963 + var _F1 = $k[--$j]; //#26963 + $k[$j++] = _F1; //#26963 + $k[$j++] = _F0; //#26963 + if ($eq(_F1, "FFFF00")) { //#26963 + $_.yi = $_.i; //#26963 + $j--; //#26963 + $k[$j++] = true; //#26963 + } //#26963 + var _F3 = $k[--$j]; //#26964 + var _F4 = $k[--$j]; //#26964 + $k[$j++] = _F4; //#26964 + $k[$j++] = _F3; //#26964 + if ($eq(_F4, "FFFFFF")) { //#26964 + $_.wi = $_.i; //#26964 + $j--; //#26964 + $k[$j++] = true; //#26964 + } //#26964 + if ($nt($k[--$j])) { //#26976 + if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26975 + $put($_.palettelayout, $_.j, $_.i); //#26973 + $_.j = $_.j + 1; //#26974 + } //#26974 + } //#26974 + $put($_.palette, $_.i, $k[--$j]); //#26977 + $_.i = $_.i + 1; //#26978 + }); //#26978 + }); //#26978 + }); //#26978 + $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26982 + $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26983 + } //#26983 + $k[$j++] = Infinity; //#26987 + for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26987 + $k[$j++] = -1; //#26987 + } //#26987 + $_.pixs = $a(); //#26987 $_.jmv = function() { - var _Ft = $k[--$j]; //#26673 - var _Fu = $k[--$j]; //#26673 - $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26673 - }; //#26673 - if (!$_.slave) { //#26703 - $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26683 - $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#26689 - } else { //#26703 - $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#26697 - $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#26703 - } //#26703 - for (var _GY = 0; _GY <= 4; _GY += 1) { //#26715 - $_.y = _GY; //#26706 - for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#26714 - $_.x = _GZ; //#26708 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#26709 - $k[$j++] = $_.pixs; //#26710 - $k[$j++] = $_.x + 1; //#26710 - $k[$j++] = $_.y + 1; //#26710 - $_.jmv(); //#26710 - var _Gm = $k[--$j]; //#26710 - $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#26710 - $k[$j++] = $_.pixs; //#26711 - $k[$j++] = $_.x + 1; //#26711 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26711 - $_.jmv(); //#26711 - var _Gw = $k[--$j]; //#26711 - $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#26711 - $k[$j++] = $_.pixs; //#26712 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26712 - $k[$j++] = $_.y + 1; //#26712 - $_.jmv(); //#26712 - var _H6 = $k[--$j]; //#26712 - $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#26712 - $k[$j++] = $_.pixs; //#26713 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26713 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26713 - $_.jmv(); //#26713 - var _HH = $k[--$j]; //#26713 - $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#26713 - } //#26713 - } //#26713 - $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#26722 - $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#26727 - $_.num = (~~Math.round($_.cols / 16)) - 1; //#26728 - $_.algnrpos = $a([3, 17]); //#26729 - if ($_.num > 0) { //#26732 - $k[$j++] = Infinity; //#26731 - for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#26731 - $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#26731 - } //#26731 - $_.algnrpos = $a(); //#26731 - } //#26731 - $_.num = (~~Math.round($_.rows / 16)) - 1; //#26733 - $_.algncpos = $a([3, 17]); //#26734 - if ($_.num > 0) { //#26737 - $k[$j++] = Infinity; //#26736 - for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#26736 - $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#26736 - } //#26736 - $_.algncpos = $a(); //#26736 - } //#26736 + var _Ft = $k[--$j]; //#26988 + var _Fu = $k[--$j]; //#26988 + $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26988 + }; //#26988 + if (!$_.slave) { //#27018 + $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26998 + $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#27004 + } else { //#27018 + $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#27012 + $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#27018 + } //#27018 + for (var _GY = 0; _GY <= 4; _GY += 1) { //#27030 + $_.y = _GY; //#27021 + for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#27029 + $_.x = _GZ; //#27023 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#27024 + $k[$j++] = $_.pixs; //#27025 + $k[$j++] = $_.x + 1; //#27025 + $k[$j++] = $_.y + 1; //#27025 + $_.jmv(); //#27025 + var _Gm = $k[--$j]; //#27025 + $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#27025 + $k[$j++] = $_.pixs; //#27026 + $k[$j++] = $_.x + 1; //#27026 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27026 + $_.jmv(); //#27026 + var _Gw = $k[--$j]; //#27026 + $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#27026 + $k[$j++] = $_.pixs; //#27027 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27027 + $k[$j++] = $_.y + 1; //#27027 + $_.jmv(); //#27027 + var _H6 = $k[--$j]; //#27027 + $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#27027 + $k[$j++] = $_.pixs; //#27028 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27028 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27028 + $_.jmv(); //#27028 + var _HH = $k[--$j]; //#27028 + $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#27028 + } //#27028 + } //#27028 + $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#27037 + $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#27042 + $_.num = (~~Math.round($_.cols / 16)) - 1; //#27043 + $_.algnrpos = $a([3, 17]); //#27044 + if ($_.num > 0) { //#27047 + $k[$j++] = Infinity; //#27046 + for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#27046 + $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#27046 + } //#27046 + $_.algnrpos = $a(); //#27046 + } //#27046 + $_.num = (~~Math.round($_.rows / 16)) - 1; //#27048 + $_.algncpos = $a([3, 17]); //#27049 + if ($_.num > 0) { //#27052 + $k[$j++] = Infinity; //#27051 + for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#27051 + $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#27051 + } //#27051 + $_.algncpos = $a(); //#27051 + } //#27051 $_.putalgnpat = function() { - $_.pp = $k[--$j]; //#26739 - $_.py = $k[--$j]; //#26740 - $_.px = $k[--$j]; //#26741 - for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#26748 - $_.pb = _I0; //#26743 - for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#26747 - $_.pa = _I1; //#26745 - $k[$j++] = $_.pixs; //#26746 - $k[$j++] = $f($_.px + $_.pa); //#26746 - $k[$j++] = $f($_.py + $_.pb); //#26746 - $_.jmv(); //#26746 - var _IC = $k[--$j]; //#26746 - $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#26746 - } //#26746 - } //#26746 - }; //#26746 - for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#26760 - $_.j = _IG; //#26751 - $_.y = $get($_.algncpos, $_.j); //#26752 - for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#26759 - $_.i = _IM; //#26754 - $_.x = $get($_.algnrpos, $_.i); //#26755 - $k[$j++] = $_.pixs; //#26756 - $k[$j++] = $_.x; //#26756 - $k[$j++] = $_.y; //#26756 - $_.jmv(); //#26756 - var _IT = $k[--$j]; //#26756 - if ($get($k[--$j], _IT) == -1) { //#26758 - $k[$j++] = $f($_.x - 1); //#26757 - $k[$j++] = $f($_.y - 1); //#26757 - if ((($_.i + $_.j) % 2) == 0) { //#26757 - $k[$j++] = $_.algnpat0; //#26757 - } else { //#26757 - $k[$j++] = $_.algnpat1; //#26757 - } //#26757 - $_.putalgnpat(); //#26757 - } //#26757 - } //#26757 - } //#26757 - if (!$_.slave) { //#26812 - var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#26771 - for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#26775 - $aload($get(_JL, _JM)); //#26773 - $_.y = $k[--$j]; //#26773 - $_.x = $k[--$j]; //#26773 - $k[$j++] = $a([$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, -$_.y]); //#26774 - $k[$j++] = $a([$_.x, -$_.y]); //#26774 - } //#26774 - $astore($a(176)); //#26776 - $_.metadatamap = $k[--$j]; //#26776 - $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#26781 - $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#26786 - } else { //#26812 - $k[$j++] = Infinity; //#26799 - for (var _KD = 1; _KD <= 19; _KD += 1) { //#26796 - $_.i = _KD; //#26794 - $k[$j++] = $a([0, $_.i]); //#26795 - $k[$j++] = $a([1, $_.i]); //#26795 - } //#26795 - for (var _KI = 5; _KI <= 12; _KI += 1) { //#26800 - $_.i = _KI; //#26798 - $k[$j++] = $a([2, $_.i]); //#26799 - $k[$j++] = $a([3, $_.i]); //#26799 - } //#26799 - $_.metadatamap = $a(); //#26799 - $k[$j++] = Infinity; //#26807 - for (var _KO = 5; _KO <= 12; _KO += 1) { //#26804 - $k[$j++] = _KO; //#26804 - $k[$j++] = Infinity; //#26804 - var _KP = $k[--$j]; //#26804 - var _KQ = $k[--$j]; //#26804 - $k[$j++] = _KP; //#26804 - $k[$j++] = 4; //#26804 - $k[$j++] = _KQ; //#26804 - var _KR = $a(); //#26804 - $k[$j++] = _KR; //#26804 - } //#26804 - for (var _KS = 12; _KS >= 5; _KS -= 1) { //#26805 - $k[$j++] = _KS; //#26805 - $k[$j++] = Infinity; //#26805 - var _KT = $k[--$j]; //#26805 - var _KU = $k[--$j]; //#26805 - $k[$j++] = _KT; //#26805 - $k[$j++] = 5; //#26805 - $k[$j++] = _KU; //#26805 - var _KV = $a(); //#26805 - $k[$j++] = _KV; //#26805 - } //#26805 - for (var _KW = 5; _KW <= 12; _KW += 1) { //#26806 - $k[$j++] = _KW; //#26806 - $k[$j++] = Infinity; //#26806 - var _KX = $k[--$j]; //#26806 - var _KY = $k[--$j]; //#26806 - $k[$j++] = _KX; //#26806 - $k[$j++] = 6; //#26806 - $k[$j++] = _KY; //#26806 - var _KZ = $a(); //#26806 - $k[$j++] = _KZ; //#26806 - } //#26806 - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#26807 - $k[$j++] = _Ka; //#26807 - $k[$j++] = Infinity; //#26807 - var _Kb = $k[--$j]; //#26807 - var _Kc = $k[--$j]; //#26807 - $k[$j++] = _Kb; //#26807 - $k[$j++] = 7; //#26807 - $k[$j++] = _Kc; //#26807 - var _Kd = $a(); //#26807 - $k[$j++] = _Kd; //#26807 - } //#26807 - $_.palettemap1 = $a(); //#26807 - $k[$j++] = Infinity; //#26811 - var _Kf = $_.palettemap1; //#26811 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#26811 - $k[$j++] = $get(_Kf, _Kg); //#26811 - $k[$j++] = Infinity; //#26811 - var _Kj = $k[--$j]; //#26811 - var _Kk = $k[--$j]; //#26811 - $k[$j++] = _Kj; //#26811 - $aload(_Kk); //#26811 - var _Kl = $k[--$j]; //#26811 - var _Km = $k[--$j]; //#26811 - $k[$j++] = -_Km; //#26811 - $k[$j++] = -_Kl; //#26811 - var _Kn = $a(); //#26811 - $k[$j++] = _Kn; //#26811 - } //#26811 - $_.palettemap2 = $a(); //#26811 - } //#26812 - var _Kp = $_.metadatamap; //#26817 - for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#26821 - var _Ks = $get(_Kp, _Kq); //#26821 - var _Kt = $get(_Ks, 0); //#26818 - $k[$j++] = _Ks; //#26818 - $k[$j++] = _Kt; //#26818 - if (_Kt < 0) { //#26818 - var _Kv = $k[--$j]; //#26818 - var _Kw = $k[--$j]; //#26818 - $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#26818 - $k[$j++] = _Kw; //#26818 - } else { //#26818 - $j--; //#26818 - } //#26818 - var _Kx = $k[--$j]; //#26819 - var _Ky = $get(_Kx, 1); //#26819 - $k[$j++] = _Kx; //#26819 - $k[$j++] = _Ky; //#26819 - if (_Ky < 0) { //#26819 - var _L0 = $k[--$j]; //#26819 - var _L1 = $k[--$j]; //#26819 - $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#26819 - $k[$j++] = _L1; //#26819 - } else { //#26819 - $j--; //#26819 - } //#26819 - $j--; //#26820 - } //#26820 - var _L2 = $_.palettemap1; //#26822 - for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#26826 - var _L5 = $get(_L2, _L3); //#26826 - var _L6 = $get(_L5, 0); //#26823 - $k[$j++] = _L5; //#26823 - $k[$j++] = _L6; //#26823 - if (_L6 < 0) { //#26823 - var _L8 = $k[--$j]; //#26823 - var _L9 = $k[--$j]; //#26823 - $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#26823 - $k[$j++] = _L9; //#26823 - } else { //#26823 - $j--; //#26823 - } //#26823 - var _LA = $k[--$j]; //#26824 - var _LB = $get(_LA, 1); //#26824 - $k[$j++] = _LA; //#26824 - $k[$j++] = _LB; //#26824 - if (_LB < 0) { //#26824 - var _LD = $k[--$j]; //#26824 - var _LE = $k[--$j]; //#26824 - $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#26824 - $k[$j++] = _LE; //#26824 - } else { //#26824 - $j--; //#26824 - } //#26824 - $j--; //#26825 - } //#26825 - var _LF = $_.palettemap2; //#26827 - for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#26831 - var _LI = $get(_LF, _LG); //#26831 - var _LJ = $get(_LI, 0); //#26828 - $k[$j++] = _LI; //#26828 - $k[$j++] = _LJ; //#26828 - if (_LJ < 0) { //#26828 - var _LL = $k[--$j]; //#26828 - var _LM = $k[--$j]; //#26828 - $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#26828 - $k[$j++] = _LM; //#26828 - } else { //#26828 - $j--; //#26828 - } //#26828 - var _LN = $k[--$j]; //#26829 - var _LO = $get(_LN, 1); //#26829 - $k[$j++] = _LN; //#26829 - $k[$j++] = _LO; //#26829 - if (_LO < 0) { //#26829 - var _LQ = $k[--$j]; //#26829 - var _LR = $k[--$j]; //#26829 - $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#26829 - $k[$j++] = _LR; //#26829 - } else { //#26829 - $j--; //#26829 - } //#26829 - $j--; //#26830 - } //#26830 - for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#26836 - $k[$j++] = $_.pixs; //#26835 - $aload($get($_.metadatamap, _LU)); //#26835 - $_.jmv(); //#26835 - var _LY = $k[--$j]; //#26835 - $put($k[--$j], _LY, 0); //#26835 - } //#26835 - if (!$_.slave) { //#26849 - var _Lb = $_.colors; //#26841 - var _Lc = 16; //#26841 - if (16 > _Lb) { //#26841 - var _ = _Lb; //#26841 - _Lb = _Lc; //#26841 - _Lc = _; //#26841 - } //#26841 - for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#26846 - $_.i = _Le; //#26842 - var _Lh = $get($_.palettelayout, $_.i); //#26843 - $k[$j++] = _Lh; //#26844 - $k[$j++] = $_.pixs; //#26844 - $k[$j++] = _Lh; //#26844 - $aload($get($_.palettemap1, $_.i)); //#26844 - $_.jmv(); //#26844 - var _Lm = $k[--$j]; //#26844 - var _Ln = $k[--$j]; //#26844 - $put($k[--$j], _Lm, _Ln); //#26844 - var _Lq = $k[--$j]; //#26845 - $k[$j++] = $_.pixs; //#26845 - $k[$j++] = _Lq; //#26845 - $aload($get($_.palettemap2, $_.i)); //#26845 - $_.jmv(); //#26845 - var _Lu = $k[--$j]; //#26845 - var _Lv = $k[--$j]; //#26845 - $put($k[--$j], _Lu, _Lv); //#26845 - } //#26845 - $_.i = 16; //#26847 - } else { //#26849 - $_.i = 0; //#26849 - } //#26849 - $_.j = $_.nummetamodules; //#26853 - for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#26863 - $_.i = _M1; //#26855 - var _M4 = $get($_.palettelayout, $_.i); //#26856 - $k[$j++] = _M4; //#26857 - $k[$j++] = $_.pixs; //#26857 - $k[$j++] = _M4; //#26857 - $aload($get($_.metadatamap, $_.j)); //#26857 - $_.jmv(); //#26857 - var _M9 = $k[--$j]; //#26857 - var _MA = $k[--$j]; //#26857 - $put($k[--$j], _M9, _MA); //#26857 - var _MD = $k[--$j]; //#26858 - $k[$j++] = $_.pixs; //#26858 - $k[$j++] = _MD; //#26858 - $aload($get($_.metadatamap, $f($_.j + 2))); //#26858 - $_.jmv(); //#26858 - var _MH = $k[--$j]; //#26858 - var _MI = $k[--$j]; //#26858 - $put($k[--$j], _MH, _MI); //#26858 - var _MM = $get($_.palettelayout, $_.i + 1); //#26859 - $k[$j++] = _MM; //#26860 - $k[$j++] = $_.pixs; //#26860 - $k[$j++] = _MM; //#26860 - $aload($get($_.metadatamap, $f($_.j + 1))); //#26860 - $_.jmv(); //#26860 - var _MR = $k[--$j]; //#26860 - var _MS = $k[--$j]; //#26860 - $put($k[--$j], _MR, _MS); //#26860 - var _MV = $k[--$j]; //#26861 - $k[$j++] = $_.pixs; //#26861 - $k[$j++] = _MV; //#26861 - $aload($get($_.metadatamap, $f($_.j + 3))); //#26861 - $_.jmv(); //#26861 - var _MZ = $k[--$j]; //#26861 - var _Ma = $k[--$j]; //#26861 - $put($k[--$j], _MZ, _Ma); //#26861 - $_.j = $f($_.j + 4); //#26862 - } //#26862 + $_.pp = $k[--$j]; //#27054 + $_.py = $k[--$j]; //#27055 + $_.px = $k[--$j]; //#27056 + for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#27063 + $_.pb = _I0; //#27058 + for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#27062 + $_.pa = _I1; //#27060 + $k[$j++] = $_.pixs; //#27061 + $k[$j++] = $f($_.px + $_.pa); //#27061 + $k[$j++] = $f($_.py + $_.pb); //#27061 + $_.jmv(); //#27061 + var _IC = $k[--$j]; //#27061 + $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#27061 + } //#27061 + } //#27061 + }; //#27061 + for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#27075 + $_.j = _IG; //#27066 + $_.y = $get($_.algncpos, $_.j); //#27067 + for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#27074 + $_.i = _IM; //#27069 + $_.x = $get($_.algnrpos, $_.i); //#27070 + $k[$j++] = $_.pixs; //#27071 + $k[$j++] = $_.x; //#27071 + $k[$j++] = $_.y; //#27071 + $_.jmv(); //#27071 + var _IT = $k[--$j]; //#27071 + if ($get($k[--$j], _IT) == -1) { //#27073 + $k[$j++] = $f($_.x - 1); //#27072 + $k[$j++] = $f($_.y - 1); //#27072 + if ((($_.i + $_.j) % 2) == 0) { //#27072 + $k[$j++] = $_.algnpat0; //#27072 + } else { //#27072 + $k[$j++] = $_.algnpat1; //#27072 + } //#27072 + $_.putalgnpat(); //#27072 + } //#27072 + } //#27072 + } //#27072 + if (!$_.slave) { //#27127 + var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#27086 + for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#27090 + $aload($get(_JL, _JM)); //#27088 + $_.y = $k[--$j]; //#27088 + $_.x = $k[--$j]; //#27088 + $k[$j++] = $a([$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, -$_.y]); //#27089 + $k[$j++] = $a([$_.x, -$_.y]); //#27089 + } //#27089 + $astore($a(176)); //#27091 + $_.metadatamap = $k[--$j]; //#27091 + $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#27096 + $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#27101 + } else { //#27127 + $k[$j++] = Infinity; //#27107 + for (var _KD = 1; _KD <= 19; _KD += 1) { //#27111 + $_.i = _KD; //#27109 + $k[$j++] = $a([0, $_.i]); //#27110 + $k[$j++] = $a([1, $_.i]); //#27110 + } //#27110 + for (var _KI = 5; _KI <= 12; _KI += 1) { //#27115 + $_.i = _KI; //#27113 + $k[$j++] = $a([2, $_.i]); //#27114 + $k[$j++] = $a([3, $_.i]); //#27114 + } //#27114 + $_.metadatamap = $a(); //#27114 + $k[$j++] = Infinity; //#27118 + for (var _KO = 5; _KO <= 12; _KO += 1) { //#27119 + $k[$j++] = _KO; //#27119 + $k[$j++] = Infinity; //#27119 + var _KP = $k[--$j]; //#27119 + var _KQ = $k[--$j]; //#27119 + $k[$j++] = _KP; //#27119 + $k[$j++] = 4; //#27119 + $k[$j++] = _KQ; //#27119 + var _KR = $a(); //#27119 + $k[$j++] = _KR; //#27119 + } //#27119 + for (var _KS = 12; _KS >= 5; _KS -= 1) { //#27120 + $k[$j++] = _KS; //#27120 + $k[$j++] = Infinity; //#27120 + var _KT = $k[--$j]; //#27120 + var _KU = $k[--$j]; //#27120 + $k[$j++] = _KT; //#27120 + $k[$j++] = 5; //#27120 + $k[$j++] = _KU; //#27120 + var _KV = $a(); //#27120 + $k[$j++] = _KV; //#27120 + } //#27120 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#27121 + $k[$j++] = _KW; //#27121 + $k[$j++] = Infinity; //#27121 + var _KX = $k[--$j]; //#27121 + var _KY = $k[--$j]; //#27121 + $k[$j++] = _KX; //#27121 + $k[$j++] = 6; //#27121 + $k[$j++] = _KY; //#27121 + var _KZ = $a(); //#27121 + $k[$j++] = _KZ; //#27121 + } //#27121 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#27122 + $k[$j++] = _Ka; //#27122 + $k[$j++] = Infinity; //#27122 + var _Kb = $k[--$j]; //#27122 + var _Kc = $k[--$j]; //#27122 + $k[$j++] = _Kb; //#27122 + $k[$j++] = 7; //#27122 + $k[$j++] = _Kc; //#27122 + var _Kd = $a(); //#27122 + $k[$j++] = _Kd; //#27122 + } //#27122 + $_.palettemap1 = $a(); //#27122 + $k[$j++] = Infinity; //#27125 + var _Kf = $_.palettemap1; //#27126 + for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#27126 + $k[$j++] = $get(_Kf, _Kg); //#27126 + $k[$j++] = Infinity; //#27126 + var _Kj = $k[--$j]; //#27126 + var _Kk = $k[--$j]; //#27126 + $k[$j++] = _Kj; //#27126 + $aload(_Kk); //#27126 + var _Kl = $k[--$j]; //#27126 + var _Km = $k[--$j]; //#27126 + $k[$j++] = -_Km; //#27126 + $k[$j++] = -_Kl; //#27126 + var _Kn = $a(); //#27126 + $k[$j++] = _Kn; //#27126 + } //#27126 + $_.palettemap2 = $a(); //#27126 + } //#27127 + var _Kp = $_.metadatamap; //#27132 + for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#27136 + var _Ks = $get(_Kp, _Kq); //#27136 + var _Kt = $get(_Ks, 0); //#27133 + $k[$j++] = _Ks; //#27133 + $k[$j++] = _Kt; //#27133 + if (_Kt < 0) { //#27133 + var _Kv = $k[--$j]; //#27133 + var _Kw = $k[--$j]; //#27133 + $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#27133 + $k[$j++] = _Kw; //#27133 + } else { //#27133 + $j--; //#27133 + } //#27133 + var _Kx = $k[--$j]; //#27134 + var _Ky = $get(_Kx, 1); //#27134 + $k[$j++] = _Kx; //#27134 + $k[$j++] = _Ky; //#27134 + if (_Ky < 0) { //#27134 + var _L0 = $k[--$j]; //#27134 + var _L1 = $k[--$j]; //#27134 + $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#27134 + $k[$j++] = _L1; //#27134 + } else { //#27134 + $j--; //#27134 + } //#27134 + $j--; //#27135 + } //#27135 + var _L2 = $_.palettemap1; //#27137 + for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#27141 + var _L5 = $get(_L2, _L3); //#27141 + var _L6 = $get(_L5, 0); //#27138 + $k[$j++] = _L5; //#27138 + $k[$j++] = _L6; //#27138 + if (_L6 < 0) { //#27138 + var _L8 = $k[--$j]; //#27138 + var _L9 = $k[--$j]; //#27138 + $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#27138 + $k[$j++] = _L9; //#27138 + } else { //#27138 + $j--; //#27138 + } //#27138 + var _LA = $k[--$j]; //#27139 + var _LB = $get(_LA, 1); //#27139 + $k[$j++] = _LA; //#27139 + $k[$j++] = _LB; //#27139 + if (_LB < 0) { //#27139 + var _LD = $k[--$j]; //#27139 + var _LE = $k[--$j]; //#27139 + $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#27139 + $k[$j++] = _LE; //#27139 + } else { //#27139 + $j--; //#27139 + } //#27139 + $j--; //#27140 + } //#27140 + var _LF = $_.palettemap2; //#27142 + for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#27146 + var _LI = $get(_LF, _LG); //#27146 + var _LJ = $get(_LI, 0); //#27143 + $k[$j++] = _LI; //#27143 + $k[$j++] = _LJ; //#27143 + if (_LJ < 0) { //#27143 + var _LL = $k[--$j]; //#27143 + var _LM = $k[--$j]; //#27143 + $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#27143 + $k[$j++] = _LM; //#27143 + } else { //#27143 + $j--; //#27143 + } //#27143 + var _LN = $k[--$j]; //#27144 + var _LO = $get(_LN, 1); //#27144 + $k[$j++] = _LN; //#27144 + $k[$j++] = _LO; //#27144 + if (_LO < 0) { //#27144 + var _LQ = $k[--$j]; //#27144 + var _LR = $k[--$j]; //#27144 + $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#27144 + $k[$j++] = _LR; //#27144 + } else { //#27144 + $j--; //#27144 + } //#27144 + $j--; //#27145 + } //#27145 + for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#27151 + $k[$j++] = $_.pixs; //#27150 + $aload($get($_.metadatamap, _LU)); //#27150 + $_.jmv(); //#27150 + var _LY = $k[--$j]; //#27150 + $put($k[--$j], _LY, 0); //#27150 + } //#27150 + if (!$_.slave) { //#27164 + var _Lb = $_.colors; //#27156 + var _Lc = 16; //#27156 + if (16 > _Lb) { //#27156 + var _ = _Lb; //#27156 + _Lb = _Lc; //#27156 + _Lc = _; //#27156 + } //#27156 + for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#27161 + $_.i = _Le; //#27157 + var _Lh = $get($_.palettelayout, $_.i); //#27158 + $k[$j++] = _Lh; //#27159 + $k[$j++] = $_.pixs; //#27159 + $k[$j++] = _Lh; //#27159 + $aload($get($_.palettemap1, $_.i)); //#27159 + $_.jmv(); //#27159 + var _Lm = $k[--$j]; //#27159 + var _Ln = $k[--$j]; //#27159 + $put($k[--$j], _Lm, _Ln); //#27159 + var _Lq = $k[--$j]; //#27160 + $k[$j++] = $_.pixs; //#27160 + $k[$j++] = _Lq; //#27160 + $aload($get($_.palettemap2, $_.i)); //#27160 + $_.jmv(); //#27160 + var _Lu = $k[--$j]; //#27160 + var _Lv = $k[--$j]; //#27160 + $put($k[--$j], _Lu, _Lv); //#27160 + } //#27160 + $_.i = 16; //#27162 + } else { //#27164 + $_.i = 0; //#27164 + } //#27164 + $_.j = $_.nummetamodules; //#27168 + for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#27178 + $_.i = _M1; //#27170 + var _M4 = $get($_.palettelayout, $_.i); //#27171 + $k[$j++] = _M4; //#27172 + $k[$j++] = $_.pixs; //#27172 + $k[$j++] = _M4; //#27172 + $aload($get($_.metadatamap, $_.j)); //#27172 + $_.jmv(); //#27172 + var _M9 = $k[--$j]; //#27172 + var _MA = $k[--$j]; //#27172 + $put($k[--$j], _M9, _MA); //#27172 + var _MD = $k[--$j]; //#27173 + $k[$j++] = $_.pixs; //#27173 + $k[$j++] = _MD; //#27173 + $aload($get($_.metadatamap, $f($_.j + 2))); //#27173 + $_.jmv(); //#27173 + var _MH = $k[--$j]; //#27173 + var _MI = $k[--$j]; //#27173 + $put($k[--$j], _MH, _MI); //#27173 + var _MM = $get($_.palettelayout, $_.i + 1); //#27174 + $k[$j++] = _MM; //#27175 + $k[$j++] = $_.pixs; //#27175 + $k[$j++] = _MM; //#27175 + $aload($get($_.metadatamap, $f($_.j + 1))); //#27175 + $_.jmv(); //#27175 + var _MR = $k[--$j]; //#27175 + var _MS = $k[--$j]; //#27175 + $put($k[--$j], _MR, _MS); //#27175 + var _MV = $k[--$j]; //#27176 + $k[$j++] = $_.pixs; //#27176 + $k[$j++] = _MV; //#27176 + $aload($get($_.metadatamap, $f($_.j + 3))); //#27176 + $_.jmv(); //#27176 + var _MZ = $k[--$j]; //#27176 + var _Ma = $k[--$j]; //#27176 + $put($k[--$j], _MZ, _Ma); //#27176 + $_.j = $f($_.j + 4); //#27177 + } //#27177 var _N2 = $a([function() { - var _Md = $k[--$j]; //#26867 - var _Me = $k[--$j]; //#26867 - $k[$j++] = $f(_Me + _Md) % $_.colors; //#26867 + var _Md = $k[--$j]; //#27182 + var _Me = $k[--$j]; //#27182 + $k[$j++] = $f(_Me + _Md) % $_.colors; //#27182 }, function() { - $j--; //#26868 - var _Mh = $k[--$j]; //#26868 - $k[$j++] = _Mh % $_.colors; //#26868 + $j--; //#27183 + var _Mh = $k[--$j]; //#27183 + $k[$j++] = _Mh % $_.colors; //#27183 }, function() { - var _Mi = $k[--$j]; //#26869 - var _Mj = $k[--$j]; //#26869 - $k[$j++] = _Mi; //#26869 - $k[$j++] = _Mj; //#26869 - $j--; //#26869 - var _Ml = $k[--$j]; //#26869 - $k[$j++] = _Ml % $_.colors; //#26869 + var _Mi = $k[--$j]; //#27184 + var _Mj = $k[--$j]; //#27184 + $k[$j++] = _Mi; //#27184 + $k[$j++] = _Mj; //#27184 + $j--; //#27184 + var _Ml = $k[--$j]; //#27184 + $k[$j++] = _Ml % $_.colors; //#27184 }, function() { - var _Mm = $k[--$j]; //#26870 - var _Mn = $k[--$j]; //#26870 - $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#26870 + var _Mm = $k[--$j]; //#27185 + var _Mn = $k[--$j]; //#27185 + $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#27185 }, function() { - var _Mp = $k[--$j]; //#26871 - var _Mq = $k[--$j]; //#26871 - $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#26871 + var _Mp = $k[--$j]; //#27186 + var _Mq = $k[--$j]; //#27186 + $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#27186 }, function() { - var _Ms = $k[--$j]; //#26872 - var _Mu = $f($k[--$j] + _Ms); //#26872 - $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#26872 + var _Ms = $k[--$j]; //#27187 + var _Mu = $f($k[--$j] + _Ms); //#27187 + $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#27187 }, function() { - var _Mw = $k[--$j]; //#26873 - var _Mx = $k[--$j]; //#26873 - $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#26873 + var _Mw = $k[--$j]; //#27188 + var _Mx = $k[--$j]; //#27188 + $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#27188 }, function() { - var _Mz = $k[--$j]; //#26874 - var _N0 = $k[--$j]; //#26874 - $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#26874 - }]); //#26874 - $_.maskfuncs = _N2; //#26875 - if ($_.mask != -1) { //#26879 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#26877 - $_.bestmaskval = $_.mask; //#26878 - } //#26878 - $_.masks = $a($_.maskfuncs.length); //#26880 - for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#26893 - $_.m = _ND; //#26882 - $_.mask = $a($_.rows * $_.cols); //#26883 - for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#26891 - $_.j = _NJ; //#26885 - for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#26890 - $_.i = _NM; //#26887 - $k[$j++] = $_.pixs; //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 - $_.jmv(); //#26888 - var _NQ = $k[--$j]; //#26888 - if ($get($k[--$j], _NQ) == -1) { //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 + var _Mz = $k[--$j]; //#27189 + var _N0 = $k[--$j]; //#27189 + $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#27189 + }]); //#27189 + $_.maskfuncs = _N2; //#27190 + if ($_.mask != -1) { //#27194 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#27192 + $_.bestmaskval = $_.mask; //#27193 + } //#27193 + $_.masks = $a($_.maskfuncs.length); //#27195 + for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#27208 + $_.m = _ND; //#27197 + $_.mask = $a($_.rows * $_.cols); //#27198 + for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#27206 + $_.j = _NJ; //#27200 + for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#27205 + $_.i = _NM; //#27202 + $k[$j++] = $_.pixs; //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 + $_.jmv(); //#27203 + var _NQ = $k[--$j]; //#27203 + if ($get($k[--$j], _NQ) == -1) { //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#26888 - } else { //#26888 - $k[$j++] = 0; //#26888 - } //#26888 - $k[$j++] = $_.mask; //#26889 - $k[$j++] = $_.i; //#26889 - $k[$j++] = $_.j; //#26889 - $_.jmv(); //#26889 - var _Nb = $k[--$j]; //#26889 - var _Nc = $k[--$j]; //#26889 - $put(_Nc, _Nb, $k[--$j]); //#26889 - } //#26889 - } //#26889 - $put($_.masks, $_.m, $_.mask); //#26892 - } //#26892 - $_.posx = 0; //#26896 - $_.posy = 0; //#26896 - $_.i = 0; //#26897 - for (;;) { //#26907 - if ($_.posx == $_.cols) { //#26899 - break; //#26899 - } //#26899 - $k[$j++] = $_.pixs; //#26900 - $k[$j++] = $_.posx; //#26900 - $k[$j++] = $_.posy; //#26900 - $_.jmv(); //#26900 - var _Nm = $k[--$j]; //#26900 - if ($get($k[--$j], _Nm) == -1) { //#26904 - var _Ns = $geti($_.bits, $_.i, $_.databpm); //#26901 - $k[$j++] = 0; //#26901 - for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#26901 - var _Nw = $k[--$j]; //#26901 - $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#26901 - } //#26901 - var _Nx = $k[--$j]; //#26901 - $k[$j++] = ~~(_Nx / 2); //#26902 - $k[$j++] = $_.pixs; //#26902 - $k[$j++] = $_.posx; //#26902 - $k[$j++] = $_.posy; //#26902 - $_.jmv(); //#26902 - var _O1 = $k[--$j]; //#26902 - var _O2 = $k[--$j]; //#26902 - $put(_O2, _O1, $k[--$j]); //#26902 - $_.i = $_.i + $_.databpm; //#26903 - } //#26903 - $_.posy = $_.posy + 1; //#26905 - if ($_.posy == $_.rows) { //#26906 - $_.posy = 0; //#26906 - $_.posx = $_.posx + 1; //#26906 - } //#26906 - } //#26906 + } //#27203 + } else { //#27203 + $k[$j++] = 0; //#27203 + } //#27203 + $k[$j++] = $_.mask; //#27204 + $k[$j++] = $_.i; //#27204 + $k[$j++] = $_.j; //#27204 + $_.jmv(); //#27204 + var _Nb = $k[--$j]; //#27204 + var _Nc = $k[--$j]; //#27204 + $put(_Nc, _Nb, $k[--$j]); //#27204 + } //#27204 + } //#27204 + $put($_.masks, $_.m, $_.mask); //#27207 + } //#27207 + $_.posx = 0; //#27211 + $_.posy = 0; //#27211 + $_.i = 0; //#27212 + for (;;) { //#27222 + if ($_.posx == $_.cols) { //#27214 + break; //#27214 + } //#27214 + $k[$j++] = $_.pixs; //#27215 + $k[$j++] = $_.posx; //#27215 + $k[$j++] = $_.posy; //#27215 + $_.jmv(); //#27215 + var _Nm = $k[--$j]; //#27215 + if ($get($k[--$j], _Nm) == -1) { //#27219 + var _Ns = $geti($_.bits, $_.i, $_.databpm); //#27216 + $k[$j++] = 0; //#27216 + for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#27216 + var _Nw = $k[--$j]; //#27216 + $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#27216 + } //#27216 + var _Nx = $k[--$j]; //#27216 + $k[$j++] = ~~(_Nx / 2); //#27217 + $k[$j++] = $_.pixs; //#27217 + $k[$j++] = $_.posx; //#27217 + $k[$j++] = $_.posy; //#27217 + $_.jmv(); //#27217 + var _O1 = $k[--$j]; //#27217 + var _O2 = $k[--$j]; //#27217 + $put(_O2, _O1, $k[--$j]); //#27217 + $_.i = $_.i + $_.databpm; //#27218 + } //#27218 + $_.posy = $_.posy + 1; //#27220 + if ($_.posy == $_.rows) { //#27221 + $_.posy = 0; //#27221 + $_.posx = $_.posx + 1; //#27221 + } //#27221 + } //#27221 $_.evalrle = function() { - $_.scrle = $k[--$j]; //#26911 - $_.scr1 = 0; //#26912 - $_.scr3 = 0; //#26912 - for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#26934 - $_.j = _OD; //#26914 - if ($get($_.scrle, $_.j + 1) != -1) { //#26933 - var _OJ = $get($_.scrle, $_.j); //#26917 - $k[$j++] = _OJ; //#26917 - if (_OJ >= 5) { //#26917 - $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#26917 - } else { //#26917 - $j--; //#26917 - } //#26917 - if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#26932 - var _OR = $geti($_.scrle, $_.j - 4, 10); //#26920 - $k[$j++] = _OR; //#26921 - for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#26921 - $k[$j++] = $get(_OR, _OS) == 1; //#26921 - } //#26921 - $j--; //#26921 - for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#26921 - var _OX = $k[--$j]; //#26921 - var _OY = $k[--$j]; //#26921 - $k[$j++] = _OX; //#26921 - $k[$j++] = _OY; //#26921 - $j--; //#26921 - var _OZ = $k[--$j]; //#26921 - var _Oa = $k[--$j]; //#26921 - $k[$j++] = $an(_Oa, _OZ); //#26921 - } //#26921 - if ($k[--$j]) { //#26931 - $k[$j++] = Infinity; //#26922 - var _Oc = $k[--$j]; //#26922 - var _Od = $k[--$j]; //#26922 - $k[$j++] = _Oc; //#26922 - $aload(_Od); //#26922 - var _Oe = $k[--$j]; //#26923 - var _Of = $k[--$j]; //#26923 - var _Og = $k[--$j]; //#26923 - var _Oh = $k[--$j]; //#26923 - var _Oi = $k[--$j]; //#26923 - var _Oj = $k[--$j]; //#26923 - var _Ok = $k[--$j]; //#26923 - var _Ol = $k[--$j]; //#26923 - var _Om = $k[--$j]; //#26923 - $k[$j++] = _Om; //#26929 - $k[$j++] = _Ol; //#26929 - $k[$j++] = _Ok; //#26929 - $k[$j++] = _Oj; //#26929 - $k[$j++] = _Oi; //#26929 - $k[$j++] = _Oh; //#26929 - $k[$j++] = _Og; //#26929 - $k[$j++] = _Of; //#26929 - $k[$j++] = _Oe; //#26929 - if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#26929 - var _On = $k[--$j]; //#26925 - var _Oo = $k[--$j]; //#26925 - var _Op = $k[--$j]; //#26925 - $_.c4 = _Op; //#26925 - $_.c5 = _On; //#26925 - $k[$j++] = _Op; //#26928 - $k[$j++] = _Oo; //#26928 - if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#26928 - $_.scr3 = $_.scr3 + 100; //#26928 - } //#26928 - } //#26928 - $cleartomark(); //#26930 - } else { //#26931 - $j--; //#26931 - } //#26931 - } //#26931 - } //#26931 - } //#26931 - $k[$j++] = $_.scr1; //#26935 - $k[$j++] = $_.scr3; //#26935 - }; //#26935 + $_.scrle = $k[--$j]; //#27226 + $_.scr1 = 0; //#27227 + $_.scr3 = 0; //#27227 + for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#27249 + $_.j = _OD; //#27229 + if ($get($_.scrle, $_.j + 1) != -1) { //#27248 + var _OJ = $get($_.scrle, $_.j); //#27232 + $k[$j++] = _OJ; //#27232 + if (_OJ >= 5) { //#27232 + $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#27232 + } else { //#27232 + $j--; //#27232 + } //#27232 + if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#27247 + var _OR = $geti($_.scrle, $_.j - 4, 10); //#27235 + $k[$j++] = _OR; //#27236 + for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#27236 + $k[$j++] = $get(_OR, _OS) == 1; //#27236 + } //#27236 + $j--; //#27236 + for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#27236 + var _OX = $k[--$j]; //#27236 + var _OY = $k[--$j]; //#27236 + $k[$j++] = _OX; //#27236 + $k[$j++] = _OY; //#27236 + $j--; //#27236 + var _OZ = $k[--$j]; //#27236 + var _Oa = $k[--$j]; //#27236 + $k[$j++] = $an(_Oa, _OZ); //#27236 + } //#27236 + if ($k[--$j]) { //#27246 + $k[$j++] = Infinity; //#27237 + var _Oc = $k[--$j]; //#27237 + var _Od = $k[--$j]; //#27237 + $k[$j++] = _Oc; //#27237 + $aload(_Od); //#27237 + var _Oe = $k[--$j]; //#27238 + var _Of = $k[--$j]; //#27238 + var _Og = $k[--$j]; //#27238 + var _Oh = $k[--$j]; //#27238 + var _Oi = $k[--$j]; //#27238 + var _Oj = $k[--$j]; //#27238 + var _Ok = $k[--$j]; //#27238 + var _Ol = $k[--$j]; //#27238 + var _Om = $k[--$j]; //#27238 + $k[$j++] = _Om; //#27244 + $k[$j++] = _Ol; //#27244 + $k[$j++] = _Ok; //#27244 + $k[$j++] = _Oj; //#27244 + $k[$j++] = _Oi; //#27244 + $k[$j++] = _Oh; //#27244 + $k[$j++] = _Og; //#27244 + $k[$j++] = _Of; //#27244 + $k[$j++] = _Oe; //#27244 + if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#27244 + var _On = $k[--$j]; //#27240 + var _Oo = $k[--$j]; //#27240 + var _Op = $k[--$j]; //#27240 + $_.c4 = _Op; //#27240 + $_.c5 = _On; //#27240 + $k[$j++] = _Op; //#27243 + $k[$j++] = _Oo; //#27243 + if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#27243 + $_.scr3 = $_.scr3 + 100; //#27243 + } //#27243 + } //#27243 + $cleartomark(); //#27245 + } else { //#27246 + $j--; //#27246 + } //#27246 + } //#27246 + } //#27246 + } //#27246 + $k[$j++] = $_.scr1; //#27250 + $k[$j++] = $_.scr3; //#27250 + }; //#27250 $_.evalmask = function() { - $_.sym = $k[--$j]; //#26939 - $_.n1 = 0; //#26941 - $_.n2 = 0; //#26941 - $_.n3 = 0; //#26941 - var _PA = $_.rows; //#26942 - var _PB = $_.cols; //#26942 - if (_PA < _PB) { //#26942 - var _ = _PB; //#26942 - _PB = _PA; //#26942 - _PA = _; //#26942 - } //#26942 - $_.rle = $a($f((_PA * 2) + 2)); //#26942 - $_.lastpairs = $a($_.cols); //#26943 - $_.thispairs = $a($_.cols); //#26944 - for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#26956 - $_.i = _PJ; //#26948 - $k[$j++] = Infinity; //#26949 - $k[$j++] = 0; //#26952 - $k[$j++] = -1; //#26952 - for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#26952 - var _PS = $get($_.sym, _PP); //#26951 - var _PT = $k[--$j]; //#26951 - $k[$j++] = _PT; //#26951 - $k[$j++] = _PS; //#26951 - if ($eq(_PT, _PS)) { //#26951 - $j--; //#26951 - var _PU = $k[--$j]; //#26951 - var _PV = $k[--$j]; //#26951 - $k[$j++] = $f(_PV + 1); //#26951 - $k[$j++] = _PU; //#26951 - } else { //#26951 - var _PW = $k[--$j]; //#26951 - $k[$j++] = 1; //#26951 - $k[$j++] = _PW; //#26951 - } //#26951 - } //#26951 - var _PY = $counttomark() + 2; //#26953 - $astore($geti($_.rle, 0, _PY - 2)); //#26953 - $_.evalrle(); //#26954 - $_.n3 = $f($k[--$j] + $_.n3); //#26954 - $_.n1 = $f($k[--$j] + $_.n1); //#26954 - $j--; //#26955 - } //#26955 - for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#26983 - $_.i = _Pg; //#26959 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#26962 - $k[$j++] = Infinity; //#26963 - var _Pm = $_.symrow; //#26964 - $k[$j++] = 0; //#26966 - $k[$j++] = -1; //#26966 - for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#26966 - var _Pp = $get(_Pm, _Pn); //#26966 - var _Pq = $k[--$j]; //#26965 - $k[$j++] = _Pq; //#26965 - $k[$j++] = _Pp; //#26965 - if ($eq(_Pq, _Pp)) { //#26965 - $j--; //#26965 - var _Pr = $k[--$j]; //#26965 - var _Ps = $k[--$j]; //#26965 - $k[$j++] = $f(_Ps + 1); //#26965 - $k[$j++] = _Pr; //#26965 - } else { //#26965 - var _Pt = $k[--$j]; //#26965 - $k[$j++] = 1; //#26965 - $k[$j++] = _Pt; //#26965 - } //#26965 - } //#26965 - var _Pv = $counttomark() + 2; //#26967 - $astore($geti($_.rle, 0, _Pv - 2)); //#26967 - $_.evalrle(); //#26968 - $_.n3 = $f($k[--$j] + $_.n3); //#26968 - $_.n1 = $f($k[--$j] + $_.n1); //#26968 - $j--; //#26969 - var _Q1 = $_.thispairs; //#26972 - $_.thispairs = $_.lastpairs; //#26972 - $_.lastpairs = _Q1; //#26972 - var _Q3 = $_.symrow; //#26973 - $k[$j++] = -1; //#26973 - for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#26973 - var _Q6 = $get(_Q3, _Q4); //#26973 - var _Q7 = $k[--$j]; //#26973 - $k[$j++] = _Q6; //#26973 - $k[$j++] = _Q7; //#26973 - if ($ne(_Q6, _Q7)) { //#26973 - $j--; //#26973 - var _Q8 = $k[--$j]; //#26973 - $k[$j++] = -1; //#26973 - $k[$j++] = _Q8; //#26973 - } //#26973 - } //#26973 - $j--; //#26974 - $astore($_.thispairs); //#26975 - $j--; //#26975 - if ($_.i > 0) { //#26982 - $k[$j++] = Infinity; //#26977 - $aload($_.lastpairs); //#26978 - $aload($_.thispairs); //#26978 - $k[$j++] = $_.n2; //#26979 - for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#26979 - var _QH = $k[--$j]; //#26979 - var _QI = $k[--$j]; //#26979 - $k[$j++] = _QH; //#26979 - $k[$j++] = _QI; //#26979 - if (_QI != -1) { //#26979 - var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#26979 - if ($eq($k[--$j], _QK)) { //#26979 - var _QM = $k[--$j]; //#26979 - $k[$j++] = $f(_QM + 3); //#26979 - } //#26979 - } else { //#26979 - $j--; //#26979 - } //#26979 - } //#26979 - $_.n2 = $k[--$j]; //#26980 - $cleartomark(); //#26981 - } //#26981 - } //#26981 - $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#26985 - }; //#26985 - $_.bestscore = 999999999; //#26989 - for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27007 - $_.m = _QT; //#26991 - $_.masksym = $a($_.rows * $_.cols); //#26992 - for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#26996 - $_.i = _Qa; //#26994 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#26995 - } //#26995 - if ($_.masks.length != 1) { //#27005 - $k[$j++] = $_.masksym; //#26998 - $_.evalmask(); //#26998 - $_.score = $k[--$j]; //#26998 - if ($_.score < $_.bestscore) { //#27003 - $_.bestsym = $_.masksym; //#27000 - $_.bestmaskval = $_.m; //#27001 - $_.bestscore = $_.score; //#27002 - } //#27002 - } else { //#27005 - $_.bestsym = $_.masksym; //#27005 - } //#27005 - } //#27005 - $_.pixs = $_.bestsym; //#27008 - $_.metamask = $_.bestmaskval; //#27009 + $_.sym = $k[--$j]; //#27254 + $_.n1 = 0; //#27256 + $_.n2 = 0; //#27256 + $_.n3 = 0; //#27256 + var _PA = $_.rows; //#27257 + var _PB = $_.cols; //#27257 + if (_PA < _PB) { //#27257 + var _ = _PB; //#27257 + _PB = _PA; //#27257 + _PA = _; //#27257 + } //#27257 + $_.rle = $a($f((_PA * 2) + 2)); //#27257 + $_.lastpairs = $a($_.cols); //#27258 + $_.thispairs = $a($_.cols); //#27259 + for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#27271 + $_.i = _PJ; //#27263 + $k[$j++] = Infinity; //#27264 + $k[$j++] = 0; //#27267 + $k[$j++] = -1; //#27267 + for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#27267 + var _PS = $get($_.sym, _PP); //#27266 + var _PT = $k[--$j]; //#27266 + $k[$j++] = _PT; //#27266 + $k[$j++] = _PS; //#27266 + if ($eq(_PT, _PS)) { //#27266 + $j--; //#27266 + var _PU = $k[--$j]; //#27266 + var _PV = $k[--$j]; //#27266 + $k[$j++] = $f(_PV + 1); //#27266 + $k[$j++] = _PU; //#27266 + } else { //#27266 + var _PW = $k[--$j]; //#27266 + $k[$j++] = 1; //#27266 + $k[$j++] = _PW; //#27266 + } //#27266 + } //#27266 + var _PY = $counttomark() + 2; //#27268 + $astore($geti($_.rle, 0, _PY - 2)); //#27268 + $_.evalrle(); //#27269 + $_.n3 = $f($k[--$j] + $_.n3); //#27269 + $_.n1 = $f($k[--$j] + $_.n1); //#27269 + $j--; //#27270 + } //#27270 + for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#27298 + $_.i = _Pg; //#27274 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#27277 + $k[$j++] = Infinity; //#27278 + var _Pm = $_.symrow; //#27279 + $k[$j++] = 0; //#27281 + $k[$j++] = -1; //#27281 + for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#27281 + var _Pp = $get(_Pm, _Pn); //#27281 + var _Pq = $k[--$j]; //#27280 + $k[$j++] = _Pq; //#27280 + $k[$j++] = _Pp; //#27280 + if ($eq(_Pq, _Pp)) { //#27280 + $j--; //#27280 + var _Pr = $k[--$j]; //#27280 + var _Ps = $k[--$j]; //#27280 + $k[$j++] = $f(_Ps + 1); //#27280 + $k[$j++] = _Pr; //#27280 + } else { //#27280 + var _Pt = $k[--$j]; //#27280 + $k[$j++] = 1; //#27280 + $k[$j++] = _Pt; //#27280 + } //#27280 + } //#27280 + var _Pv = $counttomark() + 2; //#27282 + $astore($geti($_.rle, 0, _Pv - 2)); //#27282 + $_.evalrle(); //#27283 + $_.n3 = $f($k[--$j] + $_.n3); //#27283 + $_.n1 = $f($k[--$j] + $_.n1); //#27283 + $j--; //#27284 + var _Q1 = $_.thispairs; //#27287 + $_.thispairs = $_.lastpairs; //#27287 + $_.lastpairs = _Q1; //#27287 + var _Q3 = $_.symrow; //#27288 + $k[$j++] = -1; //#27288 + for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#27288 + var _Q6 = $get(_Q3, _Q4); //#27288 + var _Q7 = $k[--$j]; //#27288 + $k[$j++] = _Q6; //#27288 + $k[$j++] = _Q7; //#27288 + if ($ne(_Q6, _Q7)) { //#27288 + $j--; //#27288 + var _Q8 = $k[--$j]; //#27288 + $k[$j++] = -1; //#27288 + $k[$j++] = _Q8; //#27288 + } //#27288 + } //#27288 + $j--; //#27289 + $astore($_.thispairs); //#27290 + $j--; //#27290 + if ($_.i > 0) { //#27297 + $k[$j++] = Infinity; //#27292 + $aload($_.lastpairs); //#27293 + $aload($_.thispairs); //#27293 + $k[$j++] = $_.n2; //#27294 + for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#27294 + var _QH = $k[--$j]; //#27294 + var _QI = $k[--$j]; //#27294 + $k[$j++] = _QH; //#27294 + $k[$j++] = _QI; //#27294 + if (_QI != -1) { //#27294 + var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#27294 + if ($eq($k[--$j], _QK)) { //#27294 + var _QM = $k[--$j]; //#27294 + $k[$j++] = $f(_QM + 3); //#27294 + } //#27294 + } else { //#27294 + $j--; //#27294 + } //#27294 + } //#27294 + $_.n2 = $k[--$j]; //#27295 + $cleartomark(); //#27296 + } //#27296 + } //#27296 + $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#27300 + }; //#27300 + $_.bestscore = 999999999; //#27304 + for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27322 + $_.m = _QT; //#27306 + $_.masksym = $a($_.rows * $_.cols); //#27307 + for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#27311 + $_.i = _Qa; //#27309 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#27310 + } //#27310 + if ($_.masks.length != 1) { //#27320 + $k[$j++] = $_.masksym; //#27313 + $_.evalmask(); //#27313 + $_.score = $k[--$j]; //#27313 + if ($_.score < $_.bestscore) { //#27318 + $_.bestsym = $_.masksym; //#27315 + $_.bestmaskval = $_.m; //#27316 + $_.bestscore = $_.score; //#27317 + } //#27317 + } else { //#27320 + $_.bestsym = $_.masksym; //#27320 + } //#27320 + } //#27320 + $_.pixs = $_.bestsym; //#27323 + $_.metamask = $_.bestmaskval; //#27324 $_.addtometapart = function() { - var _Qw = $k[--$j]; //#27013 - $puti($_.metapart, $_.p, _Qw); //#27013 - $_.p = _Qw.length + $_.p; //#27014 - }; //#27014 + var _Qw = $k[--$j]; //#27328 + $puti($_.metapart, $_.p, _Qw); //#27328 + $_.p = _Qw.length + $_.p; //#27329 + }; //#27329 $_.addtometabits = function() { - var _R0 = $k[--$j]; //#27018 - $puti($_.metabits, $_.q, _R0); //#27018 - $_.q = _R0.length + $_.q; //#27019 - }; //#27019 - $_.metapart = $s(40); //#27022 - $_.metabits = $s($_.nummetabits); //#27023 - $_.p = 0; //#27024 - $_.q = 0; //#27024 - if (!$_.slave) { //#27079 - $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27029 - $k[$j++] = 3; //#27029 - $_.tofixedbits(); //#27029 - $_.addtometapart(); //#27029 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27030 - $k[$j++] = 2; //#27030 - $k[$j++] = -1; //#27030 - $_.ldpc(); //#27030 - $_.addtometabits(); //#27030 - $_.p = 0; //#27030 - $k[$j++] = $_.metass; //#27033 - $k[$j++] = 1; //#27033 - $_.tofixedbits(); //#27033 - $_.addtometapart(); //#27033 - $k[$j++] = $_.metavf; //#27034 - $k[$j++] = 2; //#27034 - $_.tofixedbits(); //#27034 - $_.addtometapart(); //#27034 - $k[$j++] = $_.metamask; //#27035 - $k[$j++] = 3; //#27035 - $_.tofixedbits(); //#27035 - $_.addtometapart(); //#27035 - if ($_.hasslaves) { //#27036 - $k[$j++] = "1"; //#27036 - } else { //#27036 - $k[$j++] = "0"; //#27036 - } //#27036 - $_.addtometapart(); //#27036 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27037 - $k[$j++] = 2; //#27037 - $k[$j++] = -1; //#27037 - $_.ldpc(); //#27037 - $_.addtometabits(); //#27037 - $_.p = 0; //#27037 - if ($_.metass == 0) { //#27047 - $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27042 - $k[$j++] = $_.metavlen; //#27042 - $_.tofixedbits(); //#27042 - $_.addtometapart(); //#27042 - } else { //#27047 - $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27045 - $k[$j++] = ~~($_.metavlen / 2); //#27045 - $_.tofixedbits(); //#27045 - $_.addtometapart(); //#27045 - $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27047 - $k[$j++] = ~~($_.metavlen / 2); //#27047 - $_.tofixedbits(); //#27047 - $_.addtometapart(); //#27047 - } //#27047 - $k[$j++] = $_.datawc - 3; //#27049 - $k[$j++] = ~~($_.metaelen / 2); //#27049 - $_.tofixedbits(); //#27049 - $_.addtometapart(); //#27049 - $k[$j++] = $_.datawr - 4; //#27050 - $k[$j++] = ~~($_.metaelen / 2); //#27050 - $_.tofixedbits(); //#27050 - $_.addtometapart(); //#27050 - if ($_.hasslaves) { //#27053 - $k[$j++] = 0; //#27052 - $k[$j++] = 4; //#27052 - $_.tofixedbits(); //#27052 - $_.addtometapart(); //#27052 - } //#27052 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27054 - $k[$j++] = 2; //#27054 - $k[$j++] = -1; //#27054 - $_.ldpc(); //#27054 - $_.addtometabits(); //#27054 - $_.p = 0; //#27054 - } else { //#27079 - var _Rc = $_.sameshape ? 0 : 1; //#27059 - $k[$j++] = _Rc; //#27059 - $k[$j++] = 1; //#27059 - $_.tofixedbits(); //#27059 - $_.addtometapart(); //#27059 - var _Re = $_.sameecc ? 0 : 1; //#27060 - $k[$j++] = _Re; //#27060 - $k[$j++] = 1; //#27060 - $_.tofixedbits(); //#27060 - $_.addtometapart(); //#27060 - var _Rg = $_.hasslaves ? 1 : 0; //#27061 - $k[$j++] = _Rg; //#27061 - $k[$j++] = 1; //#27061 - $_.tofixedbits(); //#27061 - $_.addtometapart(); //#27061 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27062 - $k[$j++] = 2; //#27062 - $k[$j++] = -1; //#27062 - $_.ldpc(); //#27062 - $_.addtometabits(); //#27062 - $_.p = 0; //#27062 - if (!$_.sameshape) { //#27068 - $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27067 - $k[$j++] = 5; //#27067 - $_.tofixedbits(); //#27067 - $_.addtometapart(); //#27067 - } //#27067 - if ($_.hasslaves) { //#27071 - $k[$j++] = 0; //#27070 - $k[$j++] = 3; //#27070 - $_.tofixedbits(); //#27070 - $_.addtometapart(); //#27070 - } //#27070 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27072 - $k[$j++] = 2; //#27072 - $k[$j++] = -1; //#27072 - $_.ldpc(); //#27072 - $_.addtometabits(); //#27072 - $_.p = 0; //#27072 - if (!$_.sameecc) { //#27078 - $k[$j++] = $_.datawc - 3; //#27076 - $k[$j++] = ~~($_.metaelen / 2); //#27076 - $_.tofixedbits(); //#27076 - $_.addtometapart(); //#27076 - $k[$j++] = $_.datawr - 4; //#27077 - $k[$j++] = ~~($_.metaelen / 2); //#27077 - $_.tofixedbits(); //#27077 - $_.addtometapart(); //#27077 - } //#27077 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27079 - $k[$j++] = 2; //#27079 - $k[$j++] = -1; //#27079 - $_.ldpc(); //#27079 - $_.addtometabits(); //#27079 - $_.p = 0; //#27079 - } //#27079 - for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27084 - $put($_.metabits, _S1, 48); //#27083 - } //#27083 - $_.i = 0; //#27087 - $_.j = 0; //#27087 - if (!$_.slave) { //#27095 - var _S6 = $geti($_.metabits, $_.i, 6); //#27089 - for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27093 - $k[$j++] = $get(_S6, _S7); //#27090 - if ($_.colors == 4) { //#27090 - $k[$j++] = $a([$_.bi, $_.yi]); //#27090 - } else { //#27090 - $k[$j++] = $a([$_.ki, $_.wi]); //#27090 - } //#27090 - var _SH = $k[--$j]; //#27090 - var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27090 - $k[$j++] = _SJ; //#27091 - $k[$j++] = $_.pixs; //#27091 - $aload($get($_.metadatamap, $_.j)); //#27091 - $_.jmv(); //#27091 - var _SO = $k[--$j]; //#27091 - var _SP = $k[--$j]; //#27091 - $put(_SP, _SO, $k[--$j]); //#27091 - $_.j = $_.j + 1; //#27092 - } //#27092 - $_.i = $_.i + 6; //#27094 - } //#27094 - for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27102 - var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27097 - $k[$j++] = 0; //#27097 - for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27097 - var _Sf = $k[--$j]; //#27097 - $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27097 - } //#27097 - var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27098 - $k[$j++] = _Si; //#27099 - $k[$j++] = $_.pixs; //#27099 - $aload($get($_.metadatamap, $_.j)); //#27099 - $_.jmv(); //#27099 - var _Sn = $k[--$j]; //#27099 - var _So = $k[--$j]; //#27099 - $put(_So, _Sn, $k[--$j]); //#27099 - $_.i = $f($_.i + $_.metabpm); //#27100 - $_.j = $_.j + 1; //#27101 - } //#27101 + var _R0 = $k[--$j]; //#27333 + $puti($_.metabits, $_.q, _R0); //#27333 + $_.q = _R0.length + $_.q; //#27334 + }; //#27334 + $_.metapart = $s(40); //#27337 + $_.metabits = $s($_.nummetabits); //#27338 + $_.p = 0; //#27339 + $_.q = 0; //#27339 + if (!$_.slave) { //#27394 + $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27344 + $k[$j++] = 3; //#27344 + $_.tofixedbits(); //#27344 + $_.addtometapart(); //#27344 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27345 + $k[$j++] = 2; //#27345 + $k[$j++] = -1; //#27345 + $_.ldpc(); //#27345 + $_.addtometabits(); //#27345 + $_.p = 0; //#27345 + $k[$j++] = $_.metass; //#27348 + $k[$j++] = 1; //#27348 + $_.tofixedbits(); //#27348 + $_.addtometapart(); //#27348 + $k[$j++] = $_.metavf; //#27349 + $k[$j++] = 2; //#27349 + $_.tofixedbits(); //#27349 + $_.addtometapart(); //#27349 + $k[$j++] = $_.metamask; //#27350 + $k[$j++] = 3; //#27350 + $_.tofixedbits(); //#27350 + $_.addtometapart(); //#27350 + if ($_.hasslaves) { //#27351 + $k[$j++] = "1"; //#27351 + } else { //#27351 + $k[$j++] = "0"; //#27351 + } //#27351 + $_.addtometapart(); //#27351 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27352 + $k[$j++] = 2; //#27352 + $k[$j++] = -1; //#27352 + $_.ldpc(); //#27352 + $_.addtometabits(); //#27352 + $_.p = 0; //#27352 + if ($_.metass == 0) { //#27362 + $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27357 + $k[$j++] = $_.metavlen; //#27357 + $_.tofixedbits(); //#27357 + $_.addtometapart(); //#27357 + } else { //#27362 + $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27360 + $k[$j++] = ~~($_.metavlen / 2); //#27360 + $_.tofixedbits(); //#27360 + $_.addtometapart(); //#27360 + $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27362 + $k[$j++] = ~~($_.metavlen / 2); //#27362 + $_.tofixedbits(); //#27362 + $_.addtometapart(); //#27362 + } //#27362 + $k[$j++] = $_.datawc - 3; //#27364 + $k[$j++] = ~~($_.metaelen / 2); //#27364 + $_.tofixedbits(); //#27364 + $_.addtometapart(); //#27364 + $k[$j++] = $_.datawr - 4; //#27365 + $k[$j++] = ~~($_.metaelen / 2); //#27365 + $_.tofixedbits(); //#27365 + $_.addtometapart(); //#27365 + if ($_.hasslaves) { //#27368 + $k[$j++] = 0; //#27367 + $k[$j++] = 4; //#27367 + $_.tofixedbits(); //#27367 + $_.addtometapart(); //#27367 + } //#27367 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27369 + $k[$j++] = 2; //#27369 + $k[$j++] = -1; //#27369 + $_.ldpc(); //#27369 + $_.addtometabits(); //#27369 + $_.p = 0; //#27369 + } else { //#27394 + var _Rc = $_.sameshape ? 0 : 1; //#27374 + $k[$j++] = _Rc; //#27374 + $k[$j++] = 1; //#27374 + $_.tofixedbits(); //#27374 + $_.addtometapart(); //#27374 + var _Re = $_.sameecc ? 0 : 1; //#27375 + $k[$j++] = _Re; //#27375 + $k[$j++] = 1; //#27375 + $_.tofixedbits(); //#27375 + $_.addtometapart(); //#27375 + var _Rg = $_.hasslaves ? 1 : 0; //#27376 + $k[$j++] = _Rg; //#27376 + $k[$j++] = 1; //#27376 + $_.tofixedbits(); //#27376 + $_.addtometapart(); //#27376 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27377 + $k[$j++] = 2; //#27377 + $k[$j++] = -1; //#27377 + $_.ldpc(); //#27377 + $_.addtometabits(); //#27377 + $_.p = 0; //#27377 + if (!$_.sameshape) { //#27383 + $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27382 + $k[$j++] = 5; //#27382 + $_.tofixedbits(); //#27382 + $_.addtometapart(); //#27382 + } //#27382 + if ($_.hasslaves) { //#27386 + $k[$j++] = 0; //#27385 + $k[$j++] = 3; //#27385 + $_.tofixedbits(); //#27385 + $_.addtometapart(); //#27385 + } //#27385 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27387 + $k[$j++] = 2; //#27387 + $k[$j++] = -1; //#27387 + $_.ldpc(); //#27387 + $_.addtometabits(); //#27387 + $_.p = 0; //#27387 + if (!$_.sameecc) { //#27393 + $k[$j++] = $_.datawc - 3; //#27391 + $k[$j++] = ~~($_.metaelen / 2); //#27391 + $_.tofixedbits(); //#27391 + $_.addtometapart(); //#27391 + $k[$j++] = $_.datawr - 4; //#27392 + $k[$j++] = ~~($_.metaelen / 2); //#27392 + $_.tofixedbits(); //#27392 + $_.addtometapart(); //#27392 + } //#27392 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27394 + $k[$j++] = 2; //#27394 + $k[$j++] = -1; //#27394 + $_.ldpc(); //#27394 + $_.addtometabits(); //#27394 + $_.p = 0; //#27394 + } //#27394 + for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27399 + $put($_.metabits, _S1, 48); //#27398 + } //#27398 + $_.i = 0; //#27402 + $_.j = 0; //#27402 + if (!$_.slave) { //#27410 + var _S6 = $geti($_.metabits, $_.i, 6); //#27404 + for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27408 + $k[$j++] = $get(_S6, _S7); //#27405 + if ($_.colors == 4) { //#27405 + $k[$j++] = $a([$_.bi, $_.yi]); //#27405 + } else { //#27405 + $k[$j++] = $a([$_.ki, $_.wi]); //#27405 + } //#27405 + var _SH = $k[--$j]; //#27405 + var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27405 + $k[$j++] = _SJ; //#27406 + $k[$j++] = $_.pixs; //#27406 + $aload($get($_.metadatamap, $_.j)); //#27406 + $_.jmv(); //#27406 + var _SO = $k[--$j]; //#27406 + var _SP = $k[--$j]; //#27406 + $put(_SP, _SO, $k[--$j]); //#27406 + $_.j = $_.j + 1; //#27407 + } //#27407 + $_.i = $_.i + 6; //#27409 + } //#27409 + for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27417 + var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27412 + $k[$j++] = 0; //#27412 + for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27412 + var _Sf = $k[--$j]; //#27412 + $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27412 + } //#27412 + var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27413 + $k[$j++] = _Si; //#27414 + $k[$j++] = $_.pixs; //#27414 + $aload($get($_.metadatamap, $_.j)); //#27414 + $_.jmv(); //#27414 + var _Sn = $k[--$j]; //#27414 + var _So = $k[--$j]; //#27414 + $put(_So, _Sn, $k[--$j]); //#27414 + $_.i = $f($_.i + $_.metabpm); //#27415 + $_.j = $_.j + 1; //#27416 + } //#27416 var _T0 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -34536,42 +35014,45 @@ function bwipp_jabcode() { ["colormap", $_.palette], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#27112 - $k[$j++] = _T0; //#27115 - if (!$_.dontdraw) { //#27115 - bwipp_renmatrix(); //#27115 - } //#27115 - $_ = Object.getPrototypeOf($_); //#27117 -} - + ]); //#27431 + $k[$j++] = _T0; //#27434 + if (!$_.dontdraw) { //#27434 + bwipp_renmatrix(); //#27434 + } //#27434 + $_ = Object.getPrototypeOf($_); //#27436 +} //bwipp_jabcode function bwipp_gs1_cc() { - $_ = Object.create($_); //#27150 - $_.parse = false; //#27153 - $_.dontlint = false; //#27154 - $_.lintreqs = false; //#27155 - $_.dontdraw = false; //#27156 - $_.ccversion = "a"; //#27157 - $_.cccolumns = -1; //#27158 - $_.lintype = ""; //#27159 - $_.linwidth = -1; //#27160 - $k[$j++] = $_; //#27162 - bwipp_processoptions(); //#27162 - $_.options = $k[--$j]; //#27162 - $_.barcode = $k[--$j]; //#27163 - bwipp_loadctx(bwipp_gs1_cc) //#27165 - if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27169 - $k[$j++] = 'bwipp.gs1ccBadCCversion#27168'; //#27168 - $k[$j++] = "ccversion must be a, b or c"; //#27168 - bwipp_raiseerror(); //#27168 - } //#27168 - if ($_.cccolumns > 30) { //#27173 - $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27172'; //#27172 - $k[$j++] = "The maximum number of composite component columns is 30"; //#27172 - bwipp_raiseerror(); //#27172 - } //#27172 - if (!bwipp_gs1_cc.__27190__) { //#27190 - $_ = Object.create($_); //#27190 + $_ = Object.create($_); //#27469 + $_.parse = false; //#27472 + $_.dontlint = false; //#27473 + $_.lintreqs = false; //#27474 + $_.dontdraw = false; //#27475 + $_.ccversion = "a"; //#27476 + $_.cccolumns = -1; //#27477 + $_.lintype = ""; //#27478 + $_.linwidth = -1; //#27479 + $k[$j++] = $_; //#27481 + bwipp_processoptions(); //#27481 + $_.options = $k[--$j]; //#27481 + $_.barcode = $k[--$j]; //#27482 + bwipp_loadctx(bwipp_gs1_cc) //#27484 + if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27488 + $k[$j++] = 'bwipp.gs1ccBadCCversion#27487'; //#27487 + $k[$j++] = "ccversion must be a, b or c"; //#27487 + bwipp_raiseerror(); //#27487 + } //#27487 + if ($_.cccolumns > 30) { //#27492 + $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27491'; //#27491 + $k[$j++] = "The maximum number of composite component columns is 30"; //#27491 + bwipp_raiseerror(); //#27491 + } //#27491 + if (!bwipp_gs1_cc.__27509__) { //#27509 + $_ = Object.create($_); //#27509 var _6 = new Map([ ["ean13", 4], ["upca", 4], @@ -34585,1806 +35066,1383 @@ function bwipp_gs1_cc() { ["databarlimited", 3], ["databarexpanded", 4], ["databarexpandedstacked", 4] - ]); //#27188 - $_.lintypecccolumns = _6; //#27189 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27189 - bwipp_gs1_cc.__27190__ = 1; //#27189 - $_ = Object.getPrototypeOf($_); //#27189 - } //#27189 - if ($ne($_.lintype, "")) { //#27196 - var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27193 - if (!_B) { //#27195 - $k[$j++] = 'bwipp.gs1ccBadLinType#27194'; //#27194 - $k[$j++] = "The lintype is not recognised"; //#27194 - bwipp_raiseerror(); //#27194 - } //#27194 - } //#27194 - if ($_.cccolumns == -1) { //#27209 - if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27206 - if ($_.linwidth < 0) { //#27203 - $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27202'; //#27202 - $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27202 - bwipp_raiseerror(); //#27202 - } //#27202 - $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27204 - } else { //#27206 - $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27206 - } //#27206 - $_.cccolumns = $k[--$j]; //#27208 - } //#27208 - $k[$j++] = $_.barcode; //#27211 - $k[$j++] = 'ai'; //#27211 - bwipp_gs1process(); //#27211 - $_.fncs = $k[--$j]; //#27212 - $_.vals = $k[--$j]; //#27213 - $_.ais = $k[--$j]; //#27214 + ]); //#27507 + $_.lintypecccolumns = _6; //#27508 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27508 + bwipp_gs1_cc.__27509__ = 1; //#27508 + $_ = Object.getPrototypeOf($_); //#27508 + } //#27508 + if ($ne($_.lintype, "")) { //#27515 + var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27512 + if (!_B) { //#27514 + $k[$j++] = 'bwipp.gs1ccBadLinType#27513'; //#27513 + $k[$j++] = "The lintype is not recognised"; //#27513 + bwipp_raiseerror(); //#27513 + } //#27513 + } //#27513 + if ($_.cccolumns == -1) { //#27531 + if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27528 + if ($_.linwidth < 0) { //#27522 + $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27521'; //#27521 + $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27521 + bwipp_raiseerror(); //#27521 + } //#27521 + if ($_.linwidth < 68) { //#27525 + $k[$j++] = 'bwipp.gs1ccMinimumLinWidth#27524'; //#27524 + $k[$j++] = "Minimum linwidth for a GS1-128 with a CC-C composite component is 68"; //#27524 + bwipp_raiseerror(); //#27524 + } //#27524 + if ($_.linwidth == 68) { //#27526 + $k[$j++] = 1; //#27526 + } else { //#27526 + $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27526 + } //#27526 + } else { //#27528 + if ($ne($_.lintype, "")) { //#27528 + $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27528 + } else { //#27528 + $k[$j++] = 2; //#27528 + } //#27528 + } //#27528 + $_.cccolumns = $k[--$j]; //#27530 + } //#27530 + $k[$j++] = $_.barcode; //#27533 + $k[$j++] = 'ai'; //#27533 + bwipp_gs1process(); //#27533 + $_.fncs = $k[--$j]; //#27534 + $_.vals = $k[--$j]; //#27535 + $_.ais = $k[--$j]; //#27536 $_.isupper = function() { - var _P = $k[--$j]; //#27217 - $k[$j++] = (_P >= 65) && (_P <= 90); //#27217 - }; //#27217 + var _S = $k[--$j]; //#27539 + $k[$j++] = (_S >= 65) && (_S <= 90); //#27539 + }; //#27539 $_.isnum0 = function() { - var _Q = $k[--$j]; //#27218 - $k[$j++] = (_Q >= 48) && (_Q <= 57); //#27218 - }; //#27218 + var _T = $k[--$j]; //#27540 + $k[$j++] = (_T >= 48) && (_T <= 57); //#27540 + }; //#27540 $_.isnum1 = function() { - var _R = $k[--$j]; //#27219 - $k[$j++] = (_R >= 49) && (_R <= 57); //#27219 - }; //#27219 - for (;;) { //#27265 - if ($_.ais.length >= 1) { //#27227 - if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27226 - $k[$j++] = -1; //#27225 - $k[$j++] = "10"; //#27225 - break; //#27225 - } //#27225 - } //#27225 - if ($_.ais.length >= 1) { //#27260 - if ($eq($get($_.ais, 0), "90")) { //#27259 - $_.v = $get($_.vals, 0); //#27232 - if ($_.v.length >= 1) { //#27237 - $k[$j++] = $get($_.v, 0); //#27234 - $_.isupper(); //#27234 - if ($k[--$j]) { //#27236 - $k[$j++] = 0; //#27235 - $k[$j++] = "11"; //#27235 - break; //#27235 - } //#27235 - } //#27235 - if ($_.v.length >= 2) { //#27243 - $k[$j++] = $get($_.v, 0); //#27239 - $_.isnum1(); //#27239 - $k[$j++] = $get($_.v, 1); //#27240 - $_.isupper(); //#27240 - var _n = $k[--$j]; //#27240 - var _o = $k[--$j]; //#27240 - if ((_o && _n)) { //#27242 - $k[$j++] = 1; //#27241 - $k[$j++] = "11"; //#27241 - break; //#27241 - } //#27241 - } //#27241 - if ($_.v.length >= 3) { //#27250 - $k[$j++] = $get($_.v, 0); //#27245 - $_.isnum1(); //#27245 - $k[$j++] = $get($_.v, 1); //#27246 - $_.isnum0(); //#27246 - var _u = $k[--$j]; //#27246 - var _v = $k[--$j]; //#27246 - $k[$j++] = $an(_v, _u); //#27247 - $k[$j++] = $get($_.v, 2); //#27247 - $_.isupper(); //#27247 - var _y = $k[--$j]; //#27247 - var _z = $k[--$j]; //#27247 - if ((_z && _y)) { //#27249 - $k[$j++] = 2; //#27248 - $k[$j++] = "11"; //#27248 - break; //#27248 - } //#27248 - } //#27248 - if ($_.v.length >= 4) { //#27258 - $k[$j++] = $get($_.v, 0); //#27252 - $_.isnum1(); //#27252 - $k[$j++] = $get($_.v, 1); //#27253 - $_.isnum0(); //#27253 - var _15 = $k[--$j]; //#27253 - var _16 = $k[--$j]; //#27253 - $k[$j++] = $an(_16, _15); //#27254 - $k[$j++] = $get($_.v, 2); //#27254 - $_.isnum0(); //#27254 - var _19 = $k[--$j]; //#27254 - var _1A = $k[--$j]; //#27254 - $k[$j++] = $an(_1A, _19); //#27255 - $k[$j++] = $get($_.v, 3); //#27255 - $_.isupper(); //#27255 - var _1D = $k[--$j]; //#27255 - var _1E = $k[--$j]; //#27255 - if ((_1E && _1D)) { //#27257 - $k[$j++] = 3; //#27256 - $k[$j++] = "11"; //#27256 - break; //#27256 - } //#27256 - } //#27256 - } //#27256 - } //#27256 - $k[$j++] = -1; //#27263 - $k[$j++] = "0"; //#27263 - break; //#27263 - } //#27263 - $_.method = $k[--$j]; //#27266 - $_.npre = $k[--$j]; //#27267 + var _U = $k[--$j]; //#27541 + $k[$j++] = (_U >= 49) && (_U <= 57); //#27541 + }; //#27541 + for (;;) { //#27587 + if ($_.ais.length >= 1) { //#27549 + if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27548 + $k[$j++] = -1; //#27547 + $k[$j++] = "10"; //#27547 + break; //#27547 + } //#27547 + } //#27547 + if ($_.ais.length >= 1) { //#27582 + if ($eq($get($_.ais, 0), "90")) { //#27581 + $_.v = $get($_.vals, 0); //#27554 + if ($_.v.length >= 1) { //#27559 + $k[$j++] = $get($_.v, 0); //#27556 + $_.isupper(); //#27556 + if ($k[--$j]) { //#27558 + $k[$j++] = 0; //#27557 + $k[$j++] = "11"; //#27557 + break; //#27557 + } //#27557 + } //#27557 + if ($_.v.length >= 2) { //#27565 + $k[$j++] = $get($_.v, 0); //#27561 + $_.isnum1(); //#27561 + $k[$j++] = $get($_.v, 1); //#27562 + $_.isupper(); //#27562 + var _q = $k[--$j]; //#27562 + var _r = $k[--$j]; //#27562 + if ((_r && _q)) { //#27564 + $k[$j++] = 1; //#27563 + $k[$j++] = "11"; //#27563 + break; //#27563 + } //#27563 + } //#27563 + if ($_.v.length >= 3) { //#27572 + $k[$j++] = $get($_.v, 0); //#27567 + $_.isnum1(); //#27567 + $k[$j++] = $get($_.v, 1); //#27568 + $_.isnum0(); //#27568 + var _x = $k[--$j]; //#27568 + var _y = $k[--$j]; //#27568 + $k[$j++] = $an(_y, _x); //#27569 + $k[$j++] = $get($_.v, 2); //#27569 + $_.isupper(); //#27569 + var _11 = $k[--$j]; //#27569 + var _12 = $k[--$j]; //#27569 + if ((_12 && _11)) { //#27571 + $k[$j++] = 2; //#27570 + $k[$j++] = "11"; //#27570 + break; //#27570 + } //#27570 + } //#27570 + if ($_.v.length >= 4) { //#27580 + $k[$j++] = $get($_.v, 0); //#27574 + $_.isnum1(); //#27574 + $k[$j++] = $get($_.v, 1); //#27575 + $_.isnum0(); //#27575 + var _18 = $k[--$j]; //#27575 + var _19 = $k[--$j]; //#27575 + $k[$j++] = $an(_19, _18); //#27576 + $k[$j++] = $get($_.v, 2); //#27576 + $_.isnum0(); //#27576 + var _1C = $k[--$j]; //#27576 + var _1D = $k[--$j]; //#27576 + $k[$j++] = $an(_1D, _1C); //#27577 + $k[$j++] = $get($_.v, 3); //#27577 + $_.isupper(); //#27577 + var _1G = $k[--$j]; //#27577 + var _1H = $k[--$j]; //#27577 + if ((_1H && _1G)) { //#27579 + $k[$j++] = 3; //#27578 + $k[$j++] = "11"; //#27578 + break; //#27578 + } //#27578 + } //#27578 + } //#27578 + } //#27578 + $k[$j++] = -1; //#27585 + $k[$j++] = "0"; //#27585 + break; //#27585 + } //#27585 + $_.method = $k[--$j]; //#27588 + $_.npre = $k[--$j]; //#27589 $_.tobin = function() { - var _1I = $s($k[--$j]); //#27270 - $k[$j++] = _1I; //#27270 - for (var _1K = 0, _1J = _1I.length - 1; _1K <= _1J; _1K += 1) { //#27270 - var _1L = $k[--$j]; //#27270 - $put(_1L, _1K, 48); //#27270 - $k[$j++] = _1L; //#27270 - } //#27270 - var _1M = $k[--$j]; //#27271 - var _1P = $cvrs($s(_1M.length), $k[--$j], 2); //#27271 - $puti(_1M, _1M.length - _1P.length, _1P); //#27271 - $k[$j++] = _1M; //#27271 - }; //#27271 - if (!bwipp_gs1_cc.__27322__) { //#27322 - $_ = Object.create($_); //#27322 - $_.fnc1 = -1; //#27276 - $_.lnumeric = -2; //#27276 - $_.lalphanumeric = -3; //#27276 - $_.liso646 = -4; //#27276 - $k[$j++] = Infinity; //#27281 - for (var _1Q = 65; _1Q <= 90; _1Q += 1) { //#27279 - $k[$j++] = _1Q; //#27279 - $k[$j++] = _1Q - 65; //#27279 - $k[$j++] = 5; //#27279 - $_.tobin(); //#27279 - } //#27279 - for (var _1R = 48; _1R <= 57; _1R += 1) { //#27280 - $k[$j++] = _1R; //#27280 - $k[$j++] = _1R + 4; //#27280 - $k[$j++] = 6; //#27280 - $_.tobin(); //#27280 - } //#27280 - $k[$j++] = $_.fnc1; //#27281 - $k[$j++] = "11111"; //#27281 - $_.alpha = $d(); //#27282 - $k[$j++] = Infinity; //#27294 - for (var _1U = 0; _1U <= 119; _1U += 1) { //#27293 - var _1W = $strcpy($s(2), "00"); //#27286 - var _1Y = $cvrs($s(2), _1U, 11); //#27286 - $puti(_1W, 2 - _1Y.length, _1Y); //#27287 - $k[$j++] = _1U; //#27288 - $k[$j++] = _1W; //#27288 - if ($get(_1W, 0) == 65) { //#27288 - var _1a = $k[--$j]; //#27288 - $put(_1a, 0, 94); //#27288 - $k[$j++] = _1a; //#27288 - } //#27288 - var _1b = $k[--$j]; //#27289 - $k[$j++] = _1b; //#27289 - if ($get(_1b, 1) == 65) { //#27289 - var _1d = $k[--$j]; //#27289 - $put(_1d, 1, 94); //#27289 - $k[$j++] = _1d; //#27289 - } //#27289 - var _1e = $k[--$j]; //#27290 - var _1h = $strcpy($s(7), "0000000"); //#27291 - var _1j = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27291 - $puti(_1h, 7 - _1j.length, _1j); //#27292 - $k[$j++] = _1e; //#27292 - $k[$j++] = _1h; //#27292 - } //#27292 - $k[$j++] = $_.lalphanumeric; //#27294 - $k[$j++] = "0000"; //#27294 - $_.numeric = $d(); //#27295 - $k[$j++] = Infinity; //#27304 - for (var _1m = 48; _1m <= 57; _1m += 1) { //#27298 - $k[$j++] = _1m; //#27298 - $k[$j++] = _1m - 43; //#27298 - $k[$j++] = 5; //#27298 - $_.tobin(); //#27298 - } //#27298 - $k[$j++] = $_.fnc1; //#27300 - $k[$j++] = "01111"; //#27300 - for (var _1o = 65; _1o <= 90; _1o += 1) { //#27300 - $k[$j++] = _1o; //#27300 - $k[$j++] = _1o - 33; //#27300 - $k[$j++] = 6; //#27300 - $_.tobin(); //#27300 - } //#27300 - $k[$j++] = 42; //#27302 - $k[$j++] = "111010"; //#27302 - for (var _1p = 44; _1p <= 47; _1p += 1) { //#27302 - $k[$j++] = _1p; //#27302 - $k[$j++] = _1p + 15; //#27302 - $k[$j++] = 6; //#27302 - $_.tobin(); //#27302 - } //#27302 - $k[$j++] = $_.lnumeric; //#27304 - $k[$j++] = "000"; //#27304 - $k[$j++] = $_.liso646; //#27304 - $k[$j++] = "00100"; //#27304 - $_.alphanumeric = $d(); //#27305 - $k[$j++] = Infinity; //#27319 - for (var _1t = 48; _1t <= 57; _1t += 1) { //#27308 - $k[$j++] = _1t; //#27308 - $k[$j++] = _1t - 43; //#27308 - $k[$j++] = 5; //#27308 - $_.tobin(); //#27308 - } //#27308 - $k[$j++] = $_.fnc1; //#27310 - $k[$j++] = "01111"; //#27310 - for (var _1v = 65; _1v <= 90; _1v += 1) { //#27310 - $k[$j++] = _1v; //#27310 - $k[$j++] = _1v - 1; //#27310 - $k[$j++] = 7; //#27310 - $_.tobin(); //#27310 - } //#27310 - for (var _1w = 97; _1w <= 122; _1w += 1) { //#27311 - $k[$j++] = _1w; //#27311 - $k[$j++] = _1w - 7; //#27311 - $k[$j++] = 7; //#27311 - $_.tobin(); //#27311 - } //#27311 - $k[$j++] = 33; //#27314 - $k[$j++] = "11101000"; //#27314 - $k[$j++] = 34; //#27314 - $k[$j++] = "11101001"; //#27314 - for (var _1x = 37; _1x <= 47; _1x += 1) { //#27314 - $k[$j++] = _1x; //#27314 - $k[$j++] = _1x + 197; //#27314 - $k[$j++] = 8; //#27314 - $_.tobin(); //#27314 - } //#27314 - for (var _1y = 58; _1y <= 63; _1y += 1) { //#27315 - $k[$j++] = _1y; //#27315 - $k[$j++] = _1y + 187; //#27315 - $k[$j++] = 8; //#27315 - $_.tobin(); //#27315 - } //#27315 - $k[$j++] = 95; //#27319 - $k[$j++] = "11111011"; //#27319 - $k[$j++] = 32; //#27319 - $k[$j++] = "11111100"; //#27319 - $k[$j++] = $_.lnumeric; //#27319 - $k[$j++] = "000"; //#27319 - $k[$j++] = $_.lalphanumeric; //#27319 - $k[$j++] = "00100"; //#27319 - $_.iso646 = $d(); //#27320 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27320 - bwipp_gs1_cc.__27322__ = 1; //#27320 - $_ = Object.getPrototypeOf($_); //#27320 - } //#27320 - if ($eq($_.method, "10")) { //#27357 - if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27340 - var _29 = $get($_.vals, 0); //#27326 - var _2E = $strcpy($s(16), "0000000000000000"); //#27330 - var _2G = $cvrs($s(16), ($cvi($geti(_29, 0, 2)) * 384) + ((($cvi($geti(_29, 2, 2)) - 1) * 32) + $cvi($geti(_29, 4, 2))), 2); //#27330 - $puti(_2E, 16 - _2G.length, _2G); //#27331 - $k[$j++] = _2E; //#27334 - $k[$j++] = Infinity; //#27334 - var _2H = $k[--$j]; //#27333 - var _2I = $k[--$j]; //#27333 - $k[$j++] = _2H; //#27333 - $k[$j++] = 1; //#27333 - $k[$j++] = 0; //#27333 - $forall(_2I, function() { //#27333 - var _2J = $k[--$j]; //#27333 - $k[$j++] = $f(_2J - 48); //#27333 - }); //#27333 - var _2M = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27334 - $k[$j++] = _2M; //#27334 - $_.cdf = $a(); //#27335 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27336 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27337 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27338 - } else { //#27340 - $_.cdf = $a([1, 0, 1, 1]); //#27340 - } //#27340 - if ($_.ais.length != 0) { //#27354 - if ($eq($get($_.ais, 0), "10")) { //#27350 - $k[$j++] = Infinity; //#27344 - $forall($get($_.vals, 0)); //#27344 - $_.gpf = $a(); //#27344 - if ($_.ais.length > 1) { //#27345 - $k[$j++] = Infinity; //#27345 - $aload($_.gpf); //#27345 - $k[$j++] = $_.fnc1; //#27345 - $_.gpf = $a(); //#27345 - } //#27345 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27346 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27347 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27348 - } else { //#27350 - $_.gpf = $a([$_.fnc1]); //#27350 - } //#27350 - } else { //#27354 - $k[$j++] = Infinity; //#27353 - $aload($_.cdf); //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $_.cdf = $a(); //#27353 - $_.gpf = $a([]); //#27354 - } //#27354 - $_.mode = "numeric"; //#27356 - } //#27356 - if ($eq($_.method, "11")) { //#27451 - $_.cdf = $a([1, 1]); //#27360 - $_.ai90 = $get($_.vals, 0); //#27361 - if ($f($_.npre + 1) != $_.ai90.length) { //#27365 - $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27363 - } else { //#27365 - $k[$j++] = ""; //#27365 - } //#27365 - $_.ai90rem = $k[--$j]; //#27367 - $k[$j++] = 'nalpha'; //#27368 - $k[$j++] = 0; //#27368 - $forall($_.ai90rem, function() { //#27368 - var _39 = $k[--$j]; //#27368 - if ((_39 >= 65) && (_39 <= 90)) { //#27368 - var _3A = $k[--$j]; //#27368 - $k[$j++] = $f(_3A + 1); //#27368 - } //#27368 - }); //#27368 - var _3B = $k[--$j]; //#27368 - $_[$k[--$j]] = _3B; //#27368 - $k[$j++] = 'nnums'; //#27369 - $k[$j++] = 0; //#27369 - $forall($_.ai90rem, function() { //#27369 - var _3E = $k[--$j]; //#27369 - if ((_3E >= 48) && (_3E <= 57)) { //#27369 - var _3F = $k[--$j]; //#27369 - $k[$j++] = $f(_3F + 1); //#27369 - } //#27369 - }); //#27369 - var _3G = $k[--$j]; //#27369 - $_[$k[--$j]] = _3G; //#27369 - $k[$j++] = 'mode'; //#27370 - if ($gt($_.nalpha, $_.nnums)) { //#27370 - $k[$j++] = "alpha"; //#27370 - } else { //#27370 - if ($_.nalpha == 0) { //#27370 - $k[$j++] = "numeric"; //#27370 - } else { //#27370 - $k[$j++] = "alphanumeric"; //#27370 - } //#27370 - } //#27370 - var _3L = $k[--$j]; //#27370 - $_[$k[--$j]] = _3L; //#27370 - if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27371 - $_.mode = "alphanumeric"; //#27371 - } //#27371 - $k[$j++] = Infinity; //#27376 - $aload($_.cdf); //#27373 - if ($eq($_.mode, "alphanumeric")) { //#27374 - $k[$j++] = 0; //#27374 - } //#27374 - if ($eq($_.mode, "numeric")) { //#27375 - $k[$j++] = 1; //#27375 - $k[$j++] = 0; //#27375 - } //#27375 - if ($eq($_.mode, "alpha")) { //#27376 - $k[$j++] = 1; //#27376 - $k[$j++] = 1; //#27376 - } //#27376 - $_.cdf = $a(); //#27376 - $k[$j++] = 'ais1'; //#27378 - if ($_.ais.length > 1) { //#27378 - $k[$j++] = $get($_.ais, 1); //#27378 - } else { //#27378 - $k[$j++] = -1; //#27378 - } //#27378 - var _3Y = $k[--$j]; //#27378 - $_[$k[--$j]] = _3Y; //#27378 - $k[$j++] = 'vals1'; //#27379 - if ($_.vals.length > 1) { //#27379 - $k[$j++] = $get($_.vals, 1); //#27379 - } else { //#27379 - $k[$j++] = -1; //#27379 - } //#27379 - var _3d = $k[--$j]; //#27379 - $_[$k[--$j]] = _3d; //#27379 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27383 - $k[$j++] = Infinity; //#27381 - $aload($_.cdf); //#27381 - if ($eq($_.ais1, "21")) { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 0; //#27381 - } else { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 1; //#27381 - } //#27381 - $_.cdf = $a(); //#27381 - } else { //#27383 - $k[$j++] = Infinity; //#27383 - $aload($_.cdf); //#27383 - $k[$j++] = 0; //#27383 - $_.cdf = $a(); //#27383 - } //#27383 - $k[$j++] = 'nval'; //#27385 - if ($_.npre != 0) { //#27385 - $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27385 - } else { //#27385 - $k[$j++] = 0; //#27385 - } //#27385 - var _3q = $k[--$j]; //#27385 - $_[$k[--$j]] = _3q; //#27385 - $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27386 - if ($k[--$j]) { //#27390 - var _3w = $k[--$j]; //#27387 - var _3x = $k[--$j]; //#27387 - $k[$j++] = _3w.length; //#27387 - $k[$j++] = _3x; //#27387 - $j--; //#27387 - var _3y = $k[--$j]; //#27387 - var _3z = $k[--$j]; //#27387 - $k[$j++] = _3y; //#27387 - $k[$j++] = _3z; //#27387 - $j--; //#27387 - $_.aval = $k[--$j]; //#27388 - } else { //#27390 - $j--; //#27390 - $_.aval = -1; //#27390 - } //#27390 - if (($_.nval < 31) && ($_.aval != -1)) { //#27416 - var _44 = $strcpy($s(5), "00000"); //#27393 - var _47 = $cvrs($s(5), $_.nval, 2); //#27393 - $puti(_44, 5 - _47.length, _47); //#27394 - $k[$j++] = _44; //#27395 - $k[$j++] = Infinity; //#27395 - var _48 = $k[--$j]; //#27395 - var _49 = $k[--$j]; //#27395 - $k[$j++] = _48; //#27395 - $forall(_49, function() { //#27395 - var _4A = $k[--$j]; //#27395 - $k[$j++] = $f(_4A - 48); //#27395 - }); //#27395 - $_.nbits = $a(); //#27395 - var _4D = $strcpy($s(4), "0000"); //#27396 - var _4G = $cvrs($s(4), $_.aval, 2); //#27396 - $puti(_4D, 4 - _4G.length, _4G); //#27397 - $k[$j++] = _4D; //#27398 - $k[$j++] = Infinity; //#27398 - var _4H = $k[--$j]; //#27398 - var _4I = $k[--$j]; //#27398 - $k[$j++] = _4H; //#27398 - $forall(_4I, function() { //#27398 - var _4J = $k[--$j]; //#27398 - $k[$j++] = $f(_4J - 48); //#27398 - }); //#27398 - $_.abits = $a(); //#27398 - $k[$j++] = Infinity; //#27402 - $aload($_.cdf); //#27400 - $aload($_.nbits); //#27401 - $aload($_.abits); //#27402 - $_.cdf = $a(); //#27402 - } else { //#27416 - var _4Q = $strcpy($s(10), "0000000000"); //#27405 - var _4T = $cvrs($s(10), $_.nval, 2); //#27405 - $puti(_4Q, 10 - _4T.length, _4T); //#27406 - $k[$j++] = _4Q; //#27407 - $k[$j++] = Infinity; //#27407 - var _4U = $k[--$j]; //#27407 - var _4V = $k[--$j]; //#27407 - $k[$j++] = _4U; //#27407 - $forall(_4V, function() { //#27407 - var _4W = $k[--$j]; //#27407 - $k[$j++] = $f(_4W - 48); //#27407 - }); //#27407 - $_.nbits = $a(); //#27407 - var _4Z = $strcpy($s(5), "00000"); //#27408 - var _4e = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27408 - $puti(_4Z, 5 - _4e.length, _4e); //#27409 - $k[$j++] = _4Z; //#27410 - $k[$j++] = Infinity; //#27410 - var _4f = $k[--$j]; //#27410 - var _4g = $k[--$j]; //#27410 - $k[$j++] = _4f; //#27410 - $forall(_4g, function() { //#27410 - var _4h = $k[--$j]; //#27410 - $k[$j++] = $f(_4h - 48); //#27410 - }); //#27410 - $_.abits = $a(); //#27410 - $k[$j++] = Infinity; //#27415 - $aload($_.cdf); //#27412 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $aload($_.nbits); //#27414 - $aload($_.abits); //#27415 - $_.cdf = $a(); //#27415 - } //#27416 - if ($ne($_.mode, "alpha")) { //#27434 - $k[$j++] = Infinity; //#27419 - $forall($_.ai90rem); //#27419 - if ($_.ais.length > 1) { //#27419 - $k[$j++] = $_.fnc1; //#27419 - } //#27419 - $_.gpf = $a(); //#27419 - } else { //#27434 - $k[$j++] = Infinity; //#27421 - $forall($_.ai90rem); //#27421 - if ($_.ais.length > 1) { //#27421 - $k[$j++] = $_.fnc1; //#27421 - } //#27421 - $_.in = $a(); //#27421 - $_.out = $a($_.in.length * 6); //#27422 - $_.j = 0; //#27423 - for (var _50 = 0, _4z = $_.in.length - 1; _50 <= _4z; _50 += 1) { //#27428 - var _54 = $get($_.alpha, $get($_.in, _50)); //#27425 - $k[$j++] = _54; //#27426 - $k[$j++] = _54; //#27426 - $k[$j++] = Infinity; //#27426 - var _55 = $k[--$j]; //#27426 - var _56 = $k[--$j]; //#27426 - $k[$j++] = _55; //#27426 - $forall(_56, function() { //#27426 - var _57 = $k[--$j]; //#27426 - $k[$j++] = $f(_57 - 48); //#27426 - }); //#27426 - $puti($_.out, $_.j, $a()); //#27426 - $_.j = $k[--$j].length + $_.j; //#27427 - } //#27427 - $k[$j++] = Infinity; //#27431 - $aload($_.cdf); //#27430 - $aload($geti($_.out, 0, $_.j)); //#27431 - $_.cdf = $a(); //#27431 - $_.gpf = $a([]); //#27433 - if ($_.ais.length > 1) { //#27434 - $_.mode = "numeric"; //#27434 - } //#27434 - } //#27434 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27436 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27437 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27438 - if ($_.ais.length != 0) { //#27450 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27449 - $k[$j++] = Infinity; //#27443 - $aload($_.gpf); //#27442 - $forall($_.vals1); //#27443 - $_.gpf = $a(); //#27443 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27445 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27446 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27447 - if ($_.ais.length != 0) { //#27448 - $k[$j++] = Infinity; //#27448 - $aload($_.gpf); //#27448 - $k[$j++] = $_.fnc1; //#27448 - $_.gpf = $a(); //#27448 - } //#27448 - } //#27448 - } //#27448 - } //#27448 - if ($eq($_.method, "0")) { //#27457 - $_.cdf = $a([0]); //#27454 - $_.gpf = $a([]); //#27455 - $_.mode = "numeric"; //#27456 - } //#27456 - for (var _5r = 0, _5q = $_.ais.length - 1; _5r <= _5q; _5r += 1) { //#27475 - $_.i = _5r; //#27461 - $_.ai = $get($_.ais, $_.i); //#27462 - $_.val = $get($_.vals, $_.i); //#27463 - var _61 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27464 - $puti(_61, 0, $_.gpf); //#27465 - $k[$j++] = _61; //#27466 - $k[$j++] = _61; //#27466 - $k[$j++] = $_.gpf.length; //#27466 - $k[$j++] = $_.ai; //#27466 - $k[$j++] = Infinity; //#27466 - var _65 = $k[--$j]; //#27466 - var _66 = $k[--$j]; //#27466 - $k[$j++] = _65; //#27466 - $forall(_66); //#27466 - var _67 = $a(); //#27466 - var _68 = $k[--$j]; //#27466 - $puti($k[--$j], _68, _67); //#27466 - var _6A = $k[--$j]; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = $_.gpf.length + $_.ai.length; //#27467 - $k[$j++] = $_.val; //#27467 - $k[$j++] = Infinity; //#27467 - var _6E = $k[--$j]; //#27467 - var _6F = $k[--$j]; //#27467 - $k[$j++] = _6E; //#27467 - $forall(_6F); //#27467 - var _6G = $a(); //#27467 - var _6H = $k[--$j]; //#27467 - $puti($k[--$j], _6H, _6G); //#27467 - $_.gpf = $k[--$j]; //#27468 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27474 - var _6Q = $a($_.gpf.length + 1); //#27470 - $puti(_6Q, 0, $_.gpf); //#27471 - $put(_6Q, $_.gpf.length, $_.fnc1); //#27472 - $_.gpf = _6Q; //#27473 - } //#27473 - } //#27473 - if (!bwipp_gs1_cc.__27491__) { //#27491 - $_ = Object.create($_); //#27491 - var _6c = new Map([ + var _1L = $s($k[--$j]); //#27592 + $k[$j++] = _1L; //#27592 + for (var _1N = 0, _1M = _1L.length - 1; _1N <= _1M; _1N += 1) { //#27592 + var _1O = $k[--$j]; //#27592 + $put(_1O, _1N, 48); //#27592 + $k[$j++] = _1O; //#27592 + } //#27592 + var _1P = $k[--$j]; //#27593 + var _1S = $cvrs($s(_1P.length), $k[--$j], 2); //#27593 + $puti(_1P, _1P.length - _1S.length, _1S); //#27593 + $k[$j++] = _1P; //#27593 + }; //#27593 + if (!bwipp_gs1_cc.__27644__) { //#27644 + $_ = Object.create($_); //#27644 + $_.fnc1 = -1; //#27598 + $_.lnumeric = -2; //#27598 + $_.lalphanumeric = -3; //#27598 + $_.liso646 = -4; //#27598 + $k[$j++] = Infinity; //#27600 + for (var _1T = 65; _1T <= 90; _1T += 1) { //#27601 + $k[$j++] = _1T; //#27601 + $k[$j++] = _1T - 65; //#27601 + $k[$j++] = 5; //#27601 + $_.tobin(); //#27601 + } //#27601 + for (var _1U = 48; _1U <= 57; _1U += 1) { //#27602 + $k[$j++] = _1U; //#27602 + $k[$j++] = _1U + 4; //#27602 + $k[$j++] = 6; //#27602 + $_.tobin(); //#27602 + } //#27602 + $k[$j++] = $_.fnc1; //#27603 + $k[$j++] = "11111"; //#27603 + $_.alpha = $d(); //#27604 + $k[$j++] = Infinity; //#27606 + for (var _1X = 0; _1X <= 119; _1X += 1) { //#27615 + var _1Z = $strcpy($s(2), "00"); //#27608 + var _1b = $cvrs($s(2), _1X, 11); //#27608 + $puti(_1Z, 2 - _1b.length, _1b); //#27609 + $k[$j++] = _1X; //#27610 + $k[$j++] = _1Z; //#27610 + if ($get(_1Z, 0) == 65) { //#27610 + var _1d = $k[--$j]; //#27610 + $put(_1d, 0, 94); //#27610 + $k[$j++] = _1d; //#27610 + } //#27610 + var _1e = $k[--$j]; //#27611 + $k[$j++] = _1e; //#27611 + if ($get(_1e, 1) == 65) { //#27611 + var _1g = $k[--$j]; //#27611 + $put(_1g, 1, 94); //#27611 + $k[$j++] = _1g; //#27611 + } //#27611 + var _1h = $k[--$j]; //#27612 + var _1k = $strcpy($s(7), "0000000"); //#27613 + var _1m = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27613 + $puti(_1k, 7 - _1m.length, _1m); //#27614 + $k[$j++] = _1h; //#27614 + $k[$j++] = _1k; //#27614 + } //#27614 + $k[$j++] = $_.lalphanumeric; //#27616 + $k[$j++] = "0000"; //#27616 + $_.numeric = $d(); //#27617 + $k[$j++] = Infinity; //#27619 + for (var _1p = 48; _1p <= 57; _1p += 1) { //#27620 + $k[$j++] = _1p; //#27620 + $k[$j++] = _1p - 43; //#27620 + $k[$j++] = 5; //#27620 + $_.tobin(); //#27620 + } //#27620 + $k[$j++] = $_.fnc1; //#27622 + $k[$j++] = "01111"; //#27622 + for (var _1r = 65; _1r <= 90; _1r += 1) { //#27622 + $k[$j++] = _1r; //#27622 + $k[$j++] = _1r - 33; //#27622 + $k[$j++] = 6; //#27622 + $_.tobin(); //#27622 + } //#27622 + $k[$j++] = 42; //#27624 + $k[$j++] = "111010"; //#27624 + for (var _1s = 44; _1s <= 47; _1s += 1) { //#27624 + $k[$j++] = _1s; //#27624 + $k[$j++] = _1s + 15; //#27624 + $k[$j++] = 6; //#27624 + $_.tobin(); //#27624 + } //#27624 + $k[$j++] = $_.lnumeric; //#27626 + $k[$j++] = "000"; //#27626 + $k[$j++] = $_.liso646; //#27626 + $k[$j++] = "00100"; //#27626 + $_.alphanumeric = $d(); //#27627 + $k[$j++] = Infinity; //#27629 + for (var _1w = 48; _1w <= 57; _1w += 1) { //#27630 + $k[$j++] = _1w; //#27630 + $k[$j++] = _1w - 43; //#27630 + $k[$j++] = 5; //#27630 + $_.tobin(); //#27630 + } //#27630 + $k[$j++] = $_.fnc1; //#27632 + $k[$j++] = "01111"; //#27632 + for (var _1y = 65; _1y <= 90; _1y += 1) { //#27632 + $k[$j++] = _1y; //#27632 + $k[$j++] = _1y - 1; //#27632 + $k[$j++] = 7; //#27632 + $_.tobin(); //#27632 + } //#27632 + for (var _1z = 97; _1z <= 122; _1z += 1) { //#27633 + $k[$j++] = _1z; //#27633 + $k[$j++] = _1z - 7; //#27633 + $k[$j++] = 7; //#27633 + $_.tobin(); //#27633 + } //#27633 + $k[$j++] = 33; //#27636 + $k[$j++] = "11101000"; //#27636 + $k[$j++] = 34; //#27636 + $k[$j++] = "11101001"; //#27636 + for (var _20 = 37; _20 <= 47; _20 += 1) { //#27636 + $k[$j++] = _20; //#27636 + $k[$j++] = _20 + 197; //#27636 + $k[$j++] = 8; //#27636 + $_.tobin(); //#27636 + } //#27636 + for (var _21 = 58; _21 <= 63; _21 += 1) { //#27637 + $k[$j++] = _21; //#27637 + $k[$j++] = _21 + 187; //#27637 + $k[$j++] = 8; //#27637 + $_.tobin(); //#27637 + } //#27637 + $k[$j++] = 95; //#27641 + $k[$j++] = "11111011"; //#27641 + $k[$j++] = 32; //#27641 + $k[$j++] = "11111100"; //#27641 + $k[$j++] = $_.lnumeric; //#27641 + $k[$j++] = "000"; //#27641 + $k[$j++] = $_.lalphanumeric; //#27641 + $k[$j++] = "00100"; //#27641 + $_.iso646 = $d(); //#27642 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27642 + bwipp_gs1_cc.__27644__ = 1; //#27642 + $_ = Object.getPrototypeOf($_); //#27642 + } //#27642 + if ($eq($_.method, "10")) { //#27679 + if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27662 + var _2C = $get($_.vals, 0); //#27648 + var _2H = $strcpy($s(16), "0000000000000000"); //#27652 + var _2J = $cvrs($s(16), ($cvi($geti(_2C, 0, 2)) * 384) + ((($cvi($geti(_2C, 2, 2)) - 1) * 32) + $cvi($geti(_2C, 4, 2))), 2); //#27652 + $puti(_2H, 16 - _2J.length, _2J); //#27653 + $k[$j++] = _2H; //#27656 + $k[$j++] = Infinity; //#27654 + var _2K = $k[--$j]; //#27655 + var _2L = $k[--$j]; //#27655 + $k[$j++] = _2K; //#27655 + $k[$j++] = 1; //#27655 + $k[$j++] = 0; //#27655 + $forall(_2L, function() { //#27655 + var _2M = $k[--$j]; //#27655 + $k[$j++] = $f(_2M - 48); //#27655 + }); //#27655 + var _2P = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27656 + $k[$j++] = _2P; //#27656 + $_.cdf = $a(); //#27657 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27658 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27659 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27660 + } else { //#27662 + $_.cdf = $a([1, 0, 1, 1]); //#27662 + } //#27662 + if ($_.ais.length != 0) { //#27676 + if ($eq($get($_.ais, 0), "10")) { //#27672 + $k[$j++] = Infinity; //#27666 + $forall($get($_.vals, 0)); //#27666 + $_.gpf = $a(); //#27666 + if ($_.ais.length > 1) { //#27667 + $k[$j++] = Infinity; //#27667 + $aload($_.gpf); //#27667 + $k[$j++] = $_.fnc1; //#27667 + $_.gpf = $a(); //#27667 + } //#27667 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27668 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27669 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27670 + } else { //#27672 + $_.gpf = $a([$_.fnc1]); //#27672 + } //#27672 + } else { //#27676 + $k[$j++] = Infinity; //#27675 + $aload($_.cdf); //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $_.cdf = $a(); //#27675 + $_.gpf = $a([]); //#27676 + } //#27676 + $_.mode = "numeric"; //#27678 + } //#27678 + if ($eq($_.method, "11")) { //#27773 + $_.cdf = $a([1, 1]); //#27682 + $_.ai90 = $get($_.vals, 0); //#27683 + if ($f($_.npre + 1) != $_.ai90.length) { //#27687 + $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27685 + } else { //#27687 + $k[$j++] = ""; //#27687 + } //#27687 + $_.ai90rem = $k[--$j]; //#27689 + $k[$j++] = 'nalpha'; //#27690 + $k[$j++] = 0; //#27690 + $forall($_.ai90rem, function() { //#27690 + var _3C = $k[--$j]; //#27690 + if ((_3C >= 65) && (_3C <= 90)) { //#27690 + var _3D = $k[--$j]; //#27690 + $k[$j++] = $f(_3D + 1); //#27690 + } //#27690 + }); //#27690 + var _3E = $k[--$j]; //#27690 + $_[$k[--$j]] = _3E; //#27690 + $k[$j++] = 'nnums'; //#27691 + $k[$j++] = 0; //#27691 + $forall($_.ai90rem, function() { //#27691 + var _3H = $k[--$j]; //#27691 + if ((_3H >= 48) && (_3H <= 57)) { //#27691 + var _3I = $k[--$j]; //#27691 + $k[$j++] = $f(_3I + 1); //#27691 + } //#27691 + }); //#27691 + var _3J = $k[--$j]; //#27691 + $_[$k[--$j]] = _3J; //#27691 + $k[$j++] = 'mode'; //#27692 + if ($gt($_.nalpha, $_.nnums)) { //#27692 + $k[$j++] = "alpha"; //#27692 + } else { //#27692 + if ($_.nalpha == 0) { //#27692 + $k[$j++] = "numeric"; //#27692 + } else { //#27692 + $k[$j++] = "alphanumeric"; //#27692 + } //#27692 + } //#27692 + var _3O = $k[--$j]; //#27692 + $_[$k[--$j]] = _3O; //#27692 + if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27693 + $_.mode = "alphanumeric"; //#27693 + } //#27693 + $k[$j++] = Infinity; //#27694 + $aload($_.cdf); //#27695 + if ($eq($_.mode, "alphanumeric")) { //#27696 + $k[$j++] = 0; //#27696 + } //#27696 + if ($eq($_.mode, "numeric")) { //#27697 + $k[$j++] = 1; //#27697 + $k[$j++] = 0; //#27697 + } //#27697 + if ($eq($_.mode, "alpha")) { //#27698 + $k[$j++] = 1; //#27698 + $k[$j++] = 1; //#27698 + } //#27698 + $_.cdf = $a(); //#27698 + $k[$j++] = 'ais1'; //#27700 + if ($_.ais.length > 1) { //#27700 + $k[$j++] = $get($_.ais, 1); //#27700 + } else { //#27700 + $k[$j++] = -1; //#27700 + } //#27700 + var _3b = $k[--$j]; //#27700 + $_[$k[--$j]] = _3b; //#27700 + $k[$j++] = 'vals1'; //#27701 + if ($_.vals.length > 1) { //#27701 + $k[$j++] = $get($_.vals, 1); //#27701 + } else { //#27701 + $k[$j++] = -1; //#27701 + } //#27701 + var _3g = $k[--$j]; //#27701 + $_[$k[--$j]] = _3g; //#27701 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27705 + $k[$j++] = Infinity; //#27703 + $aload($_.cdf); //#27703 + if ($eq($_.ais1, "21")) { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 0; //#27703 + } else { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 1; //#27703 + } //#27703 + $_.cdf = $a(); //#27703 + } else { //#27705 + $k[$j++] = Infinity; //#27705 + $aload($_.cdf); //#27705 + $k[$j++] = 0; //#27705 + $_.cdf = $a(); //#27705 + } //#27705 + $k[$j++] = 'nval'; //#27707 + if ($_.npre != 0) { //#27707 + $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27707 + } else { //#27707 + $k[$j++] = 0; //#27707 + } //#27707 + var _3t = $k[--$j]; //#27707 + $_[$k[--$j]] = _3t; //#27707 + $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27708 + if ($k[--$j]) { //#27712 + var _3z = $k[--$j]; //#27709 + var _40 = $k[--$j]; //#27709 + $k[$j++] = _3z.length; //#27709 + $k[$j++] = _40; //#27709 + $j--; //#27709 + var _41 = $k[--$j]; //#27709 + var _42 = $k[--$j]; //#27709 + $k[$j++] = _41; //#27709 + $k[$j++] = _42; //#27709 + $j--; //#27709 + $_.aval = $k[--$j]; //#27710 + } else { //#27712 + $j--; //#27712 + $_.aval = -1; //#27712 + } //#27712 + if (($_.nval < 31) && ($_.aval != -1)) { //#27738 + var _47 = $strcpy($s(5), "00000"); //#27715 + var _4A = $cvrs($s(5), $_.nval, 2); //#27715 + $puti(_47, 5 - _4A.length, _4A); //#27716 + $k[$j++] = _47; //#27717 + $k[$j++] = Infinity; //#27717 + var _4B = $k[--$j]; //#27717 + var _4C = $k[--$j]; //#27717 + $k[$j++] = _4B; //#27717 + $forall(_4C, function() { //#27717 + var _4D = $k[--$j]; //#27717 + $k[$j++] = $f(_4D - 48); //#27717 + }); //#27717 + $_.nbits = $a(); //#27717 + var _4G = $strcpy($s(4), "0000"); //#27718 + var _4J = $cvrs($s(4), $_.aval, 2); //#27718 + $puti(_4G, 4 - _4J.length, _4J); //#27719 + $k[$j++] = _4G; //#27720 + $k[$j++] = Infinity; //#27720 + var _4K = $k[--$j]; //#27720 + var _4L = $k[--$j]; //#27720 + $k[$j++] = _4K; //#27720 + $forall(_4L, function() { //#27720 + var _4M = $k[--$j]; //#27720 + $k[$j++] = $f(_4M - 48); //#27720 + }); //#27720 + $_.abits = $a(); //#27720 + $k[$j++] = Infinity; //#27721 + $aload($_.cdf); //#27722 + $aload($_.nbits); //#27723 + $aload($_.abits); //#27724 + $_.cdf = $a(); //#27724 + } else { //#27738 + var _4T = $strcpy($s(10), "0000000000"); //#27727 + var _4W = $cvrs($s(10), $_.nval, 2); //#27727 + $puti(_4T, 10 - _4W.length, _4W); //#27728 + $k[$j++] = _4T; //#27729 + $k[$j++] = Infinity; //#27729 + var _4X = $k[--$j]; //#27729 + var _4Y = $k[--$j]; //#27729 + $k[$j++] = _4X; //#27729 + $forall(_4Y, function() { //#27729 + var _4Z = $k[--$j]; //#27729 + $k[$j++] = $f(_4Z - 48); //#27729 + }); //#27729 + $_.nbits = $a(); //#27729 + var _4c = $strcpy($s(5), "00000"); //#27730 + var _4h = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27730 + $puti(_4c, 5 - _4h.length, _4h); //#27731 + $k[$j++] = _4c; //#27732 + $k[$j++] = Infinity; //#27732 + var _4i = $k[--$j]; //#27732 + var _4j = $k[--$j]; //#27732 + $k[$j++] = _4i; //#27732 + $forall(_4j, function() { //#27732 + var _4k = $k[--$j]; //#27732 + $k[$j++] = $f(_4k - 48); //#27732 + }); //#27732 + $_.abits = $a(); //#27732 + $k[$j++] = Infinity; //#27733 + $aload($_.cdf); //#27734 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $aload($_.nbits); //#27736 + $aload($_.abits); //#27737 + $_.cdf = $a(); //#27737 + } //#27738 + if ($ne($_.mode, "alpha")) { //#27756 + $k[$j++] = Infinity; //#27741 + $forall($_.ai90rem); //#27741 + if ($_.ais.length > 1) { //#27741 + $k[$j++] = $_.fnc1; //#27741 + } //#27741 + $_.gpf = $a(); //#27741 + } else { //#27756 + $k[$j++] = Infinity; //#27743 + $forall($_.ai90rem); //#27743 + if ($_.ais.length > 1) { //#27743 + $k[$j++] = $_.fnc1; //#27743 + } //#27743 + $_.in = $a(); //#27743 + $_.out = $a($_.in.length * 6); //#27744 + $_.j = 0; //#27745 + for (var _53 = 0, _52 = $_.in.length - 1; _53 <= _52; _53 += 1) { //#27750 + var _57 = $get($_.alpha, $get($_.in, _53)); //#27747 + $k[$j++] = _57; //#27748 + $k[$j++] = _57; //#27748 + $k[$j++] = Infinity; //#27748 + var _58 = $k[--$j]; //#27748 + var _59 = $k[--$j]; //#27748 + $k[$j++] = _58; //#27748 + $forall(_59, function() { //#27748 + var _5A = $k[--$j]; //#27748 + $k[$j++] = $f(_5A - 48); //#27748 + }); //#27748 + $puti($_.out, $_.j, $a()); //#27748 + $_.j = $k[--$j].length + $_.j; //#27749 + } //#27749 + $k[$j++] = Infinity; //#27751 + $aload($_.cdf); //#27752 + $aload($geti($_.out, 0, $_.j)); //#27753 + $_.cdf = $a(); //#27753 + $_.gpf = $a([]); //#27755 + if ($_.ais.length > 1) { //#27756 + $_.mode = "numeric"; //#27756 + } //#27756 + } //#27756 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27758 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27759 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27760 + if ($_.ais.length != 0) { //#27772 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27771 + $k[$j++] = Infinity; //#27763 + $aload($_.gpf); //#27764 + $forall($_.vals1); //#27765 + $_.gpf = $a(); //#27765 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27767 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27768 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27769 + if ($_.ais.length != 0) { //#27770 + $k[$j++] = Infinity; //#27770 + $aload($_.gpf); //#27770 + $k[$j++] = $_.fnc1; //#27770 + $_.gpf = $a(); //#27770 + } //#27770 + } //#27770 + } //#27770 + } //#27770 + if ($eq($_.method, "0")) { //#27779 + $_.cdf = $a([0]); //#27776 + $_.gpf = $a([]); //#27777 + $_.mode = "numeric"; //#27778 + } //#27778 + for (var _5u = 0, _5t = $_.ais.length - 1; _5u <= _5t; _5u += 1) { //#27797 + $_.i = _5u; //#27783 + $_.ai = $get($_.ais, $_.i); //#27784 + $_.val = $get($_.vals, $_.i); //#27785 + var _64 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27786 + $puti(_64, 0, $_.gpf); //#27787 + $k[$j++] = _64; //#27788 + $k[$j++] = _64; //#27788 + $k[$j++] = $_.gpf.length; //#27788 + $k[$j++] = $_.ai; //#27788 + $k[$j++] = Infinity; //#27788 + var _68 = $k[--$j]; //#27788 + var _69 = $k[--$j]; //#27788 + $k[$j++] = _68; //#27788 + $forall(_69); //#27788 + var _6A = $a(); //#27788 + var _6B = $k[--$j]; //#27788 + $puti($k[--$j], _6B, _6A); //#27788 + var _6D = $k[--$j]; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = $_.gpf.length + $_.ai.length; //#27789 + $k[$j++] = $_.val; //#27789 + $k[$j++] = Infinity; //#27789 + var _6H = $k[--$j]; //#27789 + var _6I = $k[--$j]; //#27789 + $k[$j++] = _6H; //#27789 + $forall(_6I); //#27789 + var _6J = $a(); //#27789 + var _6K = $k[--$j]; //#27789 + $puti($k[--$j], _6K, _6J); //#27789 + $_.gpf = $k[--$j]; //#27790 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27796 + var _6T = $a($_.gpf.length + 1); //#27792 + $puti(_6T, 0, $_.gpf); //#27793 + $put(_6T, $_.gpf.length, $_.fnc1); //#27794 + $_.gpf = _6T; //#27795 + } //#27795 + } //#27795 + if (!bwipp_gs1_cc.__27813__) { //#27813 + $_ = Object.create($_); //#27813 + var _6f = new Map([ ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] - ]); //#27488 - $_.bitcapsmaps = _6c; //#27490 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27490 - bwipp_gs1_cc.__27491__ = 1; //#27490 - $_ = Object.getPrototypeOf($_); //#27490 - } //#27490 + ]); //#27810 + $_.bitcapsmaps = _6f; //#27812 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27812 + bwipp_gs1_cc.__27813__ = 1; //#27812 + $_ = Object.getPrototypeOf($_); //#27812 + } //#27812 $_.rembits = function() { - $_.used = $k[--$j]; //#27494 - if ($ne($_.ccversion, "c")) { //#27517 - $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27496 - $k[$j++] = -1; //#27497 - $forall($_.bitcaps, function() { //#27497 - var _6m = $k[--$j]; //#27497 - $k[$j++] = _6m; //#27497 - if ($ge(_6m, $_.used)) { //#27497 - var _6o = $k[--$j]; //#27497 - var _6p = $k[--$j]; //#27497 - $k[$j++] = _6o; //#27497 - $k[$j++] = _6p; //#27497 - } //#27497 - $j--; //#27497 - }); //#27497 - var _6q = $k[--$j]; //#27498 - $k[$j++] = _6q; //#27498 - if (_6q != -1) { //#27498 - var _6s = $k[--$j]; //#27498 - $k[$j++] = $f(_6s - $_.used); //#27498 - } //#27498 - } else { //#27517 - var _6t = new Map([ + $_.used = $k[--$j]; //#27816 + if ($ne($_.ccversion, "c")) { //#27839 + $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27818 + $k[$j++] = -1; //#27819 + $forall($_.bitcaps, function() { //#27819 + var _6p = $k[--$j]; //#27819 + $k[$j++] = _6p; //#27819 + if ($ge(_6p, $_.used)) { //#27819 + var _6r = $k[--$j]; //#27819 + var _6s = $k[--$j]; //#27819 + $k[$j++] = _6r; //#27819 + $k[$j++] = _6s; //#27819 + } //#27819 + $j--; //#27819 + }); //#27819 + var _6t = $k[--$j]; //#27820 + $k[$j++] = _6t; //#27820 + if (_6t != -1) { //#27820 + var _6v = $k[--$j]; //#27820 + $k[$j++] = $f(_6v - $_.used); //#27820 + } //#27820 + } else { //#27839 + var _6w = new Map([ ["c", -1] - ]); //#27500 - var _6v = $get(_6t, $_.ccversion); //#27500 - var _6x = ~~Math.ceil($_.used / 8); //#27501 - $_.m = ((~~(_6x / 6)) * 5) + (_6x % 6); //#27501 - if ($_.m <= 40) { //#27502 - $k[$j++] = 8; //#27502 - } //#27502 - if (($_.m >= 41) && ($_.m <= 160)) { //#27503 - $k[$j++] = 16; //#27503 - } //#27503 - if (($_.m >= 161) && ($_.m <= 320)) { //#27504 - $k[$j++] = 32; //#27504 - } //#27504 - if (($_.m >= 321) && ($_.m <= 833)) { //#27505 - $k[$j++] = 64; //#27505 - } //#27505 - if ($_.m >= 834) { //#27506 - $k[$j++] = 32; //#27506 - } //#27506 - $_.eccws = $k[--$j]; //#27507 - $_.m = $f($f($_.m + $_.eccws) + 3); //#27508 - if ($_.cccolumns > 30) { //#27509 - $_.cccolumns = 30; //#27509 - } //#27509 - for (;;) { //#27513 - if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27511 - break; //#27511 - } //#27511 - $_.cccolumns = $_.cccolumns + 1; //#27512 - } //#27512 - $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27514 - if ($_.r < 3) { //#27515 - $_.r = 3; //#27515 - } //#27515 - var _7K = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27516 - $_.tgt = ($f(((~~(_7K / 5)) * 6) + (_7K % 5))) * 8; //#27516 - if ($_.used <= 8304) { //#27517 - $k[$j++] = $f($_.tgt - $_.used); //#27517 - } else { //#27517 - $k[$j++] = -1; //#27517 - } //#27517 - } //#27517 - var _7O = $k[--$j]; //#27519 - $k[$j++] = _7O; //#27532 - if (_7O == -1) { //#27532 - $j--; //#27520 - if ($eq($_.ccversion, "a")) { //#27528 - $_.ccversion = "b"; //#27522 - } else { //#27528 - if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27528 - $_.ccversion = "c"; //#27525 - $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27526 - } else { //#27528 - $_.ccversion = -1; //#27528 - } //#27528 - } //#27528 - $k[$j++] = $_.used; //#27531 - $_.rembits(); //#27531 - } //#27531 - }; //#27531 + ]); //#27822 + var _6y = $get(_6w, $_.ccversion); //#27822 + var _70 = ~~Math.ceil($_.used / 8); //#27823 + $_.m = ((~~(_70 / 6)) * 5) + (_70 % 6); //#27823 + if ($_.m <= 40) { //#27824 + $k[$j++] = 8; //#27824 + } //#27824 + if (($_.m >= 41) && ($_.m <= 160)) { //#27825 + $k[$j++] = 16; //#27825 + } //#27825 + if (($_.m >= 161) && ($_.m <= 320)) { //#27826 + $k[$j++] = 32; //#27826 + } //#27826 + if (($_.m >= 321) && ($_.m <= 833)) { //#27827 + $k[$j++] = 64; //#27827 + } //#27827 + if ($_.m >= 834) { //#27828 + $k[$j++] = 32; //#27828 + } //#27828 + $_.eccws = $k[--$j]; //#27829 + $_.m = $f($f($_.m + $_.eccws) + 3); //#27830 + if ($_.cccolumns > 30) { //#27831 + $_.cccolumns = 30; //#27831 + } //#27831 + for (;;) { //#27835 + if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27833 + break; //#27833 + } //#27833 + $_.cccolumns = $_.cccolumns + 1; //#27834 + } //#27834 + $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27836 + if ($_.r < 3) { //#27837 + $_.r = 3; //#27837 + } //#27837 + var _7N = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27838 + $_.tgt = ($f(((~~(_7N / 5)) * 6) + (_7N % 5))) * 8; //#27838 + if ($_.used <= 8304) { //#27839 + $k[$j++] = $f($_.tgt - $_.used); //#27839 + } else { //#27839 + $k[$j++] = -1; //#27839 + } //#27839 + } //#27839 + var _7R = $k[--$j]; //#27841 + $k[$j++] = _7R; //#27854 + if (_7R == -1) { //#27854 + $j--; //#27842 + if ($eq($_.ccversion, "a")) { //#27850 + $_.ccversion = "b"; //#27844 + } else { //#27850 + if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27850 + $_.ccversion = "c"; //#27847 + $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27848 + } else { //#27850 + $_.ccversion = -1; //#27850 + } //#27850 + } //#27850 + $k[$j++] = $_.used; //#27853 + $_.rembits(); //#27853 + } //#27853 + }; //#27853 $_.encode = function() { - var _7U = $k[--$j]; //#27536 - $k[$j++] = _7U; //#27536 - if ($ne(_7U, 'raw')) { //#27536 - var _7V = $k[--$j]; //#27536 - var _7X = $get(_7V, $k[--$j]); //#27536 - $k[$j++] = _7X; //#27536 - } else { //#27536 - $j--; //#27536 - } //#27536 - $k[$j++] = Infinity; //#27537 - var _7Y = $k[--$j]; //#27537 - var _7Z = $k[--$j]; //#27537 - $k[$j++] = _7Y; //#27537 - $forall(_7Z, function() { //#27537 - var _7a = $k[--$j]; //#27537 - $k[$j++] = $f(_7a - 48); //#27537 - }); //#27537 - var _7b = $a(); //#27537 - $puti($_.gpfenc, $_.j, _7b); //#27539 - $_.j = _7b.length + $_.j; //#27540 - }; //#27540 - $k[$j++] = Infinity; //#27544 - for (var _7g = 0, _7h = $_.gpf.length; _7g < _7h; _7g++) { //#27544 - $k[$j++] = 0; //#27544 - } //#27544 - $k[$j++] = 0; //#27544 - $k[$j++] = -1; //#27544 - $_.numericruns = $a(); //#27544 - $k[$j++] = Infinity; //#27545 - for (var _7k = 0, _7l = $_.gpf.length; _7k < _7l; _7k++) { //#27545 - $k[$j++] = 0; //#27545 - } //#27545 - $k[$j++] = 0; //#27545 - $_.alphanumericruns = $a(); //#27545 - $k[$j++] = Infinity; //#27546 - for (var _7o = 0, _7p = $_.gpf.length; _7o < _7p; _7o++) { //#27546 - $k[$j++] = 0; //#27546 - } //#27546 - $k[$j++] = 9999; //#27546 - $_.nextiso646only = $a(); //#27546 - for (var _7s = $_.gpf.length - 1; _7s >= 0; _7s -= 1) { //#27568 - $_.i = _7s; //#27548 - var _7x = $strcpy($s(2), "00"); //#27550 - var _80 = $get($_.gpf, $_.i); //#27551 - $k[$j++] = $get($_.gpf, $_.i); //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = 0; //#27551 - $k[$j++] = _80; //#27551 - if (_80 == $_.fnc1) { //#27551 - $j--; //#27551 - $k[$j++] = 94; //#27551 - } //#27551 - var _82 = $k[--$j]; //#27551 - var _83 = $k[--$j]; //#27551 - $put($k[--$j], _83, _82); //#27551 - if ($_.i < ($_.gpf.length - 1)) { //#27552 - var _87 = $k[--$j]; //#27552 - var _8A = $get($_.gpf, $_.i + 1); //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = 1; //#27552 - $k[$j++] = _8A; //#27552 - if (_8A == $_.fnc1) { //#27552 - $j--; //#27552 - $k[$j++] = 94; //#27552 - } //#27552 - var _8C = $k[--$j]; //#27552 - var _8D = $k[--$j]; //#27552 - $put($k[--$j], _8D, _8C); //#27552 - } //#27552 - var _8H = $get($_.numeric, $k[--$j]) !== undefined; //#27553 - if (_8H) { //#27556 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27554 - } else { //#27556 - $put($_.numericruns, $_.i, 0); //#27556 - } //#27556 - var _8P = $k[--$j]; //#27558 - var _8R = $get($_.alphanumeric, _8P) !== undefined; //#27558 - $k[$j++] = _8P; //#27562 - if (_8R) { //#27561 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27559 - } else { //#27561 - $put($_.alphanumericruns, $_.i, 0); //#27561 - } //#27561 - var _8Z = $k[--$j]; //#27563 - var _8b = $get($_.iso646, _8Z) !== undefined; //#27563 - var _8d = $get($_.alphanumeric, _8Z) !== undefined; //#27563 - if (_8b && (!_8d)) { //#27566 - $put($_.nextiso646only, $_.i, 0); //#27564 - } else { //#27566 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27566 - } //#27566 - } //#27566 - $_.gpfenc = $a(8304); //#27571 - $_.i = 0; //#27572 - $_.j = 0; //#27572 - for (;;) { //#27662 - if ($_.i == $_.gpf.length) { //#27574 - break; //#27574 - } //#27574 - for (;;) { //#27661 - if ($eq($_.mode, "numeric")) { //#27610 - if ($_.i <= ($_.gpf.length - 2)) { //#27607 - var _8r = $s(2); //#27579 - var _8u = $get($_.gpf, $_.i); //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = 0; //#27580 - $k[$j++] = _8u; //#27580 - if (_8u == $_.fnc1) { //#27580 - $j--; //#27580 - $k[$j++] = 94; //#27580 - } //#27580 - var _8w = $k[--$j]; //#27580 - var _8x = $k[--$j]; //#27580 - $put($k[--$j], _8x, _8w); //#27580 - var _8z = $k[--$j]; //#27581 - var _92 = $get($_.gpf, $_.i + 1); //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = 1; //#27581 - $k[$j++] = _92; //#27581 - if (_92 == $_.fnc1) { //#27581 - $j--; //#27581 - $k[$j++] = 94; //#27581 - } //#27581 - var _94 = $k[--$j]; //#27581 - var _95 = $k[--$j]; //#27581 - $put($k[--$j], _95, _94); //#27581 - var _97 = $k[--$j]; //#27582 - var _99 = $get($_.numeric, _97) !== undefined; //#27582 - $k[$j++] = _97; //#27586 - if (_99) { //#27586 - $k[$j++] = $_.numeric; //#27583 - $_.encode(); //#27583 - $_.i = $_.i + 2; //#27584 - break; //#27585 - } //#27585 - $j--; //#27587 - $k[$j++] = $_.lalphanumeric; //#27588 - $k[$j++] = $_.numeric; //#27588 - $_.encode(); //#27588 - $_.mode = "alphanumeric"; //#27589 - break; //#27590 - } else { //#27607 - var _9G = $get($_.gpf, $_.i); //#27592 - if ((_9G < 48) || (_9G > 57)) { //#27596 - $k[$j++] = $_.lalphanumeric; //#27593 - $k[$j++] = $_.numeric; //#27593 - $_.encode(); //#27593 - $_.mode = "alphanumeric"; //#27594 - break; //#27595 - } //#27595 - $k[$j++] = 'rem'; //#27597 - $k[$j++] = $_.cdf.length + $_.j; //#27597 - $_.rembits(); //#27597 - var _9L = $k[--$j]; //#27597 - $_[$k[--$j]] = _9L; //#27597 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#27607 - var _9S = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27599 - var _9X = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27600 - $puti(_9S, 4 - _9X.length, _9X); //#27601 - $k[$j++] = _9S; //#27601 - $k[$j++] = 'raw'; //#27601 - $_.encode(); //#27601 - $_.i = $_.i + 1; //#27602 - break; //#27603 - } else { //#27607 - var _9Z = $s(2); //#27605 - $put(_9Z, 0, $get($_.gpf, $_.i)); //#27605 - $put(_9Z, 1, 94); //#27605 - $k[$j++] = _9Z; //#27605 - $k[$j++] = $_.numeric; //#27605 - $_.encode(); //#27605 - $_.i = $_.i + 1; //#27606 - break; //#27607 - } //#27607 - } //#27607 - } //#27607 - if ($eq($_.mode, "alphanumeric")) { //#27637 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27618 - $k[$j++] = $_.fnc1; //#27614 - $k[$j++] = $_.alphanumeric; //#27614 - $_.encode(); //#27614 - $_.mode = "numeric"; //#27615 - $_.i = $_.i + 1; //#27616 - break; //#27617 - } //#27617 - var _9p = $get($_.gpf, $_.i); //#27619 - var _9r = $get($_.iso646, _9p) !== undefined; //#27619 - var _9t = $get($_.alphanumeric, _9p) !== undefined; //#27619 - if (_9r && (!_9t)) { //#27623 - $k[$j++] = $_.liso646; //#27620 - $k[$j++] = $_.alphanumeric; //#27620 - $_.encode(); //#27620 - $_.mode = "iso646"; //#27621 - break; //#27622 - } //#27622 - if ($get($_.numericruns, $_.i) >= 6) { //#27628 - $k[$j++] = $_.lnumeric; //#27625 - $k[$j++] = $_.alphanumeric; //#27625 - $_.encode(); //#27625 - $_.mode = "numeric"; //#27626 - break; //#27627 - } //#27627 - var _A3 = $get($_.numericruns, $_.i); //#27629 - if ((_A3 >= 4) && ($f(_A3 + $_.i) == $_.gpf.length)) { //#27633 - $k[$j++] = $_.lnumeric; //#27630 - $k[$j++] = $_.alphanumeric; //#27630 - $_.encode(); //#27630 - $_.mode = "numeric"; //#27631 - break; //#27632 - } //#27632 - $k[$j++] = $get($_.gpf, $_.i); //#27634 - $k[$j++] = $_.alphanumeric; //#27634 - $_.encode(); //#27634 - $_.i = $_.i + 1; //#27635 - break; //#27636 - } //#27636 - if ($eq($_.mode, "iso646")) { //#27659 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27645 - $k[$j++] = $_.fnc1; //#27641 - $k[$j++] = $_.iso646; //#27641 - $_.encode(); //#27641 - $_.mode = "numeric"; //#27642 - $_.i = $_.i + 1; //#27643 - break; //#27644 - } //#27644 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27650 - $k[$j++] = $_.lnumeric; //#27647 - $k[$j++] = $_.iso646; //#27647 - $_.encode(); //#27647 - $_.mode = "numeric"; //#27648 - break; //#27649 - } //#27649 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27655 - $k[$j++] = $_.lalphanumeric; //#27652 - $k[$j++] = $_.iso646; //#27652 - $_.encode(); //#27652 - $_.mode = "alphanumeric"; //#27653 - break; //#27654 - } //#27654 - $k[$j++] = $get($_.gpf, $_.i); //#27656 - $k[$j++] = $_.iso646; //#27656 - $_.encode(); //#27656 - $_.i = $_.i + 1; //#27657 - break; //#27658 - } //#27658 - } //#27658 - } //#27658 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27663 - $k[$j++] = 'pad'; //#27666 - $k[$j++] = $_.cdf.length + $_.gpf.length; //#27666 - $_.rembits(); //#27666 - var _Am = $a($k[--$j]); //#27666 - $_[$k[--$j]] = _Am; //#27666 - if ($_.pad.length > 0) { //#27678 - for (var _Ar = 0, _Aq = $_.pad.length - 1; _Ar <= _Aq; _Ar += 5) { //#27671 - $_.i = _Ar; //#27669 - var _As = $_.pad; //#27670 - var _At = $_.i; //#27670 - var _Au = $a([0, 0, 1, 0, 0]); //#27670 - var _Av = $_.pad; //#27670 - var _Aw = $_.i; //#27670 - var _Ax = 5; //#27670 - var _Ay = _Av.length - _Aw; //#27670 - if ((_Av.length - _Aw) > 5) { //#27670 - var _ = _Ax; //#27670 - _Ax = _Ay; //#27670 - _Ay = _; //#27670 - } //#27670 - $puti(_As, _At, $geti(_Au, 0, _Ay)); //#27670 - } //#27670 - if ($eq($_.mode, "numeric")) { //#27674 - $k[$j++] = Infinity; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $aload($_.pad); //#27673 - $_.pad = $geti($a(), 0, $_.pad.length); //#27673 - } //#27673 - if ($eq($_.mode, "alpha")) { //#27677 - $k[$j++] = Infinity; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $aload($_.pad); //#27676 - $_.pad = $geti($a(), 0, $_.pad.length); //#27676 - } //#27676 - } //#27676 - $k[$j++] = Infinity; //#27684 - $aload($_.cdf); //#27682 - $aload($_.gpf); //#27683 - $aload($_.pad); //#27684 - $_.bits = $a(); //#27684 - if (!bwipp_gs1_cc.__27702__) { //#27702 - $_ = Object.create($_); //#27702 - $k[$j++] = Infinity; //#27690 - $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#27690 - for (var _BF = 0, _BG = 68; _BF < _BG; _BF++) { //#27690 - $k[$j++] = $a(7); //#27690 - } //#27690 - $_.pwr928 = $a(); //#27690 - for (var _BJ = 1; _BJ <= 68; _BJ += 1) { //#27701 - $_.j = _BJ; //#27693 - $_.v = 0; //#27694 - for (var _BK = 6; _BK >= 1; _BK -= 1) { //#27699 - $_.i = _BK; //#27696 - $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#27697 - $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#27698 - } //#27698 - $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#27700 - } //#27700 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27700 - bwipp_gs1_cc.__27702__ = 1; //#27700 - $_ = Object.getPrototypeOf($_); //#27700 - } //#27700 - if ($_.ccversion == "a") { //#27744 - $k[$j++] = Infinity; //#27705 - for (var _Bg = 0, _Bh = 28; _Bg < _Bh; _Bg++) { //#27705 - $k[$j++] = 0; //#27705 - } //#27705 - $_.cws = $a(); //#27705 - $_.b = 0; //#27706 - $_.c = 0; //#27706 - for (;;) { //#27730 - if ($_.b == $_.bits.length) { //#27708 - break; //#27708 - } //#27708 - var _Bl = $_.bits; //#27709 - var _Bm = $_.b; //#27709 - var _Bn = $_.bits; //#27709 - var _Bo = $_.b; //#27709 - var _Bp = _Bn.length - _Bo; //#27709 - var _Bq = 69; //#27709 - if (69 > (_Bn.length - _Bo)) { //#27709 - var _ = _Bp; //#27709 - _Bp = _Bq; //#27709 - _Bq = _; //#27709 - } //#27709 - $_.bs = $geti(_Bl, _Bm, _Bq); //#27709 - $_.bsl = $_.bs.length; //#27710 - $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#27711 - $_.csl = $_.cs.length; //#27712 - for (var _C0 = 0, _Bz = $_.bsl - 1; _C0 <= _Bz; _C0 += 1) { //#27722 - $_.i = _C0; //#27714 - for (var _C3 = 0, _C2 = $_.csl - 1; _C3 <= _C2; _C3 += 1) { //#27721 - $_.j = _C3; //#27716 - var _C4 = $_.cs; //#27717 - var _C5 = $_.j; //#27717 - $put(_C4, _C5, $f($get(_C4, _C5) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#27720 - } //#27720 - } //#27720 - for (var _CI = $_.csl - 1; _CI >= 1; _CI -= 1) { //#27727 - $_.i = _CI; //#27724 - var _CJ = $_.cs; //#27725 - var _CK = $_.i; //#27725 - $put(_CJ, _CK - 1, $f($get(_CJ, _CK - 1) + (~~($get($_.cs, $_.i) / 928)))); //#27725 - var _CP = $_.cs; //#27726 - var _CQ = $_.i; //#27726 - $put(_CP, _CQ, $get(_CP, _CQ) % 928); //#27726 - } //#27726 - $_.b = $_.b + $_.bsl; //#27728 - $_.c = $_.c + $_.csl; //#27729 - } //#27729 - $_.cws = $geti($_.cws, 0, $_.c); //#27731 - $_.barcode = $s($_.cws.length * 4); //#27732 - for (var _Cd = 0, _Cc = $_.cws.length - 1; _Cd <= _Cc; _Cd += 1) { //#27738 - $_.i = _Cd; //#27734 - var _Cf = $strcpy($s(4), "^000"); //#27735 - var _Ck = $cvrs($s(4), $get($_.cws, $_.i), 10); //#27735 - $puti(_Cf, 4 - _Ck.length, _Ck); //#27736 - $puti($_.barcode, $_.i * 4, _Cf); //#27737 - } //#27737 - delete $_.options["parse"]; //#27739 - $put($_.options, "dontdraw", true); //#27740 - $put($_.options, "cca", true); //#27741 - $put($_.options, "columns", $_.cccolumns); //#27742 - $k[$j++] = 'args'; //#27743 - $k[$j++] = $_.barcode; //#27743 - $k[$j++] = $_.options; //#27743 - bwipp_micropdf417(); //#27743 - var _Cu = $k[--$j]; //#27743 - $_[$k[--$j]] = _Cu; //#27743 - } //#27743 - if ($_.ccversion == "b") { //#27758 - $_.barcode = $s(~~($_.bits.length / 8)); //#27747 - for (var _D1 = 0, _D0 = $_.barcode.length - 1; _D1 <= _D0; _D1 += 1) { //#27752 - $_.i = _D1; //#27749 - var _D4 = $geti($_.bits, $_.i * 8, 8); //#27750 - $k[$j++] = 0; //#27750 - for (var _D5 = 0, _D6 = _D4.length; _D5 < _D6; _D5++) { //#27750 - var _D8 = $k[--$j]; //#27750 - $k[$j++] = $f(_D8 + $get(_D4, _D5)) * 2; //#27750 - } //#27750 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27751 - } //#27751 - delete $_.options["parse"]; //#27753 - $put($_.options, "dontdraw", true); //#27754 - $put($_.options, "ccb", true); //#27755 - $put($_.options, "columns", $_.cccolumns); //#27756 - $k[$j++] = 'args'; //#27757 - $k[$j++] = $_.barcode; //#27757 - $k[$j++] = $_.options; //#27757 - bwipp_micropdf417(); //#27757 - var _DJ = $k[--$j]; //#27757 - $_[$k[--$j]] = _DJ; //#27757 - } //#27757 - if ($_.ccversion == "c") { //#27773 - $_.barcode = $s(~~($_.bits.length / 8)); //#27761 - for (var _DQ = 0, _DP = $_.barcode.length - 1; _DQ <= _DP; _DQ += 1) { //#27766 - $_.i = _DQ; //#27763 - var _DT = $geti($_.bits, $_.i * 8, 8); //#27764 - $k[$j++] = 0; //#27764 - for (var _DU = 0, _DV = _DT.length; _DU < _DV; _DU++) { //#27764 - var _DX = $k[--$j]; //#27764 - $k[$j++] = $f(_DX + $get(_DT, _DU)) * 2; //#27764 - } //#27764 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27765 - } //#27765 - delete $_.options["parse"]; //#27767 - $put($_.options, "dontdraw", true); //#27768 - $put($_.options, "ccc", true); //#27769 - $put($_.options, "columns", $_.cccolumns); //#27770 - $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#27771 - $k[$j++] = 'args'; //#27772 - $k[$j++] = $_.barcode; //#27772 - $k[$j++] = $_.options; //#27772 - bwipp_pdf417(); //#27772 - var _Dk = $k[--$j]; //#27772 - $_[$k[--$j]] = _Dk; //#27772 - } //#27772 - $k[$j++] = $_.args; //#27776 - if (!$_.dontdraw) { //#27776 - bwipp_renmatrix(); //#27776 - } //#27776 - $_ = Object.getPrototypeOf($_); //#27778 - $_ = Object.getPrototypeOf($_); //#27780 -} - -function bwipp_ean13composite() { - $_ = Object.create($_); //#27812 - $_.dontdraw = false; //#27815 - $_.usematrix = false; //#27816 - $_.parse = false; //#27817 - $_.dontlint = false; //#27818 - $_.lintreqs = true; //#27819 - $k[$j++] = $_; //#27821 - bwipp_processoptions(); //#27821 - $_.options = $k[--$j]; //#27821 - $_.barcode = $k[--$j]; //#27822 - if ($_.dontdraw) { //#27824 - $_.usematrix = true; //#27824 - } //#27824 - $search($_.barcode, "|"); //#27827 - if ($k[--$j]) { //#27832 - $_.linear = $k[--$j]; //#27828 - $j--; //#27829 - $_.comp = $k[--$j]; //#27830 - } else { //#27832 - $j--; //#27832 - $k[$j++] = 'bwipp.missingCompositeComponent#27832'; //#27832 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27832 - bwipp_raiseerror(); //#27832 - } //#27832 - $put($_.options, "lintype", "ean13"); //#27835 - $put($_.options, "inkspread", "0"); //#27836 - $put($_.options, "dontdraw", true); //#27837 - $put($_.options, "dontlint", true); //#27838 - var _C = $s($_.comp.length + 18); //#27841 - $puti(_C, 0, "(01)00000000000000"); //#27842 - $puti(_C, 18, $_.comp); //#27843 - $k[$j++] = _C; //#27844 - $k[$j++] = 'ai'; //#27844 - bwipp_gs1process(); //#27844 - $j -= 3; //#27844 - $k[$j++] = $_.linear; //#27847 - $k[$j++] = $_.options; //#27847 - bwipp_ean13(); //#27847 - if (!$_.usematrix) { //#27937 - $$.save(); //#27849 - bwipp_renlinear(); //#27851 - $$.rmoveto(-1, 72); //#27854 - $k[$j++] = Infinity; //#27865 - $k[$j++] = Infinity; //#27859 - $k[$j++] = 0; //#27857 - $k[$j++] = 1; //#27857 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#27857 - $k[$j++] = 0; //#27857 - } //#27857 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#27858 - $k[$j++] = 0; //#27858 + var _7X = $k[--$j]; //#27858 + $k[$j++] = _7X; //#27858 + if ($ne(_7X, 'raw')) { //#27858 + var _7Y = $k[--$j]; //#27858 + var _7a = $get(_7Y, $k[--$j]); //#27858 + $k[$j++] = _7a; //#27858 + } else { //#27858 + $j--; //#27858 } //#27858 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#27859 - $k[$j++] = 0; //#27859 - } //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - var _N = $a(); //#27859 - $k[$j++] = 'ren'; //#27865 - $k[$j++] = bwipp_renmatrix; //#27865 - $k[$j++] = 'pixs'; //#27865 - $k[$j++] = _N; //#27865 - $k[$j++] = 'pixx'; //#27865 - $k[$j++] = 97; //#27865 - $k[$j++] = 'pixy'; //#27865 - $k[$j++] = 3; //#27865 - $k[$j++] = 'height'; //#27865 - $k[$j++] = 6 / 72; //#27865 - $k[$j++] = 'width'; //#27865 - $k[$j++] = 97 / 72; //#27865 - $k[$j++] = 'opt'; //#27865 - $k[$j++] = $_.options; //#27865 - var _P = $d(); //#27865 - $k[$j++] = _P; //#27866 - bwipp_renmatrix(); //#27866 - $$.rmoveto(-2, 6); //#27869 - $k[$j++] = $_.comp; //#27869 - $k[$j++] = $_.options; //#27869 - bwipp_gs1_cc(); //#27869 - bwipp_renmatrix(); //#27869 - $$.restore(); //#27871 - } else { //#27937 - $_.linsym = $k[--$j]; //#27873 - $_.sbs = $get($_.linsym, 'sbs'); //#27874 - $_.bhs = $get($_.linsym, 'bhs'); //#27875 - $_.bbs = $get($_.linsym, 'bbs'); //#27876 - $k[$j++] = 'linwidth'; //#27877 - $k[$j++] = 0; //#27877 - $forall($_.sbs, function() { //#27877 - var _a = $k[--$j]; //#27877 - var _b = $k[--$j]; //#27877 - $k[$j++] = $f(_b + $cvi(_a)); //#27877 - }); //#27877 - var _c = $k[--$j]; //#27877 - $_[$k[--$j]] = _c; //#27877 - $k[$j++] = 'compsym'; //#27879 - $k[$j++] = $_.comp; //#27879 - $k[$j++] = $_.options; //#27879 - bwipp_gs1_cc(); //#27879 - var _g = $k[--$j]; //#27879 - $_[$k[--$j]] = _g; //#27879 - $_.ccpixs = $get($_.compsym, 'pixs'); //#27880 - $_.ccpixx = $get($_.compsym, 'pixx'); //#27881 - $k[$j++] = Infinity; //#27883 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#27883 - $k[$j++] = 0; //#27883 + $k[$j++] = Infinity; //#27859 + var _7b = $k[--$j]; //#27859 + var _7c = $k[--$j]; //#27859 + $k[$j++] = _7b; //#27859 + $forall(_7c, function() { //#27859 + var _7d = $k[--$j]; //#27859 + $k[$j++] = $f(_7d - 48); //#27859 + }); //#27859 + var _7e = $a(); //#27859 + $puti($_.gpfenc, $_.j, _7e); //#27861 + $_.j = _7e.length + $_.j; //#27862 + }; //#27862 + $k[$j++] = Infinity; //#27866 + for (var _7j = 0, _7k = $_.gpf.length; _7j < _7k; _7j++) { //#27866 + $k[$j++] = 0; //#27866 + } //#27866 + $k[$j++] = 0; //#27866 + $k[$j++] = -1; //#27866 + $_.numericruns = $a(); //#27866 + $k[$j++] = Infinity; //#27867 + for (var _7n = 0, _7o = $_.gpf.length; _7n < _7o; _7n++) { //#27867 + $k[$j++] = 0; //#27867 + } //#27867 + $k[$j++] = 0; //#27867 + $_.alphanumericruns = $a(); //#27867 + $k[$j++] = Infinity; //#27868 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#27868 + $k[$j++] = 0; //#27868 + } //#27868 + $k[$j++] = 9999; //#27868 + $_.nextiso646only = $a(); //#27868 + for (var _7v = $_.gpf.length - 1; _7v >= 0; _7v -= 1) { //#27890 + $_.i = _7v; //#27870 + var _80 = $strcpy($s(2), "00"); //#27872 + var _83 = $get($_.gpf, $_.i); //#27873 + $k[$j++] = $get($_.gpf, $_.i); //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = 0; //#27873 + $k[$j++] = _83; //#27873 + if (_83 == $_.fnc1) { //#27873 + $j--; //#27873 + $k[$j++] = 94; //#27873 + } //#27873 + var _85 = $k[--$j]; //#27873 + var _86 = $k[--$j]; //#27873 + $put($k[--$j], _86, _85); //#27873 + if ($_.i < ($_.gpf.length - 1)) { //#27874 + var _8A = $k[--$j]; //#27874 + var _8D = $get($_.gpf, $_.i + 1); //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = 1; //#27874 + $k[$j++] = _8D; //#27874 + if (_8D == $_.fnc1) { //#27874 + $j--; //#27874 + $k[$j++] = 94; //#27874 + } //#27874 + var _8F = $k[--$j]; //#27874 + var _8G = $k[--$j]; //#27874 + $put($k[--$j], _8G, _8F); //#27874 + } //#27874 + var _8K = $get($_.numeric, $k[--$j]) !== undefined; //#27875 + if (_8K) { //#27878 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27876 + } else { //#27878 + $put($_.numericruns, $_.i, 0); //#27878 + } //#27878 + var _8S = $k[--$j]; //#27880 + var _8U = $get($_.alphanumeric, _8S) !== undefined; //#27880 + $k[$j++] = _8S; //#27884 + if (_8U) { //#27883 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27881 + } else { //#27883 + $put($_.alphanumericruns, $_.i, 0); //#27883 } //#27883 - $_.linpad = $a(); //#27883 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#27885 - if ($_.diff > 0) { //#27891 - $k[$j++] = Infinity; //#27887 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#27887 - $k[$j++] = 0; //#27887 - } //#27887 - $_.ccrpad = $a(); //#27887 - $_.pixx = $f($_.ccpixx + $_.diff); //#27888 - } else { //#27891 - $_.ccrpad = $a(0); //#27890 - $_.pixx = $_.ccpixx; //#27891 - } //#27891 - $k[$j++] = Infinity; //#27919 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#27898 - $_.i = _15; //#27896 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#27897 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#27897 - $aload($_.ccrpad); //#27897 - } //#27897 - } //#27897 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#27899 - $aload($_.linpad); //#27899 - $k[$j++] = 0; //#27899 - $k[$j++] = 1; //#27899 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#27899 - $k[$j++] = 0; //#27899 - } //#27899 - $k[$j++] = 1; //#27899 - $k[$j++] = 0; //#27899 - $aload($_.ccrpad); //#27899 - } //#27899 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#27900 - $aload($_.linpad); //#27900 - $k[$j++] = 1; //#27900 - $k[$j++] = 0; //#27900 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#27900 - $k[$j++] = 0; //#27900 - } //#27900 - $k[$j++] = 0; //#27900 - $k[$j++] = 1; //#27900 - $aload($_.ccrpad); //#27900 - } //#27900 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#27901 - $aload($_.linpad); //#27901 - $k[$j++] = 0; //#27901 - $k[$j++] = 1; //#27901 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#27901 - $k[$j++] = 0; //#27901 - } //#27901 - $k[$j++] = 1; //#27901 - $k[$j++] = 0; //#27901 - $aload($_.ccrpad); //#27901 - } //#27901 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#27920 - $_.y = _1W; //#27903 - $aload($_.linpad); //#27904 - $k[$j++] = 0; //#27918 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#27918 - $_.i = _1a; //#27907 - if (($_.i % 2) == 0) { //#27916 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#27910 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#27913 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#27911 - $k[$j++] = 0; //#27911 - } //#27911 - } else { //#27913 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#27913 - $k[$j++] = 1; //#27913 - } //#27913 - } //#27913 - } else { //#27916 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#27916 - $k[$j++] = 0; //#27916 - } //#27916 - } //#27916 - } //#27916 - $k[$j++] = 0; //#27919 - } //#27919 - $_.pixs = $a(); //#27919 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#27923 - var _29 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#27931 - $k[$j++] = _29; //#27938 - if (!$_.dontdraw) { //#27938 - $$.save(); //#27935 - bwipp_renmatrix(); //#27936 - $$.restore(); //#27937 - } //#27937 - } //#27937 - $_ = Object.getPrototypeOf($_); //#27941 -} - -function bwipp_ean8composite() { - $_ = Object.create($_); //#27973 - $_.dontdraw = false; //#27976 - $_.usematrix = false; //#27977 - $_.parse = false; //#27978 - $_.dontlint = false; //#27979 - $_.lintreqs = true; //#27980 - $k[$j++] = $_; //#27982 - bwipp_processoptions(); //#27982 - $_.options = $k[--$j]; //#27982 - $_.barcode = $k[--$j]; //#27983 - if ($_.dontdraw) { //#27985 - $_.usematrix = true; //#27985 - } //#27985 - $search($_.barcode, "|"); //#27988 - if ($k[--$j]) { //#27993 - $_.linear = $k[--$j]; //#27989 - $j--; //#27990 - $_.comp = $k[--$j]; //#27991 - } else { //#27993 - $j--; //#27993 - $k[$j++] = 'bwipp.missingCompositeComponent#27993'; //#27993 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27993 - bwipp_raiseerror(); //#27993 - } //#27993 - $put($_.options, "lintype", "ean8"); //#27997 - $put($_.options, "inkspread", "0"); //#27998 - $put($_.options, "dontdraw", true); //#27999 - $put($_.options, "dontlint", true); //#28000 - var _C = $s($_.comp.length + 18); //#28003 - $puti(_C, 0, "(01)00000000000000"); //#28004 - $puti(_C, 18, $_.comp); //#28005 - $k[$j++] = _C; //#28006 - $k[$j++] = 'ai'; //#28006 - bwipp_gs1process(); //#28006 - $j -= 3; //#28006 - $k[$j++] = $_.linear; //#28009 - $k[$j++] = $_.options; //#28009 - bwipp_ean8(); //#28009 - if (!$_.usematrix) { //#28101 - $$.save(); //#28011 - bwipp_renlinear(); //#28013 - $$.rmoveto(-1, 72); //#28016 + var _8c = $k[--$j]; //#27885 + var _8e = $get($_.iso646, _8c) !== undefined; //#27885 + var _8g = $get($_.alphanumeric, _8c) !== undefined; //#27885 + if (_8e && (!_8g)) { //#27888 + $put($_.nextiso646only, $_.i, 0); //#27886 + } else { //#27888 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27888 + } //#27888 + } //#27888 + $_.gpfenc = $a(8304); //#27893 + $_.i = 0; //#27894 + $_.j = 0; //#27894 + for (;;) { //#27984 + if ($_.i == $_.gpf.length) { //#27896 + break; //#27896 + } //#27896 + for (;;) { //#27983 + if ($eq($_.mode, "numeric")) { //#27932 + if ($_.i <= ($_.gpf.length - 2)) { //#27929 + var _8u = $s(2); //#27901 + var _8x = $get($_.gpf, $_.i); //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = 0; //#27902 + $k[$j++] = _8x; //#27902 + if (_8x == $_.fnc1) { //#27902 + $j--; //#27902 + $k[$j++] = 94; //#27902 + } //#27902 + var _8z = $k[--$j]; //#27902 + var _90 = $k[--$j]; //#27902 + $put($k[--$j], _90, _8z); //#27902 + var _92 = $k[--$j]; //#27903 + var _95 = $get($_.gpf, $_.i + 1); //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = 1; //#27903 + $k[$j++] = _95; //#27903 + if (_95 == $_.fnc1) { //#27903 + $j--; //#27903 + $k[$j++] = 94; //#27903 + } //#27903 + var _97 = $k[--$j]; //#27903 + var _98 = $k[--$j]; //#27903 + $put($k[--$j], _98, _97); //#27903 + var _9A = $k[--$j]; //#27904 + var _9C = $get($_.numeric, _9A) !== undefined; //#27904 + $k[$j++] = _9A; //#27908 + if (_9C) { //#27908 + $k[$j++] = $_.numeric; //#27905 + $_.encode(); //#27905 + $_.i = $_.i + 2; //#27906 + break; //#27907 + } //#27907 + $j--; //#27909 + $k[$j++] = $_.lalphanumeric; //#27910 + $k[$j++] = $_.numeric; //#27910 + $_.encode(); //#27910 + $_.mode = "alphanumeric"; //#27911 + break; //#27912 + } else { //#27929 + var _9J = $get($_.gpf, $_.i); //#27914 + if ((_9J < 48) || (_9J > 57)) { //#27918 + $k[$j++] = $_.lalphanumeric; //#27915 + $k[$j++] = $_.numeric; //#27915 + $_.encode(); //#27915 + $_.mode = "alphanumeric"; //#27916 + break; //#27917 + } //#27917 + $k[$j++] = 'rem'; //#27919 + $k[$j++] = $_.cdf.length + $_.j; //#27919 + $_.rembits(); //#27919 + var _9O = $k[--$j]; //#27919 + $_[$k[--$j]] = _9O; //#27919 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#27929 + var _9V = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27921 + var _9a = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27922 + $puti(_9V, 4 - _9a.length, _9a); //#27923 + $k[$j++] = _9V; //#27923 + $k[$j++] = 'raw'; //#27923 + $_.encode(); //#27923 + $_.i = $_.i + 1; //#27924 + break; //#27925 + } else { //#27929 + var _9c = $s(2); //#27927 + $put(_9c, 0, $get($_.gpf, $_.i)); //#27927 + $put(_9c, 1, 94); //#27927 + $k[$j++] = _9c; //#27927 + $k[$j++] = $_.numeric; //#27927 + $_.encode(); //#27927 + $_.i = $_.i + 1; //#27928 + break; //#27929 + } //#27929 + } //#27929 + } //#27929 + if ($eq($_.mode, "alphanumeric")) { //#27959 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27940 + $k[$j++] = $_.fnc1; //#27936 + $k[$j++] = $_.alphanumeric; //#27936 + $_.encode(); //#27936 + $_.mode = "numeric"; //#27937 + $_.i = $_.i + 1; //#27938 + break; //#27939 + } //#27939 + var _9s = $get($_.gpf, $_.i); //#27941 + var _9u = $get($_.iso646, _9s) !== undefined; //#27941 + var _9w = $get($_.alphanumeric, _9s) !== undefined; //#27941 + if (_9u && (!_9w)) { //#27945 + $k[$j++] = $_.liso646; //#27942 + $k[$j++] = $_.alphanumeric; //#27942 + $_.encode(); //#27942 + $_.mode = "iso646"; //#27943 + break; //#27944 + } //#27944 + if ($get($_.numericruns, $_.i) >= 6) { //#27950 + $k[$j++] = $_.lnumeric; //#27947 + $k[$j++] = $_.alphanumeric; //#27947 + $_.encode(); //#27947 + $_.mode = "numeric"; //#27948 + break; //#27949 + } //#27949 + var _A6 = $get($_.numericruns, $_.i); //#27951 + if ((_A6 >= 4) && ($f(_A6 + $_.i) == $_.gpf.length)) { //#27955 + $k[$j++] = $_.lnumeric; //#27952 + $k[$j++] = $_.alphanumeric; //#27952 + $_.encode(); //#27952 + $_.mode = "numeric"; //#27953 + break; //#27954 + } //#27954 + $k[$j++] = $get($_.gpf, $_.i); //#27956 + $k[$j++] = $_.alphanumeric; //#27956 + $_.encode(); //#27956 + $_.i = $_.i + 1; //#27957 + break; //#27958 + } //#27958 + if ($eq($_.mode, "iso646")) { //#27981 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27967 + $k[$j++] = $_.fnc1; //#27963 + $k[$j++] = $_.iso646; //#27963 + $_.encode(); //#27963 + $_.mode = "numeric"; //#27964 + $_.i = $_.i + 1; //#27965 + break; //#27966 + } //#27966 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27972 + $k[$j++] = $_.lnumeric; //#27969 + $k[$j++] = $_.iso646; //#27969 + $_.encode(); //#27969 + $_.mode = "numeric"; //#27970 + break; //#27971 + } //#27971 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27977 + $k[$j++] = $_.lalphanumeric; //#27974 + $k[$j++] = $_.iso646; //#27974 + $_.encode(); //#27974 + $_.mode = "alphanumeric"; //#27975 + break; //#27976 + } //#27976 + $k[$j++] = $get($_.gpf, $_.i); //#27978 + $k[$j++] = $_.iso646; //#27978 + $_.encode(); //#27978 + $_.i = $_.i + 1; //#27979 + break; //#27980 + } //#27980 + } //#27980 + } //#27980 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27985 + $k[$j++] = 'pad'; //#27988 + $k[$j++] = $_.cdf.length + $_.gpf.length; //#27988 + $_.rembits(); //#27988 + var _Ap = $a($k[--$j]); //#27988 + $_[$k[--$j]] = _Ap; //#27988 + if ($_.pad.length > 0) { //#28000 + for (var _Au = 0, _At = $_.pad.length - 1; _Au <= _At; _Au += 5) { //#27993 + $_.i = _Au; //#27991 + var _Av = $_.pad; //#27992 + var _Aw = $_.i; //#27992 + var _Ax = $a([0, 0, 1, 0, 0]); //#27992 + var _Ay = $_.pad; //#27992 + var _Az = $_.i; //#27992 + var _B0 = 5; //#27992 + var _B1 = _Ay.length - _Az; //#27992 + if ((_Ay.length - _Az) > 5) { //#27992 + var _ = _B0; //#27992 + _B0 = _B1; //#27992 + _B1 = _; //#27992 + } //#27992 + $puti(_Av, _Aw, $geti(_Ax, 0, _B1)); //#27992 + } //#27992 + if ($eq($_.mode, "numeric")) { //#27996 + $k[$j++] = Infinity; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $aload($_.pad); //#27995 + $_.pad = $geti($a(), 0, $_.pad.length); //#27995 + } //#27995 + if ($eq($_.mode, "alpha")) { //#27999 + $k[$j++] = Infinity; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $aload($_.pad); //#27998 + $_.pad = $geti($a(), 0, $_.pad.length); //#27998 + } //#27998 + } //#27998 + $k[$j++] = Infinity; //#28003 + $aload($_.cdf); //#28004 + $aload($_.gpf); //#28005 + $aload($_.pad); //#28006 + $_.bits = $a(); //#28006 + if (!bwipp_gs1_cc.__28024__) { //#28024 + $_ = Object.create($_); //#28024 + $k[$j++] = Infinity; //#28010 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#28012 + for (var _BI = 0, _BJ = 68; _BI < _BJ; _BI++) { //#28012 + $k[$j++] = $a(7); //#28012 + } //#28012 + $_.pwr928 = $a(); //#28012 + for (var _BM = 1; _BM <= 68; _BM += 1) { //#28023 + $_.j = _BM; //#28015 + $_.v = 0; //#28016 + for (var _BN = 6; _BN >= 1; _BN -= 1) { //#28021 + $_.i = _BN; //#28018 + $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#28019 + $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#28020 + } //#28020 + $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#28022 + } //#28022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#28022 + bwipp_gs1_cc.__28024__ = 1; //#28022 + $_ = Object.getPrototypeOf($_); //#28022 + } //#28022 + if ($_.ccversion == "a") { //#28066 $k[$j++] = Infinity; //#28027 - $k[$j++] = Infinity; //#28021 - $k[$j++] = 0; //#28019 - $k[$j++] = 1; //#28019 - for (var _H = 0, _I = 65; _H < _I; _H++) { //#28019 - $k[$j++] = 0; //#28019 - } //#28019 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - for (var _J = 0, _K = 65; _J < _K; _J++) { //#28020 - $k[$j++] = 0; //#28020 - } //#28020 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - for (var _L = 0, _M = 65; _L < _M; _L++) { //#28021 - $k[$j++] = 0; //#28021 - } //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - var _N = $a(); //#28021 - $k[$j++] = 'ren'; //#28027 - $k[$j++] = bwipp_renmatrix; //#28027 - $k[$j++] = 'pixs'; //#28027 - $k[$j++] = _N; //#28027 - $k[$j++] = 'pixx'; //#28027 - $k[$j++] = 69; //#28027 - $k[$j++] = 'pixy'; //#28027 - $k[$j++] = 3; //#28027 - $k[$j++] = 'height'; //#28027 - $k[$j++] = 6 / 72; //#28027 - $k[$j++] = 'width'; //#28027 - $k[$j++] = 69 / 72; //#28027 - $k[$j++] = 'opt'; //#28027 - $k[$j++] = $_.options; //#28027 - var _P = $d(); //#28027 - $k[$j++] = _P; //#28028 - bwipp_renmatrix(); //#28028 - $k[$j++] = $_.comp; //#28031 - $k[$j++] = $_.options; //#28031 - bwipp_gs1_cc(); //#28031 - var _S = $k[--$j]; //#28032 - $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28032 - $k[$j++] = _S; //#28033 - bwipp_renmatrix(); //#28033 - $$.restore(); //#28035 - } else { //#28101 - $_.linsym = $k[--$j]; //#28037 - $_.sbs = $get($_.linsym, 'sbs'); //#28038 - $_.bhs = $get($_.linsym, 'bhs'); //#28039 - $_.bbs = $get($_.linsym, 'bbs'); //#28040 - $k[$j++] = 'linwidth'; //#28041 - $k[$j++] = 0; //#28041 - $forall($_.sbs, function() { //#28041 - var _c = $k[--$j]; //#28041 - var _d = $k[--$j]; //#28041 - $k[$j++] = $f(_d + $cvi(_c)); //#28041 - }); //#28041 - var _e = $k[--$j]; //#28041 - $_[$k[--$j]] = _e; //#28041 - var _g = $_.comp; //#28043 - $k[$j++] = 'compsym'; //#28043 - $k[$j++] = _g; //#28043 - $k[$j++] = $_.options; //#28043 - bwipp_gs1_cc(); //#28043 - var _i = $k[--$j]; //#28043 - $_[$k[--$j]] = _i; //#28043 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28044 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28045 - $k[$j++] = Infinity; //#28047 - for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28047 - $k[$j++] = 0; //#28047 - } //#28047 - $_.linpad = $a(); //#28047 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28049 - if ($_.diff > 0) { //#28055 - $k[$j++] = Infinity; //#28051 - for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28051 - $k[$j++] = 0; //#28051 - } //#28051 - $_.ccrpad = $a(); //#28051 - $_.pixx = $f($_.ccpixx + $_.diff); //#28052 - } else { //#28055 - $_.ccrpad = $a(0); //#28054 - $_.pixx = $_.ccpixx; //#28055 - } //#28055 - $k[$j++] = Infinity; //#28083 - for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28062 - $_.i = _17; //#28060 - for (var _19 = 0, _1A = 2; _19 < _1A; _19++) { //#28061 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28061 - $aload($_.ccrpad); //#28061 - } //#28061 - } //#28061 - for (var _1G = 0, _1H = 2; _1G < _1H; _1G++) { //#28063 - $aload($_.linpad); //#28063 - $k[$j++] = 0; //#28063 - $k[$j++] = 1; //#28063 - for (var _1J = 0, _1K = 65; _1J < _1K; _1J++) { //#28063 - $k[$j++] = 0; //#28063 - } //#28063 - $k[$j++] = 1; //#28063 - $k[$j++] = 0; //#28063 - $aload($_.ccrpad); //#28063 - } //#28063 - for (var _1M = 0, _1N = 2; _1M < _1N; _1M++) { //#28064 - $aload($_.linpad); //#28064 - $k[$j++] = 1; //#28064 - $k[$j++] = 0; //#28064 - for (var _1P = 0, _1Q = 65; _1P < _1Q; _1P++) { //#28064 - $k[$j++] = 0; //#28064 - } //#28064 - $k[$j++] = 0; //#28064 - $k[$j++] = 1; //#28064 - $aload($_.ccrpad); //#28064 - } //#28064 - for (var _1S = 0, _1T = 2; _1S < _1T; _1S++) { //#28065 - $aload($_.linpad); //#28065 - $k[$j++] = 0; //#28065 - $k[$j++] = 1; //#28065 - for (var _1V = 0, _1W = 65; _1V < _1W; _1V++) { //#28065 - $k[$j++] = 0; //#28065 - } //#28065 - $k[$j++] = 1; //#28065 - $k[$j++] = 0; //#28065 - $aload($_.ccrpad); //#28065 - } //#28065 - for (var _1Y = 71; _1Y >= 0; _1Y -= 1) { //#28084 - $_.y = _1Y; //#28067 - $aload($_.linpad); //#28068 - $k[$j++] = 0; //#28082 - for (var _1c = 0, _1b = $_.sbs.length - 1; _1c <= _1b; _1c += 1) { //#28082 - $_.i = _1c; //#28071 - if (($_.i % 2) == 0) { //#28080 - var _1h = $get($_.bbs, ~~($_.i / 2)) * 72; //#28074 - if ((_1h > $_.y) || (($f(_1h + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28077 - for (var _1q = 0, _1r = $cvi($get($_.sbs, $_.i)); _1q < _1r; _1q++) { //#28075 - $k[$j++] = 0; //#28075 - } //#28075 - } else { //#28077 - for (var _1v = 0, _1w = $cvi($get($_.sbs, $_.i)); _1v < _1w; _1v++) { //#28077 - $k[$j++] = 1; //#28077 - } //#28077 - } //#28077 - } else { //#28080 - for (var _20 = 0, _21 = $cvi($get($_.sbs, $_.i)); _20 < _21; _20++) { //#28080 - $k[$j++] = 0; //#28080 - } //#28080 - } //#28080 - } //#28080 - $k[$j++] = 0; //#28083 - } //#28083 - $_.pixs = $a(); //#28083 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28087 - var _2B = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#28095 - $k[$j++] = _2B; //#28102 - if (!$_.dontdraw) { //#28102 - $$.save(); //#28099 - bwipp_renmatrix(); //#28100 - $$.restore(); //#28101 - } //#28101 - } //#28101 - $_ = Object.getPrototypeOf($_); //#28105 -} - -function bwipp_upcacomposite() { - $_ = Object.create($_); //#28137 - $_.dontdraw = false; //#28140 - $_.usematrix = false; //#28141 - $_.parse = false; //#28142 - $_.dontlint = false; //#28143 - $_.lintreqs = true; //#28144 - $k[$j++] = $_; //#28146 - bwipp_processoptions(); //#28146 - $_.options = $k[--$j]; //#28146 - $_.barcode = $k[--$j]; //#28147 - if ($_.dontdraw) { //#28149 - $_.usematrix = true; //#28149 - } //#28149 - $search($_.barcode, "|"); //#28152 - if ($k[--$j]) { //#28157 - $_.linear = $k[--$j]; //#28153 + for (var _Bj = 0, _Bk = 28; _Bj < _Bk; _Bj++) { //#28027 + $k[$j++] = 0; //#28027 + } //#28027 + $_.cws = $a(); //#28027 + $_.b = 0; //#28028 + $_.c = 0; //#28028 + for (;;) { //#28052 + if ($_.b == $_.bits.length) { //#28030 + break; //#28030 + } //#28030 + var _Bo = $_.bits; //#28031 + var _Bp = $_.b; //#28031 + var _Bq = $_.bits; //#28031 + var _Br = $_.b; //#28031 + var _Bs = _Bq.length - _Br; //#28031 + var _Bt = 69; //#28031 + if (69 > (_Bq.length - _Br)) { //#28031 + var _ = _Bs; //#28031 + _Bs = _Bt; //#28031 + _Bt = _; //#28031 + } //#28031 + $_.bs = $geti(_Bo, _Bp, _Bt); //#28031 + $_.bsl = $_.bs.length; //#28032 + $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#28033 + $_.csl = $_.cs.length; //#28034 + for (var _C3 = 0, _C2 = $_.bsl - 1; _C3 <= _C2; _C3 += 1) { //#28044 + $_.i = _C3; //#28036 + for (var _C6 = 0, _C5 = $_.csl - 1; _C6 <= _C5; _C6 += 1) { //#28043 + $_.j = _C6; //#28038 + var _C7 = $_.cs; //#28039 + var _C8 = $_.j; //#28039 + $put(_C7, _C8, $f($get(_C7, _C8) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#28042 + } //#28042 + } //#28042 + for (var _CL = $_.csl - 1; _CL >= 1; _CL -= 1) { //#28049 + $_.i = _CL; //#28046 + var _CM = $_.cs; //#28047 + var _CN = $_.i; //#28047 + $put(_CM, _CN - 1, $f($get(_CM, _CN - 1) + (~~($get($_.cs, $_.i) / 928)))); //#28047 + var _CS = $_.cs; //#28048 + var _CT = $_.i; //#28048 + $put(_CS, _CT, $get(_CS, _CT) % 928); //#28048 + } //#28048 + $_.b = $_.b + $_.bsl; //#28050 + $_.c = $_.c + $_.csl; //#28051 + } //#28051 + $_.cws = $geti($_.cws, 0, $_.c); //#28053 + $_.barcode = $s($_.cws.length * 4); //#28054 + for (var _Cg = 0, _Cf = $_.cws.length - 1; _Cg <= _Cf; _Cg += 1) { //#28060 + $_.i = _Cg; //#28056 + var _Ci = $strcpy($s(4), "^000"); //#28057 + var _Cn = $cvrs($s(4), $get($_.cws, $_.i), 10); //#28057 + $puti(_Ci, 4 - _Cn.length, _Cn); //#28058 + $puti($_.barcode, $_.i * 4, _Ci); //#28059 + } //#28059 + delete $_.options["parse"]; //#28061 + $put($_.options, "dontdraw", true); //#28062 + $put($_.options, "cca", true); //#28063 + $put($_.options, "columns", $_.cccolumns); //#28064 + $k[$j++] = 'args'; //#28065 + $k[$j++] = $_.barcode; //#28065 + $k[$j++] = $_.options; //#28065 + bwipp_micropdf417(); //#28065 + var _Cx = $k[--$j]; //#28065 + $_[$k[--$j]] = _Cx; //#28065 + } //#28065 + if ($_.ccversion == "b") { //#28080 + $_.barcode = $s(~~($_.bits.length / 8)); //#28069 + for (var _D4 = 0, _D3 = $_.barcode.length - 1; _D4 <= _D3; _D4 += 1) { //#28074 + $_.i = _D4; //#28071 + var _D7 = $geti($_.bits, $_.i * 8, 8); //#28072 + $k[$j++] = 0; //#28072 + for (var _D8 = 0, _D9 = _D7.length; _D8 < _D9; _D8++) { //#28072 + var _DB = $k[--$j]; //#28072 + $k[$j++] = $f(_DB + $get(_D7, _D8)) * 2; //#28072 + } //#28072 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28073 + } //#28073 + delete $_.options["parse"]; //#28075 + $put($_.options, "dontdraw", true); //#28076 + $put($_.options, "ccb", true); //#28077 + $put($_.options, "columns", $_.cccolumns); //#28078 + $k[$j++] = 'args'; //#28079 + $k[$j++] = $_.barcode; //#28079 + $k[$j++] = $_.options; //#28079 + bwipp_micropdf417(); //#28079 + var _DM = $k[--$j]; //#28079 + $_[$k[--$j]] = _DM; //#28079 + } //#28079 + if ($_.ccversion == "c") { //#28095 + $_.barcode = $s(~~($_.bits.length / 8)); //#28083 + for (var _DT = 0, _DS = $_.barcode.length - 1; _DT <= _DS; _DT += 1) { //#28088 + $_.i = _DT; //#28085 + var _DW = $geti($_.bits, $_.i * 8, 8); //#28086 + $k[$j++] = 0; //#28086 + for (var _DX = 0, _DY = _DW.length; _DX < _DY; _DX++) { //#28086 + var _Da = $k[--$j]; //#28086 + $k[$j++] = $f(_Da + $get(_DW, _DX)) * 2; //#28086 + } //#28086 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28087 + } //#28087 + delete $_.options["parse"]; //#28089 + $put($_.options, "dontdraw", true); //#28090 + $put($_.options, "ccc", true); //#28091 + $put($_.options, "columns", $_.cccolumns); //#28092 + $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#28093 + $k[$j++] = 'args'; //#28094 + $k[$j++] = $_.barcode; //#28094 + $k[$j++] = $_.options; //#28094 + bwipp_pdf417(); //#28094 + var _Dn = $k[--$j]; //#28094 + $_[$k[--$j]] = _Dn; //#28094 + } //#28094 + $k[$j++] = $_.args; //#28098 + if (!$_.dontdraw) { //#28098 + bwipp_renmatrix(); //#28098 + } //#28098 + $_ = Object.getPrototypeOf($_); //#28100 + $_ = Object.getPrototypeOf($_); //#28102 +} //bwipp_gs1_cc +function bwipp_ean13composite() { + $_ = Object.create($_); //#28134 + $_.dontdraw = false; //#28137 + $_.usematrix = false; //#28138 + $_.parse = false; //#28139 + $_.dontlint = false; //#28140 + $_.lintreqs = true; //#28141 + $k[$j++] = $_; //#28143 + bwipp_processoptions(); //#28143 + $_.options = $k[--$j]; //#28143 + $_.barcode = $k[--$j]; //#28144 + if ($_.dontdraw) { //#28146 + $_.usematrix = true; //#28146 + } //#28146 + $search($_.barcode, "|"); //#28149 + if ($k[--$j]) { //#28154 + $_.linear = $k[--$j]; //#28150 + $j--; //#28151 + $_.comp = $k[--$j]; //#28152 + } else { //#28154 $j--; //#28154 - $_.comp = $k[--$j]; //#28155 - } else { //#28157 - $j--; //#28157 - $k[$j++] = 'bwipp.missingCompositeComponent#28157'; //#28157 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28157 - bwipp_raiseerror(); //#28157 - } //#28157 - $put($_.options, "lintype", "ean13"); //#28160 - $put($_.options, "inkspread", "0"); //#28161 - $put($_.options, "dontdraw", true); //#28162 - $put($_.options, "dontlint", true); //#28163 - var _C = $s($_.comp.length + 18); //#28166 - $puti(_C, 0, "(01)00000000000000"); //#28167 - $puti(_C, 18, $_.comp); //#28168 - $k[$j++] = _C; //#28169 - $k[$j++] = 'ai'; //#28169 - bwipp_gs1process(); //#28169 - $j -= 3; //#28169 - $k[$j++] = $_.linear; //#28172 - $k[$j++] = $_.options; //#28172 - bwipp_upca(); //#28172 - if (!$_.usematrix) { //#28262 - $$.save(); //#28174 - bwipp_renlinear(); //#28176 - $$.rmoveto(-1, 72); //#28179 - $k[$j++] = Infinity; //#28190 - $k[$j++] = Infinity; //#28184 - $k[$j++] = 0; //#28182 - $k[$j++] = 1; //#28182 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#28182 - $k[$j++] = 0; //#28182 - } //#28182 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#28183 - $k[$j++] = 0; //#28183 - } //#28183 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#28184 - $k[$j++] = 0; //#28184 - } //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - var _N = $a(); //#28184 - $k[$j++] = 'ren'; //#28190 - $k[$j++] = bwipp_renmatrix; //#28190 - $k[$j++] = 'pixs'; //#28190 - $k[$j++] = _N; //#28190 - $k[$j++] = 'pixx'; //#28190 - $k[$j++] = 97; //#28190 - $k[$j++] = 'pixy'; //#28190 - $k[$j++] = 3; //#28190 - $k[$j++] = 'height'; //#28190 - $k[$j++] = 6 / 72; //#28190 - $k[$j++] = 'width'; //#28190 - $k[$j++] = 97 / 72; //#28190 - $k[$j++] = 'opt'; //#28190 - $k[$j++] = $_.options; //#28190 - var _P = $d(); //#28190 - $k[$j++] = _P; //#28191 + $k[$j++] = 'bwipp.missingCompositeComponent#28154'; //#28154 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28154 + bwipp_raiseerror(); //#28154 + } //#28154 + $put($_.options, "lintype", "ean13"); //#28157 + $put($_.options, "inkspreadv", 0); //#28158 + $put($_.options, "dontdraw", true); //#28159 + $put($_.options, "dontlint", true); //#28160 + var _C = $s($_.comp.length + 18); //#28163 + $puti(_C, 0, "(01)00000000000000"); //#28164 + $puti(_C, 18, $_.comp); //#28165 + $k[$j++] = _C; //#28166 + $k[$j++] = 'ai'; //#28166 + bwipp_gs1process(); //#28166 + $j -= 3; //#28166 + $k[$j++] = $_.linear; //#28169 + $k[$j++] = $_.options; //#28169 + bwipp_ean13(); //#28169 + if (!$_.usematrix) { //#28259 + $$.save(); //#28171 + bwipp_renlinear(); //#28173 + $$.rmoveto(-1, 72); //#28176 + $k[$j++] = Infinity; //#28176 + $k[$j++] = Infinity; //#28178 + $k[$j++] = 0; //#28179 + $k[$j++] = 1; //#28179 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28179 + $k[$j++] = 0; //#28179 + } //#28179 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28180 + $k[$j++] = 0; //#28180 + } //#28180 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28181 + $k[$j++] = 0; //#28181 + } //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + var _N = $a(); //#28181 + $k[$j++] = 'ren'; //#28187 + $k[$j++] = bwipp_renmatrix; //#28187 + $k[$j++] = 'pixs'; //#28187 + $k[$j++] = _N; //#28187 + $k[$j++] = 'pixx'; //#28187 + $k[$j++] = 97; //#28187 + $k[$j++] = 'pixy'; //#28187 + $k[$j++] = 3; //#28187 + $k[$j++] = 'height'; //#28187 + $k[$j++] = 6 / 72; //#28187 + $k[$j++] = 'width'; //#28187 + $k[$j++] = 97 / 72; //#28187 + $k[$j++] = 'opt'; //#28187 + $k[$j++] = $_.options; //#28187 + var _P = $d(); //#28187 + $k[$j++] = _P; //#28188 + bwipp_renmatrix(); //#28188 + $$.rmoveto(-2, 6); //#28191 + $k[$j++] = $_.comp; //#28191 + $k[$j++] = $_.options; //#28191 + bwipp_gs1_cc(); //#28191 bwipp_renmatrix(); //#28191 - $$.rmoveto(-2, 6); //#28194 - $k[$j++] = $_.comp; //#28194 - $k[$j++] = $_.options; //#28194 - bwipp_gs1_cc(); //#28194 - bwipp_renmatrix(); //#28194 - $$.restore(); //#28196 - } else { //#28262 - $_.linsym = $k[--$j]; //#28198 - $_.sbs = $get($_.linsym, 'sbs'); //#28199 - $_.bhs = $get($_.linsym, 'bhs'); //#28200 - $_.bbs = $get($_.linsym, 'bbs'); //#28201 - $k[$j++] = 'linwidth'; //#28202 - $k[$j++] = 0; //#28202 - $forall($_.sbs, function() { //#28202 - var _a = $k[--$j]; //#28202 - var _b = $k[--$j]; //#28202 - $k[$j++] = $f(_b + $cvi(_a)); //#28202 - }); //#28202 - var _c = $k[--$j]; //#28202 - $_[$k[--$j]] = _c; //#28202 - $k[$j++] = 'compsym'; //#28204 - $k[$j++] = $_.comp; //#28204 - $k[$j++] = $_.options; //#28204 - bwipp_gs1_cc(); //#28204 - var _g = $k[--$j]; //#28204 - $_[$k[--$j]] = _g; //#28204 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28205 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28206 - $k[$j++] = Infinity; //#28208 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28208 - $k[$j++] = 0; //#28208 - } //#28208 - $_.linpad = $a(); //#28208 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28210 - if ($_.diff > 0) { //#28216 - $k[$j++] = Infinity; //#28212 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28212 - $k[$j++] = 0; //#28212 - } //#28212 - $_.ccrpad = $a(); //#28212 - $_.pixx = $f($_.ccpixx + $_.diff); //#28213 - } else { //#28216 - $_.ccrpad = $a(0); //#28215 - $_.pixx = $_.ccpixx; //#28216 - } //#28216 - $k[$j++] = Infinity; //#28244 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28223 - $_.i = _15; //#28221 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28222 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28222 - $aload($_.ccrpad); //#28222 + $$.restore(); //#28193 + } else { //#28259 + $_.linsym = $k[--$j]; //#28195 + $_.sbs = $get($_.linsym, 'sbs'); //#28196 + $_.bhs = $get($_.linsym, 'bhs'); //#28197 + $_.bbs = $get($_.linsym, 'bbs'); //#28198 + $k[$j++] = 'linwidth'; //#28199 + $k[$j++] = 0; //#28199 + $forall($_.sbs, function() { //#28199 + var _a = $k[--$j]; //#28199 + var _b = $k[--$j]; //#28199 + $k[$j++] = $f(_b + $cvi(_a)); //#28199 + }); //#28199 + var _c = $k[--$j]; //#28199 + $_[$k[--$j]] = _c; //#28199 + $k[$j++] = 'compsym'; //#28201 + $k[$j++] = $_.comp; //#28201 + $k[$j++] = $_.options; //#28201 + bwipp_gs1_cc(); //#28201 + var _g = $k[--$j]; //#28201 + $_[$k[--$j]] = _g; //#28201 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28202 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28203 + $k[$j++] = Infinity; //#28205 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28205 + $k[$j++] = 0; //#28205 + } //#28205 + $_.linpad = $a(); //#28205 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28207 + if ($_.diff > 0) { //#28213 + $k[$j++] = Infinity; //#28209 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28209 + $k[$j++] = 0; //#28209 + } //#28209 + $_.ccrpad = $a(); //#28209 + $_.pixx = $f($_.ccpixx + $_.diff); //#28210 + } else { //#28213 + $_.ccrpad = $a(0); //#28212 + $_.pixx = $_.ccpixx; //#28213 + } //#28213 + $k[$j++] = Infinity; //#28216 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28220 + $_.i = _15; //#28218 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28219 + $aload($_.ccrpad); //#28219 + } //#28219 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28221 + $aload($_.linpad); //#28221 + $k[$j++] = 0; //#28221 + $k[$j++] = 1; //#28221 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28221 + $k[$j++] = 0; //#28221 + } //#28221 + $k[$j++] = 1; //#28221 + $k[$j++] = 0; //#28221 + $aload($_.ccrpad); //#28221 + } //#28221 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28222 + $aload($_.linpad); //#28222 + $k[$j++] = 1; //#28222 + $k[$j++] = 0; //#28222 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28222 + $k[$j++] = 0; //#28222 } //#28222 + $k[$j++] = 0; //#28222 + $k[$j++] = 1; //#28222 + $aload($_.ccrpad); //#28222 } //#28222 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28224 - $aload($_.linpad); //#28224 - $k[$j++] = 0; //#28224 - $k[$j++] = 1; //#28224 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#28224 - $k[$j++] = 0; //#28224 - } //#28224 - $k[$j++] = 1; //#28224 - $k[$j++] = 0; //#28224 - $aload($_.ccrpad); //#28224 - } //#28224 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#28225 - $aload($_.linpad); //#28225 - $k[$j++] = 1; //#28225 - $k[$j++] = 0; //#28225 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#28225 - $k[$j++] = 0; //#28225 - } //#28225 - $k[$j++] = 0; //#28225 - $k[$j++] = 1; //#28225 - $aload($_.ccrpad); //#28225 - } //#28225 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#28226 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28223 + $aload($_.linpad); //#28223 + $k[$j++] = 0; //#28223 + $k[$j++] = 1; //#28223 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28223 + $k[$j++] = 0; //#28223 + } //#28223 + $k[$j++] = 1; //#28223 + $k[$j++] = 0; //#28223 + $aload($_.ccrpad); //#28223 + } //#28223 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28242 + $_.y = _1U; //#28225 $aload($_.linpad); //#28226 - $k[$j++] = 0; //#28226 - $k[$j++] = 1; //#28226 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#28226 - $k[$j++] = 0; //#28226 - } //#28226 - $k[$j++] = 1; //#28226 - $k[$j++] = 0; //#28226 - $aload($_.ccrpad); //#28226 - } //#28226 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#28245 - $_.y = _1W; //#28228 - $aload($_.linpad); //#28229 - $k[$j++] = 0; //#28243 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#28243 - $_.i = _1a; //#28232 - if (($_.i % 2) == 0) { //#28241 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#28235 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28238 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#28236 - $k[$j++] = 0; //#28236 - } //#28236 - } else { //#28238 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#28238 - $k[$j++] = 1; //#28238 - } //#28238 + $k[$j++] = 0; //#28240 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28240 + $_.i = _1Y; //#28229 + if (($_.i % 2) == 0) { //#28238 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28232 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28235 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28233 + $k[$j++] = 0; //#28233 + } //#28233 + } else { //#28235 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28235 + $k[$j++] = 1; //#28235 + } //#28235 + } //#28235 + } else { //#28238 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28238 + $k[$j++] = 0; //#28238 } //#28238 - } else { //#28241 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#28241 - $k[$j++] = 0; //#28241 - } //#28241 - } //#28241 + } //#28238 + } //#28238 + if ($_.diff < 0) { //#28241 + $k[$j++] = 0; //#28241 } //#28241 - $k[$j++] = 0; //#28244 - } //#28244 - $_.pixs = $a(); //#28244 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28248 - var _29 = new Map([ + } //#28241 + $_.pixs = $a(); //#28241 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28245 + var _28 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36392,105 +36450,106 @@ function bwipp_upcacomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28256 - $k[$j++] = _29; //#28263 - if (!$_.dontdraw) { //#28263 - $$.save(); //#28260 - bwipp_renmatrix(); //#28261 - $$.restore(); //#28262 - } //#28262 - } //#28262 - $_ = Object.getPrototypeOf($_); //#28266 -} - -function bwipp_upcecomposite() { - $_ = Object.create($_); //#28298 - $_.dontdraw = false; //#28301 - $_.usematrix = false; //#28302 - $_.parse = false; //#28303 - $_.dontlint = false; //#28304 - $_.lintreqs = true; //#28305 - $k[$j++] = $_; //#28307 - bwipp_processoptions(); //#28307 - $_.options = $k[--$j]; //#28307 - $_.barcode = $k[--$j]; //#28308 - if ($_.dontdraw) { //#28310 - $_.usematrix = true; //#28310 - } //#28310 - $search($_.barcode, "|"); //#28313 - if ($k[--$j]) { //#28318 - $_.linear = $k[--$j]; //#28314 + ]); //#28253 + $k[$j++] = _28; //#28260 + if (!$_.dontdraw) { //#28260 + $$.save(); //#28257 + bwipp_renmatrix(); //#28258 + $$.restore(); //#28259 + } //#28259 + } //#28259 + $_ = Object.getPrototypeOf($_); //#28263 +} //bwipp_ean13composite +function bwipp_ean8composite() { + $_ = Object.create($_); //#28295 + $_.dontdraw = false; //#28298 + $_.usematrix = false; //#28299 + $_.parse = false; //#28300 + $_.dontlint = false; //#28301 + $_.lintreqs = true; //#28302 + $k[$j++] = $_; //#28304 + bwipp_processoptions(); //#28304 + $_.options = $k[--$j]; //#28304 + $_.barcode = $k[--$j]; //#28305 + if ($_.dontdraw) { //#28307 + $_.usematrix = true; //#28307 + } //#28307 + $search($_.barcode, "|"); //#28310 + if ($k[--$j]) { //#28315 + $_.linear = $k[--$j]; //#28311 + $j--; //#28312 + $_.comp = $k[--$j]; //#28313 + } else { //#28315 $j--; //#28315 - $_.comp = $k[--$j]; //#28316 - } else { //#28318 - $j--; //#28318 - $k[$j++] = 'bwipp.missingCompositeComponent#28318'; //#28318 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28318 - bwipp_raiseerror(); //#28318 - } //#28318 - $put($_.options, "lintype", "upce"); //#28321 - $put($_.options, "inkspread", "0"); //#28322 - $put($_.options, "dontdraw", true); //#28323 - $put($_.options, "dontlint", true); //#28324 - var _C = $s($_.comp.length + 18); //#28327 - $puti(_C, 0, "(01)00000000000000"); //#28328 - $puti(_C, 18, $_.comp); //#28329 - $k[$j++] = _C; //#28330 - $k[$j++] = 'ai'; //#28330 - bwipp_gs1process(); //#28330 - $j -= 3; //#28330 - $k[$j++] = $_.linear; //#28333 - $k[$j++] = $_.options; //#28333 - bwipp_upce(); //#28333 + $k[$j++] = 'bwipp.missingCompositeComponent#28315'; //#28315 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28315 + bwipp_raiseerror(); //#28315 + } //#28315 + $put($_.options, "lintype", "ean8"); //#28319 + $put($_.options, "inkspreadv", 0); //#28320 + $put($_.options, "dontdraw", true); //#28321 + $put($_.options, "dontlint", true); //#28322 + var _C = $s($_.comp.length + 18); //#28325 + $puti(_C, 0, "(01)00000000000000"); //#28326 + $puti(_C, 18, $_.comp); //#28327 + $k[$j++] = _C; //#28328 + $k[$j++] = 'ai'; //#28328 + bwipp_gs1process(); //#28328 + $j -= 3; //#28328 + $k[$j++] = $_.linear; //#28331 + $k[$j++] = $_.options; //#28331 + bwipp_ean8(); //#28331 if (!$_.usematrix) { //#28423 - $$.save(); //#28335 - bwipp_renlinear(); //#28337 - $$.rmoveto(-1, 72); //#28340 - $k[$j++] = Infinity; //#28351 - $k[$j++] = Infinity; //#28345 + $$.save(); //#28333 + bwipp_renlinear(); //#28335 + $$.rmoveto(-1, 72); //#28338 + $k[$j++] = Infinity; //#28338 + $k[$j++] = Infinity; //#28340 + $k[$j++] = 0; //#28341 + $k[$j++] = 1; //#28341 + for (var _H = 0, _I = 65; _H < _I; _H++) { //#28341 + $k[$j++] = 0; //#28341 + } //#28341 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + for (var _J = 0, _K = 65; _J < _K; _J++) { //#28342 + $k[$j++] = 0; //#28342 + } //#28342 $k[$j++] = 0; //#28343 $k[$j++] = 1; //#28343 - for (var _H = 0, _I = 49; _H < _I; _H++) { //#28343 + $k[$j++] = 0; //#28343 + $k[$j++] = 1; //#28343 + for (var _L = 0, _M = 65; _L < _M; _L++) { //#28343 $k[$j++] = 0; //#28343 } //#28343 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - for (var _J = 0, _K = 49; _J < _K; _J++) { //#28344 - $k[$j++] = 0; //#28344 - } //#28344 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - for (var _L = 0, _M = 49; _L < _M; _L++) { //#28345 - $k[$j++] = 0; //#28345 - } //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - var _N = $a(); //#28345 - $k[$j++] = 'ren'; //#28351 - $k[$j++] = bwipp_renmatrix; //#28351 - $k[$j++] = 'pixs'; //#28351 - $k[$j++] = _N; //#28351 - $k[$j++] = 'pixx'; //#28351 - $k[$j++] = 53; //#28351 - $k[$j++] = 'pixy'; //#28351 - $k[$j++] = 3; //#28351 - $k[$j++] = 'height'; //#28351 - $k[$j++] = 6 / 72; //#28351 - $k[$j++] = 'width'; //#28351 - $k[$j++] = 53 / 72; //#28351 - $k[$j++] = 'opt'; //#28351 - $k[$j++] = $_.options; //#28351 - var _P = $d(); //#28351 - $k[$j++] = _P; //#28352 - bwipp_renmatrix(); //#28352 - $$.rmoveto(-2, 6); //#28355 - $k[$j++] = $_.comp; //#28355 - $k[$j++] = $_.options; //#28355 - bwipp_gs1_cc(); //#28355 + $k[$j++] = 1; //#28343 + $k[$j++] = 0; //#28343 + var _N = $a(); //#28343 + $k[$j++] = 'ren'; //#28349 + $k[$j++] = bwipp_renmatrix; //#28349 + $k[$j++] = 'pixs'; //#28349 + $k[$j++] = _N; //#28349 + $k[$j++] = 'pixx'; //#28349 + $k[$j++] = 69; //#28349 + $k[$j++] = 'pixy'; //#28349 + $k[$j++] = 3; //#28349 + $k[$j++] = 'height'; //#28349 + $k[$j++] = 6 / 72; //#28349 + $k[$j++] = 'width'; //#28349 + $k[$j++] = 69 / 72; //#28349 + $k[$j++] = 'opt'; //#28349 + $k[$j++] = $_.options; //#28349 + var _P = $d(); //#28349 + $k[$j++] = _P; //#28350 + bwipp_renmatrix(); //#28350 + $k[$j++] = $_.comp; //#28353 + $k[$j++] = $_.options; //#28353 + bwipp_gs1_cc(); //#28353 + var _S = $k[--$j]; //#28354 + $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28354 + $k[$j++] = _S; //#28355 bwipp_renmatrix(); //#28355 $$.restore(); //#28357 } else { //#28423 @@ -36501,29 +36560,30 @@ function bwipp_upcecomposite() { $k[$j++] = 'linwidth'; //#28363 $k[$j++] = 0; //#28363 $forall($_.sbs, function() { //#28363 - var _a = $k[--$j]; //#28363 - var _b = $k[--$j]; //#28363 - $k[$j++] = $f(_b + $cvi(_a)); //#28363 + var _c = $k[--$j]; //#28363 + var _d = $k[--$j]; //#28363 + $k[$j++] = $f(_d + $cvi(_c)); //#28363 }); //#28363 - var _c = $k[--$j]; //#28363 - $_[$k[--$j]] = _c; //#28363 + var _e = $k[--$j]; //#28363 + $_[$k[--$j]] = _e; //#28363 + var _g = $_.comp; //#28365 $k[$j++] = 'compsym'; //#28365 - $k[$j++] = $_.comp; //#28365 + $k[$j++] = _g; //#28365 $k[$j++] = $_.options; //#28365 bwipp_gs1_cc(); //#28365 - var _g = $k[--$j]; //#28365 - $_[$k[--$j]] = _g; //#28365 + var _i = $k[--$j]; //#28365 + $_[$k[--$j]] = _i; //#28365 $_.ccpixs = $get($_.compsym, 'pixs'); //#28366 $_.ccpixx = $get($_.compsym, 'pixx'); //#28367 $k[$j++] = Infinity; //#28369 - for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28369 + for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28369 $k[$j++] = 0; //#28369 } //#28369 $_.linpad = $a(); //#28369 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28371 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28371 if ($_.diff > 0) { //#28377 $k[$j++] = Infinity; //#28373 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28373 + for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28373 $k[$j++] = 0; //#28373 } //#28373 $_.ccrpad = $a(); //#28373 @@ -36532,19 +36592,17 @@ function bwipp_upcecomposite() { $_.ccrpad = $a(0); //#28376 $_.pixx = $_.ccpixx; //#28377 } //#28377 - $k[$j++] = Infinity; //#28405 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28384 - $_.i = _15; //#28382 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28383 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 - $aload($_.ccrpad); //#28383 - } //#28383 + $k[$j++] = Infinity; //#28380 + for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28384 + $_.i = _17; //#28382 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 + $aload($_.ccrpad); //#28383 } //#28383 for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28385 $aload($_.linpad); //#28385 $k[$j++] = 0; //#28385 $k[$j++] = 1; //#28385 - for (var _1H = 0, _1I = 49; _1H < _1I; _1H++) { //#28385 + for (var _1H = 0, _1I = 65; _1H < _1I; _1H++) { //#28385 $k[$j++] = 0; //#28385 } //#28385 $k[$j++] = 1; //#28385 @@ -36555,7 +36613,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28386 $k[$j++] = 1; //#28386 $k[$j++] = 0; //#28386 - for (var _1N = 0, _1O = 49; _1N < _1O; _1N++) { //#28386 + for (var _1N = 0, _1O = 65; _1N < _1O; _1N++) { //#28386 $k[$j++] = 0; //#28386 } //#28386 $k[$j++] = 0; //#28386 @@ -36566,7 +36624,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28387 $k[$j++] = 0; //#28387 $k[$j++] = 1; //#28387 - for (var _1T = 0, _1U = 49; _1T < _1U; _1T++) { //#28387 + for (var _1T = 0, _1U = 65; _1T < _1U; _1T++) { //#28387 $k[$j++] = 0; //#28387 } //#28387 $k[$j++] = 1; //#28387 @@ -36596,11 +36654,13 @@ function bwipp_upcecomposite() { } //#28402 } //#28402 } //#28402 - $k[$j++] = 0; //#28405 + if ($_.diff < 0) { //#28405 + $k[$j++] = 0; //#28405 + } //#28405 } //#28405 $_.pixs = $a(); //#28405 $_.pixy = ~~($_.pixs.length / $_.pixx); //#28409 - var _29 = new Map([ + var _2A = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36609,7 +36669,7 @@ function bwipp_upcecomposite() { ["width", $_.pixx / 72], ["opt", $_.options] ]); //#28417 - $k[$j++] = _29; //#28424 + $k[$j++] = _2A; //#28424 if (!$_.dontdraw) { //#28424 $$.save(); //#28421 bwipp_renmatrix(); //#28422 @@ -36617,9 +36677,8 @@ function bwipp_upcecomposite() { } //#28423 } //#28423 $_ = Object.getPrototypeOf($_); //#28427 -} - -function bwipp_databaromnicomposite() { +} //bwipp_ean8composite +function bwipp_upcacomposite() { $_ = Object.create($_); //#28459 $_.dontdraw = false; //#28462 $_.usematrix = false; //#28463 @@ -36644,87 +36703,517 @@ function bwipp_databaromnicomposite() { $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28479 bwipp_raiseerror(); //#28479 } //#28479 - if (!$_.usematrix) { //#28482 - $$.save(); //#28482 - } //#28482 - $put($_.options, "lintype", "databaromni"); //#28484 - $put($_.options, "linkage", true); //#28485 - $put($_.options, "inkspread", "0"); //#28486 - $put($_.options, "dontdraw", true); //#28487 - $put($_.options, "dontlint", true); //#28488 - var _F = $s($_.linear.length + $_.comp.length); //#28491 - $puti(_F, 0, $_.linear); //#28492 - $puti(_F, $_.linear.length, $_.comp); //#28493 - $k[$j++] = _F; //#28494 - $k[$j++] = 'ai'; //#28494 - bwipp_gs1process(); //#28494 - $j -= 3; //#28494 - $k[$j++] = $_.linear; //#28497 - $k[$j++] = $_.options; //#28497 - bwipp_databaromni(); //#28497 - var _L = $k[--$j]; //#28498 - $_.linsbs = $get(_L, "sbs"); //#28498 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28499 - $k[$j++] = _L; //#28500 - if (!$_.usematrix) { //#28500 - bwipp_renlinear(); //#28500 - } else { //#28500 - $j--; //#28500 - } //#28500 + $put($_.options, "lintype", "ean13"); //#28482 + $put($_.options, "inkspreadv", 0); //#28483 + $put($_.options, "dontdraw", true); //#28484 + $put($_.options, "dontlint", true); //#28485 + var _C = $s($_.comp.length + 18); //#28488 + $puti(_C, 0, "(01)00000000000000"); //#28489 + $puti(_C, 18, $_.comp); //#28490 + $k[$j++] = _C; //#28491 + $k[$j++] = 'ai'; //#28491 + bwipp_gs1process(); //#28491 + $j -= 3; //#28491 + $k[$j++] = $_.linear; //#28494 + $k[$j++] = $_.options; //#28494 + bwipp_upca(); //#28494 + if (!$_.usematrix) { //#28584 + $$.save(); //#28496 + bwipp_renlinear(); //#28498 + $$.rmoveto(-1, 72); //#28501 + $k[$j++] = Infinity; //#28501 + $k[$j++] = Infinity; //#28503 + $k[$j++] = 0; //#28504 + $k[$j++] = 1; //#28504 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28504 + $k[$j++] = 0; //#28504 + } //#28504 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28505 + $k[$j++] = 0; //#28505 + } //#28505 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28506 + $k[$j++] = 0; //#28506 + } //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + var _N = $a(); //#28506 + $k[$j++] = 'ren'; //#28512 + $k[$j++] = bwipp_renmatrix; //#28512 + $k[$j++] = 'pixs'; //#28512 + $k[$j++] = _N; //#28512 + $k[$j++] = 'pixx'; //#28512 + $k[$j++] = 97; //#28512 + $k[$j++] = 'pixy'; //#28512 + $k[$j++] = 3; //#28512 + $k[$j++] = 'height'; //#28512 + $k[$j++] = 6 / 72; //#28512 + $k[$j++] = 'width'; //#28512 + $k[$j++] = 97 / 72; //#28512 + $k[$j++] = 'opt'; //#28512 + $k[$j++] = $_.options; //#28512 + var _P = $d(); //#28512 + $k[$j++] = _P; //#28513 + bwipp_renmatrix(); //#28513 + $$.rmoveto(-2, 6); //#28516 + $k[$j++] = $_.comp; //#28516 + $k[$j++] = $_.options; //#28516 + bwipp_gs1_cc(); //#28516 + bwipp_renmatrix(); //#28516 + $$.restore(); //#28518 + } else { //#28584 + $_.linsym = $k[--$j]; //#28520 + $_.sbs = $get($_.linsym, 'sbs'); //#28521 + $_.bhs = $get($_.linsym, 'bhs'); //#28522 + $_.bbs = $get($_.linsym, 'bbs'); //#28523 + $k[$j++] = 'linwidth'; //#28524 + $k[$j++] = 0; //#28524 + $forall($_.sbs, function() { //#28524 + var _a = $k[--$j]; //#28524 + var _b = $k[--$j]; //#28524 + $k[$j++] = $f(_b + $cvi(_a)); //#28524 + }); //#28524 + var _c = $k[--$j]; //#28524 + $_[$k[--$j]] = _c; //#28524 + $k[$j++] = 'compsym'; //#28526 + $k[$j++] = $_.comp; //#28526 + $k[$j++] = $_.options; //#28526 + bwipp_gs1_cc(); //#28526 + var _g = $k[--$j]; //#28526 + $_[$k[--$j]] = _g; //#28526 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28527 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28528 + $k[$j++] = Infinity; //#28530 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28530 + $k[$j++] = 0; //#28530 + } //#28530 + $_.linpad = $a(); //#28530 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28532 + if ($_.diff > 0) { //#28538 + $k[$j++] = Infinity; //#28534 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28534 + $k[$j++] = 0; //#28534 + } //#28534 + $_.ccrpad = $a(); //#28534 + $_.pixx = $f($_.ccpixx + $_.diff); //#28535 + } else { //#28538 + $_.ccrpad = $a(0); //#28537 + $_.pixx = $_.ccpixx; //#28538 + } //#28538 + $k[$j++] = Infinity; //#28541 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28545 + $_.i = _15; //#28543 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28544 + $aload($_.ccrpad); //#28544 + } //#28544 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28546 + $aload($_.linpad); //#28546 + $k[$j++] = 0; //#28546 + $k[$j++] = 1; //#28546 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28546 + $k[$j++] = 0; //#28546 + } //#28546 + $k[$j++] = 1; //#28546 + $k[$j++] = 0; //#28546 + $aload($_.ccrpad); //#28546 + } //#28546 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28547 + $aload($_.linpad); //#28547 + $k[$j++] = 1; //#28547 + $k[$j++] = 0; //#28547 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28547 + $k[$j++] = 0; //#28547 + } //#28547 + $k[$j++] = 0; //#28547 + $k[$j++] = 1; //#28547 + $aload($_.ccrpad); //#28547 + } //#28547 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28548 + $aload($_.linpad); //#28548 + $k[$j++] = 0; //#28548 + $k[$j++] = 1; //#28548 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28548 + $k[$j++] = 0; //#28548 + } //#28548 + $k[$j++] = 1; //#28548 + $k[$j++] = 0; //#28548 + $aload($_.ccrpad); //#28548 + } //#28548 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28567 + $_.y = _1U; //#28550 + $aload($_.linpad); //#28551 + $k[$j++] = 0; //#28565 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28565 + $_.i = _1Y; //#28554 + if (($_.i % 2) == 0) { //#28563 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28557 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28560 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28558 + $k[$j++] = 0; //#28558 + } //#28558 + } else { //#28560 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28560 + $k[$j++] = 1; //#28560 + } //#28560 + } //#28560 + } else { //#28563 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28563 + $k[$j++] = 0; //#28563 + } //#28563 + } //#28563 + } //#28563 + if ($_.diff < 0) { //#28566 + $k[$j++] = 0; //#28566 + } //#28566 + } //#28566 + $_.pixs = $a(); //#28566 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28570 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28578 + $k[$j++] = _28; //#28585 + if (!$_.dontdraw) { //#28585 + $$.save(); //#28582 + bwipp_renmatrix(); //#28583 + $$.restore(); //#28584 + } //#28584 + } //#28584 + $_ = Object.getPrototypeOf($_); //#28588 +} //bwipp_upcacomposite +function bwipp_upcecomposite() { + $_ = Object.create($_); //#28620 + $_.dontdraw = false; //#28623 + $_.usematrix = false; //#28624 + $_.parse = false; //#28625 + $_.dontlint = false; //#28626 + $_.lintreqs = true; //#28627 + $k[$j++] = $_; //#28629 + bwipp_processoptions(); //#28629 + $_.options = $k[--$j]; //#28629 + $_.barcode = $k[--$j]; //#28630 + if ($_.dontdraw) { //#28632 + $_.usematrix = true; //#28632 + } //#28632 + $search($_.barcode, "|"); //#28635 + if ($k[--$j]) { //#28640 + $_.linear = $k[--$j]; //#28636 + $j--; //#28637 + $_.comp = $k[--$j]; //#28638 + } else { //#28640 + $j--; //#28640 + $k[$j++] = 'bwipp.missingCompositeComponent#28640'; //#28640 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28640 + bwipp_raiseerror(); //#28640 + } //#28640 + $put($_.options, "lintype", "upce"); //#28643 + $put($_.options, "inkspreadv", 0); //#28644 + $put($_.options, "dontdraw", true); //#28645 + $put($_.options, "dontlint", true); //#28646 + var _C = $s($_.comp.length + 18); //#28649 + $puti(_C, 0, "(01)00000000000000"); //#28650 + $puti(_C, 18, $_.comp); //#28651 + $k[$j++] = _C; //#28652 + $k[$j++] = 'ai'; //#28652 + bwipp_gs1process(); //#28652 + $j -= 3; //#28652 + $k[$j++] = $_.linear; //#28655 + $k[$j++] = $_.options; //#28655 + bwipp_upce(); //#28655 + if (!$_.usematrix) { //#28745 + $$.save(); //#28657 + bwipp_renlinear(); //#28659 + $$.rmoveto(-1, 72); //#28662 + $k[$j++] = Infinity; //#28662 + $k[$j++] = Infinity; //#28664 + $k[$j++] = 0; //#28665 + $k[$j++] = 1; //#28665 + for (var _H = 0, _I = 49; _H < _I; _H++) { //#28665 + $k[$j++] = 0; //#28665 + } //#28665 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + for (var _J = 0, _K = 49; _J < _K; _J++) { //#28666 + $k[$j++] = 0; //#28666 + } //#28666 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + for (var _L = 0, _M = 49; _L < _M; _L++) { //#28667 + $k[$j++] = 0; //#28667 + } //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + var _N = $a(); //#28667 + $k[$j++] = 'ren'; //#28673 + $k[$j++] = bwipp_renmatrix; //#28673 + $k[$j++] = 'pixs'; //#28673 + $k[$j++] = _N; //#28673 + $k[$j++] = 'pixx'; //#28673 + $k[$j++] = 53; //#28673 + $k[$j++] = 'pixy'; //#28673 + $k[$j++] = 3; //#28673 + $k[$j++] = 'height'; //#28673 + $k[$j++] = 6 / 72; //#28673 + $k[$j++] = 'width'; //#28673 + $k[$j++] = 53 / 72; //#28673 + $k[$j++] = 'opt'; //#28673 + $k[$j++] = $_.options; //#28673 + var _P = $d(); //#28673 + $k[$j++] = _P; //#28674 + bwipp_renmatrix(); //#28674 + $$.rmoveto(-2, 6); //#28677 + $k[$j++] = $_.comp; //#28677 + $k[$j++] = $_.options; //#28677 + bwipp_gs1_cc(); //#28677 + bwipp_renmatrix(); //#28677 + $$.restore(); //#28679 + } else { //#28745 + $_.linsym = $k[--$j]; //#28681 + $_.sbs = $get($_.linsym, 'sbs'); //#28682 + $_.bhs = $get($_.linsym, 'bhs'); //#28683 + $_.bbs = $get($_.linsym, 'bbs'); //#28684 + $k[$j++] = 'linwidth'; //#28685 + $k[$j++] = 0; //#28685 + $forall($_.sbs, function() { //#28685 + var _a = $k[--$j]; //#28685 + var _b = $k[--$j]; //#28685 + $k[$j++] = $f(_b + $cvi(_a)); //#28685 + }); //#28685 + var _c = $k[--$j]; //#28685 + $_[$k[--$j]] = _c; //#28685 + $k[$j++] = 'compsym'; //#28687 + $k[$j++] = $_.comp; //#28687 + $k[$j++] = $_.options; //#28687 + bwipp_gs1_cc(); //#28687 + var _g = $k[--$j]; //#28687 + $_[$k[--$j]] = _g; //#28687 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28688 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28689 + $k[$j++] = Infinity; //#28691 + for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28691 + $k[$j++] = 0; //#28691 + } //#28691 + $_.linpad = $a(); //#28691 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28693 + if ($_.diff > 0) { //#28699 + $k[$j++] = Infinity; //#28695 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28695 + $k[$j++] = 0; //#28695 + } //#28695 + $_.ccrpad = $a(); //#28695 + $_.pixx = $f($_.ccpixx + $_.diff); //#28696 + } else { //#28699 + $_.ccrpad = $a(0); //#28698 + $_.pixx = $_.ccpixx; //#28699 + } //#28699 + $k[$j++] = Infinity; //#28702 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28706 + $_.i = _15; //#28704 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28705 + $aload($_.ccrpad); //#28705 + } //#28705 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28707 + $aload($_.linpad); //#28707 + $k[$j++] = 0; //#28707 + $k[$j++] = 1; //#28707 + for (var _1F = 0, _1G = 49; _1F < _1G; _1F++) { //#28707 + $k[$j++] = 0; //#28707 + } //#28707 + $k[$j++] = 1; //#28707 + $k[$j++] = 0; //#28707 + $aload($_.ccrpad); //#28707 + } //#28707 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28708 + $aload($_.linpad); //#28708 + $k[$j++] = 1; //#28708 + $k[$j++] = 0; //#28708 + for (var _1L = 0, _1M = 49; _1L < _1M; _1L++) { //#28708 + $k[$j++] = 0; //#28708 + } //#28708 + $k[$j++] = 0; //#28708 + $k[$j++] = 1; //#28708 + $aload($_.ccrpad); //#28708 + } //#28708 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28709 + $aload($_.linpad); //#28709 + $k[$j++] = 0; //#28709 + $k[$j++] = 1; //#28709 + for (var _1R = 0, _1S = 49; _1R < _1S; _1R++) { //#28709 + $k[$j++] = 0; //#28709 + } //#28709 + $k[$j++] = 1; //#28709 + $k[$j++] = 0; //#28709 + $aload($_.ccrpad); //#28709 + } //#28709 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28728 + $_.y = _1U; //#28711 + $aload($_.linpad); //#28712 + $k[$j++] = 0; //#28726 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28726 + $_.i = _1Y; //#28715 + if (($_.i % 2) == 0) { //#28724 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28718 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28721 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28719 + $k[$j++] = 0; //#28719 + } //#28719 + } else { //#28721 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28721 + $k[$j++] = 1; //#28721 + } //#28721 + } //#28721 + } else { //#28724 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28724 + $k[$j++] = 0; //#28724 + } //#28724 + } //#28724 + } //#28724 + if ($_.diff < 0) { //#28727 + $k[$j++] = 0; //#28727 + } //#28727 + } //#28727 + $_.pixs = $a(); //#28727 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28731 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28739 + $k[$j++] = _28; //#28746 + if (!$_.dontdraw) { //#28746 + $$.save(); //#28743 + bwipp_renmatrix(); //#28744 + $$.restore(); //#28745 + } //#28745 + } //#28745 + $_ = Object.getPrototypeOf($_); //#28749 +} //bwipp_upcecomposite +function bwipp_databaromnicomposite() { + $_ = Object.create($_); //#28781 + $_.dontdraw = false; //#28784 + $_.usematrix = false; //#28785 + $_.parse = false; //#28786 + $_.dontlint = false; //#28787 + $_.lintreqs = true; //#28788 + $k[$j++] = $_; //#28790 + bwipp_processoptions(); //#28790 + $_.options = $k[--$j]; //#28790 + $_.barcode = $k[--$j]; //#28791 + if ($_.dontdraw) { //#28793 + $_.usematrix = true; //#28793 + } //#28793 + $search($_.barcode, "|"); //#28796 + if ($k[--$j]) { //#28801 + $_.linear = $k[--$j]; //#28797 + $j--; //#28798 + $_.comp = $k[--$j]; //#28799 + } else { //#28801 + $j--; //#28801 + $k[$j++] = 'bwipp.missingCompositeComponent#28801'; //#28801 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28801 + bwipp_raiseerror(); //#28801 + } //#28801 + if (!$_.usematrix) { //#28804 + $$.save(); //#28804 + } //#28804 + $put($_.options, "lintype", "databaromni"); //#28806 + $put($_.options, "linkage", true); //#28807 + $put($_.options, "inkspreadv", 0); //#28808 + $put($_.options, "dontdraw", true); //#28809 + $put($_.options, "dontlint", true); //#28810 + var _F = $s($_.linear.length + $_.comp.length); //#28813 + $puti(_F, 0, $_.linear); //#28814 + $puti(_F, $_.linear.length, $_.comp); //#28815 + $k[$j++] = _F; //#28816 + $k[$j++] = 'ai'; //#28816 + bwipp_gs1process(); //#28816 + $j -= 3; //#28816 + $k[$j++] = $_.linear; //#28819 + $k[$j++] = $_.options; //#28819 + bwipp_databaromni(); //#28819 + var _L = $k[--$j]; //#28820 + $_.linsbs = $get(_L, "sbs"); //#28820 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28821 + $k[$j++] = _L; //#28822 + if (!$_.usematrix) { //#28822 + bwipp_renlinear(); //#28822 + } else { //#28822 + $j--; //#28822 + } //#28822 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28504 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28517 - $_.i = _U; //#28506 - if ($get($_.bot, $_.i) == 0) { //#28514 - if ($get($_.bot, $_.i - 1) == 1) { //#28511 - $k[$j++] = 1; //#28509 - } else { //#28511 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28511 - $k[$j++] = _e; //#28511 - } //#28511 - } else { //#28514 - $k[$j++] = 0; //#28514 - } //#28514 - $put($_.sep, $_.i, $k[--$j]); //#28516 - } //#28516 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28518 - $k[$j++] = true; //#28519 - for (var _j = 0; _j <= 12; _j += 1) { //#28519 - var _p = $k[--$j]; //#28519 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28519 - } //#28519 - if ($k[--$j]) { //#28522 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28521 - } //#28521 - }; //#28521 - $k[$j++] = Infinity; //#28524 - $k[$j++] = 0; //#28525 - $forall($_.linsbs, function() { //#28525 - var _v = $k[--$j]; //#28525 - var _w = $k[--$j]; //#28525 - var _x = (_w == 1) ? 0 : 1; //#28525 - $k[$j++] = _w; //#28525 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28525 - $k[$j++] = _x //#28525 - } //#28525 - }); //#28525 - $astore($a($counttomark() - 1)); //#28526 - $_.bot = $k[--$j]; //#28526 - $j -= 2; //#28526 - $k[$j++] = Infinity; //#28527 - $forall($_.bot, function() { //#28527 - var _14 = $k[--$j]; //#28527 - $k[$j++] = $f(1 - _14); //#28527 - }); //#28527 - $_.sep = $a(); //#28527 - $puti($_.sep, 0, $a([0, 0, 0])); //#28528 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28529 - $k[$j++] = 18; //#28530 - $_.sepfinder(); //#28530 - $k[$j++] = 64; //#28530 - $_.sepfinder(); //#28530 - if (!$_.usematrix) { //#28581 - $$.rmoveto(0, $_.linheight); //#28532 + $_.fp = $k[--$j]; //#28826 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28839 + $_.i = _U; //#28828 + if ($get($_.bot, $_.i) == 0) { //#28836 + if ($get($_.bot, $_.i - 1) == 1) { //#28833 + $k[$j++] = 1; //#28831 + } else { //#28833 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28833 + $k[$j++] = _e; //#28833 + } //#28833 + } else { //#28836 + $k[$j++] = 0; //#28836 + } //#28836 + $put($_.sep, $_.i, $k[--$j]); //#28838 + } //#28838 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28840 + $k[$j++] = true; //#28841 + for (var _j = 0; _j <= 12; _j += 1) { //#28841 + var _p = $k[--$j]; //#28841 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28841 + } //#28841 + if ($k[--$j]) { //#28844 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28843 + } //#28843 + }; //#28843 + $k[$j++] = Infinity; //#28846 + $k[$j++] = 0; //#28847 + $forall($_.linsbs, function() { //#28847 + var _v = $k[--$j]; //#28847 + var _w = $k[--$j]; //#28847 + var _x = (_w == 1) ? 0 : 1; //#28847 + $k[$j++] = _w; //#28847 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#28847 + $k[$j++] = _x //#28847 + } //#28847 + }); //#28847 + $astore($a($counttomark() - 1)); //#28848 + $_.bot = $k[--$j]; //#28848 + $j -= 2; //#28848 + $k[$j++] = Infinity; //#28849 + $forall($_.bot, function() { //#28849 + var _14 = $k[--$j]; //#28849 + $k[$j++] = $f(1 - _14); //#28849 + }); //#28849 + $_.sep = $a(); //#28849 + $puti($_.sep, 0, $a([0, 0, 0])); //#28850 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28851 + $k[$j++] = 18; //#28852 + $_.sepfinder(); //#28852 + $k[$j++] = 64; //#28852 + $_.sepfinder(); //#28852 + if (!$_.usematrix) { //#28903 + $$.rmoveto(0, $_.linheight); //#28854 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36733,65 +37222,63 @@ function bwipp_databaromnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28539 - $k[$j++] = _1H; //#28540 - bwipp_renmatrix(); //#28540 - $$.rmoveto(-5, 1); //#28543 - $k[$j++] = $_.comp; //#28543 - $k[$j++] = $_.options; //#28543 - bwipp_gs1_cc(); //#28543 - bwipp_renmatrix(); //#28543 - $$.restore(); //#28545 - } else { //#28581 - $k[$j++] = 'compsym'; //#28547 - $k[$j++] = $_.comp; //#28547 - $k[$j++] = $_.options; //#28547 - bwipp_gs1_cc(); //#28547 - var _1M = $k[--$j]; //#28547 - $_[$k[--$j]] = _1M; //#28547 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28548 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28549 - $k[$j++] = Infinity; //#28552 - $k[$j++] = 0; //#28552 - $forall($_.linsbs, function() { //#28552 - var _1T = $k[--$j]; //#28552 - var _1U = $k[--$j]; //#28552 - var _1V = (_1U == 0) ? 1 : 0; //#28552 - $k[$j++] = _1U; //#28552 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28552 - $k[$j++] = _1V //#28552 - } //#28552 - }); //#28552 - $_.linpixs = $a(); //#28552 - $k[$j++] = Infinity; //#28554 - $k[$j++] = 0; //#28554 - $aload($_.sep); //#28554 - $_.sep = $a(); //#28554 - $_.linheight = ~~$_.linheight; //#28556 - $k[$j++] = Infinity; //#28563 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28562 - $_.i = _1f; //#28560 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#28561 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28561 - $k[$j++] = 0; //#28561 - } //#28561 - } //#28561 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.sep); //#28563 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.linpixs); //#28563 - } //#28563 - $_.pixs = $a(); //#28563 - $_.pixx = $f($_.ccpixx + 1); //#28565 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28567 - var _22 = new Map([ + ]); //#28861 + $k[$j++] = _1H; //#28862 + bwipp_renmatrix(); //#28862 + $$.rmoveto(-5, 1); //#28865 + $k[$j++] = $_.comp; //#28865 + $k[$j++] = $_.options; //#28865 + bwipp_gs1_cc(); //#28865 + bwipp_renmatrix(); //#28865 + $$.restore(); //#28867 + } else { //#28903 + $k[$j++] = 'compsym'; //#28869 + $k[$j++] = $_.comp; //#28869 + $k[$j++] = $_.options; //#28869 + bwipp_gs1_cc(); //#28869 + var _1M = $k[--$j]; //#28869 + $_[$k[--$j]] = _1M; //#28869 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28870 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28871 + $k[$j++] = Infinity; //#28873 + $k[$j++] = 0; //#28874 + $forall($_.linsbs, function() { //#28874 + var _1T = $k[--$j]; //#28874 + var _1U = $k[--$j]; //#28874 + var _1V = (_1U == 0) ? 1 : 0; //#28874 + $k[$j++] = _1U; //#28874 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28874 + $k[$j++] = _1V //#28874 + } //#28874 + }); //#28874 + $_.linpixs = $a(); //#28874 + $k[$j++] = Infinity; //#28876 + $k[$j++] = 0; //#28876 + $aload($_.sep); //#28876 + $_.sep = $a(); //#28876 + $_.linheight = ~~$_.linheight; //#28878 + $k[$j++] = Infinity; //#28880 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28884 + $_.i = _1f; //#28882 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28883 + $k[$j++] = 0; //#28883 + } //#28883 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.sep); //#28885 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.linpixs); //#28885 + } //#28885 + $_.pixs = $a(); //#28885 + $_.pixx = $f($_.ccpixx + 1); //#28887 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28889 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36799,107 +37286,106 @@ function bwipp_databaromnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28575 - $k[$j++] = _22; //#28582 - if (!$_.dontdraw) { //#28582 - $$.save(); //#28579 - bwipp_renmatrix(); //#28580 - $$.restore(); //#28581 - } //#28581 - } //#28581 - $_ = Object.getPrototypeOf($_); //#28585 -} - + ]); //#28897 + $k[$j++] = _20; //#28904 + if (!$_.dontdraw) { //#28904 + $$.save(); //#28901 + bwipp_renmatrix(); //#28902 + $$.restore(); //#28903 + } //#28903 + } //#28903 + $_ = Object.getPrototypeOf($_); //#28907 +} //bwipp_databaromnicomposite function bwipp_databarstackedcomposite() { - $_ = Object.create($_); //#28616 - $_.dontdraw = false; //#28619 - $_.usematrix = false; //#28620 - $_.parse = false; //#28621 - $_.dontlint = false; //#28622 - $_.lintreqs = true; //#28623 - $k[$j++] = $_; //#28625 - bwipp_processoptions(); //#28625 - $_.options = $k[--$j]; //#28625 - $_.barcode = $k[--$j]; //#28626 - if ($_.dontdraw) { //#28628 - $_.usematrix = true; //#28628 - } //#28628 - $search($_.barcode, "|"); //#28631 - if ($k[--$j]) { //#28636 - $_.linear = $k[--$j]; //#28632 - $j--; //#28633 - $_.comp = $k[--$j]; //#28634 - } else { //#28636 - $j--; //#28636 - $k[$j++] = 'bwipp.missingCompositeComponent#28636'; //#28636 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28636 - bwipp_raiseerror(); //#28636 - } //#28636 - if (!$_.usematrix) { //#28639 - $$.save(); //#28639 - } //#28639 - $put($_.options, "lintype", "databarstacked"); //#28641 - $put($_.options, "linkage", true); //#28642 - $put($_.options, "inkspread", "0"); //#28643 - $put($_.options, "dontdraw", true); //#28644 - $put($_.options, "dontlint", true); //#28645 - var _F = $s($_.linear.length + $_.comp.length); //#28648 - $puti(_F, 0, $_.linear); //#28649 - $puti(_F, $_.linear.length, $_.comp); //#28650 - $k[$j++] = _F; //#28651 - $k[$j++] = 'ai'; //#28651 - bwipp_gs1process(); //#28651 - $j -= 3; //#28651 - $k[$j++] = $_.linear; //#28654 - $k[$j++] = $_.options; //#28654 - bwipp_databarstacked(); //#28654 - var _L = $k[--$j]; //#28655 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28655 - $_.linheight = $get(_L, "pixy"); //#28656 - $k[$j++] = _L; //#28657 - if (!$_.usematrix) { //#28657 - bwipp_renmatrix(); //#28657 - } else { //#28657 - $_.linpixs = $get($k[--$j], 'pixs'); //#28657 - } //#28657 + $_ = Object.create($_); //#28938 + $_.dontdraw = false; //#28941 + $_.usematrix = false; //#28942 + $_.parse = false; //#28943 + $_.dontlint = false; //#28944 + $_.lintreqs = true; //#28945 + $k[$j++] = $_; //#28947 + bwipp_processoptions(); //#28947 + $_.options = $k[--$j]; //#28947 + $_.barcode = $k[--$j]; //#28948 + if ($_.dontdraw) { //#28950 + $_.usematrix = true; //#28950 + } //#28950 + $search($_.barcode, "|"); //#28953 + if ($k[--$j]) { //#28958 + $_.linear = $k[--$j]; //#28954 + $j--; //#28955 + $_.comp = $k[--$j]; //#28956 + } else { //#28958 + $j--; //#28958 + $k[$j++] = 'bwipp.missingCompositeComponent#28958'; //#28958 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28958 + bwipp_raiseerror(); //#28958 + } //#28958 + if (!$_.usematrix) { //#28961 + $$.save(); //#28961 + } //#28961 + $put($_.options, "lintype", "databarstacked"); //#28963 + $put($_.options, "linkage", true); //#28964 + $put($_.options, "inkspreadv", 0); //#28965 + $put($_.options, "dontdraw", true); //#28966 + $put($_.options, "dontlint", true); //#28967 + var _F = $s($_.linear.length + $_.comp.length); //#28970 + $puti(_F, 0, $_.linear); //#28971 + $puti(_F, $_.linear.length, $_.comp); //#28972 + $k[$j++] = _F; //#28973 + $k[$j++] = 'ai'; //#28973 + bwipp_gs1process(); //#28973 + $j -= 3; //#28973 + $k[$j++] = $_.linear; //#28976 + $k[$j++] = $_.options; //#28976 + bwipp_databarstacked(); //#28976 + var _L = $k[--$j]; //#28977 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28977 + $_.linheight = $get(_L, "pixy"); //#28978 + $k[$j++] = _L; //#28979 + if (!$_.usematrix) { //#28979 + bwipp_renmatrix(); //#28979 + } else { //#28979 + $_.linpixs = $get($k[--$j], 'pixs'); //#28979 + } //#28979 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28661 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28674 - $_.i = _X; //#28663 - if ($get($_.bot, $_.i) == 0) { //#28671 - if ($get($_.bot, $_.i - 1) == 1) { //#28668 - $k[$j++] = 1; //#28666 - } else { //#28668 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28668 - $k[$j++] = _h; //#28668 - } //#28668 - } else { //#28671 - $k[$j++] = 0; //#28671 - } //#28671 - $put($_.sep, $_.i, $k[--$j]); //#28673 - } //#28673 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28675 - $k[$j++] = true; //#28676 - for (var _m = 0; _m <= 12; _m += 1) { //#28676 - var _s = $k[--$j]; //#28676 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28676 - } //#28676 - if ($k[--$j]) { //#28679 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28678 - } //#28678 - }; //#28678 - $k[$j++] = Infinity; //#28681 - var _x = $_.bot; //#28681 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28681 - $k[$j++] = $f(1 - $get(_x, _y)); //#28681 - } //#28681 - $_.sep = $a(); //#28681 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28682 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28683 - $k[$j++] = 18; //#28684 - $_.sepfinder(); //#28684 - if (!$_.usematrix) { //#28734 - $$.rmoveto(0, $_.linheight); //#28686 + $_.fp = $k[--$j]; //#28983 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28996 + $_.i = _X; //#28985 + if ($get($_.bot, $_.i) == 0) { //#28993 + if ($get($_.bot, $_.i - 1) == 1) { //#28990 + $k[$j++] = 1; //#28988 + } else { //#28990 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28990 + $k[$j++] = _h; //#28990 + } //#28990 + } else { //#28993 + $k[$j++] = 0; //#28993 + } //#28993 + $put($_.sep, $_.i, $k[--$j]); //#28995 + } //#28995 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28997 + $k[$j++] = true; //#28998 + for (var _m = 0; _m <= 12; _m += 1) { //#28998 + var _s = $k[--$j]; //#28998 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28998 + } //#28998 + if ($k[--$j]) { //#29001 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29000 + } //#29000 + }; //#29000 + $k[$j++] = Infinity; //#29003 + var _x = $_.bot; //#29003 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29003 + $k[$j++] = $f(1 - $get(_x, _y)); //#29003 + } //#29003 + $_.sep = $a(); //#29003 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29004 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29005 + $k[$j++] = 18; //#29006 + $_.sepfinder(); //#29006 + if (!$_.usematrix) { //#29056 + $$.rmoveto(0, $_.linheight); //#29008 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36908,54 +37394,52 @@ function bwipp_databarstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28693 - $k[$j++] = _1D; //#28694 - bwipp_renmatrix(); //#28694 - $$.rmoveto(1, 1); //#28697 - $k[$j++] = $_.comp; //#28697 - $k[$j++] = $_.options; //#28697 - bwipp_gs1_cc(); //#28697 - bwipp_renmatrix(); //#28697 - $$.restore(); //#28699 - } else { //#28734 - $k[$j++] = 'compsym'; //#28701 - $k[$j++] = $_.comp; //#28701 - $k[$j++] = $_.options; //#28701 - bwipp_gs1_cc(); //#28701 - var _1I = $k[--$j]; //#28701 - $_[$k[--$j]] = _1I; //#28701 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28702 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28703 - $_.linwidth = $_.sep.length; //#28705 - $k[$j++] = Infinity; //#28715 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28711 - $_.i = _1S; //#28709 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28710 - $k[$j++] = 0; //#28710 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28710 - } //#28710 - } //#28710 - $aload($_.sep); //#28712 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28716 - $_.i = _1e; //#28714 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - } //#28715 - $_.pixs = $a(); //#28715 - $_.pixx = $f($_.ccpixx + 1); //#28718 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28720 - var _1u = new Map([ + ]); //#29015 + $k[$j++] = _1D; //#29016 + bwipp_renmatrix(); //#29016 + $$.rmoveto(1, 1); //#29019 + $k[$j++] = $_.comp; //#29019 + $k[$j++] = $_.options; //#29019 + bwipp_gs1_cc(); //#29019 + bwipp_renmatrix(); //#29019 + $$.restore(); //#29021 + } else { //#29056 + $k[$j++] = 'compsym'; //#29023 + $k[$j++] = $_.comp; //#29023 + $k[$j++] = $_.options; //#29023 + bwipp_gs1_cc(); //#29023 + var _1I = $k[--$j]; //#29023 + $_[$k[--$j]] = _1I; //#29023 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29024 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29025 + $_.linwidth = $_.sep.length; //#29027 + $k[$j++] = Infinity; //#29029 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29033 + $_.i = _1S; //#29031 + $k[$j++] = 0; //#29032 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29032 + } //#29032 + $aload($_.sep); //#29034 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29038 + $_.i = _1c; //#29036 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + } //#29037 + $_.pixs = $a(); //#29037 + $_.pixx = $f($_.ccpixx + 1); //#29040 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29042 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36963,107 +37447,106 @@ function bwipp_databarstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28728 - $k[$j++] = _1u; //#28735 - if (!$_.dontdraw) { //#28735 - $$.save(); //#28732 - bwipp_renmatrix(); //#28733 - $$.restore(); //#28734 - } //#28734 - } //#28734 - $_ = Object.getPrototypeOf($_); //#28738 -} - + ]); //#29050 + $k[$j++] = _1s; //#29057 + if (!$_.dontdraw) { //#29057 + $$.save(); //#29054 + bwipp_renmatrix(); //#29055 + $$.restore(); //#29056 + } //#29056 + } //#29056 + $_ = Object.getPrototypeOf($_); //#29060 +} //bwipp_databarstackedcomposite function bwipp_databarstackedomnicomposite() { - $_ = Object.create($_); //#28769 - $_.dontdraw = false; //#28772 - $_.usematrix = false; //#28773 - $_.parse = false; //#28774 - $_.dontlint = false; //#28775 - $_.lintreqs = true; //#28776 - $k[$j++] = $_; //#28778 - bwipp_processoptions(); //#28778 - $_.options = $k[--$j]; //#28778 - $_.barcode = $k[--$j]; //#28779 - if ($_.dontdraw) { //#28781 - $_.usematrix = true; //#28781 - } //#28781 - $search($_.barcode, "|"); //#28784 - if ($k[--$j]) { //#28789 - $_.linear = $k[--$j]; //#28785 - $j--; //#28786 - $_.comp = $k[--$j]; //#28787 - } else { //#28789 - $j--; //#28789 - $k[$j++] = 'bwipp.missingCompositeComponent#28789'; //#28789 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28789 - bwipp_raiseerror(); //#28789 - } //#28789 - if (!$_.usematrix) { //#28792 - $$.save(); //#28792 - } //#28792 - $put($_.options, "lintype", "databarstackedomni"); //#28794 - $put($_.options, "linkage", true); //#28795 - $put($_.options, "inkspread", "0"); //#28796 - $put($_.options, "dontdraw", true); //#28797 - $put($_.options, "dontlint", true); //#28798 - var _F = $s($_.linear.length + $_.comp.length); //#28801 - $puti(_F, 0, $_.linear); //#28802 - $puti(_F, $_.linear.length, $_.comp); //#28803 - $k[$j++] = _F; //#28804 - $k[$j++] = 'ai'; //#28804 - bwipp_gs1process(); //#28804 - $j -= 3; //#28804 - $k[$j++] = $_.linear; //#28807 - $k[$j++] = $_.options; //#28807 - bwipp_databarstackedomni(); //#28807 - var _L = $k[--$j]; //#28808 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28808 - $_.linheight = $get(_L, "pixy"); //#28809 - $k[$j++] = _L; //#28810 - if (!$_.usematrix) { //#28810 - bwipp_renmatrix(); //#28810 - } else { //#28810 - $_.linpixs = $get($k[--$j], 'pixs'); //#28810 - } //#28810 + $_ = Object.create($_); //#29091 + $_.dontdraw = false; //#29094 + $_.usematrix = false; //#29095 + $_.parse = false; //#29096 + $_.dontlint = false; //#29097 + $_.lintreqs = true; //#29098 + $k[$j++] = $_; //#29100 + bwipp_processoptions(); //#29100 + $_.options = $k[--$j]; //#29100 + $_.barcode = $k[--$j]; //#29101 + if ($_.dontdraw) { //#29103 + $_.usematrix = true; //#29103 + } //#29103 + $search($_.barcode, "|"); //#29106 + if ($k[--$j]) { //#29111 + $_.linear = $k[--$j]; //#29107 + $j--; //#29108 + $_.comp = $k[--$j]; //#29109 + } else { //#29111 + $j--; //#29111 + $k[$j++] = 'bwipp.missingCompositeComponent#29111'; //#29111 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29111 + bwipp_raiseerror(); //#29111 + } //#29111 + if (!$_.usematrix) { //#29114 + $$.save(); //#29114 + } //#29114 + $put($_.options, "lintype", "databarstackedomni"); //#29116 + $put($_.options, "linkage", true); //#29117 + $put($_.options, "inkspreadv", 0); //#29118 + $put($_.options, "dontdraw", true); //#29119 + $put($_.options, "dontlint", true); //#29120 + var _F = $s($_.linear.length + $_.comp.length); //#29123 + $puti(_F, 0, $_.linear); //#29124 + $puti(_F, $_.linear.length, $_.comp); //#29125 + $k[$j++] = _F; //#29126 + $k[$j++] = 'ai'; //#29126 + bwipp_gs1process(); //#29126 + $j -= 3; //#29126 + $k[$j++] = $_.linear; //#29129 + $k[$j++] = $_.options; //#29129 + bwipp_databarstackedomni(); //#29129 + var _L = $k[--$j]; //#29130 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29130 + $_.linheight = $get(_L, "pixy"); //#29131 + $k[$j++] = _L; //#29132 + if (!$_.usematrix) { //#29132 + bwipp_renmatrix(); //#29132 + } else { //#29132 + $_.linpixs = $get($k[--$j], 'pixs'); //#29132 + } //#29132 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28814 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28827 - $_.i = _X; //#28816 - if ($get($_.bot, $_.i) == 0) { //#28824 - if ($get($_.bot, $_.i - 1) == 1) { //#28821 - $k[$j++] = 1; //#28819 - } else { //#28821 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28821 - $k[$j++] = _h; //#28821 - } //#28821 - } else { //#28824 - $k[$j++] = 0; //#28824 - } //#28824 - $put($_.sep, $_.i, $k[--$j]); //#28826 - } //#28826 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28828 - $k[$j++] = true; //#28829 - for (var _m = 0; _m <= 12; _m += 1) { //#28829 - var _s = $k[--$j]; //#28829 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28829 - } //#28829 - if ($k[--$j]) { //#28832 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28831 - } //#28831 - }; //#28831 - $k[$j++] = Infinity; //#28834 - var _x = $_.bot; //#28834 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28834 - $k[$j++] = $f(1 - $get(_x, _y)); //#28834 - } //#28834 - $_.sep = $a(); //#28834 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28835 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28836 - $k[$j++] = 18; //#28837 - $_.sepfinder(); //#28837 - if (!$_.usematrix) { //#28887 - $$.rmoveto(0, $_.linheight); //#28839 + $_.fp = $k[--$j]; //#29136 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29149 + $_.i = _X; //#29138 + if ($get($_.bot, $_.i) == 0) { //#29146 + if ($get($_.bot, $_.i - 1) == 1) { //#29143 + $k[$j++] = 1; //#29141 + } else { //#29143 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29143 + $k[$j++] = _h; //#29143 + } //#29143 + } else { //#29146 + $k[$j++] = 0; //#29146 + } //#29146 + $put($_.sep, $_.i, $k[--$j]); //#29148 + } //#29148 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29150 + $k[$j++] = true; //#29151 + for (var _m = 0; _m <= 12; _m += 1) { //#29151 + var _s = $k[--$j]; //#29151 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#29151 + } //#29151 + if ($k[--$j]) { //#29154 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29153 + } //#29153 + }; //#29153 + $k[$j++] = Infinity; //#29156 + var _x = $_.bot; //#29156 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29156 + $k[$j++] = $f(1 - $get(_x, _y)); //#29156 + } //#29156 + $_.sep = $a(); //#29156 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29157 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29158 + $k[$j++] = 18; //#29159 + $_.sepfinder(); //#29159 + if (!$_.usematrix) { //#29209 + $$.rmoveto(0, $_.linheight); //#29161 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37072,54 +37555,52 @@ function bwipp_databarstackedomnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28846 - $k[$j++] = _1D; //#28847 - bwipp_renmatrix(); //#28847 - $$.rmoveto(1, 1); //#28850 - $k[$j++] = $_.comp; //#28850 - $k[$j++] = $_.options; //#28850 - bwipp_gs1_cc(); //#28850 - bwipp_renmatrix(); //#28850 - $$.restore(); //#28852 - } else { //#28887 - $k[$j++] = 'compsym'; //#28854 - $k[$j++] = $_.comp; //#28854 - $k[$j++] = $_.options; //#28854 - bwipp_gs1_cc(); //#28854 - var _1I = $k[--$j]; //#28854 - $_[$k[--$j]] = _1I; //#28854 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28855 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28856 - $_.linwidth = $_.sep.length; //#28858 - $k[$j++] = Infinity; //#28868 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28864 - $_.i = _1S; //#28862 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28863 - $k[$j++] = 0; //#28863 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28863 - } //#28863 - } //#28863 - $aload($_.sep); //#28865 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28869 - $_.i = _1e; //#28867 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - } //#28868 - $_.pixs = $a(); //#28868 - $_.pixx = $f($_.ccpixx + 1); //#28871 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28873 - var _1u = new Map([ + ]); //#29168 + $k[$j++] = _1D; //#29169 + bwipp_renmatrix(); //#29169 + $$.rmoveto(1, 1); //#29172 + $k[$j++] = $_.comp; //#29172 + $k[$j++] = $_.options; //#29172 + bwipp_gs1_cc(); //#29172 + bwipp_renmatrix(); //#29172 + $$.restore(); //#29174 + } else { //#29209 + $k[$j++] = 'compsym'; //#29176 + $k[$j++] = $_.comp; //#29176 + $k[$j++] = $_.options; //#29176 + bwipp_gs1_cc(); //#29176 + var _1I = $k[--$j]; //#29176 + $_[$k[--$j]] = _1I; //#29176 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29177 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29178 + $_.linwidth = $_.sep.length; //#29180 + $k[$j++] = Infinity; //#29182 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29186 + $_.i = _1S; //#29184 + $k[$j++] = 0; //#29185 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29185 + } //#29185 + $aload($_.sep); //#29187 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29191 + $_.i = _1c; //#29189 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + } //#29190 + $_.pixs = $a(); //#29190 + $_.pixx = $f($_.ccpixx + 1); //#29193 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29195 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37127,123 +37608,122 @@ function bwipp_databarstackedomnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28881 - $k[$j++] = _1u; //#28888 - if (!$_.dontdraw) { //#28888 - $$.save(); //#28885 - bwipp_renmatrix(); //#28886 - $$.restore(); //#28887 - } //#28887 - } //#28887 - $_ = Object.getPrototypeOf($_); //#28891 -} - + ]); //#29203 + $k[$j++] = _1s; //#29210 + if (!$_.dontdraw) { //#29210 + $$.save(); //#29207 + bwipp_renmatrix(); //#29208 + $$.restore(); //#29209 + } //#29209 + } //#29209 + $_ = Object.getPrototypeOf($_); //#29213 +} //bwipp_databarstackedomnicomposite function bwipp_databartruncatedcomposite() { - $_ = Object.create($_); //#28923 - $_.dontdraw = false; //#28926 - $_.usematrix = false; //#28927 - $_.parse = false; //#28928 - $_.dontlint = false; //#28929 - $_.lintreqs = true; //#28930 - $k[$j++] = $_; //#28932 - bwipp_processoptions(); //#28932 - $_.options = $k[--$j]; //#28932 - $_.barcode = $k[--$j]; //#28933 - if ($_.dontdraw) { //#28935 - $_.usematrix = true; //#28935 - } //#28935 - $search($_.barcode, "|"); //#28938 - if ($k[--$j]) { //#28943 - $_.linear = $k[--$j]; //#28939 - $j--; //#28940 - $_.comp = $k[--$j]; //#28941 - } else { //#28943 - $j--; //#28943 - $k[$j++] = 'bwipp.missingCompositeComponent#28943'; //#28943 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28943 - bwipp_raiseerror(); //#28943 - } //#28943 - if (!$_.usematrix) { //#28946 - $$.save(); //#28946 - } //#28946 - $put($_.options, "lintype", "databartruncated"); //#28948 - $put($_.options, "linkage", true); //#28949 - $put($_.options, "inkspread", "0"); //#28950 - $put($_.options, "dontdraw", true); //#28951 - $put($_.options, "dontlint", true); //#28952 - var _F = $s($_.linear.length + $_.comp.length); //#28955 - $puti(_F, 0, $_.linear); //#28956 - $puti(_F, $_.linear.length, $_.comp); //#28957 - $k[$j++] = _F; //#28958 - $k[$j++] = 'ai'; //#28958 - bwipp_gs1process(); //#28958 - $j -= 3; //#28958 - $k[$j++] = $_.linear; //#28961 - $k[$j++] = $_.options; //#28961 - bwipp_databartruncated(); //#28961 - var _L = $k[--$j]; //#28962 - $_.linsbs = $get(_L, "sbs"); //#28962 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28963 - $k[$j++] = _L; //#28964 - if (!$_.usematrix) { //#28964 - bwipp_renlinear(); //#28964 - } else { //#28964 - $j--; //#28964 - } //#28964 + $_ = Object.create($_); //#29245 + $_.dontdraw = false; //#29248 + $_.usematrix = false; //#29249 + $_.parse = false; //#29250 + $_.dontlint = false; //#29251 + $_.lintreqs = true; //#29252 + $k[$j++] = $_; //#29254 + bwipp_processoptions(); //#29254 + $_.options = $k[--$j]; //#29254 + $_.barcode = $k[--$j]; //#29255 + if ($_.dontdraw) { //#29257 + $_.usematrix = true; //#29257 + } //#29257 + $search($_.barcode, "|"); //#29260 + if ($k[--$j]) { //#29265 + $_.linear = $k[--$j]; //#29261 + $j--; //#29262 + $_.comp = $k[--$j]; //#29263 + } else { //#29265 + $j--; //#29265 + $k[$j++] = 'bwipp.missingCompositeComponent#29265'; //#29265 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29265 + bwipp_raiseerror(); //#29265 + } //#29265 + if (!$_.usematrix) { //#29268 + $$.save(); //#29268 + } //#29268 + $put($_.options, "lintype", "databartruncated"); //#29270 + $put($_.options, "linkage", true); //#29271 + $put($_.options, "inkspreadv", 0); //#29272 + $put($_.options, "dontdraw", true); //#29273 + $put($_.options, "dontlint", true); //#29274 + var _F = $s($_.linear.length + $_.comp.length); //#29277 + $puti(_F, 0, $_.linear); //#29278 + $puti(_F, $_.linear.length, $_.comp); //#29279 + $k[$j++] = _F; //#29280 + $k[$j++] = 'ai'; //#29280 + bwipp_gs1process(); //#29280 + $j -= 3; //#29280 + $k[$j++] = $_.linear; //#29283 + $k[$j++] = $_.options; //#29283 + bwipp_databartruncated(); //#29283 + var _L = $k[--$j]; //#29284 + $_.linsbs = $get(_L, "sbs"); //#29284 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29285 + $k[$j++] = _L; //#29286 + if (!$_.usematrix) { //#29286 + bwipp_renlinear(); //#29286 + } else { //#29286 + $j--; //#29286 + } //#29286 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28968 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28981 - $_.i = _U; //#28970 - if ($get($_.bot, $_.i) == 0) { //#28978 - if ($get($_.bot, $_.i - 1) == 1) { //#28975 - $k[$j++] = 1; //#28973 - } else { //#28975 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28975 - $k[$j++] = _e; //#28975 - } //#28975 - } else { //#28978 - $k[$j++] = 0; //#28978 - } //#28978 - $put($_.sep, $_.i, $k[--$j]); //#28980 - } //#28980 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28982 - $k[$j++] = true; //#28983 - for (var _j = 0; _j <= 12; _j += 1) { //#28983 - var _p = $k[--$j]; //#28983 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28983 - } //#28983 - if ($k[--$j]) { //#28986 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28985 - } //#28985 - }; //#28985 - $k[$j++] = Infinity; //#28988 - $k[$j++] = 0; //#28989 - $forall($_.linsbs, function() { //#28989 - var _v = $k[--$j]; //#28989 - var _w = $k[--$j]; //#28989 - var _x = (_w == 1) ? 0 : 1; //#28989 - $k[$j++] = _w; //#28989 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28989 - $k[$j++] = _x //#28989 - } //#28989 - }); //#28989 - $astore($a($counttomark() - 1)); //#28990 - $_.bot = $k[--$j]; //#28990 - $j -= 2; //#28990 - $k[$j++] = Infinity; //#28991 - $forall($_.bot, function() { //#28991 - var _14 = $k[--$j]; //#28991 - $k[$j++] = $f(1 - _14); //#28991 - }); //#28991 - $_.sep = $a(); //#28991 - $puti($_.sep, 0, $a([0, 0, 0])); //#28992 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28993 - $k[$j++] = 18; //#28994 - $_.sepfinder(); //#28994 - $k[$j++] = 64; //#28994 - $_.sepfinder(); //#28994 - if (!$_.usematrix) { //#29045 - $$.rmoveto(0, $_.linheight); //#28996 + $_.fp = $k[--$j]; //#29290 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29303 + $_.i = _U; //#29292 + if ($get($_.bot, $_.i) == 0) { //#29300 + if ($get($_.bot, $_.i - 1) == 1) { //#29297 + $k[$j++] = 1; //#29295 + } else { //#29297 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29297 + $k[$j++] = _e; //#29297 + } //#29297 + } else { //#29300 + $k[$j++] = 0; //#29300 + } //#29300 + $put($_.sep, $_.i, $k[--$j]); //#29302 + } //#29302 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29304 + $k[$j++] = true; //#29305 + for (var _j = 0; _j <= 12; _j += 1) { //#29305 + var _p = $k[--$j]; //#29305 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#29305 + } //#29305 + if ($k[--$j]) { //#29308 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29307 + } //#29307 + }; //#29307 + $k[$j++] = Infinity; //#29310 + $k[$j++] = 0; //#29311 + $forall($_.linsbs, function() { //#29311 + var _v = $k[--$j]; //#29311 + var _w = $k[--$j]; //#29311 + var _x = (_w == 1) ? 0 : 1; //#29311 + $k[$j++] = _w; //#29311 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#29311 + $k[$j++] = _x //#29311 + } //#29311 + }); //#29311 + $astore($a($counttomark() - 1)); //#29312 + $_.bot = $k[--$j]; //#29312 + $j -= 2; //#29312 + $k[$j++] = Infinity; //#29313 + $forall($_.bot, function() { //#29313 + var _14 = $k[--$j]; //#29313 + $k[$j++] = $f(1 - _14); //#29313 + }); //#29313 + $_.sep = $a(); //#29313 + $puti($_.sep, 0, $a([0, 0, 0])); //#29314 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29315 + $k[$j++] = 18; //#29316 + $_.sepfinder(); //#29316 + $k[$j++] = 64; //#29316 + $_.sepfinder(); //#29316 + if (!$_.usematrix) { //#29367 + $$.rmoveto(0, $_.linheight); //#29318 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37252,65 +37732,63 @@ function bwipp_databartruncatedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29003 - $k[$j++] = _1H; //#29004 - bwipp_renmatrix(); //#29004 - $$.rmoveto(-5, 1); //#29007 - $k[$j++] = $_.comp; //#29007 - $k[$j++] = $_.options; //#29007 - bwipp_gs1_cc(); //#29007 - bwipp_renmatrix(); //#29007 - $$.restore(); //#29009 - } else { //#29045 - $k[$j++] = 'compsym'; //#29011 - $k[$j++] = $_.comp; //#29011 - $k[$j++] = $_.options; //#29011 - bwipp_gs1_cc(); //#29011 - var _1M = $k[--$j]; //#29011 - $_[$k[--$j]] = _1M; //#29011 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29012 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29013 - $k[$j++] = Infinity; //#29016 - $k[$j++] = 0; //#29016 - $forall($_.linsbs, function() { //#29016 - var _1T = $k[--$j]; //#29016 - var _1U = $k[--$j]; //#29016 - var _1V = (_1U == 0) ? 1 : 0; //#29016 - $k[$j++] = _1U; //#29016 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29016 - $k[$j++] = _1V //#29016 - } //#29016 - }); //#29016 - $_.linpixs = $a(); //#29016 - $k[$j++] = Infinity; //#29018 - $k[$j++] = 0; //#29018 - $aload($_.sep); //#29018 - $_.sep = $a(); //#29018 - $_.linheight = ~~$_.linheight; //#29020 - $k[$j++] = Infinity; //#29027 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29026 - $_.i = _1f; //#29024 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#29025 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29025 - $k[$j++] = 0; //#29025 - } //#29025 - } //#29025 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.sep); //#29027 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.linpixs); //#29027 - } //#29027 - $_.pixs = $a(); //#29027 - $_.pixx = $f($_.ccpixx + 1); //#29029 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29031 - var _22 = new Map([ + ]); //#29325 + $k[$j++] = _1H; //#29326 + bwipp_renmatrix(); //#29326 + $$.rmoveto(-5, 1); //#29329 + $k[$j++] = $_.comp; //#29329 + $k[$j++] = $_.options; //#29329 + bwipp_gs1_cc(); //#29329 + bwipp_renmatrix(); //#29329 + $$.restore(); //#29331 + } else { //#29367 + $k[$j++] = 'compsym'; //#29333 + $k[$j++] = $_.comp; //#29333 + $k[$j++] = $_.options; //#29333 + bwipp_gs1_cc(); //#29333 + var _1M = $k[--$j]; //#29333 + $_[$k[--$j]] = _1M; //#29333 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29334 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29335 + $k[$j++] = Infinity; //#29337 + $k[$j++] = 0; //#29338 + $forall($_.linsbs, function() { //#29338 + var _1T = $k[--$j]; //#29338 + var _1U = $k[--$j]; //#29338 + var _1V = (_1U == 0) ? 1 : 0; //#29338 + $k[$j++] = _1U; //#29338 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29338 + $k[$j++] = _1V //#29338 + } //#29338 + }); //#29338 + $_.linpixs = $a(); //#29338 + $k[$j++] = Infinity; //#29340 + $k[$j++] = 0; //#29340 + $aload($_.sep); //#29340 + $_.sep = $a(); //#29340 + $_.linheight = ~~$_.linheight; //#29342 + $k[$j++] = Infinity; //#29344 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29348 + $_.i = _1f; //#29346 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29347 + $k[$j++] = 0; //#29347 + } //#29347 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.sep); //#29349 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.linpixs); //#29349 + } //#29349 + $_.pixs = $a(); //#29349 + $_.pixx = $f($_.ccpixx + 1); //#29351 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29353 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37318,89 +37796,88 @@ function bwipp_databartruncatedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29039 - $k[$j++] = _22; //#29046 - if (!$_.dontdraw) { //#29046 - $$.save(); //#29043 - bwipp_renmatrix(); //#29044 - $$.restore(); //#29045 - } //#29045 - } //#29045 - $_ = Object.getPrototypeOf($_); //#29049 -} - + ]); //#29361 + $k[$j++] = _20; //#29368 + if (!$_.dontdraw) { //#29368 + $$.save(); //#29365 + bwipp_renmatrix(); //#29366 + $$.restore(); //#29367 + } //#29367 + } //#29367 + $_ = Object.getPrototypeOf($_); //#29371 +} //bwipp_databartruncatedcomposite function bwipp_databarlimitedcomposite() { - $_ = Object.create($_); //#29081 - $_.dontdraw = false; //#29084 - $_.usematrix = false; //#29085 - $_.parse = false; //#29086 - $_.dontlint = false; //#29087 - $_.lintreqs = true; //#29088 - $k[$j++] = $_; //#29090 - bwipp_processoptions(); //#29090 - $_.options = $k[--$j]; //#29090 - $_.barcode = $k[--$j]; //#29091 - if ($_.dontdraw) { //#29093 - $_.usematrix = true; //#29093 - } //#29093 - $search($_.barcode, "|"); //#29096 - if ($k[--$j]) { //#29101 - $_.linear = $k[--$j]; //#29097 - $j--; //#29098 - $_.comp = $k[--$j]; //#29099 - } else { //#29101 - $j--; //#29101 - $k[$j++] = 'bwipp.missingCompositeComponent#29101'; //#29101 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29101 - bwipp_raiseerror(); //#29101 - } //#29101 - if (!$_.usematrix) { //#29104 - $$.save(); //#29104 - } //#29104 - $put($_.options, "lintype", "databarlimited"); //#29106 - $put($_.options, "linkage", true); //#29107 - $put($_.options, "inkspread", "0"); //#29108 - $put($_.options, "dontdraw", true); //#29109 - $put($_.options, "dontlint", true); //#29110 - var _F = $s($_.linear.length + $_.comp.length); //#29113 - $puti(_F, 0, $_.linear); //#29114 - $puti(_F, $_.linear.length, $_.comp); //#29115 - $k[$j++] = _F; //#29116 - $k[$j++] = 'ai'; //#29116 - bwipp_gs1process(); //#29116 - $j -= 3; //#29116 - $k[$j++] = $_.linear; //#29119 - $k[$j++] = $_.options; //#29119 - bwipp_databarlimited(); //#29119 - var _L = $k[--$j]; //#29120 - $_.linsbs = $get(_L, "sbs"); //#29120 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29121 - $k[$j++] = _L; //#29122 - if (!$_.usematrix) { //#29122 - bwipp_renlinear(); //#29122 - } else { //#29122 - $j--; //#29122 - } //#29122 - $k[$j++] = Infinity; //#29125 - $k[$j++] = 1; //#29126 - $forall($_.linsbs, function() { //#29126 - var _R = $k[--$j]; //#29126 - var _S = $k[--$j]; //#29126 - var _T = (_S == 0) ? 1 : 0; //#29126 - $k[$j++] = _S; //#29126 - for (var _U = 0, _V = _R; _U < _V; _U++) { //#29126 - $k[$j++] = _T //#29126 - } //#29126 - }); //#29126 - $astore($a($counttomark() - 1)); //#29127 - $_.sep = $k[--$j]; //#29127 - $j -= 2; //#29127 - $puti($_.sep, 0, $a([0, 0, 0])); //#29128 - var _c = $_.sep; //#29129 - $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29129 - if (!$_.usematrix) { //#29194 - $$.rmoveto(0, $_.linheight); //#29132 - var _g = $_.sep; //#29134 + $_ = Object.create($_); //#29403 + $_.dontdraw = false; //#29406 + $_.usematrix = false; //#29407 + $_.parse = false; //#29408 + $_.dontlint = false; //#29409 + $_.lintreqs = true; //#29410 + $k[$j++] = $_; //#29412 + bwipp_processoptions(); //#29412 + $_.options = $k[--$j]; //#29412 + $_.barcode = $k[--$j]; //#29413 + if ($_.dontdraw) { //#29415 + $_.usematrix = true; //#29415 + } //#29415 + $search($_.barcode, "|"); //#29418 + if ($k[--$j]) { //#29423 + $_.linear = $k[--$j]; //#29419 + $j--; //#29420 + $_.comp = $k[--$j]; //#29421 + } else { //#29423 + $j--; //#29423 + $k[$j++] = 'bwipp.missingCompositeComponent#29423'; //#29423 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29423 + bwipp_raiseerror(); //#29423 + } //#29423 + if (!$_.usematrix) { //#29426 + $$.save(); //#29426 + } //#29426 + $put($_.options, "lintype", "databarlimited"); //#29428 + $put($_.options, "linkage", true); //#29429 + $put($_.options, "inkspreadv", 0); //#29430 + $put($_.options, "dontdraw", true); //#29431 + $put($_.options, "dontlint", true); //#29432 + var _F = $s($_.linear.length + $_.comp.length); //#29435 + $puti(_F, 0, $_.linear); //#29436 + $puti(_F, $_.linear.length, $_.comp); //#29437 + $k[$j++] = _F; //#29438 + $k[$j++] = 'ai'; //#29438 + bwipp_gs1process(); //#29438 + $j -= 3; //#29438 + $k[$j++] = $_.linear; //#29441 + $k[$j++] = $_.options; //#29441 + bwipp_databarlimited(); //#29441 + var _L = $k[--$j]; //#29442 + $_.linsbs = $get(_L, "sbs"); //#29442 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29443 + $k[$j++] = _L; //#29444 + if (!$_.usematrix) { //#29444 + bwipp_renlinear(); //#29444 + } else { //#29444 + $j--; //#29444 + } //#29444 + $k[$j++] = Infinity; //#29447 + $k[$j++] = 1; //#29448 + $forall($_.linsbs, function() { //#29448 + var _R = $k[--$j]; //#29448 + var _S = $k[--$j]; //#29448 + var _T = (_S == 0) ? 1 : 0; //#29448 + $k[$j++] = _S; //#29448 + for (var _U = 0, _V = _R; _U < _V; _U++) { //#29448 + $k[$j++] = _T //#29448 + } //#29448 + }); //#29448 + $astore($a($counttomark() - 1)); //#29449 + $_.sep = $k[--$j]; //#29449 + $j -= 2; //#29449 + $puti($_.sep, 0, $a([0, 0, 0])); //#29450 + var _c = $_.sep; //#29451 + $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29451 + if (!$_.usematrix) { //#29516 + $$.rmoveto(0, $_.linheight); //#29454 + var _g = $_.sep; //#29456 var _k = new Map([ ["ren", bwipp_renmatrix], ["pixs", _g], @@ -37409,105 +37886,101 @@ function bwipp_databarlimitedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29139 - $k[$j++] = _k; //#29140 - bwipp_renmatrix(); //#29140 - $k[$j++] = $_.comp; //#29143 - $k[$j++] = $_.options; //#29143 - bwipp_gs1_cc(); //#29143 - var _n = $k[--$j]; //#29144 - $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29144 - $k[$j++] = _n; //#29145 - bwipp_renmatrix(); //#29145 - $$.restore(); //#29147 - } else { //#29194 - $k[$j++] = 'compsym'; //#29149 - $k[$j++] = $_.comp; //#29149 - $k[$j++] = $_.options; //#29149 - bwipp_gs1_cc(); //#29149 - var _r = $k[--$j]; //#29149 - $_[$k[--$j]] = _r; //#29149 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29150 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29151 - $k[$j++] = Infinity; //#29154 - $k[$j++] = 0; //#29154 - $forall($_.linsbs, function() { //#29154 - var _y = $k[--$j]; //#29154 - var _z = $k[--$j]; //#29154 - var _10 = (_z == 0) ? 1 : 0; //#29154 - $k[$j++] = _z; //#29154 - for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29154 - $k[$j++] = _10 //#29154 - } //#29154 - }); //#29154 - $_.linpixs = $a(); //#29154 - $k[$j++] = Infinity; //#29156 - $k[$j++] = 0; //#29156 - $aload($_.sep); //#29156 - $_.sep = $a(); //#29156 - $_.linheight = ~~$_.linheight; //#29158 - if ($_.ccpixx == 72) { //#29177 - $k[$j++] = Infinity; //#29166 - for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29165 - $_.i = _1B; //#29163 - for (var _1D = 0, _1E = 2; _1D < _1E; _1D++) { //#29164 - $k[$j++] = 0; //#29164 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - } //#29164 - } //#29164 - $aload($_.sep); //#29166 - for (var _1L = 0, _1M = $_.linheight; _1L < _1M; _1L++) { //#29166 - $aload($_.linpixs); //#29166 - } //#29166 - $_.pixs = $a(); //#29166 - $_.pixx = $_.linpixs.length; //#29168 - } else { //#29177 - $k[$j++] = Infinity; //#29175 - for (var _1T = 0, _1U = $_.ccpixx, _1S = $_.ccpixs.length - 1; _1U < 0 ? _1T >= _1S : _1T <= _1S; _1T += _1U) { //#29174 - $_.i = _1T; //#29172 - for (var _1V = 0, _1W = 2; _1V < _1W; _1V++) { //#29173 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - } //#29173 - } //#29173 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.sep); //#29175 - for (var _1d = 0, _1e = $_.linheight; _1d < _1e; _1d++) { //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.linpixs); //#29175 - } //#29175 - $_.pixs = $a(); //#29175 - $_.pixx = $f($_.ccpixx + 6); //#29177 - } //#29177 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29180 - var _1q = new Map([ + ]); //#29461 + $k[$j++] = _k; //#29462 + bwipp_renmatrix(); //#29462 + $k[$j++] = $_.comp; //#29465 + $k[$j++] = $_.options; //#29465 + bwipp_gs1_cc(); //#29465 + var _n = $k[--$j]; //#29466 + $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29466 + $k[$j++] = _n; //#29467 + bwipp_renmatrix(); //#29467 + $$.restore(); //#29469 + } else { //#29516 + $k[$j++] = 'compsym'; //#29471 + $k[$j++] = $_.comp; //#29471 + $k[$j++] = $_.options; //#29471 + bwipp_gs1_cc(); //#29471 + var _r = $k[--$j]; //#29471 + $_[$k[--$j]] = _r; //#29471 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 + $k[$j++] = Infinity; //#29475 + $k[$j++] = 0; //#29476 + $forall($_.linsbs, function() { //#29476 + var _y = $k[--$j]; //#29476 + var _z = $k[--$j]; //#29476 + var _10 = (_z == 0) ? 1 : 0; //#29476 + $k[$j++] = _z; //#29476 + for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29476 + $k[$j++] = _10 //#29476 + } //#29476 + }); //#29476 + $_.linpixs = $a(); //#29476 + $k[$j++] = Infinity; //#29478 + $k[$j++] = 0; //#29478 + $aload($_.sep); //#29478 + $_.sep = $a(); //#29478 + $_.linheight = ~~$_.linheight; //#29480 + if ($_.ccpixx == 72) { //#29499 + $k[$j++] = Infinity; //#29483 + for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29487 + $_.i = _1B; //#29485 + $k[$j++] = 0; //#29486 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + } //#29486 + $aload($_.sep); //#29488 + for (var _1J = 0, _1K = $_.linheight; _1J < _1K; _1J++) { //#29488 + $aload($_.linpixs); //#29488 + } //#29488 + $_.pixs = $a(); //#29488 + $_.pixx = $_.linpixs.length; //#29490 + } else { //#29499 + $k[$j++] = Infinity; //#29492 + for (var _1R = 0, _1S = $_.ccpixx, _1Q = $_.ccpixs.length - 1; _1S < 0 ? _1R >= _1Q : _1R <= _1Q; _1R += _1S) { //#29496 + $_.i = _1R; //#29494 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + } //#29495 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.sep); //#29497 + for (var _1Z = 0, _1a = $_.linheight; _1Z < _1a; _1Z++) { //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.linpixs); //#29497 + } //#29497 + $_.pixs = $a(); //#29497 + $_.pixx = $f($_.ccpixx + 6); //#29499 + } //#29499 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29502 + var _1m = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37515,122 +37988,121 @@ function bwipp_databarlimitedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29188 - $k[$j++] = _1q; //#29195 - if (!$_.dontdraw) { //#29195 - $$.save(); //#29192 - bwipp_renmatrix(); //#29193 - $$.restore(); //#29194 - } //#29194 - } //#29194 - $_ = Object.getPrototypeOf($_); //#29198 -} - + ]); //#29510 + $k[$j++] = _1m; //#29517 + if (!$_.dontdraw) { //#29517 + $$.save(); //#29514 + bwipp_renmatrix(); //#29515 + $$.restore(); //#29516 + } //#29516 + } //#29516 + $_ = Object.getPrototypeOf($_); //#29520 +} //bwipp_databarlimitedcomposite function bwipp_databarexpandedcomposite() { - $_ = Object.create($_); //#29230 - $_.dontdraw = false; //#29233 - $_.usematrix = false; //#29234 - $_.parse = false; //#29235 - $_.dontlint = false; //#29236 - $_.lintreqs = true; //#29237 - $k[$j++] = $_; //#29239 - bwipp_processoptions(); //#29239 - $_.options = $k[--$j]; //#29239 - $_.barcode = $k[--$j]; //#29240 - if ($_.dontdraw) { //#29242 - $_.usematrix = true; //#29242 - } //#29242 - $search($_.barcode, "|"); //#29245 - if ($k[--$j]) { //#29250 - $_.linear = $k[--$j]; //#29246 - $j--; //#29247 - $_.comp = $k[--$j]; //#29248 - } else { //#29250 - $j--; //#29250 - $k[$j++] = 'bwipp.missingCompositeComponent#29250'; //#29250 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29250 - bwipp_raiseerror(); //#29250 - } //#29250 - if (!$_.usematrix) { //#29253 - $$.save(); //#29253 - } //#29253 - $put($_.options, "lintype", "databarexpanded"); //#29255 - $put($_.options, "linkage", true); //#29256 - $put($_.options, "inkspread", "0"); //#29257 - $put($_.options, "dontdraw", true); //#29258 - $put($_.options, "dontlint", true); //#29259 - var _F = $s($_.linear.length + $_.comp.length); //#29262 - $puti(_F, 0, $_.linear); //#29263 - $puti(_F, $_.linear.length, $_.comp); //#29264 - $k[$j++] = _F; //#29265 - $k[$j++] = 'ai'; //#29265 - bwipp_gs1process(); //#29265 - $j -= 3; //#29265 - $k[$j++] = $_.linear; //#29268 - $k[$j++] = $_.options; //#29268 - bwipp_databarexpanded(); //#29268 - var _L = $k[--$j]; //#29269 - $_.linsbs = $get(_L, "sbs"); //#29269 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29270 - $k[$j++] = _L; //#29271 - if (!$_.usematrix) { //#29271 - bwipp_renlinear(); //#29271 - } else { //#29271 - $j--; //#29271 - } //#29271 + $_ = Object.create($_); //#29552 + $_.dontdraw = false; //#29555 + $_.usematrix = false; //#29556 + $_.parse = false; //#29557 + $_.dontlint = false; //#29558 + $_.lintreqs = true; //#29559 + $k[$j++] = $_; //#29561 + bwipp_processoptions(); //#29561 + $_.options = $k[--$j]; //#29561 + $_.barcode = $k[--$j]; //#29562 + if ($_.dontdraw) { //#29564 + $_.usematrix = true; //#29564 + } //#29564 + $search($_.barcode, "|"); //#29567 + if ($k[--$j]) { //#29572 + $_.linear = $k[--$j]; //#29568 + $j--; //#29569 + $_.comp = $k[--$j]; //#29570 + } else { //#29572 + $j--; //#29572 + $k[$j++] = 'bwipp.missingCompositeComponent#29572'; //#29572 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29572 + bwipp_raiseerror(); //#29572 + } //#29572 + if (!$_.usematrix) { //#29575 + $$.save(); //#29575 + } //#29575 + $put($_.options, "lintype", "databarexpanded"); //#29577 + $put($_.options, "linkage", true); //#29578 + $put($_.options, "inkspreadv", 0); //#29579 + $put($_.options, "dontdraw", true); //#29580 + $put($_.options, "dontlint", true); //#29581 + var _F = $s($_.linear.length + $_.comp.length); //#29584 + $puti(_F, 0, $_.linear); //#29585 + $puti(_F, $_.linear.length, $_.comp); //#29586 + $k[$j++] = _F; //#29587 + $k[$j++] = 'ai'; //#29587 + bwipp_gs1process(); //#29587 + $j -= 3; //#29587 + $k[$j++] = $_.linear; //#29590 + $k[$j++] = $_.options; //#29590 + bwipp_databarexpanded(); //#29590 + var _L = $k[--$j]; //#29591 + $_.linsbs = $get(_L, "sbs"); //#29591 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29592 + $k[$j++] = _L; //#29593 + if (!$_.usematrix) { //#29593 + bwipp_renlinear(); //#29593 + } else { //#29593 + $j--; //#29593 + } //#29593 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29275 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29288 - $_.i = _U; //#29277 - if ($get($_.bot, $_.i) == 0) { //#29285 - if ($get($_.bot, $_.i - 1) == 1) { //#29282 - $k[$j++] = 1; //#29280 - } else { //#29282 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29282 - $k[$j++] = _e; //#29282 - } //#29282 - } else { //#29285 - $k[$j++] = 0; //#29285 - } //#29285 - $put($_.sep, $_.i, $k[--$j]); //#29287 - } //#29287 - }; //#29287 - $k[$j++] = Infinity; //#29290 - $k[$j++] = 0; //#29291 - $forall($_.linsbs, function() { //#29291 - var _j = $k[--$j]; //#29291 - var _k = $k[--$j]; //#29291 - var _l = (_k == 1) ? 0 : 1; //#29291 - $k[$j++] = _k; //#29291 - for (var _m = 0, _n = _j; _m < _n; _m++) { //#29291 - $k[$j++] = _l //#29291 - } //#29291 - }); //#29291 - $astore($a($counttomark() - 1)); //#29292 - $_.bot = $k[--$j]; //#29292 - $j -= 2; //#29292 - $k[$j++] = Infinity; //#29293 - $forall($_.bot, function() { //#29293 - var _s = $k[--$j]; //#29293 - $k[$j++] = $f(1 - _s); //#29293 - }); //#29293 - $_.sep = $a(); //#29293 - $puti($_.sep, 0, $a([0, 0, 0])); //#29294 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29295 - $k[$j++] = Infinity; //#29298 - for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29297 - $k[$j++] = _11; //#29297 - } //#29297 - for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29298 - $k[$j++] = _14; //#29298 - } //#29298 - var _15 = $a(); //#29298 - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29299 - $k[$j++] = $get(_15, _16); //#29299 - $_.sepfinder(); //#29299 - } //#29299 - if (!$_.usematrix) { //#29352 - $$.rmoveto(0, $_.linheight); //#29302 + $_.fp = $k[--$j]; //#29597 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29610 + $_.i = _U; //#29599 + if ($get($_.bot, $_.i) == 0) { //#29607 + if ($get($_.bot, $_.i - 1) == 1) { //#29604 + $k[$j++] = 1; //#29602 + } else { //#29604 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29604 + $k[$j++] = _e; //#29604 + } //#29604 + } else { //#29607 + $k[$j++] = 0; //#29607 + } //#29607 + $put($_.sep, $_.i, $k[--$j]); //#29609 + } //#29609 + }; //#29609 + $k[$j++] = Infinity; //#29612 + $k[$j++] = 0; //#29613 + $forall($_.linsbs, function() { //#29613 + var _j = $k[--$j]; //#29613 + var _k = $k[--$j]; //#29613 + var _l = (_k == 1) ? 0 : 1; //#29613 + $k[$j++] = _k; //#29613 + for (var _m = 0, _n = _j; _m < _n; _m++) { //#29613 + $k[$j++] = _l //#29613 + } //#29613 + }); //#29613 + $astore($a($counttomark() - 1)); //#29614 + $_.bot = $k[--$j]; //#29614 + $j -= 2; //#29614 + $k[$j++] = Infinity; //#29615 + $forall($_.bot, function() { //#29615 + var _s = $k[--$j]; //#29615 + $k[$j++] = $f(1 - _s); //#29615 + }); //#29615 + $_.sep = $a(); //#29615 + $puti($_.sep, 0, $a([0, 0, 0])); //#29616 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29617 + $k[$j++] = Infinity; //#29618 + for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29619 + $k[$j++] = _11; //#29619 + } //#29619 + for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29620 + $k[$j++] = _14; //#29620 + } //#29620 + var _15 = $a(); //#29620 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29621 + $k[$j++] = $get(_15, _16); //#29621 + $_.sepfinder(); //#29621 + } //#29621 + if (!$_.usematrix) { //#29674 + $$.rmoveto(0, $_.linheight); //#29624 var _1F = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37639,65 +38111,63 @@ function bwipp_databarexpandedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29309 - $k[$j++] = _1F; //#29310 - bwipp_renmatrix(); //#29310 - $$.rmoveto(1, 1); //#29313 - $k[$j++] = $_.comp; //#29313 - $k[$j++] = $_.options; //#29313 - bwipp_gs1_cc(); //#29313 - bwipp_renmatrix(); //#29313 - $$.restore(); //#29315 - } else { //#29352 - $k[$j++] = 'compsym'; //#29317 - $k[$j++] = $_.comp; //#29317 - $k[$j++] = $_.options; //#29317 - bwipp_gs1_cc(); //#29317 - var _1K = $k[--$j]; //#29317 - $_[$k[--$j]] = _1K; //#29317 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29318 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29319 - $k[$j++] = Infinity; //#29322 - $k[$j++] = 0; //#29322 - $forall($_.linsbs, function() { //#29322 - var _1R = $k[--$j]; //#29322 - var _1S = $k[--$j]; //#29322 - var _1T = (_1S == 0) ? 1 : 0; //#29322 - $k[$j++] = _1S; //#29322 - for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29322 - $k[$j++] = _1T //#29322 - } //#29322 - }); //#29322 - $_.linpixs = $a(); //#29322 - $k[$j++] = Infinity; //#29324 - $k[$j++] = 0; //#29324 - $aload($_.sep); //#29324 - $_.sep = $a(); //#29324 - $_.linheight = ~~$_.linheight; //#29326 - $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29327 - $k[$j++] = Infinity; //#29328 - for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29328 - $k[$j++] = 0; //#29328 - } //#29328 - $_.ccrpad = $a(); //#29328 - $k[$j++] = Infinity; //#29334 - for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29333 - $_.i = _1j; //#29331 - for (var _1l = 0, _1m = 2; _1l < _1m; _1l++) { //#29332 - $k[$j++] = 0; //#29332 - $k[$j++] = 0; //#29332 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29332 - $aload($_.ccrpad); //#29332 - } //#29332 - } //#29332 - $aload($_.sep); //#29334 - for (var _1u = 0, _1v = $_.linheight; _1u < _1v; _1u++) { //#29334 - $aload($_.linpixs); //#29334 - } //#29334 - $_.pixs = $a(); //#29334 - $_.pixx = $_.linpixs.length; //#29337 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29338 - var _27 = new Map([ + ]); //#29631 + $k[$j++] = _1F; //#29632 + bwipp_renmatrix(); //#29632 + $$.rmoveto(1, 1); //#29635 + $k[$j++] = $_.comp; //#29635 + $k[$j++] = $_.options; //#29635 + bwipp_gs1_cc(); //#29635 + bwipp_renmatrix(); //#29635 + $$.restore(); //#29637 + } else { //#29674 + $k[$j++] = 'compsym'; //#29639 + $k[$j++] = $_.comp; //#29639 + $k[$j++] = $_.options; //#29639 + bwipp_gs1_cc(); //#29639 + var _1K = $k[--$j]; //#29639 + $_[$k[--$j]] = _1K; //#29639 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29640 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29641 + $k[$j++] = Infinity; //#29643 + $k[$j++] = 0; //#29644 + $forall($_.linsbs, function() { //#29644 + var _1R = $k[--$j]; //#29644 + var _1S = $k[--$j]; //#29644 + var _1T = (_1S == 0) ? 1 : 0; //#29644 + $k[$j++] = _1S; //#29644 + for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29644 + $k[$j++] = _1T //#29644 + } //#29644 + }); //#29644 + $_.linpixs = $a(); //#29644 + $k[$j++] = Infinity; //#29646 + $k[$j++] = 0; //#29646 + $aload($_.sep); //#29646 + $_.sep = $a(); //#29646 + $_.linheight = ~~$_.linheight; //#29648 + $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29649 + $k[$j++] = Infinity; //#29650 + for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29650 + $k[$j++] = 0; //#29650 + } //#29650 + $_.ccrpad = $a(); //#29650 + $k[$j++] = Infinity; //#29651 + for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29655 + $_.i = _1j; //#29653 + $k[$j++] = 0; //#29654 + $k[$j++] = 0; //#29654 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 + $aload($_.ccrpad); //#29654 + } //#29654 + $aload($_.sep); //#29656 + for (var _1s = 0, _1t = $_.linheight; _1s < _1t; _1s++) { //#29656 + $aload($_.linpixs); //#29656 + } //#29656 + $_.pixs = $a(); //#29656 + $_.pixx = $_.linpixs.length; //#29659 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29660 + var _25 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37705,108 +38175,107 @@ function bwipp_databarexpandedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29346 - $k[$j++] = _27; //#29353 - if (!$_.dontdraw) { //#29353 - $$.save(); //#29350 - bwipp_renmatrix(); //#29351 - $$.restore(); //#29352 - } //#29352 - } //#29352 - $_ = Object.getPrototypeOf($_); //#29356 -} - + ]); //#29668 + $k[$j++] = _25; //#29675 + if (!$_.dontdraw) { //#29675 + $$.save(); //#29672 + bwipp_renmatrix(); //#29673 + $$.restore(); //#29674 + } //#29674 + } //#29674 + $_ = Object.getPrototypeOf($_); //#29678 +} //bwipp_databarexpandedcomposite function bwipp_databarexpandedstackedcomposite() { - $_ = Object.create($_); //#29387 - $_.dontdraw = false; //#29390 - $_.usematrix = false; //#29391 - $_.parse = false; //#29392 - $_.dontlint = false; //#29393 - $_.lintreqs = true; //#29394 - $k[$j++] = $_; //#29396 - bwipp_processoptions(); //#29396 - $_.options = $k[--$j]; //#29396 - $_.barcode = $k[--$j]; //#29397 - if ($_.dontdraw) { //#29399 - $_.usematrix = true; //#29399 - } //#29399 - $search($_.barcode, "|"); //#29402 - if ($k[--$j]) { //#29407 - $_.linear = $k[--$j]; //#29403 - $j--; //#29404 - $_.comp = $k[--$j]; //#29405 - } else { //#29407 - $j--; //#29407 - $k[$j++] = 'bwipp.missingCompositeComponent#29407'; //#29407 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29407 - bwipp_raiseerror(); //#29407 - } //#29407 - if (!$_.usematrix) { //#29410 - $$.save(); //#29410 - } //#29410 - $put($_.options, "lintype", "databarexpandedstacked"); //#29412 - $put($_.options, "linkage", true); //#29413 - $put($_.options, "inkspread", "0"); //#29414 - $put($_.options, "dontdraw", true); //#29415 - $put($_.options, "dontlint", true); //#29416 - var _F = $s($_.linear.length + $_.comp.length); //#29419 - $puti(_F, 0, $_.linear); //#29420 - $puti(_F, $_.linear.length, $_.comp); //#29421 - $k[$j++] = _F; //#29422 - $k[$j++] = 'ai'; //#29422 - bwipp_gs1process(); //#29422 - $j -= 3; //#29422 - $k[$j++] = $_.linear; //#29425 - $k[$j++] = $_.options; //#29425 - bwipp_databarexpandedstacked(); //#29425 - var _L = $k[--$j]; //#29426 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29426 - $_.linheight = $get(_L, "pixy"); //#29427 - $k[$j++] = _L; //#29428 - if (!$_.usematrix) { //#29428 - bwipp_renmatrix(); //#29428 - } else { //#29428 - $_.linpixs = $get($k[--$j], 'pixs'); //#29428 - } //#29428 + $_ = Object.create($_); //#29709 + $_.dontdraw = false; //#29712 + $_.usematrix = false; //#29713 + $_.parse = false; //#29714 + $_.dontlint = false; //#29715 + $_.lintreqs = true; //#29716 + $k[$j++] = $_; //#29718 + bwipp_processoptions(); //#29718 + $_.options = $k[--$j]; //#29718 + $_.barcode = $k[--$j]; //#29719 + if ($_.dontdraw) { //#29721 + $_.usematrix = true; //#29721 + } //#29721 + $search($_.barcode, "|"); //#29724 + if ($k[--$j]) { //#29729 + $_.linear = $k[--$j]; //#29725 + $j--; //#29726 + $_.comp = $k[--$j]; //#29727 + } else { //#29729 + $j--; //#29729 + $k[$j++] = 'bwipp.missingCompositeComponent#29729'; //#29729 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29729 + bwipp_raiseerror(); //#29729 + } //#29729 + if (!$_.usematrix) { //#29732 + $$.save(); //#29732 + } //#29732 + $put($_.options, "lintype", "databarexpandedstacked"); //#29734 + $put($_.options, "linkage", true); //#29735 + $put($_.options, "inkspreadv", 0); //#29736 + $put($_.options, "dontdraw", true); //#29737 + $put($_.options, "dontlint", true); //#29738 + var _F = $s($_.linear.length + $_.comp.length); //#29741 + $puti(_F, 0, $_.linear); //#29742 + $puti(_F, $_.linear.length, $_.comp); //#29743 + $k[$j++] = _F; //#29744 + $k[$j++] = 'ai'; //#29744 + bwipp_gs1process(); //#29744 + $j -= 3; //#29744 + $k[$j++] = $_.linear; //#29747 + $k[$j++] = $_.options; //#29747 + bwipp_databarexpandedstacked(); //#29747 + var _L = $k[--$j]; //#29748 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29748 + $_.linheight = $get(_L, "pixy"); //#29749 + $k[$j++] = _L; //#29750 + if (!$_.usematrix) { //#29750 + bwipp_renmatrix(); //#29750 + } else { //#29750 + $_.linpixs = $get($k[--$j], 'pixs'); //#29750 + } //#29750 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29432 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29445 - $_.i = _X; //#29434 - if ($get($_.bot, $_.i) == 0) { //#29442 - if ($get($_.bot, $_.i - 1) == 1) { //#29439 - $k[$j++] = 1; //#29437 - } else { //#29439 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29439 - $k[$j++] = _h; //#29439 - } //#29439 - } else { //#29442 - $k[$j++] = 0; //#29442 - } //#29442 - $put($_.sep, $_.i, $k[--$j]); //#29444 - } //#29444 - }; //#29444 - $k[$j++] = Infinity; //#29447 - var _l = $_.bot; //#29447 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29447 - $k[$j++] = $f(1 - $get(_l, _m)); //#29447 - } //#29447 - $_.sep = $a(); //#29447 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29448 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29449 - $k[$j++] = Infinity; //#29452 - for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29451 - $k[$j++] = _x; //#29451 - } //#29451 - for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29452 - $k[$j++] = _10; //#29452 - } //#29452 - var _11 = $a(); //#29452 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29453 - $k[$j++] = $get(_11, _12); //#29453 - $_.sepfinder(); //#29453 - } //#29453 - if (!$_.usematrix) { //#29500 - $$.rmoveto(0, $_.linheight); //#29455 + $_.fp = $k[--$j]; //#29754 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29767 + $_.i = _X; //#29756 + if ($get($_.bot, $_.i) == 0) { //#29764 + if ($get($_.bot, $_.i - 1) == 1) { //#29761 + $k[$j++] = 1; //#29759 + } else { //#29761 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29761 + $k[$j++] = _h; //#29761 + } //#29761 + } else { //#29764 + $k[$j++] = 0; //#29764 + } //#29764 + $put($_.sep, $_.i, $k[--$j]); //#29766 + } //#29766 + }; //#29766 + $k[$j++] = Infinity; //#29769 + var _l = $_.bot; //#29769 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29769 + $k[$j++] = $f(1 - $get(_l, _m)); //#29769 + } //#29769 + $_.sep = $a(); //#29769 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29770 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29771 + $k[$j++] = Infinity; //#29772 + for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29773 + $k[$j++] = _x; //#29773 + } //#29773 + for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29774 + $k[$j++] = _10; //#29774 + } //#29774 + var _11 = $a(); //#29774 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29775 + $k[$j++] = $get(_11, _12); //#29775 + $_.sepfinder(); //#29775 + } //#29775 + if (!$_.usematrix) { //#29822 + $$.rmoveto(0, $_.linheight); //#29777 var _1B = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37815,50 +38284,48 @@ function bwipp_databarexpandedstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29462 - $k[$j++] = _1B; //#29463 - bwipp_renmatrix(); //#29463 - var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29466 - $$.rmoveto(_1E, 1); //#29466 - $k[$j++] = $_.comp; //#29467 - $k[$j++] = $_.options; //#29467 - bwipp_gs1_cc(); //#29467 - bwipp_renmatrix(); //#29467 - $$.restore(); //#29469 - } else { //#29500 - $k[$j++] = 'compsym'; //#29471 - $k[$j++] = $_.comp; //#29471 - $k[$j++] = $_.options; //#29471 - bwipp_gs1_cc(); //#29471 - var _1J = $k[--$j]; //#29471 - $_[$k[--$j]] = _1J; //#29471 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 - $_.pixx = $_.sep.length; //#29475 - $k[$j++] = Infinity; //#29476 - for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29476 - $k[$j++] = 0; //#29476 - } //#29476 - $_.cclpad = $a(); //#29476 - $k[$j++] = Infinity; //#29477 - for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29477 - $k[$j++] = 0; //#29477 - } //#29477 - $_.ccrpad = $a(); //#29477 - $k[$j++] = Infinity; //#29483 - for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29482 - $_.i = _1d; //#29480 - for (var _1f = 0, _1g = 2; _1f < _1g; _1f++) { //#29481 - $aload($_.cclpad); //#29481 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29481 - $aload($_.ccrpad); //#29481 - } //#29481 - } //#29481 - $aload($_.sep); //#29483 - $aload($_.linpixs); //#29483 - $_.pixs = $a(); //#29483 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29486 - var _1y = new Map([ + ]); //#29784 + $k[$j++] = _1B; //#29785 + bwipp_renmatrix(); //#29785 + var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29788 + $$.rmoveto(_1E, 1); //#29788 + $k[$j++] = $_.comp; //#29789 + $k[$j++] = $_.options; //#29789 + bwipp_gs1_cc(); //#29789 + bwipp_renmatrix(); //#29789 + $$.restore(); //#29791 + } else { //#29822 + $k[$j++] = 'compsym'; //#29793 + $k[$j++] = $_.comp; //#29793 + $k[$j++] = $_.options; //#29793 + bwipp_gs1_cc(); //#29793 + var _1J = $k[--$j]; //#29793 + $_[$k[--$j]] = _1J; //#29793 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29794 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29795 + $_.pixx = $_.sep.length; //#29797 + $k[$j++] = Infinity; //#29798 + for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29798 + $k[$j++] = 0; //#29798 + } //#29798 + $_.cclpad = $a(); //#29798 + $k[$j++] = Infinity; //#29799 + for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29799 + $k[$j++] = 0; //#29799 + } //#29799 + $_.ccrpad = $a(); //#29799 + $k[$j++] = Infinity; //#29800 + for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29804 + $_.i = _1d; //#29802 + $aload($_.cclpad); //#29803 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29803 + $aload($_.ccrpad); //#29803 + } //#29803 + $aload($_.sep); //#29805 + $aload($_.linpixs); //#29805 + $_.pixs = $a(); //#29805 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29808 + var _1w = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37866,121 +38333,124 @@ function bwipp_databarexpandedstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29494 - $k[$j++] = _1y; //#29501 - if (!$_.dontdraw) { //#29501 - $$.save(); //#29498 - bwipp_renmatrix(); //#29499 - $$.restore(); //#29500 - } //#29500 - } //#29500 - $_ = Object.getPrototypeOf($_); //#29504 -} - + ]); //#29816 + $k[$j++] = _1w; //#29823 + if (!$_.dontdraw) { //#29823 + $$.save(); //#29820 + bwipp_renmatrix(); //#29821 + $$.restore(); //#29822 + } //#29822 + } //#29822 + $_ = Object.getPrototypeOf($_); //#29826 +} //bwipp_databarexpandedstackedcomposite function bwipp_gs1_128composite() { - $_ = Object.create($_); //#29536 - $_.dontdraw = false; //#29539 - $_.usematrix = false; //#29540 - $_.parse = false; //#29541 - $_.dontlint = false; //#29542 - $_.lintreqs = true; //#29543 - $k[$j++] = $_; //#29545 - bwipp_processoptions(); //#29545 - $_.options = $k[--$j]; //#29545 - $_.barcode = $k[--$j]; //#29546 - if ($_.dontdraw) { //#29548 - $_.usematrix = true; //#29548 - } //#29548 - $search($_.barcode, "|"); //#29551 - if ($k[--$j]) { //#29556 - $_.linear = $k[--$j]; //#29552 - $j--; //#29553 - $_.comp = $k[--$j]; //#29554 - } else { //#29556 - $j--; //#29556 - $k[$j++] = 'bwipp.missingCompositeComponent#29556'; //#29556 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29556 - bwipp_raiseerror(); //#29556 - } //#29556 - if (!$_.usematrix) { //#29559 - $$.save(); //#29559 - } //#29559 - $put($_.options, "inkspread", "0"); //#29561 - $put($_.options, "dontdraw", true); //#29562 - $put($_.options, "dontlint", true); //#29563 - var _D = $s($_.linear.length + $_.comp.length); //#29566 - $puti(_D, 0, $_.linear); //#29567 - $puti(_D, $_.linear.length, $_.comp); //#29568 - $k[$j++] = _D; //#29569 - $k[$j++] = 'ai'; //#29569 - bwipp_gs1process(); //#29569 - $j -= 3; //#29569 - $put($_.options, "linkagea", true); //#29572 - $k[$j++] = $_.linear; //#29573 - $k[$j++] = Infinity; //#29573 - $forall($_.options); //#29573 - var _K = $d(); //#29573 - $k[$j++] = _K; //#29573 - bwipp_gs1_128(); //#29573 - var _M = $get($k[--$j], "sbs"); //#29574 - $k[$j++] = 0; //#29574 - $forall(_M, function() { //#29574 - var _N = $k[--$j]; //#29574 - var _O = $k[--$j]; //#29574 - $k[$j++] = $f(_O + _N); //#29574 - }); //#29574 - $_.linwidth = $k[--$j]; //#29574 - $put($_.options, "lintype", "gs1-128"); //#29577 - $put($_.options, "linwidth", $_.linwidth); //#29578 - $k[$j++] = $_.comp; //#29579 - $k[$j++] = $_.options; //#29579 - bwipp_gs1_cc(); //#29579 - $_.compsym = $k[--$j]; //#29579 - if ($get($_.compsym, "pixx") == 99) { //#29580 - $k[$j++] = "a"; //#29580 - } else { //#29580 - $k[$j++] = "c"; //#29580 - } //#29580 - $_.linktype = $k[--$j]; //#29580 - if ($eq($_.linktype, "a")) { //#29588 - $put($_.options, "linkagea", true); //#29584 - $put($_.options, "linkagec", false); //#29585 - } else { //#29588 - $put($_.options, "linkagea", false); //#29587 - $put($_.options, "linkagec", true); //#29588 - } //#29588 - $k[$j++] = $_.linear; //#29590 - $k[$j++] = Infinity; //#29590 - $forall($_.options); //#29590 - var _g = $d(); //#29590 - $k[$j++] = _g; //#29590 - bwipp_gs1_128(); //#29590 - var _h = $k[--$j]; //#29591 - $_.linsbs = $get(_h, "sbs"); //#29591 - $_.linheight = $get($get(_h, "bhs"), 0) * 72; //#29592 - $k[$j++] = _h; //#29593 - if (!$_.usematrix) { //#29593 - bwipp_renlinear(); //#29593 - } else { //#29593 - $j--; //#29593 - } //#29593 - $k[$j++] = Infinity; //#29596 - $k[$j++] = 1; //#29597 - $forall($_.linsbs, function() { //#29597 - var _n = $k[--$j]; //#29597 - var _o = $k[--$j]; //#29597 - var _p = (_o == 0) ? 1 : 0; //#29597 - $k[$j++] = _o; //#29597 - for (var _q = 0, _r = _n; _q < _r; _q++) { //#29597 - $k[$j++] = _p //#29597 - } //#29597 - }); //#29597 - $astore($a($counttomark() - 1)); //#29598 - $_.sep = $k[--$j]; //#29598 - $j -= 2; //#29598 - if (!$_.usematrix) { //#29609 - $$.rmoveto(0, $_.linheight); //#29600 - var _11 = new Map([ + $_ = Object.create($_); //#29858 + $_.dontdraw = false; //#29861 + $_.usematrix = false; //#29862 + $_.parse = false; //#29863 + $_.dontlint = false; //#29864 + $_.lintreqs = true; //#29865 + $k[$j++] = $_; //#29867 + bwipp_processoptions(); //#29867 + $_.options = $k[--$j]; //#29867 + $_.barcode = $k[--$j]; //#29868 + if ($_.dontdraw) { //#29870 + $_.usematrix = true; //#29870 + } //#29870 + $search($_.barcode, "|"); //#29873 + if ($k[--$j]) { //#29878 + $_.linear = $k[--$j]; //#29874 + $j--; //#29875 + $_.comp = $k[--$j]; //#29876 + } else { //#29878 + $j--; //#29878 + $k[$j++] = 'bwipp.missingCompositeComponent#29878'; //#29878 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29878 + bwipp_raiseerror(); //#29878 + } //#29878 + if (!$_.usematrix) { //#29881 + $$.save(); //#29881 + } //#29881 + $put($_.options, "inkspreadv", 0); //#29883 + $put($_.options, "dontdraw", true); //#29884 + $put($_.options, "dontlint", true); //#29885 + var _D = $s($_.linear.length + $_.comp.length); //#29888 + $puti(_D, 0, $_.linear); //#29889 + $puti(_D, $_.linear.length, $_.comp); //#29890 + $k[$j++] = _D; //#29891 + $k[$j++] = 'ai'; //#29891 + bwipp_gs1process(); //#29891 + $j -= 3; //#29891 + $put($_.options, "linkagea", true); //#29894 + $k[$j++] = $_.linear; //#29895 + $k[$j++] = Infinity; //#29895 + $forall($_.options); //#29895 + var _K = $d(); //#29895 + $k[$j++] = _K; //#29895 + bwipp_gs1_128(); //#29895 + var _M = $get($k[--$j], "sbs"); //#29896 + $k[$j++] = 0; //#29896 + $forall(_M, function() { //#29896 + var _N = $k[--$j]; //#29896 + var _O = $k[--$j]; //#29896 + $k[$j++] = $f(_O + _N); //#29896 + }); //#29896 + $_.linwidth = $k[--$j]; //#29896 + $put($_.options, "lintype", "gs1-128"); //#29899 + $put($_.options, "linwidth", $_.linwidth); //#29900 + $k[$j++] = $_.comp; //#29901 + $k[$j++] = Infinity; //#29901 + $forall($_.options); //#29901 + var _V = $d(); //#29901 + $k[$j++] = _V; //#29901 + bwipp_gs1_cc(); //#29901 + $_.compsym = $k[--$j]; //#29901 + if ($get($_.compsym, "pixx") == 99) { //#29902 + $k[$j++] = "a"; //#29902 + } else { //#29902 + $k[$j++] = "c"; //#29902 + } //#29902 + $_.linktype = $k[--$j]; //#29902 + if ($eq($_.linktype, "a")) { //#29910 + $put($_.options, "linkagea", true); //#29906 + $put($_.options, "linkagec", false); //#29907 + } else { //#29910 + $put($_.options, "linkagea", false); //#29909 + $put($_.options, "linkagec", true); //#29910 + } //#29910 + $k[$j++] = $_.linear; //#29912 + $k[$j++] = Infinity; //#29912 + var _g = $_.options; //#29912 + $forall(_g); //#29912 + var _h = $d(); //#29912 + $k[$j++] = _h; //#29912 + bwipp_gs1_128(); //#29912 + var _i = $k[--$j]; //#29913 + $_.linsbs = $get(_i, "sbs"); //#29913 + $_.linheight = $get($get(_i, "bhs"), 0) * 72; //#29914 + $k[$j++] = _i; //#29915 + if (!$_.usematrix) { //#29915 + bwipp_renlinear(); //#29915 + } else { //#29915 + $j--; //#29915 + } //#29915 + $k[$j++] = Infinity; //#29918 + $k[$j++] = 1; //#29919 + $forall($_.linsbs, function() { //#29919 + var _o = $k[--$j]; //#29919 + var _p = $k[--$j]; //#29919 + var _q = (_p == 0) ? 1 : 0; //#29919 + $k[$j++] = _p; //#29919 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#29919 + $k[$j++] = _q //#29919 + } //#29919 + }); //#29919 + $astore($a($counttomark() - 1)); //#29920 + $_.sep = $k[--$j]; //#29920 + $j -= 2; //#29920 + if (!$_.usematrix) { //#29931 + $$.rmoveto(0, $_.linheight); //#29922 + var _12 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], ["pixx", $_.sep.length], @@ -37988,98 +38458,94 @@ function bwipp_gs1_128composite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29607 - $k[$j++] = _11; //#29608 - bwipp_renmatrix(); //#29608 - } //#29608 - if ($eq($_.linktype, "a")) { //#29617 - $_.s = ~~($f($_.linwidth - 2) / 11); //#29613 - $_.p = ~~(($_.s - 9) / 2); //#29614 - $k[$j++] = 'x'; //#29615 - $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29615 - if ($_.p == 0) { //#29615 - var _18 = $k[--$j]; //#29615 - $k[$j++] = $f(_18 + 2); //#29615 - } //#29615 - var _19 = $k[--$j]; //#29615 - $_[$k[--$j]] = $f(_19 - 99); //#29615 - } else { //#29617 - $_.x = -7; //#29617 - } //#29617 - if (!$_.usematrix) { //#29675 - $$.rmoveto($_.x, 1); //#29621 - $k[$j++] = $_.compsym; //#29621 - bwipp_renmatrix(); //#29621 - $$.restore(); //#29623 - } else { //#29675 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29625 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29626 - $k[$j++] = Infinity; //#29629 - $forall($_.linsbs, function() { //#29629 - var _1J = $k[--$j]; //#29629 - var _1K = $k[--$j]; //#29629 - var _1L = (_1K == 1) ? 0 : 1; //#29629 - $k[$j++] = _1K; //#29629 - for (var _1M = 0, _1N = _1J; _1M < _1N; _1M++) { //#29629 - $k[$j++] = _1L //#29629 - } //#29629 - }); //#29629 - $_.linpixs = $a(); //#29629 - if ($_.x > 0) { //#29637 - $k[$j++] = Infinity; //#29633 - for (var _1R = 0, _1S = $_.x; _1R < _1S; _1R++) { //#29633 - $k[$j++] = 0; //#29633 - } //#29633 - $_.cclpad = $a(); //#29633 - $_.linlpad = $a(0); //#29634 - } else { //#29637 - $_.cclpad = $a(0); //#29636 - $k[$j++] = Infinity; //#29637 - for (var _1X = 0, _1Y = -$_.x; _1X < _1Y; _1X++) { //#29637 - $k[$j++] = 0; //#29637 - } //#29637 - $_.linlpad = $a(); //#29637 - } //#29637 - $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29640 - if ($_.diff > 0) { //#29646 - $k[$j++] = Infinity; //#29642 - for (var _1f = 0, _1g = $_.diff; _1f < _1g; _1f++) { //#29642 - $k[$j++] = 0; //#29642 - } //#29642 - $_.ccrpad = $a(); //#29642 - $_.linrpad = $a(0); //#29643 - } else { //#29646 - $_.ccrpad = $a(0); //#29645 - $k[$j++] = Infinity; //#29646 - for (var _1l = 0, _1m = -$_.diff; _1l < _1m; _1l++) { //#29646 - $k[$j++] = 0; //#29646 - } //#29646 - $_.linrpad = $a(); //#29646 - } //#29646 - $_.linheight = ~~$_.linheight; //#29649 - var _1q = $eq($_.linktype, "a") ? 2 : 3; //#29650 - $_.ccrepeat = _1q; //#29650 - $k[$j++] = Infinity; //#29657 - for (var _1u = 0, _1v = $_.ccpixx, _1t = $_.ccpixs.length - 1; _1v < 0 ? _1u >= _1t : _1u <= _1t; _1u += _1v) { //#29655 - $_.i = _1u; //#29653 - for (var _1x = 0, _1y = $_.ccrepeat; _1x < _1y; _1x++) { //#29654 - $aload($_.cclpad); //#29654 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 - $aload($_.ccrpad); //#29654 - } //#29654 - } //#29654 - $aload($_.linlpad); //#29656 - $aload($_.sep); //#29656 - $aload($_.linrpad); //#29656 - for (var _29 = 0, _2A = $_.linheight; _29 < _2A; _29++) { //#29657 - $aload($_.linlpad); //#29657 - $aload($_.linpixs); //#29657 - $aload($_.linrpad); //#29657 - } //#29657 - $_.pixs = $a(); //#29657 - $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29660 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29661 - var _2Q = new Map([ + ]); //#29929 + $k[$j++] = _12; //#29930 + bwipp_renmatrix(); //#29930 + } //#29930 + if ($eq($_.linktype, "a")) { //#29939 + $_.s = ~~($f($_.linwidth - 2) / 11); //#29935 + $_.p = ~~(($_.s - 9) / 2); //#29936 + $k[$j++] = 'x'; //#29937 + $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29937 + if ($_.p == 0) { //#29937 + var _19 = $k[--$j]; //#29937 + $k[$j++] = $f(_19 + 2); //#29937 + } //#29937 + var _1A = $k[--$j]; //#29937 + $_[$k[--$j]] = $f(_1A - 99); //#29937 + } else { //#29939 + $_.x = -7; //#29939 + } //#29939 + if (!$_.usematrix) { //#29996 + $$.rmoveto($_.x, 1); //#29943 + $k[$j++] = $_.compsym; //#29943 + bwipp_renmatrix(); //#29943 + $$.restore(); //#29945 + } else { //#29996 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29947 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29948 + $k[$j++] = Infinity; //#29950 + $forall($_.linsbs, function() { //#29951 + var _1K = $k[--$j]; //#29951 + var _1L = $k[--$j]; //#29951 + var _1M = (_1L == 1) ? 0 : 1; //#29951 + $k[$j++] = _1L; //#29951 + for (var _1N = 0, _1O = _1K; _1N < _1O; _1N++) { //#29951 + $k[$j++] = _1M //#29951 + } //#29951 + }); //#29951 + $_.linpixs = $a(); //#29951 + if ($_.x > 0) { //#29959 + $k[$j++] = Infinity; //#29955 + for (var _1S = 0, _1T = $_.x; _1S < _1T; _1S++) { //#29955 + $k[$j++] = 0; //#29955 + } //#29955 + $_.cclpad = $a(); //#29955 + $_.linlpad = $a(0); //#29956 + } else { //#29959 + $_.cclpad = $a(0); //#29958 + $k[$j++] = Infinity; //#29959 + for (var _1Y = 0, _1Z = -$_.x; _1Y < _1Z; _1Y++) { //#29959 + $k[$j++] = 0; //#29959 + } //#29959 + $_.linlpad = $a(); //#29959 + } //#29959 + $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29962 + if ($_.diff > 0) { //#29968 + $k[$j++] = Infinity; //#29964 + for (var _1g = 0, _1h = $_.diff; _1g < _1h; _1g++) { //#29964 + $k[$j++] = 0; //#29964 + } //#29964 + $_.ccrpad = $a(); //#29964 + $_.linrpad = $a(0); //#29965 + } else { //#29968 + $_.ccrpad = $a(0); //#29967 + $k[$j++] = Infinity; //#29968 + for (var _1m = 0, _1n = -$_.diff; _1m < _1n; _1m++) { //#29968 + $k[$j++] = 0; //#29968 + } //#29968 + $_.linrpad = $a(); //#29968 + } //#29968 + $_.linheight = ~~$_.linheight; //#29971 + $k[$j++] = Infinity; //#29972 + for (var _1t = 0, _1u = $_.ccpixx, _1s = $_.ccpixs.length - 1; _1u < 0 ? _1t >= _1s : _1t <= _1s; _1t += _1u) { //#29976 + $_.i = _1t; //#29974 + $aload($_.cclpad); //#29975 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29975 + $aload($_.ccrpad); //#29975 + } //#29975 + $aload($_.linlpad); //#29977 + $aload($_.sep); //#29977 + $aload($_.linrpad); //#29977 + for (var _25 = 0, _26 = $_.linheight; _25 < _26; _25++) { //#29978 + $aload($_.linlpad); //#29978 + $aload($_.linpixs); //#29978 + $aload($_.linrpad); //#29978 + } //#29978 + $_.pixs = $a(); //#29978 + $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29981 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29982 + var _2M = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -38087,1671 +38553,1709 @@ function bwipp_gs1_128composite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29669 - $k[$j++] = _2Q; //#29676 - if (!$_.dontdraw) { //#29676 - $$.save(); //#29673 - bwipp_renmatrix(); //#29674 - $$.restore(); //#29675 - } //#29675 - } //#29675 - $_ = Object.getPrototypeOf($_); //#29679 -} - + ]); //#29990 + $k[$j++] = _2M; //#29997 + if (!$_.dontdraw) { //#29997 + $$.save(); //#29994 + bwipp_renmatrix(); //#29995 + $$.restore(); //#29996 + } //#29996 + } //#29996 + $_ = Object.getPrototypeOf($_); //#30000 +} //bwipp_gs1_128composite function bwipp_gs1datamatrix() { - $_ = Object.create($_); //#29709 - $_.dontdraw = false; //#29712 - $_.parse = false; //#29713 - $_.dontlint = false; //#29714 - $_.lintreqs = true; //#29715 - $_.gssep = false; //#29716 - $k[$j++] = $_; //#29718 - bwipp_processoptions(); //#29718 - $_.options = $k[--$j]; //#29718 - $_.barcode = $k[--$j]; //#29719 - $k[$j++] = $_.barcode; //#29721 - $k[$j++] = 'ai'; //#29721 - bwipp_gs1process(); //#29721 - $_.fncs = $k[--$j]; //#29722 - $_.vals = $k[--$j]; //#29723 - $_.ais = $k[--$j]; //#29724 - $_.fnc1 = -1; //#29727 - $_.dmtx = $a([$_.fnc1]); //#29728 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29744 - $_.i = _A; //#29730 - $_.ai = $get($_.ais, $_.i); //#29731 - $_.val = $get($_.vals, $_.i); //#29732 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29733 - $puti(_K, 0, $_.dmtx); //#29734 - $k[$j++] = _K; //#29735 - $k[$j++] = _K; //#29735 - $k[$j++] = $_.dmtx.length; //#29735 - $k[$j++] = $_.ai; //#29735 - $k[$j++] = Infinity; //#29735 - var _O = $k[--$j]; //#29735 - var _P = $k[--$j]; //#29735 - $k[$j++] = _O; //#29735 - $forall(_P); //#29735 - var _Q = $a(); //#29735 - var _R = $k[--$j]; //#29735 - $puti($k[--$j], _R, _Q); //#29735 - var _T = $k[--$j]; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29736 - $k[$j++] = $_.val; //#29736 - $k[$j++] = Infinity; //#29736 - var _X = $k[--$j]; //#29736 - var _Y = $k[--$j]; //#29736 - $k[$j++] = _X; //#29736 - $forall(_Y); //#29736 - var _Z = $a(); //#29736 - var _a = $k[--$j]; //#29736 - $puti($k[--$j], _a, _Z); //#29736 - $_.dmtx = $k[--$j]; //#29737 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29743 - var _j = $a($_.dmtx.length + 1); //#29739 - $puti(_j, 0, $_.dmtx); //#29740 - $k[$j++] = _j; //#29741 - $k[$j++] = _j; //#29741 - $k[$j++] = $_.dmtx.length; //#29741 - if ($_.gssep) { //#29741 - $k[$j++] = 29; //#29741 - } else { //#29741 - $k[$j++] = $_.fnc1; //#29741 - } //#29741 - var _o = $k[--$j]; //#29741 - var _p = $k[--$j]; //#29741 - $put($k[--$j], _p, _o); //#29741 - $_.dmtx = $k[--$j]; //#29742 - } //#29742 - } //#29742 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29747 - $_.i = 0; //#29748 - $_.j = 0; //#29748 - for (;;) { //#29758 - if ($_.i == $_.dmtx.length) { //#29749 - break; //#29749 - } //#29749 - var _y = $get($_.dmtx, $_.i); //#29750 - $k[$j++] = _y; //#29755 - if (_y == $_.fnc1) { //#29754 - $j--; //#29751 - $puti($_.barcode, $_.j, "^FNC1"); //#29751 - $_.j = $_.j + 4; //#29752 - } else { //#29754 - $put($_.barcode, $_.j, $k[--$j]); //#29754 - } //#29754 - $_.i = $_.i + 1; //#29756 - $_.j = $_.j + 1; //#29757 - } //#29757 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29759 - delete $_.options["parse"]; //#29762 - $put($_.options, "dontdraw", true); //#29763 - $put($_.options, "parsefnc", true); //#29764 - $k[$j++] = 'args'; //#29765 - $k[$j++] = $_.barcode; //#29765 - $k[$j++] = $_.options; //#29765 - bwipp_datamatrix(); //#29765 - var _1G = $k[--$j]; //#29765 - $_[$k[--$j]] = _1G; //#29765 - $put($_.args, "opt", $_.options); //#29767 - $k[$j++] = $_.args; //#29770 - if (!$_.dontdraw) { //#29770 - bwipp_renmatrix(); //#29770 - } //#29770 - $_ = Object.getPrototypeOf($_); //#29772 -} - + $_ = Object.create($_); //#30030 + $_.dontdraw = false; //#30033 + $_.parse = false; //#30034 + $_.dontlint = false; //#30035 + $_.lintreqs = true; //#30036 + $_.gssep = false; //#30037 + $k[$j++] = $_; //#30039 + bwipp_processoptions(); //#30039 + $_.options = $k[--$j]; //#30039 + $_.barcode = $k[--$j]; //#30040 + $k[$j++] = $_.barcode; //#30042 + $k[$j++] = 'ai'; //#30042 + bwipp_gs1process(); //#30042 + $_.fncs = $k[--$j]; //#30043 + $_.vals = $k[--$j]; //#30044 + $_.ais = $k[--$j]; //#30045 + $_.fnc1 = -1; //#30048 + $_.dmtx = $a([$_.fnc1]); //#30049 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30065 + $_.i = _A; //#30051 + $_.ai = $get($_.ais, $_.i); //#30052 + $_.val = $get($_.vals, $_.i); //#30053 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30054 + $puti(_K, 0, $_.dmtx); //#30055 + $k[$j++] = _K; //#30056 + $k[$j++] = _K; //#30056 + $k[$j++] = $_.dmtx.length; //#30056 + $k[$j++] = $_.ai; //#30056 + $k[$j++] = Infinity; //#30056 + var _O = $k[--$j]; //#30056 + var _P = $k[--$j]; //#30056 + $k[$j++] = _O; //#30056 + $forall(_P); //#30056 + var _Q = $a(); //#30056 + var _R = $k[--$j]; //#30056 + $puti($k[--$j], _R, _Q); //#30056 + var _T = $k[--$j]; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30057 + $k[$j++] = $_.val; //#30057 + $k[$j++] = Infinity; //#30057 + var _X = $k[--$j]; //#30057 + var _Y = $k[--$j]; //#30057 + $k[$j++] = _X; //#30057 + $forall(_Y); //#30057 + var _Z = $a(); //#30057 + var _a = $k[--$j]; //#30057 + $puti($k[--$j], _a, _Z); //#30057 + $_.dmtx = $k[--$j]; //#30058 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30064 + var _j = $a($_.dmtx.length + 1); //#30060 + $puti(_j, 0, $_.dmtx); //#30061 + $k[$j++] = _j; //#30062 + $k[$j++] = _j; //#30062 + $k[$j++] = $_.dmtx.length; //#30062 + if ($_.gssep) { //#30062 + $k[$j++] = 29; //#30062 + } else { //#30062 + $k[$j++] = $_.fnc1; //#30062 + } //#30062 + var _o = $k[--$j]; //#30062 + var _p = $k[--$j]; //#30062 + $put($k[--$j], _p, _o); //#30062 + $_.dmtx = $k[--$j]; //#30063 + } //#30063 + } //#30063 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30068 + $_.i = 0; //#30069 + $_.j = 0; //#30069 + for (;;) { //#30079 + if ($_.i == $_.dmtx.length) { //#30070 + break; //#30070 + } //#30070 + var _y = $get($_.dmtx, $_.i); //#30071 + $k[$j++] = _y; //#30076 + if (_y == $_.fnc1) { //#30075 + $j--; //#30072 + $puti($_.barcode, $_.j, "^FNC1"); //#30072 + $_.j = $_.j + 4; //#30073 + } else { //#30075 + $put($_.barcode, $_.j, $k[--$j]); //#30075 + } //#30075 + $_.i = $_.i + 1; //#30077 + $_.j = $_.j + 1; //#30078 + } //#30078 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30080 + delete $_.options["parse"]; //#30083 + $put($_.options, "dontdraw", true); //#30084 + $put($_.options, "parsefnc", true); //#30085 + $k[$j++] = 'args'; //#30086 + $k[$j++] = $_.barcode; //#30086 + $k[$j++] = $_.options; //#30086 + bwipp_datamatrix(); //#30086 + var _1G = $k[--$j]; //#30086 + $_[$k[--$j]] = _1G; //#30086 + $put($_.args, "opt", $_.options); //#30088 + $k[$j++] = $_.args; //#30091 + if (!$_.dontdraw) { //#30091 + bwipp_renmatrix(); //#30091 + } //#30091 + $_ = Object.getPrototypeOf($_); //#30093 +} //bwipp_gs1datamatrix function bwipp_gs1datamatrixrectangular() { - $_ = Object.create($_); //#29802 - $_.parse = false; //#29805 - $_.dontlint = false; //#29806 - $_.lintreqs = true; //#29807 - $_.dontdraw = false; //#29808 - $_.gssep = false; //#29809 - $k[$j++] = $_; //#29811 - bwipp_processoptions(); //#29811 - $_.options = $k[--$j]; //#29811 - $_.barcode = $k[--$j]; //#29812 - $k[$j++] = $_.barcode; //#29814 - $k[$j++] = 'ai'; //#29814 - bwipp_gs1process(); //#29814 - $_.fncs = $k[--$j]; //#29815 - $_.vals = $k[--$j]; //#29816 - $_.ais = $k[--$j]; //#29817 - $_.fnc1 = -1; //#29820 - $_.dmtx = $a([$_.fnc1]); //#29821 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29837 - $_.i = _A; //#29823 - $_.ai = $get($_.ais, $_.i); //#29824 - $_.val = $get($_.vals, $_.i); //#29825 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29826 - $puti(_K, 0, $_.dmtx); //#29827 - $k[$j++] = _K; //#29828 - $k[$j++] = _K; //#29828 - $k[$j++] = $_.dmtx.length; //#29828 - $k[$j++] = $_.ai; //#29828 - $k[$j++] = Infinity; //#29828 - var _O = $k[--$j]; //#29828 - var _P = $k[--$j]; //#29828 - $k[$j++] = _O; //#29828 - $forall(_P); //#29828 - var _Q = $a(); //#29828 - var _R = $k[--$j]; //#29828 - $puti($k[--$j], _R, _Q); //#29828 - var _T = $k[--$j]; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29829 - $k[$j++] = $_.val; //#29829 - $k[$j++] = Infinity; //#29829 - var _X = $k[--$j]; //#29829 - var _Y = $k[--$j]; //#29829 - $k[$j++] = _X; //#29829 - $forall(_Y); //#29829 - var _Z = $a(); //#29829 - var _a = $k[--$j]; //#29829 - $puti($k[--$j], _a, _Z); //#29829 - $_.dmtx = $k[--$j]; //#29830 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29836 - var _j = $a($_.dmtx.length + 1); //#29832 - $puti(_j, 0, $_.dmtx); //#29833 - $k[$j++] = _j; //#29834 - $k[$j++] = _j; //#29834 - $k[$j++] = $_.dmtx.length; //#29834 - if ($_.gssep) { //#29834 - $k[$j++] = 29; //#29834 - } else { //#29834 - $k[$j++] = $_.fnc1; //#29834 - } //#29834 - var _o = $k[--$j]; //#29834 - var _p = $k[--$j]; //#29834 - $put($k[--$j], _p, _o); //#29834 - $_.dmtx = $k[--$j]; //#29835 - } //#29835 - } //#29835 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29840 - $_.i = 0; //#29841 - $_.j = 0; //#29841 - for (;;) { //#29851 - if ($_.i == $_.dmtx.length) { //#29842 - break; //#29842 - } //#29842 - var _y = $get($_.dmtx, $_.i); //#29843 - $k[$j++] = _y; //#29848 - if (_y == $_.fnc1) { //#29847 - $j--; //#29844 - $puti($_.barcode, $_.j, "^FNC1"); //#29844 - $_.j = $_.j + 4; //#29845 - } else { //#29847 - $put($_.barcode, $_.j, $k[--$j]); //#29847 - } //#29847 - $_.i = $_.i + 1; //#29849 - $_.j = $_.j + 1; //#29850 - } //#29850 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29852 - delete $_.options["parse"]; //#29855 - $put($_.options, "dontdraw", true); //#29856 - $put($_.options, "parsefnc", true); //#29857 - $put($_.options, "format", "rectangle"); //#29858 - $k[$j++] = 'args'; //#29859 - $k[$j++] = $_.barcode; //#29859 - $k[$j++] = $_.options; //#29859 - bwipp_datamatrix(); //#29859 - var _1H = $k[--$j]; //#29859 - $_[$k[--$j]] = _1H; //#29859 - $put($_.args, "opt", $_.options); //#29861 - $k[$j++] = $_.args; //#29864 - if (!$_.dontdraw) { //#29864 - bwipp_renmatrix(); //#29864 - } //#29864 - $_ = Object.getPrototypeOf($_); //#29866 -} - + $_ = Object.create($_); //#30123 + $_.parse = false; //#30126 + $_.dontlint = false; //#30127 + $_.lintreqs = true; //#30128 + $_.dontdraw = false; //#30129 + $_.gssep = false; //#30130 + $k[$j++] = $_; //#30132 + bwipp_processoptions(); //#30132 + $_.options = $k[--$j]; //#30132 + $_.barcode = $k[--$j]; //#30133 + $k[$j++] = $_.barcode; //#30135 + $k[$j++] = 'ai'; //#30135 + bwipp_gs1process(); //#30135 + $_.fncs = $k[--$j]; //#30136 + $_.vals = $k[--$j]; //#30137 + $_.ais = $k[--$j]; //#30138 + $_.fnc1 = -1; //#30141 + $_.dmtx = $a([$_.fnc1]); //#30142 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30158 + $_.i = _A; //#30144 + $_.ai = $get($_.ais, $_.i); //#30145 + $_.val = $get($_.vals, $_.i); //#30146 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30147 + $puti(_K, 0, $_.dmtx); //#30148 + $k[$j++] = _K; //#30149 + $k[$j++] = _K; //#30149 + $k[$j++] = $_.dmtx.length; //#30149 + $k[$j++] = $_.ai; //#30149 + $k[$j++] = Infinity; //#30149 + var _O = $k[--$j]; //#30149 + var _P = $k[--$j]; //#30149 + $k[$j++] = _O; //#30149 + $forall(_P); //#30149 + var _Q = $a(); //#30149 + var _R = $k[--$j]; //#30149 + $puti($k[--$j], _R, _Q); //#30149 + var _T = $k[--$j]; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30150 + $k[$j++] = $_.val; //#30150 + $k[$j++] = Infinity; //#30150 + var _X = $k[--$j]; //#30150 + var _Y = $k[--$j]; //#30150 + $k[$j++] = _X; //#30150 + $forall(_Y); //#30150 + var _Z = $a(); //#30150 + var _a = $k[--$j]; //#30150 + $puti($k[--$j], _a, _Z); //#30150 + $_.dmtx = $k[--$j]; //#30151 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30157 + var _j = $a($_.dmtx.length + 1); //#30153 + $puti(_j, 0, $_.dmtx); //#30154 + $k[$j++] = _j; //#30155 + $k[$j++] = _j; //#30155 + $k[$j++] = $_.dmtx.length; //#30155 + if ($_.gssep) { //#30155 + $k[$j++] = 29; //#30155 + } else { //#30155 + $k[$j++] = $_.fnc1; //#30155 + } //#30155 + var _o = $k[--$j]; //#30155 + var _p = $k[--$j]; //#30155 + $put($k[--$j], _p, _o); //#30155 + $_.dmtx = $k[--$j]; //#30156 + } //#30156 + } //#30156 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30161 + $_.i = 0; //#30162 + $_.j = 0; //#30162 + for (;;) { //#30172 + if ($_.i == $_.dmtx.length) { //#30163 + break; //#30163 + } //#30163 + var _y = $get($_.dmtx, $_.i); //#30164 + $k[$j++] = _y; //#30169 + if (_y == $_.fnc1) { //#30168 + $j--; //#30165 + $puti($_.barcode, $_.j, "^FNC1"); //#30165 + $_.j = $_.j + 4; //#30166 + } else { //#30168 + $put($_.barcode, $_.j, $k[--$j]); //#30168 + } //#30168 + $_.i = $_.i + 1; //#30170 + $_.j = $_.j + 1; //#30171 + } //#30171 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30173 + delete $_.options["parse"]; //#30176 + $put($_.options, "dontdraw", true); //#30177 + $put($_.options, "parsefnc", true); //#30178 + $put($_.options, "format", "rectangle"); //#30179 + $k[$j++] = 'args'; //#30180 + $k[$j++] = $_.barcode; //#30180 + $k[$j++] = $_.options; //#30180 + bwipp_datamatrix(); //#30180 + var _1H = $k[--$j]; //#30180 + $_[$k[--$j]] = _1H; //#30180 + $put($_.args, "opt", $_.options); //#30182 + $k[$j++] = $_.args; //#30185 + if (!$_.dontdraw) { //#30185 + bwipp_renmatrix(); //#30185 + } //#30185 + $_ = Object.getPrototypeOf($_); //#30187 +} //bwipp_gs1datamatrixrectangular function bwipp_gs1dldatamatrix() { - $_ = Object.create($_); //#29896 - $_.parse = false; //#29899 - $_.dontlint = false; //#29900 - $_.lintreqs = true; //#29901 - $_.dontdraw = false; //#29902 - $k[$j++] = $_; //#29904 - bwipp_processoptions(); //#29904 - $_.options = $k[--$j]; //#29904 - $_.barcode = $k[--$j]; //#29905 + $_ = Object.create($_); //#30217 + $_.parse = false; //#30220 + $_.dontlint = false; //#30221 + $_.lintreqs = true; //#30222 + $_.dontdraw = false; //#30223 + $k[$j++] = $_; //#30225 + bwipp_processoptions(); //#30225 + $_.options = $k[--$j]; //#30225 + $_.barcode = $k[--$j]; //#30226 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#29911 - $_.fncvals = _3; //#29912 - $k[$j++] = 'barcode'; //#29913 - $k[$j++] = $_.barcode; //#29913 - $k[$j++] = $_.fncvals; //#29913 - bwipp_parseinput(); //#29913 - var _6 = $k[--$j]; //#29913 - $_[$k[--$j]] = _6; //#29913 - $k[$j++] = $_.barcode; //#29915 - $k[$j++] = 'dl'; //#29915 - bwipp_gs1process(); //#29915 - $j -= 3; //#29915 - delete $_.options["parse"]; //#29918 - $put($_.options, "dontdraw", true); //#29919 - $k[$j++] = 'args'; //#29920 - $k[$j++] = $_.barcode; //#29920 - $k[$j++] = $_.options; //#29920 - bwipp_datamatrix(); //#29920 - var _D = $k[--$j]; //#29920 - $_[$k[--$j]] = _D; //#29920 - $put($_.args, "opt", $_.options); //#29922 - $k[$j++] = $_.args; //#29925 - if (!$_.dontdraw) { //#29925 - bwipp_renmatrix(); //#29925 - } //#29925 - $_ = Object.getPrototypeOf($_); //#29927 -} - + ]); //#30232 + $_.fncvals = _3; //#30233 + $k[$j++] = 'barcode'; //#30234 + $k[$j++] = $_.barcode; //#30234 + $k[$j++] = $_.fncvals; //#30234 + bwipp_parseinput(); //#30234 + var _6 = $k[--$j]; //#30234 + $_[$k[--$j]] = _6; //#30234 + $k[$j++] = $_.barcode; //#30236 + $k[$j++] = 'dl'; //#30236 + bwipp_gs1process(); //#30236 + $j -= 3; //#30236 + delete $_.options["parse"]; //#30239 + $put($_.options, "dontdraw", true); //#30240 + $k[$j++] = 'args'; //#30241 + $k[$j++] = $_.barcode; //#30241 + $k[$j++] = $_.options; //#30241 + bwipp_datamatrix(); //#30241 + var _D = $k[--$j]; //#30241 + $_[$k[--$j]] = _D; //#30241 + $put($_.args, "opt", $_.options); //#30243 + $k[$j++] = $_.args; //#30246 + if (!$_.dontdraw) { //#30246 + bwipp_renmatrix(); //#30246 + } //#30246 + $_ = Object.getPrototypeOf($_); //#30248 +} //bwipp_gs1dldatamatrix function bwipp_gs1qrcode() { - $_ = Object.create($_); //#29956 - $_.parse = false; //#29959 - $_.dontlint = false; //#29960 - $_.lintreqs = true; //#29961 - $_.dontdraw = false; //#29962 - $k[$j++] = $_; //#29964 - bwipp_processoptions(); //#29964 - $_.options = $k[--$j]; //#29964 - $_.barcode = $k[--$j]; //#29965 - $k[$j++] = $_.barcode; //#29967 - $k[$j++] = 'ai'; //#29967 - bwipp_gs1process(); //#29967 - $_.fncs = $k[--$j]; //#29968 - $_.vals = $k[--$j]; //#29969 - $_.ais = $k[--$j]; //#29970 - $_.fnc1 = -1; //#29973 - $_.qrc = $a([$_.fnc1]); //#29974 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29990 - $_.i = _A; //#29976 - $_.ai = $get($_.ais, $_.i); //#29977 - $_.val = $get($_.vals, $_.i); //#29978 - var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#29979 - $puti(_K, 0, $_.qrc); //#29980 - $k[$j++] = _K; //#29981 - $k[$j++] = _K; //#29981 - $k[$j++] = $_.qrc.length; //#29981 - $k[$j++] = $_.ai; //#29981 - $k[$j++] = Infinity; //#29981 - var _O = $k[--$j]; //#29981 - var _P = $k[--$j]; //#29981 - $k[$j++] = _O; //#29981 - $forall(_P); //#29981 - var _Q = $a(); //#29981 - var _R = $k[--$j]; //#29981 - $puti($k[--$j], _R, _Q); //#29981 - var _T = $k[--$j]; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = $_.qrc.length + $_.ai.length; //#29982 - $k[$j++] = $_.val; //#29982 - $k[$j++] = Infinity; //#29982 - var _X = $k[--$j]; //#29982 - var _Y = $k[--$j]; //#29982 - $k[$j++] = _X; //#29982 - $forall(_Y); //#29982 - var _Z = $a(); //#29982 - var _a = $k[--$j]; //#29982 - $puti($k[--$j], _a, _Z); //#29982 - $_.qrc = $k[--$j]; //#29983 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29989 - var _j = $a($_.qrc.length + 1); //#29985 - $puti(_j, 0, $_.qrc); //#29986 - $put(_j, $_.qrc.length, $_.fnc1); //#29987 - $_.qrc = _j; //#29988 - } //#29988 - } //#29988 - $_.barcode = $s(($_.qrc.length + 1) * 5); //#29993 - $_.i = 0; //#29994 - $_.j = 0; //#29994 - for (;;) { //#30004 - if ($_.i == $_.qrc.length) { //#29995 - break; //#29995 - } //#29995 - var _t = $get($_.qrc, $_.i); //#29996 - $k[$j++] = _t; //#30001 - if (_t == $_.fnc1) { //#30000 - $j--; //#29997 - $puti($_.barcode, $_.j, "^FNC1"); //#29997 - $_.j = $_.j + 4; //#29998 - } else { //#30000 - $put($_.barcode, $_.j, $k[--$j]); //#30000 - } //#30000 - $_.i = $_.i + 1; //#30002 - $_.j = $_.j + 1; //#30003 - } //#30003 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30005 - delete $_.options["parse"]; //#30008 - $put($_.options, "dontdraw", true); //#30009 - $put($_.options, "parsefnc", true); //#30010 - $k[$j++] = 'args'; //#30011 - $k[$j++] = $_.barcode; //#30011 - $k[$j++] = $_.options; //#30011 - bwipp_qrcode(); //#30011 - var _1B = $k[--$j]; //#30011 - $_[$k[--$j]] = _1B; //#30011 - $put($_.args, "opt", $_.options); //#30013 - $k[$j++] = $_.args; //#30016 - if (!$_.dontdraw) { //#30016 - bwipp_renmatrix(); //#30016 - } //#30016 - $_ = Object.getPrototypeOf($_); //#30018 -} - + $_ = Object.create($_); //#30277 + $_.parse = false; //#30280 + $_.dontlint = false; //#30281 + $_.lintreqs = true; //#30282 + $_.dontdraw = false; //#30283 + $k[$j++] = $_; //#30285 + bwipp_processoptions(); //#30285 + $_.options = $k[--$j]; //#30285 + $_.barcode = $k[--$j]; //#30286 + $k[$j++] = $_.barcode; //#30288 + $k[$j++] = 'ai'; //#30288 + bwipp_gs1process(); //#30288 + $_.fncs = $k[--$j]; //#30289 + $_.vals = $k[--$j]; //#30290 + $_.ais = $k[--$j]; //#30291 + $_.fnc1 = -1; //#30294 + $_.qrc = $a([$_.fnc1]); //#30295 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30311 + $_.i = _A; //#30297 + $_.ai = $get($_.ais, $_.i); //#30298 + $_.val = $get($_.vals, $_.i); //#30299 + var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#30300 + $puti(_K, 0, $_.qrc); //#30301 + $k[$j++] = _K; //#30302 + $k[$j++] = _K; //#30302 + $k[$j++] = $_.qrc.length; //#30302 + $k[$j++] = $_.ai; //#30302 + $k[$j++] = Infinity; //#30302 + var _O = $k[--$j]; //#30302 + var _P = $k[--$j]; //#30302 + $k[$j++] = _O; //#30302 + $forall(_P); //#30302 + var _Q = $a(); //#30302 + var _R = $k[--$j]; //#30302 + $puti($k[--$j], _R, _Q); //#30302 + var _T = $k[--$j]; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = $_.qrc.length + $_.ai.length; //#30303 + $k[$j++] = $_.val; //#30303 + $k[$j++] = Infinity; //#30303 + var _X = $k[--$j]; //#30303 + var _Y = $k[--$j]; //#30303 + $k[$j++] = _X; //#30303 + $forall(_Y); //#30303 + var _Z = $a(); //#30303 + var _a = $k[--$j]; //#30303 + $puti($k[--$j], _a, _Z); //#30303 + $_.qrc = $k[--$j]; //#30304 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30310 + var _j = $a($_.qrc.length + 1); //#30306 + $puti(_j, 0, $_.qrc); //#30307 + $put(_j, $_.qrc.length, $_.fnc1); //#30308 + $_.qrc = _j; //#30309 + } //#30309 + } //#30309 + $_.barcode = $s(($_.qrc.length + 1) * 5); //#30314 + $_.i = 0; //#30315 + $_.j = 0; //#30315 + for (;;) { //#30325 + if ($_.i == $_.qrc.length) { //#30316 + break; //#30316 + } //#30316 + var _t = $get($_.qrc, $_.i); //#30317 + $k[$j++] = _t; //#30322 + if (_t == $_.fnc1) { //#30321 + $j--; //#30318 + $puti($_.barcode, $_.j, "^FNC1"); //#30318 + $_.j = $_.j + 4; //#30319 + } else { //#30321 + $put($_.barcode, $_.j, $k[--$j]); //#30321 + } //#30321 + $_.i = $_.i + 1; //#30323 + $_.j = $_.j + 1; //#30324 + } //#30324 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30326 + delete $_.options["parse"]; //#30329 + $put($_.options, "dontdraw", true); //#30330 + $put($_.options, "parsefnc", true); //#30331 + $k[$j++] = 'args'; //#30332 + $k[$j++] = $_.barcode; //#30332 + $k[$j++] = $_.options; //#30332 + bwipp_qrcode(); //#30332 + var _1B = $k[--$j]; //#30332 + $_[$k[--$j]] = _1B; //#30332 + $put($_.args, "opt", $_.options); //#30334 + $k[$j++] = $_.args; //#30337 + if (!$_.dontdraw) { //#30337 + bwipp_renmatrix(); //#30337 + } //#30337 + $_ = Object.getPrototypeOf($_); //#30339 +} //bwipp_gs1qrcode function bwipp_gs1dlqrcode() { - $_ = Object.create($_); //#30048 - $_.parse = false; //#30051 - $_.dontlint = false; //#30052 - $_.lintreqs = true; //#30053 - $_.dontdraw = false; //#30054 - $k[$j++] = $_; //#30056 - bwipp_processoptions(); //#30056 - $_.options = $k[--$j]; //#30056 - $_.barcode = $k[--$j]; //#30057 + $_ = Object.create($_); //#30369 + $_.parse = false; //#30372 + $_.dontlint = false; //#30373 + $_.lintreqs = true; //#30374 + $_.dontdraw = false; //#30375 + $k[$j++] = $_; //#30377 + bwipp_processoptions(); //#30377 + $_.options = $k[--$j]; //#30377 + $_.barcode = $k[--$j]; //#30378 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#30063 - $_.fncvals = _3; //#30064 - $k[$j++] = 'barcode'; //#30065 - $k[$j++] = $_.barcode; //#30065 - $k[$j++] = $_.fncvals; //#30065 - bwipp_parseinput(); //#30065 - var _6 = $k[--$j]; //#30065 - $_[$k[--$j]] = _6; //#30065 - $k[$j++] = $_.barcode; //#30067 - $k[$j++] = 'dl'; //#30067 - bwipp_gs1process(); //#30067 - $j -= 3; //#30067 - delete $_.options["parse"]; //#30070 - $put($_.options, "dontdraw", true); //#30071 - $k[$j++] = 'args'; //#30072 - $k[$j++] = $_.barcode; //#30072 - $k[$j++] = $_.options; //#30072 - bwipp_qrcode(); //#30072 - var _D = $k[--$j]; //#30072 - $_[$k[--$j]] = _D; //#30072 - $put($_.args, "opt", $_.options); //#30074 - $k[$j++] = $_.args; //#30077 - if (!$_.dontdraw) { //#30077 - bwipp_renmatrix(); //#30077 - } //#30077 - $_ = Object.getPrototypeOf($_); //#30079 -} - + ]); //#30384 + $_.fncvals = _3; //#30385 + $k[$j++] = 'barcode'; //#30386 + $k[$j++] = $_.barcode; //#30386 + $k[$j++] = $_.fncvals; //#30386 + bwipp_parseinput(); //#30386 + var _6 = $k[--$j]; //#30386 + $_[$k[--$j]] = _6; //#30386 + $k[$j++] = $_.barcode; //#30388 + $k[$j++] = 'dl'; //#30388 + bwipp_gs1process(); //#30388 + $j -= 3; //#30388 + delete $_.options["parse"]; //#30391 + $put($_.options, "dontdraw", true); //#30392 + $k[$j++] = 'args'; //#30393 + $k[$j++] = $_.barcode; //#30393 + $k[$j++] = $_.options; //#30393 + bwipp_qrcode(); //#30393 + var _D = $k[--$j]; //#30393 + $_[$k[--$j]] = _D; //#30393 + $put($_.args, "opt", $_.options); //#30395 + $k[$j++] = $_.args; //#30398 + if (!$_.dontdraw) { //#30398 + bwipp_renmatrix(); //#30398 + } //#30398 + $_ = Object.getPrototypeOf($_); //#30400 +} //bwipp_gs1dlqrcode function bwipp_gs1dotcode() { - $_ = Object.create($_); //#30109 - $_.dontdraw = false; //#30112 - $_.parse = false; //#30113 - $_.dontlint = false; //#30114 - $_.lintreqs = true; //#30115 - $k[$j++] = $_; //#30117 - bwipp_processoptions(); //#30117 - $_.options = $k[--$j]; //#30117 - $_.barcode = $k[--$j]; //#30118 - $k[$j++] = $_.barcode; //#30120 - $k[$j++] = 'ai'; //#30120 - bwipp_gs1process(); //#30120 - $_.fncs = $k[--$j]; //#30121 - $_.vals = $k[--$j]; //#30122 - $_.ais = $k[--$j]; //#30123 - $_.fnc1 = -1; //#30126 - $_.dmtx = $a([$_.fnc1]); //#30127 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30143 - $_.i = _A; //#30129 - $_.ai = $get($_.ais, $_.i); //#30130 - $_.val = $get($_.vals, $_.i); //#30131 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30132 - $puti(_K, 0, $_.dmtx); //#30133 - $k[$j++] = _K; //#30134 - $k[$j++] = _K; //#30134 - $k[$j++] = $_.dmtx.length; //#30134 - $k[$j++] = $_.ai; //#30134 - $k[$j++] = Infinity; //#30134 - var _O = $k[--$j]; //#30134 - var _P = $k[--$j]; //#30134 - $k[$j++] = _O; //#30134 - $forall(_P); //#30134 - var _Q = $a(); //#30134 - var _R = $k[--$j]; //#30134 - $puti($k[--$j], _R, _Q); //#30134 - var _T = $k[--$j]; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#30135 - $k[$j++] = $_.val; //#30135 - $k[$j++] = Infinity; //#30135 - var _X = $k[--$j]; //#30135 - var _Y = $k[--$j]; //#30135 - $k[$j++] = _X; //#30135 - $forall(_Y); //#30135 - var _Z = $a(); //#30135 - var _a = $k[--$j]; //#30135 - $puti($k[--$j], _a, _Z); //#30135 - $_.dmtx = $k[--$j]; //#30136 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30142 - var _j = $a($_.dmtx.length + 1); //#30138 - $puti(_j, 0, $_.dmtx); //#30139 - $put(_j, $_.dmtx.length, $_.fnc1); //#30140 - $_.dmtx = _j; //#30141 - } //#30141 - } //#30141 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30146 - $_.i = 0; //#30147 - $_.j = 0; //#30147 - for (;;) { //#30157 - if ($_.i == $_.dmtx.length) { //#30148 - break; //#30148 - } //#30148 - var _t = $get($_.dmtx, $_.i); //#30149 - $k[$j++] = _t; //#30154 - if (_t == $_.fnc1) { //#30153 - $j--; //#30150 - $puti($_.barcode, $_.j, "^FNC1"); //#30150 - $_.j = $_.j + 4; //#30151 - } else { //#30153 - $put($_.barcode, $_.j, $k[--$j]); //#30153 - } //#30153 - $_.i = $_.i + 1; //#30155 - $_.j = $_.j + 1; //#30156 - } //#30156 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30158 - delete $_.options["parse"]; //#30161 - $put($_.options, "dontdraw", true); //#30162 - $put($_.options, "parsefnc", true); //#30163 - $k[$j++] = 'args'; //#30164 - $k[$j++] = $_.barcode; //#30164 - $k[$j++] = $_.options; //#30164 - bwipp_dotcode(); //#30164 - var _1B = $k[--$j]; //#30164 - $_[$k[--$j]] = _1B; //#30164 - $put($_.args, "opt", $_.options); //#30166 - $k[$j++] = $_.args; //#30169 - if (!$_.dontdraw) { //#30169 - bwipp_renmatrix(); //#30169 - } //#30169 - $_ = Object.getPrototypeOf($_); //#30171 -} - + $_ = Object.create($_); //#30430 + $_.dontdraw = false; //#30433 + $_.parse = false; //#30434 + $_.dontlint = false; //#30435 + $_.lintreqs = true; //#30436 + $k[$j++] = $_; //#30438 + bwipp_processoptions(); //#30438 + $_.options = $k[--$j]; //#30438 + $_.barcode = $k[--$j]; //#30439 + $k[$j++] = $_.barcode; //#30441 + $k[$j++] = 'ai'; //#30441 + bwipp_gs1process(); //#30441 + $_.fncs = $k[--$j]; //#30442 + $_.vals = $k[--$j]; //#30443 + $_.ais = $k[--$j]; //#30444 + $_.fnc1 = -1; //#30447 + $_.dmtx = $a([$_.fnc1]); //#30448 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30464 + $_.i = _A; //#30450 + $_.ai = $get($_.ais, $_.i); //#30451 + $_.val = $get($_.vals, $_.i); //#30452 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30453 + $puti(_K, 0, $_.dmtx); //#30454 + $k[$j++] = _K; //#30455 + $k[$j++] = _K; //#30455 + $k[$j++] = $_.dmtx.length; //#30455 + $k[$j++] = $_.ai; //#30455 + $k[$j++] = Infinity; //#30455 + var _O = $k[--$j]; //#30455 + var _P = $k[--$j]; //#30455 + $k[$j++] = _O; //#30455 + $forall(_P); //#30455 + var _Q = $a(); //#30455 + var _R = $k[--$j]; //#30455 + $puti($k[--$j], _R, _Q); //#30455 + var _T = $k[--$j]; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30456 + $k[$j++] = $_.val; //#30456 + $k[$j++] = Infinity; //#30456 + var _X = $k[--$j]; //#30456 + var _Y = $k[--$j]; //#30456 + $k[$j++] = _X; //#30456 + $forall(_Y); //#30456 + var _Z = $a(); //#30456 + var _a = $k[--$j]; //#30456 + $puti($k[--$j], _a, _Z); //#30456 + $_.dmtx = $k[--$j]; //#30457 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30463 + var _j = $a($_.dmtx.length + 1); //#30459 + $puti(_j, 0, $_.dmtx); //#30460 + $put(_j, $_.dmtx.length, $_.fnc1); //#30461 + $_.dmtx = _j; //#30462 + } //#30462 + } //#30462 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30467 + $_.i = 0; //#30468 + $_.j = 0; //#30468 + for (;;) { //#30478 + if ($_.i == $_.dmtx.length) { //#30469 + break; //#30469 + } //#30469 + var _t = $get($_.dmtx, $_.i); //#30470 + $k[$j++] = _t; //#30475 + if (_t == $_.fnc1) { //#30474 + $j--; //#30471 + $puti($_.barcode, $_.j, "^FNC1"); //#30471 + $_.j = $_.j + 4; //#30472 + } else { //#30474 + $put($_.barcode, $_.j, $k[--$j]); //#30474 + } //#30474 + $_.i = $_.i + 1; //#30476 + $_.j = $_.j + 1; //#30477 + } //#30477 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30479 + delete $_.options["parse"]; //#30482 + $put($_.options, "dontdraw", true); //#30483 + $put($_.options, "parsefnc", true); //#30484 + $k[$j++] = 'args'; //#30485 + $k[$j++] = $_.barcode; //#30485 + $k[$j++] = $_.options; //#30485 + bwipp_dotcode(); //#30485 + var _1B = $k[--$j]; //#30485 + $_[$k[--$j]] = _1B; //#30485 + $put($_.args, "opt", $_.options); //#30487 + $k[$j++] = $_.args; //#30490 + if (!$_.dontdraw) { //#30490 + bwipp_renmatrix(); //#30490 + } //#30490 + $_ = Object.getPrototypeOf($_); //#30492 +} //bwipp_gs1dotcode function bwipp_hibccode39() { - $_ = Object.create($_); //#30202 - $_.dontdraw = false; //#30205 - $_.textfont = "OCR-B"; //#30206 - $_.textsize = 10; //#30207 - $_.textyoffset = -8; //#30208 - $_.textxoffset = 0; //#30209 - $_.validatecheck = false; //#30210 - $k[$j++] = $_; //#30212 - bwipp_processoptions(); //#30212 - $_.options = $k[--$j]; //#30212 - $_.barcode = $k[--$j]; //#30213 - bwipp_loadctx(bwipp_hibccode39) //#30215 - if (!bwipp_hibccode39.__30222__) { //#30222 - $_ = Object.create($_); //#30222 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30219 - $_.charvals = new Map; //#30220 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30221 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30221 - } //#30221 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30221 - bwipp_hibccode39.__30222__ = 1; //#30221 - $_ = Object.getPrototypeOf($_); //#30221 - } //#30221 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30229 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30226 - if (!_D) { //#30228 - $k[$j++] = 'bwipp.hibccode39badCharacter#30227'; //#30227 - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30227 - bwipp_raiseerror(); //#30227 - } //#30227 - } //#30227 - $k[$j++] = 'barlen'; //#30231 - $k[$j++] = $_.barcode.length; //#30231 - if ($_.validatecheck) { //#30231 - var _G = $k[--$j]; //#30231 - $k[$j++] = $f(_G - 1); //#30231 - } //#30231 - var _H = $k[--$j]; //#30231 - $_[$k[--$j]] = _H; //#30231 - $_.checksum = 41; //#30233 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30237 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30236 - } //#30236 - $_.checksum = $_.checksum % 43; //#30238 - if ($_.validatecheck) { //#30244 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30242 - $k[$j++] = 'bwipp.hibccode39badCheckDigit#30241'; //#30241 - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30241 - bwipp_raiseerror(); //#30241 - } //#30241 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30243 - } //#30243 - var _d = $s($f($_.barlen + 2)); //#30246 - $puti(_d, 1, $_.barcode); //#30246 - $_.barcode = _d; //#30246 - $put($_.barcode, 0, 43); //#30247 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30248 - $_.text = $s($f($_.barlen + 4)); //#30250 - $put($_.text, 0, 42); //#30251 - $puti($_.text, 1, $_.barcode); //#30252 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30253 - $k[$j++] = $_.text; //#30253 - $k[$j++] = $f($_.barlen + 2); //#30253 - $k[$j++] = _u; //#30253 - if (_u == 32) { //#30253 - $j--; //#30253 - $k[$j++] = 95; //#30253 - } //#30253 - var _v = $k[--$j]; //#30253 - var _w = $k[--$j]; //#30253 - $put($k[--$j], _w, _v); //#30253 - $put($_.text, $f($_.barlen + 3), 42); //#30254 - $put($_.options, "dontdraw", true); //#30257 - $put($_.options, "includecheck", false); //#30258 - $put($_.options, "validatecheck", false); //#30259 - $k[$j++] = 'args'; //#30260 - $k[$j++] = $_.barcode; //#30260 - $k[$j++] = $_.options; //#30260 - bwipp_code39(); //#30260 - var _15 = $k[--$j]; //#30260 - $_[$k[--$j]] = _15; //#30260 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30262 - $put($_.args, "textxalign", "center"); //#30263 - $put($_.args, "opt", $_.options); //#30264 - $k[$j++] = $_.args; //#30267 - if (!$_.dontdraw) { //#30267 - bwipp_renlinear(); //#30267 - } //#30267 - $_ = Object.getPrototypeOf($_); //#30269 - $_ = Object.getPrototypeOf($_); //#30271 -} - + $_ = Object.create($_); //#30523 + $_.dontdraw = false; //#30526 + $_.textfont = "OCR-B"; //#30527 + $_.textsize = 10; //#30528 + $_.textyoffset = -8; //#30529 + $_.textxoffset = 0; //#30530 + $_.validatecheck = false; //#30531 + $k[$j++] = $_; //#30533 + bwipp_processoptions(); //#30533 + $_.options = $k[--$j]; //#30533 + $_.barcode = $k[--$j]; //#30534 + if ($eq($_.barcode, "")) { //#30538 + $k[$j++] = 'bwipp.hibccode39emptyData#30537'; //#30537 + $k[$j++] = "The data must not be empty"; //#30537 + bwipp_raiseerror(); //#30537 + } //#30537 + bwipp_loadctx(bwipp_hibccode39) //#30540 + if (!bwipp_hibccode39.__30547__) { //#30547 + $_ = Object.create($_); //#30547 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30544 + $_.charvals = new Map; //#30545 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30546 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30546 + } //#30546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30546 + bwipp_hibccode39.__30547__ = 1; //#30546 + $_ = Object.getPrototypeOf($_); //#30546 + } //#30546 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30554 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30551 + if (!_E) { //#30553 + $k[$j++] = 'bwipp.hibccode39badCharacter#30552'; //#30552 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30552 + bwipp_raiseerror(); //#30552 + } //#30552 + } //#30552 + $k[$j++] = 'barlen'; //#30556 + $k[$j++] = $_.barcode.length; //#30556 + if ($_.validatecheck) { //#30556 + var _H = $k[--$j]; //#30556 + $k[$j++] = $f(_H - 1); //#30556 + } //#30556 + var _I = $k[--$j]; //#30556 + $_[$k[--$j]] = _I; //#30556 + $_.checksum = 41; //#30558 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30562 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30561 + } //#30561 + $_.checksum = $_.checksum % 43; //#30563 + if ($_.validatecheck) { //#30569 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30567 + $k[$j++] = 'bwipp.hibccode39badCheckDigit#30566'; //#30566 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30566 + bwipp_raiseerror(); //#30566 + } //#30566 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30568 + } //#30568 + var _e = $s($f($_.barlen + 2)); //#30571 + $puti(_e, 1, $_.barcode); //#30571 + $_.barcode = _e; //#30571 + $put($_.barcode, 0, 43); //#30572 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30573 + $_.text = $s($f($_.barlen + 4)); //#30575 + $put($_.text, 0, 42); //#30576 + $puti($_.text, 1, $_.barcode); //#30577 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30578 + $k[$j++] = $_.text; //#30578 + $k[$j++] = $f($_.barlen + 2); //#30578 + $k[$j++] = _v; //#30578 + if (_v == 32) { //#30578 + $j--; //#30578 + $k[$j++] = 95; //#30578 + } //#30578 + var _w = $k[--$j]; //#30578 + var _x = $k[--$j]; //#30578 + $put($k[--$j], _x, _w); //#30578 + $put($_.text, $f($_.barlen + 3), 42); //#30579 + $put($_.options, "dontdraw", true); //#30582 + $put($_.options, "includecheck", false); //#30583 + $put($_.options, "validatecheck", false); //#30584 + $k[$j++] = 'args'; //#30585 + $k[$j++] = $_.barcode; //#30585 + $k[$j++] = $_.options; //#30585 + bwipp_code39(); //#30585 + var _16 = $k[--$j]; //#30585 + $_[$k[--$j]] = _16; //#30585 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30587 + $put($_.args, "textxalign", "center"); //#30588 + $put($_.args, "opt", $_.options); //#30589 + $k[$j++] = $_.args; //#30592 + if (!$_.dontdraw) { //#30592 + bwipp_renlinear(); //#30592 + } //#30592 + $_ = Object.getPrototypeOf($_); //#30594 + $_ = Object.getPrototypeOf($_); //#30596 +} //bwipp_hibccode39 function bwipp_hibccode128() { - $_ = Object.create($_); //#30302 - $_.dontdraw = false; //#30305 - $_.textfont = "OCR-B"; //#30306 - $_.textsize = 10; //#30307 - $_.textyoffset = -8; //#30308 - $_.textxoffset = 0; //#30309 - $_.validatecheck = false; //#30310 - $k[$j++] = $_; //#30312 - bwipp_processoptions(); //#30312 - $_.options = $k[--$j]; //#30312 - $_.barcode = $k[--$j]; //#30313 - bwipp_loadctx(bwipp_hibccode128) //#30315 - if (!bwipp_hibccode128.__30322__) { //#30322 - $_ = Object.create($_); //#30322 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30319 - $_.charvals = new Map; //#30320 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30321 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30321 - } //#30321 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30321 - bwipp_hibccode128.__30322__ = 1; //#30321 - $_ = Object.getPrototypeOf($_); //#30321 - } //#30321 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30329 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30326 - if (!_D) { //#30328 - $k[$j++] = 'bwipp.hibccode128badCharacter#30327'; //#30327 - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30327 - bwipp_raiseerror(); //#30327 - } //#30327 - } //#30327 - $k[$j++] = 'barlen'; //#30331 - $k[$j++] = $_.barcode.length; //#30331 - if ($_.validatecheck) { //#30331 - var _G = $k[--$j]; //#30331 - $k[$j++] = $f(_G - 1); //#30331 - } //#30331 - var _H = $k[--$j]; //#30331 - $_[$k[--$j]] = _H; //#30331 - $_.checksum = 41; //#30333 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30337 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30336 - } //#30336 - $_.checksum = $_.checksum % 43; //#30338 - if ($_.validatecheck) { //#30344 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30342 - $k[$j++] = 'bwipp.hibccode128badCheckDigit#30341'; //#30341 - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30341 - bwipp_raiseerror(); //#30341 - } //#30341 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30343 - } //#30343 - var _d = $s($f($_.barlen + 2)); //#30346 - $puti(_d, 1, $_.barcode); //#30346 - $_.barcode = _d; //#30346 - $put($_.barcode, 0, 43); //#30347 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30348 - $_.text = $s($f($_.barlen + 4)); //#30350 - $put($_.text, 0, 42); //#30351 - $puti($_.text, 1, $_.barcode); //#30352 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30353 - $k[$j++] = $_.text; //#30353 - $k[$j++] = $f($_.barlen + 2); //#30353 - $k[$j++] = _u; //#30353 - if (_u == 32) { //#30353 - $j--; //#30353 - $k[$j++] = 95; //#30353 - } //#30353 - var _v = $k[--$j]; //#30353 - var _w = $k[--$j]; //#30353 - $put($k[--$j], _w, _v); //#30353 - $put($_.text, $f($_.barlen + 3), 42); //#30354 - $put($_.options, "dontdraw", true); //#30357 - $put($_.options, "validatecheck", false); //#30358 - $k[$j++] = 'args'; //#30359 - $k[$j++] = $_.barcode; //#30359 - $k[$j++] = $_.options; //#30359 - bwipp_code128(); //#30359 - var _14 = $k[--$j]; //#30359 - $_[$k[--$j]] = _14; //#30359 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30361 - $put($_.args, "textxalign", "center"); //#30362 - $put($_.args, "opt", $_.options); //#30363 - $k[$j++] = $_.args; //#30366 - if (!$_.dontdraw) { //#30366 - bwipp_renlinear(); //#30366 - } //#30366 - $_ = Object.getPrototypeOf($_); //#30368 - $_ = Object.getPrototypeOf($_); //#30370 -} - + $_ = Object.create($_); //#30627 + $_.dontdraw = false; //#30630 + $_.textfont = "OCR-B"; //#30631 + $_.textsize = 10; //#30632 + $_.textyoffset = -8; //#30633 + $_.textxoffset = 0; //#30634 + $_.validatecheck = false; //#30635 + $k[$j++] = $_; //#30637 + bwipp_processoptions(); //#30637 + $_.options = $k[--$j]; //#30637 + $_.barcode = $k[--$j]; //#30638 + if ($eq($_.barcode, "")) { //#30642 + $k[$j++] = 'bwipp.hibccode128emptyData#30641'; //#30641 + $k[$j++] = "The data must not be empty"; //#30641 + bwipp_raiseerror(); //#30641 + } //#30641 + bwipp_loadctx(bwipp_hibccode128) //#30644 + if (!bwipp_hibccode128.__30651__) { //#30651 + $_ = Object.create($_); //#30651 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30648 + $_.charvals = new Map; //#30649 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30650 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30650 + } //#30650 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30650 + bwipp_hibccode128.__30651__ = 1; //#30650 + $_ = Object.getPrototypeOf($_); //#30650 + } //#30650 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30658 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30655 + if (!_E) { //#30657 + $k[$j++] = 'bwipp.hibccode128badCharacter#30656'; //#30656 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30656 + bwipp_raiseerror(); //#30656 + } //#30656 + } //#30656 + $k[$j++] = 'barlen'; //#30660 + $k[$j++] = $_.barcode.length; //#30660 + if ($_.validatecheck) { //#30660 + var _H = $k[--$j]; //#30660 + $k[$j++] = $f(_H - 1); //#30660 + } //#30660 + var _I = $k[--$j]; //#30660 + $_[$k[--$j]] = _I; //#30660 + $_.checksum = 41; //#30662 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30666 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30665 + } //#30665 + $_.checksum = $_.checksum % 43; //#30667 + if ($_.validatecheck) { //#30673 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30671 + $k[$j++] = 'bwipp.hibccode128badCheckDigit#30670'; //#30670 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30670 + bwipp_raiseerror(); //#30670 + } //#30670 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30672 + } //#30672 + var _e = $s($f($_.barlen + 2)); //#30675 + $puti(_e, 1, $_.barcode); //#30675 + $_.barcode = _e; //#30675 + $put($_.barcode, 0, 43); //#30676 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30677 + $_.text = $s($f($_.barlen + 4)); //#30679 + $put($_.text, 0, 42); //#30680 + $puti($_.text, 1, $_.barcode); //#30681 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30682 + $k[$j++] = $_.text; //#30682 + $k[$j++] = $f($_.barlen + 2); //#30682 + $k[$j++] = _v; //#30682 + if (_v == 32) { //#30682 + $j--; //#30682 + $k[$j++] = 95; //#30682 + } //#30682 + var _w = $k[--$j]; //#30682 + var _x = $k[--$j]; //#30682 + $put($k[--$j], _x, _w); //#30682 + $put($_.text, $f($_.barlen + 3), 42); //#30683 + $put($_.options, "dontdraw", true); //#30686 + $put($_.options, "validatecheck", false); //#30687 + $k[$j++] = 'args'; //#30688 + $k[$j++] = $_.barcode; //#30688 + $k[$j++] = $_.options; //#30688 + bwipp_code128(); //#30688 + var _15 = $k[--$j]; //#30688 + $_[$k[--$j]] = _15; //#30688 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30690 + $put($_.args, "textxalign", "center"); //#30691 + $put($_.args, "opt", $_.options); //#30692 + $k[$j++] = $_.args; //#30695 + if (!$_.dontdraw) { //#30695 + bwipp_renlinear(); //#30695 + } //#30695 + $_ = Object.getPrototypeOf($_); //#30697 + $_ = Object.getPrototypeOf($_); //#30699 +} //bwipp_hibccode128 function bwipp_hibcdatamatrix() { - $_ = Object.create($_); //#30401 - $_.dontdraw = false; //#30404 - $_.validatecheck = false; //#30405 - $k[$j++] = $_; //#30407 - bwipp_processoptions(); //#30407 - $_.options = $k[--$j]; //#30407 - $_.barcode = $k[--$j]; //#30408 - bwipp_loadctx(bwipp_hibcdatamatrix) //#30410 - if (!bwipp_hibcdatamatrix.__30417__) { //#30417 - $_ = Object.create($_); //#30417 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30414 - $_.charvals = new Map; //#30415 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30416 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30416 - } //#30416 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30416 - bwipp_hibcdatamatrix.__30417__ = 1; //#30416 - $_ = Object.getPrototypeOf($_); //#30416 - } //#30416 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30424 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30421 - if (!_D) { //#30423 - $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30422'; //#30422 - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30422 - bwipp_raiseerror(); //#30422 - } //#30422 - } //#30422 - $k[$j++] = 'barlen'; //#30426 - $k[$j++] = $_.barcode.length; //#30426 - if ($_.validatecheck) { //#30426 - var _G = $k[--$j]; //#30426 - $k[$j++] = $f(_G - 1); //#30426 - } //#30426 - var _H = $k[--$j]; //#30426 - $_[$k[--$j]] = _H; //#30426 - $_.checksum = 41; //#30428 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30432 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30431 - } //#30431 - $_.checksum = $_.checksum % 43; //#30433 - if ($_.validatecheck) { //#30439 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30437 - $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30436'; //#30436 - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30436 - bwipp_raiseerror(); //#30436 - } //#30436 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30438 - } //#30438 - var _d = $s($f($_.barlen + 2)); //#30441 - $puti(_d, 1, $_.barcode); //#30441 - $_.barcode = _d; //#30441 - $put($_.barcode, 0, 43); //#30442 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30443 - $put($_.options, "dontdraw", true); //#30446 - $put($_.options, "validatecheck", false); //#30447 - $k[$j++] = 'args'; //#30448 - $k[$j++] = $_.barcode; //#30448 - $k[$j++] = $_.options; //#30448 - bwipp_datamatrix(); //#30448 - var _p = $k[--$j]; //#30448 - $_[$k[--$j]] = _p; //#30448 - var _r = $_.args; //#30450 - $put(_r, "opt", $_.options); //#30450 - $k[$j++] = $_.args; //#30453 - if (!$_.dontdraw) { //#30453 - bwipp_renmatrix(); //#30453 - } //#30453 - $_ = Object.getPrototypeOf($_); //#30455 - $_ = Object.getPrototypeOf($_); //#30457 -} - + $_ = Object.create($_); //#30730 + $_.dontdraw = false; //#30733 + $_.validatecheck = false; //#30734 + $k[$j++] = $_; //#30736 + bwipp_processoptions(); //#30736 + $_.options = $k[--$j]; //#30736 + $_.barcode = $k[--$j]; //#30737 + if ($eq($_.barcode, "")) { //#30741 + $k[$j++] = 'bwipp.hibcdatamatrixEmptyData#30740'; //#30740 + $k[$j++] = "The data must not be empty"; //#30740 + bwipp_raiseerror(); //#30740 + } //#30740 + bwipp_loadctx(bwipp_hibcdatamatrix) //#30743 + if (!bwipp_hibcdatamatrix.__30750__) { //#30750 + $_ = Object.create($_); //#30750 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30747 + $_.charvals = new Map; //#30748 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30749 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30749 + } //#30749 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30749 + bwipp_hibcdatamatrix.__30750__ = 1; //#30749 + $_ = Object.getPrototypeOf($_); //#30749 + } //#30749 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30757 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30754 + if (!_E) { //#30756 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30755'; //#30755 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30755 + bwipp_raiseerror(); //#30755 + } //#30755 + } //#30755 + $k[$j++] = 'barlen'; //#30759 + $k[$j++] = $_.barcode.length; //#30759 + if ($_.validatecheck) { //#30759 + var _H = $k[--$j]; //#30759 + $k[$j++] = $f(_H - 1); //#30759 + } //#30759 + var _I = $k[--$j]; //#30759 + $_[$k[--$j]] = _I; //#30759 + $_.checksum = 41; //#30761 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30765 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30764 + } //#30764 + $_.checksum = $_.checksum % 43; //#30766 + if ($_.validatecheck) { //#30772 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30770 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30769'; //#30769 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30769 + bwipp_raiseerror(); //#30769 + } //#30769 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30771 + } //#30771 + var _d = $_.barlen; //#30774 + var _e = $s($f(_d + 2)); //#30774 + $puti(_e, 1, $_.barcode); //#30774 + $_.barcode = _e; //#30774 + $put($_.barcode, 0, 43); //#30775 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30776 + $put($_.options, "dontdraw", true); //#30779 + $put($_.options, "validatecheck", false); //#30780 + $k[$j++] = 'args'; //#30781 + $k[$j++] = $_.barcode; //#30781 + $k[$j++] = $_.options; //#30781 + bwipp_datamatrix(); //#30781 + var _q = $k[--$j]; //#30781 + var _r = $k[--$j]; //#30781 + $_[_r] = _q; //#30781 + $put($_.args, "opt", $_.options); //#30783 + $k[$j++] = $_.args; //#30786 + if (!$_.dontdraw) { //#30786 + bwipp_renmatrix(); //#30786 + } //#30786 + $_ = Object.getPrototypeOf($_); //#30788 + $_ = Object.getPrototypeOf($_); //#30790 +} //bwipp_hibcdatamatrix function bwipp_hibcdatamatrixrectangular() { - $_ = Object.create($_); //#30488 - $_.dontdraw = false; //#30491 - $_.validatecheck = false; //#30492 - $k[$j++] = $_; //#30494 - bwipp_processoptions(); //#30494 - $_.options = $k[--$j]; //#30494 - $_.barcode = $k[--$j]; //#30495 - bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30497 - if (!bwipp_hibcdatamatrixrectangular.__30504__) { //#30504 - $_ = Object.create($_); //#30504 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30501 - $_.charvals = new Map; //#30502 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30503 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30503 - } //#30503 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30503 - bwipp_hibcdatamatrixrectangular.__30504__ = 1; //#30503 - $_ = Object.getPrototypeOf($_); //#30503 - } //#30503 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30511 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30508 - if (!_D) { //#30510 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30509'; //#30509 - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30509 - bwipp_raiseerror(); //#30509 - } //#30509 - } //#30509 - $k[$j++] = 'barlen'; //#30513 - $k[$j++] = $_.barcode.length; //#30513 - if ($_.validatecheck) { //#30513 - var _G = $k[--$j]; //#30513 - $k[$j++] = $f(_G - 1); //#30513 - } //#30513 - var _H = $k[--$j]; //#30513 - $_[$k[--$j]] = _H; //#30513 - $_.checksum = 41; //#30515 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30519 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30518 - } //#30518 - $_.checksum = $_.checksum % 43; //#30520 - if ($_.validatecheck) { //#30526 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30524 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30523'; //#30523 - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30523 - bwipp_raiseerror(); //#30523 - } //#30523 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30525 - } //#30525 - var _d = $s($f($_.barlen + 2)); //#30528 - $puti(_d, 1, $_.barcode); //#30528 - $_.barcode = _d; //#30528 - $put($_.barcode, 0, 43); //#30529 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30530 - $put($_.options, "dontdraw", true); //#30533 - $put($_.options, "validatecheck", false); //#30534 - $put($_.options, "format", "rectangle"); //#30535 - $k[$j++] = 'args'; //#30536 - $k[$j++] = $_.barcode; //#30536 - $k[$j++] = $_.options; //#30536 - bwipp_datamatrix(); //#30536 - var _q = $k[--$j]; //#30536 - var _r = $k[--$j]; //#30536 - $_[_r] = _q; //#30536 - $put($_.args, "opt", $_.options); //#30538 - $k[$j++] = $_.args; //#30541 - if (!$_.dontdraw) { //#30541 - bwipp_renmatrix(); //#30541 - } //#30541 - $_ = Object.getPrototypeOf($_); //#30543 - $_ = Object.getPrototypeOf($_); //#30545 -} - + $_ = Object.create($_); //#30821 + $_.dontdraw = false; //#30824 + $_.validatecheck = false; //#30825 + $k[$j++] = $_; //#30827 + bwipp_processoptions(); //#30827 + $_.options = $k[--$j]; //#30827 + $_.barcode = $k[--$j]; //#30828 + if ($eq($_.barcode, "")) { //#30832 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularEmptyData#30831'; //#30831 + $k[$j++] = "The data must not be empty"; //#30831 + bwipp_raiseerror(); //#30831 + } //#30831 + bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30834 + if (!bwipp_hibcdatamatrixrectangular.__30841__) { //#30841 + $_ = Object.create($_); //#30841 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30838 + $_.charvals = new Map; //#30839 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30840 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30840 + } //#30840 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30840 + bwipp_hibcdatamatrixrectangular.__30841__ = 1; //#30840 + $_ = Object.getPrototypeOf($_); //#30840 + } //#30840 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30848 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30845 + if (!_E) { //#30847 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30846'; //#30846 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30846 + bwipp_raiseerror(); //#30846 + } //#30846 + } //#30846 + $k[$j++] = 'barlen'; //#30850 + $k[$j++] = $_.barcode.length; //#30850 + if ($_.validatecheck) { //#30850 + var _H = $k[--$j]; //#30850 + $k[$j++] = $f(_H - 1); //#30850 + } //#30850 + var _I = $k[--$j]; //#30850 + $_[$k[--$j]] = _I; //#30850 + $_.checksum = 41; //#30852 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30856 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30855 + } //#30855 + $_.checksum = $_.checksum % 43; //#30857 + if ($_.validatecheck) { //#30863 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30861 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30860'; //#30860 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30860 + bwipp_raiseerror(); //#30860 + } //#30860 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30862 + } //#30862 + var _d = $_.barlen; //#30865 + var _e = $s($f(_d + 2)); //#30865 + $puti(_e, 1, $_.barcode); //#30865 + $_.barcode = _e; //#30865 + $put($_.barcode, 0, 43); //#30866 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30867 + $put($_.options, "dontdraw", true); //#30870 + $put($_.options, "validatecheck", false); //#30871 + $put($_.options, "format", "rectangle"); //#30872 + $k[$j++] = 'args'; //#30873 + $k[$j++] = $_.barcode; //#30873 + $k[$j++] = $_.options; //#30873 + bwipp_datamatrix(); //#30873 + var _r = $k[--$j]; //#30873 + $_[$k[--$j]] = _r; //#30873 + $put($_.args, "opt", $_.options); //#30875 + $k[$j++] = $_.args; //#30878 + if (!$_.dontdraw) { //#30878 + bwipp_renmatrix(); //#30878 + } //#30878 + $_ = Object.getPrototypeOf($_); //#30880 + $_ = Object.getPrototypeOf($_); //#30882 +} //bwipp_hibcdatamatrixrectangular function bwipp_hibcpdf417() { - $_ = Object.create($_); //#30576 - $_.dontdraw = false; //#30579 - $_.columns = 2; //#30580 - $_.validatecheck = false; //#30581 - $k[$j++] = $_; //#30583 - bwipp_processoptions(); //#30583 - $_.options = $k[--$j]; //#30583 - $_.barcode = $k[--$j]; //#30584 - bwipp_loadctx(bwipp_hibcpdf417) //#30586 - if (!bwipp_hibcpdf417.__30593__) { //#30593 - $_ = Object.create($_); //#30593 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30590 - $_.charvals = new Map; //#30591 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30592 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30592 - } //#30592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30592 - bwipp_hibcpdf417.__30593__ = 1; //#30592 - $_ = Object.getPrototypeOf($_); //#30592 - } //#30592 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30600 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30597 - if (!_D) { //#30599 - $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30598'; //#30598 - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30598 - bwipp_raiseerror(); //#30598 - } //#30598 - } //#30598 - $k[$j++] = 'barlen'; //#30602 - $k[$j++] = $_.barcode.length; //#30602 - if ($_.validatecheck) { //#30602 - var _G = $k[--$j]; //#30602 - $k[$j++] = $f(_G - 1); //#30602 - } //#30602 - var _H = $k[--$j]; //#30602 - $_[$k[--$j]] = _H; //#30602 - $_.checksum = 41; //#30604 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30608 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30607 - } //#30607 - $_.checksum = $_.checksum % 43; //#30609 - if ($_.validatecheck) { //#30615 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30613 - $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30612'; //#30612 - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30612 - bwipp_raiseerror(); //#30612 - } //#30612 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30614 - } //#30614 - var _d = $s($f($_.barlen + 2)); //#30617 - $puti(_d, 1, $_.barcode); //#30617 - $_.barcode = _d; //#30617 - $put($_.barcode, 0, 43); //#30618 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30619 - $put($_.options, "dontdraw", true); //#30622 - $put($_.options, "columns", $_.columns); //#30623 - $put($_.options, "validatecheck", false); //#30624 - var _p = $_.barcode; //#30625 - $k[$j++] = 'args'; //#30625 - $k[$j++] = _p; //#30625 - $k[$j++] = $_.options; //#30625 - bwipp_pdf417(); //#30625 - var _r = $k[--$j]; //#30625 - $_[$k[--$j]] = _r; //#30625 - $put($_.args, "opt", $_.options); //#30627 - $k[$j++] = $_.args; //#30630 - if (!$_.dontdraw) { //#30630 - bwipp_renmatrix(); //#30630 - } //#30630 - $_ = Object.getPrototypeOf($_); //#30632 - $_ = Object.getPrototypeOf($_); //#30634 -} - + $_ = Object.create($_); //#30913 + $_.dontdraw = false; //#30916 + $_.columns = 2; //#30917 + $_.validatecheck = false; //#30918 + $k[$j++] = $_; //#30920 + bwipp_processoptions(); //#30920 + $_.options = $k[--$j]; //#30920 + $_.barcode = $k[--$j]; //#30921 + if ($eq($_.barcode, "")) { //#30925 + $k[$j++] = 'bwipp.hibcpdf417EmptyData#30924'; //#30924 + $k[$j++] = "The data must not be empty"; //#30924 + bwipp_raiseerror(); //#30924 + } //#30924 + bwipp_loadctx(bwipp_hibcpdf417) //#30927 + if (!bwipp_hibcpdf417.__30934__) { //#30934 + $_ = Object.create($_); //#30934 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30931 + $_.charvals = new Map; //#30932 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30933 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30933 + } //#30933 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30933 + bwipp_hibcpdf417.__30934__ = 1; //#30933 + $_ = Object.getPrototypeOf($_); //#30933 + } //#30933 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30941 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30938 + if (!_E) { //#30940 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30939'; //#30939 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30939 + bwipp_raiseerror(); //#30939 + } //#30939 + } //#30939 + $k[$j++] = 'barlen'; //#30943 + $k[$j++] = $_.barcode.length; //#30943 + if ($_.validatecheck) { //#30943 + var _H = $k[--$j]; //#30943 + $k[$j++] = $f(_H - 1); //#30943 + } //#30943 + var _I = $k[--$j]; //#30943 + $_[$k[--$j]] = _I; //#30943 + $_.checksum = 41; //#30945 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30949 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30948 + } //#30948 + $_.checksum = $_.checksum % 43; //#30950 + if ($_.validatecheck) { //#30956 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30954 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30953'; //#30953 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30953 + bwipp_raiseerror(); //#30953 + } //#30953 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30955 + } //#30955 + var _e = $s($f($_.barlen + 2)); //#30958 + $puti(_e, 1, $_.barcode); //#30958 + $_.barcode = _e; //#30958 + $put($_.barcode, 0, 43); //#30959 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30960 + $put($_.options, "dontdraw", true); //#30963 + $put($_.options, "columns", $_.columns); //#30964 + var _p = $_.options; //#30965 + $put(_p, "validatecheck", false); //#30965 + var _r = $_.options; //#30966 + $k[$j++] = 'args'; //#30966 + $k[$j++] = $_.barcode; //#30966 + $k[$j++] = _r; //#30966 + bwipp_pdf417(); //#30966 + var _s = $k[--$j]; //#30966 + $_[$k[--$j]] = _s; //#30966 + $put($_.args, "opt", $_.options); //#30968 + $k[$j++] = $_.args; //#30971 + if (!$_.dontdraw) { //#30971 + bwipp_renmatrix(); //#30971 + } //#30971 + $_ = Object.getPrototypeOf($_); //#30973 + $_ = Object.getPrototypeOf($_); //#30975 +} //bwipp_hibcpdf417 function bwipp_hibcmicropdf417() { - $_ = Object.create($_); //#30665 - $_.dontdraw = false; //#30668 - $_.columns = 2; //#30669 - $_.validatecheck = false; //#30670 - $k[$j++] = $_; //#30672 - bwipp_processoptions(); //#30672 - $_.options = $k[--$j]; //#30672 - $_.barcode = $k[--$j]; //#30673 - bwipp_loadctx(bwipp_hibcmicropdf417) //#30675 - if (!bwipp_hibcmicropdf417.__30682__) { //#30682 - $_ = Object.create($_); //#30682 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30679 - $_.charvals = new Map; //#30680 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30681 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30681 - } //#30681 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#30681 - bwipp_hibcmicropdf417.__30682__ = 1; //#30681 - $_ = Object.getPrototypeOf($_); //#30681 - } //#30681 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30689 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30686 - if (!_D) { //#30688 - $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#30687'; //#30687 - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30687 - bwipp_raiseerror(); //#30687 - } //#30687 - } //#30687 - $k[$j++] = 'barlen'; //#30691 - $k[$j++] = $_.barcode.length; //#30691 - if ($_.validatecheck) { //#30691 - var _G = $k[--$j]; //#30691 - $k[$j++] = $f(_G - 1); //#30691 - } //#30691 - var _H = $k[--$j]; //#30691 - $_[$k[--$j]] = _H; //#30691 - $_.checksum = 41; //#30693 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30697 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30696 - } //#30696 - $_.checksum = $_.checksum % 43; //#30698 - if ($_.validatecheck) { //#30704 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30702 - $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#30701'; //#30701 - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#30701 - bwipp_raiseerror(); //#30701 - } //#30701 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30703 - } //#30703 - var _d = $s($f($_.barlen + 2)); //#30706 - $puti(_d, 1, $_.barcode); //#30706 - $_.barcode = _d; //#30706 - $put($_.barcode, 0, 43); //#30707 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30708 - $put($_.options, "dontdraw", true); //#30711 - var _m = $_.options; //#30712 - $put(_m, "columns", $_.columns); //#30712 - $put($_.options, "validatecheck", false); //#30713 - $k[$j++] = 'args'; //#30714 - $k[$j++] = $_.barcode; //#30714 - $k[$j++] = $_.options; //#30714 - bwipp_micropdf417(); //#30714 - var _r = $k[--$j]; //#30714 - $_[$k[--$j]] = _r; //#30714 - $put($_.args, "opt", $_.options); //#30716 - $k[$j++] = $_.args; //#30719 - if (!$_.dontdraw) { //#30719 - bwipp_renmatrix(); //#30719 - } //#30719 - $_ = Object.getPrototypeOf($_); //#30721 - $_ = Object.getPrototypeOf($_); //#30723 -} - + $_ = Object.create($_); //#31006 + $_.dontdraw = false; //#31009 + $_.columns = 2; //#31010 + $_.validatecheck = false; //#31011 + $k[$j++] = $_; //#31013 + bwipp_processoptions(); //#31013 + $_.options = $k[--$j]; //#31013 + $_.barcode = $k[--$j]; //#31014 + if ($eq($_.barcode, "")) { //#31018 + $k[$j++] = 'bwipp.hibcmicropdf417EmptyData#31017'; //#31017 + $k[$j++] = "The data must not be empty"; //#31017 + bwipp_raiseerror(); //#31017 + } //#31017 + bwipp_loadctx(bwipp_hibcmicropdf417) //#31020 + if (!bwipp_hibcmicropdf417.__31027__) { //#31027 + $_ = Object.create($_); //#31027 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31024 + $_.charvals = new Map; //#31025 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31026 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31026 + } //#31026 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#31026 + bwipp_hibcmicropdf417.__31027__ = 1; //#31026 + $_ = Object.getPrototypeOf($_); //#31026 + } //#31026 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31034 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31031 + if (!_E) { //#31033 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#31032'; //#31032 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31032 + bwipp_raiseerror(); //#31032 + } //#31032 + } //#31032 + $k[$j++] = 'barlen'; //#31036 + $k[$j++] = $_.barcode.length; //#31036 + if ($_.validatecheck) { //#31036 + var _H = $k[--$j]; //#31036 + $k[$j++] = $f(_H - 1); //#31036 + } //#31036 + var _I = $k[--$j]; //#31036 + $_[$k[--$j]] = _I; //#31036 + $_.checksum = 41; //#31038 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31042 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31041 + } //#31041 + $_.checksum = $_.checksum % 43; //#31043 + if ($_.validatecheck) { //#31049 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31047 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#31046'; //#31046 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#31046 + bwipp_raiseerror(); //#31046 + } //#31046 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31048 + } //#31048 + var _e = $s($f($_.barlen + 2)); //#31051 + $puti(_e, 1, $_.barcode); //#31051 + $_.barcode = _e; //#31051 + $put($_.barcode, 0, 43); //#31052 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31053 + var _m = $_.options; //#31056 + $put(_m, "dontdraw", true); //#31056 + $put($_.options, "columns", $_.columns); //#31057 + $put($_.options, "validatecheck", false); //#31058 + var _r = $_.options; //#31059 + $k[$j++] = 'args'; //#31059 + $k[$j++] = $_.barcode; //#31059 + $k[$j++] = _r; //#31059 + bwipp_micropdf417(); //#31059 + var _s = $k[--$j]; //#31059 + $_[$k[--$j]] = _s; //#31059 + $put($_.args, "opt", $_.options); //#31061 + $k[$j++] = $_.args; //#31064 + if (!$_.dontdraw) { //#31064 + bwipp_renmatrix(); //#31064 + } //#31064 + $_ = Object.getPrototypeOf($_); //#31066 + $_ = Object.getPrototypeOf($_); //#31068 +} //bwipp_hibcmicropdf417 function bwipp_hibcqrcode() { - $_ = Object.create($_); //#30754 - $_.dontdraw = false; //#30757 - $_.validatecheck = false; //#30758 - $k[$j++] = $_; //#30760 - bwipp_processoptions(); //#30760 - $_.options = $k[--$j]; //#30760 - $_.barcode = $k[--$j]; //#30761 - bwipp_loadctx(bwipp_hibcqrcode) //#30763 - if (!bwipp_hibcqrcode.__30770__) { //#30770 - $_ = Object.create($_); //#30770 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30767 - $_.charvals = new Map; //#30768 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30769 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30769 - } //#30769 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#30769 - bwipp_hibcqrcode.__30770__ = 1; //#30769 - $_ = Object.getPrototypeOf($_); //#30769 - } //#30769 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30777 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30774 - if (!_D) { //#30776 - $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#30775'; //#30775 - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30775 - bwipp_raiseerror(); //#30775 - } //#30775 - } //#30775 - $k[$j++] = 'barlen'; //#30779 - $k[$j++] = $_.barcode.length; //#30779 - if ($_.validatecheck) { //#30779 - var _G = $k[--$j]; //#30779 - $k[$j++] = $f(_G - 1); //#30779 - } //#30779 - var _H = $k[--$j]; //#30779 - $_[$k[--$j]] = _H; //#30779 - $_.checksum = 41; //#30781 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30785 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30784 - } //#30784 - $_.checksum = $_.checksum % 43; //#30786 - if ($_.validatecheck) { //#30792 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30790 - $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#30789'; //#30789 - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#30789 - bwipp_raiseerror(); //#30789 - } //#30789 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30791 - } //#30791 - var _d = $s($f($_.barlen + 2)); //#30794 - $puti(_d, 1, $_.barcode); //#30794 - $_.barcode = _d; //#30794 - $put($_.barcode, 0, 43); //#30795 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30796 - $put($_.options, "dontdraw", true); //#30799 - $put($_.options, "validatecheck", false); //#30800 - $k[$j++] = 'args'; //#30801 - $k[$j++] = $_.barcode; //#30801 - $k[$j++] = $_.options; //#30801 - bwipp_qrcode(); //#30801 - var _p = $k[--$j]; //#30801 - $_[$k[--$j]] = _p; //#30801 - var _r = $_.args; //#30803 - $put(_r, "opt", $_.options); //#30803 - $k[$j++] = $_.args; //#30806 - if (!$_.dontdraw) { //#30806 - bwipp_renmatrix(); //#30806 - } //#30806 - $_ = Object.getPrototypeOf($_); //#30808 - $_ = Object.getPrototypeOf($_); //#30810 -} - + $_ = Object.create($_); //#31099 + $_.dontdraw = false; //#31102 + $_.validatecheck = false; //#31103 + $k[$j++] = $_; //#31105 + bwipp_processoptions(); //#31105 + $_.options = $k[--$j]; //#31105 + $_.barcode = $k[--$j]; //#31106 + if ($eq($_.barcode, "")) { //#31110 + $k[$j++] = 'bwipp.hibcqrcodeEmptyData#31109'; //#31109 + $k[$j++] = "The data must not be empty"; //#31109 + bwipp_raiseerror(); //#31109 + } //#31109 + bwipp_loadctx(bwipp_hibcqrcode) //#31112 + if (!bwipp_hibcqrcode.__31119__) { //#31119 + $_ = Object.create($_); //#31119 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31116 + $_.charvals = new Map; //#31117 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31118 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31118 + } //#31118 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#31118 + bwipp_hibcqrcode.__31119__ = 1; //#31118 + $_ = Object.getPrototypeOf($_); //#31118 + } //#31118 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31126 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31123 + if (!_E) { //#31125 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#31124'; //#31124 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31124 + bwipp_raiseerror(); //#31124 + } //#31124 + } //#31124 + $k[$j++] = 'barlen'; //#31128 + $k[$j++] = $_.barcode.length; //#31128 + if ($_.validatecheck) { //#31128 + var _H = $k[--$j]; //#31128 + $k[$j++] = $f(_H - 1); //#31128 + } //#31128 + var _I = $k[--$j]; //#31128 + $_[$k[--$j]] = _I; //#31128 + $_.checksum = 41; //#31130 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31134 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31133 + } //#31133 + $_.checksum = $_.checksum % 43; //#31135 + if ($_.validatecheck) { //#31141 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31139 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#31138'; //#31138 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#31138 + bwipp_raiseerror(); //#31138 + } //#31138 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31140 + } //#31140 + var _e = $s($f($_.barlen + 2)); //#31143 + $puti(_e, 1, $_.barcode); //#31143 + $_.barcode = _e; //#31143 + $put($_.barcode, 0, 43); //#31144 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31145 + $put($_.options, "dontdraw", true); //#31148 + $put($_.options, "validatecheck", false); //#31149 + $k[$j++] = 'args'; //#31150 + $k[$j++] = $_.barcode; //#31150 + $k[$j++] = $_.options; //#31150 + bwipp_qrcode(); //#31150 + var _q = $k[--$j]; //#31150 + var _r = $k[--$j]; //#31150 + $_[_r] = _q; //#31150 + $put($_.args, "opt", $_.options); //#31152 + $k[$j++] = $_.args; //#31155 + if (!$_.dontdraw) { //#31155 + bwipp_renmatrix(); //#31155 + } //#31155 + $_ = Object.getPrototypeOf($_); //#31157 + $_ = Object.getPrototypeOf($_); //#31159 +} //bwipp_hibcqrcode function bwipp_hibccodablockf() { - $_ = Object.create($_); //#30841 - $_.dontdraw = false; //#30844 - $_.validatecheck = false; //#30845 - $k[$j++] = $_; //#30847 - bwipp_processoptions(); //#30847 - $_.options = $k[--$j]; //#30847 - $_.barcode = $k[--$j]; //#30848 - bwipp_loadctx(bwipp_hibccodablockf) //#30850 - if (!bwipp_hibccodablockf.__30857__) { //#30857 - $_ = Object.create($_); //#30857 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30854 - $_.charvals = new Map; //#30855 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30856 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30856 - } //#30856 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#30856 - bwipp_hibccodablockf.__30857__ = 1; //#30856 - $_ = Object.getPrototypeOf($_); //#30856 - } //#30856 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30864 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30861 - if (!_D) { //#30863 - $k[$j++] = 'bwipp.codablockfBadCharacter#30862'; //#30862 - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30862 - bwipp_raiseerror(); //#30862 - } //#30862 - } //#30862 - $k[$j++] = 'barlen'; //#30866 - $k[$j++] = $_.barcode.length; //#30866 - if ($_.validatecheck) { //#30866 - var _G = $k[--$j]; //#30866 - $k[$j++] = $f(_G - 1); //#30866 - } //#30866 - var _H = $k[--$j]; //#30866 - $_[$k[--$j]] = _H; //#30866 - $_.checksum = 41; //#30868 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30872 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30871 - } //#30871 - $_.checksum = $_.checksum % 43; //#30873 - if ($_.validatecheck) { //#30879 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30877 - $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#30876'; //#30876 - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#30876 - bwipp_raiseerror(); //#30876 - } //#30876 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30878 - } //#30878 - var _c = $_.barlen; //#30881 - var _d = $s($f(_c + 2)); //#30881 - $puti(_d, 1, $_.barcode); //#30881 - $_.barcode = _d; //#30881 - $put($_.barcode, 0, 43); //#30882 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30883 - $put($_.options, "dontdraw", true); //#30886 - $put($_.options, "validatecheck", false); //#30887 - $k[$j++] = 'args'; //#30888 - $k[$j++] = $_.barcode; //#30888 - $k[$j++] = $_.options; //#30888 - bwipp_codablockf(); //#30888 - var _p = $k[--$j]; //#30888 - $_[$k[--$j]] = _p; //#30888 - var _r = $_.args; //#30890 - $put(_r, "opt", $_.options); //#30890 - $k[$j++] = $_.args; //#30893 - if (!$_.dontdraw) { //#30893 - bwipp_renmatrix(); //#30893 - } //#30893 - $_ = Object.getPrototypeOf($_); //#30895 - $_ = Object.getPrototypeOf($_); //#30897 -} - + $_ = Object.create($_); //#31190 + $_.dontdraw = false; //#31193 + $_.validatecheck = false; //#31194 + $k[$j++] = $_; //#31196 + bwipp_processoptions(); //#31196 + $_.options = $k[--$j]; //#31196 + $_.barcode = $k[--$j]; //#31197 + if ($eq($_.barcode, "")) { //#31201 + $k[$j++] = 'bwipp.hibccodablockfEmptyData#31200'; //#31200 + $k[$j++] = "The data must not be empty"; //#31200 + bwipp_raiseerror(); //#31200 + } //#31200 + bwipp_loadctx(bwipp_hibccodablockf) //#31203 + if (!bwipp_hibccodablockf.__31210__) { //#31210 + $_ = Object.create($_); //#31210 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31207 + $_.charvals = new Map; //#31208 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31209 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31209 + } //#31209 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#31209 + bwipp_hibccodablockf.__31210__ = 1; //#31209 + $_ = Object.getPrototypeOf($_); //#31209 + } //#31209 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31217 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31214 + if (!_E) { //#31216 + $k[$j++] = 'bwipp.hibccodablockfBadCharacter#31215'; //#31215 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31215 + bwipp_raiseerror(); //#31215 + } //#31215 + } //#31215 + $k[$j++] = 'barlen'; //#31219 + $k[$j++] = $_.barcode.length; //#31219 + if ($_.validatecheck) { //#31219 + var _H = $k[--$j]; //#31219 + $k[$j++] = $f(_H - 1); //#31219 + } //#31219 + var _I = $k[--$j]; //#31219 + $_[$k[--$j]] = _I; //#31219 + $_.checksum = 41; //#31221 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31225 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31224 + } //#31224 + $_.checksum = $_.checksum % 43; //#31226 + if ($_.validatecheck) { //#31232 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31230 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#31229'; //#31229 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#31229 + bwipp_raiseerror(); //#31229 + } //#31229 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31231 + } //#31231 + var _e = $s($f($_.barlen + 2)); //#31234 + $puti(_e, 1, $_.barcode); //#31234 + $_.barcode = _e; //#31234 + $put($_.barcode, 0, 43); //#31235 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31236 + $put($_.options, "dontdraw", true); //#31239 + $put($_.options, "validatecheck", false); //#31240 + $k[$j++] = 'args'; //#31241 + $k[$j++] = $_.barcode; //#31241 + $k[$j++] = $_.options; //#31241 + bwipp_codablockf(); //#31241 + var _q = $k[--$j]; //#31241 + var _r = $k[--$j]; //#31241 + $_[_r] = _q; //#31241 + $put($_.args, "opt", $_.options); //#31243 + $k[$j++] = $_.args; //#31246 + if (!$_.dontdraw) { //#31246 + bwipp_renmatrix(); //#31246 + } //#31246 + $_ = Object.getPrototypeOf($_); //#31248 + $_ = Object.getPrototypeOf($_); //#31250 +} //bwipp_hibccodablockf function bwipp_hibcazteccode() { - $_ = Object.create($_); //#30928 - $_.dontdraw = false; //#30931 - $_.validatecheck = false; //#30932 - $k[$j++] = $_; //#30934 - bwipp_processoptions(); //#30934 - $_.options = $k[--$j]; //#30934 - $_.barcode = $k[--$j]; //#30935 - bwipp_loadctx(bwipp_hibcazteccode) //#30937 - if (!bwipp_hibcazteccode.__30944__) { //#30944 - $_ = Object.create($_); //#30944 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30941 - $_.charvals = new Map; //#30942 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30943 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30943 - } //#30943 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#30943 - bwipp_hibcazteccode.__30944__ = 1; //#30943 - $_ = Object.getPrototypeOf($_); //#30943 - } //#30943 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30951 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30948 - if (!_D) { //#30950 - $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#30949'; //#30949 - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30949 - bwipp_raiseerror(); //#30949 - } //#30949 - } //#30949 - $k[$j++] = 'barlen'; //#30953 - $k[$j++] = $_.barcode.length; //#30953 - if ($_.validatecheck) { //#30953 - var _G = $k[--$j]; //#30953 - $k[$j++] = $f(_G - 1); //#30953 - } //#30953 - var _H = $k[--$j]; //#30953 - $_[$k[--$j]] = _H; //#30953 - $_.checksum = 41; //#30955 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30959 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30958 - } //#30958 - $_.checksum = $_.checksum % 43; //#30960 - if ($_.validatecheck) { //#30966 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30964 - $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#30963'; //#30963 - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#30963 - bwipp_raiseerror(); //#30963 - } //#30963 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30965 - } //#30965 - var _d = $s($f($_.barlen + 2)); //#30968 - $puti(_d, 1, $_.barcode); //#30968 - $_.barcode = _d; //#30968 - $put($_.barcode, 0, 43); //#30969 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30970 - $put($_.options, "dontdraw", true); //#30973 - $put($_.options, "validatecheck", false); //#30974 - $k[$j++] = 'args'; //#30975 - $k[$j++] = $_.barcode; //#30975 - $k[$j++] = $_.options; //#30975 - bwipp_azteccode(); //#30975 - var _p = $k[--$j]; //#30975 - $_[$k[--$j]] = _p; //#30975 - var _r = $_.args; //#30977 - $put(_r, "opt", $_.options); //#30977 - $k[$j++] = $_.args; //#30980 - if (!$_.dontdraw) { //#30980 - bwipp_renmatrix(); //#30980 - } //#30980 - $_ = Object.getPrototypeOf($_); //#30982 - $_ = Object.getPrototypeOf($_); //#30984 -} - + $_ = Object.create($_); //#31281 + $_.dontdraw = false; //#31284 + $_.validatecheck = false; //#31285 + $k[$j++] = $_; //#31287 + bwipp_processoptions(); //#31287 + $_.options = $k[--$j]; //#31287 + $_.barcode = $k[--$j]; //#31288 + if ($eq($_.barcode, "")) { //#31292 + $k[$j++] = 'bwipp.hibcazteccodeEmptyData#31291'; //#31291 + $k[$j++] = "The data must not be empty"; //#31291 + bwipp_raiseerror(); //#31291 + } //#31291 + bwipp_loadctx(bwipp_hibcazteccode) //#31294 + if (!bwipp_hibcazteccode.__31301__) { //#31301 + $_ = Object.create($_); //#31301 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31298 + $_.charvals = new Map; //#31299 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31300 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31300 + } //#31300 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#31300 + bwipp_hibcazteccode.__31301__ = 1; //#31300 + $_ = Object.getPrototypeOf($_); //#31300 + } //#31300 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31308 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31305 + if (!_E) { //#31307 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#31306'; //#31306 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31306 + bwipp_raiseerror(); //#31306 + } //#31306 + } //#31306 + $k[$j++] = 'barlen'; //#31310 + $k[$j++] = $_.barcode.length; //#31310 + if ($_.validatecheck) { //#31310 + var _H = $k[--$j]; //#31310 + $k[$j++] = $f(_H - 1); //#31310 + } //#31310 + var _I = $k[--$j]; //#31310 + $_[$k[--$j]] = _I; //#31310 + $_.checksum = 41; //#31312 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31316 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31315 + } //#31315 + $_.checksum = $_.checksum % 43; //#31317 + if ($_.validatecheck) { //#31323 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31321 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#31320'; //#31320 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#31320 + bwipp_raiseerror(); //#31320 + } //#31320 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31322 + } //#31322 + var _e = $s($f($_.barlen + 2)); //#31325 + $puti(_e, 1, $_.barcode); //#31325 + $_.barcode = _e; //#31325 + $put($_.barcode, 0, 43); //#31326 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31327 + $put($_.options, "dontdraw", true); //#31330 + $put($_.options, "validatecheck", false); //#31331 + $k[$j++] = 'args'; //#31332 + $k[$j++] = $_.barcode; //#31332 + $k[$j++] = $_.options; //#31332 + bwipp_azteccode(); //#31332 + var _q = $k[--$j]; //#31332 + var _r = $k[--$j]; //#31332 + $_[_r] = _q; //#31332 + $put($_.args, "opt", $_.options); //#31334 + $k[$j++] = $_.args; //#31337 + if (!$_.dontdraw) { //#31337 + bwipp_renmatrix(); //#31337 + } //#31337 + $_ = Object.getPrototypeOf($_); //#31339 + $_ = Object.getPrototypeOf($_); //#31341 +} //bwipp_hibcazteccode function bwipp_channelcode() { - $_ = Object.create($_); //#31012 - $_.options = $k[--$j]; //#31014 - $_.barcode = $k[--$j]; //#31015 - $_.dontdraw = false; //#31017 - $_.shortfinder = false; //#31018 - $_.includetext = false; //#31019 - $_.includecheck = false; //#31020 - $_.height = 1; //#31021 - $forall($_.options, function() { //#31032 - var _3 = $k[--$j]; //#31032 - $_[$k[--$j]] = _3; //#31032 - }); //#31032 - $_.height = +$_.height; //#31034 - if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31039 - $k[$j++] = 'bwipp.channelcodeBadLength#31038'; //#31038 - $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31038 - bwipp_raiseerror(); //#31038 - } //#31038 - $forall($_.barcode, function() { //#31044 - var _9 = $k[--$j]; //#31041 - if ((_9 < 48) || (_9 > 57)) { //#31043 - $k[$j++] = 'bwipp.channelcodeBadCharacter#31042'; //#31042 - $k[$j++] = "Channel Code must contain only digits"; //#31042 - bwipp_raiseerror(); //#31042 - } //#31042 - }); //#31042 - if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31047 - $k[$j++] = 'bwipp.channelcodeTooBig#31046'; //#31046 - $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31046 - bwipp_raiseerror(); //#31046 - } //#31046 + $_ = Object.create($_); //#31369 + $_.options = $k[--$j]; //#31371 + $_.barcode = $k[--$j]; //#31372 + $_.dontdraw = false; //#31374 + $_.shortfinder = false; //#31375 + $_.includetext = false; //#31376 + $_.includecheck = false; //#31377 + $_.height = 1; //#31378 + $forall($_.options, function() { //#31389 + var _3 = $k[--$j]; //#31389 + $_[$k[--$j]] = _3; //#31389 + }); //#31389 + $_.height = +$_.height; //#31391 + if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31396 + $k[$j++] = 'bwipp.channelcodeBadLength#31395'; //#31395 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31395 + bwipp_raiseerror(); //#31395 + } //#31395 + $forall($_.barcode, function() { //#31401 + var _9 = $k[--$j]; //#31398 + if ((_9 < 48) || (_9 > 57)) { //#31400 + $k[$j++] = 'bwipp.channelcodeBadCharacter#31399'; //#31399 + $k[$j++] = "Channel Code must contain only digits"; //#31399 + bwipp_raiseerror(); //#31399 + } //#31399 + }); //#31399 + if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31404 + $k[$j++] = 'bwipp.channelcodeTooBig#31403'; //#31403 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31403 + bwipp_raiseerror(); //#31403 + } //#31403 $_.nextb = function() { - var _E = $k[--$j]; //#31050 - var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31055 - $k[$j++] = _E; //#31071 - $k[$j++] = _N; //#31071 - if (_E < $f($_.chan + 2)) { //#31069 - var _P = $k[--$j]; //#31057 - var _Q = $k[--$j]; //#31057 - var _R = $k[--$j]; //#31057 - $k[$j++] = _R; //#31060 - $k[$j++] = _Q; //#31060 - $k[$j++] = _P; //#31060 - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31060 - var _V = $k[--$j]; //#31058 - var _W = $k[--$j]; //#31058 - $put($_.b, _W, _T); //#31058 - var _X = $k[--$j]; //#31059 - var _Y = $k[--$j]; //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = _X; //#31059 - $k[$j++] = _W; //#31059 - $k[$j++] = _V; //#31059 - $k[$j++] = $f($f(_X - _T) + 1); //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = $f(_W + 1); //#31059 - $_.nexts(); //#31059 - } //#31059 - } else { //#31069 - var _Z = $k[--$j]; //#31062 - var _a = $k[--$j]; //#31062 - var _b = $k[--$j]; //#31062 - $k[$j++] = _b; //#31070 - $k[$j++] = _a; //#31070 - $k[$j++] = _Z; //#31070 - if ($le(_Z, _b)) { //#31070 - var _d = $k[--$j]; //#31063 - var _e = $k[--$j]; //#31063 - var _f = $k[--$j]; //#31063 - $put($_.b, _e, _f); //#31063 - $k[$j++] = _f; //#31068 - $k[$j++] = _e; //#31068 - $k[$j++] = _d; //#31068 - if ($_.value == $_.target) { //#31068 - $k[$j++] = Infinity; //#31066 - for (var _i = 3; _i <= 10; _i += 1) { //#31066 - $k[$j++] = $get($_.s, _i); //#31066 - $k[$j++] = $get($_.b, _i); //#31066 - } //#31066 - $_.out = $geti($a(), 0, $_.chan * 2); //#31067 - } //#31067 - $_.value = $_.value + 1; //#31069 - } //#31069 - } //#31069 - $j -= 4; //#31072 - }; //#31073 + var _E = $k[--$j]; //#31407 + var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31412 + $k[$j++] = _E; //#31428 + $k[$j++] = _N; //#31428 + if (_E < $f($_.chan + 2)) { //#31426 + var _P = $k[--$j]; //#31414 + var _Q = $k[--$j]; //#31414 + var _R = $k[--$j]; //#31414 + $k[$j++] = _R; //#31417 + $k[$j++] = _Q; //#31417 + $k[$j++] = _P; //#31417 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31417 + var _V = $k[--$j]; //#31415 + var _W = $k[--$j]; //#31415 + $put($_.b, _W, _T); //#31415 + var _X = $k[--$j]; //#31416 + var _Y = $k[--$j]; //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = _X; //#31416 + $k[$j++] = _W; //#31416 + $k[$j++] = _V; //#31416 + $k[$j++] = $f($f(_X - _T) + 1); //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = $f(_W + 1); //#31416 + $_.nexts(); //#31416 + } //#31416 + } else { //#31426 + var _Z = $k[--$j]; //#31419 + var _a = $k[--$j]; //#31419 + var _b = $k[--$j]; //#31419 + $k[$j++] = _b; //#31427 + $k[$j++] = _a; //#31427 + $k[$j++] = _Z; //#31427 + if ($le(_Z, _b)) { //#31427 + var _d = $k[--$j]; //#31420 + var _e = $k[--$j]; //#31420 + var _f = $k[--$j]; //#31420 + $put($_.b, _e, _f); //#31420 + $k[$j++] = _f; //#31425 + $k[$j++] = _e; //#31425 + $k[$j++] = _d; //#31425 + if ($_.value == $_.target) { //#31425 + $k[$j++] = Infinity; //#31422 + for (var _i = 3; _i <= 10; _i += 1) { //#31423 + $k[$j++] = $get($_.s, _i); //#31423 + $k[$j++] = $get($_.b, _i); //#31423 + } //#31423 + $_.out = $geti($a(), 0, $_.chan * 2); //#31424 + } //#31424 + $_.value = $_.value + 1; //#31426 + } //#31426 + } //#31426 + $j -= 4; //#31429 + }; //#31430 $_.nexts = function() { - var _r = $k[--$j]; //#31076 - $k[$j++] = _r; //#31076 - if (_r < $f($_.chan + 2)) { //#31076 - $k[$j++] = 1; //#31076 - } else { //#31076 - var _t = $k[--$j]; //#31076 - var _u = $k[--$j]; //#31076 - $k[$j++] = _u; //#31076 - $k[$j++] = _t; //#31076 - $k[$j++] = _u; //#31076 - } //#31076 - var _v = $k[--$j]; //#31076 - var _w = $k[--$j]; //#31076 - var _x = $k[--$j]; //#31076 - $k[$j++] = _x; //#31079 - $k[$j++] = _w; //#31079 - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31079 - var _11 = $k[--$j]; //#31077 - $put($_.s, _11, _z); //#31077 - var _12 = $k[--$j]; //#31078 - var _13 = $k[--$j]; //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _12; //#31078 - $k[$j++] = _11; //#31078 - $k[$j++] = $f($f(_12 - _z) + 1); //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _11; //#31078 - $_.nextb(); //#31078 - } //#31078 - $j -= 3; //#31080 - }; //#31081 + var _r = $k[--$j]; //#31433 + $k[$j++] = _r; //#31433 + if (_r < $f($_.chan + 2)) { //#31433 + $k[$j++] = 1; //#31433 + } else { //#31433 + var _t = $k[--$j]; //#31433 + var _u = $k[--$j]; //#31433 + $k[$j++] = _u; //#31433 + $k[$j++] = _t; //#31433 + $k[$j++] = _u; //#31433 + } //#31433 + var _v = $k[--$j]; //#31433 + var _w = $k[--$j]; //#31433 + var _x = $k[--$j]; //#31433 + $k[$j++] = _x; //#31436 + $k[$j++] = _w; //#31436 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31436 + var _11 = $k[--$j]; //#31434 + $put($_.s, _11, _z); //#31434 + var _12 = $k[--$j]; //#31435 + var _13 = $k[--$j]; //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _12; //#31435 + $k[$j++] = _11; //#31435 + $k[$j++] = $f($f(_12 - _z) + 1); //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _11; //#31435 + $_.nextb(); //#31435 + } //#31435 + $j -= 3; //#31437 + }; //#31438 $_.encode = function() { - $_.chan = $k[--$j]; //#31084 - $_.target = $k[--$j]; //#31085 - $_.value = 0; //#31086 - $_.out = -1; //#31087 - $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31088 - $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31089 - var _18 = $_.chan; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = 3; //#31090 - $_.nexts(); //#31090 - $k[$j++] = $_.out; //#31091 - }; //#31092 - $_.barlen = $_.barcode.length; //#31094 - $k[$j++] = 'finder'; //#31097 - if ($_.shortfinder) { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1]); //#31097 - } else { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31097 - } //#31097 - var _1E = $k[--$j]; //#31097 - $_[$k[--$j]] = _1E; //#31097 - $k[$j++] = 'data'; //#31100 - $k[$j++] = $cvi($_.barcode); //#31100 - $k[$j++] = $_.barlen + 1; //#31100 - $_.encode(); //#31100 - var _1I = $k[--$j]; //#31100 - $_[$k[--$j]] = _1I; //#31100 - $_.check = $a([]); //#31103 - if ($_.includecheck) { //#31119 - $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31113 - $k[$j++] = 0; //#31117 - for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31117 - var _1e = $k[--$j]; //#31116 - $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31116 - } //#31116 - var _1f = $k[--$j]; //#31118 - $k[$j++] = _1f % 23; //#31118 - $k[$j++] = 3; //#31118 - $_.encode(); //#31118 - $_.check = $k[--$j]; //#31118 - } //#31118 - $k[$j++] = Infinity; //#31125 - $aload($_.finder); //#31123 - $aload($_.data); //#31124 - $aload($_.check); //#31125 - $_.sbs = $a(); //#31125 - $_.txt = $a($_.barlen); //#31129 - for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31133 - $_.i = _1p; //#31131 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31132 - } //#31132 - $k[$j++] = Infinity; //#31143 - var _1w = $_.sbs; //#31138 - $k[$j++] = Infinity; //#31139 - for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31139 - $k[$j++] = $_.height; //#31139 - } //#31139 - var _21 = $a(); //#31139 - $k[$j++] = Infinity; //#31140 - for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31140 - $k[$j++] = 0; //#31140 - } //#31140 - var _25 = $a(); //#31140 - $k[$j++] = 'ren'; //#31143 - $k[$j++] = bwipp_renlinear; //#31143 - $k[$j++] = 'sbs'; //#31143 - $k[$j++] = _1w; //#31143 - $k[$j++] = 'bhs'; //#31143 - $k[$j++] = _21; //#31143 - $k[$j++] = 'bbs'; //#31143 - $k[$j++] = _25; //#31143 - $k[$j++] = 'txt'; //#31143 - $k[$j++] = $_.txt; //#31143 - $k[$j++] = 'textxalign'; //#31143 - $k[$j++] = "center"; //#31143 - $k[$j++] = 'opt'; //#31143 - $k[$j++] = $_.options; //#31143 - var _28 = $d(); //#31143 - $k[$j++] = _28; //#31146 - if (!$_.dontdraw) { //#31146 - bwipp_renlinear(); //#31146 - } //#31146 - $_ = Object.getPrototypeOf($_); //#31148 -} - + $_.chan = $k[--$j]; //#31441 + $_.target = $k[--$j]; //#31442 + $_.value = 0; //#31443 + $_.out = -1; //#31444 + $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31445 + $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31446 + var _18 = $_.chan; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = 3; //#31447 + $_.nexts(); //#31447 + $k[$j++] = $_.out; //#31448 + }; //#31449 + $_.barlen = $_.barcode.length; //#31451 + $k[$j++] = 'finder'; //#31454 + if ($_.shortfinder) { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#31454 + } else { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31454 + } //#31454 + var _1E = $k[--$j]; //#31454 + $_[$k[--$j]] = _1E; //#31454 + $k[$j++] = 'data'; //#31457 + $k[$j++] = $cvi($_.barcode); //#31457 + $k[$j++] = $_.barlen + 1; //#31457 + $_.encode(); //#31457 + var _1I = $k[--$j]; //#31457 + $_[$k[--$j]] = _1I; //#31457 + $_.check = $a([]); //#31460 + if ($_.includecheck) { //#31476 + $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31470 + $k[$j++] = 0; //#31474 + for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31474 + var _1e = $k[--$j]; //#31473 + $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31473 + } //#31473 + var _1f = $k[--$j]; //#31475 + $k[$j++] = _1f % 23; //#31475 + $k[$j++] = 3; //#31475 + $_.encode(); //#31475 + $_.check = $k[--$j]; //#31475 + } //#31475 + $k[$j++] = Infinity; //#31479 + $aload($_.finder); //#31480 + $aload($_.data); //#31481 + $aload($_.check); //#31482 + $_.sbs = $a(); //#31482 + $_.txt = $a($_.barlen); //#31486 + for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31490 + $_.i = _1p; //#31488 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31489 + } //#31489 + $k[$j++] = Infinity; //#31493 + var _1w = $_.sbs; //#31495 + $k[$j++] = Infinity; //#31496 + for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31496 + $k[$j++] = $_.height; //#31496 + } //#31496 + var _21 = $a(); //#31496 + $k[$j++] = Infinity; //#31497 + for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31497 + $k[$j++] = 0; //#31497 + } //#31497 + var _25 = $a(); //#31497 + $k[$j++] = 'ren'; //#31500 + $k[$j++] = bwipp_renlinear; //#31500 + $k[$j++] = 'sbs'; //#31500 + $k[$j++] = _1w; //#31500 + $k[$j++] = 'bhs'; //#31500 + $k[$j++] = _21; //#31500 + $k[$j++] = 'bbs'; //#31500 + $k[$j++] = _25; //#31500 + $k[$j++] = 'txt'; //#31500 + $k[$j++] = $_.txt; //#31500 + $k[$j++] = 'textxalign'; //#31500 + $k[$j++] = "center"; //#31500 + $k[$j++] = 'opt'; //#31500 + $k[$j++] = $_.options; //#31500 + var _28 = $d(); //#31500 + $k[$j++] = _28; //#31503 + if (!$_.dontdraw) { //#31503 + bwipp_renlinear(); //#31503 + } //#31503 + $_ = Object.getPrototypeOf($_); //#31505 +} //bwipp_channelcode function bwipp_renlinear() { - if ($_.bwipjs_dontdraw) { //#31176 - return; //#31176 - } //#31176 - $_ = Object.create($_); //#31177 - $_.args = $k[--$j]; //#31179 - $_.sbs = $a([]); //#31182 - $_.bhs = $a([]); //#31183 - $_.bbs = $a([]); //#31184 - $_.txt = $a([]); //#31185 - $_.barcolor = "unset"; //#31186 - $_.includetext = false; //#31187 - $_.textcolor = "unset"; //#31188 - $_.textxalign = "unset"; //#31189 - $_.textyalign = "unset"; //#31190 - $_.textfont = "OCR-B"; //#31191 - $_.textsize = 10; //#31192 - $_.textxoffset = 0; //#31193 - $_.textyoffset = 0; //#31194 - $_.textgaps = 0; //#31195 - $_.alttext = ""; //#31196 - $_.bordercolor = "unset"; //#31197 - $_.backgroundcolor = "unset"; //#31198 - $_.inkspread = 0; //#31199 - $_.width = 0; //#31200 - $_.barratio = 1; //#31201 - $_.spaceratio = 1; //#31202 - $_.showborder = false; //#31203 - $_.borderleft = 10; //#31204 - $_.borderright = 10; //#31205 - $_.bordertop = 1; //#31206 - $_.borderbottom = 1; //#31207 - $_.borderwidth = 0.5; //#31208 - $_.guardwhitespace = false; //#31209 - $_.guardleftpos = 0; //#31210 - $_.guardleftypos = 0; //#31211 - $_.guardrightpos = 0; //#31212 - $_.guardrightypos = 0; //#31213 - $_.guardwidth = 7; //#31214 - $_.guardheight = 7; //#31215 - $forall($_.args, function() { //#31218 - var _7 = $k[--$j]; //#31218 - $_[$k[--$j]] = _7; //#31218 - }); //#31218 - var _9 = $_.opt; //#31219 - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#31219 - var _A = _D.next().value; //#31219 - $_[_A] = _9.get(_A); //#31219 - } //#31219 - $_.barcolor = "" + $_.barcolor; //#31221 - $_.textcolor = "" + $_.textcolor; //#31222 - $_.textxalign = "" + $_.textxalign; //#31223 - $_.textyalign = "" + $_.textyalign; //#31224 - $_.textfont = "" + $_.textfont; //#31225 - $_.textsize = +$_.textsize; //#31226 - $_.textxoffset = +$_.textxoffset; //#31227 - $_.textyoffset = +$_.textyoffset; //#31228 - $_.textgaps = +$_.textgaps; //#31229 - $_.alttext = "" + $_.alttext; //#31230 - $_.bordercolor = "" + $_.bordercolor; //#31231 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31232 - $_.inkspread = +$_.inkspread; //#31233 - $_.width = +$_.width; //#31234 - $_.barratio = +$_.barratio; //#31235 - $_.spaceratio = +$_.spaceratio; //#31236 - $_.borderleft = +$_.borderleft; //#31237 - $_.borderright = +$_.borderright; //#31238 - $_.bordertop = +$_.bordertop; //#31239 - $_.borderbottom = +$_.borderbottom; //#31240 - $_.borderwidth = +$_.borderwidth; //#31241 - $_.guardleftpos = +$_.guardleftpos; //#31242 - $_.guardleftypos = +$_.guardleftypos; //#31243 - $_.guardrightpos = +$_.guardrightpos; //#31244 - $_.guardrightypos = +$_.guardrightypos; //#31245 - $_.guardwidth = +$_.guardwidth; //#31246 - $_.guardheight = +$_.guardheight; //#31247 - $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31250 - $_.x = 0; //#31251 - $_.maxh = 0; //#31251 - for (var _k = 0, _j = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#31270 - $_.i = _k; //#31253 - if (($_.i % 2) == 0) { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31255 - if ($get($_.sbs, $_.i) != 0) { //#31264 - $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31257 - $_.c = $f(($_.d / 2) + $_.x); //#31258 - $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31259 - $_.w = $f($_.d - $_.inkspread); //#31260 - $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31261 - if ($f($_.h + $_.y) > $_.maxh) { //#31262 - $_.maxh = $f($_.h + $_.y); //#31262 - } //#31262 - } else { //#31264 - $put($_.bars, ~~($_.i / 2), -1); //#31264 - } //#31264 - } else { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31267 - } //#31267 - $_.x = $f($_.x + $_.d); //#31269 - } //#31269 - $$.save(); //#31272 - var _1P = $$.currpos(); //#31274 - $$.translate(_1P.x, _1P.y); //#31274 - if ($_.width != 0) { //#31279 - $$.scale(($_.width * 72) / $_.x, 1); //#31278 - } //#31278 - $$.newpath(); //#31282 - $$.moveto(-$_.borderleft, -$_.borderbottom); //#31283 - $$.rlineto($f($f($_.x + $_.borderleft) + $_.borderright), 0); //#31284 - $$.rlineto(0, $f($f($_.maxh + $_.borderbottom) + $_.bordertop)); //#31285 - $$.rlineto(-($f($f($_.x + $_.borderleft) + $_.borderright)), 0); //#31286 - $$.rlineto(0, -($f($f($_.maxh + $_.borderbottom) + $_.bordertop))); //#31287 - $$.closepath(); //#31288 - if ($_.showborder) { //#31296 - $$.save(); //#31292 - if ($ne($_.bordercolor, "unset")) { //#31293 - $$.setcolor($_.bordercolor); //#31293 - } //#31293 - $$.setlinewidth($_.borderwidth); //#31294 - $$.stroke(); //#31294 - $$.restore(); //#31295 - } //#31295 - $$.save(); //#31299 - if ($ne($_.barcolor, "unset")) { //#31301 - $$.setcolor($_.barcolor); //#31301 - } //#31301 - var _1n = $_.bars; //#31302 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#31308 - var _1q = $get(_1n, _1o); //#31308 - $k[$j++] = _1q; //#31307 - if (_1q != -1) { //#31306 - $aload($k[--$j]); //#31304 - $$.newpath(); //#31304 - $$.setlinewidth($k[--$j]); //#31304 - var _1t = $k[--$j]; //#31304 - $$.moveto($k[--$j], _1t); //#31304 - $$.rlineto(0, $k[--$j]); //#31304 - $$.stroke(); //#31304 - } else { //#31306 - $j--; //#31306 - } //#31306 - } //#31306 - $$.restore(); //#31309 - if ($ne($_.textcolor, "unset")) { //#31312 - $$.setcolor($_.textcolor); //#31312 - } //#31312 - if ($_.includetext) { //#31369 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31367 - $_.s = 0; //#31315 - $_.fn = ""; //#31315 - var _22 = $_.txt; //#31316 - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#31325 - $forall($get(_22, _23)); //#31317 - var _26 = $k[--$j]; //#31318 - var _27 = $k[--$j]; //#31318 - $k[$j++] = _27; //#31323 - $k[$j++] = _26; //#31323 - if ((_26 != $_.s) || $ne(_27, $_.fn)) { //#31322 - var _2A = $k[--$j]; //#31319 - var _2B = $k[--$j]; //#31319 - $_.s = _2A; //#31319 - $_.fn = _2B; //#31319 - $$.selectfont(_2B, _2A); //#31320 - } else { //#31322 - $j -= 2; //#31322 - } //#31322 - var _2C = $k[--$j]; //#31324 - $$.moveto($k[--$j], _2C); //#31324 - $$.show($k[--$j], 0, 0); //#31324 - } //#31324 - } else { //#31367 - $$.selectfont($_.textfont, $_.textsize); //#31327 - if ($eq($_.alttext, "")) { //#31333 - $k[$j++] = Infinity; //#31329 - var _2I = $_.txt; //#31329 - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#31329 - $forall($get($get(_2I, _2J), 0)); //#31329 - } //#31329 - $_.txt = $a(); //#31329 - $_.tstr = $s($_.txt.length); //#31330 - for (var _2S = 0, _2R = $_.txt.length - 1; _2S <= _2R; _2S += 1) { //#31331 - $put($_.tstr, _2S, $get($_.txt, _2S)); //#31331 - } //#31331 - } else { //#31333 - $_.tstr = $_.alttext; //#31333 - } //#31333 - if ($_.tstr.length == 0) { //#31343 - $k[$j++] = 0; //#31338 - } else { //#31343 - $$.save(); //#31340 - $$.newpath(); //#31341 - $$.moveto(0, 0); //#31341 - $$.charpath("0", false); //#31341 - var _2Y = $$.pathbbox(); //#31341 - $$.restore(); //#31343 - $k[$j++] = _2Y.ury; //#31343 - } //#31343 - $_.textascent = $k[--$j]; //#31352 - var _2b = $$.stringwidth($_.tstr); //#31353 - $_.textwidth = $f(_2b.w + (($_.tstr.length - 1) * $_.textgaps)); //#31353 - $_.textxpos = $f($_.textxoffset + ($f($_.x - $_.textwidth) / 2)); //#31355 - if ($eq($_.textxalign, "left")) { //#31356 - $_.textxpos = $_.textxoffset; //#31356 - } //#31356 - if ($eq($_.textxalign, "right")) { //#31357 - $_.textxpos = $f($f($_.x - $_.textxoffset) - $_.textwidth); //#31357 - } //#31357 - if ($eq($_.textxalign, "offleft")) { //#31358 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31358 - } //#31358 - if ($eq($_.textxalign, "offright")) { //#31359 - $_.textxpos = $f($_.x + $_.textxoffset); //#31359 - } //#31359 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.x)) { //#31363 - $_.textxpos = 0; //#31361 - $_.textgaps = $f($_.x - $_.textwidth) / ($_.tstr.length - 1); //#31362 - } //#31362 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31364 - if ($eq($_.textyalign, "above")) { //#31365 - $_.textypos = $f($f($_.textyoffset + $_.maxh) + 1); //#31365 - } //#31365 - if ($eq($_.textyalign, "center")) { //#31366 - $_.textypos = $f($_.textyoffset + ($f($_.maxh - $_.textascent) / 2)); //#31366 - } //#31366 - $$.moveto($_.textxpos, $_.textypos); //#31367 - $$.show($_.tstr, $_.textgaps, 0); //#31367 - } //#31367 - } //#31367 - if ($_.guardwhitespace) { //#31382 - $$.selectfont("OCR-B", $_.guardheight * 2); //#31373 - if ($_.guardleftpos != 0) { //#31377 - $$.moveto($f((-$_.guardleftpos) - 1), $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.5)); //#31375 - $$.show("<", 0, 0); //#31376 - } //#31376 - if ($_.guardrightpos != 0) { //#31381 - $$.moveto($f(($f($f($_.guardrightpos + $_.x) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.5)); //#31379 - $$.show(">", 0, 0); //#31380 - } //#31380 - } //#31380 - $$.restore(); //#31384 - $_ = Object.getPrototypeOf($_); //#31386 -} - + if ($_.bwipjs_dontdraw) { //#31533 + return; //#31533 + } //#31533 + $_ = Object.create($_); //#31534 + $_.sbs = $a([]); //#31539 + $_.bhs = $a([]); //#31540 + $_.bbs = $a([]); //#31541 + $_.txt = $a([]); //#31542 + $_.barcolor = "unset"; //#31543 + $_.includetext = false; //#31544 + $_.textcolor = "unset"; //#31545 + $_.textxalign = "unset"; //#31546 + $_.textyalign = "unset"; //#31547 + $_.textfont = "OCR-B"; //#31548 + $_.textsize = 10; //#31549 + $_.textxoffset = 0; //#31550 + $_.textyoffset = 0; //#31551 + $_.textgaps = 0; //#31552 + $_.alttext = ""; //#31553 + $_.bordercolor = "unset"; //#31554 + $_.backgroundcolor = "unset"; //#31555 + $_.inkspread = 0; //#31556 + $_.width = 0; //#31557 + $_.barratio = 1; //#31558 + $_.spaceratio = 1; //#31559 + $_.showborder = false; //#31560 + $_.showbearer = false; //#31561 + $_.borderleft = 10; //#31562 + $_.borderright = 10; //#31563 + $_.bordertop = 1; //#31564 + $_.borderbottom = 1; //#31565 + $_.borderwidth = 0.5; //#31566 + $_.guardwhitespace = false; //#31567 + $_.guardleftpos = 0; //#31568 + $_.guardleftypos = 0; //#31569 + $_.guardrightpos = 0; //#31570 + $_.guardrightypos = 0; //#31571 + $_.guardwidth = 7; //#31572 + $_.guardheight = 7; //#31573 + $forall($k[--$j], function() { //#31575 + var _6 = $k[--$j]; //#31575 + $_[$k[--$j]] = _6; //#31575 + }); //#31575 + $k[$j++] = $_.opt; //#31576 + delete $_['opt']; //#31576 + $k[$j++] = $_; //#31576 + bwipp_processoptions(); //#31576 + $j--; //#31576 + if ($_.textsize <= 0) { //#31580 + $k[$j++] = 'bwipp.renlinearBadTextsize#31579'; //#31579 + $k[$j++] = "The font size must be greater than zero"; //#31579 + bwipp_raiseerror(); //#31579 + } //#31579 + $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31583 + $_.pixx = 0; //#31584 + $_.pixy = 0; //#31584 + for (var _E = 0, _D = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _E <= _D; _E += 1) { //#31603 + $_.i = _E; //#31586 + if (($_.i % 2) == 0) { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31588 + if ($get($_.sbs, $_.i) != 0) { //#31597 + $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31590 + $_.c = $f(($_.d / 2) + $_.pixx); //#31591 + $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31592 + $_.w = $f($_.d - $_.inkspread); //#31593 + $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31594 + if ($f($_.h + $_.y) > $_.pixy) { //#31595 + $_.pixy = $f($_.h + $_.y); //#31595 + } //#31595 + } else { //#31597 + $put($_.bars, ~~($_.i / 2), -1); //#31597 + } //#31597 + } else { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31600 + } //#31600 + $_.pixx = $f($_.pixx + $_.d); //#31602 + } //#31602 + $$.save(); //#31605 + var _t = $$.currpos(); //#31607 + $$.translate(_t.x, _t.y); //#31607 + if ($_.width != 0) { //#31612 + $$.scale(($_.width * 72) / $_.pixx, 1); //#31611 + } //#31611 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31622 + $_.tr = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31623 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31624 + $_.br = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31625 + if ($_.showbearer) { //#31650 + $$.save(); //#31627 + $$.newpath(); //#31628 + $aload($_.bl); //#31629 + var _1N = $k[--$j]; //#31629 + $$.moveto($k[--$j], _1N); //#31629 + $aload($_.br); //#31629 + var _1Q = $k[--$j]; //#31629 + $$.lineto($k[--$j], _1Q); //#31629 + $aload($_.tl); //#31630 + var _1T = $k[--$j]; //#31630 + $$.moveto($k[--$j], _1T); //#31630 + $aload($_.tr); //#31630 + var _1W = $k[--$j]; //#31630 + $$.lineto($k[--$j], _1W); //#31630 + if ($ne($_.bordercolor, "unset")) { //#31631 + $$.setcolor($_.bordercolor); //#31631 + } //#31631 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#31632 + $$.stroke(); //#31632 + $$.restore(); //#31633 + } else { //#31650 + if ($_.showborder) { //#31651 + $$.save(); //#31646 + $$.newpath(); //#31647 + $aload($_.bl); //#31647 + var _1e = $k[--$j]; //#31647 + $$.moveto($k[--$j], _1e); //#31647 + var _1j = $a([$_.br, $_.tr, $_.tl]); //#31647 + for (var _1k = 0, _1l = _1j.length; _1k < _1l; _1k++) { //#31647 + $aload($get(_1j, _1k)); //#31647 + var _1n = $k[--$j]; //#31647 + $$.lineto($k[--$j], _1n); //#31647 + } //#31647 + $$.closepath(); //#31647 + if ($ne($_.bordercolor, "unset")) { //#31648 + $$.setcolor($_.bordercolor); //#31648 + } //#31648 + $$.setlinewidth($_.borderwidth); //#31649 + $$.stroke(); //#31649 + $$.restore(); //#31650 + } //#31650 + } //#31650 + $$.save(); //#31654 + if ($ne($_.barcolor, "unset")) { //#31656 + $$.setcolor($_.barcolor); //#31656 + } //#31656 + var _1u = $_.bars; //#31657 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#31663 + var _1x = $get(_1u, _1v); //#31663 + $k[$j++] = _1x; //#31662 + if (_1x != -1) { //#31661 + $aload($k[--$j]); //#31659 + $$.newpath(); //#31659 + $$.setlinewidth($k[--$j]); //#31659 + var _20 = $k[--$j]; //#31659 + $$.moveto($k[--$j], _20); //#31659 + $$.rlineto(0, $k[--$j]); //#31659 + $$.stroke(); //#31659 + } else { //#31661 + $j--; //#31661 + } //#31661 + } //#31661 + $$.restore(); //#31664 + if ($ne($_.textcolor, "unset")) { //#31667 + $$.setcolor($_.textcolor); //#31667 + } //#31667 + if ($_.includetext) { //#31724 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31722 + $_.s = 0; //#31670 + $_.fn = ""; //#31670 + var _29 = $_.txt; //#31671 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#31680 + $forall($get(_29, _2A)); //#31672 + var _2D = $k[--$j]; //#31673 + var _2E = $k[--$j]; //#31673 + $k[$j++] = _2E; //#31678 + $k[$j++] = _2D; //#31678 + if ((_2D != $_.s) || $ne(_2E, $_.fn)) { //#31677 + var _2H = $k[--$j]; //#31674 + var _2I = $k[--$j]; //#31674 + $_.s = _2H; //#31674 + $_.fn = _2I; //#31674 + $$.selectfont(_2I, _2H); //#31675 + } else { //#31677 + $j -= 2; //#31677 + } //#31677 + var _2J = $k[--$j]; //#31679 + $$.moveto($k[--$j], _2J); //#31679 + $$.show($k[--$j], 0, 0); //#31679 + } //#31679 + } else { //#31722 + $$.selectfont($_.textfont, $_.textsize); //#31682 + if ($eq($_.alttext, "")) { //#31688 + $k[$j++] = Infinity; //#31684 + var _2P = $_.txt; //#31684 + for (var _2Q = 0, _2R = _2P.length; _2Q < _2R; _2Q++) { //#31684 + $forall($get($get(_2P, _2Q), 0)); //#31684 + } //#31684 + $_.txt = $a(); //#31684 + $_.tstr = $s($_.txt.length); //#31685 + for (var _2Z = 0, _2Y = $_.txt.length - 1; _2Z <= _2Y; _2Z += 1) { //#31686 + $put($_.tstr, _2Z, $get($_.txt, _2Z)); //#31686 + } //#31686 + } else { //#31688 + $_.tstr = $_.alttext; //#31688 + } //#31688 + if ($_.tstr.length == 0) { //#31698 + $k[$j++] = 0; //#31693 + } else { //#31698 + $$.save(); //#31695 + $$.newpath(); //#31696 + $$.moveto(0, 0); //#31696 + $$.charpath("0", false); //#31696 + var _2f = $$.pathbbox(); //#31696 + $$.restore(); //#31698 + $k[$j++] = _2f.ury; //#31698 + } //#31698 + $_.textascent = $k[--$j]; //#31707 + var _2i = $$.stringwidth($_.tstr); //#31708 + $_.textwidth = $f(_2i.w + (($_.tstr.length - 1) * $_.textgaps)); //#31708 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#31710 + if ($eq($_.textxalign, "left")) { //#31711 + $_.textxpos = $_.textxoffset; //#31711 + } //#31711 + if ($eq($_.textxalign, "right")) { //#31712 + $_.textxpos = $f($f($_.pixx - $_.textxoffset) - $_.textwidth); //#31712 + } //#31712 + if ($eq($_.textxalign, "offleft")) { //#31713 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31713 + } //#31713 + if ($eq($_.textxalign, "offright")) { //#31714 + $_.textxpos = $f($_.pixx + $_.textxoffset); //#31714 + } //#31714 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#31718 + $_.textxpos = 0; //#31716 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#31717 + } //#31717 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31719 + if ($eq($_.textyalign, "above")) { //#31720 + $_.textypos = $f($f($_.textyoffset + $_.pixy) + 1); //#31720 + } //#31720 + if ($eq($_.textyalign, "center")) { //#31721 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#31721 + } //#31721 + $$.moveto($_.textxpos, $_.textypos); //#31722 + $$.show($_.tstr, $_.textgaps, 0); //#31722 + } //#31722 + } //#31722 + if ($_.guardwhitespace) { //#31737 + $$.selectfont("OCR-B", $_.guardheight * 2); //#31728 + if ($_.guardleftpos != 0) { //#31732 + $$.moveto((-$_.guardleftpos) - 2, $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.25)); //#31730 + $$.show("<", 0, 0); //#31731 + } //#31731 + if ($_.guardrightpos != 0) { //#31736 + $$.moveto($f(($f($f($_.guardrightpos + $_.pixx) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.25)); //#31734 + $$.show(">", 0, 0); //#31735 + } //#31735 + } //#31735 + $$.restore(); //#31739 + $_ = Object.getPrototypeOf($_); //#31741 +} //bwipp_renlinear function bwipp_renmaximatrix() { - if ($_.bwipjs_dontdraw) { //#31404 - return; //#31404 - } //#31404 - $_ = Object.create($_); //#31406 - $_.args = $k[--$j]; //#31408 - $_.barcolor = "unset"; //#31411 - $_.backgroundcolor = "unset"; //#31412 - $forall($_.args, function() { //#31415 - var _3 = $k[--$j]; //#31415 - $_[$k[--$j]] = _3; //#31415 - }); //#31415 - var _5 = $_.opt; //#31416 - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31416 - var _6 = _9.next().value; //#31416 - $_[_6] = _5.get(_6); //#31416 - } //#31416 - $_.barcolor = "" + $_.barcolor; //#31418 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31419 - $$.save(); //#31421 - if ($ne($_.barcolor, "unset")) { //#31423 - $$.setcolor($_.barcolor); //#31423 - } //#31423 - $$.maxicode($_.pixs); //#31424 - $$.restore(); //#31426 - $_ = Object.getPrototypeOf($_); //#31428 -} + if ($_.bwipjs_dontdraw) { //#31759 + return; //#31759 + } //#31759 + $_ = Object.create($_); //#31761 + $_.args = $k[--$j]; //#31763 + $_.barcolor = "unset"; //#31766 + $_.backgroundcolor = "unset"; //#31767 + $forall($_.args, function() { //#31770 + var _3 = $k[--$j]; //#31770 + $_[$k[--$j]] = _3; //#31770 + }); //#31770 + var _5 = $_.opt; //#31771 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31771 + var _6 = _9.next().value; //#31771 + $_[_6] = _5.get(_6); //#31771 + } //#31771 + $_.barcolor = "" + $_.barcolor; //#31773 + $_.backgroundcolor = "" + $_.backgroundcolor; //#31774 + $$.save(); //#31776 + if ($ne($_.barcolor, "unset")) { //#31778 + $$.setcolor($_.barcolor); //#31778 + } //#31778 + $$.maxicode($_.pixs); //#31779 + $$.restore(); //#31781 + $_ = Object.getPrototypeOf($_); //#31783 +} //bwipp_renmaximatrix // bwip-js/barcode-ftr.js // // This code is injected below the cross-compiled barcode.js. @@ -40047,7 +40551,7 @@ function bwipp_lookup(symbol) { } throw new Error("bwipp.unknownEncoder: unknown encoder name: " + symbol); } -var BWIPP_VERSION = '2023-04-03'; +var BWIPP_VERSION = '2024-01-03'; // file : bwipjs.js // // Graphics-context interface to the BWIPP cross-compiled code @@ -40058,141 +40562,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface - - this.reset(); - - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface + + this.reset(); + + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -40203,24 +40707,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -40229,452 +40733,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; - - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + var minx = this.minx; + var maxy = this.maxy; + + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -40694,74 +41198,74 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); - - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); + + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; return BWIPJS; -})(); // BWIPJS closure +})(); // BWIPJS closure // drawing-builtin.js // // The aliased (except the fonts) graphics used by drawing-canvas.js and @@ -40772,21 +41276,21 @@ return BWIPJS; // For the methods that take a color `rgb` parameter, the value is always a // string with format RRGGBB. function DrawingBuiltin() { - var floor = Math.floor; + var floor = Math.floor; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map var gs_xyclip; // clip region map (similar to xymap) - return { + return { // setopts() is called after the options are fixed-up/normalized, // but before calling into BWIPP. // This method allows omitting the options in the constructor call. @@ -40795,243 +41299,243 @@ function DrawingBuiltin() { opts = options; }, - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { // swissqrcode requires clipping and drawing that are not scaled to the // the barcode module size. if (opts.bcid == 'swissqrcode') { return [ sx, sy ]; } else { - return [ (sx|0)||1, (sy|0)||1 ]; + return [ (sx|0)||1, (sy|0)||1 ]; + } + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } + } + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; + + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } + + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; + + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; + }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half + } else { + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; + } + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -41056,196 +41560,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -41258,18 +41762,18 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } - - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + } + + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } // drawing-canvas.js // @@ -41280,13 +41784,13 @@ function DrawingCanvas(canvas, maybe) { canvas = maybe; } - var img; - var ctx = canvas.getContext('2d', { willReadFrequently:true }); - var drawing = DrawingBuiltin(); + var img; + var ctx = canvas.getContext('2d', { willReadFrequently:true }); + var drawing = DrawingBuiltin(); - // Provide our specializations for the builtin drawing - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -41296,34 +41800,34 @@ function DrawingCanvas(canvas, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; + return drawing; - // Called by DrawingBuiltin.init() to get the ARGB bitmap for rendering. - function image(width, height) { - canvas.width = width; - canvas.height = height; + // Called by DrawingBuiltin.init() to get the ARGB bitmap for rendering. + function image(width, height) { + canvas.width = width; + canvas.height = height; - // Set background - ctx.setTransform(1, 0, 0, 1, 0, 0); - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - ctx.fillStyle = '#' + opts.backgroundcolor; - ctx.fillRect(0, 0, width, height); - } else { - ctx.clearRect(0, 0, width, height); - } + // Set background + ctx.setTransform(1, 0, 0, 1, 0, 0); + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + ctx.fillStyle = '#' + opts.backgroundcolor; + ctx.fillRect(0, 0, width, height); + } else { + ctx.clearRect(0, 0, width, height); + } - // Prepare the bitmap - img = ctx.getImageData(0, 0, width, height); + // Prepare the bitmap + img = ctx.getImageData(0, 0, width, height); - // The return value is designed for both canvas pure-RGBA and PNG RGBA - return { buffer:img.data, ispng:false }; - } + // The return value is designed for both canvas pure-RGBA and PNG RGBA + return { buffer:img.data, ispng:false }; + } - function end() { - ctx.putImageData(img, 0, 0); + function end() { + ctx.putImageData(img, 0, 0); return canvas; - } + } } // drawing-svg.js // @@ -41347,7 +41851,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -41514,8 +42018,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -41524,23 +42028,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -41593,10 +42097,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + @@ -41796,7 +42298,7 @@ function LoadFont() { // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -41825,26 +42327,26 @@ function LoadFont() { var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -41853,11 +42355,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -41893,7 +42395,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -41901,9 +42403,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -41984,7 +42486,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -42007,7 +42509,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -42018,7 +42520,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -42063,13 +42565,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -42080,9 +42582,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -42091,7 +42593,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -42129,7 +42631,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -42173,14 +42675,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -42189,7 +42691,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -42211,22 +42713,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -42239,7 +42741,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -42288,10 +42790,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -42303,14 +42805,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -42318,22 +42820,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -42395,8 +42897,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -42422,7 +42924,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -42431,13 +42933,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -42489,8 +42991,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -42499,16 +43001,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -42532,23 +43034,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -42567,12 +43069,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -42624,11 +43126,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -42687,7 +43189,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -42698,8 +43200,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -42722,7 +43224,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -42737,8 +43239,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -42769,7 +43271,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -42780,7 +43282,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -42822,7 +43324,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -42831,7 +43333,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -42866,7 +43368,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -42950,7 +43452,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -42979,18 +43481,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -43000,15 +43502,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -43022,16 +43524,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -43043,27 +43545,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -43071,11 +43573,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -43083,21 +43585,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -43144,11 +43646,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -43168,7 +43670,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -43199,18 +43701,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -43245,55 +43747,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -43326,9 +43828,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -43383,8 +43885,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -43426,9 +43928,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -43438,7 +43940,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -43448,42 +43950,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -43491,48 +43993,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -43542,14 +44044,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -43558,7 +44060,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -43569,7 +44071,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -43578,7 +44080,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -43591,107 +44093,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/dist/bwip-js.mjs b/dist/bwip-js.mjs index 599b9937..c0a3c616 100644 --- a/dist/bwip-js.mjs +++ b/dist/bwip-js.mjs @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -33,7 +33,7 @@ import { bwipp_auspost,bwipp_azteccode,bwipp_azteccodecompact,bwipp_aztecrune,bwipp_bc412,bwipp_channelcode,bwipp_codablockf,bwipp_code11,bwipp_code128,bwipp_code16k,bwipp_code2of5,bwipp_code32,bwipp_code39,bwipp_code39ext,bwipp_code49,bwipp_code93,bwipp_code93ext,bwipp_codeone,bwipp_coop2of5,bwipp_daft,bwipp_databarexpanded,bwipp_databarexpandedcomposite,bwipp_databarexpandedstacked,bwipp_databarexpandedstackedcomposite,bwipp_databarlimited,bwipp_databarlimitedcomposite,bwipp_databaromni,bwipp_databaromnicomposite,bwipp_databarstacked,bwipp_databarstackedcomposite,bwipp_databarstackedomni,bwipp_databarstackedomnicomposite,bwipp_databartruncated,bwipp_databartruncatedcomposite,bwipp_datalogic2of5,bwipp_datamatrix,bwipp_datamatrixrectangular,bwipp_datamatrixrectangularextension,bwipp_dotcode,bwipp_ean13,bwipp_ean13composite,bwipp_ean14,bwipp_ean2,bwipp_ean5,bwipp_ean8,bwipp_ean8composite,bwipp_flattermarken,bwipp_gs1_128,bwipp_gs1_128composite,bwipp_gs1_cc,bwipp_gs1datamatrix,bwipp_gs1datamatrixrectangular,bwipp_gs1dldatamatrix,bwipp_gs1dlqrcode,bwipp_gs1dotcode,bwipp_gs1northamericancoupon,bwipp_gs1qrcode,bwipp_hanxin,bwipp_hibcazteccode,bwipp_hibccodablockf,bwipp_hibccode128,bwipp_hibccode39,bwipp_hibcdatamatrix,bwipp_hibcdatamatrixrectangular,bwipp_hibcmicropdf417,bwipp_hibcpdf417,bwipp_hibcqrcode,bwipp_iata2of5,bwipp_identcode,bwipp_industrial2of5,bwipp_interleaved2of5,bwipp_isbn,bwipp_ismn,bwipp_issn,bwipp_itf14,bwipp_jabcode,bwipp_japanpost,bwipp_kix,bwipp_leitcode,bwipp_mailmark,bwipp_mands,bwipp_matrix2of5,bwipp_maxicode,bwipp_micropdf417,bwipp_microqrcode,bwipp_msi,bwipp_onecode,bwipp_pdf417,bwipp_pdf417compact,bwipp_pharmacode,bwipp_pharmacode2,bwipp_planet,bwipp_plessey,bwipp_posicode,bwipp_postnet,bwipp_pzn,bwipp_qrcode,bwipp_rationalizedCodabar,bwipp_raw,bwipp_rectangularmicroqrcode,bwipp_royalmail,bwipp_sscc18,bwipp_swissqrcode,bwipp_symbol,bwipp_telepen,bwipp_telepennumeric,bwipp_ultracode,bwipp_upca,bwipp_upcacomposite,bwipp_upce,bwipp_upcecomposite,bwipp_lookup,bwipp_encode,BWIPP_VERSION } from './bwipp.mjs'; // exports.js -const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; +const BWIPJS_VERSION = '4.3.0 (2024-03-12)'; // bwipjs.toCanvas(canvas, options) // bwipjs.toCanvas(options, canvas) @@ -47,11 +47,11 @@ const BWIPJS_VERSION = '4.2.0 (2024-01-02)'; // // Returns the HTMLCanvasElement. function ToCanvas(cvs, opts) { - if (typeof opts == 'string' || opts instanceof HTMLCanvasElement) { + if (typeof opts == 'string' || opts instanceof HTMLCanvasElement) { let tmp = cvs; cvs = opts; opts = tmp; - } + } return _ToAny(bwipp_lookup(opts.bcid), opts, cvs); } // Entry point for the symbol-specific exports @@ -66,7 +66,7 @@ function ToCanvas(cvs, opts) { // 'string` can be either an `id` or query selector returning a single canvas element. function _ToAny(encoder, opts, drawing) { if (typeof opts == 'string') { - var canvas = document.getElementById(opts) || document.querySelector(opts); + var canvas = document.getElementById(opts) || document.querySelector(opts); if (!(canvas instanceof HTMLCanvasElement)) { throw new Error('bwipjs: `' + opts + '`: not a canvas'); } @@ -77,16 +77,16 @@ function _ToAny(encoder, opts, drawing) { opts = drawing; drawing = DrawingCanvas(canvas); } else if (typeof drawing == 'string') { - var canvas = document.getElementById(drawing) || document.querySelector(drawing); + var canvas = document.getElementById(drawing) || document.querySelector(drawing); if (!(canvas instanceof HTMLCanvasElement)) { throw new Error('bwipjs: `' + drawing + '`: not a canvas'); } drawing = DrawingCanvas(canvas); } else if (drawing instanceof HTMLCanvasElement) { drawing = DrawingCanvas(drawing); - } else if (!drawing || typeof drawing != 'object' || !drawing.init) { + } else if (!drawing || typeof drawing != 'object' || !drawing.init) { throw new Error('bwipjs: not a canvas or drawing object'); - } + } return _Render(encoder, opts, drawing); } @@ -101,7 +101,7 @@ function _ToAny(encoder, opts, drawing) { // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -111,18 +111,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; - - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; + + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -150,34 +150,34 @@ function FixupOptions(opts) { } } - return opts; + return opts; - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -193,56 +193,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; - - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); - - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } - - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } - - // Scale the image - bw.scale(scaleX, scaleY); - - // Call into the BWIPP cross-compiled code and render the image. + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; + + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); + + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } + + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } + + // Scale the image + bw.scale(scaleX, scaleY); + + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -254,48 +254,48 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } // file : bwipjs.js // @@ -307,141 +307,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface - - this.reset(); - - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface + + this.reset(); + + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -452,24 +452,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -478,452 +478,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); - - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); + + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; - - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + var minx = this.minx; + var maxy = this.maxy; + + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -943,74 +943,74 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); - - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); + + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; return BWIPJS; -})(); // BWIPJS closure +})(); // BWIPJS closure // drawing-builtin.js // // The aliased (except the fonts) graphics used by drawing-canvas.js and @@ -1021,21 +1021,21 @@ return BWIPJS; // For the methods that take a color `rgb` parameter, the value is always a // string with format RRGGBB. function DrawingBuiltin() { - var floor = Math.floor; + var floor = Math.floor; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map var gs_xyclip; // clip region map (similar to xymap) - return { + return { // setopts() is called after the options are fixed-up/normalized, // but before calling into BWIPP. // This method allows omitting the options in the constructor call. @@ -1044,243 +1044,243 @@ function DrawingBuiltin() { opts = options; }, - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { // swissqrcode requires clipping and drawing that are not scaled to the // the barcode module size. if (opts.bcid == 'swissqrcode') { return [ sx, sy ]; } else { - return [ (sx|0)||1, (sy|0)||1 ]; - } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; + return [ (sx|0)||1, (sy|0)||1 ]; + } + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } + } + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; + + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } + + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; + } + + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; + }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half + } else { + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; + } + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -1305,196 +1305,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -1507,18 +1507,18 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } + } - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } // drawing-canvas.js // @@ -1529,13 +1529,13 @@ function DrawingCanvas(canvas, maybe) { canvas = maybe; } - var img; - var ctx = canvas.getContext('2d', { willReadFrequently:true }); - var drawing = DrawingBuiltin(); + var img; + var ctx = canvas.getContext('2d', { willReadFrequently:true }); + var drawing = DrawingBuiltin(); - // Provide our specializations for the builtin drawing - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -1545,34 +1545,34 @@ function DrawingCanvas(canvas, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; + return drawing; - // Called by DrawingBuiltin.init() to get the ARGB bitmap for rendering. - function image(width, height) { - canvas.width = width; - canvas.height = height; + // Called by DrawingBuiltin.init() to get the ARGB bitmap for rendering. + function image(width, height) { + canvas.width = width; + canvas.height = height; - // Set background - ctx.setTransform(1, 0, 0, 1, 0, 0); - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - ctx.fillStyle = '#' + opts.backgroundcolor; - ctx.fillRect(0, 0, width, height); - } else { - ctx.clearRect(0, 0, width, height); - } + // Set background + ctx.setTransform(1, 0, 0, 1, 0, 0); + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + ctx.fillStyle = '#' + opts.backgroundcolor; + ctx.fillRect(0, 0, width, height); + } else { + ctx.clearRect(0, 0, width, height); + } - // Prepare the bitmap - img = ctx.getImageData(0, 0, width, height); + // Prepare the bitmap + img = ctx.getImageData(0, 0, width, height); - // The return value is designed for both canvas pure-RGBA and PNG RGBA - return { buffer:img.data, ispng:false }; - } + // The return value is designed for both canvas pure-RGBA and PNG RGBA + return { buffer:img.data, ispng:false }; + } - function end() { - ctx.putImageData(img, 0, 0); + function end() { + ctx.putImageData(img, 0, 0); return canvas; - } + } } // drawing-svg.js // @@ -1596,7 +1596,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -1763,8 +1763,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -1773,23 +1773,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += 'M' + transform(pts[0][0], pts[0][1]); + for (var i = 1, n = pts.length; i < n; i++) { + var p = pts[i]; + path += 'L' + transform(p[0], p[1]); + } + path += 'Z'; + } + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -1842,10 +1842,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + @@ -2045,7 +2043,7 @@ function LoadFont() { // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -2074,26 +2072,26 @@ function LoadFont() { var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -2102,11 +2100,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -2142,7 +2140,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -2150,9 +2148,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -2233,7 +2231,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -2256,7 +2254,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -2267,7 +2265,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -2312,13 +2310,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -2329,9 +2327,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -2340,7 +2338,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -2378,7 +2376,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -2422,14 +2420,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -2438,7 +2436,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -2460,22 +2458,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -2488,7 +2486,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -2537,10 +2535,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -2552,14 +2550,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -2567,22 +2565,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -2644,8 +2642,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -2671,7 +2669,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -2680,13 +2678,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -2738,8 +2736,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -2748,16 +2746,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -2781,23 +2779,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -2816,12 +2814,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -2873,11 +2871,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -2936,7 +2934,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -2947,8 +2945,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -2971,7 +2969,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -2986,8 +2984,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -3018,7 +3016,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -3029,7 +3027,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -3071,7 +3069,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -3080,7 +3078,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -3115,7 +3113,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -3199,7 +3197,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -3228,18 +3226,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -3249,15 +3247,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -3271,16 +3269,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -3292,27 +3290,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -3320,11 +3318,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -3332,21 +3330,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -3393,11 +3391,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -3417,7 +3415,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -3448,18 +3446,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -3494,55 +3492,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -3575,9 +3573,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -3632,8 +3630,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -3675,9 +3673,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -3687,7 +3685,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -3697,42 +3695,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -3740,48 +3738,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -3791,14 +3789,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -3807,7 +3805,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -3818,7 +3816,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -3827,7 +3825,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -3840,107 +3838,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/dist/bwipp.mjs b/dist/bwipp.mjs index 84b37767..6fe90eb6 100644 --- a/dist/bwipp.mjs +++ b/dist/bwipp.mjs @@ -1,12 +1,12 @@ // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2011-2024 Mark Warren // // This file contains code automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 -// Copyright (c) 2004-2023 Terry Burton +// Barcode Writer in Pure PostScript - Version 2024-01-03 +// Copyright (c) 2004-2024 Terry Burton // // The MIT License // @@ -34,10 +34,10 @@ // https://github.com/metafloor/bwip-js // // This code was automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 +// Barcode Writer in Pure PostScript - Version 2024-01-03 // // Copyright (c) 2011-2024 Mark Warren -// Copyright (c) 2004-2023 Terry Burton +// Copyright (c) 2004-2024 Terry Burton // // Licensed MIT. See the LICENSE file in the bwip-js root directory. // bwip-js/barcode-hdr.js @@ -51,9 +51,9 @@ var $k = []; // operand stack var $_ = {}; // base of the dictionary stack // Array ctor -// $a() : Build a new array up to the Infinity-marker on the stack. -// $a(arr) : Convert native array to a "view" of the array. -// $a(len) : Create a new array of length `len` +// $a() : Build a new array up to the Infinity-marker on the stack. +// $a(arr) : Convert native array to a "view" of the array. +// $a(len) : Create a new array of length `len` function $a(a) { if (!arguments.length) { for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); @@ -74,7 +74,7 @@ function $a(a) { } // dict ctor -// $d() : look for the Infinity marker on the stack +// $d() : look for the Infinity marker on the stack function $d() { // Build the dictionary in the order the keys/values were pushed so enumeration // occurs in the correct sequence. @@ -105,9 +105,9 @@ function $d() { } // string ctor -// s(number) : create zero-filled string of number-length -// s(string) : make a copy of the string -// s(uint8[]) : make a copy of the string +// s(number) : create zero-filled string of number-length +// s(string) : make a copy of the string +// s(uint8[]) : make a copy of the string // // Returns a Uint8Array-string. function $s(v) { @@ -177,8 +177,8 @@ function $arrcpy(dst, src) { } // cvs operator - convert a value to its string representation -// s : string to store into -// v : any value +// s : string to store into +// v : any value function $cvs(s, v) { var t = typeof v; if (t == 'number' || t == 'boolean' || v === null) { @@ -202,9 +202,9 @@ function $cvi(s) { } // cvrs operator - convert a number to a radix string -// s : string to store into -// n : number -// r : radix +// s : string to store into +// n : number +// r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } @@ -230,8 +230,8 @@ function $cvx(s) { } // get operator -// s : source -// k : key +// s : source +// k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; @@ -249,9 +249,9 @@ function $get(s, k) { } // put operator -// d : dest -// k : key -// v : value +// d : dest +// k : key +// v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; @@ -269,9 +269,9 @@ function $put(d, k, v) { } // getinterval operator -// s : src -// o : offset -// l : length +// s : src +// o : offset +// l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); @@ -287,9 +287,9 @@ function $geti(s, o, l) { } // putinterval operator -// d : dst -// o : offset -// s : src +// d : dst +// o : offset +// s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { if (typeof s == 'string') { @@ -344,14 +344,14 @@ function $type(v) { // filetype // fonttype // gstatetype - // marktype (v === Infinity) + // marktype (v === Infinity) // nametype // savetype } // anchorsearch operator -// string seek anchorsearch suffix seek true %if-found -// string false %if-not-found +// string seek anchorsearch suffix seek true %if-found +// string false %if-not-found function $anchorsearch(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -382,8 +382,8 @@ function $anchorsearch(str, seek) { } // search operator -// string seek search suffix match prefix true %if-found -// string false %if-not-found +// string seek search suffix match prefix true %if-found +// string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -684,7 +684,7 @@ function bwipp_parseinput() { delete $_.fncvals[_E]; //#210 if (!bwipp_parseinput.__225__) { //#225 $_ = Object.create($_); //#225 - $k[$j++] = Infinity; //#223 + $k[$j++] = Infinity; //#214 var _I = $a(['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', "", "", 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US']); //#219 $k[$j++] = 0; //#223 for (var _J = 0, _K = _I.length; _J < _K; _J++) { //#223 @@ -915,13 +915,12 @@ function bwipp_parseinput() { } //#353 $_ = Object.getPrototypeOf($_); //#356 $_ = Object.getPrototypeOf($_); //#358 -} - +} //bwipp_parseinput function bwipp_gs1process() { $_ = Object.create($_); //#383 bwipp_loadctx(bwipp_gs1process) //#385 - if (!bwipp_gs1process.__2289__) { //#2289 - $_ = Object.create($_); //#2289 + if (!bwipp_gs1process.__2299__) { //#2299 + $_ = Object.create($_); //#2299 var _1 = new Map([ ["cset", 'N'], ["min", 18], @@ -964,7544 +963,7804 @@ function bwipp_gs1process() { var _F = $a([_E]); //#412 var _G = $a(["37"]); //#414 var _H = $a([_G]); //#414 - var _I = new Map([ + var _I = $a([_H]); //#414 + var _J = new Map([ ["parts", _F], - ["req", _H] + ["req", _I] ]); //#414 - var _K = new Map([ + var _K = $a([]); //#421 + var _L = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], - ["linters", $a([])] + ["linters", _K] ]); //#421 - var _O = new Map([ - ["parts", $a([_K])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _T = new Map([ + ["parts", $a([_L])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#423 - var _Q = new Map([ + var _V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#430 - var _U = new Map([ - ["parts", $a([_Q])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _d = new Map([ + ["parts", $a([_V])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#432 - var _W = new Map([ + var _f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#439 - var _a = new Map([ - ["parts", $a([_W])], - ["req", $a([$a(["8020"])])] + var _k = new Map([ + ["parts", $a([_f])], + ["req", $a([$a([$a(["8020"])])])] ]); //#441 - var _c = new Map([ + var _m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#448 - var _g = new Map([ - ["parts", $a([_c])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _u = new Map([ + ["parts", $a([_m])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#450 - var _i = new Map([ + var _w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#459 - var _m = new Map([ - ["parts", $a([_i])], - ["req", $a([$a(["01", "02", "255", "8006", "8026"])])] + var _15 = new Map([ + ["parts", $a([_w])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["255"]), $a(["8006"]), $a(["8026"])])])] ]); //#461 - var _o = new Map([ + var _17 = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] ]); //#468 - var _s = new Map([ - ["parts", $a([_o])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1F = new Map([ + ["parts", $a([_17])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#470 - var _u = new Map([ + var _1H = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#477 - var _z = new Map([ - ["parts", $a([_u])], + var _1O = new Map([ + ["parts", $a([_1H])], ["ex", $a(["235"])], - ["req", $a([$a(["01", "8006"])])] + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#480 - var _11 = new Map([ + var _1Q = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#487 - var _15 = new Map([ - ["parts", $a([_11])], - ["req", $a([$a(["01"])])] + var _1V = new Map([ + ["parts", $a([_1Q])], + ["req", $a([$a([$a(["01"])])])] ]); //#489 - var _17 = new Map([ + var _1X = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] ]); //#496 - var _1B = new Map([ - ["parts", $a([_17])], - ["req", $a([$a(["01"])])] + var _1c = new Map([ + ["parts", $a([_1X])], + ["req", $a([$a([$a(["01"])])])] ]); //#498 - var _1D = new Map([ + var _1e = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#505 - var _1H = new Map([ - ["parts", $a([_1D])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1m = new Map([ + ["parts", $a([_1e])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#507 - var _1J = new Map([ + var _1o = new Map([ ["cset", 'N'], ["min", 1], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#515 - var _1N = new Map([ - ["parts", $a([_1J])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1w = new Map([ + ["parts", $a([_1o])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#517 - var _1P = new Map([ + var _1y = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#524 - var _1T = new Map([ - ["parts", $a([_1P])], - ["req", $a([$a(["01"])])] + var _22 = $a([$a([$a(["01"])])]); //#526 + var _23 = new Map([ + ["parts", $a([_1y])], + ["req", _22] ]); //#526 - var _1V = new Map([ + var _25 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#533 - var _1a = new Map([ - ["parts", $a([_1V])], - ["req", $a([$a(["01", "8006"]), $a(["21"])])] + var _2D = new Map([ + ["parts", $a([_25])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["21"])])])] ]); //#535 - var _1c = new Map([ + var _2F = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#542 - var _1g = new Map([ - ["parts", $a([_1c])], - ["req", $a([$a(["01", "8006"])])] + var _2L = new Map([ + ["parts", $a([_2F])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#544 - var _1i = new Map([ + var _2N = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#551 - var _1k = new Map([ + var _2P = new Map([ ["cset", 'X'], ["min", 1], ["max", 17], ["opt", true], ["linters", $a([])] ]); //#552 - var _1n = new Map([ - ["parts", $a([_1i, _1k])], + var _2S = new Map([ + ["parts", $a([_2N, _2P])], ["dlpkey", $a([])] ]); //#554 - var _1p = new Map([ + var _2U = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#561 - var _1t = new Map([ - ["parts", $a([_1p])], - ["req", $a([$a(["414"])])] + var _2Z = new Map([ + ["parts", $a([_2U])], + ["req", $a([$a([$a(["414"])])])] ]); //#563 - var _1v = new Map([ + var _2b = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#570 - var _1x = new Map([ + var _2d = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", true], ["linters", $a([])] ]); //#571 - var _21 = new Map([ - ["parts", $a([_1v, _1x])], + var _2h = new Map([ + ["parts", $a([_2b, _2d])], ["ex", $a(["01", "02", "415", "8006", "8020", "8026"])], ["dlpkey", $a([])] ]); //#574 - var _22 = $a([]); //#581 - var _23 = new Map([ + var _2j = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], - ["linters", _22] + ["linters", $a([])] ]); //#581 - var _27 = new Map([ - ["parts", $a([_23])], - ["req", $a([$a(["01", "02"])])] + var _2p = new Map([ + ["parts", $a([_2j])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#583 - var _29 = new Map([ + var _2r = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#590 - var _2E = new Map([ - ["parts", $a([_29])], + var _2y = new Map([ + ["parts", $a([_2r])], ["ex", $a(["310n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#593 - var _2G = new Map([ + var _30 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#605 - var _2L = new Map([ - ["parts", $a([_2G])], + var _37 = new Map([ + ["parts", $a([_30])], ["ex", $a(["311n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#608 - var _2N = new Map([ + var _39 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#620 - var _2S = new Map([ - ["parts", $a([_2N])], + var _3G = new Map([ + ["parts", $a([_39])], ["ex", $a(["312n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#623 - var _2U = new Map([ + var _3I = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#635 - var _2Z = new Map([ - ["parts", $a([_2U])], + var _3P = new Map([ + ["parts", $a([_3I])], ["ex", $a(["313n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#638 - var _2b = new Map([ + var _3R = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#650 - var _2g = new Map([ - ["parts", $a([_2b])], + var _3Y = new Map([ + ["parts", $a([_3R])], ["ex", $a(["314n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#653 - var _2i = new Map([ + var _3a = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#665 - var _2n = new Map([ - ["parts", $a([_2i])], + var _3h = new Map([ + ["parts", $a([_3a])], ["ex", $a(["315n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#668 - var _2p = new Map([ + var _3j = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#680 - var _2u = new Map([ - ["parts", $a([_2p])], + var _3q = new Map([ + ["parts", $a([_3j])], ["ex", $a(["316n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#683 - var _2w = new Map([ + var _3s = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#695 - var _31 = new Map([ - ["parts", $a([_2w])], + var _3z = new Map([ + ["parts", $a([_3s])], ["ex", $a(["320n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#698 - var _33 = new Map([ + var _41 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#710 - var _38 = new Map([ - ["parts", $a([_33])], + var _48 = new Map([ + ["parts", $a([_41])], ["ex", $a(["321n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#713 - var _3A = new Map([ + var _4A = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#725 - var _3F = new Map([ - ["parts", $a([_3A])], + var _4H = new Map([ + ["parts", $a([_4A])], ["ex", $a(["322n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#728 - var _3H = new Map([ + var _4J = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#740 - var _3M = new Map([ - ["parts", $a([_3H])], + var _4Q = new Map([ + ["parts", $a([_4J])], ["ex", $a(["323n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#743 - var _3O = new Map([ + var _4S = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#755 - var _3T = new Map([ - ["parts", $a([_3O])], + var _4Z = new Map([ + ["parts", $a([_4S])], ["ex", $a(["324n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#758 - var _3V = new Map([ + var _4b = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#770 - var _3a = new Map([ - ["parts", $a([_3V])], + var _4i = new Map([ + ["parts", $a([_4b])], ["ex", $a(["325n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#773 - var _3c = new Map([ + var _4k = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#785 - var _3h = new Map([ - ["parts", $a([_3c])], + var _4r = new Map([ + ["parts", $a([_4k])], ["ex", $a(["326n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#788 - var _3j = new Map([ + var _4t = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#800 - var _3o = new Map([ - ["parts", $a([_3j])], + var _50 = new Map([ + ["parts", $a([_4t])], ["ex", $a(["327n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#803 - var _3q = new Map([ + var _52 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#815 - var _3v = new Map([ - ["parts", $a([_3q])], + var _59 = new Map([ + ["parts", $a([_52])], ["ex", $a(["328n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#818 - var _3x = new Map([ + var _5B = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#830 - var _42 = new Map([ - ["parts", $a([_3x])], + var _5I = new Map([ + ["parts", $a([_5B])], ["ex", $a(["329n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#833 - var _44 = new Map([ + var _5K = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#845 - var _49 = new Map([ - ["parts", $a([_44])], + var _5R = new Map([ + ["parts", $a([_5K])], ["ex", $a(["330n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#848 - var _4B = new Map([ + var _5T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#860 - var _4G = new Map([ - ["parts", $a([_4B])], + var _5a = new Map([ + ["parts", $a([_5T])], ["ex", $a(["331n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#863 - var _4I = new Map([ + var _5c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#875 - var _4N = new Map([ - ["parts", $a([_4I])], + var _5j = new Map([ + ["parts", $a([_5c])], ["ex", $a(["332n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#878 - var _4P = new Map([ + var _5l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#890 - var _4U = new Map([ - ["parts", $a([_4P])], + var _5s = new Map([ + ["parts", $a([_5l])], ["ex", $a(["333n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#893 - var _4W = new Map([ + var _5u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#905 - var _4b = new Map([ - ["parts", $a([_4W])], + var _61 = new Map([ + ["parts", $a([_5u])], ["ex", $a(["334n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#908 - var _4d = new Map([ + var _63 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#920 - var _4i = new Map([ - ["parts", $a([_4d])], + var _6A = new Map([ + ["parts", $a([_63])], ["ex", $a(["335n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#923 - var _4k = new Map([ + var _6C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#935 - var _4p = new Map([ - ["parts", $a([_4k])], + var _6J = new Map([ + ["parts", $a([_6C])], ["ex", $a(["336n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#938 - var _4r = new Map([ + var _6L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#950 - var _4w = new Map([ - ["parts", $a([_4r])], + var _6R = new Map([ + ["parts", $a([_6L])], ["ex", $a(["337n"])], - ["req", $a([$a(["01"])])] + ["req", $a([$a([$a(["01"])])])] ]); //#953 - var _4y = new Map([ + var _6T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#965 - var _53 = new Map([ - ["parts", $a([_4y])], + var _6a = new Map([ + ["parts", $a([_6T])], ["ex", $a(["340n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#968 - var _55 = new Map([ + var _6c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#980 - var _5A = new Map([ - ["parts", $a([_55])], + var _6j = new Map([ + ["parts", $a([_6c])], ["ex", $a(["341n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#983 - var _5C = new Map([ + var _6l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#995 - var _5H = new Map([ - ["parts", $a([_5C])], + var _6s = new Map([ + ["parts", $a([_6l])], ["ex", $a(["342n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#998 - var _5J = new Map([ + var _6u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1010 - var _5O = new Map([ - ["parts", $a([_5J])], + var _71 = new Map([ + ["parts", $a([_6u])], ["ex", $a(["343n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1013 - var _5Q = new Map([ + var _73 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1025 - var _5V = new Map([ - ["parts", $a([_5Q])], + var _7A = new Map([ + ["parts", $a([_73])], ["ex", $a(["344n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1028 - var _5X = new Map([ + var _7C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1040 - var _5c = new Map([ - ["parts", $a([_5X])], + var _7J = new Map([ + ["parts", $a([_7C])], ["ex", $a(["345n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1043 - var _5e = new Map([ + var _7L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1055 - var _5j = new Map([ - ["parts", $a([_5e])], + var _7S = new Map([ + ["parts", $a([_7L])], ["ex", $a(["346n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1058 - var _5l = new Map([ + var _7U = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1070 - var _5q = new Map([ - ["parts", $a([_5l])], + var _7b = new Map([ + ["parts", $a([_7U])], ["ex", $a(["347n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1073 - var _5s = new Map([ + var _7d = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1085 - var _5x = new Map([ - ["parts", $a([_5s])], + var _7k = new Map([ + ["parts", $a([_7d])], ["ex", $a(["348n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1088 - var _5z = new Map([ + var _7m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1100 - var _64 = new Map([ - ["parts", $a([_5z])], + var _7t = new Map([ + ["parts", $a([_7m])], ["ex", $a(["349n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1103 - var _66 = new Map([ + var _7v = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1115 - var _6B = new Map([ - ["parts", $a([_66])], + var _82 = new Map([ + ["parts", $a([_7v])], ["ex", $a(["350n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1118 - var _6D = new Map([ + var _84 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1130 - var _6I = new Map([ - ["parts", $a([_6D])], + var _8B = new Map([ + ["parts", $a([_84])], ["ex", $a(["351n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1133 - var _6K = new Map([ + var _8D = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1145 - var _6P = new Map([ - ["parts", $a([_6K])], + var _8K = new Map([ + ["parts", $a([_8D])], ["ex", $a(["352n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1148 - var _6R = new Map([ + var _8M = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1160 - var _6W = new Map([ - ["parts", $a([_6R])], + var _8T = new Map([ + ["parts", $a([_8M])], ["ex", $a(["353n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1163 - var _6Y = new Map([ + var _8V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1175 - var _6d = new Map([ - ["parts", $a([_6Y])], + var _8c = new Map([ + ["parts", $a([_8V])], ["ex", $a(["354n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1178 - var _6f = new Map([ + var _8e = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1190 - var _6k = new Map([ - ["parts", $a([_6f])], + var _8l = new Map([ + ["parts", $a([_8e])], ["ex", $a(["355n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1193 - var _6m = new Map([ + var _8n = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1205 - var _6r = new Map([ - ["parts", $a([_6m])], + var _8u = new Map([ + ["parts", $a([_8n])], ["ex", $a(["356n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1208 - var _6t = new Map([ + var _8w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1220 - var _6y = new Map([ - ["parts", $a([_6t])], + var _93 = new Map([ + ["parts", $a([_8w])], ["ex", $a(["357n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1223 - var _70 = new Map([ + var _95 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1235 - var _75 = new Map([ - ["parts", $a([_70])], + var _9C = new Map([ + ["parts", $a([_95])], ["ex", $a(["360n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1238 - var _77 = new Map([ + var _9E = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1250 - var _7C = new Map([ - ["parts", $a([_77])], + var _9L = new Map([ + ["parts", $a([_9E])], ["ex", $a(["361n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1253 - var _7E = new Map([ + var _9N = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1265 - var _7J = new Map([ - ["parts", $a([_7E])], + var _9U = new Map([ + ["parts", $a([_9N])], ["ex", $a(["362n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1268 - var _7L = new Map([ + var _9W = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1280 - var _7Q = new Map([ - ["parts", $a([_7L])], + var _9d = new Map([ + ["parts", $a([_9W])], ["ex", $a(["363n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1283 - var _7S = new Map([ + var _9f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1295 - var _7X = new Map([ - ["parts", $a([_7S])], + var _9m = new Map([ + ["parts", $a([_9f])], ["ex", $a(["364n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1298 - var _7Z = new Map([ + var _9o = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1310 - var _7e = new Map([ - ["parts", $a([_7Z])], + var _9v = new Map([ + ["parts", $a([_9o])], ["ex", $a(["365n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1313 - var _7g = new Map([ + var _9x = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1325 - var _7l = new Map([ - ["parts", $a([_7g])], + var _A4 = new Map([ + ["parts", $a([_9x])], ["ex", $a(["366n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1328 - var _7n = new Map([ + var _A6 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1340 - var _7s = new Map([ - ["parts", $a([_7n])], + var _AD = new Map([ + ["parts", $a([_A6])], ["ex", $a(["367n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1343 - var _7u = new Map([ + var _AF = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1355 - var _7z = new Map([ - ["parts", $a([_7u])], + var _AM = new Map([ + ["parts", $a([_AF])], ["ex", $a(["368n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1358 - var _81 = new Map([ + var _AO = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1370 - var _86 = new Map([ - ["parts", $a([_81])], + var _AV = new Map([ + ["parts", $a([_AO])], ["ex", $a(["369n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1373 - var _88 = new Map([ + var _AX = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], ["linters", $a([])] ]); //#1385 - var _8D = new Map([ - ["parts", $a([_88])], - ["req", $a([$a(["00"]), $a(["02", "8026"])])] + var _Af = new Map([ + ["parts", $a([_AX])], + ["req", $a([$a([$a(["00"])]), $a([$a(["02"]), $a(["8026"])])])] ]); //#1387 - var _8F = new Map([ + var _Ah = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1394 - var _8K = new Map([ - ["parts", $a([_8F])], + var _Ao = new Map([ + ["parts", $a([_Ah])], ["ex", $a(["390n", "391n", "394n", "8111"])], - ["req", $a([$a(["255", "8020"])])] + ["req", $a([$a([$a(["255"]), $a(["8020"])])])] ]); //#1397 - var _8M = new Map([ + var _Aq = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1413 - var _8O = new Map([ + var _As = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1414 - var _8T = new Map([ - ["parts", $a([_8M, _8O])], + var _Ay = new Map([ + ["parts", $a([_Aq, _As])], ["ex", $a(["391n"])], - ["req", $a([$a(["8020"])])] + ["req", $a([$a([$a(["8020"])])])] ]); //#1417 - var _8V = new Map([ + var _B0 = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1433 - var _8b = new Map([ - ["parts", $a([_8V])], + var _BC = new Map([ + ["parts", $a([_B0])], ["ex", $a(["392n", "393n"])], - ["req", $a([$a(["01"]), $a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["01"])]), $a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1436 - var _8d = new Map([ + var _BE = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1452 - var _8f = new Map([ + var _BG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1453 - var _8k = new Map([ - ["parts", $a([_8d, _8f])], + var _BQ = new Map([ + ["parts", $a([_BE, _BG])], ["ex", $a(["393n"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1456 - var _8m = new Map([ + var _BS = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] ]); //#1472 - var _8r = new Map([ - ["parts", $a([_8m])], + var _BY = new Map([ + ["parts", $a([_BS])], ["ex", $a(["394n", "8111"])], - ["req", $a([$a(["255"])])] + ["req", $a([$a([$a(["255"])])])] ]); //#1475 - var _8t = new Map([ + var _Ba = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1485 - var _8y = new Map([ - ["parts", $a([_8t])], + var _Bk = new Map([ + ["parts", $a([_Ba])], ["ex", $a(["392n", "393n", "395n", "8005"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1488 - var _90 = new Map([ + var _Bm = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1500 - var _92 = new Map([ - ["parts", $a([_90])] + var _Bo = new Map([ + ["parts", $a([_Bm])] ]); //#1500 - var _94 = new Map([ + var _Bq = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] ]); //#1508 - var _97 = new Map([ - ["parts", $a([_94])], + var _Bt = new Map([ + ["parts", $a([_Bq])], ["dlpkey", $a([])] ]); //#1510 - var _99 = new Map([ + var _Bv = new Map([ ["cset", 'N'], ["min", 17], ["max", 17], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1517 - var _9C = new Map([ - ["parts", $a([_99])], + var _By = new Map([ + ["parts", $a([_Bv])], ["dlpkey", $a([])] ]); //#1519 - var _9E = new Map([ + var _C0 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1526 - var _9I = new Map([ - ["parts", $a([_9E])], - ["req", $a([$a(["00"])])] + var _C5 = new Map([ + ["parts", $a([_C0])], + ["req", $a([$a([$a(["00"])])])] ]); //#1528 - var _9K = new Map([ + var _C7 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1535 - var _9M = new Map([ - ["parts", $a([_9K])] + var _C9 = new Map([ + ["parts", $a([_C7])] ]); //#1535 - var _9O = new Map([ + var _CB = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1546 - var _9T = new Map([ - ["parts", $a([_9O])], + var _CG = new Map([ + ["parts", $a([_CB])], ["dlpkey", $a([$a(["254"]), $a(["7040"])])] ]); //#1548 - var _9V = new Map([ + var _CI = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1555 - var _9b = new Map([ - ["parts", $a([_9V])], - ["req", $a([$a(["8020"])])], + var _CP = new Map([ + ["parts", $a([_CI])], + ["req", $a([$a([$a(["8020"])])])], ["dlpkey", $a([$a(["8020"])])] ]); //#1558 - var _9d = new Map([ + var _CR = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1565 - var _9f = new Map([ - ["parts", $a([_9d])] + var _CT = new Map([ + ["parts", $a([_CR])] ]); //#1565 - var _9h = new Map([ + var _CV = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1573 - var _9l = new Map([ - ["parts", $a([_9h])], + var _CZ = new Map([ + ["parts", $a([_CV])], ["dlpkey", $a([$a(["7040"])])] ]); //#1575 - var _9n = new Map([ + var _Cb = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#1582 - var _9q = new Map([ - ["parts", $a([_9n])], + var _Ce = new Map([ + ["parts", $a([_Cb])], ["ex", $a(["421"])] ]); //#1584 - var _9s = new Map([ + var _Cg = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1591 - var _9u = new Map([ + var _Ci = new Map([ ["cset", 'X'], ["min", 1], ["max", 9], ["opt", false], ["linters", $a([])] ]); //#1592 - var _9x = new Map([ - ["parts", $a([_9s, _9u])], + var _Cl = new Map([ + ["parts", $a([_Cg, _Ci])], ["ex", $a(["4307"])] ]); //#1594 - var _9z = new Map([ + var _Cn = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1601 - var _A4 = new Map([ - ["parts", $a([_9z])], + var _Cw = new Map([ + ["parts", $a([_Cn])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#1604 - var _A6 = new Map([ + var _Cy = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1611 - var _AB = new Map([ - ["parts", $a([_A6])], + var _D5 = new Map([ + ["parts", $a([_Cy])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1614 - var _AD = new Map([ + var _D7 = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1621 - var _AI = new Map([ - ["parts", $a([_AD])], + var _DE = new Map([ + ["parts", $a([_D7])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1624 - var _AK = new Map([ + var _DG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1631 - var _AP = new Map([ - ["parts", $a([_AK])], + var _DN = new Map([ + ["parts", $a([_DG])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1634 - var _AR = new Map([ + var _DP = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1641 - var _AV = new Map([ - ["parts", $a([_AR])], - ["req", $a([$a(["01", "02"])])] + var _DV = new Map([ + ["parts", $a([_DP])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1643 - var _AX = new Map([ + var _DX = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] ]); //#1650 - var _Ac = new Map([ - ["parts", $a([_AX])], - ["req", $a([$a(["01", "02"]), $a(["422"])])] + var _Df = new Map([ + ["parts", $a([_DX])], + ["req", $a([$a([$a(["01"]), $a(["02"])]), $a([$a(["422"])])])] ]); //#1652 - var _Ae = new Map([ + var _Dh = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1659 - var _Ai = new Map([ - ["parts", $a([_Ae])], - ["req", $a([$a(["00"])])] + var _Dm = new Map([ + ["parts", $a([_Dh])], + ["req", $a([$a([$a(["00"])])])] ]); //#1661 - var _Ak = new Map([ + var _Do = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1669 - var _Ao = new Map([ - ["parts", $a([_Ak])], - ["req", $a([$a(["00"])])] + var _Dt = new Map([ + ["parts", $a([_Do])], + ["req", $a([$a([$a(["00"])])])] ]); //#1671 - var _Aq = new Map([ + var _Dv = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1678 - var _Au = new Map([ - ["parts", $a([_Aq])], - ["req", $a([$a(["4302"])])] + var _E0 = new Map([ + ["parts", $a([_Dv])], + ["req", $a([$a([$a(["4302"])])])] ]); //#1680 - var _Aw = new Map([ + var _E2 = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1687 - var _B0 = new Map([ - ["parts", $a([_Aw])], - ["req", $a([$a(["00"])])] + var _E7 = new Map([ + ["parts", $a([_E2])], + ["req", $a([$a([$a(["00"])])])] ]); //#1689 - var _B2 = new Map([ + var _E9 = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] ]); //#1698 - var _B6 = new Map([ - ["parts", $a([_B2])], - ["req", $a([$a(["00"])])] + var _EE = new Map([ + ["parts", $a([_E9])], + ["req", $a([$a([$a(["00"])])])] ]); //#1700 - var _B8 = new Map([ + var _EG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1707 - var _BC = new Map([ - ["parts", $a([_B8])], - ["req", $a([$a(["00"])])] + var _EL = new Map([ + ["parts", $a([_EG])], + ["req", $a([$a([$a(["00"])])])] ]); //#1709 - var _BE = new Map([ + var _EN = new Map([ ["cset", 'N'], - ["min", 20], - ["max", 20], + ["min", 10], + ["max", 10], ["opt", false], - ["linters", $a(['lintlatlong'])] + ["linters", $a(['lintlatitude'])] ]); //#1716 - var _BI = new Map([ - ["parts", $a([_BE])], - ["req", $a([$a(["00"])])] - ]); //#1718 - var _BK = new Map([ + var _EP = new Map([ + ["cset", 'N'], + ["min", 10], + ["max", 10], + ["opt", false], + ["linters", $a(['lintlongitude'])] + ]); //#1717 + var _EU = new Map([ + ["parts", $a([_EN, _EP])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1719 + var _EW = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1725 - var _BO = new Map([ - ["parts", $a([_BK])], - ["req", $a([$a(["00"])])] - ]); //#1727 - var _BQ = new Map([ + ]); //#1726 + var _Eb = new Map([ + ["parts", $a([_EW])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1728 + var _Ed = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1735 - var _BU = new Map([ - ["parts", $a([_BQ])], - ["req", $a([$a(["00"])])] - ]); //#1737 - var _BW = new Map([ + ]); //#1736 + var _Ei = new Map([ + ["parts", $a([_Ed])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1738 + var _Ek = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1744 - var _Ba = new Map([ - ["parts", $a([_BW])], - ["req", $a([$a(["4312"])])] - ]); //#1746 - var _Bc = new Map([ + ]); //#1745 + var _Ep = new Map([ + ["parts", $a([_Ek])], + ["req", $a([$a([$a(["4312"])])])] + ]); //#1747 + var _Er = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1753 - var _Bg = new Map([ - ["parts", $a([_Bc])], - ["req", $a([$a(["00"])])] - ]); //#1755 - var _Bi = new Map([ + ]); //#1754 + var _Ew = new Map([ + ["parts", $a([_Er])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1756 + var _Ey = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] - ]); //#1764 - var _Bm = new Map([ - ["parts", $a([_Bi])], - ["req", $a([$a(["00"])])] - ]); //#1766 - var _Bo = new Map([ + ]); //#1765 + var _F3 = new Map([ + ["parts", $a([_Ey])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1767 + var _F5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1773 - var _Bs = new Map([ - ["parts", $a([_Bo])], - ["req", $a([$a(["00"])])] - ]); //#1775 - var _Bu = new Map([ + ]); //#1774 + var _FA = new Map([ + ["parts", $a([_F5])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1776 + var _FC = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1782 - var _By = new Map([ - ["parts", $a([_Bu])], - ["req", $a([$a(["00"])])] - ]); //#1784 - var _C0 = new Map([ + ]); //#1783 + var _FH = new Map([ + ["parts", $a([_FC])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1785 + var _FJ = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1791 - var _C4 = new Map([ - ["parts", $a([_C0])], - ["req", $a([$a(["00"])])] - ]); //#1793 - var _C6 = new Map([ + ]); //#1792 + var _FO = new Map([ + ["parts", $a([_FJ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1794 + var _FQ = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintyesno'])] - ]); //#1800 - var _CA = new Map([ - ["parts", $a([_C6])], - ["req", $a([$a(["00"])])] - ]); //#1802 - var _CC = new Map([ + ]); //#1801 + var _FV = new Map([ + ["parts", $a([_FQ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1803 + var _FX = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] - ]); //#1811 - var _CE = new Map([ + ]); //#1812 + var _FZ = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1812 - var _CI = new Map([ - ["parts", $a([_CC, _CE])], - ["req", $a([$a(["00"])])] - ]); //#1814 - var _CK = new Map([ + ]); //#1813 + var _Fe = new Map([ + ["parts", $a([_FX, _FZ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1815 + var _Fg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1822 - var _CO = new Map([ - ["parts", $a([_CK])], - ["req", $a([$a(["00"])])] - ]); //#1824 - var _CQ = new Map([ + ]); //#1823 + var _Fl = new Map([ + ["parts", $a([_Fg])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1825 + var _Fn = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a([])] - ]); //#1831 - var _CU = new Map([ - ["parts", $a([_CQ])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] - ]); //#1833 - var _CW = new Map([ + ]); //#1832 + var _Fv = new Map([ + ["parts", $a([_Fn])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] + ]); //#1834 + var _Fx = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1840 - var _Ca = new Map([ - ["parts", $a([_CW])], - ["req", $a([$a(["01", "02"])])] - ]); //#1842 - var _Cc = new Map([ + ]); //#1841 + var _G3 = new Map([ + ["parts", $a([_Fx])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1843 + var _G5 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1849 - var _Ce = new Map([ + ]); //#1850 + var _G7 = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1850 - var _Ci = new Map([ - ["parts", $a([_Cc, _Ce])], - ["req", $a([$a(["01", "02"])])] - ]); //#1852 - var _Ck = new Map([ + ]); //#1851 + var _GD = new Map([ + ["parts", $a([_G5, _G7])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1853 + var _GF = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#1859 - var _Cp = new Map([ - ["parts", $a([_Ck])], - ["req", $a([$a(["01"]), $a(["10"])])] - ]); //#1861 - var _Cr = new Map([ + ]); //#1860 + var _GM = new Map([ + ["parts", $a([_GF])], + ["req", $a([$a([$a(["01"])]), $a([$a(["10"])])])] + ]); //#1862 + var _GO = new Map([ ["cset", 'X'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a([])] - ]); //#1868 - var _Cv = new Map([ - ["parts", $a([_Cr])], - ["req", $a([$a(["01", "02"])])] - ]); //#1870 - var _Cx = new Map([ + ]); //#1869 + var _GU = new Map([ + ["parts", $a([_GO])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1871 + var _GW = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1877 - var _D1 = new Map([ - ["parts", $a([_Cx])], - ["req", $a([$a(["01", "02"])])] - ]); //#1879 - var _D3 = new Map([ + ]); //#1878 + var _Gc = new Map([ + ["parts", $a([_GW])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1880 + var _Ge = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1886 - var _D5 = new Map([ + ]); //#1887 + var _Gg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", true], ["linters", $a(['lintyymmdd'])] - ]); //#1887 - var _D9 = new Map([ - ["parts", $a([_D3, _D5])], - ["req", $a([$a(["01", "02"])])] - ]); //#1889 - var _DB = new Map([ + ]); //#1888 + var _Gm = new Map([ + ["parts", $a([_Ge, _Gg])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1890 + var _Go = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] - ]); //#1896 - var _DF = new Map([ - ["parts", $a([_DB])], - ["req", $a([$a(["01", "02"])])] - ]); //#1898 - var _DH = new Map([ + ]); //#1897 + var _Gu = new Map([ + ["parts", $a([_Go])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1899 + var _Gw = new Map([ ["cset", 'X'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#1905 - var _DL = new Map([ - ["parts", $a([_DH])], - ["req", $a([$a(["01", "02"])])] - ]); //#1907 - var _DN = new Map([ + ]); //#1906 + var _H2 = new Map([ + ["parts", $a([_Gw])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1908 + var _H4 = new Map([ ["cset", 'X'], ["min", 1], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#1914 - var _DR = new Map([ - ["parts", $a([_DN])], - ["req", $a([$a(["01", "02"])])] - ]); //#1916 - var _DT = new Map([ + ]); //#1915 + var _HA = new Map([ + ["parts", $a([_H4])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1917 + var _HC = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1923 - var _DV = new Map([ + ]); //#1924 + var _HE = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", true], ["linters", $a(['linthhmm'])] - ]); //#1924 - var _DZ = new Map([ - ["parts", $a([_DT, _DV])], - ["req", $a([$a(["01", "02"])])] - ]); //#1926 - var _Db = new Map([ + ]); //#1925 + var _HK = new Map([ + ["parts", $a([_HC, _HE])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1927 + var _HM = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1933 - var _Dg = new Map([ - ["parts", $a([_Db])], - ["req", $a([$a(["01", "8006"]), $a(["416"])])] - ]); //#1935 - var _Di = new Map([ + ]); //#1934 + var _HU = new Map([ + ["parts", $a([_HM])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["416"])])])] + ]); //#1936 + var _HW = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1942 - var _Dm = new Map([ - ["parts", $a([_Di])], - ["req", $a([$a(["01", "8006"])])] - ]); //#1944 - var _Do = new Map([ + ]); //#1943 + var _Hc = new Map([ + ["parts", $a([_HW])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#1945 + var _He = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1951 - var _Ds = new Map([ - ["parts", $a([_Do])], - ["req", $a([$a(["7021"])])] - ]); //#1953 - var _Du = new Map([ + ]); //#1952 + var _Hj = new Map([ + ["parts", $a([_He])], + ["req", $a([$a([$a(["7021"])])])] + ]); //#1954 + var _Hl = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#1960 - var _Dw = new Map([ - ["parts", $a([_Du])] - ]); //#1960 - var _Dy = new Map([ + ]); //#1961 + var _Hn = new Map([ + ["parts", $a([_Hl])] + ]); //#1961 + var _Hp = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166999'])] - ]); //#1968 - var _E0 = new Map([ + ]); //#1969 + var _Hr = new Map([ ["cset", 'X'], ["min", 1], ["max", 27], ["opt", false], ["linters", $a([])] - ]); //#1969 - var _E4 = new Map([ - ["parts", $a([_Dy, _E0])], - ["req", $a([$a(["01", "02"])])] - ]); //#1971 - var _E6 = new Map([ + ]); //#1970 + var _Hx = new Map([ + ["parts", $a([_Hp, _Hr])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1972 + var _Hz = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1987 - var _E8 = new Map([ + ]); //#1988 + var _I1 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1988 - var _EA = new Map([ + ]); //#1989 + var _I3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1989 - var _EC = new Map([ + ]); //#1990 + var _I5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintimporteridx'])] - ]); //#1990 - var _EE = new Map([ - ["parts", $a([_E6, _E8, _EA, _EC])] - ]); //#1990 - var _EG = new Map([ + ]); //#1991 + var _I7 = new Map([ + ["parts", $a([_Hz, _I1, _I3, _I5])] + ]); //#1991 + var _I9 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1998 - var _EK = new Map([ - ["parts", $a([_EG])], - ["req", $a([$a(["01"])])] - ]); //#2000 - var _EM = new Map([ + ]); //#1999 + var _IE = new Map([ + ["parts", $a([_I9])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2001 + var _IG = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#2012 - var _EO = new Map([ + ]); //#2013 + var _II = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] - ]); //#2013 - var _ES = new Map([ - ["parts", $a([_EM, _EO])], - ["req", $a([$a(["01", "8004"])])] - ]); //#2015 - var _EU = new Map([ + ]); //#2014 + var _IO = new Map([ + ["parts", $a([_IG, _II])], + ["req", $a([$a([$a(["01"]), $a(["8004"])])])] + ]); //#2016 + var _IQ = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2031 - var _EY = new Map([ - ["parts", $a([_EU])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2033 - var _Ea = new Map([ + ]); //#2032 + var _IW = new Map([ + ["parts", $a([_IQ])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2034 + var _IY = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintmediatype'])] - ]); //#2040 - var _Ee = new Map([ - ["parts", $a([_Ea])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2042 - var _Eg = new Map([ + ]); //#2041 + var _Ie = new Map([ + ["parts", $a([_IY])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2043 + var _Ig = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2049 - var _Ek = new Map([ - ["parts", $a([_Eg])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2051 - var _Em = new Map([ + ]); //#2050 + var _Im = new Map([ + ["parts", $a([_Ig])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2052 + var _Io = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2058 - var _Eo = new Map([ + ]); //#2059 + var _Iq = new Map([ ["cset", 'N'], ["min", 5], ["max", 5], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2059 - var _Eq = new Map([ + ]); //#2060 + var _Is = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2060 - var _Es = new Map([ + ]); //#2061 + var _Iu = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintwinding'])] - ]); //#2061 - var _Eu = new Map([ + ]); //#2062 + var _Iw = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#2062 - var _Ey = new Map([ - ["parts", $a([_Em, _Eo, _Eq, _Es, _Eu])], - ["req", $a([$a(["01"])])] - ]); //#2064 - var _F0 = new Map([ + ]); //#2063 + var _J1 = new Map([ + ["parts", $a([_Io, _Iq, _Is, _Iu, _Iw])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2065 + var _J3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2071 - var _F2 = new Map([ - ["parts", $a([_F0])] - ]); //#2071 - var _F4 = new Map([ + ]); //#2072 + var _J5 = new Map([ + ["parts", $a([_J3])] + ]); //#2072 + var _J7 = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintzero'])] - ]); //#2079 - var _F6 = new Map([ + ]); //#2080 + var _J9 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2080 - var _F8 = new Map([ + ]); //#2081 + var _JB = new Map([ ["cset", 'X'], ["min", 1], ["max", 16], ["opt", true], ["linters", $a([])] - ]); //#2081 - var _FB = new Map([ - ["parts", $a([_F4, _F6, _F8])], + ]); //#2082 + var _JE = new Map([ + ["parts", $a([_J7, _J9, _JB])], ["dlpkey", $a([])] - ]); //#2083 - var _FD = new Map([ + ]); //#2084 + var _JG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2090 - var _FH = new Map([ - ["parts", $a([_FD])], + ]); //#2091 + var _JK = new Map([ + ["parts", $a([_JG])], ["dlpkey", $a([$a(["7040"])])] - ]); //#2092 - var _FJ = new Map([ + ]); //#2093 + var _JM = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] - ]); //#2099 - var _FN = new Map([ - ["parts", $a([_FJ])], - ["req", $a([$a(["01", "02"])])] - ]); //#2101 - var _FP = new Map([ + ]); //#2100 + var _JS = new Map([ + ["parts", $a([_JM])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2102 + var _JU = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2108 - var _FR = new Map([ + ]); //#2109 + var _JW = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2109 - var _FW = new Map([ - ["parts", $a([_FP, _FR])], + ]); //#2110 + var _Jb = new Map([ + ["parts", $a([_JU, _JW])], ["ex", $a(["01", "37"])], ["dlpkey", $a([$a(["22", "10", "21"])])] - ]); //#2112 - var _FY = new Map([ + ]); //#2113 + var _Jd = new Map([ ["cset", 'X'], ["min", 1], ["max", 34], ["opt", false], ["linters", $a(['lintiban'])] - ]); //#2119 - var _Fc = new Map([ - ["parts", $a([_FY])], - ["req", $a([$a(["415"])])] - ]); //#2121 - var _Fe = new Map([ + ]); //#2120 + var _Ji = new Map([ + ["parts", $a([_Jd])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2122 + var _Jk = new Map([ ["cset", 'N'], ["min", 8], ["max", 8], ["opt", false], ["linters", $a(['lintyymmddhh'])] - ]); //#2128 - var _Fg = new Map([ + ]); //#2129 + var _Jm = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", true], ["linters", $a(['lintmmoptss'])] - ]); //#2129 - var _Fk = new Map([ - ["parts", $a([_Fe, _Fg])], - ["req", $a([$a(["01", "02"])])] - ]); //#2131 - var _Fm = new Map([ + ]); //#2130 + var _Js = new Map([ + ["parts", $a([_Jk, _Jm])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2132 + var _Ju = new Map([ ["cset", 'X'], ["min", 1], ["max", 50], ["opt", false], ["linters", $a([])] - ]); //#2138 - var _Fq = new Map([ - ["parts", $a([_Fm])], - ["req", $a([$a(["00", "01"])])] - ]); //#2140 - var _Fs = new Map([ + ]); //#2139 + var _K0 = new Map([ + ["parts", $a([_Ju])], + ["req", $a([$a([$a(["00"]), $a(["01"])])])] + ]); //#2141 + var _K2 = new Map([ ["cset", 'Y'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2147 - var _Fw = new Map([ - ["parts", $a([_Fs])], + ]); //#2148 + var _K6 = new Map([ + ["parts", $a([_K2])], ["dlpkey", $a([$a(["8011"])])] - ]); //#2149 - var _Fy = new Map([ + ]); //#2150 + var _K8 = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a(['lintnozeroprefix'])] - ]); //#2156 - var _G2 = new Map([ - ["parts", $a([_Fy])], - ["req", $a([$a(["8010"])])] - ]); //#2158 - var _G4 = new Map([ + ]); //#2157 + var _KD = new Map([ + ["parts", $a([_K8])], + ["req", $a([$a([$a(["8010"])])])] + ]); //#2159 + var _KF = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2165 - var _G8 = new Map([ - ["parts", $a([_G4])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2167 - var _GA = new Map([ + ]); //#2166 + var _KL = new Map([ + ["parts", $a([_KF])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2168 + var _KN = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a(['lintcsumalpha', 'lintkey'])] - ]); //#2174 - var _GD = new Map([ - ["parts", $a([_GA])], + ]); //#2175 + var _KQ = new Map([ + ["parts", $a([_KN])], ["dlpkey", $a([])] - ]); //#2176 - var _GF = new Map([ + ]); //#2177 + var _KS = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2183 - var _GK = new Map([ - ["parts", $a([_GF])], + ]); //#2184 + var _KX = new Map([ + ["parts", $a([_KS])], ["ex", $a(["8018"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2186 - var _GM = new Map([ + ]); //#2187 + var _KZ = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2193 - var _GR = new Map([ - ["parts", $a([_GM])], + ]); //#2194 + var _Ke = new Map([ + ["parts", $a([_KZ])], ["ex", $a(["8017"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2196 - var _GT = new Map([ + ]); //#2197 + var _Kg = new Map([ ["cset", 'N'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#2203 - var _GX = new Map([ - ["parts", $a([_GT])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2205 - var _GZ = new Map([ + ]); //#2204 + var _Km = new Map([ + ["parts", $a([_Kg])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2206 + var _Ko = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2212 - var _Gd = new Map([ - ["parts", $a([_GZ])], - ["req", $a([$a(["415"])])] - ]); //#2214 - var _Gf = new Map([ + ]); //#2213 + var _Kt = new Map([ + ["parts", $a([_Ko])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2215 + var _Kv = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2221 - var _Gh = new Map([ + ]); //#2222 + var _Kx = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2222 - var _Gm = new Map([ - ["parts", $a([_Gf, _Gh])], + ]); //#2223 + var _L3 = new Map([ + ["parts", $a([_Kv, _Kx])], ["ex", $a(["02", "8006"])], - ["req", $a([$a(["37"])])] - ]); //#2225 - var _Go = new Map([ + ["req", $a([$a([$a(["37"])])])] + ]); //#2226 + var _L5 = new Map([ + ["cset", 'Z'], + ["min", 1], + ["max", 90], + ["opt", false], + ["linters", $a([])] + ]); //#2233 + var _LJ = new Map([ + ["parts", $a([_L5])], + ["req", $a([$a([$a(["00"]), $a(["01"]), $a(["253"]), $a(["255"]), $a(["8003"]), $a(["8004"]), $a(["8006"]), $a(["8010"]), $a(["8017"]), $a(["8018"])])])] + ]); //#2235 + var _LL = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponcode'])] - ]); //#2232 - var _Gq = new Map([ - ["parts", $a([_Go])] - ]); //#2232 - var _Gs = new Map([ + ]); //#2242 + var _LN = new Map([ + ["parts", $a([_LL])] + ]); //#2242 + var _LP = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#2240 - var _Gw = new Map([ - ["parts", $a([_Gs])], - ["req", $a([$a(["255"])])] - ]); //#2242 - var _Gy = new Map([ + ]); //#2250 + var _LU = new Map([ + ["parts", $a([_LP])], + ["req", $a([$a([$a(["255"])])])] + ]); //#2252 + var _LW = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponposoffer'])] - ]); //#2249 - var _H0 = new Map([ - ["parts", $a([_Gy])] - ]); //#2249 - var _H2 = new Map([ + ]); //#2259 + var _LY = new Map([ + ["parts", $a([_LW])] + ]); //#2259 + var _La = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a([])] - ]); //#2257 - var _H6 = new Map([ - ["parts", $a([_H2])], - ["req", $a([$a(["01"])])] - ]); //#2259 - var _H8 = new Map([ + ]); //#2267 + var _Lf = new Map([ + ["parts", $a([_La])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2269 + var _Lh = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#2266 - var _HA = new Map([ - ["parts", $a([_H8])] - ]); //#2266 - var _HC = new Map([ + ]); //#2276 + var _Lj = new Map([ + ["parts", $a([_Lh])] + ]); //#2276 + var _Ll = new Map([ ["cset", 'X'], ["min", 1], ["max", 90], ["opt", false], ["linters", $a([])] - ]); //#2274 - var _HE = new Map([ - ["parts", $a([_HC])] - ]); //#2274 - var _HF = new Map([ + ]); //#2284 + var _Ln = new Map([ + ["parts", $a([_Ll])] + ]); //#2284 + var _Lo = new Map([ ["00", _4], ["01", _C], - ["02", _I], - ["10", _O], - ["11", _U], - ["12", _a], - ["13", _g], - ["15", _g], - ["16", _g], - ["17", _m], - ["20", _s], - ["21", _z], - ["22", _15], - ["235", _1B], - ["240", _1H], - ["241", _1H], - ["242", _1N], - ["243", _1T], - ["250", _1a], - ["251", _1g], - ["253", _1n], - ["254", _1t], - ["255", _21], - ["30", _27], - ["3100", _2E], - ["3101", _2E], - ["3102", _2E], - ["3103", _2E], - ["3104", _2E], - ["3105", _2E], - ["3110", _2L], - ["3111", _2L], - ["3112", _2L], - ["3113", _2L], - ["3114", _2L], - ["3115", _2L], - ["3120", _2S], - ["3121", _2S], - ["3122", _2S], - ["3123", _2S], - ["3124", _2S], - ["3125", _2S], - ["3130", _2Z], - ["3131", _2Z], - ["3132", _2Z], - ["3133", _2Z], - ["3134", _2Z], - ["3135", _2Z], - ["3140", _2g], - ["3141", _2g], - ["3142", _2g], - ["3143", _2g], - ["3144", _2g], - ["3145", _2g], - ["3150", _2n], - ["3151", _2n], - ["3152", _2n], - ["3153", _2n], - ["3154", _2n], - ["3155", _2n], - ["3160", _2u], - ["3161", _2u], - ["3162", _2u], - ["3163", _2u], - ["3164", _2u], - ["3165", _2u], - ["3200", _31], - ["3201", _31], - ["3202", _31], - ["3203", _31], - ["3204", _31], - ["3205", _31], - ["3210", _38], - ["3211", _38], - ["3212", _38], - ["3213", _38], - ["3214", _38], - ["3215", _38], - ["3220", _3F], - ["3221", _3F], - ["3222", _3F], - ["3223", _3F], - ["3224", _3F], - ["3225", _3F], - ["3230", _3M], - ["3231", _3M], - ["3232", _3M], - ["3233", _3M], - ["3234", _3M], - ["3235", _3M], - ["3240", _3T], - ["3241", _3T], - ["3242", _3T], - ["3243", _3T], - ["3244", _3T], - ["3245", _3T], - ["3250", _3a], - ["3251", _3a], - ["3252", _3a], - ["3253", _3a], - ["3254", _3a], - ["3255", _3a], - ["3260", _3h], - ["3261", _3h], - ["3262", _3h], - ["3263", _3h], - ["3264", _3h], - ["3265", _3h], - ["3270", _3o], - ["3271", _3o], - ["3272", _3o], - ["3273", _3o], - ["3274", _3o], - ["3275", _3o], - ["3280", _3v], - ["3281", _3v], - ["3282", _3v], - ["3283", _3v], - ["3284", _3v], - ["3285", _3v], - ["3290", _42], - ["3291", _42], - ["3292", _42], - ["3293", _42], - ["3294", _42], - ["3295", _42], - ["3300", _49], - ["3301", _49], - ["3302", _49], - ["3303", _49], - ["3304", _49], - ["3305", _49], - ["3310", _4G], - ["3311", _4G], - ["3312", _4G], - ["3313", _4G], - ["3314", _4G], - ["3315", _4G], - ["3320", _4N], - ["3321", _4N], - ["3322", _4N], - ["3323", _4N], - ["3324", _4N], - ["3325", _4N], - ["3330", _4U], - ["3331", _4U], - ["3332", _4U], - ["3333", _4U], - ["3334", _4U], - ["3335", _4U], - ["3340", _4b], - ["3341", _4b], - ["3342", _4b], - ["3343", _4b], - ["3344", _4b], - ["3345", _4b], - ["3350", _4i], - ["3351", _4i], - ["3352", _4i], - ["3353", _4i], - ["3354", _4i], - ["3355", _4i], - ["3360", _4p], - ["3361", _4p], - ["3362", _4p], - ["3363", _4p], - ["3364", _4p], - ["3365", _4p], - ["3370", _4w], - ["3371", _4w], - ["3372", _4w], - ["3373", _4w], - ["3374", _4w], - ["3375", _4w], - ["3400", _53], - ["3401", _53], - ["3402", _53], - ["3403", _53], - ["3404", _53], - ["3405", _53], - ["3410", _5A], - ["3411", _5A], - ["3412", _5A], - ["3413", _5A], - ["3414", _5A], - ["3415", _5A], - ["3420", _5H], - ["3421", _5H], - ["3422", _5H], - ["3423", _5H], - ["3424", _5H], - ["3425", _5H], - ["3430", _5O], - ["3431", _5O], - ["3432", _5O], - ["3433", _5O], - ["3434", _5O], - ["3435", _5O], - ["3440", _5V], - ["3441", _5V], - ["3442", _5V], - ["3443", _5V], - ["3444", _5V], - ["3445", _5V], - ["3450", _5c], - ["3451", _5c], - ["3452", _5c], - ["3453", _5c], - ["3454", _5c], - ["3455", _5c], - ["3460", _5j], - ["3461", _5j], - ["3462", _5j], - ["3463", _5j], - ["3464", _5j], - ["3465", _5j], - ["3470", _5q], - ["3471", _5q], - ["3472", _5q], - ["3473", _5q], - ["3474", _5q], - ["3475", _5q], - ["3480", _5x], - ["3481", _5x], - ["3482", _5x], - ["3483", _5x], - ["3484", _5x], - ["3485", _5x], - ["3490", _64], - ["3491", _64], - ["3492", _64], - ["3493", _64], - ["3494", _64], - ["3495", _64], - ["3500", _6B], - ["3501", _6B], - ["3502", _6B], - ["3503", _6B], - ["3504", _6B], - ["3505", _6B], - ["3510", _6I], - ["3511", _6I], - ["3512", _6I], - ["3513", _6I], - ["3514", _6I], - ["3515", _6I], - ["3520", _6P], - ["3521", _6P], - ["3522", _6P], - ["3523", _6P], - ["3524", _6P], - ["3525", _6P], - ["3530", _6W], - ["3531", _6W], - ["3532", _6W], - ["3533", _6W], - ["3534", _6W], - ["3535", _6W], - ["3540", _6d], - ["3541", _6d], - ["3542", _6d], - ["3543", _6d], - ["3544", _6d], - ["3545", _6d], - ["3550", _6k], - ["3551", _6k], - ["3552", _6k], - ["3553", _6k], - ["3554", _6k], - ["3555", _6k], - ["3560", _6r], - ["3561", _6r], - ["3562", _6r], - ["3563", _6r], - ["3564", _6r], - ["3565", _6r], - ["3570", _6y], - ["3571", _6y], - ["3572", _6y], - ["3573", _6y], - ["3574", _6y], - ["3575", _6y], - ["3600", _75], - ["3601", _75], - ["3602", _75], - ["3603", _75], - ["3604", _75], - ["3605", _75], - ["3610", _7C], - ["3611", _7C], - ["3612", _7C], - ["3613", _7C], - ["3614", _7C], - ["3615", _7C], - ["3620", _7J], - ["3621", _7J], - ["3622", _7J], - ["3623", _7J], - ["3624", _7J], - ["3625", _7J], - ["3630", _7Q], - ["3631", _7Q], - ["3632", _7Q], - ["3633", _7Q], - ["3634", _7Q], - ["3635", _7Q], - ["3640", _7X], - ["3641", _7X], - ["3642", _7X], - ["3643", _7X], - ["3644", _7X], - ["3645", _7X], - ["3650", _7e], - ["3651", _7e], - ["3652", _7e], - ["3653", _7e], - ["3654", _7e], - ["3655", _7e], - ["3660", _7l], - ["3661", _7l], - ["3662", _7l], - ["3663", _7l], - ["3664", _7l], - ["3665", _7l], - ["3670", _7s], - ["3671", _7s], - ["3672", _7s], - ["3673", _7s], - ["3674", _7s], - ["3675", _7s], - ["3680", _7z], - ["3681", _7z], - ["3682", _7z], - ["3683", _7z], - ["3684", _7z], - ["3685", _7z], - ["3690", _86], - ["3691", _86], - ["3692", _86], - ["3693", _86], - ["3694", _86], - ["3695", _86], - ["37", _8D], - ["3900", _8K], - ["3901", _8K], - ["3902", _8K], - ["3903", _8K], - ["3904", _8K], - ["3905", _8K], - ["3906", _8K], - ["3907", _8K], - ["3908", _8K], - ["3909", _8K], - ["3910", _8T], - ["3911", _8T], - ["3912", _8T], - ["3913", _8T], - ["3914", _8T], - ["3915", _8T], - ["3916", _8T], - ["3917", _8T], - ["3918", _8T], - ["3919", _8T], - ["3920", _8b], - ["3921", _8b], - ["3922", _8b], - ["3923", _8b], - ["3924", _8b], - ["3925", _8b], - ["3926", _8b], - ["3927", _8b], - ["3928", _8b], - ["3929", _8b], - ["3930", _8k], - ["3931", _8k], - ["3932", _8k], - ["3933", _8k], - ["3934", _8k], - ["3935", _8k], - ["3936", _8k], - ["3937", _8k], - ["3938", _8k], - ["3939", _8k], - ["3940", _8r], - ["3941", _8r], - ["3942", _8r], - ["3943", _8r], - ["3950", _8y], - ["3951", _8y], - ["3952", _8y], - ["3953", _8y], - ["3954", _8y], - ["3955", _8y], - ["400", _92], - ["401", _97], - ["402", _9C], - ["403", _9I], - ["410", _9M], - ["411", _9M], - ["412", _9M], - ["413", _9M], - ["414", _9T], - ["415", _9b], - ["416", _9f], - ["417", _9l], - ["420", _9q], - ["421", _9x], - ["422", _A4], - ["423", _AB], - ["424", _AI], - ["425", _AP], - ["426", _AV], - ["427", _Ac], - ["4300", _Ai], - ["4301", _Ai], - ["4302", _Ao], - ["4303", _Au], - ["4304", _B0], - ["4305", _B0], - ["4306", _B0], - ["4307", _B6], - ["4308", _BC], - ["4309", _BI], - ["4310", _BO], - ["4311", _BO], - ["4312", _BU], - ["4313", _Ba], - ["4314", _Bg], - ["4315", _Bg], - ["4316", _Bg], - ["4317", _Bm], - ["4318", _Bs], - ["4319", _By], - ["4320", _C4], - ["4321", _CA], - ["4322", _CA], - ["4323", _CA], - ["4324", _CI], - ["4325", _CI], - ["4326", _CO], - ["7001", _CU], - ["7002", _Ca], - ["7003", _Ci], - ["7004", _Cp], - ["7005", _Cv], - ["7006", _D1], - ["7007", _D9], - ["7008", _DF], - ["7009", _DL], - ["7010", _DR], - ["7011", _DZ], - ["7020", _Dg], - ["7021", _Dm], - ["7022", _Ds], - ["7023", _Dw], - ["7030", _E4], - ["7031", _E4], - ["7032", _E4], - ["7033", _E4], - ["7034", _E4], - ["7035", _E4], - ["7036", _E4], - ["7037", _E4], - ["7038", _E4], - ["7039", _E4], - ["7040", _EE], - ["710", _EK], - ["711", _EK], - ["712", _EK], - ["713", _EK], - ["714", _EK], - ["715", _EK], - ["7230", _ES], - ["7231", _ES], - ["7232", _ES], - ["7233", _ES], - ["7234", _ES], - ["7235", _ES], - ["7236", _ES], - ["7237", _ES], - ["7238", _ES], - ["7239", _ES], - ["7240", _EY], - ["7241", _Ee], - ["7242", _Ek], - ["8001", _Ey], - ["8002", _F2], - ["8003", _FB], - ["8004", _FH], - ["8005", _FN], - ["8006", _FW], - ["8007", _Fc], - ["8008", _Fk], - ["8009", _Fq], - ["8010", _Fw], - ["8011", _G2], - ["8012", _G8], - ["8013", _GD], - ["8017", _GK], - ["8018", _GR], - ["8019", _GX], - ["8020", _Gd], - ["8026", _Gm], - ["8110", _Gq], - ["8111", _Gw], - ["8112", _H0], - ["8200", _H6], - ["90", _HA], - ["91", _HE], - ["92", _HE], - ["93", _HE], - ["94", _HE], - ["95", _HE], - ["96", _HE], - ["97", _HE], - ["98", _HE], - ["99", _HE] - ]); //#2286 - $_.gs1syntax = _HF; //#2288 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2288 - bwipp_gs1process.__2289__ = 1; //#2288 - $_ = Object.getPrototypeOf($_); //#2288 - } //#2288 - if ($eq($k[--$j], 'ai')) { //#2473 - $anchorsearch($k[--$j], "("); //#2296 - if ($nt($k[--$j])) { //#2298 - $j--; //#2297 - $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2297'; //#2297 - $k[$j++] = "AIs must start with '('"; //#2297 - bwipp_raiseerror(); //#2297 - } //#2297 - $j--; //#2299 - $k[$j++] = Infinity; //#2300 - var _HK = $k[--$j]; //#2300 - var _HL = $k[--$j]; //#2300 - $k[$j++] = _HK; //#2307 - $k[$j++] = _HL; //#2307 - for (;;) { //#2307 - var _HM = $k[--$j]; //#2301 - $k[$j++] = _HM; //#2301 - if ($eq(_HM, "")) { //#2301 - $j--; //#2301 - break; //#2301 - } //#2301 - $search($k[--$j], ")"); //#2302 - if ($nt($k[--$j])) { //#2304 - $cleartomark(); //#2303 - $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2303'; //#2303 - $k[$j++] = "AIs must end with ')'"; //#2303 - bwipp_raiseerror(); //#2303 - } //#2303 - var _HP = $k[--$j]; //#2305 - var _HQ = $k[--$j]; //#2305 - $k[$j++] = _HP; //#2305 - $k[$j++] = _HQ; //#2305 - $j--; //#2305 - var _HR = $k[--$j]; //#2305 - var _HS = $k[--$j]; //#2305 - $k[$j++] = _HR; //#2306 - $search(_HS, "("); //#2306 - if ($k[--$j]) { //#2306 - var _HU = $k[--$j]; //#2306 - var _HV = $k[--$j]; //#2306 - $k[$j++] = _HU; //#2306 - $k[$j++] = _HV; //#2306 - $j--; //#2306 - var _HW = $k[--$j]; //#2306 - var _HX = $k[--$j]; //#2306 - $k[$j++] = _HW; //#2306 - $k[$j++] = _HX; //#2306 - } else { //#2306 - $k[$j++] = ""; //#2306 - } //#2306 - } //#2306 - var _HY = $counttomark(); //#2308 - $k[$j++] = _HY; //#2308 - if (_HY > 0) { //#2308 - var _HZ = $k[--$j]; //#2308 - for (var _Hb = _HZ, _Ha = (~~(_HZ / 2)) + 1; _Hb >= _Ha; _Hb -= 1) { //#2308 - $r(_Hb, -1); //#2308 - } //#2308 - } else { //#2308 - $j--; //#2308 - } //#2308 - $astore($a(~~($counttomark() / 2))); //#2309 - $_.ais = $k[--$j]; //#2309 - $astore($a($counttomark())); //#2310 - $k[$j++] = Infinity; //#2311 - var _Hh = $k[--$j]; //#2310 - var _Hi = $k[--$j]; //#2310 - $k[$j++] = _Hh; //#2312 - $forall(_Hi, function() { //#2312 - var _Hk = new Map([ + ["02", _J], + ["10", _T], + ["11", _d], + ["12", _k], + ["13", _u], + ["15", _u], + ["16", _u], + ["17", _15], + ["20", _1F], + ["21", _1O], + ["22", _1V], + ["235", _1c], + ["240", _1m], + ["241", _1m], + ["242", _1w], + ["243", _23], + ["250", _2D], + ["251", _2L], + ["253", _2S], + ["254", _2Z], + ["255", _2h], + ["30", _2p], + ["3100", _2y], + ["3101", _2y], + ["3102", _2y], + ["3103", _2y], + ["3104", _2y], + ["3105", _2y], + ["3110", _37], + ["3111", _37], + ["3112", _37], + ["3113", _37], + ["3114", _37], + ["3115", _37], + ["3120", _3G], + ["3121", _3G], + ["3122", _3G], + ["3123", _3G], + ["3124", _3G], + ["3125", _3G], + ["3130", _3P], + ["3131", _3P], + ["3132", _3P], + ["3133", _3P], + ["3134", _3P], + ["3135", _3P], + ["3140", _3Y], + ["3141", _3Y], + ["3142", _3Y], + ["3143", _3Y], + ["3144", _3Y], + ["3145", _3Y], + ["3150", _3h], + ["3151", _3h], + ["3152", _3h], + ["3153", _3h], + ["3154", _3h], + ["3155", _3h], + ["3160", _3q], + ["3161", _3q], + ["3162", _3q], + ["3163", _3q], + ["3164", _3q], + ["3165", _3q], + ["3200", _3z], + ["3201", _3z], + ["3202", _3z], + ["3203", _3z], + ["3204", _3z], + ["3205", _3z], + ["3210", _48], + ["3211", _48], + ["3212", _48], + ["3213", _48], + ["3214", _48], + ["3215", _48], + ["3220", _4H], + ["3221", _4H], + ["3222", _4H], + ["3223", _4H], + ["3224", _4H], + ["3225", _4H], + ["3230", _4Q], + ["3231", _4Q], + ["3232", _4Q], + ["3233", _4Q], + ["3234", _4Q], + ["3235", _4Q], + ["3240", _4Z], + ["3241", _4Z], + ["3242", _4Z], + ["3243", _4Z], + ["3244", _4Z], + ["3245", _4Z], + ["3250", _4i], + ["3251", _4i], + ["3252", _4i], + ["3253", _4i], + ["3254", _4i], + ["3255", _4i], + ["3260", _4r], + ["3261", _4r], + ["3262", _4r], + ["3263", _4r], + ["3264", _4r], + ["3265", _4r], + ["3270", _50], + ["3271", _50], + ["3272", _50], + ["3273", _50], + ["3274", _50], + ["3275", _50], + ["3280", _59], + ["3281", _59], + ["3282", _59], + ["3283", _59], + ["3284", _59], + ["3285", _59], + ["3290", _5I], + ["3291", _5I], + ["3292", _5I], + ["3293", _5I], + ["3294", _5I], + ["3295", _5I], + ["3300", _5R], + ["3301", _5R], + ["3302", _5R], + ["3303", _5R], + ["3304", _5R], + ["3305", _5R], + ["3310", _5a], + ["3311", _5a], + ["3312", _5a], + ["3313", _5a], + ["3314", _5a], + ["3315", _5a], + ["3320", _5j], + ["3321", _5j], + ["3322", _5j], + ["3323", _5j], + ["3324", _5j], + ["3325", _5j], + ["3330", _5s], + ["3331", _5s], + ["3332", _5s], + ["3333", _5s], + ["3334", _5s], + ["3335", _5s], + ["3340", _61], + ["3341", _61], + ["3342", _61], + ["3343", _61], + ["3344", _61], + ["3345", _61], + ["3350", _6A], + ["3351", _6A], + ["3352", _6A], + ["3353", _6A], + ["3354", _6A], + ["3355", _6A], + ["3360", _6J], + ["3361", _6J], + ["3362", _6J], + ["3363", _6J], + ["3364", _6J], + ["3365", _6J], + ["3370", _6R], + ["3371", _6R], + ["3372", _6R], + ["3373", _6R], + ["3374", _6R], + ["3375", _6R], + ["3400", _6a], + ["3401", _6a], + ["3402", _6a], + ["3403", _6a], + ["3404", _6a], + ["3405", _6a], + ["3410", _6j], + ["3411", _6j], + ["3412", _6j], + ["3413", _6j], + ["3414", _6j], + ["3415", _6j], + ["3420", _6s], + ["3421", _6s], + ["3422", _6s], + ["3423", _6s], + ["3424", _6s], + ["3425", _6s], + ["3430", _71], + ["3431", _71], + ["3432", _71], + ["3433", _71], + ["3434", _71], + ["3435", _71], + ["3440", _7A], + ["3441", _7A], + ["3442", _7A], + ["3443", _7A], + ["3444", _7A], + ["3445", _7A], + ["3450", _7J], + ["3451", _7J], + ["3452", _7J], + ["3453", _7J], + ["3454", _7J], + ["3455", _7J], + ["3460", _7S], + ["3461", _7S], + ["3462", _7S], + ["3463", _7S], + ["3464", _7S], + ["3465", _7S], + ["3470", _7b], + ["3471", _7b], + ["3472", _7b], + ["3473", _7b], + ["3474", _7b], + ["3475", _7b], + ["3480", _7k], + ["3481", _7k], + ["3482", _7k], + ["3483", _7k], + ["3484", _7k], + ["3485", _7k], + ["3490", _7t], + ["3491", _7t], + ["3492", _7t], + ["3493", _7t], + ["3494", _7t], + ["3495", _7t], + ["3500", _82], + ["3501", _82], + ["3502", _82], + ["3503", _82], + ["3504", _82], + ["3505", _82], + ["3510", _8B], + ["3511", _8B], + ["3512", _8B], + ["3513", _8B], + ["3514", _8B], + ["3515", _8B], + ["3520", _8K], + ["3521", _8K], + ["3522", _8K], + ["3523", _8K], + ["3524", _8K], + ["3525", _8K], + ["3530", _8T], + ["3531", _8T], + ["3532", _8T], + ["3533", _8T], + ["3534", _8T], + ["3535", _8T], + ["3540", _8c], + ["3541", _8c], + ["3542", _8c], + ["3543", _8c], + ["3544", _8c], + ["3545", _8c], + ["3550", _8l], + ["3551", _8l], + ["3552", _8l], + ["3553", _8l], + ["3554", _8l], + ["3555", _8l], + ["3560", _8u], + ["3561", _8u], + ["3562", _8u], + ["3563", _8u], + ["3564", _8u], + ["3565", _8u], + ["3570", _93], + ["3571", _93], + ["3572", _93], + ["3573", _93], + ["3574", _93], + ["3575", _93], + ["3600", _9C], + ["3601", _9C], + ["3602", _9C], + ["3603", _9C], + ["3604", _9C], + ["3605", _9C], + ["3610", _9L], + ["3611", _9L], + ["3612", _9L], + ["3613", _9L], + ["3614", _9L], + ["3615", _9L], + ["3620", _9U], + ["3621", _9U], + ["3622", _9U], + ["3623", _9U], + ["3624", _9U], + ["3625", _9U], + ["3630", _9d], + ["3631", _9d], + ["3632", _9d], + ["3633", _9d], + ["3634", _9d], + ["3635", _9d], + ["3640", _9m], + ["3641", _9m], + ["3642", _9m], + ["3643", _9m], + ["3644", _9m], + ["3645", _9m], + ["3650", _9v], + ["3651", _9v], + ["3652", _9v], + ["3653", _9v], + ["3654", _9v], + ["3655", _9v], + ["3660", _A4], + ["3661", _A4], + ["3662", _A4], + ["3663", _A4], + ["3664", _A4], + ["3665", _A4], + ["3670", _AD], + ["3671", _AD], + ["3672", _AD], + ["3673", _AD], + ["3674", _AD], + ["3675", _AD], + ["3680", _AM], + ["3681", _AM], + ["3682", _AM], + ["3683", _AM], + ["3684", _AM], + ["3685", _AM], + ["3690", _AV], + ["3691", _AV], + ["3692", _AV], + ["3693", _AV], + ["3694", _AV], + ["3695", _AV], + ["37", _Af], + ["3900", _Ao], + ["3901", _Ao], + ["3902", _Ao], + ["3903", _Ao], + ["3904", _Ao], + ["3905", _Ao], + ["3906", _Ao], + ["3907", _Ao], + ["3908", _Ao], + ["3909", _Ao], + ["3910", _Ay], + ["3911", _Ay], + ["3912", _Ay], + ["3913", _Ay], + ["3914", _Ay], + ["3915", _Ay], + ["3916", _Ay], + ["3917", _Ay], + ["3918", _Ay], + ["3919", _Ay], + ["3920", _BC], + ["3921", _BC], + ["3922", _BC], + ["3923", _BC], + ["3924", _BC], + ["3925", _BC], + ["3926", _BC], + ["3927", _BC], + ["3928", _BC], + ["3929", _BC], + ["3930", _BQ], + ["3931", _BQ], + ["3932", _BQ], + ["3933", _BQ], + ["3934", _BQ], + ["3935", _BQ], + ["3936", _BQ], + ["3937", _BQ], + ["3938", _BQ], + ["3939", _BQ], + ["3940", _BY], + ["3941", _BY], + ["3942", _BY], + ["3943", _BY], + ["3950", _Bk], + ["3951", _Bk], + ["3952", _Bk], + ["3953", _Bk], + ["3954", _Bk], + ["3955", _Bk], + ["400", _Bo], + ["401", _Bt], + ["402", _By], + ["403", _C5], + ["410", _C9], + ["411", _C9], + ["412", _C9], + ["413", _C9], + ["414", _CG], + ["415", _CP], + ["416", _CT], + ["417", _CZ], + ["420", _Ce], + ["421", _Cl], + ["422", _Cw], + ["423", _D5], + ["424", _DE], + ["425", _DN], + ["426", _DV], + ["427", _Df], + ["4300", _Dm], + ["4301", _Dm], + ["4302", _Dt], + ["4303", _E0], + ["4304", _E7], + ["4305", _E7], + ["4306", _E7], + ["4307", _EE], + ["4308", _EL], + ["4309", _EU], + ["4310", _Eb], + ["4311", _Eb], + ["4312", _Ei], + ["4313", _Ep], + ["4314", _Ew], + ["4315", _Ew], + ["4316", _Ew], + ["4317", _F3], + ["4318", _FA], + ["4319", _FH], + ["4320", _FO], + ["4321", _FV], + ["4322", _FV], + ["4323", _FV], + ["4324", _Fe], + ["4325", _Fe], + ["4326", _Fl], + ["7001", _Fv], + ["7002", _G3], + ["7003", _GD], + ["7004", _GM], + ["7005", _GU], + ["7006", _Gc], + ["7007", _Gm], + ["7008", _Gu], + ["7009", _H2], + ["7010", _HA], + ["7011", _HK], + ["7020", _HU], + ["7021", _Hc], + ["7022", _Hj], + ["7023", _Hn], + ["7030", _Hx], + ["7031", _Hx], + ["7032", _Hx], + ["7033", _Hx], + ["7034", _Hx], + ["7035", _Hx], + ["7036", _Hx], + ["7037", _Hx], + ["7038", _Hx], + ["7039", _Hx], + ["7040", _I7], + ["710", _IE], + ["711", _IE], + ["712", _IE], + ["713", _IE], + ["714", _IE], + ["715", _IE], + ["7230", _IO], + ["7231", _IO], + ["7232", _IO], + ["7233", _IO], + ["7234", _IO], + ["7235", _IO], + ["7236", _IO], + ["7237", _IO], + ["7238", _IO], + ["7239", _IO], + ["7240", _IW], + ["7241", _Ie], + ["7242", _Im], + ["8001", _J1], + ["8002", _J5], + ["8003", _JE], + ["8004", _JK], + ["8005", _JS], + ["8006", _Jb], + ["8007", _Ji], + ["8008", _Js], + ["8009", _K0], + ["8010", _K6], + ["8011", _KD], + ["8012", _KL], + ["8013", _KQ], + ["8017", _KX], + ["8018", _Ke], + ["8019", _Km], + ["8020", _Kt], + ["8026", _L3], + ["8030", _LJ], + ["8110", _LN], + ["8111", _LU], + ["8112", _LY], + ["8200", _Lf], + ["90", _Lj], + ["91", _Ln], + ["92", _Ln], + ["93", _Ln], + ["94", _Ln], + ["95", _Ln], + ["96", _Ln], + ["97", _Ln], + ["98", _Ln], + ["99", _Ln] + ]); //#2296 + $_.gs1syntax = _Lo; //#2298 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2298 + bwipp_gs1process.__2299__ = 1; //#2298 + $_ = Object.getPrototypeOf($_); //#2298 + } //#2298 + if ($eq($k[--$j], 'ai')) { //#2507 + $anchorsearch($k[--$j], "("); //#2306 + if ($nt($k[--$j])) { //#2308 + $j--; //#2307 + $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2307'; //#2307 + $k[$j++] = "AIs must start with '('"; //#2307 + bwipp_raiseerror(); //#2307 + } //#2307 + $j--; //#2309 + $k[$j++] = Infinity; //#2310 + var _Lt = $k[--$j]; //#2310 + var _Lu = $k[--$j]; //#2310 + $k[$j++] = _Lt; //#2317 + $k[$j++] = _Lu; //#2317 + for (;;) { //#2317 + var _Lv = $k[--$j]; //#2311 + $k[$j++] = _Lv; //#2311 + if ($eq(_Lv, "")) { //#2311 + $j--; //#2311 + break; //#2311 + } //#2311 + $search($k[--$j], ")"); //#2312 + if ($nt($k[--$j])) { //#2314 + $cleartomark(); //#2313 + $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2313'; //#2313 + $k[$j++] = "AIs must end with ')'"; //#2313 + bwipp_raiseerror(); //#2313 + } //#2313 + var _Ly = $k[--$j]; //#2315 + var _Lz = $k[--$j]; //#2315 + $k[$j++] = _Ly; //#2315 + $k[$j++] = _Lz; //#2315 + $j--; //#2315 + var _M0 = $k[--$j]; //#2315 + var _M1 = $k[--$j]; //#2315 + $k[$j++] = _M0; //#2316 + $search(_M1, "("); //#2316 + if ($k[--$j]) { //#2316 + var _M3 = $k[--$j]; //#2316 + var _M4 = $k[--$j]; //#2316 + $k[$j++] = _M3; //#2316 + $k[$j++] = _M4; //#2316 + $j--; //#2316 + var _M5 = $k[--$j]; //#2316 + var _M6 = $k[--$j]; //#2316 + $k[$j++] = _M5; //#2316 + $k[$j++] = _M6; //#2316 + } else { //#2316 + $k[$j++] = ""; //#2316 + } //#2316 + } //#2316 + var _M7 = $counttomark(); //#2318 + $k[$j++] = _M7; //#2318 + if (_M7 > 0) { //#2318 + var _M8 = $k[--$j]; //#2318 + for (var _MA = _M8, _M9 = (~~(_M8 / 2)) + 1; _MA >= _M9; _MA -= 1) { //#2318 + $r(_MA, -1); //#2318 + } //#2318 + } else { //#2318 + $j--; //#2318 + } //#2318 + $astore($a(~~($counttomark() / 2))); //#2319 + $_.ais = $k[--$j]; //#2319 + $astore($a($counttomark())); //#2320 + $k[$j++] = Infinity; //#2320 + var _MG = $k[--$j]; //#2320 + var _MH = $k[--$j]; //#2320 + $k[$j++] = _MG; //#2322 + $forall(_MH, function() { //#2322 + var _MJ = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#2311 - $k[$j++] = _Hk; //#2311 - bwipp_parseinput(); //#2311 - }); //#2311 - $_.vals = $a(); //#2312 - $j--; //#2313 - } else { //#2473 - $anchorsearch($k[--$j], "http://"); //#2318 - if ($nt($k[--$j])) { //#2321 - $anchorsearch($k[--$j], "https://"); //#2319 - if ($nt($k[--$j])) { //#2321 - $j--; //#2320 - $k[$j++] = 'bwipp.GS1dlURIbadScheme#2320'; //#2320 - $k[$j++] = "Scheme must be http:// or https://"; //#2320 - bwipp_raiseerror(); //#2320 - } //#2320 - } //#2320 - $j--; //#2322 - $search($k[--$j], "/"); //#2325 - if ($nt($k[--$j])) { //#2327 - $j--; //#2326 - $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2326'; //#2326 - $k[$j++] = "URI must contain a domain and path info"; //#2326 - bwipp_raiseerror(); //#2326 - } //#2326 - $j -= 2; //#2328 - $search($k[--$j], "#"); //#2331 - if ($k[--$j]) { //#2333 - var _Hu = $k[--$j]; //#2332 - var _Hv = $k[--$j]; //#2332 - $k[$j++] = _Hu; //#2332 - $k[$j++] = _Hv; //#2332 - $j--; //#2332 - var _Hw = $k[--$j]; //#2332 - var _Hx = $k[--$j]; //#2332 - $k[$j++] = _Hw; //#2332 - $k[$j++] = _Hx; //#2332 - $j--; //#2332 - } //#2332 - $search($k[--$j], "?"); //#2336 - if ($nt($k[--$j])) { //#2338 - var _I0 = $k[--$j]; //#2337 - $k[$j++] = ""; //#2337 - $k[$j++] = null; //#2337 - $k[$j++] = _I0; //#2337 - } //#2337 - $_.pp = $k[--$j]; //#2339 - $j--; //#2340 - $_.qp = $k[--$j]; //#2341 - $k[$j++] = Infinity; //#2344 - $k[$j++] = 0; //#2348 - $k[$j++] = 0; //#2348 - $k[$j++] = $_.pp; //#2348 - for (;;) { //#2348 - $search($k[--$j], "/"); //#2346 - if ($nt($k[--$j])) { //#2346 - $j--; //#2346 - break; //#2346 - } //#2346 - var _I6 = $k[--$j]; //#2347 - var _I7 = $k[--$j]; //#2347 - $k[$j++] = _I6.length + 1; //#2347 - $k[$j++] = _I7; //#2347 - $j--; //#2347 - var _I8 = $k[--$j]; //#2347 - var _I9 = $k[--$j]; //#2347 - var _IA = $k[--$j]; //#2347 - $k[$j++] = _IA; //#2347 - $k[$j++] = $f(_I8 + _IA); //#2347 - $k[$j++] = _I9; //#2347 + ]); //#2321 + $k[$j++] = _MJ; //#2321 + bwipp_parseinput(); //#2321 + }); //#2321 + $_.vals = $a(); //#2322 + $j--; //#2323 + } else { //#2507 + $anchorsearch($k[--$j], "http://"); //#2328 + if ($nt($k[--$j])) { //#2331 + $anchorsearch($k[--$j], "https://"); //#2329 + if ($nt($k[--$j])) { //#2331 + $j--; //#2330 + $k[$j++] = 'bwipp.GS1dlURIbadScheme#2330'; //#2330 + $k[$j++] = "Scheme must be http:// or https://"; //#2330 + bwipp_raiseerror(); //#2330 + } //#2330 + } //#2330 + $j--; //#2332 + $search($k[--$j], "/"); //#2335 + if ($nt($k[--$j])) { //#2337 + $j--; //#2336 + $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2336'; //#2336 + $k[$j++] = "URI must contain a domain and path info"; //#2336 + bwipp_raiseerror(); //#2336 + } //#2336 + $j -= 2; //#2338 + $search($k[--$j], "#"); //#2341 + if ($k[--$j]) { //#2343 + var _MT = $k[--$j]; //#2342 + var _MU = $k[--$j]; //#2342 + $k[$j++] = _MT; //#2342 + $k[$j++] = _MU; //#2342 + $j--; //#2342 + var _MV = $k[--$j]; //#2342 + var _MW = $k[--$j]; //#2342 + $k[$j++] = _MV; //#2342 + $k[$j++] = _MW; //#2342 + $j--; //#2342 + } //#2342 + $search($k[--$j], "?"); //#2346 + if ($nt($k[--$j])) { //#2348 + var _MZ = $k[--$j]; //#2347 + $k[$j++] = ""; //#2347 + $k[$j++] = null; //#2347 + $k[$j++] = _MZ; //#2347 } //#2347 - $astore($a($counttomark() - 1)); //#2349 - $_.pipos = $k[--$j]; //#2349 - $j -= 2; //#2349 - if ($_.pipos.length <= 1) { //#2352 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2351'; //#2351 - $k[$j++] = "The path was too short to contain AI info"; //#2351 - bwipp_raiseerror(); //#2351 - } //#2351 - $k[$j++] = false; //#2368 - for (var _IG = $_.pipos.length - 2; _IG >= 0; _IG -= 2) { //#2368 - var _II = $get($_.pipos, _IG); //#2358 - var _IM = $geti($_.pp, _II, $f($f($get($_.pipos, _IG + 1) - _II) - 1)); //#2359 - var _IO = $get($_.gs1syntax, _IM) !== undefined; //#2360 - $k[$j++] = _IG; //#2366 - $k[$j++] = _IM; //#2366 - if (_IO) { //#2365 - var _IS = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2361 - if (_IS) { //#2363 - var _IT = $k[--$j]; //#2362 - var _IU = $k[--$j]; //#2362 - $k[$j++] = _IT; //#2362 - $k[$j++] = _IU; //#2362 - $j--; //#2362 - $k[$j++] = true; //#2362 - break; //#2362 - } //#2362 - } else { //#2365 - $j--; //#2365 - } //#2365 - $j--; //#2367 - } //#2367 - if ($nt($k[--$j])) { //#2371 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2370'; //#2370 - $k[$j++] = "The path does not contain a valid primary key"; //#2370 - bwipp_raiseerror(); //#2370 - } //#2370 - var _IY = $get($_.pipos, $k[--$j]); //#2372 - $_.pp = $geti($_.pp, _IY, $f($_.pp.length - _IY)); //#2372 + $_.pp = $k[--$j]; //#2349 + $j--; //#2350 + $_.qp = $k[--$j]; //#2351 + $k[$j++] = Infinity; //#2354 + $k[$j++] = 0; //#2358 + $k[$j++] = 0; //#2358 + $k[$j++] = $_.pp; //#2358 + for (;;) { //#2358 + $search($k[--$j], "/"); //#2356 + if ($nt($k[--$j])) { //#2356 + $j--; //#2356 + break; //#2356 + } //#2356 + var _Mf = $k[--$j]; //#2357 + var _Mg = $k[--$j]; //#2357 + $k[$j++] = _Mf.length + 1; //#2357 + $k[$j++] = _Mg; //#2357 + $j--; //#2357 + var _Mh = $k[--$j]; //#2357 + var _Mi = $k[--$j]; //#2357 + var _Mj = $k[--$j]; //#2357 + $k[$j++] = _Mj; //#2357 + $k[$j++] = $f(_Mh + _Mj); //#2357 + $k[$j++] = _Mi; //#2357 + } //#2357 + $astore($a($counttomark() - 1)); //#2359 + $_.pipos = $k[--$j]; //#2359 + $j -= 2; //#2359 + if ($_.pipos.length <= 1) { //#2362 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2361'; //#2361 + $k[$j++] = "The path was too short to contain AI info"; //#2361 + bwipp_raiseerror(); //#2361 + } //#2361 + $k[$j++] = false; //#2378 + for (var _Mp = $_.pipos.length - 2; _Mp >= 0; _Mp -= 2) { //#2378 + var _Mr = $get($_.pipos, _Mp); //#2368 + var _Mv = $geti($_.pp, _Mr, $f($f($get($_.pipos, _Mp + 1) - _Mr) - 1)); //#2369 + var _Mx = $get($_.gs1syntax, _Mv) !== undefined; //#2370 + $k[$j++] = _Mp; //#2376 + $k[$j++] = _Mv; //#2376 + if (_Mx) { //#2375 + var _N1 = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2371 + if (_N1) { //#2373 + var _N2 = $k[--$j]; //#2372 + var _N3 = $k[--$j]; //#2372 + $k[$j++] = _N2; //#2372 + $k[$j++] = _N3; //#2372 + $j--; //#2372 + $k[$j++] = true; //#2372 + break; //#2372 + } //#2372 + } else { //#2375 + $j--; //#2375 + } //#2375 + $j--; //#2377 + } //#2377 + if ($nt($k[--$j])) { //#2381 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2380'; //#2380 + $k[$j++] = "The path does not contain a valid primary key"; //#2380 + bwipp_raiseerror(); //#2380 + } //#2380 + var _N7 = $get($_.pipos, $k[--$j]); //#2382 + $_.pp = $geti($_.pp, _N7, $f($_.pp.length - _N7)); //#2382 $_.uriunescape = function() { - $_.in = $k[--$j]; //#2375 - $_.out = $s($_.in.length); //#2376 - $k[$j++] = 0; //#2396 - $k[$j++] = 0; //#2396 - for (;;) { //#2396 - var _If = $k[--$j]; //#2378 - var _Ig = $k[--$j]; //#2378 - $k[$j++] = _Ig; //#2378 - $k[$j++] = _If; //#2378 - if (_Ig >= $_.in.length) { //#2378 - break; //#2378 - } //#2378 - var _Ij = $k[--$j]; //#2379 - var _Ik = $k[--$j]; //#2379 - var _Il = $get($_.in, _Ik); //#2379 - $k[$j++] = _Ik; //#2395 - $k[$j++] = _Ij; //#2395 - $k[$j++] = _Il; //#2395 - if (_Il == 43) { //#2394 - $j--; //#2381 - var _In = $k[--$j]; //#2381 - $put($_.out, _In, 32); //#2381 - var _Io = $k[--$j]; //#2382 - $k[$j++] = $f(_Io + 1); //#2382 - $k[$j++] = $f(_In + 1); //#2382 - } else { //#2394 - var _Ip = $k[--$j]; //#2384 - var _Iq = $k[--$j]; //#2384 - var _Ir = $k[--$j]; //#2384 - $k[$j++] = _Ir; //#2395 - $k[$j++] = _Iq; //#2395 - $k[$j++] = _Ip; //#2395 - if ((_Ip == 37) && (_Ir < ($_.in.length - 2))) { //#2394 - $j--; //#2385 - var _Iu = $strcpy($s(4), "< >"); //#2386 - var _Iw = $k[--$j]; //#2386 - var _Ix = $k[--$j]; //#2386 - $puti(_Iu, 1, $geti($_.in, $f(_Ix + 1), 2)); //#2386 - try { //#2387 - $k[$j++] = _Ix; //#2387 - $k[$j++] = _Iw; //#2387 - $k[$j++] = $cvx(_Iu); //#2387 + $_.qq = $k[--$j]; //#2385 + $_.in = $k[--$j]; //#2386 + $_.out = $s($_.in.length); //#2387 + $k[$j++] = 0; //#2407 + $k[$j++] = 0; //#2407 + for (;;) { //#2407 + var _NF = $k[--$j]; //#2389 + var _NG = $k[--$j]; //#2389 + $k[$j++] = _NG; //#2389 + $k[$j++] = _NF; //#2389 + if (_NG >= $_.in.length) { //#2389 + break; //#2389 + } //#2389 + var _NJ = $k[--$j]; //#2390 + var _NK = $k[--$j]; //#2390 + var _NL = $get($_.in, _NK); //#2390 + $k[$j++] = _NK; //#2406 + $k[$j++] = _NJ; //#2406 + $k[$j++] = _NL; //#2406 + if ((_NL == 43) && $_.qq) { //#2405 + $j--; //#2392 + var _NO = $k[--$j]; //#2392 + $put($_.out, _NO, 32); //#2392 + var _NP = $k[--$j]; //#2393 + $k[$j++] = $f(_NP + 1); //#2393 + $k[$j++] = $f(_NO + 1); //#2393 + } else { //#2405 + var _NQ = $k[--$j]; //#2395 + var _NR = $k[--$j]; //#2395 + var _NS = $k[--$j]; //#2395 + $k[$j++] = _NS; //#2406 + $k[$j++] = _NR; //#2406 + $k[$j++] = _NQ; //#2406 + if ((_NQ == 37) && (_NS < ($_.in.length - 2))) { //#2405 + $j--; //#2396 + var _NV = $strcpy($s(4), "< >"); //#2397 + var _NX = $k[--$j]; //#2397 + var _NY = $k[--$j]; //#2397 + $puti(_NV, 1, $geti($_.in, $f(_NY + 1), 2)); //#2397 + try { //#2398 + $k[$j++] = _NY; //#2398 + $k[$j++] = _NX; //#2398 + $k[$j++] = $cvx(_NV); //#2398 $k[$j++] = false } catch (e) { $k[$j++] = true - } //#2387 - if ($k[--$j]) { //#2389 - $j -= 2; //#2388 - $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2388'; //#2388 - $k[$j++] = "Invalid hex character"; //#2388 - bwipp_raiseerror(); //#2388 - } //#2388 - var _J1 = $get($k[--$j], 0); //#2390 - var _J3 = $k[--$j]; //#2390 - $put($_.out, _J3, _J1); //#2390 - var _J4 = $k[--$j]; //#2391 - $k[$j++] = $f(_J4 + 3); //#2391 - $k[$j++] = $f(_J3 + 1); //#2391 - } else { //#2394 - var _J6 = $k[--$j]; //#2393 - var _J7 = $k[--$j]; //#2393 - $put($_.out, _J7, _J6); //#2393 - var _J8 = $k[--$j]; //#2394 - $k[$j++] = $f(_J8 + 1); //#2394 - $k[$j++] = $f(_J7 + 1); //#2394 - } //#2394 - } //#2394 - } //#2394 - $_.out = $geti($_.out, 0, $k[--$j]); //#2397 - $j--; //#2398 - $k[$j++] = $_.out; //#2399 - }; //#2399 - $_.ais = $a(99); //#2402 - $_.vals = $a(99); //#2403 - $k[$j++] = 0; //#2417 - $k[$j++] = $_.pp; //#2417 - for (;;) { //#2417 - $search($k[--$j], "/"); //#2408 - if ($k[--$j]) { //#2414 - var _JJ = $k[--$j]; //#2409 - var _JK = $k[--$j]; //#2409 - var _JL = $k[--$j]; //#2409 - var _JM = $k[--$j]; //#2409 - $put($_.ais, _JM, _JJ); //#2409 - $k[$j++] = _JM; //#2411 - $search(_JL, "/"); //#2411 - if ($k[--$j]) { //#2411 - var _JO = $k[--$j]; //#2411 - var _JP = $k[--$j]; //#2411 - $k[$j++] = _JO; //#2411 - $k[$j++] = _JP; //#2411 - $j--; //#2411 - } else { //#2411 - var _JQ = $k[--$j]; //#2411 - $k[$j++] = ""; //#2411 - $k[$j++] = _JQ; //#2411 - } //#2411 - var _JS = $k[--$j]; //#2412 - var _JT = $k[--$j]; //#2412 - var _JU = $k[--$j]; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JT; //#2412 - $k[$j++] = $_.vals; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JS; //#2412 - $_.uriunescape(); //#2412 - var _JV = $k[--$j]; //#2412 - var _JW = $k[--$j]; //#2412 - $put($k[--$j], _JW, _JV); //#2412 - } else { //#2414 - $j--; //#2414 - break; //#2414 - } //#2414 - var _JY = $k[--$j]; //#2416 - var _JZ = $k[--$j]; //#2416 - $k[$j++] = $f(_JZ + 1); //#2416 - $k[$j++] = _JY; //#2416 - } //#2416 - var _Ja = $k[--$j]; //#2420 - $k[$j++] = _Ja; //#2438 - if (_Ja > 1) { //#2438 - $k[$j++] = false; //#2434 - $forall($get($get($_.gs1syntax, $get($_.ais, 0)), 'dlpkey'), function() { //#2434 - $_.seq = $k[--$j]; //#2423 - $_.i = 1; //#2424 - $_.j = 0; //#2424 - for (;;) { //#2432 - if ($_.i >= $_.ais.length) { //#2426 - break; //#2426 - } //#2426 - if ($_.j >= $_.seq.length) { //#2427 - break; //#2427 - } //#2427 - if ($eq($get($_.ais, $_.i), $get($_.seq, $_.j))) { //#2430 - $_.i = $_.i + 1; //#2429 - } //#2429 - $_.j = $_.j + 1; //#2431 - } //#2431 - var _Ju = $k[--$j]; //#2433 - var _Jv = $k[--$j]; //#2433 - $k[$j++] = _Jv; //#2433 - $k[$j++] = _Ju; //#2433 - if ($_.i == _Jv) { //#2433 - $j--; //#2433 - $k[$j++] = true; //#2433 - return true; //#2433 - } //#2433 - }); //#2433 - if ($nt($k[--$j])) { //#2437 - $j--; //#2436 - $k[$j++] = 'bwipp.GS1dlBadPathInfo#2436'; //#2436 - $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2436 - bwipp_raiseerror(); //#2436 - } //#2436 - } //#2436 - $k[$j++] = $_.qp; //#2456 - for (;;) { //#2456 - var _Jy = $k[--$j]; //#2442 - $k[$j++] = _Jy; //#2442 - if ($eq(_Jy, "")) { //#2442 - $j--; //#2442 - break; //#2442 - } //#2442 - $search($k[--$j], "&"); //#2443 + } //#2398 + if ($k[--$j]) { //#2400 + $j -= 2; //#2399 + $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2399'; //#2399 + $k[$j++] = "Invalid hex character"; //#2399 + bwipp_raiseerror(); //#2399 + } //#2399 + var _Nc = $get($k[--$j], 0); //#2401 + var _Ne = $k[--$j]; //#2401 + $put($_.out, _Ne, _Nc); //#2401 + var _Nf = $k[--$j]; //#2402 + $k[$j++] = $f(_Nf + 3); //#2402 + $k[$j++] = $f(_Ne + 1); //#2402 + } else { //#2405 + var _Nh = $k[--$j]; //#2404 + var _Ni = $k[--$j]; //#2404 + $put($_.out, _Ni, _Nh); //#2404 + var _Nj = $k[--$j]; //#2405 + $k[$j++] = $f(_Nj + 1); //#2405 + $k[$j++] = $f(_Ni + 1); //#2405 + } //#2405 + } //#2405 + } //#2405 + $_.out = $geti($_.out, 0, $k[--$j]); //#2408 + $j--; //#2409 + $k[$j++] = $_.out; //#2410 + }; //#2410 + $_.isvaliddlpkeyseq = function() { + $_.in = $k[--$j]; //#2414 + $k[$j++] = false; //#2428 + $forall($get($get($_.gs1syntax, $get($_.in, 0)), 'dlpkey'), function() { //#2428 + $_.seq = $k[--$j]; //#2417 + $_.i = 1; //#2418 + $_.j = 0; //#2418 + for (;;) { //#2426 + if ($_.i >= $_.in.length) { //#2420 + break; //#2420 + } //#2420 + if ($_.j >= $_.seq.length) { //#2421 + break; //#2421 + } //#2421 + if ($eq($get($_.in, $_.i), $get($_.seq, $_.j))) { //#2424 + $_.i = $_.i + 1; //#2423 + } //#2423 + $_.j = $_.j + 1; //#2425 + } //#2425 + if ($_.i == $_.in.length) { //#2427 + $j--; //#2427 + $k[$j++] = true; //#2427 + return true; //#2427 + } //#2427 + }); //#2427 + }; //#2427 + $_.ais = $a(99); //#2431 + $_.vals = $a(99); //#2432 + $k[$j++] = 0; //#2446 + $k[$j++] = $_.pp; //#2446 + for (;;) { //#2446 + $search($k[--$j], "/"); //#2437 if ($k[--$j]) { //#2443 - var _K1 = $k[--$j]; //#2443 - var _K2 = $k[--$j]; //#2443 - $k[$j++] = _K1; //#2443 - $k[$j++] = _K2; //#2443 - $j--; //#2443 + var _OF = $k[--$j]; //#2438 + var _OG = $k[--$j]; //#2438 + var _OH = $k[--$j]; //#2438 + var _OI = $k[--$j]; //#2438 + $put($_.ais, _OI, _OF); //#2438 + $k[$j++] = _OI; //#2440 + $search(_OH, "/"); //#2440 + if ($k[--$j]) { //#2440 + var _OK = $k[--$j]; //#2440 + var _OL = $k[--$j]; //#2440 + $k[$j++] = _OK; //#2440 + $k[$j++] = _OL; //#2440 + $j--; //#2440 + } else { //#2440 + var _OM = $k[--$j]; //#2440 + $k[$j++] = ""; //#2440 + $k[$j++] = _OM; //#2440 + } //#2440 + var _OO = $k[--$j]; //#2441 + var _OP = $k[--$j]; //#2441 + var _OQ = $k[--$j]; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OP; //#2441 + $k[$j++] = $_.vals; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OO; //#2441 + $k[$j++] = false; //#2441 + $_.uriunescape(); //#2441 + var _OR = $k[--$j]; //#2441 + var _OS = $k[--$j]; //#2441 + $put($k[--$j], _OS, _OR); //#2441 } else { //#2443 - var _K3 = $k[--$j]; //#2443 - $k[$j++] = ""; //#2443 - $k[$j++] = _K3; //#2443 + $j--; //#2443 + break; //#2443 } //#2443 - $search($k[--$j], "="); //#2444 - if ($k[--$j]) { //#2454 - var _K6 = $k[--$j]; //#2445 - $k[$j++] = _K6; //#2445 - $k[$j++] = true; //#2445 - $forall(_K6, function() { //#2445 - var _K7 = $k[--$j]; //#2445 - var _K8 = $k[--$j]; //#2445 - $k[$j++] = _K8 && ((_K7 >= 48) && (_K7 <= 57)); //#2445 - }); //#2445 - if ($k[--$j]) { //#2451 - var _KB = $k[--$j]; //#2446 - var _KC = $k[--$j]; //#2446 - var _KD = $k[--$j]; //#2446 - var _KE = $k[--$j]; //#2446 - var _KF = $k[--$j]; //#2446 - $put($_.ais, _KF, _KB); //#2446 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KE; //#2448 - $k[$j++] = $_.vals; //#2448 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KD; //#2448 - $_.uriunescape(); //#2448 - var _KH = $k[--$j]; //#2448 - var _KI = $k[--$j]; //#2448 - $put($k[--$j], _KI, _KH); //#2448 - var _KK = $k[--$j]; //#2449 - var _KL = $k[--$j]; //#2449 - $k[$j++] = $f(_KL + 1); //#2449 - $k[$j++] = _KK; //#2449 - } else { //#2451 - $j -= 3; //#2451 - } //#2451 - } else { //#2454 - $j--; //#2454 - } //#2454 - } //#2454 - var _KN = $k[--$j]; //#2458 - $_.ais = $geti($_.ais, 0, _KN); //#2458 - $_.vals = $geti($_.vals, 0, _KN); //#2459 - for (var _KT = 0, _KS = $_.ais.length - 1; _KT <= _KS; _KT += 1) { //#2474 - $k[$j++] = _KT; //#2472 - if ($eq($get($_.ais, _KT), "01")) { //#2472 - var _KW = $k[--$j]; //#2465 - var _KY = $get($_.vals, _KW); //#2465 - var _KZ = _KY.length; //#2466 - $k[$j++] = _KW; //#2471 - $k[$j++] = _KY; //#2471 - if ((_KZ == 8) || ((_KZ == 12) || (_KZ == 13))) { //#2470 - var _Kb = $strcpy($s(14), "00000000000000"); //#2467 - var _Kc = $k[--$j]; //#2467 - $puti(_Kb, 14 - _Kc.length, _Kc); //#2467 - var _Ke = $k[--$j]; //#2468 - $put($_.vals, _Ke, _Kb); //#2468 - $k[$j++] = _Ke; //#2468 - } else { //#2470 - $j--; //#2470 - } //#2470 + var _OU = $k[--$j]; //#2445 + var _OV = $k[--$j]; //#2445 + $k[$j++] = $f(_OV + 1); //#2445 + $k[$j++] = _OU; //#2445 + } //#2445 + var _OW = $k[--$j]; //#2447 + $_.plen = _OW; //#2447 + $k[$j++] = _OW; //#2454 + if (_OW > 1) { //#2454 + $k[$j++] = $geti($_.ais, 0, $_.plen); //#2451 + $_.isvaliddlpkeyseq(); //#2451 + if ($nt($k[--$j])) { //#2453 + $j--; //#2452 + $k[$j++] = 'bwipp.GS1dlBadPathInfo#2452'; //#2452 + $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2452 + bwipp_raiseerror(); //#2452 + } //#2452 + } //#2452 + $k[$j++] = $_.qp; //#2472 + for (;;) { //#2472 + var _Oc = $k[--$j]; //#2458 + $k[$j++] = _Oc; //#2458 + if ($eq(_Oc, "")) { //#2458 + $j--; //#2458 + break; //#2458 + } //#2458 + $search($k[--$j], "&"); //#2459 + if ($k[--$j]) { //#2459 + var _Of = $k[--$j]; //#2459 + var _Og = $k[--$j]; //#2459 + $k[$j++] = _Of; //#2459 + $k[$j++] = _Og; //#2459 + $j--; //#2459 + } else { //#2459 + var _Oh = $k[--$j]; //#2459 + $k[$j++] = ""; //#2459 + $k[$j++] = _Oh; //#2459 + } //#2459 + $search($k[--$j], "="); //#2460 + if ($k[--$j]) { //#2470 + var _Ok = $k[--$j]; //#2461 + $k[$j++] = _Ok; //#2461 + $k[$j++] = true; //#2461 + $forall(_Ok, function() { //#2461 + var _Ol = $k[--$j]; //#2461 + var _Om = $k[--$j]; //#2461 + $k[$j++] = _Om && ((_Ol >= 48) && (_Ol <= 57)); //#2461 + }); //#2461 + if ($k[--$j]) { //#2467 + var _Op = $k[--$j]; //#2462 + var _Oq = $k[--$j]; //#2462 + var _Or = $k[--$j]; //#2462 + var _Os = $k[--$j]; //#2462 + var _Ot = $k[--$j]; //#2462 + $put($_.ais, _Ot, _Op); //#2462 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Os; //#2464 + $k[$j++] = $_.vals; //#2464 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Or; //#2464 + $k[$j++] = true; //#2464 + $_.uriunescape(); //#2464 + var _Ov = $k[--$j]; //#2464 + var _Ow = $k[--$j]; //#2464 + $put($k[--$j], _Ow, _Ov); //#2464 + var _Oy = $k[--$j]; //#2465 + var _Oz = $k[--$j]; //#2465 + $k[$j++] = $f(_Oz + 1); //#2465 + $k[$j++] = _Oy; //#2465 + } else { //#2467 + $j -= 3; //#2467 + } //#2467 + } else { //#2470 + $j--; //#2470 } //#2470 - $j--; //#2473 - } //#2473 - } //#2473 - if (!bwipp_gs1process.__2487__) { //#2487 - $_ = Object.create($_); //#2487 - $k[$j++] = Infinity; //#2486 - var _Kf = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2485 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#2486 - var _Ki = $get(_Kf, _Kg); //#2486 - $k[$j++] = _Ki; //#2486 - $k[$j++] = _Ki; //#2486 - } //#2486 - $_.aifixed = $d(); //#2486 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2486 - bwipp_gs1process.__2487__ = 1; //#2486 - $_ = Object.getPrototypeOf($_); //#2486 - } //#2486 - $k[$j++] = Infinity; //#2495 - var _Kl = $_.ais; //#2490 - for (var _Km = 0, _Kn = _Kl.length; _Km < _Kn; _Km++) { //#2497 - var _Ko = $get(_Kl, _Km); //#2497 - $k[$j++] = true; //#2496 - $k[$j++] = _Ko; //#2496 - if (_Ko.length >= 2) { //#2495 - var _Ks = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2493 - if (_Ks) { //#2493 - $j--; //#2493 - $k[$j++] = false; //#2493 - } //#2493 - } else { //#2495 - $j--; //#2495 - } //#2495 - } //#2495 - $_.fncs = $a(); //#2495 - $_.lintnumeric = function() { - var _Ku = $k[--$j]; //#2504 - $k[$j++] = true; //#2506 - $forall(_Ku, function() { //#2506 - var _Kv = $k[--$j]; //#2505 - if ((_Kv < 48) || (_Kv > 57)) { //#2505 - $j--; //#2505 - $k[$j++] = false; //#2505 - return true; //#2505 - } //#2505 - }); //#2505 - if ($nt($k[--$j])) { //#2507 + } //#2470 + var _P2 = $k[--$j]; //#2475 + var _P4 = $geti($_.ais, $_.plen, $f(_P2 - $_.plen)); //#2475 + $k[$j++] = _P2; //#2490 + for (var _P5 = 0, _P6 = _P4.length; _P5 < _P6; _P5++) { //#2490 + $k[$j++] = $get(_P4, _P5); //#2488 + for (var _P9 = $_.plen; _P9 >= 1; _P9 -= 1) { //#2488 + var _PA = $k[--$j]; //#2477 + $k[$j++] = _PA; //#2479 + $k[$j++] = _P9; //#2479 + $k[$j++] = _PA; //#2479 + $k[$j++] = Infinity; //#2477 + $aload($geti($_.ais, 0, $_.plen)); //#2478 + $r($counttomark() + 3, -2); //#2479 + var _PF = $k[--$j]; //#2479 + var _PG = $k[--$j]; //#2479 + $k[$j++] = _PF; //#2479 + $r(_PG, 1); //#2479 + var _PH = $a(); //#2479 + $k[$j++] = _PH; //#2480 + $_.isvaliddlpkeyseq(); //#2480 + if ($k[--$j]) { //#2487 + var _PJ = $k[--$j]; //#2481 + var _PK = $k[--$j]; //#2481 + $k[$j++] = _PJ; //#2481 + $k[$j++] = _PK; //#2481 + $j--; //#2481 + var _PL = $k[--$j]; //#2482 + var _PM = _PL.length; //#2482 + var _PN = $s(_PM + 50); //#2482 + $puti(_PN, 0, "AI ("); //#2483 + $puti(_PN, 4, _PL); //#2484 + $puti(_PN, _PM + 4, ") from query params should be in the path info"); //#2485 + $k[$j++] = _PL; //#2486 + $k[$j++] = _PN; //#2486 + $k[$j++] = _PM; //#2486 + $j--; //#2486 + var _PO = $k[--$j]; //#2486 + var _PP = $k[--$j]; //#2486 + $k[$j++] = _PO; //#2486 + $k[$j++] = _PP; //#2486 + $j--; //#2486 + var _PQ = $k[--$j]; //#2486 + $k[$j++] = 'bwipp.GS1dlAttributeMustBeQualifier#2486'; //#2486 + $k[$j++] = _PQ; //#2486 + bwipp_raiseerror(); //#2486 + } //#2486 + } //#2486 + $j--; //#2489 + } //#2489 + var _PS = $k[--$j]; //#2492 + $_.ais = $geti($_.ais, 0, _PS); //#2492 + $_.vals = $geti($_.vals, 0, _PS); //#2493 + for (var _PY = 0, _PX = $_.ais.length - 1; _PY <= _PX; _PY += 1) { //#2508 + $k[$j++] = _PY; //#2506 + if ($eq($get($_.ais, _PY), "01")) { //#2506 + var _Pb = $k[--$j]; //#2499 + var _Pd = $get($_.vals, _Pb); //#2499 + var _Pe = _Pd.length; //#2500 + $k[$j++] = _Pb; //#2505 + $k[$j++] = _Pd; //#2505 + if ((_Pe == 8) || ((_Pe == 12) || (_Pe == 13))) { //#2504 + var _Pg = $strcpy($s(14), "00000000000000"); //#2501 + var _Ph = $k[--$j]; //#2501 + $puti(_Pg, 14 - _Ph.length, _Ph); //#2501 + var _Pj = $k[--$j]; //#2502 + $put($_.vals, _Pj, _Pg); //#2502 + $k[$j++] = _Pj; //#2502 + } else { //#2504 + $j--; //#2504 + } //#2504 + } //#2504 $j--; //#2507 - $k[$j++] = 'bwipp.GS1notNumeric#2507'; //#2507 - $k[$j++] = "Not numeric"; //#2507 - $k[$j++] = false; //#2507 - return true; //#2507 } //#2507 - }; //#2507 - $_.lintcset82 = function() { - var _Kx = $k[--$j]; //#2511 - $k[$j++] = true; //#2516 - $forall(_Kx, function() { //#2516 - var _Ky = $s(1); //#2512 - $put(_Ky, 0, $k[--$j]); //#2512 - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Ky); //#2514 - if ($nt($k[--$j])) { //#2514 - $j -= 2; //#2514 - $k[$j++] = false; //#2514 - return true; //#2514 - } //#2514 - $j -= 3; //#2515 - }); //#2515 - if ($nt($k[--$j])) { //#2517 - $j--; //#2517 - $k[$j++] = 'bwipp.GS1badCSET82character#2517'; //#2517 - $k[$j++] = "Invalid CSET 82 character"; //#2517 - $k[$j++] = false; //#2517 - return true; //#2517 - } //#2517 - }; //#2517 - $_.lintcset39 = function() { - var _L2 = $k[--$j]; //#2521 - $k[$j++] = true; //#2526 - $forall(_L2, function() { //#2526 - var _L3 = $s(1); //#2522 - $put(_L3, 0, $k[--$j]); //#2522 - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _L3); //#2524 - if ($nt($k[--$j])) { //#2524 - $j -= 2; //#2524 - $k[$j++] = false; //#2524 - return true; //#2524 - } //#2524 - $j -= 3; //#2525 - }); //#2525 - if ($nt($k[--$j])) { //#2527 - $j--; //#2527 - $k[$j++] = 'bwipp.GS1badCSET39character#2527'; //#2527 - $k[$j++] = "Invalid CSET 39 character"; //#2527 - $k[$j++] = false; //#2527 - return true; //#2527 - } //#2527 - }; //#2527 - $_.lintkey = function() { - var _L7 = $k[--$j]; //#2531 - $k[$j++] = _L7; //#2531 - if (_L7.length < 2) { //#2531 - $j -= 2; //#2531 - $k[$j++] = 'bwipp.GS1keyTooShort#2531'; //#2531 - $k[$j++] = "Key is too short"; //#2531 - $k[$j++] = false; //#2531 - return true; //#2531 - } //#2531 - var _L8 = $k[--$j]; //#2532 - var _L9 = $get(_L8, 0); //#2532 - var _LA = $get(_L8, 1); //#2533 - if (((_L9 < 48) || (_L9 > 57)) || ((_LA < 48) || (_LA > 57))) { //#2535 - $j--; //#2534 - $k[$j++] = 'bwipp.GS1badGCP#2534'; //#2534 - $k[$j++] = "Non-numeric company prefix"; //#2534 - $k[$j++] = false; //#2534 - return true; //#2534 - } //#2534 - }; //#2534 - $_.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2540 - if ($nt($k[--$j])) { //#2540 - $j -= 2; //#2540 - $k[$j++] = 'bwipp.GS1badImporterIndex#2540'; //#2540 - $k[$j++] = "Invalid importer index"; //#2540 - $k[$j++] = false; //#2540 - return true; //#2540 - } //#2540 - $j -= 3; //#2541 - }; //#2541 - $_.lintcsum = function() { - $k[$j++] = Infinity; //#2545 - var _LD = $k[--$j]; //#2545 - var _LE = $k[--$j]; //#2545 - var _LF = ((_LE.length % 2) == 0) ? 3 : 1; //#2546 - $k[$j++] = _LD; //#2547 - $k[$j++] = _LF; //#2547 - $forall(_LE, function() { //#2547 - var _LG = $k[--$j]; //#2547 - var _LH = $k[--$j]; //#2547 - $k[$j++] = $f(_LG - 48) * _LH; //#2547 - $k[$j++] = $f(4 - _LH); //#2547 - }); //#2547 - $j--; //#2547 - var _LI = $counttomark() + 1; //#2548 - $k[$j++] = 0; //#2548 - for (var _LJ = 0, _LK = _LI - 1; _LJ < _LK; _LJ++) { //#2548 - var _LL = $k[--$j]; //#2548 - var _LM = $k[--$j]; //#2548 - $k[$j++] = $f(_LM + _LL); //#2548 - } //#2548 - var _LN = $k[--$j]; //#2548 - var _LO = $k[--$j]; //#2548 - $k[$j++] = _LN; //#2548 - $k[$j++] = _LO; //#2548 - $j--; //#2548 - if (($k[--$j] % 10) != 0) { //#2549 - $j--; //#2549 - $k[$j++] = 'bwipp.GS1badChecksum#2549'; //#2549 - $k[$j++] = "Bad checksum"; //#2549 - $k[$j++] = false; //#2549 - return true; //#2549 + } //#2507 + if (!bwipp_gs1process.__2521__) { //#2521 + $_ = Object.create($_); //#2521 + $k[$j++] = Infinity; //#2514 + var _Pk = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2519 + for (var _Pl = 0, _Pm = _Pk.length; _Pl < _Pm; _Pl++) { //#2520 + var _Pn = $get(_Pk, _Pl); //#2520 + $k[$j++] = _Pn; //#2520 + $k[$j++] = _Pn; //#2520 + } //#2520 + $_.aifixed = $d(); //#2520 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2520 + bwipp_gs1process.__2521__ = 1; //#2520 + $_ = Object.getPrototypeOf($_); //#2520 + } //#2520 + $k[$j++] = Infinity; //#2523 + var _Pq = $_.ais; //#2524 + for (var _Pr = 0, _Ps = _Pq.length; _Pr < _Ps; _Pr++) { //#2531 + var _Pt = $get(_Pq, _Pr); //#2531 + $k[$j++] = true; //#2530 + $k[$j++] = _Pt; //#2530 + if (_Pt.length >= 2) { //#2529 + var _Px = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2527 + if (_Px) { //#2527 + $j--; //#2527 + $k[$j++] = false; //#2527 + } //#2527 + } else { //#2529 + $j--; //#2529 + } //#2529 + } //#2529 + $_.fncs = $a(); //#2529 + if (!bwipp_gs1process.__2556__) { //#2556 + $_ = Object.create($_); //#2556 + $k[$j++] = Infinity; //#2537 + $k[$j++] = 0; //#2539 + for (var _Pz = 0, _Q0 = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Pz < _Q0; _Pz++) { //#2539 + var _Q2 = $k[--$j]; //#2539 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Pz); //#2539 + $k[$j++] = _Q2; //#2539 + $k[$j++] = $f(_Q2 + 1); //#2539 + } //#2539 + $j--; //#2539 + $_.cset82 = $d(); //#2540 + $k[$j++] = Infinity; //#2542 + $k[$j++] = 0; //#2544 + for (var _Q4 = 0, _Q5 = "#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".length; _Q4 < _Q5; _Q4++) { //#2544 + var _Q7 = $k[--$j]; //#2544 + $k[$j++] = $get("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _Q4); //#2544 + $k[$j++] = _Q7; //#2544 + $k[$j++] = $f(_Q7 + 1); //#2544 + } //#2544 + $j--; //#2544 + $_.cset39 = $d(); //#2545 + $k[$j++] = Infinity; //#2547 + $k[$j++] = 0; //#2549 + for (var _Q9 = 0, _QA = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _Q9 < _QA; _Q9++) { //#2549 + var _QC = $k[--$j]; //#2549 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _Q9); //#2549 + $k[$j++] = _QC; //#2549 + $k[$j++] = $f(_QC + 1); //#2549 } //#2549 - }; //#2549 - if (!bwipp_gs1process.__2562__) { //#2562 - $_ = Object.create($_); //#2562 - $k[$j++] = Infinity; //#2555 - $k[$j++] = 0; //#2555 - for (var _LQ = 0, _LR = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _LQ < _LR; _LQ++) { //#2555 - var _LT = $k[--$j]; //#2555 - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _LQ); //#2555 - $k[$j++] = _LT; //#2555 - $k[$j++] = $f(_LT + 1); //#2555 - } //#2555 - $j--; //#2555 - $_.cset82 = $d(); //#2556 - $k[$j++] = Infinity; //#2560 - $k[$j++] = 0; //#2560 - for (var _LV = 0, _LW = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _LV < _LW; _LV++) { //#2560 - var _LY = $k[--$j]; //#2560 - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _LV); //#2560 - $k[$j++] = _LY; //#2560 - $k[$j++] = $f(_LY + 1); //#2560 + $j--; //#2549 + $_.cset32 = $d(); //#2550 + $k[$j++] = Infinity; //#2552 + $k[$j++] = 0; //#2554 + for (var _QE = 0, _QF = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".length; _QE < _QF; _QE++) { //#2554 + var _QH = $k[--$j]; //#2554 + $k[$j++] = $get("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", _QE); //#2554 + $k[$j++] = _QH; //#2554 + $k[$j++] = $f(_QH + 1); //#2554 + } //#2554 + $j--; //#2554 + $_.cset64 = $d(); //#2555 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2555 + bwipp_gs1process.__2556__ = 1; //#2555 + $_ = Object.getPrototypeOf($_); //#2555 + } //#2555 + $_.lintnumeric = function() { + var _QK = $k[--$j]; //#2559 + $k[$j++] = true; //#2559 + $forall(_QK, function() { //#2559 + var _QL = $k[--$j]; //#2559 + if ((_QL < 48) || (_QL > 57)) { //#2559 + $j--; //#2559 + $k[$j++] = false; //#2559 + return true; //#2559 + } //#2559 + }); //#2559 + if ($nt($k[--$j])) { //#2560 + $j--; //#2560 + $k[$j++] = 'bwipp.GS1notNumeric#2560'; //#2560 + $k[$j++] = "Not numeric"; //#2560 + $k[$j++] = false; //#2560 + return true; //#2560 } //#2560 - $j--; //#2560 - $_.cset32 = $d(); //#2561 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2561 - bwipp_gs1process.__2562__ = 1; //#2561 - $_ = Object.getPrototypeOf($_); //#2561 - } //#2561 - $_.lintcsumalpha = function() { - var _Lb = $k[--$j]; //#2565 - $k[$j++] = _Lb; //#2565 - if (_Lb.length < 2) { //#2565 - $j -= 2; //#2565 - $k[$j++] = 'bwipp.GS1alphaTooShort#2565'; //#2565 - $k[$j++] = "Alphanumeric string is too short to check"; //#2565 + }; //#2560 + $_.lintcset82 = function() { + var _QN = $k[--$j]; //#2564 + $k[$j++] = true; //#2564 + $forall(_QN, function() { //#2564 + var _QQ = $get($_.cset82, $k[--$j]) !== undefined; //#2564 + if (!_QQ) { //#2564 + $j--; //#2564 + $k[$j++] = false; //#2564 + return true; //#2564 + } //#2564 + }); //#2564 + if ($nt($k[--$j])) { //#2565 + $j--; //#2565 + $k[$j++] = 'bwipp.GS1badCSET82character#2565'; //#2565 + $k[$j++] = "Invalid CSET 82 character"; //#2565 $k[$j++] = false; //#2565 return true; //#2565 } //#2565 - var _Lc = $k[--$j]; //#2566 - $k[$j++] = _Lc; //#2568 - $k[$j++] = _Lc.length - 2; //#2568 - $k[$j++] = $geti(_Lc, 0, _Lc.length - 2); //#2568 - $k[$j++] = Infinity; //#2568 - var _Le = $k[--$j]; //#2568 - var _Lf = $k[--$j]; //#2568 - $k[$j++] = _Le; //#2570 - $forall(_Lf, function() { //#2570 - var _Lg = $k[--$j]; //#2569 - var _Li = $get($_.cset82, _Lg) !== undefined; //#2569 - $k[$j++] = _Lg; //#2569 - if (_Li) { //#2569 - var _Ll = $get($_.cset82, $k[--$j]); //#2569 - $k[$j++] = _Ll; //#2569 - } else { //#2569 - $k[$j++] = -1; //#2569 + }; //#2565 + $_.lintcset39 = function() { + var _QS = $k[--$j]; //#2569 + $k[$j++] = true; //#2569 + $forall(_QS, function() { //#2569 + var _QV = $get($_.cset39, $k[--$j]) !== undefined; //#2569 + if (!_QV) { //#2569 + $j--; //#2569 + $k[$j++] = false; //#2569 return true; //#2569 } //#2569 }); //#2569 - var _Lm = $k[--$j]; //#2571 - $k[$j++] = _Lm; //#2571 - if (_Lm == -1) { //#2571 - $cleartomark(); //#2571 - $j -= 3; //#2571 - $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2571'; //#2571 - $k[$j++] = "Unknown CSET 82 character"; //#2571 - $k[$j++] = false; //#2571 - return true; //#2571 - } //#2571 - $astore($a($counttomark())); //#2572 - var _Lp = $k[--$j]; //#2572 - var _Lq = $k[--$j]; //#2572 - $k[$j++] = _Lp; //#2572 - $k[$j++] = _Lq; //#2572 - $j--; //#2572 - var _Lr = $k[--$j]; //#2573 - var _Ls = $k[--$j]; //#2573 - var _Lu = $geti($k[--$j], _Ls, 2); //#2574 - $k[$j++] = _Lr; //#2574 - $k[$j++] = _Lu; //#2574 - $k[$j++] = Infinity; //#2574 - var _Lv = $k[--$j]; //#2574 - var _Lw = $k[--$j]; //#2574 - $k[$j++] = _Lv; //#2576 - $forall(_Lw, function() { //#2576 - var _Lx = $k[--$j]; //#2575 - var _Lz = $get($_.cset32, _Lx) !== undefined; //#2575 - $k[$j++] = _Lx; //#2575 - if (_Lz) { //#2575 - var _M2 = $get($_.cset32, $k[--$j]); //#2575 - $k[$j++] = _M2; //#2575 - } else { //#2575 - $k[$j++] = -1; //#2575 + if ($nt($k[--$j])) { //#2570 + $j--; //#2570 + $k[$j++] = 'bwipp.GS1badCSET39character#2570'; //#2570 + $k[$j++] = "Invalid CSET 39 character"; //#2570 + $k[$j++] = false; //#2570 + return true; //#2570 + } //#2570 + }; //#2570 + $_.lintcset64 = function() { + var _QX = $k[--$j]; //#2575 + $k[$j++] = true; //#2575 + $forall(_QX, function() { //#2575 + var _QY = $k[--$j]; //#2575 + var _Qa = $get($_.cset64, _QY) !== undefined; //#2575 + if ((!_Qa) && (_QY != 61)) { //#2575 + $j--; //#2575 + $k[$j++] = false; //#2575 return true; //#2575 } //#2575 }); //#2575 - var _M3 = $k[--$j]; //#2577 - $k[$j++] = _M3; //#2577 - if (_M3 == -1) { //#2577 - $cleartomark(); //#2577 - $j -= 2; //#2577 - $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2577'; //#2577 - $k[$j++] = "Unknown CSET 32 character"; //#2577 - $k[$j++] = false; //#2577 - return true; //#2577 - } //#2577 - $astore($a($counttomark())); //#2578 - var _M6 = $k[--$j]; //#2578 - var _M7 = $k[--$j]; //#2578 - $k[$j++] = _M6; //#2578 - $k[$j++] = _M7; //#2578 - $j--; //#2578 - var _M8 = $k[--$j]; //#2579 - var _MB = $k[--$j]; //#2579 - var _MC = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2580 - var _MD = _MB.length; //#2582 - $k[$j++] = $f(($get(_M8, 0) << 5) + $get(_M8, 1)); //#2582 - $k[$j++] = _MB; //#2582 - $k[$j++] = _MC; //#2582 - $k[$j++] = _MD; //#2582 - if (_MD > _MC.length) { //#2582 - $j -= 5; //#2582 - $k[$j++] = 'bwipp.GS1alphaTooLong#2582'; //#2582 - $k[$j++] = "Alphanumeric string is too long to check"; //#2582 - $k[$j++] = false; //#2582 - return true; //#2582 - } //#2582 - var _ME = $k[--$j]; //#2583 - var _MG = $geti($k[--$j], 0, _ME); //#2583 - for (var _MH = 0, _MI = _MG.length; _MH < _MI; _MH++) { //#2583 - var _MK = $k[--$j]; //#2583 - $k[$j++] = $get(_MG, _MH); //#2583 - $k[$j++] = _MK; //#2583 + if ($nt($k[--$j])) { //#2576 + $j--; //#2576 + $k[$j++] = 'bwipp.GS1badCSET64character#2576'; //#2576 + $k[$j++] = "Invalid CSET 64 character"; //#2576 + $k[$j++] = false; //#2576 + return true; //#2576 + } //#2576 + }; //#2576 + $_.lintkey = function() { + var _Qc = $k[--$j]; //#2580 + $k[$j++] = _Qc; //#2580 + if (_Qc.length < 2) { //#2580 + $j -= 2; //#2580 + $k[$j++] = 'bwipp.GS1keyTooShort#2580'; //#2580 + $k[$j++] = "Key is too short"; //#2580 + $k[$j++] = false; //#2580 + return true; //#2580 + } //#2580 + var _Qd = $k[--$j]; //#2581 + var _Qe = $get(_Qd, 0); //#2581 + var _Qf = $get(_Qd, 1); //#2582 + if (((_Qe < 48) || (_Qe > 57)) || ((_Qf < 48) || (_Qf > 57))) { //#2584 + $j--; //#2583 + $k[$j++] = 'bwipp.GS1badGCP#2583'; //#2583 + $k[$j++] = "Non-numeric company prefix"; //#2583 + $k[$j++] = false; //#2583 + return true; //#2583 } //#2583 - var _ML = $k[--$j]; //#2584 - $k[$j++] = 0; //#2584 - $forall(_ML, function() { //#2584 - var _MM = $k[--$j]; //#2584 - var _MN = $k[--$j]; //#2584 - var _MO = $k[--$j]; //#2584 - $k[$j++] = $f(_MN + (_MO * _MM)); //#2584 - }); //#2584 - var _MP = $k[--$j]; //#2584 - if ($k[--$j] != (_MP % 1021)) { //#2585 - $j--; //#2585 - $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2585'; //#2585 - $k[$j++] = "Bad alphanumeric check characters"; //#2585 - $k[$j++] = false; //#2585 - return true; //#2585 - } //#2585 - }; //#2585 - if (!bwipp_gs1process.__2609__) { //#2609 - $_ = Object.create($_); //#2609 - $k[$j++] = Infinity; //#2608 - var _MR = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2607 - for (var _MS = 0, _MT = _MR.length; _MS < _MT; _MS++) { //#2608 - var _MU = $get(_MR, _MS); //#2608 - $k[$j++] = _MU; //#2608 - $k[$j++] = _MU; //#2608 + }; //#2583 + $_.lintimporteridx = function() { + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2589 + if ($nt($k[--$j])) { //#2589 + $j -= 2; //#2589 + $k[$j++] = 'bwipp.GS1badImporterIndex#2589'; //#2589 + $k[$j++] = "Invalid importer index"; //#2589 + $k[$j++] = false; //#2589 + return true; //#2589 + } //#2589 + $j -= 3; //#2590 + }; //#2590 + $_.lintcsum = function() { + $k[$j++] = Infinity; //#2594 + var _Qi = $k[--$j]; //#2594 + var _Qj = $k[--$j]; //#2594 + var _Qk = ((_Qj.length % 2) == 0) ? 3 : 1; //#2595 + $k[$j++] = _Qi; //#2596 + $k[$j++] = _Qk; //#2596 + $forall(_Qj, function() { //#2596 + var _Ql = $k[--$j]; //#2596 + var _Qm = $k[--$j]; //#2596 + $k[$j++] = $f(_Ql - 48) * _Qm; //#2596 + $k[$j++] = $f(4 - _Qm); //#2596 + }); //#2596 + $j--; //#2596 + var _Qn = $counttomark() + 1; //#2597 + $k[$j++] = 0; //#2597 + for (var _Qo = 0, _Qp = _Qn - 1; _Qo < _Qp; _Qo++) { //#2597 + var _Qq = $k[--$j]; //#2597 + var _Qr = $k[--$j]; //#2597 + $k[$j++] = $f(_Qr + _Qq); //#2597 + } //#2597 + var _Qs = $k[--$j]; //#2597 + var _Qt = $k[--$j]; //#2597 + $k[$j++] = _Qs; //#2597 + $k[$j++] = _Qt; //#2597 + $j--; //#2597 + if (($k[--$j] % 10) != 0) { //#2598 + $j--; //#2598 + $k[$j++] = 'bwipp.GS1badChecksum#2598'; //#2598 + $k[$j++] = "Bad checksum"; //#2598 + $k[$j++] = false; //#2598 + return true; //#2598 + } //#2598 + }; //#2598 + $_.lintcsumalpha = function() { + var _Qv = $k[--$j]; //#2602 + $k[$j++] = _Qv; //#2602 + if (_Qv.length < 2) { //#2602 + $j -= 2; //#2602 + $k[$j++] = 'bwipp.GS1alphaTooShort#2602'; //#2602 + $k[$j++] = "Alphanumeric string is too short to check"; //#2602 + $k[$j++] = false; //#2602 + return true; //#2602 + } //#2602 + var _Qw = $k[--$j]; //#2603 + $k[$j++] = _Qw; //#2605 + $k[$j++] = _Qw.length - 2; //#2605 + $k[$j++] = $geti(_Qw, 0, _Qw.length - 2); //#2605 + $k[$j++] = Infinity; //#2605 + var _Qy = $k[--$j]; //#2605 + var _Qz = $k[--$j]; //#2605 + $k[$j++] = _Qy; //#2607 + $forall(_Qz, function() { //#2607 + var _R0 = $k[--$j]; //#2606 + var _R2 = $get($_.cset82, _R0) !== undefined; //#2606 + $k[$j++] = _R0; //#2606 + if (_R2) { //#2606 + var _R5 = $get($_.cset82, $k[--$j]); //#2606 + $k[$j++] = _R5; //#2606 + } else { //#2606 + $k[$j++] = -1; //#2606 + return true; //#2606 + } //#2606 + }); //#2606 + var _R6 = $k[--$j]; //#2608 + $k[$j++] = _R6; //#2608 + if (_R6 == -1) { //#2608 + $cleartomark(); //#2608 + $j -= 3; //#2608 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2608'; //#2608 + $k[$j++] = "Unknown CSET 82 character"; //#2608 + $k[$j++] = false; //#2608 + return true; //#2608 } //#2608 - $_.iso3166 = $d(); //#2608 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2608 - bwipp_gs1process.__2609__ = 1; //#2608 - $_ = Object.getPrototypeOf($_); //#2608 - } //#2608 + $astore($a($counttomark())); //#2609 + var _R9 = $k[--$j]; //#2609 + var _RA = $k[--$j]; //#2609 + $k[$j++] = _R9; //#2609 + $k[$j++] = _RA; //#2609 + $j--; //#2609 + var _RB = $k[--$j]; //#2610 + var _RC = $k[--$j]; //#2610 + var _RE = $geti($k[--$j], _RC, 2); //#2611 + $k[$j++] = _RB; //#2611 + $k[$j++] = _RE; //#2611 + $k[$j++] = Infinity; //#2611 + var _RF = $k[--$j]; //#2611 + var _RG = $k[--$j]; //#2611 + $k[$j++] = _RF; //#2613 + $forall(_RG, function() { //#2613 + var _RH = $k[--$j]; //#2612 + var _RJ = $get($_.cset32, _RH) !== undefined; //#2612 + $k[$j++] = _RH; //#2612 + if (_RJ) { //#2612 + var _RM = $get($_.cset32, $k[--$j]); //#2612 + $k[$j++] = _RM; //#2612 + } else { //#2612 + $k[$j++] = -1; //#2612 + return true; //#2612 + } //#2612 + }); //#2612 + var _RN = $k[--$j]; //#2614 + $k[$j++] = _RN; //#2614 + if (_RN == -1) { //#2614 + $cleartomark(); //#2614 + $j -= 2; //#2614 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2614'; //#2614 + $k[$j++] = "Unknown CSET 32 character"; //#2614 + $k[$j++] = false; //#2614 + return true; //#2614 + } //#2614 + $astore($a($counttomark())); //#2615 + var _RQ = $k[--$j]; //#2615 + var _RR = $k[--$j]; //#2615 + $k[$j++] = _RQ; //#2615 + $k[$j++] = _RR; //#2615 + $j--; //#2615 + var _RS = $k[--$j]; //#2616 + var _RV = $k[--$j]; //#2616 + var _RW = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2617 + var _RX = _RV.length; //#2619 + $k[$j++] = $f(($get(_RS, 0) << 5) + $get(_RS, 1)); //#2619 + $k[$j++] = _RV; //#2619 + $k[$j++] = _RW; //#2619 + $k[$j++] = _RX; //#2619 + if (_RX > _RW.length) { //#2619 + $j -= 5; //#2619 + $k[$j++] = 'bwipp.GS1alphaTooLong#2619'; //#2619 + $k[$j++] = "Alphanumeric string is too long to check"; //#2619 + $k[$j++] = false; //#2619 + return true; //#2619 + } //#2619 + var _RY = $k[--$j]; //#2620 + var _Ra = $geti($k[--$j], 0, _RY); //#2620 + for (var _Rb = 0, _Rc = _Ra.length; _Rb < _Rc; _Rb++) { //#2620 + var _Re = $k[--$j]; //#2620 + $k[$j++] = $get(_Ra, _Rb); //#2620 + $k[$j++] = _Re; //#2620 + } //#2620 + var _Rf = $k[--$j]; //#2621 + $k[$j++] = 0; //#2621 + $forall(_Rf, function() { //#2621 + var _Rg = $k[--$j]; //#2621 + var _Rh = $k[--$j]; //#2621 + var _Ri = $k[--$j]; //#2621 + $k[$j++] = $f(_Rh + (_Ri * _Rg)); //#2621 + }); //#2621 + var _Rj = $k[--$j]; //#2621 + if ($k[--$j] != (_Rj % 1021)) { //#2622 + $j--; //#2622 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2622'; //#2622 + $k[$j++] = "Bad alphanumeric check characters"; //#2622 + $k[$j++] = false; //#2622 + return true; //#2622 + } //#2622 + }; //#2622 + if (!bwipp_gs1process.__2646__) { //#2646 + $_ = Object.create($_); //#2646 + $k[$j++] = Infinity; //#2626 + var _Rl = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2644 + for (var _Rm = 0, _Rn = _Rl.length; _Rm < _Rn; _Rm++) { //#2645 + var _Ro = $get(_Rl, _Rm); //#2645 + $k[$j++] = _Ro; //#2645 + $k[$j++] = _Ro; //#2645 + } //#2645 + $_.iso3166 = $d(); //#2645 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2645 + bwipp_gs1process.__2646__ = 1; //#2645 + $_ = Object.getPrototypeOf($_); //#2645 + } //#2645 $_.lintiso3166 = function() { - var _MZ = $get($_.iso3166, $k[--$j]) !== undefined; //#2612 - if (!_MZ) { //#2612 - $j--; //#2612 - $k[$j++] = 'bwipp.GS1UnknownCountry#2612'; //#2612 - $k[$j++] = "Unknown country code"; //#2612 - $k[$j++] = false; //#2612 - return true; //#2612 - } //#2612 - }; //#2612 + var _Rt = $get($_.iso3166, $k[--$j]) !== undefined; //#2649 + if (!_Rt) { //#2649 + $j--; //#2649 + $k[$j++] = 'bwipp.GS1UnknownCountry#2649'; //#2649 + $k[$j++] = "Unknown country code"; //#2649 + $k[$j++] = false; //#2649 + return true; //#2649 + } //#2649 + }; //#2649 $_.lintiso3166999 = function() { - var _Ma = $k[--$j]; //#2616 - $k[$j++] = _Ma; //#2620 - if ($ne(_Ma, '999')) { //#2619 - var _Md = $get($_.iso3166, $k[--$j]) !== undefined; //#2617 - if (!_Md) { //#2617 - $j--; //#2617 - $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2617'; //#2617 - $k[$j++] = "Unknown country code or not 999"; //#2617 - $k[$j++] = false; //#2617 - return true; //#2617 - } //#2617 - } else { //#2619 - $j--; //#2619 - } //#2619 - }; //#2619 + var _Ru = $k[--$j]; //#2653 + $k[$j++] = _Ru; //#2657 + if ($ne(_Ru, '999')) { //#2656 + var _Rx = $get($_.iso3166, $k[--$j]) !== undefined; //#2654 + if (!_Rx) { //#2654 + $j--; //#2654 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2654'; //#2654 + $k[$j++] = "Unknown country code or not 999"; //#2654 + $k[$j++] = false; //#2654 + return true; //#2654 + } //#2654 + } else { //#2656 + $j--; //#2656 + } //#2656 + }; //#2656 $_.lintiso3166list = function() { - var _Me = $k[--$j]; //#2624 - $k[$j++] = _Me; //#2626 - if ((_Me.length % 3) != 0) { //#2626 - $j -= 2; //#2625 - $k[$j++] = 'bwipp.GS1BadCountryListLength#2625'; //#2625 - $k[$j++] = "Not a group of three-digit country codes"; //#2625 - $k[$j++] = false; //#2625 - return true; //#2625 - } //#2625 - var _Mf = $k[--$j]; //#2628 - $k[$j++] = _Mf; //#2631 - $k[$j++] = true; //#2631 - for (var _Mh = 0, _Mg = _Mf.length - 1; _Mh <= _Mg; _Mh += 3) { //#2631 - var _Mi = $k[--$j]; //#2629 - var _Mj = $k[--$j]; //#2629 - var _Mm = $get($_.iso3166, $geti(_Mj, _Mh, 3)) !== undefined; //#2630 - $k[$j++] = _Mj; //#2630 - $k[$j++] = _Mi; //#2630 - if (!_Mm) { //#2630 - $j -= 2; //#2630 - $k[$j++] = false; //#2630 - break; //#2630 - } //#2630 - } //#2630 - if ($nt($k[--$j])) { //#2632 - $j--; //#2632 - $k[$j++] = 'bwipp.GS1UnknownCountry#2632'; //#2632 - $k[$j++] = "Unknown country code"; //#2632 - $k[$j++] = false; //#2632 - return true; //#2632 - } //#2632 - $j--; //#2633 - }; //#2633 - if (!bwipp_gs1process.__2663__) { //#2663 - $_ = Object.create($_); //#2663 - $k[$j++] = Infinity; //#2662 - var _Mo = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2661 - for (var _Mp = 0, _Mq = _Mo.length; _Mp < _Mq; _Mp++) { //#2662 - var _Mr = $get(_Mo, _Mp); //#2662 - $k[$j++] = _Mr; //#2662 - $k[$j++] = _Mr; //#2662 + var _Ry = $k[--$j]; //#2661 + $k[$j++] = _Ry; //#2663 + if ((_Ry.length % 3) != 0) { //#2663 + $j -= 2; //#2662 + $k[$j++] = 'bwipp.GS1BadCountryListLength#2662'; //#2662 + $k[$j++] = "Not a group of three-digit country codes"; //#2662 + $k[$j++] = false; //#2662 + return true; //#2662 } //#2662 - $_.iso3166alpha2 = $d(); //#2662 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2662 - bwipp_gs1process.__2663__ = 1; //#2662 - $_ = Object.getPrototypeOf($_); //#2662 - } //#2662 + var _Rz = $k[--$j]; //#2665 + $k[$j++] = _Rz; //#2668 + $k[$j++] = true; //#2668 + for (var _S1 = 0, _S0 = _Rz.length - 1; _S1 <= _S0; _S1 += 3) { //#2668 + var _S2 = $k[--$j]; //#2666 + var _S3 = $k[--$j]; //#2666 + var _S6 = $get($_.iso3166, $geti(_S3, _S1, 3)) !== undefined; //#2667 + $k[$j++] = _S3; //#2667 + $k[$j++] = _S2; //#2667 + if (!_S6) { //#2667 + $j -= 2; //#2667 + $k[$j++] = false; //#2667 + break; //#2667 + } //#2667 + } //#2667 + if ($nt($k[--$j])) { //#2669 + $j--; //#2669 + $k[$j++] = 'bwipp.GS1UnknownCountry#2669'; //#2669 + $k[$j++] = "Unknown country code"; //#2669 + $k[$j++] = false; //#2669 + return true; //#2669 + } //#2669 + $j--; //#2670 + }; //#2670 + if (!bwipp_gs1process.__2700__) { //#2700 + $_ = Object.create($_); //#2700 + $k[$j++] = Infinity; //#2674 + var _S8 = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2698 + for (var _S9 = 0, _SA = _S8.length; _S9 < _SA; _S9++) { //#2699 + var _SB = $get(_S8, _S9); //#2699 + $k[$j++] = _SB; //#2699 + $k[$j++] = _SB; //#2699 + } //#2699 + $_.iso3166alpha2 = $d(); //#2699 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2699 + bwipp_gs1process.__2700__ = 1; //#2699 + $_ = Object.getPrototypeOf($_); //#2699 + } //#2699 $_.lintiso3166alpha2 = function() { - var _Mw = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2666 - if (!_Mw) { //#2666 - $j--; //#2666 - $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2666'; //#2666 - $k[$j++] = "Unknown country alpha code"; //#2666 - $k[$j++] = false; //#2666 - return true; //#2666 - } //#2666 - }; //#2666 - if (!bwipp_gs1process.__2694__) { //#2694 - $_ = Object.create($_); //#2694 - $k[$j++] = Infinity; //#2693 - var _Mx = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2692 - for (var _My = 0, _Mz = _Mx.length; _My < _Mz; _My++) { //#2693 - var _N0 = $get(_Mx, _My); //#2693 - $k[$j++] = _N0; //#2693 - $k[$j++] = _N0; //#2693 - } //#2693 - $_.iso4217 = $d(); //#2693 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2693 - bwipp_gs1process.__2694__ = 1; //#2693 - $_ = Object.getPrototypeOf($_); //#2693 - } //#2693 + var _SG = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2703 + if (!_SG) { //#2703 + $j--; //#2703 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2703'; //#2703 + $k[$j++] = "Unknown country alpha code"; //#2703 + $k[$j++] = false; //#2703 + return true; //#2703 + } //#2703 + }; //#2703 + if (!bwipp_gs1process.__2731__) { //#2731 + $_ = Object.create($_); //#2731 + $k[$j++] = Infinity; //#2707 + var _SH = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2729 + for (var _SI = 0, _SJ = _SH.length; _SI < _SJ; _SI++) { //#2730 + var _SK = $get(_SH, _SI); //#2730 + $k[$j++] = _SK; //#2730 + $k[$j++] = _SK; //#2730 + } //#2730 + $_.iso4217 = $d(); //#2730 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2730 + bwipp_gs1process.__2731__ = 1; //#2730 + $_ = Object.getPrototypeOf($_); //#2730 + } //#2730 $_.lintiso4217 = function() { - var _N5 = $get($_.iso4217, $k[--$j]) !== undefined; //#2697 - if (!_N5) { //#2697 - $j--; //#2697 - $k[$j++] = 'bwipp.GS1UnknownCurrency#2697'; //#2697 - $k[$j++] = "Unknown currency code"; //#2697 - $k[$j++] = false; //#2697 - return true; //#2697 - } //#2697 - }; //#2697 + var _SP = $get($_.iso4217, $k[--$j]) !== undefined; //#2734 + if (!_SP) { //#2734 + $j--; //#2734 + $k[$j++] = 'bwipp.GS1UnknownCurrency#2734'; //#2734 + $k[$j++] = "Unknown currency code"; //#2734 + $k[$j++] = false; //#2734 + return true; //#2734 + } //#2734 + }; //#2734 $_.lintiban = function() { - var _N6 = $k[--$j]; //#2701 - $k[$j++] = _N6; //#2701 - if (_N6.length <= 4) { //#2701 - $j -= 2; //#2701 - $k[$j++] = 'bwipp.GS1tooShort#2701'; //#2701 - $k[$j++] = "IBAN too short"; //#2701 - $k[$j++] = false; //#2701 - return true; //#2701 - } //#2701 - var _N7 = $k[--$j]; //#2702 - $k[$j++] = _N7; //#2707 - $k[$j++] = true; //#2707 - $forall(_N7, function() { //#2707 - var _N8 = $s(1); //#2703 - $put(_N8, 0, $k[--$j]); //#2703 - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _N8); //#2705 - if ($nt($k[--$j])) { //#2705 - $j -= 2; //#2705 - $k[$j++] = false; //#2705 - return true; //#2705 - } //#2705 - $j -= 3; //#2706 - }); //#2706 - if ($nt($k[--$j])) { //#2708 - $j--; //#2708 - $k[$j++] = 'bwipp.GS1badIBANcharacter#2708'; //#2708 - $k[$j++] = "Invalid IBAN character"; //#2708 - $k[$j++] = false; //#2708 - return true; //#2708 - } //#2708 - var _NC = $k[--$j]; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = Infinity; //#2709 - var _ND = $k[--$j]; //#2709 - var _NE = $k[--$j]; //#2709 - $k[$j++] = _ND; //#2709 - $k[$j++] = _NE; //#2709 - $k[$j++] = Infinity; //#2709 - var _NF = $k[--$j]; //#2709 - var _NG = $k[--$j]; //#2709 - $k[$j++] = _NF; //#2709 - $forall(_NG); //#2709 - $r($counttomark(), -4); //#2709 - $astore($a($counttomark())); //#2709 - var _NK = $k[--$j]; //#2709 - var _NL = $k[--$j]; //#2709 - $k[$j++] = _NK; //#2709 - $k[$j++] = _NL; //#2709 - $j--; //#2709 - $forall($k[--$j], function() { //#2711 - var _NO = $f($k[--$j] - 48); //#2710 - $k[$j++] = _NO; //#2710 - if (_NO > 9) { //#2710 - var _NQ = $f($k[--$j] - 7); //#2710 - $k[$j++] = ~~(_NQ / 10); //#2710 - $k[$j++] = _NQ % 10; //#2710 - } //#2710 - }); //#2710 - $astore($a($counttomark())); //#2711 - var _NT = $k[--$j]; //#2711 - var _NU = $k[--$j]; //#2711 - $k[$j++] = _NT; //#2711 - $k[$j++] = _NU; //#2711 - $j--; //#2711 - var _NV = $k[--$j]; //#2712 - $k[$j++] = 0; //#2712 - $forall(_NV, function() { //#2712 - var _NW = $k[--$j]; //#2712 - var _NX = $k[--$j]; //#2712 - $k[$j++] = ($f(_NW + (_NX * 10))) % 97; //#2712 - }); //#2712 - if ($k[--$j] != 1) { //#2713 - $j -= 2; //#2713 - $k[$j++] = 'bwipp.GS1badIBANchecksum#2713'; //#2713 - $k[$j++] = "IBAN checksum incorrect"; //#2713 - $k[$j++] = false; //#2713 - return true; //#2713 - } //#2713 - var _Na = $geti($k[--$j], 0, 2); //#2714 - $k[$j++] = _Na; //#2714 - $_.lintiso3166alpha2(); //#2714 - }; //#2714 - $_.lintzero = function() { - if ($ne($k[--$j], "0")) { //#2718 - $j--; //#2718 - $k[$j++] = 'bwipp.GS1zeroRequired#2718'; //#2718 - $k[$j++] = "Zero is required"; //#2718 - $k[$j++] = false; //#2718 - return true; //#2718 - } //#2718 - }; //#2718 - $_.lintnonzero = function() { - var _Nc = $k[--$j]; //#2722 - $k[$j++] = false; //#2722 - $forall(_Nc, function() { //#2722 - if ($k[--$j] != 48) { //#2722 - $j--; //#2722 - $k[$j++] = true; //#2722 - } //#2722 - }); //#2722 - if ($nt($k[--$j])) { //#2723 - $j--; //#2723 - $k[$j++] = 'bwipp.GS1zeroNotPermitted#2723'; //#2723 - $k[$j++] = "Zero not permitted"; //#2723 - $k[$j++] = false; //#2723 - return true; //#2723 - } //#2723 - }; //#2723 - $_.lintnozeroprefix = function() { - var _Nf = $k[--$j]; //#2727 - if ((_Nf.length > 1) && ($get(_Nf, 0) == 48)) { //#2729 - $j--; //#2728 - $k[$j++] = 'bwipp.GS1badZeroPrefix#2728'; //#2728 - $k[$j++] = "Zero prefix is not permitted"; //#2728 - $k[$j++] = false; //#2728 - return true; //#2728 - } //#2728 - }; //#2728 - $_.lintyymmd0 = function() { - var _Nh = $k[--$j]; //#2733 - var _Nj = $cvi($geti(_Nh, 2, 2)); //#2733 - $k[$j++] = _Nh; //#2733 - if ((_Nj < 1) || (_Nj > 12)) { //#2733 - $j--; //#2733 - $k[$j++] = 'bwipp.GS1badMonth#2733'; //#2733 - $k[$j++] = "Invalid month"; //#2733 - $k[$j++] = false; //#2733 - return true; //#2733 - } //#2733 - var _Nk = $k[--$j]; //#2734 - var _Nm = $cvi($geti(_Nk, 0, 2)); //#2734 - var _Nn = _Nm - 21; //#2735 - $k[$j++] = _Nk; //#2735 - $k[$j++] = _Nm; //#2735 - $k[$j++] = _Nn; //#2735 - if (_Nn >= 51) { //#2735 - $j--; //#2735 - var _No = $k[--$j]; //#2735 - $k[$j++] = $f(_No + 1900); //#2735 - } else { //#2735 - if ($k[--$j] <= -50) { //#2735 - var _Nq = $k[--$j]; //#2735 - $k[$j++] = $f(_Nq + 2100); //#2735 - } else { //#2735 - var _Nr = $k[--$j]; //#2735 - $k[$j++] = $f(_Nr + 2000); //#2735 - } //#2735 - } //#2735 - var _Ns = $k[--$j]; //#2736 - $k[$j++] = ((_Ns % 400) == 0) || (((_Ns % 4) == 0) && ((_Ns % 100) != 0)); //#2737 - $k[$j++] = Infinity; //#2737 - var _Nt = $k[--$j]; //#2737 - var _Nv = $k[--$j] ? 29 : 28; //#2737 - $k[$j++] = _Nt; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = _Nv; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - var _Nw = $a(); //#2737 - var _Nx = $k[--$j]; //#2738 - if ($get(_Nw, $cvi($geti(_Nx, 2, 2)) - 1) < $cvi($geti(_Nx, 4, 2))) { //#2739 - $j--; //#2739 - $k[$j++] = 'bwipp.GS1badDay#2739'; //#2739 - $k[$j++] = "Invalid day of month"; //#2739 - $k[$j++] = false; //#2739 - return true; //#2739 - } //#2739 - }; //#2739 - $_.lintyymmdd = function() { - var _O1 = $k[--$j]; //#2743 - $k[$j++] = _O1; //#2743 - if (_O1.length != 6) { //#2743 - $j--; //#2743 - $k[$j++] = 'bwipp.GS1badDateLength#2743'; //#2743 - $k[$j++] = "Invalid length for date"; //#2743 - $k[$j++] = false; //#2743 - return true; //#2743 - } //#2743 - var _O2 = $k[--$j]; //#2744 - $k[$j++] = _O2; //#2744 - if ($cvi($geti(_O2, 4, 2)) < 1) { //#2744 - $j--; //#2744 - $k[$j++] = 'bwipp.GS1badDay#2744'; //#2744 - $k[$j++] = "Invalid day of month"; //#2744 - $k[$j++] = false; //#2744 - return true; //#2744 - } //#2744 - $_.lintyymmd0(); //#2745 - }; //#2745 - $_.lintyymmddhh = function() { - var _O4 = $k[--$j]; //#2749 - $k[$j++] = _O4; //#2749 - if (_O4.length != 8) { //#2749 - $j--; //#2749 - $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2749'; //#2749 - $k[$j++] = "Invalid length for date with hour"; //#2749 - $k[$j++] = false; //#2749 - return true; //#2749 - } //#2749 - var _O5 = $k[--$j]; //#2750 - $k[$j++] = _O5; //#2750 - if ($cvi($geti(_O5, 6, 2)) > 23) { //#2750 + var _SQ = $k[--$j]; //#2738 + $k[$j++] = _SQ; //#2738 + if (_SQ.length <= 4) { //#2738 + $j -= 2; //#2738 + $k[$j++] = 'bwipp.GS1tooShort#2738'; //#2738 + $k[$j++] = "IBAN too short"; //#2738 + $k[$j++] = false; //#2738 + return true; //#2738 + } //#2738 + var _SR = $k[--$j]; //#2739 + $k[$j++] = _SR; //#2744 + $k[$j++] = true; //#2744 + $forall(_SR, function() { //#2744 + var _SS = $s(1); //#2740 + $put(_SS, 0, $k[--$j]); //#2740 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _SS); //#2742 + if ($nt($k[--$j])) { //#2742 + $j -= 2; //#2742 + $k[$j++] = false; //#2742 + return true; //#2742 + } //#2742 + $j -= 3; //#2743 + }); //#2743 + if ($nt($k[--$j])) { //#2745 + $j--; //#2745 + $k[$j++] = 'bwipp.GS1badIBANcharacter#2745'; //#2745 + $k[$j++] = "Invalid IBAN character"; //#2745 + $k[$j++] = false; //#2745 + return true; //#2745 + } //#2745 + var _SW = $k[--$j]; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = Infinity; //#2746 + var _SX = $k[--$j]; //#2746 + var _SY = $k[--$j]; //#2746 + $k[$j++] = _SX; //#2746 + $k[$j++] = _SY; //#2746 + $k[$j++] = Infinity; //#2746 + var _SZ = $k[--$j]; //#2746 + var _Sa = $k[--$j]; //#2746 + $k[$j++] = _SZ; //#2746 + $forall(_Sa); //#2746 + $r($counttomark(), -4); //#2746 + $astore($a($counttomark())); //#2746 + var _Se = $k[--$j]; //#2746 + var _Sf = $k[--$j]; //#2746 + $k[$j++] = _Se; //#2746 + $k[$j++] = _Sf; //#2746 + $j--; //#2746 + $forall($k[--$j], function() { //#2748 + var _Si = $f($k[--$j] - 48); //#2747 + $k[$j++] = _Si; //#2747 + if (_Si > 9) { //#2747 + var _Sk = $f($k[--$j] - 7); //#2747 + $k[$j++] = ~~(_Sk / 10); //#2747 + $k[$j++] = _Sk % 10; //#2747 + } //#2747 + }); //#2747 + $astore($a($counttomark())); //#2748 + var _Sn = $k[--$j]; //#2748 + var _So = $k[--$j]; //#2748 + $k[$j++] = _Sn; //#2748 + $k[$j++] = _So; //#2748 + $j--; //#2748 + var _Sp = $k[--$j]; //#2749 + $k[$j++] = 0; //#2749 + $forall(_Sp, function() { //#2749 + var _Sq = $k[--$j]; //#2749 + var _Sr = $k[--$j]; //#2749 + $k[$j++] = ($f(_Sq + (_Sr * 10))) % 97; //#2749 + }); //#2749 + if ($k[--$j] != 1) { //#2750 $j -= 2; //#2750 - $k[$j++] = 'bwipp.GS1badHour#2750'; //#2750 - $k[$j++] = "Invalid hour of day"; //#2750 + $k[$j++] = 'bwipp.GS1badIBANchecksum#2750'; //#2750 + $k[$j++] = "IBAN checksum incorrect"; //#2750 $k[$j++] = false; //#2750 return true; //#2750 } //#2750 - var _O8 = $geti($k[--$j], 0, 6); //#2751 - $k[$j++] = _O8; //#2751 - $_.lintyymmdd(); //#2751 + var _Su = $geti($k[--$j], 0, 2); //#2751 + $k[$j++] = _Su; //#2751 + $_.lintiso3166alpha2(); //#2751 }; //#2751 - $_.linthhmm = function() { - var _O9 = $k[--$j]; //#2755 - $k[$j++] = _O9; //#2755 - if ($cvi($geti(_O9, 0, 2)) > 23) { //#2755 - $j -= 2; //#2755 - $k[$j++] = 'bwipp.GS1badHour#2755'; //#2755 - $k[$j++] = "Invalid hour of day"; //#2755 + $_.lintzero = function() { + if ($ne($k[--$j], "0")) { //#2755 + $j--; //#2755 + $k[$j++] = 'bwipp.GS1zeroRequired#2755'; //#2755 + $k[$j++] = "Zero is required"; //#2755 $k[$j++] = false; //#2755 return true; //#2755 } //#2755 - if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2756 - $j--; //#2756 - $k[$j++] = 'bwipp.GS1badMinute#2756'; //#2756 - $k[$j++] = "Invalid minute in the hour"; //#2756 - $k[$j++] = false; //#2756 - return true; //#2756 - } //#2756 - }; //#2756 - $_.lintmmoptss = function() { - var _OD = $k[--$j]; //#2760 - var _OE = _OD.length; //#2760 - $k[$j++] = _OD; //#2762 - if ((_OE != 2) && (_OE != 4)) { //#2762 - $j--; //#2761 - $k[$j++] = 'bwipp.GS1badTimeLength#2761'; //#2761 - $k[$j++] = "Invalid length for optional minutes and seconds"; //#2761 - $k[$j++] = false; //#2761 - return true; //#2761 - } //#2761 - var _OF = $k[--$j]; //#2763 - $k[$j++] = _OF; //#2763 - if ($cvi($geti(_OF, 0, 2)) > 59) { //#2763 - $j -= 2; //#2763 - $k[$j++] = 'bwipp.GS1badMinute#2763'; //#2763 - $k[$j++] = "Invalid minute in the hour"; //#2763 - $k[$j++] = false; //#2763 - return true; //#2763 - } //#2763 - var _OH = $k[--$j]; //#2764 - $k[$j++] = _OH; //#2766 - if (_OH.length >= 4) { //#2766 - var _OI = $k[--$j]; //#2765 - $k[$j++] = _OI; //#2765 - if ($cvi($geti(_OI, 2, 2)) > 59) { //#2765 - $j -= 2; //#2765 - $k[$j++] = 'bwipp.GS1badSecond#2765'; //#2765 - $k[$j++] = "Invalid second in the minute"; //#2765 - $k[$j++] = false; //#2765 - return true; //#2765 - } //#2765 + }; //#2755 + $_.lintnonzero = function() { + var _Sw = $k[--$j]; //#2759 + $k[$j++] = false; //#2759 + $forall(_Sw, function() { //#2759 + if ($k[--$j] != 48) { //#2759 + $j--; //#2759 + $k[$j++] = true; //#2759 + } //#2759 + }); //#2759 + if ($nt($k[--$j])) { //#2760 + $j--; //#2760 + $k[$j++] = 'bwipp.GS1zeroNotPermitted#2760'; //#2760 + $k[$j++] = "Zero not permitted"; //#2760 + $k[$j++] = false; //#2760 + return true; //#2760 + } //#2760 + }; //#2760 + $_.lintnozeroprefix = function() { + var _Sz = $k[--$j]; //#2764 + if ((_Sz.length > 1) && ($get(_Sz, 0) == 48)) { //#2766 + $j--; //#2765 + $k[$j++] = 'bwipp.GS1badZeroPrefix#2765'; //#2765 + $k[$j++] = "Zero prefix is not permitted"; //#2765 + $k[$j++] = false; //#2765 + return true; //#2765 } //#2765 - $j--; //#2767 - }; //#2767 - $_.lintyesno = function() { - var _OK = $k[--$j]; //#2771 - if ($ne(_OK, "0") && $ne(_OK, "1")) { //#2773 + }; //#2765 + $_.lintyymmd0 = function() { + var _T1 = $k[--$j]; //#2770 + var _T3 = $cvi($geti(_T1, 2, 2)); //#2770 + $k[$j++] = _T1; //#2770 + if ((_T3 < 1) || (_T3 > 12)) { //#2770 + $j--; //#2770 + $k[$j++] = 'bwipp.GS1badMonth#2770'; //#2770 + $k[$j++] = "Invalid month"; //#2770 + $k[$j++] = false; //#2770 + return true; //#2770 + } //#2770 + var _T4 = $k[--$j]; //#2771 + var _T6 = $cvi($geti(_T4, 0, 2)); //#2771 + var _T7 = _T6 - 21; //#2772 + $k[$j++] = _T4; //#2772 + $k[$j++] = _T6; //#2772 + $k[$j++] = _T7; //#2772 + if (_T7 >= 51) { //#2772 $j--; //#2772 - $k[$j++] = 'bwipp.GS1badBoolean#2772'; //#2772 - $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2772 - $k[$j++] = false; //#2772 - return true; //#2772 + var _T8 = $k[--$j]; //#2772 + $k[$j++] = $f(_T8 + 1900); //#2772 + } else { //#2772 + if ($k[--$j] <= -50) { //#2772 + var _TA = $k[--$j]; //#2772 + $k[$j++] = $f(_TA + 2100); //#2772 + } else { //#2772 + var _TB = $k[--$j]; //#2772 + $k[$j++] = $f(_TB + 2000); //#2772 + } //#2772 } //#2772 - }; //#2772 - $_.lintwinding = function() { - var _OL = $k[--$j]; //#2777 - if ($ne(_OL, "0") && ($ne(_OL, "1") && $ne(_OL, "9"))) { //#2779 - $j--; //#2778 - $k[$j++] = 'bwipp.GS1badWinding#2778'; //#2778 - $k[$j++] = "Invalid winding direction"; //#2778 - $k[$j++] = false; //#2778 - return true; //#2778 - } //#2778 - }; //#2778 - $_.lintpieceoftotal = function() { - var _OM = $k[--$j]; //#2783 - $k[$j++] = _OM; //#2783 - if ((_OM.length % 2) != 0) { //#2783 - $j -= 2; //#2783 - $k[$j++] = 'bwipp.GS1badPieceTotalLength#2783'; //#2783 - $k[$j++] = "Invalid piece/total length"; //#2783 - $k[$j++] = false; //#2783 - return true; //#2783 - } //#2783 - var _ON = $k[--$j]; //#2784 - var _OP = $cvi($geti(_ON, 0, ~~(_ON.length / 2))); //#2785 - $k[$j++] = _ON; //#2785 - $k[$j++] = _OP; //#2785 - if (_OP == 0) { //#2785 - $j -= 3; //#2785 - $k[$j++] = 'bwipp.GS1badPieceNumber#2785'; //#2785 - $k[$j++] = "Invalid piece number"; //#2785 - $k[$j++] = false; //#2785 - return true; //#2785 - } //#2785 - var _OQ = $k[--$j]; //#2786 - var _OR = $k[--$j]; //#2786 - var _OS = ~~(_OR.length / 2); //#2786 - var _OU = $cvi($geti(_OR, _OS, _OS)); //#2787 - $k[$j++] = _OQ; //#2787 - $k[$j++] = _OU; //#2787 - if (_OU == 0) { //#2787 - $j -= 3; //#2787 - $k[$j++] = 'bwipp.GS1badPieceTotal#2787'; //#2787 - $k[$j++] = "Invalid total number"; //#2787 + var _TC = $k[--$j]; //#2773 + $k[$j++] = ((_TC % 400) == 0) || (((_TC % 4) == 0) && ((_TC % 100) != 0)); //#2774 + $k[$j++] = Infinity; //#2774 + var _TD = $k[--$j]; //#2774 + var _TF = $k[--$j] ? 29 : 28; //#2774 + $k[$j++] = _TD; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = _TF; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + var _TG = $a(); //#2774 + var _TH = $k[--$j]; //#2775 + if ($get(_TG, $cvi($geti(_TH, 2, 2)) - 1) < $cvi($geti(_TH, 4, 2))) { //#2776 + $j--; //#2776 + $k[$j++] = 'bwipp.GS1badDay#2776'; //#2776 + $k[$j++] = "Invalid day of month"; //#2776 + $k[$j++] = false; //#2776 + return true; //#2776 + } //#2776 + }; //#2776 + $_.lintyymmdd = function() { + var _TL = $k[--$j]; //#2780 + $k[$j++] = _TL; //#2780 + if (_TL.length != 6) { //#2780 + $j--; //#2780 + $k[$j++] = 'bwipp.GS1badDateLength#2780'; //#2780 + $k[$j++] = "Invalid length for date"; //#2780 + $k[$j++] = false; //#2780 + return true; //#2780 + } //#2780 + var _TM = $k[--$j]; //#2781 + $k[$j++] = _TM; //#2781 + if ($cvi($geti(_TM, 4, 2)) < 1) { //#2781 + $j--; //#2781 + $k[$j++] = 'bwipp.GS1badDay#2781'; //#2781 + $k[$j++] = "Invalid day of month"; //#2781 + $k[$j++] = false; //#2781 + return true; //#2781 + } //#2781 + $_.lintyymmd0(); //#2782 + }; //#2782 + $_.lintyymmddhh = function() { + var _TO = $k[--$j]; //#2786 + $k[$j++] = _TO; //#2786 + if (_TO.length != 8) { //#2786 + $j--; //#2786 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2786'; //#2786 + $k[$j++] = "Invalid length for date with hour"; //#2786 + $k[$j++] = false; //#2786 + return true; //#2786 + } //#2786 + var _TP = $k[--$j]; //#2787 + $k[$j++] = _TP; //#2787 + if ($cvi($geti(_TP, 6, 2)) > 23) { //#2787 + $j -= 2; //#2787 + $k[$j++] = 'bwipp.GS1badHour#2787'; //#2787 + $k[$j++] = "Invalid hour of day"; //#2787 $k[$j++] = false; //#2787 return true; //#2787 } //#2787 - var _OV = $k[--$j]; //#2788 - if ($gt($k[--$j], _OV)) { //#2788 - $j--; //#2788 - $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2788'; //#2788 - $k[$j++] = "Piece number exceeds total"; //#2788 - $k[$j++] = false; //#2788 - return true; //#2788 - } //#2788 + var _TS = $geti($k[--$j], 0, 6); //#2788 + $k[$j++] = _TS; //#2788 + $_.lintyymmdd(); //#2788 }; //#2788 - $_.lintpcenc = function() { - for (;;) { //#2802 - $search($k[--$j], "%"); //#2793 - if ($nt($k[--$j])) { //#2793 - $j--; //#2793 - break; //#2793 - } //#2793 - $j -= 2; //#2794 - var _OZ = $k[--$j]; //#2794 - $k[$j++] = _OZ; //#2794 - if (_OZ.length < 2) { //#2794 - $j -= 2; //#2794 - $k[$j++] = 'bwipp.GS1badPercentEscape#2794'; //#2794 - $k[$j++] = "Invalid % escape"; //#2794 - $k[$j++] = false; //#2794 - break; //#2794 - } //#2794 - var _Oa = $k[--$j]; //#2795 - var _Ob = $geti(_Oa, 0, 2); //#2795 - $k[$j++] = _Oa; //#2800 - $k[$j++] = true; //#2800 - for (var _Oc = 0, _Od = _Ob.length; _Oc < _Od; _Oc++) { //#2800 - var _Of = $s(1); //#2796 - $put(_Of, 0, $get(_Ob, _Oc)); //#2796 - $search("0123456789ABCDEFabcdef", _Of); //#2798 - if ($nt($k[--$j])) { //#2798 - $j -= 2; //#2798 - $k[$j++] = false; //#2798 - break; //#2798 - } //#2798 - $j -= 3; //#2799 - } //#2799 - if ($nt($k[--$j])) { //#2801 - $j -= 2; //#2801 - $k[$j++] = 'bwipp.GS1badPercentChars#2801'; //#2801 - $k[$j++] = "Invalid characters for percent encoding"; //#2801 - $k[$j++] = false; //#2801 - break; //#2801 - } //#2801 - } //#2801 - }; //#2801 - $_.lintcouponcode = function() { - var _Oi = $k[--$j]; //#2806 - $k[$j++] = _Oi; //#2808 - $k[$j++] = true; //#2808 - $forall(_Oi, function() { //#2808 - var _Oj = $k[--$j]; //#2807 - if ((_Oj < 48) || (_Oj > 57)) { //#2807 - $j--; //#2807 - $k[$j++] = false; //#2807 - return true; //#2807 - } //#2807 - }); //#2807 - if ($nt($k[--$j])) { //#2809 - $j -= 2; //#2809 - $k[$j++] = 'bwipp.GS1couponNotNumeric#2809'; //#2809 - $k[$j++] = "Coupon not numeric"; //#2809 + $_.linthhmm = function() { + var _TT = $k[--$j]; //#2792 + $k[$j++] = _TT; //#2792 + if ($cvi($geti(_TT, 0, 2)) > 23) { //#2792 + $j -= 2; //#2792 + $k[$j++] = 'bwipp.GS1badHour#2792'; //#2792 + $k[$j++] = "Invalid hour of day"; //#2792 + $k[$j++] = false; //#2792 + return true; //#2792 + } //#2792 + if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2793 + $j--; //#2793 + $k[$j++] = 'bwipp.GS1badMinute#2793'; //#2793 + $k[$j++] = "Invalid minute in the hour"; //#2793 + $k[$j++] = false; //#2793 + return true; //#2793 + } //#2793 + }; //#2793 + $_.lintmmoptss = function() { + var _TX = $k[--$j]; //#2797 + var _TY = _TX.length; //#2797 + $k[$j++] = _TX; //#2799 + if ((_TY != 2) && (_TY != 4)) { //#2799 + $j--; //#2798 + $k[$j++] = 'bwipp.GS1badTimeLength#2798'; //#2798 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#2798 + $k[$j++] = false; //#2798 + return true; //#2798 + } //#2798 + var _TZ = $k[--$j]; //#2800 + $k[$j++] = _TZ; //#2800 + if ($cvi($geti(_TZ, 0, 2)) > 59) { //#2800 + $j -= 2; //#2800 + $k[$j++] = 'bwipp.GS1badMinute#2800'; //#2800 + $k[$j++] = "Invalid minute in the hour"; //#2800 + $k[$j++] = false; //#2800 + return true; //#2800 + } //#2800 + var _Tb = $k[--$j]; //#2801 + $k[$j++] = _Tb; //#2803 + if (_Tb.length >= 4) { //#2803 + var _Tc = $k[--$j]; //#2802 + $k[$j++] = _Tc; //#2802 + if ($cvi($geti(_Tc, 2, 2)) > 59) { //#2802 + $j -= 2; //#2802 + $k[$j++] = 'bwipp.GS1badSecond#2802'; //#2802 + $k[$j++] = "Invalid second in the minute"; //#2802 + $k[$j++] = false; //#2802 + return true; //#2802 + } //#2802 + } //#2802 + $j--; //#2804 + }; //#2804 + $_.lintyesno = function() { + var _Te = $k[--$j]; //#2808 + if ($ne(_Te, "0") && $ne(_Te, "1")) { //#2810 + $j--; //#2809 + $k[$j++] = 'bwipp.GS1badBoolean#2809'; //#2809 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2809 $k[$j++] = false; //#2809 return true; //#2809 } //#2809 - var _Ol = $k[--$j]; //#2812 - $k[$j++] = _Ol; //#2814 - if (_Ol.length < 1) { //#2814 - $j -= 2; //#2813 - $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2813'; //#2813 - $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2813 - $k[$j++] = false; //#2813 - return true; //#2813 - } //#2813 - var _Om = $k[--$j]; //#2815 - var _Oo = $cvi($geti(_Om, 0, 1)); //#2815 - $k[$j++] = _Om; //#2817 - $k[$j++] = _Oo; //#2817 - if (_Oo > 6) { //#2817 - $j -= 2; //#2816 - $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2816'; //#2816 - $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2816 - $k[$j++] = false; //#2816 - return true; //#2816 - } //#2816 - var _Op = $k[--$j]; //#2818 - var _Oq = $k[--$j]; //#2819 - $k[$j++] = _Oq; //#2821 - $k[$j++] = $f($f(_Op + 6) + 1); //#2821 - if (($f($f(_Op + 6) + 1)) > _Oq.length) { //#2821 - $j -= 3; //#2820 - $k[$j++] = 'bwipp.GS1couponTooShortGCP#2820'; //#2820 - $k[$j++] = "Coupon too short: GCP truncated"; //#2820 + }; //#2809 + $_.lintwinding = function() { + var _Tf = $k[--$j]; //#2814 + if ($ne(_Tf, "0") && ($ne(_Tf, "1") && $ne(_Tf, "9"))) { //#2816 + $j--; //#2815 + $k[$j++] = 'bwipp.GS1badWinding#2815'; //#2815 + $k[$j++] = "Invalid winding direction"; //#2815 + $k[$j++] = false; //#2815 + return true; //#2815 + } //#2815 + }; //#2815 + $_.lintpieceoftotal = function() { + var _Tg = $k[--$j]; //#2820 + $k[$j++] = _Tg; //#2820 + if ((_Tg.length % 2) != 0) { //#2820 + $j -= 2; //#2820 + $k[$j++] = 'bwipp.GS1badPieceTotalLength#2820'; //#2820 + $k[$j++] = "Invalid piece/total length"; //#2820 $k[$j++] = false; //#2820 return true; //#2820 } //#2820 - var _Or = $k[--$j]; //#2822 - var _Os = $k[--$j]; //#2822 - var _Ot = $geti(_Os, _Or, $f(_Os.length - _Or)); //#2822 - $k[$j++] = _Ot; //#2827 - if (_Ot.length < 6) { //#2827 - $j -= 2; //#2826 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2826'; //#2826 - $k[$j++] = "Coupon too short: Offer Code truncated"; //#2826 - $k[$j++] = false; //#2826 - return true; //#2826 - } //#2826 - var _Ou = $k[--$j]; //#2828 - var _Ov = $geti(_Ou, 6, _Ou.length - 6); //#2828 - $k[$j++] = _Ov; //#2833 - if (_Ov.length < 1) { //#2833 - $j -= 2; //#2832 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2832'; //#2832 - $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2832 - $k[$j++] = false; //#2832 - return true; //#2832 - } //#2832 - var _Ow = $k[--$j]; //#2834 - var _Oy = $cvi($geti(_Ow, 0, 1)); //#2834 - $k[$j++] = _Ow; //#2836 - $k[$j++] = _Oy; //#2836 - if ((_Oy < 1) || (_Oy > 5)) { //#2836 - $j -= 2; //#2835 - $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2835'; //#2835 - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2835 - $k[$j++] = false; //#2835 - return true; //#2835 - } //#2835 - var _Oz = $k[--$j]; //#2837 - var _P0 = $k[--$j]; //#2838 - $k[$j++] = _P0; //#2840 - $k[$j++] = $f(_Oz + 1); //#2840 - if ($f(_Oz + 1) > _P0.length) { //#2840 - $j -= 3; //#2839 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2839'; //#2839 - $k[$j++] = "Coupon too short: Save Value truncated"; //#2839 - $k[$j++] = false; //#2839 - return true; //#2839 - } //#2839 - var _P1 = $k[--$j]; //#2841 - var _P2 = $k[--$j]; //#2841 - var _P3 = $geti(_P2, _P1, $f(_P2.length - _P1)); //#2841 - $k[$j++] = _P3; //#2846 - if (_P3.length < 1) { //#2846 - $j -= 2; //#2845 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2845'; //#2845 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2845 - $k[$j++] = false; //#2845 - return true; //#2845 - } //#2845 - var _P4 = $k[--$j]; //#2847 - var _P6 = $cvi($geti(_P4, 0, 1)); //#2847 - $k[$j++] = _P4; //#2849 - $k[$j++] = _P6; //#2849 - if ((_P6 < 1) || (_P6 > 5)) { //#2849 - $j -= 2; //#2848 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2848'; //#2848 - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2848 - $k[$j++] = false; //#2848 - return true; //#2848 - } //#2848 - var _P7 = $k[--$j]; //#2850 - var _P8 = $k[--$j]; //#2851 - $k[$j++] = _P8; //#2853 - $k[$j++] = $f(_P7 + 1); //#2853 - if ($f(_P7 + 1) > _P8.length) { //#2853 - $j -= 3; //#2852 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2852'; //#2852 - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2852 - $k[$j++] = false; //#2852 - return true; //#2852 - } //#2852 - var _P9 = $k[--$j]; //#2854 - var _PA = $k[--$j]; //#2854 - var _PB = $geti(_PA, _P9, $f(_PA.length - _P9)); //#2854 - $k[$j++] = _PB; //#2859 - if (_PB.length < 1) { //#2859 - $j -= 2; //#2858 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2858'; //#2858 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2858 - $k[$j++] = false; //#2858 - return true; //#2858 - } //#2858 - var _PC = $k[--$j]; //#2860 - var _PE = $cvi($geti(_PC, 0, 1)); //#2860 - $k[$j++] = _PC; //#2862 - if ((_PE > 4) && (_PE != 9)) { //#2862 - $j -= 2; //#2861 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2861'; //#2861 - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2861 - $k[$j++] = false; //#2861 - return true; //#2861 - } //#2861 - var _PF = $k[--$j]; //#2863 - var _PG = $geti(_PF, 1, _PF.length - 1); //#2863 - $k[$j++] = _PG; //#2868 - if (_PG.length < 3) { //#2868 - $j -= 2; //#2867 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2867'; //#2867 - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2867 - $k[$j++] = false; //#2867 - return true; //#2867 - } //#2867 - var _PH = $k[--$j]; //#2869 - var _PI = $geti(_PH, 3, _PH.length - 3); //#2869 - $k[$j++] = _PI; //#2925 - if (_PI.length >= 1) { //#2925 - var _PJ = $k[--$j]; //#2872 - $k[$j++] = _PJ; //#2925 - if ($cvi($geti(_PJ, 0, 1)) == 1) { //#2925 - var _PL = $k[--$j]; //#2873 - var _PM = $geti(_PL, 1, _PL.length - 1); //#2873 - $k[$j++] = _PM; //#2878 - if (_PM.length < 1) { //#2878 - $j -= 2; //#2877 - $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2877'; //#2877 - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2877 - $k[$j++] = false; //#2877 - return true; //#2877 - } //#2877 - var _PN = $k[--$j]; //#2879 - $k[$j++] = _PN; //#2881 - if ($cvi($geti(_PN, 0, 1)) > 3) { //#2881 - $j -= 2; //#2880 - $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2880'; //#2880 - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2880 - $k[$j++] = false; //#2880 - return true; //#2880 - } //#2880 - var _PP = $k[--$j]; //#2882 - var _PQ = $geti(_PP, 1, _PP.length - 1); //#2882 - $k[$j++] = _PQ; //#2887 - if (_PQ.length < 1) { //#2887 - $j -= 2; //#2886 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2886'; //#2886 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2886 - $k[$j++] = false; //#2886 - return true; //#2886 - } //#2886 - var _PR = $k[--$j]; //#2888 - var _PT = $cvi($geti(_PR, 0, 1)); //#2888 - $k[$j++] = _PR; //#2890 - $k[$j++] = _PT; //#2890 - if ((_PT < 1) || (_PT > 5)) { //#2890 - $j -= 2; //#2889 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2889'; //#2889 - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2889 - $k[$j++] = false; //#2889 - return true; //#2889 - } //#2889 - var _PU = $k[--$j]; //#2891 - var _PV = $k[--$j]; //#2892 - $k[$j++] = _PV; //#2894 - $k[$j++] = $f(_PU + 1); //#2894 - if ($f(_PU + 1) > _PV.length) { //#2894 - $j -= 3; //#2893 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2893'; //#2893 - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2893 - $k[$j++] = false; //#2893 - return true; //#2893 - } //#2893 - var _PW = $k[--$j]; //#2895 - var _PX = $k[--$j]; //#2895 - var _PY = $geti(_PX, _PW, $f(_PX.length - _PW)); //#2895 - $k[$j++] = _PY; //#2900 - if (_PY.length < 1) { //#2900 - $j -= 2; //#2899 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2899'; //#2899 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2899 - $k[$j++] = false; //#2899 - return true; //#2899 - } //#2899 - var _PZ = $k[--$j]; //#2901 - var _Pb = $cvi($geti(_PZ, 0, 1)); //#2901 - $k[$j++] = _PZ; //#2903 - if ((_Pb > 4) && (_Pb != 9)) { //#2903 - $j -= 2; //#2902 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2902'; //#2902 - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2902 - $k[$j++] = false; //#2902 - return true; //#2902 - } //#2902 - var _Pc = $k[--$j]; //#2904 - var _Pd = $geti(_Pc, 1, _Pc.length - 1); //#2904 - $k[$j++] = _Pd; //#2909 - if (_Pd.length < 3) { //#2909 - $j -= 2; //#2908 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2908'; //#2908 - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2908 - $k[$j++] = false; //#2908 - return true; //#2908 - } //#2908 - var _Pe = $k[--$j]; //#2910 - var _Pf = $geti(_Pe, 3, _Pe.length - 3); //#2910 - $k[$j++] = _Pf; //#2915 - if (_Pf.length < 1) { //#2915 + var _Th = $k[--$j]; //#2821 + var _Tj = $cvi($geti(_Th, 0, ~~(_Th.length / 2))); //#2822 + $k[$j++] = _Th; //#2822 + $k[$j++] = _Tj; //#2822 + if (_Tj == 0) { //#2822 + $j -= 3; //#2822 + $k[$j++] = 'bwipp.GS1badPieceNumber#2822'; //#2822 + $k[$j++] = "Invalid piece number"; //#2822 + $k[$j++] = false; //#2822 + return true; //#2822 + } //#2822 + var _Tk = $k[--$j]; //#2823 + var _Tl = $k[--$j]; //#2823 + var _Tm = ~~(_Tl.length / 2); //#2823 + var _To = $cvi($geti(_Tl, _Tm, _Tm)); //#2824 + $k[$j++] = _Tk; //#2824 + $k[$j++] = _To; //#2824 + if (_To == 0) { //#2824 + $j -= 3; //#2824 + $k[$j++] = 'bwipp.GS1badPieceTotal#2824'; //#2824 + $k[$j++] = "Invalid total number"; //#2824 + $k[$j++] = false; //#2824 + return true; //#2824 + } //#2824 + var _Tp = $k[--$j]; //#2825 + if ($gt($k[--$j], _Tp)) { //#2825 + $j--; //#2825 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2825'; //#2825 + $k[$j++] = "Piece number exceeds total"; //#2825 + $k[$j++] = false; //#2825 + return true; //#2825 + } //#2825 + }; //#2825 + $_.lintpcenc = function() { + for (;;) { //#2839 + $search($k[--$j], "%"); //#2830 + if ($nt($k[--$j])) { //#2830 + $j--; //#2830 + break; //#2830 + } //#2830 + $j -= 2; //#2831 + var _Tt = $k[--$j]; //#2831 + $k[$j++] = _Tt; //#2831 + if (_Tt.length < 2) { //#2831 + $j -= 2; //#2831 + $k[$j++] = 'bwipp.GS1badPercentEscape#2831'; //#2831 + $k[$j++] = "Invalid % escape"; //#2831 + $k[$j++] = false; //#2831 + break; //#2831 + } //#2831 + var _Tu = $k[--$j]; //#2832 + var _Tv = $geti(_Tu, 0, 2); //#2832 + $k[$j++] = _Tu; //#2837 + $k[$j++] = true; //#2837 + for (var _Tw = 0, _Tx = _Tv.length; _Tw < _Tx; _Tw++) { //#2837 + var _Tz = $s(1); //#2833 + $put(_Tz, 0, $get(_Tv, _Tw)); //#2833 + $search("0123456789ABCDEFabcdef", _Tz); //#2835 + if ($nt($k[--$j])) { //#2835 + $j -= 2; //#2835 + $k[$j++] = false; //#2835 + break; //#2835 + } //#2835 + $j -= 3; //#2836 + } //#2836 + if ($nt($k[--$j])) { //#2838 + $j -= 2; //#2838 + $k[$j++] = 'bwipp.GS1badPercentChars#2838'; //#2838 + $k[$j++] = "Invalid characters for percent encoding"; //#2838 + $k[$j++] = false; //#2838 + break; //#2838 + } //#2838 + } //#2838 + }; //#2838 + $_.lintcouponcode = function() { + var _U2 = $k[--$j]; //#2843 + $k[$j++] = _U2; //#2845 + $k[$j++] = true; //#2845 + $forall(_U2, function() { //#2845 + var _U3 = $k[--$j]; //#2844 + if ((_U3 < 48) || (_U3 > 57)) { //#2844 + $j--; //#2844 + $k[$j++] = false; //#2844 + return true; //#2844 + } //#2844 + }); //#2844 + if ($nt($k[--$j])) { //#2846 + $j -= 2; //#2846 + $k[$j++] = 'bwipp.GS1couponNotNumeric#2846'; //#2846 + $k[$j++] = "Coupon not numeric"; //#2846 + $k[$j++] = false; //#2846 + return true; //#2846 + } //#2846 + var _U5 = $k[--$j]; //#2849 + $k[$j++] = _U5; //#2851 + if (_U5.length < 1) { //#2851 + $j -= 2; //#2850 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2850'; //#2850 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2850 + $k[$j++] = false; //#2850 + return true; //#2850 + } //#2850 + var _U6 = $k[--$j]; //#2852 + var _U8 = $cvi($geti(_U6, 0, 1)); //#2852 + $k[$j++] = _U6; //#2854 + $k[$j++] = _U8; //#2854 + if (_U8 > 6) { //#2854 + $j -= 2; //#2853 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2853'; //#2853 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2853 + $k[$j++] = false; //#2853 + return true; //#2853 + } //#2853 + var _U9 = $k[--$j]; //#2855 + var _UA = $k[--$j]; //#2856 + $k[$j++] = _UA; //#2858 + $k[$j++] = $f($f(_U9 + 6) + 1); //#2858 + if (($f($f(_U9 + 6) + 1)) > _UA.length) { //#2858 + $j -= 3; //#2857 + $k[$j++] = 'bwipp.GS1couponTooShortGCP#2857'; //#2857 + $k[$j++] = "Coupon too short: GCP truncated"; //#2857 + $k[$j++] = false; //#2857 + return true; //#2857 + } //#2857 + var _UB = $k[--$j]; //#2859 + var _UC = $k[--$j]; //#2859 + var _UD = $geti(_UC, _UB, $f(_UC.length - _UB)); //#2859 + $k[$j++] = _UD; //#2864 + if (_UD.length < 6) { //#2864 + $j -= 2; //#2863 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2863'; //#2863 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#2863 + $k[$j++] = false; //#2863 + return true; //#2863 + } //#2863 + var _UE = $k[--$j]; //#2865 + var _UF = $geti(_UE, 6, _UE.length - 6); //#2865 + $k[$j++] = _UF; //#2870 + if (_UF.length < 1) { //#2870 + $j -= 2; //#2869 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2869'; //#2869 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2869 + $k[$j++] = false; //#2869 + return true; //#2869 + } //#2869 + var _UG = $k[--$j]; //#2871 + var _UI = $cvi($geti(_UG, 0, 1)); //#2871 + $k[$j++] = _UG; //#2873 + $k[$j++] = _UI; //#2873 + if ((_UI < 1) || (_UI > 5)) { //#2873 + $j -= 2; //#2872 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2872'; //#2872 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2872 + $k[$j++] = false; //#2872 + return true; //#2872 + } //#2872 + var _UJ = $k[--$j]; //#2874 + var _UK = $k[--$j]; //#2875 + $k[$j++] = _UK; //#2877 + $k[$j++] = $f(_UJ + 1); //#2877 + if ($f(_UJ + 1) > _UK.length) { //#2877 + $j -= 3; //#2876 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2876'; //#2876 + $k[$j++] = "Coupon too short: Save Value truncated"; //#2876 + $k[$j++] = false; //#2876 + return true; //#2876 + } //#2876 + var _UL = $k[--$j]; //#2878 + var _UM = $k[--$j]; //#2878 + var _UN = $geti(_UM, _UL, $f(_UM.length - _UL)); //#2878 + $k[$j++] = _UN; //#2883 + if (_UN.length < 1) { //#2883 + $j -= 2; //#2882 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2882'; //#2882 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2882 + $k[$j++] = false; //#2882 + return true; //#2882 + } //#2882 + var _UO = $k[--$j]; //#2884 + var _UQ = $cvi($geti(_UO, 0, 1)); //#2884 + $k[$j++] = _UO; //#2886 + $k[$j++] = _UQ; //#2886 + if ((_UQ < 1) || (_UQ > 5)) { //#2886 + $j -= 2; //#2885 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2885'; //#2885 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2885 + $k[$j++] = false; //#2885 + return true; //#2885 + } //#2885 + var _UR = $k[--$j]; //#2887 + var _US = $k[--$j]; //#2888 + $k[$j++] = _US; //#2890 + $k[$j++] = $f(_UR + 1); //#2890 + if ($f(_UR + 1) > _US.length) { //#2890 + $j -= 3; //#2889 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2889'; //#2889 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2889 + $k[$j++] = false; //#2889 + return true; //#2889 + } //#2889 + var _UT = $k[--$j]; //#2891 + var _UU = $k[--$j]; //#2891 + var _UV = $geti(_UU, _UT, $f(_UU.length - _UT)); //#2891 + $k[$j++] = _UV; //#2896 + if (_UV.length < 1) { //#2896 + $j -= 2; //#2895 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2895'; //#2895 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2895 + $k[$j++] = false; //#2895 + return true; //#2895 + } //#2895 + var _UW = $k[--$j]; //#2897 + var _UY = $cvi($geti(_UW, 0, 1)); //#2897 + $k[$j++] = _UW; //#2899 + if ((_UY > 4) && (_UY != 9)) { //#2899 + $j -= 2; //#2898 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2898'; //#2898 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2898 + $k[$j++] = false; //#2898 + return true; //#2898 + } //#2898 + var _UZ = $k[--$j]; //#2900 + var _Ua = $geti(_UZ, 1, _UZ.length - 1); //#2900 + $k[$j++] = _Ua; //#2905 + if (_Ua.length < 3) { //#2905 + $j -= 2; //#2904 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2904'; //#2904 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2904 + $k[$j++] = false; //#2904 + return true; //#2904 + } //#2904 + var _Ub = $k[--$j]; //#2906 + var _Uc = $geti(_Ub, 3, _Ub.length - 3); //#2906 + $k[$j++] = _Uc; //#2962 + if (_Uc.length >= 1) { //#2962 + var _Ud = $k[--$j]; //#2909 + $k[$j++] = _Ud; //#2962 + if ($cvi($geti(_Ud, 0, 1)) == 1) { //#2962 + var _Uf = $k[--$j]; //#2910 + var _Ug = $geti(_Uf, 1, _Uf.length - 1); //#2910 + $k[$j++] = _Ug; //#2915 + if (_Ug.length < 1) { //#2915 $j -= 2; //#2914 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2914'; //#2914 - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2914 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2914'; //#2914 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2914 $k[$j++] = false; //#2914 return true; //#2914 } //#2914 - var _Pg = $k[--$j]; //#2916 - var _Pi = $cvi($geti(_Pg, 0, 1)); //#2916 - $k[$j++] = _Pg; //#2918 - $k[$j++] = _Pi; //#2918 - if ((_Pi > 6) && (_Pi != 9)) { //#2918 + var _Uh = $k[--$j]; //#2916 + $k[$j++] = _Uh; //#2918 + if ($cvi($geti(_Uh, 0, 1)) > 3) { //#2918 $j -= 2; //#2917 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2917'; //#2917 - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2917 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2917'; //#2917 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2917 $k[$j++] = false; //#2917 return true; //#2917 } //#2917 - var _Pj = $k[--$j]; //#2919 - $k[$j++] = _Pj; //#2919 - if (_Pj != 9) { //#2919 - var _Pk = $k[--$j]; //#2919 - $k[$j++] = $f(_Pk + 6); //#2919 - } else { //#2919 - $j--; //#2919 - $k[$j++] = 0; //#2919 - } //#2919 - var _Pl = $k[--$j]; //#2919 - var _Pm = $k[--$j]; //#2920 - $k[$j++] = _Pm; //#2922 - $k[$j++] = $f(_Pl + 1); //#2922 - if ($f(_Pl + 1) > _Pm.length) { //#2922 - $j -= 3; //#2921 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2921'; //#2921 - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2921 - $k[$j++] = false; //#2921 - return true; //#2921 - } //#2921 - var _Pn = $k[--$j]; //#2923 - var _Po = $k[--$j]; //#2923 - $k[$j++] = $geti(_Po, _Pn, $f(_Po.length - _Pn)); //#2923 - } //#2923 - } //#2923 - var _Pq = $k[--$j]; //#2928 - $k[$j++] = _Pq; //#2972 - if (_Pq.length >= 1) { //#2972 - var _Pr = $k[--$j]; //#2928 - $k[$j++] = _Pr; //#2972 - if ($cvi($geti(_Pr, 0, 1)) == 2) { //#2972 - var _Pt = $k[--$j]; //#2929 - var _Pu = $geti(_Pt, 1, _Pt.length - 1); //#2929 - $k[$j++] = _Pu; //#2934 - if (_Pu.length < 1) { //#2934 - $j -= 2; //#2933 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2933'; //#2933 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2933 - $k[$j++] = false; //#2933 - return true; //#2933 - } //#2933 - var _Pv = $k[--$j]; //#2935 - var _Px = $cvi($geti(_Pv, 0, 1)); //#2935 - $k[$j++] = _Pv; //#2937 - $k[$j++] = _Px; //#2937 - if ((_Px < 1) || (_Px > 5)) { //#2937 + var _Uj = $k[--$j]; //#2919 + var _Uk = $geti(_Uj, 1, _Uj.length - 1); //#2919 + $k[$j++] = _Uk; //#2924 + if (_Uk.length < 1) { //#2924 + $j -= 2; //#2923 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2923'; //#2923 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2923 + $k[$j++] = false; //#2923 + return true; //#2923 + } //#2923 + var _Ul = $k[--$j]; //#2925 + var _Un = $cvi($geti(_Ul, 0, 1)); //#2925 + $k[$j++] = _Ul; //#2927 + $k[$j++] = _Un; //#2927 + if ((_Un < 1) || (_Un > 5)) { //#2927 + $j -= 2; //#2926 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2926'; //#2926 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2926 + $k[$j++] = false; //#2926 + return true; //#2926 + } //#2926 + var _Uo = $k[--$j]; //#2928 + var _Up = $k[--$j]; //#2929 + $k[$j++] = _Up; //#2931 + $k[$j++] = $f(_Uo + 1); //#2931 + if ($f(_Uo + 1) > _Up.length) { //#2931 + $j -= 3; //#2930 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2930'; //#2930 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2930 + $k[$j++] = false; //#2930 + return true; //#2930 + } //#2930 + var _Uq = $k[--$j]; //#2932 + var _Ur = $k[--$j]; //#2932 + var _Us = $geti(_Ur, _Uq, $f(_Ur.length - _Uq)); //#2932 + $k[$j++] = _Us; //#2937 + if (_Us.length < 1) { //#2937 $j -= 2; //#2936 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2936'; //#2936 - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2936 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2936'; //#2936 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2936 $k[$j++] = false; //#2936 return true; //#2936 } //#2936 - var _Py = $k[--$j]; //#2938 - var _Pz = $k[--$j]; //#2939 - $k[$j++] = _Pz; //#2941 - $k[$j++] = $f(_Py + 1); //#2941 - if ($f(_Py + 1) > _Pz.length) { //#2941 - $j -= 3; //#2940 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2940'; //#2940 - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2940 - $k[$j++] = false; //#2940 - return true; //#2940 - } //#2940 - var _Q0 = $k[--$j]; //#2942 - var _Q1 = $k[--$j]; //#2942 - var _Q2 = $geti(_Q1, _Q0, $f(_Q1.length - _Q0)); //#2942 - $k[$j++] = _Q2; //#2947 - if (_Q2.length < 1) { //#2947 - $j -= 2; //#2946 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2946'; //#2946 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2946 - $k[$j++] = false; //#2946 - return true; //#2946 - } //#2946 - var _Q3 = $k[--$j]; //#2948 - var _Q5 = $cvi($geti(_Q3, 0, 1)); //#2948 - $k[$j++] = _Q3; //#2950 - if ((_Q5 > 4) && (_Q5 != 9)) { //#2950 - $j -= 2; //#2949 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2949'; //#2949 - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2949 - $k[$j++] = false; //#2949 - return true; //#2949 - } //#2949 - var _Q6 = $k[--$j]; //#2951 - var _Q7 = $geti(_Q6, 1, _Q6.length - 1); //#2951 - $k[$j++] = _Q7; //#2956 - if (_Q7.length < 3) { //#2956 - $j -= 2; //#2955 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2955'; //#2955 - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2955 - $k[$j++] = false; //#2955 - return true; //#2955 - } //#2955 - var _Q8 = $k[--$j]; //#2957 - var _Q9 = $geti(_Q8, 3, _Q8.length - 3); //#2957 - $k[$j++] = _Q9; //#2962 - if (_Q9.length < 1) { //#2962 - $j -= 2; //#2961 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2961'; //#2961 - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2961 - $k[$j++] = false; //#2961 - return true; //#2961 - } //#2961 - var _QA = $k[--$j]; //#2963 - var _QC = $cvi($geti(_QA, 0, 1)); //#2963 - $k[$j++] = _QA; //#2965 - $k[$j++] = _QC; //#2965 - if ((_QC > 6) && (_QC != 9)) { //#2965 - $j -= 2; //#2964 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#2964'; //#2964 - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#2964 - $k[$j++] = false; //#2964 - return true; //#2964 - } //#2964 - var _QD = $k[--$j]; //#2966 - $k[$j++] = _QD; //#2966 - if (_QD != 9) { //#2966 - var _QE = $k[--$j]; //#2966 - $k[$j++] = $f(_QE + 6); //#2966 - } else { //#2966 - $j--; //#2966 - $k[$j++] = 0; //#2966 - } //#2966 - var _QF = $k[--$j]; //#2966 - var _QG = $k[--$j]; //#2967 - $k[$j++] = _QG; //#2969 - $k[$j++] = $f(_QF + 1); //#2969 - if ($f(_QF + 1) > _QG.length) { //#2969 - $j -= 3; //#2968 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#2968'; //#2968 - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#2968 - $k[$j++] = false; //#2968 - return true; //#2968 - } //#2968 - var _QH = $k[--$j]; //#2970 - var _QI = $k[--$j]; //#2970 - $k[$j++] = $geti(_QI, _QH, $f(_QI.length - _QH)); //#2970 - } //#2970 - } //#2970 - $_.couponexpire = -1; //#2975 - var _QK = $k[--$j]; //#2976 - $k[$j++] = _QK; //#2994 - if (_QK.length >= 1) { //#2994 - var _QL = $k[--$j]; //#2976 - $k[$j++] = _QL; //#2994 - if ($cvi($geti(_QL, 0, 1)) == 3) { //#2994 - var _QN = $k[--$j]; //#2977 - var _QO = $geti(_QN, 1, _QN.length - 1); //#2977 - $k[$j++] = _QO; //#2982 - if (_QO.length < 6) { //#2982 - $j -= 2; //#2981 - $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#2981'; //#2981 - $k[$j++] = "Coupon too short: Expiration date"; //#2981 - $k[$j++] = false; //#2981 - return true; //#2981 - } //#2981 - var _QP = $k[--$j]; //#2983 - var _QR = $cvi($geti(_QP, 2, 2)); //#2983 - $k[$j++] = _QP; //#2983 - if ((_QR < 1) || (_QR > 12)) { //#2983 + var _Ut = $k[--$j]; //#2938 + var _Uv = $cvi($geti(_Ut, 0, 1)); //#2938 + $k[$j++] = _Ut; //#2940 + if ((_Uv > 4) && (_Uv != 9)) { //#2940 + $j -= 2; //#2939 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2939'; //#2939 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2939 + $k[$j++] = false; //#2939 + return true; //#2939 + } //#2939 + var _Uw = $k[--$j]; //#2941 + var _Ux = $geti(_Uw, 1, _Uw.length - 1); //#2941 + $k[$j++] = _Ux; //#2946 + if (_Ux.length < 3) { //#2946 + $j -= 2; //#2945 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2945'; //#2945 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2945 + $k[$j++] = false; //#2945 + return true; //#2945 + } //#2945 + var _Uy = $k[--$j]; //#2947 + var _Uz = $geti(_Uy, 3, _Uy.length - 3); //#2947 + $k[$j++] = _Uz; //#2952 + if (_Uz.length < 1) { //#2952 + $j -= 2; //#2951 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2951'; //#2951 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2951 + $k[$j++] = false; //#2951 + return true; //#2951 + } //#2951 + var _V0 = $k[--$j]; //#2953 + var _V2 = $cvi($geti(_V0, 0, 1)); //#2953 + $k[$j++] = _V0; //#2955 + $k[$j++] = _V2; //#2955 + if ((_V2 > 6) && (_V2 != 9)) { //#2955 + $j -= 2; //#2954 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2954'; //#2954 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2954 + $k[$j++] = false; //#2954 + return true; //#2954 + } //#2954 + var _V3 = $k[--$j]; //#2956 + $k[$j++] = _V3; //#2956 + if (_V3 != 9) { //#2956 + var _V4 = $k[--$j]; //#2956 + $k[$j++] = $f(_V4 + 6); //#2956 + } else { //#2956 + $j--; //#2956 + $k[$j++] = 0; //#2956 + } //#2956 + var _V5 = $k[--$j]; //#2956 + var _V6 = $k[--$j]; //#2957 + $k[$j++] = _V6; //#2959 + $k[$j++] = $f(_V5 + 1); //#2959 + if ($f(_V5 + 1) > _V6.length) { //#2959 + $j -= 3; //#2958 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2958'; //#2958 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2958 + $k[$j++] = false; //#2958 + return true; //#2958 + } //#2958 + var _V7 = $k[--$j]; //#2960 + var _V8 = $k[--$j]; //#2960 + $k[$j++] = $geti(_V8, _V7, $f(_V8.length - _V7)); //#2960 + } //#2960 + } //#2960 + var _VA = $k[--$j]; //#2965 + $k[$j++] = _VA; //#3009 + if (_VA.length >= 1) { //#3009 + var _VB = $k[--$j]; //#2965 + $k[$j++] = _VB; //#3009 + if ($cvi($geti(_VB, 0, 1)) == 2) { //#3009 + var _VD = $k[--$j]; //#2966 + var _VE = $geti(_VD, 1, _VD.length - 1); //#2966 + $k[$j++] = _VE; //#2971 + if (_VE.length < 1) { //#2971 + $j -= 2; //#2970 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2970'; //#2970 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2970 + $k[$j++] = false; //#2970 + return true; //#2970 + } //#2970 + var _VF = $k[--$j]; //#2972 + var _VH = $cvi($geti(_VF, 0, 1)); //#2972 + $k[$j++] = _VF; //#2974 + $k[$j++] = _VH; //#2974 + if ((_VH < 1) || (_VH > 5)) { //#2974 + $j -= 2; //#2973 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2973'; //#2973 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2973 + $k[$j++] = false; //#2973 + return true; //#2973 + } //#2973 + var _VI = $k[--$j]; //#2975 + var _VJ = $k[--$j]; //#2976 + $k[$j++] = _VJ; //#2978 + $k[$j++] = $f(_VI + 1); //#2978 + if ($f(_VI + 1) > _VJ.length) { //#2978 + $j -= 3; //#2977 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2977'; //#2977 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2977 + $k[$j++] = false; //#2977 + return true; //#2977 + } //#2977 + var _VK = $k[--$j]; //#2979 + var _VL = $k[--$j]; //#2979 + var _VM = $geti(_VL, _VK, $f(_VL.length - _VK)); //#2979 + $k[$j++] = _VM; //#2984 + if (_VM.length < 1) { //#2984 $j -= 2; //#2983 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#2983'; //#2983 - $k[$j++] = "Invalid month in expiration date"; //#2983 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2983'; //#2983 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2983 $k[$j++] = false; //#2983 return true; //#2983 } //#2983 - var _QS = $k[--$j]; //#2984 - var _QU = $cvi($geti(_QS, 0, 2)); //#2984 - var _QV = _QU - 21; //#2985 - $k[$j++] = _QS; //#2985 - $k[$j++] = _QU; //#2985 - $k[$j++] = _QV; //#2985 - if (_QV >= 51) { //#2985 - $j--; //#2985 - var _QW = $k[--$j]; //#2985 - $k[$j++] = $f(_QW + 1900); //#2985 - } else { //#2985 - if ($k[--$j] <= -50) { //#2985 - var _QY = $k[--$j]; //#2985 - $k[$j++] = $f(_QY + 2100); //#2985 - } else { //#2985 - var _QZ = $k[--$j]; //#2985 - $k[$j++] = $f(_QZ + 2000); //#2985 - } //#2985 - } //#2985 - var _Qa = $k[--$j]; //#2986 - $k[$j++] = ((_Qa % 400) == 0) || (((_Qa % 4) == 0) && ((_Qa % 100) != 0)); //#2987 - $k[$j++] = Infinity; //#2987 - var _Qb = $k[--$j]; //#2987 - var _Qd = $k[--$j] ? 29 : 28; //#2987 - $k[$j++] = _Qb; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = _Qd; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - var _Qe = $a(); //#2987 - var _Qf = $k[--$j]; //#2988 - var _Qj = $cvi($geti(_Qf, 4, 2)); //#2989 - $k[$j++] = _Qf; //#2990 - if (($get(_Qe, $cvi($geti(_Qf, 2, 2)) - 1) < _Qj) || (_Qj < 1)) { //#2990 - $j -= 2; //#2990 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#2990'; //#2990 - $k[$j++] = "Invalid day of month in expiration date"; //#2990 - $k[$j++] = false; //#2990 - return true; //#2990 - } //#2990 - var _Qk = $k[--$j]; //#2991 - $_.couponexpire = $cvi($geti(_Qk, 0, 6)); //#2991 - $k[$j++] = $geti(_Qk, 6, _Qk.length - 6); //#2992 - } //#2992 - } //#2992 - var _Qn = $k[--$j]; //#2997 - $k[$j++] = _Qn; //#3018 - if (_Qn.length >= 1) { //#3018 - var _Qo = $k[--$j]; //#2997 - $k[$j++] = _Qo; //#3018 - if ($cvi($geti(_Qo, 0, 1)) == 4) { //#3018 - var _Qq = $k[--$j]; //#2998 - var _Qr = $geti(_Qq, 1, _Qq.length - 1); //#2998 - $k[$j++] = _Qr; //#3003 - if (_Qr.length < 6) { //#3003 - $j -= 2; //#3002 - $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3002'; //#3002 - $k[$j++] = "Coupon too short: Start date"; //#3002 - $k[$j++] = false; //#3002 - return true; //#3002 - } //#3002 - var _Qs = $k[--$j]; //#3004 - var _Qu = $cvi($geti(_Qs, 2, 2)); //#3004 - $k[$j++] = _Qs; //#3004 - if ((_Qu < 1) || (_Qu > 12)) { //#3004 - $j -= 2; //#3004 - $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3004'; //#3004 - $k[$j++] = "Invalid month in start date"; //#3004 - $k[$j++] = false; //#3004 - return true; //#3004 - } //#3004 - var _Qv = $k[--$j]; //#3005 - var _Qx = $cvi($geti(_Qv, 0, 2)); //#3005 - var _Qy = _Qx - 21; //#3006 - $k[$j++] = _Qv; //#3006 - $k[$j++] = _Qx; //#3006 - $k[$j++] = _Qy; //#3006 - if (_Qy >= 51) { //#3006 - $j--; //#3006 - var _Qz = $k[--$j]; //#3006 - $k[$j++] = $f(_Qz + 1900); //#3006 - } else { //#3006 - if ($k[--$j] <= -50) { //#3006 - var _R1 = $k[--$j]; //#3006 - $k[$j++] = $f(_R1 + 2100); //#3006 - } else { //#3006 - var _R2 = $k[--$j]; //#3006 - $k[$j++] = $f(_R2 + 2000); //#3006 - } //#3006 - } //#3006 - var _R3 = $k[--$j]; //#3007 - $k[$j++] = ((_R3 % 400) == 0) || (((_R3 % 4) == 0) && ((_R3 % 100) != 0)); //#3008 - $k[$j++] = Infinity; //#3008 - var _R4 = $k[--$j]; //#3008 - var _R6 = $k[--$j] ? 29 : 28; //#3008 - $k[$j++] = _R4; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = _R6; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - var _R7 = $a(); //#3008 - var _R8 = $k[--$j]; //#3009 - var _RC = $cvi($geti(_R8, 4, 2)); //#3010 - $k[$j++] = _R8; //#3011 - if (($get(_R7, $cvi($geti(_R8, 2, 2)) - 1) < _RC) || (_RC < 1)) { //#3011 - $j -= 2; //#3011 - $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3011'; //#3011 - $k[$j++] = "Invalid day of month in start date"; //#3011 - $k[$j++] = false; //#3011 - return true; //#3011 - } //#3011 - var _RD = $k[--$j]; //#3012 - $_.couponstart = $cvi($geti(_RD, 0, 6)); //#3012 - $k[$j++] = _RD; //#3015 - if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3015 - $j -= 2; //#3014 - $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3014'; //#3014 - $k[$j++] = "Coupon expires before it starts"; //#3014 - $k[$j++] = false; //#3014 - return true; //#3014 - } //#3014 - var _RI = $k[--$j]; //#3016 - $k[$j++] = $geti(_RI, 6, _RI.length - 6); //#3016 - } //#3016 - } //#3016 - var _RK = $k[--$j]; //#3021 - $k[$j++] = _RK; //#3034 - if (_RK.length >= 1) { //#3034 - var _RL = $k[--$j]; //#3021 - $k[$j++] = _RL; //#3034 - if ($cvi($geti(_RL, 0, 1)) == 5) { //#3034 - var _RN = $k[--$j]; //#3022 - var _RO = $geti(_RN, 1, _RN.length - 1); //#3022 - $k[$j++] = _RO; //#3027 - if (_RO.length < 1) { //#3027 - $j -= 2; //#3026 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3026'; //#3026 - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3026 - $k[$j++] = false; //#3026 - return true; //#3026 - } //#3026 - var _RP = $k[--$j]; //#3028 - var _RQ = $geti(_RP, 0, 1); //#3028 - $k[$j++] = _RP; //#3031 - $k[$j++] = ($cvi(_RQ) + 6) + 1; //#3031 - if ((($cvi(_RQ) + 6) + 1) > _RP.length) { //#3031 - $j -= 3; //#3030 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3030'; //#3030 - $k[$j++] = "Coupon too short: Serial Number truncated"; //#3030 - $k[$j++] = false; //#3030 - return true; //#3030 - } //#3030 - var _RR = $k[--$j]; //#3032 - var _RS = $k[--$j]; //#3032 - $k[$j++] = $geti(_RS, _RR, $f(_RS.length - _RR)); //#3032 - } //#3032 - } //#3032 - var _RU = $k[--$j]; //#3037 - $k[$j++] = _RU; //#3053 - if (_RU.length >= 1) { //#3053 - var _RV = $k[--$j]; //#3037 - $k[$j++] = _RV; //#3053 - if ($cvi($geti(_RV, 0, 1)) == 6) { //#3053 - var _RX = $k[--$j]; //#3038 - var _RY = $geti(_RX, 1, _RX.length - 1); //#3038 - $k[$j++] = _RY; //#3043 - if (_RY.length < 1) { //#3043 - $j -= 2; //#3042 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3042'; //#3042 - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3042 - $k[$j++] = false; //#3042 - return true; //#3042 - } //#3042 - var _RZ = $k[--$j]; //#3044 - var _Rb = $cvi($geti(_RZ, 0, 1)); //#3044 - $k[$j++] = _RZ; //#3046 - $k[$j++] = _Rb; //#3046 - if ((_Rb < 1) || (_Rb > 7)) { //#3046 - $j -= 2; //#3045 - $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3045'; //#3045 - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3045 - $k[$j++] = false; //#3045 - return true; //#3045 - } //#3045 - var _Rc = $k[--$j]; //#3047 - var _Rd = $k[--$j]; //#3048 - $k[$j++] = _Rd; //#3050 - $k[$j++] = $f($f(_Rc + 6) + 1); //#3050 - if (($f($f(_Rc + 6) + 1)) > _Rd.length) { //#3050 - $j -= 3; //#3049 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3049'; //#3049 - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3049 - $k[$j++] = false; //#3049 - return true; //#3049 - } //#3049 - var _Re = $k[--$j]; //#3051 - var _Rf = $k[--$j]; //#3051 - $k[$j++] = $geti(_Rf, _Re, $f(_Rf.length - _Re)); //#3051 - } //#3051 - } //#3051 - var _Rh = $k[--$j]; //#3056 - $k[$j++] = _Rh; //#3092 - if (_Rh.length >= 1) { //#3092 - var _Ri = $k[--$j]; //#3056 - $k[$j++] = _Ri; //#3092 - if ($cvi($geti(_Ri, 0, 1)) == 9) { //#3092 - var _Rk = $k[--$j]; //#3057 - var _Rl = $geti(_Rk, 1, _Rk.length - 1); //#3057 - $k[$j++] = _Rl; //#3062 - if (_Rl.length < 1) { //#3062 - $j -= 2; //#3061 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3061'; //#3061 - $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3061 - $k[$j++] = false; //#3061 - return true; //#3061 - } //#3061 - var _Rm = $k[--$j]; //#3063 - var _Ro = $cvi($geti(_Rm, 0, 1)); //#3063 - $k[$j++] = _Rm; //#3065 - if ((_Ro > 6) || ((_Ro == 3) || (_Ro == 4))) { //#3065 - $j -= 2; //#3064 - $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3064'; //#3064 - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3064 - $k[$j++] = false; //#3064 - return true; //#3064 - } //#3064 - var _Rp = $k[--$j]; //#3066 - var _Rq = $geti(_Rp, 1, _Rp.length - 1); //#3066 - $k[$j++] = _Rq; //#3071 - if (_Rq.length < 1) { //#3071 - $j -= 2; //#3070 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3070'; //#3070 - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3070 - $k[$j++] = false; //#3070 - return true; //#3070 - } //#3070 - var _Rr = $k[--$j]; //#3072 - $k[$j++] = _Rr; //#3074 - if ($cvi($geti(_Rr, 0, 1)) > 2) { //#3074 - $j -= 2; //#3073 - $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3073'; //#3073 - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3073 - $k[$j++] = false; //#3073 - return true; //#3073 - } //#3073 - var _Rt = $k[--$j]; //#3075 - var _Ru = $geti(_Rt, 1, _Rt.length - 1); //#3075 - $k[$j++] = _Ru; //#3080 - if (_Ru.length < 1) { //#3080 + var _VN = $k[--$j]; //#2985 + var _VP = $cvi($geti(_VN, 0, 1)); //#2985 + $k[$j++] = _VN; //#2987 + if ((_VP > 4) && (_VP != 9)) { //#2987 + $j -= 2; //#2986 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2986'; //#2986 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2986 + $k[$j++] = false; //#2986 + return true; //#2986 + } //#2986 + var _VQ = $k[--$j]; //#2988 + var _VR = $geti(_VQ, 1, _VQ.length - 1); //#2988 + $k[$j++] = _VR; //#2993 + if (_VR.length < 3) { //#2993 + $j -= 2; //#2992 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2992'; //#2992 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2992 + $k[$j++] = false; //#2992 + return true; //#2992 + } //#2992 + var _VS = $k[--$j]; //#2994 + var _VT = $geti(_VS, 3, _VS.length - 3); //#2994 + $k[$j++] = _VT; //#2999 + if (_VT.length < 1) { //#2999 + $j -= 2; //#2998 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2998'; //#2998 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2998 + $k[$j++] = false; //#2998 + return true; //#2998 + } //#2998 + var _VU = $k[--$j]; //#3000 + var _VW = $cvi($geti(_VU, 0, 1)); //#3000 + $k[$j++] = _VU; //#3002 + $k[$j++] = _VW; //#3002 + if ((_VW > 6) && (_VW != 9)) { //#3002 + $j -= 2; //#3001 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#3001'; //#3001 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#3001 + $k[$j++] = false; //#3001 + return true; //#3001 + } //#3001 + var _VX = $k[--$j]; //#3003 + $k[$j++] = _VX; //#3003 + if (_VX != 9) { //#3003 + var _VY = $k[--$j]; //#3003 + $k[$j++] = $f(_VY + 6); //#3003 + } else { //#3003 + $j--; //#3003 + $k[$j++] = 0; //#3003 + } //#3003 + var _VZ = $k[--$j]; //#3003 + var _Va = $k[--$j]; //#3004 + $k[$j++] = _Va; //#3006 + $k[$j++] = $f(_VZ + 1); //#3006 + if ($f(_VZ + 1) > _Va.length) { //#3006 + $j -= 3; //#3005 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#3005'; //#3005 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#3005 + $k[$j++] = false; //#3005 + return true; //#3005 + } //#3005 + var _Vb = $k[--$j]; //#3007 + var _Vc = $k[--$j]; //#3007 + $k[$j++] = $geti(_Vc, _Vb, $f(_Vc.length - _Vb)); //#3007 + } //#3007 + } //#3007 + $_.couponexpire = -1; //#3012 + var _Ve = $k[--$j]; //#3013 + $k[$j++] = _Ve; //#3031 + if (_Ve.length >= 1) { //#3031 + var _Vf = $k[--$j]; //#3013 + $k[$j++] = _Vf; //#3031 + if ($cvi($geti(_Vf, 0, 1)) == 3) { //#3031 + var _Vh = $k[--$j]; //#3014 + var _Vi = $geti(_Vh, 1, _Vh.length - 1); //#3014 + $k[$j++] = _Vi; //#3019 + if (_Vi.length < 6) { //#3019 + $j -= 2; //#3018 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#3018'; //#3018 + $k[$j++] = "Coupon too short: Expiration date"; //#3018 + $k[$j++] = false; //#3018 + return true; //#3018 + } //#3018 + var _Vj = $k[--$j]; //#3020 + var _Vl = $cvi($geti(_Vj, 2, 2)); //#3020 + $k[$j++] = _Vj; //#3020 + if ((_Vl < 1) || (_Vl > 12)) { //#3020 + $j -= 2; //#3020 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#3020'; //#3020 + $k[$j++] = "Invalid month in expiration date"; //#3020 + $k[$j++] = false; //#3020 + return true; //#3020 + } //#3020 + var _Vm = $k[--$j]; //#3021 + var _Vo = $cvi($geti(_Vm, 0, 2)); //#3021 + var _Vp = _Vo - 21; //#3022 + $k[$j++] = _Vm; //#3022 + $k[$j++] = _Vo; //#3022 + $k[$j++] = _Vp; //#3022 + if (_Vp >= 51) { //#3022 + $j--; //#3022 + var _Vq = $k[--$j]; //#3022 + $k[$j++] = $f(_Vq + 1900); //#3022 + } else { //#3022 + if ($k[--$j] <= -50) { //#3022 + var _Vs = $k[--$j]; //#3022 + $k[$j++] = $f(_Vs + 2100); //#3022 + } else { //#3022 + var _Vt = $k[--$j]; //#3022 + $k[$j++] = $f(_Vt + 2000); //#3022 + } //#3022 + } //#3022 + var _Vu = $k[--$j]; //#3023 + $k[$j++] = ((_Vu % 400) == 0) || (((_Vu % 4) == 0) && ((_Vu % 100) != 0)); //#3024 + $k[$j++] = Infinity; //#3024 + var _Vv = $k[--$j]; //#3024 + var _Vx = $k[--$j] ? 29 : 28; //#3024 + $k[$j++] = _Vv; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = _Vx; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + var _Vy = $a(); //#3024 + var _Vz = $k[--$j]; //#3025 + var _W3 = $cvi($geti(_Vz, 4, 2)); //#3026 + $k[$j++] = _Vz; //#3027 + if (($get(_Vy, $cvi($geti(_Vz, 2, 2)) - 1) < _W3) || (_W3 < 1)) { //#3027 + $j -= 2; //#3027 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#3027'; //#3027 + $k[$j++] = "Invalid day of month in expiration date"; //#3027 + $k[$j++] = false; //#3027 + return true; //#3027 + } //#3027 + var _W4 = $k[--$j]; //#3028 + $_.couponexpire = $cvi($geti(_W4, 0, 6)); //#3028 + $k[$j++] = $geti(_W4, 6, _W4.length - 6); //#3029 + } //#3029 + } //#3029 + var _W7 = $k[--$j]; //#3034 + $k[$j++] = _W7; //#3055 + if (_W7.length >= 1) { //#3055 + var _W8 = $k[--$j]; //#3034 + $k[$j++] = _W8; //#3055 + if ($cvi($geti(_W8, 0, 1)) == 4) { //#3055 + var _WA = $k[--$j]; //#3035 + var _WB = $geti(_WA, 1, _WA.length - 1); //#3035 + $k[$j++] = _WB; //#3040 + if (_WB.length < 6) { //#3040 + $j -= 2; //#3039 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3039'; //#3039 + $k[$j++] = "Coupon too short: Start date"; //#3039 + $k[$j++] = false; //#3039 + return true; //#3039 + } //#3039 + var _WC = $k[--$j]; //#3041 + var _WE = $cvi($geti(_WC, 2, 2)); //#3041 + $k[$j++] = _WC; //#3041 + if ((_WE < 1) || (_WE > 12)) { //#3041 + $j -= 2; //#3041 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3041'; //#3041 + $k[$j++] = "Invalid month in start date"; //#3041 + $k[$j++] = false; //#3041 + return true; //#3041 + } //#3041 + var _WF = $k[--$j]; //#3042 + var _WH = $cvi($geti(_WF, 0, 2)); //#3042 + var _WI = _WH - 21; //#3043 + $k[$j++] = _WF; //#3043 + $k[$j++] = _WH; //#3043 + $k[$j++] = _WI; //#3043 + if (_WI >= 51) { //#3043 + $j--; //#3043 + var _WJ = $k[--$j]; //#3043 + $k[$j++] = $f(_WJ + 1900); //#3043 + } else { //#3043 + if ($k[--$j] <= -50) { //#3043 + var _WL = $k[--$j]; //#3043 + $k[$j++] = $f(_WL + 2100); //#3043 + } else { //#3043 + var _WM = $k[--$j]; //#3043 + $k[$j++] = $f(_WM + 2000); //#3043 + } //#3043 + } //#3043 + var _WN = $k[--$j]; //#3044 + $k[$j++] = ((_WN % 400) == 0) || (((_WN % 4) == 0) && ((_WN % 100) != 0)); //#3045 + $k[$j++] = Infinity; //#3045 + var _WO = $k[--$j]; //#3045 + var _WQ = $k[--$j] ? 29 : 28; //#3045 + $k[$j++] = _WO; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = _WQ; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + var _WR = $a(); //#3045 + var _WS = $k[--$j]; //#3046 + var _WW = $cvi($geti(_WS, 4, 2)); //#3047 + $k[$j++] = _WS; //#3048 + if (($get(_WR, $cvi($geti(_WS, 2, 2)) - 1) < _WW) || (_WW < 1)) { //#3048 + $j -= 2; //#3048 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3048'; //#3048 + $k[$j++] = "Invalid day of month in start date"; //#3048 + $k[$j++] = false; //#3048 + return true; //#3048 + } //#3048 + var _WX = $k[--$j]; //#3049 + $_.couponstart = $cvi($geti(_WX, 0, 6)); //#3049 + $k[$j++] = _WX; //#3052 + if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3052 + $j -= 2; //#3051 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3051'; //#3051 + $k[$j++] = "Coupon expires before it starts"; //#3051 + $k[$j++] = false; //#3051 + return true; //#3051 + } //#3051 + var _Wc = $k[--$j]; //#3053 + $k[$j++] = $geti(_Wc, 6, _Wc.length - 6); //#3053 + } //#3053 + } //#3053 + var _We = $k[--$j]; //#3058 + $k[$j++] = _We; //#3071 + if (_We.length >= 1) { //#3071 + var _Wf = $k[--$j]; //#3058 + $k[$j++] = _Wf; //#3071 + if ($cvi($geti(_Wf, 0, 1)) == 5) { //#3071 + var _Wh = $k[--$j]; //#3059 + var _Wi = $geti(_Wh, 1, _Wh.length - 1); //#3059 + $k[$j++] = _Wi; //#3064 + if (_Wi.length < 1) { //#3064 + $j -= 2; //#3063 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3063'; //#3063 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3063 + $k[$j++] = false; //#3063 + return true; //#3063 + } //#3063 + var _Wj = $k[--$j]; //#3065 + var _Wk = $geti(_Wj, 0, 1); //#3065 + $k[$j++] = _Wj; //#3068 + $k[$j++] = ($cvi(_Wk) + 6) + 1; //#3068 + if ((($cvi(_Wk) + 6) + 1) > _Wj.length) { //#3068 + $j -= 3; //#3067 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3067'; //#3067 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#3067 + $k[$j++] = false; //#3067 + return true; //#3067 + } //#3067 + var _Wl = $k[--$j]; //#3069 + var _Wm = $k[--$j]; //#3069 + $k[$j++] = $geti(_Wm, _Wl, $f(_Wm.length - _Wl)); //#3069 + } //#3069 + } //#3069 + var _Wo = $k[--$j]; //#3074 + $k[$j++] = _Wo; //#3090 + if (_Wo.length >= 1) { //#3090 + var _Wp = $k[--$j]; //#3074 + $k[$j++] = _Wp; //#3090 + if ($cvi($geti(_Wp, 0, 1)) == 6) { //#3090 + var _Wr = $k[--$j]; //#3075 + var _Ws = $geti(_Wr, 1, _Wr.length - 1); //#3075 + $k[$j++] = _Ws; //#3080 + if (_Ws.length < 1) { //#3080 $j -= 2; //#3079 - $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3079'; //#3079 - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3079 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3079'; //#3079 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3079 $k[$j++] = false; //#3079 return true; //#3079 } //#3079 - var _Rv = $k[--$j]; //#3081 - var _Rw = $geti(_Rv, 1, _Rv.length - 1); //#3081 - $k[$j++] = _Rw; //#3086 - if (_Rw.length < 1) { //#3086 - $j -= 2; //#3085 - $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3085'; //#3085 - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3085 - $k[$j++] = false; //#3085 - return true; //#3085 - } //#3085 - var _Rx = $k[--$j]; //#3087 - $k[$j++] = _Rx; //#3089 - if ($cvi($geti(_Rx, 0, 1)) > 1) { //#3089 - $j -= 2; //#3088 - $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3088'; //#3088 - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3088 - $k[$j++] = false; //#3088 - return true; //#3088 - } //#3088 - var _Rz = $k[--$j]; //#3090 - $k[$j++] = $geti(_Rz, 1, _Rz.length - 1); //#3090 - } //#3090 - } //#3090 - var _S1 = $k[--$j]; //#3094 - $k[$j++] = _S1; //#3096 - if (_S1.length != 0) { //#3096 - $j -= 2; //#3095 - $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3095'; //#3095 - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3095 - $k[$j++] = false; //#3095 - return true; //#3095 - } //#3095 - $j--; //#3097 - }; //#3097 - $_.lintcouponposoffer = function() { - var _S2 = $k[--$j]; //#3101 - $k[$j++] = _S2; //#3103 - $k[$j++] = true; //#3103 - $forall(_S2, function() { //#3103 - var _S3 = $k[--$j]; //#3102 - if ((_S3 < 48) || (_S3 > 57)) { //#3102 - $j--; //#3102 - $k[$j++] = false; //#3102 - return true; //#3102 - } //#3102 - }); //#3102 - if ($nt($k[--$j])) { //#3104 - $j -= 2; //#3104 - $k[$j++] = 'bwipp.GS1couponNotNumeric#3104'; //#3104 - $k[$j++] = "Coupon not numeric"; //#3104 - $k[$j++] = false; //#3104 - return true; //#3104 - } //#3104 - var _S5 = $k[--$j]; //#3106 - $k[$j++] = _S5; //#3108 - if (_S5.length < 1) { //#3108 - $j -= 2; //#3107 - $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3107'; //#3107 - $k[$j++] = "Coupon too short: Missing Format Code"; //#3107 - $k[$j++] = false; //#3107 - return true; //#3107 - } //#3107 - var _S6 = $k[--$j]; //#3109 - var _S7 = $geti(_S6, 0, 1); //#3109 - $k[$j++] = _S6; //#3111 - if ($ne(_S7, "0") && $ne(_S7, "1")) { //#3111 - $j -= 2; //#3110 - $k[$j++] = 'bwipp.GS1couponBadFormatCode#3110'; //#3110 - $k[$j++] = "Coupon format must be 0 or 1"; //#3110 - $k[$j++] = false; //#3110 - return true; //#3110 - } //#3110 - var _S8 = $k[--$j]; //#3112 - var _S9 = $geti(_S8, 1, _S8.length - 1); //#3112 - $k[$j++] = _S9; //#3116 - if (_S9.length < 1) { //#3116 - $j -= 2; //#3115 - $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3115'; //#3115 - $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3115 - $k[$j++] = false; //#3115 - return true; //#3115 - } //#3115 - var _SA = $k[--$j]; //#3117 - var _SC = $cvi($geti(_SA, 0, 1)); //#3117 - $k[$j++] = _SA; //#3119 - $k[$j++] = _SC; //#3119 - if (_SC > 6) { //#3119 - $j -= 3; //#3118 - $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3118'; //#3118 - $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3118 - $k[$j++] = false; //#3118 - return true; //#3118 - } //#3118 - var _SD = $k[--$j]; //#3120 - var _SE = $k[--$j]; //#3121 - $k[$j++] = _SE; //#3123 - $k[$j++] = $f($f(_SD + 6) + 1); //#3123 - if (($f($f(_SD + 6) + 1)) > _SE.length) { //#3123 - $j -= 3; //#3122 - $k[$j++] = 'bwipp.GS1couponTooShortFunder#3122'; //#3122 - $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3122 - $k[$j++] = false; //#3122 - return true; //#3122 - } //#3122 - var _SF = $k[--$j]; //#3124 - var _SG = $k[--$j]; //#3124 - var _SH = $geti(_SG, _SF, $f(_SG.length - _SF)); //#3124 - $k[$j++] = _SH; //#3128 - if (_SH.length < 6) { //#3128 - $j -= 2; //#3127 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3127'; //#3127 - $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3127 - $k[$j++] = false; //#3127 - return true; //#3127 + var _Wt = $k[--$j]; //#3081 + var _Wv = $cvi($geti(_Wt, 0, 1)); //#3081 + $k[$j++] = _Wt; //#3083 + $k[$j++] = _Wv; //#3083 + if ((_Wv < 1) || (_Wv > 7)) { //#3083 + $j -= 2; //#3082 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3082'; //#3082 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3082 + $k[$j++] = false; //#3082 + return true; //#3082 + } //#3082 + var _Ww = $k[--$j]; //#3084 + var _Wx = $k[--$j]; //#3085 + $k[$j++] = _Wx; //#3087 + $k[$j++] = $f($f(_Ww + 6) + 1); //#3087 + if (($f($f(_Ww + 6) + 1)) > _Wx.length) { //#3087 + $j -= 3; //#3086 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3086'; //#3086 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3086 + $k[$j++] = false; //#3086 + return true; //#3086 + } //#3086 + var _Wy = $k[--$j]; //#3088 + var _Wz = $k[--$j]; //#3088 + $k[$j++] = $geti(_Wz, _Wy, $f(_Wz.length - _Wy)); //#3088 + } //#3088 + } //#3088 + var _X1 = $k[--$j]; //#3093 + $k[$j++] = _X1; //#3129 + if (_X1.length >= 1) { //#3129 + var _X2 = $k[--$j]; //#3093 + $k[$j++] = _X2; //#3129 + if ($cvi($geti(_X2, 0, 1)) == 9) { //#3129 + var _X4 = $k[--$j]; //#3094 + var _X5 = $geti(_X4, 1, _X4.length - 1); //#3094 + $k[$j++] = _X5; //#3099 + if (_X5.length < 1) { //#3099 + $j -= 2; //#3098 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3098'; //#3098 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3098 + $k[$j++] = false; //#3098 + return true; //#3098 + } //#3098 + var _X6 = $k[--$j]; //#3100 + var _X8 = $cvi($geti(_X6, 0, 1)); //#3100 + $k[$j++] = _X6; //#3102 + if ((_X8 > 6) || ((_X8 == 3) || (_X8 == 4))) { //#3102 + $j -= 2; //#3101 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3101'; //#3101 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3101 + $k[$j++] = false; //#3101 + return true; //#3101 + } //#3101 + var _X9 = $k[--$j]; //#3103 + var _XA = $geti(_X9, 1, _X9.length - 1); //#3103 + $k[$j++] = _XA; //#3108 + if (_XA.length < 1) { //#3108 + $j -= 2; //#3107 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3107'; //#3107 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3107 + $k[$j++] = false; //#3107 + return true; //#3107 + } //#3107 + var _XB = $k[--$j]; //#3109 + $k[$j++] = _XB; //#3111 + if ($cvi($geti(_XB, 0, 1)) > 2) { //#3111 + $j -= 2; //#3110 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3110'; //#3110 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3110 + $k[$j++] = false; //#3110 + return true; //#3110 + } //#3110 + var _XD = $k[--$j]; //#3112 + var _XE = $geti(_XD, 1, _XD.length - 1); //#3112 + $k[$j++] = _XE; //#3117 + if (_XE.length < 1) { //#3117 + $j -= 2; //#3116 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3116'; //#3116 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3116 + $k[$j++] = false; //#3116 + return true; //#3116 + } //#3116 + var _XF = $k[--$j]; //#3118 + var _XG = $geti(_XF, 1, _XF.length - 1); //#3118 + $k[$j++] = _XG; //#3123 + if (_XG.length < 1) { //#3123 + $j -= 2; //#3122 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3122'; //#3122 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3122 + $k[$j++] = false; //#3122 + return true; //#3122 + } //#3122 + var _XH = $k[--$j]; //#3124 + $k[$j++] = _XH; //#3126 + if ($cvi($geti(_XH, 0, 1)) > 1) { //#3126 + $j -= 2; //#3125 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3125'; //#3125 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3125 + $k[$j++] = false; //#3125 + return true; //#3125 + } //#3125 + var _XJ = $k[--$j]; //#3127 + $k[$j++] = $geti(_XJ, 1, _XJ.length - 1); //#3127 + } //#3127 } //#3127 - var _SI = $k[--$j]; //#3129 - var _SJ = $geti(_SI, 6, _SI.length - 6); //#3129 - $k[$j++] = _SJ; //#3133 - if (_SJ.length < 1) { //#3133 + var _XL = $k[--$j]; //#3131 + $k[$j++] = _XL; //#3133 + if (_XL.length != 0) { //#3133 $j -= 2; //#3132 - $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3132'; //#3132 - $k[$j++] = "Coupon too short: Missing SN VLI"; //#3132 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3132'; //#3132 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3132 $k[$j++] = false; //#3132 return true; //#3132 } //#3132 - var _SK = $k[--$j]; //#3134 - var _SL = $geti(_SK, 0, 1); //#3134 - $k[$j++] = _SK; //#3138 - $k[$j++] = ($cvi(_SL) + 6) + 1; //#3138 - if ((($cvi(_SL) + 6) + 1) > _SK.length) { //#3138 - $j -= 3; //#3137 - $k[$j++] = 'bwipp.GS1couponTooShortSn#3137'; //#3137 - $k[$j++] = "Coupon too short: Truncated SN"; //#3137 - $k[$j++] = false; //#3137 - return true; //#3137 - } //#3137 - var _SM = $k[--$j]; //#3139 - var _SN = $k[--$j]; //#3139 - var _SO = $geti(_SN, _SM, $f(_SN.length - _SM)); //#3139 - $k[$j++] = _SO; //#3142 - if (_SO.length != 0) { //#3142 + $j--; //#3134 + }; //#3134 + $_.lintcouponposoffer = function() { + var _XM = $k[--$j]; //#3138 + $k[$j++] = _XM; //#3140 + $k[$j++] = true; //#3140 + $forall(_XM, function() { //#3140 + var _XN = $k[--$j]; //#3139 + if ((_XN < 48) || (_XN > 57)) { //#3139 + $j--; //#3139 + $k[$j++] = false; //#3139 + return true; //#3139 + } //#3139 + }); //#3139 + if ($nt($k[--$j])) { //#3141 $j -= 2; //#3141 - $k[$j++] = 'bwipp.GS1couponTooLong#3141'; //#3141 - $k[$j++] = "Coupon too long"; //#3141 + $k[$j++] = 'bwipp.GS1couponNotNumeric#3141'; //#3141 + $k[$j++] = "Coupon not numeric"; //#3141 $k[$j++] = false; //#3141 return true; //#3141 } //#3141 - $j--; //#3143 - }; //#3143 - $_.lintlatlong = function() { - var _SP = $k[--$j]; //#3147 - $k[$j++] = _SP; //#3149 - if (_SP.length != 20) { //#3149 - $j--; //#3148 - $k[$j++] = 'bwipp.GS1badGeoLength#3148'; //#3148 - $k[$j++] = "Invalid length for a geo-location"; //#3148 - $k[$j++] = false; //#3148 - return true; //#3148 - } //#3148 - var _SQ = $k[--$j]; //#3150 - $k[$j++] = _SQ; //#3150 - if ($cvi($geti(_SQ, 0, 10)) > 1800000000) { //#3150 - $j--; //#3150 - $k[$j++] = 'bwipp.GS1badLatitude#3150'; //#3150 - $k[$j++] = "Invalid value for latitude"; //#3150 - $k[$j++] = false; //#3150 - return true; //#3150 - } //#3150 - var _SS = $k[--$j]; //#3151 - $k[$j++] = _SS; //#3151 - if ($cvi($geti(_SS, 10, 10)) > 3600000000) { //#3151 - $j--; //#3151 - $k[$j++] = 'bwipp.GS1badLongitude#3151'; //#3151 - $k[$j++] = "Invalid value for longitude"; //#3151 - $k[$j++] = false; //#3151 - return true; //#3151 - } //#3151 - $j--; //#3152 - }; //#3152 - if (!bwipp_gs1process.__3161__) { //#3161 - $_ = Object.create($_); //#3161 - $k[$j++] = Infinity; //#3160 - var _SU = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3159 - for (var _SV = 0, _SW = _SU.length; _SV < _SW; _SV++) { //#3160 - var _SX = $get(_SU, _SV); //#3160 - $k[$j++] = _SX; //#3160 - $k[$j++] = _SX; //#3160 - } //#3160 - $_.aidcmediatype = $d(); //#3160 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3160 - bwipp_gs1process.__3161__ = 1; //#3160 - $_ = Object.getPrototypeOf($_); //#3160 - } //#3160 - $_.lintmediatype = function() { - var _Sc = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3164 - if (!_Sc) { //#3164 - $j--; //#3164 - $k[$j++] = 'bwipp.GS1UnknownMediaType#3164'; //#3164 - $k[$j++] = "Unknown AIDC media type"; //#3164 + var _XP = $k[--$j]; //#3143 + $k[$j++] = _XP; //#3145 + if (_XP.length < 1) { //#3145 + $j -= 2; //#3144 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3144'; //#3144 + $k[$j++] = "Coupon too short: Missing Format Code"; //#3144 + $k[$j++] = false; //#3144 + return true; //#3144 + } //#3144 + var _XQ = $k[--$j]; //#3146 + var _XR = $geti(_XQ, 0, 1); //#3146 + $k[$j++] = _XQ; //#3148 + if ($ne(_XR, "0") && $ne(_XR, "1")) { //#3148 + $j -= 2; //#3147 + $k[$j++] = 'bwipp.GS1couponBadFormatCode#3147'; //#3147 + $k[$j++] = "Coupon format must be 0 or 1"; //#3147 + $k[$j++] = false; //#3147 + return true; //#3147 + } //#3147 + var _XS = $k[--$j]; //#3149 + var _XT = $geti(_XS, 1, _XS.length - 1); //#3149 + $k[$j++] = _XT; //#3153 + if (_XT.length < 1) { //#3153 + $j -= 2; //#3152 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3152'; //#3152 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3152 + $k[$j++] = false; //#3152 + return true; //#3152 + } //#3152 + var _XU = $k[--$j]; //#3154 + var _XW = $cvi($geti(_XU, 0, 1)); //#3154 + $k[$j++] = _XU; //#3156 + $k[$j++] = _XW; //#3156 + if (_XW > 6) { //#3156 + $j -= 3; //#3155 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3155'; //#3155 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3155 + $k[$j++] = false; //#3155 + return true; //#3155 + } //#3155 + var _XX = $k[--$j]; //#3157 + var _XY = $k[--$j]; //#3158 + $k[$j++] = _XY; //#3160 + $k[$j++] = $f($f(_XX + 6) + 1); //#3160 + if (($f($f(_XX + 6) + 1)) > _XY.length) { //#3160 + $j -= 3; //#3159 + $k[$j++] = 'bwipp.GS1couponTooShortFunder#3159'; //#3159 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3159 + $k[$j++] = false; //#3159 + return true; //#3159 + } //#3159 + var _XZ = $k[--$j]; //#3161 + var _Xa = $k[--$j]; //#3161 + var _Xb = $geti(_Xa, _XZ, $f(_Xa.length - _XZ)); //#3161 + $k[$j++] = _Xb; //#3165 + if (_Xb.length < 6) { //#3165 + $j -= 2; //#3164 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3164'; //#3164 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3164 $k[$j++] = false; //#3164 return true; //#3164 } //#3164 - }; //#3164 - if (!$_.dontlint) { //#3301 - $k[$j++] = true; //#3207 - for (var _Sg = 0, _Sf = $_.vals.length - 1; _Sg <= _Sf; _Sg += 1) { //#3207 - $_.ai = $get($_.ais, _Sg); //#3172 - $_.val = $get($_.vals, _Sg); //#3173 - var _Sn = $get($_.gs1syntax, $_.ai) !== undefined; //#3174 - if (_Sn) { //#3205 - var _Sr = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3175 - $k[$j++] = _Sr; //#3177 - $k[$j++] = 0; //#3177 - $forall(_Sr, function() { //#3177 - var _Ss = $k[--$j]; //#3177 - $k[$j++] = _Ss; //#3177 - if ($get(_Ss, 'opt')) { //#3177 - $j--; //#3177 - $k[$j++] = 0; //#3177 - } else { //#3177 - var _Sv = $get($k[--$j], 'min'); //#3177 - $k[$j++] = _Sv; //#3177 - } //#3177 - var _Sw = $k[--$j]; //#3177 - var _Sx = $k[--$j]; //#3177 - $k[$j++] = $f(_Sx + _Sw); //#3177 - }); //#3177 - if ($k[--$j] > $_.val.length) { //#3179 - $j--; //#3178 - $k[$j++] = 'bwipp.GS1valueTooShort#3178'; //#3178 - $k[$j++] = "Too short"; //#3178 - $k[$j++] = false; //#3178 - break; //#3178 - } //#3178 - var _T0 = $k[--$j]; //#3180 - $k[$j++] = _T0; //#3180 - $k[$j++] = 0; //#3180 - $forall(_T0, function() { //#3180 - var _T2 = $get($k[--$j], 'max'); //#3180 - var _T3 = $k[--$j]; //#3180 - $k[$j++] = $f(_T3 + _T2); //#3180 - }); //#3180 - if ($k[--$j] < $_.val.length) { //#3182 - $j--; //#3181 - $k[$j++] = 'bwipp.GS1valueTooLong#3181'; //#3181 - $k[$j++] = "Too long"; //#3181 - $k[$j++] = false; //#3181 - break; //#3181 - } //#3181 - $forall($k[--$j], function() { //#3199 - $_.props = $k[--$j]; //#3184 - var _T9 = $get($_.props, 'max'); //#3185 - var _TA = $_.val; //#3185 - var _TB = _TA.length; //#3185 - if (_T9 > _TA.length) { //#3185 - var _ = _TB; //#3185 - _TB = _T9; //#3185 - _T9 = _; //#3185 - } //#3185 - $_.eval = $geti($_.val, 0, _T9); //#3186 - var _TG = $_.eval.length; //#3187 - $_.val = $geti($_.val, _TG, $_.val.length - _TG); //#3187 - if ($_.eval.length == 0) { //#3197 - if ($nt($get($_.props, 'opt'))) { //#3191 - $j--; //#3190 - $k[$j++] = 'bwipp.GS1valueTooShort#3190'; //#3190 - $k[$j++] = "Too short"; //#3190 - $k[$j++] = false; //#3190 - return true; //#3190 - } //#3190 - } else { //#3197 - if ($_.eval.length < $get($_.props, 'min')) { //#3195 - $j--; //#3194 - $k[$j++] = 'bwipp.GS1valueTooShort#3194'; //#3194 - $k[$j++] = "Too short"; //#3194 - $k[$j++] = false; //#3194 - return true; //#3194 - } //#3194 - var _TP = new Map([ + var _Xc = $k[--$j]; //#3166 + var _Xd = $geti(_Xc, 6, _Xc.length - 6); //#3166 + $k[$j++] = _Xd; //#3170 + if (_Xd.length < 1) { //#3170 + $j -= 2; //#3169 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3169'; //#3169 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#3169 + $k[$j++] = false; //#3169 + return true; //#3169 + } //#3169 + var _Xe = $k[--$j]; //#3171 + var _Xf = $geti(_Xe, 0, 1); //#3171 + $k[$j++] = _Xe; //#3175 + $k[$j++] = ($cvi(_Xf) + 6) + 1; //#3175 + if ((($cvi(_Xf) + 6) + 1) > _Xe.length) { //#3175 + $j -= 3; //#3174 + $k[$j++] = 'bwipp.GS1couponTooShortSn#3174'; //#3174 + $k[$j++] = "Coupon too short: Truncated SN"; //#3174 + $k[$j++] = false; //#3174 + return true; //#3174 + } //#3174 + var _Xg = $k[--$j]; //#3176 + var _Xh = $k[--$j]; //#3176 + var _Xi = $geti(_Xh, _Xg, $f(_Xh.length - _Xg)); //#3176 + $k[$j++] = _Xi; //#3179 + if (_Xi.length != 0) { //#3179 + $j -= 2; //#3178 + $k[$j++] = 'bwipp.GS1couponTooLong#3178'; //#3178 + $k[$j++] = "Coupon too long"; //#3178 + $k[$j++] = false; //#3178 + return true; //#3178 + } //#3178 + $j--; //#3180 + }; //#3180 + $_.lintlatitude = function() { + var _Xj = $k[--$j]; //#3184 + $k[$j++] = _Xj; //#3186 + if (_Xj.length != 10) { //#3186 + $j--; //#3185 + $k[$j++] = 'bwipp.GS1badLatitudeLength#3185'; //#3185 + $k[$j++] = "Invalid length for a latitude"; //#3185 + $k[$j++] = false; //#3185 + return true; //#3185 + } //#3185 + if ($cvi($k[--$j]) > $cvi("1800000000")) { //#3189 + $j--; //#3189 + $k[$j++] = 'bwipp.GS1badLatitude#3189'; //#3189 + $k[$j++] = "Invalid value for latitude"; //#3189 + $k[$j++] = false; //#3189 + return true; //#3189 + } //#3189 + }; //#3189 + $_.lintlongitude = function() { + var _Xl = $k[--$j]; //#3193 + $k[$j++] = _Xl; //#3195 + if (_Xl.length != 10) { //#3195 + $j--; //#3194 + $k[$j++] = 'bwipp.GS1badLongitudeLength#3194'; //#3194 + $k[$j++] = "Invalid length for a longitude"; //#3194 + $k[$j++] = false; //#3194 + return true; //#3194 + } //#3194 + if ($cvi($k[--$j]) > $cvi("3600000000")) { //#3199 + $j--; //#3199 + $k[$j++] = 'bwipp.GS1badLongitude#3199'; //#3199 + $k[$j++] = "Invalid value for longitude"; //#3199 + $k[$j++] = false; //#3199 + return true; //#3199 + } //#3199 + }; //#3199 + if (!bwipp_gs1process.__3208__) { //#3208 + $_ = Object.create($_); //#3208 + $k[$j++] = Infinity; //#3203 + var _Xn = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3206 + for (var _Xo = 0, _Xp = _Xn.length; _Xo < _Xp; _Xo++) { //#3207 + var _Xq = $get(_Xn, _Xo); //#3207 + $k[$j++] = _Xq; //#3207 + $k[$j++] = _Xq; //#3207 + } //#3207 + $_.aidcmediatype = $d(); //#3207 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3207 + bwipp_gs1process.__3208__ = 1; //#3207 + $_ = Object.getPrototypeOf($_); //#3207 + } //#3207 + $_.lintmediatype = function() { + var _Xv = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3211 + if (!_Xv) { //#3211 + $j--; //#3211 + $k[$j++] = 'bwipp.GS1UnknownMediaType#3211'; //#3211 + $k[$j++] = "Unknown AIDC media type"; //#3211 + $k[$j++] = false; //#3211 + return true; //#3211 + } //#3211 + }; //#3211 + if (!$_.dontlint) { //#3352 + $k[$j++] = true; //#3255 + for (var _Xz = 0, _Xy = $_.vals.length - 1; _Xz <= _Xy; _Xz += 1) { //#3255 + $_.ai = $get($_.ais, _Xz); //#3219 + $_.val = $get($_.vals, _Xz); //#3220 + var _Y6 = $get($_.gs1syntax, $_.ai) !== undefined; //#3221 + if (_Y6) { //#3253 + var _YA = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3222 + $k[$j++] = _YA; //#3224 + $k[$j++] = 0; //#3224 + $forall(_YA, function() { //#3224 + var _YB = $k[--$j]; //#3224 + $k[$j++] = _YB; //#3224 + if ($get(_YB, 'opt')) { //#3224 + $j--; //#3224 + $k[$j++] = 0; //#3224 + } else { //#3224 + var _YE = $get($k[--$j], 'min'); //#3224 + $k[$j++] = _YE; //#3224 + } //#3224 + var _YF = $k[--$j]; //#3224 + var _YG = $k[--$j]; //#3224 + $k[$j++] = $f(_YG + _YF); //#3224 + }); //#3224 + if ($k[--$j] > $_.val.length) { //#3226 + $j--; //#3225 + $k[$j++] = 'bwipp.GS1valueTooShort#3225'; //#3225 + $k[$j++] = "Too short"; //#3225 + $k[$j++] = false; //#3225 + break; //#3225 + } //#3225 + var _YJ = $k[--$j]; //#3227 + $k[$j++] = _YJ; //#3227 + $k[$j++] = 0; //#3227 + $forall(_YJ, function() { //#3227 + var _YL = $get($k[--$j], 'max'); //#3227 + var _YM = $k[--$j]; //#3227 + $k[$j++] = $f(_YM + _YL); //#3227 + }); //#3227 + if ($k[--$j] < $_.val.length) { //#3229 + $j--; //#3228 + $k[$j++] = 'bwipp.GS1valueTooLong#3228'; //#3228 + $k[$j++] = "Too long"; //#3228 + $k[$j++] = false; //#3228 + break; //#3228 + } //#3228 + $forall($k[--$j], function() { //#3247 + $_.props = $k[--$j]; //#3231 + var _YS = $get($_.props, 'max'); //#3232 + var _YT = $_.val; //#3232 + var _YU = _YT.length; //#3232 + if (_YS > _YT.length) { //#3232 + var _ = _YU; //#3232 + _YU = _YS; //#3232 + _YS = _; //#3232 + } //#3232 + $_.eval = $geti($_.val, 0, _YS); //#3233 + var _YZ = $_.eval.length; //#3234 + $_.val = $geti($_.val, _YZ, $_.val.length - _YZ); //#3234 + if ($_.eval.length == 0) { //#3245 + if ($nt($get($_.props, 'opt'))) { //#3238 + $j--; //#3237 + $k[$j++] = 'bwipp.GS1valueTooShort#3237'; //#3237 + $k[$j++] = "Too short"; //#3237 + $k[$j++] = false; //#3237 + return true; //#3237 + } //#3237 + } else { //#3245 + if ($_.eval.length < $get($_.props, 'min')) { //#3242 + $j--; //#3241 + $k[$j++] = 'bwipp.GS1valueTooShort#3241'; //#3241 + $k[$j++] = "Too short"; //#3241 + $k[$j++] = false; //#3241 + return true; //#3241 + } //#3241 + var _Yi = new Map([ ["N", 'lintnumeric'], ["X", 'lintcset82'], - ["Y", 'lintcset39'] - ]); //#3196 - $k[$j++] = $_.eval; //#3196 - if ($_[$get(_TP, $get($_.props, 'cset'))]() === true) { + ["Y", 'lintcset39'], + ["Z", 'lintcset64'] + ]); //#3243 + $k[$j++] = $_.eval; //#3244 + if ($_[$get(_Yi, $get($_.props, 'cset'))]() === true) { return true; - } //#3196 - $forall($get($_.props, 'linters'), function() { //#3197 - var _TZ = $_[$k[--$j]]; //#3197 - $k[$j++] = $_.eval; //#3197 - if (_TZ() === true) { + } //#3244 + $forall($get($_.props, 'linters'), function() { //#3245 + var _Ys = $_[$k[--$j]]; //#3245 + $k[$j++] = $_.eval; //#3245 + if (_Ys() === true) { return true; - } //#3197 - }); //#3197 - } //#3197 - }); //#3197 - var _Ta = $k[--$j]; //#3200 - $k[$j++] = _Ta; //#3200 - if ($nt(_Ta)) { //#3200 - break; //#3200 - } //#3200 - if ($_.val.length != 0) { //#3203 - $j--; //#3202 - $k[$j++] = 'bwipp.GS1valueTooLong#3202'; //#3202 - $k[$j++] = "Too long"; //#3202 - $k[$j++] = false; //#3202 - break; //#3202 - } //#3202 - } else { //#3205 - $j--; //#3205 - $k[$j++] = 'bwipp.GS1unknownAI#3205'; //#3205 - $k[$j++] = "Unrecognised AI"; //#3205 - $k[$j++] = false; //#3205 - break; //#3205 - } //#3205 - } //#3205 - if ($nt($k[--$j])) { //#3215 - var _Td = $k[--$j]; //#3209 - var _Tf = $s((_Td.length + $_.ai.length) + 5); //#3209 - $puti(_Tf, 0, "AI "); //#3210 - $puti(_Tf, 3, $_.ai); //#3211 - $puti(_Tf, 3 + $_.ai.length, ": "); //#3212 - $puti(_Tf, 5 + $_.ai.length, _Td); //#3213 - $k[$j++] = _Tf; //#3214 - bwipp_raiseerror(); //#3214 - } //#3214 + } //#3245 + }); //#3245 + } //#3245 + }); //#3245 + var _Yt = $k[--$j]; //#3248 + $k[$j++] = _Yt; //#3248 + if ($nt(_Yt)) { //#3248 + break; //#3248 + } //#3248 + if ($_.val.length != 0) { //#3251 + $j--; //#3250 + $k[$j++] = 'bwipp.GS1valueTooLong#3250'; //#3250 + $k[$j++] = "Too long"; //#3250 + $k[$j++] = false; //#3250 + break; //#3250 + } //#3250 + } else { //#3253 + $j--; //#3253 + $k[$j++] = 'bwipp.GS1unknownAI#3253'; //#3253 + $k[$j++] = "Unrecognised AI"; //#3253 + $k[$j++] = false; //#3253 + break; //#3253 + } //#3253 + } //#3253 + if ($nt($k[--$j])) { //#3263 + var _Yw = $k[--$j]; //#3257 + var _Yy = $s((_Yw.length + $_.ai.length) + 5); //#3257 + $puti(_Yy, 0, "AI "); //#3258 + $puti(_Yy, 3, $_.ai); //#3259 + $puti(_Yy, 3 + $_.ai.length, ": "); //#3260 + $puti(_Yy, 5 + $_.ai.length, _Yw); //#3261 + $k[$j++] = _Yy; //#3262 + bwipp_raiseerror(); //#3262 + } //#3262 $_.aiexists = function() { - $_.this = $k[--$j]; //#3219 - $_.patt = $k[--$j]; //#3220 - for (var _Tl = 0, _Tm = 1; _Tl < _Tm; _Tl++) { //#3241 - var _Tp = $get($_.aivals, $_.patt) !== undefined; //#3222 - if (_Tp) { //#3222 - $k[$j++] = true; //#3222 - break; //#3222 - } //#3222 - if ($_.patt.length == 4) { //#3239 - if ($eq($geti($_.patt, 3, 1), "n")) { //#3237 - var _Tv = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3225 - $_.pfxlen = _Tv; //#3225 - var _Tw = $_.ais; //#3227 - $k[$j++] = false; //#3235 - for (var _Tx = 0, _Ty = _Tw.length; _Tx < _Ty; _Tx++) { //#3235 - var _Tz = $get(_Tw, _Tx); //#3235 - $k[$j++] = _Tz; //#3234 - if ($ne(_Tz, $_.this) && (_Tz.length == 4)) { //#3233 - if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3231 - $j--; //#3230 - $k[$j++] = true; //#3230 - } //#3230 - } else { //#3233 - $j--; //#3233 - } //#3233 - } //#3233 - break; //#3236 - } //#3236 - $k[$j++] = false; //#3238 - break; //#3238 - } //#3238 - $k[$j++] = false; //#3240 - break; //#3240 - } //#3240 - }; //#3240 - var _U7 = $_.vals; //#3245 - $_.aivals = new Map; //#3245 - for (var _UA = 0, _U9 = $_.vals.length - 1; _UA <= _U9; _UA += 1) { //#3260 - $_.ai = $get($_.ais, _UA); //#3247 - $_.val = $get($_.vals, _UA); //#3248 - var _UH = $get($_.aivals, $_.ai) !== undefined; //#3249 - if (_UH) { //#3258 - if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3256 - var _UN = $s($_.ai.length + 40); //#3251 - $puti(_UN, 0, "Repeated AIs ("); //#3252 - $puti(_UN, 14, $_.ai); //#3253 - $puti(_UN, 14 + $_.ai.length, ") must have the same value"); //#3254 - $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3255'; //#3255 - $k[$j++] = _UN; //#3255 - bwipp_raiseerror(); //#3255 - } //#3255 - } else { //#3258 - $put($_.aivals, $_.ai, $_.val); //#3258 - } //#3258 - } //#3258 - for (var _UV = 0, _UU = $_.vals.length - 1; _UV <= _UU; _UV += 1) { //#3299 - $_.ai = $get($_.ais, _UV); //#3264 - var _Ua = $get($_.gs1syntax, $_.ai); //#3265 - var _Ub = $get(_Ua, 'ex') !== undefined; //#3265 - $k[$j++] = _Ua; //#3280 - $k[$j++] = 'ex'; //#3280 - if (_Ub) { //#3279 - var _Uc = $k[--$j]; //#3266 - $forall($get($k[--$j], _Uc), function() { //#3277 - $_.patt = $k[--$j]; //#3267 - $k[$j++] = $_.patt; //#3268 - $k[$j++] = $_.ai; //#3268 - $_.aiexists(); //#3268 - if ($k[--$j]) { //#3276 - var _Ul = $s(($_.ai.length + $_.patt.length) + 36); //#3269 - $puti(_Ul, 0, "AIs ("); //#3270 - $puti(_Ul, 5, $_.ai); //#3271 - $puti(_Ul, 5 + $_.ai.length, ") and ("); //#3272 - $puti(_Ul, 12 + $_.ai.length, $_.patt); //#3273 - $puti(_Ul, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3274 - $k[$j++] = 'bwipp.GS1exclusiveAIs#3275'; //#3275 - $k[$j++] = _Ul; //#3275 - bwipp_raiseerror(); //#3275 - } //#3275 - }); //#3275 - } else { //#3279 - $j -= 2; //#3279 - } //#3279 - if ($_.lintreqs) { //#3298 - var _Uv = $get($_.gs1syntax, $_.ai); //#3282 - var _Uw = $get(_Uv, 'req') !== undefined; //#3282 - $k[$j++] = _Uv; //#3297 - $k[$j++] = 'req'; //#3297 - if (_Uw) { //#3296 - var _Ux = $k[--$j]; //#3283 - $forall($get($k[--$j], _Ux), function() { //#3294 - var _V0 = $k[--$j]; //#3284 - $k[$j++] = false; //#3286 - $forall(_V0, function() { //#3286 - $k[$j++] = $_.ai; //#3285 - $_.aiexists(); //#3285 - if ($k[--$j]) { //#3285 - $j--; //#3285 - $k[$j++] = true; //#3285 - } //#3285 - }); //#3285 - if ($nt($k[--$j])) { //#3293 - var _V5 = $s($_.ai.length + 47); //#3288 - $puti(_V5, 0, "One of more requisite AIs for AI ("); //#3289 - $puti(_V5, 34, $_.ai); //#3290 - $puti(_V5, 34 + $_.ai.length, ") are missing"); //#3291 - $k[$j++] = 'bwipp.GS1missingAIs#3292'; //#3292 - $k[$j++] = _V5; //#3292 - bwipp_raiseerror(); //#3292 - } //#3292 - }); //#3292 - } else { //#3296 - $j -= 2; //#3296 - } //#3296 - } //#3296 - } //#3296 - } //#3296 - $k[$j++] = $_.ais; //#3305 - $k[$j++] = $_.vals; //#3305 - $k[$j++] = $_.fncs; //#3305 - $_ = Object.getPrototypeOf($_); //#3305 - $_ = Object.getPrototypeOf($_); //#3307 -} - + $_.this = $k[--$j]; //#3267 + $_.patt = $k[--$j]; //#3268 + for (var _Z4 = 0, _Z5 = 1; _Z4 < _Z5; _Z4++) { //#3289 + var _Z8 = $get($_.aivals, $_.patt) !== undefined; //#3270 + if (_Z8) { //#3270 + $k[$j++] = true; //#3270 + break; //#3270 + } //#3270 + if ($_.patt.length == 4) { //#3287 + if ($eq($geti($_.patt, 3, 1), "n")) { //#3285 + var _ZE = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3273 + $_.pfxlen = _ZE; //#3273 + var _ZF = $_.ais; //#3275 + $k[$j++] = false; //#3283 + for (var _ZG = 0, _ZH = _ZF.length; _ZG < _ZH; _ZG++) { //#3283 + var _ZI = $get(_ZF, _ZG); //#3283 + $k[$j++] = _ZI; //#3282 + if ($ne(_ZI, $_.this) && (_ZI.length == 4)) { //#3281 + if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3279 + $j--; //#3278 + $k[$j++] = true; //#3278 + } //#3278 + } else { //#3281 + $j--; //#3281 + } //#3281 + } //#3281 + break; //#3284 + } //#3284 + $k[$j++] = false; //#3286 + break; //#3286 + } //#3286 + $k[$j++] = false; //#3288 + break; //#3288 + } //#3288 + }; //#3288 + var _ZQ = $_.vals; //#3293 + $_.aivals = new Map; //#3293 + for (var _ZT = 0, _ZS = $_.vals.length - 1; _ZT <= _ZS; _ZT += 1) { //#3308 + $_.ai = $get($_.ais, _ZT); //#3295 + $_.val = $get($_.vals, _ZT); //#3296 + var _Za = $get($_.aivals, $_.ai) !== undefined; //#3297 + if (_Za) { //#3306 + if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3304 + var _Zg = $s($_.ai.length + 40); //#3299 + $puti(_Zg, 0, "Repeated AIs ("); //#3300 + $puti(_Zg, 14, $_.ai); //#3301 + $puti(_Zg, 14 + $_.ai.length, ") must have the same value"); //#3302 + $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3303'; //#3303 + $k[$j++] = _Zg; //#3303 + bwipp_raiseerror(); //#3303 + } //#3303 + } else { //#3306 + $put($_.aivals, $_.ai, $_.val); //#3306 + } //#3306 + } //#3306 + for (var _Zo = 0, _Zn = $_.vals.length - 1; _Zo <= _Zn; _Zo += 1) { //#3350 + $_.ai = $get($_.ais, _Zo); //#3312 + var _Zt = $get($_.gs1syntax, $_.ai); //#3313 + var _Zu = $get(_Zt, 'ex') !== undefined; //#3313 + $k[$j++] = _Zt; //#3328 + $k[$j++] = 'ex'; //#3328 + if (_Zu) { //#3327 + var _Zv = $k[--$j]; //#3314 + $forall($get($k[--$j], _Zv), function() { //#3325 + $_.patt = $k[--$j]; //#3315 + $k[$j++] = $_.patt; //#3316 + $k[$j++] = $_.ai; //#3316 + $_.aiexists(); //#3316 + if ($k[--$j]) { //#3324 + var _a4 = $s(($_.ai.length + $_.patt.length) + 36); //#3317 + $puti(_a4, 0, "AIs ("); //#3318 + $puti(_a4, 5, $_.ai); //#3319 + $puti(_a4, 5 + $_.ai.length, ") and ("); //#3320 + $puti(_a4, 12 + $_.ai.length, $_.patt); //#3321 + $puti(_a4, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3322 + $k[$j++] = 'bwipp.GS1exclusiveAIs#3323'; //#3323 + $k[$j++] = _a4; //#3323 + bwipp_raiseerror(); //#3323 + } //#3323 + }); //#3323 + } else { //#3327 + $j -= 2; //#3327 + } //#3327 + if ($_.lintreqs) { //#3349 + var _aE = $get($_.gs1syntax, $_.ai); //#3330 + var _aF = $get(_aE, 'req') !== undefined; //#3330 + $k[$j++] = _aE; //#3348 + $k[$j++] = 'req'; //#3348 + if (_aF) { //#3347 + var _aG = $k[--$j]; //#3331 + $forall($get($k[--$j], _aG), function() { //#3345 + var _aJ = $k[--$j]; //#3332 + $k[$j++] = false; //#3337 + $forall(_aJ, function() { //#3337 + var _aK = $k[--$j]; //#3333 + $k[$j++] = true; //#3335 + $forall(_aK, function() { //#3335 + $k[$j++] = $_.ai; //#3334 + $_.aiexists(); //#3334 + if ($nt($k[--$j])) { //#3334 + $j--; //#3334 + $k[$j++] = false; //#3334 + } //#3334 + }); //#3334 + if ($k[--$j]) { //#3336 + $j--; //#3336 + $k[$j++] = true; //#3336 + return true; //#3336 + } //#3336 + }); //#3336 + if ($nt($k[--$j])) { //#3344 + var _aQ = $s($_.ai.length + 47); //#3339 + $puti(_aQ, 0, "One of more requisite AIs for AI ("); //#3340 + $puti(_aQ, 34, $_.ai); //#3341 + $puti(_aQ, 34 + $_.ai.length, ") are missing"); //#3342 + $k[$j++] = 'bwipp.GS1missingAIs#3343'; //#3343 + $k[$j++] = _aQ; //#3343 + bwipp_raiseerror(); //#3343 + } //#3343 + }); //#3343 + } else { //#3347 + $j -= 2; //#3347 + } //#3347 + } //#3347 + } //#3347 + } //#3347 + $k[$j++] = $_.ais; //#3356 + $k[$j++] = $_.vals; //#3356 + $k[$j++] = $_.fncs; //#3356 + $_ = Object.getPrototypeOf($_); //#3356 + $_ = Object.getPrototypeOf($_); //#3358 +} //bwipp_gs1process function bwipp_renmatrix() { - if ($_.bwipjs_dontdraw) { //#3569 - return; //#3569 - } //#3569 - $_ = Object.create($_); //#3571 - $_.width = 1; //#3574 - $_.height = 1; //#3575 - $_.barcolor = "unset"; //#3576 - $_.backgroundcolor = "unset"; //#3577 - $_.colormap = "unset"; //#3578 - $_.dotty = false; //#3579 - $_.inkspread = 0; //#3580 - $_.inkspreadh = 0; //#3581 - $_.inkspreadv = 0; //#3582 - $_.includetext = false; //#3583 - $_.txt = $a([]); //#3584 - $_.textcolor = "unset"; //#3585 - $_.textxalign = "unset"; //#3586 - $_.textyalign = "unset"; //#3587 - $_.textfont = "OCR-B"; //#3588 - $_.textsize = 10; //#3589 - $_.textxoffset = 0; //#3590 - $_.textyoffset = 0; //#3591 - $_.textgaps = 0; //#3592 - $_.alttext = ""; //#3593 - $forall($k[--$j], function() { //#3595 - var _3 = $k[--$j]; //#3595 - $_[$k[--$j]] = _3; //#3595 - }); //#3595 - $k[$j++] = $_.opt; //#3596 - delete $_['opt']; //#3596 - $k[$j++] = $_; //#3596 - bwipp_processoptions(); //#3596 - $j--; //#3596 - if ($_.inkspread != 0) { //#3598 - $_.inkspreadh = $_.inkspread; //#3598 - } //#3598 - if ($_.inkspread != 0) { //#3599 - $_.inkspreadv = $_.inkspread; //#3599 - } //#3599 - if ($_.textsize <= 0) { //#3603 - $k[$j++] = 'bwipp.renmatrixBadTextsize#3602'; //#3602 - $k[$j++] = "The font size must be greater than zero"; //#3602 - bwipp_raiseerror(); //#3602 - } //#3602 + if ($_.bwipjs_dontdraw) { //#3633 + return; //#3633 + } //#3633 + $_ = Object.create($_); //#3635 + $_.width = 1; //#3638 + $_.height = 1; //#3639 + $_.bordercolor = "unset"; //#3640 + $_.barcolor = "unset"; //#3641 + $_.backgroundcolor = "unset"; //#3642 + $_.colormap = "unset"; //#3643 + $_.dotty = false; //#3644 + $_.inkspread = null; //#3645 + $_.inkspreadh = null; //#3646 + $_.inkspreadv = null; //#3647 + $_.includetext = false; //#3648 + $_.txt = $a([]); //#3649 + $_.textcolor = "unset"; //#3650 + $_.textxalign = "unset"; //#3651 + $_.textyalign = "unset"; //#3652 + $_.textfont = "OCR-B"; //#3653 + $_.textsize = 10; //#3654 + $_.textxoffset = 0; //#3655 + $_.textyoffset = 0; //#3656 + $_.textgaps = 0; //#3657 + $_.alttext = ""; //#3658 + $_.showborder = false; //#3659 + $_.borderleft = 0; //#3660 + $_.borderright = 0; //#3661 + $_.bordertop = 0; //#3662 + $_.borderbottom = 0; //#3663 + $_.borderwidth = 0.25; //#3664 + $forall($k[--$j], function() { //#3666 + var _3 = $k[--$j]; //#3666 + $_[$k[--$j]] = _3; //#3666 + }); //#3666 + $k[$j++] = $_.opt; //#3667 + delete $_['opt']; //#3667 + $k[$j++] = $_; //#3667 + bwipp_processoptions(); //#3667 + $j--; //#3667 + if ($eq($_.inkspread, null)) { //#3669 + $_.inkspread = 0; //#3669 + } //#3669 + if ($eq($_.inkspreadh, null)) { //#3670 + $_.inkspreadh = $_.inkspread; //#3670 + } //#3670 + if ($eq($_.inkspreadv, null)) { //#3671 + $_.inkspreadv = $_.inkspread; //#3671 + } //#3671 + if ($_.textsize <= 0) { //#3675 + $k[$j++] = 'bwipp.renmatrixBadTextsize#3674'; //#3674 + $k[$j++] = "The font size must be greater than zero"; //#3674 + bwipp_raiseerror(); //#3674 + } //#3674 $_.xyget = function() { - var _C = $k[--$j]; //#3605 - var _F = $get($_.pixs, $f($k[--$j] + (_C * $_.pixx))); //#3605 - $k[$j++] = _F; //#3605 - }; //#3605 + var _D = $k[--$j]; //#3677 + var _G = $get($_.pixs, $f($k[--$j] + (_D * $_.pixx))); //#3677 + $k[$j++] = _G; //#3677 + }; //#3677 $_.cget = function() { - var _H = $k[--$j]; //#3606 - var _K = $get($_.cache, $f($k[--$j] + (_H * $_.pixx))); //#3606 - var _L = $k[--$j]; //#3606 - $k[$j++] = $an(_L, _K); //#3606 - }; //#3606 + var _I = $k[--$j]; //#3678 + var _L = $get($_.cache, $f($k[--$j] + (_I * $_.pixx))); //#3678 + var _M = $k[--$j]; //#3678 + $k[$j++] = $an(_M, _L); //#3678 + }; //#3678 $_.cput = function() { - var _M = $k[--$j]; //#3608 - $k[$j++] = _M; //#3612 - if ((_M % 4) == 0) { //#3611 - var _N = $k[--$j]; //#3609 - var _O = $k[--$j]; //#3609 - var _P = $k[--$j]; //#3609 - var _Q = $_.pixx; //#3609 - var _R = $_.cache; //#3609 - $put(_R, $f(_P + (_O * _Q)), $or($get(_R, $f(_P + (_O * _Q))), _N)); //#3609 - } else { //#3611 - $j -= 3; //#3611 - } //#3611 - }; //#3611 + var _N = $k[--$j]; //#3680 + $k[$j++] = _N; //#3684 + if ((_N % 4) == 0) { //#3683 + var _O = $k[--$j]; //#3681 + var _P = $k[--$j]; //#3681 + var _Q = $k[--$j]; //#3681 + var _R = $_.pixx; //#3681 + var _S = $_.cache; //#3681 + $put(_S, $f(_Q + (_P * _R)), $or($get(_S, $f(_Q + (_P * _R))), _O)); //#3681 + } else { //#3683 + $j -= 3; //#3683 + } //#3683 + }; //#3683 $_.abcd = function() { - $k[$j++] = $s(4); //#3620 - $k[$j++] = 0; //#3620 - $k[$j++] = Infinity; //#3620 - var _U = $k[--$j]; //#3617 - var _V = $k[--$j]; //#3617 - var _W = $k[--$j]; //#3617 - var _X = $k[--$j]; //#3617 - var _a = $f($k[--$j] + (_X * $_.pixx)); //#3618 - $k[$j++] = _W; //#3619 - $k[$j++] = _V; //#3619 - $k[$j++] = _U; //#3619 - $k[$j++] = _a; //#3619 - $aload($geti($_.pixs, _a, 2)); //#3619 - var _d = $k[--$j]; //#3619 - var _e = $k[--$j]; //#3619 - var _i = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3620 - $k[$j++] = _e; //#3620 - $k[$j++] = _d; //#3620 - $aload(_i); //#3620 - var _j = $a(); //#3620 - for (var _k = 0, _l = _j.length; _k < _l; _k++) { //#3621 - var _n = $k[--$j]; //#3621 - var _o = $k[--$j]; //#3621 - $put(_o, _n, $f($get(_j, _k) + 48)); //#3621 - $k[$j++] = _o; //#3621 - $k[$j++] = $f(_n + 1); //#3621 - } //#3621 - $j--; //#3621 - }; //#3621 + $k[$j++] = $s(4); //#3692 + $k[$j++] = 0; //#3692 + $k[$j++] = Infinity; //#3688 + var _V = $k[--$j]; //#3689 + var _W = $k[--$j]; //#3689 + var _X = $k[--$j]; //#3689 + var _Y = $k[--$j]; //#3689 + var _b = $f($k[--$j] + (_Y * $_.pixx)); //#3690 + $k[$j++] = _X; //#3691 + $k[$j++] = _W; //#3691 + $k[$j++] = _V; //#3691 + $k[$j++] = _b; //#3691 + $aload($geti($_.pixs, _b, 2)); //#3691 + var _e = $k[--$j]; //#3691 + var _f = $k[--$j]; //#3691 + var _j = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3692 + $k[$j++] = _f; //#3692 + $k[$j++] = _e; //#3692 + $aload(_j); //#3692 + var _k = $a(); //#3692 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#3693 + var _o = $k[--$j]; //#3693 + var _p = $k[--$j]; //#3693 + $put(_p, _o, $f($get(_k, _l) + 48)); //#3693 + $k[$j++] = _p; //#3693 + $k[$j++] = $f(_o + 1); //#3693 + } //#3693 + $j--; //#3693 + }; //#3693 $_.right = function() { - if ($_.dir != 1) { //#3624 - $k[$j++] = $_.x; //#3624 - $k[$j++] = $_.y; //#3624 - $k[$j++] = $_.dir; //#3624 - $_.cput(); //#3624 - $k[$j++] = $a([$_.x, $_.y]); //#3624 - } //#3624 - $_.x = $_.x + 1; //#3624 - $_.dir = 1; //#3624 - }; //#3624 + if ($_.dir != 1) { //#3696 + $k[$j++] = $_.x; //#3696 + $k[$j++] = $_.y; //#3696 + $k[$j++] = $_.dir; //#3696 + $_.cput(); //#3696 + $k[$j++] = $a([$_.x, $_.y]); //#3696 + } //#3696 + $_.x = $_.x + 1; //#3696 + $_.dir = 1; //#3696 + }; //#3696 $_.down = function() { - if ($_.dir != 2) { //#3625 - $k[$j++] = $_.x; //#3625 - $k[$j++] = $_.y; //#3625 - $k[$j++] = $_.dir; //#3625 - $_.cput(); //#3625 - $k[$j++] = $a([$_.x, $_.y]); //#3625 - } //#3625 - $_.y = $_.y + 1; //#3625 - $_.dir = 2; //#3625 - }; //#3625 + if ($_.dir != 2) { //#3697 + $k[$j++] = $_.x; //#3697 + $k[$j++] = $_.y; //#3697 + $k[$j++] = $_.dir; //#3697 + $_.cput(); //#3697 + $k[$j++] = $a([$_.x, $_.y]); //#3697 + } //#3697 + $_.y = $_.y + 1; //#3697 + $_.dir = 2; //#3697 + }; //#3697 $_.left = function() { - if ($_.dir != 4) { //#3626 - $k[$j++] = $_.x; //#3626 - $k[$j++] = $_.y; //#3626 - $k[$j++] = $_.dir; //#3626 - $_.cput(); //#3626 - $k[$j++] = $a([$_.x, $_.y]); //#3626 - } //#3626 - $_.x = $_.x - 1; //#3626 - $_.dir = 4; //#3626 - }; //#3626 + if ($_.dir != 4) { //#3698 + $k[$j++] = $_.x; //#3698 + $k[$j++] = $_.y; //#3698 + $k[$j++] = $_.dir; //#3698 + $_.cput(); //#3698 + $k[$j++] = $a([$_.x, $_.y]); //#3698 + } //#3698 + $_.x = $_.x - 1; //#3698 + $_.dir = 4; //#3698 + }; //#3698 $_.up = function() { - if ($_.dir != 8) { //#3627 - $k[$j++] = $_.x; //#3627 - $k[$j++] = $_.y; //#3627 - $k[$j++] = $_.dir; //#3627 - $_.cput(); //#3627 - $k[$j++] = $a([$_.x, $_.y]); //#3627 - } //#3627 - $_.y = $_.y - 1; //#3627 - $_.dir = 8; //#3627 - }; //#3627 + if ($_.dir != 8) { //#3699 + $k[$j++] = $_.x; //#3699 + $k[$j++] = $_.y; //#3699 + $k[$j++] = $_.dir; //#3699 + $_.cput(); //#3699 + $k[$j++] = $a([$_.x, $_.y]); //#3699 + } //#3699 + $_.y = $_.y - 1; //#3699 + $_.dir = 8; //#3699 + }; //#3699 $_.trace = function() { - $_.y = $k[--$j]; //#3631 - $_.x = $k[--$j]; //#3631 - $k[$j++] = 'dir'; //#3633 - $k[$j++] = $f($_.x + 1); //#3633 - $k[$j++] = $f($_.y + 1); //#3633 - $_.xyget(); //#3633 - var _1Q = ($k[--$j] == 1) ? 8 : 4; //#3633 - $_[$k[--$j]] = _1Q; //#3633 - $_.sx = $_.x; //#3634 - $_.sy = $_.y; //#3634 - $_.sdir = $_.dir; //#3634 - $k[$j++] = Infinity; //#3638 - for (;;) { //#3652 - $k[$j++] = $_.x; //#3639 - $k[$j++] = $_.y; //#3639 - $_.abcd(); //#3639 - for (var _1X = 0, _1Y = 1; _1X < _1Y; _1X++) { //#3650 - var _1Z = $k[--$j]; //#3641 - $k[$j++] = _1Z; //#3641 - if ($eq(_1Z, "0001") || ($eq(_1Z, "0011") || $eq(_1Z, "1011"))) { //#3641 - $j--; //#3641 - $_.right(); //#3641 - break; //#3641 - } //#3641 - var _1a = $k[--$j]; //#3642 - $k[$j++] = _1a; //#3642 - if ($eq(_1a, "0010") || ($eq(_1a, "1010") || $eq(_1a, "1110"))) { //#3642 - $j--; //#3642 - $_.down(); //#3642 - break; //#3642 - } //#3642 - var _1b = $k[--$j]; //#3643 - $k[$j++] = _1b; //#3643 - if ($eq(_1b, "1000") || ($eq(_1b, "1100") || $eq(_1b, "1101"))) { //#3643 - $j--; //#3643 - $_.left(); //#3643 - break; //#3643 - } //#3643 - var _1c = $k[--$j]; //#3644 - $k[$j++] = _1c; //#3644 - if ($eq(_1c, "0100") || ($eq(_1c, "0101") || $eq(_1c, "0111"))) { //#3644 - $j--; //#3644 - $_.up(); //#3644 - break; //#3644 - } //#3644 - var _1d = $k[--$j]; //#3645 - $k[$j++] = _1d; //#3649 - if ($eq(_1d, "1001")) { //#3648 - if ($_.dir == 2) { //#3646 - $j--; //#3646 - $_.left(); //#3646 - break; //#3646 - } else { //#3646 - $j--; //#3646 - $_.right(); //#3646 - break; //#3646 - } //#3646 - } else { //#3648 - if ($_.dir == 1) { //#3648 - $j--; //#3648 - $_.down(); //#3648 - break; //#3648 - } else { //#3648 - $j--; //#3648 - $_.up(); //#3648 - break; //#3648 - } //#3648 - } //#3648 - } //#3648 - if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3651 - break; //#3651 - } //#3651 - } //#3651 - $astore($a($counttomark())); //#3653 - var _1o = $k[--$j]; //#3653 - var _1p = $k[--$j]; //#3653 - $k[$j++] = _1o; //#3653 - $k[$j++] = _1p; //#3653 - $j--; //#3653 - }; //#3653 + $_.y = $k[--$j]; //#3703 + $_.x = $k[--$j]; //#3703 + $k[$j++] = 'dir'; //#3705 + $k[$j++] = $f($_.x + 1); //#3705 + $k[$j++] = $f($_.y + 1); //#3705 + $_.xyget(); //#3705 + var _1R = ($k[--$j] == 1) ? 8 : 4; //#3705 + $_[$k[--$j]] = _1R; //#3705 + $_.sx = $_.x; //#3706 + $_.sy = $_.y; //#3706 + $_.sdir = $_.dir; //#3706 + $k[$j++] = Infinity; //#3710 + for (;;) { //#3724 + $k[$j++] = $_.x; //#3711 + $k[$j++] = $_.y; //#3711 + $_.abcd(); //#3711 + for (var _1Y = 0, _1Z = 1; _1Y < _1Z; _1Y++) { //#3722 + var _1a = $k[--$j]; //#3713 + $k[$j++] = _1a; //#3713 + if ($eq(_1a, "0001") || ($eq(_1a, "0011") || $eq(_1a, "1011"))) { //#3713 + $j--; //#3713 + $_.right(); //#3713 + break; //#3713 + } //#3713 + var _1b = $k[--$j]; //#3714 + $k[$j++] = _1b; //#3714 + if ($eq(_1b, "0010") || ($eq(_1b, "1010") || $eq(_1b, "1110"))) { //#3714 + $j--; //#3714 + $_.down(); //#3714 + break; //#3714 + } //#3714 + var _1c = $k[--$j]; //#3715 + $k[$j++] = _1c; //#3715 + if ($eq(_1c, "1000") || ($eq(_1c, "1100") || $eq(_1c, "1101"))) { //#3715 + $j--; //#3715 + $_.left(); //#3715 + break; //#3715 + } //#3715 + var _1d = $k[--$j]; //#3716 + $k[$j++] = _1d; //#3716 + if ($eq(_1d, "0100") || ($eq(_1d, "0101") || $eq(_1d, "0111"))) { //#3716 + $j--; //#3716 + $_.up(); //#3716 + break; //#3716 + } //#3716 + var _1e = $k[--$j]; //#3717 + $k[$j++] = _1e; //#3721 + if ($eq(_1e, "1001")) { //#3720 + if ($_.dir == 2) { //#3718 + $j--; //#3718 + $_.left(); //#3718 + break; //#3718 + } else { //#3718 + $j--; //#3718 + $_.right(); //#3718 + break; //#3718 + } //#3718 + } else { //#3720 + if ($_.dir == 1) { //#3720 + $j--; //#3720 + $_.down(); //#3720 + break; //#3720 + } else { //#3720 + $j--; //#3720 + $_.up(); //#3720 + break; //#3720 + } //#3720 + } //#3720 + } //#3720 + if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3723 + break; //#3723 + } //#3723 + } //#3723 + $astore($a($counttomark())); //#3725 + var _1p = $k[--$j]; //#3725 + var _1q = $k[--$j]; //#3725 + $k[$j++] = _1p; //#3725 + $k[$j++] = _1q; //#3725 + $j--; //#3725 + }; //#3725 $_.drawlayer = function() { - $_.pixsorig = $_.pixs; //#3679 - $_.pixs = $k[--$j]; //#3680 - $k[$j++] = Infinity; //#3690 - for (var _1t = 0, _1u = $_.pixx + 2; _1t < _1u; _1t++) { //#3684 - $k[$j++] = 0; //#3684 - } //#3684 - for (var _1y = 0, _1z = $_.pixx, _1x = $_.pixs.length - 1; _1z < 0 ? _1y >= _1x : _1y <= _1x; _1y += _1z) { //#3689 - $k[$j++] = 0; //#3687 - $aload($geti($_.pixs, _1y, $_.pixx)); //#3687 - $k[$j++] = 0; //#3688 - } //#3688 - for (var _24 = 0, _25 = $_.pixx + 2; _24 < _25; _24++) { //#3690 - $k[$j++] = 0; //#3690 - } //#3690 - $_.pixs = $a(); //#3690 - $_.pixx = $_.pixx + 2; //#3692 - $_.pixy = $_.pixy + 2; //#3693 - $k[$j++] = Infinity; //#3696 - for (var _2A = 0, _2B = $_.pixs.length; _2A < _2B; _2A++) { //#3696 - $k[$j++] = 0; //#3696 - } //#3696 - $_.cache = $a(); //#3696 - $k[$j++] = Infinity; //#3712 - for (var _2F = 0, _2E = $_.pixy - 2; _2F <= _2E; _2F += 1) { //#3716 - $_.j = _2F; //#3701 - for (var _2I = 0, _2H = $_.pixx - 2; _2I <= _2H; _2I += 1) { //#3715 - $_.i = _2I; //#3703 - $k[$j++] = 'k'; //#3704 - $k[$j++] = $_.i; //#3704 - $k[$j++] = $_.j; //#3704 - $_.abcd(); //#3704 - var _2L = $k[--$j]; //#3704 - $_[$k[--$j]] = _2L; //#3704 - if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3709 - $k[$j++] = 8; //#3706 - $k[$j++] = $_.i; //#3706 - $k[$j++] = $_.j; //#3706 - $_.cget(); //#3706 - if ($k[--$j] == 0) { //#3708 - $k[$j++] = $_.i; //#3707 - $k[$j++] = $_.j; //#3707 - $_.trace(); //#3707 - } //#3707 - } //#3707 - if ($eq($_.k, "1110")) { //#3714 - $k[$j++] = 4; //#3711 - $k[$j++] = $_.i; //#3711 - $k[$j++] = $_.j; //#3711 - $_.cget(); //#3711 - if ($k[--$j] == 0) { //#3713 - $k[$j++] = $_.i; //#3712 - $k[$j++] = $_.j; //#3712 - $_.trace(); //#3712 - } //#3712 - } //#3712 - } //#3712 - } //#3712 - $_.paths = $a(); //#3712 - $_.pixx = $_.pixx - 2; //#3720 - $_.pixy = $_.pixy - 2; //#3721 - $$.newpath(); //#3724 - var _2d = $_.paths; //#3725 - for (var _2e = 0, _2f = _2d.length; _2e < _2f; _2e++) { //#3743 - $_.p = $get(_2d, _2e); //#3726 - $_.len = $_.p.length; //#3727 - $aload($get($_.p, $_.len - 1)); //#3728 - $aload($get($_.p, 0)); //#3729 - for (var _2p = 0, _2o = $_.len - 1; _2p <= _2o; _2p += 1) { //#3740 - $_.i = _2p; //#3731 - $aload($get($_.p, ($_.i + 1) % $_.len)); //#3732 - var _2u = $k[--$j]; //#3732 - var _2v = $k[--$j]; //#3732 - var _2w = $k[--$j]; //#3732 - var _2x = $k[--$j]; //#3732 - var _2y = $k[--$j]; //#3732 - var _2z = $k[--$j]; //#3732 - $k[$j++] = _2x; //#3734 - $k[$j++] = _2w; //#3734 - $k[$j++] = _2v; //#3734 - $k[$j++] = _2u; //#3734 - $k[$j++] = _2z; //#3734 - $k[$j++] = _2x; //#3734 - $k[$j++] = $_.inkspreadh; //#3734 - if ($lt(_2u, _2y)) { //#3734 - var _31 = $k[--$j]; //#3734 - var _32 = $k[--$j]; //#3734 - $k[$j++] = $f(_32 + _31); //#3734 - } else { //#3734 - var _33 = $k[--$j]; //#3734 - var _34 = $k[--$j]; //#3734 - $k[$j++] = $f(_34 - _33); //#3734 - } //#3734 - var _35 = $k[--$j]; //#3735 - var _36 = $k[--$j]; //#3735 - var _37 = $k[--$j]; //#3735 - var _38 = $k[--$j]; //#3735 - var _39 = $k[--$j]; //#3736 - $k[$j++] = _39; //#3737 - $k[$j++] = _35; //#3737 - $k[$j++] = _38; //#3737 - $k[$j++] = _37; //#3737 - $k[$j++] = _39; //#3737 - $k[$j++] = $_.inkspreadv; //#3737 - if ($gt(_38, _36)) { //#3737 - var _3B = $k[--$j]; //#3737 - var _3C = $k[--$j]; //#3737 - $k[$j++] = $f(_3C + _3B); //#3737 - } else { //#3737 - var _3D = $k[--$j]; //#3737 - var _3E = $k[--$j]; //#3737 - $k[$j++] = $f(_3E - _3D); //#3737 - } //#3737 - var _3F = $k[--$j]; //#3738 - var _3G = $k[--$j]; //#3738 - var _3H = $k[--$j]; //#3738 - var _3I = $k[--$j]; //#3738 - $k[$j++] = _3H; //#3739 - $k[$j++] = _3G; //#3739 - $k[$j++] = _3I; //#3739 - $k[$j++] = $f($_.pixy - _3F); //#3739 - if ($_.i == 0) { //#3739 - var _3L = $k[--$j]; //#3739 - $$.moveto($k[--$j], _3L); //#3739 - } else { //#3739 - var _3N = $k[--$j]; //#3739 - $$.lineto($k[--$j], _3N); //#3739 - } //#3739 - } //#3739 - $$.closepath(); //#3741 - $j -= 4; //#3742 - } //#3742 - $$.fill(); //#3744 - $_.pixs = $_.pixsorig; //#3746 - }; //#3746 + $_.pixsorig = $_.pixs; //#3751 + $_.pixs = $k[--$j]; //#3752 + $k[$j++] = Infinity; //#3755 + for (var _1u = 0, _1v = $_.pixx + 2; _1u < _1v; _1u++) { //#3756 + $k[$j++] = 0; //#3756 + } //#3756 + for (var _1z = 0, _20 = $_.pixx, _1y = $_.pixs.length - 1; _20 < 0 ? _1z >= _1y : _1z <= _1y; _1z += _20) { //#3761 + $k[$j++] = 0; //#3759 + $aload($geti($_.pixs, _1z, $_.pixx)); //#3759 + $k[$j++] = 0; //#3760 + } //#3760 + for (var _25 = 0, _26 = $_.pixx + 2; _25 < _26; _25++) { //#3762 + $k[$j++] = 0; //#3762 + } //#3762 + $_.pixs = $a(); //#3762 + $_.pixx = $_.pixx + 2; //#3764 + $_.pixy = $_.pixy + 2; //#3765 + $k[$j++] = Infinity; //#3768 + for (var _2B = 0, _2C = $_.pixs.length; _2B < _2C; _2B++) { //#3768 + $k[$j++] = 0; //#3768 + } //#3768 + $_.cache = $a(); //#3768 + $k[$j++] = Infinity; //#3771 + for (var _2G = 0, _2F = $_.pixy - 2; _2G <= _2F; _2G += 1) { //#3788 + $_.j = _2G; //#3773 + for (var _2J = 0, _2I = $_.pixx - 2; _2J <= _2I; _2J += 1) { //#3787 + $_.i = _2J; //#3775 + $k[$j++] = 'k'; //#3776 + $k[$j++] = $_.i; //#3776 + $k[$j++] = $_.j; //#3776 + $_.abcd(); //#3776 + var _2M = $k[--$j]; //#3776 + $_[$k[--$j]] = _2M; //#3776 + if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3781 + $k[$j++] = 8; //#3778 + $k[$j++] = $_.i; //#3778 + $k[$j++] = $_.j; //#3778 + $_.cget(); //#3778 + if ($k[--$j] == 0) { //#3780 + $k[$j++] = $_.i; //#3779 + $k[$j++] = $_.j; //#3779 + $_.trace(); //#3779 + } //#3779 + } //#3779 + if ($eq($_.k, "1110")) { //#3786 + $k[$j++] = 4; //#3783 + $k[$j++] = $_.i; //#3783 + $k[$j++] = $_.j; //#3783 + $_.cget(); //#3783 + if ($k[--$j] == 0) { //#3785 + $k[$j++] = $_.i; //#3784 + $k[$j++] = $_.j; //#3784 + $_.trace(); //#3784 + } //#3784 + } //#3784 + } //#3784 + } //#3784 + $_.paths = $a(); //#3784 + $_.pixx = $_.pixx - 2; //#3792 + $_.pixy = $_.pixy - 2; //#3793 + $$.newpath(); //#3796 + var _2e = $_.paths; //#3797 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#3815 + $_.p = $get(_2e, _2f); //#3798 + $_.len = $_.p.length; //#3799 + $aload($get($_.p, $_.len - 1)); //#3800 + $aload($get($_.p, 0)); //#3801 + for (var _2q = 0, _2p = $_.len - 1; _2q <= _2p; _2q += 1) { //#3812 + $_.i = _2q; //#3803 + $aload($get($_.p, ($_.i + 1) % $_.len)); //#3804 + var _2v = $k[--$j]; //#3804 + var _2w = $k[--$j]; //#3804 + var _2x = $k[--$j]; //#3804 + var _2y = $k[--$j]; //#3804 + var _2z = $k[--$j]; //#3804 + var _30 = $k[--$j]; //#3804 + $k[$j++] = _2y; //#3806 + $k[$j++] = _2x; //#3806 + $k[$j++] = _2w; //#3806 + $k[$j++] = _2v; //#3806 + $k[$j++] = _30; //#3806 + $k[$j++] = _2y; //#3806 + $k[$j++] = $_.inkspreadh; //#3806 + if ($lt(_2v, _2z)) { //#3806 + var _32 = $k[--$j]; //#3806 + var _33 = $k[--$j]; //#3806 + $k[$j++] = $f(_33 + _32); //#3806 + } else { //#3806 + var _34 = $k[--$j]; //#3806 + var _35 = $k[--$j]; //#3806 + $k[$j++] = $f(_35 - _34); //#3806 + } //#3806 + var _36 = $k[--$j]; //#3807 + var _37 = $k[--$j]; //#3807 + var _38 = $k[--$j]; //#3807 + var _39 = $k[--$j]; //#3807 + var _3A = $k[--$j]; //#3808 + $k[$j++] = _3A; //#3809 + $k[$j++] = _36; //#3809 + $k[$j++] = _39; //#3809 + $k[$j++] = _38; //#3809 + $k[$j++] = _3A; //#3809 + $k[$j++] = $_.inkspreadv; //#3809 + if ($gt(_39, _37)) { //#3809 + var _3C = $k[--$j]; //#3809 + var _3D = $k[--$j]; //#3809 + $k[$j++] = $f(_3D + _3C); //#3809 + } else { //#3809 + var _3E = $k[--$j]; //#3809 + var _3F = $k[--$j]; //#3809 + $k[$j++] = $f(_3F - _3E); //#3809 + } //#3809 + var _3G = $k[--$j]; //#3810 + var _3H = $k[--$j]; //#3810 + var _3I = $k[--$j]; //#3810 + var _3J = $k[--$j]; //#3810 + $k[$j++] = _3I; //#3811 + $k[$j++] = _3H; //#3811 + $k[$j++] = _3J; //#3811 + $k[$j++] = $f($_.pixy - _3G); //#3811 + if ($_.i == 0) { //#3811 + var _3M = $k[--$j]; //#3811 + $$.moveto($k[--$j], _3M); //#3811 + } else { //#3811 + var _3O = $k[--$j]; //#3811 + $$.lineto($k[--$j], _3O); //#3811 + } //#3811 + } //#3811 + $$.closepath(); //#3813 + $j -= 4; //#3814 + } //#3814 + $$.fill(); //#3816 + $_.pixs = $_.pixsorig; //#3818 + }; //#3818 $_.drawlayerdots = function() { - $_.pixsorig = $_.pixs; //#3752 - $_.pixs = $k[--$j]; //#3753 - $$.newpath(); //#3755 - for (var _3U = 0, _3T = $_.pixs.length - 1; _3U <= _3T; _3U += 1) { //#3763 - $_.x = _3U % $_.pixx; //#3757 - $_.y = ~~(_3U / $_.pixx); //#3758 - $k[$j++] = $_.x; //#3759 - $k[$j++] = $_.y; //#3759 - $_.xyget(); //#3759 - if ($k[--$j] == 1) { //#3762 - $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3760 - $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3761 - } //#3761 - } //#3761 - $$.fill(); //#3764 - $_.pixs = $_.pixsorig; //#3766 - }; //#3766 - $$.save(); //#3770 - $_.inkspread = $_.inkspread / 2; //#3773 - $_.inkspreadh = $_.inkspreadh / 2; //#3774 - $_.inkspreadv = $_.inkspreadv / 2; //#3775 - var _3l = $$.currpos(); //#3776 - $$.translate(_3l.x, _3l.y); //#3776 - $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3777 - $$.moveto(0, 0); //#3778 - $$.lineto($_.pixx, 0); //#3778 - $$.lineto($_.pixx, $_.pixy); //#3778 - $$.lineto(0, $_.pixy); //#3778 - $$.closepath(); //#3778 - if ($eq($_.colormap, "unset")) { //#3783 - var _3w = new Map([ + $_.pixsorig = $_.pixs; //#3824 + $_.pixs = $k[--$j]; //#3825 + $$.newpath(); //#3827 + for (var _3V = 0, _3U = $_.pixs.length - 1; _3V <= _3U; _3V += 1) { //#3835 + $_.x = _3V % $_.pixx; //#3829 + $_.y = ~~(_3V / $_.pixx); //#3830 + $k[$j++] = $_.x; //#3831 + $k[$j++] = $_.y; //#3831 + $_.xyget(); //#3831 + if ($k[--$j] == 1) { //#3834 + $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3832 + $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3833 + } //#3833 + } //#3833 + $$.fill(); //#3836 + $_.pixs = $_.pixsorig; //#3838 + }; //#3838 + $$.save(); //#3842 + var _3j = $$.currpos(); //#3844 + $$.translate(_3j.x, _3j.y); //#3844 + $_.inkspread = $_.inkspread / 2; //#3846 + $_.inkspreadh = $_.inkspreadh / 2; //#3847 + $_.inkspreadv = $_.inkspreadv / 2; //#3848 + $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3851 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3854 + $_.tr = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3855 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3856 + $_.br = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3857 + if ($ne($_.backgroundcolor, "unset")) { //#3863 + $$.save(); //#3859 + $$.newpath(); //#3860 + $aload($_.bl); //#3860 + var _4H = $k[--$j]; //#3860 + $$.moveto($k[--$j], _4H); //#3860 + var _4M = $a([$_.br, $_.tr, $_.tl]); //#3860 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#3860 + $aload($get(_4M, _4N)); //#3860 + var _4Q = $k[--$j]; //#3860 + $$.lineto($k[--$j], _4Q); //#3860 + } //#3860 + $$.closepath(); //#3860 + $$.setcolor($_.backgroundcolor); //#3861 + $$.fill(); //#3861 + $$.restore(); //#3862 + } //#3862 + if ($_.showborder) { //#3870 + $$.save(); //#3865 + $$.newpath(); //#3866 + $aload($_.bl); //#3866 + var _4V = $k[--$j]; //#3866 + $$.moveto($k[--$j], _4V); //#3866 + var _4a = $a([$_.br, $_.tr, $_.tl]); //#3866 + for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3866 + $aload($get(_4a, _4b)); //#3866 + var _4e = $k[--$j]; //#3866 + $$.lineto($k[--$j], _4e); //#3866 + } //#3866 + $$.closepath(); //#3866 + if ($ne($_.bordercolor, "unset")) { //#3867 + $$.setcolor($_.bordercolor); //#3867 + } //#3867 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#3868 + $$.stroke(); //#3868 + $$.restore(); //#3869 + } //#3869 + if ($eq($_.colormap, "unset")) { //#3875 + var _4m = new Map([ [1, $_.barcolor] - ]); //#3782 - $_.colormap = _3w; //#3782 - } //#3782 - var _3x = $_.colormap; //#3785 - for (var _42 = _3x.size, _41 = _3x.keys(), _40 = 0; _40 < _42; _40++) { //#3791 - var _3y = _41.next().value; //#3791 - var _3z = _3x.get(_3y); //#3791 - $k[$j++] = _3y; //#3786 - $k[$j++] = _3z; //#3786 - if ($ne(_3z, "unset")) { //#3786 - $$.setcolor($k[--$j]); //#3786 - } else { //#3786 - $j--; //#3786 - } //#3786 - $_.key = $k[--$j]; //#3787 - $k[$j++] = Infinity; //#3789 - var _45 = $_.pixs; //#3789 - for (var _46 = 0, _47 = _45.length; _46 < _47; _46++) { //#3789 - var _4A = $eq($get(_45, _46), $_.key) ? 1 : 0; //#3789 - $k[$j++] = _4A; //#3789 - } //#3789 - var _4B = $a(); //#3789 - $k[$j++] = _4B; //#3790 - if ($_.dotty) { //#3790 - $_.drawlayerdots(); //#3790 - } else { //#3790 - $_.drawlayer(); //#3790 - } //#3790 - } //#3790 - if ($ne($_.textcolor, "unset")) { //#3794 - $$.setcolor($_.textcolor); //#3794 - } //#3794 - if ($_.includetext) { //#3855 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3853 - $_.s = 0; //#3797 - $_.fn = ""; //#3797 - var _4J = $_.txt; //#3798 - for (var _4K = 0, _4L = _4J.length; _4K < _4L; _4K++) { //#3811 - $forall($get(_4J, _4K)); //#3799 - var _4N = $k[--$j]; //#3800 - var _4O = $k[--$j]; //#3800 - $k[$j++] = _4O; //#3809 - $k[$j++] = _4N; //#3809 - if ((_4N != $_.s) || $ne(_4O, $_.fn)) { //#3808 - var _4R = $k[--$j]; //#3801 - $k[$j++] = _4R; //#3804 - if (_4R <= 0) { //#3804 - $j -= 5; //#3802 - $k[$j++] = 'bwipp.renmatrixFontTooSmall#3803'; //#3803 - $k[$j++] = "The font size is too small"; //#3803 - bwipp_raiseerror(); //#3803 - } //#3803 - var _4S = $k[--$j]; //#3805 - var _4T = $k[--$j]; //#3805 - $_.s = _4S; //#3805 - $_.fn = _4T; //#3805 - $$.selectfont(_4T, _4S); //#3806 - } else { //#3808 - $j -= 2; //#3808 - } //#3808 - var _4U = $k[--$j]; //#3810 - $$.moveto($k[--$j], _4U); //#3810 - $$.show($k[--$j], 0, 0); //#3810 - } //#3810 - } else { //#3853 - $$.selectfont($_.textfont, $_.textsize); //#3813 - if ($eq($_.alttext, "")) { //#3819 - $k[$j++] = Infinity; //#3815 - var _4a = $_.txt; //#3815 - for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3815 - $forall($get($get(_4a, _4b), 0)); //#3815 - } //#3815 - $_.txt = $a(); //#3815 - $_.tstr = $s($_.txt.length); //#3816 - for (var _4k = 0, _4j = $_.txt.length - 1; _4k <= _4j; _4k += 1) { //#3817 - $put($_.tstr, _4k, $get($_.txt, _4k)); //#3817 - } //#3817 - } else { //#3819 - $_.tstr = $_.alttext; //#3819 - } //#3819 - if ($_.tstr.length == 0) { //#3829 - $k[$j++] = 0; //#3824 - } else { //#3829 - $$.save(); //#3826 - $$.newpath(); //#3827 - $$.moveto(0, 0); //#3827 - $$.charpath("0", false); //#3827 - var _4q = $$.pathbbox(); //#3827 - $$.restore(); //#3829 - $k[$j++] = _4q.ury; //#3829 - } //#3829 - $_.textascent = $k[--$j]; //#3838 - var _4t = $$.stringwidth($_.tstr); //#3839 - $_.textwidth = $f(_4t.w + (($_.tstr.length - 1) * $_.textgaps)); //#3839 - $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3841 - if ($eq($_.textxalign, "left")) { //#3842 - $_.textxpos = $_.textxoffset; //#3842 - } //#3842 - if ($eq($_.textxalign, "right")) { //#3843 - $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3843 - } //#3843 - if ($eq($_.textxalign, "offleft")) { //#3844 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3844 - } //#3844 - if ($eq($_.textxalign, "offright")) { //#3845 - $_.textxpos = $_.pixx + $_.textxoffset; //#3845 - } //#3845 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3849 - $_.textxpos = 0; //#3847 - $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3848 - } //#3848 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3850 - if ($eq($_.textyalign, "above")) { //#3851 - $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3851 - } //#3851 - if ($eq($_.textyalign, "center")) { //#3852 - $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3852 - } //#3852 - $$.moveto($_.textxpos, $_.textypos); //#3853 - $$.show($_.tstr, $_.textgaps, 0); //#3853 - } //#3853 - } //#3853 - $$.restore(); //#3857 - $_ = Object.getPrototypeOf($_); //#3859 -} - + ]); //#3874 + $_.colormap = _4m; //#3874 + } //#3874 + var _4n = $_.colormap; //#3877 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#3883 + var _4o = _4r.next().value; //#3883 + var _4p = _4n.get(_4o); //#3883 + $k[$j++] = _4o; //#3878 + $k[$j++] = _4p; //#3878 + if ($ne(_4p, "unset")) { //#3878 + $$.setcolor($k[--$j]); //#3878 + } else { //#3878 + $j--; //#3878 + } //#3878 + $_.key = $k[--$j]; //#3879 + $k[$j++] = Infinity; //#3880 + var _4v = $_.pixs; //#3881 + for (var _4w = 0, _4x = _4v.length; _4w < _4x; _4w++) { //#3881 + var _50 = $eq($get(_4v, _4w), $_.key) ? 1 : 0; //#3881 + $k[$j++] = _50; //#3881 + } //#3881 + var _51 = $a(); //#3881 + $k[$j++] = _51; //#3882 + if ($_.dotty) { //#3882 + $_.drawlayerdots(); //#3882 + } else { //#3882 + $_.drawlayer(); //#3882 + } //#3882 + } //#3882 + if ($ne($_.textcolor, "unset")) { //#3886 + $$.setcolor($_.textcolor); //#3886 + } //#3886 + if ($_.includetext) { //#3947 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3945 + $_.s = 0; //#3889 + $_.fn = ""; //#3889 + var _59 = $_.txt; //#3890 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#3903 + $forall($get(_59, _5A)); //#3891 + var _5D = $k[--$j]; //#3892 + var _5E = $k[--$j]; //#3892 + $k[$j++] = _5E; //#3901 + $k[$j++] = _5D; //#3901 + if ((_5D != $_.s) || $ne(_5E, $_.fn)) { //#3900 + var _5H = $k[--$j]; //#3893 + $k[$j++] = _5H; //#3896 + if (_5H <= 0) { //#3896 + $j -= 5; //#3894 + $k[$j++] = 'bwipp.renmatrixFontTooSmall#3895'; //#3895 + $k[$j++] = "The font size is too small"; //#3895 + bwipp_raiseerror(); //#3895 + } //#3895 + var _5I = $k[--$j]; //#3897 + var _5J = $k[--$j]; //#3897 + $_.s = _5I; //#3897 + $_.fn = _5J; //#3897 + $$.selectfont(_5J, _5I); //#3898 + } else { //#3900 + $j -= 2; //#3900 + } //#3900 + var _5K = $k[--$j]; //#3902 + $$.moveto($k[--$j], _5K); //#3902 + $$.show($k[--$j], 0, 0); //#3902 + } //#3902 + } else { //#3945 + $$.selectfont($_.textfont, $_.textsize); //#3905 + if ($eq($_.alttext, "")) { //#3911 + $k[$j++] = Infinity; //#3907 + var _5Q = $_.txt; //#3907 + for (var _5R = 0, _5S = _5Q.length; _5R < _5S; _5R++) { //#3907 + $forall($get($get(_5Q, _5R), 0)); //#3907 + } //#3907 + $_.txt = $a(); //#3907 + $_.tstr = $s($_.txt.length); //#3908 + for (var _5a = 0, _5Z = $_.txt.length - 1; _5a <= _5Z; _5a += 1) { //#3909 + $put($_.tstr, _5a, $get($_.txt, _5a)); //#3909 + } //#3909 + } else { //#3911 + $_.tstr = $_.alttext; //#3911 + } //#3911 + if ($_.tstr.length == 0) { //#3921 + $k[$j++] = 0; //#3916 + } else { //#3921 + $$.save(); //#3918 + $$.newpath(); //#3919 + $$.moveto(0, 0); //#3919 + $$.charpath("0", false); //#3919 + var _5g = $$.pathbbox(); //#3919 + $$.restore(); //#3921 + $k[$j++] = _5g.ury; //#3921 + } //#3921 + $_.textascent = $k[--$j]; //#3930 + var _5j = $$.stringwidth($_.tstr); //#3931 + $_.textwidth = $f(_5j.w + (($_.tstr.length - 1) * $_.textgaps)); //#3931 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3933 + if ($eq($_.textxalign, "left")) { //#3934 + $_.textxpos = $_.textxoffset; //#3934 + } //#3934 + if ($eq($_.textxalign, "right")) { //#3935 + $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3935 + } //#3935 + if ($eq($_.textxalign, "offleft")) { //#3936 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3936 + } //#3936 + if ($eq($_.textxalign, "offright")) { //#3937 + $_.textxpos = $_.pixx + $_.textxoffset; //#3937 + } //#3937 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3941 + $_.textxpos = 0; //#3939 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3940 + } //#3940 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3942 + if ($eq($_.textyalign, "above")) { //#3943 + $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3943 + } //#3943 + if ($eq($_.textyalign, "center")) { //#3944 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3944 + } //#3944 + $$.moveto($_.textxpos, $_.textypos); //#3945 + $$.show($_.tstr, $_.textgaps, 0); //#3945 + } //#3945 + } //#3945 + $$.restore(); //#3949 + $_ = Object.getPrototypeOf($_); //#3951 +} //bwipp_renmatrix function bwipp_ean5() { - $_ = Object.create($_); //#3981 - $_.dontdraw = false; //#3984 - $_.includetext = false; //#3985 - $_.textfont = "OCR-B"; //#3986 - $_.textsize = 12; //#3987 - $_.textxoffset = 0; //#3988 - $_.textyoffset = null; //#3989 - $_.height = 0.7; //#3990 - $k[$j++] = $_; //#3992 - bwipp_processoptions(); //#3992 - $_.options = $k[--$j]; //#3992 - $_.barcode = $k[--$j]; //#3993 - if ($eq($_.textyoffset, null)) { //#3997 - $_.textyoffset = $f(($_.height * 72) + 1); //#3996 - } //#3996 - bwipp_loadctx(bwipp_ean5) //#3999 - if ($_.barcode.length != 5) { //#4004 - $k[$j++] = 'bwipp.ean5badLength#4003'; //#4003 - $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4003 - bwipp_raiseerror(); //#4003 - } //#4003 - $forall($_.barcode, function() { //#4009 - var _6 = $k[--$j]; //#4006 - if ((_6 < 48) || (_6 > 57)) { //#4008 - $k[$j++] = 'bwipp.ean5badCharacter#4007'; //#4007 - $k[$j++] = "EAN-5 add-on must contain only digits"; //#4007 - bwipp_raiseerror(); //#4007 - } //#4007 - }); //#4007 - if (!bwipp_ean5.__4027__) { //#4027 - $_ = Object.create($_); //#4027 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4017 - $_.barchars = "0123456789"; //#4020 - $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4026 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4026 - bwipp_ean5.__4027__ = 1; //#4026 - $_ = Object.getPrototypeOf($_); //#4026 - } //#4026 - $_.checksum = 0; //#4029 - for (var _A = 0; _A <= 4; _A += 1) { //#4038 - $_.i = _A; //#4031 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4032 - if (($_.i % 2) == 0) { //#4036 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4034 - } else { //#4036 - $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4036 - } //#4036 - } //#4036 - $_.checksum = $_.checksum % 10; //#4039 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4040 - $_.sbs = $s(31); //#4042 - $_.txt = $a(5); //#4043 - for (var _P = 0; _P <= 4; _P += 1) { //#4073 - $_.i = _P; //#4046 - if ($_.i == 0) { //#4052 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4050 - } else { //#4052 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4052 - } //#4052 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4056 - $j--; //#4057 - $_.indx = $k[--$j].length; //#4058 - $j -= 2; //#4059 - $_.enc = $get($_.encs, $_.indx); //#4060 - if ($get($_.mirrormap, $_.i) == 49) { //#4070 - $_.enclen = $_.enc.length; //#4062 - $_.revenc = $s($_.enclen); //#4063 - for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4068 - $_.j = _o; //#4065 - $_.char = $get($_.enc, $_.j); //#4066 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4067 - } //#4067 - $_.enc = $_.revenc; //#4069 - } //#4069 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4071 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4072 - } //#4072 - $k[$j++] = Infinity; //#4087 - $k[$j++] = Infinity; //#4078 - var _1B = $_.sbs; //#4078 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4078 - $k[$j++] = $get(_1B, _1C) - 48; //#4078 - } //#4078 - var _1F = $a(); //#4078 - $k[$j++] = Infinity; //#4079 - for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4079 - $k[$j++] = $_.height; //#4079 - } //#4079 - var _1J = $a(); //#4079 - $k[$j++] = Infinity; //#4080 - for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4080 - $k[$j++] = 0; //#4080 - } //#4080 - var _1M = $a(); //#4080 - $k[$j++] = 'ren'; //#4083 - $k[$j++] = bwipp_renlinear; //#4083 - $k[$j++] = 'sbs'; //#4083 - $k[$j++] = _1F; //#4083 - $k[$j++] = 'bhs'; //#4083 - $k[$j++] = _1J; //#4083 - $k[$j++] = 'bbs'; //#4083 - $k[$j++] = _1M; //#4083 - if ($_.includetext) { //#4083 - $k[$j++] = 'txt'; //#4082 - $k[$j++] = $_.txt; //#4082 - } //#4082 - $k[$j++] = 'opt'; //#4087 - $k[$j++] = $_.options; //#4087 - $k[$j++] = 'guardrightpos'; //#4087 - $k[$j++] = 10; //#4087 - $k[$j++] = 'guardrightypos'; //#4087 - $k[$j++] = $f($_.textyoffset + 4); //#4087 - $k[$j++] = 'bordertop'; //#4087 - $k[$j++] = 10; //#4087 - var _1R = $d(); //#4087 - $k[$j++] = _1R; //#4090 - if (!$_.dontdraw) { //#4090 - bwipp_renlinear(); //#4090 - } //#4090 - $_ = Object.getPrototypeOf($_); //#4092 - $_ = Object.getPrototypeOf($_); //#4094 -} - + $_ = Object.create($_); //#4099 + $_.dontdraw = false; //#4102 + $_.includetext = false; //#4103 + $_.textfont = "OCR-B"; //#4104 + $_.textsize = 12; //#4105 + $_.textxoffset = 0; //#4106 + $_.textyoffset = null; //#4107 + $_.height = 0.7; //#4108 + $k[$j++] = $_; //#4110 + bwipp_processoptions(); //#4110 + $_.options = $k[--$j]; //#4110 + $_.barcode = $k[--$j]; //#4111 + if ($eq($_.textyoffset, null)) { //#4115 + $_.textyoffset = $f(($_.height * 72) + 1); //#4114 + } //#4114 + bwipp_loadctx(bwipp_ean5) //#4117 + if ($_.barcode.length != 5) { //#4122 + $k[$j++] = 'bwipp.ean5badLength#4121'; //#4121 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4121 + bwipp_raiseerror(); //#4121 + } //#4121 + $forall($_.barcode, function() { //#4127 + var _6 = $k[--$j]; //#4124 + if ((_6 < 48) || (_6 > 57)) { //#4126 + $k[$j++] = 'bwipp.ean5badCharacter#4125'; //#4125 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#4125 + bwipp_raiseerror(); //#4125 + } //#4125 + }); //#4125 + if (!bwipp_ean5.__4145__) { //#4145 + $_ = Object.create($_); //#4145 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4135 + $_.barchars = "0123456789"; //#4138 + $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4144 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4144 + bwipp_ean5.__4145__ = 1; //#4144 + $_ = Object.getPrototypeOf($_); //#4144 + } //#4144 + $_.checksum = 0; //#4147 + for (var _A = 0; _A <= 4; _A += 1) { //#4156 + $_.i = _A; //#4149 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4150 + if (($_.i % 2) == 0) { //#4154 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4152 + } else { //#4154 + $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4154 + } //#4154 + } //#4154 + $_.checksum = $_.checksum % 10; //#4157 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4158 + $_.sbs = $s(31); //#4160 + $_.txt = $a(5); //#4161 + for (var _P = 0; _P <= 4; _P += 1) { //#4191 + $_.i = _P; //#4164 + if ($_.i == 0) { //#4170 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4168 + } else { //#4170 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4170 + } //#4170 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4174 + $j--; //#4175 + $_.indx = $k[--$j].length; //#4176 + $j -= 2; //#4177 + $_.enc = $get($_.encs, $_.indx); //#4178 + if ($get($_.mirrormap, $_.i) == 49) { //#4188 + $_.enclen = $_.enc.length; //#4180 + $_.revenc = $s($_.enclen); //#4181 + for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4186 + $_.j = _o; //#4183 + $_.char = $get($_.enc, $_.j); //#4184 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4185 + } //#4185 + $_.enc = $_.revenc; //#4187 + } //#4187 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4189 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4190 + } //#4190 + $k[$j++] = Infinity; //#4194 + $k[$j++] = Infinity; //#4196 + var _1B = $_.sbs; //#4196 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4196 + $k[$j++] = $get(_1B, _1C) - 48; //#4196 + } //#4196 + var _1F = $a(); //#4196 + $k[$j++] = Infinity; //#4197 + for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4197 + $k[$j++] = $_.height; //#4197 + } //#4197 + var _1J = $a(); //#4197 + $k[$j++] = Infinity; //#4198 + for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4198 + $k[$j++] = 0; //#4198 + } //#4198 + var _1M = $a(); //#4198 + $k[$j++] = 'ren'; //#4201 + $k[$j++] = bwipp_renlinear; //#4201 + $k[$j++] = 'sbs'; //#4201 + $k[$j++] = _1F; //#4201 + $k[$j++] = 'bhs'; //#4201 + $k[$j++] = _1J; //#4201 + $k[$j++] = 'bbs'; //#4201 + $k[$j++] = _1M; //#4201 + if ($_.includetext) { //#4201 + $k[$j++] = 'txt'; //#4200 + $k[$j++] = $_.txt; //#4200 + } //#4200 + $k[$j++] = 'opt'; //#4207 + $k[$j++] = $_.options; //#4207 + $k[$j++] = 'guardrightpos'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'guardrightypos'; //#4207 + $k[$j++] = $f($_.textyoffset + 4); //#4207 + $k[$j++] = 'borderleft'; //#4207 + $k[$j++] = 12; //#4207 + $k[$j++] = 'borderright'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'bordertop'; //#4207 + $k[$j++] = 10; //#4207 + var _1R = $d(); //#4207 + $k[$j++] = _1R; //#4210 + if (!$_.dontdraw) { //#4210 + bwipp_renlinear(); //#4210 + } //#4210 + $_ = Object.getPrototypeOf($_); //#4212 + $_ = Object.getPrototypeOf($_); //#4214 +} //bwipp_ean5 function bwipp_ean2() { - $_ = Object.create($_); //#4124 - $_.dontdraw = false; //#4127 - $_.includetext = false; //#4128 - $_.textfont = "OCR-B"; //#4129 - $_.textsize = 12; //#4130 - $_.textxoffset = 0; //#4131 - $_.textyoffset = null; //#4132 - $_.height = 0.7; //#4133 - $k[$j++] = $_; //#4135 - bwipp_processoptions(); //#4135 - $_.options = $k[--$j]; //#4135 - $_.barcode = $k[--$j]; //#4136 - if ($eq($_.textyoffset, null)) { //#4140 - $_.textyoffset = $f(($_.height * 72) + 1); //#4139 - } //#4139 - bwipp_loadctx(bwipp_ean2) //#4142 - if ($_.barcode.length != 2) { //#4147 - $k[$j++] = 'bwipp.ean2badLength#4146'; //#4146 - $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4146 - bwipp_raiseerror(); //#4146 - } //#4146 - $forall($_.barcode, function() { //#4152 - var _6 = $k[--$j]; //#4149 - if ((_6 < 48) || (_6 > 57)) { //#4151 - $k[$j++] = 'bwipp.ean2badCharacter#4150'; //#4150 - $k[$j++] = "EAN-2 add-on must contain only digits"; //#4150 - bwipp_raiseerror(); //#4150 - } //#4150 - }); //#4150 - if (!bwipp_ean2.__4167__) { //#4167 - $_ = Object.create($_); //#4167 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4160 - $_.barchars = "0123456789"; //#4163 - $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4166 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4166 - bwipp_ean2.__4167__ = 1; //#4166 - $_ = Object.getPrototypeOf($_); //#4166 - } //#4166 - $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4169 - $_.sbs = $s(13); //#4171 - $_.txt = $a(2); //#4172 - for (var _G = 0; _G <= 1; _G += 1) { //#4202 - $_.i = _G; //#4175 - if ($_.i == 0) { //#4181 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4179 - } else { //#4181 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4181 - } //#4181 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4185 - $j--; //#4186 - $_.indx = $k[--$j].length; //#4187 - $j -= 2; //#4188 - $_.enc = $get($_.encs, $_.indx); //#4189 - if ($get($_.mirrormap, $_.i) == 49) { //#4199 - $_.enclen = $_.enc.length; //#4191 - $_.revenc = $s($_.enclen); //#4192 - for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4197 - $_.j = _f; //#4194 - $_.char = $get($_.enc, $_.j); //#4195 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4196 - } //#4196 - $_.enc = $_.revenc; //#4198 - } //#4198 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4200 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4201 - } //#4201 - $k[$j++] = Infinity; //#4216 - $k[$j++] = Infinity; //#4207 - var _12 = $_.sbs; //#4207 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4207 - $k[$j++] = $get(_12, _13) - 48; //#4207 - } //#4207 - var _16 = $a(); //#4207 - $k[$j++] = Infinity; //#4208 - for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4208 - $k[$j++] = $_.height; //#4208 - } //#4208 - var _1A = $a(); //#4208 - $k[$j++] = Infinity; //#4209 - for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4209 - $k[$j++] = 0; //#4209 - } //#4209 - var _1D = $a(); //#4209 - $k[$j++] = 'ren'; //#4212 - $k[$j++] = bwipp_renlinear; //#4212 - $k[$j++] = 'sbs'; //#4212 - $k[$j++] = _16; //#4212 - $k[$j++] = 'bhs'; //#4212 - $k[$j++] = _1A; //#4212 - $k[$j++] = 'bbs'; //#4212 - $k[$j++] = _1D; //#4212 - if ($_.includetext) { //#4212 - $k[$j++] = 'txt'; //#4211 - $k[$j++] = $_.txt; //#4211 - } //#4211 - $k[$j++] = 'opt'; //#4216 - $k[$j++] = $_.options; //#4216 - $k[$j++] = 'guardrightpos'; //#4216 - $k[$j++] = 10; //#4216 - $k[$j++] = 'guardrightypos'; //#4216 - $k[$j++] = $f($_.textyoffset + 4); //#4216 - $k[$j++] = 'bordertop'; //#4216 - $k[$j++] = 10; //#4216 - var _1I = $d(); //#4216 - $k[$j++] = _1I; //#4219 - if (!$_.dontdraw) { //#4219 - bwipp_renlinear(); //#4219 - } //#4219 - $_ = Object.getPrototypeOf($_); //#4221 - $_ = Object.getPrototypeOf($_); //#4223 -} - + $_ = Object.create($_); //#4244 + $_.dontdraw = false; //#4247 + $_.includetext = false; //#4248 + $_.textfont = "OCR-B"; //#4249 + $_.textsize = 12; //#4250 + $_.textxoffset = 0; //#4251 + $_.textyoffset = null; //#4252 + $_.height = 0.7; //#4253 + $k[$j++] = $_; //#4255 + bwipp_processoptions(); //#4255 + $_.options = $k[--$j]; //#4255 + $_.barcode = $k[--$j]; //#4256 + if ($eq($_.textyoffset, null)) { //#4260 + $_.textyoffset = $f(($_.height * 72) + 1); //#4259 + } //#4259 + bwipp_loadctx(bwipp_ean2) //#4262 + if ($_.barcode.length != 2) { //#4267 + $k[$j++] = 'bwipp.ean2badLength#4266'; //#4266 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4266 + bwipp_raiseerror(); //#4266 + } //#4266 + $forall($_.barcode, function() { //#4272 + var _6 = $k[--$j]; //#4269 + if ((_6 < 48) || (_6 > 57)) { //#4271 + $k[$j++] = 'bwipp.ean2badCharacter#4270'; //#4270 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#4270 + bwipp_raiseerror(); //#4270 + } //#4270 + }); //#4270 + if (!bwipp_ean2.__4287__) { //#4287 + $_ = Object.create($_); //#4287 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4280 + $_.barchars = "0123456789"; //#4283 + $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4286 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4286 + bwipp_ean2.__4287__ = 1; //#4286 + $_ = Object.getPrototypeOf($_); //#4286 + } //#4286 + $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4289 + $_.sbs = $s(13); //#4291 + $_.txt = $a(2); //#4292 + for (var _G = 0; _G <= 1; _G += 1) { //#4322 + $_.i = _G; //#4295 + if ($_.i == 0) { //#4301 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4299 + } else { //#4301 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4301 + } //#4301 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4305 + $j--; //#4306 + $_.indx = $k[--$j].length; //#4307 + $j -= 2; //#4308 + $_.enc = $get($_.encs, $_.indx); //#4309 + if ($get($_.mirrormap, $_.i) == 49) { //#4319 + $_.enclen = $_.enc.length; //#4311 + $_.revenc = $s($_.enclen); //#4312 + for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4317 + $_.j = _f; //#4314 + $_.char = $get($_.enc, $_.j); //#4315 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4316 + } //#4316 + $_.enc = $_.revenc; //#4318 + } //#4318 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4320 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4321 + } //#4321 + $k[$j++] = Infinity; //#4325 + $k[$j++] = Infinity; //#4327 + var _12 = $_.sbs; //#4327 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4327 + $k[$j++] = $get(_12, _13) - 48; //#4327 + } //#4327 + var _16 = $a(); //#4327 + $k[$j++] = Infinity; //#4328 + for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4328 + $k[$j++] = $_.height; //#4328 + } //#4328 + var _1A = $a(); //#4328 + $k[$j++] = Infinity; //#4329 + for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4329 + $k[$j++] = 0; //#4329 + } //#4329 + var _1D = $a(); //#4329 + $k[$j++] = 'ren'; //#4332 + $k[$j++] = bwipp_renlinear; //#4332 + $k[$j++] = 'sbs'; //#4332 + $k[$j++] = _16; //#4332 + $k[$j++] = 'bhs'; //#4332 + $k[$j++] = _1A; //#4332 + $k[$j++] = 'bbs'; //#4332 + $k[$j++] = _1D; //#4332 + if ($_.includetext) { //#4332 + $k[$j++] = 'txt'; //#4331 + $k[$j++] = $_.txt; //#4331 + } //#4331 + $k[$j++] = 'opt'; //#4338 + $k[$j++] = $_.options; //#4338 + $k[$j++] = 'guardrightpos'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'guardrightypos'; //#4338 + $k[$j++] = $f($_.textyoffset + 4); //#4338 + $k[$j++] = 'borderleft'; //#4338 + $k[$j++] = 12; //#4338 + $k[$j++] = 'borderright'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'bordertop'; //#4338 + $k[$j++] = 10; //#4338 + var _1I = $d(); //#4338 + $k[$j++] = _1I; //#4341 + if (!$_.dontdraw) { //#4341 + bwipp_renlinear(); //#4341 + } //#4341 + $_ = Object.getPrototypeOf($_); //#4343 + $_ = Object.getPrototypeOf($_); //#4345 +} //bwipp_ean2 function bwipp_ean13() { - $_ = Object.create($_); //#4255 - $_.dontdraw = false; //#4258 - $_.includetext = false; //#4259 - $_.textfont = "OCR-B"; //#4260 - $_.textsize = 12; //#4261 - $_.textxoffset = -10; //#4262 - $_.textyoffset = -4; //#4263 - $_.height = 1; //#4264 - $_.addongap = 12; //#4265 - $_.addontextfont = "unset"; //#4266 - $_.addontextsize = null; //#4267 - $_.addontextxoffset = null; //#4268 - $_.addontextyoffset = null; //#4269 - $k[$j++] = $_; //#4271 - bwipp_processoptions(); //#4271 - $_.options = $k[--$j]; //#4271 - $_.barcode = $k[--$j]; //#4272 - bwipp_loadctx(bwipp_ean13) //#4274 - $search($_.barcode, " "); //#4277 - if ($k[--$j]) { //#4283 - $_.barcode = $k[--$j]; //#4278 - $j--; //#4279 - $_.addon = $k[--$j]; //#4280 - } else { //#4283 - $j--; //#4282 - $_.addon = ""; //#4283 - } //#4283 - if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4289 - $k[$j++] = 'bwipp.ean13badLength#4288'; //#4288 - $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4288 - bwipp_raiseerror(); //#4288 - } //#4288 - $forall($_.barcode, function() { //#4294 - var _9 = $k[--$j]; //#4291 - if ((_9 < 48) || (_9 > 57)) { //#4293 - $k[$j++] = 'bwipp.ean13badCharacter#4292'; //#4292 - $k[$j++] = "EAN-13 must contain only digits"; //#4292 - bwipp_raiseerror(); //#4292 - } //#4292 - }); //#4292 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4297 - $k[$j++] = 'bwipp.ean13badAddOnLength#4296'; //#4296 - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4296 - bwipp_raiseerror(); //#4296 - } //#4296 - $_.pad = $s(13); //#4300 - $_.checksum = 0; //#4301 - for (var _E = 0; _E <= 11; _E += 1) { //#4310 - $_.i = _E; //#4303 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4304 - if (($_.i % 2) == 0) { //#4308 - $_.checksum = $f($_.barchar + $_.checksum); //#4306 - } else { //#4308 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4308 - } //#4308 - } //#4308 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4311 - if ($_.barcode.length == 13) { //#4316 - if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4315 - $k[$j++] = 'bwipp.ean13badCheckDigit#4314'; //#4314 - $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4314 - bwipp_raiseerror(); //#4314 - } //#4314 - } //#4314 - $puti($_.pad, 0, $_.barcode); //#4317 - $put($_.pad, 12, $f($_.checksum + 48)); //#4318 - $_.barcode = $_.pad; //#4319 - if (!bwipp_ean13.__4337__) { //#4337 - $_ = Object.create($_); //#4337 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4327 - $_.barchars = "0123456789"; //#4330 - $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4336 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4336 - bwipp_ean13.__4337__ = 1; //#4336 - $_ = Object.getPrototypeOf($_); //#4336 - } //#4336 - $_.sbs = $s(59); //#4339 - $_.txt = $a(13); //#4340 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4343 - $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4346 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4347 - for (var _r = 1; _r <= 6; _r += 1) { //#4370 - $_.i = _r; //#4352 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4353 - $j--; //#4354 - $_.indx = $k[--$j].length; //#4355 - $j -= 2; //#4356 - $_.enc = $get($_.encs, $_.indx); //#4357 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#4367 - $_.enclen = $_.enc.length; //#4359 - $_.revenc = $s($_.enclen); //#4360 - for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4365 - $_.j = _18; //#4362 - $_.char = $get($_.enc, $_.j); //#4363 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4364 - } //#4364 - $_.enc = $_.revenc; //#4366 - } //#4366 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4368 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 14) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4369 - } //#4369 - $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4373 - for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4386 - $_.i = _1Y; //#4378 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4379 - $j--; //#4380 - $_.indx = $k[--$j].length; //#4381 - $j -= 2; //#4382 - $_.enc = $get($_.encs, $_.indx); //#4383 - $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4384 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4385 - } //#4385 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4389 - $k[$j++] = Infinity; //#4391 - var _1y = $_.sbs; //#4391 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4391 - $k[$j++] = $get(_1y, _1z) - 48; //#4391 - } //#4391 - $_.sbs = $a(); //#4391 - if ($_.includetext) { //#4398 - $k[$j++] = Infinity; //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - $_.bhs = $a(); //#4393 - $k[$j++] = Infinity; //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - $_.bbs = $a(); //#4394 - } else { //#4398 - $k[$j++] = Infinity; //#4396 - for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4396 - $k[$j++] = $_.height; //#4396 - } //#4396 - $_.bhs = $a(); //#4396 - $k[$j++] = Infinity; //#4397 - for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4397 - $k[$j++] = 0; //#4397 - } //#4397 - $_.bbs = $a(); //#4397 - $_.txt = $a([]); //#4398 - } //#4398 - $_.guardrightypos = 0; //#4400 - if ($ne($_.addon, "")) { //#4421 - $k[$j++] = Infinity; //#4411 - $k[$j++] = 'dontdraw'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'includetext'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'height'; //#4408 - $k[$j++] = $f($_.height - 0.15); //#4408 - $k[$j++] = 'textxoffset'; //#4408 - if ($ne($_.addontextxoffset, null)) { //#4408 - $k[$j++] = $_.addontextxoffset; //#4408 - } else { //#4408 - $k[$j++] = 95 + $_.addongap; //#4408 - } //#4408 - if ($ne($_.addontextyoffset, null)) { //#4409 - $k[$j++] = 'textyoffset'; //#4409 - $k[$j++] = $_.addontextyoffset; //#4409 - } //#4409 - $k[$j++] = 'textsize'; //#4410 - if ($ne($_.addontextsize, null)) { //#4410 - $k[$j++] = $_.addontextsize; //#4410 - } else { //#4410 - $k[$j++] = $_.textsize; //#4410 - } //#4410 - var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4411 - $k[$j++] = 'textfont'; //#4411 - $k[$j++] = _2f; //#4411 - $_.addopts = $d(); //#4412 - if ($_.addon.length == 2) { //#4413 - $k[$j++] = $_.addon; //#4413 - $k[$j++] = $_.addopts; //#4413 - bwipp_ean2(); //#4413 - } //#4413 - if ($_.addon.length == 5) { //#4414 - $k[$j++] = $_.addon; //#4414 - $k[$j++] = $_.addopts; //#4414 - bwipp_ean5(); //#4414 + $_ = Object.create($_); //#4377 + $_.dontdraw = false; //#4380 + $_.includetext = false; //#4381 + $_.textfont = "OCR-B"; //#4382 + $_.textsize = 12; //#4383 + $_.textxoffset = -11; //#4384 + $_.textyoffset = -4; //#4385 + $_.height = 1; //#4386 + $_.addongap = 12; //#4387 + $_.addontextfont = "unset"; //#4388 + $_.addontextsize = null; //#4389 + $_.addontextxoffset = null; //#4390 + $_.addontextyoffset = null; //#4391 + $k[$j++] = $_; //#4393 + bwipp_processoptions(); //#4393 + $_.options = $k[--$j]; //#4393 + $_.barcode = $k[--$j]; //#4394 + bwipp_loadctx(bwipp_ean13) //#4396 + $search($_.barcode, " "); //#4399 + if ($k[--$j]) { //#4405 + $_.barcode = $k[--$j]; //#4400 + $j--; //#4401 + $_.addon = $k[--$j]; //#4402 + } else { //#4405 + $j--; //#4404 + $_.addon = ""; //#4405 + } //#4405 + if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4411 + $k[$j++] = 'bwipp.ean13badLength#4410'; //#4410 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4410 + bwipp_raiseerror(); //#4410 + } //#4410 + $forall($_.barcode, function() { //#4416 + var _9 = $k[--$j]; //#4413 + if ((_9 < 48) || (_9 > 57)) { //#4415 + $k[$j++] = 'bwipp.ean13badCharacter#4414'; //#4414 + $k[$j++] = "EAN-13 must contain only digits"; //#4414 + bwipp_raiseerror(); //#4414 } //#4414 - $_.addcode = $k[--$j]; //#4415 - $k[$j++] = Infinity; //#4416 - $aload($_.sbs); //#4416 - $k[$j++] = $_.addongap; //#4416 - $aload($get($_.addcode, "sbs")); //#4416 - $_.sbs = $a(); //#4416 - $k[$j++] = Infinity; //#4417 - $aload($_.bhs); //#4417 - $forall($get($_.addcode, "bhs"), function() { //#4417 - var _2w = $k[--$j]; //#4417 - $k[$j++] = $f(_2w - 0.075); //#4417 - }); //#4417 - $_.bhs = $a(); //#4417 - $k[$j++] = Infinity; //#4418 - $aload($_.bbs); //#4418 - $forall($get($_.addcode, "bbs"), function() { //#4418 - var _31 = $k[--$j]; //#4418 - $k[$j++] = $f(_31 + 0.075); //#4418 - }); //#4418 - $_.bbs = $a(); //#4418 - $k[$j++] = Infinity; //#4419 - $aload($_.txt); //#4419 - $aload($get($_.addcode, "txt")); //#4419 - $_.txt = $a(); //#4419 - $_.guardrightypos = ($_.height * 72) - 6; //#4420 - } //#4420 - var _3E = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4433 - $k[$j++] = _3E; //#4436 - if (!$_.dontdraw) { //#4436 - bwipp_renlinear(); //#4436 + }); //#4414 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4419 + $k[$j++] = 'bwipp.ean13badAddOnLength#4418'; //#4418 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4418 + bwipp_raiseerror(); //#4418 + } //#4418 + $_.pad = $s(13); //#4422 + $_.checksum = 0; //#4423 + for (var _E = 0; _E <= 11; _E += 1) { //#4432 + $_.i = _E; //#4425 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4426 + if (($_.i % 2) == 0) { //#4430 + $_.checksum = $f($_.barchar + $_.checksum); //#4428 + } else { //#4430 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4430 + } //#4430 + } //#4430 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4433 + if ($_.barcode.length == 13) { //#4438 + if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4437 + $k[$j++] = 'bwipp.ean13badCheckDigit#4436'; //#4436 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4436 + bwipp_raiseerror(); //#4436 + } //#4436 } //#4436 - $_ = Object.getPrototypeOf($_); //#4438 - $_ = Object.getPrototypeOf($_); //#4440 -} - -function bwipp_ean8() { - $_ = Object.create($_); //#4472 - $_.dontdraw = false; //#4475 - $_.includetext = false; //#4476 - $_.textfont = "OCR-B"; //#4477 - $_.textsize = 12; //#4478 - $_.textxoffset = 4; //#4479 - $_.textyoffset = -4; //#4480 - $_.height = 1; //#4481 - $_.addongap = 12; //#4482 - $_.addontextfont = "unset"; //#4483 - $_.addontextsize = null; //#4484 - $_.addontextxoffset = null; //#4485 - $_.addontextyoffset = null; //#4486 - $k[$j++] = $_; //#4488 - bwipp_processoptions(); //#4488 - $_.options = $k[--$j]; //#4488 - $_.barcode = $k[--$j]; //#4489 - bwipp_loadctx(bwipp_ean8) //#4491 - $search($_.barcode, " "); //#4494 - if ($k[--$j]) { //#4500 - $_.barcode = $k[--$j]; //#4495 - $j--; //#4496 - $_.addon = $k[--$j]; //#4497 - } else { //#4500 - $j--; //#4499 - $_.addon = ""; //#4500 - } //#4500 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4506 - $k[$j++] = 'bwipp.ean8badLength#4505'; //#4505 - $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4505 - bwipp_raiseerror(); //#4505 - } //#4505 - $forall($_.barcode, function() { //#4511 - var _9 = $k[--$j]; //#4508 - if ((_9 < 48) || (_9 > 57)) { //#4510 - $k[$j++] = 'bwipp.ean8badCharacter#4509'; //#4509 - $k[$j++] = "EAN-8 must contain only digits"; //#4509 - bwipp_raiseerror(); //#4509 - } //#4509 - }); //#4509 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4514 - $k[$j++] = 'bwipp.ean8badAddOnLength#4513'; //#4513 - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4513 - bwipp_raiseerror(); //#4513 + $puti($_.pad, 0, $_.barcode); //#4439 + $put($_.pad, 12, $f($_.checksum + 48)); //#4440 + $_.barcode = $_.pad; //#4441 + if (!bwipp_ean13.__4459__) { //#4459 + $_ = Object.create($_); //#4459 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4449 + $_.barchars = "0123456789"; //#4452 + $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4458 + bwipp_ean13.__4459__ = 1; //#4458 + $_ = Object.getPrototypeOf($_); //#4458 + } //#4458 + $_.sbs = $s(59); //#4461 + $_.txt = $a(13); //#4462 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4465 + $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4468 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4469 + for (var _r = 1; _r <= 6; _r += 1) { //#4492 + $_.i = _r; //#4474 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4475 + $j--; //#4476 + $_.indx = $k[--$j].length; //#4477 + $j -= 2; //#4478 + $_.enc = $get($_.encs, $_.indx); //#4479 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#4489 + $_.enclen = $_.enc.length; //#4481 + $_.revenc = $s($_.enclen); //#4482 + for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4487 + $_.j = _18; //#4484 + $_.char = $get($_.enc, $_.j); //#4485 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4486 + } //#4486 + $_.enc = $_.revenc; //#4488 + } //#4488 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4490 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 15) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4491 + } //#4491 + $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4495 + for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4508 + $_.i = _1Y; //#4500 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4501 + $j--; //#4502 + $_.indx = $k[--$j].length; //#4503 + $j -= 2; //#4504 + $_.enc = $get($_.encs, $_.indx); //#4505 + $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4506 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 19) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4507 + } //#4507 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4511 + $k[$j++] = Infinity; //#4513 + var _1y = $_.sbs; //#4513 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4513 + $k[$j++] = $get(_1y, _1z) - 48; //#4513 } //#4513 - $_.pad = $s(8); //#4517 - $_.checksum = 0; //#4518 - for (var _E = 0; _E <= 6; _E += 1) { //#4527 - $_.i = _E; //#4520 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4521 - if (($_.i % 2) != 0) { //#4525 - $_.checksum = $f($_.barchar + $_.checksum); //#4523 - } else { //#4525 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4525 - } //#4525 - } //#4525 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4528 - if ($_.barcode.length == 8) { //#4533 - if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4532 - $k[$j++] = 'bwipp.ean8badCheckDigit#4531'; //#4531 - $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4531 - bwipp_raiseerror(); //#4531 + $_.sbs = $a(); //#4513 + if ($_.includetext) { //#4520 + $k[$j++] = Infinity; //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + $_.bhs = $a(); //#4515 + $k[$j++] = Infinity; //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + $_.bbs = $a(); //#4516 + } else { //#4520 + $k[$j++] = Infinity; //#4518 + for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4518 + $k[$j++] = $_.height; //#4518 + } //#4518 + $_.bhs = $a(); //#4518 + $k[$j++] = Infinity; //#4519 + for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4519 + $k[$j++] = 0; //#4519 + } //#4519 + $_.bbs = $a(); //#4519 + $_.txt = $a([]); //#4520 + } //#4520 + $_.guardrightypos = 0; //#4522 + if ($ne($_.addon, "")) { //#4543 + $k[$j++] = Infinity; //#4526 + $k[$j++] = 'dontdraw'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'includetext'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'height'; //#4530 + $k[$j++] = $f($_.height - 0.15); //#4530 + $k[$j++] = 'textxoffset'; //#4530 + if ($ne($_.addontextxoffset, null)) { //#4530 + $k[$j++] = $_.addontextxoffset; //#4530 + } else { //#4530 + $k[$j++] = 95 + $_.addongap; //#4530 + } //#4530 + if ($ne($_.addontextyoffset, null)) { //#4531 + $k[$j++] = 'textyoffset'; //#4531 + $k[$j++] = $_.addontextyoffset; //#4531 } //#4531 - } //#4531 - $puti($_.pad, 0, $_.barcode); //#4534 - $put($_.pad, 7, $f($_.checksum + 48)); //#4535 - $_.barcode = $_.pad; //#4536 - if (!bwipp_ean8.__4548__) { //#4548 - $_ = Object.create($_); //#4548 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4544 - $_.barchars = "0123456789"; //#4547 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4547 - bwipp_ean8.__4548__ = 1; //#4547 - $_ = Object.getPrototypeOf($_); //#4547 - } //#4547 - $_.sbs = $s(43); //#4550 - $_.txt = $a(8); //#4551 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4554 - for (var _e = 0; _e <= 3; _e += 1) { //#4567 - $_.i = _e; //#4559 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4560 - $j--; //#4561 - $_.indx = $k[--$j].length; //#4562 - $j -= 2; //#4563 - $_.enc = $get($_.encs, $_.indx); //#4564 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4565 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4566 - } //#4566 - $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4570 - for (var _14 = 4; _14 <= 7; _14 += 1) { //#4583 - $_.i = _14; //#4575 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4576 - $j--; //#4577 - $_.indx = $k[--$j].length; //#4578 - $j -= 2; //#4579 - $_.enc = $get($_.encs, $_.indx); //#4580 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4581 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4582 - } //#4582 - $puti($_.sbs, 40, $get($_.encs, 12)); //#4586 - $k[$j++] = Infinity; //#4588 - var _1U = $_.sbs; //#4588 - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4588 - $k[$j++] = $get(_1U, _1V) - 48; //#4588 - } //#4588 - $_.sbs = $a(); //#4588 - if ($_.includetext) { //#4595 - $k[$j++] = Infinity; //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - $_.bhs = $a(); //#4590 - $k[$j++] = Infinity; //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - $_.bbs = $a(); //#4591 - } else { //#4595 - $k[$j++] = Infinity; //#4593 - for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4593 - $k[$j++] = $_.height; //#4593 - } //#4593 - $_.bhs = $a(); //#4593 - $k[$j++] = Infinity; //#4594 - for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4594 - $k[$j++] = 0; //#4594 - } //#4594 - $_.bbs = $a(); //#4594 - $_.txt = $a([]); //#4595 - } //#4595 - $_.guardrightypos = 0; //#4597 - if ($ne($_.addon, "")) { //#4618 - $k[$j++] = Infinity; //#4608 - $k[$j++] = 'dontdraw'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'includetext'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'height'; //#4605 - $k[$j++] = $f($_.height - 0.15); //#4605 - $k[$j++] = 'textxoffset'; //#4605 - if ($ne($_.addontextxoffset, null)) { //#4605 - $k[$j++] = $_.addontextxoffset; //#4605 - } else { //#4605 - $k[$j++] = 67 + $_.addongap; //#4605 - } //#4605 - if ($ne($_.addontextyoffset, null)) { //#4606 - $k[$j++] = 'textyoffset'; //#4606 - $k[$j++] = $_.addontextyoffset; //#4606 - } //#4606 - $k[$j++] = 'textsize'; //#4607 - if ($ne($_.addontextsize, null)) { //#4607 - $k[$j++] = $_.addontextsize; //#4607 - } else { //#4607 - $k[$j++] = $_.textsize; //#4607 - } //#4607 - var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4608 - $k[$j++] = 'textfont'; //#4608 - $k[$j++] = _2B; //#4608 - $_.addopts = $d(); //#4609 - if ($_.addon.length == 2) { //#4610 - $k[$j++] = $_.addon; //#4610 - $k[$j++] = $_.addopts; //#4610 - bwipp_ean2(); //#4610 - } //#4610 - if ($_.addon.length == 5) { //#4611 - $k[$j++] = $_.addon; //#4611 - $k[$j++] = $_.addopts; //#4611 - bwipp_ean5(); //#4611 - } //#4611 - $_.addcode = $k[--$j]; //#4612 - $k[$j++] = Infinity; //#4613 - $aload($_.sbs); //#4613 - $k[$j++] = $_.addongap; //#4613 - $aload($get($_.addcode, "sbs")); //#4613 - $_.sbs = $a(); //#4613 - $k[$j++] = Infinity; //#4614 - $aload($_.bhs); //#4614 - $forall($get($_.addcode, "bhs"), function() { //#4614 - var _2S = $k[--$j]; //#4614 - $k[$j++] = $f(_2S - 0.075); //#4614 - }); //#4614 - $_.bhs = $a(); //#4614 - $k[$j++] = Infinity; //#4615 - $aload($_.bbs); //#4615 - $forall($get($_.addcode, "bbs"), function() { //#4615 - var _2X = $k[--$j]; //#4615 - $k[$j++] = $f(_2X + 0.075); //#4615 - }); //#4615 - $_.bbs = $a(); //#4615 - $k[$j++] = Infinity; //#4616 - $aload($_.txt); //#4616 - $aload($get($_.addcode, "txt")); //#4616 - $_.txt = $a(); //#4616 - $_.guardrightypos = ($_.height * 72) - 6; //#4617 - } //#4617 - var _2k = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardleftpos", 10], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4631 - $k[$j++] = _2k; //#4634 - if (!$_.dontdraw) { //#4634 - bwipp_renlinear(); //#4634 - } //#4634 - $_ = Object.getPrototypeOf($_); //#4636 - $_ = Object.getPrototypeOf($_); //#4638 -} - + $k[$j++] = 'textsize'; //#4532 + if ($ne($_.addontextsize, null)) { //#4532 + $k[$j++] = $_.addontextsize; //#4532 + } else { //#4532 + $k[$j++] = $_.textsize; //#4532 + } //#4532 + var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4533 + $k[$j++] = 'textfont'; //#4533 + $k[$j++] = _2f; //#4533 + $_.addopts = $d(); //#4534 + if ($_.addon.length == 2) { //#4535 + $k[$j++] = $_.addon; //#4535 + $k[$j++] = $_.addopts; //#4535 + bwipp_ean2(); //#4535 + } //#4535 + if ($_.addon.length == 5) { //#4536 + $k[$j++] = $_.addon; //#4536 + $k[$j++] = $_.addopts; //#4536 + bwipp_ean5(); //#4536 + } //#4536 + $_.addcode = $k[--$j]; //#4537 + $k[$j++] = Infinity; //#4538 + $aload($_.sbs); //#4538 + $k[$j++] = $_.addongap; //#4538 + $aload($get($_.addcode, "sbs")); //#4538 + $_.sbs = $a(); //#4538 + $k[$j++] = Infinity; //#4539 + $aload($_.bhs); //#4539 + $forall($get($_.addcode, "bhs"), function() { //#4539 + var _2w = $k[--$j]; //#4539 + $k[$j++] = $f(_2w - 0.075); //#4539 + }); //#4539 + $_.bhs = $a(); //#4539 + $k[$j++] = Infinity; //#4540 + $aload($_.bbs); //#4540 + $forall($get($_.addcode, "bbs"), function() { //#4540 + var _31 = $k[--$j]; //#4540 + $k[$j++] = $f(_31 + 0.075); //#4540 + }); //#4540 + $_.bbs = $a(); //#4540 + $k[$j++] = Infinity; //#4541 + $aload($_.txt); //#4541 + $aload($get($_.addcode, "txt")); //#4541 + $_.txt = $a(); //#4541 + $_.guardrightypos = ($_.height * 72) - 6; //#4542 + } //#4542 + $k[$j++] = Infinity; //#4546 + $k[$j++] = 'ren'; //#4553 + $k[$j++] = bwipp_renlinear; //#4553 + $k[$j++] = 'sbs'; //#4553 + $k[$j++] = $_.sbs; //#4553 + $k[$j++] = 'bhs'; //#4553 + $k[$j++] = $_.bhs; //#4553 + $k[$j++] = 'bbs'; //#4553 + $k[$j++] = $_.bbs; //#4553 + $k[$j++] = 'txt'; //#4553 + $k[$j++] = $_.txt; //#4553 + $k[$j++] = 'opt'; //#4553 + $k[$j++] = $_.options; //#4553 + $k[$j++] = 'guardrightpos'; //#4553 + if ($eq($_.addon, "")) { //#4553 + $k[$j++] = 7; //#4553 + } else { //#4553 + $k[$j++] = 5; //#4553 + } //#4553 + $k[$j++] = 'guardrightypos'; //#4556 + $k[$j++] = $_.guardrightypos; //#4556 + $k[$j++] = 'borderleft'; //#4556 + $k[$j++] = 11; //#4556 + $k[$j++] = 'borderright'; //#4556 + if ($eq($_.addon, "")) { //#4556 + $k[$j++] = 7; //#4556 + } else { //#4556 + $k[$j++] = 5; //#4556 + } //#4556 + $k[$j++] = 'bordertop'; //#4558 + $k[$j++] = 0; //#4558 + $k[$j++] = 'borderbottom'; //#4558 + $k[$j++] = 5; //#4558 + var _3G = $d(); //#4558 + $k[$j++] = _3G; //#4561 + if (!$_.dontdraw) { //#4561 + bwipp_renlinear(); //#4561 + } //#4561 + $_ = Object.getPrototypeOf($_); //#4563 + $_ = Object.getPrototypeOf($_); //#4565 +} //bwipp_ean13 +function bwipp_ean8() { + $_ = Object.create($_); //#4597 + $_.dontdraw = false; //#4600 + $_.includetext = false; //#4601 + $_.textfont = "OCR-B"; //#4602 + $_.textsize = 12; //#4603 + $_.textxoffset = 4; //#4604 + $_.textyoffset = -4; //#4605 + $_.height = 1; //#4606 + $_.addongap = 12; //#4607 + $_.addontextfont = "unset"; //#4608 + $_.addontextsize = null; //#4609 + $_.addontextxoffset = null; //#4610 + $_.addontextyoffset = null; //#4611 + $k[$j++] = $_; //#4613 + bwipp_processoptions(); //#4613 + $_.options = $k[--$j]; //#4613 + $_.barcode = $k[--$j]; //#4614 + bwipp_loadctx(bwipp_ean8) //#4616 + $search($_.barcode, " "); //#4619 + if ($k[--$j]) { //#4625 + $_.barcode = $k[--$j]; //#4620 + $j--; //#4621 + $_.addon = $k[--$j]; //#4622 + } else { //#4625 + $j--; //#4624 + $_.addon = ""; //#4625 + } //#4625 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4631 + $k[$j++] = 'bwipp.ean8badLength#4630'; //#4630 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4630 + bwipp_raiseerror(); //#4630 + } //#4630 + $forall($_.barcode, function() { //#4636 + var _9 = $k[--$j]; //#4633 + if ((_9 < 48) || (_9 > 57)) { //#4635 + $k[$j++] = 'bwipp.ean8badCharacter#4634'; //#4634 + $k[$j++] = "EAN-8 must contain only digits"; //#4634 + bwipp_raiseerror(); //#4634 + } //#4634 + }); //#4634 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4639 + $k[$j++] = 'bwipp.ean8badAddOnLength#4638'; //#4638 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4638 + bwipp_raiseerror(); //#4638 + } //#4638 + $_.pad = $s(8); //#4642 + $_.checksum = 0; //#4643 + for (var _E = 0; _E <= 6; _E += 1) { //#4652 + $_.i = _E; //#4645 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4646 + if (($_.i % 2) != 0) { //#4650 + $_.checksum = $f($_.barchar + $_.checksum); //#4648 + } else { //#4650 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4650 + } //#4650 + } //#4650 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4653 + if ($_.barcode.length == 8) { //#4658 + if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4657 + $k[$j++] = 'bwipp.ean8badCheckDigit#4656'; //#4656 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4656 + bwipp_raiseerror(); //#4656 + } //#4656 + } //#4656 + $puti($_.pad, 0, $_.barcode); //#4659 + $put($_.pad, 7, $f($_.checksum + 48)); //#4660 + $_.barcode = $_.pad; //#4661 + if (!bwipp_ean8.__4673__) { //#4673 + $_ = Object.create($_); //#4673 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4669 + $_.barchars = "0123456789"; //#4672 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4672 + bwipp_ean8.__4673__ = 1; //#4672 + $_ = Object.getPrototypeOf($_); //#4672 + } //#4672 + $_.sbs = $s(43); //#4675 + $_.txt = $a(8); //#4676 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4679 + for (var _e = 0; _e <= 3; _e += 1) { //#4692 + $_.i = _e; //#4684 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4685 + $j--; //#4686 + $_.indx = $k[--$j].length; //#4687 + $j -= 2; //#4688 + $_.enc = $get($_.encs, $_.indx); //#4689 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4690 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4691 + } //#4691 + $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4695 + for (var _14 = 4; _14 <= 7; _14 += 1) { //#4708 + $_.i = _14; //#4700 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4701 + $j--; //#4702 + $_.indx = $k[--$j].length; //#4703 + $j -= 2; //#4704 + $_.enc = $get($_.encs, $_.indx); //#4705 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4706 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4707 + } //#4707 + $puti($_.sbs, 40, $get($_.encs, 12)); //#4711 + $k[$j++] = Infinity; //#4713 + var _1U = $_.sbs; //#4713 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4713 + $k[$j++] = $get(_1U, _1V) - 48; //#4713 + } //#4713 + $_.sbs = $a(); //#4713 + if ($_.includetext) { //#4720 + $k[$j++] = Infinity; //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + $_.bhs = $a(); //#4715 + $k[$j++] = Infinity; //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + $_.bbs = $a(); //#4716 + } else { //#4720 + $k[$j++] = Infinity; //#4718 + for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4718 + $k[$j++] = $_.height; //#4718 + } //#4718 + $_.bhs = $a(); //#4718 + $k[$j++] = Infinity; //#4719 + for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4719 + $k[$j++] = 0; //#4719 + } //#4719 + $_.bbs = $a(); //#4719 + $_.txt = $a([]); //#4720 + } //#4720 + $_.guardrightypos = 0; //#4722 + if ($ne($_.addon, "")) { //#4743 + $k[$j++] = Infinity; //#4726 + $k[$j++] = 'dontdraw'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'includetext'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'height'; //#4730 + $k[$j++] = $f($_.height - 0.15); //#4730 + $k[$j++] = 'textxoffset'; //#4730 + if ($ne($_.addontextxoffset, null)) { //#4730 + $k[$j++] = $_.addontextxoffset; //#4730 + } else { //#4730 + $k[$j++] = 67 + $_.addongap; //#4730 + } //#4730 + if ($ne($_.addontextyoffset, null)) { //#4731 + $k[$j++] = 'textyoffset'; //#4731 + $k[$j++] = $_.addontextyoffset; //#4731 + } //#4731 + $k[$j++] = 'textsize'; //#4732 + if ($ne($_.addontextsize, null)) { //#4732 + $k[$j++] = $_.addontextsize; //#4732 + } else { //#4732 + $k[$j++] = $_.textsize; //#4732 + } //#4732 + var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4733 + $k[$j++] = 'textfont'; //#4733 + $k[$j++] = _2B; //#4733 + $_.addopts = $d(); //#4734 + if ($_.addon.length == 2) { //#4735 + $k[$j++] = $_.addon; //#4735 + $k[$j++] = $_.addopts; //#4735 + bwipp_ean2(); //#4735 + } //#4735 + if ($_.addon.length == 5) { //#4736 + $k[$j++] = $_.addon; //#4736 + $k[$j++] = $_.addopts; //#4736 + bwipp_ean5(); //#4736 + } //#4736 + $_.addcode = $k[--$j]; //#4737 + $k[$j++] = Infinity; //#4738 + $aload($_.sbs); //#4738 + $k[$j++] = $_.addongap; //#4738 + $aload($get($_.addcode, "sbs")); //#4738 + $_.sbs = $a(); //#4738 + $k[$j++] = Infinity; //#4739 + $aload($_.bhs); //#4739 + $forall($get($_.addcode, "bhs"), function() { //#4739 + var _2S = $k[--$j]; //#4739 + $k[$j++] = $f(_2S - 0.075); //#4739 + }); //#4739 + $_.bhs = $a(); //#4739 + $k[$j++] = Infinity; //#4740 + $aload($_.bbs); //#4740 + $forall($get($_.addcode, "bbs"), function() { //#4740 + var _2X = $k[--$j]; //#4740 + $k[$j++] = $f(_2X + 0.075); //#4740 + }); //#4740 + $_.bbs = $a(); //#4740 + $k[$j++] = Infinity; //#4741 + $aload($_.txt); //#4741 + $aload($get($_.addcode, "txt")); //#4741 + $_.txt = $a(); //#4741 + $_.guardrightypos = ($_.height * 72) - 6; //#4742 + } //#4742 + $k[$j++] = Infinity; //#4746 + $k[$j++] = 'ren'; //#4754 + $k[$j++] = bwipp_renlinear; //#4754 + $k[$j++] = 'sbs'; //#4754 + $k[$j++] = $_.sbs; //#4754 + $k[$j++] = 'bhs'; //#4754 + $k[$j++] = $_.bhs; //#4754 + $k[$j++] = 'bbs'; //#4754 + $k[$j++] = $_.bbs; //#4754 + $k[$j++] = 'txt'; //#4754 + $k[$j++] = $_.txt; //#4754 + $k[$j++] = 'opt'; //#4754 + $k[$j++] = $_.options; //#4754 + $k[$j++] = 'guardleftpos'; //#4754 + $k[$j++] = 7; //#4754 + $k[$j++] = 'guardrightpos'; //#4754 + if ($eq($_.addon, "")) { //#4754 + $k[$j++] = 7; //#4754 + } else { //#4754 + $k[$j++] = 5; //#4754 + } //#4754 + $k[$j++] = 'guardrightypos'; //#4757 + $k[$j++] = $_.guardrightypos; //#4757 + $k[$j++] = 'borderleft'; //#4757 + $k[$j++] = 7; //#4757 + $k[$j++] = 'borderright'; //#4757 + if ($eq($_.addon, "")) { //#4757 + $k[$j++] = 7; //#4757 + } else { //#4757 + $k[$j++] = 5; //#4757 + } //#4757 + $k[$j++] = 'bordertop'; //#4759 + $k[$j++] = 0; //#4759 + $k[$j++] = 'borderbottom'; //#4759 + $k[$j++] = 5; //#4759 + var _2m = $d(); //#4759 + $k[$j++] = _2m; //#4762 + if (!$_.dontdraw) { //#4762 + bwipp_renlinear(); //#4762 + } //#4762 + $_ = Object.getPrototypeOf($_); //#4764 + $_ = Object.getPrototypeOf($_); //#4766 +} //bwipp_ean8 function bwipp_upca() { - $_ = Object.create($_); //#4670 - $_.dontdraw = false; //#4673 - $_.includetext = false; //#4674 - $_.textfont = "OCR-B"; //#4675 - $_.textsize = 12; //#4676 - $_.textxoffset = -7; //#4677 - $_.textyoffset = -4; //#4678 - $_.height = 1; //#4679 - $_.addongap = 12; //#4680 - $_.addontextfont = "unset"; //#4681 - $_.addontextsize = null; //#4682 - $_.addontextxoffset = null; //#4683 - $_.addontextyoffset = null; //#4684 - $k[$j++] = $_; //#4686 - bwipp_processoptions(); //#4686 - $_.options = $k[--$j]; //#4686 - $_.barcode = $k[--$j]; //#4687 - bwipp_loadctx(bwipp_upca) //#4689 - $search($_.barcode, " "); //#4692 - if ($k[--$j]) { //#4698 - $_.barcode = $k[--$j]; //#4693 - $j--; //#4694 - $_.addon = $k[--$j]; //#4695 - } else { //#4698 - $j--; //#4697 - $_.addon = ""; //#4698 - } //#4698 - if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4744 - $forall($_.barcode, function() { //#4708 - var _9 = $k[--$j]; //#4705 - if ((_9 < 48) || (_9 > 57)) { //#4707 - $k[$j++] = 'bwipp.upcAupcEbadCharacter#4706'; //#4706 - $k[$j++] = "UPC-E must contain only digits"; //#4706 - bwipp_raiseerror(); //#4706 - } //#4706 - }); //#4706 - var _B = $get($_.barcode, 0); //#4709 - if ((_B != 48) && (_B != 49)) { //#4711 - $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4710'; //#4710 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#4710 - bwipp_raiseerror(); //#4710 - } //#4710 - for (var _C = 0, _D = 1; _C < _D; _C++) { //#4739 - var _F = ($_.barcode.length == 8) ? 12 : 11; //#4713 - $_.upcacode = $s(_F); //#4713 - if ($f($get($_.barcode, 6) - 48) <= 2) { //#4720 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4715 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4716 - $puti($_.upcacode, 4, "0000"); //#4717 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4718 - break; //#4719 - } //#4719 - if ($f($get($_.barcode, 6) - 48) == 3) { //#4726 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4722 - $puti($_.upcacode, 4, "00000"); //#4723 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4724 - break; //#4725 - } //#4725 - if ($f($get($_.barcode, 6) - 48) == 4) { //#4732 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4728 - $puti($_.upcacode, 5, "00000"); //#4729 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4730 - break; //#4731 - } //#4731 - if ($f($get($_.barcode, 6) - 48) >= 5) { //#4738 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4734 - $puti($_.upcacode, 6, "0000"); //#4735 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4736 - break; //#4737 - } //#4737 - } //#4737 - if ($_.barcode.length == 8) { //#4742 - $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4741 - } //#4741 - $_.barcode = $_.upcacode; //#4743 - } //#4743 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4749 - $k[$j++] = 'bwipp.upcAbadLength#4748'; //#4748 - $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4748 - bwipp_raiseerror(); //#4748 - } //#4748 - var _11 = $_.barcode; //#4750 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4754 - var _14 = $get(_11, _12); //#4754 - if ((_14 < 48) || (_14 > 57)) { //#4753 - $k[$j++] = 'bwipp.upcAbadCharacter#4752'; //#4752 - $k[$j++] = "UPC-A must contain only digits"; //#4752 - bwipp_raiseerror(); //#4752 - } //#4752 - } //#4752 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4757 - $k[$j++] = 'bwipp.upcAbadAddOnLength#4756'; //#4756 - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4756 - bwipp_raiseerror(); //#4756 - } //#4756 - $_.pad = $s(12); //#4760 - $_.checksum = 0; //#4761 - for (var _19 = 0; _19 <= 10; _19 += 1) { //#4770 - $_.i = _19; //#4763 - $_.barchar = $get($_.barcode, $_.i) - 48; //#4764 - if (($_.i % 2) != 0) { //#4768 - $_.checksum = $_.checksum + $_.barchar; //#4766 - } else { //#4768 - $_.checksum = $_.checksum + ($_.barchar * 3); //#4768 - } //#4768 - } //#4768 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4771 - if ($_.barcode.length == 12) { //#4776 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4775 - $k[$j++] = 'bwipp.upcAbadCheckDigit#4774'; //#4774 - $k[$j++] = "Incorrect UPC check digit provided"; //#4774 - bwipp_raiseerror(); //#4774 - } //#4774 - } //#4774 - $puti($_.pad, 0, $_.barcode); //#4777 - $put($_.pad, 11, $_.checksum + 48); //#4778 - $_.barcode = $_.pad; //#4779 - if (!bwipp_upca.__4791__) { //#4791 - $_ = Object.create($_); //#4791 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4787 - $_.barchars = "0123456789"; //#4790 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4790 - bwipp_upca.__4791__ = 1; //#4790 - $_ = Object.getPrototypeOf($_); //#4790 - } //#4790 - $_.sbs = $s(59); //#4793 - $_.txt = $a(12); //#4794 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4797 - for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4814 - $_.i = _1Z; //#4802 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4803 - $j--; //#4804 - $_.indx = $k[--$j].length; //#4805 - $j -= 2; //#4806 - $_.enc = $get($_.encs, $_.indx); //#4807 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4808 - if ($_.i == 0) { //#4812 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4810 - } else { //#4812 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4812 - } //#4812 - } //#4812 - $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4817 - for (var _28 = 6; _28 <= 11; _28 += 1) { //#4834 - $_.i = _28; //#4822 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4823 - $j--; //#4824 - $_.indx = $k[--$j].length; //#4825 - $j -= 2; //#4826 - $_.enc = $get($_.encs, $_.indx); //#4827 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4828 - if ($_.i == 11) { //#4832 - $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 104, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4830 - } else { //#4832 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 15, $_.textyoffset, $_.textfont, $_.textsize])); //#4832 - } //#4832 - } //#4832 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4837 - $k[$j++] = Infinity; //#4839 - var _2h = $_.sbs; //#4839 - for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4839 - $k[$j++] = $get(_2h, _2i) - 48; //#4839 - } //#4839 - $_.sbs = $a(); //#4839 - if ($_.includetext) { //#4846 - $k[$j++] = Infinity; //#4841 - for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - $k[$j++] = $_.height; //#4841 - $k[$j++] = $_.height; //#4841 - for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - $_.bhs = $a(); //#4841 - $k[$j++] = Infinity; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $_.bbs = $a(); //#4842 - } else { //#4846 - $k[$j++] = Infinity; //#4844 - for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4844 - $k[$j++] = $_.height; //#4844 - } //#4844 - $_.bhs = $a(); //#4844 - $k[$j++] = Infinity; //#4845 - for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4845 - $k[$j++] = 0; //#4845 - } //#4845 - $_.bbs = $a(); //#4845 - $_.txt = $a([]); //#4846 - } //#4846 - $_.guardrightypos = 0; //#4848 - if ($ne($_.addon, "")) { //#4869 - $k[$j++] = Infinity; //#4859 - $k[$j++] = 'dontdraw'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'includetext'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'height'; //#4856 - $k[$j++] = $f($_.height - 0.15); //#4856 - $k[$j++] = 'textxoffset'; //#4856 - if ($ne($_.addontextxoffset, null)) { //#4856 - $k[$j++] = $_.addontextxoffset; //#4856 - } else { //#4856 - $k[$j++] = 95 + $_.addongap; //#4856 - } //#4856 - if ($ne($_.addontextyoffset, null)) { //#4857 - $k[$j++] = 'textyoffset'; //#4857 - $k[$j++] = $_.addontextyoffset; //#4857 - } //#4857 - $k[$j++] = 'textsize'; //#4858 - if ($ne($_.addontextsize, null)) { //#4858 - $k[$j++] = $_.addontextsize; //#4858 - } else { //#4858 - $k[$j++] = $_.textsize; //#4858 - } //#4858 - var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4859 - $k[$j++] = 'textfont'; //#4859 - $k[$j++] = _3Q; //#4859 - $_.addopts = $d(); //#4860 - if ($_.addon.length == 2) { //#4861 - $k[$j++] = $_.addon; //#4861 - $k[$j++] = $_.addopts; //#4861 - bwipp_ean2(); //#4861 - } //#4861 - if ($_.addon.length == 5) { //#4862 - $k[$j++] = $_.addon; //#4862 - $k[$j++] = $_.addopts; //#4862 - bwipp_ean5(); //#4862 - } //#4862 - $_.addcode = $k[--$j]; //#4863 - $k[$j++] = Infinity; //#4864 - $aload($_.sbs); //#4864 - $k[$j++] = $_.addongap; //#4864 - $aload($get($_.addcode, "sbs")); //#4864 - $_.sbs = $a(); //#4864 - $k[$j++] = Infinity; //#4865 - $aload($_.bhs); //#4865 - $forall($get($_.addcode, "bhs"), function() { //#4865 - var _3h = $k[--$j]; //#4865 - $k[$j++] = $f(_3h - 0.075); //#4865 - }); //#4865 - $_.bhs = $a(); //#4865 - $k[$j++] = Infinity; //#4866 - $aload($_.bbs); //#4866 - $forall($get($_.addcode, "bbs"), function() { //#4866 - var _3m = $k[--$j]; //#4866 - $k[$j++] = $f(_3m + 0.075); //#4866 - }); //#4866 - $_.bbs = $a(); //#4866 - $k[$j++] = Infinity; //#4867 - $aload($_.txt); //#4867 - $aload($get($_.addcode, "txt")); //#4867 - $_.txt = $a(); //#4867 - $_.guardrightypos = ($_.height * 72) - 6; //#4868 - } //#4868 - var _3z = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4881 - $k[$j++] = _3z; //#4884 - if (!$_.dontdraw) { //#4884 - bwipp_renlinear(); //#4884 + $_ = Object.create($_); //#4798 + $_.dontdraw = false; //#4801 + $_.includetext = false; //#4802 + $_.textfont = "OCR-B"; //#4803 + $_.textsize = 12; //#4804 + $_.textxoffset = -9; //#4805 + $_.textyoffset = -4; //#4806 + $_.height = 1; //#4807 + $_.addongap = 12; //#4808 + $_.addontextfont = "unset"; //#4809 + $_.addontextsize = null; //#4810 + $_.addontextxoffset = null; //#4811 + $_.addontextyoffset = null; //#4812 + $k[$j++] = $_; //#4814 + bwipp_processoptions(); //#4814 + $_.options = $k[--$j]; //#4814 + $_.barcode = $k[--$j]; //#4815 + bwipp_loadctx(bwipp_upca) //#4817 + $search($_.barcode, " "); //#4820 + if ($k[--$j]) { //#4826 + $_.barcode = $k[--$j]; //#4821 + $j--; //#4822 + $_.addon = $k[--$j]; //#4823 + } else { //#4826 + $j--; //#4825 + $_.addon = ""; //#4826 + } //#4826 + if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4872 + $forall($_.barcode, function() { //#4836 + var _9 = $k[--$j]; //#4833 + if ((_9 < 48) || (_9 > 57)) { //#4835 + $k[$j++] = 'bwipp.upcAupcEbadCharacter#4834'; //#4834 + $k[$j++] = "UPC-E must contain only digits"; //#4834 + bwipp_raiseerror(); //#4834 + } //#4834 + }); //#4834 + var _B = $get($_.barcode, 0); //#4837 + if ((_B != 48) && (_B != 49)) { //#4839 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4838'; //#4838 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#4838 + bwipp_raiseerror(); //#4838 + } //#4838 + for (var _C = 0, _D = 1; _C < _D; _C++) { //#4867 + var _F = ($_.barcode.length == 8) ? 12 : 11; //#4841 + $_.upcacode = $s(_F); //#4841 + if ($f($get($_.barcode, 6) - 48) <= 2) { //#4848 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4843 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4844 + $puti($_.upcacode, 4, "0000"); //#4845 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4846 + break; //#4847 + } //#4847 + if ($f($get($_.barcode, 6) - 48) == 3) { //#4854 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4850 + $puti($_.upcacode, 4, "00000"); //#4851 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4852 + break; //#4853 + } //#4853 + if ($f($get($_.barcode, 6) - 48) == 4) { //#4860 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4856 + $puti($_.upcacode, 5, "00000"); //#4857 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4858 + break; //#4859 + } //#4859 + if ($f($get($_.barcode, 6) - 48) >= 5) { //#4866 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4862 + $puti($_.upcacode, 6, "0000"); //#4863 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4864 + break; //#4865 + } //#4865 + } //#4865 + if ($_.barcode.length == 8) { //#4870 + $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4869 + } //#4869 + $_.barcode = $_.upcacode; //#4871 + } //#4871 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4877 + $k[$j++] = 'bwipp.upcAbadLength#4876'; //#4876 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4876 + bwipp_raiseerror(); //#4876 + } //#4876 + var _11 = $_.barcode; //#4878 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4882 + var _14 = $get(_11, _12); //#4882 + if ((_14 < 48) || (_14 > 57)) { //#4881 + $k[$j++] = 'bwipp.upcAbadCharacter#4880'; //#4880 + $k[$j++] = "UPC-A must contain only digits"; //#4880 + bwipp_raiseerror(); //#4880 + } //#4880 + } //#4880 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4885 + $k[$j++] = 'bwipp.upcAbadAddOnLength#4884'; //#4884 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4884 + bwipp_raiseerror(); //#4884 } //#4884 - $_ = Object.getPrototypeOf($_); //#4886 - $_ = Object.getPrototypeOf($_); //#4888 -} - -function bwipp_upce() { - $_ = Object.create($_); //#4920 - $_.dontdraw = false; //#4923 - $_.includetext = false; //#4924 - $_.textfont = "OCR-B"; //#4925 - $_.textsize = 12; //#4926 - $_.textxoffset = -7; //#4927 - $_.textyoffset = -4; //#4928 - $_.height = 1; //#4929 - $_.addongap = 12; //#4930 - $_.addontextfont = "unset"; //#4931 - $_.addontextsize = null; //#4932 - $_.addontextxoffset = null; //#4933 - $_.addontextyoffset = null; //#4934 - $k[$j++] = $_; //#4936 - bwipp_processoptions(); //#4936 - $_.options = $k[--$j]; //#4936 - $_.barcode = $k[--$j]; //#4937 - bwipp_loadctx(bwipp_upce) //#4939 - $search($_.barcode, " "); //#4942 - if ($k[--$j]) { //#4948 - $_.barcode = $k[--$j]; //#4943 - $j--; //#4944 - $_.addon = $k[--$j]; //#4945 - } else { //#4948 - $j--; //#4947 - $_.addon = ""; //#4948 - } //#4948 - if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#4990 - $forall($_.barcode, function() { //#4958 - var _9 = $k[--$j]; //#4955 - if ((_9 < 48) || (_9 > 57)) { //#4957 - $k[$j++] = 'bwipp.upcEupcAbadCharacter#4956'; //#4956 - $k[$j++] = "UPC-A must contain only digits"; //#4956 - bwipp_raiseerror(); //#4956 - } //#4956 - }); //#4956 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#4985 - var _D = ($_.barcode.length == 12) ? 8 : 7; //#4960 - $_.upcecode = $s(_D); //#4960 - if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#4966 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#4962 - $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#4963 - $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#4964 - break; //#4965 - } //#4965 - if ($eq($geti($_.barcode, 4, 5), "00000")) { //#4972 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#4968 - $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#4969 - $puti($_.upcecode, 6, "3"); //#4970 - break; //#4971 - } //#4971 - if ($eq($geti($_.barcode, 5, 5), "00000")) { //#4978 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#4974 - $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#4975 - $puti($_.upcecode, 6, "4"); //#4976 - break; //#4977 - } //#4977 - if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#4983 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#4980 - $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#4981 - break; //#4982 - } //#4982 - $k[$j++] = 'bwipp.upcEupcAnotCompressible#4984'; //#4984 - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#4984 - bwipp_raiseerror(); //#4984 + $_.pad = $s(12); //#4888 + $_.checksum = 0; //#4889 + for (var _19 = 0; _19 <= 10; _19 += 1) { //#4898 + $_.i = _19; //#4891 + $_.barchar = $get($_.barcode, $_.i) - 48; //#4892 + if (($_.i % 2) != 0) { //#4896 + $_.checksum = $_.checksum + $_.barchar; //#4894 + } else { //#4896 + $_.checksum = $_.checksum + ($_.barchar * 3); //#4896 + } //#4896 + } //#4896 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4899 + if ($_.barcode.length == 12) { //#4904 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4903 + $k[$j++] = 'bwipp.upcAbadCheckDigit#4902'; //#4902 + $k[$j++] = "Incorrect UPC check digit provided"; //#4902 + bwipp_raiseerror(); //#4902 + } //#4902 + } //#4902 + $puti($_.pad, 0, $_.barcode); //#4905 + $put($_.pad, 11, $_.checksum + 48); //#4906 + $_.barcode = $_.pad; //#4907 + if (!bwipp_upca.__4919__) { //#4919 + $_ = Object.create($_); //#4919 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4915 + $_.barchars = "0123456789"; //#4918 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4918 + bwipp_upca.__4919__ = 1; //#4918 + $_ = Object.getPrototypeOf($_); //#4918 + } //#4918 + $_.sbs = $s(59); //#4921 + $_.txt = $a(12); //#4922 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4925 + for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4942 + $_.i = _1Z; //#4930 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4931 + $j--; //#4932 + $_.indx = $k[--$j].length; //#4933 + $j -= 2; //#4934 + $_.enc = $get($_.encs, $_.indx); //#4935 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4936 + if ($_.i == 0) { //#4940 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4938 + } else { //#4940 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4940 + } //#4940 + } //#4940 + $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4945 + for (var _28 = 6; _28 <= 11; _28 += 1) { //#4962 + $_.i = _28; //#4950 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4951 + $j--; //#4952 + $_.indx = $k[--$j].length; //#4953 + $j -= 2; //#4954 + $_.enc = $get($_.encs, $_.indx); //#4955 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4956 + if ($_.i == 11) { //#4960 + $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 107, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4958 + } else { //#4960 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 17, $_.textyoffset, $_.textfont, $_.textsize])); //#4960 + } //#4960 + } //#4960 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4965 + $k[$j++] = Infinity; //#4967 + var _2h = $_.sbs; //#4967 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4967 + $k[$j++] = $get(_2h, _2i) - 48; //#4967 + } //#4967 + $_.sbs = $a(); //#4967 + if ($_.includetext) { //#4974 + $k[$j++] = Infinity; //#4969 + for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + $k[$j++] = $_.height; //#4969 + $k[$j++] = $_.height; //#4969 + for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + $_.bhs = $a(); //#4969 + $k[$j++] = Infinity; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $_.bbs = $a(); //#4970 + } else { //#4974 + $k[$j++] = Infinity; //#4972 + for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4972 + $k[$j++] = $_.height; //#4972 + } //#4972 + $_.bhs = $a(); //#4972 + $k[$j++] = Infinity; //#4973 + for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4973 + $k[$j++] = 0; //#4973 + } //#4973 + $_.bbs = $a(); //#4973 + $_.txt = $a([]); //#4974 + } //#4974 + $_.guardrightypos = 0; //#4976 + if ($ne($_.addon, "")) { //#4997 + $k[$j++] = Infinity; //#4980 + $k[$j++] = 'dontdraw'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'includetext'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'height'; //#4984 + $k[$j++] = $f($_.height - 0.15); //#4984 + $k[$j++] = 'textxoffset'; //#4984 + if ($ne($_.addontextxoffset, null)) { //#4984 + $k[$j++] = $_.addontextxoffset; //#4984 + } else { //#4984 + $k[$j++] = 95 + $_.addongap; //#4984 } //#4984 - if ($_.barcode.length == 12) { //#4988 - $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#4987 - } //#4987 - $_.barcode = $_.upcecode; //#4989 - } //#4989 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4995 - $k[$j++] = 'bwipp.upcEbadLength#4994'; //#4994 - $k[$j++] = "UPC-E must be 7 or 8 digits"; //#4994 - bwipp_raiseerror(); //#4994 - } //#4994 - var _11 = $_.barcode; //#4996 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5000 - var _14 = $get(_11, _12); //#5000 - if ((_14 < 48) || (_14 > 57)) { //#4999 - $k[$j++] = 'bwipp.upcEbadCharacter#4998'; //#4998 - $k[$j++] = "UPC-E must contain only digits"; //#4998 - bwipp_raiseerror(); //#4998 - } //#4998 - } //#4998 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5003 - $k[$j++] = 'bwipp.upcEbadAddOnLength#5002'; //#5002 - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5002 - bwipp_raiseerror(); //#5002 - } //#5002 - var _19 = $get($_.barcode, 0); //#5006 - if ((_19 != 48) && (_19 != 49)) { //#5008 - $k[$j++] = 'bwipp.upcEbadNumberSystem#5007'; //#5007 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#5007 - bwipp_raiseerror(); //#5007 + if ($ne($_.addontextyoffset, null)) { //#4985 + $k[$j++] = 'textyoffset'; //#4985 + $k[$j++] = $_.addontextyoffset; //#4985 + } //#4985 + $k[$j++] = 'textsize'; //#4986 + if ($ne($_.addontextsize, null)) { //#4986 + $k[$j++] = $_.addontextsize; //#4986 + } else { //#4986 + $k[$j++] = $_.textsize; //#4986 + } //#4986 + var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4987 + $k[$j++] = 'textfont'; //#4987 + $k[$j++] = _3Q; //#4987 + $_.addopts = $d(); //#4988 + if ($_.addon.length == 2) { //#4989 + $k[$j++] = $_.addon; //#4989 + $k[$j++] = $_.addopts; //#4989 + bwipp_ean2(); //#4989 + } //#4989 + if ($_.addon.length == 5) { //#4990 + $k[$j++] = $_.addon; //#4990 + $k[$j++] = $_.addopts; //#4990 + bwipp_ean5(); //#4990 + } //#4990 + $_.addcode = $k[--$j]; //#4991 + $k[$j++] = Infinity; //#4992 + $aload($_.sbs); //#4992 + $k[$j++] = $_.addongap; //#4992 + $aload($get($_.addcode, "sbs")); //#4992 + $_.sbs = $a(); //#4992 + $k[$j++] = Infinity; //#4993 + $aload($_.bhs); //#4993 + $forall($get($_.addcode, "bhs"), function() { //#4993 + var _3h = $k[--$j]; //#4993 + $k[$j++] = $f(_3h - 0.075); //#4993 + }); //#4993 + $_.bhs = $a(); //#4993 + $k[$j++] = Infinity; //#4994 + $aload($_.bbs); //#4994 + $forall($get($_.addcode, "bbs"), function() { //#4994 + var _3m = $k[--$j]; //#4994 + $k[$j++] = $f(_3m + 0.075); //#4994 + }); //#4994 + $_.bbs = $a(); //#4994 + $k[$j++] = Infinity; //#4995 + $aload($_.txt); //#4995 + $aload($get($_.addcode, "txt")); //#4995 + $_.txt = $a(); //#4995 + $_.guardrightypos = ($_.height * 72) - 6; //#4996 + } //#4996 + $k[$j++] = Infinity; //#5000 + $k[$j++] = 'ren'; //#5007 + $k[$j++] = bwipp_renlinear; //#5007 + $k[$j++] = 'sbs'; //#5007 + $k[$j++] = $_.sbs; //#5007 + $k[$j++] = 'bhs'; //#5007 + $k[$j++] = $_.bhs; //#5007 + $k[$j++] = 'bbs'; //#5007 + $k[$j++] = $_.bbs; //#5007 + $k[$j++] = 'txt'; //#5007 + $k[$j++] = $_.txt; //#5007 + $k[$j++] = 'opt'; //#5007 + $k[$j++] = $_.options; //#5007 + $k[$j++] = 'guardrightpos'; //#5007 + if ($eq($_.addon, "")) { //#5007 + $k[$j++] = 9; //#5007 + } else { //#5007 + $k[$j++] = 5; //#5007 } //#5007 - if (!bwipp_upce.__5025__) { //#5025 - $_ = Object.create($_); //#5025 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5016 - $_.barchars = "0123456789"; //#5019 - $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5024 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5024 - bwipp_upce.__5025__ = 1; //#5024 - $_ = Object.getPrototypeOf($_); //#5024 - } //#5024 - for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5055 - $_.upcacode = $s(11); //#5029 - if (($get($_.barcode, 6) - 48) <= 2) { //#5036 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5031 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5032 - $puti($_.upcacode, 4, "0000"); //#5033 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5034 - break; //#5035 - } //#5035 - if (($get($_.barcode, 6) - 48) == 3) { //#5042 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5038 - $puti($_.upcacode, 4, "00000"); //#5039 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5040 - break; //#5041 - } //#5041 - if (($get($_.barcode, 6) - 48) == 4) { //#5048 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5044 - $puti($_.upcacode, 5, "00000"); //#5045 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5046 - break; //#5047 - } //#5047 - if (($get($_.barcode, 6) - 48) >= 5) { //#5054 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5050 - $puti($_.upcacode, 6, "0000"); //#5051 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5052 - break; //#5053 - } //#5053 - } //#5053 - $_.checksum = 0; //#5056 - for (var _1t = 0; _1t <= 10; _1t += 1) { //#5065 - $_.i = _1t; //#5058 - $_.barchar = $get($_.upcacode, $_.i) - 48; //#5059 - if (($_.i % 2) != 0) { //#5063 - $_.checksum = $_.checksum + $_.barchar; //#5061 - } else { //#5063 - $_.checksum = $_.checksum + ($_.barchar * 3); //#5063 - } //#5063 - } //#5063 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5066 - if ($_.barcode.length == 8) { //#5071 - if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5070 - $k[$j++] = 'bwipp.upcEbadCheckDigit#5069'; //#5069 - $k[$j++] = "Incorrect UPC check digit provided"; //#5069 - bwipp_raiseerror(); //#5069 - } //#5069 - } //#5069 - $_.pad = $s(8); //#5072 - $puti($_.pad, 0, $_.barcode); //#5073 - $put($_.pad, 7, $_.checksum + 48); //#5074 - $_.barcode = $_.pad; //#5075 - $_.txt = $a(8); //#5076 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5077 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5080 - if ($get($_.barcode, 0) == 48) { //#5094 - $_.invt = $s($_.mirrormap.length); //#5084 - for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5092 - $_.i = _2V; //#5086 - if ($get($_.mirrormap, $_.i) == 48) { //#5090 - $put($_.invt, $_.i, 49); //#5088 - } else { //#5090 - $put($_.invt, $_.i, 48); //#5090 - } //#5090 - } //#5090 - $_.mirrormap = $_.invt; //#5093 - } //#5093 - $_.sbs = $s(33); //#5096 - $puti($_.sbs, 0, $get($_.encs, 10)); //#5099 - for (var _2i = 1; _2i <= 6; _2i += 1) { //#5121 - $_.i = _2i; //#5102 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5104 - $j--; //#5105 - $_.indx = $k[--$j].length; //#5106 - $j -= 2; //#5107 - $_.enc = $get($_.encs, $_.indx); //#5108 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#5118 - $_.enclen = $_.enc.length; //#5110 - $_.revenc = $s($_.enclen); //#5111 - for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5116 - $_.j = _2z; //#5113 - $_.char = $get($_.enc, $_.j); //#5114 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5115 - } //#5115 - $_.enc = $_.revenc; //#5117 - } //#5117 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5119 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5120 + $k[$j++] = 'guardrightypos'; //#5010 + $k[$j++] = $_.guardrightypos; //#5010 + $k[$j++] = 'borderleft'; //#5010 + $k[$j++] = 9; //#5010 + $k[$j++] = 'borderright'; //#5010 + if ($eq($_.addon, "")) { //#5010 + $k[$j++] = 9; //#5010 + } else { //#5010 + $k[$j++] = 5; //#5010 + } //#5010 + $k[$j++] = 'bordertop'; //#5012 + $k[$j++] = 0; //#5012 + $k[$j++] = 'borderbottom'; //#5012 + $k[$j++] = 5; //#5012 + var _41 = $d(); //#5012 + $k[$j++] = _41; //#5015 + if (!$_.dontdraw) { //#5015 + bwipp_renlinear(); //#5015 + } //#5015 + $_ = Object.getPrototypeOf($_); //#5017 + $_ = Object.getPrototypeOf($_); //#5019 +} //bwipp_upca +function bwipp_upce() { + $_ = Object.create($_); //#5051 + $_.dontdraw = false; //#5054 + $_.includetext = false; //#5055 + $_.textfont = "OCR-B"; //#5056 + $_.textsize = 12; //#5057 + $_.textxoffset = -9; //#5058 + $_.textyoffset = -4; //#5059 + $_.height = 1; //#5060 + $_.addongap = 12; //#5061 + $_.addontextfont = "unset"; //#5062 + $_.addontextsize = null; //#5063 + $_.addontextxoffset = null; //#5064 + $_.addontextyoffset = null; //#5065 + $k[$j++] = $_; //#5067 + bwipp_processoptions(); //#5067 + $_.options = $k[--$j]; //#5067 + $_.barcode = $k[--$j]; //#5068 + bwipp_loadctx(bwipp_upce) //#5070 + $search($_.barcode, " "); //#5073 + if ($k[--$j]) { //#5079 + $_.barcode = $k[--$j]; //#5074 + $j--; //#5075 + $_.addon = $k[--$j]; //#5076 + } else { //#5079 + $j--; //#5078 + $_.addon = ""; //#5079 + } //#5079 + if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#5121 + $forall($_.barcode, function() { //#5089 + var _9 = $k[--$j]; //#5086 + if ((_9 < 48) || (_9 > 57)) { //#5088 + $k[$j++] = 'bwipp.upcEupcAbadCharacter#5087'; //#5087 + $k[$j++] = "UPC-A must contain only digits"; //#5087 + bwipp_raiseerror(); //#5087 + } //#5087 + }); //#5087 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#5116 + var _D = ($_.barcode.length == 12) ? 8 : 7; //#5091 + $_.upcecode = $s(_D); //#5091 + if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#5097 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#5093 + $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#5094 + $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#5095 + break; //#5096 + } //#5096 + if ($eq($geti($_.barcode, 4, 5), "00000")) { //#5103 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#5099 + $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#5100 + $puti($_.upcecode, 6, "3"); //#5101 + break; //#5102 + } //#5102 + if ($eq($geti($_.barcode, 5, 5), "00000")) { //#5109 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#5105 + $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#5106 + $puti($_.upcecode, 6, "4"); //#5107 + break; //#5108 + } //#5108 + if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#5114 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#5111 + $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#5112 + break; //#5113 + } //#5113 + $k[$j++] = 'bwipp.upcEupcAnotCompressible#5115'; //#5115 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#5115 + bwipp_raiseerror(); //#5115 + } //#5115 + if ($_.barcode.length == 12) { //#5119 + $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#5118 + } //#5118 + $_.barcode = $_.upcecode; //#5120 } //#5120 - $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5123 - $puti($_.sbs, 27, $get($_.encs, 11)); //#5126 - $k[$j++] = Infinity; //#5128 - var _3X = $_.sbs; //#5128 - for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5128 - $k[$j++] = $get(_3X, _3Y) - 48; //#5128 - } //#5128 - $_.sbs = $a(); //#5128 - if ($_.includetext) { //#5135 - $k[$j++] = Infinity; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5130 - $k[$j++] = $f($_.height - 0.075); //#5130 - } //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $_.bhs = $a(); //#5130 - $k[$j++] = Infinity; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5131 - $k[$j++] = 0.075; //#5131 - } //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $_.bbs = $a(); //#5131 - } else { //#5135 - $k[$j++] = Infinity; //#5133 - for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5133 - $k[$j++] = $_.height; //#5133 - } //#5133 - $_.bhs = $a(); //#5133 - $k[$j++] = Infinity; //#5134 - for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5134 - $k[$j++] = 0; //#5134 - } //#5134 - $_.bbs = $a(); //#5134 - $_.txt = $a([]); //#5135 - } //#5135 - $_.guardrightypos = 0; //#5137 - if ($ne($_.addon, "")) { //#5158 - $k[$j++] = Infinity; //#5148 - $k[$j++] = 'dontdraw'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'includetext'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'height'; //#5145 - $k[$j++] = $f($_.height - 0.15); //#5145 - $k[$j++] = 'textxoffset'; //#5145 - if ($ne($_.addontextxoffset, null)) { //#5145 - $k[$j++] = $_.addontextxoffset; //#5145 - } else { //#5145 - $k[$j++] = 51 + $_.addongap; //#5145 - } //#5145 - if ($ne($_.addontextyoffset, null)) { //#5146 - $k[$j++] = 'textyoffset'; //#5146 - $k[$j++] = $_.addontextyoffset; //#5146 - } //#5146 - $k[$j++] = 'textsize'; //#5147 - if ($ne($_.addontextsize, null)) { //#5147 - $k[$j++] = $_.addontextsize; //#5147 - } else { //#5147 - $k[$j++] = $_.textsize; //#5147 - } //#5147 - var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5148 - $k[$j++] = 'textfont'; //#5148 - $k[$j++] = _48; //#5148 - $_.addopts = $d(); //#5149 - if ($_.addon.length == 2) { //#5150 - $k[$j++] = $_.addon; //#5150 - $k[$j++] = $_.addopts; //#5150 - bwipp_ean2(); //#5150 - } //#5150 - if ($_.addon.length == 5) { //#5151 - $k[$j++] = $_.addon; //#5151 - $k[$j++] = $_.addopts; //#5151 - bwipp_ean5(); //#5151 - } //#5151 - $_.addcode = $k[--$j]; //#5152 - $k[$j++] = Infinity; //#5153 - $aload($_.sbs); //#5153 - $k[$j++] = $_.addongap; //#5153 - $aload($get($_.addcode, "sbs")); //#5153 - $_.sbs = $a(); //#5153 - $k[$j++] = Infinity; //#5154 - $aload($_.bhs); //#5154 - $forall($get($_.addcode, "bhs"), function() { //#5154 - var _4P = $k[--$j]; //#5154 - $k[$j++] = $f(_4P - 0.075); //#5154 - }); //#5154 - $_.bhs = $a(); //#5154 - $k[$j++] = Infinity; //#5155 - $aload($_.bbs); //#5155 - $forall($get($_.addcode, "bbs"), function() { //#5155 - var _4U = $k[--$j]; //#5155 - $k[$j++] = $f(_4U + 0.075); //#5155 - }); //#5155 - $_.bbs = $a(); //#5155 - $k[$j++] = Infinity; //#5156 - $aload($_.txt); //#5156 - $aload($get($_.addcode, "txt")); //#5156 - $_.txt = $a(); //#5156 - $_.guardrightypos = ($_.height * 72) - 6; //#5157 - } //#5157 - var _4h = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#5170 - $k[$j++] = _4h; //#5173 - if (!$_.dontdraw) { //#5173 - bwipp_renlinear(); //#5173 - } //#5173 - $_ = Object.getPrototypeOf($_); //#5175 - $_ = Object.getPrototypeOf($_); //#5177 -} - + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#5126 + $k[$j++] = 'bwipp.upcEbadLength#5125'; //#5125 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#5125 + bwipp_raiseerror(); //#5125 + } //#5125 + var _11 = $_.barcode; //#5127 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5131 + var _14 = $get(_11, _12); //#5131 + if ((_14 < 48) || (_14 > 57)) { //#5130 + $k[$j++] = 'bwipp.upcEbadCharacter#5129'; //#5129 + $k[$j++] = "UPC-E must contain only digits"; //#5129 + bwipp_raiseerror(); //#5129 + } //#5129 + } //#5129 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5134 + $k[$j++] = 'bwipp.upcEbadAddOnLength#5133'; //#5133 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5133 + bwipp_raiseerror(); //#5133 + } //#5133 + var _19 = $get($_.barcode, 0); //#5137 + if ((_19 != 48) && (_19 != 49)) { //#5139 + $k[$j++] = 'bwipp.upcEbadNumberSystem#5138'; //#5138 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#5138 + bwipp_raiseerror(); //#5138 + } //#5138 + if (!bwipp_upce.__5156__) { //#5156 + $_ = Object.create($_); //#5156 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5147 + $_.barchars = "0123456789"; //#5150 + $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5155 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5155 + bwipp_upce.__5156__ = 1; //#5155 + $_ = Object.getPrototypeOf($_); //#5155 + } //#5155 + for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5186 + $_.upcacode = $s(11); //#5160 + if (($get($_.barcode, 6) - 48) <= 2) { //#5167 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5162 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5163 + $puti($_.upcacode, 4, "0000"); //#5164 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5165 + break; //#5166 + } //#5166 + if (($get($_.barcode, 6) - 48) == 3) { //#5173 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5169 + $puti($_.upcacode, 4, "00000"); //#5170 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5171 + break; //#5172 + } //#5172 + if (($get($_.barcode, 6) - 48) == 4) { //#5179 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5175 + $puti($_.upcacode, 5, "00000"); //#5176 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5177 + break; //#5178 + } //#5178 + if (($get($_.barcode, 6) - 48) >= 5) { //#5185 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5181 + $puti($_.upcacode, 6, "0000"); //#5182 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5183 + break; //#5184 + } //#5184 + } //#5184 + $_.checksum = 0; //#5187 + for (var _1t = 0; _1t <= 10; _1t += 1) { //#5196 + $_.i = _1t; //#5189 + $_.barchar = $get($_.upcacode, $_.i) - 48; //#5190 + if (($_.i % 2) != 0) { //#5194 + $_.checksum = $_.checksum + $_.barchar; //#5192 + } else { //#5194 + $_.checksum = $_.checksum + ($_.barchar * 3); //#5194 + } //#5194 + } //#5194 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5197 + if ($_.barcode.length == 8) { //#5202 + if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5201 + $k[$j++] = 'bwipp.upcEbadCheckDigit#5200'; //#5200 + $k[$j++] = "Incorrect UPC check digit provided"; //#5200 + bwipp_raiseerror(); //#5200 + } //#5200 + } //#5200 + $_.pad = $s(8); //#5203 + $puti($_.pad, 0, $_.barcode); //#5204 + $put($_.pad, 7, $_.checksum + 48); //#5205 + $_.barcode = $_.pad; //#5206 + $_.txt = $a(8); //#5207 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5208 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5211 + if ($get($_.barcode, 0) == 48) { //#5225 + $_.invt = $s($_.mirrormap.length); //#5215 + for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5223 + $_.i = _2V; //#5217 + if ($get($_.mirrormap, $_.i) == 48) { //#5221 + $put($_.invt, $_.i, 49); //#5219 + } else { //#5221 + $put($_.invt, $_.i, 48); //#5221 + } //#5221 + } //#5221 + $_.mirrormap = $_.invt; //#5224 + } //#5224 + $_.sbs = $s(33); //#5227 + $puti($_.sbs, 0, $get($_.encs, 10)); //#5230 + for (var _2i = 1; _2i <= 6; _2i += 1) { //#5252 + $_.i = _2i; //#5233 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5235 + $j--; //#5236 + $_.indx = $k[--$j].length; //#5237 + $j -= 2; //#5238 + $_.enc = $get($_.encs, $_.indx); //#5239 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#5249 + $_.enclen = $_.enc.length; //#5241 + $_.revenc = $s($_.enclen); //#5242 + for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5247 + $_.j = _2z; //#5244 + $_.char = $get($_.enc, $_.j); //#5245 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5246 + } //#5246 + $_.enc = $_.revenc; //#5248 + } //#5248 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5250 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5251 + } //#5251 + $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 21) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5254 + $puti($_.sbs, 27, $get($_.encs, 11)); //#5257 + $k[$j++] = Infinity; //#5259 + var _3X = $_.sbs; //#5259 + for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5259 + $k[$j++] = $get(_3X, _3Y) - 48; //#5259 + } //#5259 + $_.sbs = $a(); //#5259 + if ($_.includetext) { //#5266 + $k[$j++] = Infinity; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5261 + $k[$j++] = $f($_.height - 0.075); //#5261 + } //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $_.bhs = $a(); //#5261 + $k[$j++] = Infinity; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5262 + $k[$j++] = 0.075; //#5262 + } //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $_.bbs = $a(); //#5262 + } else { //#5266 + $k[$j++] = Infinity; //#5264 + for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5264 + $k[$j++] = $_.height; //#5264 + } //#5264 + $_.bhs = $a(); //#5264 + $k[$j++] = Infinity; //#5265 + for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5265 + $k[$j++] = 0; //#5265 + } //#5265 + $_.bbs = $a(); //#5265 + $_.txt = $a([]); //#5266 + } //#5266 + $_.guardrightypos = 0; //#5268 + if ($ne($_.addon, "")) { //#5289 + $k[$j++] = Infinity; //#5272 + $k[$j++] = 'dontdraw'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'includetext'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'height'; //#5276 + $k[$j++] = $f($_.height - 0.15); //#5276 + $k[$j++] = 'textxoffset'; //#5276 + if ($ne($_.addontextxoffset, null)) { //#5276 + $k[$j++] = $_.addontextxoffset; //#5276 + } else { //#5276 + $k[$j++] = 51 + $_.addongap; //#5276 + } //#5276 + if ($ne($_.addontextyoffset, null)) { //#5277 + $k[$j++] = 'textyoffset'; //#5277 + $k[$j++] = $_.addontextyoffset; //#5277 + } //#5277 + $k[$j++] = 'textsize'; //#5278 + if ($ne($_.addontextsize, null)) { //#5278 + $k[$j++] = $_.addontextsize; //#5278 + } else { //#5278 + $k[$j++] = $_.textsize; //#5278 + } //#5278 + var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5279 + $k[$j++] = 'textfont'; //#5279 + $k[$j++] = _48; //#5279 + $_.addopts = $d(); //#5280 + if ($_.addon.length == 2) { //#5281 + $k[$j++] = $_.addon; //#5281 + $k[$j++] = $_.addopts; //#5281 + bwipp_ean2(); //#5281 + } //#5281 + if ($_.addon.length == 5) { //#5282 + $k[$j++] = $_.addon; //#5282 + $k[$j++] = $_.addopts; //#5282 + bwipp_ean5(); //#5282 + } //#5282 + $_.addcode = $k[--$j]; //#5283 + $k[$j++] = Infinity; //#5284 + $aload($_.sbs); //#5284 + $k[$j++] = $_.addongap; //#5284 + $aload($get($_.addcode, "sbs")); //#5284 + $_.sbs = $a(); //#5284 + $k[$j++] = Infinity; //#5285 + $aload($_.bhs); //#5285 + $forall($get($_.addcode, "bhs"), function() { //#5285 + var _4P = $k[--$j]; //#5285 + $k[$j++] = $f(_4P - 0.075); //#5285 + }); //#5285 + $_.bhs = $a(); //#5285 + $k[$j++] = Infinity; //#5286 + $aload($_.bbs); //#5286 + $forall($get($_.addcode, "bbs"), function() { //#5286 + var _4U = $k[--$j]; //#5286 + $k[$j++] = $f(_4U + 0.075); //#5286 + }); //#5286 + $_.bbs = $a(); //#5286 + $k[$j++] = Infinity; //#5287 + $aload($_.txt); //#5287 + $aload($get($_.addcode, "txt")); //#5287 + $_.txt = $a(); //#5287 + $_.guardrightypos = ($_.height * 72) - 6; //#5288 + } //#5288 + $k[$j++] = Infinity; //#5292 + $k[$j++] = 'ren'; //#5299 + $k[$j++] = bwipp_renlinear; //#5299 + $k[$j++] = 'sbs'; //#5299 + $k[$j++] = $_.sbs; //#5299 + $k[$j++] = 'bhs'; //#5299 + $k[$j++] = $_.bhs; //#5299 + $k[$j++] = 'bbs'; //#5299 + $k[$j++] = $_.bbs; //#5299 + $k[$j++] = 'txt'; //#5299 + $k[$j++] = $_.txt; //#5299 + $k[$j++] = 'opt'; //#5299 + $k[$j++] = $_.options; //#5299 + $k[$j++] = 'guardrightpos'; //#5299 + if ($eq($_.addon, "")) { //#5299 + $k[$j++] = 9; //#5299 + } else { //#5299 + $k[$j++] = 5; //#5299 + } //#5299 + $k[$j++] = 'guardrightypos'; //#5302 + $k[$j++] = $_.guardrightypos; //#5302 + $k[$j++] = 'borderleft'; //#5302 + $k[$j++] = 9; //#5302 + $k[$j++] = 'borderright'; //#5302 + if ($eq($_.addon, "")) { //#5302 + $k[$j++] = 9; //#5302 + } else { //#5302 + $k[$j++] = 5; //#5302 + } //#5302 + $k[$j++] = 'bordertop'; //#5304 + $k[$j++] = 0; //#5304 + $k[$j++] = 'borderbottom'; //#5304 + $k[$j++] = 5; //#5304 + var _4j = $d(); //#5304 + $k[$j++] = _4j; //#5307 + if (!$_.dontdraw) { //#5307 + bwipp_renlinear(); //#5307 + } //#5307 + $_ = Object.getPrototypeOf($_); //#5309 + $_ = Object.getPrototypeOf($_); //#5311 +} //bwipp_upce function bwipp_isbn() { - $_ = Object.create($_); //#5206 - $_.dontdraw = false; //#5209 - $_.includetext = false; //#5210 - $_.isbntextfont = 'OCR-A'; //#5211 - $_.isbntextsize = 8; //#5212 - $_.isbntextxoffset = null; //#5213 - $_.isbntextyoffset = null; //#5214 - $_.height = 1; //#5215 - $_.addongap = 12; //#5216 - $_.legacy = false; //#5217 - $k[$j++] = $_; //#5219 - bwipp_processoptions(); //#5219 - $_.options = $k[--$j]; //#5219 - $_.barcode = $k[--$j]; //#5220 - $search($_.barcode, " "); //#5223 - if ($k[--$j]) { //#5229 - $_.barcode = $k[--$j]; //#5224 - $j--; //#5225 - $_.addon = $k[--$j]; //#5226 - } else { //#5229 - $j--; //#5228 - $_.addon = ""; //#5229 - } //#5229 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5236 - $k[$j++] = 'bwipp.isbnBadLength#5235'; //#5235 - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5235 - bwipp_raiseerror(); //#5235 - } //#5235 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5239 - $k[$j++] = 'bwipp.isbnBadAddOnLength#5238'; //#5238 - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5238 - bwipp_raiseerror(); //#5238 - } //#5238 - if ($_.barcode.length >= 15) { //#5303 - var _F = $geti($_.barcode, 0, 4); //#5241 - if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5243 - $k[$j++] = 'bwipp.isbn13badPrefix#5242'; //#5242 - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5242 - bwipp_raiseerror(); //#5242 - } //#5242 - $_.wasdash = false; //#5244 - $_.numdash = 0; //#5244 - $_.numdigit = 0; //#5244 - var _H = $geti($_.barcode, 5, 9); //#5245 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5258 - var _K = $get(_H, _I); //#5258 - $k[$j++] = _K; //#5253 - if (_K == 45) { //#5253 - if ($_.wasdash) { //#5250 - $k[$j++] = 'bwipp.isbn13adjacentDashes#5249'; //#5249 - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5249 - bwipp_raiseerror(); //#5249 - } //#5249 - $_.wasdash = true; //#5251 - $_.numdash = $_.numdash + 1; //#5252 - } //#5252 - var _N = $k[--$j]; //#5254 - if ((_N >= 48) && (_N <= 57)) { //#5257 - $_.wasdash = false; //#5255 - $_.numdigit = $_.numdigit + 1; //#5256 - } //#5256 - } //#5256 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5261 - $k[$j++] = 'bwipp.isbn13numDashesDigits#5260'; //#5260 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5260 - bwipp_raiseerror(); //#5260 - } //#5260 - var _S = $get($_.barcode, 14); //#5262 - if ((_S < 48) || (_S > 57)) { //#5264 - $k[$j++] = 'bwipp.isbn13character15#5263'; //#5263 - $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5263 - bwipp_raiseerror(); //#5263 - } //#5263 - if ($_.barcode.length == 17) { //#5272 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5268 - $k[$j++] = 'bwipp.isbn13character16#5267'; //#5267 - $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5267 - bwipp_raiseerror(); //#5267 - } //#5267 - var _X = $get($_.barcode, 16); //#5269 - if ((_X < 48) || (_X > 57)) { //#5271 - $k[$j++] = 'bwipp.isbn13character17#5270'; //#5270 - $k[$j++] = "ISBN-13 final character must be a digit"; //#5270 - bwipp_raiseerror(); //#5270 - } //#5270 - } //#5270 - } else { //#5303 - var _Z = $get($_.barcode, 0); //#5274 - if ((_Z < 48) || (_Z > 57)) { //#5276 - $k[$j++] = 'bwipp.isbn10FirstDigit#5275'; //#5275 - $k[$j++] = "ISBN-10 first character must be a digit"; //#5275 - bwipp_raiseerror(); //#5275 - } //#5275 - $_.wasdash = false; //#5277 - $_.numdash = 0; //#5277 - $_.numdigit = 0; //#5277 - var _b = $geti($_.barcode, 1, 9); //#5278 - for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5291 - var _e = $get(_b, _c); //#5291 - $k[$j++] = _e; //#5286 - if (_e == 45) { //#5286 - if ($_.wasdash) { //#5283 - $k[$j++] = 'bwipp.isbn10adjacentDashes#5282'; //#5282 - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5282 - bwipp_raiseerror(); //#5282 - } //#5282 - $_.wasdash = true; //#5284 - $_.numdash = $_.numdash + 1; //#5285 - } //#5285 - var _h = $k[--$j]; //#5287 - if ((_h >= 48) && (_h <= 57)) { //#5290 - $_.wasdash = false; //#5288 - $_.numdigit = $_.numdigit + 1; //#5289 - } //#5289 - } //#5289 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5294 - $k[$j++] = 'bwipp.isbn10numDashesDigits#5293'; //#5293 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5293 - bwipp_raiseerror(); //#5293 - } //#5293 - var _m = $get($_.barcode, 10); //#5295 - if ((_m < 48) || (_m > 57)) { //#5297 - $k[$j++] = 'bwipp.isbn10character11#5296'; //#5296 - $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5296 - bwipp_raiseerror(); //#5296 - } //#5296 - if ($_.barcode.length == 13) { //#5305 - if ($ne($geti($_.barcode, 11, 1), "-")) { //#5301 - $k[$j++] = 'bwipp.isbn10character12#5300'; //#5300 - $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5300 - bwipp_raiseerror(); //#5300 - } //#5300 - var _r = $get($_.barcode, 12); //#5302 - if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5304 - $k[$j++] = 'bwipp.isbn10character13#5303'; //#5303 - $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5303 - bwipp_raiseerror(); //#5303 - } //#5303 - } //#5303 - } //#5303 - $_.isbntxt = $_.barcode; //#5308 - if ($_.isbntxt.length <= 13) { //#5334 - $_.isbn = $s(10); //#5312 - $_.checksum = 0; //#5313 - $_.i = 0; //#5314 - $_.n = 0; //#5314 - for (;;) { //#5326 - $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5316 - if ($_.isbnchar != -3) { //#5323 - $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5318 - if ($_.n < 9) { //#5321 - $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5320 - } //#5320 - $_.n = $_.n + 1; //#5322 - } //#5322 - $_.i = $_.i + 1; //#5324 - if ($_.i == $_.isbntxt.length) { //#5325 - break; //#5325 - } //#5325 - } //#5325 - var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5327 - $k[$j++] = 'checksum'; //#5327 - $k[$j++] = _1B; //#5327 - if (_1B == 10) { //#5327 - $j--; //#5327 - $k[$j++] = 40; //#5327 - } //#5327 - var _1C = $k[--$j]; //#5327 - $_[$k[--$j]] = $f(_1C + 48); //#5327 - $_.isbn = $geti($_.isbn, 0, 9); //#5328 - if ($_.isbntxt.length == 13) { //#5333 - if ($get($_.isbntxt, 12) != $_.checksum) { //#5332 - $k[$j++] = 'bwipp.isbn10badCheckDigit#5331'; //#5331 - $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5331 - bwipp_raiseerror(); //#5331 - } //#5331 - } //#5331 - } //#5331 - if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5370 - if ($_.isbntxt.length <= 13) { //#5344 - $_.pad = $s(15); //#5340 - $puti($_.pad, 0, "978-"); //#5341 - $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5342 - $_.isbntxt = $_.pad; //#5343 - } //#5343 - $_.isbn = $s(13); //#5347 - $_.checksum = 0; //#5348 - $_.i = 0; //#5349 - $_.n = 0; //#5349 - for (;;) { //#5361 - $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5351 - if ($_.isbnchar != -3) { //#5358 - $put($_.isbn, $_.n, $_.isbnchar + 48); //#5353 - if ($_.n < 12) { //#5356 - $k[$j++] = 'checksum'; //#5355 - $k[$j++] = $_.isbnchar; //#5355 - if (($_.n % 2) != 0) { //#5355 - var _1e = $k[--$j]; //#5355 - $k[$j++] = _1e * 3; //#5355 - } //#5355 - var _1g = $k[--$j]; //#5355 - $_[$k[--$j]] = $f(_1g + $_.checksum); //#5355 - } //#5355 - $_.n = $_.n + 1; //#5357 - } //#5357 - $_.i = $_.i + 1; //#5359 - if ($_.i == $_.isbntxt.length) { //#5360 - break; //#5360 - } //#5360 - } //#5360 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5362 - $_.isbn = $geti($_.isbn, 0, 12); //#5363 - if ($_.isbntxt.length == 17) { //#5368 - if ($get($_.isbntxt, 16) != $_.checksum) { //#5367 - $k[$j++] = 'bwipp.isbn13badCheckDigit#5366'; //#5366 - $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5366 - bwipp_raiseerror(); //#5366 - } //#5366 - } //#5366 - } //#5366 - var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5373 - $_.pad = $s(_1u); //#5373 - $puti($_.pad, 0, "ISBN "); //#5374 - $puti($_.pad, 5, $_.isbntxt); //#5375 - $put($_.pad, $_.pad.length - 2, 45); //#5376 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5377 - $_.isbntxt = $_.pad; //#5378 - $_.barcode = $s(12); //#5381 - if ($_.isbn.length == 9) { //#5386 - $puti($_.barcode, 0, "978"); //#5383 - $puti($_.barcode, 3, $_.isbn); //#5384 - } else { //#5386 - $puti($_.barcode, 0, $_.isbn); //#5386 - } //#5386 - if ($ne($_.addon, "")) { //#5396 - var _2E = $s((12 + $_.addon.length) + 1); //#5391 - $puti(_2E, 0, $_.barcode); //#5392 - $puti(_2E, 12, " "); //#5393 - $puti(_2E, 13, $_.addon); //#5394 - $_.barcode = _2E; //#5395 - } //#5395 - $put($_.options, "dontdraw", true); //#5399 - $put($_.options, "addongap", $_.addongap); //#5400 - $k[$j++] = 'args'; //#5401 - $k[$j++] = $_.barcode; //#5401 - $k[$j++] = $_.options; //#5401 - bwipp_ean13(); //#5401 - var _2M = $k[--$j]; //#5401 - $_[$k[--$j]] = _2M; //#5401 - if ($_.includetext) { //#5420 - if ($eq($_.isbntextxoffset, null)) { //#5407 - $k[$j++] = 'isbntextxoffset'; //#5406 - if ($_.isbn.length == 9) { //#5406 - $k[$j++] = -1; //#5406 - } else { //#5406 - $k[$j++] = -12; //#5406 - } //#5406 - var _2R = $k[--$j]; //#5406 - $_[$k[--$j]] = _2R; //#5406 - } //#5406 - if ($eq($_.isbntextyoffset, null)) { //#5410 - $_.isbntextyoffset = ($_.height * 72) + 3; //#5409 + $_ = Object.create($_); //#5340 + $_.dontdraw = false; //#5343 + $_.includetext = false; //#5344 + $_.isbntextfont = 'OCR-A'; //#5345 + $_.isbntextsize = 8; //#5346 + $_.isbntextxoffset = null; //#5347 + $_.isbntextyoffset = null; //#5348 + $_.height = 1; //#5349 + $_.addongap = 12; //#5350 + $_.legacy = false; //#5351 + $k[$j++] = $_; //#5353 + bwipp_processoptions(); //#5353 + $_.options = $k[--$j]; //#5353 + $_.barcode = $k[--$j]; //#5354 + $search($_.barcode, " "); //#5357 + if ($k[--$j]) { //#5363 + $_.barcode = $k[--$j]; //#5358 + $j--; //#5359 + $_.addon = $k[--$j]; //#5360 + } else { //#5363 + $j--; //#5362 + $_.addon = ""; //#5363 + } //#5363 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5370 + $k[$j++] = 'bwipp.isbnBadLength#5369'; //#5369 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5369 + bwipp_raiseerror(); //#5369 + } //#5369 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5373 + $k[$j++] = 'bwipp.isbnBadAddOnLength#5372'; //#5372 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5372 + bwipp_raiseerror(); //#5372 + } //#5372 + if ($_.barcode.length >= 15) { //#5437 + var _F = $geti($_.barcode, 0, 4); //#5375 + if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5377 + $k[$j++] = 'bwipp.isbn13badPrefix#5376'; //#5376 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5376 + bwipp_raiseerror(); //#5376 + } //#5376 + $_.wasdash = false; //#5378 + $_.numdash = 0; //#5378 + $_.numdigit = 0; //#5378 + var _H = $geti($_.barcode, 5, 9); //#5379 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5392 + var _K = $get(_H, _I); //#5392 + $k[$j++] = _K; //#5387 + if (_K == 45) { //#5387 + if ($_.wasdash) { //#5384 + $k[$j++] = 'bwipp.isbn13adjacentDashes#5383'; //#5383 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5383 + bwipp_raiseerror(); //#5383 + } //#5383 + $_.wasdash = true; //#5385 + $_.numdash = $_.numdash + 1; //#5386 + } //#5386 + var _N = $k[--$j]; //#5388 + if ((_N >= 48) && (_N <= 57)) { //#5391 + $_.wasdash = false; //#5389 + $_.numdigit = $_.numdigit + 1; //#5390 + } //#5390 + } //#5390 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5395 + $k[$j++] = 'bwipp.isbn13numDashesDigits#5394'; //#5394 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5394 + bwipp_raiseerror(); //#5394 + } //#5394 + var _S = $get($_.barcode, 14); //#5396 + if ((_S < 48) || (_S > 57)) { //#5398 + $k[$j++] = 'bwipp.isbn13character15#5397'; //#5397 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5397 + bwipp_raiseerror(); //#5397 + } //#5397 + if ($_.barcode.length == 17) { //#5406 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5402 + $k[$j++] = 'bwipp.isbn13character16#5401'; //#5401 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5401 + bwipp_raiseerror(); //#5401 + } //#5401 + var _X = $get($_.barcode, 16); //#5403 + if ((_X < 48) || (_X > 57)) { //#5405 + $k[$j++] = 'bwipp.isbn13character17#5404'; //#5404 + $k[$j++] = "ISBN-13 final character must be a digit"; //#5404 + bwipp_raiseerror(); //#5404 + } //#5404 + } //#5404 + } else { //#5437 + var _Z = $get($_.barcode, 0); //#5408 + if ((_Z < 48) || (_Z > 57)) { //#5410 + $k[$j++] = 'bwipp.isbn10FirstDigit#5409'; //#5409 + $k[$j++] = "ISBN-10 first character must be a digit"; //#5409 + bwipp_raiseerror(); //#5409 } //#5409 - var _2W = $get($_.args, "txt") !== undefined; //#5411 - if (_2W) { //#5418 - $_.txt = $get($_.args, "txt"); //#5412 - $_.newtxt = $a($_.txt.length + 1); //#5413 - $puti($_.newtxt, 0, $_.txt); //#5414 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5415 - $put($_.args, "txt", $_.newtxt); //#5416 - } else { //#5418 - $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5418 - } //#5418 - } //#5418 - $put($_.args, "opt", $_.options); //#5422 - $k[$j++] = $_.args; //#5425 - if (!$_.dontdraw) { //#5425 - bwipp_renlinear(); //#5425 - } //#5425 - $_ = Object.getPrototypeOf($_); //#5427 -} - + $_.wasdash = false; //#5411 + $_.numdash = 0; //#5411 + $_.numdigit = 0; //#5411 + var _b = $geti($_.barcode, 1, 9); //#5412 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5425 + var _e = $get(_b, _c); //#5425 + $k[$j++] = _e; //#5420 + if (_e == 45) { //#5420 + if ($_.wasdash) { //#5417 + $k[$j++] = 'bwipp.isbn10adjacentDashes#5416'; //#5416 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5416 + bwipp_raiseerror(); //#5416 + } //#5416 + $_.wasdash = true; //#5418 + $_.numdash = $_.numdash + 1; //#5419 + } //#5419 + var _h = $k[--$j]; //#5421 + if ((_h >= 48) && (_h <= 57)) { //#5424 + $_.wasdash = false; //#5422 + $_.numdigit = $_.numdigit + 1; //#5423 + } //#5423 + } //#5423 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5428 + $k[$j++] = 'bwipp.isbn10numDashesDigits#5427'; //#5427 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5427 + bwipp_raiseerror(); //#5427 + } //#5427 + var _m = $get($_.barcode, 10); //#5429 + if ((_m < 48) || (_m > 57)) { //#5431 + $k[$j++] = 'bwipp.isbn10character11#5430'; //#5430 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5430 + bwipp_raiseerror(); //#5430 + } //#5430 + if ($_.barcode.length == 13) { //#5439 + if ($ne($geti($_.barcode, 11, 1), "-")) { //#5435 + $k[$j++] = 'bwipp.isbn10character12#5434'; //#5434 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5434 + bwipp_raiseerror(); //#5434 + } //#5434 + var _r = $get($_.barcode, 12); //#5436 + if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5438 + $k[$j++] = 'bwipp.isbn10character13#5437'; //#5437 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5437 + bwipp_raiseerror(); //#5437 + } //#5437 + } //#5437 + } //#5437 + $_.isbntxt = $_.barcode; //#5442 + if ($_.isbntxt.length <= 13) { //#5468 + $_.isbn = $s(10); //#5446 + $_.checksum = 0; //#5447 + $_.i = 0; //#5448 + $_.n = 0; //#5448 + for (;;) { //#5460 + $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5450 + if ($_.isbnchar != -3) { //#5457 + $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5452 + if ($_.n < 9) { //#5455 + $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5454 + } //#5454 + $_.n = $_.n + 1; //#5456 + } //#5456 + $_.i = $_.i + 1; //#5458 + if ($_.i == $_.isbntxt.length) { //#5459 + break; //#5459 + } //#5459 + } //#5459 + var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5461 + $k[$j++] = 'checksum'; //#5461 + $k[$j++] = _1B; //#5461 + if (_1B == 10) { //#5461 + $j--; //#5461 + $k[$j++] = 40; //#5461 + } //#5461 + var _1C = $k[--$j]; //#5461 + $_[$k[--$j]] = $f(_1C + 48); //#5461 + $_.isbn = $geti($_.isbn, 0, 9); //#5462 + if ($_.isbntxt.length == 13) { //#5467 + if ($get($_.isbntxt, 12) != $_.checksum) { //#5466 + $k[$j++] = 'bwipp.isbn10badCheckDigit#5465'; //#5465 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5465 + bwipp_raiseerror(); //#5465 + } //#5465 + } //#5465 + } //#5465 + if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5504 + if ($_.isbntxt.length <= 13) { //#5478 + $_.pad = $s(15); //#5474 + $puti($_.pad, 0, "978-"); //#5475 + $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5476 + $_.isbntxt = $_.pad; //#5477 + } //#5477 + $_.isbn = $s(13); //#5481 + $_.checksum = 0; //#5482 + $_.i = 0; //#5483 + $_.n = 0; //#5483 + for (;;) { //#5495 + $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5485 + if ($_.isbnchar != -3) { //#5492 + $put($_.isbn, $_.n, $_.isbnchar + 48); //#5487 + if ($_.n < 12) { //#5490 + $k[$j++] = 'checksum'; //#5489 + $k[$j++] = $_.isbnchar; //#5489 + if (($_.n % 2) != 0) { //#5489 + var _1e = $k[--$j]; //#5489 + $k[$j++] = _1e * 3; //#5489 + } //#5489 + var _1g = $k[--$j]; //#5489 + $_[$k[--$j]] = $f(_1g + $_.checksum); //#5489 + } //#5489 + $_.n = $_.n + 1; //#5491 + } //#5491 + $_.i = $_.i + 1; //#5493 + if ($_.i == $_.isbntxt.length) { //#5494 + break; //#5494 + } //#5494 + } //#5494 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5496 + $_.isbn = $geti($_.isbn, 0, 12); //#5497 + if ($_.isbntxt.length == 17) { //#5502 + if ($get($_.isbntxt, 16) != $_.checksum) { //#5501 + $k[$j++] = 'bwipp.isbn13badCheckDigit#5500'; //#5500 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5500 + bwipp_raiseerror(); //#5500 + } //#5500 + } //#5500 + } //#5500 + var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5507 + $_.pad = $s(_1u); //#5507 + $puti($_.pad, 0, "ISBN "); //#5508 + $puti($_.pad, 5, $_.isbntxt); //#5509 + $put($_.pad, $_.pad.length - 2, 45); //#5510 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5511 + $_.isbntxt = $_.pad; //#5512 + $_.barcode = $s(12); //#5515 + if ($_.isbn.length == 9) { //#5520 + $puti($_.barcode, 0, "978"); //#5517 + $puti($_.barcode, 3, $_.isbn); //#5518 + } else { //#5520 + $puti($_.barcode, 0, $_.isbn); //#5520 + } //#5520 + if ($ne($_.addon, "")) { //#5530 + var _2E = $s((12 + $_.addon.length) + 1); //#5525 + $puti(_2E, 0, $_.barcode); //#5526 + $puti(_2E, 12, " "); //#5527 + $puti(_2E, 13, $_.addon); //#5528 + $_.barcode = _2E; //#5529 + } //#5529 + $put($_.options, "dontdraw", true); //#5533 + $put($_.options, "addongap", $_.addongap); //#5534 + $k[$j++] = 'args'; //#5535 + $k[$j++] = $_.barcode; //#5535 + $k[$j++] = $_.options; //#5535 + bwipp_ean13(); //#5535 + var _2M = $k[--$j]; //#5535 + $_[$k[--$j]] = _2M; //#5535 + if ($_.includetext) { //#5554 + if ($eq($_.isbntextxoffset, null)) { //#5541 + $k[$j++] = 'isbntextxoffset'; //#5540 + if ($_.isbn.length == 9) { //#5540 + $k[$j++] = -1; //#5540 + } else { //#5540 + $k[$j++] = -12; //#5540 + } //#5540 + var _2R = $k[--$j]; //#5540 + $_[$k[--$j]] = _2R; //#5540 + } //#5540 + if ($eq($_.isbntextyoffset, null)) { //#5544 + $_.isbntextyoffset = ($_.height * 72) + 3; //#5543 + } //#5543 + var _2W = $get($_.args, "txt") !== undefined; //#5545 + if (_2W) { //#5552 + $_.txt = $get($_.args, "txt"); //#5546 + $_.newtxt = $a($_.txt.length + 1); //#5547 + $puti($_.newtxt, 0, $_.txt); //#5548 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5549 + $put($_.args, "txt", $_.newtxt); //#5550 + } else { //#5552 + $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5552 + } //#5552 + } //#5552 + $put($_.args, "opt", $_.options); //#5556 + $k[$j++] = $_.args; //#5559 + if (!$_.dontdraw) { //#5559 + bwipp_renlinear(); //#5559 + } //#5559 + $_ = Object.getPrototypeOf($_); //#5561 +} //bwipp_isbn function bwipp_ismn() { - $_ = Object.create($_); //#5456 - $_.dontdraw = false; //#5459 - $_.includetext = false; //#5460 - $_.ismntextfont = 'OCR-A'; //#5461 - $_.ismntextsize = 8; //#5462 - $_.ismntextxoffset = null; //#5463 - $_.ismntextyoffset = null; //#5464 - $_.height = 1; //#5465 - $_.addongap = 12; //#5466 - $_.legacy = false; //#5467 - $k[$j++] = $_; //#5469 - bwipp_processoptions(); //#5469 - $_.options = $k[--$j]; //#5469 - $_.barcode = $k[--$j]; //#5470 - $search($_.barcode, " "); //#5473 - if ($k[--$j]) { //#5479 - $_.barcode = $k[--$j]; //#5474 - $j--; //#5475 - $_.addon = $k[--$j]; //#5476 - } else { //#5479 - $j--; //#5478 - $_.addon = ""; //#5479 - } //#5479 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5486 - $k[$j++] = 'bwipp.ismnBadLength#5485'; //#5485 - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5485 - bwipp_raiseerror(); //#5485 - } //#5485 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5489 - $k[$j++] = 'bwipp.ismnBadAddOnLength#5488'; //#5488 - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5488 - bwipp_raiseerror(); //#5488 - } //#5488 - if ($_.barcode.length >= 15) { //#5556 - if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5493 - $k[$j++] = 'bwipp.ismn13badPrefix#5492'; //#5492 - $k[$j++] = "ISMN-13 prefix must be 979-"; //#5492 - bwipp_raiseerror(); //#5492 - } //#5492 - $_.wasdash = false; //#5494 - $_.numdash = 0; //#5494 - $_.numdigit = 0; //#5494 - var _H = $geti($_.barcode, 5, 9); //#5495 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5508 - var _K = $get(_H, _I); //#5508 - $k[$j++] = _K; //#5503 - if (_K == 45) { //#5503 - if ($_.wasdash) { //#5500 - $k[$j++] = 'bwipp.ismn13adjacentDashes#5499'; //#5499 - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5499 - bwipp_raiseerror(); //#5499 - } //#5499 - $_.wasdash = true; //#5501 - $_.numdash = $_.numdash + 1; //#5502 - } //#5502 - var _N = $k[--$j]; //#5504 - if ((_N >= 48) && (_N <= 57)) { //#5507 - $_.wasdash = false; //#5505 - $_.numdigit = $_.numdigit + 1; //#5506 - } //#5506 - } //#5506 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5511 - $k[$j++] = 'bwipp.ismn13numDashesDigits#5510'; //#5510 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5510 - bwipp_raiseerror(); //#5510 - } //#5510 - var _S = $get($_.barcode, 14); //#5512 - if ((_S < 48) || (_S > 57)) { //#5514 - $k[$j++] = 'bwipp.ismn13character15#5513'; //#5513 - $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5513 - bwipp_raiseerror(); //#5513 - } //#5513 - if ($_.barcode.length == 17) { //#5522 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5518 - $k[$j++] = 'bwipp.ismn13character16#5517'; //#5517 - $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5517 - bwipp_raiseerror(); //#5517 - } //#5517 - var _X = $get($_.barcode, 16); //#5519 - if ((_X < 48) || (_X > 57)) { //#5521 - $k[$j++] = 'bwipp.ismn13character17#5520'; //#5520 - $k[$j++] = "ISMN-13 final character must be a digit"; //#5520 - bwipp_raiseerror(); //#5520 - } //#5520 - } //#5520 - } else { //#5556 - if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5526 - $k[$j++] = 'bwipp.ismn10badPrefix#5525'; //#5525 - $k[$j++] = "ISMN-10 prefix must be M-"; //#5525 - bwipp_raiseerror(); //#5525 - } //#5525 - var _b = $get($_.barcode, 2); //#5527 - if ((_b < 48) || (_b > 57)) { //#5529 - $k[$j++] = 'bwipp.ismn10character3#5528'; //#5528 - $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5528 - bwipp_raiseerror(); //#5528 - } //#5528 - $_.wasdash = false; //#5530 - $_.numdash = 0; //#5530 - $_.numdigit = 0; //#5530 - var _d = $geti($_.barcode, 3, 7); //#5531 - for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5544 - var _g = $get(_d, _e); //#5544 - $k[$j++] = _g; //#5539 - if (_g == 45) { //#5539 - if ($_.wasdash) { //#5536 - $k[$j++] = 'bwipp.ismn10adjacentDashes#5535'; //#5535 - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5535 - bwipp_raiseerror(); //#5535 - } //#5535 - $_.wasdash = true; //#5537 - $_.numdash = $_.numdash + 1; //#5538 - } //#5538 - var _j = $k[--$j]; //#5540 - if ((_j >= 48) && (_j <= 57)) { //#5543 - $_.wasdash = false; //#5541 - $_.numdigit = $_.numdigit + 1; //#5542 - } //#5542 - } //#5542 - if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5547 - $k[$j++] = 'bwipp.ismn10numDashesDigits#5546'; //#5546 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5546 - bwipp_raiseerror(); //#5546 - } //#5546 - var _o = $get($_.barcode, 10); //#5548 - if ((_o < 48) || (_o > 57)) { //#5550 - $k[$j++] = 'bwipp.ismn10character11#5549'; //#5549 - $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5549 - bwipp_raiseerror(); //#5549 - } //#5549 - if ($_.barcode.length == 13) { //#5558 - var _r = $geti($_.barcode, 11, 1); //#5552 - if ($ne(_r, "-")) { //#5554 - $k[$j++] = 'bwipp.ismn10character12#5553'; //#5553 - $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5553 - bwipp_raiseerror(); //#5553 - } //#5553 - var _t = $get($_.barcode, 12); //#5555 - if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5557 - $k[$j++] = 'bwipp.ismn10character13#5556'; //#5556 - $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5556 - bwipp_raiseerror(); //#5556 - } //#5556 - } //#5556 - } //#5556 - $_.ismntxt = $_.barcode; //#5561 - $_.legacytxt = ""; //#5564 - if ($_.ismntxt.length <= 13) { //#5571 - $_.legacytxt = $_.ismntxt; //#5566 - $_.pad = $s($_.ismntxt.length + 4); //#5567 - $puti($_.pad, 0, "979-0-"); //#5568 - $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5569 - $_.ismntxt = $_.pad; //#5570 - } //#5570 - $_.ismn = $s(13); //#5574 - $_.checksum = 0; //#5575 - $_.i = 0; //#5576 - $_.n = 0; //#5576 - for (;;) { //#5592 - $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5578 - if ($_.ismnchar != -3) { //#5589 - $put($_.ismn, $_.n, $_.ismnchar + 48); //#5580 - if ($_.n < 12) { //#5587 - if (($_.n % 2) == 0) { //#5585 - $_.checksum = $_.ismnchar + $_.checksum; //#5583 - } else { //#5585 - $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5585 - } //#5585 - } //#5585 - $_.n = $_.n + 1; //#5588 - } //#5588 - $_.i = $_.i + 1; //#5590 - if ($_.i == $_.ismntxt.length) { //#5591 - break; //#5591 - } //#5591 - } //#5591 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5593 - if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5600 - var _1Q = $_.barcode; //#5597 - if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5599 - $k[$j++] = 'bwipp.ismnBadCheckDigit#5598'; //#5598 - $k[$j++] = "Incorrect ISMN check digit provided"; //#5598 - bwipp_raiseerror(); //#5598 - } //#5598 - } //#5598 - if ($_.legacy && $ne($_.legacytxt, "")) { //#5607 - $_.ismntxt = $_.legacytxt; //#5604 - $_.pad = $s(18); //#5605 - } else { //#5607 - $_.pad = $s(22); //#5607 - } //#5607 - $puti($_.pad, 0, "ISMN "); //#5609 - $puti($_.pad, 5, $_.ismntxt); //#5610 - $put($_.pad, $_.pad.length - 2, 45); //#5611 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5612 - $_.ismntxt = $_.pad; //#5613 - $_.barcode = $geti($_.ismn, 0, 12); //#5616 - if ($ne($_.addon, "")) { //#5625 - var _1l = $s((12 + $_.addon.length) + 1); //#5620 - $puti(_1l, 0, $_.barcode); //#5621 - $puti(_1l, 12, " "); //#5622 - $puti(_1l, 13, $_.addon); //#5623 - $_.barcode = _1l; //#5624 - } //#5624 - $put($_.options, "dontdraw", true); //#5628 - $put($_.options, "addongap", $_.addongap); //#5629 - $k[$j++] = 'args'; //#5630 - $k[$j++] = $_.barcode; //#5630 - $k[$j++] = $_.options; //#5630 - bwipp_ean13(); //#5630 - var _1t = $k[--$j]; //#5630 - $_[$k[--$j]] = _1t; //#5630 - if ($_.includetext) { //#5649 - if ($eq($_.ismntextxoffset, null)) { //#5636 - $k[$j++] = 'ismntextxoffset'; //#5635 - if ($_.ismntxt.length == 18) { //#5635 - $k[$j++] = -1; //#5635 - } else { //#5635 - $k[$j++] = -12; //#5635 - } //#5635 - var _1y = $k[--$j]; //#5635 - $_[$k[--$j]] = _1y; //#5635 - } //#5635 - if ($eq($_.ismntextyoffset, null)) { //#5639 - $_.ismntextyoffset = ($_.height * 72) + 3; //#5638 - } //#5638 - var _23 = $get($_.args, "txt") !== undefined; //#5640 - if (_23) { //#5647 - $_.txt = $get($_.args, "txt"); //#5641 - $_.newtxt = $a($_.txt.length + 1); //#5642 - $puti($_.newtxt, 0, $_.txt); //#5643 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5644 - $put($_.args, "txt", $_.newtxt); //#5645 - } else { //#5647 - $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5647 + $_ = Object.create($_); //#5590 + $_.dontdraw = false; //#5593 + $_.includetext = false; //#5594 + $_.ismntextfont = 'OCR-A'; //#5595 + $_.ismntextsize = 8; //#5596 + $_.ismntextxoffset = null; //#5597 + $_.ismntextyoffset = null; //#5598 + $_.height = 1; //#5599 + $_.addongap = 12; //#5600 + $_.legacy = false; //#5601 + $k[$j++] = $_; //#5603 + bwipp_processoptions(); //#5603 + $_.options = $k[--$j]; //#5603 + $_.barcode = $k[--$j]; //#5604 + $search($_.barcode, " "); //#5607 + if ($k[--$j]) { //#5613 + $_.barcode = $k[--$j]; //#5608 + $j--; //#5609 + $_.addon = $k[--$j]; //#5610 + } else { //#5613 + $j--; //#5612 + $_.addon = ""; //#5613 + } //#5613 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5620 + $k[$j++] = 'bwipp.ismnBadLength#5619'; //#5619 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5619 + bwipp_raiseerror(); //#5619 + } //#5619 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5623 + $k[$j++] = 'bwipp.ismnBadAddOnLength#5622'; //#5622 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5622 + bwipp_raiseerror(); //#5622 + } //#5622 + if ($_.barcode.length >= 15) { //#5690 + if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5627 + $k[$j++] = 'bwipp.ismn13badPrefix#5626'; //#5626 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#5626 + bwipp_raiseerror(); //#5626 + } //#5626 + $_.wasdash = false; //#5628 + $_.numdash = 0; //#5628 + $_.numdigit = 0; //#5628 + var _H = $geti($_.barcode, 5, 9); //#5629 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5642 + var _K = $get(_H, _I); //#5642 + $k[$j++] = _K; //#5637 + if (_K == 45) { //#5637 + if ($_.wasdash) { //#5634 + $k[$j++] = 'bwipp.ismn13adjacentDashes#5633'; //#5633 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5633 + bwipp_raiseerror(); //#5633 + } //#5633 + $_.wasdash = true; //#5635 + $_.numdash = $_.numdash + 1; //#5636 + } //#5636 + var _N = $k[--$j]; //#5638 + if ((_N >= 48) && (_N <= 57)) { //#5641 + $_.wasdash = false; //#5639 + $_.numdigit = $_.numdigit + 1; //#5640 + } //#5640 + } //#5640 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5645 + $k[$j++] = 'bwipp.ismn13numDashesDigits#5644'; //#5644 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5644 + bwipp_raiseerror(); //#5644 + } //#5644 + var _S = $get($_.barcode, 14); //#5646 + if ((_S < 48) || (_S > 57)) { //#5648 + $k[$j++] = 'bwipp.ismn13character15#5647'; //#5647 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5647 + bwipp_raiseerror(); //#5647 } //#5647 - } //#5647 - $put($_.args, "opt", $_.options); //#5651 - $k[$j++] = $_.args; //#5654 - if (!$_.dontdraw) { //#5654 - bwipp_renlinear(); //#5654 - } //#5654 - $_ = Object.getPrototypeOf($_); //#5656 -} - + if ($_.barcode.length == 17) { //#5656 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5652 + $k[$j++] = 'bwipp.ismn13character16#5651'; //#5651 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5651 + bwipp_raiseerror(); //#5651 + } //#5651 + var _X = $get($_.barcode, 16); //#5653 + if ((_X < 48) || (_X > 57)) { //#5655 + $k[$j++] = 'bwipp.ismn13character17#5654'; //#5654 + $k[$j++] = "ISMN-13 final character must be a digit"; //#5654 + bwipp_raiseerror(); //#5654 + } //#5654 + } //#5654 + } else { //#5690 + if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5660 + $k[$j++] = 'bwipp.ismn10badPrefix#5659'; //#5659 + $k[$j++] = "ISMN-10 prefix must be M-"; //#5659 + bwipp_raiseerror(); //#5659 + } //#5659 + var _b = $get($_.barcode, 2); //#5661 + if ((_b < 48) || (_b > 57)) { //#5663 + $k[$j++] = 'bwipp.ismn10character3#5662'; //#5662 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5662 + bwipp_raiseerror(); //#5662 + } //#5662 + $_.wasdash = false; //#5664 + $_.numdash = 0; //#5664 + $_.numdigit = 0; //#5664 + var _d = $geti($_.barcode, 3, 7); //#5665 + for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5678 + var _g = $get(_d, _e); //#5678 + $k[$j++] = _g; //#5673 + if (_g == 45) { //#5673 + if ($_.wasdash) { //#5670 + $k[$j++] = 'bwipp.ismn10adjacentDashes#5669'; //#5669 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5669 + bwipp_raiseerror(); //#5669 + } //#5669 + $_.wasdash = true; //#5671 + $_.numdash = $_.numdash + 1; //#5672 + } //#5672 + var _j = $k[--$j]; //#5674 + if ((_j >= 48) && (_j <= 57)) { //#5677 + $_.wasdash = false; //#5675 + $_.numdigit = $_.numdigit + 1; //#5676 + } //#5676 + } //#5676 + if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5681 + $k[$j++] = 'bwipp.ismn10numDashesDigits#5680'; //#5680 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5680 + bwipp_raiseerror(); //#5680 + } //#5680 + var _o = $get($_.barcode, 10); //#5682 + if ((_o < 48) || (_o > 57)) { //#5684 + $k[$j++] = 'bwipp.ismn10character11#5683'; //#5683 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5683 + bwipp_raiseerror(); //#5683 + } //#5683 + if ($_.barcode.length == 13) { //#5692 + var _r = $geti($_.barcode, 11, 1); //#5686 + if ($ne(_r, "-")) { //#5688 + $k[$j++] = 'bwipp.ismn10character12#5687'; //#5687 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5687 + bwipp_raiseerror(); //#5687 + } //#5687 + var _t = $get($_.barcode, 12); //#5689 + if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5691 + $k[$j++] = 'bwipp.ismn10character13#5690'; //#5690 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5690 + bwipp_raiseerror(); //#5690 + } //#5690 + } //#5690 + } //#5690 + $_.ismntxt = $_.barcode; //#5695 + $_.legacytxt = ""; //#5698 + if ($_.ismntxt.length <= 13) { //#5705 + $_.legacytxt = $_.ismntxt; //#5700 + $_.pad = $s($_.ismntxt.length + 4); //#5701 + $puti($_.pad, 0, "979-0-"); //#5702 + $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5703 + $_.ismntxt = $_.pad; //#5704 + } //#5704 + $_.ismn = $s(13); //#5708 + $_.checksum = 0; //#5709 + $_.i = 0; //#5710 + $_.n = 0; //#5710 + for (;;) { //#5726 + $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5712 + if ($_.ismnchar != -3) { //#5723 + $put($_.ismn, $_.n, $_.ismnchar + 48); //#5714 + if ($_.n < 12) { //#5721 + if (($_.n % 2) == 0) { //#5719 + $_.checksum = $_.ismnchar + $_.checksum; //#5717 + } else { //#5719 + $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5719 + } //#5719 + } //#5719 + $_.n = $_.n + 1; //#5722 + } //#5722 + $_.i = $_.i + 1; //#5724 + if ($_.i == $_.ismntxt.length) { //#5725 + break; //#5725 + } //#5725 + } //#5725 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5727 + if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5734 + var _1Q = $_.barcode; //#5731 + if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5733 + $k[$j++] = 'bwipp.ismnBadCheckDigit#5732'; //#5732 + $k[$j++] = "Incorrect ISMN check digit provided"; //#5732 + bwipp_raiseerror(); //#5732 + } //#5732 + } //#5732 + if ($_.legacy && $ne($_.legacytxt, "")) { //#5741 + $_.ismntxt = $_.legacytxt; //#5738 + $_.pad = $s(18); //#5739 + } else { //#5741 + $_.pad = $s(22); //#5741 + } //#5741 + $puti($_.pad, 0, "ISMN "); //#5743 + $puti($_.pad, 5, $_.ismntxt); //#5744 + $put($_.pad, $_.pad.length - 2, 45); //#5745 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5746 + $_.ismntxt = $_.pad; //#5747 + $_.barcode = $geti($_.ismn, 0, 12); //#5750 + if ($ne($_.addon, "")) { //#5759 + var _1l = $s((12 + $_.addon.length) + 1); //#5754 + $puti(_1l, 0, $_.barcode); //#5755 + $puti(_1l, 12, " "); //#5756 + $puti(_1l, 13, $_.addon); //#5757 + $_.barcode = _1l; //#5758 + } //#5758 + $put($_.options, "dontdraw", true); //#5762 + $put($_.options, "addongap", $_.addongap); //#5763 + $k[$j++] = 'args'; //#5764 + $k[$j++] = $_.barcode; //#5764 + $k[$j++] = $_.options; //#5764 + bwipp_ean13(); //#5764 + var _1t = $k[--$j]; //#5764 + $_[$k[--$j]] = _1t; //#5764 + if ($_.includetext) { //#5783 + if ($eq($_.ismntextxoffset, null)) { //#5770 + $k[$j++] = 'ismntextxoffset'; //#5769 + if ($_.ismntxt.length == 18) { //#5769 + $k[$j++] = -1; //#5769 + } else { //#5769 + $k[$j++] = -12; //#5769 + } //#5769 + var _1y = $k[--$j]; //#5769 + $_[$k[--$j]] = _1y; //#5769 + } //#5769 + if ($eq($_.ismntextyoffset, null)) { //#5773 + $_.ismntextyoffset = ($_.height * 72) + 3; //#5772 + } //#5772 + var _23 = $get($_.args, "txt") !== undefined; //#5774 + if (_23) { //#5781 + $_.txt = $get($_.args, "txt"); //#5775 + $_.newtxt = $a($_.txt.length + 1); //#5776 + $puti($_.newtxt, 0, $_.txt); //#5777 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5778 + $put($_.args, "txt", $_.newtxt); //#5779 + } else { //#5781 + $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5781 + } //#5781 + } //#5781 + $put($_.args, "opt", $_.options); //#5785 + $k[$j++] = $_.args; //#5788 + if (!$_.dontdraw) { //#5788 + bwipp_renlinear(); //#5788 + } //#5788 + $_ = Object.getPrototypeOf($_); //#5790 +} //bwipp_ismn function bwipp_issn() { - $_ = Object.create($_); //#5685 - $_.dontdraw = false; //#5688 - $_.includetext = false; //#5689 - $_.issntextfont = 'OCR-A'; //#5690 - $_.issntextsize = 8; //#5691 - $_.issntextxoffset = null; //#5692 - $_.issntextyoffset = null; //#5693 - $_.height = 1; //#5694 - $_.addongap = 12; //#5695 - $k[$j++] = $_; //#5697 - bwipp_processoptions(); //#5697 - $_.options = $k[--$j]; //#5697 - $_.issntxt = $k[--$j]; //#5698 - $search($_.issntxt, " "); //#5701 - if ($k[--$j]) { //#5707 - $_.issntxt = $k[--$j]; //#5702 - $j--; //#5703 - $_.seqvar = $k[--$j]; //#5704 - } else { //#5707 - $j--; //#5706 - $_.seqvar = "00"; //#5707 - } //#5707 - $search($_.seqvar, " "); //#5711 - if ($k[--$j]) { //#5717 - $_.seqvar = $k[--$j]; //#5712 - $j--; //#5713 - $_.addon = $k[--$j]; //#5714 - } else { //#5717 - $j--; //#5716 - $_.addon = ""; //#5717 - } //#5717 - if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5723 - $k[$j++] = 'bwipp.issnBadLength#5722'; //#5722 - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5722 - bwipp_raiseerror(); //#5722 - } //#5722 - var _D = $geti($_.issntxt, 0, 4); //#5724 - for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5728 - var _G = $get(_D, _E); //#5728 - if ((_G < 48) || (_G > 57)) { //#5727 - $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5726'; //#5726 - $k[$j++] = "ISSN first four characters must be numeral characters"; //#5726 - bwipp_raiseerror(); //#5726 - } //#5726 - } //#5726 - if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5731 - $k[$j++] = 'bwipp.issnNeedsDash#5730'; //#5730 - $k[$j++] = "ISSN fifth character must be a dash"; //#5730 - bwipp_raiseerror(); //#5730 - } //#5730 - var _K = $geti($_.issntxt, 5, 3); //#5732 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5736 - var _N = $get(_K, _L); //#5736 - if ((_N < 48) || (_N > 57)) { //#5735 - $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5734'; //#5734 - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5734 - bwipp_raiseerror(); //#5734 - } //#5734 - } //#5734 - if ($_.issntxt.length == 9) { //#5741 - var _Q = $get($_.issntxt, 8); //#5738 - if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5740 - $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5739'; //#5739 - $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5739 - bwipp_raiseerror(); //#5739 - } //#5739 - } //#5739 - if ($_.seqvar.length != 2) { //#5744 - $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5743'; //#5743 - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5743 - bwipp_raiseerror(); //#5743 - } //#5743 - $forall($_.seqvar, function() { //#5749 - var _T = $k[--$j]; //#5746 - if ((_T < 48) || (_T > 57)) { //#5748 - $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5747'; //#5747 - $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5747 - bwipp_raiseerror(); //#5747 - } //#5747 - }); //#5747 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5752 - $k[$j++] = 'bwipp.issnBadAddOnLength#5751'; //#5751 - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5751 - bwipp_raiseerror(); //#5751 - } //#5751 - $_.issn = $s(8); //#5755 - $_.checksum = 0; //#5756 - $_.i = 0; //#5757 - $_.n = 0; //#5757 - for (;;) { //#5769 - $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5759 - if ($_.issnchar != -3) { //#5766 - $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5761 - if ($_.n < 7) { //#5764 - $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5763 - } //#5763 - $_.n = $_.n + 1; //#5765 - } //#5765 - $_.i = $_.i + 1; //#5767 - if ($_.i == $_.issntxt.length) { //#5768 - break; //#5768 - } //#5768 - } //#5768 - $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5770 - var _p = $f($_.checksum + 48); //#5771 - $k[$j++] = 'checksum'; //#5771 - $k[$j++] = _p; //#5771 - if (_p == 58) { //#5771 - $j--; //#5771 - $k[$j++] = 88; //#5771 - } //#5771 - var _q = $k[--$j]; //#5771 - var _r = $k[--$j]; //#5771 - $_[_r] = _q; //#5771 - if ($_.issntxt.length == 9) { //#5776 - if ($get($_.issntxt, 8) != $_.checksum) { //#5775 - $k[$j++] = 'bwipp.issnBadCheckDigit#5774'; //#5774 - $k[$j++] = "Incorrect ISSN check digit provided"; //#5774 - bwipp_raiseerror(); //#5774 - } //#5774 - } //#5774 - $_.pad = $s(14); //#5779 - $puti($_.pad, 0, "ISSN "); //#5780 - $puti($_.pad, 5, $_.issntxt); //#5781 - $put($_.pad, 13, $_.checksum); //#5782 - $_.issntxt = $_.pad; //#5783 - $_.barcode = $geti($_.issn, 0, 7); //#5786 - $_.barcode = $s(12); //#5789 - $puti($_.barcode, 0, "977"); //#5790 - $puti($_.barcode, 3, $_.issn); //#5791 - $puti($_.barcode, 10, $_.seqvar); //#5792 - if ($ne($_.addon, "")) { //#5801 - var _1D = $s((12 + $_.addon.length) + 1); //#5796 - $puti(_1D, 0, $_.barcode); //#5797 - $puti(_1D, 12, " "); //#5798 - $puti(_1D, 13, $_.addon); //#5799 - $_.barcode = _1D; //#5800 - } //#5800 - $put($_.options, "dontdraw", true); //#5804 - $put($_.options, "addongap", $_.addongap); //#5805 - $k[$j++] = 'args'; //#5806 - $k[$j++] = $_.barcode; //#5806 - $k[$j++] = $_.options; //#5806 - bwipp_ean13(); //#5806 - var _1L = $k[--$j]; //#5806 - $_[$k[--$j]] = _1L; //#5806 - if ($_.includetext) { //#5821 - if ($eq($_.issntextxoffset, null)) { //#5810 - $_.issntextxoffset = 10; //#5810 - } //#5810 - if ($eq($_.issntextyoffset, null)) { //#5811 - $_.issntextyoffset = ($_.height * 72) + 3; //#5811 - } //#5811 - var _1S = $get($_.args, "txt") !== undefined; //#5812 - if (_1S) { //#5819 - $_.txt = $get($_.args, "txt"); //#5813 - $_.newtxt = $a($_.txt.length + 1); //#5814 - $puti($_.newtxt, 0, $_.txt); //#5815 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5816 - $put($_.args, "txt", $_.newtxt); //#5817 - } else { //#5819 - $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5819 - } //#5819 - } //#5819 - $put($_.args, "opt", $_.options); //#5823 - $k[$j++] = $_.args; //#5826 - if (!$_.dontdraw) { //#5826 - bwipp_renlinear(); //#5826 - } //#5826 - $_ = Object.getPrototypeOf($_); //#5828 -} - + $_ = Object.create($_); //#5819 + $_.dontdraw = false; //#5822 + $_.includetext = false; //#5823 + $_.issntextfont = 'OCR-A'; //#5824 + $_.issntextsize = 8; //#5825 + $_.issntextxoffset = null; //#5826 + $_.issntextyoffset = null; //#5827 + $_.height = 1; //#5828 + $_.addongap = 12; //#5829 + $k[$j++] = $_; //#5831 + bwipp_processoptions(); //#5831 + $_.options = $k[--$j]; //#5831 + $_.issntxt = $k[--$j]; //#5832 + $search($_.issntxt, " "); //#5835 + if ($k[--$j]) { //#5841 + $_.issntxt = $k[--$j]; //#5836 + $j--; //#5837 + $_.seqvar = $k[--$j]; //#5838 + } else { //#5841 + $j--; //#5840 + $_.seqvar = "00"; //#5841 + } //#5841 + $search($_.seqvar, " "); //#5845 + if ($k[--$j]) { //#5851 + $_.seqvar = $k[--$j]; //#5846 + $j--; //#5847 + $_.addon = $k[--$j]; //#5848 + } else { //#5851 + $j--; //#5850 + $_.addon = ""; //#5851 + } //#5851 + if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5857 + $k[$j++] = 'bwipp.issnBadLength#5856'; //#5856 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5856 + bwipp_raiseerror(); //#5856 + } //#5856 + var _D = $geti($_.issntxt, 0, 4); //#5858 + for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5862 + var _G = $get(_D, _E); //#5862 + if ((_G < 48) || (_G > 57)) { //#5861 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5860'; //#5860 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#5860 + bwipp_raiseerror(); //#5860 + } //#5860 + } //#5860 + if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5865 + $k[$j++] = 'bwipp.issnNeedsDash#5864'; //#5864 + $k[$j++] = "ISSN fifth character must be a dash"; //#5864 + bwipp_raiseerror(); //#5864 + } //#5864 + var _K = $geti($_.issntxt, 5, 3); //#5866 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5870 + var _N = $get(_K, _L); //#5870 + if ((_N < 48) || (_N > 57)) { //#5869 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5868'; //#5868 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5868 + bwipp_raiseerror(); //#5868 + } //#5868 + } //#5868 + if ($_.issntxt.length == 9) { //#5875 + var _Q = $get($_.issntxt, 8); //#5872 + if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5874 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5873'; //#5873 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5873 + bwipp_raiseerror(); //#5873 + } //#5873 + } //#5873 + if ($_.seqvar.length != 2) { //#5878 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5877'; //#5877 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5877 + bwipp_raiseerror(); //#5877 + } //#5877 + $forall($_.seqvar, function() { //#5883 + var _T = $k[--$j]; //#5880 + if ((_T < 48) || (_T > 57)) { //#5882 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5881'; //#5881 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5881 + bwipp_raiseerror(); //#5881 + } //#5881 + }); //#5881 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5886 + $k[$j++] = 'bwipp.issnBadAddOnLength#5885'; //#5885 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5885 + bwipp_raiseerror(); //#5885 + } //#5885 + $_.issn = $s(8); //#5889 + $_.checksum = 0; //#5890 + $_.i = 0; //#5891 + $_.n = 0; //#5891 + for (;;) { //#5903 + $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5893 + if ($_.issnchar != -3) { //#5900 + $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5895 + if ($_.n < 7) { //#5898 + $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5897 + } //#5897 + $_.n = $_.n + 1; //#5899 + } //#5899 + $_.i = $_.i + 1; //#5901 + if ($_.i == $_.issntxt.length) { //#5902 + break; //#5902 + } //#5902 + } //#5902 + $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5904 + var _p = $f($_.checksum + 48); //#5905 + $k[$j++] = 'checksum'; //#5905 + $k[$j++] = _p; //#5905 + if (_p == 58) { //#5905 + $j--; //#5905 + $k[$j++] = 88; //#5905 + } //#5905 + var _q = $k[--$j]; //#5905 + var _r = $k[--$j]; //#5905 + $_[_r] = _q; //#5905 + if ($_.issntxt.length == 9) { //#5910 + if ($get($_.issntxt, 8) != $_.checksum) { //#5909 + $k[$j++] = 'bwipp.issnBadCheckDigit#5908'; //#5908 + $k[$j++] = "Incorrect ISSN check digit provided"; //#5908 + bwipp_raiseerror(); //#5908 + } //#5908 + } //#5908 + $_.pad = $s(14); //#5913 + $puti($_.pad, 0, "ISSN "); //#5914 + $puti($_.pad, 5, $_.issntxt); //#5915 + $put($_.pad, 13, $_.checksum); //#5916 + $_.issntxt = $_.pad; //#5917 + $_.barcode = $geti($_.issn, 0, 7); //#5920 + $_.barcode = $s(12); //#5923 + $puti($_.barcode, 0, "977"); //#5924 + $puti($_.barcode, 3, $_.issn); //#5925 + $puti($_.barcode, 10, $_.seqvar); //#5926 + if ($ne($_.addon, "")) { //#5935 + var _1D = $s((12 + $_.addon.length) + 1); //#5930 + $puti(_1D, 0, $_.barcode); //#5931 + $puti(_1D, 12, " "); //#5932 + $puti(_1D, 13, $_.addon); //#5933 + $_.barcode = _1D; //#5934 + } //#5934 + $put($_.options, "dontdraw", true); //#5938 + $put($_.options, "addongap", $_.addongap); //#5939 + $k[$j++] = 'args'; //#5940 + $k[$j++] = $_.barcode; //#5940 + $k[$j++] = $_.options; //#5940 + bwipp_ean13(); //#5940 + var _1L = $k[--$j]; //#5940 + $_[$k[--$j]] = _1L; //#5940 + if ($_.includetext) { //#5955 + if ($eq($_.issntextxoffset, null)) { //#5944 + $_.issntextxoffset = 10; //#5944 + } //#5944 + if ($eq($_.issntextyoffset, null)) { //#5945 + $_.issntextyoffset = ($_.height * 72) + 3; //#5945 + } //#5945 + var _1S = $get($_.args, "txt") !== undefined; //#5946 + if (_1S) { //#5953 + $_.txt = $get($_.args, "txt"); //#5947 + $_.newtxt = $a($_.txt.length + 1); //#5948 + $puti($_.newtxt, 0, $_.txt); //#5949 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5950 + $put($_.args, "txt", $_.newtxt); //#5951 + } else { //#5953 + $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5953 + } //#5953 + } //#5953 + $put($_.args, "opt", $_.options); //#5957 + $k[$j++] = $_.args; //#5960 + if (!$_.dontdraw) { //#5960 + bwipp_renlinear(); //#5960 + } //#5960 + $_ = Object.getPrototypeOf($_); //#5962 +} //bwipp_issn function bwipp_mands() { - $_ = Object.create($_); //#5857 - $_.dontdraw = false; //#5860 - $_.includetext = false; //#5861 - $k[$j++] = $_; //#5863 - bwipp_processoptions(); //#5863 - $_.options = $k[--$j]; //#5863 - $_.barcode = $k[--$j]; //#5864 - $_.barlen = $_.barcode.length; //#5866 - if (($_.barlen != 7) && ($_.barlen != 8)) { //#5871 - $k[$j++] = 'bwipp.MandSbadLength#5870'; //#5870 - $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#5870 - bwipp_raiseerror(); //#5870 - } //#5870 - if ($_.barlen == 7) { //#5875 - var _7 = $strcpy($s(8), "00000000"); //#5874 - $puti(_7, 1, $_.barcode); //#5874 - $_.barcode = _7; //#5874 - } //#5874 - $put($_.options, "dontdraw", true); //#5878 - $k[$j++] = 'args'; //#5879 - $k[$j++] = $_.barcode; //#5879 - $k[$j++] = $_.options; //#5879 - bwipp_ean8(); //#5879 - var _C = $k[--$j]; //#5879 - $_[$k[--$j]] = _C; //#5879 - var _F = $get($_.args, "bbs"); //#5882 - $put(_F, 10, $get(_F, 2)); //#5883 - $put(_F, 11, $get(_F, 2)); //#5884 - var _J = $get($_.args, "bhs"); //#5885 - $put(_J, 10, $get(_J, 2)); //#5886 - $put(_J, 11, $get(_J, 2)); //#5887 - $_.txt = $get($_.args, "txt"); //#5890 - if ($_.barlen == 7) { //#5898 - for (var _P = 0; _P <= 6; _P += 1) { //#5896 - var _Q = $_.txt; //#5893 - $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#5895 - } //#5895 - $puti($get($get($_.txt, 7), 0), 0, " "); //#5897 - } //#5897 - var _Y = $a(10); //#5901 - $puti(_Y, 0, $_.txt); //#5901 - $_.txt = _Y; //#5901 - var _b = $get($_.txt, 0); //#5902 - $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#5902 - var _g = $get($_.txt, 0); //#5903 - $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#5903 - $put($get($_.txt, 8), 0, "M"); //#5904 - $put($get($_.txt, 8), 1, -12); //#5904 - $put($get($_.txt, 9), 0, "S"); //#5905 - var _r = $get($_.txt, 9); //#5905 - $put(_r, 1, 69); //#5905 - $put($_.args, "txt", $_.txt); //#5907 - $put($_.args, "opt", $_.options); //#5908 - $k[$j++] = $_.args; //#5911 - if (!$_.dontdraw) { //#5911 - bwipp_renlinear(); //#5911 - } //#5911 - $_ = Object.getPrototypeOf($_); //#5913 -} - + $_ = Object.create($_); //#5991 + $_.dontdraw = false; //#5994 + $_.includetext = false; //#5995 + $k[$j++] = $_; //#5997 + bwipp_processoptions(); //#5997 + $_.options = $k[--$j]; //#5997 + $_.barcode = $k[--$j]; //#5998 + $_.barlen = $_.barcode.length; //#6000 + if (($_.barlen != 7) && ($_.barlen != 8)) { //#6005 + $k[$j++] = 'bwipp.MandSbadLength#6004'; //#6004 + $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#6004 + bwipp_raiseerror(); //#6004 + } //#6004 + if ($_.barlen == 7) { //#6009 + var _7 = $strcpy($s(8), "00000000"); //#6008 + $puti(_7, 1, $_.barcode); //#6008 + $_.barcode = _7; //#6008 + } //#6008 + $put($_.options, "dontdraw", true); //#6012 + $k[$j++] = 'args'; //#6013 + $k[$j++] = $_.barcode; //#6013 + $k[$j++] = $_.options; //#6013 + bwipp_ean8(); //#6013 + var _C = $k[--$j]; //#6013 + $_[$k[--$j]] = _C; //#6013 + var _F = $get($_.args, "bbs"); //#6016 + $put(_F, 10, $get(_F, 2)); //#6017 + $put(_F, 11, $get(_F, 2)); //#6018 + var _J = $get($_.args, "bhs"); //#6019 + $put(_J, 10, $get(_J, 2)); //#6020 + $put(_J, 11, $get(_J, 2)); //#6021 + $_.txt = $get($_.args, "txt"); //#6024 + if ($_.barlen == 7) { //#6032 + for (var _P = 0; _P <= 6; _P += 1) { //#6030 + var _Q = $_.txt; //#6027 + $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#6029 + } //#6029 + $puti($get($get($_.txt, 7), 0), 0, " "); //#6031 + } //#6031 + var _Y = $a(10); //#6035 + $puti(_Y, 0, $_.txt); //#6035 + $_.txt = _Y; //#6035 + var _b = $get($_.txt, 0); //#6036 + $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#6036 + var _g = $get($_.txt, 0); //#6037 + $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#6037 + $put($get($_.txt, 8), 0, "M"); //#6038 + $put($get($_.txt, 8), 1, -12); //#6038 + $put($get($_.txt, 9), 0, "S"); //#6039 + var _r = $get($_.txt, 9); //#6039 + $put(_r, 1, 69); //#6039 + $put($_.args, "txt", $_.txt); //#6041 + $put($_.args, "opt", $_.options); //#6042 + $k[$j++] = $_.args; //#6045 + if (!$_.dontdraw) { //#6045 + bwipp_renlinear(); //#6045 + } //#6045 + $_ = Object.getPrototypeOf($_); //#6047 +} //bwipp_mands function bwipp_code128() { - $_ = Object.create($_); //#5944 - $_.dontdraw = false; //#5947 - $_.includetext = false; //#5948 - $_.textfont = "OCR-B"; //#5949 - $_.textsize = 10; //#5950 - $_.textxoffset = 0; //#5951 - $_.textyoffset = -8; //#5952 - $_.height = 1; //#5953 - $_.encoding = "auto"; //#5954 - $_.raw = false; //#5955 - $_.parse = false; //#5956 - $_.parsefnc = false; //#5957 - $k[$j++] = $_; //#5959 - bwipp_processoptions(); //#5959 - $_.options = $k[--$j]; //#5959 - $_.barcode = $k[--$j]; //#5960 - bwipp_loadctx(bwipp_code128) //#5962 - if (!bwipp_code128.__5971__) { //#5971 - $_ = Object.create($_); //#5971 - $_.sta = -1; //#5966 - $_.stb = -2; //#5966 - $_.stc = -3; //#5966 - $_.swa = -4; //#5967 - $_.swb = -5; //#5967 - $_.swc = -6; //#5967 - $_.fn1 = -7; //#5968 - $_.fn2 = -8; //#5968 - $_.fn3 = -9; //#5968 - $_.fn4 = -10; //#5969 - $_.sft = -11; //#5969 - $_.stp = -12; //#5969 - $_.lka = -13; //#5970 - $_.lkc = -14; //#5970 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#5970 - bwipp_code128.__5971__ = 1; //#5970 - $_ = Object.getPrototypeOf($_); //#5970 - } //#5970 - var _6 = $_.fn1; //#5978 + $_ = Object.create($_); //#6078 + $_.dontdraw = false; //#6081 + $_.includetext = false; //#6082 + $_.textfont = "OCR-B"; //#6083 + $_.textsize = 10; //#6084 + $_.textxoffset = 0; //#6085 + $_.textyoffset = -8; //#6086 + $_.height = 1; //#6087 + $_.encoding = "auto"; //#6088 + $_.raw = false; //#6089 + $_.parse = false; //#6090 + $_.parsefnc = false; //#6091 + $k[$j++] = $_; //#6093 + bwipp_processoptions(); //#6093 + $_.options = $k[--$j]; //#6093 + $_.barcode = $k[--$j]; //#6094 + bwipp_loadctx(bwipp_code128) //#6096 + if (!bwipp_code128.__6105__) { //#6105 + $_ = Object.create($_); //#6105 + $_.sta = -1; //#6100 + $_.stb = -2; //#6100 + $_.stc = -3; //#6100 + $_.swa = -4; //#6101 + $_.swb = -5; //#6101 + $_.swc = -6; //#6101 + $_.fn1 = -7; //#6102 + $_.fn2 = -8; //#6102 + $_.fn3 = -9; //#6102 + $_.fn4 = -10; //#6103 + $_.sft = -11; //#6103 + $_.stp = -12; //#6103 + $_.lka = -13; //#6104 + $_.lkc = -14; //#6104 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6104 + bwipp_code128.__6105__ = 1; //#6104 + $_ = Object.getPrototypeOf($_); //#6104 + } //#6104 + var _6 = $_.fn1; //#6112 var _B = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -8511,1270 +8770,1267 @@ function bwipp_code128() { ["FNC3", $_.fn3], ["LNKA", $_.lka], ["LNKC", $_.lkc] - ]); //#5983 - $_.fncvals = _B; //#5984 - $k[$j++] = 'msg'; //#5985 - $k[$j++] = $_.barcode; //#5985 - $k[$j++] = $_.fncvals; //#5985 - bwipp_parseinput(); //#5985 - var _E = $k[--$j]; //#5985 - $_[$k[--$j]] = _E; //#5985 - $_.msglen = $_.msg.length; //#5986 - if (!bwipp_code128.__6044__) { //#6044 - $_ = Object.create($_); //#6044 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6028 - $_.charvals = $a([new Map, new Map, new Map]); //#6031 - for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6040 - $_.i = _2X; //#6033 - $_.encs = $get($_.charmaps, $_.i); //#6034 - for (var _2b = 0; _2b <= 2; _2b += 1) { //#6039 - $_.j = _2b; //#6036 - var _2e = $get($_.encs, $_.j); //#6037 - $k[$j++] = _2e; //#6037 - if ($eq($type(_2e), 'stringtype')) { //#6037 - var _2h = $get($k[--$j], 0); //#6037 - $k[$j++] = _2h; //#6037 - } //#6037 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6038 - } //#6038 - } //#6038 - $_.seta = $get($_.charvals, 0); //#6041 - $_.setb = $get($_.charvals, 1); //#6042 - $_.setc = $get($_.charvals, 2); //#6043 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6043 - bwipp_code128.__6044__ = 1; //#6043 - $_ = Object.getPrototypeOf($_); //#6043 - } //#6043 - $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6047 - $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6047 - $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6048 - $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6048 - $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6049 - $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6049 - if ($_.raw) { //#6051 - $_.encoding = "raw"; //#6051 - } //#6051 - if ($eq($_.encoding, "raw")) { //#6065 - $_.cws = $a($_.barcode.length); //#6054 - $_.i = 0; //#6055 - $_.j = 0; //#6055 - for (;;) { //#6062 - if ($_.i == $_.barcode.length) { //#6057 - break; //#6057 - } //#6057 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6058 - $put($_.cws, $_.j, $_.cw); //#6059 - $_.i = $_.i + 4; //#6060 - $_.j = $_.j + 1; //#6061 - } //#6061 - $_.cws = $geti($_.cws, 0, $_.j); //#6063 - $_.text = ""; //#6064 - } //#6064 - if ($eq($_.encoding, "auto")) { //#6290 - $_.text = $s($_.msglen); //#6069 - for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6073 - $_.i = _3k; //#6071 - var _3p = $get($_.msg, $_.i); //#6072 - $k[$j++] = $_.text; //#6072 - $k[$j++] = $_.i; //#6072 - $k[$j++] = _3p; //#6072 - if (_3p < 0) { //#6072 - $j--; //#6072 - $k[$j++] = 32; //#6072 - } //#6072 - var _3q = $k[--$j]; //#6072 - var _3r = $k[--$j]; //#6072 - $put($k[--$j], _3r, _3q); //#6072 - } //#6072 - $k[$j++] = Infinity; //#6076 - for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6076 - $k[$j++] = 0; //#6076 - } //#6076 - $k[$j++] = 0; //#6076 - $_.numSA = $a(); //#6076 - $k[$j++] = Infinity; //#6077 - for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6077 - $k[$j++] = 0; //#6077 - } //#6077 - $k[$j++] = 0; //#6077 - $_.numEA = $a(); //#6077 - for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6087 - $_.i = _42; //#6079 - if ($get($_.msg, $_.i) >= 0) { //#6086 - if ($get($_.msg, $_.i) >= 128) { //#6084 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6082 - } else { //#6084 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6084 - } //#6084 - } //#6084 - } //#6084 - $_.ea = false; //#6090 - $_.msgtmp = $a([]); //#6090 - for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6105 - $_.i = _4M; //#6092 - $_.c = $get($_.msg, $_.i); //#6093 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6103 - if ($_.ea) { //#6095 - $k[$j++] = $_.numSA; //#6095 - } else { //#6095 - $k[$j++] = $_.numEA; //#6095 - } //#6095 - var _4Y = $get($k[--$j], $_.i); //#6095 - var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6096 - if (_4Y < _4b) { //#6101 - $k[$j++] = Infinity; //#6098 - $aload($_.msgtmp); //#6098 - $k[$j++] = $_.fn4; //#6098 - $_.msgtmp = $a(); //#6098 - } else { //#6101 - $k[$j++] = Infinity; //#6100 - $aload($_.msgtmp); //#6100 - $k[$j++] = $_.fn4; //#6100 - $k[$j++] = $_.fn4; //#6100 - $_.msgtmp = $a(); //#6100 - $_.ea = !$_.ea; //#6101 - } //#6101 - } //#6101 - $k[$j++] = Infinity; //#6104 - $aload($_.msgtmp); //#6104 - if ($_.c >= 0) { //#6104 - $k[$j++] = $_.c & 127; //#6104 - } else { //#6104 - $k[$j++] = $_.c; //#6104 - } //#6104 - $_.msgtmp = $a(); //#6104 - } //#6104 - $_.msg = $_.msgtmp; //#6106 - $_.msglen = $_.msg.length; //#6107 + ]); //#6117 + $_.fncvals = _B; //#6118 + $k[$j++] = 'msg'; //#6119 + $k[$j++] = $_.barcode; //#6119 + $k[$j++] = $_.fncvals; //#6119 + bwipp_parseinput(); //#6119 + var _E = $k[--$j]; //#6119 + $_[$k[--$j]] = _E; //#6119 + $_.msglen = $_.msg.length; //#6120 + if (!bwipp_code128.__6178__) { //#6178 + $_ = Object.create($_); //#6178 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6162 + $_.charvals = $a([new Map, new Map, new Map]); //#6165 + for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6174 + $_.i = _2X; //#6167 + $_.encs = $get($_.charmaps, $_.i); //#6168 + for (var _2b = 0; _2b <= 2; _2b += 1) { //#6173 + $_.j = _2b; //#6170 + var _2e = $get($_.encs, $_.j); //#6171 + $k[$j++] = _2e; //#6171 + if ($eq($type(_2e), 'stringtype')) { //#6171 + var _2h = $get($k[--$j], 0); //#6171 + $k[$j++] = _2h; //#6171 + } //#6171 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6172 + } //#6172 + } //#6172 + $_.seta = $get($_.charvals, 0); //#6175 + $_.setb = $get($_.charvals, 1); //#6176 + $_.setc = $get($_.charvals, 2); //#6177 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6177 + bwipp_code128.__6178__ = 1; //#6177 + $_ = Object.getPrototypeOf($_); //#6177 + } //#6177 + $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6181 + $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6181 + $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6182 + $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6182 + $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6183 + $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6183 + if ($_.raw) { //#6185 + $_.encoding = "raw"; //#6185 + } //#6185 + if ($eq($_.encoding, "raw")) { //#6199 + $_.cws = $a($_.barcode.length); //#6188 + $_.i = 0; //#6189 + $_.j = 0; //#6189 + for (;;) { //#6196 + if ($_.i == $_.barcode.length) { //#6191 + break; //#6191 + } //#6191 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6192 + $put($_.cws, $_.j, $_.cw); //#6193 + $_.i = $_.i + 4; //#6194 + $_.j = $_.j + 1; //#6195 + } //#6195 + $_.cws = $geti($_.cws, 0, $_.j); //#6197 + $_.text = ""; //#6198 + } //#6198 + if ($eq($_.encoding, "auto")) { //#6424 + $_.text = $s($_.msglen); //#6203 + for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6207 + $_.i = _3k; //#6205 + var _3p = $get($_.msg, $_.i); //#6206 + $k[$j++] = $_.text; //#6206 + $k[$j++] = $_.i; //#6206 + $k[$j++] = _3p; //#6206 + if (_3p < 0) { //#6206 + $j--; //#6206 + $k[$j++] = 32; //#6206 + } //#6206 + var _3q = $k[--$j]; //#6206 + var _3r = $k[--$j]; //#6206 + $put($k[--$j], _3r, _3q); //#6206 + } //#6206 + $k[$j++] = Infinity; //#6210 + for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6210 + $k[$j++] = 0; //#6210 + } //#6210 + $k[$j++] = 0; //#6210 + $_.numSA = $a(); //#6210 + $k[$j++] = Infinity; //#6211 + for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6211 + $k[$j++] = 0; //#6211 + } //#6211 + $k[$j++] = 0; //#6211 + $_.numEA = $a(); //#6211 + for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6221 + $_.i = _42; //#6213 + if ($get($_.msg, $_.i) >= 0) { //#6220 + if ($get($_.msg, $_.i) >= 128) { //#6218 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6216 + } else { //#6218 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6218 + } //#6218 + } //#6218 + } //#6218 + $_.ea = false; //#6224 + $_.msgtmp = $a([]); //#6224 + for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6239 + $_.i = _4M; //#6226 + $_.c = $get($_.msg, $_.i); //#6227 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6237 + if ($_.ea) { //#6229 + $k[$j++] = $_.numSA; //#6229 + } else { //#6229 + $k[$j++] = $_.numEA; //#6229 + } //#6229 + var _4Y = $get($k[--$j], $_.i); //#6229 + var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6230 + if (_4Y < _4b) { //#6235 + $k[$j++] = Infinity; //#6232 + $aload($_.msgtmp); //#6232 + $k[$j++] = $_.fn4; //#6232 + $_.msgtmp = $a(); //#6232 + } else { //#6235 + $k[$j++] = Infinity; //#6234 + $aload($_.msgtmp); //#6234 + $k[$j++] = $_.fn4; //#6234 + $k[$j++] = $_.fn4; //#6234 + $_.msgtmp = $a(); //#6234 + $_.ea = !$_.ea; //#6235 + } //#6235 + } //#6235 + $k[$j++] = Infinity; //#6238 + $aload($_.msgtmp); //#6238 + if ($_.c >= 0) { //#6238 + $k[$j++] = $_.c & 127; //#6238 + } else { //#6238 + $k[$j++] = $_.c; //#6238 + } //#6238 + $_.msgtmp = $a(); //#6238 + } //#6238 + $_.msg = $_.msgtmp; //#6240 + $_.msglen = $_.msg.length; //#6241 $_.numsscr = function() { - $_.n = 0; //#6111 - $_.s = 0; //#6111 - $_.p = $k[--$j]; //#6112 - for (;;) { //#6125 - if ($_.p >= $_.msglen) { //#6113 - break; //#6113 - } //#6113 - var _4w = $get($_.msg, $_.p); //#6114 - var _4y = $get($_.setc, _4w) !== undefined; //#6115 - $k[$j++] = _4w; //#6115 - if (!_4y) { //#6115 - $j--; //#6115 - break; //#6115 - } //#6115 - var _4z = $k[--$j]; //#6116 - $k[$j++] = _4z; //#6121 - if (_4z <= -1) { //#6120 - var _51 = $k[--$j]; //#6118 - if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6118 - $_.s = $_.s + 1; //#6118 - } else { //#6118 - break; //#6118 - } //#6118 - } else { //#6120 - $j--; //#6120 - } //#6120 - $_.n = $_.n + 1; //#6122 - $_.s = $_.s + 1; //#6123 - $_.p = $f($_.p + 1); //#6124 - } //#6124 - $k[$j++] = $_.n; //#6126 - $k[$j++] = $_.s; //#6126 - }; //#6126 + $_.n = 0; //#6245 + $_.s = 0; //#6245 + $_.p = $k[--$j]; //#6246 + for (;;) { //#6259 + if ($_.p >= $_.msglen) { //#6247 + break; //#6247 + } //#6247 + var _4w = $get($_.msg, $_.p); //#6248 + var _4y = $get($_.setc, _4w) !== undefined; //#6249 + $k[$j++] = _4w; //#6249 + if (!_4y) { //#6249 + $j--; //#6249 + break; //#6249 + } //#6249 + var _4z = $k[--$j]; //#6250 + $k[$j++] = _4z; //#6255 + if (_4z <= -1) { //#6254 + var _51 = $k[--$j]; //#6252 + if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6252 + $_.s = $_.s + 1; //#6252 + } else { //#6252 + break; //#6252 + } //#6252 + } else { //#6254 + $j--; //#6254 + } //#6254 + $_.n = $_.n + 1; //#6256 + $_.s = $_.s + 1; //#6257 + $_.p = $f($_.p + 1); //#6258 + } //#6258 + $k[$j++] = $_.n; //#6260 + $k[$j++] = $_.s; //#6260 + }; //#6260 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6131 - $_.j = $_.j + 1; //#6132 - }; //#6132 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6265 + $_.j = $_.j + 1; //#6266 + }; //#6266 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6135 - $_.j = $_.j + 1; //#6136 - }; //#6136 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6269 + $_.j = $_.j + 1; //#6270 + }; //#6270 $_.encc = function() { - var _5L = $k[--$j]; //#6139 - $k[$j++] = _5L; //#6143 - if ($ne($type(_5L), 'arraytype')) { //#6142 - var _5P = $get($_.setc, $k[--$j]); //#6140 - $k[$j++] = _5P; //#6140 - } else { //#6142 - $aload($k[--$j]); //#6142 - var _5R = $k[--$j]; //#6142 - var _5S = $k[--$j]; //#6142 - $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6142 - } //#6142 - $put($_.cws, $_.j, $k[--$j]); //#6144 - $_.j = $_.j + 1; //#6145 - }; //#6145 + var _5L = $k[--$j]; //#6273 + $k[$j++] = _5L; //#6277 + if ($ne($type(_5L), 'arraytype')) { //#6276 + var _5P = $get($_.setc, $k[--$j]); //#6274 + $k[$j++] = _5P; //#6274 + } else { //#6276 + $aload($k[--$j]); //#6276 + var _5R = $k[--$j]; //#6276 + var _5S = $k[--$j]; //#6276 + $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6276 + } //#6276 + $put($_.cws, $_.j, $k[--$j]); //#6278 + $_.j = $_.j + 1; //#6279 + }; //#6279 $_.anotb = function() { - var _5X = $k[--$j]; //#6149 - var _5Z = $get($_.seta, _5X) !== undefined; //#6149 - var _5b = $get($_.setb, _5X) !== undefined; //#6149 - $k[$j++] = _5Z && (!_5b); //#6149 - }; //#6149 + var _5X = $k[--$j]; //#6283 + var _5Z = $get($_.seta, _5X) !== undefined; //#6283 + var _5b = $get($_.setb, _5X) !== undefined; //#6283 + $k[$j++] = _5Z && (!_5b); //#6283 + }; //#6283 $_.bnota = function() { - var _5c = $k[--$j]; //#6150 - var _5e = $get($_.setb, _5c) !== undefined; //#6150 - var _5g = $get($_.seta, _5c) !== undefined; //#6150 - $k[$j++] = _5e && (!_5g); //#6150 - }; //#6150 - $k[$j++] = Infinity; //#6153 - for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6153 - $k[$j++] = 0; //#6153 - } //#6153 - $k[$j++] = 9999; //#6153 - $_.nextanotb = $a(); //#6153 - $k[$j++] = Infinity; //#6154 - for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6154 - $k[$j++] = 0; //#6154 - } //#6154 - $k[$j++] = 9999; //#6154 - $_.nextbnota = $a(); //#6154 - for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6167 - $_.i = _5q; //#6156 - $k[$j++] = $get($_.msg, $_.i); //#6157 - $_.anotb(); //#6157 - if ($k[--$j]) { //#6160 - $put($_.nextanotb, $_.i, 0); //#6158 - } else { //#6160 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6160 - } //#6160 - $k[$j++] = $get($_.msg, $_.i); //#6162 - $_.bnota(); //#6162 - if ($k[--$j]) { //#6165 - $put($_.nextbnota, $_.i, 0); //#6163 - } else { //#6165 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6165 - } //#6165 - } //#6165 + var _5c = $k[--$j]; //#6284 + var _5e = $get($_.setb, _5c) !== undefined; //#6284 + var _5g = $get($_.seta, _5c) !== undefined; //#6284 + $k[$j++] = _5e && (!_5g); //#6284 + }; //#6284 + $k[$j++] = Infinity; //#6287 + for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6287 + $k[$j++] = 0; //#6287 + } //#6287 + $k[$j++] = 9999; //#6287 + $_.nextanotb = $a(); //#6287 + $k[$j++] = Infinity; //#6288 + for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6288 + $k[$j++] = 0; //#6288 + } //#6288 + $k[$j++] = 9999; //#6288 + $_.nextbnota = $a(); //#6288 + for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6301 + $_.i = _5q; //#6290 + $k[$j++] = $get($_.msg, $_.i); //#6291 + $_.anotb(); //#6291 + if ($k[--$j]) { //#6294 + $put($_.nextanotb, $_.i, 0); //#6292 + } else { //#6294 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6294 + } //#6294 + $k[$j++] = $get($_.msg, $_.i); //#6296 + $_.bnota(); //#6296 + if ($k[--$j]) { //#6299 + $put($_.nextbnota, $_.i, 0); //#6297 + } else { //#6299 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6299 + } //#6299 + } //#6299 $_.abeforeb = function() { - var _6D = $k[--$j]; //#6170 - $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6170 - }; //#6170 + var _6D = $k[--$j]; //#6304 + $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6304 + }; //#6304 $_.bbeforea = function() { - var _6I = $k[--$j]; //#6171 - $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6171 - }; //#6171 - $_.cws = $a(($_.barcode.length * 2) + 3); //#6173 - $_.j = 0; //#6176 - if ($_.msglen > 0) { //#6177 - $k[$j++] = 0; //#6177 - $_.numsscr(); //#6177 - } else { //#6177 - $k[$j++] = -1; //#6177 - $k[$j++] = -1; //#6177 - } //#6177 - $_.nums = $k[--$j]; //#6177 - $_.nchars = $k[--$j]; //#6177 - for (;;) { //#6202 - if ($_.msglen == 0) { //#6183 - $k[$j++] = $_.stb; //#6180 - $_.enca(); //#6180 - $_.cset = "setb"; //#6181 - break; //#6182 - } //#6182 - if (($_.msglen == 2) && ($_.nums == 2)) { //#6188 - $k[$j++] = $_.stc; //#6185 - $_.enca(); //#6185 - $_.cset = "setc"; //#6186 - break; //#6187 - } //#6187 - if ($_.nums >= 4) { //#6193 - $k[$j++] = $_.stc; //#6190 - $_.enca(); //#6190 - $_.cset = "setc"; //#6191 - break; //#6192 - } //#6192 - $k[$j++] = 0; //#6194 - $_.abeforeb(); //#6194 - if ($k[--$j]) { //#6198 - $k[$j++] = $_.sta; //#6195 - $_.enca(); //#6195 - $_.cset = "seta"; //#6196 - break; //#6197 - } //#6197 - $k[$j++] = $_.stb; //#6199 - $_.enca(); //#6199 - $_.cset = "setb"; //#6200 - break; //#6201 - } //#6201 - $_.i = 0; //#6205 - for (;;) { //#6288 - if ($_.i == $_.msglen) { //#6206 - break; //#6206 - } //#6206 - $k[$j++] = $_.i; //#6208 - $_.numsscr(); //#6208 - $_.nums = $k[--$j]; //#6208 - $_.nchars = $k[--$j]; //#6208 - for (;;) { //#6286 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6225 - if (($_.nums % 2) == 0) { //#6223 - $k[$j++] = $_.swc; //#6215 - if ($eq($_.cset, "seta")) { //#6215 - $_.enca(); //#6215 - } else { //#6215 - $_.encb(); //#6215 - } //#6215 - $_.cset = "setc"; //#6216 - break; //#6217 - } else { //#6223 - $k[$j++] = $get($_.msg, $_.i); //#6219 - if ($eq($_.cset, "seta")) { //#6219 - $_.enca(); //#6219 - } else { //#6219 - $_.encb(); //#6219 - } //#6219 - $_.i = $_.i + 1; //#6220 - $k[$j++] = $_.swc; //#6221 - if ($eq($_.cset, "seta")) { //#6221 - $_.enca(); //#6221 - } else { //#6221 - $_.encb(); //#6221 - } //#6221 - $_.cset = "setc"; //#6222 - break; //#6223 - } //#6223 - } //#6223 - $k[$j++] = $eq($_.cset, "setb"); //#6226 - $k[$j++] = $get($_.msg, $_.i); //#6226 - $_.anotb(); //#6226 - var _72 = $k[--$j]; //#6226 - var _73 = $k[--$j]; //#6226 - if ((_73 && _72)) { //#6238 - if ($_.i < ($_.msglen - 1)) { //#6234 - $k[$j++] = $_.i + 1; //#6228 - $_.bbeforea(); //#6228 - if ($k[--$j]) { //#6233 - $k[$j++] = $_.sft; //#6229 - $_.encb(); //#6229 - $k[$j++] = $get($_.msg, $_.i); //#6230 - $_.enca(); //#6230 - $_.i = $_.i + 1; //#6231 - break; //#6232 - } //#6232 - } //#6232 - $k[$j++] = $_.swa; //#6235 - $_.encb(); //#6235 - $_.cset = "seta"; //#6236 - break; //#6237 - } //#6237 - $k[$j++] = $eq($_.cset, "seta"); //#6239 - $k[$j++] = $get($_.msg, $_.i); //#6239 - $_.bnota(); //#6239 - var _7I = $k[--$j]; //#6239 - var _7J = $k[--$j]; //#6239 - if ((_7J && _7I)) { //#6251 - if ($_.i < ($_.msglen - 1)) { //#6247 - $k[$j++] = $_.i + 1; //#6241 - $_.abeforeb(); //#6241 - if ($k[--$j]) { //#6246 - $k[$j++] = $_.sft; //#6242 - $_.enca(); //#6242 - $k[$j++] = $get($_.msg, $_.i); //#6243 - $_.encb(); //#6243 - $_.i = $_.i + 1; //#6244 - break; //#6245 - } //#6245 - } //#6245 - $k[$j++] = $_.swb; //#6248 - $_.enca(); //#6248 - $_.cset = "setb"; //#6249 - break; //#6250 - } //#6250 - if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6261 - $k[$j++] = $_.i; //#6253 - $_.abeforeb(); //#6253 - if ($k[--$j]) { //#6257 - $k[$j++] = $_.swa; //#6254 - $_.encc(); //#6254 - $_.cset = "seta"; //#6255 - break; //#6256 - } //#6256 - $k[$j++] = $_.swb; //#6258 - $_.encc(); //#6258 - $_.cset = "setb"; //#6259 - break; //#6260 - } //#6260 - if ($eq($_.cset, "seta")) { //#6268 - $k[$j++] = $get($_.msg, $_.i); //#6265 - $_.enca(); //#6265 - $_.i = $_.i + 1; //#6266 - break; //#6267 - } //#6267 - if ($eq($_.cset, "setb")) { //#6273 - $k[$j++] = $get($_.msg, $_.i); //#6270 - $_.encb(); //#6270 - $_.i = $_.i + 1; //#6271 - break; //#6272 - } //#6272 - if ($eq($_.cset, "setc")) { //#6283 - if ($get($_.msg, $_.i) <= -1) { //#6280 - $k[$j++] = $get($_.msg, $_.i); //#6276 - $_.encc(); //#6276 - $_.i = $_.i + 1; //#6277 - } else { //#6280 - $k[$j++] = $geti($_.msg, $_.i, 2); //#6279 - $_.encc(); //#6279 - $_.i = $_.i + 2; //#6280 - } //#6280 - break; //#6282 - } //#6282 - break; //#6285 - } //#6285 - } //#6285 - $_.cws = $geti($_.cws, 0, $_.j); //#6289 - } //#6289 - var _87 = $a($_.j + 2); //#6293 - $puti(_87, 0, $_.cws); //#6293 - $_.cws = _87; //#6293 - $_.csum = $get($_.cws, 0); //#6294 - for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6298 - $_.i = _8D; //#6296 - $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6297 - } //#6297 - $_.csum = $_.csum % 103; //#6299 - $put($_.cws, $_.j, $_.csum); //#6300 - $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6301 - var _8T = $get($_.options, 'debugcws') !== undefined; //#6303 - if (_8T) { //#6303 - $k[$j++] = 'bwipp.debugcws#6303'; //#6303 - $k[$j++] = $_.cws; //#6303 - bwipp_raiseerror(); //#6303 - } //#6303 - if (!bwipp_code128.__6325__) { //#6325 - $_ = Object.create($_); //#6325 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6324 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6324 - bwipp_code128.__6325__ = 1; //#6324 - $_ = Object.getPrototypeOf($_); //#6324 - } //#6324 - $_.sbs = $s(($_.cws.length * 6) + 1); //#6328 - for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6332 - $_.i = _8b; //#6330 - $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6331 - } //#6331 - $k[$j++] = Infinity; //#6342 - $k[$j++] = Infinity; //#6337 - var _8j = $_.sbs; //#6337 - for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6337 - $k[$j++] = $get(_8j, _8k) - 48; //#6337 - } //#6337 - var _8n = $a(); //#6337 - $k[$j++] = Infinity; //#6338 - for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6338 - $k[$j++] = $_.height; //#6338 - } //#6338 - var _8s = $a(); //#6338 - $k[$j++] = Infinity; //#6339 - for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6339 - $k[$j++] = 0; //#6339 - } //#6339 - var _8w = $a(); //#6339 - $k[$j++] = 'ren'; //#6342 - $k[$j++] = bwipp_renlinear; //#6342 - $k[$j++] = 'sbs'; //#6342 - $k[$j++] = _8n; //#6342 - $k[$j++] = 'bhs'; //#6342 - $k[$j++] = _8s; //#6342 - $k[$j++] = 'bbs'; //#6342 - $k[$j++] = _8w; //#6342 - $k[$j++] = 'txt'; //#6342 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6342 - $k[$j++] = 'textxalign'; //#6342 - $k[$j++] = "center"; //#6342 - $k[$j++] = 'opt'; //#6342 - $k[$j++] = $_.options; //#6342 - var _95 = $d(); //#6342 - $k[$j++] = _95; //#6345 - if (!$_.dontdraw) { //#6345 - bwipp_renlinear(); //#6345 - } //#6345 - $_ = Object.getPrototypeOf($_); //#6347 - $_ = Object.getPrototypeOf($_); //#6349 -} - + var _6I = $k[--$j]; //#6305 + $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6305 + }; //#6305 + $_.cws = $a(($_.barcode.length * 2) + 3); //#6307 + $_.j = 0; //#6310 + if ($_.msglen > 0) { //#6311 + $k[$j++] = 0; //#6311 + $_.numsscr(); //#6311 + } else { //#6311 + $k[$j++] = -1; //#6311 + $k[$j++] = -1; //#6311 + } //#6311 + $_.nums = $k[--$j]; //#6311 + $_.nchars = $k[--$j]; //#6311 + for (;;) { //#6336 + if ($_.msglen == 0) { //#6317 + $k[$j++] = $_.stb; //#6314 + $_.enca(); //#6314 + $_.cset = "setb"; //#6315 + break; //#6316 + } //#6316 + if (($_.msglen == 2) && ($_.nums == 2)) { //#6322 + $k[$j++] = $_.stc; //#6319 + $_.enca(); //#6319 + $_.cset = "setc"; //#6320 + break; //#6321 + } //#6321 + if ($_.nums >= 4) { //#6327 + $k[$j++] = $_.stc; //#6324 + $_.enca(); //#6324 + $_.cset = "setc"; //#6325 + break; //#6326 + } //#6326 + $k[$j++] = 0; //#6328 + $_.abeforeb(); //#6328 + if ($k[--$j]) { //#6332 + $k[$j++] = $_.sta; //#6329 + $_.enca(); //#6329 + $_.cset = "seta"; //#6330 + break; //#6331 + } //#6331 + $k[$j++] = $_.stb; //#6333 + $_.enca(); //#6333 + $_.cset = "setb"; //#6334 + break; //#6335 + } //#6335 + $_.i = 0; //#6339 + for (;;) { //#6422 + if ($_.i == $_.msglen) { //#6340 + break; //#6340 + } //#6340 + $k[$j++] = $_.i; //#6342 + $_.numsscr(); //#6342 + $_.nums = $k[--$j]; //#6342 + $_.nchars = $k[--$j]; //#6342 + for (;;) { //#6420 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6359 + if (($_.nums % 2) == 0) { //#6357 + $k[$j++] = $_.swc; //#6349 + if ($eq($_.cset, "seta")) { //#6349 + $_.enca(); //#6349 + } else { //#6349 + $_.encb(); //#6349 + } //#6349 + $_.cset = "setc"; //#6350 + break; //#6351 + } else { //#6357 + $k[$j++] = $get($_.msg, $_.i); //#6353 + if ($eq($_.cset, "seta")) { //#6353 + $_.enca(); //#6353 + } else { //#6353 + $_.encb(); //#6353 + } //#6353 + $_.i = $_.i + 1; //#6354 + $k[$j++] = $_.swc; //#6355 + if ($eq($_.cset, "seta")) { //#6355 + $_.enca(); //#6355 + } else { //#6355 + $_.encb(); //#6355 + } //#6355 + $_.cset = "setc"; //#6356 + break; //#6357 + } //#6357 + } //#6357 + $k[$j++] = $eq($_.cset, "setb"); //#6360 + $k[$j++] = $get($_.msg, $_.i); //#6360 + $_.anotb(); //#6360 + var _72 = $k[--$j]; //#6360 + var _73 = $k[--$j]; //#6360 + if ((_73 && _72)) { //#6372 + if ($_.i < ($_.msglen - 1)) { //#6368 + $k[$j++] = $_.i + 1; //#6362 + $_.bbeforea(); //#6362 + if ($k[--$j]) { //#6367 + $k[$j++] = $_.sft; //#6363 + $_.encb(); //#6363 + $k[$j++] = $get($_.msg, $_.i); //#6364 + $_.enca(); //#6364 + $_.i = $_.i + 1; //#6365 + break; //#6366 + } //#6366 + } //#6366 + $k[$j++] = $_.swa; //#6369 + $_.encb(); //#6369 + $_.cset = "seta"; //#6370 + break; //#6371 + } //#6371 + $k[$j++] = $eq($_.cset, "seta"); //#6373 + $k[$j++] = $get($_.msg, $_.i); //#6373 + $_.bnota(); //#6373 + var _7I = $k[--$j]; //#6373 + var _7J = $k[--$j]; //#6373 + if ((_7J && _7I)) { //#6385 + if ($_.i < ($_.msglen - 1)) { //#6381 + $k[$j++] = $_.i + 1; //#6375 + $_.abeforeb(); //#6375 + if ($k[--$j]) { //#6380 + $k[$j++] = $_.sft; //#6376 + $_.enca(); //#6376 + $k[$j++] = $get($_.msg, $_.i); //#6377 + $_.encb(); //#6377 + $_.i = $_.i + 1; //#6378 + break; //#6379 + } //#6379 + } //#6379 + $k[$j++] = $_.swb; //#6382 + $_.enca(); //#6382 + $_.cset = "setb"; //#6383 + break; //#6384 + } //#6384 + if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6395 + $k[$j++] = $_.i; //#6387 + $_.abeforeb(); //#6387 + if ($k[--$j]) { //#6391 + $k[$j++] = $_.swa; //#6388 + $_.encc(); //#6388 + $_.cset = "seta"; //#6389 + break; //#6390 + } //#6390 + $k[$j++] = $_.swb; //#6392 + $_.encc(); //#6392 + $_.cset = "setb"; //#6393 + break; //#6394 + } //#6394 + if ($eq($_.cset, "seta")) { //#6402 + $k[$j++] = $get($_.msg, $_.i); //#6399 + $_.enca(); //#6399 + $_.i = $_.i + 1; //#6400 + break; //#6401 + } //#6401 + if ($eq($_.cset, "setb")) { //#6407 + $k[$j++] = $get($_.msg, $_.i); //#6404 + $_.encb(); //#6404 + $_.i = $_.i + 1; //#6405 + break; //#6406 + } //#6406 + if ($eq($_.cset, "setc")) { //#6417 + if ($get($_.msg, $_.i) <= -1) { //#6414 + $k[$j++] = $get($_.msg, $_.i); //#6410 + $_.encc(); //#6410 + $_.i = $_.i + 1; //#6411 + } else { //#6414 + $k[$j++] = $geti($_.msg, $_.i, 2); //#6413 + $_.encc(); //#6413 + $_.i = $_.i + 2; //#6414 + } //#6414 + break; //#6416 + } //#6416 + break; //#6419 + } //#6419 + } //#6419 + $_.cws = $geti($_.cws, 0, $_.j); //#6423 + } //#6423 + var _87 = $a($_.j + 2); //#6427 + $puti(_87, 0, $_.cws); //#6427 + $_.cws = _87; //#6427 + $_.csum = $get($_.cws, 0); //#6428 + for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6432 + $_.i = _8D; //#6430 + $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6431 + } //#6431 + $_.csum = $_.csum % 103; //#6433 + $put($_.cws, $_.j, $_.csum); //#6434 + $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6435 + var _8T = $get($_.options, 'debugcws') !== undefined; //#6437 + if (_8T) { //#6437 + $k[$j++] = 'bwipp.debugcws#6437'; //#6437 + $k[$j++] = $_.cws; //#6437 + bwipp_raiseerror(); //#6437 + } //#6437 + if (!bwipp_code128.__6459__) { //#6459 + $_ = Object.create($_); //#6459 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6458 + bwipp_code128.__6459__ = 1; //#6458 + $_ = Object.getPrototypeOf($_); //#6458 + } //#6458 + $_.sbs = $s(($_.cws.length * 6) + 1); //#6462 + for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6466 + $_.i = _8b; //#6464 + $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6465 + } //#6465 + $k[$j++] = Infinity; //#6469 + $k[$j++] = Infinity; //#6471 + var _8j = $_.sbs; //#6471 + for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6471 + $k[$j++] = $get(_8j, _8k) - 48; //#6471 + } //#6471 + var _8n = $a(); //#6471 + $k[$j++] = Infinity; //#6472 + for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6472 + $k[$j++] = $_.height; //#6472 + } //#6472 + var _8s = $a(); //#6472 + $k[$j++] = Infinity; //#6473 + for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6473 + $k[$j++] = 0; //#6473 + } //#6473 + var _8w = $a(); //#6473 + $k[$j++] = 'ren'; //#6476 + $k[$j++] = bwipp_renlinear; //#6476 + $k[$j++] = 'sbs'; //#6476 + $k[$j++] = _8n; //#6476 + $k[$j++] = 'bhs'; //#6476 + $k[$j++] = _8s; //#6476 + $k[$j++] = 'bbs'; //#6476 + $k[$j++] = _8w; //#6476 + $k[$j++] = 'txt'; //#6476 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6476 + $k[$j++] = 'textxalign'; //#6476 + $k[$j++] = "center"; //#6476 + $k[$j++] = 'opt'; //#6476 + $k[$j++] = $_.options; //#6476 + var _95 = $d(); //#6476 + $k[$j++] = _95; //#6479 + if (!$_.dontdraw) { //#6479 + bwipp_renlinear(); //#6479 + } //#6479 + $_ = Object.getPrototypeOf($_); //#6481 + $_ = Object.getPrototypeOf($_); //#6483 +} //bwipp_code128 function bwipp_gs1_128() { - $_ = Object.create($_); //#6380 - $_.dontdraw = false; //#6383 - $_.includetext = false; //#6384 - $_.textfont = "OCR-B"; //#6385 - $_.textsize = 10; //#6386 - $_.textxoffset = 0; //#6387 - $_.textyoffset = -8; //#6388 - $_.height = 0.5; //#6389 - $_.linkagea = false; //#6390 - $_.linkagec = false; //#6391 - $_.parse = false; //#6392 - $_.dontlint = false; //#6393 - $_.lintreqs = false; //#6394 - $k[$j++] = $_; //#6396 - bwipp_processoptions(); //#6396 - $_.options = $k[--$j]; //#6396 - $_.barcode = $k[--$j]; //#6397 - if ($_.linkagea && $_.linkagec) { //#6401 - $k[$j++] = 'bwipp.gs1128badLinkage#6400'; //#6400 - $k[$j++] = "linkagea and linkagec cannot be used together"; //#6400 - bwipp_raiseerror(); //#6400 - } //#6400 - $_.text = $_.barcode; //#6403 - $k[$j++] = $_.barcode; //#6405 - $k[$j++] = 'ai'; //#6405 - bwipp_gs1process(); //#6405 - $_.fncs = $k[--$j]; //#6406 - $_.vals = $k[--$j]; //#6407 - $_.ais = $k[--$j]; //#6408 - $_.fnc1 = -1; //#6411 - $_.c128 = $a([$_.fnc1]); //#6412 - for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6428 - $_.i = _D; //#6414 - $_.ai = $get($_.ais, $_.i); //#6415 - $_.val = $get($_.vals, $_.i); //#6416 - var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6417 - $puti(_N, 0, $_.c128); //#6418 - $k[$j++] = _N; //#6419 - $k[$j++] = _N; //#6419 - $k[$j++] = $_.c128.length; //#6419 - $k[$j++] = $_.ai; //#6419 - $k[$j++] = Infinity; //#6419 - var _R = $k[--$j]; //#6419 - var _S = $k[--$j]; //#6419 - $k[$j++] = _R; //#6419 - $forall(_S); //#6419 - var _T = $a(); //#6419 - var _U = $k[--$j]; //#6419 - $puti($k[--$j], _U, _T); //#6419 - var _W = $k[--$j]; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = $_.c128.length + $_.ai.length; //#6420 - $k[$j++] = $_.val; //#6420 - $k[$j++] = Infinity; //#6420 - var _a = $k[--$j]; //#6420 - var _b = $k[--$j]; //#6420 - $k[$j++] = _a; //#6420 - $forall(_b); //#6420 - var _c = $a(); //#6420 - var _d = $k[--$j]; //#6420 - $puti($k[--$j], _d, _c); //#6420 - $_.c128 = $k[--$j]; //#6421 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6427 - var _m = $a($_.c128.length + 1); //#6423 - $puti(_m, 0, $_.c128); //#6424 - $put(_m, $_.c128.length, $_.fnc1); //#6425 - $_.c128 = _m; //#6426 - } //#6426 - } //#6426 - $_.barcode = $s(($_.c128.length + 1) * 5); //#6431 - $_.i = 0; //#6432 - $_.j = 0; //#6432 - for (;;) { //#6442 - if ($_.i == $_.c128.length) { //#6433 - break; //#6433 - } //#6433 - var _w = $get($_.c128, $_.i); //#6434 - $k[$j++] = _w; //#6439 - if (_w == $_.fnc1) { //#6438 - $j--; //#6435 - $puti($_.barcode, $_.j, "^FNC1"); //#6435 - $_.j = $_.j + 4; //#6436 - } else { //#6438 - $put($_.barcode, $_.j, $k[--$j]); //#6438 - } //#6438 - $_.i = $_.i + 1; //#6440 - $_.j = $_.j + 1; //#6441 - } //#6441 - if ($_.linkagea || $_.linkagec) { //#6446 - $k[$j++] = $_.barcode; //#6444 - $k[$j++] = $_.j; //#6444 - if ($_.linkagea) { //#6444 - $k[$j++] = "^LNKA"; //#6444 - } else { //#6444 - $k[$j++] = "^LNKC"; //#6444 - } //#6444 - var _1B = $k[--$j]; //#6444 - var _1C = $k[--$j]; //#6444 - $puti($k[--$j], _1C, _1B); //#6444 - $_.j = $_.j + 5; //#6445 - } //#6445 - $_.barcode = $geti($_.barcode, 0, $_.j); //#6447 - delete $_.options["parse"]; //#6450 - $put($_.options, "height", $_.height); //#6451 - $put($_.options, "dontdraw", true); //#6452 - $put($_.options, "parsefnc", true); //#6453 - $k[$j++] = 'args'; //#6454 - $k[$j++] = $_.barcode; //#6454 - $k[$j++] = $_.options; //#6454 - bwipp_code128(); //#6454 - var _1P = $k[--$j]; //#6454 - $_[$k[--$j]] = _1P; //#6454 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6456 - $put($_.args, "textxalign", "center"); //#6457 - $put($_.args, "opt", $_.options); //#6458 - $k[$j++] = $_.args; //#6461 - if (!$_.dontdraw) { //#6461 - bwipp_renlinear(); //#6461 - } //#6461 - $_ = Object.getPrototypeOf($_); //#6463 -} - + $_ = Object.create($_); //#6514 + $_.dontdraw = false; //#6517 + $_.includetext = false; //#6518 + $_.textfont = "OCR-B"; //#6519 + $_.textsize = 10; //#6520 + $_.textxoffset = 0; //#6521 + $_.textyoffset = -8; //#6522 + $_.height = 0.5; //#6523 + $_.linkagea = false; //#6524 + $_.linkagec = false; //#6525 + $_.parse = false; //#6526 + $_.dontlint = false; //#6527 + $_.lintreqs = false; //#6528 + $k[$j++] = $_; //#6530 + bwipp_processoptions(); //#6530 + $_.options = $k[--$j]; //#6530 + $_.barcode = $k[--$j]; //#6531 + if ($_.linkagea && $_.linkagec) { //#6535 + $k[$j++] = 'bwipp.gs1128badLinkage#6534'; //#6534 + $k[$j++] = "linkagea and linkagec cannot be used together"; //#6534 + bwipp_raiseerror(); //#6534 + } //#6534 + $_.text = $_.barcode; //#6537 + $k[$j++] = $_.barcode; //#6539 + $k[$j++] = 'ai'; //#6539 + bwipp_gs1process(); //#6539 + $_.fncs = $k[--$j]; //#6540 + $_.vals = $k[--$j]; //#6541 + $_.ais = $k[--$j]; //#6542 + $_.fnc1 = -1; //#6545 + $_.c128 = $a([$_.fnc1]); //#6546 + for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6562 + $_.i = _D; //#6548 + $_.ai = $get($_.ais, $_.i); //#6549 + $_.val = $get($_.vals, $_.i); //#6550 + var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6551 + $puti(_N, 0, $_.c128); //#6552 + $k[$j++] = _N; //#6553 + $k[$j++] = _N; //#6553 + $k[$j++] = $_.c128.length; //#6553 + $k[$j++] = $_.ai; //#6553 + $k[$j++] = Infinity; //#6553 + var _R = $k[--$j]; //#6553 + var _S = $k[--$j]; //#6553 + $k[$j++] = _R; //#6553 + $forall(_S); //#6553 + var _T = $a(); //#6553 + var _U = $k[--$j]; //#6553 + $puti($k[--$j], _U, _T); //#6553 + var _W = $k[--$j]; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = $_.c128.length + $_.ai.length; //#6554 + $k[$j++] = $_.val; //#6554 + $k[$j++] = Infinity; //#6554 + var _a = $k[--$j]; //#6554 + var _b = $k[--$j]; //#6554 + $k[$j++] = _a; //#6554 + $forall(_b); //#6554 + var _c = $a(); //#6554 + var _d = $k[--$j]; //#6554 + $puti($k[--$j], _d, _c); //#6554 + $_.c128 = $k[--$j]; //#6555 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6561 + var _m = $a($_.c128.length + 1); //#6557 + $puti(_m, 0, $_.c128); //#6558 + $put(_m, $_.c128.length, $_.fnc1); //#6559 + $_.c128 = _m; //#6560 + } //#6560 + } //#6560 + $_.barcode = $s(($_.c128.length + 1) * 5); //#6565 + $_.i = 0; //#6566 + $_.j = 0; //#6566 + for (;;) { //#6576 + if ($_.i == $_.c128.length) { //#6567 + break; //#6567 + } //#6567 + var _w = $get($_.c128, $_.i); //#6568 + $k[$j++] = _w; //#6573 + if (_w == $_.fnc1) { //#6572 + $j--; //#6569 + $puti($_.barcode, $_.j, "^FNC1"); //#6569 + $_.j = $_.j + 4; //#6570 + } else { //#6572 + $put($_.barcode, $_.j, $k[--$j]); //#6572 + } //#6572 + $_.i = $_.i + 1; //#6574 + $_.j = $_.j + 1; //#6575 + } //#6575 + if ($_.linkagea || $_.linkagec) { //#6580 + $k[$j++] = $_.barcode; //#6578 + $k[$j++] = $_.j; //#6578 + if ($_.linkagea) { //#6578 + $k[$j++] = "^LNKA"; //#6578 + } else { //#6578 + $k[$j++] = "^LNKC"; //#6578 + } //#6578 + var _1B = $k[--$j]; //#6578 + var _1C = $k[--$j]; //#6578 + $puti($k[--$j], _1C, _1B); //#6578 + $_.j = $_.j + 5; //#6579 + } //#6579 + $_.barcode = $geti($_.barcode, 0, $_.j); //#6581 + delete $_.options["parse"]; //#6584 + $put($_.options, "height", $_.height); //#6585 + $put($_.options, "dontdraw", true); //#6586 + $put($_.options, "parsefnc", true); //#6587 + $k[$j++] = 'args'; //#6588 + $k[$j++] = $_.barcode; //#6588 + $k[$j++] = $_.options; //#6588 + bwipp_code128(); //#6588 + var _1P = $k[--$j]; //#6588 + $_[$k[--$j]] = _1P; //#6588 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6590 + $put($_.args, "textxalign", "center"); //#6591 + $put($_.args, "opt", $_.options); //#6592 + $k[$j++] = $_.args; //#6595 + if (!$_.dontdraw) { //#6595 + bwipp_renlinear(); //#6595 + } //#6595 + $_ = Object.getPrototypeOf($_); //#6597 +} //bwipp_gs1_128 function bwipp_ean14() { - $_ = Object.create($_); //#6492 - $_.dontdraw = false; //#6495 - $_.includetext = false; //#6496 - $_.textfont = "OCR-B"; //#6497 - $_.textsize = 10; //#6498 - $_.textxoffset = 0; //#6499 - $_.textyoffset = -8; //#6500 - $_.height = 1; //#6501 - $k[$j++] = $_; //#6503 - bwipp_processoptions(); //#6503 - $_.options = $k[--$j]; //#6503 - $_.barcode = $k[--$j]; //#6504 - $_.text = $_.barcode; //#6507 - var _3 = $_.barcode; //#6508 - $k[$j++] = $s(_3.length); //#6509 - $k[$j++] = 0; //#6509 - $forall(_3, function() { //#6509 - var _5 = $k[--$j]; //#6509 - $k[$j++] = _5; //#6509 - if (_5 != 32) { //#6509 - var _6 = $k[--$j]; //#6509 - var _7 = $k[--$j]; //#6509 - var _8 = $k[--$j]; //#6509 - $put(_8, _7, _6); //#6509 - $k[$j++] = _8; //#6509 - $k[$j++] = $f(_7 + 1); //#6509 - } else { //#6509 - $j--; //#6509 - } //#6509 - }); //#6509 - var _9 = $k[--$j]; //#6510 - $_.barcode = $geti($k[--$j], 0, _9); //#6510 - $_.hasspace = $_.text.length != $_.barcode.length; //#6511 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6516 - $k[$j++] = 'bwipp.ean14badAI#6515'; //#6515 - $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6515 - bwipp_raiseerror(); //#6515 - } //#6515 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6519 - $k[$j++] = 'bwipp.ean14badLength#6518'; //#6518 - $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6518 - bwipp_raiseerror(); //#6518 - } //#6518 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6520 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6524 - var _N = $get(_K, _L); //#6524 - if ((_N < 48) || (_N > 57)) { //#6523 - $k[$j++] = 'bwipp.ean14badCharacter#6522'; //#6522 - $k[$j++] = "GS1-14 must contain only digits"; //#6522 - bwipp_raiseerror(); //#6522 - } //#6522 - } //#6522 - $_.checksum = 0; //#6527 - for (var _O = 0; _O <= 12; _O += 1) { //#6531 - $_.i = _O; //#6529 - $k[$j++] = 'checksum'; //#6530 - $k[$j++] = $_.checksum; //#6530 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6530 - if (($_.i % 2) == 0) { //#6530 - var _U = $k[--$j]; //#6530 - $k[$j++] = _U * 3; //#6530 - } //#6530 - var _V = $k[--$j]; //#6530 - var _W = $k[--$j]; //#6530 - $_[$k[--$j]] = $f(_W + _V); //#6530 - } //#6530 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6532 - if ($_.barcode.length == 18) { //#6546 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6536 - $k[$j++] = 'bwipp.ean14badCheckDigit#6535'; //#6535 - $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6535 - bwipp_raiseerror(); //#6535 - } //#6535 - } else { //#6546 - var _d = $s(18); //#6538 - $puti(_d, 0, $_.barcode); //#6539 - $put(_d, 17, $_.checksum + 48); //#6540 - $_.barcode = _d; //#6541 - var _i = $_.hasspace ? 2 : 1; //#6542 - var _j = $s($_.text.length + _i); //#6542 - $puti(_j, _j.length - 2, " "); //#6543 - $put(_j, _j.length - 1, $_.checksum + 48); //#6544 - $puti(_j, 0, $_.text); //#6545 - $_.text = _j; //#6546 - } //#6546 - $_.gtin = $geti($_.barcode, 4, 14); //#6548 - $_.barcode = $s(21); //#6551 - $puti($_.barcode, 0, "^FNC101"); //#6552 - var _r = $_.gtin; //#6553 - $puti($_.barcode, 7, _r); //#6553 - $put($_.options, "dontdraw", true); //#6556 - $put($_.options, "parsefnc", true); //#6557 - $k[$j++] = 'args'; //#6558 - $k[$j++] = $_.barcode; //#6558 - $k[$j++] = $_.options; //#6558 - bwipp_code128(); //#6558 - var _w = $k[--$j]; //#6558 - $_[$k[--$j]] = _w; //#6558 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6560 - $put($_.args, "textxalign", "center"); //#6561 - $put($_.args, "opt", $_.options); //#6562 - $k[$j++] = $_.args; //#6565 - if (!$_.dontdraw) { //#6565 - bwipp_renlinear(); //#6565 - } //#6565 - $_ = Object.getPrototypeOf($_); //#6567 -} - + $_ = Object.create($_); //#6626 + $_.dontdraw = false; //#6629 + $_.includetext = false; //#6630 + $_.textfont = "OCR-B"; //#6631 + $_.textsize = 10; //#6632 + $_.textxoffset = 0; //#6633 + $_.textyoffset = -8; //#6634 + $_.height = 1; //#6635 + $k[$j++] = $_; //#6637 + bwipp_processoptions(); //#6637 + $_.options = $k[--$j]; //#6637 + $_.barcode = $k[--$j]; //#6638 + $_.text = $_.barcode; //#6641 + var _3 = $_.barcode; //#6642 + $k[$j++] = $s(_3.length); //#6643 + $k[$j++] = 0; //#6643 + $forall(_3, function() { //#6643 + var _5 = $k[--$j]; //#6643 + $k[$j++] = _5; //#6643 + if (_5 != 32) { //#6643 + var _6 = $k[--$j]; //#6643 + var _7 = $k[--$j]; //#6643 + var _8 = $k[--$j]; //#6643 + $put(_8, _7, _6); //#6643 + $k[$j++] = _8; //#6643 + $k[$j++] = $f(_7 + 1); //#6643 + } else { //#6643 + $j--; //#6643 + } //#6643 + }); //#6643 + var _9 = $k[--$j]; //#6644 + $_.barcode = $geti($k[--$j], 0, _9); //#6644 + $_.hasspace = $_.text.length != $_.barcode.length; //#6645 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6650 + $k[$j++] = 'bwipp.ean14badLength#6649'; //#6649 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6649 + bwipp_raiseerror(); //#6649 + } //#6649 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6653 + $k[$j++] = 'bwipp.ean14badAI#6652'; //#6652 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6652 + bwipp_raiseerror(); //#6652 + } //#6652 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6654 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6658 + var _N = $get(_K, _L); //#6658 + if ((_N < 48) || (_N > 57)) { //#6657 + $k[$j++] = 'bwipp.ean14badCharacter#6656'; //#6656 + $k[$j++] = "GS1-14 must contain only digits"; //#6656 + bwipp_raiseerror(); //#6656 + } //#6656 + } //#6656 + $_.checksum = 0; //#6661 + for (var _O = 0; _O <= 12; _O += 1) { //#6665 + $_.i = _O; //#6663 + $k[$j++] = 'checksum'; //#6664 + $k[$j++] = $_.checksum; //#6664 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6664 + if (($_.i % 2) == 0) { //#6664 + var _U = $k[--$j]; //#6664 + $k[$j++] = _U * 3; //#6664 + } //#6664 + var _V = $k[--$j]; //#6664 + var _W = $k[--$j]; //#6664 + $_[$k[--$j]] = $f(_W + _V); //#6664 + } //#6664 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6666 + if ($_.barcode.length == 18) { //#6680 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6670 + $k[$j++] = 'bwipp.ean14badCheckDigit#6669'; //#6669 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6669 + bwipp_raiseerror(); //#6669 + } //#6669 + } else { //#6680 + var _d = $s(18); //#6672 + $puti(_d, 0, $_.barcode); //#6673 + $put(_d, 17, $_.checksum + 48); //#6674 + $_.barcode = _d; //#6675 + var _i = $_.hasspace ? 2 : 1; //#6676 + var _j = $s($_.text.length + _i); //#6676 + $puti(_j, _j.length - 2, " "); //#6677 + $put(_j, _j.length - 1, $_.checksum + 48); //#6678 + $puti(_j, 0, $_.text); //#6679 + $_.text = _j; //#6680 + } //#6680 + $_.gtin = $geti($_.barcode, 4, 14); //#6682 + $_.barcode = $s(21); //#6685 + $puti($_.barcode, 0, "^FNC101"); //#6686 + var _r = $_.gtin; //#6687 + $puti($_.barcode, 7, _r); //#6687 + $put($_.options, "dontdraw", true); //#6690 + $put($_.options, "parsefnc", true); //#6691 + $k[$j++] = 'args'; //#6692 + $k[$j++] = $_.barcode; //#6692 + $k[$j++] = $_.options; //#6692 + bwipp_code128(); //#6692 + var _w = $k[--$j]; //#6692 + $_[$k[--$j]] = _w; //#6692 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6694 + $put($_.args, "textxalign", "center"); //#6695 + $put($_.args, "opt", $_.options); //#6696 + $k[$j++] = $_.args; //#6699 + if (!$_.dontdraw) { //#6699 + bwipp_renlinear(); //#6699 + } //#6699 + $_ = Object.getPrototypeOf($_); //#6701 +} //bwipp_ean14 function bwipp_sscc18() { - $_ = Object.create($_); //#6596 - $_.dontdraw = false; //#6599 - $_.includetext = false; //#6600 - $_.textfont = "OCR-B"; //#6601 - $_.textsize = 10; //#6602 - $_.textxoffset = 0; //#6603 - $_.textyoffset = -8; //#6604 - $_.height = 1; //#6605 - $k[$j++] = $_; //#6607 - bwipp_processoptions(); //#6607 - $_.options = $k[--$j]; //#6607 - $_.barcode = $k[--$j]; //#6608 - $_.text = $_.barcode; //#6611 - var _3 = $_.barcode; //#6612 - $k[$j++] = $s(_3.length); //#6613 - $k[$j++] = 0; //#6613 - $forall(_3, function() { //#6613 - var _5 = $k[--$j]; //#6613 - $k[$j++] = _5; //#6613 - if (_5 != 32) { //#6613 - var _6 = $k[--$j]; //#6613 - var _7 = $k[--$j]; //#6613 - var _8 = $k[--$j]; //#6613 - $put(_8, _7, _6); //#6613 - $k[$j++] = _8; //#6613 - $k[$j++] = $f(_7 + 1); //#6613 - } else { //#6613 - $j--; //#6613 - } //#6613 - }); //#6613 - var _9 = $k[--$j]; //#6614 - $_.barcode = $geti($k[--$j], 0, _9); //#6614 - $_.hasspace = $_.text.length != $_.barcode.length; //#6615 - if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6620 - $k[$j++] = 'bwipp.sscc18badAI#6619'; //#6619 - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6619 - bwipp_raiseerror(); //#6619 - } //#6619 - if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6623 - $k[$j++] = 'bwipp.sscc18badLength#6622'; //#6622 - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6622 - bwipp_raiseerror(); //#6622 - } //#6622 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6624 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6628 - var _N = $get(_K, _L); //#6628 - if ((_N < 48) || (_N > 57)) { //#6627 - $k[$j++] = 'bwipp.sscc18badCharacter#6626'; //#6626 - $k[$j++] = "SSCC-18 must contain only digits"; //#6626 - bwipp_raiseerror(); //#6626 - } //#6626 - } //#6626 - $_.checksum = 0; //#6631 - for (var _O = 0; _O <= 16; _O += 1) { //#6635 - $_.i = _O; //#6633 - $k[$j++] = 'checksum'; //#6634 - $k[$j++] = $_.checksum; //#6634 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6634 - if (($_.i % 2) == 0) { //#6634 - var _U = $k[--$j]; //#6634 - $k[$j++] = _U * 3; //#6634 - } //#6634 - var _V = $k[--$j]; //#6634 - var _W = $k[--$j]; //#6634 - $_[$k[--$j]] = $f(_W + _V); //#6634 - } //#6634 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6636 - if ($_.barcode.length == 22) { //#6650 - if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6640 - $k[$j++] = 'bwipp.sscc18badCheckDigit#6639'; //#6639 - $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6639 - bwipp_raiseerror(); //#6639 - } //#6639 - } else { //#6650 - var _d = $s(22); //#6642 - $puti(_d, 0, $_.barcode); //#6643 - $put(_d, 21, $_.checksum + 48); //#6644 - $_.barcode = _d; //#6645 - var _i = $_.hasspace ? 2 : 1; //#6646 - var _j = $s($_.text.length + _i); //#6646 - $puti(_j, _j.length - 2, " "); //#6647 - $put(_j, _j.length - 1, $_.checksum + 48); //#6648 - $puti(_j, 0, $_.text); //#6649 - $_.text = _j; //#6650 - } //#6650 - $_.sscc = $geti($_.barcode, 4, 18); //#6652 - $_.barcode = $s(25); //#6655 - $puti($_.barcode, 0, "^FNC100"); //#6656 - var _r = $_.sscc; //#6657 - $puti($_.barcode, 7, _r); //#6657 - $put($_.options, "dontdraw", true); //#6660 - $put($_.options, "parsefnc", true); //#6661 - $k[$j++] = 'args'; //#6662 - $k[$j++] = $_.barcode; //#6662 - $k[$j++] = $_.options; //#6662 - bwipp_code128(); //#6662 - var _w = $k[--$j]; //#6662 - $_[$k[--$j]] = _w; //#6662 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6664 - $put($_.args, "textxalign", "center"); //#6665 - $put($_.args, "opt", $_.options); //#6666 - $k[$j++] = $_.args; //#6669 - if (!$_.dontdraw) { //#6669 - bwipp_renlinear(); //#6669 - } //#6669 - $_ = Object.getPrototypeOf($_); //#6671 -} - -function bwipp_code39() { - $_ = Object.create($_); //#6701 - $_.dontdraw = false; //#6704 - $_.includecheck = false; //#6705 - $_.validatecheck = false; //#6706 - $_.includetext = false; //#6707 - $_.includecheckintext = false; //#6708 - $_.hidestars = false; //#6709 - $_.textfont = "OCR-B"; //#6710 - $_.textsize = 10; //#6711 - $_.textyoffset = -8; //#6712 - $_.height = 1; //#6713 - $k[$j++] = $_; //#6715 - bwipp_processoptions(); //#6715 - $_.options = $k[--$j]; //#6715 - $_.barcode = $k[--$j]; //#6716 - bwipp_loadctx(bwipp_code39) //#6718 - if (!bwipp_code39.__6738__) { //#6738 - $_ = Object.create($_); //#6738 - $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6732 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6735 - $_.charvals = new Map; //#6736 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#6737 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#6737 - } //#6737 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6737 - bwipp_code39.__6738__ = 1; //#6737 - $_ = Object.getPrototypeOf($_); //#6737 - } //#6737 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#6745 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#6742 - if (!_E) { //#6744 - $k[$j++] = 'bwipp.code39badCharacter#6743'; //#6743 - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6743 - bwipp_raiseerror(); //#6743 - } //#6743 - } //#6743 - $k[$j++] = 'barlen'; //#6747 - $k[$j++] = $_.barcode.length; //#6747 - if ($_.validatecheck) { //#6747 - var _H = $k[--$j]; //#6747 - $k[$j++] = $f(_H - 1); //#6747 - } //#6747 - var _I = $k[--$j]; //#6747 - $_[$k[--$j]] = _I; //#6747 - $_.checksum = 0; //#6749 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#6753 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#6752 - } //#6752 - $_.checksum = $_.checksum % 43; //#6754 - if ($_.validatecheck) { //#6761 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6758 - $k[$j++] = 'bwipp.code39badCheckDigit#6757'; //#6757 - $k[$j++] = "Incorrect Code 39 check digit provided"; //#6757 - bwipp_raiseerror(); //#6757 - } //#6757 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6759 - $_.includecheck = true; //#6760 + $_ = Object.create($_); //#6730 + $_.dontdraw = false; //#6733 + $_.includetext = false; //#6734 + $_.textfont = "OCR-B"; //#6735 + $_.textsize = 10; //#6736 + $_.textxoffset = 0; //#6737 + $_.textyoffset = -8; //#6738 + $_.height = 1; //#6739 + $k[$j++] = $_; //#6741 + bwipp_processoptions(); //#6741 + $_.options = $k[--$j]; //#6741 + $_.barcode = $k[--$j]; //#6742 + $_.text = $_.barcode; //#6745 + var _3 = $_.barcode; //#6746 + $k[$j++] = $s(_3.length); //#6747 + $k[$j++] = 0; //#6747 + $forall(_3, function() { //#6747 + var _5 = $k[--$j]; //#6747 + $k[$j++] = _5; //#6747 + if (_5 != 32) { //#6747 + var _6 = $k[--$j]; //#6747 + var _7 = $k[--$j]; //#6747 + var _8 = $k[--$j]; //#6747 + $put(_8, _7, _6); //#6747 + $k[$j++] = _8; //#6747 + $k[$j++] = $f(_7 + 1); //#6747 + } else { //#6747 + $j--; //#6747 + } //#6747 + }); //#6747 + var _9 = $k[--$j]; //#6748 + $_.barcode = $geti($k[--$j], 0, _9); //#6748 + $_.hasspace = $_.text.length != $_.barcode.length; //#6749 + if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6754 + $k[$j++] = 'bwipp.sscc18badLength#6753'; //#6753 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6753 + bwipp_raiseerror(); //#6753 + } //#6753 + if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6757 + $k[$j++] = 'bwipp.sscc18badAI#6756'; //#6756 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6756 + bwipp_raiseerror(); //#6756 + } //#6756 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6758 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6762 + var _N = $get(_K, _L); //#6762 + if ((_N < 48) || (_N > 57)) { //#6761 + $k[$j++] = 'bwipp.sscc18badCharacter#6760'; //#6760 + $k[$j++] = "SSCC-18 must contain only digits"; //#6760 + bwipp_raiseerror(); //#6760 + } //#6760 } //#6760 - var _f = $_.includecheck ? 3 : 2; //#6763 - $_.sbs = $s($f($_.barlen + _f) * 10); //#6763 - var _j = $_.includecheck ? 3 : 2; //#6764 - $_.txt = $a($f($_.barlen + _j)); //#6764 - $puti($_.sbs, 0, $get($_.encs, 43)); //#6767 - if (!$_.hidestars) { //#6771 - $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6769 - } else { //#6771 - $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6771 - } //#6771 - for (var _11 = 0, _10 = $f($_.barlen - 1); _11 <= _10; _11 += 1) { //#6779 - $_.i = _11; //#6775 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6776 - $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6777 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6778 - } //#6778 - if ($_.includecheck) { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6783 - if ($_.includecheckintext) { //#6787 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6785 - } else { //#6787 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6787 - } //#6787 - $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6789 - if (!$_.hidestars) { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6791 - } else { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6793 - } //#6793 - } else { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6796 - if (!$_.hidestars) { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6798 - } else { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6800 - } //#6800 - } //#6800 - $k[$j++] = Infinity; //#6813 - $k[$j++] = Infinity; //#6807 - var _2M = $_.sbs; //#6807 - for (var _2N = 0, _2O = _2M.length; _2N < _2O; _2N++) { //#6807 - $k[$j++] = $get(_2M, _2N) - 48; //#6807 - } //#6807 - var _2Q = $a(); //#6807 - $k[$j++] = Infinity; //#6808 - for (var _2S = 0, _2T = ~~(($_.sbs.length + 1) / 2); _2S < _2T; _2S++) { //#6808 - $k[$j++] = $_.height; //#6808 - } //#6808 - var _2V = $a(); //#6808 - $k[$j++] = Infinity; //#6809 - for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#6809 - $k[$j++] = 0; //#6809 - } //#6809 - var _2Z = $a(); //#6809 - $k[$j++] = 'ren'; //#6812 - $k[$j++] = bwipp_renlinear; //#6812 - $k[$j++] = 'sbs'; //#6812 - $k[$j++] = _2Q; //#6812 - $k[$j++] = 'bhs'; //#6812 - $k[$j++] = _2V; //#6812 - $k[$j++] = 'bbs'; //#6812 - $k[$j++] = _2Z; //#6812 - if ($_.includetext) { //#6812 - $k[$j++] = 'txt'; //#6811 - $k[$j++] = $_.txt; //#6811 - } //#6811 - $k[$j++] = 'opt'; //#6813 - $k[$j++] = $_.options; //#6813 - var _2d = $d(); //#6813 - $k[$j++] = _2d; //#6816 - if (!$_.dontdraw) { //#6816 - bwipp_renlinear(); //#6816 - } //#6816 - $_ = Object.getPrototypeOf($_); //#6818 - $_ = Object.getPrototypeOf($_); //#6820 -} - + $_.checksum = 0; //#6765 + for (var _O = 0; _O <= 16; _O += 1) { //#6769 + $_.i = _O; //#6767 + $k[$j++] = 'checksum'; //#6768 + $k[$j++] = $_.checksum; //#6768 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6768 + if (($_.i % 2) == 0) { //#6768 + var _U = $k[--$j]; //#6768 + $k[$j++] = _U * 3; //#6768 + } //#6768 + var _V = $k[--$j]; //#6768 + var _W = $k[--$j]; //#6768 + $_[$k[--$j]] = $f(_W + _V); //#6768 + } //#6768 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6770 + if ($_.barcode.length == 22) { //#6784 + if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6774 + $k[$j++] = 'bwipp.sscc18badCheckDigit#6773'; //#6773 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6773 + bwipp_raiseerror(); //#6773 + } //#6773 + } else { //#6784 + var _d = $s(22); //#6776 + $puti(_d, 0, $_.barcode); //#6777 + $put(_d, 21, $_.checksum + 48); //#6778 + $_.barcode = _d; //#6779 + var _i = $_.hasspace ? 2 : 1; //#6780 + var _j = $s($_.text.length + _i); //#6780 + $puti(_j, _j.length - 2, " "); //#6781 + $put(_j, _j.length - 1, $_.checksum + 48); //#6782 + $puti(_j, 0, $_.text); //#6783 + $_.text = _j; //#6784 + } //#6784 + $_.sscc = $geti($_.barcode, 4, 18); //#6786 + $_.barcode = $s(25); //#6789 + $puti($_.barcode, 0, "^FNC100"); //#6790 + var _r = $_.sscc; //#6791 + $puti($_.barcode, 7, _r); //#6791 + $put($_.options, "dontdraw", true); //#6794 + $put($_.options, "parsefnc", true); //#6795 + $k[$j++] = 'args'; //#6796 + $k[$j++] = $_.barcode; //#6796 + $k[$j++] = $_.options; //#6796 + bwipp_code128(); //#6796 + var _w = $k[--$j]; //#6796 + $_[$k[--$j]] = _w; //#6796 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6798 + $put($_.args, "textxalign", "center"); //#6799 + $put($_.args, "opt", $_.options); //#6800 + $k[$j++] = $_.args; //#6803 + if (!$_.dontdraw) { //#6803 + bwipp_renlinear(); //#6803 + } //#6803 + $_ = Object.getPrototypeOf($_); //#6805 +} //bwipp_sscc18 +function bwipp_code39() { + $_ = Object.create($_); //#6835 + $_.dontdraw = false; //#6838 + $_.includecheck = false; //#6839 + $_.validatecheck = false; //#6840 + $_.includetext = false; //#6841 + $_.includecheckintext = false; //#6842 + $_.hidestars = false; //#6843 + $_.textfont = "OCR-B"; //#6844 + $_.textsize = 10; //#6845 + $_.textyoffset = -8; //#6846 + $_.height = 1; //#6847 + $k[$j++] = $_; //#6849 + bwipp_processoptions(); //#6849 + $_.options = $k[--$j]; //#6849 + $_.barcode = $k[--$j]; //#6850 + if ($eq($_.barcode, "")) { //#6854 + $k[$j++] = 'bwipp.code39emptyData#6853'; //#6853 + $k[$j++] = "The data must not be empty"; //#6853 + bwipp_raiseerror(); //#6853 + } //#6853 + bwipp_loadctx(bwipp_code39) //#6856 + if (!bwipp_code39.__6876__) { //#6876 + $_ = Object.create($_); //#6876 + $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6870 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6873 + $_.charvals = new Map; //#6874 + for (var _4 = 0; _4 <= 42; _4 += 1) { //#6875 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#6875 + } //#6875 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6875 + bwipp_code39.__6876__ = 1; //#6875 + $_ = Object.getPrototypeOf($_); //#6875 + } //#6875 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#6883 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#6880 + if (!_F) { //#6882 + $k[$j++] = 'bwipp.code39badCharacter#6881'; //#6881 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6881 + bwipp_raiseerror(); //#6881 + } //#6881 + } //#6881 + $k[$j++] = 'barlen'; //#6885 + $k[$j++] = $_.barcode.length; //#6885 + if ($_.validatecheck) { //#6885 + var _I = $k[--$j]; //#6885 + $k[$j++] = $f(_I - 1); //#6885 + } //#6885 + var _J = $k[--$j]; //#6885 + $_[$k[--$j]] = _J; //#6885 + $_.checksum = 0; //#6887 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#6891 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _N, 1)) + $_.checksum); //#6890 + } //#6890 + $_.checksum = $_.checksum % 43; //#6892 + if ($_.validatecheck) { //#6899 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6896 + $k[$j++] = 'bwipp.code39badCheckDigit#6895'; //#6895 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#6895 + bwipp_raiseerror(); //#6895 + } //#6895 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6897 + $_.includecheck = true; //#6898 + } //#6898 + var _g = $_.includecheck ? 3 : 2; //#6901 + $_.sbs = $s($f($_.barlen + _g) * 10); //#6901 + var _k = $_.includecheck ? 3 : 2; //#6902 + $_.txt = $a($f($_.barlen + _k)); //#6902 + $puti($_.sbs, 0, $get($_.encs, 43)); //#6905 + if (!$_.hidestars) { //#6909 + $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6907 + } else { //#6909 + $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6909 + } //#6909 + for (var _12 = 0, _11 = $f($_.barlen - 1); _12 <= _11; _12 += 1) { //#6917 + $_.i = _12; //#6913 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6914 + $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6915 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6916 + } //#6916 + if ($_.includecheck) { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6921 + if ($_.includecheckintext) { //#6925 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6923 + } else { //#6925 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6925 + } //#6925 + $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6927 + if (!$_.hidestars) { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6929 + } else { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6931 + } //#6931 + } else { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6934 + if (!$_.hidestars) { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6936 + } else { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6938 + } //#6938 + } //#6938 + $k[$j++] = Infinity; //#6943 + $k[$j++] = Infinity; //#6945 + var _2N = $_.sbs; //#6945 + for (var _2O = 0, _2P = _2N.length; _2O < _2P; _2O++) { //#6945 + $k[$j++] = $get(_2N, _2O) - 48; //#6945 + } //#6945 + var _2R = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + for (var _2T = 0, _2U = ~~(($_.sbs.length + 1) / 2); _2T < _2U; _2T++) { //#6946 + $k[$j++] = $_.height; //#6946 + } //#6946 + var _2W = $a(); //#6946 + $k[$j++] = Infinity; //#6947 + for (var _2Y = 0, _2Z = ~~(($_.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#6947 + $k[$j++] = 0; //#6947 + } //#6947 + var _2a = $a(); //#6947 + $k[$j++] = 'ren'; //#6950 + $k[$j++] = bwipp_renlinear; //#6950 + $k[$j++] = 'sbs'; //#6950 + $k[$j++] = _2R; //#6950 + $k[$j++] = 'bhs'; //#6950 + $k[$j++] = _2W; //#6950 + $k[$j++] = 'bbs'; //#6950 + $k[$j++] = _2a; //#6950 + if ($_.includetext) { //#6950 + $k[$j++] = 'txt'; //#6949 + $k[$j++] = $_.txt; //#6949 + } //#6949 + $k[$j++] = 'opt'; //#6951 + $k[$j++] = $_.options; //#6951 + var _2e = $d(); //#6951 + $k[$j++] = _2e; //#6954 + if (!$_.dontdraw) { //#6954 + bwipp_renlinear(); //#6954 + } //#6954 + $_ = Object.getPrototypeOf($_); //#6956 + $_ = Object.getPrototypeOf($_); //#6958 +} //bwipp_code39 function bwipp_code39ext() { - $_ = Object.create($_); //#6852 - $_.dontdraw = false; //#6855 - $_.includetext = false; //#6856 - $_.parse = false; //#6857 - $k[$j++] = $_; //#6859 - bwipp_processoptions(); //#6859 - $_.options = $k[--$j]; //#6859 - $_.barcode = $k[--$j]; //#6860 - bwipp_loadctx(bwipp_code39ext) //#6862 + $_ = Object.create($_); //#6990 + $_.dontdraw = false; //#6993 + $_.includetext = false; //#6994 + $_.parse = false; //#6995 + $k[$j++] = $_; //#6997 + bwipp_processoptions(); //#6997 + $_.options = $k[--$j]; //#6997 + $_.barcode = $k[--$j]; //#6998 + bwipp_loadctx(bwipp_code39ext) //#7000 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#6868 - $_.fncvals = _3; //#6869 - $k[$j++] = 'barcode'; //#6870 - $k[$j++] = $_.barcode; //#6870 - $k[$j++] = $_.fncvals; //#6870 - bwipp_parseinput(); //#6870 - var _6 = $k[--$j]; //#6870 - $_[$k[--$j]] = _6; //#6870 - $_.barlen = $_.barcode.length; //#6871 - delete $_.options["parse"]; //#6872 - $forall($_.barcode, function() { //#6879 - if ($k[--$j] >= 128) { //#6878 - $k[$j++] = 'bwipp.code39extBadCharacter#6877'; //#6877 - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#6877 - bwipp_raiseerror(); //#6877 - } //#6877 - }); //#6877 - if (!bwipp_code39ext.__6893__) { //#6893 - $_ = Object.create($_); //#6893 - $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#6892 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#6892 - bwipp_code39ext.__6893__ = 1; //#6892 - $_ = Object.getPrototypeOf($_); //#6892 - } //#6892 - $_.newcode = $s($_.barlen * 2); //#6895 - $_.newtext = $s($_.barlen * 2); //#6896 - $_.j = 0; //#6897 - for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#6905 - $_.i = _K; //#6899 - $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#6900 - $puti($_.newcode, $_.j, $_.extchar); //#6901 - var _X = $get($_.barcode, $_.i); //#6902 - $k[$j++] = $_.newtext; //#6902 - $k[$j++] = $_.j; //#6902 - $k[$j++] = _X; //#6902 - if ((_X < 32) || (_X == 127)) { //#6902 - $j--; //#6902 - $k[$j++] = 32; //#6902 - } //#6902 - var _Y = $k[--$j]; //#6902 - var _Z = $k[--$j]; //#6902 - $put($k[--$j], _Z, _Y); //#6902 - if ($_.extchar.length != 1) { //#6903 - $put($_.newtext, $_.j + 1, 32); //#6903 - } //#6903 - $_.j = $_.j + $_.extchar.length; //#6904 - } //#6904 - $_.newcode = $geti($_.newcode, 0, $_.j); //#6906 - $_.newtext = $geti($_.newtext, 0, $_.j); //#6907 - $put($_.options, "dontdraw", true); //#6910 - $k[$j++] = 'args'; //#6911 - $k[$j++] = $_.newcode; //#6911 - $k[$j++] = $_.options; //#6911 - bwipp_code39(); //#6911 - var _p = $k[--$j]; //#6911 - $_[$k[--$j]] = _p; //#6911 - if ($_.includetext) { //#6923 - $_.txt = $get($_.args, "txt"); //#6915 - for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#6921 - $_.i = _w; //#6917 - $_.txtentry = $get($_.txt, $_.i + 1); //#6918 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#6919 - $put($_.txt, $_.i + 1, $_.txtentry); //#6920 - } //#6920 - $put($_.args, "txt", $_.txt); //#6922 - } //#6922 - $put($_.args, "opt", $_.options); //#6924 - $k[$j++] = $_.args; //#6927 - if (!$_.dontdraw) { //#6927 - bwipp_renlinear(); //#6927 - } //#6927 - $_ = Object.getPrototypeOf($_); //#6929 - $_ = Object.getPrototypeOf($_); //#6931 -} - + ]); //#7006 + $_.fncvals = _3; //#7007 + $k[$j++] = 'barcode'; //#7008 + $k[$j++] = $_.barcode; //#7008 + $k[$j++] = $_.fncvals; //#7008 + bwipp_parseinput(); //#7008 + var _6 = $k[--$j]; //#7008 + $_[$k[--$j]] = _6; //#7008 + $_.barlen = $_.barcode.length; //#7009 + delete $_.options["parse"]; //#7010 + $forall($_.barcode, function() { //#7017 + if ($k[--$j] >= 128) { //#7016 + $k[$j++] = 'bwipp.code39extBadCharacter#7015'; //#7015 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#7015 + bwipp_raiseerror(); //#7015 + } //#7015 + }); //#7015 + if (!bwipp_code39ext.__7031__) { //#7031 + $_ = Object.create($_); //#7031 + $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#7030 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#7030 + bwipp_code39ext.__7031__ = 1; //#7030 + $_ = Object.getPrototypeOf($_); //#7030 + } //#7030 + $_.newcode = $s($_.barlen * 2); //#7033 + $_.newtext = $s($_.barlen * 2); //#7034 + $_.j = 0; //#7035 + for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#7043 + $_.i = _K; //#7037 + $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#7038 + $puti($_.newcode, $_.j, $_.extchar); //#7039 + var _X = $get($_.barcode, $_.i); //#7040 + $k[$j++] = $_.newtext; //#7040 + $k[$j++] = $_.j; //#7040 + $k[$j++] = _X; //#7040 + if ((_X < 32) || (_X == 127)) { //#7040 + $j--; //#7040 + $k[$j++] = 32; //#7040 + } //#7040 + var _Y = $k[--$j]; //#7040 + var _Z = $k[--$j]; //#7040 + $put($k[--$j], _Z, _Y); //#7040 + if ($_.extchar.length != 1) { //#7041 + $put($_.newtext, $_.j + 1, 32); //#7041 + } //#7041 + $_.j = $_.j + $_.extchar.length; //#7042 + } //#7042 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7044 + $_.newtext = $geti($_.newtext, 0, $_.j); //#7045 + $put($_.options, "dontdraw", true); //#7048 + $k[$j++] = 'args'; //#7049 + $k[$j++] = $_.newcode; //#7049 + $k[$j++] = $_.options; //#7049 + bwipp_code39(); //#7049 + var _p = $k[--$j]; //#7049 + $_[$k[--$j]] = _p; //#7049 + if ($_.includetext) { //#7061 + $_.txt = $get($_.args, "txt"); //#7053 + for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#7059 + $_.i = _w; //#7055 + $_.txtentry = $get($_.txt, $_.i + 1); //#7056 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7057 + $put($_.txt, $_.i + 1, $_.txtentry); //#7058 + } //#7058 + $put($_.args, "txt", $_.txt); //#7060 + } //#7060 + $put($_.args, "opt", $_.options); //#7062 + $k[$j++] = $_.args; //#7065 + if (!$_.dontdraw) { //#7065 + bwipp_renlinear(); //#7065 + } //#7065 + $_ = Object.getPrototypeOf($_); //#7067 + $_ = Object.getPrototypeOf($_); //#7069 +} //bwipp_code39ext function bwipp_code32() { - $_ = Object.create($_); //#6960 - $_.dontdraw = false; //#6963 - $_.includetext = false; //#6964 - $_.textfont = "OCR-B"; //#6965 - $_.textsize = 10; //#6966 - $_.textyoffset = -8; //#6967 - $_.textxoffset = 0; //#6968 - $_.height = 1; //#6969 - $k[$j++] = $_; //#6971 - bwipp_processoptions(); //#6971 - $_.options = $k[--$j]; //#6971 - $_.barcode = $k[--$j]; //#6972 - if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#6977 - $k[$j++] = 'bwipp.code32badLength#6976'; //#6976 - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#6976 - bwipp_raiseerror(); //#6976 - } //#6976 - $forall($_.barcode, function() { //#6982 - var _5 = $k[--$j]; //#6979 - if ((_5 < 48) || (_5 > 57)) { //#6981 - $k[$j++] = 'bwipp.code32badCharacter#6980'; //#6980 - $k[$j++] = "Italian Pharmacode must contain only digits"; //#6980 - bwipp_raiseerror(); //#6980 - } //#6980 - }); //#6980 - $_.checksum = 0; //#6985 - for (var _6 = 0; _6 <= 7; _6 += 1) { //#6990 - $_.i = _6; //#6987 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#6988 - if (($_.i % 2) != 0) { //#6988 - var _B = $k[--$j]; //#6988 - $k[$j++] = _B * 2; //#6988 - } //#6988 - var _C = $k[--$j]; //#6988 - $k[$j++] = _C; //#6988 - if (_C > 9) { //#6988 - var _D = $k[--$j]; //#6988 - $k[$j++] = $f(_D - 9); //#6988 - } //#6988 - $_.checksum = $f($k[--$j] + $_.checksum); //#6989 - } //#6989 - $_.checksum = $_.checksum % 10; //#6991 - if ($_.barcode.length == 9) { //#6996 - if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#6995 - $k[$j++] = 'bwipp.code32badCheckDigit#6994'; //#6994 - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#6994 - bwipp_raiseerror(); //#6994 - } //#6994 - } //#6994 - var _L = $s(10); //#6997 - $puti(_L, 0, $_.barcode); //#6998 - $put(_L, 8, $f($_.checksum + 48)); //#6999 - $_.text = _L; //#7000 - $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7003 - $_.barcode = $s(6); //#7004 - for (var _S = 0; _S <= 5; _S += 1) { //#7005 - $put($_.barcode, _S, 48); //#7005 - } //#7005 - $puti($_.barcode, 6 - $_.val.length, $_.val); //#7006 - for (var _X = 0; _X <= 5; _X += 1) { //#7013 - var _Z = $get($_.barcode, _X); //#7010 - $k[$j++] = _X; //#7011 - $k[$j++] = _Z; //#7011 - $k[$j++] = _Z; //#7011 - for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7011 - if ($k[--$j] >= $get("AEIO", _a)) { //#7011 - var _e = $k[--$j]; //#7011 - $k[$j++] = $f(_e + 1); //#7011 - } //#7011 - var _f = $k[--$j]; //#7011 - $k[$j++] = _f; //#7011 - $k[$j++] = _f; //#7011 - } //#7011 - $j--; //#7011 - var _h = $k[--$j]; //#7012 - $put($_.barcode, $k[--$j], _h); //#7012 - } //#7012 - $puti($_.text, 1, $geti($_.text, 0, 9)); //#7016 - $put($_.text, 0, 65); //#7017 - $put($_.options, "dontdraw", true); //#7020 - $k[$j++] = 'args'; //#7021 - $k[$j++] = $_.barcode; //#7021 - $k[$j++] = $_.options; //#7021 - bwipp_code39(); //#7021 - var _q = $k[--$j]; //#7021 - var _r = $k[--$j]; //#7021 - $_[_r] = _q; //#7021 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7023 - $put($_.args, "textxalign", "center"); //#7024 - $put($_.args, "opt", $_.options); //#7025 - $k[$j++] = $_.args; //#7028 - if (!$_.dontdraw) { //#7028 - bwipp_renlinear(); //#7028 - } //#7028 - $_ = Object.getPrototypeOf($_); //#7030 -} - -function bwipp_pzn() { - $_ = Object.create($_); //#7059 - $_.dontdraw = false; //#7062 - $_.includetext = false; //#7063 - $_.textfont = "OCR-B"; //#7064 - $_.textsize = 10; //#7065 - $_.textyoffset = -8; //#7066 - $_.textxoffset = 0; //#7067 - $_.height = 1; //#7068 - $_.pzn8 = false; //#7069 - $k[$j++] = $_; //#7071 - bwipp_processoptions(); //#7071 - $_.options = $k[--$j]; //#7071 - $_.barcode = $k[--$j]; //#7072 - if ($_.pzn8) { //#7081 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7078 - $k[$j++] = 'bwipp.pzn8badLength#7077'; //#7077 - $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7077 - bwipp_raiseerror(); //#7077 - } //#7077 - } else { //#7081 - if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7082 - $k[$j++] = 'bwipp.pzn7badLength#7081'; //#7081 - $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7081 - bwipp_raiseerror(); //#7081 - } //#7081 - } //#7081 - $forall($_.barcode, function() { //#7088 - var _8 = $k[--$j]; //#7085 - if ((_8 < 48) || (_8 > 57)) { //#7087 - $k[$j++] = 'bwipp.pznBadCharacter#7086'; //#7086 - $k[$j++] = "PZN must contain only digits"; //#7086 - bwipp_raiseerror(); //#7086 - } //#7086 - }); //#7086 - var _A = $_.pzn8 ? 9 : 8; //#7091 - $_.msglen = _A; //#7091 - $_.checksum = 0; //#7092 - for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7097 - $_.i = _D; //#7094 - var _J = $_.pzn8 ? 1 : 2; //#7095 - $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7096 - } //#7096 - $_.checksum = $_.checksum % 11; //#7098 - if ($_.checksum == 10) { //#7101 - $k[$j++] = 'bwipp.pznBadInputSequence#7100'; //#7100 - $k[$j++] = "Incorrect PZN input sequence provided"; //#7100 - bwipp_raiseerror(); //#7100 - } //#7100 - if ($_.barcode.length == ($_.msglen - 1)) { //#7106 - if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7105 - $k[$j++] = 'bwipp.pznBadCheckDigit#7104'; //#7104 - $k[$j++] = "Incorrect PZN check digit provided"; //#7104 - bwipp_raiseerror(); //#7104 - } //#7104 - } //#7104 - var _U = $s($_.msglen); //#7107 - $put(_U, 0, 45); //#7108 - $puti(_U, 1, $_.barcode); //#7109 - $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7110 - $_.msg = _U; //#7111 - $put($_.options, "dontdraw", true); //#7114 - $k[$j++] = 'args'; //#7115 - $k[$j++] = $_.msg; //#7115 - $k[$j++] = $_.options; //#7115 - bwipp_code39(); //#7115 - var _b = $k[--$j]; //#7115 - $_[$k[--$j]] = _b; //#7115 - $_.text = $s($_.msglen + 5); //#7118 - $puti($_.text, 0, "PZN - "); //#7119 - $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7120 - var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7122 - $put($_.args, "txt", _r); //#7122 - $put($_.args, "textxalign", "center"); //#7123 - $put($_.args, "opt", $_.options); //#7124 - $k[$j++] = $_.args; //#7127 - if (!$_.dontdraw) { //#7127 - bwipp_renlinear(); //#7127 + $_ = Object.create($_); //#7098 + $_.dontdraw = false; //#7101 + $_.includetext = false; //#7102 + $_.textfont = "OCR-B"; //#7103 + $_.textsize = 10; //#7104 + $_.textyoffset = -8; //#7105 + $_.textxoffset = 0; //#7106 + $_.height = 1; //#7107 + $k[$j++] = $_; //#7109 + bwipp_processoptions(); //#7109 + $_.options = $k[--$j]; //#7109 + $_.barcode = $k[--$j]; //#7110 + if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#7115 + $k[$j++] = 'bwipp.code32badLength#7114'; //#7114 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#7114 + bwipp_raiseerror(); //#7114 + } //#7114 + $forall($_.barcode, function() { //#7120 + var _5 = $k[--$j]; //#7117 + if ((_5 < 48) || (_5 > 57)) { //#7119 + $k[$j++] = 'bwipp.code32badCharacter#7118'; //#7118 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#7118 + bwipp_raiseerror(); //#7118 + } //#7118 + }); //#7118 + $_.checksum = 0; //#7123 + for (var _6 = 0; _6 <= 7; _6 += 1) { //#7128 + $_.i = _6; //#7125 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7126 + if (($_.i % 2) != 0) { //#7126 + var _B = $k[--$j]; //#7126 + $k[$j++] = _B * 2; //#7126 + } //#7126 + var _C = $k[--$j]; //#7126 + $k[$j++] = _C; //#7126 + if (_C > 9) { //#7126 + var _D = $k[--$j]; //#7126 + $k[$j++] = $f(_D - 9); //#7126 + } //#7126 + $_.checksum = $f($k[--$j] + $_.checksum); //#7127 } //#7127 - $_ = Object.getPrototypeOf($_); //#7129 -} - + $_.checksum = $_.checksum % 10; //#7129 + if ($_.barcode.length == 9) { //#7134 + if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#7133 + $k[$j++] = 'bwipp.code32badCheckDigit#7132'; //#7132 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#7132 + bwipp_raiseerror(); //#7132 + } //#7132 + } //#7132 + var _L = $s(10); //#7135 + $puti(_L, 0, $_.barcode); //#7136 + $put(_L, 8, $f($_.checksum + 48)); //#7137 + $_.text = _L; //#7138 + $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7141 + $_.barcode = $s(6); //#7142 + for (var _S = 0; _S <= 5; _S += 1) { //#7143 + $put($_.barcode, _S, 48); //#7143 + } //#7143 + $puti($_.barcode, 6 - $_.val.length, $_.val); //#7144 + for (var _X = 0; _X <= 5; _X += 1) { //#7151 + var _Z = $get($_.barcode, _X); //#7148 + $k[$j++] = _X; //#7149 + $k[$j++] = _Z; //#7149 + $k[$j++] = _Z; //#7149 + for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7149 + if ($k[--$j] >= $get("AEIO", _a)) { //#7149 + var _e = $k[--$j]; //#7149 + $k[$j++] = $f(_e + 1); //#7149 + } //#7149 + var _f = $k[--$j]; //#7149 + $k[$j++] = _f; //#7149 + $k[$j++] = _f; //#7149 + } //#7149 + $j--; //#7149 + var _h = $k[--$j]; //#7150 + $put($_.barcode, $k[--$j], _h); //#7150 + } //#7150 + $puti($_.text, 1, $geti($_.text, 0, 9)); //#7154 + $put($_.text, 0, 65); //#7155 + $put($_.options, "dontdraw", true); //#7158 + $k[$j++] = 'args'; //#7159 + $k[$j++] = $_.barcode; //#7159 + $k[$j++] = $_.options; //#7159 + bwipp_code39(); //#7159 + var _q = $k[--$j]; //#7159 + var _r = $k[--$j]; //#7159 + $_[_r] = _q; //#7159 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7161 + $put($_.args, "textxalign", "center"); //#7162 + $put($_.args, "opt", $_.options); //#7163 + $k[$j++] = $_.args; //#7166 + if (!$_.dontdraw) { //#7166 + bwipp_renlinear(); //#7166 + } //#7166 + $_ = Object.getPrototypeOf($_); //#7168 +} //bwipp_code32 +function bwipp_pzn() { + $_ = Object.create($_); //#7197 + $_.dontdraw = false; //#7200 + $_.includetext = false; //#7201 + $_.textfont = "OCR-B"; //#7202 + $_.textsize = 10; //#7203 + $_.textyoffset = -8; //#7204 + $_.textxoffset = 0; //#7205 + $_.height = 1; //#7206 + $_.pzn8 = false; //#7207 + $k[$j++] = $_; //#7209 + bwipp_processoptions(); //#7209 + $_.options = $k[--$j]; //#7209 + $_.barcode = $k[--$j]; //#7210 + if ($_.pzn8) { //#7219 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7216 + $k[$j++] = 'bwipp.pzn8badLength#7215'; //#7215 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7215 + bwipp_raiseerror(); //#7215 + } //#7215 + } else { //#7219 + if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7220 + $k[$j++] = 'bwipp.pzn7badLength#7219'; //#7219 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7219 + bwipp_raiseerror(); //#7219 + } //#7219 + } //#7219 + $forall($_.barcode, function() { //#7226 + var _8 = $k[--$j]; //#7223 + if ((_8 < 48) || (_8 > 57)) { //#7225 + $k[$j++] = 'bwipp.pznBadCharacter#7224'; //#7224 + $k[$j++] = "PZN must contain only digits"; //#7224 + bwipp_raiseerror(); //#7224 + } //#7224 + }); //#7224 + var _A = $_.pzn8 ? 9 : 8; //#7229 + $_.msglen = _A; //#7229 + $_.checksum = 0; //#7230 + for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7235 + $_.i = _D; //#7232 + var _J = $_.pzn8 ? 1 : 2; //#7233 + $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7234 + } //#7234 + $_.checksum = $_.checksum % 11; //#7236 + if ($_.checksum == 10) { //#7239 + $k[$j++] = 'bwipp.pznBadInputSequence#7238'; //#7238 + $k[$j++] = "Incorrect PZN input sequence provided"; //#7238 + bwipp_raiseerror(); //#7238 + } //#7238 + if ($_.barcode.length == ($_.msglen - 1)) { //#7244 + if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7243 + $k[$j++] = 'bwipp.pznBadCheckDigit#7242'; //#7242 + $k[$j++] = "Incorrect PZN check digit provided"; //#7242 + bwipp_raiseerror(); //#7242 + } //#7242 + } //#7242 + var _U = $s($_.msglen); //#7245 + $put(_U, 0, 45); //#7246 + $puti(_U, 1, $_.barcode); //#7247 + $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7248 + $_.msg = _U; //#7249 + $put($_.options, "dontdraw", true); //#7252 + $k[$j++] = 'args'; //#7253 + $k[$j++] = $_.msg; //#7253 + $k[$j++] = $_.options; //#7253 + bwipp_code39(); //#7253 + var _b = $k[--$j]; //#7253 + $_[$k[--$j]] = _b; //#7253 + $_.text = $s($_.msglen + 5); //#7256 + $puti($_.text, 0, "PZN - "); //#7257 + $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7258 + var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7260 + $put($_.args, "txt", _r); //#7260 + $put($_.args, "textxalign", "center"); //#7261 + $put($_.args, "opt", $_.options); //#7262 + $k[$j++] = $_.args; //#7265 + if (!$_.dontdraw) { //#7265 + bwipp_renlinear(); //#7265 + } //#7265 + $_ = Object.getPrototypeOf($_); //#7267 +} //bwipp_pzn function bwipp_code93() { - $_ = Object.create($_); //#7160 - $_.dontdraw = false; //#7163 - $_.includecheck = false; //#7164 - $_.includetext = false; //#7165 - $_.textfont = "OCR-B"; //#7166 - $_.textsize = 10; //#7167 - $_.textyoffset = -8; //#7168 - $_.height = 1; //#7169 - $_.parse = false; //#7170 - $_.parsefnc = false; //#7171 - $k[$j++] = $_; //#7173 - bwipp_processoptions(); //#7173 - $_.options = $k[--$j]; //#7173 - $_.barcode = $k[--$j]; //#7174 - bwipp_loadctx(bwipp_code93) //#7176 - if (!bwipp_code93.__7204__) { //#7204 - $_ = Object.create($_); //#7204 - $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7190 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7193 - $_.charvals = new Map; //#7194 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#7195 - $put($_.charvals, $get($_.barchars, _3), _3); //#7195 - } //#7195 - $_.sft1 = -1; //#7197 - $_.sft2 = -2; //#7197 - $_.sft3 = -3; //#7197 - $_.sft4 = -4; //#7197 - var _7 = $_.charvals; //#7199 - $put(_7, $_.sft1, 43); //#7199 - $put($_.charvals, $_.sft2, 44); //#7200 - $put($_.charvals, $_.sft3, 45); //#7201 - $put($_.charvals, $_.sft4, 46); //#7202 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7202 - bwipp_code93.__7204__ = 1; //#7202 - $_ = Object.getPrototypeOf($_); //#7202 - } //#7202 + $_ = Object.create($_); //#7298 + $_.dontdraw = false; //#7301 + $_.includecheck = false; //#7302 + $_.includetext = false; //#7303 + $_.textfont = "OCR-B"; //#7304 + $_.textsize = 10; //#7305 + $_.textyoffset = -8; //#7306 + $_.height = 1; //#7307 + $_.parse = false; //#7308 + $_.parsefnc = false; //#7309 + $k[$j++] = $_; //#7311 + bwipp_processoptions(); //#7311 + $_.options = $k[--$j]; //#7311 + $_.barcode = $k[--$j]; //#7312 + bwipp_loadctx(bwipp_code93) //#7314 + if (!bwipp_code93.__7342__) { //#7342 + $_ = Object.create($_); //#7342 + $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7328 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7331 + $_.charvals = new Map; //#7332 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#7333 + $put($_.charvals, $get($_.barchars, _3), _3); //#7333 + } //#7333 + $_.sft1 = -1; //#7335 + $_.sft2 = -2; //#7335 + $_.sft3 = -3; //#7335 + $_.sft4 = -4; //#7335 + var _7 = $_.charvals; //#7337 + $put(_7, $_.sft1, 43); //#7337 + $put($_.charvals, $_.sft2, 44); //#7338 + $put($_.charvals, $_.sft3, 45); //#7339 + $put($_.charvals, $_.sft4, 46); //#7340 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7340 + bwipp_code93.__7342__ = 1; //#7340 + $_ = Object.getPrototypeOf($_); //#7340 + } //#7340 var _M = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -9782,1272 +10038,1274 @@ function bwipp_code93() { ["SFT%", $_.sft2], ["SFT/", $_.sft3], ["SFT+", $_.sft4] - ]); //#7213 - $_.fncvals = _M; //#7214 - $k[$j++] = 'msg'; //#7215 - $k[$j++] = $_.barcode; //#7215 - $k[$j++] = $_.fncvals; //#7215 - bwipp_parseinput(); //#7215 - var _P = $k[--$j]; //#7215 - $_[$k[--$j]] = _P; //#7215 - $_.msglen = $_.msg.length; //#7216 - $forall($_.msg, function() { //#7223 - var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7220 - if (!_V) { //#7222 - $k[$j++] = 'bwipp.code93BadCharacter#7221'; //#7221 - $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7221 - bwipp_raiseerror(); //#7221 - } //#7221 - }); //#7221 - if ($_.includecheck) { //#7228 - $_.sbs = $s(($_.msglen * 6) + 25); //#7226 - } else { //#7228 - $_.sbs = $s(($_.msglen * 6) + 13); //#7228 - } //#7228 - $_.txt = $a($_.msglen); //#7230 - $puti($_.sbs, 0, $get($_.encs, 47)); //#7233 - $_.checksum1 = 0; //#7235 - $_.checksum2 = 0; //#7235 - for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7244 - $_.i = _i; //#7237 - $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7238 - $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7239 - var _v = $get($_.msg, $_.i); //#7240 - $k[$j++] = 'char'; //#7240 - $k[$j++] = _v; //#7240 - if (_v < 0) { //#7240 - $j--; //#7240 - $k[$j++] = " "; //#7240 - } else { //#7240 - var _w = $s(1); //#7240 - $put(_w, 0, $k[--$j]); //#7240 - $k[$j++] = _w; //#7240 - } //#7240 - var _y = $k[--$j]; //#7240 - $_[$k[--$j]] = _y; //#7240 - $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7241 - $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7242 - $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7243 - } //#7243 - if ($_.includecheck) { //#7256 - $_.checksum1 = $_.checksum1 % 47; //#7248 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7249 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7250 - $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7251 - $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7253 - } else { //#7256 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7256 - } //#7256 - $k[$j++] = Infinity; //#7268 - $k[$j++] = Infinity; //#7262 - var _1c = $_.sbs; //#7262 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7262 - $k[$j++] = $get(_1c, _1d) - 48; //#7262 - } //#7262 - var _1g = $a(); //#7262 - $k[$j++] = Infinity; //#7263 - for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7263 - $k[$j++] = $_.height; //#7263 - } //#7263 - var _1l = $a(); //#7263 - $k[$j++] = Infinity; //#7264 - for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7264 - $k[$j++] = 0; //#7264 - } //#7264 - var _1p = $a(); //#7264 - $k[$j++] = 'ren'; //#7267 - $k[$j++] = bwipp_renlinear; //#7267 - $k[$j++] = 'sbs'; //#7267 - $k[$j++] = _1g; //#7267 - $k[$j++] = 'bhs'; //#7267 - $k[$j++] = _1l; //#7267 - $k[$j++] = 'bbs'; //#7267 - $k[$j++] = _1p; //#7267 - if ($_.includetext) { //#7267 - $k[$j++] = 'txt'; //#7266 - $k[$j++] = $_.txt; //#7266 - } //#7266 - $k[$j++] = 'opt'; //#7268 - $k[$j++] = $_.options; //#7268 - var _1t = $d(); //#7268 - $k[$j++] = _1t; //#7271 - if (!$_.dontdraw) { //#7271 - bwipp_renlinear(); //#7271 - } //#7271 - $_ = Object.getPrototypeOf($_); //#7273 - $_ = Object.getPrototypeOf($_); //#7275 -} - + ]); //#7351 + $_.fncvals = _M; //#7352 + $k[$j++] = 'msg'; //#7353 + $k[$j++] = $_.barcode; //#7353 + $k[$j++] = $_.fncvals; //#7353 + bwipp_parseinput(); //#7353 + var _P = $k[--$j]; //#7353 + $_[$k[--$j]] = _P; //#7353 + $_.msglen = $_.msg.length; //#7354 + $forall($_.msg, function() { //#7361 + var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7358 + if (!_V) { //#7360 + $k[$j++] = 'bwipp.code93BadCharacter#7359'; //#7359 + $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7359 + bwipp_raiseerror(); //#7359 + } //#7359 + }); //#7359 + if ($_.includecheck) { //#7366 + $_.sbs = $s(($_.msglen * 6) + 25); //#7364 + } else { //#7366 + $_.sbs = $s(($_.msglen * 6) + 13); //#7366 + } //#7366 + $_.txt = $a($_.msglen); //#7368 + $puti($_.sbs, 0, $get($_.encs, 47)); //#7371 + $_.checksum1 = 0; //#7373 + $_.checksum2 = 0; //#7373 + for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7382 + $_.i = _i; //#7375 + $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7376 + $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7377 + var _v = $get($_.msg, $_.i); //#7378 + $k[$j++] = 'char'; //#7378 + $k[$j++] = _v; //#7378 + if (_v < 0) { //#7378 + $j--; //#7378 + $k[$j++] = " "; //#7378 + } else { //#7378 + var _w = $s(1); //#7378 + $put(_w, 0, $k[--$j]); //#7378 + $k[$j++] = _w; //#7378 + } //#7378 + var _y = $k[--$j]; //#7378 + $_[$k[--$j]] = _y; //#7378 + $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7379 + $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7380 + $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7381 + } //#7381 + if ($_.includecheck) { //#7394 + $_.checksum1 = $_.checksum1 % 47; //#7386 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7387 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7388 + $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7389 + $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7391 + } else { //#7394 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7394 + } //#7394 + $k[$j++] = Infinity; //#7398 + $k[$j++] = Infinity; //#7400 + var _1c = $_.sbs; //#7400 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7400 + $k[$j++] = $get(_1c, _1d) - 48; //#7400 + } //#7400 + var _1g = $a(); //#7400 + $k[$j++] = Infinity; //#7401 + for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7401 + $k[$j++] = $_.height; //#7401 + } //#7401 + var _1l = $a(); //#7401 + $k[$j++] = Infinity; //#7402 + for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7402 + $k[$j++] = 0; //#7402 + } //#7402 + var _1p = $a(); //#7402 + $k[$j++] = 'ren'; //#7405 + $k[$j++] = bwipp_renlinear; //#7405 + $k[$j++] = 'sbs'; //#7405 + $k[$j++] = _1g; //#7405 + $k[$j++] = 'bhs'; //#7405 + $k[$j++] = _1l; //#7405 + $k[$j++] = 'bbs'; //#7405 + $k[$j++] = _1p; //#7405 + if ($_.includetext) { //#7405 + $k[$j++] = 'txt'; //#7404 + $k[$j++] = $_.txt; //#7404 + } //#7404 + $k[$j++] = 'opt'; //#7406 + $k[$j++] = $_.options; //#7406 + var _1t = $d(); //#7406 + $k[$j++] = _1t; //#7409 + if (!$_.dontdraw) { //#7409 + bwipp_renlinear(); //#7409 + } //#7409 + $_ = Object.getPrototypeOf($_); //#7411 + $_ = Object.getPrototypeOf($_); //#7413 +} //bwipp_code93 function bwipp_code93ext() { - $_ = Object.create($_); //#7307 - $_.dontdraw = false; //#7310 - $_.includetext = false; //#7311 - $_.parse = false; //#7312 - $k[$j++] = $_; //#7314 - bwipp_processoptions(); //#7314 - $_.options = $k[--$j]; //#7314 - $_.barcode = $k[--$j]; //#7315 - bwipp_loadctx(bwipp_code93ext) //#7317 + $_ = Object.create($_); //#7445 + $_.dontdraw = false; //#7448 + $_.includetext = false; //#7449 + $_.parse = false; //#7450 + $k[$j++] = $_; //#7452 + bwipp_processoptions(); //#7452 + $_.options = $k[--$j]; //#7452 + $_.barcode = $k[--$j]; //#7453 + bwipp_loadctx(bwipp_code93ext) //#7455 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#7323 - $_.fncvals = _3; //#7324 - $k[$j++] = 'barcode'; //#7325 - $k[$j++] = $_.barcode; //#7325 - $k[$j++] = $_.fncvals; //#7325 - bwipp_parseinput(); //#7325 - var _6 = $k[--$j]; //#7325 - var _7 = $k[--$j]; //#7325 - $_[_7] = _6; //#7325 - $_.barlen = $_.barcode.length; //#7326 - delete $_.options["parse"]; //#7327 - if (!bwipp_code93ext.__7349__) { //#7349 - $_ = Object.create($_); //#7349 - $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7348 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7348 - bwipp_code93ext.__7349__ = 1; //#7348 - $_ = Object.getPrototypeOf($_); //#7348 - } //#7348 - $_.newcode = $s($_.barlen * 6); //#7351 - $_.newtext = $s($_.barlen * 6); //#7352 - $_.j = 0; //#7353 - $_.k = 0; //#7353 - for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7367 - $_.i = _I; //#7355 - var _L = $get($_.barcode, $_.i); //#7356 - $k[$j++] = _L; //#7359 - if (_L > 127) { //#7359 - $j--; //#7358 - $k[$j++] = 'bwipp.code93extbadCharacter#7358'; //#7358 - $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7358 - bwipp_raiseerror(); //#7358 - } //#7358 - $_.extchar = $get($_.extencs, $k[--$j]); //#7360 - $_.extlen = $_.extchar.length; //#7361 - $puti($_.newcode, $_.j, $_.extchar); //#7362 - var _X = $get($_.barcode, $_.i); //#7363 - $k[$j++] = $_.newtext; //#7363 - $k[$j++] = $_.k; //#7363 - $k[$j++] = _X; //#7363 - if ((_X < 32) || (_X == 127)) { //#7363 - $j--; //#7363 - $k[$j++] = 32; //#7363 - } //#7363 - var _Y = $k[--$j]; //#7363 - var _Z = $k[--$j]; //#7363 - $put($k[--$j], _Z, _Y); //#7363 - if ($_.extlen != 1) { //#7364 - $put($_.newtext, $_.k + 1, 32); //#7364 - } //#7364 - $_.j = $_.j + $_.extlen; //#7365 - var _i = ($_.extlen == 1) ? 1 : 2; //#7366 - $_.k = $_.k + _i; //#7366 - } //#7366 - $_.newcode = $geti($_.newcode, 0, $_.j); //#7368 - $_.newtext = $geti($_.newtext, 0, $_.k); //#7369 - $put($_.options, "dontdraw", true); //#7372 - $put($_.options, "parsefnc", true); //#7373 - $k[$j++] = 'args'; //#7374 - $k[$j++] = $_.newcode; //#7374 - $k[$j++] = $_.options; //#7374 - bwipp_code93(); //#7374 - var _t = $k[--$j]; //#7374 - $_[$k[--$j]] = _t; //#7374 - if ($_.includetext) { //#7386 - $_.txt = $get($_.args, "txt"); //#7378 - for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7384 - $_.i = _10; //#7380 - $_.txtentry = $get($_.txt, $_.i); //#7381 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7382 - $put($_.txt, $_.i, $_.txtentry); //#7383 - } //#7383 - $put($_.args, "txt", $_.txt); //#7385 - } //#7385 - $put($_.args, "opt", $_.options); //#7387 - $k[$j++] = $_.args; //#7390 - if (!$_.dontdraw) { //#7390 - bwipp_renlinear(); //#7390 - } //#7390 - $_ = Object.getPrototypeOf($_); //#7392 - $_ = Object.getPrototypeOf($_); //#7394 -} - -function bwipp_interleaved2of5() { - $_ = Object.create($_); //#7424 - $_.dontdraw = false; //#7427 - $_.includecheck = false; //#7428 - $_.includetext = false; //#7429 - $_.includecheckintext = false; //#7430 - $_.textfont = "OCR-B"; //#7431 - $_.textsize = 10; //#7432 - $_.textyoffset = -8; //#7433 - $_.height = 1; //#7434 - $k[$j++] = $_; //#7436 - bwipp_processoptions(); //#7436 - $_.options = $k[--$j]; //#7436 - $_.barcode = $k[--$j]; //#7437 - bwipp_loadctx(bwipp_interleaved2of5) //#7439 - $forall($_.barcode, function() { //#7446 - var _3 = $k[--$j]; //#7443 - if ((_3 < 48) || (_3 > 57)) { //#7445 - $k[$j++] = 'bwipp.interleaved2of5badCharacter#7444'; //#7444 - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7444 - bwipp_raiseerror(); //#7444 - } //#7444 - }); //#7444 - $_.barlen = $_.barcode.length; //#7448 - if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7459 - $_.pad = $s($_.barlen + 1); //#7454 - $put($_.pad, 0, 48); //#7455 - $puti($_.pad, 1, $_.barcode); //#7456 - $_.barcode = $_.pad; //#7457 - $_.barlen = $_.barlen + 1; //#7458 - } //#7458 - if ($_.includecheck) { //#7478 - $_.checksum = 0; //#7463 - for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7471 - $_.i = _J; //#7465 - if (($_.i % 2) == 0) { //#7469 - $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7467 - } else { //#7469 - $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7469 - } //#7469 - } //#7469 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7472 - $_.pad = $s($_.barlen + 1); //#7473 - $puti($_.pad, 0, $_.barcode); //#7474 - $put($_.pad, $_.barlen, $_.checksum + 48); //#7475 - $_.barcode = $_.pad; //#7476 - $_.barlen = $_.barlen + 1; //#7477 - } //#7477 - if (!bwipp_interleaved2of5.__7490__) { //#7490 - $_ = Object.create($_); //#7490 - $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7486 - $_.barchars = "0123456789"; //#7489 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7489 - bwipp_interleaved2of5.__7490__ = 1; //#7489 - $_ = Object.getPrototypeOf($_); //#7489 - } //#7489 - $_.sbs = $s(($_.barlen * 5) + 8); //#7492 - $_.txt = $a($_.barlen); //#7493 - $puti($_.sbs, 0, $get($_.encs, 10)); //#7496 - for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7530 - $_.i = _o; //#7499 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7501 - $j--; //#7502 - $_.indx = $k[--$j].length; //#7503 - $j -= 2; //#7504 - $_.enca = $get($_.encs, $_.indx); //#7505 - $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7507 - $j--; //#7508 - $_.indx = $k[--$j].length; //#7509 - $j -= 2; //#7510 - $_.encb = $get($_.encs, $_.indx); //#7511 - $_.intl = $s($_.enca.length * 2); //#7514 - for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7521 - $_.j = _19; //#7516 - $_.achar = $get($_.enca, $_.j); //#7517 - $_.bchar = $get($_.encb, $_.j); //#7518 - $put($_.intl, $_.j * 2, $_.achar); //#7519 - $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7520 - } //#7520 - $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7523 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7524 - if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7528 - $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7526 - } else { //#7528 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7528 - } //#7528 + ]); //#7461 + $_.fncvals = _3; //#7462 + $k[$j++] = 'barcode'; //#7463 + $k[$j++] = $_.barcode; //#7463 + $k[$j++] = $_.fncvals; //#7463 + bwipp_parseinput(); //#7463 + var _6 = $k[--$j]; //#7463 + var _7 = $k[--$j]; //#7463 + $_[_7] = _6; //#7463 + $_.barlen = $_.barcode.length; //#7464 + delete $_.options["parse"]; //#7465 + if (!bwipp_code93ext.__7487__) { //#7487 + $_ = Object.create($_); //#7487 + $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7486 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7486 + bwipp_code93ext.__7487__ = 1; //#7486 + $_ = Object.getPrototypeOf($_); //#7486 + } //#7486 + $_.newcode = $s($_.barlen * 6); //#7489 + $_.newtext = $s($_.barlen * 6); //#7490 + $_.j = 0; //#7491 + $_.k = 0; //#7491 + for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7505 + $_.i = _I; //#7493 + var _L = $get($_.barcode, $_.i); //#7494 + $k[$j++] = _L; //#7497 + if (_L > 127) { //#7497 + $j--; //#7496 + $k[$j++] = 'bwipp.code93extbadCharacter#7496'; //#7496 + $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7496 + bwipp_raiseerror(); //#7496 + } //#7496 + $_.extchar = $get($_.extencs, $k[--$j]); //#7498 + $_.extlen = $_.extchar.length; //#7499 + $puti($_.newcode, $_.j, $_.extchar); //#7500 + var _X = $get($_.barcode, $_.i); //#7501 + $k[$j++] = $_.newtext; //#7501 + $k[$j++] = $_.k; //#7501 + $k[$j++] = _X; //#7501 + if ((_X < 32) || (_X == 127)) { //#7501 + $j--; //#7501 + $k[$j++] = 32; //#7501 + } //#7501 + var _Y = $k[--$j]; //#7501 + var _Z = $k[--$j]; //#7501 + $put($k[--$j], _Z, _Y); //#7501 + if ($_.extlen != 1) { //#7502 + $put($_.newtext, $_.k + 1, 32); //#7502 + } //#7502 + $_.j = $_.j + $_.extlen; //#7503 + var _i = ($_.extlen == 1) ? 1 : 2; //#7504 + $_.k = $_.k + _i; //#7504 + } //#7504 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7506 + $_.newtext = $geti($_.newtext, 0, $_.k); //#7507 + $put($_.options, "dontdraw", true); //#7510 + $put($_.options, "parsefnc", true); //#7511 + $k[$j++] = 'args'; //#7512 + $k[$j++] = $_.newcode; //#7512 + $k[$j++] = $_.options; //#7512 + bwipp_code93(); //#7512 + var _t = $k[--$j]; //#7512 + $_[$k[--$j]] = _t; //#7512 + if ($_.includetext) { //#7524 + $_.txt = $get($_.args, "txt"); //#7516 + for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7522 + $_.i = _10; //#7518 + $_.txtentry = $get($_.txt, $_.i); //#7519 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7520 + $put($_.txt, $_.i, $_.txtentry); //#7521 + } //#7521 + $put($_.args, "txt", $_.txt); //#7523 + } //#7523 + $put($_.args, "opt", $_.options); //#7525 + $k[$j++] = $_.args; //#7528 + if (!$_.dontdraw) { //#7528 + bwipp_renlinear(); //#7528 } //#7528 - $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7533 - $k[$j++] = Infinity; //#7546 - $k[$j++] = Infinity; //#7538 - var _1y = $_.sbs; //#7538 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7538 - $k[$j++] = $get(_1y, _1z) - 48; //#7538 - } //#7538 - var _22 = $a(); //#7538 - $k[$j++] = Infinity; //#7539 - for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7539 - $k[$j++] = $_.height; //#7539 - } //#7539 - var _27 = $a(); //#7539 - $k[$j++] = Infinity; //#7540 - for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7540 - $k[$j++] = 0; //#7540 - } //#7540 - var _2B = $a(); //#7540 - $k[$j++] = 'ren'; //#7543 - $k[$j++] = bwipp_renlinear; //#7543 - $k[$j++] = 'sbs'; //#7543 - $k[$j++] = _22; //#7543 - $k[$j++] = 'bhs'; //#7543 - $k[$j++] = _27; //#7543 - $k[$j++] = 'bbs'; //#7543 - $k[$j++] = _2B; //#7543 - if ($_.includetext) { //#7543 - $k[$j++] = 'txt'; //#7542 - $k[$j++] = $_.txt; //#7542 - } //#7542 - $k[$j++] = 'barratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'spaceratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'opt'; //#7546 - $k[$j++] = $_.options; //#7546 - var _2F = $d(); //#7546 - $k[$j++] = _2F; //#7549 - if (!$_.dontdraw) { //#7549 - bwipp_renlinear(); //#7549 - } //#7549 - $_ = Object.getPrototypeOf($_); //#7551 - $_ = Object.getPrototypeOf($_); //#7553 -} - + $_ = Object.getPrototypeOf($_); //#7530 + $_ = Object.getPrototypeOf($_); //#7532 +} //bwipp_code93ext +function bwipp_interleaved2of5() { + $_ = Object.create($_); //#7562 + $_.dontdraw = false; //#7565 + $_.includecheck = false; //#7566 + $_.includetext = false; //#7567 + $_.includecheckintext = false; //#7568 + $_.textfont = "OCR-B"; //#7569 + $_.textsize = 10; //#7570 + $_.textyoffset = -8; //#7571 + $_.height = 1; //#7572 + $k[$j++] = $_; //#7574 + bwipp_processoptions(); //#7574 + $_.options = $k[--$j]; //#7574 + $_.barcode = $k[--$j]; //#7575 + bwipp_loadctx(bwipp_interleaved2of5) //#7577 + $forall($_.barcode, function() { //#7584 + var _3 = $k[--$j]; //#7581 + if ((_3 < 48) || (_3 > 57)) { //#7583 + $k[$j++] = 'bwipp.interleaved2of5badCharacter#7582'; //#7582 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7582 + bwipp_raiseerror(); //#7582 + } //#7582 + }); //#7582 + $_.barlen = $_.barcode.length; //#7586 + if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7597 + $_.pad = $s($_.barlen + 1); //#7592 + $put($_.pad, 0, 48); //#7593 + $puti($_.pad, 1, $_.barcode); //#7594 + $_.barcode = $_.pad; //#7595 + $_.barlen = $_.barlen + 1; //#7596 + } //#7596 + if ($_.includecheck) { //#7616 + $_.checksum = 0; //#7601 + for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7609 + $_.i = _J; //#7603 + if (($_.i % 2) == 0) { //#7607 + $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7605 + } else { //#7607 + $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7607 + } //#7607 + } //#7607 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7610 + $_.pad = $s($_.barlen + 1); //#7611 + $puti($_.pad, 0, $_.barcode); //#7612 + $put($_.pad, $_.barlen, $_.checksum + 48); //#7613 + $_.barcode = $_.pad; //#7614 + $_.barlen = $_.barlen + 1; //#7615 + } //#7615 + if (!bwipp_interleaved2of5.__7628__) { //#7628 + $_ = Object.create($_); //#7628 + $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7624 + $_.barchars = "0123456789"; //#7627 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7627 + bwipp_interleaved2of5.__7628__ = 1; //#7627 + $_ = Object.getPrototypeOf($_); //#7627 + } //#7627 + $_.sbs = $s(($_.barlen * 5) + 8); //#7630 + $_.txt = $a($_.barlen); //#7631 + $puti($_.sbs, 0, $get($_.encs, 10)); //#7634 + for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7668 + $_.i = _o; //#7637 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7639 + $j--; //#7640 + $_.indx = $k[--$j].length; //#7641 + $j -= 2; //#7642 + $_.enca = $get($_.encs, $_.indx); //#7643 + $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7645 + $j--; //#7646 + $_.indx = $k[--$j].length; //#7647 + $j -= 2; //#7648 + $_.encb = $get($_.encs, $_.indx); //#7649 + $_.intl = $s($_.enca.length * 2); //#7652 + for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7659 + $_.j = _19; //#7654 + $_.achar = $get($_.enca, $_.j); //#7655 + $_.bchar = $get($_.encb, $_.j); //#7656 + $put($_.intl, $_.j * 2, $_.achar); //#7657 + $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7658 + } //#7658 + $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7661 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7662 + if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7666 + $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7664 + } else { //#7666 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7666 + } //#7666 + } //#7666 + $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7671 + $k[$j++] = Infinity; //#7674 + $k[$j++] = Infinity; //#7676 + var _1y = $_.sbs; //#7676 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7676 + $k[$j++] = $get(_1y, _1z) - 48; //#7676 + } //#7676 + var _22 = $a(); //#7676 + $k[$j++] = Infinity; //#7677 + for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7677 + $k[$j++] = $_.height; //#7677 + } //#7677 + var _27 = $a(); //#7677 + $k[$j++] = Infinity; //#7678 + for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7678 + $k[$j++] = 0; //#7678 + } //#7678 + var _2B = $a(); //#7678 + $k[$j++] = 'ren'; //#7681 + $k[$j++] = bwipp_renlinear; //#7681 + $k[$j++] = 'sbs'; //#7681 + $k[$j++] = _22; //#7681 + $k[$j++] = 'bhs'; //#7681 + $k[$j++] = _27; //#7681 + $k[$j++] = 'bbs'; //#7681 + $k[$j++] = _2B; //#7681 + if ($_.includetext) { //#7681 + $k[$j++] = 'txt'; //#7680 + $k[$j++] = $_.txt; //#7680 + } //#7680 + $k[$j++] = 'barratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'spaceratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'opt'; //#7684 + $k[$j++] = $_.options; //#7684 + var _2F = $d(); //#7684 + $k[$j++] = _2F; //#7687 + if (!$_.dontdraw) { //#7687 + bwipp_renlinear(); //#7687 + } //#7687 + $_ = Object.getPrototypeOf($_); //#7689 + $_ = Object.getPrototypeOf($_); //#7691 +} //bwipp_interleaved2of5 function bwipp_itf14() { - $_ = Object.create($_); //#7582 - $_.dontdraw = false; //#7585 - $_.includetext = false; //#7586 - $_.includecheckintext = true; //#7587 - $_.textfont = "OCR-B"; //#7588 - $_.textsize = 10; //#7589 - $_.textxoffset = 0; //#7590 - $_.textyoffset = 3; //#7591 - $_.height = 0.5; //#7592 - $_.showborder = true; //#7593 - $_.borderwidth = 4; //#7594 - $_.borderleft = 15; //#7595 - $_.borderright = 15; //#7596 - $k[$j++] = $_; //#7598 - bwipp_processoptions(); //#7598 - $_.options = $k[--$j]; //#7598 - $_.barcode = $k[--$j]; //#7599 - $_.text = $_.barcode; //#7602 - var _3 = $_.barcode; //#7603 - $k[$j++] = $s(_3.length); //#7604 - $k[$j++] = 0; //#7604 - $forall(_3, function() { //#7604 - var _5 = $k[--$j]; //#7604 - $k[$j++] = _5; //#7604 - if (_5 != 32) { //#7604 - var _6 = $k[--$j]; //#7604 - var _7 = $k[--$j]; //#7604 - var _8 = $k[--$j]; //#7604 - $put(_8, _7, _6); //#7604 - $k[$j++] = _8; //#7604 - $k[$j++] = $f(_7 + 1); //#7604 - } else { //#7604 - $j--; //#7604 - } //#7604 - }); //#7604 - var _9 = $k[--$j]; //#7605 - $_.barcode = $geti($k[--$j], 0, _9); //#7605 - $_.hasspace = $_.text.length != $_.barcode.length; //#7606 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7611 - $k[$j++] = 'bwipp.itf14badLength#7610'; //#7610 - $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7610 - bwipp_raiseerror(); //#7610 - } //#7610 - var _G = $_.barcode; //#7612 - for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7616 - var _J = $get(_G, _H); //#7616 - if ((_J < 48) || (_J > 57)) { //#7615 - $k[$j++] = 'bwipp.itf14badCharacter#7614'; //#7614 - $k[$j++] = "ITF-14 must contain only digits"; //#7614 - bwipp_raiseerror(); //#7614 - } //#7614 - } //#7614 - $_.checksum = 0; //#7619 - for (var _K = 0; _K <= 12; _K += 1) { //#7623 - $_.i = _K; //#7621 - $k[$j++] = 'checksum'; //#7622 - $k[$j++] = $_.checksum; //#7622 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7622 - if (($_.i % 2) == 0) { //#7622 - var _Q = $k[--$j]; //#7622 - $k[$j++] = _Q * 3; //#7622 - } //#7622 - var _R = $k[--$j]; //#7622 - var _S = $k[--$j]; //#7622 - $_[$k[--$j]] = $f(_S + _R); //#7622 - } //#7622 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7624 - if ($_.barcode.length == 14) { //#7638 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7628 - $k[$j++] = 'bwipp.itf14badCheckDigit#7627'; //#7627 - $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7627 - bwipp_raiseerror(); //#7627 - } //#7627 - } else { //#7638 - var _Z = $s(14); //#7630 - $puti(_Z, 0, $_.barcode); //#7631 - $put(_Z, 13, $_.checksum + 48); //#7632 - $_.barcode = _Z; //#7633 - var _e = $_.hasspace ? 2 : 1; //#7634 - var _f = $s($_.text.length + _e); //#7634 - $puti(_f, _f.length - 2, " "); //#7635 - $put(_f, _f.length - 1, $_.checksum + 48); //#7636 - $puti(_f, 0, $_.text); //#7637 - $_.text = _f; //#7638 - } //#7638 - var _i = $_.options; //#7642 - $put(_i, "dontdraw", true); //#7642 - $put($_.options, "showborder", $_.showborder); //#7643 - $put($_.options, "borderwidth", $_.borderwidth); //#7644 - $put($_.options, "borderleft", $_.borderleft); //#7645 - $put($_.options, "borderright", $_.borderright); //#7646 - var _r = $_.options; //#7647 - $put(_r, "height", $_.height); //#7647 - $put($_.options, "textyoffset", $_.textyoffset); //#7648 - $k[$j++] = 'args'; //#7649 - $k[$j++] = $_.barcode; //#7649 - $k[$j++] = $_.options; //#7649 - bwipp_interleaved2of5(); //#7649 - var _x = $k[--$j]; //#7649 - $_[$k[--$j]] = _x; //#7649 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7651 - $put($_.args, "textxalign", "center"); //#7652 - $put($_.args, "opt", $_.options); //#7653 - $k[$j++] = $_.args; //#7656 - if (!$_.dontdraw) { //#7656 - bwipp_renlinear(); //#7656 - } //#7656 - $_ = Object.getPrototypeOf($_); //#7658 -} - + $_ = Object.create($_); //#7720 + $_.dontdraw = false; //#7723 + $_.includetext = false; //#7724 + $_.includecheckintext = true; //#7725 + $_.textfont = "OCR-B"; //#7726 + $_.textsize = 10; //#7727 + $_.textxoffset = 0; //#7728 + $_.textyoffset = 3.5; //#7729 + $_.height = 0.5; //#7730 + $_.showborder = true; //#7731 + $_.borderwidth = 4; //#7732 + $_.borderleft = 10; //#7733 + $_.borderright = 10; //#7734 + $_.bordertop = -0.55; //#7735 + $_.borderbottom = -0.55; //#7736 + $k[$j++] = $_; //#7738 + bwipp_processoptions(); //#7738 + $_.options = $k[--$j]; //#7738 + $_.barcode = $k[--$j]; //#7739 + $_.text = $_.barcode; //#7742 + var _3 = $_.barcode; //#7743 + $k[$j++] = $s(_3.length); //#7744 + $k[$j++] = 0; //#7744 + $forall(_3, function() { //#7744 + var _5 = $k[--$j]; //#7744 + $k[$j++] = _5; //#7744 + if (_5 != 32) { //#7744 + var _6 = $k[--$j]; //#7744 + var _7 = $k[--$j]; //#7744 + var _8 = $k[--$j]; //#7744 + $put(_8, _7, _6); //#7744 + $k[$j++] = _8; //#7744 + $k[$j++] = $f(_7 + 1); //#7744 + } else { //#7744 + $j--; //#7744 + } //#7744 + }); //#7744 + var _9 = $k[--$j]; //#7745 + $_.barcode = $geti($k[--$j], 0, _9); //#7745 + $_.hasspace = $_.text.length != $_.barcode.length; //#7746 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7751 + $k[$j++] = 'bwipp.itf14badLength#7750'; //#7750 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7750 + bwipp_raiseerror(); //#7750 + } //#7750 + var _G = $_.barcode; //#7752 + for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7756 + var _J = $get(_G, _H); //#7756 + if ((_J < 48) || (_J > 57)) { //#7755 + $k[$j++] = 'bwipp.itf14badCharacter#7754'; //#7754 + $k[$j++] = "ITF-14 must contain only digits"; //#7754 + bwipp_raiseerror(); //#7754 + } //#7754 + } //#7754 + $_.checksum = 0; //#7759 + for (var _K = 0; _K <= 12; _K += 1) { //#7763 + $_.i = _K; //#7761 + $k[$j++] = 'checksum'; //#7762 + $k[$j++] = $_.checksum; //#7762 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7762 + if (($_.i % 2) == 0) { //#7762 + var _Q = $k[--$j]; //#7762 + $k[$j++] = _Q * 3; //#7762 + } //#7762 + var _R = $k[--$j]; //#7762 + var _S = $k[--$j]; //#7762 + $_[$k[--$j]] = $f(_S + _R); //#7762 + } //#7762 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7764 + if ($_.barcode.length == 14) { //#7778 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7768 + $k[$j++] = 'bwipp.itf14badCheckDigit#7767'; //#7767 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7767 + bwipp_raiseerror(); //#7767 + } //#7767 + } else { //#7778 + var _Z = $s(14); //#7770 + $puti(_Z, 0, $_.barcode); //#7771 + $put(_Z, 13, $_.checksum + 48); //#7772 + $_.barcode = _Z; //#7773 + var _e = $_.hasspace ? 2 : 1; //#7774 + var _f = $s($_.text.length + _e); //#7774 + $puti(_f, _f.length - 2, " "); //#7775 + $put(_f, _f.length - 1, $_.checksum + 48); //#7776 + $puti(_f, 0, $_.text); //#7777 + $_.text = _f; //#7778 + } //#7778 + var _i = $_.options; //#7782 + $put(_i, "dontdraw", true); //#7782 + $put($_.options, "showborder", $_.showborder); //#7783 + $put($_.options, "borderwidth", $_.borderwidth); //#7784 + $put($_.options, "borderleft", $_.borderleft); //#7785 + $put($_.options, "borderright", $_.borderright); //#7786 + var _r = $_.options; //#7787 + $put(_r, "bordertop", $_.bordertop); //#7787 + $put($_.options, "borderbottom", $_.borderbottom); //#7788 + $put($_.options, "height", $_.height); //#7789 + $put($_.options, "textyoffset", $_.textyoffset); //#7790 + $k[$j++] = 'args'; //#7791 + $k[$j++] = $_.barcode; //#7791 + $k[$j++] = $_.options; //#7791 + bwipp_interleaved2of5(); //#7791 + var _11 = $k[--$j]; //#7791 + $_[$k[--$j]] = _11; //#7791 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7793 + $put($_.args, "textxalign", "center"); //#7794 + $put($_.args, "opt", $_.options); //#7795 + $k[$j++] = $_.args; //#7798 + if (!$_.dontdraw) { //#7798 + bwipp_renlinear(); //#7798 + } //#7798 + $_ = Object.getPrototypeOf($_); //#7800 +} //bwipp_itf14 function bwipp_identcode() { - $_ = Object.create($_); //#7687 - $_.dontdraw = false; //#7690 - $_.includetext = false; //#7691 - $_.textfont = "OCR-B"; //#7692 - $_.textsize = 10; //#7693 - $_.textxoffset = 0; //#7694 - $_.textyoffset = -8; //#7695 - $_.height = 1; //#7696 - $k[$j++] = $_; //#7698 - bwipp_processoptions(); //#7698 - $_.options = $k[--$j]; //#7698 - $_.barcode = $k[--$j]; //#7699 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7704 - $k[$j++] = 'bwipp.identcodeBadLength#7703'; //#7703 - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7703 - bwipp_raiseerror(); //#7703 - } //#7703 - $forall($_.barcode, function() { //#7709 - var _5 = $k[--$j]; //#7706 - if ((_5 < 48) || (_5 > 57)) { //#7708 - $k[$j++] = 'bwipp.identcodeBadCharacter#7707'; //#7707 - $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7707 - bwipp_raiseerror(); //#7707 - } //#7707 - }); //#7707 - $_.checksum = 0; //#7712 - for (var _6 = 0; _6 <= 10; _6 += 1) { //#7716 - $_.i = _6; //#7714 - $k[$j++] = 'checksum'; //#7715 - $k[$j++] = $_.checksum; //#7715 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7715 - if (($_.i % 2) == 0) { //#7715 - var _C = $k[--$j]; //#7715 - $k[$j++] = _C * 4; //#7715 - } else { //#7715 - var _D = $k[--$j]; //#7715 - $k[$j++] = _D * 9; //#7715 - } //#7715 - var _E = $k[--$j]; //#7715 - var _F = $k[--$j]; //#7715 - $_[$k[--$j]] = $f(_F + _E); //#7715 - } //#7715 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7717 - if ($_.barcode.length == 12) { //#7722 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7721 - $k[$j++] = 'bwipp.identcodeBadCheckDigit#7720'; //#7720 - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7720 - bwipp_raiseerror(); //#7720 - } //#7720 - } //#7720 - var _M = $s(12); //#7723 - $puti(_M, 0, $_.barcode); //#7724 - $put(_M, 11, $_.checksum + 48); //#7725 - $_.barcode = _M; //#7726 - $_.text = $strcpy($s(16), " . . "); //#7729 - $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7730 - $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7731 - $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7732 - $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7733 - $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7734 - $put($_.options, "dontdraw", true); //#7737 - $put($_.options, "includecheck", false); //#7738 - var _i = $_.barcode; //#7739 - $k[$j++] = 'args'; //#7739 - $k[$j++] = _i; //#7739 - $k[$j++] = $_.options; //#7739 - bwipp_interleaved2of5(); //#7739 - var _k = $k[--$j]; //#7739 - $_[$k[--$j]] = _k; //#7739 - var _r = $_.textsize; //#7741 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7741 - $put($_.args, "textxalign", "center"); //#7742 - $put($_.args, "opt", $_.options); //#7743 - $k[$j++] = $_.args; //#7746 - if (!$_.dontdraw) { //#7746 - bwipp_renlinear(); //#7746 - } //#7746 - $_ = Object.getPrototypeOf($_); //#7748 -} - + $_ = Object.create($_); //#7829 + $_.dontdraw = false; //#7832 + $_.includetext = false; //#7833 + $_.textfont = "OCR-B"; //#7834 + $_.textsize = 10; //#7835 + $_.textxoffset = 0; //#7836 + $_.textyoffset = -8; //#7837 + $_.height = 1; //#7838 + $k[$j++] = $_; //#7840 + bwipp_processoptions(); //#7840 + $_.options = $k[--$j]; //#7840 + $_.barcode = $k[--$j]; //#7841 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7846 + $k[$j++] = 'bwipp.identcodeBadLength#7845'; //#7845 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7845 + bwipp_raiseerror(); //#7845 + } //#7845 + $forall($_.barcode, function() { //#7851 + var _5 = $k[--$j]; //#7848 + if ((_5 < 48) || (_5 > 57)) { //#7850 + $k[$j++] = 'bwipp.identcodeBadCharacter#7849'; //#7849 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7849 + bwipp_raiseerror(); //#7849 + } //#7849 + }); //#7849 + $_.checksum = 0; //#7854 + for (var _6 = 0; _6 <= 10; _6 += 1) { //#7858 + $_.i = _6; //#7856 + $k[$j++] = 'checksum'; //#7857 + $k[$j++] = $_.checksum; //#7857 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7857 + if (($_.i % 2) == 0) { //#7857 + var _C = $k[--$j]; //#7857 + $k[$j++] = _C * 4; //#7857 + } else { //#7857 + var _D = $k[--$j]; //#7857 + $k[$j++] = _D * 9; //#7857 + } //#7857 + var _E = $k[--$j]; //#7857 + var _F = $k[--$j]; //#7857 + $_[$k[--$j]] = $f(_F + _E); //#7857 + } //#7857 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7859 + if ($_.barcode.length == 12) { //#7864 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7863 + $k[$j++] = 'bwipp.identcodeBadCheckDigit#7862'; //#7862 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7862 + bwipp_raiseerror(); //#7862 + } //#7862 + } //#7862 + var _M = $s(12); //#7865 + $puti(_M, 0, $_.barcode); //#7866 + $put(_M, 11, $_.checksum + 48); //#7867 + $_.barcode = _M; //#7868 + $_.text = $strcpy($s(16), " . . "); //#7871 + $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7872 + $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7873 + $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7874 + $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7875 + $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7876 + $put($_.options, "dontdraw", true); //#7879 + $put($_.options, "includecheck", false); //#7880 + var _i = $_.barcode; //#7881 + $k[$j++] = 'args'; //#7881 + $k[$j++] = _i; //#7881 + $k[$j++] = $_.options; //#7881 + bwipp_interleaved2of5(); //#7881 + var _k = $k[--$j]; //#7881 + $_[$k[--$j]] = _k; //#7881 + var _r = $_.textsize; //#7883 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7883 + $put($_.args, "textxalign", "center"); //#7884 + $put($_.args, "opt", $_.options); //#7885 + $k[$j++] = $_.args; //#7888 + if (!$_.dontdraw) { //#7888 + bwipp_renlinear(); //#7888 + } //#7888 + $_ = Object.getPrototypeOf($_); //#7890 +} //bwipp_identcode function bwipp_leitcode() { - $_ = Object.create($_); //#7777 - $_.dontdraw = false; //#7780 - $_.includetext = false; //#7781 - $_.textfont = "OCR-B"; //#7782 - $_.textsize = 10; //#7783 - $_.textxoffset = 0; //#7784 - $_.textyoffset = -8; //#7785 - $_.height = 1; //#7786 - $k[$j++] = $_; //#7788 - bwipp_processoptions(); //#7788 - $_.options = $k[--$j]; //#7788 - $_.barcode = $k[--$j]; //#7789 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7794 - $k[$j++] = 'bwipp.leitcodeBadLength#7793'; //#7793 - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7793 - bwipp_raiseerror(); //#7793 - } //#7793 - $forall($_.barcode, function() { //#7799 - var _5 = $k[--$j]; //#7796 - if ((_5 < 48) || (_5 > 57)) { //#7798 - $k[$j++] = 'bwipp.leitcodeBadCharacter#7797'; //#7797 - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7797 - bwipp_raiseerror(); //#7797 - } //#7797 - }); //#7797 - $_.checksum = 0; //#7802 - for (var _6 = 0; _6 <= 12; _6 += 1) { //#7806 - $_.i = _6; //#7804 - $k[$j++] = 'checksum'; //#7805 - $k[$j++] = $_.checksum; //#7805 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7805 - if (($_.i % 2) == 0) { //#7805 - var _C = $k[--$j]; //#7805 - $k[$j++] = _C * 4; //#7805 - } else { //#7805 - var _D = $k[--$j]; //#7805 - $k[$j++] = _D * 9; //#7805 - } //#7805 - var _E = $k[--$j]; //#7805 - var _F = $k[--$j]; //#7805 - $_[$k[--$j]] = $f(_F + _E); //#7805 - } //#7805 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7807 - if ($_.barcode.length == 14) { //#7812 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7811 - $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7810'; //#7810 - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7810 - bwipp_raiseerror(); //#7810 - } //#7810 - } //#7810 - var _M = $s(14); //#7813 - $puti(_M, 0, $_.barcode); //#7814 - $put(_M, 13, $_.checksum + 48); //#7815 - $_.barcode = _M; //#7816 - $_.text = $strcpy($s(18), " . . . "); //#7819 - $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7820 - $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7821 - $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7822 - $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7823 - $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7824 - $put($_.options, "dontdraw", true); //#7827 - $put($_.options, "includecheck", false); //#7828 - var _i = $_.barcode; //#7829 - $k[$j++] = 'args'; //#7829 - $k[$j++] = _i; //#7829 - $k[$j++] = $_.options; //#7829 - bwipp_interleaved2of5(); //#7829 - var _k = $k[--$j]; //#7829 - $_[$k[--$j]] = _k; //#7829 - var _r = $_.textsize; //#7831 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7831 - $put($_.args, "textxalign", "center"); //#7832 - $put($_.args, "opt", $_.options); //#7833 - $k[$j++] = $_.args; //#7836 - if (!$_.dontdraw) { //#7836 - bwipp_renlinear(); //#7836 - } //#7836 - $_ = Object.getPrototypeOf($_); //#7838 -} - + $_ = Object.create($_); //#7919 + $_.dontdraw = false; //#7922 + $_.includetext = false; //#7923 + $_.textfont = "OCR-B"; //#7924 + $_.textsize = 10; //#7925 + $_.textxoffset = 0; //#7926 + $_.textyoffset = -8; //#7927 + $_.height = 1; //#7928 + $k[$j++] = $_; //#7930 + bwipp_processoptions(); //#7930 + $_.options = $k[--$j]; //#7930 + $_.barcode = $k[--$j]; //#7931 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7936 + $k[$j++] = 'bwipp.leitcodeBadLength#7935'; //#7935 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7935 + bwipp_raiseerror(); //#7935 + } //#7935 + $forall($_.barcode, function() { //#7941 + var _5 = $k[--$j]; //#7938 + if ((_5 < 48) || (_5 > 57)) { //#7940 + $k[$j++] = 'bwipp.leitcodeBadCharacter#7939'; //#7939 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7939 + bwipp_raiseerror(); //#7939 + } //#7939 + }); //#7939 + $_.checksum = 0; //#7944 + for (var _6 = 0; _6 <= 12; _6 += 1) { //#7948 + $_.i = _6; //#7946 + $k[$j++] = 'checksum'; //#7947 + $k[$j++] = $_.checksum; //#7947 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7947 + if (($_.i % 2) == 0) { //#7947 + var _C = $k[--$j]; //#7947 + $k[$j++] = _C * 4; //#7947 + } else { //#7947 + var _D = $k[--$j]; //#7947 + $k[$j++] = _D * 9; //#7947 + } //#7947 + var _E = $k[--$j]; //#7947 + var _F = $k[--$j]; //#7947 + $_[$k[--$j]] = $f(_F + _E); //#7947 + } //#7947 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7949 + if ($_.barcode.length == 14) { //#7954 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7953 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7952'; //#7952 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7952 + bwipp_raiseerror(); //#7952 + } //#7952 + } //#7952 + var _M = $s(14); //#7955 + $puti(_M, 0, $_.barcode); //#7956 + $put(_M, 13, $_.checksum + 48); //#7957 + $_.barcode = _M; //#7958 + $_.text = $strcpy($s(18), " . . . "); //#7961 + $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7962 + $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7963 + $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7964 + $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7965 + $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7966 + $put($_.options, "dontdraw", true); //#7969 + $put($_.options, "includecheck", false); //#7970 + var _i = $_.barcode; //#7971 + $k[$j++] = 'args'; //#7971 + $k[$j++] = _i; //#7971 + $k[$j++] = $_.options; //#7971 + bwipp_interleaved2of5(); //#7971 + var _k = $k[--$j]; //#7971 + $_[$k[--$j]] = _k; //#7971 + var _r = $_.textsize; //#7973 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7973 + $put($_.args, "textxalign", "center"); //#7974 + $put($_.args, "opt", $_.options); //#7975 + $k[$j++] = $_.args; //#7978 + if (!$_.dontdraw) { //#7978 + bwipp_renlinear(); //#7978 + } //#7978 + $_ = Object.getPrototypeOf($_); //#7980 +} //bwipp_leitcode function bwipp_databaromni() { - $_ = Object.create($_); //#7869 - $_.dontdraw = false; //#7872 - $_.height = 33 / 72; //#7873 - $_.linkage = false; //#7874 - $_.format = "omni"; //#7875 - $_.barxmult = 33; //#7876 - $k[$j++] = $_; //#7878 - bwipp_processoptions(); //#7878 - $_.options = $k[--$j]; //#7878 - $_.barcode = $k[--$j]; //#7879 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#7883 - $k[$j++] = 'bwipp.databaromniBadAI#7882'; //#7882 - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#7882 - bwipp_raiseerror(); //#7882 - } //#7882 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#7886 - $k[$j++] = 'bwipp.databaromniBadLength#7885'; //#7885 - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#7885 - bwipp_raiseerror(); //#7885 - } //#7885 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#7887 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#7891 - var _B = $get(_8, _9); //#7891 - if ((_B < 48) || (_B > 57)) { //#7890 - $k[$j++] = 'bwipp.databaromniBadCharacter#7889'; //#7889 - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#7889 - bwipp_raiseerror(); //#7889 - } //#7889 - } //#7889 - if ($_.barxmult < 33) { //#7895 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#7894'; //#7894 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#7894 - bwipp_raiseerror(); //#7894 - } //#7894 - if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#7899 - $k[$j++] = 'bwipp.databaromniBadFormat#7898'; //#7898 - $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#7898 - bwipp_raiseerror(); //#7898 - } //#7898 - if ($eq($_.format, "truncated")) { //#7901 - $_.height = 13 / 72; //#7901 - } //#7901 - bwipp_loadctx(bwipp_databaromni) //#7903 - $_.checksum = 0; //#7906 - for (var _I = 0; _I <= 12; _I += 1) { //#7910 - $_.i = _I; //#7908 - $k[$j++] = 'checksum'; //#7909 - $k[$j++] = $_.checksum; //#7909 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#7909 - if (($_.i % 2) == 0) { //#7909 - var _O = $k[--$j]; //#7909 - $k[$j++] = _O * 3; //#7909 - } //#7909 - var _P = $k[--$j]; //#7909 - var _Q = $k[--$j]; //#7909 - $_[$k[--$j]] = $f(_Q + _P); //#7909 - } //#7909 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7911 - if ($_.barcode.length == 18) { //#7916 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#7915 - $k[$j++] = 'bwipp.databaromniBadCheckDigit#7914'; //#7914 - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#7914 - bwipp_raiseerror(); //#7914 - } //#7914 - } //#7914 - var _X = $s(18); //#7917 - $puti(_X, 0, $_.barcode); //#7918 - $put(_X, 17, $_.checksum + 48); //#7919 - $_.barcode = _X; //#7920 - $_.txt = $a($_.barcode.length); //#7923 - for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#7927 - $_.i = _e; //#7925 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#7926 - } //#7926 + $_ = Object.create($_); //#8011 + $_.dontdraw = false; //#8014 + $_.height = 33 / 72; //#8015 + $_.linkage = false; //#8016 + $_.format = "omni"; //#8017 + $_.barxmult = 33; //#8018 + $k[$j++] = $_; //#8020 + bwipp_processoptions(); //#8020 + $_.options = $k[--$j]; //#8020 + $_.barcode = $k[--$j]; //#8021 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8025 + $k[$j++] = 'bwipp.databaromniBadLength#8024'; //#8024 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#8024 + bwipp_raiseerror(); //#8024 + } //#8024 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8028 + $k[$j++] = 'bwipp.databaromniBadAI#8027'; //#8027 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#8027 + bwipp_raiseerror(); //#8027 + } //#8027 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8029 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8033 + var _B = $get(_8, _9); //#8033 + if ((_B < 48) || (_B > 57)) { //#8032 + $k[$j++] = 'bwipp.databaromniBadCharacter#8031'; //#8031 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#8031 + bwipp_raiseerror(); //#8031 + } //#8031 + } //#8031 + if ($_.barxmult < 33) { //#8037 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8036'; //#8036 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#8036 + bwipp_raiseerror(); //#8036 + } //#8036 + if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#8041 + $k[$j++] = 'bwipp.databaromniBadFormat#8040'; //#8040 + $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#8040 + bwipp_raiseerror(); //#8040 + } //#8040 + if ($eq($_.format, "truncated")) { //#8043 + $_.height = 13 / 72; //#8043 + } //#8043 + bwipp_loadctx(bwipp_databaromni) //#8045 + $_.checksum = 0; //#8048 + for (var _I = 0; _I <= 12; _I += 1) { //#8052 + $_.i = _I; //#8050 + $k[$j++] = 'checksum'; //#8051 + $k[$j++] = $_.checksum; //#8051 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8051 + if (($_.i % 2) == 0) { //#8051 + var _O = $k[--$j]; //#8051 + $k[$j++] = _O * 3; //#8051 + } //#8051 + var _P = $k[--$j]; //#8051 + var _Q = $k[--$j]; //#8051 + $_[$k[--$j]] = $f(_Q + _P); //#8051 + } //#8051 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8053 + if ($_.barcode.length == 18) { //#8058 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8057 + $k[$j++] = 'bwipp.databaromniBadCheckDigit#8056'; //#8056 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#8056 + bwipp_raiseerror(); //#8056 + } //#8056 + } //#8056 + var _X = $s(18); //#8059 + $puti(_X, 0, $_.barcode); //#8060 + $put(_X, 17, $_.checksum + 48); //#8061 + $_.barcode = _X; //#8062 + $_.txt = $a($_.barcode.length); //#8065 + for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#8069 + $_.i = _e; //#8067 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8068 + } //#8068 $_.ncr = function() { - var _l = $k[--$j]; //#7930 - var _m = $k[--$j]; //#7930 - var _n = $f(_m - _l); //#7930 - if (_l < $f(_m - _l)) { //#7930 - var _ = _n; //#7930 - _n = _l; //#7930 - _l = _; //#7930 - } //#7930 - $k[$j++] = _n; //#7937 - $k[$j++] = 1; //#7937 - $k[$j++] = 1; //#7937 - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#7937 - var _q = $k[--$j]; //#7933 - var _r = $k[--$j]; //#7934 - var _s = $k[--$j]; //#7934 - $k[$j++] = _s; //#7936 - $k[$j++] = _r; //#7936 - $k[$j++] = _q * _p; //#7936 - if ($le(_r, _s)) { //#7936 - var _t = $k[--$j]; //#7935 - var _u = $k[--$j]; //#7935 - $k[$j++] = $f(_u + 1); //#7935 - $k[$j++] = ~~(_t / _u); //#7935 - } //#7935 - } //#7935 - for (;;) { //#7941 - var _v = $k[--$j]; //#7939 - var _w = $k[--$j]; //#7939 - var _x = $k[--$j]; //#7939 - $k[$j++] = _x; //#7939 - $k[$j++] = _w; //#7939 - $k[$j++] = _v; //#7939 - if ($gt(_w, _x)) { //#7939 - break; //#7939 - } //#7939 - var _y = $k[--$j]; //#7940 - var _z = $k[--$j]; //#7940 - $k[$j++] = $f(_z + 1); //#7940 - $k[$j++] = ~~(_y / _z); //#7940 - } //#7940 - var _10 = $k[--$j]; //#7942 - var _11 = $k[--$j]; //#7942 - $k[$j++] = _10; //#7942 - $k[$j++] = _11; //#7942 - $j--; //#7942 - var _12 = $k[--$j]; //#7942 - var _13 = $k[--$j]; //#7942 - $k[$j++] = _12; //#7942 - $k[$j++] = _13; //#7942 - $j--; //#7942 - }; //#7942 + var _l = $k[--$j]; //#8072 + var _m = $k[--$j]; //#8072 + var _n = $f(_m - _l); //#8072 + if (_l < $f(_m - _l)) { //#8072 + var _ = _n; //#8072 + _n = _l; //#8072 + _l = _; //#8072 + } //#8072 + $k[$j++] = _n; //#8079 + $k[$j++] = 1; //#8079 + $k[$j++] = 1; //#8079 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#8079 + var _q = $k[--$j]; //#8075 + var _r = $k[--$j]; //#8076 + var _s = $k[--$j]; //#8076 + $k[$j++] = _s; //#8078 + $k[$j++] = _r; //#8078 + $k[$j++] = _q * _p; //#8078 + if ($le(_r, _s)) { //#8078 + var _t = $k[--$j]; //#8077 + var _u = $k[--$j]; //#8077 + $k[$j++] = $f(_u + 1); //#8077 + $k[$j++] = ~~(_t / _u); //#8077 + } //#8077 + } //#8077 + for (;;) { //#8083 + var _v = $k[--$j]; //#8081 + var _w = $k[--$j]; //#8081 + var _x = $k[--$j]; //#8081 + $k[$j++] = _x; //#8081 + $k[$j++] = _w; //#8081 + $k[$j++] = _v; //#8081 + if ($gt(_w, _x)) { //#8081 + break; //#8081 + } //#8081 + var _y = $k[--$j]; //#8082 + var _z = $k[--$j]; //#8082 + $k[$j++] = $f(_z + 1); //#8082 + $k[$j++] = ~~(_y / _z); //#8082 + } //#8082 + var _10 = $k[--$j]; //#8084 + var _11 = $k[--$j]; //#8084 + $k[$j++] = _10; //#8084 + $k[$j++] = _11; //#8084 + $j--; //#8084 + var _12 = $k[--$j]; //#8084 + var _13 = $k[--$j]; //#8084 + $k[$j++] = _12; //#8084 + $k[$j++] = _13; //#8084 + $j--; //#8084 + }; //#8084 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#7946 - $_.el = $k[--$j]; //#7947 - $_.mw = $k[--$j]; //#7948 - $_.nm = $k[--$j]; //#7949 - $_.val = $k[--$j]; //#7950 - $_.out = $a($_.el); //#7951 - $_.mask = 0; //#7952 - for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#7979 - $_.bar = _1D; //#7954 - $_.ew = 1; //#7955 - var _1F = $_.bar; //#7956 - $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#7956 - for (;;) { //#7975 - $k[$j++] = 'sval'; //#7957 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#7957 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7957 - $_.ncr(); //#7957 - var _1K = $k[--$j]; //#7957 - $_[$k[--$j]] = _1K; //#7957 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#7960 - $k[$j++] = 'sval'; //#7959 - $k[$j++] = $_.sval; //#7959 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#7959 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7959 - $_.ncr(); //#7959 - var _1Z = $k[--$j]; //#7959 - var _1a = $k[--$j]; //#7959 - $_[$k[--$j]] = $f(_1a - _1Z); //#7959 - } //#7959 - if ($f($_.el - $_.bar) > 2) { //#7969 - $_.lval = 0; //#7962 - for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#7966 - $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#7964 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#7964 - $_.ncr(); //#7964 - $_.lval = $f($k[--$j] + $_.lval); //#7965 - } //#7965 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#7967 - } else { //#7969 - if ($f($_.nm - $_.ew) > $_.mw) { //#7969 - $_.sval = $f($_.sval - 1); //#7969 - } //#7969 - } //#7969 - $_.val = $f($_.val - $_.sval); //#7971 - if ($_.val < 0) { //#7972 - break; //#7972 - } //#7972 - $_.ew = $_.ew + 1; //#7973 - var _24 = $_.bar; //#7974 - $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#7974 - } //#7974 - $_.val = $f($_.val + $_.sval); //#7976 - $_.nm = $f($_.nm - $_.ew); //#7977 - $put($_.out, $_.bar, $_.ew); //#7978 - } //#7978 - $put($_.out, $f($_.el - 1), $_.nm); //#7980 - $k[$j++] = $_.out; //#7981 - }; //#7981 - $k[$j++] = Infinity; //#7986 - var _2H = $_.linkage ? 1 : 0; //#7985 - var _2J = $geti($_.barcode, 4, 13); //#7986 - $k[$j++] = _2H; //#7986 - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#7986 - $k[$j++] = $f($get(_2J, _2K) - 48); //#7986 - } //#7986 - $_.binval = $a(); //#7986 - for (var _2O = 0; _2O <= 12; _2O += 1) { //#7993 - $_.i = _2O; //#7990 - var _2P = $_.binval; //#7991 - var _2Q = $_.i; //#7991 - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#7991 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#7992 - } //#7992 - $_.right = $get($_.binval, 13) % 4537077; //#7994 - var _2c = $_.binval; //#7995 - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#7995 - $_.left = 0; //#7997 - $_.i = true; //#7998 - for (var _2e = 0; _2e <= 13; _2e += 1) { //#8008 - $_.j = _2e; //#8000 - var _2h = $get($_.binval, $_.j); //#8001 - $k[$j++] = _2h; //#8007 - if ((_2h == 0) && $_.i) { //#8006 - $j--; //#8003 - } else { //#8006 - $_.i = false; //#8005 - $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8006 - } //#8006 - } //#8006 - $_.d1 = ~~($_.left / 1597); //#8010 - $_.d2 = $_.left % 1597; //#8011 - $_.d3 = ~~($_.right / 1597); //#8012 - $_.d4 = $_.right % 1597; //#8013 - if (!bwipp_databaromni.__8030__) { //#8030 - $_ = Object.create($_); //#8030 - $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8022 - $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8029 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8029 - bwipp_databaromni.__8030__ = 1; //#8029 - $_ = Object.getPrototypeOf($_); //#8029 - } //#8029 - $_.i = 0; //#8032 - for (;;) { //#8042 - if ($_.d1 <= $get($_.tab164, $_.i)) { //#8040 - var _2z = $geti($_.tab164, $_.i + 1, 7); //#8034 - for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8034 - $k[$j++] = $get(_2z, _30); //#8034 - } //#8034 - $_.d1te = $k[--$j]; //#8035 - $_.d1to = $k[--$j]; //#8035 - $_.d1mwe = $k[--$j]; //#8036 - $_.d1mwo = $k[--$j]; //#8036 - $_.d1ele = $k[--$j]; //#8037 - $_.d1elo = $k[--$j]; //#8037 - $_.d1gs = $k[--$j]; //#8038 - break; //#8039 - } //#8039 - $_.i = $_.i + 8; //#8041 - } //#8041 - $_.i = 0; //#8044 - for (;;) { //#8054 - if ($_.d2 <= $get($_.tab154, $_.i)) { //#8052 - var _3H = $geti($_.tab154, $_.i + 1, 7); //#8046 - for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8046 - $k[$j++] = $get(_3H, _3I); //#8046 - } //#8046 - $_.d2te = $k[--$j]; //#8047 - $_.d2to = $k[--$j]; //#8047 - $_.d2mwe = $k[--$j]; //#8048 - $_.d2mwo = $k[--$j]; //#8048 - $_.d2ele = $k[--$j]; //#8049 - $_.d2elo = $k[--$j]; //#8049 - $_.d2gs = $k[--$j]; //#8050 - break; //#8051 - } //#8051 - $_.i = $_.i + 8; //#8053 - } //#8053 - $_.i = 0; //#8056 - for (;;) { //#8066 - if ($_.d3 <= $get($_.tab164, $_.i)) { //#8064 - var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8058 - for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8058 - $k[$j++] = $get(_3Z, _3a); //#8058 - } //#8058 - $_.d3te = $k[--$j]; //#8059 - $_.d3to = $k[--$j]; //#8059 - $_.d3mwe = $k[--$j]; //#8060 - $_.d3mwo = $k[--$j]; //#8060 - $_.d3ele = $k[--$j]; //#8061 - $_.d3elo = $k[--$j]; //#8061 - $_.d3gs = $k[--$j]; //#8062 - break; //#8063 - } //#8063 - $_.i = $_.i + 8; //#8065 - } //#8065 - $_.i = 0; //#8068 - for (;;) { //#8078 - if ($_.d4 <= $get($_.tab154, $_.i)) { //#8076 - var _3r = $geti($_.tab154, $_.i + 1, 7); //#8070 - for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8070 - $k[$j++] = $get(_3r, _3s); //#8070 - } //#8070 - $_.d4te = $k[--$j]; //#8071 - $_.d4to = $k[--$j]; //#8071 - $_.d4mwe = $k[--$j]; //#8072 - $_.d4mwo = $k[--$j]; //#8072 - $_.d4ele = $k[--$j]; //#8073 - $_.d4elo = $k[--$j]; //#8073 - $_.d4gs = $k[--$j]; //#8074 - break; //#8075 - } //#8075 - $_.i = $_.i + 8; //#8077 - } //#8077 - $k[$j++] = 'd1wo'; //#8080 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8080 - $k[$j++] = $_.d1elo; //#8080 - $k[$j++] = $_.d1mwo; //#8080 - $k[$j++] = 4; //#8080 - $k[$j++] = false; //#8080 - $_.getRSSwidths(); //#8080 - var _48 = $k[--$j]; //#8080 - $_[$k[--$j]] = _48; //#8080 - $k[$j++] = 'd1we'; //#8081 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8081 - $k[$j++] = $_.d1ele; //#8081 - $k[$j++] = $_.d1mwe; //#8081 - $k[$j++] = 4; //#8081 - $k[$j++] = true; //#8081 - $_.getRSSwidths(); //#8081 - var _4F = $k[--$j]; //#8081 - $_[$k[--$j]] = _4F; //#8081 - $k[$j++] = 'd2wo'; //#8082 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8082 - $k[$j++] = $_.d2elo; //#8082 - $k[$j++] = $_.d2mwo; //#8082 - $k[$j++] = 4; //#8082 - $k[$j++] = true; //#8082 - $_.getRSSwidths(); //#8082 - var _4M = $k[--$j]; //#8082 - $_[$k[--$j]] = _4M; //#8082 - $k[$j++] = 'd2we'; //#8083 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8083 - $k[$j++] = $_.d2ele; //#8083 - $k[$j++] = $_.d2mwe; //#8083 - $k[$j++] = 4; //#8083 - $k[$j++] = false; //#8083 - $_.getRSSwidths(); //#8083 - var _4T = $k[--$j]; //#8083 - $_[$k[--$j]] = _4T; //#8083 - $k[$j++] = 'd3wo'; //#8084 - $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8084 - $k[$j++] = $_.d3elo; //#8084 - $k[$j++] = $_.d3mwo; //#8084 - $k[$j++] = 4; //#8084 - $k[$j++] = false; //#8084 - $_.getRSSwidths(); //#8084 - var _4a = $k[--$j]; //#8084 - $_[$k[--$j]] = _4a; //#8084 - $k[$j++] = 'd3we'; //#8085 - $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8085 - $k[$j++] = $_.d3ele; //#8085 - $k[$j++] = $_.d3mwe; //#8085 - $k[$j++] = 4; //#8085 - $k[$j++] = true; //#8085 - $_.getRSSwidths(); //#8085 - var _4h = $k[--$j]; //#8085 - $_[$k[--$j]] = _4h; //#8085 - $k[$j++] = 'd4wo'; //#8086 - $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8086 - $k[$j++] = $_.d4elo; //#8086 - $k[$j++] = $_.d4mwo; //#8086 - $k[$j++] = 4; //#8086 - $k[$j++] = true; //#8086 - $_.getRSSwidths(); //#8086 - var _4o = $k[--$j]; //#8086 - $_[$k[--$j]] = _4o; //#8086 - $k[$j++] = 'd4we'; //#8087 - $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8087 - $k[$j++] = $_.d4ele; //#8087 - $k[$j++] = $_.d4mwe; //#8087 - $k[$j++] = 4; //#8087 - $k[$j++] = false; //#8087 - $_.getRSSwidths(); //#8087 - var _4v = $k[--$j]; //#8087 - $_[$k[--$j]] = _4v; //#8087 - $_.d1w = $a(8); //#8089 - for (var _4y = 0; _4y <= 3; _4y += 1) { //#8094 - $_.i = _4y; //#8091 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8092 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8093 - } //#8093 - $_.d2w = $a(8); //#8096 - for (var _5A = 0; _5A <= 3; _5A += 1) { //#8101 - $_.i = _5A; //#8098 - $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8099 - $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8100 - } //#8100 - $_.d3w = $a(8); //#8103 - for (var _5M = 0; _5M <= 3; _5M += 1) { //#8108 - $_.i = _5M; //#8105 - $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8106 - $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8107 - } //#8107 - $_.d4w = $a(8); //#8110 - for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8115 - $_.i = _5Y; //#8112 - $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8113 - $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8114 - } //#8114 - $k[$j++] = Infinity; //#8121 - var _5j = $_.d1w; //#8118 - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8118 - $k[$j++] = $get(_5j, _5k); //#8118 - } //#8118 - var _5n = $_.d2w; //#8119 - for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8119 - $k[$j++] = $get(_5n, _5o); //#8119 - } //#8119 - var _5r = $_.d3w; //#8120 - for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8120 - $k[$j++] = $get(_5r, _5s); //#8120 - } //#8120 - var _5v = $_.d4w; //#8121 - for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8121 - $k[$j++] = $get(_5v, _5w); //#8121 - } //#8121 - $_.widths = $a(); //#8121 - if (!bwipp_databaromni.__8137__) { //#8137 - $_ = Object.create($_); //#8137 - $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8130 - $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8136 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8136 - bwipp_databaromni.__8137__ = 1; //#8136 - $_ = Object.getPrototypeOf($_); //#8136 - } //#8136 - $_.checksum = 0; //#8139 - for (var _63 = 0; _63 <= 31; _63 += 1) { //#8143 - $_.i = _63; //#8141 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8142 - } //#8142 - $_.checksum = $_.checksum % 79; //#8144 - if ($_.checksum >= 8) { //#8145 - $_.checksum = $f($_.checksum + 1); //#8145 - } //#8145 - if ($_.checksum >= 72) { //#8146 - $_.checksum = $f($_.checksum + 1); //#8146 - } //#8146 - $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8147 - $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8148 - $_.checkrt = $a(5); //#8149 - for (var _6N = 0; _6N <= 4; _6N += 1) { //#8153 - $_.i = _6N; //#8151 - $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8152 - } //#8152 - if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8275 - $k[$j++] = Infinity; //#8160 - var _6V = $_.d1w; //#8159 - $k[$j++] = 1; //#8159 - for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8159 - $k[$j++] = $get(_6V, _6W); //#8159 - } //#8159 - var _6Z = $_.checklt; //#8159 - for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8159 - $k[$j++] = $get(_6Z, _6a); //#8159 - } //#8159 - var _6d = $_.d2w; //#8159 - for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8159 - $k[$j++] = $get(_6d, _6e); //#8159 - } //#8159 - var _6h = $_.d4w; //#8160 - for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8160 - $k[$j++] = $get(_6h, _6i); //#8160 - } //#8160 - var _6l = $_.checkrt; //#8160 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8160 - $k[$j++] = $get(_6l, _6m); //#8160 - } //#8160 - var _6p = $_.d3w; //#8160 - for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8160 - $k[$j++] = $get(_6p, _6q); //#8160 - } //#8160 - $k[$j++] = 1; //#8160 - $k[$j++] = 1; //#8160 - $_.sbs = $a(); //#8160 - $k[$j++] = Infinity; //#8170 - var _6u = $_.sbs; //#8165 - $k[$j++] = Infinity; //#8166 - for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8166 - $k[$j++] = $_.height; //#8166 - } //#8166 - var _6z = $a(); //#8166 - $k[$j++] = Infinity; //#8167 - for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8167 - $k[$j++] = 0; //#8167 - } //#8167 - var _73 = $a(); //#8167 - $k[$j++] = 'ren'; //#8170 - $k[$j++] = bwipp_renlinear; //#8170 - $k[$j++] = 'sbs'; //#8170 - $k[$j++] = _6u; //#8170 - $k[$j++] = 'bhs'; //#8170 - $k[$j++] = _6z; //#8170 - $k[$j++] = 'bbs'; //#8170 - $k[$j++] = _73; //#8170 - $k[$j++] = 'txt'; //#8170 - $k[$j++] = $_.txt; //#8170 - $k[$j++] = 'textxalign'; //#8170 - $k[$j++] = "center"; //#8170 - $k[$j++] = 'opt'; //#8170 - $k[$j++] = $_.options; //#8170 - var _76 = $d(); //#8170 - $k[$j++] = _76; //#8173 - if (!$_.dontdraw) { //#8173 - bwipp_renlinear(); //#8173 - } //#8173 - } else { //#8275 - $k[$j++] = Infinity; //#8177 - var _78 = $_.d1w; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8177 - $k[$j++] = $get(_78, _79); //#8177 - } //#8177 - var _7C = $_.checklt; //#8177 - for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8177 - $k[$j++] = $get(_7C, _7D); //#8177 - } //#8177 - var _7G = $_.d2w; //#8177 - for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8177 - $k[$j++] = $get(_7G, _7H); //#8177 - } //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 0; //#8177 - $_.top = $a(); //#8177 - $k[$j++] = Infinity; //#8178 - var _7L = $_.d4w; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8178 - $k[$j++] = $get(_7L, _7M); //#8178 - } //#8178 - var _7P = $_.checkrt; //#8178 - for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8178 - $k[$j++] = $get(_7P, _7Q); //#8178 - } //#8178 - var _7T = $_.d3w; //#8178 - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8178 - $k[$j++] = $get(_7T, _7U); //#8178 - } //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 0; //#8178 - $_.bot = $a(); //#8178 - for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8183 - $_.i = _7Y; //#8180 - for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8181 - $k[$j++] = 0; //#8181 - } //#8181 - for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8182 - $k[$j++] = 1; //#8182 - } //#8182 - } //#8182 - $astore($a(50)); //#8184 - $_.top = $k[--$j]; //#8184 - for (var _7l = 0; _7l <= 24; _7l += 2) { //#8189 - $_.i = _7l; //#8186 - for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8187 - $k[$j++] = 1; //#8187 - } //#8187 - for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8188 - $k[$j++] = 0; //#8188 + $_.oe = $k[--$j]; //#8088 + $_.el = $k[--$j]; //#8089 + $_.mw = $k[--$j]; //#8090 + $_.nm = $k[--$j]; //#8091 + $_.val = $k[--$j]; //#8092 + $_.out = $a($_.el); //#8093 + $_.mask = 0; //#8094 + for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#8121 + $_.bar = _1D; //#8096 + $_.ew = 1; //#8097 + var _1F = $_.bar; //#8098 + $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#8098 + for (;;) { //#8117 + $k[$j++] = 'sval'; //#8099 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8099 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8099 + $_.ncr(); //#8099 + var _1K = $k[--$j]; //#8099 + $_[$k[--$j]] = _1K; //#8099 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8102 + $k[$j++] = 'sval'; //#8101 + $k[$j++] = $_.sval; //#8101 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8101 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8101 + $_.ncr(); //#8101 + var _1Z = $k[--$j]; //#8101 + var _1a = $k[--$j]; //#8101 + $_[$k[--$j]] = $f(_1a - _1Z); //#8101 + } //#8101 + if ($f($_.el - $_.bar) > 2) { //#8111 + $_.lval = 0; //#8104 + for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#8108 + $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#8106 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8106 + $_.ncr(); //#8106 + $_.lval = $f($k[--$j] + $_.lval); //#8107 + } //#8107 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8109 + } else { //#8111 + if ($f($_.nm - $_.ew) > $_.mw) { //#8111 + $_.sval = $f($_.sval - 1); //#8111 + } //#8111 + } //#8111 + $_.val = $f($_.val - $_.sval); //#8113 + if ($_.val < 0) { //#8114 + break; //#8114 + } //#8114 + $_.ew = $_.ew + 1; //#8115 + var _24 = $_.bar; //#8116 + $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#8116 + } //#8116 + $_.val = $f($_.val + $_.sval); //#8118 + $_.nm = $f($_.nm - $_.ew); //#8119 + $put($_.out, $_.bar, $_.ew); //#8120 + } //#8120 + $put($_.out, $f($_.el - 1), $_.nm); //#8122 + $k[$j++] = $_.out; //#8123 + }; //#8123 + $k[$j++] = Infinity; //#8126 + var _2H = $_.linkage ? 1 : 0; //#8127 + var _2J = $geti($_.barcode, 4, 13); //#8128 + $k[$j++] = _2H; //#8128 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#8128 + $k[$j++] = $f($get(_2J, _2K) - 48); //#8128 + } //#8128 + $_.binval = $a(); //#8128 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#8135 + $_.i = _2O; //#8132 + var _2P = $_.binval; //#8133 + var _2Q = $_.i; //#8133 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#8133 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#8134 + } //#8134 + $_.right = $get($_.binval, 13) % 4537077; //#8136 + var _2c = $_.binval; //#8137 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#8137 + $_.left = 0; //#8139 + $_.i = true; //#8140 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#8150 + $_.j = _2e; //#8142 + var _2h = $get($_.binval, $_.j); //#8143 + $k[$j++] = _2h; //#8149 + if ((_2h == 0) && $_.i) { //#8148 + $j--; //#8145 + } else { //#8148 + $_.i = false; //#8147 + $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8148 + } //#8148 + } //#8148 + $_.d1 = ~~($_.left / 1597); //#8152 + $_.d2 = $_.left % 1597; //#8153 + $_.d3 = ~~($_.right / 1597); //#8154 + $_.d4 = $_.right % 1597; //#8155 + if (!bwipp_databaromni.__8172__) { //#8172 + $_ = Object.create($_); //#8172 + $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8164 + $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8171 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8171 + bwipp_databaromni.__8172__ = 1; //#8171 + $_ = Object.getPrototypeOf($_); //#8171 + } //#8171 + $_.i = 0; //#8174 + for (;;) { //#8184 + if ($_.d1 <= $get($_.tab164, $_.i)) { //#8182 + var _2z = $geti($_.tab164, $_.i + 1, 7); //#8176 + for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8176 + $k[$j++] = $get(_2z, _30); //#8176 + } //#8176 + $_.d1te = $k[--$j]; //#8177 + $_.d1to = $k[--$j]; //#8177 + $_.d1mwe = $k[--$j]; //#8178 + $_.d1mwo = $k[--$j]; //#8178 + $_.d1ele = $k[--$j]; //#8179 + $_.d1elo = $k[--$j]; //#8179 + $_.d1gs = $k[--$j]; //#8180 + break; //#8181 + } //#8181 + $_.i = $_.i + 8; //#8183 + } //#8183 + $_.i = 0; //#8186 + for (;;) { //#8196 + if ($_.d2 <= $get($_.tab154, $_.i)) { //#8194 + var _3H = $geti($_.tab154, $_.i + 1, 7); //#8188 + for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8188 + $k[$j++] = $get(_3H, _3I); //#8188 } //#8188 - } //#8188 - $astore($a(50)); //#8190 - $_.bot = $k[--$j]; //#8190 - if ($eq($_.format, "stacked")) { //#8212 - $_.sep = $a(50); //#8194 - $put($_.sep, 0, 0); //#8195 - for (var _81 = 1; _81 <= 49; _81 += 1) { //#8203 - $_.i = _81; //#8197 - if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8199 - } else { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8201 - } //#8201 - } //#8201 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8204 - $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8205 - $k[$j++] = Infinity; //#8209 - for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8207 - $aload($_.top); //#8207 - } //#8207 - $aload($_.sep); //#8208 - for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8209 - $aload($_.bot); //#8209 - } //#8209 - $_.pixs = $a(); //#8209 - $_.pixy = ~~($_.pixs.length / 50); //#8211 - } //#8211 - if ($eq($_.format, "stackedomni")) { //#8262 - $k[$j++] = Infinity; //#8216 - $forall($_.top, function() { //#8216 - var _8X = $k[--$j]; //#8216 - $k[$j++] = $f(1 - _8X); //#8216 - }); //#8216 - $_.sep1 = $a(); //#8216 - $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8217 - $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8218 - for (var _8d = 18; _8d <= 30; _8d += 1) { //#8231 - $_.i = _8d; //#8220 - if ($get($_.top, $_.i) == 0) { //#8228 - if ($get($_.top, $_.i - 1) == 1) { //#8225 - $k[$j++] = 1; //#8223 - } else { //#8225 - var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8225 - $k[$j++] = _8n; //#8225 - } //#8225 - } else { //#8228 - $k[$j++] = 0; //#8228 - } //#8228 - $put($_.sep1, $_.i, $k[--$j]); //#8230 - } //#8230 - $k[$j++] = Infinity; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 1; //#8232 - } //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $_.sep2 = $a(); //#8232 - $k[$j++] = Infinity; //#8233 - $forall($_.bot, function() { //#8233 - var _8v = $k[--$j]; //#8233 - $k[$j++] = $f(1 - _8v); //#8233 - }); //#8233 - $_.sep3 = $a(); //#8233 - $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8234 - $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8235 - for (var _91 = 19; _91 <= 31; _91 += 1) { //#8248 - $_.i = _91; //#8237 - if ($get($_.bot, $_.i) == 0) { //#8245 - if ($get($_.bot, $_.i - 1) == 1) { //#8242 - $k[$j++] = 1; //#8240 - } else { //#8242 - var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8242 - $k[$j++] = _9B; //#8242 - } //#8242 - } else { //#8245 - $k[$j++] = 0; //#8245 - } //#8245 - $put($_.sep3, $_.i, $k[--$j]); //#8247 - } //#8247 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8249 - $k[$j++] = true; //#8250 - for (var _9G = 0; _9G <= 12; _9G += 1) { //#8250 - var _9L = $k[--$j]; //#8250 - $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8250 - } //#8250 - if ($k[--$j]) { //#8253 - $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8252 - } //#8252 - $k[$j++] = Infinity; //#8259 - for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8255 - $aload($_.top); //#8255 - } //#8255 - $aload($_.sep1); //#8256 - $aload($_.sep2); //#8257 - $aload($_.sep3); //#8258 - for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8259 - $aload($_.bot); //#8259 - } //#8259 - $_.pixs = $a(); //#8259 - $_.pixy = ~~($_.pixs.length / 50); //#8261 - } //#8261 + $_.d2te = $k[--$j]; //#8189 + $_.d2to = $k[--$j]; //#8189 + $_.d2mwe = $k[--$j]; //#8190 + $_.d2mwo = $k[--$j]; //#8190 + $_.d2ele = $k[--$j]; //#8191 + $_.d2elo = $k[--$j]; //#8191 + $_.d2gs = $k[--$j]; //#8192 + break; //#8193 + } //#8193 + $_.i = $_.i + 8; //#8195 + } //#8195 + $_.i = 0; //#8198 + for (;;) { //#8208 + if ($_.d3 <= $get($_.tab164, $_.i)) { //#8206 + var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8200 + for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8200 + $k[$j++] = $get(_3Z, _3a); //#8200 + } //#8200 + $_.d3te = $k[--$j]; //#8201 + $_.d3to = $k[--$j]; //#8201 + $_.d3mwe = $k[--$j]; //#8202 + $_.d3mwo = $k[--$j]; //#8202 + $_.d3ele = $k[--$j]; //#8203 + $_.d3elo = $k[--$j]; //#8203 + $_.d3gs = $k[--$j]; //#8204 + break; //#8205 + } //#8205 + $_.i = $_.i + 8; //#8207 + } //#8207 + $_.i = 0; //#8210 + for (;;) { //#8220 + if ($_.d4 <= $get($_.tab154, $_.i)) { //#8218 + var _3r = $geti($_.tab154, $_.i + 1, 7); //#8212 + for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8212 + $k[$j++] = $get(_3r, _3s); //#8212 + } //#8212 + $_.d4te = $k[--$j]; //#8213 + $_.d4to = $k[--$j]; //#8213 + $_.d4mwe = $k[--$j]; //#8214 + $_.d4mwo = $k[--$j]; //#8214 + $_.d4ele = $k[--$j]; //#8215 + $_.d4elo = $k[--$j]; //#8215 + $_.d4gs = $k[--$j]; //#8216 + break; //#8217 + } //#8217 + $_.i = $_.i + 8; //#8219 + } //#8219 + $k[$j++] = 'd1wo'; //#8222 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8222 + $k[$j++] = $_.d1elo; //#8222 + $k[$j++] = $_.d1mwo; //#8222 + $k[$j++] = 4; //#8222 + $k[$j++] = false; //#8222 + $_.getRSSwidths(); //#8222 + var _48 = $k[--$j]; //#8222 + $_[$k[--$j]] = _48; //#8222 + $k[$j++] = 'd1we'; //#8223 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8223 + $k[$j++] = $_.d1ele; //#8223 + $k[$j++] = $_.d1mwe; //#8223 + $k[$j++] = 4; //#8223 + $k[$j++] = true; //#8223 + $_.getRSSwidths(); //#8223 + var _4F = $k[--$j]; //#8223 + $_[$k[--$j]] = _4F; //#8223 + $k[$j++] = 'd2wo'; //#8224 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8224 + $k[$j++] = $_.d2elo; //#8224 + $k[$j++] = $_.d2mwo; //#8224 + $k[$j++] = 4; //#8224 + $k[$j++] = true; //#8224 + $_.getRSSwidths(); //#8224 + var _4M = $k[--$j]; //#8224 + $_[$k[--$j]] = _4M; //#8224 + $k[$j++] = 'd2we'; //#8225 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8225 + $k[$j++] = $_.d2ele; //#8225 + $k[$j++] = $_.d2mwe; //#8225 + $k[$j++] = 4; //#8225 + $k[$j++] = false; //#8225 + $_.getRSSwidths(); //#8225 + var _4T = $k[--$j]; //#8225 + $_[$k[--$j]] = _4T; //#8225 + $k[$j++] = 'd3wo'; //#8226 + $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8226 + $k[$j++] = $_.d3elo; //#8226 + $k[$j++] = $_.d3mwo; //#8226 + $k[$j++] = 4; //#8226 + $k[$j++] = false; //#8226 + $_.getRSSwidths(); //#8226 + var _4a = $k[--$j]; //#8226 + $_[$k[--$j]] = _4a; //#8226 + $k[$j++] = 'd3we'; //#8227 + $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8227 + $k[$j++] = $_.d3ele; //#8227 + $k[$j++] = $_.d3mwe; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $_.getRSSwidths(); //#8227 + var _4h = $k[--$j]; //#8227 + $_[$k[--$j]] = _4h; //#8227 + $k[$j++] = 'd4wo'; //#8228 + $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8228 + $k[$j++] = $_.d4elo; //#8228 + $k[$j++] = $_.d4mwo; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = true; //#8228 + $_.getRSSwidths(); //#8228 + var _4o = $k[--$j]; //#8228 + $_[$k[--$j]] = _4o; //#8228 + $k[$j++] = 'd4we'; //#8229 + $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8229 + $k[$j++] = $_.d4ele; //#8229 + $k[$j++] = $_.d4mwe; //#8229 + $k[$j++] = 4; //#8229 + $k[$j++] = false; //#8229 + $_.getRSSwidths(); //#8229 + var _4v = $k[--$j]; //#8229 + $_[$k[--$j]] = _4v; //#8229 + $_.d1w = $a(8); //#8231 + for (var _4y = 0; _4y <= 3; _4y += 1) { //#8236 + $_.i = _4y; //#8233 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8234 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8235 + } //#8235 + $_.d2w = $a(8); //#8238 + for (var _5A = 0; _5A <= 3; _5A += 1) { //#8243 + $_.i = _5A; //#8240 + $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8241 + $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8242 + } //#8242 + $_.d3w = $a(8); //#8245 + for (var _5M = 0; _5M <= 3; _5M += 1) { //#8250 + $_.i = _5M; //#8247 + $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8248 + $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8249 + } //#8249 + $_.d4w = $a(8); //#8252 + for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8257 + $_.i = _5Y; //#8254 + $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8255 + $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8256 + } //#8256 + $k[$j++] = Infinity; //#8259 + var _5j = $_.d1w; //#8260 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8260 + $k[$j++] = $get(_5j, _5k); //#8260 + } //#8260 + var _5n = $_.d2w; //#8261 + for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8261 + $k[$j++] = $get(_5n, _5o); //#8261 + } //#8261 + var _5r = $_.d3w; //#8262 + for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8262 + $k[$j++] = $get(_5r, _5s); //#8262 + } //#8262 + var _5v = $_.d4w; //#8263 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8263 + $k[$j++] = $get(_5v, _5w); //#8263 + } //#8263 + $_.widths = $a(); //#8263 + if (!bwipp_databaromni.__8279__) { //#8279 + $_ = Object.create($_); //#8279 + $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8272 + $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8278 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8278 + bwipp_databaromni.__8279__ = 1; //#8278 + $_ = Object.getPrototypeOf($_); //#8278 + } //#8278 + $_.checksum = 0; //#8281 + for (var _63 = 0; _63 <= 31; _63 += 1) { //#8285 + $_.i = _63; //#8283 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8284 + } //#8284 + $_.checksum = $_.checksum % 79; //#8286 + if ($_.checksum >= 8) { //#8287 + $_.checksum = $f($_.checksum + 1); //#8287 + } //#8287 + if ($_.checksum >= 72) { //#8288 + $_.checksum = $f($_.checksum + 1); //#8288 + } //#8288 + $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8289 + $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8290 + $_.checkrt = $a(5); //#8291 + for (var _6N = 0; _6N <= 4; _6N += 1) { //#8295 + $_.i = _6N; //#8293 + $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8294 + } //#8294 + if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8423 + $k[$j++] = Infinity; //#8300 + var _6V = $_.d1w; //#8301 + $k[$j++] = 1; //#8301 + for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8301 + $k[$j++] = $get(_6V, _6W); //#8301 + } //#8301 + var _6Z = $_.checklt; //#8301 + for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8301 + $k[$j++] = $get(_6Z, _6a); //#8301 + } //#8301 + var _6d = $_.d2w; //#8301 + for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8301 + $k[$j++] = $get(_6d, _6e); //#8301 + } //#8301 + var _6h = $_.d4w; //#8302 + for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8302 + $k[$j++] = $get(_6h, _6i); //#8302 + } //#8302 + var _6l = $_.checkrt; //#8302 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8302 + $k[$j++] = $get(_6l, _6m); //#8302 + } //#8302 + var _6p = $_.d3w; //#8302 + for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8302 + $k[$j++] = $get(_6p, _6q); //#8302 + } //#8302 + $k[$j++] = 1; //#8302 + $k[$j++] = 1; //#8302 + $_.sbs = $a(); //#8302 + $k[$j++] = Infinity; //#8305 + var _6u = $_.sbs; //#8307 + $k[$j++] = Infinity; //#8308 + for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8308 + $k[$j++] = $_.height; //#8308 + } //#8308 + var _6z = $a(); //#8308 + $k[$j++] = Infinity; //#8309 + for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8309 + $k[$j++] = 0; //#8309 + } //#8309 + var _73 = $a(); //#8309 + $k[$j++] = 'ren'; //#8314 + $k[$j++] = bwipp_renlinear; //#8314 + $k[$j++] = 'sbs'; //#8314 + $k[$j++] = _6u; //#8314 + $k[$j++] = 'bhs'; //#8314 + $k[$j++] = _6z; //#8314 + $k[$j++] = 'bbs'; //#8314 + $k[$j++] = _73; //#8314 + $k[$j++] = 'txt'; //#8314 + $k[$j++] = $_.txt; //#8314 + $k[$j++] = 'textxalign'; //#8314 + $k[$j++] = "center"; //#8314 + $k[$j++] = 'borderleft'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'borderright'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'opt'; //#8314 + $k[$j++] = $_.options; //#8314 + var _76 = $d(); //#8314 + $k[$j++] = _76; //#8317 + if (!$_.dontdraw) { //#8317 + bwipp_renlinear(); //#8317 + } //#8317 + } else { //#8423 + $k[$j++] = Infinity; //#8321 + var _78 = $_.d1w; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8321 + $k[$j++] = $get(_78, _79); //#8321 + } //#8321 + var _7C = $_.checklt; //#8321 + for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8321 + $k[$j++] = $get(_7C, _7D); //#8321 + } //#8321 + var _7G = $_.d2w; //#8321 + for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8321 + $k[$j++] = $get(_7G, _7H); //#8321 + } //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 0; //#8321 + $_.top = $a(); //#8321 + $k[$j++] = Infinity; //#8322 + var _7L = $_.d4w; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8322 + $k[$j++] = $get(_7L, _7M); //#8322 + } //#8322 + var _7P = $_.checkrt; //#8322 + for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8322 + $k[$j++] = $get(_7P, _7Q); //#8322 + } //#8322 + var _7T = $_.d3w; //#8322 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8322 + $k[$j++] = $get(_7T, _7U); //#8322 + } //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 0; //#8322 + $_.bot = $a(); //#8322 + for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8327 + $_.i = _7Y; //#8324 + for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8325 + $k[$j++] = 0; //#8325 + } //#8325 + for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8326 + $k[$j++] = 1; //#8326 + } //#8326 + } //#8326 + $astore($a(50)); //#8328 + $_.top = $k[--$j]; //#8328 + for (var _7l = 0; _7l <= 24; _7l += 2) { //#8333 + $_.i = _7l; //#8330 + for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8331 + $k[$j++] = 1; //#8331 + } //#8331 + for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8332 + $k[$j++] = 0; //#8332 + } //#8332 + } //#8332 + $astore($a(50)); //#8334 + $_.bot = $k[--$j]; //#8334 + if ($eq($_.format, "stacked")) { //#8356 + $_.sep = $a(50); //#8338 + $put($_.sep, 0, 0); //#8339 + for (var _81 = 1; _81 <= 49; _81 += 1) { //#8347 + $_.i = _81; //#8341 + if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8343 + } else { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8345 + } //#8345 + } //#8345 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8348 + $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8349 + $k[$j++] = Infinity; //#8350 + for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8351 + $aload($_.top); //#8351 + } //#8351 + $aload($_.sep); //#8352 + for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8353 + $aload($_.bot); //#8353 + } //#8353 + $_.pixs = $a(); //#8353 + $_.pixy = ~~($_.pixs.length / 50); //#8355 + } //#8355 + if ($eq($_.format, "stackedomni")) { //#8406 + $k[$j++] = Infinity; //#8360 + $forall($_.top, function() { //#8360 + var _8X = $k[--$j]; //#8360 + $k[$j++] = $f(1 - _8X); //#8360 + }); //#8360 + $_.sep1 = $a(); //#8360 + $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8361 + $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8362 + for (var _8d = 18; _8d <= 30; _8d += 1) { //#8375 + $_.i = _8d; //#8364 + if ($get($_.top, $_.i) == 0) { //#8372 + if ($get($_.top, $_.i - 1) == 1) { //#8369 + $k[$j++] = 1; //#8367 + } else { //#8369 + var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8369 + $k[$j++] = _8n; //#8369 + } //#8369 + } else { //#8372 + $k[$j++] = 0; //#8372 + } //#8372 + $put($_.sep1, $_.i, $k[--$j]); //#8374 + } //#8374 + $k[$j++] = Infinity; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 1; //#8376 + } //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $_.sep2 = $a(); //#8376 + $k[$j++] = Infinity; //#8377 + $forall($_.bot, function() { //#8377 + var _8v = $k[--$j]; //#8377 + $k[$j++] = $f(1 - _8v); //#8377 + }); //#8377 + $_.sep3 = $a(); //#8377 + $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8378 + $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8379 + for (var _91 = 19; _91 <= 31; _91 += 1) { //#8392 + $_.i = _91; //#8381 + if ($get($_.bot, $_.i) == 0) { //#8389 + if ($get($_.bot, $_.i - 1) == 1) { //#8386 + $k[$j++] = 1; //#8384 + } else { //#8386 + var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8386 + $k[$j++] = _9B; //#8386 + } //#8386 + } else { //#8389 + $k[$j++] = 0; //#8389 + } //#8389 + $put($_.sep3, $_.i, $k[--$j]); //#8391 + } //#8391 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8393 + $k[$j++] = true; //#8394 + for (var _9G = 0; _9G <= 12; _9G += 1) { //#8394 + var _9L = $k[--$j]; //#8394 + $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8394 + } //#8394 + if ($k[--$j]) { //#8397 + $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8396 + } //#8396 + $k[$j++] = Infinity; //#8398 + for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8399 + $aload($_.top); //#8399 + } //#8399 + $aload($_.sep1); //#8400 + $aload($_.sep2); //#8401 + $aload($_.sep3); //#8402 + for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8403 + $aload($_.bot); //#8403 + } //#8403 + $_.pixs = $a(); //#8403 + $_.pixy = ~~($_.pixs.length / 50); //#8405 + } //#8405 var _9g = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -11055,2056 +11313,2073 @@ function bwipp_databaromni() { ["pixy", $_.pixy], ["height", $_.pixy / 72], ["width", 50 / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#8272 - $k[$j++] = _9g; //#8275 - if (!$_.dontdraw) { //#8275 - bwipp_renmatrix(); //#8275 - } //#8275 - } //#8275 - $_ = Object.getPrototypeOf($_); //#8279 - $_ = Object.getPrototypeOf($_); //#8281 -} - + ]); //#8420 + $k[$j++] = _9g; //#8423 + if (!$_.dontdraw) { //#8423 + bwipp_renmatrix(); //#8423 + } //#8423 + } //#8423 + $_ = Object.getPrototypeOf($_); //#8427 + $_ = Object.getPrototypeOf($_); //#8429 +} //bwipp_databaromni function bwipp_databarstacked() { - $_ = Object.create($_); //#8310 - $_.dontdraw = false; //#8313 - $k[$j++] = $_; //#8315 - bwipp_processoptions(); //#8315 - $_.options = $k[--$j]; //#8315 - $_.barcode = $k[--$j]; //#8316 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8321 - $k[$j++] = 'bwipp.databarstackedBadAI#8320'; //#8320 - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8320 - bwipp_raiseerror(); //#8320 - } //#8320 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8324 - $k[$j++] = 'bwipp.databarstackedBadLength#8323'; //#8323 - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8323 - bwipp_raiseerror(); //#8323 - } //#8323 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8325 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8329 - var _B = $get(_8, _9); //#8329 - if ((_B < 48) || (_B > 57)) { //#8328 - $k[$j++] = 'bwipp.databarstackedBadCharacter#8327'; //#8327 - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8327 - bwipp_raiseerror(); //#8327 - } //#8327 - } //#8327 - $_.checksum = 0; //#8332 - for (var _C = 0; _C <= 12; _C += 1) { //#8336 - $_.i = _C; //#8334 - $k[$j++] = 'checksum'; //#8335 - $k[$j++] = $_.checksum; //#8335 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8335 - if (($_.i % 2) == 0) { //#8335 - var _I = $k[--$j]; //#8335 - $k[$j++] = _I * 3; //#8335 - } //#8335 - var _J = $k[--$j]; //#8335 - var _K = $k[--$j]; //#8335 - $_[$k[--$j]] = $f(_K + _J); //#8335 - } //#8335 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8337 - if ($_.barcode.length == 18) { //#8342 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8341 - $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8340'; //#8340 - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8340 - bwipp_raiseerror(); //#8340 - } //#8340 - } //#8340 - var _R = $s(18); //#8343 - $puti(_R, 0, $_.barcode); //#8344 - $put(_R, 17, $_.checksum + 48); //#8345 - $_.barcode = _R; //#8346 - $put($_.options, "dontdraw", true); //#8349 - $put($_.options, "format", "stacked"); //#8350 - $k[$j++] = 'args'; //#8352 - $k[$j++] = $_.barcode; //#8352 - $k[$j++] = $_.options; //#8352 - bwipp_databaromni(); //#8352 - var _Y = $k[--$j]; //#8352 - $_[$k[--$j]] = _Y; //#8352 - $put($_.args, "opt", $_.options); //#8354 - $k[$j++] = $_.args; //#8357 - if (!$_.dontdraw) { //#8357 - bwipp_renmatrix(); //#8357 - } //#8357 - $_ = Object.getPrototypeOf($_); //#8359 -} - -function bwipp_databarstackedomni() { - $_ = Object.create($_); //#8388 - $_.dontdraw = false; //#8391 - $k[$j++] = $_; //#8393 - bwipp_processoptions(); //#8393 - $_.options = $k[--$j]; //#8393 - $_.barcode = $k[--$j]; //#8394 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8399 - $k[$j++] = 'bwipp.databarstackedomniBadAI#8398'; //#8398 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8398 - bwipp_raiseerror(); //#8398 - } //#8398 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8402 - $k[$j++] = 'bwipp.databarstackedomniBadLength#8401'; //#8401 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8401 - bwipp_raiseerror(); //#8401 - } //#8401 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8403 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8407 - var _B = $get(_8, _9); //#8407 - if ((_B < 48) || (_B > 57)) { //#8406 - $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8405'; //#8405 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8405 - bwipp_raiseerror(); //#8405 - } //#8405 - } //#8405 - $_.checksum = 0; //#8410 - for (var _C = 0; _C <= 12; _C += 1) { //#8414 - $_.i = _C; //#8412 - $k[$j++] = 'checksum'; //#8413 - $k[$j++] = $_.checksum; //#8413 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8413 - if (($_.i % 2) == 0) { //#8413 - var _I = $k[--$j]; //#8413 - $k[$j++] = _I * 3; //#8413 - } //#8413 - var _J = $k[--$j]; //#8413 - var _K = $k[--$j]; //#8413 - $_[$k[--$j]] = $f(_K + _J); //#8413 - } //#8413 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8415 - if ($_.barcode.length == 18) { //#8420 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8419 - $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8418'; //#8418 - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8418 - bwipp_raiseerror(); //#8418 - } //#8418 - } //#8418 - var _R = $s(18); //#8421 - $puti(_R, 0, $_.barcode); //#8422 - $put(_R, 17, $_.checksum + 48); //#8423 - $_.barcode = _R; //#8424 - $put($_.options, "dontdraw", true); //#8427 - $put($_.options, "format", "stackedomni"); //#8428 - $k[$j++] = 'args'; //#8430 - $k[$j++] = $_.barcode; //#8430 - $k[$j++] = $_.options; //#8430 - bwipp_databaromni(); //#8430 - var _Y = $k[--$j]; //#8430 - $_[$k[--$j]] = _Y; //#8430 - $put($_.args, "opt", $_.options); //#8432 - $k[$j++] = $_.args; //#8435 - if (!$_.dontdraw) { //#8435 - bwipp_renmatrix(); //#8435 - } //#8435 - $_ = Object.getPrototypeOf($_); //#8437 -} - -function bwipp_databartruncated() { - $_ = Object.create($_); //#8466 - $_.dontdraw = false; //#8469 - $k[$j++] = $_; //#8471 - bwipp_processoptions(); //#8471 - $_.options = $k[--$j]; //#8471 - $_.barcode = $k[--$j]; //#8472 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8477 - $k[$j++] = 'bwipp.databartruncatedBadAI#8476'; //#8476 - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8476 - bwipp_raiseerror(); //#8476 - } //#8476 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8480 - $k[$j++] = 'bwipp.databartruncatedBadLength#8479'; //#8479 - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8479 - bwipp_raiseerror(); //#8479 - } //#8479 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8481 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8485 - var _B = $get(_8, _9); //#8485 - if ((_B < 48) || (_B > 57)) { //#8484 - $k[$j++] = 'bwipp.databartruncatedBadCharacter#8483'; //#8483 - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8483 - bwipp_raiseerror(); //#8483 + $_ = Object.create($_); //#8458 + $_.dontdraw = false; //#8461 + $k[$j++] = $_; //#8463 + bwipp_processoptions(); //#8463 + $_.options = $k[--$j]; //#8463 + $_.barcode = $k[--$j]; //#8464 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8469 + $k[$j++] = 'bwipp.databarstackedBadLength#8468'; //#8468 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8468 + bwipp_raiseerror(); //#8468 + } //#8468 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8472 + $k[$j++] = 'bwipp.databarstackedBadAI#8471'; //#8471 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8471 + bwipp_raiseerror(); //#8471 + } //#8471 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8473 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8477 + var _B = $get(_8, _9); //#8477 + if ((_B < 48) || (_B > 57)) { //#8476 + $k[$j++] = 'bwipp.databarstackedBadCharacter#8475'; //#8475 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8475 + bwipp_raiseerror(); //#8475 + } //#8475 + } //#8475 + $_.checksum = 0; //#8480 + for (var _C = 0; _C <= 12; _C += 1) { //#8484 + $_.i = _C; //#8482 + $k[$j++] = 'checksum'; //#8483 + $k[$j++] = $_.checksum; //#8483 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8483 + if (($_.i % 2) == 0) { //#8483 + var _I = $k[--$j]; //#8483 + $k[$j++] = _I * 3; //#8483 } //#8483 + var _J = $k[--$j]; //#8483 + var _K = $k[--$j]; //#8483 + $_[$k[--$j]] = $f(_K + _J); //#8483 } //#8483 - $_.checksum = 0; //#8488 - for (var _C = 0; _C <= 12; _C += 1) { //#8492 - $_.i = _C; //#8490 - $k[$j++] = 'checksum'; //#8491 - $k[$j++] = $_.checksum; //#8491 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8491 - if (($_.i % 2) == 0) { //#8491 - var _I = $k[--$j]; //#8491 - $k[$j++] = _I * 3; //#8491 - } //#8491 - var _J = $k[--$j]; //#8491 - var _K = $k[--$j]; //#8491 - $_[$k[--$j]] = $f(_K + _J); //#8491 - } //#8491 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8493 - if ($_.barcode.length == 18) { //#8498 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8497 - $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8496'; //#8496 - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8496 - bwipp_raiseerror(); //#8496 - } //#8496 - } //#8496 - var _R = $s(18); //#8499 - $puti(_R, 0, $_.barcode); //#8500 - $put(_R, 17, $_.checksum + 48); //#8501 - $_.barcode = _R; //#8502 - $put($_.options, "dontdraw", true); //#8505 - $put($_.options, "format", "truncated"); //#8506 - $k[$j++] = 'args'; //#8508 - $k[$j++] = $_.barcode; //#8508 - $k[$j++] = $_.options; //#8508 - bwipp_databaromni(); //#8508 - var _Y = $k[--$j]; //#8508 - $_[$k[--$j]] = _Y; //#8508 - $put($_.args, "opt", $_.options); //#8510 - $k[$j++] = $_.args; //#8513 - if (!$_.dontdraw) { //#8513 - bwipp_renlinear(); //#8513 - } //#8513 - $_ = Object.getPrototypeOf($_); //#8515 -} - + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8485 + if ($_.barcode.length == 18) { //#8490 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8489 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8488'; //#8488 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8488 + bwipp_raiseerror(); //#8488 + } //#8488 + } //#8488 + var _R = $s(18); //#8491 + $puti(_R, 0, $_.barcode); //#8492 + $put(_R, 17, $_.checksum + 48); //#8493 + $_.barcode = _R; //#8494 + $put($_.options, "dontdraw", true); //#8497 + $put($_.options, "format", "stacked"); //#8498 + $k[$j++] = 'args'; //#8500 + $k[$j++] = $_.barcode; //#8500 + $k[$j++] = $_.options; //#8500 + bwipp_databaromni(); //#8500 + var _Y = $k[--$j]; //#8500 + $_[$k[--$j]] = _Y; //#8500 + $put($_.args, "opt", $_.options); //#8502 + $k[$j++] = $_.args; //#8505 + if (!$_.dontdraw) { //#8505 + bwipp_renmatrix(); //#8505 + } //#8505 + $_ = Object.getPrototypeOf($_); //#8507 +} //bwipp_databarstacked +function bwipp_databarstackedomni() { + $_ = Object.create($_); //#8536 + $_.dontdraw = false; //#8539 + $k[$j++] = $_; //#8541 + bwipp_processoptions(); //#8541 + $_.options = $k[--$j]; //#8541 + $_.barcode = $k[--$j]; //#8542 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8547 + $k[$j++] = 'bwipp.databarstackedomniBadAI#8546'; //#8546 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8546 + bwipp_raiseerror(); //#8546 + } //#8546 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8550 + $k[$j++] = 'bwipp.databarstackedomniBadLength#8549'; //#8549 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8549 + bwipp_raiseerror(); //#8549 + } //#8549 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8551 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8555 + var _B = $get(_8, _9); //#8555 + if ((_B < 48) || (_B > 57)) { //#8554 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8553'; //#8553 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8553 + bwipp_raiseerror(); //#8553 + } //#8553 + } //#8553 + $_.checksum = 0; //#8558 + for (var _C = 0; _C <= 12; _C += 1) { //#8562 + $_.i = _C; //#8560 + $k[$j++] = 'checksum'; //#8561 + $k[$j++] = $_.checksum; //#8561 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8561 + if (($_.i % 2) == 0) { //#8561 + var _I = $k[--$j]; //#8561 + $k[$j++] = _I * 3; //#8561 + } //#8561 + var _J = $k[--$j]; //#8561 + var _K = $k[--$j]; //#8561 + $_[$k[--$j]] = $f(_K + _J); //#8561 + } //#8561 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8563 + if ($_.barcode.length == 18) { //#8568 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8567 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8566'; //#8566 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8566 + bwipp_raiseerror(); //#8566 + } //#8566 + } //#8566 + var _R = $s(18); //#8569 + $puti(_R, 0, $_.barcode); //#8570 + $put(_R, 17, $_.checksum + 48); //#8571 + $_.barcode = _R; //#8572 + $put($_.options, "dontdraw", true); //#8575 + $put($_.options, "format", "stackedomni"); //#8576 + $k[$j++] = 'args'; //#8578 + $k[$j++] = $_.barcode; //#8578 + $k[$j++] = $_.options; //#8578 + bwipp_databaromni(); //#8578 + var _Y = $k[--$j]; //#8578 + $_[$k[--$j]] = _Y; //#8578 + $put($_.args, "opt", $_.options); //#8580 + $k[$j++] = $_.args; //#8583 + if (!$_.dontdraw) { //#8583 + bwipp_renmatrix(); //#8583 + } //#8583 + $_ = Object.getPrototypeOf($_); //#8585 +} //bwipp_databarstackedomni +function bwipp_databartruncated() { + $_ = Object.create($_); //#8614 + $_.dontdraw = false; //#8617 + $k[$j++] = $_; //#8619 + bwipp_processoptions(); //#8619 + $_.options = $k[--$j]; //#8619 + $_.barcode = $k[--$j]; //#8620 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8625 + $k[$j++] = 'bwipp.databartruncatedBadLength#8624'; //#8624 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8624 + bwipp_raiseerror(); //#8624 + } //#8624 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8628 + $k[$j++] = 'bwipp.databartruncatedBadAI#8627'; //#8627 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8627 + bwipp_raiseerror(); //#8627 + } //#8627 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8629 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8633 + var _B = $get(_8, _9); //#8633 + if ((_B < 48) || (_B > 57)) { //#8632 + $k[$j++] = 'bwipp.databartruncatedBadCharacter#8631'; //#8631 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8631 + bwipp_raiseerror(); //#8631 + } //#8631 + } //#8631 + $_.checksum = 0; //#8636 + for (var _C = 0; _C <= 12; _C += 1) { //#8640 + $_.i = _C; //#8638 + $k[$j++] = 'checksum'; //#8639 + $k[$j++] = $_.checksum; //#8639 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8639 + if (($_.i % 2) == 0) { //#8639 + var _I = $k[--$j]; //#8639 + $k[$j++] = _I * 3; //#8639 + } //#8639 + var _J = $k[--$j]; //#8639 + var _K = $k[--$j]; //#8639 + $_[$k[--$j]] = $f(_K + _J); //#8639 + } //#8639 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8641 + if ($_.barcode.length == 18) { //#8646 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8645 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8644'; //#8644 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8644 + bwipp_raiseerror(); //#8644 + } //#8644 + } //#8644 + var _R = $s(18); //#8647 + $puti(_R, 0, $_.barcode); //#8648 + $put(_R, 17, $_.checksum + 48); //#8649 + $_.barcode = _R; //#8650 + $put($_.options, "dontdraw", true); //#8653 + $put($_.options, "format", "truncated"); //#8654 + $k[$j++] = 'args'; //#8656 + $k[$j++] = $_.barcode; //#8656 + $k[$j++] = $_.options; //#8656 + bwipp_databaromni(); //#8656 + var _Y = $k[--$j]; //#8656 + $_[$k[--$j]] = _Y; //#8656 + $put($_.args, "opt", $_.options); //#8658 + $k[$j++] = $_.args; //#8661 + if (!$_.dontdraw) { //#8661 + bwipp_renlinear(); //#8661 + } //#8661 + $_ = Object.getPrototypeOf($_); //#8663 +} //bwipp_databartruncated function bwipp_databarlimited() { - $_ = Object.create($_); //#8545 - $_.dontdraw = false; //#8548 - $_.height = 10 / 72; //#8549 - $_.linkage = false; //#8550 - $k[$j++] = $_; //#8552 - bwipp_processoptions(); //#8552 - $_.options = $k[--$j]; //#8552 - $_.barcode = $k[--$j]; //#8553 - bwipp_loadctx(bwipp_databarlimited) //#8555 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8560 - $k[$j++] = 'bwipp.databarlimitedBadAI#8559'; //#8559 - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8559 - bwipp_raiseerror(); //#8559 - } //#8559 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8563 - $k[$j++] = 'bwipp.databarlimitedBadLength#8562'; //#8562 - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8562 - bwipp_raiseerror(); //#8562 - } //#8562 - var _7 = $get($_.barcode, 4); //#8564 - if ((_7 < 48) || (_7 > 49)) { //#8566 - $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8565'; //#8565 - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8565 - bwipp_raiseerror(); //#8565 - } //#8565 - var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8567 - for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8571 - var _D = $get(_A, _B); //#8571 - if ((_D < 48) || (_D > 57)) { //#8570 - $k[$j++] = 'bwipp.databarlimitedBadCharacter#8569'; //#8569 - $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8569 - bwipp_raiseerror(); //#8569 - } //#8569 - } //#8569 - $_.checksum = 0; //#8574 - for (var _E = 0; _E <= 12; _E += 1) { //#8578 - $_.i = _E; //#8576 - $k[$j++] = 'checksum'; //#8577 - $k[$j++] = $_.checksum; //#8577 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8577 - if (($_.i % 2) == 0) { //#8577 - var _K = $k[--$j]; //#8577 - $k[$j++] = _K * 3; //#8577 - } //#8577 - var _L = $k[--$j]; //#8577 - var _M = $k[--$j]; //#8577 - $_[$k[--$j]] = $f(_M + _L); //#8577 - } //#8577 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8579 - if ($_.barcode.length == 18) { //#8584 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8583 - $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8582'; //#8582 - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8582 - bwipp_raiseerror(); //#8582 - } //#8582 - } //#8582 - var _T = $s(18); //#8585 - $puti(_T, 0, $_.barcode); //#8586 - $put(_T, 17, $_.checksum + 48); //#8587 - $_.barcode = _T; //#8588 - if (!bwipp_databarlimited.__8593__) { //#8593 - $_ = Object.create($_); //#8593 - $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8592 - bwipp_databarlimited.__8593__ = 1; //#8592 - $_ = Object.getPrototypeOf($_); //#8592 - } //#8592 - $k[$j++] = Infinity; //#8595 - var _Z = $geti($_.barcode, 4, 13); //#8595 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8595 - $k[$j++] = $f($get(_Z, _a) - 48); //#8595 - } //#8595 - $_.binval = $a(); //#8595 - if ($_.linkage) { //#8602 - for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8601 - $_.i = _h; //#8599 - $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8600 - } //#8600 - } //#8600 - $_.txt = $a($_.barcode.length); //#8605 - for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8609 - $_.i = _u; //#8607 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8608 - } //#8608 + $_ = Object.create($_); //#8693 + $_.dontdraw = false; //#8696 + $_.height = 10 / 72; //#8697 + $_.linkage = false; //#8698 + $k[$j++] = $_; //#8700 + bwipp_processoptions(); //#8700 + $_.options = $k[--$j]; //#8700 + $_.barcode = $k[--$j]; //#8701 + bwipp_loadctx(bwipp_databarlimited) //#8703 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8708 + $k[$j++] = 'bwipp.databarlimitedBadLength#8707'; //#8707 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8707 + bwipp_raiseerror(); //#8707 + } //#8707 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8711 + $k[$j++] = 'bwipp.databarlimitedBadAI#8710'; //#8710 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8710 + bwipp_raiseerror(); //#8710 + } //#8710 + var _7 = $get($_.barcode, 4); //#8712 + if ((_7 < 48) || (_7 > 49)) { //#8714 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8713'; //#8713 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8713 + bwipp_raiseerror(); //#8713 + } //#8713 + var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8715 + for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8719 + var _D = $get(_A, _B); //#8719 + if ((_D < 48) || (_D > 57)) { //#8718 + $k[$j++] = 'bwipp.databarlimitedBadCharacter#8717'; //#8717 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8717 + bwipp_raiseerror(); //#8717 + } //#8717 + } //#8717 + $_.checksum = 0; //#8722 + for (var _E = 0; _E <= 12; _E += 1) { //#8726 + $_.i = _E; //#8724 + $k[$j++] = 'checksum'; //#8725 + $k[$j++] = $_.checksum; //#8725 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8725 + if (($_.i % 2) == 0) { //#8725 + var _K = $k[--$j]; //#8725 + $k[$j++] = _K * 3; //#8725 + } //#8725 + var _L = $k[--$j]; //#8725 + var _M = $k[--$j]; //#8725 + $_[$k[--$j]] = $f(_M + _L); //#8725 + } //#8725 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8727 + if ($_.barcode.length == 18) { //#8732 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8731 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8730'; //#8730 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8730 + bwipp_raiseerror(); //#8730 + } //#8730 + } //#8730 + var _T = $s(18); //#8733 + $puti(_T, 0, $_.barcode); //#8734 + $put(_T, 17, $_.checksum + 48); //#8735 + $_.barcode = _T; //#8736 + if (!bwipp_databarlimited.__8741__) { //#8741 + $_ = Object.create($_); //#8741 + $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8740 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8740 + bwipp_databarlimited.__8741__ = 1; //#8740 + $_ = Object.getPrototypeOf($_); //#8740 + } //#8740 + $k[$j++] = Infinity; //#8742 + var _Z = $geti($_.barcode, 4, 13); //#8743 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8743 + $k[$j++] = $f($get(_Z, _a) - 48); //#8743 + } //#8743 + $_.binval = $a(); //#8743 + if ($_.linkage) { //#8750 + for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8749 + $_.i = _h; //#8747 + $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8748 + } //#8748 + } //#8748 + $_.txt = $a($_.barcode.length); //#8753 + for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8757 + $_.i = _u; //#8755 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8756 + } //#8756 $_.ncr = function() { - var _11 = $k[--$j]; //#8612 - var _12 = $k[--$j]; //#8612 - var _13 = $f(_12 - _11); //#8612 - if (_11 < $f(_12 - _11)) { //#8612 - var _ = _13; //#8612 - _13 = _11; //#8612 - _11 = _; //#8612 - } //#8612 - $k[$j++] = _13; //#8619 - $k[$j++] = 1; //#8619 - $k[$j++] = 1; //#8619 - for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8619 - var _16 = $k[--$j]; //#8615 - var _17 = $k[--$j]; //#8616 - var _18 = $k[--$j]; //#8616 - $k[$j++] = _18; //#8618 - $k[$j++] = _17; //#8618 - $k[$j++] = _16 * _15; //#8618 - if ($le(_17, _18)) { //#8618 - var _19 = $k[--$j]; //#8617 - var _1A = $k[--$j]; //#8617 - $k[$j++] = $f(_1A + 1); //#8617 - $k[$j++] = ~~(_19 / _1A); //#8617 - } //#8617 - } //#8617 - for (;;) { //#8623 - var _1B = $k[--$j]; //#8621 - var _1C = $k[--$j]; //#8621 - var _1D = $k[--$j]; //#8621 - $k[$j++] = _1D; //#8621 - $k[$j++] = _1C; //#8621 - $k[$j++] = _1B; //#8621 - if ($gt(_1C, _1D)) { //#8621 - break; //#8621 - } //#8621 - var _1E = $k[--$j]; //#8622 - var _1F = $k[--$j]; //#8622 - $k[$j++] = $f(_1F + 1); //#8622 - $k[$j++] = ~~(_1E / _1F); //#8622 - } //#8622 - var _1G = $k[--$j]; //#8624 - var _1H = $k[--$j]; //#8624 - $k[$j++] = _1G; //#8624 - $k[$j++] = _1H; //#8624 - $j--; //#8624 - var _1I = $k[--$j]; //#8624 - var _1J = $k[--$j]; //#8624 - $k[$j++] = _1I; //#8624 - $k[$j++] = _1J; //#8624 - $j--; //#8624 - }; //#8624 + var _11 = $k[--$j]; //#8760 + var _12 = $k[--$j]; //#8760 + var _13 = $f(_12 - _11); //#8760 + if (_11 < $f(_12 - _11)) { //#8760 + var _ = _13; //#8760 + _13 = _11; //#8760 + _11 = _; //#8760 + } //#8760 + $k[$j++] = _13; //#8767 + $k[$j++] = 1; //#8767 + $k[$j++] = 1; //#8767 + for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8767 + var _16 = $k[--$j]; //#8763 + var _17 = $k[--$j]; //#8764 + var _18 = $k[--$j]; //#8764 + $k[$j++] = _18; //#8766 + $k[$j++] = _17; //#8766 + $k[$j++] = _16 * _15; //#8766 + if ($le(_17, _18)) { //#8766 + var _19 = $k[--$j]; //#8765 + var _1A = $k[--$j]; //#8765 + $k[$j++] = $f(_1A + 1); //#8765 + $k[$j++] = ~~(_19 / _1A); //#8765 + } //#8765 + } //#8765 + for (;;) { //#8771 + var _1B = $k[--$j]; //#8769 + var _1C = $k[--$j]; //#8769 + var _1D = $k[--$j]; //#8769 + $k[$j++] = _1D; //#8769 + $k[$j++] = _1C; //#8769 + $k[$j++] = _1B; //#8769 + if ($gt(_1C, _1D)) { //#8769 + break; //#8769 + } //#8769 + var _1E = $k[--$j]; //#8770 + var _1F = $k[--$j]; //#8770 + $k[$j++] = $f(_1F + 1); //#8770 + $k[$j++] = ~~(_1E / _1F); //#8770 + } //#8770 + var _1G = $k[--$j]; //#8772 + var _1H = $k[--$j]; //#8772 + $k[$j++] = _1G; //#8772 + $k[$j++] = _1H; //#8772 + $j--; //#8772 + var _1I = $k[--$j]; //#8772 + var _1J = $k[--$j]; //#8772 + $k[$j++] = _1I; //#8772 + $k[$j++] = _1J; //#8772 + $j--; //#8772 + }; //#8772 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#8628 - $_.el = $k[--$j]; //#8629 - $_.mw = $k[--$j]; //#8630 - $_.nm = $k[--$j]; //#8631 - $_.val = $k[--$j]; //#8632 - $_.out = $a($_.el); //#8633 - $_.mask = 0; //#8634 - for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8661 - $_.bar = _1T; //#8636 - $_.ew = 1; //#8637 - var _1V = $_.bar; //#8638 - $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8638 - for (;;) { //#8657 - $k[$j++] = 'sval'; //#8639 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8639 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8639 - $_.ncr(); //#8639 - var _1a = $k[--$j]; //#8639 - $_[$k[--$j]] = _1a; //#8639 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8642 - $k[$j++] = 'sval'; //#8641 - $k[$j++] = $_.sval; //#8641 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8641 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8641 - $_.ncr(); //#8641 - var _1p = $k[--$j]; //#8641 - var _1q = $k[--$j]; //#8641 - $_[$k[--$j]] = $f(_1q - _1p); //#8641 - } //#8641 - if ($f($_.el - $_.bar) > 2) { //#8651 - $_.lval = 0; //#8644 - for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8648 - $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8646 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8646 - $_.ncr(); //#8646 - $_.lval = $f($k[--$j] + $_.lval); //#8647 - } //#8647 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8649 - } else { //#8651 - if ($f($_.nm - $_.ew) > $_.mw) { //#8651 - $_.sval = $f($_.sval - 1); //#8651 - } //#8651 - } //#8651 - $_.val = $f($_.val - $_.sval); //#8653 - if ($_.val < 0) { //#8654 - break; //#8654 - } //#8654 - $_.ew = $_.ew + 1; //#8655 - var _2K = $_.bar; //#8656 - $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8656 - } //#8656 - $_.val = $f($_.val + $_.sval); //#8658 - $_.nm = $f($_.nm - $_.ew); //#8659 - $put($_.out, $_.bar, $_.ew); //#8660 - } //#8660 - $put($_.out, $f($_.el - 1), $_.nm); //#8662 - $k[$j++] = $_.out; //#8663 - }; //#8663 - for (var _2W = 0; _2W <= 11; _2W += 1) { //#8670 - $_.i = _2W; //#8667 - var _2X = $_.binval; //#8668 - var _2Y = $_.i; //#8668 - $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8668 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8669 - } //#8669 - $_.d2 = $get($_.binval, 12) % 2013571; //#8671 - var _2k = $_.binval; //#8672 - $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8672 - $_.d1 = 0; //#8674 - $_.i = true; //#8675 - for (var _2m = 0; _2m <= 12; _2m += 1) { //#8685 - $_.j = _2m; //#8677 - var _2p = $get($_.binval, $_.j); //#8678 - $k[$j++] = _2p; //#8684 - if ((_2p == 0) && $_.i) { //#8683 - $j--; //#8680 - } else { //#8683 - $_.i = false; //#8682 - $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8683 - } //#8683 - } //#8683 - if (!bwipp_databarlimited.__8697__) { //#8697 - $_ = Object.create($_); //#8697 - $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8696 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8696 - bwipp_databarlimited.__8697__ = 1; //#8696 - $_ = Object.getPrototypeOf($_); //#8696 - } //#8696 - $_.i = 0; //#8699 - for (;;) { //#8709 - if ($_.d1 <= $get($_.tab267, $_.i)) { //#8707 - var _32 = $geti($_.tab267, $_.i + 1, 7); //#8701 - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8701 - $k[$j++] = $get(_32, _33); //#8701 - } //#8701 - $_.d1te = $k[--$j]; //#8702 - $_.d1to = $k[--$j]; //#8702 - $_.d1mwe = $k[--$j]; //#8703 - $_.d1mwo = $k[--$j]; //#8703 - $_.d1ele = $k[--$j]; //#8704 - $_.d1elo = $k[--$j]; //#8704 - $_.d1gs = $k[--$j]; //#8705 - break; //#8706 - } //#8706 - $_.i = $_.i + 8; //#8708 - } //#8708 - $_.i = 0; //#8711 - for (;;) { //#8721 - if ($_.d2 <= $get($_.tab267, $_.i)) { //#8719 - var _3K = $geti($_.tab267, $_.i + 1, 7); //#8713 - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8713 - $k[$j++] = $get(_3K, _3L); //#8713 - } //#8713 - $_.d2te = $k[--$j]; //#8714 - $_.d2to = $k[--$j]; //#8714 - $_.d2mwe = $k[--$j]; //#8715 - $_.d2mwo = $k[--$j]; //#8715 - $_.d2ele = $k[--$j]; //#8716 - $_.d2elo = $k[--$j]; //#8716 - $_.d2gs = $k[--$j]; //#8717 - break; //#8718 - } //#8718 - $_.i = $_.i + 8; //#8720 - } //#8720 - $k[$j++] = 'd1wo'; //#8723 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8723 - $k[$j++] = $_.d1elo; //#8723 - $k[$j++] = $_.d1mwo; //#8723 - $k[$j++] = 7; //#8723 - $k[$j++] = false; //#8723 - $_.getRSSwidths(); //#8723 - var _3b = $k[--$j]; //#8723 - $_[$k[--$j]] = _3b; //#8723 - $k[$j++] = 'd1we'; //#8724 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8724 - $k[$j++] = $_.d1ele; //#8724 - $k[$j++] = $_.d1mwe; //#8724 - $k[$j++] = 7; //#8724 - $k[$j++] = true; //#8724 - $_.getRSSwidths(); //#8724 - var _3i = $k[--$j]; //#8724 - $_[$k[--$j]] = _3i; //#8724 - $k[$j++] = 'd2wo'; //#8725 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8725 - $k[$j++] = $_.d2elo; //#8725 - $k[$j++] = $_.d2mwo; //#8725 - $k[$j++] = 7; //#8725 - $k[$j++] = false; //#8725 - $_.getRSSwidths(); //#8725 - var _3p = $k[--$j]; //#8725 - $_[$k[--$j]] = _3p; //#8725 - $k[$j++] = 'd2we'; //#8726 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8726 - $k[$j++] = $_.d2ele; //#8726 - $k[$j++] = $_.d2mwe; //#8726 - $k[$j++] = 7; //#8726 - $k[$j++] = true; //#8726 - $_.getRSSwidths(); //#8726 - var _3w = $k[--$j]; //#8726 - $_[$k[--$j]] = _3w; //#8726 - $_.d1w = $a(14); //#8728 - for (var _3z = 0; _3z <= 6; _3z += 1) { //#8733 - $_.i = _3z; //#8730 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8731 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8732 - } //#8732 - $_.d2w = $a(14); //#8735 - for (var _4B = 0; _4B <= 6; _4B += 1) { //#8740 - $_.i = _4B; //#8737 - $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8738 - $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8739 - } //#8739 - $k[$j++] = Infinity; //#8744 - var _4M = $_.d1w; //#8743 - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8743 - $k[$j++] = $get(_4M, _4N); //#8743 - } //#8743 - var _4Q = $_.d2w; //#8744 - for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8744 - $k[$j++] = $get(_4Q, _4R); //#8744 - } //#8744 - $_.widths = $a(); //#8744 - if (!bwipp_databarlimited.__8768__) { //#8768 - $_ = Object.create($_); //#8768 - $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8751 - $k[$j++] = Infinity; //#8766 - for (var _4W = 0; _4W <= 43; _4W += 1) { //#8754 - $k[$j++] = _4W; //#8754 - } //#8754 - $k[$j++] = 45; //#8756 - $k[$j++] = 52; //#8756 - $k[$j++] = 57; //#8756 - for (var _4X = 63; _4X <= 66; _4X += 1) { //#8756 - $k[$j++] = _4X; //#8756 - } //#8756 - for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8757 - $k[$j++] = _4Y; //#8757 - } //#8757 - $k[$j++] = 82; //#8759 - for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8759 - $k[$j++] = _4Z; //#8759 - } //#8759 - $k[$j++] = 132; //#8761 - for (var _4a = 141; _4a <= 146; _4a += 1) { //#8761 - $k[$j++] = _4a; //#8761 - } //#8761 - for (var _4b = 210; _4b <= 217; _4b += 1) { //#8762 - $k[$j++] = _4b; //#8762 - } //#8762 - $k[$j++] = 220; //#8764 - for (var _4c = 316; _4c <= 320; _4c += 1) { //#8764 - $k[$j++] = _4c; //#8764 - } //#8764 - $k[$j++] = 322; //#8766 - $k[$j++] = 323; //#8766 - $k[$j++] = 326; //#8766 - $k[$j++] = 337; //#8766 - $_.checkseq = $a(); //#8766 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8767 - bwipp_databarlimited.__8768__ = 1; //#8767 - $_ = Object.getPrototypeOf($_); //#8767 - } //#8767 - $_.checksum = 0; //#8770 - for (var _4f = 0; _4f <= 27; _4f += 1) { //#8774 - $_.i = _4f; //#8772 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8773 - } //#8773 - $_.checksum = $_.checksum % 89; //#8775 - $_.seq = $get($_.checkseq, $_.checksum); //#8776 - $k[$j++] = 'swidths'; //#8777 - $k[$j++] = ~~($_.seq / 21); //#8777 - $k[$j++] = 8; //#8777 - $k[$j++] = 3; //#8777 - $k[$j++] = 6; //#8777 - $k[$j++] = false; //#8777 - $_.getRSSwidths(); //#8777 - var _4s = $k[--$j]; //#8777 - $_[$k[--$j]] = _4s; //#8777 - $k[$j++] = 'bwidths'; //#8778 - $k[$j++] = $_.seq % 21; //#8778 - $k[$j++] = 8; //#8778 - $k[$j++] = 3; //#8778 - $k[$j++] = 6; //#8778 - $k[$j++] = false; //#8778 - $_.getRSSwidths(); //#8778 - var _4v = $k[--$j]; //#8778 - $_[$k[--$j]] = _4v; //#8778 - $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8780 - for (var _4y = 0; _4y <= 5; _4y += 1) { //#8785 - $_.i = _4y; //#8782 - $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8783 - $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8784 - } //#8784 - $k[$j++] = Infinity; //#8788 - var _59 = $_.d1w; //#8788 - $k[$j++] = 1; //#8788 - for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8788 - $k[$j++] = $get(_59, _5A); //#8788 - } //#8788 - var _5D = $_.checkwidths; //#8788 - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8788 - $k[$j++] = $get(_5D, _5E); //#8788 - } //#8788 - var _5H = $_.d2w; //#8788 - for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8788 - $k[$j++] = $get(_5H, _5I); //#8788 - } //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 5; //#8788 - $_.sbs = $a(); //#8788 - $k[$j++] = Infinity; //#8799 - var _5M = $_.sbs; //#8794 - $k[$j++] = Infinity; //#8795 - for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8795 - $k[$j++] = $_.height; //#8795 - } //#8795 - var _5R = $a(); //#8795 - $k[$j++] = Infinity; //#8796 - for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8796 - $k[$j++] = 0; //#8796 - } //#8796 - var _5V = $a(); //#8796 - $k[$j++] = 'ren'; //#8799 - $k[$j++] = bwipp_renlinear; //#8799 - $k[$j++] = 'sbs'; //#8799 - $k[$j++] = _5M; //#8799 - $k[$j++] = 'bhs'; //#8799 - $k[$j++] = _5R; //#8799 - $k[$j++] = 'bbs'; //#8799 - $k[$j++] = _5V; //#8799 - $k[$j++] = 'txt'; //#8799 - $k[$j++] = $_.txt; //#8799 - $k[$j++] = 'textxalign'; //#8799 - $k[$j++] = "center"; //#8799 - $k[$j++] = 'opt'; //#8799 - $k[$j++] = $_.options; //#8799 - var _5Y = $d(); //#8799 - $k[$j++] = _5Y; //#8802 - if (!$_.dontdraw) { //#8802 - bwipp_renlinear(); //#8802 - } //#8802 - $_ = Object.getPrototypeOf($_); //#8804 - $_ = Object.getPrototypeOf($_); //#8806 -} - -function bwipp_databarexpanded() { - $_ = Object.create($_); //#8838 - $_.parse = false; //#8841 - $_.dontlint = false; //#8842 - $_.lintreqs = true; //#8843 - $_.dontdraw = false; //#8844 - $_.height = 34 / 72; //#8845 - $_.format = "expanded"; //#8846 - $_.segments = -1; //#8847 - $_.linkage = false; //#8848 - $_.barxmult = 34; //#8849 - $k[$j++] = $_; //#8851 - bwipp_processoptions(); //#8851 - $_.options = $k[--$j]; //#8851 - $_.barcode = $k[--$j]; //#8852 - bwipp_loadctx(bwipp_databarexpanded) //#8854 - if ($_.barxmult < 34) { //#8858 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8857'; //#8857 - $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#8857 - bwipp_raiseerror(); //#8857 - } //#8857 - if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#8862 - $k[$j++] = 'bwipp.databarexpandedBadFormat#8861'; //#8861 - $k[$j++] = "Valid formats are expanded and expandedstacked"; //#8861 - bwipp_raiseerror(); //#8861 - } //#8861 - if ($_.segments == -1) { //#8868 - var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#8865 - $_.segments = _7; //#8865 - } else { //#8868 - if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#8869 - $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#8868'; //#8868 - $k[$j++] = "The number of segments must be even from 2 to 22"; //#8868 - bwipp_raiseerror(); //#8868 - } //#8868 + $_.oe = $k[--$j]; //#8776 + $_.el = $k[--$j]; //#8777 + $_.mw = $k[--$j]; //#8778 + $_.nm = $k[--$j]; //#8779 + $_.val = $k[--$j]; //#8780 + $_.out = $a($_.el); //#8781 + $_.mask = 0; //#8782 + for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8809 + $_.bar = _1T; //#8784 + $_.ew = 1; //#8785 + var _1V = $_.bar; //#8786 + $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8786 + for (;;) { //#8805 + $k[$j++] = 'sval'; //#8787 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8787 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8787 + $_.ncr(); //#8787 + var _1a = $k[--$j]; //#8787 + $_[$k[--$j]] = _1a; //#8787 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8790 + $k[$j++] = 'sval'; //#8789 + $k[$j++] = $_.sval; //#8789 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8789 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8789 + $_.ncr(); //#8789 + var _1p = $k[--$j]; //#8789 + var _1q = $k[--$j]; //#8789 + $_[$k[--$j]] = $f(_1q - _1p); //#8789 + } //#8789 + if ($f($_.el - $_.bar) > 2) { //#8799 + $_.lval = 0; //#8792 + for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8796 + $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8794 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8794 + $_.ncr(); //#8794 + $_.lval = $f($k[--$j] + $_.lval); //#8795 + } //#8795 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8797 + } else { //#8799 + if ($f($_.nm - $_.ew) > $_.mw) { //#8799 + $_.sval = $f($_.sval - 1); //#8799 + } //#8799 + } //#8799 + $_.val = $f($_.val - $_.sval); //#8801 + if ($_.val < 0) { //#8802 + break; //#8802 + } //#8802 + $_.ew = $_.ew + 1; //#8803 + var _2K = $_.bar; //#8804 + $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8804 + } //#8804 + $_.val = $f($_.val + $_.sval); //#8806 + $_.nm = $f($_.nm - $_.ew); //#8807 + $put($_.out, $_.bar, $_.ew); //#8808 + } //#8808 + $put($_.out, $f($_.el - 1), $_.nm); //#8810 + $k[$j++] = $_.out; //#8811 + }; //#8811 + for (var _2W = 0; _2W <= 11; _2W += 1) { //#8818 + $_.i = _2W; //#8815 + var _2X = $_.binval; //#8816 + var _2Y = $_.i; //#8816 + $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8816 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8817 + } //#8817 + $_.d2 = $get($_.binval, 12) % 2013571; //#8819 + var _2k = $_.binval; //#8820 + $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8820 + $_.d1 = 0; //#8822 + $_.i = true; //#8823 + for (var _2m = 0; _2m <= 12; _2m += 1) { //#8833 + $_.j = _2m; //#8825 + var _2p = $get($_.binval, $_.j); //#8826 + $k[$j++] = _2p; //#8832 + if ((_2p == 0) && $_.i) { //#8831 + $j--; //#8828 + } else { //#8831 + $_.i = false; //#8830 + $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8831 + } //#8831 + } //#8831 + if (!bwipp_databarlimited.__8845__) { //#8845 + $_ = Object.create($_); //#8845 + $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8844 + bwipp_databarlimited.__8845__ = 1; //#8844 + $_ = Object.getPrototypeOf($_); //#8844 + } //#8844 + $_.i = 0; //#8847 + for (;;) { //#8857 + if ($_.d1 <= $get($_.tab267, $_.i)) { //#8855 + var _32 = $geti($_.tab267, $_.i + 1, 7); //#8849 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8849 + $k[$j++] = $get(_32, _33); //#8849 + } //#8849 + $_.d1te = $k[--$j]; //#8850 + $_.d1to = $k[--$j]; //#8850 + $_.d1mwe = $k[--$j]; //#8851 + $_.d1mwo = $k[--$j]; //#8851 + $_.d1ele = $k[--$j]; //#8852 + $_.d1elo = $k[--$j]; //#8852 + $_.d1gs = $k[--$j]; //#8853 + break; //#8854 + } //#8854 + $_.i = $_.i + 8; //#8856 + } //#8856 + $_.i = 0; //#8859 + for (;;) { //#8869 + if ($_.d2 <= $get($_.tab267, $_.i)) { //#8867 + var _3K = $geti($_.tab267, $_.i + 1, 7); //#8861 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8861 + $k[$j++] = $get(_3K, _3L); //#8861 + } //#8861 + $_.d2te = $k[--$j]; //#8862 + $_.d2to = $k[--$j]; //#8862 + $_.d2mwe = $k[--$j]; //#8863 + $_.d2mwo = $k[--$j]; //#8863 + $_.d2ele = $k[--$j]; //#8864 + $_.d2elo = $k[--$j]; //#8864 + $_.d2gs = $k[--$j]; //#8865 + break; //#8866 + } //#8866 + $_.i = $_.i + 8; //#8868 } //#8868 - $k[$j++] = $_.barcode; //#8872 - $k[$j++] = 'ai'; //#8872 - bwipp_gs1process(); //#8872 - $_.fncs = $k[--$j]; //#8873 - $_.vals = $k[--$j]; //#8874 - $_.ais = $k[--$j]; //#8875 - for (;;) { //#8963 - if ($_.ais.length == 2) { //#8887 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#8886 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#8885 - $k[$j++] = "0100"; //#8884 - $k[$j++] = false; //#8884 - break; //#8884 - } //#8884 - } //#8884 - } //#8884 - if ($_.ais.length == 2) { //#8896 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#8895 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#8894 - $k[$j++] = "0101"; //#8893 - $k[$j++] = false; //#8893 - break; //#8893 - } //#8893 - } //#8893 - } //#8893 - if ($_.ais.length == 2) { //#8905 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#8904 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#8903 - $k[$j++] = "0101"; //#8902 - $k[$j++] = false; //#8902 - break; //#8902 - } //#8902 - } //#8902 + $k[$j++] = 'd1wo'; //#8871 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8871 + $k[$j++] = $_.d1elo; //#8871 + $k[$j++] = $_.d1mwo; //#8871 + $k[$j++] = 7; //#8871 + $k[$j++] = false; //#8871 + $_.getRSSwidths(); //#8871 + var _3b = $k[--$j]; //#8871 + $_[$k[--$j]] = _3b; //#8871 + $k[$j++] = 'd1we'; //#8872 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8872 + $k[$j++] = $_.d1ele; //#8872 + $k[$j++] = $_.d1mwe; //#8872 + $k[$j++] = 7; //#8872 + $k[$j++] = true; //#8872 + $_.getRSSwidths(); //#8872 + var _3i = $k[--$j]; //#8872 + $_[$k[--$j]] = _3i; //#8872 + $k[$j++] = 'd2wo'; //#8873 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8873 + $k[$j++] = $_.d2elo; //#8873 + $k[$j++] = $_.d2mwo; //#8873 + $k[$j++] = 7; //#8873 + $k[$j++] = false; //#8873 + $_.getRSSwidths(); //#8873 + var _3p = $k[--$j]; //#8873 + $_[$k[--$j]] = _3p; //#8873 + $k[$j++] = 'd2we'; //#8874 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8874 + $k[$j++] = $_.d2ele; //#8874 + $k[$j++] = $_.d2mwe; //#8874 + $k[$j++] = 7; //#8874 + $k[$j++] = true; //#8874 + $_.getRSSwidths(); //#8874 + var _3w = $k[--$j]; //#8874 + $_[$k[--$j]] = _3w; //#8874 + $_.d1w = $a(14); //#8876 + for (var _3z = 0; _3z <= 6; _3z += 1) { //#8881 + $_.i = _3z; //#8878 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8879 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8880 + } //#8880 + $_.d2w = $a(14); //#8883 + for (var _4B = 0; _4B <= 6; _4B += 1) { //#8888 + $_.i = _4B; //#8885 + $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8886 + $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8887 + } //#8887 + $k[$j++] = Infinity; //#8890 + var _4M = $_.d1w; //#8891 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8891 + $k[$j++] = $get(_4M, _4N); //#8891 + } //#8891 + var _4Q = $_.d2w; //#8892 + for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8892 + $k[$j++] = $get(_4Q, _4R); //#8892 + } //#8892 + $_.widths = $a(); //#8892 + if (!bwipp_databarlimited.__8916__) { //#8916 + $_ = Object.create($_); //#8916 + $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8899 + $k[$j++] = Infinity; //#8901 + for (var _4W = 0; _4W <= 43; _4W += 1) { //#8902 + $k[$j++] = _4W; //#8902 } //#8902 - var _k = $_.ais.length; //#8908 - if ((_k == 2) || (_k == 3)) { //#8939 - $k[$j++] = 'ai310x'; //#8909 - $k[$j++] = false; //#8909 - for (var _l = 3100; _l <= 3109; _l += 1) { //#8909 - var _q = $k[--$j]; //#8909 - $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#8909 - } //#8909 - var _r = $k[--$j]; //#8909 - $_[$k[--$j]] = _r; //#8909 - $k[$j++] = 'ai320x'; //#8910 - $k[$j++] = false; //#8910 - for (var _t = 3200; _t <= 3209; _t += 1) { //#8910 - var _y = $k[--$j]; //#8910 - $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#8910 - } //#8910 - var _z = $k[--$j]; //#8910 - $_[$k[--$j]] = _z; //#8910 - if ($_.ais.length == 3) { //#8914 - var _12 = $a(["11", "13", "15", "17"]); //#8912 - $k[$j++] = 'aibad'; //#8912 - $k[$j++] = true; //#8912 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#8912 - var _18 = $k[--$j]; //#8912 - $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#8912 - } //#8912 - var _19 = $k[--$j]; //#8912 - $_[$k[--$j]] = _19; //#8912 - } else { //#8914 - $_.aibad = false; //#8914 - } //#8914 - if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#8938 - if ($_.ais.length == 3) { //#8935 - var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#8920 - var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#8921 - if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#8930 - if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#8922 - $k[$j++] = "0111000"; //#8922 - $k[$j++] = false; //#8922 - break; //#8922 - } //#8922 - if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#8923 - $k[$j++] = "0111001"; //#8923 - $k[$j++] = false; //#8923 - break; //#8923 - } //#8923 - if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#8924 - $k[$j++] = "0111010"; //#8924 - $k[$j++] = false; //#8924 - break; //#8924 - } //#8924 - if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#8925 - $k[$j++] = "0111011"; //#8925 - $k[$j++] = false; //#8925 - break; //#8925 - } //#8925 - if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#8926 - $k[$j++] = "0111100"; //#8926 - $k[$j++] = false; //#8926 - break; //#8926 - } //#8926 - if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#8927 - $k[$j++] = "0111101"; //#8927 - $k[$j++] = false; //#8927 - break; //#8927 - } //#8927 - if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#8928 - $k[$j++] = "0111110"; //#8928 - $k[$j++] = false; //#8928 - break; //#8928 - } //#8928 - if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#8929 - $k[$j++] = "0111111"; //#8929 - $k[$j++] = false; //#8929 - break; //#8929 - } //#8929 - } //#8929 - } else { //#8935 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#8936 - if ($_.ai310x) { //#8934 - $k[$j++] = "0111000"; //#8934 - $k[$j++] = false; //#8934 - break; //#8934 - } //#8934 - if ($_.ai320x) { //#8935 - $k[$j++] = "0111001"; //#8935 - $k[$j++] = false; //#8935 - break; //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - if ($_.ais.length >= 2) { //#8947 - $k[$j++] = 'ai392x'; //#8943 - $k[$j++] = false; //#8943 - for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#8943 - var _25 = $k[--$j]; //#8943 - $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#8943 - } //#8943 - var _26 = $k[--$j]; //#8943 - $_[$k[--$j]] = _26; //#8943 - if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#8946 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8945 - $k[$j++] = "01100"; //#8945 - $k[$j++] = true; //#8945 - break; //#8945 - } //#8945 - } //#8945 - } //#8945 - if ($_.ais.length >= 2) { //#8955 - $k[$j++] = 'ai393x'; //#8951 - $k[$j++] = false; //#8951 - for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#8951 - var _2K = $k[--$j]; //#8951 - $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#8951 - } //#8951 - var _2L = $k[--$j]; //#8951 - $_[$k[--$j]] = _2L; //#8951 - if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#8954 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8953 - $k[$j++] = "01101"; //#8953 - $k[$j++] = true; //#8953 - break; //#8953 - } //#8953 - } //#8953 - } //#8953 - if ($eq($get($_.ais, 0), "01")) { //#8958 - $k[$j++] = "1"; //#8958 - $k[$j++] = true; //#8958 - break; //#8958 - } //#8958 - $k[$j++] = "00"; //#8961 - $k[$j++] = true; //#8961 - break; //#8961 - } //#8961 - $_.gpfallow = $k[--$j]; //#8964 - $_.method = $k[--$j]; //#8965 + $k[$j++] = 45; //#8904 + $k[$j++] = 52; //#8904 + $k[$j++] = 57; //#8904 + for (var _4X = 63; _4X <= 66; _4X += 1) { //#8904 + $k[$j++] = _4X; //#8904 + } //#8904 + for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8905 + $k[$j++] = _4Y; //#8905 + } //#8905 + $k[$j++] = 82; //#8907 + for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8907 + $k[$j++] = _4Z; //#8907 + } //#8907 + $k[$j++] = 132; //#8909 + for (var _4a = 141; _4a <= 146; _4a += 1) { //#8909 + $k[$j++] = _4a; //#8909 + } //#8909 + for (var _4b = 210; _4b <= 217; _4b += 1) { //#8910 + $k[$j++] = _4b; //#8910 + } //#8910 + $k[$j++] = 220; //#8912 + for (var _4c = 316; _4c <= 320; _4c += 1) { //#8912 + $k[$j++] = _4c; //#8912 + } //#8912 + $k[$j++] = 322; //#8914 + $k[$j++] = 323; //#8914 + $k[$j++] = 326; //#8914 + $k[$j++] = 337; //#8914 + $_.checkseq = $a(); //#8914 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8915 + bwipp_databarlimited.__8916__ = 1; //#8915 + $_ = Object.getPrototypeOf($_); //#8915 + } //#8915 + $_.checksum = 0; //#8918 + for (var _4f = 0; _4f <= 27; _4f += 1) { //#8922 + $_.i = _4f; //#8920 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8921 + } //#8921 + $_.checksum = $_.checksum % 89; //#8923 + $_.seq = $get($_.checkseq, $_.checksum); //#8924 + $k[$j++] = 'swidths'; //#8925 + $k[$j++] = ~~($_.seq / 21); //#8925 + $k[$j++] = 8; //#8925 + $k[$j++] = 3; //#8925 + $k[$j++] = 6; //#8925 + $k[$j++] = false; //#8925 + $_.getRSSwidths(); //#8925 + var _4s = $k[--$j]; //#8925 + $_[$k[--$j]] = _4s; //#8925 + $k[$j++] = 'bwidths'; //#8926 + $k[$j++] = $_.seq % 21; //#8926 + $k[$j++] = 8; //#8926 + $k[$j++] = 3; //#8926 + $k[$j++] = 6; //#8926 + $k[$j++] = false; //#8926 + $_.getRSSwidths(); //#8926 + var _4v = $k[--$j]; //#8926 + $_[$k[--$j]] = _4v; //#8926 + $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8928 + for (var _4y = 0; _4y <= 5; _4y += 1) { //#8933 + $_.i = _4y; //#8930 + $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8931 + $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8932 + } //#8932 + $k[$j++] = Infinity; //#8935 + var _59 = $_.d1w; //#8936 + $k[$j++] = 1; //#8936 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8936 + $k[$j++] = $get(_59, _5A); //#8936 + } //#8936 + var _5D = $_.checkwidths; //#8936 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8936 + $k[$j++] = $get(_5D, _5E); //#8936 + } //#8936 + var _5H = $_.d2w; //#8936 + for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8936 + $k[$j++] = $get(_5H, _5I); //#8936 + } //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 5; //#8936 + $_.sbs = $a(); //#8936 + $k[$j++] = Infinity; //#8940 + var _5M = $_.sbs; //#8942 + $k[$j++] = Infinity; //#8943 + for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8943 + $k[$j++] = $_.height; //#8943 + } //#8943 + var _5R = $a(); //#8943 + $k[$j++] = Infinity; //#8944 + for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8944 + $k[$j++] = 0; //#8944 + } //#8944 + var _5V = $a(); //#8944 + $k[$j++] = 'ren'; //#8949 + $k[$j++] = bwipp_renlinear; //#8949 + $k[$j++] = 'sbs'; //#8949 + $k[$j++] = _5M; //#8949 + $k[$j++] = 'bhs'; //#8949 + $k[$j++] = _5R; //#8949 + $k[$j++] = 'bbs'; //#8949 + $k[$j++] = _5V; //#8949 + $k[$j++] = 'txt'; //#8949 + $k[$j++] = $_.txt; //#8949 + $k[$j++] = 'textxalign'; //#8949 + $k[$j++] = "center"; //#8949 + $k[$j++] = 'borderleft'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'borderright'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'opt'; //#8949 + $k[$j++] = $_.options; //#8949 + var _5Y = $d(); //#8949 + $k[$j++] = _5Y; //#8952 + if (!$_.dontdraw) { //#8952 + bwipp_renlinear(); //#8952 + } //#8952 + $_ = Object.getPrototypeOf($_); //#8954 + $_ = Object.getPrototypeOf($_); //#8956 +} //bwipp_databarlimited +function bwipp_databarexpanded() { + $_ = Object.create($_); //#8988 + $_.parse = false; //#8991 + $_.dontlint = false; //#8992 + $_.lintreqs = true; //#8993 + $_.dontdraw = false; //#8994 + $_.height = 34 / 72; //#8995 + $_.format = "expanded"; //#8996 + $_.segments = -1; //#8997 + $_.linkage = false; //#8998 + $_.barxmult = 34; //#8999 + $k[$j++] = $_; //#9001 + bwipp_processoptions(); //#9001 + $_.options = $k[--$j]; //#9001 + $_.barcode = $k[--$j]; //#9002 + bwipp_loadctx(bwipp_databarexpanded) //#9004 + if ($_.barxmult < 34) { //#9008 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#9007'; //#9007 + $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#9007 + bwipp_raiseerror(); //#9007 + } //#9007 + if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#9012 + $k[$j++] = 'bwipp.databarexpandedBadFormat#9011'; //#9011 + $k[$j++] = "Valid formats are expanded and expandedstacked"; //#9011 + bwipp_raiseerror(); //#9011 + } //#9011 + if ($_.segments == -1) { //#9018 + var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#9015 + $_.segments = _7; //#9015 + } else { //#9018 + if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#9019 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#9018'; //#9018 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#9018 + bwipp_raiseerror(); //#9018 + } //#9018 + } //#9018 + $k[$j++] = $_.barcode; //#9022 + $k[$j++] = 'ai'; //#9022 + bwipp_gs1process(); //#9022 + $_.fncs = $k[--$j]; //#9023 + $_.vals = $k[--$j]; //#9024 + $_.ais = $k[--$j]; //#9025 + for (;;) { //#9113 + if ($_.ais.length == 2) { //#9037 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#9036 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#9035 + $k[$j++] = "0100"; //#9034 + $k[$j++] = false; //#9034 + break; //#9034 + } //#9034 + } //#9034 + } //#9034 + if ($_.ais.length == 2) { //#9046 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#9045 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#9044 + $k[$j++] = "0101"; //#9043 + $k[$j++] = false; //#9043 + break; //#9043 + } //#9043 + } //#9043 + } //#9043 + if ($_.ais.length == 2) { //#9055 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#9054 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#9053 + $k[$j++] = "0101"; //#9052 + $k[$j++] = false; //#9052 + break; //#9052 + } //#9052 + } //#9052 + } //#9052 + var _k = $_.ais.length; //#9058 + if ((_k == 2) || (_k == 3)) { //#9089 + $k[$j++] = 'ai310x'; //#9059 + $k[$j++] = false; //#9059 + for (var _l = 3100; _l <= 3109; _l += 1) { //#9059 + var _q = $k[--$j]; //#9059 + $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#9059 + } //#9059 + var _r = $k[--$j]; //#9059 + $_[$k[--$j]] = _r; //#9059 + $k[$j++] = 'ai320x'; //#9060 + $k[$j++] = false; //#9060 + for (var _t = 3200; _t <= 3209; _t += 1) { //#9060 + var _y = $k[--$j]; //#9060 + $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#9060 + } //#9060 + var _z = $k[--$j]; //#9060 + $_[$k[--$j]] = _z; //#9060 + if ($_.ais.length == 3) { //#9064 + var _12 = $a(["11", "13", "15", "17"]); //#9062 + $k[$j++] = 'aibad'; //#9062 + $k[$j++] = true; //#9062 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#9062 + var _18 = $k[--$j]; //#9062 + $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#9062 + } //#9062 + var _19 = $k[--$j]; //#9062 + $_[$k[--$j]] = _19; //#9062 + } else { //#9064 + $_.aibad = false; //#9064 + } //#9064 + if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#9088 + if ($_.ais.length == 3) { //#9085 + var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#9070 + var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#9071 + if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#9080 + if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#9072 + $k[$j++] = "0111000"; //#9072 + $k[$j++] = false; //#9072 + break; //#9072 + } //#9072 + if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#9073 + $k[$j++] = "0111001"; //#9073 + $k[$j++] = false; //#9073 + break; //#9073 + } //#9073 + if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#9074 + $k[$j++] = "0111010"; //#9074 + $k[$j++] = false; //#9074 + break; //#9074 + } //#9074 + if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#9075 + $k[$j++] = "0111011"; //#9075 + $k[$j++] = false; //#9075 + break; //#9075 + } //#9075 + if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#9076 + $k[$j++] = "0111100"; //#9076 + $k[$j++] = false; //#9076 + break; //#9076 + } //#9076 + if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#9077 + $k[$j++] = "0111101"; //#9077 + $k[$j++] = false; //#9077 + break; //#9077 + } //#9077 + if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#9078 + $k[$j++] = "0111110"; //#9078 + $k[$j++] = false; //#9078 + break; //#9078 + } //#9078 + if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#9079 + $k[$j++] = "0111111"; //#9079 + $k[$j++] = false; //#9079 + break; //#9079 + } //#9079 + } //#9079 + } else { //#9085 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#9086 + if ($_.ai310x) { //#9084 + $k[$j++] = "0111000"; //#9084 + $k[$j++] = false; //#9084 + break; //#9084 + } //#9084 + if ($_.ai320x) { //#9085 + $k[$j++] = "0111001"; //#9085 + $k[$j++] = false; //#9085 + break; //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + if ($_.ais.length >= 2) { //#9097 + $k[$j++] = 'ai392x'; //#9093 + $k[$j++] = false; //#9093 + for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#9093 + var _25 = $k[--$j]; //#9093 + $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#9093 + } //#9093 + var _26 = $k[--$j]; //#9093 + $_[$k[--$j]] = _26; //#9093 + if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#9096 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9095 + $k[$j++] = "01100"; //#9095 + $k[$j++] = true; //#9095 + break; //#9095 + } //#9095 + } //#9095 + } //#9095 + if ($_.ais.length >= 2) { //#9105 + $k[$j++] = 'ai393x'; //#9101 + $k[$j++] = false; //#9101 + for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#9101 + var _2K = $k[--$j]; //#9101 + $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#9101 + } //#9101 + var _2L = $k[--$j]; //#9101 + $_[$k[--$j]] = _2L; //#9101 + if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#9104 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9103 + $k[$j++] = "01101"; //#9103 + $k[$j++] = true; //#9103 + break; //#9103 + } //#9103 + } //#9103 + } //#9103 + if ($eq($get($_.ais, 0), "01")) { //#9108 + $k[$j++] = "1"; //#9108 + $k[$j++] = true; //#9108 + break; //#9108 + } //#9108 + $k[$j++] = "00"; //#9111 + $k[$j++] = true; //#9111 + break; //#9111 + } //#9111 + $_.gpfallow = $k[--$j]; //#9114 + $_.method = $k[--$j]; //#9115 $_.conv12to40 = function() { - var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#8968 - var _2Z = $k[--$j]; //#8969 - var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#8969 - $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#8969 - var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#8970 - $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#8970 - var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#8971 - $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#8971 - var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#8972 - $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#8972 - $k[$j++] = _2Y; //#8973 - $k[$j++] = _2Z; //#8973 - $j--; //#8973 - }; //#8973 + var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#9118 + var _2Z = $k[--$j]; //#9119 + var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#9119 + $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#9119 + var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#9120 + $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#9120 + var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#9121 + $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#9121 + var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#9122 + $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#9122 + $k[$j++] = _2Y; //#9123 + $k[$j++] = _2Z; //#9123 + $j--; //#9123 + }; //#9123 $_.conv13to44 = function() { - var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#8977 - var _2s = $k[--$j]; //#8978 - var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#8978 - $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#8978 - $k[$j++] = _2r; //#8979 - $k[$j++] = _2r; //#8979 - $k[$j++] = $geti(_2s, 1, 12); //#8979 - $_.conv12to40(); //#8979 - var _2y = $k[--$j]; //#8979 - $puti($k[--$j], 4, _2y); //#8979 - }; //#8979 + var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#9127 + var _2s = $k[--$j]; //#9128 + var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#9128 + $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#9128 + $k[$j++] = _2r; //#9129 + $k[$j++] = _2r; //#9129 + $k[$j++] = $geti(_2s, 1, 12); //#9129 + $_.conv12to40(); //#9129 + var _2y = $k[--$j]; //#9129 + $puti($k[--$j], 4, _2y); //#9129 + }; //#9129 $_.tobin = function() { - var _31 = $s($k[--$j]); //#8983 - $k[$j++] = _31; //#8983 - for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#8983 - var _34 = $k[--$j]; //#8983 - $put(_34, _33, 48); //#8983 - $k[$j++] = _34; //#8983 - } //#8983 - var _35 = $k[--$j]; //#8984 - var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#8984 - $puti(_35, _35.length - _38.length, _38); //#8984 - $k[$j++] = _35; //#8984 - }; //#8984 - $_.fnc1 = -1; //#8987 - $_.lnumeric = -2; //#8987 - $_.lalphanumeric = -3; //#8987 - $_.liso646 = -4; //#8987 - if ($eq($_.method, "00")) { //#8992 - $_.cdf = $a([]); //#8990 - $_.gpf = $a([]); //#8991 - } //#8991 - if ($eq($_.method, "1")) { //#9001 - $k[$j++] = 'cdf'; //#8995 - $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#8995 - $_.conv13to44(); //#8995 - var _3G = $k[--$j]; //#8995 - $_[$k[--$j]] = _3G; //#8995 - $k[$j++] = Infinity; //#8996 - var _3I = $_.cdf; //#8996 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#8996 - $k[$j++] = $f($get(_3I, _3J) - 48); //#8996 - } //#8996 - $_.cdf = $a(); //#8996 - $_.gpf = $a([]); //#8997 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#8998 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#8999 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9000 - } //#9000 - if ($eq($_.method, "0100")) { //#9012 - $_.cdf = $s(55); //#9004 - $k[$j++] = $_.cdf; //#9005 - $k[$j++] = 0; //#9005 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9005 - $_.conv12to40(); //#9005 - var _3d = $k[--$j]; //#9005 - var _3e = $k[--$j]; //#9005 - $puti($k[--$j], _3e, _3d); //#9005 - $k[$j++] = $_.cdf; //#9006 - $k[$j++] = 40; //#9006 - $k[$j++] = $cvi($get($_.vals, 1)); //#9006 - $k[$j++] = 15; //#9006 - $_.tobin(); //#9006 - var _3j = $k[--$j]; //#9006 - var _3k = $k[--$j]; //#9006 - $puti($k[--$j], _3k, _3j); //#9006 - $k[$j++] = Infinity; //#9007 - var _3m = $_.cdf; //#9007 - for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9007 - $k[$j++] = $get(_3m, _3n) - 48; //#9007 - } //#9007 - $_.cdf = $a(); //#9007 - $_.gpf = $a([]); //#9008 - $_.ais = $a([]); //#9009 - $_.vals = $a([]); //#9010 - $_.fncs = $a([]); //#9011 - } //#9011 - if ($eq($_.method, "0101")) { //#9028 - $_.cdf = $s(55); //#9015 - $k[$j++] = $_.cdf; //#9016 - $k[$j++] = 0; //#9016 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9016 - $_.conv12to40(); //#9016 - var _41 = $k[--$j]; //#9016 - var _42 = $k[--$j]; //#9016 - $puti($k[--$j], _42, _41); //#9016 - if ($eq($get($_.ais, 1), "3202")) { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)); //#9018 - $k[$j++] = 15; //#9018 - $_.tobin(); //#9018 - } else { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9020 - $k[$j++] = 15; //#9020 - $_.tobin(); //#9020 - } //#9020 - $puti($_.cdf, 40, $k[--$j]); //#9022 - $k[$j++] = Infinity; //#9023 - var _4C = $_.cdf; //#9023 - for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9023 - $k[$j++] = $get(_4C, _4D) - 48; //#9023 - } //#9023 - $_.cdf = $a(); //#9023 - $_.gpf = $a([]); //#9024 - $_.ais = $a([]); //#9025 - $_.vals = $a([]); //#9026 - $_.fncs = $a([]); //#9027 - } //#9027 - if ($_.method.length == 7) { //#9050 - $_.cdf = $s(76); //#9031 - $k[$j++] = $_.cdf; //#9032 - $k[$j++] = 0; //#9032 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9032 - $_.conv12to40(); //#9032 - var _4R = $k[--$j]; //#9032 - var _4S = $k[--$j]; //#9032 - $puti($k[--$j], _4S, _4R); //#9032 - var _4U = $s(6); //#9033 - $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9033 - $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9034 - $k[$j++] = $cvi(_4U); //#9034 - $k[$j++] = 20; //#9034 - $_.tobin(); //#9034 - $puti($_.cdf, 40, $k[--$j]); //#9035 - if ($_.ais.length == 3) { //#9042 - var _4f = $get($_.vals, 2); //#9037 - $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9040 - } else { //#9042 - $k[$j++] = 38400; //#9042 - } //#9042 - $k[$j++] = 16; //#9044 - $_.tobin(); //#9044 - $puti($_.cdf, 60, $k[--$j]); //#9044 - $k[$j++] = Infinity; //#9045 - var _4l = $_.cdf; //#9045 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9045 - $k[$j++] = $get(_4l, _4m) - 48; //#9045 - } //#9045 - $_.cdf = $a(); //#9045 - $_.gpf = $a([]); //#9046 - $_.ais = $a([]); //#9047 - $_.vals = $a([]); //#9048 - $_.fncs = $a([]); //#9049 - } //#9049 - if ($eq($_.method, "01100")) { //#9061 - $_.cdf = $s(42); //#9053 - $k[$j++] = $_.cdf; //#9054 - $k[$j++] = 0; //#9054 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9054 - $_.conv12to40(); //#9054 - var _50 = $k[--$j]; //#9054 - var _51 = $k[--$j]; //#9054 - $puti($k[--$j], _51, _50); //#9054 - $k[$j++] = $_.cdf; //#9055 - $k[$j++] = 40; //#9055 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9055 - $k[$j++] = 2; //#9055 - $_.tobin(); //#9055 - var _57 = $k[--$j]; //#9055 - var _58 = $k[--$j]; //#9055 - $puti($k[--$j], _58, _57); //#9055 - $k[$j++] = Infinity; //#9056 - var _5A = $_.cdf; //#9056 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9056 - $k[$j++] = $get(_5A, _5B) - 48; //#9056 - } //#9056 - $_.cdf = $a(); //#9056 - $k[$j++] = Infinity; //#9057 - $forall($get($_.vals, 1)); //#9057 - if ($_.ais.length > 2) { //#9057 - $k[$j++] = $_.fnc1; //#9057 - } //#9057 - $_.gpf = $a(); //#9057 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9058 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9059 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9060 - } //#9060 - if ($eq($_.method, "01101")) { //#9073 - $_.cdf = $s(52); //#9064 - $k[$j++] = $_.cdf; //#9065 - $k[$j++] = 0; //#9065 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9065 - $_.conv12to40(); //#9065 - var _5Z = $k[--$j]; //#9065 - var _5a = $k[--$j]; //#9065 - $puti($k[--$j], _5a, _5Z); //#9065 - $k[$j++] = $_.cdf; //#9066 - $k[$j++] = 40; //#9066 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9066 - $k[$j++] = 2; //#9066 - $_.tobin(); //#9066 - var _5g = $k[--$j]; //#9066 - var _5h = $k[--$j]; //#9066 - $puti($k[--$j], _5h, _5g); //#9066 - $k[$j++] = $_.cdf; //#9067 - $k[$j++] = 42; //#9067 - $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9067 - $k[$j++] = 10; //#9067 - $_.tobin(); //#9067 - var _5n = $k[--$j]; //#9067 - var _5o = $k[--$j]; //#9067 - $puti($k[--$j], _5o, _5n); //#9067 - $k[$j++] = Infinity; //#9068 - var _5q = $_.cdf; //#9068 - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9068 - $k[$j++] = $get(_5q, _5r) - 48; //#9068 - } //#9068 - $_.cdf = $a(); //#9068 - $k[$j++] = Infinity; //#9069 - var _5w = $get($_.vals, 1); //#9069 - var _5x = $geti(_5w, 3, _5w.length - 3); //#9069 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9069 - $k[$j++] = $get(_5x, _5y); //#9069 - } //#9069 - if ($_.ais.length > 2) { //#9069 - $k[$j++] = $_.fnc1; //#9069 - } //#9069 - $_.gpf = $a(); //#9069 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9070 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9071 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9072 - } //#9072 - if ($_.gpfallow) { //#9079 - $_.vlf = $a(2); //#9077 - } else { //#9079 - $_.vlf = $a([]); //#9079 - } //#9079 - if (!bwipp_databarexpanded.__9120__) { //#9120 - $_ = Object.create($_); //#9120 - $k[$j++] = Infinity; //#9093 - for (var _6G = 0; _6G <= 119; _6G += 1) { //#9092 - var _6I = $strcpy($s(2), "00"); //#9085 - var _6K = $cvrs($s(2), _6G, 11); //#9085 - $puti(_6I, 2 - _6K.length, _6K); //#9086 - $k[$j++] = _6G; //#9087 - $k[$j++] = _6I; //#9087 - if ($get(_6I, 0) == 65) { //#9087 - var _6M = $k[--$j]; //#9087 - $put(_6M, 0, 94); //#9087 - $k[$j++] = _6M; //#9087 - } //#9087 - var _6N = $k[--$j]; //#9088 - $k[$j++] = _6N; //#9088 - if ($get(_6N, 1) == 65) { //#9088 - var _6P = $k[--$j]; //#9088 - $put(_6P, 1, 94); //#9088 - $k[$j++] = _6P; //#9088 - } //#9088 - var _6Q = $k[--$j]; //#9089 - var _6T = $strcpy($s(7), "0000000"); //#9090 - var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9090 - $puti(_6T, 7 - _6V.length, _6V); //#9091 - $k[$j++] = _6Q; //#9091 - $k[$j++] = _6T; //#9091 - } //#9091 - $k[$j++] = $_.lalphanumeric; //#9093 - $k[$j++] = "0000"; //#9093 - $_.numeric = $d(); //#9094 - $k[$j++] = Infinity; //#9103 - for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9097 - $k[$j++] = _6Y; //#9097 - $k[$j++] = _6Y - 43; //#9097 - $k[$j++] = 5; //#9097 - $_.tobin(); //#9097 - } //#9097 - $k[$j++] = $_.fnc1; //#9099 - $k[$j++] = "01111"; //#9099 - for (var _6a = 65; _6a <= 90; _6a += 1) { //#9099 - $k[$j++] = _6a; //#9099 - $k[$j++] = _6a - 33; //#9099 - $k[$j++] = 6; //#9099 - $_.tobin(); //#9099 - } //#9099 - $k[$j++] = 42; //#9101 - $k[$j++] = "111010"; //#9101 - for (var _6b = 44; _6b <= 47; _6b += 1) { //#9101 - $k[$j++] = _6b; //#9101 - $k[$j++] = _6b + 15; //#9101 - $k[$j++] = 6; //#9101 - $_.tobin(); //#9101 - } //#9101 - $k[$j++] = $_.lnumeric; //#9103 - $k[$j++] = "000"; //#9103 - $k[$j++] = $_.liso646; //#9103 - $k[$j++] = "00100"; //#9103 - $_.alphanumeric = $d(); //#9104 - $k[$j++] = Infinity; //#9118 - for (var _6f = 48; _6f <= 57; _6f += 1) { //#9107 - $k[$j++] = _6f; //#9107 - $k[$j++] = _6f - 43; //#9107 - $k[$j++] = 5; //#9107 - $_.tobin(); //#9107 - } //#9107 - $k[$j++] = $_.fnc1; //#9109 - $k[$j++] = "01111"; //#9109 - for (var _6h = 65; _6h <= 90; _6h += 1) { //#9109 - $k[$j++] = _6h; //#9109 - $k[$j++] = _6h - 1; //#9109 - $k[$j++] = 7; //#9109 - $_.tobin(); //#9109 - } //#9109 - for (var _6i = 97; _6i <= 122; _6i += 1) { //#9110 - $k[$j++] = _6i; //#9110 - $k[$j++] = _6i - 7; //#9110 - $k[$j++] = 7; //#9110 - $_.tobin(); //#9110 - } //#9110 - $k[$j++] = 33; //#9113 - $k[$j++] = "11101000"; //#9113 - $k[$j++] = 34; //#9113 - $k[$j++] = "11101001"; //#9113 - for (var _6j = 37; _6j <= 47; _6j += 1) { //#9113 - $k[$j++] = _6j; //#9113 - $k[$j++] = _6j + 197; //#9113 - $k[$j++] = 8; //#9113 - $_.tobin(); //#9113 - } //#9113 - for (var _6k = 58; _6k <= 63; _6k += 1) { //#9114 - $k[$j++] = _6k; //#9114 - $k[$j++] = _6k + 187; //#9114 - $k[$j++] = 8; //#9114 - $_.tobin(); //#9114 - } //#9114 - $k[$j++] = 95; //#9118 - $k[$j++] = "11111011"; //#9118 - $k[$j++] = 32; //#9118 - $k[$j++] = "11111100"; //#9118 - $k[$j++] = $_.lnumeric; //#9118 - $k[$j++] = "000"; //#9118 - $k[$j++] = $_.lalphanumeric; //#9118 - $k[$j++] = "00100"; //#9118 - $_.iso646 = $d(); //#9119 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9119 - bwipp_databarexpanded.__9120__ = 1; //#9119 - $_ = Object.getPrototypeOf($_); //#9119 - } //#9119 - for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9138 - $_.i = _6r; //#9124 - $_.ai = $get($_.ais, $_.i); //#9125 - $_.val = $get($_.vals, $_.i); //#9126 - var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9127 - $puti(_71, 0, $_.gpf); //#9128 - $k[$j++] = _71; //#9129 - $k[$j++] = _71; //#9129 - $k[$j++] = $_.gpf.length; //#9129 - $k[$j++] = $_.ai; //#9129 - $k[$j++] = Infinity; //#9129 - var _75 = $k[--$j]; //#9129 - var _76 = $k[--$j]; //#9129 - $k[$j++] = _75; //#9129 - $forall(_76); //#9129 - var _77 = $a(); //#9129 - var _78 = $k[--$j]; //#9129 - $puti($k[--$j], _78, _77); //#9129 - var _7A = $k[--$j]; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = $_.gpf.length + $_.ai.length; //#9130 - $k[$j++] = $_.val; //#9130 - $k[$j++] = Infinity; //#9130 - var _7E = $k[--$j]; //#9130 - var _7F = $k[--$j]; //#9130 - $k[$j++] = _7E; //#9130 - $forall(_7F); //#9130 - var _7G = $a(); //#9130 - var _7H = $k[--$j]; //#9130 - $puti($k[--$j], _7H, _7G); //#9130 - $_.gpf = $k[--$j]; //#9131 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9137 - var _7Q = $a($_.gpf.length + 1); //#9133 - $puti(_7Q, 0, $_.gpf); //#9134 - $put(_7Q, $_.gpf.length, $_.fnc1); //#9135 - $_.gpf = _7Q; //#9136 - } //#9136 - } //#9136 - $_.rembits = function() { - var _7U = $k[--$j]; //#9142 - var _7V = 48; //#9144 - var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9144 - if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9144 - var _ = _7V; //#9144 - _7V = _7W; //#9144 - _7W = _; //#9144 - } //#9144 - var _7X = ~~(_7W / 12); //#9145 - $k[$j++] = _7U; //#9149 - $k[$j++] = _7W; //#9149 - $k[$j++] = _7X; //#9149 - if ((_7X % $_.segments) == 1) { //#9148 - var _7Z = $k[--$j]; //#9146 - var _7a = $k[--$j]; //#9146 - $k[$j++] = $f(_7Z + 1) * 12; //#9146 - $k[$j++] = _7a; //#9146 - $j--; //#9146 - } else { //#9148 - $j--; //#9148 - } //#9148 - var _7b = $k[--$j]; //#9150 - var _7c = $k[--$j]; //#9150 - $k[$j++] = $f(_7b - _7c); //#9150 - }; //#9150 - $_.encode = function() { - var _7d = $k[--$j]; //#9154 - $k[$j++] = _7d; //#9154 - if ($ne(_7d, 'raw')) { //#9154 - var _7e = $k[--$j]; //#9154 - var _7g = $get(_7e, $k[--$j]); //#9154 - $k[$j++] = _7g; //#9154 - } else { //#9154 - $j--; //#9154 - } //#9154 - $k[$j++] = Infinity; //#9155 - var _7h = $k[--$j]; //#9155 - var _7i = $k[--$j]; //#9155 - $k[$j++] = _7h; //#9155 - $forall(_7i, function() { //#9155 - var _7j = $k[--$j]; //#9155 - $k[$j++] = $f(_7j - 48); //#9155 - }); //#9155 - var _7k = $a(); //#9155 - $puti($_.gpfenc, $_.j, _7k); //#9157 - $_.j = _7k.length + $_.j; //#9158 - }; //#9158 - $k[$j++] = Infinity; //#9162 - for (var _7p = 0, _7q = $_.gpf.length; _7p < _7q; _7p++) { //#9162 - $k[$j++] = 0; //#9162 - } //#9162 - $k[$j++] = 0; //#9162 - $k[$j++] = -1; //#9162 - $_.numericruns = $a(); //#9162 - $k[$j++] = Infinity; //#9163 - for (var _7t = 0, _7u = $_.gpf.length; _7t < _7u; _7t++) { //#9163 - $k[$j++] = 0; //#9163 - } //#9163 - $k[$j++] = 0; //#9163 - $_.alphanumericruns = $a(); //#9163 - $k[$j++] = Infinity; //#9164 - for (var _7x = 0, _7y = $_.gpf.length; _7x < _7y; _7x++) { //#9164 - $k[$j++] = 0; //#9164 - } //#9164 - $k[$j++] = 9999; //#9164 - $_.nextiso646only = $a(); //#9164 - for (var _81 = $_.gpf.length - 1; _81 >= 0; _81 -= 1) { //#9186 - $_.i = _81; //#9166 - var _86 = $strcpy($s(2), "00"); //#9168 - var _89 = $get($_.gpf, $_.i); //#9169 - $k[$j++] = $get($_.gpf, $_.i); //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = 0; //#9169 - $k[$j++] = _89; //#9169 - if (_89 == $_.fnc1) { //#9169 - $j--; //#9169 - $k[$j++] = 94; //#9169 - } //#9169 - var _8B = $k[--$j]; //#9169 - var _8C = $k[--$j]; //#9169 - $put($k[--$j], _8C, _8B); //#9169 - if ($_.i < ($_.gpf.length - 1)) { //#9170 - var _8G = $k[--$j]; //#9170 - var _8J = $get($_.gpf, $_.i + 1); //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = 1; //#9170 - $k[$j++] = _8J; //#9170 - if (_8J == $_.fnc1) { //#9170 - $j--; //#9170 - $k[$j++] = 94; //#9170 - } //#9170 - var _8L = $k[--$j]; //#9170 - var _8M = $k[--$j]; //#9170 - $put($k[--$j], _8M, _8L); //#9170 + var _31 = $s($k[--$j]); //#9133 + $k[$j++] = _31; //#9133 + for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#9133 + var _34 = $k[--$j]; //#9133 + $put(_34, _33, 48); //#9133 + $k[$j++] = _34; //#9133 + } //#9133 + var _35 = $k[--$j]; //#9134 + var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#9134 + $puti(_35, _35.length - _38.length, _38); //#9134 + $k[$j++] = _35; //#9134 + }; //#9134 + $_.fnc1 = -1; //#9137 + $_.lnumeric = -2; //#9137 + $_.lalphanumeric = -3; //#9137 + $_.liso646 = -4; //#9137 + if ($eq($_.method, "00")) { //#9142 + $_.cdf = $a([]); //#9140 + $_.gpf = $a([]); //#9141 + } //#9141 + if ($eq($_.method, "1")) { //#9151 + $k[$j++] = 'cdf'; //#9145 + $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#9145 + $_.conv13to44(); //#9145 + var _3G = $k[--$j]; //#9145 + $_[$k[--$j]] = _3G; //#9145 + $k[$j++] = Infinity; //#9146 + var _3I = $_.cdf; //#9146 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#9146 + $k[$j++] = $f($get(_3I, _3J) - 48); //#9146 + } //#9146 + $_.cdf = $a(); //#9146 + $_.gpf = $a([]); //#9147 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#9148 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#9149 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9150 + } //#9150 + if ($eq($_.method, "0100")) { //#9162 + $_.cdf = $s(55); //#9154 + $k[$j++] = $_.cdf; //#9155 + $k[$j++] = 0; //#9155 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9155 + $_.conv12to40(); //#9155 + var _3d = $k[--$j]; //#9155 + var _3e = $k[--$j]; //#9155 + $puti($k[--$j], _3e, _3d); //#9155 + $k[$j++] = $_.cdf; //#9156 + $k[$j++] = 40; //#9156 + $k[$j++] = $cvi($get($_.vals, 1)); //#9156 + $k[$j++] = 15; //#9156 + $_.tobin(); //#9156 + var _3j = $k[--$j]; //#9156 + var _3k = $k[--$j]; //#9156 + $puti($k[--$j], _3k, _3j); //#9156 + $k[$j++] = Infinity; //#9157 + var _3m = $_.cdf; //#9157 + for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9157 + $k[$j++] = $get(_3m, _3n) - 48; //#9157 + } //#9157 + $_.cdf = $a(); //#9157 + $_.gpf = $a([]); //#9158 + $_.ais = $a([]); //#9159 + $_.vals = $a([]); //#9160 + $_.fncs = $a([]); //#9161 + } //#9161 + if ($eq($_.method, "0101")) { //#9178 + $_.cdf = $s(55); //#9165 + $k[$j++] = $_.cdf; //#9166 + $k[$j++] = 0; //#9166 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9166 + $_.conv12to40(); //#9166 + var _41 = $k[--$j]; //#9166 + var _42 = $k[--$j]; //#9166 + $puti($k[--$j], _42, _41); //#9166 + if ($eq($get($_.ais, 1), "3202")) { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)); //#9168 + $k[$j++] = 15; //#9168 + $_.tobin(); //#9168 + } else { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9170 + $k[$j++] = 15; //#9170 + $_.tobin(); //#9170 } //#9170 - var _8Q = $get($_.numeric, $k[--$j]) !== undefined; //#9171 - if (_8Q) { //#9174 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9172 - } else { //#9174 - $put($_.numericruns, $_.i, 0); //#9174 - } //#9174 - var _8Y = $k[--$j]; //#9176 - var _8a = $get($_.alphanumeric, _8Y) !== undefined; //#9176 - $k[$j++] = _8Y; //#9180 - if (_8a) { //#9179 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9177 - } else { //#9179 - $put($_.alphanumericruns, $_.i, 0); //#9179 - } //#9179 - var _8i = $k[--$j]; //#9181 - var _8k = $get($_.iso646, _8i) !== undefined; //#9181 - var _8m = $get($_.alphanumeric, _8i) !== undefined; //#9181 - if (_8k && (!_8m)) { //#9184 - $put($_.nextiso646only, $_.i, 0); //#9182 - } else { //#9184 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9184 - } //#9184 - } //#9184 - $_.gpfenc = $a(252); //#9189 - $_.i = 0; //#9190 - $_.j = 0; //#9190 - $_.mode = "numeric"; //#9190 - for (;;) { //#9280 - if ($_.i == $_.gpf.length) { //#9192 - break; //#9192 + $puti($_.cdf, 40, $k[--$j]); //#9172 + $k[$j++] = Infinity; //#9173 + var _4C = $_.cdf; //#9173 + for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9173 + $k[$j++] = $get(_4C, _4D) - 48; //#9173 + } //#9173 + $_.cdf = $a(); //#9173 + $_.gpf = $a([]); //#9174 + $_.ais = $a([]); //#9175 + $_.vals = $a([]); //#9176 + $_.fncs = $a([]); //#9177 + } //#9177 + if ($_.method.length == 7) { //#9200 + $_.cdf = $s(76); //#9181 + $k[$j++] = $_.cdf; //#9182 + $k[$j++] = 0; //#9182 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9182 + $_.conv12to40(); //#9182 + var _4R = $k[--$j]; //#9182 + var _4S = $k[--$j]; //#9182 + $puti($k[--$j], _4S, _4R); //#9182 + var _4U = $s(6); //#9183 + $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9183 + $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9184 + $k[$j++] = $cvi(_4U); //#9184 + $k[$j++] = 20; //#9184 + $_.tobin(); //#9184 + $puti($_.cdf, 40, $k[--$j]); //#9185 + if ($_.ais.length == 3) { //#9192 + var _4f = $get($_.vals, 2); //#9187 + $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9190 + } else { //#9192 + $k[$j++] = 38400; //#9192 } //#9192 - for (;;) { //#9279 - if ($eq($_.mode, "numeric")) { //#9228 - if ($_.i <= ($_.gpf.length - 2)) { //#9225 - var _90 = $s(2); //#9197 - var _93 = $get($_.gpf, $_.i); //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = 0; //#9198 - $k[$j++] = _93; //#9198 - if (_93 == $_.fnc1) { //#9198 - $j--; //#9198 - $k[$j++] = 94; //#9198 - } //#9198 - var _95 = $k[--$j]; //#9198 - var _96 = $k[--$j]; //#9198 - $put($k[--$j], _96, _95); //#9198 - var _98 = $k[--$j]; //#9199 - var _9B = $get($_.gpf, $_.i + 1); //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = 1; //#9199 - $k[$j++] = _9B; //#9199 - if (_9B == $_.fnc1) { //#9199 - $j--; //#9199 - $k[$j++] = 94; //#9199 - } //#9199 - var _9D = $k[--$j]; //#9199 - var _9E = $k[--$j]; //#9199 - $put($k[--$j], _9E, _9D); //#9199 - var _9G = $k[--$j]; //#9200 - var _9I = $get($_.numeric, _9G) !== undefined; //#9200 - $k[$j++] = _9G; //#9204 - if (_9I) { //#9204 - $k[$j++] = $_.numeric; //#9201 - $_.encode(); //#9201 - $_.i = $_.i + 2; //#9202 - break; //#9203 - } //#9203 - $j--; //#9205 - $k[$j++] = $_.lalphanumeric; //#9206 - $k[$j++] = $_.numeric; //#9206 - $_.encode(); //#9206 - $_.mode = "alphanumeric"; //#9207 - break; //#9208 - } else { //#9225 - var _9P = $get($_.gpf, $_.i); //#9210 - if ((_9P < 48) || (_9P > 57)) { //#9214 - $k[$j++] = $_.lalphanumeric; //#9211 - $k[$j++] = $_.numeric; //#9211 - $_.encode(); //#9211 - $_.mode = "alphanumeric"; //#9212 - break; //#9213 - } //#9213 - $k[$j++] = 'rem'; //#9215 - $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9215 - $_.rembits(); //#9215 - var _9W = $k[--$j]; //#9215 - $_[$k[--$j]] = _9W; //#9215 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#9225 - var _9d = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9217 - var _9i = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9218 - $puti(_9d, 4 - _9i.length, _9i); //#9219 - $k[$j++] = _9d; //#9219 - $k[$j++] = 'raw'; //#9219 - $_.encode(); //#9219 - $_.i = $_.i + 1; //#9220 - break; //#9221 - } else { //#9225 - var _9k = $s(2); //#9223 - $put(_9k, 0, $get($_.gpf, $_.i)); //#9223 - $put(_9k, 1, 94); //#9223 - $k[$j++] = _9k; //#9223 - $k[$j++] = $_.numeric; //#9223 - $_.encode(); //#9223 - $_.i = $_.i + 1; //#9224 - break; //#9225 - } //#9225 - } //#9225 - } //#9225 - if ($eq($_.mode, "alphanumeric")) { //#9255 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9236 - $k[$j++] = $_.fnc1; //#9232 - $k[$j++] = $_.alphanumeric; //#9232 - $_.encode(); //#9232 - $_.mode = "numeric"; //#9233 - $_.i = $_.i + 1; //#9234 - break; //#9235 - } //#9235 - var _A0 = $get($_.gpf, $_.i); //#9237 - var _A2 = $get($_.iso646, _A0) !== undefined; //#9237 - var _A4 = $get($_.alphanumeric, _A0) !== undefined; //#9237 - if (_A2 && (!_A4)) { //#9241 - $k[$j++] = $_.liso646; //#9238 - $k[$j++] = $_.alphanumeric; //#9238 - $_.encode(); //#9238 - $_.mode = "iso646"; //#9239 - break; //#9240 - } //#9240 - if ($get($_.numericruns, $_.i) >= 6) { //#9246 - $k[$j++] = $_.lnumeric; //#9243 - $k[$j++] = $_.alphanumeric; //#9243 - $_.encode(); //#9243 - $_.mode = "numeric"; //#9244 - break; //#9245 - } //#9245 - var _AE = $get($_.numericruns, $_.i); //#9247 - if ((_AE >= 4) && ($f(_AE + $_.i) == $_.gpf.length)) { //#9251 - $k[$j++] = $_.lnumeric; //#9248 - $k[$j++] = $_.alphanumeric; //#9248 - $_.encode(); //#9248 - $_.mode = "numeric"; //#9249 - break; //#9250 - } //#9250 - $k[$j++] = $get($_.gpf, $_.i); //#9252 - $k[$j++] = $_.alphanumeric; //#9252 - $_.encode(); //#9252 - $_.i = $_.i + 1; //#9253 - break; //#9254 - } //#9254 - if ($eq($_.mode, "iso646")) { //#9277 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9263 - $k[$j++] = $_.fnc1; //#9259 - $k[$j++] = $_.iso646; //#9259 - $_.encode(); //#9259 - $_.mode = "numeric"; //#9260 - $_.i = $_.i + 1; //#9261 - break; //#9262 - } //#9262 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9268 - $k[$j++] = $_.lnumeric; //#9265 - $k[$j++] = $_.iso646; //#9265 - $_.encode(); //#9265 - $_.mode = "numeric"; //#9266 - break; //#9267 - } //#9267 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9273 - $k[$j++] = $_.lalphanumeric; //#9270 - $k[$j++] = $_.iso646; //#9270 - $_.encode(); //#9270 - $_.mode = "alphanumeric"; //#9271 - break; //#9272 - } //#9272 - $k[$j++] = $get($_.gpf, $_.i); //#9274 - $k[$j++] = $_.iso646; //#9274 - $_.encode(); //#9274 - $_.i = $_.i + 1; //#9275 - break; //#9276 - } //#9276 - } //#9276 - } //#9276 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9281 - var _Ay = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9285 - $k[$j++] = _Ay; //#9285 - $k[$j++] = _Ay; //#9285 - $_.rembits(); //#9285 - var _Az = $k[--$j]; //#9285 - $_.pad = $a(_Az); //#9285 - $k[$j++] = _Az; //#9292 - if ($_.vlf.length != 0) { //#9291 - var _B2 = $k[--$j]; //#9287 - var _B4 = ~~($f($k[--$j] + _B2) / 12); //#9288 - $put($_.vlf, 0, _B4 % 2); //#9288 - var _B6 = (_B4 <= 14) ? 0 : 1; //#9289 - $put($_.vlf, 1, _B6); //#9289 - } else { //#9291 - $j -= 2; //#9291 - } //#9291 - if ($_.pad.length > 0) { //#9301 - for (var _BB = 0, _BA = $_.pad.length - 1; _BB <= _BA; _BB += 5) { //#9297 - $_.i = _BB; //#9295 - var _BC = $_.pad; //#9296 - var _BD = $_.i; //#9296 - var _BE = $a([0, 0, 1, 0, 0]); //#9296 - var _BF = $_.pad; //#9296 - var _BG = $_.i; //#9296 - var _BH = 5; //#9296 - var _BI = _BF.length - _BG; //#9296 - if ((_BF.length - _BG) > 5) { //#9296 - var _ = _BH; //#9296 - _BH = _BI; //#9296 - _BI = _; //#9296 - } //#9296 - $puti(_BC, _BD, $geti(_BE, 0, _BI)); //#9296 - } //#9296 - if ($eq($_.mode, "numeric")) { //#9300 - $k[$j++] = Infinity; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $aload($_.pad); //#9299 - $_.pad = $geti($a(), 0, $_.pad.length); //#9299 - } //#9299 - } //#9299 - $k[$j++] = Infinity; //#9310 - var _BQ = $_.linkage ? 1 : 0; //#9305 - $k[$j++] = _BQ; //#9306 - $forall($_.method, function() { //#9306 - var _BS = $k[--$j]; //#9306 - $k[$j++] = $f(_BS - 48); //#9306 - }); //#9306 - $aload($_.vlf); //#9307 - $aload($_.cdf); //#9308 - $aload($_.gpf); //#9309 - $aload($_.pad); //#9310 - $_.binval = $a(); //#9310 - $_.datalen = ~~($_.binval.length / 12); //#9312 + $k[$j++] = 16; //#9194 + $_.tobin(); //#9194 + $puti($_.cdf, 60, $k[--$j]); //#9194 + $k[$j++] = Infinity; //#9195 + var _4l = $_.cdf; //#9195 + for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9195 + $k[$j++] = $get(_4l, _4m) - 48; //#9195 + } //#9195 + $_.cdf = $a(); //#9195 + $_.gpf = $a([]); //#9196 + $_.ais = $a([]); //#9197 + $_.vals = $a([]); //#9198 + $_.fncs = $a([]); //#9199 + } //#9199 + if ($eq($_.method, "01100")) { //#9211 + $_.cdf = $s(42); //#9203 + $k[$j++] = $_.cdf; //#9204 + $k[$j++] = 0; //#9204 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9204 + $_.conv12to40(); //#9204 + var _50 = $k[--$j]; //#9204 + var _51 = $k[--$j]; //#9204 + $puti($k[--$j], _51, _50); //#9204 + $k[$j++] = $_.cdf; //#9205 + $k[$j++] = 40; //#9205 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9205 + $k[$j++] = 2; //#9205 + $_.tobin(); //#9205 + var _57 = $k[--$j]; //#9205 + var _58 = $k[--$j]; //#9205 + $puti($k[--$j], _58, _57); //#9205 + $k[$j++] = Infinity; //#9206 + var _5A = $_.cdf; //#9206 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9206 + $k[$j++] = $get(_5A, _5B) - 48; //#9206 + } //#9206 + $_.cdf = $a(); //#9206 + $k[$j++] = Infinity; //#9207 + $forall($get($_.vals, 1)); //#9207 + if ($_.ais.length > 2) { //#9207 + $k[$j++] = $_.fnc1; //#9207 + } //#9207 + $_.gpf = $a(); //#9207 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9208 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9209 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9210 + } //#9210 + if ($eq($_.method, "01101")) { //#9223 + $_.cdf = $s(52); //#9214 + $k[$j++] = $_.cdf; //#9215 + $k[$j++] = 0; //#9215 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9215 + $_.conv12to40(); //#9215 + var _5Z = $k[--$j]; //#9215 + var _5a = $k[--$j]; //#9215 + $puti($k[--$j], _5a, _5Z); //#9215 + $k[$j++] = $_.cdf; //#9216 + $k[$j++] = 40; //#9216 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9216 + $k[$j++] = 2; //#9216 + $_.tobin(); //#9216 + var _5g = $k[--$j]; //#9216 + var _5h = $k[--$j]; //#9216 + $puti($k[--$j], _5h, _5g); //#9216 + $k[$j++] = $_.cdf; //#9217 + $k[$j++] = 42; //#9217 + $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9217 + $k[$j++] = 10; //#9217 + $_.tobin(); //#9217 + var _5n = $k[--$j]; //#9217 + var _5o = $k[--$j]; //#9217 + $puti($k[--$j], _5o, _5n); //#9217 + $k[$j++] = Infinity; //#9218 + var _5q = $_.cdf; //#9218 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9218 + $k[$j++] = $get(_5q, _5r) - 48; //#9218 + } //#9218 + $_.cdf = $a(); //#9218 + $k[$j++] = Infinity; //#9219 + var _5w = $get($_.vals, 1); //#9219 + var _5x = $geti(_5w, 3, _5w.length - 3); //#9219 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9219 + $k[$j++] = $get(_5x, _5y); //#9219 + } //#9219 + if ($_.ais.length > 2) { //#9219 + $k[$j++] = $_.fnc1; //#9219 + } //#9219 + $_.gpf = $a(); //#9219 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9220 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9221 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9222 + } //#9222 + if ($_.gpfallow) { //#9229 + $_.vlf = $a(2); //#9227 + } else { //#9229 + $_.vlf = $a([]); //#9229 + } //#9229 + if (!bwipp_databarexpanded.__9270__) { //#9270 + $_ = Object.create($_); //#9270 + $k[$j++] = Infinity; //#9233 + for (var _6G = 0; _6G <= 119; _6G += 1) { //#9242 + var _6I = $strcpy($s(2), "00"); //#9235 + var _6K = $cvrs($s(2), _6G, 11); //#9235 + $puti(_6I, 2 - _6K.length, _6K); //#9236 + $k[$j++] = _6G; //#9237 + $k[$j++] = _6I; //#9237 + if ($get(_6I, 0) == 65) { //#9237 + var _6M = $k[--$j]; //#9237 + $put(_6M, 0, 94); //#9237 + $k[$j++] = _6M; //#9237 + } //#9237 + var _6N = $k[--$j]; //#9238 + $k[$j++] = _6N; //#9238 + if ($get(_6N, 1) == 65) { //#9238 + var _6P = $k[--$j]; //#9238 + $put(_6P, 1, 94); //#9238 + $k[$j++] = _6P; //#9238 + } //#9238 + var _6Q = $k[--$j]; //#9239 + var _6T = $strcpy($s(7), "0000000"); //#9240 + var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9240 + $puti(_6T, 7 - _6V.length, _6V); //#9241 + $k[$j++] = _6Q; //#9241 + $k[$j++] = _6T; //#9241 + } //#9241 + $k[$j++] = $_.lalphanumeric; //#9243 + $k[$j++] = "0000"; //#9243 + $_.numeric = $d(); //#9244 + $k[$j++] = Infinity; //#9246 + for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9247 + $k[$j++] = _6Y; //#9247 + $k[$j++] = _6Y - 43; //#9247 + $k[$j++] = 5; //#9247 + $_.tobin(); //#9247 + } //#9247 + $k[$j++] = $_.fnc1; //#9249 + $k[$j++] = "01111"; //#9249 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#9249 + $k[$j++] = _6a; //#9249 + $k[$j++] = _6a - 33; //#9249 + $k[$j++] = 6; //#9249 + $_.tobin(); //#9249 + } //#9249 + $k[$j++] = 42; //#9251 + $k[$j++] = "111010"; //#9251 + for (var _6b = 44; _6b <= 47; _6b += 1) { //#9251 + $k[$j++] = _6b; //#9251 + $k[$j++] = _6b + 15; //#9251 + $k[$j++] = 6; //#9251 + $_.tobin(); //#9251 + } //#9251 + $k[$j++] = $_.lnumeric; //#9253 + $k[$j++] = "000"; //#9253 + $k[$j++] = $_.liso646; //#9253 + $k[$j++] = "00100"; //#9253 + $_.alphanumeric = $d(); //#9254 + $k[$j++] = Infinity; //#9256 + for (var _6f = 48; _6f <= 57; _6f += 1) { //#9257 + $k[$j++] = _6f; //#9257 + $k[$j++] = _6f - 43; //#9257 + $k[$j++] = 5; //#9257 + $_.tobin(); //#9257 + } //#9257 + $k[$j++] = $_.fnc1; //#9259 + $k[$j++] = "01111"; //#9259 + for (var _6h = 65; _6h <= 90; _6h += 1) { //#9259 + $k[$j++] = _6h; //#9259 + $k[$j++] = _6h - 1; //#9259 + $k[$j++] = 7; //#9259 + $_.tobin(); //#9259 + } //#9259 + for (var _6i = 97; _6i <= 122; _6i += 1) { //#9260 + $k[$j++] = _6i; //#9260 + $k[$j++] = _6i - 7; //#9260 + $k[$j++] = 7; //#9260 + $_.tobin(); //#9260 + } //#9260 + $k[$j++] = 33; //#9263 + $k[$j++] = "11101000"; //#9263 + $k[$j++] = 34; //#9263 + $k[$j++] = "11101001"; //#9263 + for (var _6j = 37; _6j <= 47; _6j += 1) { //#9263 + $k[$j++] = _6j; //#9263 + $k[$j++] = _6j + 197; //#9263 + $k[$j++] = 8; //#9263 + $_.tobin(); //#9263 + } //#9263 + for (var _6k = 58; _6k <= 63; _6k += 1) { //#9264 + $k[$j++] = _6k; //#9264 + $k[$j++] = _6k + 187; //#9264 + $k[$j++] = 8; //#9264 + $_.tobin(); //#9264 + } //#9264 + $k[$j++] = 95; //#9268 + $k[$j++] = "11111011"; //#9268 + $k[$j++] = 32; //#9268 + $k[$j++] = "11111100"; //#9268 + $k[$j++] = $_.lnumeric; //#9268 + $k[$j++] = "000"; //#9268 + $k[$j++] = $_.lalphanumeric; //#9268 + $k[$j++] = "00100"; //#9268 + $_.iso646 = $d(); //#9269 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9269 + bwipp_databarexpanded.__9270__ = 1; //#9269 + $_ = Object.getPrototypeOf($_); //#9269 + } //#9269 + for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9288 + $_.i = _6r; //#9274 + $_.ai = $get($_.ais, $_.i); //#9275 + $_.val = $get($_.vals, $_.i); //#9276 + var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9277 + $puti(_71, 0, $_.gpf); //#9278 + $k[$j++] = _71; //#9279 + $k[$j++] = _71; //#9279 + $k[$j++] = $_.gpf.length; //#9279 + $k[$j++] = $_.ai; //#9279 + $k[$j++] = Infinity; //#9279 + var _75 = $k[--$j]; //#9279 + var _76 = $k[--$j]; //#9279 + $k[$j++] = _75; //#9279 + $forall(_76); //#9279 + var _77 = $a(); //#9279 + var _78 = $k[--$j]; //#9279 + $puti($k[--$j], _78, _77); //#9279 + var _7A = $k[--$j]; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = $_.gpf.length + $_.ai.length; //#9280 + $k[$j++] = $_.val; //#9280 + $k[$j++] = Infinity; //#9280 + var _7E = $k[--$j]; //#9280 + var _7F = $k[--$j]; //#9280 + $k[$j++] = _7E; //#9280 + $forall(_7F); //#9280 + var _7G = $a(); //#9280 + var _7H = $k[--$j]; //#9280 + $puti($k[--$j], _7H, _7G); //#9280 + $_.gpf = $k[--$j]; //#9281 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9287 + var _7Q = $a($_.gpf.length + 1); //#9283 + $puti(_7Q, 0, $_.gpf); //#9284 + $put(_7Q, $_.gpf.length, $_.fnc1); //#9285 + $_.gpf = _7Q; //#9286 + } //#9286 + } //#9286 + $_.rembits = function() { + var _7U = $k[--$j]; //#9292 + var _7V = 48; //#9294 + var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9294 + if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9294 + var _ = _7V; //#9294 + _7V = _7W; //#9294 + _7W = _; //#9294 + } //#9294 + var _7X = ~~(_7W / 12); //#9295 + $k[$j++] = _7U; //#9299 + $k[$j++] = _7W; //#9299 + $k[$j++] = _7X; //#9299 + if ((_7X % $_.segments) == 1) { //#9298 + var _7Z = $k[--$j]; //#9296 + var _7a = $k[--$j]; //#9296 + $k[$j++] = $f(_7Z + 1) * 12; //#9296 + $k[$j++] = _7a; //#9296 + $j--; //#9296 + } else { //#9298 + $j--; //#9298 + } //#9298 + var _7b = $k[--$j]; //#9300 + var _7c = $k[--$j]; //#9300 + $k[$j++] = $f(_7b - _7c); //#9300 + }; //#9300 + $_.encode = function() { + var _7d = $k[--$j]; //#9304 + $k[$j++] = _7d; //#9304 + if ($ne(_7d, 'raw')) { //#9304 + var _7e = $k[--$j]; //#9304 + var _7g = $get(_7e, $k[--$j]); //#9304 + $k[$j++] = _7g; //#9304 + } else { //#9304 + $j--; //#9304 + } //#9304 + var _7h = $k[--$j]; //#9305 + $k[$j++] = _7h; //#9307 + if ((_7h.length + $_.j) >= 252) { //#9307 + $j--; //#9306 + $k[$j++] = 'bwipp.gs1databarexpandedTooLong#9306'; //#9306 + $k[$j++] = "Maximum length exceeded"; //#9306 + bwipp_raiseerror(); //#9306 + } //#9306 + $k[$j++] = Infinity; //#9308 + var _7j = $k[--$j]; //#9308 + var _7k = $k[--$j]; //#9308 + $k[$j++] = _7j; //#9308 + $forall(_7k, function() { //#9308 + var _7l = $k[--$j]; //#9308 + $k[$j++] = $f(_7l - 48); //#9308 + }); //#9308 + var _7m = $a(); //#9308 + $puti($_.gpfenc, $_.j, _7m); //#9310 + $_.j = _7m.length + $_.j; //#9311 + }; //#9311 + $k[$j++] = Infinity; //#9315 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#9315 + $k[$j++] = 0; //#9315 + } //#9315 + $k[$j++] = 0; //#9315 + $k[$j++] = -1; //#9315 + $_.numericruns = $a(); //#9315 + $k[$j++] = Infinity; //#9316 + for (var _7v = 0, _7w = $_.gpf.length; _7v < _7w; _7v++) { //#9316 + $k[$j++] = 0; //#9316 + } //#9316 + $k[$j++] = 0; //#9316 + $_.alphanumericruns = $a(); //#9316 + $k[$j++] = Infinity; //#9317 + for (var _7z = 0, _80 = $_.gpf.length; _7z < _80; _7z++) { //#9317 + $k[$j++] = 0; //#9317 + } //#9317 + $k[$j++] = 9999; //#9317 + $_.nextiso646only = $a(); //#9317 + for (var _83 = $_.gpf.length - 1; _83 >= 0; _83 -= 1) { //#9339 + $_.i = _83; //#9319 + var _88 = $strcpy($s(2), "00"); //#9321 + var _8B = $get($_.gpf, $_.i); //#9322 + $k[$j++] = $get($_.gpf, $_.i); //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = 0; //#9322 + $k[$j++] = _8B; //#9322 + if (_8B == $_.fnc1) { //#9322 + $j--; //#9322 + $k[$j++] = 94; //#9322 + } //#9322 + var _8D = $k[--$j]; //#9322 + var _8E = $k[--$j]; //#9322 + $put($k[--$j], _8E, _8D); //#9322 + if ($_.i < ($_.gpf.length - 1)) { //#9323 + var _8I = $k[--$j]; //#9323 + var _8L = $get($_.gpf, $_.i + 1); //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = 1; //#9323 + $k[$j++] = _8L; //#9323 + if (_8L == $_.fnc1) { //#9323 + $j--; //#9323 + $k[$j++] = 94; //#9323 + } //#9323 + var _8N = $k[--$j]; //#9323 + var _8O = $k[--$j]; //#9323 + $put($k[--$j], _8O, _8N); //#9323 + } //#9323 + var _8S = $get($_.numeric, $k[--$j]) !== undefined; //#9324 + if (_8S) { //#9327 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9325 + } else { //#9327 + $put($_.numericruns, $_.i, 0); //#9327 + } //#9327 + var _8a = $k[--$j]; //#9329 + var _8c = $get($_.alphanumeric, _8a) !== undefined; //#9329 + $k[$j++] = _8a; //#9333 + if (_8c) { //#9332 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9330 + } else { //#9332 + $put($_.alphanumericruns, $_.i, 0); //#9332 + } //#9332 + var _8k = $k[--$j]; //#9334 + var _8m = $get($_.iso646, _8k) !== undefined; //#9334 + var _8o = $get($_.alphanumeric, _8k) !== undefined; //#9334 + if (_8m && (!_8o)) { //#9337 + $put($_.nextiso646only, $_.i, 0); //#9335 + } else { //#9337 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9337 + } //#9337 + } //#9337 + $_.gpfenc = $a(252); //#9342 + $_.i = 0; //#9343 + $_.j = 0; //#9343 + $_.mode = "numeric"; //#9343 + for (;;) { //#9433 + if ($_.i == $_.gpf.length) { //#9345 + break; //#9345 + } //#9345 + for (;;) { //#9432 + if ($eq($_.mode, "numeric")) { //#9381 + if ($_.i <= ($_.gpf.length - 2)) { //#9378 + var _92 = $s(2); //#9350 + var _95 = $get($_.gpf, $_.i); //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = 0; //#9351 + $k[$j++] = _95; //#9351 + if (_95 == $_.fnc1) { //#9351 + $j--; //#9351 + $k[$j++] = 94; //#9351 + } //#9351 + var _97 = $k[--$j]; //#9351 + var _98 = $k[--$j]; //#9351 + $put($k[--$j], _98, _97); //#9351 + var _9A = $k[--$j]; //#9352 + var _9D = $get($_.gpf, $_.i + 1); //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = 1; //#9352 + $k[$j++] = _9D; //#9352 + if (_9D == $_.fnc1) { //#9352 + $j--; //#9352 + $k[$j++] = 94; //#9352 + } //#9352 + var _9F = $k[--$j]; //#9352 + var _9G = $k[--$j]; //#9352 + $put($k[--$j], _9G, _9F); //#9352 + var _9I = $k[--$j]; //#9353 + var _9K = $get($_.numeric, _9I) !== undefined; //#9353 + $k[$j++] = _9I; //#9357 + if (_9K) { //#9357 + $k[$j++] = $_.numeric; //#9354 + $_.encode(); //#9354 + $_.i = $_.i + 2; //#9355 + break; //#9356 + } //#9356 + $j--; //#9358 + $k[$j++] = $_.lalphanumeric; //#9359 + $k[$j++] = $_.numeric; //#9359 + $_.encode(); //#9359 + $_.mode = "alphanumeric"; //#9360 + break; //#9361 + } else { //#9378 + var _9R = $get($_.gpf, $_.i); //#9363 + if ((_9R < 48) || (_9R > 57)) { //#9367 + $k[$j++] = $_.lalphanumeric; //#9364 + $k[$j++] = $_.numeric; //#9364 + $_.encode(); //#9364 + $_.mode = "alphanumeric"; //#9365 + break; //#9366 + } //#9366 + $k[$j++] = 'rem'; //#9368 + $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9368 + $_.rembits(); //#9368 + var _9Y = $k[--$j]; //#9368 + $_[$k[--$j]] = _9Y; //#9368 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#9378 + var _9f = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9370 + var _9k = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9371 + $puti(_9f, 4 - _9k.length, _9k); //#9372 + $k[$j++] = _9f; //#9372 + $k[$j++] = 'raw'; //#9372 + $_.encode(); //#9372 + $_.i = $_.i + 1; //#9373 + break; //#9374 + } else { //#9378 + var _9m = $s(2); //#9376 + $put(_9m, 0, $get($_.gpf, $_.i)); //#9376 + $put(_9m, 1, 94); //#9376 + $k[$j++] = _9m; //#9376 + $k[$j++] = $_.numeric; //#9376 + $_.encode(); //#9376 + $_.i = $_.i + 1; //#9377 + break; //#9378 + } //#9378 + } //#9378 + } //#9378 + if ($eq($_.mode, "alphanumeric")) { //#9408 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9389 + $k[$j++] = $_.fnc1; //#9385 + $k[$j++] = $_.alphanumeric; //#9385 + $_.encode(); //#9385 + $_.mode = "numeric"; //#9386 + $_.i = $_.i + 1; //#9387 + break; //#9388 + } //#9388 + var _A2 = $get($_.gpf, $_.i); //#9390 + var _A4 = $get($_.iso646, _A2) !== undefined; //#9390 + var _A6 = $get($_.alphanumeric, _A2) !== undefined; //#9390 + if (_A4 && (!_A6)) { //#9394 + $k[$j++] = $_.liso646; //#9391 + $k[$j++] = $_.alphanumeric; //#9391 + $_.encode(); //#9391 + $_.mode = "iso646"; //#9392 + break; //#9393 + } //#9393 + if ($get($_.numericruns, $_.i) >= 6) { //#9399 + $k[$j++] = $_.lnumeric; //#9396 + $k[$j++] = $_.alphanumeric; //#9396 + $_.encode(); //#9396 + $_.mode = "numeric"; //#9397 + break; //#9398 + } //#9398 + var _AG = $get($_.numericruns, $_.i); //#9400 + if ((_AG >= 4) && ($f(_AG + $_.i) == $_.gpf.length)) { //#9404 + $k[$j++] = $_.lnumeric; //#9401 + $k[$j++] = $_.alphanumeric; //#9401 + $_.encode(); //#9401 + $_.mode = "numeric"; //#9402 + break; //#9403 + } //#9403 + $k[$j++] = $get($_.gpf, $_.i); //#9405 + $k[$j++] = $_.alphanumeric; //#9405 + $_.encode(); //#9405 + $_.i = $_.i + 1; //#9406 + break; //#9407 + } //#9407 + if ($eq($_.mode, "iso646")) { //#9430 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9416 + $k[$j++] = $_.fnc1; //#9412 + $k[$j++] = $_.iso646; //#9412 + $_.encode(); //#9412 + $_.mode = "numeric"; //#9413 + $_.i = $_.i + 1; //#9414 + break; //#9415 + } //#9415 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9421 + $k[$j++] = $_.lnumeric; //#9418 + $k[$j++] = $_.iso646; //#9418 + $_.encode(); //#9418 + $_.mode = "numeric"; //#9419 + break; //#9420 + } //#9420 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9426 + $k[$j++] = $_.lalphanumeric; //#9423 + $k[$j++] = $_.iso646; //#9423 + $_.encode(); //#9423 + $_.mode = "alphanumeric"; //#9424 + break; //#9425 + } //#9425 + $k[$j++] = $get($_.gpf, $_.i); //#9427 + $k[$j++] = $_.iso646; //#9427 + $_.encode(); //#9427 + $_.i = $_.i + 1; //#9428 + break; //#9429 + } //#9429 + } //#9429 + } //#9429 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9434 + var _B0 = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9438 + $k[$j++] = _B0; //#9438 + $k[$j++] = _B0; //#9438 + $_.rembits(); //#9438 + var _B1 = $k[--$j]; //#9438 + $_.pad = $a(_B1); //#9438 + $k[$j++] = _B1; //#9445 + if ($_.vlf.length != 0) { //#9444 + var _B4 = $k[--$j]; //#9440 + var _B6 = ~~($f($k[--$j] + _B4) / 12); //#9441 + $put($_.vlf, 0, _B6 % 2); //#9441 + var _B8 = (_B6 <= 14) ? 0 : 1; //#9442 + $put($_.vlf, 1, _B8); //#9442 + } else { //#9444 + $j -= 2; //#9444 + } //#9444 + if ($_.pad.length > 0) { //#9454 + for (var _BD = 0, _BC = $_.pad.length - 1; _BD <= _BC; _BD += 5) { //#9450 + $_.i = _BD; //#9448 + var _BE = $_.pad; //#9449 + var _BF = $_.i; //#9449 + var _BG = $a([0, 0, 1, 0, 0]); //#9449 + var _BH = $_.pad; //#9449 + var _BI = $_.i; //#9449 + var _BJ = 5; //#9449 + var _BK = _BH.length - _BI; //#9449 + if ((_BH.length - _BI) > 5) { //#9449 + var _ = _BJ; //#9449 + _BJ = _BK; //#9449 + _BK = _; //#9449 + } //#9449 + $puti(_BE, _BF, $geti(_BG, 0, _BK)); //#9449 + } //#9449 + if ($eq($_.mode, "numeric")) { //#9453 + $k[$j++] = Infinity; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $aload($_.pad); //#9452 + $_.pad = $geti($a(), 0, $_.pad.length); //#9452 + } //#9452 + } //#9452 + $k[$j++] = Infinity; //#9457 + var _BS = $_.linkage ? 1 : 0; //#9458 + $k[$j++] = _BS; //#9459 + $forall($_.method, function() { //#9459 + var _BU = $k[--$j]; //#9459 + $k[$j++] = $f(_BU - 48); //#9459 + }); //#9459 + $aload($_.vlf); //#9460 + $aload($_.cdf); //#9461 + $aload($_.gpf); //#9462 + $aload($_.pad); //#9463 + $_.binval = $a(); //#9463 + $_.datalen = ~~($_.binval.length / 12); //#9465 $_.ncr = function() { - var _BZ = $k[--$j]; //#9315 - var _Ba = $k[--$j]; //#9315 - var _Bb = $f(_Ba - _BZ); //#9315 - if (_BZ < $f(_Ba - _BZ)) { //#9315 - var _ = _Bb; //#9315 - _Bb = _BZ; //#9315 - _BZ = _; //#9315 - } //#9315 - $k[$j++] = _Bb; //#9322 - $k[$j++] = 1; //#9322 - $k[$j++] = 1; //#9322 - for (var _Bd = _Ba, _Bc = $f(_BZ + 1); _Bd >= _Bc; _Bd -= 1) { //#9322 - var _Be = $k[--$j]; //#9318 - var _Bf = $k[--$j]; //#9319 - var _Bg = $k[--$j]; //#9319 - $k[$j++] = _Bg; //#9321 - $k[$j++] = _Bf; //#9321 - $k[$j++] = _Be * _Bd; //#9321 - if ($le(_Bf, _Bg)) { //#9321 - var _Bh = $k[--$j]; //#9320 - var _Bi = $k[--$j]; //#9320 - $k[$j++] = $f(_Bi + 1); //#9320 - $k[$j++] = ~~(_Bh / _Bi); //#9320 - } //#9320 - } //#9320 - for (;;) { //#9326 - var _Bj = $k[--$j]; //#9324 - var _Bk = $k[--$j]; //#9324 - var _Bl = $k[--$j]; //#9324 - $k[$j++] = _Bl; //#9324 - $k[$j++] = _Bk; //#9324 - $k[$j++] = _Bj; //#9324 - if ($gt(_Bk, _Bl)) { //#9324 - break; //#9324 - } //#9324 - var _Bm = $k[--$j]; //#9325 - var _Bn = $k[--$j]; //#9325 - $k[$j++] = $f(_Bn + 1); //#9325 - $k[$j++] = ~~(_Bm / _Bn); //#9325 - } //#9325 - var _Bo = $k[--$j]; //#9327 - var _Bp = $k[--$j]; //#9327 - $k[$j++] = _Bo; //#9327 - $k[$j++] = _Bp; //#9327 - $j--; //#9327 - var _Bq = $k[--$j]; //#9327 - var _Br = $k[--$j]; //#9327 - $k[$j++] = _Bq; //#9327 - $k[$j++] = _Br; //#9327 - $j--; //#9327 - }; //#9327 + var _Bb = $k[--$j]; //#9468 + var _Bc = $k[--$j]; //#9468 + var _Bd = $f(_Bc - _Bb); //#9468 + if (_Bb < $f(_Bc - _Bb)) { //#9468 + var _ = _Bd; //#9468 + _Bd = _Bb; //#9468 + _Bb = _; //#9468 + } //#9468 + $k[$j++] = _Bd; //#9475 + $k[$j++] = 1; //#9475 + $k[$j++] = 1; //#9475 + for (var _Bf = _Bc, _Be = $f(_Bb + 1); _Bf >= _Be; _Bf -= 1) { //#9475 + var _Bg = $k[--$j]; //#9471 + var _Bh = $k[--$j]; //#9472 + var _Bi = $k[--$j]; //#9472 + $k[$j++] = _Bi; //#9474 + $k[$j++] = _Bh; //#9474 + $k[$j++] = _Bg * _Bf; //#9474 + if ($le(_Bh, _Bi)) { //#9474 + var _Bj = $k[--$j]; //#9473 + var _Bk = $k[--$j]; //#9473 + $k[$j++] = $f(_Bk + 1); //#9473 + $k[$j++] = ~~(_Bj / _Bk); //#9473 + } //#9473 + } //#9473 + for (;;) { //#9479 + var _Bl = $k[--$j]; //#9477 + var _Bm = $k[--$j]; //#9477 + var _Bn = $k[--$j]; //#9477 + $k[$j++] = _Bn; //#9477 + $k[$j++] = _Bm; //#9477 + $k[$j++] = _Bl; //#9477 + if ($gt(_Bm, _Bn)) { //#9477 + break; //#9477 + } //#9477 + var _Bo = $k[--$j]; //#9478 + var _Bp = $k[--$j]; //#9478 + $k[$j++] = $f(_Bp + 1); //#9478 + $k[$j++] = ~~(_Bo / _Bp); //#9478 + } //#9478 + var _Bq = $k[--$j]; //#9480 + var _Br = $k[--$j]; //#9480 + $k[$j++] = _Bq; //#9480 + $k[$j++] = _Br; //#9480 + $j--; //#9480 + var _Bs = $k[--$j]; //#9480 + var _Bt = $k[--$j]; //#9480 + $k[$j++] = _Bs; //#9480 + $k[$j++] = _Bt; //#9480 + $j--; //#9480 + }; //#9480 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#9331 - $_.el = $k[--$j]; //#9332 - $_.mw = $k[--$j]; //#9333 - $_.nm = $k[--$j]; //#9334 - $_.val = $k[--$j]; //#9335 - $_.out = $a($_.el); //#9336 - $_.mask = 0; //#9337 - for (var _C1 = 0, _C0 = $f($_.el - 2); _C1 <= _C0; _C1 += 1) { //#9364 - $_.bar = _C1; //#9339 - $_.ew = 1; //#9340 - var _C3 = $_.bar; //#9341 - $_.mask = $_.mask | ((_C3 < 0 ? 1 >>> -_C3 : 1 << _C3)); //#9341 - for (;;) { //#9360 - $k[$j++] = 'sval'; //#9342 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9342 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9342 - $_.ncr(); //#9342 - var _C8 = $k[--$j]; //#9342 - $_[$k[--$j]] = _C8; //#9342 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9345 - $k[$j++] = 'sval'; //#9344 - $k[$j++] = $_.sval; //#9344 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9344 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9344 - $_.ncr(); //#9344 - var _CN = $k[--$j]; //#9344 - var _CO = $k[--$j]; //#9344 - $_[$k[--$j]] = $f(_CO - _CN); //#9344 - } //#9344 - if ($f($_.el - $_.bar) > 2) { //#9354 - $_.lval = 0; //#9347 - for (var _CY = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CX = $f($_.mw + 1); _CY >= _CX; _CY -= 1) { //#9351 - $k[$j++] = $f(($f($f($_.nm - _CY) - $_.ew)) - 1); //#9349 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9349 - $_.ncr(); //#9349 - $_.lval = $f($k[--$j] + $_.lval); //#9350 - } //#9350 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9352 - } else { //#9354 - if ($f($_.nm - $_.ew) > $_.mw) { //#9354 - $_.sval = $f($_.sval - 1); //#9354 - } //#9354 - } //#9354 - $_.val = $f($_.val - $_.sval); //#9356 - if ($_.val < 0) { //#9357 - break; //#9357 - } //#9357 - $_.ew = $_.ew + 1; //#9358 - var _Cs = $_.bar; //#9359 - $_.mask = $_.mask & (~((_Cs < 0 ? 1 >>> -_Cs : 1 << _Cs))); //#9359 - } //#9359 - $_.val = $f($_.val + $_.sval); //#9361 - $_.nm = $f($_.nm - $_.ew); //#9362 - $put($_.out, $_.bar, $_.ew); //#9363 - } //#9363 - $put($_.out, $f($_.el - 1), $_.nm); //#9365 - $k[$j++] = $_.out; //#9366 - }; //#9366 - if (!bwipp_databarexpanded.__9377__) { //#9377 - $_ = Object.create($_); //#9377 - $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9376 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9376 - bwipp_databarexpanded.__9377__ = 1; //#9376 - $_ = Object.getPrototypeOf($_); //#9376 - } //#9376 - $_.dxw = $a($_.datalen); //#9379 - for (var _DA = 0, _D9 = $_.datalen - 1; _DA <= _D9; _DA += 1) { //#9420 - $_.x = _DA; //#9383 - $_.d = $geti($_.binval, $_.x * 12, 12); //#9385 - $k[$j++] = 'd'; //#9386 - $k[$j++] = 0; //#9386 - for (var _DE = 0; _DE <= 11; _DE += 1) { //#9386 - $_.j = _DE; //#9386 - var _DJ = $k[--$j]; //#9386 - $k[$j++] = $f(_DJ + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9386 - } //#9386 - var _DK = $k[--$j]; //#9386 - $_[$k[--$j]] = _DK; //#9386 - $_.j = 0; //#9388 - for (;;) { //#9398 - if ($le($_.d, $get($_.tab174, $_.j))) { //#9396 - var _DS = $geti($_.tab174, $_.j + 1, 7); //#9390 - for (var _DT = 0, _DU = _DS.length; _DT < _DU; _DT++) { //#9390 - $k[$j++] = $get(_DS, _DT); //#9390 - } //#9390 - $_.dte = $k[--$j]; //#9391 - $_.dto = $k[--$j]; //#9391 - $_.dmwe = $k[--$j]; //#9392 - $_.dmwo = $k[--$j]; //#9392 - $_.dele = $k[--$j]; //#9393 - $_.delo = $k[--$j]; //#9393 - $_.dgs = $k[--$j]; //#9394 - break; //#9395 - } //#9395 - $_.j = $_.j + 8; //#9397 - } //#9397 - $k[$j++] = 'dwo'; //#9400 - $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9400 - $k[$j++] = $_.delo; //#9400 - $k[$j++] = $_.dmwo; //#9400 - $k[$j++] = 4; //#9400 - $k[$j++] = true; //#9400 - $_.getRSSwidths(); //#9400 - var _Dj = $k[--$j]; //#9400 - $_[$k[--$j]] = _Dj; //#9400 - $k[$j++] = 'dwe'; //#9401 - $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9401 - $k[$j++] = $_.dele; //#9401 - $k[$j++] = $_.dmwe; //#9401 - $k[$j++] = 4; //#9401 - $k[$j++] = false; //#9401 - $_.getRSSwidths(); //#9401 - var _Dq = $k[--$j]; //#9401 - $_[$k[--$j]] = _Dq; //#9401 - $_.dw = $a(8); //#9403 - if (($_.x % 2) == 0) { //#9414 - for (var _Du = 0; _Du <= 3; _Du += 1) { //#9409 - $_.j = _Du; //#9406 - $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9407 - $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9408 - } //#9408 - } else { //#9414 - for (var _E5 = 0; _E5 <= 3; _E5 += 1) { //#9415 - $_.j = _E5; //#9412 - $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9413 - $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9414 - } //#9414 - } //#9414 - $put($_.dxw, $_.x, $_.dw); //#9418 - } //#9418 - if (!bwipp_databarexpanded.__9444__) { //#9444 - $_ = Object.create($_); //#9444 - $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9430 - $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9443 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9443 - bwipp_databarexpanded.__9444__ = 1; //#9443 - $_ = Object.getPrototypeOf($_); //#9443 - } //#9443 - $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9446 - $_.fxw = $a($_.seq.length); //#9447 - for (var _Ed = 0, _Ec = $_.seq.length - 1; _Ed <= _Ec; _Ed += 1) { //#9451 - $_.x = _Ed; //#9449 - $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9450 - } //#9450 - if (!bwipp_databarexpanded.__9480__) { //#9480 - $_ = Object.create($_); //#9480 - $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9479 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9479 - bwipp_databarexpanded.__9480__ = 1; //#9479 - $_ = Object.getPrototypeOf($_); //#9479 - } //#9479 - $k[$j++] = Infinity; //#9483 - $forall($_.seq, function() { //#9483 - $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9483 - }); //#9483 - var _Er = $a(); //#9483 - $_.checkweightseq = $geti(_Er, 8, _Er.length - 8); //#9484 - $k[$j++] = Infinity; //#9487 - var _Et = $_.dxw; //#9487 - for (var _Eu = 0, _Ev = _Et.length; _Eu < _Ev; _Eu++) { //#9487 - $forall($get(_Et, _Eu)); //#9487 - } //#9487 - $_.widths = $a(); //#9487 - $_.checksum = 0; //#9490 - for (var _F0 = 0, _Ez = $_.widths.length - 1; _F0 <= _Ez; _F0 += 1) { //#9494 - $_.i = _F0; //#9492 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9493 - } //#9493 - $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9495 - $_.i = 0; //#9497 - for (;;) { //#9507 - if ($_.checksum <= $get($_.tab174, $_.i)) { //#9505 - var _FG = $geti($_.tab174, $_.i + 1, 7); //#9499 - for (var _FH = 0, _FI = _FG.length; _FH < _FI; _FH++) { //#9499 - $k[$j++] = $get(_FG, _FH); //#9499 - } //#9499 - $_.cte = $k[--$j]; //#9500 - $_.cto = $k[--$j]; //#9500 - $_.cmwe = $k[--$j]; //#9501 - $_.cmwo = $k[--$j]; //#9501 - $_.cele = $k[--$j]; //#9502 - $_.celo = $k[--$j]; //#9502 - $_.cgs = $k[--$j]; //#9503 - break; //#9504 - } //#9504 - $_.i = $_.i + 8; //#9506 - } //#9506 - $k[$j++] = 'cwo'; //#9509 - $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9509 - $k[$j++] = $_.celo; //#9509 - $k[$j++] = $_.cmwo; //#9509 - $k[$j++] = 4; //#9509 - $k[$j++] = true; //#9509 - $_.getRSSwidths(); //#9509 - var _FX = $k[--$j]; //#9509 - $_[$k[--$j]] = _FX; //#9509 - $k[$j++] = 'cwe'; //#9510 - $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9510 - $k[$j++] = $_.cele; //#9510 - $k[$j++] = $_.cmwe; //#9510 - $k[$j++] = 4; //#9510 - $k[$j++] = false; //#9510 - $_.getRSSwidths(); //#9510 - var _Fe = $k[--$j]; //#9510 - $_[$k[--$j]] = _Fe; //#9510 - $_.cw = $a(8); //#9512 - for (var _Fh = 0; _Fh <= 3; _Fh += 1) { //#9517 - $_.i = _Fh; //#9514 - $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9515 - $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9516 - } //#9516 - var _Fs = $a(22); //#9519 - $put(_Fs, 0, $_.cw); //#9520 - $puti(_Fs, 1, $_.dxw); //#9520 - $_.dxw = $geti(_Fs, 0, $_.datalen + 1); //#9521 - $_.datalen = $_.dxw.length; //#9522 - $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9525 - $_.numrows = $_.rows.length; //#9526 - for (var _G4 = 0, _G3 = $_.numrows - 1; _G4 <= _G3; _G4 += 1) { //#9541 - $_.r = _G4; //#9528 - $k[$j++] = Infinity; //#9529 - if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9530 - $k[$j++] = 0; //#9530 - } //#9530 - $k[$j++] = 1; //#9538 - $k[$j++] = 1; //#9538 - for (var _G9 = 0, _G8 = $_.segments - 1; _G9 <= _G8; _G9 += 1) { //#9538 - $_.pos = _G9 + ($_.r * $_.segments); //#9533 - if ($_.pos < $_.datalen) { //#9537 - $forall($get($_.dxw, $_.pos)); //#9535 - if (($_.pos % 2) == 0) { //#9536 - $forall($get($_.fxw, ~~($_.pos / 2))); //#9536 - } //#9536 - } //#9536 - } //#9536 - var _GL = $counttomark() + 2; //#9540 - $k[$j++] = 1; //#9540 - $k[$j++] = 1; //#9540 - $astore($a(_GL)); //#9540 - $put($_.rows, $_.r, $k[--$j]); //#9540 - $j--; //#9540 - } //#9540 - if ($ne($_.format, "expandedstacked")) { //#9669 - var _GS = $get($_.rows, 0); //#9546 - $_.sbs = $geti(_GS, 1, _GS.length - 1); //#9546 - $k[$j++] = Infinity; //#9555 - $k[$j++] = 1; //#9554 - for (var _GW = 0, _GV = $_.datalen - 1; _GW <= _GV; _GW += 1) { //#9554 - $_.i = _GW; //#9551 - $forall($get($_.dxw, $_.i)); //#9552 - if (($_.i % 2) == 0) { //#9553 - $forall($get($_.fxw, ~~($_.i / 2))); //#9553 - } //#9553 - } //#9553 - $k[$j++] = 1; //#9555 - $k[$j++] = 1; //#9555 - $_.sbs = $a(); //#9555 - delete $_.options["parse"]; //#9558 - $k[$j++] = Infinity; //#9565 - var _Gg = $_.sbs; //#9562 - $k[$j++] = Infinity; //#9563 - for (var _Gi = 0, _Gj = ~~(($_.sbs.length + 1) / 2); _Gi < _Gj; _Gi++) { //#9563 - $k[$j++] = $_.height; //#9563 - } //#9563 - var _Gl = $a(); //#9563 - $k[$j++] = Infinity; //#9564 - for (var _Gn = 0, _Go = ~~(($_.sbs.length + 1) / 2); _Gn < _Go; _Gn++) { //#9564 - $k[$j++] = 0; //#9564 - } //#9564 - var _Gp = $a(); //#9564 - $k[$j++] = 'ren'; //#9565 - $k[$j++] = bwipp_renlinear; //#9565 - $k[$j++] = 'sbs'; //#9565 - $k[$j++] = _Gg; //#9565 - $k[$j++] = 'bhs'; //#9565 - $k[$j++] = _Gl; //#9565 - $k[$j++] = 'bbs'; //#9565 - $k[$j++] = _Gp; //#9565 - $k[$j++] = 'opt'; //#9565 - $k[$j++] = $_.options; //#9565 - var _Gr = $d(); //#9565 - $k[$j++] = _Gr; //#9568 - if (!$_.dontdraw) { //#9568 - bwipp_renlinear(); //#9568 - } //#9568 - } else { //#9669 - $_.seps = $a($_.numrows); //#9572 - for (var _Gx = 0, _Gw = $_.numrows - 1; _Gx <= _Gw; _Gx += 1) { //#9628 - $_.r = _Gx; //#9575 - $_.row = $get($_.rows, $_.r); //#9576 - $k[$j++] = Infinity; //#9579 - for (var _H3 = 0, _H2 = $_.row.length - 1; _H3 <= _H2; _H3 += 2) { //#9584 - $_.i = _H3; //#9581 - for (var _H7 = 0, _H8 = $get($_.row, $_.i); _H7 < _H8; _H7++) { //#9582 - $k[$j++] = 0; //#9582 - } //#9582 - if ($_.i < ($_.row.length - 1)) { //#9583 - for (var _HE = 0, _HF = $get($_.row, $_.i + 1); _HE < _HF; _HE++) { //#9583 - $k[$j++] = 1; //#9583 - } //#9583 - } //#9583 - } //#9583 - $astore($a($counttomark())); //#9585 - $_.row = $k[--$j]; //#9585 - $j--; //#9585 - $k[$j++] = Infinity; //#9588 - $forall($_.row, function() { //#9588 - var _HK = $k[--$j]; //#9588 - $k[$j++] = $f(1 - _HK); //#9588 - }); //#9588 - $_.sep = $a(); //#9588 - $k[$j++] = Infinity; //#9591 - for (var _HO = 19, _HN = $_.row.length - 13; _HO <= _HN; _HO += 98) { //#9590 - $k[$j++] = _HO; //#9590 - } //#9590 - for (var _HR = 68, _HQ = $_.row.length - 13; _HR <= _HQ; _HR += 98) { //#9591 - $k[$j++] = _HR; //#9591 - } //#9591 - $_.finderpos = $a(); //#9591 - var _HT = $_.finderpos; //#9593 - for (var _HU = 0, _HV = _HT.length; _HU < _HV; _HU++) { //#9607 - var _HW = $get(_HT, _HU); //#9607 - for (var _HY = _HW, _HX = $f(_HW + 14); _HY <= _HX; _HY += 1) { //#9606 - $_.i = _HY; //#9595 - if ($get($_.row, $_.i) == 0) { //#9603 - if ($get($_.row, $_.i - 1) == 1) { //#9600 - $k[$j++] = 1; //#9598 - } else { //#9600 - var _Hi = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9600 - $k[$j++] = _Hi; //#9600 - } //#9600 - } else { //#9603 - $k[$j++] = 0; //#9603 - } //#9603 - $put($_.sep, $_.i, $k[--$j]); //#9605 - } //#9605 - } //#9605 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9608 - $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9609 - if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9623 - if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9621 - $k[$j++] = Infinity; //#9615 - $k[$j++] = 0; //#9615 - $aload($_.row); //#9615 - $_.row = $a(); //#9615 - $k[$j++] = Infinity; //#9616 - $k[$j++] = 0; //#9616 - $aload($_.sep); //#9616 - $_.sep = $a(); //#9616 - } else { //#9621 - for (var _I4 = $_.row.length - 1; _I4 >= 0; _I4 -= 1) { //#9618 - $k[$j++] = $get($_.row, _I4); //#9618 - } //#9618 - $astore($_.row); //#9619 - $j--; //#9619 - for (var _I9 = $_.sep.length - 1; _I9 >= 0; _I9 -= 1) { //#9620 - $k[$j++] = $get($_.sep, _I9); //#9620 - } //#9620 - $astore($_.sep); //#9621 - $j--; //#9621 - } //#9621 - } //#9621 - $put($_.rows, $_.r, $_.row); //#9625 - $put($_.seps, $_.r, $_.sep); //#9626 - } //#9626 - $_.pixx = $get($_.rows, 0).length; //#9631 - $k[$j++] = Infinity; //#9632 - for (var _IM = 0, _IN = $_.pixx; _IM < _IN; _IM++) { //#9632 - $k[$j++] = 0; //#9632 - } //#9632 - var _IO = $a(); //#9632 - $puti(_IO, 0, $get($_.rows, $_.numrows - 1)); //#9632 - $put($_.rows, $_.numrows - 1, _IO); //#9633 - $k[$j++] = Infinity; //#9634 - for (var _IV = 0, _IW = $_.pixx; _IV < _IW; _IV++) { //#9634 - $k[$j++] = 0; //#9634 - } //#9634 - var _IX = $a(); //#9634 - $puti(_IX, 0, $get($_.seps, $_.numrows - 1)); //#9634 - $put($_.seps, $_.numrows - 1, _IX); //#9635 - $k[$j++] = Infinity; //#9638 - for (var _Ie = 0, _If = (~~($_.pixx / 2)) + 1; _Ie < _If; _Ie++) { //#9638 - $k[$j++] = 0; //#9638 - $k[$j++] = 1; //#9638 - } //#9638 - $_.sep = $geti($a(), 0, $_.pixx); //#9638 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9639 - $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9640 - $k[$j++] = Infinity; //#9652 - for (var _Iq = 0, _Ip = $_.numrows - 1; _Iq <= _Ip; _Iq += 1) { //#9654 - $_.r = _Iq; //#9645 - if ($_.r != 0) { //#9648 - $aload($get($_.seps, $_.r)); //#9647 - } //#9647 - for (var _Iw = 0, _Ix = $_.barxmult; _Iw < _Ix; _Iw++) { //#9649 - $aload($get($_.rows, $_.r)); //#9649 - } //#9649 - if ($_.r != ($_.numrows - 1)) { //#9653 - $aload($get($_.seps, $_.r)); //#9651 - $aload($_.sep); //#9652 + $_.oe = $k[--$j]; //#9484 + $_.el = $k[--$j]; //#9485 + $_.mw = $k[--$j]; //#9486 + $_.nm = $k[--$j]; //#9487 + $_.val = $k[--$j]; //#9488 + $_.out = $a($_.el); //#9489 + $_.mask = 0; //#9490 + for (var _C3 = 0, _C2 = $f($_.el - 2); _C3 <= _C2; _C3 += 1) { //#9517 + $_.bar = _C3; //#9492 + $_.ew = 1; //#9493 + var _C5 = $_.bar; //#9494 + $_.mask = $_.mask | ((_C5 < 0 ? 1 >>> -_C5 : 1 << _C5)); //#9494 + for (;;) { //#9513 + $k[$j++] = 'sval'; //#9495 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9495 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9495 + $_.ncr(); //#9495 + var _CA = $k[--$j]; //#9495 + $_[$k[--$j]] = _CA; //#9495 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9498 + $k[$j++] = 'sval'; //#9497 + $k[$j++] = $_.sval; //#9497 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9497 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9497 + $_.ncr(); //#9497 + var _CP = $k[--$j]; //#9497 + var _CQ = $k[--$j]; //#9497 + $_[$k[--$j]] = $f(_CQ - _CP); //#9497 + } //#9497 + if ($f($_.el - $_.bar) > 2) { //#9507 + $_.lval = 0; //#9500 + for (var _Ca = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CZ = $f($_.mw + 1); _Ca >= _CZ; _Ca -= 1) { //#9504 + $k[$j++] = $f(($f($f($_.nm - _Ca) - $_.ew)) - 1); //#9502 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9502 + $_.ncr(); //#9502 + $_.lval = $f($k[--$j] + $_.lval); //#9503 + } //#9503 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9505 + } else { //#9507 + if ($f($_.nm - $_.ew) > $_.mw) { //#9507 + $_.sval = $f($_.sval - 1); //#9507 + } //#9507 + } //#9507 + $_.val = $f($_.val - $_.sval); //#9509 + if ($_.val < 0) { //#9510 + break; //#9510 + } //#9510 + $_.ew = $_.ew + 1; //#9511 + var _Cu = $_.bar; //#9512 + $_.mask = $_.mask & (~((_Cu < 0 ? 1 >>> -_Cu : 1 << _Cu))); //#9512 + } //#9512 + $_.val = $f($_.val + $_.sval); //#9514 + $_.nm = $f($_.nm - $_.ew); //#9515 + $put($_.out, $_.bar, $_.ew); //#9516 + } //#9516 + $put($_.out, $f($_.el - 1), $_.nm); //#9518 + $k[$j++] = $_.out; //#9519 + }; //#9519 + if (!bwipp_databarexpanded.__9530__) { //#9530 + $_ = Object.create($_); //#9530 + $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9529 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9529 + bwipp_databarexpanded.__9530__ = 1; //#9529 + $_ = Object.getPrototypeOf($_); //#9529 + } //#9529 + $_.dxw = $a($_.datalen); //#9532 + for (var _DC = 0, _DB = $_.datalen - 1; _DC <= _DB; _DC += 1) { //#9573 + $_.x = _DC; //#9536 + $_.d = $geti($_.binval, $_.x * 12, 12); //#9538 + $k[$j++] = 'd'; //#9539 + $k[$j++] = 0; //#9539 + for (var _DG = 0; _DG <= 11; _DG += 1) { //#9539 + $_.j = _DG; //#9539 + var _DL = $k[--$j]; //#9539 + $k[$j++] = $f(_DL + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9539 + } //#9539 + var _DM = $k[--$j]; //#9539 + $_[$k[--$j]] = _DM; //#9539 + $_.j = 0; //#9541 + for (;;) { //#9551 + if ($le($_.d, $get($_.tab174, $_.j))) { //#9549 + var _DU = $geti($_.tab174, $_.j + 1, 7); //#9543 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#9543 + $k[$j++] = $get(_DU, _DV); //#9543 + } //#9543 + $_.dte = $k[--$j]; //#9544 + $_.dto = $k[--$j]; //#9544 + $_.dmwe = $k[--$j]; //#9545 + $_.dmwo = $k[--$j]; //#9545 + $_.dele = $k[--$j]; //#9546 + $_.delo = $k[--$j]; //#9546 + $_.dgs = $k[--$j]; //#9547 + break; //#9548 + } //#9548 + $_.j = $_.j + 8; //#9550 + } //#9550 + $k[$j++] = 'dwo'; //#9553 + $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9553 + $k[$j++] = $_.delo; //#9553 + $k[$j++] = $_.dmwo; //#9553 + $k[$j++] = 4; //#9553 + $k[$j++] = true; //#9553 + $_.getRSSwidths(); //#9553 + var _Dl = $k[--$j]; //#9553 + $_[$k[--$j]] = _Dl; //#9553 + $k[$j++] = 'dwe'; //#9554 + $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9554 + $k[$j++] = $_.dele; //#9554 + $k[$j++] = $_.dmwe; //#9554 + $k[$j++] = 4; //#9554 + $k[$j++] = false; //#9554 + $_.getRSSwidths(); //#9554 + var _Ds = $k[--$j]; //#9554 + $_[$k[--$j]] = _Ds; //#9554 + $_.dw = $a(8); //#9556 + if (($_.x % 2) == 0) { //#9567 + for (var _Dw = 0; _Dw <= 3; _Dw += 1) { //#9562 + $_.j = _Dw; //#9559 + $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9560 + $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9561 + } //#9561 + } else { //#9567 + for (var _E7 = 0; _E7 <= 3; _E7 += 1) { //#9568 + $_.j = _E7; //#9565 + $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9566 + $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9567 + } //#9567 + } //#9567 + $put($_.dxw, $_.x, $_.dw); //#9571 + } //#9571 + if (!bwipp_databarexpanded.__9597__) { //#9597 + $_ = Object.create($_); //#9597 + $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9583 + $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9596 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9596 + bwipp_databarexpanded.__9597__ = 1; //#9596 + $_ = Object.getPrototypeOf($_); //#9596 + } //#9596 + $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9599 + $_.fxw = $a($_.seq.length); //#9600 + for (var _Ef = 0, _Ee = $_.seq.length - 1; _Ef <= _Ee; _Ef += 1) { //#9604 + $_.x = _Ef; //#9602 + $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9603 + } //#9603 + if (!bwipp_databarexpanded.__9633__) { //#9633 + $_ = Object.create($_); //#9633 + $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9632 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9632 + bwipp_databarexpanded.__9633__ = 1; //#9632 + $_ = Object.getPrototypeOf($_); //#9632 + } //#9632 + $k[$j++] = Infinity; //#9635 + $forall($_.seq, function() { //#9636 + $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9636 + }); //#9636 + var _Et = $a(); //#9636 + $_.checkweightseq = $geti(_Et, 8, _Et.length - 8); //#9637 + $k[$j++] = Infinity; //#9639 + var _Ev = $_.dxw; //#9640 + for (var _Ew = 0, _Ex = _Ev.length; _Ew < _Ex; _Ew++) { //#9640 + $forall($get(_Ev, _Ew)); //#9640 + } //#9640 + $_.widths = $a(); //#9640 + $_.checksum = 0; //#9643 + for (var _F2 = 0, _F1 = $_.widths.length - 1; _F2 <= _F1; _F2 += 1) { //#9647 + $_.i = _F2; //#9645 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9646 + } //#9646 + $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9648 + $_.i = 0; //#9650 + for (;;) { //#9660 + if ($_.checksum <= $get($_.tab174, $_.i)) { //#9658 + var _FI = $geti($_.tab174, $_.i + 1, 7); //#9652 + for (var _FJ = 0, _FK = _FI.length; _FJ < _FK; _FJ++) { //#9652 + $k[$j++] = $get(_FI, _FJ); //#9652 } //#9652 - } //#9652 - $_.pixs = $a(); //#9652 - delete $_.options["parse"]; //#9657 + $_.cte = $k[--$j]; //#9653 + $_.cto = $k[--$j]; //#9653 + $_.cmwe = $k[--$j]; //#9654 + $_.cmwo = $k[--$j]; //#9654 + $_.cele = $k[--$j]; //#9655 + $_.celo = $k[--$j]; //#9655 + $_.cgs = $k[--$j]; //#9656 + break; //#9657 + } //#9657 + $_.i = $_.i + 8; //#9659 + } //#9659 + $k[$j++] = 'cwo'; //#9662 + $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9662 + $k[$j++] = $_.celo; //#9662 + $k[$j++] = $_.cmwo; //#9662 + $k[$j++] = 4; //#9662 + $k[$j++] = true; //#9662 + $_.getRSSwidths(); //#9662 + var _FZ = $k[--$j]; //#9662 + $_[$k[--$j]] = _FZ; //#9662 + $k[$j++] = 'cwe'; //#9663 + $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9663 + $k[$j++] = $_.cele; //#9663 + $k[$j++] = $_.cmwe; //#9663 + $k[$j++] = 4; //#9663 + $k[$j++] = false; //#9663 + $_.getRSSwidths(); //#9663 + var _Fg = $k[--$j]; //#9663 + $_[$k[--$j]] = _Fg; //#9663 + $_.cw = $a(8); //#9665 + for (var _Fj = 0; _Fj <= 3; _Fj += 1) { //#9670 + $_.i = _Fj; //#9667 + $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9668 + $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9669 + } //#9669 + var _Fu = $a(22); //#9672 + $put(_Fu, 0, $_.cw); //#9673 + $puti(_Fu, 1, $_.dxw); //#9673 + $_.dxw = $geti(_Fu, 0, $_.datalen + 1); //#9674 + $_.datalen = $_.dxw.length; //#9675 + $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9678 + $_.numrows = $_.rows.length; //#9679 + for (var _G6 = 0, _G5 = $_.numrows - 1; _G6 <= _G5; _G6 += 1) { //#9694 + $_.r = _G6; //#9681 + $k[$j++] = Infinity; //#9682 + if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9683 + $k[$j++] = 0; //#9683 + } //#9683 + $k[$j++] = 1; //#9691 + $k[$j++] = 1; //#9691 + for (var _GB = 0, _GA = $_.segments - 1; _GB <= _GA; _GB += 1) { //#9691 + $_.pos = _GB + ($_.r * $_.segments); //#9686 + if ($_.pos < $_.datalen) { //#9690 + $forall($get($_.dxw, $_.pos)); //#9688 + if (($_.pos % 2) == 0) { //#9689 + $forall($get($_.fxw, ~~($_.pos / 2))); //#9689 + } //#9689 + } //#9689 + } //#9689 + var _GN = $counttomark() + 2; //#9693 + $k[$j++] = 1; //#9693 + $k[$j++] = 1; //#9693 + $astore($a(_GN)); //#9693 + $put($_.rows, $_.r, $k[--$j]); //#9693 + $j--; //#9693 + } //#9693 + if ($ne($_.format, "expandedstacked")) { //#9826 + var _GU = $get($_.rows, 0); //#9699 + $_.sbs = $geti(_GU, 1, _GU.length - 1); //#9699 + $k[$j++] = Infinity; //#9701 + $k[$j++] = 1; //#9707 + for (var _GY = 0, _GX = $_.datalen - 1; _GY <= _GX; _GY += 1) { //#9707 + $_.i = _GY; //#9704 + $forall($get($_.dxw, $_.i)); //#9705 + if (($_.i % 2) == 0) { //#9706 + $forall($get($_.fxw, ~~($_.i / 2))); //#9706 + } //#9706 + } //#9706 + $k[$j++] = 1; //#9708 + $k[$j++] = 1; //#9708 + $_.sbs = $a(); //#9708 + $k[$j++] = Infinity; //#9711 + var _Gh = $_.sbs; //#9713 + $k[$j++] = Infinity; //#9714 + for (var _Gj = 0, _Gk = ~~(($_.sbs.length + 1) / 2); _Gj < _Gk; _Gj++) { //#9714 + $k[$j++] = $_.height; //#9714 + } //#9714 + var _Gm = $a(); //#9714 + $k[$j++] = Infinity; //#9715 + for (var _Go = 0, _Gp = ~~(($_.sbs.length + 1) / 2); _Go < _Gp; _Go++) { //#9715 + $k[$j++] = 0; //#9715 + } //#9715 + var _Gq = $a(); //#9715 + $k[$j++] = 'ren'; //#9720 + $k[$j++] = bwipp_renlinear; //#9720 + $k[$j++] = 'sbs'; //#9720 + $k[$j++] = _Gh; //#9720 + $k[$j++] = 'bhs'; //#9720 + $k[$j++] = _Gm; //#9720 + $k[$j++] = 'bbs'; //#9720 + $k[$j++] = _Gq; //#9720 + $k[$j++] = 'borderleft'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderright'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'bordertop'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderbottom'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'opt'; //#9720 + $k[$j++] = $_.options; //#9720 + var _Gs = $d(); //#9720 + $k[$j++] = _Gs; //#9723 + if (!$_.dontdraw) { //#9723 + bwipp_renlinear(); //#9723 + } //#9723 + } else { //#9826 + $_.seps = $a($_.numrows); //#9727 + for (var _Gy = 0, _Gx = $_.numrows - 1; _Gy <= _Gx; _Gy += 1) { //#9783 + $_.r = _Gy; //#9730 + $_.row = $get($_.rows, $_.r); //#9731 + $k[$j++] = Infinity; //#9734 + for (var _H4 = 0, _H3 = $_.row.length - 1; _H4 <= _H3; _H4 += 2) { //#9739 + $_.i = _H4; //#9736 + for (var _H8 = 0, _H9 = $get($_.row, $_.i); _H8 < _H9; _H8++) { //#9737 + $k[$j++] = 0; //#9737 + } //#9737 + if ($_.i < ($_.row.length - 1)) { //#9738 + for (var _HF = 0, _HG = $get($_.row, $_.i + 1); _HF < _HG; _HF++) { //#9738 + $k[$j++] = 1; //#9738 + } //#9738 + } //#9738 + } //#9738 + $astore($a($counttomark())); //#9740 + $_.row = $k[--$j]; //#9740 + $j--; //#9740 + $k[$j++] = Infinity; //#9743 + $forall($_.row, function() { //#9743 + var _HL = $k[--$j]; //#9743 + $k[$j++] = $f(1 - _HL); //#9743 + }); //#9743 + $_.sep = $a(); //#9743 + $k[$j++] = Infinity; //#9744 + for (var _HP = 19, _HO = $_.row.length - 13; _HP <= _HO; _HP += 98) { //#9745 + $k[$j++] = _HP; //#9745 + } //#9745 + for (var _HS = 68, _HR = $_.row.length - 13; _HS <= _HR; _HS += 98) { //#9746 + $k[$j++] = _HS; //#9746 + } //#9746 + $_.finderpos = $a(); //#9746 + var _HU = $_.finderpos; //#9748 + for (var _HV = 0, _HW = _HU.length; _HV < _HW; _HV++) { //#9762 + var _HX = $get(_HU, _HV); //#9762 + for (var _HZ = _HX, _HY = $f(_HX + 14); _HZ <= _HY; _HZ += 1) { //#9761 + $_.i = _HZ; //#9750 + if ($get($_.row, $_.i) == 0) { //#9758 + if ($get($_.row, $_.i - 1) == 1) { //#9755 + $k[$j++] = 1; //#9753 + } else { //#9755 + var _Hj = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9755 + $k[$j++] = _Hj; //#9755 + } //#9755 + } else { //#9758 + $k[$j++] = 0; //#9758 + } //#9758 + $put($_.sep, $_.i, $k[--$j]); //#9760 + } //#9760 + } //#9760 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9763 + $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9764 + if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9778 + if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9776 + $k[$j++] = Infinity; //#9770 + $k[$j++] = 0; //#9770 + $aload($_.row); //#9770 + $_.row = $a(); //#9770 + $k[$j++] = Infinity; //#9771 + $k[$j++] = 0; //#9771 + $aload($_.sep); //#9771 + $_.sep = $a(); //#9771 + } else { //#9776 + for (var _I5 = $_.row.length - 1; _I5 >= 0; _I5 -= 1) { //#9773 + $k[$j++] = $get($_.row, _I5); //#9773 + } //#9773 + $astore($_.row); //#9774 + $j--; //#9774 + for (var _IA = $_.sep.length - 1; _IA >= 0; _IA -= 1) { //#9775 + $k[$j++] = $get($_.sep, _IA); //#9775 + } //#9775 + $astore($_.sep); //#9776 + $j--; //#9776 + } //#9776 + } //#9776 + $put($_.rows, $_.r, $_.row); //#9780 + $put($_.seps, $_.r, $_.sep); //#9781 + } //#9781 + $_.pixx = $get($_.rows, 0).length; //#9786 + $k[$j++] = Infinity; //#9787 + for (var _IN = 0, _IO = $_.pixx; _IN < _IO; _IN++) { //#9787 + $k[$j++] = 0; //#9787 + } //#9787 + var _IP = $a(); //#9787 + $puti(_IP, 0, $get($_.rows, $_.numrows - 1)); //#9787 + $put($_.rows, $_.numrows - 1, _IP); //#9788 + $k[$j++] = Infinity; //#9789 + for (var _IW = 0, _IX = $_.pixx; _IW < _IX; _IW++) { //#9789 + $k[$j++] = 0; //#9789 + } //#9789 + var _IY = $a(); //#9789 + $puti(_IY, 0, $get($_.seps, $_.numrows - 1)); //#9789 + $put($_.seps, $_.numrows - 1, _IY); //#9790 + $k[$j++] = Infinity; //#9793 + for (var _If = 0, _Ig = (~~($_.pixx / 2)) + 1; _If < _Ig; _If++) { //#9793 + $k[$j++] = 0; //#9793 + $k[$j++] = 1; //#9793 + } //#9793 + $_.sep = $geti($a(), 0, $_.pixx); //#9793 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9794 + $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9795 + $k[$j++] = Infinity; //#9798 + for (var _Ir = 0, _Iq = $_.numrows - 1; _Ir <= _Iq; _Ir += 1) { //#9809 + $_.r = _Ir; //#9800 + if ($_.r != 0) { //#9803 + $aload($get($_.seps, $_.r)); //#9802 + } //#9802 + for (var _Ix = 0, _Iy = $_.barxmult; _Ix < _Iy; _Ix++) { //#9804 + $aload($get($_.rows, $_.r)); //#9804 + } //#9804 + if ($_.r != ($_.numrows - 1)) { //#9808 + $aload($get($_.seps, $_.r)); //#9806 + $aload($_.sep); //#9807 + } //#9807 + } //#9807 + $_.pixs = $a(); //#9807 var _JH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -13112,4085 +13387,4133 @@ function bwipp_databarexpanded() { ["pixy", ~~($_.pixs.length / $_.pixx)], ["height", (~~($_.pixs.length / $_.pixx)) / 72], ["width", $_.pixx / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#9666 - $k[$j++] = _JH; //#9669 - if (!$_.dontdraw) { //#9669 - bwipp_renmatrix(); //#9669 - } //#9669 - } //#9669 - $_ = Object.getPrototypeOf($_); //#9673 - $_ = Object.getPrototypeOf($_); //#9675 -} - + ]); //#9823 + $k[$j++] = _JH; //#9826 + if (!$_.dontdraw) { //#9826 + bwipp_renmatrix(); //#9826 + } //#9826 + } //#9826 + $_ = Object.getPrototypeOf($_); //#9830 + $_ = Object.getPrototypeOf($_); //#9832 +} //bwipp_databarexpanded function bwipp_databarexpandedstacked() { - $_ = Object.create($_); //#9704 - $_.dontdraw = false; //#9707 - $k[$j++] = $_; //#9709 - bwipp_processoptions(); //#9709 - $_.options = $k[--$j]; //#9709 - $_.barcode = $k[--$j]; //#9710 - $put($_.options, "dontdraw", true); //#9713 - $put($_.options, "format", "expandedstacked"); //#9714 - $k[$j++] = 'args'; //#9716 - $k[$j++] = $_.barcode; //#9716 - $k[$j++] = $_.options; //#9716 - bwipp_databarexpanded(); //#9716 - var _6 = $k[--$j]; //#9716 - $_[$k[--$j]] = _6; //#9716 - $put($_.args, "opt", $_.options); //#9718 - $k[$j++] = $_.args; //#9721 - if (!$_.dontdraw) { //#9721 - bwipp_renmatrix(); //#9721 - } //#9721 - $_ = Object.getPrototypeOf($_); //#9723 -} - + $_ = Object.create($_); //#9861 + $_.dontdraw = false; //#9864 + $k[$j++] = $_; //#9866 + bwipp_processoptions(); //#9866 + $_.options = $k[--$j]; //#9866 + $_.barcode = $k[--$j]; //#9867 + $put($_.options, "dontdraw", true); //#9870 + $put($_.options, "format", "expandedstacked"); //#9871 + $k[$j++] = 'args'; //#9873 + $k[$j++] = $_.barcode; //#9873 + $k[$j++] = $_.options; //#9873 + bwipp_databarexpanded(); //#9873 + var _6 = $k[--$j]; //#9873 + $_[$k[--$j]] = _6; //#9873 + $put($_.args, "opt", $_.options); //#9875 + $k[$j++] = $_.args; //#9878 + if (!$_.dontdraw) { //#9878 + bwipp_renmatrix(); //#9878 + } //#9878 + $_ = Object.getPrototypeOf($_); //#9880 +} //bwipp_databarexpandedstacked function bwipp_gs1northamericancoupon() { - $_ = Object.create($_); //#9753 - $_.dontdraw = false; //#9756 - $_.includetext = false; //#9757 - $_.coupontextfont = "OCR-B"; //#9758 - $_.coupontextsize = 9; //#9759 - $_.coupontextxoffset = null; //#9760 - $_.coupontextyoffset = null; //#9761 - $_.parse = false; //#9762 - $_.dontlint = false; //#9763 - $_.lintreqs = true; //#9764 - $k[$j++] = $_; //#9766 - bwipp_processoptions(); //#9766 - $_.options = $k[--$j]; //#9766 - $_.barcode = $k[--$j]; //#9767 - $k[$j++] = $_.barcode; //#9769 - $k[$j++] = 'ai'; //#9769 - bwipp_gs1process(); //#9769 - $j--; //#9770 - $_.vals = $k[--$j]; //#9771 - $_.ais = $k[--$j]; //#9772 - if ($_.ais.length != 1) { //#9777 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9776'; //#9776 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9776 - bwipp_raiseerror(); //#9776 - } //#9776 - if ($ne($get($_.ais, 0), "8110")) { //#9780 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9779'; //#9779 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9779 - bwipp_raiseerror(); //#9779 - } //#9779 - $_.val = $get($_.vals, 0); //#9783 - $_.vli = $f($get($_.val, 0) - 48); //#9784 - if (($_.vli < 0) || ($_.vli > 6)) { //#9787 - $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9786'; //#9786 - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9786 - bwipp_raiseerror(); //#9786 - } //#9786 - $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9788 - $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9789 - $_.coupontext = $s($_.gcp.length + 7); //#9790 - $puti($_.coupontext, 0, $_.gcp); //#9791 - $puti($_.coupontext, $_.gcp.length, "-"); //#9792 - $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9793 - delete $_.options["parse"]; //#9796 - $put($_.options, "dontdraw", true); //#9797 - $k[$j++] = 'args'; //#9799 - $k[$j++] = $_.barcode; //#9799 - $k[$j++] = $_.options; //#9799 - bwipp_databarexpandedstacked(); //#9799 - var _X = $k[--$j]; //#9799 - $_[$k[--$j]] = _X; //#9799 - if ($_.includetext) { //#9818 - if ($eq($_.coupontextxoffset, null)) { //#9805 - $_.coupontextxoffset = 0; //#9804 - } //#9804 - if ($eq($_.coupontextyoffset, null)) { //#9808 - $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9807 - } //#9807 - var _f = $get($_.args, "txt") !== undefined; //#9809 - if (_f) { //#9816 - $_.txt = $get($_.args, "txt"); //#9810 - $_.newtxt = $a($_.txt.length + 1); //#9811 - $puti($_.newtxt, 0, $_.txt); //#9812 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9813 - $put($_.args, "txt", $_.newtxt); //#9814 - } else { //#9816 - $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9816 - } //#9816 - } //#9816 - $put($_.args, "opt", $_.options); //#9820 - $k[$j++] = $_.args; //#9823 - if (!$_.dontdraw) { //#9823 - bwipp_renmatrix(); //#9823 - } //#9823 - $_ = Object.getPrototypeOf($_); //#9825 -} - + $_ = Object.create($_); //#9910 + $_.dontdraw = false; //#9913 + $_.includetext = false; //#9914 + $_.coupontextfont = "OCR-B"; //#9915 + $_.coupontextsize = 9; //#9916 + $_.coupontextxoffset = null; //#9917 + $_.coupontextyoffset = null; //#9918 + $_.parse = false; //#9919 + $_.dontlint = false; //#9920 + $_.lintreqs = true; //#9921 + $k[$j++] = $_; //#9923 + bwipp_processoptions(); //#9923 + $_.options = $k[--$j]; //#9923 + $_.barcode = $k[--$j]; //#9924 + $k[$j++] = $_.barcode; //#9926 + $k[$j++] = 'ai'; //#9926 + bwipp_gs1process(); //#9926 + $j--; //#9927 + $_.vals = $k[--$j]; //#9928 + $_.ais = $k[--$j]; //#9929 + if ($_.ais.length != 1) { //#9934 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9933'; //#9933 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9933 + bwipp_raiseerror(); //#9933 + } //#9933 + if ($ne($get($_.ais, 0), "8110")) { //#9937 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9936'; //#9936 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9936 + bwipp_raiseerror(); //#9936 + } //#9936 + $_.val = $get($_.vals, 0); //#9940 + $_.vli = $f($get($_.val, 0) - 48); //#9941 + if (($_.vli < 0) || ($_.vli > 6)) { //#9944 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9943'; //#9943 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9943 + bwipp_raiseerror(); //#9943 + } //#9943 + $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9945 + $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9946 + $_.coupontext = $s($_.gcp.length + 7); //#9947 + $puti($_.coupontext, 0, $_.gcp); //#9948 + $puti($_.coupontext, $_.gcp.length, "-"); //#9949 + $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9950 + $put($_.options, "dontdraw", true); //#9953 + $k[$j++] = 'args'; //#9955 + $k[$j++] = $_.barcode; //#9955 + $k[$j++] = $_.options; //#9955 + bwipp_databarexpandedstacked(); //#9955 + var _W = $k[--$j]; //#9955 + $_[$k[--$j]] = _W; //#9955 + if ($_.includetext) { //#9974 + if ($eq($_.coupontextxoffset, null)) { //#9961 + $_.coupontextxoffset = 0; //#9960 + } //#9960 + if ($eq($_.coupontextyoffset, null)) { //#9964 + $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9963 + } //#9963 + var _e = $get($_.args, "txt") !== undefined; //#9965 + if (_e) { //#9972 + $_.txt = $get($_.args, "txt"); //#9966 + $_.newtxt = $a($_.txt.length + 1); //#9967 + $puti($_.newtxt, 0, $_.txt); //#9968 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9969 + $put($_.args, "txt", $_.newtxt); //#9970 + } else { //#9972 + $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9972 + } //#9972 + } //#9972 + $put($_.args, "opt", $_.options); //#9976 + $k[$j++] = $_.args; //#9979 + if (!$_.dontdraw) { //#9979 + bwipp_renmatrix(); //#9979 + } //#9979 + $_ = Object.getPrototypeOf($_); //#9981 +} //bwipp_gs1northamericancoupon function bwipp_pharmacode() { - $_ = Object.create($_); //#9853 - $_.dontdraw = false; //#9856 - $_.height = (8 * 2.835) / 72; //#9857 - $_.nwidth = 0.5 * 2.835; //#9858 - $_.wwidth = 1.5 * 2.835; //#9859 - $_.swidth = 1 * 2.835; //#9860 - $k[$j++] = $_; //#9862 - bwipp_processoptions(); //#9862 - $_.options = $k[--$j]; //#9862 - $_.barcode = $k[--$j]; //#9863 - if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#9868 - $k[$j++] = 'bwipp.pharmacodeBadLength#9867'; //#9867 - $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#9867 - bwipp_raiseerror(); //#9867 - } //#9867 - $forall($_.barcode, function() { //#9873 - var _5 = $k[--$j]; //#9870 - if ((_5 < 48) || (_5 > 57)) { //#9872 - $k[$j++] = 'bwipp.pharmacodeBadCharacter#9871'; //#9871 - $k[$j++] = "Pharmacode must contain only digits"; //#9871 - bwipp_raiseerror(); //#9871 - } //#9871 - }); //#9871 - var _7 = $cvi($_.barcode); //#9874 - if ((_7 < 3) || (_7 > 131070)) { //#9876 - $k[$j++] = 'bwipp.pharmacodeBadValue#9875'; //#9875 - $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#9875 - bwipp_raiseerror(); //#9875 - } //#9875 - $_.txt = $a($_.barcode.length); //#9879 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9883 - $_.i = _C; //#9881 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9882 - } //#9882 - $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#9886 - $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#9887 - $_.barlen = $_.barcode.length; //#9889 - $_.sbs = $a($_.barlen * 2); //#9890 - for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#9901 - $_.i = _U; //#9893 - $_.enc = $geti($_.barcode, $_.i, 1); //#9894 - if ($eq($_.enc, "0")) { //#9898 - $put($_.sbs, $_.i * 2, $_.nwidth); //#9896 - } else { //#9898 - $put($_.sbs, $_.i * 2, $_.wwidth); //#9898 - } //#9898 - $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#9900 - } //#9900 - $k[$j++] = Infinity; //#9911 - var _i = $_.sbs; //#9906 - $k[$j++] = Infinity; //#9907 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#9907 - $k[$j++] = $_.height; //#9907 - } //#9907 - var _n = $a(); //#9907 - $k[$j++] = Infinity; //#9908 - for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#9908 - $k[$j++] = 0; //#9908 - } //#9908 - var _r = $a(); //#9908 - $k[$j++] = 'ren'; //#9911 - $k[$j++] = bwipp_renlinear; //#9911 - $k[$j++] = 'sbs'; //#9911 - $k[$j++] = _i; //#9911 - $k[$j++] = 'bhs'; //#9911 - $k[$j++] = _n; //#9911 - $k[$j++] = 'bbs'; //#9911 - $k[$j++] = _r; //#9911 - $k[$j++] = 'txt'; //#9911 - $k[$j++] = $_.txt; //#9911 - $k[$j++] = 'textxalign'; //#9911 - $k[$j++] = "center"; //#9911 - $k[$j++] = 'opt'; //#9911 - $k[$j++] = $_.options; //#9911 - var _u = $d(); //#9911 - $k[$j++] = _u; //#9914 - if (!$_.dontdraw) { //#9914 - bwipp_renlinear(); //#9914 - } //#9914 - $_ = Object.getPrototypeOf($_); //#9916 -} - + $_ = Object.create($_); //#10009 + $_.dontdraw = false; //#10012 + $_.height = (8 * 2.835) / 72; //#10013 + $_.nwidth = 0.5 * 2.835; //#10014 + $_.wwidth = 1.5 * 2.835; //#10015 + $_.swidth = 1 * 2.835; //#10016 + $k[$j++] = $_; //#10018 + bwipp_processoptions(); //#10018 + $_.options = $k[--$j]; //#10018 + $_.barcode = $k[--$j]; //#10019 + if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#10024 + $k[$j++] = 'bwipp.pharmacodeBadLength#10023'; //#10023 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#10023 + bwipp_raiseerror(); //#10023 + } //#10023 + $forall($_.barcode, function() { //#10029 + var _5 = $k[--$j]; //#10026 + if ((_5 < 48) || (_5 > 57)) { //#10028 + $k[$j++] = 'bwipp.pharmacodeBadCharacter#10027'; //#10027 + $k[$j++] = "Pharmacode must contain only digits"; //#10027 + bwipp_raiseerror(); //#10027 + } //#10027 + }); //#10027 + var _7 = $cvi($_.barcode); //#10030 + if ((_7 < 3) || (_7 > 131070)) { //#10032 + $k[$j++] = 'bwipp.pharmacodeBadValue#10031'; //#10031 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#10031 + bwipp_raiseerror(); //#10031 + } //#10031 + $_.txt = $a($_.barcode.length); //#10035 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10039 + $_.i = _C; //#10037 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10038 + } //#10038 + $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#10042 + $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#10043 + $_.barlen = $_.barcode.length; //#10045 + $_.sbs = $a($_.barlen * 2); //#10046 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10057 + $_.i = _U; //#10049 + $_.enc = $geti($_.barcode, $_.i, 1); //#10050 + if ($eq($_.enc, "0")) { //#10054 + $put($_.sbs, $_.i * 2, $_.nwidth); //#10052 + } else { //#10054 + $put($_.sbs, $_.i * 2, $_.wwidth); //#10054 + } //#10054 + $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#10056 + } //#10056 + $k[$j++] = Infinity; //#10060 + var _i = $_.sbs; //#10062 + $k[$j++] = Infinity; //#10063 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#10063 + $k[$j++] = $_.height; //#10063 + } //#10063 + var _n = $a(); //#10063 + $k[$j++] = Infinity; //#10064 + for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#10064 + $k[$j++] = 0; //#10064 + } //#10064 + var _r = $a(); //#10064 + $k[$j++] = 'ren'; //#10067 + $k[$j++] = bwipp_renlinear; //#10067 + $k[$j++] = 'sbs'; //#10067 + $k[$j++] = _i; //#10067 + $k[$j++] = 'bhs'; //#10067 + $k[$j++] = _n; //#10067 + $k[$j++] = 'bbs'; //#10067 + $k[$j++] = _r; //#10067 + $k[$j++] = 'txt'; //#10067 + $k[$j++] = $_.txt; //#10067 + $k[$j++] = 'textxalign'; //#10067 + $k[$j++] = "center"; //#10067 + $k[$j++] = 'opt'; //#10067 + $k[$j++] = $_.options; //#10067 + var _u = $d(); //#10067 + $k[$j++] = _u; //#10070 + if (!$_.dontdraw) { //#10070 + bwipp_renlinear(); //#10070 + } //#10070 + $_ = Object.getPrototypeOf($_); //#10072 +} //bwipp_pharmacode function bwipp_pharmacode2() { - $_ = Object.create($_); //#9944 - $_.dontdraw = false; //#9947 - $_.includetext = false; //#9948 - $_.height = 4; //#9949 - $k[$j++] = $_; //#9951 - bwipp_processoptions(); //#9951 - $_.options = $k[--$j]; //#9951 - $_.barcode = $k[--$j]; //#9952 - if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#9957 - $k[$j++] = 'bwipp.pharmacode2BadLength#9956'; //#9956 - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#9956 - bwipp_raiseerror(); //#9956 - } //#9956 - $forall($_.barcode, function() { //#9962 - var _5 = $k[--$j]; //#9959 - if ((_5 < 48) || (_5 > 57)) { //#9961 - $k[$j++] = 'bwipp.pharmacode2badCharacter#9960'; //#9960 - $k[$j++] = "Two-track Pharmacode must contain only digits"; //#9960 - bwipp_raiseerror(); //#9960 - } //#9960 - }); //#9960 - var _7 = $cvi($_.barcode); //#9963 - if ((_7 < 4) || (_7 > 64570080)) { //#9965 - $k[$j++] = 'bwipp.pharmacode2badValue#9964'; //#9964 - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#9964 - bwipp_raiseerror(); //#9964 - } //#9964 - $_.txt = $a($_.barcode.length); //#9968 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9972 - $_.i = _C; //#9970 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9971 - } //#9971 - $_.encstr = $s(16); //#9974 - $_.sbs = $a(32); //#9975 - $_.bar = (1 / 25.4) * $_.height; //#9976 - $_.spc = (1 / 25.4) * 72; //#9977 - $_.i = 15; //#9980 - $_.val = $cvi($_.barcode); //#9981 - for (;;) { //#9988 - if ($_.val == 0) { //#9983 - break; //#9983 - } //#9983 - var _P = $_.val % 3; //#9984 - $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#9985 - $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#9986 - $_.i = $_.i - 1; //#9987 - } //#9987 - $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#9989 - $_.bhs = $a($_.encstr.length); //#9992 - $_.bbs = $a($_.encstr.length); //#9993 - for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#9999 - $_.i = _i; //#9995 - var _l = $get($_.encstr, $_.i); //#9996 - $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#9997 - $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#9998 - } //#9998 - $k[$j++] = Infinity; //#10010 - var _w = $_.bhs; //#10004 - var _x = $_.bbs; //#10005 - $k[$j++] = Infinity; //#10006 - for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10006 - $k[$j++] = $_.spc; //#10006 - } //#10006 - var _12 = $a(); //#10006 - $k[$j++] = 'ren'; //#10010 - $k[$j++] = bwipp_renlinear; //#10010 - $k[$j++] = 'bhs'; //#10010 - $k[$j++] = _w; //#10010 - $k[$j++] = 'bbs'; //#10010 - $k[$j++] = _x; //#10010 - $k[$j++] = 'sbs'; //#10010 - $k[$j++] = _12; //#10010 - $k[$j++] = 'txt'; //#10010 - $k[$j++] = $_.txt; //#10010 - $k[$j++] = 'textxalign'; //#10010 - $k[$j++] = "center"; //#10010 - $k[$j++] = 'textyoffset'; //#10010 - $k[$j++] = 4; //#10010 - $k[$j++] = 'opt'; //#10010 - $k[$j++] = $_.options; //#10010 - var _15 = $d(); //#10010 - $k[$j++] = _15; //#10013 - if (!$_.dontdraw) { //#10013 - bwipp_renlinear(); //#10013 - } //#10013 - $_ = Object.getPrototypeOf($_); //#10015 -} - + $_ = Object.create($_); //#10100 + $_.dontdraw = false; //#10103 + $_.includetext = false; //#10104 + $_.height = 4; //#10105 + $k[$j++] = $_; //#10107 + bwipp_processoptions(); //#10107 + $_.options = $k[--$j]; //#10107 + $_.barcode = $k[--$j]; //#10108 + if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#10113 + $k[$j++] = 'bwipp.pharmacode2BadLength#10112'; //#10112 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#10112 + bwipp_raiseerror(); //#10112 + } //#10112 + $forall($_.barcode, function() { //#10118 + var _5 = $k[--$j]; //#10115 + if ((_5 < 48) || (_5 > 57)) { //#10117 + $k[$j++] = 'bwipp.pharmacode2badCharacter#10116'; //#10116 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#10116 + bwipp_raiseerror(); //#10116 + } //#10116 + }); //#10116 + var _7 = $cvi($_.barcode); //#10119 + if ((_7 < 4) || (_7 > 64570080)) { //#10121 + $k[$j++] = 'bwipp.pharmacode2badValue#10120'; //#10120 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#10120 + bwipp_raiseerror(); //#10120 + } //#10120 + $_.txt = $a($_.barcode.length); //#10124 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10128 + $_.i = _C; //#10126 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10127 + } //#10127 + $_.encstr = $s(16); //#10130 + $_.sbs = $a(32); //#10131 + $_.bar = (1 / 25.4) * $_.height; //#10132 + $_.spc = (1 / 25.4) * 72; //#10133 + $_.i = 15; //#10136 + $_.val = $cvi($_.barcode); //#10137 + for (;;) { //#10144 + if ($_.val == 0) { //#10139 + break; //#10139 + } //#10139 + var _P = $_.val % 3; //#10140 + $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#10141 + $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#10142 + $_.i = $_.i - 1; //#10143 + } //#10143 + $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#10145 + $_.bhs = $a($_.encstr.length); //#10148 + $_.bbs = $a($_.encstr.length); //#10149 + for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#10155 + $_.i = _i; //#10151 + var _l = $get($_.encstr, $_.i); //#10152 + $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#10153 + $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#10154 + } //#10154 + $k[$j++] = Infinity; //#10158 + var _w = $_.bhs; //#10160 + var _x = $_.bbs; //#10161 + $k[$j++] = Infinity; //#10162 + for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10162 + $k[$j++] = $_.spc; //#10162 + } //#10162 + var _12 = $a(); //#10162 + $k[$j++] = 'ren'; //#10166 + $k[$j++] = bwipp_renlinear; //#10166 + $k[$j++] = 'bhs'; //#10166 + $k[$j++] = _w; //#10166 + $k[$j++] = 'bbs'; //#10166 + $k[$j++] = _x; //#10166 + $k[$j++] = 'sbs'; //#10166 + $k[$j++] = _12; //#10166 + $k[$j++] = 'txt'; //#10166 + $k[$j++] = $_.txt; //#10166 + $k[$j++] = 'textxalign'; //#10166 + $k[$j++] = "center"; //#10166 + $k[$j++] = 'textyoffset'; //#10166 + $k[$j++] = 4; //#10166 + $k[$j++] = 'opt'; //#10166 + $k[$j++] = $_.options; //#10166 + var _15 = $d(); //#10166 + $k[$j++] = _15; //#10169 + if (!$_.dontdraw) { //#10169 + bwipp_renlinear(); //#10169 + } //#10169 + $_ = Object.getPrototypeOf($_); //#10171 +} //bwipp_pharmacode2 function bwipp_code2of5() { - $_ = Object.create($_); //#10045 - $_.dontdraw = false; //#10048 - $_.includecheck = false; //#10049 - $_.validatecheck = false; //#10050 - $_.includetext = false; //#10051 - $_.includecheckintext = false; //#10052 - $_.textfont = "OCR-B"; //#10053 - $_.textsize = 10; //#10054 - $_.textyoffset = -8; //#10055 - $_.height = 1; //#10056 - $_.version = "industrial"; //#10057 - $k[$j++] = $_; //#10059 - bwipp_processoptions(); //#10059 - $_.options = $k[--$j]; //#10059 - $_.barcode = $k[--$j]; //#10060 - bwipp_loadctx(bwipp_code2of5) //#10062 - $forall($_.barcode, function() { //#10069 - var _3 = $k[--$j]; //#10066 - if ((_3 < 48) || (_3 > 57)) { //#10068 - $k[$j++] = 'bwipp.code2of5badCharacter#10067'; //#10067 - $k[$j++] = "Code 25 must contain only digits"; //#10067 - bwipp_raiseerror(); //#10067 - } //#10067 - }); //#10067 - $k[$j++] = 'barlen'; //#10071 - $k[$j++] = $_.barcode.length; //#10071 - if ($_.validatecheck) { //#10071 - var _6 = $k[--$j]; //#10071 - $k[$j++] = $f(_6 - 1); //#10071 - } //#10071 - var _7 = $k[--$j]; //#10071 - $_[$k[--$j]] = _7; //#10071 - $_.checksum = 0; //#10073 - for (var _B = 0, _A = $f($_.barlen - 1); _B <= _A; _B += 1) { //#10077 - $_.i = _B; //#10075 - $k[$j++] = 'checksum'; //#10076 - $k[$j++] = $_.checksum; //#10076 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10076 - if (($f($_.barlen - $_.i) % 2) != 0) { //#10076 - var _I = $k[--$j]; //#10076 - $k[$j++] = _I * 3; //#10076 - } //#10076 - var _J = $k[--$j]; //#10076 - var _K = $k[--$j]; //#10076 - $_[$k[--$j]] = $f(_K + _J); //#10076 - } //#10076 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10078 - if ($_.validatecheck) { //#10085 - if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10082 - $k[$j++] = 'bwipp.code2of5badCheckDigit#10081'; //#10081 - $k[$j++] = "Incorrect Code 25 check digit provided"; //#10081 - bwipp_raiseerror(); //#10081 - } //#10081 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10083 - $_.includecheck = true; //#10084 - } //#10084 - if (!bwipp_code2of5.__10113__) { //#10113 - $_ = Object.create($_); //#10113 - var _a = new Map([ + $_ = Object.create($_); //#10201 + $_.dontdraw = false; //#10204 + $_.includecheck = false; //#10205 + $_.validatecheck = false; //#10206 + $_.includetext = false; //#10207 + $_.includecheckintext = false; //#10208 + $_.textfont = "OCR-B"; //#10209 + $_.textsize = 10; //#10210 + $_.textyoffset = -8; //#10211 + $_.height = 1; //#10212 + $_.version = "industrial"; //#10213 + $k[$j++] = $_; //#10215 + bwipp_processoptions(); //#10215 + $_.options = $k[--$j]; //#10215 + $_.barcode = $k[--$j]; //#10216 + if ($eq($_.barcode, "")) { //#10220 + $k[$j++] = 'bwipp.code2of5emptyData#10219'; //#10219 + $k[$j++] = "The data must not be empty"; //#10219 + bwipp_raiseerror(); //#10219 + } //#10219 + bwipp_loadctx(bwipp_code2of5) //#10222 + $forall($_.barcode, function() { //#10229 + var _4 = $k[--$j]; //#10226 + if ((_4 < 48) || (_4 > 57)) { //#10228 + $k[$j++] = 'bwipp.code2of5badCharacter#10227'; //#10227 + $k[$j++] = "Code 25 must contain only digits"; //#10227 + bwipp_raiseerror(); //#10227 + } //#10227 + }); //#10227 + $k[$j++] = 'barlen'; //#10231 + $k[$j++] = $_.barcode.length; //#10231 + if ($_.validatecheck) { //#10231 + var _7 = $k[--$j]; //#10231 + $k[$j++] = $f(_7 - 1); //#10231 + } //#10231 + var _8 = $k[--$j]; //#10231 + $_[$k[--$j]] = _8; //#10231 + $_.checksum = 0; //#10233 + for (var _C = 0, _B = $f($_.barlen - 1); _C <= _B; _C += 1) { //#10237 + $_.i = _C; //#10235 + $k[$j++] = 'checksum'; //#10236 + $k[$j++] = $_.checksum; //#10236 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10236 + if (($f($_.barlen - $_.i) % 2) != 0) { //#10236 + var _J = $k[--$j]; //#10236 + $k[$j++] = _J * 3; //#10236 + } //#10236 + var _K = $k[--$j]; //#10236 + var _L = $k[--$j]; //#10236 + $_[$k[--$j]] = $f(_L + _K); //#10236 + } //#10236 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10238 + if ($_.validatecheck) { //#10245 + if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10242 + $k[$j++] = 'bwipp.code2of5badCheckDigit#10241'; //#10241 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#10241 + bwipp_raiseerror(); //#10241 + } //#10241 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10243 + $_.includecheck = true; //#10244 + } //#10244 + if (!bwipp_code2of5.__10273__) { //#10273 + $_ = Object.create($_); //#10273 + var _b = new Map([ ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] - ]); //#10110 - $_.versions = _a; //#10112 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10112 - bwipp_code2of5.__10113__ = 1; //#10112 - $_ = Object.getPrototypeOf($_); //#10112 - } //#10112 - var _e = $get($_.versions, $_.version) !== undefined; //#10115 - if (!_e) { //#10117 - $k[$j++] = 'bwipp.code2of5badVersion#10116'; //#10116 - $k[$j++] = "Unrecognised Code 25 version"; //#10116 - bwipp_raiseerror(); //#10116 - } //#10116 - $_.encs = $get($_.versions, $_.version); //#10118 - $_.cs = $get($_.encs, 0).length; //#10120 - $k[$j++] = 'cw'; //#10121 - $k[$j++] = 0; //#10121 - $forall($get($_.encs, 0), function() { //#10121 - var _m = $k[--$j]; //#10121 - var _n = $k[--$j]; //#10121 - $k[$j++] = $f(_n + $f(_m - 48)); //#10121 - }); //#10121 - var _o = $k[--$j]; //#10121 - $_[$k[--$j]] = _o; //#10121 - $_.ss = $get($_.encs, 10).length; //#10122 - $k[$j++] = 'sw'; //#10123 - $k[$j++] = 0; //#10123 - $forall($get($_.encs, 10), function() { //#10123 - var _u = $k[--$j]; //#10123 - var _v = $k[--$j]; //#10123 - $k[$j++] = $f(_v + $f(_u - 48)); //#10123 - }); //#10123 - var _w = $k[--$j]; //#10123 - $_[$k[--$j]] = _w; //#10123 - $_.es = $get($_.encs, 11).length; //#10124 - if (!bwipp_code2of5.__10129__) { //#10129 - $_ = Object.create($_); //#10129 - $_.barchars = "0123456789"; //#10128 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10128 - bwipp_code2of5.__10129__ = 1; //#10128 - $_ = Object.getPrototypeOf($_); //#10128 - } //#10128 - $k[$j++] = 'sbs'; //#10131 - $k[$j++] = $_.barlen; //#10131 - if ($_.includecheck) { //#10131 - var _13 = $k[--$j]; //#10131 - $k[$j++] = $f(_13 + 1); //#10131 - } //#10131 - var _18 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10131 - $_[$k[--$j]] = _18; //#10131 - $k[$j++] = 'txt'; //#10132 - $k[$j++] = $_.barlen; //#10132 - if ($_.includecheck) { //#10132 - var _1C = $k[--$j]; //#10132 - $k[$j++] = $f(_1C + 1); //#10132 - } //#10132 - var _1E = $a($k[--$j]); //#10132 - $_[$k[--$j]] = _1E; //#10132 - $puti($_.sbs, 0, $get($_.encs, 10)); //#10135 - for (var _1L = 0, _1K = $f($_.barlen - 1); _1L <= _1K; _1L += 1) { //#10146 - $_.i = _1L; //#10137 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10139 - $j--; //#10140 - $_.indx = $k[--$j].length; //#10141 - $j -= 2; //#10142 - $_.enc = $get($_.encs, $_.indx); //#10143 - $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10144 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10145 - } //#10145 - if ($_.includecheck) { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10150 - $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10151 - if ($_.includecheckintext) { //#10155 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10153 - } else { //#10155 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10155 - } //#10155 - } else { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10158 - } //#10158 - $k[$j++] = Infinity; //#10170 - $k[$j++] = Infinity; //#10164 - $forall($_.sbs, function() { //#10164 - var _2T = $k[--$j]; //#10164 - $k[$j++] = $f(_2T - 48); //#10164 - }); //#10164 - var _2U = $a(); //#10164 - $k[$j++] = Infinity; //#10165 - for (var _2W = 0, _2X = ~~(($_.sbs.length + 1) / 2); _2W < _2X; _2W++) { //#10165 - $k[$j++] = $_.height; //#10165 - } //#10165 - var _2Z = $a(); //#10165 - $k[$j++] = Infinity; //#10166 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10166 - $k[$j++] = 0; //#10166 - } //#10166 - var _2d = $a(); //#10166 - $k[$j++] = 'ren'; //#10169 - $k[$j++] = bwipp_renlinear; //#10169 - $k[$j++] = 'sbs'; //#10169 - $k[$j++] = _2U; //#10169 - $k[$j++] = 'bhs'; //#10169 - $k[$j++] = _2Z; //#10169 - $k[$j++] = 'bbs'; //#10169 - $k[$j++] = _2d; //#10169 - if ($_.includetext) { //#10169 - $k[$j++] = 'txt'; //#10168 - $k[$j++] = $_.txt; //#10168 - } //#10168 - $k[$j++] = 'opt'; //#10170 - $k[$j++] = $_.options; //#10170 - var _2h = $d(); //#10170 - $k[$j++] = _2h; //#10173 - if (!$_.dontdraw) { //#10173 - bwipp_renlinear(); //#10173 - } //#10173 - $_ = Object.getPrototypeOf($_); //#10175 - $_ = Object.getPrototypeOf($_); //#10177 -} - + ]); //#10270 + $_.versions = _b; //#10272 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10272 + bwipp_code2of5.__10273__ = 1; //#10272 + $_ = Object.getPrototypeOf($_); //#10272 + } //#10272 + var _f = $get($_.versions, $_.version) !== undefined; //#10275 + if (!_f) { //#10277 + $k[$j++] = 'bwipp.code2of5badVersion#10276'; //#10276 + $k[$j++] = "Unrecognised Code 25 version"; //#10276 + bwipp_raiseerror(); //#10276 + } //#10276 + $_.encs = $get($_.versions, $_.version); //#10278 + $_.cs = $get($_.encs, 0).length; //#10280 + $k[$j++] = 'cw'; //#10281 + $k[$j++] = 0; //#10281 + $forall($get($_.encs, 0), function() { //#10281 + var _n = $k[--$j]; //#10281 + var _o = $k[--$j]; //#10281 + $k[$j++] = $f(_o + $f(_n - 48)); //#10281 + }); //#10281 + var _p = $k[--$j]; //#10281 + $_[$k[--$j]] = _p; //#10281 + $_.ss = $get($_.encs, 10).length; //#10282 + $k[$j++] = 'sw'; //#10283 + $k[$j++] = 0; //#10283 + $forall($get($_.encs, 10), function() { //#10283 + var _v = $k[--$j]; //#10283 + var _w = $k[--$j]; //#10283 + $k[$j++] = $f(_w + $f(_v - 48)); //#10283 + }); //#10283 + var _x = $k[--$j]; //#10283 + $_[$k[--$j]] = _x; //#10283 + var _10 = $get($_.encs, 11); //#10284 + $_.es = _10.length; //#10284 + if (!bwipp_code2of5.__10289__) { //#10289 + $_ = Object.create($_); //#10289 + $_.barchars = "0123456789"; //#10288 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10288 + bwipp_code2of5.__10289__ = 1; //#10288 + $_ = Object.getPrototypeOf($_); //#10288 + } //#10288 + $k[$j++] = 'sbs'; //#10291 + $k[$j++] = $_.barlen; //#10291 + if ($_.includecheck) { //#10291 + var _14 = $k[--$j]; //#10291 + $k[$j++] = $f(_14 + 1); //#10291 + } //#10291 + var _19 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10291 + $_[$k[--$j]] = _19; //#10291 + $k[$j++] = 'txt'; //#10292 + $k[$j++] = $_.barlen; //#10292 + if ($_.includecheck) { //#10292 + var _1D = $k[--$j]; //#10292 + $k[$j++] = $f(_1D + 1); //#10292 + } //#10292 + var _1F = $a($k[--$j]); //#10292 + $_[$k[--$j]] = _1F; //#10292 + $puti($_.sbs, 0, $get($_.encs, 10)); //#10295 + for (var _1M = 0, _1L = $f($_.barlen - 1); _1M <= _1L; _1M += 1) { //#10306 + $_.i = _1M; //#10297 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10299 + $j--; //#10300 + $_.indx = $k[--$j].length; //#10301 + $j -= 2; //#10302 + $_.enc = $get($_.encs, $_.indx); //#10303 + $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10304 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10305 + } //#10305 + if ($_.includecheck) { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10310 + $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10311 + if ($_.includecheckintext) { //#10315 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10313 + } else { //#10315 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10315 + } //#10315 + } else { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10318 + } //#10318 + $k[$j++] = Infinity; //#10322 + $k[$j++] = Infinity; //#10324 + $forall($_.sbs, function() { //#10324 + var _2U = $k[--$j]; //#10324 + $k[$j++] = $f(_2U - 48); //#10324 + }); //#10324 + var _2V = $a(); //#10324 + $k[$j++] = Infinity; //#10325 + for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#10325 + $k[$j++] = $_.height; //#10325 + } //#10325 + var _2a = $a(); //#10325 + $k[$j++] = Infinity; //#10326 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10326 + $k[$j++] = 0; //#10326 + } //#10326 + var _2e = $a(); //#10326 + $k[$j++] = 'ren'; //#10329 + $k[$j++] = bwipp_renlinear; //#10329 + $k[$j++] = 'sbs'; //#10329 + $k[$j++] = _2V; //#10329 + $k[$j++] = 'bhs'; //#10329 + $k[$j++] = _2a; //#10329 + $k[$j++] = 'bbs'; //#10329 + $k[$j++] = _2e; //#10329 + if ($_.includetext) { //#10329 + $k[$j++] = 'txt'; //#10328 + $k[$j++] = $_.txt; //#10328 + } //#10328 + $k[$j++] = 'opt'; //#10330 + $k[$j++] = $_.options; //#10330 + var _2i = $d(); //#10330 + $k[$j++] = _2i; //#10333 + if (!$_.dontdraw) { //#10333 + bwipp_renlinear(); //#10333 + } //#10333 + $_ = Object.getPrototypeOf($_); //#10335 + $_ = Object.getPrototypeOf($_); //#10337 +} //bwipp_code2of5 function bwipp_industrial2of5() { - $_ = Object.create($_); //#10206 - $_.dontdraw = false; //#10209 - $k[$j++] = $_; //#10211 - bwipp_processoptions(); //#10211 - $_.options = $k[--$j]; //#10211 - $_.barcode = $k[--$j]; //#10212 - $put($_.options, "dontdraw", true); //#10215 - $put($_.options, "version", "industrial"); //#10216 - $k[$j++] = 'args'; //#10218 - $k[$j++] = $_.barcode; //#10218 - $k[$j++] = $_.options; //#10218 - bwipp_code2of5(); //#10218 - var _6 = $k[--$j]; //#10218 - $_[$k[--$j]] = _6; //#10218 - $put($_.args, "opt", $_.options); //#10220 - $k[$j++] = $_.args; //#10223 - if (!$_.dontdraw) { //#10223 - bwipp_renlinear(); //#10223 - } //#10223 - $_ = Object.getPrototypeOf($_); //#10225 -} - + $_ = Object.create($_); //#10366 + $_.dontdraw = false; //#10369 + $k[$j++] = $_; //#10371 + bwipp_processoptions(); //#10371 + $_.options = $k[--$j]; //#10371 + $_.barcode = $k[--$j]; //#10372 + $put($_.options, "dontdraw", true); //#10375 + $put($_.options, "version", "industrial"); //#10376 + $k[$j++] = 'args'; //#10378 + $k[$j++] = $_.barcode; //#10378 + $k[$j++] = $_.options; //#10378 + bwipp_code2of5(); //#10378 + var _6 = $k[--$j]; //#10378 + $_[$k[--$j]] = _6; //#10378 + $put($_.args, "opt", $_.options); //#10380 + $k[$j++] = $_.args; //#10383 + if (!$_.dontdraw) { //#10383 + bwipp_renlinear(); //#10383 + } //#10383 + $_ = Object.getPrototypeOf($_); //#10385 +} //bwipp_industrial2of5 function bwipp_iata2of5() { - $_ = Object.create($_); //#10254 - $_.dontdraw = false; //#10257 - $k[$j++] = $_; //#10259 - bwipp_processoptions(); //#10259 - $_.options = $k[--$j]; //#10259 - $_.barcode = $k[--$j]; //#10260 - $put($_.options, "dontdraw", true); //#10263 - $put($_.options, "version", "iata"); //#10264 - $k[$j++] = 'args'; //#10266 - $k[$j++] = $_.barcode; //#10266 - $k[$j++] = $_.options; //#10266 - bwipp_code2of5(); //#10266 - var _6 = $k[--$j]; //#10266 - $_[$k[--$j]] = _6; //#10266 - $put($_.args, "opt", $_.options); //#10268 - $k[$j++] = $_.args; //#10271 - if (!$_.dontdraw) { //#10271 - bwipp_renlinear(); //#10271 - } //#10271 - $_ = Object.getPrototypeOf($_); //#10273 -} - + $_ = Object.create($_); //#10414 + $_.dontdraw = false; //#10417 + $k[$j++] = $_; //#10419 + bwipp_processoptions(); //#10419 + $_.options = $k[--$j]; //#10419 + $_.barcode = $k[--$j]; //#10420 + $put($_.options, "dontdraw", true); //#10423 + $put($_.options, "version", "iata"); //#10424 + $k[$j++] = 'args'; //#10426 + $k[$j++] = $_.barcode; //#10426 + $k[$j++] = $_.options; //#10426 + bwipp_code2of5(); //#10426 + var _6 = $k[--$j]; //#10426 + $_[$k[--$j]] = _6; //#10426 + $put($_.args, "opt", $_.options); //#10428 + $k[$j++] = $_.args; //#10431 + if (!$_.dontdraw) { //#10431 + bwipp_renlinear(); //#10431 + } //#10431 + $_ = Object.getPrototypeOf($_); //#10433 +} //bwipp_iata2of5 function bwipp_matrix2of5() { - $_ = Object.create($_); //#10302 - $_.dontdraw = false; //#10305 - $k[$j++] = $_; //#10307 - bwipp_processoptions(); //#10307 - $_.options = $k[--$j]; //#10307 - $_.barcode = $k[--$j]; //#10308 - $put($_.options, "dontdraw", true); //#10311 - $put($_.options, "version", "matrix"); //#10312 - $k[$j++] = 'args'; //#10314 - $k[$j++] = $_.barcode; //#10314 - $k[$j++] = $_.options; //#10314 - bwipp_code2of5(); //#10314 - var _6 = $k[--$j]; //#10314 - $_[$k[--$j]] = _6; //#10314 - $put($_.args, "opt", $_.options); //#10316 - $k[$j++] = $_.args; //#10319 - if (!$_.dontdraw) { //#10319 - bwipp_renlinear(); //#10319 - } //#10319 - $_ = Object.getPrototypeOf($_); //#10321 -} - + $_ = Object.create($_); //#10462 + $_.dontdraw = false; //#10465 + $k[$j++] = $_; //#10467 + bwipp_processoptions(); //#10467 + $_.options = $k[--$j]; //#10467 + $_.barcode = $k[--$j]; //#10468 + $put($_.options, "dontdraw", true); //#10471 + $put($_.options, "version", "matrix"); //#10472 + $k[$j++] = 'args'; //#10474 + $k[$j++] = $_.barcode; //#10474 + $k[$j++] = $_.options; //#10474 + bwipp_code2of5(); //#10474 + var _6 = $k[--$j]; //#10474 + $_[$k[--$j]] = _6; //#10474 + $put($_.args, "opt", $_.options); //#10476 + $k[$j++] = $_.args; //#10479 + if (!$_.dontdraw) { //#10479 + bwipp_renlinear(); //#10479 + } //#10479 + $_ = Object.getPrototypeOf($_); //#10481 +} //bwipp_matrix2of5 function bwipp_coop2of5() { - $_ = Object.create($_); //#10350 - $_.dontdraw = false; //#10353 - $k[$j++] = $_; //#10355 - bwipp_processoptions(); //#10355 - $_.options = $k[--$j]; //#10355 - $_.barcode = $k[--$j]; //#10356 - $put($_.options, "dontdraw", true); //#10359 - $put($_.options, "version", "coop"); //#10360 - $k[$j++] = 'args'; //#10362 - $k[$j++] = $_.barcode; //#10362 - $k[$j++] = $_.options; //#10362 - bwipp_code2of5(); //#10362 - var _6 = $k[--$j]; //#10362 - $_[$k[--$j]] = _6; //#10362 - $put($_.args, "opt", $_.options); //#10364 - $k[$j++] = $_.args; //#10367 - if (!$_.dontdraw) { //#10367 - bwipp_renlinear(); //#10367 - } //#10367 - $_ = Object.getPrototypeOf($_); //#10369 -} - + $_ = Object.create($_); //#10510 + $_.dontdraw = false; //#10513 + $k[$j++] = $_; //#10515 + bwipp_processoptions(); //#10515 + $_.options = $k[--$j]; //#10515 + $_.barcode = $k[--$j]; //#10516 + $put($_.options, "dontdraw", true); //#10519 + $put($_.options, "version", "coop"); //#10520 + $k[$j++] = 'args'; //#10522 + $k[$j++] = $_.barcode; //#10522 + $k[$j++] = $_.options; //#10522 + bwipp_code2of5(); //#10522 + var _6 = $k[--$j]; //#10522 + $_[$k[--$j]] = _6; //#10522 + $put($_.args, "opt", $_.options); //#10524 + $k[$j++] = $_.args; //#10527 + if (!$_.dontdraw) { //#10527 + bwipp_renlinear(); //#10527 + } //#10527 + $_ = Object.getPrototypeOf($_); //#10529 +} //bwipp_coop2of5 function bwipp_datalogic2of5() { - $_ = Object.create($_); //#10398 - $_.dontdraw = false; //#10401 - $k[$j++] = $_; //#10403 - bwipp_processoptions(); //#10403 - $_.options = $k[--$j]; //#10403 - $_.barcode = $k[--$j]; //#10404 - $put($_.options, "dontdraw", true); //#10407 - $put($_.options, "version", "datalogic"); //#10408 - $k[$j++] = 'args'; //#10410 - $k[$j++] = $_.barcode; //#10410 - $k[$j++] = $_.options; //#10410 - bwipp_code2of5(); //#10410 - var _6 = $k[--$j]; //#10410 - $_[$k[--$j]] = _6; //#10410 - $put($_.args, "opt", $_.options); //#10412 - $k[$j++] = $_.args; //#10415 - if (!$_.dontdraw) { //#10415 - bwipp_renlinear(); //#10415 - } //#10415 - $_ = Object.getPrototypeOf($_); //#10417 -} - + $_ = Object.create($_); //#10558 + $_.dontdraw = false; //#10561 + $k[$j++] = $_; //#10563 + bwipp_processoptions(); //#10563 + $_.options = $k[--$j]; //#10563 + $_.barcode = $k[--$j]; //#10564 + $put($_.options, "dontdraw", true); //#10567 + $put($_.options, "version", "datalogic"); //#10568 + $k[$j++] = 'args'; //#10570 + $k[$j++] = $_.barcode; //#10570 + $k[$j++] = $_.options; //#10570 + bwipp_code2of5(); //#10570 + var _6 = $k[--$j]; //#10570 + $_[$k[--$j]] = _6; //#10570 + $put($_.args, "opt", $_.options); //#10572 + $k[$j++] = $_.args; //#10575 + if (!$_.dontdraw) { //#10575 + bwipp_renlinear(); //#10575 + } //#10575 + $_ = Object.getPrototypeOf($_); //#10577 +} //bwipp_datalogic2of5 function bwipp_code11() { - $_ = Object.create($_); //#10447 - $_.dontdraw = false; //#10450 - $_.includecheck = false; //#10451 - $_.validatecheck = false; //#10452 - $_.includetext = false; //#10453 - $_.includecheckintext = false; //#10454 - $_.textfont = "OCR-B"; //#10455 - $_.textsize = 10; //#10456 - $_.textyoffset = -8; //#10457 - $_.height = 1; //#10458 - $k[$j++] = $_; //#10460 - bwipp_processoptions(); //#10460 - $_.options = $k[--$j]; //#10460 - var _1 = $k[--$j]; //#10461 - $_.barcode = _1; //#10461 - bwipp_loadctx(bwipp_code11) //#10463 - if (!bwipp_code11.__10477__) { //#10477 - $_ = Object.create($_); //#10477 - $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10471 - $_.barchars = "0123456789-"; //#10474 - $_.charvals = new Map; //#10475 - for (var _3 = 0; _3 <= 10; _3 += 1) { //#10476 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10476 - } //#10476 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10476 - bwipp_code11.__10477__ = 1; //#10476 - $_ = Object.getPrototypeOf($_); //#10476 - } //#10476 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10484 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10481 - if (!_E) { //#10483 - $k[$j++] = 'bwipp.code11badCharacter#10482'; //#10482 - $k[$j++] = "Code 11 must contain only digits and dashes"; //#10482 - bwipp_raiseerror(); //#10482 - } //#10482 - } //#10482 - $_.barlen = $_.barcode.length; //#10486 - if ($_.validatecheck) { //#10492 - if ($_.barlen == 11) { //#10490 - $k[$j++] = 'bwipp.code11badLength#10489'; //#10489 - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10489 - bwipp_raiseerror(); //#10489 - } //#10489 - var _K = ($_.barlen <= 10) ? 1 : 2; //#10491 - $_.barlen = $_.barlen - _K; //#10491 - } //#10491 - $k[$j++] = 'numchecks'; //#10494 - if ($_.includecheck || $_.validatecheck) { //#10494 - var _O = ($_.barlen >= 10) ? 2 : 1; //#10494 - $k[$j++] = _O; //#10494 - } else { //#10494 - $k[$j++] = 0; //#10494 - } //#10494 - var _P = $k[--$j]; //#10494 - $_[$k[--$j]] = _P; //#10494 - $_.checksum1 = 0; //#10495 - $_.checksum2 = 0; //#10495 - for (var _T = 0, _S = $_.barlen - 1; _T <= _S; _T += 1) { //#10501 - $_.i = _T; //#10497 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10498 - $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10499 - $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10500 - } //#10500 - $_.checksum1 = $_.checksum1 % 11; //#10502 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10503 - if ($_.validatecheck) { //#10517 - if ($_.numchecks == 1) { //#10512 - var _r = $get($_.barchars, $_.checksum1); //#10506 - if ($get($_.barcode, $_.barlen) != _r) { //#10508 - $k[$j++] = 'bwipp.code11badCheckDigit#10507'; //#10507 - $k[$j++] = "Incorrect Code 11 check digit provided"; //#10507 - bwipp_raiseerror(); //#10507 - } //#10507 - } else { //#10512 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10513 - $k[$j++] = 'bwipp.code11badCheckDigits#10512'; //#10512 - $k[$j++] = "Incorrect Code 11 check digits provided"; //#10512 - bwipp_raiseerror(); //#10512 - } //#10512 - } //#10512 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10515 - $_.includecheck = true; //#10516 - } //#10516 - $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10519 - $_.txt = $a($f($_.barlen + $_.numchecks)); //#10520 - $puti($_.sbs, 0, $get($_.encs, 11)); //#10523 - $_.xpos = 8; //#10525 - for (var _1I = 0, _1H = $_.barlen - 1; _1I <= _1H; _1I += 1) { //#10535 - $_.i = _1I; //#10527 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10528 - $_.enc = $get($_.encs, $_.indx); //#10529 - $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10530 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10531 - for (var _1e = 0; _1e <= 5; _1e += 1) { //#10534 - $_.xpos = $f($f($get($_.enc, _1e) - 48) + $_.xpos); //#10533 - } //#10533 - } //#10533 - if ($_.includecheck) { //#10564 - if ($_.barlen >= 10) { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10540 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10541 - if ($_.includecheckintext) { //#10551 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10543 - $_.enc = $get($_.encs, $_.checksum1); //#10544 - for (var _28 = 0; _28 <= 5; _28 += 1) { //#10547 - $_.xpos = $f($f($get($_.enc, _28) - 48) + $_.xpos); //#10546 - } //#10546 - $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10548 - } else { //#10551 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10550 - $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10551 - } //#10551 - $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10553 - } else { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10555 - if ($_.includecheckintext) { //#10559 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10557 - } else { //#10559 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10559 - } //#10559 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10561 - } //#10561 - } else { //#10564 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10564 - } //#10564 - $k[$j++] = Infinity; //#10576 - $k[$j++] = Infinity; //#10570 - var _39 = $_.sbs; //#10570 - for (var _3A = 0, _3B = _39.length; _3A < _3B; _3A++) { //#10570 - $k[$j++] = $get(_39, _3A) - 48; //#10570 - } //#10570 - var _3D = $a(); //#10570 - $k[$j++] = Infinity; //#10571 - for (var _3F = 0, _3G = ~~(($_.sbs.length + 1) / 2); _3F < _3G; _3F++) { //#10571 - $k[$j++] = $_.height; //#10571 - } //#10571 - var _3I = $a(); //#10571 - $k[$j++] = Infinity; //#10572 - for (var _3K = 0, _3L = ~~(($_.sbs.length + 1) / 2); _3K < _3L; _3K++) { //#10572 - $k[$j++] = 0; //#10572 - } //#10572 - var _3M = $a(); //#10572 - $k[$j++] = 'ren'; //#10575 - $k[$j++] = bwipp_renlinear; //#10575 - $k[$j++] = 'sbs'; //#10575 - $k[$j++] = _3D; //#10575 - $k[$j++] = 'bhs'; //#10575 - $k[$j++] = _3I; //#10575 - $k[$j++] = 'bbs'; //#10575 - $k[$j++] = _3M; //#10575 - if ($_.includetext) { //#10575 - $k[$j++] = 'txt'; //#10574 - $k[$j++] = $_.txt; //#10574 - } //#10574 - $k[$j++] = 'opt'; //#10576 - $k[$j++] = $_.options; //#10576 - var _3Q = $d(); //#10576 - $k[$j++] = _3Q; //#10579 - if (!$_.dontdraw) { //#10579 - bwipp_renlinear(); //#10579 - } //#10579 - $_ = Object.getPrototypeOf($_); //#10581 - $_ = Object.getPrototypeOf($_); //#10583 -} - -function bwipp_bc412() { - $_ = Object.create($_); //#10613 - $_.dontdraw = false; //#10616 - $_.includecheck = false; //#10617 - $_.validatecheck = false; //#10618 - $_.includetext = false; //#10619 - $_.includecheckintext = false; //#10620 - $_.includestartstop = false; //#10621 - $_.semi = false; //#10622 - $_.textfont = "OCR-B"; //#10623 - $_.textsize = 10; //#10624 - $_.textyoffset = -8; //#10625 - $_.height = 1; //#10626 - $k[$j++] = $_; //#10628 - bwipp_processoptions(); //#10628 - $_.options = $k[--$j]; //#10628 - $_.barcode = $k[--$j]; //#10629 - if ($_.semi) { //#10634 - $_.includestartstop = true; //#10633 - } //#10633 - bwipp_loadctx(bwipp_bc412) //#10636 - if (!bwipp_bc412.__10643__) { //#10643 - $_ = Object.create($_); //#10643 - $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10640 - $_.charvals = new Map; //#10641 - for (var _3 = 0; _3 <= 34; _3 += 1) { //#10642 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10642 - } //#10642 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10642 - bwipp_bc412.__10643__ = 1; //#10642 - $_ = Object.getPrototypeOf($_); //#10642 - } //#10642 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10650 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10647 - if (!_E) { //#10649 - $k[$j++] = 'bwipp.bc412badCharacter#10648'; //#10648 - $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10648 - bwipp_raiseerror(); //#10648 - } //#10648 - } //#10648 - if ($_.semi) { //#10706 - if ($_.validatecheck) { //#10660 - if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10657 - $k[$j++] = 'bwipp.bc412semivalidateBadLength#10656'; //#10656 - $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10656 - bwipp_raiseerror(); //#10656 - } //#10656 - } else { //#10660 - if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10661 - $k[$j++] = 'bwipp.bc412semiBadLength#10660'; //#10660 - $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10660 - bwipp_raiseerror(); //#10660 - } //#10660 - } //#10660 - $_.barlen = $_.barcode.length; //#10664 - if (!$_.validatecheck) { //#10672 - $_.barlen = $_.barlen + 1; //#10666 - $_.sbarcode = $s($_.barlen); //#10667 - $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10668 - $put($_.sbarcode, 1, 48); //#10669 - $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10670 - $_.barcode = $_.sbarcode; //#10671 - } //#10671 - $_.sumodd = 0; //#10673 - $_.sumeven = 0; //#10673 - for (var _b = 0, _a = $_.barlen - 1; _b <= _a; _b += 1) { //#10682 - $_.i = _b; //#10675 - $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10681 - if (($_.i % 2) == 0) { //#10680 - $_.sumodd = $f($k[--$j] + $_.sumodd); //#10678 - } else { //#10680 - $_.sumeven = $f($k[--$j] + $_.sumeven); //#10680 - } //#10680 - } //#10680 - $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10683 - if ($_.validatecheck) { //#10690 - if ($_.checksum != 0) { //#10687 - $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10686'; //#10686 - $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10686 - bwipp_raiseerror(); //#10686 - } //#10686 - } else { //#10690 - $_.checksum = ($_.checksum * 17) % 35; //#10689 - $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10690 - } //#10690 - } else { //#10706 - $k[$j++] = 'barlen'; //#10693 - $k[$j++] = $_.barcode.length; //#10693 - if ($_.validatecheck) { //#10693 - var _x = $k[--$j]; //#10693 - $k[$j++] = $f(_x - 1); //#10693 - } //#10693 - var _y = $k[--$j]; //#10693 - $_[$k[--$j]] = _y; //#10693 - $_.checksum = 0; //#10695 - for (var _12 = 0, _11 = $_.barlen - 1; _12 <= _11; _12 += 1) { //#10699 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _12, 1)) + $_.checksum); //#10698 - } //#10698 - $_.checksum = $_.checksum % 35; //#10700 - if ($_.validatecheck) { //#10707 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10704 - $k[$j++] = 'bwipp.bc412badCheckDigit#10703'; //#10703 - $k[$j++] = "Incorrect BC412 check digit provided"; //#10703 - bwipp_raiseerror(); //#10703 - } //#10703 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10705 - $_.includecheck = true; //#10706 - } //#10706 - } //#10706 - if (!bwipp_bc412.__10722__) { //#10722 - $_ = Object.create($_); //#10722 - $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10721 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10721 - bwipp_bc412.__10722__ = 1; //#10721 - $_ = Object.getPrototypeOf($_); //#10721 - } //#10721 - $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10724 + $_ = Object.create($_); //#10607 + $_.dontdraw = false; //#10610 + $_.includecheck = false; //#10611 + $_.validatecheck = false; //#10612 + $_.includetext = false; //#10613 + $_.includecheckintext = false; //#10614 + $_.textfont = "OCR-B"; //#10615 + $_.textsize = 10; //#10616 + $_.textyoffset = -8; //#10617 + $_.height = 1; //#10618 + $k[$j++] = $_; //#10620 + bwipp_processoptions(); //#10620 + $_.options = $k[--$j]; //#10620 + $_.barcode = $k[--$j]; //#10621 + if ($eq($_.barcode, "")) { //#10625 + $k[$j++] = 'bwipp.code11emptyData#10624'; //#10624 + $k[$j++] = "The data must not be empty"; //#10624 + bwipp_raiseerror(); //#10624 + } //#10624 + bwipp_loadctx(bwipp_code11) //#10627 + if (!bwipp_code11.__10641__) { //#10641 + $_ = Object.create($_); //#10641 + $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10635 + $_.barchars = "0123456789-"; //#10638 + $_.charvals = new Map; //#10639 + for (var _4 = 0; _4 <= 10; _4 += 1) { //#10640 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10640 + } //#10640 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10640 + bwipp_code11.__10641__ = 1; //#10640 + $_ = Object.getPrototypeOf($_); //#10640 + } //#10640 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10648 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10645 + if (!_F) { //#10647 + $k[$j++] = 'bwipp.code11badCharacter#10646'; //#10646 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#10646 + bwipp_raiseerror(); //#10646 + } //#10646 + } //#10646 + $_.barlen = $_.barcode.length; //#10650 + if ($_.validatecheck) { //#10656 + if ($_.barlen == 11) { //#10654 + $k[$j++] = 'bwipp.code11badLength#10653'; //#10653 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10653 + bwipp_raiseerror(); //#10653 + } //#10653 + var _L = ($_.barlen <= 10) ? 1 : 2; //#10655 + $_.barlen = $_.barlen - _L; //#10655 + } //#10655 + $k[$j++] = 'numchecks'; //#10658 + if ($_.includecheck || $_.validatecheck) { //#10658 + var _P = ($_.barlen >= 10) ? 2 : 1; //#10658 + $k[$j++] = _P; //#10658 + } else { //#10658 + $k[$j++] = 0; //#10658 + } //#10658 + var _Q = $k[--$j]; //#10658 + $_[$k[--$j]] = _Q; //#10658 + $_.checksum1 = 0; //#10659 + $_.checksum2 = 0; //#10659 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10665 + $_.i = _U; //#10661 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10662 + $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10663 + $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10664 + } //#10664 + $_.checksum1 = $_.checksum1 % 11; //#10666 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10667 + if ($_.validatecheck) { //#10681 + if ($_.numchecks == 1) { //#10676 + var _r = $_.checksum1; //#10670 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, _r)) { //#10672 + $k[$j++] = 'bwipp.code11badCheckDigit#10671'; //#10671 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#10671 + bwipp_raiseerror(); //#10671 + } //#10671 + } else { //#10676 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10677 + $k[$j++] = 'bwipp.code11badCheckDigits#10676'; //#10676 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#10676 + bwipp_raiseerror(); //#10676 + } //#10676 + } //#10676 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10679 + $_.includecheck = true; //#10680 + } //#10680 + $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10683 + $_.txt = $a($f($_.barlen + $_.numchecks)); //#10684 + $puti($_.sbs, 0, $get($_.encs, 11)); //#10687 + $_.xpos = 8; //#10689 + for (var _1J = 0, _1I = $_.barlen - 1; _1J <= _1I; _1J += 1) { //#10699 + $_.i = _1J; //#10691 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10692 + $_.enc = $get($_.encs, $_.indx); //#10693 + $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10694 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10695 + for (var _1f = 0; _1f <= 5; _1f += 1) { //#10698 + $_.xpos = $f($f($get($_.enc, _1f) - 48) + $_.xpos); //#10697 + } //#10697 + } //#10697 if ($_.includecheck) { //#10728 - $_.txt = $a($_.barlen + 1); //#10726 + if ($_.barlen >= 10) { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10704 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10705 + if ($_.includecheckintext) { //#10715 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10707 + $_.enc = $get($_.encs, $_.checksum1); //#10708 + for (var _29 = 0; _29 <= 5; _29 += 1) { //#10711 + $_.xpos = $f($f($get($_.enc, _29) - 48) + $_.xpos); //#10710 + } //#10710 + $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10712 + } else { //#10715 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10714 + $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10715 + } //#10715 + $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10717 + } else { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10719 + if ($_.includecheckintext) { //#10723 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10721 + } else { //#10723 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10723 + } //#10723 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10725 + } //#10725 } else { //#10728 - $_.txt = $a($_.barlen); //#10728 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10728 } //#10728 - if ($_.includestartstop) { //#10738 - $puti($_.sbs, 0, $get($_.encs, 35)); //#10733 - $_.pos = 2; //#10734 - $_.txtpos = 3; //#10735 - } else { //#10738 - $_.pos = 0; //#10737 - $_.txtpos = 0; //#10738 + $k[$j++] = Infinity; //#10732 + $k[$j++] = Infinity; //#10734 + var _3A = $_.sbs; //#10734 + for (var _3B = 0, _3C = _3A.length; _3B < _3C; _3B++) { //#10734 + $k[$j++] = $get(_3A, _3B) - 48; //#10734 + } //#10734 + var _3E = $a(); //#10734 + $k[$j++] = Infinity; //#10735 + for (var _3G = 0, _3H = ~~(($_.sbs.length + 1) / 2); _3G < _3H; _3G++) { //#10735 + $k[$j++] = $_.height; //#10735 + } //#10735 + var _3J = $a(); //#10735 + $k[$j++] = Infinity; //#10736 + for (var _3L = 0, _3M = ~~(($_.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#10736 + $k[$j++] = 0; //#10736 + } //#10736 + var _3N = $a(); //#10736 + $k[$j++] = 'ren'; //#10739 + $k[$j++] = bwipp_renlinear; //#10739 + $k[$j++] = 'sbs'; //#10739 + $k[$j++] = _3E; //#10739 + $k[$j++] = 'bhs'; //#10739 + $k[$j++] = _3J; //#10739 + $k[$j++] = 'bbs'; //#10739 + $k[$j++] = _3N; //#10739 + if ($_.includetext) { //#10739 + $k[$j++] = 'txt'; //#10738 + $k[$j++] = $_.txt; //#10738 } //#10738 - for (var _1Y = 0, _1X = $_.barlen - 1; _1Y <= _1X; _1Y += 1) { //#10747 - $_.i = _1Y; //#10742 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10743 - $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10744 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10745 - $_.pos = $_.pos + 8; //#10746 - } //#10746 - if ($_.includecheck) { //#10758 - $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10751 - if ($_.includecheckintext) { //#10755 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10753 - } else { //#10755 - $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10755 - } //#10755 - $_.pos = $_.pos + 8; //#10757 - } //#10757 - if ($_.includestartstop) { //#10764 - $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10762 - $_.pos = $_.pos + 3; //#10763 - } //#10763 - $_.sbs = $geti($_.sbs, 0, $_.pos); //#10767 - $k[$j++] = Infinity; //#10776 - $k[$j++] = Infinity; //#10770 - var _2V = $_.sbs; //#10770 - for (var _2W = 0, _2X = _2V.length; _2W < _2X; _2W++) { //#10770 - $k[$j++] = $f($get(_2V, _2W) - 48); //#10770 - } //#10770 - var _2Z = $a(); //#10770 - $k[$j++] = Infinity; //#10771 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10771 - $k[$j++] = $_.height; //#10771 - } //#10771 - var _2e = $a(); //#10771 - $k[$j++] = Infinity; //#10772 - for (var _2g = 0, _2h = ~~(($_.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#10772 - $k[$j++] = 0; //#10772 - } //#10772 - var _2i = $a(); //#10772 - $k[$j++] = 'ren'; //#10775 - $k[$j++] = bwipp_renlinear; //#10775 - $k[$j++] = 'sbs'; //#10775 - $k[$j++] = _2Z; //#10775 - $k[$j++] = 'bhs'; //#10775 - $k[$j++] = _2e; //#10775 - $k[$j++] = 'bbs'; //#10775 - $k[$j++] = _2i; //#10775 - if ($_.includetext) { //#10775 - $k[$j++] = 'txt'; //#10774 - $k[$j++] = $_.txt; //#10774 - } //#10774 - $k[$j++] = 'opt'; //#10776 - $k[$j++] = $_.options; //#10776 - var _2m = $d(); //#10776 - $k[$j++] = _2m; //#10779 - if (!$_.dontdraw) { //#10779 - bwipp_renlinear(); //#10779 - } //#10779 - $_ = Object.getPrototypeOf($_); //#10781 - $_ = Object.getPrototypeOf($_); //#10783 -} - -function bwipp_rationalizedCodabar() { - $_ = Object.create($_); //#10813 - $_.dontdraw = false; //#10816 - $_.altstartstop = false; //#10817 - $_.includecheck = false; //#10818 - $_.validatecheck = false; //#10819 - $_.includetext = false; //#10820 - $_.includecheckintext = false; //#10821 - $_.textfont = "OCR-B"; //#10822 - $_.textsize = 10; //#10823 - $_.textyoffset = -8; //#10824 - $_.height = 1; //#10825 - $k[$j++] = $_; //#10827 - bwipp_processoptions(); //#10827 - $_.options = $k[--$j]; //#10827 - var _1 = $k[--$j]; //#10828 - $_.barcode = _1; //#10828 - bwipp_loadctx(bwipp_rationalizedCodabar) //#10830 - if (!bwipp_rationalizedCodabar.__10844__) { //#10844 - $_ = Object.create($_); //#10844 - $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#10839 - $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#10842 - $_.barcharsalt = "0123456789-$:/.+TN*E"; //#10843 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#10843 - bwipp_rationalizedCodabar.__10844__ = 1; //#10843 - $_ = Object.getPrototypeOf($_); //#10843 - } //#10843 - var _5 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#10846 - $_.barchars = _5; //#10846 - $_.charvals = new Map; //#10848 - for (var _6 = 0; _6 <= 19; _6 += 1) { //#10849 - $put($_.charvals, $geti($_.barchars, _6, 1), _6); //#10849 - } //#10849 - $_.bodyvals = new Map; //#10850 - for (var _A = 0; _A <= 15; _A += 1) { //#10851 - $put($_.bodyvals, $geti($_.barchars, _A, 1), _A); //#10851 - } //#10851 - $_.ssvals = new Map; //#10852 - for (var _E = 16; _E <= 19; _E += 1) { //#10853 - $put($_.ssvals, $geti($_.barchars, _E, 1), _E); //#10853 - } //#10853 - var _L = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#10856 - var _Q = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#10857 - if ((!_L) || (!_Q)) { //#10863 - if ($_.altstartstop) { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#10859'; //#10859 - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#10859 - bwipp_raiseerror(); //#10859 - } else { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#10861'; //#10861 - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#10861 - bwipp_raiseerror(); //#10861 + $k[$j++] = 'opt'; //#10740 + $k[$j++] = $_.options; //#10740 + var _3R = $d(); //#10740 + $k[$j++] = _3R; //#10743 + if (!$_.dontdraw) { //#10743 + bwipp_renlinear(); //#10743 + } //#10743 + $_ = Object.getPrototypeOf($_); //#10745 + $_ = Object.getPrototypeOf($_); //#10747 +} //bwipp_code11 +function bwipp_bc412() { + $_ = Object.create($_); //#10777 + $_.dontdraw = false; //#10780 + $_.includecheck = false; //#10781 + $_.validatecheck = false; //#10782 + $_.includetext = false; //#10783 + $_.includecheckintext = false; //#10784 + $_.includestartstop = false; //#10785 + $_.semi = false; //#10786 + $_.textfont = "OCR-B"; //#10787 + $_.textsize = 10; //#10788 + $_.textyoffset = -8; //#10789 + $_.height = 1; //#10790 + $k[$j++] = $_; //#10792 + bwipp_processoptions(); //#10792 + $_.options = $k[--$j]; //#10792 + $_.barcode = $k[--$j]; //#10793 + if ($eq($_.barcode, "")) { //#10797 + $k[$j++] = 'bwipp.bc412emptyData#10796'; //#10796 + $k[$j++] = "The data must not be empty"; //#10796 + bwipp_raiseerror(); //#10796 + } //#10796 + if ($_.semi) { //#10802 + $_.includestartstop = true; //#10801 + } //#10801 + bwipp_loadctx(bwipp_bc412) //#10804 + if (!bwipp_bc412.__10811__) { //#10811 + $_ = Object.create($_); //#10811 + $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10808 + $_.charvals = new Map; //#10809 + for (var _4 = 0; _4 <= 34; _4 += 1) { //#10810 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10810 + } //#10810 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10810 + bwipp_bc412.__10811__ = 1; //#10810 + $_ = Object.getPrototypeOf($_); //#10810 + } //#10810 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10818 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10815 + if (!_F) { //#10817 + $k[$j++] = 'bwipp.bc412badCharacter#10816'; //#10816 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10816 + bwipp_raiseerror(); //#10816 + } //#10816 + } //#10816 + if ($_.semi) { //#10874 + if ($_.validatecheck) { //#10828 + if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10825 + $k[$j++] = 'bwipp.bc412semivalidateBadLength#10824'; //#10824 + $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10824 + bwipp_raiseerror(); //#10824 + } //#10824 + } else { //#10828 + if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10829 + $k[$j++] = 'bwipp.bc412semiBadLength#10828'; //#10828 + $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10828 + bwipp_raiseerror(); //#10828 + } //#10828 + } //#10828 + $_.barlen = $_.barcode.length; //#10832 + if (!$_.validatecheck) { //#10840 + $_.barlen = $_.barlen + 1; //#10834 + $_.sbarcode = $s($_.barlen); //#10835 + $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10836 + $put($_.sbarcode, 1, 48); //#10837 + $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10838 + $_.barcode = $_.sbarcode; //#10839 + } //#10839 + $_.sumodd = 0; //#10841 + $_.sumeven = 0; //#10841 + for (var _c = 0, _b = $_.barlen - 1; _c <= _b; _c += 1) { //#10850 + $_.i = _c; //#10843 + $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10849 + if (($_.i % 2) == 0) { //#10848 + $_.sumodd = $f($k[--$j] + $_.sumodd); //#10846 + } else { //#10848 + $_.sumeven = $f($k[--$j] + $_.sumeven); //#10848 + } //#10848 + } //#10848 + $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10851 + if ($_.validatecheck) { //#10858 + if ($_.checksum != 0) { //#10855 + $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10854'; //#10854 + $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10854 + bwipp_raiseerror(); //#10854 + } //#10854 + } else { //#10858 + $_.checksum = ($_.checksum * 17) % 35; //#10857 + $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10858 + } //#10858 + } else { //#10874 + $k[$j++] = 'barlen'; //#10861 + $k[$j++] = $_.barcode.length; //#10861 + if ($_.validatecheck) { //#10861 + var _y = $k[--$j]; //#10861 + $k[$j++] = $f(_y - 1); //#10861 } //#10861 - } //#10861 - for (var _U = 1, _T = $_.barcode.length - 2; _U <= _T; _U += 1) { //#10868 - var _Y = $get($_.bodyvals, $geti($_.barcode, _U, 1)) !== undefined; //#10865 - if (!_Y) { //#10867 - $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#10866'; //#10866 - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#10866 - bwipp_raiseerror(); //#10866 + var _z = $k[--$j]; //#10861 + $_[$k[--$j]] = _z; //#10861 + $_.checksum = 0; //#10863 + for (var _13 = 0, _12 = $_.barlen - 1; _13 <= _12; _13 += 1) { //#10867 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _13, 1)) + $_.checksum); //#10866 } //#10866 - } //#10866 - $k[$j++] = 'barlen'; //#10870 - $k[$j++] = $_.barcode.length; //#10870 - if ($_.validatecheck) { //#10870 - var _b = $k[--$j]; //#10870 - $k[$j++] = $f(_b - 1); //#10870 - } //#10870 - var _c = $k[--$j]; //#10870 - $_[$k[--$j]] = _c; //#10870 - $_.checksum = 0; //#10872 - for (var _g = 0, _f = $f($_.barlen - 2); _g <= _f; _g += 1) { //#10876 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _g, 1)) + $_.checksum); //#10875 - } //#10875 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, $_.barcode.length - 1, 1)) + $_.checksum); //#10878 - $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#10879 - if ($_.validatecheck) { //#10889 - if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#10883 - $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#10882'; //#10882 - $k[$j++] = "Incorrect Codabar check digit provided"; //#10882 - bwipp_raiseerror(); //#10882 - } //#10882 - var _11 = $s($_.barlen); //#10884 - $puti(_11, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#10885 - $puti(_11, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#10886 - $_.barcode = _11; //#10887 - $_.includecheck = true; //#10888 - } //#10888 - $k[$j++] = 'sbs'; //#10891 - $k[$j++] = $_.barlen; //#10891 - if ($_.includecheck) { //#10891 - var _1B = $k[--$j]; //#10891 - $k[$j++] = $f(_1B + 1); //#10891 - } //#10891 - var _1D = $s($k[--$j] * 8); //#10891 - $_[$k[--$j]] = _1D; //#10891 - $k[$j++] = 'txt'; //#10892 - $k[$j++] = $_.barlen; //#10892 - if ($_.includecheck) { //#10892 - var _1H = $k[--$j]; //#10892 - $k[$j++] = $f(_1H + 1); //#10892 - } //#10892 - var _1J = $a($k[--$j]); //#10892 - $_[$k[--$j]] = _1J; //#10892 - $_.xpos = 0; //#10894 - for (var _1N = 0, _1M = $f($_.barlen - 2); _1N <= _1M; _1N += 1) { //#10904 - $_.i = _1N; //#10896 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10897 - $_.enc = $get($_.encs, $_.indx); //#10898 - $puti($_.sbs, $_.i * 8, $_.enc); //#10899 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10900 - for (var _1j = 0; _1j <= 7; _1j += 1) { //#10903 - $_.xpos = $f($f($get($_.enc, _1j) - 48) + $_.xpos); //#10902 - } //#10902 - } //#10902 - if ($_.includecheck) { //#10928 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#10909 - if ($_.includecheckintext) { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10911 - } else { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 - } //#10913 - for (var _2B = 0; _2B <= 7; _2B += 1) { //#10917 - $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2B) - 48) + $_.xpos); //#10916 - } //#10916 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10919 - $_.enc = $get($_.encs, $_.indx); //#10920 - $puti($_.sbs, $_.barlen * 8, $_.enc); //#10921 - $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10922 - } else { //#10928 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10925 - $_.enc = $get($_.encs, $_.indx); //#10926 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#10927 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10928 - } //#10928 - $k[$j++] = Infinity; //#10940 - $k[$j++] = Infinity; //#10934 - $forall($_.sbs, function() { //#10934 - var _2y = $k[--$j]; //#10934 - $k[$j++] = $f(_2y - 48); //#10934 - }); //#10934 - var _2z = $a(); //#10934 - $k[$j++] = Infinity; //#10935 - for (var _31 = 0, _32 = ~~(($_.sbs.length + 1) / 2); _31 < _32; _31++) { //#10935 - $k[$j++] = $_.height; //#10935 - } //#10935 - var _34 = $a(); //#10935 + $_.checksum = $_.checksum % 35; //#10868 + if ($_.validatecheck) { //#10875 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10872 + $k[$j++] = 'bwipp.bc412badCheckDigit#10871'; //#10871 + $k[$j++] = "Incorrect BC412 check digit provided"; //#10871 + bwipp_raiseerror(); //#10871 + } //#10871 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10873 + $_.includecheck = true; //#10874 + } //#10874 + } //#10874 + if (!bwipp_bc412.__10890__) { //#10890 + $_ = Object.create($_); //#10890 + $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10889 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10889 + bwipp_bc412.__10890__ = 1; //#10889 + $_ = Object.getPrototypeOf($_); //#10889 + } //#10889 + $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10892 + if ($_.includecheck) { //#10896 + $_.txt = $a($_.barlen + 1); //#10894 + } else { //#10896 + $_.txt = $a($_.barlen); //#10896 + } //#10896 + if ($_.includestartstop) { //#10906 + $puti($_.sbs, 0, $get($_.encs, 35)); //#10901 + $_.pos = 2; //#10902 + $_.txtpos = 3; //#10903 + } else { //#10906 + $_.pos = 0; //#10905 + $_.txtpos = 0; //#10906 + } //#10906 + for (var _1Z = 0, _1Y = $_.barlen - 1; _1Z <= _1Y; _1Z += 1) { //#10915 + $_.i = _1Z; //#10910 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10911 + $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10912 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 + $_.pos = $_.pos + 8; //#10914 + } //#10914 + if ($_.includecheck) { //#10926 + $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10919 + if ($_.includecheckintext) { //#10923 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10921 + } else { //#10923 + $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10923 + } //#10923 + $_.pos = $_.pos + 8; //#10925 + } //#10925 + if ($_.includestartstop) { //#10932 + $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10930 + $_.pos = $_.pos + 3; //#10931 + } //#10931 + $_.sbs = $geti($_.sbs, 0, $_.pos); //#10935 $k[$j++] = Infinity; //#10936 - for (var _36 = 0, _37 = ~~(($_.sbs.length + 1) / 2); _36 < _37; _36++) { //#10936 - $k[$j++] = 0; //#10936 - } //#10936 - var _38 = $a(); //#10936 - $k[$j++] = 'ren'; //#10939 - $k[$j++] = bwipp_renlinear; //#10939 - $k[$j++] = 'sbs'; //#10939 - $k[$j++] = _2z; //#10939 - $k[$j++] = 'bhs'; //#10939 - $k[$j++] = _34; //#10939 - $k[$j++] = 'bbs'; //#10939 - $k[$j++] = _38; //#10939 - if ($_.includetext) { //#10939 - $k[$j++] = 'txt'; //#10938 - $k[$j++] = $_.txt; //#10938 + $k[$j++] = Infinity; //#10938 + var _2W = $_.sbs; //#10938 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#10938 + $k[$j++] = $f($get(_2W, _2X) - 48); //#10938 } //#10938 - $k[$j++] = 'opt'; //#10940 - $k[$j++] = $_.options; //#10940 - var _3C = $d(); //#10940 - $k[$j++] = _3C; //#10943 - if (!$_.dontdraw) { //#10943 - bwipp_renlinear(); //#10943 - } //#10943 - $_ = Object.getPrototypeOf($_); //#10945 - $_ = Object.getPrototypeOf($_); //#10947 -} - + var _2a = $a(); //#10938 + $k[$j++] = Infinity; //#10939 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10939 + $k[$j++] = $_.height; //#10939 + } //#10939 + var _2f = $a(); //#10939 + $k[$j++] = Infinity; //#10940 + for (var _2h = 0, _2i = ~~(($_.sbs.length + 1) / 2); _2h < _2i; _2h++) { //#10940 + $k[$j++] = 0; //#10940 + } //#10940 + var _2j = $a(); //#10940 + $k[$j++] = 'ren'; //#10943 + $k[$j++] = bwipp_renlinear; //#10943 + $k[$j++] = 'sbs'; //#10943 + $k[$j++] = _2a; //#10943 + $k[$j++] = 'bhs'; //#10943 + $k[$j++] = _2f; //#10943 + $k[$j++] = 'bbs'; //#10943 + $k[$j++] = _2j; //#10943 + if ($_.includetext) { //#10943 + $k[$j++] = 'txt'; //#10942 + $k[$j++] = $_.txt; //#10942 + } //#10942 + $k[$j++] = 'opt'; //#10944 + $k[$j++] = $_.options; //#10944 + var _2n = $d(); //#10944 + $k[$j++] = _2n; //#10947 + if (!$_.dontdraw) { //#10947 + bwipp_renlinear(); //#10947 + } //#10947 + $_ = Object.getPrototypeOf($_); //#10949 + $_ = Object.getPrototypeOf($_); //#10951 +} //bwipp_bc412 +function bwipp_rationalizedCodabar() { + $_ = Object.create($_); //#10981 + $_.dontdraw = false; //#10984 + $_.altstartstop = false; //#10985 + $_.includecheck = false; //#10986 + $_.validatecheck = false; //#10987 + $_.includetext = false; //#10988 + $_.includecheckintext = false; //#10989 + $_.textfont = "OCR-B"; //#10990 + $_.textsize = 10; //#10991 + $_.textyoffset = -8; //#10992 + $_.height = 1; //#10993 + $k[$j++] = $_; //#10995 + bwipp_processoptions(); //#10995 + $_.options = $k[--$j]; //#10995 + $_.barcode = $k[--$j]; //#10996 + if (($_.barcode.length < 2) || (($_.barcode.length < 3) && $_.validatecheck)) { //#11000 + $k[$j++] = 'bwipp.rationalizedCodabarBadLength#10999'; //#10999 + $k[$j++] = "Codabar must be at least 2 characters in length excluding any check digit"; //#10999 + bwipp_raiseerror(); //#10999 + } //#10999 + bwipp_loadctx(bwipp_rationalizedCodabar) //#11002 + if (!bwipp_rationalizedCodabar.__11016__) { //#11016 + $_ = Object.create($_); //#11016 + $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#11011 + $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#11014 + $_.barcharsalt = "0123456789-$:/.+TN*E"; //#11015 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#11015 + bwipp_rationalizedCodabar.__11016__ = 1; //#11015 + $_ = Object.getPrototypeOf($_); //#11015 + } //#11015 + var _8 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#11018 + $_.barchars = _8; //#11018 + $_.charvals = new Map; //#11020 + for (var _9 = 0; _9 <= 19; _9 += 1) { //#11021 + $put($_.charvals, $geti($_.barchars, _9, 1), _9); //#11021 + } //#11021 + $_.bodyvals = new Map; //#11022 + for (var _D = 0; _D <= 15; _D += 1) { //#11023 + $put($_.bodyvals, $geti($_.barchars, _D, 1), _D); //#11023 + } //#11023 + $_.ssvals = new Map; //#11024 + for (var _H = 16; _H <= 19; _H += 1) { //#11025 + $put($_.ssvals, $geti($_.barchars, _H, 1), _H); //#11025 + } //#11025 + var _O = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#11028 + var _T = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#11029 + if ((!_O) || (!_T)) { //#11035 + if ($_.altstartstop) { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#11031'; //#11031 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#11031 + bwipp_raiseerror(); //#11031 + } else { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#11033'; //#11033 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#11033 + bwipp_raiseerror(); //#11033 + } //#11033 + } //#11033 + for (var _X = 1, _W = $_.barcode.length - 2; _X <= _W; _X += 1) { //#11040 + var _b = $get($_.bodyvals, $geti($_.barcode, _X, 1)) !== undefined; //#11037 + if (!_b) { //#11039 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#11038'; //#11038 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#11038 + bwipp_raiseerror(); //#11038 + } //#11038 + } //#11038 + $k[$j++] = 'barlen'; //#11042 + $k[$j++] = $_.barcode.length; //#11042 + if ($_.validatecheck) { //#11042 + var _e = $k[--$j]; //#11042 + $k[$j++] = $f(_e - 1); //#11042 + } //#11042 + var _f = $k[--$j]; //#11042 + $_[$k[--$j]] = _f; //#11042 + $_.checksum = 0; //#11044 + for (var _j = 0, _i = $f($_.barlen - 2); _j <= _i; _j += 1) { //#11048 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _j, 1)) + $_.checksum); //#11047 + } //#11047 + var _r = $geti($_.barcode, $_.barcode.length - 1, 1); //#11049 + $_.checksum = $f($get($_.charvals, _r) + $_.checksum); //#11050 + $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#11051 + if ($_.validatecheck) { //#11061 + if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#11055 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#11054'; //#11054 + $k[$j++] = "Incorrect Codabar check digit provided"; //#11054 + bwipp_raiseerror(); //#11054 + } //#11054 + var _14 = $s($_.barlen); //#11056 + $puti(_14, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#11057 + $puti(_14, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#11058 + $_.barcode = _14; //#11059 + $_.includecheck = true; //#11060 + } //#11060 + $k[$j++] = 'sbs'; //#11063 + $k[$j++] = $_.barlen; //#11063 + if ($_.includecheck) { //#11063 + var _1E = $k[--$j]; //#11063 + $k[$j++] = $f(_1E + 1); //#11063 + } //#11063 + var _1G = $s($k[--$j] * 8); //#11063 + $_[$k[--$j]] = _1G; //#11063 + $k[$j++] = 'txt'; //#11064 + $k[$j++] = $_.barlen; //#11064 + if ($_.includecheck) { //#11064 + var _1K = $k[--$j]; //#11064 + $k[$j++] = $f(_1K + 1); //#11064 + } //#11064 + var _1M = $a($k[--$j]); //#11064 + $_[$k[--$j]] = _1M; //#11064 + $_.xpos = 0; //#11066 + for (var _1Q = 0, _1P = $f($_.barlen - 2); _1Q <= _1P; _1Q += 1) { //#11076 + $_.i = _1Q; //#11068 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11069 + $_.enc = $get($_.encs, $_.indx); //#11070 + $puti($_.sbs, $_.i * 8, $_.enc); //#11071 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11072 + for (var _1m = 0; _1m <= 7; _1m += 1) { //#11075 + $_.xpos = $f($f($get($_.enc, _1m) - 48) + $_.xpos); //#11074 + } //#11074 + } //#11074 + if ($_.includecheck) { //#11100 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#11081 + if ($_.includecheckintext) { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11083 + } else { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11085 + } //#11085 + for (var _2E = 0; _2E <= 7; _2E += 1) { //#11089 + $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2E) - 48) + $_.xpos); //#11088 + } //#11088 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11091 + $_.enc = $get($_.encs, $_.indx); //#11092 + $puti($_.sbs, $_.barlen * 8, $_.enc); //#11093 + $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11094 + } else { //#11100 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11097 + $_.enc = $get($_.encs, $_.indx); //#11098 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#11099 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11100 + } //#11100 + $k[$j++] = Infinity; //#11104 + $k[$j++] = Infinity; //#11106 + $forall($_.sbs, function() { //#11106 + var _31 = $k[--$j]; //#11106 + $k[$j++] = $f(_31 - 48); //#11106 + }); //#11106 + var _32 = $a(); //#11106 + $k[$j++] = Infinity; //#11107 + for (var _34 = 0, _35 = ~~(($_.sbs.length + 1) / 2); _34 < _35; _34++) { //#11107 + $k[$j++] = $_.height; //#11107 + } //#11107 + var _37 = $a(); //#11107 + $k[$j++] = Infinity; //#11108 + for (var _39 = 0, _3A = ~~(($_.sbs.length + 1) / 2); _39 < _3A; _39++) { //#11108 + $k[$j++] = 0; //#11108 + } //#11108 + var _3B = $a(); //#11108 + $k[$j++] = 'ren'; //#11111 + $k[$j++] = bwipp_renlinear; //#11111 + $k[$j++] = 'sbs'; //#11111 + $k[$j++] = _32; //#11111 + $k[$j++] = 'bhs'; //#11111 + $k[$j++] = _37; //#11111 + $k[$j++] = 'bbs'; //#11111 + $k[$j++] = _3B; //#11111 + if ($_.includetext) { //#11111 + $k[$j++] = 'txt'; //#11110 + $k[$j++] = $_.txt; //#11110 + } //#11110 + $k[$j++] = 'opt'; //#11112 + $k[$j++] = $_.options; //#11112 + var _3F = $d(); //#11112 + $k[$j++] = _3F; //#11115 + if (!$_.dontdraw) { //#11115 + bwipp_renlinear(); //#11115 + } //#11115 + $_ = Object.getPrototypeOf($_); //#11117 + $_ = Object.getPrototypeOf($_); //#11119 +} //bwipp_rationalizedCodabar function bwipp_onecode() { - $_ = Object.create($_); //#10977 - $_.dontdraw = false; //#10980 - $_.height = 0.15; //#10981 - $k[$j++] = $_; //#10983 - bwipp_processoptions(); //#10983 - $_.options = $k[--$j]; //#10983 - $_.barcode = $k[--$j]; //#10984 - bwipp_loadctx(bwipp_onecode) //#10986 - $_.barlen = $_.barcode.length; //#10988 - $forall($_.barcode, function() { //#10994 - var _4 = $k[--$j]; //#10991 - if ((_4 < 48) || (_4 > 57)) { //#10993 - $k[$j++] = 'bwipp.onecodeBadCharacter#10992'; //#10992 - $k[$j++] = "The data must contain only digits"; //#10992 - bwipp_raiseerror(); //#10992 - } //#10992 - }); //#10992 - if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#10998 - $k[$j++] = 'bwipp.onecodeInvalidLength#10997'; //#10997 - $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#10997 - bwipp_raiseerror(); //#10997 - } //#10997 - $k[$j++] = Infinity; //#11007 - var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11004 - $k[$j++] = 2; //#11007 - $k[$j++] = 2; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 29; //#11007 - $k[$j++] = 29; //#11007 - $_.txtdict = $d(); //#11008 - $_.txt = $a($_.barlen + 6); //#11009 - $_.spacecnt = 0; //#11010 - for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11018 - $_.i = _H; //#11012 - var _K = $get($_.txtdict, $_.i) !== undefined; //#11013 - if (_K) { //#11016 - $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11014 - $_.spacecnt = $_.spacecnt + 1; //#11015 - } //#11015 - $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11017 - } //#11017 - $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11019 + $_ = Object.create($_); //#11149 + $_.dontdraw = false; //#11152 + $_.height = 0.15; //#11153 + $k[$j++] = $_; //#11155 + bwipp_processoptions(); //#11155 + $_.options = $k[--$j]; //#11155 + $_.barcode = $k[--$j]; //#11156 + bwipp_loadctx(bwipp_onecode) //#11158 + $_.barlen = $_.barcode.length; //#11160 + $forall($_.barcode, function() { //#11166 + var _4 = $k[--$j]; //#11163 + if ((_4 < 48) || (_4 > 57)) { //#11165 + $k[$j++] = 'bwipp.onecodeBadCharacter#11164'; //#11164 + $k[$j++] = "The data must contain only digits"; //#11164 + bwipp_raiseerror(); //#11164 + } //#11164 + }); //#11164 + if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#11170 + $k[$j++] = 'bwipp.onecodeInvalidLength#11169'; //#11169 + $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#11169 + bwipp_raiseerror(); //#11169 + } //#11169 + $k[$j++] = Infinity; //#11173 + var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11176 + $k[$j++] = 2; //#11179 + $k[$j++] = 2; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 29; //#11179 + $k[$j++] = 29; //#11179 + $_.txtdict = $d(); //#11180 + $_.txt = $a($_.barlen + 6); //#11181 + $_.spacecnt = 0; //#11182 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11190 + $_.i = _H; //#11184 + var _K = $get($_.txtdict, $_.i) !== undefined; //#11185 + if (_K) { //#11188 + $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11186 + $_.spacecnt = $_.spacecnt + 1; //#11187 + } //#11187 + $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11189 + } //#11189 + $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11191 $_.normalize = function() { - $_.base = $k[--$j]; //#11022 - $_.num = $k[--$j]; //#11023 - for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11028 - $_.i = _e; //#11025 - var _f = $_.num; //#11026 - var _g = $_.i; //#11026 - $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11026 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11027 - } //#11027 - for (;;) { //#11034 - if ($lt($get($_.num, 0), $_.base)) { //#11030 - break; //#11030 - } //#11030 - $k[$j++] = Infinity; //#11031 - $k[$j++] = 0; //#11031 - $aload($_.num); //#11031 - $_.num = $a(); //#11031 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11032 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#11033 - } //#11033 - $k[$j++] = Infinity; //#11036 - $_.i = true; //#11036 - var _17 = $_.num; //#11036 - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11036 - var _1A = $get(_17, _18); //#11036 - $k[$j++] = _1A; //#11036 - if ((_1A == 0) && $_.i) { //#11036 - $j--; //#11036 - } else { //#11036 - $_.i = false; //#11036 - } //#11036 - } //#11036 - $_.num = $a(); //#11036 - if ($_.num.length == 0) { //#11037 - $_.num = $a([0]); //#11037 - } //#11037 - $k[$j++] = $_.num; //#11038 - }; //#11038 + $_.base = $k[--$j]; //#11194 + $_.num = $k[--$j]; //#11195 + for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11200 + $_.i = _e; //#11197 + var _f = $_.num; //#11198 + var _g = $_.i; //#11198 + $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11198 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11199 + } //#11199 + for (;;) { //#11206 + if ($lt($get($_.num, 0), $_.base)) { //#11202 + break; //#11202 + } //#11202 + $k[$j++] = Infinity; //#11203 + $k[$j++] = 0; //#11203 + $aload($_.num); //#11203 + $_.num = $a(); //#11203 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11204 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#11205 + } //#11205 + $k[$j++] = Infinity; //#11208 + $_.i = true; //#11208 + var _17 = $_.num; //#11208 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11208 + var _1A = $get(_17, _18); //#11208 + $k[$j++] = _1A; //#11208 + if ((_1A == 0) && $_.i) { //#11208 + $j--; //#11208 + } else { //#11208 + $_.i = false; //#11208 + } //#11208 + } //#11208 + $_.num = $a(); //#11208 + if ($_.num.length == 0) { //#11209 + $_.num = $a([0]); //#11209 + } //#11209 + $k[$j++] = $_.num; //#11210 + }; //#11210 $_.bigadd = function() { - var _1G = $k[--$j]; //#11042 - var _1H = $k[--$j]; //#11042 - $_.offset = Math.abs(_1G.length - _1H.length); //#11043 - if (_1G.length < _1H.length) { //#11044 - var _ = _1G; //#11044 - _1G = _1H; //#11044 - _1H = _; //#11044 - } //#11044 - $_.a = _1G; //#11045 - $_.b = _1H; //#11045 - for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11048 - var _1L = $_.a; //#11047 - var _1M = $_.offset; //#11047 - $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11047 - } //#11047 - $k[$j++] = $_.a; //#11049 - }; //#11049 - if (!bwipp_onecode.__11060__) { //#11060 - $_ = Object.create($_); //#11060 + var _1G = $k[--$j]; //#11214 + var _1H = $k[--$j]; //#11214 + $_.offset = Math.abs(_1G.length - _1H.length); //#11215 + if (_1G.length < _1H.length) { //#11216 + var _ = _1G; //#11216 + _1G = _1H; //#11216 + _1H = _; //#11216 + } //#11216 + $_.a = _1G; //#11217 + $_.b = _1H; //#11217 + for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11220 + var _1L = $_.a; //#11219 + var _1M = $_.offset; //#11219 + $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11219 + } //#11219 + $k[$j++] = $_.a; //#11221 + }; //#11221 + if (!bwipp_onecode.__11232__) { //#11232 + $_ = Object.create($_); //#11232 var _1V = new Map([ [20, $a([0])], [25, $a([1])], [29, $a([1, 0, 0, 0, 0, 1])], [31, $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1])] - ]); //#11058 - $_.startvals = _1V; //#11059 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11059 - bwipp_onecode.__11060__ = 1; //#11059 - $_ = Object.getPrototypeOf($_); //#11059 - } //#11059 - $k[$j++] = 'binval'; //#11062 - $k[$j++] = $get($_.startvals, $_.barlen); //#11062 - $k[$j++] = Infinity; //#11062 - var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11062 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11062 - $k[$j++] = $f($get(_1c, _1d) - 48); //#11062 - } //#11062 - var _1g = $a(); //#11062 - $k[$j++] = _1g; //#11062 - $_.bigadd(); //#11062 - var _1h = $k[--$j]; //#11062 - $_[$k[--$j]] = _1h; //#11062 - $k[$j++] = Infinity; //#11063 - $aload($_.binval); //#11063 - $k[$j++] = $f($get($_.barcode, 0) - 48); //#11063 - $_.binval = $a(); //#11063 - $k[$j++] = Infinity; //#11064 - var _1n = $_.binval; //#11064 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11064 - $k[$j++] = $get(_1n, _1o) * 5; //#11064 - } //#11064 - var _1r = $a(); //#11064 - $k[$j++] = 'binval'; //#11064 - $k[$j++] = _1r; //#11064 - $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11064 - $_.bigadd(); //#11064 - $k[$j++] = 10; //#11064 - $_.normalize(); //#11064 - var _1v = $k[--$j]; //#11064 - $_[$k[--$j]] = _1v; //#11064 - $k[$j++] = Infinity; //#11065 - $aload($_.binval); //#11065 - var _1z = $geti($_.barcode, 2, 18); //#11065 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11065 - $k[$j++] = $f($get(_1z, _20) - 48); //#11065 - } //#11065 - $_.binval = $a(); //#11065 - $_.bytes = $a(13); //#11068 - var _25 = $_.binval; //#11069 - $_.bintmp = $arrcpy($a(_25.length), _25); //#11069 - for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11079 - $_.i = _28; //#11071 - for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11076 - $_.j = _2B; //#11073 - var _2C = $_.bintmp; //#11074 - var _2D = $_.j; //#11074 - $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11074 - $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11075 - } //#11075 - $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11077 - var _2S = $_.bintmp; //#11078 - var _2T = $_.bintmp; //#11078 - $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11078 - } //#11078 - $_.fcs = 2047; //#11082 - $_.dat = $get($_.bytes, 0) << 5; //#11083 - for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11092 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11088 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11086 - } else { //#11088 - $_.fcs = $_.fcs << 1; //#11088 - } //#11088 - $_.fcs = $_.fcs & 2047; //#11090 - $_.dat = $_.dat << 1; //#11091 - } //#11091 - for (var _2f = 1; _2f <= 12; _2f += 1) { //#11104 - $_.dat = $get($_.bytes, _2f) << 3; //#11094 - for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11103 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11099 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11097 - } else { //#11099 - $_.fcs = $_.fcs << 1; //#11099 - } //#11099 - $_.fcs = $_.fcs & 2047; //#11101 - $_.dat = $_.dat << 1; //#11102 - } //#11102 - } //#11102 - $_.codewords = $a(10); //#11107 - for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11118 - $_.i = _2r; //#11109 - var _2t = ($_.i == 9) ? 636 : 1365; //#11110 - $_.b = _2t; //#11110 - for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11115 - $_.j = _2w; //#11112 - var _2x = $_.binval; //#11113 - var _2y = $_.j; //#11113 - $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11113 - $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11114 - } //#11114 - $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11116 - var _3G = $_.binval; //#11117 - var _3H = $_.binval; //#11117 - $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11117 - } //#11117 - $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11121 - if (($_.fcs & 1024) != 0) { //#11124 - $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11123 - } //#11123 - if (!bwipp_onecode.__11225__) { //#11225 - $_ = Object.create($_); //#11225 - $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11215 - $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11224 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11224 - bwipp_onecode.__11225__ = 1; //#11224 - $_ = Object.getPrototypeOf($_); //#11224 - } //#11224 - $_.chars = $a(10); //#11227 - for (var _3V = 0; _3V <= 9; _3V += 1) { //#11236 - $_.i = _3V; //#11229 - var _3Y = $get($_.codewords, $_.i); //#11230 - $k[$j++] = _3Y; //#11234 - if (_3Y <= 1286) { //#11233 - var _3b = $get($_.tab513, $k[--$j]); //#11231 - $k[$j++] = _3b; //#11231 - } else { //#11233 - var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11233 - $k[$j++] = _3e; //#11233 - } //#11233 - $put($_.chars, $_.i, $k[--$j]); //#11235 - } //#11235 - for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11243 - $_.i = _3i; //#11239 - if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11242 - $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11241 - } //#11241 - } //#11241 - if (!bwipp_onecode.__11262__) { //#11262 - $_ = Object.create($_); //#11262 - $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11261 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11261 - bwipp_onecode.__11262__ = 1; //#11261 - $_ = Object.getPrototypeOf($_); //#11261 - } //#11261 - $_.bbs = $a(65); //#11264 - $_.bhs = $a(65); //#11265 - for (var _3u = 0; _3u <= 64; _3u += 1) { //#11286 - $_.i = _3u; //#11267 - $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11268 - $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11269 - if ((!$_.dec) && (!$_.asc)) { //#11273 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11271 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11272 - } //#11272 - if ((!$_.dec) && $_.asc) { //#11277 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11275 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11276 - } //#11276 - if ($_.dec && (!$_.asc)) { //#11281 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11279 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11280 - } //#11280 - if ($_.dec && $_.asc) { //#11285 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11283 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11284 - } //#11284 - } //#11284 - $k[$j++] = Infinity; //#11299 - var _4h = $_.bbs; //#11291 - var _4i = $_.bhs; //#11292 - $k[$j++] = Infinity; //#11293 - for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11293 - $k[$j++] = 1.44; //#11293 - $k[$j++] = 1.872; //#11293 - } //#11293 - $k[$j++] = 1.44; //#11293 - var _4m = $a(); //#11293 - $k[$j++] = 'ren'; //#11299 - $k[$j++] = bwipp_renlinear; //#11299 - $k[$j++] = 'bbs'; //#11299 - $k[$j++] = _4h; //#11299 - $k[$j++] = 'bhs'; //#11299 - $k[$j++] = _4i; //#11299 - $k[$j++] = 'sbs'; //#11299 - $k[$j++] = _4m; //#11299 - $k[$j++] = 'txt'; //#11299 - $k[$j++] = $_.txt; //#11299 - $k[$j++] = 'textxalign'; //#11299 - $k[$j++] = "left"; //#11299 - $k[$j++] = 'textfont'; //#11299 - $k[$j++] = "OCR-B"; //#11299 - $k[$j++] = 'textyoffset'; //#11299 - $k[$j++] = 1; //#11299 - $k[$j++] = 'textxoffset'; //#11299 - $k[$j++] = -0.3; //#11299 - $k[$j++] = 'opt'; //#11299 - $k[$j++] = $_.options; //#11299 - var _4p = $d(); //#11299 - $k[$j++] = _4p; //#11302 - if (!$_.dontdraw) { //#11302 - bwipp_renlinear(); //#11302 - } //#11302 - $_ = Object.getPrototypeOf($_); //#11304 - $_ = Object.getPrototypeOf($_); //#11306 -} - + ]); //#11230 + $_.startvals = _1V; //#11231 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11231 + bwipp_onecode.__11232__ = 1; //#11231 + $_ = Object.getPrototypeOf($_); //#11231 + } //#11231 + $k[$j++] = 'binval'; //#11234 + $k[$j++] = $get($_.startvals, $_.barlen); //#11234 + $k[$j++] = Infinity; //#11234 + var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11234 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11234 + $k[$j++] = $f($get(_1c, _1d) - 48); //#11234 + } //#11234 + var _1g = $a(); //#11234 + $k[$j++] = _1g; //#11234 + $_.bigadd(); //#11234 + var _1h = $k[--$j]; //#11234 + $_[$k[--$j]] = _1h; //#11234 + $k[$j++] = Infinity; //#11235 + $aload($_.binval); //#11235 + $k[$j++] = $f($get($_.barcode, 0) - 48); //#11235 + $_.binval = $a(); //#11235 + $k[$j++] = Infinity; //#11236 + var _1n = $_.binval; //#11236 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11236 + $k[$j++] = $get(_1n, _1o) * 5; //#11236 + } //#11236 + var _1r = $a(); //#11236 + $k[$j++] = 'binval'; //#11236 + $k[$j++] = _1r; //#11236 + $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11236 + $_.bigadd(); //#11236 + $k[$j++] = 10; //#11236 + $_.normalize(); //#11236 + var _1v = $k[--$j]; //#11236 + $_[$k[--$j]] = _1v; //#11236 + $k[$j++] = Infinity; //#11237 + $aload($_.binval); //#11237 + var _1z = $geti($_.barcode, 2, 18); //#11237 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11237 + $k[$j++] = $f($get(_1z, _20) - 48); //#11237 + } //#11237 + $_.binval = $a(); //#11237 + $_.bytes = $a(13); //#11240 + var _25 = $_.binval; //#11241 + $_.bintmp = $arrcpy($a(_25.length), _25); //#11241 + for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11251 + $_.i = _28; //#11243 + for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11248 + $_.j = _2B; //#11245 + var _2C = $_.bintmp; //#11246 + var _2D = $_.j; //#11246 + $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11246 + $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11247 + } //#11247 + $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11249 + var _2S = $_.bintmp; //#11250 + var _2T = $_.bintmp; //#11250 + $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11250 + } //#11250 + $_.fcs = 2047; //#11254 + $_.dat = $get($_.bytes, 0) << 5; //#11255 + for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11264 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11260 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11258 + } else { //#11260 + $_.fcs = $_.fcs << 1; //#11260 + } //#11260 + $_.fcs = $_.fcs & 2047; //#11262 + $_.dat = $_.dat << 1; //#11263 + } //#11263 + for (var _2f = 1; _2f <= 12; _2f += 1) { //#11276 + $_.dat = $get($_.bytes, _2f) << 3; //#11266 + for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11275 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11271 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11269 + } else { //#11271 + $_.fcs = $_.fcs << 1; //#11271 + } //#11271 + $_.fcs = $_.fcs & 2047; //#11273 + $_.dat = $_.dat << 1; //#11274 + } //#11274 + } //#11274 + $_.codewords = $a(10); //#11279 + for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11290 + $_.i = _2r; //#11281 + var _2t = ($_.i == 9) ? 636 : 1365; //#11282 + $_.b = _2t; //#11282 + for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11287 + $_.j = _2w; //#11284 + var _2x = $_.binval; //#11285 + var _2y = $_.j; //#11285 + $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11285 + $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11286 + } //#11286 + $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11288 + var _3G = $_.binval; //#11289 + var _3H = $_.binval; //#11289 + $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11289 + } //#11289 + $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11293 + if (($_.fcs & 1024) != 0) { //#11296 + $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11295 + } //#11295 + if (!bwipp_onecode.__11397__) { //#11397 + $_ = Object.create($_); //#11397 + $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11387 + $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11396 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11396 + bwipp_onecode.__11397__ = 1; //#11396 + $_ = Object.getPrototypeOf($_); //#11396 + } //#11396 + $_.chars = $a(10); //#11399 + for (var _3V = 0; _3V <= 9; _3V += 1) { //#11408 + $_.i = _3V; //#11401 + var _3Y = $get($_.codewords, $_.i); //#11402 + $k[$j++] = _3Y; //#11406 + if (_3Y <= 1286) { //#11405 + var _3b = $get($_.tab513, $k[--$j]); //#11403 + $k[$j++] = _3b; //#11403 + } else { //#11405 + var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11405 + $k[$j++] = _3e; //#11405 + } //#11405 + $put($_.chars, $_.i, $k[--$j]); //#11407 + } //#11407 + for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11415 + $_.i = _3i; //#11411 + if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11414 + $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11413 + } //#11413 + } //#11413 + if (!bwipp_onecode.__11434__) { //#11434 + $_ = Object.create($_); //#11434 + $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11433 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11433 + bwipp_onecode.__11434__ = 1; //#11433 + $_ = Object.getPrototypeOf($_); //#11433 + } //#11433 + $_.bbs = $a(65); //#11436 + $_.bhs = $a(65); //#11437 + for (var _3u = 0; _3u <= 64; _3u += 1) { //#11458 + $_.i = _3u; //#11439 + $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11440 + $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11441 + if ((!$_.dec) && (!$_.asc)) { //#11445 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11443 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11444 + } //#11444 + if ((!$_.dec) && $_.asc) { //#11449 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11447 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11448 + } //#11448 + if ($_.dec && (!$_.asc)) { //#11453 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11451 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11452 + } //#11452 + if ($_.dec && $_.asc) { //#11457 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11455 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11456 + } //#11456 + } //#11456 + $k[$j++] = Infinity; //#11461 + var _4h = $_.bbs; //#11463 + var _4i = $_.bhs; //#11464 + $k[$j++] = Infinity; //#11465 + for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11465 + $k[$j++] = 1.44; //#11465 + $k[$j++] = 1.872; //#11465 + } //#11465 + $k[$j++] = 1.44; //#11465 + var _4m = $a(); //#11465 + $k[$j++] = 'ren'; //#11471 + $k[$j++] = bwipp_renlinear; //#11471 + $k[$j++] = 'bbs'; //#11471 + $k[$j++] = _4h; //#11471 + $k[$j++] = 'bhs'; //#11471 + $k[$j++] = _4i; //#11471 + $k[$j++] = 'sbs'; //#11471 + $k[$j++] = _4m; //#11471 + $k[$j++] = 'txt'; //#11471 + $k[$j++] = $_.txt; //#11471 + $k[$j++] = 'textxalign'; //#11471 + $k[$j++] = "left"; //#11471 + $k[$j++] = 'textfont'; //#11471 + $k[$j++] = "OCR-B"; //#11471 + $k[$j++] = 'textyoffset'; //#11471 + $k[$j++] = 1; //#11471 + $k[$j++] = 'textxoffset'; //#11471 + $k[$j++] = -0.3; //#11471 + $k[$j++] = 'opt'; //#11471 + $k[$j++] = $_.options; //#11471 + var _4p = $d(); //#11471 + $k[$j++] = _4p; //#11474 + if (!$_.dontdraw) { //#11474 + bwipp_renlinear(); //#11474 + } //#11474 + $_ = Object.getPrototypeOf($_); //#11476 + $_ = Object.getPrototypeOf($_); //#11478 +} //bwipp_onecode function bwipp_postnet() { - $_ = Object.create($_); //#11336 - $_.dontdraw = false; //#11339 - $_.includetext = false; //#11340 - $_.validatecheck = false; //#11341 - $_.includecheckintext = false; //#11342 - $_.textfont = "OCR-B"; //#11343 - $_.textsize = 10; //#11344 - $_.textyoffset = -8; //#11345 - $_.height = 0.125; //#11346 - $k[$j++] = $_; //#11348 - bwipp_processoptions(); //#11348 - $_.options = $k[--$j]; //#11348 - $_.barcode = $k[--$j]; //#11349 - bwipp_loadctx(bwipp_postnet) //#11351 - $k[$j++] = 'barlen'; //#11353 - $k[$j++] = $_.barcode.length; //#11353 - if ($_.validatecheck) { //#11353 - var _4 = $k[--$j]; //#11353 - $k[$j++] = $f(_4 - 1); //#11353 - } //#11353 - var _5 = $k[--$j]; //#11353 - $_[$k[--$j]] = _5; //#11353 - if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11358 - $k[$j++] = 'bwipp.postnetBadLength#11357'; //#11357 - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11357 - bwipp_raiseerror(); //#11357 - } //#11357 - $forall($_.barcode, function() { //#11363 - var _B = $k[--$j]; //#11360 - if ((_B < 48) || (_B > 57)) { //#11362 - $k[$j++] = 'bwipp.postnetBadCharacter#11361'; //#11361 - $k[$j++] = "USPS POSTNET must contain only digits"; //#11361 - bwipp_raiseerror(); //#11361 - } //#11361 - }); //#11361 - if (!bwipp_postnet.__11375__) { //#11375 - $_ = Object.create($_); //#11375 - $_.barchars = "0123456789"; //#11367 - $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11374 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11374 - bwipp_postnet.__11375__ = 1; //#11374 - $_ = Object.getPrototypeOf($_); //#11374 - } //#11374 - $_.checksum = 0; //#11377 - for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11381 - $_.i = _G; //#11379 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11380 - } //#11380 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11382 - if ($_.validatecheck) { //#11388 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11386 - $k[$j++] = 'bwipp.postnetBadCheckDigit#11385'; //#11385 - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11385 - bwipp_raiseerror(); //#11385 - } //#11385 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11387 - } //#11387 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11390 - $_.txt = $a($f($_.barlen + 1)); //#11391 - $_.enc = $get($_.encs, 10); //#11394 - $_.heights = $a($_.enc.length); //#11395 - for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11399 - $_.j = _g; //#11397 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11398 - } //#11398 - $puti($_.bhs, 0, $_.heights); //#11400 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11412 - $_.i = _r; //#11403 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11404 - $_.heights = $a($_.enc.length); //#11405 - for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11409 - $_.j = _11; //#11407 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11408 - } //#11408 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11410 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11411 - } //#11411 - $_.enc = $get($_.encs, $_.checksum); //#11415 - $_.heights = $a($_.enc.length); //#11416 - for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11420 - $_.j = _1S; //#11418 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11419 - } //#11419 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11421 - if ($_.includecheckintext) { //#11426 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11424 - } else { //#11426 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11426 - } //#11426 - $_.enc = $get($_.encs, 11); //#11430 - $_.heights = $a($_.enc.length); //#11431 - for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11435 - $_.j = _20; //#11433 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11434 - } //#11434 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11436 - $k[$j++] = Infinity; //#11447 - var _2A = $_.bhs; //#11441 - $k[$j++] = Infinity; //#11442 - for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11442 - $k[$j++] = 0; //#11442 - } //#11442 - var _2E = $a(); //#11442 - $k[$j++] = Infinity; //#11443 - for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11443 - $k[$j++] = 1.44; //#11443 - $k[$j++] = 1.872; //#11443 - } //#11443 - $k[$j++] = 1.44; //#11443 - var _2I = $a(); //#11443 - $k[$j++] = 'ren'; //#11446 - $k[$j++] = bwipp_renlinear; //#11446 - $k[$j++] = 'bhs'; //#11446 - $k[$j++] = _2A; //#11446 - $k[$j++] = 'bbs'; //#11446 - $k[$j++] = _2E; //#11446 - $k[$j++] = 'sbs'; //#11446 - $k[$j++] = _2I; //#11446 - if ($_.includetext) { //#11446 - $k[$j++] = 'txt'; //#11445 - $k[$j++] = $_.txt; //#11445 - } //#11445 - $k[$j++] = 'opt'; //#11447 - $k[$j++] = $_.options; //#11447 - var _2M = $d(); //#11447 - $k[$j++] = _2M; //#11450 - if (!$_.dontdraw) { //#11450 - bwipp_renlinear(); //#11450 - } //#11450 - $_ = Object.getPrototypeOf($_); //#11452 - $_ = Object.getPrototypeOf($_); //#11454 -} - -function bwipp_planet() { - $_ = Object.create($_); //#11484 - $_.dontdraw = false; //#11487 - $_.includetext = false; //#11488 - $_.validatecheck = false; //#11489 - $_.includecheckintext = false; //#11490 - $_.textfont = "OCR-B"; //#11491 - $_.textsize = 10; //#11492 - $_.textyoffset = -8; //#11493 - $_.height = 0.125; //#11494 - $k[$j++] = $_; //#11496 - bwipp_processoptions(); //#11496 - $_.options = $k[--$j]; //#11496 - $_.barcode = $k[--$j]; //#11497 - bwipp_loadctx(bwipp_planet) //#11499 - $k[$j++] = 'barlen'; //#11501 - $k[$j++] = $_.barcode.length; //#11501 - if ($_.validatecheck) { //#11501 - var _4 = $k[--$j]; //#11501 - $k[$j++] = $f(_4 - 1); //#11501 - } //#11501 - var _5 = $k[--$j]; //#11501 - $_[$k[--$j]] = _5; //#11501 - if (($_.barlen != 11) && ($_.barlen != 13)) { //#11506 - $k[$j++] = 'bwipp.planetBadLength#11505'; //#11505 - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11505 - bwipp_raiseerror(); //#11505 - } //#11505 - $forall($_.barcode, function() { //#11511 - var _A = $k[--$j]; //#11508 - if ((_A < 48) || (_A > 57)) { //#11510 - $k[$j++] = 'bwipp.planetBadCharacter#11509'; //#11509 - $k[$j++] = "USPS PLANET must contain only digits"; //#11509 - bwipp_raiseerror(); //#11509 - } //#11509 - }); //#11509 - if (!bwipp_planet.__11523__) { //#11523 - $_ = Object.create($_); //#11523 - $_.barchars = "0123456789"; //#11515 - $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11522 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11522 - bwipp_planet.__11523__ = 1; //#11522 - $_ = Object.getPrototypeOf($_); //#11522 - } //#11522 - $_.checksum = 0; //#11526 - for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11530 - $_.i = _F; //#11528 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11529 + $_ = Object.create($_); //#11508 + $_.dontdraw = false; //#11511 + $_.includetext = false; //#11512 + $_.validatecheck = false; //#11513 + $_.includecheckintext = false; //#11514 + $_.textfont = "OCR-B"; //#11515 + $_.textsize = 10; //#11516 + $_.textyoffset = -8; //#11517 + $_.height = 0.125; //#11518 + $k[$j++] = $_; //#11520 + bwipp_processoptions(); //#11520 + $_.options = $k[--$j]; //#11520 + $_.barcode = $k[--$j]; //#11521 + bwipp_loadctx(bwipp_postnet) //#11523 + $k[$j++] = 'barlen'; //#11525 + $k[$j++] = $_.barcode.length; //#11525 + if ($_.validatecheck) { //#11525 + var _4 = $k[--$j]; //#11525 + $k[$j++] = $f(_4 - 1); //#11525 + } //#11525 + var _5 = $k[--$j]; //#11525 + $_[$k[--$j]] = _5; //#11525 + if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11530 + $k[$j++] = 'bwipp.postnetBadLength#11529'; //#11529 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11529 + bwipp_raiseerror(); //#11529 } //#11529 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11531 - if ($_.validatecheck) { //#11537 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11535 - $k[$j++] = 'bwipp.planetBadCheckDigit#11534'; //#11534 - $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11534 - bwipp_raiseerror(); //#11534 - } //#11534 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11536 - } //#11536 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11539 - $_.txt = $a($f($_.barlen + 1)); //#11540 - $_.enc = $get($_.encs, 10); //#11543 - $_.heights = $a($_.enc.length); //#11544 - for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11548 - $_.j = _f; //#11546 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11547 - } //#11547 - $puti($_.bhs, 0, $_.heights); //#11549 - for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11561 - $_.i = _q; //#11552 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11553 - $_.heights = $a($_.enc.length); //#11554 - for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11558 - $_.j = _10; //#11556 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11557 + $forall($_.barcode, function() { //#11535 + var _B = $k[--$j]; //#11532 + if ((_B < 48) || (_B > 57)) { //#11534 + $k[$j++] = 'bwipp.postnetBadCharacter#11533'; //#11533 + $k[$j++] = "USPS POSTNET must contain only digits"; //#11533 + bwipp_raiseerror(); //#11533 + } //#11533 + }); //#11533 + if (!bwipp_postnet.__11547__) { //#11547 + $_ = Object.create($_); //#11547 + $_.barchars = "0123456789"; //#11539 + $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11546 + bwipp_postnet.__11547__ = 1; //#11546 + $_ = Object.getPrototypeOf($_); //#11546 + } //#11546 + $_.checksum = 0; //#11549 + for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11553 + $_.i = _G; //#11551 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11552 + } //#11552 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11554 + if ($_.validatecheck) { //#11560 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11558 + $k[$j++] = 'bwipp.postnetBadCheckDigit#11557'; //#11557 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11557 + bwipp_raiseerror(); //#11557 } //#11557 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11559 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11560 - } //#11560 - $_.enc = $get($_.encs, $_.checksum); //#11564 - $_.heights = $a($_.enc.length); //#11565 - for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11569 - $_.j = _1R; //#11567 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11568 - } //#11568 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11570 - if ($_.includecheckintext) { //#11575 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11573 - } else { //#11575 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11575 - } //#11575 - $_.enc = $get($_.encs, 11); //#11579 - $_.heights = $a($_.enc.length); //#11580 - for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11584 - $_.j = _1z; //#11582 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11583 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11559 + } //#11559 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11562 + $_.txt = $a($f($_.barlen + 1)); //#11563 + $_.enc = $get($_.encs, 10); //#11566 + $_.heights = $a($_.enc.length); //#11567 + for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11571 + $_.j = _g; //#11569 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11570 + } //#11570 + $puti($_.bhs, 0, $_.heights); //#11572 + for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11584 + $_.i = _r; //#11575 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11576 + $_.heights = $a($_.enc.length); //#11577 + for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11581 + $_.j = _11; //#11579 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11580 + } //#11580 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11582 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11583 } //#11583 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11585 - $k[$j++] = Infinity; //#11596 - var _29 = $_.bhs; //#11590 - $k[$j++] = Infinity; //#11591 - for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11591 - $k[$j++] = 0; //#11591 + $_.enc = $get($_.encs, $_.checksum); //#11587 + $_.heights = $a($_.enc.length); //#11588 + for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11592 + $_.j = _1S; //#11590 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11591 } //#11591 - var _2D = $a(); //#11591 - $k[$j++] = Infinity; //#11592 - for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11592 - $k[$j++] = 1.44; //#11592 - $k[$j++] = 1.872; //#11592 - } //#11592 - $k[$j++] = 1.44; //#11592 - var _2H = $a(); //#11592 - $k[$j++] = 'ren'; //#11595 - $k[$j++] = bwipp_renlinear; //#11595 - $k[$j++] = 'bhs'; //#11595 - $k[$j++] = _29; //#11595 - $k[$j++] = 'bbs'; //#11595 - $k[$j++] = _2D; //#11595 - $k[$j++] = 'sbs'; //#11595 - $k[$j++] = _2H; //#11595 - if ($_.includetext) { //#11595 - $k[$j++] = 'txt'; //#11594 - $k[$j++] = $_.txt; //#11594 - } //#11594 - $k[$j++] = 'opt'; //#11596 - $k[$j++] = $_.options; //#11596 - var _2L = $d(); //#11596 - $k[$j++] = _2L; //#11599 - if (!$_.dontdraw) { //#11599 - bwipp_renlinear(); //#11599 - } //#11599 - $_ = Object.getPrototypeOf($_); //#11601 - $_ = Object.getPrototypeOf($_); //#11603 -} - -function bwipp_royalmail() { - $_ = Object.create($_); //#11633 - $_.dontdraw = false; //#11636 - $_.includetext = false; //#11637 - $_.validatecheck = false; //#11638 - $_.includecheckintext = false; //#11639 - $_.textfont = "OCR-B"; //#11640 - $_.textsize = 10; //#11641 - $_.textyoffset = -8; //#11642 - $_.height = 0.175; //#11643 - $k[$j++] = $_; //#11645 - bwipp_processoptions(); //#11645 - $_.options = $k[--$j]; //#11645 - var _1 = $k[--$j]; //#11646 - $_.barcode = _1; //#11646 - bwipp_loadctx(bwipp_royalmail) //#11648 - if (!bwipp_royalmail.__11666__) { //#11666 - $_ = Object.create($_); //#11666 - $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11652 - $_.charvals = new Map; //#11653 - for (var _2 = 0; _2 <= 35; _2 += 1) { //#11654 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#11654 - } //#11654 - $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11665 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11665 - bwipp_royalmail.__11666__ = 1; //#11665 - $_ = Object.getPrototypeOf($_); //#11665 - } //#11665 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#11673 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#11670 - if (!_E) { //#11672 - $k[$j++] = 'bwipp.royalmailBadCharacter#11671'; //#11671 - $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11671 - bwipp_raiseerror(); //#11671 - } //#11671 - } //#11671 - $k[$j++] = 'barlen'; //#11675 - $k[$j++] = $_.barcode.length; //#11675 - if ($_.validatecheck) { //#11675 - var _H = $k[--$j]; //#11675 - $k[$j++] = $f(_H - 1); //#11675 - } //#11675 - var _I = $k[--$j]; //#11675 - $_[$k[--$j]] = _I; //#11675 - $_.checksumrow = 0; //#11677 - $_.checksumcol = 0; //#11678 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#11684 - $_.i = _M; //#11680 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11681 - $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11682 - $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11683 - } //#11683 - $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11685 - if ($_.validatecheck) { //#11691 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11689 - $k[$j++] = 'bwipp.royalmailBadCheckDigit#11688'; //#11688 - $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11688 - bwipp_raiseerror(); //#11688 - } //#11688 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11690 - } //#11690 - $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11693 - $_.txt = $a($f($_.barlen + 1)); //#11694 - $puti($_.encstr, 0, $get($_.encs, 36)); //#11697 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11704 - $_.i = _r; //#11700 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11701 - $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11702 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11703 - } //#11703 - $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11707 - if ($_.includecheckintext) { //#11711 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11709 - } else { //#11711 - $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11711 - } //#11711 - $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11715 - $_.bbs = $a($_.encstr.length); //#11717 - $_.bhs = $a($_.encstr.length); //#11718 - for (var _1j = 0, _1i = $_.encstr.length - 1; _1j <= _1i; _1j += 1) { //#11738 - $_.i = _1j; //#11720 - $_.enc = $geti($_.encstr, $_.i, 1); //#11721 - if ($eq($_.enc, "0")) { //#11725 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11723 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11724 - } //#11724 - if ($eq($_.enc, "1")) { //#11729 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11727 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11728 - } //#11728 - if ($eq($_.enc, "2")) { //#11733 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11731 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11732 - } //#11732 - if ($eq($_.enc, "3")) { //#11737 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11735 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11736 - } //#11736 - } //#11736 - $k[$j++] = Infinity; //#11749 - var _2F = $_.bbs; //#11743 - var _2G = $_.bhs; //#11744 - $k[$j++] = Infinity; //#11745 - for (var _2I = 0, _2J = $_.bhs.length - 1; _2I < _2J; _2I++) { //#11745 - $k[$j++] = 1.44; //#11745 - $k[$j++] = 1.872; //#11745 - } //#11745 - $k[$j++] = 1.44; //#11745 - var _2K = $a(); //#11745 - $k[$j++] = 'ren'; //#11748 - $k[$j++] = bwipp_renlinear; //#11748 - $k[$j++] = 'bbs'; //#11748 - $k[$j++] = _2F; //#11748 - $k[$j++] = 'bhs'; //#11748 - $k[$j++] = _2G; //#11748 - $k[$j++] = 'sbs'; //#11748 - $k[$j++] = _2K; //#11748 - if ($_.includetext) { //#11748 - $k[$j++] = 'txt'; //#11747 - $k[$j++] = $_.txt; //#11747 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11593 + if ($_.includecheckintext) { //#11598 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11596 + } else { //#11598 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11598 + } //#11598 + $_.enc = $get($_.encs, 11); //#11602 + $_.heights = $a($_.enc.length); //#11603 + for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11607 + $_.j = _20; //#11605 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11606 + } //#11606 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11608 + $k[$j++] = Infinity; //#11611 + var _2A = $_.bhs; //#11613 + $k[$j++] = Infinity; //#11614 + for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11614 + $k[$j++] = 0; //#11614 + } //#11614 + var _2E = $a(); //#11614 + $k[$j++] = Infinity; //#11615 + for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11615 + $k[$j++] = 1.44; //#11615 + $k[$j++] = 1.872; //#11615 + } //#11615 + $k[$j++] = 1.44; //#11615 + var _2I = $a(); //#11615 + $k[$j++] = 'ren'; //#11618 + $k[$j++] = bwipp_renlinear; //#11618 + $k[$j++] = 'bhs'; //#11618 + $k[$j++] = _2A; //#11618 + $k[$j++] = 'bbs'; //#11618 + $k[$j++] = _2E; //#11618 + $k[$j++] = 'sbs'; //#11618 + $k[$j++] = _2I; //#11618 + if ($_.includetext) { //#11618 + $k[$j++] = 'txt'; //#11617 + $k[$j++] = $_.txt; //#11617 + } //#11617 + $k[$j++] = 'opt'; //#11619 + $k[$j++] = $_.options; //#11619 + var _2M = $d(); //#11619 + $k[$j++] = _2M; //#11622 + if (!$_.dontdraw) { //#11622 + bwipp_renlinear(); //#11622 + } //#11622 + $_ = Object.getPrototypeOf($_); //#11624 + $_ = Object.getPrototypeOf($_); //#11626 +} //bwipp_postnet +function bwipp_planet() { + $_ = Object.create($_); //#11656 + $_.dontdraw = false; //#11659 + $_.includetext = false; //#11660 + $_.validatecheck = false; //#11661 + $_.includecheckintext = false; //#11662 + $_.textfont = "OCR-B"; //#11663 + $_.textsize = 10; //#11664 + $_.textyoffset = -8; //#11665 + $_.height = 0.125; //#11666 + $k[$j++] = $_; //#11668 + bwipp_processoptions(); //#11668 + $_.options = $k[--$j]; //#11668 + $_.barcode = $k[--$j]; //#11669 + bwipp_loadctx(bwipp_planet) //#11671 + $k[$j++] = 'barlen'; //#11673 + $k[$j++] = $_.barcode.length; //#11673 + if ($_.validatecheck) { //#11673 + var _4 = $k[--$j]; //#11673 + $k[$j++] = $f(_4 - 1); //#11673 + } //#11673 + var _5 = $k[--$j]; //#11673 + $_[$k[--$j]] = _5; //#11673 + if (($_.barlen != 11) && ($_.barlen != 13)) { //#11678 + $k[$j++] = 'bwipp.planetBadLength#11677'; //#11677 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11677 + bwipp_raiseerror(); //#11677 + } //#11677 + $forall($_.barcode, function() { //#11683 + var _A = $k[--$j]; //#11680 + if ((_A < 48) || (_A > 57)) { //#11682 + $k[$j++] = 'bwipp.planetBadCharacter#11681'; //#11681 + $k[$j++] = "USPS PLANET must contain only digits"; //#11681 + bwipp_raiseerror(); //#11681 + } //#11681 + }); //#11681 + if (!bwipp_planet.__11695__) { //#11695 + $_ = Object.create($_); //#11695 + $_.barchars = "0123456789"; //#11687 + $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11694 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11694 + bwipp_planet.__11695__ = 1; //#11694 + $_ = Object.getPrototypeOf($_); //#11694 + } //#11694 + $_.checksum = 0; //#11698 + for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11702 + $_.i = _F; //#11700 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11701 + } //#11701 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11703 + if ($_.validatecheck) { //#11709 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11707 + $k[$j++] = 'bwipp.planetBadCheckDigit#11706'; //#11706 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11706 + bwipp_raiseerror(); //#11706 + } //#11706 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11708 + } //#11708 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11711 + $_.txt = $a($f($_.barlen + 1)); //#11712 + $_.enc = $get($_.encs, 10); //#11715 + $_.heights = $a($_.enc.length); //#11716 + for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11720 + $_.j = _f; //#11718 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11719 + } //#11719 + $puti($_.bhs, 0, $_.heights); //#11721 + for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11733 + $_.i = _q; //#11724 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11725 + $_.heights = $a($_.enc.length); //#11726 + for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11730 + $_.j = _10; //#11728 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11729 + } //#11729 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11731 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11732 + } //#11732 + $_.enc = $get($_.encs, $_.checksum); //#11736 + $_.heights = $a($_.enc.length); //#11737 + for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11741 + $_.j = _1R; //#11739 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11740 + } //#11740 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11742 + if ($_.includecheckintext) { //#11747 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11745 + } else { //#11747 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11747 } //#11747 - $k[$j++] = 'opt'; //#11749 - $k[$j++] = $_.options; //#11749 - var _2O = $d(); //#11749 - $k[$j++] = _2O; //#11752 - if (!$_.dontdraw) { //#11752 - bwipp_renlinear(); //#11752 - } //#11752 - $_ = Object.getPrototypeOf($_); //#11754 - $_ = Object.getPrototypeOf($_); //#11756 -} - + $_.enc = $get($_.encs, 11); //#11751 + $_.heights = $a($_.enc.length); //#11752 + for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11756 + $_.j = _1z; //#11754 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11755 + } //#11755 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11757 + $k[$j++] = Infinity; //#11760 + var _29 = $_.bhs; //#11762 + $k[$j++] = Infinity; //#11763 + for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11763 + $k[$j++] = 0; //#11763 + } //#11763 + var _2D = $a(); //#11763 + $k[$j++] = Infinity; //#11764 + for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11764 + $k[$j++] = 1.44; //#11764 + $k[$j++] = 1.872; //#11764 + } //#11764 + $k[$j++] = 1.44; //#11764 + var _2H = $a(); //#11764 + $k[$j++] = 'ren'; //#11767 + $k[$j++] = bwipp_renlinear; //#11767 + $k[$j++] = 'bhs'; //#11767 + $k[$j++] = _29; //#11767 + $k[$j++] = 'bbs'; //#11767 + $k[$j++] = _2D; //#11767 + $k[$j++] = 'sbs'; //#11767 + $k[$j++] = _2H; //#11767 + if ($_.includetext) { //#11767 + $k[$j++] = 'txt'; //#11766 + $k[$j++] = $_.txt; //#11766 + } //#11766 + $k[$j++] = 'opt'; //#11768 + $k[$j++] = $_.options; //#11768 + var _2L = $d(); //#11768 + $k[$j++] = _2L; //#11771 + if (!$_.dontdraw) { //#11771 + bwipp_renlinear(); //#11771 + } //#11771 + $_ = Object.getPrototypeOf($_); //#11773 + $_ = Object.getPrototypeOf($_); //#11775 +} //bwipp_planet +function bwipp_royalmail() { + $_ = Object.create($_); //#11805 + $_.dontdraw = false; //#11808 + $_.includetext = false; //#11809 + $_.validatecheck = false; //#11810 + $_.includecheckintext = false; //#11811 + $_.textfont = "OCR-B"; //#11812 + $_.textsize = 10; //#11813 + $_.textyoffset = -8; //#11814 + $_.height = 0.175; //#11815 + $k[$j++] = $_; //#11817 + bwipp_processoptions(); //#11817 + $_.options = $k[--$j]; //#11817 + $_.barcode = $k[--$j]; //#11818 + if ($eq($_.barcode, "")) { //#11822 + $k[$j++] = 'bwipp.royalmailEmptyData#11821'; //#11821 + $k[$j++] = "The data must not be empty"; //#11821 + bwipp_raiseerror(); //#11821 + } //#11821 + bwipp_loadctx(bwipp_royalmail) //#11824 + if (!bwipp_royalmail.__11842__) { //#11842 + $_ = Object.create($_); //#11842 + $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11828 + $_.charvals = new Map; //#11829 + for (var _3 = 0; _3 <= 35; _3 += 1) { //#11830 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#11830 + } //#11830 + $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11841 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11841 + bwipp_royalmail.__11842__ = 1; //#11841 + $_ = Object.getPrototypeOf($_); //#11841 + } //#11841 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#11849 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#11846 + if (!_F) { //#11848 + $k[$j++] = 'bwipp.royalmailBadCharacter#11847'; //#11847 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11847 + bwipp_raiseerror(); //#11847 + } //#11847 + } //#11847 + $k[$j++] = 'barlen'; //#11851 + $k[$j++] = $_.barcode.length; //#11851 + if ($_.validatecheck) { //#11851 + var _I = $k[--$j]; //#11851 + $k[$j++] = $f(_I - 1); //#11851 + } //#11851 + var _J = $k[--$j]; //#11851 + $_[$k[--$j]] = _J; //#11851 + $_.checksumrow = 0; //#11853 + $_.checksumcol = 0; //#11854 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#11860 + $_.i = _N; //#11856 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11857 + $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11858 + $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11859 + } //#11859 + $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11861 + if ($_.validatecheck) { //#11867 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11865 + $k[$j++] = 'bwipp.royalmailBadCheckDigit#11864'; //#11864 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11864 + bwipp_raiseerror(); //#11864 + } //#11864 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11866 + } //#11866 + $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11869 + $_.txt = $a($f($_.barlen + 1)); //#11870 + $puti($_.encstr, 0, $get($_.encs, 36)); //#11873 + for (var _s = 0, _r = $f($_.barlen - 1); _s <= _r; _s += 1) { //#11880 + $_.i = _s; //#11876 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11877 + $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11878 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11879 + } //#11879 + $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11883 + if ($_.includecheckintext) { //#11887 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11885 + } else { //#11887 + $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11887 + } //#11887 + $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11891 + $_.bbs = $a($_.encstr.length); //#11893 + $_.bhs = $a($_.encstr.length); //#11894 + for (var _1k = 0, _1j = $_.encstr.length - 1; _1k <= _1j; _1k += 1) { //#11914 + $_.i = _1k; //#11896 + $_.enc = $geti($_.encstr, $_.i, 1); //#11897 + if ($eq($_.enc, "0")) { //#11901 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11899 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11900 + } //#11900 + if ($eq($_.enc, "1")) { //#11905 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11903 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11904 + } //#11904 + if ($eq($_.enc, "2")) { //#11909 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11907 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11908 + } //#11908 + if ($eq($_.enc, "3")) { //#11913 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11911 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11912 + } //#11912 + } //#11912 + $k[$j++] = Infinity; //#11917 + var _2G = $_.bbs; //#11919 + var _2H = $_.bhs; //#11920 + $k[$j++] = Infinity; //#11921 + for (var _2J = 0, _2K = $_.bhs.length - 1; _2J < _2K; _2J++) { //#11921 + $k[$j++] = 1.44; //#11921 + $k[$j++] = 1.872; //#11921 + } //#11921 + $k[$j++] = 1.44; //#11921 + var _2L = $a(); //#11921 + $k[$j++] = 'ren'; //#11924 + $k[$j++] = bwipp_renlinear; //#11924 + $k[$j++] = 'bbs'; //#11924 + $k[$j++] = _2G; //#11924 + $k[$j++] = 'bhs'; //#11924 + $k[$j++] = _2H; //#11924 + $k[$j++] = 'sbs'; //#11924 + $k[$j++] = _2L; //#11924 + if ($_.includetext) { //#11924 + $k[$j++] = 'txt'; //#11923 + $k[$j++] = $_.txt; //#11923 + } //#11923 + $k[$j++] = 'opt'; //#11925 + $k[$j++] = $_.options; //#11925 + var _2P = $d(); //#11925 + $k[$j++] = _2P; //#11928 + if (!$_.dontdraw) { //#11928 + bwipp_renlinear(); //#11928 + } //#11928 + $_ = Object.getPrototypeOf($_); //#11930 + $_ = Object.getPrototypeOf($_); //#11932 +} //bwipp_royalmail function bwipp_auspost() { - $_ = Object.create($_); //#11786 - $_.dontdraw = false; //#11789 - $_.includetext = false; //#11790 - $_.textfont = "OCR-B"; //#11791 - $_.textsize = 10; //#11792 - $_.textyoffset = -8; //#11793 - $_.height = 0.175; //#11794 - $_.custinfoenc = "character"; //#11795 - $k[$j++] = $_; //#11797 - bwipp_processoptions(); //#11797 - $_.options = $k[--$j]; //#11797 - $_.barcode = $k[--$j]; //#11798 - if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11802 - $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11801'; //#11801 - $k[$j++] = "Customer information encoding must be either character or numeric"; //#11801 - bwipp_raiseerror(); //#11801 - } //#11801 - bwipp_loadctx(bwipp_auspost) //#11804 - if (!bwipp_auspost.__11827__) { //#11827 - $_ = Object.create($_); //#11827 - $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11819 - $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11822 + $_ = Object.create($_); //#11962 + $_.dontdraw = false; //#11965 + $_.includetext = false; //#11966 + $_.textfont = "OCR-B"; //#11967 + $_.textsize = 10; //#11968 + $_.textyoffset = -8; //#11969 + $_.height = 0.175; //#11970 + $_.custinfoenc = "character"; //#11971 + $k[$j++] = $_; //#11973 + bwipp_processoptions(); //#11973 + $_.options = $k[--$j]; //#11973 + $_.barcode = $k[--$j]; //#11974 + if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11978 + $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11977'; //#11977 + $k[$j++] = "Customer information encoding must be either character or numeric"; //#11977 + bwipp_raiseerror(); //#11977 + } //#11977 + bwipp_loadctx(bwipp_auspost) //#11980 + if (!bwipp_auspost.__12003__) { //#12003 + $_ = Object.create($_); //#12003 + $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11995 + $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11998 var _5 = new Map([ ["11", 37], ["45", 37], ["59", 52], ["62", 67] - ]); //#11825 - $_.fcclen = _5; //#11825 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11825 - bwipp_auspost.__11827__ = 1; //#11825 - $_ = Object.getPrototypeOf($_); //#11825 - } //#11825 - $_.barlen = $_.barcode.length; //#11829 - $_.txt = $a($_.barlen - 2); //#11830 - $k[$j++] = $_.fcclen; //#11832 - if ($_.barlen >= 2) { //#11832 - $k[$j++] = $geti($_.barcode, 0, 2); //#11832 - } else { //#11832 - $k[$j++] = ""; //#11832 - } //#11832 - var _E = $k[--$j]; //#11833 - var _F = $k[--$j]; //#11833 - var _G = $get(_F, _E) !== undefined; //#11833 - $k[$j++] = _F; //#11835 - $k[$j++] = _E; //#11835 - if (!_G) { //#11835 - $j -= 2; //#11834 - $k[$j++] = 'bwipp.auspostBadFCC#11834'; //#11834 - $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#11834 - bwipp_raiseerror(); //#11834 - } //#11834 - var _H = $k[--$j]; //#11836 - $_.encstr = $s($get($k[--$j], _H)); //#11836 - $k[$j++] = true; //#11843 - for (var _L = 0, _M = 1; _L < _M; _L++) { //#11843 - if ($_.barlen < 10) { //#11841 - $j--; //#11841 - $k[$j++] = false; //#11841 - break; //#11841 - } //#11841 - var _P = $geti($_.barcode, 2, 8); //#11842 - for (var _Q = 0, _R = _P.length; _Q < _R; _Q++) { //#11842 - var _S = $get(_P, _Q); //#11842 - if ((_S < 48) || (_S > 57)) { //#11842 - $j--; //#11842 - $k[$j++] = false; //#11842 - break; //#11842 - } //#11842 - } //#11842 - } //#11842 - if ($nt($k[--$j])) { //#11846 - $k[$j++] = 'bwipp.auspostIncompleteDPID#11845'; //#11845 - $k[$j++] = "The DPID must be 8 digits"; //#11845 - bwipp_raiseerror(); //#11845 - } //#11845 - var _W = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#11849 - if ((($_.barlen - 10) * _W) > (($_.encstr.length - 22) - 14)) { //#11852 - $k[$j++] = 'bwipp.auspostTooLong#11851'; //#11851 - $k[$j++] = "The message is too long"; //#11851 - bwipp_raiseerror(); //#11851 - } //#11851 - $puti($_.encstr, 0, $get($_.encs, 74)); //#11855 - for (var _b = 0; _b <= 1; _b += 1) { //#11862 - $_.i = _b; //#11859 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11861 - } //#11861 - for (var _j = 2; _j <= 9; _j += 1) { //#11870 - $_.i = _j; //#11866 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11868 - $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11869 - } //#11869 - if ($eq($_.custinfoenc, "numeric")) { //#11898 - for (var _14 = 0, _13 = $_.barlen - 11; _14 <= _13; _14 += 1) { //#11883 - $_.i = _14; //#11875 - var _18 = $get($_.barcode, $_.i + 10); //#11876 - $k[$j++] = $_.encs; //#11879 - $k[$j++] = _18; //#11879 - if ((_18 < 48) || (_18 > 57)) { //#11879 - $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#11878'; //#11878 - $k[$j++] = "The customer information data contains a non-digit character"; //#11878 - bwipp_raiseerror(); //#11878 - } //#11878 - var _19 = $k[--$j]; //#11880 - $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_19 - 48) + 64))); //#11881 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11882 - } //#11882 - $_.ciflen = ($_.barlen - 10) * 2; //#11884 - } else { //#11898 - for (var _1R = 0, _1Q = $_.barlen - 11; _1R <= _1Q; _1R += 1) { //#11897 - $_.i = _1R; //#11887 - $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#11888 - if ($nt($k[--$j])) { //#11891 - $j--; //#11890 - $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#11890'; //#11890 - $k[$j++] = "The customer information contains an invalid character"; //#11890 - bwipp_raiseerror(); //#11890 - } //#11890 - $_.indx = $k[--$j].length; //#11892 - $j -= 2; //#11893 - $_.enc = $get($_.encs, $_.indx); //#11894 - $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#11895 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11896 - } //#11896 - $_.ciflen = ($_.barlen - 10) * 3; //#11898 - } //#11898 - for (var _1s = 22 + $_.ciflen, _1r = $_.encstr.length - 14; _1s <= _1r; _1s += 1) { //#11904 - $puti($_.encstr, _1s, $get($_.encs, 75)); //#11903 - } //#11903 - if (!bwipp_auspost.__11927__) { //#11927 - $_ = Object.create($_); //#11927 - $_.rstable = $a(64 * 64); //#11908 - $k[$j++] = $_.rstable; //#11909 - $k[$j++] = 0; //#11909 - $k[$j++] = Infinity; //#11909 - for (var _1y = 0, _1z = 64; _1y < _1z; _1y++) { //#11909 - $k[$j++] = 0; //#11909 - } //#11909 - var _20 = $a(); //#11909 - var _21 = $k[--$j]; //#11909 - $puti($k[--$j], _21, _20); //#11909 - $k[$j++] = $_.rstable; //#11910 - $k[$j++] = 64; //#11910 - $k[$j++] = Infinity; //#11910 - for (var _24 = 0; _24 <= 63; _24 += 1) { //#11910 - $k[$j++] = _24; //#11910 - } //#11910 - var _25 = $a(); //#11910 - var _26 = $k[--$j]; //#11910 - $puti($k[--$j], _26, _25); //#11910 - $_.prev = 1; //#11911 - for (var _28 = 0, _29 = 64; _28 < _29; _28++) { //#11926 - $_.next = $_.prev << 1; //#11913 - if (($_.next & 64) != 0) { //#11916 - $_.next = $_.next ^ 67; //#11915 - } //#11915 - for (var _2D = 0; _2D <= 63; _2D += 1) { //#11924 - $_.j = _2D; //#11918 - $_.nextcell = function() { - $k[$j++] = $_.rstable; //#11919 - $k[$j++] = (64 * $_.next) + $_.j; //#11919 - }; //#11919 - $_.nextcell(); //#11920 - var _2L = $k[--$j]; //#11920 - $put($k[--$j], _2L, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#11920 - $_.nextcell(); //#11921 - var _2N = $k[--$j]; //#11921 - if (($get($k[--$j], _2N) & 64) != 0) { //#11923 - $_.nextcell(); //#11922 - $_.nextcell(); //#11922 - var _2Q = $k[--$j]; //#11922 - var _2S = $get($k[--$j], _2Q); //#11922 - var _2T = $k[--$j]; //#11922 - $put($k[--$j], _2T, _2S ^ 67); //#11922 - } //#11922 - } //#11922 - $_.prev = $_.next; //#11925 - } //#11925 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11925 - bwipp_auspost.__11927__ = 1; //#11925 - $_ = Object.getPrototypeOf($_); //#11925 - } //#11925 - $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#11930 - $k[$j++] = $_.rscodes; //#11931 - $k[$j++] = 0; //#11931 - $k[$j++] = Infinity; //#11931 - for (var _2a = 0, _2b = 4; _2a < _2b; _2a++) { //#11931 - $k[$j++] = 0; //#11931 - } //#11931 - var _2c = $a(); //#11931 - var _2d = $k[--$j]; //#11931 - $puti($k[--$j], _2d, _2c); //#11931 - for (var _2h = 2, _2g = $_.encstr.length - 16; _2h <= _2g; _2h += 3) { //#11939 - $_.i = _2h; //#11933 - $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#11938 - } //#11938 - for (var _2v = $_.rscodes.length - 5; _2v >= 0; _2v -= 1) { //#11948 - $_.i = _2v; //#11941 - for (var _2w = 0; _2w <= 4; _2w += 1) { //#11947 - $_.j = _2w; //#11943 - $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#11946 - } //#11946 - } //#11946 - $_.checkcode = $strcpy($s(12), "000000000000"); //#11949 - for (var _3E = 0; _3E <= 3; _3E += 1) { //#11954 - $_.i = _3E; //#11951 - $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#11952 - $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#11953 - } //#11953 - $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#11957 - $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#11958 - $_.bbs = $a($_.encstr.length); //#11960 - $_.bhs = $a($_.encstr.length); //#11961 - for (var _3b = 0, _3a = $_.encstr.length - 1; _3b <= _3a; _3b += 1) { //#11981 - $_.i = _3b; //#11963 - $_.enc = $geti($_.encstr, $_.i, 1); //#11964 - if ($eq($_.enc, "0")) { //#11968 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11966 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11967 - } //#11967 - if ($eq($_.enc, "1")) { //#11972 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11970 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11971 - } //#11971 - if ($eq($_.enc, "2")) { //#11976 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11974 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11975 - } //#11975 - if ($eq($_.enc, "3")) { //#11980 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11978 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11979 - } //#11979 - } //#11979 - $k[$j++] = Infinity; //#11992 - var _47 = $_.bbs; //#11986 - var _48 = $_.bhs; //#11987 - $k[$j++] = Infinity; //#11988 - for (var _4A = 0, _4B = $_.bhs.length - 1; _4A < _4B; _4A++) { //#11988 - $k[$j++] = 1.44; //#11988 - $k[$j++] = 1.872; //#11988 - } //#11988 - $k[$j++] = 1.44; //#11988 - var _4C = $a(); //#11988 - $k[$j++] = 'ren'; //#11991 - $k[$j++] = bwipp_renlinear; //#11991 - $k[$j++] = 'bbs'; //#11991 - $k[$j++] = _47; //#11991 - $k[$j++] = 'bhs'; //#11991 - $k[$j++] = _48; //#11991 - $k[$j++] = 'sbs'; //#11991 - $k[$j++] = _4C; //#11991 - if ($_.includetext) { //#11991 - $k[$j++] = 'txt'; //#11990 - $k[$j++] = $_.txt; //#11990 - } //#11990 - $k[$j++] = 'opt'; //#11992 - $k[$j++] = $_.options; //#11992 - var _4G = $d(); //#11992 - $k[$j++] = _4G; //#11995 - if (!$_.dontdraw) { //#11995 - bwipp_renlinear(); //#11995 - } //#11995 - $_ = Object.getPrototypeOf($_); //#11997 - $_ = Object.getPrototypeOf($_); //#11999 -} - -function bwipp_kix() { - $_ = Object.create($_); //#12029 - $_.dontdraw = false; //#12032 - $_.includetext = false; //#12033 - $_.textfont = "OCR-B"; //#12034 - $_.textsize = 10; //#12035 - $_.textyoffset = -8; //#12036 - $_.height = 0.175; //#12037 - $k[$j++] = $_; //#12039 - bwipp_processoptions(); //#12039 - $_.options = $k[--$j]; //#12039 - var _1 = $k[--$j]; //#12040 - $_.barcode = _1; //#12040 - bwipp_loadctx(bwipp_kix) //#12042 - if (!bwipp_kix.__12059__) { //#12059 - $_ = Object.create($_); //#12059 - $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12053 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12056 - $_.charvals = new Map; //#12057 - for (var _3 = 0; _3 <= 35; _3 += 1) { //#12058 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12058 - } //#12058 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12058 - bwipp_kix.__12059__ = 1; //#12058 - $_ = Object.getPrototypeOf($_); //#12058 - } //#12058 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12066 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12063 - if (!_E) { //#12065 - $k[$j++] = 'bwipp.kixBadCharacter#12064'; //#12064 - $k[$j++] = "KIX must contain only capital letters and digits"; //#12064 - bwipp_raiseerror(); //#12064 - } //#12064 - } //#12064 - $_.barlen = $_.barcode.length; //#12068 - $_.encstr = $s($_.barlen * 4); //#12069 - $_.txt = $a($_.barlen); //#12070 - for (var _M = 0, _L = $_.barlen - 1; _M <= _L; _M += 1) { //#12077 - $_.i = _M; //#12073 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12074 - $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12075 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 - } //#12076 - $_.bbs = $a($_.encstr.length); //#12079 - $_.bhs = $a($_.encstr.length); //#12080 - for (var _n = 0, _m = $_.encstr.length - 1; _n <= _m; _n += 1) { //#12100 - $_.i = _n; //#12082 - $_.enc = $geti($_.encstr, $_.i, 1); //#12083 - if ($eq($_.enc, "0")) { //#12087 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12085 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12086 - } //#12086 - if ($eq($_.enc, "1")) { //#12091 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12089 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12090 + ]); //#12001 + $_.fcclen = _5; //#12001 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12001 + bwipp_auspost.__12003__ = 1; //#12001 + $_ = Object.getPrototypeOf($_); //#12001 + } //#12001 + $_.barlen = $_.barcode.length; //#12005 + if ($_.barlen < 10) { //#12008 + $k[$j++] = 'bwipp.auspostTooShort#12007'; //#12007 + $k[$j++] = "The data length must be at least 10"; //#12007 + bwipp_raiseerror(); //#12007 + } //#12007 + $_.txt = $a($_.barlen - 2); //#12010 + $k[$j++] = $_.fcclen; //#12012 + if ($_.barlen >= 2) { //#12012 + $k[$j++] = $geti($_.barcode, 0, 2); //#12012 + } else { //#12012 + $k[$j++] = ""; //#12012 + } //#12012 + var _F = $k[--$j]; //#12013 + var _G = $k[--$j]; //#12013 + var _H = $get(_G, _F) !== undefined; //#12013 + $k[$j++] = _G; //#12015 + $k[$j++] = _F; //#12015 + if (!_H) { //#12015 + $j -= 2; //#12014 + $k[$j++] = 'bwipp.auspostBadFCC#12014'; //#12014 + $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#12014 + bwipp_raiseerror(); //#12014 + } //#12014 + var _I = $k[--$j]; //#12016 + $_.encstr = $s($get($k[--$j], _I)); //#12016 + $k[$j++] = true; //#12023 + for (var _M = 0, _N = 1; _M < _N; _M++) { //#12023 + if ($_.barlen < 10) { //#12021 + $j--; //#12021 + $k[$j++] = false; //#12021 + break; //#12021 + } //#12021 + var _Q = $geti($_.barcode, 2, 8); //#12022 + for (var _R = 0, _S = _Q.length; _R < _S; _R++) { //#12022 + var _T = $get(_Q, _R); //#12022 + if ((_T < 48) || (_T > 57)) { //#12022 + $j--; //#12022 + $k[$j++] = false; //#12022 + break; //#12022 + } //#12022 + } //#12022 + } //#12022 + if ($nt($k[--$j])) { //#12026 + $k[$j++] = 'bwipp.auspostIncompleteDPID#12025'; //#12025 + $k[$j++] = "The DPID must be 8 digits"; //#12025 + bwipp_raiseerror(); //#12025 + } //#12025 + var _X = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#12029 + if ((($_.barlen - 10) * _X) > (($_.encstr.length - 22) - 14)) { //#12032 + $k[$j++] = 'bwipp.auspostTooLong#12031'; //#12031 + $k[$j++] = "The message is too long"; //#12031 + bwipp_raiseerror(); //#12031 + } //#12031 + $puti($_.encstr, 0, $get($_.encs, 74)); //#12035 + for (var _c = 0; _c <= 1; _c += 1) { //#12042 + $_.i = _c; //#12039 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12041 + } //#12041 + for (var _k = 2; _k <= 9; _k += 1) { //#12050 + $_.i = _k; //#12046 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12048 + $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12049 + } //#12049 + if ($eq($_.custinfoenc, "numeric")) { //#12078 + for (var _15 = 0, _14 = $_.barlen - 11; _15 <= _14; _15 += 1) { //#12063 + $_.i = _15; //#12055 + var _19 = $get($_.barcode, $_.i + 10); //#12056 + $k[$j++] = $_.encs; //#12059 + $k[$j++] = _19; //#12059 + if ((_19 < 48) || (_19 > 57)) { //#12059 + $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#12058'; //#12058 + $k[$j++] = "The customer information data contains a non-digit character"; //#12058 + bwipp_raiseerror(); //#12058 + } //#12058 + var _1A = $k[--$j]; //#12060 + $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_1A - 48) + 64))); //#12061 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12062 + } //#12062 + $_.ciflen = ($_.barlen - 10) * 2; //#12064 + } else { //#12078 + for (var _1S = 0, _1R = $_.barlen - 11; _1S <= _1R; _1S += 1) { //#12077 + $_.i = _1S; //#12067 + $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#12068 + if ($nt($k[--$j])) { //#12071 + $j--; //#12070 + $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#12070'; //#12070 + $k[$j++] = "The customer information contains an invalid character"; //#12070 + bwipp_raiseerror(); //#12070 + } //#12070 + $_.indx = $k[--$j].length; //#12072 + $j -= 2; //#12073 + $_.enc = $get($_.encs, $_.indx); //#12074 + $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#12075 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 + } //#12076 + $_.ciflen = ($_.barlen - 10) * 3; //#12078 + } //#12078 + for (var _1t = 22 + $_.ciflen, _1s = $_.encstr.length - 14; _1t <= _1s; _1t += 1) { //#12084 + $puti($_.encstr, _1t, $get($_.encs, 75)); //#12083 + } //#12083 + if (!bwipp_auspost.__12107__) { //#12107 + $_ = Object.create($_); //#12107 + $_.rstable = $a(64 * 64); //#12088 + $k[$j++] = $_.rstable; //#12089 + $k[$j++] = 0; //#12089 + $k[$j++] = Infinity; //#12089 + for (var _1z = 0, _20 = 64; _1z < _20; _1z++) { //#12089 + $k[$j++] = 0; //#12089 + } //#12089 + var _21 = $a(); //#12089 + var _22 = $k[--$j]; //#12089 + $puti($k[--$j], _22, _21); //#12089 + $k[$j++] = $_.rstable; //#12090 + $k[$j++] = 64; //#12090 + $k[$j++] = Infinity; //#12090 + for (var _25 = 0; _25 <= 63; _25 += 1) { //#12090 + $k[$j++] = _25; //#12090 } //#12090 - if ($eq($_.enc, "2")) { //#12095 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12093 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12094 - } //#12094 - if ($eq($_.enc, "3")) { //#12099 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12097 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12098 - } //#12098 - } //#12098 + var _26 = $a(); //#12090 + var _27 = $k[--$j]; //#12090 + $puti($k[--$j], _27, _26); //#12090 + $_.prev = 1; //#12091 + for (var _29 = 0, _2A = 64; _29 < _2A; _29++) { //#12106 + $_.next = $_.prev << 1; //#12093 + if (($_.next & 64) != 0) { //#12096 + $_.next = $_.next ^ 67; //#12095 + } //#12095 + for (var _2E = 0; _2E <= 63; _2E += 1) { //#12104 + $_.j = _2E; //#12098 + $_.nextcell = function() { + $k[$j++] = $_.rstable; //#12099 + $k[$j++] = (64 * $_.next) + $_.j; //#12099 + }; //#12099 + $_.nextcell(); //#12100 + var _2M = $k[--$j]; //#12100 + $put($k[--$j], _2M, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#12100 + $_.nextcell(); //#12101 + var _2O = $k[--$j]; //#12101 + if (($get($k[--$j], _2O) & 64) != 0) { //#12103 + $_.nextcell(); //#12102 + $_.nextcell(); //#12102 + var _2R = $k[--$j]; //#12102 + var _2T = $get($k[--$j], _2R); //#12102 + var _2U = $k[--$j]; //#12102 + $put($k[--$j], _2U, _2T ^ 67); //#12102 + } //#12102 + } //#12102 + $_.prev = $_.next; //#12105 + } //#12105 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12105 + bwipp_auspost.__12107__ = 1; //#12105 + $_ = Object.getPrototypeOf($_); //#12105 + } //#12105 + $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#12110 + $k[$j++] = $_.rscodes; //#12111 + $k[$j++] = 0; //#12111 $k[$j++] = Infinity; //#12111 - var _1J = $_.bbs; //#12105 - var _1K = $_.bhs; //#12106 - $k[$j++] = Infinity; //#12107 - for (var _1M = 0, _1N = $_.bhs.length - 1; _1M < _1N; _1M++) { //#12107 - $k[$j++] = 1.44; //#12107 - $k[$j++] = 1.872; //#12107 - } //#12107 - $k[$j++] = 1.44; //#12107 - var _1O = $a(); //#12107 - $k[$j++] = 'ren'; //#12110 - $k[$j++] = bwipp_renlinear; //#12110 - $k[$j++] = 'bbs'; //#12110 - $k[$j++] = _1J; //#12110 - $k[$j++] = 'bhs'; //#12110 - $k[$j++] = _1K; //#12110 - $k[$j++] = 'sbs'; //#12110 - $k[$j++] = _1O; //#12110 - if ($_.includetext) { //#12110 - $k[$j++] = 'txt'; //#12109 - $k[$j++] = $_.txt; //#12109 - } //#12109 - $k[$j++] = 'opt'; //#12111 - $k[$j++] = $_.options; //#12111 - var _1S = $d(); //#12111 - $k[$j++] = _1S; //#12114 - if (!$_.dontdraw) { //#12114 - bwipp_renlinear(); //#12114 - } //#12114 - $_ = Object.getPrototypeOf($_); //#12116 - $_ = Object.getPrototypeOf($_); //#12118 -} - -function bwipp_japanpost() { - $_ = Object.create($_); //#12148 - $_.dontdraw = false; //#12151 - $_.includetext = false; //#12152 - $_.includecheckintext = false; //#12153 - $_.textfont = "OCR-B"; //#12154 - $_.textsize = 10; //#12155 - $_.textyoffset = -8; //#12156 - $_.height = 0.175; //#12157 - $k[$j++] = $_; //#12159 - bwipp_processoptions(); //#12159 - $_.options = $k[--$j]; //#12159 - $_.barcode = $k[--$j]; //#12160 - bwipp_loadctx(bwipp_japanpost) //#12162 - $forall($_.barcode, function() { //#12171 - var _3 = $k[--$j]; //#12166 - if (!(((_3 >= 48) && (_3 <= 57)) || (((_3 >= 65) && (_3 <= 90)) || (_3 == 45)))) { //#12170 - $k[$j++] = 'bwipp.japanPostBadCharacter#12169'; //#12169 - $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12169 - if ('raiseerror'() === true) { - return true; - } //#12169 - } //#12169 - }); //#12169 - if (!bwipp_japanpost.__12183__) { //#12183 - $_ = Object.create($_); //#12183 - $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12179 - $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12182 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12182 - bwipp_japanpost.__12183__ = 1; //#12182 - $_ = Object.getPrototypeOf($_); //#12182 - } //#12182 - $_.barlen = $_.barcode.length; //#12185 - $_.encstr = $s(((20 + 1) * 3) + 4); //#12187 - $_.digits = $a(20); //#12188 - $_.txt = $a($_.barlen + 1); //#12189 - $puti($_.encstr, 0, $get($_.encs, 19)); //#12192 - $_.checksum = 0; //#12194 - $_.j = 0; //#12195 - $_.i = 0; //#12195 - $k[$j++] = true; //#12230 - for (var _G = 0, _F = $_.barlen - 1; _G <= _F; _G += 1) { //#12230 - $_.i = _G; //#12198 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12199 - $j--; //#12200 - $_.indx = $k[--$j].length; //#12201 - $j -= 2; //#12202 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12213 - if ($_.j > 18) { //#12204 - $j--; //#12204 - $k[$j++] = false; //#12204 - break; //#12204 - } //#12204 - $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12208 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12209 - $_.checksum = $_.checksum + $_.digit; //#12210 - $put($_.digits, $_.j, $_.digit); //#12211 - $_.j = $_.j + 1; //#12212 - } //#12212 - if ($_.j > 19) { //#12214 - $j--; //#12214 - $k[$j++] = false; //#12214 - break; //#12214 - } //#12214 - $_.digit = 0; //#12215 - if ($_.indx == 37) { //#12218 - $_.digit = 14; //#12217 - } //#12217 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12221 - $_.digit = ($_.indx - 1) % 10; //#12220 - } //#12220 - if ($_.indx < 11) { //#12224 - $_.digit = $_.indx; //#12223 - } //#12223 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12225 - $_.checksum = $_.checksum + $_.digit; //#12226 - $put($_.digits, $_.j, $_.digit); //#12227 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12228 - $_.j = $_.j + 1; //#12229 - } //#12229 - if ($nt($k[--$j])) { //#12234 - $k[$j++] = 'bwipp.japanpostTooLong#12233'; //#12233 - $k[$j++] = "The input is too long"; //#12233 - bwipp_raiseerror(); //#12233 - } //#12233 - for (var _16 = $_.j, _15 = 20 - 1; _16 <= _15; _16 += 1) { //#12242 - $_.k = _16; //#12238 - $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12239 - $_.checksum = $_.checksum + 14; //#12240 - $put($_.digits, $_.k, 14); //#12241 - } //#12241 - $_.checksum = 19 - ($_.checksum % 19); //#12245 - $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12246 - $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12249 - $_.checkdigit = " "; //#12250 - if ($_.includecheckintext) { //#12253 - $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12252 - } //#12252 - $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12254 - $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12257 - $_.bbs = $a((21 * 3) + 4); //#12259 - $_.bhs = $a($_.bbs.length); //#12260 - for (var _1f = 0, _1e = $_.bbs.length - 1; _1f <= _1e; _1f += 1) { //#12284 - $_.i = _1f; //#12262 - $_.enc = $geti($_.encstr, $_.i, 1); //#12263 - $_.bunit = 0; //#12264 - $_.hunit = 0; //#12265 - if ($eq($_.enc, "0")) { //#12269 - $_.bunit = 3; //#12267 - $_.hunit = 2; //#12268 - } //#12268 - if ($eq($_.enc, "1")) { //#12273 - $_.bunit = 0; //#12271 - $_.hunit = 5; //#12272 - } //#12272 - if ($eq($_.enc, "2")) { //#12277 - $_.bunit = 3; //#12275 - $_.hunit = 5; //#12276 - } //#12276 - if ($eq($_.enc, "3")) { //#12281 - $_.bunit = 0; //#12279 - $_.hunit = 8; //#12280 - } //#12280 - $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12282 - $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12283 - } //#12283 - $k[$j++] = Infinity; //#12295 - var _1v = $_.bbs; //#12289 - var _1w = $_.bhs; //#12290 + for (var _2b = 0, _2c = 4; _2b < _2c; _2b++) { //#12111 + $k[$j++] = 0; //#12111 + } //#12111 + var _2d = $a(); //#12111 + var _2e = $k[--$j]; //#12111 + $puti($k[--$j], _2e, _2d); //#12111 + for (var _2i = 2, _2h = $_.encstr.length - 16; _2i <= _2h; _2i += 3) { //#12119 + $_.i = _2i; //#12113 + $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#12118 + } //#12118 + for (var _2w = $_.rscodes.length - 5; _2w >= 0; _2w -= 1) { //#12128 + $_.i = _2w; //#12121 + for (var _2x = 0; _2x <= 4; _2x += 1) { //#12127 + $_.j = _2x; //#12123 + $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#12126 + } //#12126 + } //#12126 + $_.checkcode = $strcpy($s(12), "000000000000"); //#12129 + for (var _3F = 0; _3F <= 3; _3F += 1) { //#12134 + $_.i = _3F; //#12131 + $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#12132 + $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#12133 + } //#12133 + $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#12137 + $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#12138 + $_.bbs = $a($_.encstr.length); //#12140 + $_.bhs = $a($_.encstr.length); //#12141 + for (var _3c = 0, _3b = $_.encstr.length - 1; _3c <= _3b; _3c += 1) { //#12161 + $_.i = _3c; //#12143 + $_.enc = $geti($_.encstr, $_.i, 1); //#12144 + if ($eq($_.enc, "0")) { //#12148 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12146 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12147 + } //#12147 + if ($eq($_.enc, "1")) { //#12152 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12150 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12151 + } //#12151 + if ($eq($_.enc, "2")) { //#12156 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12154 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12155 + } //#12155 + if ($eq($_.enc, "3")) { //#12160 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12158 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12159 + } //#12159 + } //#12159 + $k[$j++] = Infinity; //#12164 + var _48 = $_.bbs; //#12166 + var _49 = $_.bhs; //#12167 + $k[$j++] = Infinity; //#12168 + for (var _4B = 0, _4C = $_.bhs.length - 1; _4B < _4C; _4B++) { //#12168 + $k[$j++] = 1.44; //#12168 + $k[$j++] = 1.872; //#12168 + } //#12168 + $k[$j++] = 1.44; //#12168 + var _4D = $a(); //#12168 + $k[$j++] = 'ren'; //#12171 + $k[$j++] = bwipp_renlinear; //#12171 + $k[$j++] = 'bbs'; //#12171 + $k[$j++] = _48; //#12171 + $k[$j++] = 'bhs'; //#12171 + $k[$j++] = _49; //#12171 + $k[$j++] = 'sbs'; //#12171 + $k[$j++] = _4D; //#12171 + if ($_.includetext) { //#12171 + $k[$j++] = 'txt'; //#12170 + $k[$j++] = $_.txt; //#12170 + } //#12170 + $k[$j++] = 'opt'; //#12172 + $k[$j++] = $_.options; //#12172 + var _4H = $d(); //#12172 + $k[$j++] = _4H; //#12175 + if (!$_.dontdraw) { //#12175 + bwipp_renlinear(); //#12175 + } //#12175 + $_ = Object.getPrototypeOf($_); //#12177 + $_ = Object.getPrototypeOf($_); //#12179 +} //bwipp_auspost +function bwipp_kix() { + $_ = Object.create($_); //#12209 + $_.dontdraw = false; //#12212 + $_.includetext = false; //#12213 + $_.textfont = "OCR-B"; //#12214 + $_.textsize = 10; //#12215 + $_.textyoffset = -8; //#12216 + $_.height = 0.175; //#12217 + $k[$j++] = $_; //#12219 + bwipp_processoptions(); //#12219 + $_.options = $k[--$j]; //#12219 + $_.barcode = $k[--$j]; //#12220 + if ($eq($_.barcode, "")) { //#12224 + $k[$j++] = 'bwipp.kixEmptyData#12223'; //#12223 + $k[$j++] = "The data must not be empty"; //#12223 + bwipp_raiseerror(); //#12223 + } //#12223 + bwipp_loadctx(bwipp_kix) //#12226 + if (!bwipp_kix.__12243__) { //#12243 + $_ = Object.create($_); //#12243 + $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12237 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12240 + $_.charvals = new Map; //#12241 + for (var _4 = 0; _4 <= 35; _4 += 1) { //#12242 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#12242 + } //#12242 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12242 + bwipp_kix.__12243__ = 1; //#12242 + $_ = Object.getPrototypeOf($_); //#12242 + } //#12242 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12250 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12247 + if (!_F) { //#12249 + $k[$j++] = 'bwipp.kixBadCharacter#12248'; //#12248 + $k[$j++] = "KIX must contain only capital letters and digits"; //#12248 + bwipp_raiseerror(); //#12248 + } //#12248 + } //#12248 + $_.barlen = $_.barcode.length; //#12252 + $_.encstr = $s($_.barlen * 4); //#12253 + $_.txt = $a($_.barlen); //#12254 + for (var _N = 0, _M = $_.barlen - 1; _N <= _M; _N += 1) { //#12261 + $_.i = _N; //#12257 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12258 + $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12259 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12260 + } //#12260 + $_.bbs = $a($_.encstr.length); //#12263 + $_.bhs = $a($_.encstr.length); //#12264 + for (var _o = 0, _n = $_.encstr.length - 1; _o <= _n; _o += 1) { //#12284 + $_.i = _o; //#12266 + $_.enc = $geti($_.encstr, $_.i, 1); //#12267 + if ($eq($_.enc, "0")) { //#12271 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12269 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12270 + } //#12270 + if ($eq($_.enc, "1")) { //#12275 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12273 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12274 + } //#12274 + if ($eq($_.enc, "2")) { //#12279 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12277 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12278 + } //#12278 + if ($eq($_.enc, "3")) { //#12283 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12281 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12282 + } //#12282 + } //#12282 + $k[$j++] = Infinity; //#12287 + var _1K = $_.bbs; //#12289 + var _1L = $_.bhs; //#12290 $k[$j++] = Infinity; //#12291 - for (var _1y = 0, _1z = $_.bhs.length - 1; _1y < _1z; _1y++) { //#12291 + for (var _1N = 0, _1O = $_.bhs.length - 1; _1N < _1O; _1N++) { //#12291 $k[$j++] = 1.44; //#12291 $k[$j++] = 1.872; //#12291 } //#12291 $k[$j++] = 1.44; //#12291 - var _20 = $a(); //#12291 + var _1P = $a(); //#12291 $k[$j++] = 'ren'; //#12294 $k[$j++] = bwipp_renlinear; //#12294 $k[$j++] = 'bbs'; //#12294 - $k[$j++] = _1v; //#12294 + $k[$j++] = _1K; //#12294 $k[$j++] = 'bhs'; //#12294 - $k[$j++] = _1w; //#12294 + $k[$j++] = _1L; //#12294 $k[$j++] = 'sbs'; //#12294 - $k[$j++] = _20; //#12294 + $k[$j++] = _1P; //#12294 if ($_.includetext) { //#12294 $k[$j++] = 'txt'; //#12293 $k[$j++] = $_.txt; //#12293 } //#12293 $k[$j++] = 'opt'; //#12295 $k[$j++] = $_.options; //#12295 - var _24 = $d(); //#12295 - $k[$j++] = _24; //#12298 + var _1T = $d(); //#12295 + $k[$j++] = _1T; //#12298 if (!$_.dontdraw) { //#12298 bwipp_renlinear(); //#12298 } //#12298 $_ = Object.getPrototypeOf($_); //#12300 $_ = Object.getPrototypeOf($_); //#12302 -} - -function bwipp_msi() { +} //bwipp_kix +function bwipp_japanpost() { $_ = Object.create($_); //#12332 $_.dontdraw = false; //#12335 - $_.includecheck = false; //#12336 - $_.includetext = false; //#12337 - $_.includecheckintext = false; //#12338 - $_.checktype = "unset"; //#12339 - $_.badmod11 = false; //#12340 - $_.textfont = "OCR-B"; //#12341 - $_.textsize = 10; //#12342 - $_.textyoffset = -8; //#12343 - $_.height = 1; //#12344 - $k[$j++] = $_; //#12346 - bwipp_processoptions(); //#12346 - $_.options = $k[--$j]; //#12346 - $_.barcode = $k[--$j]; //#12347 - if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12351 - $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12350'; //#12350 - $k[$j++] = "checktype requires includecheck"; //#12350 - bwipp_raiseerror(); //#12350 - } //#12350 - if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12355 - $k[$j++] = 'bwipp.msiBadMod11Mismatch#12354'; //#12354 - $k[$j++] = "badmod11 requires checktype with mod11"; //#12354 - bwipp_raiseerror(); //#12354 - } //#12354 - if ($eq($_.checktype, "unset")) { //#12357 - $_.checktype = "mod10"; //#12357 - } //#12357 - bwipp_loadctx(bwipp_msi) //#12359 - $forall($_.barcode, function() { //#12366 - var _B = $k[--$j]; //#12363 - if ((_B < 48) || (_B > 57)) { //#12365 - $k[$j++] = 'bwipp.msiBadCharacter#12364'; //#12364 - $k[$j++] = "MSI must contain only digits"; //#12364 - bwipp_raiseerror(); //#12364 - } //#12364 - }); //#12364 - if (!bwipp_msi.__12378__) { //#12378 - $_ = Object.create($_); //#12378 - $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12374 - $_.barchars = "0123456789"; //#12377 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12377 - bwipp_msi.__12378__ = 1; //#12377 - $_ = Object.getPrototypeOf($_); //#12377 - } //#12377 - $_.barlen = $_.barcode.length; //#12380 - $_.txtlen = $_.barlen; //#12381 + $_.includetext = false; //#12336 + $_.includecheckintext = false; //#12337 + $_.textfont = "OCR-B"; //#12338 + $_.textsize = 10; //#12339 + $_.textyoffset = -8; //#12340 + $_.height = 0.175; //#12341 + $k[$j++] = $_; //#12343 + bwipp_processoptions(); //#12343 + $_.options = $k[--$j]; //#12343 + $_.barcode = $k[--$j]; //#12344 + if ($eq($_.barcode, "")) { //#12348 + $k[$j++] = 'bwipp.japanpostEmptyData#12347'; //#12347 + $k[$j++] = "The data must not be empty"; //#12347 + bwipp_raiseerror(); //#12347 + } //#12347 + bwipp_loadctx(bwipp_japanpost) //#12350 + $forall($_.barcode, function() { //#12359 + var _4 = $k[--$j]; //#12354 + if (!(((_4 >= 48) && (_4 <= 57)) || (((_4 >= 65) && (_4 <= 90)) || (_4 == 45)))) { //#12358 + $k[$j++] = 'bwipp.japanpostBadCharacter#12357'; //#12357 + $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12357 + bwipp_raiseerror(); //#12357 + } //#12357 + }); //#12357 + if (!bwipp_japanpost.__12371__) { //#12371 + $_ = Object.create($_); //#12371 + $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12367 + $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12370 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12370 + bwipp_japanpost.__12371__ = 1; //#12370 + $_ = Object.getPrototypeOf($_); //#12370 + } //#12370 + $_.barlen = $_.barcode.length; //#12373 + $_.encstr = $s(((20 + 1) * 3) + 4); //#12375 + $_.digits = $a(20); //#12376 + $_.txt = $a($_.barlen + 1); //#12377 + $puti($_.encstr, 0, $get($_.encs, 19)); //#12380 + $_.checksum = 0; //#12382 + $_.j = 0; //#12383 + $_.i = 0; //#12383 + $k[$j++] = true; //#12418 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#12418 + $_.i = _H; //#12386 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12387 + $j--; //#12388 + $_.indx = $k[--$j].length; //#12389 + $j -= 2; //#12390 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12401 + if ($_.j > 18) { //#12392 + $j--; //#12392 + $k[$j++] = false; //#12392 + break; //#12392 + } //#12392 + $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12396 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12397 + $_.checksum = $_.checksum + $_.digit; //#12398 + $put($_.digits, $_.j, $_.digit); //#12399 + $_.j = $_.j + 1; //#12400 + } //#12400 + if ($_.j > 19) { //#12402 + $j--; //#12402 + $k[$j++] = false; //#12402 + break; //#12402 + } //#12402 + $_.digit = 0; //#12403 + if ($_.indx == 37) { //#12406 + $_.digit = 14; //#12405 + } //#12405 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12409 + $_.digit = ($_.indx - 1) % 10; //#12408 + } //#12408 + if ($_.indx < 11) { //#12412 + $_.digit = $_.indx; //#12411 + } //#12411 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12413 + $_.checksum = $_.checksum + $_.digit; //#12414 + $put($_.digits, $_.j, $_.digit); //#12415 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12416 + $_.j = $_.j + 1; //#12417 + } //#12417 + if ($nt($k[--$j])) { //#12422 + $k[$j++] = 'bwipp.japanpostTooLong#12421'; //#12421 + $k[$j++] = "The input is too long"; //#12421 + bwipp_raiseerror(); //#12421 + } //#12421 + for (var _17 = $_.j, _16 = 20 - 1; _17 <= _16; _17 += 1) { //#12430 + $_.k = _17; //#12426 + $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12427 + $_.checksum = $_.checksum + 14; //#12428 + $put($_.digits, $_.k, 14); //#12429 + } //#12429 + $_.checksum = 19 - ($_.checksum % 19); //#12433 + $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12434 + $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12437 + $_.checkdigit = " "; //#12438 + if ($_.includecheckintext) { //#12441 + $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12440 + } //#12440 + $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12442 + $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12445 + $_.bbs = $a((21 * 3) + 4); //#12447 + $_.bhs = $a($_.bbs.length); //#12448 + for (var _1g = 0, _1f = $_.bbs.length - 1; _1g <= _1f; _1g += 1) { //#12472 + $_.i = _1g; //#12450 + $_.enc = $geti($_.encstr, $_.i, 1); //#12451 + $_.bunit = 0; //#12452 + $_.hunit = 0; //#12453 + if ($eq($_.enc, "0")) { //#12457 + $_.bunit = 3; //#12455 + $_.hunit = 2; //#12456 + } //#12456 + if ($eq($_.enc, "1")) { //#12461 + $_.bunit = 0; //#12459 + $_.hunit = 5; //#12460 + } //#12460 + if ($eq($_.enc, "2")) { //#12465 + $_.bunit = 3; //#12463 + $_.hunit = 5; //#12464 + } //#12464 + if ($eq($_.enc, "3")) { //#12469 + $_.bunit = 0; //#12467 + $_.hunit = 8; //#12468 + } //#12468 + $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12470 + $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12471 + } //#12471 + $k[$j++] = Infinity; //#12475 + var _1w = $_.bbs; //#12477 + var _1x = $_.bhs; //#12478 + $k[$j++] = Infinity; //#12479 + for (var _1z = 0, _20 = $_.bhs.length - 1; _1z < _20; _1z++) { //#12479 + $k[$j++] = 1.44; //#12479 + $k[$j++] = 1.872; //#12479 + } //#12479 + $k[$j++] = 1.44; //#12479 + var _21 = $a(); //#12479 + $k[$j++] = 'ren'; //#12482 + $k[$j++] = bwipp_renlinear; //#12482 + $k[$j++] = 'bbs'; //#12482 + $k[$j++] = _1w; //#12482 + $k[$j++] = 'bhs'; //#12482 + $k[$j++] = _1x; //#12482 + $k[$j++] = 'sbs'; //#12482 + $k[$j++] = _21; //#12482 + if ($_.includetext) { //#12482 + $k[$j++] = 'txt'; //#12481 + $k[$j++] = $_.txt; //#12481 + } //#12481 + $k[$j++] = 'opt'; //#12483 + $k[$j++] = $_.options; //#12483 + var _25 = $d(); //#12483 + $k[$j++] = _25; //#12486 + if (!$_.dontdraw) { //#12486 + bwipp_renlinear(); //#12486 + } //#12486 + $_ = Object.getPrototypeOf($_); //#12488 + $_ = Object.getPrototypeOf($_); //#12490 +} //bwipp_japanpost +function bwipp_msi() { + $_ = Object.create($_); //#12520 + $_.dontdraw = false; //#12523 + $_.includecheck = false; //#12524 + $_.includetext = false; //#12525 + $_.includecheckintext = false; //#12526 + $_.checktype = "unset"; //#12527 + $_.badmod11 = false; //#12528 + $_.textfont = "OCR-B"; //#12529 + $_.textsize = 10; //#12530 + $_.textyoffset = -8; //#12531 + $_.height = 1; //#12532 + $k[$j++] = $_; //#12534 + bwipp_processoptions(); //#12534 + $_.options = $k[--$j]; //#12534 + $_.barcode = $k[--$j]; //#12535 + if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12539 + $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12538'; //#12538 + $k[$j++] = "checktype requires includecheck"; //#12538 + bwipp_raiseerror(); //#12538 + } //#12538 + if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12543 + $k[$j++] = 'bwipp.msiBadMod11Mismatch#12542'; //#12542 + $k[$j++] = "badmod11 requires checktype with mod11"; //#12542 + bwipp_raiseerror(); //#12542 + } //#12542 + if ($eq($_.checktype, "unset")) { //#12545 + $_.checktype = "mod10"; //#12545 + } //#12545 + bwipp_loadctx(bwipp_msi) //#12547 + $forall($_.barcode, function() { //#12554 + var _B = $k[--$j]; //#12551 + if ((_B < 48) || (_B > 57)) { //#12553 + $k[$j++] = 'bwipp.msiBadCharacter#12552'; //#12552 + $k[$j++] = "MSI must contain only digits"; //#12552 + bwipp_raiseerror(); //#12552 + } //#12552 + }); //#12552 + if (!bwipp_msi.__12566__) { //#12566 + $_ = Object.create($_); //#12566 + $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12562 + $_.barchars = "0123456789"; //#12565 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12565 + bwipp_msi.__12566__ = 1; //#12565 + $_ = Object.getPrototypeOf($_); //#12565 + } //#12565 + $_.barlen = $_.barcode.length; //#12568 + $_.txtlen = $_.barlen; //#12569 $_.mod10 = function() { - $_.code = $k[--$j]; //#12384 - $k[$j++] = 0; //#12385 - $k[$j++] = 0; //#12385 - $forall($_.code, function() { //#12385 - var _I = $k[--$j]; //#12385 - var _J = $k[--$j]; //#12385 - var _K = $k[--$j]; //#12385 - $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12385 - $k[$j++] = _K; //#12385 - }); //#12385 - $j--; //#12385 - var _L = $k[--$j]; //#12385 - $k[$j++] = _L * 2; //#12386 - $k[$j++] = 0; //#12386 - for (;;) { //#12386 - var _M = $k[--$j]; //#12386 - var _N = $k[--$j]; //#12386 - var _O = ~~(_N / 10); //#12386 - $k[$j++] = $f(_M + (_N % 10)); //#12386 - $k[$j++] = _O; //#12386 - if (_O == 0) { //#12386 - $j--; //#12386 - break; //#12386 - } //#12386 - var _P = $k[--$j]; //#12386 - var _Q = $k[--$j]; //#12386 - $k[$j++] = _P; //#12386 - $k[$j++] = _Q; //#12386 - } //#12386 - $k[$j++] = 0; //#12387 - $k[$j++] = 0; //#12387 - $forall($_.code, function() { //#12387 - var _S = $k[--$j]; //#12387 - var _T = $k[--$j]; //#12387 - var _U = $k[--$j]; //#12387 - $k[$j++] = $f(_T + $f(_S - 48)); //#12387 - $k[$j++] = _U; //#12387 - }); //#12387 - var _V = $k[--$j]; //#12387 - var _W = $k[--$j]; //#12387 - $k[$j++] = _V; //#12387 - $k[$j++] = _W; //#12387 - $j--; //#12387 - var _X = $k[--$j]; //#12387 - var _a = $s($_.code.length + 1); //#12389 - $puti(_a, 0, $_.code); //#12389 - $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12389 - $k[$j++] = _a; //#12389 - }; //#12389 + $_.code = $k[--$j]; //#12572 + $k[$j++] = 0; //#12573 + $k[$j++] = 0; //#12573 + $forall($_.code, function() { //#12573 + var _I = $k[--$j]; //#12573 + var _J = $k[--$j]; //#12573 + var _K = $k[--$j]; //#12573 + $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12573 + $k[$j++] = _K; //#12573 + }); //#12573 + $j--; //#12573 + var _L = $k[--$j]; //#12573 + $k[$j++] = _L * 2; //#12574 + $k[$j++] = 0; //#12574 + for (;;) { //#12574 + var _M = $k[--$j]; //#12574 + var _N = $k[--$j]; //#12574 + var _O = ~~(_N / 10); //#12574 + $k[$j++] = $f(_M + (_N % 10)); //#12574 + $k[$j++] = _O; //#12574 + if (_O == 0) { //#12574 + $j--; //#12574 + break; //#12574 + } //#12574 + var _P = $k[--$j]; //#12574 + var _Q = $k[--$j]; //#12574 + $k[$j++] = _P; //#12574 + $k[$j++] = _Q; //#12574 + } //#12574 + $k[$j++] = 0; //#12575 + $k[$j++] = 0; //#12575 + $forall($_.code, function() { //#12575 + var _S = $k[--$j]; //#12575 + var _T = $k[--$j]; //#12575 + var _U = $k[--$j]; //#12575 + $k[$j++] = $f(_T + $f(_S - 48)); //#12575 + $k[$j++] = _U; //#12575 + }); //#12575 + var _V = $k[--$j]; //#12575 + var _W = $k[--$j]; //#12575 + $k[$j++] = _V; //#12575 + $k[$j++] = _W; //#12575 + $j--; //#12575 + var _X = $k[--$j]; //#12575 + var _a = $s($_.code.length + 1); //#12577 + $puti(_a, 0, $_.code); //#12577 + $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12577 + $k[$j++] = _a; //#12577 + }; //#12577 $_.mod11 = function() { - $_.code = $k[--$j]; //#12393 - $k[$j++] = $_.code.length - 1; //#12394 - $forall($_.code, function() { //#12394 - var _g = $k[--$j]; //#12394 - var _h = $k[--$j]; //#12394 - $k[$j++] = $f(_g - 48); //#12394 - $k[$j++] = $f((_h % 6) + 2); //#12394 - $k[$j++] = $f(_h - 1); //#12394 - }); //#12394 - $j--; //#12394 - $k[$j++] = 0; //#12395 - for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12395 - var _l = $k[--$j]; //#12395 - var _m = $k[--$j]; //#12395 - var _n = $k[--$j]; //#12395 - $k[$j++] = $f(_l + (_n * _m)); //#12395 - } //#12395 - var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12397 - $k[$j++] = _p; //#12405 - if (_p == 10) { //#12404 - if ($_.badmod11) { //#12401 - $j--; //#12399 - var _s = $s($_.code.length + 2); //#12399 - $puti(_s, 0, $_.code); //#12399 - $puti(_s, $_.code.length, "10"); //#12399 - $k[$j++] = _s; //#12399 - } else { //#12401 - $j--; //#12401 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12401'; //#12401 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12401 - bwipp_raiseerror(); //#12401 - } //#12401 - } else { //#12404 - var _w = $s($_.code.length + 1); //#12404 - $puti(_w, 0, $_.code); //#12404 - $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12404 - $k[$j++] = _w; //#12404 - } //#12404 - }; //#12404 + $_.code = $k[--$j]; //#12581 + $k[$j++] = $_.code.length - 1; //#12582 + $forall($_.code, function() { //#12582 + var _g = $k[--$j]; //#12582 + var _h = $k[--$j]; //#12582 + $k[$j++] = $f(_g - 48); //#12582 + $k[$j++] = $f((_h % 6) + 2); //#12582 + $k[$j++] = $f(_h - 1); //#12582 + }); //#12582 + $j--; //#12582 + $k[$j++] = 0; //#12583 + for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12583 + var _l = $k[--$j]; //#12583 + var _m = $k[--$j]; //#12583 + var _n = $k[--$j]; //#12583 + $k[$j++] = $f(_l + (_n * _m)); //#12583 + } //#12583 + var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12585 + $k[$j++] = _p; //#12593 + if (_p == 10) { //#12592 + if ($_.badmod11) { //#12589 + $j--; //#12587 + var _s = $s($_.code.length + 2); //#12587 + $puti(_s, 0, $_.code); //#12587 + $puti(_s, $_.code.length, "10"); //#12587 + $k[$j++] = _s; //#12587 + } else { //#12589 + $j--; //#12589 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12589'; //#12589 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12589 + bwipp_raiseerror(); //#12589 + } //#12589 + } else { //#12592 + var _w = $s($_.code.length + 1); //#12592 + $puti(_w, 0, $_.code); //#12592 + $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12592 + $k[$j++] = _w; //#12592 + } //#12592 + }; //#12592 $_.ncrmod11 = function() { - $_.code = $k[--$j]; //#12409 - $k[$j++] = $_.code.length - 1; //#12410 - $forall($_.code, function() { //#12410 - var _13 = $k[--$j]; //#12410 - var _14 = $k[--$j]; //#12410 - $k[$j++] = $f(_13 - 48); //#12410 - $k[$j++] = $f((_14 % 8) + 2); //#12410 - $k[$j++] = $f(_14 - 1); //#12410 - }); //#12410 - $j--; //#12410 - $k[$j++] = 0; //#12411 - for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12411 - var _18 = $k[--$j]; //#12411 - var _19 = $k[--$j]; //#12411 - var _1A = $k[--$j]; //#12411 - $k[$j++] = $f(_18 + (_1A * _19)); //#12411 - } //#12411 - var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12413 - $k[$j++] = _1C; //#12421 - if (_1C == 10) { //#12420 - if ($_.badmod11) { //#12417 - $j--; //#12415 - var _1F = $s($_.code.length + 2); //#12415 - $puti(_1F, 0, $_.code); //#12415 - $puti(_1F, $_.code.length, "10"); //#12415 - $k[$j++] = _1F; //#12415 - } else { //#12417 - $j--; //#12417 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12417'; //#12417 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12417 - bwipp_raiseerror(); //#12417 - } //#12417 - } else { //#12420 - var _1J = $s($_.code.length + 1); //#12420 - $puti(_1J, 0, $_.code); //#12420 - $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12420 - $k[$j++] = _1J; //#12420 - } //#12420 - }; //#12420 - if (!bwipp_msi.__12433__) { //#12433 - $_ = Object.create($_); //#12433 + $_.code = $k[--$j]; //#12597 + $k[$j++] = $_.code.length - 1; //#12598 + $forall($_.code, function() { //#12598 + var _13 = $k[--$j]; //#12598 + var _14 = $k[--$j]; //#12598 + $k[$j++] = $f(_13 - 48); //#12598 + $k[$j++] = $f((_14 % 8) + 2); //#12598 + $k[$j++] = $f(_14 - 1); //#12598 + }); //#12598 + $j--; //#12598 + $k[$j++] = 0; //#12599 + for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12599 + var _18 = $k[--$j]; //#12599 + var _19 = $k[--$j]; //#12599 + var _1A = $k[--$j]; //#12599 + $k[$j++] = $f(_18 + (_1A * _19)); //#12599 + } //#12599 + var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12601 + $k[$j++] = _1C; //#12609 + if (_1C == 10) { //#12608 + if ($_.badmod11) { //#12605 + $j--; //#12603 + var _1F = $s($_.code.length + 2); //#12603 + $puti(_1F, 0, $_.code); //#12603 + $puti(_1F, $_.code.length, "10"); //#12603 + $k[$j++] = _1F; //#12603 + } else { //#12605 + $j--; //#12605 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12605'; //#12605 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12605 + bwipp_raiseerror(); //#12605 + } //#12605 + } else { //#12608 + var _1J = $s($_.code.length + 1); //#12608 + $puti(_1J, 0, $_.code); //#12608 + $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12608 + $k[$j++] = _1J; //#12608 + } //#12608 + }; //#12608 + if (!bwipp_msi.__12621__) { //#12621 + $_ = Object.create($_); //#12621 var _1N = new Map([ ["mod10", function() { - $_.mod10(); //#12426 + $_.mod10(); //#12614 }], ["mod1010", function() { - $_.mod10(); //#12427 - $_.mod10(); //#12427 + $_.mod10(); //#12615 + $_.mod10(); //#12615 }], ["mod11", function() { - $_.mod11(); //#12428 + $_.mod11(); //#12616 }], ["ncrmod11", function() { - $_.ncrmod11(); //#12429 + $_.ncrmod11(); //#12617 }], ["mod1110", function() { - $_.mod11(); //#12430 - $_.mod10(); //#12430 + $_.mod11(); //#12618 + $_.mod10(); //#12618 }], ["ncrmod1110", function() { - $_.ncrmod11(); //#12431 - $_.mod10(); //#12431 + $_.ncrmod11(); //#12619 + $_.mod10(); //#12619 }] - ]); //#12431 - $_.checkfunc = _1N; //#12432 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12432 - bwipp_msi.__12433__ = 1; //#12432 - $_ = Object.getPrototypeOf($_); //#12432 - } //#12432 - if ($_.includecheck) { //#12443 - var _1Q = $_.checkfunc; //#12437 - var _1R = $_.checktype; //#12437 - var _1S = $get(_1Q, _1R) !== undefined; //#12437 - $k[$j++] = _1Q; //#12439 - $k[$j++] = _1R; //#12439 - if (!_1S) { //#12439 - $j -= 2; //#12438 - $k[$j++] = 'bwipp.msiBadCharacter#12438'; //#12438 - $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12438 - bwipp_raiseerror(); //#12438 - } //#12438 - var _1T = $k[--$j]; //#12440 - var _1V = $get($k[--$j], _1T); //#12440 - $k[$j++] = $_.barcode; //#12440 + ]); //#12619 + $_.checkfunc = _1N; //#12620 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12620 + bwipp_msi.__12621__ = 1; //#12620 + $_ = Object.getPrototypeOf($_); //#12620 + } //#12620 + if ($_.includecheck) { //#12631 + var _1Q = $_.checkfunc; //#12625 + var _1R = $_.checktype; //#12625 + var _1S = $get(_1Q, _1R) !== undefined; //#12625 + $k[$j++] = _1Q; //#12627 + $k[$j++] = _1R; //#12627 + if (!_1S) { //#12627 + $j -= 2; //#12626 + $k[$j++] = 'bwipp.msiBadCharacter#12626'; //#12626 + $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12626 + bwipp_raiseerror(); //#12626 + } //#12626 + var _1T = $k[--$j]; //#12628 + var _1V = $get($k[--$j], _1T); //#12628 + $k[$j++] = $_.barcode; //#12628 if (_1V() === true) { return true; - } //#12440 - $_.barcode = $k[--$j]; //#12440 - $_.barlen = $_.barcode.length; //#12441 - if ($_.includecheckintext) { //#12442 - $_.txtlen = $_.barlen; //#12442 - } //#12442 - } //#12442 - $_.sbs = $s(($_.barlen * 8) + 5); //#12445 - $_.txt = $a($_.barlen); //#12446 - $puti($_.sbs, 0, $get($_.encs, 10)); //#12449 - for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12461 - $_.i = _1k; //#12452 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12454 - $j--; //#12455 - $_.indx = $k[--$j].length; //#12456 - $j -= 2; //#12457 - $_.enc = $get($_.encs, $_.indx); //#12458 - $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12459 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12460 - } //#12460 - $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12464 - $k[$j++] = Infinity; //#12475 - $k[$j++] = Infinity; //#12469 - var _2A = $_.sbs; //#12469 - for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12469 - $k[$j++] = $get(_2A, _2B) - 48; //#12469 - } //#12469 - var _2E = $a(); //#12469 - $k[$j++] = Infinity; //#12470 - for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12470 - $k[$j++] = $_.height; //#12470 - } //#12470 - var _2J = $a(); //#12470 - $k[$j++] = Infinity; //#12471 - for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12471 - $k[$j++] = 0; //#12471 - } //#12471 - var _2N = $a(); //#12471 - $k[$j++] = 'ren'; //#12474 - $k[$j++] = bwipp_renlinear; //#12474 - $k[$j++] = 'sbs'; //#12474 - $k[$j++] = _2E; //#12474 - $k[$j++] = 'bhs'; //#12474 - $k[$j++] = _2J; //#12474 - $k[$j++] = 'bbs'; //#12474 - $k[$j++] = _2N; //#12474 - if ($_.includetext) { //#12474 - $k[$j++] = 'txt'; //#12473 - $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12473 - } //#12473 - $k[$j++] = 'opt'; //#12475 - $k[$j++] = $_.options; //#12475 - var _2T = $d(); //#12475 - $k[$j++] = _2T; //#12478 - if (!$_.dontdraw) { //#12478 - bwipp_renlinear(); //#12478 - } //#12478 - $_ = Object.getPrototypeOf($_); //#12480 - $_ = Object.getPrototypeOf($_); //#12482 -} - + } //#12628 + $_.barcode = $k[--$j]; //#12628 + $_.barlen = $_.barcode.length; //#12629 + if ($_.includecheckintext) { //#12630 + $_.txtlen = $_.barlen; //#12630 + } //#12630 + } //#12630 + $_.sbs = $s(($_.barlen * 8) + 5); //#12633 + $_.txt = $a($_.barlen); //#12634 + $puti($_.sbs, 0, $get($_.encs, 10)); //#12637 + for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12649 + $_.i = _1k; //#12640 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12642 + $j--; //#12643 + $_.indx = $k[--$j].length; //#12644 + $j -= 2; //#12645 + $_.enc = $get($_.encs, $_.indx); //#12646 + $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12647 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12648 + } //#12648 + $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12652 + $k[$j++] = Infinity; //#12655 + $k[$j++] = Infinity; //#12657 + var _2A = $_.sbs; //#12657 + for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12657 + $k[$j++] = $get(_2A, _2B) - 48; //#12657 + } //#12657 + var _2E = $a(); //#12657 + $k[$j++] = Infinity; //#12658 + for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12658 + $k[$j++] = $_.height; //#12658 + } //#12658 + var _2J = $a(); //#12658 + $k[$j++] = Infinity; //#12659 + for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12659 + $k[$j++] = 0; //#12659 + } //#12659 + var _2N = $a(); //#12659 + $k[$j++] = 'ren'; //#12662 + $k[$j++] = bwipp_renlinear; //#12662 + $k[$j++] = 'sbs'; //#12662 + $k[$j++] = _2E; //#12662 + $k[$j++] = 'bhs'; //#12662 + $k[$j++] = _2J; //#12662 + $k[$j++] = 'bbs'; //#12662 + $k[$j++] = _2N; //#12662 + if ($_.includetext) { //#12662 + $k[$j++] = 'txt'; //#12661 + $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12661 + } //#12661 + $k[$j++] = 'opt'; //#12663 + $k[$j++] = $_.options; //#12663 + var _2T = $d(); //#12663 + $k[$j++] = _2T; //#12666 + if (!$_.dontdraw) { //#12666 + bwipp_renlinear(); //#12666 + } //#12666 + $_ = Object.getPrototypeOf($_); //#12668 + $_ = Object.getPrototypeOf($_); //#12670 +} //bwipp_msi function bwipp_plessey() { - $_ = Object.create($_); //#12512 - $_.dontdraw = false; //#12515 - $_.includetext = false; //#12516 - $_.validatecheck = false; //#12517 - $_.includecheckintext = false; //#12518 - $_.unidirectional = false; //#12519 - $_.textfont = "OCR-B"; //#12520 - $_.textsize = 10; //#12521 - $_.textyoffset = -8; //#12522 - $_.height = 1; //#12523 - $k[$j++] = $_; //#12525 - bwipp_processoptions(); //#12525 - $_.options = $k[--$j]; //#12525 - var _1 = $k[--$j]; //#12526 - $_.barcode = _1; //#12526 - bwipp_loadctx(bwipp_plessey) //#12528 - if (!bwipp_plessey.__12544__) { //#12544 - $_ = Object.create($_); //#12544 - $_.barchars = "0123456789ABCDEF"; //#12532 - $_.charvals = new Map; //#12533 - for (var _2 = 0; _2 <= 15; _2 += 1) { //#12534 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#12534 - } //#12534 - $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12543 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12543 - bwipp_plessey.__12544__ = 1; //#12543 - $_ = Object.getPrototypeOf($_); //#12543 - } //#12543 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12551 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12548 - if (!_E) { //#12550 - $k[$j++] = 'bwipp.plesseyBadCharacter#12549'; //#12549 - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12549 - bwipp_raiseerror(); //#12549 - } //#12549 - } //#12549 - $k[$j++] = 'barlen'; //#12553 - $k[$j++] = $_.barcode.length; //#12553 - if ($_.validatecheck) { //#12553 - var _H = $k[--$j]; //#12553 - $k[$j++] = $f(_H - 2); //#12553 - } //#12553 - var _I = $k[--$j]; //#12553 - $_[$k[--$j]] = _I; //#12553 - $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12556 - $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12557 - for (var _R = 0, _Q = $f($_.barlen - 1); _R <= _Q; _R += 1) { //#12567 - $_.i = _R; //#12559 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12560 - $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12566 - } //#12566 - $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12568 - for (var _h = 0, _g = $f(($_.barlen * 4) - 1); _h <= _g; _h += 1) { //#12577 - $_.i = _h; //#12570 - if ($get($_.checkbits, $_.i) == 1) { //#12576 - for (var _l = 0; _l <= 8; _l += 1) { //#12575 - $_.j = _l; //#12573 - $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12574 - } //#12574 - } //#12574 - } //#12574 - $_.checkval = 0; //#12578 - for (var _w = 0; _w <= 7; _w += 1) { //#12582 - $_.i = _w; //#12580 - $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12581 - } //#12581 - $_.checksum1 = $_.checkval & 15; //#12583 - $_.checksum2 = $_.checkval >>> 4; //#12584 - if ($_.validatecheck) { //#12591 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12589 - $k[$j++] = 'bwipp.plesseyBadCheckDigits#12588'; //#12588 - $k[$j++] = "Incorrect Plessey check digits provided"; //#12588 - bwipp_raiseerror(); //#12588 - } //#12588 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12590 - } //#12590 - var _1N = $_.unidirectional ? 27 : 33; //#12593 - $_.sbs = $s($f(($_.barlen * 8) + _1N)); //#12593 - $_.txt = $a($f($_.barlen + 2)); //#12594 - $puti($_.sbs, 0, $get($_.encs, 16)); //#12597 - for (var _1W = 0, _1V = $f($_.barlen - 1); _1W <= _1V; _1W += 1) { //#12604 - $_.i = _1W; //#12600 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12601 - $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12602 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12603 - } //#12603 - $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12607 - $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12608 - if ($_.includecheckintext) { //#12614 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12610 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12611 - } else { //#12614 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12613 - $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12614 - } //#12614 - var _2e = $_.unidirectional ? 18 : 17; //#12618 - $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2e)); //#12618 - $k[$j++] = Infinity; //#12629 - $k[$j++] = Infinity; //#12623 - var _2g = $_.sbs; //#12623 - for (var _2h = 0, _2i = _2g.length; _2h < _2i; _2h++) { //#12623 - $k[$j++] = $get(_2g, _2h) - 48; //#12623 - } //#12623 - var _2k = $a(); //#12623 - $k[$j++] = Infinity; //#12624 - for (var _2m = 0, _2n = ~~(($_.sbs.length + 1) / 2); _2m < _2n; _2m++) { //#12624 - $k[$j++] = $_.height; //#12624 - } //#12624 - var _2p = $a(); //#12624 - $k[$j++] = Infinity; //#12625 - for (var _2r = 0, _2s = ~~(($_.sbs.length + 1) / 2); _2r < _2s; _2r++) { //#12625 - $k[$j++] = 0; //#12625 - } //#12625 - var _2t = $a(); //#12625 - $k[$j++] = 'ren'; //#12628 - $k[$j++] = bwipp_renlinear; //#12628 - $k[$j++] = 'sbs'; //#12628 - $k[$j++] = _2k; //#12628 - $k[$j++] = 'bhs'; //#12628 - $k[$j++] = _2p; //#12628 - $k[$j++] = 'bbs'; //#12628 - $k[$j++] = _2t; //#12628 - if ($_.includetext) { //#12628 - $k[$j++] = 'txt'; //#12627 - $k[$j++] = $_.txt; //#12627 - } //#12627 - $k[$j++] = 'opt'; //#12629 - $k[$j++] = $_.options; //#12629 - var _2x = $d(); //#12629 - $k[$j++] = _2x; //#12632 - if (!$_.dontdraw) { //#12632 - bwipp_renlinear(); //#12632 - } //#12632 - $_ = Object.getPrototypeOf($_); //#12634 - $_ = Object.getPrototypeOf($_); //#12636 -} - + $_ = Object.create($_); //#12700 + $_.dontdraw = false; //#12703 + $_.includetext = false; //#12704 + $_.validatecheck = false; //#12705 + $_.includecheckintext = false; //#12706 + $_.unidirectional = false; //#12707 + $_.textfont = "OCR-B"; //#12708 + $_.textsize = 10; //#12709 + $_.textyoffset = -8; //#12710 + $_.height = 1; //#12711 + $k[$j++] = $_; //#12713 + bwipp_processoptions(); //#12713 + $_.options = $k[--$j]; //#12713 + $_.barcode = $k[--$j]; //#12714 + if ($eq($_.barcode, "")) { //#12718 + $k[$j++] = 'bwipp.plesseyEmptyData#12717'; //#12717 + $k[$j++] = "The data must not be empty"; //#12717 + bwipp_raiseerror(); //#12717 + } //#12717 + bwipp_loadctx(bwipp_plessey) //#12720 + if (!bwipp_plessey.__12736__) { //#12736 + $_ = Object.create($_); //#12736 + $_.barchars = "0123456789ABCDEF"; //#12724 + $_.charvals = new Map; //#12725 + for (var _3 = 0; _3 <= 15; _3 += 1) { //#12726 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12726 + } //#12726 + $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12735 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12735 + bwipp_plessey.__12736__ = 1; //#12735 + $_ = Object.getPrototypeOf($_); //#12735 + } //#12735 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12743 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12740 + if (!_F) { //#12742 + $k[$j++] = 'bwipp.plesseyBadCharacter#12741'; //#12741 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12741 + bwipp_raiseerror(); //#12741 + } //#12741 + } //#12741 + $k[$j++] = 'barlen'; //#12745 + $k[$j++] = $_.barcode.length; //#12745 + if ($_.validatecheck) { //#12745 + var _I = $k[--$j]; //#12745 + $k[$j++] = $f(_I - 2); //#12745 + } //#12745 + var _J = $k[--$j]; //#12745 + $_[$k[--$j]] = _J; //#12745 + $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12748 + $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12749 + for (var _S = 0, _R = $f($_.barlen - 1); _S <= _R; _S += 1) { //#12759 + $_.i = _S; //#12751 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12752 + $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12758 + } //#12758 + $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12760 + for (var _i = 0, _h = $f(($_.barlen * 4) - 1); _i <= _h; _i += 1) { //#12769 + $_.i = _i; //#12762 + if ($get($_.checkbits, $_.i) == 1) { //#12768 + for (var _m = 0; _m <= 8; _m += 1) { //#12767 + $_.j = _m; //#12765 + $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12766 + } //#12766 + } //#12766 + } //#12766 + $_.checkval = 0; //#12770 + for (var _x = 0; _x <= 7; _x += 1) { //#12774 + $_.i = _x; //#12772 + $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12773 + } //#12773 + $_.checksum1 = $_.checkval & 15; //#12775 + $_.checksum2 = $_.checkval >>> 4; //#12776 + if ($_.validatecheck) { //#12783 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12781 + $k[$j++] = 'bwipp.plesseyBadCheckDigits#12780'; //#12780 + $k[$j++] = "Incorrect Plessey check digits provided"; //#12780 + bwipp_raiseerror(); //#12780 + } //#12780 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12782 + } //#12782 + var _1O = $_.unidirectional ? 27 : 33; //#12785 + $_.sbs = $s($f(($_.barlen * 8) + _1O)); //#12785 + $_.txt = $a($f($_.barlen + 2)); //#12786 + $puti($_.sbs, 0, $get($_.encs, 16)); //#12789 + for (var _1X = 0, _1W = $f($_.barlen - 1); _1X <= _1W; _1X += 1) { //#12796 + $_.i = _1X; //#12792 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12793 + $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12794 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12795 + } //#12795 + $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12799 + $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12800 + if ($_.includecheckintext) { //#12806 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12802 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12803 + } else { //#12806 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12805 + $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12806 + } //#12806 + var _2f = $_.unidirectional ? 18 : 17; //#12810 + $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2f)); //#12810 + $k[$j++] = Infinity; //#12813 + $k[$j++] = Infinity; //#12815 + var _2h = $_.sbs; //#12815 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#12815 + $k[$j++] = $get(_2h, _2i) - 48; //#12815 + } //#12815 + var _2l = $a(); //#12815 + $k[$j++] = Infinity; //#12816 + for (var _2n = 0, _2o = ~~(($_.sbs.length + 1) / 2); _2n < _2o; _2n++) { //#12816 + $k[$j++] = $_.height; //#12816 + } //#12816 + var _2q = $a(); //#12816 + $k[$j++] = Infinity; //#12817 + for (var _2s = 0, _2t = ~~(($_.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#12817 + $k[$j++] = 0; //#12817 + } //#12817 + var _2u = $a(); //#12817 + $k[$j++] = 'ren'; //#12820 + $k[$j++] = bwipp_renlinear; //#12820 + $k[$j++] = 'sbs'; //#12820 + $k[$j++] = _2l; //#12820 + $k[$j++] = 'bhs'; //#12820 + $k[$j++] = _2q; //#12820 + $k[$j++] = 'bbs'; //#12820 + $k[$j++] = _2u; //#12820 + if ($_.includetext) { //#12820 + $k[$j++] = 'txt'; //#12819 + $k[$j++] = $_.txt; //#12819 + } //#12819 + $k[$j++] = 'opt'; //#12821 + $k[$j++] = $_.options; //#12821 + var _2y = $d(); //#12821 + $k[$j++] = _2y; //#12824 + if (!$_.dontdraw) { //#12824 + bwipp_renlinear(); //#12824 + } //#12824 + $_ = Object.getPrototypeOf($_); //#12826 + $_ = Object.getPrototypeOf($_); //#12828 +} //bwipp_plessey function bwipp_telepen() { - $_ = Object.create($_); //#12667 - $_.numeric = false; //#12670 - $_.dontdraw = false; //#12671 - $_.includetext = false; //#12672 - $_.textfont = "OCR-B"; //#12673 - $_.textsize = 10; //#12674 - $_.textyoffset = -8; //#12675 - $_.height = 1; //#12676 - $_.parse = false; //#12677 - $k[$j++] = $_; //#12679 - bwipp_processoptions(); //#12679 - $_.options = $k[--$j]; //#12679 - $_.barcode = $k[--$j]; //#12680 - bwipp_loadctx(bwipp_telepen) //#12682 + $_ = Object.create($_); //#12859 + $_.numeric = false; //#12862 + $_.dontdraw = false; //#12863 + $_.includetext = false; //#12864 + $_.textfont = "OCR-B"; //#12865 + $_.textsize = 10; //#12866 + $_.textyoffset = -8; //#12867 + $_.height = 1; //#12868 + $_.parse = false; //#12869 + $k[$j++] = $_; //#12871 + bwipp_processoptions(); //#12871 + $_.options = $k[--$j]; //#12871 + $_.barcode = $k[--$j]; //#12872 + bwipp_loadctx(bwipp_telepen) //#12874 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#12688 - $_.fncvals = _3; //#12689 - $k[$j++] = 'barcode'; //#12690 - $k[$j++] = $_.barcode; //#12690 - $k[$j++] = $_.fncvals; //#12690 - bwipp_parseinput(); //#12690 - var _6 = $k[--$j]; //#12690 - $_[$k[--$j]] = _6; //#12690 - $_.barlen = $_.barcode.length; //#12691 - delete $_.options["parse"]; //#12692 - if ($_.numeric && (($_.barlen % 2) != 0)) { //#12696 - $k[$j++] = 'bwipp.telepenNumericOddLength#12695'; //#12695 - $k[$j++] = "Telepen Numeric must have an even length"; //#12695 - bwipp_raiseerror(); //#12695 - } //#12695 - if (!bwipp_telepen.__12734__) { //#12734 - $_ = Object.create($_); //#12734 - $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12733 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12733 - bwipp_telepen.__12734__ = 1; //#12733 - $_ = Object.getPrototypeOf($_); //#12733 - } //#12733 - $_.sbs = $s(($_.barlen * 16) + 48); //#12736 - $_.txt = $a($_.barlen); //#12737 - $_.enc = $get($_.encs, 95); //#12740 - $puti($_.sbs, 0, $_.enc); //#12741 - $_.l = $_.enc.length; //#12742 - $_.checksum = 0; //#12744 - $_.i = 0; //#12745 - $_.j = 0; //#12745 - for (;;) { //#12788 - if ($_.i == $_.barlen) { //#12747 - break; //#12747 - } //#12747 - if ($_.numeric) { //#12781 - if ($get($_.barcode, $_.i) > 16) { //#12769 - $_.np = $geti($_.barcode, $_.i, 2); //#12750 - var _X = $get($_.np, 0); //#12751 - var _Z = $get($_.np, 1); //#12752 - if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12758 - $k[$j++] = -1; //#12754 - } else { //#12758 - var _e = $f($get($_.np, 1) - 48); //#12757 - $k[$j++] = $f($get($_.np, 0) - 48); //#12757 - $k[$j++] = _e; //#12757 - if (_e != 40) { //#12757 - var _f = $k[--$j]; //#12757 - var _g = $k[--$j]; //#12757 - $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12757 - } else { //#12757 - $j--; //#12757 - } //#12757 - var _h = $k[--$j]; //#12758 - $k[$j++] = $f(_h + 17); //#12758 - } //#12758 - var _i = $k[--$j]; //#12760 - $k[$j++] = _i; //#12762 - if (_i == -1) { //#12762 - $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12761'; //#12761 - $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12761 - bwipp_raiseerror(); //#12761 - } //#12761 - $_.indx = $k[--$j]; //#12763 - $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12764 - $_.i = $_.i + 2; //#12765 - } else { //#12769 - $_.indx = $get($_.barcode, $_.i); //#12767 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12768 - $_.i = $_.i + 1; //#12769 - } //#12769 - } else { //#12781 - $_.indx = $get($_.barcode, $_.i); //#12772 - if ($_.indx > 127) { //#12775 - $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12774'; //#12774 - $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12774 - bwipp_raiseerror(); //#12774 - } //#12774 - if (($_.indx >= 32) && ($_.indx <= 126)) { //#12779 - $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12777 - } else { //#12779 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12779 - } //#12779 - $_.i = $_.i + 1; //#12781 - } //#12781 - $_.checksum = $f($_.checksum + $_.indx); //#12783 - $_.enc = $get($_.encs, $_.indx); //#12784 - $puti($_.sbs, $_.l, $_.enc); //#12785 - $_.l = $_.l + $_.enc.length; //#12786 - $_.j = $_.j + 1; //#12787 - } //#12787 - $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12791 - $_.enc = $get($_.encs, $_.checksum); //#12792 - $puti($_.sbs, $_.l, $_.enc); //#12793 - $_.l = $_.l + $_.enc.length; //#12794 - $_.enc = $get($_.encs, 122); //#12797 - $puti($_.sbs, $_.l, $_.enc); //#12798 - $_.l = $_.l + $_.enc.length; //#12799 - $_.sbs = $geti($_.sbs, 0, $_.l); //#12802 - $_.txt = $geti($_.txt, 0, $_.j); //#12803 - $k[$j++] = Infinity; //#12814 - $k[$j++] = Infinity; //#12808 - var _1z = $_.sbs; //#12808 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#12808 - $k[$j++] = $f($get(_1z, _20) - 48); //#12808 - } //#12808 - var _23 = $a(); //#12808 - $k[$j++] = Infinity; //#12809 - for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#12809 - $k[$j++] = $_.height; //#12809 - } //#12809 - var _28 = $a(); //#12809 - $k[$j++] = Infinity; //#12810 - for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#12810 - $k[$j++] = 0; //#12810 - } //#12810 - var _2C = $a(); //#12810 - $k[$j++] = 'ren'; //#12813 - $k[$j++] = bwipp_renlinear; //#12813 - $k[$j++] = 'sbs'; //#12813 - $k[$j++] = _23; //#12813 - $k[$j++] = 'bhs'; //#12813 - $k[$j++] = _28; //#12813 - $k[$j++] = 'bbs'; //#12813 - $k[$j++] = _2C; //#12813 - if ($_.includetext) { //#12813 - $k[$j++] = 'txt'; //#12812 - $k[$j++] = $_.txt; //#12812 - } //#12812 - $k[$j++] = 'opt'; //#12814 - $k[$j++] = $_.options; //#12814 - var _2G = $d(); //#12814 - $k[$j++] = _2G; //#12817 - if (!$_.dontdraw) { //#12817 - bwipp_renlinear(); //#12817 - } //#12817 - $_ = Object.getPrototypeOf($_); //#12819 - $_ = Object.getPrototypeOf($_); //#12821 -} - + ]); //#12880 + $_.fncvals = _3; //#12881 + $k[$j++] = 'barcode'; //#12882 + $k[$j++] = $_.barcode; //#12882 + $k[$j++] = $_.fncvals; //#12882 + bwipp_parseinput(); //#12882 + var _6 = $k[--$j]; //#12882 + $_[$k[--$j]] = _6; //#12882 + $_.barlen = $_.barcode.length; //#12883 + delete $_.options["parse"]; //#12884 + if ($_.numeric && (($_.barlen % 2) != 0)) { //#12888 + $k[$j++] = 'bwipp.telepenNumericOddLength#12887'; //#12887 + $k[$j++] = "Telepen Numeric must have an even length"; //#12887 + bwipp_raiseerror(); //#12887 + } //#12887 + if (!bwipp_telepen.__12926__) { //#12926 + $_ = Object.create($_); //#12926 + $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12925 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12925 + bwipp_telepen.__12926__ = 1; //#12925 + $_ = Object.getPrototypeOf($_); //#12925 + } //#12925 + $_.sbs = $s(($_.barlen * 16) + 48); //#12928 + $_.txt = $a($_.barlen); //#12929 + $_.enc = $get($_.encs, 95); //#12932 + $puti($_.sbs, 0, $_.enc); //#12933 + $_.l = $_.enc.length; //#12934 + $_.checksum = 0; //#12936 + $_.i = 0; //#12937 + $_.j = 0; //#12937 + for (;;) { //#12980 + if ($_.i == $_.barlen) { //#12939 + break; //#12939 + } //#12939 + if ($_.numeric) { //#12973 + if ($get($_.barcode, $_.i) > 16) { //#12961 + $_.np = $geti($_.barcode, $_.i, 2); //#12942 + var _X = $get($_.np, 0); //#12943 + var _Z = $get($_.np, 1); //#12944 + if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12950 + $k[$j++] = -1; //#12946 + } else { //#12950 + var _e = $f($get($_.np, 1) - 48); //#12949 + $k[$j++] = $f($get($_.np, 0) - 48); //#12949 + $k[$j++] = _e; //#12949 + if (_e != 40) { //#12949 + var _f = $k[--$j]; //#12949 + var _g = $k[--$j]; //#12949 + $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12949 + } else { //#12949 + $j--; //#12949 + } //#12949 + var _h = $k[--$j]; //#12950 + $k[$j++] = $f(_h + 17); //#12950 + } //#12950 + var _i = $k[--$j]; //#12952 + $k[$j++] = _i; //#12954 + if (_i == -1) { //#12954 + $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12953'; //#12953 + $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12953 + bwipp_raiseerror(); //#12953 + } //#12953 + $_.indx = $k[--$j]; //#12955 + $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12956 + $_.i = $_.i + 2; //#12957 + } else { //#12961 + $_.indx = $get($_.barcode, $_.i); //#12959 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12960 + $_.i = $_.i + 1; //#12961 + } //#12961 + } else { //#12973 + $_.indx = $get($_.barcode, $_.i); //#12964 + if ($_.indx > 127) { //#12967 + $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12966'; //#12966 + $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12966 + bwipp_raiseerror(); //#12966 + } //#12966 + if (($_.indx >= 32) && ($_.indx <= 126)) { //#12971 + $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12969 + } else { //#12971 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12971 + } //#12971 + $_.i = $_.i + 1; //#12973 + } //#12973 + $_.checksum = $f($_.checksum + $_.indx); //#12975 + $_.enc = $get($_.encs, $_.indx); //#12976 + $puti($_.sbs, $_.l, $_.enc); //#12977 + $_.l = $_.l + $_.enc.length; //#12978 + $_.j = $_.j + 1; //#12979 + } //#12979 + $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12983 + $_.enc = $get($_.encs, $_.checksum); //#12984 + $puti($_.sbs, $_.l, $_.enc); //#12985 + $_.l = $_.l + $_.enc.length; //#12986 + $_.enc = $get($_.encs, 122); //#12989 + $puti($_.sbs, $_.l, $_.enc); //#12990 + $_.l = $_.l + $_.enc.length; //#12991 + $_.sbs = $geti($_.sbs, 0, $_.l); //#12994 + $_.txt = $geti($_.txt, 0, $_.j); //#12995 + $k[$j++] = Infinity; //#12998 + $k[$j++] = Infinity; //#13000 + var _1z = $_.sbs; //#13000 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#13000 + $k[$j++] = $f($get(_1z, _20) - 48); //#13000 + } //#13000 + var _23 = $a(); //#13000 + $k[$j++] = Infinity; //#13001 + for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#13001 + $k[$j++] = $_.height; //#13001 + } //#13001 + var _28 = $a(); //#13001 + $k[$j++] = Infinity; //#13002 + for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#13002 + $k[$j++] = 0; //#13002 + } //#13002 + var _2C = $a(); //#13002 + $k[$j++] = 'ren'; //#13005 + $k[$j++] = bwipp_renlinear; //#13005 + $k[$j++] = 'sbs'; //#13005 + $k[$j++] = _23; //#13005 + $k[$j++] = 'bhs'; //#13005 + $k[$j++] = _28; //#13005 + $k[$j++] = 'bbs'; //#13005 + $k[$j++] = _2C; //#13005 + if ($_.includetext) { //#13005 + $k[$j++] = 'txt'; //#13004 + $k[$j++] = $_.txt; //#13004 + } //#13004 + $k[$j++] = 'opt'; //#13006 + $k[$j++] = $_.options; //#13006 + var _2G = $d(); //#13006 + $k[$j++] = _2G; //#13009 + if (!$_.dontdraw) { //#13009 + bwipp_renlinear(); //#13009 + } //#13009 + $_ = Object.getPrototypeOf($_); //#13011 + $_ = Object.getPrototypeOf($_); //#13013 +} //bwipp_telepen function bwipp_telepennumeric() { - $_ = Object.create($_); //#12850 - $_.dontdraw = false; //#12853 - $k[$j++] = $_; //#12855 - bwipp_processoptions(); //#12855 - $_.options = $k[--$j]; //#12855 - $_.barcode = $k[--$j]; //#12856 - $put($_.options, "dontdraw", true); //#12859 - $put($_.options, "numeric", true); //#12860 - $k[$j++] = 'args'; //#12862 - $k[$j++] = $_.barcode; //#12862 - $k[$j++] = $_.options; //#12862 - bwipp_telepen(); //#12862 - var _6 = $k[--$j]; //#12862 - $_[$k[--$j]] = _6; //#12862 - $put($_.args, "opt", $_.options); //#12864 - $k[$j++] = $_.args; //#12867 - if (!$_.dontdraw) { //#12867 - bwipp_renlinear(); //#12867 - } //#12867 - $_ = Object.getPrototypeOf($_); //#12869 -} - + $_ = Object.create($_); //#13042 + $_.dontdraw = false; //#13045 + $k[$j++] = $_; //#13047 + bwipp_processoptions(); //#13047 + $_.options = $k[--$j]; //#13047 + $_.barcode = $k[--$j]; //#13048 + $put($_.options, "dontdraw", true); //#13051 + $put($_.options, "numeric", true); //#13052 + $k[$j++] = 'args'; //#13054 + $k[$j++] = $_.barcode; //#13054 + $k[$j++] = $_.options; //#13054 + bwipp_telepen(); //#13054 + var _6 = $k[--$j]; //#13054 + $_[$k[--$j]] = _6; //#13054 + $put($_.args, "opt", $_.options); //#13056 + $k[$j++] = $_.args; //#13059 + if (!$_.dontdraw) { //#13059 + bwipp_renlinear(); //#13059 + } //#13059 + $_ = Object.getPrototypeOf($_); //#13061 +} //bwipp_telepennumeric function bwipp_posicode() { - $_ = Object.create($_); //#12900 - $_.dontdraw = false; //#12903 - $_.includetext = false; //#12904 - $_.textfont = "OCR-B"; //#12905 - $_.textsize = 10; //#12906 - $_.textxoffset = 0; //#12907 - $_.textyoffset = -8; //#12908 - $_.height = 1; //#12909 - $_.encoding = "auto"; //#12910 - $_.version = "a"; //#12911 - $_.checkoffset = 0; //#12912 - $_.raw = false; //#12913 - $_.parse = false; //#12914 - $_.parsefnc = false; //#12915 - $k[$j++] = $_; //#12917 - bwipp_processoptions(); //#12917 - $_.options = $k[--$j]; //#12917 - var _1 = $k[--$j]; //#12918 - $_.barcode = _1; //#12918 - bwipp_loadctx(bwipp_posicode) //#12920 - if (!bwipp_posicode.__12963__) { //#12963 - $_ = Object.create($_); //#12963 - $_.la0 = -1; //#12924 - $_.la1 = -2; //#12924 - $_.la2 = -3; //#12924 - $_.sf0 = -4; //#12925 - $_.sf1 = -5; //#12925 - $_.sf2 = -6; //#12925 - $_.fn1 = -7; //#12926 - $_.fn2 = -8; //#12926 - $_.fn3 = -9; //#12926 - $_.fn4 = -10; //#12926 - $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#12947 - var _12 = $a(["5", -98, -98]); //#12950 - $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), _12, $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#12962 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#12962 - bwipp_posicode.__12963__ = 1; //#12962 - $_ = Object.getPrototypeOf($_); //#12962 - } //#12962 - $k[$j++] = 'charmaps'; //#12965 - if ($eq($_.version, "a") || $eq($_.version, "b")) { //#12965 - $k[$j++] = $_.charmapsnormal; //#12965 - } else { //#12965 - $k[$j++] = $_.chapmapslimited; //#12965 - } //#12965 - var _1f = $k[--$j]; //#12965 - $_[$k[--$j]] = _1f; //#12965 - var _1h = $_.charmaps; //#12969 - var _1i = $_.charmaps; //#12969 - var _1j = $_.charmaps; //#12969 - $_.charvals = $a([new Map, new Map, new Map]); //#12970 - for (var _1n = 0, _1m = $_.charmaps.length - 1; _1n <= _1m; _1n += 1) { //#12979 - $_.i = _1n; //#12972 - $_.encs = $get($_.charmaps, $_.i); //#12973 - for (var _1r = 0; _1r <= 2; _1r += 1) { //#12978 - $_.j = _1r; //#12975 - var _1u = $get($_.encs, $_.j); //#12976 - $k[$j++] = _1u; //#12976 - if ($eq($type(_1u), 'stringtype')) { //#12976 - var _1x = $get($k[--$j], 0); //#12976 - $k[$j++] = _1x; //#12976 - } //#12976 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#12977 - } //#12977 - } //#12977 - $_.set0 = $get($_.charvals, 0); //#12980 - $_.set1 = $get($_.charvals, 1); //#12981 - $_.set2 = $get($_.charvals, 2); //#12982 - if ($_.raw) { //#12984 - $_.encoding = "raw"; //#12984 - } //#12984 - if ($eq($_.encoding, "raw")) { //#12998 - $_.cws = $a($_.barcode.length); //#12987 - $_.i = 0; //#12988 - $_.j = 0; //#12988 - for (;;) { //#12995 - if ($_.i == $_.barcode.length) { //#12990 - break; //#12990 - } //#12990 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#12991 - $put($_.cws, $_.j, $_.cw); //#12992 - $_.i = $_.i + 4; //#12993 - $_.j = $_.j + 1; //#12994 - } //#12994 - $_.cws = $geti($_.cws, 0, $_.j); //#12996 - $_.text = ""; //#12997 - } //#12997 - if ($eq($_.encoding, "auto")) { //#13113 - var _2W = new Map([ + $_ = Object.create($_); //#13092 + $_.dontdraw = false; //#13095 + $_.includetext = false; //#13096 + $_.textfont = "OCR-B"; //#13097 + $_.textsize = 10; //#13098 + $_.textxoffset = 0; //#13099 + $_.textyoffset = -8; //#13100 + $_.height = 1; //#13101 + $_.encoding = "auto"; //#13102 + $_.version = "a"; //#13103 + $_.checkoffset = 0; //#13104 + $_.raw = false; //#13105 + $_.parse = false; //#13106 + $_.parsefnc = false; //#13107 + $k[$j++] = $_; //#13109 + bwipp_processoptions(); //#13109 + $_.options = $k[--$j]; //#13109 + var _1 = $k[--$j]; //#13110 + $_.barcode = _1; //#13110 + bwipp_loadctx(bwipp_posicode) //#13112 + if (!bwipp_posicode.__13155__) { //#13155 + $_ = Object.create($_); //#13155 + $_.la0 = -1; //#13116 + $_.la1 = -2; //#13116 + $_.la2 = -3; //#13116 + $_.sf0 = -4; //#13117 + $_.sf1 = -5; //#13117 + $_.sf2 = -6; //#13117 + $_.fn1 = -7; //#13118 + $_.fn2 = -8; //#13118 + $_.fn3 = -9; //#13118 + $_.fn4 = -10; //#13118 + $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#13139 + var _13 = $a(["6", -98, -98]); //#13143 + $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), _13, $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#13154 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13154 + bwipp_posicode.__13155__ = 1; //#13154 + $_ = Object.getPrototypeOf($_); //#13154 + } //#13154 + if ((($ne($_.version, "a") && $ne($_.version, "b")) && $ne($_.version, "limiteda")) && $ne($_.version, "limitedb")) { //#13159 + $k[$j++] = 'bwipp.posicodeInvalidVersion#13158'; //#13158 + $k[$j++] = "The version must be either a, b, limiteda or limitedb"; //#13158 + bwipp_raiseerror(); //#13158 + } //#13158 + $k[$j++] = 'charmaps'; //#13161 + if ($eq($_.version, "a") || $eq($_.version, "b")) { //#13161 + $k[$j++] = $_.charmapsnormal; //#13161 + } else { //#13161 + $k[$j++] = $_.chapmapslimited; //#13161 + } //#13161 + var _1j = $k[--$j]; //#13161 + $_[$k[--$j]] = _1j; //#13161 + var _1l = $_.charmaps; //#13165 + var _1m = $_.charmaps; //#13165 + var _1n = $_.charmaps; //#13165 + $_.charvals = $a([new Map, new Map, new Map]); //#13166 + for (var _1r = 0, _1q = $_.charmaps.length - 1; _1r <= _1q; _1r += 1) { //#13175 + $_.i = _1r; //#13168 + $_.encs = $get($_.charmaps, $_.i); //#13169 + for (var _1v = 0; _1v <= 2; _1v += 1) { //#13174 + $_.j = _1v; //#13171 + var _1y = $get($_.encs, $_.j); //#13172 + $k[$j++] = _1y; //#13172 + if ($eq($type(_1y), 'stringtype')) { //#13172 + var _21 = $get($k[--$j], 0); //#13172 + $k[$j++] = _21; //#13172 + } //#13172 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13173 + } //#13173 + } //#13173 + $_.set0 = $get($_.charvals, 0); //#13176 + $_.set1 = $get($_.charvals, 1); //#13177 + $_.set2 = $get($_.charvals, 2); //#13178 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13187 + for (var _2H = 0, _2G = $_.barcode.length - 1; _2H <= _2G; _2H += 1) { //#13186 + var _2M = $get($_.set0, $get($geti($_.barcode, _2H, 1), 0)) !== undefined; //#13183 + if (!_2M) { //#13185 + $k[$j++] = 'bwipp.posicodeBadCharacter#13184'; //#13184 + $k[$j++] = "Posicode limited must contain only digits, capital letters, and the symbols - and ."; //#13184 + bwipp_raiseerror(); //#13184 + } //#13184 + } //#13184 + } //#13184 + if ($_.raw) { //#13189 + $_.encoding = "raw"; //#13189 + } //#13189 + if ($eq($_.encoding, "raw")) { //#13203 + $_.cws = $a($_.barcode.length); //#13192 + $_.i = 0; //#13193 + $_.j = 0; //#13193 + for (;;) { //#13200 + if ($_.i == $_.barcode.length) { //#13195 + break; //#13195 + } //#13195 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#13196 + $put($_.cws, $_.j, $_.cw); //#13197 + $_.i = $_.i + 4; //#13198 + $_.j = $_.j + 1; //#13199 + } //#13199 + $_.cws = $geti($_.cws, 0, $_.j); //#13201 + $_.text = ""; //#13202 + } //#13202 + if ($eq($_.encoding, "auto")) { //#13318 + var _2k = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13008 - $_.fncvals = _2W; //#13010 - $k[$j++] = 'msg'; //#13011 - $k[$j++] = $_.barcode; //#13011 - $k[$j++] = $_.fncvals; //#13011 - bwipp_parseinput(); //#13011 - var _2Z = $k[--$j]; //#13011 - $_[$k[--$j]] = _2Z; //#13011 - $_.msglen = $_.msg.length; //#13012 - $_.text = $s($_.msglen); //#13014 - for (var _2g = 0, _2f = $_.msglen - 1; _2g <= _2f; _2g += 1) { //#13018 - $_.i = _2g; //#13016 - var _2l = $get($_.msg, $_.i); //#13017 - $k[$j++] = $_.text; //#13017 - $k[$j++] = $_.i; //#13017 - $k[$j++] = _2l; //#13017 - if (_2l < 0) { //#13017 - $j--; //#13017 - $k[$j++] = 32; //#13017 - } //#13017 - var _2m = $k[--$j]; //#13017 - var _2n = $k[--$j]; //#13017 - $put($k[--$j], _2n, _2m); //#13017 - } //#13017 - $k[$j++] = Infinity; //#13021 - for (var _2q = 0, _2r = $_.msglen; _2q < _2r; _2q++) { //#13021 - $k[$j++] = 0; //#13021 - } //#13021 - $k[$j++] = 0; //#13021 - $_.numSA = $a(); //#13021 - $k[$j++] = Infinity; //#13022 - for (var _2u = 0, _2v = $_.msglen; _2u < _2v; _2u++) { //#13022 - $k[$j++] = 0; //#13022 - } //#13022 - $k[$j++] = 0; //#13022 - $_.numEA = $a(); //#13022 - for (var _2y = $_.msglen - 1; _2y >= 0; _2y -= 1) { //#13032 - $_.i = _2y; //#13024 - if ($get($_.msg, $_.i) >= 0) { //#13031 - if ($get($_.msg, $_.i) >= 128) { //#13029 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13027 - } else { //#13029 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13029 - } //#13029 - } //#13029 - } //#13029 - $_.ea = false; //#13035 - $_.msgtmp = $a([]); //#13035 - for (var _3I = 0, _3H = $_.msglen - 1; _3I <= _3H; _3I += 1) { //#13050 - $_.i = _3I; //#13037 - $_.c = $get($_.msg, $_.i); //#13038 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13048 - if ($_.ea) { //#13040 - $k[$j++] = $_.numSA; //#13040 - } else { //#13040 - $k[$j++] = $_.numEA; //#13040 - } //#13040 - var _3U = $get($k[--$j], $_.i); //#13040 - var _3X = ($f(_3U + $_.i) == $_.msglen) ? 3 : 5; //#13041 - if (_3U < _3X) { //#13046 - $k[$j++] = Infinity; //#13043 - $aload($_.msgtmp); //#13043 - $k[$j++] = $_.fn4; //#13043 - $_.msgtmp = $a(); //#13043 - } else { //#13046 - $k[$j++] = Infinity; //#13045 - $aload($_.msgtmp); //#13045 - $k[$j++] = $_.fn4; //#13045 - $k[$j++] = $_.fn4; //#13045 - $_.msgtmp = $a(); //#13045 - $_.ea = !$_.ea; //#13046 - } //#13046 - } //#13046 - $k[$j++] = Infinity; //#13049 - $aload($_.msgtmp); //#13049 - if ($_.c >= 0) { //#13049 - $k[$j++] = $_.c & 127; //#13049 - } else { //#13049 - $k[$j++] = $_.c; //#13049 - } //#13049 - $_.msgtmp = $a(); //#13049 - } //#13049 - $_.msg = $_.msgtmp; //#13051 - $_.msglen = $_.msg.length; //#13052 + ]); //#13213 + $_.fncvals = _2k; //#13215 + $k[$j++] = 'msg'; //#13216 + $k[$j++] = $_.barcode; //#13216 + $k[$j++] = $_.fncvals; //#13216 + bwipp_parseinput(); //#13216 + var _2n = $k[--$j]; //#13216 + $_[$k[--$j]] = _2n; //#13216 + $_.msglen = $_.msg.length; //#13217 + $_.text = $s($_.msglen); //#13219 + for (var _2u = 0, _2t = $_.msglen - 1; _2u <= _2t; _2u += 1) { //#13223 + $_.i = _2u; //#13221 + var _2z = $get($_.msg, $_.i); //#13222 + $k[$j++] = $_.text; //#13222 + $k[$j++] = $_.i; //#13222 + $k[$j++] = _2z; //#13222 + if (_2z < 0) { //#13222 + $j--; //#13222 + $k[$j++] = 32; //#13222 + } //#13222 + var _30 = $k[--$j]; //#13222 + var _31 = $k[--$j]; //#13222 + $put($k[--$j], _31, _30); //#13222 + } //#13222 + $k[$j++] = Infinity; //#13226 + for (var _34 = 0, _35 = $_.msglen; _34 < _35; _34++) { //#13226 + $k[$j++] = 0; //#13226 + } //#13226 + $k[$j++] = 0; //#13226 + $_.numSA = $a(); //#13226 + $k[$j++] = Infinity; //#13227 + for (var _38 = 0, _39 = $_.msglen; _38 < _39; _38++) { //#13227 + $k[$j++] = 0; //#13227 + } //#13227 + $k[$j++] = 0; //#13227 + $_.numEA = $a(); //#13227 + for (var _3C = $_.msglen - 1; _3C >= 0; _3C -= 1) { //#13237 + $_.i = _3C; //#13229 + if ($get($_.msg, $_.i) >= 0) { //#13236 + if ($get($_.msg, $_.i) >= 128) { //#13234 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13232 + } else { //#13234 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13234 + } //#13234 + } //#13234 + } //#13234 + $_.ea = false; //#13240 + $_.msgtmp = $a([]); //#13240 + for (var _3W = 0, _3V = $_.msglen - 1; _3W <= _3V; _3W += 1) { //#13255 + $_.i = _3W; //#13242 + $_.c = $get($_.msg, $_.i); //#13243 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13253 + if ($_.ea) { //#13245 + $k[$j++] = $_.numSA; //#13245 + } else { //#13245 + $k[$j++] = $_.numEA; //#13245 + } //#13245 + var _3i = $get($k[--$j], $_.i); //#13245 + var _3l = ($f(_3i + $_.i) == $_.msglen) ? 3 : 5; //#13246 + if (_3i < _3l) { //#13251 + $k[$j++] = Infinity; //#13248 + $aload($_.msgtmp); //#13248 + $k[$j++] = $_.fn4; //#13248 + $_.msgtmp = $a(); //#13248 + } else { //#13251 + $k[$j++] = Infinity; //#13250 + $aload($_.msgtmp); //#13250 + $k[$j++] = $_.fn4; //#13250 + $k[$j++] = $_.fn4; //#13250 + $_.msgtmp = $a(); //#13250 + $_.ea = !$_.ea; //#13251 + } //#13251 + } //#13251 + $k[$j++] = Infinity; //#13254 + $aload($_.msgtmp); //#13254 + if ($_.c >= 0) { //#13254 + $k[$j++] = $_.c & 127; //#13254 + } else { //#13254 + $k[$j++] = $_.c; //#13254 + } //#13254 + $_.msgtmp = $a(); //#13254 + } //#13254 + $_.msg = $_.msgtmp; //#13256 + $_.msglen = $_.msg.length; //#13257 $_.enc = function() { - var _3n = $k[--$j]; //#13056 - $put($_.cws, $_.j, $get(_3n, $k[--$j])); //#13056 - $_.j = $_.j + 1; //#13057 - }; //#13057 - $_.cws = $a($_.msglen * 2); //#13060 - $_.i = 0; //#13061 - $_.j = 0; //#13061 - $_.cset = "set0"; //#13061 - for (;;) { //#13111 - if ($_.i == $_.msglen) { //#13063 - break; //#13063 - } //#13063 - for (;;) { //#13109 - $_.char1 = $get($_.msg, $_.i); //#13068 - $k[$j++] = 'char2'; //#13069 - if (($_.i + 1) < $_.msglen) { //#13069 - $k[$j++] = $get($_.msg, $_.i + 1); //#13069 - } else { //#13069 - $k[$j++] = -99; //#13069 - } //#13069 - var _45 = $k[--$j]; //#13069 - $_[$k[--$j]] = _45; //#13069 - var _4A = $get($_[$_.cset], $_.char1) !== undefined; //#13072 - if (_4A) { //#13076 - $k[$j++] = $_.char1; //#13073 - $k[$j++] = $_[$_.cset]; //#13073 - $_.enc(); //#13073 - $_.i = $_.i + 1; //#13074 - break; //#13075 - } //#13075 - var _4H = $get($_.set2, $_.char1) !== undefined; //#13079 - if (_4H) { //#13084 - $k[$j++] = $_.sf2; //#13080 - $k[$j++] = $_[$_.cset]; //#13080 - $_.enc(); //#13080 - $k[$j++] = $_.char1; //#13081 - $k[$j++] = $_.set2; //#13081 - $_.enc(); //#13081 - $_.i = $_.i + 1; //#13082 - break; //#13083 - } //#13083 - var _4R = $get($_[$_.cset], $_.char2) !== undefined; //#13087 - if (!_4R) { //#13105 - if ($eq($_.cset, "set0")) { //#13093 - $k[$j++] = $_.la1; //#13089 - $k[$j++] = $_[$_.cset]; //#13089 - $_.enc(); //#13089 - $_.cset = "set1"; //#13090 - } else { //#13093 - $k[$j++] = $_.la0; //#13092 - $k[$j++] = $_[$_.cset]; //#13092 - $_.enc(); //#13092 - $_.cset = "set0"; //#13093 - } //#13093 - break; //#13095 - } else { //#13105 - if ($eq($_.cset, "set0")) { //#13102 - $k[$j++] = $_.sf1; //#13098 - $k[$j++] = $_[$_.cset]; //#13098 - $_.enc(); //#13098 - $k[$j++] = $_.char1; //#13099 - $k[$j++] = $_.set1; //#13099 - $_.enc(); //#13099 - } else { //#13102 - $k[$j++] = $_.sf0; //#13101 - $k[$j++] = $_[$_.cset]; //#13101 - $_.enc(); //#13101 - $k[$j++] = $_.char1; //#13102 - $k[$j++] = $_.set0; //#13102 - $_.enc(); //#13102 - } //#13102 - $_.i = $_.i + 1; //#13104 - break; //#13105 - } //#13105 - break; //#13108 - } //#13108 - } //#13108 - $_.cws = $geti($_.cws, 0, $_.j); //#13112 - } //#13112 - if (!bwipp_posicode.__13163__) { //#13163 - $_ = Object.create($_); //#13163 - var _4s = new Map([ + var _41 = $k[--$j]; //#13261 + $put($_.cws, $_.j, $get(_41, $k[--$j])); //#13261 + $_.j = $_.j + 1; //#13262 + }; //#13262 + $_.cws = $a($_.msglen * 2); //#13265 + $_.i = 0; //#13266 + $_.j = 0; //#13266 + $_.cset = "set0"; //#13266 + for (;;) { //#13316 + if ($_.i == $_.msglen) { //#13268 + break; //#13268 + } //#13268 + for (;;) { //#13314 + $_.char1 = $get($_.msg, $_.i); //#13273 + $k[$j++] = 'char2'; //#13274 + if (($_.i + 1) < $_.msglen) { //#13274 + $k[$j++] = $get($_.msg, $_.i + 1); //#13274 + } else { //#13274 + $k[$j++] = -99; //#13274 + } //#13274 + var _4J = $k[--$j]; //#13274 + $_[$k[--$j]] = _4J; //#13274 + var _4O = $get($_[$_.cset], $_.char1) !== undefined; //#13277 + if (_4O) { //#13281 + $k[$j++] = $_.char1; //#13278 + $k[$j++] = $_[$_.cset]; //#13278 + $_.enc(); //#13278 + $_.i = $_.i + 1; //#13279 + break; //#13280 + } //#13280 + var _4V = $get($_.set2, $_.char1) !== undefined; //#13284 + if (_4V) { //#13289 + $k[$j++] = $_.sf2; //#13285 + $k[$j++] = $_[$_.cset]; //#13285 + $_.enc(); //#13285 + $k[$j++] = $_.char1; //#13286 + $k[$j++] = $_.set2; //#13286 + $_.enc(); //#13286 + $_.i = $_.i + 1; //#13287 + break; //#13288 + } //#13288 + var _4f = $get($_[$_.cset], $_.char2) !== undefined; //#13292 + if (!_4f) { //#13310 + if ($eq($_.cset, "set0")) { //#13298 + $k[$j++] = $_.la1; //#13294 + $k[$j++] = $_[$_.cset]; //#13294 + $_.enc(); //#13294 + $_.cset = "set1"; //#13295 + } else { //#13298 + $k[$j++] = $_.la0; //#13297 + $k[$j++] = $_[$_.cset]; //#13297 + $_.enc(); //#13297 + $_.cset = "set0"; //#13298 + } //#13298 + break; //#13300 + } else { //#13310 + if ($eq($_.cset, "set0")) { //#13307 + $k[$j++] = $_.sf1; //#13303 + $k[$j++] = $_[$_.cset]; //#13303 + $_.enc(); //#13303 + $k[$j++] = $_.char1; //#13304 + $k[$j++] = $_.set1; //#13304 + $_.enc(); //#13304 + } else { //#13307 + $k[$j++] = $_.sf0; //#13306 + $k[$j++] = $_[$_.cset]; //#13306 + $_.enc(); //#13306 + $k[$j++] = $_.char1; //#13307 + $k[$j++] = $_.set0; //#13307 + $_.enc(); //#13307 + } //#13307 + $_.i = $_.i + 1; //#13309 + break; //#13310 + } //#13310 + break; //#13313 + } //#13313 + } //#13313 + $_.cws = $geti($_.cws, 0, $_.j); //#13317 + } //#13317 + if (!bwipp_posicode.__13368__) { //#13368 + $_ = Object.create($_); //#13368 + var _56 = new Map([ ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] - ]); //#13160 - $_.encmaps = _4s; //#13162 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13162 - bwipp_posicode.__13163__ = 1; //#13162 - $_ = Object.getPrototypeOf($_); //#13162 - } //#13162 - $_.encs = $get($_.encmaps, $_.version); //#13164 - if (!bwipp_posicode.__13174__) { //#13174 - $_ = Object.create($_); //#13174 - $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13173 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13173 - bwipp_posicode.__13174__ = 1; //#13173 - $_ = Object.getPrototypeOf($_); //#13173 - } //#13173 - $_.v = 0; //#13175 - var _54 = $_.cws; //#13176 - for (var _55 = 0, _56 = _54.length; _55 < _56; _55++) { //#13185 - $_.cw = $get(_54, _55); //#13177 - for (var _58 = 0, _59 = 6; _58 < _59; _58++) { //#13184 - if ((($_.cw ^ $_.v) & 1) != 0) { //#13181 - $_.v = $_.v ^ 7682; //#13180 - } //#13180 - $_.v = $_.v >>> 1; //#13182 - $_.cw = $_.cw >>> 1; //#13183 - } //#13183 - } //#13183 - $_.v = $_.v + $_.checkoffset; //#13186 - if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13194 - $_.v = $_.v & 1023; //#13189 - if (($_.v > 824) && ($_.v < 853)) { //#13192 - $_.v = $_.v + 292; //#13191 - } //#13191 - } else { //#13194 - $_.v = ($_.v & 1023) + 45; //#13194 - } //#13194 - $_.d = $a([2, 2, 2, 2, 2, 2]); //#13197 - $_.r = 0; //#13198 - $_.c = 0; //#13198 - $_.w = 0; //#13198 - $_.sum = 0; //#13198 - for (;;) { //#13217 - if ($_.sum == $_.v) { //#13200 - break; //#13200 - } //#13200 - $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13201 - if ($_.t == $_.v) { //#13206 - $_.w = $_.w + 1; //#13203 - $put($_.d, $_.r, $_.w + 2); //#13204 - $_.sum = $_.t; //#13205 - } //#13205 - if ($_.t > $_.v) { //#13211 - $put($_.d, $_.r, $_.w + 2); //#13208 - $_.r = $_.r + 1; //#13209 - $_.w = 0; //#13210 - } //#13210 - if ($_.t < $_.v) { //#13216 - $_.c = $_.c + 1; //#13213 - $_.w = $_.w + 1; //#13214 - $_.sum = $_.t; //#13215 - } //#13215 - } //#13215 - $k[$j++] = 20; //#13218 - for (var _5p = 0; _5p <= 4; _5p += 1) { //#13218 - var _5s = $k[--$j]; //#13218 - $k[$j++] = $f(_5s - $get($_.d, _5p)); //#13218 - } //#13218 - $put($_.d, 5, $k[--$j]); //#13219 - if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13222 - $k[$j++] = Infinity; //#13221 - var _5x = $_.d; //#13221 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#13221 - $k[$j++] = $f($get(_5x, _5y) + 1); //#13221 - } //#13221 - $_.d = $a(); //#13221 - } //#13221 - $_.cbs = $strcpy($s(12), "111111111111"); //#13223 - for (var _64 = 5; _64 >= 0; _64 -= 1) { //#13227 - $_.i = _64; //#13225 - $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13226 - } //#13226 - $_.sbs = $s(($_.cws.length * 6) + 31); //#13230 - var _6E = $get($_.encs, $_.encs.length - 2); //#13231 - $puti($_.sbs, 0, _6E); //#13232 - $_.j = _6E.length; //#13233 - for (var _6I = 0, _6H = $_.cws.length - 1; _6I <= _6H; _6I += 1) { //#13238 - $_.i = _6I; //#13235 - $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13236 - $_.j = $_.j + 6; //#13237 - } //#13237 - $puti($_.sbs, $_.j, $_.cbs); //#13239 - $_.j = $_.j + 12; //#13240 - var _6X = $get($_.encs, $_.encs.length - 1); //#13241 - $puti($_.sbs, $_.j, _6X); //#13242 - $_.j = _6X.length + $_.j; //#13243 - $_.sbs = $geti($_.sbs, 0, $_.j); //#13244 - $k[$j++] = Infinity; //#13254 - $k[$j++] = Infinity; //#13249 - var _6e = $_.sbs; //#13249 - for (var _6f = 0, _6g = _6e.length; _6f < _6g; _6f++) { //#13249 - $k[$j++] = $f($get(_6e, _6f) - 48); //#13249 - } //#13249 - var _6i = $a(); //#13249 - $k[$j++] = Infinity; //#13250 - for (var _6k = 0, _6l = ~~(($_.sbs.length + 1) / 2); _6k < _6l; _6k++) { //#13250 - $k[$j++] = $_.height; //#13250 - } //#13250 - var _6n = $a(); //#13250 - $k[$j++] = Infinity; //#13251 - for (var _6p = 0, _6q = ~~(($_.sbs.length + 1) / 2); _6p < _6q; _6p++) { //#13251 - $k[$j++] = 0; //#13251 - } //#13251 - var _6r = $a(); //#13251 - $k[$j++] = 'ren'; //#13254 - $k[$j++] = bwipp_renlinear; //#13254 - $k[$j++] = 'sbs'; //#13254 - $k[$j++] = _6i; //#13254 - $k[$j++] = 'bhs'; //#13254 - $k[$j++] = _6n; //#13254 - $k[$j++] = 'bbs'; //#13254 - $k[$j++] = _6r; //#13254 - $k[$j++] = 'txt'; //#13254 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13254 - $k[$j++] = 'textxalign'; //#13254 - $k[$j++] = "center"; //#13254 - $k[$j++] = 'opt'; //#13254 - $k[$j++] = $_.options; //#13254 - var _70 = $d(); //#13254 - $k[$j++] = _70; //#13257 - if (!$_.dontdraw) { //#13257 - bwipp_renlinear(); //#13257 - } //#13257 - $_ = Object.getPrototypeOf($_); //#13259 - $_ = Object.getPrototypeOf($_); //#13261 -} - + ]); //#13365 + $_.encmaps = _56; //#13367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13367 + bwipp_posicode.__13368__ = 1; //#13367 + $_ = Object.getPrototypeOf($_); //#13367 + } //#13367 + $_.encs = $get($_.encmaps, $_.version); //#13369 + if (!bwipp_posicode.__13379__) { //#13379 + $_ = Object.create($_); //#13379 + $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13378 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13378 + bwipp_posicode.__13379__ = 1; //#13378 + $_ = Object.getPrototypeOf($_); //#13378 + } //#13378 + $_.v = 0; //#13380 + var _5I = $_.cws; //#13381 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#13390 + $_.cw = $get(_5I, _5J); //#13382 + for (var _5M = 0, _5N = 6; _5M < _5N; _5M++) { //#13389 + if ((($_.cw ^ $_.v) & 1) != 0) { //#13386 + $_.v = $_.v ^ 7682; //#13385 + } //#13385 + $_.v = $_.v >>> 1; //#13387 + $_.cw = $_.cw >>> 1; //#13388 + } //#13388 + } //#13388 + $_.v = $_.v + $_.checkoffset; //#13391 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13399 + $_.v = $_.v & 1023; //#13394 + if (($_.v > 824) && ($_.v < 853)) { //#13397 + $_.v = $_.v + 292; //#13396 + } //#13396 + } else { //#13399 + $_.v = ($_.v & 1023) + 45; //#13399 + } //#13399 + $_.d = $a([2, 2, 2, 2, 2, 2]); //#13402 + $_.r = 0; //#13403 + $_.c = 0; //#13403 + $_.w = 0; //#13403 + $_.sum = 0; //#13403 + for (;;) { //#13422 + if ($_.sum == $_.v) { //#13405 + break; //#13405 + } //#13405 + $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13406 + if ($_.t == $_.v) { //#13411 + $_.w = $_.w + 1; //#13408 + $put($_.d, $_.r, $_.w + 2); //#13409 + $_.sum = $_.t; //#13410 + } //#13410 + if ($_.t > $_.v) { //#13416 + $put($_.d, $_.r, $_.w + 2); //#13413 + $_.r = $_.r + 1; //#13414 + $_.w = 0; //#13415 + } //#13415 + if ($_.t < $_.v) { //#13421 + $_.c = $_.c + 1; //#13418 + $_.w = $_.w + 1; //#13419 + $_.sum = $_.t; //#13420 + } //#13420 + } //#13420 + $k[$j++] = 20; //#13423 + for (var _63 = 0; _63 <= 4; _63 += 1) { //#13423 + var _66 = $k[--$j]; //#13423 + $k[$j++] = $f(_66 - $get($_.d, _63)); //#13423 + } //#13423 + $put($_.d, 5, $k[--$j]); //#13424 + if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13427 + $k[$j++] = Infinity; //#13426 + var _6B = $_.d; //#13426 + for (var _6C = 0, _6D = _6B.length; _6C < _6D; _6C++) { //#13426 + $k[$j++] = $f($get(_6B, _6C) + 1); //#13426 + } //#13426 + $_.d = $a(); //#13426 + } //#13426 + $_.cbs = $strcpy($s(12), "111111111111"); //#13428 + for (var _6I = 5; _6I >= 0; _6I -= 1) { //#13432 + $_.i = _6I; //#13430 + $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13431 + } //#13431 + $_.sbs = $s(($_.cws.length * 6) + 31); //#13435 + var _6S = $get($_.encs, $_.encs.length - 2); //#13436 + $puti($_.sbs, 0, _6S); //#13437 + $_.j = _6S.length; //#13438 + for (var _6W = 0, _6V = $_.cws.length - 1; _6W <= _6V; _6W += 1) { //#13443 + $_.i = _6W; //#13440 + $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13441 + $_.j = $_.j + 6; //#13442 + } //#13442 + $puti($_.sbs, $_.j, $_.cbs); //#13444 + $_.j = $_.j + 12; //#13445 + var _6l = $get($_.encs, $_.encs.length - 1); //#13446 + $puti($_.sbs, $_.j, _6l); //#13447 + $_.j = _6l.length + $_.j; //#13448 + $_.sbs = $geti($_.sbs, 0, $_.j); //#13449 + $k[$j++] = Infinity; //#13452 + $k[$j++] = Infinity; //#13454 + var _6s = $_.sbs; //#13454 + for (var _6t = 0, _6u = _6s.length; _6t < _6u; _6t++) { //#13454 + $k[$j++] = $f($get(_6s, _6t) - 48); //#13454 + } //#13454 + var _6w = $a(); //#13454 + $k[$j++] = Infinity; //#13455 + for (var _6y = 0, _6z = ~~(($_.sbs.length + 1) / 2); _6y < _6z; _6y++) { //#13455 + $k[$j++] = $_.height; //#13455 + } //#13455 + var _71 = $a(); //#13455 + $k[$j++] = Infinity; //#13456 + for (var _73 = 0, _74 = ~~(($_.sbs.length + 1) / 2); _73 < _74; _73++) { //#13456 + $k[$j++] = 0; //#13456 + } //#13456 + var _75 = $a(); //#13456 + var _7D = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13459 + var _7G = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13460 + $k[$j++] = 'ren'; //#13461 + $k[$j++] = bwipp_renlinear; //#13461 + $k[$j++] = 'sbs'; //#13461 + $k[$j++] = _6w; //#13461 + $k[$j++] = 'bhs'; //#13461 + $k[$j++] = _71; //#13461 + $k[$j++] = 'bbs'; //#13461 + $k[$j++] = _75; //#13461 + $k[$j++] = 'txt'; //#13461 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13461 + $k[$j++] = 'textxalign'; //#13461 + $k[$j++] = "center"; //#13461 + $k[$j++] = 'borderleft'; //#13461 + $k[$j++] = $get(_7D, $_.version); //#13461 + $k[$j++] = 'borderright'; //#13461 + $k[$j++] = $get(_7G, $_.version); //#13461 + $k[$j++] = 'opt'; //#13461 + $k[$j++] = $_.options; //#13461 + var _7K = $d(); //#13461 + $k[$j++] = _7K; //#13464 + if (!$_.dontdraw) { //#13464 + bwipp_renlinear(); //#13464 + } //#13464 + $_ = Object.getPrototypeOf($_); //#13466 + $_ = Object.getPrototypeOf($_); //#13468 +} //bwipp_posicode function bwipp_codablockf() { - $_ = Object.create($_); //#13292 - $_.dontdraw = false; //#13295 - $_.rows = -1; //#13296 - $_.columns = 8; //#13297 - $_.rowheight = 10; //#13298 - $_.sepheight = 1; //#13299 - $_.parse = false; //#13300 - $_.parsefnc = false; //#13301 - $k[$j++] = $_; //#13303 - bwipp_processoptions(); //#13303 - $_.options = $k[--$j]; //#13303 - $_.barcode = $k[--$j]; //#13304 - if (($_.columns < 4) || ($_.columns > 62)) { //#13308 - $k[$j++] = 'bwipp.codablockfBadColumns#13307'; //#13307 - $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13307 - bwipp_raiseerror(); //#13307 - } //#13307 - if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13312 - $k[$j++] = 'bwipp.codablockfBadRows#13311'; //#13311 - $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13311 - bwipp_raiseerror(); //#13311 - } //#13311 - if ($_.rowheight < 8) { //#13316 - $k[$j++] = 'bwipp.codablockfBadRowHeight#13315'; //#13315 - $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13315 - bwipp_raiseerror(); //#13315 - } //#13315 - if ($_.sepheight < 1) { //#13320 - $k[$j++] = 'bwipp.codablockfBadSepHeight#13319'; //#13319 - $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13319 - bwipp_raiseerror(); //#13319 - } //#13319 - bwipp_loadctx(bwipp_codablockf) //#13322 - $k[$j++] = 'c'; //#13324 - if (($_.columns >= 4) && ($_.columns <= 62)) { //#13324 - $k[$j++] = $_.columns; //#13324 - } else { //#13324 - $k[$j++] = 8; //#13324 - } //#13324 - var _C = $k[--$j]; //#13324 - $_[$k[--$j]] = _C; //#13324 - $k[$j++] = 'rows'; //#13325 - if (($_.rows >= 2) && ($_.rows <= 44)) { //#13325 - $k[$j++] = $_.rows; //#13325 - } else { //#13325 - $k[$j++] = -1; //#13325 - } //#13325 - var _H = $k[--$j]; //#13325 - $_[$k[--$j]] = _H; //#13325 - $_.swa = -1; //#13328 - $_.swb = -2; //#13328 - $_.swc = -3; //#13328 - $_.sft = -4; //#13328 - $_.fn1 = -5; //#13329 - $_.fn2 = -6; //#13329 - $_.fn3 = -7; //#13329 - $_.fn4 = -8; //#13329 - $_.sta = -9; //#13330 - $_.stp = -10; //#13330 + $_ = Object.create($_); //#13499 + $_.dontdraw = false; //#13502 + $_.rows = -1; //#13503 + $_.columns = 8; //#13504 + $_.rowheight = 10; //#13505 + $_.sepheight = 1; //#13506 + $_.parse = false; //#13507 + $_.parsefnc = false; //#13508 + $k[$j++] = $_; //#13510 + bwipp_processoptions(); //#13510 + $_.options = $k[--$j]; //#13510 + $_.barcode = $k[--$j]; //#13511 + if (($_.columns < 4) || ($_.columns > 62)) { //#13515 + $k[$j++] = 'bwipp.codablockfBadColumns#13514'; //#13514 + $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13514 + bwipp_raiseerror(); //#13514 + } //#13514 + if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13519 + $k[$j++] = 'bwipp.codablockfBadRows#13518'; //#13518 + $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13518 + bwipp_raiseerror(); //#13518 + } //#13518 + if ($_.rowheight < 8) { //#13523 + $k[$j++] = 'bwipp.codablockfBadRowHeight#13522'; //#13522 + $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13522 + bwipp_raiseerror(); //#13522 + } //#13522 + if ($_.sepheight < 1) { //#13527 + $k[$j++] = 'bwipp.codablockfBadSepHeight#13526'; //#13526 + $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13526 + bwipp_raiseerror(); //#13526 + } //#13526 + bwipp_loadctx(bwipp_codablockf) //#13529 + $k[$j++] = 'c'; //#13531 + if (($_.columns >= 4) && ($_.columns <= 62)) { //#13531 + $k[$j++] = $_.columns; //#13531 + } else { //#13531 + $k[$j++] = 8; //#13531 + } //#13531 + var _C = $k[--$j]; //#13531 + $_[$k[--$j]] = _C; //#13531 + $k[$j++] = 'rows'; //#13532 + if (($_.rows >= 2) && ($_.rows <= 44)) { //#13532 + $k[$j++] = $_.rows; //#13532 + } else { //#13532 + $k[$j++] = -1; //#13532 + } //#13532 + var _H = $k[--$j]; //#13532 + $_[$k[--$j]] = _H; //#13532 + $_.swa = -1; //#13535 + $_.swb = -2; //#13535 + $_.swc = -3; //#13535 + $_.sft = -4; //#13535 + $_.fn1 = -5; //#13536 + $_.fn2 = -6; //#13536 + $_.fn3 = -7; //#13536 + $_.fn4 = -8; //#13536 + $_.sta = -9; //#13537 + $_.stp = -10; //#13537 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#13338 - $_.fncvals = _N; //#13340 - $k[$j++] = 'msg'; //#13341 - $k[$j++] = $_.barcode; //#13341 - $k[$j++] = $_.fncvals; //#13341 - bwipp_parseinput(); //#13341 - var _Q = $k[--$j]; //#13341 - $_[$k[--$j]] = _Q; //#13341 - $_.msglen = $_.msg.length; //#13342 - $_.msgtmp = $a([]); //#13345 - var _U = $_.msg; //#13346 - for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13349 - $_.char = $get(_U, _V); //#13347 - $k[$j++] = Infinity; //#13348 - $aload($_.msgtmp); //#13348 - if ($_.char < 128) { //#13348 - $k[$j++] = $_.char; //#13348 - } else { //#13348 - $k[$j++] = $_.fn4; //#13348 - $k[$j++] = $_.char & 127; //#13348 - } //#13348 - $_.msgtmp = $a(); //#13348 - } //#13348 - $_.kmsg = $_.msg; //#13350 - $_.msg = $_.msgtmp; //#13351 - $_.msglen = $_.msg.length; //#13352 - if (!bwipp_codablockf.__13409__) { //#13409 - $_ = Object.create($_); //#13409 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13393 - $_.charvals = $a([new Map, new Map, new Map]); //#13396 - for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13405 - $_.i = _2p; //#13398 - $_.encs = $get($_.charmaps, $_.i); //#13399 - for (var _2t = 0; _2t <= 2; _2t += 1) { //#13404 - $_.j = _2t; //#13401 - var _2w = $get($_.encs, $_.j); //#13402 - $k[$j++] = _2w; //#13402 - if ($eq($type(_2w), 'stringtype')) { //#13402 - var _2z = $get($k[--$j], 0); //#13402 - $k[$j++] = _2z; //#13402 - } //#13402 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13403 - } //#13403 - } //#13403 - $_.seta = $get($_.charvals, 0); //#13406 - $_.setb = $get($_.charvals, 1); //#13407 - $_.setc = $get($_.charvals, 2); //#13408 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13408 - bwipp_codablockf.__13409__ = 1; //#13408 - $_ = Object.getPrototypeOf($_); //#13408 - } //#13408 + ]); //#13545 + $_.fncvals = _N; //#13547 + $k[$j++] = 'msg'; //#13548 + $k[$j++] = $_.barcode; //#13548 + $k[$j++] = $_.fncvals; //#13548 + bwipp_parseinput(); //#13548 + var _Q = $k[--$j]; //#13548 + $_[$k[--$j]] = _Q; //#13548 + $_.msglen = $_.msg.length; //#13549 + $_.msgtmp = $a([]); //#13552 + var _U = $_.msg; //#13553 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13556 + $_.char = $get(_U, _V); //#13554 + $k[$j++] = Infinity; //#13555 + $aload($_.msgtmp); //#13555 + if ($_.char < 128) { //#13555 + $k[$j++] = $_.char; //#13555 + } else { //#13555 + $k[$j++] = $_.fn4; //#13555 + $k[$j++] = $_.char & 127; //#13555 + } //#13555 + $_.msgtmp = $a(); //#13555 + } //#13555 + $_.kmsg = $_.msg; //#13557 + $_.msg = $_.msgtmp; //#13558 + $_.msglen = $_.msg.length; //#13559 + if (!bwipp_codablockf.__13616__) { //#13616 + $_ = Object.create($_); //#13616 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13600 + $_.charvals = $a([new Map, new Map, new Map]); //#13603 + for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13612 + $_.i = _2p; //#13605 + $_.encs = $get($_.charmaps, $_.i); //#13606 + for (var _2t = 0; _2t <= 2; _2t += 1) { //#13611 + $_.j = _2t; //#13608 + var _2w = $get($_.encs, $_.j); //#13609 + $k[$j++] = _2w; //#13609 + if ($eq($type(_2w), 'stringtype')) { //#13609 + var _2z = $get($k[--$j], 0); //#13609 + $k[$j++] = _2z; //#13609 + } //#13609 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13610 + } //#13610 + } //#13610 + $_.seta = $get($_.charvals, 0); //#13613 + $_.setb = $get($_.charvals, 1); //#13614 + $_.setc = $get($_.charvals, 2); //#13615 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13615 + bwipp_codablockf.__13616__ = 1; //#13615 + $_ = Object.getPrototypeOf($_); //#13615 + } //#13615 $_.numsscr = function() { - $_.n = 0; //#13413 - $_.s = 0; //#13413 - $_.p = $k[--$j]; //#13414 - for (;;) { //#13425 - if ($_.p >= $_.msglen) { //#13415 - break; //#13415 - } //#13415 - var _3H = $get($_.msg, $_.p); //#13416 - var _3J = $get($_.setc, _3H) !== undefined; //#13417 - $k[$j++] = _3H; //#13417 - if (!_3J) { //#13417 - $j--; //#13417 - break; //#13417 - } //#13417 - if ($k[--$j] == $_.fn1) { //#13421 - if (($_.s % 2) == 0) { //#13420 - $_.s = $_.s + 1; //#13420 - } else { //#13420 - break; //#13420 - } //#13420 - } //#13420 - $_.n = $_.n + 1; //#13422 - $_.s = $_.s + 1; //#13423 - $_.p = $f($_.p + 1); //#13424 - } //#13424 - $k[$j++] = $_.n; //#13426 - $k[$j++] = $_.s; //#13426 - }; //#13426 + $_.n = 0; //#13620 + $_.s = 0; //#13620 + $_.p = $k[--$j]; //#13621 + for (;;) { //#13632 + if ($_.p >= $_.msglen) { //#13622 + break; //#13622 + } //#13622 + var _3H = $get($_.msg, $_.p); //#13623 + var _3J = $get($_.setc, _3H) !== undefined; //#13624 + $k[$j++] = _3H; //#13624 + if (!_3J) { //#13624 + $j--; //#13624 + break; //#13624 + } //#13624 + if ($k[--$j] == $_.fn1) { //#13628 + if (($_.s % 2) == 0) { //#13627 + $_.s = $_.s + 1; //#13627 + } else { //#13627 + break; //#13627 + } //#13627 + } //#13627 + $_.n = $_.n + 1; //#13629 + $_.s = $_.s + 1; //#13630 + $_.p = $f($_.p + 1); //#13631 + } //#13631 + $k[$j++] = $_.n; //#13633 + $k[$j++] = $_.s; //#13633 + }; //#13633 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13431 - $_.j = $_.j + 1; //#13432 - }; //#13432 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13638 + $_.j = $_.j + 1; //#13639 + }; //#13639 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13435 - $_.j = $_.j + 1; //#13436 - }; //#13436 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13642 + $_.j = $_.j + 1; //#13643 + }; //#13643 $_.encc = function() { - var _3f = $k[--$j]; //#13439 - $k[$j++] = _3f; //#13443 - if ($ne($type(_3f), 'arraytype')) { //#13442 - var _3j = $get($_.setc, $k[--$j]); //#13440 - $k[$j++] = _3j; //#13440 - } else { //#13442 - $aload($k[--$j]); //#13442 - var _3l = $k[--$j]; //#13442 - var _3m = $k[--$j]; //#13442 - $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13442 - } //#13442 - $put($_.cws, $_.j, $k[--$j]); //#13444 - $_.j = $_.j + 1; //#13445 - }; //#13445 + var _3f = $k[--$j]; //#13646 + $k[$j++] = _3f; //#13650 + if ($ne($type(_3f), 'arraytype')) { //#13649 + var _3j = $get($_.setc, $k[--$j]); //#13647 + $k[$j++] = _3j; //#13647 + } else { //#13649 + $aload($k[--$j]); //#13649 + var _3l = $k[--$j]; //#13649 + var _3m = $k[--$j]; //#13649 + $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13649 + } //#13649 + $put($_.cws, $_.j, $k[--$j]); //#13651 + $_.j = $_.j + 1; //#13652 + }; //#13652 $_.anotb = function() { - var _3r = $k[--$j]; //#13449 - var _3t = $get($_.seta, _3r) !== undefined; //#13449 - var _3v = $get($_.setb, _3r) !== undefined; //#13449 - $k[$j++] = _3t && (!_3v); //#13449 - }; //#13449 + var _3r = $k[--$j]; //#13656 + var _3t = $get($_.seta, _3r) !== undefined; //#13656 + var _3v = $get($_.setb, _3r) !== undefined; //#13656 + $k[$j++] = _3t && (!_3v); //#13656 + }; //#13656 $_.bnota = function() { - var _3w = $k[--$j]; //#13450 - var _3y = $get($_.setb, _3w) !== undefined; //#13450 - var _40 = $get($_.seta, _3w) !== undefined; //#13450 - $k[$j++] = _3y && (!_40); //#13450 - }; //#13450 - $k[$j++] = Infinity; //#13453 - for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13453 - $k[$j++] = 0; //#13453 - } //#13453 - $k[$j++] = 9999; //#13453 - $_.nextanotb = $a(); //#13453 - $k[$j++] = Infinity; //#13454 - for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13454 - $k[$j++] = 0; //#13454 - } //#13454 - $k[$j++] = 9999; //#13454 - $_.nextbnota = $a(); //#13454 - for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13467 - $_.i = _4A; //#13456 - $k[$j++] = $get($_.msg, $_.i); //#13457 - $_.anotb(); //#13457 - if ($k[--$j]) { //#13460 - $put($_.nextanotb, $_.i, 0); //#13458 - } else { //#13460 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13460 - } //#13460 - $k[$j++] = $get($_.msg, $_.i); //#13462 - $_.bnota(); //#13462 - if ($k[--$j]) { //#13465 - $put($_.nextbnota, $_.i, 0); //#13463 - } else { //#13465 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13465 - } //#13465 - } //#13465 + var _3w = $k[--$j]; //#13657 + var _3y = $get($_.setb, _3w) !== undefined; //#13657 + var _40 = $get($_.seta, _3w) !== undefined; //#13657 + $k[$j++] = _3y && (!_40); //#13657 + }; //#13657 + $k[$j++] = Infinity; //#13660 + for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13660 + $k[$j++] = 0; //#13660 + } //#13660 + $k[$j++] = 9999; //#13660 + $_.nextanotb = $a(); //#13660 + $k[$j++] = Infinity; //#13661 + for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13661 + $k[$j++] = 0; //#13661 + } //#13661 + $k[$j++] = 9999; //#13661 + $_.nextbnota = $a(); //#13661 + for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13674 + $_.i = _4A; //#13663 + $k[$j++] = $get($_.msg, $_.i); //#13664 + $_.anotb(); //#13664 + if ($k[--$j]) { //#13667 + $put($_.nextanotb, $_.i, 0); //#13665 + } else { //#13667 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13667 + } //#13667 + $k[$j++] = $get($_.msg, $_.i); //#13669 + $_.bnota(); //#13669 + if ($k[--$j]) { //#13672 + $put($_.nextbnota, $_.i, 0); //#13670 + } else { //#13672 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13672 + } //#13672 + } //#13672 $_.abeforeb = function() { - var _4X = $k[--$j]; //#13470 - $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13470 - }; //#13470 + var _4X = $k[--$j]; //#13677 + $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13677 + }; //#13677 $_.bbeforea = function() { - var _4c = $k[--$j]; //#13471 - $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13471 - }; //#13471 + var _4c = $k[--$j]; //#13678 + $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13678 + }; //#13678 $_.padrow = function() { - for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13481 - for (;;) { //#13480 - if ($eq($_.cset, "seta")) { //#13477 - $k[$j++] = $_.swc; //#13477 - $_.enca(); //#13477 - $_.cset = "setc"; //#13477 - break; //#13477 - } //#13477 - if ($eq($_.cset, "setb")) { //#13478 - $k[$j++] = $_.swc; //#13478 - $_.encb(); //#13478 - $_.cset = "setc"; //#13478 - break; //#13478 - } //#13478 - if ($eq($_.cset, "setc")) { //#13479 - $k[$j++] = $_.swb; //#13479 - $_.encc(); //#13479 - $_.cset = "setb"; //#13479 - break; //#13479 - } //#13479 - } //#13479 - } //#13479 - }; //#13479 + for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13688 + for (;;) { //#13687 + if ($eq($_.cset, "seta")) { //#13684 + $k[$j++] = $_.swc; //#13684 + $_.enca(); //#13684 + $_.cset = "setc"; //#13684 + break; //#13684 + } //#13684 + if ($eq($_.cset, "setb")) { //#13685 + $k[$j++] = $_.swc; //#13685 + $_.encb(); //#13685 + $_.cset = "setc"; //#13685 + break; //#13685 + } //#13685 + if ($eq($_.cset, "setc")) { //#13686 + $k[$j++] = $_.swb; //#13686 + $_.encc(); //#13686 + $_.cset = "setb"; //#13686 + break; //#13686 + } //#13686 + } //#13686 + } //#13686 + }; //#13686 $_.encafitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13496 - var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13488 - $k[$j++] = _4z; //#13492 - if (_4z) { //#13492 - $k[$j++] = $_.fn4; //#13489 - $_.enca(); //#13489 - $k[$j++] = $get($_.msg, $_.i + 1); //#13490 - $_.enca(); //#13490 - $_.i = $_.i + 2; //#13491 - } //#13491 - } else { //#13496 - $k[$j++] = $get($_.msg, $_.i); //#13494 - $_.enca(); //#13494 - $_.i = $_.i + 1; //#13495 - $k[$j++] = true; //#13496 - } //#13496 - }; //#13496 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13703 + var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13695 + $k[$j++] = _4z; //#13699 + if (_4z) { //#13699 + $k[$j++] = $_.fn4; //#13696 + $_.enca(); //#13696 + $k[$j++] = $get($_.msg, $_.i + 1); //#13697 + $_.enca(); //#13697 + $_.i = $_.i + 2; //#13698 + } //#13698 + } else { //#13703 + $k[$j++] = $get($_.msg, $_.i); //#13701 + $_.enca(); //#13701 + $_.i = $_.i + 1; //#13702 + $k[$j++] = true; //#13703 + } //#13703 + }; //#13703 $_.encbfitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13512 - var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13504 - $k[$j++] = _5I; //#13508 - if (_5I) { //#13508 - $k[$j++] = $_.fn4; //#13505 - $_.encb(); //#13505 - $k[$j++] = $get($_.msg, $_.i + 1); //#13506 - $_.encb(); //#13506 - $_.i = $_.i + 2; //#13507 - } //#13507 - } else { //#13512 - $k[$j++] = $get($_.msg, $_.i); //#13510 - $_.encb(); //#13510 - $_.i = $_.i + 1; //#13511 - $k[$j++] = true; //#13512 - } //#13512 - }; //#13512 - $_.cws = $a($f($_.c + 5) * 44); //#13517 - $_.i = 0; //#13519 - $_.j = 0; //#13519 - $_.r = 1; //#13519 - $_.lastrow = false; //#13520 - for (;;) { //#13687 - if ($_.lastrow) { //#13522 - break; //#13522 - } //#13522 - if ($_.r > 44) { //#13526 - $k[$j++] = 'bwipp.codablockfTooBig#13525'; //#13525 - $k[$j++] = "Maximum length exceeded"; //#13525 - bwipp_raiseerror(); //#13525 - } //#13525 - $k[$j++] = $_.sta; //#13529 - $_.enca(); //#13529 - if ($_.i < $_.msglen) { //#13530 - $k[$j++] = $_.i; //#13530 - $_.numsscr(); //#13530 - } else { //#13530 - $k[$j++] = -1; //#13530 - $k[$j++] = -1; //#13530 - } //#13530 - $_.nums = $k[--$j]; //#13530 - $_.nchars = $k[--$j]; //#13530 - for (;;) { //#13550 - if ($_.msglen == 0) { //#13536 - $k[$j++] = $_.swb; //#13533 - $_.enca(); //#13533 - $_.cset = "setb"; //#13534 - break; //#13535 - } //#13535 - if ($_.nums >= 2) { //#13541 - $k[$j++] = $_.swc; //#13538 - $_.enca(); //#13538 - $_.cset = "setc"; //#13539 - break; //#13540 - } //#13540 - $k[$j++] = $_.i; //#13542 - $_.abeforeb(); //#13542 - if ($k[--$j]) { //#13546 - $k[$j++] = $_.sft; //#13543 - $_.enca(); //#13543 - $_.cset = "seta"; //#13544 - break; //#13545 - } //#13545 - $k[$j++] = $_.swb; //#13547 - $_.enca(); //#13547 - $_.cset = "setb"; //#13548 - break; //#13549 - } //#13549 - $_.j = $_.j + 1; //#13551 - $_.endofrow = false; //#13554 - for (;;) { //#13672 - $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13555 - if (($_.i == $_.msglen) || $_.endofrow) { //#13557 - break; //#13557 - } //#13557 - $k[$j++] = $_.i; //#13559 - $_.numsscr(); //#13559 - $_.nums = $k[--$j]; //#13559 - $_.nchars = $k[--$j]; //#13559 - $k[$j++] = 'remnums'; //#13560 - if ($_.nums > ($_.rem * 2)) { //#13560 - $k[$j++] = $_.rem * 2; //#13560 - } else { //#13560 - $k[$j++] = $_.nums; //#13560 - } //#13560 - var _5y = $k[--$j]; //#13560 - $_[$k[--$j]] = _5y; //#13560 - for (;;) { //#13670 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13598 - if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13580 - $k[$j++] = $_.swc; //#13568 - if ($eq($_.cset, "seta")) { //#13568 - $_.enca(); //#13568 - } else { //#13568 - $_.encb(); //#13568 - } //#13568 - $_.cset = "setc"; //#13569 - for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13578 - if ($get($_.msg, $_.i) == $_.fn1) { //#13576 - $k[$j++] = $_.fn1; //#13572 - $_.encc(); //#13572 - $_.i = $_.i + 1; //#13573 - } else { //#13576 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13575 - $_.encc(); //#13575 - $_.i = $_.i + 2; //#13576 - } //#13576 - } //#13576 - break; //#13579 - } //#13579 - if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13597 - $k[$j++] = $get($_.msg, $_.i); //#13583 - if ($eq($_.cset, "seta")) { //#13583 - $_.enca(); //#13583 - } else { //#13583 - $_.encb(); //#13583 - } //#13583 - $_.i = $_.i + 1; //#13584 - $k[$j++] = $_.swc; //#13585 - if ($eq($_.cset, "seta")) { //#13585 - $_.enca(); //#13585 - } else { //#13585 - $_.encb(); //#13585 - } //#13585 - $_.cset = "setc"; //#13586 - for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13595 - if ($get($_.msg, $_.i) == $_.fn1) { //#13593 - $k[$j++] = $_.fn1; //#13589 - $_.encc(); //#13589 - $_.i = $_.i + 1; //#13590 - } else { //#13593 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13592 - $_.encc(); //#13592 - $_.i = $_.i + 2; //#13593 - } //#13593 - } //#13593 - break; //#13596 - } //#13596 - } //#13596 - $k[$j++] = $eq($_.cset, "setb"); //#13599 - $k[$j++] = $get($_.msg, $_.i); //#13599 - $_.anotb(); //#13599 - var _6m = $k[--$j]; //#13599 - var _6n = $k[--$j]; //#13599 - if ((_6n && _6m) && ($_.rem >= 2)) { //#13614 - if ($_.i < ($_.msglen - 1)) { //#13608 - $k[$j++] = $_.i + 1; //#13602 - $_.bbeforea(); //#13602 - if ($k[--$j]) { //#13607 - $k[$j++] = $_.sft; //#13603 - $_.encb(); //#13603 - $k[$j++] = $get($_.msg, $_.i); //#13604 - $_.enca(); //#13604 - $_.i = $_.i + 1; //#13605 - break; //#13606 - } //#13606 - } //#13606 - $k[$j++] = $_.swa; //#13609 - $_.encb(); //#13609 - $_.cset = "seta"; //#13610 - $k[$j++] = $get($_.msg, $_.i); //#13611 - $_.enca(); //#13611 - $_.i = $_.i + 1; //#13612 - break; //#13613 - } //#13613 - $k[$j++] = $eq($_.cset, "seta"); //#13615 - $k[$j++] = $get($_.msg, $_.i); //#13615 - $_.bnota(); //#13615 - var _77 = $k[--$j]; //#13615 - var _78 = $k[--$j]; //#13615 - if ((_78 && _77) && ($_.rem >= 2)) { //#13630 - if ($_.i < ($_.msglen - 1)) { //#13624 - $k[$j++] = $_.i + 1; //#13618 - $_.abeforeb(); //#13618 - if ($k[--$j]) { //#13623 - $k[$j++] = $_.sft; //#13619 - $_.enca(); //#13619 - $k[$j++] = $get($_.msg, $_.i); //#13620 - $_.encb(); //#13620 - $_.i = $_.i + 1; //#13621 - break; //#13622 - } //#13622 - } //#13622 - $k[$j++] = $_.swb; //#13625 - $_.enca(); //#13625 - $_.cset = "setb"; //#13626 - $k[$j++] = $get($_.msg, $_.i); //#13627 - $_.encb(); //#13627 - $_.i = $_.i + 1; //#13628 - break; //#13629 - } //#13629 - if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13643 - $_.rem = $f($_.rem - 1); //#13633 - $k[$j++] = $_.i; //#13634 - $_.abeforeb(); //#13634 - if ($k[--$j]) { //#13641 - $k[$j++] = $_.swa; //#13635 - $_.encc(); //#13635 - $_.cset = "seta"; //#13636 - $_.encafitsrow(); //#13637 - if ($k[--$j]) { //#13637 - break; //#13637 - } //#13637 - } else { //#13641 - $k[$j++] = $_.swb; //#13639 - $_.encc(); //#13639 - $_.cset = "setb"; //#13640 - $_.encbfitsrow(); //#13641 - if ($k[--$j]) { //#13641 - break; //#13641 - } //#13641 - } //#13641 - } //#13641 - var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13646 - if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13649 - $_.encafitsrow(); //#13648 - if ($k[--$j]) { //#13648 - break; //#13648 - } //#13648 - } //#13648 - var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13650 - if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13653 - $_.encbfitsrow(); //#13652 - if ($k[--$j]) { //#13652 - break; //#13652 - } //#13652 - } //#13652 - if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13664 - if ($get($_.msg, $_.i) == $_.fn1) { //#13661 - $k[$j++] = $_.fn1; //#13657 - $_.encc(); //#13657 - $_.i = $_.i + 1; //#13658 - } else { //#13661 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13660 - $_.encc(); //#13660 - $_.i = $_.i + 2; //#13661 - } //#13661 - break; //#13663 - } //#13663 - $_.endofrow = true; //#13667 - break; //#13668 - } //#13668 - } //#13668 - if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13684 - $k[$j++] = $f($_.rem - 2); //#13676 - $_.padrow(); //#13676 - $_.j = $_.j + 3; //#13677 - $k[$j++] = $_.stp; //#13678 - $_.enca(); //#13678 - $_.lastrow = true; //#13679 - } else { //#13684 - $k[$j++] = $_.rem; //#13681 - $_.padrow(); //#13681 - $_.j = $_.j + 1; //#13682 - $k[$j++] = $_.stp; //#13683 - $_.enca(); //#13683 - $_.r = $_.r + 1; //#13684 - } //#13684 - } //#13684 - $_.cws = $geti($_.cws, 0, $_.j); //#13688 - if (!bwipp_codablockf.__13698__) { //#13698 - $_ = Object.create($_); //#13698 - $k[$j++] = Infinity; //#13695 - for (var _8I = 64; _8I <= 95; _8I += 1) { //#13693 - $k[$j++] = _8I; //#13693 - } //#13693 - for (var _8J = 0; _8J <= 15; _8J += 1) { //#13694 - $k[$j++] = _8J; //#13694 - } //#13694 - for (var _8K = 26; _8K <= 63; _8K += 1) { //#13695 - $k[$j++] = _8K; //#13695 - } //#13695 - $_.abmap = $a(); //#13695 - $k[$j++] = Infinity; //#13697 - for (var _8M = 0; _8M <= 85; _8M += 1) { //#13697 - $k[$j++] = _8M; //#13697 - } //#13697 - $_.cmap = $a(); //#13697 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13697 - bwipp_codablockf.__13698__ = 1; //#13697 - $_ = Object.getPrototypeOf($_); //#13697 - } //#13697 - $_.chkmsg = $a($_.kmsg.length); //#13701 - $_.j = 0; //#13702 - for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13708 - $_.i = _8T; //#13704 - $_.char = $get($_.kmsg, $_.i); //#13705 - if ($_.char >= 0) { //#13706 - $put($_.chkmsg, $_.j, $_.char); //#13706 - $_.j = $_.j + 1; //#13706 - } //#13706 - if (($_.char == $_.fn1) && ($_.i != 0)) { //#13707 - $put($_.chkmsg, $_.j, 29); //#13707 - $_.j = $_.j + 1; //#13707 - } //#13707 - } //#13707 - $_.t1 = 0; //#13709 - $_.t2 = 0; //#13709 - $_.k1 = 0; //#13709 - $_.k2 = 0; //#13709 - for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13716 - $_.i = _8k; //#13711 - $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13712 - $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13713 - $_.k1 = $f($_.k1 + $_.t2) % 86; //#13714 - $_.k2 = $f($_.k2 + $_.t1) % 86; //#13715 - } //#13715 - $k[$j++] = $_.cws; //#13717 - $k[$j++] = $_.cws.length - 4; //#13717 - if ($ne($_.cset, "setc")) { //#13717 - $k[$j++] = $_.abmap; //#13717 - } else { //#13717 - $k[$j++] = $_.cmap; //#13717 - } //#13717 - var _94 = $get($k[--$j], $_.k1); //#13717 - var _95 = $k[--$j]; //#13717 - $put($k[--$j], _95, _94); //#13717 - $k[$j++] = $_.cws; //#13718 - $k[$j++] = $_.cws.length - 3; //#13718 - if ($ne($_.cset, "setc")) { //#13718 - $k[$j++] = $_.abmap; //#13718 - } else { //#13718 - $k[$j++] = $_.cmap; //#13718 - } //#13718 - var _9E = $get($k[--$j], $_.k2); //#13718 - var _9F = $k[--$j]; //#13718 - $put($k[--$j], _9F, _9E); //#13718 - var _9H = $_.cws; //#13721 - $k[$j++] = _9H; //#13721 - $k[$j++] = 2; //#13721 - if ($get(_9H, 2 - 1) != 99) { //#13721 - $k[$j++] = $_.abmap; //#13721 - } else { //#13721 - $k[$j++] = $_.cmap; //#13721 - } //#13721 - var _9N = $get($k[--$j], $_.r - 2); //#13721 - var _9O = $k[--$j]; //#13721 - $put($k[--$j], _9O, _9N); //#13721 - for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13725 - $_.i = _9S; //#13723 - var _9T = $_.cws; //#13724 - var _9U = $_.i; //#13724 - var _9V = $_.c; //#13724 - $k[$j++] = _9T; //#13724 - $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13724 - if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13724 - $k[$j++] = $_.abmap; //#13724 - } else { //#13724 - $k[$j++] = $_.cmap; //#13724 - } //#13724 - var _9b = $get($k[--$j], $_.i + 42); //#13724 - var _9c = $k[--$j]; //#13724 - $put($k[--$j], _9c, _9b); //#13724 - } //#13724 - for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13736 - $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13729 - $_.csum = $get($_.rcws, 0); //#13730 - for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13734 - $_.i = _9p; //#13732 - $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13733 - } //#13733 - $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13735 - } //#13735 - var _9z = $get($_.options, 'debugcws') !== undefined; //#13738 - if (_9z) { //#13738 - $k[$j++] = 'bwipp.debugcws#13738'; //#13738 - $k[$j++] = $_.cws; //#13738 - bwipp_raiseerror(); //#13738 - } //#13738 - if (!bwipp_codablockf.__13759__) { //#13759 - $_ = Object.create($_); //#13759 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13758 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13758 - bwipp_codablockf.__13759__ = 1; //#13758 - $_ = Object.getPrototypeOf($_); //#13758 - } //#13758 - $_.rowbits = $a($_.r); //#13762 - for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13774 - $_.i = _A7; //#13764 - $k[$j++] = Infinity; //#13767 - var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13766 - for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13768 - $forall($get($_.encs, $get(_AC, _AD)), function() { //#13767 - var _AI = $k[--$j]; //#13767 - $k[$j++] = $f(_AI - 48); //#13767 - }); //#13767 - } //#13767 - $_.sbs = $a(); //#13767 - $k[$j++] = Infinity; //#13770 - var _AK = $_.sbs; //#13771 - $k[$j++] = 0; //#13771 - for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13771 - var _AO = $k[--$j]; //#13771 - var _AP = (_AO == 1) ? 0 : 1; //#13771 - $k[$j++] = _AO; //#13771 - for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13771 - $k[$j++] = _AP //#13771 - } //#13771 - } //#13771 - $astore($a($counttomark() - 1)); //#13772 - var _AU = $k[--$j]; //#13772 - var _AV = $k[--$j]; //#13772 - $k[$j++] = _AU; //#13772 - $k[$j++] = _AV; //#13772 - $j--; //#13772 - var _AW = $k[--$j]; //#13772 - var _AX = $k[--$j]; //#13772 - $k[$j++] = _AW; //#13772 - $k[$j++] = _AX; //#13772 - $j--; //#13772 - $put($_.rowbits, $_.i, $k[--$j]); //#13773 - } //#13773 - $_.symwid = $f(($_.c * 11) + 57); //#13777 - $k[$j++] = Infinity; //#13790 - for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13779 - $k[$j++] = 1; //#13779 - } //#13779 - for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13788 - $_.i = _Ai; //#13781 - for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13782 - $aload($get($_.rowbits, $_.i)); //#13782 - } //#13782 - for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13787 - $k[$j++] = 1; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13785 - $k[$j++] = 1; //#13785 - } //#13785 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - } //#13786 - } //#13786 - for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13789 - $aload($get($_.rowbits, $_.r - 1)); //#13789 - } //#13789 - for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13790 - $k[$j++] = 1; //#13790 - } //#13790 - $_.pixs = $a(); //#13790 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13719 + var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13711 + $k[$j++] = _5I; //#13715 + if (_5I) { //#13715 + $k[$j++] = $_.fn4; //#13712 + $_.encb(); //#13712 + $k[$j++] = $get($_.msg, $_.i + 1); //#13713 + $_.encb(); //#13713 + $_.i = $_.i + 2; //#13714 + } //#13714 + } else { //#13719 + $k[$j++] = $get($_.msg, $_.i); //#13717 + $_.encb(); //#13717 + $_.i = $_.i + 1; //#13718 + $k[$j++] = true; //#13719 + } //#13719 + }; //#13719 + $_.cws = $a($f($_.c + 5) * 44); //#13724 + $_.i = 0; //#13726 + $_.j = 0; //#13726 + $_.r = 1; //#13726 + $_.lastrow = false; //#13727 + for (;;) { //#13894 + if ($_.lastrow) { //#13729 + break; //#13729 + } //#13729 + if ($_.r > 44) { //#13733 + $k[$j++] = 'bwipp.codablockfTooBig#13732'; //#13732 + $k[$j++] = "Maximum length exceeded"; //#13732 + bwipp_raiseerror(); //#13732 + } //#13732 + $k[$j++] = $_.sta; //#13736 + $_.enca(); //#13736 + if ($_.i < $_.msglen) { //#13737 + $k[$j++] = $_.i; //#13737 + $_.numsscr(); //#13737 + } else { //#13737 + $k[$j++] = -1; //#13737 + $k[$j++] = -1; //#13737 + } //#13737 + $_.nums = $k[--$j]; //#13737 + $_.nchars = $k[--$j]; //#13737 + for (;;) { //#13757 + if ($_.msglen == 0) { //#13743 + $k[$j++] = $_.swb; //#13740 + $_.enca(); //#13740 + $_.cset = "setb"; //#13741 + break; //#13742 + } //#13742 + if ($_.nums >= 2) { //#13748 + $k[$j++] = $_.swc; //#13745 + $_.enca(); //#13745 + $_.cset = "setc"; //#13746 + break; //#13747 + } //#13747 + $k[$j++] = $_.i; //#13749 + $_.abeforeb(); //#13749 + if ($k[--$j]) { //#13753 + $k[$j++] = $_.sft; //#13750 + $_.enca(); //#13750 + $_.cset = "seta"; //#13751 + break; //#13752 + } //#13752 + $k[$j++] = $_.swb; //#13754 + $_.enca(); //#13754 + $_.cset = "setb"; //#13755 + break; //#13756 + } //#13756 + $_.j = $_.j + 1; //#13758 + $_.endofrow = false; //#13761 + for (;;) { //#13879 + $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13762 + if (($_.i == $_.msglen) || $_.endofrow) { //#13764 + break; //#13764 + } //#13764 + $k[$j++] = $_.i; //#13766 + $_.numsscr(); //#13766 + $_.nums = $k[--$j]; //#13766 + $_.nchars = $k[--$j]; //#13766 + $k[$j++] = 'remnums'; //#13767 + if ($_.nums > ($_.rem * 2)) { //#13767 + $k[$j++] = $_.rem * 2; //#13767 + } else { //#13767 + $k[$j++] = $_.nums; //#13767 + } //#13767 + var _5y = $k[--$j]; //#13767 + $_[$k[--$j]] = _5y; //#13767 + for (;;) { //#13877 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13805 + if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13787 + $k[$j++] = $_.swc; //#13775 + if ($eq($_.cset, "seta")) { //#13775 + $_.enca(); //#13775 + } else { //#13775 + $_.encb(); //#13775 + } //#13775 + $_.cset = "setc"; //#13776 + for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13785 + if ($get($_.msg, $_.i) == $_.fn1) { //#13783 + $k[$j++] = $_.fn1; //#13779 + $_.encc(); //#13779 + $_.i = $_.i + 1; //#13780 + } else { //#13783 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13782 + $_.encc(); //#13782 + $_.i = $_.i + 2; //#13783 + } //#13783 + } //#13783 + break; //#13786 + } //#13786 + if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13804 + $k[$j++] = $get($_.msg, $_.i); //#13790 + if ($eq($_.cset, "seta")) { //#13790 + $_.enca(); //#13790 + } else { //#13790 + $_.encb(); //#13790 + } //#13790 + $_.i = $_.i + 1; //#13791 + $k[$j++] = $_.swc; //#13792 + if ($eq($_.cset, "seta")) { //#13792 + $_.enca(); //#13792 + } else { //#13792 + $_.encb(); //#13792 + } //#13792 + $_.cset = "setc"; //#13793 + for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13802 + if ($get($_.msg, $_.i) == $_.fn1) { //#13800 + $k[$j++] = $_.fn1; //#13796 + $_.encc(); //#13796 + $_.i = $_.i + 1; //#13797 + } else { //#13800 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13799 + $_.encc(); //#13799 + $_.i = $_.i + 2; //#13800 + } //#13800 + } //#13800 + break; //#13803 + } //#13803 + } //#13803 + $k[$j++] = $eq($_.cset, "setb"); //#13806 + $k[$j++] = $get($_.msg, $_.i); //#13806 + $_.anotb(); //#13806 + var _6m = $k[--$j]; //#13806 + var _6n = $k[--$j]; //#13806 + if ((_6n && _6m) && ($_.rem >= 2)) { //#13821 + if ($_.i < ($_.msglen - 1)) { //#13815 + $k[$j++] = $_.i + 1; //#13809 + $_.bbeforea(); //#13809 + if ($k[--$j]) { //#13814 + $k[$j++] = $_.sft; //#13810 + $_.encb(); //#13810 + $k[$j++] = $get($_.msg, $_.i); //#13811 + $_.enca(); //#13811 + $_.i = $_.i + 1; //#13812 + break; //#13813 + } //#13813 + } //#13813 + $k[$j++] = $_.swa; //#13816 + $_.encb(); //#13816 + $_.cset = "seta"; //#13817 + $k[$j++] = $get($_.msg, $_.i); //#13818 + $_.enca(); //#13818 + $_.i = $_.i + 1; //#13819 + break; //#13820 + } //#13820 + $k[$j++] = $eq($_.cset, "seta"); //#13822 + $k[$j++] = $get($_.msg, $_.i); //#13822 + $_.bnota(); //#13822 + var _77 = $k[--$j]; //#13822 + var _78 = $k[--$j]; //#13822 + if ((_78 && _77) && ($_.rem >= 2)) { //#13837 + if ($_.i < ($_.msglen - 1)) { //#13831 + $k[$j++] = $_.i + 1; //#13825 + $_.abeforeb(); //#13825 + if ($k[--$j]) { //#13830 + $k[$j++] = $_.sft; //#13826 + $_.enca(); //#13826 + $k[$j++] = $get($_.msg, $_.i); //#13827 + $_.encb(); //#13827 + $_.i = $_.i + 1; //#13828 + break; //#13829 + } //#13829 + } //#13829 + $k[$j++] = $_.swb; //#13832 + $_.enca(); //#13832 + $_.cset = "setb"; //#13833 + $k[$j++] = $get($_.msg, $_.i); //#13834 + $_.encb(); //#13834 + $_.i = $_.i + 1; //#13835 + break; //#13836 + } //#13836 + if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13850 + $_.rem = $f($_.rem - 1); //#13840 + $k[$j++] = $_.i; //#13841 + $_.abeforeb(); //#13841 + if ($k[--$j]) { //#13848 + $k[$j++] = $_.swa; //#13842 + $_.encc(); //#13842 + $_.cset = "seta"; //#13843 + $_.encafitsrow(); //#13844 + if ($k[--$j]) { //#13844 + break; //#13844 + } //#13844 + } else { //#13848 + $k[$j++] = $_.swb; //#13846 + $_.encc(); //#13846 + $_.cset = "setb"; //#13847 + $_.encbfitsrow(); //#13848 + if ($k[--$j]) { //#13848 + break; //#13848 + } //#13848 + } //#13848 + } //#13848 + var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13853 + if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13856 + $_.encafitsrow(); //#13855 + if ($k[--$j]) { //#13855 + break; //#13855 + } //#13855 + } //#13855 + var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13857 + if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13860 + $_.encbfitsrow(); //#13859 + if ($k[--$j]) { //#13859 + break; //#13859 + } //#13859 + } //#13859 + if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13871 + if ($get($_.msg, $_.i) == $_.fn1) { //#13868 + $k[$j++] = $_.fn1; //#13864 + $_.encc(); //#13864 + $_.i = $_.i + 1; //#13865 + } else { //#13868 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13867 + $_.encc(); //#13867 + $_.i = $_.i + 2; //#13868 + } //#13868 + break; //#13870 + } //#13870 + $_.endofrow = true; //#13874 + break; //#13875 + } //#13875 + } //#13875 + if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13891 + $k[$j++] = $f($_.rem - 2); //#13883 + $_.padrow(); //#13883 + $_.j = $_.j + 3; //#13884 + $k[$j++] = $_.stp; //#13885 + $_.enca(); //#13885 + $_.lastrow = true; //#13886 + } else { //#13891 + $k[$j++] = $_.rem; //#13888 + $_.padrow(); //#13888 + $_.j = $_.j + 1; //#13889 + $k[$j++] = $_.stp; //#13890 + $_.enca(); //#13890 + $_.r = $_.r + 1; //#13891 + } //#13891 + } //#13891 + $_.cws = $geti($_.cws, 0, $_.j); //#13895 + if (!bwipp_codablockf.__13905__) { //#13905 + $_ = Object.create($_); //#13905 + $k[$j++] = Infinity; //#13899 + for (var _8I = 64; _8I <= 95; _8I += 1) { //#13900 + $k[$j++] = _8I; //#13900 + } //#13900 + for (var _8J = 0; _8J <= 15; _8J += 1) { //#13901 + $k[$j++] = _8J; //#13901 + } //#13901 + for (var _8K = 26; _8K <= 63; _8K += 1) { //#13902 + $k[$j++] = _8K; //#13902 + } //#13902 + $_.abmap = $a(); //#13902 + $k[$j++] = Infinity; //#13904 + for (var _8M = 0; _8M <= 85; _8M += 1) { //#13904 + $k[$j++] = _8M; //#13904 + } //#13904 + $_.cmap = $a(); //#13904 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13904 + bwipp_codablockf.__13905__ = 1; //#13904 + $_ = Object.getPrototypeOf($_); //#13904 + } //#13904 + $_.chkmsg = $a($_.kmsg.length); //#13908 + $_.j = 0; //#13909 + for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13915 + $_.i = _8T; //#13911 + $_.char = $get($_.kmsg, $_.i); //#13912 + if ($_.char >= 0) { //#13913 + $put($_.chkmsg, $_.j, $_.char); //#13913 + $_.j = $_.j + 1; //#13913 + } //#13913 + if (($_.char == $_.fn1) && ($_.i != 0)) { //#13914 + $put($_.chkmsg, $_.j, 29); //#13914 + $_.j = $_.j + 1; //#13914 + } //#13914 + } //#13914 + $_.t1 = 0; //#13916 + $_.t2 = 0; //#13916 + $_.k1 = 0; //#13916 + $_.k2 = 0; //#13916 + for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13923 + $_.i = _8k; //#13918 + $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13919 + $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13920 + $_.k1 = $f($_.k1 + $_.t2) % 86; //#13921 + $_.k2 = $f($_.k2 + $_.t1) % 86; //#13922 + } //#13922 + $k[$j++] = $_.cws; //#13924 + $k[$j++] = $_.cws.length - 4; //#13924 + if ($ne($_.cset, "setc")) { //#13924 + $k[$j++] = $_.abmap; //#13924 + } else { //#13924 + $k[$j++] = $_.cmap; //#13924 + } //#13924 + var _94 = $get($k[--$j], $_.k1); //#13924 + var _95 = $k[--$j]; //#13924 + $put($k[--$j], _95, _94); //#13924 + $k[$j++] = $_.cws; //#13925 + $k[$j++] = $_.cws.length - 3; //#13925 + if ($ne($_.cset, "setc")) { //#13925 + $k[$j++] = $_.abmap; //#13925 + } else { //#13925 + $k[$j++] = $_.cmap; //#13925 + } //#13925 + var _9E = $get($k[--$j], $_.k2); //#13925 + var _9F = $k[--$j]; //#13925 + $put($k[--$j], _9F, _9E); //#13925 + var _9H = $_.cws; //#13928 + $k[$j++] = _9H; //#13928 + $k[$j++] = 2; //#13928 + if ($get(_9H, 2 - 1) != 99) { //#13928 + $k[$j++] = $_.abmap; //#13928 + } else { //#13928 + $k[$j++] = $_.cmap; //#13928 + } //#13928 + var _9N = $get($k[--$j], $_.r - 2); //#13928 + var _9O = $k[--$j]; //#13928 + $put($k[--$j], _9O, _9N); //#13928 + for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13932 + $_.i = _9S; //#13930 + var _9T = $_.cws; //#13931 + var _9U = $_.i; //#13931 + var _9V = $_.c; //#13931 + $k[$j++] = _9T; //#13931 + $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13931 + if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13931 + $k[$j++] = $_.abmap; //#13931 + } else { //#13931 + $k[$j++] = $_.cmap; //#13931 + } //#13931 + var _9b = $get($k[--$j], $_.i + 42); //#13931 + var _9c = $k[--$j]; //#13931 + $put($k[--$j], _9c, _9b); //#13931 + } //#13931 + for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13943 + $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13936 + $_.csum = $get($_.rcws, 0); //#13937 + for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13941 + $_.i = _9p; //#13939 + $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13940 + } //#13940 + $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13942 + } //#13942 + var _9z = $get($_.options, 'debugcws') !== undefined; //#13945 + if (_9z) { //#13945 + $k[$j++] = 'bwipp.debugcws#13945'; //#13945 + $k[$j++] = $_.cws; //#13945 + bwipp_raiseerror(); //#13945 + } //#13945 + if (!bwipp_codablockf.__13966__) { //#13966 + $_ = Object.create($_); //#13966 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13965 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13965 + bwipp_codablockf.__13966__ = 1; //#13965 + $_ = Object.getPrototypeOf($_); //#13965 + } //#13965 + $_.rowbits = $a($_.r); //#13969 + for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13981 + $_.i = _A7; //#13971 + $k[$j++] = Infinity; //#13972 + var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13973 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13975 + $forall($get($_.encs, $get(_AC, _AD)), function() { //#13974 + var _AI = $k[--$j]; //#13974 + $k[$j++] = $f(_AI - 48); //#13974 + }); //#13974 + } //#13974 + $_.sbs = $a(); //#13974 + $k[$j++] = Infinity; //#13977 + var _AK = $_.sbs; //#13978 + $k[$j++] = 0; //#13978 + for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13978 + var _AO = $k[--$j]; //#13978 + var _AP = (_AO == 1) ? 0 : 1; //#13978 + $k[$j++] = _AO; //#13978 + for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13978 + $k[$j++] = _AP //#13978 + } //#13978 + } //#13978 + $astore($a($counttomark() - 1)); //#13979 + var _AU = $k[--$j]; //#13979 + var _AV = $k[--$j]; //#13979 + $k[$j++] = _AU; //#13979 + $k[$j++] = _AV; //#13979 + $j--; //#13979 + var _AW = $k[--$j]; //#13979 + var _AX = $k[--$j]; //#13979 + $k[$j++] = _AW; //#13979 + $k[$j++] = _AX; //#13979 + $j--; //#13979 + $put($_.rowbits, $_.i, $k[--$j]); //#13980 + } //#13980 + $_.symwid = $f(($_.c * 11) + 57); //#13984 + $k[$j++] = Infinity; //#13985 + for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13986 + $k[$j++] = 1; //#13986 + } //#13986 + for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13995 + $_.i = _Ai; //#13988 + for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13989 + $aload($get($_.rowbits, $_.i)); //#13989 + } //#13989 + for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13994 + $k[$j++] = 1; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13992 + $k[$j++] = 1; //#13992 + } //#13992 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + } //#13993 + } //#13993 + for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13996 + $aload($get($_.rowbits, $_.r - 1)); //#13996 + } //#13996 + for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13997 + $k[$j++] = 1; //#13997 + } //#13997 + $_.pixs = $a(); //#13997 var _BE = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -17199,152 +17522,151 @@ function bwipp_codablockf() { ["height", (~~($_.pixs.length / $_.symwid)) / 72], ["width", $_.symwid / 72], ["opt", $_.options] - ]); //#13801 - $k[$j++] = _BE; //#13804 - if (!$_.dontdraw) { //#13804 - bwipp_renmatrix(); //#13804 - } //#13804 - $_ = Object.getPrototypeOf($_); //#13806 - $_ = Object.getPrototypeOf($_); //#13808 -} - + ]); //#14008 + $k[$j++] = _BE; //#14011 + if (!$_.dontdraw) { //#14011 + bwipp_renmatrix(); //#14011 + } //#14011 + $_ = Object.getPrototypeOf($_); //#14013 + $_ = Object.getPrototypeOf($_); //#14015 +} //bwipp_codablockf function bwipp_code16k() { - $_ = Object.create($_); //#13839 - $_.dontdraw = false; //#13842 - $_.sam = -1; //#13843 - $_.rows = 0; //#13844 - $_.rowheight = 8; //#13845 - $_.sepheight = 1; //#13846 - $_.raw = false; //#13847 - $_.parse = false; //#13848 - $_.parsefnc = false; //#13849 - $k[$j++] = $_; //#13851 - bwipp_processoptions(); //#13851 - $_.options = $k[--$j]; //#13851 - $_.barcode = $k[--$j]; //#13852 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#13856 - $k[$j++] = 'bwipp.code16kBadRows#13855'; //#13855 - $k[$j++] = "Code 16K must have 2 to 16 rows"; //#13855 - bwipp_raiseerror(); //#13855 - } //#13855 - if ($_.rowheight < 8) { //#13860 - $k[$j++] = 'bwipp.code16kBadRowHeight#13859'; //#13859 - $k[$j++] = "Code 16K must have rowheight of at least 8"; //#13859 - bwipp_raiseerror(); //#13859 - } //#13859 - if ($_.sepheight < 1) { //#13864 - $k[$j++] = 'bwipp.code16kBadSepHeight#13863'; //#13863 - $k[$j++] = "Code 16K must have sepheight of at least 1"; //#13863 - bwipp_raiseerror(); //#13863 - } //#13863 - if ($_.sam != -1) { //#13876 - $k[$j++] = true; //#13872 - for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#13872 - var _A = $_.sam; //#13869 - if ((_A < 12) || (_A > 99)) { //#13869 - $j--; //#13869 - $k[$j++] = false; //#13869 - break; //#13869 - } //#13869 - if (($_.sam % 10) < 2) { //#13870 - $j--; //#13870 - $k[$j++] = false; //#13870 - break; //#13870 - } //#13870 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#13871 - $j--; //#13871 - $k[$j++] = false; //#13871 - break; //#13871 - } //#13871 - } //#13871 - if ($nt($k[--$j])) { //#13875 - $k[$j++] = 'bwipp.code16kBadSAM#13874'; //#13874 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#13874 - bwipp_raiseerror(); //#13874 - } //#13874 - } //#13874 - bwipp_loadctx(bwipp_code16k) //#13878 - if ($_.sam != -1) { //#13880 - $_.rows = 16; //#13880 - } //#13880 - if (!bwipp_code16k.__13945__) { //#13945 - $_ = Object.create($_); //#13945 - $_.swa = -1; //#13884 - $_.swb = -2; //#13884 - $_.swc = -3; //#13884 - $_.sa1 = -4; //#13885 - $_.sb1 = -5; //#13885 - $_.sc1 = -6; //#13885 - $_.sa2 = -7; //#13886 - $_.sb2 = -8; //#13886 - $_.sc2 = -9; //#13886 - $_.pad = -10; //#13887 - $_.sb3 = -11; //#13887 - $_.sc3 = -12; //#13887 - $_.fn1 = -13; //#13888 - $_.fn2 = -14; //#13888 - $_.fn3 = -15; //#13888 - $_.fn4 = -16; //#13888 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#13929 - $_.charvals = $a([new Map, new Map, new Map]); //#13932 - for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#13941 - $_.i = _2W; //#13934 - $_.encs = $get($_.charmaps, $_.i); //#13935 - for (var _2a = 0; _2a <= 2; _2a += 1) { //#13940 - $_.j = _2a; //#13937 - var _2d = $get($_.encs, $_.j); //#13938 - $k[$j++] = _2d; //#13938 - if ($eq($type(_2d), 'stringtype')) { //#13938 - var _2g = $get($k[--$j], 0); //#13938 - $k[$j++] = _2g; //#13938 - } //#13938 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13939 - } //#13939 - } //#13939 - $_.seta = $get($_.charvals, 0); //#13942 - $_.setb = $get($_.charvals, 1); //#13943 - $_.setc = $get($_.charvals, 2); //#13944 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#13944 - bwipp_code16k.__13945__ = 1; //#13944 - $_ = Object.getPrototypeOf($_); //#13944 - } //#13944 - if ($_.raw) { //#14415 - $_.cws = $a($_.barcode.length); //#13949 - $_.i = 0; //#13950 - $_.j = 0; //#13950 - for (;;) { //#13961 - if ($_.i >= ($_.barcode.length - 3)) { //#13952 - break; //#13952 - } //#13952 - if ($get($_.barcode, $_.i) != 94) { //#13953 - break; //#13953 - } //#13953 - var _33 = $geti($_.barcode, $_.i + 1, 3); //#13954 - $k[$j++] = _33; //#13956 - $k[$j++] = false; //#13956 - for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#13956 - var _36 = $get(_33, _34); //#13956 - if ((_36 < 48) || (_36 > 57)) { //#13955 - $j--; //#13955 - $k[$j++] = true; //#13955 - } //#13955 - } //#13955 - if ($k[--$j]) { //#13956 - $j--; //#13956 - break; //#13956 - } //#13956 - $_.cw = $cvi($k[--$j]); //#13957 - $put($_.cws, $_.j, $_.cw); //#13958 - $_.i = $_.i + 4; //#13959 - $_.j = $_.j + 1; //#13960 - } //#13960 - if ($_.i != $_.barcode.length) { //#13964 - $k[$j++] = 'bwipp.code16kBadRawFormat#13963'; //#13963 - $k[$j++] = "raw data must be formatted as ^NNN"; //#13963 - bwipp_raiseerror(); //#13963 - } //#13963 - $_.cws = $geti($_.cws, 0, $_.j); //#13965 - } else { //#14415 + $_ = Object.create($_); //#14046 + $_.dontdraw = false; //#14049 + $_.sam = -1; //#14050 + $_.rows = 0; //#14051 + $_.rowheight = 8; //#14052 + $_.sepheight = 1; //#14053 + $_.raw = false; //#14054 + $_.parse = false; //#14055 + $_.parsefnc = false; //#14056 + $k[$j++] = $_; //#14058 + bwipp_processoptions(); //#14058 + $_.options = $k[--$j]; //#14058 + $_.barcode = $k[--$j]; //#14059 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#14063 + $k[$j++] = 'bwipp.code16kBadRows#14062'; //#14062 + $k[$j++] = "Code 16K must have 2 to 16 rows"; //#14062 + bwipp_raiseerror(); //#14062 + } //#14062 + if ($_.rowheight < 8) { //#14067 + $k[$j++] = 'bwipp.code16kBadRowHeight#14066'; //#14066 + $k[$j++] = "Code 16K must have rowheight of at least 8"; //#14066 + bwipp_raiseerror(); //#14066 + } //#14066 + if ($_.sepheight < 1) { //#14071 + $k[$j++] = 'bwipp.code16kBadSepHeight#14070'; //#14070 + $k[$j++] = "Code 16K must have sepheight of at least 1"; //#14070 + bwipp_raiseerror(); //#14070 + } //#14070 + if ($_.sam != -1) { //#14083 + $k[$j++] = true; //#14079 + for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#14079 + var _A = $_.sam; //#14076 + if ((_A < 12) || (_A > 99)) { //#14076 + $j--; //#14076 + $k[$j++] = false; //#14076 + break; //#14076 + } //#14076 + if (($_.sam % 10) < 2) { //#14077 + $j--; //#14077 + $k[$j++] = false; //#14077 + break; //#14077 + } //#14077 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14078 + $j--; //#14078 + $k[$j++] = false; //#14078 + break; //#14078 + } //#14078 + } //#14078 + if ($nt($k[--$j])) { //#14082 + $k[$j++] = 'bwipp.code16kBadSAM#14081'; //#14081 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14081 + bwipp_raiseerror(); //#14081 + } //#14081 + } //#14081 + bwipp_loadctx(bwipp_code16k) //#14085 + if ($_.sam != -1) { //#14087 + $_.rows = 16; //#14087 + } //#14087 + if (!bwipp_code16k.__14152__) { //#14152 + $_ = Object.create($_); //#14152 + $_.swa = -1; //#14091 + $_.swb = -2; //#14091 + $_.swc = -3; //#14091 + $_.sa1 = -4; //#14092 + $_.sb1 = -5; //#14092 + $_.sc1 = -6; //#14092 + $_.sa2 = -7; //#14093 + $_.sb2 = -8; //#14093 + $_.sc2 = -9; //#14093 + $_.pad = -10; //#14094 + $_.sb3 = -11; //#14094 + $_.sc3 = -12; //#14094 + $_.fn1 = -13; //#14095 + $_.fn2 = -14; //#14095 + $_.fn3 = -15; //#14095 + $_.fn4 = -16; //#14095 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#14136 + $_.charvals = $a([new Map, new Map, new Map]); //#14139 + for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#14148 + $_.i = _2W; //#14141 + $_.encs = $get($_.charmaps, $_.i); //#14142 + for (var _2a = 0; _2a <= 2; _2a += 1) { //#14147 + $_.j = _2a; //#14144 + var _2d = $get($_.encs, $_.j); //#14145 + $k[$j++] = _2d; //#14145 + if ($eq($type(_2d), 'stringtype')) { //#14145 + var _2g = $get($k[--$j], 0); //#14145 + $k[$j++] = _2g; //#14145 + } //#14145 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#14146 + } //#14146 + } //#14146 + $_.seta = $get($_.charvals, 0); //#14149 + $_.setb = $get($_.charvals, 1); //#14150 + $_.setc = $get($_.charvals, 2); //#14151 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14151 + bwipp_code16k.__14152__ = 1; //#14151 + $_ = Object.getPrototypeOf($_); //#14151 + } //#14151 + if ($_.raw) { //#14622 + $_.cws = $a($_.barcode.length); //#14156 + $_.i = 0; //#14157 + $_.j = 0; //#14157 + for (;;) { //#14168 + if ($_.i >= ($_.barcode.length - 3)) { //#14159 + break; //#14159 + } //#14159 + if ($get($_.barcode, $_.i) != 94) { //#14160 + break; //#14160 + } //#14160 + var _33 = $geti($_.barcode, $_.i + 1, 3); //#14161 + $k[$j++] = _33; //#14163 + $k[$j++] = false; //#14163 + for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#14163 + var _36 = $get(_33, _34); //#14163 + if ((_36 < 48) || (_36 > 57)) { //#14162 + $j--; //#14162 + $k[$j++] = true; //#14162 + } //#14162 + } //#14162 + if ($k[--$j]) { //#14163 + $j--; //#14163 + break; //#14163 + } //#14163 + $_.cw = $cvi($k[--$j]); //#14164 + $put($_.cws, $_.j, $_.cw); //#14165 + $_.i = $_.i + 4; //#14166 + $_.j = $_.j + 1; //#14167 + } //#14167 + if ($_.i != $_.barcode.length) { //#14171 + $k[$j++] = 'bwipp.code16kBadRawFormat#14170'; //#14170 + $k[$j++] = "raw data must be formatted as ^NNN"; //#14170 + bwipp_raiseerror(); //#14170 + } //#14170 + $_.cws = $geti($_.cws, 0, $_.j); //#14172 + } else { //#14622 var _3O = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -17352,826 +17674,826 @@ function bwipp_code16k() { ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13976 - $_.fncvals = _3O; //#13978 - $k[$j++] = 'msg'; //#13979 - $k[$j++] = $_.barcode; //#13979 - $k[$j++] = $_.fncvals; //#13979 - bwipp_parseinput(); //#13979 - var _3R = $k[--$j]; //#13979 - $_[$k[--$j]] = _3R; //#13979 - $_.msglen = $_.msg.length; //#13980 - $k[$j++] = Infinity; //#13983 - for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#13983 - $k[$j++] = 0; //#13983 - } //#13983 - $k[$j++] = 0; //#13983 - $_.numSA = $a(); //#13983 - $k[$j++] = Infinity; //#13984 - for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#13984 - $k[$j++] = 0; //#13984 - } //#13984 - $k[$j++] = 0; //#13984 - $_.numEA = $a(); //#13984 - for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#13994 - $_.i = _3d; //#13986 - if ($get($_.msg, $_.i) >= 0) { //#13993 - if ($get($_.msg, $_.i) >= 128) { //#13991 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13989 - } else { //#13991 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13991 - } //#13991 - } //#13991 - } //#13991 - $_.ea = false; //#13997 - $_.msgtmp = $a([]); //#13997 - for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14012 - $_.i = _3x; //#13999 - $_.c = $get($_.msg, $_.i); //#14000 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14010 - if ($_.ea) { //#14002 - $k[$j++] = $_.numSA; //#14002 - } else { //#14002 - $k[$j++] = $_.numEA; //#14002 - } //#14002 - var _49 = $get($k[--$j], $_.i); //#14002 - var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14003 - if (_49 < _4C) { //#14008 - $k[$j++] = Infinity; //#14005 - $aload($_.msgtmp); //#14005 - $k[$j++] = $_.fn4; //#14005 - $_.msgtmp = $a(); //#14005 - } else { //#14008 - $k[$j++] = Infinity; //#14007 - $aload($_.msgtmp); //#14007 - $k[$j++] = $_.fn4; //#14007 - $k[$j++] = $_.fn4; //#14007 - $_.msgtmp = $a(); //#14007 - $_.ea = !$_.ea; //#14008 - } //#14008 - } //#14008 - $k[$j++] = Infinity; //#14011 - $aload($_.msgtmp); //#14011 - if ($_.c >= 0) { //#14011 - $k[$j++] = $_.c & 127; //#14011 - } else { //#14011 - $k[$j++] = $_.c; //#14011 - } //#14011 - $_.msgtmp = $a(); //#14011 - } //#14011 - $_.msg = $_.msgtmp; //#14013 - $_.msglen = $_.msg.length; //#14014 + ]); //#14183 + $_.fncvals = _3O; //#14185 + $k[$j++] = 'msg'; //#14186 + $k[$j++] = $_.barcode; //#14186 + $k[$j++] = $_.fncvals; //#14186 + bwipp_parseinput(); //#14186 + var _3R = $k[--$j]; //#14186 + $_[$k[--$j]] = _3R; //#14186 + $_.msglen = $_.msg.length; //#14187 + $k[$j++] = Infinity; //#14190 + for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#14190 + $k[$j++] = 0; //#14190 + } //#14190 + $k[$j++] = 0; //#14190 + $_.numSA = $a(); //#14190 + $k[$j++] = Infinity; //#14191 + for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#14191 + $k[$j++] = 0; //#14191 + } //#14191 + $k[$j++] = 0; //#14191 + $_.numEA = $a(); //#14191 + for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#14201 + $_.i = _3d; //#14193 + if ($get($_.msg, $_.i) >= 0) { //#14200 + if ($get($_.msg, $_.i) >= 128) { //#14198 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#14196 + } else { //#14198 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#14198 + } //#14198 + } //#14198 + } //#14198 + $_.ea = false; //#14204 + $_.msgtmp = $a([]); //#14204 + for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14219 + $_.i = _3x; //#14206 + $_.c = $get($_.msg, $_.i); //#14207 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14217 + if ($_.ea) { //#14209 + $k[$j++] = $_.numSA; //#14209 + } else { //#14209 + $k[$j++] = $_.numEA; //#14209 + } //#14209 + var _49 = $get($k[--$j], $_.i); //#14209 + var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14210 + if (_49 < _4C) { //#14215 + $k[$j++] = Infinity; //#14212 + $aload($_.msgtmp); //#14212 + $k[$j++] = $_.fn4; //#14212 + $_.msgtmp = $a(); //#14212 + } else { //#14215 + $k[$j++] = Infinity; //#14214 + $aload($_.msgtmp); //#14214 + $k[$j++] = $_.fn4; //#14214 + $k[$j++] = $_.fn4; //#14214 + $_.msgtmp = $a(); //#14214 + $_.ea = !$_.ea; //#14215 + } //#14215 + } //#14215 + $k[$j++] = Infinity; //#14218 + $aload($_.msgtmp); //#14218 + if ($_.c >= 0) { //#14218 + $k[$j++] = $_.c & 127; //#14218 + } else { //#14218 + $k[$j++] = $_.c; //#14218 + } //#14218 + $_.msgtmp = $a(); //#14218 + } //#14218 + $_.msg = $_.msgtmp; //#14220 + $_.msglen = $_.msg.length; //#14221 $_.numsscr = function() { - $_.n = 0; //#14018 - $_.s = 0; //#14018 - $_.p = $k[--$j]; //#14019 - for (;;) { //#14030 - if ($_.p >= $_.msglen) { //#14020 - break; //#14020 - } //#14020 - var _4X = $get($_.msg, $_.p); //#14021 - var _4Z = $get($_.setc, _4X) !== undefined; //#14022 - $k[$j++] = _4X; //#14022 - if (!_4Z) { //#14022 - $j--; //#14022 - break; //#14022 - } //#14022 - if ($k[--$j] == $_.fn1) { //#14026 - if (($_.s % 2) == 0) { //#14025 - $_.s = $_.s + 1; //#14025 - } else { //#14025 - break; //#14025 - } //#14025 - } //#14025 - $_.n = $_.n + 1; //#14027 - $_.s = $_.s + 1; //#14028 - $_.p = $f($_.p + 1); //#14029 - } //#14029 - $k[$j++] = $_.n; //#14031 - $k[$j++] = $_.s; //#14031 - }; //#14031 + $_.n = 0; //#14225 + $_.s = 0; //#14225 + $_.p = $k[--$j]; //#14226 + for (;;) { //#14237 + if ($_.p >= $_.msglen) { //#14227 + break; //#14227 + } //#14227 + var _4X = $get($_.msg, $_.p); //#14228 + var _4Z = $get($_.setc, _4X) !== undefined; //#14229 + $k[$j++] = _4X; //#14229 + if (!_4Z) { //#14229 + $j--; //#14229 + break; //#14229 + } //#14229 + if ($k[--$j] == $_.fn1) { //#14233 + if (($_.s % 2) == 0) { //#14232 + $_.s = $_.s + 1; //#14232 + } else { //#14232 + break; //#14232 + } //#14232 + } //#14232 + $_.n = $_.n + 1; //#14234 + $_.s = $_.s + 1; //#14235 + $_.p = $f($_.p + 1); //#14236 + } //#14236 + $k[$j++] = $_.n; //#14238 + $k[$j++] = $_.s; //#14238 + }; //#14238 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14036 - $_.j = $_.j + 1; //#14037 - }; //#14037 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14243 + $_.j = $_.j + 1; //#14244 + }; //#14244 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14040 - $_.j = $_.j + 1; //#14041 - }; //#14041 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14247 + $_.j = $_.j + 1; //#14248 + }; //#14248 $_.encc = function() { - var _4v = $k[--$j]; //#14044 - $k[$j++] = _4v; //#14048 - if ($ne($type(_4v), 'arraytype')) { //#14047 - var _4z = $get($_.setc, $k[--$j]); //#14045 - $k[$j++] = _4z; //#14045 - } else { //#14047 - $aload($k[--$j]); //#14047 - var _51 = $k[--$j]; //#14047 - var _52 = $k[--$j]; //#14047 - $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14047 - } //#14047 - $put($_.cws, $_.j, $k[--$j]); //#14049 - $_.j = $_.j + 1; //#14050 - }; //#14050 + var _4v = $k[--$j]; //#14251 + $k[$j++] = _4v; //#14255 + if ($ne($type(_4v), 'arraytype')) { //#14254 + var _4z = $get($_.setc, $k[--$j]); //#14252 + $k[$j++] = _4z; //#14252 + } else { //#14254 + $aload($k[--$j]); //#14254 + var _51 = $k[--$j]; //#14254 + var _52 = $k[--$j]; //#14254 + $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14254 + } //#14254 + $put($_.cws, $_.j, $k[--$j]); //#14256 + $_.j = $_.j + 1; //#14257 + }; //#14257 $_.anotb = function() { - var _57 = $k[--$j]; //#14054 - var _59 = $get($_.seta, _57) !== undefined; //#14054 - var _5B = $get($_.setb, _57) !== undefined; //#14054 - $k[$j++] = _59 && (!_5B); //#14054 - }; //#14054 + var _57 = $k[--$j]; //#14261 + var _59 = $get($_.seta, _57) !== undefined; //#14261 + var _5B = $get($_.setb, _57) !== undefined; //#14261 + $k[$j++] = _59 && (!_5B); //#14261 + }; //#14261 $_.bnota = function() { - var _5C = $k[--$j]; //#14055 - var _5E = $get($_.setb, _5C) !== undefined; //#14055 - var _5G = $get($_.seta, _5C) !== undefined; //#14055 - $k[$j++] = _5E && (!_5G); //#14055 - }; //#14055 - $k[$j++] = Infinity; //#14058 - for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14058 - $k[$j++] = 0; //#14058 - } //#14058 - $k[$j++] = 9999; //#14058 - $_.nextanotb = $a(); //#14058 - $k[$j++] = Infinity; //#14059 - for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14059 - $k[$j++] = 0; //#14059 - } //#14059 - $k[$j++] = 9999; //#14059 - $_.nextbnota = $a(); //#14059 - for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14072 - $_.i = _5Q; //#14061 - $k[$j++] = $get($_.msg, $_.i); //#14062 - $_.anotb(); //#14062 - if ($k[--$j]) { //#14065 - $put($_.nextanotb, $_.i, 0); //#14063 - } else { //#14065 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14065 - } //#14065 - $k[$j++] = $get($_.msg, $_.i); //#14067 - $_.bnota(); //#14067 - if ($k[--$j]) { //#14070 - $put($_.nextbnota, $_.i, 0); //#14068 - } else { //#14070 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14070 - } //#14070 - } //#14070 + var _5C = $k[--$j]; //#14262 + var _5E = $get($_.setb, _5C) !== undefined; //#14262 + var _5G = $get($_.seta, _5C) !== undefined; //#14262 + $k[$j++] = _5E && (!_5G); //#14262 + }; //#14262 + $k[$j++] = Infinity; //#14265 + for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14265 + $k[$j++] = 0; //#14265 + } //#14265 + $k[$j++] = 9999; //#14265 + $_.nextanotb = $a(); //#14265 + $k[$j++] = Infinity; //#14266 + for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14266 + $k[$j++] = 0; //#14266 + } //#14266 + $k[$j++] = 9999; //#14266 + $_.nextbnota = $a(); //#14266 + for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14279 + $_.i = _5Q; //#14268 + $k[$j++] = $get($_.msg, $_.i); //#14269 + $_.anotb(); //#14269 + if ($k[--$j]) { //#14272 + $put($_.nextanotb, $_.i, 0); //#14270 + } else { //#14272 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14272 + } //#14272 + $k[$j++] = $get($_.msg, $_.i); //#14274 + $_.bnota(); //#14274 + if ($k[--$j]) { //#14277 + $put($_.nextbnota, $_.i, 0); //#14275 + } else { //#14277 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14277 + } //#14277 + } //#14277 $_.abeforeb = function() { - var _5n = $k[--$j]; //#14075 - $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14075 - }; //#14075 + var _5n = $k[--$j]; //#14282 + $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14282 + }; //#14282 $_.bbeforea = function() { - var _5s = $k[--$j]; //#14076 - $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14076 - }; //#14076 - $_.cws = $a(($_.barcode.length * 2) + 3); //#14078 - $_.i = 0; //#14081 - $_.j = 0; //#14081 - for (;;) { //#14171 - if ($_.sam != -1) { //#14092 - $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14086 - $put($_.cws, 1, ($_.sam % 10) - 1); //#14087 - $_.j = 2; //#14088 - $_.cset = "setb"; //#14089 - $_.mode = 7; //#14090 - break; //#14091 - } //#14091 - if ($_.msglen == 0) { //#14098 - $_.cset = "setb"; //#14095 - $_.mode = 1; //#14096 - break; //#14097 - } //#14097 - if ($_.msglen >= 2) { //#14107 - $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14101 - $k[$j++] = 1; //#14101 - $_.numsscr(); //#14101 - var _69 = $k[--$j]; //#14101 - var _6A = $k[--$j]; //#14101 - $k[$j++] = _69; //#14101 - $k[$j++] = _6A; //#14101 - $j--; //#14101 - var _6B = $k[--$j]; //#14101 - var _6C = $k[--$j]; //#14101 - if (_6C && (_6B >= 2)) { //#14106 - $_.cset = "setc"; //#14102 - $_.mode = 4; //#14103 - $_.i = 1; //#14104 - break; //#14105 - } //#14105 - } //#14105 - if ($get($_.msg, 0) == $_.fn1) { //#14114 - $_.cset = "setb"; //#14110 - $_.mode = 3; //#14111 - $_.i = 1; //#14112 - break; //#14113 - } //#14113 - if ($_.msglen >= 2) { //#14160 - $k[$j++] = 0; //#14117 - $_.numsscr(); //#14117 - var _6H = $k[--$j]; //#14117 - var _6I = $k[--$j]; //#14117 - $k[$j++] = _6H; //#14117 - $k[$j++] = _6I; //#14117 - $j--; //#14117 - var _6J = $k[--$j]; //#14117 - if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14121 - $_.cset = "setc"; //#14118 - $_.mode = 2; //#14119 - break; //#14120 - } //#14120 - $k[$j++] = 0; //#14123 - $_.numsscr(); //#14123 - var _6K = $k[--$j]; //#14123 - var _6L = $k[--$j]; //#14123 - $k[$j++] = _6K; //#14123 - $k[$j++] = _6L; //#14123 - $j--; //#14123 - var _6M = $k[--$j]; //#14123 - if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14129 - $k[$j++] = $get($_.msg, 0); //#14124 - $_.encb(); //#14124 - $_.cset = "setc"; //#14125 - $_.mode = 5; //#14126 - $_.i = 1; //#14127 - break; //#14128 - } //#14128 - var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14131 - $k[$j++] = _6S; //#14132 - $k[$j++] = 1; //#14132 - $_.numsscr(); //#14132 - var _6T = $k[--$j]; //#14132 - var _6U = $k[--$j]; //#14132 - $k[$j++] = _6T; //#14132 - $k[$j++] = _6U; //#14132 - $j--; //#14132 - var _6V = $k[--$j]; //#14132 - var _6W = $k[--$j]; //#14132 - if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14138 - $k[$j++] = $get($_.msg, 0); //#14133 - $_.encb(); //#14133 - $_.cset = "setc"; //#14134 - $_.mode = 5; //#14135 - $_.i = 1; //#14136 - break; //#14137 - } //#14137 - var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14140 - $k[$j++] = _6c; //#14141 - $k[$j++] = 1; //#14141 - $_.numsscr(); //#14141 - var _6d = $k[--$j]; //#14141 - var _6e = $k[--$j]; //#14141 - $k[$j++] = _6d; //#14141 - $k[$j++] = _6e; //#14141 - $j--; //#14141 - var _6f = $k[--$j]; //#14141 - var _6g = $k[--$j]; //#14141 - if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14148 - $k[$j++] = $get($_.msg, 0); //#14142 - $_.encb(); //#14142 - $k[$j++] = $get($_.msg, 1); //#14143 - $_.encb(); //#14143 - $_.cset = "setc"; //#14144 - $_.mode = 6; //#14145 - $_.i = 2; //#14146 - break; //#14147 - } //#14147 - var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14150 - var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14151 - $k[$j++] = _6o && _6s; //#14152 - $k[$j++] = 2; //#14152 - $_.numsscr(); //#14152 - var _6t = $k[--$j]; //#14152 - var _6u = $k[--$j]; //#14152 - $k[$j++] = _6t; //#14152 - $k[$j++] = _6u; //#14152 - $j--; //#14152 - var _6v = $k[--$j]; //#14152 - var _6w = $k[--$j]; //#14152 - if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14159 - $k[$j++] = $get($_.msg, 0); //#14153 - $_.encb(); //#14153 - $k[$j++] = $get($_.msg, 1); //#14154 - $_.encb(); //#14154 - $_.cset = "setc"; //#14155 - $_.mode = 6; //#14156 - $_.i = 2; //#14157 - break; //#14158 - } //#14158 - } //#14158 - $k[$j++] = 0; //#14162 - $_.abeforeb(); //#14162 - if ($k[--$j]) { //#14166 - $_.cset = "seta"; //#14163 - $_.mode = 0; //#14164 - break; //#14165 - } //#14165 - $_.cset = "setb"; //#14168 - $_.mode = 1; //#14169 - break; //#14170 - } //#14170 - for (;;) { //#14414 - if ($_.i == $_.msglen) { //#14174 - break; //#14174 - } //#14174 - $k[$j++] = $_.i; //#14176 - $_.numsscr(); //#14176 - $_.nums = $k[--$j]; //#14176 - $_.nchars = $k[--$j]; //#14176 - for (;;) { //#14412 - if ($eq($_.cset, "seta")) { //#14253 - if ($_.i < ($_.msglen - 1)) { //#14190 - $k[$j++] = $get($_.msg, $_.i); //#14183 - $_.bnota(); //#14183 - $k[$j++] = $_.i + 1; //#14184 - $_.abeforeb(); //#14184 - var _7E = $k[--$j]; //#14184 - var _7F = $k[--$j]; //#14184 - if ((_7F && _7E)) { //#14189 - $k[$j++] = $_.sb1; //#14185 - $_.enca(); //#14185 - $k[$j++] = $get($_.msg, $_.i); //#14186 - $_.encb(); //#14186 - $_.i = $_.i + 1; //#14187 - break; //#14188 - } //#14188 - } //#14188 - if ($_.i < ($_.msglen - 2)) { //#14202 - $k[$j++] = $get($_.msg, $_.i); //#14193 - $_.bnota(); //#14193 - $k[$j++] = $get($_.msg, $_.i + 1); //#14194 - $_.bnota(); //#14194 - var _7T = $k[--$j]; //#14194 - var _7U = $k[--$j]; //#14194 - $k[$j++] = $an(_7U, _7T); //#14195 - $k[$j++] = $_.i + 2; //#14195 - $_.abeforeb(); //#14195 - var _7W = $k[--$j]; //#14195 - var _7X = $k[--$j]; //#14195 - if ((_7X && _7W)) { //#14201 - $k[$j++] = $_.sb2; //#14196 - $_.enca(); //#14196 - $k[$j++] = $get($_.msg, $_.i); //#14197 - $_.encb(); //#14197 - $k[$j++] = $get($_.msg, $_.i + 1); //#14198 - $_.encb(); //#14198 - $_.i = $_.i + 2; //#14199 - break; //#14200 - } //#14200 - } //#14200 - $k[$j++] = $get($_.msg, $_.i); //#14204 - $_.bnota(); //#14204 - if ($k[--$j]) { //#14208 - $k[$j++] = $_.swb; //#14205 - $_.enca(); //#14205 - $_.cset = "setb"; //#14206 - break; //#14207 - } //#14207 - if ($_.i < ($_.msglen - 4)) { //#14225 - var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14212 - if (($_.nums == 4) && _7s) { //#14224 - $k[$j++] = $_.sc2; //#14213 - $_.enca(); //#14213 - for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14222 - if ($get($_.msg, $_.i) == $_.fn1) { //#14220 - $k[$j++] = $_.fn1; //#14216 - $_.encc(); //#14216 - $_.i = $_.i + 1; //#14217 - } else { //#14220 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14219 - $_.encc(); //#14219 - $_.i = $_.i + 2; //#14220 - } //#14220 - } //#14220 - break; //#14223 - } //#14223 - } //#14223 - if ($_.i < ($_.msglen - 6)) { //#14242 - var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14229 - if (($_.nums == 6) && _8D) { //#14241 - $k[$j++] = $_.sc3; //#14230 - $_.enca(); //#14230 - for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14239 - if ($get($_.msg, $_.i) == $_.fn1) { //#14237 - $k[$j++] = $_.fn1; //#14233 - $_.encc(); //#14233 - $_.i = $_.i + 1; //#14234 - } else { //#14237 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14236 - $_.encc(); //#14236 - $_.i = $_.i + 2; //#14237 - } //#14237 - } //#14237 - break; //#14240 - } //#14240 - } //#14240 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14248 - $k[$j++] = $_.swc; //#14245 - $_.enca(); //#14245 - $_.cset = "setc"; //#14246 - break; //#14247 - } //#14247 - $k[$j++] = $get($_.msg, $_.i); //#14250 - $_.enca(); //#14250 - $_.i = $_.i + 1; //#14251 - break; //#14252 - } //#14252 - if ($eq($_.cset, "setb")) { //#14327 - if ($_.i < ($_.msglen - 1)) { //#14264 - $k[$j++] = $get($_.msg, $_.i); //#14257 - $_.anotb(); //#14257 - $k[$j++] = $_.i + 1; //#14258 - $_.bbeforea(); //#14258 - var _8f = $k[--$j]; //#14258 - var _8g = $k[--$j]; //#14258 - if ((_8g && _8f)) { //#14263 - $k[$j++] = $_.sa1; //#14259 - $_.encb(); //#14259 - $k[$j++] = $get($_.msg, $_.i); //#14260 - $_.enca(); //#14260 - $_.i = $_.i + 1; //#14261 - break; //#14262 - } //#14262 - } //#14262 - if ($_.i < ($_.msglen - 2)) { //#14276 - $k[$j++] = $get($_.msg, $_.i); //#14267 - $_.anotb(); //#14267 - $k[$j++] = $get($_.msg, $_.i + 1); //#14268 - $_.anotb(); //#14268 - var _8u = $k[--$j]; //#14268 - var _8v = $k[--$j]; //#14268 - $k[$j++] = $an(_8v, _8u); //#14269 - $k[$j++] = $_.i + 2; //#14269 - $_.bbeforea(); //#14269 - var _8x = $k[--$j]; //#14269 - var _8y = $k[--$j]; //#14269 - if ((_8y && _8x)) { //#14275 - $k[$j++] = $_.sa2; //#14270 - $_.encb(); //#14270 - $k[$j++] = $get($_.msg, $_.i); //#14271 - $_.enca(); //#14271 - $k[$j++] = $get($_.msg, $_.i + 1); //#14272 - $_.enca(); //#14272 - $_.i = $_.i + 2; //#14273 - break; //#14274 - } //#14274 - } //#14274 - $k[$j++] = $get($_.msg, $_.i); //#14278 - $_.anotb(); //#14278 - if ($k[--$j]) { //#14282 - $k[$j++] = $_.swa; //#14279 - $_.encb(); //#14279 - $_.cset = "seta"; //#14280 - break; //#14281 - } //#14281 - if ($_.i < ($_.msglen - 4)) { //#14299 - var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14286 - if (($_.nums == 4) && _9J) { //#14298 - $k[$j++] = $_.sc2; //#14287 - $_.encb(); //#14287 - for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14296 - if ($get($_.msg, $_.i) == $_.fn1) { //#14294 - $k[$j++] = $_.fn1; //#14290 - $_.encc(); //#14290 - $_.i = $_.i + 1; //#14291 - } else { //#14294 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14293 - $_.encc(); //#14293 - $_.i = $_.i + 2; //#14294 - } //#14294 - } //#14294 - break; //#14297 - } //#14297 - } //#14297 - if ($_.i < ($_.msglen - 6)) { //#14316 - var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14303 - if (($_.nums == 6) && _9e) { //#14315 - $k[$j++] = $_.sc3; //#14304 - $_.encb(); //#14304 - for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14313 - if ($get($_.msg, $_.i) == $_.fn1) { //#14311 - $k[$j++] = $_.fn1; //#14307 - $_.encc(); //#14307 - $_.i = $_.i + 1; //#14308 - } else { //#14311 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14310 - $_.encc(); //#14310 - $_.i = $_.i + 2; //#14311 - } //#14311 - } //#14311 - break; //#14314 - } //#14314 - } //#14314 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14322 - $k[$j++] = $_.swc; //#14319 - $_.encb(); //#14319 - $_.cset = "setc"; //#14320 - break; //#14321 - } //#14321 - $k[$j++] = $get($_.msg, $_.i); //#14324 - $_.encb(); //#14324 - $_.i = $_.i + 1; //#14325 - break; //#14326 - } //#14326 - if ($eq($_.cset, "setc")) { //#14410 - if ($_.nums >= 2) { //#14339 - if ($get($_.msg, $_.i) == $_.fn1) { //#14336 - $k[$j++] = $_.fn1; //#14332 - $_.encc(); //#14332 - $_.i = $_.i + 1; //#14333 - } else { //#14336 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14335 - $_.encc(); //#14335 - $_.i = $_.i + 2; //#14336 - } //#14336 - break; //#14338 - } //#14338 - if ($_.i < ($_.msglen - 1)) { //#14349 - var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14342 - $k[$j++] = _AH; //#14343 - $k[$j++] = $_.i + 1; //#14343 - $_.numsscr(); //#14343 - var _AJ = $k[--$j]; //#14343 - var _AK = $k[--$j]; //#14343 - $k[$j++] = _AJ; //#14343 - $k[$j++] = _AK; //#14343 - $j--; //#14343 - var _AL = $k[--$j]; //#14343 - var _AM = $k[--$j]; //#14343 - if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14348 - $k[$j++] = $_.sb1; //#14344 - $_.encc(); //#14344 - $k[$j++] = $get($_.msg, $_.i); //#14345 - $_.encb(); //#14345 - $_.i = $_.i + 1; //#14346 - break; //#14347 - } //#14347 - } //#14347 - if ($_.i < ($_.msglen - 1)) { //#14360 - var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14352 - $k[$j++] = _AY; //#14353 - $k[$j++] = $_.i + 1; //#14353 - $_.numsscr(); //#14353 - var _Aa = $k[--$j]; //#14353 - var _Ab = $k[--$j]; //#14353 - $k[$j++] = _Aa; //#14353 - $k[$j++] = _Ab; //#14353 - $j--; //#14353 - var _Ac = $k[--$j]; //#14353 - var _Ad = $k[--$j]; //#14353 - if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14359 - $k[$j++] = $_.sb2; //#14354 - $_.encc(); //#14354 - $k[$j++] = $get($_.msg, $_.i); //#14355 - $_.encb(); //#14355 - $k[$j++] = $get($_.msg, $_.i + 1); //#14356 - $_.encb(); //#14356 - $_.i = $_.i + 2; //#14357 - break; //#14358 - } //#14358 - } //#14358 - if ($_.i < ($_.msglen - 2)) { //#14372 - var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14363 - var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14364 - $k[$j++] = _As && _Ax; //#14365 - $k[$j++] = $_.i + 2; //#14365 - $_.numsscr(); //#14365 - var _Az = $k[--$j]; //#14365 - var _B0 = $k[--$j]; //#14365 - $k[$j++] = _Az; //#14365 - $k[$j++] = _B0; //#14365 - $j--; //#14365 - var _B1 = $k[--$j]; //#14365 - var _B2 = $k[--$j]; //#14365 - if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14371 - $k[$j++] = $_.sb2; //#14366 - $_.encc(); //#14366 - $k[$j++] = $get($_.msg, $_.i); //#14367 - $_.encb(); //#14367 - $k[$j++] = $get($_.msg, $_.i + 1); //#14368 - $_.encb(); //#14368 - $_.i = $_.i + 2; //#14369 - break; //#14370 - } //#14370 - } //#14370 - if ($_.i < ($_.msglen - 3)) { //#14385 - var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14375 - var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14376 - $k[$j++] = _BH && _BM; //#14377 - $k[$j++] = $_.i + 2; //#14377 - $_.numsscr(); //#14377 - var _BO = $k[--$j]; //#14377 - var _BP = $k[--$j]; //#14377 - $k[$j++] = _BO; //#14377 - $k[$j++] = _BP; //#14377 - $j--; //#14377 - var _BQ = $k[--$j]; //#14377 - var _BR = $k[--$j]; //#14377 - if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14384 - $k[$j++] = $_.sb3; //#14378 - $_.encc(); //#14378 - $k[$j++] = $get($_.msg, $_.i); //#14379 - $_.encb(); //#14379 - $k[$j++] = $get($_.msg, $_.i + 1); //#14380 - $_.encb(); //#14380 - $k[$j++] = $get($_.msg, $_.i + 2); //#14381 - $_.encb(); //#14381 - $_.i = $_.i + 3; //#14382 - break; //#14383 - } //#14383 - } //#14383 - if ($_.i < ($_.msglen - 3)) { //#14399 - var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14388 - var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14389 - var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14390 - $k[$j++] = (_Bj && _Bo) && _Bt; //#14391 - $k[$j++] = $_.i + 3; //#14391 - $_.numsscr(); //#14391 - var _Bv = $k[--$j]; //#14391 - var _Bw = $k[--$j]; //#14391 - $k[$j++] = _Bv; //#14391 - $k[$j++] = _Bw; //#14391 - $j--; //#14391 - var _Bx = $k[--$j]; //#14391 - var _By = $k[--$j]; //#14391 - if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14398 - $k[$j++] = $_.sb3; //#14392 - $_.encc(); //#14392 + var _5s = $k[--$j]; //#14283 + $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14283 + }; //#14283 + $_.cws = $a(($_.barcode.length * 2) + 3); //#14285 + $_.i = 0; //#14288 + $_.j = 0; //#14288 + for (;;) { //#14378 + if ($_.sam != -1) { //#14299 + $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14293 + $put($_.cws, 1, ($_.sam % 10) - 1); //#14294 + $_.j = 2; //#14295 + $_.cset = "setb"; //#14296 + $_.mode = 7; //#14297 + break; //#14298 + } //#14298 + if ($_.msglen == 0) { //#14305 + $_.cset = "setb"; //#14302 + $_.mode = 1; //#14303 + break; //#14304 + } //#14304 + if ($_.msglen >= 2) { //#14314 + $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14308 + $k[$j++] = 1; //#14308 + $_.numsscr(); //#14308 + var _69 = $k[--$j]; //#14308 + var _6A = $k[--$j]; //#14308 + $k[$j++] = _69; //#14308 + $k[$j++] = _6A; //#14308 + $j--; //#14308 + var _6B = $k[--$j]; //#14308 + var _6C = $k[--$j]; //#14308 + if (_6C && (_6B >= 2)) { //#14313 + $_.cset = "setc"; //#14309 + $_.mode = 4; //#14310 + $_.i = 1; //#14311 + break; //#14312 + } //#14312 + } //#14312 + if ($get($_.msg, 0) == $_.fn1) { //#14321 + $_.cset = "setb"; //#14317 + $_.mode = 3; //#14318 + $_.i = 1; //#14319 + break; //#14320 + } //#14320 + if ($_.msglen >= 2) { //#14367 + $k[$j++] = 0; //#14324 + $_.numsscr(); //#14324 + var _6H = $k[--$j]; //#14324 + var _6I = $k[--$j]; //#14324 + $k[$j++] = _6H; //#14324 + $k[$j++] = _6I; //#14324 + $j--; //#14324 + var _6J = $k[--$j]; //#14324 + if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14328 + $_.cset = "setc"; //#14325 + $_.mode = 2; //#14326 + break; //#14327 + } //#14327 + $k[$j++] = 0; //#14330 + $_.numsscr(); //#14330 + var _6K = $k[--$j]; //#14330 + var _6L = $k[--$j]; //#14330 + $k[$j++] = _6K; //#14330 + $k[$j++] = _6L; //#14330 + $j--; //#14330 + var _6M = $k[--$j]; //#14330 + if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14336 + $k[$j++] = $get($_.msg, 0); //#14331 + $_.encb(); //#14331 + $_.cset = "setc"; //#14332 + $_.mode = 5; //#14333 + $_.i = 1; //#14334 + break; //#14335 + } //#14335 + var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14338 + $k[$j++] = _6S; //#14339 + $k[$j++] = 1; //#14339 + $_.numsscr(); //#14339 + var _6T = $k[--$j]; //#14339 + var _6U = $k[--$j]; //#14339 + $k[$j++] = _6T; //#14339 + $k[$j++] = _6U; //#14339 + $j--; //#14339 + var _6V = $k[--$j]; //#14339 + var _6W = $k[--$j]; //#14339 + if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14345 + $k[$j++] = $get($_.msg, 0); //#14340 + $_.encb(); //#14340 + $_.cset = "setc"; //#14341 + $_.mode = 5; //#14342 + $_.i = 1; //#14343 + break; //#14344 + } //#14344 + var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14347 + $k[$j++] = _6c; //#14348 + $k[$j++] = 1; //#14348 + $_.numsscr(); //#14348 + var _6d = $k[--$j]; //#14348 + var _6e = $k[--$j]; //#14348 + $k[$j++] = _6d; //#14348 + $k[$j++] = _6e; //#14348 + $j--; //#14348 + var _6f = $k[--$j]; //#14348 + var _6g = $k[--$j]; //#14348 + if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14355 + $k[$j++] = $get($_.msg, 0); //#14349 + $_.encb(); //#14349 + $k[$j++] = $get($_.msg, 1); //#14350 + $_.encb(); //#14350 + $_.cset = "setc"; //#14351 + $_.mode = 6; //#14352 + $_.i = 2; //#14353 + break; //#14354 + } //#14354 + var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14357 + var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14358 + $k[$j++] = _6o && _6s; //#14359 + $k[$j++] = 2; //#14359 + $_.numsscr(); //#14359 + var _6t = $k[--$j]; //#14359 + var _6u = $k[--$j]; //#14359 + $k[$j++] = _6t; //#14359 + $k[$j++] = _6u; //#14359 + $j--; //#14359 + var _6v = $k[--$j]; //#14359 + var _6w = $k[--$j]; //#14359 + if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14366 + $k[$j++] = $get($_.msg, 0); //#14360 + $_.encb(); //#14360 + $k[$j++] = $get($_.msg, 1); //#14361 + $_.encb(); //#14361 + $_.cset = "setc"; //#14362 + $_.mode = 6; //#14363 + $_.i = 2; //#14364 + break; //#14365 + } //#14365 + } //#14365 + $k[$j++] = 0; //#14369 + $_.abeforeb(); //#14369 + if ($k[--$j]) { //#14373 + $_.cset = "seta"; //#14370 + $_.mode = 0; //#14371 + break; //#14372 + } //#14372 + $_.cset = "setb"; //#14375 + $_.mode = 1; //#14376 + break; //#14377 + } //#14377 + for (;;) { //#14621 + if ($_.i == $_.msglen) { //#14381 + break; //#14381 + } //#14381 + $k[$j++] = $_.i; //#14383 + $_.numsscr(); //#14383 + $_.nums = $k[--$j]; //#14383 + $_.nchars = $k[--$j]; //#14383 + for (;;) { //#14619 + if ($eq($_.cset, "seta")) { //#14460 + if ($_.i < ($_.msglen - 1)) { //#14397 + $k[$j++] = $get($_.msg, $_.i); //#14390 + $_.bnota(); //#14390 + $k[$j++] = $_.i + 1; //#14391 + $_.abeforeb(); //#14391 + var _7E = $k[--$j]; //#14391 + var _7F = $k[--$j]; //#14391 + if ((_7F && _7E)) { //#14396 + $k[$j++] = $_.sb1; //#14392 + $_.enca(); //#14392 $k[$j++] = $get($_.msg, $_.i); //#14393 $_.encb(); //#14393 - $k[$j++] = $get($_.msg, $_.i + 1); //#14394 - $_.encb(); //#14394 - $k[$j++] = $get($_.msg, $_.i + 2); //#14395 - $_.encb(); //#14395 - $_.i = $_.i + 3; //#14396 - break; //#14397 - } //#14397 - } //#14397 - $k[$j++] = $_.i; //#14401 - $_.abeforeb(); //#14401 - if ($k[--$j]) { //#14405 - $k[$j++] = $_.swa; //#14402 - $_.encc(); //#14402 - $_.cset = "seta"; //#14403 - break; //#14404 - } //#14404 - $k[$j++] = $_.swb; //#14407 - $_.encc(); //#14407 - $_.cset = "setb"; //#14408 - break; //#14409 - } //#14409 - break; //#14411 - } //#14411 - } //#14411 - $_.cws = $geti($_.cws, 0, $_.j); //#14415 - } //#14415 - if (!bwipp_code16k.__14438__) { //#14438 - $_ = Object.create($_); //#14438 - $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14437 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14437 - bwipp_code16k.__14438__ = 1; //#14437 - $_ = Object.getPrototypeOf($_); //#14437 - } //#14437 - $_.urows = $_.rows; //#14441 - var _CZ = $_.metrics; //#14442 - for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14450 - $_.m = $get(_CZ, _Ca); //#14443 - $_.r = $get($_.m, 0); //#14444 - $_.dcws = $get($_.m, 1); //#14445 - $_.okay = true; //#14446 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14447 - $_.okay = false; //#14447 - } //#14447 - if ($_.cws.length > $_.dcws) { //#14448 - $_.okay = false; //#14448 - } //#14448 - if ($_.okay) { //#14449 - break; //#14449 - } //#14449 - } //#14449 - if (!$_.okay) { //#14454 - $k[$j++] = 'bwipp.code16kNoValidSymbol#14453'; //#14453 - $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14453 - bwipp_raiseerror(); //#14453 - } //#14453 - $k[$j++] = Infinity; //#14457 - $aload($_.cws); //#14457 - for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14457 - $k[$j++] = 103; //#14457 - } //#14457 - $_.cws = $a(); //#14457 - $k[$j++] = Infinity; //#14460 - $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14460 - $aload($_.cws); //#14460 - $_.cws = $a(); //#14460 - $k[$j++] = 0; //#14463 - for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14463 - var _D3 = $k[--$j]; //#14463 - $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14463 - } //#14463 - $_.c1 = $k[--$j] % 107; //#14464 - $k[$j++] = 0; //#14465 - for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14465 - var _DA = $k[--$j]; //#14465 - $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14465 - } //#14465 - $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14466 - $k[$j++] = Infinity; //#14467 - $aload($_.cws); //#14467 - $k[$j++] = $_.c1; //#14467 - $k[$j++] = $_.c2; //#14467 - $_.cws = $a(); //#14467 - var _DJ = $get($_.options, 'debugcws') !== undefined; //#14469 - if (_DJ) { //#14469 - $k[$j++] = 'bwipp.debugcws#14469'; //#14469 - $k[$j++] = $_.cws; //#14469 - bwipp_raiseerror(); //#14469 - } //#14469 - if (!bwipp_code16k.__14505__) { //#14505 - $_ = Object.create($_); //#14505 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14490 - $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14496 - $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14500 - $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14504 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14504 - bwipp_code16k.__14505__ = 1; //#14504 - $_ = Object.getPrototypeOf($_); //#14504 - } //#14504 - if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14510 - $_.stopencs = $_.stopencsodd; //#14508 - } else { //#14510 - $_.stopencs = $_.stopencseven; //#14510 - } //#14510 - $_.rowbits = $a($_.r); //#14514 - for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14531 - $_.i = _DY; //#14516 - $k[$j++] = Infinity; //#14525 - $k[$j++] = 10; //#14519 - $forall($get($_.startencs, $_.i), function() { //#14519 - var _Dc = $k[--$j]; //#14519 - $k[$j++] = $f(_Dc - 48); //#14519 - }); //#14519 - var _Df = $geti($_.cws, $_.i * 5, 5); //#14521 - $k[$j++] = 1; //#14523 - for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14523 - $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14522 - var _Dl = $k[--$j]; //#14522 - $k[$j++] = $f(_Dl - 48); //#14522 - }); //#14522 - } //#14522 - $forall($get($_.stopencs, $_.i), function() { //#14524 - var _Dp = $k[--$j]; //#14524 - $k[$j++] = $f(_Dp - 48); //#14524 - }); //#14524 - $k[$j++] = 1; //#14525 - $_.sbs = $a(); //#14525 - $k[$j++] = Infinity; //#14527 - var _Dr = $_.sbs; //#14528 - $k[$j++] = 1; //#14528 - for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14528 - var _Dv = $k[--$j]; //#14528 - var _Dw = (_Dv == 0) ? 1 : 0; //#14528 - $k[$j++] = _Dv; //#14528 - for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14528 - $k[$j++] = _Dw //#14528 - } //#14528 - } //#14528 - $astore($a($counttomark() - 1)); //#14529 - var _E1 = $k[--$j]; //#14529 - var _E2 = $k[--$j]; //#14529 - $k[$j++] = _E1; //#14529 - $k[$j++] = _E2; //#14529 - $j--; //#14529 - var _E3 = $k[--$j]; //#14529 - var _E4 = $k[--$j]; //#14529 - $k[$j++] = _E3; //#14529 - $k[$j++] = _E4; //#14529 - $j--; //#14529 - $put($_.rowbits, $_.i, $k[--$j]); //#14530 - } //#14530 - $k[$j++] = Infinity; //#14542 - for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14535 - $k[$j++] = 1; //#14535 - } //#14535 - for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14540 - $_.i = _ED; //#14537 - for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14538 - $aload($get($_.rowbits, $_.i)); //#14538 - } //#14538 - for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14539 - for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14539 - $k[$j++] = 1; //#14539 - } //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - } //#14539 - for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14541 - $aload($get($_.rowbits, $f($_.r - 1))); //#14541 - } //#14541 - for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14542 - $k[$j++] = 1; //#14542 - } //#14542 - $_.pixs = $a(); //#14542 + $_.i = $_.i + 1; //#14394 + break; //#14395 + } //#14395 + } //#14395 + if ($_.i < ($_.msglen - 2)) { //#14409 + $k[$j++] = $get($_.msg, $_.i); //#14400 + $_.bnota(); //#14400 + $k[$j++] = $get($_.msg, $_.i + 1); //#14401 + $_.bnota(); //#14401 + var _7T = $k[--$j]; //#14401 + var _7U = $k[--$j]; //#14401 + $k[$j++] = $an(_7U, _7T); //#14402 + $k[$j++] = $_.i + 2; //#14402 + $_.abeforeb(); //#14402 + var _7W = $k[--$j]; //#14402 + var _7X = $k[--$j]; //#14402 + if ((_7X && _7W)) { //#14408 + $k[$j++] = $_.sb2; //#14403 + $_.enca(); //#14403 + $k[$j++] = $get($_.msg, $_.i); //#14404 + $_.encb(); //#14404 + $k[$j++] = $get($_.msg, $_.i + 1); //#14405 + $_.encb(); //#14405 + $_.i = $_.i + 2; //#14406 + break; //#14407 + } //#14407 + } //#14407 + $k[$j++] = $get($_.msg, $_.i); //#14411 + $_.bnota(); //#14411 + if ($k[--$j]) { //#14415 + $k[$j++] = $_.swb; //#14412 + $_.enca(); //#14412 + $_.cset = "setb"; //#14413 + break; //#14414 + } //#14414 + if ($_.i < ($_.msglen - 4)) { //#14432 + var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14419 + if (($_.nums == 4) && _7s) { //#14431 + $k[$j++] = $_.sc2; //#14420 + $_.enca(); //#14420 + for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14429 + if ($get($_.msg, $_.i) == $_.fn1) { //#14427 + $k[$j++] = $_.fn1; //#14423 + $_.encc(); //#14423 + $_.i = $_.i + 1; //#14424 + } else { //#14427 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14426 + $_.encc(); //#14426 + $_.i = $_.i + 2; //#14427 + } //#14427 + } //#14427 + break; //#14430 + } //#14430 + } //#14430 + if ($_.i < ($_.msglen - 6)) { //#14449 + var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14436 + if (($_.nums == 6) && _8D) { //#14448 + $k[$j++] = $_.sc3; //#14437 + $_.enca(); //#14437 + for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14446 + if ($get($_.msg, $_.i) == $_.fn1) { //#14444 + $k[$j++] = $_.fn1; //#14440 + $_.encc(); //#14440 + $_.i = $_.i + 1; //#14441 + } else { //#14444 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14443 + $_.encc(); //#14443 + $_.i = $_.i + 2; //#14444 + } //#14444 + } //#14444 + break; //#14447 + } //#14447 + } //#14447 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14455 + $k[$j++] = $_.swc; //#14452 + $_.enca(); //#14452 + $_.cset = "setc"; //#14453 + break; //#14454 + } //#14454 + $k[$j++] = $get($_.msg, $_.i); //#14457 + $_.enca(); //#14457 + $_.i = $_.i + 1; //#14458 + break; //#14459 + } //#14459 + if ($eq($_.cset, "setb")) { //#14534 + if ($_.i < ($_.msglen - 1)) { //#14471 + $k[$j++] = $get($_.msg, $_.i); //#14464 + $_.anotb(); //#14464 + $k[$j++] = $_.i + 1; //#14465 + $_.bbeforea(); //#14465 + var _8f = $k[--$j]; //#14465 + var _8g = $k[--$j]; //#14465 + if ((_8g && _8f)) { //#14470 + $k[$j++] = $_.sa1; //#14466 + $_.encb(); //#14466 + $k[$j++] = $get($_.msg, $_.i); //#14467 + $_.enca(); //#14467 + $_.i = $_.i + 1; //#14468 + break; //#14469 + } //#14469 + } //#14469 + if ($_.i < ($_.msglen - 2)) { //#14483 + $k[$j++] = $get($_.msg, $_.i); //#14474 + $_.anotb(); //#14474 + $k[$j++] = $get($_.msg, $_.i + 1); //#14475 + $_.anotb(); //#14475 + var _8u = $k[--$j]; //#14475 + var _8v = $k[--$j]; //#14475 + $k[$j++] = $an(_8v, _8u); //#14476 + $k[$j++] = $_.i + 2; //#14476 + $_.bbeforea(); //#14476 + var _8x = $k[--$j]; //#14476 + var _8y = $k[--$j]; //#14476 + if ((_8y && _8x)) { //#14482 + $k[$j++] = $_.sa2; //#14477 + $_.encb(); //#14477 + $k[$j++] = $get($_.msg, $_.i); //#14478 + $_.enca(); //#14478 + $k[$j++] = $get($_.msg, $_.i + 1); //#14479 + $_.enca(); //#14479 + $_.i = $_.i + 2; //#14480 + break; //#14481 + } //#14481 + } //#14481 + $k[$j++] = $get($_.msg, $_.i); //#14485 + $_.anotb(); //#14485 + if ($k[--$j]) { //#14489 + $k[$j++] = $_.swa; //#14486 + $_.encb(); //#14486 + $_.cset = "seta"; //#14487 + break; //#14488 + } //#14488 + if ($_.i < ($_.msglen - 4)) { //#14506 + var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14493 + if (($_.nums == 4) && _9J) { //#14505 + $k[$j++] = $_.sc2; //#14494 + $_.encb(); //#14494 + for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14503 + if ($get($_.msg, $_.i) == $_.fn1) { //#14501 + $k[$j++] = $_.fn1; //#14497 + $_.encc(); //#14497 + $_.i = $_.i + 1; //#14498 + } else { //#14501 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14500 + $_.encc(); //#14500 + $_.i = $_.i + 2; //#14501 + } //#14501 + } //#14501 + break; //#14504 + } //#14504 + } //#14504 + if ($_.i < ($_.msglen - 6)) { //#14523 + var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14510 + if (($_.nums == 6) && _9e) { //#14522 + $k[$j++] = $_.sc3; //#14511 + $_.encb(); //#14511 + for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14520 + if ($get($_.msg, $_.i) == $_.fn1) { //#14518 + $k[$j++] = $_.fn1; //#14514 + $_.encc(); //#14514 + $_.i = $_.i + 1; //#14515 + } else { //#14518 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14517 + $_.encc(); //#14517 + $_.i = $_.i + 2; //#14518 + } //#14518 + } //#14518 + break; //#14521 + } //#14521 + } //#14521 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14529 + $k[$j++] = $_.swc; //#14526 + $_.encb(); //#14526 + $_.cset = "setc"; //#14527 + break; //#14528 + } //#14528 + $k[$j++] = $get($_.msg, $_.i); //#14531 + $_.encb(); //#14531 + $_.i = $_.i + 1; //#14532 + break; //#14533 + } //#14533 + if ($eq($_.cset, "setc")) { //#14617 + if ($_.nums >= 2) { //#14546 + if ($get($_.msg, $_.i) == $_.fn1) { //#14543 + $k[$j++] = $_.fn1; //#14539 + $_.encc(); //#14539 + $_.i = $_.i + 1; //#14540 + } else { //#14543 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14542 + $_.encc(); //#14542 + $_.i = $_.i + 2; //#14543 + } //#14543 + break; //#14545 + } //#14545 + if ($_.i < ($_.msglen - 1)) { //#14556 + var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14549 + $k[$j++] = _AH; //#14550 + $k[$j++] = $_.i + 1; //#14550 + $_.numsscr(); //#14550 + var _AJ = $k[--$j]; //#14550 + var _AK = $k[--$j]; //#14550 + $k[$j++] = _AJ; //#14550 + $k[$j++] = _AK; //#14550 + $j--; //#14550 + var _AL = $k[--$j]; //#14550 + var _AM = $k[--$j]; //#14550 + if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14555 + $k[$j++] = $_.sb1; //#14551 + $_.encc(); //#14551 + $k[$j++] = $get($_.msg, $_.i); //#14552 + $_.encb(); //#14552 + $_.i = $_.i + 1; //#14553 + break; //#14554 + } //#14554 + } //#14554 + if ($_.i < ($_.msglen - 1)) { //#14567 + var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14559 + $k[$j++] = _AY; //#14560 + $k[$j++] = $_.i + 1; //#14560 + $_.numsscr(); //#14560 + var _Aa = $k[--$j]; //#14560 + var _Ab = $k[--$j]; //#14560 + $k[$j++] = _Aa; //#14560 + $k[$j++] = _Ab; //#14560 + $j--; //#14560 + var _Ac = $k[--$j]; //#14560 + var _Ad = $k[--$j]; //#14560 + if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14566 + $k[$j++] = $_.sb2; //#14561 + $_.encc(); //#14561 + $k[$j++] = $get($_.msg, $_.i); //#14562 + $_.encb(); //#14562 + $k[$j++] = $get($_.msg, $_.i + 1); //#14563 + $_.encb(); //#14563 + $_.i = $_.i + 2; //#14564 + break; //#14565 + } //#14565 + } //#14565 + if ($_.i < ($_.msglen - 2)) { //#14579 + var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14570 + var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14571 + $k[$j++] = _As && _Ax; //#14572 + $k[$j++] = $_.i + 2; //#14572 + $_.numsscr(); //#14572 + var _Az = $k[--$j]; //#14572 + var _B0 = $k[--$j]; //#14572 + $k[$j++] = _Az; //#14572 + $k[$j++] = _B0; //#14572 + $j--; //#14572 + var _B1 = $k[--$j]; //#14572 + var _B2 = $k[--$j]; //#14572 + if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14578 + $k[$j++] = $_.sb2; //#14573 + $_.encc(); //#14573 + $k[$j++] = $get($_.msg, $_.i); //#14574 + $_.encb(); //#14574 + $k[$j++] = $get($_.msg, $_.i + 1); //#14575 + $_.encb(); //#14575 + $_.i = $_.i + 2; //#14576 + break; //#14577 + } //#14577 + } //#14577 + if ($_.i < ($_.msglen - 3)) { //#14592 + var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14582 + var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14583 + $k[$j++] = _BH && _BM; //#14584 + $k[$j++] = $_.i + 2; //#14584 + $_.numsscr(); //#14584 + var _BO = $k[--$j]; //#14584 + var _BP = $k[--$j]; //#14584 + $k[$j++] = _BO; //#14584 + $k[$j++] = _BP; //#14584 + $j--; //#14584 + var _BQ = $k[--$j]; //#14584 + var _BR = $k[--$j]; //#14584 + if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14591 + $k[$j++] = $_.sb3; //#14585 + $_.encc(); //#14585 + $k[$j++] = $get($_.msg, $_.i); //#14586 + $_.encb(); //#14586 + $k[$j++] = $get($_.msg, $_.i + 1); //#14587 + $_.encb(); //#14587 + $k[$j++] = $get($_.msg, $_.i + 2); //#14588 + $_.encb(); //#14588 + $_.i = $_.i + 3; //#14589 + break; //#14590 + } //#14590 + } //#14590 + if ($_.i < ($_.msglen - 3)) { //#14606 + var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14595 + var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14596 + var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14597 + $k[$j++] = (_Bj && _Bo) && _Bt; //#14598 + $k[$j++] = $_.i + 3; //#14598 + $_.numsscr(); //#14598 + var _Bv = $k[--$j]; //#14598 + var _Bw = $k[--$j]; //#14598 + $k[$j++] = _Bv; //#14598 + $k[$j++] = _Bw; //#14598 + $j--; //#14598 + var _Bx = $k[--$j]; //#14598 + var _By = $k[--$j]; //#14598 + if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14605 + $k[$j++] = $_.sb3; //#14599 + $_.encc(); //#14599 + $k[$j++] = $get($_.msg, $_.i); //#14600 + $_.encb(); //#14600 + $k[$j++] = $get($_.msg, $_.i + 1); //#14601 + $_.encb(); //#14601 + $k[$j++] = $get($_.msg, $_.i + 2); //#14602 + $_.encb(); //#14602 + $_.i = $_.i + 3; //#14603 + break; //#14604 + } //#14604 + } //#14604 + $k[$j++] = $_.i; //#14608 + $_.abeforeb(); //#14608 + if ($k[--$j]) { //#14612 + $k[$j++] = $_.swa; //#14609 + $_.encc(); //#14609 + $_.cset = "seta"; //#14610 + break; //#14611 + } //#14611 + $k[$j++] = $_.swb; //#14614 + $_.encc(); //#14614 + $_.cset = "setb"; //#14615 + break; //#14616 + } //#14616 + break; //#14618 + } //#14618 + } //#14618 + $_.cws = $geti($_.cws, 0, $_.j); //#14622 + } //#14622 + if (!bwipp_code16k.__14645__) { //#14645 + $_ = Object.create($_); //#14645 + $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14644 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14644 + bwipp_code16k.__14645__ = 1; //#14644 + $_ = Object.getPrototypeOf($_); //#14644 + } //#14644 + $_.urows = $_.rows; //#14648 + var _CZ = $_.metrics; //#14649 + for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14657 + $_.m = $get(_CZ, _Ca); //#14650 + $_.r = $get($_.m, 0); //#14651 + $_.dcws = $get($_.m, 1); //#14652 + $_.okay = true; //#14653 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#14654 + $_.okay = false; //#14654 + } //#14654 + if ($_.cws.length > $_.dcws) { //#14655 + $_.okay = false; //#14655 + } //#14655 + if ($_.okay) { //#14656 + break; //#14656 + } //#14656 + } //#14656 + if (!$_.okay) { //#14661 + $k[$j++] = 'bwipp.code16kNoValidSymbol#14660'; //#14660 + $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14660 + bwipp_raiseerror(); //#14660 + } //#14660 + $k[$j++] = Infinity; //#14664 + $aload($_.cws); //#14664 + for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14664 + $k[$j++] = 103; //#14664 + } //#14664 + $_.cws = $a(); //#14664 + $k[$j++] = Infinity; //#14667 + $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14667 + $aload($_.cws); //#14667 + $_.cws = $a(); //#14667 + $k[$j++] = 0; //#14670 + for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14670 + var _D3 = $k[--$j]; //#14670 + $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14670 + } //#14670 + $_.c1 = $k[--$j] % 107; //#14671 + $k[$j++] = 0; //#14672 + for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14672 + var _DA = $k[--$j]; //#14672 + $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14672 + } //#14672 + $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14673 + $k[$j++] = Infinity; //#14674 + $aload($_.cws); //#14674 + $k[$j++] = $_.c1; //#14674 + $k[$j++] = $_.c2; //#14674 + $_.cws = $a(); //#14674 + var _DJ = $get($_.options, 'debugcws') !== undefined; //#14676 + if (_DJ) { //#14676 + $k[$j++] = 'bwipp.debugcws#14676'; //#14676 + $k[$j++] = $_.cws; //#14676 + bwipp_raiseerror(); //#14676 + } //#14676 + if (!bwipp_code16k.__14712__) { //#14712 + $_ = Object.create($_); //#14712 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14697 + $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14703 + $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14707 + $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14711 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14711 + bwipp_code16k.__14712__ = 1; //#14711 + $_ = Object.getPrototypeOf($_); //#14711 + } //#14711 + if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14717 + $_.stopencs = $_.stopencsodd; //#14715 + } else { //#14717 + $_.stopencs = $_.stopencseven; //#14717 + } //#14717 + $_.rowbits = $a($_.r); //#14721 + for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14738 + $_.i = _DY; //#14723 + $k[$j++] = Infinity; //#14724 + $k[$j++] = 10; //#14726 + $forall($get($_.startencs, $_.i), function() { //#14726 + var _Dc = $k[--$j]; //#14726 + $k[$j++] = $f(_Dc - 48); //#14726 + }); //#14726 + var _Df = $geti($_.cws, $_.i * 5, 5); //#14728 + $k[$j++] = 1; //#14730 + for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14730 + $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14729 + var _Dl = $k[--$j]; //#14729 + $k[$j++] = $f(_Dl - 48); //#14729 + }); //#14729 + } //#14729 + $forall($get($_.stopencs, $_.i), function() { //#14731 + var _Dp = $k[--$j]; //#14731 + $k[$j++] = $f(_Dp - 48); //#14731 + }); //#14731 + $k[$j++] = 1; //#14732 + $_.sbs = $a(); //#14732 + $k[$j++] = Infinity; //#14734 + var _Dr = $_.sbs; //#14735 + $k[$j++] = 1; //#14735 + for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14735 + var _Dv = $k[--$j]; //#14735 + var _Dw = (_Dv == 0) ? 1 : 0; //#14735 + $k[$j++] = _Dv; //#14735 + for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14735 + $k[$j++] = _Dw //#14735 + } //#14735 + } //#14735 + $astore($a($counttomark() - 1)); //#14736 + var _E1 = $k[--$j]; //#14736 + var _E2 = $k[--$j]; //#14736 + $k[$j++] = _E1; //#14736 + $k[$j++] = _E2; //#14736 + $j--; //#14736 + var _E3 = $k[--$j]; //#14736 + var _E4 = $k[--$j]; //#14736 + $k[$j++] = _E3; //#14736 + $k[$j++] = _E4; //#14736 + $j--; //#14736 + $put($_.rowbits, $_.i, $k[--$j]); //#14737 + } //#14737 + $k[$j++] = Infinity; //#14741 + for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14742 + $k[$j++] = 1; //#14742 + } //#14742 + for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14747 + $_.i = _ED; //#14744 + for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14745 + $aload($get($_.rowbits, $_.i)); //#14745 + } //#14745 + for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14746 + for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14746 + $k[$j++] = 1; //#14746 + } //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + } //#14746 + for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14748 + $aload($get($_.rowbits, $f($_.r - 1))); //#14748 + } //#14748 + for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14749 + $k[$j++] = 1; //#14749 + } //#14749 + $_.pixs = $a(); //#14749 var _Ef = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -18180,594 +18502,593 @@ function bwipp_code16k() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#14553 - $k[$j++] = _Ef; //#14556 - if (!$_.dontdraw) { //#14556 - bwipp_renmatrix(); //#14556 - } //#14556 - $_ = Object.getPrototypeOf($_); //#14558 - $_ = Object.getPrototypeOf($_); //#14560 -} - + ]); //#14760 + $k[$j++] = _Ef; //#14763 + if (!$_.dontdraw) { //#14763 + bwipp_renmatrix(); //#14763 + } //#14763 + $_ = Object.getPrototypeOf($_); //#14765 + $_ = Object.getPrototypeOf($_); //#14767 +} //bwipp_code16k function bwipp_code49() { - $_ = Object.create($_); //#14591 - $_.dontdraw = false; //#14594 - $_.sam = -1; //#14595 - $_.append = false; //#14596 - $_.rows = 0; //#14597 - $_.rowheight = 8; //#14598 - $_.sepheight = 1; //#14599 - $_.parse = false; //#14600 - $_.parsefnc = false; //#14601 - $k[$j++] = $_; //#14603 - bwipp_processoptions(); //#14603 - $_.options = $k[--$j]; //#14603 - $_.barcode = $k[--$j]; //#14604 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14608 - $k[$j++] = 'bwipp.code49badRows#14607'; //#14607 - $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14607 - bwipp_raiseerror(); //#14607 - } //#14607 - if ($_.rowheight < 8) { //#14612 - $k[$j++] = 'bwipp.code49badRowHeight#14611'; //#14611 - $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14611 - bwipp_raiseerror(); //#14611 - } //#14611 - if ($_.sepheight < 1) { //#14616 - $k[$j++] = 'bwipp.code49badSepHeight#14615'; //#14615 - $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14615 - bwipp_raiseerror(); //#14615 - } //#14615 - if ($_.append && ($_.sam != -1)) { //#14620 - $k[$j++] = 'bwipp.code49samAndAppend#14619'; //#14619 - $k[$j++] = "sam and append cannot be specified together"; //#14619 - bwipp_raiseerror(); //#14619 - } //#14619 - if ($_.sam != -1) { //#14632 - $k[$j++] = true; //#14628 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#14628 - var _C = $_.sam; //#14625 - if ((_C < 12) || (_C > 99)) { //#14625 - $j--; //#14625 - $k[$j++] = false; //#14625 - break; //#14625 - } //#14625 - if (($_.sam % 10) < 2) { //#14626 - $j--; //#14626 - $k[$j++] = false; //#14626 - break; //#14626 - } //#14626 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14627 - $j--; //#14627 - $k[$j++] = false; //#14627 - break; //#14627 - } //#14627 - } //#14627 - if ($nt($k[--$j])) { //#14631 - $k[$j++] = 'bwipp.code49badSAM#14630'; //#14630 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14630 - bwipp_raiseerror(); //#14630 - } //#14630 - } //#14630 - bwipp_loadctx(bwipp_code49) //#14634 - if (!bwipp_code49.__14638__) { //#14638 - $_ = Object.create($_); //#14638 - $_.s1 = -1; //#14637 - $_.s2 = -2; //#14637 - $_.fn1 = -3; //#14637 - $_.fn2 = -4; //#14637 - $_.fn3 = -5; //#14637 - $_.ns = -6; //#14637 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14637 - bwipp_code49.__14638__ = 1; //#14637 - $_ = Object.getPrototypeOf($_); //#14637 - } //#14637 + $_ = Object.create($_); //#14798 + $_.dontdraw = false; //#14801 + $_.sam = -1; //#14802 + $_.append = false; //#14803 + $_.rows = 0; //#14804 + $_.rowheight = 8; //#14805 + $_.sepheight = 1; //#14806 + $_.parse = false; //#14807 + $_.parsefnc = false; //#14808 + $k[$j++] = $_; //#14810 + bwipp_processoptions(); //#14810 + $_.options = $k[--$j]; //#14810 + $_.barcode = $k[--$j]; //#14811 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14815 + $k[$j++] = 'bwipp.code49badRows#14814'; //#14814 + $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14814 + bwipp_raiseerror(); //#14814 + } //#14814 + if ($_.rowheight < 8) { //#14819 + $k[$j++] = 'bwipp.code49badRowHeight#14818'; //#14818 + $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14818 + bwipp_raiseerror(); //#14818 + } //#14818 + if ($_.sepheight < 1) { //#14823 + $k[$j++] = 'bwipp.code49badSepHeight#14822'; //#14822 + $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14822 + bwipp_raiseerror(); //#14822 + } //#14822 + if ($_.append && ($_.sam != -1)) { //#14827 + $k[$j++] = 'bwipp.code49samAndAppend#14826'; //#14826 + $k[$j++] = "sam and append cannot be specified together"; //#14826 + bwipp_raiseerror(); //#14826 + } //#14826 + if ($_.sam != -1) { //#14839 + $k[$j++] = true; //#14835 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#14835 + var _C = $_.sam; //#14832 + if ((_C < 12) || (_C > 99)) { //#14832 + $j--; //#14832 + $k[$j++] = false; //#14832 + break; //#14832 + } //#14832 + if (($_.sam % 10) < 2) { //#14833 + $j--; //#14833 + $k[$j++] = false; //#14833 + break; //#14833 + } //#14833 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14834 + $j--; //#14834 + $k[$j++] = false; //#14834 + break; //#14834 + } //#14834 + } //#14834 + if ($nt($k[--$j])) { //#14838 + $k[$j++] = 'bwipp.code49badSAM#14837'; //#14837 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14837 + bwipp_raiseerror(); //#14837 + } //#14837 + } //#14837 + bwipp_loadctx(bwipp_code49) //#14841 + if (!bwipp_code49.__14845__) { //#14845 + $_ = Object.create($_); //#14845 + $_.s1 = -1; //#14844 + $_.s2 = -2; //#14844 + $_.fn1 = -3; //#14844 + $_.fn2 = -4; //#14844 + $_.fn3 = -5; //#14844 + $_.ns = -6; //#14844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14844 + bwipp_code49.__14845__ = 1; //#14844 + $_ = Object.getPrototypeOf($_); //#14844 + } //#14844 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#14646 - $_.fncvals = _N; //#14647 - $k[$j++] = 'msg'; //#14648 - $k[$j++] = $_.barcode; //#14648 - $k[$j++] = $_.fncvals; //#14648 - bwipp_parseinput(); //#14648 - var _Q = $k[--$j]; //#14648 - $_[$k[--$j]] = _Q; //#14648 - $_.msglen = $_.msg.length; //#14649 - $forall($_.msg, function() { //#14655 - if ($k[--$j] > 127) { //#14654 - $k[$j++] = 'bwipp.code49badCharacter#14653'; //#14653 - $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14653 - bwipp_raiseerror(); //#14653 - } //#14653 - }); //#14653 - if (!bwipp_code49.__14697__) { //#14697 - $_ = Object.create($_); //#14697 - $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14665 - $_.charvals = new Map; //#14668 - for (var _c = 0; _c <= 48; _c += 1) { //#14674 - $_.i = _c; //#14670 - var _f = $get($_.charmap, $_.i); //#14671 - $k[$j++] = _f; //#14672 - if ($eq($type(_f), 'stringtype')) { //#14672 - var _i = $get($k[--$j], 0); //#14672 - $k[$j++] = _i; //#14672 - } //#14672 - $put($_.charvals, $k[--$j], $_.i); //#14673 - } //#14673 - $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14686 - for (var _n = 0; _n <= 127; _n += 1) { //#14696 - $_.i = _n; //#14688 - var _q = $get($_.combos, $_.i); //#14689 - $_.c1 = $get(_q, 0); //#14689 - $_.c2 = $get(_q, 1); //#14689 - if ($_.c1 == 49) { //#14692 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14691 - } //#14691 - if ($_.c1 == 50) { //#14695 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14694 - } //#14694 - } //#14694 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14694 - bwipp_code49.__14697__ = 1; //#14694 - $_ = Object.getPrototypeOf($_); //#14694 - } //#14694 + ]); //#14853 + $_.fncvals = _N; //#14854 + $k[$j++] = 'msg'; //#14855 + $k[$j++] = $_.barcode; //#14855 + $k[$j++] = $_.fncvals; //#14855 + bwipp_parseinput(); //#14855 + var _Q = $k[--$j]; //#14855 + $_[$k[--$j]] = _Q; //#14855 + $_.msglen = $_.msg.length; //#14856 + $forall($_.msg, function() { //#14862 + if ($k[--$j] > 127) { //#14861 + $k[$j++] = 'bwipp.code49badCharacter#14860'; //#14860 + $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14860 + bwipp_raiseerror(); //#14860 + } //#14860 + }); //#14860 + if (!bwipp_code49.__14904__) { //#14904 + $_ = Object.create($_); //#14904 + $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14872 + $_.charvals = new Map; //#14875 + for (var _c = 0; _c <= 48; _c += 1) { //#14881 + $_.i = _c; //#14877 + var _f = $get($_.charmap, $_.i); //#14878 + $k[$j++] = _f; //#14879 + if ($eq($type(_f), 'stringtype')) { //#14879 + var _i = $get($k[--$j], 0); //#14879 + $k[$j++] = _i; //#14879 + } //#14879 + $put($_.charvals, $k[--$j], $_.i); //#14880 + } //#14880 + $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14893 + for (var _n = 0; _n <= 127; _n += 1) { //#14903 + $_.i = _n; //#14895 + var _q = $get($_.combos, $_.i); //#14896 + $_.c1 = $get(_q, 0); //#14896 + $_.c2 = $get(_q, 1); //#14896 + if ($_.c1 == 49) { //#14899 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14898 + } //#14898 + if ($_.c1 == 50) { //#14902 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14901 + } //#14901 + } //#14901 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14901 + bwipp_code49.__14904__ = 1; //#14901 + $_ = Object.getPrototypeOf($_); //#14901 + } //#14901 $_.encodealpha = function() { - var _1G = $get($_.charvals, $k[--$j]); //#14700 - $k[$j++] = _1G; //#14701 - if ($ne($type(_1G), 'arraytype')) { //#14701 - $astore($a(1)); //#14701 - } //#14701 - var _1J = $k[--$j]; //#14702 - $puti($_.cws, $_.j, _1J); //#14702 - $_.j = _1J.length + $_.j; //#14703 - }; //#14703 + var _1G = $get($_.charvals, $k[--$j]); //#14907 + $k[$j++] = _1G; //#14908 + if ($ne($type(_1G), 'arraytype')) { //#14908 + $astore($a(1)); //#14908 + } //#14908 + var _1J = $k[--$j]; //#14909 + $puti($_.cws, $_.j, _1J); //#14909 + $_.j = _1J.length + $_.j; //#14910 + }; //#14910 $_.base48 = function() { - var _1N = $k[--$j]; //#14707 - $k[$j++] = 0; //#14707 - $forall(_1N, function() { //#14707 - var _1O = $k[--$j]; //#14707 - var _1P = $k[--$j]; //#14707 - $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14707 - }); //#14707 - $k[$j++] = Infinity; //#14708 - var _1Q = $k[--$j]; //#14708 - var _1R = $k[--$j]; //#14708 - var _1S = $k[--$j]; //#14708 - $k[$j++] = _1Q; //#14708 - $k[$j++] = _1R; //#14708 - for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14708 - var _1V = $k[--$j]; //#14708 - $k[$j++] = _1V % 48; //#14708 - $k[$j++] = ~~(_1V / 48); //#14708 - } //#14708 - var _1W = $a(); //#14708 - $k[$j++] = _1W; //#14709 - $k[$j++] = Infinity; //#14709 - var _1X = $k[--$j]; //#14709 - var _1Y = $k[--$j]; //#14709 - $k[$j++] = _1X; //#14709 - $k[$j++] = _1Y; //#14709 - for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14709 - var _1a = $k[--$j]; //#14709 - $k[$j++] = $get(_1a, _1Z); //#14709 - $k[$j++] = _1a; //#14709 - } //#14709 - $j--; //#14709 - var _1c = $a(); //#14709 - $puti($_.cws, $_.j, _1c); //#14710 - $_.j = _1c.length + $_.j; //#14711 - }; //#14711 + var _1N = $k[--$j]; //#14914 + $k[$j++] = 0; //#14914 + $forall(_1N, function() { //#14914 + var _1O = $k[--$j]; //#14914 + var _1P = $k[--$j]; //#14914 + $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14914 + }); //#14914 + $k[$j++] = Infinity; //#14915 + var _1Q = $k[--$j]; //#14915 + var _1R = $k[--$j]; //#14915 + var _1S = $k[--$j]; //#14915 + $k[$j++] = _1Q; //#14915 + $k[$j++] = _1R; //#14915 + for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14915 + var _1V = $k[--$j]; //#14915 + $k[$j++] = _1V % 48; //#14915 + $k[$j++] = ~~(_1V / 48); //#14915 + } //#14915 + var _1W = $a(); //#14915 + $k[$j++] = _1W; //#14916 + $k[$j++] = Infinity; //#14916 + var _1X = $k[--$j]; //#14916 + var _1Y = $k[--$j]; //#14916 + $k[$j++] = _1X; //#14916 + $k[$j++] = _1Y; //#14916 + for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14916 + var _1a = $k[--$j]; //#14916 + $k[$j++] = $get(_1a, _1Z); //#14916 + $k[$j++] = _1a; //#14916 + } //#14916 + $j--; //#14916 + var _1c = $a(); //#14916 + $puti($_.cws, $_.j, _1c); //#14917 + $_.j = _1c.length + $_.j; //#14918 + }; //#14918 $_.encodenumeric = function() { - $_.nums = $k[--$j]; //#14715 - var _1i = $_.nums.length; //#14716 - var _1j = _1i % 5; //#14716 - $k[$j++] = 'pre'; //#14716 - $k[$j++] = _1i; //#14716 - $k[$j++] = _1j; //#14716 - if (_1j != 2) { //#14716 - var _1k = $k[--$j]; //#14716 - var _1l = $k[--$j]; //#14716 - $k[$j++] = $f(_1l - _1k); //#14716 - } else { //#14716 - var _1m = $k[--$j]; //#14716 - var _1n = $k[--$j]; //#14716 - $k[$j++] = $f($f(_1n - _1m) - 5); //#14716 - } //#14716 - var _1o = $k[--$j]; //#14716 - $_[$k[--$j]] = _1o; //#14716 - for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14717 - $k[$j++] = 3; //#14717 - $k[$j++] = $geti($_.nums, _1s, 5); //#14717 - $_.base48(); //#14717 - } //#14717 - $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14718 - var _21 = $_.nums.length; //#14720 - $k[$j++] = _21; //#14720 - if (_21 == 1) { //#14720 - $k[$j++] = $get($_.nums, $_.i); //#14720 - $_.encodealpha(); //#14720 - } //#14720 - var _25 = $k[--$j]; //#14721 - $k[$j++] = _25; //#14721 - if (_25 == 3) { //#14721 - $k[$j++] = 2; //#14721 - $k[$j++] = $_.nums; //#14721 - $_.base48(); //#14721 - } //#14721 - var _27 = $k[--$j]; //#14722 - $k[$j++] = _27; //#14722 - if (_27 == 4) { //#14722 - $k[$j++] = 3; //#14722 - $k[$j++] = Infinity; //#14722 - $k[$j++] = 49; //#14722 - $k[$j++] = 48; //#14722 - $aload($_.nums); //#14722 - var _29 = $a(); //#14722 - $k[$j++] = _29; //#14722 - $_.base48(); //#14722 - } //#14722 - if ($k[--$j] == 7) { //#14726 - $k[$j++] = 3; //#14724 - $k[$j++] = Infinity; //#14724 - $k[$j++] = 49; //#14724 - $k[$j++] = 48; //#14724 - $aload($geti($_.nums, 0, 4)); //#14724 - var _2D = $a(); //#14724 - $k[$j++] = _2D; //#14724 - $_.base48(); //#14724 - $k[$j++] = 2; //#14725 - $k[$j++] = $geti($_.nums, 4, 3); //#14725 - $_.base48(); //#14725 - } //#14725 - }; //#14725 - $k[$j++] = Infinity; //#14730 - for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14730 - $k[$j++] = 0; //#14730 - } //#14730 - $k[$j++] = 0; //#14730 - $_.numericruns = $a(); //#14730 - for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14739 - $_.i = _2L; //#14732 - var _2O = $get($_.msg, $_.i); //#14733 - if ((_2O >= 48) && (_2O <= 57)) { //#14737 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14735 - } else { //#14737 - $put($_.numericruns, $_.i, 0); //#14737 - } //#14737 - } //#14737 - $_.cws = $a(($_.msglen * 2) + 1); //#14741 - if (!bwipp_code49.__14754__) { //#14754 - $_ = Object.create($_); //#14754 - $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14753 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14753 - bwipp_code49.__14754__ = 1; //#14753 - $_ = Object.getPrototypeOf($_); //#14753 - } //#14753 - for (;;) { //#14790 - if ($_.append) { //#14763 - $_.mode = 1; //#14759 - $_.method = "alpha"; //#14760 - $_.i = 0; //#14761 - $_.j = 0; //#14761 - break; //#14762 - } //#14762 - if ($_.sam != -1) { //#14770 - $_.mode = 3; //#14765 - $k[$j++] = $_.cws; //#14766 - $k[$j++] = 0; //#14766 - for (var _2d = 0; _2d <= 43; _2d += 1) { //#14766 - $k[$j++] = _2d; //#14766 - if ($get($_.samval, _2d) != $_.sam) { //#14766 - $j--; //#14766 - } //#14766 - } //#14766 - var _2h = $k[--$j]; //#14766 - var _2i = $k[--$j]; //#14766 - $put($k[--$j], _2i, $f(_2h + 1)); //#14766 - $_.method = "alpha"; //#14767 - $_.i = 0; //#14768 - $_.j = 1; //#14768 - break; //#14769 - } //#14769 - if ($get($_.numericruns, 0) >= 5) { //#14775 - $_.mode = 2; //#14772 - $_.method = "numeric"; //#14773 - $_.i = 0; //#14773 - $_.j = 0; //#14773 - break; //#14774 - } //#14774 - var _2p = $get($_.charvals, $get($_.msg, 0)); //#14776 - $k[$j++] = _2p; //#14783 - if ($ne($type(_2p), 'arraytype')) { //#14783 - $j--; //#14778 - $_.mode = 0; //#14779 - $_.method = "alpha"; //#14780 - $_.i = 0; //#14781 - $_.j = 0; //#14781 - break; //#14782 - } //#14782 - var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14785 - $_.mode = _2t; //#14785 - $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14786 - $_.method = "alpha"; //#14787 - $_.i = 1; //#14788 - $_.j = 1; //#14788 - break; //#14789 - } //#14789 - for (;;) { //#14817 - if ($_.i == $_.msglen) { //#14794 - break; //#14794 - } //#14794 - for (;;) { //#14816 - if ($eq($_.method, "alpha")) { //#14805 - if ($get($_.numericruns, $_.i) >= 5) { //#14801 - $k[$j++] = $_.ns; //#14798 - $_.encodealpha(); //#14798 - $_.method = "numeric"; //#14799 - break; //#14800 - } //#14800 - $k[$j++] = $get($_.msg, $_.i); //#14802 - $_.encodealpha(); //#14802 - $_.i = $_.i + 1; //#14803 - break; //#14804 - } //#14804 - if ($eq($_.method, "numeric")) { //#14815 - if ($get($_.numericruns, $_.i) < 5) { //#14811 - $k[$j++] = $_.ns; //#14808 - $_.encodealpha(); //#14808 - $_.method = "alpha"; //#14809 - break; //#14810 - } //#14810 - $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#14812 - $_.encodenumeric(); //#14812 - $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#14813 - break; //#14814 - } //#14814 - } //#14814 - } //#14814 - $_.cws = $geti($_.cws, 0, $_.j); //#14818 - if (!bwipp_code49.__14832__) { //#14832 - $_ = Object.create($_); //#14832 - $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#14831 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14831 - bwipp_code49.__14832__ = 1; //#14831 - $_ = Object.getPrototypeOf($_); //#14831 - } //#14831 - $_.urows = $_.rows; //#14835 - var _3d = $_.metrics; //#14836 - for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#14844 - $_.m = $get(_3d, _3e); //#14837 - $_.r = $get($_.m, 0); //#14838 - $_.dcws = $get($_.m, 1); //#14839 - $_.okay = true; //#14840 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14841 - $_.okay = false; //#14841 - } //#14841 - if ($_.cws.length > $_.dcws) { //#14842 - $_.okay = false; //#14842 - } //#14842 - if ($_.okay) { //#14843 - break; //#14843 - } //#14843 - } //#14843 - if (!$_.okay) { //#14848 - $k[$j++] = 'bwipp.code49noValidSymbol#14847'; //#14847 - $k[$j++] = "Maximum length exceeded"; //#14847 - bwipp_raiseerror(); //#14847 - } //#14847 - $k[$j++] = Infinity; //#14851 - $aload($_.cws); //#14851 - for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#14851 - $k[$j++] = 48; //#14851 - } //#14851 - $_.cws = $a(); //#14851 - $_.ccs = $a($_.r * 8); //#14854 - $_.j = 0; //#14855 - for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#14862 - $_.i = _42; //#14857 - $_.cc = $geti($_.cws, $_.j, 7); //#14858 - $puti($_.ccs, $_.i * 8, $_.cc); //#14859 - var _4B = $_.cc; //#14860 - $k[$j++] = $_.ccs; //#14860 - $k[$j++] = ($_.i * 8) + 7; //#14860 - $k[$j++] = 0; //#14860 - for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#14860 - var _4F = $k[--$j]; //#14860 - $k[$j++] = $f(_4F + $get(_4B, _4C)); //#14860 - } //#14860 - var _4G = $k[--$j]; //#14860 - var _4H = $k[--$j]; //#14860 - $put($k[--$j], _4H, _4G % 49); //#14860 - $_.j = $_.j + 7; //#14861 - } //#14861 - if ($_.j < $_.dcws) { //#14865 - $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#14864 - } //#14864 - $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#14868 - $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#14869 - if (!bwipp_code49.__14878__) { //#14878 - $_ = Object.create($_); //#14878 - var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#14874 - $k[$j++] = _4Y; //#14875 - $k[$j++] = _4Y; //#14875 - $k[$j++] = Infinity; //#14875 - var _4Z = $k[--$j]; //#14875 - var _4b = $geti($k[--$j], 0, 32); //#14875 - $k[$j++] = _4Z; //#14875 - $k[$j++] = 20; //#14875 - $aload(_4b); //#14875 - $_.weightx = $a(); //#14875 - var _4d = $k[--$j]; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = Infinity; //#14876 - var _4e = $k[--$j]; //#14876 - var _4g = $geti($k[--$j], 1, 32); //#14876 - $k[$j++] = _4e; //#14876 - $k[$j++] = 16; //#14876 - $aload(_4g); //#14876 - $_.weighty = $a(); //#14876 - $k[$j++] = Infinity; //#14877 - var _4i = $k[--$j]; //#14877 - var _4k = $geti($k[--$j], 2, 32); //#14877 - $k[$j++] = _4i; //#14877 - $k[$j++] = 38; //#14877 - $aload(_4k); //#14877 - $_.weightz = $a(); //#14877 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14877 - bwipp_code49.__14878__ = 1; //#14877 - $_ = Object.getPrototypeOf($_); //#14877 - } //#14877 + $_.nums = $k[--$j]; //#14922 + var _1i = $_.nums.length; //#14923 + var _1j = _1i % 5; //#14923 + $k[$j++] = 'pre'; //#14923 + $k[$j++] = _1i; //#14923 + $k[$j++] = _1j; //#14923 + if (_1j != 2) { //#14923 + var _1k = $k[--$j]; //#14923 + var _1l = $k[--$j]; //#14923 + $k[$j++] = $f(_1l - _1k); //#14923 + } else { //#14923 + var _1m = $k[--$j]; //#14923 + var _1n = $k[--$j]; //#14923 + $k[$j++] = $f($f(_1n - _1m) - 5); //#14923 + } //#14923 + var _1o = $k[--$j]; //#14923 + $_[$k[--$j]] = _1o; //#14923 + for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14924 + $k[$j++] = 3; //#14924 + $k[$j++] = $geti($_.nums, _1s, 5); //#14924 + $_.base48(); //#14924 + } //#14924 + $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14925 + var _21 = $_.nums.length; //#14927 + $k[$j++] = _21; //#14927 + if (_21 == 1) { //#14927 + $k[$j++] = $get($_.nums, $_.i); //#14927 + $_.encodealpha(); //#14927 + } //#14927 + var _25 = $k[--$j]; //#14928 + $k[$j++] = _25; //#14928 + if (_25 == 3) { //#14928 + $k[$j++] = 2; //#14928 + $k[$j++] = $_.nums; //#14928 + $_.base48(); //#14928 + } //#14928 + var _27 = $k[--$j]; //#14929 + $k[$j++] = _27; //#14929 + if (_27 == 4) { //#14929 + $k[$j++] = 3; //#14929 + $k[$j++] = Infinity; //#14929 + $k[$j++] = 49; //#14929 + $k[$j++] = 48; //#14929 + $aload($_.nums); //#14929 + var _29 = $a(); //#14929 + $k[$j++] = _29; //#14929 + $_.base48(); //#14929 + } //#14929 + if ($k[--$j] == 7) { //#14933 + $k[$j++] = 3; //#14931 + $k[$j++] = Infinity; //#14931 + $k[$j++] = 49; //#14931 + $k[$j++] = 48; //#14931 + $aload($geti($_.nums, 0, 4)); //#14931 + var _2D = $a(); //#14931 + $k[$j++] = _2D; //#14931 + $_.base48(); //#14931 + $k[$j++] = 2; //#14932 + $k[$j++] = $geti($_.nums, 4, 3); //#14932 + $_.base48(); //#14932 + } //#14932 + }; //#14932 + $k[$j++] = Infinity; //#14937 + for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14937 + $k[$j++] = 0; //#14937 + } //#14937 + $k[$j++] = 0; //#14937 + $_.numericruns = $a(); //#14937 + for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14946 + $_.i = _2L; //#14939 + var _2O = $get($_.msg, $_.i); //#14940 + if ((_2O >= 48) && (_2O <= 57)) { //#14944 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14942 + } else { //#14944 + $put($_.numericruns, $_.i, 0); //#14944 + } //#14944 + } //#14944 + $_.cws = $a(($_.msglen * 2) + 1); //#14948 + if (!bwipp_code49.__14961__) { //#14961 + $_ = Object.create($_); //#14961 + $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14960 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14960 + bwipp_code49.__14961__ = 1; //#14960 + $_ = Object.getPrototypeOf($_); //#14960 + } //#14960 + for (;;) { //#14997 + if ($_.append) { //#14970 + $_.mode = 1; //#14966 + $_.method = "alpha"; //#14967 + $_.i = 0; //#14968 + $_.j = 0; //#14968 + break; //#14969 + } //#14969 + if ($_.sam != -1) { //#14977 + $_.mode = 3; //#14972 + $k[$j++] = $_.cws; //#14973 + $k[$j++] = 0; //#14973 + for (var _2d = 0; _2d <= 43; _2d += 1) { //#14973 + $k[$j++] = _2d; //#14973 + if ($get($_.samval, _2d) != $_.sam) { //#14973 + $j--; //#14973 + } //#14973 + } //#14973 + var _2h = $k[--$j]; //#14973 + var _2i = $k[--$j]; //#14973 + $put($k[--$j], _2i, $f(_2h + 1)); //#14973 + $_.method = "alpha"; //#14974 + $_.i = 0; //#14975 + $_.j = 1; //#14975 + break; //#14976 + } //#14976 + if ($get($_.numericruns, 0) >= 5) { //#14982 + $_.mode = 2; //#14979 + $_.method = "numeric"; //#14980 + $_.i = 0; //#14980 + $_.j = 0; //#14980 + break; //#14981 + } //#14981 + var _2p = $get($_.charvals, $get($_.msg, 0)); //#14983 + $k[$j++] = _2p; //#14990 + if ($ne($type(_2p), 'arraytype')) { //#14990 + $j--; //#14985 + $_.mode = 0; //#14986 + $_.method = "alpha"; //#14987 + $_.i = 0; //#14988 + $_.j = 0; //#14988 + break; //#14989 + } //#14989 + var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14992 + $_.mode = _2t; //#14992 + $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14993 + $_.method = "alpha"; //#14994 + $_.i = 1; //#14995 + $_.j = 1; //#14995 + break; //#14996 + } //#14996 + for (;;) { //#15024 + if ($_.i == $_.msglen) { //#15001 + break; //#15001 + } //#15001 + for (;;) { //#15023 + if ($eq($_.method, "alpha")) { //#15012 + if ($get($_.numericruns, $_.i) >= 5) { //#15008 + $k[$j++] = $_.ns; //#15005 + $_.encodealpha(); //#15005 + $_.method = "numeric"; //#15006 + break; //#15007 + } //#15007 + $k[$j++] = $get($_.msg, $_.i); //#15009 + $_.encodealpha(); //#15009 + $_.i = $_.i + 1; //#15010 + break; //#15011 + } //#15011 + if ($eq($_.method, "numeric")) { //#15022 + if ($get($_.numericruns, $_.i) < 5) { //#15018 + $k[$j++] = $_.ns; //#15015 + $_.encodealpha(); //#15015 + $_.method = "alpha"; //#15016 + break; //#15017 + } //#15017 + $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#15019 + $_.encodenumeric(); //#15019 + $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#15020 + break; //#15021 + } //#15021 + } //#15021 + } //#15021 + $_.cws = $geti($_.cws, 0, $_.j); //#15025 + if (!bwipp_code49.__15039__) { //#15039 + $_ = Object.create($_); //#15039 + $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#15038 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15038 + bwipp_code49.__15039__ = 1; //#15038 + $_ = Object.getPrototypeOf($_); //#15038 + } //#15038 + $_.urows = $_.rows; //#15042 + var _3d = $_.metrics; //#15043 + for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#15051 + $_.m = $get(_3d, _3e); //#15044 + $_.r = $get($_.m, 0); //#15045 + $_.dcws = $get($_.m, 1); //#15046 + $_.okay = true; //#15047 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#15048 + $_.okay = false; //#15048 + } //#15048 + if ($_.cws.length > $_.dcws) { //#15049 + $_.okay = false; //#15049 + } //#15049 + if ($_.okay) { //#15050 + break; //#15050 + } //#15050 + } //#15050 + if (!$_.okay) { //#15055 + $k[$j++] = 'bwipp.code49noValidSymbol#15054'; //#15054 + $k[$j++] = "Maximum length exceeded"; //#15054 + bwipp_raiseerror(); //#15054 + } //#15054 + $k[$j++] = Infinity; //#15058 + $aload($_.cws); //#15058 + for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#15058 + $k[$j++] = 48; //#15058 + } //#15058 + $_.cws = $a(); //#15058 + $_.ccs = $a($_.r * 8); //#15061 + $_.j = 0; //#15062 + for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#15069 + $_.i = _42; //#15064 + $_.cc = $geti($_.cws, $_.j, 7); //#15065 + $puti($_.ccs, $_.i * 8, $_.cc); //#15066 + var _4B = $_.cc; //#15067 + $k[$j++] = $_.ccs; //#15067 + $k[$j++] = ($_.i * 8) + 7; //#15067 + $k[$j++] = 0; //#15067 + for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#15067 + var _4F = $k[--$j]; //#15067 + $k[$j++] = $f(_4F + $get(_4B, _4C)); //#15067 + } //#15067 + var _4G = $k[--$j]; //#15067 + var _4H = $k[--$j]; //#15067 + $put($k[--$j], _4H, _4G % 49); //#15067 + $_.j = $_.j + 7; //#15068 + } //#15068 + if ($_.j < $_.dcws) { //#15072 + $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#15071 + } //#15071 + $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#15075 + $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#15076 + if (!bwipp_code49.__15085__) { //#15085 + $_ = Object.create($_); //#15085 + var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#15081 + $k[$j++] = _4Y; //#15082 + $k[$j++] = _4Y; //#15082 + $k[$j++] = Infinity; //#15082 + var _4Z = $k[--$j]; //#15082 + var _4b = $geti($k[--$j], 0, 32); //#15082 + $k[$j++] = _4Z; //#15082 + $k[$j++] = 20; //#15082 + $aload(_4b); //#15082 + $_.weightx = $a(); //#15082 + var _4d = $k[--$j]; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = Infinity; //#15083 + var _4e = $k[--$j]; //#15083 + var _4g = $geti($k[--$j], 1, 32); //#15083 + $k[$j++] = _4e; //#15083 + $k[$j++] = 16; //#15083 + $aload(_4g); //#15083 + $_.weighty = $a(); //#15083 + $k[$j++] = Infinity; //#15084 + var _4i = $k[--$j]; //#15084 + var _4k = $geti($k[--$j], 2, 32); //#15084 + $k[$j++] = _4i; //#15084 + $k[$j++] = 38; //#15084 + $aload(_4k); //#15084 + $_.weightz = $a(); //#15084 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15084 + bwipp_code49.__15085__ = 1; //#15084 + $_ = Object.getPrototypeOf($_); //#15084 + } //#15084 $_.calccheck = function() { - $_.weights = $k[--$j]; //#14880 - $_.score = 0; //#14881 - for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#14886 - $_.i = _4q; //#14883 - $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#14885 - } //#14885 - $k[$j++] = $_.score; //#14887 - }; //#14887 - $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#14889 - if ($_.r >= 7) { //#14896 - $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#14893 - $k[$j++] = $_.weightz; //#14893 - $_.calccheck(); //#14893 - var _5A = $k[--$j]; //#14893 - var _5C = $f($k[--$j] + _5A) % 2401; //#14894 - $k[$j++] = ~~(_5C / 49); //#14894 - $k[$j++] = _5C % 49; //#14894 - $astore($a(2)); //#14894 - $puti($_.lastrow, 0, $k[--$j]); //#14895 - } //#14895 - $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#14897 - $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#14900 - $k[$j++] = $_.weighty; //#14900 - $_.calccheck(); //#14900 - var _5O = $k[--$j]; //#14900 - var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#14902 - $_.wr2 = _5U; //#14902 - $k[$j++] = ~~(_5U / 49); //#14903 - $k[$j++] = _5U % 49; //#14903 - $astore($a(2)); //#14903 - $puti($_.lastrow, 2, $k[--$j]); //#14904 - $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#14907 - $k[$j++] = $_.weightx; //#14907 - $_.calccheck(); //#14907 - var _5c = $k[--$j]; //#14907 - var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#14911 - $k[$j++] = ~~(_5m / 49); //#14911 - $k[$j++] = _5m % 49; //#14911 - $astore($a(2)); //#14911 - $puti($_.lastrow, 4, $k[--$j]); //#14912 - var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#14915 - $k[$j++] = 0; //#14915 - for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#14915 - var _5w = $k[--$j]; //#14915 - $k[$j++] = $f(_5w + $get(_5s, _5t)); //#14915 - } //#14915 - $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#14916 - var _61 = $get($_.options, 'debugcws') !== undefined; //#14918 - if (_61) { //#14918 - $k[$j++] = 'bwipp.debugcws#14918'; //#14918 - $k[$j++] = $_.ccs; //#14918 - bwipp_raiseerror(); //#14918 - } //#14918 - if (!bwipp_code49.__15616__) { //#15616 - $_ = Object.create($_); //#15616 - $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15611 - $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15615 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15615 - bwipp_code49.__15616__ = 1; //#15615 - $_ = Object.getPrototypeOf($_); //#15615 - } //#15615 - $_.rowbits = $a($_.r); //#15619 - for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15639 - $_.i = _6C; //#15621 - $k[$j++] = 'p'; //#15622 - if ($_.i != $f($_.r - 1)) { //#15622 - $k[$j++] = $get($_.parity, $_.i); //#15622 - } else { //#15622 - $k[$j++] = "0000"; //#15622 - } //#15622 - var _6I = $k[--$j]; //#15622 - $_[$k[--$j]] = _6I; //#15622 - $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15623 - $k[$j++] = Infinity; //#15625 - for (var _6N = 0; _6N <= 7; _6N += 2) { //#15625 - $aload($geti($_.ccrow, _6N, 2)); //#15625 - var _6Q = $k[--$j]; //#15625 - var _6R = $k[--$j]; //#15625 - $k[$j++] = $f(_6Q + (_6R * 49)); //#15625 - } //#15625 - $_.scrow = $a(); //#15625 - $k[$j++] = Infinity; //#15633 - $k[$j++] = 10; //#15632 - $k[$j++] = 1; //#15632 - $k[$j++] = 1; //#15632 - for (var _6T = 0; _6T <= 3; _6T += 1) { //#15632 - $_.j = _6T; //#15630 - $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15631 - var _6d = $k[--$j]; //#15631 - $k[$j++] = $f(_6d - 48); //#15631 - }); //#15631 - } //#15631 - $k[$j++] = 4; //#15633 - $k[$j++] = 1; //#15633 - $_.sbs = $a(); //#15633 - $k[$j++] = Infinity; //#15635 - var _6f = $_.sbs; //#15636 - $k[$j++] = 1; //#15636 - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15636 - var _6j = $k[--$j]; //#15636 - var _6k = (_6j == 0) ? 1 : 0; //#15636 - $k[$j++] = _6j; //#15636 - for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15636 - $k[$j++] = _6k //#15636 - } //#15636 - } //#15636 - $astore($a($counttomark() - 1)); //#15637 - var _6p = $k[--$j]; //#15637 - var _6q = $k[--$j]; //#15637 - $k[$j++] = _6p; //#15637 - $k[$j++] = _6q; //#15637 - $j--; //#15637 - var _6r = $k[--$j]; //#15637 - var _6s = $k[--$j]; //#15637 - $k[$j++] = _6r; //#15637 - $k[$j++] = _6s; //#15637 - $j--; //#15637 - $put($_.rowbits, $_.i, $k[--$j]); //#15638 - } //#15638 - $k[$j++] = Infinity; //#15650 - for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15643 - $k[$j++] = 1; //#15643 - } //#15643 - for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15648 - $_.i = _71; //#15645 - for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15646 - $aload($get($_.rowbits, $_.i)); //#15646 - } //#15646 - for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15647 - for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15647 - $k[$j++] = 1; //#15647 - } //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - } //#15647 - for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15649 - $aload($get($_.rowbits, $f($_.r - 1))); //#15649 - } //#15649 - for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15650 - $k[$j++] = 1; //#15650 - } //#15650 - $_.pixs = $a(); //#15650 + $_.weights = $k[--$j]; //#15087 + $_.score = 0; //#15088 + for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#15093 + $_.i = _4q; //#15090 + $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#15092 + } //#15092 + $k[$j++] = $_.score; //#15094 + }; //#15094 + $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#15096 + if ($_.r >= 7) { //#15103 + $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#15100 + $k[$j++] = $_.weightz; //#15100 + $_.calccheck(); //#15100 + var _5A = $k[--$j]; //#15100 + var _5C = $f($k[--$j] + _5A) % 2401; //#15101 + $k[$j++] = ~~(_5C / 49); //#15101 + $k[$j++] = _5C % 49; //#15101 + $astore($a(2)); //#15101 + $puti($_.lastrow, 0, $k[--$j]); //#15102 + } //#15102 + $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#15104 + $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#15107 + $k[$j++] = $_.weighty; //#15107 + $_.calccheck(); //#15107 + var _5O = $k[--$j]; //#15107 + var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#15109 + $_.wr2 = _5U; //#15109 + $k[$j++] = ~~(_5U / 49); //#15110 + $k[$j++] = _5U % 49; //#15110 + $astore($a(2)); //#15110 + $puti($_.lastrow, 2, $k[--$j]); //#15111 + $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#15114 + $k[$j++] = $_.weightx; //#15114 + $_.calccheck(); //#15114 + var _5c = $k[--$j]; //#15114 + var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#15118 + $k[$j++] = ~~(_5m / 49); //#15118 + $k[$j++] = _5m % 49; //#15118 + $astore($a(2)); //#15118 + $puti($_.lastrow, 4, $k[--$j]); //#15119 + var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#15122 + $k[$j++] = 0; //#15122 + for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#15122 + var _5w = $k[--$j]; //#15122 + $k[$j++] = $f(_5w + $get(_5s, _5t)); //#15122 + } //#15122 + $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#15123 + var _61 = $get($_.options, 'debugcws') !== undefined; //#15125 + if (_61) { //#15125 + $k[$j++] = 'bwipp.debugcws#15125'; //#15125 + $k[$j++] = $_.ccs; //#15125 + bwipp_raiseerror(); //#15125 + } //#15125 + if (!bwipp_code49.__15823__) { //#15823 + $_ = Object.create($_); //#15823 + $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15818 + $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15822 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15822 + bwipp_code49.__15823__ = 1; //#15822 + $_ = Object.getPrototypeOf($_); //#15822 + } //#15822 + $_.rowbits = $a($_.r); //#15826 + for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15846 + $_.i = _6C; //#15828 + $k[$j++] = 'p'; //#15829 + if ($_.i != $f($_.r - 1)) { //#15829 + $k[$j++] = $get($_.parity, $_.i); //#15829 + } else { //#15829 + $k[$j++] = "0000"; //#15829 + } //#15829 + var _6I = $k[--$j]; //#15829 + $_[$k[--$j]] = _6I; //#15829 + $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15830 + $k[$j++] = Infinity; //#15831 + for (var _6N = 0; _6N <= 7; _6N += 2) { //#15832 + $aload($geti($_.ccrow, _6N, 2)); //#15832 + var _6Q = $k[--$j]; //#15832 + var _6R = $k[--$j]; //#15832 + $k[$j++] = $f(_6Q + (_6R * 49)); //#15832 + } //#15832 + $_.scrow = $a(); //#15832 + $k[$j++] = Infinity; //#15834 + $k[$j++] = 10; //#15839 + $k[$j++] = 1; //#15839 + $k[$j++] = 1; //#15839 + for (var _6T = 0; _6T <= 3; _6T += 1) { //#15839 + $_.j = _6T; //#15837 + $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15838 + var _6d = $k[--$j]; //#15838 + $k[$j++] = $f(_6d - 48); //#15838 + }); //#15838 + } //#15838 + $k[$j++] = 4; //#15840 + $k[$j++] = 1; //#15840 + $_.sbs = $a(); //#15840 + $k[$j++] = Infinity; //#15842 + var _6f = $_.sbs; //#15843 + $k[$j++] = 1; //#15843 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15843 + var _6j = $k[--$j]; //#15843 + var _6k = (_6j == 0) ? 1 : 0; //#15843 + $k[$j++] = _6j; //#15843 + for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15843 + $k[$j++] = _6k //#15843 + } //#15843 + } //#15843 + $astore($a($counttomark() - 1)); //#15844 + var _6p = $k[--$j]; //#15844 + var _6q = $k[--$j]; //#15844 + $k[$j++] = _6p; //#15844 + $k[$j++] = _6q; //#15844 + $j--; //#15844 + var _6r = $k[--$j]; //#15844 + var _6s = $k[--$j]; //#15844 + $k[$j++] = _6r; //#15844 + $k[$j++] = _6s; //#15844 + $j--; //#15844 + $put($_.rowbits, $_.i, $k[--$j]); //#15845 + } //#15845 + $k[$j++] = Infinity; //#15849 + for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15850 + $k[$j++] = 1; //#15850 + } //#15850 + for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15855 + $_.i = _71; //#15852 + for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15853 + $aload($get($_.rowbits, $_.i)); //#15853 + } //#15853 + for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15854 + for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15854 + $k[$j++] = 1; //#15854 + } //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + } //#15854 + for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15856 + $aload($get($_.rowbits, $f($_.r - 1))); //#15856 + } //#15856 + for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15857 + $k[$j++] = 1; //#15857 + } //#15857 + $_.pixs = $a(); //#15857 var _7T = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -18776,4438 +19097,4524 @@ function bwipp_code49() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#15661 - $k[$j++] = _7T; //#15664 - if (!$_.dontdraw) { //#15664 - bwipp_renmatrix(); //#15664 - } //#15664 - $_ = Object.getPrototypeOf($_); //#15666 - $_ = Object.getPrototypeOf($_); //#15668 -} - + ]); //#15868 + $k[$j++] = _7T; //#15871 + if (!$_.dontdraw) { //#15871 + bwipp_renmatrix(); //#15871 + } //#15871 + $_ = Object.getPrototypeOf($_); //#15873 + $_ = Object.getPrototypeOf($_); //#15875 +} //bwipp_code49 function bwipp_flattermarken() { - $_ = Object.create($_); //#15960 - $_.dontdraw = false; //#15963 - $_.includetext = false; //#15964 - $_.textfont = "OCR-B"; //#15965 - $_.textsize = 10; //#15966 - $_.textyoffset = -8; //#15967 - $_.height = 0.3; //#15968 - $k[$j++] = $_; //#15970 - bwipp_processoptions(); //#15970 - $_.options = $k[--$j]; //#15970 - $_.barcode = $k[--$j]; //#15971 - bwipp_loadctx(bwipp_flattermarken) //#15973 - $forall($_.barcode, function() { //#15980 - var _3 = $k[--$j]; //#15977 - if ((_3 < 48) || (_3 > 57)) { //#15979 - $k[$j++] = 'bwipp.flattermarkenBadCharacter#15978'; //#15978 - $k[$j++] = "Flattermarken must contain only digits"; //#15978 - bwipp_raiseerror(); //#15978 - } //#15978 - }); //#15978 - if (!bwipp_flattermarken.__15991__) { //#15991 - $_ = Object.create($_); //#15991 - $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#15987 - $_.barchars = "1234567890"; //#15990 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#15990 - bwipp_flattermarken.__15991__ = 1; //#15990 - $_ = Object.getPrototypeOf($_); //#15990 - } //#15990 - $_.barlen = $_.barcode.length; //#15993 - $_.sbs = $s($_.barlen * 4); //#15995 - $_.txt = $a($_.barlen); //#15996 - for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16008 - $_.i = _D; //#15999 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16001 - $j--; //#16002 - $_.indx = $k[--$j].length; //#16003 - $j -= 2; //#16004 - $_.enc = $get($_.encs, $_.indx); //#16005 - $puti($_.sbs, $_.i * 4, $_.enc); //#16006 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16007 - } //#16007 - $k[$j++] = Infinity; //#16017 - $k[$j++] = Infinity; //#16013 - var _Z = $_.sbs; //#16013 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16013 - $k[$j++] = $get(_Z, _a) - 48; //#16013 - } //#16013 - var _d = $a(); //#16013 - $k[$j++] = Infinity; //#16014 - for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16014 - $k[$j++] = $_.height; //#16014 - } //#16014 - var _i = $a(); //#16014 - $k[$j++] = Infinity; //#16015 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16015 - $k[$j++] = 0; //#16015 - } //#16015 - var _m = $a(); //#16015 - $k[$j++] = 'ren'; //#16017 - $k[$j++] = bwipp_renlinear; //#16017 - $k[$j++] = 'sbs'; //#16017 - $k[$j++] = _d; //#16017 - $k[$j++] = 'bhs'; //#16017 - $k[$j++] = _i; //#16017 - $k[$j++] = 'bbs'; //#16017 - $k[$j++] = _m; //#16017 - $k[$j++] = 'txt'; //#16017 - $k[$j++] = $_.txt; //#16017 - $k[$j++] = 'opt'; //#16017 - $k[$j++] = $_.options; //#16017 - var _p = $d(); //#16017 - $k[$j++] = _p; //#16020 - if (!$_.dontdraw) { //#16020 - bwipp_renlinear(); //#16020 - } //#16020 - $_ = Object.getPrototypeOf($_); //#16022 - $_ = Object.getPrototypeOf($_); //#16024 -} - + $_ = Object.create($_); //#16169 + $_.dontdraw = false; //#16172 + $_.includetext = false; //#16173 + $_.textfont = "OCR-B"; //#16174 + $_.textsize = 10; //#16175 + $_.textyoffset = -8; //#16176 + $_.height = 0.3; //#16177 + $k[$j++] = $_; //#16179 + bwipp_processoptions(); //#16179 + $_.options = $k[--$j]; //#16179 + $_.barcode = $k[--$j]; //#16180 + bwipp_loadctx(bwipp_flattermarken) //#16182 + $forall($_.barcode, function() { //#16189 + var _3 = $k[--$j]; //#16186 + if ((_3 < 48) || (_3 > 57)) { //#16188 + $k[$j++] = 'bwipp.flattermarkenBadCharacter#16187'; //#16187 + $k[$j++] = "Flattermarken must contain only digits"; //#16187 + bwipp_raiseerror(); //#16187 + } //#16187 + }); //#16187 + if (!bwipp_flattermarken.__16200__) { //#16200 + $_ = Object.create($_); //#16200 + $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#16196 + $_.barchars = "1234567890"; //#16199 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#16199 + bwipp_flattermarken.__16200__ = 1; //#16199 + $_ = Object.getPrototypeOf($_); //#16199 + } //#16199 + $_.barlen = $_.barcode.length; //#16202 + $_.sbs = $s($_.barlen * 4); //#16204 + $_.txt = $a($_.barlen); //#16205 + for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16217 + $_.i = _D; //#16208 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16210 + $j--; //#16211 + $_.indx = $k[--$j].length; //#16212 + $j -= 2; //#16213 + $_.enc = $get($_.encs, $_.indx); //#16214 + $puti($_.sbs, $_.i * 4, $_.enc); //#16215 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16216 + } //#16216 + $k[$j++] = Infinity; //#16220 + $k[$j++] = Infinity; //#16222 + var _Z = $_.sbs; //#16222 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16222 + $k[$j++] = $get(_Z, _a) - 48; //#16222 + } //#16222 + var _d = $a(); //#16222 + $k[$j++] = Infinity; //#16223 + for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16223 + $k[$j++] = $_.height; //#16223 + } //#16223 + var _i = $a(); //#16223 + $k[$j++] = Infinity; //#16224 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16224 + $k[$j++] = 0; //#16224 + } //#16224 + var _m = $a(); //#16224 + $k[$j++] = 'ren'; //#16226 + $k[$j++] = bwipp_renlinear; //#16226 + $k[$j++] = 'sbs'; //#16226 + $k[$j++] = _d; //#16226 + $k[$j++] = 'bhs'; //#16226 + $k[$j++] = _i; //#16226 + $k[$j++] = 'bbs'; //#16226 + $k[$j++] = _m; //#16226 + $k[$j++] = 'txt'; //#16226 + $k[$j++] = $_.txt; //#16226 + $k[$j++] = 'opt'; //#16226 + $k[$j++] = $_.options; //#16226 + var _p = $d(); //#16226 + $k[$j++] = _p; //#16229 + if (!$_.dontdraw) { //#16229 + bwipp_renlinear(); //#16229 + } //#16229 + $_ = Object.getPrototypeOf($_); //#16231 + $_ = Object.getPrototypeOf($_); //#16233 +} //bwipp_flattermarken function bwipp_raw() { - $_ = Object.create($_); //#16052 - $_.dontdraw = false; //#16055 - $_.height = 1; //#16056 - $k[$j++] = $_; //#16058 - bwipp_processoptions(); //#16058 - $_.options = $k[--$j]; //#16058 - $_.barcode = $k[--$j]; //#16059 - $forall($_.barcode, function() { //#16066 - var _3 = $k[--$j]; //#16063 - if ((_3 < 49) || (_3 > 57)) { //#16065 - $k[$j++] = 'bwipp.rawBadCharacter#16064'; //#16064 - $k[$j++] = "Raw must contain only digits 1 to 9"; //#16064 - bwipp_raiseerror(); //#16064 - } //#16064 - }); //#16064 - $k[$j++] = Infinity; //#16074 - $k[$j++] = Infinity; //#16071 - $forall($_.barcode, function() { //#16071 - var _5 = $k[--$j]; //#16071 - $k[$j++] = $f(_5 - 48); //#16071 - }); //#16071 - var _6 = $a(); //#16071 - $k[$j++] = Infinity; //#16072 - for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16072 - $k[$j++] = $_.height; //#16072 - } //#16072 - var _B = $a(); //#16072 - $k[$j++] = Infinity; //#16073 - for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16073 - $k[$j++] = 0; //#16073 - } //#16073 - var _F = $a(); //#16073 - $k[$j++] = 'ren'; //#16074 - $k[$j++] = bwipp_renlinear; //#16074 - $k[$j++] = 'sbs'; //#16074 - $k[$j++] = _6; //#16074 - $k[$j++] = 'bhs'; //#16074 - $k[$j++] = _B; //#16074 - $k[$j++] = 'bbs'; //#16074 - $k[$j++] = _F; //#16074 - $k[$j++] = 'opt'; //#16074 - $k[$j++] = $_.options; //#16074 - var _H = $d(); //#16074 - $k[$j++] = _H; //#16077 - if (!$_.dontdraw) { //#16077 - bwipp_renlinear(); //#16077 - } //#16077 - $_ = Object.getPrototypeOf($_); //#16079 -} - + $_ = Object.create($_); //#16261 + $_.dontdraw = false; //#16264 + $_.height = 1; //#16265 + $k[$j++] = $_; //#16267 + bwipp_processoptions(); //#16267 + $_.options = $k[--$j]; //#16267 + $_.barcode = $k[--$j]; //#16268 + $forall($_.barcode, function() { //#16275 + var _3 = $k[--$j]; //#16272 + if ((_3 < 49) || (_3 > 57)) { //#16274 + $k[$j++] = 'bwipp.rawBadCharacter#16273'; //#16273 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#16273 + bwipp_raiseerror(); //#16273 + } //#16273 + }); //#16273 + $k[$j++] = Infinity; //#16278 + $k[$j++] = Infinity; //#16280 + $forall($_.barcode, function() { //#16280 + var _5 = $k[--$j]; //#16280 + $k[$j++] = $f(_5 - 48); //#16280 + }); //#16280 + var _6 = $a(); //#16280 + $k[$j++] = Infinity; //#16281 + for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16281 + $k[$j++] = $_.height; //#16281 + } //#16281 + var _B = $a(); //#16281 + $k[$j++] = Infinity; //#16282 + for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16282 + $k[$j++] = 0; //#16282 + } //#16282 + var _F = $a(); //#16282 + $k[$j++] = 'ren'; //#16283 + $k[$j++] = bwipp_renlinear; //#16283 + $k[$j++] = 'sbs'; //#16283 + $k[$j++] = _6; //#16283 + $k[$j++] = 'bhs'; //#16283 + $k[$j++] = _B; //#16283 + $k[$j++] = 'bbs'; //#16283 + $k[$j++] = _F; //#16283 + $k[$j++] = 'opt'; //#16283 + $k[$j++] = $_.options; //#16283 + var _H = $d(); //#16283 + $k[$j++] = _H; //#16286 + if (!$_.dontdraw) { //#16286 + bwipp_renlinear(); //#16286 + } //#16286 + $_ = Object.getPrototypeOf($_); //#16288 +} //bwipp_raw function bwipp_daft() { - $_ = Object.create($_); //#16107 - $_.dontdraw = false; //#16110 - $_.height = 0.175; //#16111 - $k[$j++] = $_; //#16113 - bwipp_processoptions(); //#16113 - $_.options = $k[--$j]; //#16113 - $_.barcode = $k[--$j]; //#16114 - $forall($_.barcode, function() { //#16120 - var _3 = $k[--$j]; //#16117 - if ((_3 != 68) && ((_3 != 65) && ((_3 != 70) && (_3 != 84)))) { //#16119 - $k[$j++] = 'bwipp.daftBadCharacter#16118'; //#16118 - $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16118 - bwipp_raiseerror(); //#16118 - } //#16118 - }); //#16118 - $_.barlen = $_.barcode.length; //#16122 - $_.bbs = $a($_.barlen); //#16124 - $_.bhs = $a($_.barlen); //#16125 - for (var _B = 0, _A = $_.barlen - 1; _B <= _A; _B += 1) { //#16145 - $_.i = _B; //#16127 - $_.enc = $geti($_.barcode, $_.i, 1); //#16128 - if ($eq($_.enc, "D")) { //#16132 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16130 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16131 - } //#16131 - if ($eq($_.enc, "A")) { //#16136 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16134 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16135 - } //#16135 - if ($eq($_.enc, "F")) { //#16140 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16138 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16139 - } //#16139 - if ($eq($_.enc, "T")) { //#16144 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16142 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16143 - } //#16143 - } //#16143 - $k[$j++] = Infinity; //#16153 - var _h = $_.bbs; //#16150 - var _i = $_.bhs; //#16151 - $k[$j++] = Infinity; //#16152 - for (var _k = 0, _l = $_.bhs.length - 1; _k < _l; _k++) { //#16152 - $k[$j++] = 1.44; //#16152 - $k[$j++] = 1.872; //#16152 - } //#16152 - $k[$j++] = 1.44; //#16152 - var _m = $a(); //#16152 - $k[$j++] = 'ren'; //#16153 - $k[$j++] = bwipp_renlinear; //#16153 - $k[$j++] = 'bbs'; //#16153 - $k[$j++] = _h; //#16153 - $k[$j++] = 'bhs'; //#16153 - $k[$j++] = _i; //#16153 - $k[$j++] = 'sbs'; //#16153 - $k[$j++] = _m; //#16153 - $k[$j++] = 'opt'; //#16153 - $k[$j++] = $_.options; //#16153 - var _o = $d(); //#16153 - $k[$j++] = _o; //#16156 - if (!$_.dontdraw) { //#16156 - bwipp_renlinear(); //#16156 - } //#16156 - $_ = Object.getPrototypeOf($_); //#16158 -} - + $_ = Object.create($_); //#16316 + $_.dontdraw = false; //#16319 + $_.height = 0.175; //#16320 + $k[$j++] = $_; //#16322 + bwipp_processoptions(); //#16322 + $_.options = $k[--$j]; //#16322 + $_.barcode = $k[--$j]; //#16323 + if ($eq($_.barcode, "")) { //#16327 + $k[$j++] = 'bwipp.daftEmptyData#16326'; //#16326 + $k[$j++] = "The data must not be empty"; //#16326 + bwipp_raiseerror(); //#16326 + } //#16326 + $forall($_.barcode, function() { //#16333 + var _4 = $k[--$j]; //#16330 + if ((_4 != 68) && ((_4 != 65) && ((_4 != 70) && (_4 != 84)))) { //#16332 + $k[$j++] = 'bwipp.daftBadCharacter#16331'; //#16331 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16331 + bwipp_raiseerror(); //#16331 + } //#16331 + }); //#16331 + $_.barlen = $_.barcode.length; //#16335 + $_.bbs = $a($_.barlen); //#16337 + $_.bhs = $a($_.barlen); //#16338 + for (var _C = 0, _B = $_.barlen - 1; _C <= _B; _C += 1) { //#16358 + $_.i = _C; //#16340 + $_.enc = $geti($_.barcode, $_.i, 1); //#16341 + if ($eq($_.enc, "D")) { //#16345 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16343 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16344 + } //#16344 + if ($eq($_.enc, "A")) { //#16349 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16347 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16348 + } //#16348 + if ($eq($_.enc, "F")) { //#16353 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16351 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16352 + } //#16352 + if ($eq($_.enc, "T")) { //#16357 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16355 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16356 + } //#16356 + } //#16356 + $k[$j++] = Infinity; //#16361 + var _i = $_.bbs; //#16363 + var _j = $_.bhs; //#16364 + $k[$j++] = Infinity; //#16365 + for (var _l = 0, _m = $_.bhs.length - 1; _l < _m; _l++) { //#16365 + $k[$j++] = 1.44; //#16365 + $k[$j++] = 1.872; //#16365 + } //#16365 + $k[$j++] = 1.44; //#16365 + var _n = $a(); //#16365 + $k[$j++] = 'ren'; //#16366 + $k[$j++] = bwipp_renlinear; //#16366 + $k[$j++] = 'bbs'; //#16366 + $k[$j++] = _i; //#16366 + $k[$j++] = 'bhs'; //#16366 + $k[$j++] = _j; //#16366 + $k[$j++] = 'sbs'; //#16366 + $k[$j++] = _n; //#16366 + $k[$j++] = 'opt'; //#16366 + $k[$j++] = $_.options; //#16366 + var _p = $d(); //#16366 + $k[$j++] = _p; //#16369 + if (!$_.dontdraw) { //#16369 + bwipp_renlinear(); //#16369 + } //#16369 + $_ = Object.getPrototypeOf($_); //#16371 +} //bwipp_daft function bwipp_symbol() { - $_ = Object.create($_); //#16186 - $_.dontdraw = false; //#16189 - $k[$j++] = $_; //#16191 - bwipp_processoptions(); //#16191 - $_.options = $k[--$j]; //#16191 - $_.barcode = $k[--$j]; //#16192 + $_ = Object.create($_); //#16399 + $_.dontdraw = false; //#16402 + $k[$j++] = $_; //#16404 + bwipp_processoptions(); //#16404 + $_.options = $k[--$j]; //#16404 + $_.barcode = $k[--$j]; //#16405 var _H = new Map([ ["fima", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16196 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16197 - $_.bbs = $a([0, 0, 0, 0, 0]); //#16198 + $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16409 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16410 + $_.bbs = $a([0, 0, 0, 0, 0]); //#16411 }], ["fimb", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16201 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16202 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16203 + $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16414 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16415 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16416 }], ["fimc", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16206 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16207 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16208 + $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16419 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16420 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16421 }], ["fimd", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16211 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16212 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16213 + $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16424 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16425 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16426 }], ["fime", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16216 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16217 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16218 + $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16429 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16430 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16431 }] - ]); //#16218 - $_.symbols = _H; //#16220 - var _K = $get($_.symbols, $_.barcode) !== undefined; //#16223 - if (!_K) { //#16225 - $k[$j++] = 'bwipp.symbolUnknownSymbol#16224'; //#16224 - $k[$j++] = "Unknown symbol name provided"; //#16224 - bwipp_raiseerror(); //#16224 - } //#16224 + ]); //#16431 + $_.symbols = _H; //#16433 + var _K = $get($_.symbols, $_.barcode) !== undefined; //#16436 + if (!_K) { //#16438 + $k[$j++] = 'bwipp.symbolUnknownSymbol#16437'; //#16437 + $k[$j++] = "Unknown symbol name provided"; //#16437 + bwipp_raiseerror(); //#16437 + } //#16437 if ($get($_.symbols, $_.barcode)() === true) { return true; - } //#16227 + } //#16440 var _S = new Map([ ["ren", bwipp_renlinear], ["sbs", $_.sbs], ["bhs", $_.bhs], ["bbs", $_.bbs], ["opt", $_.options] - ]); //#16235 - $k[$j++] = _S; //#16238 - if (!$_.dontdraw) { //#16238 - bwipp_renlinear(); //#16238 - } //#16238 - $_ = Object.getPrototypeOf($_); //#16240 -} - + ]); //#16448 + $k[$j++] = _S; //#16451 + if (!$_.dontdraw) { //#16451 + bwipp_renlinear(); //#16451 + } //#16451 + $_ = Object.getPrototypeOf($_); //#16453 +} //bwipp_symbol function bwipp_pdf417() { - $_ = Object.create($_); //#16271 - $_.dontdraw = false; //#16274 - $_.compact = false; //#16275 - $_.eclevel = -1; //#16276 - $_.columns = 0; //#16277 - $_.rows = 0; //#16278 - $_.rowmult = 3; //#16279 - $_.ccc = false; //#16280 - $_.raw = false; //#16281 - $_.parse = false; //#16282 - $_.parsefnc = false; //#16283 - $k[$j++] = $_; //#16285 - bwipp_processoptions(); //#16285 - $_.options = $k[--$j]; //#16285 - $_.barcode = $k[--$j]; //#16286 - if ($eq($_.barcode, "")) { //#16290 - $k[$j++] = 'bwipp.pdf417emptyData#16289'; //#16289 - $k[$j++] = "The data must not be empty"; //#16289 - bwipp_raiseerror(); //#16289 - } //#16289 - if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16294 - $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16293'; //#16293 - $k[$j++] = "Valid error correction levels are 0 to 8"; //#16293 - bwipp_raiseerror(); //#16293 - } //#16293 - if ($_.ccc && $_.raw) { //#16298 - $k[$j++] = 'bwipp.pdf417cccAndRaw#16297'; //#16297 - $k[$j++] = "Cannot combine ccc and raw"; //#16297 - bwipp_raiseerror(); //#16297 - } //#16297 - if ($_.ccc && $_.compact) { //#16302 - $k[$j++] = 'bwipp.pdf417cccAndCompact#16301'; //#16301 - $k[$j++] = "Cannot combine ccc and compact"; //#16301 - bwipp_raiseerror(); //#16301 - } //#16301 - if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16306 - $k[$j++] = 'bwipp.pdf417invalidRows#16305'; //#16305 - $k[$j++] = "There must be between 3 and 90 rows"; //#16305 - bwipp_raiseerror(); //#16305 - } //#16305 - if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16310 - $k[$j++] = 'bwipp.pdf417invalidColumns#16309'; //#16309 - $k[$j++] = "There must be between 1 and 30 columns"; //#16309 - bwipp_raiseerror(); //#16309 - } //#16309 - if ($_.rowmult <= 0) { //#16314 - $k[$j++] = 'bwipp.pdf417badRowMult#16313'; //#16313 - $k[$j++] = "The row multiplier must be greater than zero"; //#16313 - bwipp_raiseerror(); //#16313 - } //#16313 - bwipp_loadctx(bwipp_pdf417) //#16316 - if (!bwipp_pdf417.__16407__) { //#16407 - $_ = Object.create($_); //#16407 - $_.T = 0; //#16320 - $_.N = 1; //#16320 - $_.B = 2; //#16320 - $_.A = 0; //#16321 - $_.L = 1; //#16321 - $_.M = 2; //#16321 - $_.P = 3; //#16321 - $_.tl = -1; //#16324 - $_.nl = -2; //#16324 - $_.bl = -3; //#16324 - $_.bl6 = -4; //#16324 - $_.bs = -5; //#16324 - $_.al = -6; //#16327 - $_.ll = -7; //#16327 - $_.ml = -8; //#16327 - $_.pl = -9; //#16327 - $_.as = -10; //#16327 - $_.ps = -11; //#16327 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16362 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16365 - $_.alltext = new Map; //#16366 - for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16376 - $_.i = _10; //#16368 - $_.encs = $get($_.charmaps, $_.i); //#16369 - for (var _14 = 0; _14 <= 3; _14 += 1) { //#16375 - $_.j = _14; //#16371 - var _17 = $get($_.encs, $_.j); //#16372 - $k[$j++] = _17; //#16372 - if ($eq($type(_17), 'stringtype')) { //#16372 - var _1A = $get($k[--$j], 0); //#16372 - $k[$j++] = _1A; //#16372 - } //#16372 - var _1B = $k[--$j]; //#16373 - $put($get($_.charvals, $_.j), _1B, $_.i); //#16373 - $put($_.alltext, _1B, -1); //#16374 - } //#16374 - } //#16374 - $_.e = 10000; //#16378 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16386 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16394 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16402 - $k[$j++] = Infinity; //#16405 - $k[$j++] = $_.tl; //#16405 - $k[$j++] = 900; //#16405 - $k[$j++] = $_.bl; //#16405 - $k[$j++] = 901; //#16405 - $k[$j++] = $_.bl6; //#16405 - $k[$j++] = 924; //#16405 - $k[$j++] = $_.nl; //#16405 - $k[$j++] = 902; //#16405 - $k[$j++] = $_.bs; //#16405 - $k[$j++] = 913; //#16405 - $_.latchcws = $d(); //#16406 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16406 - bwipp_pdf417.__16407__ = 1; //#16406 - $_ = Object.getPrototypeOf($_); //#16406 - } //#16406 - if ($_.raw) { //#16428 - $_.datcws = $a($_.barcode.length); //#16411 - $_.i = 0; //#16412 - $_.j = 0; //#16412 - for (;;) { //#16423 - if ($_.i >= ($_.barcode.length - 3)) { //#16414 - break; //#16414 - } //#16414 - if ($get($_.barcode, $_.i) != 94) { //#16415 - break; //#16415 - } //#16415 - var _2W = $geti($_.barcode, $_.i + 1, 3); //#16416 - $k[$j++] = _2W; //#16418 - $k[$j++] = false; //#16418 - for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16418 - var _2Z = $get(_2W, _2X); //#16418 - if ((_2Z < 48) || (_2Z > 57)) { //#16417 - $j--; //#16417 - $k[$j++] = true; //#16417 - } //#16417 - } //#16417 - if ($k[--$j]) { //#16418 - $j--; //#16418 - break; //#16418 - } //#16418 - $_.cw = $cvi($k[--$j]); //#16419 - $put($_.datcws, $_.j, $_.cw); //#16420 - $_.i = $_.i + 4; //#16421 - $_.j = $_.j + 1; //#16422 - } //#16422 - if ($_.i != $_.barcode.length) { //#16426 - $k[$j++] = 'bwipp.pdf417badRawFormat#16425'; //#16425 - $k[$j++] = "raw data must be formatted as ^NNN"; //#16425 - bwipp_raiseerror(); //#16425 - } //#16425 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16427 - } //#16427 + $_ = Object.create($_); //#16484 + $_.dontdraw = false; //#16487 + $_.compact = false; //#16488 + $_.eclevel = -1; //#16489 + $_.columns = 0; //#16490 + $_.rows = 0; //#16491 + $_.rowmult = 3; //#16492 + $_.ccc = false; //#16493 + $_.raw = false; //#16494 + $_.parse = false; //#16495 + $_.parsefnc = false; //#16496 + $k[$j++] = $_; //#16498 + bwipp_processoptions(); //#16498 + $_.options = $k[--$j]; //#16498 + $_.barcode = $k[--$j]; //#16499 + if ($eq($_.barcode, "")) { //#16503 + $k[$j++] = 'bwipp.pdf417emptyData#16502'; //#16502 + $k[$j++] = "The data must not be empty"; //#16502 + bwipp_raiseerror(); //#16502 + } //#16502 + if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16507 + $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16506'; //#16506 + $k[$j++] = "Valid error correction levels are 0 to 8"; //#16506 + bwipp_raiseerror(); //#16506 + } //#16506 + if ($_.ccc && $_.raw) { //#16511 + $k[$j++] = 'bwipp.pdf417cccAndRaw#16510'; //#16510 + $k[$j++] = "Cannot combine ccc and raw"; //#16510 + bwipp_raiseerror(); //#16510 + } //#16510 + if ($_.ccc && $_.compact) { //#16515 + $k[$j++] = 'bwipp.pdf417cccAndCompact#16514'; //#16514 + $k[$j++] = "Cannot combine ccc and compact"; //#16514 + bwipp_raiseerror(); //#16514 + } //#16514 + if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16519 + $k[$j++] = 'bwipp.pdf417invalidRows#16518'; //#16518 + $k[$j++] = "There must be between 3 and 90 rows"; //#16518 + bwipp_raiseerror(); //#16518 + } //#16518 + if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16523 + $k[$j++] = 'bwipp.pdf417invalidColumns#16522'; //#16522 + $k[$j++] = "There must be between 1 and 30 columns"; //#16522 + bwipp_raiseerror(); //#16522 + } //#16522 + if ($_.rowmult <= 0) { //#16527 + $k[$j++] = 'bwipp.pdf417badRowMult#16526'; //#16526 + $k[$j++] = "The row multiplier must be greater than zero"; //#16526 + bwipp_raiseerror(); //#16526 + } //#16526 + bwipp_loadctx(bwipp_pdf417) //#16529 + if (!bwipp_pdf417.__16620__) { //#16620 + $_ = Object.create($_); //#16620 + $_.T = 0; //#16533 + $_.N = 1; //#16533 + $_.B = 2; //#16533 + $_.A = 0; //#16534 + $_.L = 1; //#16534 + $_.M = 2; //#16534 + $_.P = 3; //#16534 + $_.tl = -1; //#16537 + $_.nl = -2; //#16537 + $_.bl = -3; //#16537 + $_.bl6 = -4; //#16537 + $_.bs = -5; //#16537 + $_.al = -6; //#16540 + $_.ll = -7; //#16540 + $_.ml = -8; //#16540 + $_.pl = -9; //#16540 + $_.as = -10; //#16540 + $_.ps = -11; //#16540 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16575 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16578 + $_.alltext = new Map; //#16579 + for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16589 + $_.i = _10; //#16581 + $_.encs = $get($_.charmaps, $_.i); //#16582 + for (var _14 = 0; _14 <= 3; _14 += 1) { //#16588 + $_.j = _14; //#16584 + var _17 = $get($_.encs, $_.j); //#16585 + $k[$j++] = _17; //#16585 + if ($eq($type(_17), 'stringtype')) { //#16585 + var _1A = $get($k[--$j], 0); //#16585 + $k[$j++] = _1A; //#16585 + } //#16585 + var _1B = $k[--$j]; //#16586 + $put($get($_.charvals, $_.j), _1B, $_.i); //#16586 + $put($_.alltext, _1B, -1); //#16587 + } //#16587 + } //#16587 + $_.e = 10000; //#16591 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16599 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16607 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16615 + $k[$j++] = Infinity; //#16617 + $k[$j++] = $_.tl; //#16618 + $k[$j++] = 900; //#16618 + $k[$j++] = $_.bl; //#16618 + $k[$j++] = 901; //#16618 + $k[$j++] = $_.bl6; //#16618 + $k[$j++] = 924; //#16618 + $k[$j++] = $_.nl; //#16618 + $k[$j++] = 902; //#16618 + $k[$j++] = $_.bs; //#16618 + $k[$j++] = 913; //#16618 + $_.latchcws = $d(); //#16619 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16619 + bwipp_pdf417.__16620__ = 1; //#16619 + $_ = Object.getPrototypeOf($_); //#16619 + } //#16619 + if ($_.raw) { //#16641 + $_.datcws = $a($_.barcode.length); //#16624 + $_.i = 0; //#16625 + $_.j = 0; //#16625 + for (;;) { //#16636 + if ($_.i >= ($_.barcode.length - 3)) { //#16627 + break; //#16627 + } //#16627 + if ($get($_.barcode, $_.i) != 94) { //#16628 + break; //#16628 + } //#16628 + var _2W = $geti($_.barcode, $_.i + 1, 3); //#16629 + $k[$j++] = _2W; //#16631 + $k[$j++] = false; //#16631 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16631 + var _2Z = $get(_2W, _2X); //#16631 + if ((_2Z < 48) || (_2Z > 57)) { //#16630 + $j--; //#16630 + $k[$j++] = true; //#16630 + } //#16630 + } //#16630 + if ($k[--$j]) { //#16631 + $j--; //#16631 + break; //#16631 + } //#16631 + $_.cw = $cvi($k[--$j]); //#16632 + $put($_.datcws, $_.j, $_.cw); //#16633 + $_.i = $_.i + 4; //#16634 + $_.j = $_.j + 1; //#16635 + } //#16635 + if ($_.i != $_.barcode.length) { //#16639 + $k[$j++] = 'bwipp.pdf417badRawFormat#16638'; //#16638 + $k[$j++] = "raw data must be formatted as ^NNN"; //#16638 + bwipp_raiseerror(); //#16638 + } //#16638 + $_.datcws = $geti($_.datcws, 0, $_.j); //#16640 + } //#16640 $_.encb = function() { - $_.in = $k[--$j]; //#16431 - $_.inlen = $_.in.length; //#16432 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16433 - for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16456 - $_.k = _2t; //#16435 - $k[$j++] = Infinity; //#16436 - $aload($geti($_.in, $_.k * 6, 3)); //#16436 - $_.msbs = $a(); //#16436 - $k[$j++] = Infinity; //#16439 - $aload($_.msbs); //#16438 - var _2z = $k[--$j]; //#16438 - var _30 = $k[--$j]; //#16438 - var _31 = $k[--$j]; //#16438 - $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16439 - for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16439 - var _34 = $k[--$j]; //#16439 - $k[$j++] = _34 % 900; //#16439 - $k[$j++] = ~~(_34 / 900); //#16439 - } //#16439 - $_.mscs = $a(); //#16439 - $k[$j++] = Infinity; //#16441 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16441 - $_.lsbs = $a(); //#16441 - $k[$j++] = Infinity; //#16444 - $aload($_.lsbs); //#16443 - var _3B = $k[--$j]; //#16443 - var _3C = $k[--$j]; //#16443 - var _3D = $k[--$j]; //#16443 - $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16444 - for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16444 - var _3G = $k[--$j]; //#16444 - $k[$j++] = _3G % 900; //#16444 - $k[$j++] = ~~(_3G / 900); //#16444 - } //#16444 - $_.lscs = $a(); //#16444 - var _3J = $get($_.lscs, 0); //#16446 - var _3L = $get($_.mscs, 0); //#16446 - $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16447 - var _3P = $get($_.lscs, 1); //#16448 - var _3R = $get($_.mscs, 0); //#16448 - var _3T = $get($_.mscs, 1); //#16448 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16449 - var _3X = $get($_.lscs, 2); //#16450 - var _3Z = $get($_.mscs, 0); //#16450 - var _3b = $get($_.mscs, 1); //#16450 - var _3d = $get($_.mscs, 2); //#16450 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16451 - var _3h = $get($_.lscs, 3); //#16452 - var _3j = $get($_.mscs, 1); //#16452 - var _3l = $get($_.mscs, 2); //#16452 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16453 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16455 - } //#16455 - $_.rem = $_.inlen % 6; //#16457 - if ($_.rem != 0) { //#16462 - $k[$j++] = $_.out; //#16460 - $k[$j++] = $_.out.length - $_.rem; //#16460 - $k[$j++] = Infinity; //#16460 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16460 - var _42 = $a(); //#16460 - var _43 = $k[--$j]; //#16461 - $puti($k[--$j], _43, _42); //#16461 - } //#16461 - $k[$j++] = $_.out; //#16463 - }; //#16463 - if ($_.ccc) { //#16472 - $_.barlen = $_.barcode.length; //#16467 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16468 - $put($_.datcws, 0, 920); //#16469 - var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16470 - $put($_.datcws, 1, _4E); //#16470 - $k[$j++] = $_.datcws; //#16471 - $k[$j++] = 2; //#16471 - $k[$j++] = Infinity; //#16471 - $forall($_.barcode); //#16471 - var _4H = $a(); //#16471 - $k[$j++] = _4H; //#16471 - $_.encb(); //#16471 - var _4I = $k[--$j]; //#16471 - var _4J = $k[--$j]; //#16471 - $puti($k[--$j], _4J, _4I); //#16471 - } //#16471 - if ((!$_.raw) && (!$_.ccc)) { //#16823 + $_.in = $k[--$j]; //#16644 + $_.inlen = $_.in.length; //#16645 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16646 + for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16669 + $_.k = _2t; //#16648 + $k[$j++] = Infinity; //#16649 + $aload($geti($_.in, $_.k * 6, 3)); //#16649 + $_.msbs = $a(); //#16649 + $k[$j++] = Infinity; //#16650 + $aload($_.msbs); //#16651 + var _2z = $k[--$j]; //#16651 + var _30 = $k[--$j]; //#16651 + var _31 = $k[--$j]; //#16651 + $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16652 + for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16652 + var _34 = $k[--$j]; //#16652 + $k[$j++] = _34 % 900; //#16652 + $k[$j++] = ~~(_34 / 900); //#16652 + } //#16652 + $_.mscs = $a(); //#16652 + $k[$j++] = Infinity; //#16654 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16654 + $_.lsbs = $a(); //#16654 + $k[$j++] = Infinity; //#16655 + $aload($_.lsbs); //#16656 + var _3B = $k[--$j]; //#16656 + var _3C = $k[--$j]; //#16656 + var _3D = $k[--$j]; //#16656 + $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16657 + for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16657 + var _3G = $k[--$j]; //#16657 + $k[$j++] = _3G % 900; //#16657 + $k[$j++] = ~~(_3G / 900); //#16657 + } //#16657 + $_.lscs = $a(); //#16657 + var _3J = $get($_.lscs, 0); //#16659 + var _3L = $get($_.mscs, 0); //#16659 + $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16660 + var _3P = $get($_.lscs, 1); //#16661 + var _3R = $get($_.mscs, 0); //#16661 + var _3T = $get($_.mscs, 1); //#16661 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16662 + var _3X = $get($_.lscs, 2); //#16663 + var _3Z = $get($_.mscs, 0); //#16663 + var _3b = $get($_.mscs, 1); //#16663 + var _3d = $get($_.mscs, 2); //#16663 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16664 + var _3h = $get($_.lscs, 3); //#16665 + var _3j = $get($_.mscs, 1); //#16665 + var _3l = $get($_.mscs, 2); //#16665 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16666 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16668 + } //#16668 + $_.rem = $_.inlen % 6; //#16670 + if ($_.rem != 0) { //#16675 + $k[$j++] = $_.out; //#16673 + $k[$j++] = $_.out.length - $_.rem; //#16673 + $k[$j++] = Infinity; //#16673 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16673 + var _42 = $a(); //#16673 + var _43 = $k[--$j]; //#16674 + $puti($k[--$j], _43, _42); //#16674 + } //#16674 + $k[$j++] = $_.out; //#16676 + }; //#16676 + if ($_.ccc) { //#16685 + $_.barlen = $_.barcode.length; //#16680 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16681 + $put($_.datcws, 0, 920); //#16682 + var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16683 + $put($_.datcws, 1, _4E); //#16683 + $k[$j++] = $_.datcws; //#16684 + $k[$j++] = 2; //#16684 + $k[$j++] = Infinity; //#16684 + $forall($_.barcode); //#16684 + var _4H = $a(); //#16684 + $k[$j++] = _4H; //#16684 + $_.encb(); //#16684 + var _4I = $k[--$j]; //#16684 + var _4J = $k[--$j]; //#16684 + $puti($k[--$j], _4J, _4I); //#16684 + } //#16684 + if ((!$_.raw) && (!$_.ccc)) { //#17036 var _4P = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#16480 - $_.fncvals = _4P; //#16482 - $k[$j++] = 'msg'; //#16483 - $k[$j++] = $_.barcode; //#16483 - $k[$j++] = $_.fncvals; //#16483 - bwipp_parseinput(); //#16483 - var _4S = $k[--$j]; //#16483 - $_[$k[--$j]] = _4S; //#16483 - $_.msglen = $_.msg.length; //#16484 - $k[$j++] = Infinity; //#16487 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16487 - $k[$j++] = 0; //#16487 - } //#16487 - $k[$j++] = 0; //#16487 - $_.numdigits = $a(); //#16487 - $k[$j++] = Infinity; //#16488 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16488 - $k[$j++] = 0; //#16488 - } //#16488 - $k[$j++] = 0; //#16488 - $_.numtext = $a(); //#16488 - $k[$j++] = Infinity; //#16489 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16489 - $k[$j++] = 0; //#16489 - } //#16489 - $k[$j++] = 0; //#16489 - $_.numbytes = $a(); //#16489 - $k[$j++] = Infinity; //#16490 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16490 - $k[$j++] = 0; //#16490 - } //#16490 - $k[$j++] = 0; //#16490 - $_.iseci = $a(); //#16490 - for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16503 - $_.i = _4m; //#16492 - var _4p = $get($_.msg, $_.i); //#16493 - if ((_4p >= 48) && (_4p <= 57)) { //#16495 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16494 - } //#16494 - var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16496 - if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16498 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16497 - } //#16497 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16501 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16500 - } //#16500 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16502 - } //#16502 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16504 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16505 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16506 - $_.seq = $a([]); //#16508 - $_.seqlen = 0; //#16508 - $_.state = $_.T; //#16508 - $_.p = 0; //#16508 - for (;;) { //#16562 - if ($_.p == $_.msglen) { //#16509 - break; //#16509 - } //#16509 - if ($get($_.iseci, $_.p)) { //#16560 - $_.eci = $get($_.msg, $_.p); //#16511 - $k[$j++] = Infinity; //#16514 - $aload($_.seq); //#16513 - $k[$j++] = $a([$_.eci]); //#16514 - $_.seq = $a(); //#16514 - $_.p = $_.p + 1; //#16516 - $k[$j++] = 'seqlen'; //#16517 - $k[$j++] = $_.seqlen; //#16517 - if ($_.eci <= -1810900) { //#16517 - $k[$j++] = 2; //#16517 - } else { //#16517 - var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16517 - $k[$j++] = _5s; //#16517 - } //#16517 - var _5t = $k[--$j]; //#16517 - var _5u = $k[--$j]; //#16517 - $_[$k[--$j]] = $f(_5u + _5t); //#16517 - } else { //#16560 - $_.n = $get($_.numdigits, $_.p); //#16519 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16560 - $k[$j++] = Infinity; //#16524 - $aload($_.seq); //#16522 - $k[$j++] = $_.nl; //#16524 - $k[$j++] = Infinity; //#16524 - $aload($geti($_.msg, $_.p, $_.n)); //#16524 - var _69 = $a(); //#16524 - $k[$j++] = _69; //#16524 - $_.seq = $a(); //#16524 - $_.state = $_.N; //#16526 - $_.p = $f($_.p + $_.n); //#16527 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16528 - } else { //#16560 - $_.t = $get($_.numtext, $_.p); //#16530 - if ($_.t >= 5) { //#16560 - $k[$j++] = Infinity; //#16537 - $aload($_.seq); //#16533 - if ($_.state != $_.T) { //#16536 - $k[$j++] = $_.tl; //#16535 - } //#16535 - $k[$j++] = Infinity; //#16537 - $aload($geti($_.msg, $_.p, $_.t)); //#16537 - var _6S = $a(); //#16537 - $k[$j++] = _6S; //#16537 - $_.seq = $a(); //#16537 - $_.state = $_.T; //#16539 - $_.p = $f($_.p + $_.t); //#16540 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16541 - } else { //#16560 - $_.b = $get($_.numbytes, $_.p); //#16543 - if (($_.b == 1) && ($_.state == $_.T)) { //#16560 - $k[$j++] = Infinity; //#16548 - $aload($_.seq); //#16546 - $k[$j++] = $_.bs; //#16548 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#16548 - $_.seq = $a(); //#16548 - $_.p = $f($_.p + $_.b); //#16550 - $_.seqlen = $f($_.seqlen + 2); //#16551 - } else { //#16560 - $k[$j++] = Infinity; //#16556 - $aload($_.seq); //#16554 - var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16555 - $k[$j++] = _6r; //#16556 - $k[$j++] = Infinity; //#16556 - $aload($geti($_.msg, $_.p, $_.b)); //#16556 - var _6w = $a(); //#16556 - $k[$j++] = _6w; //#16556 - $_.seq = $a(); //#16556 - $_.state = $_.B; //#16558 - $_.p = $f($_.p + $_.b); //#16559 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 + ]); //#16693 + $_.fncvals = _4P; //#16695 + $k[$j++] = 'msg'; //#16696 + $k[$j++] = $_.barcode; //#16696 + $k[$j++] = $_.fncvals; //#16696 + bwipp_parseinput(); //#16696 + var _4S = $k[--$j]; //#16696 + $_[$k[--$j]] = _4S; //#16696 + $_.msglen = $_.msg.length; //#16697 + $k[$j++] = Infinity; //#16700 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16700 + $k[$j++] = 0; //#16700 + } //#16700 + $k[$j++] = 0; //#16700 + $_.numdigits = $a(); //#16700 + $k[$j++] = Infinity; //#16701 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16701 + $k[$j++] = 0; //#16701 + } //#16701 + $k[$j++] = 0; //#16701 + $_.numtext = $a(); //#16701 + $k[$j++] = Infinity; //#16702 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16702 + $k[$j++] = 0; //#16702 + } //#16702 + $k[$j++] = 0; //#16702 + $_.numbytes = $a(); //#16702 + $k[$j++] = Infinity; //#16703 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16703 + $k[$j++] = 0; //#16703 + } //#16703 + $k[$j++] = 0; //#16703 + $_.iseci = $a(); //#16703 + for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16716 + $_.i = _4m; //#16705 + var _4p = $get($_.msg, $_.i); //#16706 + if ((_4p >= 48) && (_4p <= 57)) { //#16708 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16707 + } //#16707 + var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16709 + if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16711 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16710 + } //#16710 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16714 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16713 + } //#16713 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16715 + } //#16715 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16717 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16718 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16719 + $_.seq = $a([]); //#16721 + $_.seqlen = 0; //#16721 + $_.state = $_.T; //#16721 + $_.p = 0; //#16721 + for (;;) { //#16775 + if ($_.p == $_.msglen) { //#16722 + break; //#16722 + } //#16722 + if ($get($_.iseci, $_.p)) { //#16773 + $_.eci = $get($_.msg, $_.p); //#16724 + $k[$j++] = Infinity; //#16725 + $aload($_.seq); //#16726 + $k[$j++] = $a([$_.eci]); //#16727 + $_.seq = $a(); //#16727 + $_.p = $_.p + 1; //#16729 + $k[$j++] = 'seqlen'; //#16730 + $k[$j++] = $_.seqlen; //#16730 + if ($_.eci <= -1810900) { //#16730 + $k[$j++] = 2; //#16730 + } else { //#16730 + var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16730 + $k[$j++] = _5s; //#16730 + } //#16730 + var _5t = $k[--$j]; //#16730 + var _5u = $k[--$j]; //#16730 + $_[$k[--$j]] = $f(_5u + _5t); //#16730 + } else { //#16773 + $_.n = $get($_.numdigits, $_.p); //#16732 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16773 + $k[$j++] = Infinity; //#16734 + $aload($_.seq); //#16735 + $k[$j++] = $_.nl; //#16737 + $k[$j++] = Infinity; //#16737 + $aload($geti($_.msg, $_.p, $_.n)); //#16737 + var _69 = $a(); //#16737 + $k[$j++] = _69; //#16737 + $_.seq = $a(); //#16737 + $_.state = $_.N; //#16739 + $_.p = $f($_.p + $_.n); //#16740 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16741 + } else { //#16773 + $_.t = $get($_.numtext, $_.p); //#16743 + if ($_.t >= 5) { //#16773 + $k[$j++] = Infinity; //#16745 + $aload($_.seq); //#16746 + if ($_.state != $_.T) { //#16749 + $k[$j++] = $_.tl; //#16748 + } //#16748 + $k[$j++] = Infinity; //#16750 + $aload($geti($_.msg, $_.p, $_.t)); //#16750 + var _6S = $a(); //#16750 + $k[$j++] = _6S; //#16750 + $_.seq = $a(); //#16750 + $_.state = $_.T; //#16752 + $_.p = $f($_.p + $_.t); //#16753 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16754 + } else { //#16773 + $_.b = $get($_.numbytes, $_.p); //#16756 + if (($_.b == 1) && ($_.state == $_.T)) { //#16773 + $k[$j++] = Infinity; //#16758 + $aload($_.seq); //#16759 + $k[$j++] = $_.bs; //#16761 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#16761 + $_.seq = $a(); //#16761 + $_.p = $f($_.p + $_.b); //#16763 + $_.seqlen = $f($_.seqlen + 2); //#16764 + } else { //#16773 + $k[$j++] = Infinity; //#16766 + $aload($_.seq); //#16767 + var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16768 + $k[$j++] = _6r; //#16769 + $k[$j++] = Infinity; //#16769 + $aload($geti($_.msg, $_.p, $_.b)); //#16769 + var _6w = $a(); //#16769 + $k[$j++] = _6w; //#16769 + $_.seq = $a(); //#16769 + $_.state = $_.B; //#16771 + $_.p = $f($_.p + $_.b); //#16772 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 $_.enca = function() { - var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16565 - $k[$j++] = _77; //#16565 - }; //#16565 + var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16778 + $k[$j++] = _77; //#16778 + }; //#16778 $_.encl = function() { - var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16566 - $k[$j++] = _7C; //#16566 - }; //#16566 + var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16779 + $k[$j++] = _7C; //#16779 + }; //#16779 $_.encm = function() { - var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16567 - $k[$j++] = _7H; //#16567 - }; //#16567 + var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16780 + $k[$j++] = _7H; //#16780 + }; //#16780 $_.encp = function() { - var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16568 - $k[$j++] = _7M; //#16568 - }; //#16568 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16569 + var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16781 + $k[$j++] = _7M; //#16781 + }; //#16781 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16782 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#16572 - $_.l = $_.l + 1; //#16573 - }; //#16573 + $put($_.text, $_.l, $k[--$j]); //#16785 + $_.l = $_.l + 1; //#16786 + }; //#16786 $_.enct = function() { - $_.in = $k[--$j]; //#16577 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16579 - $put($_.curlen, $_.submode, 0); //#16580 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16581 - $forall($_.in, function() { //#16651 - $_.char = $k[--$j]; //#16586 - for (;;) { //#16607 - $_.imp = false; //#16590 - var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16591 - for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16605 - $_.x = $get(_7l, _7m); //#16592 - var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16593 - for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16604 - $_.y = $get(_7t, _7u); //#16594 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16595 - if ($_.cost < $get($_.curlen, $_.y)) { //#16603 - $put($_.curlen, $_.y, $_.cost); //#16597 - $k[$j++] = $_.curseq; //#16600 - $k[$j++] = $_.y; //#16600 - $k[$j++] = Infinity; //#16600 - $aload($get($_.curseq, $_.x)); //#16599 - $aload($get($get($_.latseq, $_.x), $_.y)); //#16600 - var _8M = $a(); //#16600 - var _8N = $k[--$j]; //#16601 - $put($k[--$j], _8N, _8M); //#16601 - $_.imp = true; //#16602 - } //#16602 - } //#16602 - } //#16602 - if (!$_.imp) { //#16606 - break; //#16606 - } //#16606 - } //#16606 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16610 - $_.nxtseq = $a(4); //#16611 - var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16613 - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16646 - $_.x = $get(_8a, _8b); //#16614 - for (;;) { //#16644 - var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16618 - if (!_8i) { //#16618 - break; //#16618 - } //#16618 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#16621 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#16625 - $put($_.nxtlen, $_.x, $_.cost); //#16623 - $k[$j++] = $_.nxtseq; //#16624 - $k[$j++] = $_.x; //#16624 - $k[$j++] = Infinity; //#16624 - $aload($get($_.curseq, $_.x)); //#16624 - $k[$j++] = $_.char; //#16624 - var _8z = $a(); //#16624 - var _90 = $k[--$j]; //#16624 - $put($k[--$j], _90, _8z); //#16624 - } //#16624 - var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16628 - for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16641 - $_.y = $get(_96, _97); //#16629 - if ($ne($_.x, $_.y)) { //#16640 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16631 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#16639 - $put($_.nxtlen, $_.y, $_.cost); //#16633 - $k[$j++] = $_.nxtseq; //#16637 - $k[$j++] = $_.y; //#16637 - $k[$j++] = Infinity; //#16637 - $aload($get($_.curseq, $_.y)); //#16635 - var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16636 - $k[$j++] = _9Y; //#16637 - $k[$j++] = $_.char; //#16637 - var _9a = $a(); //#16637 - var _9b = $k[--$j]; //#16638 - $put($k[--$j], _9b, _9a); //#16638 - } //#16638 - } //#16638 - } //#16638 - break; //#16643 - } //#16643 - } //#16643 - $_.curlen = $_.nxtlen; //#16648 - $_.curseq = $_.nxtseq; //#16649 - }); //#16649 - $_.minseq = $_.e; //#16654 - var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16655 - for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16661 - $_.k = $get(_9k, _9l); //#16656 - if ($get($_.curlen, $_.k) < $_.minseq) { //#16660 - $_.minseq = $get($_.curlen, $_.k); //#16658 - $_.txtseq = $get($_.curseq, $_.k); //#16659 - } //#16659 - } //#16659 - $_.text = $a($_.minseq); //#16664 - $_.k = 0; //#16665 - $_.l = 0; //#16665 - for (;;) { //#16685 - if ($_.k >= $_.txtseq.length) { //#16666 - break; //#16666 - } //#16666 - $_.char = $get($_.txtseq, $_.k); //#16668 - $k[$j++] = $_.char; //#16671 + $_.in = $k[--$j]; //#16790 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16792 + $put($_.curlen, $_.submode, 0); //#16793 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16794 + $forall($_.in, function() { //#16864 + $_.char = $k[--$j]; //#16799 + for (;;) { //#16820 + $_.imp = false; //#16803 + var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16804 + for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16818 + $_.x = $get(_7l, _7m); //#16805 + var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16806 + for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16817 + $_.y = $get(_7t, _7u); //#16807 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16808 + if ($_.cost < $get($_.curlen, $_.y)) { //#16816 + $put($_.curlen, $_.y, $_.cost); //#16810 + $k[$j++] = $_.curseq; //#16813 + $k[$j++] = $_.y; //#16813 + $k[$j++] = Infinity; //#16811 + $aload($get($_.curseq, $_.x)); //#16812 + $aload($get($get($_.latseq, $_.x), $_.y)); //#16813 + var _8M = $a(); //#16813 + var _8N = $k[--$j]; //#16814 + $put($k[--$j], _8N, _8M); //#16814 + $_.imp = true; //#16815 + } //#16815 + } //#16815 + } //#16815 + if (!$_.imp) { //#16819 + break; //#16819 + } //#16819 + } //#16819 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16823 + $_.nxtseq = $a(4); //#16824 + var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16826 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16859 + $_.x = $get(_8a, _8b); //#16827 + for (;;) { //#16857 + var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16831 + if (!_8i) { //#16831 + break; //#16831 + } //#16831 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#16834 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#16838 + $put($_.nxtlen, $_.x, $_.cost); //#16836 + $k[$j++] = $_.nxtseq; //#16837 + $k[$j++] = $_.x; //#16837 + $k[$j++] = Infinity; //#16837 + $aload($get($_.curseq, $_.x)); //#16837 + $k[$j++] = $_.char; //#16837 + var _8z = $a(); //#16837 + var _90 = $k[--$j]; //#16837 + $put($k[--$j], _90, _8z); //#16837 + } //#16837 + var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16841 + for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16854 + $_.y = $get(_96, _97); //#16842 + if ($ne($_.x, $_.y)) { //#16853 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16844 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#16852 + $put($_.nxtlen, $_.y, $_.cost); //#16846 + $k[$j++] = $_.nxtseq; //#16850 + $k[$j++] = $_.y; //#16850 + $k[$j++] = Infinity; //#16847 + $aload($get($_.curseq, $_.y)); //#16848 + var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16849 + $k[$j++] = _9Y; //#16850 + $k[$j++] = $_.char; //#16850 + var _9a = $a(); //#16850 + var _9b = $k[--$j]; //#16851 + $put($k[--$j], _9b, _9a); //#16851 + } //#16851 + } //#16851 + } //#16851 + break; //#16856 + } //#16856 + } //#16856 + $_.curlen = $_.nxtlen; //#16861 + $_.curseq = $_.nxtseq; //#16862 + }); //#16862 + $_.minseq = $_.e; //#16867 + var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16868 + for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16874 + $_.k = $get(_9k, _9l); //#16869 + if ($get($_.curlen, $_.k) < $_.minseq) { //#16873 + $_.minseq = $get($_.curlen, $_.k); //#16871 + $_.txtseq = $get($_.curseq, $_.k); //#16872 + } //#16872 + } //#16872 + $_.text = $a($_.minseq); //#16877 + $_.k = 0; //#16878 + $_.l = 0; //#16878 + for (;;) { //#16898 + if ($_.k >= $_.txtseq.length) { //#16879 + break; //#16879 + } //#16879 + $_.char = $get($_.txtseq, $_.k); //#16881 + $k[$j++] = $_.char; //#16884 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#16671 - $_.addtotext(); //#16671 - $_.k = $_.k + 1; //#16672 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16678 - $k[$j++] = $get($_.txtseq, $_.k); //#16676 - if ($_.char == $_.as) { //#16676 - $_.enca(); //#16676 - } else { //#16676 - $_.encp(); //#16676 - } //#16676 - $_.addtotext(); //#16676 - $_.k = $_.k + 1; //#16677 - } //#16677 - if ($_.char == $_.al) { //#16681 - $_.submode = $_.A; //#16681 - } //#16681 - if ($_.char == $_.ll) { //#16682 - $_.submode = $_.L; //#16682 - } //#16682 - if ($_.char == $_.ml) { //#16683 - $_.submode = $_.M; //#16683 - } //#16683 - if ($_.char == $_.pl) { //#16684 - $_.submode = $_.P; //#16684 - } //#16684 - } //#16684 - if (($_.text.length % 2) == 1) { //#16732 - if ($_.submode == $_.P) { //#16728 - $k[$j++] = 'pad'; //#16689 - $k[$j++] = $_.al; //#16689 - $_.encp(); //#16689 - var _Ab = $k[--$j]; //#16689 - $_[$k[--$j]] = _Ab; //#16689 - $_.submode = $_.A; //#16690 - } else { //#16728 - $_.nextecitext = false; //#16693 - for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16700 - $_.ti = _Ah; //#16696 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16697 - $_.nextecitext = false; //#16697 - break; //#16697 - } //#16697 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16698 - break; //#16698 - } //#16698 - $_.nextecitext = true; //#16699 - } //#16699 - if ($_.nextecitext) { //#16728 - if ($_.submode == $_.A) { //#16725 - var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16703 - if (_B0) { //#16708 - $k[$j++] = 'pad'; //#16704 - $k[$j++] = $_.ll; //#16704 - $_.enca(); //#16704 - var _B2 = $k[--$j]; //#16704 - $_[$k[--$j]] = _B2; //#16704 - $_.submode = $_.L; //#16705 - } else { //#16708 - $k[$j++] = 'pad'; //#16707 - $k[$j++] = $_.ml; //#16707 - $_.enca(); //#16707 - var _B6 = $k[--$j]; //#16707 - $_[$k[--$j]] = _B6; //#16707 - $_.submode = $_.M; //#16708 - } //#16708 - } else { //#16725 - if ($_.submode == $_.M) { //#16725 - var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16712 - if (_BI) { //#16721 - $k[$j++] = 'pad'; //#16713 - $k[$j++] = $_.ll; //#16713 - $_.encm(); //#16713 - var _BK = $k[--$j]; //#16713 - $_[$k[--$j]] = _BK; //#16713 - $_.submode = $_.L; //#16714 - } else { //#16721 - var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16716 - if (_BU) { //#16721 - $k[$j++] = 'pad'; //#16717 - $k[$j++] = $_.pl; //#16717 - $_.encm(); //#16717 - var _BW = $k[--$j]; //#16717 - $_[$k[--$j]] = _BW; //#16717 - $_.submode = $_.P; //#16718 - } else { //#16721 - $k[$j++] = 'pad'; //#16720 - $k[$j++] = $_.al; //#16720 - $_.encm(); //#16720 - var _Ba = $k[--$j]; //#16720 - $_[$k[--$j]] = _Ba; //#16720 - $_.submode = $_.A; //#16721 - } //#16721 - } //#16721 - } else { //#16725 - $k[$j++] = 'pad'; //#16724 - $k[$j++] = $_.ml; //#16724 - $_.encl(); //#16724 - var _Be = $k[--$j]; //#16724 - $_[$k[--$j]] = _Be; //#16724 - $_.submode = $_.M; //#16725 - } //#16725 - } //#16725 - } else { //#16728 - $k[$j++] = 'pad'; //#16728 - $k[$j++] = $_.ps; //#16728 + } //#16884 + $_.addtotext(); //#16884 + $_.k = $_.k + 1; //#16885 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16891 + $k[$j++] = $get($_.txtseq, $_.k); //#16889 + if ($_.char == $_.as) { //#16889 + $_.enca(); //#16889 + } else { //#16889 + $_.encp(); //#16889 + } //#16889 + $_.addtotext(); //#16889 + $_.k = $_.k + 1; //#16890 + } //#16890 + if ($_.char == $_.al) { //#16894 + $_.submode = $_.A; //#16894 + } //#16894 + if ($_.char == $_.ll) { //#16895 + $_.submode = $_.L; //#16895 + } //#16895 + if ($_.char == $_.ml) { //#16896 + $_.submode = $_.M; //#16896 + } //#16896 + if ($_.char == $_.pl) { //#16897 + $_.submode = $_.P; //#16897 + } //#16897 + } //#16897 + if (($_.text.length % 2) == 1) { //#16945 + if ($_.submode == $_.P) { //#16941 + $k[$j++] = 'pad'; //#16902 + $k[$j++] = $_.al; //#16902 + $_.encp(); //#16902 + var _Ab = $k[--$j]; //#16902 + $_[$k[--$j]] = _Ab; //#16902 + $_.submode = $_.A; //#16903 + } else { //#16941 + $_.nextecitext = false; //#16906 + for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16913 + $_.ti = _Ah; //#16909 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16910 + $_.nextecitext = false; //#16910 + break; //#16910 + } //#16910 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16911 + break; //#16911 + } //#16911 + $_.nextecitext = true; //#16912 + } //#16912 + if ($_.nextecitext) { //#16941 + if ($_.submode == $_.A) { //#16938 + var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16916 + if (_B0) { //#16921 + $k[$j++] = 'pad'; //#16917 + $k[$j++] = $_.ll; //#16917 + $_.enca(); //#16917 + var _B2 = $k[--$j]; //#16917 + $_[$k[--$j]] = _B2; //#16917 + $_.submode = $_.L; //#16918 + } else { //#16921 + $k[$j++] = 'pad'; //#16920 + $k[$j++] = $_.ml; //#16920 + $_.enca(); //#16920 + var _B6 = $k[--$j]; //#16920 + $_[$k[--$j]] = _B6; //#16920 + $_.submode = $_.M; //#16921 + } //#16921 + } else { //#16938 + if ($_.submode == $_.M) { //#16938 + var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16925 + if (_BI) { //#16934 + $k[$j++] = 'pad'; //#16926 + $k[$j++] = $_.ll; //#16926 + $_.encm(); //#16926 + var _BK = $k[--$j]; //#16926 + $_[$k[--$j]] = _BK; //#16926 + $_.submode = $_.L; //#16927 + } else { //#16934 + var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16929 + if (_BU) { //#16934 + $k[$j++] = 'pad'; //#16930 + $k[$j++] = $_.pl; //#16930 + $_.encm(); //#16930 + var _BW = $k[--$j]; //#16930 + $_[$k[--$j]] = _BW; //#16930 + $_.submode = $_.P; //#16931 + } else { //#16934 + $k[$j++] = 'pad'; //#16933 + $k[$j++] = $_.al; //#16933 + $_.encm(); //#16933 + var _Ba = $k[--$j]; //#16933 + $_[$k[--$j]] = _Ba; //#16933 + $_.submode = $_.A; //#16934 + } //#16934 + } //#16934 + } else { //#16938 + $k[$j++] = 'pad'; //#16937 + $k[$j++] = $_.ml; //#16937 + $_.encl(); //#16937 + var _Be = $k[--$j]; //#16937 + $_[$k[--$j]] = _Be; //#16937 + $_.submode = $_.M; //#16938 + } //#16938 + } //#16938 + } else { //#16941 + $k[$j++] = 'pad'; //#16941 + $k[$j++] = $_.ps; //#16941 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#16728 - var _Bm = $k[--$j]; //#16728 - $_[$k[--$j]] = _Bm; //#16728 - } //#16728 - } //#16728 - $k[$j++] = Infinity; //#16731 - $aload($_.text); //#16731 - $k[$j++] = $_.pad; //#16731 - $_.text = $a(); //#16731 - } //#16731 - $_.out = $a(~~($_.text.length / 2)); //#16734 - for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16738 - $_.k = _Bv; //#16736 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16737 - } //#16737 - $k[$j++] = $_.out; //#16740 - }; //#16740 + } //#16941 + var _Bm = $k[--$j]; //#16941 + $_[$k[--$j]] = _Bm; //#16941 + } //#16941 + } //#16941 + $k[$j++] = Infinity; //#16944 + $aload($_.text); //#16944 + $k[$j++] = $_.pad; //#16944 + $_.text = $a(); //#16944 + } //#16944 + $_.out = $a(~~($_.text.length / 2)); //#16947 + for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16951 + $_.k = _Bv; //#16949 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16950 + } //#16950 + $k[$j++] = $_.out; //#16953 + }; //#16953 $_.encn = function() { - $_.in = $k[--$j]; //#16745 - $_.out = $a([]); //#16746 - for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16774 - $_.k = _C9; //#16748 - $k[$j++] = Infinity; //#16751 - var _CE = $_.in.length - $_.k; //#16750 - $k[$j++] = 1; //#16750 - $k[$j++] = $_.in; //#16750 - $k[$j++] = $_.k; //#16750 - $k[$j++] = _CE; //#16750 - if (_CE > 44) { //#16750 - $j--; //#16750 - $k[$j++] = 44; //#16750 - } //#16750 - var _CF = $k[--$j]; //#16750 - var _CG = $k[--$j]; //#16750 - var _CI = $geti($k[--$j], _CG, _CF); //#16750 - for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16751 - $k[$j++] = $f($get(_CI, _CJ) - 48); //#16751 - } //#16751 - $_.gmod = $a(); //#16751 - $_.cwn = $a([]); //#16753 - for (;;) { //#16772 - $_.dv = 900; //#16754 - $_.gmul = $a([]); //#16755 - $_.val = 0; //#16755 - for (;;) { //#16767 - if ($_.gmod.length == 0) { //#16756 - break; //#16756 - } //#16756 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16757 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16758 - if ($_.val < $_.dv) { //#16764 - if ($_.gmul.length != 0) { //#16762 - $k[$j++] = Infinity; //#16761 - $aload($_.gmul); //#16761 - $k[$j++] = 0; //#16761 - $_.gmul = $a(); //#16761 - } //#16761 - } else { //#16764 - $k[$j++] = Infinity; //#16764 - $aload($_.gmul); //#16764 - $k[$j++] = ~~($_.val / $_.dv); //#16764 - $_.gmul = $a(); //#16764 - } //#16764 - $_.val = $_.val % $_.dv; //#16766 - } //#16766 - $_.dv = $_.val; //#16768 - $k[$j++] = Infinity; //#16769 - $k[$j++] = $_.dv; //#16769 - $aload($_.cwn); //#16769 - $_.cwn = $a(); //#16769 - $_.gmod = $_.gmul; //#16770 - if ($_.gmul.length == 0) { //#16771 - break; //#16771 - } //#16771 - } //#16771 - $k[$j++] = Infinity; //#16773 - $aload($_.out); //#16773 - $aload($_.cwn); //#16773 - $_.out = $a(); //#16773 - } //#16773 - $k[$j++] = $_.out; //#16775 - }; //#16775 + $_.in = $k[--$j]; //#16958 + $_.out = $a([]); //#16959 + for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16987 + $_.k = _C9; //#16961 + $k[$j++] = Infinity; //#16962 + var _CE = $_.in.length - $_.k; //#16963 + $k[$j++] = 1; //#16963 + $k[$j++] = $_.in; //#16963 + $k[$j++] = $_.k; //#16963 + $k[$j++] = _CE; //#16963 + if (_CE > 44) { //#16963 + $j--; //#16963 + $k[$j++] = 44; //#16963 + } //#16963 + var _CF = $k[--$j]; //#16963 + var _CG = $k[--$j]; //#16963 + var _CI = $geti($k[--$j], _CG, _CF); //#16963 + for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16964 + $k[$j++] = $f($get(_CI, _CJ) - 48); //#16964 + } //#16964 + $_.gmod = $a(); //#16964 + $_.cwn = $a([]); //#16966 + for (;;) { //#16985 + $_.dv = 900; //#16967 + $_.gmul = $a([]); //#16968 + $_.val = 0; //#16968 + for (;;) { //#16980 + if ($_.gmod.length == 0) { //#16969 + break; //#16969 + } //#16969 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16970 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16971 + if ($_.val < $_.dv) { //#16977 + if ($_.gmul.length != 0) { //#16975 + $k[$j++] = Infinity; //#16974 + $aload($_.gmul); //#16974 + $k[$j++] = 0; //#16974 + $_.gmul = $a(); //#16974 + } //#16974 + } else { //#16977 + $k[$j++] = Infinity; //#16977 + $aload($_.gmul); //#16977 + $k[$j++] = ~~($_.val / $_.dv); //#16977 + $_.gmul = $a(); //#16977 + } //#16977 + $_.val = $_.val % $_.dv; //#16979 + } //#16979 + $_.dv = $_.val; //#16981 + $k[$j++] = Infinity; //#16982 + $k[$j++] = $_.dv; //#16982 + $aload($_.cwn); //#16982 + $_.cwn = $a(); //#16982 + $_.gmod = $_.gmul; //#16983 + if ($_.gmul.length == 0) { //#16984 + break; //#16984 + } //#16984 + } //#16984 + $k[$j++] = Infinity; //#16986 + $aload($_.out); //#16986 + $aload($_.cwn); //#16986 + $_.out = $a(); //#16986 + } //#16986 + $k[$j++] = $_.out; //#16988 + }; //#16988 $_.ence = function() { - var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16780 - $k[$j++] = _Ct; //#16788 - if (_Ct <= 899) { //#16787 - var _Cu = $k[--$j]; //#16781 - $k[$j++] = 927; //#16781 - $k[$j++] = _Cu; //#16781 - $astore($a(2)); //#16781 - } else { //#16787 - var _Cw = $k[--$j]; //#16782 - $k[$j++] = _Cw; //#16788 - if (_Cw <= 810899) { //#16787 - var _Cx = $k[--$j]; //#16783 - $k[$j++] = 926; //#16783 - $k[$j++] = (~~(_Cx / 900)) - 1; //#16783 - $k[$j++] = _Cx % 900; //#16783 - $astore($a(3)); //#16783 - } else { //#16787 - var _Cz = $k[--$j]; //#16784 - $k[$j++] = _Cz; //#16788 - if (_Cz <= 811799) { //#16787 - var _D0 = $k[--$j]; //#16785 - $k[$j++] = 925; //#16785 - $k[$j++] = $f(_D0 - 810900); //#16785 - $astore($a(2)); //#16785 - } else { //#16787 - $k[$j++] = 'bwipp.pdf417badECI#16787'; //#16787 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16787 - bwipp_raiseerror(); //#16787 - } //#16787 - } //#16787 - } //#16787 - }; //#16787 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#16791 + var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16993 + $k[$j++] = _Ct; //#17001 + if (_Ct <= 899) { //#17000 + var _Cu = $k[--$j]; //#16994 + $k[$j++] = 927; //#16994 + $k[$j++] = _Cu; //#16994 + $astore($a(2)); //#16994 + } else { //#17000 + var _Cw = $k[--$j]; //#16995 + $k[$j++] = _Cw; //#17001 + if (_Cw <= 810899) { //#17000 + var _Cx = $k[--$j]; //#16996 + $k[$j++] = 926; //#16996 + $k[$j++] = (~~(_Cx / 900)) - 1; //#16996 + $k[$j++] = _Cx % 900; //#16996 + $astore($a(3)); //#16996 + } else { //#17000 + var _Cz = $k[--$j]; //#16997 + $k[$j++] = _Cz; //#17001 + if (_Cz <= 811799) { //#17000 + var _D0 = $k[--$j]; //#16998 + $k[$j++] = 925; //#16998 + $k[$j++] = $f(_D0 - 810900); //#16998 + $astore($a(2)); //#16998 + } else { //#17000 + $k[$j++] = 'bwipp.pdf417badECI#17000'; //#17000 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17000 + bwipp_raiseerror(); //#17000 + } //#17000 + } //#17000 + } //#17000 + }; //#17000 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17004 $_.addtocws = function() { - var _D3 = $k[--$j]; //#16794 - $puti($_.datcws, $_.j, _D3); //#16794 - $_.j = _D3.length + $_.j; //#16795 - }; //#16795 - $_.state = $_.T; //#16799 - $_.submode = $_.A; //#16799 - $_.datcws = $a($_.seqlen); //#16800 - $_.i = 0; //#16801 - $_.j = 0; //#16801 - for (;;) { //#16821 - if ($_.i >= $_.seq.length) { //#16802 - break; //#16802 - } //#16802 - $_.chars = $get($_.seq, $_.i); //#16803 - if ($eq($type($_.chars), 'arraytype')) { //#16817 - if ($get($_.chars, 0) <= -1000000) { //#16808 - $k[$j++] = $_.chars; //#16806 - $_.ence(); //#16806 - $_.addtocws(); //#16806 - } else { //#16808 - $k[$j++] = $_.chars; //#16808 + var _D3 = $k[--$j]; //#17007 + $puti($_.datcws, $_.j, _D3); //#17007 + $_.j = _D3.length + $_.j; //#17008 + }; //#17008 + $_.state = $_.T; //#17012 + $_.submode = $_.A; //#17012 + $_.datcws = $a($_.seqlen); //#17013 + $_.i = 0; //#17014 + $_.j = 0; //#17014 + for (;;) { //#17034 + if ($_.i >= $_.seq.length) { //#17015 + break; //#17015 + } //#17015 + $_.chars = $get($_.seq, $_.i); //#17016 + if ($eq($type($_.chars), 'arraytype')) { //#17030 + if ($get($_.chars, 0) <= -1000000) { //#17021 + $k[$j++] = $_.chars; //#17019 + $_.ence(); //#17019 + $_.addtocws(); //#17019 + } else { //#17021 + $k[$j++] = $_.chars; //#17021 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#16808 - $_.addtocws(); //#16808 - } //#16808 - } else { //#16817 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#16811 - $_.addtocws(); //#16811 - if ($_.chars == $_.tl) { //#16812 - $_.state = $_.T; //#16812 - $_.submode = $_.A; //#16812 - } //#16812 - if ($_.chars == $_.nl) { //#16813 - $_.state = $_.N; //#16813 - } //#16813 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#16814 - $_.state = $_.B; //#16814 - } //#16814 - if ($_.chars == $_.bs) { //#16818 - $_.i = $_.i + 1; //#16816 - $k[$j++] = $get($_.seq, $_.i); //#16817 - $_.encb(); //#16817 - $_.addtocws(); //#16817 - } //#16817 - } //#16817 - $_.i = $_.i + 1; //#16820 - } //#16820 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16822 - } //#16822 - $_.m = $_.datcws.length; //#16826 - if ($_.eclevel == -1) { //#16832 - if ($_.m <= 40) { //#16828 - $_.eclevel = 2; //#16828 - } //#16828 - if (($_.m >= 41) && ($_.m <= 160)) { //#16829 - $_.eclevel = 3; //#16829 - } //#16829 - if (($_.m >= 161) && ($_.m <= 320)) { //#16830 - $_.eclevel = 4; //#16830 - } //#16830 - if ($_.m >= 321) { //#16831 - $_.eclevel = 5; //#16831 - } //#16831 - } //#16831 - $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#16835 - if ($_.eclevel > $_.maxeclevel) { //#16836 - $_.eclevel = $_.maxeclevel; //#16836 - } //#16836 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16837 - if ($_.columns == 0) { //#16840 - $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#16840 - } //#16840 - $k[$j++] = 'c'; //#16841 - if ($_.columns >= 1) { //#16841 - $k[$j++] = $_.columns; //#16841 - } else { //#16841 - $k[$j++] = 1; //#16841 - } //#16841 - var _E8 = $k[--$j]; //#16841 - $_[$k[--$j]] = _E8; //#16841 - $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#16844 - if (($_.r < $_.rows) && ($_.rows <= 90)) { //#16845 - $_.r = $_.rows; //#16845 - } //#16845 - if ($_.r < 3) { //#16846 - $_.r = 3; //#16846 - } //#16846 - if ($_.r > 90) { //#16851 - $k[$j++] = 'bwipp.pdf417insufficientCapacity#16850'; //#16850 - $k[$j++] = "Insufficient capacity in the symbol"; //#16850 - bwipp_raiseerror(); //#16850 - } //#16850 - var _EJ = $_.c; //#16854 - var _EK = $_.r; //#16854 - var _EL = $_.m; //#16854 - var _EM = 8; //#16854 - var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#16854 - if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#16854 - var _ = _EM; //#16854 - _EM = _EN; //#16854 - _EN = _; //#16854 - } //#16854 - $_.maxeclevel = _EN; //#16854 - if ($_.maxeclevel > $_.eclevel) { //#16858 - $_.eclevel = $_.maxeclevel; //#16856 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16857 - } //#16857 - $_.n = $f(($_.c * $_.r) - $_.k); //#16861 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#16862 - $put($_.cws, 0, $_.n); //#16863 - $puti($_.cws, 1, $_.datcws); //#16864 - $k[$j++] = $_.cws; //#16865 - $k[$j++] = $_.m + 1; //#16865 - $k[$j++] = Infinity; //#16865 - for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#16865 - $k[$j++] = 900; //#16865 - } //#16865 - var _Ei = $a(); //#16865 - var _Ej = $k[--$j]; //#16865 - $puti($k[--$j], _Ej, _Ei); //#16865 - $k[$j++] = $_.cws; //#16866 - $k[$j++] = $_.n; //#16866 - $k[$j++] = Infinity; //#16866 - for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#16866 - $k[$j++] = 0; //#16866 - } //#16866 - $k[$j++] = 0; //#16866 - var _Eq = $a(); //#16866 - var _Er = $k[--$j]; //#16866 - $puti($k[--$j], _Er, _Eq); //#16866 - $k[$j++] = Infinity; //#16869 - $k[$j++] = 1; //#16869 - for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#16869 - var _Ev = $k[--$j]; //#16869 - $k[$j++] = _Ev; //#16869 - $k[$j++] = (_Ev * 3) % 929; //#16869 - } //#16869 - $_.rsalog = $a(); //#16869 - $_.rslog = $a(929); //#16870 - for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#16871 - $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#16871 - } //#16871 + } //#17021 + $_.addtocws(); //#17021 + } //#17021 + } else { //#17030 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17024 + $_.addtocws(); //#17024 + if ($_.chars == $_.tl) { //#17025 + $_.state = $_.T; //#17025 + $_.submode = $_.A; //#17025 + } //#17025 + if ($_.chars == $_.nl) { //#17026 + $_.state = $_.N; //#17026 + } //#17026 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17027 + $_.state = $_.B; //#17027 + } //#17027 + if ($_.chars == $_.bs) { //#17031 + $_.i = $_.i + 1; //#17029 + $k[$j++] = $get($_.seq, $_.i); //#17030 + $_.encb(); //#17030 + $_.addtocws(); //#17030 + } //#17030 + } //#17030 + $_.i = $_.i + 1; //#17033 + } //#17033 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17035 + } //#17035 + $_.m = $_.datcws.length; //#17039 + if ($_.eclevel == -1) { //#17045 + if ($_.m <= 40) { //#17041 + $_.eclevel = 2; //#17041 + } //#17041 + if (($_.m >= 41) && ($_.m <= 160)) { //#17042 + $_.eclevel = 3; //#17042 + } //#17042 + if (($_.m >= 161) && ($_.m <= 320)) { //#17043 + $_.eclevel = 4; //#17043 + } //#17043 + if ($_.m >= 321) { //#17044 + $_.eclevel = 5; //#17044 + } //#17044 + } //#17044 + $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#17048 + if ($_.eclevel > $_.maxeclevel) { //#17049 + $_.eclevel = $_.maxeclevel; //#17049 + } //#17049 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17050 + if ($_.columns == 0) { //#17053 + $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#17053 + } //#17053 + $k[$j++] = 'c'; //#17054 + if ($_.columns >= 1) { //#17054 + $k[$j++] = $_.columns; //#17054 + } else { //#17054 + $k[$j++] = 1; //#17054 + } //#17054 + var _E8 = $k[--$j]; //#17054 + $_[$k[--$j]] = _E8; //#17054 + $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#17057 + if (($_.r < $_.rows) && ($_.rows <= 90)) { //#17058 + $_.r = $_.rows; //#17058 + } //#17058 + if ($_.r < 3) { //#17059 + $_.r = 3; //#17059 + } //#17059 + if ($_.r > 90) { //#17064 + $k[$j++] = 'bwipp.pdf417insufficientCapacity#17063'; //#17063 + $k[$j++] = "Insufficient capacity in the symbol"; //#17063 + bwipp_raiseerror(); //#17063 + } //#17063 + var _EJ = $_.c; //#17067 + var _EK = $_.r; //#17067 + var _EL = $_.m; //#17067 + var _EM = 8; //#17067 + var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#17067 + if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#17067 + var _ = _EM; //#17067 + _EM = _EN; //#17067 + _EN = _; //#17067 + } //#17067 + $_.maxeclevel = _EN; //#17067 + if ($_.maxeclevel > $_.eclevel) { //#17071 + $_.eclevel = $_.maxeclevel; //#17069 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17070 + } //#17070 + $_.n = $f(($_.c * $_.r) - $_.k); //#17074 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#17075 + $put($_.cws, 0, $_.n); //#17076 + $puti($_.cws, 1, $_.datcws); //#17077 + $k[$j++] = $_.cws; //#17078 + $k[$j++] = $_.m + 1; //#17078 + $k[$j++] = Infinity; //#17078 + for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#17078 + $k[$j++] = 900; //#17078 + } //#17078 + var _Ei = $a(); //#17078 + var _Ej = $k[--$j]; //#17078 + $puti($k[--$j], _Ej, _Ei); //#17078 + $k[$j++] = $_.cws; //#17079 + $k[$j++] = $_.n; //#17079 + $k[$j++] = Infinity; //#17079 + for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#17079 + $k[$j++] = 0; //#17079 + } //#17079 + $k[$j++] = 0; //#17079 + var _Eq = $a(); //#17079 + var _Er = $k[--$j]; //#17079 + $puti($k[--$j], _Er, _Eq); //#17079 + if (!bwipp_pdf417.__17086__) { //#17086 + $_ = Object.create($_); //#17086 + $k[$j++] = Infinity; //#17083 + $k[$j++] = 1; //#17083 + for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#17083 + var _Ev = $k[--$j]; //#17083 + $k[$j++] = _Ev; //#17083 + $k[$j++] = (_Ev * 3) % 929; //#17083 + } //#17083 + $_.rsalog = $a(); //#17083 + $_.rslog = $a(929); //#17084 + for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#17085 + $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#17085 + } //#17085 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17085 + bwipp_pdf417.__17086__ = 1; //#17085 + $_ = Object.getPrototypeOf($_); //#17085 + } //#17085 $_.rsprod = function() { - var _F2 = $k[--$j]; //#16875 - var _F3 = $k[--$j]; //#16875 - $k[$j++] = _F3; //#16879 - $k[$j++] = _F2; //#16879 - if ((_F2 != 0) && (_F3 != 0)) { //#16878 - var _F6 = $get($_.rslog, $k[--$j]); //#16876 - var _FB = $get($_.rsalog, $f(_F6 + $get($_.rslog, $k[--$j])) % 928); //#16876 - $k[$j++] = _FB; //#16876 - } else { //#16878 - $j -= 2; //#16878 - $k[$j++] = 0; //#16878 - } //#16878 - }; //#16878 - $k[$j++] = Infinity; //#16883 - $k[$j++] = 1; //#16883 - for (var _FD = 0, _FE = $_.k; _FD < _FE; _FD++) { //#16883 - $k[$j++] = 0; //#16883 - } //#16883 - $_.coeffs = $a(); //#16883 - for (var _FI = 1, _FH = $_.k; _FI <= _FH; _FI += 1) { //#16892 - $_.i = _FI; //#16885 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#16886 - for (var _FP = $_.i - 1; _FP >= 1; _FP -= 1) { //#16890 - $_.j = _FP; //#16888 - $k[$j++] = $_.coeffs; //#16889 - $k[$j++] = $_.j; //#16889 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#16889 - $k[$j++] = $get($_.coeffs, $_.j); //#16889 - $k[$j++] = $get($_.rsalog, $_.i); //#16889 - $_.rsprod(); //#16889 - var _Fb = $k[--$j]; //#16889 - var _Fc = $k[--$j]; //#16889 - var _Fd = $k[--$j]; //#16889 - $put($k[--$j], _Fd, $f(_Fc + _Fb) % 929); //#16889 - } //#16889 - $k[$j++] = $_.coeffs; //#16891 - $k[$j++] = 0; //#16891 - $k[$j++] = $get($_.coeffs, 0); //#16891 - $k[$j++] = $get($_.rsalog, $_.i); //#16891 - $_.rsprod(); //#16891 - var _Fl = $k[--$j]; //#16891 - var _Fm = $k[--$j]; //#16891 - $put($k[--$j], _Fm, _Fl); //#16891 - } //#16891 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#16893 - for (var _Fs = $_.coeffs.length - 1; _Fs >= 0; _Fs -= 2) { //#16894 - var _Ft = $_.coeffs; //#16894 - $put(_Ft, _Fs, $f(929 - $get(_Ft, _Fs))); //#16894 - } //#16894 - for (var _Fx = 0, _Fw = $f($_.n - 1); _Fx <= _Fw; _Fx += 1) { //#16903 - $_.t = $f($get($_.cws, _Fx) + $get($_.cws, $_.n)) % 929; //#16898 - for (var _G5 = 0, _G4 = $_.k - 1; _G5 <= _G4; _G5 += 1) { //#16902 - $_.j = _G5; //#16900 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#16901 - } //#16901 - } //#16901 - for (var _GM = $_.n, _GL = $f($_.n + $_.k); _GM <= _GL; _GM += 1) { //#16904 - $put($_.cws, _GM, $f(929 - $get($_.cws, _GM)) % 929); //#16904 - } //#16904 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#16907 - var _GU = $get($_.options, 'debugcws') !== undefined; //#16909 - if (_GU) { //#16909 - $k[$j++] = 'bwipp.debugcws#16909'; //#16909 - $k[$j++] = $_.cws; //#16909 - bwipp_raiseerror(); //#16909 - } //#16909 - if (!bwipp_pdf417.__17153__) { //#17153 - $_ = Object.create($_); //#17153 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17152 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17152 - bwipp_pdf417.__17153__ = 1; //#17152 - $_ = Object.getPrototypeOf($_); //#17152 - } //#17152 + var _F3 = $k[--$j]; //#17090 + var _F4 = $k[--$j]; //#17090 + $k[$j++] = _F4; //#17094 + $k[$j++] = _F3; //#17094 + if ((_F3 != 0) && (_F4 != 0)) { //#17093 + var _F7 = $get($_.rslog, $k[--$j]); //#17091 + var _FC = $get($_.rsalog, $f(_F7 + $get($_.rslog, $k[--$j])) % 928); //#17091 + $k[$j++] = _FC; //#17091 + } else { //#17093 + $j -= 2; //#17093 + $k[$j++] = 0; //#17093 + } //#17093 + }; //#17093 + $k[$j++] = Infinity; //#17098 + $k[$j++] = 1; //#17098 + for (var _FE = 0, _FF = $_.k; _FE < _FF; _FE++) { //#17098 + $k[$j++] = 0; //#17098 + } //#17098 + $_.coeffs = $a(); //#17098 + for (var _FJ = 1, _FI = $_.k; _FJ <= _FI; _FJ += 1) { //#17107 + $_.i = _FJ; //#17100 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17101 + for (var _FQ = $_.i - 1; _FQ >= 1; _FQ -= 1) { //#17105 + $_.j = _FQ; //#17103 + $k[$j++] = $_.coeffs; //#17104 + $k[$j++] = $_.j; //#17104 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#17104 + $k[$j++] = $get($_.coeffs, $_.j); //#17104 + $k[$j++] = $get($_.rsalog, $_.i); //#17104 + $_.rsprod(); //#17104 + var _Fc = $k[--$j]; //#17104 + var _Fd = $k[--$j]; //#17104 + var _Fe = $k[--$j]; //#17104 + $put($k[--$j], _Fe, $f(_Fd + _Fc) % 929); //#17104 + } //#17104 + $k[$j++] = $_.coeffs; //#17106 + $k[$j++] = 0; //#17106 + $k[$j++] = $get($_.coeffs, 0); //#17106 + $k[$j++] = $get($_.rsalog, $_.i); //#17106 + $_.rsprod(); //#17106 + var _Fm = $k[--$j]; //#17106 + var _Fn = $k[--$j]; //#17106 + $put($k[--$j], _Fn, _Fm); //#17106 + } //#17106 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17108 + for (var _Ft = $_.coeffs.length - 1; _Ft >= 0; _Ft -= 2) { //#17109 + var _Fu = $_.coeffs; //#17109 + $put(_Fu, _Ft, $f(929 - $get(_Fu, _Ft))); //#17109 + } //#17109 + for (var _Fy = 0, _Fx = $f($_.n - 1); _Fy <= _Fx; _Fy += 1) { //#17118 + $_.t = $f($get($_.cws, _Fy) + $get($_.cws, $_.n)) % 929; //#17113 + for (var _G6 = 0, _G5 = $_.k - 1; _G6 <= _G5; _G6 += 1) { //#17117 + $_.j = _G6; //#17115 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#17116 + } //#17116 + } //#17116 + for (var _GN = $_.n, _GM = $f($_.n + $_.k); _GN <= _GM; _GN += 1) { //#17119 + $put($_.cws, _GN, $f(929 - $get($_.cws, _GN)) % 929); //#17119 + } //#17119 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17122 + var _GV = $get($_.options, 'debugcws') !== undefined; //#17124 + if (_GV) { //#17124 + $k[$j++] = 'bwipp.debugcws#17124'; //#17124 + $k[$j++] = $_.cws; //#17124 + bwipp_raiseerror(); //#17124 + } //#17124 + if (!bwipp_pdf417.__17368__) { //#17368 + $_ = Object.create($_); //#17368 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17367 + bwipp_pdf417.__17368__ = 1; //#17367 + $_ = Object.getPrototypeOf($_); //#17367 + } //#17367 $_.cwtobits = function() { - var _Gd = $get($_.clusters, $k[--$j]); //#17157 - $_.v = $get(_Gd, $k[--$j]); //#17157 - $k[$j++] = Infinity; //#17158 - for (var _Gg = 0, _Gh = 17; _Gg < _Gh; _Gg++) { //#17158 - $k[$j++] = 0; //#17158 - } //#17158 - var _Gk = $cvrs($s(17), $_.v, 2); //#17158 - for (var _Gl = 0, _Gm = _Gk.length; _Gl < _Gm; _Gl++) { //#17158 - $k[$j++] = $get(_Gk, _Gl) - 48; //#17158 - } //#17158 - var _Go = $a(); //#17158 - $k[$j++] = $geti(_Go, _Go.length - 17, 17); //#17159 - }; //#17159 - if ($_.compact) { //#17166 - $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17164 - } else { //#17166 - $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17166 - } //#17166 - $_.pixs = $a($_.rwid * $_.r); //#17168 - for (var _Gy = 0, _Gx = $_.r - 1; _Gy <= _Gx; _Gy += 1) { //#17198 - $_.i = _Gy; //#17171 - if (($_.i % 3) == 0) { //#17176 - $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17174 - $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17175 - } //#17175 - if (($_.i % 3) == 1) { //#17180 - $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17178 - $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17179 - } //#17179 - if (($_.i % 3) == 2) { //#17184 - $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17182 - $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17183 - } //#17183 - $k[$j++] = $_.pixs; //#17194 - $k[$j++] = $_.rwid * $_.i; //#17194 - $k[$j++] = Infinity; //#17194 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = $_.lcw; //#17188 - $k[$j++] = $_.i % 3; //#17188 - $_.cwtobits(); //#17188 - $forall($k[--$j]); //#17188 - var _HQ = $geti($_.cws, $_.c * $_.i, $_.c); //#17189 - for (var _HR = 0, _HS = _HQ.length; _HR < _HS; _HR++) { //#17189 - $k[$j++] = $get(_HQ, _HR); //#17189 - $k[$j++] = $_.i % 3; //#17189 - $_.cwtobits(); //#17189 - $forall($k[--$j]); //#17189 - } //#17189 - if ($_.compact) { //#17194 - $k[$j++] = 1; //#17191 - } else { //#17194 - $k[$j++] = $_.rcw; //#17193 - $k[$j++] = $_.i % 3; //#17193 - $_.cwtobits(); //#17193 - $forall($k[--$j]); //#17193 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - } //#17194 - var _Ha = $a(); //#17194 - var _Hb = $k[--$j]; //#17196 - $puti($k[--$j], _Hb, _Ha); //#17196 - } //#17196 - var _Hk = new Map([ + var _Ge = $get($_.clusters, $k[--$j]); //#17372 + $_.v = $get(_Ge, $k[--$j]); //#17372 + $k[$j++] = Infinity; //#17373 + for (var _Gh = 0, _Gi = 17; _Gh < _Gi; _Gh++) { //#17373 + $k[$j++] = 0; //#17373 + } //#17373 + var _Gl = $cvrs($s(17), $_.v, 2); //#17373 + for (var _Gm = 0, _Gn = _Gl.length; _Gm < _Gn; _Gm++) { //#17373 + $k[$j++] = $get(_Gl, _Gm) - 48; //#17373 + } //#17373 + var _Gp = $a(); //#17373 + $k[$j++] = $geti(_Gp, _Gp.length - 17, 17); //#17374 + }; //#17374 + if ($_.compact) { //#17381 + $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17379 + } else { //#17381 + $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17381 + } //#17381 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#17383 + for (var _H0 = 0, _Gz = $_.r - 1; _H0 <= _Gz; _H0 += 1) { //#17416 + $_.i = _H0; //#17386 + if (($_.i % 3) == 0) { //#17391 + $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17389 + $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17390 + } //#17390 + if (($_.i % 3) == 1) { //#17395 + $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17393 + $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17394 + } //#17394 + if (($_.i % 3) == 2) { //#17399 + $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17397 + $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17398 + } //#17398 + $k[$j++] = Infinity; //#17401 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = $_.lcw; //#17403 + $k[$j++] = $_.i % 3; //#17403 + $_.cwtobits(); //#17403 + $aload($k[--$j]); //#17403 + var _HP = $geti($_.cws, $_.c * $_.i, $_.c); //#17404 + for (var _HQ = 0, _HR = _HP.length; _HQ < _HR; _HQ++) { //#17404 + $k[$j++] = $get(_HP, _HQ); //#17404 + $k[$j++] = $_.i % 3; //#17404 + $_.cwtobits(); //#17404 + $aload($k[--$j]); //#17404 + } //#17404 + if ($_.compact) { //#17409 + $k[$j++] = 1; //#17406 + } else { //#17409 + $k[$j++] = $_.rcw; //#17408 + $k[$j++] = $_.i % 3; //#17408 + $_.cwtobits(); //#17408 + $aload($k[--$j]); //#17408 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + } //#17409 + var _HZ = $a(); //#17409 + $k[$j++] = _HZ; //#17414 + for (var _Hc = 0, _Hb = $_.rowmult - 1; _Hc <= _Hb; _Hc += 1) { //#17414 + var _Hh = $k[--$j]; //#17413 + $puti($_.pixs, (_Hc + ($_.i * $_.rowmult)) * $_.rwid, _Hh); //#17413 + $k[$j++] = _Hh; //#17413 + } //#17413 + $j--; //#17415 + } //#17415 + var _Hq = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 2], + ["borderright", 2], + ["bordertop", 2], + ["borderbottom", 2], ["opt", $_.options] - ]); //#17208 - $k[$j++] = _Hk; //#17211 - if (!$_.dontdraw) { //#17211 - bwipp_renmatrix(); //#17211 - } //#17211 - $_ = Object.getPrototypeOf($_); //#17213 - $_ = Object.getPrototypeOf($_); //#17215 -} - + ]); //#17430 + $k[$j++] = _Hq; //#17433 + if (!$_.dontdraw) { //#17433 + bwipp_renmatrix(); //#17433 + } //#17433 + $_ = Object.getPrototypeOf($_); //#17435 + $_ = Object.getPrototypeOf($_); //#17437 +} //bwipp_pdf417 function bwipp_pdf417compact() { - $_ = Object.create($_); //#17244 - $_.dontdraw = false; //#17247 - $k[$j++] = $_; //#17249 - bwipp_processoptions(); //#17249 - $_.options = $k[--$j]; //#17249 - $_.barcode = $k[--$j]; //#17250 - $put($_.options, "dontdraw", true); //#17253 - $put($_.options, "compact", true); //#17254 - $k[$j++] = 'args'; //#17256 - $k[$j++] = $_.barcode; //#17256 - $k[$j++] = $_.options; //#17256 - bwipp_pdf417(); //#17256 - var _6 = $k[--$j]; //#17256 - $_[$k[--$j]] = _6; //#17256 - $put($_.args, "opt", $_.options); //#17258 - $k[$j++] = $_.args; //#17261 - if (!$_.dontdraw) { //#17261 - bwipp_renmatrix(); //#17261 - } //#17261 - $_ = Object.getPrototypeOf($_); //#17263 -} - + $_ = Object.create($_); //#17466 + $_.dontdraw = false; //#17469 + $k[$j++] = $_; //#17471 + bwipp_processoptions(); //#17471 + $_.options = $k[--$j]; //#17471 + $_.barcode = $k[--$j]; //#17472 + $put($_.options, "dontdraw", true); //#17475 + $put($_.options, "compact", true); //#17476 + $k[$j++] = 'args'; //#17478 + $k[$j++] = $_.barcode; //#17478 + $k[$j++] = $_.options; //#17478 + bwipp_pdf417(); //#17478 + var _6 = $k[--$j]; //#17478 + $_[$k[--$j]] = _6; //#17478 + $put($_.args, "opt", $_.options); //#17480 + $k[$j++] = $_.args; //#17483 + if (!$_.dontdraw) { //#17483 + bwipp_renmatrix(); //#17483 + } //#17483 + $_ = Object.getPrototypeOf($_); //#17485 +} //bwipp_pdf417compact function bwipp_micropdf417() { - $_ = Object.create($_); //#17294 - $_.dontdraw = false; //#17297 - $_.version = "unset"; //#17298 - $_.columns = 0; //#17299 - $_.rows = 0; //#17300 - $_.rowmult = 2; //#17301 - $_.cca = false; //#17302 - $_.ccb = false; //#17303 - $_.raw = false; //#17304 - $_.parse = false; //#17305 - $_.parsefnc = false; //#17306 - $k[$j++] = $_; //#17308 - bwipp_processoptions(); //#17308 - $_.options = $k[--$j]; //#17308 - $_.barcode = $k[--$j]; //#17309 - if ($eq($_.barcode, "")) { //#17313 - $k[$j++] = 'bwipp.micropdf417emptyData#17312'; //#17312 - $k[$j++] = "The data must not be empty"; //#17312 - bwipp_raiseerror(); //#17312 - } //#17312 - if ($_.rowmult <= 0) { //#17317 - $k[$j++] = 'bwipp.micropdf417badRowMult#17316'; //#17316 - $k[$j++] = "The row multiplier must be greater than zero"; //#17316 - bwipp_raiseerror(); //#17316 - } //#17316 - if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17321 - $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17320'; //#17320 - $k[$j++] = "Cannot combine cca, ccb and raw"; //#17320 - bwipp_raiseerror(); //#17320 - } //#17320 - if ($ne($_.version, "unset")) { //#17342 - $search($_.version, "x"); //#17325 - if ($k[--$j]) { //#17340 - var _D = $k[--$j]; //#17326 - var _E = $k[--$j]; //#17326 - $k[$j++] = _D; //#17326 - $k[$j++] = _E; //#17326 - $j--; //#17326 - var _F = $k[--$j]; //#17327 - var _G = $k[--$j]; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $astore($a(2)); //#17327 - $forall($k[--$j], function() { //#17336 - var _J = $k[--$j]; //#17329 - $k[$j++] = _J; //#17329 - $k[$j++] = true; //#17329 - if (_J.length == 0) { //#17329 - $j--; //#17329 - $k[$j++] = false; //#17329 - } //#17329 - var _K = $k[--$j]; //#17330 - var _L = $k[--$j]; //#17330 - $k[$j++] = _K; //#17332 - $forall(_L, function() { //#17332 - var _M = $k[--$j]; //#17331 - if ((_M < 48) || (_M > 57)) { //#17331 - $j--; //#17331 - $k[$j++] = false; //#17331 - } //#17331 - }); //#17331 - if ($nt($k[--$j])) { //#17335 - $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17334'; //#17334 - $k[$j++] = "version must be formatted as RxC"; //#17334 - bwipp_raiseerror(); //#17334 - } //#17334 - }); //#17334 - $_.rows = $cvi($k[--$j]); //#17337 - $_.columns = $cvi($k[--$j]); //#17338 - } else { //#17340 - $j--; //#17340 - $k[$j++] = 'bwipp.micropdf417badVersionFormat#17340'; //#17340 - $k[$j++] = "version must be formatted as RxC"; //#17340 - bwipp_raiseerror(); //#17340 - } //#17340 - } //#17340 - bwipp_loadctx(bwipp_micropdf417) //#17344 - if (!bwipp_micropdf417.__17431__) { //#17431 - $_ = Object.create($_); //#17431 - $_.T = 0; //#17348 - $_.N = 1; //#17348 - $_.B = 2; //#17348 - $_.A = 0; //#17349 - $_.L = 1; //#17349 - $_.M = 2; //#17349 - $_.P = 3; //#17349 - $_.tl = -1; //#17352 - $_.nl = -2; //#17352 - $_.bl = -3; //#17352 - $_.bl6 = -4; //#17352 - $_.bs = -5; //#17352 - $_.al = -6; //#17355 - $_.ll = -7; //#17355 - $_.ml = -8; //#17355 - $_.pl = -9; //#17355 - $_.as = -10; //#17355 - $_.ps = -11; //#17355 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17390 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17393 - $_.alltext = new Map; //#17394 - for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17404 - $_.i = _19; //#17396 - $_.encs = $get($_.charmaps, $_.i); //#17397 - for (var _1D = 0; _1D <= 3; _1D += 1) { //#17403 - $_.j = _1D; //#17399 - var _1G = $get($_.encs, $_.j); //#17400 - $k[$j++] = _1G; //#17400 - if ($eq($type(_1G), 'stringtype')) { //#17400 - var _1J = $get($k[--$j], 0); //#17400 - $k[$j++] = _1J; //#17400 - } //#17400 - var _1K = $k[--$j]; //#17401 - $put($get($_.charvals, $_.j), _1K, $_.i); //#17401 - $put($_.alltext, _1K, -1); //#17402 - } //#17402 - } //#17402 - $_.e = 10000; //#17406 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17414 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17422 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17430 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17430 - bwipp_micropdf417.__17431__ = 1; //#17430 - $_ = Object.getPrototypeOf($_); //#17430 - } //#17430 - if ($_.raw || $_.cca) { //#17452 - $_.datcws = $a($_.barcode.length); //#17435 - $_.i = 0; //#17436 - $_.j = 0; //#17436 - for (;;) { //#17447 - if ($_.i >= ($_.barcode.length - 3)) { //#17438 - break; //#17438 - } //#17438 - if ($get($_.barcode, $_.i) != 94) { //#17439 - break; //#17439 - } //#17439 - var _2a = $geti($_.barcode, $_.i + 1, 3); //#17440 - $k[$j++] = _2a; //#17442 - $k[$j++] = false; //#17442 - for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17442 - var _2d = $get(_2a, _2b); //#17442 - if ((_2d < 48) || (_2d > 57)) { //#17441 - $j--; //#17441 - $k[$j++] = true; //#17441 - } //#17441 - } //#17441 - if ($k[--$j]) { //#17442 - $j--; //#17442 - break; //#17442 - } //#17442 - $_.cw = $cvi($k[--$j]); //#17443 - $put($_.datcws, $_.j, $_.cw); //#17444 - $_.i = $_.i + 4; //#17445 - $_.j = $_.j + 1; //#17446 - } //#17446 - if ($_.i != $_.barcode.length) { //#17450 - $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17449'; //#17449 - $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17449 - bwipp_raiseerror(); //#17449 - } //#17449 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17451 - } //#17451 + $_ = Object.create($_); //#17516 + $_.dontdraw = false; //#17519 + $_.version = "unset"; //#17520 + $_.columns = 0; //#17521 + $_.rows = 0; //#17522 + $_.rowmult = 2; //#17523 + $_.cca = false; //#17524 + $_.ccb = false; //#17525 + $_.raw = false; //#17526 + $_.parse = false; //#17527 + $_.parsefnc = false; //#17528 + $k[$j++] = $_; //#17530 + bwipp_processoptions(); //#17530 + $_.options = $k[--$j]; //#17530 + $_.barcode = $k[--$j]; //#17531 + if ($eq($_.barcode, "")) { //#17535 + $k[$j++] = 'bwipp.micropdf417emptyData#17534'; //#17534 + $k[$j++] = "The data must not be empty"; //#17534 + bwipp_raiseerror(); //#17534 + } //#17534 + if ($_.rowmult <= 0) { //#17539 + $k[$j++] = 'bwipp.micropdf417badRowMult#17538'; //#17538 + $k[$j++] = "The row multiplier must be greater than zero"; //#17538 + bwipp_raiseerror(); //#17538 + } //#17538 + if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17543 + $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17542'; //#17542 + $k[$j++] = "Cannot combine cca, ccb and raw"; //#17542 + bwipp_raiseerror(); //#17542 + } //#17542 + if ($ne($_.version, "unset")) { //#17564 + $search($_.version, "x"); //#17547 + if ($k[--$j]) { //#17562 + var _D = $k[--$j]; //#17548 + var _E = $k[--$j]; //#17548 + $k[$j++] = _D; //#17548 + $k[$j++] = _E; //#17548 + $j--; //#17548 + var _F = $k[--$j]; //#17549 + var _G = $k[--$j]; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $astore($a(2)); //#17549 + $forall($k[--$j], function() { //#17558 + var _J = $k[--$j]; //#17551 + $k[$j++] = _J; //#17551 + $k[$j++] = true; //#17551 + if (_J.length == 0) { //#17551 + $j--; //#17551 + $k[$j++] = false; //#17551 + } //#17551 + var _K = $k[--$j]; //#17552 + var _L = $k[--$j]; //#17552 + $k[$j++] = _K; //#17554 + $forall(_L, function() { //#17554 + var _M = $k[--$j]; //#17553 + if ((_M < 48) || (_M > 57)) { //#17553 + $j--; //#17553 + $k[$j++] = false; //#17553 + } //#17553 + }); //#17553 + if ($nt($k[--$j])) { //#17557 + $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17556'; //#17556 + $k[$j++] = "version must be formatted as RxC"; //#17556 + bwipp_raiseerror(); //#17556 + } //#17556 + }); //#17556 + $_.rows = $cvi($k[--$j]); //#17559 + $_.columns = $cvi($k[--$j]); //#17560 + } else { //#17562 + $j--; //#17562 + $k[$j++] = 'bwipp.micropdf417badVersionFormat#17562'; //#17562 + $k[$j++] = "version must be formatted as RxC"; //#17562 + bwipp_raiseerror(); //#17562 + } //#17562 + } //#17562 + bwipp_loadctx(bwipp_micropdf417) //#17566 + if (!bwipp_micropdf417.__17656__) { //#17656 + $_ = Object.create($_); //#17656 + $_.T = 0; //#17570 + $_.N = 1; //#17570 + $_.B = 2; //#17570 + $_.A = 0; //#17571 + $_.L = 1; //#17571 + $_.M = 2; //#17571 + $_.P = 3; //#17571 + $_.tl = -1; //#17574 + $_.nl = -2; //#17574 + $_.bl = -3; //#17574 + $_.bl6 = -4; //#17574 + $_.bs = -5; //#17574 + $_.al = -6; //#17577 + $_.ll = -7; //#17577 + $_.ml = -8; //#17577 + $_.pl = -9; //#17577 + $_.as = -10; //#17577 + $_.ps = -11; //#17577 + $_.m05 = -12; //#17580 + $_.m06 = -13; //#17580 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17615 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17618 + $_.alltext = new Map; //#17619 + for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17629 + $_.i = _19; //#17621 + $_.encs = $get($_.charmaps, $_.i); //#17622 + for (var _1D = 0; _1D <= 3; _1D += 1) { //#17628 + $_.j = _1D; //#17624 + var _1G = $get($_.encs, $_.j); //#17625 + $k[$j++] = _1G; //#17625 + if ($eq($type(_1G), 'stringtype')) { //#17625 + var _1J = $get($k[--$j], 0); //#17625 + $k[$j++] = _1J; //#17625 + } //#17625 + var _1K = $k[--$j]; //#17626 + $put($get($_.charvals, $_.j), _1K, $_.i); //#17626 + $put($_.alltext, _1K, -1); //#17627 + } //#17627 + } //#17627 + $_.e = 10000; //#17631 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17639 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17647 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17655 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17655 + bwipp_micropdf417.__17656__ = 1; //#17655 + $_ = Object.getPrototypeOf($_); //#17655 + } //#17655 + if ($_.raw || $_.cca) { //#17677 + $_.datcws = $a($_.barcode.length); //#17660 + $_.i = 0; //#17661 + $_.j = 0; //#17661 + for (;;) { //#17672 + if ($_.i >= ($_.barcode.length - 3)) { //#17663 + break; //#17663 + } //#17663 + if ($get($_.barcode, $_.i) != 94) { //#17664 + break; //#17664 + } //#17664 + var _2a = $geti($_.barcode, $_.i + 1, 3); //#17665 + $k[$j++] = _2a; //#17667 + $k[$j++] = false; //#17667 + for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17667 + var _2d = $get(_2a, _2b); //#17667 + if ((_2d < 48) || (_2d > 57)) { //#17666 + $j--; //#17666 + $k[$j++] = true; //#17666 + } //#17666 + } //#17666 + if ($k[--$j]) { //#17667 + $j--; //#17667 + break; //#17667 + } //#17667 + $_.cw = $cvi($k[--$j]); //#17668 + $put($_.datcws, $_.j, $_.cw); //#17669 + $_.i = $_.i + 4; //#17670 + $_.j = $_.j + 1; //#17671 + } //#17671 + if ($_.i != $_.barcode.length) { //#17675 + $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17674'; //#17674 + $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17674 + bwipp_raiseerror(); //#17674 + } //#17674 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17676 + } //#17676 $_.encb = function() { - $_.in = $k[--$j]; //#17455 - $_.inlen = $_.in.length; //#17456 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17457 - for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17480 - $_.k = _2x; //#17459 - $k[$j++] = Infinity; //#17460 - $aload($geti($_.in, $_.k * 6, 3)); //#17460 - $_.msbs = $a(); //#17460 - $k[$j++] = Infinity; //#17463 - $aload($_.msbs); //#17462 - var _33 = $k[--$j]; //#17462 - var _34 = $k[--$j]; //#17462 - var _35 = $k[--$j]; //#17462 - $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17463 - for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17463 - var _38 = $k[--$j]; //#17463 - $k[$j++] = _38 % 900; //#17463 - $k[$j++] = ~~(_38 / 900); //#17463 - } //#17463 - $_.mscs = $a(); //#17463 - $k[$j++] = Infinity; //#17465 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17465 - $_.lsbs = $a(); //#17465 - $k[$j++] = Infinity; //#17468 - $aload($_.lsbs); //#17467 - var _3F = $k[--$j]; //#17467 - var _3G = $k[--$j]; //#17467 - var _3H = $k[--$j]; //#17467 - $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17468 - for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17468 - var _3K = $k[--$j]; //#17468 - $k[$j++] = _3K % 900; //#17468 - $k[$j++] = ~~(_3K / 900); //#17468 - } //#17468 - $_.lscs = $a(); //#17468 - var _3N = $get($_.lscs, 0); //#17470 - var _3P = $get($_.mscs, 0); //#17470 - $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17471 - var _3T = $get($_.lscs, 1); //#17472 - var _3V = $get($_.mscs, 0); //#17472 - var _3X = $get($_.mscs, 1); //#17472 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17473 - var _3b = $get($_.lscs, 2); //#17474 - var _3d = $get($_.mscs, 0); //#17474 - var _3f = $get($_.mscs, 1); //#17474 - var _3h = $get($_.mscs, 2); //#17474 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17475 - var _3l = $get($_.lscs, 3); //#17476 - var _3n = $get($_.mscs, 1); //#17476 - var _3p = $get($_.mscs, 2); //#17476 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17477 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17479 - } //#17479 - $_.rem = $_.inlen % 6; //#17481 - if ($_.rem != 0) { //#17486 - $k[$j++] = $_.out; //#17484 - $k[$j++] = $_.out.length - $_.rem; //#17484 - $k[$j++] = Infinity; //#17484 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17484 - var _46 = $a(); //#17484 - var _47 = $k[--$j]; //#17485 - $puti($k[--$j], _47, _46); //#17485 - } //#17485 - $k[$j++] = $_.out; //#17487 - }; //#17487 - if ($_.ccb) { //#17496 - $_.barlen = $_.barcode.length; //#17491 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17492 - $put($_.datcws, 0, 920); //#17493 - var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17494 - $put($_.datcws, 1, _4I); //#17494 - $k[$j++] = $_.datcws; //#17495 - $k[$j++] = 2; //#17495 - $k[$j++] = Infinity; //#17495 - $forall($_.barcode); //#17495 - var _4L = $a(); //#17495 - $k[$j++] = _4L; //#17495 - $_.encb(); //#17495 - var _4M = $k[--$j]; //#17495 - var _4N = $k[--$j]; //#17495 - $puti($k[--$j], _4N, _4M); //#17495 - } //#17495 - if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#17852 + $_.in = $k[--$j]; //#17680 + $_.inlen = $_.in.length; //#17681 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17682 + for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17705 + $_.k = _2x; //#17684 + $k[$j++] = Infinity; //#17685 + $aload($geti($_.in, $_.k * 6, 3)); //#17685 + $_.msbs = $a(); //#17685 + $k[$j++] = Infinity; //#17686 + $aload($_.msbs); //#17687 + var _33 = $k[--$j]; //#17687 + var _34 = $k[--$j]; //#17687 + var _35 = $k[--$j]; //#17687 + $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17688 + for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17688 + var _38 = $k[--$j]; //#17688 + $k[$j++] = _38 % 900; //#17688 + $k[$j++] = ~~(_38 / 900); //#17688 + } //#17688 + $_.mscs = $a(); //#17688 + $k[$j++] = Infinity; //#17690 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17690 + $_.lsbs = $a(); //#17690 + $k[$j++] = Infinity; //#17691 + $aload($_.lsbs); //#17692 + var _3F = $k[--$j]; //#17692 + var _3G = $k[--$j]; //#17692 + var _3H = $k[--$j]; //#17692 + $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17693 + for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17693 + var _3K = $k[--$j]; //#17693 + $k[$j++] = _3K % 900; //#17693 + $k[$j++] = ~~(_3K / 900); //#17693 + } //#17693 + $_.lscs = $a(); //#17693 + var _3N = $get($_.lscs, 0); //#17695 + var _3P = $get($_.mscs, 0); //#17695 + $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17696 + var _3T = $get($_.lscs, 1); //#17697 + var _3V = $get($_.mscs, 0); //#17697 + var _3X = $get($_.mscs, 1); //#17697 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17698 + var _3b = $get($_.lscs, 2); //#17699 + var _3d = $get($_.mscs, 0); //#17699 + var _3f = $get($_.mscs, 1); //#17699 + var _3h = $get($_.mscs, 2); //#17699 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17700 + var _3l = $get($_.lscs, 3); //#17701 + var _3n = $get($_.mscs, 1); //#17701 + var _3p = $get($_.mscs, 2); //#17701 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17702 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17704 + } //#17704 + $_.rem = $_.inlen % 6; //#17706 + if ($_.rem != 0) { //#17711 + $k[$j++] = $_.out; //#17709 + $k[$j++] = $_.out.length - $_.rem; //#17709 + $k[$j++] = Infinity; //#17709 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17709 + var _46 = $a(); //#17709 + var _47 = $k[--$j]; //#17710 + $puti($k[--$j], _47, _46); //#17710 + } //#17710 + $k[$j++] = $_.out; //#17712 + }; //#17712 + if ($_.ccb) { //#17721 + $_.barlen = $_.barcode.length; //#17716 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17717 + $put($_.datcws, 0, 920); //#17718 + var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17719 + $put($_.datcws, 1, _4I); //#17719 + $k[$j++] = $_.datcws; //#17720 + $k[$j++] = 2; //#17720 + $k[$j++] = Infinity; //#17720 + $forall($_.barcode); //#17720 + var _4L = $a(); //#17720 + $k[$j++] = _4L; //#17720 + $_.encb(); //#17720 + var _4M = $k[--$j]; //#17720 + var _4N = $k[--$j]; //#17720 + $puti($k[--$j], _4N, _4M); //#17720 + } //#17720 + if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#18122 var _4U = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#17504 - $_.fncvals = _4U; //#17506 - $k[$j++] = 'msg'; //#17507 - $k[$j++] = $_.barcode; //#17507 - $k[$j++] = $_.fncvals; //#17507 - bwipp_parseinput(); //#17507 - var _4X = $k[--$j]; //#17507 - $_[$k[--$j]] = _4X; //#17507 - $_.msglen = $_.msg.length; //#17508 - $k[$j++] = Infinity; //#17511 - for (var _4b = 0, _4c = $_.msglen; _4b < _4c; _4b++) { //#17511 - $k[$j++] = 0; //#17511 - } //#17511 - $k[$j++] = 0; //#17511 - $_.numdigits = $a(); //#17511 - $k[$j++] = Infinity; //#17512 - for (var _4f = 0, _4g = $_.msglen; _4f < _4g; _4f++) { //#17512 - $k[$j++] = 0; //#17512 - } //#17512 - $k[$j++] = 0; //#17512 - $_.numtext = $a(); //#17512 - $k[$j++] = Infinity; //#17513 - for (var _4j = 0, _4k = $_.msglen; _4j < _4k; _4j++) { //#17513 - $k[$j++] = 0; //#17513 - } //#17513 - $k[$j++] = 0; //#17513 - $_.numbytes = $a(); //#17513 - $k[$j++] = Infinity; //#17514 - for (var _4n = 0, _4o = $_.msglen; _4n < _4o; _4n++) { //#17514 - $k[$j++] = 0; //#17514 - } //#17514 - $_.iseci = $a(); //#17514 - for (var _4r = $_.msglen - 1; _4r >= 0; _4r -= 1) { //#17527 - $_.i = _4r; //#17516 - var _4u = $get($_.msg, $_.i); //#17517 - if ((_4u >= 48) && (_4u <= 57)) { //#17519 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17518 - } //#17518 - var _54 = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17520 - if (_54 && ($get($_.numdigits, $_.i) < 13)) { //#17522 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17521 - } //#17521 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17525 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17524 - } //#17524 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17526 - } //#17526 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17528 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17529 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17530 - $_.seq = $a([]); //#17532 - $_.seqlen = 0; //#17532 - $_.state = $_.B; //#17532 - $_.p = 0; //#17532 - for (;;) { //#17586 - if ($_.p == $_.msglen) { //#17533 - break; //#17533 - } //#17533 - if ($get($_.iseci, $_.p)) { //#17584 - $_.eci = $get($_.msg, $_.p); //#17535 - $k[$j++] = Infinity; //#17538 - $aload($_.seq); //#17537 - $k[$j++] = $a([$_.eci]); //#17538 - $_.seq = $a(); //#17538 - $_.p = $_.p + 1; //#17540 - $k[$j++] = 'seqlen'; //#17541 - $k[$j++] = $_.seqlen; //#17541 - if ($_.eci <= -1810900) { //#17541 - $k[$j++] = 2; //#17541 - } else { //#17541 - var _5x = ($_.eci <= -1000900) ? 3 : 2; //#17541 - $k[$j++] = _5x; //#17541 - } //#17541 - var _5y = $k[--$j]; //#17541 - var _5z = $k[--$j]; //#17541 - $_[$k[--$j]] = $f(_5z + _5y); //#17541 - } else { //#17584 - $_.n = $get($_.numdigits, $_.p); //#17543 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17584 - $k[$j++] = Infinity; //#17548 - $aload($_.seq); //#17546 - $k[$j++] = $_.nl; //#17548 - $k[$j++] = Infinity; //#17548 - $aload($geti($_.msg, $_.p, $_.n)); //#17548 - var _6E = $a(); //#17548 - $k[$j++] = _6E; //#17548 - $_.seq = $a(); //#17548 - $_.state = $_.N; //#17550 - $_.p = $f($_.p + $_.n); //#17551 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17552 - } else { //#17584 - $_.t = $get($_.numtext, $_.p); //#17554 - if ($_.t >= 5) { //#17584 - $k[$j++] = Infinity; //#17561 - $aload($_.seq); //#17557 - if ($_.state != $_.T) { //#17560 - $k[$j++] = $_.tl; //#17559 - } //#17559 - $k[$j++] = Infinity; //#17561 - $aload($geti($_.msg, $_.p, $_.t)); //#17561 - var _6X = $a(); //#17561 - $k[$j++] = _6X; //#17561 - $_.seq = $a(); //#17561 - $_.state = $_.T; //#17563 - $_.p = $f($_.p + $_.t); //#17564 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17565 - } else { //#17584 - $_.b = $get($_.numbytes, $_.p); //#17567 - if (($_.b == 1) && ($_.state == $_.T)) { //#17584 - $k[$j++] = Infinity; //#17572 - $aload($_.seq); //#17570 - $k[$j++] = $_.bs; //#17572 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#17572 - $_.seq = $a(); //#17572 - $_.p = $f($_.p + $_.b); //#17574 - $_.seqlen = $f($_.seqlen + 2); //#17575 - } else { //#17584 - $k[$j++] = Infinity; //#17580 - $aload($_.seq); //#17578 - var _6w = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17579 - $k[$j++] = _6w; //#17580 - $k[$j++] = Infinity; //#17580 - $aload($geti($_.msg, $_.p, $_.b)); //#17580 - var _71 = $a(); //#17580 - $k[$j++] = _71; //#17580 - $_.seq = $a(); //#17580 - $_.state = $_.B; //#17582 - $_.p = $f($_.p + $_.b); //#17583 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - $k[$j++] = Infinity; //#17589 - $k[$j++] = $_.tl; //#17589 - $k[$j++] = 900; //#17589 - $k[$j++] = $_.bl; //#17589 - $k[$j++] = 901; //#17589 - $k[$j++] = $_.bl6; //#17589 - $k[$j++] = 924; //#17589 - $k[$j++] = $_.nl; //#17589 - $k[$j++] = 902; //#17589 - $k[$j++] = $_.bs; //#17589 - $k[$j++] = 913; //#17589 - $_.latchcws = $d(); //#17590 + ]); //#17732 + $_.fncvals = _4U; //#17733 + $k[$j++] = 'msg'; //#17734 + $k[$j++] = $_.barcode; //#17734 + $k[$j++] = $_.fncvals; //#17734 + bwipp_parseinput(); //#17734 + var _4X = $k[--$j]; //#17734 + $_[$k[--$j]] = _4X; //#17734 + $_.msglen = $_.msg.length; //#17735 + if ($_.msglen >= 9) { //#17753 + $aload($geti($_.msg, 0, 7)); //#17739 + var _4d = $k[--$j]; //#17740 + var _4e = $k[--$j]; //#17740 + $k[$j++] = _4d == 29; //#17740 + $k[$j++] = _4e; //#17740 + $j--; //#17740 + var _4f = $k[--$j]; //#17740 + var _4g = $k[--$j]; //#17740 + var _4h = $k[--$j]; //#17740 + var _4i = $k[--$j]; //#17741 + var _4j = $k[--$j]; //#17741 + var _4k = $k[--$j]; //#17741 + if (((((_4f && (_4g == 48)) && (_4h == 30)) && (_4i == 62)) && (_4j == 41)) && (_4k == 91)) { //#17752 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#17742 + var _4o = $k[--$j]; //#17743 + var _4p = $k[--$j]; //#17743 + if ((_4o == 4) && (_4p == 30)) { //#17751 + if ($get($_.msg, 5) == 53) { //#17748 + $k[$j++] = Infinity; //#17745 + $k[$j++] = $_.m05; //#17745 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17745 + $_.msg = $a(); //#17745 + } else { //#17748 + if ($get($_.msg, 5) == 54) { //#17749 + $k[$j++] = Infinity; //#17748 + $k[$j++] = $_.m06; //#17748 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17748 + $_.msg = $a(); //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + $_.msglen = $_.msg.length; //#17754 + $k[$j++] = Infinity; //#17757 + for (var _56 = 0, _57 = $_.msglen; _56 < _57; _56++) { //#17757 + $k[$j++] = 0; //#17757 + } //#17757 + $k[$j++] = 0; //#17757 + $_.numdigits = $a(); //#17757 + $k[$j++] = Infinity; //#17758 + for (var _5A = 0, _5B = $_.msglen; _5A < _5B; _5A++) { //#17758 + $k[$j++] = 0; //#17758 + } //#17758 + $k[$j++] = 0; //#17758 + $_.numtext = $a(); //#17758 + $k[$j++] = Infinity; //#17759 + for (var _5E = 0, _5F = $_.msglen; _5E < _5F; _5E++) { //#17759 + $k[$j++] = 0; //#17759 + } //#17759 + $k[$j++] = 0; //#17759 + $_.numbytes = $a(); //#17759 + $k[$j++] = Infinity; //#17760 + for (var _5I = 0, _5J = $_.msglen; _5I < _5J; _5I++) { //#17760 + $k[$j++] = 0; //#17760 + } //#17760 + $_.iseci = $a(); //#17760 + for (var _5M = $_.msglen - 1; _5M >= 0; _5M -= 1) { //#17773 + $_.i = _5M; //#17762 + var _5P = $get($_.msg, $_.i); //#17763 + if ((_5P >= 48) && (_5P <= 57)) { //#17765 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17764 + } //#17764 + var _5Z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17766 + if (_5Z && ($get($_.numdigits, $_.i) < 13)) { //#17768 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17767 + } //#17767 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17771 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17770 + } //#17770 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17772 + } //#17772 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17774 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17775 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17776 + $_.seq = $a([]); //#17778 + $_.seqlen = 0; //#17778 + $_.state = $_.B; //#17778 + $_.p = 0; //#17778 + for (;;) { //#17840 + if ($_.p == $_.msglen) { //#17779 + break; //#17779 + } //#17779 + var _6H = $get($_.msg, $_.p); //#17780 + if (($_.p == 0) && ((_6H == $_.m05) || (_6H == $_.m06))) { //#17838 + $k[$j++] = Infinity; //#17781 + $aload($_.seq); //#17782 + var _6P = ($get($_.msg, $_.p) == $_.m05) ? $_.m05 : $_.m06; //#17783 + $k[$j++] = _6P; //#17783 + $_.seq = $a(); //#17783 + $_.p = $_.p + 1; //#17785 + $_.seqlen = $_.seqlen + 1; //#17786 + } else { //#17838 + if ($get($_.iseci, $_.p)) { //#17838 + $_.eci = $get($_.msg, $_.p); //#17789 + $k[$j++] = Infinity; //#17790 + $aload($_.seq); //#17791 + $k[$j++] = $a([$_.eci]); //#17792 + $_.seq = $a(); //#17792 + $_.p = $_.p + 1; //#17794 + $k[$j++] = 'seqlen'; //#17795 + $k[$j++] = $_.seqlen; //#17795 + if ($_.eci <= -1810900) { //#17795 + $k[$j++] = 2; //#17795 + } else { //#17795 + var _6h = ($_.eci <= -1000900) ? 3 : 2; //#17795 + $k[$j++] = _6h; //#17795 + } //#17795 + var _6i = $k[--$j]; //#17795 + var _6j = $k[--$j]; //#17795 + $_[$k[--$j]] = $f(_6j + _6i); //#17795 + } else { //#17838 + $_.n = $get($_.numdigits, $_.p); //#17797 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17838 + $k[$j++] = Infinity; //#17799 + $aload($_.seq); //#17800 + $k[$j++] = $_.nl; //#17802 + $k[$j++] = Infinity; //#17802 + $aload($geti($_.msg, $_.p, $_.n)); //#17802 + var _6y = $a(); //#17802 + $k[$j++] = _6y; //#17802 + $_.seq = $a(); //#17802 + $_.state = $_.N; //#17804 + $_.p = $f($_.p + $_.n); //#17805 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17806 + } else { //#17838 + $_.t = $get($_.numtext, $_.p); //#17808 + if ($_.t >= 5) { //#17838 + $k[$j++] = Infinity; //#17810 + $aload($_.seq); //#17811 + if ($_.state != $_.T) { //#17814 + $k[$j++] = $_.tl; //#17813 + } //#17813 + $k[$j++] = Infinity; //#17815 + $aload($geti($_.msg, $_.p, $_.t)); //#17815 + var _7H = $a(); //#17815 + $k[$j++] = _7H; //#17815 + $_.seq = $a(); //#17815 + $_.state = $_.T; //#17817 + $_.p = $f($_.p + $_.t); //#17818 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17819 + } else { //#17838 + $_.b = $get($_.numbytes, $_.p); //#17821 + if (($_.b == 1) && ($_.state == $_.T)) { //#17838 + $k[$j++] = Infinity; //#17823 + $aload($_.seq); //#17824 + $k[$j++] = $_.bs; //#17826 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#17826 + $_.seq = $a(); //#17826 + $_.p = $f($_.p + $_.b); //#17828 + $_.seqlen = $f($_.seqlen + 2); //#17829 + } else { //#17838 + $k[$j++] = Infinity; //#17831 + $aload($_.seq); //#17832 + var _7g = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17833 + $k[$j++] = _7g; //#17834 + $k[$j++] = Infinity; //#17834 + $aload($geti($_.msg, $_.p, $_.b)); //#17834 + var _7l = $a(); //#17834 + $k[$j++] = _7l; //#17834 + $_.seq = $a(); //#17834 + $_.state = $_.B; //#17836 + $_.p = $f($_.p + $_.b); //#17837 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + $k[$j++] = Infinity; //#17842 + $k[$j++] = $_.tl; //#17843 + $k[$j++] = 900; //#17843 + $k[$j++] = $_.bl; //#17843 + $k[$j++] = 901; //#17843 + $k[$j++] = $_.bl6; //#17843 + $k[$j++] = 924; //#17843 + $k[$j++] = $_.nl; //#17843 + $k[$j++] = 902; //#17843 + $k[$j++] = $_.bs; //#17843 + $k[$j++] = 913; //#17843 + $k[$j++] = $_.m05; //#17843 + $k[$j++] = 916; //#17843 + $k[$j++] = $_.m06; //#17843 + $k[$j++] = 917; //#17843 + $_.latchcws = $d(); //#17844 $_.enca = function() { - var _7I = $get($get($_.charvals, $_.A), $k[--$j]); //#17593 - $k[$j++] = _7I; //#17593 - }; //#17593 + var _84 = $get($get($_.charvals, $_.A), $k[--$j]); //#17847 + $k[$j++] = _84; //#17847 + }; //#17847 $_.encl = function() { - var _7N = $get($get($_.charvals, $_.L), $k[--$j]); //#17594 - $k[$j++] = _7N; //#17594 - }; //#17594 + var _89 = $get($get($_.charvals, $_.L), $k[--$j]); //#17848 + $k[$j++] = _89; //#17848 + }; //#17848 $_.encm = function() { - var _7S = $get($get($_.charvals, $_.M), $k[--$j]); //#17595 - $k[$j++] = _7S; //#17595 - }; //#17595 + var _8E = $get($get($_.charvals, $_.M), $k[--$j]); //#17849 + $k[$j++] = _8E; //#17849 + }; //#17849 $_.encp = function() { - var _7X = $get($get($_.charvals, $_.P), $k[--$j]); //#17596 - $k[$j++] = _7X; //#17596 - }; //#17596 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17597 + var _8J = $get($get($_.charvals, $_.P), $k[--$j]); //#17850 + $k[$j++] = _8J; //#17850 + }; //#17850 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17851 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#17600 - $_.l = $_.l + 1; //#17601 - }; //#17601 + $put($_.text, $_.l, $k[--$j]); //#17854 + $_.l = $_.l + 1; //#17855 + }; //#17855 $_.enct = function() { - $_.in = $k[--$j]; //#17606 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17608 - $put($_.curlen, $_.submode, 0); //#17609 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17610 - $forall($_.in, function() { //#17680 - $_.char = $k[--$j]; //#17615 - for (;;) { //#17636 - $_.imp = false; //#17619 - var _7w = $a([$_.A, $_.L, $_.M, $_.P]); //#17620 - for (var _7x = 0, _7y = _7w.length; _7x < _7y; _7x++) { //#17634 - $_.x = $get(_7w, _7x); //#17621 - var _84 = $a([$_.A, $_.L, $_.M, $_.P]); //#17622 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#17633 - $_.y = $get(_84, _85); //#17623 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17624 - if ($_.cost < $get($_.curlen, $_.y)) { //#17632 - $put($_.curlen, $_.y, $_.cost); //#17626 - $k[$j++] = $_.curseq; //#17629 - $k[$j++] = $_.y; //#17629 - $k[$j++] = Infinity; //#17629 - $aload($get($_.curseq, $_.x)); //#17628 - $aload($get($get($_.latseq, $_.x), $_.y)); //#17629 - var _8X = $a(); //#17629 - var _8Y = $k[--$j]; //#17630 - $put($k[--$j], _8Y, _8X); //#17630 - $_.imp = true; //#17631 - } //#17631 - } //#17631 - } //#17631 - if (!$_.imp) { //#17635 - break; //#17635 - } //#17635 - } //#17635 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17639 - $_.nxtseq = $a(4); //#17640 - var _8l = $a([$_.A, $_.L, $_.M, $_.P]); //#17642 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#17675 - $_.x = $get(_8l, _8m); //#17643 - for (;;) { //#17673 - var _8t = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17647 - if (!_8t) { //#17647 - break; //#17647 - } //#17647 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#17650 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#17654 - $put($_.nxtlen, $_.x, $_.cost); //#17652 - $k[$j++] = $_.nxtseq; //#17653 - $k[$j++] = $_.x; //#17653 - $k[$j++] = Infinity; //#17653 - $aload($get($_.curseq, $_.x)); //#17653 - $k[$j++] = $_.char; //#17653 - var _9A = $a(); //#17653 - var _9B = $k[--$j]; //#17653 - $put($k[--$j], _9B, _9A); //#17653 - } //#17653 - var _9H = $a([$_.A, $_.L, $_.M, $_.P]); //#17657 - for (var _9I = 0, _9J = _9H.length; _9I < _9J; _9I++) { //#17670 - $_.y = $get(_9H, _9I); //#17658 - if ($ne($_.x, $_.y)) { //#17669 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17660 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#17668 - $put($_.nxtlen, $_.y, $_.cost); //#17662 - $k[$j++] = $_.nxtseq; //#17666 - $k[$j++] = $_.y; //#17666 - $k[$j++] = Infinity; //#17666 - $aload($get($_.curseq, $_.y)); //#17664 - var _9j = ($_.x == $_.A) ? $_.as : $_.ps; //#17665 - $k[$j++] = _9j; //#17666 - $k[$j++] = $_.char; //#17666 - var _9l = $a(); //#17666 - var _9m = $k[--$j]; //#17667 - $put($k[--$j], _9m, _9l); //#17667 - } //#17667 - } //#17667 - } //#17667 - break; //#17672 - } //#17672 - } //#17672 - $_.curlen = $_.nxtlen; //#17677 - $_.curseq = $_.nxtseq; //#17678 - }); //#17678 - $_.minseq = $_.e; //#17683 - var _9v = $a([$_.A, $_.L, $_.M, $_.P]); //#17684 - for (var _9w = 0, _9x = _9v.length; _9w < _9x; _9w++) { //#17690 - $_.k = $get(_9v, _9w); //#17685 - if ($get($_.curlen, $_.k) < $_.minseq) { //#17689 - $_.minseq = $get($_.curlen, $_.k); //#17687 - $_.txtseq = $get($_.curseq, $_.k); //#17688 - } //#17688 - } //#17688 - $_.text = $a($_.minseq); //#17693 - $_.k = 0; //#17694 - $_.l = 0; //#17694 - for (;;) { //#17714 - if ($_.k >= $_.txtseq.length) { //#17695 - break; //#17695 - } //#17695 - $_.char = $get($_.txtseq, $_.k); //#17697 - $k[$j++] = $_.char; //#17700 + $_.in = $k[--$j]; //#17860 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17862 + $put($_.curlen, $_.submode, 0); //#17863 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17864 + $forall($_.in, function() { //#17934 + $_.char = $k[--$j]; //#17869 + for (;;) { //#17890 + $_.imp = false; //#17873 + var _8i = $a([$_.A, $_.L, $_.M, $_.P]); //#17874 + for (var _8j = 0, _8k = _8i.length; _8j < _8k; _8j++) { //#17888 + $_.x = $get(_8i, _8j); //#17875 + var _8q = $a([$_.A, $_.L, $_.M, $_.P]); //#17876 + for (var _8r = 0, _8s = _8q.length; _8r < _8s; _8r++) { //#17887 + $_.y = $get(_8q, _8r); //#17877 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17878 + if ($_.cost < $get($_.curlen, $_.y)) { //#17886 + $put($_.curlen, $_.y, $_.cost); //#17880 + $k[$j++] = $_.curseq; //#17883 + $k[$j++] = $_.y; //#17883 + $k[$j++] = Infinity; //#17881 + $aload($get($_.curseq, $_.x)); //#17882 + $aload($get($get($_.latseq, $_.x), $_.y)); //#17883 + var _9J = $a(); //#17883 + var _9K = $k[--$j]; //#17884 + $put($k[--$j], _9K, _9J); //#17884 + $_.imp = true; //#17885 + } //#17885 + } //#17885 + } //#17885 + if (!$_.imp) { //#17889 + break; //#17889 + } //#17889 + } //#17889 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17893 + $_.nxtseq = $a(4); //#17894 + var _9X = $a([$_.A, $_.L, $_.M, $_.P]); //#17896 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#17929 + $_.x = $get(_9X, _9Y); //#17897 + for (;;) { //#17927 + var _9f = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17901 + if (!_9f) { //#17901 + break; //#17901 + } //#17901 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#17904 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#17908 + $put($_.nxtlen, $_.x, $_.cost); //#17906 + $k[$j++] = $_.nxtseq; //#17907 + $k[$j++] = $_.x; //#17907 + $k[$j++] = Infinity; //#17907 + $aload($get($_.curseq, $_.x)); //#17907 + $k[$j++] = $_.char; //#17907 + var _9w = $a(); //#17907 + var _9x = $k[--$j]; //#17907 + $put($k[--$j], _9x, _9w); //#17907 + } //#17907 + var _A3 = $a([$_.A, $_.L, $_.M, $_.P]); //#17911 + for (var _A4 = 0, _A5 = _A3.length; _A4 < _A5; _A4++) { //#17924 + $_.y = $get(_A3, _A4); //#17912 + if ($ne($_.x, $_.y)) { //#17923 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17914 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#17922 + $put($_.nxtlen, $_.y, $_.cost); //#17916 + $k[$j++] = $_.nxtseq; //#17920 + $k[$j++] = $_.y; //#17920 + $k[$j++] = Infinity; //#17917 + $aload($get($_.curseq, $_.y)); //#17918 + var _AV = ($_.x == $_.A) ? $_.as : $_.ps; //#17919 + $k[$j++] = _AV; //#17920 + $k[$j++] = $_.char; //#17920 + var _AX = $a(); //#17920 + var _AY = $k[--$j]; //#17921 + $put($k[--$j], _AY, _AX); //#17921 + } //#17921 + } //#17921 + } //#17921 + break; //#17926 + } //#17926 + } //#17926 + $_.curlen = $_.nxtlen; //#17931 + $_.curseq = $_.nxtseq; //#17932 + }); //#17932 + $_.minseq = $_.e; //#17937 + var _Ah = $a([$_.A, $_.L, $_.M, $_.P]); //#17938 + for (var _Ai = 0, _Aj = _Ah.length; _Ai < _Aj; _Ai++) { //#17944 + $_.k = $get(_Ah, _Ai); //#17939 + if ($get($_.curlen, $_.k) < $_.minseq) { //#17943 + $_.minseq = $get($_.curlen, $_.k); //#17941 + $_.txtseq = $get($_.curseq, $_.k); //#17942 + } //#17942 + } //#17942 + $_.text = $a($_.minseq); //#17947 + $_.k = 0; //#17948 + $_.l = 0; //#17948 + for (;;) { //#17968 + if ($_.k >= $_.txtseq.length) { //#17949 + break; //#17949 + } //#17949 + $_.char = $get($_.txtseq, $_.k); //#17951 + $k[$j++] = $_.char; //#17954 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#17700 - $_.addtotext(); //#17700 - $_.k = $_.k + 1; //#17701 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17707 - $k[$j++] = $get($_.txtseq, $_.k); //#17705 - if ($_.char == $_.as) { //#17705 - $_.enca(); //#17705 - } else { //#17705 - $_.encp(); //#17705 - } //#17705 - $_.addtotext(); //#17705 - $_.k = $_.k + 1; //#17706 - } //#17706 - if ($_.char == $_.al) { //#17710 - $_.submode = $_.A; //#17710 - } //#17710 - if ($_.char == $_.ll) { //#17711 - $_.submode = $_.L; //#17711 - } //#17711 - if ($_.char == $_.ml) { //#17712 - $_.submode = $_.M; //#17712 - } //#17712 - if ($_.char == $_.pl) { //#17713 - $_.submode = $_.P; //#17713 - } //#17713 - } //#17713 - if (($_.text.length % 2) == 1) { //#17761 - if ($_.submode == $_.P) { //#17757 - $k[$j++] = 'pad'; //#17718 - $k[$j++] = $_.al; //#17718 - $_.encp(); //#17718 - var _Am = $k[--$j]; //#17718 - $_[$k[--$j]] = _Am; //#17718 - $_.submode = $_.A; //#17719 - } else { //#17757 - $_.nextecitext = false; //#17722 - for (var _As = $_.i + 1, _Ar = $_.seq.length - 1; _As <= _Ar; _As += 1) { //#17729 - $_.ti = _As; //#17725 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17726 - $_.nextecitext = false; //#17726 - break; //#17726 - } //#17726 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17727 - break; //#17727 - } //#17727 - $_.nextecitext = true; //#17728 - } //#17728 - if ($_.nextecitext) { //#17757 - if ($_.submode == $_.A) { //#17754 - var _BB = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17732 - if (_BB) { //#17737 - $k[$j++] = 'pad'; //#17733 - $k[$j++] = $_.ll; //#17733 - $_.enca(); //#17733 - var _BD = $k[--$j]; //#17733 - $_[$k[--$j]] = _BD; //#17733 - $_.submode = $_.L; //#17734 - } else { //#17737 - $k[$j++] = 'pad'; //#17736 - $k[$j++] = $_.ml; //#17736 - $_.enca(); //#17736 - var _BH = $k[--$j]; //#17736 - $_[$k[--$j]] = _BH; //#17736 - $_.submode = $_.M; //#17737 - } //#17737 - } else { //#17754 - if ($_.submode == $_.M) { //#17754 - var _BT = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17741 - if (_BT) { //#17750 - $k[$j++] = 'pad'; //#17742 - $k[$j++] = $_.ll; //#17742 - $_.encm(); //#17742 - var _BV = $k[--$j]; //#17742 - $_[$k[--$j]] = _BV; //#17742 - $_.submode = $_.L; //#17743 - } else { //#17750 - var _Bf = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17745 - if (_Bf) { //#17750 - $k[$j++] = 'pad'; //#17746 - $k[$j++] = $_.pl; //#17746 - $_.encm(); //#17746 - var _Bh = $k[--$j]; //#17746 - $_[$k[--$j]] = _Bh; //#17746 - $_.submode = $_.P; //#17747 - } else { //#17750 - $k[$j++] = 'pad'; //#17749 - $k[$j++] = $_.al; //#17749 - $_.encm(); //#17749 - var _Bl = $k[--$j]; //#17749 - $_[$k[--$j]] = _Bl; //#17749 - $_.submode = $_.A; //#17750 - } //#17750 - } //#17750 - } else { //#17754 - $k[$j++] = 'pad'; //#17753 - $k[$j++] = $_.ml; //#17753 - $_.encl(); //#17753 - var _Bp = $k[--$j]; //#17753 - $_[$k[--$j]] = _Bp; //#17753 - $_.submode = $_.M; //#17754 - } //#17754 - } //#17754 - } else { //#17757 - $k[$j++] = 'pad'; //#17757 - $k[$j++] = $_.ps; //#17757 + } //#17954 + $_.addtotext(); //#17954 + $_.k = $_.k + 1; //#17955 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17961 + $k[$j++] = $get($_.txtseq, $_.k); //#17959 + if ($_.char == $_.as) { //#17959 + $_.enca(); //#17959 + } else { //#17959 + $_.encp(); //#17959 + } //#17959 + $_.addtotext(); //#17959 + $_.k = $_.k + 1; //#17960 + } //#17960 + if ($_.char == $_.al) { //#17964 + $_.submode = $_.A; //#17964 + } //#17964 + if ($_.char == $_.ll) { //#17965 + $_.submode = $_.L; //#17965 + } //#17965 + if ($_.char == $_.ml) { //#17966 + $_.submode = $_.M; //#17966 + } //#17966 + if ($_.char == $_.pl) { //#17967 + $_.submode = $_.P; //#17967 + } //#17967 + } //#17967 + if (($_.text.length % 2) == 1) { //#18015 + if ($_.submode == $_.P) { //#18011 + $k[$j++] = 'pad'; //#17972 + $k[$j++] = $_.al; //#17972 + $_.encp(); //#17972 + var _BY = $k[--$j]; //#17972 + $_[$k[--$j]] = _BY; //#17972 + $_.submode = $_.A; //#17973 + } else { //#18011 + $_.nextecitext = false; //#17976 + for (var _Be = $_.i + 1, _Bd = $_.seq.length - 1; _Be <= _Bd; _Be += 1) { //#17983 + $_.ti = _Be; //#17979 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17980 + $_.nextecitext = false; //#17980 + break; //#17980 + } //#17980 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17981 + break; //#17981 + } //#17981 + $_.nextecitext = true; //#17982 + } //#17982 + if ($_.nextecitext) { //#18011 + if ($_.submode == $_.A) { //#18008 + var _Bx = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17986 + if (_Bx) { //#17991 + $k[$j++] = 'pad'; //#17987 + $k[$j++] = $_.ll; //#17987 + $_.enca(); //#17987 + var _Bz = $k[--$j]; //#17987 + $_[$k[--$j]] = _Bz; //#17987 + $_.submode = $_.L; //#17988 + } else { //#17991 + $k[$j++] = 'pad'; //#17990 + $k[$j++] = $_.ml; //#17990 + $_.enca(); //#17990 + var _C3 = $k[--$j]; //#17990 + $_[$k[--$j]] = _C3; //#17990 + $_.submode = $_.M; //#17991 + } //#17991 + } else { //#18008 + if ($_.submode == $_.M) { //#18008 + var _CF = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17995 + if (_CF) { //#18004 + $k[$j++] = 'pad'; //#17996 + $k[$j++] = $_.ll; //#17996 + $_.encm(); //#17996 + var _CH = $k[--$j]; //#17996 + $_[$k[--$j]] = _CH; //#17996 + $_.submode = $_.L; //#17997 + } else { //#18004 + var _CR = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17999 + if (_CR) { //#18004 + $k[$j++] = 'pad'; //#18000 + $k[$j++] = $_.pl; //#18000 + $_.encm(); //#18000 + var _CT = $k[--$j]; //#18000 + $_[$k[--$j]] = _CT; //#18000 + $_.submode = $_.P; //#18001 + } else { //#18004 + $k[$j++] = 'pad'; //#18003 + $k[$j++] = $_.al; //#18003 + $_.encm(); //#18003 + var _CX = $k[--$j]; //#18003 + $_[$k[--$j]] = _CX; //#18003 + $_.submode = $_.A; //#18004 + } //#18004 + } //#18004 + } else { //#18008 + $k[$j++] = 'pad'; //#18007 + $k[$j++] = $_.ml; //#18007 + $_.encl(); //#18007 + var _Cb = $k[--$j]; //#18007 + $_[$k[--$j]] = _Cb; //#18007 + $_.submode = $_.M; //#18008 + } //#18008 + } //#18008 + } else { //#18011 + $k[$j++] = 'pad'; //#18011 + $k[$j++] = $_.ps; //#18011 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#17757 - var _Bx = $k[--$j]; //#17757 - $_[$k[--$j]] = _Bx; //#17757 - } //#17757 - } //#17757 - $k[$j++] = Infinity; //#17760 - $aload($_.text); //#17760 - $k[$j++] = $_.pad; //#17760 - $_.text = $a(); //#17760 - } //#17760 - $_.out = $a(~~($_.text.length / 2)); //#17763 - for (var _C6 = 0, _C5 = $_.out.length - 1; _C6 <= _C5; _C6 += 1) { //#17767 - $_.k = _C6; //#17765 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#17766 - } //#17766 - $k[$j++] = $_.out; //#17769 - }; //#17769 + } //#18011 + var _Cj = $k[--$j]; //#18011 + $_[$k[--$j]] = _Cj; //#18011 + } //#18011 + } //#18011 + $k[$j++] = Infinity; //#18014 + $aload($_.text); //#18014 + $k[$j++] = $_.pad; //#18014 + $_.text = $a(); //#18014 + } //#18014 + $_.out = $a(~~($_.text.length / 2)); //#18017 + for (var _Cs = 0, _Cr = $_.out.length - 1; _Cs <= _Cr; _Cs += 1) { //#18021 + $_.k = _Cs; //#18019 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#18020 + } //#18020 + $k[$j++] = $_.out; //#18023 + }; //#18023 $_.encn = function() { - $_.in = $k[--$j]; //#17774 - $_.out = $a([]); //#17775 - for (var _CK = 0, _CJ = $_.in.length - 1; _CK <= _CJ; _CK += 44) { //#17803 - $_.k = _CK; //#17777 - $k[$j++] = Infinity; //#17780 - var _CP = $_.in.length - $_.k; //#17779 - $k[$j++] = 1; //#17779 - $k[$j++] = $_.in; //#17779 - $k[$j++] = $_.k; //#17779 - $k[$j++] = _CP; //#17779 - if (_CP > 44) { //#17779 - $j--; //#17779 - $k[$j++] = 44; //#17779 - } //#17779 - var _CQ = $k[--$j]; //#17779 - var _CR = $k[--$j]; //#17779 - var _CT = $geti($k[--$j], _CR, _CQ); //#17779 - for (var _CU = 0, _CV = _CT.length; _CU < _CV; _CU++) { //#17780 - $k[$j++] = $f($get(_CT, _CU) - 48); //#17780 - } //#17780 - $_.gmod = $a(); //#17780 - $_.cwn = $a([]); //#17782 - for (;;) { //#17801 - $_.dv = 900; //#17783 - $_.gmul = $a([]); //#17784 - $_.val = 0; //#17784 - for (;;) { //#17796 - if ($_.gmod.length == 0) { //#17785 - break; //#17785 - } //#17785 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#17786 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#17787 - if ($_.val < $_.dv) { //#17793 - if ($_.gmul.length != 0) { //#17791 - $k[$j++] = Infinity; //#17790 - $aload($_.gmul); //#17790 - $k[$j++] = 0; //#17790 - $_.gmul = $a(); //#17790 - } //#17790 - } else { //#17793 - $k[$j++] = Infinity; //#17793 - $aload($_.gmul); //#17793 - $k[$j++] = ~~($_.val / $_.dv); //#17793 - $_.gmul = $a(); //#17793 - } //#17793 - $_.val = $_.val % $_.dv; //#17795 - } //#17795 - $_.dv = $_.val; //#17797 - $k[$j++] = Infinity; //#17798 - $k[$j++] = $_.dv; //#17798 - $aload($_.cwn); //#17798 - $_.cwn = $a(); //#17798 - $_.gmod = $_.gmul; //#17799 - if ($_.gmul.length == 0) { //#17800 - break; //#17800 - } //#17800 - } //#17800 - $k[$j++] = Infinity; //#17802 - $aload($_.out); //#17802 - $aload($_.cwn); //#17802 - $_.out = $a(); //#17802 - } //#17802 - $k[$j++] = $_.out; //#17804 - }; //#17804 + $_.in = $k[--$j]; //#18028 + $_.out = $a([]); //#18029 + for (var _D6 = 0, _D5 = $_.in.length - 1; _D6 <= _D5; _D6 += 44) { //#18057 + $_.k = _D6; //#18031 + $k[$j++] = Infinity; //#18032 + var _DB = $_.in.length - $_.k; //#18033 + $k[$j++] = 1; //#18033 + $k[$j++] = $_.in; //#18033 + $k[$j++] = $_.k; //#18033 + $k[$j++] = _DB; //#18033 + if (_DB > 44) { //#18033 + $j--; //#18033 + $k[$j++] = 44; //#18033 + } //#18033 + var _DC = $k[--$j]; //#18033 + var _DD = $k[--$j]; //#18033 + var _DF = $geti($k[--$j], _DD, _DC); //#18033 + for (var _DG = 0, _DH = _DF.length; _DG < _DH; _DG++) { //#18034 + $k[$j++] = $f($get(_DF, _DG) - 48); //#18034 + } //#18034 + $_.gmod = $a(); //#18034 + $_.cwn = $a([]); //#18036 + for (;;) { //#18055 + $_.dv = 900; //#18037 + $_.gmul = $a([]); //#18038 + $_.val = 0; //#18038 + for (;;) { //#18050 + if ($_.gmod.length == 0) { //#18039 + break; //#18039 + } //#18039 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#18040 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#18041 + if ($_.val < $_.dv) { //#18047 + if ($_.gmul.length != 0) { //#18045 + $k[$j++] = Infinity; //#18044 + $aload($_.gmul); //#18044 + $k[$j++] = 0; //#18044 + $_.gmul = $a(); //#18044 + } //#18044 + } else { //#18047 + $k[$j++] = Infinity; //#18047 + $aload($_.gmul); //#18047 + $k[$j++] = ~~($_.val / $_.dv); //#18047 + $_.gmul = $a(); //#18047 + } //#18047 + $_.val = $_.val % $_.dv; //#18049 + } //#18049 + $_.dv = $_.val; //#18051 + $k[$j++] = Infinity; //#18052 + $k[$j++] = $_.dv; //#18052 + $aload($_.cwn); //#18052 + $_.cwn = $a(); //#18052 + $_.gmod = $_.gmul; //#18053 + if ($_.gmul.length == 0) { //#18054 + break; //#18054 + } //#18054 + } //#18054 + $k[$j++] = Infinity; //#18056 + $aload($_.out); //#18056 + $aload($_.cwn); //#18056 + $_.out = $a(); //#18056 + } //#18056 + $k[$j++] = $_.out; //#18058 + }; //#18058 $_.ence = function() { - var _D4 = $f((-$get($k[--$j], 0)) - 1000000); //#17809 - $k[$j++] = _D4; //#17817 - if (_D4 <= 899) { //#17816 - var _D5 = $k[--$j]; //#17810 - $k[$j++] = 927; //#17810 - $k[$j++] = _D5; //#17810 - $astore($a(2)); //#17810 - } else { //#17816 - var _D7 = $k[--$j]; //#17811 - $k[$j++] = _D7; //#17817 - if (_D7 <= 810899) { //#17816 - var _D8 = $k[--$j]; //#17812 - $k[$j++] = 926; //#17812 - $k[$j++] = (~~(_D8 / 900)) - 1; //#17812 - $k[$j++] = _D8 % 900; //#17812 - $astore($a(3)); //#17812 - } else { //#17816 - var _DA = $k[--$j]; //#17813 - $k[$j++] = _DA; //#17817 - if (_DA <= 811799) { //#17816 - var _DB = $k[--$j]; //#17814 - $k[$j++] = 925; //#17814 - $k[$j++] = $f(_DB - 810900); //#17814 - $astore($a(2)); //#17814 - } else { //#17816 - $k[$j++] = 'bwipp.pdf417badECI#17816'; //#17816 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17816 - bwipp_raiseerror(); //#17816 - } //#17816 - } //#17816 - } //#17816 - }; //#17816 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17820 + var _Dq = $f((-$get($k[--$j], 0)) - 1000000); //#18063 + $k[$j++] = _Dq; //#18071 + if (_Dq <= 899) { //#18070 + var _Dr = $k[--$j]; //#18064 + $k[$j++] = 927; //#18064 + $k[$j++] = _Dr; //#18064 + $astore($a(2)); //#18064 + } else { //#18070 + var _Dt = $k[--$j]; //#18065 + $k[$j++] = _Dt; //#18071 + if (_Dt <= 810899) { //#18070 + var _Du = $k[--$j]; //#18066 + $k[$j++] = 926; //#18066 + $k[$j++] = (~~(_Du / 900)) - 1; //#18066 + $k[$j++] = _Du % 900; //#18066 + $astore($a(3)); //#18066 + } else { //#18070 + var _Dw = $k[--$j]; //#18067 + $k[$j++] = _Dw; //#18071 + if (_Dw <= 811799) { //#18070 + var _Dx = $k[--$j]; //#18068 + $k[$j++] = 925; //#18068 + $k[$j++] = $f(_Dx - 810900); //#18068 + $astore($a(2)); //#18068 + } else { //#18070 + $k[$j++] = 'bwipp.pdf417badECI#18070'; //#18070 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#18070 + bwipp_raiseerror(); //#18070 + } //#18070 + } //#18070 + } //#18070 + }; //#18070 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#18074 $_.addtocws = function() { - var _DE = $k[--$j]; //#17823 - $puti($_.datcws, $_.j, _DE); //#17823 - $_.j = _DE.length + $_.j; //#17824 - }; //#17824 - $_.datcws = $a($_.seqlen); //#17829 - $_.i = 0; //#17830 - $_.j = 0; //#17830 - for (;;) { //#17850 - if ($_.i >= $_.seq.length) { //#17831 - break; //#17831 - } //#17831 - $_.chars = $get($_.seq, $_.i); //#17832 - if ($eq($type($_.chars), 'arraytype')) { //#17846 - if ($get($_.chars, 0) <= -1000000) { //#17837 - $k[$j++] = $_.chars; //#17835 - $_.ence(); //#17835 - $_.addtocws(); //#17835 - } else { //#17837 - $k[$j++] = $_.chars; //#17837 + var _E0 = $k[--$j]; //#18077 + $puti($_.datcws, $_.j, _E0); //#18077 + $_.j = _E0.length + $_.j; //#18078 + }; //#18078 + $_.datcws = $a($_.seqlen); //#18083 + $_.i = 0; //#18084 + $_.j = 0; //#18084 + for (;;) { //#18120 + if ($_.i >= $_.seq.length) { //#18085 + break; //#18085 + } //#18085 + $_.chars = $get($_.seq, $_.i); //#18086 + if ($eq($type($_.chars), 'arraytype')) { //#18116 + if ($get($_.chars, 0) <= -1000000) { //#18091 + $k[$j++] = $_.chars; //#18089 + $_.ence(); //#18089 + $_.addtocws(); //#18089 + } else { //#18091 + $k[$j++] = $_.chars; //#18091 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#17837 - $_.addtocws(); //#17837 - } //#17837 - } else { //#17846 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17840 - $_.addtocws(); //#17840 - if ($_.chars == $_.tl) { //#17841 - $_.state = $_.T; //#17841 - $_.submode = $_.A; //#17841 - } //#17841 - if ($_.chars == $_.nl) { //#17842 - $_.state = $_.N; //#17842 - } //#17842 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17843 - $_.state = $_.B; //#17843 - } //#17843 - if ($_.chars == $_.bs) { //#17847 - $_.i = $_.i + 1; //#17845 - $k[$j++] = $get($_.seq, $_.i); //#17846 - $_.encb(); //#17846 - $_.addtocws(); //#17846 - } //#17846 - } //#17846 - $_.i = $_.i + 1; //#17849 - } //#17849 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17851 - } //#17851 - if (!bwipp_micropdf417.__17915__) { //#17915 - $_ = Object.create($_); //#17915 - $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#17875 - $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#17914 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17914 - bwipp_micropdf417.__17915__ = 1; //#17914 - $_ = Object.getPrototypeOf($_); //#17914 - } //#17914 - $k[$j++] = 'metrics'; //#17917 - if ($_.cca) { //#17917 - $k[$j++] = $_.ccametrics; //#17917 - } else { //#17917 - $k[$j++] = $_.nonccametrics; //#17917 - } //#17917 - var _Eu = $k[--$j]; //#17917 - $_[$k[--$j]] = _Eu; //#17917 - $_.urows = $_.rows; //#17920 - $_.ucols = $_.columns; //#17921 - $forall($_.metrics, function() { //#17936 - $_.m = $k[--$j]; //#17923 - $_.c = $get($_.m, 0); //#17924 - $_.r = $get($_.m, 1); //#17925 - $_.k = $get($_.m, 2); //#17926 - $_.rapl = $get($_.m, 3); //#17927 - $_.rapc = $get($_.m, 4); //#17928 - $_.rapr = $get($_.m, 5); //#17929 - $_.ncws = $f(($_.r * $_.c) - $_.k); //#17930 - $_.okay = true; //#17931 - if ($_.datcws.length > $_.ncws) { //#17932 - $_.okay = false; //#17932 - } //#17932 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#17933 - $_.okay = false; //#17933 - } //#17933 - if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#17934 - $_.okay = false; //#17934 - } //#17934 - if ($_.okay) { //#17935 - return true; //#17935 - } //#17935 - }); //#17935 - if (!$_.okay) { //#17940 - $k[$j++] = 'bwipp.micropdf417noValidSymbol#17939'; //#17939 - $k[$j++] = "Maximum length exceeded or invalid size"; //#17939 - bwipp_raiseerror(); //#17939 - } //#17939 - $_.m = $_.datcws.length; //#17943 - $_.n = $f(($_.c * $_.r) - $_.k); //#17944 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#17945 - $puti($_.cws, 0, $_.datcws); //#17946 - $k[$j++] = $_.cws; //#17947 - $k[$j++] = $_.m; //#17947 - $k[$j++] = Infinity; //#17947 - for (var _Fc = 0, _Fd = $f($_.n - $_.m); _Fc < _Fd; _Fc++) { //#17947 - $k[$j++] = 900; //#17947 - } //#17947 - var _Fe = $a(); //#17947 - var _Ff = $k[--$j]; //#17947 - $puti($k[--$j], _Ff, _Fe); //#17947 - $k[$j++] = $_.cws; //#17948 - $k[$j++] = $_.n; //#17948 - $k[$j++] = Infinity; //#17948 - for (var _Fk = 0, _Fl = $_.k; _Fk < _Fl; _Fk++) { //#17948 - $k[$j++] = 0; //#17948 - } //#17948 - $k[$j++] = 0; //#17948 - var _Fm = $a(); //#17948 - var _Fn = $k[--$j]; //#17948 - $puti($k[--$j], _Fn, _Fm); //#17948 - if (!bwipp_micropdf417.__17955__) { //#17955 - $_ = Object.create($_); //#17955 - $k[$j++] = Infinity; //#17952 - $k[$j++] = 1; //#17952 - for (var _Fp = 0, _Fq = 928; _Fp < _Fq; _Fp++) { //#17952 - var _Fr = $k[--$j]; //#17952 - $k[$j++] = _Fr; //#17952 - $k[$j++] = (_Fr * 3) % 929; //#17952 - } //#17952 - $_.rsalog = $a(); //#17952 - $_.rslog = $a(929); //#17953 - for (var _Fu = 1; _Fu <= 928; _Fu += 1) { //#17954 - $put($_.rslog, $get($_.rsalog, _Fu), _Fu); //#17954 - } //#17954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17954 - bwipp_micropdf417.__17955__ = 1; //#17954 - $_ = Object.getPrototypeOf($_); //#17954 - } //#17954 + } //#18091 + $_.addtocws(); //#18091 + } //#18091 + } else { //#18116 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#18094 + $_.addtocws(); //#18094 + if ($_.chars == $_.tl) { //#18095 + $_.state = $_.T; //#18095 + $_.submode = $_.A; //#18095 + } //#18095 + if ($_.chars == $_.nl) { //#18096 + $_.state = $_.N; //#18096 + } //#18096 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#18097 + $_.state = $_.B; //#18097 + } //#18097 + if ($_.chars == $_.bs) { //#18101 + $_.i = $_.i + 1; //#18099 + $k[$j++] = $get($_.seq, $_.i); //#18100 + $_.encb(); //#18100 + $_.addtocws(); //#18100 + } //#18100 + if ($_.chars == $_.m05) { //#18109 + if (($_.i + 1) < $_.seq.length) { //#18107 + if ($get($_.seq, $_.i + 1) == $_.nl) { //#18106 + $_.i = $_.i + 1; //#18105 + } //#18105 + } //#18105 + $_.state = $_.N; //#18108 + } //#18108 + if ($_.chars == $_.m06) { //#18117 + if (($_.i + 1) < $_.seq.length) { //#18115 + if ($get($_.seq, $_.i + 1) == $_.tl) { //#18114 + $_.i = $_.i + 1; //#18113 + } //#18113 + } //#18113 + $_.state = $_.T; //#18116 + $_.submode = $_.M; //#18116 + } //#18116 + } //#18116 + $_.i = $_.i + 1; //#18119 + } //#18119 + $_.datcws = $geti($_.datcws, 0, $_.j); //#18121 + } //#18121 + if (!bwipp_micropdf417.__18185__) { //#18185 + $_ = Object.create($_); //#18185 + $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#18145 + $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#18184 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18184 + bwipp_micropdf417.__18185__ = 1; //#18184 + $_ = Object.getPrototypeOf($_); //#18184 + } //#18184 + $k[$j++] = 'metrics'; //#18187 + if ($_.cca) { //#18187 + $k[$j++] = $_.ccametrics; //#18187 + } else { //#18187 + $k[$j++] = $_.nonccametrics; //#18187 + } //#18187 + var _G1 = $k[--$j]; //#18187 + $_[$k[--$j]] = _G1; //#18187 + $_.urows = $_.rows; //#18190 + $_.ucols = $_.columns; //#18191 + $forall($_.metrics, function() { //#18206 + $_.m = $k[--$j]; //#18193 + $_.c = $get($_.m, 0); //#18194 + $_.r = $get($_.m, 1); //#18195 + $_.k = $get($_.m, 2); //#18196 + $_.rapl = $get($_.m, 3); //#18197 + $_.rapc = $get($_.m, 4); //#18198 + $_.rapr = $get($_.m, 5); //#18199 + $_.ncws = $f(($_.r * $_.c) - $_.k); //#18200 + $_.okay = true; //#18201 + if ($_.datcws.length > $_.ncws) { //#18202 + $_.okay = false; //#18202 + } //#18202 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#18203 + $_.okay = false; //#18203 + } //#18203 + if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#18204 + $_.okay = false; //#18204 + } //#18204 + if ($_.okay) { //#18205 + return true; //#18205 + } //#18205 + }); //#18205 + if (!$_.okay) { //#18210 + $k[$j++] = 'bwipp.micropdf417noValidSymbol#18209'; //#18209 + $k[$j++] = "Maximum length exceeded or invalid size"; //#18209 + bwipp_raiseerror(); //#18209 + } //#18209 + $_.m = $_.datcws.length; //#18213 + $_.n = $f(($_.c * $_.r) - $_.k); //#18214 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#18215 + $puti($_.cws, 0, $_.datcws); //#18216 + $k[$j++] = $_.cws; //#18217 + $k[$j++] = $_.m; //#18217 + $k[$j++] = Infinity; //#18217 + for (var _Gj = 0, _Gk = $f($_.n - $_.m); _Gj < _Gk; _Gj++) { //#18217 + $k[$j++] = 900; //#18217 + } //#18217 + var _Gl = $a(); //#18217 + var _Gm = $k[--$j]; //#18217 + $puti($k[--$j], _Gm, _Gl); //#18217 + $k[$j++] = $_.cws; //#18218 + $k[$j++] = $_.n; //#18218 + $k[$j++] = Infinity; //#18218 + for (var _Gr = 0, _Gs = $_.k; _Gr < _Gs; _Gr++) { //#18218 + $k[$j++] = 0; //#18218 + } //#18218 + $k[$j++] = 0; //#18218 + var _Gt = $a(); //#18218 + var _Gu = $k[--$j]; //#18218 + $puti($k[--$j], _Gu, _Gt); //#18218 + if (!bwipp_micropdf417.__18225__) { //#18225 + $_ = Object.create($_); //#18225 + $k[$j++] = Infinity; //#18222 + $k[$j++] = 1; //#18222 + for (var _Gw = 0, _Gx = 928; _Gw < _Gx; _Gw++) { //#18222 + var _Gy = $k[--$j]; //#18222 + $k[$j++] = _Gy; //#18222 + $k[$j++] = (_Gy * 3) % 929; //#18222 + } //#18222 + $_.rsalog = $a(); //#18222 + $_.rslog = $a(929); //#18223 + for (var _H1 = 1; _H1 <= 928; _H1 += 1) { //#18224 + $put($_.rslog, $get($_.rsalog, _H1), _H1); //#18224 + } //#18224 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18224 + bwipp_micropdf417.__18225__ = 1; //#18224 + $_ = Object.getPrototypeOf($_); //#18224 + } //#18224 $_.rsprod = function() { - var _Fz = $k[--$j]; //#17959 - var _G0 = $k[--$j]; //#17959 - $k[$j++] = _G0; //#17963 - $k[$j++] = _Fz; //#17963 - if ((_Fz != 0) && (_G0 != 0)) { //#17962 - var _G3 = $get($_.rslog, $k[--$j]); //#17960 - var _G8 = $get($_.rsalog, $f(_G3 + $get($_.rslog, $k[--$j])) % 928); //#17960 - $k[$j++] = _G8; //#17960 - } else { //#17962 - $j -= 2; //#17962 - $k[$j++] = 0; //#17962 - } //#17962 - }; //#17962 - $k[$j++] = Infinity; //#17967 - $k[$j++] = 1; //#17967 - for (var _GA = 0, _GB = $_.k; _GA < _GB; _GA++) { //#17967 - $k[$j++] = 0; //#17967 - } //#17967 - $_.coeffs = $a(); //#17967 - for (var _GF = 1, _GE = $_.k; _GF <= _GE; _GF += 1) { //#17976 - $_.i = _GF; //#17969 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17970 - for (var _GM = $_.i - 1; _GM >= 1; _GM -= 1) { //#17974 - $_.j = _GM; //#17972 - $k[$j++] = $_.coeffs; //#17973 - $k[$j++] = $_.j; //#17973 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#17973 - $k[$j++] = $get($_.coeffs, $_.j); //#17973 - $k[$j++] = $get($_.rsalog, $_.i); //#17973 - $_.rsprod(); //#17973 - var _GY = $k[--$j]; //#17973 - var _GZ = $k[--$j]; //#17973 - var _Ga = $k[--$j]; //#17973 - $put($k[--$j], _Ga, $f(_GZ + _GY) % 929); //#17973 - } //#17973 - $k[$j++] = $_.coeffs; //#17975 - $k[$j++] = 0; //#17975 - $k[$j++] = $get($_.coeffs, 0); //#17975 - $k[$j++] = $get($_.rsalog, $_.i); //#17975 - $_.rsprod(); //#17975 - var _Gi = $k[--$j]; //#17975 - var _Gj = $k[--$j]; //#17975 - $put($k[--$j], _Gj, _Gi); //#17975 - } //#17975 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17977 - for (var _Gp = $_.coeffs.length - 1; _Gp >= 0; _Gp -= 2) { //#17978 - var _Gq = $_.coeffs; //#17978 - $put(_Gq, _Gp, $f(929 - $get(_Gq, _Gp))); //#17978 - } //#17978 - for (var _Gu = 0, _Gt = $f($_.n - 1); _Gu <= _Gt; _Gu += 1) { //#17987 - $_.t = $f($get($_.cws, _Gu) + $get($_.cws, $_.n)) % 929; //#17982 - for (var _H2 = 0, _H1 = $f($_.k - 1); _H2 <= _H1; _H2 += 1) { //#17986 - $_.j = _H2; //#17984 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#17985 - } //#17985 - } //#17985 - for (var _HJ = $_.n, _HI = $f($_.n + $_.k); _HJ <= _HI; _HJ += 1) { //#17988 - $put($_.cws, _HJ, $f(929 - $get($_.cws, _HJ)) % 929); //#17988 - } //#17988 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17991 - var _HR = $get($_.options, 'debugcws') !== undefined; //#17993 - if (_HR) { //#17993 - $k[$j++] = 'bwipp.debugcws#17993'; //#17993 - $k[$j++] = $_.cws; //#17993 - bwipp_raiseerror(); //#17993 - } //#17993 - if (!bwipp_micropdf417.__18252__) { //#18252 - $_ = Object.create($_); //#18252 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18236 - $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18251 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18251 - bwipp_micropdf417.__18252__ = 1; //#18251 - $_ = Object.getPrototypeOf($_); //#18251 - } //#18251 + var _H6 = $k[--$j]; //#18229 + var _H7 = $k[--$j]; //#18229 + $k[$j++] = _H7; //#18233 + $k[$j++] = _H6; //#18233 + if ((_H6 != 0) && (_H7 != 0)) { //#18232 + var _HA = $get($_.rslog, $k[--$j]); //#18230 + var _HF = $get($_.rsalog, $f(_HA + $get($_.rslog, $k[--$j])) % 928); //#18230 + $k[$j++] = _HF; //#18230 + } else { //#18232 + $j -= 2; //#18232 + $k[$j++] = 0; //#18232 + } //#18232 + }; //#18232 + $k[$j++] = Infinity; //#18237 + $k[$j++] = 1; //#18237 + for (var _HH = 0, _HI = $_.k; _HH < _HI; _HH++) { //#18237 + $k[$j++] = 0; //#18237 + } //#18237 + $_.coeffs = $a(); //#18237 + for (var _HM = 1, _HL = $_.k; _HM <= _HL; _HM += 1) { //#18246 + $_.i = _HM; //#18239 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#18240 + for (var _HT = $_.i - 1; _HT >= 1; _HT -= 1) { //#18244 + $_.j = _HT; //#18242 + $k[$j++] = $_.coeffs; //#18243 + $k[$j++] = $_.j; //#18243 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#18243 + $k[$j++] = $get($_.coeffs, $_.j); //#18243 + $k[$j++] = $get($_.rsalog, $_.i); //#18243 + $_.rsprod(); //#18243 + var _Hf = $k[--$j]; //#18243 + var _Hg = $k[--$j]; //#18243 + var _Hh = $k[--$j]; //#18243 + $put($k[--$j], _Hh, $f(_Hg + _Hf) % 929); //#18243 + } //#18243 + $k[$j++] = $_.coeffs; //#18245 + $k[$j++] = 0; //#18245 + $k[$j++] = $get($_.coeffs, 0); //#18245 + $k[$j++] = $get($_.rsalog, $_.i); //#18245 + $_.rsprod(); //#18245 + var _Hp = $k[--$j]; //#18245 + var _Hq = $k[--$j]; //#18245 + $put($k[--$j], _Hq, _Hp); //#18245 + } //#18245 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#18247 + for (var _Hw = $_.coeffs.length - 1; _Hw >= 0; _Hw -= 2) { //#18248 + var _Hx = $_.coeffs; //#18248 + $put(_Hx, _Hw, $f(929 - $get(_Hx, _Hw))); //#18248 + } //#18248 + for (var _I1 = 0, _I0 = $f($_.n - 1); _I1 <= _I0; _I1 += 1) { //#18257 + $_.t = $f($get($_.cws, _I1) + $get($_.cws, $_.n)) % 929; //#18252 + for (var _I9 = 0, _I8 = $f($_.k - 1); _I9 <= _I8; _I9 += 1) { //#18256 + $_.j = _I9; //#18254 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#18255 + } //#18255 + } //#18255 + for (var _IQ = $_.n, _IP = $f($_.n + $_.k); _IQ <= _IP; _IQ += 1) { //#18258 + $put($_.cws, _IQ, $f(929 - $get($_.cws, _IQ)) % 929); //#18258 + } //#18258 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#18261 + var _IY = $get($_.options, 'debugcws') !== undefined; //#18263 + if (_IY) { //#18263 + $k[$j++] = 'bwipp.debugcws#18263'; //#18263 + $k[$j++] = $_.cws; //#18263 + bwipp_raiseerror(); //#18263 + } //#18263 + if (!bwipp_micropdf417.__18522__) { //#18522 + $_ = Object.create($_); //#18522 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18506 + $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18521 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18521 + bwipp_micropdf417.__18522__ = 1; //#18521 + $_ = Object.getPrototypeOf($_); //#18521 + } //#18521 $_.cwtobits = function() { - var _Hd = $get($_.clusters, $k[--$j]); //#18256 - $_.v = $get(_Hd, $k[--$j]); //#18256 - $k[$j++] = Infinity; //#18257 - for (var _Hg = 0, _Hh = 17; _Hg < _Hh; _Hg++) { //#18257 - $k[$j++] = 0; //#18257 - } //#18257 - var _Hk = $cvrs($s(17), $_.v, 2); //#18257 - for (var _Hl = 0, _Hm = _Hk.length; _Hl < _Hm; _Hl++) { //#18257 - $k[$j++] = $get(_Hk, _Hl) - 48; //#18257 - } //#18257 - var _Ho = $a(); //#18257 - $k[$j++] = $geti(_Ho, _Ho.length - 17, 17); //#18258 - }; //#18258 + var _Ik = $get($_.clusters, $k[--$j]); //#18526 + $_.v = $get(_Ik, $k[--$j]); //#18526 + $k[$j++] = Infinity; //#18527 + for (var _In = 0, _Io = 17; _In < _Io; _In++) { //#18527 + $k[$j++] = 0; //#18527 + } //#18527 + var _Ir = $cvrs($s(17), $_.v, 2); //#18527 + for (var _Is = 0, _It = _Ir.length; _Is < _It; _Is++) { //#18527 + $k[$j++] = $get(_Ir, _Is) - 48; //#18527 + } //#18527 + var _Iv = $a(); //#18527 + $k[$j++] = $geti(_Iv, _Iv.length - 17, 17); //#18528 + }; //#18528 $_.raptobits = function() { - var _Hs = $get($_.raps, $k[--$j]); //#18263 - $_.v = $get(_Hs, $k[--$j]); //#18263 - $k[$j++] = Infinity; //#18264 - for (var _Hv = 0, _Hw = 10; _Hv < _Hw; _Hv++) { //#18264 - $k[$j++] = 0; //#18264 - } //#18264 - var _Hz = $cvrs($s(10), $_.v, 2); //#18264 - for (var _I0 = 0, _I1 = _Hz.length; _I0 < _I1; _I0++) { //#18264 - $k[$j++] = $get(_Hz, _I0) - 48; //#18264 - } //#18264 - var _I3 = $a(); //#18264 - $k[$j++] = $geti(_I3, _I3.length - 10, 10); //#18265 - }; //#18265 - $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18269 - if (($_.c == 3) && $_.cca) { //#18270 - $_.rwid = 72; //#18270 - } //#18270 - $_.pixs = $a($_.rwid * $_.r); //#18271 - for (var _IF = 0, _IE = $f($_.r - 1); _IF <= _IE; _IF += 1) { //#18309 - $_.i = _IF; //#18274 - $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18275 - $k[$j++] = $_.pixs; //#18307 - $k[$j++] = $_.rwid * $_.i; //#18307 - $k[$j++] = Infinity; //#18307 - if ($_.c == 1) { //#18281 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18278 - $k[$j++] = 0; //#18278 - $_.raptobits(); //#18278 - $aload($k[--$j]); //#18278 - $k[$j++] = $get($_.cws, $_.i); //#18279 - $k[$j++] = $_.clst; //#18279 - $_.cwtobits(); //#18279 - $aload($k[--$j]); //#18279 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18280 - $k[$j++] = 0; //#18280 - $_.raptobits(); //#18280 - $aload($k[--$j]); //#18280 - } //#18280 - if ($_.c == 2) { //#18287 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18283 - $k[$j++] = 0; //#18283 - $_.raptobits(); //#18283 - $aload($k[--$j]); //#18283 - $k[$j++] = $get($_.cws, $_.i * 2); //#18284 - $k[$j++] = $_.clst; //#18284 - $_.cwtobits(); //#18284 - $aload($k[--$j]); //#18284 - $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18285 - $k[$j++] = $_.clst; //#18285 - $_.cwtobits(); //#18285 - $aload($k[--$j]); //#18285 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18286 - $k[$j++] = 0; //#18286 - $_.raptobits(); //#18286 - $aload($k[--$j]); //#18286 - } //#18286 - if ($_.c == 3) { //#18297 - if (!$_.cca) { //#18291 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18290 - $k[$j++] = 0; //#18290 - $_.raptobits(); //#18290 - $aload($k[--$j]); //#18290 - } //#18290 - $k[$j++] = $get($_.cws, $_.i * 3); //#18292 - $k[$j++] = $_.clst; //#18292 - $_.cwtobits(); //#18292 - $aload($k[--$j]); //#18292 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18293 - $k[$j++] = 1; //#18293 - $_.raptobits(); //#18293 - $aload($k[--$j]); //#18293 - $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18294 - $k[$j++] = $_.clst; //#18294 - $_.cwtobits(); //#18294 - $aload($k[--$j]); //#18294 - $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18295 - $k[$j++] = $_.clst; //#18295 - $_.cwtobits(); //#18295 - $aload($k[--$j]); //#18295 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18296 - $k[$j++] = 0; //#18296 - $_.raptobits(); //#18296 - $aload($k[--$j]); //#18296 - } //#18296 - if ($_.c == 4) { //#18306 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18299 - $k[$j++] = 0; //#18299 - $_.raptobits(); //#18299 - $aload($k[--$j]); //#18299 - $k[$j++] = $get($_.cws, $_.i * 4); //#18300 - $k[$j++] = $_.clst; //#18300 - $_.cwtobits(); //#18300 - $aload($k[--$j]); //#18300 - $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18301 - $k[$j++] = $_.clst; //#18301 - $_.cwtobits(); //#18301 - $aload($k[--$j]); //#18301 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18302 - $k[$j++] = 1; //#18302 - $_.raptobits(); //#18302 - $aload($k[--$j]); //#18302 - $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18303 - $k[$j++] = $_.clst; //#18303 - $_.cwtobits(); //#18303 - $aload($k[--$j]); //#18303 - $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18304 - $k[$j++] = $_.clst; //#18304 - $_.cwtobits(); //#18304 - $aload($k[--$j]); //#18304 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18305 - $k[$j++] = 0; //#18305 - $_.raptobits(); //#18305 - $aload($k[--$j]); //#18305 - } //#18305 - $k[$j++] = 1; //#18307 - var _Ji = $a(); //#18307 - var _Jj = $k[--$j]; //#18308 - $puti($k[--$j], _Jj, _Ji); //#18308 - } //#18308 - var _Js = new Map([ + var _Iz = $get($_.raps, $k[--$j]); //#18533 + $_.v = $get(_Iz, $k[--$j]); //#18533 + $k[$j++] = Infinity; //#18534 + for (var _J2 = 0, _J3 = 10; _J2 < _J3; _J2++) { //#18534 + $k[$j++] = 0; //#18534 + } //#18534 + var _J6 = $cvrs($s(10), $_.v, 2); //#18534 + for (var _J7 = 0, _J8 = _J6.length; _J7 < _J8; _J7++) { //#18534 + $k[$j++] = $get(_J6, _J7) - 48; //#18534 + } //#18534 + var _JA = $a(); //#18534 + $k[$j++] = $geti(_JA, _JA.length - 10, 10); //#18535 + }; //#18535 + $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18539 + if (($_.c == 3) && $_.cca) { //#18540 + $_.rwid = 72; //#18540 + } //#18540 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#18541 + for (var _JN = 0, _JM = $f($_.r - 1); _JN <= _JM; _JN += 1) { //#18583 + $_.i = _JN; //#18544 + $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18545 + $k[$j++] = Infinity; //#18546 + if ($_.c == 1) { //#18551 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18548 + $k[$j++] = 0; //#18548 + $_.raptobits(); //#18548 + $aload($k[--$j]); //#18548 + $k[$j++] = $get($_.cws, $_.i); //#18549 + $k[$j++] = $_.clst; //#18549 + $_.cwtobits(); //#18549 + $aload($k[--$j]); //#18549 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18550 + $k[$j++] = 0; //#18550 + $_.raptobits(); //#18550 + $aload($k[--$j]); //#18550 + } //#18550 + if ($_.c == 2) { //#18557 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18553 + $k[$j++] = 0; //#18553 + $_.raptobits(); //#18553 + $aload($k[--$j]); //#18553 + $k[$j++] = $get($_.cws, $_.i * 2); //#18554 + $k[$j++] = $_.clst; //#18554 + $_.cwtobits(); //#18554 + $aload($k[--$j]); //#18554 + $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18555 + $k[$j++] = $_.clst; //#18555 + $_.cwtobits(); //#18555 + $aload($k[--$j]); //#18555 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18556 + $k[$j++] = 0; //#18556 + $_.raptobits(); //#18556 + $aload($k[--$j]); //#18556 + } //#18556 + if ($_.c == 3) { //#18567 + if (!$_.cca) { //#18561 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18560 + $k[$j++] = 0; //#18560 + $_.raptobits(); //#18560 + $aload($k[--$j]); //#18560 + } //#18560 + $k[$j++] = $get($_.cws, $_.i * 3); //#18562 + $k[$j++] = $_.clst; //#18562 + $_.cwtobits(); //#18562 + $aload($k[--$j]); //#18562 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18563 + $k[$j++] = 1; //#18563 + $_.raptobits(); //#18563 + $aload($k[--$j]); //#18563 + $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18564 + $k[$j++] = $_.clst; //#18564 + $_.cwtobits(); //#18564 + $aload($k[--$j]); //#18564 + $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18565 + $k[$j++] = $_.clst; //#18565 + $_.cwtobits(); //#18565 + $aload($k[--$j]); //#18565 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18566 + $k[$j++] = 0; //#18566 + $_.raptobits(); //#18566 + $aload($k[--$j]); //#18566 + } //#18566 + if ($_.c == 4) { //#18576 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18569 + $k[$j++] = 0; //#18569 + $_.raptobits(); //#18569 + $aload($k[--$j]); //#18569 + $k[$j++] = $get($_.cws, $_.i * 4); //#18570 + $k[$j++] = $_.clst; //#18570 + $_.cwtobits(); //#18570 + $aload($k[--$j]); //#18570 + $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18571 + $k[$j++] = $_.clst; //#18571 + $_.cwtobits(); //#18571 + $aload($k[--$j]); //#18571 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18572 + $k[$j++] = 1; //#18572 + $_.raptobits(); //#18572 + $aload($k[--$j]); //#18572 + $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18573 + $k[$j++] = $_.clst; //#18573 + $_.cwtobits(); //#18573 + $aload($k[--$j]); //#18573 + $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18574 + $k[$j++] = $_.clst; //#18574 + $_.cwtobits(); //#18574 + $aload($k[--$j]); //#18574 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18575 + $k[$j++] = 0; //#18575 + $_.raptobits(); //#18575 + $aload($k[--$j]); //#18575 + } //#18575 + $k[$j++] = 1; //#18577 + var _Kn = $a(); //#18577 + $k[$j++] = _Kn; //#18581 + for (var _Kq = 0, _Kp = $_.rowmult - 1; _Kq <= _Kp; _Kq += 1) { //#18581 + var _Kv = $k[--$j]; //#18580 + $puti($_.pixs, (_Kq + ($_.i * $_.rowmult)) * $_.rwid, _Kv); //#18580 + $k[$j++] = _Kv; //#18580 + } //#18580 + $j--; //#18582 + } //#18582 + var _L4 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#18319 - $k[$j++] = _Js; //#18322 - if (!$_.dontdraw) { //#18322 - bwipp_renmatrix(); //#18322 - } //#18322 - $_ = Object.getPrototypeOf($_); //#18324 - $_ = Object.getPrototypeOf($_); //#18326 -} - + ]); //#18597 + $k[$j++] = _L4; //#18600 + if (!$_.dontdraw) { //#18600 + bwipp_renmatrix(); //#18600 + } //#18600 + $_ = Object.getPrototypeOf($_); //#18602 + $_ = Object.getPrototypeOf($_); //#18604 +} //bwipp_micropdf417 function bwipp_datamatrix() { - $_ = Object.create($_); //#18357 - $_.dontdraw = false; //#18360 - $_.columns = 0; //#18361 - $_.rows = 0; //#18362 - $_.format = "unset"; //#18363 - $_.version = "unset"; //#18364 - $_.parse = false; //#18365 - $_.parsefnc = false; //#18366 - $_.c40headerlength = -1; //#18367 - $_.raw = false; //#18368 - $_.dmre = false; //#18369 - $k[$j++] = $_; //#18371 - bwipp_processoptions(); //#18371 - $_.options = $k[--$j]; //#18371 - $_.barcode = $k[--$j]; //#18372 - if ($eq($_.barcode, "")) { //#18376 - $k[$j++] = 'bwipp.datamatrixEmptyData#18375'; //#18375 - $k[$j++] = "The data must not be empty"; //#18375 - bwipp_raiseerror(); //#18375 - } //#18375 - if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18380 - $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18379'; //#18379 - $k[$j++] = "rows and columns must not be given if version is specified"; //#18379 - bwipp_raiseerror(); //#18379 - } //#18379 - if ($ne($_.version, "unset")) { //#18404 - $search($_.version, "x"); //#18384 - if ($k[--$j]) { //#18400 - var _9 = $k[--$j]; //#18385 - var _A = $k[--$j]; //#18385 - $k[$j++] = _9; //#18385 - $k[$j++] = _A; //#18385 - $j--; //#18385 - var _B = $k[--$j]; //#18386 - var _C = $k[--$j]; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $astore($a(2)); //#18386 - $forall($k[--$j], function() { //#18395 - var _F = $k[--$j]; //#18388 - $k[$j++] = _F; //#18388 - $k[$j++] = true; //#18388 - if (_F.length == 0) { //#18388 - $j--; //#18388 - $k[$j++] = false; //#18388 - } //#18388 - var _G = $k[--$j]; //#18389 - var _H = $k[--$j]; //#18389 - $k[$j++] = _G; //#18391 - $forall(_H, function() { //#18391 - var _I = $k[--$j]; //#18390 - if ((_I < 48) || (_I > 57)) { //#18390 - $j--; //#18390 - $k[$j++] = false; //#18390 - } //#18390 - }); //#18390 - if ($nt($k[--$j])) { //#18394 - $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18393'; //#18393 - $k[$j++] = "version must be formatted as RxC"; //#18393 - bwipp_raiseerror(); //#18393 - } //#18393 - }); //#18393 - $_.rows = $cvi($k[--$j]); //#18396 - $_.columns = $cvi($k[--$j]); //#18397 - $k[$j++] = 'format'; //#18398 - if ($_.rows == $_.columns) { //#18398 - $k[$j++] = "square"; //#18398 - } else { //#18398 - $k[$j++] = "rectangle"; //#18398 - } //#18398 - var _O = $k[--$j]; //#18398 - $_[$k[--$j]] = _O; //#18398 - } else { //#18400 - $j--; //#18400 - $k[$j++] = 'bwipp.datamatrixVersionFormat#18400'; //#18400 - $k[$j++] = "version must be formatted as RxC"; //#18400 - bwipp_raiseerror(); //#18400 - } //#18400 - } else { //#18404 - if ($eq($_.format, "unset")) { //#18405 - $k[$j++] = 'format'; //#18404 - if ($_.dmre) { //#18404 - $k[$j++] = "rectangle"; //#18404 - } else { //#18404 - $k[$j++] = "square"; //#18404 - } //#18404 - var _S = $k[--$j]; //#18404 - $_[$k[--$j]] = _S; //#18404 - } //#18404 - } //#18404 - if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18410 - $k[$j++] = 'bwipp.datamatrixInvalidFormat#18409'; //#18409 - $k[$j++] = "The format must be either square or rectangle"; //#18409 - bwipp_raiseerror(); //#18409 - } //#18409 - bwipp_loadctx(bwipp_datamatrix) //#18412 - if (!bwipp_datamatrix.__18469__) { //#18469 - $_ = Object.create($_); //#18469 - var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18458 - $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18468 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18468 - bwipp_datamatrix.__18469__ = 1; //#18468 - $_ = Object.getPrototypeOf($_); //#18468 - } //#18468 - $_.urows = $_.rows; //#18472 - $_.ucols = $_.columns; //#18473 - $_.fullcws = $a([]); //#18474 - var _1N = $_.metrics; //#18475 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18494 - $_.m = $get(_1N, _1O); //#18476 - $_.rows = $get($_.m, 0); //#18477 - $_.cols = $get($_.m, 1); //#18478 - $_.regh = $get($_.m, 2); //#18479 - $_.regv = $get($_.m, 3); //#18480 - $_.rscw = $get($_.m, 4); //#18481 - $_.rsbl = $get($_.m, 5); //#18482 - $_.doly = $get($_.m, 6); //#18483 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#18484 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#18485 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18486 - $_.okay = true; //#18487 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18488 - $_.okay = false; //#18488 - } //#18488 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18489 - $_.okay = false; //#18489 - } //#18489 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18490 - $_.okay = false; //#18490 - } //#18490 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18491 - $_.okay = false; //#18491 - } //#18491 - if ((!$_.dmre) && ($_.doly == 1)) { //#18492 - $_.okay = false; //#18492 - } //#18492 - if ($_.okay) { //#18493 - $k[$j++] = Infinity; //#18493 - $aload($_.fullcws); //#18493 - $k[$j++] = $_.ncws; //#18493 - $_.fullcws = $a(); //#18493 - } //#18493 - } //#18493 - $k[$j++] = Infinity; //#18495 - for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18495 - $k[$j++] = 10000; //#18495 - } //#18495 - $_.numremcws = $a(); //#18495 - var _27 = $_.fullcws; //#18496 - for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18496 - $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18496 - } //#18496 - for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18502 - $_.i = _2C; //#18498 - if ($get($_.numremcws, $_.i) != 1) { //#18501 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18500 - } //#18500 - } //#18500 - if (!bwipp_datamatrix.__18615__) { //#18615 - $_ = Object.create($_); //#18615 - $_.fnc1 = -1; //#18506 - $_.prog = -2; //#18506 - $_.m05 = -3; //#18506 - $_.m06 = -4; //#18506 - $_.lC = -5; //#18507 - $_.lB = -6; //#18507 - $_.lX = -7; //#18507 - $_.lT = -8; //#18507 - $_.lE = -9; //#18507 - $_.unl = -10; //#18507 - $_.sapp = -11; //#18508 - $_.usft = -12; //#18508 - $_.sft1 = -13; //#18508 - $_.sft2 = -14; //#18508 - $_.sft3 = -15; //#18508 - $_.eci = -16; //#18508 - $_.pad = -17; //#18508 - $_.unlcw = 254; //#18509 - $k[$j++] = Infinity; //#18518 - for (var _2L = 0; _2L <= 128; _2L += 1) { //#18512 - $k[$j++] = _2L; //#18512 - $k[$j++] = _2L + 1; //#18512 - } //#18512 - $k[$j++] = $_.pad; //#18517 - $k[$j++] = 129; //#18517 - for (var _2N = 0; _2N <= 99; _2N += 1) { //#18517 - var _2P = $cvrs($s(2), _2N, 10); //#18515 - var _2R = $strcpy($s(2), "00"); //#18515 - $puti(_2R, 2 - _2P.length, _2P); //#18515 - $k[$j++] = _2R; //#18516 - $k[$j++] = _2N + 130; //#18516 - } //#18516 - var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18518 - $k[$j++] = 229; //#18518 - for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18518 - var _2j = $f($k[--$j] + 1); //#18518 - $k[$j++] = $get(_2e, _2f); //#18518 - $k[$j++] = _2j; //#18518 - $k[$j++] = _2j; //#18518 - } //#18518 - $j--; //#18518 - $_.Avals = $d(); //#18519 - $k[$j++] = Infinity; //#18521 - var _2l = $_.Avals; //#18521 - for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18521 - var _2m = _2p.next().value; //#18521 - $k[$j++] = _2m; //#18521 - $k[$j++] = _2l.get(_2m); //#18521 - $k[$j++] = Infinity; //#18521 - var _2r = $k[--$j]; //#18521 - var _2s = $k[--$j]; //#18521 - $k[$j++] = _2r; //#18521 - $k[$j++] = _2s; //#18521 - var _2t = $a(); //#18521 - $k[$j++] = _2t; //#18521 - } //#18521 - $_.Avals = $d(); //#18522 - $k[$j++] = Infinity; //#18530 - $k[$j++] = $_.sft1; //#18529 - $k[$j++] = 0; //#18529 - $k[$j++] = $_.sft2; //#18529 - $k[$j++] = 1; //#18529 - $k[$j++] = $_.sft3; //#18529 - $k[$j++] = 2; //#18529 - $k[$j++] = 32; //#18529 - $k[$j++] = 3; //#18529 - for (var _2y = 48; _2y <= 57; _2y += 1) { //#18529 - $k[$j++] = _2y; //#18529 - $k[$j++] = _2y - 44; //#18529 - } //#18529 - for (var _2z = 65; _2z <= 90; _2z += 1) { //#18530 - $k[$j++] = _2z; //#18530 - $k[$j++] = _2z - 51; //#18530 - } //#18530 - $_.CNvals = $d(); //#18531 - $k[$j++] = Infinity; //#18532 - for (var _31 = 0; _31 <= 31; _31 += 1) { //#18532 - $k[$j++] = _31; //#18532 - $k[$j++] = _31; //#18532 - } //#18532 - $_.C1vals = $d(); //#18532 - $k[$j++] = Infinity; //#18538 - for (var _33 = 33; _33 <= 47; _33 += 1) { //#18534 - $k[$j++] = _33; //#18534 - $k[$j++] = _33 - 33; //#18534 - } //#18534 - for (var _34 = 58; _34 <= 64; _34 += 1) { //#18535 - $k[$j++] = _34; //#18535 - $k[$j++] = _34 - 43; //#18535 - } //#18535 - for (var _35 = 91; _35 <= 95; _35 += 1) { //#18536 - $k[$j++] = _35; //#18536 - $k[$j++] = _35 - 69; //#18536 - } //#18536 - $k[$j++] = $_.fnc1; //#18538 - $k[$j++] = 27; //#18538 - $k[$j++] = $_.usft; //#18538 - $k[$j++] = 30; //#18538 - $_.C2vals = $d(); //#18539 - $k[$j++] = Infinity; //#18540 - for (var _39 = 96; _39 <= 127; _39 += 1) { //#18540 - $k[$j++] = _39; //#18540 - $k[$j++] = _39 - 96; //#18540 - } //#18540 - $_.C3vals = $d(); //#18540 - $k[$j++] = Infinity; //#18545 - var _3B = $_.CNvals; //#18542 - for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18542 - var _3C = _3F.next().value; //#18542 - $k[$j++] = _3C; //#18542 - $k[$j++] = _3B.get(_3C); //#18542 - $k[$j++] = Infinity; //#18542 - var _3H = $k[--$j]; //#18542 - var _3I = $k[--$j]; //#18542 - $k[$j++] = _3H; //#18542 - $k[$j++] = _3I; //#18542 - var _3J = $a(); //#18542 - $k[$j++] = _3J; //#18542 - } //#18542 - var _3K = $_.C1vals; //#18543 - for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18543 - var _3L = _3O.next().value; //#18543 - $k[$j++] = _3L; //#18543 - $k[$j++] = _3K.get(_3L); //#18543 - $k[$j++] = Infinity; //#18543 - var _3Q = $k[--$j]; //#18543 - var _3R = $k[--$j]; //#18543 - $k[$j++] = _3Q; //#18543 - $k[$j++] = $get($_.CNvals, $_.sft1); //#18543 - $k[$j++] = _3R; //#18543 - var _3V = $a(); //#18543 - $k[$j++] = _3V; //#18543 - } //#18543 - var _3W = $_.C2vals; //#18544 - for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18544 - var _3X = _3a.next().value; //#18544 - $k[$j++] = _3X; //#18544 - $k[$j++] = _3W.get(_3X); //#18544 - $k[$j++] = Infinity; //#18544 - var _3c = $k[--$j]; //#18544 - var _3d = $k[--$j]; //#18544 - $k[$j++] = _3c; //#18544 - $k[$j++] = $get($_.CNvals, $_.sft2); //#18544 - $k[$j++] = _3d; //#18544 - var _3h = $a(); //#18544 - $k[$j++] = _3h; //#18544 - } //#18544 - var _3i = $_.C3vals; //#18545 - for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18545 - var _3j = _3m.next().value; //#18545 - $k[$j++] = _3j; //#18545 - $k[$j++] = _3i.get(_3j); //#18545 - $k[$j++] = Infinity; //#18545 - var _3o = $k[--$j]; //#18545 - var _3p = $k[--$j]; //#18545 - $k[$j++] = _3o; //#18545 - $k[$j++] = $get($_.CNvals, $_.sft3); //#18545 - $k[$j++] = _3p; //#18545 - var _3t = $a(); //#18545 - $k[$j++] = _3t; //#18545 - } //#18545 - $_.Cvals = $d(); //#18546 - $k[$j++] = Infinity; //#18554 - $k[$j++] = $_.sft1; //#18553 - $k[$j++] = 0; //#18553 - $k[$j++] = $_.sft2; //#18553 - $k[$j++] = 1; //#18553 - $k[$j++] = $_.sft3; //#18553 - $k[$j++] = 2; //#18553 - $k[$j++] = 32; //#18553 - $k[$j++] = 3; //#18553 - for (var _3y = 48; _3y <= 57; _3y += 1) { //#18553 - $k[$j++] = _3y; //#18553 - $k[$j++] = _3y - 44; //#18553 - } //#18553 - for (var _3z = 97; _3z <= 122; _3z += 1) { //#18554 - $k[$j++] = _3z; //#18554 - $k[$j++] = _3z - 83; //#18554 - } //#18554 - $_.TNvals = $d(); //#18555 - $k[$j++] = Infinity; //#18556 - for (var _41 = 0; _41 <= 31; _41 += 1) { //#18556 - $k[$j++] = _41; //#18556 - $k[$j++] = _41; //#18556 - } //#18556 - $_.T1vals = $d(); //#18556 - $k[$j++] = Infinity; //#18562 - for (var _43 = 33; _43 <= 47; _43 += 1) { //#18558 - $k[$j++] = _43; //#18558 - $k[$j++] = _43 - 33; //#18558 - } //#18558 - for (var _44 = 58; _44 <= 64; _44 += 1) { //#18559 - $k[$j++] = _44; //#18559 - $k[$j++] = _44 - 43; //#18559 - } //#18559 - for (var _45 = 91; _45 <= 95; _45 += 1) { //#18560 - $k[$j++] = _45; //#18560 - $k[$j++] = _45 - 69; //#18560 - } //#18560 - $k[$j++] = $_.fnc1; //#18562 - $k[$j++] = 27; //#18562 - $k[$j++] = $_.usft; //#18562 - $k[$j++] = 30; //#18562 - $_.T2vals = $d(); //#18563 - $k[$j++] = Infinity; //#18567 - $k[$j++] = 96; //#18566 - $k[$j++] = 0; //#18566 - for (var _49 = 65; _49 <= 90; _49 += 1) { //#18566 - $k[$j++] = _49; //#18566 - $k[$j++] = _49 - 64; //#18566 - } //#18566 - for (var _4A = 123; _4A <= 127; _4A += 1) { //#18567 - $k[$j++] = _4A; //#18567 - $k[$j++] = _4A - 96; //#18567 - } //#18567 - $_.T3vals = $d(); //#18568 - $k[$j++] = Infinity; //#18573 - var _4C = $_.TNvals; //#18570 - for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18570 - var _4D = _4G.next().value; //#18570 - $k[$j++] = _4D; //#18570 - $k[$j++] = _4C.get(_4D); //#18570 - $k[$j++] = Infinity; //#18570 - var _4I = $k[--$j]; //#18570 - var _4J = $k[--$j]; //#18570 - $k[$j++] = _4I; //#18570 - $k[$j++] = _4J; //#18570 - var _4K = $a(); //#18570 - $k[$j++] = _4K; //#18570 - } //#18570 - var _4L = $_.T1vals; //#18571 - for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18571 - var _4M = _4P.next().value; //#18571 - $k[$j++] = _4M; //#18571 - $k[$j++] = _4L.get(_4M); //#18571 - $k[$j++] = Infinity; //#18571 - var _4R = $k[--$j]; //#18571 - var _4S = $k[--$j]; //#18571 - $k[$j++] = _4R; //#18571 - $k[$j++] = $get($_.TNvals, $_.sft1); //#18571 - $k[$j++] = _4S; //#18571 - var _4W = $a(); //#18571 - $k[$j++] = _4W; //#18571 - } //#18571 - var _4X = $_.T2vals; //#18572 - for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18572 - var _4Y = _4b.next().value; //#18572 - $k[$j++] = _4Y; //#18572 - $k[$j++] = _4X.get(_4Y); //#18572 - $k[$j++] = Infinity; //#18572 - var _4d = $k[--$j]; //#18572 - var _4e = $k[--$j]; //#18572 - $k[$j++] = _4d; //#18572 - $k[$j++] = $get($_.TNvals, $_.sft2); //#18572 - $k[$j++] = _4e; //#18572 - var _4i = $a(); //#18572 - $k[$j++] = _4i; //#18572 - } //#18572 - var _4j = $_.T3vals; //#18573 - for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18573 - var _4k = _4n.next().value; //#18573 - $k[$j++] = _4k; //#18573 - $k[$j++] = _4j.get(_4k); //#18573 - $k[$j++] = Infinity; //#18573 - var _4p = $k[--$j]; //#18573 - var _4q = $k[--$j]; //#18573 - $k[$j++] = _4p; //#18573 - $k[$j++] = $get($_.TNvals, $_.sft3); //#18573 - $k[$j++] = _4q; //#18573 - var _4u = $a(); //#18573 - $k[$j++] = _4u; //#18573 - } //#18573 - $_.Tvals = $d(); //#18574 - for (var _4w = 128; _4w <= 255; _4w += 1) { //#18582 - $_.i = _4w; //#18578 - $k[$j++] = $_.Avals; //#18579 - $k[$j++] = $_.i; //#18579 - $k[$j++] = Infinity; //#18579 - $aload($get($_.Avals, $_.usft)); //#18579 - $aload($get($_.Avals, $_.i - 128)); //#18579 - var _55 = $a(); //#18579 - var _56 = $k[--$j]; //#18579 - $put($k[--$j], _56, _55); //#18579 - $k[$j++] = $_.Cvals; //#18580 - $k[$j++] = $_.i; //#18580 - $k[$j++] = Infinity; //#18580 - $aload($get($_.Cvals, $_.usft)); //#18580 - $aload($get($_.Cvals, $_.i - 128)); //#18580 - var _5G = $a(); //#18580 - var _5H = $k[--$j]; //#18580 - $put($k[--$j], _5H, _5G); //#18580 - $k[$j++] = $_.Tvals; //#18581 - $k[$j++] = $_.i; //#18581 - $k[$j++] = Infinity; //#18581 - $aload($get($_.Tvals, $_.usft)); //#18581 - $aload($get($_.Tvals, $_.i - 128)); //#18581 - var _5R = $a(); //#18581 - var _5S = $k[--$j]; //#18581 - $put($k[--$j], _5S, _5R); //#18581 - } //#18581 - $k[$j++] = Infinity; //#18590 - $k[$j++] = 13; //#18589 - $k[$j++] = 0; //#18589 - $k[$j++] = 42; //#18589 - $k[$j++] = 1; //#18589 - $k[$j++] = 62; //#18589 - $k[$j++] = 2; //#18589 - $k[$j++] = 32; //#18589 - $k[$j++] = 3; //#18589 - for (var _5U = 48; _5U <= 57; _5U += 1) { //#18589 - $k[$j++] = _5U; //#18589 - $k[$j++] = _5U - 44; //#18589 - } //#18589 - for (var _5V = 65; _5V <= 90; _5V += 1) { //#18590 - $k[$j++] = _5V; //#18590 - $k[$j++] = _5V - 51; //#18590 - } //#18590 - $_.Xvals = $d(); //#18591 - $k[$j++] = Infinity; //#18593 - var _5X = $_.Xvals; //#18593 - for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18593 - var _5Y = _5b.next().value; //#18593 - $k[$j++] = _5Y; //#18593 - $k[$j++] = _5X.get(_5Y); //#18593 - $k[$j++] = Infinity; //#18593 - var _5d = $k[--$j]; //#18593 - var _5e = $k[--$j]; //#18593 - $k[$j++] = _5d; //#18593 - $k[$j++] = _5e; //#18593 - var _5f = $a(); //#18593 - $k[$j++] = _5f; //#18593 - } //#18593 - $_.Xvals = $d(); //#18594 - $k[$j++] = Infinity; //#18599 - for (var _5h = 64; _5h <= 94; _5h += 1) { //#18597 - $k[$j++] = _5h; //#18597 - $k[$j++] = _5h - 64; //#18597 - } //#18597 - $k[$j++] = $_.unl; //#18599 - $k[$j++] = 31; //#18599 - for (var _5j = 32; _5j <= 63; _5j += 1) { //#18599 - $k[$j++] = _5j; //#18599 - $k[$j++] = _5j; //#18599 - } //#18599 - $_.Evals = $d(); //#18600 - $k[$j++] = Infinity; //#18602 - var _5l = $_.Evals; //#18602 - for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18602 - var _5m = _5p.next().value; //#18602 - $k[$j++] = _5m; //#18602 - $k[$j++] = _5l.get(_5m); //#18602 - $k[$j++] = Infinity; //#18602 - var _5r = $k[--$j]; //#18602 - var _5s = $k[--$j]; //#18602 - $k[$j++] = _5r; //#18602 - $k[$j++] = _5s; //#18602 - var _5t = $a(); //#18602 - $k[$j++] = _5t; //#18602 - } //#18602 - $_.Evals = $d(); //#18603 - $k[$j++] = Infinity; //#18606 - for (var _5v = 0; _5v <= 255; _5v += 1) { //#18606 - $k[$j++] = _5v; //#18606 - $k[$j++] = _5v; //#18606 - } //#18606 - $_.Bvals = $d(); //#18607 - $k[$j++] = Infinity; //#18609 - var _5x = $_.Bvals; //#18609 - for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18609 - var _5y = _61.next().value; //#18609 - $k[$j++] = _5y; //#18609 - $k[$j++] = _5x.get(_5y); //#18609 - $k[$j++] = Infinity; //#18609 - var _63 = $k[--$j]; //#18609 - var _64 = $k[--$j]; //#18609 - $k[$j++] = _63; //#18609 - $k[$j++] = _64; //#18609 - var _65 = $a(); //#18609 - $k[$j++] = _65; //#18609 - } //#18609 - $_.Bvals = $d(); //#18610 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18612 - $_.A = 0; //#18614 - $_.C = 1; //#18614 - $_.T = 2; //#18614 - $_.X = 3; //#18614 - $_.E = 4; //#18614 - $_.B = 5; //#18614 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18614 - bwipp_datamatrix.__18615__ = 1; //#18614 - $_ = Object.getPrototypeOf($_); //#18614 - } //#18614 - if ($_.raw) { //#19019 - $_.cws = $a($_.barcode.length); //#18619 - $_.i = 0; //#18620 - $_.j = 0; //#18620 - for (;;) { //#18627 - if ($_.i == $_.barcode.length) { //#18622 - break; //#18622 - } //#18622 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18623 - $put($_.cws, $_.j, $_.cw); //#18624 - $_.i = $_.i + 4; //#18625 - $_.j = $_.j + 1; //#18626 - } //#18626 - $_.cws = $geti($_.cws, 0, $_.j); //#18628 - } else { //#19019 + $_ = Object.create($_); //#18635 + $_.dontdraw = false; //#18638 + $_.columns = 0; //#18639 + $_.rows = 0; //#18640 + $_.format = "unset"; //#18641 + $_.version = "unset"; //#18642 + $_.parse = false; //#18643 + $_.parsefnc = false; //#18644 + $_.c40headerlength = -1; //#18645 + $_.raw = false; //#18646 + $_.dmre = false; //#18647 + $k[$j++] = $_; //#18649 + bwipp_processoptions(); //#18649 + $_.options = $k[--$j]; //#18649 + $_.barcode = $k[--$j]; //#18650 + if ($eq($_.barcode, "")) { //#18654 + $k[$j++] = 'bwipp.datamatrixEmptyData#18653'; //#18653 + $k[$j++] = "The data must not be empty"; //#18653 + bwipp_raiseerror(); //#18653 + } //#18653 + if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18658 + $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18657'; //#18657 + $k[$j++] = "rows and columns must not be given if version is specified"; //#18657 + bwipp_raiseerror(); //#18657 + } //#18657 + if ($ne($_.version, "unset")) { //#18682 + $search($_.version, "x"); //#18662 + if ($k[--$j]) { //#18678 + var _9 = $k[--$j]; //#18663 + var _A = $k[--$j]; //#18663 + $k[$j++] = _9; //#18663 + $k[$j++] = _A; //#18663 + $j--; //#18663 + var _B = $k[--$j]; //#18664 + var _C = $k[--$j]; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $astore($a(2)); //#18664 + $forall($k[--$j], function() { //#18673 + var _F = $k[--$j]; //#18666 + $k[$j++] = _F; //#18666 + $k[$j++] = true; //#18666 + if (_F.length == 0) { //#18666 + $j--; //#18666 + $k[$j++] = false; //#18666 + } //#18666 + var _G = $k[--$j]; //#18667 + var _H = $k[--$j]; //#18667 + $k[$j++] = _G; //#18669 + $forall(_H, function() { //#18669 + var _I = $k[--$j]; //#18668 + if ((_I < 48) || (_I > 57)) { //#18668 + $j--; //#18668 + $k[$j++] = false; //#18668 + } //#18668 + }); //#18668 + if ($nt($k[--$j])) { //#18672 + $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18671'; //#18671 + $k[$j++] = "version must be formatted as RxC"; //#18671 + bwipp_raiseerror(); //#18671 + } //#18671 + }); //#18671 + $_.rows = $cvi($k[--$j]); //#18674 + $_.columns = $cvi($k[--$j]); //#18675 + $k[$j++] = 'format'; //#18676 + if ($_.rows == $_.columns) { //#18676 + $k[$j++] = "square"; //#18676 + } else { //#18676 + $k[$j++] = "rectangle"; //#18676 + } //#18676 + var _O = $k[--$j]; //#18676 + $_[$k[--$j]] = _O; //#18676 + } else { //#18678 + $j--; //#18678 + $k[$j++] = 'bwipp.datamatrixVersionFormat#18678'; //#18678 + $k[$j++] = "version must be formatted as RxC"; //#18678 + bwipp_raiseerror(); //#18678 + } //#18678 + } else { //#18682 + if ($eq($_.format, "unset")) { //#18683 + $k[$j++] = 'format'; //#18682 + if ($_.dmre) { //#18682 + $k[$j++] = "rectangle"; //#18682 + } else { //#18682 + $k[$j++] = "square"; //#18682 + } //#18682 + var _S = $k[--$j]; //#18682 + $_[$k[--$j]] = _S; //#18682 + } //#18682 + } //#18682 + if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18688 + $k[$j++] = 'bwipp.datamatrixInvalidFormat#18687'; //#18687 + $k[$j++] = "The format must be either square or rectangle"; //#18687 + bwipp_raiseerror(); //#18687 + } //#18687 + bwipp_loadctx(bwipp_datamatrix) //#18690 + if (!bwipp_datamatrix.__18747__) { //#18747 + $_ = Object.create($_); //#18747 + var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18736 + $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18746 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18746 + bwipp_datamatrix.__18747__ = 1; //#18746 + $_ = Object.getPrototypeOf($_); //#18746 + } //#18746 + $_.urows = $_.rows; //#18750 + $_.ucols = $_.columns; //#18751 + $_.fullcws = $a([]); //#18752 + var _1N = $_.metrics; //#18753 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18772 + $_.m = $get(_1N, _1O); //#18754 + $_.rows = $get($_.m, 0); //#18755 + $_.cols = $get($_.m, 1); //#18756 + $_.regh = $get($_.m, 2); //#18757 + $_.regv = $get($_.m, 3); //#18758 + $_.rscw = $get($_.m, 4); //#18759 + $_.rsbl = $get($_.m, 5); //#18760 + $_.doly = $get($_.m, 6); //#18761 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#18762 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#18763 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18764 + $_.okay = true; //#18765 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18766 + $_.okay = false; //#18766 + } //#18766 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18767 + $_.okay = false; //#18767 + } //#18767 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18768 + $_.okay = false; //#18768 + } //#18768 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18769 + $_.okay = false; //#18769 + } //#18769 + if ((!$_.dmre) && ($_.doly == 1)) { //#18770 + $_.okay = false; //#18770 + } //#18770 + if ($_.okay) { //#18771 + $k[$j++] = Infinity; //#18771 + $aload($_.fullcws); //#18771 + $k[$j++] = $_.ncws; //#18771 + $_.fullcws = $a(); //#18771 + } //#18771 + } //#18771 + $k[$j++] = Infinity; //#18773 + for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18773 + $k[$j++] = 10000; //#18773 + } //#18773 + $_.numremcws = $a(); //#18773 + var _27 = $_.fullcws; //#18774 + for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18774 + $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18774 + } //#18774 + for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18780 + $_.i = _2C; //#18776 + if ($get($_.numremcws, $_.i) != 1) { //#18779 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18778 + } //#18778 + } //#18778 + if (!bwipp_datamatrix.__18893__) { //#18893 + $_ = Object.create($_); //#18893 + $_.fnc1 = -1; //#18784 + $_.prog = -2; //#18784 + $_.m05 = -3; //#18784 + $_.m06 = -4; //#18784 + $_.lC = -5; //#18785 + $_.lB = -6; //#18785 + $_.lX = -7; //#18785 + $_.lT = -8; //#18785 + $_.lE = -9; //#18785 + $_.unl = -10; //#18785 + $_.sapp = -11; //#18786 + $_.usft = -12; //#18786 + $_.sft1 = -13; //#18786 + $_.sft2 = -14; //#18786 + $_.sft3 = -15; //#18786 + $_.eci = -16; //#18786 + $_.pad = -17; //#18786 + $_.unlcw = 254; //#18787 + $k[$j++] = Infinity; //#18789 + for (var _2L = 0; _2L <= 128; _2L += 1) { //#18790 + $k[$j++] = _2L; //#18790 + $k[$j++] = _2L + 1; //#18790 + } //#18790 + $k[$j++] = $_.pad; //#18795 + $k[$j++] = 129; //#18795 + for (var _2N = 0; _2N <= 99; _2N += 1) { //#18795 + var _2P = $cvrs($s(2), _2N, 10); //#18793 + var _2R = $strcpy($s(2), "00"); //#18793 + $puti(_2R, 2 - _2P.length, _2P); //#18793 + $k[$j++] = _2R; //#18794 + $k[$j++] = _2N + 130; //#18794 + } //#18794 + var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18796 + $k[$j++] = 229; //#18796 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18796 + var _2j = $f($k[--$j] + 1); //#18796 + $k[$j++] = $get(_2e, _2f); //#18796 + $k[$j++] = _2j; //#18796 + $k[$j++] = _2j; //#18796 + } //#18796 + $j--; //#18796 + $_.Avals = $d(); //#18797 + $k[$j++] = Infinity; //#18798 + var _2l = $_.Avals; //#18799 + for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18799 + var _2m = _2p.next().value; //#18799 + $k[$j++] = _2m; //#18799 + $k[$j++] = _2l.get(_2m); //#18799 + $k[$j++] = Infinity; //#18799 + var _2r = $k[--$j]; //#18799 + var _2s = $k[--$j]; //#18799 + $k[$j++] = _2r; //#18799 + $k[$j++] = _2s; //#18799 + var _2t = $a(); //#18799 + $k[$j++] = _2t; //#18799 + } //#18799 + $_.Avals = $d(); //#18800 + $k[$j++] = Infinity; //#18802 + $k[$j++] = $_.sft1; //#18807 + $k[$j++] = 0; //#18807 + $k[$j++] = $_.sft2; //#18807 + $k[$j++] = 1; //#18807 + $k[$j++] = $_.sft3; //#18807 + $k[$j++] = 2; //#18807 + $k[$j++] = 32; //#18807 + $k[$j++] = 3; //#18807 + for (var _2y = 48; _2y <= 57; _2y += 1) { //#18807 + $k[$j++] = _2y; //#18807 + $k[$j++] = _2y - 44; //#18807 + } //#18807 + for (var _2z = 65; _2z <= 90; _2z += 1) { //#18808 + $k[$j++] = _2z; //#18808 + $k[$j++] = _2z - 51; //#18808 + } //#18808 + $_.CNvals = $d(); //#18809 + $k[$j++] = Infinity; //#18810 + for (var _31 = 0; _31 <= 31; _31 += 1) { //#18810 + $k[$j++] = _31; //#18810 + $k[$j++] = _31; //#18810 + } //#18810 + $_.C1vals = $d(); //#18810 + $k[$j++] = Infinity; //#18811 + for (var _33 = 33; _33 <= 47; _33 += 1) { //#18812 + $k[$j++] = _33; //#18812 + $k[$j++] = _33 - 33; //#18812 + } //#18812 + for (var _34 = 58; _34 <= 64; _34 += 1) { //#18813 + $k[$j++] = _34; //#18813 + $k[$j++] = _34 - 43; //#18813 + } //#18813 + for (var _35 = 91; _35 <= 95; _35 += 1) { //#18814 + $k[$j++] = _35; //#18814 + $k[$j++] = _35 - 69; //#18814 + } //#18814 + $k[$j++] = $_.fnc1; //#18816 + $k[$j++] = 27; //#18816 + $k[$j++] = $_.usft; //#18816 + $k[$j++] = 30; //#18816 + $_.C2vals = $d(); //#18817 + $k[$j++] = Infinity; //#18818 + for (var _39 = 96; _39 <= 127; _39 += 1) { //#18818 + $k[$j++] = _39; //#18818 + $k[$j++] = _39 - 96; //#18818 + } //#18818 + $_.C3vals = $d(); //#18818 + $k[$j++] = Infinity; //#18819 + var _3B = $_.CNvals; //#18820 + for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18820 + var _3C = _3F.next().value; //#18820 + $k[$j++] = _3C; //#18820 + $k[$j++] = _3B.get(_3C); //#18820 + $k[$j++] = Infinity; //#18820 + var _3H = $k[--$j]; //#18820 + var _3I = $k[--$j]; //#18820 + $k[$j++] = _3H; //#18820 + $k[$j++] = _3I; //#18820 + var _3J = $a(); //#18820 + $k[$j++] = _3J; //#18820 + } //#18820 + var _3K = $_.C1vals; //#18821 + for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18821 + var _3L = _3O.next().value; //#18821 + $k[$j++] = _3L; //#18821 + $k[$j++] = _3K.get(_3L); //#18821 + $k[$j++] = Infinity; //#18821 + var _3Q = $k[--$j]; //#18821 + var _3R = $k[--$j]; //#18821 + $k[$j++] = _3Q; //#18821 + $k[$j++] = $get($_.CNvals, $_.sft1); //#18821 + $k[$j++] = _3R; //#18821 + var _3V = $a(); //#18821 + $k[$j++] = _3V; //#18821 + } //#18821 + var _3W = $_.C2vals; //#18822 + for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18822 + var _3X = _3a.next().value; //#18822 + $k[$j++] = _3X; //#18822 + $k[$j++] = _3W.get(_3X); //#18822 + $k[$j++] = Infinity; //#18822 + var _3c = $k[--$j]; //#18822 + var _3d = $k[--$j]; //#18822 + $k[$j++] = _3c; //#18822 + $k[$j++] = $get($_.CNvals, $_.sft2); //#18822 + $k[$j++] = _3d; //#18822 + var _3h = $a(); //#18822 + $k[$j++] = _3h; //#18822 + } //#18822 + var _3i = $_.C3vals; //#18823 + for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18823 + var _3j = _3m.next().value; //#18823 + $k[$j++] = _3j; //#18823 + $k[$j++] = _3i.get(_3j); //#18823 + $k[$j++] = Infinity; //#18823 + var _3o = $k[--$j]; //#18823 + var _3p = $k[--$j]; //#18823 + $k[$j++] = _3o; //#18823 + $k[$j++] = $get($_.CNvals, $_.sft3); //#18823 + $k[$j++] = _3p; //#18823 + var _3t = $a(); //#18823 + $k[$j++] = _3t; //#18823 + } //#18823 + $_.Cvals = $d(); //#18824 + $k[$j++] = Infinity; //#18826 + $k[$j++] = $_.sft1; //#18831 + $k[$j++] = 0; //#18831 + $k[$j++] = $_.sft2; //#18831 + $k[$j++] = 1; //#18831 + $k[$j++] = $_.sft3; //#18831 + $k[$j++] = 2; //#18831 + $k[$j++] = 32; //#18831 + $k[$j++] = 3; //#18831 + for (var _3y = 48; _3y <= 57; _3y += 1) { //#18831 + $k[$j++] = _3y; //#18831 + $k[$j++] = _3y - 44; //#18831 + } //#18831 + for (var _3z = 97; _3z <= 122; _3z += 1) { //#18832 + $k[$j++] = _3z; //#18832 + $k[$j++] = _3z - 83; //#18832 + } //#18832 + $_.TNvals = $d(); //#18833 + $k[$j++] = Infinity; //#18834 + for (var _41 = 0; _41 <= 31; _41 += 1) { //#18834 + $k[$j++] = _41; //#18834 + $k[$j++] = _41; //#18834 + } //#18834 + $_.T1vals = $d(); //#18834 + $k[$j++] = Infinity; //#18835 + for (var _43 = 33; _43 <= 47; _43 += 1) { //#18836 + $k[$j++] = _43; //#18836 + $k[$j++] = _43 - 33; //#18836 + } //#18836 + for (var _44 = 58; _44 <= 64; _44 += 1) { //#18837 + $k[$j++] = _44; //#18837 + $k[$j++] = _44 - 43; //#18837 + } //#18837 + for (var _45 = 91; _45 <= 95; _45 += 1) { //#18838 + $k[$j++] = _45; //#18838 + $k[$j++] = _45 - 69; //#18838 + } //#18838 + $k[$j++] = $_.fnc1; //#18840 + $k[$j++] = 27; //#18840 + $k[$j++] = $_.usft; //#18840 + $k[$j++] = 30; //#18840 + $_.T2vals = $d(); //#18841 + $k[$j++] = Infinity; //#18842 + $k[$j++] = 96; //#18844 + $k[$j++] = 0; //#18844 + for (var _49 = 65; _49 <= 90; _49 += 1) { //#18844 + $k[$j++] = _49; //#18844 + $k[$j++] = _49 - 64; //#18844 + } //#18844 + for (var _4A = 123; _4A <= 127; _4A += 1) { //#18845 + $k[$j++] = _4A; //#18845 + $k[$j++] = _4A - 96; //#18845 + } //#18845 + $_.T3vals = $d(); //#18846 + $k[$j++] = Infinity; //#18847 + var _4C = $_.TNvals; //#18848 + for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18848 + var _4D = _4G.next().value; //#18848 + $k[$j++] = _4D; //#18848 + $k[$j++] = _4C.get(_4D); //#18848 + $k[$j++] = Infinity; //#18848 + var _4I = $k[--$j]; //#18848 + var _4J = $k[--$j]; //#18848 + $k[$j++] = _4I; //#18848 + $k[$j++] = _4J; //#18848 + var _4K = $a(); //#18848 + $k[$j++] = _4K; //#18848 + } //#18848 + var _4L = $_.T1vals; //#18849 + for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18849 + var _4M = _4P.next().value; //#18849 + $k[$j++] = _4M; //#18849 + $k[$j++] = _4L.get(_4M); //#18849 + $k[$j++] = Infinity; //#18849 + var _4R = $k[--$j]; //#18849 + var _4S = $k[--$j]; //#18849 + $k[$j++] = _4R; //#18849 + $k[$j++] = $get($_.TNvals, $_.sft1); //#18849 + $k[$j++] = _4S; //#18849 + var _4W = $a(); //#18849 + $k[$j++] = _4W; //#18849 + } //#18849 + var _4X = $_.T2vals; //#18850 + for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18850 + var _4Y = _4b.next().value; //#18850 + $k[$j++] = _4Y; //#18850 + $k[$j++] = _4X.get(_4Y); //#18850 + $k[$j++] = Infinity; //#18850 + var _4d = $k[--$j]; //#18850 + var _4e = $k[--$j]; //#18850 + $k[$j++] = _4d; //#18850 + $k[$j++] = $get($_.TNvals, $_.sft2); //#18850 + $k[$j++] = _4e; //#18850 + var _4i = $a(); //#18850 + $k[$j++] = _4i; //#18850 + } //#18850 + var _4j = $_.T3vals; //#18851 + for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18851 + var _4k = _4n.next().value; //#18851 + $k[$j++] = _4k; //#18851 + $k[$j++] = _4j.get(_4k); //#18851 + $k[$j++] = Infinity; //#18851 + var _4p = $k[--$j]; //#18851 + var _4q = $k[--$j]; //#18851 + $k[$j++] = _4p; //#18851 + $k[$j++] = $get($_.TNvals, $_.sft3); //#18851 + $k[$j++] = _4q; //#18851 + var _4u = $a(); //#18851 + $k[$j++] = _4u; //#18851 + } //#18851 + $_.Tvals = $d(); //#18852 + for (var _4w = 128; _4w <= 255; _4w += 1) { //#18860 + $_.i = _4w; //#18856 + $k[$j++] = $_.Avals; //#18857 + $k[$j++] = $_.i; //#18857 + $k[$j++] = Infinity; //#18857 + $aload($get($_.Avals, $_.usft)); //#18857 + $aload($get($_.Avals, $_.i - 128)); //#18857 + var _55 = $a(); //#18857 + var _56 = $k[--$j]; //#18857 + $put($k[--$j], _56, _55); //#18857 + $k[$j++] = $_.Cvals; //#18858 + $k[$j++] = $_.i; //#18858 + $k[$j++] = Infinity; //#18858 + $aload($get($_.Cvals, $_.usft)); //#18858 + $aload($get($_.Cvals, $_.i - 128)); //#18858 + var _5G = $a(); //#18858 + var _5H = $k[--$j]; //#18858 + $put($k[--$j], _5H, _5G); //#18858 + $k[$j++] = $_.Tvals; //#18859 + $k[$j++] = $_.i; //#18859 + $k[$j++] = Infinity; //#18859 + $aload($get($_.Tvals, $_.usft)); //#18859 + $aload($get($_.Tvals, $_.i - 128)); //#18859 + var _5R = $a(); //#18859 + var _5S = $k[--$j]; //#18859 + $put($k[--$j], _5S, _5R); //#18859 + } //#18859 + $k[$j++] = Infinity; //#18862 + $k[$j++] = 13; //#18867 + $k[$j++] = 0; //#18867 + $k[$j++] = 42; //#18867 + $k[$j++] = 1; //#18867 + $k[$j++] = 62; //#18867 + $k[$j++] = 2; //#18867 + $k[$j++] = 32; //#18867 + $k[$j++] = 3; //#18867 + for (var _5U = 48; _5U <= 57; _5U += 1) { //#18867 + $k[$j++] = _5U; //#18867 + $k[$j++] = _5U - 44; //#18867 + } //#18867 + for (var _5V = 65; _5V <= 90; _5V += 1) { //#18868 + $k[$j++] = _5V; //#18868 + $k[$j++] = _5V - 51; //#18868 + } //#18868 + $_.Xvals = $d(); //#18869 + $k[$j++] = Infinity; //#18870 + var _5X = $_.Xvals; //#18871 + for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18871 + var _5Y = _5b.next().value; //#18871 + $k[$j++] = _5Y; //#18871 + $k[$j++] = _5X.get(_5Y); //#18871 + $k[$j++] = Infinity; //#18871 + var _5d = $k[--$j]; //#18871 + var _5e = $k[--$j]; //#18871 + $k[$j++] = _5d; //#18871 + $k[$j++] = _5e; //#18871 + var _5f = $a(); //#18871 + $k[$j++] = _5f; //#18871 + } //#18871 + $_.Xvals = $d(); //#18872 + $k[$j++] = Infinity; //#18874 + for (var _5h = 64; _5h <= 94; _5h += 1) { //#18875 + $k[$j++] = _5h; //#18875 + $k[$j++] = _5h - 64; //#18875 + } //#18875 + $k[$j++] = $_.unl; //#18877 + $k[$j++] = 31; //#18877 + for (var _5j = 32; _5j <= 63; _5j += 1) { //#18877 + $k[$j++] = _5j; //#18877 + $k[$j++] = _5j; //#18877 + } //#18877 + $_.Evals = $d(); //#18878 + $k[$j++] = Infinity; //#18879 + var _5l = $_.Evals; //#18880 + for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18880 + var _5m = _5p.next().value; //#18880 + $k[$j++] = _5m; //#18880 + $k[$j++] = _5l.get(_5m); //#18880 + $k[$j++] = Infinity; //#18880 + var _5r = $k[--$j]; //#18880 + var _5s = $k[--$j]; //#18880 + $k[$j++] = _5r; //#18880 + $k[$j++] = _5s; //#18880 + var _5t = $a(); //#18880 + $k[$j++] = _5t; //#18880 + } //#18880 + $_.Evals = $d(); //#18881 + $k[$j++] = Infinity; //#18883 + for (var _5v = 0; _5v <= 255; _5v += 1) { //#18884 + $k[$j++] = _5v; //#18884 + $k[$j++] = _5v; //#18884 + } //#18884 + $_.Bvals = $d(); //#18885 + $k[$j++] = Infinity; //#18886 + var _5x = $_.Bvals; //#18887 + for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18887 + var _5y = _61.next().value; //#18887 + $k[$j++] = _5y; //#18887 + $k[$j++] = _5x.get(_5y); //#18887 + $k[$j++] = Infinity; //#18887 + var _63 = $k[--$j]; //#18887 + var _64 = $k[--$j]; //#18887 + $k[$j++] = _63; //#18887 + $k[$j++] = _64; //#18887 + var _65 = $a(); //#18887 + $k[$j++] = _65; //#18887 + } //#18887 + $_.Bvals = $d(); //#18888 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18890 + $_.A = 0; //#18892 + $_.C = 1; //#18892 + $_.T = 2; //#18892 + $_.X = 3; //#18892 + $_.E = 4; //#18892 + $_.B = 5; //#18892 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18892 + bwipp_datamatrix.__18893__ = 1; //#18892 + $_ = Object.getPrototypeOf($_); //#18892 + } //#18892 + if ($_.raw) { //#19297 + $_.cws = $a($_.barcode.length); //#18897 + $_.i = 0; //#18898 + $_.j = 0; //#18898 + for (;;) { //#18905 + if ($_.i == $_.barcode.length) { //#18900 + break; //#18900 + } //#18900 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18901 + $put($_.cws, $_.j, $_.cw); //#18902 + $_.i = $_.i + 4; //#18903 + $_.j = $_.j + 1; //#18904 + } //#18904 + $_.cws = $geti($_.cws, 0, $_.j); //#18906 + } else { //#19297 var _6Z = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["PROG", $_.prog] - ]); //#18638 - $_.fncvals = _6Z; //#18641 - $k[$j++] = 'msg'; //#18642 - $k[$j++] = $_.barcode; //#18642 - $k[$j++] = $_.fncvals; //#18642 - bwipp_parseinput(); //#18642 - var _6c = $k[--$j]; //#18642 - $_[$k[--$j]] = _6c; //#18642 - $_.msglen = $_.msg.length; //#18643 - if ($_.msglen >= 9) { //#18661 - $aload($geti($_.msg, 0, 7)); //#18647 - var _6i = $k[--$j]; //#18648 - var _6j = $k[--$j]; //#18648 - $k[$j++] = _6i == 29; //#18648 - $k[$j++] = _6j; //#18648 - $j--; //#18648 - var _6k = $k[--$j]; //#18648 - var _6l = $k[--$j]; //#18648 - var _6m = $k[--$j]; //#18648 - var _6n = $k[--$j]; //#18649 - var _6o = $k[--$j]; //#18649 - var _6p = $k[--$j]; //#18649 - if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18660 - $aload($geti($_.msg, $_.msglen - 2, 2)); //#18650 - var _6t = $k[--$j]; //#18651 - var _6u = $k[--$j]; //#18651 - if ((_6t == 4) && (_6u == 30)) { //#18659 - if ($get($_.msg, 5) == 53) { //#18656 - $k[$j++] = Infinity; //#18653 - $k[$j++] = $_.m05; //#18653 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18653 - $_.msg = $a(); //#18653 - } else { //#18656 - if ($get($_.msg, 5) == 54) { //#18657 - $k[$j++] = Infinity; //#18656 - $k[$j++] = $_.m06; //#18656 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18656 - $_.msg = $a(); //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - $_.msglen = $_.msg.length; //#18662 - $k[$j++] = Infinity; //#18664 - for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18664 - $k[$j++] = 0; //#18664 - } //#18664 - $k[$j++] = 0; //#18664 - $_.numD = $a(); //#18664 - $k[$j++] = Infinity; //#18665 - for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18665 - $k[$j++] = 0; //#18665 - } //#18665 - $k[$j++] = 9999; //#18665 - $_.nextXterm = $a(); //#18665 - $k[$j++] = Infinity; //#18666 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18666 - $k[$j++] = 0; //#18666 - } //#18666 - $k[$j++] = 9999; //#18666 - $_.nextNonX = $a(); //#18666 - $k[$j++] = Infinity; //#18667 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18667 - $k[$j++] = false; //#18667 - } //#18667 - $k[$j++] = false; //#18667 - $_.isECI = $a(); //#18667 - for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18685 - $_.i = _7R; //#18669 - $_.barchar = $get($_.msg, $_.i); //#18670 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18673 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18672 - } //#18672 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18677 - $put($_.nextXterm, $_.i, 0); //#18675 - } else { //#18677 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18677 - } //#18677 - var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18679 - if (!_7o) { //#18682 - $put($_.nextNonX, $_.i, 0); //#18680 - } else { //#18682 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18682 - } //#18682 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18684 - } //#18684 - $k[$j++] = Infinity; //#18686 - var _7z = $_.nextXterm; //#18686 - for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18686 - var _82 = $get(_7z, _80); //#18686 - $k[$j++] = _82; //#18686 - if (_82 > 10000) { //#18686 - $j--; //#18686 - $k[$j++] = 10000; //#18686 - } //#18686 - } //#18686 - $_.nextXterm = $a(); //#18686 - $k[$j++] = Infinity; //#18687 - var _84 = $_.nextNonX; //#18687 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18687 - var _87 = $get(_84, _85); //#18687 - $k[$j++] = _87; //#18687 - if (_87 > 10000) { //#18687 - $j--; //#18687 - $k[$j++] = 10000; //#18687 - } //#18687 - } //#18687 - $_.nextNonX = $a(); //#18687 + ]); //#18916 + $_.fncvals = _6Z; //#18919 + $k[$j++] = 'msg'; //#18920 + $k[$j++] = $_.barcode; //#18920 + $k[$j++] = $_.fncvals; //#18920 + bwipp_parseinput(); //#18920 + var _6c = $k[--$j]; //#18920 + $_[$k[--$j]] = _6c; //#18920 + $_.msglen = $_.msg.length; //#18921 + if ($_.msglen >= 9) { //#18939 + $aload($geti($_.msg, 0, 7)); //#18925 + var _6i = $k[--$j]; //#18926 + var _6j = $k[--$j]; //#18926 + $k[$j++] = _6i == 29; //#18926 + $k[$j++] = _6j; //#18926 + $j--; //#18926 + var _6k = $k[--$j]; //#18926 + var _6l = $k[--$j]; //#18926 + var _6m = $k[--$j]; //#18926 + var _6n = $k[--$j]; //#18927 + var _6o = $k[--$j]; //#18927 + var _6p = $k[--$j]; //#18927 + if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18938 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#18928 + var _6t = $k[--$j]; //#18929 + var _6u = $k[--$j]; //#18929 + if ((_6t == 4) && (_6u == 30)) { //#18937 + if ($get($_.msg, 5) == 53) { //#18934 + $k[$j++] = Infinity; //#18931 + $k[$j++] = $_.m05; //#18931 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18931 + $_.msg = $a(); //#18931 + } else { //#18934 + if ($get($_.msg, 5) == 54) { //#18935 + $k[$j++] = Infinity; //#18934 + $k[$j++] = $_.m06; //#18934 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18934 + $_.msg = $a(); //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + $_.msglen = $_.msg.length; //#18940 + $k[$j++] = Infinity; //#18942 + for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18942 + $k[$j++] = 0; //#18942 + } //#18942 + $k[$j++] = 0; //#18942 + $_.numD = $a(); //#18942 + $k[$j++] = Infinity; //#18943 + for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18943 + $k[$j++] = 0; //#18943 + } //#18943 + $k[$j++] = 9999; //#18943 + $_.nextXterm = $a(); //#18943 + $k[$j++] = Infinity; //#18944 + for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $k[$j++] = 9999; //#18944 + $_.nextNonX = $a(); //#18944 + $k[$j++] = Infinity; //#18945 + for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18945 + $k[$j++] = false; //#18945 + } //#18945 + $k[$j++] = false; //#18945 + $_.isECI = $a(); //#18945 + for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18963 + $_.i = _7R; //#18947 + $_.barchar = $get($_.msg, $_.i); //#18948 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18951 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18950 + } //#18950 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18955 + $put($_.nextXterm, $_.i, 0); //#18953 + } else { //#18955 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18955 + } //#18955 + var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18957 + if (!_7o) { //#18960 + $put($_.nextNonX, $_.i, 0); //#18958 + } else { //#18960 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18960 + } //#18960 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18962 + } //#18962 + $k[$j++] = Infinity; //#18964 + var _7z = $_.nextXterm; //#18964 + for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18964 + var _82 = $get(_7z, _80); //#18964 + $k[$j++] = _82; //#18964 + if (_82 > 10000) { //#18964 + $j--; //#18964 + $k[$j++] = 10000; //#18964 + } //#18964 + } //#18964 + $_.nextXterm = $a(); //#18964 + $k[$j++] = Infinity; //#18965 + var _84 = $_.nextNonX; //#18965 + for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18965 + var _87 = $get(_84, _85); //#18965 + $k[$j++] = _87; //#18965 + if (_87 > 10000) { //#18965 + $j--; //#18965 + $k[$j++] = 10000; //#18965 + } //#18965 + } //#18965 + $_.nextNonX = $a(); //#18965 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18689 - }; //#18689 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18967 + }; //#18967 $_.isC = function() { - var _8D = $get($_.CNvals, $_.char) !== undefined; //#18690 - $k[$j++] = _8D; //#18690 - }; //#18690 + var _8D = $get($_.CNvals, $_.char) !== undefined; //#18968 + $k[$j++] = _8D; //#18968 + }; //#18968 $_.isT = function() { - var _8G = $get($_.TNvals, $_.char) !== undefined; //#18691 - $k[$j++] = _8G; //#18691 - }; //#18691 + var _8G = $get($_.TNvals, $_.char) !== undefined; //#18969 + $k[$j++] = _8G; //#18969 + }; //#18969 $_.isX = function() { - var _8J = $get($_.Xvals, $_.char) !== undefined; //#18692 - $k[$j++] = _8J; //#18692 - }; //#18692 + var _8J = $get($_.Xvals, $_.char) !== undefined; //#18970 + $k[$j++] = _8J; //#18970 + }; //#18970 $_.isE = function() { - var _8M = $get($_.Evals, $_.char) !== undefined; //#18693 - $k[$j++] = _8M; //#18693 - }; //#18693 + var _8M = $get($_.Evals, $_.char) !== undefined; //#18971 + $k[$j++] = _8M; //#18971 + }; //#18971 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#18694 - }; //#18694 + $k[$j++] = $_.char > 127; //#18972 + }; //#18972 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#18695 - }; //#18695 + $k[$j++] = $_.char < 0; //#18973 + }; //#18973 $_.XtermFirst = function() { - var _8P = $k[--$j]; //#18696 - $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18696 - }; //#18696 + var _8P = $k[--$j]; //#18974 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18974 + }; //#18974 $_.lookup = function() { - $_.ac = 1; //#18700 - $_.cc = 2; //#18700 - $_.tc = 2; //#18700 - $_.xc = 2; //#18700 - $_.ec = 2; //#18700 - $_.bc = 2.25; //#18700 - if ($_.mode == $_.A) { //#18701 - $_.ac = 0; //#18701 - $_.cc = 1; //#18701 - $_.tc = 1; //#18701 - $_.xc = 1; //#18701 - $_.ec = 1; //#18701 - $_.bc = 1.25; //#18701 - } //#18701 - if ($_.mode == $_.C) { //#18702 - $_.cc = 0; //#18702 - } //#18702 - if ($_.mode == $_.T) { //#18703 - $_.tc = 0; //#18703 - } //#18703 - if ($_.mode == $_.X) { //#18704 - $_.xc = 0; //#18704 - } //#18704 - if ($_.mode == $_.E) { //#18705 - $_.ec = 0; //#18705 - } //#18705 - if ($_.mode == $_.B) { //#18706 - $_.bc = 0; //#18706 - } //#18706 - for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#18741 - if ($get($_.isECI, $_.i)) { //#18708 - $k[$j++] = $_.A; //#18708 - break; //#18708 - } //#18708 - if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18709 - $k[$j++] = $_.C; //#18709 - break; //#18709 - } //#18709 - $_.k = 0; //#18710 - for (;;) { //#18740 - if (($_.i + $_.k) == $_.msglen) { //#18719 - var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18712 - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18712 - var _8w = $get(_8t, _8u); //#18712 - $_[_8w] = Math.ceil($_[_8w]); //#18712 - } //#18712 - var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18713 - $k[$j++] = true; //#18713 - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18713 - var _98 = $k[--$j]; //#18713 - $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18713 - } //#18713 - if ($k[--$j]) { //#18713 - $k[$j++] = $_.A; //#18713 - break; //#18713 - } //#18713 - var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18714 - $k[$j++] = true; //#18714 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18714 - var _9L = $k[--$j]; //#18714 - $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18714 - } //#18714 - if ($k[--$j]) { //#18714 - $k[$j++] = $_.B; //#18714 - break; //#18714 - } //#18714 - var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18715 - $k[$j++] = true; //#18715 - for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18715 - var _9Y = $k[--$j]; //#18715 - $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18715 - } //#18715 - if ($k[--$j]) { //#18715 - $k[$j++] = $_.E; //#18715 - break; //#18715 - } //#18715 - var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18716 - $k[$j++] = true; //#18716 - for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18716 - var _9l = $k[--$j]; //#18716 - $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18716 - } //#18716 - if ($k[--$j]) { //#18716 - $k[$j++] = $_.T; //#18716 - break; //#18716 - } //#18716 - var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18717 - $k[$j++] = true; //#18717 - for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18717 - var _9y = $k[--$j]; //#18717 - $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18717 - } //#18717 - if ($k[--$j]) { //#18717 - $k[$j++] = $_.X; //#18717 - break; //#18717 - } //#18717 - $k[$j++] = $_.C; //#18718 - break; //#18718 - } //#18718 - $_.char = $get($_.msg, $_.i + $_.k); //#18720 - $k[$j++] = 'ac'; //#18721 - $k[$j++] = $_.ac; //#18721 - $_.isD(); //#18721 - if ($k[--$j]) { //#18721 - var _A8 = $k[--$j]; //#18721 - $k[$j++] = $f(_A8 + (1 / 2)); //#18721 - } else { //#18721 - $_.isEA(); //#18721 - if ($k[--$j]) { //#18721 - var _AA = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AA) + 2; //#18721 - } else { //#18721 - var _AB = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AB) + 1; //#18721 - } //#18721 - } //#18721 - var _AC = $k[--$j]; //#18721 - $_[$k[--$j]] = _AC; //#18721 - $k[$j++] = 'cc'; //#18722 - $k[$j++] = $_.cc; //#18722 - $_.isC(); //#18722 - if ($k[--$j]) { //#18722 - var _AG = $k[--$j]; //#18722 - $k[$j++] = $f(_AG + 0.6666667); //#18722 - } else { //#18722 - $_.isEA(); //#18722 - if ($k[--$j]) { //#18722 - var _AI = $k[--$j]; //#18722 - $k[$j++] = $f(_AI + 2.6666667); //#18722 - } else { //#18722 - var _AJ = $k[--$j]; //#18722 - $k[$j++] = $f(_AJ + 1.3333334); //#18722 - } //#18722 - } //#18722 - var _AK = $k[--$j]; //#18722 - $_[$k[--$j]] = _AK; //#18722 - $k[$j++] = 'tc'; //#18723 - $k[$j++] = $_.tc; //#18723 - $_.isT(); //#18723 - if ($k[--$j]) { //#18723 - var _AO = $k[--$j]; //#18723 - $k[$j++] = $f(_AO + 0.6666667); //#18723 - } else { //#18723 - $_.isEA(); //#18723 - if ($k[--$j]) { //#18723 - var _AQ = $k[--$j]; //#18723 - $k[$j++] = $f(_AQ + 2.6666667); //#18723 - } else { //#18723 - var _AR = $k[--$j]; //#18723 - $k[$j++] = $f(_AR + 1.3333334); //#18723 - } //#18723 - } //#18723 - var _AS = $k[--$j]; //#18723 - $_[$k[--$j]] = _AS; //#18723 - $k[$j++] = 'xc'; //#18724 - $k[$j++] = $_.xc; //#18724 - $_.isX(); //#18724 - if ($k[--$j]) { //#18724 - var _AW = $k[--$j]; //#18724 - $k[$j++] = $f(_AW + 0.6666667); //#18724 - } else { //#18724 - $_.isEA(); //#18724 - if ($k[--$j]) { //#18724 - var _AY = $k[--$j]; //#18724 - $k[$j++] = $f(_AY + 4.3333334); //#18724 - } else { //#18724 - var _AZ = $k[--$j]; //#18724 - $k[$j++] = $f(_AZ + 3.3333334); //#18724 - } //#18724 - } //#18724 - var _Aa = $k[--$j]; //#18724 - $_[$k[--$j]] = _Aa; //#18724 - $k[$j++] = 'ec'; //#18725 - $k[$j++] = $_.ec; //#18725 - $_.isE(); //#18725 - if ($k[--$j]) { //#18725 - var _Ae = $k[--$j]; //#18725 - $k[$j++] = $f(_Ae + (3 / 4)); //#18725 - } else { //#18725 - $_.isEA(); //#18725 - if ($k[--$j]) { //#18725 - var _Ag = $k[--$j]; //#18725 - $k[$j++] = $f(_Ag + (17 / 4)); //#18725 - } else { //#18725 - var _Ah = $k[--$j]; //#18725 - $k[$j++] = $f(_Ah + (13 / 4)); //#18725 - } //#18725 - } //#18725 - var _Ai = $k[--$j]; //#18725 - $_[$k[--$j]] = _Ai; //#18725 - $k[$j++] = 'bc'; //#18726 - $k[$j++] = $_.bc; //#18726 - $_.isFN(); //#18726 - if ($k[--$j]) { //#18726 - var _Am = $k[--$j]; //#18726 - $k[$j++] = $f(_Am + 4); //#18726 - } else { //#18726 - var _An = $k[--$j]; //#18726 - $k[$j++] = $f(_An + 1); //#18726 - } //#18726 - var _Ao = $k[--$j]; //#18726 - $_[$k[--$j]] = _Ao; //#18726 - if ($_.k >= 4) { //#18738 - var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18728 - $k[$j++] = true; //#18728 - for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#18728 - var _B1 = $k[--$j]; //#18728 - $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#18728 - } //#18728 - if ($k[--$j]) { //#18728 - $k[$j++] = $_.A; //#18728 - break; //#18728 - } //#18728 - if (($_.bc + 1) <= $_.ac) { //#18729 - $k[$j++] = $_.B; //#18729 - break; //#18729 - } //#18729 - var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#18730 - $k[$j++] = true; //#18730 - for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#18730 - var _BG = $k[--$j]; //#18730 - $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#18730 - } //#18730 - if ($k[--$j]) { //#18730 - $k[$j++] = $_.B; //#18730 - break; //#18730 - } //#18730 - var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18731 - $k[$j++] = true; //#18731 - for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#18731 - var _BT = $k[--$j]; //#18731 - $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#18731 - } //#18731 - if ($k[--$j]) { //#18731 - $k[$j++] = $_.E; //#18731 - break; //#18731 - } //#18731 - var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18732 - $k[$j++] = true; //#18732 - for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#18732 - var _Bg = $k[--$j]; //#18732 - $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#18732 - } //#18732 - if ($k[--$j]) { //#18732 - $k[$j++] = $_.T; //#18732 - break; //#18732 - } //#18732 - var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18733 - $k[$j++] = true; //#18733 - for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#18733 - var _Bt = $k[--$j]; //#18733 - $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#18733 - } //#18733 - if ($k[--$j]) { //#18733 - $k[$j++] = $_.X; //#18733 - break; //#18733 - } //#18733 - var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#18734 - $k[$j++] = true; //#18734 - for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#18734 - var _C5 = $k[--$j]; //#18734 - $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#18734 - } //#18734 - if ($k[--$j]) { //#18737 - if ($_.cc < $_.xc) { //#18735 - $k[$j++] = $_.C; //#18735 - break; //#18735 - } //#18735 - if ($_.cc == $_.xc) { //#18736 - $k[$j++] = ($_.i + $_.k) + 1; //#18736 - $_.XtermFirst(); //#18736 - if ($k[--$j]) { //#18736 - $k[$j++] = $_.X; //#18736 - break; //#18736 - } else { //#18736 - $k[$j++] = $_.C; //#18736 - break; //#18736 - } //#18736 - } //#18736 - } //#18736 - } //#18736 - $_.k = $_.k + 1; //#18739 - } //#18739 - } //#18739 - }; //#18739 + $_.ac = 1; //#18978 + $_.cc = 2; //#18978 + $_.tc = 2; //#18978 + $_.xc = 2; //#18978 + $_.ec = 2; //#18978 + $_.bc = 2.25; //#18978 + if ($_.mode == $_.A) { //#18979 + $_.ac = 0; //#18979 + $_.cc = 1; //#18979 + $_.tc = 1; //#18979 + $_.xc = 1; //#18979 + $_.ec = 1; //#18979 + $_.bc = 1.25; //#18979 + } //#18979 + if ($_.mode == $_.C) { //#18980 + $_.cc = 0; //#18980 + } //#18980 + if ($_.mode == $_.T) { //#18981 + $_.tc = 0; //#18981 + } //#18981 + if ($_.mode == $_.X) { //#18982 + $_.xc = 0; //#18982 + } //#18982 + if ($_.mode == $_.E) { //#18983 + $_.ec = 0; //#18983 + } //#18983 + if ($_.mode == $_.B) { //#18984 + $_.bc = 0; //#18984 + } //#18984 + for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#19019 + if ($get($_.isECI, $_.i)) { //#18986 + $k[$j++] = $_.A; //#18986 + break; //#18986 + } //#18986 + if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18987 + $k[$j++] = $_.C; //#18987 + break; //#18987 + } //#18987 + $_.k = 0; //#18988 + for (;;) { //#19018 + if (($_.i + $_.k) == $_.msglen) { //#18997 + var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18990 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18990 + var _8w = $get(_8t, _8u); //#18990 + $_[_8w] = Math.ceil($_[_8w]); //#18990 + } //#18990 + var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18991 + $k[$j++] = true; //#18991 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18991 + var _98 = $k[--$j]; //#18991 + $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18991 + } //#18991 + if ($k[--$j]) { //#18991 + $k[$j++] = $_.A; //#18991 + break; //#18991 + } //#18991 + var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18992 + $k[$j++] = true; //#18992 + for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18992 + var _9L = $k[--$j]; //#18992 + $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18992 + } //#18992 + if ($k[--$j]) { //#18992 + $k[$j++] = $_.B; //#18992 + break; //#18992 + } //#18992 + var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18993 + $k[$j++] = true; //#18993 + for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18993 + var _9Y = $k[--$j]; //#18993 + $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18993 + } //#18993 + if ($k[--$j]) { //#18993 + $k[$j++] = $_.E; //#18993 + break; //#18993 + } //#18993 + var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18994 + $k[$j++] = true; //#18994 + for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18994 + var _9l = $k[--$j]; //#18994 + $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18994 + } //#18994 + if ($k[--$j]) { //#18994 + $k[$j++] = $_.T; //#18994 + break; //#18994 + } //#18994 + var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18995 + $k[$j++] = true; //#18995 + for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18995 + var _9y = $k[--$j]; //#18995 + $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18995 + } //#18995 + if ($k[--$j]) { //#18995 + $k[$j++] = $_.X; //#18995 + break; //#18995 + } //#18995 + $k[$j++] = $_.C; //#18996 + break; //#18996 + } //#18996 + $_.char = $get($_.msg, $_.i + $_.k); //#18998 + $k[$j++] = 'ac'; //#18999 + $k[$j++] = $_.ac; //#18999 + $_.isD(); //#18999 + if ($k[--$j]) { //#18999 + var _A8 = $k[--$j]; //#18999 + $k[$j++] = $f(_A8 + (1 / 2)); //#18999 + } else { //#18999 + $_.isEA(); //#18999 + if ($k[--$j]) { //#18999 + var _AA = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AA) + 2; //#18999 + } else { //#18999 + var _AB = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AB) + 1; //#18999 + } //#18999 + } //#18999 + var _AC = $k[--$j]; //#18999 + $_[$k[--$j]] = _AC; //#18999 + $k[$j++] = 'cc'; //#19000 + $k[$j++] = $_.cc; //#19000 + $_.isC(); //#19000 + if ($k[--$j]) { //#19000 + var _AG = $k[--$j]; //#19000 + $k[$j++] = $f(_AG + 0.6666667); //#19000 + } else { //#19000 + $_.isEA(); //#19000 + if ($k[--$j]) { //#19000 + var _AI = $k[--$j]; //#19000 + $k[$j++] = $f(_AI + 2.6666667); //#19000 + } else { //#19000 + var _AJ = $k[--$j]; //#19000 + $k[$j++] = $f(_AJ + 1.3333334); //#19000 + } //#19000 + } //#19000 + var _AK = $k[--$j]; //#19000 + $_[$k[--$j]] = _AK; //#19000 + $k[$j++] = 'tc'; //#19001 + $k[$j++] = $_.tc; //#19001 + $_.isT(); //#19001 + if ($k[--$j]) { //#19001 + var _AO = $k[--$j]; //#19001 + $k[$j++] = $f(_AO + 0.6666667); //#19001 + } else { //#19001 + $_.isEA(); //#19001 + if ($k[--$j]) { //#19001 + var _AQ = $k[--$j]; //#19001 + $k[$j++] = $f(_AQ + 2.6666667); //#19001 + } else { //#19001 + var _AR = $k[--$j]; //#19001 + $k[$j++] = $f(_AR + 1.3333334); //#19001 + } //#19001 + } //#19001 + var _AS = $k[--$j]; //#19001 + $_[$k[--$j]] = _AS; //#19001 + $k[$j++] = 'xc'; //#19002 + $k[$j++] = $_.xc; //#19002 + $_.isX(); //#19002 + if ($k[--$j]) { //#19002 + var _AW = $k[--$j]; //#19002 + $k[$j++] = $f(_AW + 0.6666667); //#19002 + } else { //#19002 + $_.isEA(); //#19002 + if ($k[--$j]) { //#19002 + var _AY = $k[--$j]; //#19002 + $k[$j++] = $f(_AY + 4.3333334); //#19002 + } else { //#19002 + var _AZ = $k[--$j]; //#19002 + $k[$j++] = $f(_AZ + 3.3333334); //#19002 + } //#19002 + } //#19002 + var _Aa = $k[--$j]; //#19002 + $_[$k[--$j]] = _Aa; //#19002 + $k[$j++] = 'ec'; //#19003 + $k[$j++] = $_.ec; //#19003 + $_.isE(); //#19003 + if ($k[--$j]) { //#19003 + var _Ae = $k[--$j]; //#19003 + $k[$j++] = $f(_Ae + (3 / 4)); //#19003 + } else { //#19003 + $_.isEA(); //#19003 + if ($k[--$j]) { //#19003 + var _Ag = $k[--$j]; //#19003 + $k[$j++] = $f(_Ag + (17 / 4)); //#19003 + } else { //#19003 + var _Ah = $k[--$j]; //#19003 + $k[$j++] = $f(_Ah + (13 / 4)); //#19003 + } //#19003 + } //#19003 + var _Ai = $k[--$j]; //#19003 + $_[$k[--$j]] = _Ai; //#19003 + $k[$j++] = 'bc'; //#19004 + $k[$j++] = $_.bc; //#19004 + $_.isFN(); //#19004 + if ($k[--$j]) { //#19004 + var _Am = $k[--$j]; //#19004 + $k[$j++] = $f(_Am + 4); //#19004 + } else { //#19004 + var _An = $k[--$j]; //#19004 + $k[$j++] = $f(_An + 1); //#19004 + } //#19004 + var _Ao = $k[--$j]; //#19004 + $_[$k[--$j]] = _Ao; //#19004 + if ($_.k >= 4) { //#19016 + var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#19006 + $k[$j++] = true; //#19006 + for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#19006 + var _B1 = $k[--$j]; //#19006 + $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#19006 + } //#19006 + if ($k[--$j]) { //#19006 + $k[$j++] = $_.A; //#19006 + break; //#19006 + } //#19006 + if (($_.bc + 1) <= $_.ac) { //#19007 + $k[$j++] = $_.B; //#19007 + break; //#19007 + } //#19007 + var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#19008 + $k[$j++] = true; //#19008 + for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#19008 + var _BG = $k[--$j]; //#19008 + $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#19008 + } //#19008 + if ($k[--$j]) { //#19008 + $k[$j++] = $_.B; //#19008 + break; //#19008 + } //#19008 + var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#19009 + $k[$j++] = true; //#19009 + for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#19009 + var _BT = $k[--$j]; //#19009 + $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#19009 + } //#19009 + if ($k[--$j]) { //#19009 + $k[$j++] = $_.E; //#19009 + break; //#19009 + } //#19009 + var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#19010 + $k[$j++] = true; //#19010 + for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#19010 + var _Bg = $k[--$j]; //#19010 + $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#19010 + } //#19010 + if ($k[--$j]) { //#19010 + $k[$j++] = $_.T; //#19010 + break; //#19010 + } //#19010 + var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#19011 + $k[$j++] = true; //#19011 + for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#19011 + var _Bt = $k[--$j]; //#19011 + $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#19011 + } //#19011 + if ($k[--$j]) { //#19011 + $k[$j++] = $_.X; //#19011 + break; //#19011 + } //#19011 + var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#19012 + $k[$j++] = true; //#19012 + for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#19012 + var _C5 = $k[--$j]; //#19012 + $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#19012 + } //#19012 + if ($k[--$j]) { //#19015 + if ($_.cc < $_.xc) { //#19013 + $k[$j++] = $_.C; //#19013 + break; //#19013 + } //#19013 + if ($_.cc == $_.xc) { //#19014 + $k[$j++] = ($_.i + $_.k) + 1; //#19014 + $_.XtermFirst(); //#19014 + if ($k[--$j]) { //#19014 + $k[$j++] = $_.X; //#19014 + break; //#19014 + } else { //#19014 + $k[$j++] = $_.C; //#19014 + break; //#19014 + } //#19014 + } //#19014 + } //#19014 + } //#19014 + $_.k = $_.k + 1; //#19017 + } //#19017 + } //#19017 + }; //#19017 $_.addtocws = function() { - var _CI = $k[--$j]; //#18745 - $puti($_.cws, $_.j, _CI); //#18745 - $_.j = _CI.length + $_.j; //#18746 - }; //#18746 + var _CI = $k[--$j]; //#19023 + $puti($_.cws, $_.j, _CI); //#19023 + $_.j = _CI.length + $_.j; //#19024 + }; //#19024 $_.ECItocws = function() { - var _CN = $f((-$k[--$j]) - 1000000); //#18751 - $k[$j++] = _CN; //#18765 - if (_CN <= 126) { //#18764 - var _CO = $k[--$j]; //#18752 - $k[$j++] = $f(_CO + 1); //#18753 - $astore($a(1)); //#18753 - } else { //#18764 - var _CQ = $k[--$j]; //#18754 - $k[$j++] = _CQ; //#18765 - if (_CQ <= 16382) { //#18764 - var _CS = $f($k[--$j] - 127); //#18756 - $k[$j++] = (~~(_CS / 254)) + 128; //#18758 - $k[$j++] = $f((_CS % 254) + 1); //#18758 - $astore($a(2)); //#18758 - } else { //#18764 - var _CV = $f($k[--$j] - 16383); //#18761 - $k[$j++] = (~~(_CV / 64516)) + 192; //#18764 - $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#18764 - $k[$j++] = $f((_CV % 254) + 1); //#18764 - $astore($a(3)); //#18764 - } //#18764 - } //#18764 - }; //#18764 + var _CN = $f((-$k[--$j]) - 1000000); //#19029 + $k[$j++] = _CN; //#19043 + if (_CN <= 126) { //#19042 + var _CO = $k[--$j]; //#19030 + $k[$j++] = $f(_CO + 1); //#19031 + $astore($a(1)); //#19031 + } else { //#19042 + var _CQ = $k[--$j]; //#19032 + $k[$j++] = _CQ; //#19043 + if (_CQ <= 16382) { //#19042 + var _CS = $f($k[--$j] - 127); //#19034 + $k[$j++] = (~~(_CS / 254)) + 128; //#19036 + $k[$j++] = $f((_CS % 254) + 1); //#19036 + $astore($a(2)); //#19036 + } else { //#19042 + var _CV = $f($k[--$j] - 16383); //#19039 + $k[$j++] = (~~(_CV / 64516)) + 192; //#19042 + $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#19042 + $k[$j++] = $f((_CV % 254) + 1); //#19042 + $astore($a(3)); //#19042 + } //#19042 + } //#19042 + }; //#19042 $_.encA = function() { - for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#18790 - if ($get($_.isECI, $_.i)) { //#18775 - $k[$j++] = $get($_.Avals, $_.eci); //#18771 - $_.addtocws(); //#18771 - $k[$j++] = $get($_.msg, $_.i); //#18772 - $_.ECItocws(); //#18772 - $_.addtocws(); //#18772 - $_.i = $_.i + 1; //#18773 - break; //#18774 - } //#18774 - if ($get($_.numD, $_.i) >= 2) { //#18780 - var _Cm = $s(2); //#18777 - $put(_Cm, 0, $get($_.msg, $_.i)); //#18777 - $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#18777 - $k[$j++] = $get($_.Avals, _Cm); //#18777 - $_.addtocws(); //#18777 - $_.i = $_.i + 2; //#18778 - break; //#18779 - } //#18779 - $k[$j++] = 'newmode'; //#18781 - $_.lookup(); //#18781 - var _Cw = $k[--$j]; //#18781 - $_[$k[--$j]] = _Cw; //#18781 - if ($_.newmode != $_.mode) { //#18786 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18783 - $_.addtocws(); //#18783 - $_.mode = $_.newmode; //#18784 - break; //#18785 - } //#18785 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18787 - $_.addtocws(); //#18787 - $_.i = $_.i + 1; //#18788 - break; //#18789 - } //#18789 - }; //#18789 + for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#19068 + if ($get($_.isECI, $_.i)) { //#19053 + $k[$j++] = $get($_.Avals, $_.eci); //#19049 + $_.addtocws(); //#19049 + $k[$j++] = $get($_.msg, $_.i); //#19050 + $_.ECItocws(); //#19050 + $_.addtocws(); //#19050 + $_.i = $_.i + 1; //#19051 + break; //#19052 + } //#19052 + if ($get($_.numD, $_.i) >= 2) { //#19058 + var _Cm = $s(2); //#19055 + $put(_Cm, 0, $get($_.msg, $_.i)); //#19055 + $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#19055 + $k[$j++] = $get($_.Avals, _Cm); //#19055 + $_.addtocws(); //#19055 + $_.i = $_.i + 2; //#19056 + break; //#19057 + } //#19057 + $k[$j++] = 'newmode'; //#19059 + $_.lookup(); //#19059 + var _Cw = $k[--$j]; //#19059 + $_[$k[--$j]] = _Cw; //#19059 + if ($_.newmode != $_.mode) { //#19064 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19061 + $_.addtocws(); //#19061 + $_.mode = $_.newmode; //#19062 + break; //#19063 + } //#19063 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19065 + $_.addtocws(); //#19065 + $_.i = $_.i + 1; //#19066 + break; //#19067 + } //#19067 + }; //#19067 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#18794 - $k[$j++] = Infinity; //#18795 - for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#18799 - var _DM = $geti($_.in, _DK, 3); //#18797 - $k[$j++] = 0; //#18797 - for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#18797 - var _DQ = $k[--$j]; //#18797 - $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#18797 - } //#18797 - var _DS = (~~($k[--$j] / 40)) + 1; //#18798 - $k[$j++] = ~~(_DS / 256); //#18798 - $k[$j++] = _DS % 256; //#18798 - } //#18798 - $astore($a($counttomark())); //#18800 - var _DV = $k[--$j]; //#18800 - var _DW = $k[--$j]; //#18800 - $k[$j++] = _DV; //#18800 - $k[$j++] = _DW; //#18800 - $j--; //#18800 - }; //#18800 + $_.in = $k[--$j]; //#19072 + $k[$j++] = Infinity; //#19073 + for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#19077 + var _DM = $geti($_.in, _DK, 3); //#19075 + $k[$j++] = 0; //#19075 + for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#19075 + var _DQ = $k[--$j]; //#19075 + $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#19075 + } //#19075 + var _DS = (~~($k[--$j] / 40)) + 1; //#19076 + $k[$j++] = ~~(_DS / 256); //#19076 + $k[$j++] = _DS % 256; //#19076 + } //#19076 + $astore($a($counttomark())); //#19078 + var _DV = $k[--$j]; //#19078 + var _DW = $k[--$j]; //#19078 + $k[$j++] = _DV; //#19078 + $k[$j++] = _DW; //#19078 + $j--; //#19078 + }; //#19078 $_.encCTX = function() { - $_.p = 0; //#18804 - $_.ctxvals = $a(2500); //#18805 - $_.done = false; //#18806 - for (;;) { //#18885 - if ($_.i == $_.msglen) { //#18810 - break; //#18810 - } //#18810 - var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#18811 - if (!_Dg) { //#18811 - break; //#18811 - } //#18811 - if (($_.p % 3) == 0) { //#18880 - if ($_.p > 0) { //#18825 - $k[$j++] = 'newmode'; //#18814 - $_.lookup(); //#18814 - var _Dj = $k[--$j]; //#18814 - $_[$k[--$j]] = _Dj; //#18814 - if ($ne($_.newmode, $_.mode)) { //#18824 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18816 - $_.CTXvalstocws(); //#18816 - $_.addtocws(); //#18816 - $k[$j++] = $a([$_.unlcw]); //#18817 - $_.addtocws(); //#18817 - if ($_.newmode != $_.A) { //#18820 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18819 - $_.addtocws(); //#18819 - } //#18819 - $_.mode = $_.newmode; //#18821 - $_.done = true; //#18822 - break; //#18823 - } //#18823 - } //#18823 - if (($_.msglen - $_.i) <= 3) { //#18879 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#18827 - $k[$j++] = Infinity; //#18833 - var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18829 - for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#18835 - var _EI = $get(_EF, _EG); //#18835 - var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#18830 - $k[$j++] = _EI; //#18834 - if (_EM) { //#18833 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#18831 - } else { //#18833 - $j--; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - } //#18833 - } //#18833 - $_.remvals = $a(); //#18833 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#18847 - $k[$j++] = Infinity; //#18841 - $aload($geti($_.ctxvals, 0, $_.p)); //#18840 - $aload($_.remvals); //#18841 - var _EZ = $a(); //#18841 - $k[$j++] = _EZ; //#18842 - $_.CTXvalstocws(); //#18842 - $_.addtocws(); //#18842 - $_.mode = $_.A; //#18843 - $_.i = $_.msglen; //#18844 - $_.done = true; //#18845 - break; //#18846 - } //#18846 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#18859 - $k[$j++] = Infinity; //#18853 - $aload($geti($_.ctxvals, 0, $_.p)); //#18851 - $aload($_.remvals); //#18852 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#18853 - var _Ep = $a(); //#18853 - $k[$j++] = _Ep; //#18854 - $_.CTXvalstocws(); //#18854 - $_.addtocws(); //#18854 - $_.mode = $_.A; //#18855 - $_.i = $_.msglen; //#18856 - $_.done = true; //#18857 - break; //#18858 - } //#18858 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#18869 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18862 - $_.CTXvalstocws(); //#18862 - $_.addtocws(); //#18862 - $k[$j++] = $a([$_.unlcw]); //#18863 - $_.addtocws(); //#18863 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18864 - $_.addtocws(); //#18864 - $_.mode = $_.A; //#18865 - $_.i = $_.msglen; //#18866 - $_.done = true; //#18867 - break; //#18868 - } //#18868 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#18878 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18872 - $_.CTXvalstocws(); //#18872 - $_.addtocws(); //#18872 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18873 - $_.addtocws(); //#18873 - $_.mode = $_.A; //#18874 - $_.i = $_.msglen; //#18875 - $_.done = true; //#18876 - break; //#18877 - } //#18877 - } //#18877 - } //#18877 - var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#18881 - $puti($_.ctxvals, $_.p, _FO); //#18882 - $_.p = _FO.length + $_.p; //#18883 - $_.i = $_.i + 1; //#18884 - } //#18884 - if (!$_.done) { //#18909 - for (;;) { //#18893 - if (($_.p % 3) == 0) { //#18890 - break; //#18890 - } //#18890 - $_.i = $_.i - 1; //#18891 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#18892 - } //#18892 - $k[$j++] = Infinity; //#18895 - $aload($geti($_.ctxvals, 0, $_.p)); //#18895 - var _Fh = $a(); //#18895 - $k[$j++] = _Fh; //#18896 - $_.CTXvalstocws(); //#18896 - $_.addtocws(); //#18896 - $k[$j++] = $a([$_.unlcw]); //#18897 - $_.addtocws(); //#18897 - $_.mode = $_.A; //#18898 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18908 - if ($get($_.numD, $_.i) >= 2) { //#18906 - var _Ft = $s(2); //#18902 - $put(_Ft, 0, $get($_.msg, $_.i)); //#18902 - $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#18902 - $k[$j++] = $get($_.Avals, _Ft); //#18902 - $_.addtocws(); //#18902 - $_.i = $_.i + 2; //#18903 - } else { //#18906 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18905 - $_.addtocws(); //#18905 - $_.i = $_.i + 1; //#18906 - } //#18906 - } //#18906 - } //#18906 - }; //#18906 + $_.p = 0; //#19082 + $_.ctxvals = $a(2500); //#19083 + $_.done = false; //#19084 + for (;;) { //#19163 + if ($_.i == $_.msglen) { //#19088 + break; //#19088 + } //#19088 + var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#19089 + if (!_Dg) { //#19089 + break; //#19089 + } //#19089 + if (($_.p % 3) == 0) { //#19158 + if ($_.p > 0) { //#19103 + $k[$j++] = 'newmode'; //#19092 + $_.lookup(); //#19092 + var _Dj = $k[--$j]; //#19092 + $_[$k[--$j]] = _Dj; //#19092 + if ($ne($_.newmode, $_.mode)) { //#19102 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19094 + $_.CTXvalstocws(); //#19094 + $_.addtocws(); //#19094 + $k[$j++] = $a([$_.unlcw]); //#19095 + $_.addtocws(); //#19095 + if ($_.newmode != $_.A) { //#19098 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19097 + $_.addtocws(); //#19097 + } //#19097 + $_.mode = $_.newmode; //#19099 + $_.done = true; //#19100 + break; //#19101 + } //#19101 + } //#19101 + if (($_.msglen - $_.i) <= 3) { //#19157 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#19105 + $k[$j++] = Infinity; //#19106 + var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19107 + for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#19113 + var _EI = $get(_EF, _EG); //#19113 + var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#19108 + $k[$j++] = _EI; //#19112 + if (_EM) { //#19111 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#19109 + } else { //#19111 + $j--; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + } //#19111 + } //#19111 + $_.remvals = $a(); //#19111 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#19125 + $k[$j++] = Infinity; //#19117 + $aload($geti($_.ctxvals, 0, $_.p)); //#19118 + $aload($_.remvals); //#19119 + var _EZ = $a(); //#19119 + $k[$j++] = _EZ; //#19120 + $_.CTXvalstocws(); //#19120 + $_.addtocws(); //#19120 + $_.mode = $_.A; //#19121 + $_.i = $_.msglen; //#19122 + $_.done = true; //#19123 + break; //#19124 + } //#19124 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#19137 + $k[$j++] = Infinity; //#19128 + $aload($geti($_.ctxvals, 0, $_.p)); //#19129 + $aload($_.remvals); //#19130 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#19131 + var _Ep = $a(); //#19131 + $k[$j++] = _Ep; //#19132 + $_.CTXvalstocws(); //#19132 + $_.addtocws(); //#19132 + $_.mode = $_.A; //#19133 + $_.i = $_.msglen; //#19134 + $_.done = true; //#19135 + break; //#19136 + } //#19136 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#19147 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19140 + $_.CTXvalstocws(); //#19140 + $_.addtocws(); //#19140 + $k[$j++] = $a([$_.unlcw]); //#19141 + $_.addtocws(); //#19141 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19142 + $_.addtocws(); //#19142 + $_.mode = $_.A; //#19143 + $_.i = $_.msglen; //#19144 + $_.done = true; //#19145 + break; //#19146 + } //#19146 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#19156 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19150 + $_.CTXvalstocws(); //#19150 + $_.addtocws(); //#19150 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19151 + $_.addtocws(); //#19151 + $_.mode = $_.A; //#19152 + $_.i = $_.msglen; //#19153 + $_.done = true; //#19154 + break; //#19155 + } //#19155 + } //#19155 + } //#19155 + var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#19159 + $puti($_.ctxvals, $_.p, _FO); //#19160 + $_.p = _FO.length + $_.p; //#19161 + $_.i = $_.i + 1; //#19162 + } //#19162 + if (!$_.done) { //#19187 + for (;;) { //#19171 + if (($_.p % 3) == 0) { //#19168 + break; //#19168 + } //#19168 + $_.i = $_.i - 1; //#19169 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#19170 + } //#19170 + $k[$j++] = Infinity; //#19172 + $aload($geti($_.ctxvals, 0, $_.p)); //#19173 + var _Fh = $a(); //#19173 + $k[$j++] = _Fh; //#19174 + $_.CTXvalstocws(); //#19174 + $_.addtocws(); //#19174 + $k[$j++] = $a([$_.unlcw]); //#19175 + $_.addtocws(); //#19175 + $_.mode = $_.A; //#19176 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19186 + if ($get($_.numD, $_.i) >= 2) { //#19184 + var _Ft = $s(2); //#19180 + $put(_Ft, 0, $get($_.msg, $_.i)); //#19180 + $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#19180 + $k[$j++] = $get($_.Avals, _Ft); //#19180 + $_.addtocws(); //#19180 + $_.i = $_.i + 2; //#19181 + } else { //#19184 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19183 + $_.addtocws(); //#19183 + $_.i = $_.i + 1; //#19184 + } //#19184 + } //#19184 + } //#19184 + }; //#19184 $_.Evalstocws = function() { - $_.in = $k[--$j]; //#18914 - $_.inlen = $_.in.length; //#18915 - $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#18916 - $k[$j++] = Infinity; //#18917 - $aload($_.in); //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $_.in = $a(); //#18917 - $k[$j++] = Infinity; //#18918 - for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#18924 - var _GI = $geti($_.in, _GG, 4); //#18920 - $k[$j++] = 0; //#18920 - for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#18920 - var _GM = $k[--$j]; //#18920 - $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#18920 - } //#18920 - var _GO = $k[--$j] >>> 6; //#18921 - $k[$j++] = (_GO >>> 16) & 255; //#18923 - $k[$j++] = (_GO >>> 8) & 255; //#18923 - $k[$j++] = _GO & 255; //#18923 - } //#18923 - $astore($a($counttomark())); //#18925 - var _GR = $k[--$j]; //#18925 - var _GS = $k[--$j]; //#18925 - $k[$j++] = _GR; //#18925 - $k[$j++] = _GS; //#18925 - $j--; //#18925 - var _GV = $geti($k[--$j], 0, $_.outlen); //#18926 - $k[$j++] = _GV; //#18926 - }; //#18926 + $_.in = $k[--$j]; //#19192 + $_.inlen = $_.in.length; //#19193 + $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#19194 + $k[$j++] = Infinity; //#19195 + $aload($_.in); //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $_.in = $a(); //#19195 + $k[$j++] = Infinity; //#19196 + for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#19202 + var _GI = $geti($_.in, _GG, 4); //#19198 + $k[$j++] = 0; //#19198 + for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#19198 + var _GM = $k[--$j]; //#19198 + $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#19198 + } //#19198 + var _GO = $k[--$j] >>> 6; //#19199 + $k[$j++] = (_GO >>> 16) & 255; //#19201 + $k[$j++] = (_GO >>> 8) & 255; //#19201 + $k[$j++] = _GO & 255; //#19201 + } //#19201 + $astore($a($counttomark())); //#19203 + var _GR = $k[--$j]; //#19203 + var _GS = $k[--$j]; //#19203 + $k[$j++] = _GR; //#19203 + $k[$j++] = _GS; //#19203 + $j--; //#19203 + var _GV = $geti($k[--$j], 0, $_.outlen); //#19204 + $k[$j++] = _GV; //#19204 + }; //#19204 $_.encE = function() { - $_.p = 0; //#18930 - $_.edifactvals = $a(2100); //#18931 - for (;;) { //#18960 - if ($_.i == $_.msglen) { //#18935 - break; //#18935 - } //#18935 - var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#18936 - if (!_Gd) { //#18936 - break; //#18936 - } //#18936 - if (($_.p % 4) == 0) { //#18955 - if (($_.msglen - $_.i) <= 2) { //#18953 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#18939 - $k[$j++] = Infinity; //#18942 - var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18941 - for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#18943 - $aload($get($_.Avals, $get(_Gp, _Gq))); //#18942 - } //#18942 - $_.remvals = $a(); //#18942 - if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#18952 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18947 - $_.Evalstocws(); //#18947 - $_.addtocws(); //#18947 - $k[$j++] = $_.remvals; //#18948 - $_.addtocws(); //#18948 - $_.mode = $_.A; //#18949 - $_.i = $_.msglen; //#18950 - break; //#18951 - } //#18951 - } //#18951 - $_.lookup(); //#18954 - if ($k[--$j] != $_.mode) { //#18954 - break; //#18954 - } //#18954 - } //#18954 - var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#18956 - $puti($_.edifactvals, $_.p, _HC); //#18957 - $_.p = _HC.length + $_.p; //#18958 - $_.i = $_.i + 1; //#18959 - } //#18959 - if ($_.mode != $_.A) { //#18982 - $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#18964 - if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#18969 - var _HT = $get($_.Evals, $_.unl); //#18966 - $puti($_.edifactvals, $_.p, _HT); //#18967 - $_.p = _HT.length + $_.p; //#18968 - } //#18968 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18970 - $_.Evalstocws(); //#18970 - $_.addtocws(); //#18970 - $_.mode = $_.A; //#18971 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18981 - if ($get($_.numD, $_.i) >= 2) { //#18979 - var _Hj = $s(2); //#18975 - $put(_Hj, 0, $get($_.msg, $_.i)); //#18975 - $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#18975 - $k[$j++] = $get($_.Avals, _Hj); //#18975 - $_.addtocws(); //#18975 - $_.i = $_.i + 2; //#18976 - } else { //#18979 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18978 - $_.addtocws(); //#18978 - $_.i = $_.i + 1; //#18979 - } //#18979 - } //#18979 - } //#18979 - }; //#18979 + $_.p = 0; //#19208 + $_.edifactvals = $a(2100); //#19209 + for (;;) { //#19238 + if ($_.i == $_.msglen) { //#19213 + break; //#19213 + } //#19213 + var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#19214 + if (!_Gd) { //#19214 + break; //#19214 + } //#19214 + if (($_.p % 4) == 0) { //#19233 + if (($_.msglen - $_.i) <= 2) { //#19231 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#19217 + $k[$j++] = Infinity; //#19218 + var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19219 + for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#19221 + $aload($get($_.Avals, $get(_Gp, _Gq))); //#19220 + } //#19220 + $_.remvals = $a(); //#19220 + if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#19230 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19225 + $_.Evalstocws(); //#19225 + $_.addtocws(); //#19225 + $k[$j++] = $_.remvals; //#19226 + $_.addtocws(); //#19226 + $_.mode = $_.A; //#19227 + $_.i = $_.msglen; //#19228 + break; //#19229 + } //#19229 + } //#19229 + $_.lookup(); //#19232 + if ($k[--$j] != $_.mode) { //#19232 + break; //#19232 + } //#19232 + } //#19232 + var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#19234 + $puti($_.edifactvals, $_.p, _HC); //#19235 + $_.p = _HC.length + $_.p; //#19236 + $_.i = $_.i + 1; //#19237 + } //#19237 + if ($_.mode != $_.A) { //#19260 + $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#19242 + if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#19247 + var _HT = $get($_.Evals, $_.unl); //#19244 + $puti($_.edifactvals, $_.p, _HT); //#19245 + $_.p = _HT.length + $_.p; //#19246 + } //#19246 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19248 + $_.Evalstocws(); //#19248 + $_.addtocws(); //#19248 + $_.mode = $_.A; //#19249 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19259 + if ($get($_.numD, $_.i) >= 2) { //#19257 + var _Hj = $s(2); //#19253 + $put(_Hj, 0, $get($_.msg, $_.i)); //#19253 + $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#19253 + $k[$j++] = $get($_.Avals, _Hj); //#19253 + $_.addtocws(); //#19253 + $_.i = $_.i + 2; //#19254 + } else { //#19257 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19256 + $_.addtocws(); //#19256 + $_.i = $_.i + 1; //#19257 + } //#19257 + } //#19257 + } //#19257 + }; //#19257 $_.encB = function() { - $_.p = 0; //#18987 - $_.bvals = $a(1558); //#18987 - for (;;) { //#18993 - if ($_.i == $_.msglen) { //#18988 - break; //#18988 - } //#18988 - $_.lookup(); //#18989 - if ($k[--$j] != $_.mode) { //#18989 - break; //#18989 - } //#18989 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#18990 - $_.p = $_.p + 1; //#18991 - $_.i = $_.i + 1; //#18992 - } //#18992 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#18994 - $k[$j++] = Infinity; //#19001 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#18999 - $k[$j++] = 0; //#18997 - } else { //#18999 - if ($_.p < 250) { //#18999 - $k[$j++] = $_.p; //#18999 - } else { //#18999 - $k[$j++] = (~~($_.p / 250)) + 249; //#18999 - $k[$j++] = $_.p % 250; //#18999 - } //#18999 - } //#18999 - $aload($geti($_.bvals, 0, $_.p)); //#19001 - $_.bvals = $a(); //#19001 - for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19008 - $_.p = _IS; //#19004 - var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19006 - $k[$j++] = _IY; //#19006 - if (_IY >= 256) { //#19006 - var _IZ = $k[--$j]; //#19006 - $k[$j++] = $f(_IZ - 256); //#19006 - } //#19006 - $put($_.bvals, $_.p, $k[--$j]); //#19007 - } //#19007 - $k[$j++] = $_.bvals; //#19009 - $_.addtocws(); //#19009 - $_.mode = $_.A; //#19010 - }; //#19010 - $_.cws = $a(1558); //#19014 - $_.mode = $_.A; //#19015 - $_.i = 0; //#19015 - $_.j = 0; //#19015 - for (;;) { //#19018 - if ($_.i >= $_.msglen) { //#19016 - break; //#19016 - } //#19016 + $_.p = 0; //#19265 + $_.bvals = $a(1558); //#19265 + for (;;) { //#19271 + if ($_.i == $_.msglen) { //#19266 + break; //#19266 + } //#19266 + $_.lookup(); //#19267 + if ($k[--$j] != $_.mode) { //#19267 + break; //#19267 + } //#19267 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#19268 + $_.p = $_.p + 1; //#19269 + $_.i = $_.i + 1; //#19270 + } //#19270 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#19272 + $k[$j++] = Infinity; //#19273 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#19277 + $k[$j++] = 0; //#19275 + } else { //#19277 + if ($_.p < 250) { //#19277 + $k[$j++] = $_.p; //#19277 + } else { //#19277 + $k[$j++] = (~~($_.p / 250)) + 249; //#19277 + $k[$j++] = $_.p % 250; //#19277 + } //#19277 + } //#19277 + $aload($geti($_.bvals, 0, $_.p)); //#19279 + $_.bvals = $a(); //#19279 + for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19286 + $_.p = _IS; //#19282 + var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19284 + $k[$j++] = _IY; //#19284 + if (_IY >= 256) { //#19284 + var _IZ = $k[--$j]; //#19284 + $k[$j++] = $f(_IZ - 256); //#19284 + } //#19284 + $put($_.bvals, $_.p, $k[--$j]); //#19285 + } //#19285 + $k[$j++] = $_.bvals; //#19287 + $_.addtocws(); //#19287 + $_.mode = $_.A; //#19288 + }; //#19288 + $_.cws = $a(1558); //#19292 + $_.mode = $_.A; //#19293 + $_.i = 0; //#19293 + $_.j = 0; //#19293 + for (;;) { //#19296 + if ($_.i >= $_.msglen) { //#19294 + break; //#19294 + } //#19294 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $_.mode)]() === true) { break; - } //#19017 - } //#19017 - $_.cws = $geti($_.cws, 0, $_.j); //#19019 - } //#19019 - $_.datlen = $_.cws.length; //#19024 - $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19025 - if ($_.remcws > 0) { //#19034 - $k[$j++] = Infinity; //#19027 - $aload($_.cws); //#19027 - for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19027 - $k[$j++] = 129; //#19027 - } //#19027 - $_.cws = $a(); //#19027 - for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19033 - $_.i = _J4; //#19029 - var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19031 - $k[$j++] = _J6; //#19031 - if (_J6 > 254) { //#19031 - var _J7 = $k[--$j]; //#19031 - $k[$j++] = $f(_J7 - 254); //#19031 - } //#19031 - $put($_.cws, $_.i, $k[--$j]); //#19032 - } //#19032 - } //#19032 - var _JC = $get($_.options, 'debugcws') !== undefined; //#19036 - if (_JC) { //#19036 - $k[$j++] = 'bwipp.debugcws#19036'; //#19036 - $k[$j++] = $_.cws; //#19036 - bwipp_raiseerror(); //#19036 - } //#19036 - var _JE = $_.metrics; //#19039 - for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19061 - $_.m = $get(_JE, _JF); //#19040 - $_.rows = $get($_.m, 0); //#19041 - $_.cols = $get($_.m, 1); //#19042 - $_.regh = $get($_.m, 2); //#19043 - $_.regv = $get($_.m, 3); //#19044 - $_.rscw = $get($_.m, 4); //#19045 - $_.rsbl = $get($_.m, 5); //#19046 - $_.doly = $get($_.m, 6); //#19047 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#19048 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#19049 - $_.rrows = ~~($_.mrows / $_.regh); //#19050 - $_.rcols = ~~($_.mcols / $_.regv); //#19051 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19052 - $_.okay = true; //#19053 - if ($_.cws.length != $_.ncws) { //#19054 - $_.okay = false; //#19054 - } //#19054 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19055 - $_.okay = false; //#19055 - } //#19055 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19056 - $_.okay = false; //#19056 - } //#19056 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19057 - $_.okay = false; //#19057 - } //#19057 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19058 - $_.okay = false; //#19058 - } //#19058 - if ((!$_.dmre) && ($_.doly == 1)) { //#19059 - $_.okay = false; //#19059 - } //#19059 - if ($_.okay) { //#19060 - break; //#19060 - } //#19060 - } //#19060 - if (!$_.okay) { //#19065 - $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19064'; //#19064 - $k[$j++] = "Maximum length exceeded or invalid size"; //#19064 - bwipp_raiseerror(); //#19064 - } //#19064 - $_.cwbs = $a($_.rsbl); //#19068 - $_.ecbs = $a($_.rsbl); //#19069 - for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19084 - $_.i = _K5; //#19071 - if ($_.cws.length != 1558) { //#19075 - $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19073 - } else { //#19075 - if ($_.i <= 7) { //#19075 - $_.cwbsize = 156; //#19075 - } else { //#19075 - $_.cwbsize = 155; //#19075 - } //#19075 - } //#19075 - $_.cwb = $a($_.cwbsize); //#19077 - for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19081 - $_.j = _KE; //#19079 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19080 - } //#19080 - $put($_.cwbs, $_.i, $_.cwb); //#19082 - $k[$j++] = $_.ecbs; //#19083 - $k[$j++] = $_.i; //#19083 - $k[$j++] = Infinity; //#19083 - for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19083 - $k[$j++] = 0; //#19083 - } //#19083 - var _KV = $a(); //#19083 - var _KW = $k[--$j]; //#19083 - $put($k[--$j], _KW, _KV); //#19083 - } //#19083 - if (!bwipp_datamatrix.__19091__) { //#19091 - $_ = Object.create($_); //#19091 - $k[$j++] = Infinity; //#19088 - $k[$j++] = 1; //#19088 - for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19088 - var _Ka = $k[--$j]; //#19088 - var _Kb = _Ka * 2; //#19088 - $k[$j++] = _Ka; //#19088 - $k[$j++] = _Kb; //#19088 - if (_Kb >= 256) { //#19088 - var _Kc = $k[--$j]; //#19088 - $k[$j++] = _Kc ^ 301; //#19088 - } //#19088 - } //#19088 - $_.rsalog = $a(); //#19088 - $_.rslog = $a(256); //#19089 - for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19090 - $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19090 - } //#19090 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19090 - bwipp_datamatrix.__19091__ = 1; //#19090 - $_ = Object.getPrototypeOf($_); //#19090 - } //#19090 + } //#19295 + } //#19295 + $_.cws = $geti($_.cws, 0, $_.j); //#19297 + } //#19297 + $_.datlen = $_.cws.length; //#19302 + $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19303 + if ($_.remcws > 0) { //#19312 + $k[$j++] = Infinity; //#19305 + $aload($_.cws); //#19305 + for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19305 + $k[$j++] = 129; //#19305 + } //#19305 + $_.cws = $a(); //#19305 + for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19311 + $_.i = _J4; //#19307 + var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19309 + $k[$j++] = _J6; //#19309 + if (_J6 > 254) { //#19309 + var _J7 = $k[--$j]; //#19309 + $k[$j++] = $f(_J7 - 254); //#19309 + } //#19309 + $put($_.cws, $_.i, $k[--$j]); //#19310 + } //#19310 + } //#19310 + var _JC = $get($_.options, 'debugcws') !== undefined; //#19314 + if (_JC) { //#19314 + $k[$j++] = 'bwipp.debugcws#19314'; //#19314 + $k[$j++] = $_.cws; //#19314 + bwipp_raiseerror(); //#19314 + } //#19314 + var _JE = $_.metrics; //#19317 + for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19339 + $_.m = $get(_JE, _JF); //#19318 + $_.rows = $get($_.m, 0); //#19319 + $_.cols = $get($_.m, 1); //#19320 + $_.regh = $get($_.m, 2); //#19321 + $_.regv = $get($_.m, 3); //#19322 + $_.rscw = $get($_.m, 4); //#19323 + $_.rsbl = $get($_.m, 5); //#19324 + $_.doly = $get($_.m, 6); //#19325 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#19326 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#19327 + $_.rrows = ~~($_.mrows / $_.regh); //#19328 + $_.rcols = ~~($_.mcols / $_.regv); //#19329 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19330 + $_.okay = true; //#19331 + if ($_.cws.length != $_.ncws) { //#19332 + $_.okay = false; //#19332 + } //#19332 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19333 + $_.okay = false; //#19333 + } //#19333 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19334 + $_.okay = false; //#19334 + } //#19334 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19335 + $_.okay = false; //#19335 + } //#19335 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19336 + $_.okay = false; //#19336 + } //#19336 + if ((!$_.dmre) && ($_.doly == 1)) { //#19337 + $_.okay = false; //#19337 + } //#19337 + if ($_.okay) { //#19338 + break; //#19338 + } //#19338 + } //#19338 + if (!$_.okay) { //#19343 + $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19342'; //#19342 + $k[$j++] = "Maximum length exceeded or invalid size"; //#19342 + bwipp_raiseerror(); //#19342 + } //#19342 + $_.cwbs = $a($_.rsbl); //#19346 + $_.ecbs = $a($_.rsbl); //#19347 + for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19362 + $_.i = _K5; //#19349 + if ($_.cws.length != 1558) { //#19353 + $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19351 + } else { //#19353 + if ($_.i <= 7) { //#19353 + $_.cwbsize = 156; //#19353 + } else { //#19353 + $_.cwbsize = 155; //#19353 + } //#19353 + } //#19353 + $_.cwb = $a($_.cwbsize); //#19355 + for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19359 + $_.j = _KE; //#19357 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19358 + } //#19358 + $put($_.cwbs, $_.i, $_.cwb); //#19360 + $k[$j++] = $_.ecbs; //#19361 + $k[$j++] = $_.i; //#19361 + $k[$j++] = Infinity; //#19361 + for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19361 + $k[$j++] = 0; //#19361 + } //#19361 + var _KV = $a(); //#19361 + var _KW = $k[--$j]; //#19361 + $put($k[--$j], _KW, _KV); //#19361 + } //#19361 + if (!bwipp_datamatrix.__19369__) { //#19369 + $_ = Object.create($_); //#19369 + $k[$j++] = Infinity; //#19366 + $k[$j++] = 1; //#19366 + for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19366 + var _Ka = $k[--$j]; //#19366 + var _Kb = _Ka * 2; //#19366 + $k[$j++] = _Ka; //#19366 + $k[$j++] = _Kb; //#19366 + if (_Kb >= 256) { //#19366 + var _Kc = $k[--$j]; //#19366 + $k[$j++] = _Kc ^ 301; //#19366 + } //#19366 + } //#19366 + $_.rsalog = $a(); //#19366 + $_.rslog = $a(256); //#19367 + for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19368 + $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19368 + } //#19368 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19368 + bwipp_datamatrix.__19369__ = 1; //#19368 + $_ = Object.getPrototypeOf($_); //#19368 + } //#19368 $_.rsprod = function() { - var _Kk = $k[--$j]; //#19095 - var _Kl = $k[--$j]; //#19095 - $k[$j++] = _Kl; //#19099 - $k[$j++] = _Kk; //#19099 - if ((_Kk != 0) && (_Kl != 0)) { //#19098 - var _Ko = $get($_.rslog, $k[--$j]); //#19096 - var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19096 - $k[$j++] = _Kt; //#19096 - } else { //#19098 - $j -= 2; //#19098 - $k[$j++] = 0; //#19098 - } //#19098 - }; //#19098 - $k[$j++] = Infinity; //#19103 - $k[$j++] = 1; //#19103 - for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19103 - $k[$j++] = 0; //#19103 - } //#19103 - $_.coeffs = $a(); //#19103 - for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19112 - $_.i = _L2; //#19105 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19106 - for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19110 - $_.j = _L9; //#19108 - $k[$j++] = $_.coeffs; //#19109 - $k[$j++] = $_.j; //#19109 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#19109 - $k[$j++] = $get($_.coeffs, $_.j); //#19109 - $k[$j++] = $get($_.rsalog, $_.i); //#19109 - $_.rsprod(); //#19109 - var _LL = $k[--$j]; //#19109 - var _LM = $k[--$j]; //#19109 - var _LN = $k[--$j]; //#19109 - $put($k[--$j], _LN, $xo(_LM, _LL)); //#19109 - } //#19109 - $k[$j++] = $_.coeffs; //#19111 - $k[$j++] = 0; //#19111 - $k[$j++] = $get($_.coeffs, 0); //#19111 - $k[$j++] = $get($_.rsalog, $_.i); //#19111 - $_.rsprod(); //#19111 - var _LV = $k[--$j]; //#19111 - var _LW = $k[--$j]; //#19111 - $put($k[--$j], _LW, _LV); //#19111 - } //#19111 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19113 - for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19129 - $_.i = _Ld; //#19117 - $_.cwb = $get($_.cwbs, $_.i); //#19118 - $_.ecb = $get($_.ecbs, $_.i); //#19119 - for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19128 - $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19121 - for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19127 - $_.j = _Ls; //#19123 - $_.p = ($_.ecb.length - $_.j) - 1; //#19124 - $k[$j++] = $_.ecb; //#19125 - $k[$j++] = $_.p; //#19125 - $k[$j++] = $_.t; //#19125 - $k[$j++] = $get($_.coeffs, $_.j); //#19125 - $_.rsprod(); //#19125 - var _M1 = $k[--$j]; //#19125 - var _M2 = $k[--$j]; //#19125 - $put($k[--$j], _M2, _M1); //#19125 - if ($_.j > 0) { //#19126 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19126 - } //#19126 - } //#19126 - } //#19126 - } //#19126 - if ($_.ncws == 1558) { //#19134 - $k[$j++] = Infinity; //#19133 - var _MF = $geti($_.ecbs, 8, 2); //#19133 - for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19133 - $k[$j++] = $get(_MF, _MG); //#19133 - } //#19133 - var _MK = $geti($_.ecbs, 0, 8); //#19133 - for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19133 - $k[$j++] = $get(_MK, _ML); //#19133 - } //#19133 - $_.ecbs = $a(); //#19133 - } //#19133 - $k[$j++] = Infinity; //#19137 - var _MP = $_.cws; //#19137 - for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19137 - $k[$j++] = $get(_MP, _MQ); //#19137 - } //#19137 - for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19137 - $k[$j++] = 0; //#19137 - } //#19137 - $_.cws = $a(); //#19137 - for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19141 - $_.i = _MZ; //#19139 - $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19140 - } //#19140 + var _Kk = $k[--$j]; //#19373 + var _Kl = $k[--$j]; //#19373 + $k[$j++] = _Kl; //#19377 + $k[$j++] = _Kk; //#19377 + if ((_Kk != 0) && (_Kl != 0)) { //#19376 + var _Ko = $get($_.rslog, $k[--$j]); //#19374 + var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19374 + $k[$j++] = _Kt; //#19374 + } else { //#19376 + $j -= 2; //#19376 + $k[$j++] = 0; //#19376 + } //#19376 + }; //#19376 + $k[$j++] = Infinity; //#19381 + $k[$j++] = 1; //#19381 + for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19381 + $k[$j++] = 0; //#19381 + } //#19381 + $_.coeffs = $a(); //#19381 + for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19390 + $_.i = _L2; //#19383 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19384 + for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19388 + $_.j = _L9; //#19386 + $k[$j++] = $_.coeffs; //#19387 + $k[$j++] = $_.j; //#19387 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#19387 + $k[$j++] = $get($_.coeffs, $_.j); //#19387 + $k[$j++] = $get($_.rsalog, $_.i); //#19387 + $_.rsprod(); //#19387 + var _LL = $k[--$j]; //#19387 + var _LM = $k[--$j]; //#19387 + var _LN = $k[--$j]; //#19387 + $put($k[--$j], _LN, $xo(_LM, _LL)); //#19387 + } //#19387 + $k[$j++] = $_.coeffs; //#19389 + $k[$j++] = 0; //#19389 + $k[$j++] = $get($_.coeffs, 0); //#19389 + $k[$j++] = $get($_.rsalog, $_.i); //#19389 + $_.rsprod(); //#19389 + var _LV = $k[--$j]; //#19389 + var _LW = $k[--$j]; //#19389 + $put($k[--$j], _LW, _LV); //#19389 + } //#19389 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19391 + for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19407 + $_.i = _Ld; //#19395 + $_.cwb = $get($_.cwbs, $_.i); //#19396 + $_.ecb = $get($_.ecbs, $_.i); //#19397 + for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19406 + $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19399 + for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19405 + $_.j = _Ls; //#19401 + $_.p = ($_.ecb.length - $_.j) - 1; //#19402 + $k[$j++] = $_.ecb; //#19403 + $k[$j++] = $_.p; //#19403 + $k[$j++] = $_.t; //#19403 + $k[$j++] = $get($_.coeffs, $_.j); //#19403 + $_.rsprod(); //#19403 + var _M1 = $k[--$j]; //#19403 + var _M2 = $k[--$j]; //#19403 + $put($k[--$j], _M2, _M1); //#19403 + if ($_.j > 0) { //#19404 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19404 + } //#19404 + } //#19404 + } //#19404 + } //#19404 + if ($_.ncws == 1558) { //#19412 + $k[$j++] = Infinity; //#19411 + var _MF = $geti($_.ecbs, 8, 2); //#19411 + for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19411 + $k[$j++] = $get(_MF, _MG); //#19411 + } //#19411 + var _MK = $geti($_.ecbs, 0, 8); //#19411 + for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19411 + $k[$j++] = $get(_MK, _ML); //#19411 + } //#19411 + $_.ecbs = $a(); //#19411 + } //#19411 + $k[$j++] = Infinity; //#19415 + var _MP = $_.cws; //#19415 + for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19415 + $k[$j++] = $get(_MP, _MQ); //#19415 + } //#19415 + for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19415 + $k[$j++] = 0; //#19415 + } //#19415 + $_.cws = $a(); //#19415 + for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19419 + $_.i = _MZ; //#19417 + $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19418 + } //#19418 $_.module = function() { - var _Mk = $k[--$j]; //#19146 - var _Ml = $k[--$j]; //#19146 - var _Mm = $k[--$j]; //#19146 - var _Mp = $strcpy($s(8), "00000000"); //#19147 - var _Mr = $cvrs($s(8), $k[--$j], 2); //#19147 - $puti(_Mp, 8 - _Mr.length, _Mr); //#19148 - $k[$j++] = _Mm; //#19149 - $k[$j++] = _Ml; //#19149 - $k[$j++] = _Mk; //#19149 - $k[$j++] = _Mp; //#19149 - for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19149 - var _Mt = $k[--$j]; //#19149 - $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19149 - $k[$j++] = _Mt; //#19149 - } //#19149 - $j--; //#19149 - var _Mv = $k[--$j]; //#19150 - var _Mw = $k[--$j]; //#19150 - var _Mx = $k[--$j]; //#19150 - var _My = $k[--$j]; //#19150 - var _Mz = $k[--$j]; //#19150 - var _N0 = $k[--$j]; //#19150 - var _N1 = $k[--$j]; //#19150 - var _N2 = $k[--$j]; //#19150 - var _N3 = $k[--$j]; //#19150 - var _N4 = $k[--$j]; //#19150 - var _N5 = $k[--$j]; //#19150 - $k[$j++] = _N2; //#19167 - $k[$j++] = _N1; //#19167 - $k[$j++] = _N0; //#19167 - $k[$j++] = _Mz; //#19167 - $k[$j++] = _My; //#19167 - $k[$j++] = _Mx; //#19167 - $k[$j++] = _Mw; //#19167 - $k[$j++] = _Mv; //#19167 - $k[$j++] = _N5; //#19167 - $k[$j++] = _N4; //#19167 - $forall(_N3, function() { //#19167 + var _Mk = $k[--$j]; //#19424 + var _Ml = $k[--$j]; //#19424 + var _Mm = $k[--$j]; //#19424 + var _Mp = $strcpy($s(8), "00000000"); //#19425 + var _Mr = $cvrs($s(8), $k[--$j], 2); //#19425 + $puti(_Mp, 8 - _Mr.length, _Mr); //#19426 + $k[$j++] = _Mm; //#19427 + $k[$j++] = _Ml; //#19427 + $k[$j++] = _Mk; //#19427 + $k[$j++] = _Mp; //#19427 + for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19427 + var _Mt = $k[--$j]; //#19427 + $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19427 + $k[$j++] = _Mt; //#19427 + } //#19427 + $j--; //#19427 + var _Mv = $k[--$j]; //#19428 + var _Mw = $k[--$j]; //#19428 + var _Mx = $k[--$j]; //#19428 + var _My = $k[--$j]; //#19428 + var _Mz = $k[--$j]; //#19428 + var _N0 = $k[--$j]; //#19428 + var _N1 = $k[--$j]; //#19428 + var _N2 = $k[--$j]; //#19428 + var _N3 = $k[--$j]; //#19428 + var _N4 = $k[--$j]; //#19428 + var _N5 = $k[--$j]; //#19428 + $k[$j++] = _N2; //#19445 + $k[$j++] = _N1; //#19445 + $k[$j++] = _N0; //#19445 + $k[$j++] = _Mz; //#19445 + $k[$j++] = _My; //#19445 + $k[$j++] = _Mx; //#19445 + $k[$j++] = _Mw; //#19445 + $k[$j++] = _Mv; //#19445 + $k[$j++] = _N5; //#19445 + $k[$j++] = _N4; //#19445 + $forall(_N3, function() { //#19445 if ($k[--$j]() === true) { return true; - } //#19153 - var _N7 = $k[--$j]; //#19154 - var _N8 = $k[--$j]; //#19154 - $k[$j++] = _N8; //#19157 - $k[$j++] = _N7; //#19157 - if (_N8 < 0) { //#19157 - var _N9 = $k[--$j]; //#19155 - var _NA = $k[--$j]; //#19155 - $k[$j++] = $f(_NA + $_.mrows); //#19156 - $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19156 - } //#19156 - var _ND = $k[--$j]; //#19158 - $k[$j++] = _ND; //#19161 - if (_ND < 0) { //#19161 - var _NF = $k[--$j]; //#19159 - var _NG = $k[--$j]; //#19159 - $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19160 - $k[$j++] = $f(_NF + $_.mcols); //#19160 - } //#19160 - var _NI = $k[--$j]; //#19162 - var _NJ = $k[--$j]; //#19162 - $k[$j++] = _NJ; //#19164 - $k[$j++] = _NI; //#19164 - if (_NJ >= $_.mrows) { //#19164 - var _NL = $k[--$j]; //#19163 - var _NM = $k[--$j]; //#19163 - $k[$j++] = $f(_NM - $_.mrows); //#19163 - $k[$j++] = _NL; //#19163 - } //#19163 - var _NO = $k[--$j]; //#19165 - var _NP = $k[--$j]; //#19165 - var _NS = $k[--$j]; //#19166 - var _NT = $k[--$j]; //#19166 - $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19166 - $k[$j++] = _NT; //#19166 - $k[$j++] = _NS; //#19166 - }); //#19166 - }; //#19166 + } //#19431 + var _N7 = $k[--$j]; //#19432 + var _N8 = $k[--$j]; //#19432 + $k[$j++] = _N8; //#19435 + $k[$j++] = _N7; //#19435 + if (_N8 < 0) { //#19435 + var _N9 = $k[--$j]; //#19433 + var _NA = $k[--$j]; //#19433 + $k[$j++] = $f(_NA + $_.mrows); //#19434 + $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19434 + } //#19434 + var _ND = $k[--$j]; //#19436 + $k[$j++] = _ND; //#19439 + if (_ND < 0) { //#19439 + var _NF = $k[--$j]; //#19437 + var _NG = $k[--$j]; //#19437 + $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19438 + $k[$j++] = $f(_NF + $_.mcols); //#19438 + } //#19438 + var _NI = $k[--$j]; //#19440 + var _NJ = $k[--$j]; //#19440 + $k[$j++] = _NJ; //#19442 + $k[$j++] = _NI; //#19442 + if (_NJ >= $_.mrows) { //#19442 + var _NL = $k[--$j]; //#19441 + var _NM = $k[--$j]; //#19441 + $k[$j++] = $f(_NM - $_.mrows); //#19441 + $k[$j++] = _NL; //#19441 + } //#19441 + var _NO = $k[--$j]; //#19443 + var _NP = $k[--$j]; //#19443 + var _NS = $k[--$j]; //#19444 + var _NT = $k[--$j]; //#19444 + $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19444 + $k[$j++] = _NT; //#19444 + $k[$j++] = _NS; //#19444 + }); //#19444 + }; //#19444 var _Nl = $a([function() { - var _NV = $k[--$j]; //#19172 - var _NW = $k[--$j]; //#19172 - $k[$j++] = _NW; //#19172 - $k[$j++] = _NV; //#19172 - $k[$j++] = $f(_NW - 2); //#19172 - $k[$j++] = $f(_NV - 2); //#19172 + var _NV = $k[--$j]; //#19450 + var _NW = $k[--$j]; //#19450 + $k[$j++] = _NW; //#19450 + $k[$j++] = _NV; //#19450 + $k[$j++] = $f(_NW - 2); //#19450 + $k[$j++] = $f(_NV - 2); //#19450 }, function() { - var _NX = $k[--$j]; //#19172 - var _NY = $k[--$j]; //#19172 - $k[$j++] = _NY; //#19172 - $k[$j++] = _NX; //#19172 - $k[$j++] = $f(_NY - 2); //#19172 - $k[$j++] = $f(_NX - 1); //#19172 + var _NX = $k[--$j]; //#19450 + var _NY = $k[--$j]; //#19450 + $k[$j++] = _NY; //#19450 + $k[$j++] = _NX; //#19450 + $k[$j++] = $f(_NY - 2); //#19450 + $k[$j++] = $f(_NX - 1); //#19450 }, function() { - var _NZ = $k[--$j]; //#19173 - var _Na = $k[--$j]; //#19173 - $k[$j++] = _Na; //#19173 - $k[$j++] = _NZ; //#19173 - $k[$j++] = $f(_Na - 1); //#19173 - $k[$j++] = $f(_NZ - 2); //#19173 + var _NZ = $k[--$j]; //#19451 + var _Na = $k[--$j]; //#19451 + $k[$j++] = _Na; //#19451 + $k[$j++] = _NZ; //#19451 + $k[$j++] = $f(_Na - 1); //#19451 + $k[$j++] = $f(_NZ - 2); //#19451 }, function() { - var _Nb = $k[--$j]; //#19173 - var _Nc = $k[--$j]; //#19173 - $k[$j++] = _Nc; //#19173 - $k[$j++] = _Nb; //#19173 - $k[$j++] = $f(_Nc - 1); //#19173 - $k[$j++] = $f(_Nb - 1); //#19173 + var _Nb = $k[--$j]; //#19451 + var _Nc = $k[--$j]; //#19451 + $k[$j++] = _Nc; //#19451 + $k[$j++] = _Nb; //#19451 + $k[$j++] = $f(_Nc - 1); //#19451 + $k[$j++] = $f(_Nb - 1); //#19451 }, function() { - var _Nd = $k[--$j]; //#19174 - var _Ne = $k[--$j]; //#19174 - $k[$j++] = _Ne; //#19174 - $k[$j++] = _Nd; //#19174 - $k[$j++] = $f(_Ne - 1); //#19174 - $k[$j++] = _Nd; //#19174 + var _Nd = $k[--$j]; //#19452 + var _Ne = $k[--$j]; //#19452 + $k[$j++] = _Ne; //#19452 + $k[$j++] = _Nd; //#19452 + $k[$j++] = $f(_Ne - 1); //#19452 + $k[$j++] = _Nd; //#19452 }, function() { - var _Nf = $k[--$j]; //#19174 - var _Ng = $k[--$j]; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = _Nf; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = $f(_Nf - 2); //#19174 + var _Nf = $k[--$j]; //#19452 + var _Ng = $k[--$j]; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = _Nf; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = $f(_Nf - 2); //#19452 }, function() { - var _Nh = $k[--$j]; //#19175 - var _Ni = $k[--$j]; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = _Nh; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = $f(_Nh - 1); //#19175 + var _Nh = $k[--$j]; //#19453 + var _Ni = $k[--$j]; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = _Nh; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = $f(_Nh - 1); //#19453 }, function() { - var _Nj = $k[--$j]; //#19175 - var _Nk = $k[--$j]; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - }]); //#19175 - $_.dmn = _Nl; //#19176 + var _Nj = $k[--$j]; //#19453 + var _Nk = $k[--$j]; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + }]); //#19453 + $_.dmn = _Nl; //#19454 var _Nu = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 0; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 0; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 1; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 1; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19180 - $k[$j++] = 2; //#19180 + $k[$j++] = $f($_.mrows - 1); //#19458 + $k[$j++] = 2; //#19458 }, function() { - $k[$j++] = 0; //#19180 - $k[$j++] = $f($_.mcols - 2); //#19180 + $k[$j++] = 0; //#19458 + $k[$j++] = $f($_.mcols - 2); //#19458 }, function() { - $k[$j++] = 0; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 0; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 1; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 1; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 2; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 + $k[$j++] = 2; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 }, function() { - $k[$j++] = 3; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 - }]); //#19182 - $_.dmc1 = _Nu; //#19183 + $k[$j++] = 3; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 + }]); //#19460 + $_.dmc1 = _Nu; //#19461 var _O3 = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 3); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 2); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19187 - $k[$j++] = 0; //#19187 + $k[$j++] = $f($_.mrows - 1); //#19465 + $k[$j++] = 0; //#19465 }, function() { - $k[$j++] = 0; //#19187 - $k[$j++] = $f($_.mcols - 4); //#19187 + $k[$j++] = 0; //#19465 + $k[$j++] = $f($_.mcols - 4); //#19465 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 3); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 3); //#19466 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 2); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 2); //#19466 }, function() { - $k[$j++] = 0; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 + $k[$j++] = 0; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 }, function() { - $k[$j++] = 1; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 - }]); //#19189 - $_.dmc2 = _O3; //#19190 + $k[$j++] = 1; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 + }]); //#19467 + $_.dmc2 = _O3; //#19468 var _OC = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 3); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 2); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19194 - $k[$j++] = 0; //#19194 + $k[$j++] = $f($_.mrows - 1); //#19472 + $k[$j++] = 0; //#19472 }, function() { - $k[$j++] = 0; //#19194 - $k[$j++] = $f($_.mcols - 2); //#19194 + $k[$j++] = 0; //#19472 + $k[$j++] = $f($_.mcols - 2); //#19472 }, function() { - $k[$j++] = 0; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 0; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 1; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 1; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 2; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 + $k[$j++] = 2; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 }, function() { - $k[$j++] = 3; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 - }]); //#19196 - $_.dmc3 = _OC; //#19197 + $k[$j++] = 3; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 + }]); //#19474 + $_.dmc3 = _OC; //#19475 var _OM = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = 0; //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = 0; //#19478 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = $f($_.mcols - 1); //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = $f($_.mcols - 1); //#19478 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 3); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 3); //#19479 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 2); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 2); //#19479 }, function() { - $k[$j++] = 0; //#19202 - $k[$j++] = $f($_.mcols - 1); //#19202 + $k[$j++] = 0; //#19480 + $k[$j++] = $f($_.mcols - 1); //#19480 }, function() { - $k[$j++] = 1; //#19202 - $k[$j++] = $f($_.mcols - 3); //#19202 + $k[$j++] = 1; //#19480 + $k[$j++] = $f($_.mcols - 3); //#19480 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 2); //#19203 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 2); //#19481 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 1); //#19203 - }]); //#19203 - $_.dmc4 = _OM; //#19204 - $k[$j++] = Infinity; //#19206 - for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19206 - $k[$j++] = -1; //#19206 - } //#19206 - $_.mmat = $a(); //#19206 - for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19207 - $k[$j++] = $get($_.cws, _OT); //#19207 - } //#19207 - $k[$j++] = 4; //#19247 - $k[$j++] = 0; //#19247 - for (;;) { //#19247 - var _OW = $k[--$j]; //#19210 - var _OX = $k[--$j]; //#19210 - $k[$j++] = _OX; //#19212 - $k[$j++] = _OW; //#19212 - if ((_OW == 0) && (_OX == $_.mrows)) { //#19212 - $k[$j++] = $_.dmc1; //#19211 - $_.module(); //#19211 - } //#19211 - var _Oa = $k[--$j]; //#19213 - var _Ob = $k[--$j]; //#19213 - $k[$j++] = _Ob; //#19215 - $k[$j++] = _Oa; //#19215 - if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19215 - $k[$j++] = $_.dmc2; //#19214 - $_.module(); //#19214 - } //#19214 - var _Of = $k[--$j]; //#19216 - var _Og = $k[--$j]; //#19216 - $k[$j++] = _Og; //#19218 - $k[$j++] = _Of; //#19218 - if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19218 - $k[$j++] = $_.dmc3; //#19217 - $_.module(); //#19217 - } //#19217 - var _Ok = $k[--$j]; //#19219 - var _Ol = $k[--$j]; //#19219 - $k[$j++] = _Ol; //#19221 - $k[$j++] = _Ok; //#19221 - if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19221 - $k[$j++] = $_.dmc4; //#19220 - $_.module(); //#19220 - } //#19220 - for (;;) { //#19231 - var _Op = $k[--$j]; //#19224 - var _Oq = $k[--$j]; //#19224 - $k[$j++] = _Oq; //#19228 - $k[$j++] = _Op; //#19228 - if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19228 - var _Os = $k[--$j]; //#19225 - var _Ot = $k[--$j]; //#19225 - $k[$j++] = _Ot; //#19227 - $k[$j++] = _Os; //#19227 - if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19227 - $k[$j++] = $_.dmn; //#19226 - $_.module(); //#19226 - } //#19226 - } //#19226 - var _Oy = $k[--$j]; //#19229 - var _Oz = $k[--$j]; //#19229 - $k[$j++] = $f(_Oz - 2); //#19230 - $k[$j++] = $f(_Oy + 2); //#19230 - if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19230 - break; //#19230 - } //#19230 - } //#19230 - var _P1 = $k[--$j]; //#19232 - var _P2 = $k[--$j]; //#19232 - $k[$j++] = $f(_P2 + 1); //#19242 - $k[$j++] = $f(_P1 + 3); //#19242 - for (;;) { //#19242 - var _P3 = $k[--$j]; //#19235 - var _P4 = $k[--$j]; //#19235 - $k[$j++] = _P4; //#19239 - $k[$j++] = _P3; //#19239 - if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19239 - var _P6 = $k[--$j]; //#19236 - var _P7 = $k[--$j]; //#19236 - $k[$j++] = _P7; //#19238 - $k[$j++] = _P6; //#19238 - if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19238 - $k[$j++] = $_.dmn; //#19237 - $_.module(); //#19237 - } //#19237 - } //#19237 - var _PC = $k[--$j]; //#19240 - var _PD = $k[--$j]; //#19240 - $k[$j++] = $f(_PD + 2); //#19241 - $k[$j++] = $f(_PC - 2); //#19241 - if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19241 - break; //#19241 - } //#19241 - } //#19241 - var _PF = $k[--$j]; //#19243 - var _PG = $k[--$j]; //#19243 - $k[$j++] = $f(_PG + 3); //#19245 - $k[$j++] = $f(_PF + 1); //#19245 - if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19245 - $j -= 2; //#19245 - break; //#19245 - } //#19245 - } //#19245 - if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19253 - $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19251 - $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19252 - } //#19252 - $_.pixs = $a($_.rows * $_.cols); //#19256 - $_.cwpos = 0; //#19257 - for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19273 - $_.i = _Pa; //#19259 - if (($_.i % ($_.rrows + 2)) == 0) { //#19260 - $k[$j++] = $_.pixs; //#19260 - $k[$j++] = $_.i * $_.cols; //#19260 - $k[$j++] = Infinity; //#19260 - for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19260 - $k[$j++] = 1; //#19260 - $k[$j++] = 0; //#19260 - } //#19260 - var _Pj = $a(); //#19260 - var _Pk = $k[--$j]; //#19260 - $puti($k[--$j], _Pk, _Pj); //#19260 - } //#19260 - if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19261 - $k[$j++] = $_.pixs; //#19261 - $k[$j++] = $_.i * $_.cols; //#19261 - $k[$j++] = Infinity; //#19261 - for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19261 - $k[$j++] = 1; //#19261 - } //#19261 - var _Pv = $a(); //#19261 - var _Pw = $k[--$j]; //#19261 - $puti($k[--$j], _Pw, _Pv); //#19261 - } //#19261 - if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19272 - for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19271 - $_.j = _Q5; //#19264 - if (($_.j % ($_.rcols + 2)) == 0) { //#19265 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19265 - } //#19265 - if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19266 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19266 - } //#19266 - if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19270 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19268 - $_.cwpos = $_.cwpos + 1; //#19269 - } //#19269 - } //#19269 - } //#19269 - } //#19269 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 1); //#19481 + }]); //#19481 + $_.dmc4 = _OM; //#19482 + $k[$j++] = Infinity; //#19484 + for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19484 + $k[$j++] = -1; //#19484 + } //#19484 + $_.mmat = $a(); //#19484 + for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19485 + $k[$j++] = $get($_.cws, _OT); //#19485 + } //#19485 + $k[$j++] = 4; //#19525 + $k[$j++] = 0; //#19525 + for (;;) { //#19525 + var _OW = $k[--$j]; //#19488 + var _OX = $k[--$j]; //#19488 + $k[$j++] = _OX; //#19490 + $k[$j++] = _OW; //#19490 + if ((_OW == 0) && (_OX == $_.mrows)) { //#19490 + $k[$j++] = $_.dmc1; //#19489 + $_.module(); //#19489 + } //#19489 + var _Oa = $k[--$j]; //#19491 + var _Ob = $k[--$j]; //#19491 + $k[$j++] = _Ob; //#19493 + $k[$j++] = _Oa; //#19493 + if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19493 + $k[$j++] = $_.dmc2; //#19492 + $_.module(); //#19492 + } //#19492 + var _Of = $k[--$j]; //#19494 + var _Og = $k[--$j]; //#19494 + $k[$j++] = _Og; //#19496 + $k[$j++] = _Of; //#19496 + if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19496 + $k[$j++] = $_.dmc3; //#19495 + $_.module(); //#19495 + } //#19495 + var _Ok = $k[--$j]; //#19497 + var _Ol = $k[--$j]; //#19497 + $k[$j++] = _Ol; //#19499 + $k[$j++] = _Ok; //#19499 + if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19499 + $k[$j++] = $_.dmc4; //#19498 + $_.module(); //#19498 + } //#19498 + for (;;) { //#19509 + var _Op = $k[--$j]; //#19502 + var _Oq = $k[--$j]; //#19502 + $k[$j++] = _Oq; //#19506 + $k[$j++] = _Op; //#19506 + if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19506 + var _Os = $k[--$j]; //#19503 + var _Ot = $k[--$j]; //#19503 + $k[$j++] = _Ot; //#19505 + $k[$j++] = _Os; //#19505 + if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19505 + $k[$j++] = $_.dmn; //#19504 + $_.module(); //#19504 + } //#19504 + } //#19504 + var _Oy = $k[--$j]; //#19507 + var _Oz = $k[--$j]; //#19507 + $k[$j++] = $f(_Oz - 2); //#19508 + $k[$j++] = $f(_Oy + 2); //#19508 + if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19508 + break; //#19508 + } //#19508 + } //#19508 + var _P1 = $k[--$j]; //#19510 + var _P2 = $k[--$j]; //#19510 + $k[$j++] = $f(_P2 + 1); //#19520 + $k[$j++] = $f(_P1 + 3); //#19520 + for (;;) { //#19520 + var _P3 = $k[--$j]; //#19513 + var _P4 = $k[--$j]; //#19513 + $k[$j++] = _P4; //#19517 + $k[$j++] = _P3; //#19517 + if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19517 + var _P6 = $k[--$j]; //#19514 + var _P7 = $k[--$j]; //#19514 + $k[$j++] = _P7; //#19516 + $k[$j++] = _P6; //#19516 + if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19516 + $k[$j++] = $_.dmn; //#19515 + $_.module(); //#19515 + } //#19515 + } //#19515 + var _PC = $k[--$j]; //#19518 + var _PD = $k[--$j]; //#19518 + $k[$j++] = $f(_PD + 2); //#19519 + $k[$j++] = $f(_PC - 2); //#19519 + if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19519 + break; //#19519 + } //#19519 + } //#19519 + var _PF = $k[--$j]; //#19521 + var _PG = $k[--$j]; //#19521 + $k[$j++] = $f(_PG + 3); //#19523 + $k[$j++] = $f(_PF + 1); //#19523 + if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19523 + $j -= 2; //#19523 + break; //#19523 + } //#19523 + } //#19523 + if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19531 + $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19529 + $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19530 + } //#19530 + $_.pixs = $a($_.rows * $_.cols); //#19534 + $_.cwpos = 0; //#19535 + for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19551 + $_.i = _Pa; //#19537 + if (($_.i % ($_.rrows + 2)) == 0) { //#19538 + $k[$j++] = $_.pixs; //#19538 + $k[$j++] = $_.i * $_.cols; //#19538 + $k[$j++] = Infinity; //#19538 + for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19538 + $k[$j++] = 1; //#19538 + $k[$j++] = 0; //#19538 + } //#19538 + var _Pj = $a(); //#19538 + var _Pk = $k[--$j]; //#19538 + $puti($k[--$j], _Pk, _Pj); //#19538 + } //#19538 + if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19539 + $k[$j++] = $_.pixs; //#19539 + $k[$j++] = $_.i * $_.cols; //#19539 + $k[$j++] = Infinity; //#19539 + for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19539 + $k[$j++] = 1; //#19539 + } //#19539 + var _Pv = $a(); //#19539 + var _Pw = $k[--$j]; //#19539 + $puti($k[--$j], _Pw, _Pv); //#19539 + } //#19539 + if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19550 + for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19549 + $_.j = _Q5; //#19542 + if (($_.j % ($_.rcols + 2)) == 0) { //#19543 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19543 + } //#19543 + if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19544 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19544 + } //#19544 + if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19548 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19546 + $_.cwpos = $_.cwpos + 1; //#19547 + } //#19547 + } //#19547 + } //#19547 + } //#19547 var _Qd = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -23215,715 +23622,715 @@ function bwipp_datamatrix() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#19283 - $k[$j++] = _Qd; //#19286 - if (!$_.dontdraw) { //#19286 - bwipp_renmatrix(); //#19286 - } //#19286 - $_ = Object.getPrototypeOf($_); //#19288 - $_ = Object.getPrototypeOf($_); //#19290 -} - + ]); //#19565 + $k[$j++] = _Qd; //#19568 + if (!$_.dontdraw) { //#19568 + bwipp_renmatrix(); //#19568 + } //#19568 + $_ = Object.getPrototypeOf($_); //#19570 + $_ = Object.getPrototypeOf($_); //#19572 +} //bwipp_datamatrix function bwipp_datamatrixrectangular() { - $_ = Object.create($_); //#19319 - $_.dontdraw = false; //#19322 - $k[$j++] = $_; //#19324 - bwipp_processoptions(); //#19324 - $_.options = $k[--$j]; //#19324 - $_.barcode = $k[--$j]; //#19325 - $put($_.options, "dontdraw", true); //#19328 - $put($_.options, "format", "rectangle"); //#19329 - $k[$j++] = 'args'; //#19331 - $k[$j++] = $_.barcode; //#19331 - $k[$j++] = $_.options; //#19331 - bwipp_datamatrix(); //#19331 - var _6 = $k[--$j]; //#19331 - $_[$k[--$j]] = _6; //#19331 - $put($_.args, "opt", $_.options); //#19333 - $k[$j++] = $_.args; //#19336 - if (!$_.dontdraw) { //#19336 - bwipp_renmatrix(); //#19336 - } //#19336 - $_ = Object.getPrototypeOf($_); //#19338 -} - + $_ = Object.create($_); //#19601 + $_.dontdraw = false; //#19604 + $k[$j++] = $_; //#19606 + bwipp_processoptions(); //#19606 + $_.options = $k[--$j]; //#19606 + $_.barcode = $k[--$j]; //#19607 + $put($_.options, "dontdraw", true); //#19610 + $put($_.options, "format", "rectangle"); //#19611 + $k[$j++] = 'args'; //#19613 + $k[$j++] = $_.barcode; //#19613 + $k[$j++] = $_.options; //#19613 + bwipp_datamatrix(); //#19613 + var _6 = $k[--$j]; //#19613 + $_[$k[--$j]] = _6; //#19613 + $put($_.args, "opt", $_.options); //#19615 + $k[$j++] = $_.args; //#19618 + if (!$_.dontdraw) { //#19618 + bwipp_renmatrix(); //#19618 + } //#19618 + $_ = Object.getPrototypeOf($_); //#19620 +} //bwipp_datamatrixrectangular function bwipp_datamatrixrectangularextension() { - $_ = Object.create($_); //#19367 - $_.dontdraw = false; //#19370 - $k[$j++] = $_; //#19372 - bwipp_processoptions(); //#19372 - $_.options = $k[--$j]; //#19372 - $_.barcode = $k[--$j]; //#19373 - $put($_.options, "dontdraw", true); //#19376 - $put($_.options, "dmre", true); //#19377 - $k[$j++] = 'args'; //#19379 - $k[$j++] = $_.barcode; //#19379 - $k[$j++] = $_.options; //#19379 - bwipp_datamatrix(); //#19379 - var _6 = $k[--$j]; //#19379 - $_[$k[--$j]] = _6; //#19379 - $put($_.args, "opt", $_.options); //#19381 - $k[$j++] = $_.args; //#19384 - if (!$_.dontdraw) { //#19384 - bwipp_renmatrix(); //#19384 - } //#19384 - $_ = Object.getPrototypeOf($_); //#19386 -} - + $_ = Object.create($_); //#19649 + $_.dontdraw = false; //#19652 + $k[$j++] = $_; //#19654 + bwipp_processoptions(); //#19654 + $_.options = $k[--$j]; //#19654 + $_.barcode = $k[--$j]; //#19655 + $put($_.options, "dontdraw", true); //#19658 + $put($_.options, "dmre", true); //#19659 + $k[$j++] = 'args'; //#19661 + $k[$j++] = $_.barcode; //#19661 + $k[$j++] = $_.options; //#19661 + bwipp_datamatrix(); //#19661 + var _6 = $k[--$j]; //#19661 + $_[$k[--$j]] = _6; //#19661 + $put($_.args, "opt", $_.options); //#19663 + $k[$j++] = $_.args; //#19666 + if (!$_.dontdraw) { //#19666 + bwipp_renmatrix(); //#19666 + } //#19666 + $_ = Object.getPrototypeOf($_); //#19668 +} //bwipp_datamatrixrectangularextension function bwipp_mailmark() { - $_ = Object.create($_); //#19416 - $_.type = "unset"; //#19419 - $_.parse = false; //#19420 - $_.dontdraw = false; //#19421 - $k[$j++] = $_; //#19423 - bwipp_processoptions(); //#19423 - $_.options = $k[--$j]; //#19423 - $_.barcode = $k[--$j]; //#19424 + $_ = Object.create($_); //#19698 + $_.type = "unset"; //#19701 + $_.parse = false; //#19702 + $_.dontdraw = false; //#19703 + $k[$j++] = $_; //#19705 + bwipp_processoptions(); //#19705 + $_.options = $k[--$j]; //#19705 + $_.barcode = $k[--$j]; //#19706 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#19430 - $_.fncvals = _3; //#19431 - $k[$j++] = 'barcode'; //#19432 - $k[$j++] = $_.barcode; //#19432 - $k[$j++] = $_.fncvals; //#19432 - bwipp_parseinput(); //#19432 - var _6 = $k[--$j]; //#19432 - $_[$k[--$j]] = _6; //#19432 - $_.barlen = $_.barcode.length; //#19433 - delete $_.options["parse"]; //#19434 - var _A = $_['type']; //#19437 - if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19439 - $k[$j++] = 'bwipp.mailmarkBadType#19438'; //#19438 - $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19438 - bwipp_raiseerror(); //#19438 - } //#19438 + ]); //#19712 + $_.fncvals = _3; //#19713 + $k[$j++] = 'barcode'; //#19714 + $k[$j++] = $_.barcode; //#19714 + $k[$j++] = $_.fncvals; //#19714 + bwipp_parseinput(); //#19714 + var _6 = $k[--$j]; //#19714 + $_[$k[--$j]] = _6; //#19714 + $_.barlen = $_.barcode.length; //#19715 + delete $_.options["parse"]; //#19716 + var _A = $_['type']; //#19719 + if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19721 + $k[$j++] = 'bwipp.mailmarkBadType#19720'; //#19720 + $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19720 + bwipp_raiseerror(); //#19720 + } //#19720 var _B = new Map([ ["7", "24x24"], ["9", "32x32"], ["29", "16x48"] - ]); //#19443 - $_.version = $get(_B, $_['type']); //#19444 + ]); //#19725 + $_.version = $get(_B, $_['type']); //#19726 var _E = new Map([ ["7", "square"], ["9", "square"], ["29", "rectangle"] - ]); //#19449 - $_.format = $get(_E, $_['type']); //#19450 - if ($_.barcode.length < 45) { //#19455 - $k[$j++] = 'bwipp.mailmarkBadLength#19454'; //#19454 - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19454 - bwipp_raiseerror(); //#19454 - } //#19454 - if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19458 - $k[$j++] = 'bwipp.mailmarkBadIndicator#19457'; //#19457 - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19457 - bwipp_raiseerror(); //#19457 - } //#19457 - $put($_.options, "dontdraw", true); //#19461 - $put($_.options, "version", $_.version); //#19462 - $put($_.options, "format", $_.format); //#19463 - $put($_.options, "c40headerlength", 45); //#19464 - $k[$j++] = 'args'; //#19465 - $k[$j++] = $_.barcode; //#19465 - $k[$j++] = $_.options; //#19465 - bwipp_datamatrix(); //#19465 - var _S = $k[--$j]; //#19465 - $_[$k[--$j]] = _S; //#19465 - $put($_.args, "opt", $_.options); //#19467 - $k[$j++] = $_.args; //#19470 - if (!$_.dontdraw) { //#19470 - bwipp_renmatrix(); //#19470 - } //#19470 - $_ = Object.getPrototypeOf($_); //#19472 -} - + ]); //#19731 + $_.format = $get(_E, $_['type']); //#19732 + if ($_.barcode.length < 45) { //#19737 + $k[$j++] = 'bwipp.mailmarkBadLength#19736'; //#19736 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19736 + bwipp_raiseerror(); //#19736 + } //#19736 + if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19740 + $k[$j++] = 'bwipp.mailmarkBadIndicator#19739'; //#19739 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19739 + bwipp_raiseerror(); //#19739 + } //#19739 + $put($_.options, "dontdraw", true); //#19743 + $put($_.options, "version", $_.version); //#19744 + $put($_.options, "format", $_.format); //#19745 + $put($_.options, "c40headerlength", 45); //#19746 + $k[$j++] = 'args'; //#19747 + $k[$j++] = $_.barcode; //#19747 + $k[$j++] = $_.options; //#19747 + bwipp_datamatrix(); //#19747 + var _S = $k[--$j]; //#19747 + $_[$k[--$j]] = _S; //#19747 + $put($_.args, "opt", $_.options); //#19749 + $k[$j++] = $_.args; //#19752 + if (!$_.dontdraw) { //#19752 + bwipp_renmatrix(); //#19752 + } //#19752 + $_ = Object.getPrototypeOf($_); //#19754 +} //bwipp_mailmark function bwipp_qrcode() { - $_ = Object.create($_); //#19503 - $_.dontdraw = false; //#19506 - $_.format = "unset"; //#19507 - $_.version = "unset"; //#19508 - $_.eclevel = "unset"; //#19509 - $_.parse = false; //#19510 - $_.parsefnc = false; //#19511 - $_.mask = -1; //#19512 - $k[$j++] = $_; //#19514 - bwipp_processoptions(); //#19514 - $_.options = $k[--$j]; //#19514 - $_.barcode = $k[--$j]; //#19515 - bwipp_loadctx(bwipp_qrcode) //#19517 - if ($eq($_.barcode, "")) { //#19521 - $k[$j++] = 'bwipp.qrcodeEmptyData#19520'; //#19520 - $k[$j++] = "The data must not be empty"; //#19520 - bwipp_raiseerror(); //#19520 - } //#19520 - if ($ne($_.version, "unset")) { //#19532 - if ($eq($_.format, "unset")) { //#19530 - $k[$j++] = "full"; //#19527 - if ($eq($geti($_.version, 0, 1), "M")) { //#19527 - $j--; //#19527 - $k[$j++] = "micro"; //#19527 - } //#19527 - if ($eq($geti($_.version, 0, 1), "R")) { //#19528 - $j--; //#19528 - $k[$j++] = "rmqr"; //#19528 - } //#19528 - $_.format = $k[--$j]; //#19529 - } //#19529 - } else { //#19532 - if ($eq($_.format, "unset")) { //#19532 - $_.format = "full"; //#19532 - } //#19532 - } //#19532 - if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19537 - $k[$j++] = 'bwipp.qrcodeInvalidFormat#19536'; //#19536 - $k[$j++] = "The format must be either full, micro or rmqr"; //#19536 - bwipp_raiseerror(); //#19536 - } //#19536 - if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19541 - $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19540'; //#19540 - $k[$j++] = "A version must be provided for RMQR"; //#19540 - bwipp_raiseerror(); //#19540 - } //#19540 - if ($eq($_.eclevel, "unset")) { //#19544 - $k[$j++] = 'eclevel'; //#19544 - if ($ne($_.format, "micro")) { //#19544 - $k[$j++] = "M"; //#19544 - } else { //#19544 - $k[$j++] = "L"; //#19544 - } //#19544 - var _I = $k[--$j]; //#19544 - $_[$k[--$j]] = _I; //#19544 - } //#19544 - if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19548 - $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19547'; //#19547 - $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19547 - bwipp_raiseerror(); //#19547 - } //#19547 - if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19552 - $k[$j++] = 'bwipp.qrcodeRMQRmask#19551'; //#19551 - $k[$j++] = "A mask cannot be supplied for RMQR"; //#19551 - bwipp_raiseerror(); //#19551 - } //#19551 - if ($_.mask != -1) { //#19558 - var _U = $eq($_.format, "full") ? 8 : 4; //#19555 - if (($_.mask < 1) || ($_.mask > _U)) { //#19557 - $k[$j++] = 'bwipp.qrcodeBadMask#19556'; //#19556 - $k[$j++] = "An invalid mask was supplied"; //#19556 - bwipp_raiseerror(); //#19556 - } //#19556 - } //#19556 - $_.fn1 = -1; //#19561 + $_ = Object.create($_); //#19785 + $_.dontdraw = false; //#19788 + $_.format = "unset"; //#19789 + $_.version = "unset"; //#19790 + $_.eclevel = "unset"; //#19791 + $_.parse = false; //#19792 + $_.parsefnc = false; //#19793 + $_.mask = -1; //#19794 + $k[$j++] = $_; //#19796 + bwipp_processoptions(); //#19796 + $_.options = $k[--$j]; //#19796 + $_.barcode = $k[--$j]; //#19797 + bwipp_loadctx(bwipp_qrcode) //#19799 + if ($eq($_.barcode, "")) { //#19803 + $k[$j++] = 'bwipp.qrcodeEmptyData#19802'; //#19802 + $k[$j++] = "The data must not be empty"; //#19802 + bwipp_raiseerror(); //#19802 + } //#19802 + if ($ne($_.version, "unset")) { //#19814 + if ($eq($_.format, "unset")) { //#19812 + $k[$j++] = "full"; //#19809 + if ($eq($geti($_.version, 0, 1), "M")) { //#19809 + $j--; //#19809 + $k[$j++] = "micro"; //#19809 + } //#19809 + if ($eq($geti($_.version, 0, 1), "R")) { //#19810 + $j--; //#19810 + $k[$j++] = "rmqr"; //#19810 + } //#19810 + $_.format = $k[--$j]; //#19811 + } //#19811 + } else { //#19814 + if ($eq($_.format, "unset")) { //#19814 + $_.format = "full"; //#19814 + } //#19814 + } //#19814 + if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19819 + $k[$j++] = 'bwipp.qrcodeInvalidFormat#19818'; //#19818 + $k[$j++] = "The format must be either full, micro or rmqr"; //#19818 + bwipp_raiseerror(); //#19818 + } //#19818 + if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19823 + $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19822'; //#19822 + $k[$j++] = "A version must be provided for RMQR"; //#19822 + bwipp_raiseerror(); //#19822 + } //#19822 + if ($eq($_.eclevel, "unset")) { //#19826 + $k[$j++] = 'eclevel'; //#19826 + if ($ne($_.format, "micro")) { //#19826 + $k[$j++] = "M"; //#19826 + } else { //#19826 + $k[$j++] = "L"; //#19826 + } //#19826 + var _I = $k[--$j]; //#19826 + $_[$k[--$j]] = _I; //#19826 + } //#19826 + if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19830 + $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19829'; //#19829 + $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19829 + bwipp_raiseerror(); //#19829 + } //#19829 + if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19834 + $k[$j++] = 'bwipp.qrcodeRMQRmask#19833'; //#19833 + $k[$j++] = "A mask cannot be supplied for RMQR"; //#19833 + bwipp_raiseerror(); //#19833 + } //#19833 + if ($_.mask != -1) { //#19840 + var _U = $eq($_.format, "full") ? 8 : 4; //#19837 + if (($_.mask < 1) || ($_.mask > _U)) { //#19839 + $k[$j++] = 'bwipp.qrcodeBadMask#19838'; //#19838 + $k[$j++] = "An invalid mask was supplied"; //#19838 + bwipp_raiseerror(); //#19838 + } //#19838 + } //#19838 + $_.fn1 = -1; //#19843 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#19566 - $_.fncvals = _Y; //#19567 - $k[$j++] = 'msg'; //#19568 - $k[$j++] = $_.barcode; //#19568 - $k[$j++] = $_.fncvals; //#19568 - bwipp_parseinput(); //#19568 - var _b = $k[--$j]; //#19568 - $_[$k[--$j]] = _b; //#19568 - $_.msglen = $_.msg.length; //#19569 - $_.fnc1first = false; //#19572 - if ($_.msglen > 0) { //#19579 - if ($get($_.msg, 0) == $_.fn1) { //#19578 - $_.fnc1first = true; //#19575 - $k[$j++] = Infinity; //#19576 - var _k = $geti($_.msg, 1, $_.msglen - 1); //#19576 - for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19576 - var _n = $get(_k, _l); //#19576 - $k[$j++] = _n; //#19576 - if (_n == 37) { //#19576 - var _o = $k[--$j]; //#19576 - $k[$j++] = _o; //#19576 - $k[$j++] = _o; //#19576 - } //#19576 - } //#19576 - $_.msg = $a(); //#19576 - $_.msglen = $_.msg.length; //#19577 - } //#19577 - } //#19577 - if (!bwipp_qrcode.__19700__) { //#19700 - $_ = Object.create($_); //#19700 - var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19592 - $k[$j++] = 0; //#19593 - for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19593 - var _v = $k[--$j]; //#19593 - $_[$get(_r, _s)] = _v; //#19593 - $k[$j++] = $f(_v + 1); //#19593 - } //#19593 - $j--; //#19593 - $_.N = 0; //#19599 - $_.A = 1; //#19599 - $_.B = 2; //#19599 - $_.K = 3; //#19599 - $_.E = 4; //#19599 - $k[$j++] = Infinity; //#19604 - $k[$j++] = Infinity; //#19603 - for (var _w = 48; _w <= 57; _w += 1) { //#19603 - $k[$j++] = _w; //#19603 - } //#19603 - var _x = $a(); //#19603 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19604 - $k[$j++] = $get(_x, _y); //#19604 - $k[$j++] = -1; //#19604 - } //#19604 - $_.Nexcl = $d(); //#19605 - $k[$j++] = Infinity; //#19612 - $k[$j++] = Infinity; //#19611 - $k[$j++] = 32; //#19610 - $k[$j++] = 36; //#19610 - $k[$j++] = 37; //#19610 - $k[$j++] = 42; //#19610 - $k[$j++] = 43; //#19610 - $k[$j++] = 45; //#19610 - $k[$j++] = 46; //#19610 - $k[$j++] = 47; //#19610 - $k[$j++] = 58; //#19610 - for (var _12 = 65; _12 <= 90; _12 += 1) { //#19610 - $k[$j++] = _12; //#19610 - } //#19610 - $k[$j++] = $_.fn1; //#19611 - var _14 = $a(); //#19611 - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19612 - $k[$j++] = $get(_14, _15); //#19612 - $k[$j++] = -1; //#19612 - } //#19612 - $_.Aexcl = $d(); //#19613 - $k[$j++] = Infinity; //#19621 - $k[$j++] = Infinity; //#19620 - for (var _19 = 129; _19 <= 159; _19 += 1) { //#19619 - $k[$j++] = _19; //#19619 - } //#19619 - for (var _1A = 224; _1A <= 235; _1A += 1) { //#19620 - $k[$j++] = _1A; //#19620 - } //#19620 - var _1B = $a(); //#19620 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19621 - $k[$j++] = $get(_1B, _1C); //#19621 - $k[$j++] = -1; //#19621 - } //#19621 - $_.Kexcl = $d(); //#19622 - $k[$j++] = Infinity; //#19634 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["", -1, -1, -1, -1]); //#19635 - $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19635 - $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19635 - $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19635 - for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19635 - $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19634 - } //#19634 - $_.mids = $a(); //#19634 - $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19678 - $k[$j++] = Infinity; //#19689 - for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19683 - $k[$j++] = 4; //#19682 - } //#19682 - $k[$j++] = 3; //#19690 - $k[$j++] = 5; //#19690 - $k[$j++] = 7; //#19690 - $k[$j++] = 9; //#19690 - for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19690 - $k[$j++] = 3; //#19689 - } //#19689 - $_.termlens = $a(); //#19689 - $_.padstrs = $a(["11101100", "00010001"]); //#19693 - $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19696 - $_.charvals = new Map; //#19697 - for (var _2B = 0; _2B <= 44; _2B += 1) { //#19698 - $put($_.charvals, $get($_.charmap, _2B), _2B); //#19698 - } //#19698 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19698 - bwipp_qrcode.__19700__ = 1; //#19698 - $_ = Object.getPrototypeOf($_); //#19698 - } //#19698 + ]); //#19848 + $_.fncvals = _Y; //#19849 + $k[$j++] = 'msg'; //#19850 + $k[$j++] = $_.barcode; //#19850 + $k[$j++] = $_.fncvals; //#19850 + bwipp_parseinput(); //#19850 + var _b = $k[--$j]; //#19850 + $_[$k[--$j]] = _b; //#19850 + $_.msglen = $_.msg.length; //#19851 + $_.fnc1first = false; //#19854 + if ($_.msglen > 0) { //#19861 + if ($get($_.msg, 0) == $_.fn1) { //#19860 + $_.fnc1first = true; //#19857 + $k[$j++] = Infinity; //#19858 + var _k = $geti($_.msg, 1, $_.msglen - 1); //#19858 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19858 + var _n = $get(_k, _l); //#19858 + $k[$j++] = _n; //#19858 + if (_n == 37) { //#19858 + var _o = $k[--$j]; //#19858 + $k[$j++] = _o; //#19858 + $k[$j++] = _o; //#19858 + } //#19858 + } //#19858 + $_.msg = $a(); //#19858 + $_.msglen = $_.msg.length; //#19859 + } //#19859 + } //#19859 + if (!bwipp_qrcode.__19982__) { //#19982 + $_ = Object.create($_); //#19982 + var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19874 + $k[$j++] = 0; //#19875 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19875 + var _v = $k[--$j]; //#19875 + $_[$get(_r, _s)] = _v; //#19875 + $k[$j++] = $f(_v + 1); //#19875 + } //#19875 + $j--; //#19875 + $_.N = 0; //#19881 + $_.A = 1; //#19881 + $_.B = 2; //#19881 + $_.K = 3; //#19881 + $_.E = 4; //#19881 + $k[$j++] = Infinity; //#19883 + $k[$j++] = Infinity; //#19884 + for (var _w = 48; _w <= 57; _w += 1) { //#19885 + $k[$j++] = _w; //#19885 + } //#19885 + var _x = $a(); //#19885 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19886 + $k[$j++] = $get(_x, _y); //#19886 + $k[$j++] = -1; //#19886 + } //#19886 + $_.Nexcl = $d(); //#19887 + $k[$j++] = Infinity; //#19889 + $k[$j++] = Infinity; //#19890 + $k[$j++] = 32; //#19892 + $k[$j++] = 36; //#19892 + $k[$j++] = 37; //#19892 + $k[$j++] = 42; //#19892 + $k[$j++] = 43; //#19892 + $k[$j++] = 45; //#19892 + $k[$j++] = 46; //#19892 + $k[$j++] = 47; //#19892 + $k[$j++] = 58; //#19892 + for (var _12 = 65; _12 <= 90; _12 += 1) { //#19892 + $k[$j++] = _12; //#19892 + } //#19892 + $k[$j++] = $_.fn1; //#19893 + var _14 = $a(); //#19893 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19894 + $k[$j++] = $get(_14, _15); //#19894 + $k[$j++] = -1; //#19894 + } //#19894 + $_.Aexcl = $d(); //#19895 + $k[$j++] = Infinity; //#19899 + $k[$j++] = Infinity; //#19900 + for (var _19 = 129; _19 <= 159; _19 += 1) { //#19901 + $k[$j++] = _19; //#19901 + } //#19901 + for (var _1A = 224; _1A <= 235; _1A += 1) { //#19902 + $k[$j++] = _1A; //#19902 + } //#19902 + var _1B = $a(); //#19902 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19903 + $k[$j++] = $get(_1B, _1C); //#19903 + $k[$j++] = -1; //#19903 + } //#19903 + $_.Kexcl = $d(); //#19904 + $k[$j++] = Infinity; //#19906 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#19917 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19917 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19917 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19917 + for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19917 + $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19916 + } //#19916 + $_.mids = $a(); //#19916 + $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19960 + $k[$j++] = Infinity; //#19962 + for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19965 + $k[$j++] = 4; //#19964 + } //#19964 + $k[$j++] = 3; //#19972 + $k[$j++] = 5; //#19972 + $k[$j++] = 7; //#19972 + $k[$j++] = 9; //#19972 + for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19972 + $k[$j++] = 3; //#19971 + } //#19971 + $_.termlens = $a(); //#19971 + $_.padstrs = $a(["11101100", "00010001"]); //#19975 + $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19978 + $_.charvals = new Map; //#19979 + for (var _2B = 0; _2B <= 44; _2B += 1) { //#19980 + $put($_.charvals, $get($_.charmap, _2B), _2B); //#19980 + } //#19980 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19980 + bwipp_qrcode.__19982__ = 1; //#19980 + $_ = Object.getPrototypeOf($_); //#19980 + } //#19980 $_.tobin = function() { - var _2H = $s($k[--$j]); //#19704 - $k[$j++] = _2H; //#19704 - for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19704 - var _2K = $k[--$j]; //#19704 - $put(_2K, _2J, 48); //#19704 - $k[$j++] = _2K; //#19704 - } //#19704 - var _2L = $k[--$j]; //#19705 - var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19705 - $puti(_2L, _2L.length - _2O.length, _2O); //#19705 - $k[$j++] = _2L; //#19705 - }; //#19705 + var _2H = $s($k[--$j]); //#19986 + $k[$j++] = _2H; //#19986 + for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19986 + var _2K = $k[--$j]; //#19986 + $put(_2K, _2J, 48); //#19986 + $k[$j++] = _2K; //#19986 + } //#19986 + var _2L = $k[--$j]; //#19987 + var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19987 + $puti(_2L, _2L.length - _2O.length, _2O); //#19987 + $k[$j++] = _2L; //#19987 + }; //#19987 $_.encA = function() { - $_.in = $k[--$j]; //#19709 - if ($_.fnc1first) { //#19712 - $k[$j++] = Infinity; //#19711 - $forall($_.in, function() { //#19711 - var _2S = $k[--$j]; //#19711 - $k[$j++] = _2S; //#19711 - if (_2S == $_.fn1) { //#19711 - $j--; //#19711 - $k[$j++] = 37; //#19711 - } //#19711 - }); //#19711 - $_.in = $a(); //#19711 - } //#19711 - $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19713 - $_.k = 0; //#19714 - $_.m = 0; //#19714 - for (;;) { //#19725 - if ($_.k == $_.in.length) { //#19715 - break; //#19715 - } //#19715 - if ($_.k < ($_.in.length - 1)) { //#19721 - $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19717 - $k[$j++] = 11; //#19717 - $_.tobin(); //#19717 - $_.k = $_.k + 2; //#19718 - } else { //#19721 - $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#19720 - $k[$j++] = 6; //#19720 - $_.tobin(); //#19720 - $_.k = $_.k + 1; //#19721 - } //#19721 - var _2s = $k[--$j]; //#19723 - $puti($_.out, $_.m, _2s); //#19723 - $_.m = _2s.length + $_.m; //#19724 - } //#19724 - $k[$j++] = $geti($_.out, 0, $_.m); //#19726 - }; //#19726 + $_.in = $k[--$j]; //#19991 + if ($_.fnc1first) { //#19994 + $k[$j++] = Infinity; //#19993 + $forall($_.in, function() { //#19993 + var _2S = $k[--$j]; //#19993 + $k[$j++] = _2S; //#19993 + if (_2S == $_.fn1) { //#19993 + $j--; //#19993 + $k[$j++] = 37; //#19993 + } //#19993 + }); //#19993 + $_.in = $a(); //#19993 + } //#19993 + $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19995 + $_.k = 0; //#19996 + $_.m = 0; //#19996 + for (;;) { //#20007 + if ($_.k == $_.in.length) { //#19997 + break; //#19997 + } //#19997 + if ($_.k < ($_.in.length - 1)) { //#20003 + $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19999 + $k[$j++] = 11; //#19999 + $_.tobin(); //#19999 + $_.k = $_.k + 2; //#20000 + } else { //#20003 + $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#20002 + $k[$j++] = 6; //#20002 + $_.tobin(); //#20002 + $_.k = $_.k + 1; //#20003 + } //#20003 + var _2s = $k[--$j]; //#20005 + $puti($_.out, $_.m, _2s); //#20005 + $_.m = _2s.length + $_.m; //#20006 + } //#20006 + $k[$j++] = $geti($_.out, 0, $_.m); //#20008 + }; //#20008 $_.encN = function() { - $_.in = $k[--$j]; //#19730 - $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#19731 - $_.k = 0; //#19732 - $_.m = 0; //#19732 - for (;;) { //#19748 - if ($_.k == $_.in.length) { //#19733 - break; //#19733 - } //#19733 - if ($_.k < ($_.in.length - 2)) { //#19743 - var _38 = $geti($_.in, $_.k, 3); //#19735 - $k[$j++] = 0; //#19735 - for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#19735 - var _3C = $k[--$j]; //#19735 - $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#19735 - } //#19735 - $k[$j++] = 10; //#19735 - $_.tobin(); //#19735 - $_.k = $_.k + 3; //#19736 - } else { //#19743 - if ($_.k == ($_.in.length - 2)) { //#19743 - var _3I = $geti($_.in, $_.k, 2); //#19739 - $k[$j++] = 0; //#19739 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#19739 - var _3M = $k[--$j]; //#19739 - $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#19739 - } //#19739 - $k[$j++] = 7; //#19739 - $_.tobin(); //#19739 - $_.k = $_.k + 2; //#19740 - } else { //#19743 - var _3Q = $geti($_.in, $_.k, 1); //#19742 - $k[$j++] = 0; //#19742 - for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#19742 - var _3U = $k[--$j]; //#19742 - $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#19742 - } //#19742 - $k[$j++] = 4; //#19742 - $_.tobin(); //#19742 - $_.k = $_.k + 1; //#19743 - } //#19743 - } //#19743 - var _3W = $k[--$j]; //#19746 - $puti($_.out, $_.m, _3W); //#19746 - $_.m = _3W.length + $_.m; //#19747 - } //#19747 - $k[$j++] = $geti($_.out, 0, $_.m); //#19749 - }; //#19749 + $_.in = $k[--$j]; //#20012 + $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#20013 + $_.k = 0; //#20014 + $_.m = 0; //#20014 + for (;;) { //#20030 + if ($_.k == $_.in.length) { //#20015 + break; //#20015 + } //#20015 + if ($_.k < ($_.in.length - 2)) { //#20025 + var _38 = $geti($_.in, $_.k, 3); //#20017 + $k[$j++] = 0; //#20017 + for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#20017 + var _3C = $k[--$j]; //#20017 + $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#20017 + } //#20017 + $k[$j++] = 10; //#20017 + $_.tobin(); //#20017 + $_.k = $_.k + 3; //#20018 + } else { //#20025 + if ($_.k == ($_.in.length - 2)) { //#20025 + var _3I = $geti($_.in, $_.k, 2); //#20021 + $k[$j++] = 0; //#20021 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#20021 + var _3M = $k[--$j]; //#20021 + $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#20021 + } //#20021 + $k[$j++] = 7; //#20021 + $_.tobin(); //#20021 + $_.k = $_.k + 2; //#20022 + } else { //#20025 + var _3Q = $geti($_.in, $_.k, 1); //#20024 + $k[$j++] = 0; //#20024 + for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#20024 + var _3U = $k[--$j]; //#20024 + $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#20024 + } //#20024 + $k[$j++] = 4; //#20024 + $_.tobin(); //#20024 + $_.k = $_.k + 1; //#20025 + } //#20025 + } //#20025 + var _3W = $k[--$j]; //#20028 + $puti($_.out, $_.m, _3W); //#20028 + $_.m = _3W.length + $_.m; //#20029 + } //#20029 + $k[$j++] = $geti($_.out, 0, $_.m); //#20031 + }; //#20031 $_.encB = function() { - $_.in = $k[--$j]; //#19753 - if ($_.fnc1first) { //#19756 - $k[$j++] = Infinity; //#19755 - $forall($_.in, function() { //#19755 - var _3g = $k[--$j]; //#19755 - $k[$j++] = _3g; //#19755 - if (_3g == $_.fn1) { //#19755 - $j--; //#19755 - $k[$j++] = 29; //#19755 - } //#19755 - }); //#19755 - $_.in = $a(); //#19755 - } //#19755 - $_.out = $s($_.in.length * 8); //#19757 - for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#19762 - $_.k = _3n; //#19759 - $k[$j++] = $cvi($get($_.in, $_.k)); //#19760 - $k[$j++] = 8; //#19760 - $_.tobin(); //#19760 - $puti($_.out, $_.k * 8, $k[--$j]); //#19761 - } //#19761 - $k[$j++] = $_.out; //#19763 - }; //#19763 + $_.in = $k[--$j]; //#20035 + if ($_.fnc1first) { //#20038 + $k[$j++] = Infinity; //#20037 + $forall($_.in, function() { //#20037 + var _3g = $k[--$j]; //#20037 + $k[$j++] = _3g; //#20037 + if (_3g == $_.fn1) { //#20037 + $j--; //#20037 + $k[$j++] = 29; //#20037 + } //#20037 + }); //#20037 + $_.in = $a(); //#20037 + } //#20037 + $_.out = $s($_.in.length * 8); //#20039 + for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#20044 + $_.k = _3n; //#20041 + $k[$j++] = $cvi($get($_.in, $_.k)); //#20042 + $k[$j++] = 8; //#20042 + $_.tobin(); //#20042 + $puti($_.out, $_.k * 8, $k[--$j]); //#20043 + } //#20043 + $k[$j++] = $_.out; //#20045 + }; //#20045 $_.encK = function() { - $_.in = $k[--$j]; //#19767 - $_.out = $s((~~($_.in.length / 2)) * 13); //#19768 - $_.k = 0; //#19769 - $_.m = 0; //#19769 - for (;;) { //#19777 - if ($_.k == $_.in.length) { //#19770 - break; //#19770 - } //#19770 - var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#19772 - $k[$j++] = _46; //#19772 - if (_46 < 57408) { //#19772 - $k[$j++] = 33088; //#19772 - } else { //#19772 - $k[$j++] = 49472; //#19772 - } //#19772 - var _47 = $k[--$j]; //#19772 - var _49 = $f($k[--$j] - _47); //#19773 - $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#19774 - $k[$j++] = 13; //#19774 - $_.tobin(); //#19774 - var _4A = $k[--$j]; //#19774 - $puti($_.out, $_.m, _4A); //#19774 - $_.m = _4A.length + $_.m; //#19775 - $_.k = $_.k + 2; //#19776 - } //#19776 - $k[$j++] = $_.out; //#19778 - }; //#19778 + $_.in = $k[--$j]; //#20049 + $_.out = $s((~~($_.in.length / 2)) * 13); //#20050 + $_.k = 0; //#20051 + $_.m = 0; //#20051 + for (;;) { //#20059 + if ($_.k == $_.in.length) { //#20052 + break; //#20052 + } //#20052 + var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#20054 + $k[$j++] = _46; //#20054 + if (_46 < 57408) { //#20054 + $k[$j++] = 33088; //#20054 + } else { //#20054 + $k[$j++] = 49472; //#20054 + } //#20054 + var _47 = $k[--$j]; //#20054 + var _49 = $f($k[--$j] - _47); //#20055 + $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#20056 + $k[$j++] = 13; //#20056 + $_.tobin(); //#20056 + var _4A = $k[--$j]; //#20056 + $puti($_.out, $_.m, _4A); //#20056 + $_.m = _4A.length + $_.m; //#20057 + $_.k = $_.k + 2; //#20058 + } //#20058 + $k[$j++] = $_.out; //#20060 + }; //#20060 $_.encE = function() { - var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#19783 - $k[$j++] = _4I; //#19789 - if (_4I <= 127) { //#19788 - $k[$j++] = 8; //#19784 - $_.tobin(); //#19784 - } else { //#19788 - var _4J = $k[--$j]; //#19785 - $k[$j++] = _4J; //#19789 - if (_4J <= 16383) { //#19788 - var _4K = $k[--$j]; //#19786 - $k[$j++] = $f(_4K + 32768); //#19786 - $k[$j++] = 16; //#19786 - $_.tobin(); //#19786 - } else { //#19788 - var _4L = $k[--$j]; //#19788 - $k[$j++] = $f(_4L + 12582912); //#19788 - $k[$j++] = 24; //#19788 - $_.tobin(); //#19788 - } //#19788 - } //#19788 - }; //#19788 - $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#19792 + var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#20065 + $k[$j++] = _4I; //#20071 + if (_4I <= 127) { //#20070 + $k[$j++] = 8; //#20066 + $_.tobin(); //#20066 + } else { //#20070 + var _4J = $k[--$j]; //#20067 + $k[$j++] = _4J; //#20071 + if (_4J <= 16383) { //#20070 + var _4K = $k[--$j]; //#20068 + $k[$j++] = $f(_4K + 32768); //#20068 + $k[$j++] = 16; //#20068 + $_.tobin(); //#20068 + } else { //#20070 + var _4L = $k[--$j]; //#20070 + $k[$j++] = $f(_4L + 12582912); //#20070 + $k[$j++] = 24; //#20070 + $_.tobin(); //#20070 + } //#20070 + } //#20070 + }; //#20070 + $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#20074 $_.addtobits = function() { - var _4N = $k[--$j]; //#19795 - $puti($_.bits, $_.j, _4N); //#19795 - $_.j = _4N.length + $_.j; //#19796 - }; //#19796 - $k[$j++] = Infinity; //#19799 - for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#19799 - $k[$j++] = 0; //#19799 - } //#19799 - $k[$j++] = 0; //#19799 - $_.numNs = $a(); //#19799 - $k[$j++] = Infinity; //#19800 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#19800 - $k[$j++] = 0; //#19800 - } //#19800 - $k[$j++] = 0; //#19800 - $_.numAs = $a(); //#19800 - $k[$j++] = Infinity; //#19801 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#19801 - $k[$j++] = 0; //#19801 - } //#19801 - $k[$j++] = 0; //#19801 - $_.numAorNs = $a(); //#19801 - $k[$j++] = Infinity; //#19802 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#19802 - $k[$j++] = 0; //#19802 - } //#19802 - $k[$j++] = 0; //#19802 - $_.numBs = $a(); //#19802 - $k[$j++] = Infinity; //#19803 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#19803 - $k[$j++] = 0; //#19803 - } //#19803 - $k[$j++] = 0; //#19803 - $_.numKs = $a(); //#19803 - $k[$j++] = Infinity; //#19804 - for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#19804 - $k[$j++] = 0; //#19804 - } //#19804 - $k[$j++] = 9999; //#19804 - $_.nextNs = $a(); //#19804 - $k[$j++] = Infinity; //#19805 - for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#19805 - $k[$j++] = 0; //#19805 - } //#19805 - $k[$j++] = 9999; //#19805 - $_.nextBs = $a(); //#19805 - $k[$j++] = Infinity; //#19806 - for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#19806 - $k[$j++] = 0; //#19806 - } //#19806 - $k[$j++] = 9999; //#19806 - $_.nextAs = $a(); //#19806 - $k[$j++] = Infinity; //#19807 - for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#19807 - $k[$j++] = 0; //#19807 - } //#19807 - $k[$j++] = 9999; //#19807 - $_.nextKs = $a(); //#19807 - $_.isECI = $a($_.msglen); //#19808 - for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#19838 - $_.i = _54; //#19810 - $_.barchar = $get($_.msg, $_.i); //#19811 - var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#19812 - if (_5A) { //#19821 - $k[$j++] = 'sjis'; //#19813 - if (($_.i + 1) < $_.msglen) { //#19813 - $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#19813 - } else { //#19813 - $k[$j++] = 0; //#19813 - } //#19813 - var _5H = $k[--$j]; //#19813 - $_[$k[--$j]] = _5H; //#19813 - if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#19818 - $put($_.nextKs, $_.i, 0); //#19815 - $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#19816 - } else { //#19818 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19818 - } //#19818 - } else { //#19821 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19821 - } //#19821 - var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#19823 - if (_5g) { //#19828 - $put($_.nextNs, $_.i, 0); //#19824 - $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#19825 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19826 - } else { //#19828 - $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#19828 - } //#19828 - var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#19830 - if (_60) { //#19835 - $put($_.nextAs, $_.i, 0); //#19831 - $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#19832 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19833 - } else { //#19835 - $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#19835 - } //#19835 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#19837 - } //#19837 - for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#19845 - $_.i = _6N; //#19840 - if ($get($_.numKs, $_.i) > 0) { //#19844 - $put($_.numKs, $_.i + 1, 0); //#19842 - $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#19843 - } //#19843 - } //#19843 - for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#19854 - $_.i = _6Z; //#19847 - if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#19852 - $put($_.nextBs, $_.i, 0); //#19849 - $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#19850 - } else { //#19852 - $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#19852 - } //#19852 - } //#19852 + var _4N = $k[--$j]; //#20077 + $puti($_.bits, $_.j, _4N); //#20077 + $_.j = _4N.length + $_.j; //#20078 + }; //#20078 + $k[$j++] = Infinity; //#20081 + for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#20081 + $k[$j++] = 0; //#20081 + } //#20081 + $k[$j++] = 0; //#20081 + $_.numNs = $a(); //#20081 + $k[$j++] = Infinity; //#20082 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#20082 + $k[$j++] = 0; //#20082 + } //#20082 + $k[$j++] = 0; //#20082 + $_.numAs = $a(); //#20082 + $k[$j++] = Infinity; //#20083 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#20083 + $k[$j++] = 0; //#20083 + } //#20083 + $k[$j++] = 0; //#20083 + $_.numAorNs = $a(); //#20083 + $k[$j++] = Infinity; //#20084 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#20084 + $k[$j++] = 0; //#20084 + } //#20084 + $k[$j++] = 0; //#20084 + $_.numBs = $a(); //#20084 + $k[$j++] = Infinity; //#20085 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#20085 + $k[$j++] = 0; //#20085 + } //#20085 + $k[$j++] = 0; //#20085 + $_.numKs = $a(); //#20085 + $k[$j++] = Infinity; //#20086 + for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#20086 + $k[$j++] = 0; //#20086 + } //#20086 + $k[$j++] = 9999; //#20086 + $_.nextNs = $a(); //#20086 + $k[$j++] = Infinity; //#20087 + for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#20087 + $k[$j++] = 0; //#20087 + } //#20087 + $k[$j++] = 9999; //#20087 + $_.nextBs = $a(); //#20087 + $k[$j++] = Infinity; //#20088 + for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#20088 + $k[$j++] = 0; //#20088 + } //#20088 + $k[$j++] = 9999; //#20088 + $_.nextAs = $a(); //#20088 + $k[$j++] = Infinity; //#20089 + for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#20089 + $k[$j++] = 0; //#20089 + } //#20089 + $k[$j++] = 9999; //#20089 + $_.nextKs = $a(); //#20089 + $_.isECI = $a($_.msglen); //#20090 + for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#20120 + $_.i = _54; //#20092 + $_.barchar = $get($_.msg, $_.i); //#20093 + var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#20094 + if (_5A) { //#20103 + $k[$j++] = 'sjis'; //#20095 + if (($_.i + 1) < $_.msglen) { //#20095 + $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#20095 + } else { //#20095 + $k[$j++] = 0; //#20095 + } //#20095 + var _5H = $k[--$j]; //#20095 + $_[$k[--$j]] = _5H; //#20095 + if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#20100 + $put($_.nextKs, $_.i, 0); //#20097 + $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#20098 + } else { //#20100 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20100 + } //#20100 + } else { //#20103 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20103 + } //#20103 + var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#20105 + if (_5g) { //#20110 + $put($_.nextNs, $_.i, 0); //#20106 + $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#20107 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20108 + } else { //#20110 + $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#20110 + } //#20110 + var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#20112 + if (_60) { //#20117 + $put($_.nextAs, $_.i, 0); //#20113 + $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#20114 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20115 + } else { //#20117 + $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#20117 + } //#20117 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#20119 + } //#20119 + for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#20127 + $_.i = _6N; //#20122 + if ($get($_.numKs, $_.i) > 0) { //#20126 + $put($_.numKs, $_.i + 1, 0); //#20124 + $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#20125 + } //#20125 + } //#20125 + for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#20136 + $_.i = _6Z; //#20129 + if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#20134 + $put($_.nextBs, $_.i, 0); //#20131 + $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#20132 + } else { //#20134 + $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#20134 + } //#20134 + } //#20134 $_.KbeforeB = function() { - var _71 = $get($k[--$j], $_.ver); //#19856 - $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#19856 - }; //#19856 + var _71 = $get($k[--$j], $_.ver); //#20138 + $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#20138 + }; //#20138 $_.KbeforeA = function() { - var _79 = $get($k[--$j], $_.ver); //#19857 - $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#19857 - }; //#19857 + var _79 = $get($k[--$j], $_.ver); //#20139 + $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#20139 + }; //#20139 $_.KbeforeN = function() { - var _7H = $get($k[--$j], $_.ver); //#19858 - $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#19858 - }; //#19858 + var _7H = $get($k[--$j], $_.ver); //#20140 + $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#20140 + }; //#20140 $_.KbeforeE = function() { - var _7P = $get($k[--$j], $_.ver); //#19859 - $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#19859 - }; //#19859 + var _7P = $get($k[--$j], $_.ver); //#20141 + $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#20141 + }; //#20141 $_.AbeforeK = function() { - var _7W = $get($k[--$j], $_.ver); //#19860 - $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#19860 - }; //#19860 + var _7W = $get($k[--$j], $_.ver); //#20142 + $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#20142 + }; //#20142 $_.AbeforeB = function() { - var _7e = $get($k[--$j], $_.ver); //#19861 - $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#19861 - }; //#19861 + var _7e = $get($k[--$j], $_.ver); //#20143 + $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#20143 + }; //#20143 $_.AbeforeN = function() { - var _7m = $get($k[--$j], $_.ver); //#19862 - $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#19862 - }; //#19862 + var _7m = $get($k[--$j], $_.ver); //#20144 + $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#20144 + }; //#20144 $_.AbeforeE = function() { - var _7u = $get($k[--$j], $_.ver); //#19863 - $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#19863 - }; //#19863 + var _7u = $get($k[--$j], $_.ver); //#20145 + $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#20145 + }; //#20145 $_.NbeforeK = function() { - var _81 = $get($k[--$j], $_.ver); //#19864 - $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#19864 - }; //#19864 + var _81 = $get($k[--$j], $_.ver); //#20146 + $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#20146 + }; //#20146 $_.NbeforeB = function() { - var _89 = $get($k[--$j], $_.ver); //#19865 - $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#19865 - }; //#19865 + var _89 = $get($k[--$j], $_.ver); //#20147 + $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#20147 + }; //#20147 $_.NbeforeA = function() { - var _8H = $get($k[--$j], $_.ver); //#19866 - $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#19866 - }; //#19866 + var _8H = $get($k[--$j], $_.ver); //#20148 + $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#20148 + }; //#20148 $_.NbeforeE = function() { - var _8P = $get($k[--$j], $_.ver); //#19867 - $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#19867 - }; //#19867 + var _8P = $get($k[--$j], $_.ver); //#20149 + $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#20149 + }; //#20149 $_.AorNbeforeB = function() { - var _8W = $get($k[--$j], $_.ver); //#19868 - $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#19868 - }; //#19868 + var _8W = $get($k[--$j], $_.ver); //#20150 + $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#20150 + }; //#20150 $_.AorNbeforeE = function() { - var _8e = $get($k[--$j], $_.ver); //#19869 - $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#19869 - }; //#19869 + var _8e = $get($k[--$j], $_.ver); //#20151 + $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#20151 + }; //#20151 $_.nextNslt = function() { - if ($get($_.nextNs, $_.i) >= $_.msglen) { //#19871 - $j--; //#19871 - $k[$j++] = true; //#19871 - } else { //#19871 - var _8u = $get($k[--$j], $_.ver); //#19871 - $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#19871 - } //#19871 - }; //#19871 - if (!bwipp_qrcode.__19901__) { //#19901 - $_ = Object.create($_); //#19901 - $k[$j++] = Infinity; //#19896 - $k[$j++] = "full"; //#19885 - $k[$j++] = Infinity; //#19885 - for (var _8v = 0; _8v <= 9; _8v += 1) { //#19883 - $k[$j++] = $cvrs($s(2), _8v, 10); //#19883 - $k[$j++] = $_.v1to9; //#19883 - } //#19883 - for (var _8z = 10; _8z <= 26; _8z += 1) { //#19884 - $k[$j++] = $cvrs($s(2), _8z, 10); //#19884 - $k[$j++] = $_.v10to26; //#19884 - } //#19884 - for (var _93 = 27; _93 <= 40; _93 += 1) { //#19885 - $k[$j++] = $cvrs($s(2), _93, 10); //#19885 - $k[$j++] = $_.v27to40; //#19885 - } //#19885 - var _97 = $d(); //#19885 + if ($get($_.nextNs, $_.i) >= $_.msglen) { //#20153 + $j--; //#20153 + $k[$j++] = true; //#20153 + } else { //#20153 + var _8u = $get($k[--$j], $_.ver); //#20153 + $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#20153 + } //#20153 + }; //#20153 + if (!bwipp_qrcode.__20183__) { //#20183 + $_ = Object.create($_); //#20183 + $k[$j++] = Infinity; //#20163 + $k[$j++] = "full"; //#20167 + $k[$j++] = Infinity; //#20164 + for (var _8v = 0; _8v <= 9; _8v += 1) { //#20165 + $k[$j++] = $cvrs($s(2), _8v, 10); //#20165 + $k[$j++] = $_.v1to9; //#20165 + } //#20165 + for (var _8z = 10; _8z <= 26; _8z += 1) { //#20166 + $k[$j++] = $cvrs($s(2), _8z, 10); //#20166 + $k[$j++] = $_.v10to26; //#20166 + } //#20166 + for (var _93 = 27; _93 <= 40; _93 += 1) { //#20167 + $k[$j++] = $cvrs($s(2), _93, 10); //#20167 + $k[$j++] = $_.v27to40; //#20167 + } //#20167 + var _97 = $d(); //#20167 var _9C = new Map([ ["M1", $_.vM1], ["M2", $_.vM2], ["M3", $_.vM3], ["M4", $_.vM4] - ]); //#19888 + ]); //#20170 var _9j = new Map([ ["R7x43", $_.vR7x43], ["R7x59", $_.vR7x59], @@ -23957,3690 +24364,3726 @@ function bwipp_qrcode() { ["R17x77", $_.vR17x77], ["R17x99", $_.vR17x99], ["R17x139", $_.vR17x139] - ]); //#19896 - $k[$j++] = _97; //#19896 - $k[$j++] = "micro"; //#19896 - $k[$j++] = _9C; //#19896 - $k[$j++] = "rmqr"; //#19896 - $k[$j++] = _9j; //#19896 - $_.versetmap = $d(); //#19898 - $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#19899 - $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#19900 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19900 - bwipp_qrcode.__19901__ = 1; //#19900 - $_ = Object.getPrototypeOf($_); //#19900 - } //#19900 - if ($ne($_.version, "unset")) { //#19919 - var _9y = $get($_.versetmap, $_.format); //#19904 - var _9z = $_.version; //#19904 - var _A0 = $get(_9y, _9z) !== undefined; //#19904 - $k[$j++] = _9y; //#19914 - $k[$j++] = _9z; //#19914 - if (!_A0) { //#19914 - $j -= 2; //#19905 - if ($eq($_.format, "full")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#19907'; //#19907 - $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#19907 - bwipp_raiseerror(); //#19907 - } else { //#19912 - if ($eq($_.format, "micro")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#19910'; //#19910 - $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#19910 - bwipp_raiseerror(); //#19910 - } else { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#19912'; //#19912 - $k[$j++] = "Invalid version for an RMQR symbol"; //#19912 - bwipp_raiseerror(); //#19912 - } //#19912 - } //#19912 - } //#19912 - var _A3 = $k[--$j]; //#19915 - var _A5 = $get($k[--$j], _A3); //#19915 - $k[$j++] = _A5; //#19915 - $k[$j++] = Infinity; //#19915 - var _A6 = $k[--$j]; //#19915 - var _A7 = $k[--$j]; //#19915 - $k[$j++] = _A6; //#19915 - $k[$j++] = _A7; //#19915 - $_.verset = $a(); //#19915 - } else { //#19919 - if ($eq($_.format, "full")) { //#19918 - $_.verset = $_.versetfull; //#19918 - } //#19918 - if ($eq($_.format, "micro")) { //#19919 - $_.verset = $_.versetmicro; //#19919 - } //#19919 - } //#19919 - $k[$j++] = Infinity; //#19924 - for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#19924 - $k[$j++] = -1; //#19924 - } //#19924 - $_.msgbits = $a(); //#19924 - $_.e = 10000; //#19925 - if (!bwipp_qrcode.__19955__) { //#19955 - $_ = Object.create($_); //#19955 - $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19931 - $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19932 - $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19933 - $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19935 - $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#19937 - $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#19938 - $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#19939 - $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#19940 - $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#19942 - $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#19943 - $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#19944 - $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#19945 - $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#19947 - $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#19948 - $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#19949 - $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19950 - $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#19952 - $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#19953 - $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#19954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19954 - bwipp_qrcode.__19955__ = 1; //#19954 - $_ = Object.getPrototypeOf($_); //#19954 - } //#19954 - var _B7 = $_.verset; //#19957 - for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20089 - $_.ver = $get(_B7, _B8); //#19958 - $_.mode = -1; //#19961 - $_.seq = $a([]); //#19961 - $_.i = 0; //#19961 - for (;;) { //#20058 - if ($_.i >= $_.msglen) { //#19962 - break; //#19962 - } //#19962 - $_.numK = $get($_.numKs, $_.i); //#19963 - $_.numB = $get($_.numBs, $_.i); //#19964 - $_.numA = $get($_.numAs, $_.i); //#19965 - $_.numN = $get($_.numNs, $_.i); //#19966 - $_.numAorN = $get($_.numAorNs, $_.i); //#19967 - $_.eci = $get($_.isECI, $_.i); //#19968 - if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#19969 - $_.seq = -1; //#19969 - break; //#19969 - } //#19969 - if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#19970 - $_.seq = -1; //#19970 - break; //#19970 - } //#19970 - if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#19971 - $_.seq = -1; //#19971 - break; //#19971 - } //#19971 - if ($eq($_.ver, $_.vM1) && $_.eci) { //#19972 - $_.seq = -1; //#19972 - break; //#19972 - } //#19972 - if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#19973 - $_.seq = -1; //#19973 - break; //#19973 - } //#19973 - if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#19974 - $_.seq = -1; //#19974 - break; //#19974 - } //#19974 - if ($eq($_.ver, $_.vM2) && $_.eci) { //#19975 - $_.seq = -1; //#19975 - break; //#19975 - } //#19975 - if ($eq($_.ver, $_.vM3) && $_.eci) { //#19976 - $_.seq = -1; //#19976 - break; //#19976 - } //#19976 - if ($eq($_.ver, $_.vM4) && $_.eci) { //#19977 - $_.seq = -1; //#19977 - break; //#19977 - } //#19977 - for (;;) { //#20038 - if ($_.eci) { //#19981 - $k[$j++] = $_.E; //#19980 - break; //#19980 - } //#19980 - if ($_.mode == -1) { //#19996 - $k[$j++] = $_.mode0forceKB; //#19983 - $_.KbeforeA(); //#19983 - if ($k[--$j]) { //#19983 - $k[$j++] = $_.K; //#19983 - break; //#19983 - } //#19983 - $k[$j++] = $_.mode0forceKB; //#19984 - $_.KbeforeN(); //#19984 - if ($k[--$j]) { //#19984 - $k[$j++] = $_.K; //#19984 - break; //#19984 - } //#19984 - $k[$j++] = $_.modeBKbeforeE; //#19985 - $_.KbeforeB(); //#19985 - if ($k[--$j]) { //#19985 - $k[$j++] = $_.K; //#19985 - break; //#19985 - } //#19985 - $k[$j++] = $_.mode0forceKB; //#19986 - $_.KbeforeE(); //#19986 - if ($k[--$j]) { //#19986 - $k[$j++] = $_.K; //#19986 - break; //#19986 - } //#19986 - if ($_.numK >= 1) { //#19987 - $k[$j++] = $_.B; //#19987 - break; //#19987 - } //#19987 - $k[$j++] = $_.mode0NbeforeB; //#19988 - $_.NbeforeB(); //#19988 - if ($k[--$j]) { //#19988 - $k[$j++] = $_.N; //#19988 - break; //#19988 - } //#19988 - $k[$j++] = $_.mode0forceKB; //#19989 - $_.NbeforeB(); //#19989 - if ($k[--$j]) { //#19989 - $k[$j++] = $_.B; //#19989 - break; //#19989 - } //#19989 - $k[$j++] = $_.modeANbeforeE; //#19990 - $_.NbeforeA(); //#19990 - if ($k[--$j]) { //#19990 - $k[$j++] = $_.N; //#19990 - break; //#19990 - } //#19990 - $k[$j++] = $_.mode0forceN; //#19991 - $_.NbeforeE(); //#19991 - if ($k[--$j]) { //#19991 - $k[$j++] = $_.N; //#19991 - break; //#19991 - } //#19991 - $k[$j++] = $_.modeBAbeforeE; //#19992 - $_.AbeforeK(); //#19992 - if ($k[--$j]) { //#19992 - $k[$j++] = $_.A; //#19992 - break; //#19992 - } //#19992 - $k[$j++] = $_.modeBAbeforeE; //#19993 - $_.AorNbeforeB(); //#19993 - if ($k[--$j]) { //#19993 - $k[$j++] = $_.A; //#19993 - break; //#19993 - } //#19993 - $k[$j++] = $_.mode0forceA; //#19994 - $_.AorNbeforeE(); //#19994 - if ($k[--$j]) { //#19994 - $k[$j++] = $_.A; //#19994 - break; //#19994 - } //#19994 - $k[$j++] = $_.B; //#19995 - break; //#19995 - } //#19995 - if ($_.mode == $_.B) { //#20014 - $k[$j++] = $_.modeBKbeforeB; //#19998 - $_.KbeforeB(); //#19998 - if ($k[--$j]) { //#19998 - $k[$j++] = $_.K; //#19998 - break; //#19998 - } //#19998 - $k[$j++] = $_.modeBKbeforeA; //#19999 - $_.KbeforeA(); //#19999 - if ($k[--$j]) { //#19999 - $k[$j++] = $_.K; //#19999 - break; //#19999 - } //#19999 - $k[$j++] = $_.modeBKbeforeN; //#20000 - $_.KbeforeN(); //#20000 - if ($k[--$j]) { //#20000 - $k[$j++] = $_.K; //#20000 - break; //#20000 - } //#20000 - $k[$j++] = $_.modeBKbeforeE; //#20001 - $_.KbeforeE(); //#20001 - if ($k[--$j]) { //#20001 - $k[$j++] = $_.K; //#20001 - break; //#20001 - } //#20001 - $k[$j++] = $_.modeBAbeforeK; //#20002 - $_.AbeforeK(); //#20002 - if ($k[--$j]) { //#20002 - $k[$j++] = $_.A; //#20002 - break; //#20002 - } //#20002 - $k[$j++] = $_.modeBAbeforeB; //#20003 - $_.AbeforeB(); //#20003 - if ($k[--$j]) { //#20003 - $k[$j++] = $_.A; //#20003 - break; //#20003 - } //#20003 - $k[$j++] = $_.modeBAbeforeN; //#20004 - $_.AbeforeN(); //#20004 - if ($k[--$j]) { //#20004 - $k[$j++] = $_.A; //#20004 - break; //#20004 - } //#20004 - $k[$j++] = $_.modeBAbeforeE; //#20005 - $_.AbeforeE(); //#20005 - if ($k[--$j]) { //#20005 - $k[$j++] = $_.A; //#20005 - break; //#20005 - } //#20005 - $k[$j++] = $_.modeBNbeforeK; //#20006 - $_.NbeforeK(); //#20006 - if ($k[--$j]) { //#20006 - $k[$j++] = $_.N; //#20006 - break; //#20006 - } //#20006 - $k[$j++] = $_.modeBNbeforeB; //#20007 - $_.NbeforeB(); //#20007 - if ($k[--$j]) { //#20007 - $k[$j++] = $_.N; //#20007 - break; //#20007 - } //#20007 - $k[$j++] = $_.modeBNbeforeA; //#20008 - $_.NbeforeA(); //#20008 - if ($k[--$j]) { //#20008 - $k[$j++] = $_.N; //#20008 - break; //#20008 - } //#20008 - $k[$j++] = $_.modeBNbeforeE; //#20009 - $_.NbeforeE(); //#20009 - if ($k[--$j]) { //#20009 - $k[$j++] = $_.N; //#20009 - break; //#20009 - } //#20009 - $k[$j++] = $_.modeBAbeforeE; //#20010 - $_.AorNbeforeE(); //#20010 - var _DH = $k[--$j]; //#20010 - if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20012 - $k[$j++] = $_.modeBNbeforeA; //#20011 - $_.nextNslt(); //#20011 - if ($k[--$j]) { //#20011 - $k[$j++] = $_.A; //#20011 - break; //#20011 - } //#20011 - } //#20011 - $k[$j++] = $_.B; //#20013 - break; //#20013 - } //#20013 - if ($_.mode == $_.A) { //#20023 - if ($_.numK >= 1) { //#20016 - $k[$j++] = $_.K; //#20016 - break; //#20016 - } //#20016 - if ($_.numB >= 1) { //#20017 - $k[$j++] = $_.B; //#20017 - break; //#20017 - } //#20017 - $k[$j++] = $_.modeANbeforeA; //#20018 - $_.NbeforeA(); //#20018 - if ($k[--$j]) { //#20018 - $k[$j++] = $_.N; //#20018 - break; //#20018 - } //#20018 - $k[$j++] = $_.modeANbeforeB; //#20019 - $_.NbeforeB(); //#20019 - if ($k[--$j]) { //#20019 - $k[$j++] = $_.N; //#20019 - break; //#20019 - } //#20019 - $k[$j++] = $_.modeANbeforeE; //#20020 - $_.NbeforeE(); //#20020 - if ($k[--$j]) { //#20020 - $k[$j++] = $_.N; //#20020 - break; //#20020 - } //#20020 - if (($_.numA >= 1) || ($_.numN >= 1)) { //#20021 - $k[$j++] = $_.A; //#20021 - break; //#20021 - } //#20021 - $k[$j++] = $_.B; //#20022 - break; //#20022 - } //#20022 - if ($_.mode == $_.N) { //#20030 - if ($_.numK >= 1) { //#20025 - $k[$j++] = $_.K; //#20025 - break; //#20025 - } //#20025 - if ($_.numB >= 1) { //#20026 - $k[$j++] = $_.B; //#20026 - break; //#20026 - } //#20026 - if ($_.numA >= 1) { //#20027 - $k[$j++] = $_.A; //#20027 - break; //#20027 - } //#20027 - if ($_.numN >= 1) { //#20028 - $k[$j++] = $_.N; //#20028 - break; //#20028 - } //#20028 - $k[$j++] = $_.B; //#20029 - break; //#20029 - } //#20029 - if ($_.mode == $_.K) { //#20037 - if ($_.numB >= 1) { //#20032 - $k[$j++] = $_.B; //#20032 - break; //#20032 - } //#20032 - if ($_.numA >= 1) { //#20033 - $k[$j++] = $_.A; //#20033 - break; //#20033 - } //#20033 - if ($_.numN >= 1) { //#20034 - $k[$j++] = $_.N; //#20034 - break; //#20034 - } //#20034 - if ($_.numK >= 1) { //#20035 - $k[$j++] = $_.K; //#20035 - break; //#20035 - } //#20035 - $k[$j++] = $_.B; //#20036 - break; //#20036 - } //#20036 - } //#20036 - var _E1 = $k[--$j]; //#20039 - $k[$j++] = _E1; //#20039 - if ((_E1 == $_.K) && $_.fnc1first) { //#20039 - $j--; //#20039 - $k[$j++] = $_.B; //#20039 - } //#20039 - var _E5 = $k[--$j]; //#20040 - $k[$j++] = _E5; //#20056 - if (_E5 == $_.mode) { //#20055 - $j--; //#20041 - var _EB = ($_.mode == $_.K) ? 2 : 1; //#20042 - $_.dat = $geti($_.msg, $_.i, _EB); //#20042 - $k[$j++] = Infinity; //#20045 - $aload($_.seq); //#20044 - $k[$j++] = Infinity; //#20045 - var _EE = $k[--$j]; //#20045 - var _EF = $k[--$j]; //#20045 - $k[$j++] = _EE; //#20045 - $aload(_EF); //#20045 - $aload($_.dat); //#20045 - var _EH = $a(); //#20045 - $k[$j++] = _EH; //#20045 - $_.seq = $a(); //#20045 - } else { //#20055 - $_.mode = $k[--$j]; //#20048 - if ($_.mode == $_.K) { //#20049 - $k[$j++] = $_.K; //#20049 - $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20049 - } //#20049 - if ($_.mode == $_.B) { //#20050 - $k[$j++] = $_.B; //#20050 - $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20050 - } //#20050 - if ($_.mode == $_.A) { //#20051 - $k[$j++] = $_.A; //#20051 - $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20051 - } //#20051 - if ($_.mode == $_.N) { //#20052 - $k[$j++] = $_.N; //#20052 - $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20052 - } //#20052 - if ($_.mode == $_.E) { //#20053 - $_.mode = -1; //#20053 - $k[$j++] = $_.E; //#20053 - $k[$j++] = $geti($_.msg, $_.i, 1); //#20053 - } //#20053 - $_.dat = $k[--$j]; //#20054 - $_.sw = $k[--$j]; //#20054 - $k[$j++] = Infinity; //#20055 - $aload($_.seq); //#20055 - $k[$j++] = $_.sw; //#20055 - $k[$j++] = $_.dat; //#20055 - $_.seq = $a(); //#20055 - } //#20055 - $_.i = $_.i + $_.dat.length; //#20057 - } //#20057 - for (;;) { //#20088 - if ($_.seq == -1) { //#20062 - break; //#20062 - } //#20062 - $_.bits = $s(23648); //#20063 - $_.j = 0; //#20064 - if ($_.fnc1first) { //#20067 - if ($lt($_.ver, $_.vR7x43)) { //#20066 - $k[$j++] = "0101"; //#20066 - } else { //#20066 - $k[$j++] = "101"; //#20066 - } //#20066 - $_.addtobits(); //#20066 - } //#20066 - $_.abort = false; //#20068 - for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20083 - $_.i = _F7; //#20070 - $_.mode = $get($_.seq, $_.i); //#20071 - $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20072 - $_.addtobits(); //#20072 - $_.chars = $get($_.seq, $_.i + 1); //#20073 - $k[$j++] = 'charslen'; //#20074 - $k[$j++] = $_.chars.length; //#20074 - if ($_.mode == $_.K) { //#20074 - var _FM = $k[--$j]; //#20074 - $k[$j++] = ~~(_FM / 2); //#20074 - } //#20074 - var _FN = $k[--$j]; //#20074 - $_[$k[--$j]] = _FN; //#20074 - if ($_.mode != $_.E) { //#20081 - $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20076 - if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20079 - $_.abort = true; //#20078 - break; //#20078 - } //#20078 - $k[$j++] = $_.charslen; //#20080 - $k[$j++] = $_.cclen; //#20080 - $_.tobin(); //#20080 - $_.addtobits(); //#20080 - } //#20080 - $k[$j++] = $_.chars; //#20082 + ]); //#20178 + $k[$j++] = _97; //#20178 + $k[$j++] = "micro"; //#20178 + $k[$j++] = _9C; //#20178 + $k[$j++] = "rmqr"; //#20178 + $k[$j++] = _9j; //#20178 + $_.versetmap = $d(); //#20180 + $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#20181 + $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#20182 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20182 + bwipp_qrcode.__20183__ = 1; //#20182 + $_ = Object.getPrototypeOf($_); //#20182 + } //#20182 + if ($ne($_.version, "unset")) { //#20201 + var _9y = $get($_.versetmap, $_.format); //#20186 + var _9z = $_.version; //#20186 + var _A0 = $get(_9y, _9z) !== undefined; //#20186 + $k[$j++] = _9y; //#20196 + $k[$j++] = _9z; //#20196 + if (!_A0) { //#20196 + $j -= 2; //#20187 + if ($eq($_.format, "full")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#20189'; //#20189 + $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#20189 + bwipp_raiseerror(); //#20189 + } else { //#20194 + if ($eq($_.format, "micro")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#20192'; //#20192 + $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#20192 + bwipp_raiseerror(); //#20192 + } else { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#20194'; //#20194 + $k[$j++] = "Invalid version for an RMQR symbol"; //#20194 + bwipp_raiseerror(); //#20194 + } //#20194 + } //#20194 + } //#20194 + var _A3 = $k[--$j]; //#20197 + var _A5 = $get($k[--$j], _A3); //#20197 + $k[$j++] = _A5; //#20197 + $k[$j++] = Infinity; //#20197 + var _A6 = $k[--$j]; //#20197 + var _A7 = $k[--$j]; //#20197 + $k[$j++] = _A6; //#20197 + $k[$j++] = _A7; //#20197 + $_.verset = $a(); //#20197 + } else { //#20201 + if ($eq($_.format, "full")) { //#20200 + $_.verset = $_.versetfull; //#20200 + } //#20200 + if ($eq($_.format, "micro")) { //#20201 + $_.verset = $_.versetmicro; //#20201 + } //#20201 + } //#20201 + $k[$j++] = Infinity; //#20206 + for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#20206 + $k[$j++] = -1; //#20206 + } //#20206 + $_.msgbits = $a(); //#20206 + $_.e = 10000; //#20207 + if (!bwipp_qrcode.__20237__) { //#20237 + $_ = Object.create($_); //#20237 + $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20213 + $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20214 + $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20215 + $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20217 + $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#20219 + $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#20220 + $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#20221 + $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#20222 + $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#20224 + $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#20225 + $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#20226 + $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#20227 + $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#20229 + $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#20230 + $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#20231 + $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20232 + $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#20234 + $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#20235 + $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#20236 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20236 + bwipp_qrcode.__20237__ = 1; //#20236 + $_ = Object.getPrototypeOf($_); //#20236 + } //#20236 + var _B7 = $_.verset; //#20239 + for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20371 + $_.ver = $get(_B7, _B8); //#20240 + $_.mode = -1; //#20243 + $_.seq = $a([]); //#20243 + $_.i = 0; //#20243 + for (;;) { //#20340 + if ($_.i >= $_.msglen) { //#20244 + break; //#20244 + } //#20244 + $_.numK = $get($_.numKs, $_.i); //#20245 + $_.numB = $get($_.numBs, $_.i); //#20246 + $_.numA = $get($_.numAs, $_.i); //#20247 + $_.numN = $get($_.numNs, $_.i); //#20248 + $_.numAorN = $get($_.numAorNs, $_.i); //#20249 + $_.eci = $get($_.isECI, $_.i); //#20250 + if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#20251 + $_.seq = -1; //#20251 + break; //#20251 + } //#20251 + if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#20252 + $_.seq = -1; //#20252 + break; //#20252 + } //#20252 + if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#20253 + $_.seq = -1; //#20253 + break; //#20253 + } //#20253 + if ($eq($_.ver, $_.vM1) && $_.eci) { //#20254 + $_.seq = -1; //#20254 + break; //#20254 + } //#20254 + if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#20255 + $_.seq = -1; //#20255 + break; //#20255 + } //#20255 + if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#20256 + $_.seq = -1; //#20256 + break; //#20256 + } //#20256 + if ($eq($_.ver, $_.vM2) && $_.eci) { //#20257 + $_.seq = -1; //#20257 + break; //#20257 + } //#20257 + if ($eq($_.ver, $_.vM3) && $_.eci) { //#20258 + $_.seq = -1; //#20258 + break; //#20258 + } //#20258 + if ($eq($_.ver, $_.vM4) && $_.eci) { //#20259 + $_.seq = -1; //#20259 + break; //#20259 + } //#20259 + for (;;) { //#20320 + if ($_.eci) { //#20263 + $k[$j++] = $_.E; //#20262 + break; //#20262 + } //#20262 + if ($_.mode == -1) { //#20278 + $k[$j++] = $_.mode0forceKB; //#20265 + $_.KbeforeA(); //#20265 + if ($k[--$j]) { //#20265 + $k[$j++] = $_.K; //#20265 + break; //#20265 + } //#20265 + $k[$j++] = $_.mode0forceKB; //#20266 + $_.KbeforeN(); //#20266 + if ($k[--$j]) { //#20266 + $k[$j++] = $_.K; //#20266 + break; //#20266 + } //#20266 + $k[$j++] = $_.modeBKbeforeE; //#20267 + $_.KbeforeB(); //#20267 + if ($k[--$j]) { //#20267 + $k[$j++] = $_.K; //#20267 + break; //#20267 + } //#20267 + $k[$j++] = $_.mode0forceKB; //#20268 + $_.KbeforeE(); //#20268 + if ($k[--$j]) { //#20268 + $k[$j++] = $_.K; //#20268 + break; //#20268 + } //#20268 + if ($_.numK >= 1) { //#20269 + $k[$j++] = $_.B; //#20269 + break; //#20269 + } //#20269 + $k[$j++] = $_.mode0NbeforeB; //#20270 + $_.NbeforeB(); //#20270 + if ($k[--$j]) { //#20270 + $k[$j++] = $_.N; //#20270 + break; //#20270 + } //#20270 + $k[$j++] = $_.mode0forceKB; //#20271 + $_.NbeforeB(); //#20271 + if ($k[--$j]) { //#20271 + $k[$j++] = $_.B; //#20271 + break; //#20271 + } //#20271 + $k[$j++] = $_.modeANbeforeE; //#20272 + $_.NbeforeA(); //#20272 + if ($k[--$j]) { //#20272 + $k[$j++] = $_.N; //#20272 + break; //#20272 + } //#20272 + $k[$j++] = $_.mode0forceN; //#20273 + $_.NbeforeE(); //#20273 + if ($k[--$j]) { //#20273 + $k[$j++] = $_.N; //#20273 + break; //#20273 + } //#20273 + $k[$j++] = $_.modeBAbeforeE; //#20274 + $_.AbeforeK(); //#20274 + if ($k[--$j]) { //#20274 + $k[$j++] = $_.A; //#20274 + break; //#20274 + } //#20274 + $k[$j++] = $_.modeBAbeforeE; //#20275 + $_.AorNbeforeB(); //#20275 + if ($k[--$j]) { //#20275 + $k[$j++] = $_.A; //#20275 + break; //#20275 + } //#20275 + $k[$j++] = $_.mode0forceA; //#20276 + $_.AorNbeforeE(); //#20276 + if ($k[--$j]) { //#20276 + $k[$j++] = $_.A; //#20276 + break; //#20276 + } //#20276 + $k[$j++] = $_.B; //#20277 + break; //#20277 + } //#20277 + if ($_.mode == $_.B) { //#20296 + $k[$j++] = $_.modeBKbeforeB; //#20280 + $_.KbeforeB(); //#20280 + if ($k[--$j]) { //#20280 + $k[$j++] = $_.K; //#20280 + break; //#20280 + } //#20280 + $k[$j++] = $_.modeBKbeforeA; //#20281 + $_.KbeforeA(); //#20281 + if ($k[--$j]) { //#20281 + $k[$j++] = $_.K; //#20281 + break; //#20281 + } //#20281 + $k[$j++] = $_.modeBKbeforeN; //#20282 + $_.KbeforeN(); //#20282 + if ($k[--$j]) { //#20282 + $k[$j++] = $_.K; //#20282 + break; //#20282 + } //#20282 + $k[$j++] = $_.modeBKbeforeE; //#20283 + $_.KbeforeE(); //#20283 + if ($k[--$j]) { //#20283 + $k[$j++] = $_.K; //#20283 + break; //#20283 + } //#20283 + $k[$j++] = $_.modeBAbeforeK; //#20284 + $_.AbeforeK(); //#20284 + if ($k[--$j]) { //#20284 + $k[$j++] = $_.A; //#20284 + break; //#20284 + } //#20284 + $k[$j++] = $_.modeBAbeforeB; //#20285 + $_.AbeforeB(); //#20285 + if ($k[--$j]) { //#20285 + $k[$j++] = $_.A; //#20285 + break; //#20285 + } //#20285 + $k[$j++] = $_.modeBAbeforeN; //#20286 + $_.AbeforeN(); //#20286 + if ($k[--$j]) { //#20286 + $k[$j++] = $_.A; //#20286 + break; //#20286 + } //#20286 + $k[$j++] = $_.modeBAbeforeE; //#20287 + $_.AbeforeE(); //#20287 + if ($k[--$j]) { //#20287 + $k[$j++] = $_.A; //#20287 + break; //#20287 + } //#20287 + $k[$j++] = $_.modeBNbeforeK; //#20288 + $_.NbeforeK(); //#20288 + if ($k[--$j]) { //#20288 + $k[$j++] = $_.N; //#20288 + break; //#20288 + } //#20288 + $k[$j++] = $_.modeBNbeforeB; //#20289 + $_.NbeforeB(); //#20289 + if ($k[--$j]) { //#20289 + $k[$j++] = $_.N; //#20289 + break; //#20289 + } //#20289 + $k[$j++] = $_.modeBNbeforeA; //#20290 + $_.NbeforeA(); //#20290 + if ($k[--$j]) { //#20290 + $k[$j++] = $_.N; //#20290 + break; //#20290 + } //#20290 + $k[$j++] = $_.modeBNbeforeE; //#20291 + $_.NbeforeE(); //#20291 + if ($k[--$j]) { //#20291 + $k[$j++] = $_.N; //#20291 + break; //#20291 + } //#20291 + $k[$j++] = $_.modeBAbeforeE; //#20292 + $_.AorNbeforeE(); //#20292 + var _DH = $k[--$j]; //#20292 + if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20294 + $k[$j++] = $_.modeBNbeforeA; //#20293 + $_.nextNslt(); //#20293 + if ($k[--$j]) { //#20293 + $k[$j++] = $_.A; //#20293 + break; //#20293 + } //#20293 + } //#20293 + $k[$j++] = $_.B; //#20295 + break; //#20295 + } //#20295 + if ($_.mode == $_.A) { //#20305 + if ($_.numK >= 1) { //#20298 + $k[$j++] = $_.K; //#20298 + break; //#20298 + } //#20298 + if ($_.numB >= 1) { //#20299 + $k[$j++] = $_.B; //#20299 + break; //#20299 + } //#20299 + $k[$j++] = $_.modeANbeforeA; //#20300 + $_.NbeforeA(); //#20300 + if ($k[--$j]) { //#20300 + $k[$j++] = $_.N; //#20300 + break; //#20300 + } //#20300 + $k[$j++] = $_.modeANbeforeB; //#20301 + $_.NbeforeB(); //#20301 + if ($k[--$j]) { //#20301 + $k[$j++] = $_.N; //#20301 + break; //#20301 + } //#20301 + $k[$j++] = $_.modeANbeforeE; //#20302 + $_.NbeforeE(); //#20302 + if ($k[--$j]) { //#20302 + $k[$j++] = $_.N; //#20302 + break; //#20302 + } //#20302 + if (($_.numA >= 1) || ($_.numN >= 1)) { //#20303 + $k[$j++] = $_.A; //#20303 + break; //#20303 + } //#20303 + $k[$j++] = $_.B; //#20304 + break; //#20304 + } //#20304 + if ($_.mode == $_.N) { //#20312 + if ($_.numK >= 1) { //#20307 + $k[$j++] = $_.K; //#20307 + break; //#20307 + } //#20307 + if ($_.numB >= 1) { //#20308 + $k[$j++] = $_.B; //#20308 + break; //#20308 + } //#20308 + if ($_.numA >= 1) { //#20309 + $k[$j++] = $_.A; //#20309 + break; //#20309 + } //#20309 + if ($_.numN >= 1) { //#20310 + $k[$j++] = $_.N; //#20310 + break; //#20310 + } //#20310 + $k[$j++] = $_.B; //#20311 + break; //#20311 + } //#20311 + if ($_.mode == $_.K) { //#20319 + if ($_.numB >= 1) { //#20314 + $k[$j++] = $_.B; //#20314 + break; //#20314 + } //#20314 + if ($_.numA >= 1) { //#20315 + $k[$j++] = $_.A; //#20315 + break; //#20315 + } //#20315 + if ($_.numN >= 1) { //#20316 + $k[$j++] = $_.N; //#20316 + break; //#20316 + } //#20316 + if ($_.numK >= 1) { //#20317 + $k[$j++] = $_.K; //#20317 + break; //#20317 + } //#20317 + $k[$j++] = $_.B; //#20318 + break; //#20318 + } //#20318 + } //#20318 + var _E1 = $k[--$j]; //#20321 + $k[$j++] = _E1; //#20321 + if ((_E1 == $_.K) && $_.fnc1first) { //#20321 + $j--; //#20321 + $k[$j++] = $_.B; //#20321 + } //#20321 + var _E5 = $k[--$j]; //#20322 + $k[$j++] = _E5; //#20338 + if (_E5 == $_.mode) { //#20337 + $j--; //#20323 + var _EB = ($_.mode == $_.K) ? 2 : 1; //#20324 + $_.dat = $geti($_.msg, $_.i, _EB); //#20324 + $k[$j++] = Infinity; //#20325 + $aload($_.seq); //#20326 + $k[$j++] = Infinity; //#20327 + var _EE = $k[--$j]; //#20327 + var _EF = $k[--$j]; //#20327 + $k[$j++] = _EE; //#20327 + $aload(_EF); //#20327 + $aload($_.dat); //#20327 + var _EH = $a(); //#20327 + $k[$j++] = _EH; //#20327 + $_.seq = $a(); //#20327 + } else { //#20337 + $_.mode = $k[--$j]; //#20330 + if ($_.mode == $_.K) { //#20331 + $k[$j++] = $_.K; //#20331 + $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20331 + } //#20331 + if ($_.mode == $_.B) { //#20332 + $k[$j++] = $_.B; //#20332 + $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20332 + } //#20332 + if ($_.mode == $_.A) { //#20333 + $k[$j++] = $_.A; //#20333 + $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20333 + } //#20333 + if ($_.mode == $_.N) { //#20334 + $k[$j++] = $_.N; //#20334 + $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20334 + } //#20334 + if ($_.mode == $_.E) { //#20335 + $_.mode = -1; //#20335 + $k[$j++] = $_.E; //#20335 + $k[$j++] = $geti($_.msg, $_.i, 1); //#20335 + } //#20335 + $_.dat = $k[--$j]; //#20336 + $_.sw = $k[--$j]; //#20336 + $k[$j++] = Infinity; //#20337 + $aload($_.seq); //#20337 + $k[$j++] = $_.sw; //#20337 + $k[$j++] = $_.dat; //#20337 + $_.seq = $a(); //#20337 + } //#20337 + $_.i = $_.i + $_.dat.length; //#20339 + } //#20339 + for (;;) { //#20370 + if ($_.seq == -1) { //#20344 + break; //#20344 + } //#20344 + $_.bits = $s(23648); //#20345 + $_.j = 0; //#20346 + if ($_.fnc1first) { //#20349 + if ($lt($_.ver, $_.vR7x43)) { //#20348 + $k[$j++] = "0101"; //#20348 + } else { //#20348 + $k[$j++] = "101"; //#20348 + } //#20348 + $_.addtobits(); //#20348 + } //#20348 + $_.abort = false; //#20350 + for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20365 + $_.i = _F7; //#20352 + $_.mode = $get($_.seq, $_.i); //#20353 + $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20354 + $_.addtobits(); //#20354 + $_.chars = $get($_.seq, $_.i + 1); //#20355 + $k[$j++] = 'charslen'; //#20356 + $k[$j++] = $_.chars.length; //#20356 + if ($_.mode == $_.K) { //#20356 + var _FM = $k[--$j]; //#20356 + $k[$j++] = ~~(_FM / 2); //#20356 + } //#20356 + var _FN = $k[--$j]; //#20356 + $_[$k[--$j]] = _FN; //#20356 + if ($_.mode != $_.E) { //#20363 + $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20358 + if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20361 + $_.abort = true; //#20360 + break; //#20360 + } //#20360 + $k[$j++] = $_.charslen; //#20362 + $k[$j++] = $_.cclen; //#20362 + $_.tobin(); //#20362 + $_.addtobits(); //#20362 + } //#20362 + $k[$j++] = $_.chars; //#20364 if ($_[$get($_.encfuncs, $_.mode)]() === true) { break; - } //#20082 - $_.addtobits(); //#20082 - } //#20082 - if ($_.abort) { //#20084 - break; //#20084 - } //#20084 - $_.bits = $geti($_.bits, 0, $_.j); //#20085 - $put($_.msgbits, $_.ver, $_.bits); //#20086 - break; //#20087 - } //#20087 - } //#20087 - if (!bwipp_qrcode.__20173__) { //#20173 - $_ = Object.create($_); //#20173 - $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20172 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20172 - bwipp_qrcode.__20173__ = 1; //#20172 - $_ = Object.getPrototypeOf($_); //#20172 - } //#20172 - $k[$j++] = 'eclval'; //#20175 - $search("LMQH", $_.eclevel); //#20175 - $j--; //#20175 - var _Kj = $k[--$j]; //#20175 - var _Kk = $k[--$j]; //#20175 - $k[$j++] = _Kj.length; //#20175 - $k[$j++] = _Kk; //#20175 - $j--; //#20175 - var _Kl = $k[--$j]; //#20175 - var _Km = $k[--$j]; //#20175 - $k[$j++] = _Kl; //#20175 - $k[$j++] = _Km; //#20175 - $j--; //#20175 - var _Kn = $k[--$j]; //#20175 - $_[$k[--$j]] = _Kn; //#20175 - for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20214 - $_.i = _Kr; //#20177 - $_.m = $get($_.metrics, $_.i); //#20178 - $_.frmt = $get($_.m, 0); //#20179 - $_.vers = $get($_.m, 1); //#20180 - $_.vergrp = $get($_.m, 2); //#20181 - $_.verind = $_.i - 44; //#20182 - $_.rows = $get($_.m, 3); //#20183 - $_.cols = $get($_.m, 4); //#20184 - $_.asp2 = $get($_.m, 5); //#20185 - $_.asp3 = $get($_.m, 6); //#20186 - $_.nmod = $get($_.m, 7); //#20187 - $_.ncws = ~~($_.nmod / 8); //#20188 - $_.rbit = $_.nmod % 8; //#20189 - $_.lc4b = false; //#20190 - if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20195 - $_.ncws = $_.ncws + 1; //#20192 - $_.rbit = 0; //#20193 - $_.lc4b = true; //#20194 - } //#20194 - $_.ecws = $get($get($_.m, 8), $_.eclval); //#20196 - $_.dcws = $f($_.ncws - $_.ecws); //#20197 - var _LP = $_.lc4b ? 4 : 0; //#20198 - $_.dmod = $f(($_.dcws * 8) - _LP); //#20198 - $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20199 - $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20200 - $_.okay = true; //#20201 - if ($ne($_.format, $_.frmt)) { //#20202 - $_.okay = false; //#20202 - } //#20202 - if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20203 - $_.okay = false; //#20203 - } //#20203 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20204 - $_.okay = false; //#20204 - } //#20204 - if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20205 - $_.okay = false; //#20205 - } //#20205 - $_.verbits = $get($_.msgbits, $_.vergrp); //#20206 - if ($_.verbits == -1) { //#20210 - $_.okay = false; //#20208 - } else { //#20210 - if ($_.verbits.length > $_.dmod) { //#20210 - $_.okay = false; //#20210 - } //#20210 - } //#20210 - $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20212 - if ($_.okay) { //#20213 - break; //#20213 - } //#20213 - } //#20213 - if (!$_.okay) { //#20218 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20217'; //#20217 - $k[$j++] = "Maximum length exceeded or invalid content"; //#20217 - bwipp_raiseerror(); //#20217 - } //#20217 - $_.format = $_.frmt; //#20220 - $_.version = $_.vers; //#20221 - $_.msgbits = $_.verbits; //#20222 - $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20223 - $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20224 - var _M3 = $_.term; //#20227 - var _M4 = $_.dmod; //#20227 - var _M5 = $_.msgbits; //#20227 - var _M6 = $_.term; //#20227 - var _M7 = _M6.length; //#20227 - var _M8 = $f(_M4 - _M5.length); //#20227 - if ($f(_M4 - _M5.length) > _M6.length) { //#20227 - var _ = _M7; //#20227 - _M7 = _M8; //#20227 - _M8 = _; //#20227 - } //#20227 - $_.term = $geti(_M3, 0, _M8); //#20227 - var _MC = $s($_.msgbits.length + $_.term.length); //#20228 - $puti(_MC, 0, $_.msgbits); //#20229 - $puti(_MC, $_.msgbits.length, $_.term); //#20230 - $_.msgbits = _MC; //#20231 - $_.pad = $s($_.dmod); //#20234 - for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20235 - $put($_.pad, _MK, 48); //#20235 - } //#20235 - $puti($_.pad, 0, $_.msgbits); //#20236 - $_.padnum = 0; //#20237 - var _MR = $_.lc4b ? 5 : 1; //#20238 - for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20241 - $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20239 - $_.padnum = ($_.padnum + 1) % 2; //#20240 - } //#20240 - $_.cws = $a($_.dcws); //#20244 - for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20256 - $_.c = _Md; //#20246 - $_.bpcw = 8; //#20247 - if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20248 - $_.bpcw = 4; //#20248 - } //#20248 - $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20249 - $_.cw = 0; //#20250 - for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20254 - $_.i = _Mn; //#20252 - $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20253 - } //#20253 - $put($_.cws, $_.c, $_.cw); //#20255 - } //#20255 - if ($_.lc4b) { //#20259 - var _My = $_.cws; //#20259 - var _Mz = $_.cws; //#20259 - $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20259 - } //#20259 - var _N2 = $get($_.options, 'debugcws') !== undefined; //#20261 - if (_N2) { //#20261 - $k[$j++] = 'bwipp.debugcws#20261'; //#20261 - $k[$j++] = $_.cws; //#20261 - bwipp_raiseerror(); //#20261 - } //#20261 - if (!bwipp_qrcode.__20268__) { //#20268 - $_ = Object.create($_); //#20268 - $k[$j++] = Infinity; //#20265 - $k[$j++] = 1; //#20265 - for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20265 - var _N6 = $k[--$j]; //#20265 - var _N7 = _N6 * 2; //#20265 - $k[$j++] = _N6; //#20265 - $k[$j++] = _N7; //#20265 - if (_N7 >= 256) { //#20265 - var _N8 = $k[--$j]; //#20265 - $k[$j++] = _N8 ^ 285; //#20265 - } //#20265 - } //#20265 - $_.rsalog = $a(); //#20265 - $_.rslog = $a(256); //#20266 - for (var _NB = 1; _NB <= 255; _NB += 1) { //#20267 - $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20267 - } //#20267 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20267 - bwipp_qrcode.__20268__ = 1; //#20267 - $_ = Object.getPrototypeOf($_); //#20267 - } //#20267 + } //#20364 + $_.addtobits(); //#20364 + } //#20364 + if ($_.abort) { //#20366 + break; //#20366 + } //#20366 + $_.bits = $geti($_.bits, 0, $_.j); //#20367 + $put($_.msgbits, $_.ver, $_.bits); //#20368 + break; //#20369 + } //#20369 + } //#20369 + if (!bwipp_qrcode.__20455__) { //#20455 + $_ = Object.create($_); //#20455 + $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20454 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20454 + bwipp_qrcode.__20455__ = 1; //#20454 + $_ = Object.getPrototypeOf($_); //#20454 + } //#20454 + $k[$j++] = 'eclval'; //#20457 + $search("LMQH", $_.eclevel); //#20457 + $j--; //#20457 + var _Kj = $k[--$j]; //#20457 + var _Kk = $k[--$j]; //#20457 + $k[$j++] = _Kj.length; //#20457 + $k[$j++] = _Kk; //#20457 + $j--; //#20457 + var _Kl = $k[--$j]; //#20457 + var _Km = $k[--$j]; //#20457 + $k[$j++] = _Kl; //#20457 + $k[$j++] = _Km; //#20457 + $j--; //#20457 + var _Kn = $k[--$j]; //#20457 + $_[$k[--$j]] = _Kn; //#20457 + for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20496 + $_.i = _Kr; //#20459 + $_.m = $get($_.metrics, $_.i); //#20460 + $_.frmt = $get($_.m, 0); //#20461 + $_.vers = $get($_.m, 1); //#20462 + $_.vergrp = $get($_.m, 2); //#20463 + $_.verind = $_.i - 44; //#20464 + $_.rows = $get($_.m, 3); //#20465 + $_.cols = $get($_.m, 4); //#20466 + $_.asp2 = $get($_.m, 5); //#20467 + $_.asp3 = $get($_.m, 6); //#20468 + $_.nmod = $get($_.m, 7); //#20469 + $_.ncws = ~~($_.nmod / 8); //#20470 + $_.rbit = $_.nmod % 8; //#20471 + $_.lc4b = false; //#20472 + if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20477 + $_.ncws = $_.ncws + 1; //#20474 + $_.rbit = 0; //#20475 + $_.lc4b = true; //#20476 + } //#20476 + $_.ecws = $get($get($_.m, 8), $_.eclval); //#20478 + $_.dcws = $f($_.ncws - $_.ecws); //#20479 + var _LP = $_.lc4b ? 4 : 0; //#20480 + $_.dmod = $f(($_.dcws * 8) - _LP); //#20480 + $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20481 + $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20482 + $_.okay = true; //#20483 + if ($ne($_.format, $_.frmt)) { //#20484 + $_.okay = false; //#20484 + } //#20484 + if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20485 + $_.okay = false; //#20485 + } //#20485 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20486 + $_.okay = false; //#20486 + } //#20486 + if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20487 + $_.okay = false; //#20487 + } //#20487 + $_.verbits = $get($_.msgbits, $_.vergrp); //#20488 + if ($_.verbits == -1) { //#20492 + $_.okay = false; //#20490 + } else { //#20492 + if ($_.verbits.length > $_.dmod) { //#20492 + $_.okay = false; //#20492 + } //#20492 + } //#20492 + $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20494 + if ($_.okay) { //#20495 + break; //#20495 + } //#20495 + } //#20495 + if (!$_.okay) { //#20500 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20499'; //#20499 + $k[$j++] = "Maximum length exceeded or invalid content"; //#20499 + bwipp_raiseerror(); //#20499 + } //#20499 + $_.format = $_.frmt; //#20502 + $_.version = $_.vers; //#20503 + $_.msgbits = $_.verbits; //#20504 + $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20505 + $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20506 + var _M3 = $_.term; //#20509 + var _M4 = $_.dmod; //#20509 + var _M5 = $_.msgbits; //#20509 + var _M6 = $_.term; //#20509 + var _M7 = _M6.length; //#20509 + var _M8 = $f(_M4 - _M5.length); //#20509 + if ($f(_M4 - _M5.length) > _M6.length) { //#20509 + var _ = _M7; //#20509 + _M7 = _M8; //#20509 + _M8 = _; //#20509 + } //#20509 + $_.term = $geti(_M3, 0, _M8); //#20509 + var _MC = $s($_.msgbits.length + $_.term.length); //#20510 + $puti(_MC, 0, $_.msgbits); //#20511 + $puti(_MC, $_.msgbits.length, $_.term); //#20512 + $_.msgbits = _MC; //#20513 + $_.pad = $s($_.dmod); //#20516 + for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20517 + $put($_.pad, _MK, 48); //#20517 + } //#20517 + $puti($_.pad, 0, $_.msgbits); //#20518 + $_.padnum = 0; //#20519 + var _MR = $_.lc4b ? 5 : 1; //#20520 + for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20523 + $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20521 + $_.padnum = ($_.padnum + 1) % 2; //#20522 + } //#20522 + $_.cws = $a($_.dcws); //#20526 + for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20538 + $_.c = _Md; //#20528 + $_.bpcw = 8; //#20529 + if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20530 + $_.bpcw = 4; //#20530 + } //#20530 + $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20531 + $_.cw = 0; //#20532 + for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20536 + $_.i = _Mn; //#20534 + $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20535 + } //#20535 + $put($_.cws, $_.c, $_.cw); //#20537 + } //#20537 + if ($_.lc4b) { //#20541 + var _My = $_.cws; //#20541 + var _Mz = $_.cws; //#20541 + $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20541 + } //#20541 + var _N2 = $get($_.options, 'debugcws') !== undefined; //#20543 + if (_N2) { //#20543 + $k[$j++] = 'bwipp.debugcws#20543'; //#20543 + $k[$j++] = $_.cws; //#20543 + bwipp_raiseerror(); //#20543 + } //#20543 + if (!bwipp_qrcode.__20550__) { //#20550 + $_ = Object.create($_); //#20550 + $k[$j++] = Infinity; //#20547 + $k[$j++] = 1; //#20547 + for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20547 + var _N6 = $k[--$j]; //#20547 + var _N7 = _N6 * 2; //#20547 + $k[$j++] = _N6; //#20547 + $k[$j++] = _N7; //#20547 + if (_N7 >= 256) { //#20547 + var _N8 = $k[--$j]; //#20547 + $k[$j++] = _N8 ^ 285; //#20547 + } //#20547 + } //#20547 + $_.rsalog = $a(); //#20547 + $_.rslog = $a(256); //#20548 + for (var _NB = 1; _NB <= 255; _NB += 1) { //#20549 + $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20549 + } //#20549 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20549 + bwipp_qrcode.__20550__ = 1; //#20549 + $_ = Object.getPrototypeOf($_); //#20549 + } //#20549 $_.rsprod = function() { - var _NG = $k[--$j]; //#20272 - var _NH = $k[--$j]; //#20272 - $k[$j++] = _NH; //#20276 - $k[$j++] = _NG; //#20276 - if ((_NG != 0) && (_NH != 0)) { //#20275 - var _NK = $get($_.rslog, $k[--$j]); //#20273 - var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20273 - $k[$j++] = _NP; //#20273 - } else { //#20275 - $j -= 2; //#20275 - $k[$j++] = 0; //#20275 - } //#20275 - }; //#20275 - $k[$j++] = Infinity; //#20280 - $k[$j++] = 1; //#20280 - for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20280 - $k[$j++] = 0; //#20280 - } //#20280 - $_.coeffs = $a(); //#20280 - for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20289 - $_.i = _NW; //#20282 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20283 - for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20287 - $_.j = _Nd; //#20285 - $k[$j++] = $_.coeffs; //#20286 - $k[$j++] = $_.j; //#20286 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#20286 - $k[$j++] = $get($_.coeffs, $_.j); //#20286 - $k[$j++] = $get($_.rsalog, $_.i); //#20286 - $_.rsprod(); //#20286 - var _Np = $k[--$j]; //#20286 - var _Nq = $k[--$j]; //#20286 - var _Nr = $k[--$j]; //#20286 - $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20286 - } //#20286 - $k[$j++] = $_.coeffs; //#20288 - $k[$j++] = 0; //#20288 - $k[$j++] = $get($_.coeffs, 0); //#20288 - $k[$j++] = $get($_.rsalog, $_.i); //#20288 - $_.rsprod(); //#20288 - var _Nz = $k[--$j]; //#20288 - var _O0 = $k[--$j]; //#20288 - $put($k[--$j], _O0, _Nz); //#20288 - } //#20288 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20290 + var _NG = $k[--$j]; //#20554 + var _NH = $k[--$j]; //#20554 + $k[$j++] = _NH; //#20558 + $k[$j++] = _NG; //#20558 + if ((_NG != 0) && (_NH != 0)) { //#20557 + var _NK = $get($_.rslog, $k[--$j]); //#20555 + var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20555 + $k[$j++] = _NP; //#20555 + } else { //#20557 + $j -= 2; //#20557 + $k[$j++] = 0; //#20557 + } //#20557 + }; //#20557 + $k[$j++] = Infinity; //#20562 + $k[$j++] = 1; //#20562 + for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20562 + $k[$j++] = 0; //#20562 + } //#20562 + $_.coeffs = $a(); //#20562 + for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20571 + $_.i = _NW; //#20564 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20565 + for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20569 + $_.j = _Nd; //#20567 + $k[$j++] = $_.coeffs; //#20568 + $k[$j++] = $_.j; //#20568 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#20568 + $k[$j++] = $get($_.coeffs, $_.j); //#20568 + $k[$j++] = $get($_.rsalog, $_.i); //#20568 + $_.rsprod(); //#20568 + var _Np = $k[--$j]; //#20568 + var _Nq = $k[--$j]; //#20568 + var _Nr = $k[--$j]; //#20568 + $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20568 + } //#20568 + $k[$j++] = $_.coeffs; //#20570 + $k[$j++] = 0; //#20570 + $k[$j++] = $get($_.coeffs, 0); //#20570 + $k[$j++] = $get($_.rsalog, $_.i); //#20570 + $_.rsprod(); //#20570 + var _Nz = $k[--$j]; //#20570 + var _O0 = $k[--$j]; //#20570 + $put($k[--$j], _O0, _Nz); //#20570 + } //#20570 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20572 $_.rscodes = function() { - $_.rscws = $k[--$j]; //#20294 - $_.rsnd = $_.rscws.length; //#20295 - $k[$j++] = Infinity; //#20296 - $forall($_.rscws); //#20296 - for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20296 - $k[$j++] = 0; //#20296 - } //#20296 - $_.rscws = $a(); //#20296 - for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20304 - $_.m = _OE; //#20298 - $_.k = $get($_.rscws, $_.m); //#20299 - for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20303 - $_.j = _OK; //#20301 - $k[$j++] = $_.rscws; //#20302 - $k[$j++] = ($_.m + $_.j) + 1; //#20302 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20302 - $k[$j++] = $_.k; //#20302 - $_.rsprod(); //#20302 - var _OX = $k[--$j]; //#20302 - var _OY = $k[--$j]; //#20302 - $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20302 - } //#20302 - } //#20302 - $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20305 - }; //#20305 - $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20309 - $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20310 - for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20315 - $_.i = _Om; //#20312 - $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20313 - $k[$j++] = $_.ecwsb; //#20314 - $k[$j++] = $_.i; //#20314 - $k[$j++] = $get($_.dcwsb, $_.i); //#20314 - $_.rscodes(); //#20314 - var _Oz = $k[--$j]; //#20314 - var _P0 = $k[--$j]; //#20314 - $put($k[--$j], _P0, _Oz); //#20314 - } //#20314 - for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20320 - $_.i = _P4; //#20317 - $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20318 - $k[$j++] = $_.ecwsb; //#20319 - $k[$j++] = $f($_.ecb1 + $_.i); //#20319 - $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20319 - $_.rscodes(); //#20319 - var _PM = $k[--$j]; //#20319 - var _PN = $k[--$j]; //#20319 - $put($k[--$j], _PN, _PM); //#20319 - } //#20319 - $_.cws = $a($_.ncws); //#20323 - $_.cw = 0; //#20324 - for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20334 - $_.i = _PT; //#20326 - for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20333 - $_.j = _PX; //#20328 - if ($_.i < $get($_.dcwsb, $_.j).length) { //#20332 - $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20330 - $_.cw = $_.cw + 1; //#20331 - } //#20331 - } //#20331 - } //#20331 - for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20342 - $_.i = _Pm; //#20336 - for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20341 - $_.j = _Pq; //#20338 - $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20339 - $_.cw = $_.cw + 1; //#20340 - } //#20340 - } //#20340 - if ($_.rbit > 0) { //#20350 - $_.pad = $a($_.cws.length + 1); //#20346 - $puti($_.pad, 0, $_.cws); //#20347 - $put($_.pad, $_.pad.length - 1, 0); //#20348 - $_.cws = $_.pad; //#20349 - } //#20349 - if ($_.lc4b) { //#20361 - var _Q8 = $_.cws; //#20354 - var _Q9 = $_.dcws; //#20354 - $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20354 - for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20359 - $_.i = _QE; //#20356 - $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20357 - $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20358 - } //#20358 - $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20360 - } //#20360 - var _QY = $get($_.options, 'debugecc') !== undefined; //#20363 - if (_QY) { //#20363 - $k[$j++] = 'bwipp.debugecc#20363'; //#20363 - $k[$j++] = $_.cws; //#20363 - bwipp_raiseerror(); //#20363 - } //#20363 - $k[$j++] = Infinity; //#20366 - for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20366 - $k[$j++] = -1; //#20366 - } //#20366 - $_.pixs = $a(); //#20366 + $_.rscws = $k[--$j]; //#20576 + $_.rsnd = $_.rscws.length; //#20577 + $k[$j++] = Infinity; //#20578 + $forall($_.rscws); //#20578 + for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20578 + $k[$j++] = 0; //#20578 + } //#20578 + $_.rscws = $a(); //#20578 + for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20586 + $_.m = _OE; //#20580 + $_.k = $get($_.rscws, $_.m); //#20581 + for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20585 + $_.j = _OK; //#20583 + $k[$j++] = $_.rscws; //#20584 + $k[$j++] = ($_.m + $_.j) + 1; //#20584 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20584 + $k[$j++] = $_.k; //#20584 + $_.rsprod(); //#20584 + var _OX = $k[--$j]; //#20584 + var _OY = $k[--$j]; //#20584 + $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20584 + } //#20584 + } //#20584 + $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20587 + }; //#20587 + $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20591 + $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20592 + for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20597 + $_.i = _Om; //#20594 + $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20595 + $k[$j++] = $_.ecwsb; //#20596 + $k[$j++] = $_.i; //#20596 + $k[$j++] = $get($_.dcwsb, $_.i); //#20596 + $_.rscodes(); //#20596 + var _Oz = $k[--$j]; //#20596 + var _P0 = $k[--$j]; //#20596 + $put($k[--$j], _P0, _Oz); //#20596 + } //#20596 + for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20602 + $_.i = _P4; //#20599 + $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20600 + $k[$j++] = $_.ecwsb; //#20601 + $k[$j++] = $f($_.ecb1 + $_.i); //#20601 + $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20601 + $_.rscodes(); //#20601 + var _PM = $k[--$j]; //#20601 + var _PN = $k[--$j]; //#20601 + $put($k[--$j], _PN, _PM); //#20601 + } //#20601 + $_.cws = $a($_.ncws); //#20605 + $_.cw = 0; //#20606 + for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20616 + $_.i = _PT; //#20608 + for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20615 + $_.j = _PX; //#20610 + if ($_.i < $get($_.dcwsb, $_.j).length) { //#20614 + $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20612 + $_.cw = $_.cw + 1; //#20613 + } //#20613 + } //#20613 + } //#20613 + for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20624 + $_.i = _Pm; //#20618 + for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20623 + $_.j = _Pq; //#20620 + $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20621 + $_.cw = $_.cw + 1; //#20622 + } //#20622 + } //#20622 + if ($_.rbit > 0) { //#20632 + $_.pad = $a($_.cws.length + 1); //#20628 + $puti($_.pad, 0, $_.cws); //#20629 + $put($_.pad, $_.pad.length - 1, 0); //#20630 + $_.cws = $_.pad; //#20631 + } //#20631 + if ($_.lc4b) { //#20643 + var _Q8 = $_.cws; //#20636 + var _Q9 = $_.dcws; //#20636 + $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20636 + for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20641 + $_.i = _QE; //#20638 + $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20639 + $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20640 + } //#20640 + $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20642 + } //#20642 + var _QY = $get($_.options, 'debugecc') !== undefined; //#20645 + if (_QY) { //#20645 + $k[$j++] = 'bwipp.debugecc#20645'; //#20645 + $k[$j++] = $_.cws; //#20645 + bwipp_raiseerror(); //#20645 + } //#20645 + $k[$j++] = Infinity; //#20648 + for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20648 + $k[$j++] = -1; //#20648 + } //#20648 + $_.pixs = $a(); //#20648 $_.qmv = function() { - var _Qg = $k[--$j]; //#20367 - var _Qh = $k[--$j]; //#20367 - $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20367 - }; //#20367 - if ($eq($_.format, "full")) { //#20376 - for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20375 - $_.i = _Ql; //#20372 - $k[$j++] = $_.pixs; //#20373 - $k[$j++] = $_.i; //#20373 - $k[$j++] = 6; //#20373 - $_.qmv(); //#20373 - var _Qp = $k[--$j]; //#20373 - $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20373 - $k[$j++] = $_.pixs; //#20374 - $k[$j++] = 6; //#20374 - $k[$j++] = $_.i; //#20374 - $_.qmv(); //#20374 - var _Qu = $k[--$j]; //#20374 - $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20374 - } //#20374 - } //#20374 - if ($eq($_.format, "micro")) { //#20383 - for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20382 - $_.i = _Qz; //#20379 - $k[$j++] = $_.pixs; //#20380 - $k[$j++] = $_.i; //#20380 - $k[$j++] = 0; //#20380 - $_.qmv(); //#20380 - var _R3 = $k[--$j]; //#20380 - $put($k[--$j], _R3, ($_.i + 1) % 2); //#20380 - $k[$j++] = $_.pixs; //#20381 - $k[$j++] = 0; //#20381 - $k[$j++] = $_.i; //#20381 - $_.qmv(); //#20381 - var _R8 = $k[--$j]; //#20381 - $put($k[--$j], _R8, ($_.i + 1) % 2); //#20381 - } //#20381 - } //#20381 - if ($eq($_.format, "rmqr")) { //#20402 - for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20389 - $_.i = _RD; //#20386 - $k[$j++] = $_.pixs; //#20387 - $k[$j++] = $_.i; //#20387 - $k[$j++] = 0; //#20387 - $_.qmv(); //#20387 - var _RH = $k[--$j]; //#20387 - $put($k[--$j], _RH, ($_.i + 1) % 2); //#20387 - $k[$j++] = $_.pixs; //#20388 - $k[$j++] = $_.i; //#20388 - $k[$j++] = $f($_.rows - 1); //#20388 - $_.qmv(); //#20388 - var _RN = $k[--$j]; //#20388 - $put($k[--$j], _RN, ($_.i + 1) % 2); //#20388 - } //#20388 - for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20394 - $_.i = _RR; //#20391 - $k[$j++] = $_.pixs; //#20392 - $k[$j++] = 0; //#20392 - $k[$j++] = $_.i; //#20392 - $_.qmv(); //#20392 - var _RV = $k[--$j]; //#20392 - $put($k[--$j], _RV, ($_.i + 1) % 2); //#20392 - $k[$j++] = $_.pixs; //#20393 - $k[$j++] = $f($_.cols - 1); //#20393 - $k[$j++] = $_.i; //#20393 - $_.qmv(); //#20393 - var _Rb = $k[--$j]; //#20393 - $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20393 - } //#20393 - for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20401 - $_.i = _Ri; //#20396 - for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20400 - $_.j = _Rm; //#20398 - $k[$j++] = $_.pixs; //#20399 - $k[$j++] = $_.i; //#20399 - $k[$j++] = $_.j; //#20399 - $_.qmv(); //#20399 - var _Rr = $k[--$j]; //#20399 - $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20399 - } //#20399 - } //#20399 - } //#20399 - if (!bwipp_qrcode.__20452__) { //#20452 - $_ = Object.create($_); //#20452 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20415 - $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20425 - $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20435 - $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20445 + var _Qg = $k[--$j]; //#20649 + var _Qh = $k[--$j]; //#20649 + $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20649 + }; //#20649 + if ($eq($_.format, "full")) { //#20658 + for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20657 + $_.i = _Ql; //#20654 + $k[$j++] = $_.pixs; //#20655 + $k[$j++] = $_.i; //#20655 + $k[$j++] = 6; //#20655 + $_.qmv(); //#20655 + var _Qp = $k[--$j]; //#20655 + $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20655 + $k[$j++] = $_.pixs; //#20656 + $k[$j++] = 6; //#20656 + $k[$j++] = $_.i; //#20656 + $_.qmv(); //#20656 + var _Qu = $k[--$j]; //#20656 + $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20656 + } //#20656 + } //#20656 + if ($eq($_.format, "micro")) { //#20665 + for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20664 + $_.i = _Qz; //#20661 + $k[$j++] = $_.pixs; //#20662 + $k[$j++] = $_.i; //#20662 + $k[$j++] = 0; //#20662 + $_.qmv(); //#20662 + var _R3 = $k[--$j]; //#20662 + $put($k[--$j], _R3, ($_.i + 1) % 2); //#20662 + $k[$j++] = $_.pixs; //#20663 + $k[$j++] = 0; //#20663 + $k[$j++] = $_.i; //#20663 + $_.qmv(); //#20663 + var _R8 = $k[--$j]; //#20663 + $put($k[--$j], _R8, ($_.i + 1) % 2); //#20663 + } //#20663 + } //#20663 + if ($eq($_.format, "rmqr")) { //#20684 + for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20671 + $_.i = _RD; //#20668 + $k[$j++] = $_.pixs; //#20669 + $k[$j++] = $_.i; //#20669 + $k[$j++] = 0; //#20669 + $_.qmv(); //#20669 + var _RH = $k[--$j]; //#20669 + $put($k[--$j], _RH, ($_.i + 1) % 2); //#20669 + $k[$j++] = $_.pixs; //#20670 + $k[$j++] = $_.i; //#20670 + $k[$j++] = $f($_.rows - 1); //#20670 + $_.qmv(); //#20670 + var _RN = $k[--$j]; //#20670 + $put($k[--$j], _RN, ($_.i + 1) % 2); //#20670 + } //#20670 + for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20676 + $_.i = _RR; //#20673 + $k[$j++] = $_.pixs; //#20674 + $k[$j++] = 0; //#20674 + $k[$j++] = $_.i; //#20674 + $_.qmv(); //#20674 + var _RV = $k[--$j]; //#20674 + $put($k[--$j], _RV, ($_.i + 1) % 2); //#20674 + $k[$j++] = $_.pixs; //#20675 + $k[$j++] = $f($_.cols - 1); //#20675 + $k[$j++] = $_.i; //#20675 + $_.qmv(); //#20675 + var _Rb = $k[--$j]; //#20675 + $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20675 + } //#20675 + for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20683 + $_.i = _Ri; //#20678 + for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20682 + $_.j = _Rm; //#20680 + $k[$j++] = $_.pixs; //#20681 + $k[$j++] = $_.i; //#20681 + $k[$j++] = $_.j; //#20681 + $_.qmv(); //#20681 + var _Rr = $k[--$j]; //#20681 + $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20681 + } //#20681 + } //#20681 + } //#20681 + if (!bwipp_qrcode.__20734__) { //#20734 + $_ = Object.create($_); //#20734 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20697 + $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20707 + $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20717 + $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20727 var _Si = new Map([ ["full", $a([$_.fpat, $_.fpat, $_.fpat, $_.fnullpat])], ["micro", $a([$_.fpat, $_.fnullpat, $_.fnullpat, $_.fnullpat])], ["rmqr", $a([$_.fpat, $_.fcorpat, $_.fcorpat, $_.fsubpat])] - ]); //#20450 - $_.fpatmap = _Si; //#20451 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20451 - bwipp_qrcode.__20452__ = 1; //#20451 - $_ = Object.getPrototypeOf($_); //#20451 - } //#20451 - $_.fpats = $get($_.fpatmap, $_.format); //#20453 - for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20467 - $_.y = _Sn; //#20455 - for (var _So = 0; _So <= 7; _So += 1) { //#20466 - $_.x = _So; //#20457 - $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20458 - $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20459 - $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20460 - $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20461 - if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20462 - $k[$j++] = $_.pixs; //#20462 - $k[$j++] = $_.x; //#20462 - $k[$j++] = $_.y; //#20462 - $_.qmv(); //#20462 - var _TK = $k[--$j]; //#20462 - $put($k[--$j], _TK, $_.fpb0); //#20462 - } //#20462 - if ($_.fpb1 != 9) { //#20463 - $k[$j++] = $_.pixs; //#20463 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20463 - $k[$j++] = $_.y; //#20463 - $_.qmv(); //#20463 - var _TS = $k[--$j]; //#20463 - $put($k[--$j], _TS, $_.fpb1); //#20463 - } //#20463 - if ($_.fpb2 != 9) { //#20464 - $k[$j++] = $_.pixs; //#20464 - $k[$j++] = $_.x; //#20464 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20464 - $_.qmv(); //#20464 - var _Ta = $k[--$j]; //#20464 - $put($k[--$j], _Ta, $_.fpb2); //#20464 - } //#20464 - if ($_.fpb3 != 9) { //#20465 - $k[$j++] = $_.pixs; //#20465 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20465 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20465 - $_.qmv(); //#20465 - var _Tj = $k[--$j]; //#20465 - $put($k[--$j], _Tj, $_.fpb3); //#20465 - } //#20465 - } //#20465 - } //#20465 - if (!bwipp_qrcode.__20485__) { //#20485 - $_ = Object.create($_); //#20485 - $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20477 - $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20484 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20484 - bwipp_qrcode.__20485__ = 1; //#20484 - $_ = Object.getPrototypeOf($_); //#20484 - } //#20484 + ]); //#20732 + $_.fpatmap = _Si; //#20733 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20733 + bwipp_qrcode.__20734__ = 1; //#20733 + $_ = Object.getPrototypeOf($_); //#20733 + } //#20733 + $_.fpats = $get($_.fpatmap, $_.format); //#20735 + for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20749 + $_.y = _Sn; //#20737 + for (var _So = 0; _So <= 7; _So += 1) { //#20748 + $_.x = _So; //#20739 + $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20740 + $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20741 + $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20742 + $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20743 + if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20744 + $k[$j++] = $_.pixs; //#20744 + $k[$j++] = $_.x; //#20744 + $k[$j++] = $_.y; //#20744 + $_.qmv(); //#20744 + var _TK = $k[--$j]; //#20744 + $put($k[--$j], _TK, $_.fpb0); //#20744 + } //#20744 + if ($_.fpb1 != 9) { //#20745 + $k[$j++] = $_.pixs; //#20745 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20745 + $k[$j++] = $_.y; //#20745 + $_.qmv(); //#20745 + var _TS = $k[--$j]; //#20745 + $put($k[--$j], _TS, $_.fpb1); //#20745 + } //#20745 + if ($_.fpb2 != 9) { //#20746 + $k[$j++] = $_.pixs; //#20746 + $k[$j++] = $_.x; //#20746 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20746 + $_.qmv(); //#20746 + var _Ta = $k[--$j]; //#20746 + $put($k[--$j], _Ta, $_.fpb2); //#20746 + } //#20746 + if ($_.fpb3 != 9) { //#20747 + $k[$j++] = $_.pixs; //#20747 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20747 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20747 + $_.qmv(); //#20747 + var _Tj = $k[--$j]; //#20747 + $put($k[--$j], _Tj, $_.fpb3); //#20747 + } //#20747 + } //#20747 + } //#20747 + if (!bwipp_qrcode.__20767__) { //#20767 + $_ = Object.create($_); //#20767 + $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20759 + $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20766 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20766 + bwipp_qrcode.__20767__ = 1; //#20766 + $_ = Object.getPrototypeOf($_); //#20766 + } //#20766 $_.putalgnpat = function() { - $_.py = $k[--$j]; //#20488 - $_.px = $k[--$j]; //#20489 - for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20499 - $_.pb = _U0; //#20491 - for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20498 - $_.pa = _U1; //#20493 - $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20494 - if ($_.algnb != 9) { //#20497 - $k[$j++] = $_.pixs; //#20496 - $k[$j++] = $f($_.px + $_.pa); //#20496 - $k[$j++] = $f($_.py + $_.pb); //#20496 - $_.qmv(); //#20496 - var _UE = $k[--$j]; //#20496 - $put($k[--$j], _UE, $_.algnb); //#20496 - } //#20496 - } //#20496 - } //#20496 - }; //#20496 - if ($eq($_.format, "full")) { //#20515 - $_.algnpat = $_.algnpatfull; //#20502 - for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20507 - $_.i = _UN; //#20504 - $k[$j++] = $_.i; //#20505 - $k[$j++] = 4; //#20505 - $_.putalgnpat(); //#20505 - $k[$j++] = 4; //#20506 - $k[$j++] = $_.i; //#20506 - $_.putalgnpat(); //#20506 - } //#20506 - for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20514 - $_.x = _UW; //#20509 - for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20513 - $_.y = _Ud; //#20511 - $k[$j++] = $_.x; //#20512 - $k[$j++] = $_.y; //#20512 - $_.putalgnpat(); //#20512 - } //#20512 - } //#20512 - } //#20512 - if ($eq($_.format, "rmqr")) { //#20523 - $_.algnpat = $_.algnpatrmqr; //#20517 - for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20522 - $_.i = _Uo; //#20519 - $k[$j++] = $_.i; //#20520 - $k[$j++] = 0; //#20520 - $_.putalgnpat(); //#20520 - $k[$j++] = $_.i; //#20521 - $k[$j++] = $f($_.rows - 3); //#20521 - $_.putalgnpat(); //#20521 - } //#20521 - } //#20521 - if (!bwipp_qrcode.__20532__) { //#20532 - $_ = Object.create($_); //#20532 - $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20531 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20531 - bwipp_qrcode.__20532__ = 1; //#20531 - $_ = Object.getPrototypeOf($_); //#20531 - } //#20531 + $_.py = $k[--$j]; //#20770 + $_.px = $k[--$j]; //#20771 + for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20781 + $_.pb = _U0; //#20773 + for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20780 + $_.pa = _U1; //#20775 + $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20776 + if ($_.algnb != 9) { //#20779 + $k[$j++] = $_.pixs; //#20778 + $k[$j++] = $f($_.px + $_.pa); //#20778 + $k[$j++] = $f($_.py + $_.pb); //#20778 + $_.qmv(); //#20778 + var _UE = $k[--$j]; //#20778 + $put($k[--$j], _UE, $_.algnb); //#20778 + } //#20778 + } //#20778 + } //#20778 + }; //#20778 + if ($eq($_.format, "full")) { //#20797 + $_.algnpat = $_.algnpatfull; //#20784 + for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20789 + $_.i = _UN; //#20786 + $k[$j++] = $_.i; //#20787 + $k[$j++] = 4; //#20787 + $_.putalgnpat(); //#20787 + $k[$j++] = 4; //#20788 + $k[$j++] = $_.i; //#20788 + $_.putalgnpat(); //#20788 + } //#20788 + for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20796 + $_.x = _UW; //#20791 + for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20795 + $_.y = _Ud; //#20793 + $k[$j++] = $_.x; //#20794 + $k[$j++] = $_.y; //#20794 + $_.putalgnpat(); //#20794 + } //#20794 + } //#20794 + } //#20794 + if ($eq($_.format, "rmqr")) { //#20805 + $_.algnpat = $_.algnpatrmqr; //#20799 + for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20804 + $_.i = _Uo; //#20801 + $k[$j++] = $_.i; //#20802 + $k[$j++] = 0; //#20802 + $_.putalgnpat(); //#20802 + $k[$j++] = $_.i; //#20803 + $k[$j++] = $f($_.rows - 3); //#20803 + $_.putalgnpat(); //#20803 + } //#20803 + } //#20803 + if (!bwipp_qrcode.__20814__) { //#20814 + $_ = Object.create($_); //#20814 + $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20813 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 + bwipp_qrcode.__20814__ = 1; //#20813 + $_ = Object.getPrototypeOf($_); //#20813 + } //#20813 var _Xs = new Map([ ["full", $a([$a([$a([0, 8]), $a([8, $f($_.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($_.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($_.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($_.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($_.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($_.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($_.cols - 7)])]), $a([$a([8, 8]), $a([$f($_.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($_.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($_.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($_.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($_.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($_.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($_.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($_.cols - 1), 8])])])], ["micro", $_.formatmapmicro], ["rmqr", $a([$a([$a([11, 3]), $a([$f($_.cols - 3), $f($_.rows - 6)])]), $a([$a([11, 2]), $a([$f($_.cols - 4), $f($_.rows - 6)])]), $a([$a([11, 1]), $a([$f($_.cols - 5), $f($_.rows - 6)])]), $a([$a([10, 5]), $a([$f($_.cols - 6), $f($_.rows - 2)])]), $a([$a([10, 4]), $a([$f($_.cols - 6), $f($_.rows - 3)])]), $a([$a([10, 3]), $a([$f($_.cols - 6), $f($_.rows - 4)])]), $a([$a([10, 2]), $a([$f($_.cols - 6), $f($_.rows - 5)])]), $a([$a([10, 1]), $a([$f($_.cols - 6), $f($_.rows - 6)])]), $a([$a([9, 5]), $a([$f($_.cols - 7), $f($_.rows - 2)])]), $a([$a([9, 4]), $a([$f($_.cols - 7), $f($_.rows - 3)])]), $a([$a([9, 3]), $a([$f($_.cols - 7), $f($_.rows - 4)])]), $a([$a([9, 2]), $a([$f($_.cols - 7), $f($_.rows - 5)])]), $a([$a([9, 1]), $a([$f($_.cols - 7), $f($_.rows - 6)])]), $a([$a([8, 5]), $a([$f($_.cols - 8), $f($_.rows - 2)])]), $a([$a([8, 4]), $a([$f($_.cols - 8), $f($_.rows - 3)])]), $a([$a([8, 3]), $a([$f($_.cols - 8), $f($_.rows - 4)])]), $a([$a([8, 2]), $a([$f($_.cols - 8), $f($_.rows - 5)])]), $a([$a([8, 1]), $a([$f($_.cols - 8), $f($_.rows - 6)])])])] - ]); //#20548 - $_.formatmap = $get(_Xs, $_.format); //#20550 - $forall($_.formatmap, function() { //#20553 - $forall($k[--$j], function() { //#20552 - $forall($k[--$j]); //#20552 - $_.qmv(); //#20552 - $put($_.pixs, $k[--$j], 1); //#20552 - }); //#20552 - }); //#20552 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20569 - $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20567 - } else { //#20569 - $_.versionmap = $a([]); //#20569 - } //#20569 - var _ZW = $_.versionmap; //#20571 - for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20573 - $forall($get(_ZW, _ZX), function() { //#20572 - $forall($k[--$j]); //#20572 - $_.qmv(); //#20572 - $put($_.pixs, $k[--$j], 0); //#20572 - }); //#20572 - } //#20572 - if ($eq($_.format, "full")) { //#20578 - $k[$j++] = $_.pixs; //#20577 - $k[$j++] = 8; //#20577 - $k[$j++] = $f($_.rows - 8); //#20577 - $_.qmv(); //#20577 - var _Zg = $k[--$j]; //#20577 - $put($k[--$j], _Zg, 0); //#20577 - } //#20577 + ]); //#20830 + $_.formatmap = $get(_Xs, $_.format); //#20832 + $forall($_.formatmap, function() { //#20835 + $forall($k[--$j], function() { //#20834 + $forall($k[--$j]); //#20834 + $_.qmv(); //#20834 + $put($_.pixs, $k[--$j], 1); //#20834 + }); //#20834 + }); //#20834 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20851 + $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20849 + } else { //#20851 + $_.versionmap = $a([]); //#20851 + } //#20851 + var _ZW = $_.versionmap; //#20853 + for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20855 + $forall($get(_ZW, _ZX), function() { //#20854 + $forall($k[--$j]); //#20854 + $_.qmv(); //#20854 + $put($_.pixs, $k[--$j], 0); //#20854 + }); //#20854 + } //#20854 + if ($eq($_.format, "full")) { //#20860 + $k[$j++] = $_.pixs; //#20859 + $k[$j++] = 8; //#20859 + $k[$j++] = $f($_.rows - 8); //#20859 + $_.qmv(); //#20859 + var _Zg = $k[--$j]; //#20859 + $put($k[--$j], _Zg, 0); //#20859 + } //#20859 var _a0 = $a([function() { - var _Zi = $k[--$j]; //#20583 - var _Zj = $k[--$j]; //#20583 - $k[$j++] = $f(_Zj + _Zi) % 2; //#20583 + var _Zi = $k[--$j]; //#20865 + var _Zj = $k[--$j]; //#20865 + $k[$j++] = $f(_Zj + _Zi) % 2; //#20865 }, function() { - var _Zk = $k[--$j]; //#20584 - var _Zl = $k[--$j]; //#20584 - $k[$j++] = _Zk; //#20584 - $k[$j++] = _Zl; //#20584 - $j--; //#20584 - var _Zm = $k[--$j]; //#20584 - $k[$j++] = _Zm % 2; //#20584 + var _Zk = $k[--$j]; //#20866 + var _Zl = $k[--$j]; //#20866 + $k[$j++] = _Zk; //#20866 + $k[$j++] = _Zl; //#20866 + $j--; //#20866 + var _Zm = $k[--$j]; //#20866 + $k[$j++] = _Zm % 2; //#20866 }, function() { - $j--; //#20585 - var _Zn = $k[--$j]; //#20585 - $k[$j++] = _Zn % 3; //#20585 + $j--; //#20867 + var _Zn = $k[--$j]; //#20867 + $k[$j++] = _Zn % 3; //#20867 }, function() { - var _Zo = $k[--$j]; //#20586 - var _Zp = $k[--$j]; //#20586 - $k[$j++] = $f(_Zp + _Zo) % 3; //#20586 + var _Zo = $k[--$j]; //#20868 + var _Zp = $k[--$j]; //#20868 + $k[$j++] = $f(_Zp + _Zo) % 3; //#20868 }, function() { - var _Zq = $k[--$j]; //#20587 - var _Zr = $k[--$j]; //#20587 - $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20587 + var _Zq = $k[--$j]; //#20869 + var _Zr = $k[--$j]; //#20869 + $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20869 }, function() { - var _Zs = $k[--$j]; //#20588 - var _Zu = $k[--$j] * _Zs; //#20588 - $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20588 + var _Zs = $k[--$j]; //#20870 + var _Zu = $k[--$j] * _Zs; //#20870 + $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20870 }, function() { - var _Zv = $k[--$j]; //#20589 - var _Zx = $k[--$j] * _Zv; //#20589 - $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20589 + var _Zv = $k[--$j]; //#20871 + var _Zx = $k[--$j] * _Zv; //#20871 + $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20871 }, function() { - var _Zy = $k[--$j]; //#20590 - var _Zz = $k[--$j]; //#20590 - $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20590 - }]); //#20590 + var _Zy = $k[--$j]; //#20872 + var _Zz = $k[--$j]; //#20872 + $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20872 + }]); //#20872 var _aB = $a([function() { - var _a1 = $k[--$j]; //#20593 - var _a2 = $k[--$j]; //#20593 - $k[$j++] = _a1; //#20593 - $k[$j++] = _a2; //#20593 - $j--; //#20593 - var _a3 = $k[--$j]; //#20593 - $k[$j++] = _a3 % 2; //#20593 + var _a1 = $k[--$j]; //#20875 + var _a2 = $k[--$j]; //#20875 + $k[$j++] = _a1; //#20875 + $k[$j++] = _a2; //#20875 + $j--; //#20875 + var _a3 = $k[--$j]; //#20875 + $k[$j++] = _a3 % 2; //#20875 }, function() { - var _a4 = $k[--$j]; //#20594 - var _a5 = $k[--$j]; //#20594 - $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20594 + var _a4 = $k[--$j]; //#20876 + var _a5 = $k[--$j]; //#20876 + $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20876 }, function() { - var _a6 = $k[--$j]; //#20595 - var _a8 = $k[--$j] * _a6; //#20595 - $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20595 + var _a6 = $k[--$j]; //#20877 + var _a8 = $k[--$j] * _a6; //#20877 + $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20877 }, function() { - var _a9 = $k[--$j]; //#20596 - var _aA = $k[--$j]; //#20596 - $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20596 - }]); //#20596 + var _a9 = $k[--$j]; //#20878 + var _aA = $k[--$j]; //#20878 + $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20878 + }]); //#20878 var _aE = $a([function() { - var _aC = $k[--$j]; //#20599 - var _aD = $k[--$j]; //#20599 - $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20599 - }]); //#20599 + var _aC = $k[--$j]; //#20881 + var _aD = $k[--$j]; //#20881 + $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20881 + }]); //#20881 var _aF = new Map([ ["full", _a0], ["micro", _aB], ["rmqr", _aE] - ]); //#20599 - $_.maskfuncs = $get(_aF, $_.format); //#20601 - if ($_.mask != -1) { //#20605 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20603 - $_.bestmaskval = $_.mask - 1; //#20604 - } //#20604 - $_.masks = $a($_.maskfuncs.length); //#20606 - for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20620 - $_.m = _aS; //#20608 - $_.mask = $a($_.rows * $_.cols); //#20609 - for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20618 - $_.j = _aY; //#20611 - for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20617 - $_.i = _ab; //#20613 - $k[$j++] = $_.i; //#20614 - $k[$j++] = $_.j; //#20614 + ]); //#20881 + $_.maskfuncs = $get(_aF, $_.format); //#20883 + if ($_.mask != -1) { //#20887 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20885 + $_.bestmaskval = $_.mask - 1; //#20886 + } //#20886 + $_.masks = $a($_.maskfuncs.length); //#20888 + for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20902 + $_.m = _aS; //#20890 + $_.mask = $a($_.rows * $_.cols); //#20891 + for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20900 + $_.j = _aY; //#20893 + for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20899 + $_.i = _ab; //#20895 + $k[$j++] = $_.i; //#20896 + $k[$j++] = $_.j; //#20896 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#20614 - var _ah = $k[--$j]; //#20614 - $k[$j++] = _ah == 0; //#20615 - $k[$j++] = $_.pixs; //#20615 - $k[$j++] = $_.i; //#20615 - $k[$j++] = $_.j; //#20615 - $_.qmv(); //#20615 - var _al = $k[--$j]; //#20615 - var _an = $get($k[--$j], _al); //#20615 - var _ao = $k[--$j]; //#20615 - var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20615 - $k[$j++] = _ap; //#20616 - $k[$j++] = $_.mask; //#20616 - $k[$j++] = $_.i; //#20616 - $k[$j++] = $_.j; //#20616 - $_.qmv(); //#20616 - var _at = $k[--$j]; //#20616 - var _au = $k[--$j]; //#20616 - $put(_au, _at, $k[--$j]); //#20616 - } //#20616 - } //#20616 - $put($_.masks, $_.m, $_.mask); //#20619 - } //#20619 - var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20623 - $_.posx = $f($_.cols - _b1); //#20623 - $_.posy = $f($_.rows - 1); //#20624 - $_.dir = -1; //#20625 - $_.col = 1; //#20626 - $_.num = 0; //#20627 - for (;;) { //#20650 - if ($_.posx < 0) { //#20629 - break; //#20629 - } //#20629 - $k[$j++] = $_.pixs; //#20630 - $k[$j++] = $_.posx; //#20630 - $k[$j++] = $_.posy; //#20630 - $_.qmv(); //#20630 - var _b7 = $k[--$j]; //#20630 - if ($get($k[--$j], _b7) == -1) { //#20634 - var _bC = $get($_.cws, ~~($_.num / 8)); //#20631 - var _bE = -(7 - ($_.num % 8)); //#20631 - $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20632 - $k[$j++] = $_.pixs; //#20632 - $k[$j++] = $_.posx; //#20632 - $k[$j++] = $_.posy; //#20632 - $_.qmv(); //#20632 - var _bI = $k[--$j]; //#20632 - var _bJ = $k[--$j]; //#20632 - $put(_bJ, _bI, $k[--$j]); //#20632 - $_.num = $_.num + 1; //#20633 - } //#20633 - if ($_.col == 1) { //#20647 - $_.col = 0; //#20636 - $_.posx = $f($_.posx - 1); //#20637 - } else { //#20647 - $_.col = 1; //#20639 - $_.posx = $f($_.posx + 1); //#20640 - $_.posy = $f($_.posy + $_.dir); //#20641 - if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20648 - $_.dir = $_.dir * -1; //#20643 - $_.posy = $f($_.posy + $_.dir); //#20644 - $_.posx = $f($_.posx - 2); //#20645 - if ($eq($_.format, "full") && ($_.posx == 6)) { //#20647 - $_.posx = $f($_.posx - 1); //#20647 - } //#20647 - } //#20647 - } //#20647 - } //#20647 + } //#20896 + var _ah = $k[--$j]; //#20896 + $k[$j++] = _ah == 0; //#20897 + $k[$j++] = $_.pixs; //#20897 + $k[$j++] = $_.i; //#20897 + $k[$j++] = $_.j; //#20897 + $_.qmv(); //#20897 + var _al = $k[--$j]; //#20897 + var _an = $get($k[--$j], _al); //#20897 + var _ao = $k[--$j]; //#20897 + var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20897 + $k[$j++] = _ap; //#20898 + $k[$j++] = $_.mask; //#20898 + $k[$j++] = $_.i; //#20898 + $k[$j++] = $_.j; //#20898 + $_.qmv(); //#20898 + var _at = $k[--$j]; //#20898 + var _au = $k[--$j]; //#20898 + $put(_au, _at, $k[--$j]); //#20898 + } //#20898 + } //#20898 + $put($_.masks, $_.m, $_.mask); //#20901 + } //#20901 + var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20905 + $_.posx = $f($_.cols - _b1); //#20905 + $_.posy = $f($_.rows - 1); //#20906 + $_.dir = -1; //#20907 + $_.col = 1; //#20908 + $_.num = 0; //#20909 + for (;;) { //#20932 + if ($_.posx < 0) { //#20911 + break; //#20911 + } //#20911 + $k[$j++] = $_.pixs; //#20912 + $k[$j++] = $_.posx; //#20912 + $k[$j++] = $_.posy; //#20912 + $_.qmv(); //#20912 + var _b7 = $k[--$j]; //#20912 + if ($get($k[--$j], _b7) == -1) { //#20916 + var _bC = $get($_.cws, ~~($_.num / 8)); //#20913 + var _bE = -(7 - ($_.num % 8)); //#20913 + $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20914 + $k[$j++] = $_.pixs; //#20914 + $k[$j++] = $_.posx; //#20914 + $k[$j++] = $_.posy; //#20914 + $_.qmv(); //#20914 + var _bI = $k[--$j]; //#20914 + var _bJ = $k[--$j]; //#20914 + $put(_bJ, _bI, $k[--$j]); //#20914 + $_.num = $_.num + 1; //#20915 + } //#20915 + if ($_.col == 1) { //#20929 + $_.col = 0; //#20918 + $_.posx = $f($_.posx - 1); //#20919 + } else { //#20929 + $_.col = 1; //#20921 + $_.posx = $f($_.posx + 1); //#20922 + $_.posy = $f($_.posy + $_.dir); //#20923 + if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20930 + $_.dir = $_.dir * -1; //#20925 + $_.posy = $f($_.posy + $_.dir); //#20926 + $_.posx = $f($_.posx - 2); //#20927 + if ($eq($_.format, "full") && ($_.posx == 6)) { //#20929 + $_.posx = $f($_.posx - 1); //#20929 + } //#20929 + } //#20929 + } //#20929 + } //#20929 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#20654 - $k[$j++] = 'scr1'; //#20656 - $k[$j++] = 0; //#20656 - $forall($_.scrle, function() { //#20656 - var _bd = $k[--$j]; //#20656 - $k[$j++] = _bd; //#20656 - if (_bd >= 5) { //#20656 - var _be = $k[--$j]; //#20656 - var _bg = $f($f($k[--$j] + _be) - 2); //#20656 - $k[$j++] = _bg; //#20656 - $k[$j++] = _bg; //#20656 - } //#20656 - $j--; //#20656 - }); //#20656 - var _bh = $k[--$j]; //#20656 - $_[$k[--$j]] = _bh; //#20656 - $_.scr3 = 0; //#20658 - for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20673 - $_.j = _bl; //#20660 - if (($get($_.scrle, $_.j) % 3) == 0) { //#20672 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20662 - var _bu = $geti($_.scrle, $_.j - 2, 5); //#20663 - for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20663 - $k[$j++] = $get(_bu, _bv) == $_.fact; //#20663 - } //#20663 - var _bz = $k[--$j]; //#20663 - var _c0 = $k[--$j]; //#20663 - var _c1 = $k[--$j]; //#20663 - $k[$j++] = $an(_c0, _bz); //#20663 - $k[$j++] = _c1; //#20663 - $j--; //#20663 - var _c2 = $k[--$j]; //#20663 - var _c3 = $k[--$j]; //#20663 - var _c4 = $k[--$j]; //#20663 - if (_c4 && (_c3 && _c2)) { //#20671 - if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20668 - $_.scr3 = $_.scr3 + 40; //#20665 - } else { //#20668 - if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20669 - $_.scr3 = $_.scr3 + 40; //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - $k[$j++] = $_.scr1; //#20674 - $k[$j++] = $_.scr3; //#20674 - }; //#20674 + $_.scrle = $k[--$j]; //#20936 + $k[$j++] = 'scr1'; //#20938 + $k[$j++] = 0; //#20938 + $forall($_.scrle, function() { //#20938 + var _bd = $k[--$j]; //#20938 + $k[$j++] = _bd; //#20938 + if (_bd >= 5) { //#20938 + var _be = $k[--$j]; //#20938 + var _bg = $f($f($k[--$j] + _be) - 2); //#20938 + $k[$j++] = _bg; //#20938 + $k[$j++] = _bg; //#20938 + } //#20938 + $j--; //#20938 + }); //#20938 + var _bh = $k[--$j]; //#20938 + $_[$k[--$j]] = _bh; //#20938 + $_.scr3 = 0; //#20940 + for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20955 + $_.j = _bl; //#20942 + if (($get($_.scrle, $_.j) % 3) == 0) { //#20954 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20944 + var _bu = $geti($_.scrle, $_.j - 2, 5); //#20945 + for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20945 + $k[$j++] = $get(_bu, _bv) == $_.fact; //#20945 + } //#20945 + var _bz = $k[--$j]; //#20945 + var _c0 = $k[--$j]; //#20945 + var _c1 = $k[--$j]; //#20945 + $k[$j++] = $an(_c0, _bz); //#20945 + $k[$j++] = _c1; //#20945 + $j--; //#20945 + var _c2 = $k[--$j]; //#20945 + var _c3 = $k[--$j]; //#20945 + var _c4 = $k[--$j]; //#20945 + if (_c4 && (_c3 && _c2)) { //#20953 + if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20950 + $_.scr3 = $_.scr3 + 40; //#20947 + } else { //#20950 + if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20951 + $_.scr3 = $_.scr3 + 40; //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + $k[$j++] = $_.scr1; //#20956 + $k[$j++] = $_.scr3; //#20956 + }; //#20956 $_.evalfull = function() { - $_.sym = $k[--$j]; //#20679 - $_.n1 = 0; //#20681 - $_.n2 = 0; //#20681 - $_.n3 = 0; //#20681 - $_.rle = $a($f($_.cols + 1)); //#20682 - $_.lastpairs = $a($_.cols); //#20683 - $_.thispairs = $a($_.cols); //#20684 - $_.colsadd1 = $f($_.cols + 1); //#20685 - for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#20724 - $_.i = _cS; //#20687 - $k[$j++] = Infinity; //#20690 - var _cU = $_.cols; //#20691 - $k[$j++] = 0; //#20693 - $k[$j++] = 0; //#20693 - for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20693 - var _cZ = $get($_.sym, _cW); //#20692 - var _ca = $k[--$j]; //#20692 - $k[$j++] = _cZ; //#20692 - if ($eq(_ca, _cZ)) { //#20692 - var _cb = $k[--$j]; //#20692 - var _cc = $k[--$j]; //#20692 - $k[$j++] = $f(_cc + 1); //#20692 - $k[$j++] = _cb; //#20692 - } else { //#20692 - var _cd = $k[--$j]; //#20692 - $k[$j++] = 1; //#20692 - $k[$j++] = _cd; //#20692 - } //#20692 - } //#20692 - $j--; //#20694 - var _cf = $counttomark() + 2; //#20695 - $astore($geti($_.rle, 0, _cf - 2)); //#20695 - $_.evalfulln1n3(); //#20696 - $_.n3 = $f($k[--$j] + $_.n3); //#20696 - $_.n1 = $f($k[--$j] + $_.n1); //#20696 - $j--; //#20697 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20700 - $k[$j++] = Infinity; //#20701 - var _cq = $_.symrow; //#20702 - $k[$j++] = 0; //#20704 - $k[$j++] = 0; //#20704 - for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20704 - var _ct = $get(_cq, _cr); //#20704 - var _cu = $k[--$j]; //#20703 - $k[$j++] = _ct; //#20703 - if ($eq(_cu, _ct)) { //#20703 - var _cv = $k[--$j]; //#20703 - var _cw = $k[--$j]; //#20703 - $k[$j++] = $f(_cw + 1); //#20703 - $k[$j++] = _cv; //#20703 - } else { //#20703 - var _cx = $k[--$j]; //#20703 - $k[$j++] = 1; //#20703 - $k[$j++] = _cx; //#20703 - } //#20703 - } //#20703 - $j--; //#20705 - var _cz = $counttomark() + 2; //#20706 - $astore($geti($_.rle, 0, _cz - 2)); //#20706 - $_.evalfulln1n3(); //#20707 - $_.n3 = $f($k[--$j] + $_.n3); //#20707 - $_.n1 = $f($k[--$j] + $_.n1); //#20707 - $j--; //#20708 - var _d5 = $_.thispairs; //#20711 - $_.thispairs = $_.lastpairs; //#20711 - $_.lastpairs = _d5; //#20711 - var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20712 - var _dA = $_.symrow; //#20713 - $k[$j++] = _d9; //#20713 - for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20713 - var _dD = $get(_dA, _dB); //#20713 - var _dE = $k[--$j]; //#20713 - $k[$j++] = $f(_dE + _dD); //#20713 - $k[$j++] = _dD; //#20713 - } //#20713 - $j--; //#20714 - $astore($_.thispairs); //#20715 - $j--; //#20715 - if ($_.i > 0) { //#20722 - $k[$j++] = Infinity; //#20717 - $aload($_.lastpairs); //#20718 - $aload($_.thispairs); //#20718 - $k[$j++] = $_.n2; //#20719 - for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#20719 - var _dN = $k[--$j]; //#20719 - var _dO = $k[--$j]; //#20719 - $k[$j++] = _dN; //#20719 - $k[$j++] = _dO; //#20719 - var _dQ = $k[$j - 1 - $_.colsadd1]; //#20719 - if (($f($k[--$j] + _dQ) & 3) == 0) { //#20719 - var _dS = $k[--$j]; //#20719 - $k[$j++] = $f(_dS + 3); //#20719 - } //#20719 - } //#20719 - $_.n2 = $k[--$j]; //#20720 - $cleartomark(); //#20721 - } //#20721 - } //#20721 - $k[$j++] = 'dark'; //#20727 - $k[$j++] = 0; //#20727 - $forall($_.sym, function() { //#20727 - var _dV = $k[--$j]; //#20727 - var _dW = $k[--$j]; //#20727 - $k[$j++] = $f(_dW + _dV); //#20727 - }); //#20727 - var _dX = $k[--$j]; //#20727 - $_[$k[--$j]] = _dX; //#20727 - var _da = $_.cols; //#20728 - $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#20728 - $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#20730 - }; //#20730 + $_.sym = $k[--$j]; //#20961 + $_.n1 = 0; //#20963 + $_.n2 = 0; //#20963 + $_.n3 = 0; //#20963 + $_.rle = $a($f($_.cols + 1)); //#20964 + $_.lastpairs = $a($_.cols); //#20965 + $_.thispairs = $a($_.cols); //#20966 + $_.colsadd1 = $f($_.cols + 1); //#20967 + for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#21006 + $_.i = _cS; //#20969 + $k[$j++] = Infinity; //#20972 + var _cU = $_.cols; //#20973 + $k[$j++] = 0; //#20975 + $k[$j++] = 0; //#20975 + for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20975 + var _cZ = $get($_.sym, _cW); //#20974 + var _ca = $k[--$j]; //#20974 + $k[$j++] = _cZ; //#20974 + if ($eq(_ca, _cZ)) { //#20974 + var _cb = $k[--$j]; //#20974 + var _cc = $k[--$j]; //#20974 + $k[$j++] = $f(_cc + 1); //#20974 + $k[$j++] = _cb; //#20974 + } else { //#20974 + var _cd = $k[--$j]; //#20974 + $k[$j++] = 1; //#20974 + $k[$j++] = _cd; //#20974 + } //#20974 + } //#20974 + $j--; //#20976 + var _cf = $counttomark() + 2; //#20977 + $astore($geti($_.rle, 0, _cf - 2)); //#20977 + $_.evalfulln1n3(); //#20978 + $_.n3 = $f($k[--$j] + $_.n3); //#20978 + $_.n1 = $f($k[--$j] + $_.n1); //#20978 + $j--; //#20979 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20982 + $k[$j++] = Infinity; //#20983 + var _cq = $_.symrow; //#20984 + $k[$j++] = 0; //#20986 + $k[$j++] = 0; //#20986 + for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20986 + var _ct = $get(_cq, _cr); //#20986 + var _cu = $k[--$j]; //#20985 + $k[$j++] = _ct; //#20985 + if ($eq(_cu, _ct)) { //#20985 + var _cv = $k[--$j]; //#20985 + var _cw = $k[--$j]; //#20985 + $k[$j++] = $f(_cw + 1); //#20985 + $k[$j++] = _cv; //#20985 + } else { //#20985 + var _cx = $k[--$j]; //#20985 + $k[$j++] = 1; //#20985 + $k[$j++] = _cx; //#20985 + } //#20985 + } //#20985 + $j--; //#20987 + var _cz = $counttomark() + 2; //#20988 + $astore($geti($_.rle, 0, _cz - 2)); //#20988 + $_.evalfulln1n3(); //#20989 + $_.n3 = $f($k[--$j] + $_.n3); //#20989 + $_.n1 = $f($k[--$j] + $_.n1); //#20989 + $j--; //#20990 + var _d5 = $_.thispairs; //#20993 + $_.thispairs = $_.lastpairs; //#20993 + $_.lastpairs = _d5; //#20993 + var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20994 + var _dA = $_.symrow; //#20995 + $k[$j++] = _d9; //#20995 + for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20995 + var _dD = $get(_dA, _dB); //#20995 + var _dE = $k[--$j]; //#20995 + $k[$j++] = $f(_dE + _dD); //#20995 + $k[$j++] = _dD; //#20995 + } //#20995 + $j--; //#20996 + $astore($_.thispairs); //#20997 + $j--; //#20997 + if ($_.i > 0) { //#21004 + $k[$j++] = Infinity; //#20999 + $aload($_.lastpairs); //#21000 + $aload($_.thispairs); //#21000 + $k[$j++] = $_.n2; //#21001 + for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#21001 + var _dN = $k[--$j]; //#21001 + var _dO = $k[--$j]; //#21001 + $k[$j++] = _dN; //#21001 + $k[$j++] = _dO; //#21001 + var _dQ = $k[$j - 1 - $_.colsadd1]; //#21001 + if (($f($k[--$j] + _dQ) & 3) == 0) { //#21001 + var _dS = $k[--$j]; //#21001 + $k[$j++] = $f(_dS + 3); //#21001 + } //#21001 + } //#21001 + $_.n2 = $k[--$j]; //#21002 + $cleartomark(); //#21003 + } //#21003 + } //#21003 + $k[$j++] = 'dark'; //#21009 + $k[$j++] = 0; //#21009 + $forall($_.sym, function() { //#21009 + var _dV = $k[--$j]; //#21009 + var _dW = $k[--$j]; //#21009 + $k[$j++] = $f(_dW + _dV); //#21009 + }); //#21009 + var _dX = $k[--$j]; //#21009 + $_[$k[--$j]] = _dX; //#21009 + var _da = $_.cols; //#21010 + $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#21010 + $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#21012 + }; //#21012 $_.evalmicro = function() { - $_.sym = $k[--$j]; //#20735 - $_.dkrhs = 0; //#20736 - $_.dkbot = 0; //#20736 - for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#20741 - $_.i = _di; //#20738 - $k[$j++] = 'dkrhs'; //#20739 - $k[$j++] = $_.dkrhs; //#20739 - $k[$j++] = $_.sym; //#20739 - $k[$j++] = $f($_.cols - 1); //#20739 - $k[$j++] = $_.i; //#20739 - $_.qmv(); //#20739 - var _dn = $k[--$j]; //#20739 - var _dp = $get($k[--$j], _dn); //#20739 - var _dq = $k[--$j]; //#20739 - $_[$k[--$j]] = $f(_dq + _dp); //#20739 - $k[$j++] = 'dkbot'; //#20740 - $k[$j++] = $_.dkbot; //#20740 - $k[$j++] = $_.sym; //#20740 - $k[$j++] = $_.i; //#20740 - $k[$j++] = $f($_.cols - 1); //#20740 - $_.qmv(); //#20740 - var _dw = $k[--$j]; //#20740 - var _dy = $get($k[--$j], _dw); //#20740 - var _dz = $k[--$j]; //#20740 - $_[$k[--$j]] = $f(_dz + _dy); //#20740 - } //#20740 - if ($_.dkrhs <= $_.dkbot) { //#20745 - $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#20743 - } else { //#20745 - $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#20745 - } //#20745 - }; //#20745 - $_.bestscore = 999999999; //#20750 - for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#20772 - $_.m = _e9; //#20752 - $_.masksym = $a($_.rows * $_.cols); //#20753 - for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#20757 - $_.i = _eG; //#20755 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#20756 - } //#20756 - if ($_.masks.length != 1) { //#20770 - if ($eq($_.format, "full")) { //#20762 - $k[$j++] = $_.masksym; //#20760 - $_.evalfull(); //#20760 - $_.score = $k[--$j]; //#20760 - } else { //#20762 - $k[$j++] = $_.masksym; //#20762 - $_.evalmicro(); //#20762 - $_.score = $k[--$j]; //#20762 - } //#20762 - if ($_.score < $_.bestscore) { //#20768 - $_.bestsym = $_.masksym; //#20765 - $_.bestmaskval = $_.m; //#20766 - $_.bestscore = $_.score; //#20767 - } //#20767 - } else { //#20770 - $_.bestsym = $_.masksym; //#20770 - } //#20770 - } //#20770 - $_.pixs = $_.bestsym; //#20773 - if ($eq($_.format, "full")) { //#20778 - $k[$j++] = $_.pixs; //#20777 - $k[$j++] = 8; //#20777 - $k[$j++] = $f($_.cols - 8); //#20777 - $_.qmv(); //#20777 - var _eh = $k[--$j]; //#20777 - $put($k[--$j], _eh, 1); //#20777 - } //#20777 - if (!bwipp_qrcode.__20814__) { //#20814 - $_ = Object.create($_); //#20814 - $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#20787 - $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#20793 - $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#20803 - $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#20813 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 - bwipp_qrcode.__20814__ = 1; //#20813 - $_ = Object.getPrototypeOf($_); //#20813 - } //#20813 - if ($eq($_.format, "full")) { //#20824 - $k[$j++] = 'ecid'; //#20816 - $search("MLHQ", $_.eclevel); //#20816 - $j--; //#20816 - var _eq = $k[--$j]; //#20816 - var _er = $k[--$j]; //#20816 - $k[$j++] = _eq.length; //#20816 - $k[$j++] = _er; //#20816 - $j--; //#20816 - var _es = $k[--$j]; //#20816 - var _et = $k[--$j]; //#20816 - $k[$j++] = _es; //#20816 - $k[$j++] = _et; //#20816 - $j--; //#20816 - var _eu = $k[--$j]; //#20816 - $_[$k[--$j]] = _eu; //#20816 - $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#20817 - for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#20823 - $_.i = _f2; //#20819 - $forall($get($_.formatmap, $_.i), function() { //#20822 - var _f7 = $k[--$j]; //#20821 - $k[$j++] = $_.pixs; //#20821 - $aload(_f7); //#20821 - $_.qmv(); //#20821 - var _f8 = $_.fmtval; //#20821 - var _fA = -(14 - $_.i); //#20821 - var _fB = $k[--$j]; //#20821 - $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#20821 - }); //#20821 - } //#20821 - } //#20821 - if ($eq($_.format, "micro")) { //#20832 - $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#20826 - $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#20827 - for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#20831 - $_.i = _fT; //#20829 - $k[$j++] = $_.pixs; //#20830 - $aload($get($get($_.formatmap, $_.i), 0)); //#20830 - $_.qmv(); //#20830 - var _fZ = $_.fmtval; //#20830 - var _fb = -(14 - $_.i); //#20830 - var _fc = $k[--$j]; //#20830 - $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#20830 - } //#20830 - } //#20830 - if ($eq($_.format, "rmqr")) { //#20842 - $k[$j++] = 'fmtvalu'; //#20834 - $search("MH", $_.eclevel); //#20834 - $j--; //#20834 - var _fg = $k[--$j]; //#20834 - var _fh = $k[--$j]; //#20834 - $k[$j++] = _fg.length; //#20834 - $k[$j++] = _fh; //#20834 - $j--; //#20834 - var _fi = $k[--$j]; //#20834 - var _fj = $k[--$j]; //#20834 - $k[$j++] = _fi; //#20834 - $k[$j++] = _fj; //#20834 - $j--; //#20834 - var _fk = $k[--$j]; //#20834 - $_[$k[--$j]] = (_fk << 5) + $_.verind; //#20834 - $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#20835 - $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#20836 - for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#20841 - $_.i = _fv; //#20838 - $k[$j++] = $_.pixs; //#20839 - $aload($get($get($_.formatmap, $_.i), 0)); //#20839 - $_.qmv(); //#20839 - var _g1 = $_.fmtval1; //#20839 - var _g3 = -(17 - $_.i); //#20839 - var _g4 = $k[--$j]; //#20839 - $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#20839 - $k[$j++] = $_.pixs; //#20840 - $aload($get($get($_.formatmap, $_.i), 1)); //#20840 - $_.qmv(); //#20840 - var _gB = $_.fmtval2; //#20840 - var _gD = -(17 - $_.i); //#20840 - var _gE = $k[--$j]; //#20840 - $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#20840 - } //#20840 - } //#20840 - if (!bwipp_qrcode.__20853__) { //#20853 - $_ = Object.create($_); //#20853 - $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#20852 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20852 - bwipp_qrcode.__20853__ = 1; //#20852 - $_ = Object.getPrototypeOf($_); //#20852 - } //#20852 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20862 - $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#20855 - for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#20861 - $_.i = _gP; //#20857 - $forall($get($_.versionmap, $_.i), function() { //#20860 - var _gU = $k[--$j]; //#20859 - $k[$j++] = $_.pixs; //#20859 - $forall(_gU); //#20859 - $_.qmv(); //#20859 - var _gV = $_.verval; //#20859 - var _gX = -(17 - $_.i); //#20859 - var _gY = $k[--$j]; //#20859 - $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#20859 - }); //#20859 - } //#20859 - } //#20859 - var _gg = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows * 2) / 72], - ["width", ($_.cols * 2) / 72], - ["opt", $_.options] - ]); //#20872 - $k[$j++] = _gg; //#20875 - if (!$_.dontdraw) { //#20875 - bwipp_renmatrix(); //#20875 - } //#20875 - $_ = Object.getPrototypeOf($_); //#20877 - $_ = Object.getPrototypeOf($_); //#20879 -} - + $_.sym = $k[--$j]; //#21017 + $_.dkrhs = 0; //#21018 + $_.dkbot = 0; //#21018 + for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#21023 + $_.i = _di; //#21020 + $k[$j++] = 'dkrhs'; //#21021 + $k[$j++] = $_.dkrhs; //#21021 + $k[$j++] = $_.sym; //#21021 + $k[$j++] = $f($_.cols - 1); //#21021 + $k[$j++] = $_.i; //#21021 + $_.qmv(); //#21021 + var _dn = $k[--$j]; //#21021 + var _dp = $get($k[--$j], _dn); //#21021 + var _dq = $k[--$j]; //#21021 + $_[$k[--$j]] = $f(_dq + _dp); //#21021 + $k[$j++] = 'dkbot'; //#21022 + $k[$j++] = $_.dkbot; //#21022 + $k[$j++] = $_.sym; //#21022 + $k[$j++] = $_.i; //#21022 + $k[$j++] = $f($_.cols - 1); //#21022 + $_.qmv(); //#21022 + var _dw = $k[--$j]; //#21022 + var _dy = $get($k[--$j], _dw); //#21022 + var _dz = $k[--$j]; //#21022 + $_[$k[--$j]] = $f(_dz + _dy); //#21022 + } //#21022 + if ($_.dkrhs <= $_.dkbot) { //#21027 + $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#21025 + } else { //#21027 + $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#21027 + } //#21027 + }; //#21027 + $_.bestscore = 999999999; //#21032 + for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#21054 + $_.m = _e9; //#21034 + $_.masksym = $a($_.rows * $_.cols); //#21035 + for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#21039 + $_.i = _eG; //#21037 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#21038 + } //#21038 + if ($_.masks.length != 1) { //#21052 + if ($eq($_.format, "full")) { //#21044 + $k[$j++] = $_.masksym; //#21042 + $_.evalfull(); //#21042 + $_.score = $k[--$j]; //#21042 + } else { //#21044 + $k[$j++] = $_.masksym; //#21044 + $_.evalmicro(); //#21044 + $_.score = $k[--$j]; //#21044 + } //#21044 + if ($_.score < $_.bestscore) { //#21050 + $_.bestsym = $_.masksym; //#21047 + $_.bestmaskval = $_.m; //#21048 + $_.bestscore = $_.score; //#21049 + } //#21049 + } else { //#21052 + $_.bestsym = $_.masksym; //#21052 + } //#21052 + } //#21052 + $_.pixs = $_.bestsym; //#21055 + if ($eq($_.format, "full")) { //#21060 + $k[$j++] = $_.pixs; //#21059 + $k[$j++] = 8; //#21059 + $k[$j++] = $f($_.cols - 8); //#21059 + $_.qmv(); //#21059 + var _eh = $k[--$j]; //#21059 + $put($k[--$j], _eh, 1); //#21059 + } //#21059 + if (!bwipp_qrcode.__21096__) { //#21096 + $_ = Object.create($_); //#21096 + $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#21069 + $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#21075 + $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#21085 + $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#21095 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21095 + bwipp_qrcode.__21096__ = 1; //#21095 + $_ = Object.getPrototypeOf($_); //#21095 + } //#21095 + if ($eq($_.format, "full")) { //#21106 + $k[$j++] = 'ecid'; //#21098 + $search("MLHQ", $_.eclevel); //#21098 + $j--; //#21098 + var _eq = $k[--$j]; //#21098 + var _er = $k[--$j]; //#21098 + $k[$j++] = _eq.length; //#21098 + $k[$j++] = _er; //#21098 + $j--; //#21098 + var _es = $k[--$j]; //#21098 + var _et = $k[--$j]; //#21098 + $k[$j++] = _es; //#21098 + $k[$j++] = _et; //#21098 + $j--; //#21098 + var _eu = $k[--$j]; //#21098 + $_[$k[--$j]] = _eu; //#21098 + $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#21099 + for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#21105 + $_.i = _f2; //#21101 + $forall($get($_.formatmap, $_.i), function() { //#21104 + var _f7 = $k[--$j]; //#21103 + $k[$j++] = $_.pixs; //#21103 + $aload(_f7); //#21103 + $_.qmv(); //#21103 + var _f8 = $_.fmtval; //#21103 + var _fA = -(14 - $_.i); //#21103 + var _fB = $k[--$j]; //#21103 + $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#21103 + }); //#21103 + } //#21103 + } //#21103 + if ($eq($_.format, "micro")) { //#21114 + $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#21108 + $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#21109 + for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#21113 + $_.i = _fT; //#21111 + $k[$j++] = $_.pixs; //#21112 + $aload($get($get($_.formatmap, $_.i), 0)); //#21112 + $_.qmv(); //#21112 + var _fZ = $_.fmtval; //#21112 + var _fb = -(14 - $_.i); //#21112 + var _fc = $k[--$j]; //#21112 + $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#21112 + } //#21112 + } //#21112 + if ($eq($_.format, "rmqr")) { //#21124 + $k[$j++] = 'fmtvalu'; //#21116 + $search("MH", $_.eclevel); //#21116 + $j--; //#21116 + var _fg = $k[--$j]; //#21116 + var _fh = $k[--$j]; //#21116 + $k[$j++] = _fg.length; //#21116 + $k[$j++] = _fh; //#21116 + $j--; //#21116 + var _fi = $k[--$j]; //#21116 + var _fj = $k[--$j]; //#21116 + $k[$j++] = _fi; //#21116 + $k[$j++] = _fj; //#21116 + $j--; //#21116 + var _fk = $k[--$j]; //#21116 + $_[$k[--$j]] = (_fk << 5) + $_.verind; //#21116 + $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#21117 + $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#21118 + for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#21123 + $_.i = _fv; //#21120 + $k[$j++] = $_.pixs; //#21121 + $aload($get($get($_.formatmap, $_.i), 0)); //#21121 + $_.qmv(); //#21121 + var _g1 = $_.fmtval1; //#21121 + var _g3 = -(17 - $_.i); //#21121 + var _g4 = $k[--$j]; //#21121 + $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#21121 + $k[$j++] = $_.pixs; //#21122 + $aload($get($get($_.formatmap, $_.i), 1)); //#21122 + $_.qmv(); //#21122 + var _gB = $_.fmtval2; //#21122 + var _gD = -(17 - $_.i); //#21122 + var _gE = $k[--$j]; //#21122 + $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#21122 + } //#21122 + } //#21122 + if (!bwipp_qrcode.__21135__) { //#21135 + $_ = Object.create($_); //#21135 + $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#21134 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21134 + bwipp_qrcode.__21135__ = 1; //#21134 + $_ = Object.getPrototypeOf($_); //#21134 + } //#21134 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#21144 + $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#21137 + for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#21143 + $_.i = _gP; //#21139 + $forall($get($_.versionmap, $_.i), function() { //#21142 + var _gU = $k[--$j]; //#21141 + $k[$j++] = $_.pixs; //#21141 + $forall(_gU); //#21141 + $_.qmv(); //#21141 + var _gV = $_.verval; //#21141 + var _gX = -(17 - $_.i); //#21141 + var _gY = $k[--$j]; //#21141 + $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#21141 + }); //#21141 + } //#21141 + } //#21141 + $k[$j++] = Infinity; //#21147 + $k[$j++] = 'ren'; //#21154 + $k[$j++] = bwipp_renmatrix; //#21154 + $k[$j++] = 'pixs'; //#21154 + $k[$j++] = $_.pixs; //#21154 + $k[$j++] = 'pixx'; //#21154 + $k[$j++] = $_.cols; //#21154 + $k[$j++] = 'pixy'; //#21154 + $k[$j++] = $_.rows; //#21154 + $k[$j++] = 'height'; //#21154 + $k[$j++] = ($_.rows * 2) / 72; //#21154 + $k[$j++] = 'width'; //#21154 + $k[$j++] = ($_.cols * 2) / 72; //#21154 + $k[$j++] = 'borderleft'; //#21154 + if ($eq($_.format, "full")) { //#21154 + $k[$j++] = 4; //#21154 + } else { //#21154 + $k[$j++] = 2; //#21154 + } //#21154 + $k[$j++] = 'borderright'; //#21155 + if ($eq($_.format, "full")) { //#21155 + $k[$j++] = 4; //#21155 + } else { //#21155 + $k[$j++] = 2; //#21155 + } //#21155 + $k[$j++] = 'bordertop'; //#21156 + if ($eq($_.format, "full")) { //#21156 + $k[$j++] = 4; //#21156 + } else { //#21156 + $k[$j++] = 2; //#21156 + } //#21156 + $k[$j++] = 'borderbottom'; //#21157 + if ($eq($_.format, "full")) { //#21157 + $k[$j++] = 4; //#21157 + } else { //#21157 + $k[$j++] = 2; //#21157 + } //#21157 + $k[$j++] = 'opt'; //#21158 + $k[$j++] = $_.options; //#21158 + var _gk = $d(); //#21158 + $k[$j++] = _gk; //#21161 + if (!$_.dontdraw) { //#21161 + bwipp_renmatrix(); //#21161 + } //#21161 + $_ = Object.getPrototypeOf($_); //#21163 + $_ = Object.getPrototypeOf($_); //#21165 +} //bwipp_qrcode function bwipp_swissqrcode() { - $_ = Object.create($_); //#20909 - $_.dontdraw = false; //#20912 - $_.parse = false; //#20913 - $k[$j++] = $_; //#20915 - bwipp_processoptions(); //#20915 - $_.options = $k[--$j]; //#20915 - $_.barcode = $k[--$j]; //#20916 + $_ = Object.create($_); //#21195 + $_.dontdraw = false; //#21198 + $_.parse = false; //#21199 + $k[$j++] = $_; //#21201 + bwipp_processoptions(); //#21201 + $_.options = $k[--$j]; //#21201 + $_.barcode = $k[--$j]; //#21202 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#20922 - $_.fncvals = _3; //#20923 - $k[$j++] = 'barcode'; //#20924 - $k[$j++] = $_.barcode; //#20924 - $k[$j++] = $_.fncvals; //#20924 - bwipp_parseinput(); //#20924 - var _6 = $k[--$j]; //#20924 - $_[$k[--$j]] = _6; //#20924 - $_.barlen = $_.barcode.length; //#20925 - delete $_.options["parse"]; //#20926 - if ($_.barcode.length > 997) { //#20931 - $k[$j++] = 'bwipp.swissqrcodeBadLength#20930'; //#20930 - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#20930 - bwipp_raiseerror(); //#20930 - } //#20930 - $put($_.options, "dontdraw", true); //#20934 - $k[$j++] = 'args'; //#20935 - $k[$j++] = $_.barcode; //#20935 - $k[$j++] = $_.options; //#20935 - bwipp_qrcode(); //#20935 - var _E = $k[--$j]; //#20935 - $_[$k[--$j]] = _E; //#20935 - $put($_.args, "opt", $_.options); //#20937 - $k[$j++] = $_.args; //#21006 - if (!$_.dontdraw) { //#21006 - $$.save(); //#20951 - var _K = $$.currpos(); //#20952 - $$.translate(_K.x, _K.y); //#20952 - var _L = 72 / 25.4; //#20953 - $$.scale(_L, _L); //#20953 - $$.save(); //#20956 - $$.newpath(); //#20957 - $$.moveto(0, 0); //#20958 - $$.lineto(46, 0); //#20959 - $$.lineto(46, 46); //#20960 - $$.lineto(0, 46); //#20961 - $$.closepath(); //#20962 - $$.moveto(19.5, 19.5); //#20963 - $$.lineto(19.5, 26.5); //#20964 - $$.lineto(26.5, 26.5); //#20965 - $$.lineto(26.5, 19.5); //#20966 - $$.closepath(); //#20967 - $$.clip(); //#20968 - $$.save(); //#20971 - $$.moveto(0, 0); //#20972 - var _O = (46 / $get($_.args, "pixx")) / 2; //#20973 - $$.scale(_O, _O); //#20973 - bwipp_renmatrix(); //#20974 - $$.restore(); //#20975 - $$.restore(); //#20977 - $$.translate(19.5, 19.5); //#20980 - var _P = 7 / 83; //#20981 - $$.scale(_P, _P); //#20981 - $$.newpath(); //#20983 - $$.moveto(6, 6); //#20984 - $$.lineto(6, 77); //#20985 - $$.lineto(77, 77); //#20986 - $$.lineto(77, 6); //#20987 - $$.closepath(); //#20988 - $$.moveto(49, 18); //#20989 - $$.lineto(49, 34); //#20990 - $$.lineto(65, 34); //#20991 - $$.lineto(65, 49); //#20992 - $$.lineto(49, 49); //#20993 - $$.lineto(49, 65); //#20994 - $$.lineto(34, 65); //#20995 - $$.lineto(34, 49); //#20996 - $$.lineto(18, 49); //#20997 - $$.lineto(18, 34); //#20998 - $$.lineto(34, 34); //#20999 - $$.lineto(34, 18); //#21000 - $$.closepath(); //#21001 - $$.setrgbcolor(0, 0, 0); //#21002 - $$.fill(); //#21002 - $$.restore(); //#21004 - } //#21004 - $_ = Object.getPrototypeOf($_); //#21008 -} - + ]); //#21208 + $_.fncvals = _3; //#21209 + $k[$j++] = 'barcode'; //#21210 + $k[$j++] = $_.barcode; //#21210 + $k[$j++] = $_.fncvals; //#21210 + bwipp_parseinput(); //#21210 + var _6 = $k[--$j]; //#21210 + $_[$k[--$j]] = _6; //#21210 + $_.barlen = $_.barcode.length; //#21211 + delete $_.options["parse"]; //#21212 + if ($_.barcode.length > 997) { //#21217 + $k[$j++] = 'bwipp.swissqrcodeBadLength#21216'; //#21216 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#21216 + bwipp_raiseerror(); //#21216 + } //#21216 + $put($_.options, "dontdraw", true); //#21220 + $k[$j++] = 'args'; //#21221 + $k[$j++] = $_.barcode; //#21221 + $k[$j++] = $_.options; //#21221 + bwipp_qrcode(); //#21221 + var _E = $k[--$j]; //#21221 + $_[$k[--$j]] = _E; //#21221 + $put($_.args, "opt", $_.options); //#21223 + $k[$j++] = $_.args; //#21292 + if (!$_.dontdraw) { //#21292 + $$.save(); //#21237 + var _K = $$.currpos(); //#21238 + $$.translate(_K.x, _K.y); //#21238 + var _L = 72 / 25.4; //#21239 + $$.scale(_L, _L); //#21239 + $$.save(); //#21242 + $$.newpath(); //#21243 + $$.moveto(0, 0); //#21244 + $$.lineto(46, 0); //#21245 + $$.lineto(46, 46); //#21246 + $$.lineto(0, 46); //#21247 + $$.closepath(); //#21248 + $$.moveto(19.5, 19.5); //#21249 + $$.lineto(19.5, 26.5); //#21250 + $$.lineto(26.5, 26.5); //#21251 + $$.lineto(26.5, 19.5); //#21252 + $$.closepath(); //#21253 + $$.clip(); //#21254 + $$.save(); //#21257 + $$.moveto(0, 0); //#21258 + var _O = (46 / $get($_.args, "pixx")) / 2; //#21259 + $$.scale(_O, _O); //#21259 + bwipp_renmatrix(); //#21260 + $$.restore(); //#21261 + $$.restore(); //#21263 + $$.translate(19.5, 19.5); //#21266 + var _P = 7 / 83; //#21267 + $$.scale(_P, _P); //#21267 + $$.newpath(); //#21269 + $$.moveto(6, 6); //#21270 + $$.lineto(6, 77); //#21271 + $$.lineto(77, 77); //#21272 + $$.lineto(77, 6); //#21273 + $$.closepath(); //#21274 + $$.moveto(49, 18); //#21275 + $$.lineto(49, 34); //#21276 + $$.lineto(65, 34); //#21277 + $$.lineto(65, 49); //#21278 + $$.lineto(49, 49); //#21279 + $$.lineto(49, 65); //#21280 + $$.lineto(34, 65); //#21281 + $$.lineto(34, 49); //#21282 + $$.lineto(18, 49); //#21283 + $$.lineto(18, 34); //#21284 + $$.lineto(34, 34); //#21285 + $$.lineto(34, 18); //#21286 + $$.closepath(); //#21287 + $$.setrgbcolor(0, 0, 0); //#21288 + $$.fill(); //#21288 + $$.restore(); //#21290 + } //#21290 + $_ = Object.getPrototypeOf($_); //#21294 +} //bwipp_swissqrcode function bwipp_microqrcode() { - $_ = Object.create($_); //#21037 - $_.dontdraw = false; //#21040 - $k[$j++] = $_; //#21042 - bwipp_processoptions(); //#21042 - $_.options = $k[--$j]; //#21042 - $_.barcode = $k[--$j]; //#21043 - $put($_.options, "dontdraw", true); //#21046 - $put($_.options, "format", "micro"); //#21047 - $k[$j++] = 'args'; //#21049 - $k[$j++] = $_.barcode; //#21049 - $k[$j++] = $_.options; //#21049 - bwipp_qrcode(); //#21049 - var _6 = $k[--$j]; //#21049 - $_[$k[--$j]] = _6; //#21049 - $put($_.args, "opt", $_.options); //#21051 - $k[$j++] = $_.args; //#21054 - if (!$_.dontdraw) { //#21054 - bwipp_renmatrix(); //#21054 - } //#21054 - $_ = Object.getPrototypeOf($_); //#21056 -} - + $_ = Object.create($_); //#21323 + $_.dontdraw = false; //#21326 + $k[$j++] = $_; //#21328 + bwipp_processoptions(); //#21328 + $_.options = $k[--$j]; //#21328 + $_.barcode = $k[--$j]; //#21329 + $put($_.options, "dontdraw", true); //#21332 + $put($_.options, "format", "micro"); //#21333 + $k[$j++] = 'args'; //#21335 + $k[$j++] = $_.barcode; //#21335 + $k[$j++] = $_.options; //#21335 + bwipp_qrcode(); //#21335 + var _6 = $k[--$j]; //#21335 + $_[$k[--$j]] = _6; //#21335 + $put($_.args, "opt", $_.options); //#21337 + $k[$j++] = $_.args; //#21340 + if (!$_.dontdraw) { //#21340 + bwipp_renmatrix(); //#21340 + } //#21340 + $_ = Object.getPrototypeOf($_); //#21342 +} //bwipp_microqrcode function bwipp_rectangularmicroqrcode() { - $_ = Object.create($_); //#21085 - $_.dontdraw = false; //#21088 - $k[$j++] = $_; //#21090 - bwipp_processoptions(); //#21090 - $_.options = $k[--$j]; //#21090 - $_.barcode = $k[--$j]; //#21091 - $put($_.options, "dontdraw", true); //#21094 - $put($_.options, "format", "rmqr"); //#21095 - $k[$j++] = 'args'; //#21097 - $k[$j++] = $_.barcode; //#21097 - $k[$j++] = $_.options; //#21097 - bwipp_qrcode(); //#21097 - var _6 = $k[--$j]; //#21097 - $_[$k[--$j]] = _6; //#21097 - $put($_.args, "opt", $_.options); //#21099 - $k[$j++] = $_.args; //#21102 - if (!$_.dontdraw) { //#21102 - bwipp_renmatrix(); //#21102 - } //#21102 - $_ = Object.getPrototypeOf($_); //#21104 -} - + $_ = Object.create($_); //#21371 + $_.dontdraw = false; //#21374 + $k[$j++] = $_; //#21376 + bwipp_processoptions(); //#21376 + $_.options = $k[--$j]; //#21376 + $_.barcode = $k[--$j]; //#21377 + $put($_.options, "dontdraw", true); //#21380 + $put($_.options, "format", "rmqr"); //#21381 + $k[$j++] = 'args'; //#21383 + $k[$j++] = $_.barcode; //#21383 + $k[$j++] = $_.options; //#21383 + bwipp_qrcode(); //#21383 + var _6 = $k[--$j]; //#21383 + $_[$k[--$j]] = _6; //#21383 + $put($_.args, "opt", $_.options); //#21385 + $k[$j++] = $_.args; //#21388 + if (!$_.dontdraw) { //#21388 + bwipp_renmatrix(); //#21388 + } //#21388 + $_ = Object.getPrototypeOf($_); //#21390 +} //bwipp_rectangularmicroqrcode function bwipp_maxicode() { - $_ = Object.create($_); //#21135 - $_.dontdraw = false; //#21138 - $_.mode = -1; //#21139 - $_.sam = -1; //#21140 - $_.parse = false; //#21141 - $_.parsefnc = false; //#21142 - $k[$j++] = $_; //#21144 - bwipp_processoptions(); //#21144 - $_.options = $k[--$j]; //#21144 - $_.barcode = $k[--$j]; //#21145 - if ($eq($_.barcode, "")) { //#21149 - $k[$j++] = 'bwipp.maxicodeEmptyData#21148'; //#21148 - $k[$j++] = "The data must not be empty"; //#21148 - bwipp_raiseerror(); //#21148 - } //#21148 - if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21153 - $k[$j++] = 'bwipp.maxicodeBadMode#21152'; //#21152 - $k[$j++] = "Mode must be 2 to 6"; //#21152 - bwipp_raiseerror(); //#21152 - } //#21152 - if ($_.sam != -1) { //#21165 - $k[$j++] = true; //#21161 - for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21161 - var _9 = $_.sam; //#21158 - if ((_9 < 12) || (_9 > 88)) { //#21158 - $j--; //#21158 - $k[$j++] = false; //#21158 - break; //#21158 - } //#21158 - var _B = $_.sam % 10; //#21159 - if ((_B < 2) || (_B > 8)) { //#21159 - $j--; //#21159 - $k[$j++] = false; //#21159 - break; //#21159 - } //#21159 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21160 - $j--; //#21160 - $k[$j++] = false; //#21160 - break; //#21160 - } //#21160 - } //#21160 - if ($nt($k[--$j])) { //#21164 - $k[$j++] = 'bwipp.maxicodeBadSAM#21163'; //#21163 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21163 - bwipp_raiseerror(); //#21163 - } //#21163 - } //#21163 - bwipp_loadctx(bwipp_maxicode) //#21167 + $_ = Object.create($_); //#21421 + $_.dontdraw = false; //#21424 + $_.mode = -1; //#21425 + $_.sam = -1; //#21426 + $_.parse = false; //#21427 + $_.parsefnc = false; //#21428 + $k[$j++] = $_; //#21430 + bwipp_processoptions(); //#21430 + $_.options = $k[--$j]; //#21430 + $_.barcode = $k[--$j]; //#21431 + if ($eq($_.barcode, "")) { //#21435 + $k[$j++] = 'bwipp.maxicodeEmptyData#21434'; //#21434 + $k[$j++] = "The data must not be empty"; //#21434 + bwipp_raiseerror(); //#21434 + } //#21434 + if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21439 + $k[$j++] = 'bwipp.maxicodeBadMode#21438'; //#21438 + $k[$j++] = "Mode must be 2 to 6"; //#21438 + bwipp_raiseerror(); //#21438 + } //#21438 + if ($_.sam != -1) { //#21451 + $k[$j++] = true; //#21447 + for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21447 + var _9 = $_.sam; //#21444 + if ((_9 < 12) || (_9 > 88)) { //#21444 + $j--; //#21444 + $k[$j++] = false; //#21444 + break; //#21444 + } //#21444 + var _B = $_.sam % 10; //#21445 + if ((_B < 2) || (_B > 8)) { //#21445 + $j--; //#21445 + $k[$j++] = false; //#21445 + break; //#21445 + } //#21445 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21446 + $j--; //#21446 + $k[$j++] = false; //#21446 + break; //#21446 + } //#21446 + } //#21446 + if ($nt($k[--$j])) { //#21450 + $k[$j++] = 'bwipp.maxicodeBadSAM#21449'; //#21449 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21449 + bwipp_raiseerror(); //#21449 + } //#21449 + } //#21449 + bwipp_loadctx(bwipp_maxicode) //#21453 var _H = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#21173 - $_.fncvals = _H; //#21175 - $k[$j++] = 'msg'; //#21176 - $k[$j++] = $_.barcode; //#21176 - $k[$j++] = $_.fncvals; //#21176 - bwipp_parseinput(); //#21176 - var _K = $k[--$j]; //#21176 - $_[$k[--$j]] = _K; //#21176 - $_.msglen = $_.msg.length; //#21177 - if (($_.mode == 2) || ($_.mode == 3)) { //#21265 - $_.barcode = $s($_.msglen); //#21183 - for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21189 - $_.i = _T; //#21185 - if ($get($_.msg, $_.i) > 0) { //#21188 - $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21187 - } //#21187 - } //#21187 - $_.barlen = $_.barcode.length; //#21190 - $_.fid = ""; //#21193 - if ($_.barlen >= 7) { //#21199 - if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21198 - $_.fid = $geti($_.barcode, 0, 9); //#21196 - $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21197 - } //#21197 - } //#21197 - $search($_.barcode, "\x1d"); //#21203 - if ($k[--$j]) { //#21225 - $_.pcode = $k[--$j]; //#21204 - $j--; //#21204 - if ($_.mode == 2) { //#21220 - $k[$j++] = true; //#21210 - for (var _p = 0, _q = 1; _p < _q; _p++) { //#21210 - if ($_.pcode.length > 9) { //#21208 - $j--; //#21208 - $k[$j++] = false; //#21208 - break; //#21208 - } //#21208 - $forall($_.pcode, function() { //#21209 - var _t = $k[--$j]; //#21209 - if ((_t < 48) || (_t > 57)) { //#21209 - $j--; //#21209 - $k[$j++] = false; //#21209 - return true; //#21209 - } //#21209 - }); //#21209 - } //#21209 - if ($nt($k[--$j])) { //#21213 - $j--; //#21212 - $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21212'; //#21212 - $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21212 - bwipp_raiseerror(); //#21212 - } //#21212 - } else { //#21220 - $forall($_.pcode, function() { //#21222 - var _w = $k[--$j]; //#21216 - if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21221 - $j--; //#21220 - $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21220'; //#21220 - $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21220 - bwipp_raiseerror(); //#21220 - } //#21220 - }); //#21220 - } //#21220 - } else { //#21225 - $j--; //#21225 - $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21225'; //#21225 - $k[$j++] = "Expected postcode followed by group separator character"; //#21225 - bwipp_raiseerror(); //#21225 - } //#21225 - $search($k[--$j], "\x1d"); //#21227 - if ($k[--$j]) { //#21238 - $_.ccode = $k[--$j]; //#21228 - $j--; //#21228 - $k[$j++] = true; //#21233 - for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21233 - if ($_.ccode.length != 3) { //#21231 - $j--; //#21231 - $k[$j++] = false; //#21231 - break; //#21231 - } //#21231 - $forall($_.ccode, function() { //#21232 - var _14 = $k[--$j]; //#21232 - if ((_14 < 48) || (_14 > 57)) { //#21232 - $j--; //#21232 - $k[$j++] = false; //#21232 - return true; //#21232 - } //#21232 - }); //#21232 - } //#21232 - if ($nt($k[--$j])) { //#21236 - $j--; //#21235 - $k[$j++] = 'bwipp.maxicodeBadCountryCode#21235'; //#21235 - $k[$j++] = "Country code must be three digits"; //#21235 - bwipp_raiseerror(); //#21235 - } //#21235 - } else { //#21238 - $j--; //#21238 - $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21238'; //#21238 - $k[$j++] = "Expected country code followed by group separator character"; //#21238 - bwipp_raiseerror(); //#21238 - } //#21238 - $search($k[--$j], "\x1d"); //#21240 - if ($k[--$j]) { //#21251 - $_.scode = $k[--$j]; //#21241 - $j--; //#21241 - $k[$j++] = true; //#21246 - for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21246 - if ($_.scode.length != 3) { //#21244 - $j--; //#21244 - $k[$j++] = false; //#21244 - break; //#21244 - } //#21244 - $forall($_.scode, function() { //#21245 - var _1D = $k[--$j]; //#21245 - if ((_1D < 48) || (_1D > 57)) { //#21245 - $j--; //#21245 - $k[$j++] = false; //#21245 - return true; //#21245 - } //#21245 - }); //#21245 - } //#21245 - if ($nt($k[--$j])) { //#21249 - $j--; //#21248 - $k[$j++] = 'bwipp.maxicodeBadServiceClass#21248'; //#21248 - $k[$j++] = "Service class must be three digits"; //#21248 - bwipp_raiseerror(); //#21248 - } //#21248 - } else { //#21251 - $j--; //#21251 - $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21251'; //#21251 - $k[$j++] = "Expected service class followed by group separator character"; //#21251 - bwipp_raiseerror(); //#21251 - } //#21251 - $_.barcode = $k[--$j]; //#21253 - var _1I = $s($_.barcode.length + $_.fid.length); //#21256 - $puti(_1I, 0, $_.fid); //#21257 - $puti(_1I, $_.fid.length, $_.barcode); //#21258 - $_.barcode = _1I; //#21259 - $_.barlen = $_.barcode.length; //#21260 - $k[$j++] = Infinity; //#21262 - var _1N = $_.barcode; //#21262 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21262 - $k[$j++] = $get(_1N, _1O); //#21262 - } //#21262 - $_.msg = $a(); //#21262 - $_.msglen = $_.msg.length; //#21263 - } //#21263 - if (!bwipp_maxicode.__21361__) { //#21361 - $_ = Object.create($_); //#21361 - $_.eci = -1; //#21269 - $_.pad = -2; //#21269 - $_.ns = -3; //#21269 - $_.la = -4; //#21270 - $_.lb = -5; //#21270 - $_.sa = -6; //#21271 - $_.sb = -7; //#21271 - $_.sc = -8; //#21271 - $_.sd = -9; //#21271 - $_.se = -10; //#21271 - $_.sa2 = -11; //#21272 - $_.sa3 = -12; //#21272 - $_.lkc = -13; //#21273 - $_.lkd = -14; //#21273 - $_.lke = -15; //#21273 - $_.pd2 = -16; //#21274 - $_.pd3 = -17; //#21274 - $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21343 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21346 - for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21355 - $_.i = _3G; //#21348 - $_.encs = $get($_.charmaps, $_.i); //#21349 - for (var _3K = 0; _3K <= 4; _3K += 1) { //#21354 - $_.j = _3K; //#21351 - var _3N = $get($_.encs, $_.j); //#21352 - $k[$j++] = _3N; //#21352 - if ($eq($type(_3N), 'stringtype')) { //#21352 - var _3Q = $get($k[--$j], 0); //#21352 - $k[$j++] = _3Q; //#21352 - } //#21352 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21353 - } //#21353 - } //#21353 - $_.seta = $get($_.charvals, 0); //#21356 - $_.setb = $get($_.charvals, 1); //#21357 - $_.setc = $get($_.charvals, 2); //#21358 - $_.setd = $get($_.charvals, 3); //#21359 - $_.sete = $get($_.charvals, 4); //#21360 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21360 - bwipp_maxicode.__21361__ = 1; //#21360 - $_ = Object.getPrototypeOf($_); //#21360 - } //#21360 - $k[$j++] = Infinity; //#21364 - for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21364 - $k[$j++] = 0; //#21364 - } //#21364 - $_.nseq = $a(); //#21364 - for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21372 - $_.i = _3m; //#21366 - var _3p = $get($_.msg, $_.i); //#21367 - if ((_3p >= 48) && (_3p <= 57)) { //#21370 - $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21368 - } else { //#21370 - $put($_.nseq, $_.i, 0); //#21370 - } //#21370 - } //#21370 - $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21373 + ]); //#21459 + $_.fncvals = _H; //#21461 + $k[$j++] = 'msg'; //#21462 + $k[$j++] = $_.barcode; //#21462 + $k[$j++] = $_.fncvals; //#21462 + bwipp_parseinput(); //#21462 + var _K = $k[--$j]; //#21462 + $_[$k[--$j]] = _K; //#21462 + $_.msglen = $_.msg.length; //#21463 + if (($_.mode == 2) || ($_.mode == 3)) { //#21551 + $_.barcode = $s($_.msglen); //#21469 + for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21475 + $_.i = _T; //#21471 + if ($get($_.msg, $_.i) > 0) { //#21474 + $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21473 + } //#21473 + } //#21473 + $_.barlen = $_.barcode.length; //#21476 + $_.fid = ""; //#21479 + if ($_.barlen >= 7) { //#21485 + if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21484 + $_.fid = $geti($_.barcode, 0, 9); //#21482 + $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21483 + } //#21483 + } //#21483 + $search($_.barcode, "\x1d"); //#21489 + if ($k[--$j]) { //#21511 + $_.pcode = $k[--$j]; //#21490 + $j--; //#21490 + if ($_.mode == 2) { //#21506 + $k[$j++] = true; //#21496 + for (var _p = 0, _q = 1; _p < _q; _p++) { //#21496 + if ($_.pcode.length > 9) { //#21494 + $j--; //#21494 + $k[$j++] = false; //#21494 + break; //#21494 + } //#21494 + $forall($_.pcode, function() { //#21495 + var _t = $k[--$j]; //#21495 + if ((_t < 48) || (_t > 57)) { //#21495 + $j--; //#21495 + $k[$j++] = false; //#21495 + return true; //#21495 + } //#21495 + }); //#21495 + } //#21495 + if ($nt($k[--$j])) { //#21499 + $j--; //#21498 + $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21498'; //#21498 + $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21498 + bwipp_raiseerror(); //#21498 + } //#21498 + } else { //#21506 + $forall($_.pcode, function() { //#21508 + var _w = $k[--$j]; //#21502 + if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21507 + $j--; //#21506 + $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21506'; //#21506 + $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21506 + bwipp_raiseerror(); //#21506 + } //#21506 + }); //#21506 + } //#21506 + } else { //#21511 + $j--; //#21511 + $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21511'; //#21511 + $k[$j++] = "Expected postcode followed by group separator character"; //#21511 + bwipp_raiseerror(); //#21511 + } //#21511 + $search($k[--$j], "\x1d"); //#21513 + if ($k[--$j]) { //#21524 + $_.ccode = $k[--$j]; //#21514 + $j--; //#21514 + $k[$j++] = true; //#21519 + for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21519 + if ($_.ccode.length != 3) { //#21517 + $j--; //#21517 + $k[$j++] = false; //#21517 + break; //#21517 + } //#21517 + $forall($_.ccode, function() { //#21518 + var _14 = $k[--$j]; //#21518 + if ((_14 < 48) || (_14 > 57)) { //#21518 + $j--; //#21518 + $k[$j++] = false; //#21518 + return true; //#21518 + } //#21518 + }); //#21518 + } //#21518 + if ($nt($k[--$j])) { //#21522 + $j--; //#21521 + $k[$j++] = 'bwipp.maxicodeBadCountryCode#21521'; //#21521 + $k[$j++] = "Country code must be three digits"; //#21521 + bwipp_raiseerror(); //#21521 + } //#21521 + } else { //#21524 + $j--; //#21524 + $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21524'; //#21524 + $k[$j++] = "Expected country code followed by group separator character"; //#21524 + bwipp_raiseerror(); //#21524 + } //#21524 + $search($k[--$j], "\x1d"); //#21526 + if ($k[--$j]) { //#21537 + $_.scode = $k[--$j]; //#21527 + $j--; //#21527 + $k[$j++] = true; //#21532 + for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21532 + if ($_.scode.length != 3) { //#21530 + $j--; //#21530 + $k[$j++] = false; //#21530 + break; //#21530 + } //#21530 + $forall($_.scode, function() { //#21531 + var _1D = $k[--$j]; //#21531 + if ((_1D < 48) || (_1D > 57)) { //#21531 + $j--; //#21531 + $k[$j++] = false; //#21531 + return true; //#21531 + } //#21531 + }); //#21531 + } //#21531 + if ($nt($k[--$j])) { //#21535 + $j--; //#21534 + $k[$j++] = 'bwipp.maxicodeBadServiceClass#21534'; //#21534 + $k[$j++] = "Service class must be three digits"; //#21534 + bwipp_raiseerror(); //#21534 + } //#21534 + } else { //#21537 + $j--; //#21537 + $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21537'; //#21537 + $k[$j++] = "Expected service class followed by group separator character"; //#21537 + bwipp_raiseerror(); //#21537 + } //#21537 + $_.barcode = $k[--$j]; //#21539 + var _1I = $s($_.barcode.length + $_.fid.length); //#21542 + $puti(_1I, 0, $_.fid); //#21543 + $puti(_1I, $_.fid.length, $_.barcode); //#21544 + $_.barcode = _1I; //#21545 + $_.barlen = $_.barcode.length; //#21546 + $k[$j++] = Infinity; //#21548 + var _1N = $_.barcode; //#21548 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21548 + $k[$j++] = $get(_1N, _1O); //#21548 + } //#21548 + $_.msg = $a(); //#21548 + $_.msglen = $_.msg.length; //#21549 + } //#21549 + if (!bwipp_maxicode.__21647__) { //#21647 + $_ = Object.create($_); //#21647 + $_.eci = -1; //#21555 + $_.pad = -2; //#21555 + $_.ns = -3; //#21555 + $_.la = -4; //#21556 + $_.lb = -5; //#21556 + $_.sa = -6; //#21557 + $_.sb = -7; //#21557 + $_.sc = -8; //#21557 + $_.sd = -9; //#21557 + $_.se = -10; //#21557 + $_.sa2 = -11; //#21558 + $_.sa3 = -12; //#21558 + $_.lkc = -13; //#21559 + $_.lkd = -14; //#21559 + $_.lke = -15; //#21559 + $_.pd2 = -16; //#21560 + $_.pd3 = -17; //#21560 + $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21629 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21632 + for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21641 + $_.i = _3G; //#21634 + $_.encs = $get($_.charmaps, $_.i); //#21635 + for (var _3K = 0; _3K <= 4; _3K += 1) { //#21640 + $_.j = _3K; //#21637 + var _3N = $get($_.encs, $_.j); //#21638 + $k[$j++] = _3N; //#21638 + if ($eq($type(_3N), 'stringtype')) { //#21638 + var _3Q = $get($k[--$j], 0); //#21638 + $k[$j++] = _3Q; //#21638 + } //#21638 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21639 + } //#21639 + } //#21639 + $_.seta = $get($_.charvals, 0); //#21642 + $_.setb = $get($_.charvals, 1); //#21643 + $_.setc = $get($_.charvals, 2); //#21644 + $_.setd = $get($_.charvals, 3); //#21645 + $_.sete = $get($_.charvals, 4); //#21646 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21646 + bwipp_maxicode.__21647__ = 1; //#21646 + $_ = Object.getPrototypeOf($_); //#21646 + } //#21646 + $k[$j++] = Infinity; //#21650 + for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21650 + $k[$j++] = 0; //#21650 + } //#21650 + $_.nseq = $a(); //#21650 + for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21658 + $_.i = _3m; //#21652 + var _3p = $get($_.msg, $_.i); //#21653 + if ((_3p >= 48) && (_3p <= 57)) { //#21656 + $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21654 + } else { //#21656 + $put($_.nseq, $_.i, 0); //#21656 + } //#21656 + } //#21656 + $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21659 $_.prefixinset = function() { - $k[$j++] = 0; //#21380 - for (;;) { //#21380 - var _40 = $k[--$j]; //#21378 - var _41 = $k[--$j]; //#21378 - $k[$j++] = _41; //#21378 - $k[$j++] = _40; //#21378 - if (_40 >= _41.length) { //#21378 - break; //#21378 - } //#21378 - var _42 = $k[--$j]; //#21379 - var _43 = $k[--$j]; //#21379 - var _45 = $k[--$j]; //#21379 - var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21379 - $k[$j++] = _45; //#21379 - $k[$j++] = _43; //#21379 - $k[$j++] = _42; //#21379 - if (_46) { //#21379 - var _47 = $k[--$j]; //#21379 - $k[$j++] = $f(_47 + 1); //#21379 - } else { //#21379 - break; //#21379 - } //#21379 - } //#21379 - var _48 = $k[--$j]; //#21381 - var _49 = $k[--$j]; //#21381 - $k[$j++] = _48; //#21381 - $k[$j++] = _49; //#21381 - $j--; //#21381 - var _4A = $k[--$j]; //#21381 - var _4B = $k[--$j]; //#21381 - $k[$j++] = _4A; //#21381 - $k[$j++] = _4B; //#21381 - $j--; //#21381 - }; //#21381 + $k[$j++] = 0; //#21666 + for (;;) { //#21666 + var _40 = $k[--$j]; //#21664 + var _41 = $k[--$j]; //#21664 + $k[$j++] = _41; //#21664 + $k[$j++] = _40; //#21664 + if (_40 >= _41.length) { //#21664 + break; //#21664 + } //#21664 + var _42 = $k[--$j]; //#21665 + var _43 = $k[--$j]; //#21665 + var _45 = $k[--$j]; //#21665 + var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21665 + $k[$j++] = _45; //#21665 + $k[$j++] = _43; //#21665 + $k[$j++] = _42; //#21665 + if (_46) { //#21665 + var _47 = $k[--$j]; //#21665 + $k[$j++] = $f(_47 + 1); //#21665 + } else { //#21665 + break; //#21665 + } //#21665 + } //#21665 + var _48 = $k[--$j]; //#21667 + var _49 = $k[--$j]; //#21667 + $k[$j++] = _48; //#21667 + $k[$j++] = _49; //#21667 + $j--; //#21667 + var _4A = $k[--$j]; //#21667 + var _4B = $k[--$j]; //#21667 + $k[$j++] = _4A; //#21667 + $k[$j++] = _4B; //#21667 + $j--; //#21667 + }; //#21667 $_.enc = function() { - var _4C = $k[--$j]; //#21385 - $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21385 - $_.j = $_.j + 1; //#21386 - }; //#21386 - $_.out = $a(144); //#21389 - $_.i = 0; //#21390 - $_.j = 0; //#21390 - $_.cset = "seta"; //#21390 - for (;;) { //#21542 - if ($_.i == $_.msglen) { //#21399 - if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21397 - $k[$j++] = $_.la; //#21395 - $k[$j++] = $_[$_.cset]; //#21395 - $_.enc(); //#21395 - $_.cset = "seta"; //#21396 - } //#21396 - break; //#21398 - } //#21398 - for (;;) { //#21541 - if ($get($_.msg, $_.i) <= -1000000) { //#21428 - $k[$j++] = $_.eci; //#21403 - $k[$j++] = $_[$_.cset]; //#21403 - $_.enc(); //#21403 - var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21405 - $k[$j++] = _4Z; //#21423 - if (_4Z <= 31) { //#21422 - var _4a = $k[--$j]; //#21406 - $k[$j++] = _4a & 63; //#21407 - $astore($a(1)); //#21407 - } else { //#21422 - var _4c = $k[--$j]; //#21408 - $k[$j++] = _4c; //#21423 - if (_4c <= 1023) { //#21422 - var _4d = $k[--$j]; //#21409 - $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21411 - $k[$j++] = _4d & 63; //#21411 - $astore($a(2)); //#21411 - } else { //#21422 - var _4f = $k[--$j]; //#21412 - $k[$j++] = _4f; //#21423 - if (_4f <= 32767) { //#21422 - var _4g = $k[--$j]; //#21413 - $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21416 - $k[$j++] = (_4g >>> 6) & 63; //#21416 - $k[$j++] = _4g & 63; //#21416 - $astore($a(3)); //#21416 - } else { //#21422 - var _4i = $k[--$j]; //#21418 - $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21422 - $k[$j++] = (_4i >>> 12) & 63; //#21422 - $k[$j++] = (_4i >>> 6) & 63; //#21422 - $k[$j++] = _4i & 63; //#21422 - $astore($a(4)); //#21422 - } //#21422 - } //#21422 - } //#21422 - var _4k = $k[--$j]; //#21424 - $puti($_.out, $_.j, _4k); //#21424 - $_.j = _4k.length + $_.j; //#21425 - $_.i = $_.i + 1; //#21426 - break; //#21427 - } //#21427 - if ($get($_.nseq, $_.i) >= 9) { //#21439 - var _4u = $geti($_.msg, $_.i, 9); //#21432 - $k[$j++] = 0; //#21432 - for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21432 - var _4y = $k[--$j]; //#21432 - $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21432 - } //#21432 - var _4z = $k[--$j]; //#21432 - $k[$j++] = ~~(_4z / 10); //#21433 - for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21433 - var _52 = $k[--$j]; //#21433 - $k[$j++] = _52 & 63; //#21433 - $k[$j++] = _52 >>> 6; //#21433 - } //#21433 - $k[$j++] = $get($_[$_.cset], $_.ns); //#21434 - for (var _57 = 0; _57 <= 10; _57 += 2) { //#21434 - var _58 = $k[$j - 1 - _57]; //#21434 - $k[$j++] = _58; //#21434 - } //#21434 - $astore($a(6)); //#21434 - var _5A = $k[--$j]; //#21434 - var _5B = $k[--$j]; //#21434 - var _5C = $k[--$j]; //#21434 - var _5D = $k[--$j]; //#21434 - var _5E = $k[--$j]; //#21434 - var _5F = $k[--$j]; //#21434 - var _5G = $k[--$j]; //#21434 - $k[$j++] = _5A; //#21434 - $k[$j++] = _5G; //#21434 - $k[$j++] = _5F; //#21434 - $k[$j++] = _5E; //#21434 - $k[$j++] = _5D; //#21434 - $k[$j++] = _5C; //#21434 - $k[$j++] = _5B; //#21434 - for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21434 - $j--; //#21434 - } //#21434 - $puti($_.out, $_.j, $k[--$j]); //#21435 - $_.i = $_.i + 9; //#21436 - $_.j = $_.j + 6; //#21437 - break; //#21438 - } //#21438 - $_.char1 = $get($_.msg, $_.i); //#21442 - $k[$j++] = 'char2'; //#21443 - if (($_.i + 1) < $_.msglen) { //#21443 - $k[$j++] = $get($_.msg, $_.i + 1); //#21443 - } else { //#21443 - $k[$j++] = -99; //#21443 - } //#21443 - var _5W = $k[--$j]; //#21443 - $_[$k[--$j]] = _5W; //#21443 - $k[$j++] = 'char3'; //#21444 - if (($_.i + 2) < $_.msglen) { //#21444 - $k[$j++] = $get($_.msg, $_.i + 2); //#21444 - } else { //#21444 - $k[$j++] = -99; //#21444 - } //#21444 - var _5d = $k[--$j]; //#21444 - $_[$k[--$j]] = _5d; //#21444 - var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21447 - if (_5i) { //#21451 - $k[$j++] = $_.char1; //#21448 - $k[$j++] = $_[$_.cset]; //#21448 - $_.enc(); //#21448 - $_.i = $_.i + 1; //#21449 - break; //#21450 - } //#21450 - var _5q = $get($_.setb, $_.char1) !== undefined; //#21454 - if ($eq($_.cset, "seta") && _5q) { //#21464 - var _5t = $get($_.setb, $_.char2) !== undefined; //#21455 - if (_5t) { //#21461 - $k[$j++] = $_.lb; //#21456 - $k[$j++] = $_.seta; //#21456 - $_.enc(); //#21456 - $_.cset = "setb"; //#21457 - } else { //#21461 - $k[$j++] = $_.sb; //#21459 - $k[$j++] = $_.seta; //#21459 - $_.enc(); //#21459 - $k[$j++] = $_.char1; //#21460 - $k[$j++] = $_.setb; //#21460 - $_.enc(); //#21460 - $_.i = $_.i + 1; //#21461 - } //#21461 - break; //#21463 - } //#21463 - var _64 = $get($_.seta, $_.char1) !== undefined; //#21467 - if ($eq($_.cset, "setb") && _64) { //#21492 - var _65 = $_.seta; //#21468 - var _66 = $_.msg; //#21468 - var _67 = $_.i; //#21468 - var _68 = $_.msglen; //#21468 - var _69 = $_.i; //#21468 - var _6A = _68 - _69; //#21468 - var _6B = 4; //#21468 - if (4 > (_68 - _69)) { //#21468 - var _ = _6A; //#21468 - _6A = _6B; //#21468 - _6B = _; //#21468 - } //#21468 - $k[$j++] = 'p'; //#21468 - $k[$j++] = _65; //#21468 - $k[$j++] = $geti(_66, _67, _6B); //#21468 - $_.prefixinset(); //#21468 - var _6D = $k[--$j]; //#21468 - $_[$k[--$j]] = _6D; //#21468 - if ($_.p == 1) { //#21473 - $k[$j++] = $_.sa; //#21470 - $k[$j++] = $_.setb; //#21470 - $_.enc(); //#21470 - $k[$j++] = $_.char1; //#21471 - $k[$j++] = $_.seta; //#21471 - $_.enc(); //#21471 - $_.i = $_.i + 1; //#21472 - } //#21472 - if ($_.p == 2) { //#21479 - $k[$j++] = $_.sa2; //#21475 - $k[$j++] = $_.setb; //#21475 - $_.enc(); //#21475 - $k[$j++] = $_.char1; //#21476 - $k[$j++] = $_.seta; //#21476 - $_.enc(); //#21476 - $k[$j++] = $_.char2; //#21477 - $k[$j++] = $_.seta; //#21477 - $_.enc(); //#21477 - $_.i = $_.i + 2; //#21478 - } //#21478 - if ($_.p == 3) { //#21486 - $k[$j++] = $_.sa3; //#21481 - $k[$j++] = $_.setb; //#21481 - $_.enc(); //#21481 - $k[$j++] = $_.char1; //#21482 - $k[$j++] = $_.seta; //#21482 - $_.enc(); //#21482 - $k[$j++] = $_.char2; //#21483 - $k[$j++] = $_.seta; //#21483 - $_.enc(); //#21483 - $k[$j++] = $_.char3; //#21484 - $k[$j++] = $_.seta; //#21484 - $_.enc(); //#21484 - $_.i = $_.i + 3; //#21485 - } //#21485 - if ($_.p >= 4) { //#21490 - $k[$j++] = $_.la; //#21488 - $k[$j++] = $_.setb; //#21488 - $_.enc(); //#21488 - $_.cset = "seta"; //#21489 - } //#21489 - break; //#21491 - } //#21491 - var _6i = $get($_.seta, $_.char1) !== undefined; //#21495 - if (_6i) { //#21499 - $k[$j++] = $_.la; //#21496 - $k[$j++] = $_[$_.cset]; //#21496 - $_.enc(); //#21496 - $_.cset = "seta"; //#21497 - break; //#21498 - } //#21498 - var _6o = $get($_.setb, $_.char1) !== undefined; //#21500 - if (_6o) { //#21504 - $k[$j++] = $_.lb; //#21501 - $k[$j++] = $_[$_.cset]; //#21501 - $_.enc(); //#21501 - $_.cset = "setb"; //#21502 - break; //#21503 - } //#21503 - var _6u = $get($_.setc, $_.char1) !== undefined; //#21507 - if (_6u) { //#21507 - $_.setx = "setc"; //#21507 - $_.sx = $_.sc; //#21507 - $_.lkx = $_.lkc; //#21507 - } //#21507 - var _6z = $get($_.setd, $_.char1) !== undefined; //#21508 - if (_6z) { //#21508 - $_.setx = "setd"; //#21508 - $_.sx = $_.sd; //#21508 - $_.lkx = $_.lkd; //#21508 - } //#21508 - var _74 = $get($_.sete, $_.char1) !== undefined; //#21509 - if (_74) { //#21509 - $_.setx = "sete"; //#21509 - $_.sx = $_.se; //#21509 - $_.lkx = $_.lke; //#21509 - } //#21509 - var _78 = $_[$_.setx]; //#21512 - var _79 = $_.msg; //#21512 - var _7A = $_.i; //#21512 - var _7B = $_.msglen; //#21512 - var _7C = $_.i; //#21512 - var _7D = _7B - _7C; //#21512 - var _7E = 4; //#21512 - if (4 > (_7B - _7C)) { //#21512 - var _ = _7D; //#21512 - _7D = _7E; //#21512 - _7E = _; //#21512 - } //#21512 - $k[$j++] = 'p'; //#21512 - $k[$j++] = _78; //#21512 - $k[$j++] = $geti(_79, _7A, _7E); //#21512 - $_.prefixinset(); //#21512 - var _7G = $k[--$j]; //#21512 - $_[$k[--$j]] = _7G; //#21512 - if ($_.p == 1) { //#21517 - $k[$j++] = $_.sx; //#21514 - $k[$j++] = $_[$_.cset]; //#21514 - $_.enc(); //#21514 - $k[$j++] = $_.char1; //#21515 - $k[$j++] = $_[$_.setx]; //#21515 - $_.enc(); //#21515 - $_.i = $_.i + 1; //#21516 - } //#21516 - if ($_.p == 2) { //#21524 - $k[$j++] = $_.sx; //#21519 - $k[$j++] = $_[$_.cset]; //#21519 - $_.enc(); //#21519 - $k[$j++] = $_.char1; //#21520 - $k[$j++] = $_[$_.setx]; //#21520 - $_.enc(); //#21520 - $k[$j++] = $_.sx; //#21521 - $k[$j++] = $_[$_.cset]; //#21521 - $_.enc(); //#21521 - $k[$j++] = $_.char2; //#21522 - $k[$j++] = $_[$_.setx]; //#21522 - $_.enc(); //#21522 - $_.i = $_.i + 2; //#21523 - } //#21523 - if ($_.p == 3) { //#21533 - $k[$j++] = $_.sx; //#21526 - $k[$j++] = $_[$_.cset]; //#21526 - $_.enc(); //#21526 - $k[$j++] = $_.char1; //#21527 - $k[$j++] = $_[$_.setx]; //#21527 - $_.enc(); //#21527 - $k[$j++] = $_.sx; //#21528 - $k[$j++] = $_[$_.cset]; //#21528 - $_.enc(); //#21528 - $k[$j++] = $_.char2; //#21529 - $k[$j++] = $_[$_.setx]; //#21529 - $_.enc(); //#21529 - $k[$j++] = $_.sx; //#21530 - $k[$j++] = $_[$_.cset]; //#21530 - $_.enc(); //#21530 - $k[$j++] = $_.char3; //#21531 - $k[$j++] = $_[$_.setx]; //#21531 - $_.enc(); //#21531 - $_.i = $_.i + 3; //#21532 - } //#21532 - if ($_.p >= 4) { //#21538 - $k[$j++] = $_.sx; //#21535 - $k[$j++] = $_[$_.cset]; //#21535 - $_.enc(); //#21535 - $k[$j++] = $_.lkx; //#21536 - $k[$j++] = $_[$_.setx]; //#21536 - $_.enc(); //#21536 - $_.cset = $_.setx; //#21537 - } //#21537 - break; //#21540 - } //#21540 - } //#21540 - $_.encmsg = $geti($_.out, 0, $_.j); //#21543 - $_.padval = $get($_[$_.cset], $_.pad); //#21544 - $k[$j++] = 'sami'; //#21547 - if ($_.sam != -1) { //#21547 - $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21547 - } else { //#21547 - $k[$j++] = $a([]); //#21547 - } //#21547 - var _8L = $k[--$j]; //#21547 - $_[$k[--$j]] = _8L; //#21547 - $k[$j++] = Infinity; //#21548 - $aload($_.sami); //#21548 - $aload($_.encmsg); //#21548 - $_.encmsg = $a(); //#21548 - if (($_.mode == 2) || ($_.mode == 3)) { //#21607 - if ($_.encmsg.length > 84) { //#21555 - $k[$j++] = 'bwipp.maxicodeMode23TooLong#21554'; //#21554 - $k[$j++] = "The secondary message is too long"; //#21554 - bwipp_raiseerror(); //#21554 - } //#21554 - var _8U = $strcpy($s(4), "0000"); //#21558 - var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21558 - $puti(_8U, 4 - _8X.length, _8X); //#21558 - $_.mdb = _8U; //#21558 - var _8Z = $strcpy($s(10), "0000000000"); //#21559 - var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21559 - $puti(_8Z, 10 - _8c.length, _8c); //#21559 - $_.ccb = _8Z; //#21559 - var _8e = $strcpy($s(10), "0000000000"); //#21560 - var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21560 - $puti(_8e, 10 - _8h.length, _8h); //#21560 - $_.scb = _8e; //#21560 - $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21561 - if ($_.mode == 2) { //#21574 - var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21564 - $puti($_.pcb, 6 - _8o.length, _8o); //#21564 - var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21565 - $puti($_.pcb, 36 - _8s.length, _8s); //#21565 - } else { //#21574 - $k[$j++] = Infinity; //#21570 - var _8u = $strcpy($s(6), " "); //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = 0; //#21569 - if ($_.pcode.length > 6) { //#21569 - $k[$j++] = $geti($_.pcode, 0, 6); //#21569 - } else { //#21569 - $k[$j++] = $_.pcode; //#21569 - } //#21569 - var _8z = $k[--$j]; //#21569 - var _90 = $k[--$j]; //#21569 - $puti($k[--$j], _90, _8z); //#21569 - $forall($k[--$j], function() { //#21570 - var _95 = $get($_.seta, $k[--$j]); //#21570 - $k[$j++] = _95; //#21570 - }); //#21570 - $_.pccw = $a(); //#21570 - for (var _97 = 0; _97 <= 5; _97 += 1) { //#21575 - $_.i = _97; //#21573 - var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21574 - $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21574 - } //#21574 - } //#21574 - $_.scm = $s(60); //#21579 - $puti($_.scm, 2, $_.mdb); //#21580 - $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21581 - $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21582 - $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21583 - $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21584 - $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21585 - $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21586 - $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21587 - $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21588 - $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21589 - $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21590 - $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21591 - $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21592 - $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21595 - for (var _9t = 0; _9t <= 59; _9t += 1) { //#21601 - $_.i = _9t; //#21597 - $_.ps = ~~($_.i / 6); //#21598 - $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21599 - $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21600 - } //#21600 - $k[$j++] = Infinity; //#21604 - for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21604 - $k[$j++] = $_.padval; //#21604 - } //#21604 - $_.sec = $a(); //#21604 - $puti($_.sec, 0, $_.encmsg); //#21605 - } //#21605 - if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21628 - if ($_.mode == -1) { //#21615 - var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21614 - $_.mode = _AH; //#21614 - } //#21614 - $k[$j++] = Infinity; //#21617 - var _AJ = ($_.mode == 5) ? 78 : 94; //#21617 - for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21617 - $k[$j++] = $_.padval; //#21617 - } //#21617 - $_.cws = $a(); //#21617 - if ($_.encmsg.length > ($_.cws.length - 1)) { //#21620 - $k[$j++] = 'bwipp.maxicodeMode56TooLong#21619'; //#21619 - $k[$j++] = "The message is too long"; //#21619 - bwipp_raiseerror(); //#21619 - } //#21619 - $put($_.cws, 0, $_.mode); //#21621 - $puti($_.cws, 1, $_.encmsg); //#21622 - $_.pri = $geti($_.cws, 0, 10); //#21625 - $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21626 - } //#21626 - $k[$j++] = Infinity; //#21631 - $k[$j++] = 1; //#21631 - for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21631 - var _Ab = $k[--$j]; //#21631 - var _Ac = _Ab * 2; //#21631 - $k[$j++] = _Ab; //#21631 - $k[$j++] = _Ac; //#21631 - if (_Ac >= 64) { //#21631 - var _Ad = $k[--$j]; //#21631 - $k[$j++] = _Ad ^ 67; //#21631 - } //#21631 - } //#21631 - $_.rsalog = $a(); //#21631 - $_.rslog = $a(64); //#21632 - for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21633 - $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21633 - } //#21633 + var _4C = $k[--$j]; //#21671 + $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21671 + $_.j = $_.j + 1; //#21672 + }; //#21672 + $_.out = $a(144); //#21675 + $_.i = 0; //#21676 + $_.j = 0; //#21676 + $_.cset = "seta"; //#21676 + for (;;) { //#21828 + if ($_.i == $_.msglen) { //#21685 + if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21683 + $k[$j++] = $_.la; //#21681 + $k[$j++] = $_[$_.cset]; //#21681 + $_.enc(); //#21681 + $_.cset = "seta"; //#21682 + } //#21682 + break; //#21684 + } //#21684 + for (;;) { //#21827 + if ($get($_.msg, $_.i) <= -1000000) { //#21714 + $k[$j++] = $_.eci; //#21689 + $k[$j++] = $_[$_.cset]; //#21689 + $_.enc(); //#21689 + var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21691 + $k[$j++] = _4Z; //#21709 + if (_4Z <= 31) { //#21708 + var _4a = $k[--$j]; //#21692 + $k[$j++] = _4a & 63; //#21693 + $astore($a(1)); //#21693 + } else { //#21708 + var _4c = $k[--$j]; //#21694 + $k[$j++] = _4c; //#21709 + if (_4c <= 1023) { //#21708 + var _4d = $k[--$j]; //#21695 + $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21697 + $k[$j++] = _4d & 63; //#21697 + $astore($a(2)); //#21697 + } else { //#21708 + var _4f = $k[--$j]; //#21698 + $k[$j++] = _4f; //#21709 + if (_4f <= 32767) { //#21708 + var _4g = $k[--$j]; //#21699 + $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21702 + $k[$j++] = (_4g >>> 6) & 63; //#21702 + $k[$j++] = _4g & 63; //#21702 + $astore($a(3)); //#21702 + } else { //#21708 + var _4i = $k[--$j]; //#21704 + $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21708 + $k[$j++] = (_4i >>> 12) & 63; //#21708 + $k[$j++] = (_4i >>> 6) & 63; //#21708 + $k[$j++] = _4i & 63; //#21708 + $astore($a(4)); //#21708 + } //#21708 + } //#21708 + } //#21708 + var _4k = $k[--$j]; //#21710 + $puti($_.out, $_.j, _4k); //#21710 + $_.j = _4k.length + $_.j; //#21711 + $_.i = $_.i + 1; //#21712 + break; //#21713 + } //#21713 + if ($get($_.nseq, $_.i) >= 9) { //#21725 + var _4u = $geti($_.msg, $_.i, 9); //#21718 + $k[$j++] = 0; //#21718 + for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21718 + var _4y = $k[--$j]; //#21718 + $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21718 + } //#21718 + var _4z = $k[--$j]; //#21718 + $k[$j++] = ~~(_4z / 10); //#21719 + for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21719 + var _52 = $k[--$j]; //#21719 + $k[$j++] = _52 & 63; //#21719 + $k[$j++] = _52 >>> 6; //#21719 + } //#21719 + $k[$j++] = $get($_[$_.cset], $_.ns); //#21720 + for (var _57 = 0; _57 <= 10; _57 += 2) { //#21720 + var _58 = $k[$j - 1 - _57]; //#21720 + $k[$j++] = _58; //#21720 + } //#21720 + $astore($a(6)); //#21720 + var _5A = $k[--$j]; //#21720 + var _5B = $k[--$j]; //#21720 + var _5C = $k[--$j]; //#21720 + var _5D = $k[--$j]; //#21720 + var _5E = $k[--$j]; //#21720 + var _5F = $k[--$j]; //#21720 + var _5G = $k[--$j]; //#21720 + $k[$j++] = _5A; //#21720 + $k[$j++] = _5G; //#21720 + $k[$j++] = _5F; //#21720 + $k[$j++] = _5E; //#21720 + $k[$j++] = _5D; //#21720 + $k[$j++] = _5C; //#21720 + $k[$j++] = _5B; //#21720 + for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21720 + $j--; //#21720 + } //#21720 + $puti($_.out, $_.j, $k[--$j]); //#21721 + $_.i = $_.i + 9; //#21722 + $_.j = $_.j + 6; //#21723 + break; //#21724 + } //#21724 + $_.char1 = $get($_.msg, $_.i); //#21728 + $k[$j++] = 'char2'; //#21729 + if (($_.i + 1) < $_.msglen) { //#21729 + $k[$j++] = $get($_.msg, $_.i + 1); //#21729 + } else { //#21729 + $k[$j++] = -99; //#21729 + } //#21729 + var _5W = $k[--$j]; //#21729 + $_[$k[--$j]] = _5W; //#21729 + $k[$j++] = 'char3'; //#21730 + if (($_.i + 2) < $_.msglen) { //#21730 + $k[$j++] = $get($_.msg, $_.i + 2); //#21730 + } else { //#21730 + $k[$j++] = -99; //#21730 + } //#21730 + var _5d = $k[--$j]; //#21730 + $_[$k[--$j]] = _5d; //#21730 + var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21733 + if (_5i) { //#21737 + $k[$j++] = $_.char1; //#21734 + $k[$j++] = $_[$_.cset]; //#21734 + $_.enc(); //#21734 + $_.i = $_.i + 1; //#21735 + break; //#21736 + } //#21736 + var _5q = $get($_.setb, $_.char1) !== undefined; //#21740 + if ($eq($_.cset, "seta") && _5q) { //#21750 + var _5t = $get($_.setb, $_.char2) !== undefined; //#21741 + if (_5t) { //#21747 + $k[$j++] = $_.lb; //#21742 + $k[$j++] = $_.seta; //#21742 + $_.enc(); //#21742 + $_.cset = "setb"; //#21743 + } else { //#21747 + $k[$j++] = $_.sb; //#21745 + $k[$j++] = $_.seta; //#21745 + $_.enc(); //#21745 + $k[$j++] = $_.char1; //#21746 + $k[$j++] = $_.setb; //#21746 + $_.enc(); //#21746 + $_.i = $_.i + 1; //#21747 + } //#21747 + break; //#21749 + } //#21749 + var _64 = $get($_.seta, $_.char1) !== undefined; //#21753 + if ($eq($_.cset, "setb") && _64) { //#21778 + var _65 = $_.seta; //#21754 + var _66 = $_.msg; //#21754 + var _67 = $_.i; //#21754 + var _68 = $_.msglen; //#21754 + var _69 = $_.i; //#21754 + var _6A = _68 - _69; //#21754 + var _6B = 4; //#21754 + if (4 > (_68 - _69)) { //#21754 + var _ = _6A; //#21754 + _6A = _6B; //#21754 + _6B = _; //#21754 + } //#21754 + $k[$j++] = 'p'; //#21754 + $k[$j++] = _65; //#21754 + $k[$j++] = $geti(_66, _67, _6B); //#21754 + $_.prefixinset(); //#21754 + var _6D = $k[--$j]; //#21754 + $_[$k[--$j]] = _6D; //#21754 + if ($_.p == 1) { //#21759 + $k[$j++] = $_.sa; //#21756 + $k[$j++] = $_.setb; //#21756 + $_.enc(); //#21756 + $k[$j++] = $_.char1; //#21757 + $k[$j++] = $_.seta; //#21757 + $_.enc(); //#21757 + $_.i = $_.i + 1; //#21758 + } //#21758 + if ($_.p == 2) { //#21765 + $k[$j++] = $_.sa2; //#21761 + $k[$j++] = $_.setb; //#21761 + $_.enc(); //#21761 + $k[$j++] = $_.char1; //#21762 + $k[$j++] = $_.seta; //#21762 + $_.enc(); //#21762 + $k[$j++] = $_.char2; //#21763 + $k[$j++] = $_.seta; //#21763 + $_.enc(); //#21763 + $_.i = $_.i + 2; //#21764 + } //#21764 + if ($_.p == 3) { //#21772 + $k[$j++] = $_.sa3; //#21767 + $k[$j++] = $_.setb; //#21767 + $_.enc(); //#21767 + $k[$j++] = $_.char1; //#21768 + $k[$j++] = $_.seta; //#21768 + $_.enc(); //#21768 + $k[$j++] = $_.char2; //#21769 + $k[$j++] = $_.seta; //#21769 + $_.enc(); //#21769 + $k[$j++] = $_.char3; //#21770 + $k[$j++] = $_.seta; //#21770 + $_.enc(); //#21770 + $_.i = $_.i + 3; //#21771 + } //#21771 + if ($_.p >= 4) { //#21776 + $k[$j++] = $_.la; //#21774 + $k[$j++] = $_.setb; //#21774 + $_.enc(); //#21774 + $_.cset = "seta"; //#21775 + } //#21775 + break; //#21777 + } //#21777 + var _6i = $get($_.seta, $_.char1) !== undefined; //#21781 + if (_6i) { //#21785 + $k[$j++] = $_.la; //#21782 + $k[$j++] = $_[$_.cset]; //#21782 + $_.enc(); //#21782 + $_.cset = "seta"; //#21783 + break; //#21784 + } //#21784 + var _6o = $get($_.setb, $_.char1) !== undefined; //#21786 + if (_6o) { //#21790 + $k[$j++] = $_.lb; //#21787 + $k[$j++] = $_[$_.cset]; //#21787 + $_.enc(); //#21787 + $_.cset = "setb"; //#21788 + break; //#21789 + } //#21789 + var _6u = $get($_.setc, $_.char1) !== undefined; //#21793 + if (_6u) { //#21793 + $_.setx = "setc"; //#21793 + $_.sx = $_.sc; //#21793 + $_.lkx = $_.lkc; //#21793 + } //#21793 + var _6z = $get($_.setd, $_.char1) !== undefined; //#21794 + if (_6z) { //#21794 + $_.setx = "setd"; //#21794 + $_.sx = $_.sd; //#21794 + $_.lkx = $_.lkd; //#21794 + } //#21794 + var _74 = $get($_.sete, $_.char1) !== undefined; //#21795 + if (_74) { //#21795 + $_.setx = "sete"; //#21795 + $_.sx = $_.se; //#21795 + $_.lkx = $_.lke; //#21795 + } //#21795 + var _78 = $_[$_.setx]; //#21798 + var _79 = $_.msg; //#21798 + var _7A = $_.i; //#21798 + var _7B = $_.msglen; //#21798 + var _7C = $_.i; //#21798 + var _7D = _7B - _7C; //#21798 + var _7E = 4; //#21798 + if (4 > (_7B - _7C)) { //#21798 + var _ = _7D; //#21798 + _7D = _7E; //#21798 + _7E = _; //#21798 + } //#21798 + $k[$j++] = 'p'; //#21798 + $k[$j++] = _78; //#21798 + $k[$j++] = $geti(_79, _7A, _7E); //#21798 + $_.prefixinset(); //#21798 + var _7G = $k[--$j]; //#21798 + $_[$k[--$j]] = _7G; //#21798 + if ($_.p == 1) { //#21803 + $k[$j++] = $_.sx; //#21800 + $k[$j++] = $_[$_.cset]; //#21800 + $_.enc(); //#21800 + $k[$j++] = $_.char1; //#21801 + $k[$j++] = $_[$_.setx]; //#21801 + $_.enc(); //#21801 + $_.i = $_.i + 1; //#21802 + } //#21802 + if ($_.p == 2) { //#21810 + $k[$j++] = $_.sx; //#21805 + $k[$j++] = $_[$_.cset]; //#21805 + $_.enc(); //#21805 + $k[$j++] = $_.char1; //#21806 + $k[$j++] = $_[$_.setx]; //#21806 + $_.enc(); //#21806 + $k[$j++] = $_.sx; //#21807 + $k[$j++] = $_[$_.cset]; //#21807 + $_.enc(); //#21807 + $k[$j++] = $_.char2; //#21808 + $k[$j++] = $_[$_.setx]; //#21808 + $_.enc(); //#21808 + $_.i = $_.i + 2; //#21809 + } //#21809 + if ($_.p == 3) { //#21819 + $k[$j++] = $_.sx; //#21812 + $k[$j++] = $_[$_.cset]; //#21812 + $_.enc(); //#21812 + $k[$j++] = $_.char1; //#21813 + $k[$j++] = $_[$_.setx]; //#21813 + $_.enc(); //#21813 + $k[$j++] = $_.sx; //#21814 + $k[$j++] = $_[$_.cset]; //#21814 + $_.enc(); //#21814 + $k[$j++] = $_.char2; //#21815 + $k[$j++] = $_[$_.setx]; //#21815 + $_.enc(); //#21815 + $k[$j++] = $_.sx; //#21816 + $k[$j++] = $_[$_.cset]; //#21816 + $_.enc(); //#21816 + $k[$j++] = $_.char3; //#21817 + $k[$j++] = $_[$_.setx]; //#21817 + $_.enc(); //#21817 + $_.i = $_.i + 3; //#21818 + } //#21818 + if ($_.p >= 4) { //#21824 + $k[$j++] = $_.sx; //#21821 + $k[$j++] = $_[$_.cset]; //#21821 + $_.enc(); //#21821 + $k[$j++] = $_.lkx; //#21822 + $k[$j++] = $_[$_.setx]; //#21822 + $_.enc(); //#21822 + $_.cset = $_.setx; //#21823 + } //#21823 + break; //#21826 + } //#21826 + } //#21826 + $_.encmsg = $geti($_.out, 0, $_.j); //#21829 + $_.padval = $get($_[$_.cset], $_.pad); //#21830 + $k[$j++] = 'sami'; //#21833 + if ($_.sam != -1) { //#21833 + $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21833 + } else { //#21833 + $k[$j++] = $a([]); //#21833 + } //#21833 + var _8L = $k[--$j]; //#21833 + $_[$k[--$j]] = _8L; //#21833 + $k[$j++] = Infinity; //#21834 + $aload($_.sami); //#21834 + $aload($_.encmsg); //#21834 + $_.encmsg = $a(); //#21834 + if (($_.mode == 2) || ($_.mode == 3)) { //#21893 + if ($_.encmsg.length > 84) { //#21841 + $k[$j++] = 'bwipp.maxicodeMode23TooLong#21840'; //#21840 + $k[$j++] = "The secondary message is too long"; //#21840 + bwipp_raiseerror(); //#21840 + } //#21840 + var _8U = $strcpy($s(4), "0000"); //#21844 + var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21844 + $puti(_8U, 4 - _8X.length, _8X); //#21844 + $_.mdb = _8U; //#21844 + var _8Z = $strcpy($s(10), "0000000000"); //#21845 + var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21845 + $puti(_8Z, 10 - _8c.length, _8c); //#21845 + $_.ccb = _8Z; //#21845 + var _8e = $strcpy($s(10), "0000000000"); //#21846 + var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21846 + $puti(_8e, 10 - _8h.length, _8h); //#21846 + $_.scb = _8e; //#21846 + $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21847 + if ($_.mode == 2) { //#21860 + var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21850 + $puti($_.pcb, 6 - _8o.length, _8o); //#21850 + var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21851 + $puti($_.pcb, 36 - _8s.length, _8s); //#21851 + } else { //#21860 + $k[$j++] = Infinity; //#21854 + var _8u = $strcpy($s(6), " "); //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = 0; //#21855 + if ($_.pcode.length > 6) { //#21855 + $k[$j++] = $geti($_.pcode, 0, 6); //#21855 + } else { //#21855 + $k[$j++] = $_.pcode; //#21855 + } //#21855 + var _8z = $k[--$j]; //#21855 + var _90 = $k[--$j]; //#21855 + $puti($k[--$j], _90, _8z); //#21855 + $forall($k[--$j], function() { //#21856 + var _95 = $get($_.seta, $k[--$j]); //#21856 + $k[$j++] = _95; //#21856 + }); //#21856 + $_.pccw = $a(); //#21856 + for (var _97 = 0; _97 <= 5; _97 += 1) { //#21861 + $_.i = _97; //#21859 + var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21860 + $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21860 + } //#21860 + } //#21860 + $_.scm = $s(60); //#21865 + $puti($_.scm, 2, $_.mdb); //#21866 + $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21867 + $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21868 + $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21869 + $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21870 + $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21871 + $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21872 + $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21873 + $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21874 + $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21875 + $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21876 + $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21877 + $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21878 + $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21881 + for (var _9t = 0; _9t <= 59; _9t += 1) { //#21887 + $_.i = _9t; //#21883 + $_.ps = ~~($_.i / 6); //#21884 + $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21885 + $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21886 + } //#21886 + $k[$j++] = Infinity; //#21890 + for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21890 + $k[$j++] = $_.padval; //#21890 + } //#21890 + $_.sec = $a(); //#21890 + $puti($_.sec, 0, $_.encmsg); //#21891 + } //#21891 + if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21914 + if ($_.mode == -1) { //#21901 + var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21900 + $_.mode = _AH; //#21900 + } //#21900 + $k[$j++] = Infinity; //#21903 + var _AJ = ($_.mode == 5) ? 78 : 94; //#21903 + for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21903 + $k[$j++] = $_.padval; //#21903 + } //#21903 + $_.cws = $a(); //#21903 + if ($_.encmsg.length > ($_.cws.length - 1)) { //#21906 + $k[$j++] = 'bwipp.maxicodeMode56TooLong#21905'; //#21905 + $k[$j++] = "The message is too long"; //#21905 + bwipp_raiseerror(); //#21905 + } //#21905 + $put($_.cws, 0, $_.mode); //#21907 + $puti($_.cws, 1, $_.encmsg); //#21908 + $_.pri = $geti($_.cws, 0, 10); //#21911 + $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21912 + } //#21912 + if (!bwipp_maxicode.__21921__) { //#21921 + $_ = Object.create($_); //#21921 + $k[$j++] = Infinity; //#21918 + $k[$j++] = 1; //#21918 + for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21918 + var _Ab = $k[--$j]; //#21918 + var _Ac = _Ab * 2; //#21918 + $k[$j++] = _Ab; //#21918 + $k[$j++] = _Ac; //#21918 + if (_Ac >= 64) { //#21918 + var _Ad = $k[--$j]; //#21918 + $k[$j++] = _Ad ^ 67; //#21918 + } //#21918 + } //#21918 + $_.rsalog = $a(); //#21918 + $_.rslog = $a(64); //#21919 + for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21920 + $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21920 + } //#21920 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21920 + bwipp_maxicode.__21921__ = 1; //#21920 + $_ = Object.getPrototypeOf($_); //#21920 + } //#21920 $_.rsprod = function() { - var _Ak = $k[--$j]; //#21637 - var _Al = $k[--$j]; //#21637 - $k[$j++] = _Al; //#21641 - $k[$j++] = _Ak; //#21641 - if ((_Ak != 0) && (_Al != 0)) { //#21640 - var _Ao = $get($_.rslog, $k[--$j]); //#21638 - var _At = $get($_.rsalog, $f(_Ao + $get($_.rslog, $k[--$j])) % 63); //#21638 - $k[$j++] = _At; //#21638 - } else { //#21640 - $j -= 2; //#21640 - $k[$j++] = 0; //#21640 - } //#21640 - }; //#21640 + var _Al = $k[--$j]; //#21925 + var _Am = $k[--$j]; //#21925 + $k[$j++] = _Am; //#21929 + $k[$j++] = _Al; //#21929 + if ((_Al != 0) && (_Am != 0)) { //#21928 + var _Ap = $get($_.rslog, $k[--$j]); //#21926 + var _Au = $get($_.rsalog, $f(_Ap + $get($_.rslog, $k[--$j])) % 63); //#21926 + $k[$j++] = _Au; //#21926 + } else { //#21928 + $j -= 2; //#21928 + $k[$j++] = 0; //#21928 + } //#21928 + }; //#21928 $_.rscodes = function() { - $_.rsnum = $k[--$j]; //#21647 - $_.cwb = $k[--$j]; //#21648 - $k[$j++] = Infinity; //#21651 - $k[$j++] = 1; //#21651 - for (var _Ax = 0, _Ay = $_.rsnum; _Ax < _Ay; _Ax++) { //#21651 - $k[$j++] = 0; //#21651 - } //#21651 - $_.coeffs = $a(); //#21651 - for (var _B2 = 1, _B1 = $_.rsnum; _B2 <= _B1; _B2 += 1) { //#21660 - $_.i = _B2; //#21653 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21654 - for (var _B9 = $_.i - 1; _B9 >= 1; _B9 -= 1) { //#21658 - $_.j = _B9; //#21656 - $k[$j++] = $_.coeffs; //#21657 - $k[$j++] = $_.j; //#21657 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#21657 - $k[$j++] = $get($_.coeffs, $_.j); //#21657 - $k[$j++] = $get($_.rsalog, $_.i); //#21657 - $_.rsprod(); //#21657 - var _BL = $k[--$j]; //#21657 - var _BM = $k[--$j]; //#21657 - var _BN = $k[--$j]; //#21657 - $put($k[--$j], _BN, $xo(_BM, _BL)); //#21657 - } //#21657 - $k[$j++] = $_.coeffs; //#21659 - $k[$j++] = 0; //#21659 - $k[$j++] = $get($_.coeffs, 0); //#21659 - $k[$j++] = $get($_.rsalog, $_.i); //#21659 - $_.rsprod(); //#21659 - var _BV = $k[--$j]; //#21659 - var _BW = $k[--$j]; //#21659 - $put($k[--$j], _BW, _BV); //#21659 - } //#21659 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21661 - $k[$j++] = Infinity; //#21664 - for (var _Bc = 0, _Bd = $_.rsnum; _Bc < _Bd; _Bc++) { //#21664 - $k[$j++] = 0; //#21664 - } //#21664 - $_.ecb = $a(); //#21664 - for (var _Bh = 0, _Bg = $_.cwb.length - 1; _Bh <= _Bg; _Bh += 1) { //#21673 - $_.t = $xo($get($_.cwb, _Bh), $get($_.ecb, 0)); //#21666 - for (var _Bn = $_.ecb.length - 1; _Bn >= 0; _Bn -= 1) { //#21672 - $_.i = _Bn; //#21668 - $_.p = ($_.ecb.length - $_.i) - 1; //#21669 - $k[$j++] = $_.ecb; //#21670 - $k[$j++] = $_.p; //#21670 - $k[$j++] = $_.t; //#21670 - $k[$j++] = $get($_.coeffs, $_.i); //#21670 - $_.rsprod(); //#21670 - var _Bw = $k[--$j]; //#21670 - var _Bx = $k[--$j]; //#21670 - $put($k[--$j], _Bx, _Bw); //#21670 - if ($_.i > 0) { //#21671 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21671 - } //#21671 - } //#21671 - } //#21671 - $k[$j++] = $_.ecb; //#21675 - }; //#21675 - $k[$j++] = Infinity; //#21680 - for (var _CB = 0, _CA = $_.sec.length - 1; _CB <= _CA; _CB += 2) { //#21680 - $k[$j++] = $get($_.sec, _CB); //#21680 - } //#21680 - $_.seco = $a(); //#21680 - $k[$j++] = Infinity; //#21681 - for (var _CH = 1, _CG = $_.sec.length - 1; _CH <= _CG; _CH += 2) { //#21681 - $k[$j++] = $get($_.sec, _CH); //#21681 - } //#21681 - $_.sece = $a(); //#21681 - var _CM = ($_.sec.length == 84) ? 20 : 28; //#21684 - $_.scodes = _CM; //#21684 - $k[$j++] = 'secochk'; //#21685 - $k[$j++] = $_.seco; //#21685 - $k[$j++] = $_.scodes; //#21685 - $_.rscodes(); //#21685 - var _CP = $k[--$j]; //#21685 - $_[$k[--$j]] = _CP; //#21685 - $k[$j++] = 'secechk'; //#21686 - $k[$j++] = $_.sece; //#21686 - $k[$j++] = $_.scodes; //#21686 - $_.rscodes(); //#21686 - var _CT = $k[--$j]; //#21686 - $_[$k[--$j]] = _CT; //#21686 - $k[$j++] = Infinity; //#21689 - for (var _CX = 0, _CW = $_.scodes - 1; _CX <= _CW; _CX += 1) { //#21689 - $k[$j++] = $get($_.secochk, _CX); //#21689 - $k[$j++] = $get($_.secechk, _CX); //#21689 - } //#21689 - $_.secchk = $a(); //#21689 - $k[$j++] = Infinity; //#21696 - $aload($_.pri); //#21693 - $k[$j++] = $_.pri; //#21694 - $k[$j++] = 10; //#21694 - $_.rscodes(); //#21694 - $aload($k[--$j]); //#21694 - $aload($_.sec); //#21695 - $aload($_.secchk); //#21696 - $_.codewords = $a(); //#21696 - $k[$j++] = Infinity; //#21700 - for (var _Cj = 0, _Ck = 864; _Cj < _Ck; _Cj++) { //#21700 - $k[$j++] = 0; //#21700 - } //#21700 - $_.mods = $a(); //#21700 - for (var _Cm = 0; _Cm <= 143; _Cm += 1) { //#21705 - $_.i = _Cm; //#21702 - $k[$j++] = Infinity; //#21703 - var _Cr = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21703 - for (var _Cs = 0, _Ct = _Cr.length; _Cs < _Ct; _Cs++) { //#21703 - $k[$j++] = $get(_Cr, _Cs) - 48; //#21703 - } //#21703 - $_.cw = $a(); //#21703 - $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21704 - } //#21704 - if (!bwipp_maxicode.__21755__) { //#21755 - $_ = Object.create($_); //#21755 - $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#21754 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21754 - bwipp_maxicode.__21755__ = 1; //#21754 - $_ = Object.getPrototypeOf($_); //#21754 - } //#21754 - $_.pixs = $a(864); //#21758 - $_.j = 0; //#21759 - for (var _D5 = 0, _D4 = $_.mods.length - 1; _D5 <= _D4; _D5 += 1) { //#21766 - $_.i = _D5; //#21761 - if ($get($_.mods, $_.i) == 1) { //#21765 - $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#21763 - $_.j = $_.j + 1; //#21764 - } //#21764 - } //#21764 - $k[$j++] = Infinity; //#21767 - $aload($geti($_.pixs, 0, $_.j)); //#21767 - $k[$j++] = 28; //#21767 - $k[$j++] = 29; //#21767 - $k[$j++] = 280; //#21767 - $k[$j++] = 281; //#21767 - $k[$j++] = 311; //#21767 - $k[$j++] = 457; //#21767 - $k[$j++] = 488; //#21767 - $k[$j++] = 500; //#21767 - $k[$j++] = 530; //#21767 - $k[$j++] = 670; //#21767 - $k[$j++] = 700; //#21767 - $k[$j++] = 677; //#21767 - $k[$j++] = 707; //#21767 - $_.pixs = $a(); //#21767 - var _DL = new Map([ + $_.rsnum = $k[--$j]; //#21935 + $_.cwb = $k[--$j]; //#21936 + $k[$j++] = Infinity; //#21939 + $k[$j++] = 1; //#21939 + for (var _Ay = 0, _Az = $_.rsnum; _Ay < _Az; _Ay++) { //#21939 + $k[$j++] = 0; //#21939 + } //#21939 + $_.coeffs = $a(); //#21939 + for (var _B3 = 1, _B2 = $_.rsnum; _B3 <= _B2; _B3 += 1) { //#21948 + $_.i = _B3; //#21941 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21942 + for (var _BA = $_.i - 1; _BA >= 1; _BA -= 1) { //#21946 + $_.j = _BA; //#21944 + $k[$j++] = $_.coeffs; //#21945 + $k[$j++] = $_.j; //#21945 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#21945 + $k[$j++] = $get($_.coeffs, $_.j); //#21945 + $k[$j++] = $get($_.rsalog, $_.i); //#21945 + $_.rsprod(); //#21945 + var _BM = $k[--$j]; //#21945 + var _BN = $k[--$j]; //#21945 + var _BO = $k[--$j]; //#21945 + $put($k[--$j], _BO, $xo(_BN, _BM)); //#21945 + } //#21945 + $k[$j++] = $_.coeffs; //#21947 + $k[$j++] = 0; //#21947 + $k[$j++] = $get($_.coeffs, 0); //#21947 + $k[$j++] = $get($_.rsalog, $_.i); //#21947 + $_.rsprod(); //#21947 + var _BW = $k[--$j]; //#21947 + var _BX = $k[--$j]; //#21947 + $put($k[--$j], _BX, _BW); //#21947 + } //#21947 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21949 + $k[$j++] = Infinity; //#21952 + for (var _Bd = 0, _Be = $_.rsnum; _Bd < _Be; _Bd++) { //#21952 + $k[$j++] = 0; //#21952 + } //#21952 + $_.ecb = $a(); //#21952 + for (var _Bi = 0, _Bh = $_.cwb.length - 1; _Bi <= _Bh; _Bi += 1) { //#21961 + $_.t = $xo($get($_.cwb, _Bi), $get($_.ecb, 0)); //#21954 + for (var _Bo = $_.ecb.length - 1; _Bo >= 0; _Bo -= 1) { //#21960 + $_.i = _Bo; //#21956 + $_.p = ($_.ecb.length - $_.i) - 1; //#21957 + $k[$j++] = $_.ecb; //#21958 + $k[$j++] = $_.p; //#21958 + $k[$j++] = $_.t; //#21958 + $k[$j++] = $get($_.coeffs, $_.i); //#21958 + $_.rsprod(); //#21958 + var _Bx = $k[--$j]; //#21958 + var _By = $k[--$j]; //#21958 + $put($k[--$j], _By, _Bx); //#21958 + if ($_.i > 0) { //#21959 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21959 + } //#21959 + } //#21959 + } //#21959 + $k[$j++] = $_.ecb; //#21963 + }; //#21963 + $k[$j++] = Infinity; //#21968 + for (var _CC = 0, _CB = $_.sec.length - 1; _CC <= _CB; _CC += 2) { //#21968 + $k[$j++] = $get($_.sec, _CC); //#21968 + } //#21968 + $_.seco = $a(); //#21968 + $k[$j++] = Infinity; //#21969 + for (var _CI = 1, _CH = $_.sec.length - 1; _CI <= _CH; _CI += 2) { //#21969 + $k[$j++] = $get($_.sec, _CI); //#21969 + } //#21969 + $_.sece = $a(); //#21969 + var _CN = ($_.sec.length == 84) ? 20 : 28; //#21972 + $_.scodes = _CN; //#21972 + $k[$j++] = 'secochk'; //#21973 + $k[$j++] = $_.seco; //#21973 + $k[$j++] = $_.scodes; //#21973 + $_.rscodes(); //#21973 + var _CQ = $k[--$j]; //#21973 + $_[$k[--$j]] = _CQ; //#21973 + $k[$j++] = 'secechk'; //#21974 + $k[$j++] = $_.sece; //#21974 + $k[$j++] = $_.scodes; //#21974 + $_.rscodes(); //#21974 + var _CU = $k[--$j]; //#21974 + $_[$k[--$j]] = _CU; //#21974 + $k[$j++] = Infinity; //#21977 + for (var _CY = 0, _CX = $_.scodes - 1; _CY <= _CX; _CY += 1) { //#21977 + $k[$j++] = $get($_.secochk, _CY); //#21977 + $k[$j++] = $get($_.secechk, _CY); //#21977 + } //#21977 + $_.secchk = $a(); //#21977 + $k[$j++] = Infinity; //#21980 + $aload($_.pri); //#21981 + $k[$j++] = $_.pri; //#21982 + $k[$j++] = 10; //#21982 + $_.rscodes(); //#21982 + $aload($k[--$j]); //#21982 + $aload($_.sec); //#21983 + $aload($_.secchk); //#21984 + $_.codewords = $a(); //#21984 + $k[$j++] = Infinity; //#21988 + for (var _Ck = 0, _Cl = 864; _Ck < _Cl; _Ck++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $_.mods = $a(); //#21988 + for (var _Cn = 0; _Cn <= 143; _Cn += 1) { //#21993 + $_.i = _Cn; //#21990 + $k[$j++] = Infinity; //#21991 + var _Cs = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21991 + for (var _Ct = 0, _Cu = _Cs.length; _Ct < _Cu; _Ct++) { //#21991 + $k[$j++] = $get(_Cs, _Ct) - 48; //#21991 + } //#21991 + $_.cw = $a(); //#21991 + $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21992 + } //#21992 + if (!bwipp_maxicode.__22043__) { //#22043 + $_ = Object.create($_); //#22043 + $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#22042 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#22042 + bwipp_maxicode.__22043__ = 1; //#22042 + $_ = Object.getPrototypeOf($_); //#22042 + } //#22042 + $_.pixs = $a(864); //#22046 + $_.j = 0; //#22047 + for (var _D6 = 0, _D5 = $_.mods.length - 1; _D6 <= _D5; _D6 += 1) { //#22054 + $_.i = _D6; //#22049 + if ($get($_.mods, $_.i) == 1) { //#22053 + $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#22051 + $_.j = $_.j + 1; //#22052 + } //#22052 + } //#22052 + $k[$j++] = Infinity; //#22055 + $aload($geti($_.pixs, 0, $_.j)); //#22055 + $k[$j++] = 28; //#22055 + $k[$j++] = 29; //#22055 + $k[$j++] = 280; //#22055 + $k[$j++] = 281; //#22055 + $k[$j++] = 311; //#22055 + $k[$j++] = 457; //#22055 + $k[$j++] = 488; //#22055 + $k[$j++] = 500; //#22055 + $k[$j++] = 530; //#22055 + $k[$j++] = 670; //#22055 + $k[$j++] = 700; //#22055 + $k[$j++] = 677; //#22055 + $k[$j++] = 707; //#22055 + $_.pixs = $a(); //#22055 + var _DM = new Map([ ["ren", bwipp_renmaximatrix], ["pixs", $_.pixs], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#21773 - $k[$j++] = _DL; //#21776 - if (!$_.dontdraw) { //#21776 - bwipp_renmaximatrix(); //#21776 - } //#21776 - $_ = Object.getPrototypeOf($_); //#21778 - $_ = Object.getPrototypeOf($_); //#21780 -} - + ]); //#22065 + $k[$j++] = _DM; //#22068 + if (!$_.dontdraw) { //#22068 + bwipp_renmaximatrix(); //#22068 + } //#22068 + $_ = Object.getPrototypeOf($_); //#22070 + $_ = Object.getPrototypeOf($_); //#22072 +} //bwipp_maxicode function bwipp_azteccode() { - $_ = Object.create($_); //#21811 - $_.dontdraw = false; //#21814 - $_.format = "full"; //#21815 - $_.readerinit = false; //#21816 - $_.layers = -1; //#21817 - $_.eclevel = 23; //#21818 - $_.ecaddchars = 3; //#21819 - $_.raw = false; //#21820 - $_.parse = false; //#21821 - $_.parsefnc = false; //#21822 - $k[$j++] = $_; //#21824 - bwipp_processoptions(); //#21824 - $_.options = $k[--$j]; //#21824 - $_.barcode = $k[--$j]; //#21825 - bwipp_loadctx(bwipp_azteccode) //#21827 - if ($eq($_.barcode, "")) { //#21831 - $k[$j++] = 'bwipp.aztecEmptyData#21830'; //#21830 - $k[$j++] = "The data must not be empty"; //#21830 - bwipp_raiseerror(); //#21830 - } //#21830 - if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#21835 - $k[$j++] = 'bwipp.aztecInvalidEClevel#21834'; //#21834 - $k[$j++] = "The EC percentage must be from 5 to 95"; //#21834 - bwipp_raiseerror(); //#21834 - } //#21834 - if ($_.ecaddchars < 3) { //#21839 - $k[$j++] = 'bwipp.aztecInvalidECaddChars#21838'; //#21838 - $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#21838 - bwipp_raiseerror(); //#21838 - } //#21838 - if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#21843 - $k[$j++] = 'bwipp.aztecInvalidFormat#21842'; //#21842 - $k[$j++] = "The format must be either full, compact or rune"; //#21842 - bwipp_raiseerror(); //#21842 - } //#21842 - if ($eq($_.format, "full")) { //#21852 - if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#21848 - $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#21847'; //#21847 - $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#21847 - bwipp_raiseerror(); //#21847 - } //#21847 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#21851 - $k[$j++] = 'bwipp.aztecFullInvalidLayers#21850'; //#21850 - $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#21850 - bwipp_raiseerror(); //#21850 - } //#21850 - } //#21850 - if ($eq($_.format, "compact")) { //#21864 - if ($_.readerinit) { //#21860 - if (($_.layers != -1) && ($_.layers != 1)) { //#21858 - $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#21857'; //#21857 - $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#21857 - bwipp_raiseerror(); //#21857 - } //#21857 - $_.layers = 1; //#21859 - } //#21859 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#21863 - $k[$j++] = 'bwipp.aztecCompactInvalidLayers#21862'; //#21862 - $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#21862 - bwipp_raiseerror(); //#21862 - } //#21862 - } //#21862 - if ($eq($_.format, "rune")) { //#21884 - if ($_.layers != -1) { //#21869 - $k[$j++] = 'bwipp.aztecRuneInvalidLayers#21868'; //#21868 - $k[$j++] = "It is not valid to specify layers for runes"; //#21868 - bwipp_raiseerror(); //#21868 - } //#21868 - if ($_.readerinit) { //#21872 - $k[$j++] = 'bwipp.aztecRuneReaderInit#21871'; //#21871 - $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#21871 - bwipp_raiseerror(); //#21871 - } //#21871 - if ($_.barcode.length == 0) { //#21875 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21874'; //#21874 - $k[$j++] = "Aztec runes must be numeric"; //#21874 - bwipp_raiseerror(); //#21874 - } //#21874 - $forall($_.barcode, function() { //#21880 - var _S = $k[--$j]; //#21877 - if ((_S < 48) || (_S > 57)) { //#21879 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21878'; //#21878 - $k[$j++] = "Aztec runes must be numeric"; //#21878 - bwipp_raiseerror(); //#21878 - } //#21878 - }); //#21878 - var _U = $cvi($_.barcode); //#21881 - if ((_U < 0) || (_U > 255)) { //#21883 - $k[$j++] = 'bwipp.aztecRuneInvalid#21882'; //#21882 - $k[$j++] = "Aztec runes must be 0 to 255"; //#21882 - bwipp_raiseerror(); //#21882 - } //#21882 - } //#21882 - $_.fn1 = -1; //#21887 + $_ = Object.create($_); //#22103 + $_.dontdraw = false; //#22106 + $_.format = "full"; //#22107 + $_.readerinit = false; //#22108 + $_.layers = -1; //#22109 + $_.eclevel = 23; //#22110 + $_.ecaddchars = 3; //#22111 + $_.raw = false; //#22112 + $_.parse = false; //#22113 + $_.parsefnc = false; //#22114 + $k[$j++] = $_; //#22116 + bwipp_processoptions(); //#22116 + $_.options = $k[--$j]; //#22116 + $_.barcode = $k[--$j]; //#22117 + bwipp_loadctx(bwipp_azteccode) //#22119 + if ($eq($_.barcode, "")) { //#22123 + $k[$j++] = 'bwipp.aztecEmptyData#22122'; //#22122 + $k[$j++] = "The data must not be empty"; //#22122 + bwipp_raiseerror(); //#22122 + } //#22122 + if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#22127 + $k[$j++] = 'bwipp.aztecInvalidEClevel#22126'; //#22126 + $k[$j++] = "The EC percentage must be from 5 to 95"; //#22126 + bwipp_raiseerror(); //#22126 + } //#22126 + if ($_.ecaddchars < 3) { //#22131 + $k[$j++] = 'bwipp.aztecInvalidECaddChars#22130'; //#22130 + $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#22130 + bwipp_raiseerror(); //#22130 + } //#22130 + if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#22135 + $k[$j++] = 'bwipp.aztecInvalidFormat#22134'; //#22134 + $k[$j++] = "The format must be either full, compact or rune"; //#22134 + bwipp_raiseerror(); //#22134 + } //#22134 + if ($eq($_.format, "full")) { //#22144 + if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#22140 + $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#22139'; //#22139 + $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#22139 + bwipp_raiseerror(); //#22139 + } //#22139 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#22143 + $k[$j++] = 'bwipp.aztecFullInvalidLayers#22142'; //#22142 + $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#22142 + bwipp_raiseerror(); //#22142 + } //#22142 + } //#22142 + if ($eq($_.format, "compact")) { //#22156 + if ($_.readerinit) { //#22152 + if (($_.layers != -1) && ($_.layers != 1)) { //#22150 + $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#22149'; //#22149 + $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#22149 + bwipp_raiseerror(); //#22149 + } //#22149 + $_.layers = 1; //#22151 + } //#22151 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#22155 + $k[$j++] = 'bwipp.aztecCompactInvalidLayers#22154'; //#22154 + $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#22154 + bwipp_raiseerror(); //#22154 + } //#22154 + } //#22154 + if ($eq($_.format, "rune")) { //#22176 + if ($_.layers != -1) { //#22161 + $k[$j++] = 'bwipp.aztecRuneInvalidLayers#22160'; //#22160 + $k[$j++] = "It is not valid to specify layers for runes"; //#22160 + bwipp_raiseerror(); //#22160 + } //#22160 + if ($_.readerinit) { //#22164 + $k[$j++] = 'bwipp.aztecRuneReaderInit#22163'; //#22163 + $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#22163 + bwipp_raiseerror(); //#22163 + } //#22163 + if ($_.barcode.length == 0) { //#22167 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22166'; //#22166 + $k[$j++] = "Aztec runes must be numeric"; //#22166 + bwipp_raiseerror(); //#22166 + } //#22166 + $forall($_.barcode, function() { //#22172 + var _S = $k[--$j]; //#22169 + if ((_S < 48) || (_S > 57)) { //#22171 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22170'; //#22170 + $k[$j++] = "Aztec runes must be numeric"; //#22170 + bwipp_raiseerror(); //#22170 + } //#22170 + }); //#22170 + var _U = $cvi($_.barcode); //#22173 + if ((_U < 0) || (_U > 255)) { //#22175 + $k[$j++] = 'bwipp.aztecRuneInvalid#22174'; //#22174 + $k[$j++] = "Aztec runes must be 0 to 255"; //#22174 + bwipp_raiseerror(); //#22174 + } //#22174 + } //#22174 + $_.fn1 = -1; //#22179 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#21892 - $_.fncvals = _Y; //#21893 - $k[$j++] = 'msg'; //#21894 - $k[$j++] = $_.barcode; //#21894 - $k[$j++] = $_.fncvals; //#21894 - bwipp_parseinput(); //#21894 - var _b = $k[--$j]; //#21894 - $_[$k[--$j]] = _b; //#21894 - $_.msglen = $_.msg.length; //#21895 - if (!bwipp_azteccode.__21995__) { //#21995 - $_ = Object.create($_); //#21995 - $_.U = 0; //#21899 - $_.L = 1; //#21899 - $_.M = 2; //#21899 - $_.P = 3; //#21899 - $_.D = 4; //#21899 - $_.B = 5; //#21899 - $_.lu = -2; //#21902 - $_.ll = -3; //#21902 - $_.lm = -4; //#21902 - $_.lp = -5; //#21903 - $_.ld = -6; //#21903 - $_.su = -7; //#21903 - $_.sp = -8; //#21904 - $_.sb = -9; //#21904 - $_.fl = -10; //#21904 - $_.p2 = -11; //#21905 - $_.p3 = -12; //#21905 - $_.p4 = -13; //#21905 - $_.p5 = -14; //#21905 - $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#21942 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21945 - for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#21954 - $_.i = _1c; //#21947 - $_.encs = $get($_.charmaps, $_.i); //#21948 - for (var _1g = 0; _1g <= 4; _1g += 1) { //#21953 - $_.j = _1g; //#21950 - var _1j = $get($_.encs, $_.j); //#21951 - $k[$j++] = _1j; //#21951 - if ($eq($type(_1j), 'stringtype')) { //#21951 - var _1m = $get($k[--$j], 0); //#21951 - $k[$j++] = _1m; //#21951 - } //#21951 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21952 - } //#21952 - } //#21952 + ]); //#22184 + $_.fncvals = _Y; //#22185 + $k[$j++] = 'msg'; //#22186 + $k[$j++] = $_.barcode; //#22186 + $k[$j++] = $_.fncvals; //#22186 + bwipp_parseinput(); //#22186 + var _b = $k[--$j]; //#22186 + $_[$k[--$j]] = _b; //#22186 + $_.msglen = $_.msg.length; //#22187 + if (!bwipp_azteccode.__22287__) { //#22287 + $_ = Object.create($_); //#22287 + $_.U = 0; //#22191 + $_.L = 1; //#22191 + $_.M = 2; //#22191 + $_.P = 3; //#22191 + $_.D = 4; //#22191 + $_.B = 5; //#22191 + $_.lu = -2; //#22194 + $_.ll = -3; //#22194 + $_.lm = -4; //#22194 + $_.lp = -5; //#22195 + $_.ld = -6; //#22195 + $_.su = -7; //#22195 + $_.sp = -8; //#22196 + $_.sb = -9; //#22196 + $_.fl = -10; //#22196 + $_.p2 = -11; //#22197 + $_.p3 = -12; //#22197 + $_.p4 = -13; //#22197 + $_.p5 = -14; //#22197 + $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#22234 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#22237 + for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#22246 + $_.i = _1c; //#22239 + $_.encs = $get($_.charmaps, $_.i); //#22240 + for (var _1g = 0; _1g <= 4; _1g += 1) { //#22245 + $_.j = _1g; //#22242 + var _1j = $get($_.encs, $_.j); //#22243 + $k[$j++] = _1j; //#22243 + if ($eq($type(_1j), 'stringtype')) { //#22243 + var _1m = $get($k[--$j], 0); //#22243 + $k[$j++] = _1m; //#22243 + } //#22243 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#22244 + } //#22244 + } //#22244 var _1w = new Map([ ["\x0d\x0a", $_.p2], [". ", $_.p3], [", ", $_.p4], [": ", $_.p5] - ]); //#21961 - $_.pcomp = _1w; //#21962 - $_.e = 10000; //#21964 - var _21 = $a([4, 9, 9, 14, 0, 14]); //#21972 - $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), _21, $a([0, 0, 0, 0, 0, 0])]); //#21974 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#21984 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#21993 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#21993 - bwipp_azteccode.__21995__ = 1; //#21993 - $_ = Object.getPrototypeOf($_); //#21993 - } //#21993 - $_.msgbits = ""; //#21998 - if ($ne($_.format, "rune") && $_.raw) { //#21999 - $_.msgbits = $_.barcode; //#21999 - } //#21999 - if ($ne($_.format, "rune") && (!$_.raw)) { //#22290 + ]); //#22253 + $_.pcomp = _1w; //#22254 + $_.e = 1000000; //#22256 + var _22 = $a([0, 0, 0, 0, 0, 0]); //#22265 + $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), _22]); //#22266 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#22276 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#22285 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22285 + bwipp_azteccode.__22287__ = 1; //#22285 + $_ = Object.getPrototypeOf($_); //#22285 + } //#22285 + $_.msgbits = ""; //#22290 + if ($ne($_.format, "rune") && $_.raw) { //#22291 + $_.msgbits = $_.barcode; //#22291 + } //#22291 + if ($ne($_.format, "rune") && (!$_.raw)) { //#22582 $_.charsize = function() { - var _3v = $k[--$j]; //#22003 - $k[$j++] = _3v; //#22014 - if (_3v >= 0) { //#22012 - $j--; //#22005 - var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22005 - $k[$j++] = _3y; //#22005 - } else { //#22012 - var _3z = $k[--$j]; //#22007 - var _40 = $k[--$j]; //#22007 - $k[$j++] = _3z; //#22007 - $k[$j++] = _40; //#22007 - $j--; //#22007 - var _41 = $k[--$j]; //#22008 - $k[$j++] = _41; //#22013 - if (_41 == $_.fn1) { //#22012 - $j--; //#22009 - $k[$j++] = 8; //#22009 - } else { //#22012 - var _44 = $f((-$k[--$j]) - 1000000); //#22011 - $k[$j++] = _44; //#22011 - if (_44 == 0) { //#22011 - $j--; //#22011 - $k[$j++] = 1; //#22011 - } //#22011 - var _45 = $k[--$j]; //#22012 - $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22012 - } //#22012 - } //#22012 - }; //#22012 - $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22018 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22019 - $_.backto = $_.U; //#22021 - $_.lastchar = ""; //#22022 - $forall($_.msg, function() { //#22174 - $_.char = $k[--$j]; //#22027 - for (;;) { //#22053 - $_.imp = false; //#22031 - var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22032 - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22051 - $_.x = $get(_4S, _4T); //#22033 - var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22034 - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22050 - $_.y = $get(_4c, _4d); //#22035 - if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22049 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22037 - if ($_.cost < $get($_.curlen, $_.y)) { //#22048 - $put($_.curlen, $_.y, $_.cost); //#22039 - $k[$j++] = $_.curseq; //#22042 - $k[$j++] = $_.y; //#22042 - $k[$j++] = Infinity; //#22042 - $aload($get($_.curseq, $_.x)); //#22041 - $aload($get($get($_.latseq, $_.x), $_.y)); //#22042 - var _59 = $a(); //#22042 - var _5A = $k[--$j]; //#22043 - $put($k[--$j], _5A, _59); //#22043 - if ($_.y == $_.B) { //#22046 - $k[$j++] = 'backto'; //#22045 - if (($_.x == $_.P) || ($_.x == $_.D)) { //#22045 - $k[$j++] = $_.U; //#22045 - } else { //#22045 - $k[$j++] = $_.x; //#22045 - } //#22045 - var _5K = $k[--$j]; //#22045 - $_[$k[--$j]] = _5K; //#22045 - } //#22045 - $_.imp = true; //#22047 - } //#22047 - } //#22047 - } //#22047 - } //#22047 - if (!$_.imp) { //#22052 - break; //#22052 - } //#22052 - } //#22052 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22056 - $_.nxtseq = $a(6); //#22057 - var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22059 - for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22098 - $_.x = $get(_5b, _5c); //#22060 - for (;;) { //#22096 - if ($_.char >= 0) { //#22068 - if ($_.x != $_.B) { //#22066 - var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22066 - if (!_5m) { //#22066 - break; //#22066 - } //#22066 - } //#22066 - } else { //#22068 - if ($_.x != $_.P) { //#22068 - break; //#22068 - } //#22068 - } //#22068 - $k[$j++] = 'cost'; //#22072 - $k[$j++] = $get($_.curlen, $_.x); //#22072 - $k[$j++] = $_.x; //#22072 - $k[$j++] = $_.char; //#22072 - $_.charsize(); //#22072 - var _5u = $k[--$j]; //#22072 - var _5v = $k[--$j]; //#22072 - $_[$k[--$j]] = $f(_5v + _5u); //#22072 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#22076 - $put($_.nxtlen, $_.x, $_.cost); //#22074 - $k[$j++] = $_.nxtseq; //#22075 - $k[$j++] = $_.x; //#22075 - $k[$j++] = Infinity; //#22075 - $aload($get($_.curseq, $_.x)); //#22075 - $k[$j++] = $_.char; //#22075 - var _6A = $a(); //#22075 - var _6B = $k[--$j]; //#22075 - $put($k[--$j], _6B, _6A); //#22075 - } //#22075 - if ($_.x == $_.B) { //#22079 - break; //#22079 - } //#22079 - var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22080 - for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22093 - $_.y = $get(_6K, _6L); //#22081 - if ($ne($_.x, $_.y)) { //#22092 - $k[$j++] = 'cost'; //#22083 - $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22083 - $k[$j++] = $_.x; //#22083 - $k[$j++] = $_.char; //#22083 - $_.charsize(); //#22083 - var _6a = $k[--$j]; //#22083 - var _6b = $k[--$j]; //#22083 - $_[$k[--$j]] = $f(_6b + _6a); //#22083 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#22091 - $put($_.nxtlen, $_.y, $_.cost); //#22085 - $k[$j++] = $_.nxtseq; //#22089 - $k[$j++] = $_.y; //#22089 - $k[$j++] = Infinity; //#22089 - $aload($get($_.curseq, $_.y)); //#22087 - var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22088 - $k[$j++] = _6r; //#22089 - $k[$j++] = $_.char; //#22089 - var _6t = $a(); //#22089 - var _6u = $k[--$j]; //#22090 - $put($k[--$j], _6u, _6t); //#22090 - } //#22090 - } //#22090 - } //#22090 - break; //#22095 - } //#22095 - } //#22095 - if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22159 - var _6y = $s(2); //#22102 - $put(_6y, 0, $_.lastchar); //#22102 - $put(_6y, 1, $_.char); //#22102 - $_.pchars = _6y; //#22102 - var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22103 - if (_73) { //#22158 - var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22104 - for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22157 - $_.i = $get(_79, _7A); //#22105 - $_.inP = true; //#22106 - if ($_.i == $_.M) { //#22111 - if ($_.lastchar == 13) { //#22108 - $_.inP = false; //#22108 - } //#22108 - } else { //#22111 - if ($_.i == $_.D) { //#22112 - if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22111 - $_.inP = false; //#22111 - } //#22111 - } //#22111 - } //#22111 - if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22156 - $_.curseqi = $get($_.curseq, $_.i); //#22115 - $_.lastld = false; //#22116 - $_.lastsp = false; //#22117 - $_.lastidx = -1; //#22118 - for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22139 - $_.idx = _7V; //#22120 - $_.ch = $get($_.curseqi, $_.idx); //#22121 - if ($_.lastidx == -1) { //#22136 - if ($eq($_.ch, $_.lastchar)) { //#22128 - $_.lastidx = $_.idx; //#22124 - if ($_.idx > 0) { //#22127 - if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22126 - $_.lastsp = true; //#22126 - } //#22126 - } //#22126 - } //#22126 - } else { //#22136 - if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22137 - if ($_.i == $_.P) { //#22134 - if ($_.ch == $_.ld) { //#22132 - $_.lastld = true; //#22132 - } //#22132 - } else { //#22134 - if ($_.ch != $_.lp) { //#22134 - $_.inP = $_.lastsp; //#22134 - } //#22134 - } //#22134 - break; //#22136 - } //#22136 - } //#22136 - } //#22136 - if ($_.inP && ($_.lastidx >= 0)) { //#22155 - $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22141 - if ($_.lastidx < ($_.curseqi.length - 1)) { //#22153 - if ($_.i == $_.P) { //#22150 - if ($_.lastld) { //#22144 - $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22144 - } //#22144 - $k[$j++] = $_.nxtseq; //#22146 - $k[$j++] = $_.i; //#22146 - $k[$j++] = Infinity; //#22146 - $aload($_.curseqi); //#22146 - $r($_.curseqi.length - $_.lastidx, -1); //#22146 - $j--; //#22146 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22146 - var _8H = $a(); //#22146 - var _8I = $k[--$j]; //#22146 - $put($k[--$j], _8I, _8H); //#22146 - } else { //#22150 - $k[$j++] = $_.nxtseq; //#22149 - $k[$j++] = $_.i; //#22149 - $k[$j++] = Infinity; //#22149 - $aload($_.curseqi); //#22149 - var _8N = $a(); //#22149 - var _8O = $k[--$j]; //#22149 - $put($k[--$j], _8O, _8N); //#22149 - $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22150 - } //#22150 - } else { //#22153 - $k[$j++] = $_.nxtseq; //#22153 - $k[$j++] = $_.i; //#22153 - $k[$j++] = Infinity; //#22153 - $aload($_.curseqi); //#22153 - $j--; //#22153 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22153 - var _8d = $a(); //#22153 - var _8e = $k[--$j]; //#22153 - $put($k[--$j], _8e, _8d); //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - if ($ne($get($_.nxtseq, $_.B), null)) { //#22168 - $_.numbytes = 0; //#22163 - $forall($get($_.nxtseq, $_.B), function() { //#22166 - if ($k[--$j] == $_.sb) { //#22165 - $k[$j++] = 0; //#22165 - } else { //#22165 - $k[$j++] = $_.numbytes + 1; //#22165 - } //#22165 - $_.numbytes = $k[--$j]; //#22165 - }); //#22165 - if ($_.numbytes == 32) { //#22167 - $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22167 - } //#22167 - } //#22167 - $_.curlen = $_.nxtlen; //#22170 - $_.curseq = $_.nxtseq; //#22171 - $k[$j++] = 'lastchar'; //#22172 - if ($_.char >= 0) { //#22172 - $k[$j++] = $_.char; //#22172 - } else { //#22172 - $k[$j++] = ""; //#22172 - } //#22172 - var _90 = $k[--$j]; //#22172 - $_[$k[--$j]] = _90; //#22172 - }); //#22172 - $_.minseq = $_.e; //#22177 - var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22178 - for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22184 - $_.i = $get(_99, _9A); //#22179 - if ($get($_.curlen, $_.i) < $_.minseq) { //#22183 - $_.minseq = $get($_.curlen, $_.i); //#22181 - $_.seq = $get($_.curseq, $_.i); //#22182 - } //#22182 - } //#22182 + var _3v = $k[--$j]; //#22295 + $k[$j++] = _3v; //#22306 + if (_3v >= 0) { //#22304 + $j--; //#22297 + var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22297 + $k[$j++] = _3y; //#22297 + } else { //#22304 + var _3z = $k[--$j]; //#22299 + var _40 = $k[--$j]; //#22299 + $k[$j++] = _3z; //#22299 + $k[$j++] = _40; //#22299 + $j--; //#22299 + var _41 = $k[--$j]; //#22300 + $k[$j++] = _41; //#22305 + if (_41 == $_.fn1) { //#22304 + $j--; //#22301 + $k[$j++] = 8; //#22301 + } else { //#22304 + var _44 = $f((-$k[--$j]) - 1000000); //#22303 + $k[$j++] = _44; //#22303 + if (_44 == 0) { //#22303 + $j--; //#22303 + $k[$j++] = 1; //#22303 + } //#22303 + var _45 = $k[--$j]; //#22304 + $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22304 + } //#22304 + } //#22304 + }; //#22304 + $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22310 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22311 + $_.backto = $_.U; //#22313 + $_.lastchar = ""; //#22314 + $forall($_.msg, function() { //#22466 + $_.char = $k[--$j]; //#22319 + for (;;) { //#22345 + $_.imp = false; //#22323 + var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22324 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22343 + $_.x = $get(_4S, _4T); //#22325 + var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22326 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22342 + $_.y = $get(_4c, _4d); //#22327 + if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22341 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22329 + if ($_.cost < $get($_.curlen, $_.y)) { //#22340 + $put($_.curlen, $_.y, $_.cost); //#22331 + $k[$j++] = $_.curseq; //#22334 + $k[$j++] = $_.y; //#22334 + $k[$j++] = Infinity; //#22332 + $aload($get($_.curseq, $_.x)); //#22333 + $aload($get($get($_.latseq, $_.x), $_.y)); //#22334 + var _59 = $a(); //#22334 + var _5A = $k[--$j]; //#22335 + $put($k[--$j], _5A, _59); //#22335 + if ($_.y == $_.B) { //#22338 + $k[$j++] = 'backto'; //#22337 + if (($_.x == $_.P) || ($_.x == $_.D)) { //#22337 + $k[$j++] = $_.U; //#22337 + } else { //#22337 + $k[$j++] = $_.x; //#22337 + } //#22337 + var _5K = $k[--$j]; //#22337 + $_[$k[--$j]] = _5K; //#22337 + } //#22337 + $_.imp = true; //#22339 + } //#22339 + } //#22339 + } //#22339 + } //#22339 + if (!$_.imp) { //#22344 + break; //#22344 + } //#22344 + } //#22344 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22348 + $_.nxtseq = $a(6); //#22349 + var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22351 + for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22390 + $_.x = $get(_5b, _5c); //#22352 + for (;;) { //#22388 + if ($_.char >= 0) { //#22360 + if ($_.x != $_.B) { //#22358 + var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22358 + if (!_5m) { //#22358 + break; //#22358 + } //#22358 + } //#22358 + } else { //#22360 + if ($_.x != $_.P) { //#22360 + break; //#22360 + } //#22360 + } //#22360 + $k[$j++] = 'cost'; //#22364 + $k[$j++] = $get($_.curlen, $_.x); //#22364 + $k[$j++] = $_.x; //#22364 + $k[$j++] = $_.char; //#22364 + $_.charsize(); //#22364 + var _5u = $k[--$j]; //#22364 + var _5v = $k[--$j]; //#22364 + $_[$k[--$j]] = $f(_5v + _5u); //#22364 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#22368 + $put($_.nxtlen, $_.x, $_.cost); //#22366 + $k[$j++] = $_.nxtseq; //#22367 + $k[$j++] = $_.x; //#22367 + $k[$j++] = Infinity; //#22367 + $aload($get($_.curseq, $_.x)); //#22367 + $k[$j++] = $_.char; //#22367 + var _6A = $a(); //#22367 + var _6B = $k[--$j]; //#22367 + $put($k[--$j], _6B, _6A); //#22367 + } //#22367 + if ($_.x == $_.B) { //#22371 + break; //#22371 + } //#22371 + var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22372 + for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22385 + $_.y = $get(_6K, _6L); //#22373 + if ($ne($_.x, $_.y)) { //#22384 + $k[$j++] = 'cost'; //#22375 + $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22375 + $k[$j++] = $_.x; //#22375 + $k[$j++] = $_.char; //#22375 + $_.charsize(); //#22375 + var _6a = $k[--$j]; //#22375 + var _6b = $k[--$j]; //#22375 + $_[$k[--$j]] = $f(_6b + _6a); //#22375 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#22383 + $put($_.nxtlen, $_.y, $_.cost); //#22377 + $k[$j++] = $_.nxtseq; //#22381 + $k[$j++] = $_.y; //#22381 + $k[$j++] = Infinity; //#22378 + $aload($get($_.curseq, $_.y)); //#22379 + var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22380 + $k[$j++] = _6r; //#22381 + $k[$j++] = $_.char; //#22381 + var _6t = $a(); //#22381 + var _6u = $k[--$j]; //#22382 + $put($k[--$j], _6u, _6t); //#22382 + } //#22382 + } //#22382 + } //#22382 + break; //#22387 + } //#22387 + } //#22387 + if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22451 + var _6y = $s(2); //#22394 + $put(_6y, 0, $_.lastchar); //#22394 + $put(_6y, 1, $_.char); //#22394 + $_.pchars = _6y; //#22394 + var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22395 + if (_73) { //#22450 + var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22396 + for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22449 + $_.i = $get(_79, _7A); //#22397 + $_.inP = true; //#22398 + if ($_.i == $_.M) { //#22403 + if ($_.lastchar == 13) { //#22400 + $_.inP = false; //#22400 + } //#22400 + } else { //#22403 + if ($_.i == $_.D) { //#22404 + if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22403 + $_.inP = false; //#22403 + } //#22403 + } //#22403 + } //#22403 + if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22448 + $_.curseqi = $get($_.curseq, $_.i); //#22407 + $_.lastld = false; //#22408 + $_.lastsp = false; //#22409 + $_.lastidx = -1; //#22410 + for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22431 + $_.idx = _7V; //#22412 + $_.ch = $get($_.curseqi, $_.idx); //#22413 + if ($_.lastidx == -1) { //#22428 + if ($eq($_.ch, $_.lastchar)) { //#22420 + $_.lastidx = $_.idx; //#22416 + if ($_.idx > 0) { //#22419 + if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22418 + $_.lastsp = true; //#22418 + } //#22418 + } //#22418 + } //#22418 + } else { //#22428 + if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22429 + if ($_.i == $_.P) { //#22426 + if ($_.ch == $_.ld) { //#22424 + $_.lastld = true; //#22424 + } //#22424 + } else { //#22426 + if ($_.ch != $_.lp) { //#22426 + $_.inP = $_.lastsp; //#22426 + } //#22426 + } //#22426 + break; //#22428 + } //#22428 + } //#22428 + } //#22428 + if ($_.inP && ($_.lastidx >= 0)) { //#22447 + $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22433 + if ($_.lastidx < ($_.curseqi.length - 1)) { //#22445 + if ($_.i == $_.P) { //#22442 + if ($_.lastld) { //#22436 + $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22436 + } //#22436 + $k[$j++] = $_.nxtseq; //#22438 + $k[$j++] = $_.i; //#22438 + $k[$j++] = Infinity; //#22438 + $aload($_.curseqi); //#22438 + $r($_.curseqi.length - $_.lastidx, -1); //#22438 + $j--; //#22438 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22438 + var _8H = $a(); //#22438 + var _8I = $k[--$j]; //#22438 + $put($k[--$j], _8I, _8H); //#22438 + } else { //#22442 + $k[$j++] = $_.nxtseq; //#22441 + $k[$j++] = $_.i; //#22441 + $k[$j++] = Infinity; //#22441 + $aload($_.curseqi); //#22441 + var _8N = $a(); //#22441 + var _8O = $k[--$j]; //#22441 + $put($k[--$j], _8O, _8N); //#22441 + $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22442 + } //#22442 + } else { //#22445 + $k[$j++] = $_.nxtseq; //#22445 + $k[$j++] = $_.i; //#22445 + $k[$j++] = Infinity; //#22445 + $aload($_.curseqi); //#22445 + $j--; //#22445 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22445 + var _8d = $a(); //#22445 + var _8e = $k[--$j]; //#22445 + $put($k[--$j], _8e, _8d); //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + if ($ne($get($_.nxtseq, $_.B), null)) { //#22460 + $_.numbytes = 0; //#22455 + $forall($get($_.nxtseq, $_.B), function() { //#22458 + if ($k[--$j] == $_.sb) { //#22457 + $k[$j++] = 0; //#22457 + } else { //#22457 + $k[$j++] = $_.numbytes + 1; //#22457 + } //#22457 + $_.numbytes = $k[--$j]; //#22457 + }); //#22457 + if ($_.numbytes == 32) { //#22459 + $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22459 + } //#22459 + } //#22459 + $_.curlen = $_.nxtlen; //#22462 + $_.curseq = $_.nxtseq; //#22463 + $k[$j++] = 'lastchar'; //#22464 + if ($_.char >= 0) { //#22464 + $k[$j++] = $_.char; //#22464 + } else { //#22464 + $k[$j++] = ""; //#22464 + } //#22464 + var _90 = $k[--$j]; //#22464 + $_[$k[--$j]] = _90; //#22464 + }); //#22464 + $_.minseq = $_.e; //#22469 + var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22470 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22476 + $_.i = $get(_99, _9A); //#22471 + if ($get($_.curlen, $_.i) < $_.minseq) { //#22475 + $_.minseq = $get($_.curlen, $_.i); //#22473 + $_.seq = $get($_.curseq, $_.i); //#22474 + } //#22474 + } //#22474 $_.tobin = function() { - var _9O = $s($k[--$j]); //#22188 - $k[$j++] = _9O; //#22188 - for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22188 - var _9R = $k[--$j]; //#22188 - $put(_9R, _9Q, 48); //#22188 - $k[$j++] = _9R; //#22188 - } //#22188 - var _9S = $k[--$j]; //#22189 - var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22189 - $puti(_9S, _9S.length - _9V.length, _9V); //#22189 - $k[$j++] = _9S; //#22189 - }; //#22189 + var _9O = $s($k[--$j]); //#22480 + $k[$j++] = _9O; //#22480 + for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22480 + var _9R = $k[--$j]; //#22480 + $put(_9R, _9Q, 48); //#22480 + $k[$j++] = _9R; //#22480 + } //#22480 + var _9S = $k[--$j]; //#22481 + var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22481 + $puti(_9S, _9S.length - _9V.length, _9V); //#22481 + $k[$j++] = _9S; //#22481 + }; //#22481 $_.encu = function() { - var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22192 - $k[$j++] = _9a; //#22192 - $k[$j++] = 5; //#22192 - $_.tobin(); //#22192 - }; //#22192 + var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22484 + $k[$j++] = _9a; //#22484 + $k[$j++] = 5; //#22484 + $_.tobin(); //#22484 + }; //#22484 $_.encl = function() { - var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22193 - $k[$j++] = _9f; //#22193 - $k[$j++] = 5; //#22193 - $_.tobin(); //#22193 - }; //#22193 + var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22485 + $k[$j++] = _9f; //#22485 + $k[$j++] = 5; //#22485 + $_.tobin(); //#22485 + }; //#22485 $_.encm = function() { - var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22194 - $k[$j++] = _9k; //#22194 - $k[$j++] = 5; //#22194 - $_.tobin(); //#22194 - }; //#22194 + var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22486 + $k[$j++] = _9k; //#22486 + $k[$j++] = 5; //#22486 + $_.tobin(); //#22486 + }; //#22486 $_.encd = function() { - var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22195 - $k[$j++] = _9p; //#22195 - $k[$j++] = 4; //#22195 - $_.tobin(); //#22195 - }; //#22195 + var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22487 + $k[$j++] = _9p; //#22487 + $k[$j++] = 4; //#22487 + $_.tobin(); //#22487 + }; //#22487 $_.encp = function() { - var _9q = $k[--$j]; //#22198 - $k[$j++] = _9q; //#22215 - if (_9q == $_.fn1) { //#22214 - $j--; //#22199 - $k[$j++] = "00000000"; //#22199 - } else { //#22214 - var _9s = $k[--$j]; //#22201 - $k[$j++] = _9s; //#22215 - if (_9s <= -1000000) { //#22214 - var _9u = $f((-$k[--$j]) - 1000000); //#22202 - $k[$j++] = _9u; //#22202 - $k[$j++] = _9u; //#22202 - if (_9u == 0) { //#22202 - $j--; //#22202 - $k[$j++] = 1; //#22202 - } //#22202 - var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22204 - var _9x = $s(((_9w + 1) * 4) + 8); //#22204 - $puti(_9x, 0, "00000"); //#22205 - $k[$j++] = _9w; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9w + 1; //#22206 - $k[$j++] = 3; //#22206 - $_.tobin(); //#22206 - var _9y = $k[--$j]; //#22206 - $puti($k[--$j], 5, _9y); //#22206 - var _A0 = $k[--$j]; //#22207 - var _A1 = $k[--$j]; //#22207 - var _A2 = $k[--$j]; //#22207 - $k[$j++] = _A0; //#22211 - $k[$j++] = _A2; //#22211 - for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22211 - var _A4 = $k[--$j]; //#22208 - var _A5 = $k[--$j]; //#22209 - $k[$j++] = _A5; //#22210 - $k[$j++] = ~~(_A4 / 10); //#22210 - $k[$j++] = _A5; //#22210 - $k[$j++] = (_A3 * 4) + 8; //#22210 - $k[$j++] = $f((_A4 % 10) + 2); //#22210 - $k[$j++] = 4; //#22210 - $_.tobin(); //#22210 - var _A6 = $k[--$j]; //#22210 - var _A7 = $k[--$j]; //#22210 - $puti($k[--$j], _A7, _A6); //#22210 - } //#22210 - $j--; //#22212 - } else { //#22214 - var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22214 - $k[$j++] = _AD; //#22214 - $k[$j++] = 5; //#22214 - $_.tobin(); //#22214 - } //#22214 - } //#22214 - }; //#22214 - $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22218 + var _9q = $k[--$j]; //#22490 + $k[$j++] = _9q; //#22507 + if (_9q == $_.fn1) { //#22506 + $j--; //#22491 + $k[$j++] = "00000000"; //#22491 + } else { //#22506 + var _9s = $k[--$j]; //#22493 + $k[$j++] = _9s; //#22507 + if (_9s <= -1000000) { //#22506 + var _9u = $f((-$k[--$j]) - 1000000); //#22494 + $k[$j++] = _9u; //#22494 + $k[$j++] = _9u; //#22494 + if (_9u == 0) { //#22494 + $j--; //#22494 + $k[$j++] = 1; //#22494 + } //#22494 + var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22496 + var _9x = $s(((_9w + 1) * 4) + 8); //#22496 + $puti(_9x, 0, "00000"); //#22497 + $k[$j++] = _9w; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9w + 1; //#22498 + $k[$j++] = 3; //#22498 + $_.tobin(); //#22498 + var _9y = $k[--$j]; //#22498 + $puti($k[--$j], 5, _9y); //#22498 + var _A0 = $k[--$j]; //#22499 + var _A1 = $k[--$j]; //#22499 + var _A2 = $k[--$j]; //#22499 + $k[$j++] = _A0; //#22503 + $k[$j++] = _A2; //#22503 + for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22503 + var _A4 = $k[--$j]; //#22500 + var _A5 = $k[--$j]; //#22501 + $k[$j++] = _A5; //#22502 + $k[$j++] = ~~(_A4 / 10); //#22502 + $k[$j++] = _A5; //#22502 + $k[$j++] = (_A3 * 4) + 8; //#22502 + $k[$j++] = $f((_A4 % 10) + 2); //#22502 + $k[$j++] = 4; //#22502 + $_.tobin(); //#22502 + var _A6 = $k[--$j]; //#22502 + var _A7 = $k[--$j]; //#22502 + $puti($k[--$j], _A7, _A6); //#22502 + } //#22502 + $j--; //#22504 + } else { //#22506 + var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22506 + $k[$j++] = _AD; //#22506 + $k[$j++] = 5; //#22506 + $_.tobin(); //#22506 + } //#22506 + } //#22506 + }; //#22506 + $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22510 $_.addtomsgbits = function() { - $_.v = $k[--$j]; //#22221 - $puti($_.msgbits, $_.j, $_.v); //#22222 - $_.j = $_.j + $_.v.length; //#22223 - }; //#22223 - $_.state = $_.U; //#22227 - $_.msgbits = $s($_.minseq); //#22228 - $_.i = 0; //#22229 - $_.j = 0; //#22229 - for (;;) { //#22288 - if ($_.i >= $_.seq.length) { //#22230 - break; //#22230 - } //#22230 - if ($_.state != $_.B) { //#22283 - $_.char = $get($_.seq, $_.i); //#22234 - $k[$j++] = $_.char; //#22237 + $_.v = $k[--$j]; //#22513 + $puti($_.msgbits, $_.j, $_.v); //#22514 + $_.j = $_.j + $_.v.length; //#22515 + }; //#22515 + $_.state = $_.U; //#22519 + $_.msgbits = $s($_.minseq); //#22520 + $_.i = 0; //#22521 + $_.j = 0; //#22521 + for (;;) { //#22580 + if ($_.i >= $_.seq.length) { //#22522 + break; //#22522 + } //#22522 + if ($_.state != $_.B) { //#22575 + $_.char = $get($_.seq, $_.i); //#22526 + $k[$j++] = $_.char; //#22529 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#22237 - $_.addtomsgbits(); //#22237 - $_.i = $_.i + 1; //#22238 - if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22244 - $k[$j++] = $get($_.seq, $_.i); //#22242 - if ($_.char == $_.su) { //#22242 - $_.encu(); //#22242 - } else { //#22242 - $_.encp(); //#22242 - } //#22242 - $_.addtomsgbits(); //#22242 - $_.i = $_.i + 1; //#22243 - } //#22243 - if ($_.char == $_.lu) { //#22247 - $_.state = $_.U; //#22247 - } //#22247 - if ($_.char == $_.ll) { //#22248 - $_.state = $_.L; //#22248 - } //#22248 - if ($_.char == $_.lm) { //#22249 - $_.state = $_.M; //#22249 - } //#22249 - if ($_.char == $_.lp) { //#22250 - $_.state = $_.P; //#22250 - } //#22250 - if ($_.char == $_.ld) { //#22251 - $_.state = $_.D; //#22251 - } //#22251 - if ($_.char == $_.sb) { //#22252 - $_.state = $_.B; //#22252 - } //#22252 - } else { //#22283 - $_.numbytes = 0; //#22257 - for (;;) { //#22261 - if (($_.i + $_.numbytes) >= $_.seq.length) { //#22258 - break; //#22258 - } //#22258 - if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22259 - break; //#22259 - } //#22259 - $_.numbytes = $_.numbytes + 1; //#22260 - } //#22260 - if ($_.numbytes <= 31) { //#22268 - $k[$j++] = $_.numbytes; //#22265 - $k[$j++] = 5; //#22265 - $_.tobin(); //#22265 - $_.addtomsgbits(); //#22265 - } else { //#22268 - $k[$j++] = 0; //#22267 - $k[$j++] = 5; //#22267 - $_.tobin(); //#22267 - $_.addtomsgbits(); //#22267 - $k[$j++] = $_.numbytes - 31; //#22268 - $k[$j++] = 11; //#22268 - $_.tobin(); //#22268 - $_.addtomsgbits(); //#22268 - } //#22268 - for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22275 - $k[$j++] = $get($_.seq, $_.i); //#22273 - $k[$j++] = 8; //#22273 - $_.tobin(); //#22273 - $_.addtomsgbits(); //#22273 - $_.i = $_.i + 1; //#22274 - } //#22274 - if ($_.i < $_.seq.length) { //#22284 - $_.char = $get($_.seq, $_.i); //#22279 - $_.i = $_.i + 1; //#22280 - if ($_.char == $_.lu) { //#22281 - $_.state = $_.U; //#22281 - } //#22281 - if ($_.char == $_.ll) { //#22282 - $_.state = $_.L; //#22282 - } //#22282 - if ($_.char == $_.lm) { //#22283 - $_.state = $_.M; //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - if (!bwipp_azteccode.__22309__) { //#22309 - $_ = Object.create($_); //#22309 - $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22308 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22308 - bwipp_azteccode.__22309__ = 1; //#22308 - $_ = Object.getPrototypeOf($_); //#22308 - } //#22308 - var _CD = $_.metrics; //#22311 - for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22327 - $_.m = $get(_CD, _CE); //#22312 - $_.frmt = $get($_.m, 0); //#22313 - $_.mlyr = $get($_.m, 1); //#22314 - $_.icap = $get($_.m, 2); //#22315 - $_.ncws = $get($_.m, 3); //#22316 - $_.bpcw = $get($_.m, 4); //#22317 - $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22318 - if ($_.msgbits.length == 0) { //#22319 - $_.numecw = 0; //#22319 - } //#22319 - $_.numdcw = $f($_.ncws - $_.numecw); //#22320 - $_.okay = true; //#22321 - if ($ne($_.format, $_.frmt)) { //#22322 - $_.okay = false; //#22322 - } //#22322 - if ($_.readerinit && ($_.icap != 1)) { //#22323 - $_.okay = false; //#22323 - } //#22323 - if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22324 - $_.okay = false; //#22324 - } //#22324 - if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22325 - $_.okay = false; //#22325 - } //#22325 - if ($_.okay) { //#22326 - break; //#22326 - } //#22326 - } //#22326 - if (!$_.okay) { //#22331 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#22330'; //#22330 - $k[$j++] = "Maximum length exceeded"; //#22330 - bwipp_raiseerror(); //#22330 - } //#22330 - $_.layers = $_.mlyr; //#22333 + } //#22529 + $_.addtomsgbits(); //#22529 + $_.i = $_.i + 1; //#22530 + if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22536 + $k[$j++] = $get($_.seq, $_.i); //#22534 + if ($_.char == $_.su) { //#22534 + $_.encu(); //#22534 + } else { //#22534 + $_.encp(); //#22534 + } //#22534 + $_.addtomsgbits(); //#22534 + $_.i = $_.i + 1; //#22535 + } //#22535 + if ($_.char == $_.lu) { //#22539 + $_.state = $_.U; //#22539 + } //#22539 + if ($_.char == $_.ll) { //#22540 + $_.state = $_.L; //#22540 + } //#22540 + if ($_.char == $_.lm) { //#22541 + $_.state = $_.M; //#22541 + } //#22541 + if ($_.char == $_.lp) { //#22542 + $_.state = $_.P; //#22542 + } //#22542 + if ($_.char == $_.ld) { //#22543 + $_.state = $_.D; //#22543 + } //#22543 + if ($_.char == $_.sb) { //#22544 + $_.state = $_.B; //#22544 + } //#22544 + } else { //#22575 + $_.numbytes = 0; //#22549 + for (;;) { //#22553 + if (($_.i + $_.numbytes) >= $_.seq.length) { //#22550 + break; //#22550 + } //#22550 + if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22551 + break; //#22551 + } //#22551 + $_.numbytes = $_.numbytes + 1; //#22552 + } //#22552 + if ($_.numbytes <= 31) { //#22560 + $k[$j++] = $_.numbytes; //#22557 + $k[$j++] = 5; //#22557 + $_.tobin(); //#22557 + $_.addtomsgbits(); //#22557 + } else { //#22560 + $k[$j++] = 0; //#22559 + $k[$j++] = 5; //#22559 + $_.tobin(); //#22559 + $_.addtomsgbits(); //#22559 + $k[$j++] = $_.numbytes - 31; //#22560 + $k[$j++] = 11; //#22560 + $_.tobin(); //#22560 + $_.addtomsgbits(); //#22560 + } //#22560 + for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22567 + $k[$j++] = $get($_.seq, $_.i); //#22565 + $k[$j++] = 8; //#22565 + $_.tobin(); //#22565 + $_.addtomsgbits(); //#22565 + $_.i = $_.i + 1; //#22566 + } //#22566 + if ($_.i < $_.seq.length) { //#22576 + $_.char = $get($_.seq, $_.i); //#22571 + $_.i = $_.i + 1; //#22572 + if ($_.char == $_.lu) { //#22573 + $_.state = $_.U; //#22573 + } //#22573 + if ($_.char == $_.ll) { //#22574 + $_.state = $_.L; //#22574 + } //#22574 + if ($_.char == $_.lm) { //#22575 + $_.state = $_.M; //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + if (!bwipp_azteccode.__22601__) { //#22601 + $_ = Object.create($_); //#22601 + $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22600 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22600 + bwipp_azteccode.__22601__ = 1; //#22600 + $_ = Object.getPrototypeOf($_); //#22600 + } //#22600 + var _CD = $_.metrics; //#22603 + for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22619 + $_.m = $get(_CD, _CE); //#22604 + $_.frmt = $get($_.m, 0); //#22605 + $_.mlyr = $get($_.m, 1); //#22606 + $_.icap = $get($_.m, 2); //#22607 + $_.ncws = $get($_.m, 3); //#22608 + $_.bpcw = $get($_.m, 4); //#22609 + $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22610 + if ($_.msgbits.length == 0) { //#22611 + $_.numecw = 0; //#22611 + } //#22611 + $_.numdcw = $f($_.ncws - $_.numecw); //#22612 + $_.okay = true; //#22613 + if ($ne($_.format, $_.frmt)) { //#22614 + $_.okay = false; //#22614 + } //#22614 + if ($_.readerinit && ($_.icap != 1)) { //#22615 + $_.okay = false; //#22615 + } //#22615 + if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22616 + $_.okay = false; //#22616 + } //#22616 + if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22617 + $_.okay = false; //#22617 + } //#22617 + if ($_.okay) { //#22618 + break; //#22618 + } //#22618 + } //#22618 + if (!$_.okay) { //#22623 + $k[$j++] = 'bwipp.azteccodeNoValidSymbol#22622'; //#22622 + $k[$j++] = "Maximum length exceeded"; //#22622 + bwipp_raiseerror(); //#22622 + } //#22622 + $_.layers = $_.mlyr; //#22625 $_.allzero = function() { - var _Ck = $k[--$j]; //#22336 - $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22336 - }; //#22336 + var _Ck = $k[--$j]; //#22628 + $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22628 + }; //#22628 $_.allones = function() { - var _Cm = $k[--$j]; //#22337 - $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22337 - }; //#22337 - $_.cws = $a($_.ncws); //#22338 - $_.m = 0; //#22339 - $_.c = 0; //#22339 - for (;;) { //#22366 - if ($_.msgbits.length <= $_.m) { //#22341 - break; //#22341 - } //#22341 - if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22343 - $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22344 - $k[$j++] = $_.cwb; //#22345 - $_.allzero(); //#22345 - if ($k[--$j]) { //#22345 - $_.cwf = "1"; //#22345 - $_.m = $_.m - 1; //#22345 - } //#22345 - $k[$j++] = $_.cwb; //#22346 - $_.allones(); //#22346 - if ($k[--$j]) { //#22346 - $_.cwf = "0"; //#22346 - $_.m = $_.m - 1; //#22346 - } //#22346 - var _D9 = $s(12); //#22348 - $puti(_D9, 0, $_.cwb); //#22348 - $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22349 - $_.cwb = $geti(_D9, 0, $_.bpcw); //#22351 - } else { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22353 - var _DL = $strcpy($s(12), "111111111111"); //#22354 - $puti(_DL, 0, $_.cwb); //#22354 - $_.cwb = $geti(_DL, 0, $_.bpcw); //#22354 - $k[$j++] = $_.cwb; //#22355 - $_.allones(); //#22355 - if ($k[--$j]) { //#22355 - $puti($_.cwb, $_.cwb.length - 1, "0"); //#22355 - } //#22355 - } //#22355 - $_.cw = 0; //#22358 - for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22362 - $_.i = _DV; //#22360 - $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22361 - } //#22361 - $put($_.cws, $_.c, $_.cw); //#22363 - $_.m = $f($_.m + $_.bpcw); //#22364 - $_.c = $_.c + 1; //#22365 - } //#22365 - $_.cws = $geti($_.cws, 0, $_.c); //#22367 - var _Dm = $get($_.options, 'debugcws') !== undefined; //#22369 - if (_Dm) { //#22369 - $k[$j++] = 'bwipp.debugcws#22369'; //#22369 - $k[$j++] = $_.cws; //#22369 - bwipp_raiseerror(); //#22369 - } //#22369 + var _Cm = $k[--$j]; //#22629 + $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22629 + }; //#22629 + $_.cws = $a($_.ncws); //#22630 + $_.m = 0; //#22631 + $_.c = 0; //#22631 + for (;;) { //#22658 + if ($_.msgbits.length <= $_.m) { //#22633 + break; //#22633 + } //#22633 + if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22635 + $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22636 + $k[$j++] = $_.cwb; //#22637 + $_.allzero(); //#22637 + if ($k[--$j]) { //#22637 + $_.cwf = "1"; //#22637 + $_.m = $_.m - 1; //#22637 + } //#22637 + $k[$j++] = $_.cwb; //#22638 + $_.allones(); //#22638 + if ($k[--$j]) { //#22638 + $_.cwf = "0"; //#22638 + $_.m = $_.m - 1; //#22638 + } //#22638 + var _D9 = $s(12); //#22640 + $puti(_D9, 0, $_.cwb); //#22640 + $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22641 + $_.cwb = $geti(_D9, 0, $_.bpcw); //#22643 + } else { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22645 + var _DL = $strcpy($s(12), "111111111111"); //#22646 + $puti(_DL, 0, $_.cwb); //#22646 + $_.cwb = $geti(_DL, 0, $_.bpcw); //#22646 + $k[$j++] = $_.cwb; //#22647 + $_.allones(); //#22647 + if ($k[--$j]) { //#22647 + $puti($_.cwb, $_.cwb.length - 1, "0"); //#22647 + } //#22647 + } //#22647 + $_.cw = 0; //#22650 + for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22654 + $_.i = _DV; //#22652 + $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22653 + } //#22653 + $put($_.cws, $_.c, $_.cw); //#22655 + $_.m = $f($_.m + $_.bpcw); //#22656 + $_.c = $_.c + 1; //#22657 + } //#22657 + $_.cws = $geti($_.cws, 0, $_.c); //#22659 + var _Dm = $get($_.options, 'debugcws') !== undefined; //#22661 + if (_Dm) { //#22661 + $k[$j++] = 'bwipp.debugcws#22661'; //#22661 + $k[$j++] = $_.cws; //#22661 + bwipp_raiseerror(); //#22661 + } //#22661 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#22374 - $_.rsgf = $k[--$j]; //#22375 - $_.rsnc = $k[--$j]; //#22376 - $_.rscws = $k[--$j]; //#22377 - $k[$j++] = Infinity; //#22380 - $k[$j++] = 1; //#22380 - for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22380 - var _Dv = $k[--$j]; //#22380 - var _Dw = _Dv * 2; //#22380 - $k[$j++] = _Dv; //#22380 - $k[$j++] = _Dw; //#22380 - if (_Dw >= $_.rsgf) { //#22380 - var _Dz = $k[--$j]; //#22380 - $k[$j++] = $xo(_Dz, $_.rspm); //#22380 - } //#22380 - } //#22380 - $_.rsalog = $a(); //#22380 - $_.rslog = $a($_.rsgf); //#22381 - for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22382 - $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22382 - } //#22382 + $_.rspm = $k[--$j]; //#22666 + $_.rsgf = $k[--$j]; //#22667 + $_.rsnc = $k[--$j]; //#22668 + $_.rscws = $k[--$j]; //#22669 + $k[$j++] = Infinity; //#22672 + $k[$j++] = 1; //#22672 + for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22672 + var _Dv = $k[--$j]; //#22672 + var _Dw = _Dv * 2; //#22672 + $k[$j++] = _Dv; //#22672 + $k[$j++] = _Dw; //#22672 + if (_Dw >= $_.rsgf) { //#22672 + var _Dz = $k[--$j]; //#22672 + $k[$j++] = $xo(_Dz, $_.rspm); //#22672 + } //#22672 + } //#22672 + $_.rsalog = $a(); //#22672 + $_.rslog = $a($_.rsgf); //#22673 + for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22674 + $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22674 + } //#22674 $_.rsprod = function() { - var _E9 = $k[--$j]; //#22386 - var _EA = $k[--$j]; //#22386 - $k[$j++] = _EA; //#22390 - $k[$j++] = _E9; //#22390 - if ((_E9 != 0) && (_EA != 0)) { //#22389 - var _ED = $get($_.rslog, $k[--$j]); //#22387 - var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22387 - $k[$j++] = _EJ; //#22387 - } else { //#22389 - $j -= 2; //#22389 - $k[$j++] = 0; //#22389 - } //#22389 - }; //#22389 - $k[$j++] = Infinity; //#22394 - $k[$j++] = 1; //#22394 - for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22394 - $k[$j++] = 0; //#22394 - } //#22394 - $_.coeffs = $a(); //#22394 - for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22403 - $_.i = _EQ; //#22396 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22397 - for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22401 - $_.j = _EX; //#22399 - $k[$j++] = $_.coeffs; //#22400 - $k[$j++] = $_.j; //#22400 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#22400 - $k[$j++] = $get($_.coeffs, $_.j); //#22400 - $k[$j++] = $get($_.rsalog, $_.i); //#22400 - $_.rsprod(); //#22400 - var _Ej = $k[--$j]; //#22400 - var _Ek = $k[--$j]; //#22400 - var _El = $k[--$j]; //#22400 - $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22400 - } //#22400 - $k[$j++] = $_.coeffs; //#22402 - $k[$j++] = 0; //#22402 - $k[$j++] = $get($_.coeffs, 0); //#22402 - $k[$j++] = $get($_.rsalog, $_.i); //#22402 - $_.rsprod(); //#22402 - var _Et = $k[--$j]; //#22402 - var _Eu = $k[--$j]; //#22402 - $put($k[--$j], _Eu, _Et); //#22402 - } //#22402 - $_.nd = $_.rscws.length; //#22406 - $k[$j++] = Infinity; //#22407 - $forall($_.rscws); //#22407 - for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22407 - $k[$j++] = 0; //#22407 - } //#22407 - $k[$j++] = 0; //#22407 - $_.rscws = $a(); //#22407 - for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22414 - $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22409 - for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22413 - $_.j = _FC; //#22411 - $k[$j++] = $_.rscws; //#22412 - $k[$j++] = $_.nd + $_.j; //#22412 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22412 - $k[$j++] = $_.k; //#22412 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22412 - $_.rsprod(); //#22412 - var _FP = $k[--$j]; //#22412 - var _FQ = $k[--$j]; //#22412 - var _FR = $k[--$j]; //#22412 - $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22412 - } //#22412 - } //#22412 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22417 - }; //#22417 - if ($eq($_.format, "full")) { //#22432 - $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22423 - if ($_.readerinit) { //#22424 - $_.mode = $_.mode | 1024; //#22424 - } //#22424 - $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22430 - $k[$j++] = 'mode'; //#22431 - $k[$j++] = $_.mode; //#22431 - $k[$j++] = 6; //#22431 - $k[$j++] = 16; //#22431 - $k[$j++] = 19; //#22431 - $_.rscodes(); //#22431 - var _Fh = $k[--$j]; //#22431 - $_[$k[--$j]] = _Fh; //#22431 - } //#22431 - if ($eq($_.format, "compact")) { //#22441 - $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22434 - if ($_.readerinit) { //#22435 - $_.mode = $_.mode | 32; //#22435 - } //#22435 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22439 - $k[$j++] = 'mode'; //#22440 - $k[$j++] = $_.mode; //#22440 - $k[$j++] = 5; //#22440 - $k[$j++] = 16; //#22440 - $k[$j++] = 19; //#22440 - $_.rscodes(); //#22440 - var _Fs = $k[--$j]; //#22440 - $_[$k[--$j]] = _Fs; //#22440 - } //#22440 - if ($eq($_.format, "rune")) { //#22450 - $_.mode = $cvi($_.barcode); //#22443 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22447 - $k[$j++] = 'mode'; //#22448 - $k[$j++] = $_.mode; //#22448 - $k[$j++] = 5; //#22448 - $k[$j++] = 16; //#22448 - $k[$j++] = 19; //#22448 - $_.rscodes(); //#22448 - var _G0 = $k[--$j]; //#22448 - $_[$k[--$j]] = _G0; //#22448 - $k[$j++] = Infinity; //#22449 - var _G2 = $_.mode; //#22449 - for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22449 - $k[$j++] = $get(_G2, _G3) ^ 10; //#22449 - } //#22449 - $_.mode = $a(); //#22449 - } //#22449 - $_.modebits = $s($_.mode.length * 4); //#22451 - for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22452 - $puti($_.modebits, _GB, "0"); //#22452 - } //#22452 - for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22456 - $_.i = _GF; //#22454 - var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22455 - $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22455 - } //#22455 - if (!bwipp_azteccode.__22470__) { //#22470 - $_ = Object.create($_); //#22470 - $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22469 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22469 - bwipp_azteccode.__22470__ = 1; //#22469 - $_ = Object.getPrototypeOf($_); //#22469 - } //#22469 - $k[$j++] = 'cws'; //#22471 - $k[$j++] = $_.cws; //#22471 - $k[$j++] = $f($_.ncws - $_.cws.length); //#22471 - $forall($get($_.rsparams, $_.bpcw)); //#22471 - $_.rscodes(); //#22471 - var _Gi = $k[--$j]; //#22471 - $_[$k[--$j]] = _Gi; //#22471 - if ($eq($_.format, "full")) { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22473 - } else { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22475 - } //#22475 - for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22477 - $puti($_.databits, _Gv, "0"); //#22477 - } //#22477 - for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22483 - $_.i = _Gz; //#22479 - var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22480 - $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22482 - } //#22482 + var _E9 = $k[--$j]; //#22678 + var _EA = $k[--$j]; //#22678 + $k[$j++] = _EA; //#22682 + $k[$j++] = _E9; //#22682 + if ((_E9 != 0) && (_EA != 0)) { //#22681 + var _ED = $get($_.rslog, $k[--$j]); //#22679 + var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22679 + $k[$j++] = _EJ; //#22679 + } else { //#22681 + $j -= 2; //#22681 + $k[$j++] = 0; //#22681 + } //#22681 + }; //#22681 + $k[$j++] = Infinity; //#22686 + $k[$j++] = 1; //#22686 + for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22686 + $k[$j++] = 0; //#22686 + } //#22686 + $_.coeffs = $a(); //#22686 + for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22695 + $_.i = _EQ; //#22688 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22689 + for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22693 + $_.j = _EX; //#22691 + $k[$j++] = $_.coeffs; //#22692 + $k[$j++] = $_.j; //#22692 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#22692 + $k[$j++] = $get($_.coeffs, $_.j); //#22692 + $k[$j++] = $get($_.rsalog, $_.i); //#22692 + $_.rsprod(); //#22692 + var _Ej = $k[--$j]; //#22692 + var _Ek = $k[--$j]; //#22692 + var _El = $k[--$j]; //#22692 + $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22692 + } //#22692 + $k[$j++] = $_.coeffs; //#22694 + $k[$j++] = 0; //#22694 + $k[$j++] = $get($_.coeffs, 0); //#22694 + $k[$j++] = $get($_.rsalog, $_.i); //#22694 + $_.rsprod(); //#22694 + var _Et = $k[--$j]; //#22694 + var _Eu = $k[--$j]; //#22694 + $put($k[--$j], _Eu, _Et); //#22694 + } //#22694 + $_.nd = $_.rscws.length; //#22698 + $k[$j++] = Infinity; //#22699 + $forall($_.rscws); //#22699 + for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22699 + $k[$j++] = 0; //#22699 + } //#22699 + $k[$j++] = 0; //#22699 + $_.rscws = $a(); //#22699 + for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22706 + $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22701 + for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22705 + $_.j = _FC; //#22703 + $k[$j++] = $_.rscws; //#22704 + $k[$j++] = $_.nd + $_.j; //#22704 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22704 + $k[$j++] = $_.k; //#22704 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22704 + $_.rsprod(); //#22704 + var _FP = $k[--$j]; //#22704 + var _FQ = $k[--$j]; //#22704 + var _FR = $k[--$j]; //#22704 + $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22704 + } //#22704 + } //#22704 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22709 + }; //#22709 + if ($eq($_.format, "full")) { //#22724 + $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22715 + if ($_.readerinit) { //#22716 + $_.mode = $_.mode | 1024; //#22716 + } //#22716 + $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22722 + $k[$j++] = 'mode'; //#22723 + $k[$j++] = $_.mode; //#22723 + $k[$j++] = 6; //#22723 + $k[$j++] = 16; //#22723 + $k[$j++] = 19; //#22723 + $_.rscodes(); //#22723 + var _Fh = $k[--$j]; //#22723 + $_[$k[--$j]] = _Fh; //#22723 + } //#22723 + if ($eq($_.format, "compact")) { //#22733 + $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22726 + if ($_.readerinit) { //#22727 + $_.mode = $_.mode | 32; //#22727 + } //#22727 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22731 + $k[$j++] = 'mode'; //#22732 + $k[$j++] = $_.mode; //#22732 + $k[$j++] = 5; //#22732 + $k[$j++] = 16; //#22732 + $k[$j++] = 19; //#22732 + $_.rscodes(); //#22732 + var _Fs = $k[--$j]; //#22732 + $_[$k[--$j]] = _Fs; //#22732 + } //#22732 + if ($eq($_.format, "rune")) { //#22742 + $_.mode = $cvi($_.barcode); //#22735 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22739 + $k[$j++] = 'mode'; //#22740 + $k[$j++] = $_.mode; //#22740 + $k[$j++] = 5; //#22740 + $k[$j++] = 16; //#22740 + $k[$j++] = 19; //#22740 + $_.rscodes(); //#22740 + var _G0 = $k[--$j]; //#22740 + $_[$k[--$j]] = _G0; //#22740 + $k[$j++] = Infinity; //#22741 + var _G2 = $_.mode; //#22741 + for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22741 + $k[$j++] = $get(_G2, _G3) ^ 10; //#22741 + } //#22741 + $_.mode = $a(); //#22741 + } //#22741 + $_.modebits = $s($_.mode.length * 4); //#22743 + for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22744 + $puti($_.modebits, _GB, "0"); //#22744 + } //#22744 + for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22748 + $_.i = _GF; //#22746 + var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22747 + $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22747 + } //#22747 + if (!bwipp_azteccode.__22762__) { //#22762 + $_ = Object.create($_); //#22762 + $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22761 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22761 + bwipp_azteccode.__22762__ = 1; //#22761 + $_ = Object.getPrototypeOf($_); //#22761 + } //#22761 + $k[$j++] = 'cws'; //#22763 + $k[$j++] = $_.cws; //#22763 + $k[$j++] = $f($_.ncws - $_.cws.length); //#22763 + $forall($get($_.rsparams, $_.bpcw)); //#22763 + $_.rscodes(); //#22763 + var _Gi = $k[--$j]; //#22763 + $_[$k[--$j]] = _Gi; //#22763 + if ($eq($_.format, "full")) { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22765 + } else { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22767 + } //#22767 + for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22769 + $puti($_.databits, _Gv, "0"); //#22769 + } //#22769 + for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22775 + $_.i = _Gz; //#22771 + var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22772 + $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22774 + } //#22774 $_.cmv = function() { - var _HE = $k[--$j]; //#22486 - var _HF = $k[--$j]; //#22486 - $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22486 - }; //#22486 + var _HE = $k[--$j]; //#22778 + var _HF = $k[--$j]; //#22778 + $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22778 + }; //#22778 $_.lmv = function() { - $_.lbit = $k[--$j]; //#22490 - $_.llyr = $k[--$j]; //#22491 - $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22492 - $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22493 - if ($_.ldir == 0) { //#22498 - $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22497 - $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22497 - $_.cmv(); //#22497 - } //#22497 - if ($_.ldir == 1) { //#22503 - $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22502 - $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22502 - $_.cmv(); //#22502 - } //#22502 - if ($_.ldir == 2) { //#22508 - $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22507 - $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22507 - $_.cmv(); //#22507 - } //#22507 - if ($_.ldir == 3) { //#22513 - $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22512 - $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22512 - $_.cmv(); //#22512 - } //#22512 - }; //#22512 - if ($eq($_.format, "full")) { //#22518 - $_.fw = 12; //#22518 - } else { //#22518 - $_.fw = 9; //#22518 - } //#22518 - $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22519 - $k[$j++] = Infinity; //#22520 - for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22520 - $k[$j++] = -1; //#22520 - } //#22520 - $_.pixs = $a(); //#22520 - $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22521 - $_.i = 0; //#22524 - for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22532 - $_.layer = _I2; //#22526 - for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22531 - $_.pos = _I6; //#22528 - $k[$j++] = $_.pixs; //#22529 - $k[$j++] = $_.layer; //#22529 - $k[$j++] = $_.pos; //#22529 - $_.lmv(); //#22529 - var _IE = $k[--$j]; //#22529 - $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22529 - $_.i = $_.i + 1; //#22530 - } //#22530 - } //#22530 - if ($eq($_.format, "full")) { //#22559 - $_.fw = 13; //#22536 - $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22537 - $_.mid = ~~(($_.size * $_.size) / 2); //#22538 - $k[$j++] = Infinity; //#22539 - for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22539 - $k[$j++] = -2; //#22539 - } //#22539 - $_.npixs = $a(); //#22539 - for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22549 - $_.i = _IU; //#22541 - for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22548 - $_.j = _IX; //#22543 - $k[$j++] = $_.npixs; //#22544 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22544 - $k[$j++] = $_.i; //#22544 - $_.cmv(); //#22544 - var _Ig = $k[--$j]; //#22544 - $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22544 - $k[$j++] = $_.npixs; //#22545 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22545 - $k[$j++] = -$_.i; //#22545 - $_.cmv(); //#22545 - var _Iq = $k[--$j]; //#22545 - $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22545 - $k[$j++] = $_.npixs; //#22546 - $k[$j++] = $_.i; //#22546 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22546 - $_.cmv(); //#22546 - var _J0 = $k[--$j]; //#22546 - $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22546 - $k[$j++] = $_.npixs; //#22547 - $k[$j++] = -$_.i; //#22547 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22547 - $_.cmv(); //#22547 - var _JA = $k[--$j]; //#22547 - $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22547 - } //#22547 - } //#22547 - $_.j = 0; //#22550 - for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22557 - $_.i = _JE; //#22552 - if ($get($_.npixs, $_.i) == -2) { //#22556 - $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22554 - $_.j = $_.j + 1; //#22555 - } //#22555 - } //#22555 - $_.pixs = $_.npixs; //#22558 - } //#22558 - $_.fw = ~~($_.fw / 2); //#22562 - for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22571 - $_.i = _JT; //#22564 - for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22570 - $_.j = _JX; //#22566 - $k[$j++] = $_.pixs; //#22567 - $k[$j++] = $_.i; //#22567 - $k[$j++] = $_.j; //#22567 - $_.cmv(); //#22567 - if (Math.abs($_.i) > Math.abs($_.j)) { //#22568 - $k[$j++] = Math.abs($_.i); //#22568 - } else { //#22568 - $k[$j++] = Math.abs($_.j); //#22568 - } //#22568 - var _Jf = $k[--$j]; //#22568 - var _Jg = $k[--$j]; //#22569 - $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22569 - } //#22569 - } //#22569 - var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22579 - for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22580 - $k[$j++] = $_.pixs; //#22580 - $forall($get(_KI, _KJ)); //#22580 - var _KN = $k[--$j]; //#22580 - var _KO = $k[--$j]; //#22580 - var _KP = $k[--$j]; //#22580 - $k[$j++] = _KN; //#22580 - $k[$j++] = _KP; //#22580 - $k[$j++] = _KO; //#22580 - $_.cmv(); //#22580 - var _KQ = $k[--$j]; //#22580 - var _KR = $k[--$j]; //#22580 - $put($k[--$j], _KQ, _KR); //#22580 - } //#22580 - if (!bwipp_azteccode.__22596__) { //#22596 - $_ = Object.create($_); //#22596 - $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22589 - $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22595 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22595 - bwipp_azteccode.__22596__ = 1; //#22595 - $_ = Object.getPrototypeOf($_); //#22595 - } //#22595 - $k[$j++] = 'modemap'; //#22597 - if ($eq($_.format, "full")) { //#22597 - $k[$j++] = $_.modemapfull; //#22597 - } else { //#22597 - $k[$j++] = $_.modemapcompact; //#22597 - } //#22597 - var _Lf = $k[--$j]; //#22597 - $_[$k[--$j]] = _Lf; //#22597 - for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22601 - $_.i = _Lj; //#22599 - $k[$j++] = $_.pixs; //#22600 - $forall($get($_.modemap, $_.i)); //#22600 - $_.cmv(); //#22600 - var _Lr = $k[--$j]; //#22600 - $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22600 - } //#22600 + $_.lbit = $k[--$j]; //#22782 + $_.llyr = $k[--$j]; //#22783 + $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22784 + $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22785 + if ($_.ldir == 0) { //#22790 + $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22789 + $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22789 + $_.cmv(); //#22789 + } //#22789 + if ($_.ldir == 1) { //#22795 + $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22794 + $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22794 + $_.cmv(); //#22794 + } //#22794 + if ($_.ldir == 2) { //#22800 + $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22799 + $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22799 + $_.cmv(); //#22799 + } //#22799 + if ($_.ldir == 3) { //#22805 + $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22804 + $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22804 + $_.cmv(); //#22804 + } //#22804 + }; //#22804 + if ($eq($_.format, "full")) { //#22810 + $_.fw = 12; //#22810 + } else { //#22810 + $_.fw = 9; //#22810 + } //#22810 + $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22811 + $k[$j++] = Infinity; //#22812 + for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22812 + $k[$j++] = -1; //#22812 + } //#22812 + $_.pixs = $a(); //#22812 + $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22813 + $_.i = 0; //#22816 + for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22824 + $_.layer = _I2; //#22818 + for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22823 + $_.pos = _I6; //#22820 + $k[$j++] = $_.pixs; //#22821 + $k[$j++] = $_.layer; //#22821 + $k[$j++] = $_.pos; //#22821 + $_.lmv(); //#22821 + var _IE = $k[--$j]; //#22821 + $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22821 + $_.i = $_.i + 1; //#22822 + } //#22822 + } //#22822 + if ($eq($_.format, "full")) { //#22851 + $_.fw = 13; //#22828 + $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22829 + $_.mid = ~~(($_.size * $_.size) / 2); //#22830 + $k[$j++] = Infinity; //#22831 + for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22831 + $k[$j++] = -2; //#22831 + } //#22831 + $_.npixs = $a(); //#22831 + for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22841 + $_.i = _IU; //#22833 + for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22840 + $_.j = _IX; //#22835 + $k[$j++] = $_.npixs; //#22836 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22836 + $k[$j++] = $_.i; //#22836 + $_.cmv(); //#22836 + var _Ig = $k[--$j]; //#22836 + $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22836 + $k[$j++] = $_.npixs; //#22837 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22837 + $k[$j++] = -$_.i; //#22837 + $_.cmv(); //#22837 + var _Iq = $k[--$j]; //#22837 + $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22837 + $k[$j++] = $_.npixs; //#22838 + $k[$j++] = $_.i; //#22838 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22838 + $_.cmv(); //#22838 + var _J0 = $k[--$j]; //#22838 + $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22838 + $k[$j++] = $_.npixs; //#22839 + $k[$j++] = -$_.i; //#22839 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22839 + $_.cmv(); //#22839 + var _JA = $k[--$j]; //#22839 + $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22839 + } //#22839 + } //#22839 + $_.j = 0; //#22842 + for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22849 + $_.i = _JE; //#22844 + if ($get($_.npixs, $_.i) == -2) { //#22848 + $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22846 + $_.j = $_.j + 1; //#22847 + } //#22847 + } //#22847 + $_.pixs = $_.npixs; //#22850 + } //#22850 + $_.fw = ~~($_.fw / 2); //#22854 + for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22863 + $_.i = _JT; //#22856 + for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22862 + $_.j = _JX; //#22858 + $k[$j++] = $_.pixs; //#22859 + $k[$j++] = $_.i; //#22859 + $k[$j++] = $_.j; //#22859 + $_.cmv(); //#22859 + if (Math.abs($_.i) > Math.abs($_.j)) { //#22860 + $k[$j++] = Math.abs($_.i); //#22860 + } else { //#22860 + $k[$j++] = Math.abs($_.j); //#22860 + } //#22860 + var _Jf = $k[--$j]; //#22860 + var _Jg = $k[--$j]; //#22861 + $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22861 + } //#22861 + } //#22861 + var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22871 + for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22872 + $k[$j++] = $_.pixs; //#22872 + $forall($get(_KI, _KJ)); //#22872 + var _KN = $k[--$j]; //#22872 + var _KO = $k[--$j]; //#22872 + var _KP = $k[--$j]; //#22872 + $k[$j++] = _KN; //#22872 + $k[$j++] = _KP; //#22872 + $k[$j++] = _KO; //#22872 + $_.cmv(); //#22872 + var _KQ = $k[--$j]; //#22872 + var _KR = $k[--$j]; //#22872 + $put($k[--$j], _KQ, _KR); //#22872 + } //#22872 + if (!bwipp_azteccode.__22888__) { //#22888 + $_ = Object.create($_); //#22888 + $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22881 + $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22887 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22887 + bwipp_azteccode.__22888__ = 1; //#22887 + $_ = Object.getPrototypeOf($_); //#22887 + } //#22887 + $k[$j++] = 'modemap'; //#22889 + if ($eq($_.format, "full")) { //#22889 + $k[$j++] = $_.modemapfull; //#22889 + } else { //#22889 + $k[$j++] = $_.modemapcompact; //#22889 + } //#22889 + var _Lf = $k[--$j]; //#22889 + $_[$k[--$j]] = _Lf; //#22889 + for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22893 + $_.i = _Lj; //#22891 + $k[$j++] = $_.pixs; //#22892 + $forall($get($_.modemap, $_.i)); //#22892 + $_.cmv(); //#22892 + var _Lr = $k[--$j]; //#22892 + $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22892 + } //#22892 var _Lz = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -27649,1730 +28092,1728 @@ function bwipp_azteccode() { ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], ["opt", $_.options] - ]); //#22610 - $k[$j++] = _Lz; //#22613 - if (!$_.dontdraw) { //#22613 - bwipp_renmatrix(); //#22613 - } //#22613 - $_ = Object.getPrototypeOf($_); //#22615 - $_ = Object.getPrototypeOf($_); //#22617 -} - + ]); //#22902 + $k[$j++] = _Lz; //#22905 + if (!$_.dontdraw) { //#22905 + bwipp_renmatrix(); //#22905 + } //#22905 + $_ = Object.getPrototypeOf($_); //#22907 + $_ = Object.getPrototypeOf($_); //#22909 +} //bwipp_azteccode function bwipp_azteccodecompact() { - $_ = Object.create($_); //#22646 - $_.dontdraw = false; //#22649 - $k[$j++] = $_; //#22651 - bwipp_processoptions(); //#22651 - $_.options = $k[--$j]; //#22651 - $_.barcode = $k[--$j]; //#22652 - $put($_.options, "dontdraw", true); //#22655 - $put($_.options, "format", "compact"); //#22656 - $k[$j++] = 'args'; //#22658 - $k[$j++] = $_.barcode; //#22658 - $k[$j++] = $_.options; //#22658 - bwipp_azteccode(); //#22658 - var _6 = $k[--$j]; //#22658 - $_[$k[--$j]] = _6; //#22658 - $put($_.args, "opt", $_.options); //#22660 - $k[$j++] = $_.args; //#22663 - if (!$_.dontdraw) { //#22663 - bwipp_renmatrix(); //#22663 - } //#22663 - $_ = Object.getPrototypeOf($_); //#22665 -} - + $_ = Object.create($_); //#22938 + $_.dontdraw = false; //#22941 + $k[$j++] = $_; //#22943 + bwipp_processoptions(); //#22943 + $_.options = $k[--$j]; //#22943 + $_.barcode = $k[--$j]; //#22944 + $put($_.options, "dontdraw", true); //#22947 + $put($_.options, "format", "compact"); //#22948 + $k[$j++] = 'args'; //#22950 + $k[$j++] = $_.barcode; //#22950 + $k[$j++] = $_.options; //#22950 + bwipp_azteccode(); //#22950 + var _6 = $k[--$j]; //#22950 + $_[$k[--$j]] = _6; //#22950 + $put($_.args, "opt", $_.options); //#22952 + $k[$j++] = $_.args; //#22955 + if (!$_.dontdraw) { //#22955 + bwipp_renmatrix(); //#22955 + } //#22955 + $_ = Object.getPrototypeOf($_); //#22957 +} //bwipp_azteccodecompact function bwipp_aztecrune() { - $_ = Object.create($_); //#22694 - $_.dontdraw = false; //#22697 - $k[$j++] = $_; //#22699 - bwipp_processoptions(); //#22699 - $_.options = $k[--$j]; //#22699 - $_.barcode = $k[--$j]; //#22700 - $put($_.options, "dontdraw", true); //#22703 - $put($_.options, "format", "rune"); //#22704 - $k[$j++] = 'args'; //#22706 - $k[$j++] = $_.barcode; //#22706 - $k[$j++] = $_.options; //#22706 - bwipp_azteccode(); //#22706 - var _6 = $k[--$j]; //#22706 - $_[$k[--$j]] = _6; //#22706 - $put($_.args, "opt", $_.options); //#22708 - $k[$j++] = $_.args; //#22711 - if (!$_.dontdraw) { //#22711 - bwipp_renmatrix(); //#22711 - } //#22711 - $_ = Object.getPrototypeOf($_); //#22713 -} - + $_ = Object.create($_); //#22986 + $_.dontdraw = false; //#22989 + $k[$j++] = $_; //#22991 + bwipp_processoptions(); //#22991 + $_.options = $k[--$j]; //#22991 + $_.barcode = $k[--$j]; //#22992 + $put($_.options, "dontdraw", true); //#22995 + $put($_.options, "format", "rune"); //#22996 + $k[$j++] = 'args'; //#22998 + $k[$j++] = $_.barcode; //#22998 + $k[$j++] = $_.options; //#22998 + bwipp_azteccode(); //#22998 + var _6 = $k[--$j]; //#22998 + $_[$k[--$j]] = _6; //#22998 + $put($_.args, "opt", $_.options); //#23000 + $k[$j++] = $_.args; //#23003 + if (!$_.dontdraw) { //#23003 + bwipp_renmatrix(); //#23003 + } //#23003 + $_ = Object.getPrototypeOf($_); //#23005 +} //bwipp_aztecrune function bwipp_codeone() { - $_ = Object.create($_); //#22744 - $_.dontdraw = false; //#22747 - $_.version = "unset"; //#22748 - $_.parse = false; //#22749 - $_.parsefnc = false; //#22750 - $k[$j++] = $_; //#22752 - bwipp_processoptions(); //#22752 - $_.options = $k[--$j]; //#22752 - $_.barcode = $k[--$j]; //#22753 - var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#22755 - $k[$j++] = false; //#22756 - for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#22756 - var _7 = $k[--$j]; //#22756 - $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#22756 - } //#22756 - if ($nt($k[--$j])) { //#22758 - $k[$j++] = 'bwipp.codeoneBadVersion#22757'; //#22757 - $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#22757 - bwipp_raiseerror(); //#22757 - } //#22757 - bwipp_loadctx(bwipp_codeone) //#22760 - $_.stype = $eq($geti($_.version, 0, 1), "S"); //#22762 - if (!bwipp_codeone.__22920__) { //#22920 - $_ = Object.create($_); //#22920 - $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#22784 - $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#22792 - $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#22808 - $_.fnc1 = -1; //#22811 - $_.fnc3 = -2; //#22811 - $_.lC = -5; //#22812 - $_.lB = -6; //#22812 - $_.lX = -7; //#22812 - $_.lT = -8; //#22812 - $_.lD = -9; //#22812 - $_.unl = -10; //#22812 - $_.fnc2 = -11; //#22813 - $_.fnc4 = -12; //#22813 - $_.sft1 = -13; //#22813 - $_.sft2 = -14; //#22813 - $_.sft3 = -15; //#22813 - $_.eci = -16; //#22813 - $_.pad = -17; //#22813 - $_.fnc1lD = -18; //#22813 - $_.unlcw = 255; //#22814 - $k[$j++] = Infinity; //#22825 - for (var _S = 0; _S <= 128; _S += 1) { //#22817 - $k[$j++] = _S; //#22817 - $k[$j++] = _S + 1; //#22817 - } //#22817 - $k[$j++] = $_.pad; //#22822 - $k[$j++] = 129; //#22822 - for (var _U = 0; _U <= 99; _U += 1) { //#22822 - var _W = $cvrs($s(2), _U, 10); //#22820 - var _Y = $strcpy($s(2), "00"); //#22820 - $puti(_Y, 2 - _W.length, _W); //#22820 - $k[$j++] = _Y; //#22821 - $k[$j++] = _U + 130; //#22821 - } //#22821 - var _g = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#22823 - $k[$j++] = 229; //#22823 - for (var _h = 0, _i = _g.length; _h < _i; _h++) { //#22823 - var _l = $f($k[--$j] + 1); //#22823 - $k[$j++] = $get(_g, _h); //#22823 - $k[$j++] = _l; //#22823 - $k[$j++] = _l; //#22823 - } //#22823 - $j--; //#22823 - $k[$j++] = $_.lX; //#22825 - $k[$j++] = 238; //#22825 - $k[$j++] = $_.lT; //#22825 - $k[$j++] = 239; //#22825 - $_.Avals = $d(); //#22827 - $k[$j++] = Infinity; //#22829 - var _p = $_.Avals; //#22829 - for (var _u = _p.size, _t = _p.keys(), _s = 0; _s < _u; _s++) { //#22829 - var _q = _t.next().value; //#22829 - $k[$j++] = _q; //#22829 - $k[$j++] = _p.get(_q); //#22829 - $k[$j++] = Infinity; //#22829 - var _v = $k[--$j]; //#22829 - var _w = $k[--$j]; //#22829 - $k[$j++] = _v; //#22829 - $k[$j++] = _w; //#22829 - var _x = $a(); //#22829 - $k[$j++] = _x; //#22829 - } //#22829 - $_.Avals = $d(); //#22830 - $k[$j++] = Infinity; //#22838 - $k[$j++] = $_.sft1; //#22837 - $k[$j++] = 0; //#22837 - $k[$j++] = $_.sft2; //#22837 - $k[$j++] = 1; //#22837 - $k[$j++] = $_.sft3; //#22837 - $k[$j++] = 2; //#22837 - $k[$j++] = 32; //#22837 - $k[$j++] = 3; //#22837 - for (var _12 = 48; _12 <= 57; _12 += 1) { //#22837 - $k[$j++] = _12; //#22837 - $k[$j++] = _12 - 44; //#22837 - } //#22837 - for (var _13 = 65; _13 <= 90; _13 += 1) { //#22838 - $k[$j++] = _13; //#22838 - $k[$j++] = _13 - 51; //#22838 - } //#22838 - $_.CNvals = $d(); //#22839 - $k[$j++] = Infinity; //#22840 - for (var _15 = 0; _15 <= 31; _15 += 1) { //#22840 - $k[$j++] = _15; //#22840 - $k[$j++] = _15; //#22840 - } //#22840 - $_.C1vals = $d(); //#22840 - $k[$j++] = Infinity; //#22849 - for (var _17 = 33; _17 <= 47; _17 += 1) { //#22842 - $k[$j++] = _17; //#22842 - $k[$j++] = _17 - 33; //#22842 - } //#22842 - for (var _18 = 58; _18 <= 64; _18 += 1) { //#22843 - $k[$j++] = _18; //#22843 - $k[$j++] = _18 - 43; //#22843 - } //#22843 - for (var _19 = 91; _19 <= 95; _19 += 1) { //#22844 - $k[$j++] = _19; //#22844 - $k[$j++] = _19 - 69; //#22844 - } //#22844 - $k[$j++] = $_.fnc1; //#22849 - $k[$j++] = 27; //#22849 - $k[$j++] = $_.fnc2; //#22849 - $k[$j++] = 28; //#22849 - $k[$j++] = $_.fnc3; //#22849 - $k[$j++] = 29; //#22849 - $k[$j++] = $_.fnc4; //#22849 - $k[$j++] = 30; //#22849 - $k[$j++] = $_.pad; //#22849 - $k[$j++] = 31; //#22849 - $_.C2vals = $d(); //#22850 - $k[$j++] = Infinity; //#22851 - for (var _1G = 96; _1G <= 127; _1G += 1) { //#22851 - $k[$j++] = _1G; //#22851 - $k[$j++] = _1G - 96; //#22851 - } //#22851 - $_.C3vals = $d(); //#22851 - $k[$j++] = Infinity; //#22856 - var _1I = $_.CNvals; //#22853 - for (var _1N = _1I.size, _1M = _1I.keys(), _1L = 0; _1L < _1N; _1L++) { //#22853 - var _1J = _1M.next().value; //#22853 - $k[$j++] = _1J; //#22853 - $k[$j++] = _1I.get(_1J); //#22853 - $k[$j++] = Infinity; //#22853 - var _1O = $k[--$j]; //#22853 - var _1P = $k[--$j]; //#22853 - $k[$j++] = _1O; //#22853 - $k[$j++] = _1P; //#22853 - var _1Q = $a(); //#22853 - $k[$j++] = _1Q; //#22853 - } //#22853 - var _1R = $_.C1vals; //#22854 - for (var _1W = _1R.size, _1V = _1R.keys(), _1U = 0; _1U < _1W; _1U++) { //#22854 - var _1S = _1V.next().value; //#22854 - $k[$j++] = _1S; //#22854 - $k[$j++] = _1R.get(_1S); //#22854 - $k[$j++] = Infinity; //#22854 - var _1X = $k[--$j]; //#22854 - var _1Y = $k[--$j]; //#22854 - $k[$j++] = _1X; //#22854 - $k[$j++] = $get($_.CNvals, $_.sft1); //#22854 - $k[$j++] = _1Y; //#22854 - var _1c = $a(); //#22854 - $k[$j++] = _1c; //#22854 - } //#22854 - var _1d = $_.C2vals; //#22855 - for (var _1i = _1d.size, _1h = _1d.keys(), _1g = 0; _1g < _1i; _1g++) { //#22855 - var _1e = _1h.next().value; //#22855 - $k[$j++] = _1e; //#22855 - $k[$j++] = _1d.get(_1e); //#22855 - $k[$j++] = Infinity; //#22855 - var _1j = $k[--$j]; //#22855 - var _1k = $k[--$j]; //#22855 - $k[$j++] = _1j; //#22855 - $k[$j++] = $get($_.CNvals, $_.sft2); //#22855 - $k[$j++] = _1k; //#22855 - var _1o = $a(); //#22855 - $k[$j++] = _1o; //#22855 - } //#22855 - var _1p = $_.C3vals; //#22856 - for (var _1u = _1p.size, _1t = _1p.keys(), _1s = 0; _1s < _1u; _1s++) { //#22856 - var _1q = _1t.next().value; //#22856 - $k[$j++] = _1q; //#22856 - $k[$j++] = _1p.get(_1q); //#22856 - $k[$j++] = Infinity; //#22856 - var _1v = $k[--$j]; //#22856 - var _1w = $k[--$j]; //#22856 - $k[$j++] = _1v; //#22856 - $k[$j++] = $get($_.CNvals, $_.sft3); //#22856 - $k[$j++] = _1w; //#22856 - var _20 = $a(); //#22856 - $k[$j++] = _20; //#22856 - } //#22856 - $_.Cvals = $d(); //#22857 - $k[$j++] = Infinity; //#22865 - $k[$j++] = $_.sft1; //#22864 - $k[$j++] = 0; //#22864 - $k[$j++] = $_.sft2; //#22864 - $k[$j++] = 1; //#22864 - $k[$j++] = $_.sft3; //#22864 - $k[$j++] = 2; //#22864 - $k[$j++] = 32; //#22864 - $k[$j++] = 3; //#22864 - for (var _25 = 48; _25 <= 57; _25 += 1) { //#22864 - $k[$j++] = _25; //#22864 - $k[$j++] = _25 - 44; //#22864 - } //#22864 - for (var _26 = 97; _26 <= 122; _26 += 1) { //#22865 - $k[$j++] = _26; //#22865 - $k[$j++] = _26 - 83; //#22865 - } //#22865 - $_.TNvals = $d(); //#22866 - $k[$j++] = Infinity; //#22867 - for (var _28 = 0; _28 <= 31; _28 += 1) { //#22867 - $k[$j++] = _28; //#22867 - $k[$j++] = _28; //#22867 - } //#22867 - $_.T1vals = $d(); //#22867 - $k[$j++] = Infinity; //#22876 - for (var _2A = 33; _2A <= 47; _2A += 1) { //#22869 - $k[$j++] = _2A; //#22869 - $k[$j++] = _2A - 33; //#22869 - } //#22869 - for (var _2B = 58; _2B <= 64; _2B += 1) { //#22870 - $k[$j++] = _2B; //#22870 - $k[$j++] = _2B - 43; //#22870 - } //#22870 - for (var _2C = 91; _2C <= 95; _2C += 1) { //#22871 - $k[$j++] = _2C; //#22871 - $k[$j++] = _2C - 69; //#22871 - } //#22871 - $k[$j++] = $_.fnc1; //#22876 - $k[$j++] = 27; //#22876 - $k[$j++] = $_.fnc2; //#22876 - $k[$j++] = 28; //#22876 - $k[$j++] = $_.fnc3; //#22876 - $k[$j++] = 29; //#22876 - $k[$j++] = $_.fnc4; //#22876 - $k[$j++] = 30; //#22876 - $k[$j++] = $_.pad; //#22876 - $k[$j++] = 31; //#22876 - $_.T2vals = $d(); //#22877 - $k[$j++] = Infinity; //#22881 - $k[$j++] = 96; //#22880 - $k[$j++] = 0; //#22880 - for (var _2J = 65; _2J <= 90; _2J += 1) { //#22880 - $k[$j++] = _2J; //#22880 - $k[$j++] = _2J - 64; //#22880 - } //#22880 - for (var _2K = 123; _2K <= 127; _2K += 1) { //#22881 - $k[$j++] = _2K; //#22881 - $k[$j++] = _2K - 96; //#22881 - } //#22881 - $_.T3vals = $d(); //#22882 - $k[$j++] = Infinity; //#22887 - var _2M = $_.TNvals; //#22884 - for (var _2R = _2M.size, _2Q = _2M.keys(), _2P = 0; _2P < _2R; _2P++) { //#22884 - var _2N = _2Q.next().value; //#22884 - $k[$j++] = _2N; //#22884 - $k[$j++] = _2M.get(_2N); //#22884 - $k[$j++] = Infinity; //#22884 - var _2S = $k[--$j]; //#22884 - var _2T = $k[--$j]; //#22884 - $k[$j++] = _2S; //#22884 - $k[$j++] = _2T; //#22884 - var _2U = $a(); //#22884 - $k[$j++] = _2U; //#22884 - } //#22884 - var _2V = $_.T1vals; //#22885 - for (var _2a = _2V.size, _2Z = _2V.keys(), _2Y = 0; _2Y < _2a; _2Y++) { //#22885 - var _2W = _2Z.next().value; //#22885 - $k[$j++] = _2W; //#22885 - $k[$j++] = _2V.get(_2W); //#22885 - $k[$j++] = Infinity; //#22885 - var _2b = $k[--$j]; //#22885 - var _2c = $k[--$j]; //#22885 - $k[$j++] = _2b; //#22885 - $k[$j++] = $get($_.TNvals, $_.sft1); //#22885 - $k[$j++] = _2c; //#22885 - var _2g = $a(); //#22885 - $k[$j++] = _2g; //#22885 - } //#22885 - var _2h = $_.T2vals; //#22886 - for (var _2m = _2h.size, _2l = _2h.keys(), _2k = 0; _2k < _2m; _2k++) { //#22886 - var _2i = _2l.next().value; //#22886 - $k[$j++] = _2i; //#22886 - $k[$j++] = _2h.get(_2i); //#22886 - $k[$j++] = Infinity; //#22886 - var _2n = $k[--$j]; //#22886 - var _2o = $k[--$j]; //#22886 - $k[$j++] = _2n; //#22886 - $k[$j++] = $get($_.TNvals, $_.sft2); //#22886 - $k[$j++] = _2o; //#22886 - var _2s = $a(); //#22886 - $k[$j++] = _2s; //#22886 - } //#22886 - var _2t = $_.T3vals; //#22887 - for (var _2y = _2t.size, _2x = _2t.keys(), _2w = 0; _2w < _2y; _2w++) { //#22887 - var _2u = _2x.next().value; //#22887 - $k[$j++] = _2u; //#22887 - $k[$j++] = _2t.get(_2u); //#22887 - $k[$j++] = Infinity; //#22887 - var _2z = $k[--$j]; //#22887 - var _30 = $k[--$j]; //#22887 - $k[$j++] = _2z; //#22887 - $k[$j++] = $get($_.TNvals, $_.sft3); //#22887 - $k[$j++] = _30; //#22887 - var _34 = $a(); //#22887 - $k[$j++] = _34; //#22887 - } //#22887 - $_.Tvals = $d(); //#22888 - for (var _36 = 128; _36 <= 255; _36 += 1) { //#22896 - $_.i = _36; //#22892 - $k[$j++] = $_.Avals; //#22893 - $k[$j++] = $_.i; //#22893 - $k[$j++] = Infinity; //#22893 - $aload($get($_.Avals, $_.fnc4)); //#22893 - $aload($get($_.Avals, $_.i - 128)); //#22893 - var _3F = $a(); //#22893 - var _3G = $k[--$j]; //#22893 - $put($k[--$j], _3G, _3F); //#22893 - $k[$j++] = $_.Cvals; //#22894 - $k[$j++] = $_.i; //#22894 - $k[$j++] = Infinity; //#22894 - $aload($get($_.Cvals, $_.fnc4)); //#22894 - $aload($get($_.Cvals, $_.i - 128)); //#22894 - var _3Q = $a(); //#22894 - var _3R = $k[--$j]; //#22894 - $put($k[--$j], _3R, _3Q); //#22894 - $k[$j++] = $_.Tvals; //#22895 - $k[$j++] = $_.i; //#22895 - $k[$j++] = Infinity; //#22895 - $aload($get($_.Tvals, $_.fnc4)); //#22895 - $aload($get($_.Tvals, $_.i - 128)); //#22895 - var _3b = $a(); //#22895 - var _3c = $k[--$j]; //#22895 - $put($k[--$j], _3c, _3b); //#22895 - } //#22895 - $k[$j++] = Infinity; //#22904 - $k[$j++] = 13; //#22903 - $k[$j++] = 0; //#22903 - $k[$j++] = 42; //#22903 - $k[$j++] = 1; //#22903 - $k[$j++] = 62; //#22903 - $k[$j++] = 2; //#22903 - $k[$j++] = 32; //#22903 - $k[$j++] = 3; //#22903 - for (var _3e = 48; _3e <= 57; _3e += 1) { //#22903 - $k[$j++] = _3e; //#22903 - $k[$j++] = _3e - 44; //#22903 - } //#22903 - for (var _3f = 65; _3f <= 90; _3f += 1) { //#22904 - $k[$j++] = _3f; //#22904 - $k[$j++] = _3f - 51; //#22904 - } //#22904 - $_.Xvals = $d(); //#22905 - $k[$j++] = Infinity; //#22907 - var _3h = $_.Xvals; //#22907 - for (var _3m = _3h.size, _3l = _3h.keys(), _3k = 0; _3k < _3m; _3k++) { //#22907 - var _3i = _3l.next().value; //#22907 - $k[$j++] = _3i; //#22907 - $k[$j++] = _3h.get(_3i); //#22907 - $k[$j++] = Infinity; //#22907 - var _3n = $k[--$j]; //#22907 - var _3o = $k[--$j]; //#22907 - $k[$j++] = _3n; //#22907 - $k[$j++] = _3o; //#22907 - var _3p = $a(); //#22907 - $k[$j++] = _3p; //#22907 - } //#22907 - $_.Xvals = $d(); //#22908 - $k[$j++] = Infinity; //#22911 - for (var _3r = 0; _3r <= 255; _3r += 1) { //#22911 - $k[$j++] = _3r; //#22911 - $k[$j++] = _3r; //#22911 - } //#22911 - $_.Bvals = $d(); //#22912 - $k[$j++] = Infinity; //#22914 - var _3t = $_.Bvals; //#22914 - for (var _3y = _3t.size, _3x = _3t.keys(), _3w = 0; _3w < _3y; _3w++) { //#22914 - var _3u = _3x.next().value; //#22914 - $k[$j++] = _3u; //#22914 - $k[$j++] = _3t.get(_3u); //#22914 - $k[$j++] = Infinity; //#22914 - var _3z = $k[--$j]; //#22914 - var _40 = $k[--$j]; //#22914 - $k[$j++] = _3z; //#22914 - $k[$j++] = _40; //#22914 - var _41 = $a(); //#22914 - $k[$j++] = _41; //#22914 - } //#22914 - $_.Bvals = $d(); //#22915 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#22917 - $_.A = 0; //#22919 - $_.C = 1; //#22919 - $_.T = 2; //#22919 - $_.X = 3; //#22919 - $_.D = 4; //#22919 - $_.B = 5; //#22919 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#22919 - bwipp_codeone.__22920__ = 1; //#22919 - $_ = Object.getPrototypeOf($_); //#22919 - } //#22919 - if ($_.stype) { //#23418 - $forall($_.barcode, function() { //#22928 - var _4C = $k[--$j]; //#22925 - if ((_4C < 48) || (_4C > 57)) { //#22927 - $k[$j++] = 'bwipp.codeoneStypeNonDigit#22926'; //#22926 - $k[$j++] = "S-Type symbols can only contain digits"; //#22926 - bwipp_raiseerror(); //#22926 - } //#22926 - }); //#22926 - $_.barlen = $_.barcode.length; //#22930 - if ($_.barlen > 18) { //#22933 - $k[$j++] = 'bwipp.codeoneStypeTooLong#22932'; //#22932 - $k[$j++] = "Maximum length exceeded"; //#22932 - bwipp_raiseerror(); //#22932 - } //#22932 + $_ = Object.create($_); //#23036 + $_.dontdraw = false; //#23039 + $_.version = "unset"; //#23040 + $_.parse = false; //#23041 + $_.parsefnc = false; //#23042 + $k[$j++] = $_; //#23044 + bwipp_processoptions(); //#23044 + $_.options = $k[--$j]; //#23044 + $_.barcode = $k[--$j]; //#23045 + var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#23047 + $k[$j++] = false; //#23048 + for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#23048 + var _7 = $k[--$j]; //#23048 + $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#23048 + } //#23048 + if ($nt($k[--$j])) { //#23050 + $k[$j++] = 'bwipp.codeoneBadVersion#23049'; //#23049 + $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#23049 + bwipp_raiseerror(); //#23049 + } //#23049 + bwipp_loadctx(bwipp_codeone) //#23052 + $_.stype = $eq($geti($_.version, 0, 1), "S"); //#23054 + $_.ttype = $eq($geti($_.version, 0, 1), "T"); //#23055 + if (!bwipp_codeone.__23213__) { //#23213 + $_ = Object.create($_); //#23213 + $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#23077 + $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#23085 + $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#23101 + $_.fnc1 = -1; //#23104 + $_.fnc3 = -2; //#23104 + $_.lC = -5; //#23105 + $_.lB = -6; //#23105 + $_.lX = -7; //#23105 + $_.lT = -8; //#23105 + $_.lD = -9; //#23105 + $_.unl = -10; //#23105 + $_.fnc2 = -11; //#23106 + $_.fnc4 = -12; //#23106 + $_.sft1 = -13; //#23106 + $_.sft2 = -14; //#23106 + $_.sft3 = -15; //#23106 + $_.eci = -16; //#23106 + $_.pad = -17; //#23106 + $_.fnc1lD = -18; //#23106 + $_.unlcw = 255; //#23107 + $k[$j++] = Infinity; //#23109 + for (var _U = 0; _U <= 128; _U += 1) { //#23110 + $k[$j++] = _U; //#23110 + $k[$j++] = _U + 1; //#23110 + } //#23110 + $k[$j++] = $_.pad; //#23115 + $k[$j++] = 129; //#23115 + for (var _W = 0; _W <= 99; _W += 1) { //#23115 + var _Y = $cvrs($s(2), _W, 10); //#23113 + var _a = $strcpy($s(2), "00"); //#23113 + $puti(_a, 2 - _Y.length, _Y); //#23113 + $k[$j++] = _a; //#23114 + $k[$j++] = _W + 130; //#23114 + } //#23114 + var _i = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#23116 + $k[$j++] = 229; //#23116 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#23116 + var _n = $f($k[--$j] + 1); //#23116 + $k[$j++] = $get(_i, _j); //#23116 + $k[$j++] = _n; //#23116 + $k[$j++] = _n; //#23116 + } //#23116 + $j--; //#23116 + $k[$j++] = $_.lX; //#23118 + $k[$j++] = 238; //#23118 + $k[$j++] = $_.lT; //#23118 + $k[$j++] = 239; //#23118 + $_.Avals = $d(); //#23120 + $k[$j++] = Infinity; //#23121 + var _r = $_.Avals; //#23122 + for (var _w = _r.size, _v = _r.keys(), _u = 0; _u < _w; _u++) { //#23122 + var _s = _v.next().value; //#23122 + $k[$j++] = _s; //#23122 + $k[$j++] = _r.get(_s); //#23122 + $k[$j++] = Infinity; //#23122 + var _x = $k[--$j]; //#23122 + var _y = $k[--$j]; //#23122 + $k[$j++] = _x; //#23122 + $k[$j++] = _y; //#23122 + var _z = $a(); //#23122 + $k[$j++] = _z; //#23122 + } //#23122 + $_.Avals = $d(); //#23123 + $k[$j++] = Infinity; //#23125 + $k[$j++] = $_.sft1; //#23130 + $k[$j++] = 0; //#23130 + $k[$j++] = $_.sft2; //#23130 + $k[$j++] = 1; //#23130 + $k[$j++] = $_.sft3; //#23130 + $k[$j++] = 2; //#23130 + $k[$j++] = 32; //#23130 + $k[$j++] = 3; //#23130 + for (var _14 = 48; _14 <= 57; _14 += 1) { //#23130 + $k[$j++] = _14; //#23130 + $k[$j++] = _14 - 44; //#23130 + } //#23130 + for (var _15 = 65; _15 <= 90; _15 += 1) { //#23131 + $k[$j++] = _15; //#23131 + $k[$j++] = _15 - 51; //#23131 + } //#23131 + $_.CNvals = $d(); //#23132 + $k[$j++] = Infinity; //#23133 + for (var _17 = 0; _17 <= 31; _17 += 1) { //#23133 + $k[$j++] = _17; //#23133 + $k[$j++] = _17; //#23133 + } //#23133 + $_.C1vals = $d(); //#23133 + $k[$j++] = Infinity; //#23134 + for (var _19 = 33; _19 <= 47; _19 += 1) { //#23135 + $k[$j++] = _19; //#23135 + $k[$j++] = _19 - 33; //#23135 + } //#23135 + for (var _1A = 58; _1A <= 64; _1A += 1) { //#23136 + $k[$j++] = _1A; //#23136 + $k[$j++] = _1A - 43; //#23136 + } //#23136 + for (var _1B = 91; _1B <= 95; _1B += 1) { //#23137 + $k[$j++] = _1B; //#23137 + $k[$j++] = _1B - 69; //#23137 + } //#23137 + $k[$j++] = $_.fnc1; //#23142 + $k[$j++] = 27; //#23142 + $k[$j++] = $_.fnc2; //#23142 + $k[$j++] = 28; //#23142 + $k[$j++] = $_.fnc3; //#23142 + $k[$j++] = 29; //#23142 + $k[$j++] = $_.fnc4; //#23142 + $k[$j++] = 30; //#23142 + $k[$j++] = $_.pad; //#23142 + $k[$j++] = 31; //#23142 + $_.C2vals = $d(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _1I = 96; _1I <= 127; _1I += 1) { //#23144 + $k[$j++] = _1I; //#23144 + $k[$j++] = _1I - 96; //#23144 + } //#23144 + $_.C3vals = $d(); //#23144 + $k[$j++] = Infinity; //#23145 + var _1K = $_.CNvals; //#23146 + for (var _1P = _1K.size, _1O = _1K.keys(), _1N = 0; _1N < _1P; _1N++) { //#23146 + var _1L = _1O.next().value; //#23146 + $k[$j++] = _1L; //#23146 + $k[$j++] = _1K.get(_1L); //#23146 + $k[$j++] = Infinity; //#23146 + var _1Q = $k[--$j]; //#23146 + var _1R = $k[--$j]; //#23146 + $k[$j++] = _1Q; //#23146 + $k[$j++] = _1R; //#23146 + var _1S = $a(); //#23146 + $k[$j++] = _1S; //#23146 + } //#23146 + var _1T = $_.C1vals; //#23147 + for (var _1Y = _1T.size, _1X = _1T.keys(), _1W = 0; _1W < _1Y; _1W++) { //#23147 + var _1U = _1X.next().value; //#23147 + $k[$j++] = _1U; //#23147 + $k[$j++] = _1T.get(_1U); //#23147 + $k[$j++] = Infinity; //#23147 + var _1Z = $k[--$j]; //#23147 + var _1a = $k[--$j]; //#23147 + $k[$j++] = _1Z; //#23147 + $k[$j++] = $get($_.CNvals, $_.sft1); //#23147 + $k[$j++] = _1a; //#23147 + var _1e = $a(); //#23147 + $k[$j++] = _1e; //#23147 + } //#23147 + var _1f = $_.C2vals; //#23148 + for (var _1k = _1f.size, _1j = _1f.keys(), _1i = 0; _1i < _1k; _1i++) { //#23148 + var _1g = _1j.next().value; //#23148 + $k[$j++] = _1g; //#23148 + $k[$j++] = _1f.get(_1g); //#23148 + $k[$j++] = Infinity; //#23148 + var _1l = $k[--$j]; //#23148 + var _1m = $k[--$j]; //#23148 + $k[$j++] = _1l; //#23148 + $k[$j++] = $get($_.CNvals, $_.sft2); //#23148 + $k[$j++] = _1m; //#23148 + var _1q = $a(); //#23148 + $k[$j++] = _1q; //#23148 + } //#23148 + var _1r = $_.C3vals; //#23149 + for (var _1w = _1r.size, _1v = _1r.keys(), _1u = 0; _1u < _1w; _1u++) { //#23149 + var _1s = _1v.next().value; //#23149 + $k[$j++] = _1s; //#23149 + $k[$j++] = _1r.get(_1s); //#23149 + $k[$j++] = Infinity; //#23149 + var _1x = $k[--$j]; //#23149 + var _1y = $k[--$j]; //#23149 + $k[$j++] = _1x; //#23149 + $k[$j++] = $get($_.CNvals, $_.sft3); //#23149 + $k[$j++] = _1y; //#23149 + var _22 = $a(); //#23149 + $k[$j++] = _22; //#23149 + } //#23149 + $_.Cvals = $d(); //#23150 + $k[$j++] = Infinity; //#23152 + $k[$j++] = $_.sft1; //#23157 + $k[$j++] = 0; //#23157 + $k[$j++] = $_.sft2; //#23157 + $k[$j++] = 1; //#23157 + $k[$j++] = $_.sft3; //#23157 + $k[$j++] = 2; //#23157 + $k[$j++] = 32; //#23157 + $k[$j++] = 3; //#23157 + for (var _27 = 48; _27 <= 57; _27 += 1) { //#23157 + $k[$j++] = _27; //#23157 + $k[$j++] = _27 - 44; //#23157 + } //#23157 + for (var _28 = 97; _28 <= 122; _28 += 1) { //#23158 + $k[$j++] = _28; //#23158 + $k[$j++] = _28 - 83; //#23158 + } //#23158 + $_.TNvals = $d(); //#23159 + $k[$j++] = Infinity; //#23160 + for (var _2A = 0; _2A <= 31; _2A += 1) { //#23160 + $k[$j++] = _2A; //#23160 + $k[$j++] = _2A; //#23160 + } //#23160 + $_.T1vals = $d(); //#23160 + $k[$j++] = Infinity; //#23161 + for (var _2C = 33; _2C <= 47; _2C += 1) { //#23162 + $k[$j++] = _2C; //#23162 + $k[$j++] = _2C - 33; //#23162 + } //#23162 + for (var _2D = 58; _2D <= 64; _2D += 1) { //#23163 + $k[$j++] = _2D; //#23163 + $k[$j++] = _2D - 43; //#23163 + } //#23163 + for (var _2E = 91; _2E <= 95; _2E += 1) { //#23164 + $k[$j++] = _2E; //#23164 + $k[$j++] = _2E - 69; //#23164 + } //#23164 + $k[$j++] = $_.fnc1; //#23169 + $k[$j++] = 27; //#23169 + $k[$j++] = $_.fnc2; //#23169 + $k[$j++] = 28; //#23169 + $k[$j++] = $_.fnc3; //#23169 + $k[$j++] = 29; //#23169 + $k[$j++] = $_.fnc4; //#23169 + $k[$j++] = 30; //#23169 + $k[$j++] = $_.pad; //#23169 + $k[$j++] = 31; //#23169 + $_.T2vals = $d(); //#23170 + $k[$j++] = Infinity; //#23171 + $k[$j++] = 96; //#23173 + $k[$j++] = 0; //#23173 + for (var _2L = 65; _2L <= 90; _2L += 1) { //#23173 + $k[$j++] = _2L; //#23173 + $k[$j++] = _2L - 64; //#23173 + } //#23173 + for (var _2M = 123; _2M <= 127; _2M += 1) { //#23174 + $k[$j++] = _2M; //#23174 + $k[$j++] = _2M - 96; //#23174 + } //#23174 + $_.T3vals = $d(); //#23175 + $k[$j++] = Infinity; //#23176 + var _2O = $_.TNvals; //#23177 + for (var _2T = _2O.size, _2S = _2O.keys(), _2R = 0; _2R < _2T; _2R++) { //#23177 + var _2P = _2S.next().value; //#23177 + $k[$j++] = _2P; //#23177 + $k[$j++] = _2O.get(_2P); //#23177 + $k[$j++] = Infinity; //#23177 + var _2U = $k[--$j]; //#23177 + var _2V = $k[--$j]; //#23177 + $k[$j++] = _2U; //#23177 + $k[$j++] = _2V; //#23177 + var _2W = $a(); //#23177 + $k[$j++] = _2W; //#23177 + } //#23177 + var _2X = $_.T1vals; //#23178 + for (var _2c = _2X.size, _2b = _2X.keys(), _2a = 0; _2a < _2c; _2a++) { //#23178 + var _2Y = _2b.next().value; //#23178 + $k[$j++] = _2Y; //#23178 + $k[$j++] = _2X.get(_2Y); //#23178 + $k[$j++] = Infinity; //#23178 + var _2d = $k[--$j]; //#23178 + var _2e = $k[--$j]; //#23178 + $k[$j++] = _2d; //#23178 + $k[$j++] = $get($_.TNvals, $_.sft1); //#23178 + $k[$j++] = _2e; //#23178 + var _2i = $a(); //#23178 + $k[$j++] = _2i; //#23178 + } //#23178 + var _2j = $_.T2vals; //#23179 + for (var _2o = _2j.size, _2n = _2j.keys(), _2m = 0; _2m < _2o; _2m++) { //#23179 + var _2k = _2n.next().value; //#23179 + $k[$j++] = _2k; //#23179 + $k[$j++] = _2j.get(_2k); //#23179 + $k[$j++] = Infinity; //#23179 + var _2p = $k[--$j]; //#23179 + var _2q = $k[--$j]; //#23179 + $k[$j++] = _2p; //#23179 + $k[$j++] = $get($_.TNvals, $_.sft2); //#23179 + $k[$j++] = _2q; //#23179 + var _2u = $a(); //#23179 + $k[$j++] = _2u; //#23179 + } //#23179 + var _2v = $_.T3vals; //#23180 + for (var _30 = _2v.size, _2z = _2v.keys(), _2y = 0; _2y < _30; _2y++) { //#23180 + var _2w = _2z.next().value; //#23180 + $k[$j++] = _2w; //#23180 + $k[$j++] = _2v.get(_2w); //#23180 + $k[$j++] = Infinity; //#23180 + var _31 = $k[--$j]; //#23180 + var _32 = $k[--$j]; //#23180 + $k[$j++] = _31; //#23180 + $k[$j++] = $get($_.TNvals, $_.sft3); //#23180 + $k[$j++] = _32; //#23180 + var _36 = $a(); //#23180 + $k[$j++] = _36; //#23180 + } //#23180 + $_.Tvals = $d(); //#23181 + for (var _38 = 128; _38 <= 255; _38 += 1) { //#23189 + $_.i = _38; //#23185 + $k[$j++] = $_.Avals; //#23186 + $k[$j++] = $_.i; //#23186 + $k[$j++] = Infinity; //#23186 + $aload($get($_.Avals, $_.fnc4)); //#23186 + $aload($get($_.Avals, $_.i - 128)); //#23186 + var _3H = $a(); //#23186 + var _3I = $k[--$j]; //#23186 + $put($k[--$j], _3I, _3H); //#23186 + $k[$j++] = $_.Cvals; //#23187 + $k[$j++] = $_.i; //#23187 + $k[$j++] = Infinity; //#23187 + $aload($get($_.Cvals, $_.fnc4)); //#23187 + $aload($get($_.Cvals, $_.i - 128)); //#23187 + var _3S = $a(); //#23187 + var _3T = $k[--$j]; //#23187 + $put($k[--$j], _3T, _3S); //#23187 + $k[$j++] = $_.Tvals; //#23188 + $k[$j++] = $_.i; //#23188 + $k[$j++] = Infinity; //#23188 + $aload($get($_.Tvals, $_.fnc4)); //#23188 + $aload($get($_.Tvals, $_.i - 128)); //#23188 + var _3d = $a(); //#23188 + var _3e = $k[--$j]; //#23188 + $put($k[--$j], _3e, _3d); //#23188 + } //#23188 + $k[$j++] = Infinity; //#23191 + $k[$j++] = 13; //#23196 + $k[$j++] = 0; //#23196 + $k[$j++] = 42; //#23196 + $k[$j++] = 1; //#23196 + $k[$j++] = 62; //#23196 + $k[$j++] = 2; //#23196 + $k[$j++] = 32; //#23196 + $k[$j++] = 3; //#23196 + for (var _3g = 48; _3g <= 57; _3g += 1) { //#23196 + $k[$j++] = _3g; //#23196 + $k[$j++] = _3g - 44; //#23196 + } //#23196 + for (var _3h = 65; _3h <= 90; _3h += 1) { //#23197 + $k[$j++] = _3h; //#23197 + $k[$j++] = _3h - 51; //#23197 + } //#23197 + $_.Xvals = $d(); //#23198 + $k[$j++] = Infinity; //#23199 + var _3j = $_.Xvals; //#23200 + for (var _3o = _3j.size, _3n = _3j.keys(), _3m = 0; _3m < _3o; _3m++) { //#23200 + var _3k = _3n.next().value; //#23200 + $k[$j++] = _3k; //#23200 + $k[$j++] = _3j.get(_3k); //#23200 + $k[$j++] = Infinity; //#23200 + var _3p = $k[--$j]; //#23200 + var _3q = $k[--$j]; //#23200 + $k[$j++] = _3p; //#23200 + $k[$j++] = _3q; //#23200 + var _3r = $a(); //#23200 + $k[$j++] = _3r; //#23200 + } //#23200 + $_.Xvals = $d(); //#23201 + $k[$j++] = Infinity; //#23203 + for (var _3t = 0; _3t <= 255; _3t += 1) { //#23204 + $k[$j++] = _3t; //#23204 + $k[$j++] = _3t; //#23204 + } //#23204 + $_.Bvals = $d(); //#23205 + $k[$j++] = Infinity; //#23206 + var _3v = $_.Bvals; //#23207 + for (var _40 = _3v.size, _3z = _3v.keys(), _3y = 0; _3y < _40; _3y++) { //#23207 + var _3w = _3z.next().value; //#23207 + $k[$j++] = _3w; //#23207 + $k[$j++] = _3v.get(_3w); //#23207 + $k[$j++] = Infinity; //#23207 + var _41 = $k[--$j]; //#23207 + var _42 = $k[--$j]; //#23207 + $k[$j++] = _41; //#23207 + $k[$j++] = _42; //#23207 + var _43 = $a(); //#23207 + $k[$j++] = _43; //#23207 + } //#23207 + $_.Bvals = $d(); //#23208 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#23210 + $_.A = 0; //#23212 + $_.C = 1; //#23212 + $_.T = 2; //#23212 + $_.X = 3; //#23212 + $_.D = 4; //#23212 + $_.B = 5; //#23212 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23212 + bwipp_codeone.__23213__ = 1; //#23212 + $_ = Object.getPrototypeOf($_); //#23212 + } //#23212 + if ($_.stype) { //#23711 + $forall($_.barcode, function() { //#23221 + var _4E = $k[--$j]; //#23218 + if ((_4E < 48) || (_4E > 57)) { //#23220 + $k[$j++] = 'bwipp.codeoneStypeNonDigit#23219'; //#23219 + $k[$j++] = "S-Type symbols can only contain digits"; //#23219 + bwipp_raiseerror(); //#23219 + } //#23219 + }); //#23219 + $_.barlen = $_.barcode.length; //#23223 + if ($_.barlen > 18) { //#23226 + $k[$j++] = 'bwipp.codeoneStypeTooLong#23225'; //#23225 + $k[$j++] = "Maximum length exceeded"; //#23225 + bwipp_raiseerror(); //#23225 + } //#23225 $_.normalize = function() { - $_.base = $k[--$j]; //#22936 - $_.num = $k[--$j]; //#22937 - for (var _4I = $_.num.length - 1; _4I >= 1; _4I -= 1) { //#22942 - $_.i = _4I; //#22939 - var _4J = $_.num; //#22940 - var _4K = $_.i; //#22940 - $put(_4J, _4K - 1, $f($get(_4J, _4K - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#22940 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#22941 - } //#22941 - for (;;) { //#22948 - if ($lt($get($_.num, 0), $_.base)) { //#22944 - break; //#22944 - } //#22944 - $k[$j++] = Infinity; //#22945 - $k[$j++] = 0; //#22945 - $forall($_.num); //#22945 - $_.num = $a(); //#22945 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#22946 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#22947 - } //#22947 - $k[$j++] = Infinity; //#22950 - $_.i = true; //#22950 - var _4l = $_.num; //#22950 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#22950 - var _4o = $get(_4l, _4m); //#22950 - $k[$j++] = _4o; //#22950 - if ((_4o == 0) && $_.i) { //#22950 - $j--; //#22950 - } else { //#22950 - $_.i = false; //#22950 - } //#22950 - } //#22950 - $_.num = $a(); //#22950 - if ($_.num.length == 0) { //#22951 - $_.num = $a([0]); //#22951 - } //#22951 - $k[$j++] = $_.num; //#22952 - }; //#22952 + $_.base = $k[--$j]; //#23229 + $_.num = $k[--$j]; //#23230 + for (var _4K = $_.num.length - 1; _4K >= 1; _4K -= 1) { //#23235 + $_.i = _4K; //#23232 + var _4L = $_.num; //#23233 + var _4M = $_.i; //#23233 + $put(_4L, _4M - 1, $f($get(_4L, _4M - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#23233 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#23234 + } //#23234 + for (;;) { //#23241 + if ($lt($get($_.num, 0), $_.base)) { //#23237 + break; //#23237 + } //#23237 + $k[$j++] = Infinity; //#23238 + $k[$j++] = 0; //#23238 + $forall($_.num); //#23238 + $_.num = $a(); //#23238 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#23239 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#23240 + } //#23240 + $k[$j++] = Infinity; //#23243 + $_.i = true; //#23243 + var _4n = $_.num; //#23243 + for (var _4o = 0, _4p = _4n.length; _4o < _4p; _4o++) { //#23243 + var _4q = $get(_4n, _4o); //#23243 + $k[$j++] = _4q; //#23243 + if ((_4q == 0) && $_.i) { //#23243 + $j--; //#23243 + } else { //#23243 + $_.i = false; //#23243 + } //#23243 + } //#23243 + $_.num = $a(); //#23243 + if ($_.num.length == 0) { //#23244 + $_.num = $a([0]); //#23244 + } //#23244 + $k[$j++] = $_.num; //#23245 + }; //#23245 $_.bigadd = function() { - var _4u = $k[--$j]; //#22956 - var _4v = $k[--$j]; //#22956 - $_.offset = Math.abs(_4u.length - _4v.length); //#22957 - if (_4u.length < _4v.length) { //#22958 - var _ = _4u; //#22958 - _4u = _4v; //#22958 - _4v = _; //#22958 - } //#22958 - $_.a = _4u; //#22959 - $_.b = _4v; //#22959 - for (var _4y = 0, _4x = $_.b.length - 1; _4y <= _4x; _4y += 1) { //#22962 - var _4z = $_.a; //#22961 - var _50 = $_.offset; //#22961 - $put(_4z, _4y + _50, $f($get(_4z, _4y + _50) + $get($_.b, _4y))); //#22961 - } //#22961 - $k[$j++] = $_.a; //#22963 - }; //#22963 - $_.barlen = $_.barcode.length; //#22966 - $_.v = $a([1]); //#22969 - for (var _59 = 0, _58 = $_.barlen - 1; _59 <= _58; _59 += 1) { //#22974 - $_.i = _59; //#22971 - $k[$j++] = Infinity; //#22972 - $forall($get($_.stypevals, $_.i), function() { //#22972 - var _5D = $k[--$j]; //#22972 - $k[$j++] = $f(_5D - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#22972 - }); //#22972 - var _5I = $a(); //#22972 - $k[$j++] = _5I; //#22973 - $k[$j++] = $_.v; //#22973 - $_.bigadd(); //#22973 - $_.v = $k[--$j]; //#22973 - } //#22973 - $k[$j++] = 'v'; //#22975 - $k[$j++] = $_.v; //#22975 - $k[$j++] = 2; //#22975 - $_.normalize(); //#22975 - var _5M = $k[--$j]; //#22975 - $_[$k[--$j]] = _5M; //#22975 - $k[$j++] = Infinity; //#22978 - for (var _5P = 0, _5Q = (5 - ($_.v.length % 5)) % 5; _5P < _5Q; _5P++) { //#22978 - $k[$j++] = 0; //#22978 - } //#22978 - $aload($_.v); //#22978 - $_.v = $a(); //#22978 - $_.cws = $a(~~($_.v.length / 5)); //#22979 - for (var _5X = 0, _5W = $_.cws.length - 1; _5X <= _5W; _5X += 1) { //#22985 - $_.i = _5X; //#22981 - var _5a = $geti($_.v, $_.i * 5, 5); //#22982 - $k[$j++] = 0; //#22983 - for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#22983 - var _5e = $k[--$j]; //#22983 - $k[$j++] = $f(_5e + $get(_5a, _5b)) * 2; //#22983 - } //#22983 - $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#22984 - } //#22984 - $_.metrics = $_.stypemetrics; //#22987 - } else { //#23418 - var _5n = new Map([ + var _4w = $k[--$j]; //#23249 + var _4x = $k[--$j]; //#23249 + $_.offset = Math.abs(_4w.length - _4x.length); //#23250 + if (_4w.length < _4x.length) { //#23251 + var _ = _4w; //#23251 + _4w = _4x; //#23251 + _4x = _; //#23251 + } //#23251 + $_.a = _4w; //#23252 + $_.b = _4x; //#23252 + for (var _50 = 0, _4z = $_.b.length - 1; _50 <= _4z; _50 += 1) { //#23255 + var _51 = $_.a; //#23254 + var _52 = $_.offset; //#23254 + $put(_51, _50 + _52, $f($get(_51, _50 + _52) + $get($_.b, _50))); //#23254 + } //#23254 + $k[$j++] = $_.a; //#23256 + }; //#23256 + $_.barlen = $_.barcode.length; //#23259 + $_.v = $a([1]); //#23262 + for (var _5B = 0, _5A = $_.barlen - 1; _5B <= _5A; _5B += 1) { //#23267 + $_.i = _5B; //#23264 + $k[$j++] = Infinity; //#23265 + $forall($get($_.stypevals, $_.i), function() { //#23265 + var _5F = $k[--$j]; //#23265 + $k[$j++] = $f(_5F - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#23265 + }); //#23265 + var _5K = $a(); //#23265 + $k[$j++] = _5K; //#23266 + $k[$j++] = $_.v; //#23266 + $_.bigadd(); //#23266 + $_.v = $k[--$j]; //#23266 + } //#23266 + $k[$j++] = 'v'; //#23268 + $k[$j++] = $_.v; //#23268 + $k[$j++] = 2; //#23268 + $_.normalize(); //#23268 + var _5O = $k[--$j]; //#23268 + $_[$k[--$j]] = _5O; //#23268 + $k[$j++] = Infinity; //#23271 + for (var _5R = 0, _5S = (5 - ($_.v.length % 5)) % 5; _5R < _5S; _5R++) { //#23271 + $k[$j++] = 0; //#23271 + } //#23271 + $aload($_.v); //#23271 + $_.v = $a(); //#23271 + $_.cws = $a(~~($_.v.length / 5)); //#23272 + for (var _5Z = 0, _5Y = $_.cws.length - 1; _5Z <= _5Y; _5Z += 1) { //#23278 + $_.i = _5Z; //#23274 + var _5c = $geti($_.v, $_.i * 5, 5); //#23275 + $k[$j++] = 0; //#23276 + for (var _5d = 0, _5e = _5c.length; _5d < _5e; _5d++) { //#23276 + var _5g = $k[--$j]; //#23276 + $k[$j++] = $f(_5g + $get(_5c, _5d)) * 2; //#23276 + } //#23276 + $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#23277 + } //#23277 + $_.metrics = $_.stypemetrics; //#23280 + } else { //#23711 + var _5p = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["FNC3", $_.fnc3] - ]); //#22997 - $_.fncvals = _5n; //#22998 - $k[$j++] = 'msg'; //#22999 - $k[$j++] = $_.barcode; //#22999 - $k[$j++] = $_.fncvals; //#22999 - bwipp_parseinput(); //#22999 - var _5q = $k[--$j]; //#22999 - $_[$k[--$j]] = _5q; //#22999 - $_.msglen = $_.msg.length; //#23000 - $_.eciesc = 92; //#23003 - var _5t = $_.msg; //#23004 - $k[$j++] = 'numecis'; //#23004 - $k[$j++] = 0; //#23004 - for (var _5u = 0, _5v = _5t.length; _5u < _5v; _5u++) { //#23004 - if ($get(_5t, _5u) <= -1000000) { //#23004 - var _5x = $k[--$j]; //#23004 - $k[$j++] = $f(_5x + 1); //#23004 - } //#23004 - } //#23004 - var _5y = $k[--$j]; //#23004 - $_[$k[--$j]] = _5y; //#23004 - if ($_.numecis > 0) { //#23031 - $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23006 - $put($_.msgtmp, 0, $_.pad); //#23007 - $put($_.msgtmp, 1, $_.eciesc); //#23008 - $_.j = 2; //#23009 - for (var _6A = 0, _69 = $_.msg.length - 1; _6A <= _69; _6A += 1) { //#23028 - var _6C = $get($_.msg, _6A); //#23011 - $k[$j++] = _6C; //#23027 - if (_6C <= -1000000) { //#23025 - var _6G = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23013 - for (var _6H = 0, _6I = _6G.length; _6H < _6I; _6H++) { //#23013 - $k[$j++] = $get(_6G, _6H); //#23013 - } //#23013 - $astore($a(6)); //#23013 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23014 - $put($_.msgtmp, $_.j, $_.eciesc); //#23015 - $_.j = $_.j + 7; //#23016 - } else { //#23025 - var _6S = $k[--$j]; //#23018 - $k[$j++] = _6S; //#23026 - if (_6S != $_.eciesc) { //#23025 - $put($_.msgtmp, $_.j, $k[--$j]); //#23019 - $_.j = $_.j + 1; //#23020 - } else { //#23025 - $j--; //#23022 - $put($_.msgtmp, $_.j, $_.eciesc); //#23023 - $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23024 - $_.j = $_.j + 2; //#23025 - } //#23025 - } //#23025 - } //#23025 - $_.msg = $geti($_.msgtmp, 0, $_.j); //#23029 - $_.msglen = $_.msg.length; //#23030 - } //#23030 - $_.metrics = $_.nonstypemetrics; //#23033 - $_.fullcws = $a([]); //#23036 - var _6l = $_.metrics; //#23037 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#23048 - $_.m = $get(_6l, _6m); //#23038 - $_.vers = $get($_.m, 0); //#23039 - $_.dcws = $get($_.m, 4); //#23040 - $_.okay = true; //#23041 - if ($eq($_.version, "unset")) { //#23045 - if ($_.vers.length != 1) { //#23043 - $_.okay = false; //#23043 - } //#23043 - } else { //#23045 - if ($ne($_.version, $_.vers)) { //#23045 - $_.okay = false; //#23045 - } //#23045 - } //#23045 - if ($_.okay) { //#23047 - $k[$j++] = Infinity; //#23047 - $aload($_.fullcws); //#23047 - $k[$j++] = $_.dcws; //#23047 - $_.fullcws = $a(); //#23047 - } //#23047 - } //#23047 - $k[$j++] = Infinity; //#23049 - for (var _71 = 0, _72 = 1480; _71 < _72; _71++) { //#23049 - $k[$j++] = 10000; //#23049 - } //#23049 - $_.numremcws = $a(); //#23049 - var _74 = $_.fullcws; //#23050 - for (var _75 = 0, _76 = _74.length; _75 < _76; _75++) { //#23050 - $put($_.numremcws, $f($get(_74, _75) - 1), 1); //#23050 - } //#23050 - for (var _79 = 1478; _79 >= 0; _79 -= 1) { //#23056 - $_.i = _79; //#23052 - if ($get($_.numremcws, $_.i) != 1) { //#23055 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23054 - } //#23054 - } //#23054 - $k[$j++] = Infinity; //#23058 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#23058 - $k[$j++] = 0; //#23058 - } //#23058 - $k[$j++] = 0; //#23058 - $_.numD = $a(); //#23058 - $k[$j++] = Infinity; //#23059 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#23059 - $k[$j++] = 0; //#23059 - } //#23059 - $k[$j++] = 9999; //#23059 - $_.nextXterm = $a(); //#23059 - $k[$j++] = Infinity; //#23060 - for (var _7R = 0, _7S = $_.msglen; _7R < _7S; _7R++) { //#23060 - $k[$j++] = 0; //#23060 - } //#23060 - $k[$j++] = 9999; //#23060 - $_.nextNonX = $a(); //#23060 - for (var _7V = $_.msglen - 1; _7V >= 0; _7V -= 1) { //#23077 - $_.i = _7V; //#23062 - $_.barchar = $get($_.msg, $_.i); //#23063 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23066 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23065 - } //#23065 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23070 - $put($_.nextXterm, $_.i, 0); //#23068 - } else { //#23070 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23070 - } //#23070 - var _7s = $get($_.Xvals, $_.barchar) !== undefined; //#23072 - if (!_7s) { //#23075 - $put($_.nextNonX, $_.i, 0); //#23073 - } else { //#23075 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23075 - } //#23075 - } //#23075 - $k[$j++] = Infinity; //#23078 - var _80 = $_.nextXterm; //#23078 - for (var _81 = 0, _82 = _80.length; _81 < _82; _81++) { //#23078 - var _83 = $get(_80, _81); //#23078 - $k[$j++] = _83; //#23078 - if (_83 > 10000) { //#23078 - $j--; //#23078 - $k[$j++] = 10000; //#23078 - } //#23078 - } //#23078 - $_.nextXterm = $a(); //#23078 - $k[$j++] = Infinity; //#23079 - var _85 = $_.nextNonX; //#23079 - for (var _86 = 0, _87 = _85.length; _86 < _87; _86++) { //#23079 - var _88 = $get(_85, _86); //#23079 - $k[$j++] = _88; //#23079 - if (_88 > 10000) { //#23079 - $j--; //#23079 - $k[$j++] = 10000; //#23079 - } //#23079 - } //#23079 - $_.nextNonX = $a(); //#23079 + ]); //#23290 + $_.fncvals = _5p; //#23291 + $k[$j++] = 'msg'; //#23292 + $k[$j++] = $_.barcode; //#23292 + $k[$j++] = $_.fncvals; //#23292 + bwipp_parseinput(); //#23292 + var _5s = $k[--$j]; //#23292 + $_[$k[--$j]] = _5s; //#23292 + $_.msglen = $_.msg.length; //#23293 + $_.eciesc = 92; //#23296 + var _5v = $_.msg; //#23297 + $k[$j++] = 'numecis'; //#23297 + $k[$j++] = 0; //#23297 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#23297 + if ($get(_5v, _5w) <= -1000000) { //#23297 + var _5z = $k[--$j]; //#23297 + $k[$j++] = $f(_5z + 1); //#23297 + } //#23297 + } //#23297 + var _60 = $k[--$j]; //#23297 + $_[$k[--$j]] = _60; //#23297 + if ($_.numecis > 0) { //#23324 + $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23299 + $put($_.msgtmp, 0, $_.pad); //#23300 + $put($_.msgtmp, 1, $_.eciesc); //#23301 + $_.j = 2; //#23302 + for (var _6C = 0, _6B = $_.msg.length - 1; _6C <= _6B; _6C += 1) { //#23321 + var _6E = $get($_.msg, _6C); //#23304 + $k[$j++] = _6E; //#23320 + if (_6E <= -1000000) { //#23318 + var _6I = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23306 + for (var _6J = 0, _6K = _6I.length; _6J < _6K; _6J++) { //#23306 + $k[$j++] = $get(_6I, _6J); //#23306 + } //#23306 + $astore($a(6)); //#23306 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23307 + $put($_.msgtmp, $_.j, $_.eciesc); //#23308 + $_.j = $_.j + 7; //#23309 + } else { //#23318 + var _6U = $k[--$j]; //#23311 + $k[$j++] = _6U; //#23319 + if (_6U != $_.eciesc) { //#23318 + $put($_.msgtmp, $_.j, $k[--$j]); //#23312 + $_.j = $_.j + 1; //#23313 + } else { //#23318 + $j--; //#23315 + $put($_.msgtmp, $_.j, $_.eciesc); //#23316 + $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23317 + $_.j = $_.j + 2; //#23318 + } //#23318 + } //#23318 + } //#23318 + $_.msg = $geti($_.msgtmp, 0, $_.j); //#23322 + $_.msglen = $_.msg.length; //#23323 + } //#23323 + $_.metrics = $_.nonstypemetrics; //#23326 + $_.fullcws = $a([]); //#23329 + var _6n = $_.metrics; //#23330 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#23341 + $_.m = $get(_6n, _6o); //#23331 + $_.vers = $get($_.m, 0); //#23332 + $_.dcws = $get($_.m, 4); //#23333 + $_.okay = true; //#23334 + if ($eq($_.version, "unset")) { //#23338 + if ($_.vers.length != 1) { //#23336 + $_.okay = false; //#23336 + } //#23336 + } else { //#23338 + if ($ne($_.version, $_.vers)) { //#23338 + $_.okay = false; //#23338 + } //#23338 + } //#23338 + if ($_.okay) { //#23340 + $k[$j++] = Infinity; //#23340 + $aload($_.fullcws); //#23340 + $k[$j++] = $_.dcws; //#23340 + $_.fullcws = $a(); //#23340 + } //#23340 + } //#23340 + $k[$j++] = Infinity; //#23342 + for (var _73 = 0, _74 = 1480; _73 < _74; _73++) { //#23342 + $k[$j++] = 10000; //#23342 + } //#23342 + $_.numremcws = $a(); //#23342 + var _76 = $_.fullcws; //#23343 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#23343 + $put($_.numremcws, $f($get(_76, _77) - 1), 1); //#23343 + } //#23343 + for (var _7B = 1478; _7B >= 0; _7B -= 1) { //#23349 + $_.i = _7B; //#23345 + if ($get($_.numremcws, $_.i) != 1) { //#23348 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23347 + } //#23347 + } //#23347 + $k[$j++] = Infinity; //#23351 + for (var _7L = 0, _7M = $_.msglen; _7L < _7M; _7L++) { //#23351 + $k[$j++] = 0; //#23351 + } //#23351 + $k[$j++] = 0; //#23351 + $_.numD = $a(); //#23351 + $k[$j++] = Infinity; //#23352 + for (var _7P = 0, _7Q = $_.msglen; _7P < _7Q; _7P++) { //#23352 + $k[$j++] = 0; //#23352 + } //#23352 + $k[$j++] = 9999; //#23352 + $_.nextXterm = $a(); //#23352 + $k[$j++] = Infinity; //#23353 + for (var _7T = 0, _7U = $_.msglen; _7T < _7U; _7T++) { //#23353 + $k[$j++] = 0; //#23353 + } //#23353 + $k[$j++] = 9999; //#23353 + $_.nextNonX = $a(); //#23353 + for (var _7X = $_.msglen - 1; _7X >= 0; _7X -= 1) { //#23370 + $_.i = _7X; //#23355 + $_.barchar = $get($_.msg, $_.i); //#23356 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23359 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23358 + } //#23358 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23363 + $put($_.nextXterm, $_.i, 0); //#23361 + } else { //#23363 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23363 + } //#23363 + var _7u = $get($_.Xvals, $_.barchar) !== undefined; //#23365 + if (!_7u) { //#23368 + $put($_.nextNonX, $_.i, 0); //#23366 + } else { //#23368 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23368 + } //#23368 + } //#23368 + $k[$j++] = Infinity; //#23371 + var _82 = $_.nextXterm; //#23371 + for (var _83 = 0, _84 = _82.length; _83 < _84; _83++) { //#23371 + var _85 = $get(_82, _83); //#23371 + $k[$j++] = _85; //#23371 + if (_85 > 10000) { //#23371 + $j--; //#23371 + $k[$j++] = 10000; //#23371 + } //#23371 + } //#23371 + $_.nextXterm = $a(); //#23371 + $k[$j++] = Infinity; //#23372 + var _87 = $_.nextNonX; //#23372 + for (var _88 = 0, _89 = _87.length; _88 < _89; _88++) { //#23372 + var _8A = $get(_87, _88); //#23372 + $k[$j++] = _8A; //#23372 + if (_8A > 10000) { //#23372 + $j--; //#23372 + $k[$j++] = 10000; //#23372 + } //#23372 + } //#23372 + $_.nextNonX = $a(); //#23372 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23081 - }; //#23081 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23374 + }; //#23374 $_.isC = function() { - var _8E = $get($_.CNvals, $_.char) !== undefined; //#23082 - $k[$j++] = _8E; //#23082 - }; //#23082 + var _8G = $get($_.CNvals, $_.char) !== undefined; //#23375 + $k[$j++] = _8G; //#23375 + }; //#23375 $_.isT = function() { - var _8H = $get($_.TNvals, $_.char) !== undefined; //#23083 - $k[$j++] = _8H; //#23083 - }; //#23083 + var _8J = $get($_.TNvals, $_.char) !== undefined; //#23376 + $k[$j++] = _8J; //#23376 + }; //#23376 $_.isX = function() { - var _8K = $get($_.Xvals, $_.char) !== undefined; //#23084 - $k[$j++] = _8K; //#23084 - }; //#23084 + var _8M = $get($_.Xvals, $_.char) !== undefined; //#23377 + $k[$j++] = _8M; //#23377 + }; //#23377 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#23085 - }; //#23085 + $k[$j++] = $_.char > 127; //#23378 + }; //#23378 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#23086 - }; //#23086 + $k[$j++] = $_.char < 0; //#23379 + }; //#23379 $_.XtermFirst = function() { - var _8N = $k[--$j]; //#23087 - $k[$j++] = $lt($get($_.nextXterm, _8N), $get($_.nextNonX, _8N)); //#23087 - }; //#23087 + var _8P = $k[--$j]; //#23380 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#23380 + }; //#23380 $_.lookup = function() { - $_.ac = 1; //#23090 - $_.cc = 2; //#23090 - $_.tc = 2; //#23090 - $_.xc = 2; //#23090 - $_.bc = 3; //#23090 - if ($_.mode == $_.A) { //#23091 - $_.ac = 0; //#23091 - $_.cc = 1; //#23091 - $_.tc = 1; //#23091 - $_.xc = 1; //#23091 - $_.bc = 2; //#23091 - } //#23091 - if ($_.mode == $_.C) { //#23092 - $_.cc = 0; //#23092 - } //#23092 - if ($_.mode == $_.T) { //#23093 - $_.tc = 0; //#23093 - } //#23093 - if ($_.mode == $_.X) { //#23094 - $_.xc = 0; //#23094 - } //#23094 - if ($_.mode == $_.B) { //#23095 - $_.bc = 0; //#23095 - } //#23095 - for (var _8c = 0, _8d = 1; _8c < _8d; _8c++) { //#23123 - $_.k = 0; //#23097 - for (;;) { //#23122 - if (($_.i + $_.k) == $_.msglen) { //#23104 - var _8l = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23099 - $k[$j++] = true; //#23099 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#23099 - var _8q = $k[--$j]; //#23099 - $k[$j++] = _8q && ($_.bc <= Math.ceil($get(_8l, _8m))); //#23099 - } //#23099 - if ($k[--$j]) { //#23099 - $k[$j++] = $_.B; //#23099 - break; //#23099 - } //#23099 - var _8x = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23100 - $k[$j++] = true; //#23100 - for (var _8y = 0, _8z = _8x.length; _8y < _8z; _8y++) { //#23100 - var _92 = $k[--$j]; //#23100 - $k[$j++] = _92 && ($_.ac <= Math.ceil($get(_8x, _8y))); //#23100 - } //#23100 - if ($k[--$j]) { //#23100 - $k[$j++] = $_.A; //#23100 - break; //#23100 - } //#23100 - var _97 = $a([$_.tc, $_.xc]); //#23101 - $k[$j++] = true; //#23101 - for (var _98 = 0, _99 = _97.length; _98 < _99; _98++) { //#23101 - var _9C = $k[--$j]; //#23101 - $k[$j++] = _9C && (Math.ceil($_.cc) <= Math.ceil($get(_97, _98))); //#23101 - } //#23101 - if ($k[--$j]) { //#23101 - $k[$j++] = $_.C; //#23101 - break; //#23101 - } //#23101 - var _9G = $a([$_.xc]); //#23102 - $k[$j++] = true; //#23102 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#23102 - var _9L = $k[--$j]; //#23102 - $k[$j++] = _9L && (Math.ceil($_.tc) <= Math.ceil($get(_9G, _9H))); //#23102 - } //#23102 - if ($k[--$j]) { //#23102 - $k[$j++] = $_.T; //#23102 - break; //#23102 - } //#23102 - $k[$j++] = $_.X; //#23103 - break; //#23103 - } //#23103 - $_.char = $get($_.msg, $_.i + $_.k); //#23105 - $k[$j++] = 'ac'; //#23106 - $k[$j++] = $_.ac; //#23106 - $_.isD(); //#23106 - if ($k[--$j]) { //#23106 - var _9V = $k[--$j]; //#23106 - $k[$j++] = $f(_9V + (1 / 2)); //#23106 - } else { //#23106 - $_.isEA(); //#23106 - if ($k[--$j]) { //#23106 - var _9X = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9X) + 2; //#23106 - } else { //#23106 - var _9Y = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9Y) + 1; //#23106 - } //#23106 - } //#23106 - var _9Z = $k[--$j]; //#23106 - $_[$k[--$j]] = _9Z; //#23106 - $k[$j++] = 'cc'; //#23107 - $k[$j++] = $_.cc; //#23107 - $_.isC(); //#23107 - if ($k[--$j]) { //#23107 - var _9d = $k[--$j]; //#23107 - $k[$j++] = $f(_9d + 0.6666667); //#23107 - } else { //#23107 - $_.isEA(); //#23107 - if ($k[--$j]) { //#23107 - var _9f = $k[--$j]; //#23107 - $k[$j++] = $f(_9f + 2.6666667); //#23107 - } else { //#23107 - var _9g = $k[--$j]; //#23107 - $k[$j++] = $f(_9g + 1.3333334); //#23107 - } //#23107 - } //#23107 - var _9h = $k[--$j]; //#23107 - $_[$k[--$j]] = _9h; //#23107 - $k[$j++] = 'tc'; //#23108 - $k[$j++] = $_.tc; //#23108 - $_.isT(); //#23108 - if ($k[--$j]) { //#23108 - var _9l = $k[--$j]; //#23108 - $k[$j++] = $f(_9l + 0.6666667); //#23108 - } else { //#23108 - $_.isEA(); //#23108 - if ($k[--$j]) { //#23108 - var _9n = $k[--$j]; //#23108 - $k[$j++] = $f(_9n + 2.6666667); //#23108 - } else { //#23108 - var _9o = $k[--$j]; //#23108 - $k[$j++] = $f(_9o + 1.3333334); //#23108 - } //#23108 - } //#23108 - var _9p = $k[--$j]; //#23108 - $_[$k[--$j]] = _9p; //#23108 - $k[$j++] = 'xc'; //#23109 - $k[$j++] = $_.xc; //#23109 - $_.isX(); //#23109 - if ($k[--$j]) { //#23109 - var _9t = $k[--$j]; //#23109 - $k[$j++] = $f(_9t + 0.6666667); //#23109 - } else { //#23109 - $_.isEA(); //#23109 - if ($k[--$j]) { //#23109 - var _9v = $k[--$j]; //#23109 - $k[$j++] = $f(_9v + 4.3333334); //#23109 - } else { //#23109 - var _9w = $k[--$j]; //#23109 - $k[$j++] = $f(_9w + 3.3333334); //#23109 - } //#23109 - } //#23109 - var _9x = $k[--$j]; //#23109 - $_[$k[--$j]] = _9x; //#23109 - $k[$j++] = 'bc'; //#23110 - $k[$j++] = $_.bc; //#23110 - $_.isFN(); //#23110 - if ($k[--$j]) { //#23110 - var _A1 = $k[--$j]; //#23110 - $k[$j++] = $f(_A1 + 3); //#23110 - } else { //#23110 - var _A2 = $k[--$j]; //#23110 - $k[$j++] = $f(_A2 + 1); //#23110 - } //#23110 - var _A3 = $k[--$j]; //#23110 - $_[$k[--$j]] = _A3; //#23110 - if ($_.k >= 3) { //#23120 - var _AA = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23112 - $k[$j++] = true; //#23112 - for (var _AB = 0, _AC = _AA.length; _AB < _AC; _AB++) { //#23112 - var _AF = $k[--$j]; //#23112 - $k[$j++] = _AF && (($_.bc + 1) <= Math.ceil($get(_AA, _AB))); //#23112 - } //#23112 - if ($k[--$j]) { //#23112 - $k[$j++] = $_.B; //#23112 - break; //#23112 - } //#23112 - var _AM = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23113 - $k[$j++] = true; //#23113 - for (var _AN = 0, _AO = _AM.length; _AN < _AO; _AN++) { //#23113 - var _AR = $k[--$j]; //#23113 - $k[$j++] = _AR && (($_.ac + 1) <= Math.ceil($get(_AM, _AN))); //#23113 - } //#23113 - if ($k[--$j]) { //#23113 - $k[$j++] = $_.A; //#23113 - break; //#23113 - } //#23113 - var _AY = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23114 - $k[$j++] = true; //#23114 - for (var _AZ = 0, _Aa = _AY.length; _AZ < _Aa; _AZ++) { //#23114 - var _Ad = $k[--$j]; //#23114 - $k[$j++] = _Ad && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_AY, _AZ))); //#23114 - } //#23114 - if ($k[--$j]) { //#23114 - $k[$j++] = $_.T; //#23114 - break; //#23114 - } //#23114 - var _Ai = $a([$_.ac, $_.tc]); //#23115 - $k[$j++] = true; //#23115 - for (var _Aj = 0, _Ak = _Ai.length; _Aj < _Ak; _Aj++) { //#23115 - var _An = $k[--$j]; //#23115 - $k[$j++] = _An && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ai, _Aj))); //#23115 - } //#23115 - if ($k[--$j]) { //#23118 - if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23116 - $k[$j++] = $_.C; //#23116 - break; //#23116 - } //#23116 - if ($_.cc == $_.xc) { //#23117 - $k[$j++] = ($_.i + $_.k) + 1; //#23117 - $_.XtermFirst(); //#23117 - if ($k[--$j]) { //#23117 - $k[$j++] = $_.X; //#23117 - break; //#23117 - } else { //#23117 - $k[$j++] = $_.C; //#23117 - break; //#23117 - } //#23117 - } //#23117 - } //#23117 - var _B3 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23119 - $k[$j++] = true; //#23119 - for (var _B4 = 0, _B5 = _B3.length; _B4 < _B5; _B4++) { //#23119 - var _B8 = $k[--$j]; //#23119 - $k[$j++] = _B8 && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B3, _B4))); //#23119 - } //#23119 - if ($k[--$j]) { //#23119 - $k[$j++] = $_.X; //#23119 - break; //#23119 - } //#23119 - } //#23119 - $_.k = $_.k + 1; //#23121 - } //#23121 - } //#23121 - }; //#23121 + $_.ac = 1; //#23383 + $_.cc = 2; //#23383 + $_.tc = 2; //#23383 + $_.xc = 2; //#23383 + $_.bc = 3; //#23383 + if ($_.mode == $_.A) { //#23384 + $_.ac = 0; //#23384 + $_.cc = 1; //#23384 + $_.tc = 1; //#23384 + $_.xc = 1; //#23384 + $_.bc = 2; //#23384 + } //#23384 + if ($_.mode == $_.C) { //#23385 + $_.cc = 0; //#23385 + } //#23385 + if ($_.mode == $_.T) { //#23386 + $_.tc = 0; //#23386 + } //#23386 + if ($_.mode == $_.X) { //#23387 + $_.xc = 0; //#23387 + } //#23387 + if ($_.mode == $_.B) { //#23388 + $_.bc = 0; //#23388 + } //#23388 + for (var _8e = 0, _8f = 1; _8e < _8f; _8e++) { //#23416 + $_.k = 0; //#23390 + for (;;) { //#23415 + if (($_.i + $_.k) == $_.msglen) { //#23397 + var _8n = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23392 + $k[$j++] = true; //#23392 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#23392 + var _8s = $k[--$j]; //#23392 + $k[$j++] = _8s && ($_.bc <= Math.ceil($get(_8n, _8o))); //#23392 + } //#23392 + if ($k[--$j]) { //#23392 + $k[$j++] = $_.B; //#23392 + break; //#23392 + } //#23392 + var _8z = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23393 + $k[$j++] = true; //#23393 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#23393 + var _94 = $k[--$j]; //#23393 + $k[$j++] = _94 && ($_.ac <= Math.ceil($get(_8z, _90))); //#23393 + } //#23393 + if ($k[--$j]) { //#23393 + $k[$j++] = $_.A; //#23393 + break; //#23393 + } //#23393 + var _99 = $a([$_.tc, $_.xc]); //#23394 + $k[$j++] = true; //#23394 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#23394 + var _9E = $k[--$j]; //#23394 + $k[$j++] = _9E && (Math.ceil($_.cc) <= Math.ceil($get(_99, _9A))); //#23394 + } //#23394 + if ($k[--$j]) { //#23394 + $k[$j++] = $_.C; //#23394 + break; //#23394 + } //#23394 + var _9I = $a([$_.xc]); //#23395 + $k[$j++] = true; //#23395 + for (var _9J = 0, _9K = _9I.length; _9J < _9K; _9J++) { //#23395 + var _9N = $k[--$j]; //#23395 + $k[$j++] = _9N && (Math.ceil($_.tc) <= Math.ceil($get(_9I, _9J))); //#23395 + } //#23395 + if ($k[--$j]) { //#23395 + $k[$j++] = $_.T; //#23395 + break; //#23395 + } //#23395 + $k[$j++] = $_.X; //#23396 + break; //#23396 + } //#23396 + $_.char = $get($_.msg, $_.i + $_.k); //#23398 + $k[$j++] = 'ac'; //#23399 + $k[$j++] = $_.ac; //#23399 + $_.isD(); //#23399 + if ($k[--$j]) { //#23399 + var _9X = $k[--$j]; //#23399 + $k[$j++] = $f(_9X + (1 / 2)); //#23399 + } else { //#23399 + $_.isEA(); //#23399 + if ($k[--$j]) { //#23399 + var _9Z = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9Z) + 2; //#23399 + } else { //#23399 + var _9a = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9a) + 1; //#23399 + } //#23399 + } //#23399 + var _9b = $k[--$j]; //#23399 + $_[$k[--$j]] = _9b; //#23399 + $k[$j++] = 'cc'; //#23400 + $k[$j++] = $_.cc; //#23400 + $_.isC(); //#23400 + if ($k[--$j]) { //#23400 + var _9f = $k[--$j]; //#23400 + $k[$j++] = $f(_9f + 0.6666667); //#23400 + } else { //#23400 + $_.isEA(); //#23400 + if ($k[--$j]) { //#23400 + var _9h = $k[--$j]; //#23400 + $k[$j++] = $f(_9h + 2.6666667); //#23400 + } else { //#23400 + var _9i = $k[--$j]; //#23400 + $k[$j++] = $f(_9i + 1.3333334); //#23400 + } //#23400 + } //#23400 + var _9j = $k[--$j]; //#23400 + $_[$k[--$j]] = _9j; //#23400 + $k[$j++] = 'tc'; //#23401 + $k[$j++] = $_.tc; //#23401 + $_.isT(); //#23401 + if ($k[--$j]) { //#23401 + var _9n = $k[--$j]; //#23401 + $k[$j++] = $f(_9n + 0.6666667); //#23401 + } else { //#23401 + $_.isEA(); //#23401 + if ($k[--$j]) { //#23401 + var _9p = $k[--$j]; //#23401 + $k[$j++] = $f(_9p + 2.6666667); //#23401 + } else { //#23401 + var _9q = $k[--$j]; //#23401 + $k[$j++] = $f(_9q + 1.3333334); //#23401 + } //#23401 + } //#23401 + var _9r = $k[--$j]; //#23401 + $_[$k[--$j]] = _9r; //#23401 + $k[$j++] = 'xc'; //#23402 + $k[$j++] = $_.xc; //#23402 + $_.isX(); //#23402 + if ($k[--$j]) { //#23402 + var _9v = $k[--$j]; //#23402 + $k[$j++] = $f(_9v + 0.6666667); //#23402 + } else { //#23402 + $_.isEA(); //#23402 + if ($k[--$j]) { //#23402 + var _9x = $k[--$j]; //#23402 + $k[$j++] = $f(_9x + 4.3333334); //#23402 + } else { //#23402 + var _9y = $k[--$j]; //#23402 + $k[$j++] = $f(_9y + 3.3333334); //#23402 + } //#23402 + } //#23402 + var _9z = $k[--$j]; //#23402 + $_[$k[--$j]] = _9z; //#23402 + $k[$j++] = 'bc'; //#23403 + $k[$j++] = $_.bc; //#23403 + $_.isFN(); //#23403 + if ($k[--$j]) { //#23403 + var _A3 = $k[--$j]; //#23403 + $k[$j++] = $f(_A3 + 3); //#23403 + } else { //#23403 + var _A4 = $k[--$j]; //#23403 + $k[$j++] = $f(_A4 + 1); //#23403 + } //#23403 + var _A5 = $k[--$j]; //#23403 + $_[$k[--$j]] = _A5; //#23403 + if ($_.k >= 3) { //#23413 + var _AC = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23405 + $k[$j++] = true; //#23405 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#23405 + var _AH = $k[--$j]; //#23405 + $k[$j++] = _AH && (($_.bc + 1) <= Math.ceil($get(_AC, _AD))); //#23405 + } //#23405 + if ($k[--$j]) { //#23405 + $k[$j++] = $_.B; //#23405 + break; //#23405 + } //#23405 + var _AO = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23406 + $k[$j++] = true; //#23406 + for (var _AP = 0, _AQ = _AO.length; _AP < _AQ; _AP++) { //#23406 + var _AT = $k[--$j]; //#23406 + $k[$j++] = _AT && (($_.ac + 1) <= Math.ceil($get(_AO, _AP))); //#23406 + } //#23406 + if ($k[--$j]) { //#23406 + $k[$j++] = $_.A; //#23406 + break; //#23406 + } //#23406 + var _Aa = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23407 + $k[$j++] = true; //#23407 + for (var _Ab = 0, _Ac = _Aa.length; _Ab < _Ac; _Ab++) { //#23407 + var _Af = $k[--$j]; //#23407 + $k[$j++] = _Af && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_Aa, _Ab))); //#23407 + } //#23407 + if ($k[--$j]) { //#23407 + $k[$j++] = $_.T; //#23407 + break; //#23407 + } //#23407 + var _Ak = $a([$_.ac, $_.tc]); //#23408 + $k[$j++] = true; //#23408 + for (var _Al = 0, _Am = _Ak.length; _Al < _Am; _Al++) { //#23408 + var _Ap = $k[--$j]; //#23408 + $k[$j++] = _Ap && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ak, _Al))); //#23408 + } //#23408 + if ($k[--$j]) { //#23411 + if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23409 + $k[$j++] = $_.C; //#23409 + break; //#23409 + } //#23409 + if ($_.cc == $_.xc) { //#23410 + $k[$j++] = ($_.i + $_.k) + 1; //#23410 + $_.XtermFirst(); //#23410 + if ($k[--$j]) { //#23410 + $k[$j++] = $_.X; //#23410 + break; //#23410 + } else { //#23410 + $k[$j++] = $_.C; //#23410 + break; //#23410 + } //#23410 + } //#23410 + } //#23410 + var _B5 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23412 + $k[$j++] = true; //#23412 + for (var _B6 = 0, _B7 = _B5.length; _B6 < _B7; _B6++) { //#23412 + var _BA = $k[--$j]; //#23412 + $k[$j++] = _BA && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B5, _B6))); //#23412 + } //#23412 + if ($k[--$j]) { //#23412 + $k[$j++] = $_.X; //#23412 + break; //#23412 + } //#23412 + } //#23412 + $_.k = $_.k + 1; //#23414 + } //#23414 + } //#23414 + }; //#23414 $_.addtocws = function() { - var _BC = $k[--$j]; //#23127 - $k[$j++] = _BC; //#23129 - if ((_BC.length + $_.j) > 1480) { //#23129 - $j--; //#23128 - $k[$j++] = 'bwipp.codeoneTooLong#23128'; //#23128 - $k[$j++] = "Maximum length exceeded"; //#23128 - bwipp_raiseerror(); //#23128 - } //#23128 - var _BE = $k[--$j]; //#23130 - $puti($_.cws, $_.j, _BE); //#23130 - $_.j = _BE.length + $_.j; //#23131 - }; //#23131 + var _BE = $k[--$j]; //#23420 + $k[$j++] = _BE; //#23422 + if ((_BE.length + $_.j) > 1480) { //#23422 + $j--; //#23421 + $k[$j++] = 'bwipp.codeoneTooLong#23421'; //#23421 + $k[$j++] = "Maximum length exceeded"; //#23421 + bwipp_raiseerror(); //#23421 + } //#23421 + var _BG = $k[--$j]; //#23423 + $puti($_.cws, $_.j, _BG); //#23423 + $_.j = _BG.length + $_.j; //#23424 + }; //#23424 $_.tobin = function() { - var _BJ = $s($k[--$j]); //#23135 - $k[$j++] = _BJ; //#23135 - for (var _BL = 0, _BK = _BJ.length - 1; _BL <= _BK; _BL += 1) { //#23135 - var _BM = $k[--$j]; //#23135 - $put(_BM, _BL, 48); //#23135 - $k[$j++] = _BM; //#23135 - } //#23135 - var _BN = $k[--$j]; //#23136 - var _BQ = $cvrs($s(_BN.length), $k[--$j], 2); //#23136 - $puti(_BN, _BN.length - _BQ.length, _BQ); //#23136 - $k[$j++] = _BN; //#23137 - $k[$j++] = Infinity; //#23137 - var _BR = $k[--$j]; //#23137 - var _BS = $k[--$j]; //#23137 - $k[$j++] = _BR; //#23137 - $forall(_BS, function() { //#23137 - var _BT = $k[--$j]; //#23137 - $k[$j++] = $f(_BT - 48); //#23137 - }); //#23137 - var _BU = $a(); //#23137 - $k[$j++] = _BU; //#23137 - }; //#23137 + var _BL = $s($k[--$j]); //#23428 + $k[$j++] = _BL; //#23428 + for (var _BN = 0, _BM = _BL.length - 1; _BN <= _BM; _BN += 1) { //#23428 + var _BO = $k[--$j]; //#23428 + $put(_BO, _BN, 48); //#23428 + $k[$j++] = _BO; //#23428 + } //#23428 + var _BP = $k[--$j]; //#23429 + var _BS = $cvrs($s(_BP.length), $k[--$j], 2); //#23429 + $puti(_BP, _BP.length - _BS.length, _BS); //#23429 + $k[$j++] = _BP; //#23430 + $k[$j++] = Infinity; //#23430 + var _BT = $k[--$j]; //#23430 + var _BU = $k[--$j]; //#23430 + $k[$j++] = _BT; //#23430 + $forall(_BU, function() { //#23430 + var _BV = $k[--$j]; //#23430 + $k[$j++] = $f(_BV - 48); //#23430 + }); //#23430 + var _BW = $a(); //#23430 + $k[$j++] = _BW; //#23430 + }; //#23430 $_.encA = function() { - for (var _BV = 0, _BW = 1; _BV < _BW; _BV++) { //#23182 - if ($get($_.numD, $_.i) >= 21) { //#23146 - $_.Dbits = $a([1, 1, 1, 1]); //#23143 - $_.mode = $_.D; //#23144 - break; //#23145 - } //#23145 - var _Be = $get($_.numD, $_.i); //#23147 - if ((_Be >= 13) && ($f(_Be + $_.i) == $_.msglen)) { //#23151 - $_.Dbits = $a([1, 1, 1, 1]); //#23148 - $_.mode = $_.D; //#23149 - break; //#23150 - } //#23150 - if ($get($_.numD, $_.i) >= 2) { //#23156 - var _Bm = $s(2); //#23153 - $put(_Bm, 0, $get($_.msg, $_.i)); //#23153 - $put(_Bm, 1, $get($_.msg, $_.i + 1)); //#23153 - $k[$j++] = $get($_.Avals, _Bm); //#23153 - $_.addtocws(); //#23153 - $_.i = $_.i + 2; //#23154 - break; //#23155 - } //#23155 - if ($get($_.msg, $_.i) == $_.fnc1) { //#23172 - if ($get($_.numD, $_.i + 1) >= 15) { //#23164 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23159 - $_.addtocws(); //#23159 - $_.i = $_.i + 1; //#23160 - $_.Dbits = $a([]); //#23161 - $_.mode = $_.D; //#23162 - break; //#23163 - } //#23163 - var _CB = $get($_.numD, $_.i + 1); //#23165 - if ((_CB >= 7) && (($f($f(_CB + $_.i) + 1)) == $_.msglen)) { //#23171 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23166 - $_.addtocws(); //#23166 - $_.i = $_.i + 1; //#23167 - $_.Dbits = $a([]); //#23168 - $_.mode = $_.D; //#23169 - break; //#23170 - } //#23170 - } //#23170 - $k[$j++] = 'newmode'; //#23173 - $_.lookup(); //#23173 - var _CK = $k[--$j]; //#23173 - $_[$k[--$j]] = _CK; //#23173 - if ($_.newmode != $_.mode) { //#23178 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23175 - $_.addtocws(); //#23175 - $_.mode = $_.newmode; //#23176 - break; //#23177 - } //#23177 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23179 - $_.addtocws(); //#23179 - $_.i = $_.i + 1; //#23180 - break; //#23181 - } //#23181 - }; //#23181 + for (var _BX = 0, _BY = 1; _BX < _BY; _BX++) { //#23475 + if ($get($_.numD, $_.i) >= 21) { //#23439 + $_.Dbits = $a([1, 1, 1, 1]); //#23436 + $_.mode = $_.D; //#23437 + break; //#23438 + } //#23438 + var _Bg = $get($_.numD, $_.i); //#23440 + if ((_Bg >= 13) && ($f(_Bg + $_.i) == $_.msglen)) { //#23444 + $_.Dbits = $a([1, 1, 1, 1]); //#23441 + $_.mode = $_.D; //#23442 + break; //#23443 + } //#23443 + if ($get($_.numD, $_.i) >= 2) { //#23449 + var _Bo = $s(2); //#23446 + $put(_Bo, 0, $get($_.msg, $_.i)); //#23446 + $put(_Bo, 1, $get($_.msg, $_.i + 1)); //#23446 + $k[$j++] = $get($_.Avals, _Bo); //#23446 + $_.addtocws(); //#23446 + $_.i = $_.i + 2; //#23447 + break; //#23448 + } //#23448 + if ($get($_.msg, $_.i) == $_.fnc1) { //#23465 + if ($get($_.numD, $_.i + 1) >= 15) { //#23457 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23452 + $_.addtocws(); //#23452 + $_.i = $_.i + 1; //#23453 + $_.Dbits = $a([]); //#23454 + $_.mode = $_.D; //#23455 + break; //#23456 + } //#23456 + var _CD = $get($_.numD, $_.i + 1); //#23458 + if ((_CD >= 7) && (($f($f(_CD + $_.i) + 1)) == $_.msglen)) { //#23464 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23459 + $_.addtocws(); //#23459 + $_.i = $_.i + 1; //#23460 + $_.Dbits = $a([]); //#23461 + $_.mode = $_.D; //#23462 + break; //#23463 + } //#23463 + } //#23463 + $k[$j++] = 'newmode'; //#23466 + $_.lookup(); //#23466 + var _CM = $k[--$j]; //#23466 + $_[$k[--$j]] = _CM; //#23466 + if ($_.newmode != $_.mode) { //#23471 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23468 + $_.addtocws(); //#23468 + $_.mode = $_.newmode; //#23469 + break; //#23470 + } //#23470 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23472 + $_.addtocws(); //#23472 + $_.i = $_.i + 1; //#23473 + break; //#23474 + } //#23474 + }; //#23474 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#23186 - $k[$j++] = Infinity; //#23187 - for (var _Ci = 0, _Ch = $_.in.length - 1; _Ci <= _Ch; _Ci += 3) { //#23191 - var _Ck = $geti($_.in, _Ci, 3); //#23189 - $k[$j++] = 0; //#23189 - for (var _Cl = 0, _Cm = _Ck.length; _Cl < _Cm; _Cl++) { //#23189 - var _Co = $k[--$j]; //#23189 - $k[$j++] = $f(_Co + $get(_Ck, _Cl)) * 40; //#23189 - } //#23189 - var _Cq = (~~($k[--$j] / 40)) + 1; //#23190 - $k[$j++] = ~~(_Cq / 256); //#23190 - $k[$j++] = _Cq % 256; //#23190 - } //#23190 - $astore($a($counttomark())); //#23192 - var _Ct = $k[--$j]; //#23192 - var _Cu = $k[--$j]; //#23192 - $k[$j++] = _Ct; //#23192 - $k[$j++] = _Cu; //#23192 - $j--; //#23192 - }; //#23192 + $_.in = $k[--$j]; //#23479 + $k[$j++] = Infinity; //#23480 + for (var _Ck = 0, _Cj = $_.in.length - 1; _Ck <= _Cj; _Ck += 3) { //#23484 + var _Cm = $geti($_.in, _Ck, 3); //#23482 + $k[$j++] = 0; //#23482 + for (var _Cn = 0, _Co = _Cm.length; _Cn < _Co; _Cn++) { //#23482 + var _Cq = $k[--$j]; //#23482 + $k[$j++] = $f(_Cq + $get(_Cm, _Cn)) * 40; //#23482 + } //#23482 + var _Cs = (~~($k[--$j] / 40)) + 1; //#23483 + $k[$j++] = ~~(_Cs / 256); //#23483 + $k[$j++] = _Cs % 256; //#23483 + } //#23483 + $astore($a($counttomark())); //#23485 + var _Cv = $k[--$j]; //#23485 + var _Cw = $k[--$j]; //#23485 + $k[$j++] = _Cv; //#23485 + $k[$j++] = _Cw; //#23485 + $j--; //#23485 + }; //#23485 $_.encCTX = function() { - $_.p = 0; //#23196 - $_.ctxvals = $a(2220); //#23197 - for (;;) { //#23294 - if ($_.i == $_.msglen) { //#23201 - break; //#23201 - } //#23201 - if (($_.p % 3) == 0) { //#23289 - if ($get($_.numD, $_.i) >= 12) { //#23208 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23204 - $_.CTXvalstocws(); //#23204 - $_.addtocws(); //#23204 - $k[$j++] = $a([$_.unlcw]); //#23205 - $_.addtocws(); //#23205 - $_.mode = $_.A; //#23206 - break; //#23207 - } //#23207 - var _DA = $get($_.numD, $_.i); //#23209 - if ((_DA >= 8) && ($f(_DA + $_.i) == $_.msglen)) { //#23214 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23210 - $_.CTXvalstocws(); //#23210 - $_.addtocws(); //#23210 - $k[$j++] = $a([$_.unlcw]); //#23211 - $_.addtocws(); //#23211 - $_.mode = $_.A; //#23212 - break; //#23213 - } //#23213 - if ($_.mode == $_.X) { //#23236 - var _DP = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23216 - if (!_DP) { //#23224 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23217 - $_.CTXvalstocws(); //#23217 - $_.addtocws(); //#23217 - if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23221 - $k[$j++] = $a([$_.unlcw]); //#23220 - $_.addtocws(); //#23220 - } //#23220 - $_.mode = $_.A; //#23222 - break; //#23223 - } //#23223 - if (($_.i + 1) < $_.msglen) { //#23230 - var _Di = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23226 - if (!_Di) { //#23226 - break; //#23226 - } //#23226 - if (($_.i + 2) < $_.msglen) { //#23229 - var _Dp = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23228 - if (!_Dp) { //#23228 - break; //#23228 - } //#23228 - } //#23228 - } //#23228 - } else { //#23236 - $_.lookup(); //#23232 - if ($k[--$j] != $_.mode) { //#23237 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23233 - $_.CTXvalstocws(); //#23233 - $_.addtocws(); //#23233 - $k[$j++] = $a([$_.unlcw]); //#23234 - $_.addtocws(); //#23234 - $_.mode = $_.A; //#23235 - break; //#23236 - } //#23236 - } //#23236 - if (($_.msglen - $_.i) <= 3) { //#23288 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23240 - $k[$j++] = Infinity; //#23246 - var _E8 = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23242 - for (var _E9 = 0, _EA = _E8.length; _E9 < _EA; _E9++) { //#23248 - var _EB = $get(_E8, _E9); //#23248 - var _EF = $get($get($_.encvals, $_.mode), _EB) !== undefined; //#23243 - $k[$j++] = _EB; //#23247 - if (_EF) { //#23246 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23244 - } else { //#23246 - $j--; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - } //#23246 - } //#23246 - $_.remvals = $a(); //#23246 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23259 - $k[$j++] = Infinity; //#23254 - $aload($geti($_.ctxvals, 0, $_.p)); //#23253 - $aload($_.remvals); //#23254 - var _ES = $a(); //#23254 - $k[$j++] = _ES; //#23255 - $_.CTXvalstocws(); //#23255 - $_.addtocws(); //#23255 - $_.mode = $_.A; //#23256 - $_.i = $_.msglen; //#23257 - break; //#23258 - } //#23258 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23270 - $k[$j++] = Infinity; //#23265 - $aload($geti($_.ctxvals, 0, $_.p)); //#23263 - $aload($_.remvals); //#23264 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23265 - var _Ei = $a(); //#23265 - $k[$j++] = _Ei; //#23266 - $_.CTXvalstocws(); //#23266 - $_.addtocws(); //#23266 - $_.mode = $_.A; //#23267 - $_.i = $_.msglen; //#23268 - break; //#23269 - } //#23269 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23279 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23273 - $_.CTXvalstocws(); //#23273 - $_.addtocws(); //#23273 - $k[$j++] = $a([$_.unlcw]); //#23274 - $_.addtocws(); //#23274 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23275 - $_.addtocws(); //#23275 - $_.mode = $_.A; //#23276 - $_.i = $_.msglen; //#23277 - break; //#23278 - } //#23278 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23287 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23282 - $_.CTXvalstocws(); //#23282 - $_.addtocws(); //#23282 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23283 - $_.addtocws(); //#23283 - $_.mode = $_.A; //#23284 - $_.i = $_.msglen; //#23285 - break; //#23286 - } //#23286 - } //#23286 - } //#23286 - var _FH = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23290 - $puti($_.ctxvals, $_.p, _FH); //#23291 - $_.p = _FH.length + $_.p; //#23292 - $_.i = $_.i + 1; //#23293 - } //#23293 - if ($_.mode != $_.A) { //#23318 - for (;;) { //#23302 - if (($_.p % 3) == 0) { //#23299 - break; //#23299 - } //#23299 - $_.i = $_.i - 1; //#23300 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23301 - } //#23301 - $k[$j++] = Infinity; //#23304 - $aload($geti($_.ctxvals, 0, $_.p)); //#23304 - var _Fb = $a(); //#23304 - $k[$j++] = _Fb; //#23305 - $_.CTXvalstocws(); //#23305 - $_.addtocws(); //#23305 - $k[$j++] = $a([$_.unlcw]); //#23306 - $_.addtocws(); //#23306 - $_.mode = $_.A; //#23307 - if ($_.i != $_.msglen) { //#23317 - if ($get($_.numD, $_.i) >= 2) { //#23315 - var _Fk = $s(2); //#23311 - $put(_Fk, 0, $get($_.msg, $_.i)); //#23311 - $put(_Fk, 1, $get($_.msg, $_.i + 1)); //#23311 - $k[$j++] = $get($_.Avals, _Fk); //#23311 - $_.addtocws(); //#23311 - $_.i = $_.i + 2; //#23312 - } else { //#23315 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23314 - $_.addtocws(); //#23314 - $_.i = $_.i + 1; //#23315 - } //#23315 - } //#23315 - } //#23315 - }; //#23315 + $_.p = 0; //#23489 + $_.ctxvals = $a(2220); //#23490 + for (;;) { //#23587 + if ($_.i == $_.msglen) { //#23494 + break; //#23494 + } //#23494 + if (($_.p % 3) == 0) { //#23582 + if ($get($_.numD, $_.i) >= 12) { //#23501 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23497 + $_.CTXvalstocws(); //#23497 + $_.addtocws(); //#23497 + $k[$j++] = $a([$_.unlcw]); //#23498 + $_.addtocws(); //#23498 + $_.mode = $_.A; //#23499 + break; //#23500 + } //#23500 + var _DC = $get($_.numD, $_.i); //#23502 + if ((_DC >= 8) && ($f(_DC + $_.i) == $_.msglen)) { //#23507 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23503 + $_.CTXvalstocws(); //#23503 + $_.addtocws(); //#23503 + $k[$j++] = $a([$_.unlcw]); //#23504 + $_.addtocws(); //#23504 + $_.mode = $_.A; //#23505 + break; //#23506 + } //#23506 + if ($_.mode == $_.X) { //#23529 + var _DR = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23509 + if (!_DR) { //#23517 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23510 + $_.CTXvalstocws(); //#23510 + $_.addtocws(); //#23510 + if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23514 + $k[$j++] = $a([$_.unlcw]); //#23513 + $_.addtocws(); //#23513 + } //#23513 + $_.mode = $_.A; //#23515 + break; //#23516 + } //#23516 + if (($_.i + 1) < $_.msglen) { //#23523 + var _Dk = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23519 + if (!_Dk) { //#23519 + break; //#23519 + } //#23519 + if (($_.i + 2) < $_.msglen) { //#23522 + var _Dr = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23521 + if (!_Dr) { //#23521 + break; //#23521 + } //#23521 + } //#23521 + } //#23521 + } else { //#23529 + $_.lookup(); //#23525 + if ($k[--$j] != $_.mode) { //#23530 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23526 + $_.CTXvalstocws(); //#23526 + $_.addtocws(); //#23526 + $k[$j++] = $a([$_.unlcw]); //#23527 + $_.addtocws(); //#23527 + $_.mode = $_.A; //#23528 + break; //#23529 + } //#23529 + } //#23529 + if (($_.msglen - $_.i) <= 3) { //#23581 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23533 + $k[$j++] = Infinity; //#23534 + var _EA = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23535 + for (var _EB = 0, _EC = _EA.length; _EB < _EC; _EB++) { //#23541 + var _ED = $get(_EA, _EB); //#23541 + var _EH = $get($get($_.encvals, $_.mode), _ED) !== undefined; //#23536 + $k[$j++] = _ED; //#23540 + if (_EH) { //#23539 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23537 + } else { //#23539 + $j--; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + } //#23539 + } //#23539 + $_.remvals = $a(); //#23539 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23552 + $k[$j++] = Infinity; //#23545 + $aload($geti($_.ctxvals, 0, $_.p)); //#23546 + $aload($_.remvals); //#23547 + var _EU = $a(); //#23547 + $k[$j++] = _EU; //#23548 + $_.CTXvalstocws(); //#23548 + $_.addtocws(); //#23548 + $_.mode = $_.A; //#23549 + $_.i = $_.msglen; //#23550 + break; //#23551 + } //#23551 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23563 + $k[$j++] = Infinity; //#23555 + $aload($geti($_.ctxvals, 0, $_.p)); //#23556 + $aload($_.remvals); //#23557 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23558 + var _Ek = $a(); //#23558 + $k[$j++] = _Ek; //#23559 + $_.CTXvalstocws(); //#23559 + $_.addtocws(); //#23559 + $_.mode = $_.A; //#23560 + $_.i = $_.msglen; //#23561 + break; //#23562 + } //#23562 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23572 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23566 + $_.CTXvalstocws(); //#23566 + $_.addtocws(); //#23566 + $k[$j++] = $a([$_.unlcw]); //#23567 + $_.addtocws(); //#23567 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23568 + $_.addtocws(); //#23568 + $_.mode = $_.A; //#23569 + $_.i = $_.msglen; //#23570 + break; //#23571 + } //#23571 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23580 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23575 + $_.CTXvalstocws(); //#23575 + $_.addtocws(); //#23575 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23576 + $_.addtocws(); //#23576 + $_.mode = $_.A; //#23577 + $_.i = $_.msglen; //#23578 + break; //#23579 + } //#23579 + } //#23579 + } //#23579 + var _FJ = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23583 + $puti($_.ctxvals, $_.p, _FJ); //#23584 + $_.p = _FJ.length + $_.p; //#23585 + $_.i = $_.i + 1; //#23586 + } //#23586 + if ($_.mode != $_.A) { //#23611 + for (;;) { //#23595 + if (($_.p % 3) == 0) { //#23592 + break; //#23592 + } //#23592 + $_.i = $_.i - 1; //#23593 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23594 + } //#23594 + $k[$j++] = Infinity; //#23596 + $aload($geti($_.ctxvals, 0, $_.p)); //#23597 + var _Fd = $a(); //#23597 + $k[$j++] = _Fd; //#23598 + $_.CTXvalstocws(); //#23598 + $_.addtocws(); //#23598 + $k[$j++] = $a([$_.unlcw]); //#23599 + $_.addtocws(); //#23599 + $_.mode = $_.A; //#23600 + if ($_.i != $_.msglen) { //#23610 + if ($get($_.numD, $_.i) >= 2) { //#23608 + var _Fm = $s(2); //#23604 + $put(_Fm, 0, $get($_.msg, $_.i)); //#23604 + $put(_Fm, 1, $get($_.msg, $_.i + 1)); //#23604 + $k[$j++] = $get($_.Avals, _Fm); //#23604 + $_.addtocws(); //#23604 + $_.i = $_.i + 2; //#23605 + } else { //#23608 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23607 + $_.addtocws(); //#23607 + $_.i = $_.i + 1; //#23608 + } //#23608 + } //#23608 + } //#23608 + }; //#23608 $_.encD = function() { - for (;;) { //#23379 - if ($get($_.numD, $_.i) < 3) { //#23369 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23328 - $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23329 - if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23338 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23335 - $k[$j++] = Infinity; //#23335 - $aload($_.Dbits); //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $_.Dbits = $a(); //#23335 - } //#23335 - if (($_.Drem == 2) || ($_.Drem == 6)) { //#23336 - $k[$j++] = Infinity; //#23336 - $aload($_.Dbits); //#23336 - $k[$j++] = 0; //#23336 - $k[$j++] = 1; //#23336 - $_.Dbits = $a(); //#23336 - } //#23336 - break; //#23337 - } //#23337 - if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23343 - break; //#23343 - } //#23343 - if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23350 - $k[$j++] = Infinity; //#23348 - $aload($_.Dbits); //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $_.Dbits = $a(); //#23348 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23349 - } //#23349 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23361 - if ($get($_.numD, $_.i) >= 1) { //#23358 - $k[$j++] = Infinity; //#23355 - $aload($_.Dbits); //#23355 - $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23355 - $k[$j++] = 4; //#23355 - $_.tobin(); //#23355 - $aload($k[--$j]); //#23355 - $_.Dbits = $a(); //#23355 - $_.i = $_.i + 1; //#23356 - } else { //#23358 - $k[$j++] = Infinity; //#23358 - $aload($_.Dbits); //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $_.Dbits = $a(); //#23358 - } //#23358 - $_.Drem = $_.Drem - 4; //#23360 - } //#23360 - if ($_.Drem == 2) { //#23365 - $k[$j++] = Infinity; //#23363 - $aload($_.Dbits); //#23363 - $k[$j++] = 0; //#23363 - $k[$j++] = 1; //#23363 - $_.Dbits = $a(); //#23363 - $_.Drem = 0; //#23364 - } //#23364 - break; //#23367 - } //#23367 - $k[$j++] = Infinity; //#23375 - $aload($_.Dbits); //#23373 - var _H7 = $geti($_.msg, $_.i, 3); //#23374 - $k[$j++] = 0; //#23374 - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#23374 - var _HB = $k[--$j]; //#23374 - $k[$j++] = ($f(_HB + $f($get(_H7, _H8) - 48))) * 10; //#23374 - } //#23374 - var _HC = $k[--$j]; //#23374 - $k[$j++] = (~~(_HC / 10)) + 1; //#23375 - $k[$j++] = 10; //#23375 - $_.tobin(); //#23375 - $aload($k[--$j]); //#23375 - $_.Dbits = $a(); //#23375 - $_.i = $_.i + 3; //#23377 - } //#23377 - $k[$j++] = Infinity; //#23381 - for (var _HI = 0, _HH = $_.Dbits.length - 1; _HI <= _HH; _HI += 8) { //#23384 - var _HK = $geti($_.Dbits, _HI, 8); //#23383 - $k[$j++] = 0; //#23383 - for (var _HL = 0, _HM = _HK.length; _HL < _HM; _HL++) { //#23383 - var _HO = $k[--$j]; //#23383 - $k[$j++] = $f(_HO + $get(_HK, _HL)) * 2; //#23383 - } //#23383 - var _HP = $k[--$j]; //#23383 - $k[$j++] = ~~(_HP / 2); //#23383 - } //#23383 - $astore($a($counttomark())); //#23385 - var _HS = $k[--$j]; //#23385 - var _HT = $k[--$j]; //#23385 - $k[$j++] = _HS; //#23385 - $k[$j++] = _HT; //#23385 - $j--; //#23385 - $_.addtocws(); //#23385 - $_.mode = $_.A; //#23386 - }; //#23386 + for (;;) { //#23672 + if ($get($_.numD, $_.i) < 3) { //#23662 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23621 + $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23622 + if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23631 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23628 + $k[$j++] = Infinity; //#23628 + $aload($_.Dbits); //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $_.Dbits = $a(); //#23628 + } //#23628 + if (($_.Drem == 2) || ($_.Drem == 6)) { //#23629 + $k[$j++] = Infinity; //#23629 + $aload($_.Dbits); //#23629 + $k[$j++] = 0; //#23629 + $k[$j++] = 1; //#23629 + $_.Dbits = $a(); //#23629 + } //#23629 + break; //#23630 + } //#23630 + if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23636 + break; //#23636 + } //#23636 + if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23643 + $k[$j++] = Infinity; //#23641 + $aload($_.Dbits); //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $_.Dbits = $a(); //#23641 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23642 + } //#23642 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23654 + if ($get($_.numD, $_.i) >= 1) { //#23651 + $k[$j++] = Infinity; //#23648 + $aload($_.Dbits); //#23648 + $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23648 + $k[$j++] = 4; //#23648 + $_.tobin(); //#23648 + $aload($k[--$j]); //#23648 + $_.Dbits = $a(); //#23648 + $_.i = $_.i + 1; //#23649 + } else { //#23651 + $k[$j++] = Infinity; //#23651 + $aload($_.Dbits); //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $_.Dbits = $a(); //#23651 + } //#23651 + $_.Drem = $_.Drem - 4; //#23653 + } //#23653 + if ($_.Drem == 2) { //#23658 + $k[$j++] = Infinity; //#23656 + $aload($_.Dbits); //#23656 + $k[$j++] = 0; //#23656 + $k[$j++] = 1; //#23656 + $_.Dbits = $a(); //#23656 + $_.Drem = 0; //#23657 + } //#23657 + break; //#23660 + } //#23660 + $k[$j++] = Infinity; //#23665 + $aload($_.Dbits); //#23666 + var _H9 = $geti($_.msg, $_.i, 3); //#23667 + $k[$j++] = 0; //#23667 + for (var _HA = 0, _HB = _H9.length; _HA < _HB; _HA++) { //#23667 + var _HD = $k[--$j]; //#23667 + $k[$j++] = ($f(_HD + $f($get(_H9, _HA) - 48))) * 10; //#23667 + } //#23667 + var _HE = $k[--$j]; //#23667 + $k[$j++] = (~~(_HE / 10)) + 1; //#23668 + $k[$j++] = 10; //#23668 + $_.tobin(); //#23668 + $aload($k[--$j]); //#23668 + $_.Dbits = $a(); //#23668 + $_.i = $_.i + 3; //#23670 + } //#23670 + $k[$j++] = Infinity; //#23674 + for (var _HK = 0, _HJ = $_.Dbits.length - 1; _HK <= _HJ; _HK += 8) { //#23677 + var _HM = $geti($_.Dbits, _HK, 8); //#23676 + $k[$j++] = 0; //#23676 + for (var _HN = 0, _HO = _HM.length; _HN < _HO; _HN++) { //#23676 + var _HQ = $k[--$j]; //#23676 + $k[$j++] = $f(_HQ + $get(_HM, _HN)) * 2; //#23676 + } //#23676 + var _HR = $k[--$j]; //#23676 + $k[$j++] = ~~(_HR / 2); //#23676 + } //#23676 + $astore($a($counttomark())); //#23678 + var _HU = $k[--$j]; //#23678 + var _HV = $k[--$j]; //#23678 + $k[$j++] = _HU; //#23678 + $k[$j++] = _HV; //#23678 + $j--; //#23678 + $_.addtocws(); //#23678 + $_.mode = $_.A; //#23679 + }; //#23679 $_.encB = function() { - $_.p = 0; //#23391 - $_.bvals = $a(1480); //#23391 - for (;;) { //#23398 - if ($_.i == $_.msglen) { //#23392 - break; //#23392 - } //#23392 - if ($get($_.msg, $_.i) < 0) { //#23393 - break; //#23393 - } //#23393 - $_.lookup(); //#23394 - if ($k[--$j] != $_.mode) { //#23394 - break; //#23394 - } //#23394 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23395 - $_.p = $_.p + 1; //#23396 - $_.i = $_.i + 1; //#23397 - } //#23397 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23399 - $k[$j++] = Infinity; //#23406 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23404 - $k[$j++] = 0; //#23402 - } else { //#23404 - if ($_.p < 250) { //#23404 - $k[$j++] = $_.p; //#23404 - } else { //#23404 - $k[$j++] = (~~($_.p / 250)) + 249; //#23404 - $k[$j++] = $_.p % 250; //#23404 - } //#23404 - } //#23404 - $aload($geti($_.bvals, 0, $_.p)); //#23406 - $_.bvals = $a(); //#23406 - $k[$j++] = $_.bvals; //#23408 - $_.addtocws(); //#23408 - $_.mode = $_.A; //#23409 - }; //#23409 - $_.cws = $a(1480); //#23413 - $_.mode = $_.A; //#23414 - $_.i = 0; //#23414 - $_.j = 0; //#23414 - for (;;) { //#23417 - if ($_.i >= $_.msglen) { //#23415 - break; //#23415 - } //#23415 + $_.p = 0; //#23684 + $_.bvals = $a(1480); //#23684 + for (;;) { //#23691 + if ($_.i == $_.msglen) { //#23685 + break; //#23685 + } //#23685 + if ($get($_.msg, $_.i) < 0) { //#23686 + break; //#23686 + } //#23686 + $_.lookup(); //#23687 + if ($k[--$j] != $_.mode) { //#23687 + break; //#23687 + } //#23687 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23688 + $_.p = $_.p + 1; //#23689 + $_.i = $_.i + 1; //#23690 + } //#23690 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23692 + $k[$j++] = Infinity; //#23693 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23697 + $k[$j++] = 0; //#23695 + } else { //#23697 + if ($_.p < 250) { //#23697 + $k[$j++] = $_.p; //#23697 + } else { //#23697 + $k[$j++] = (~~($_.p / 250)) + 249; //#23697 + $k[$j++] = $_.p % 250; //#23697 + } //#23697 + } //#23697 + $aload($geti($_.bvals, 0, $_.p)); //#23699 + $_.bvals = $a(); //#23699 + $k[$j++] = $_.bvals; //#23701 + $_.addtocws(); //#23701 + $_.mode = $_.A; //#23702 + }; //#23702 + $_.cws = $a(1480); //#23706 + $_.mode = $_.A; //#23707 + $_.i = 0; //#23707 + $_.j = 0; //#23707 + for (;;) { //#23710 + if ($_.i >= $_.msglen) { //#23708 + break; //#23708 + } //#23708 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $_.mode)]() === true) { break; - } //#23416 - } //#23416 - $_.cws = $geti($_.cws, 0, $_.j); //#23418 - } //#23418 - var _IC = $_.metrics; //#23423 - for (var _ID = 0, _IE = _IC.length; _ID < _IE; _ID++) { //#23441 - $_.m = $get(_IC, _ID); //#23424 - $_.vers = $get($_.m, 0); //#23425 - $_.rows = $get($_.m, 1); //#23426 - $_.cols = $get($_.m, 2); //#23427 - $_.dcol = $get($_.m, 3); //#23428 - $_.dcws = $get($_.m, 4); //#23429 - $_.rscw = $get($_.m, 5); //#23430 - $_.rsbl = $get($_.m, 6); //#23431 - $_.riso = $get($_.m, 7); //#23432 - $_.risi = $get($_.m, 8); //#23433 - $_.risl = $get($_.m, 9); //#23434 - $_.dcpb = ~~($_.dcws / $_.rsbl); //#23435 - $_.ecpb = ~~($_.rscw / $_.rsbl); //#23436 - $_.okay = true; //#23437 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23438 - $_.okay = false; //#23438 - } //#23438 - if ($_.cws.length > $_.dcws) { //#23439 - $_.okay = false; //#23439 - } //#23439 - if ($_.okay) { //#23440 - break; //#23440 - } //#23440 - } //#23440 - if (!$_.okay) { //#23445 - $k[$j++] = 'bwipp.codeoneNoValidSymbol#23444'; //#23444 - $k[$j++] = "Maximum length exceeded"; //#23444 - bwipp_raiseerror(); //#23444 - } //#23444 - if (!$_.stype) { //#23451 - $k[$j++] = Infinity; //#23449 - $aload($_.cws); //#23449 - for (var _Ip = 0, _Iq = $f($_.dcws - $_.cws.length); _Ip < _Iq; _Ip++) { //#23449 - $k[$j++] = 129; //#23449 - } //#23449 - $_.cws = $a(); //#23449 - } else { //#23451 - $k[$j++] = Infinity; //#23451 - for (var _Iu = 0, _Iv = $f($_.dcws - $_.cws.length); _Iu < _Iv; _Iu++) { //#23451 - $k[$j++] = 0; //#23451 - } //#23451 - $aload($_.cws); //#23451 - $_.cws = $a(); //#23451 - } //#23451 - var _Iz = $get($_.options, 'debugcws') !== undefined; //#23454 - if (_Iz) { //#23454 - $k[$j++] = 'bwipp.debugcws#23454'; //#23454 - $k[$j++] = $_.cws; //#23454 - bwipp_raiseerror(); //#23454 - } //#23454 - $_.cwbs = $a($_.rsbl); //#23457 - $_.ecbs = $a($_.rsbl); //#23458 - for (var _J7 = 0, _J6 = $f($_.rsbl - 1); _J7 <= _J6; _J7 += 1) { //#23467 - $_.i = _J7; //#23460 - $_.cwb = $a($_.dcpb); //#23461 - for (var _JC = 0, _JB = $_.dcpb - 1; _JC <= _JB; _JC += 1) { //#23465 - $_.j = _JC; //#23463 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23464 - } //#23464 - $put($_.cwbs, $_.i, $_.cwb); //#23466 - } //#23466 - var _JO = $_.stype ? 32 : 256; //#23470 - $_.gf = _JO; //#23470 - $_['gf-1'] = $_.gf - 1; //#23471 - var _JR = $_.stype ? 37 : 301; //#23472 - $_.pm = _JR; //#23472 - $k[$j++] = Infinity; //#23473 - $k[$j++] = 1; //#23473 - for (var _JT = 0, _JU = $_["gf-1"]; _JT < _JU; _JT++) { //#23473 - var _JV = $k[--$j]; //#23473 - var _JW = _JV * 2; //#23473 - $k[$j++] = _JV; //#23473 - $k[$j++] = _JW; //#23473 - if (_JW >= $_.gf) { //#23473 - var _JZ = $k[--$j]; //#23473 - $k[$j++] = _JZ ^ $_.pm; //#23473 - } //#23473 - } //#23473 - $_.rsalog = $a(); //#23473 - $_.rslog = $a($_.gf); //#23474 - for (var _Jf = 1, _Je = $_["gf-1"]; _Jf <= _Je; _Jf += 1) { //#23475 - $put($_.rslog, $get($_.rsalog, _Jf), _Jf); //#23475 - } //#23475 + } //#23709 + } //#23709 + $_.cws = $geti($_.cws, 0, $_.j); //#23711 + } //#23711 + var _IE = $_.metrics; //#23716 + for (var _IF = 0, _IG = _IE.length; _IF < _IG; _IF++) { //#23734 + $_.m = $get(_IE, _IF); //#23717 + $_.vers = $get($_.m, 0); //#23718 + $_.rows = $get($_.m, 1); //#23719 + $_.cols = $get($_.m, 2); //#23720 + $_.dcol = $get($_.m, 3); //#23721 + $_.dcws = $get($_.m, 4); //#23722 + $_.rscw = $get($_.m, 5); //#23723 + $_.rsbl = $get($_.m, 6); //#23724 + $_.riso = $get($_.m, 7); //#23725 + $_.risi = $get($_.m, 8); //#23726 + $_.risl = $get($_.m, 9); //#23727 + $_.dcpb = ~~($_.dcws / $_.rsbl); //#23728 + $_.ecpb = ~~($_.rscw / $_.rsbl); //#23729 + $_.okay = true; //#23730 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23731 + $_.okay = false; //#23731 + } //#23731 + if ($_.cws.length > $_.dcws) { //#23732 + $_.okay = false; //#23732 + } //#23732 + if ($_.okay) { //#23733 + break; //#23733 + } //#23733 + } //#23733 + if (!$_.okay) { //#23738 + $k[$j++] = 'bwipp.codeoneNoValidSymbol#23737'; //#23737 + $k[$j++] = "Maximum length exceeded"; //#23737 + bwipp_raiseerror(); //#23737 + } //#23737 + if (!$_.stype) { //#23744 + $k[$j++] = Infinity; //#23742 + $aload($_.cws); //#23742 + for (var _Ir = 0, _Is = $f($_.dcws - $_.cws.length); _Ir < _Is; _Ir++) { //#23742 + $k[$j++] = 129; //#23742 + } //#23742 + $_.cws = $a(); //#23742 + } else { //#23744 + $k[$j++] = Infinity; //#23744 + for (var _Iw = 0, _Ix = $f($_.dcws - $_.cws.length); _Iw < _Ix; _Iw++) { //#23744 + $k[$j++] = 0; //#23744 + } //#23744 + $aload($_.cws); //#23744 + $_.cws = $a(); //#23744 + } //#23744 + var _J1 = $get($_.options, 'debugcws') !== undefined; //#23747 + if (_J1) { //#23747 + $k[$j++] = 'bwipp.debugcws#23747'; //#23747 + $k[$j++] = $_.cws; //#23747 + bwipp_raiseerror(); //#23747 + } //#23747 + $_.cwbs = $a($_.rsbl); //#23750 + $_.ecbs = $a($_.rsbl); //#23751 + for (var _J9 = 0, _J8 = $f($_.rsbl - 1); _J9 <= _J8; _J9 += 1) { //#23760 + $_.i = _J9; //#23753 + $_.cwb = $a($_.dcpb); //#23754 + for (var _JE = 0, _JD = $_.dcpb - 1; _JE <= _JD; _JE += 1) { //#23758 + $_.j = _JE; //#23756 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23757 + } //#23757 + $put($_.cwbs, $_.i, $_.cwb); //#23759 + } //#23759 + var _JQ = $_.stype ? 32 : 256; //#23763 + $_.gf = _JQ; //#23763 + $_['gf-1'] = $_.gf - 1; //#23764 + var _JT = $_.stype ? 37 : 301; //#23765 + $_.pm = _JT; //#23765 + $k[$j++] = Infinity; //#23766 + $k[$j++] = 1; //#23766 + for (var _JV = 0, _JW = $_["gf-1"]; _JV < _JW; _JV++) { //#23766 + var _JX = $k[--$j]; //#23766 + var _JY = _JX * 2; //#23766 + $k[$j++] = _JX; //#23766 + $k[$j++] = _JY; //#23766 + if (_JY >= $_.gf) { //#23766 + var _Jb = $k[--$j]; //#23766 + $k[$j++] = _Jb ^ $_.pm; //#23766 + } //#23766 + } //#23766 + $_.rsalog = $a(); //#23766 + $_.rslog = $a($_.gf); //#23767 + for (var _Jh = 1, _Jg = $_["gf-1"]; _Jh <= _Jg; _Jh += 1) { //#23768 + $put($_.rslog, $get($_.rsalog, _Jh), _Jh); //#23768 + } //#23768 $_.rsprod = function() { - var _Jj = $k[--$j]; //#23477 - var _Jk = $k[--$j]; //#23477 - $k[$j++] = _Jk; //#23481 - $k[$j++] = _Jj; //#23481 - if ((_Jj != 0) && (_Jk != 0)) { //#23480 - var _Jn = $get($_.rslog, $k[--$j]); //#23478 - var _Jt = $get($_.rsalog, $f(_Jn + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23478 - $k[$j++] = _Jt; //#23478 - } else { //#23480 - $j -= 2; //#23480 - $k[$j++] = 0; //#23480 - } //#23480 - }; //#23480 - $k[$j++] = Infinity; //#23485 - $k[$j++] = 1; //#23485 - for (var _Jv = 0, _Jw = $_.ecpb; _Jv < _Jw; _Jv++) { //#23485 - $k[$j++] = 0; //#23485 - } //#23485 - $_.coeffs = $a(); //#23485 - for (var _K0 = 0, _Jz = $_.ecpb - 1; _K0 <= _Jz; _K0 += 1) { //#23494 - $_.i = _K0; //#23487 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23488 - for (var _K7 = $_.i; _K7 >= 1; _K7 -= 1) { //#23492 - $_.j = _K7; //#23490 - $k[$j++] = $_.coeffs; //#23491 - $k[$j++] = $_.j; //#23491 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#23491 - $k[$j++] = $get($_.coeffs, $_.j); //#23491 - $k[$j++] = $get($_.rsalog, $_.i); //#23491 - $_.rsprod(); //#23491 - var _KJ = $k[--$j]; //#23491 - var _KK = $k[--$j]; //#23491 - var _KL = $k[--$j]; //#23491 - $put($k[--$j], _KL, $xo(_KK, _KJ)); //#23491 - } //#23491 - $k[$j++] = $_.coeffs; //#23493 - $k[$j++] = 0; //#23493 - $k[$j++] = $get($_.coeffs, 0); //#23493 - $k[$j++] = $get($_.rsalog, $_.i); //#23493 - $_.rsprod(); //#23493 - var _KT = $k[--$j]; //#23493 - var _KU = $k[--$j]; //#23493 - $put($k[--$j], _KU, _KT); //#23493 - } //#23493 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23495 - for (var _Kb = 0, _Ka = $_.cwbs.length - 1; _Kb <= _Ka; _Kb += 1) { //#23510 - $_.i = _Kb; //#23499 - $k[$j++] = Infinity; //#23500 - $aload($get($_.cwbs, $_.i)); //#23500 - for (var _Kg = 0, _Kh = $_.ecpb; _Kg < _Kh; _Kg++) { //#23500 - $k[$j++] = 0; //#23500 - } //#23500 - $_.rscws = $a(); //#23500 - for (var _Kl = 0, _Kk = $_.dcpb - 1; _Kl <= _Kk; _Kl += 1) { //#23508 - $_.m = _Kl; //#23502 - $_.k = $get($_.rscws, $_.m); //#23503 - for (var _Kr = 0, _Kq = $_.ecpb - 1; _Kr <= _Kq; _Kr += 1) { //#23507 - $_.j = _Kr; //#23505 - $k[$j++] = $_.rscws; //#23506 - $k[$j++] = ($_.m + $_.j) + 1; //#23506 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23506 - $k[$j++] = $_.k; //#23506 - $_.rsprod(); //#23506 - var _L4 = $k[--$j]; //#23506 - var _L5 = $k[--$j]; //#23506 - $put($k[--$j], _L5, $xo(_L4, $get($_.rscws, ($_.m + $_.j) + 1))); //#23506 - } //#23506 - } //#23506 - $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23509 - } //#23509 - $k[$j++] = Infinity; //#23513 - $aload($_.cws); //#23513 - for (var _LF = 0, _LG = $_.rscw; _LF < _LG; _LF++) { //#23513 - $k[$j++] = 0; //#23513 - } //#23513 - $_.cws = $a(); //#23513 - for (var _LK = 0, _LJ = $f($_.rscw - 1); _LK <= _LJ; _LK += 1) { //#23517 - $_.i = _LK; //#23515 - $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23516 - } //#23516 - var _LY = $_.stype ? 5 : 8; //#23520 - $_.mmat = $a($f($_.dcws + $_.rscw) * _LY); //#23520 - $_.r = 0; //#23521 - $_.c = 0; //#23521 - var _Lb = $_.stype ? 2 : 1; //#23522 - for (var _Le = 0, _Lf = _Lb, _Ld = $_.cws.length - 1; _Lf < 0 ? _Le >= _Ld : _Le <= _Ld; _Le += _Lf) { //#23543 - $_.i = _Le; //#23523 - if (!$_.stype) { //#23537 - var _Li = $strcpy($s(8), "00000000"); //#23525 - var _Ln = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23525 - $puti(_Li, 8 - _Ln.length, _Ln); //#23526 - $k[$j++] = _Li; //#23526 - $k[$j++] = Infinity; //#23526 - var _Lo = $k[--$j]; //#23526 - var _Lp = $k[--$j]; //#23526 - $k[$j++] = _Lo; //#23526 - $forall(_Lp, function() { //#23526 - var _Lq = $k[--$j]; //#23526 - $k[$j++] = $f(_Lq - 48); //#23526 - }); //#23526 - var _Lr = $a(); //#23526 - $_.top = $geti(_Lr, 0, 4); //#23527 - $_.bot = $geti(_Lr, 4, 4); //#23528 - } else { //#23537 - var _Lv = $strcpy($s(5), "00000"); //#23530 - var _M0 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23530 - $puti(_Lv, 5 - _M0.length, _M0); //#23531 - $k[$j++] = _Lv; //#23531 - $k[$j++] = Infinity; //#23531 - var _M1 = $k[--$j]; //#23531 - var _M2 = $k[--$j]; //#23531 - $k[$j++] = _M1; //#23531 - $forall(_M2, function() { //#23531 - var _M3 = $k[--$j]; //#23531 - $k[$j++] = $f(_M3 - 48); //#23531 - }); //#23531 - $_.c1 = $a(); //#23532 - var _M6 = $strcpy($s(5), "00000"); //#23533 - var _MB = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23533 - $puti(_M6, 5 - _MB.length, _MB); //#23534 - $k[$j++] = _M6; //#23534 - $k[$j++] = Infinity; //#23534 - var _MC = $k[--$j]; //#23534 - var _MD = $k[--$j]; //#23534 - $k[$j++] = _MC; //#23534 - $forall(_MD, function() { //#23534 - var _ME = $k[--$j]; //#23534 - $k[$j++] = $f(_ME - 48); //#23534 - }); //#23534 - $_.c2 = $a(); //#23535 - $k[$j++] = Infinity; //#23536 - $aload($geti($_.c1, 0, 3)); //#23536 - $aload($geti($_.c2, 0, 2)); //#23536 - $_.top = $a(); //#23536 - $k[$j++] = Infinity; //#23537 - $aload($geti($_.c1, 3, 2)); //#23537 - $aload($geti($_.c2, 2, 3)); //#23537 - $_.bot = $a(); //#23537 - } //#23537 - $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23539 - $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23540 - $_.c = $_.c + $_.top.length; //#23541 - if ($_.c == $_.dcol) { //#23542 - $_.c = 0; //#23542 - $_.r = $_.r + 2; //#23542 - } //#23542 - } //#23542 + var _Jl = $k[--$j]; //#23770 + var _Jm = $k[--$j]; //#23770 + $k[$j++] = _Jm; //#23774 + $k[$j++] = _Jl; //#23774 + if ((_Jl != 0) && (_Jm != 0)) { //#23773 + var _Jp = $get($_.rslog, $k[--$j]); //#23771 + var _Jv = $get($_.rsalog, $f(_Jp + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23771 + $k[$j++] = _Jv; //#23771 + } else { //#23773 + $j -= 2; //#23773 + $k[$j++] = 0; //#23773 + } //#23773 + }; //#23773 + $k[$j++] = Infinity; //#23778 + $k[$j++] = 1; //#23778 + for (var _Jx = 0, _Jy = $_.ecpb; _Jx < _Jy; _Jx++) { //#23778 + $k[$j++] = 0; //#23778 + } //#23778 + $_.coeffs = $a(); //#23778 + for (var _K2 = 0, _K1 = $_.ecpb - 1; _K2 <= _K1; _K2 += 1) { //#23787 + $_.i = _K2; //#23780 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23781 + for (var _K9 = $_.i; _K9 >= 1; _K9 -= 1) { //#23785 + $_.j = _K9; //#23783 + $k[$j++] = $_.coeffs; //#23784 + $k[$j++] = $_.j; //#23784 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#23784 + $k[$j++] = $get($_.coeffs, $_.j); //#23784 + $k[$j++] = $get($_.rsalog, $_.i); //#23784 + $_.rsprod(); //#23784 + var _KL = $k[--$j]; //#23784 + var _KM = $k[--$j]; //#23784 + var _KN = $k[--$j]; //#23784 + $put($k[--$j], _KN, $xo(_KM, _KL)); //#23784 + } //#23784 + $k[$j++] = $_.coeffs; //#23786 + $k[$j++] = 0; //#23786 + $k[$j++] = $get($_.coeffs, 0); //#23786 + $k[$j++] = $get($_.rsalog, $_.i); //#23786 + $_.rsprod(); //#23786 + var _KV = $k[--$j]; //#23786 + var _KW = $k[--$j]; //#23786 + $put($k[--$j], _KW, _KV); //#23786 + } //#23786 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23788 + for (var _Kd = 0, _Kc = $_.cwbs.length - 1; _Kd <= _Kc; _Kd += 1) { //#23803 + $_.i = _Kd; //#23792 + $k[$j++] = Infinity; //#23793 + $aload($get($_.cwbs, $_.i)); //#23793 + for (var _Ki = 0, _Kj = $_.ecpb; _Ki < _Kj; _Ki++) { //#23793 + $k[$j++] = 0; //#23793 + } //#23793 + $_.rscws = $a(); //#23793 + for (var _Kn = 0, _Km = $_.dcpb - 1; _Kn <= _Km; _Kn += 1) { //#23801 + $_.m = _Kn; //#23795 + $_.k = $get($_.rscws, $_.m); //#23796 + for (var _Kt = 0, _Ks = $_.ecpb - 1; _Kt <= _Ks; _Kt += 1) { //#23800 + $_.j = _Kt; //#23798 + $k[$j++] = $_.rscws; //#23799 + $k[$j++] = ($_.m + $_.j) + 1; //#23799 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23799 + $k[$j++] = $_.k; //#23799 + $_.rsprod(); //#23799 + var _L6 = $k[--$j]; //#23799 + var _L7 = $k[--$j]; //#23799 + $put($k[--$j], _L7, $xo(_L6, $get($_.rscws, ($_.m + $_.j) + 1))); //#23799 + } //#23799 + } //#23799 + $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23802 + } //#23802 + $k[$j++] = Infinity; //#23806 + $aload($_.cws); //#23806 + for (var _LH = 0, _LI = $_.rscw; _LH < _LI; _LH++) { //#23806 + $k[$j++] = 0; //#23806 + } //#23806 + $_.cws = $a(); //#23806 + for (var _LM = 0, _LL = $f($_.rscw - 1); _LM <= _LL; _LM += 1) { //#23810 + $_.i = _LM; //#23808 + $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23809 + } //#23809 + var _La = $_.stype ? 5 : 8; //#23813 + $_.mmat = $a($f($_.dcws + $_.rscw) * _La); //#23813 + $_.r = 0; //#23814 + $_.c = 0; //#23814 + var _Ld = $_.stype ? 2 : 1; //#23815 + for (var _Lg = 0, _Lh = _Ld, _Lf = $_.cws.length - 1; _Lh < 0 ? _Lg >= _Lf : _Lg <= _Lf; _Lg += _Lh) { //#23836 + $_.i = _Lg; //#23816 + if (!$_.stype) { //#23830 + var _Lk = $strcpy($s(8), "00000000"); //#23818 + var _Lp = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23818 + $puti(_Lk, 8 - _Lp.length, _Lp); //#23819 + $k[$j++] = _Lk; //#23819 + $k[$j++] = Infinity; //#23819 + var _Lq = $k[--$j]; //#23819 + var _Lr = $k[--$j]; //#23819 + $k[$j++] = _Lq; //#23819 + $forall(_Lr, function() { //#23819 + var _Ls = $k[--$j]; //#23819 + $k[$j++] = $f(_Ls - 48); //#23819 + }); //#23819 + var _Lt = $a(); //#23819 + $_.top = $geti(_Lt, 0, 4); //#23820 + $_.bot = $geti(_Lt, 4, 4); //#23821 + } else { //#23830 + var _Lx = $strcpy($s(5), "00000"); //#23823 + var _M2 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23823 + $puti(_Lx, 5 - _M2.length, _M2); //#23824 + $k[$j++] = _Lx; //#23824 + $k[$j++] = Infinity; //#23824 + var _M3 = $k[--$j]; //#23824 + var _M4 = $k[--$j]; //#23824 + $k[$j++] = _M3; //#23824 + $forall(_M4, function() { //#23824 + var _M5 = $k[--$j]; //#23824 + $k[$j++] = $f(_M5 - 48); //#23824 + }); //#23824 + $_.c1 = $a(); //#23825 + var _M8 = $strcpy($s(5), "00000"); //#23826 + var _MD = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23826 + $puti(_M8, 5 - _MD.length, _MD); //#23827 + $k[$j++] = _M8; //#23827 + $k[$j++] = Infinity; //#23827 + var _ME = $k[--$j]; //#23827 + var _MF = $k[--$j]; //#23827 + $k[$j++] = _ME; //#23827 + $forall(_MF, function() { //#23827 + var _MG = $k[--$j]; //#23827 + $k[$j++] = $f(_MG - 48); //#23827 + }); //#23827 + $_.c2 = $a(); //#23828 + $k[$j++] = Infinity; //#23829 + $aload($geti($_.c1, 0, 3)); //#23829 + $aload($geti($_.c2, 0, 2)); //#23829 + $_.top = $a(); //#23829 + $k[$j++] = Infinity; //#23830 + $aload($geti($_.c1, 3, 2)); //#23830 + $aload($geti($_.c2, 2, 3)); //#23830 + $_.bot = $a(); //#23830 + } //#23830 + $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23832 + $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23833 + $_.c = $_.c + $_.top.length; //#23834 + if ($_.c == $_.dcol) { //#23835 + $_.c = 0; //#23835 + $_.r = $_.r + 2; //#23835 + } //#23835 + } //#23835 $_.mmv = function() { - var _Mg = $k[--$j]; //#23546 - var _Mh = $k[--$j]; //#23546 - $k[$j++] = $f(_Mh + (_Mg * $_.cols)); //#23546 - }; //#23546 - $k[$j++] = Infinity; //#23547 - for (var _Mk = 0, _Ml = $_.rows * $_.cols; _Mk < _Ml; _Mk++) { //#23547 - $k[$j++] = -1; //#23547 - } //#23547 - $_.pixs = $a(); //#23547 - var _NH = $a([function() { - for (var _Mo = 0, _Mp = $_.cols; _Mo < _Mp; _Mo++) { //#23551 - $k[$j++] = 0; //#23551 - } //#23551 + var _Mi = $k[--$j]; //#23839 + var _Mj = $k[--$j]; //#23839 + $k[$j++] = $f(_Mj + (_Mi * $_.cols)); //#23839 + }; //#23839 + $k[$j++] = Infinity; //#23840 + for (var _Mm = 0, _Mn = $_.rows * $_.cols; _Mm < _Mn; _Mm++) { //#23840 + $k[$j++] = -1; //#23840 + } //#23840 + $_.pixs = $a(); //#23840 + var _NJ = $a([function() { + for (var _Mq = 0, _Mr = $_.cols; _Mq < _Mr; _Mq++) { //#23844 + $k[$j++] = 0; //#23844 + } //#23844 }, function() { - for (var _Mr = 0, _Ms = $_.cols; _Mr < _Ms; _Mr++) { //#23552 - $k[$j++] = 1; //#23552 - } //#23552 + for (var _Mt = 0, _Mu = $_.cols; _Mt < _Mu; _Mt++) { //#23845 + $k[$j++] = 1; //#23845 + } //#23845 }, function() { - $k[$j++] = 0; //#23553 - for (var _Mu = 0, _Mv = $f($_.cols - 2); _Mu < _Mv; _Mu++) { //#23553 - $k[$j++] = 1; //#23553 - } //#23553 - $k[$j++] = 0; //#23553 + $k[$j++] = 0; //#23846 + for (var _Mw = 0, _Mx = $f($_.cols - 2); _Mw < _Mx; _Mw++) { //#23846 + $k[$j++] = 1; //#23846 + } //#23846 + $k[$j++] = 0; //#23846 }, function() { - $k[$j++] = 0; //#23554 - $k[$j++] = 1; //#23554 - for (var _Mx = 0, _My = $f($_.cols - 4); _Mx < _My; _Mx++) { //#23554 - $k[$j++] = 0; //#23554 - } //#23554 - $k[$j++] = 1; //#23554 - $k[$j++] = 0; //#23554 + $k[$j++] = 0; //#23847 + $k[$j++] = 1; //#23847 + for (var _Mz = 0, _N0 = $f($_.cols - 4); _Mz < _N0; _Mz++) { //#23847 + $k[$j++] = 0; //#23847 + } //#23847 + $k[$j++] = 1; //#23847 + $k[$j++] = 0; //#23847 }, function() { - for (var _N0 = 0, _N1 = ~~($f($_.cols - 1) / 2); _N0 < _N1; _N0++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 - $k[$j++] = 1; //#23555 - for (var _N3 = 0, _N4 = ~~($f($_.cols - 1) / 2); _N3 < _N4; _N3++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 + for (var _N2 = 0, _N3 = ~~($f($_.cols - 1) / 2); _N2 < _N3; _N2++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 + $k[$j++] = 1; //#23848 + for (var _N5 = 0, _N6 = ~~($f($_.cols - 1) / 2); _N5 < _N6; _N5++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 }, function() { - for (var _N6 = 0, _N7 = ~~($f($_.cols - 1) / 2); _N6 < _N7; _N6++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 - $k[$j++] = 0; //#23556 - for (var _N9 = 0, _NA = ~~($f($_.cols - 1) / 2); _N9 < _NA; _N9++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 + for (var _N8 = 0, _N9 = ~~($f($_.cols - 1) / 2); _N8 < _N9; _N8++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 + $k[$j++] = 0; //#23849 + for (var _NB = 0, _NC = ~~($f($_.cols - 1) / 2); _NB < _NC; _NB++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 }, function() { - $k[$j++] = 1; //#23557 - for (var _NC = 0, _ND = $f($_.cols - 2); _NC < _ND; _NC++) { //#23557 - $k[$j++] = 0; //#23557 - } //#23557 - $k[$j++] = 1; //#23557 + $k[$j++] = 1; //#23850 + for (var _NE = 0, _NF = $f($_.cols - 2); _NE < _NF; _NE++) { //#23850 + $k[$j++] = 0; //#23850 + } //#23850 + $k[$j++] = 1; //#23850 }, function() { - $k[$j++] = 1; //#23558 - $k[$j++] = 0; //#23558 - for (var _NF = 0, _NG = $f($_.cols - 4); _NF < _NG; _NF++) { //#23558 - $k[$j++] = 1; //#23558 - } //#23558 - $k[$j++] = 0; //#23558 - $k[$j++] = 1; //#23558 - }]); //#23558 - $_.artifact = _NH; //#23559 - if (!bwipp_codeone.__23573__) { //#23573 - $_ = Object.create($_); //#23573 - var _NI = new Map([ + $k[$j++] = 1; //#23851 + $k[$j++] = 0; //#23851 + for (var _NH = 0, _NI = $f($_.cols - 4); _NH < _NI; _NH++) { //#23851 + $k[$j++] = 1; //#23851 + } //#23851 + $k[$j++] = 0; //#23851 + $k[$j++] = 1; //#23851 + }]); //#23851 + $_.artifact = _NJ; //#23852 + if (!bwipp_codeone.__23866__) { //#23866 + $_ = Object.create($_); //#23866 + var _NK = new Map([ ["A", "121343"], ["B", "12134343"], ["C", "12121343"], @@ -29383,57 +29824,57 @@ function bwipp_codeone() { ["H", "121212134343"], ["S", "56661278"], ["T", "5666666666127878"] - ]); //#23571 - $_.cpatmap = _NI; //#23572 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23572 - bwipp_codeone.__23573__ = 1; //#23572 - $_ = Object.getPrototypeOf($_); //#23572 - } //#23572 - $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23574 - $k[$j++] = $_.pixs; //#23575 - $k[$j++] = 0; //#23575 - $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23575 - $_.mmv(); //#23575 - $k[$j++] = Infinity; //#23576 - $forall($_.cpat, function() { //#23576 + ]); //#23864 + $_.cpatmap = _NK; //#23865 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23865 + bwipp_codeone.__23866__ = 1; //#23865 + $_ = Object.getPrototypeOf($_); //#23865 + } //#23865 + $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23867 + $k[$j++] = $_.pixs; //#23868 + $k[$j++] = 0; //#23868 + $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23868 + $_.mmv(); //#23868 + $k[$j++] = Infinity; //#23869 + $forall($_.cpat, function() { //#23869 if ($get($_.artifact, $f($k[--$j] - 49))() === true) { return true; - } //#23576 - }); //#23576 - var _NV = $a(); //#23576 - var _NW = $k[--$j]; //#23576 - $puti($k[--$j], _NW, _NV); //#23576 - for (var _Na = 0, _NZ = $f($_.risl - 1); _Na <= _NZ; _Na += 1) { //#23591 - $_.i = _Na; //#23580 - for (var _Nf = $_.riso, _Ng = $_.risi, _Ne = $f($_.cols - 1); _Ng < 0 ? _Nf >= _Ne : _Nf <= _Ne; _Nf += _Ng) { //#23590 - $_.j = _Nf; //#23582 - var _Ni = (($_.i % 12) == 0) ? 1 : 0; //#23583 - var _Nj = $a([1, _Ni]); //#23583 - $k[$j++] = _Nj; //#23584 - $k[$j++] = _Nj; //#23584 - $k[$j++] = $_.pixs; //#23584 - $k[$j++] = $_.j; //#23584 - $k[$j++] = $_.i; //#23584 - $_.mmv(); //#23584 - var _Nn = $k[--$j]; //#23585 - var _No = $k[--$j]; //#23585 - $puti(_No, _Nn, $k[--$j]); //#23585 - if ($_.i != $f($_.risl - 1)) { //#23589 - $k[$j++] = $_.pixs; //#23587 - $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23587 - $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23587 - $_.mmv(); //#23587 - var _Nx = $k[--$j]; //#23588 - var _Ny = $k[--$j]; //#23588 - $puti(_Ny, _Nx, $k[--$j]); //#23588 - } else { //#23589 - $j--; //#23589 - } //#23589 - } //#23589 - } //#23589 - if (!bwipp_codeone.__23611__) { //#23611 - $_ = Object.create($_); //#23611 - var _Od = new Map([ + } //#23869 + }); //#23869 + var _NX = $a(); //#23869 + var _NY = $k[--$j]; //#23869 + $puti($k[--$j], _NY, _NX); //#23869 + for (var _Nc = 0, _Nb = $f($_.risl - 1); _Nc <= _Nb; _Nc += 1) { //#23884 + $_.i = _Nc; //#23873 + for (var _Nh = $_.riso, _Ni = $_.risi, _Ng = $f($_.cols - 1); _Ni < 0 ? _Nh >= _Ng : _Nh <= _Ng; _Nh += _Ni) { //#23883 + $_.j = _Nh; //#23875 + var _Nk = (($_.i % 12) == 0) ? 1 : 0; //#23876 + var _Nl = $a([1, _Nk]); //#23876 + $k[$j++] = _Nl; //#23877 + $k[$j++] = _Nl; //#23877 + $k[$j++] = $_.pixs; //#23877 + $k[$j++] = $_.j; //#23877 + $k[$j++] = $_.i; //#23877 + $_.mmv(); //#23877 + var _Np = $k[--$j]; //#23878 + var _Nq = $k[--$j]; //#23878 + $puti(_Nq, _Np, $k[--$j]); //#23878 + if ($_.i != $f($_.risl - 1)) { //#23882 + $k[$j++] = $_.pixs; //#23880 + $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23880 + $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23880 + $_.mmv(); //#23880 + var _Nz = $k[--$j]; //#23881 + var _O0 = $k[--$j]; //#23881 + $puti(_O0, _Nz, $k[--$j]); //#23881 + } else { //#23882 + $j--; //#23882 + } //#23882 + } //#23882 + } //#23882 + if (!bwipp_codeone.__23904__) { //#23904 + $_ = Object.create($_); //#23904 + var _Of = new Map([ ["A", $a([$a([12, 5])])], ["B", $a([$a([16, 7])])], ["C", $a([$a([26, 12])])], @@ -29443,941 +29884,957 @@ function bwipp_codeone() { ["G", $a([$a([27, 48]), $a([69, 48])])], ["H", $a([$a([26, 70]), $a([66, 70]), $a([106, 70]), $a([26, 72]), $a([66, 72]), $a([106, 72])])], ["S-10", $a([])], - ["S-20", $a([$a([10, 4])])], - ["S-30", $a([$a([15, 4]), $a([15, 6])])], - ["T-16", $a([$a([8, 10])])], - ["T-32", $a([$a([16, 10]), $a([16, 12])])], - ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] - ]); //#23609 - $_.blackdotmap = _Od; //#23610 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23610 - bwipp_codeone.__23611__ = 1; //#23610 - $_ = Object.getPrototypeOf($_); //#23610 - } //#23610 - $forall($get($_.blackdotmap, $_.vers), function() { //#23612 - var _Oj = $k[--$j]; //#23612 - $k[$j++] = $_.pixs; //#23612 - $aload(_Oj); //#23612 - $_.mmv(); //#23612 - var _Ok = $k[--$j]; //#23612 - $put($k[--$j], _Ok, 1); //#23612 - }); //#23612 - $_.j = 0; //#23615 - for (var _Oo = 0, _On = $_.pixs.length - 1; _Oo <= _On; _Oo += 1) { //#23622 - $_.i = _Oo; //#23617 - if ($get($_.pixs, $_.i) == -1) { //#23621 - $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23619 - $_.j = $_.j + 1; //#23620 - } //#23620 - } //#23620 - var _P4 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows / 72) * 2], - ["width", ($_.cols / 72) * 2], - ["opt", $_.options] - ]); //#23632 - $k[$j++] = _P4; //#23635 - if (!$_.dontdraw) { //#23635 - bwipp_renmatrix(); //#23635 - } //#23635 - $_ = Object.getPrototypeOf($_); //#23637 - $_ = Object.getPrototypeOf($_); //#23639 -} - + ["S-20", $a([$a([10, 4])])], + ["S-30", $a([$a([15, 4]), $a([15, 6])])], + ["T-16", $a([$a([8, 10])])], + ["T-32", $a([$a([16, 10]), $a([16, 12])])], + ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] + ]); //#23902 + $_.blackdotmap = _Of; //#23903 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23903 + bwipp_codeone.__23904__ = 1; //#23903 + $_ = Object.getPrototypeOf($_); //#23903 + } //#23903 + $forall($get($_.blackdotmap, $_.vers), function() { //#23905 + var _Ol = $k[--$j]; //#23905 + $k[$j++] = $_.pixs; //#23905 + $aload(_Ol); //#23905 + $_.mmv(); //#23905 + var _Om = $k[--$j]; //#23905 + $put($k[--$j], _Om, 1); //#23905 + }); //#23905 + $_.j = 0; //#23908 + for (var _Oq = 0, _Op = $_.pixs.length - 1; _Oq <= _Op; _Oq += 1) { //#23915 + $_.i = _Oq; //#23910 + if ($get($_.pixs, $_.i) == -1) { //#23914 + $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23912 + $_.j = $_.j + 1; //#23913 + } //#23913 + } //#23913 + $k[$j++] = Infinity; //#23918 + $k[$j++] = 'ren'; //#23930 + $k[$j++] = bwipp_renmatrix; //#23930 + $k[$j++] = 'pixs'; //#23930 + $k[$j++] = $_.pixs; //#23930 + $k[$j++] = 'pixx'; //#23930 + $k[$j++] = $_.cols; //#23930 + $k[$j++] = 'pixy'; //#23930 + $k[$j++] = $_.rows; //#23930 + $k[$j++] = 'height'; //#23930 + $k[$j++] = ($_.rows / 72) * 2; //#23930 + $k[$j++] = 'width'; //#23930 + $k[$j++] = ($_.cols / 72) * 2; //#23930 + if ($_.stype || $_.ttype) { //#23930 + $k[$j++] = 'borderleft'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'borderright'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'bordertop'; //#23929 + $k[$j++] = 0; //#23929 + $k[$j++] = 'borderbottom'; //#23929 + $k[$j++] = 1; //#23929 + } //#23929 + $k[$j++] = 'opt'; //#23931 + $k[$j++] = $_.options; //#23931 + var _P8 = $d(); //#23931 + $k[$j++] = _P8; //#23934 + if (!$_.dontdraw) { //#23934 + bwipp_renmatrix(); //#23934 + } //#23934 + $_ = Object.getPrototypeOf($_); //#23936 + $_ = Object.getPrototypeOf($_); //#23938 +} //bwipp_codeone function bwipp_hanxin() { - $_ = Object.create($_); //#23670 - $_.dontdraw = false; //#23673 - $_.version = "unset"; //#23674 - $_.eclevel = "L2"; //#23675 - $_.parse = false; //#23676 - $_.parsefnc = false; //#23677 - $_.mask = -1; //#23678 - $k[$j++] = $_; //#23680 - bwipp_processoptions(); //#23680 - $_.options = $k[--$j]; //#23680 - $_.barcode = $k[--$j]; //#23681 - if ($eq($_.barcode, "")) { //#23685 - $k[$j++] = 'bwipp.hanxinEmptyData#23684'; //#23684 - $k[$j++] = "The data must not be empty"; //#23684 - bwipp_raiseerror(); //#23684 - } //#23684 - if ($ne($_.version, "unset")) { //#23697 - var _5 = $_.version.length; //#23688 - var _6 = (_5 >= 1) && (_5 <= 2); //#23688 - $k[$j++] = _6; //#23693 - if (_6) { //#23693 - $j--; //#23689 - var _7 = $_.version; //#23690 - $k[$j++] = true; //#23690 - for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23690 - var _A = $get(_7, _8); //#23690 - if ((_A < 48) || (_A > 57)) { //#23690 - $j--; //#23690 - $k[$j++] = false; //#23690 - } //#23690 - } //#23690 - var _B = $k[--$j]; //#23690 - $k[$j++] = _B; //#23692 - if (_B) { //#23692 - $j--; //#23691 - var _D = $cvi($_.version); //#23691 - $k[$j++] = (_D >= 1) && (_D <= 84); //#23691 - } //#23691 - } //#23691 - if ($nt($k[--$j])) { //#23696 - $k[$j++] = 'bwipp.hanxinInvalidVersion#23695'; //#23695 - $k[$j++] = "Valid versions are 1 to 84"; //#23695 - bwipp_raiseerror(); //#23695 - } //#23695 - } //#23695 - var _G = $_.eclevel.length == 2; //#23699 - $k[$j++] = _G; //#23703 - if (_G) { //#23703 - $j--; //#23700 - $k[$j++] = $geti($_.eclevel, 0, 1); //#23702 - if ($eq("L", "L")) { //#23702 - $j--; //#23701 - var _L = $get($_.eclevel, 1) - 48; //#23701 - $k[$j++] = (_L >= 1) && (_L <= 4); //#23701 - } //#23701 - } //#23701 - if ($nt($k[--$j])) { //#23706 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23705'; //#23705 - $k[$j++] = "Valid error correction levels are L1 to L4"; //#23705 - bwipp_raiseerror(); //#23705 - } //#23705 - if ($_.mask != -1) { //#23712 - if (($_.mask < 1) || ($_.mask > 4)) { //#23711 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23710'; //#23710 - $k[$j++] = "The valid masks are 1 to 4"; //#23710 - bwipp_raiseerror(); //#23710 - } //#23710 - } //#23710 - bwipp_loadctx(bwipp_hanxin) //#23714 + $_ = Object.create($_); //#23969 + $_.dontdraw = false; //#23972 + $_.version = "unset"; //#23973 + $_.eclevel = "L2"; //#23974 + $_.parse = false; //#23975 + $_.parsefnc = false; //#23976 + $_.mask = -1; //#23977 + $k[$j++] = $_; //#23979 + bwipp_processoptions(); //#23979 + $_.options = $k[--$j]; //#23979 + $_.barcode = $k[--$j]; //#23980 + if ($eq($_.barcode, "")) { //#23984 + $k[$j++] = 'bwipp.hanxinEmptyData#23983'; //#23983 + $k[$j++] = "The data must not be empty"; //#23983 + bwipp_raiseerror(); //#23983 + } //#23983 + if ($ne($_.version, "unset")) { //#23996 + var _5 = $_.version.length; //#23987 + var _6 = (_5 >= 1) && (_5 <= 2); //#23987 + $k[$j++] = _6; //#23992 + if (_6) { //#23992 + $j--; //#23988 + var _7 = $_.version; //#23989 + $k[$j++] = true; //#23989 + for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23989 + var _A = $get(_7, _8); //#23989 + if ((_A < 48) || (_A > 57)) { //#23989 + $j--; //#23989 + $k[$j++] = false; //#23989 + } //#23989 + } //#23989 + var _B = $k[--$j]; //#23989 + $k[$j++] = _B; //#23991 + if (_B) { //#23991 + $j--; //#23990 + var _D = $cvi($_.version); //#23990 + $k[$j++] = (_D >= 1) && (_D <= 84); //#23990 + } //#23990 + } //#23990 + if ($nt($k[--$j])) { //#23995 + $k[$j++] = 'bwipp.hanxinInvalidVersion#23994'; //#23994 + $k[$j++] = "Valid versions are 1 to 84"; //#23994 + bwipp_raiseerror(); //#23994 + } //#23994 + } //#23994 + var _G = $_.eclevel.length == 2; //#23998 + $k[$j++] = _G; //#24002 + if (_G) { //#24002 + $j--; //#23999 + $k[$j++] = $geti($_.eclevel, 0, 1); //#24001 + if ($eq("L", "L")) { //#24001 + $j--; //#24000 + var _L = $get($_.eclevel, 1) - 48; //#24000 + $k[$j++] = (_L >= 1) && (_L <= 4); //#24000 + } //#24000 + } //#24000 + if ($nt($k[--$j])) { //#24005 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24004'; //#24004 + $k[$j++] = "Valid error correction levels are L1 to L4"; //#24004 + bwipp_raiseerror(); //#24004 + } //#24004 + if ($_.mask != -1) { //#24011 + if (($_.mask < 1) || ($_.mask > 4)) { //#24010 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24009'; //#24009 + $k[$j++] = "The valid masks are 1 to 4"; //#24009 + bwipp_raiseerror(); //#24009 + } //#24009 + } //#24009 + bwipp_loadctx(bwipp_hanxin) //#24013 var _S = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc] - ]); //#23719 - $_.fncvals = _S; //#23721 - $k[$j++] = 'msg'; //#23722 - $k[$j++] = $_.barcode; //#23722 - $k[$j++] = $_.fncvals; //#23722 - bwipp_parseinput(); //#23722 - var _V = $k[--$j]; //#23722 - $_[$k[--$j]] = _V; //#23722 - $_.msglen = $_.msg.length; //#23723 + ]); //#24018 + $_.fncvals = _S; //#24020 + $k[$j++] = 'msg'; //#24021 + $k[$j++] = $_.barcode; //#24021 + $k[$j++] = $_.fncvals; //#24021 + bwipp_parseinput(); //#24021 + var _V = $k[--$j]; //#24021 + $_[$k[--$j]] = _V; //#24021 + $_.msglen = $_.msg.length; //#24022 $_.tobin = function() { - var _Z = $s($k[--$j]); //#23726 - $k[$j++] = _Z; //#23726 - for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#23726 - var _c = $k[--$j]; //#23726 - $put(_c, _b, 48); //#23726 - $k[$j++] = _c; //#23726 - } //#23726 - var _d = $k[--$j]; //#23727 - var _g = $cvrs($s(_d.length), $k[--$j], 2); //#23727 - $puti(_d, _d.length - _g.length, _g); //#23728 - $k[$j++] = _d; //#23728 - }; //#23728 - $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#23732 - $puti($_.bits, 0, "0011"); //#23733 - $k[$j++] = $_.bits; //#23734 - $k[$j++] = 4; //#23734 - $k[$j++] = $_.msglen; //#23734 - $k[$j++] = 13; //#23734 - $_.tobin(); //#23734 - var _m = $k[--$j]; //#23734 - var _n = $k[--$j]; //#23734 - $puti($k[--$j], _n, _m); //#23734 - for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#23738 - $_.i = _r; //#23736 - $k[$j++] = $_.bits; //#23737 - $k[$j++] = 17 + ($_.i * 8); //#23737 - $k[$j++] = $get($_.msg, $_.i); //#23737 - $k[$j++] = 8; //#23737 - $_.tobin(); //#23737 - var _x = $k[--$j]; //#23737 - var _y = $k[--$j]; //#23737 - $puti($k[--$j], _y, _x); //#23737 - } //#23737 - if (!bwipp_hanxin.__24081__) { //#24081 - $_ = Object.create($_); //#24081 - var _24 = $a([0, -1, -1]); //#23764 - $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24080 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24080 - bwipp_hanxin.__24081__ = 1; //#24080 - $_ = Object.getPrototypeOf($_); //#24080 - } //#24080 - $_.eclval = $get($_.eclevel, 1) - 49; //#24083 - var _Ig = $_.metrics; //#24084 - for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24102 - $_.m = $get(_Ig, _Ih); //#24085 - $_.vers = $get($_.m, 0); //#24086 - $_.size = $get($_.m, 1); //#24087 - $_.alnk = $get($_.m, 2); //#24088 - $_.alnn = $get($_.m, 3); //#24089 - $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24090 - $_.nmod = $get($_.m, 4); //#24091 - $_.ncws = ~~($_.nmod / 8); //#24092 - $_.rbit = $_.nmod % 8; //#24093 - $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24094 - var _J2 = $_.ecbs; //#24095 - $k[$j++] = 'ecws'; //#24095 - $k[$j++] = 0; //#24095 - for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24095 - var _J5 = $get(_J2, _J3); //#24095 - var _J8 = $k[--$j]; //#24095 - $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24095 - } //#24095 - var _J9 = $k[--$j]; //#24095 - $_[$k[--$j]] = _J9; //#24095 - $_.dcws = $f($_.ncws - $_.ecws); //#24096 - $_.dmod = $_.dcws * 8; //#24097 - $_.okay = true; //#24098 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24099 - $_.okay = false; //#24099 - } //#24099 - if ($_.bits.length > $_.dmod) { //#24100 - $_.okay = false; //#24100 - } //#24100 - if ($_.okay) { //#24101 - break; //#24101 - } //#24101 - } //#24101 - if (!$_.okay) { //#24106 - $k[$j++] = 'bwipp.hanxinNoValidSymbol#24105'; //#24105 - $k[$j++] = "Maximum length exceeded or invalid content"; //#24105 - bwipp_raiseerror(); //#24105 - } //#24105 - $_.version = $_.vers; //#24108 - $_.msgbits = $_.bits; //#24109 - $_.e1nb = $get($get($_.ecbs, 0), 0); //#24110 - $_.e2nb = $get($get($_.ecbs, 1), 0); //#24110 - $_.e3nb = $get($get($_.ecbs, 2), 0); //#24110 - $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24111 - $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24111 - $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24111 - $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24112 - $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24112 - $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24112 - $_.pad = $s($_.dmod); //#24115 - for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24116 - $put($_.pad, _Js, 48); //#24116 - } //#24116 - $puti($_.pad, 0, $_.msgbits); //#24117 - $_.cws = $a($_.dcws); //#24120 - for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24130 - $_.c = _K0; //#24122 - $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24123 - $_.cw = 0; //#24124 - for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24128 - $_.i = _K4; //#24126 - $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24127 - } //#24127 - $put($_.cws, $_.c, $_.cw); //#24129 - } //#24129 + var _Z = $s($k[--$j]); //#24025 + $k[$j++] = _Z; //#24025 + for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#24025 + var _c = $k[--$j]; //#24025 + $put(_c, _b, 48); //#24025 + $k[$j++] = _c; //#24025 + } //#24025 + var _d = $k[--$j]; //#24026 + var _g = $cvrs($s(_d.length), $k[--$j], 2); //#24026 + $puti(_d, _d.length - _g.length, _g); //#24027 + $k[$j++] = _d; //#24027 + }; //#24027 + $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#24031 + $puti($_.bits, 0, "0011"); //#24032 + $k[$j++] = $_.bits; //#24033 + $k[$j++] = 4; //#24033 + $k[$j++] = $_.msglen; //#24033 + $k[$j++] = 13; //#24033 + $_.tobin(); //#24033 + var _m = $k[--$j]; //#24033 + var _n = $k[--$j]; //#24033 + $puti($k[--$j], _n, _m); //#24033 + for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#24037 + $_.i = _r; //#24035 + $k[$j++] = $_.bits; //#24036 + $k[$j++] = 17 + ($_.i * 8); //#24036 + $k[$j++] = $get($_.msg, $_.i); //#24036 + $k[$j++] = 8; //#24036 + $_.tobin(); //#24036 + var _x = $k[--$j]; //#24036 + var _y = $k[--$j]; //#24036 + $puti($k[--$j], _y, _x); //#24036 + } //#24036 + if (!bwipp_hanxin.__24380__) { //#24380 + $_ = Object.create($_); //#24380 + var _24 = $a([0, -1, -1]); //#24063 + $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24379 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24379 + bwipp_hanxin.__24380__ = 1; //#24379 + $_ = Object.getPrototypeOf($_); //#24379 + } //#24379 + $_.eclval = $get($_.eclevel, 1) - 49; //#24382 + var _Ig = $_.metrics; //#24383 + for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24401 + $_.m = $get(_Ig, _Ih); //#24384 + $_.vers = $get($_.m, 0); //#24385 + $_.size = $get($_.m, 1); //#24386 + $_.alnk = $get($_.m, 2); //#24387 + $_.alnn = $get($_.m, 3); //#24388 + $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24389 + $_.nmod = $get($_.m, 4); //#24390 + $_.ncws = ~~($_.nmod / 8); //#24391 + $_.rbit = $_.nmod % 8; //#24392 + $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24393 + var _J2 = $_.ecbs; //#24394 + $k[$j++] = 'ecws'; //#24394 + $k[$j++] = 0; //#24394 + for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24394 + var _J5 = $get(_J2, _J3); //#24394 + var _J8 = $k[--$j]; //#24394 + $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24394 + } //#24394 + var _J9 = $k[--$j]; //#24394 + $_[$k[--$j]] = _J9; //#24394 + $_.dcws = $f($_.ncws - $_.ecws); //#24395 + $_.dmod = $_.dcws * 8; //#24396 + $_.okay = true; //#24397 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24398 + $_.okay = false; //#24398 + } //#24398 + if ($_.bits.length > $_.dmod) { //#24399 + $_.okay = false; //#24399 + } //#24399 + if ($_.okay) { //#24400 + break; //#24400 + } //#24400 + } //#24400 + if (!$_.okay) { //#24405 + $k[$j++] = 'bwipp.hanxinNoValidSymbol#24404'; //#24404 + $k[$j++] = "Maximum length exceeded or invalid content"; //#24404 + bwipp_raiseerror(); //#24404 + } //#24404 + $_.version = $_.vers; //#24407 + $_.msgbits = $_.bits; //#24408 + $_.e1nb = $get($get($_.ecbs, 0), 0); //#24409 + $_.e2nb = $get($get($_.ecbs, 1), 0); //#24409 + $_.e3nb = $get($get($_.ecbs, 2), 0); //#24409 + $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24410 + $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24410 + $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24410 + $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24411 + $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24411 + $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24411 + $_.pad = $s($_.dmod); //#24414 + for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24415 + $put($_.pad, _Js, 48); //#24415 + } //#24415 + $puti($_.pad, 0, $_.msgbits); //#24416 + $_.cws = $a($_.dcws); //#24419 + for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24429 + $_.c = _K0; //#24421 + $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24422 + $_.cw = 0; //#24423 + for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24427 + $_.i = _K4; //#24425 + $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24426 + } //#24426 + $put($_.cws, $_.c, $_.cw); //#24428 + } //#24428 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#24134 - $_.rsgf = $k[--$j]; //#24135 - $_.rsnc = $k[--$j]; //#24136 - $_.rscws = $k[--$j]; //#24137 - $k[$j++] = Infinity; //#24140 - $k[$j++] = 1; //#24140 - for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24140 - var _KK = $k[--$j]; //#24140 - var _KL = _KK * 2; //#24140 - $k[$j++] = _KK; //#24140 - $k[$j++] = _KL; //#24140 - if (_KL >= $_.rsgf) { //#24140 - var _KO = $k[--$j]; //#24140 - $k[$j++] = $xo(_KO, $_.rspm); //#24140 - } //#24140 - } //#24140 - $_.rsalog = $a(); //#24140 - $_.rslog = $a($_.rsgf); //#24141 - for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24142 - $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24142 - } //#24142 + $_.rspm = $k[--$j]; //#24433 + $_.rsgf = $k[--$j]; //#24434 + $_.rsnc = $k[--$j]; //#24435 + $_.rscws = $k[--$j]; //#24436 + $k[$j++] = Infinity; //#24439 + $k[$j++] = 1; //#24439 + for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24439 + var _KK = $k[--$j]; //#24439 + var _KL = _KK * 2; //#24439 + $k[$j++] = _KK; //#24439 + $k[$j++] = _KL; //#24439 + if (_KL >= $_.rsgf) { //#24439 + var _KO = $k[--$j]; //#24439 + $k[$j++] = $xo(_KO, $_.rspm); //#24439 + } //#24439 + } //#24439 + $_.rsalog = $a(); //#24439 + $_.rslog = $a($_.rsgf); //#24440 + for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24441 + $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24441 + } //#24441 $_.rsprod = function() { - var _KY = $k[--$j]; //#24146 - var _KZ = $k[--$j]; //#24146 - $k[$j++] = _KZ; //#24150 - $k[$j++] = _KY; //#24150 - if ((_KY != 0) && (_KZ != 0)) { //#24149 - var _Kc = $get($_.rslog, $k[--$j]); //#24147 - var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24147 - $k[$j++] = _Ki; //#24147 - } else { //#24149 - $j -= 2; //#24149 - $k[$j++] = 0; //#24149 - } //#24149 - }; //#24149 - $k[$j++] = Infinity; //#24154 - $k[$j++] = 1; //#24154 - for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24154 - $k[$j++] = 0; //#24154 - } //#24154 - $_.coeffs = $a(); //#24154 - for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24163 - $_.i = _Kp; //#24156 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24157 - for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24161 - $_.j = _Kw; //#24159 - $k[$j++] = $_.coeffs; //#24160 - $k[$j++] = $_.j; //#24160 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#24160 - $k[$j++] = $get($_.coeffs, $_.j); //#24160 - $k[$j++] = $get($_.rsalog, $_.i); //#24160 - $_.rsprod(); //#24160 - var _L8 = $k[--$j]; //#24160 - var _L9 = $k[--$j]; //#24160 - var _LA = $k[--$j]; //#24160 - $put($k[--$j], _LA, $xo(_L9, _L8)); //#24160 - } //#24160 - $k[$j++] = $_.coeffs; //#24162 - $k[$j++] = 0; //#24162 - $k[$j++] = $get($_.coeffs, 0); //#24162 - $k[$j++] = $get($_.rsalog, $_.i); //#24162 - $_.rsprod(); //#24162 - var _LI = $k[--$j]; //#24162 - var _LJ = $k[--$j]; //#24162 - $put($k[--$j], _LJ, _LI); //#24162 - } //#24162 - $_.nd = $_.rscws.length; //#24166 - $k[$j++] = Infinity; //#24167 - $forall($_.rscws); //#24167 - for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24167 - $k[$j++] = 0; //#24167 - } //#24167 - $k[$j++] = 0; //#24167 - $_.rscws = $a(); //#24167 - for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24174 - $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24169 - for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24173 - $_.j = _Lb; //#24171 - $k[$j++] = $_.rscws; //#24172 - $k[$j++] = $_.nd + $_.j; //#24172 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24172 - $k[$j++] = $_.k; //#24172 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24172 - $_.rsprod(); //#24172 - var _Lo = $k[--$j]; //#24172 - var _Lp = $k[--$j]; //#24172 - var _Lq = $k[--$j]; //#24172 - $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24172 - } //#24172 - } //#24172 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24177 - }; //#24177 - $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24182 - $_.ecwsb = $a($_.dcwsb.length); //#24183 - $_.in = 0; //#24184 - $_.out = 0; //#24184 - for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24190 - $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24186 - $k[$j++] = $_.e1ecws; //#24186 - $k[$j++] = 256; //#24186 - $k[$j++] = 355; //#24186 - $_.rscodes(); //#24186 - var _M9 = $k[--$j]; //#24187 - $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24187 - $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24188 - $_.in = $f($_.in + $_.e1dcws); //#24189 - $_.out = $_.out + 1; //#24189 - } //#24189 - for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24196 - $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24192 - $k[$j++] = $_.e2ecws; //#24192 - $k[$j++] = 256; //#24192 - $k[$j++] = 355; //#24192 - $_.rscodes(); //#24192 - var _MU = $k[--$j]; //#24193 - $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24193 - $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24194 - $_.in = $f($_.in + $_.e2dcws); //#24195 - $_.out = $_.out + 1; //#24195 - } //#24195 - for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24202 - $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24198 - $k[$j++] = $_.e3ecws; //#24198 - $k[$j++] = 256; //#24198 - $k[$j++] = 355; //#24198 - $_.rscodes(); //#24198 - var _Mp = $k[--$j]; //#24199 - $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24199 - $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24200 - $_.in = $f($_.in + $_.e3dcws); //#24201 - $_.out = $_.out + 1; //#24201 - } //#24201 - $_.cws = $a($_.ncws); //#24205 - $_.cw = 0; //#24206 - for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24211 - $_.i = _N6; //#24208 - var _N9 = $get($_.dcwsb, $_.i); //#24209 - $puti($_.cws, $_.cw, _N9); //#24209 - $_.cw = _N9.length + $_.cw; //#24209 - var _NF = $get($_.ecwsb, $_.i); //#24210 - $puti($_.cws, $_.cw, _NF); //#24210 - $_.cw = _NF.length + $_.cw; //#24210 - } //#24210 - $k[$j++] = Infinity; //#24216 - var _NJ = $_.ncws; //#24215 - var _NK = 12; //#24215 - var _NL = _NJ - 1; //#24215 - if ((_NJ - 1) > 12) { //#24215 - var _ = _NK; //#24215 - _NK = _NL; //#24215 - _NL = _; //#24215 - } //#24215 - for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24217 - for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24216 - $k[$j++] = _NQ; //#24216 - if (_NQ < $_.ncws) { //#24216 - var _NU = $get($_.cws, $k[--$j]); //#24216 - $k[$j++] = _NU; //#24216 - } else { //#24216 - $j--; //#24216 - } //#24216 - } //#24216 - } //#24216 - $_.cws = $a(); //#24216 - if ($_.rbit > 0) { //#24226 - $_.pad = $a($_.cws.length + 1); //#24222 - $puti($_.pad, 0, $_.cws); //#24223 - $put($_.pad, $_.pad.length - 1, 0); //#24224 - $_.cws = $_.pad; //#24225 - } //#24225 - $k[$j++] = Infinity; //#24229 - for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24229 - $k[$j++] = -1; //#24229 - } //#24229 - $_.pixs = $a(); //#24229 + var _KY = $k[--$j]; //#24445 + var _KZ = $k[--$j]; //#24445 + $k[$j++] = _KZ; //#24449 + $k[$j++] = _KY; //#24449 + if ((_KY != 0) && (_KZ != 0)) { //#24448 + var _Kc = $get($_.rslog, $k[--$j]); //#24446 + var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24446 + $k[$j++] = _Ki; //#24446 + } else { //#24448 + $j -= 2; //#24448 + $k[$j++] = 0; //#24448 + } //#24448 + }; //#24448 + $k[$j++] = Infinity; //#24453 + $k[$j++] = 1; //#24453 + for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24453 + $k[$j++] = 0; //#24453 + } //#24453 + $_.coeffs = $a(); //#24453 + for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24462 + $_.i = _Kp; //#24455 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24456 + for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24460 + $_.j = _Kw; //#24458 + $k[$j++] = $_.coeffs; //#24459 + $k[$j++] = $_.j; //#24459 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#24459 + $k[$j++] = $get($_.coeffs, $_.j); //#24459 + $k[$j++] = $get($_.rsalog, $_.i); //#24459 + $_.rsprod(); //#24459 + var _L8 = $k[--$j]; //#24459 + var _L9 = $k[--$j]; //#24459 + var _LA = $k[--$j]; //#24459 + $put($k[--$j], _LA, $xo(_L9, _L8)); //#24459 + } //#24459 + $k[$j++] = $_.coeffs; //#24461 + $k[$j++] = 0; //#24461 + $k[$j++] = $get($_.coeffs, 0); //#24461 + $k[$j++] = $get($_.rsalog, $_.i); //#24461 + $_.rsprod(); //#24461 + var _LI = $k[--$j]; //#24461 + var _LJ = $k[--$j]; //#24461 + $put($k[--$j], _LJ, _LI); //#24461 + } //#24461 + $_.nd = $_.rscws.length; //#24465 + $k[$j++] = Infinity; //#24466 + $forall($_.rscws); //#24466 + for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24466 + $k[$j++] = 0; //#24466 + } //#24466 + $k[$j++] = 0; //#24466 + $_.rscws = $a(); //#24466 + for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24473 + $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24468 + for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24472 + $_.j = _Lb; //#24470 + $k[$j++] = $_.rscws; //#24471 + $k[$j++] = $_.nd + $_.j; //#24471 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24471 + $k[$j++] = $_.k; //#24471 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24471 + $_.rsprod(); //#24471 + var _Lo = $k[--$j]; //#24471 + var _Lp = $k[--$j]; //#24471 + var _Lq = $k[--$j]; //#24471 + $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24471 + } //#24471 + } //#24471 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24476 + }; //#24476 + $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24481 + $_.ecwsb = $a($_.dcwsb.length); //#24482 + $_.in = 0; //#24483 + $_.out = 0; //#24483 + for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24489 + $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24485 + $k[$j++] = $_.e1ecws; //#24485 + $k[$j++] = 256; //#24485 + $k[$j++] = 355; //#24485 + $_.rscodes(); //#24485 + var _M9 = $k[--$j]; //#24486 + $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24486 + $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24487 + $_.in = $f($_.in + $_.e1dcws); //#24488 + $_.out = $_.out + 1; //#24488 + } //#24488 + for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24495 + $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24491 + $k[$j++] = $_.e2ecws; //#24491 + $k[$j++] = 256; //#24491 + $k[$j++] = 355; //#24491 + $_.rscodes(); //#24491 + var _MU = $k[--$j]; //#24492 + $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24492 + $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24493 + $_.in = $f($_.in + $_.e2dcws); //#24494 + $_.out = $_.out + 1; //#24494 + } //#24494 + for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24501 + $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24497 + $k[$j++] = $_.e3ecws; //#24497 + $k[$j++] = 256; //#24497 + $k[$j++] = 355; //#24497 + $_.rscodes(); //#24497 + var _Mp = $k[--$j]; //#24498 + $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24498 + $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24499 + $_.in = $f($_.in + $_.e3dcws); //#24500 + $_.out = $_.out + 1; //#24500 + } //#24500 + $_.cws = $a($_.ncws); //#24504 + $_.cw = 0; //#24505 + for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24510 + $_.i = _N6; //#24507 + var _N9 = $get($_.dcwsb, $_.i); //#24508 + $puti($_.cws, $_.cw, _N9); //#24508 + $_.cw = _N9.length + $_.cw; //#24508 + var _NF = $get($_.ecwsb, $_.i); //#24509 + $puti($_.cws, $_.cw, _NF); //#24509 + $_.cw = _NF.length + $_.cw; //#24509 + } //#24509 + $k[$j++] = Infinity; //#24513 + var _NJ = $_.ncws; //#24514 + var _NK = 12; //#24514 + var _NL = _NJ - 1; //#24514 + if ((_NJ - 1) > 12) { //#24514 + var _ = _NK; //#24514 + _NK = _NL; //#24514 + _NL = _; //#24514 + } //#24514 + for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24516 + for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24515 + $k[$j++] = _NQ; //#24515 + if (_NQ < $_.ncws) { //#24515 + var _NU = $get($_.cws, $k[--$j]); //#24515 + $k[$j++] = _NU; //#24515 + } else { //#24515 + $j--; //#24515 + } //#24515 + } //#24515 + } //#24515 + $_.cws = $a(); //#24515 + if ($_.rbit > 0) { //#24525 + $_.pad = $a($_.cws.length + 1); //#24521 + $puti($_.pad, 0, $_.cws); //#24522 + $put($_.pad, $_.pad.length - 1, 0); //#24523 + $_.cws = $_.pad; //#24524 + } //#24524 + $k[$j++] = Infinity; //#24528 + for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24528 + $k[$j++] = -1; //#24528 + } //#24528 + $_.pixs = $a(); //#24528 $_.qmv = function() { - var _Nk = $k[--$j]; //#24230 - var _Nl = $k[--$j]; //#24230 - $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24230 - }; //#24230 - if ($_.alnn != 0) { //#24289 + var _Nk = $k[--$j]; //#24529 + var _Nl = $k[--$j]; //#24529 + $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24529 + }; //#24529 + if ($_.alnn != 0) { //#24588 $_.trmv = function() { - var _No = $k[--$j]; //#24234 - var _Nq = $k[--$j]; //#24234 - $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24234 - }; //#24234 + var _No = $k[--$j]; //#24533 + var _Nq = $k[--$j]; //#24533 + $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24533 + }; //#24533 $_.aplot = function() { - var _Nr = $k[--$j]; //#24236 - var _Ns = $k[--$j]; //#24236 - var _Nt = $k[--$j]; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Nt; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nt; //#24236 - $_.trmv(); //#24236 - var _Nv = $k[--$j]; //#24236 - $put($_.pixs, _Nv, $k[--$j]); //#24236 - $_.trmv(); //#24237 - var _Ny = $k[--$j]; //#24237 - $put($_.pixs, _Ny, $k[--$j]); //#24237 - }; //#24237 - $_.i = 0; //#24239 - $_.stag = 0; //#24239 - for (;;) { //#24261 - if ($_.i >= $_.size) { //#24240 - break; //#24240 - } //#24240 - for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24254 - $_.j = _O4; //#24242 - if ($f($_.j + $_.alnr) < $_.size) { //#24248 - $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24246 - } else { //#24248 - $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24248 - } //#24248 - if ($k[--$j]) { //#24253 - $k[$j++] = $_.j; //#24251 - $k[$j++] = $_.i; //#24251 - $k[$j++] = 1; //#24251 - $_.aplot(); //#24251 - var _OL = $_.j; //#24252 - var _OM = $_.i; //#24252 - $k[$j++] = _OL + 1; //#24252 - $k[$j++] = _OM + 1; //#24252 - if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24252 - $k[$j++] = 0; //#24252 - $_.aplot(); //#24252 - } else { //#24252 - $j -= 2; //#24252 - } //#24252 - } //#24252 - } //#24252 - if ($f($_.i + $_.alnr) == $_.size) { //#24258 - $_.i = $f($f($_.i + $_.alnr) - 1); //#24256 - } else { //#24258 - $_.i = $f($_.i + $_.alnk); //#24258 - } //#24258 - $_.stag = 1 - $_.stag; //#24260 - } //#24260 - for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24288 - $_.i = _Ob; //#24263 - if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24275 - $k[$j++] = $_.pixs; //#24265 - $k[$j++] = 0; //#24265 - $k[$j++] = $_.i - 1; //#24265 - $_.trmv(); //#24265 - var _Oh = $k[--$j]; //#24265 - $put($k[--$j], _Oh, 0); //#24265 - $k[$j++] = $_.pixs; //#24266 - $k[$j++] = 0; //#24266 - $k[$j++] = $_.i + 1; //#24266 - $_.trmv(); //#24266 - var _Ol = $k[--$j]; //#24266 - $put($k[--$j], _Ol, 0); //#24266 - $k[$j++] = $_.pixs; //#24267 - $k[$j++] = 1; //#24267 - $k[$j++] = $_.i - 1; //#24267 - $_.trmv(); //#24267 - var _Op = $k[--$j]; //#24267 - $put($k[--$j], _Op, 0); //#24267 - $k[$j++] = $_.pixs; //#24268 - $k[$j++] = 1; //#24268 - $k[$j++] = $_.i; //#24268 - $_.trmv(); //#24268 - var _Ot = $k[--$j]; //#24268 - $put($k[--$j], _Ot, 0); //#24268 - $k[$j++] = $_.pixs; //#24269 - $k[$j++] = 1; //#24269 - $k[$j++] = $_.i + 1; //#24269 - $_.trmv(); //#24269 - var _Ox = $k[--$j]; //#24269 - $put($k[--$j], _Ox, 0); //#24269 - $k[$j++] = $_.pixs; //#24270 - $k[$j++] = $_.i - 1; //#24270 - $k[$j++] = 0; //#24270 - $_.trmv(); //#24270 - var _P1 = $k[--$j]; //#24270 - $put($k[--$j], _P1, 0); //#24270 - $k[$j++] = $_.pixs; //#24271 - $k[$j++] = $_.i + 1; //#24271 - $k[$j++] = 0; //#24271 - $_.trmv(); //#24271 - var _P5 = $k[--$j]; //#24271 - $put($k[--$j], _P5, 0); //#24271 - $k[$j++] = $_.pixs; //#24272 - $k[$j++] = $_.i - 1; //#24272 - $k[$j++] = 1; //#24272 - $_.trmv(); //#24272 - var _P9 = $k[--$j]; //#24272 - $put($k[--$j], _P9, 0); //#24272 - $k[$j++] = $_.pixs; //#24273 - $k[$j++] = $_.i; //#24273 - $k[$j++] = 1; //#24273 - $_.trmv(); //#24273 - var _PD = $k[--$j]; //#24273 - $put($k[--$j], _PD, 0); //#24273 - $k[$j++] = $_.pixs; //#24274 - $k[$j++] = $_.i + 1; //#24274 - $k[$j++] = 1; //#24274 - $_.trmv(); //#24274 - var _PH = $k[--$j]; //#24274 - $put($k[--$j], _PH, 0); //#24274 - } //#24274 - $k[$j++] = $_.pixs; //#24276 - $k[$j++] = $f($_.size - 1); //#24276 - $k[$j++] = $_.i - 1; //#24276 - $_.trmv(); //#24276 - var _PM = $k[--$j]; //#24276 - if ($get($k[--$j], _PM) != 1) { //#24287 - $k[$j++] = $_.pixs; //#24277 - $k[$j++] = $f($_.size - 1); //#24277 - $k[$j++] = $_.i - 1; //#24277 - $_.trmv(); //#24277 - var _PS = $k[--$j]; //#24277 - $put($k[--$j], _PS, 0); //#24277 - $k[$j++] = $_.pixs; //#24278 - $k[$j++] = $f($_.size - 2); //#24278 - $k[$j++] = $_.i - 1; //#24278 - $_.trmv(); //#24278 - var _PX = $k[--$j]; //#24278 - $put($k[--$j], _PX, 0); //#24278 - $k[$j++] = $_.pixs; //#24279 - $k[$j++] = $f($_.size - 2); //#24279 - $k[$j++] = $_.i; //#24279 - $_.trmv(); //#24279 - var _Pc = $k[--$j]; //#24279 - $put($k[--$j], _Pc, 0); //#24279 - $k[$j++] = $_.pixs; //#24280 - $k[$j++] = $f($_.size - 2); //#24280 - $k[$j++] = $_.i + 1; //#24280 - $_.trmv(); //#24280 - var _Ph = $k[--$j]; //#24280 - $put($k[--$j], _Ph, 0); //#24280 - $k[$j++] = $_.pixs; //#24281 - $k[$j++] = $f($_.size - 1); //#24281 - $k[$j++] = $_.i + 1; //#24281 - $_.trmv(); //#24281 - var _Pm = $k[--$j]; //#24281 - $put($k[--$j], _Pm, 0); //#24281 - $k[$j++] = $_.pixs; //#24282 - $k[$j++] = $_.i - 1; //#24282 - $k[$j++] = $f($_.size - 1); //#24282 - $_.trmv(); //#24282 - var _Pr = $k[--$j]; //#24282 - $put($k[--$j], _Pr, 0); //#24282 - $k[$j++] = $_.pixs; //#24283 - $k[$j++] = $_.i - 1; //#24283 - $k[$j++] = $f($_.size - 2); //#24283 - $_.trmv(); //#24283 - var _Pw = $k[--$j]; //#24283 - $put($k[--$j], _Pw, 0); //#24283 - $k[$j++] = $_.pixs; //#24284 - $k[$j++] = $_.i; //#24284 - $k[$j++] = $f($_.size - 2); //#24284 - $_.trmv(); //#24284 - var _Q1 = $k[--$j]; //#24284 - $put($k[--$j], _Q1, 0); //#24284 - $k[$j++] = $_.pixs; //#24285 - $k[$j++] = $_.i + 1; //#24285 - $k[$j++] = $f($_.size - 2); //#24285 - $_.trmv(); //#24285 - var _Q6 = $k[--$j]; //#24285 - $put($k[--$j], _Q6, 0); //#24285 - $k[$j++] = $_.pixs; //#24286 - $k[$j++] = $_.i + 1; //#24286 - $k[$j++] = $f($_.size - 1); //#24286 - $_.trmv(); //#24286 - var _QB = $k[--$j]; //#24286 - $put($k[--$j], _QB, 0); //#24286 - } //#24286 - } //#24286 - } //#24286 - if (!bwipp_hanxin.__24313__) { //#24313 - $_ = Object.create($_); //#24313 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24302 - $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24312 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24312 - bwipp_hanxin.__24313__ = 1; //#24312 - $_ = Object.getPrototypeOf($_); //#24312 - } //#24312 - for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24325 - $_.y = _QY; //#24315 - for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24324 - $_.x = _Qc; //#24317 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24318 - $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24319 - $k[$j++] = $_.pixs; //#24320 - $k[$j++] = $_.x; //#24320 - $k[$j++] = $_.y; //#24320 - $_.qmv(); //#24320 - var _Qr = $k[--$j]; //#24320 - $put($k[--$j], _Qr, $_.fpb); //#24320 - $k[$j++] = $_.pixs; //#24321 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24321 - $k[$j++] = $_.y; //#24321 - $_.qmv(); //#24321 - var _Qy = $k[--$j]; //#24321 - $put($k[--$j], _Qy, $_.fpb); //#24321 - $k[$j++] = $_.pixs; //#24322 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24322 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24322 - $_.qmv(); //#24322 - var _R6 = $k[--$j]; //#24322 - $put($k[--$j], _R6, $_.fpb); //#24322 - $k[$j++] = $_.pixs; //#24323 - $k[$j++] = $_.x; //#24323 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24323 - $_.qmv(); //#24323 - var _RD = $k[--$j]; //#24323 - $put($k[--$j], _RD, $_.fpb2); //#24323 - } //#24323 - } //#24323 - $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24347 - var _U0 = $_.functionmap; //#24348 - for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24350 - $forall($get(_U0, _U1), function() { //#24349 - $forall($k[--$j]); //#24349 - $_.qmv(); //#24349 - $put($_.pixs, $k[--$j], 0); //#24349 - }); //#24349 - } //#24349 + var _Nr = $k[--$j]; //#24535 + var _Ns = $k[--$j]; //#24535 + var _Nt = $k[--$j]; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Nt; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nt; //#24535 + $_.trmv(); //#24535 + var _Nv = $k[--$j]; //#24535 + $put($_.pixs, _Nv, $k[--$j]); //#24535 + $_.trmv(); //#24536 + var _Ny = $k[--$j]; //#24536 + $put($_.pixs, _Ny, $k[--$j]); //#24536 + }; //#24536 + $_.i = 0; //#24538 + $_.stag = 0; //#24538 + for (;;) { //#24560 + if ($_.i >= $_.size) { //#24539 + break; //#24539 + } //#24539 + for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24553 + $_.j = _O4; //#24541 + if ($f($_.j + $_.alnr) < $_.size) { //#24547 + $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24545 + } else { //#24547 + $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24547 + } //#24547 + if ($k[--$j]) { //#24552 + $k[$j++] = $_.j; //#24550 + $k[$j++] = $_.i; //#24550 + $k[$j++] = 1; //#24550 + $_.aplot(); //#24550 + var _OL = $_.j; //#24551 + var _OM = $_.i; //#24551 + $k[$j++] = _OL + 1; //#24551 + $k[$j++] = _OM + 1; //#24551 + if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24551 + $k[$j++] = 0; //#24551 + $_.aplot(); //#24551 + } else { //#24551 + $j -= 2; //#24551 + } //#24551 + } //#24551 + } //#24551 + if ($f($_.i + $_.alnr) == $_.size) { //#24557 + $_.i = $f($f($_.i + $_.alnr) - 1); //#24555 + } else { //#24557 + $_.i = $f($_.i + $_.alnk); //#24557 + } //#24557 + $_.stag = 1 - $_.stag; //#24559 + } //#24559 + for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24587 + $_.i = _Ob; //#24562 + if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24574 + $k[$j++] = $_.pixs; //#24564 + $k[$j++] = 0; //#24564 + $k[$j++] = $_.i - 1; //#24564 + $_.trmv(); //#24564 + var _Oh = $k[--$j]; //#24564 + $put($k[--$j], _Oh, 0); //#24564 + $k[$j++] = $_.pixs; //#24565 + $k[$j++] = 0; //#24565 + $k[$j++] = $_.i + 1; //#24565 + $_.trmv(); //#24565 + var _Ol = $k[--$j]; //#24565 + $put($k[--$j], _Ol, 0); //#24565 + $k[$j++] = $_.pixs; //#24566 + $k[$j++] = 1; //#24566 + $k[$j++] = $_.i - 1; //#24566 + $_.trmv(); //#24566 + var _Op = $k[--$j]; //#24566 + $put($k[--$j], _Op, 0); //#24566 + $k[$j++] = $_.pixs; //#24567 + $k[$j++] = 1; //#24567 + $k[$j++] = $_.i; //#24567 + $_.trmv(); //#24567 + var _Ot = $k[--$j]; //#24567 + $put($k[--$j], _Ot, 0); //#24567 + $k[$j++] = $_.pixs; //#24568 + $k[$j++] = 1; //#24568 + $k[$j++] = $_.i + 1; //#24568 + $_.trmv(); //#24568 + var _Ox = $k[--$j]; //#24568 + $put($k[--$j], _Ox, 0); //#24568 + $k[$j++] = $_.pixs; //#24569 + $k[$j++] = $_.i - 1; //#24569 + $k[$j++] = 0; //#24569 + $_.trmv(); //#24569 + var _P1 = $k[--$j]; //#24569 + $put($k[--$j], _P1, 0); //#24569 + $k[$j++] = $_.pixs; //#24570 + $k[$j++] = $_.i + 1; //#24570 + $k[$j++] = 0; //#24570 + $_.trmv(); //#24570 + var _P5 = $k[--$j]; //#24570 + $put($k[--$j], _P5, 0); //#24570 + $k[$j++] = $_.pixs; //#24571 + $k[$j++] = $_.i - 1; //#24571 + $k[$j++] = 1; //#24571 + $_.trmv(); //#24571 + var _P9 = $k[--$j]; //#24571 + $put($k[--$j], _P9, 0); //#24571 + $k[$j++] = $_.pixs; //#24572 + $k[$j++] = $_.i; //#24572 + $k[$j++] = 1; //#24572 + $_.trmv(); //#24572 + var _PD = $k[--$j]; //#24572 + $put($k[--$j], _PD, 0); //#24572 + $k[$j++] = $_.pixs; //#24573 + $k[$j++] = $_.i + 1; //#24573 + $k[$j++] = 1; //#24573 + $_.trmv(); //#24573 + var _PH = $k[--$j]; //#24573 + $put($k[--$j], _PH, 0); //#24573 + } //#24573 + $k[$j++] = $_.pixs; //#24575 + $k[$j++] = $f($_.size - 1); //#24575 + $k[$j++] = $_.i - 1; //#24575 + $_.trmv(); //#24575 + var _PM = $k[--$j]; //#24575 + if ($get($k[--$j], _PM) != 1) { //#24586 + $k[$j++] = $_.pixs; //#24576 + $k[$j++] = $f($_.size - 1); //#24576 + $k[$j++] = $_.i - 1; //#24576 + $_.trmv(); //#24576 + var _PS = $k[--$j]; //#24576 + $put($k[--$j], _PS, 0); //#24576 + $k[$j++] = $_.pixs; //#24577 + $k[$j++] = $f($_.size - 2); //#24577 + $k[$j++] = $_.i - 1; //#24577 + $_.trmv(); //#24577 + var _PX = $k[--$j]; //#24577 + $put($k[--$j], _PX, 0); //#24577 + $k[$j++] = $_.pixs; //#24578 + $k[$j++] = $f($_.size - 2); //#24578 + $k[$j++] = $_.i; //#24578 + $_.trmv(); //#24578 + var _Pc = $k[--$j]; //#24578 + $put($k[--$j], _Pc, 0); //#24578 + $k[$j++] = $_.pixs; //#24579 + $k[$j++] = $f($_.size - 2); //#24579 + $k[$j++] = $_.i + 1; //#24579 + $_.trmv(); //#24579 + var _Ph = $k[--$j]; //#24579 + $put($k[--$j], _Ph, 0); //#24579 + $k[$j++] = $_.pixs; //#24580 + $k[$j++] = $f($_.size - 1); //#24580 + $k[$j++] = $_.i + 1; //#24580 + $_.trmv(); //#24580 + var _Pm = $k[--$j]; //#24580 + $put($k[--$j], _Pm, 0); //#24580 + $k[$j++] = $_.pixs; //#24581 + $k[$j++] = $_.i - 1; //#24581 + $k[$j++] = $f($_.size - 1); //#24581 + $_.trmv(); //#24581 + var _Pr = $k[--$j]; //#24581 + $put($k[--$j], _Pr, 0); //#24581 + $k[$j++] = $_.pixs; //#24582 + $k[$j++] = $_.i - 1; //#24582 + $k[$j++] = $f($_.size - 2); //#24582 + $_.trmv(); //#24582 + var _Pw = $k[--$j]; //#24582 + $put($k[--$j], _Pw, 0); //#24582 + $k[$j++] = $_.pixs; //#24583 + $k[$j++] = $_.i; //#24583 + $k[$j++] = $f($_.size - 2); //#24583 + $_.trmv(); //#24583 + var _Q1 = $k[--$j]; //#24583 + $put($k[--$j], _Q1, 0); //#24583 + $k[$j++] = $_.pixs; //#24584 + $k[$j++] = $_.i + 1; //#24584 + $k[$j++] = $f($_.size - 2); //#24584 + $_.trmv(); //#24584 + var _Q6 = $k[--$j]; //#24584 + $put($k[--$j], _Q6, 0); //#24584 + $k[$j++] = $_.pixs; //#24585 + $k[$j++] = $_.i + 1; //#24585 + $k[$j++] = $f($_.size - 1); //#24585 + $_.trmv(); //#24585 + var _QB = $k[--$j]; //#24585 + $put($k[--$j], _QB, 0); //#24585 + } //#24585 + } //#24585 + } //#24585 + if (!bwipp_hanxin.__24612__) { //#24612 + $_ = Object.create($_); //#24612 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24601 + $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24611 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24611 + bwipp_hanxin.__24612__ = 1; //#24611 + $_ = Object.getPrototypeOf($_); //#24611 + } //#24611 + for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24624 + $_.y = _QY; //#24614 + for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24623 + $_.x = _Qc; //#24616 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24617 + $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24618 + $k[$j++] = $_.pixs; //#24619 + $k[$j++] = $_.x; //#24619 + $k[$j++] = $_.y; //#24619 + $_.qmv(); //#24619 + var _Qr = $k[--$j]; //#24619 + $put($k[--$j], _Qr, $_.fpb); //#24619 + $k[$j++] = $_.pixs; //#24620 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24620 + $k[$j++] = $_.y; //#24620 + $_.qmv(); //#24620 + var _Qy = $k[--$j]; //#24620 + $put($k[--$j], _Qy, $_.fpb); //#24620 + $k[$j++] = $_.pixs; //#24621 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24621 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24621 + $_.qmv(); //#24621 + var _R6 = $k[--$j]; //#24621 + $put($k[--$j], _R6, $_.fpb); //#24621 + $k[$j++] = $_.pixs; //#24622 + $k[$j++] = $_.x; //#24622 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24622 + $_.qmv(); //#24622 + var _RD = $k[--$j]; //#24622 + $put($k[--$j], _RD, $_.fpb2); //#24622 + } //#24622 + } //#24622 + $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24646 + var _U0 = $_.functionmap; //#24647 + for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24649 + $forall($get(_U0, _U1), function() { //#24648 + $forall($k[--$j]); //#24648 + $_.qmv(); //#24648 + $put($_.pixs, $k[--$j], 0); //#24648 + }); //#24648 + } //#24648 var _UD = $a([function() { - $j -= 2; //#24353 - $k[$j++] = 1; //#24353 + $j -= 2; //#24652 + $k[$j++] = 1; //#24652 }, function() { - var _U7 = $k[--$j]; //#24354 - var _U8 = $k[--$j]; //#24354 - $k[$j++] = $f(_U8 + _U7) % 2; //#24354 + var _U7 = $k[--$j]; //#24653 + var _U8 = $k[--$j]; //#24653 + $k[$j++] = $f(_U8 + _U7) % 2; //#24653 }, function() { - var _U9 = $k[--$j]; //#24355 - var _UA = $k[--$j]; //#24355 - $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24355 + var _U9 = $k[--$j]; //#24654 + var _UA = $k[--$j]; //#24654 + $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24654 }, function() { - var _UB = $k[--$j]; //#24356 - var _UC = $k[--$j]; //#24356 - $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24357 - }]); //#24357 - $_.maskfuncs = _UD; //#24358 - if ($_.mask != -1) { //#24362 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24360 - $_.bestmaskval = $_.mask - 1; //#24361 - } //#24361 - $_.masks = $a($_.maskfuncs.length); //#24363 - for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24377 - $_.m = _UO; //#24365 - $_.mask = $a($_.size * $_.size); //#24366 - for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24375 - $_.j = _UU; //#24368 - for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24374 - $_.i = _UX; //#24370 - $k[$j++] = $_.i + 1; //#24371 - $k[$j++] = $_.j + 1; //#24371 + var _UB = $k[--$j]; //#24655 + var _UC = $k[--$j]; //#24655 + $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24656 + }]); //#24656 + $_.maskfuncs = _UD; //#24657 + if ($_.mask != -1) { //#24661 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24659 + $_.bestmaskval = $_.mask - 1; //#24660 + } //#24660 + $_.masks = $a($_.maskfuncs.length); //#24662 + for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24676 + $_.m = _UO; //#24664 + $_.mask = $a($_.size * $_.size); //#24665 + for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24674 + $_.j = _UU; //#24667 + for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24673 + $_.i = _UX; //#24669 + $k[$j++] = $_.i + 1; //#24670 + $k[$j++] = $_.j + 1; //#24670 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#24371 - var _Ud = $k[--$j]; //#24371 - $k[$j++] = _Ud == 0; //#24372 - $k[$j++] = $_.pixs; //#24372 - $k[$j++] = $_.i; //#24372 - $k[$j++] = $_.j; //#24372 - $_.qmv(); //#24372 - var _Uh = $k[--$j]; //#24372 - var _Uj = $get($k[--$j], _Uh); //#24372 - var _Uk = $k[--$j]; //#24372 - var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24372 - $k[$j++] = _Ul; //#24373 - $k[$j++] = $_.mask; //#24373 - $k[$j++] = $_.i; //#24373 - $k[$j++] = $_.j; //#24373 - $_.qmv(); //#24373 - var _Up = $k[--$j]; //#24373 - var _Uq = $k[--$j]; //#24373 - $put(_Uq, _Up, $k[--$j]); //#24373 - } //#24373 - } //#24373 - $put($_.masks, $_.m, $_.mask); //#24376 - } //#24376 - $_.posx = 0; //#24380 - $_.posy = 0; //#24381 - $_.num = 0; //#24382 - for (;;) { //#24392 - if ($_.posy == $_.size) { //#24384 - break; //#24384 - } //#24384 - $k[$j++] = $_.pixs; //#24385 - $k[$j++] = $_.posx; //#24385 - $k[$j++] = $_.posy; //#24385 - $_.qmv(); //#24385 - var _V0 = $k[--$j]; //#24385 - if ($get($k[--$j], _V0) == -1) { //#24389 - var _V5 = $get($_.cws, ~~($_.num / 8)); //#24386 - var _V7 = -(7 - ($_.num % 8)); //#24386 - $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24387 - $k[$j++] = $_.pixs; //#24387 - $k[$j++] = $_.posx; //#24387 - $k[$j++] = $_.posy; //#24387 - $_.qmv(); //#24387 - var _VB = $k[--$j]; //#24387 - var _VC = $k[--$j]; //#24387 - $put(_VC, _VB, $k[--$j]); //#24387 - $_.num = $_.num + 1; //#24388 - } //#24388 - $_.posx = $_.posx + 1; //#24390 - if ($_.posx == $_.size) { //#24391 - $_.posx = 0; //#24391 - $_.posy = $_.posy + 1; //#24391 - } //#24391 - } //#24391 + } //#24670 + var _Ud = $k[--$j]; //#24670 + $k[$j++] = _Ud == 0; //#24671 + $k[$j++] = $_.pixs; //#24671 + $k[$j++] = $_.i; //#24671 + $k[$j++] = $_.j; //#24671 + $_.qmv(); //#24671 + var _Uh = $k[--$j]; //#24671 + var _Uj = $get($k[--$j], _Uh); //#24671 + var _Uk = $k[--$j]; //#24671 + var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24671 + $k[$j++] = _Ul; //#24672 + $k[$j++] = $_.mask; //#24672 + $k[$j++] = $_.i; //#24672 + $k[$j++] = $_.j; //#24672 + $_.qmv(); //#24672 + var _Up = $k[--$j]; //#24672 + var _Uq = $k[--$j]; //#24672 + $put(_Uq, _Up, $k[--$j]); //#24672 + } //#24672 + } //#24672 + $put($_.masks, $_.m, $_.mask); //#24675 + } //#24675 + $_.posx = 0; //#24679 + $_.posy = 0; //#24680 + $_.num = 0; //#24681 + for (;;) { //#24691 + if ($_.posy == $_.size) { //#24683 + break; //#24683 + } //#24683 + $k[$j++] = $_.pixs; //#24684 + $k[$j++] = $_.posx; //#24684 + $k[$j++] = $_.posy; //#24684 + $_.qmv(); //#24684 + var _V0 = $k[--$j]; //#24684 + if ($get($k[--$j], _V0) == -1) { //#24688 + var _V5 = $get($_.cws, ~~($_.num / 8)); //#24685 + var _V7 = -(7 - ($_.num % 8)); //#24685 + $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24686 + $k[$j++] = $_.pixs; //#24686 + $k[$j++] = $_.posx; //#24686 + $k[$j++] = $_.posy; //#24686 + $_.qmv(); //#24686 + var _VB = $k[--$j]; //#24686 + var _VC = $k[--$j]; //#24686 + $put(_VC, _VB, $k[--$j]); //#24686 + $_.num = $_.num + 1; //#24687 + } //#24687 + $_.posx = $_.posx + 1; //#24689 + if ($_.posx == $_.size) { //#24690 + $_.posx = 0; //#24690 + $_.posy = $_.posy + 1; //#24690 + } //#24690 + } //#24690 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#24396 - $k[$j++] = 'scr1'; //#24398 - $k[$j++] = 0; //#24398 - $forall($_.scrle, function() { //#24398 - var _VL = $k[--$j]; //#24398 - $k[$j++] = _VL; //#24398 - if (_VL >= 3) { //#24398 - var _VM = $k[--$j]; //#24398 - var _VO = $f($k[--$j] + (_VM * 4)); //#24398 - $k[$j++] = _VO; //#24398 - $k[$j++] = _VO; //#24398 - } //#24398 - $j--; //#24398 - }); //#24398 - var _VP = $k[--$j]; //#24398 - $_[$k[--$j]] = _VP; //#24398 - $_.scr3 = 0; //#24399 - for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24415 - $_.j = _VT; //#24402 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24414 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24404 - var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24405 - for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24405 - $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24405 - } //#24405 - var _Vh = $k[--$j]; //#24405 - var _Vi = $k[--$j]; //#24405 - var _Vj = $k[--$j]; //#24405 - var _Vk = $k[--$j]; //#24405 - if (_Vk && (_Vj && (_Vi && _Vh))) { //#24413 - if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24410 - $_.scr3 = $_.scr3 + 50; //#24407 - } else { //#24410 - if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24411 - $_.scr3 = $_.scr3 + 50; //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24431 - $_.j = _Vy; //#24418 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24430 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24420 - var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24421 - for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24421 - $k[$j++] = $get(_W7, _W8) == $_.fact; //#24421 - } //#24421 - var _WC = $k[--$j]; //#24421 - var _WD = $k[--$j]; //#24421 - var _WE = $k[--$j]; //#24421 - var _WF = $k[--$j]; //#24421 - if (_WF && (_WE && (_WD && _WC))) { //#24429 - if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24426 - $_.scr3 = $_.scr3 + 50; //#24423 - } else { //#24426 - if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24427 - $_.scr3 = $_.scr3 + 50; //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - $k[$j++] = $_.scr1; //#24432 - $k[$j++] = $_.scr3; //#24432 - }; //#24432 + $_.scrle = $k[--$j]; //#24695 + $k[$j++] = 'scr1'; //#24697 + $k[$j++] = 0; //#24697 + $forall($_.scrle, function() { //#24697 + var _VL = $k[--$j]; //#24697 + $k[$j++] = _VL; //#24697 + if (_VL >= 3) { //#24697 + var _VM = $k[--$j]; //#24697 + var _VO = $f($k[--$j] + (_VM * 4)); //#24697 + $k[$j++] = _VO; //#24697 + $k[$j++] = _VO; //#24697 + } //#24697 + $j--; //#24697 + }); //#24697 + var _VP = $k[--$j]; //#24697 + $_[$k[--$j]] = _VP; //#24697 + $_.scr3 = 0; //#24698 + for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24714 + $_.j = _VT; //#24701 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24713 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24703 + var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24704 + for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24704 + $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24704 + } //#24704 + var _Vh = $k[--$j]; //#24704 + var _Vi = $k[--$j]; //#24704 + var _Vj = $k[--$j]; //#24704 + var _Vk = $k[--$j]; //#24704 + if (_Vk && (_Vj && (_Vi && _Vh))) { //#24712 + if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24709 + $_.scr3 = $_.scr3 + 50; //#24706 + } else { //#24709 + if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24710 + $_.scr3 = $_.scr3 + 50; //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24730 + $_.j = _Vy; //#24717 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24729 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24719 + var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24720 + for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24720 + $k[$j++] = $get(_W7, _W8) == $_.fact; //#24720 + } //#24720 + var _WC = $k[--$j]; //#24720 + var _WD = $k[--$j]; //#24720 + var _WE = $k[--$j]; //#24720 + var _WF = $k[--$j]; //#24720 + if (_WF && (_WE && (_WD && _WC))) { //#24728 + if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24725 + $_.scr3 = $_.scr3 + 50; //#24722 + } else { //#24725 + if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24726 + $_.scr3 = $_.scr3 + 50; //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + $k[$j++] = $_.scr1; //#24731 + $k[$j++] = $_.scr3; //#24731 + }; //#24731 $_.evalfull = function() { - $_.sym = $k[--$j]; //#24437 - $_.n1 = 0; //#24439 - $_.n3 = 0; //#24439 - $_.rle = $a($f($_.size + 1)); //#24440 - $_.lastpairs = $a($_.size); //#24441 - $_.thispairs = $a($_.size); //#24442 - $_.sizeadd1 = $f($_.size + 1); //#24443 - for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24468 - $_.i = _Wd; //#24445 - $k[$j++] = Infinity; //#24448 - var _Wf = $_.size; //#24449 - $k[$j++] = 0; //#24451 - $k[$j++] = 0; //#24451 - for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24451 - var _Wk = $get($_.sym, _Wh); //#24450 - var _Wl = $k[--$j]; //#24450 - $k[$j++] = _Wk; //#24450 - if ($eq(_Wl, _Wk)) { //#24450 - var _Wm = $k[--$j]; //#24450 - var _Wn = $k[--$j]; //#24450 - $k[$j++] = $f(_Wn + 1); //#24450 - $k[$j++] = _Wm; //#24450 - } else { //#24450 - var _Wo = $k[--$j]; //#24450 - $k[$j++] = 1; //#24450 - $k[$j++] = _Wo; //#24450 - } //#24450 - } //#24450 - $j--; //#24452 - var _Wq = $counttomark() + 2; //#24453 - $astore($geti($_.rle, 0, _Wq - 2)); //#24453 - $_.evalfulln1n3(); //#24454 - $_.n3 = $f($k[--$j] + $_.n3); //#24454 - $_.n1 = $f($k[--$j] + $_.n1); //#24454 - $j--; //#24455 - $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24458 - $k[$j++] = Infinity; //#24459 - var _X1 = $_.symrow; //#24460 - $k[$j++] = 0; //#24462 - $k[$j++] = 0; //#24462 - for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24462 - var _X4 = $get(_X1, _X2); //#24462 - var _X5 = $k[--$j]; //#24461 - $k[$j++] = _X4; //#24461 - if ($eq(_X5, _X4)) { //#24461 - var _X6 = $k[--$j]; //#24461 - var _X7 = $k[--$j]; //#24461 - $k[$j++] = $f(_X7 + 1); //#24461 - $k[$j++] = _X6; //#24461 - } else { //#24461 - var _X8 = $k[--$j]; //#24461 - $k[$j++] = 1; //#24461 - $k[$j++] = _X8; //#24461 - } //#24461 - } //#24461 - $j--; //#24463 - var _XA = $counttomark() + 2; //#24464 - $astore($geti($_.rle, 0, _XA - 2)); //#24464 - $_.evalfulln1n3(); //#24465 - $_.n3 = $f($k[--$j] + $_.n3); //#24465 - $_.n1 = $f($k[--$j] + $_.n1); //#24465 - $j--; //#24466 - } //#24466 - $k[$j++] = $f($_.n1 + $_.n3); //#24470 - }; //#24470 - $_.bestscore = 999999999; //#24474 - for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24492 - $_.m = _XK; //#24476 - $_.masksym = $a($_.size * $_.size); //#24477 - for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24481 - $_.i = _XR; //#24479 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24480 - } //#24480 - if ($_.masks.length != 1) { //#24490 - $k[$j++] = $_.masksym; //#24483 - $_.evalfull(); //#24483 - $_.score = $k[--$j]; //#24483 - if ($_.score < $_.bestscore) { //#24488 - $_.bestsym = $_.masksym; //#24485 - $_.bestmaskval = $_.m; //#24486 - $_.bestscore = $_.score; //#24487 - } //#24487 - } else { //#24490 - $_.bestsym = $_.masksym; //#24490 - } //#24490 - } //#24490 - $_.pixs = $_.bestsym; //#24493 - $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24496 - $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24500 - $k[$j++] = 4; //#24500 - $k[$j++] = 16; //#24500 - $k[$j++] = 19; //#24500 - $_.rscodes(); //#24500 - $_.funvals = $k[--$j]; //#24500 - $k[$j++] = Infinity; //#24505 - $forall($_.funvals, function() { //#24504 - $k[$j++] = 4; //#24503 - $_.tobin(); //#24503 - $forall($k[--$j], function() { //#24503 - var _Xw = $k[--$j]; //#24503 - $k[$j++] = $f(_Xw - 48); //#24503 - }); //#24503 - }); //#24503 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $_.funbits = $a(); //#24505 - for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24512 - $_.i = _Y0; //#24508 - $forall($get($_.functionmap, $_.i), function() { //#24511 - var _Y5 = $k[--$j]; //#24510 - $k[$j++] = $_.pixs; //#24510 - $aload(_Y5); //#24510 - $_.qmv(); //#24510 - var _Y9 = $k[--$j]; //#24510 - $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24510 - }); //#24510 - } //#24510 + $_.sym = $k[--$j]; //#24736 + $_.n1 = 0; //#24738 + $_.n3 = 0; //#24738 + $_.rle = $a($f($_.size + 1)); //#24739 + $_.lastpairs = $a($_.size); //#24740 + $_.thispairs = $a($_.size); //#24741 + $_.sizeadd1 = $f($_.size + 1); //#24742 + for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24767 + $_.i = _Wd; //#24744 + $k[$j++] = Infinity; //#24747 + var _Wf = $_.size; //#24748 + $k[$j++] = 0; //#24750 + $k[$j++] = 0; //#24750 + for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24750 + var _Wk = $get($_.sym, _Wh); //#24749 + var _Wl = $k[--$j]; //#24749 + $k[$j++] = _Wk; //#24749 + if ($eq(_Wl, _Wk)) { //#24749 + var _Wm = $k[--$j]; //#24749 + var _Wn = $k[--$j]; //#24749 + $k[$j++] = $f(_Wn + 1); //#24749 + $k[$j++] = _Wm; //#24749 + } else { //#24749 + var _Wo = $k[--$j]; //#24749 + $k[$j++] = 1; //#24749 + $k[$j++] = _Wo; //#24749 + } //#24749 + } //#24749 + $j--; //#24751 + var _Wq = $counttomark() + 2; //#24752 + $astore($geti($_.rle, 0, _Wq - 2)); //#24752 + $_.evalfulln1n3(); //#24753 + $_.n3 = $f($k[--$j] + $_.n3); //#24753 + $_.n1 = $f($k[--$j] + $_.n1); //#24753 + $j--; //#24754 + $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24757 + $k[$j++] = Infinity; //#24758 + var _X1 = $_.symrow; //#24759 + $k[$j++] = 0; //#24761 + $k[$j++] = 0; //#24761 + for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24761 + var _X4 = $get(_X1, _X2); //#24761 + var _X5 = $k[--$j]; //#24760 + $k[$j++] = _X4; //#24760 + if ($eq(_X5, _X4)) { //#24760 + var _X6 = $k[--$j]; //#24760 + var _X7 = $k[--$j]; //#24760 + $k[$j++] = $f(_X7 + 1); //#24760 + $k[$j++] = _X6; //#24760 + } else { //#24760 + var _X8 = $k[--$j]; //#24760 + $k[$j++] = 1; //#24760 + $k[$j++] = _X8; //#24760 + } //#24760 + } //#24760 + $j--; //#24762 + var _XA = $counttomark() + 2; //#24763 + $astore($geti($_.rle, 0, _XA - 2)); //#24763 + $_.evalfulln1n3(); //#24764 + $_.n3 = $f($k[--$j] + $_.n3); //#24764 + $_.n1 = $f($k[--$j] + $_.n1); //#24764 + $j--; //#24765 + } //#24765 + $k[$j++] = $f($_.n1 + $_.n3); //#24769 + }; //#24769 + $_.bestscore = 999999999; //#24773 + for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24791 + $_.m = _XK; //#24775 + $_.masksym = $a($_.size * $_.size); //#24776 + for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24780 + $_.i = _XR; //#24778 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24779 + } //#24779 + if ($_.masks.length != 1) { //#24789 + $k[$j++] = $_.masksym; //#24782 + $_.evalfull(); //#24782 + $_.score = $k[--$j]; //#24782 + if ($_.score < $_.bestscore) { //#24787 + $_.bestsym = $_.masksym; //#24784 + $_.bestmaskval = $_.m; //#24785 + $_.bestscore = $_.score; //#24786 + } //#24786 + } else { //#24789 + $_.bestsym = $_.masksym; //#24789 + } //#24789 + } //#24789 + $_.pixs = $_.bestsym; //#24792 + $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24795 + $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24799 + $k[$j++] = 4; //#24799 + $k[$j++] = 16; //#24799 + $k[$j++] = 19; //#24799 + $_.rscodes(); //#24799 + $_.funvals = $k[--$j]; //#24799 + $k[$j++] = Infinity; //#24800 + $forall($_.funvals, function() { //#24803 + $k[$j++] = 4; //#24802 + $_.tobin(); //#24802 + $forall($k[--$j], function() { //#24802 + var _Xw = $k[--$j]; //#24802 + $k[$j++] = $f(_Xw - 48); //#24802 + }); //#24802 + }); //#24802 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $_.funbits = $a(); //#24804 + for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24811 + $_.i = _Y0; //#24807 + $forall($get($_.functionmap, $_.i), function() { //#24810 + var _Y5 = $k[--$j]; //#24809 + $k[$j++] = $_.pixs; //#24809 + $aload(_Y5); //#24809 + $_.qmv(); //#24809 + var _Y9 = $k[--$j]; //#24809 + $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24809 + }); //#24809 + } //#24809 var _YH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -30385,1586 +30842,1595 @@ function bwipp_hanxin() { ["pixy", $_.size], ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#24522 - $k[$j++] = _YH; //#24525 - if (!$_.dontdraw) { //#24525 - bwipp_renmatrix(); //#24525 - } //#24525 - $_ = Object.getPrototypeOf($_); //#24527 - $_ = Object.getPrototypeOf($_); //#24529 -} - + ]); //#24825 + $k[$j++] = _YH; //#24828 + if (!$_.dontdraw) { //#24828 + bwipp_renmatrix(); //#24828 + } //#24828 + $_ = Object.getPrototypeOf($_); //#24830 + $_ = Object.getPrototypeOf($_); //#24832 +} //bwipp_hanxin function bwipp_dotcode() { - $_ = Object.create($_); //#24560 - $_.dontdraw = false; //#24563 - $_.rows = -1; //#24564 - $_.columns = -1; //#24565 - $_.ratio = -1; //#24566 - $_.parse = false; //#24567 - $_.parsefnc = false; //#24568 - $_.raw = false; //#24569 - $_.fast = false; //#24570 - $_.mask = -1; //#24571 - $k[$j++] = $_; //#24573 - bwipp_processoptions(); //#24573 - $_.options = $k[--$j]; //#24573 - $_.barcode = $k[--$j]; //#24574 - if ($_.rows != -1) { //#24580 - if ($_.rows < 5) { //#24579 - $k[$j++] = 'bwipp.dotcodeBadRows#24578'; //#24578 - $k[$j++] = "There must be at least 5 rows"; //#24578 - bwipp_raiseerror(); //#24578 - } //#24578 - } //#24578 - if ($_.columns != -1) { //#24586 - if ($_.columns < 5) { //#24585 - $k[$j++] = 'bwipp.dotcodeBadColumns#24584'; //#24584 - $k[$j++] = "There must be at least 5 columns"; //#24584 - bwipp_raiseerror(); //#24584 - } //#24584 - } //#24584 - if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24590 - $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24589'; //#24589 - $k[$j++] = "Sum of rows and columns must be odd"; //#24589 - bwipp_raiseerror(); //#24589 - } //#24589 - if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24595 - $_.ratio = 3 / 2; //#24594 - } //#24594 - if ($_.ratio != -1) { //#24600 - if ($_.ratio <= 0) { //#24599 - $k[$j++] = 'bwipp.dotcodeRatio#24598'; //#24598 - $k[$j++] = "The ratio must be greater than 0"; //#24598 - bwipp_raiseerror(); //#24598 - } //#24598 - } //#24598 - if ($_.mask != -1) { //#24606 - if (($_.mask < 0) || ($_.mask > 3)) { //#24605 - $k[$j++] = 'bwipp.dotcodeBadMask#24604'; //#24604 - $k[$j++] = "Valid mask values are 0 to 3"; //#24604 - bwipp_raiseerror(); //#24604 - } //#24604 - } //#24604 - bwipp_loadctx(bwipp_dotcode) //#24608 - if (!bwipp_dotcode.__24621__) { //#24621 - $_ = Object.create($_); //#24621 - $_.laa = -1; //#24612 - $_.lab = -2; //#24612 - $_.lac = -3; //#24612 - $_.bin = -4; //#24612 - $_.sfa = -5; //#24613 - $_.sfb = -6; //#24613 - $_.sb2 = -7; //#24613 - $_.sb3 = -8; //#24613 - $_.sb4 = -9; //#24614 - $_.sb5 = -10; //#24614 - $_.sb6 = -11; //#24614 - $_.sfc = -12; //#24614 - $_.sc2 = -13; //#24615 - $_.sc3 = -14; //#24615 - $_.sc4 = -15; //#24615 - $_.sc5 = -16; //#24615 - $_.sc6 = -17; //#24616 - $_.sc7 = -18; //#24616 - $_.bsa = -19; //#24616 - $_.bsb = -20; //#24616 - $_.tma = -21; //#24617 - $_.tmb = -22; //#24617 - $_.tmc = -23; //#24617 - $_.tms = -24; //#24617 - $_.fn1 = -25; //#24618 - $_.fn2 = -26; //#24618 - $_.fn3 = -27; //#24618 - $_.crl = -28; //#24618 - $_.aim = -29; //#24619 - $_.m05 = -30; //#24619 - $_.m06 = -31; //#24619 - $_.m12 = -32; //#24619 - $_.mac = -33; //#24620 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24620 - bwipp_dotcode.__24621__ = 1; //#24620 - $_ = Object.getPrototypeOf($_); //#24620 - } //#24620 + $_ = Object.create($_); //#24863 + $_.dontdraw = false; //#24866 + $_.rows = -1; //#24867 + $_.columns = -1; //#24868 + $_.ratio = -1; //#24869 + $_.parse = false; //#24870 + $_.parsefnc = false; //#24871 + $_.raw = false; //#24872 + $_.fast = false; //#24873 + $_.mask = -1; //#24874 + $k[$j++] = $_; //#24876 + bwipp_processoptions(); //#24876 + $_.options = $k[--$j]; //#24876 + $_.barcode = $k[--$j]; //#24877 + if ($_.rows != -1) { //#24883 + if ($_.rows < 5) { //#24882 + $k[$j++] = 'bwipp.dotcodeBadRows#24881'; //#24881 + $k[$j++] = "There must be at least 5 rows"; //#24881 + bwipp_raiseerror(); //#24881 + } //#24881 + } //#24881 + if ($_.columns != -1) { //#24889 + if ($_.columns < 5) { //#24888 + $k[$j++] = 'bwipp.dotcodeBadColumns#24887'; //#24887 + $k[$j++] = "There must be at least 5 columns"; //#24887 + bwipp_raiseerror(); //#24887 + } //#24887 + } //#24887 + if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24893 + $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24892'; //#24892 + $k[$j++] = "Sum of rows and columns must be odd"; //#24892 + bwipp_raiseerror(); //#24892 + } //#24892 + if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24898 + $_.ratio = 3 / 2; //#24897 + } //#24897 + if ($_.ratio != -1) { //#24903 + if ($_.ratio <= 0) { //#24902 + $k[$j++] = 'bwipp.dotcodeRatio#24901'; //#24901 + $k[$j++] = "The ratio must be greater than 0"; //#24901 + bwipp_raiseerror(); //#24901 + } //#24901 + } //#24901 + if ($_.mask != -1) { //#24909 + if (($_.mask < 0) || ($_.mask > 3)) { //#24908 + $k[$j++] = 'bwipp.dotcodeBadMask#24907'; //#24907 + $k[$j++] = "Valid mask values are 0 to 3"; //#24907 + bwipp_raiseerror(); //#24907 + } //#24907 + } //#24907 + bwipp_loadctx(bwipp_dotcode) //#24911 + if (!bwipp_dotcode.__24924__) { //#24924 + $_ = Object.create($_); //#24924 + $_.laa = -1; //#24915 + $_.lab = -2; //#24915 + $_.lac = -3; //#24915 + $_.bin = -4; //#24915 + $_.sfa = -5; //#24916 + $_.sfb = -6; //#24916 + $_.sb2 = -7; //#24916 + $_.sb3 = -8; //#24916 + $_.sb4 = -9; //#24917 + $_.sb5 = -10; //#24917 + $_.sb6 = -11; //#24917 + $_.sfc = -12; //#24917 + $_.sc2 = -13; //#24918 + $_.sc3 = -14; //#24918 + $_.sc4 = -15; //#24918 + $_.sc5 = -16; //#24918 + $_.sc6 = -17; //#24919 + $_.sc7 = -18; //#24919 + $_.bsa = -19; //#24919 + $_.bsb = -20; //#24919 + $_.tma = -21; //#24920 + $_.tmb = -22; //#24920 + $_.tmc = -23; //#24920 + $_.tms = -24; //#24920 + $_.fn1 = -25; //#24921 + $_.fn2 = -26; //#24921 + $_.fn3 = -27; //#24921 + $_.crl = -28; //#24921 + $_.aim = -29; //#24922 + $_.m05 = -30; //#24922 + $_.m06 = -31; //#24922 + $_.m12 = -32; //#24922 + $_.mac = -33; //#24923 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24923 + bwipp_dotcode.__24924__ = 1; //#24923 + $_ = Object.getPrototypeOf($_); //#24923 + } //#24923 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#24630 - $_.fncvals = _N; //#24631 - $k[$j++] = 'msg'; //#24632 - $k[$j++] = $_.barcode; //#24632 - $k[$j++] = $_.fncvals; //#24632 - bwipp_parseinput(); //#24632 - var _Q = $k[--$j]; //#24632 - $_[$k[--$j]] = _Q; //#24632 - $_.msglen = $_.msg.length; //#24633 - var _T = $_.msg; //#24636 - $k[$j++] = 'numecis'; //#24636 - $k[$j++] = 0; //#24636 - for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24636 - if ($get(_T, _U) <= -1000000) { //#24636 - var _X = $k[--$j]; //#24636 - $k[$j++] = $f(_X + 1); //#24636 - } //#24636 - } //#24636 - var _Y = $k[--$j]; //#24636 - $_[$k[--$j]] = _Y; //#24636 - $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24637 - $_.j = 0; //#24638 - for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24649 - var _h = $get($_.msg, _f); //#24640 - $k[$j++] = _h; //#24648 - if (_h <= -1000000) { //#24647 - var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24641 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24641 - $k[$j++] = $get(_l, _m); //#24641 - } //#24641 - $astore($a(6)); //#24641 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24642 - $put($_.msgtmp, $_.j, $_.fn2); //#24643 - $_.j = $_.j + 7; //#24644 - } else { //#24647 - $put($_.msgtmp, $_.j, $k[--$j]); //#24646 - $_.j = $_.j + 1; //#24647 - } //#24647 - } //#24647 - $_.msg = $_.msgtmp; //#24650 - $_.msglen = $_.msg.length; //#24651 - if (!bwipp_dotcode.__24720__) { //#24720 - $_ = Object.create($_); //#24720 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24695 - $_.charvals = $a([new Map, new Map, new Map]); //#24698 - for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#24707 - $_.i = _3d; //#24700 - $_.encs = $get($_.charmaps, $_.i); //#24701 - for (var _3h = 0; _3h <= 2; _3h += 1) { //#24706 - $_.j = _3h; //#24703 - var _3k = $get($_.encs, $_.j); //#24704 - $k[$j++] = _3k; //#24704 - if ($eq($type(_3k), 'stringtype')) { //#24704 - var _3n = $get($k[--$j], 0); //#24704 - $k[$j++] = _3n; //#24704 - } //#24704 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#24705 - } //#24705 - } //#24705 - $_.Avals = $get($_.charvals, 0); //#24708 - $_.Bvals = $get($_.charvals, 1); //#24709 - $put($_.Bvals, $_.m05, 97); //#24710 - $put($_.Bvals, $_.m06, 98); //#24711 - $put($_.Bvals, $_.m12, 99); //#24712 - $put($_.Bvals, $_.mac, 100); //#24713 - $_.Cvals = $get($_.charvals, 2); //#24714 - $k[$j++] = Infinity; //#24716 - var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#24716 - $k[$j++] = 102; //#24716 - for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#24716 - var _4M = $f($k[--$j] + 1); //#24716 - $k[$j++] = $get(_4H, _4I); //#24716 - $k[$j++] = _4M; //#24716 - $k[$j++] = _4M; //#24716 - } //#24716 - $j--; //#24716 - $_.BINvals = $d(); //#24717 - $_.A = 0; //#24719 - $_.B = 1; //#24719 - $_.C = 2; //#24719 - $_.BIN = 3; //#24719 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24719 - bwipp_dotcode.__24720__ = 1; //#24719 - $_ = Object.getPrototypeOf($_); //#24719 - } //#24719 - $k[$j++] = Infinity; //#24723 - for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#24723 - $k[$j++] = 0; //#24723 - } //#24723 - $_.nDigits = $a(); //#24723 - $k[$j++] = Infinity; //#24724 - for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#24724 - $k[$j++] = false; //#24724 - } //#24724 - $_.SeventeenTen = $a(); //#24724 - $k[$j++] = Infinity; //#24725 - for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#24725 - $k[$j++] = false; //#24725 - } //#24725 - $_.ECI = $a(); //#24725 - $k[$j++] = Infinity; //#24726 - for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#24726 - $k[$j++] = false; //#24726 - } //#24726 - $_.DatumA = $a(); //#24726 - $k[$j++] = Infinity; //#24727 - for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#24727 - $k[$j++] = false; //#24727 - } //#24727 - $_.DatumB = $a(); //#24727 - $k[$j++] = Infinity; //#24728 - for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#24728 - $k[$j++] = false; //#24728 - } //#24728 - $_.DatumC = $a(); //#24728 - $k[$j++] = Infinity; //#24729 - for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#24729 - $k[$j++] = false; //#24729 - } //#24729 - $_.Binary = $a(); //#24729 - $k[$j++] = Infinity; //#24730 - for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#24730 - $k[$j++] = 0; //#24730 - } //#24730 - $_.AheadC = $a(); //#24730 - $k[$j++] = Infinity; //#24731 - for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#24731 - $k[$j++] = 0; //#24731 - } //#24731 - $_.TryC = $a(); //#24731 - $k[$j++] = Infinity; //#24732 - for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#24732 - $k[$j++] = 0; //#24732 - } //#24732 - $_.AheadA = $a(); //#24732 - $k[$j++] = Infinity; //#24733 - for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#24733 - $k[$j++] = 0; //#24733 - } //#24733 - $_.AheadB = $a(); //#24733 - $k[$j++] = Infinity; //#24734 - for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#24734 - $k[$j++] = 0; //#24734 - } //#24734 - $_.UntilEndSeg = $a(); //#24734 - for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#24789 - $_.i = _5C; //#24736 - $_.barchar = $get($_.msg, $_.i); //#24737 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#24740 - $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#24739 - } //#24739 - var _5P = $get($_.Avals, $_.barchar) !== undefined; //#24741 - if (_5P) { //#24741 - $put($_.DatumA, $_.i, true); //#24741 - } //#24741 - var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#24742 - if (_5U) { //#24742 - $put($_.DatumB, $_.i, true); //#24742 - } //#24742 - $_.CRLF = false; //#24743 - if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#24746 - if ($get($_.msg, $_.i + 1) == 10) { //#24745 - $_.CRLF = true; //#24745 - } //#24745 - } //#24745 - if ($_.CRLF) { //#24747 - $put($_.DatumB, $_.i, true); //#24747 - } //#24747 - if ($get($_.nDigits, $_.i) >= 2) { //#24748 - $put($_.DatumC, $_.i, true); //#24748 - } //#24748 - if ($_.barchar < 0) { //#24749 - $put($_.DatumC, $_.i, true); //#24749 - } //#24749 - if ($_.barchar >= 128) { //#24750 - $put($_.Binary, $_.i, true); //#24750 - } //#24750 - if ($get($_.nDigits, $_.i) >= 10) { //#24764 - $k[$j++] = Infinity; //#24752 - $aload($geti($_.msg, $_.i, 10)); //#24753 - for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#24761 - if ($k[--$j] != 48) { //#24755 - $k[$j++] = false; //#24755 - break; //#24755 - } //#24755 - if ($k[--$j] != 49) { //#24756 - $k[$j++] = false; //#24756 - break; //#24756 - } //#24756 - $j -= 6; //#24757 - if ($k[--$j] != 55) { //#24758 - $k[$j++] = false; //#24758 - break; //#24758 - } //#24758 - if ($k[--$j] != 49) { //#24759 - $k[$j++] = false; //#24759 - break; //#24759 - } //#24759 - $k[$j++] = true; //#24760 - } //#24760 - $put($_.SeventeenTen, $_.i, $k[--$j]); //#24762 - $cleartomark(); //#24763 - } //#24763 - if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#24767 - $put($_.ECI, $_.i, true); //#24766 - } //#24766 - if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#24769 - } else { //#24774 - if ($get($_.nDigits, $_.i) <= 1) { //#24774 - $put($_.AheadC, $_.i, 0); //#24772 - } else { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#24774 - } //#24774 - } //#24774 - if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#24779 - $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#24778 - } //#24778 - if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24782 - $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#24781 - } //#24781 - if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24785 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i; //#24784 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i + 1; //#24784 - if ($_.CRLF) { //#24784 - var _7B = $k[--$j]; //#24784 - $k[$j++] = $f(_7B + 1); //#24784 - } //#24784 - var _7C = $k[--$j]; //#24784 - var _7E = $get($k[--$j], _7C); //#24784 - var _7F = $k[--$j]; //#24784 - $put($k[--$j], _7F, $f(_7E + 1)); //#24784 - } //#24784 - if ($_.barchar != $_.fn3) { //#24788 - $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#24787 - } //#24787 - } //#24787 + ]); //#24933 + $_.fncvals = _N; //#24934 + $k[$j++] = 'msg'; //#24935 + $k[$j++] = $_.barcode; //#24935 + $k[$j++] = $_.fncvals; //#24935 + bwipp_parseinput(); //#24935 + var _Q = $k[--$j]; //#24935 + $_[$k[--$j]] = _Q; //#24935 + $_.msglen = $_.msg.length; //#24936 + var _T = $_.msg; //#24939 + $k[$j++] = 'numecis'; //#24939 + $k[$j++] = 0; //#24939 + for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24939 + if ($get(_T, _U) <= -1000000) { //#24939 + var _X = $k[--$j]; //#24939 + $k[$j++] = $f(_X + 1); //#24939 + } //#24939 + } //#24939 + var _Y = $k[--$j]; //#24939 + $_[$k[--$j]] = _Y; //#24939 + $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24940 + $_.j = 0; //#24941 + for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24952 + var _h = $get($_.msg, _f); //#24943 + $k[$j++] = _h; //#24951 + if (_h <= -1000000) { //#24950 + var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24944 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24944 + $k[$j++] = $get(_l, _m); //#24944 + } //#24944 + $astore($a(6)); //#24944 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24945 + $put($_.msgtmp, $_.j, $_.fn2); //#24946 + $_.j = $_.j + 7; //#24947 + } else { //#24950 + $put($_.msgtmp, $_.j, $k[--$j]); //#24949 + $_.j = $_.j + 1; //#24950 + } //#24950 + } //#24950 + $_.msg = $_.msgtmp; //#24953 + $_.msglen = $_.msg.length; //#24954 + if (!bwipp_dotcode.__25023__) { //#25023 + $_ = Object.create($_); //#25023 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24998 + $_.charvals = $a([new Map, new Map, new Map]); //#25001 + for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#25010 + $_.i = _3d; //#25003 + $_.encs = $get($_.charmaps, $_.i); //#25004 + for (var _3h = 0; _3h <= 2; _3h += 1) { //#25009 + $_.j = _3h; //#25006 + var _3k = $get($_.encs, $_.j); //#25007 + $k[$j++] = _3k; //#25007 + if ($eq($type(_3k), 'stringtype')) { //#25007 + var _3n = $get($k[--$j], 0); //#25007 + $k[$j++] = _3n; //#25007 + } //#25007 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#25008 + } //#25008 + } //#25008 + $_.Avals = $get($_.charvals, 0); //#25011 + $_.Bvals = $get($_.charvals, 1); //#25012 + $put($_.Bvals, $_.m05, 97); //#25013 + $put($_.Bvals, $_.m06, 98); //#25014 + $put($_.Bvals, $_.m12, 99); //#25015 + $put($_.Bvals, $_.mac, 100); //#25016 + $_.Cvals = $get($_.charvals, 2); //#25017 + $k[$j++] = Infinity; //#25018 + var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#25019 + $k[$j++] = 102; //#25019 + for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#25019 + var _4M = $f($k[--$j] + 1); //#25019 + $k[$j++] = $get(_4H, _4I); //#25019 + $k[$j++] = _4M; //#25019 + $k[$j++] = _4M; //#25019 + } //#25019 + $j--; //#25019 + $_.BINvals = $d(); //#25020 + $_.A = 0; //#25022 + $_.B = 1; //#25022 + $_.C = 2; //#25022 + $_.BIN = 3; //#25022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25022 + bwipp_dotcode.__25023__ = 1; //#25022 + $_ = Object.getPrototypeOf($_); //#25022 + } //#25022 + $k[$j++] = Infinity; //#25026 + for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#25026 + $k[$j++] = 0; //#25026 + } //#25026 + $_.nDigits = $a(); //#25026 + $k[$j++] = Infinity; //#25027 + for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#25027 + $k[$j++] = false; //#25027 + } //#25027 + $_.SeventeenTen = $a(); //#25027 + $k[$j++] = Infinity; //#25028 + for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#25028 + $k[$j++] = false; //#25028 + } //#25028 + $_.ECI = $a(); //#25028 + $k[$j++] = Infinity; //#25029 + for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#25029 + $k[$j++] = false; //#25029 + } //#25029 + $_.DatumA = $a(); //#25029 + $k[$j++] = Infinity; //#25030 + for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#25030 + $k[$j++] = false; //#25030 + } //#25030 + $_.DatumB = $a(); //#25030 + $k[$j++] = Infinity; //#25031 + for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#25031 + $k[$j++] = false; //#25031 + } //#25031 + $_.DatumC = $a(); //#25031 + $k[$j++] = Infinity; //#25032 + for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#25032 + $k[$j++] = false; //#25032 + } //#25032 + $_.Binary = $a(); //#25032 + $k[$j++] = Infinity; //#25033 + for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#25033 + $k[$j++] = 0; //#25033 + } //#25033 + $_.AheadC = $a(); //#25033 + $k[$j++] = Infinity; //#25034 + for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#25034 + $k[$j++] = 0; //#25034 + } //#25034 + $_.TryC = $a(); //#25034 + $k[$j++] = Infinity; //#25035 + for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#25035 + $k[$j++] = 0; //#25035 + } //#25035 + $_.AheadA = $a(); //#25035 + $k[$j++] = Infinity; //#25036 + for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#25036 + $k[$j++] = 0; //#25036 + } //#25036 + $_.AheadB = $a(); //#25036 + $k[$j++] = Infinity; //#25037 + for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#25037 + $k[$j++] = 0; //#25037 + } //#25037 + $_.UntilEndSeg = $a(); //#25037 + for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#25092 + $_.i = _5C; //#25039 + $_.barchar = $get($_.msg, $_.i); //#25040 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#25043 + $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#25042 + } //#25042 + var _5P = $get($_.Avals, $_.barchar) !== undefined; //#25044 + if (_5P) { //#25044 + $put($_.DatumA, $_.i, true); //#25044 + } //#25044 + var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#25045 + if (_5U) { //#25045 + $put($_.DatumB, $_.i, true); //#25045 + } //#25045 + $_.CRLF = false; //#25046 + if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#25049 + if ($get($_.msg, $_.i + 1) == 10) { //#25048 + $_.CRLF = true; //#25048 + } //#25048 + } //#25048 + if ($_.CRLF) { //#25050 + $put($_.DatumB, $_.i, true); //#25050 + } //#25050 + if ($get($_.nDigits, $_.i) >= 2) { //#25051 + $put($_.DatumC, $_.i, true); //#25051 + } //#25051 + if ($_.barchar < 0) { //#25052 + $put($_.DatumC, $_.i, true); //#25052 + } //#25052 + if ($_.barchar >= 128) { //#25053 + $put($_.Binary, $_.i, true); //#25053 + } //#25053 + if ($get($_.nDigits, $_.i) >= 10) { //#25067 + $k[$j++] = Infinity; //#25055 + $aload($geti($_.msg, $_.i, 10)); //#25056 + for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#25064 + if ($k[--$j] != 48) { //#25058 + $k[$j++] = false; //#25058 + break; //#25058 + } //#25058 + if ($k[--$j] != 49) { //#25059 + $k[$j++] = false; //#25059 + break; //#25059 + } //#25059 + $j -= 6; //#25060 + if ($k[--$j] != 55) { //#25061 + $k[$j++] = false; //#25061 + break; //#25061 + } //#25061 + if ($k[--$j] != 49) { //#25062 + $k[$j++] = false; //#25062 + break; //#25062 + } //#25062 + $k[$j++] = true; //#25063 + } //#25063 + $put($_.SeventeenTen, $_.i, $k[--$j]); //#25065 + $cleartomark(); //#25066 + } //#25066 + if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#25070 + $put($_.ECI, $_.i, true); //#25069 + } //#25069 + if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#25072 + } else { //#25077 + if ($get($_.nDigits, $_.i) <= 1) { //#25077 + $put($_.AheadC, $_.i, 0); //#25075 + } else { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#25077 + } //#25077 + } //#25077 + if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#25082 + $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#25081 + } //#25081 + if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25085 + $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#25084 + } //#25084 + if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25088 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i; //#25087 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i + 1; //#25087 + if ($_.CRLF) { //#25087 + var _7B = $k[--$j]; //#25087 + $k[$j++] = $f(_7B + 1); //#25087 + } //#25087 + var _7C = $k[--$j]; //#25087 + var _7E = $get($k[--$j], _7C); //#25087 + var _7F = $k[--$j]; //#25087 + $put($k[--$j], _7F, $f(_7E + 1)); //#25087 + } //#25087 + if ($_.barchar != $_.fn3) { //#25091 + $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#25090 + } //#25090 + } //#25090 $_.addtocws = function() { - var _7O = $k[--$j]; //#24792 - $puti($_.cws, $_.j, _7O); //#24792 - $_.j = _7O.length + $_.j; //#24793 - }; //#24793 + var _7O = $k[--$j]; //#25095 + $puti($_.cws, $_.j, _7O); //#25095 + $_.j = _7O.length + $_.j; //#25096 + }; //#25096 $_.base259to103 = function() { - $_.in = $k[--$j]; //#24798 - $_.inlen = $_.in.length; //#24799 - $k[$j++] = Infinity; //#24800 - for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#24800 - $k[$j++] = 0; //#24800 - } //#24800 - $aload($_.in); //#24800 - $_.in = $a(); //#24800 - $_.out = $a(6); //#24801 - $k[$j++] = Infinity; //#24802 - $aload($geti($_.in, 0, 2)); //#24802 - $_.msbs = $a(); //#24802 - $k[$j++] = Infinity; //#24805 - $aload($_.msbs); //#24804 - var _7e = $k[--$j]; //#24804 - var _7f = $k[--$j]; //#24804 - $k[$j++] = $f(_7e + (_7f * 259)); //#24805 - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#24805 - var _7i = $k[--$j]; //#24805 - $k[$j++] = _7i % 103; //#24805 - $k[$j++] = ~~(_7i / 103); //#24805 - } //#24805 - $_.mscs = $a(); //#24805 - $k[$j++] = Infinity; //#24807 - $aload($geti($_.in, 2, 3)); //#24807 - $_.lsbs = $a(); //#24807 - $k[$j++] = Infinity; //#24810 - $aload($_.lsbs); //#24809 - var _7o = $k[--$j]; //#24809 - var _7p = $k[--$j]; //#24809 - var _7q = $k[--$j]; //#24809 - $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#24810 - for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#24810 - var _7t = $k[--$j]; //#24810 - $k[$j++] = _7t % 103; //#24810 - $k[$j++] = ~~(_7t / 103); //#24810 - } //#24810 - $_.lscs = $a(); //#24810 - var _7w = $get($_.lscs, 0); //#24812 - var _7y = $get($_.mscs, 0); //#24812 - $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#24813 - var _81 = $get($_.lscs, 1); //#24814 - var _83 = $get($_.mscs, 0); //#24814 - var _85 = $get($_.mscs, 1); //#24814 - $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#24815 - var _88 = $get($_.lscs, 2); //#24816 - var _8A = $get($_.mscs, 0); //#24816 - var _8C = $get($_.mscs, 1); //#24816 - var _8E = $get($_.mscs, 2); //#24816 - $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#24817 - var _8H = $get($_.lscs, 3); //#24818 - var _8J = $get($_.mscs, 0); //#24818 - var _8L = $get($_.mscs, 1); //#24818 - var _8N = $get($_.mscs, 2); //#24818 - $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#24819 - var _8Q = $get($_.mscs, 1); //#24820 - var _8S = $get($_.mscs, 2); //#24820 - $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#24821 - $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#24823 - $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#24824 - }; //#24824 + $_.in = $k[--$j]; //#25101 + $_.inlen = $_.in.length; //#25102 + $k[$j++] = Infinity; //#25103 + for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#25103 + $k[$j++] = 0; //#25103 + } //#25103 + $aload($_.in); //#25103 + $_.in = $a(); //#25103 + $_.out = $a(6); //#25104 + $k[$j++] = Infinity; //#25105 + $aload($geti($_.in, 0, 2)); //#25105 + $_.msbs = $a(); //#25105 + $k[$j++] = Infinity; //#25106 + $aload($_.msbs); //#25107 + var _7e = $k[--$j]; //#25107 + var _7f = $k[--$j]; //#25107 + $k[$j++] = $f(_7e + (_7f * 259)); //#25108 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#25108 + var _7i = $k[--$j]; //#25108 + $k[$j++] = _7i % 103; //#25108 + $k[$j++] = ~~(_7i / 103); //#25108 + } //#25108 + $_.mscs = $a(); //#25108 + $k[$j++] = Infinity; //#25110 + $aload($geti($_.in, 2, 3)); //#25110 + $_.lsbs = $a(); //#25110 + $k[$j++] = Infinity; //#25111 + $aload($_.lsbs); //#25112 + var _7o = $k[--$j]; //#25112 + var _7p = $k[--$j]; //#25112 + var _7q = $k[--$j]; //#25112 + $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#25113 + for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#25113 + var _7t = $k[--$j]; //#25113 + $k[$j++] = _7t % 103; //#25113 + $k[$j++] = ~~(_7t / 103); //#25113 + } //#25113 + $_.lscs = $a(); //#25113 + var _7w = $get($_.lscs, 0); //#25115 + var _7y = $get($_.mscs, 0); //#25115 + $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#25116 + var _81 = $get($_.lscs, 1); //#25117 + var _83 = $get($_.mscs, 0); //#25117 + var _85 = $get($_.mscs, 1); //#25117 + $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#25118 + var _88 = $get($_.lscs, 2); //#25119 + var _8A = $get($_.mscs, 0); //#25119 + var _8C = $get($_.mscs, 1); //#25119 + var _8E = $get($_.mscs, 2); //#25119 + $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#25120 + var _8H = $get($_.lscs, 3); //#25121 + var _8J = $get($_.mscs, 0); //#25121 + var _8L = $get($_.mscs, 1); //#25121 + var _8N = $get($_.mscs, 2); //#25121 + $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#25122 + var _8Q = $get($_.mscs, 1); //#25123 + var _8S = $get($_.mscs, 2); //#25123 + $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#25124 + $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#25126 + $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#25127 + }; //#25127 $_.finaliseBIN = function() { - if ($_.bpos != 0) { //#24831 - $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#24829 - $_.base259to103(); //#24829 - $aload($k[--$j]); //#24829 - $_.bpos = 0; //#24830 - } //#24830 - }; //#24830 + if ($_.bpos != 0) { //#25134 + $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#25132 + $_.base259to103(); //#25132 + $aload($k[--$j]); //#25132 + $_.bpos = 0; //#25133 + } //#25133 + }; //#25133 $_.addtobin = function() { - $put($_.bvals, $_.bpos, $k[--$j]); //#24835 - $_.bpos = $_.bpos + 1; //#24836 - if ($_.bpos == 5) { //#24837 - $_.finaliseBIN(); //#24837 - } //#24837 - }; //#24837 + $put($_.bvals, $_.bpos, $k[--$j]); //#25138 + $_.bpos = $_.bpos + 1; //#25139 + if ($_.bpos == 5) { //#25140 + $_.finaliseBIN(); //#25140 + } //#25140 + }; //#25140 $_.ECIabc = function() { - var _8n = $geti($_.msg, $_.i + 1, 6); //#24841 - $k[$j++] = 0; //#24841 - for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#24841 - var _8r = $k[--$j]; //#24841 - $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#24841 - } //#24841 - var _8t = ~~($k[--$j] / 10); //#24842 - $k[$j++] = _8t; //#24846 - if (_8t >= 40) { //#24846 - var _8v = $f($k[--$j] - 40); //#24844 - var _8w = _8v % 12769; //#24845 - $k[$j++] = (~~(_8v / 12769)) + 40; //#24845 - $k[$j++] = ~~(_8w / 113); //#24845 - $k[$j++] = _8w % 113; //#24845 - } //#24845 - }; //#24845 + var _8n = $geti($_.msg, $_.i + 1, 6); //#25144 + $k[$j++] = 0; //#25144 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#25144 + var _8r = $k[--$j]; //#25144 + $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#25144 + } //#25144 + var _8t = ~~($k[--$j] / 10); //#25145 + $k[$j++] = _8t; //#25149 + if (_8t >= 40) { //#25149 + var _8v = $f($k[--$j] - 40); //#25147 + var _8w = _8v % 12769; //#25148 + $k[$j++] = (~~(_8v / 12769)) + 40; //#25148 + $k[$j++] = ~~(_8w / 113); //#25148 + $k[$j++] = _8w % 113; //#25148 + } //#25148 + }; //#25148 $_.ECIbin = function() { - $k[$j++] = Infinity; //#24858 - var _8z = $geti($_.msg, $_.i + 1, 6); //#24851 - $k[$j++] = 0; //#24851 - for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#24851 - var _93 = $k[--$j]; //#24851 - $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#24851 - } //#24851 - var _95 = ~~($k[--$j] / 10); //#24852 - $k[$j++] = _95; //#24860 - if (_95 >= 65536) { //#24858 - var _96 = $k[--$j]; //#24853 - var _97 = _96 % 65536; //#24853 - $k[$j++] = 258; //#24853 - $k[$j++] = ~~(_96 / 65536); //#24853 - $k[$j++] = ~~(_97 / 256); //#24853 - $k[$j++] = _97 % 256; //#24853 - } else { //#24858 - var _98 = $k[--$j]; //#24855 - $k[$j++] = _98; //#24859 - if (_98 >= 256) { //#24858 - var _99 = $k[--$j]; //#24856 - $k[$j++] = 257; //#24856 - $k[$j++] = ~~(_99 / 256); //#24856 - $k[$j++] = _99 % 256; //#24856 - } else { //#24858 - var _9A = $k[--$j]; //#24858 - $k[$j++] = 256; //#24858 - $k[$j++] = _9A; //#24858 - } //#24858 - } //#24858 - var _9B = $a(); //#24858 - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#24863 - $k[$j++] = $get(_9B, _9C); //#24862 - $_.addtobin(); //#24862 - } //#24862 - }; //#24862 + $k[$j++] = Infinity; //#25153 + var _8z = $geti($_.msg, $_.i + 1, 6); //#25154 + $k[$j++] = 0; //#25154 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#25154 + var _93 = $k[--$j]; //#25154 + $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#25154 + } //#25154 + var _95 = ~~($k[--$j] / 10); //#25155 + $k[$j++] = _95; //#25163 + if (_95 >= 65536) { //#25161 + var _96 = $k[--$j]; //#25156 + var _97 = _96 % 65536; //#25156 + $k[$j++] = 258; //#25156 + $k[$j++] = ~~(_96 / 65536); //#25156 + $k[$j++] = ~~(_97 / 256); //#25156 + $k[$j++] = _97 % 256; //#25156 + } else { //#25161 + var _98 = $k[--$j]; //#25158 + $k[$j++] = _98; //#25162 + if (_98 >= 256) { //#25161 + var _99 = $k[--$j]; //#25159 + $k[$j++] = 257; //#25159 + $k[$j++] = ~~(_99 / 256); //#25159 + $k[$j++] = _99 % 256; //#25159 + } else { //#25161 + var _9A = $k[--$j]; //#25161 + $k[$j++] = 256; //#25161 + $k[$j++] = _9A; //#25161 + } //#25161 + } //#25161 + var _9B = $a(); //#25161 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#25166 + $k[$j++] = $get(_9B, _9C); //#25165 + $_.addtobin(); //#25165 + } //#25165 + }; //#25165 $_.encC = function() { - for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#24987 - if ($_.i == $_.segstart) { //#24900 - for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#24885 - if ($_.i > $f($_.segend - 7)) { //#24870 - $k[$j++] = 0; //#24870 - break; //#24870 - } //#24870 - if ($get($_.msg, $_.segstart) != 91) { //#24871 - $k[$j++] = 0; //#24871 - break; //#24871 - } //#24871 - if ($get($_.msg, $_.segstart + 1) != 41) { //#24872 - $k[$j++] = 0; //#24872 - break; //#24872 - } //#24872 - if ($get($_.msg, $_.segstart + 2) != 62) { //#24873 - $k[$j++] = 0; //#24873 - break; //#24873 - } //#24873 - if ($get($_.msg, $_.segstart + 3) != 30) { //#24874 - $k[$j++] = 0; //#24874 - break; //#24874 - } //#24874 - var _9b = $get($_.msg, $_.segstart + 4); //#24875 - if ((_9b < 48) || (_9b > 57)) { //#24875 - $k[$j++] = 0; //#24875 - break; //#24875 - } //#24875 - var _9e = $get($_.msg, $_.segstart + 5); //#24876 - if ((_9e < 48) || (_9e > 57)) { //#24876 - $k[$j++] = 0; //#24876 - break; //#24876 - } //#24876 - if ($get($_.msg, $f($_.segend - 1)) != 4) { //#24877 - $k[$j++] = 0; //#24877 - break; //#24877 - } //#24877 - var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#24879 - $k[$j++] = _9o; //#24879 - if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#24879 - $j--; //#24879 - $k[$j++] = $_.mac; //#24879 - break; //#24879 - } //#24879 - if ($get($_.msg, $_.segstart + 6) != 29) { //#24880 - $j--; //#24880 - $k[$j++] = 0; //#24880 - break; //#24880 - } //#24880 - if ($get($_.msg, $f($_.segend - 2)) != 30) { //#24881 - $j--; //#24881 - $k[$j++] = 0; //#24881 - break; //#24881 - } //#24881 - var _9w = $k[--$j]; //#24882 - $k[$j++] = _9w; //#24882 - if (_9w == 5) { //#24882 - $j--; //#24882 - $k[$j++] = $_.m05; //#24882 - break; //#24882 - } //#24882 - if ($k[--$j] == 6) { //#24883 - $k[$j++] = $_.m06; //#24883 - break; //#24883 - } //#24883 - $k[$j++] = $_.m12; //#24884 - break; //#24884 - } //#24884 - $_.inmac = $k[--$j]; //#24886 - if ($_.inmac != 0) { //#24899 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24888 - $_.addtocws(); //#24888 - $_.mode = $_.B; //#24889 - $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#24890 - $_.addtocws(); //#24890 - if ($_.inmac == $_.mac) { //#24896 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#24892 - $_.addtocws(); //#24892 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#24893 - $_.addtocws(); //#24893 - $_.i = $_.i + 6; //#24894 - } else { //#24896 - $_.i = $_.i + 7; //#24896 - } //#24896 - break; //#24898 - } //#24898 - } //#24898 - if ($_.i == $_.segstart) { //#24911 - if ($get($_.nDigits, $_.i) >= 2) { //#24906 - $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#24905 - $_.addtocws(); //#24905 - } //#24905 - if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#24910 - $_.i = $_.i + 1; //#24909 - } //#24909 - } //#24909 - if ($get($_.SeventeenTen, $_.i)) { //#24921 - $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#24918 - $_.addtocws(); //#24918 - $_.i = $_.i + 10; //#24919 - break; //#24920 - } //#24920 - if ($get($_.DatumC, $_.i)) { //#24943 - var _BE = $get($_.msg, $_.i); //#24923 - if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#24939 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#24924 - $_.addtocws(); //#24924 - if ($get($_.ECI, $_.i)) { //#24929 - $k[$j++] = Infinity; //#24926 - $_.ECIabc(); //#24926 - var _BR = $a(); //#24926 - $k[$j++] = _BR; //#24926 - $_.addtocws(); //#24926 - $_.i = $_.i + 7; //#24927 - break; //#24928 - } //#24928 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#24936 - $_.i = $_.i + 1; //#24931 - $_.inmac = 0; //#24932 - $_.segstart = $_.i; //#24933 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#24934 - break; //#24935 - } //#24935 - $_.i = $_.i + 1; //#24937 - break; //#24938 - } //#24938 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#24940 - $_.addtocws(); //#24940 - $_.i = $_.i + 2; //#24941 - break; //#24942 - } //#24942 - if ($get($_.Binary, $_.i)) { //#24957 - if ($get($_.nDigits, $_.i + 1) > 0) { //#24953 - if ($get($_.msg, $_.i) < 160) { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#24947 - $_.addtocws(); //#24947 - } else { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#24949 - $_.addtocws(); //#24949 - } //#24949 - $_.i = $_.i + 1; //#24951 - break; //#24952 - } //#24952 - $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#24954 - $_.addtocws(); //#24954 - $_.mode = $_.BIN; //#24955 - break; //#24956 - } //#24956 - $_.m = $get($_.AheadA, $_.i); //#24958 - $_.n = $get($_.AheadB, $_.i); //#24958 - if ($gt($_.m, $_.n)) { //#24963 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24960 - $_.addtocws(); //#24960 - $_.mode = $_.A; //#24961 - break; //#24962 - } //#24962 - if ($_.i == $_.segstart) { //#24970 - var _Cc = $get($_.msg, $_.i); //#24965 - if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#24969 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24966 - $_.addtocws(); //#24966 - $_.mode = $_.A; //#24967 - break; //#24968 - } //#24968 - } //#24968 - if ($_.n > 4) { //#24975 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24972 - $_.addtocws(); //#24972 - $_.mode = $_.B; //#24973 - break; //#24974 - } //#24974 - $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#24976 - $_.addtocws(); //#24976 - for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#24985 - if ($get($_.msg, $_.i) == 13) { //#24983 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#24979 - $_.addtocws(); //#24979 - $_.i = $_.i + 2; //#24980 - } else { //#24983 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#24982 - $_.addtocws(); //#24982 - $_.i = $_.i + 1; //#24983 - } //#24983 - } //#24983 - break; //#24986 - } //#24986 - }; //#24986 + for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#25290 + if ($_.i == $_.segstart) { //#25203 + for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#25188 + if ($_.i > $f($_.segend - 7)) { //#25173 + $k[$j++] = 0; //#25173 + break; //#25173 + } //#25173 + if ($get($_.msg, $_.segstart) != 91) { //#25174 + $k[$j++] = 0; //#25174 + break; //#25174 + } //#25174 + if ($get($_.msg, $_.segstart + 1) != 41) { //#25175 + $k[$j++] = 0; //#25175 + break; //#25175 + } //#25175 + if ($get($_.msg, $_.segstart + 2) != 62) { //#25176 + $k[$j++] = 0; //#25176 + break; //#25176 + } //#25176 + if ($get($_.msg, $_.segstart + 3) != 30) { //#25177 + $k[$j++] = 0; //#25177 + break; //#25177 + } //#25177 + var _9b = $get($_.msg, $_.segstart + 4); //#25178 + if ((_9b < 48) || (_9b > 57)) { //#25178 + $k[$j++] = 0; //#25178 + break; //#25178 + } //#25178 + var _9e = $get($_.msg, $_.segstart + 5); //#25179 + if ((_9e < 48) || (_9e > 57)) { //#25179 + $k[$j++] = 0; //#25179 + break; //#25179 + } //#25179 + if ($get($_.msg, $f($_.segend - 1)) != 4) { //#25180 + $k[$j++] = 0; //#25180 + break; //#25180 + } //#25180 + var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#25182 + $k[$j++] = _9o; //#25182 + if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#25182 + $j--; //#25182 + $k[$j++] = $_.mac; //#25182 + break; //#25182 + } //#25182 + if ($get($_.msg, $_.segstart + 6) != 29) { //#25183 + $j--; //#25183 + $k[$j++] = 0; //#25183 + break; //#25183 + } //#25183 + if ($get($_.msg, $f($_.segend - 2)) != 30) { //#25184 + $j--; //#25184 + $k[$j++] = 0; //#25184 + break; //#25184 + } //#25184 + var _9w = $k[--$j]; //#25185 + $k[$j++] = _9w; //#25185 + if (_9w == 5) { //#25185 + $j--; //#25185 + $k[$j++] = $_.m05; //#25185 + break; //#25185 + } //#25185 + if ($k[--$j] == 6) { //#25186 + $k[$j++] = $_.m06; //#25186 + break; //#25186 + } //#25186 + $k[$j++] = $_.m12; //#25187 + break; //#25187 + } //#25187 + $_.inmac = $k[--$j]; //#25189 + if ($_.inmac != 0) { //#25202 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25191 + $_.addtocws(); //#25191 + $_.mode = $_.B; //#25192 + $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#25193 + $_.addtocws(); //#25193 + if ($_.inmac == $_.mac) { //#25199 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#25195 + $_.addtocws(); //#25195 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#25196 + $_.addtocws(); //#25196 + $_.i = $_.i + 6; //#25197 + } else { //#25199 + $_.i = $_.i + 7; //#25199 + } //#25199 + break; //#25201 + } //#25201 + } //#25201 + if ($_.i == $_.segstart) { //#25214 + if ($get($_.nDigits, $_.i) >= 2) { //#25209 + $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#25208 + $_.addtocws(); //#25208 + } //#25208 + if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#25213 + $_.i = $_.i + 1; //#25212 + } //#25212 + } //#25212 + if ($get($_.SeventeenTen, $_.i)) { //#25224 + $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#25221 + $_.addtocws(); //#25221 + $_.i = $_.i + 10; //#25222 + break; //#25223 + } //#25223 + if ($get($_.DatumC, $_.i)) { //#25246 + var _BE = $get($_.msg, $_.i); //#25226 + if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#25242 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25227 + $_.addtocws(); //#25227 + if ($get($_.ECI, $_.i)) { //#25232 + $k[$j++] = Infinity; //#25229 + $_.ECIabc(); //#25229 + var _BR = $a(); //#25229 + $k[$j++] = _BR; //#25229 + $_.addtocws(); //#25229 + $_.i = $_.i + 7; //#25230 + break; //#25231 + } //#25231 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#25239 + $_.i = $_.i + 1; //#25234 + $_.inmac = 0; //#25235 + $_.segstart = $_.i; //#25236 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25237 + break; //#25238 + } //#25238 + $_.i = $_.i + 1; //#25240 + break; //#25241 + } //#25241 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25243 + $_.addtocws(); //#25243 + $_.i = $_.i + 2; //#25244 + break; //#25245 + } //#25245 + if ($get($_.Binary, $_.i)) { //#25260 + if ($get($_.nDigits, $_.i + 1) > 0) { //#25256 + if ($get($_.msg, $_.i) < 160) { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25250 + $_.addtocws(); //#25250 + } else { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25252 + $_.addtocws(); //#25252 + } //#25252 + $_.i = $_.i + 1; //#25254 + break; //#25255 + } //#25255 + $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#25257 + $_.addtocws(); //#25257 + $_.mode = $_.BIN; //#25258 + break; //#25259 + } //#25259 + $_.m = $get($_.AheadA, $_.i); //#25261 + $_.n = $get($_.AheadB, $_.i); //#25261 + if ($gt($_.m, $_.n)) { //#25266 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25263 + $_.addtocws(); //#25263 + $_.mode = $_.A; //#25264 + break; //#25265 + } //#25265 + if ($_.i == $_.segstart) { //#25273 + var _Cc = $get($_.msg, $_.i); //#25268 + if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#25272 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25269 + $_.addtocws(); //#25269 + $_.mode = $_.A; //#25270 + break; //#25271 + } //#25271 + } //#25271 + if ($_.n > 4) { //#25278 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25275 + $_.addtocws(); //#25275 + $_.mode = $_.B; //#25276 + break; //#25277 + } //#25277 + $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#25279 + $_.addtocws(); //#25279 + for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#25288 + if ($get($_.msg, $_.i) == 13) { //#25286 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25282 + $_.addtocws(); //#25282 + $_.i = $_.i + 2; //#25283 + } else { //#25286 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25285 + $_.addtocws(); //#25285 + $_.i = $_.i + 1; //#25286 + } //#25286 + } //#25286 + break; //#25289 + } //#25289 + }; //#25289 $_.encB = function() { - for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25063 - $_.n = $get($_.TryC, $_.i); //#24992 - if ($_.n >= 2) { //#25010 - if ($_.n > 4) { //#24998 - $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#24995 - $_.addtocws(); //#24995 - $_.mode = $_.C; //#24996 - break; //#24997 - } //#24997 - $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#24999 - $_.addtocws(); //#24999 - for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25008 - if ($get($_.msg, $_.i) < 0) { //#25006 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25002 - $_.addtocws(); //#25002 - $_.i = $_.i + 1; //#25003 - } else { //#25006 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25005 - $_.addtocws(); //#25005 - $_.i = $_.i + 2; //#25006 - } //#25006 - } //#25006 - break; //#25009 - } //#25009 - if ($get($_.DatumB, $_.i)) { //#25040 - var _E2 = $get($_.msg, $_.i); //#25012 - if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25029 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25013 - $_.addtocws(); //#25013 - if ($get($_.ECI, $_.i)) { //#25018 - $k[$j++] = Infinity; //#25015 - $_.ECIabc(); //#25015 - var _EF = $a(); //#25015 - $k[$j++] = _EF; //#25015 - $_.addtocws(); //#25015 - $_.i = $_.i + 7; //#25016 - break; //#25017 - } //#25017 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25026 - $_.i = $_.i + 1; //#25020 - $_.mode = $_.C; //#25021 - $_.inmac = 0; //#25022 - $_.segstart = $_.i; //#25023 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25024 - break; //#25025 - } //#25025 - $_.i = $_.i + 1; //#25027 - break; //#25028 - } //#25028 - if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25036 - if ($get($_.msg, $_.i + 1) == 10) { //#25035 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25032 - $_.addtocws(); //#25032 - $_.i = $_.i + 2; //#25033 - break; //#25034 - } //#25034 - } //#25034 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25037 - $_.addtocws(); //#25037 - $_.i = $_.i + 1; //#25038 - break; //#25039 - } //#25039 - if ($get($_.Binary, $_.i)) { //#25054 - if ($get($_.DatumB, $_.i + 1)) { //#25050 - if ($get($_.msg, $_.i) < 160) { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25044 - $_.addtocws(); //#25044 - } else { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25046 - $_.addtocws(); //#25046 - } //#25046 - $_.i = $_.i + 1; //#25048 - break; //#25049 - } //#25049 - $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25051 - $_.addtocws(); //#25051 - $_.mode = $_.BIN; //#25052 - break; //#25053 - } //#25053 - if ($get($_.AheadA, $_.i) == 1) { //#25059 - $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25056 - $_.addtocws(); //#25056 - $_.i = $_.i + 1; //#25057 - break; //#25058 - } //#25058 - $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25060 - $_.addtocws(); //#25060 - $_.mode = $_.A; //#25061 - break; //#25062 - } //#25062 - }; //#25062 + for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25366 + $_.n = $get($_.TryC, $_.i); //#25295 + if ($_.n >= 2) { //#25313 + if ($_.n > 4) { //#25301 + $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#25298 + $_.addtocws(); //#25298 + $_.mode = $_.C; //#25299 + break; //#25300 + } //#25300 + $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25302 + $_.addtocws(); //#25302 + for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25311 + if ($get($_.msg, $_.i) < 0) { //#25309 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25305 + $_.addtocws(); //#25305 + $_.i = $_.i + 1; //#25306 + } else { //#25309 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25308 + $_.addtocws(); //#25308 + $_.i = $_.i + 2; //#25309 + } //#25309 + } //#25309 + break; //#25312 + } //#25312 + if ($get($_.DatumB, $_.i)) { //#25343 + var _E2 = $get($_.msg, $_.i); //#25315 + if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25332 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25316 + $_.addtocws(); //#25316 + if ($get($_.ECI, $_.i)) { //#25321 + $k[$j++] = Infinity; //#25318 + $_.ECIabc(); //#25318 + var _EF = $a(); //#25318 + $k[$j++] = _EF; //#25318 + $_.addtocws(); //#25318 + $_.i = $_.i + 7; //#25319 + break; //#25320 + } //#25320 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25329 + $_.i = $_.i + 1; //#25323 + $_.mode = $_.C; //#25324 + $_.inmac = 0; //#25325 + $_.segstart = $_.i; //#25326 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25327 + break; //#25328 + } //#25328 + $_.i = $_.i + 1; //#25330 + break; //#25331 + } //#25331 + if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25339 + if ($get($_.msg, $_.i + 1) == 10) { //#25338 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25335 + $_.addtocws(); //#25335 + $_.i = $_.i + 2; //#25336 + break; //#25337 + } //#25337 + } //#25337 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25340 + $_.addtocws(); //#25340 + $_.i = $_.i + 1; //#25341 + break; //#25342 + } //#25342 + if ($get($_.Binary, $_.i)) { //#25357 + if ($get($_.DatumB, $_.i + 1)) { //#25353 + if ($get($_.msg, $_.i) < 160) { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25347 + $_.addtocws(); //#25347 + } else { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25349 + $_.addtocws(); //#25349 + } //#25349 + $_.i = $_.i + 1; //#25351 + break; //#25352 + } //#25352 + $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25354 + $_.addtocws(); //#25354 + $_.mode = $_.BIN; //#25355 + break; //#25356 + } //#25356 + if ($get($_.AheadA, $_.i) == 1) { //#25362 + $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25359 + $_.addtocws(); //#25359 + $_.i = $_.i + 1; //#25360 + break; //#25361 + } //#25361 + $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25363 + $_.addtocws(); //#25363 + $_.mode = $_.A; //#25364 + break; //#25365 + } //#25365 + }; //#25365 $_.encA = function() { - for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25141 - $_.n = $get($_.TryC, $_.i); //#25068 - if ($_.n >= 2) { //#25086 - if ($_.n > 4) { //#25074 - $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25071 - $_.addtocws(); //#25071 - $_.mode = $_.C; //#25072 - break; //#25073 - } //#25073 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25075 - $_.addtocws(); //#25075 - for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25084 - if ($get($_.msg, $_.i) < 0) { //#25082 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25078 - $_.addtocws(); //#25078 - $_.i = $_.i + 1; //#25079 - } else { //#25082 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25081 - $_.addtocws(); //#25081 - $_.i = $_.i + 2; //#25082 - } //#25082 - } //#25082 - break; //#25085 - } //#25085 - if ($get($_.DatumA, $_.i)) { //#25109 - var _GQ = $get($_.msg, $_.i); //#25088 - if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25105 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25089 - $_.addtocws(); //#25089 - if ($get($_.ECI, $_.i)) { //#25094 - $k[$j++] = Infinity; //#25091 - $_.ECIabc(); //#25091 - var _Gd = $a(); //#25091 - $k[$j++] = _Gd; //#25091 - $_.addtocws(); //#25091 - $_.i = $_.i + 7; //#25092 - break; //#25093 - } //#25093 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25102 - $_.i = $_.i + 1; //#25096 - $_.mode = $_.C; //#25097 - $_.inmac = 0; //#25098 - $_.segstart = $_.i; //#25099 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25100 - break; //#25101 - } //#25101 - $_.i = $_.i + 1; //#25103 - break; //#25104 - } //#25104 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25106 - $_.addtocws(); //#25106 - $_.i = $_.i + 1; //#25107 - break; //#25108 - } //#25108 - if ($get($_.Binary, $_.i)) { //#25123 - if ($get($_.DatumA, $_.i + 1)) { //#25119 - if ($get($_.msg, $_.i) < 160) { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25113 - $_.addtocws(); //#25113 - } else { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25115 - $_.addtocws(); //#25115 - } //#25115 - $_.i = $_.i + 1; //#25117 - break; //#25118 - } //#25118 - $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25120 - $_.addtocws(); //#25120 - $_.mode = $_.BIN; //#25121 - break; //#25122 - } //#25122 - $_.n = $get($_.AheadB, $_.i); //#25124 - if ($_.n > 6) { //#25129 - $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25126 - $_.addtocws(); //#25126 - $_.mode = $_.B; //#25127 - break; //#25128 - } //#25128 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25130 - $_.addtocws(); //#25130 - for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25139 - if ($get($_.msg, $_.i) == 13) { //#25137 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25133 - $_.addtocws(); //#25133 - $_.i = $_.i + 2; //#25134 - } else { //#25137 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25136 - $_.addtocws(); //#25136 - $_.i = $_.i + 1; //#25137 - } //#25137 - } //#25137 - break; //#25140 - } //#25140 - }; //#25140 + for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25444 + $_.n = $get($_.TryC, $_.i); //#25371 + if ($_.n >= 2) { //#25389 + if ($_.n > 4) { //#25377 + $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25374 + $_.addtocws(); //#25374 + $_.mode = $_.C; //#25375 + break; //#25376 + } //#25376 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25378 + $_.addtocws(); //#25378 + for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25387 + if ($get($_.msg, $_.i) < 0) { //#25385 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25381 + $_.addtocws(); //#25381 + $_.i = $_.i + 1; //#25382 + } else { //#25385 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25384 + $_.addtocws(); //#25384 + $_.i = $_.i + 2; //#25385 + } //#25385 + } //#25385 + break; //#25388 + } //#25388 + if ($get($_.DatumA, $_.i)) { //#25412 + var _GQ = $get($_.msg, $_.i); //#25391 + if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25408 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25392 + $_.addtocws(); //#25392 + if ($get($_.ECI, $_.i)) { //#25397 + $k[$j++] = Infinity; //#25394 + $_.ECIabc(); //#25394 + var _Gd = $a(); //#25394 + $k[$j++] = _Gd; //#25394 + $_.addtocws(); //#25394 + $_.i = $_.i + 7; //#25395 + break; //#25396 + } //#25396 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25405 + $_.i = $_.i + 1; //#25399 + $_.mode = $_.C; //#25400 + $_.inmac = 0; //#25401 + $_.segstart = $_.i; //#25402 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25403 + break; //#25404 + } //#25404 + $_.i = $_.i + 1; //#25406 + break; //#25407 + } //#25407 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25409 + $_.addtocws(); //#25409 + $_.i = $_.i + 1; //#25410 + break; //#25411 + } //#25411 + if ($get($_.Binary, $_.i)) { //#25426 + if ($get($_.DatumA, $_.i + 1)) { //#25422 + if ($get($_.msg, $_.i) < 160) { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25416 + $_.addtocws(); //#25416 + } else { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25418 + $_.addtocws(); //#25418 + } //#25418 + $_.i = $_.i + 1; //#25420 + break; //#25421 + } //#25421 + $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25423 + $_.addtocws(); //#25423 + $_.mode = $_.BIN; //#25424 + break; //#25425 + } //#25425 + $_.n = $get($_.AheadB, $_.i); //#25427 + if ($_.n > 6) { //#25432 + $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25429 + $_.addtocws(); //#25429 + $_.mode = $_.B; //#25430 + break; //#25431 + } //#25431 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25433 + $_.addtocws(); //#25433 + for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25442 + if ($get($_.msg, $_.i) == 13) { //#25440 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25436 + $_.addtocws(); //#25436 + $_.i = $_.i + 2; //#25437 + } else { //#25440 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25439 + $_.addtocws(); //#25439 + $_.i = $_.i + 1; //#25440 + } //#25440 + } //#25440 + break; //#25443 + } //#25443 + }; //#25443 $_.encBIN = function() { - for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25203 - $_.n = $get($_.TryC, $_.i); //#25146 - if ($_.n >= 2) { //#25165 - $k[$j++] = Infinity; //#25148 - $_.finaliseBIN(); //#25148 - var _IG = $a(); //#25148 - $k[$j++] = _IG; //#25148 - $_.addtocws(); //#25148 - if ($_.n > 7) { //#25153 - $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25150 - $_.addtocws(); //#25150 - $_.mode = $_.C; //#25151 - break; //#25152 - } //#25152 - $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25154 - $_.addtocws(); //#25154 - for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25163 - if ($get($_.msg, $_.i) < 0) { //#25161 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25157 - $_.addtocws(); //#25157 - $_.i = $_.i + 1; //#25158 - } else { //#25161 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25160 - $_.addtocws(); //#25160 - $_.i = $_.i + 2; //#25161 - } //#25161 - } //#25161 - break; //#25164 - } //#25164 - if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25171 - $k[$j++] = Infinity; //#25167 - $_.ECIbin(); //#25167 - var _J0 = $a(); //#25167 - $k[$j++] = _J0; //#25167 - $_.addtocws(); //#25167 - $_.i = $_.i + 7; //#25168 - if ($_.i == $_.msglen) { //#25169 - $k[$j++] = Infinity; //#25169 - $_.finaliseBIN(); //#25169 - var _J4 = $a(); //#25169 - $k[$j++] = _J4; //#25169 - $_.addtocws(); //#25169 - } //#25169 - break; //#25170 - } //#25170 - if ($get($_.msg, $_.i) >= 0) { //#25181 - if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25180 - $k[$j++] = Infinity; //#25176 - $k[$j++] = $get($_.msg, $_.i); //#25176 - $_.addtobin(); //#25176 - var _JT = $a(); //#25176 - $k[$j++] = _JT; //#25176 - $_.addtocws(); //#25176 - $_.i = $_.i + 1; //#25177 - if ($_.i == $_.msglen) { //#25178 - $k[$j++] = Infinity; //#25178 - $_.finaliseBIN(); //#25178 - var _JX = $a(); //#25178 - $k[$j++] = _JX; //#25178 - $_.addtocws(); //#25178 - } //#25178 - break; //#25179 - } //#25179 - } //#25179 - $k[$j++] = Infinity; //#25182 - $_.finaliseBIN(); //#25182 - var _JY = $a(); //#25182 - $k[$j++] = _JY; //#25182 - $_.addtocws(); //#25182 - if ($_.i != ($_.msglen - 1)) { //#25201 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25192 - $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25185 - $_.addtocws(); //#25185 - $_.i = $_.i + 1; //#25186 - $_.mode = $_.C; //#25187 - $_.inmac = 0; //#25188 - $_.segstart = $_.i; //#25189 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25190 - break; //#25191 - } //#25191 - if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25194 - $_.addtocws(); //#25194 - $_.mode = $_.A; //#25195 - } else { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25197 - $_.addtocws(); //#25197 - $_.mode = $_.B; //#25198 - } //#25198 - break; //#25200 - } //#25200 - break; //#25202 - } //#25202 - }; //#25202 - $_.cws = $a(($_.msglen * 2) + 1); //#25206 - $_.mode = $_.C; //#25207 - $_.bvals = $a(5); //#25208 - $_.bpos = 0; //#25208 - $_.inmac = 0; //#25209 - $_.segstart = 0; //#25209 - $_.segend = $get($_.UntilEndSeg, 0); //#25209 - $_.i = 0; //#25210 - $_.j = 0; //#25210 - for (;;) { //#25223 - if ($_.i >= $_.msglen) { //#25211 - break; //#25211 - } //#25211 - if ($_.inmac != 0) { //#25221 - if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25216 - $_.i = $_.i + 2; //#25214 - if ($_.i >= $_.msglen) { //#25215 - break; //#25215 - } //#25215 - } //#25215 - if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25220 - $_.i = $_.i + 1; //#25218 - if ($_.i >= $_.msglen) { //#25219 - break; //#25219 - } //#25219 - } //#25219 - } //#25219 + for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25506 + $_.n = $get($_.TryC, $_.i); //#25449 + if ($_.n >= 2) { //#25468 + $k[$j++] = Infinity; //#25451 + $_.finaliseBIN(); //#25451 + var _IG = $a(); //#25451 + $k[$j++] = _IG; //#25451 + $_.addtocws(); //#25451 + if ($_.n > 7) { //#25456 + $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25453 + $_.addtocws(); //#25453 + $_.mode = $_.C; //#25454 + break; //#25455 + } //#25455 + $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25457 + $_.addtocws(); //#25457 + for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25466 + if ($get($_.msg, $_.i) < 0) { //#25464 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25460 + $_.addtocws(); //#25460 + $_.i = $_.i + 1; //#25461 + } else { //#25464 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25463 + $_.addtocws(); //#25463 + $_.i = $_.i + 2; //#25464 + } //#25464 + } //#25464 + break; //#25467 + } //#25467 + if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25474 + $k[$j++] = Infinity; //#25470 + $_.ECIbin(); //#25470 + var _J0 = $a(); //#25470 + $k[$j++] = _J0; //#25470 + $_.addtocws(); //#25470 + $_.i = $_.i + 7; //#25471 + if ($_.i == $_.msglen) { //#25472 + $k[$j++] = Infinity; //#25472 + $_.finaliseBIN(); //#25472 + var _J4 = $a(); //#25472 + $k[$j++] = _J4; //#25472 + $_.addtocws(); //#25472 + } //#25472 + break; //#25473 + } //#25473 + if ($get($_.msg, $_.i) >= 0) { //#25484 + if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25483 + $k[$j++] = Infinity; //#25479 + $k[$j++] = $get($_.msg, $_.i); //#25479 + $_.addtobin(); //#25479 + var _JT = $a(); //#25479 + $k[$j++] = _JT; //#25479 + $_.addtocws(); //#25479 + $_.i = $_.i + 1; //#25480 + if ($_.i == $_.msglen) { //#25481 + $k[$j++] = Infinity; //#25481 + $_.finaliseBIN(); //#25481 + var _JX = $a(); //#25481 + $k[$j++] = _JX; //#25481 + $_.addtocws(); //#25481 + } //#25481 + break; //#25482 + } //#25482 + } //#25482 + $k[$j++] = Infinity; //#25485 + $_.finaliseBIN(); //#25485 + var _JY = $a(); //#25485 + $k[$j++] = _JY; //#25485 + $_.addtocws(); //#25485 + if ($_.i != ($_.msglen - 1)) { //#25504 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25495 + $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25488 + $_.addtocws(); //#25488 + $_.i = $_.i + 1; //#25489 + $_.mode = $_.C; //#25490 + $_.inmac = 0; //#25491 + $_.segstart = $_.i; //#25492 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25493 + break; //#25494 + } //#25494 + if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25497 + $_.addtocws(); //#25497 + $_.mode = $_.A; //#25498 + } else { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25500 + $_.addtocws(); //#25500 + $_.mode = $_.B; //#25501 + } //#25501 + break; //#25503 + } //#25503 + break; //#25505 + } //#25505 + }; //#25505 + $_.cws = $a(($_.msglen * 2) + 1); //#25509 + $_.mode = $_.C; //#25510 + $_.bvals = $a(5); //#25511 + $_.bpos = 0; //#25511 + $_.inmac = 0; //#25512 + $_.segstart = 0; //#25512 + $_.segend = $get($_.UntilEndSeg, 0); //#25512 + $_.i = 0; //#25513 + $_.j = 0; //#25513 + for (;;) { //#25526 + if ($_.i >= $_.msglen) { //#25514 + break; //#25514 + } //#25514 + if ($_.inmac != 0) { //#25524 + if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25519 + $_.i = $_.i + 2; //#25517 + if ($_.i >= $_.msglen) { //#25518 + break; //#25518 + } //#25518 + } //#25518 + if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25523 + $_.i = $_.i + 1; //#25521 + if ($_.i >= $_.msglen) { //#25522 + break; //#25522 + } //#25522 + } //#25522 + } //#25522 if ($_[$get($a(['encA', 'encB', 'encC', 'encBIN']), $_.mode)]() === true) { break; - } //#25222 - } //#25222 - $_.cws = $geti($_.cws, 0, $_.j); //#25224 - $_.nd = $_.cws.length; //#25227 - $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25228 - if ($_.ratio != -1) { //#25256 - $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25230 - $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25231 - $_.h = ~~$_.hgt; //#25232 - $_.w = ~~$_.wid; //#25232 - if ((($_.h + $_.w) % 2) == 1) { //#25246 - if (($_.h * $_.w) < $_.minarea) { //#25234 - $_.h = $_.h + 1; //#25234 - $_.w = $_.w + 1; //#25234 - } //#25234 - } else { //#25246 - if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25246 - $_.w = $_.w + 1; //#25237 - if (($_.h * $_.w) < $_.minarea) { //#25241 - $_.w = $_.w - 1; //#25239 - $_.h = $_.h + 1; //#25239 - if (($_.h * $_.w) < $_.minarea) { //#25240 - $_.w = $_.w + 2; //#25240 - } //#25240 - } //#25240 - } else { //#25246 - $_.h = $_.h + 1; //#25243 - if (($_.h * $_.w) < $_.minarea) { //#25247 - $_.h = $_.h - 1; //#25245 - $_.w = $_.w + 1; //#25245 - if (($_.h * $_.w) < $_.minarea) { //#25246 - $_.h = $_.h + 2; //#25246 - } //#25246 - } //#25246 - } //#25246 - } //#25246 - $_.rows = $_.h; //#25250 - $_.columns = $_.w; //#25250 - } else { //#25256 - if ($_.columns == -1) { //#25254 - var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25253 - $k[$j++] = 'columns'; //#25253 - $k[$j++] = _LN; //#25253 - if (((_LN + $_.rows) % 2) == 0) { //#25253 - var _LP = $k[--$j]; //#25253 - $k[$j++] = $f(_LP + 1); //#25253 - } //#25253 - var _LQ = $k[--$j]; //#25253 - $_[$k[--$j]] = _LQ; //#25253 - } //#25253 - if ($_.rows == -1) { //#25257 - var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25256 - $k[$j++] = 'rows'; //#25256 - $k[$j++] = _LW; //#25256 - if (((_LW + $_.columns) % 2) == 0) { //#25256 - var _LY = $k[--$j]; //#25256 - $k[$j++] = $f(_LY + 1); //#25256 - } //#25256 - var _LZ = $k[--$j]; //#25256 - $_[$k[--$j]] = _LZ; //#25256 - } //#25256 - } //#25256 - $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25261 - for (;;) { //#25265 - var _Le = $_.nd + 1; //#25263 - if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25263 - break; //#25263 - } //#25263 - $_.nd = $_.nd + 1; //#25264 - } //#25264 - $_.nc = (~~($_.nd / 2)) + 3; //#25266 - $_.nw = $_.nd + $_.nc; //#25267 - $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25268 - if ($_.nd > $_.cws.length) { //#25275 - $k[$j++] = Infinity; //#25273 - $aload($_.cws); //#25271 - var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25272 - $k[$j++] = _Lr; //#25273 - for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25273 - $k[$j++] = 106; //#25273 - } //#25273 - $_.cws = $a(); //#25273 - } //#25274 - var _Ly = $get($_.options, 'debugcws') !== undefined; //#25277 - if (_Ly) { //#25277 - $k[$j++] = 'bwipp.debugcws#25277'; //#25277 - $k[$j++] = $_.cws; //#25277 - bwipp_raiseerror(); //#25277 - } //#25277 - if (($_.nw * 9) > ($_.ndots - 2)) { //#25282 - $k[$j++] = 'bwipp.dotcodeTooLong#25281'; //#25281 - $k[$j++] = "Maximum length exceeded"; //#25281 - bwipp_raiseerror(); //#25281 - } //#25281 - if (!bwipp_dotcode.__25311__) { //#25311 - $_ = Object.create($_); //#25311 - $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25310 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25310 - bwipp_dotcode.__25311__ = 1; //#25310 - $_ = Object.getPrototypeOf($_); //#25310 - } //#25310 - if (($_.rows % 2) == 0) { //#25331 - $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25322 - } else { //#25331 - $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25331 - } //#25331 + } //#25525 + } //#25525 + $_.cws = $geti($_.cws, 0, $_.j); //#25527 + $_.nd = $_.cws.length; //#25530 + $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25531 + if ($_.ratio != -1) { //#25559 + $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25533 + $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25534 + $_.h = ~~$_.hgt; //#25535 + $_.w = ~~$_.wid; //#25535 + if ((($_.h + $_.w) % 2) == 1) { //#25549 + if (($_.h * $_.w) < $_.minarea) { //#25537 + $_.h = $_.h + 1; //#25537 + $_.w = $_.w + 1; //#25537 + } //#25537 + } else { //#25549 + if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25549 + $_.w = $_.w + 1; //#25540 + if (($_.h * $_.w) < $_.minarea) { //#25544 + $_.w = $_.w - 1; //#25542 + $_.h = $_.h + 1; //#25542 + if (($_.h * $_.w) < $_.minarea) { //#25543 + $_.w = $_.w + 2; //#25543 + } //#25543 + } //#25543 + } else { //#25549 + $_.h = $_.h + 1; //#25546 + if (($_.h * $_.w) < $_.minarea) { //#25550 + $_.h = $_.h - 1; //#25548 + $_.w = $_.w + 1; //#25548 + if (($_.h * $_.w) < $_.minarea) { //#25549 + $_.h = $_.h + 2; //#25549 + } //#25549 + } //#25549 + } //#25549 + } //#25549 + $_.rows = $_.h; //#25553 + $_.columns = $_.w; //#25553 + } else { //#25559 + if ($_.columns == -1) { //#25557 + var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25556 + $k[$j++] = 'columns'; //#25556 + $k[$j++] = _LN; //#25556 + if (((_LN + $_.rows) % 2) == 0) { //#25556 + var _LP = $k[--$j]; //#25556 + $k[$j++] = $f(_LP + 1); //#25556 + } //#25556 + var _LQ = $k[--$j]; //#25556 + $_[$k[--$j]] = _LQ; //#25556 + } //#25556 + if ($_.rows == -1) { //#25560 + var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25559 + $k[$j++] = 'rows'; //#25559 + $k[$j++] = _LW; //#25559 + if (((_LW + $_.columns) % 2) == 0) { //#25559 + var _LY = $k[--$j]; //#25559 + $k[$j++] = $f(_LY + 1); //#25559 + } //#25559 + var _LZ = $k[--$j]; //#25559 + $_[$k[--$j]] = _LZ; //#25559 + } //#25559 + } //#25559 + $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25564 + for (;;) { //#25568 + var _Le = $_.nd + 1; //#25566 + if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25566 + break; //#25566 + } //#25566 + $_.nd = $_.nd + 1; //#25567 + } //#25567 + $_.nc = (~~($_.nd / 2)) + 3; //#25569 + $_.nw = $_.nd + $_.nc; //#25570 + $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25571 + if ($_.nd > $_.cws.length) { //#25578 + $k[$j++] = Infinity; //#25573 + $aload($_.cws); //#25574 + var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25575 + $k[$j++] = _Lr; //#25576 + for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25576 + $k[$j++] = 106; //#25576 + } //#25576 + $_.cws = $a(); //#25576 + } //#25577 + var _Ly = $get($_.options, 'debugcws') !== undefined; //#25580 + if (_Ly) { //#25580 + $k[$j++] = 'bwipp.debugcws#25580'; //#25580 + $k[$j++] = $_.cws; //#25580 + bwipp_raiseerror(); //#25580 + } //#25580 + if (($_.nw * 9) > ($_.ndots - 2)) { //#25585 + $k[$j++] = 'bwipp.dotcodeTooLong#25584'; //#25584 + $k[$j++] = "Maximum length exceeded"; //#25584 + bwipp_raiseerror(); //#25584 + } //#25584 + if (!bwipp_dotcode.__25614__) { //#25614 + $_ = Object.create($_); //#25614 + $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25613 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25613 + bwipp_dotcode.__25614__ = 1; //#25613 + $_ = Object.getPrototypeOf($_); //#25613 + } //#25613 + if (($_.rows % 2) == 0) { //#25634 + $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25625 + } else { //#25634 + $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25634 + } //#25634 $_.dmv = function() { - var _MY = $k[--$j]; //#25334 - var _MZ = $k[--$j]; //#25334 - $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25334 - }; //#25334 - $_.outline = $a($_.rows * $_.columns); //#25337 - for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25344 - $_.y = _Mf; //#25339 - for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25343 - $_.x = _Mi; //#25341 - $k[$j++] = $_.outline; //#25342 - $k[$j++] = $_.x; //#25342 - $k[$j++] = $_.y; //#25342 - $_.dmv(); //#25342 - var _Mo = $k[--$j]; //#25342 - $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25342 - } //#25342 - } //#25342 - var _Mq = $_.sixedges; //#25345 - for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25347 - $k[$j++] = $_.outline; //#25346 - $aload($get(_Mq, _Mr)); //#25346 - $_.dmv(); //#25346 - var _Mv = $k[--$j]; //#25346 - $put($k[--$j], _Mv, 1); //#25346 - } //#25346 + var _MY = $k[--$j]; //#25637 + var _MZ = $k[--$j]; //#25637 + $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25637 + }; //#25637 + $_.outline = $a($_.rows * $_.columns); //#25640 + for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25647 + $_.y = _Mf; //#25642 + for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25646 + $_.x = _Mi; //#25644 + $k[$j++] = $_.outline; //#25645 + $k[$j++] = $_.x; //#25645 + $k[$j++] = $_.y; //#25645 + $_.dmv(); //#25645 + var _Mo = $k[--$j]; //#25645 + $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25645 + } //#25645 + } //#25645 + var _Mq = $_.sixedges; //#25648 + for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25650 + $k[$j++] = $_.outline; //#25649 + $aload($get(_Mq, _Mr)); //#25649 + $_.dmv(); //#25649 + var _Mv = $k[--$j]; //#25649 + $put($k[--$j], _Mv, 1); //#25649 + } //#25649 $_.clearcol = function() { - $_.x = $k[--$j]; //#25350 - $k[$j++] = true; //#25354 - for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25354 - $k[$j++] = $_.x; //#25353 - $k[$j++] = _N1; //#25353 - $_.dmv(); //#25353 - if ($get($_.sym, $k[--$j]) == 1) { //#25353 - $j--; //#25353 - $k[$j++] = false; //#25353 - break; //#25353 - } //#25353 - } //#25353 - }; //#25353 + $_.x = $k[--$j]; //#25653 + $k[$j++] = true; //#25657 + for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25657 + $k[$j++] = $_.x; //#25656 + $k[$j++] = _N1; //#25656 + $_.dmv(); //#25656 + if ($get($_.sym, $k[--$j]) == 1) { //#25656 + $j--; //#25656 + $k[$j++] = false; //#25656 + break; //#25656 + } //#25656 + } //#25656 + }; //#25656 $_.clearrow = function() { - $_.y = $k[--$j]; //#25358 - $k[$j++] = true; //#25362 - for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25362 - $k[$j++] = _NA; //#25361 - $k[$j++] = $_.y; //#25361 - $_.dmv(); //#25361 - if ($get($_.sym, $k[--$j]) == 1) { //#25361 - $j--; //#25361 - $k[$j++] = false; //#25361 - break; //#25361 - } //#25361 - } //#25361 - }; //#25361 + $_.y = $k[--$j]; //#25661 + $k[$j++] = true; //#25665 + for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25665 + $k[$j++] = _NA; //#25664 + $k[$j++] = $_.y; //#25664 + $_.dmv(); //#25664 + if ($get($_.sym, $k[--$j]) == 1) { //#25664 + $j--; //#25664 + $k[$j++] = false; //#25664 + break; //#25664 + } //#25664 + } //#25664 + }; //#25664 $_.evalsymbol = function() { - $_.sym = $k[--$j]; //#25367 - $_.worst = 9999999; //#25370 - var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25371 - for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25389 - $aload($get(_NK, _NL)); //#25372 - $_.fl = $k[--$j]; //#25372 - $_.dir = $k[--$j]; //#25372 - $_.sum = 0; //#25373 - $_.first = -1; //#25373 - $_.last = -1; //#25373 - var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25374 - for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25385 - $_[$_.dir] = _NT; //#25375 - var _NV = $_.sym; //#25376 - var _NX = $_[$_.dir]; //#25377 - var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25378 - var _Nc = (_NZ - 1) * $_.fl; //#25379 - if ($eq($_.dir, 'y')) { //#25379 - var _ = _Nc; //#25379 - _Nc = _NX; //#25379 - _NX = _; //#25379 - } //#25379 - $k[$j++] = _NV; //#25380 - $k[$j++] = _NX; //#25380 - $k[$j++] = _Nc; //#25380 - $_.dmv(); //#25380 - var _Nd = $k[--$j]; //#25380 - if ($get($k[--$j], _Nd) == 1) { //#25384 - if ($_.first == -1) { //#25381 - $_.first = $_[$_.dir]; //#25381 - } //#25381 - $_.last = $_[$_.dir]; //#25382 - $_.sum = $_.sum + 1; //#25383 - } //#25383 - } //#25383 - var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25387 - var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25388 - $k[$j++] = _Nr; //#25388 - if (_Nr < $_.worst) { //#25388 - $_.worst = $k[--$j]; //#25388 - } else { //#25388 - $j--; //#25388 - } //#25388 - } //#25388 - $_.pen = 0; //#25391 - if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25409 - $_.sum = 0; //#25397 - $_.p = 0; //#25397 - for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25407 - $k[$j++] = _Ny; //#25399 - $_.clearcol(); //#25399 - if ($k[--$j]) { //#25405 - $_.sum = $_.sum + 1; //#25400 - $k[$j++] = 'p'; //#25401 - if ($_.sum == 1) { //#25401 - $k[$j++] = $_.rows; //#25401 - } else { //#25401 - $k[$j++] = $_.p * $_.rows; //#25401 - } //#25401 - var _O5 = $k[--$j]; //#25401 - $_[$k[--$j]] = _O5; //#25401 - } else { //#25405 - $_.sum = 0; //#25403 - $_.pen = $_.pen + $_.p; //#25404 - $_.p = 0; //#25405 - } //#25405 - } //#25405 - $_.pen = $_.pen + $_.p; //#25408 - } //#25408 - if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25427 - $_.sum = 0; //#25415 - $_.p = 0; //#25415 - for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25425 - $k[$j++] = _OF; //#25417 - $_.clearrow(); //#25417 - if ($k[--$j]) { //#25423 - $_.sum = $_.sum + 1; //#25418 - $k[$j++] = 'p'; //#25419 - if ($_.sum == 1) { //#25419 - $k[$j++] = $_.columns; //#25419 - } else { //#25419 - $k[$j++] = $_.p * $_.columns; //#25419 - } //#25419 - var _OM = $k[--$j]; //#25419 - $_[$k[--$j]] = _OM; //#25419 - } else { //#25423 - $_.sum = 0; //#25421 - $_.pen = $_.pen + $_.p; //#25422 - $_.p = 0; //#25423 - } //#25423 - } //#25423 - $_.pen = $_.pen + $_.p; //#25426 - } //#25426 - $k[$j++] = Infinity; //#25437 - for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25431 - $k[$j++] = 0; //#25431 - } //#25431 - for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25436 - $k[$j++] = 0; //#25434 - $k[$j++] = 0; //#25434 - $aload($geti($_.sym, _OY, $_.columns)); //#25434 - $k[$j++] = 0; //#25435 - $k[$j++] = 0; //#25435 - } //#25435 - for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25437 - $k[$j++] = 0; //#25437 - } //#25437 - $_.symp = $a(); //#25437 - $_.columns = $_.columns + 4; //#25441 - $_.rows = $_.rows + 4; //#25442 - $_.sum = 0; //#25443 - for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25461 - $_.y = _Ol; //#25445 - for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25460 - $_.x = _Op; //#25447 - for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25459 - $k[$j++] = $_.symp; //#25449 - $k[$j++] = $_.x - 1; //#25449 - $k[$j++] = $_.y - 1; //#25449 - $_.dmv(); //#25449 - var _Ov = $k[--$j]; //#25449 - if ($get($k[--$j], _Ov) == 1) { //#25449 - break; //#25449 - } //#25449 - $k[$j++] = $_.symp; //#25450 - $k[$j++] = $_.x + 1; //#25450 - $k[$j++] = $_.y - 1; //#25450 - $_.dmv(); //#25450 - var _P1 = $k[--$j]; //#25450 - if ($get($k[--$j], _P1) == 1) { //#25450 - break; //#25450 - } //#25450 - $k[$j++] = $_.symp; //#25451 - $k[$j++] = $_.x - 1; //#25451 - $k[$j++] = $_.y + 1; //#25451 - $_.dmv(); //#25451 - var _P7 = $k[--$j]; //#25451 - if ($get($k[--$j], _P7) == 1) { //#25451 - break; //#25451 - } //#25451 - $k[$j++] = $_.symp; //#25452 - $k[$j++] = $_.x + 1; //#25452 - $k[$j++] = $_.y + 1; //#25452 - $_.dmv(); //#25452 - var _PD = $k[--$j]; //#25452 - if ($get($k[--$j], _PD) == 1) { //#25452 - break; //#25452 - } //#25452 - $k[$j++] = $_.symp; //#25453 - $k[$j++] = $_.x; //#25453 - $k[$j++] = $_.y; //#25453 - $_.dmv(); //#25453 - var _PJ = $k[--$j]; //#25453 - if ($get($k[--$j], _PJ) == 0) { //#25453 - $_.sum = $_.sum + 1; //#25453 - break; //#25453 - } //#25453 - $k[$j++] = $_.symp; //#25454 - $k[$j++] = $_.x - 2; //#25454 - $k[$j++] = $_.y; //#25454 - $_.dmv(); //#25454 - var _PQ = $k[--$j]; //#25454 - if ($get($k[--$j], _PQ) == 1) { //#25454 - break; //#25454 - } //#25454 - $k[$j++] = $_.symp; //#25455 - $k[$j++] = $_.x; //#25455 - $k[$j++] = $_.y - 2; //#25455 - $_.dmv(); //#25455 - var _PW = $k[--$j]; //#25455 - if ($get($k[--$j], _PW) == 1) { //#25455 - break; //#25455 - } //#25455 - $k[$j++] = $_.symp; //#25456 - $k[$j++] = $_.x + 2; //#25456 - $k[$j++] = $_.y; //#25456 - $_.dmv(); //#25456 - var _Pc = $k[--$j]; //#25456 - if ($get($k[--$j], _Pc) == 1) { //#25456 - break; //#25456 - } //#25456 - $k[$j++] = $_.symp; //#25457 - $k[$j++] = $_.x; //#25457 - $k[$j++] = $_.y + 2; //#25457 - $_.dmv(); //#25457 - var _Pi = $k[--$j]; //#25457 - if ($get($k[--$j], _Pi) == 1) { //#25457 - break; //#25457 - } //#25457 - $_.sum = $_.sum + 1; //#25458 - } //#25458 - } //#25458 - } //#25458 - $_.columns = $_.columns - 4; //#25462 - $_.rows = $_.rows - 4; //#25463 - if ($_.worst == 0) { //#25468 - $k[$j++] = -99999; //#25466 - } else { //#25468 - $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25468 - } //#25468 - }; //#25468 - $k[$j++] = Infinity; //#25474 - $k[$j++] = 1; //#25474 - for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25474 - var _Pv = $k[--$j]; //#25474 - $k[$j++] = _Pv; //#25474 - $k[$j++] = (_Pv * 3) % 113; //#25474 - } //#25474 - $_.rsalog = $a(); //#25474 - $_.step = (~~($_.nw / 112)) + 1; //#25475 + $_.sym = $k[--$j]; //#25670 + $_.worst = 9999999; //#25673 + var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25674 + for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25692 + $aload($get(_NK, _NL)); //#25675 + $_.fl = $k[--$j]; //#25675 + $_.dir = $k[--$j]; //#25675 + $_.sum = 0; //#25676 + $_.first = -1; //#25676 + $_.last = -1; //#25676 + var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25677 + for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25688 + $_[$_.dir] = _NT; //#25678 + var _NV = $_.sym; //#25679 + var _NX = $_[$_.dir]; //#25680 + var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25681 + var _Nc = (_NZ - 1) * $_.fl; //#25682 + if ($eq($_.dir, 'y')) { //#25682 + var _ = _Nc; //#25682 + _Nc = _NX; //#25682 + _NX = _; //#25682 + } //#25682 + $k[$j++] = _NV; //#25683 + $k[$j++] = _NX; //#25683 + $k[$j++] = _Nc; //#25683 + $_.dmv(); //#25683 + var _Nd = $k[--$j]; //#25683 + if ($get($k[--$j], _Nd) == 1) { //#25687 + if ($_.first == -1) { //#25684 + $_.first = $_[$_.dir]; //#25684 + } //#25684 + $_.last = $_[$_.dir]; //#25685 + $_.sum = $_.sum + 1; //#25686 + } //#25686 + } //#25686 + var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25690 + var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25691 + $k[$j++] = _Nr; //#25691 + if (_Nr < $_.worst) { //#25691 + $_.worst = $k[--$j]; //#25691 + } else { //#25691 + $j--; //#25691 + } //#25691 + } //#25691 + $_.pen = 0; //#25694 + if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25712 + $_.sum = 0; //#25700 + $_.p = 0; //#25700 + for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25710 + $k[$j++] = _Ny; //#25702 + $_.clearcol(); //#25702 + if ($k[--$j]) { //#25708 + $_.sum = $_.sum + 1; //#25703 + $k[$j++] = 'p'; //#25704 + if ($_.sum == 1) { //#25704 + $k[$j++] = $_.rows; //#25704 + } else { //#25704 + $k[$j++] = $_.p * $_.rows; //#25704 + } //#25704 + var _O5 = $k[--$j]; //#25704 + $_[$k[--$j]] = _O5; //#25704 + } else { //#25708 + $_.sum = 0; //#25706 + $_.pen = $_.pen + $_.p; //#25707 + $_.p = 0; //#25708 + } //#25708 + } //#25708 + $_.pen = $_.pen + $_.p; //#25711 + } //#25711 + if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25730 + $_.sum = 0; //#25718 + $_.p = 0; //#25718 + for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25728 + $k[$j++] = _OF; //#25720 + $_.clearrow(); //#25720 + if ($k[--$j]) { //#25726 + $_.sum = $_.sum + 1; //#25721 + $k[$j++] = 'p'; //#25722 + if ($_.sum == 1) { //#25722 + $k[$j++] = $_.columns; //#25722 + } else { //#25722 + $k[$j++] = $_.p * $_.columns; //#25722 + } //#25722 + var _OM = $k[--$j]; //#25722 + $_[$k[--$j]] = _OM; //#25722 + } else { //#25726 + $_.sum = 0; //#25724 + $_.pen = $_.pen + $_.p; //#25725 + $_.p = 0; //#25726 + } //#25726 + } //#25726 + $_.pen = $_.pen + $_.p; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25733 + for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25734 + $k[$j++] = 0; //#25734 + } //#25734 + for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25739 + $k[$j++] = 0; //#25737 + $k[$j++] = 0; //#25737 + $aload($geti($_.sym, _OY, $_.columns)); //#25737 + $k[$j++] = 0; //#25738 + $k[$j++] = 0; //#25738 + } //#25738 + for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25740 + $k[$j++] = 0; //#25740 + } //#25740 + $_.symp = $a(); //#25740 + $_.columns = $_.columns + 4; //#25744 + $_.rows = $_.rows + 4; //#25745 + $_.sum = 0; //#25746 + for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25764 + $_.y = _Ol; //#25748 + for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25763 + $_.x = _Op; //#25750 + for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25762 + $k[$j++] = $_.symp; //#25752 + $k[$j++] = $_.x - 1; //#25752 + $k[$j++] = $_.y - 1; //#25752 + $_.dmv(); //#25752 + var _Ov = $k[--$j]; //#25752 + if ($get($k[--$j], _Ov) == 1) { //#25752 + break; //#25752 + } //#25752 + $k[$j++] = $_.symp; //#25753 + $k[$j++] = $_.x + 1; //#25753 + $k[$j++] = $_.y - 1; //#25753 + $_.dmv(); //#25753 + var _P1 = $k[--$j]; //#25753 + if ($get($k[--$j], _P1) == 1) { //#25753 + break; //#25753 + } //#25753 + $k[$j++] = $_.symp; //#25754 + $k[$j++] = $_.x - 1; //#25754 + $k[$j++] = $_.y + 1; //#25754 + $_.dmv(); //#25754 + var _P7 = $k[--$j]; //#25754 + if ($get($k[--$j], _P7) == 1) { //#25754 + break; //#25754 + } //#25754 + $k[$j++] = $_.symp; //#25755 + $k[$j++] = $_.x + 1; //#25755 + $k[$j++] = $_.y + 1; //#25755 + $_.dmv(); //#25755 + var _PD = $k[--$j]; //#25755 + if ($get($k[--$j], _PD) == 1) { //#25755 + break; //#25755 + } //#25755 + $k[$j++] = $_.symp; //#25756 + $k[$j++] = $_.x; //#25756 + $k[$j++] = $_.y; //#25756 + $_.dmv(); //#25756 + var _PJ = $k[--$j]; //#25756 + if ($get($k[--$j], _PJ) == 0) { //#25756 + $_.sum = $_.sum + 1; //#25756 + break; //#25756 + } //#25756 + $k[$j++] = $_.symp; //#25757 + $k[$j++] = $_.x - 2; //#25757 + $k[$j++] = $_.y; //#25757 + $_.dmv(); //#25757 + var _PQ = $k[--$j]; //#25757 + if ($get($k[--$j], _PQ) == 1) { //#25757 + break; //#25757 + } //#25757 + $k[$j++] = $_.symp; //#25758 + $k[$j++] = $_.x; //#25758 + $k[$j++] = $_.y - 2; //#25758 + $_.dmv(); //#25758 + var _PW = $k[--$j]; //#25758 + if ($get($k[--$j], _PW) == 1) { //#25758 + break; //#25758 + } //#25758 + $k[$j++] = $_.symp; //#25759 + $k[$j++] = $_.x + 2; //#25759 + $k[$j++] = $_.y; //#25759 + $_.dmv(); //#25759 + var _Pc = $k[--$j]; //#25759 + if ($get($k[--$j], _Pc) == 1) { //#25759 + break; //#25759 + } //#25759 + $k[$j++] = $_.symp; //#25760 + $k[$j++] = $_.x; //#25760 + $k[$j++] = $_.y + 2; //#25760 + $_.dmv(); //#25760 + var _Pi = $k[--$j]; //#25760 + if ($get($k[--$j], _Pi) == 1) { //#25760 + break; //#25760 + } //#25760 + $_.sum = $_.sum + 1; //#25761 + } //#25761 + } //#25761 + } //#25761 + $_.columns = $_.columns - 4; //#25765 + $_.rows = $_.rows - 4; //#25766 + if ($_.worst == 0) { //#25771 + $k[$j++] = -99999; //#25769 + } else { //#25771 + $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25771 + } //#25771 + }; //#25771 + if (!bwipp_dotcode.__25779__) { //#25779 + $_ = Object.create($_); //#25779 + $k[$j++] = Infinity; //#25778 + $k[$j++] = 1; //#25778 + for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25778 + var _Pv = $k[--$j]; //#25778 + $k[$j++] = _Pv; //#25778 + $k[$j++] = (_Pv * 3) % 113; //#25778 + } //#25778 + $_.rsalog = $a(); //#25778 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25778 + bwipp_dotcode.__25779__ = 1; //#25778 + $_ = Object.getPrototypeOf($_); //#25778 + } //#25778 + $_.step = (~~($_.nw / 112)) + 1; //#25780 $_.offset = function() { - var _Pz = $k[--$j]; //#25476 - $k[$j++] = $f((_Pz * $_.step) + $_.start); //#25476 - }; //#25476 - $_.bestscore = -99999999; //#25484 - $k[$j++] = 'masks'; //#25489 - if ($_.mask != -1) { //#25488 - $k[$j++] = $a([$_.mask]); //#25486 - } else { //#25488 - if ($_.fast) { //#25488 - $k[$j++] = $a([3, 2, 1, 0]); //#25488 - } else { //#25488 - $k[$j++] = $a([0, 1, 2, 3]); //#25488 - } //#25488 - } //#25488 - var _Q7 = $k[--$j]; //#25489 - $_[$k[--$j]] = _Q7; //#25489 - $_.litmasks = $a(4); //#25490 - $forall($_.masks, function() { //#25592 - $_.mask = $k[--$j]; //#25493 - $k[$j++] = Infinity; //#25499 - var _QG = $_.cws; //#25498 - $k[$j++] = $_.mask; //#25498 - $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25498 - $k[$j++] = 0; //#25498 - for (var _QH = 0, _QI = _QG.length; _QH < _QI; _QH++) { //#25498 - var _QK = $k[--$j]; //#25498 - var _QL = $k[--$j]; //#25498 - $k[$j++] = $f($get(_QG, _QH) + _QK) % 113; //#25498 - $k[$j++] = _QL; //#25498 - $k[$j++] = $f(_QK + _QL); //#25498 - } //#25498 - $j -= 2; //#25498 - for (var _QN = 0, _QO = $_.nc; _QN < _QO; _QN++) { //#25499 - $k[$j++] = 0; //#25499 - } //#25499 - $_.rscws = $a(); //#25499 - for (var _QS = 0, _QR = $_.step - 1; _QS <= _QR; _QS += 1) { //#25523 - $_.start = _QS; //#25502 - $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25503 - $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25504 - $_.NC = $_.NW - $_.ND; //#25505 - $k[$j++] = Infinity; //#25506 - $k[$j++] = 1; //#25506 - for (var _Qe = 0, _Qf = $_.NC; _Qe < _Qf; _Qe++) { //#25506 - $k[$j++] = 0; //#25506 - } //#25506 - $_.coeffs = $a(); //#25506 - for (var _Qj = 1, _Qi = $_.NC; _Qj <= _Qi; _Qj += 1) { //#25513 - $_.i = _Qj; //#25508 - for (var _Ql = $_.NC; _Ql >= 1; _Ql -= 1) { //#25512 - $_.j = _Ql; //#25510 - $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25511 - } //#25511 - } //#25511 - for (var _Qz = 0, _Qy = $_.ND - 1; _Qz <= _Qy; _Qz += 1) { //#25521 - $k[$j++] = 't'; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = _Qz; //#25515 - $_.offset(); //#25515 - var _R1 = $k[--$j]; //#25515 - var _R3 = $get($k[--$j], _R1); //#25515 - $k[$j++] = _R3; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = $_.ND; //#25515 - $_.offset(); //#25515 - var _R6 = $k[--$j]; //#25515 - var _R8 = $get($k[--$j], _R6); //#25515 - var _R9 = $k[--$j]; //#25515 - $_[$k[--$j]] = $f(_R9 + _R8) % 113; //#25515 - for (var _RD = 0, _RC = $_.NC - 2; _RD <= _RC; _RD += 1) { //#25519 - $_.j = _RD; //#25517 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = $_.ND + $_.j; //#25518 - $_.offset(); //#25518 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = ($_.ND + $_.j) + 1; //#25518 - $_.offset(); //#25518 - var _RK = $k[--$j]; //#25518 - var _RM = $get($k[--$j], _RK); //#25518 - var _RR = $k[--$j]; //#25518 - $put($k[--$j], _RR, ($f($f(_RM + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25518 - } //#25518 - $k[$j++] = $_.rscws; //#25520 - $k[$j++] = ($_.ND + $_.NC) - 1; //#25520 - $_.offset(); //#25520 - var _Ra = $k[--$j]; //#25520 - $put($k[--$j], _Ra, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25520 - } //#25520 - for (var _Rf = $_.ND, _Re = $_.NW - 1; _Rf <= _Re; _Rf += 1) { //#25522 - $k[$j++] = _Rf; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rf; //#25522 - $_.offset(); //#25522 - var _Ri = $k[--$j]; //#25522 - var _Rj = $k[--$j]; //#25522 - var _Rk = $k[--$j]; //#25522 - $k[$j++] = _Rj; //#25522 - $k[$j++] = _Ri; //#25522 - $k[$j++] = 113; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rk; //#25522 - $_.offset(); //#25522 - var _Rl = $k[--$j]; //#25522 - var _Rn = $get($k[--$j], _Rl); //#25522 - var _Ro = $k[--$j]; //#25522 - var _Rp = $k[--$j]; //#25522 - $put($k[--$j], _Rp, $f(_Ro - _Rn) % 113); //#25522 - } //#25522 - } //#25522 - $_.bits = $s($_.ndots); //#25526 - $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25527 - for (var _Rz = 1, _Ry = $_.nw; _Rz <= _Ry; _Rz += 1) { //#25531 - $_.i = _Rz; //#25529 - $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25530 - } //#25530 - if ($_.rembits > 0) { //#25534 - $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25533 - } //#25533 - var _SC = $_.outline; //#25537 - $_.pixs = $arrcpy($a(_SC.length), _SC); //#25537 - $_.posx = 0; //#25538 - $k[$j++] = 'posy'; //#25539 - if (($_.rows % 2) == 0) { //#25539 - $k[$j++] = 0; //#25539 - } else { //#25539 - $k[$j++] = $_.rows - 1; //#25539 - } //#25539 - var _SH = $k[--$j]; //#25539 - $_[$k[--$j]] = _SH; //#25539 - var _SL = $geti($_.bits, 0, $_.bits.length - 6); //#25540 - for (var _SM = 0, _SN = _SL.length; _SM < _SN; _SM++) { //#25558 - $k[$j++] = $get(_SL, _SM); //#25556 - for (;;) { //#25556 - $k[$j++] = $_.pixs; //#25542 - $k[$j++] = $_.posx; //#25542 - $k[$j++] = $_.posy; //#25542 - $_.dmv(); //#25542 - var _SS = $k[--$j]; //#25542 - if ($get($k[--$j], _SS) == -1) { //#25542 - break; //#25542 - } //#25542 - if (($_.rows % 2) == 0) { //#25553 - $_.posy = $_.posy + 1; //#25544 - if ($_.posy == $_.rows) { //#25548 - $_.posy = 0; //#25546 - $_.posx = $_.posx + 1; //#25547 - } //#25547 - } else { //#25553 - $_.posx = $_.posx + 1; //#25550 - if ($_.posx == $_.columns) { //#25554 - $_.posx = 0; //#25552 - $_.posy = $_.posy - 1; //#25553 - } //#25553 - } //#25553 - } //#25553 - $k[$j++] = $_.pixs; //#25557 - $k[$j++] = $_.posx; //#25557 - $k[$j++] = $_.posy; //#25557 - $_.dmv(); //#25557 - var _Sh = $k[--$j]; //#25557 - var _Si = $k[--$j]; //#25557 - $put(_Si, _Sh, $f($k[--$j] - 48)); //#25557 - } //#25557 - for (var _Sk = 0; _Sk <= 5; _Sk += 1) { //#25563 - $_.i = _Sk; //#25560 - $k[$j++] = $_.pixs; //#25561 - $aload($get($_.sixedges, $_.i)); //#25561 - $_.dmv(); //#25561 - var _St = $k[--$j]; //#25562 - $put($k[--$j], _St, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25562 - } //#25562 - $k[$j++] = 'score'; //#25566 - $k[$j++] = $_.pixs; //#25566 - $_.evalsymbol(); //#25566 - var _Sw = $k[--$j]; //#25566 - $_[$k[--$j]] = _Sw; //#25566 - if ($_.score > $_.bestscore) { //#25571 - $_.bestsym = $_.pixs; //#25568 - $_.bestscore = $_.score; //#25569 - if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25570 - return true; //#25570 - } //#25570 - } //#25570 - var _T6 = $_.pixs; //#25574 - $_.litmask = $arrcpy($a(_T6.length), _T6); //#25574 - for (var _T9 = 0; _T9 <= 5; _T9 += 1) { //#25579 - $_.i = _T9; //#25576 - $k[$j++] = $_.litmask; //#25577 - $aload($get($_.sixedges, $_.i)); //#25577 - $_.dmv(); //#25577 - var _TE = $k[--$j]; //#25578 - $put($k[--$j], _TE, 1); //#25578 - } //#25578 - $put($_.litmasks, $_.mask, $_.litmask); //#25580 - if ($_.fast) { //#25590 - $k[$j++] = 'score'; //#25584 - $k[$j++] = $_.litmask; //#25584 - $_.evalsymbol(); //#25584 - var _TL = $k[--$j]; //#25584 - $_[$k[--$j]] = _TL; //#25584 - if ($gt($_.score, $_.bestscore)) { //#25589 - $_.bestsym = $_.litmask; //#25586 - $_.bestscore = $_.score; //#25587 - if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25588 - return true; //#25588 - } //#25588 - } //#25588 - } //#25588 - }); //#25588 - $_.pixs = $_.bestsym; //#25593 - if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25607 - $_.bestscore = -99999999; //#25597 - $forall($_.masks, function() { //#25605 - $_.litmask = $get($_.litmasks, $k[--$j]); //#25599 - $k[$j++] = 'score'; //#25600 - $k[$j++] = $_.litmask; //#25600 - $_.evalsymbol(); //#25600 - var _Te = $k[--$j]; //#25600 - $_[$k[--$j]] = _Te; //#25600 - if ($_.score > $_.bestscore) { //#25604 - $_.bestsym = $_.litmask; //#25602 - $_.bestscore = $_.score; //#25603 - } //#25603 - }); //#25603 - $_.pixs = $_.bestsym; //#25606 - } //#25606 - var _Tr = new Map([ + var _Q0 = $k[--$j]; //#25781 + $k[$j++] = $f((_Q0 * $_.step) + $_.start); //#25781 + }; //#25781 + $_.bestscore = -99999999; //#25789 + $k[$j++] = 'masks'; //#25794 + if ($_.mask != -1) { //#25793 + $k[$j++] = $a([$_.mask]); //#25791 + } else { //#25793 + if ($_.fast) { //#25793 + $k[$j++] = $a([3, 2, 1, 0]); //#25793 + } else { //#25793 + $k[$j++] = $a([0, 1, 2, 3]); //#25793 + } //#25793 + } //#25793 + var _Q8 = $k[--$j]; //#25794 + $_[$k[--$j]] = _Q8; //#25794 + $_.litmasks = $a(4); //#25795 + $forall($_.masks, function() { //#25897 + $_.mask = $k[--$j]; //#25798 + $k[$j++] = Infinity; //#25801 + var _QH = $_.cws; //#25803 + $k[$j++] = $_.mask; //#25803 + $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25803 + $k[$j++] = 0; //#25803 + for (var _QI = 0, _QJ = _QH.length; _QI < _QJ; _QI++) { //#25803 + var _QL = $k[--$j]; //#25803 + var _QM = $k[--$j]; //#25803 + $k[$j++] = $f($get(_QH, _QI) + _QL) % 113; //#25803 + $k[$j++] = _QM; //#25803 + $k[$j++] = $f(_QL + _QM); //#25803 + } //#25803 + $j -= 2; //#25803 + for (var _QO = 0, _QP = $_.nc; _QO < _QP; _QO++) { //#25804 + $k[$j++] = 0; //#25804 + } //#25804 + $_.rscws = $a(); //#25804 + for (var _QT = 0, _QS = $_.step - 1; _QT <= _QS; _QT += 1) { //#25828 + $_.start = _QT; //#25807 + $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25808 + $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25809 + $_.NC = $_.NW - $_.ND; //#25810 + $k[$j++] = Infinity; //#25811 + $k[$j++] = 1; //#25811 + for (var _Qf = 0, _Qg = $_.NC; _Qf < _Qg; _Qf++) { //#25811 + $k[$j++] = 0; //#25811 + } //#25811 + $_.coeffs = $a(); //#25811 + for (var _Qk = 1, _Qj = $_.NC; _Qk <= _Qj; _Qk += 1) { //#25818 + $_.i = _Qk; //#25813 + for (var _Qm = $_.NC; _Qm >= 1; _Qm -= 1) { //#25817 + $_.j = _Qm; //#25815 + $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25816 + } //#25816 + } //#25816 + for (var _R0 = 0, _Qz = $_.ND - 1; _R0 <= _Qz; _R0 += 1) { //#25826 + $k[$j++] = 't'; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = _R0; //#25820 + $_.offset(); //#25820 + var _R2 = $k[--$j]; //#25820 + var _R4 = $get($k[--$j], _R2); //#25820 + $k[$j++] = _R4; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = $_.ND; //#25820 + $_.offset(); //#25820 + var _R7 = $k[--$j]; //#25820 + var _R9 = $get($k[--$j], _R7); //#25820 + var _RA = $k[--$j]; //#25820 + $_[$k[--$j]] = $f(_RA + _R9) % 113; //#25820 + for (var _RE = 0, _RD = $_.NC - 2; _RE <= _RD; _RE += 1) { //#25824 + $_.j = _RE; //#25822 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = $_.ND + $_.j; //#25823 + $_.offset(); //#25823 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = ($_.ND + $_.j) + 1; //#25823 + $_.offset(); //#25823 + var _RL = $k[--$j]; //#25823 + var _RN = $get($k[--$j], _RL); //#25823 + var _RS = $k[--$j]; //#25823 + $put($k[--$j], _RS, ($f($f(_RN + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25823 + } //#25823 + $k[$j++] = $_.rscws; //#25825 + $k[$j++] = ($_.ND + $_.NC) - 1; //#25825 + $_.offset(); //#25825 + var _Rb = $k[--$j]; //#25825 + $put($k[--$j], _Rb, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25825 + } //#25825 + for (var _Rg = $_.ND, _Rf = $_.NW - 1; _Rg <= _Rf; _Rg += 1) { //#25827 + $k[$j++] = _Rg; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rg; //#25827 + $_.offset(); //#25827 + var _Rj = $k[--$j]; //#25827 + var _Rk = $k[--$j]; //#25827 + var _Rl = $k[--$j]; //#25827 + $k[$j++] = _Rk; //#25827 + $k[$j++] = _Rj; //#25827 + $k[$j++] = 113; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rl; //#25827 + $_.offset(); //#25827 + var _Rm = $k[--$j]; //#25827 + var _Ro = $get($k[--$j], _Rm); //#25827 + var _Rp = $k[--$j]; //#25827 + var _Rq = $k[--$j]; //#25827 + $put($k[--$j], _Rq, $f(_Rp - _Ro) % 113); //#25827 + } //#25827 + } //#25827 + $_.bits = $s($_.ndots); //#25831 + $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25832 + for (var _S0 = 1, _Rz = $_.nw; _S0 <= _Rz; _S0 += 1) { //#25836 + $_.i = _S0; //#25834 + $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25835 + } //#25835 + if ($_.rembits > 0) { //#25839 + $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25838 + } //#25838 + var _SD = $_.outline; //#25842 + $_.pixs = $arrcpy($a(_SD.length), _SD); //#25842 + $_.posx = 0; //#25843 + $k[$j++] = 'posy'; //#25844 + if (($_.rows % 2) == 0) { //#25844 + $k[$j++] = 0; //#25844 + } else { //#25844 + $k[$j++] = $_.rows - 1; //#25844 + } //#25844 + var _SI = $k[--$j]; //#25844 + $_[$k[--$j]] = _SI; //#25844 + var _SM = $geti($_.bits, 0, $_.bits.length - 6); //#25845 + for (var _SN = 0, _SO = _SM.length; _SN < _SO; _SN++) { //#25863 + $k[$j++] = $get(_SM, _SN); //#25861 + for (;;) { //#25861 + $k[$j++] = $_.pixs; //#25847 + $k[$j++] = $_.posx; //#25847 + $k[$j++] = $_.posy; //#25847 + $_.dmv(); //#25847 + var _ST = $k[--$j]; //#25847 + if ($get($k[--$j], _ST) == -1) { //#25847 + break; //#25847 + } //#25847 + if (($_.rows % 2) == 0) { //#25858 + $_.posy = $_.posy + 1; //#25849 + if ($_.posy == $_.rows) { //#25853 + $_.posy = 0; //#25851 + $_.posx = $_.posx + 1; //#25852 + } //#25852 + } else { //#25858 + $_.posx = $_.posx + 1; //#25855 + if ($_.posx == $_.columns) { //#25859 + $_.posx = 0; //#25857 + $_.posy = $_.posy - 1; //#25858 + } //#25858 + } //#25858 + } //#25858 + $k[$j++] = $_.pixs; //#25862 + $k[$j++] = $_.posx; //#25862 + $k[$j++] = $_.posy; //#25862 + $_.dmv(); //#25862 + var _Si = $k[--$j]; //#25862 + var _Sj = $k[--$j]; //#25862 + $put(_Sj, _Si, $f($k[--$j] - 48)); //#25862 + } //#25862 + for (var _Sl = 0; _Sl <= 5; _Sl += 1) { //#25868 + $_.i = _Sl; //#25865 + $k[$j++] = $_.pixs; //#25866 + $aload($get($_.sixedges, $_.i)); //#25866 + $_.dmv(); //#25866 + var _Su = $k[--$j]; //#25867 + $put($k[--$j], _Su, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25867 + } //#25867 + $k[$j++] = 'score'; //#25871 + $k[$j++] = $_.pixs; //#25871 + $_.evalsymbol(); //#25871 + var _Sx = $k[--$j]; //#25871 + $_[$k[--$j]] = _Sx; //#25871 + if ($_.score > $_.bestscore) { //#25876 + $_.bestsym = $_.pixs; //#25873 + $_.bestscore = $_.score; //#25874 + if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25875 + return true; //#25875 + } //#25875 + } //#25875 + var _T7 = $_.pixs; //#25879 + $_.litmask = $arrcpy($a(_T7.length), _T7); //#25879 + for (var _TA = 0; _TA <= 5; _TA += 1) { //#25884 + $_.i = _TA; //#25881 + $k[$j++] = $_.litmask; //#25882 + $aload($get($_.sixedges, $_.i)); //#25882 + $_.dmv(); //#25882 + var _TF = $k[--$j]; //#25883 + $put($k[--$j], _TF, 1); //#25883 + } //#25883 + $put($_.litmasks, $_.mask, $_.litmask); //#25885 + if ($_.fast) { //#25895 + $k[$j++] = 'score'; //#25889 + $k[$j++] = $_.litmask; //#25889 + $_.evalsymbol(); //#25889 + var _TM = $k[--$j]; //#25889 + $_[$k[--$j]] = _TM; //#25889 + if ($gt($_.score, $_.bestscore)) { //#25894 + $_.bestsym = $_.litmask; //#25891 + $_.bestscore = $_.score; //#25892 + if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25893 + return true; //#25893 + } //#25893 + } //#25893 + } //#25893 + }); //#25893 + $_.pixs = $_.bestsym; //#25898 + if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25912 + $_.bestscore = -99999999; //#25902 + $forall($_.masks, function() { //#25910 + $_.litmask = $get($_.litmasks, $k[--$j]); //#25904 + $k[$j++] = 'score'; //#25905 + $k[$j++] = $_.litmask; //#25905 + $_.evalsymbol(); //#25905 + var _Tf = $k[--$j]; //#25905 + $_[$k[--$j]] = _Tf; //#25905 + if ($_.score > $_.bestscore) { //#25909 + $_.bestsym = $_.litmask; //#25907 + $_.bestscore = $_.score; //#25908 + } //#25908 + }); //#25908 + $_.pixs = $_.bestsym; //#25911 + } //#25911 + var _Ts = new Map([ ["ren", bwipp_renmatrix], ["dotty", true], ["pixs", $_.pixs], @@ -31972,468 +32438,477 @@ function bwipp_dotcode() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.columns * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#25618 - $k[$j++] = _Tr; //#25621 - if (!$_.dontdraw) { //#25621 - bwipp_renmatrix(); //#25621 - } //#25621 - $_ = Object.getPrototypeOf($_); //#25623 - $_ = Object.getPrototypeOf($_); //#25625 -} - + ]); //#25927 + $k[$j++] = _Ts; //#25930 + if (!$_.dontdraw) { //#25930 + bwipp_renmatrix(); //#25930 + } //#25930 + $_ = Object.getPrototypeOf($_); //#25932 + $_ = Object.getPrototypeOf($_); //#25934 +} //bwipp_dotcode function bwipp_ultracode() { - $_ = Object.create($_); //#25656 - $_.dontdraw = false; //#25659 - $_.eclevel = "EC2"; //#25660 - $_.parse = false; //#25661 - $_.parsefnc = false; //#25662 - $_.start = 257; //#25663 - $_.link1 = 0; //#25664 - $_.raw = false; //#25665 - $_.rev = 2; //#25666 - $k[$j++] = $_; //#25668 - bwipp_processoptions(); //#25668 - $_.options = $k[--$j]; //#25668 - $_.barcode = $k[--$j]; //#25669 - var _2 = $_.rev; //#25671 - if ((_2 != 1) && (_2 != 2)) { //#25673 - $k[$j++] = 'bwipp.ultracodeInvalidRevision#25672'; //#25672 - $k[$j++] = "Valid revisions are 1 and 2"; //#25672 - bwipp_raiseerror(); //#25672 - } //#25672 - var _4 = $_.eclevel.length == 3; //#25675 - $k[$j++] = _4; //#25679 - if (_4) { //#25679 - $j--; //#25676 - $k[$j++] = $geti($_.eclevel, 0, 2); //#25678 - if ($eq("EC", "EC")) { //#25678 - $j--; //#25677 - var _9 = $get($_.eclevel, 2) - 48; //#25677 - var _B = ($_.rev == 2) ? 1 : 0; //#25677 - $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25677 - } //#25677 - } //#25677 - if ($nt($k[--$j])) { //#25682 - $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25681'; //#25681 - $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25681 - bwipp_raiseerror(); //#25681 - } //#25681 - bwipp_loadctx(bwipp_ultracode) //#25684 - if ($_.raw) { //#25721 - $_.dcws = $a($_.barcode.length); //#25688 - $_.i = 0; //#25689 - $_.j = 0; //#25689 - for (;;) { //#25696 - if ($_.i == $_.barcode.length) { //#25691 - break; //#25691 - } //#25691 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#25692 - $put($_.dcws, $_.j, $_.cw); //#25693 - $_.i = $_.i + 4; //#25694 - $_.j = $_.j + 1; //#25695 - } //#25695 - $_.dcws = $geti($_.dcws, 0, $_.j); //#25697 - } else { //#25721 - $_.fn1 = -1; //#25702 - $_.fn3 = -2; //#25702 + $_ = Object.create($_); //#25965 + $_.dontdraw = false; //#25968 + $_.eclevel = "EC2"; //#25969 + $_.parse = false; //#25970 + $_.parsefnc = false; //#25971 + $_.start = 257; //#25972 + $_.link1 = 0; //#25973 + $_.raw = false; //#25974 + $_.rev = 2; //#25975 + $k[$j++] = $_; //#25977 + bwipp_processoptions(); //#25977 + $_.options = $k[--$j]; //#25977 + $_.barcode = $k[--$j]; //#25978 + var _2 = $_.rev; //#25980 + if ((_2 != 1) && (_2 != 2)) { //#25982 + $k[$j++] = 'bwipp.ultracodeInvalidRevision#25981'; //#25981 + $k[$j++] = "Valid revisions are 1 and 2"; //#25981 + bwipp_raiseerror(); //#25981 + } //#25981 + var _4 = $_.eclevel.length == 3; //#25984 + $k[$j++] = _4; //#25988 + if (_4) { //#25988 + $j--; //#25985 + $k[$j++] = $geti($_.eclevel, 0, 2); //#25987 + if ($eq("EC", "EC")) { //#25987 + $j--; //#25986 + var _9 = $get($_.eclevel, 2) - 48; //#25986 + var _B = ($_.rev == 2) ? 1 : 0; //#25986 + $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25986 + } //#25986 + } //#25986 + if ($nt($k[--$j])) { //#25991 + $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25990'; //#25990 + $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25990 + bwipp_raiseerror(); //#25990 + } //#25990 + bwipp_loadctx(bwipp_ultracode) //#25993 + if ($_.raw) { //#26030 + $_.dcws = $a($_.barcode.length); //#25997 + $_.i = 0; //#25998 + $_.j = 0; //#25998 + for (;;) { //#26005 + if ($_.i == $_.barcode.length) { //#26000 + break; //#26000 + } //#26000 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#26001 + $put($_.dcws, $_.j, $_.cw); //#26002 + $_.i = $_.i + 4; //#26003 + $_.j = $_.j + 1; //#26004 + } //#26004 + $_.dcws = $geti($_.dcws, 0, $_.j); //#26006 + } else { //#26030 + $_.fn1 = -1; //#26011 + $_.fn3 = -2; //#26011 var _X = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#25707 - $_.fncvals = _X; //#25708 - $k[$j++] = 'msg'; //#25709 - $k[$j++] = $_.barcode; //#25709 - $k[$j++] = $_.fncvals; //#25709 - bwipp_parseinput(); //#25709 - var _a = $k[--$j]; //#25709 - $_[$k[--$j]] = _a; //#25709 - $_.msglen = $_.msg.length; //#25710 - $_.scr = $a([]); //#25712 - $_.scp = $a([]); //#25713 - $k[$j++] = Infinity; //#25719 - $aload($_.scr); //#25715 - $aload($_.scp); //#25716 - $forall($_.msg, function() { //#25720 - var _i = $k[--$j]; //#25718 - $k[$j++] = _i; //#25718 - if (_i == $_.fn1) { //#25718 - $j--; //#25718 - $k[$j++] = 268; //#25718 - } //#25718 - var _k = $k[--$j]; //#25719 - $k[$j++] = _k; //#25719 - if (_k == $_.fn3) { //#25719 - $j--; //#25719 - $k[$j++] = 269; //#25719 - } //#25719 - }); //#25719 - $_.dcws = $a(); //#25719 - } //#25721 - var _o = $get($_.options, 'debugcws') !== undefined; //#25725 - if (_o) { //#25725 - $k[$j++] = 'bwipp.debugcws#25725'; //#25725 - $k[$j++] = $_.dcws; //#25725 - bwipp_raiseerror(); //#25725 - } //#25725 - $_.mcc = $_.dcws.length + 3; //#25727 - $_.eclval = $get($_.eclevel, 2) - 48; //#25729 - if ($_.eclval != 0) { //#25733 - $k[$j++] = 'qcc'; //#25731 - $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#25731 - $k[$j++] = ~~($_.mcc / 25); //#25731 - if (($_.mcc % 25) != 0) { //#25731 - var _z = $k[--$j]; //#25731 - $k[$j++] = $f(_z + 1); //#25731 - } //#25731 - var _10 = $k[--$j]; //#25731 - var _11 = $k[--$j]; //#25731 - $_[$k[--$j]] = $f((_11 * _10) + 5); //#25731 - } else { //#25733 - $_.qcc = 3; //#25733 - } //#25733 - $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#25735 - $_.tcc = $_.mcc + $_.qcc; //#25736 - if (!bwipp_ultracode.__25747__) { //#25747 - $_ = Object.create($_); //#25747 - $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#25746 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25746 - bwipp_ultracode.__25747__ = 1; //#25746 - $_ = Object.getPrototypeOf($_); //#25746 - } //#25746 - var _1D = $_.metrics; //#25749 - for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#25758 - $_.m = $get(_1D, _1E); //#25750 - $_.rows = $get($_.m, 0); //#25751 - $_.minc = $get($_.m, 1); //#25752 - $_.maxc = $get($_.m, 2); //#25753 - $_.mcol = $get($_.m, 3); //#25754 - $_.okay = true; //#25755 - if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#25756 - $_.okay = false; //#25756 - } //#25756 - if ($_.okay) { //#25757 - break; //#25757 - } //#25757 - } //#25757 - if (!$_.okay) { //#25762 - $k[$j++] = 'bwipp.ultracodeNoValidSymbol#25761'; //#25761 - $k[$j++] = "Maximum length exceeded or invalid content"; //#25761 - bwipp_raiseerror(); //#25761 - } //#25761 - for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#25776 - $_.columns = _1W; //#25766 - $k[$j++] = $_.columns; //#25768 - if ($_.columns >= 15) { //#25768 - var _1Z = $k[--$j]; //#25768 - $k[$j++] = $f(_1Z - 1); //#25768 - } //#25768 - if ($_.columns >= 31) { //#25769 - var _1b = $k[--$j]; //#25769 - $k[$j++] = $f(_1b - 1); //#25769 - } //#25769 - if ($_.columns >= 47) { //#25770 - var _1d = $k[--$j]; //#25770 - $k[$j++] = $f(_1d - 1); //#25770 - } //#25770 - var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#25771 - $k[$j++] = _1h; //#25774 - if (_1h >= 0) { //#25774 - $_.pads = $k[--$j]; //#25772 - break; //#25773 - } //#25773 - $j--; //#25775 - } //#25775 - $_.dcc = $f($_.columns - $_.mcol); //#25777 - $k[$j++] = Infinity; //#25786 - $k[$j++] = $_.start; //#25784 - $k[$j++] = $_.mcc; //#25784 - $k[$j++] = $_.acc; //#25784 - $aload($_.dcws); //#25784 - for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#25785 - $k[$j++] = 0; //#25785 - } //#25785 - $k[$j++] = 0; //#25786 - $_.rsseq = $a(); //#25786 - $k[$j++] = Infinity; //#25790 - $k[$j++] = 1; //#25790 - for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#25790 - var _1v = $k[--$j]; //#25790 - $k[$j++] = _1v; //#25790 - $k[$j++] = (_1v * 3) % 283; //#25790 - } //#25790 - $_.rsalog = $a(); //#25790 - $_.rslog = $a(283); //#25791 - for (var _1y = 1; _1y <= 282; _1y += 1) { //#25792 - $put($_.rslog, $get($_.rsalog, _1y), _1y); //#25792 - } //#25792 + ]); //#26016 + $_.fncvals = _X; //#26017 + $k[$j++] = 'msg'; //#26018 + $k[$j++] = $_.barcode; //#26018 + $k[$j++] = $_.fncvals; //#26018 + bwipp_parseinput(); //#26018 + var _a = $k[--$j]; //#26018 + $_[$k[--$j]] = _a; //#26018 + $_.msglen = $_.msg.length; //#26019 + $_.scr = $a([]); //#26021 + $_.scp = $a([]); //#26022 + $k[$j++] = Infinity; //#26023 + $aload($_.scr); //#26024 + $aload($_.scp); //#26025 + $forall($_.msg, function() { //#26029 + var _i = $k[--$j]; //#26027 + $k[$j++] = _i; //#26027 + if (_i == $_.fn1) { //#26027 + $j--; //#26027 + $k[$j++] = 268; //#26027 + } //#26027 + var _k = $k[--$j]; //#26028 + $k[$j++] = _k; //#26028 + if (_k == $_.fn3) { //#26028 + $j--; //#26028 + $k[$j++] = 269; //#26028 + } //#26028 + }); //#26028 + $_.dcws = $a(); //#26028 + } //#26030 + var _o = $get($_.options, 'debugcws') !== undefined; //#26034 + if (_o) { //#26034 + $k[$j++] = 'bwipp.debugcws#26034'; //#26034 + $k[$j++] = $_.dcws; //#26034 + bwipp_raiseerror(); //#26034 + } //#26034 + $_.mcc = $_.dcws.length + 3; //#26036 + $_.eclval = $get($_.eclevel, 2) - 48; //#26038 + if ($_.eclval != 0) { //#26042 + $k[$j++] = 'qcc'; //#26040 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#26040 + $k[$j++] = ~~($_.mcc / 25); //#26040 + if (($_.mcc % 25) != 0) { //#26040 + var _z = $k[--$j]; //#26040 + $k[$j++] = $f(_z + 1); //#26040 + } //#26040 + var _10 = $k[--$j]; //#26040 + var _11 = $k[--$j]; //#26040 + $_[$k[--$j]] = $f((_11 * _10) + 5); //#26040 + } else { //#26042 + $_.qcc = 3; //#26042 + } //#26042 + $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#26044 + $_.tcc = $_.mcc + $_.qcc; //#26045 + if (!bwipp_ultracode.__26056__) { //#26056 + $_ = Object.create($_); //#26056 + $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#26055 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26055 + bwipp_ultracode.__26056__ = 1; //#26055 + $_ = Object.getPrototypeOf($_); //#26055 + } //#26055 + var _1D = $_.metrics; //#26058 + for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#26067 + $_.m = $get(_1D, _1E); //#26059 + $_.rows = $get($_.m, 0); //#26060 + $_.minc = $get($_.m, 1); //#26061 + $_.maxc = $get($_.m, 2); //#26062 + $_.mcol = $get($_.m, 3); //#26063 + $_.okay = true; //#26064 + if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#26065 + $_.okay = false; //#26065 + } //#26065 + if ($_.okay) { //#26066 + break; //#26066 + } //#26066 + } //#26066 + if (!$_.okay) { //#26071 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol#26070'; //#26070 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26070 + bwipp_raiseerror(); //#26070 + } //#26070 + for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#26085 + $_.columns = _1W; //#26075 + $k[$j++] = $_.columns; //#26077 + if ($_.columns >= 15) { //#26077 + var _1Z = $k[--$j]; //#26077 + $k[$j++] = $f(_1Z - 1); //#26077 + } //#26077 + if ($_.columns >= 31) { //#26078 + var _1b = $k[--$j]; //#26078 + $k[$j++] = $f(_1b - 1); //#26078 + } //#26078 + if ($_.columns >= 47) { //#26079 + var _1d = $k[--$j]; //#26079 + $k[$j++] = $f(_1d - 1); //#26079 + } //#26079 + var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#26080 + $k[$j++] = _1h; //#26083 + if (_1h >= 0) { //#26083 + $_.pads = $k[--$j]; //#26081 + break; //#26082 + } //#26082 + $j--; //#26084 + } //#26084 + $_.dcc = $f($_.columns - $_.mcol); //#26086 + $k[$j++] = Infinity; //#26089 + $k[$j++] = $_.start; //#26093 + $k[$j++] = $_.mcc; //#26093 + $k[$j++] = $_.acc; //#26093 + $aload($_.dcws); //#26093 + for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#26094 + $k[$j++] = 0; //#26094 + } //#26094 + $k[$j++] = 0; //#26095 + $_.rsseq = $a(); //#26095 + if (!bwipp_ultracode.__26103__) { //#26103 + $_ = Object.create($_); //#26103 + $k[$j++] = Infinity; //#26100 + $k[$j++] = 1; //#26100 + for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#26100 + var _1v = $k[--$j]; //#26100 + $k[$j++] = _1v; //#26100 + $k[$j++] = (_1v * 3) % 283; //#26100 + } //#26100 + $_.rsalog = $a(); //#26100 + $_.rslog = $a(283); //#26101 + for (var _1y = 1; _1y <= 282; _1y += 1) { //#26102 + $put($_.rslog, $get($_.rsalog, _1y), _1y); //#26102 + } //#26102 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26102 + bwipp_ultracode.__26103__ = 1; //#26102 + $_ = Object.getPrototypeOf($_); //#26102 + } //#26102 $_.rsprod = function() { - var _22 = $k[--$j]; //#25796 - var _23 = $k[--$j]; //#25796 - $k[$j++] = _23; //#25800 - $k[$j++] = _22; //#25800 - if ((_22 != 0) && (_23 != 0)) { //#25799 - var _26 = $get($_.rslog, $k[--$j]); //#25797 - var _2B = $get($_.rsalog, $f(_26 + $get($_.rslog, $k[--$j])) % 282); //#25797 - $k[$j++] = _2B; //#25797 - } else { //#25799 - $j -= 2; //#25799 - $k[$j++] = 0; //#25799 - } //#25799 - }; //#25799 - $_.n = $_.mcc; //#25804 - $_.k = $_.qcc; //#25804 - $k[$j++] = Infinity; //#25805 - $k[$j++] = 1; //#25805 - for (var _2F = 0, _2G = $_.k; _2F < _2G; _2F++) { //#25805 - $k[$j++] = 0; //#25805 - } //#25805 - $_.coeffs = $a(); //#25805 - for (var _2K = 1, _2J = $_.k; _2K <= _2J; _2K += 1) { //#25814 - $_.i = _2K; //#25807 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#25808 - for (var _2R = $_.i - 1; _2R >= 1; _2R -= 1) { //#25812 - $_.j = _2R; //#25810 - $k[$j++] = $_.coeffs; //#25811 - $k[$j++] = $_.j; //#25811 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#25811 - $k[$j++] = $get($_.coeffs, $_.j); //#25811 - $k[$j++] = $get($_.rsalog, $_.i); //#25811 - $_.rsprod(); //#25811 - var _2d = $k[--$j]; //#25811 - var _2e = $k[--$j]; //#25811 - var _2f = $k[--$j]; //#25811 - $put($k[--$j], _2f, $f(_2e + _2d) % 283); //#25811 - } //#25811 - $k[$j++] = $_.coeffs; //#25813 - $k[$j++] = 0; //#25813 - $k[$j++] = $get($_.coeffs, 0); //#25813 - $k[$j++] = $get($_.rsalog, $_.i); //#25813 - $_.rsprod(); //#25813 - var _2n = $k[--$j]; //#25813 - var _2o = $k[--$j]; //#25813 - $put($k[--$j], _2o, _2n); //#25813 - } //#25813 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#25815 - for (var _2u = $_.coeffs.length - 1; _2u >= 0; _2u -= 2) { //#25816 - var _2v = $_.coeffs; //#25816 - $put(_2v, _2u, $f(283 - $get(_2v, _2u))); //#25816 - } //#25816 - for (var _2z = 0, _2y = $_.n - 1; _2z <= _2y; _2z += 1) { //#25825 - $_.t = $f($get($_.rsseq, _2z) + $get($_.rsseq, $_.n)) % 283; //#25820 - for (var _37 = 0, _36 = $_.k - 1; _37 <= _36; _37 += 1) { //#25824 - $_.j = _37; //#25822 - $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#25823 - } //#25823 - } //#25823 - for (var _3O = $_.n, _3N = $_.n + $_.k; _3O <= _3N; _3O += 1) { //#25826 - $put($_.rsseq, _3O, $f(283 - $get($_.rsseq, _3O)) % 283); //#25826 - } //#25826 - $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#25827 - var _3X = $get($_.options, 'debugecc') !== undefined; //#25829 - if (_3X) { //#25829 - $k[$j++] = 'bwipp.debugecc#25829'; //#25829 - $k[$j++] = $_.ecws; //#25829 - bwipp_raiseerror(); //#25829 - } //#25829 - if (!bwipp_ultracode.__25888__) { //#25888 - $_ = Object.create($_); //#25888 - $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#25862 - $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#25869 - $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#25875 - $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#25881 - $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#25887 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25887 - bwipp_ultracode.__25888__ = 1; //#25887 - $_ = Object.getPrototypeOf($_); //#25887 - } //#25887 - $k[$j++] = 'dccu'; //#25890 - if ($_.rev == 1) { //#25890 - $k[$j++] = $_.dccurev1; //#25890 - } else { //#25890 - $k[$j++] = $_.dccurev2; //#25890 - } //#25890 - var _3i = $k[--$j]; //#25890 - $_[$k[--$j]] = _3i; //#25890 - $k[$j++] = 'dccl'; //#25891 - if ($_.rev == 1) { //#25891 - $k[$j++] = $_.dcclrev1; //#25891 - } else { //#25891 - $k[$j++] = $_.dcclrev2; //#25891 - } //#25891 - var _3n = $k[--$j]; //#25891 - $_[$k[--$j]] = _3n; //#25891 - $_.rows = $f(($_.rows * 6) + 1); //#25894 - $_.columns = $_.columns + 6; //#25895 - $k[$j++] = Infinity; //#25896 - for (var _3t = 0, _3u = $_.rows * $_.columns; _3t < _3u; _3t++) { //#25896 - $k[$j++] = -1; //#25896 - } //#25896 - $_.pixs = $a(); //#25896 + var _23 = $k[--$j]; //#26107 + var _24 = $k[--$j]; //#26107 + $k[$j++] = _24; //#26111 + $k[$j++] = _23; //#26111 + if ((_23 != 0) && (_24 != 0)) { //#26110 + var _27 = $get($_.rslog, $k[--$j]); //#26108 + var _2C = $get($_.rsalog, $f(_27 + $get($_.rslog, $k[--$j])) % 282); //#26108 + $k[$j++] = _2C; //#26108 + } else { //#26110 + $j -= 2; //#26110 + $k[$j++] = 0; //#26110 + } //#26110 + }; //#26110 + $_.n = $_.mcc; //#26115 + $_.k = $_.qcc; //#26115 + $k[$j++] = Infinity; //#26116 + $k[$j++] = 1; //#26116 + for (var _2G = 0, _2H = $_.k; _2G < _2H; _2G++) { //#26116 + $k[$j++] = 0; //#26116 + } //#26116 + $_.coeffs = $a(); //#26116 + for (var _2L = 1, _2K = $_.k; _2L <= _2K; _2L += 1) { //#26125 + $_.i = _2L; //#26118 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#26119 + for (var _2S = $_.i - 1; _2S >= 1; _2S -= 1) { //#26123 + $_.j = _2S; //#26121 + $k[$j++] = $_.coeffs; //#26122 + $k[$j++] = $_.j; //#26122 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#26122 + $k[$j++] = $get($_.coeffs, $_.j); //#26122 + $k[$j++] = $get($_.rsalog, $_.i); //#26122 + $_.rsprod(); //#26122 + var _2e = $k[--$j]; //#26122 + var _2f = $k[--$j]; //#26122 + var _2g = $k[--$j]; //#26122 + $put($k[--$j], _2g, $f(_2f + _2e) % 283); //#26122 + } //#26122 + $k[$j++] = $_.coeffs; //#26124 + $k[$j++] = 0; //#26124 + $k[$j++] = $get($_.coeffs, 0); //#26124 + $k[$j++] = $get($_.rsalog, $_.i); //#26124 + $_.rsprod(); //#26124 + var _2o = $k[--$j]; //#26124 + var _2p = $k[--$j]; //#26124 + $put($k[--$j], _2p, _2o); //#26124 + } //#26124 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#26126 + for (var _2v = $_.coeffs.length - 1; _2v >= 0; _2v -= 2) { //#26127 + var _2w = $_.coeffs; //#26127 + $put(_2w, _2v, $f(283 - $get(_2w, _2v))); //#26127 + } //#26127 + for (var _30 = 0, _2z = $_.n - 1; _30 <= _2z; _30 += 1) { //#26136 + $_.t = $f($get($_.rsseq, _30) + $get($_.rsseq, $_.n)) % 283; //#26131 + for (var _38 = 0, _37 = $_.k - 1; _38 <= _37; _38 += 1) { //#26135 + $_.j = _38; //#26133 + $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#26134 + } //#26134 + } //#26134 + for (var _3P = $_.n, _3O = $_.n + $_.k; _3P <= _3O; _3P += 1) { //#26137 + $put($_.rsseq, _3P, $f(283 - $get($_.rsseq, _3P)) % 283); //#26137 + } //#26137 + $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#26138 + var _3Y = $get($_.options, 'debugecc') !== undefined; //#26140 + if (_3Y) { //#26140 + $k[$j++] = 'bwipp.debugecc#26140'; //#26140 + $k[$j++] = $_.ecws; //#26140 + bwipp_raiseerror(); //#26140 + } //#26140 + if (!bwipp_ultracode.__26199__) { //#26199 + $_ = Object.create($_); //#26199 + $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#26173 + $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#26180 + $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#26186 + $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#26192 + $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#26198 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26198 + bwipp_ultracode.__26199__ = 1; //#26198 + $_ = Object.getPrototypeOf($_); //#26198 + } //#26198 + $k[$j++] = 'dccu'; //#26201 + if ($_.rev == 1) { //#26201 + $k[$j++] = $_.dccurev1; //#26201 + } else { //#26201 + $k[$j++] = $_.dccurev2; //#26201 + } //#26201 + var _3j = $k[--$j]; //#26201 + $_[$k[--$j]] = _3j; //#26201 + $k[$j++] = 'dccl'; //#26202 + if ($_.rev == 1) { //#26202 + $k[$j++] = $_.dcclrev1; //#26202 + } else { //#26202 + $k[$j++] = $_.dcclrev2; //#26202 + } //#26202 + var _3o = $k[--$j]; //#26202 + $_[$k[--$j]] = _3o; //#26202 + $_.rows = $f(($_.rows * 6) + 1); //#26205 + $_.columns = $_.columns + 6; //#26206 + $k[$j++] = Infinity; //#26207 + for (var _3u = 0, _3v = $_.rows * $_.columns; _3u < _3v; _3u++) { //#26207 + $k[$j++] = -1; //#26207 + } //#26207 + $_.pixs = $a(); //#26207 $_.qmv = function() { - var _3x = $k[--$j]; //#25897 - var _3y = $k[--$j]; //#25897 - $k[$j++] = $f(_3y + (_3x * $_.columns)); //#25897 - }; //#25897 - for (var _41 = 0, _40 = $_.columns - 1; _41 <= _40; _41 += 1) { //#25906 - $_.i = _41; //#25899 - for (var _44 = 0, _43 = $f($_.rows - 1); _44 <= _43; _44 += 6) { //#25903 - $_.j = _44; //#25901 - if ($_.i >= 5) { //#25902 - $k[$j++] = $_.pixs; //#25902 - $k[$j++] = $_.i; //#25902 - $k[$j++] = $_.j; //#25902 - $_.qmv(); //#25902 - var _4A = $k[--$j]; //#25902 - $put($k[--$j], _4A, ($_.i % 2) * 9); //#25902 - } //#25902 - } //#25902 - $k[$j++] = $_.pixs; //#25904 - $k[$j++] = $_.i; //#25904 - $k[$j++] = 0; //#25904 - $_.qmv(); //#25904 - var _4E = $k[--$j]; //#25904 - $put($k[--$j], _4E, 9); //#25904 - $k[$j++] = $_.pixs; //#25905 - $k[$j++] = $_.i; //#25905 - $k[$j++] = $f($_.rows - 1); //#25905 - $_.qmv(); //#25905 - var _4J = $k[--$j]; //#25905 - $put($k[--$j], _4J, 9); //#25905 - } //#25905 - for (var _4N = 1, _4M = $f($_.rows - 2); _4N <= _4M; _4N += 1) { //#25919 - $_.i = _4N; //#25908 - for (var _4Q = 3, _4P = $_.columns - 1; _4Q <= _4P; _4Q += 16) { //#25912 - $_.j = _4Q; //#25910 - $k[$j++] = $_.pixs; //#25911 - $k[$j++] = $_.j; //#25911 - $k[$j++] = $_.i; //#25911 - $_.qmv(); //#25911 - var _4V = $k[--$j]; //#25911 - $put($k[--$j], _4V, (1 - ($_.i % 2)) * 9); //#25911 - } //#25911 - $k[$j++] = $_.pixs; //#25913 - $k[$j++] = 0; //#25913 - $k[$j++] = $_.i; //#25913 - $_.qmv(); //#25913 - var _4Z = $k[--$j]; //#25913 - $put($k[--$j], _4Z, 9); //#25913 - $k[$j++] = $_.pixs; //#25914 - $k[$j++] = 1; //#25914 - $k[$j++] = $_.i; //#25914 - $_.qmv(); //#25914 - var _4e = $k[--$j]; //#25914 - $put($k[--$j], _4e, (1 - ($_.i % 2)) * 9); //#25914 - $k[$j++] = $_.pixs; //#25915 - $k[$j++] = 2; //#25915 - $k[$j++] = $_.i; //#25915 - $_.qmv(); //#25915 - var _4i = $k[--$j]; //#25915 - $put($k[--$j], _4i, 0); //#25915 - $k[$j++] = $_.pixs; //#25916 - $k[$j++] = 3; //#25916 - $k[$j++] = $_.i; //#25916 - $_.qmv(); //#25916 - var _4m = $k[--$j]; //#25916 - $put($k[--$j], _4m, 9); //#25916 - $k[$j++] = $_.pixs; //#25917 - $k[$j++] = 4; //#25917 - $k[$j++] = $_.i; //#25917 - $_.qmv(); //#25917 - var _4q = $k[--$j]; //#25917 - $put($k[--$j], _4q, 0); //#25917 - $k[$j++] = $_.pixs; //#25918 - $k[$j++] = $_.columns - 1; //#25918 - $k[$j++] = $_.i; //#25918 - $_.qmv(); //#25918 - var _4v = $k[--$j]; //#25918 - $put($k[--$j], _4v, 9); //#25918 - } //#25918 - $_.i = (~~($_.rows / 2)) - 5; //#25922 - $k[$j++] = Infinity; //#25926 - var _52 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#25924 - for (var _53 = 0, _54 = _52.length; _53 < _54; _53++) { //#25924 - $k[$j++] = $get(_52, _53) - 48; //#25924 - } //#25924 - var _5A = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#25926 - $k[$j++] = 0; //#25926 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#25926 - $k[$j++] = $get(_5A, _5B) - 48; //#25926 - } //#25926 - var _5E = $a(); //#25926 - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#25930 - $k[$j++] = $get(_5E, _5F); //#25928 - $k[$j++] = $_.pixs; //#25928 - $k[$j++] = 2; //#25928 - $k[$j++] = $_.i; //#25928 - $_.qmv(); //#25928 - var _5K = $k[--$j]; //#25928 - var _5L = $k[--$j]; //#25928 - $put(_5L, _5K, $k[--$j]); //#25928 - $_.i = $_.i + 1; //#25929 - } //#25929 - $k[$j++] = Infinity; //#25942 - $k[$j++] = $_.start; //#25936 - $k[$j++] = $_.mcc; //#25936 - $aload($_.ecws); //#25936 - $k[$j++] = $_.tcc; //#25940 - $k[$j++] = 283; //#25940 - $k[$j++] = $_.acc; //#25940 - $aload($_.dcws); //#25940 - for (var _5V = 0, _5W = $_.pads; _5V < _5W; _5V++) { //#25941 - $k[$j++] = 284; //#25941 - } //#25941 - $k[$j++] = $_.qcc; //#25942 - $_.tileseq = $a(); //#25942 - $_.x = 5; //#25945 - $_.y = 1; //#25945 - var _5Z = $_.tileseq; //#25946 - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#25959 - var _5g = $cvrs($s(5), $get($_.tiles, $get(_5Z, _5a)), 10); //#25947 - for (var _5h = 0, _5i = _5g.length; _5h < _5i; _5h++) { //#25950 - $k[$j++] = $get(_5g, _5h); //#25948 - $k[$j++] = $_.pixs; //#25948 - $k[$j++] = $_.x; //#25948 - $k[$j++] = $_.y; //#25948 - $_.qmv(); //#25948 - var _5n = $k[--$j]; //#25948 - var _5o = $k[--$j]; //#25948 - $put(_5o, _5n, $f($k[--$j] - 48)); //#25948 - $_.y = $_.y + 1; //#25949 - } //#25949 - if ($_.y != $f($_.rows - 1)) { //#25956 - $_.y = $_.y + 1; //#25952 - } else { //#25956 - $_.x = $_.x + 1; //#25954 - $_.y = 1; //#25954 - $k[$j++] = $_.pixs; //#25955 - $k[$j++] = $_.x; //#25955 - $k[$j++] = $_.y; //#25955 - $_.qmv(); //#25955 - var _5y = $k[--$j]; //#25955 - if ($get($k[--$j], _5y) != -1) { //#25957 - $_.x = $_.x + 1; //#25956 - } //#25956 - } //#25956 - } //#25956 - if (!bwipp_ultracode.__25970__) { //#25970 - $_ = Object.create($_); //#25970 - var _62 = new Map([ + var _3y = $k[--$j]; //#26208 + var _3z = $k[--$j]; //#26208 + $k[$j++] = $f(_3z + (_3y * $_.columns)); //#26208 + }; //#26208 + for (var _42 = 0, _41 = $_.columns - 1; _42 <= _41; _42 += 1) { //#26217 + $_.i = _42; //#26210 + for (var _45 = 0, _44 = $f($_.rows - 1); _45 <= _44; _45 += 6) { //#26214 + $_.j = _45; //#26212 + if ($_.i >= 5) { //#26213 + $k[$j++] = $_.pixs; //#26213 + $k[$j++] = $_.i; //#26213 + $k[$j++] = $_.j; //#26213 + $_.qmv(); //#26213 + var _4B = $k[--$j]; //#26213 + $put($k[--$j], _4B, ($_.i % 2) * 9); //#26213 + } //#26213 + } //#26213 + $k[$j++] = $_.pixs; //#26215 + $k[$j++] = $_.i; //#26215 + $k[$j++] = 0; //#26215 + $_.qmv(); //#26215 + var _4F = $k[--$j]; //#26215 + $put($k[--$j], _4F, 9); //#26215 + $k[$j++] = $_.pixs; //#26216 + $k[$j++] = $_.i; //#26216 + $k[$j++] = $f($_.rows - 1); //#26216 + $_.qmv(); //#26216 + var _4K = $k[--$j]; //#26216 + $put($k[--$j], _4K, 9); //#26216 + } //#26216 + for (var _4O = 1, _4N = $f($_.rows - 2); _4O <= _4N; _4O += 1) { //#26230 + $_.i = _4O; //#26219 + for (var _4R = 3, _4Q = $_.columns - 1; _4R <= _4Q; _4R += 16) { //#26223 + $_.j = _4R; //#26221 + $k[$j++] = $_.pixs; //#26222 + $k[$j++] = $_.j; //#26222 + $k[$j++] = $_.i; //#26222 + $_.qmv(); //#26222 + var _4W = $k[--$j]; //#26222 + $put($k[--$j], _4W, (1 - ($_.i % 2)) * 9); //#26222 + } //#26222 + $k[$j++] = $_.pixs; //#26224 + $k[$j++] = 0; //#26224 + $k[$j++] = $_.i; //#26224 + $_.qmv(); //#26224 + var _4a = $k[--$j]; //#26224 + $put($k[--$j], _4a, 9); //#26224 + $k[$j++] = $_.pixs; //#26225 + $k[$j++] = 1; //#26225 + $k[$j++] = $_.i; //#26225 + $_.qmv(); //#26225 + var _4f = $k[--$j]; //#26225 + $put($k[--$j], _4f, (1 - ($_.i % 2)) * 9); //#26225 + $k[$j++] = $_.pixs; //#26226 + $k[$j++] = 2; //#26226 + $k[$j++] = $_.i; //#26226 + $_.qmv(); //#26226 + var _4j = $k[--$j]; //#26226 + $put($k[--$j], _4j, 0); //#26226 + $k[$j++] = $_.pixs; //#26227 + $k[$j++] = 3; //#26227 + $k[$j++] = $_.i; //#26227 + $_.qmv(); //#26227 + var _4n = $k[--$j]; //#26227 + $put($k[--$j], _4n, 9); //#26227 + $k[$j++] = $_.pixs; //#26228 + $k[$j++] = 4; //#26228 + $k[$j++] = $_.i; //#26228 + $_.qmv(); //#26228 + var _4r = $k[--$j]; //#26228 + $put($k[--$j], _4r, 0); //#26228 + $k[$j++] = $_.pixs; //#26229 + $k[$j++] = $_.columns - 1; //#26229 + $k[$j++] = $_.i; //#26229 + $_.qmv(); //#26229 + var _4w = $k[--$j]; //#26229 + $put($k[--$j], _4w, 9); //#26229 + } //#26229 + $_.i = (~~($_.rows / 2)) - 5; //#26233 + $k[$j++] = Infinity; //#26234 + var _53 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#26235 + for (var _54 = 0, _55 = _53.length; _54 < _55; _54++) { //#26235 + $k[$j++] = $get(_53, _54) - 48; //#26235 + } //#26235 + var _5B = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#26237 + $k[$j++] = 0; //#26237 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#26237 + $k[$j++] = $get(_5B, _5C) - 48; //#26237 + } //#26237 + var _5F = $a(); //#26237 + for (var _5G = 0, _5H = _5F.length; _5G < _5H; _5G++) { //#26241 + $k[$j++] = $get(_5F, _5G); //#26239 + $k[$j++] = $_.pixs; //#26239 + $k[$j++] = 2; //#26239 + $k[$j++] = $_.i; //#26239 + $_.qmv(); //#26239 + var _5L = $k[--$j]; //#26239 + var _5M = $k[--$j]; //#26239 + $put(_5M, _5L, $k[--$j]); //#26239 + $_.i = $_.i + 1; //#26240 + } //#26240 + $k[$j++] = Infinity; //#26244 + $k[$j++] = $_.start; //#26247 + $k[$j++] = $_.mcc; //#26247 + $aload($_.ecws); //#26247 + $k[$j++] = $_.tcc; //#26251 + $k[$j++] = 283; //#26251 + $k[$j++] = $_.acc; //#26251 + $aload($_.dcws); //#26251 + for (var _5W = 0, _5X = $_.pads; _5W < _5X; _5W++) { //#26252 + $k[$j++] = 284; //#26252 + } //#26252 + $k[$j++] = $_.qcc; //#26253 + $_.tileseq = $a(); //#26253 + $_.x = 5; //#26256 + $_.y = 1; //#26256 + var _5a = $_.tileseq; //#26257 + for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#26270 + var _5h = $cvrs($s(5), $get($_.tiles, $get(_5a, _5b)), 10); //#26258 + for (var _5i = 0, _5j = _5h.length; _5i < _5j; _5i++) { //#26261 + $k[$j++] = $get(_5h, _5i); //#26259 + $k[$j++] = $_.pixs; //#26259 + $k[$j++] = $_.x; //#26259 + $k[$j++] = $_.y; //#26259 + $_.qmv(); //#26259 + var _5o = $k[--$j]; //#26259 + var _5p = $k[--$j]; //#26259 + $put(_5p, _5o, $f($k[--$j] - 48)); //#26259 + $_.y = $_.y + 1; //#26260 + } //#26260 + if ($_.y != $f($_.rows - 1)) { //#26267 + $_.y = $_.y + 1; //#26263 + } else { //#26267 + $_.x = $_.x + 1; //#26265 + $_.y = 1; //#26265 + $k[$j++] = $_.pixs; //#26266 + $k[$j++] = $_.x; //#26266 + $k[$j++] = $_.y; //#26266 + $_.qmv(); //#26266 + var _5z = $k[--$j]; //#26266 + if ($get($k[--$j], _5z) != -1) { //#26268 + $_.x = $_.x + 1; //#26267 + } //#26267 + } //#26267 + } //#26267 + if (!bwipp_ultracode.__26281__) { //#26281 + $_ = Object.create($_); //#26281 + var _63 = new Map([ [0, "FFFFFF"], [9, "000000"], [1, "00FFFF"], [3, "FF00FF"], [5, "FFFF00"], [6, "00FF00"] - ]); //#25968 - $_.colormap = _62; //#25969 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25969 - bwipp_ultracode.__25970__ = 1; //#25969 - $_ = Object.getPrototypeOf($_); //#25969 - } //#25969 - var _6B = new Map([ + ]); //#26279 + $_.colormap = _63; //#26280 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26280 + bwipp_ultracode.__26281__ = 1; //#26280 + $_ = Object.getPrototypeOf($_); //#26280 + } //#26280 + var _6C = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.columns], @@ -32441,780 +32916,783 @@ function bwipp_ultracode() { ["height", ($_.rows / 72) * 2], ["width", ($_.columns / 72) * 2], ["colormap", $_.colormap], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#25981 - $k[$j++] = _6B; //#25984 - if (!$_.dontdraw) { //#25984 - bwipp_renmatrix(); //#25984 - } //#25984 - $_ = Object.getPrototypeOf($_); //#25986 - $_ = Object.getPrototypeOf($_); //#25988 -} - + ]); //#26296 + $k[$j++] = _6C; //#26299 + if (!$_.dontdraw) { //#26299 + bwipp_renmatrix(); //#26299 + } //#26299 + $_ = Object.getPrototypeOf($_); //#26301 + $_ = Object.getPrototypeOf($_); //#26303 +} //bwipp_ultracode function bwipp_jabcode() { - $_ = Object.create($_); //#26017 - $_.dontdraw = false; //#26020 - $_.rows = -1; //#26021 - $_.columns = -1; //#26022 - $_.slave = false; //#26023 - $_.colors = 16; //#26024 - $_.eclevel = 6; //#26025 - $_.raw = false; //#26026 - $_.parse = false; //#26027 - $_.parsefnc = false; //#26028 - $_.mask = -1; //#26029 - $k[$j++] = $_; //#26031 - bwipp_processoptions(); //#26031 - $_.options = $k[--$j]; //#26031 - $_.barcode = $k[--$j]; //#26032 - $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26034 - var _3 = $_.colors; //#26035 - $k[$j++] = 'metabpm'; //#26035 - $k[$j++] = _3; //#26035 - if (_3 > 8) { //#26035 - $j--; //#26035 - $k[$j++] = 8; //#26035 - } //#26035 - var _4 = $k[--$j]; //#26035 - $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26035 - $_.fn1 = -1; //#26038 + $_ = Object.create($_); //#26332 + $_.dontdraw = false; //#26335 + $_.rows = -1; //#26336 + $_.columns = -1; //#26337 + $_.slave = false; //#26338 + $_.colors = 16; //#26339 + $_.eclevel = 6; //#26340 + $_.raw = false; //#26341 + $_.parse = false; //#26342 + $_.parsefnc = false; //#26343 + $_.mask = -1; //#26344 + $k[$j++] = $_; //#26346 + bwipp_processoptions(); //#26346 + $_.options = $k[--$j]; //#26346 + $_.barcode = $k[--$j]; //#26347 + $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26349 + var _3 = $_.colors; //#26350 + $k[$j++] = 'metabpm'; //#26350 + $k[$j++] = _3; //#26350 + if (_3 > 8) { //#26350 + $j--; //#26350 + $k[$j++] = 8; //#26350 + } //#26350 + var _4 = $k[--$j]; //#26350 + $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26350 + $_.fn1 = -1; //#26353 var _9 = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1] - ]); //#26042 - $_.fncvals = _9; //#26043 - $k[$j++] = 'msg'; //#26044 - $k[$j++] = $_.barcode; //#26044 - $k[$j++] = $_.fncvals; //#26044 - bwipp_parseinput(); //#26044 - var _C = $k[--$j]; //#26044 - $_[$k[--$j]] = _C; //#26044 - $_.msglen = $_.msg.length; //#26045 + ]); //#26357 + $_.fncvals = _9; //#26358 + $k[$j++] = 'msg'; //#26359 + $k[$j++] = $_.barcode; //#26359 + $k[$j++] = $_.fncvals; //#26359 + bwipp_parseinput(); //#26359 + var _C = $k[--$j]; //#26359 + $_[$k[--$j]] = _C; //#26359 + $_.msglen = $_.msg.length; //#26360 $_.addtobits = function() { - var _F = $k[--$j]; //#26066 - $puti($_.bits, $_.j, _F); //#26066 - $_.j = _F.length + $_.j; //#26067 - }; //#26067 + var _F = $k[--$j]; //#26381 + $puti($_.bits, $_.j, _F); //#26381 + $_.j = _F.length + $_.j; //#26382 + }; //#26382 $_.tofixedbits = function() { - var _K = $strcpy($s(13), "0000000000000"); //#26071 - var _L = $k[--$j]; //#26071 - var _O = $cvrs($s(13), $k[--$j], 2); //#26071 - $puti(_K, $f(_L - _O.length), _O); //#26072 - $k[$j++] = $geti(_K, 0, _L); //#26073 - }; //#26073 - var _R = ($_.msglen <= 15) ? 4 : 17; //#26077 - $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26077 - $_.j = 0; //#26078 - $k[$j++] = 31; //#26079 - $k[$j++] = 5; //#26079 - $_.tofixedbits(); //#26079 - $_.addtobits(); //#26079 - $k[$j++] = "00"; //#26080 - $_.addtobits(); //#26080 - if ($_.msglen <= 15) { //#26085 - $k[$j++] = $_.msglen; //#26082 - $k[$j++] = 4; //#26082 - $_.tofixedbits(); //#26082 - $_.addtobits(); //#26082 - } else { //#26085 - $k[$j++] = "0000"; //#26084 - $_.addtobits(); //#26084 - $k[$j++] = $_.msglen - 16; //#26085 - $k[$j++] = 13; //#26085 - $_.tofixedbits(); //#26085 - $_.addtobits(); //#26085 - } //#26085 - for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26089 - $k[$j++] = $get($_.msg, _Z); //#26088 - $k[$j++] = 8; //#26088 - $_.tofixedbits(); //#26088 - $_.addtobits(); //#26088 - } //#26088 - $k[$j++] = 28; //#26090 - $k[$j++] = 5; //#26090 - $_.tofixedbits(); //#26090 - $_.addtobits(); //#26090 - $k[$j++] = 31; //#26091 - $k[$j++] = 5; //#26091 - $_.tofixedbits(); //#26091 - $_.addtobits(); //#26091 - $k[$j++] = "11"; //#26092 - $_.addtobits(); //#26092 - $_.diffside = 21; //#26095 - $_.sameshape = false; //#26096 - $_.sameecc = false; //#26097 - $_.hasslaves = false; //#26098 + var _K = $strcpy($s(13), "0000000000000"); //#26386 + var _L = $k[--$j]; //#26386 + var _O = $cvrs($s(13), $k[--$j], 2); //#26386 + $puti(_K, $f(_L - _O.length), _O); //#26387 + $k[$j++] = $geti(_K, 0, _L); //#26388 + }; //#26388 + var _R = ($_.msglen <= 15) ? 4 : 17; //#26392 + $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26392 + $_.j = 0; //#26393 + $k[$j++] = 31; //#26394 + $k[$j++] = 5; //#26394 + $_.tofixedbits(); //#26394 + $_.addtobits(); //#26394 + $k[$j++] = "00"; //#26395 + $_.addtobits(); //#26395 + if ($_.msglen <= 15) { //#26400 + $k[$j++] = $_.msglen; //#26397 + $k[$j++] = 4; //#26397 + $_.tofixedbits(); //#26397 + $_.addtobits(); //#26397 + } else { //#26400 + $k[$j++] = "0000"; //#26399 + $_.addtobits(); //#26399 + $k[$j++] = $_.msglen - 16; //#26400 + $k[$j++] = 13; //#26400 + $_.tofixedbits(); //#26400 + $_.addtobits(); //#26400 + } //#26400 + for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26404 + $k[$j++] = $get($_.msg, _Z); //#26403 + $k[$j++] = 8; //#26403 + $_.tofixedbits(); //#26403 + $_.addtobits(); //#26403 + } //#26403 + $k[$j++] = 28; //#26405 + $k[$j++] = 5; //#26405 + $_.tofixedbits(); //#26405 + $_.addtobits(); //#26405 + $k[$j++] = 31; //#26406 + $k[$j++] = 5; //#26406 + $_.tofixedbits(); //#26406 + $_.addtobits(); //#26406 + $k[$j++] = "11"; //#26407 + $_.addtobits(); //#26407 + $_.diffside = 21; //#26410 + $_.sameshape = false; //#26411 + $_.sameecc = false; //#26412 + $_.hasslaves = false; //#26413 $_.metrics = function() { - $_.mc = $k[--$j]; //#26102 - $_.mr = $k[--$j]; //#26102 - var _e = $_.mc; //#26103 - var _f = $_.mr; //#26103 - var _g = $_.mc; //#26104 - var _h = $_.mr; //#26104 - var _i = $_.colors; //#26106 - var _j = 64; //#26106 - if (64 > _i) { //#26106 - var _ = _i; //#26106 - _i = _j; //#26106 - _j = _; //#26106 - } //#26106 - var _l = $_.slave ? 7 : 17; //#26107 - $k[$j++] = _e * _f; //#26135 - $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26135 - $k[$j++] = _j * 2; //#26135 - $k[$j++] = _l * 4; //#26135 - if (!$_.slave) { //#26134 - var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26111 - $_.metass = _p; //#26111 - var _q = $_.mr; //#26112 - var _r = $_.mc; //#26112 - if ($lt(_q, _r)) { //#26112 - var _ = _r; //#26112 - _r = _q; //#26112 - _q = _; //#26112 - } //#26112 - $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26113 - $k[$j++] = 'metavlen'; //#26114 - if ($_.metass == 0) { //#26114 - $k[$j++] = $a([2, 2, 3, 4]); //#26114 - } else { //#26114 - $k[$j++] = $a([4, 6, 8, 10]); //#26114 - } //#26114 - var _z = $get($k[--$j], $_.metavf); //#26114 - $_[$k[--$j]] = _z; //#26114 - $_.metaelen = $f(($_.metavf * 2) + 10); //#26115 - $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26118 - if ($_.hasslaves) { //#26118 - var _15 = $k[--$j]; //#26118 - $k[$j++] = $f(_15 + 4); //#26118 - } //#26118 - var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26121 - $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26121 - $k[$j++] = _18 + 6; //#26122 - } else { //#26134 - $k[$j++] = 3; //#26125 - if (!$_.sameshape) { //#26125 - var _1B = $k[--$j]; //#26125 - $k[$j++] = $f(_1B + 5); //#26125 - } //#26125 - if ($_.hasslaves) { //#26126 - var _1D = $k[--$j]; //#26126 - $k[$j++] = $f(_1D + 3); //#26126 - } //#26126 - if (!$_.sameecc) { //#26131 - var _1F = $_.mr; //#26128 - var _1G = $_.mc; //#26128 - if ($lt(_1F, _1G)) { //#26128 - var _ = _1G; //#26128 - _1G = _1F; //#26128 - _1F = _; //#26128 - } //#26128 - var _1J = $k[--$j]; //#26130 - $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26130 - } //#26130 - var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26134 - $_.nummetabits = _1M * $_.metabpm; //#26134 - $k[$j++] = _1M; //#26134 - } //#26134 - var _1O = $k[--$j]; //#26137 - $_.nummetamodules = _1O; //#26137 - var _1P = $k[--$j]; //#26138 - var _1Q = $k[--$j]; //#26138 - var _1R = $k[--$j]; //#26138 - $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26138 - $_.numdatabits = $_.numdatamodules * $_.databpm; //#26139 - }; //#26139 - $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26143 - $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26144 + $_.mc = $k[--$j]; //#26417 + $_.mr = $k[--$j]; //#26417 + var _e = $_.mc; //#26418 + var _f = $_.mr; //#26418 + var _g = $_.mc; //#26419 + var _h = $_.mr; //#26419 + var _i = $_.colors; //#26421 + var _j = 64; //#26421 + if (64 > _i) { //#26421 + var _ = _i; //#26421 + _i = _j; //#26421 + _j = _; //#26421 + } //#26421 + var _l = $_.slave ? 7 : 17; //#26422 + $k[$j++] = _e * _f; //#26450 + $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26450 + $k[$j++] = _j * 2; //#26450 + $k[$j++] = _l * 4; //#26450 + if (!$_.slave) { //#26449 + var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26426 + $_.metass = _p; //#26426 + var _q = $_.mr; //#26427 + var _r = $_.mc; //#26427 + if ($lt(_q, _r)) { //#26427 + var _ = _r; //#26427 + _r = _q; //#26427 + _q = _; //#26427 + } //#26427 + $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26428 + $k[$j++] = 'metavlen'; //#26429 + if ($_.metass == 0) { //#26429 + $k[$j++] = $a([2, 2, 3, 4]); //#26429 + } else { //#26429 + $k[$j++] = $a([4, 6, 8, 10]); //#26429 + } //#26429 + var _z = $get($k[--$j], $_.metavf); //#26429 + $_[$k[--$j]] = _z; //#26429 + $_.metaelen = $f(($_.metavf * 2) + 10); //#26430 + $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26433 + if ($_.hasslaves) { //#26433 + var _15 = $k[--$j]; //#26433 + $k[$j++] = $f(_15 + 4); //#26433 + } //#26433 + var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26436 + $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26436 + $k[$j++] = _18 + 6; //#26437 + } else { //#26449 + $k[$j++] = 3; //#26440 + if (!$_.sameshape) { //#26440 + var _1B = $k[--$j]; //#26440 + $k[$j++] = $f(_1B + 5); //#26440 + } //#26440 + if ($_.hasslaves) { //#26441 + var _1D = $k[--$j]; //#26441 + $k[$j++] = $f(_1D + 3); //#26441 + } //#26441 + if (!$_.sameecc) { //#26446 + var _1F = $_.mr; //#26443 + var _1G = $_.mc; //#26443 + if ($lt(_1F, _1G)) { //#26443 + var _ = _1G; //#26443 + _1G = _1F; //#26443 + _1F = _; //#26443 + } //#26443 + var _1J = $k[--$j]; //#26445 + $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26445 + } //#26445 + var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26449 + $_.nummetabits = _1M * $_.metabpm; //#26449 + $k[$j++] = _1M; //#26449 + } //#26449 + var _1O = $k[--$j]; //#26452 + $_.nummetamodules = _1O; //#26452 + var _1P = $k[--$j]; //#26453 + var _1Q = $k[--$j]; //#26453 + var _1R = $k[--$j]; //#26453 + $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26453 + $_.numdatabits = $_.numdatamodules * $_.databpm; //#26454 + }; //#26454 + $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26458 + $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26459 $_.snapsize = function() { - var _1b = (~~Math.ceil($k[--$j])) - 18; //#26145 - $k[$j++] = _1b; //#26145 - if (_1b < 0) { //#26145 - $j--; //#26145 - $k[$j++] = 0; //#26145 - } //#26145 - var _1c = $k[--$j]; //#26145 - $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26145 - }; //#26145 - if (($_.rows == -1) && ($_.columns == -1)) { //#26174 - $k[$j++] = 'size'; //#26148 - $k[$j++] = Math.sqrt($_.grosslen); //#26148 - $_.snapsize(); //#26148 - var _1g = $k[--$j]; //#26148 - $_[$k[--$j]] = _1g; //#26148 - for (;;) { //#26153 - $k[$j++] = $_.size; //#26150 - $k[$j++] = $_.size; //#26150 - $_.metrics(); //#26150 - if ($_.grosslen <= $_.numdatabits) { //#26151 - break; //#26151 - } //#26151 - $_.size = $f($_.size + 4); //#26152 - } //#26152 - $_.rows = $_.size; //#26154 - $_.columns = $_.size; //#26155 - } else { //#26174 - if (($_.columns == -1) && ($_.rows != -1)) { //#26164 - $k[$j++] = 'columns'; //#26158 - $k[$j++] = $_.grosslen / $_.rows; //#26158 - $_.snapsize(); //#26158 - var _1t = $k[--$j]; //#26158 - $_[$k[--$j]] = _1t; //#26158 - for (;;) { //#26163 - $k[$j++] = $_.rows; //#26160 - $k[$j++] = $_.columns; //#26160 - $_.metrics(); //#26160 - if ($_.grosslen <= $_.numdatabits) { //#26161 - break; //#26161 - } //#26161 - $_.columns = $f($_.columns + 4); //#26162 - } //#26162 - } //#26162 - if (($_.rows == -1) && ($_.columns != -1)) { //#26172 - $k[$j++] = 'rows'; //#26166 - $k[$j++] = $_.grosslen / $_.columns; //#26166 - $_.snapsize(); //#26166 - var _24 = $k[--$j]; //#26166 - $_[$k[--$j]] = _24; //#26166 - for (;;) { //#26171 - $k[$j++] = $_.rows; //#26168 - $k[$j++] = $_.columns; //#26168 - $_.metrics(); //#26168 - if ($_.grosslen <= $_.numdatabits) { //#26169 - break; //#26169 - } //#26169 - $_.rows = $f($_.rows + 4); //#26170 - } //#26170 - } //#26170 - if (($_.rows != -1) && ($_.columns != -1)) { //#26175 - $k[$j++] = $_.rows; //#26174 - $k[$j++] = $_.columns; //#26174 - $_.metrics(); //#26174 - } //#26174 - } //#26174 - $_.C = $_.numdatabits; //#26177 - $_.cols = $_.columns; //#26178 - if (($_.rows > 145) || ($_.cols > 145)) { //#26183 - $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26182'; //#26182 - $k[$j++] = "Maximum length exceeded or invalid content"; //#26182 - bwipp_raiseerror(); //#26182 - } //#26182 - $_.min = $_.C; //#26186 - for (var _2K = 3; _2K <= 8; _2K += 1) { //#26198 - $_.i = _2K; //#26188 - for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26197 - $_.j = _2M; //#26190 - $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26191 - if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26196 - $_.datawc = $_.i; //#26193 - $_.datawr = $_.j; //#26194 - $_.min = $_.dist; //#26195 - } //#26195 - } //#26195 - } //#26195 - $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26201 - $puti($_.tmpbits, 0, $_.bits); //#26202 - for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26206 - var _2o = $get($_.tmpbits, _2m - 1); //#26204 - $k[$j++] = _2m; //#26204 - $k[$j++] = _2o; //#26204 - if ((_2o % 2) == 0) { //#26204 - var _2p = $k[--$j]; //#26204 - $k[$j++] = $f(_2p + 1); //#26204 - } else { //#26204 - var _2q = $k[--$j]; //#26204 - $k[$j++] = $f(_2q - 1); //#26204 - } //#26204 - var _2s = $k[--$j]; //#26205 - $put($_.tmpbits, $k[--$j], _2s); //#26205 - } //#26205 - $_.bits = $_.tmpbits; //#26207 - $_.m0 = 22609 + 1; //#26211 - $_.m1 = 62509 - 65536; //#26211 - $_.m2 = 19605; //#26211 - $_.m3 = 32557; //#26211 + var _1b = (~~Math.ceil($k[--$j])) - 18; //#26460 + $k[$j++] = _1b; //#26460 + if (_1b < 0) { //#26460 + $j--; //#26460 + $k[$j++] = 0; //#26460 + } //#26460 + var _1c = $k[--$j]; //#26460 + $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26460 + }; //#26460 + if (($_.rows == -1) && ($_.columns == -1)) { //#26489 + $k[$j++] = 'size'; //#26463 + $k[$j++] = Math.sqrt($_.grosslen); //#26463 + $_.snapsize(); //#26463 + var _1g = $k[--$j]; //#26463 + $_[$k[--$j]] = _1g; //#26463 + for (;;) { //#26468 + $k[$j++] = $_.size; //#26465 + $k[$j++] = $_.size; //#26465 + $_.metrics(); //#26465 + if ($_.grosslen <= $_.numdatabits) { //#26466 + break; //#26466 + } //#26466 + $_.size = $f($_.size + 4); //#26467 + } //#26467 + $_.rows = $_.size; //#26469 + $_.columns = $_.size; //#26470 + } else { //#26489 + if (($_.columns == -1) && ($_.rows != -1)) { //#26479 + $k[$j++] = 'columns'; //#26473 + $k[$j++] = $_.grosslen / $_.rows; //#26473 + $_.snapsize(); //#26473 + var _1t = $k[--$j]; //#26473 + $_[$k[--$j]] = _1t; //#26473 + for (;;) { //#26478 + $k[$j++] = $_.rows; //#26475 + $k[$j++] = $_.columns; //#26475 + $_.metrics(); //#26475 + if ($_.grosslen <= $_.numdatabits) { //#26476 + break; //#26476 + } //#26476 + $_.columns = $f($_.columns + 4); //#26477 + } //#26477 + } //#26477 + if (($_.rows == -1) && ($_.columns != -1)) { //#26487 + $k[$j++] = 'rows'; //#26481 + $k[$j++] = $_.grosslen / $_.columns; //#26481 + $_.snapsize(); //#26481 + var _24 = $k[--$j]; //#26481 + $_[$k[--$j]] = _24; //#26481 + for (;;) { //#26486 + $k[$j++] = $_.rows; //#26483 + $k[$j++] = $_.columns; //#26483 + $_.metrics(); //#26483 + if ($_.grosslen <= $_.numdatabits) { //#26484 + break; //#26484 + } //#26484 + $_.rows = $f($_.rows + 4); //#26485 + } //#26485 + } //#26485 + if (($_.rows != -1) && ($_.columns != -1)) { //#26490 + $k[$j++] = $_.rows; //#26489 + $k[$j++] = $_.columns; //#26489 + $_.metrics(); //#26489 + } //#26489 + } //#26489 + $_.C = $_.numdatabits; //#26492 + $_.cols = $_.columns; //#26493 + if (($_.rows > 145) || ($_.cols > 145)) { //#26498 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26497'; //#26497 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26497 + bwipp_raiseerror(); //#26497 + } //#26497 + $_.min = $_.C; //#26501 + for (var _2K = 3; _2K <= 8; _2K += 1) { //#26513 + $_.i = _2K; //#26503 + for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26512 + $_.j = _2M; //#26505 + $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26506 + if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26511 + $_.datawc = $_.i; //#26508 + $_.datawr = $_.j; //#26509 + $_.min = $_.dist; //#26510 + } //#26510 + } //#26510 + } //#26510 + $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26516 + $puti($_.tmpbits, 0, $_.bits); //#26517 + for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26521 + var _2o = $get($_.tmpbits, _2m - 1); //#26519 + $k[$j++] = _2m; //#26519 + $k[$j++] = _2o; //#26519 + if ((_2o % 2) == 0) { //#26519 + var _2p = $k[--$j]; //#26519 + $k[$j++] = $f(_2p + 1); //#26519 + } else { //#26519 + var _2q = $k[--$j]; //#26519 + $k[$j++] = $f(_2q - 1); //#26519 + } //#26519 + var _2s = $k[--$j]; //#26520 + $put($_.tmpbits, $k[--$j], _2s); //#26520 + } //#26520 + $_.bits = $_.tmpbits; //#26522 + $_.m0 = 22609 + 1; //#26526 + $_.m1 = 62509 - 65536; //#26526 + $_.m2 = 19605; //#26526 + $_.m3 = 32557; //#26526 $_.lcg64_temper = function() { - $_.p00 = $_.m0 * $_.s0; //#26217 - $_.p01 = $_.m0 * $_.s1; //#26217 - $_.p02 = $_.m0 * $_.s2; //#26217 - $_.p03 = $_.m0 * $_.s3; //#26217 - $_.p10 = $_.m1 * $_.s0; //#26218 - $_.p11 = $_.m1 * $_.s1; //#26218 - $_.p12 = $_.m1 * $_.s2; //#26218 - $_.p13 = $_.m1 * $_.s3; //#26218 - $_.p20 = $_.m2 * $_.s0; //#26219 - $_.p21 = $_.m2 * $_.s1; //#26219 - $_.p22 = $_.m2 * $_.s2; //#26219 - $_.p23 = $_.m2 * $_.s3; //#26219 - $_.p30 = $_.m3 * $_.s0; //#26220 - $_.p31 = $_.m3 * $_.s1; //#26220 - $_.p32 = $_.m3 * $_.s2; //#26220 - $_.p33 = $_.m3 * $_.s3; //#26220 - $_.s3 = ($_.p33 % 65536) + 1; //#26222 - $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26224 - $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26227 - $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26231 - $_.s3 = $_.s3 + 65536; //#26234 - $_.s2 = $_.s2 + 65535; //#26235 - $_.s1 = $_.s1 + 65535; //#26236 - $_.s0 = $_.s0 + 65535; //#26237 - $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26240 - $_.s3 = $_.s3 % 65536; //#26240 - $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26241 - $_.s2 = $_.s2 % 65536; //#26241 - $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26242 - $_.s1 = $_.s1 % 65536; //#26242 - $_.s0 = $_.s0 % 65536; //#26243 - var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26248 - var _3y = _3x ^ (_3x >>> 11); //#26249 - var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26250 - var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26252 - $k[$j++] = _40 ^ (_40 >>> 18); //#26252 - }; //#26252 + $_.p00 = $_.m0 * $_.s0; //#26532 + $_.p01 = $_.m0 * $_.s1; //#26532 + $_.p02 = $_.m0 * $_.s2; //#26532 + $_.p03 = $_.m0 * $_.s3; //#26532 + $_.p10 = $_.m1 * $_.s0; //#26533 + $_.p11 = $_.m1 * $_.s1; //#26533 + $_.p12 = $_.m1 * $_.s2; //#26533 + $_.p13 = $_.m1 * $_.s3; //#26533 + $_.p20 = $_.m2 * $_.s0; //#26534 + $_.p21 = $_.m2 * $_.s1; //#26534 + $_.p22 = $_.m2 * $_.s2; //#26534 + $_.p23 = $_.m2 * $_.s3; //#26534 + $_.p30 = $_.m3 * $_.s0; //#26535 + $_.p31 = $_.m3 * $_.s1; //#26535 + $_.p32 = $_.m3 * $_.s2; //#26535 + $_.p33 = $_.m3 * $_.s3; //#26535 + $_.s3 = ($_.p33 % 65536) + 1; //#26537 + $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26539 + $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26542 + $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26546 + $_.s3 = $_.s3 + 65536; //#26549 + $_.s2 = $_.s2 + 65535; //#26550 + $_.s1 = $_.s1 + 65535; //#26551 + $_.s0 = $_.s0 + 65535; //#26552 + $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26555 + $_.s3 = $_.s3 % 65536; //#26555 + $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26556 + $_.s2 = $_.s2 % 65536; //#26556 + $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26557 + $_.s1 = $_.s1 % 65536; //#26557 + $_.s0 = $_.s0 % 65536; //#26558 + var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26563 + var _3y = _3x ^ (_3x >>> 11); //#26564 + var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26565 + var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26567 + $k[$j++] = _40 ^ (_40 >>> 18); //#26567 + }; //#26567 $_.createMatrixA = function() { - $k[$j++] = 'nb_pcb'; //#26258 - if ($_.wr < 4) { //#26258 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26258 - } else { //#26258 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26258 - } //#26258 - var _46 = $k[--$j]; //#26258 - $_[$k[--$j]] = _46; //#26258 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26259 - $_.effwidth = $_.offset * 32; //#26260 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26261 - for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26262 - $put($_.matrixA, _4G, 0); //#26262 - } //#26262 - $_.permutation = $a($_.Pg_sub_block); //#26263 - for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26264 - $put($_.permutation, _4M, _4M); //#26264 - } //#26264 - for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26273 - $_.i = _4R; //#26267 - for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26272 - $_.j = _4U; //#26269 - var _4V = $_.matrixA; //#26270 - var _4W = $_.i; //#26270 - var _4X = $_.effwidth; //#26270 - var _4Y = $_.wr; //#26270 - var _4Z = $_.j; //#26270 - var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26271 - $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26271 - } //#26271 - } //#26271 - $_.s0 = 0; //#26276 - $_.s1 = 0; //#26276 - $_.s2 = 11; //#26276 - $_.s3 = 64569; //#26276 - for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26299 - $_.i = _4i; //#26278 - $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26279 - for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26298 - $_.j = _4o; //#26281 - $_.lcg64_temper(); //#26282 - var _4p = $k[--$j]; //#26283 - $k[$j++] = _4p; //#26283 - if (_4p < 0) { //#26283 - var _4q = $k[--$j]; //#26283 - $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26283 - } //#26283 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26285 - for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26294 - $_.k = _4x; //#26287 - var _4y = $_.matrixA; //#26288 - var _4z = $_.off_index; //#26288 - var _50 = $_.k; //#26288 - var _51 = $_.offset; //#26288 - var _52 = $_.j; //#26288 - var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26290 - var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26291 - var _5G = 31 - ($_.j % 32); //#26292 - $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26293 - } //#26293 - var _5J = $_.permutation; //#26295 - var _5K = $_.Pg_sub_block; //#26295 - var _5L = $_.j; //#26295 - $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26297 - $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26297 - } //#26297 - } //#26297 - }; //#26297 + $k[$j++] = 'nb_pcb'; //#26573 + if ($_.wr < 4) { //#26573 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26573 + } else { //#26573 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26573 + } //#26573 + var _46 = $k[--$j]; //#26573 + $_[$k[--$j]] = _46; //#26573 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26574 + $_.effwidth = $_.offset * 32; //#26575 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26576 + for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26577 + $put($_.matrixA, _4G, 0); //#26577 + } //#26577 + $_.permutation = $a($_.Pg_sub_block); //#26578 + for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26579 + $put($_.permutation, _4M, _4M); //#26579 + } //#26579 + for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26588 + $_.i = _4R; //#26582 + for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26587 + $_.j = _4U; //#26584 + var _4V = $_.matrixA; //#26585 + var _4W = $_.i; //#26585 + var _4X = $_.effwidth; //#26585 + var _4Y = $_.wr; //#26585 + var _4Z = $_.j; //#26585 + var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26586 + $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26586 + } //#26586 + } //#26586 + $_.s0 = 0; //#26591 + $_.s1 = 0; //#26591 + $_.s2 = 11; //#26591 + $_.s3 = 64569; //#26591 + for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26614 + $_.i = _4i; //#26593 + $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26594 + for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26613 + $_.j = _4o; //#26596 + $_.lcg64_temper(); //#26597 + var _4p = $k[--$j]; //#26598 + $k[$j++] = _4p; //#26598 + if (_4p < 0) { //#26598 + var _4q = $k[--$j]; //#26598 + $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26598 + } //#26598 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26600 + for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26609 + $_.k = _4x; //#26602 + var _4y = $_.matrixA; //#26603 + var _4z = $_.off_index; //#26603 + var _50 = $_.k; //#26603 + var _51 = $_.offset; //#26603 + var _52 = $_.j; //#26603 + var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26605 + var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26606 + var _5G = 31 - ($_.j % 32); //#26607 + $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26608 + } //#26608 + var _5J = $_.permutation; //#26610 + var _5K = $_.Pg_sub_block; //#26610 + var _5L = $_.j; //#26610 + $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26612 + $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26612 + } //#26612 + } //#26612 + }; //#26612 $_.createMetadataMatrixA = function() { - $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26305 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26306 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26307 - for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26308 - $put($_.matrixA, _5Y, 0); //#26308 - } //#26308 - $_.permutation = $a($_.Pg_sub_block); //#26309 - for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26310 - $put($_.permutation, _5e, _5e); //#26310 - } //#26310 - $_.s0 = 0; //#26313 - $_.s1 = 0; //#26313 - $_.s2 = 0; //#26313 - $_.s3 = 38545; //#26313 - $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26314 - for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26329 - $_.i = _5m; //#26316 - for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26328 - $_.j = _5p; //#26318 - $_.lcg64_temper(); //#26319 - var _5q = $k[--$j]; //#26320 - $k[$j++] = _5q; //#26320 - if (_5q < 0) { //#26320 - var _5r = $k[--$j]; //#26320 - $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26320 - } //#26320 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26322 - var _5v = $_.matrixA; //#26323 - var _5w = $_.i; //#26323 - var _5x = $_.offset; //#26323 - var _60 = $get($_.permutation, $_.pos); //#26323 - var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26324 - $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26324 - var _68 = $_.permutation; //#26325 - var _69 = $_.Pg_sub_block; //#26325 - var _6A = $_.j; //#26325 - $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26327 - $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26327 - } //#26327 - } //#26327 - }; //#26327 + $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26620 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26621 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26622 + for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26623 + $put($_.matrixA, _5Y, 0); //#26623 + } //#26623 + $_.permutation = $a($_.Pg_sub_block); //#26624 + for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26625 + $put($_.permutation, _5e, _5e); //#26625 + } //#26625 + $_.s0 = 0; //#26628 + $_.s1 = 0; //#26628 + $_.s2 = 0; //#26628 + $_.s3 = 38545; //#26628 + $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26629 + for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26644 + $_.i = _5m; //#26631 + for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26643 + $_.j = _5p; //#26633 + $_.lcg64_temper(); //#26634 + var _5q = $k[--$j]; //#26635 + $k[$j++] = _5q; //#26635 + if (_5q < 0) { //#26635 + var _5r = $k[--$j]; //#26635 + $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26635 + } //#26635 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26637 + var _5v = $_.matrixA; //#26638 + var _5w = $_.i; //#26638 + var _5x = $_.offset; //#26638 + var _60 = $get($_.permutation, $_.pos); //#26638 + var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26639 + $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26639 + var _68 = $_.permutation; //#26640 + var _69 = $_.Pg_sub_block; //#26640 + var _6A = $_.j; //#26640 + $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26642 + $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26642 + } //#26642 + } //#26642 + }; //#26642 $_.GaussJordan = function() { - $k[$j++] = 'nb_pcb'; //#26335 - if ($_.wr < 4) { //#26335 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26335 - } else { //#26335 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26335 - } //#26335 - var _6K = $k[--$j]; //#26335 - $_[$k[--$j]] = _6K; //#26335 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26336 - var _6N = $_.matrixA; //#26337 - $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26337 - $k[$j++] = Infinity; //#26338 - for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26338 - $k[$j++] = 0; //#26338 - } //#26338 - $_.column_arrangement = $a(); //#26338 - $k[$j++] = Infinity; //#26339 - for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26339 - $k[$j++] = false; //#26339 - } //#26339 - $_.processed_column = $a(); //#26339 - $k[$j++] = Infinity; //#26340 - for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26340 - $k[$j++] = 0; //#26340 - } //#26340 - $_.zero_lines_nb = $a(); //#26340 - $k[$j++] = Infinity; //#26341 - for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26341 - $k[$j++] = 0; //#26341 - } //#26341 - $_.swap_col = $a(); //#26341 - $_.zero_lines = 0; //#26342 - $_.loop0 = 0; //#26344 - for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26382 - $_.i = _6i; //#26346 - $_.pivot_column = $_.Pg_sub_block + 1; //#26347 - for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26355 - $_.j = _6m; //#26349 - var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26350 - var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26351 - if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26354 - $_.pivot_column = $_.j; //#26352 - break; //#26353 - } //#26353 - } //#26353 - if ($_.pivot_column < $_.Pg_sub_block) { //#26380 - $put($_.processed_column, $_.pivot_column, true); //#26357 - $put($_.column_arrangement, $_.pivot_column, $_.i); //#26358 - if ($_.pivot_column >= $_.nb_pcb) { //#26362 - $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26360 - $_.loop0 = $_.loop0 + 1; //#26361 - } //#26361 - $_.off_index = ~~($_.pivot_column / 32); //#26363 - $_.off_index1 = $_.pivot_column % 32; //#26364 - for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26377 - $_.j = _7E; //#26366 - if ($_.i != $_.j) { //#26376 - var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26368 - var _7N = -(31 - $_.off_index1); //#26369 - if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26375 - for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26374 - $_.k = _7Q; //#26371 - var _7R = $_.matrixH; //#26372 - var _7S = $_.offset; //#26372 - var _7T = $_.j; //#26372 - var _7U = $_.k; //#26372 - $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26373 - } //#26373 - } //#26373 - } //#26373 - } //#26373 - } else { //#26380 - $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26379 - $_.zero_lines = $_.zero_lines + 1; //#26380 - } //#26380 - } //#26380 - $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26384 - $_.loop2 = 0; //#26385 - for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26405 - $_.i = _7k; //#26387 - if ($get($_.column_arrangement, $_.i) > 0) { //#26404 - for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26403 - $_.j = _7q; //#26390 - if ($nt($get($_.processed_column, $_.j))) { //#26402 - $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26392 - $put($_.column_arrangement, $_.i, 0); //#26393 - $put($_.processed_column, $_.j, true); //#26394 - $put($_.processed_column, $_.i, false); //#26395 - $put($_.swap_col, $_.loop0 * 2, $_.i); //#26396 - $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26397 - $put($_.column_arrangement, $_.i, $_.j); //#26398 - $_.loop0 = $_.loop0 + 1; //#26399 - $_.loop2 = $_.loop2 + 1; //#26400 - break; //#26401 - } //#26401 - } //#26401 - } //#26401 - } //#26401 - $_.loop1 = 0; //#26407 - for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26416 - $_.kl = _8I; //#26409 - if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26415 - $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26411 - $put($_.processed_column, $_.kl, true); //#26412 - $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26413 - $_.loop1 = $_.loop1 + 1; //#26414 - } //#26414 - } //#26414 - $_.loop1 = 0; //#26418 - for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26425 - $_.kl = _8e; //#26420 - if ($nt($get($_.processed_column, $_.kl))) { //#26424 - $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26422 - $_.loop1 = $_.loop1 + 1; //#26423 - } //#26423 - } //#26423 - for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26434 - $_.i = _8q; //#26428 - for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26433 - $_.j = _8t; //#26430 - $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26432 - } //#26432 - } //#26432 - $_.tmp = 0; //#26436 - for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26458 - $_.i = _97; //#26438 - for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26457 - $_.j = _9A; //#26440 - var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26441 - var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26442 - $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26443 - var _9O = $_.matrixA; //#26444 - var _9R = $get($_.swap_col, $_.i * 2); //#26444 - var _9S = $_.j; //#26444 - var _9T = $_.offset; //#26444 - var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26446 - var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26447 - var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26449 - $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26450 - var _9r = $_.matrixA; //#26451 - var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26451 - var _9v = $_.j; //#26451 - var _9w = $_.offset; //#26451 - var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26455 - $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26456 - } //#26456 - } //#26456 - }; //#26456 + $k[$j++] = 'nb_pcb'; //#26650 + if ($_.wr < 4) { //#26650 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26650 + } else { //#26650 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26650 + } //#26650 + var _6K = $k[--$j]; //#26650 + $_[$k[--$j]] = _6K; //#26650 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26651 + var _6N = $_.matrixA; //#26652 + $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26652 + $k[$j++] = Infinity; //#26653 + for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26653 + $k[$j++] = 0; //#26653 + } //#26653 + $_.column_arrangement = $a(); //#26653 + $k[$j++] = Infinity; //#26654 + for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26654 + $k[$j++] = false; //#26654 + } //#26654 + $_.processed_column = $a(); //#26654 + $k[$j++] = Infinity; //#26655 + for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26655 + $k[$j++] = 0; //#26655 + } //#26655 + $_.zero_lines_nb = $a(); //#26655 + $k[$j++] = Infinity; //#26656 + for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26656 + $k[$j++] = 0; //#26656 + } //#26656 + $_.swap_col = $a(); //#26656 + $_.zero_lines = 0; //#26657 + $_.loop0 = 0; //#26659 + for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26697 + $_.i = _6i; //#26661 + $_.pivot_column = $_.Pg_sub_block + 1; //#26662 + for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26670 + $_.j = _6m; //#26664 + var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26665 + var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26666 + if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26669 + $_.pivot_column = $_.j; //#26667 + break; //#26668 + } //#26668 + } //#26668 + if ($_.pivot_column < $_.Pg_sub_block) { //#26695 + $put($_.processed_column, $_.pivot_column, true); //#26672 + $put($_.column_arrangement, $_.pivot_column, $_.i); //#26673 + if ($_.pivot_column >= $_.nb_pcb) { //#26677 + $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26675 + $_.loop0 = $_.loop0 + 1; //#26676 + } //#26676 + $_.off_index = ~~($_.pivot_column / 32); //#26678 + $_.off_index1 = $_.pivot_column % 32; //#26679 + for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26692 + $_.j = _7E; //#26681 + if ($_.i != $_.j) { //#26691 + var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26683 + var _7N = -(31 - $_.off_index1); //#26684 + if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26690 + for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26689 + $_.k = _7Q; //#26686 + var _7R = $_.matrixH; //#26687 + var _7S = $_.offset; //#26687 + var _7T = $_.j; //#26687 + var _7U = $_.k; //#26687 + $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26688 + } //#26688 + } //#26688 + } //#26688 + } //#26688 + } else { //#26695 + $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26694 + $_.zero_lines = $_.zero_lines + 1; //#26695 + } //#26695 + } //#26695 + $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26699 + $_.loop2 = 0; //#26700 + for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26720 + $_.i = _7k; //#26702 + if ($get($_.column_arrangement, $_.i) > 0) { //#26719 + for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26718 + $_.j = _7q; //#26705 + if ($nt($get($_.processed_column, $_.j))) { //#26717 + $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26707 + $put($_.column_arrangement, $_.i, 0); //#26708 + $put($_.processed_column, $_.j, true); //#26709 + $put($_.processed_column, $_.i, false); //#26710 + $put($_.swap_col, $_.loop0 * 2, $_.i); //#26711 + $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26712 + $put($_.column_arrangement, $_.i, $_.j); //#26713 + $_.loop0 = $_.loop0 + 1; //#26714 + $_.loop2 = $_.loop2 + 1; //#26715 + break; //#26716 + } //#26716 + } //#26716 + } //#26716 + } //#26716 + $_.loop1 = 0; //#26722 + for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26731 + $_.kl = _8I; //#26724 + if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26730 + $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26726 + $put($_.processed_column, $_.kl, true); //#26727 + $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26728 + $_.loop1 = $_.loop1 + 1; //#26729 + } //#26729 + } //#26729 + $_.loop1 = 0; //#26733 + for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26740 + $_.kl = _8e; //#26735 + if ($nt($get($_.processed_column, $_.kl))) { //#26739 + $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26737 + $_.loop1 = $_.loop1 + 1; //#26738 + } //#26738 + } //#26738 + for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26749 + $_.i = _8q; //#26743 + for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26748 + $_.j = _8t; //#26745 + $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26747 + } //#26747 + } //#26747 + $_.tmp = 0; //#26751 + for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26773 + $_.i = _97; //#26753 + for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26772 + $_.j = _9A; //#26755 + var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26756 + var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26757 + $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26758 + var _9O = $_.matrixA; //#26759 + var _9R = $get($_.swap_col, $_.i * 2); //#26759 + var _9S = $_.j; //#26759 + var _9T = $_.offset; //#26759 + var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26761 + var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26762 + var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26764 + $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26765 + var _9r = $_.matrixA; //#26766 + var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26766 + var _9v = $_.j; //#26766 + var _9w = $_.offset; //#26766 + var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26770 + $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26771 + } //#26771 + } //#26771 + }; //#26771 $_.createGeneratorMatrix = function() { - $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26464 - $_.offset = ~~Math.ceil($_.pn / 32); //#26465 - $_.effwidth = $_.offset * 32; //#26466 - $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26467 - $_.G = $a($_.offset * $_.Pg_sub_block); //#26468 - for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26471 - $put($_.G, _AL, 0); //#26470 - } //#26470 - for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26476 - $_.i = _AP; //#26473 - var _AQ = $_.G; //#26474 - var _AR = $_.Pg_sub_block; //#26474 - var _AS = $_.pn; //#26474 - var _AT = $_.i; //#26474 - var _AU = $_.offset; //#26474 - var _AV = $_.i; //#26474 - var _AY = 31 - ($_.i % 32); //#26475 - $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26475 - } //#26475 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26477 - $_.loop0 = 0; //#26478 - for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26495 - $_.i = _Af; //#26480 - if ($_.matrix_index >= $_.Pg_sub_block) { //#26484 - $_.loop0 = $_.loop0 + 1; //#26482 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26483 - } //#26483 - if (($_.i % $_.effwidth) < $_.pn) { //#26494 - var _Ao = $_.G; //#26486 - var _Ap = $_.i; //#26486 - var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26488 - var _Ax = -(31 - ($_.matrix_index % 32)); //#26489 - var _B2 = 31 - ($_.i % 32); //#26491 - $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26492 - $_.matrix_index = $_.matrix_index + 1; //#26493 - } //#26493 - } //#26493 - }; //#26493 + $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26779 + $_.offset = ~~Math.ceil($_.pn / 32); //#26780 + $_.effwidth = $_.offset * 32; //#26781 + $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26782 + $_.G = $a($_.offset * $_.Pg_sub_block); //#26783 + for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26786 + $put($_.G, _AL, 0); //#26785 + } //#26785 + for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26791 + $_.i = _AP; //#26788 + var _AQ = $_.G; //#26789 + var _AR = $_.Pg_sub_block; //#26789 + var _AS = $_.pn; //#26789 + var _AT = $_.i; //#26789 + var _AU = $_.offset; //#26789 + var _AV = $_.i; //#26789 + var _AY = 31 - ($_.i % 32); //#26790 + $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26790 + } //#26790 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26792 + $_.loop0 = 0; //#26793 + for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26810 + $_.i = _Af; //#26795 + if ($_.matrix_index >= $_.Pg_sub_block) { //#26799 + $_.loop0 = $_.loop0 + 1; //#26797 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26798 + } //#26798 + if (($_.i % $_.effwidth) < $_.pn) { //#26809 + var _Ao = $_.G; //#26801 + var _Ap = $_.i; //#26801 + var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26803 + var _Ax = -(31 - ($_.matrix_index % 32)); //#26804 + var _B2 = 31 - ($_.i % 32); //#26806 + $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26807 + $_.matrix_index = $_.matrix_index + 1; //#26808 + } //#26808 + } //#26808 + }; //#26808 $_.ldpc = function() { - $_.wr = $k[--$j]; //#26501 - $_.wc = $k[--$j]; //#26502 - $k[$j++] = Infinity; //#26503 - var _B6 = $k[--$j]; //#26503 - var _B7 = $k[--$j]; //#26503 - $k[$j++] = _B6; //#26503 - $forall(_B7, function() { //#26503 - var _B8 = $k[--$j]; //#26503 - $k[$j++] = $f(_B8 - 48); //#26503 - }); //#26503 - $_.data = $a(); //#26503 - $_.Pn = $_.data.length; //#26505 - if ($_.wr != -1) { //#26520 - $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26507 - $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26508 - $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26509 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26510 - $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26511 - $k[$j++] = 'encoding_iterations'; //#26512 - $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26512 - if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26512 - var _BY = $k[--$j]; //#26512 - $k[$j++] = $f(_BY - 1); //#26512 - } //#26512 - var _BZ = $k[--$j]; //#26512 - $_[$k[--$j]] = _BZ; //#26512 - $_.createMatrixA(); //#26513 - } else { //#26520 - $_.Pg = $_.Pn * 2; //#26515 - $_.nb_sub_blocks = 1; //#26516 - $_.Pg_sub_block = $_.Pg; //#26517 - $_.Pn_sub_block = $_.Pn; //#26518 - $_.encoding_iterations = 1; //#26519 - $_.createMetadataMatrixA(); //#26520 - } //#26520 - $_.GaussJordan(); //#26522 - $_.createGeneratorMatrix(); //#26523 - $_.ecc_encoded_data = $a($_.Pg); //#26525 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26527 - for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26543 - $_.iter = _Bk; //#26529 - for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26542 - $_.i = _Bn; //#26531 - $_.temp = 0; //#26532 - $_.loop0 = 0; //#26533 - $_.offset_index = $_.offset * $_.i; //#26534 - for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26540 - var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26537 - var _C3 = -(31 - ($_.loop0 % 32)); //#26537 - $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26538 - $_.loop0 = $_.loop0 + 1; //#26539 - } //#26539 - $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26541 - } //#26541 - } //#26541 - if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26567 - $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26546 - $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26547 - $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26548 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26549 - $_.createMatrixA(); //#26550 - $_.GaussJordan(); //#26551 - $_.createGeneratorMatrix(); //#26552 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26553 - for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26566 - $_.i = _CS; //#26555 - $_.temp = 0; //#26556 - $_.loop0 = 0; //#26557 - $_.offset_index = $_.offset * $_.i; //#26558 - for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26564 - var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26561 - var _Cg = -(31 - ($_.loop0 % 32)); //#26561 - $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26562 - $_.loop0 = $_.loop0 + 1; //#26563 - } //#26563 - $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26565 - } //#26565 - } //#26565 - $_.out = $s($_.Pg); //#26569 - for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26573 - $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26572 - } //#26572 - $k[$j++] = $_.out; //#26574 - }; //#26574 - $k[$j++] = 'bits'; //#26579 - $k[$j++] = $_.bits; //#26579 - $k[$j++] = $_.datawc; //#26579 - $k[$j++] = $_.datawr; //#26579 - $_.ldpc(); //#26579 - var _Cz = $k[--$j]; //#26579 - $_[$k[--$j]] = _Cz; //#26579 - $_.s0 = 0; //#26582 - $_.s1 = 0; //#26582 - $_.s2 = 3; //#26582 - $_.s3 = 30151; //#26582 - for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26592 - $_.l = _D2; //#26584 - $_.lcg64_temper(); //#26585 - var _D3 = $k[--$j]; //#26586 - $k[$j++] = _D3; //#26586 - if (_D3 < 0) { //#26586 - var _D4 = $k[--$j]; //#26586 - $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26586 - } //#26586 - $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26588 - $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26590 - $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26591 - } //#26591 - $_.tmpbits = $s($_.C); //#26595 - $puti($_.tmpbits, 0, $_.bits); //#26596 - $_.j = $_.bits.length; //#26597 - for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26602 - $put($_.tmpbits, $_.j, 48); //#26599 - if (($_.j + 1) < $_.C) { //#26600 - $put($_.tmpbits, $_.j + 1, 49); //#26600 - } //#26600 - $_.j = $_.j + 2; //#26601 - } //#26601 - $_.bits = $_.tmpbits; //#26603 - if ($_.colors == 4) { //#26668 - $_.bi = 0; //#26607 - $_.gi = 1; //#26607 - $_.mi = 2; //#26607 - $_.yi = 3; //#26607 - $_.ki = 4; //#26608 - $_.wi = 5; //#26608 - $k[$j++] = Infinity; //#26611 - $k[$j++] = $_.bi; //#26611 - $k[$j++] = "0000FF"; //#26611 - $k[$j++] = $_.gi; //#26611 - $k[$j++] = "00FF00"; //#26611 - $k[$j++] = $_.mi; //#26611 - $k[$j++] = "FF00FF"; //#26611 - $k[$j++] = $_.yi; //#26611 - $k[$j++] = "FFFF00"; //#26611 - $k[$j++] = $_.ki; //#26611 - $k[$j++] = "000000"; //#26611 - $k[$j++] = $_.wi; //#26611 - $k[$j++] = "FFFFFF"; //#26611 - $_.palette = $d(); //#26612 - $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26613 - $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26614 - } else { //#26668 + $_.wr = $k[--$j]; //#26816 + $_.wc = $k[--$j]; //#26817 + $k[$j++] = Infinity; //#26818 + var _B6 = $k[--$j]; //#26818 + var _B7 = $k[--$j]; //#26818 + $k[$j++] = _B6; //#26818 + $forall(_B7, function() { //#26818 + var _B8 = $k[--$j]; //#26818 + $k[$j++] = $f(_B8 - 48); //#26818 + }); //#26818 + $_.data = $a(); //#26818 + $_.Pn = $_.data.length; //#26820 + if ($_.wr != -1) { //#26835 + $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26822 + $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26823 + $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26824 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26825 + $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26826 + $k[$j++] = 'encoding_iterations'; //#26827 + $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26827 + if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26827 + var _BY = $k[--$j]; //#26827 + $k[$j++] = $f(_BY - 1); //#26827 + } //#26827 + var _BZ = $k[--$j]; //#26827 + $_[$k[--$j]] = _BZ; //#26827 + $_.createMatrixA(); //#26828 + } else { //#26835 + $_.Pg = $_.Pn * 2; //#26830 + $_.nb_sub_blocks = 1; //#26831 + $_.Pg_sub_block = $_.Pg; //#26832 + $_.Pn_sub_block = $_.Pn; //#26833 + $_.encoding_iterations = 1; //#26834 + $_.createMetadataMatrixA(); //#26835 + } //#26835 + $_.GaussJordan(); //#26837 + $_.createGeneratorMatrix(); //#26838 + $_.ecc_encoded_data = $a($_.Pg); //#26840 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26842 + for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26858 + $_.iter = _Bk; //#26844 + for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26857 + $_.i = _Bn; //#26846 + $_.temp = 0; //#26847 + $_.loop0 = 0; //#26848 + $_.offset_index = $_.offset * $_.i; //#26849 + for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26855 + var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26852 + var _C3 = -(31 - ($_.loop0 % 32)); //#26852 + $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26853 + $_.loop0 = $_.loop0 + 1; //#26854 + } //#26854 + $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26856 + } //#26856 + } //#26856 + if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26882 + $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26861 + $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26862 + $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26863 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26864 + $_.createMatrixA(); //#26865 + $_.GaussJordan(); //#26866 + $_.createGeneratorMatrix(); //#26867 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26868 + for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26881 + $_.i = _CS; //#26870 + $_.temp = 0; //#26871 + $_.loop0 = 0; //#26872 + $_.offset_index = $_.offset * $_.i; //#26873 + for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26879 + var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26876 + var _Cg = -(31 - ($_.loop0 % 32)); //#26876 + $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26877 + $_.loop0 = $_.loop0 + 1; //#26878 + } //#26878 + $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26880 + } //#26880 + } //#26880 + $_.out = $s($_.Pg); //#26884 + for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26888 + $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26887 + } //#26887 + $k[$j++] = $_.out; //#26889 + }; //#26889 + $k[$j++] = 'bits'; //#26894 + $k[$j++] = $_.bits; //#26894 + $k[$j++] = $_.datawc; //#26894 + $k[$j++] = $_.datawr; //#26894 + $_.ldpc(); //#26894 + var _Cz = $k[--$j]; //#26894 + $_[$k[--$j]] = _Cz; //#26894 + $_.s0 = 0; //#26897 + $_.s1 = 0; //#26897 + $_.s2 = 3; //#26897 + $_.s3 = 30151; //#26897 + for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26907 + $_.l = _D2; //#26899 + $_.lcg64_temper(); //#26900 + var _D3 = $k[--$j]; //#26901 + $k[$j++] = _D3; //#26901 + if (_D3 < 0) { //#26901 + var _D4 = $k[--$j]; //#26901 + $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26901 + } //#26901 + $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26903 + $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26905 + $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26906 + } //#26906 + $_.tmpbits = $s($_.C); //#26910 + $puti($_.tmpbits, 0, $_.bits); //#26911 + $_.j = $_.bits.length; //#26912 + for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26917 + $put($_.tmpbits, $_.j, 48); //#26914 + if (($_.j + 1) < $_.C) { //#26915 + $put($_.tmpbits, $_.j + 1, 49); //#26915 + } //#26915 + $_.j = $_.j + 2; //#26916 + } //#26916 + $_.bits = $_.tmpbits; //#26918 + if ($_.colors == 4) { //#26983 + $_.bi = 0; //#26922 + $_.gi = 1; //#26922 + $_.mi = 2; //#26922 + $_.yi = 3; //#26922 + $_.ki = 4; //#26923 + $_.wi = 5; //#26923 + $k[$j++] = Infinity; //#26924 + $k[$j++] = $_.bi; //#26926 + $k[$j++] = "0000FF"; //#26926 + $k[$j++] = $_.gi; //#26926 + $k[$j++] = "00FF00"; //#26926 + $k[$j++] = $_.mi; //#26926 + $k[$j++] = "FF00FF"; //#26926 + $k[$j++] = $_.yi; //#26926 + $k[$j++] = "FFFF00"; //#26926 + $k[$j++] = $_.ki; //#26926 + $k[$j++] = "000000"; //#26926 + $k[$j++] = $_.wi; //#26926 + $k[$j++] = "FFFFFF"; //#26926 + $_.palette = $d(); //#26927 + $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26928 + $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26929 + } else { //#26983 var _Dw = new Map([ [8, $a([2, 2, 2])], [16, $a([4, 2, 2])], @@ -33222,1037 +33700,1037 @@ function bwipp_jabcode() { [64, $a([4, 4, 4])], [128, $a([8, 4, 4])], [256, $a([8, 8, 4])] - ]); //#26623 - $_.rgbres = $get(_Dw, $_.colors); //#26624 - $k[$j++] = 'rvals'; //#26626 - $k[$j++] = $get($_.rgbres, 0); //#26626 - $k[$j++] = Infinity; //#26626 - var _E1 = $k[--$j]; //#26626 - var _E3 = $f($k[--$j] - 1); //#26626 - $k[$j++] = _E1; //#26626 - $k[$j++] = _E3; //#26626 - for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26626 - var _E6 = $k[--$j]; //#26626 - $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26626 - $k[$j++] = _E6; //#26626 - } //#26626 - $j--; //#26626 - var _E7 = $a(); //#26626 - $_[$k[--$j]] = _E7; //#26626 - $k[$j++] = 'gvals'; //#26627 - $k[$j++] = $get($_.rgbres, 1); //#26627 - $k[$j++] = Infinity; //#26627 - var _EB = $k[--$j]; //#26627 - var _ED = $f($k[--$j] - 1); //#26627 - $k[$j++] = _EB; //#26627 - $k[$j++] = _ED; //#26627 - for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26627 - var _EG = $k[--$j]; //#26627 - $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26627 - $k[$j++] = _EG; //#26627 - } //#26627 - $j--; //#26627 - var _EH = $a(); //#26627 - $_[$k[--$j]] = _EH; //#26627 - $k[$j++] = 'bvals'; //#26628 - $k[$j++] = $get($_.rgbres, 2); //#26628 - $k[$j++] = Infinity; //#26628 - var _EL = $k[--$j]; //#26628 - var _EN = $f($k[--$j] - 1); //#26628 - $k[$j++] = _EL; //#26628 - $k[$j++] = _EN; //#26628 - for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26628 - var _EQ = $k[--$j]; //#26628 - $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26628 - $k[$j++] = _EQ; //#26628 - } //#26628 - $j--; //#26628 - var _ER = $a(); //#26628 - $_[$k[--$j]] = _ER; //#26628 - var _ET = $_.colors; //#26630 - $_.palette = new Map; //#26630 - var _EU = $_.colors; //#26631 - var _EV = 64; //#26631 - if (64 > _EU) { //#26631 - var _ = _EU; //#26631 - _EU = _EV; //#26631 - _EV = _; //#26631 - } //#26631 - $_.palettelayout = $a(_EV); //#26631 - $_.i = 0; //#26632 - $_.j = 8; //#26632 - $forall($_.rvals, function() { //#26666 - $_.r = $k[--$j]; //#26634 - $forall($_.gvals, function() { //#26665 - $_.g = $k[--$j]; //#26636 - $forall($_.bvals, function() { //#26664 - $_.b = $k[--$j]; //#26638 - var _Eh = $strcpy($s(6), "000000"); //#26640 - var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26640 - $puti(_Eh, 6 - _Ej.length, _Ej); //#26640 - $k[$j++] = _Eh; //#26642 - $k[$j++] = false; //#26642 - if ($eq(_Eh, "000000")) { //#26642 - $_.ki = $_.i; //#26642 - $j--; //#26642 - $k[$j++] = true; //#26642 - } //#26642 - var _El = $k[--$j]; //#26643 - var _Em = $k[--$j]; //#26643 - $k[$j++] = _Em; //#26643 - $k[$j++] = _El; //#26643 - if ($eq(_Em, "0000FF")) { //#26643 - $_.bi = $_.i; //#26643 - $j--; //#26643 - $k[$j++] = true; //#26643 - } //#26643 - var _Eo = $k[--$j]; //#26644 - var _Ep = $k[--$j]; //#26644 - $k[$j++] = _Ep; //#26644 - $k[$j++] = _Eo; //#26644 - if ($eq(_Ep, "00FF00")) { //#26644 - $_.gi = $_.i; //#26644 - $j--; //#26644 - $k[$j++] = true; //#26644 - } //#26644 - var _Er = $k[--$j]; //#26645 - var _Es = $k[--$j]; //#26645 - $k[$j++] = _Es; //#26645 - $k[$j++] = _Er; //#26645 - if ($eq(_Es, "00FFFF")) { //#26645 - $_.ci = $_.i; //#26645 - $j--; //#26645 - $k[$j++] = true; //#26645 - } //#26645 - var _Eu = $k[--$j]; //#26646 - var _Ev = $k[--$j]; //#26646 - $k[$j++] = _Ev; //#26646 - $k[$j++] = _Eu; //#26646 - if ($eq(_Ev, "FF0000")) { //#26646 - $_.ri = $_.i; //#26646 - $j--; //#26646 - $k[$j++] = true; //#26646 - } //#26646 - var _Ex = $k[--$j]; //#26647 - var _Ey = $k[--$j]; //#26647 - $k[$j++] = _Ey; //#26647 - $k[$j++] = _Ex; //#26647 - if ($eq(_Ey, "FF00FF")) { //#26647 - $_.mi = $_.i; //#26647 - $j--; //#26647 - $k[$j++] = true; //#26647 - } //#26647 - var _F0 = $k[--$j]; //#26648 - var _F1 = $k[--$j]; //#26648 - $k[$j++] = _F1; //#26648 - $k[$j++] = _F0; //#26648 - if ($eq(_F1, "FFFF00")) { //#26648 - $_.yi = $_.i; //#26648 - $j--; //#26648 - $k[$j++] = true; //#26648 - } //#26648 - var _F3 = $k[--$j]; //#26649 - var _F4 = $k[--$j]; //#26649 - $k[$j++] = _F4; //#26649 - $k[$j++] = _F3; //#26649 - if ($eq(_F4, "FFFFFF")) { //#26649 - $_.wi = $_.i; //#26649 - $j--; //#26649 - $k[$j++] = true; //#26649 - } //#26649 - if ($nt($k[--$j])) { //#26661 - if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26660 - $put($_.palettelayout, $_.j, $_.i); //#26658 - $_.j = $_.j + 1; //#26659 - } //#26659 - } //#26659 - $put($_.palette, $_.i, $k[--$j]); //#26662 - $_.i = $_.i + 1; //#26663 - }); //#26663 - }); //#26663 - }); //#26663 - $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26667 - $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26668 - } //#26668 - $k[$j++] = Infinity; //#26672 - for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26672 - $k[$j++] = -1; //#26672 - } //#26672 - $_.pixs = $a(); //#26672 + ]); //#26938 + $_.rgbres = $get(_Dw, $_.colors); //#26939 + $k[$j++] = 'rvals'; //#26941 + $k[$j++] = $get($_.rgbres, 0); //#26941 + $k[$j++] = Infinity; //#26941 + var _E1 = $k[--$j]; //#26941 + var _E3 = $f($k[--$j] - 1); //#26941 + $k[$j++] = _E1; //#26941 + $k[$j++] = _E3; //#26941 + for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26941 + var _E6 = $k[--$j]; //#26941 + $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26941 + $k[$j++] = _E6; //#26941 + } //#26941 + $j--; //#26941 + var _E7 = $a(); //#26941 + $_[$k[--$j]] = _E7; //#26941 + $k[$j++] = 'gvals'; //#26942 + $k[$j++] = $get($_.rgbres, 1); //#26942 + $k[$j++] = Infinity; //#26942 + var _EB = $k[--$j]; //#26942 + var _ED = $f($k[--$j] - 1); //#26942 + $k[$j++] = _EB; //#26942 + $k[$j++] = _ED; //#26942 + for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26942 + var _EG = $k[--$j]; //#26942 + $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26942 + $k[$j++] = _EG; //#26942 + } //#26942 + $j--; //#26942 + var _EH = $a(); //#26942 + $_[$k[--$j]] = _EH; //#26942 + $k[$j++] = 'bvals'; //#26943 + $k[$j++] = $get($_.rgbres, 2); //#26943 + $k[$j++] = Infinity; //#26943 + var _EL = $k[--$j]; //#26943 + var _EN = $f($k[--$j] - 1); //#26943 + $k[$j++] = _EL; //#26943 + $k[$j++] = _EN; //#26943 + for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26943 + var _EQ = $k[--$j]; //#26943 + $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26943 + $k[$j++] = _EQ; //#26943 + } //#26943 + $j--; //#26943 + var _ER = $a(); //#26943 + $_[$k[--$j]] = _ER; //#26943 + var _ET = $_.colors; //#26945 + $_.palette = new Map; //#26945 + var _EU = $_.colors; //#26946 + var _EV = 64; //#26946 + if (64 > _EU) { //#26946 + var _ = _EU; //#26946 + _EU = _EV; //#26946 + _EV = _; //#26946 + } //#26946 + $_.palettelayout = $a(_EV); //#26946 + $_.i = 0; //#26947 + $_.j = 8; //#26947 + $forall($_.rvals, function() { //#26981 + $_.r = $k[--$j]; //#26949 + $forall($_.gvals, function() { //#26980 + $_.g = $k[--$j]; //#26951 + $forall($_.bvals, function() { //#26979 + $_.b = $k[--$j]; //#26953 + var _Eh = $strcpy($s(6), "000000"); //#26955 + var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26955 + $puti(_Eh, 6 - _Ej.length, _Ej); //#26955 + $k[$j++] = _Eh; //#26957 + $k[$j++] = false; //#26957 + if ($eq(_Eh, "000000")) { //#26957 + $_.ki = $_.i; //#26957 + $j--; //#26957 + $k[$j++] = true; //#26957 + } //#26957 + var _El = $k[--$j]; //#26958 + var _Em = $k[--$j]; //#26958 + $k[$j++] = _Em; //#26958 + $k[$j++] = _El; //#26958 + if ($eq(_Em, "0000FF")) { //#26958 + $_.bi = $_.i; //#26958 + $j--; //#26958 + $k[$j++] = true; //#26958 + } //#26958 + var _Eo = $k[--$j]; //#26959 + var _Ep = $k[--$j]; //#26959 + $k[$j++] = _Ep; //#26959 + $k[$j++] = _Eo; //#26959 + if ($eq(_Ep, "00FF00")) { //#26959 + $_.gi = $_.i; //#26959 + $j--; //#26959 + $k[$j++] = true; //#26959 + } //#26959 + var _Er = $k[--$j]; //#26960 + var _Es = $k[--$j]; //#26960 + $k[$j++] = _Es; //#26960 + $k[$j++] = _Er; //#26960 + if ($eq(_Es, "00FFFF")) { //#26960 + $_.ci = $_.i; //#26960 + $j--; //#26960 + $k[$j++] = true; //#26960 + } //#26960 + var _Eu = $k[--$j]; //#26961 + var _Ev = $k[--$j]; //#26961 + $k[$j++] = _Ev; //#26961 + $k[$j++] = _Eu; //#26961 + if ($eq(_Ev, "FF0000")) { //#26961 + $_.ri = $_.i; //#26961 + $j--; //#26961 + $k[$j++] = true; //#26961 + } //#26961 + var _Ex = $k[--$j]; //#26962 + var _Ey = $k[--$j]; //#26962 + $k[$j++] = _Ey; //#26962 + $k[$j++] = _Ex; //#26962 + if ($eq(_Ey, "FF00FF")) { //#26962 + $_.mi = $_.i; //#26962 + $j--; //#26962 + $k[$j++] = true; //#26962 + } //#26962 + var _F0 = $k[--$j]; //#26963 + var _F1 = $k[--$j]; //#26963 + $k[$j++] = _F1; //#26963 + $k[$j++] = _F0; //#26963 + if ($eq(_F1, "FFFF00")) { //#26963 + $_.yi = $_.i; //#26963 + $j--; //#26963 + $k[$j++] = true; //#26963 + } //#26963 + var _F3 = $k[--$j]; //#26964 + var _F4 = $k[--$j]; //#26964 + $k[$j++] = _F4; //#26964 + $k[$j++] = _F3; //#26964 + if ($eq(_F4, "FFFFFF")) { //#26964 + $_.wi = $_.i; //#26964 + $j--; //#26964 + $k[$j++] = true; //#26964 + } //#26964 + if ($nt($k[--$j])) { //#26976 + if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26975 + $put($_.palettelayout, $_.j, $_.i); //#26973 + $_.j = $_.j + 1; //#26974 + } //#26974 + } //#26974 + $put($_.palette, $_.i, $k[--$j]); //#26977 + $_.i = $_.i + 1; //#26978 + }); //#26978 + }); //#26978 + }); //#26978 + $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26982 + $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26983 + } //#26983 + $k[$j++] = Infinity; //#26987 + for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26987 + $k[$j++] = -1; //#26987 + } //#26987 + $_.pixs = $a(); //#26987 $_.jmv = function() { - var _Ft = $k[--$j]; //#26673 - var _Fu = $k[--$j]; //#26673 - $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26673 - }; //#26673 - if (!$_.slave) { //#26703 - $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26683 - $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#26689 - } else { //#26703 - $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#26697 - $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#26703 - } //#26703 - for (var _GY = 0; _GY <= 4; _GY += 1) { //#26715 - $_.y = _GY; //#26706 - for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#26714 - $_.x = _GZ; //#26708 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#26709 - $k[$j++] = $_.pixs; //#26710 - $k[$j++] = $_.x + 1; //#26710 - $k[$j++] = $_.y + 1; //#26710 - $_.jmv(); //#26710 - var _Gm = $k[--$j]; //#26710 - $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#26710 - $k[$j++] = $_.pixs; //#26711 - $k[$j++] = $_.x + 1; //#26711 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26711 - $_.jmv(); //#26711 - var _Gw = $k[--$j]; //#26711 - $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#26711 - $k[$j++] = $_.pixs; //#26712 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26712 - $k[$j++] = $_.y + 1; //#26712 - $_.jmv(); //#26712 - var _H6 = $k[--$j]; //#26712 - $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#26712 - $k[$j++] = $_.pixs; //#26713 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26713 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26713 - $_.jmv(); //#26713 - var _HH = $k[--$j]; //#26713 - $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#26713 - } //#26713 - } //#26713 - $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#26722 - $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#26727 - $_.num = (~~Math.round($_.cols / 16)) - 1; //#26728 - $_.algnrpos = $a([3, 17]); //#26729 - if ($_.num > 0) { //#26732 - $k[$j++] = Infinity; //#26731 - for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#26731 - $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#26731 - } //#26731 - $_.algnrpos = $a(); //#26731 - } //#26731 - $_.num = (~~Math.round($_.rows / 16)) - 1; //#26733 - $_.algncpos = $a([3, 17]); //#26734 - if ($_.num > 0) { //#26737 - $k[$j++] = Infinity; //#26736 - for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#26736 - $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#26736 - } //#26736 - $_.algncpos = $a(); //#26736 - } //#26736 + var _Ft = $k[--$j]; //#26988 + var _Fu = $k[--$j]; //#26988 + $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26988 + }; //#26988 + if (!$_.slave) { //#27018 + $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26998 + $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#27004 + } else { //#27018 + $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#27012 + $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#27018 + } //#27018 + for (var _GY = 0; _GY <= 4; _GY += 1) { //#27030 + $_.y = _GY; //#27021 + for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#27029 + $_.x = _GZ; //#27023 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#27024 + $k[$j++] = $_.pixs; //#27025 + $k[$j++] = $_.x + 1; //#27025 + $k[$j++] = $_.y + 1; //#27025 + $_.jmv(); //#27025 + var _Gm = $k[--$j]; //#27025 + $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#27025 + $k[$j++] = $_.pixs; //#27026 + $k[$j++] = $_.x + 1; //#27026 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27026 + $_.jmv(); //#27026 + var _Gw = $k[--$j]; //#27026 + $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#27026 + $k[$j++] = $_.pixs; //#27027 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27027 + $k[$j++] = $_.y + 1; //#27027 + $_.jmv(); //#27027 + var _H6 = $k[--$j]; //#27027 + $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#27027 + $k[$j++] = $_.pixs; //#27028 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27028 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27028 + $_.jmv(); //#27028 + var _HH = $k[--$j]; //#27028 + $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#27028 + } //#27028 + } //#27028 + $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#27037 + $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#27042 + $_.num = (~~Math.round($_.cols / 16)) - 1; //#27043 + $_.algnrpos = $a([3, 17]); //#27044 + if ($_.num > 0) { //#27047 + $k[$j++] = Infinity; //#27046 + for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#27046 + $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#27046 + } //#27046 + $_.algnrpos = $a(); //#27046 + } //#27046 + $_.num = (~~Math.round($_.rows / 16)) - 1; //#27048 + $_.algncpos = $a([3, 17]); //#27049 + if ($_.num > 0) { //#27052 + $k[$j++] = Infinity; //#27051 + for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#27051 + $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#27051 + } //#27051 + $_.algncpos = $a(); //#27051 + } //#27051 $_.putalgnpat = function() { - $_.pp = $k[--$j]; //#26739 - $_.py = $k[--$j]; //#26740 - $_.px = $k[--$j]; //#26741 - for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#26748 - $_.pb = _I0; //#26743 - for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#26747 - $_.pa = _I1; //#26745 - $k[$j++] = $_.pixs; //#26746 - $k[$j++] = $f($_.px + $_.pa); //#26746 - $k[$j++] = $f($_.py + $_.pb); //#26746 - $_.jmv(); //#26746 - var _IC = $k[--$j]; //#26746 - $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#26746 - } //#26746 - } //#26746 - }; //#26746 - for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#26760 - $_.j = _IG; //#26751 - $_.y = $get($_.algncpos, $_.j); //#26752 - for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#26759 - $_.i = _IM; //#26754 - $_.x = $get($_.algnrpos, $_.i); //#26755 - $k[$j++] = $_.pixs; //#26756 - $k[$j++] = $_.x; //#26756 - $k[$j++] = $_.y; //#26756 - $_.jmv(); //#26756 - var _IT = $k[--$j]; //#26756 - if ($get($k[--$j], _IT) == -1) { //#26758 - $k[$j++] = $f($_.x - 1); //#26757 - $k[$j++] = $f($_.y - 1); //#26757 - if ((($_.i + $_.j) % 2) == 0) { //#26757 - $k[$j++] = $_.algnpat0; //#26757 - } else { //#26757 - $k[$j++] = $_.algnpat1; //#26757 - } //#26757 - $_.putalgnpat(); //#26757 - } //#26757 - } //#26757 - } //#26757 - if (!$_.slave) { //#26812 - var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#26771 - for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#26775 - $aload($get(_JL, _JM)); //#26773 - $_.y = $k[--$j]; //#26773 - $_.x = $k[--$j]; //#26773 - $k[$j++] = $a([$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, -$_.y]); //#26774 - $k[$j++] = $a([$_.x, -$_.y]); //#26774 - } //#26774 - $astore($a(176)); //#26776 - $_.metadatamap = $k[--$j]; //#26776 - $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#26781 - $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#26786 - } else { //#26812 - $k[$j++] = Infinity; //#26799 - for (var _KD = 1; _KD <= 19; _KD += 1) { //#26796 - $_.i = _KD; //#26794 - $k[$j++] = $a([0, $_.i]); //#26795 - $k[$j++] = $a([1, $_.i]); //#26795 - } //#26795 - for (var _KI = 5; _KI <= 12; _KI += 1) { //#26800 - $_.i = _KI; //#26798 - $k[$j++] = $a([2, $_.i]); //#26799 - $k[$j++] = $a([3, $_.i]); //#26799 - } //#26799 - $_.metadatamap = $a(); //#26799 - $k[$j++] = Infinity; //#26807 - for (var _KO = 5; _KO <= 12; _KO += 1) { //#26804 - $k[$j++] = _KO; //#26804 - $k[$j++] = Infinity; //#26804 - var _KP = $k[--$j]; //#26804 - var _KQ = $k[--$j]; //#26804 - $k[$j++] = _KP; //#26804 - $k[$j++] = 4; //#26804 - $k[$j++] = _KQ; //#26804 - var _KR = $a(); //#26804 - $k[$j++] = _KR; //#26804 - } //#26804 - for (var _KS = 12; _KS >= 5; _KS -= 1) { //#26805 - $k[$j++] = _KS; //#26805 - $k[$j++] = Infinity; //#26805 - var _KT = $k[--$j]; //#26805 - var _KU = $k[--$j]; //#26805 - $k[$j++] = _KT; //#26805 - $k[$j++] = 5; //#26805 - $k[$j++] = _KU; //#26805 - var _KV = $a(); //#26805 - $k[$j++] = _KV; //#26805 - } //#26805 - for (var _KW = 5; _KW <= 12; _KW += 1) { //#26806 - $k[$j++] = _KW; //#26806 - $k[$j++] = Infinity; //#26806 - var _KX = $k[--$j]; //#26806 - var _KY = $k[--$j]; //#26806 - $k[$j++] = _KX; //#26806 - $k[$j++] = 6; //#26806 - $k[$j++] = _KY; //#26806 - var _KZ = $a(); //#26806 - $k[$j++] = _KZ; //#26806 - } //#26806 - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#26807 - $k[$j++] = _Ka; //#26807 - $k[$j++] = Infinity; //#26807 - var _Kb = $k[--$j]; //#26807 - var _Kc = $k[--$j]; //#26807 - $k[$j++] = _Kb; //#26807 - $k[$j++] = 7; //#26807 - $k[$j++] = _Kc; //#26807 - var _Kd = $a(); //#26807 - $k[$j++] = _Kd; //#26807 - } //#26807 - $_.palettemap1 = $a(); //#26807 - $k[$j++] = Infinity; //#26811 - var _Kf = $_.palettemap1; //#26811 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#26811 - $k[$j++] = $get(_Kf, _Kg); //#26811 - $k[$j++] = Infinity; //#26811 - var _Kj = $k[--$j]; //#26811 - var _Kk = $k[--$j]; //#26811 - $k[$j++] = _Kj; //#26811 - $aload(_Kk); //#26811 - var _Kl = $k[--$j]; //#26811 - var _Km = $k[--$j]; //#26811 - $k[$j++] = -_Km; //#26811 - $k[$j++] = -_Kl; //#26811 - var _Kn = $a(); //#26811 - $k[$j++] = _Kn; //#26811 - } //#26811 - $_.palettemap2 = $a(); //#26811 - } //#26812 - var _Kp = $_.metadatamap; //#26817 - for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#26821 - var _Ks = $get(_Kp, _Kq); //#26821 - var _Kt = $get(_Ks, 0); //#26818 - $k[$j++] = _Ks; //#26818 - $k[$j++] = _Kt; //#26818 - if (_Kt < 0) { //#26818 - var _Kv = $k[--$j]; //#26818 - var _Kw = $k[--$j]; //#26818 - $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#26818 - $k[$j++] = _Kw; //#26818 - } else { //#26818 - $j--; //#26818 - } //#26818 - var _Kx = $k[--$j]; //#26819 - var _Ky = $get(_Kx, 1); //#26819 - $k[$j++] = _Kx; //#26819 - $k[$j++] = _Ky; //#26819 - if (_Ky < 0) { //#26819 - var _L0 = $k[--$j]; //#26819 - var _L1 = $k[--$j]; //#26819 - $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#26819 - $k[$j++] = _L1; //#26819 - } else { //#26819 - $j--; //#26819 - } //#26819 - $j--; //#26820 - } //#26820 - var _L2 = $_.palettemap1; //#26822 - for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#26826 - var _L5 = $get(_L2, _L3); //#26826 - var _L6 = $get(_L5, 0); //#26823 - $k[$j++] = _L5; //#26823 - $k[$j++] = _L6; //#26823 - if (_L6 < 0) { //#26823 - var _L8 = $k[--$j]; //#26823 - var _L9 = $k[--$j]; //#26823 - $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#26823 - $k[$j++] = _L9; //#26823 - } else { //#26823 - $j--; //#26823 - } //#26823 - var _LA = $k[--$j]; //#26824 - var _LB = $get(_LA, 1); //#26824 - $k[$j++] = _LA; //#26824 - $k[$j++] = _LB; //#26824 - if (_LB < 0) { //#26824 - var _LD = $k[--$j]; //#26824 - var _LE = $k[--$j]; //#26824 - $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#26824 - $k[$j++] = _LE; //#26824 - } else { //#26824 - $j--; //#26824 - } //#26824 - $j--; //#26825 - } //#26825 - var _LF = $_.palettemap2; //#26827 - for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#26831 - var _LI = $get(_LF, _LG); //#26831 - var _LJ = $get(_LI, 0); //#26828 - $k[$j++] = _LI; //#26828 - $k[$j++] = _LJ; //#26828 - if (_LJ < 0) { //#26828 - var _LL = $k[--$j]; //#26828 - var _LM = $k[--$j]; //#26828 - $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#26828 - $k[$j++] = _LM; //#26828 - } else { //#26828 - $j--; //#26828 - } //#26828 - var _LN = $k[--$j]; //#26829 - var _LO = $get(_LN, 1); //#26829 - $k[$j++] = _LN; //#26829 - $k[$j++] = _LO; //#26829 - if (_LO < 0) { //#26829 - var _LQ = $k[--$j]; //#26829 - var _LR = $k[--$j]; //#26829 - $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#26829 - $k[$j++] = _LR; //#26829 - } else { //#26829 - $j--; //#26829 - } //#26829 - $j--; //#26830 - } //#26830 - for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#26836 - $k[$j++] = $_.pixs; //#26835 - $aload($get($_.metadatamap, _LU)); //#26835 - $_.jmv(); //#26835 - var _LY = $k[--$j]; //#26835 - $put($k[--$j], _LY, 0); //#26835 - } //#26835 - if (!$_.slave) { //#26849 - var _Lb = $_.colors; //#26841 - var _Lc = 16; //#26841 - if (16 > _Lb) { //#26841 - var _ = _Lb; //#26841 - _Lb = _Lc; //#26841 - _Lc = _; //#26841 - } //#26841 - for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#26846 - $_.i = _Le; //#26842 - var _Lh = $get($_.palettelayout, $_.i); //#26843 - $k[$j++] = _Lh; //#26844 - $k[$j++] = $_.pixs; //#26844 - $k[$j++] = _Lh; //#26844 - $aload($get($_.palettemap1, $_.i)); //#26844 - $_.jmv(); //#26844 - var _Lm = $k[--$j]; //#26844 - var _Ln = $k[--$j]; //#26844 - $put($k[--$j], _Lm, _Ln); //#26844 - var _Lq = $k[--$j]; //#26845 - $k[$j++] = $_.pixs; //#26845 - $k[$j++] = _Lq; //#26845 - $aload($get($_.palettemap2, $_.i)); //#26845 - $_.jmv(); //#26845 - var _Lu = $k[--$j]; //#26845 - var _Lv = $k[--$j]; //#26845 - $put($k[--$j], _Lu, _Lv); //#26845 - } //#26845 - $_.i = 16; //#26847 - } else { //#26849 - $_.i = 0; //#26849 - } //#26849 - $_.j = $_.nummetamodules; //#26853 - for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#26863 - $_.i = _M1; //#26855 - var _M4 = $get($_.palettelayout, $_.i); //#26856 - $k[$j++] = _M4; //#26857 - $k[$j++] = $_.pixs; //#26857 - $k[$j++] = _M4; //#26857 - $aload($get($_.metadatamap, $_.j)); //#26857 - $_.jmv(); //#26857 - var _M9 = $k[--$j]; //#26857 - var _MA = $k[--$j]; //#26857 - $put($k[--$j], _M9, _MA); //#26857 - var _MD = $k[--$j]; //#26858 - $k[$j++] = $_.pixs; //#26858 - $k[$j++] = _MD; //#26858 - $aload($get($_.metadatamap, $f($_.j + 2))); //#26858 - $_.jmv(); //#26858 - var _MH = $k[--$j]; //#26858 - var _MI = $k[--$j]; //#26858 - $put($k[--$j], _MH, _MI); //#26858 - var _MM = $get($_.palettelayout, $_.i + 1); //#26859 - $k[$j++] = _MM; //#26860 - $k[$j++] = $_.pixs; //#26860 - $k[$j++] = _MM; //#26860 - $aload($get($_.metadatamap, $f($_.j + 1))); //#26860 - $_.jmv(); //#26860 - var _MR = $k[--$j]; //#26860 - var _MS = $k[--$j]; //#26860 - $put($k[--$j], _MR, _MS); //#26860 - var _MV = $k[--$j]; //#26861 - $k[$j++] = $_.pixs; //#26861 - $k[$j++] = _MV; //#26861 - $aload($get($_.metadatamap, $f($_.j + 3))); //#26861 - $_.jmv(); //#26861 - var _MZ = $k[--$j]; //#26861 - var _Ma = $k[--$j]; //#26861 - $put($k[--$j], _MZ, _Ma); //#26861 - $_.j = $f($_.j + 4); //#26862 - } //#26862 + $_.pp = $k[--$j]; //#27054 + $_.py = $k[--$j]; //#27055 + $_.px = $k[--$j]; //#27056 + for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#27063 + $_.pb = _I0; //#27058 + for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#27062 + $_.pa = _I1; //#27060 + $k[$j++] = $_.pixs; //#27061 + $k[$j++] = $f($_.px + $_.pa); //#27061 + $k[$j++] = $f($_.py + $_.pb); //#27061 + $_.jmv(); //#27061 + var _IC = $k[--$j]; //#27061 + $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#27061 + } //#27061 + } //#27061 + }; //#27061 + for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#27075 + $_.j = _IG; //#27066 + $_.y = $get($_.algncpos, $_.j); //#27067 + for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#27074 + $_.i = _IM; //#27069 + $_.x = $get($_.algnrpos, $_.i); //#27070 + $k[$j++] = $_.pixs; //#27071 + $k[$j++] = $_.x; //#27071 + $k[$j++] = $_.y; //#27071 + $_.jmv(); //#27071 + var _IT = $k[--$j]; //#27071 + if ($get($k[--$j], _IT) == -1) { //#27073 + $k[$j++] = $f($_.x - 1); //#27072 + $k[$j++] = $f($_.y - 1); //#27072 + if ((($_.i + $_.j) % 2) == 0) { //#27072 + $k[$j++] = $_.algnpat0; //#27072 + } else { //#27072 + $k[$j++] = $_.algnpat1; //#27072 + } //#27072 + $_.putalgnpat(); //#27072 + } //#27072 + } //#27072 + } //#27072 + if (!$_.slave) { //#27127 + var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#27086 + for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#27090 + $aload($get(_JL, _JM)); //#27088 + $_.y = $k[--$j]; //#27088 + $_.x = $k[--$j]; //#27088 + $k[$j++] = $a([$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, -$_.y]); //#27089 + $k[$j++] = $a([$_.x, -$_.y]); //#27089 + } //#27089 + $astore($a(176)); //#27091 + $_.metadatamap = $k[--$j]; //#27091 + $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#27096 + $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#27101 + } else { //#27127 + $k[$j++] = Infinity; //#27107 + for (var _KD = 1; _KD <= 19; _KD += 1) { //#27111 + $_.i = _KD; //#27109 + $k[$j++] = $a([0, $_.i]); //#27110 + $k[$j++] = $a([1, $_.i]); //#27110 + } //#27110 + for (var _KI = 5; _KI <= 12; _KI += 1) { //#27115 + $_.i = _KI; //#27113 + $k[$j++] = $a([2, $_.i]); //#27114 + $k[$j++] = $a([3, $_.i]); //#27114 + } //#27114 + $_.metadatamap = $a(); //#27114 + $k[$j++] = Infinity; //#27118 + for (var _KO = 5; _KO <= 12; _KO += 1) { //#27119 + $k[$j++] = _KO; //#27119 + $k[$j++] = Infinity; //#27119 + var _KP = $k[--$j]; //#27119 + var _KQ = $k[--$j]; //#27119 + $k[$j++] = _KP; //#27119 + $k[$j++] = 4; //#27119 + $k[$j++] = _KQ; //#27119 + var _KR = $a(); //#27119 + $k[$j++] = _KR; //#27119 + } //#27119 + for (var _KS = 12; _KS >= 5; _KS -= 1) { //#27120 + $k[$j++] = _KS; //#27120 + $k[$j++] = Infinity; //#27120 + var _KT = $k[--$j]; //#27120 + var _KU = $k[--$j]; //#27120 + $k[$j++] = _KT; //#27120 + $k[$j++] = 5; //#27120 + $k[$j++] = _KU; //#27120 + var _KV = $a(); //#27120 + $k[$j++] = _KV; //#27120 + } //#27120 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#27121 + $k[$j++] = _KW; //#27121 + $k[$j++] = Infinity; //#27121 + var _KX = $k[--$j]; //#27121 + var _KY = $k[--$j]; //#27121 + $k[$j++] = _KX; //#27121 + $k[$j++] = 6; //#27121 + $k[$j++] = _KY; //#27121 + var _KZ = $a(); //#27121 + $k[$j++] = _KZ; //#27121 + } //#27121 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#27122 + $k[$j++] = _Ka; //#27122 + $k[$j++] = Infinity; //#27122 + var _Kb = $k[--$j]; //#27122 + var _Kc = $k[--$j]; //#27122 + $k[$j++] = _Kb; //#27122 + $k[$j++] = 7; //#27122 + $k[$j++] = _Kc; //#27122 + var _Kd = $a(); //#27122 + $k[$j++] = _Kd; //#27122 + } //#27122 + $_.palettemap1 = $a(); //#27122 + $k[$j++] = Infinity; //#27125 + var _Kf = $_.palettemap1; //#27126 + for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#27126 + $k[$j++] = $get(_Kf, _Kg); //#27126 + $k[$j++] = Infinity; //#27126 + var _Kj = $k[--$j]; //#27126 + var _Kk = $k[--$j]; //#27126 + $k[$j++] = _Kj; //#27126 + $aload(_Kk); //#27126 + var _Kl = $k[--$j]; //#27126 + var _Km = $k[--$j]; //#27126 + $k[$j++] = -_Km; //#27126 + $k[$j++] = -_Kl; //#27126 + var _Kn = $a(); //#27126 + $k[$j++] = _Kn; //#27126 + } //#27126 + $_.palettemap2 = $a(); //#27126 + } //#27127 + var _Kp = $_.metadatamap; //#27132 + for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#27136 + var _Ks = $get(_Kp, _Kq); //#27136 + var _Kt = $get(_Ks, 0); //#27133 + $k[$j++] = _Ks; //#27133 + $k[$j++] = _Kt; //#27133 + if (_Kt < 0) { //#27133 + var _Kv = $k[--$j]; //#27133 + var _Kw = $k[--$j]; //#27133 + $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#27133 + $k[$j++] = _Kw; //#27133 + } else { //#27133 + $j--; //#27133 + } //#27133 + var _Kx = $k[--$j]; //#27134 + var _Ky = $get(_Kx, 1); //#27134 + $k[$j++] = _Kx; //#27134 + $k[$j++] = _Ky; //#27134 + if (_Ky < 0) { //#27134 + var _L0 = $k[--$j]; //#27134 + var _L1 = $k[--$j]; //#27134 + $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#27134 + $k[$j++] = _L1; //#27134 + } else { //#27134 + $j--; //#27134 + } //#27134 + $j--; //#27135 + } //#27135 + var _L2 = $_.palettemap1; //#27137 + for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#27141 + var _L5 = $get(_L2, _L3); //#27141 + var _L6 = $get(_L5, 0); //#27138 + $k[$j++] = _L5; //#27138 + $k[$j++] = _L6; //#27138 + if (_L6 < 0) { //#27138 + var _L8 = $k[--$j]; //#27138 + var _L9 = $k[--$j]; //#27138 + $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#27138 + $k[$j++] = _L9; //#27138 + } else { //#27138 + $j--; //#27138 + } //#27138 + var _LA = $k[--$j]; //#27139 + var _LB = $get(_LA, 1); //#27139 + $k[$j++] = _LA; //#27139 + $k[$j++] = _LB; //#27139 + if (_LB < 0) { //#27139 + var _LD = $k[--$j]; //#27139 + var _LE = $k[--$j]; //#27139 + $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#27139 + $k[$j++] = _LE; //#27139 + } else { //#27139 + $j--; //#27139 + } //#27139 + $j--; //#27140 + } //#27140 + var _LF = $_.palettemap2; //#27142 + for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#27146 + var _LI = $get(_LF, _LG); //#27146 + var _LJ = $get(_LI, 0); //#27143 + $k[$j++] = _LI; //#27143 + $k[$j++] = _LJ; //#27143 + if (_LJ < 0) { //#27143 + var _LL = $k[--$j]; //#27143 + var _LM = $k[--$j]; //#27143 + $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#27143 + $k[$j++] = _LM; //#27143 + } else { //#27143 + $j--; //#27143 + } //#27143 + var _LN = $k[--$j]; //#27144 + var _LO = $get(_LN, 1); //#27144 + $k[$j++] = _LN; //#27144 + $k[$j++] = _LO; //#27144 + if (_LO < 0) { //#27144 + var _LQ = $k[--$j]; //#27144 + var _LR = $k[--$j]; //#27144 + $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#27144 + $k[$j++] = _LR; //#27144 + } else { //#27144 + $j--; //#27144 + } //#27144 + $j--; //#27145 + } //#27145 + for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#27151 + $k[$j++] = $_.pixs; //#27150 + $aload($get($_.metadatamap, _LU)); //#27150 + $_.jmv(); //#27150 + var _LY = $k[--$j]; //#27150 + $put($k[--$j], _LY, 0); //#27150 + } //#27150 + if (!$_.slave) { //#27164 + var _Lb = $_.colors; //#27156 + var _Lc = 16; //#27156 + if (16 > _Lb) { //#27156 + var _ = _Lb; //#27156 + _Lb = _Lc; //#27156 + _Lc = _; //#27156 + } //#27156 + for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#27161 + $_.i = _Le; //#27157 + var _Lh = $get($_.palettelayout, $_.i); //#27158 + $k[$j++] = _Lh; //#27159 + $k[$j++] = $_.pixs; //#27159 + $k[$j++] = _Lh; //#27159 + $aload($get($_.palettemap1, $_.i)); //#27159 + $_.jmv(); //#27159 + var _Lm = $k[--$j]; //#27159 + var _Ln = $k[--$j]; //#27159 + $put($k[--$j], _Lm, _Ln); //#27159 + var _Lq = $k[--$j]; //#27160 + $k[$j++] = $_.pixs; //#27160 + $k[$j++] = _Lq; //#27160 + $aload($get($_.palettemap2, $_.i)); //#27160 + $_.jmv(); //#27160 + var _Lu = $k[--$j]; //#27160 + var _Lv = $k[--$j]; //#27160 + $put($k[--$j], _Lu, _Lv); //#27160 + } //#27160 + $_.i = 16; //#27162 + } else { //#27164 + $_.i = 0; //#27164 + } //#27164 + $_.j = $_.nummetamodules; //#27168 + for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#27178 + $_.i = _M1; //#27170 + var _M4 = $get($_.palettelayout, $_.i); //#27171 + $k[$j++] = _M4; //#27172 + $k[$j++] = $_.pixs; //#27172 + $k[$j++] = _M4; //#27172 + $aload($get($_.metadatamap, $_.j)); //#27172 + $_.jmv(); //#27172 + var _M9 = $k[--$j]; //#27172 + var _MA = $k[--$j]; //#27172 + $put($k[--$j], _M9, _MA); //#27172 + var _MD = $k[--$j]; //#27173 + $k[$j++] = $_.pixs; //#27173 + $k[$j++] = _MD; //#27173 + $aload($get($_.metadatamap, $f($_.j + 2))); //#27173 + $_.jmv(); //#27173 + var _MH = $k[--$j]; //#27173 + var _MI = $k[--$j]; //#27173 + $put($k[--$j], _MH, _MI); //#27173 + var _MM = $get($_.palettelayout, $_.i + 1); //#27174 + $k[$j++] = _MM; //#27175 + $k[$j++] = $_.pixs; //#27175 + $k[$j++] = _MM; //#27175 + $aload($get($_.metadatamap, $f($_.j + 1))); //#27175 + $_.jmv(); //#27175 + var _MR = $k[--$j]; //#27175 + var _MS = $k[--$j]; //#27175 + $put($k[--$j], _MR, _MS); //#27175 + var _MV = $k[--$j]; //#27176 + $k[$j++] = $_.pixs; //#27176 + $k[$j++] = _MV; //#27176 + $aload($get($_.metadatamap, $f($_.j + 3))); //#27176 + $_.jmv(); //#27176 + var _MZ = $k[--$j]; //#27176 + var _Ma = $k[--$j]; //#27176 + $put($k[--$j], _MZ, _Ma); //#27176 + $_.j = $f($_.j + 4); //#27177 + } //#27177 var _N2 = $a([function() { - var _Md = $k[--$j]; //#26867 - var _Me = $k[--$j]; //#26867 - $k[$j++] = $f(_Me + _Md) % $_.colors; //#26867 + var _Md = $k[--$j]; //#27182 + var _Me = $k[--$j]; //#27182 + $k[$j++] = $f(_Me + _Md) % $_.colors; //#27182 }, function() { - $j--; //#26868 - var _Mh = $k[--$j]; //#26868 - $k[$j++] = _Mh % $_.colors; //#26868 + $j--; //#27183 + var _Mh = $k[--$j]; //#27183 + $k[$j++] = _Mh % $_.colors; //#27183 }, function() { - var _Mi = $k[--$j]; //#26869 - var _Mj = $k[--$j]; //#26869 - $k[$j++] = _Mi; //#26869 - $k[$j++] = _Mj; //#26869 - $j--; //#26869 - var _Ml = $k[--$j]; //#26869 - $k[$j++] = _Ml % $_.colors; //#26869 + var _Mi = $k[--$j]; //#27184 + var _Mj = $k[--$j]; //#27184 + $k[$j++] = _Mi; //#27184 + $k[$j++] = _Mj; //#27184 + $j--; //#27184 + var _Ml = $k[--$j]; //#27184 + $k[$j++] = _Ml % $_.colors; //#27184 }, function() { - var _Mm = $k[--$j]; //#26870 - var _Mn = $k[--$j]; //#26870 - $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#26870 + var _Mm = $k[--$j]; //#27185 + var _Mn = $k[--$j]; //#27185 + $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#27185 }, function() { - var _Mp = $k[--$j]; //#26871 - var _Mq = $k[--$j]; //#26871 - $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#26871 + var _Mp = $k[--$j]; //#27186 + var _Mq = $k[--$j]; //#27186 + $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#27186 }, function() { - var _Ms = $k[--$j]; //#26872 - var _Mu = $f($k[--$j] + _Ms); //#26872 - $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#26872 + var _Ms = $k[--$j]; //#27187 + var _Mu = $f($k[--$j] + _Ms); //#27187 + $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#27187 }, function() { - var _Mw = $k[--$j]; //#26873 - var _Mx = $k[--$j]; //#26873 - $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#26873 + var _Mw = $k[--$j]; //#27188 + var _Mx = $k[--$j]; //#27188 + $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#27188 }, function() { - var _Mz = $k[--$j]; //#26874 - var _N0 = $k[--$j]; //#26874 - $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#26874 - }]); //#26874 - $_.maskfuncs = _N2; //#26875 - if ($_.mask != -1) { //#26879 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#26877 - $_.bestmaskval = $_.mask; //#26878 - } //#26878 - $_.masks = $a($_.maskfuncs.length); //#26880 - for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#26893 - $_.m = _ND; //#26882 - $_.mask = $a($_.rows * $_.cols); //#26883 - for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#26891 - $_.j = _NJ; //#26885 - for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#26890 - $_.i = _NM; //#26887 - $k[$j++] = $_.pixs; //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 - $_.jmv(); //#26888 - var _NQ = $k[--$j]; //#26888 - if ($get($k[--$j], _NQ) == -1) { //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 + var _Mz = $k[--$j]; //#27189 + var _N0 = $k[--$j]; //#27189 + $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#27189 + }]); //#27189 + $_.maskfuncs = _N2; //#27190 + if ($_.mask != -1) { //#27194 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#27192 + $_.bestmaskval = $_.mask; //#27193 + } //#27193 + $_.masks = $a($_.maskfuncs.length); //#27195 + for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#27208 + $_.m = _ND; //#27197 + $_.mask = $a($_.rows * $_.cols); //#27198 + for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#27206 + $_.j = _NJ; //#27200 + for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#27205 + $_.i = _NM; //#27202 + $k[$j++] = $_.pixs; //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 + $_.jmv(); //#27203 + var _NQ = $k[--$j]; //#27203 + if ($get($k[--$j], _NQ) == -1) { //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#26888 - } else { //#26888 - $k[$j++] = 0; //#26888 - } //#26888 - $k[$j++] = $_.mask; //#26889 - $k[$j++] = $_.i; //#26889 - $k[$j++] = $_.j; //#26889 - $_.jmv(); //#26889 - var _Nb = $k[--$j]; //#26889 - var _Nc = $k[--$j]; //#26889 - $put(_Nc, _Nb, $k[--$j]); //#26889 - } //#26889 - } //#26889 - $put($_.masks, $_.m, $_.mask); //#26892 - } //#26892 - $_.posx = 0; //#26896 - $_.posy = 0; //#26896 - $_.i = 0; //#26897 - for (;;) { //#26907 - if ($_.posx == $_.cols) { //#26899 - break; //#26899 - } //#26899 - $k[$j++] = $_.pixs; //#26900 - $k[$j++] = $_.posx; //#26900 - $k[$j++] = $_.posy; //#26900 - $_.jmv(); //#26900 - var _Nm = $k[--$j]; //#26900 - if ($get($k[--$j], _Nm) == -1) { //#26904 - var _Ns = $geti($_.bits, $_.i, $_.databpm); //#26901 - $k[$j++] = 0; //#26901 - for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#26901 - var _Nw = $k[--$j]; //#26901 - $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#26901 - } //#26901 - var _Nx = $k[--$j]; //#26901 - $k[$j++] = ~~(_Nx / 2); //#26902 - $k[$j++] = $_.pixs; //#26902 - $k[$j++] = $_.posx; //#26902 - $k[$j++] = $_.posy; //#26902 - $_.jmv(); //#26902 - var _O1 = $k[--$j]; //#26902 - var _O2 = $k[--$j]; //#26902 - $put(_O2, _O1, $k[--$j]); //#26902 - $_.i = $_.i + $_.databpm; //#26903 - } //#26903 - $_.posy = $_.posy + 1; //#26905 - if ($_.posy == $_.rows) { //#26906 - $_.posy = 0; //#26906 - $_.posx = $_.posx + 1; //#26906 - } //#26906 - } //#26906 + } //#27203 + } else { //#27203 + $k[$j++] = 0; //#27203 + } //#27203 + $k[$j++] = $_.mask; //#27204 + $k[$j++] = $_.i; //#27204 + $k[$j++] = $_.j; //#27204 + $_.jmv(); //#27204 + var _Nb = $k[--$j]; //#27204 + var _Nc = $k[--$j]; //#27204 + $put(_Nc, _Nb, $k[--$j]); //#27204 + } //#27204 + } //#27204 + $put($_.masks, $_.m, $_.mask); //#27207 + } //#27207 + $_.posx = 0; //#27211 + $_.posy = 0; //#27211 + $_.i = 0; //#27212 + for (;;) { //#27222 + if ($_.posx == $_.cols) { //#27214 + break; //#27214 + } //#27214 + $k[$j++] = $_.pixs; //#27215 + $k[$j++] = $_.posx; //#27215 + $k[$j++] = $_.posy; //#27215 + $_.jmv(); //#27215 + var _Nm = $k[--$j]; //#27215 + if ($get($k[--$j], _Nm) == -1) { //#27219 + var _Ns = $geti($_.bits, $_.i, $_.databpm); //#27216 + $k[$j++] = 0; //#27216 + for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#27216 + var _Nw = $k[--$j]; //#27216 + $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#27216 + } //#27216 + var _Nx = $k[--$j]; //#27216 + $k[$j++] = ~~(_Nx / 2); //#27217 + $k[$j++] = $_.pixs; //#27217 + $k[$j++] = $_.posx; //#27217 + $k[$j++] = $_.posy; //#27217 + $_.jmv(); //#27217 + var _O1 = $k[--$j]; //#27217 + var _O2 = $k[--$j]; //#27217 + $put(_O2, _O1, $k[--$j]); //#27217 + $_.i = $_.i + $_.databpm; //#27218 + } //#27218 + $_.posy = $_.posy + 1; //#27220 + if ($_.posy == $_.rows) { //#27221 + $_.posy = 0; //#27221 + $_.posx = $_.posx + 1; //#27221 + } //#27221 + } //#27221 $_.evalrle = function() { - $_.scrle = $k[--$j]; //#26911 - $_.scr1 = 0; //#26912 - $_.scr3 = 0; //#26912 - for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#26934 - $_.j = _OD; //#26914 - if ($get($_.scrle, $_.j + 1) != -1) { //#26933 - var _OJ = $get($_.scrle, $_.j); //#26917 - $k[$j++] = _OJ; //#26917 - if (_OJ >= 5) { //#26917 - $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#26917 - } else { //#26917 - $j--; //#26917 - } //#26917 - if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#26932 - var _OR = $geti($_.scrle, $_.j - 4, 10); //#26920 - $k[$j++] = _OR; //#26921 - for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#26921 - $k[$j++] = $get(_OR, _OS) == 1; //#26921 - } //#26921 - $j--; //#26921 - for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#26921 - var _OX = $k[--$j]; //#26921 - var _OY = $k[--$j]; //#26921 - $k[$j++] = _OX; //#26921 - $k[$j++] = _OY; //#26921 - $j--; //#26921 - var _OZ = $k[--$j]; //#26921 - var _Oa = $k[--$j]; //#26921 - $k[$j++] = $an(_Oa, _OZ); //#26921 - } //#26921 - if ($k[--$j]) { //#26931 - $k[$j++] = Infinity; //#26922 - var _Oc = $k[--$j]; //#26922 - var _Od = $k[--$j]; //#26922 - $k[$j++] = _Oc; //#26922 - $aload(_Od); //#26922 - var _Oe = $k[--$j]; //#26923 - var _Of = $k[--$j]; //#26923 - var _Og = $k[--$j]; //#26923 - var _Oh = $k[--$j]; //#26923 - var _Oi = $k[--$j]; //#26923 - var _Oj = $k[--$j]; //#26923 - var _Ok = $k[--$j]; //#26923 - var _Ol = $k[--$j]; //#26923 - var _Om = $k[--$j]; //#26923 - $k[$j++] = _Om; //#26929 - $k[$j++] = _Ol; //#26929 - $k[$j++] = _Ok; //#26929 - $k[$j++] = _Oj; //#26929 - $k[$j++] = _Oi; //#26929 - $k[$j++] = _Oh; //#26929 - $k[$j++] = _Og; //#26929 - $k[$j++] = _Of; //#26929 - $k[$j++] = _Oe; //#26929 - if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#26929 - var _On = $k[--$j]; //#26925 - var _Oo = $k[--$j]; //#26925 - var _Op = $k[--$j]; //#26925 - $_.c4 = _Op; //#26925 - $_.c5 = _On; //#26925 - $k[$j++] = _Op; //#26928 - $k[$j++] = _Oo; //#26928 - if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#26928 - $_.scr3 = $_.scr3 + 100; //#26928 - } //#26928 - } //#26928 - $cleartomark(); //#26930 - } else { //#26931 - $j--; //#26931 - } //#26931 - } //#26931 - } //#26931 - } //#26931 - $k[$j++] = $_.scr1; //#26935 - $k[$j++] = $_.scr3; //#26935 - }; //#26935 + $_.scrle = $k[--$j]; //#27226 + $_.scr1 = 0; //#27227 + $_.scr3 = 0; //#27227 + for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#27249 + $_.j = _OD; //#27229 + if ($get($_.scrle, $_.j + 1) != -1) { //#27248 + var _OJ = $get($_.scrle, $_.j); //#27232 + $k[$j++] = _OJ; //#27232 + if (_OJ >= 5) { //#27232 + $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#27232 + } else { //#27232 + $j--; //#27232 + } //#27232 + if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#27247 + var _OR = $geti($_.scrle, $_.j - 4, 10); //#27235 + $k[$j++] = _OR; //#27236 + for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#27236 + $k[$j++] = $get(_OR, _OS) == 1; //#27236 + } //#27236 + $j--; //#27236 + for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#27236 + var _OX = $k[--$j]; //#27236 + var _OY = $k[--$j]; //#27236 + $k[$j++] = _OX; //#27236 + $k[$j++] = _OY; //#27236 + $j--; //#27236 + var _OZ = $k[--$j]; //#27236 + var _Oa = $k[--$j]; //#27236 + $k[$j++] = $an(_Oa, _OZ); //#27236 + } //#27236 + if ($k[--$j]) { //#27246 + $k[$j++] = Infinity; //#27237 + var _Oc = $k[--$j]; //#27237 + var _Od = $k[--$j]; //#27237 + $k[$j++] = _Oc; //#27237 + $aload(_Od); //#27237 + var _Oe = $k[--$j]; //#27238 + var _Of = $k[--$j]; //#27238 + var _Og = $k[--$j]; //#27238 + var _Oh = $k[--$j]; //#27238 + var _Oi = $k[--$j]; //#27238 + var _Oj = $k[--$j]; //#27238 + var _Ok = $k[--$j]; //#27238 + var _Ol = $k[--$j]; //#27238 + var _Om = $k[--$j]; //#27238 + $k[$j++] = _Om; //#27244 + $k[$j++] = _Ol; //#27244 + $k[$j++] = _Ok; //#27244 + $k[$j++] = _Oj; //#27244 + $k[$j++] = _Oi; //#27244 + $k[$j++] = _Oh; //#27244 + $k[$j++] = _Og; //#27244 + $k[$j++] = _Of; //#27244 + $k[$j++] = _Oe; //#27244 + if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#27244 + var _On = $k[--$j]; //#27240 + var _Oo = $k[--$j]; //#27240 + var _Op = $k[--$j]; //#27240 + $_.c4 = _Op; //#27240 + $_.c5 = _On; //#27240 + $k[$j++] = _Op; //#27243 + $k[$j++] = _Oo; //#27243 + if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#27243 + $_.scr3 = $_.scr3 + 100; //#27243 + } //#27243 + } //#27243 + $cleartomark(); //#27245 + } else { //#27246 + $j--; //#27246 + } //#27246 + } //#27246 + } //#27246 + } //#27246 + $k[$j++] = $_.scr1; //#27250 + $k[$j++] = $_.scr3; //#27250 + }; //#27250 $_.evalmask = function() { - $_.sym = $k[--$j]; //#26939 - $_.n1 = 0; //#26941 - $_.n2 = 0; //#26941 - $_.n3 = 0; //#26941 - var _PA = $_.rows; //#26942 - var _PB = $_.cols; //#26942 - if (_PA < _PB) { //#26942 - var _ = _PB; //#26942 - _PB = _PA; //#26942 - _PA = _; //#26942 - } //#26942 - $_.rle = $a($f((_PA * 2) + 2)); //#26942 - $_.lastpairs = $a($_.cols); //#26943 - $_.thispairs = $a($_.cols); //#26944 - for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#26956 - $_.i = _PJ; //#26948 - $k[$j++] = Infinity; //#26949 - $k[$j++] = 0; //#26952 - $k[$j++] = -1; //#26952 - for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#26952 - var _PS = $get($_.sym, _PP); //#26951 - var _PT = $k[--$j]; //#26951 - $k[$j++] = _PT; //#26951 - $k[$j++] = _PS; //#26951 - if ($eq(_PT, _PS)) { //#26951 - $j--; //#26951 - var _PU = $k[--$j]; //#26951 - var _PV = $k[--$j]; //#26951 - $k[$j++] = $f(_PV + 1); //#26951 - $k[$j++] = _PU; //#26951 - } else { //#26951 - var _PW = $k[--$j]; //#26951 - $k[$j++] = 1; //#26951 - $k[$j++] = _PW; //#26951 - } //#26951 - } //#26951 - var _PY = $counttomark() + 2; //#26953 - $astore($geti($_.rle, 0, _PY - 2)); //#26953 - $_.evalrle(); //#26954 - $_.n3 = $f($k[--$j] + $_.n3); //#26954 - $_.n1 = $f($k[--$j] + $_.n1); //#26954 - $j--; //#26955 - } //#26955 - for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#26983 - $_.i = _Pg; //#26959 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#26962 - $k[$j++] = Infinity; //#26963 - var _Pm = $_.symrow; //#26964 - $k[$j++] = 0; //#26966 - $k[$j++] = -1; //#26966 - for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#26966 - var _Pp = $get(_Pm, _Pn); //#26966 - var _Pq = $k[--$j]; //#26965 - $k[$j++] = _Pq; //#26965 - $k[$j++] = _Pp; //#26965 - if ($eq(_Pq, _Pp)) { //#26965 - $j--; //#26965 - var _Pr = $k[--$j]; //#26965 - var _Ps = $k[--$j]; //#26965 - $k[$j++] = $f(_Ps + 1); //#26965 - $k[$j++] = _Pr; //#26965 - } else { //#26965 - var _Pt = $k[--$j]; //#26965 - $k[$j++] = 1; //#26965 - $k[$j++] = _Pt; //#26965 - } //#26965 - } //#26965 - var _Pv = $counttomark() + 2; //#26967 - $astore($geti($_.rle, 0, _Pv - 2)); //#26967 - $_.evalrle(); //#26968 - $_.n3 = $f($k[--$j] + $_.n3); //#26968 - $_.n1 = $f($k[--$j] + $_.n1); //#26968 - $j--; //#26969 - var _Q1 = $_.thispairs; //#26972 - $_.thispairs = $_.lastpairs; //#26972 - $_.lastpairs = _Q1; //#26972 - var _Q3 = $_.symrow; //#26973 - $k[$j++] = -1; //#26973 - for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#26973 - var _Q6 = $get(_Q3, _Q4); //#26973 - var _Q7 = $k[--$j]; //#26973 - $k[$j++] = _Q6; //#26973 - $k[$j++] = _Q7; //#26973 - if ($ne(_Q6, _Q7)) { //#26973 - $j--; //#26973 - var _Q8 = $k[--$j]; //#26973 - $k[$j++] = -1; //#26973 - $k[$j++] = _Q8; //#26973 - } //#26973 - } //#26973 - $j--; //#26974 - $astore($_.thispairs); //#26975 - $j--; //#26975 - if ($_.i > 0) { //#26982 - $k[$j++] = Infinity; //#26977 - $aload($_.lastpairs); //#26978 - $aload($_.thispairs); //#26978 - $k[$j++] = $_.n2; //#26979 - for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#26979 - var _QH = $k[--$j]; //#26979 - var _QI = $k[--$j]; //#26979 - $k[$j++] = _QH; //#26979 - $k[$j++] = _QI; //#26979 - if (_QI != -1) { //#26979 - var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#26979 - if ($eq($k[--$j], _QK)) { //#26979 - var _QM = $k[--$j]; //#26979 - $k[$j++] = $f(_QM + 3); //#26979 - } //#26979 - } else { //#26979 - $j--; //#26979 - } //#26979 - } //#26979 - $_.n2 = $k[--$j]; //#26980 - $cleartomark(); //#26981 - } //#26981 - } //#26981 - $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#26985 - }; //#26985 - $_.bestscore = 999999999; //#26989 - for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27007 - $_.m = _QT; //#26991 - $_.masksym = $a($_.rows * $_.cols); //#26992 - for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#26996 - $_.i = _Qa; //#26994 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#26995 - } //#26995 - if ($_.masks.length != 1) { //#27005 - $k[$j++] = $_.masksym; //#26998 - $_.evalmask(); //#26998 - $_.score = $k[--$j]; //#26998 - if ($_.score < $_.bestscore) { //#27003 - $_.bestsym = $_.masksym; //#27000 - $_.bestmaskval = $_.m; //#27001 - $_.bestscore = $_.score; //#27002 - } //#27002 - } else { //#27005 - $_.bestsym = $_.masksym; //#27005 - } //#27005 - } //#27005 - $_.pixs = $_.bestsym; //#27008 - $_.metamask = $_.bestmaskval; //#27009 + $_.sym = $k[--$j]; //#27254 + $_.n1 = 0; //#27256 + $_.n2 = 0; //#27256 + $_.n3 = 0; //#27256 + var _PA = $_.rows; //#27257 + var _PB = $_.cols; //#27257 + if (_PA < _PB) { //#27257 + var _ = _PB; //#27257 + _PB = _PA; //#27257 + _PA = _; //#27257 + } //#27257 + $_.rle = $a($f((_PA * 2) + 2)); //#27257 + $_.lastpairs = $a($_.cols); //#27258 + $_.thispairs = $a($_.cols); //#27259 + for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#27271 + $_.i = _PJ; //#27263 + $k[$j++] = Infinity; //#27264 + $k[$j++] = 0; //#27267 + $k[$j++] = -1; //#27267 + for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#27267 + var _PS = $get($_.sym, _PP); //#27266 + var _PT = $k[--$j]; //#27266 + $k[$j++] = _PT; //#27266 + $k[$j++] = _PS; //#27266 + if ($eq(_PT, _PS)) { //#27266 + $j--; //#27266 + var _PU = $k[--$j]; //#27266 + var _PV = $k[--$j]; //#27266 + $k[$j++] = $f(_PV + 1); //#27266 + $k[$j++] = _PU; //#27266 + } else { //#27266 + var _PW = $k[--$j]; //#27266 + $k[$j++] = 1; //#27266 + $k[$j++] = _PW; //#27266 + } //#27266 + } //#27266 + var _PY = $counttomark() + 2; //#27268 + $astore($geti($_.rle, 0, _PY - 2)); //#27268 + $_.evalrle(); //#27269 + $_.n3 = $f($k[--$j] + $_.n3); //#27269 + $_.n1 = $f($k[--$j] + $_.n1); //#27269 + $j--; //#27270 + } //#27270 + for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#27298 + $_.i = _Pg; //#27274 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#27277 + $k[$j++] = Infinity; //#27278 + var _Pm = $_.symrow; //#27279 + $k[$j++] = 0; //#27281 + $k[$j++] = -1; //#27281 + for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#27281 + var _Pp = $get(_Pm, _Pn); //#27281 + var _Pq = $k[--$j]; //#27280 + $k[$j++] = _Pq; //#27280 + $k[$j++] = _Pp; //#27280 + if ($eq(_Pq, _Pp)) { //#27280 + $j--; //#27280 + var _Pr = $k[--$j]; //#27280 + var _Ps = $k[--$j]; //#27280 + $k[$j++] = $f(_Ps + 1); //#27280 + $k[$j++] = _Pr; //#27280 + } else { //#27280 + var _Pt = $k[--$j]; //#27280 + $k[$j++] = 1; //#27280 + $k[$j++] = _Pt; //#27280 + } //#27280 + } //#27280 + var _Pv = $counttomark() + 2; //#27282 + $astore($geti($_.rle, 0, _Pv - 2)); //#27282 + $_.evalrle(); //#27283 + $_.n3 = $f($k[--$j] + $_.n3); //#27283 + $_.n1 = $f($k[--$j] + $_.n1); //#27283 + $j--; //#27284 + var _Q1 = $_.thispairs; //#27287 + $_.thispairs = $_.lastpairs; //#27287 + $_.lastpairs = _Q1; //#27287 + var _Q3 = $_.symrow; //#27288 + $k[$j++] = -1; //#27288 + for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#27288 + var _Q6 = $get(_Q3, _Q4); //#27288 + var _Q7 = $k[--$j]; //#27288 + $k[$j++] = _Q6; //#27288 + $k[$j++] = _Q7; //#27288 + if ($ne(_Q6, _Q7)) { //#27288 + $j--; //#27288 + var _Q8 = $k[--$j]; //#27288 + $k[$j++] = -1; //#27288 + $k[$j++] = _Q8; //#27288 + } //#27288 + } //#27288 + $j--; //#27289 + $astore($_.thispairs); //#27290 + $j--; //#27290 + if ($_.i > 0) { //#27297 + $k[$j++] = Infinity; //#27292 + $aload($_.lastpairs); //#27293 + $aload($_.thispairs); //#27293 + $k[$j++] = $_.n2; //#27294 + for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#27294 + var _QH = $k[--$j]; //#27294 + var _QI = $k[--$j]; //#27294 + $k[$j++] = _QH; //#27294 + $k[$j++] = _QI; //#27294 + if (_QI != -1) { //#27294 + var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#27294 + if ($eq($k[--$j], _QK)) { //#27294 + var _QM = $k[--$j]; //#27294 + $k[$j++] = $f(_QM + 3); //#27294 + } //#27294 + } else { //#27294 + $j--; //#27294 + } //#27294 + } //#27294 + $_.n2 = $k[--$j]; //#27295 + $cleartomark(); //#27296 + } //#27296 + } //#27296 + $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#27300 + }; //#27300 + $_.bestscore = 999999999; //#27304 + for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27322 + $_.m = _QT; //#27306 + $_.masksym = $a($_.rows * $_.cols); //#27307 + for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#27311 + $_.i = _Qa; //#27309 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#27310 + } //#27310 + if ($_.masks.length != 1) { //#27320 + $k[$j++] = $_.masksym; //#27313 + $_.evalmask(); //#27313 + $_.score = $k[--$j]; //#27313 + if ($_.score < $_.bestscore) { //#27318 + $_.bestsym = $_.masksym; //#27315 + $_.bestmaskval = $_.m; //#27316 + $_.bestscore = $_.score; //#27317 + } //#27317 + } else { //#27320 + $_.bestsym = $_.masksym; //#27320 + } //#27320 + } //#27320 + $_.pixs = $_.bestsym; //#27323 + $_.metamask = $_.bestmaskval; //#27324 $_.addtometapart = function() { - var _Qw = $k[--$j]; //#27013 - $puti($_.metapart, $_.p, _Qw); //#27013 - $_.p = _Qw.length + $_.p; //#27014 - }; //#27014 + var _Qw = $k[--$j]; //#27328 + $puti($_.metapart, $_.p, _Qw); //#27328 + $_.p = _Qw.length + $_.p; //#27329 + }; //#27329 $_.addtometabits = function() { - var _R0 = $k[--$j]; //#27018 - $puti($_.metabits, $_.q, _R0); //#27018 - $_.q = _R0.length + $_.q; //#27019 - }; //#27019 - $_.metapart = $s(40); //#27022 - $_.metabits = $s($_.nummetabits); //#27023 - $_.p = 0; //#27024 - $_.q = 0; //#27024 - if (!$_.slave) { //#27079 - $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27029 - $k[$j++] = 3; //#27029 - $_.tofixedbits(); //#27029 - $_.addtometapart(); //#27029 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27030 - $k[$j++] = 2; //#27030 - $k[$j++] = -1; //#27030 - $_.ldpc(); //#27030 - $_.addtometabits(); //#27030 - $_.p = 0; //#27030 - $k[$j++] = $_.metass; //#27033 - $k[$j++] = 1; //#27033 - $_.tofixedbits(); //#27033 - $_.addtometapart(); //#27033 - $k[$j++] = $_.metavf; //#27034 - $k[$j++] = 2; //#27034 - $_.tofixedbits(); //#27034 - $_.addtometapart(); //#27034 - $k[$j++] = $_.metamask; //#27035 - $k[$j++] = 3; //#27035 - $_.tofixedbits(); //#27035 - $_.addtometapart(); //#27035 - if ($_.hasslaves) { //#27036 - $k[$j++] = "1"; //#27036 - } else { //#27036 - $k[$j++] = "0"; //#27036 - } //#27036 - $_.addtometapart(); //#27036 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27037 - $k[$j++] = 2; //#27037 - $k[$j++] = -1; //#27037 - $_.ldpc(); //#27037 - $_.addtometabits(); //#27037 - $_.p = 0; //#27037 - if ($_.metass == 0) { //#27047 - $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27042 - $k[$j++] = $_.metavlen; //#27042 - $_.tofixedbits(); //#27042 - $_.addtometapart(); //#27042 - } else { //#27047 - $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27045 - $k[$j++] = ~~($_.metavlen / 2); //#27045 - $_.tofixedbits(); //#27045 - $_.addtometapart(); //#27045 - $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27047 - $k[$j++] = ~~($_.metavlen / 2); //#27047 - $_.tofixedbits(); //#27047 - $_.addtometapart(); //#27047 - } //#27047 - $k[$j++] = $_.datawc - 3; //#27049 - $k[$j++] = ~~($_.metaelen / 2); //#27049 - $_.tofixedbits(); //#27049 - $_.addtometapart(); //#27049 - $k[$j++] = $_.datawr - 4; //#27050 - $k[$j++] = ~~($_.metaelen / 2); //#27050 - $_.tofixedbits(); //#27050 - $_.addtometapart(); //#27050 - if ($_.hasslaves) { //#27053 - $k[$j++] = 0; //#27052 - $k[$j++] = 4; //#27052 - $_.tofixedbits(); //#27052 - $_.addtometapart(); //#27052 - } //#27052 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27054 - $k[$j++] = 2; //#27054 - $k[$j++] = -1; //#27054 - $_.ldpc(); //#27054 - $_.addtometabits(); //#27054 - $_.p = 0; //#27054 - } else { //#27079 - var _Rc = $_.sameshape ? 0 : 1; //#27059 - $k[$j++] = _Rc; //#27059 - $k[$j++] = 1; //#27059 - $_.tofixedbits(); //#27059 - $_.addtometapart(); //#27059 - var _Re = $_.sameecc ? 0 : 1; //#27060 - $k[$j++] = _Re; //#27060 - $k[$j++] = 1; //#27060 - $_.tofixedbits(); //#27060 - $_.addtometapart(); //#27060 - var _Rg = $_.hasslaves ? 1 : 0; //#27061 - $k[$j++] = _Rg; //#27061 - $k[$j++] = 1; //#27061 - $_.tofixedbits(); //#27061 - $_.addtometapart(); //#27061 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27062 - $k[$j++] = 2; //#27062 - $k[$j++] = -1; //#27062 - $_.ldpc(); //#27062 - $_.addtometabits(); //#27062 - $_.p = 0; //#27062 - if (!$_.sameshape) { //#27068 - $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27067 - $k[$j++] = 5; //#27067 - $_.tofixedbits(); //#27067 - $_.addtometapart(); //#27067 - } //#27067 - if ($_.hasslaves) { //#27071 - $k[$j++] = 0; //#27070 - $k[$j++] = 3; //#27070 - $_.tofixedbits(); //#27070 - $_.addtometapart(); //#27070 - } //#27070 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27072 - $k[$j++] = 2; //#27072 - $k[$j++] = -1; //#27072 - $_.ldpc(); //#27072 - $_.addtometabits(); //#27072 - $_.p = 0; //#27072 - if (!$_.sameecc) { //#27078 - $k[$j++] = $_.datawc - 3; //#27076 - $k[$j++] = ~~($_.metaelen / 2); //#27076 - $_.tofixedbits(); //#27076 - $_.addtometapart(); //#27076 - $k[$j++] = $_.datawr - 4; //#27077 - $k[$j++] = ~~($_.metaelen / 2); //#27077 - $_.tofixedbits(); //#27077 - $_.addtometapart(); //#27077 - } //#27077 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27079 - $k[$j++] = 2; //#27079 - $k[$j++] = -1; //#27079 - $_.ldpc(); //#27079 - $_.addtometabits(); //#27079 - $_.p = 0; //#27079 - } //#27079 - for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27084 - $put($_.metabits, _S1, 48); //#27083 - } //#27083 - $_.i = 0; //#27087 - $_.j = 0; //#27087 - if (!$_.slave) { //#27095 - var _S6 = $geti($_.metabits, $_.i, 6); //#27089 - for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27093 - $k[$j++] = $get(_S6, _S7); //#27090 - if ($_.colors == 4) { //#27090 - $k[$j++] = $a([$_.bi, $_.yi]); //#27090 - } else { //#27090 - $k[$j++] = $a([$_.ki, $_.wi]); //#27090 - } //#27090 - var _SH = $k[--$j]; //#27090 - var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27090 - $k[$j++] = _SJ; //#27091 - $k[$j++] = $_.pixs; //#27091 - $aload($get($_.metadatamap, $_.j)); //#27091 - $_.jmv(); //#27091 - var _SO = $k[--$j]; //#27091 - var _SP = $k[--$j]; //#27091 - $put(_SP, _SO, $k[--$j]); //#27091 - $_.j = $_.j + 1; //#27092 - } //#27092 - $_.i = $_.i + 6; //#27094 - } //#27094 - for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27102 - var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27097 - $k[$j++] = 0; //#27097 - for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27097 - var _Sf = $k[--$j]; //#27097 - $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27097 - } //#27097 - var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27098 - $k[$j++] = _Si; //#27099 - $k[$j++] = $_.pixs; //#27099 - $aload($get($_.metadatamap, $_.j)); //#27099 - $_.jmv(); //#27099 - var _Sn = $k[--$j]; //#27099 - var _So = $k[--$j]; //#27099 - $put(_So, _Sn, $k[--$j]); //#27099 - $_.i = $f($_.i + $_.metabpm); //#27100 - $_.j = $_.j + 1; //#27101 - } //#27101 + var _R0 = $k[--$j]; //#27333 + $puti($_.metabits, $_.q, _R0); //#27333 + $_.q = _R0.length + $_.q; //#27334 + }; //#27334 + $_.metapart = $s(40); //#27337 + $_.metabits = $s($_.nummetabits); //#27338 + $_.p = 0; //#27339 + $_.q = 0; //#27339 + if (!$_.slave) { //#27394 + $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27344 + $k[$j++] = 3; //#27344 + $_.tofixedbits(); //#27344 + $_.addtometapart(); //#27344 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27345 + $k[$j++] = 2; //#27345 + $k[$j++] = -1; //#27345 + $_.ldpc(); //#27345 + $_.addtometabits(); //#27345 + $_.p = 0; //#27345 + $k[$j++] = $_.metass; //#27348 + $k[$j++] = 1; //#27348 + $_.tofixedbits(); //#27348 + $_.addtometapart(); //#27348 + $k[$j++] = $_.metavf; //#27349 + $k[$j++] = 2; //#27349 + $_.tofixedbits(); //#27349 + $_.addtometapart(); //#27349 + $k[$j++] = $_.metamask; //#27350 + $k[$j++] = 3; //#27350 + $_.tofixedbits(); //#27350 + $_.addtometapart(); //#27350 + if ($_.hasslaves) { //#27351 + $k[$j++] = "1"; //#27351 + } else { //#27351 + $k[$j++] = "0"; //#27351 + } //#27351 + $_.addtometapart(); //#27351 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27352 + $k[$j++] = 2; //#27352 + $k[$j++] = -1; //#27352 + $_.ldpc(); //#27352 + $_.addtometabits(); //#27352 + $_.p = 0; //#27352 + if ($_.metass == 0) { //#27362 + $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27357 + $k[$j++] = $_.metavlen; //#27357 + $_.tofixedbits(); //#27357 + $_.addtometapart(); //#27357 + } else { //#27362 + $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27360 + $k[$j++] = ~~($_.metavlen / 2); //#27360 + $_.tofixedbits(); //#27360 + $_.addtometapart(); //#27360 + $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27362 + $k[$j++] = ~~($_.metavlen / 2); //#27362 + $_.tofixedbits(); //#27362 + $_.addtometapart(); //#27362 + } //#27362 + $k[$j++] = $_.datawc - 3; //#27364 + $k[$j++] = ~~($_.metaelen / 2); //#27364 + $_.tofixedbits(); //#27364 + $_.addtometapart(); //#27364 + $k[$j++] = $_.datawr - 4; //#27365 + $k[$j++] = ~~($_.metaelen / 2); //#27365 + $_.tofixedbits(); //#27365 + $_.addtometapart(); //#27365 + if ($_.hasslaves) { //#27368 + $k[$j++] = 0; //#27367 + $k[$j++] = 4; //#27367 + $_.tofixedbits(); //#27367 + $_.addtometapart(); //#27367 + } //#27367 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27369 + $k[$j++] = 2; //#27369 + $k[$j++] = -1; //#27369 + $_.ldpc(); //#27369 + $_.addtometabits(); //#27369 + $_.p = 0; //#27369 + } else { //#27394 + var _Rc = $_.sameshape ? 0 : 1; //#27374 + $k[$j++] = _Rc; //#27374 + $k[$j++] = 1; //#27374 + $_.tofixedbits(); //#27374 + $_.addtometapart(); //#27374 + var _Re = $_.sameecc ? 0 : 1; //#27375 + $k[$j++] = _Re; //#27375 + $k[$j++] = 1; //#27375 + $_.tofixedbits(); //#27375 + $_.addtometapart(); //#27375 + var _Rg = $_.hasslaves ? 1 : 0; //#27376 + $k[$j++] = _Rg; //#27376 + $k[$j++] = 1; //#27376 + $_.tofixedbits(); //#27376 + $_.addtometapart(); //#27376 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27377 + $k[$j++] = 2; //#27377 + $k[$j++] = -1; //#27377 + $_.ldpc(); //#27377 + $_.addtometabits(); //#27377 + $_.p = 0; //#27377 + if (!$_.sameshape) { //#27383 + $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27382 + $k[$j++] = 5; //#27382 + $_.tofixedbits(); //#27382 + $_.addtometapart(); //#27382 + } //#27382 + if ($_.hasslaves) { //#27386 + $k[$j++] = 0; //#27385 + $k[$j++] = 3; //#27385 + $_.tofixedbits(); //#27385 + $_.addtometapart(); //#27385 + } //#27385 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27387 + $k[$j++] = 2; //#27387 + $k[$j++] = -1; //#27387 + $_.ldpc(); //#27387 + $_.addtometabits(); //#27387 + $_.p = 0; //#27387 + if (!$_.sameecc) { //#27393 + $k[$j++] = $_.datawc - 3; //#27391 + $k[$j++] = ~~($_.metaelen / 2); //#27391 + $_.tofixedbits(); //#27391 + $_.addtometapart(); //#27391 + $k[$j++] = $_.datawr - 4; //#27392 + $k[$j++] = ~~($_.metaelen / 2); //#27392 + $_.tofixedbits(); //#27392 + $_.addtometapart(); //#27392 + } //#27392 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27394 + $k[$j++] = 2; //#27394 + $k[$j++] = -1; //#27394 + $_.ldpc(); //#27394 + $_.addtometabits(); //#27394 + $_.p = 0; //#27394 + } //#27394 + for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27399 + $put($_.metabits, _S1, 48); //#27398 + } //#27398 + $_.i = 0; //#27402 + $_.j = 0; //#27402 + if (!$_.slave) { //#27410 + var _S6 = $geti($_.metabits, $_.i, 6); //#27404 + for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27408 + $k[$j++] = $get(_S6, _S7); //#27405 + if ($_.colors == 4) { //#27405 + $k[$j++] = $a([$_.bi, $_.yi]); //#27405 + } else { //#27405 + $k[$j++] = $a([$_.ki, $_.wi]); //#27405 + } //#27405 + var _SH = $k[--$j]; //#27405 + var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27405 + $k[$j++] = _SJ; //#27406 + $k[$j++] = $_.pixs; //#27406 + $aload($get($_.metadatamap, $_.j)); //#27406 + $_.jmv(); //#27406 + var _SO = $k[--$j]; //#27406 + var _SP = $k[--$j]; //#27406 + $put(_SP, _SO, $k[--$j]); //#27406 + $_.j = $_.j + 1; //#27407 + } //#27407 + $_.i = $_.i + 6; //#27409 + } //#27409 + for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27417 + var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27412 + $k[$j++] = 0; //#27412 + for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27412 + var _Sf = $k[--$j]; //#27412 + $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27412 + } //#27412 + var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27413 + $k[$j++] = _Si; //#27414 + $k[$j++] = $_.pixs; //#27414 + $aload($get($_.metadatamap, $_.j)); //#27414 + $_.jmv(); //#27414 + var _Sn = $k[--$j]; //#27414 + var _So = $k[--$j]; //#27414 + $put(_So, _Sn, $k[--$j]); //#27414 + $_.i = $f($_.i + $_.metabpm); //#27415 + $_.j = $_.j + 1; //#27416 + } //#27416 var _T0 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -34261,42 +34739,45 @@ function bwipp_jabcode() { ["colormap", $_.palette], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#27112 - $k[$j++] = _T0; //#27115 - if (!$_.dontdraw) { //#27115 - bwipp_renmatrix(); //#27115 - } //#27115 - $_ = Object.getPrototypeOf($_); //#27117 -} - + ]); //#27431 + $k[$j++] = _T0; //#27434 + if (!$_.dontdraw) { //#27434 + bwipp_renmatrix(); //#27434 + } //#27434 + $_ = Object.getPrototypeOf($_); //#27436 +} //bwipp_jabcode function bwipp_gs1_cc() { - $_ = Object.create($_); //#27150 - $_.parse = false; //#27153 - $_.dontlint = false; //#27154 - $_.lintreqs = false; //#27155 - $_.dontdraw = false; //#27156 - $_.ccversion = "a"; //#27157 - $_.cccolumns = -1; //#27158 - $_.lintype = ""; //#27159 - $_.linwidth = -1; //#27160 - $k[$j++] = $_; //#27162 - bwipp_processoptions(); //#27162 - $_.options = $k[--$j]; //#27162 - $_.barcode = $k[--$j]; //#27163 - bwipp_loadctx(bwipp_gs1_cc) //#27165 - if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27169 - $k[$j++] = 'bwipp.gs1ccBadCCversion#27168'; //#27168 - $k[$j++] = "ccversion must be a, b or c"; //#27168 - bwipp_raiseerror(); //#27168 - } //#27168 - if ($_.cccolumns > 30) { //#27173 - $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27172'; //#27172 - $k[$j++] = "The maximum number of composite component columns is 30"; //#27172 - bwipp_raiseerror(); //#27172 - } //#27172 - if (!bwipp_gs1_cc.__27190__) { //#27190 - $_ = Object.create($_); //#27190 + $_ = Object.create($_); //#27469 + $_.parse = false; //#27472 + $_.dontlint = false; //#27473 + $_.lintreqs = false; //#27474 + $_.dontdraw = false; //#27475 + $_.ccversion = "a"; //#27476 + $_.cccolumns = -1; //#27477 + $_.lintype = ""; //#27478 + $_.linwidth = -1; //#27479 + $k[$j++] = $_; //#27481 + bwipp_processoptions(); //#27481 + $_.options = $k[--$j]; //#27481 + $_.barcode = $k[--$j]; //#27482 + bwipp_loadctx(bwipp_gs1_cc) //#27484 + if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27488 + $k[$j++] = 'bwipp.gs1ccBadCCversion#27487'; //#27487 + $k[$j++] = "ccversion must be a, b or c"; //#27487 + bwipp_raiseerror(); //#27487 + } //#27487 + if ($_.cccolumns > 30) { //#27492 + $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27491'; //#27491 + $k[$j++] = "The maximum number of composite component columns is 30"; //#27491 + bwipp_raiseerror(); //#27491 + } //#27491 + if (!bwipp_gs1_cc.__27509__) { //#27509 + $_ = Object.create($_); //#27509 var _6 = new Map([ ["ean13", 4], ["upca", 4], @@ -34310,1806 +34791,1383 @@ function bwipp_gs1_cc() { ["databarlimited", 3], ["databarexpanded", 4], ["databarexpandedstacked", 4] - ]); //#27188 - $_.lintypecccolumns = _6; //#27189 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27189 - bwipp_gs1_cc.__27190__ = 1; //#27189 - $_ = Object.getPrototypeOf($_); //#27189 - } //#27189 - if ($ne($_.lintype, "")) { //#27196 - var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27193 - if (!_B) { //#27195 - $k[$j++] = 'bwipp.gs1ccBadLinType#27194'; //#27194 - $k[$j++] = "The lintype is not recognised"; //#27194 - bwipp_raiseerror(); //#27194 - } //#27194 - } //#27194 - if ($_.cccolumns == -1) { //#27209 - if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27206 - if ($_.linwidth < 0) { //#27203 - $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27202'; //#27202 - $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27202 - bwipp_raiseerror(); //#27202 - } //#27202 - $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27204 - } else { //#27206 - $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27206 - } //#27206 - $_.cccolumns = $k[--$j]; //#27208 - } //#27208 - $k[$j++] = $_.barcode; //#27211 - $k[$j++] = 'ai'; //#27211 - bwipp_gs1process(); //#27211 - $_.fncs = $k[--$j]; //#27212 - $_.vals = $k[--$j]; //#27213 - $_.ais = $k[--$j]; //#27214 + ]); //#27507 + $_.lintypecccolumns = _6; //#27508 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27508 + bwipp_gs1_cc.__27509__ = 1; //#27508 + $_ = Object.getPrototypeOf($_); //#27508 + } //#27508 + if ($ne($_.lintype, "")) { //#27515 + var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27512 + if (!_B) { //#27514 + $k[$j++] = 'bwipp.gs1ccBadLinType#27513'; //#27513 + $k[$j++] = "The lintype is not recognised"; //#27513 + bwipp_raiseerror(); //#27513 + } //#27513 + } //#27513 + if ($_.cccolumns == -1) { //#27531 + if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27528 + if ($_.linwidth < 0) { //#27522 + $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27521'; //#27521 + $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27521 + bwipp_raiseerror(); //#27521 + } //#27521 + if ($_.linwidth < 68) { //#27525 + $k[$j++] = 'bwipp.gs1ccMinimumLinWidth#27524'; //#27524 + $k[$j++] = "Minimum linwidth for a GS1-128 with a CC-C composite component is 68"; //#27524 + bwipp_raiseerror(); //#27524 + } //#27524 + if ($_.linwidth == 68) { //#27526 + $k[$j++] = 1; //#27526 + } else { //#27526 + $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27526 + } //#27526 + } else { //#27528 + if ($ne($_.lintype, "")) { //#27528 + $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27528 + } else { //#27528 + $k[$j++] = 2; //#27528 + } //#27528 + } //#27528 + $_.cccolumns = $k[--$j]; //#27530 + } //#27530 + $k[$j++] = $_.barcode; //#27533 + $k[$j++] = 'ai'; //#27533 + bwipp_gs1process(); //#27533 + $_.fncs = $k[--$j]; //#27534 + $_.vals = $k[--$j]; //#27535 + $_.ais = $k[--$j]; //#27536 $_.isupper = function() { - var _P = $k[--$j]; //#27217 - $k[$j++] = (_P >= 65) && (_P <= 90); //#27217 - }; //#27217 + var _S = $k[--$j]; //#27539 + $k[$j++] = (_S >= 65) && (_S <= 90); //#27539 + }; //#27539 $_.isnum0 = function() { - var _Q = $k[--$j]; //#27218 - $k[$j++] = (_Q >= 48) && (_Q <= 57); //#27218 - }; //#27218 + var _T = $k[--$j]; //#27540 + $k[$j++] = (_T >= 48) && (_T <= 57); //#27540 + }; //#27540 $_.isnum1 = function() { - var _R = $k[--$j]; //#27219 - $k[$j++] = (_R >= 49) && (_R <= 57); //#27219 - }; //#27219 - for (;;) { //#27265 - if ($_.ais.length >= 1) { //#27227 - if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27226 - $k[$j++] = -1; //#27225 - $k[$j++] = "10"; //#27225 - break; //#27225 - } //#27225 - } //#27225 - if ($_.ais.length >= 1) { //#27260 - if ($eq($get($_.ais, 0), "90")) { //#27259 - $_.v = $get($_.vals, 0); //#27232 - if ($_.v.length >= 1) { //#27237 - $k[$j++] = $get($_.v, 0); //#27234 - $_.isupper(); //#27234 - if ($k[--$j]) { //#27236 - $k[$j++] = 0; //#27235 - $k[$j++] = "11"; //#27235 - break; //#27235 - } //#27235 - } //#27235 - if ($_.v.length >= 2) { //#27243 - $k[$j++] = $get($_.v, 0); //#27239 - $_.isnum1(); //#27239 - $k[$j++] = $get($_.v, 1); //#27240 - $_.isupper(); //#27240 - var _n = $k[--$j]; //#27240 - var _o = $k[--$j]; //#27240 - if ((_o && _n)) { //#27242 - $k[$j++] = 1; //#27241 - $k[$j++] = "11"; //#27241 - break; //#27241 - } //#27241 - } //#27241 - if ($_.v.length >= 3) { //#27250 - $k[$j++] = $get($_.v, 0); //#27245 - $_.isnum1(); //#27245 - $k[$j++] = $get($_.v, 1); //#27246 - $_.isnum0(); //#27246 - var _u = $k[--$j]; //#27246 - var _v = $k[--$j]; //#27246 - $k[$j++] = $an(_v, _u); //#27247 - $k[$j++] = $get($_.v, 2); //#27247 - $_.isupper(); //#27247 - var _y = $k[--$j]; //#27247 - var _z = $k[--$j]; //#27247 - if ((_z && _y)) { //#27249 - $k[$j++] = 2; //#27248 - $k[$j++] = "11"; //#27248 - break; //#27248 - } //#27248 - } //#27248 - if ($_.v.length >= 4) { //#27258 - $k[$j++] = $get($_.v, 0); //#27252 - $_.isnum1(); //#27252 - $k[$j++] = $get($_.v, 1); //#27253 - $_.isnum0(); //#27253 - var _15 = $k[--$j]; //#27253 - var _16 = $k[--$j]; //#27253 - $k[$j++] = $an(_16, _15); //#27254 - $k[$j++] = $get($_.v, 2); //#27254 - $_.isnum0(); //#27254 - var _19 = $k[--$j]; //#27254 - var _1A = $k[--$j]; //#27254 - $k[$j++] = $an(_1A, _19); //#27255 - $k[$j++] = $get($_.v, 3); //#27255 - $_.isupper(); //#27255 - var _1D = $k[--$j]; //#27255 - var _1E = $k[--$j]; //#27255 - if ((_1E && _1D)) { //#27257 - $k[$j++] = 3; //#27256 - $k[$j++] = "11"; //#27256 - break; //#27256 - } //#27256 - } //#27256 - } //#27256 - } //#27256 - $k[$j++] = -1; //#27263 - $k[$j++] = "0"; //#27263 - break; //#27263 - } //#27263 - $_.method = $k[--$j]; //#27266 - $_.npre = $k[--$j]; //#27267 + var _U = $k[--$j]; //#27541 + $k[$j++] = (_U >= 49) && (_U <= 57); //#27541 + }; //#27541 + for (;;) { //#27587 + if ($_.ais.length >= 1) { //#27549 + if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27548 + $k[$j++] = -1; //#27547 + $k[$j++] = "10"; //#27547 + break; //#27547 + } //#27547 + } //#27547 + if ($_.ais.length >= 1) { //#27582 + if ($eq($get($_.ais, 0), "90")) { //#27581 + $_.v = $get($_.vals, 0); //#27554 + if ($_.v.length >= 1) { //#27559 + $k[$j++] = $get($_.v, 0); //#27556 + $_.isupper(); //#27556 + if ($k[--$j]) { //#27558 + $k[$j++] = 0; //#27557 + $k[$j++] = "11"; //#27557 + break; //#27557 + } //#27557 + } //#27557 + if ($_.v.length >= 2) { //#27565 + $k[$j++] = $get($_.v, 0); //#27561 + $_.isnum1(); //#27561 + $k[$j++] = $get($_.v, 1); //#27562 + $_.isupper(); //#27562 + var _q = $k[--$j]; //#27562 + var _r = $k[--$j]; //#27562 + if ((_r && _q)) { //#27564 + $k[$j++] = 1; //#27563 + $k[$j++] = "11"; //#27563 + break; //#27563 + } //#27563 + } //#27563 + if ($_.v.length >= 3) { //#27572 + $k[$j++] = $get($_.v, 0); //#27567 + $_.isnum1(); //#27567 + $k[$j++] = $get($_.v, 1); //#27568 + $_.isnum0(); //#27568 + var _x = $k[--$j]; //#27568 + var _y = $k[--$j]; //#27568 + $k[$j++] = $an(_y, _x); //#27569 + $k[$j++] = $get($_.v, 2); //#27569 + $_.isupper(); //#27569 + var _11 = $k[--$j]; //#27569 + var _12 = $k[--$j]; //#27569 + if ((_12 && _11)) { //#27571 + $k[$j++] = 2; //#27570 + $k[$j++] = "11"; //#27570 + break; //#27570 + } //#27570 + } //#27570 + if ($_.v.length >= 4) { //#27580 + $k[$j++] = $get($_.v, 0); //#27574 + $_.isnum1(); //#27574 + $k[$j++] = $get($_.v, 1); //#27575 + $_.isnum0(); //#27575 + var _18 = $k[--$j]; //#27575 + var _19 = $k[--$j]; //#27575 + $k[$j++] = $an(_19, _18); //#27576 + $k[$j++] = $get($_.v, 2); //#27576 + $_.isnum0(); //#27576 + var _1C = $k[--$j]; //#27576 + var _1D = $k[--$j]; //#27576 + $k[$j++] = $an(_1D, _1C); //#27577 + $k[$j++] = $get($_.v, 3); //#27577 + $_.isupper(); //#27577 + var _1G = $k[--$j]; //#27577 + var _1H = $k[--$j]; //#27577 + if ((_1H && _1G)) { //#27579 + $k[$j++] = 3; //#27578 + $k[$j++] = "11"; //#27578 + break; //#27578 + } //#27578 + } //#27578 + } //#27578 + } //#27578 + $k[$j++] = -1; //#27585 + $k[$j++] = "0"; //#27585 + break; //#27585 + } //#27585 + $_.method = $k[--$j]; //#27588 + $_.npre = $k[--$j]; //#27589 $_.tobin = function() { - var _1I = $s($k[--$j]); //#27270 - $k[$j++] = _1I; //#27270 - for (var _1K = 0, _1J = _1I.length - 1; _1K <= _1J; _1K += 1) { //#27270 - var _1L = $k[--$j]; //#27270 - $put(_1L, _1K, 48); //#27270 - $k[$j++] = _1L; //#27270 - } //#27270 - var _1M = $k[--$j]; //#27271 - var _1P = $cvrs($s(_1M.length), $k[--$j], 2); //#27271 - $puti(_1M, _1M.length - _1P.length, _1P); //#27271 - $k[$j++] = _1M; //#27271 - }; //#27271 - if (!bwipp_gs1_cc.__27322__) { //#27322 - $_ = Object.create($_); //#27322 - $_.fnc1 = -1; //#27276 - $_.lnumeric = -2; //#27276 - $_.lalphanumeric = -3; //#27276 - $_.liso646 = -4; //#27276 - $k[$j++] = Infinity; //#27281 - for (var _1Q = 65; _1Q <= 90; _1Q += 1) { //#27279 - $k[$j++] = _1Q; //#27279 - $k[$j++] = _1Q - 65; //#27279 - $k[$j++] = 5; //#27279 - $_.tobin(); //#27279 - } //#27279 - for (var _1R = 48; _1R <= 57; _1R += 1) { //#27280 - $k[$j++] = _1R; //#27280 - $k[$j++] = _1R + 4; //#27280 - $k[$j++] = 6; //#27280 - $_.tobin(); //#27280 - } //#27280 - $k[$j++] = $_.fnc1; //#27281 - $k[$j++] = "11111"; //#27281 - $_.alpha = $d(); //#27282 - $k[$j++] = Infinity; //#27294 - for (var _1U = 0; _1U <= 119; _1U += 1) { //#27293 - var _1W = $strcpy($s(2), "00"); //#27286 - var _1Y = $cvrs($s(2), _1U, 11); //#27286 - $puti(_1W, 2 - _1Y.length, _1Y); //#27287 - $k[$j++] = _1U; //#27288 - $k[$j++] = _1W; //#27288 - if ($get(_1W, 0) == 65) { //#27288 - var _1a = $k[--$j]; //#27288 - $put(_1a, 0, 94); //#27288 - $k[$j++] = _1a; //#27288 - } //#27288 - var _1b = $k[--$j]; //#27289 - $k[$j++] = _1b; //#27289 - if ($get(_1b, 1) == 65) { //#27289 - var _1d = $k[--$j]; //#27289 - $put(_1d, 1, 94); //#27289 - $k[$j++] = _1d; //#27289 - } //#27289 - var _1e = $k[--$j]; //#27290 - var _1h = $strcpy($s(7), "0000000"); //#27291 - var _1j = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27291 - $puti(_1h, 7 - _1j.length, _1j); //#27292 - $k[$j++] = _1e; //#27292 - $k[$j++] = _1h; //#27292 - } //#27292 - $k[$j++] = $_.lalphanumeric; //#27294 - $k[$j++] = "0000"; //#27294 - $_.numeric = $d(); //#27295 - $k[$j++] = Infinity; //#27304 - for (var _1m = 48; _1m <= 57; _1m += 1) { //#27298 - $k[$j++] = _1m; //#27298 - $k[$j++] = _1m - 43; //#27298 - $k[$j++] = 5; //#27298 - $_.tobin(); //#27298 - } //#27298 - $k[$j++] = $_.fnc1; //#27300 - $k[$j++] = "01111"; //#27300 - for (var _1o = 65; _1o <= 90; _1o += 1) { //#27300 - $k[$j++] = _1o; //#27300 - $k[$j++] = _1o - 33; //#27300 - $k[$j++] = 6; //#27300 - $_.tobin(); //#27300 - } //#27300 - $k[$j++] = 42; //#27302 - $k[$j++] = "111010"; //#27302 - for (var _1p = 44; _1p <= 47; _1p += 1) { //#27302 - $k[$j++] = _1p; //#27302 - $k[$j++] = _1p + 15; //#27302 - $k[$j++] = 6; //#27302 - $_.tobin(); //#27302 - } //#27302 - $k[$j++] = $_.lnumeric; //#27304 - $k[$j++] = "000"; //#27304 - $k[$j++] = $_.liso646; //#27304 - $k[$j++] = "00100"; //#27304 - $_.alphanumeric = $d(); //#27305 - $k[$j++] = Infinity; //#27319 - for (var _1t = 48; _1t <= 57; _1t += 1) { //#27308 - $k[$j++] = _1t; //#27308 - $k[$j++] = _1t - 43; //#27308 - $k[$j++] = 5; //#27308 - $_.tobin(); //#27308 - } //#27308 - $k[$j++] = $_.fnc1; //#27310 - $k[$j++] = "01111"; //#27310 - for (var _1v = 65; _1v <= 90; _1v += 1) { //#27310 - $k[$j++] = _1v; //#27310 - $k[$j++] = _1v - 1; //#27310 - $k[$j++] = 7; //#27310 - $_.tobin(); //#27310 - } //#27310 - for (var _1w = 97; _1w <= 122; _1w += 1) { //#27311 - $k[$j++] = _1w; //#27311 - $k[$j++] = _1w - 7; //#27311 - $k[$j++] = 7; //#27311 - $_.tobin(); //#27311 - } //#27311 - $k[$j++] = 33; //#27314 - $k[$j++] = "11101000"; //#27314 - $k[$j++] = 34; //#27314 - $k[$j++] = "11101001"; //#27314 - for (var _1x = 37; _1x <= 47; _1x += 1) { //#27314 - $k[$j++] = _1x; //#27314 - $k[$j++] = _1x + 197; //#27314 - $k[$j++] = 8; //#27314 - $_.tobin(); //#27314 - } //#27314 - for (var _1y = 58; _1y <= 63; _1y += 1) { //#27315 - $k[$j++] = _1y; //#27315 - $k[$j++] = _1y + 187; //#27315 - $k[$j++] = 8; //#27315 - $_.tobin(); //#27315 - } //#27315 - $k[$j++] = 95; //#27319 - $k[$j++] = "11111011"; //#27319 - $k[$j++] = 32; //#27319 - $k[$j++] = "11111100"; //#27319 - $k[$j++] = $_.lnumeric; //#27319 - $k[$j++] = "000"; //#27319 - $k[$j++] = $_.lalphanumeric; //#27319 - $k[$j++] = "00100"; //#27319 - $_.iso646 = $d(); //#27320 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27320 - bwipp_gs1_cc.__27322__ = 1; //#27320 - $_ = Object.getPrototypeOf($_); //#27320 - } //#27320 - if ($eq($_.method, "10")) { //#27357 - if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27340 - var _29 = $get($_.vals, 0); //#27326 - var _2E = $strcpy($s(16), "0000000000000000"); //#27330 - var _2G = $cvrs($s(16), ($cvi($geti(_29, 0, 2)) * 384) + ((($cvi($geti(_29, 2, 2)) - 1) * 32) + $cvi($geti(_29, 4, 2))), 2); //#27330 - $puti(_2E, 16 - _2G.length, _2G); //#27331 - $k[$j++] = _2E; //#27334 - $k[$j++] = Infinity; //#27334 - var _2H = $k[--$j]; //#27333 - var _2I = $k[--$j]; //#27333 - $k[$j++] = _2H; //#27333 - $k[$j++] = 1; //#27333 - $k[$j++] = 0; //#27333 - $forall(_2I, function() { //#27333 - var _2J = $k[--$j]; //#27333 - $k[$j++] = $f(_2J - 48); //#27333 - }); //#27333 - var _2M = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27334 - $k[$j++] = _2M; //#27334 - $_.cdf = $a(); //#27335 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27336 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27337 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27338 - } else { //#27340 - $_.cdf = $a([1, 0, 1, 1]); //#27340 - } //#27340 - if ($_.ais.length != 0) { //#27354 - if ($eq($get($_.ais, 0), "10")) { //#27350 - $k[$j++] = Infinity; //#27344 - $forall($get($_.vals, 0)); //#27344 - $_.gpf = $a(); //#27344 - if ($_.ais.length > 1) { //#27345 - $k[$j++] = Infinity; //#27345 - $aload($_.gpf); //#27345 - $k[$j++] = $_.fnc1; //#27345 - $_.gpf = $a(); //#27345 - } //#27345 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27346 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27347 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27348 - } else { //#27350 - $_.gpf = $a([$_.fnc1]); //#27350 - } //#27350 - } else { //#27354 - $k[$j++] = Infinity; //#27353 - $aload($_.cdf); //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $_.cdf = $a(); //#27353 - $_.gpf = $a([]); //#27354 - } //#27354 - $_.mode = "numeric"; //#27356 - } //#27356 - if ($eq($_.method, "11")) { //#27451 - $_.cdf = $a([1, 1]); //#27360 - $_.ai90 = $get($_.vals, 0); //#27361 - if ($f($_.npre + 1) != $_.ai90.length) { //#27365 - $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27363 - } else { //#27365 - $k[$j++] = ""; //#27365 - } //#27365 - $_.ai90rem = $k[--$j]; //#27367 - $k[$j++] = 'nalpha'; //#27368 - $k[$j++] = 0; //#27368 - $forall($_.ai90rem, function() { //#27368 - var _39 = $k[--$j]; //#27368 - if ((_39 >= 65) && (_39 <= 90)) { //#27368 - var _3A = $k[--$j]; //#27368 - $k[$j++] = $f(_3A + 1); //#27368 - } //#27368 - }); //#27368 - var _3B = $k[--$j]; //#27368 - $_[$k[--$j]] = _3B; //#27368 - $k[$j++] = 'nnums'; //#27369 - $k[$j++] = 0; //#27369 - $forall($_.ai90rem, function() { //#27369 - var _3E = $k[--$j]; //#27369 - if ((_3E >= 48) && (_3E <= 57)) { //#27369 - var _3F = $k[--$j]; //#27369 - $k[$j++] = $f(_3F + 1); //#27369 - } //#27369 - }); //#27369 - var _3G = $k[--$j]; //#27369 - $_[$k[--$j]] = _3G; //#27369 - $k[$j++] = 'mode'; //#27370 - if ($gt($_.nalpha, $_.nnums)) { //#27370 - $k[$j++] = "alpha"; //#27370 - } else { //#27370 - if ($_.nalpha == 0) { //#27370 - $k[$j++] = "numeric"; //#27370 - } else { //#27370 - $k[$j++] = "alphanumeric"; //#27370 - } //#27370 - } //#27370 - var _3L = $k[--$j]; //#27370 - $_[$k[--$j]] = _3L; //#27370 - if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27371 - $_.mode = "alphanumeric"; //#27371 - } //#27371 - $k[$j++] = Infinity; //#27376 - $aload($_.cdf); //#27373 - if ($eq($_.mode, "alphanumeric")) { //#27374 - $k[$j++] = 0; //#27374 - } //#27374 - if ($eq($_.mode, "numeric")) { //#27375 - $k[$j++] = 1; //#27375 - $k[$j++] = 0; //#27375 - } //#27375 - if ($eq($_.mode, "alpha")) { //#27376 - $k[$j++] = 1; //#27376 - $k[$j++] = 1; //#27376 - } //#27376 - $_.cdf = $a(); //#27376 - $k[$j++] = 'ais1'; //#27378 - if ($_.ais.length > 1) { //#27378 - $k[$j++] = $get($_.ais, 1); //#27378 - } else { //#27378 - $k[$j++] = -1; //#27378 - } //#27378 - var _3Y = $k[--$j]; //#27378 - $_[$k[--$j]] = _3Y; //#27378 - $k[$j++] = 'vals1'; //#27379 - if ($_.vals.length > 1) { //#27379 - $k[$j++] = $get($_.vals, 1); //#27379 - } else { //#27379 - $k[$j++] = -1; //#27379 - } //#27379 - var _3d = $k[--$j]; //#27379 - $_[$k[--$j]] = _3d; //#27379 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27383 - $k[$j++] = Infinity; //#27381 - $aload($_.cdf); //#27381 - if ($eq($_.ais1, "21")) { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 0; //#27381 - } else { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 1; //#27381 - } //#27381 - $_.cdf = $a(); //#27381 - } else { //#27383 - $k[$j++] = Infinity; //#27383 - $aload($_.cdf); //#27383 - $k[$j++] = 0; //#27383 - $_.cdf = $a(); //#27383 - } //#27383 - $k[$j++] = 'nval'; //#27385 - if ($_.npre != 0) { //#27385 - $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27385 - } else { //#27385 - $k[$j++] = 0; //#27385 - } //#27385 - var _3q = $k[--$j]; //#27385 - $_[$k[--$j]] = _3q; //#27385 - $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27386 - if ($k[--$j]) { //#27390 - var _3w = $k[--$j]; //#27387 - var _3x = $k[--$j]; //#27387 - $k[$j++] = _3w.length; //#27387 - $k[$j++] = _3x; //#27387 - $j--; //#27387 - var _3y = $k[--$j]; //#27387 - var _3z = $k[--$j]; //#27387 - $k[$j++] = _3y; //#27387 - $k[$j++] = _3z; //#27387 - $j--; //#27387 - $_.aval = $k[--$j]; //#27388 - } else { //#27390 - $j--; //#27390 - $_.aval = -1; //#27390 - } //#27390 - if (($_.nval < 31) && ($_.aval != -1)) { //#27416 - var _44 = $strcpy($s(5), "00000"); //#27393 - var _47 = $cvrs($s(5), $_.nval, 2); //#27393 - $puti(_44, 5 - _47.length, _47); //#27394 - $k[$j++] = _44; //#27395 - $k[$j++] = Infinity; //#27395 - var _48 = $k[--$j]; //#27395 - var _49 = $k[--$j]; //#27395 - $k[$j++] = _48; //#27395 - $forall(_49, function() { //#27395 - var _4A = $k[--$j]; //#27395 - $k[$j++] = $f(_4A - 48); //#27395 - }); //#27395 - $_.nbits = $a(); //#27395 - var _4D = $strcpy($s(4), "0000"); //#27396 - var _4G = $cvrs($s(4), $_.aval, 2); //#27396 - $puti(_4D, 4 - _4G.length, _4G); //#27397 - $k[$j++] = _4D; //#27398 - $k[$j++] = Infinity; //#27398 - var _4H = $k[--$j]; //#27398 - var _4I = $k[--$j]; //#27398 - $k[$j++] = _4H; //#27398 - $forall(_4I, function() { //#27398 - var _4J = $k[--$j]; //#27398 - $k[$j++] = $f(_4J - 48); //#27398 - }); //#27398 - $_.abits = $a(); //#27398 - $k[$j++] = Infinity; //#27402 - $aload($_.cdf); //#27400 - $aload($_.nbits); //#27401 - $aload($_.abits); //#27402 - $_.cdf = $a(); //#27402 - } else { //#27416 - var _4Q = $strcpy($s(10), "0000000000"); //#27405 - var _4T = $cvrs($s(10), $_.nval, 2); //#27405 - $puti(_4Q, 10 - _4T.length, _4T); //#27406 - $k[$j++] = _4Q; //#27407 - $k[$j++] = Infinity; //#27407 - var _4U = $k[--$j]; //#27407 - var _4V = $k[--$j]; //#27407 - $k[$j++] = _4U; //#27407 - $forall(_4V, function() { //#27407 - var _4W = $k[--$j]; //#27407 - $k[$j++] = $f(_4W - 48); //#27407 - }); //#27407 - $_.nbits = $a(); //#27407 - var _4Z = $strcpy($s(5), "00000"); //#27408 - var _4e = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27408 - $puti(_4Z, 5 - _4e.length, _4e); //#27409 - $k[$j++] = _4Z; //#27410 - $k[$j++] = Infinity; //#27410 - var _4f = $k[--$j]; //#27410 - var _4g = $k[--$j]; //#27410 - $k[$j++] = _4f; //#27410 - $forall(_4g, function() { //#27410 - var _4h = $k[--$j]; //#27410 - $k[$j++] = $f(_4h - 48); //#27410 - }); //#27410 - $_.abits = $a(); //#27410 - $k[$j++] = Infinity; //#27415 - $aload($_.cdf); //#27412 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $aload($_.nbits); //#27414 - $aload($_.abits); //#27415 - $_.cdf = $a(); //#27415 - } //#27416 - if ($ne($_.mode, "alpha")) { //#27434 - $k[$j++] = Infinity; //#27419 - $forall($_.ai90rem); //#27419 - if ($_.ais.length > 1) { //#27419 - $k[$j++] = $_.fnc1; //#27419 - } //#27419 - $_.gpf = $a(); //#27419 - } else { //#27434 - $k[$j++] = Infinity; //#27421 - $forall($_.ai90rem); //#27421 - if ($_.ais.length > 1) { //#27421 - $k[$j++] = $_.fnc1; //#27421 - } //#27421 - $_.in = $a(); //#27421 - $_.out = $a($_.in.length * 6); //#27422 - $_.j = 0; //#27423 - for (var _50 = 0, _4z = $_.in.length - 1; _50 <= _4z; _50 += 1) { //#27428 - var _54 = $get($_.alpha, $get($_.in, _50)); //#27425 - $k[$j++] = _54; //#27426 - $k[$j++] = _54; //#27426 - $k[$j++] = Infinity; //#27426 - var _55 = $k[--$j]; //#27426 - var _56 = $k[--$j]; //#27426 - $k[$j++] = _55; //#27426 - $forall(_56, function() { //#27426 - var _57 = $k[--$j]; //#27426 - $k[$j++] = $f(_57 - 48); //#27426 - }); //#27426 - $puti($_.out, $_.j, $a()); //#27426 - $_.j = $k[--$j].length + $_.j; //#27427 - } //#27427 - $k[$j++] = Infinity; //#27431 - $aload($_.cdf); //#27430 - $aload($geti($_.out, 0, $_.j)); //#27431 - $_.cdf = $a(); //#27431 - $_.gpf = $a([]); //#27433 - if ($_.ais.length > 1) { //#27434 - $_.mode = "numeric"; //#27434 - } //#27434 - } //#27434 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27436 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27437 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27438 - if ($_.ais.length != 0) { //#27450 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27449 - $k[$j++] = Infinity; //#27443 - $aload($_.gpf); //#27442 - $forall($_.vals1); //#27443 - $_.gpf = $a(); //#27443 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27445 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27446 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27447 - if ($_.ais.length != 0) { //#27448 - $k[$j++] = Infinity; //#27448 - $aload($_.gpf); //#27448 - $k[$j++] = $_.fnc1; //#27448 - $_.gpf = $a(); //#27448 - } //#27448 - } //#27448 - } //#27448 - } //#27448 - if ($eq($_.method, "0")) { //#27457 - $_.cdf = $a([0]); //#27454 - $_.gpf = $a([]); //#27455 - $_.mode = "numeric"; //#27456 - } //#27456 - for (var _5r = 0, _5q = $_.ais.length - 1; _5r <= _5q; _5r += 1) { //#27475 - $_.i = _5r; //#27461 - $_.ai = $get($_.ais, $_.i); //#27462 - $_.val = $get($_.vals, $_.i); //#27463 - var _61 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27464 - $puti(_61, 0, $_.gpf); //#27465 - $k[$j++] = _61; //#27466 - $k[$j++] = _61; //#27466 - $k[$j++] = $_.gpf.length; //#27466 - $k[$j++] = $_.ai; //#27466 - $k[$j++] = Infinity; //#27466 - var _65 = $k[--$j]; //#27466 - var _66 = $k[--$j]; //#27466 - $k[$j++] = _65; //#27466 - $forall(_66); //#27466 - var _67 = $a(); //#27466 - var _68 = $k[--$j]; //#27466 - $puti($k[--$j], _68, _67); //#27466 - var _6A = $k[--$j]; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = $_.gpf.length + $_.ai.length; //#27467 - $k[$j++] = $_.val; //#27467 - $k[$j++] = Infinity; //#27467 - var _6E = $k[--$j]; //#27467 - var _6F = $k[--$j]; //#27467 - $k[$j++] = _6E; //#27467 - $forall(_6F); //#27467 - var _6G = $a(); //#27467 - var _6H = $k[--$j]; //#27467 - $puti($k[--$j], _6H, _6G); //#27467 - $_.gpf = $k[--$j]; //#27468 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27474 - var _6Q = $a($_.gpf.length + 1); //#27470 - $puti(_6Q, 0, $_.gpf); //#27471 - $put(_6Q, $_.gpf.length, $_.fnc1); //#27472 - $_.gpf = _6Q; //#27473 - } //#27473 - } //#27473 - if (!bwipp_gs1_cc.__27491__) { //#27491 - $_ = Object.create($_); //#27491 - var _6c = new Map([ + var _1L = $s($k[--$j]); //#27592 + $k[$j++] = _1L; //#27592 + for (var _1N = 0, _1M = _1L.length - 1; _1N <= _1M; _1N += 1) { //#27592 + var _1O = $k[--$j]; //#27592 + $put(_1O, _1N, 48); //#27592 + $k[$j++] = _1O; //#27592 + } //#27592 + var _1P = $k[--$j]; //#27593 + var _1S = $cvrs($s(_1P.length), $k[--$j], 2); //#27593 + $puti(_1P, _1P.length - _1S.length, _1S); //#27593 + $k[$j++] = _1P; //#27593 + }; //#27593 + if (!bwipp_gs1_cc.__27644__) { //#27644 + $_ = Object.create($_); //#27644 + $_.fnc1 = -1; //#27598 + $_.lnumeric = -2; //#27598 + $_.lalphanumeric = -3; //#27598 + $_.liso646 = -4; //#27598 + $k[$j++] = Infinity; //#27600 + for (var _1T = 65; _1T <= 90; _1T += 1) { //#27601 + $k[$j++] = _1T; //#27601 + $k[$j++] = _1T - 65; //#27601 + $k[$j++] = 5; //#27601 + $_.tobin(); //#27601 + } //#27601 + for (var _1U = 48; _1U <= 57; _1U += 1) { //#27602 + $k[$j++] = _1U; //#27602 + $k[$j++] = _1U + 4; //#27602 + $k[$j++] = 6; //#27602 + $_.tobin(); //#27602 + } //#27602 + $k[$j++] = $_.fnc1; //#27603 + $k[$j++] = "11111"; //#27603 + $_.alpha = $d(); //#27604 + $k[$j++] = Infinity; //#27606 + for (var _1X = 0; _1X <= 119; _1X += 1) { //#27615 + var _1Z = $strcpy($s(2), "00"); //#27608 + var _1b = $cvrs($s(2), _1X, 11); //#27608 + $puti(_1Z, 2 - _1b.length, _1b); //#27609 + $k[$j++] = _1X; //#27610 + $k[$j++] = _1Z; //#27610 + if ($get(_1Z, 0) == 65) { //#27610 + var _1d = $k[--$j]; //#27610 + $put(_1d, 0, 94); //#27610 + $k[$j++] = _1d; //#27610 + } //#27610 + var _1e = $k[--$j]; //#27611 + $k[$j++] = _1e; //#27611 + if ($get(_1e, 1) == 65) { //#27611 + var _1g = $k[--$j]; //#27611 + $put(_1g, 1, 94); //#27611 + $k[$j++] = _1g; //#27611 + } //#27611 + var _1h = $k[--$j]; //#27612 + var _1k = $strcpy($s(7), "0000000"); //#27613 + var _1m = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27613 + $puti(_1k, 7 - _1m.length, _1m); //#27614 + $k[$j++] = _1h; //#27614 + $k[$j++] = _1k; //#27614 + } //#27614 + $k[$j++] = $_.lalphanumeric; //#27616 + $k[$j++] = "0000"; //#27616 + $_.numeric = $d(); //#27617 + $k[$j++] = Infinity; //#27619 + for (var _1p = 48; _1p <= 57; _1p += 1) { //#27620 + $k[$j++] = _1p; //#27620 + $k[$j++] = _1p - 43; //#27620 + $k[$j++] = 5; //#27620 + $_.tobin(); //#27620 + } //#27620 + $k[$j++] = $_.fnc1; //#27622 + $k[$j++] = "01111"; //#27622 + for (var _1r = 65; _1r <= 90; _1r += 1) { //#27622 + $k[$j++] = _1r; //#27622 + $k[$j++] = _1r - 33; //#27622 + $k[$j++] = 6; //#27622 + $_.tobin(); //#27622 + } //#27622 + $k[$j++] = 42; //#27624 + $k[$j++] = "111010"; //#27624 + for (var _1s = 44; _1s <= 47; _1s += 1) { //#27624 + $k[$j++] = _1s; //#27624 + $k[$j++] = _1s + 15; //#27624 + $k[$j++] = 6; //#27624 + $_.tobin(); //#27624 + } //#27624 + $k[$j++] = $_.lnumeric; //#27626 + $k[$j++] = "000"; //#27626 + $k[$j++] = $_.liso646; //#27626 + $k[$j++] = "00100"; //#27626 + $_.alphanumeric = $d(); //#27627 + $k[$j++] = Infinity; //#27629 + for (var _1w = 48; _1w <= 57; _1w += 1) { //#27630 + $k[$j++] = _1w; //#27630 + $k[$j++] = _1w - 43; //#27630 + $k[$j++] = 5; //#27630 + $_.tobin(); //#27630 + } //#27630 + $k[$j++] = $_.fnc1; //#27632 + $k[$j++] = "01111"; //#27632 + for (var _1y = 65; _1y <= 90; _1y += 1) { //#27632 + $k[$j++] = _1y; //#27632 + $k[$j++] = _1y - 1; //#27632 + $k[$j++] = 7; //#27632 + $_.tobin(); //#27632 + } //#27632 + for (var _1z = 97; _1z <= 122; _1z += 1) { //#27633 + $k[$j++] = _1z; //#27633 + $k[$j++] = _1z - 7; //#27633 + $k[$j++] = 7; //#27633 + $_.tobin(); //#27633 + } //#27633 + $k[$j++] = 33; //#27636 + $k[$j++] = "11101000"; //#27636 + $k[$j++] = 34; //#27636 + $k[$j++] = "11101001"; //#27636 + for (var _20 = 37; _20 <= 47; _20 += 1) { //#27636 + $k[$j++] = _20; //#27636 + $k[$j++] = _20 + 197; //#27636 + $k[$j++] = 8; //#27636 + $_.tobin(); //#27636 + } //#27636 + for (var _21 = 58; _21 <= 63; _21 += 1) { //#27637 + $k[$j++] = _21; //#27637 + $k[$j++] = _21 + 187; //#27637 + $k[$j++] = 8; //#27637 + $_.tobin(); //#27637 + } //#27637 + $k[$j++] = 95; //#27641 + $k[$j++] = "11111011"; //#27641 + $k[$j++] = 32; //#27641 + $k[$j++] = "11111100"; //#27641 + $k[$j++] = $_.lnumeric; //#27641 + $k[$j++] = "000"; //#27641 + $k[$j++] = $_.lalphanumeric; //#27641 + $k[$j++] = "00100"; //#27641 + $_.iso646 = $d(); //#27642 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27642 + bwipp_gs1_cc.__27644__ = 1; //#27642 + $_ = Object.getPrototypeOf($_); //#27642 + } //#27642 + if ($eq($_.method, "10")) { //#27679 + if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27662 + var _2C = $get($_.vals, 0); //#27648 + var _2H = $strcpy($s(16), "0000000000000000"); //#27652 + var _2J = $cvrs($s(16), ($cvi($geti(_2C, 0, 2)) * 384) + ((($cvi($geti(_2C, 2, 2)) - 1) * 32) + $cvi($geti(_2C, 4, 2))), 2); //#27652 + $puti(_2H, 16 - _2J.length, _2J); //#27653 + $k[$j++] = _2H; //#27656 + $k[$j++] = Infinity; //#27654 + var _2K = $k[--$j]; //#27655 + var _2L = $k[--$j]; //#27655 + $k[$j++] = _2K; //#27655 + $k[$j++] = 1; //#27655 + $k[$j++] = 0; //#27655 + $forall(_2L, function() { //#27655 + var _2M = $k[--$j]; //#27655 + $k[$j++] = $f(_2M - 48); //#27655 + }); //#27655 + var _2P = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27656 + $k[$j++] = _2P; //#27656 + $_.cdf = $a(); //#27657 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27658 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27659 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27660 + } else { //#27662 + $_.cdf = $a([1, 0, 1, 1]); //#27662 + } //#27662 + if ($_.ais.length != 0) { //#27676 + if ($eq($get($_.ais, 0), "10")) { //#27672 + $k[$j++] = Infinity; //#27666 + $forall($get($_.vals, 0)); //#27666 + $_.gpf = $a(); //#27666 + if ($_.ais.length > 1) { //#27667 + $k[$j++] = Infinity; //#27667 + $aload($_.gpf); //#27667 + $k[$j++] = $_.fnc1; //#27667 + $_.gpf = $a(); //#27667 + } //#27667 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27668 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27669 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27670 + } else { //#27672 + $_.gpf = $a([$_.fnc1]); //#27672 + } //#27672 + } else { //#27676 + $k[$j++] = Infinity; //#27675 + $aload($_.cdf); //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $_.cdf = $a(); //#27675 + $_.gpf = $a([]); //#27676 + } //#27676 + $_.mode = "numeric"; //#27678 + } //#27678 + if ($eq($_.method, "11")) { //#27773 + $_.cdf = $a([1, 1]); //#27682 + $_.ai90 = $get($_.vals, 0); //#27683 + if ($f($_.npre + 1) != $_.ai90.length) { //#27687 + $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27685 + } else { //#27687 + $k[$j++] = ""; //#27687 + } //#27687 + $_.ai90rem = $k[--$j]; //#27689 + $k[$j++] = 'nalpha'; //#27690 + $k[$j++] = 0; //#27690 + $forall($_.ai90rem, function() { //#27690 + var _3C = $k[--$j]; //#27690 + if ((_3C >= 65) && (_3C <= 90)) { //#27690 + var _3D = $k[--$j]; //#27690 + $k[$j++] = $f(_3D + 1); //#27690 + } //#27690 + }); //#27690 + var _3E = $k[--$j]; //#27690 + $_[$k[--$j]] = _3E; //#27690 + $k[$j++] = 'nnums'; //#27691 + $k[$j++] = 0; //#27691 + $forall($_.ai90rem, function() { //#27691 + var _3H = $k[--$j]; //#27691 + if ((_3H >= 48) && (_3H <= 57)) { //#27691 + var _3I = $k[--$j]; //#27691 + $k[$j++] = $f(_3I + 1); //#27691 + } //#27691 + }); //#27691 + var _3J = $k[--$j]; //#27691 + $_[$k[--$j]] = _3J; //#27691 + $k[$j++] = 'mode'; //#27692 + if ($gt($_.nalpha, $_.nnums)) { //#27692 + $k[$j++] = "alpha"; //#27692 + } else { //#27692 + if ($_.nalpha == 0) { //#27692 + $k[$j++] = "numeric"; //#27692 + } else { //#27692 + $k[$j++] = "alphanumeric"; //#27692 + } //#27692 + } //#27692 + var _3O = $k[--$j]; //#27692 + $_[$k[--$j]] = _3O; //#27692 + if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27693 + $_.mode = "alphanumeric"; //#27693 + } //#27693 + $k[$j++] = Infinity; //#27694 + $aload($_.cdf); //#27695 + if ($eq($_.mode, "alphanumeric")) { //#27696 + $k[$j++] = 0; //#27696 + } //#27696 + if ($eq($_.mode, "numeric")) { //#27697 + $k[$j++] = 1; //#27697 + $k[$j++] = 0; //#27697 + } //#27697 + if ($eq($_.mode, "alpha")) { //#27698 + $k[$j++] = 1; //#27698 + $k[$j++] = 1; //#27698 + } //#27698 + $_.cdf = $a(); //#27698 + $k[$j++] = 'ais1'; //#27700 + if ($_.ais.length > 1) { //#27700 + $k[$j++] = $get($_.ais, 1); //#27700 + } else { //#27700 + $k[$j++] = -1; //#27700 + } //#27700 + var _3b = $k[--$j]; //#27700 + $_[$k[--$j]] = _3b; //#27700 + $k[$j++] = 'vals1'; //#27701 + if ($_.vals.length > 1) { //#27701 + $k[$j++] = $get($_.vals, 1); //#27701 + } else { //#27701 + $k[$j++] = -1; //#27701 + } //#27701 + var _3g = $k[--$j]; //#27701 + $_[$k[--$j]] = _3g; //#27701 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27705 + $k[$j++] = Infinity; //#27703 + $aload($_.cdf); //#27703 + if ($eq($_.ais1, "21")) { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 0; //#27703 + } else { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 1; //#27703 + } //#27703 + $_.cdf = $a(); //#27703 + } else { //#27705 + $k[$j++] = Infinity; //#27705 + $aload($_.cdf); //#27705 + $k[$j++] = 0; //#27705 + $_.cdf = $a(); //#27705 + } //#27705 + $k[$j++] = 'nval'; //#27707 + if ($_.npre != 0) { //#27707 + $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27707 + } else { //#27707 + $k[$j++] = 0; //#27707 + } //#27707 + var _3t = $k[--$j]; //#27707 + $_[$k[--$j]] = _3t; //#27707 + $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27708 + if ($k[--$j]) { //#27712 + var _3z = $k[--$j]; //#27709 + var _40 = $k[--$j]; //#27709 + $k[$j++] = _3z.length; //#27709 + $k[$j++] = _40; //#27709 + $j--; //#27709 + var _41 = $k[--$j]; //#27709 + var _42 = $k[--$j]; //#27709 + $k[$j++] = _41; //#27709 + $k[$j++] = _42; //#27709 + $j--; //#27709 + $_.aval = $k[--$j]; //#27710 + } else { //#27712 + $j--; //#27712 + $_.aval = -1; //#27712 + } //#27712 + if (($_.nval < 31) && ($_.aval != -1)) { //#27738 + var _47 = $strcpy($s(5), "00000"); //#27715 + var _4A = $cvrs($s(5), $_.nval, 2); //#27715 + $puti(_47, 5 - _4A.length, _4A); //#27716 + $k[$j++] = _47; //#27717 + $k[$j++] = Infinity; //#27717 + var _4B = $k[--$j]; //#27717 + var _4C = $k[--$j]; //#27717 + $k[$j++] = _4B; //#27717 + $forall(_4C, function() { //#27717 + var _4D = $k[--$j]; //#27717 + $k[$j++] = $f(_4D - 48); //#27717 + }); //#27717 + $_.nbits = $a(); //#27717 + var _4G = $strcpy($s(4), "0000"); //#27718 + var _4J = $cvrs($s(4), $_.aval, 2); //#27718 + $puti(_4G, 4 - _4J.length, _4J); //#27719 + $k[$j++] = _4G; //#27720 + $k[$j++] = Infinity; //#27720 + var _4K = $k[--$j]; //#27720 + var _4L = $k[--$j]; //#27720 + $k[$j++] = _4K; //#27720 + $forall(_4L, function() { //#27720 + var _4M = $k[--$j]; //#27720 + $k[$j++] = $f(_4M - 48); //#27720 + }); //#27720 + $_.abits = $a(); //#27720 + $k[$j++] = Infinity; //#27721 + $aload($_.cdf); //#27722 + $aload($_.nbits); //#27723 + $aload($_.abits); //#27724 + $_.cdf = $a(); //#27724 + } else { //#27738 + var _4T = $strcpy($s(10), "0000000000"); //#27727 + var _4W = $cvrs($s(10), $_.nval, 2); //#27727 + $puti(_4T, 10 - _4W.length, _4W); //#27728 + $k[$j++] = _4T; //#27729 + $k[$j++] = Infinity; //#27729 + var _4X = $k[--$j]; //#27729 + var _4Y = $k[--$j]; //#27729 + $k[$j++] = _4X; //#27729 + $forall(_4Y, function() { //#27729 + var _4Z = $k[--$j]; //#27729 + $k[$j++] = $f(_4Z - 48); //#27729 + }); //#27729 + $_.nbits = $a(); //#27729 + var _4c = $strcpy($s(5), "00000"); //#27730 + var _4h = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27730 + $puti(_4c, 5 - _4h.length, _4h); //#27731 + $k[$j++] = _4c; //#27732 + $k[$j++] = Infinity; //#27732 + var _4i = $k[--$j]; //#27732 + var _4j = $k[--$j]; //#27732 + $k[$j++] = _4i; //#27732 + $forall(_4j, function() { //#27732 + var _4k = $k[--$j]; //#27732 + $k[$j++] = $f(_4k - 48); //#27732 + }); //#27732 + $_.abits = $a(); //#27732 + $k[$j++] = Infinity; //#27733 + $aload($_.cdf); //#27734 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $aload($_.nbits); //#27736 + $aload($_.abits); //#27737 + $_.cdf = $a(); //#27737 + } //#27738 + if ($ne($_.mode, "alpha")) { //#27756 + $k[$j++] = Infinity; //#27741 + $forall($_.ai90rem); //#27741 + if ($_.ais.length > 1) { //#27741 + $k[$j++] = $_.fnc1; //#27741 + } //#27741 + $_.gpf = $a(); //#27741 + } else { //#27756 + $k[$j++] = Infinity; //#27743 + $forall($_.ai90rem); //#27743 + if ($_.ais.length > 1) { //#27743 + $k[$j++] = $_.fnc1; //#27743 + } //#27743 + $_.in = $a(); //#27743 + $_.out = $a($_.in.length * 6); //#27744 + $_.j = 0; //#27745 + for (var _53 = 0, _52 = $_.in.length - 1; _53 <= _52; _53 += 1) { //#27750 + var _57 = $get($_.alpha, $get($_.in, _53)); //#27747 + $k[$j++] = _57; //#27748 + $k[$j++] = _57; //#27748 + $k[$j++] = Infinity; //#27748 + var _58 = $k[--$j]; //#27748 + var _59 = $k[--$j]; //#27748 + $k[$j++] = _58; //#27748 + $forall(_59, function() { //#27748 + var _5A = $k[--$j]; //#27748 + $k[$j++] = $f(_5A - 48); //#27748 + }); //#27748 + $puti($_.out, $_.j, $a()); //#27748 + $_.j = $k[--$j].length + $_.j; //#27749 + } //#27749 + $k[$j++] = Infinity; //#27751 + $aload($_.cdf); //#27752 + $aload($geti($_.out, 0, $_.j)); //#27753 + $_.cdf = $a(); //#27753 + $_.gpf = $a([]); //#27755 + if ($_.ais.length > 1) { //#27756 + $_.mode = "numeric"; //#27756 + } //#27756 + } //#27756 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27758 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27759 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27760 + if ($_.ais.length != 0) { //#27772 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27771 + $k[$j++] = Infinity; //#27763 + $aload($_.gpf); //#27764 + $forall($_.vals1); //#27765 + $_.gpf = $a(); //#27765 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27767 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27768 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27769 + if ($_.ais.length != 0) { //#27770 + $k[$j++] = Infinity; //#27770 + $aload($_.gpf); //#27770 + $k[$j++] = $_.fnc1; //#27770 + $_.gpf = $a(); //#27770 + } //#27770 + } //#27770 + } //#27770 + } //#27770 + if ($eq($_.method, "0")) { //#27779 + $_.cdf = $a([0]); //#27776 + $_.gpf = $a([]); //#27777 + $_.mode = "numeric"; //#27778 + } //#27778 + for (var _5u = 0, _5t = $_.ais.length - 1; _5u <= _5t; _5u += 1) { //#27797 + $_.i = _5u; //#27783 + $_.ai = $get($_.ais, $_.i); //#27784 + $_.val = $get($_.vals, $_.i); //#27785 + var _64 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27786 + $puti(_64, 0, $_.gpf); //#27787 + $k[$j++] = _64; //#27788 + $k[$j++] = _64; //#27788 + $k[$j++] = $_.gpf.length; //#27788 + $k[$j++] = $_.ai; //#27788 + $k[$j++] = Infinity; //#27788 + var _68 = $k[--$j]; //#27788 + var _69 = $k[--$j]; //#27788 + $k[$j++] = _68; //#27788 + $forall(_69); //#27788 + var _6A = $a(); //#27788 + var _6B = $k[--$j]; //#27788 + $puti($k[--$j], _6B, _6A); //#27788 + var _6D = $k[--$j]; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = $_.gpf.length + $_.ai.length; //#27789 + $k[$j++] = $_.val; //#27789 + $k[$j++] = Infinity; //#27789 + var _6H = $k[--$j]; //#27789 + var _6I = $k[--$j]; //#27789 + $k[$j++] = _6H; //#27789 + $forall(_6I); //#27789 + var _6J = $a(); //#27789 + var _6K = $k[--$j]; //#27789 + $puti($k[--$j], _6K, _6J); //#27789 + $_.gpf = $k[--$j]; //#27790 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27796 + var _6T = $a($_.gpf.length + 1); //#27792 + $puti(_6T, 0, $_.gpf); //#27793 + $put(_6T, $_.gpf.length, $_.fnc1); //#27794 + $_.gpf = _6T; //#27795 + } //#27795 + } //#27795 + if (!bwipp_gs1_cc.__27813__) { //#27813 + $_ = Object.create($_); //#27813 + var _6f = new Map([ ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] - ]); //#27488 - $_.bitcapsmaps = _6c; //#27490 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27490 - bwipp_gs1_cc.__27491__ = 1; //#27490 - $_ = Object.getPrototypeOf($_); //#27490 - } //#27490 + ]); //#27810 + $_.bitcapsmaps = _6f; //#27812 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27812 + bwipp_gs1_cc.__27813__ = 1; //#27812 + $_ = Object.getPrototypeOf($_); //#27812 + } //#27812 $_.rembits = function() { - $_.used = $k[--$j]; //#27494 - if ($ne($_.ccversion, "c")) { //#27517 - $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27496 - $k[$j++] = -1; //#27497 - $forall($_.bitcaps, function() { //#27497 - var _6m = $k[--$j]; //#27497 - $k[$j++] = _6m; //#27497 - if ($ge(_6m, $_.used)) { //#27497 - var _6o = $k[--$j]; //#27497 - var _6p = $k[--$j]; //#27497 - $k[$j++] = _6o; //#27497 - $k[$j++] = _6p; //#27497 - } //#27497 - $j--; //#27497 - }); //#27497 - var _6q = $k[--$j]; //#27498 - $k[$j++] = _6q; //#27498 - if (_6q != -1) { //#27498 - var _6s = $k[--$j]; //#27498 - $k[$j++] = $f(_6s - $_.used); //#27498 - } //#27498 - } else { //#27517 - var _6t = new Map([ + $_.used = $k[--$j]; //#27816 + if ($ne($_.ccversion, "c")) { //#27839 + $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27818 + $k[$j++] = -1; //#27819 + $forall($_.bitcaps, function() { //#27819 + var _6p = $k[--$j]; //#27819 + $k[$j++] = _6p; //#27819 + if ($ge(_6p, $_.used)) { //#27819 + var _6r = $k[--$j]; //#27819 + var _6s = $k[--$j]; //#27819 + $k[$j++] = _6r; //#27819 + $k[$j++] = _6s; //#27819 + } //#27819 + $j--; //#27819 + }); //#27819 + var _6t = $k[--$j]; //#27820 + $k[$j++] = _6t; //#27820 + if (_6t != -1) { //#27820 + var _6v = $k[--$j]; //#27820 + $k[$j++] = $f(_6v - $_.used); //#27820 + } //#27820 + } else { //#27839 + var _6w = new Map([ ["c", -1] - ]); //#27500 - var _6v = $get(_6t, $_.ccversion); //#27500 - var _6x = ~~Math.ceil($_.used / 8); //#27501 - $_.m = ((~~(_6x / 6)) * 5) + (_6x % 6); //#27501 - if ($_.m <= 40) { //#27502 - $k[$j++] = 8; //#27502 - } //#27502 - if (($_.m >= 41) && ($_.m <= 160)) { //#27503 - $k[$j++] = 16; //#27503 - } //#27503 - if (($_.m >= 161) && ($_.m <= 320)) { //#27504 - $k[$j++] = 32; //#27504 - } //#27504 - if (($_.m >= 321) && ($_.m <= 833)) { //#27505 - $k[$j++] = 64; //#27505 - } //#27505 - if ($_.m >= 834) { //#27506 - $k[$j++] = 32; //#27506 - } //#27506 - $_.eccws = $k[--$j]; //#27507 - $_.m = $f($f($_.m + $_.eccws) + 3); //#27508 - if ($_.cccolumns > 30) { //#27509 - $_.cccolumns = 30; //#27509 - } //#27509 - for (;;) { //#27513 - if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27511 - break; //#27511 - } //#27511 - $_.cccolumns = $_.cccolumns + 1; //#27512 - } //#27512 - $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27514 - if ($_.r < 3) { //#27515 - $_.r = 3; //#27515 - } //#27515 - var _7K = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27516 - $_.tgt = ($f(((~~(_7K / 5)) * 6) + (_7K % 5))) * 8; //#27516 - if ($_.used <= 8304) { //#27517 - $k[$j++] = $f($_.tgt - $_.used); //#27517 - } else { //#27517 - $k[$j++] = -1; //#27517 - } //#27517 - } //#27517 - var _7O = $k[--$j]; //#27519 - $k[$j++] = _7O; //#27532 - if (_7O == -1) { //#27532 - $j--; //#27520 - if ($eq($_.ccversion, "a")) { //#27528 - $_.ccversion = "b"; //#27522 - } else { //#27528 - if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27528 - $_.ccversion = "c"; //#27525 - $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27526 - } else { //#27528 - $_.ccversion = -1; //#27528 - } //#27528 - } //#27528 - $k[$j++] = $_.used; //#27531 - $_.rembits(); //#27531 - } //#27531 - }; //#27531 + ]); //#27822 + var _6y = $get(_6w, $_.ccversion); //#27822 + var _70 = ~~Math.ceil($_.used / 8); //#27823 + $_.m = ((~~(_70 / 6)) * 5) + (_70 % 6); //#27823 + if ($_.m <= 40) { //#27824 + $k[$j++] = 8; //#27824 + } //#27824 + if (($_.m >= 41) && ($_.m <= 160)) { //#27825 + $k[$j++] = 16; //#27825 + } //#27825 + if (($_.m >= 161) && ($_.m <= 320)) { //#27826 + $k[$j++] = 32; //#27826 + } //#27826 + if (($_.m >= 321) && ($_.m <= 833)) { //#27827 + $k[$j++] = 64; //#27827 + } //#27827 + if ($_.m >= 834) { //#27828 + $k[$j++] = 32; //#27828 + } //#27828 + $_.eccws = $k[--$j]; //#27829 + $_.m = $f($f($_.m + $_.eccws) + 3); //#27830 + if ($_.cccolumns > 30) { //#27831 + $_.cccolumns = 30; //#27831 + } //#27831 + for (;;) { //#27835 + if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27833 + break; //#27833 + } //#27833 + $_.cccolumns = $_.cccolumns + 1; //#27834 + } //#27834 + $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27836 + if ($_.r < 3) { //#27837 + $_.r = 3; //#27837 + } //#27837 + var _7N = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27838 + $_.tgt = ($f(((~~(_7N / 5)) * 6) + (_7N % 5))) * 8; //#27838 + if ($_.used <= 8304) { //#27839 + $k[$j++] = $f($_.tgt - $_.used); //#27839 + } else { //#27839 + $k[$j++] = -1; //#27839 + } //#27839 + } //#27839 + var _7R = $k[--$j]; //#27841 + $k[$j++] = _7R; //#27854 + if (_7R == -1) { //#27854 + $j--; //#27842 + if ($eq($_.ccversion, "a")) { //#27850 + $_.ccversion = "b"; //#27844 + } else { //#27850 + if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27850 + $_.ccversion = "c"; //#27847 + $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27848 + } else { //#27850 + $_.ccversion = -1; //#27850 + } //#27850 + } //#27850 + $k[$j++] = $_.used; //#27853 + $_.rembits(); //#27853 + } //#27853 + }; //#27853 $_.encode = function() { - var _7U = $k[--$j]; //#27536 - $k[$j++] = _7U; //#27536 - if ($ne(_7U, 'raw')) { //#27536 - var _7V = $k[--$j]; //#27536 - var _7X = $get(_7V, $k[--$j]); //#27536 - $k[$j++] = _7X; //#27536 - } else { //#27536 - $j--; //#27536 - } //#27536 - $k[$j++] = Infinity; //#27537 - var _7Y = $k[--$j]; //#27537 - var _7Z = $k[--$j]; //#27537 - $k[$j++] = _7Y; //#27537 - $forall(_7Z, function() { //#27537 - var _7a = $k[--$j]; //#27537 - $k[$j++] = $f(_7a - 48); //#27537 - }); //#27537 - var _7b = $a(); //#27537 - $puti($_.gpfenc, $_.j, _7b); //#27539 - $_.j = _7b.length + $_.j; //#27540 - }; //#27540 - $k[$j++] = Infinity; //#27544 - for (var _7g = 0, _7h = $_.gpf.length; _7g < _7h; _7g++) { //#27544 - $k[$j++] = 0; //#27544 - } //#27544 - $k[$j++] = 0; //#27544 - $k[$j++] = -1; //#27544 - $_.numericruns = $a(); //#27544 - $k[$j++] = Infinity; //#27545 - for (var _7k = 0, _7l = $_.gpf.length; _7k < _7l; _7k++) { //#27545 - $k[$j++] = 0; //#27545 - } //#27545 - $k[$j++] = 0; //#27545 - $_.alphanumericruns = $a(); //#27545 - $k[$j++] = Infinity; //#27546 - for (var _7o = 0, _7p = $_.gpf.length; _7o < _7p; _7o++) { //#27546 - $k[$j++] = 0; //#27546 - } //#27546 - $k[$j++] = 9999; //#27546 - $_.nextiso646only = $a(); //#27546 - for (var _7s = $_.gpf.length - 1; _7s >= 0; _7s -= 1) { //#27568 - $_.i = _7s; //#27548 - var _7x = $strcpy($s(2), "00"); //#27550 - var _80 = $get($_.gpf, $_.i); //#27551 - $k[$j++] = $get($_.gpf, $_.i); //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = 0; //#27551 - $k[$j++] = _80; //#27551 - if (_80 == $_.fnc1) { //#27551 - $j--; //#27551 - $k[$j++] = 94; //#27551 - } //#27551 - var _82 = $k[--$j]; //#27551 - var _83 = $k[--$j]; //#27551 - $put($k[--$j], _83, _82); //#27551 - if ($_.i < ($_.gpf.length - 1)) { //#27552 - var _87 = $k[--$j]; //#27552 - var _8A = $get($_.gpf, $_.i + 1); //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = 1; //#27552 - $k[$j++] = _8A; //#27552 - if (_8A == $_.fnc1) { //#27552 - $j--; //#27552 - $k[$j++] = 94; //#27552 - } //#27552 - var _8C = $k[--$j]; //#27552 - var _8D = $k[--$j]; //#27552 - $put($k[--$j], _8D, _8C); //#27552 - } //#27552 - var _8H = $get($_.numeric, $k[--$j]) !== undefined; //#27553 - if (_8H) { //#27556 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27554 - } else { //#27556 - $put($_.numericruns, $_.i, 0); //#27556 - } //#27556 - var _8P = $k[--$j]; //#27558 - var _8R = $get($_.alphanumeric, _8P) !== undefined; //#27558 - $k[$j++] = _8P; //#27562 - if (_8R) { //#27561 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27559 - } else { //#27561 - $put($_.alphanumericruns, $_.i, 0); //#27561 - } //#27561 - var _8Z = $k[--$j]; //#27563 - var _8b = $get($_.iso646, _8Z) !== undefined; //#27563 - var _8d = $get($_.alphanumeric, _8Z) !== undefined; //#27563 - if (_8b && (!_8d)) { //#27566 - $put($_.nextiso646only, $_.i, 0); //#27564 - } else { //#27566 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27566 - } //#27566 - } //#27566 - $_.gpfenc = $a(8304); //#27571 - $_.i = 0; //#27572 - $_.j = 0; //#27572 - for (;;) { //#27662 - if ($_.i == $_.gpf.length) { //#27574 - break; //#27574 - } //#27574 - for (;;) { //#27661 - if ($eq($_.mode, "numeric")) { //#27610 - if ($_.i <= ($_.gpf.length - 2)) { //#27607 - var _8r = $s(2); //#27579 - var _8u = $get($_.gpf, $_.i); //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = 0; //#27580 - $k[$j++] = _8u; //#27580 - if (_8u == $_.fnc1) { //#27580 - $j--; //#27580 - $k[$j++] = 94; //#27580 - } //#27580 - var _8w = $k[--$j]; //#27580 - var _8x = $k[--$j]; //#27580 - $put($k[--$j], _8x, _8w); //#27580 - var _8z = $k[--$j]; //#27581 - var _92 = $get($_.gpf, $_.i + 1); //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = 1; //#27581 - $k[$j++] = _92; //#27581 - if (_92 == $_.fnc1) { //#27581 - $j--; //#27581 - $k[$j++] = 94; //#27581 - } //#27581 - var _94 = $k[--$j]; //#27581 - var _95 = $k[--$j]; //#27581 - $put($k[--$j], _95, _94); //#27581 - var _97 = $k[--$j]; //#27582 - var _99 = $get($_.numeric, _97) !== undefined; //#27582 - $k[$j++] = _97; //#27586 - if (_99) { //#27586 - $k[$j++] = $_.numeric; //#27583 - $_.encode(); //#27583 - $_.i = $_.i + 2; //#27584 - break; //#27585 - } //#27585 - $j--; //#27587 - $k[$j++] = $_.lalphanumeric; //#27588 - $k[$j++] = $_.numeric; //#27588 - $_.encode(); //#27588 - $_.mode = "alphanumeric"; //#27589 - break; //#27590 - } else { //#27607 - var _9G = $get($_.gpf, $_.i); //#27592 - if ((_9G < 48) || (_9G > 57)) { //#27596 - $k[$j++] = $_.lalphanumeric; //#27593 - $k[$j++] = $_.numeric; //#27593 - $_.encode(); //#27593 - $_.mode = "alphanumeric"; //#27594 - break; //#27595 - } //#27595 - $k[$j++] = 'rem'; //#27597 - $k[$j++] = $_.cdf.length + $_.j; //#27597 - $_.rembits(); //#27597 - var _9L = $k[--$j]; //#27597 - $_[$k[--$j]] = _9L; //#27597 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#27607 - var _9S = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27599 - var _9X = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27600 - $puti(_9S, 4 - _9X.length, _9X); //#27601 - $k[$j++] = _9S; //#27601 - $k[$j++] = 'raw'; //#27601 - $_.encode(); //#27601 - $_.i = $_.i + 1; //#27602 - break; //#27603 - } else { //#27607 - var _9Z = $s(2); //#27605 - $put(_9Z, 0, $get($_.gpf, $_.i)); //#27605 - $put(_9Z, 1, 94); //#27605 - $k[$j++] = _9Z; //#27605 - $k[$j++] = $_.numeric; //#27605 - $_.encode(); //#27605 - $_.i = $_.i + 1; //#27606 - break; //#27607 - } //#27607 - } //#27607 - } //#27607 - if ($eq($_.mode, "alphanumeric")) { //#27637 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27618 - $k[$j++] = $_.fnc1; //#27614 - $k[$j++] = $_.alphanumeric; //#27614 - $_.encode(); //#27614 - $_.mode = "numeric"; //#27615 - $_.i = $_.i + 1; //#27616 - break; //#27617 - } //#27617 - var _9p = $get($_.gpf, $_.i); //#27619 - var _9r = $get($_.iso646, _9p) !== undefined; //#27619 - var _9t = $get($_.alphanumeric, _9p) !== undefined; //#27619 - if (_9r && (!_9t)) { //#27623 - $k[$j++] = $_.liso646; //#27620 - $k[$j++] = $_.alphanumeric; //#27620 - $_.encode(); //#27620 - $_.mode = "iso646"; //#27621 - break; //#27622 - } //#27622 - if ($get($_.numericruns, $_.i) >= 6) { //#27628 - $k[$j++] = $_.lnumeric; //#27625 - $k[$j++] = $_.alphanumeric; //#27625 - $_.encode(); //#27625 - $_.mode = "numeric"; //#27626 - break; //#27627 - } //#27627 - var _A3 = $get($_.numericruns, $_.i); //#27629 - if ((_A3 >= 4) && ($f(_A3 + $_.i) == $_.gpf.length)) { //#27633 - $k[$j++] = $_.lnumeric; //#27630 - $k[$j++] = $_.alphanumeric; //#27630 - $_.encode(); //#27630 - $_.mode = "numeric"; //#27631 - break; //#27632 - } //#27632 - $k[$j++] = $get($_.gpf, $_.i); //#27634 - $k[$j++] = $_.alphanumeric; //#27634 - $_.encode(); //#27634 - $_.i = $_.i + 1; //#27635 - break; //#27636 - } //#27636 - if ($eq($_.mode, "iso646")) { //#27659 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27645 - $k[$j++] = $_.fnc1; //#27641 - $k[$j++] = $_.iso646; //#27641 - $_.encode(); //#27641 - $_.mode = "numeric"; //#27642 - $_.i = $_.i + 1; //#27643 - break; //#27644 - } //#27644 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27650 - $k[$j++] = $_.lnumeric; //#27647 - $k[$j++] = $_.iso646; //#27647 - $_.encode(); //#27647 - $_.mode = "numeric"; //#27648 - break; //#27649 - } //#27649 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27655 - $k[$j++] = $_.lalphanumeric; //#27652 - $k[$j++] = $_.iso646; //#27652 - $_.encode(); //#27652 - $_.mode = "alphanumeric"; //#27653 - break; //#27654 - } //#27654 - $k[$j++] = $get($_.gpf, $_.i); //#27656 - $k[$j++] = $_.iso646; //#27656 - $_.encode(); //#27656 - $_.i = $_.i + 1; //#27657 - break; //#27658 - } //#27658 - } //#27658 - } //#27658 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27663 - $k[$j++] = 'pad'; //#27666 - $k[$j++] = $_.cdf.length + $_.gpf.length; //#27666 - $_.rembits(); //#27666 - var _Am = $a($k[--$j]); //#27666 - $_[$k[--$j]] = _Am; //#27666 - if ($_.pad.length > 0) { //#27678 - for (var _Ar = 0, _Aq = $_.pad.length - 1; _Ar <= _Aq; _Ar += 5) { //#27671 - $_.i = _Ar; //#27669 - var _As = $_.pad; //#27670 - var _At = $_.i; //#27670 - var _Au = $a([0, 0, 1, 0, 0]); //#27670 - var _Av = $_.pad; //#27670 - var _Aw = $_.i; //#27670 - var _Ax = 5; //#27670 - var _Ay = _Av.length - _Aw; //#27670 - if ((_Av.length - _Aw) > 5) { //#27670 - var _ = _Ax; //#27670 - _Ax = _Ay; //#27670 - _Ay = _; //#27670 - } //#27670 - $puti(_As, _At, $geti(_Au, 0, _Ay)); //#27670 - } //#27670 - if ($eq($_.mode, "numeric")) { //#27674 - $k[$j++] = Infinity; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $aload($_.pad); //#27673 - $_.pad = $geti($a(), 0, $_.pad.length); //#27673 - } //#27673 - if ($eq($_.mode, "alpha")) { //#27677 - $k[$j++] = Infinity; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $aload($_.pad); //#27676 - $_.pad = $geti($a(), 0, $_.pad.length); //#27676 - } //#27676 - } //#27676 - $k[$j++] = Infinity; //#27684 - $aload($_.cdf); //#27682 - $aload($_.gpf); //#27683 - $aload($_.pad); //#27684 - $_.bits = $a(); //#27684 - if (!bwipp_gs1_cc.__27702__) { //#27702 - $_ = Object.create($_); //#27702 - $k[$j++] = Infinity; //#27690 - $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#27690 - for (var _BF = 0, _BG = 68; _BF < _BG; _BF++) { //#27690 - $k[$j++] = $a(7); //#27690 - } //#27690 - $_.pwr928 = $a(); //#27690 - for (var _BJ = 1; _BJ <= 68; _BJ += 1) { //#27701 - $_.j = _BJ; //#27693 - $_.v = 0; //#27694 - for (var _BK = 6; _BK >= 1; _BK -= 1) { //#27699 - $_.i = _BK; //#27696 - $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#27697 - $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#27698 - } //#27698 - $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#27700 - } //#27700 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27700 - bwipp_gs1_cc.__27702__ = 1; //#27700 - $_ = Object.getPrototypeOf($_); //#27700 - } //#27700 - if ($_.ccversion == "a") { //#27744 - $k[$j++] = Infinity; //#27705 - for (var _Bg = 0, _Bh = 28; _Bg < _Bh; _Bg++) { //#27705 - $k[$j++] = 0; //#27705 - } //#27705 - $_.cws = $a(); //#27705 - $_.b = 0; //#27706 - $_.c = 0; //#27706 - for (;;) { //#27730 - if ($_.b == $_.bits.length) { //#27708 - break; //#27708 - } //#27708 - var _Bl = $_.bits; //#27709 - var _Bm = $_.b; //#27709 - var _Bn = $_.bits; //#27709 - var _Bo = $_.b; //#27709 - var _Bp = _Bn.length - _Bo; //#27709 - var _Bq = 69; //#27709 - if (69 > (_Bn.length - _Bo)) { //#27709 - var _ = _Bp; //#27709 - _Bp = _Bq; //#27709 - _Bq = _; //#27709 - } //#27709 - $_.bs = $geti(_Bl, _Bm, _Bq); //#27709 - $_.bsl = $_.bs.length; //#27710 - $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#27711 - $_.csl = $_.cs.length; //#27712 - for (var _C0 = 0, _Bz = $_.bsl - 1; _C0 <= _Bz; _C0 += 1) { //#27722 - $_.i = _C0; //#27714 - for (var _C3 = 0, _C2 = $_.csl - 1; _C3 <= _C2; _C3 += 1) { //#27721 - $_.j = _C3; //#27716 - var _C4 = $_.cs; //#27717 - var _C5 = $_.j; //#27717 - $put(_C4, _C5, $f($get(_C4, _C5) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#27720 - } //#27720 - } //#27720 - for (var _CI = $_.csl - 1; _CI >= 1; _CI -= 1) { //#27727 - $_.i = _CI; //#27724 - var _CJ = $_.cs; //#27725 - var _CK = $_.i; //#27725 - $put(_CJ, _CK - 1, $f($get(_CJ, _CK - 1) + (~~($get($_.cs, $_.i) / 928)))); //#27725 - var _CP = $_.cs; //#27726 - var _CQ = $_.i; //#27726 - $put(_CP, _CQ, $get(_CP, _CQ) % 928); //#27726 - } //#27726 - $_.b = $_.b + $_.bsl; //#27728 - $_.c = $_.c + $_.csl; //#27729 - } //#27729 - $_.cws = $geti($_.cws, 0, $_.c); //#27731 - $_.barcode = $s($_.cws.length * 4); //#27732 - for (var _Cd = 0, _Cc = $_.cws.length - 1; _Cd <= _Cc; _Cd += 1) { //#27738 - $_.i = _Cd; //#27734 - var _Cf = $strcpy($s(4), "^000"); //#27735 - var _Ck = $cvrs($s(4), $get($_.cws, $_.i), 10); //#27735 - $puti(_Cf, 4 - _Ck.length, _Ck); //#27736 - $puti($_.barcode, $_.i * 4, _Cf); //#27737 - } //#27737 - delete $_.options["parse"]; //#27739 - $put($_.options, "dontdraw", true); //#27740 - $put($_.options, "cca", true); //#27741 - $put($_.options, "columns", $_.cccolumns); //#27742 - $k[$j++] = 'args'; //#27743 - $k[$j++] = $_.barcode; //#27743 - $k[$j++] = $_.options; //#27743 - bwipp_micropdf417(); //#27743 - var _Cu = $k[--$j]; //#27743 - $_[$k[--$j]] = _Cu; //#27743 - } //#27743 - if ($_.ccversion == "b") { //#27758 - $_.barcode = $s(~~($_.bits.length / 8)); //#27747 - for (var _D1 = 0, _D0 = $_.barcode.length - 1; _D1 <= _D0; _D1 += 1) { //#27752 - $_.i = _D1; //#27749 - var _D4 = $geti($_.bits, $_.i * 8, 8); //#27750 - $k[$j++] = 0; //#27750 - for (var _D5 = 0, _D6 = _D4.length; _D5 < _D6; _D5++) { //#27750 - var _D8 = $k[--$j]; //#27750 - $k[$j++] = $f(_D8 + $get(_D4, _D5)) * 2; //#27750 - } //#27750 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27751 - } //#27751 - delete $_.options["parse"]; //#27753 - $put($_.options, "dontdraw", true); //#27754 - $put($_.options, "ccb", true); //#27755 - $put($_.options, "columns", $_.cccolumns); //#27756 - $k[$j++] = 'args'; //#27757 - $k[$j++] = $_.barcode; //#27757 - $k[$j++] = $_.options; //#27757 - bwipp_micropdf417(); //#27757 - var _DJ = $k[--$j]; //#27757 - $_[$k[--$j]] = _DJ; //#27757 - } //#27757 - if ($_.ccversion == "c") { //#27773 - $_.barcode = $s(~~($_.bits.length / 8)); //#27761 - for (var _DQ = 0, _DP = $_.barcode.length - 1; _DQ <= _DP; _DQ += 1) { //#27766 - $_.i = _DQ; //#27763 - var _DT = $geti($_.bits, $_.i * 8, 8); //#27764 - $k[$j++] = 0; //#27764 - for (var _DU = 0, _DV = _DT.length; _DU < _DV; _DU++) { //#27764 - var _DX = $k[--$j]; //#27764 - $k[$j++] = $f(_DX + $get(_DT, _DU)) * 2; //#27764 - } //#27764 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27765 - } //#27765 - delete $_.options["parse"]; //#27767 - $put($_.options, "dontdraw", true); //#27768 - $put($_.options, "ccc", true); //#27769 - $put($_.options, "columns", $_.cccolumns); //#27770 - $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#27771 - $k[$j++] = 'args'; //#27772 - $k[$j++] = $_.barcode; //#27772 - $k[$j++] = $_.options; //#27772 - bwipp_pdf417(); //#27772 - var _Dk = $k[--$j]; //#27772 - $_[$k[--$j]] = _Dk; //#27772 - } //#27772 - $k[$j++] = $_.args; //#27776 - if (!$_.dontdraw) { //#27776 - bwipp_renmatrix(); //#27776 - } //#27776 - $_ = Object.getPrototypeOf($_); //#27778 - $_ = Object.getPrototypeOf($_); //#27780 -} - -function bwipp_ean13composite() { - $_ = Object.create($_); //#27812 - $_.dontdraw = false; //#27815 - $_.usematrix = false; //#27816 - $_.parse = false; //#27817 - $_.dontlint = false; //#27818 - $_.lintreqs = true; //#27819 - $k[$j++] = $_; //#27821 - bwipp_processoptions(); //#27821 - $_.options = $k[--$j]; //#27821 - $_.barcode = $k[--$j]; //#27822 - if ($_.dontdraw) { //#27824 - $_.usematrix = true; //#27824 - } //#27824 - $search($_.barcode, "|"); //#27827 - if ($k[--$j]) { //#27832 - $_.linear = $k[--$j]; //#27828 - $j--; //#27829 - $_.comp = $k[--$j]; //#27830 - } else { //#27832 - $j--; //#27832 - $k[$j++] = 'bwipp.missingCompositeComponent#27832'; //#27832 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27832 - bwipp_raiseerror(); //#27832 - } //#27832 - $put($_.options, "lintype", "ean13"); //#27835 - $put($_.options, "inkspread", "0"); //#27836 - $put($_.options, "dontdraw", true); //#27837 - $put($_.options, "dontlint", true); //#27838 - var _C = $s($_.comp.length + 18); //#27841 - $puti(_C, 0, "(01)00000000000000"); //#27842 - $puti(_C, 18, $_.comp); //#27843 - $k[$j++] = _C; //#27844 - $k[$j++] = 'ai'; //#27844 - bwipp_gs1process(); //#27844 - $j -= 3; //#27844 - $k[$j++] = $_.linear; //#27847 - $k[$j++] = $_.options; //#27847 - bwipp_ean13(); //#27847 - if (!$_.usematrix) { //#27937 - $$.save(); //#27849 - bwipp_renlinear(); //#27851 - $$.rmoveto(-1, 72); //#27854 - $k[$j++] = Infinity; //#27865 - $k[$j++] = Infinity; //#27859 - $k[$j++] = 0; //#27857 - $k[$j++] = 1; //#27857 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#27857 - $k[$j++] = 0; //#27857 - } //#27857 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#27858 - $k[$j++] = 0; //#27858 + var _7X = $k[--$j]; //#27858 + $k[$j++] = _7X; //#27858 + if ($ne(_7X, 'raw')) { //#27858 + var _7Y = $k[--$j]; //#27858 + var _7a = $get(_7Y, $k[--$j]); //#27858 + $k[$j++] = _7a; //#27858 + } else { //#27858 + $j--; //#27858 } //#27858 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#27859 - $k[$j++] = 0; //#27859 - } //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - var _N = $a(); //#27859 - $k[$j++] = 'ren'; //#27865 - $k[$j++] = bwipp_renmatrix; //#27865 - $k[$j++] = 'pixs'; //#27865 - $k[$j++] = _N; //#27865 - $k[$j++] = 'pixx'; //#27865 - $k[$j++] = 97; //#27865 - $k[$j++] = 'pixy'; //#27865 - $k[$j++] = 3; //#27865 - $k[$j++] = 'height'; //#27865 - $k[$j++] = 6 / 72; //#27865 - $k[$j++] = 'width'; //#27865 - $k[$j++] = 97 / 72; //#27865 - $k[$j++] = 'opt'; //#27865 - $k[$j++] = $_.options; //#27865 - var _P = $d(); //#27865 - $k[$j++] = _P; //#27866 - bwipp_renmatrix(); //#27866 - $$.rmoveto(-2, 6); //#27869 - $k[$j++] = $_.comp; //#27869 - $k[$j++] = $_.options; //#27869 - bwipp_gs1_cc(); //#27869 - bwipp_renmatrix(); //#27869 - $$.restore(); //#27871 - } else { //#27937 - $_.linsym = $k[--$j]; //#27873 - $_.sbs = $get($_.linsym, 'sbs'); //#27874 - $_.bhs = $get($_.linsym, 'bhs'); //#27875 - $_.bbs = $get($_.linsym, 'bbs'); //#27876 - $k[$j++] = 'linwidth'; //#27877 - $k[$j++] = 0; //#27877 - $forall($_.sbs, function() { //#27877 - var _a = $k[--$j]; //#27877 - var _b = $k[--$j]; //#27877 - $k[$j++] = $f(_b + $cvi(_a)); //#27877 - }); //#27877 - var _c = $k[--$j]; //#27877 - $_[$k[--$j]] = _c; //#27877 - $k[$j++] = 'compsym'; //#27879 - $k[$j++] = $_.comp; //#27879 - $k[$j++] = $_.options; //#27879 - bwipp_gs1_cc(); //#27879 - var _g = $k[--$j]; //#27879 - $_[$k[--$j]] = _g; //#27879 - $_.ccpixs = $get($_.compsym, 'pixs'); //#27880 - $_.ccpixx = $get($_.compsym, 'pixx'); //#27881 - $k[$j++] = Infinity; //#27883 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#27883 - $k[$j++] = 0; //#27883 + $k[$j++] = Infinity; //#27859 + var _7b = $k[--$j]; //#27859 + var _7c = $k[--$j]; //#27859 + $k[$j++] = _7b; //#27859 + $forall(_7c, function() { //#27859 + var _7d = $k[--$j]; //#27859 + $k[$j++] = $f(_7d - 48); //#27859 + }); //#27859 + var _7e = $a(); //#27859 + $puti($_.gpfenc, $_.j, _7e); //#27861 + $_.j = _7e.length + $_.j; //#27862 + }; //#27862 + $k[$j++] = Infinity; //#27866 + for (var _7j = 0, _7k = $_.gpf.length; _7j < _7k; _7j++) { //#27866 + $k[$j++] = 0; //#27866 + } //#27866 + $k[$j++] = 0; //#27866 + $k[$j++] = -1; //#27866 + $_.numericruns = $a(); //#27866 + $k[$j++] = Infinity; //#27867 + for (var _7n = 0, _7o = $_.gpf.length; _7n < _7o; _7n++) { //#27867 + $k[$j++] = 0; //#27867 + } //#27867 + $k[$j++] = 0; //#27867 + $_.alphanumericruns = $a(); //#27867 + $k[$j++] = Infinity; //#27868 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#27868 + $k[$j++] = 0; //#27868 + } //#27868 + $k[$j++] = 9999; //#27868 + $_.nextiso646only = $a(); //#27868 + for (var _7v = $_.gpf.length - 1; _7v >= 0; _7v -= 1) { //#27890 + $_.i = _7v; //#27870 + var _80 = $strcpy($s(2), "00"); //#27872 + var _83 = $get($_.gpf, $_.i); //#27873 + $k[$j++] = $get($_.gpf, $_.i); //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = 0; //#27873 + $k[$j++] = _83; //#27873 + if (_83 == $_.fnc1) { //#27873 + $j--; //#27873 + $k[$j++] = 94; //#27873 + } //#27873 + var _85 = $k[--$j]; //#27873 + var _86 = $k[--$j]; //#27873 + $put($k[--$j], _86, _85); //#27873 + if ($_.i < ($_.gpf.length - 1)) { //#27874 + var _8A = $k[--$j]; //#27874 + var _8D = $get($_.gpf, $_.i + 1); //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = 1; //#27874 + $k[$j++] = _8D; //#27874 + if (_8D == $_.fnc1) { //#27874 + $j--; //#27874 + $k[$j++] = 94; //#27874 + } //#27874 + var _8F = $k[--$j]; //#27874 + var _8G = $k[--$j]; //#27874 + $put($k[--$j], _8G, _8F); //#27874 + } //#27874 + var _8K = $get($_.numeric, $k[--$j]) !== undefined; //#27875 + if (_8K) { //#27878 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27876 + } else { //#27878 + $put($_.numericruns, $_.i, 0); //#27878 + } //#27878 + var _8S = $k[--$j]; //#27880 + var _8U = $get($_.alphanumeric, _8S) !== undefined; //#27880 + $k[$j++] = _8S; //#27884 + if (_8U) { //#27883 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27881 + } else { //#27883 + $put($_.alphanumericruns, $_.i, 0); //#27883 } //#27883 - $_.linpad = $a(); //#27883 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#27885 - if ($_.diff > 0) { //#27891 - $k[$j++] = Infinity; //#27887 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#27887 - $k[$j++] = 0; //#27887 - } //#27887 - $_.ccrpad = $a(); //#27887 - $_.pixx = $f($_.ccpixx + $_.diff); //#27888 - } else { //#27891 - $_.ccrpad = $a(0); //#27890 - $_.pixx = $_.ccpixx; //#27891 - } //#27891 - $k[$j++] = Infinity; //#27919 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#27898 - $_.i = _15; //#27896 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#27897 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#27897 - $aload($_.ccrpad); //#27897 - } //#27897 - } //#27897 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#27899 - $aload($_.linpad); //#27899 - $k[$j++] = 0; //#27899 - $k[$j++] = 1; //#27899 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#27899 - $k[$j++] = 0; //#27899 - } //#27899 - $k[$j++] = 1; //#27899 - $k[$j++] = 0; //#27899 - $aload($_.ccrpad); //#27899 - } //#27899 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#27900 - $aload($_.linpad); //#27900 - $k[$j++] = 1; //#27900 - $k[$j++] = 0; //#27900 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#27900 - $k[$j++] = 0; //#27900 - } //#27900 - $k[$j++] = 0; //#27900 - $k[$j++] = 1; //#27900 - $aload($_.ccrpad); //#27900 - } //#27900 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#27901 - $aload($_.linpad); //#27901 - $k[$j++] = 0; //#27901 - $k[$j++] = 1; //#27901 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#27901 - $k[$j++] = 0; //#27901 - } //#27901 - $k[$j++] = 1; //#27901 - $k[$j++] = 0; //#27901 - $aload($_.ccrpad); //#27901 - } //#27901 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#27920 - $_.y = _1W; //#27903 - $aload($_.linpad); //#27904 - $k[$j++] = 0; //#27918 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#27918 - $_.i = _1a; //#27907 - if (($_.i % 2) == 0) { //#27916 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#27910 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#27913 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#27911 - $k[$j++] = 0; //#27911 - } //#27911 - } else { //#27913 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#27913 - $k[$j++] = 1; //#27913 - } //#27913 - } //#27913 - } else { //#27916 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#27916 - $k[$j++] = 0; //#27916 - } //#27916 - } //#27916 - } //#27916 - $k[$j++] = 0; //#27919 - } //#27919 - $_.pixs = $a(); //#27919 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#27923 - var _29 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#27931 - $k[$j++] = _29; //#27938 - if (!$_.dontdraw) { //#27938 - $$.save(); //#27935 - bwipp_renmatrix(); //#27936 - $$.restore(); //#27937 - } //#27937 - } //#27937 - $_ = Object.getPrototypeOf($_); //#27941 -} - -function bwipp_ean8composite() { - $_ = Object.create($_); //#27973 - $_.dontdraw = false; //#27976 - $_.usematrix = false; //#27977 - $_.parse = false; //#27978 - $_.dontlint = false; //#27979 - $_.lintreqs = true; //#27980 - $k[$j++] = $_; //#27982 - bwipp_processoptions(); //#27982 - $_.options = $k[--$j]; //#27982 - $_.barcode = $k[--$j]; //#27983 - if ($_.dontdraw) { //#27985 - $_.usematrix = true; //#27985 - } //#27985 - $search($_.barcode, "|"); //#27988 - if ($k[--$j]) { //#27993 - $_.linear = $k[--$j]; //#27989 - $j--; //#27990 - $_.comp = $k[--$j]; //#27991 - } else { //#27993 - $j--; //#27993 - $k[$j++] = 'bwipp.missingCompositeComponent#27993'; //#27993 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27993 - bwipp_raiseerror(); //#27993 - } //#27993 - $put($_.options, "lintype", "ean8"); //#27997 - $put($_.options, "inkspread", "0"); //#27998 - $put($_.options, "dontdraw", true); //#27999 - $put($_.options, "dontlint", true); //#28000 - var _C = $s($_.comp.length + 18); //#28003 - $puti(_C, 0, "(01)00000000000000"); //#28004 - $puti(_C, 18, $_.comp); //#28005 - $k[$j++] = _C; //#28006 - $k[$j++] = 'ai'; //#28006 - bwipp_gs1process(); //#28006 - $j -= 3; //#28006 - $k[$j++] = $_.linear; //#28009 - $k[$j++] = $_.options; //#28009 - bwipp_ean8(); //#28009 - if (!$_.usematrix) { //#28101 - $$.save(); //#28011 - bwipp_renlinear(); //#28013 - $$.rmoveto(-1, 72); //#28016 + var _8c = $k[--$j]; //#27885 + var _8e = $get($_.iso646, _8c) !== undefined; //#27885 + var _8g = $get($_.alphanumeric, _8c) !== undefined; //#27885 + if (_8e && (!_8g)) { //#27888 + $put($_.nextiso646only, $_.i, 0); //#27886 + } else { //#27888 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27888 + } //#27888 + } //#27888 + $_.gpfenc = $a(8304); //#27893 + $_.i = 0; //#27894 + $_.j = 0; //#27894 + for (;;) { //#27984 + if ($_.i == $_.gpf.length) { //#27896 + break; //#27896 + } //#27896 + for (;;) { //#27983 + if ($eq($_.mode, "numeric")) { //#27932 + if ($_.i <= ($_.gpf.length - 2)) { //#27929 + var _8u = $s(2); //#27901 + var _8x = $get($_.gpf, $_.i); //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = 0; //#27902 + $k[$j++] = _8x; //#27902 + if (_8x == $_.fnc1) { //#27902 + $j--; //#27902 + $k[$j++] = 94; //#27902 + } //#27902 + var _8z = $k[--$j]; //#27902 + var _90 = $k[--$j]; //#27902 + $put($k[--$j], _90, _8z); //#27902 + var _92 = $k[--$j]; //#27903 + var _95 = $get($_.gpf, $_.i + 1); //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = 1; //#27903 + $k[$j++] = _95; //#27903 + if (_95 == $_.fnc1) { //#27903 + $j--; //#27903 + $k[$j++] = 94; //#27903 + } //#27903 + var _97 = $k[--$j]; //#27903 + var _98 = $k[--$j]; //#27903 + $put($k[--$j], _98, _97); //#27903 + var _9A = $k[--$j]; //#27904 + var _9C = $get($_.numeric, _9A) !== undefined; //#27904 + $k[$j++] = _9A; //#27908 + if (_9C) { //#27908 + $k[$j++] = $_.numeric; //#27905 + $_.encode(); //#27905 + $_.i = $_.i + 2; //#27906 + break; //#27907 + } //#27907 + $j--; //#27909 + $k[$j++] = $_.lalphanumeric; //#27910 + $k[$j++] = $_.numeric; //#27910 + $_.encode(); //#27910 + $_.mode = "alphanumeric"; //#27911 + break; //#27912 + } else { //#27929 + var _9J = $get($_.gpf, $_.i); //#27914 + if ((_9J < 48) || (_9J > 57)) { //#27918 + $k[$j++] = $_.lalphanumeric; //#27915 + $k[$j++] = $_.numeric; //#27915 + $_.encode(); //#27915 + $_.mode = "alphanumeric"; //#27916 + break; //#27917 + } //#27917 + $k[$j++] = 'rem'; //#27919 + $k[$j++] = $_.cdf.length + $_.j; //#27919 + $_.rembits(); //#27919 + var _9O = $k[--$j]; //#27919 + $_[$k[--$j]] = _9O; //#27919 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#27929 + var _9V = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27921 + var _9a = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27922 + $puti(_9V, 4 - _9a.length, _9a); //#27923 + $k[$j++] = _9V; //#27923 + $k[$j++] = 'raw'; //#27923 + $_.encode(); //#27923 + $_.i = $_.i + 1; //#27924 + break; //#27925 + } else { //#27929 + var _9c = $s(2); //#27927 + $put(_9c, 0, $get($_.gpf, $_.i)); //#27927 + $put(_9c, 1, 94); //#27927 + $k[$j++] = _9c; //#27927 + $k[$j++] = $_.numeric; //#27927 + $_.encode(); //#27927 + $_.i = $_.i + 1; //#27928 + break; //#27929 + } //#27929 + } //#27929 + } //#27929 + if ($eq($_.mode, "alphanumeric")) { //#27959 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27940 + $k[$j++] = $_.fnc1; //#27936 + $k[$j++] = $_.alphanumeric; //#27936 + $_.encode(); //#27936 + $_.mode = "numeric"; //#27937 + $_.i = $_.i + 1; //#27938 + break; //#27939 + } //#27939 + var _9s = $get($_.gpf, $_.i); //#27941 + var _9u = $get($_.iso646, _9s) !== undefined; //#27941 + var _9w = $get($_.alphanumeric, _9s) !== undefined; //#27941 + if (_9u && (!_9w)) { //#27945 + $k[$j++] = $_.liso646; //#27942 + $k[$j++] = $_.alphanumeric; //#27942 + $_.encode(); //#27942 + $_.mode = "iso646"; //#27943 + break; //#27944 + } //#27944 + if ($get($_.numericruns, $_.i) >= 6) { //#27950 + $k[$j++] = $_.lnumeric; //#27947 + $k[$j++] = $_.alphanumeric; //#27947 + $_.encode(); //#27947 + $_.mode = "numeric"; //#27948 + break; //#27949 + } //#27949 + var _A6 = $get($_.numericruns, $_.i); //#27951 + if ((_A6 >= 4) && ($f(_A6 + $_.i) == $_.gpf.length)) { //#27955 + $k[$j++] = $_.lnumeric; //#27952 + $k[$j++] = $_.alphanumeric; //#27952 + $_.encode(); //#27952 + $_.mode = "numeric"; //#27953 + break; //#27954 + } //#27954 + $k[$j++] = $get($_.gpf, $_.i); //#27956 + $k[$j++] = $_.alphanumeric; //#27956 + $_.encode(); //#27956 + $_.i = $_.i + 1; //#27957 + break; //#27958 + } //#27958 + if ($eq($_.mode, "iso646")) { //#27981 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27967 + $k[$j++] = $_.fnc1; //#27963 + $k[$j++] = $_.iso646; //#27963 + $_.encode(); //#27963 + $_.mode = "numeric"; //#27964 + $_.i = $_.i + 1; //#27965 + break; //#27966 + } //#27966 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27972 + $k[$j++] = $_.lnumeric; //#27969 + $k[$j++] = $_.iso646; //#27969 + $_.encode(); //#27969 + $_.mode = "numeric"; //#27970 + break; //#27971 + } //#27971 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27977 + $k[$j++] = $_.lalphanumeric; //#27974 + $k[$j++] = $_.iso646; //#27974 + $_.encode(); //#27974 + $_.mode = "alphanumeric"; //#27975 + break; //#27976 + } //#27976 + $k[$j++] = $get($_.gpf, $_.i); //#27978 + $k[$j++] = $_.iso646; //#27978 + $_.encode(); //#27978 + $_.i = $_.i + 1; //#27979 + break; //#27980 + } //#27980 + } //#27980 + } //#27980 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27985 + $k[$j++] = 'pad'; //#27988 + $k[$j++] = $_.cdf.length + $_.gpf.length; //#27988 + $_.rembits(); //#27988 + var _Ap = $a($k[--$j]); //#27988 + $_[$k[--$j]] = _Ap; //#27988 + if ($_.pad.length > 0) { //#28000 + for (var _Au = 0, _At = $_.pad.length - 1; _Au <= _At; _Au += 5) { //#27993 + $_.i = _Au; //#27991 + var _Av = $_.pad; //#27992 + var _Aw = $_.i; //#27992 + var _Ax = $a([0, 0, 1, 0, 0]); //#27992 + var _Ay = $_.pad; //#27992 + var _Az = $_.i; //#27992 + var _B0 = 5; //#27992 + var _B1 = _Ay.length - _Az; //#27992 + if ((_Ay.length - _Az) > 5) { //#27992 + var _ = _B0; //#27992 + _B0 = _B1; //#27992 + _B1 = _; //#27992 + } //#27992 + $puti(_Av, _Aw, $geti(_Ax, 0, _B1)); //#27992 + } //#27992 + if ($eq($_.mode, "numeric")) { //#27996 + $k[$j++] = Infinity; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $aload($_.pad); //#27995 + $_.pad = $geti($a(), 0, $_.pad.length); //#27995 + } //#27995 + if ($eq($_.mode, "alpha")) { //#27999 + $k[$j++] = Infinity; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $aload($_.pad); //#27998 + $_.pad = $geti($a(), 0, $_.pad.length); //#27998 + } //#27998 + } //#27998 + $k[$j++] = Infinity; //#28003 + $aload($_.cdf); //#28004 + $aload($_.gpf); //#28005 + $aload($_.pad); //#28006 + $_.bits = $a(); //#28006 + if (!bwipp_gs1_cc.__28024__) { //#28024 + $_ = Object.create($_); //#28024 + $k[$j++] = Infinity; //#28010 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#28012 + for (var _BI = 0, _BJ = 68; _BI < _BJ; _BI++) { //#28012 + $k[$j++] = $a(7); //#28012 + } //#28012 + $_.pwr928 = $a(); //#28012 + for (var _BM = 1; _BM <= 68; _BM += 1) { //#28023 + $_.j = _BM; //#28015 + $_.v = 0; //#28016 + for (var _BN = 6; _BN >= 1; _BN -= 1) { //#28021 + $_.i = _BN; //#28018 + $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#28019 + $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#28020 + } //#28020 + $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#28022 + } //#28022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#28022 + bwipp_gs1_cc.__28024__ = 1; //#28022 + $_ = Object.getPrototypeOf($_); //#28022 + } //#28022 + if ($_.ccversion == "a") { //#28066 $k[$j++] = Infinity; //#28027 - $k[$j++] = Infinity; //#28021 - $k[$j++] = 0; //#28019 - $k[$j++] = 1; //#28019 - for (var _H = 0, _I = 65; _H < _I; _H++) { //#28019 - $k[$j++] = 0; //#28019 - } //#28019 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - for (var _J = 0, _K = 65; _J < _K; _J++) { //#28020 - $k[$j++] = 0; //#28020 - } //#28020 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - for (var _L = 0, _M = 65; _L < _M; _L++) { //#28021 - $k[$j++] = 0; //#28021 - } //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - var _N = $a(); //#28021 - $k[$j++] = 'ren'; //#28027 - $k[$j++] = bwipp_renmatrix; //#28027 - $k[$j++] = 'pixs'; //#28027 - $k[$j++] = _N; //#28027 - $k[$j++] = 'pixx'; //#28027 - $k[$j++] = 69; //#28027 - $k[$j++] = 'pixy'; //#28027 - $k[$j++] = 3; //#28027 - $k[$j++] = 'height'; //#28027 - $k[$j++] = 6 / 72; //#28027 - $k[$j++] = 'width'; //#28027 - $k[$j++] = 69 / 72; //#28027 - $k[$j++] = 'opt'; //#28027 - $k[$j++] = $_.options; //#28027 - var _P = $d(); //#28027 - $k[$j++] = _P; //#28028 - bwipp_renmatrix(); //#28028 - $k[$j++] = $_.comp; //#28031 - $k[$j++] = $_.options; //#28031 - bwipp_gs1_cc(); //#28031 - var _S = $k[--$j]; //#28032 - $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28032 - $k[$j++] = _S; //#28033 - bwipp_renmatrix(); //#28033 - $$.restore(); //#28035 - } else { //#28101 - $_.linsym = $k[--$j]; //#28037 - $_.sbs = $get($_.linsym, 'sbs'); //#28038 - $_.bhs = $get($_.linsym, 'bhs'); //#28039 - $_.bbs = $get($_.linsym, 'bbs'); //#28040 - $k[$j++] = 'linwidth'; //#28041 - $k[$j++] = 0; //#28041 - $forall($_.sbs, function() { //#28041 - var _c = $k[--$j]; //#28041 - var _d = $k[--$j]; //#28041 - $k[$j++] = $f(_d + $cvi(_c)); //#28041 - }); //#28041 - var _e = $k[--$j]; //#28041 - $_[$k[--$j]] = _e; //#28041 - var _g = $_.comp; //#28043 - $k[$j++] = 'compsym'; //#28043 - $k[$j++] = _g; //#28043 - $k[$j++] = $_.options; //#28043 - bwipp_gs1_cc(); //#28043 - var _i = $k[--$j]; //#28043 - $_[$k[--$j]] = _i; //#28043 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28044 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28045 - $k[$j++] = Infinity; //#28047 - for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28047 - $k[$j++] = 0; //#28047 - } //#28047 - $_.linpad = $a(); //#28047 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28049 - if ($_.diff > 0) { //#28055 - $k[$j++] = Infinity; //#28051 - for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28051 - $k[$j++] = 0; //#28051 - } //#28051 - $_.ccrpad = $a(); //#28051 - $_.pixx = $f($_.ccpixx + $_.diff); //#28052 - } else { //#28055 - $_.ccrpad = $a(0); //#28054 - $_.pixx = $_.ccpixx; //#28055 - } //#28055 - $k[$j++] = Infinity; //#28083 - for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28062 - $_.i = _17; //#28060 - for (var _19 = 0, _1A = 2; _19 < _1A; _19++) { //#28061 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28061 - $aload($_.ccrpad); //#28061 - } //#28061 - } //#28061 - for (var _1G = 0, _1H = 2; _1G < _1H; _1G++) { //#28063 - $aload($_.linpad); //#28063 - $k[$j++] = 0; //#28063 - $k[$j++] = 1; //#28063 - for (var _1J = 0, _1K = 65; _1J < _1K; _1J++) { //#28063 - $k[$j++] = 0; //#28063 - } //#28063 - $k[$j++] = 1; //#28063 - $k[$j++] = 0; //#28063 - $aload($_.ccrpad); //#28063 - } //#28063 - for (var _1M = 0, _1N = 2; _1M < _1N; _1M++) { //#28064 - $aload($_.linpad); //#28064 - $k[$j++] = 1; //#28064 - $k[$j++] = 0; //#28064 - for (var _1P = 0, _1Q = 65; _1P < _1Q; _1P++) { //#28064 - $k[$j++] = 0; //#28064 - } //#28064 - $k[$j++] = 0; //#28064 - $k[$j++] = 1; //#28064 - $aload($_.ccrpad); //#28064 - } //#28064 - for (var _1S = 0, _1T = 2; _1S < _1T; _1S++) { //#28065 - $aload($_.linpad); //#28065 - $k[$j++] = 0; //#28065 - $k[$j++] = 1; //#28065 - for (var _1V = 0, _1W = 65; _1V < _1W; _1V++) { //#28065 - $k[$j++] = 0; //#28065 - } //#28065 - $k[$j++] = 1; //#28065 - $k[$j++] = 0; //#28065 - $aload($_.ccrpad); //#28065 - } //#28065 - for (var _1Y = 71; _1Y >= 0; _1Y -= 1) { //#28084 - $_.y = _1Y; //#28067 - $aload($_.linpad); //#28068 - $k[$j++] = 0; //#28082 - for (var _1c = 0, _1b = $_.sbs.length - 1; _1c <= _1b; _1c += 1) { //#28082 - $_.i = _1c; //#28071 - if (($_.i % 2) == 0) { //#28080 - var _1h = $get($_.bbs, ~~($_.i / 2)) * 72; //#28074 - if ((_1h > $_.y) || (($f(_1h + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28077 - for (var _1q = 0, _1r = $cvi($get($_.sbs, $_.i)); _1q < _1r; _1q++) { //#28075 - $k[$j++] = 0; //#28075 - } //#28075 - } else { //#28077 - for (var _1v = 0, _1w = $cvi($get($_.sbs, $_.i)); _1v < _1w; _1v++) { //#28077 - $k[$j++] = 1; //#28077 - } //#28077 - } //#28077 - } else { //#28080 - for (var _20 = 0, _21 = $cvi($get($_.sbs, $_.i)); _20 < _21; _20++) { //#28080 - $k[$j++] = 0; //#28080 - } //#28080 - } //#28080 - } //#28080 - $k[$j++] = 0; //#28083 - } //#28083 - $_.pixs = $a(); //#28083 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28087 - var _2B = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#28095 - $k[$j++] = _2B; //#28102 - if (!$_.dontdraw) { //#28102 - $$.save(); //#28099 - bwipp_renmatrix(); //#28100 - $$.restore(); //#28101 - } //#28101 - } //#28101 - $_ = Object.getPrototypeOf($_); //#28105 -} - -function bwipp_upcacomposite() { - $_ = Object.create($_); //#28137 - $_.dontdraw = false; //#28140 - $_.usematrix = false; //#28141 - $_.parse = false; //#28142 - $_.dontlint = false; //#28143 - $_.lintreqs = true; //#28144 - $k[$j++] = $_; //#28146 - bwipp_processoptions(); //#28146 - $_.options = $k[--$j]; //#28146 - $_.barcode = $k[--$j]; //#28147 - if ($_.dontdraw) { //#28149 - $_.usematrix = true; //#28149 - } //#28149 - $search($_.barcode, "|"); //#28152 - if ($k[--$j]) { //#28157 - $_.linear = $k[--$j]; //#28153 + for (var _Bj = 0, _Bk = 28; _Bj < _Bk; _Bj++) { //#28027 + $k[$j++] = 0; //#28027 + } //#28027 + $_.cws = $a(); //#28027 + $_.b = 0; //#28028 + $_.c = 0; //#28028 + for (;;) { //#28052 + if ($_.b == $_.bits.length) { //#28030 + break; //#28030 + } //#28030 + var _Bo = $_.bits; //#28031 + var _Bp = $_.b; //#28031 + var _Bq = $_.bits; //#28031 + var _Br = $_.b; //#28031 + var _Bs = _Bq.length - _Br; //#28031 + var _Bt = 69; //#28031 + if (69 > (_Bq.length - _Br)) { //#28031 + var _ = _Bs; //#28031 + _Bs = _Bt; //#28031 + _Bt = _; //#28031 + } //#28031 + $_.bs = $geti(_Bo, _Bp, _Bt); //#28031 + $_.bsl = $_.bs.length; //#28032 + $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#28033 + $_.csl = $_.cs.length; //#28034 + for (var _C3 = 0, _C2 = $_.bsl - 1; _C3 <= _C2; _C3 += 1) { //#28044 + $_.i = _C3; //#28036 + for (var _C6 = 0, _C5 = $_.csl - 1; _C6 <= _C5; _C6 += 1) { //#28043 + $_.j = _C6; //#28038 + var _C7 = $_.cs; //#28039 + var _C8 = $_.j; //#28039 + $put(_C7, _C8, $f($get(_C7, _C8) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#28042 + } //#28042 + } //#28042 + for (var _CL = $_.csl - 1; _CL >= 1; _CL -= 1) { //#28049 + $_.i = _CL; //#28046 + var _CM = $_.cs; //#28047 + var _CN = $_.i; //#28047 + $put(_CM, _CN - 1, $f($get(_CM, _CN - 1) + (~~($get($_.cs, $_.i) / 928)))); //#28047 + var _CS = $_.cs; //#28048 + var _CT = $_.i; //#28048 + $put(_CS, _CT, $get(_CS, _CT) % 928); //#28048 + } //#28048 + $_.b = $_.b + $_.bsl; //#28050 + $_.c = $_.c + $_.csl; //#28051 + } //#28051 + $_.cws = $geti($_.cws, 0, $_.c); //#28053 + $_.barcode = $s($_.cws.length * 4); //#28054 + for (var _Cg = 0, _Cf = $_.cws.length - 1; _Cg <= _Cf; _Cg += 1) { //#28060 + $_.i = _Cg; //#28056 + var _Ci = $strcpy($s(4), "^000"); //#28057 + var _Cn = $cvrs($s(4), $get($_.cws, $_.i), 10); //#28057 + $puti(_Ci, 4 - _Cn.length, _Cn); //#28058 + $puti($_.barcode, $_.i * 4, _Ci); //#28059 + } //#28059 + delete $_.options["parse"]; //#28061 + $put($_.options, "dontdraw", true); //#28062 + $put($_.options, "cca", true); //#28063 + $put($_.options, "columns", $_.cccolumns); //#28064 + $k[$j++] = 'args'; //#28065 + $k[$j++] = $_.barcode; //#28065 + $k[$j++] = $_.options; //#28065 + bwipp_micropdf417(); //#28065 + var _Cx = $k[--$j]; //#28065 + $_[$k[--$j]] = _Cx; //#28065 + } //#28065 + if ($_.ccversion == "b") { //#28080 + $_.barcode = $s(~~($_.bits.length / 8)); //#28069 + for (var _D4 = 0, _D3 = $_.barcode.length - 1; _D4 <= _D3; _D4 += 1) { //#28074 + $_.i = _D4; //#28071 + var _D7 = $geti($_.bits, $_.i * 8, 8); //#28072 + $k[$j++] = 0; //#28072 + for (var _D8 = 0, _D9 = _D7.length; _D8 < _D9; _D8++) { //#28072 + var _DB = $k[--$j]; //#28072 + $k[$j++] = $f(_DB + $get(_D7, _D8)) * 2; //#28072 + } //#28072 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28073 + } //#28073 + delete $_.options["parse"]; //#28075 + $put($_.options, "dontdraw", true); //#28076 + $put($_.options, "ccb", true); //#28077 + $put($_.options, "columns", $_.cccolumns); //#28078 + $k[$j++] = 'args'; //#28079 + $k[$j++] = $_.barcode; //#28079 + $k[$j++] = $_.options; //#28079 + bwipp_micropdf417(); //#28079 + var _DM = $k[--$j]; //#28079 + $_[$k[--$j]] = _DM; //#28079 + } //#28079 + if ($_.ccversion == "c") { //#28095 + $_.barcode = $s(~~($_.bits.length / 8)); //#28083 + for (var _DT = 0, _DS = $_.barcode.length - 1; _DT <= _DS; _DT += 1) { //#28088 + $_.i = _DT; //#28085 + var _DW = $geti($_.bits, $_.i * 8, 8); //#28086 + $k[$j++] = 0; //#28086 + for (var _DX = 0, _DY = _DW.length; _DX < _DY; _DX++) { //#28086 + var _Da = $k[--$j]; //#28086 + $k[$j++] = $f(_Da + $get(_DW, _DX)) * 2; //#28086 + } //#28086 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28087 + } //#28087 + delete $_.options["parse"]; //#28089 + $put($_.options, "dontdraw", true); //#28090 + $put($_.options, "ccc", true); //#28091 + $put($_.options, "columns", $_.cccolumns); //#28092 + $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#28093 + $k[$j++] = 'args'; //#28094 + $k[$j++] = $_.barcode; //#28094 + $k[$j++] = $_.options; //#28094 + bwipp_pdf417(); //#28094 + var _Dn = $k[--$j]; //#28094 + $_[$k[--$j]] = _Dn; //#28094 + } //#28094 + $k[$j++] = $_.args; //#28098 + if (!$_.dontdraw) { //#28098 + bwipp_renmatrix(); //#28098 + } //#28098 + $_ = Object.getPrototypeOf($_); //#28100 + $_ = Object.getPrototypeOf($_); //#28102 +} //bwipp_gs1_cc +function bwipp_ean13composite() { + $_ = Object.create($_); //#28134 + $_.dontdraw = false; //#28137 + $_.usematrix = false; //#28138 + $_.parse = false; //#28139 + $_.dontlint = false; //#28140 + $_.lintreqs = true; //#28141 + $k[$j++] = $_; //#28143 + bwipp_processoptions(); //#28143 + $_.options = $k[--$j]; //#28143 + $_.barcode = $k[--$j]; //#28144 + if ($_.dontdraw) { //#28146 + $_.usematrix = true; //#28146 + } //#28146 + $search($_.barcode, "|"); //#28149 + if ($k[--$j]) { //#28154 + $_.linear = $k[--$j]; //#28150 + $j--; //#28151 + $_.comp = $k[--$j]; //#28152 + } else { //#28154 $j--; //#28154 - $_.comp = $k[--$j]; //#28155 - } else { //#28157 - $j--; //#28157 - $k[$j++] = 'bwipp.missingCompositeComponent#28157'; //#28157 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28157 - bwipp_raiseerror(); //#28157 - } //#28157 - $put($_.options, "lintype", "ean13"); //#28160 - $put($_.options, "inkspread", "0"); //#28161 - $put($_.options, "dontdraw", true); //#28162 - $put($_.options, "dontlint", true); //#28163 - var _C = $s($_.comp.length + 18); //#28166 - $puti(_C, 0, "(01)00000000000000"); //#28167 - $puti(_C, 18, $_.comp); //#28168 - $k[$j++] = _C; //#28169 - $k[$j++] = 'ai'; //#28169 - bwipp_gs1process(); //#28169 - $j -= 3; //#28169 - $k[$j++] = $_.linear; //#28172 - $k[$j++] = $_.options; //#28172 - bwipp_upca(); //#28172 - if (!$_.usematrix) { //#28262 - $$.save(); //#28174 - bwipp_renlinear(); //#28176 - $$.rmoveto(-1, 72); //#28179 - $k[$j++] = Infinity; //#28190 - $k[$j++] = Infinity; //#28184 - $k[$j++] = 0; //#28182 - $k[$j++] = 1; //#28182 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#28182 - $k[$j++] = 0; //#28182 - } //#28182 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#28183 - $k[$j++] = 0; //#28183 - } //#28183 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#28184 - $k[$j++] = 0; //#28184 - } //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - var _N = $a(); //#28184 - $k[$j++] = 'ren'; //#28190 - $k[$j++] = bwipp_renmatrix; //#28190 - $k[$j++] = 'pixs'; //#28190 - $k[$j++] = _N; //#28190 - $k[$j++] = 'pixx'; //#28190 - $k[$j++] = 97; //#28190 - $k[$j++] = 'pixy'; //#28190 - $k[$j++] = 3; //#28190 - $k[$j++] = 'height'; //#28190 - $k[$j++] = 6 / 72; //#28190 - $k[$j++] = 'width'; //#28190 - $k[$j++] = 97 / 72; //#28190 - $k[$j++] = 'opt'; //#28190 - $k[$j++] = $_.options; //#28190 - var _P = $d(); //#28190 - $k[$j++] = _P; //#28191 + $k[$j++] = 'bwipp.missingCompositeComponent#28154'; //#28154 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28154 + bwipp_raiseerror(); //#28154 + } //#28154 + $put($_.options, "lintype", "ean13"); //#28157 + $put($_.options, "inkspreadv", 0); //#28158 + $put($_.options, "dontdraw", true); //#28159 + $put($_.options, "dontlint", true); //#28160 + var _C = $s($_.comp.length + 18); //#28163 + $puti(_C, 0, "(01)00000000000000"); //#28164 + $puti(_C, 18, $_.comp); //#28165 + $k[$j++] = _C; //#28166 + $k[$j++] = 'ai'; //#28166 + bwipp_gs1process(); //#28166 + $j -= 3; //#28166 + $k[$j++] = $_.linear; //#28169 + $k[$j++] = $_.options; //#28169 + bwipp_ean13(); //#28169 + if (!$_.usematrix) { //#28259 + $$.save(); //#28171 + bwipp_renlinear(); //#28173 + $$.rmoveto(-1, 72); //#28176 + $k[$j++] = Infinity; //#28176 + $k[$j++] = Infinity; //#28178 + $k[$j++] = 0; //#28179 + $k[$j++] = 1; //#28179 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28179 + $k[$j++] = 0; //#28179 + } //#28179 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28180 + $k[$j++] = 0; //#28180 + } //#28180 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28181 + $k[$j++] = 0; //#28181 + } //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + var _N = $a(); //#28181 + $k[$j++] = 'ren'; //#28187 + $k[$j++] = bwipp_renmatrix; //#28187 + $k[$j++] = 'pixs'; //#28187 + $k[$j++] = _N; //#28187 + $k[$j++] = 'pixx'; //#28187 + $k[$j++] = 97; //#28187 + $k[$j++] = 'pixy'; //#28187 + $k[$j++] = 3; //#28187 + $k[$j++] = 'height'; //#28187 + $k[$j++] = 6 / 72; //#28187 + $k[$j++] = 'width'; //#28187 + $k[$j++] = 97 / 72; //#28187 + $k[$j++] = 'opt'; //#28187 + $k[$j++] = $_.options; //#28187 + var _P = $d(); //#28187 + $k[$j++] = _P; //#28188 + bwipp_renmatrix(); //#28188 + $$.rmoveto(-2, 6); //#28191 + $k[$j++] = $_.comp; //#28191 + $k[$j++] = $_.options; //#28191 + bwipp_gs1_cc(); //#28191 bwipp_renmatrix(); //#28191 - $$.rmoveto(-2, 6); //#28194 - $k[$j++] = $_.comp; //#28194 - $k[$j++] = $_.options; //#28194 - bwipp_gs1_cc(); //#28194 - bwipp_renmatrix(); //#28194 - $$.restore(); //#28196 - } else { //#28262 - $_.linsym = $k[--$j]; //#28198 - $_.sbs = $get($_.linsym, 'sbs'); //#28199 - $_.bhs = $get($_.linsym, 'bhs'); //#28200 - $_.bbs = $get($_.linsym, 'bbs'); //#28201 - $k[$j++] = 'linwidth'; //#28202 - $k[$j++] = 0; //#28202 - $forall($_.sbs, function() { //#28202 - var _a = $k[--$j]; //#28202 - var _b = $k[--$j]; //#28202 - $k[$j++] = $f(_b + $cvi(_a)); //#28202 - }); //#28202 - var _c = $k[--$j]; //#28202 - $_[$k[--$j]] = _c; //#28202 - $k[$j++] = 'compsym'; //#28204 - $k[$j++] = $_.comp; //#28204 - $k[$j++] = $_.options; //#28204 - bwipp_gs1_cc(); //#28204 - var _g = $k[--$j]; //#28204 - $_[$k[--$j]] = _g; //#28204 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28205 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28206 - $k[$j++] = Infinity; //#28208 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28208 - $k[$j++] = 0; //#28208 - } //#28208 - $_.linpad = $a(); //#28208 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28210 - if ($_.diff > 0) { //#28216 - $k[$j++] = Infinity; //#28212 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28212 - $k[$j++] = 0; //#28212 - } //#28212 - $_.ccrpad = $a(); //#28212 - $_.pixx = $f($_.ccpixx + $_.diff); //#28213 - } else { //#28216 - $_.ccrpad = $a(0); //#28215 - $_.pixx = $_.ccpixx; //#28216 - } //#28216 - $k[$j++] = Infinity; //#28244 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28223 - $_.i = _15; //#28221 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28222 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28222 - $aload($_.ccrpad); //#28222 + $$.restore(); //#28193 + } else { //#28259 + $_.linsym = $k[--$j]; //#28195 + $_.sbs = $get($_.linsym, 'sbs'); //#28196 + $_.bhs = $get($_.linsym, 'bhs'); //#28197 + $_.bbs = $get($_.linsym, 'bbs'); //#28198 + $k[$j++] = 'linwidth'; //#28199 + $k[$j++] = 0; //#28199 + $forall($_.sbs, function() { //#28199 + var _a = $k[--$j]; //#28199 + var _b = $k[--$j]; //#28199 + $k[$j++] = $f(_b + $cvi(_a)); //#28199 + }); //#28199 + var _c = $k[--$j]; //#28199 + $_[$k[--$j]] = _c; //#28199 + $k[$j++] = 'compsym'; //#28201 + $k[$j++] = $_.comp; //#28201 + $k[$j++] = $_.options; //#28201 + bwipp_gs1_cc(); //#28201 + var _g = $k[--$j]; //#28201 + $_[$k[--$j]] = _g; //#28201 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28202 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28203 + $k[$j++] = Infinity; //#28205 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28205 + $k[$j++] = 0; //#28205 + } //#28205 + $_.linpad = $a(); //#28205 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28207 + if ($_.diff > 0) { //#28213 + $k[$j++] = Infinity; //#28209 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28209 + $k[$j++] = 0; //#28209 + } //#28209 + $_.ccrpad = $a(); //#28209 + $_.pixx = $f($_.ccpixx + $_.diff); //#28210 + } else { //#28213 + $_.ccrpad = $a(0); //#28212 + $_.pixx = $_.ccpixx; //#28213 + } //#28213 + $k[$j++] = Infinity; //#28216 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28220 + $_.i = _15; //#28218 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28219 + $aload($_.ccrpad); //#28219 + } //#28219 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28221 + $aload($_.linpad); //#28221 + $k[$j++] = 0; //#28221 + $k[$j++] = 1; //#28221 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28221 + $k[$j++] = 0; //#28221 + } //#28221 + $k[$j++] = 1; //#28221 + $k[$j++] = 0; //#28221 + $aload($_.ccrpad); //#28221 + } //#28221 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28222 + $aload($_.linpad); //#28222 + $k[$j++] = 1; //#28222 + $k[$j++] = 0; //#28222 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28222 + $k[$j++] = 0; //#28222 } //#28222 + $k[$j++] = 0; //#28222 + $k[$j++] = 1; //#28222 + $aload($_.ccrpad); //#28222 } //#28222 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28224 - $aload($_.linpad); //#28224 - $k[$j++] = 0; //#28224 - $k[$j++] = 1; //#28224 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#28224 - $k[$j++] = 0; //#28224 - } //#28224 - $k[$j++] = 1; //#28224 - $k[$j++] = 0; //#28224 - $aload($_.ccrpad); //#28224 - } //#28224 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#28225 - $aload($_.linpad); //#28225 - $k[$j++] = 1; //#28225 - $k[$j++] = 0; //#28225 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#28225 - $k[$j++] = 0; //#28225 - } //#28225 - $k[$j++] = 0; //#28225 - $k[$j++] = 1; //#28225 - $aload($_.ccrpad); //#28225 - } //#28225 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#28226 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28223 + $aload($_.linpad); //#28223 + $k[$j++] = 0; //#28223 + $k[$j++] = 1; //#28223 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28223 + $k[$j++] = 0; //#28223 + } //#28223 + $k[$j++] = 1; //#28223 + $k[$j++] = 0; //#28223 + $aload($_.ccrpad); //#28223 + } //#28223 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28242 + $_.y = _1U; //#28225 $aload($_.linpad); //#28226 - $k[$j++] = 0; //#28226 - $k[$j++] = 1; //#28226 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#28226 - $k[$j++] = 0; //#28226 - } //#28226 - $k[$j++] = 1; //#28226 - $k[$j++] = 0; //#28226 - $aload($_.ccrpad); //#28226 - } //#28226 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#28245 - $_.y = _1W; //#28228 - $aload($_.linpad); //#28229 - $k[$j++] = 0; //#28243 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#28243 - $_.i = _1a; //#28232 - if (($_.i % 2) == 0) { //#28241 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#28235 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28238 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#28236 - $k[$j++] = 0; //#28236 - } //#28236 - } else { //#28238 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#28238 - $k[$j++] = 1; //#28238 - } //#28238 + $k[$j++] = 0; //#28240 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28240 + $_.i = _1Y; //#28229 + if (($_.i % 2) == 0) { //#28238 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28232 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28235 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28233 + $k[$j++] = 0; //#28233 + } //#28233 + } else { //#28235 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28235 + $k[$j++] = 1; //#28235 + } //#28235 + } //#28235 + } else { //#28238 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28238 + $k[$j++] = 0; //#28238 } //#28238 - } else { //#28241 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#28241 - $k[$j++] = 0; //#28241 - } //#28241 - } //#28241 + } //#28238 + } //#28238 + if ($_.diff < 0) { //#28241 + $k[$j++] = 0; //#28241 } //#28241 - $k[$j++] = 0; //#28244 - } //#28244 - $_.pixs = $a(); //#28244 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28248 - var _29 = new Map([ + } //#28241 + $_.pixs = $a(); //#28241 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28245 + var _28 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36117,105 +36175,106 @@ function bwipp_upcacomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28256 - $k[$j++] = _29; //#28263 - if (!$_.dontdraw) { //#28263 - $$.save(); //#28260 - bwipp_renmatrix(); //#28261 - $$.restore(); //#28262 - } //#28262 - } //#28262 - $_ = Object.getPrototypeOf($_); //#28266 -} - -function bwipp_upcecomposite() { - $_ = Object.create($_); //#28298 - $_.dontdraw = false; //#28301 - $_.usematrix = false; //#28302 - $_.parse = false; //#28303 - $_.dontlint = false; //#28304 - $_.lintreqs = true; //#28305 - $k[$j++] = $_; //#28307 - bwipp_processoptions(); //#28307 - $_.options = $k[--$j]; //#28307 - $_.barcode = $k[--$j]; //#28308 - if ($_.dontdraw) { //#28310 - $_.usematrix = true; //#28310 - } //#28310 - $search($_.barcode, "|"); //#28313 - if ($k[--$j]) { //#28318 - $_.linear = $k[--$j]; //#28314 + ]); //#28253 + $k[$j++] = _28; //#28260 + if (!$_.dontdraw) { //#28260 + $$.save(); //#28257 + bwipp_renmatrix(); //#28258 + $$.restore(); //#28259 + } //#28259 + } //#28259 + $_ = Object.getPrototypeOf($_); //#28263 +} //bwipp_ean13composite +function bwipp_ean8composite() { + $_ = Object.create($_); //#28295 + $_.dontdraw = false; //#28298 + $_.usematrix = false; //#28299 + $_.parse = false; //#28300 + $_.dontlint = false; //#28301 + $_.lintreqs = true; //#28302 + $k[$j++] = $_; //#28304 + bwipp_processoptions(); //#28304 + $_.options = $k[--$j]; //#28304 + $_.barcode = $k[--$j]; //#28305 + if ($_.dontdraw) { //#28307 + $_.usematrix = true; //#28307 + } //#28307 + $search($_.barcode, "|"); //#28310 + if ($k[--$j]) { //#28315 + $_.linear = $k[--$j]; //#28311 + $j--; //#28312 + $_.comp = $k[--$j]; //#28313 + } else { //#28315 $j--; //#28315 - $_.comp = $k[--$j]; //#28316 - } else { //#28318 - $j--; //#28318 - $k[$j++] = 'bwipp.missingCompositeComponent#28318'; //#28318 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28318 - bwipp_raiseerror(); //#28318 - } //#28318 - $put($_.options, "lintype", "upce"); //#28321 - $put($_.options, "inkspread", "0"); //#28322 - $put($_.options, "dontdraw", true); //#28323 - $put($_.options, "dontlint", true); //#28324 - var _C = $s($_.comp.length + 18); //#28327 - $puti(_C, 0, "(01)00000000000000"); //#28328 - $puti(_C, 18, $_.comp); //#28329 - $k[$j++] = _C; //#28330 - $k[$j++] = 'ai'; //#28330 - bwipp_gs1process(); //#28330 - $j -= 3; //#28330 - $k[$j++] = $_.linear; //#28333 - $k[$j++] = $_.options; //#28333 - bwipp_upce(); //#28333 + $k[$j++] = 'bwipp.missingCompositeComponent#28315'; //#28315 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28315 + bwipp_raiseerror(); //#28315 + } //#28315 + $put($_.options, "lintype", "ean8"); //#28319 + $put($_.options, "inkspreadv", 0); //#28320 + $put($_.options, "dontdraw", true); //#28321 + $put($_.options, "dontlint", true); //#28322 + var _C = $s($_.comp.length + 18); //#28325 + $puti(_C, 0, "(01)00000000000000"); //#28326 + $puti(_C, 18, $_.comp); //#28327 + $k[$j++] = _C; //#28328 + $k[$j++] = 'ai'; //#28328 + bwipp_gs1process(); //#28328 + $j -= 3; //#28328 + $k[$j++] = $_.linear; //#28331 + $k[$j++] = $_.options; //#28331 + bwipp_ean8(); //#28331 if (!$_.usematrix) { //#28423 - $$.save(); //#28335 - bwipp_renlinear(); //#28337 - $$.rmoveto(-1, 72); //#28340 - $k[$j++] = Infinity; //#28351 - $k[$j++] = Infinity; //#28345 + $$.save(); //#28333 + bwipp_renlinear(); //#28335 + $$.rmoveto(-1, 72); //#28338 + $k[$j++] = Infinity; //#28338 + $k[$j++] = Infinity; //#28340 + $k[$j++] = 0; //#28341 + $k[$j++] = 1; //#28341 + for (var _H = 0, _I = 65; _H < _I; _H++) { //#28341 + $k[$j++] = 0; //#28341 + } //#28341 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + for (var _J = 0, _K = 65; _J < _K; _J++) { //#28342 + $k[$j++] = 0; //#28342 + } //#28342 + $k[$j++] = 0; //#28343 + $k[$j++] = 1; //#28343 $k[$j++] = 0; //#28343 $k[$j++] = 1; //#28343 - for (var _H = 0, _I = 49; _H < _I; _H++) { //#28343 + for (var _L = 0, _M = 65; _L < _M; _L++) { //#28343 $k[$j++] = 0; //#28343 } //#28343 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - for (var _J = 0, _K = 49; _J < _K; _J++) { //#28344 - $k[$j++] = 0; //#28344 - } //#28344 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - for (var _L = 0, _M = 49; _L < _M; _L++) { //#28345 - $k[$j++] = 0; //#28345 - } //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - var _N = $a(); //#28345 - $k[$j++] = 'ren'; //#28351 - $k[$j++] = bwipp_renmatrix; //#28351 - $k[$j++] = 'pixs'; //#28351 - $k[$j++] = _N; //#28351 - $k[$j++] = 'pixx'; //#28351 - $k[$j++] = 53; //#28351 - $k[$j++] = 'pixy'; //#28351 - $k[$j++] = 3; //#28351 - $k[$j++] = 'height'; //#28351 - $k[$j++] = 6 / 72; //#28351 - $k[$j++] = 'width'; //#28351 - $k[$j++] = 53 / 72; //#28351 - $k[$j++] = 'opt'; //#28351 - $k[$j++] = $_.options; //#28351 - var _P = $d(); //#28351 - $k[$j++] = _P; //#28352 - bwipp_renmatrix(); //#28352 - $$.rmoveto(-2, 6); //#28355 - $k[$j++] = $_.comp; //#28355 - $k[$j++] = $_.options; //#28355 - bwipp_gs1_cc(); //#28355 + $k[$j++] = 1; //#28343 + $k[$j++] = 0; //#28343 + var _N = $a(); //#28343 + $k[$j++] = 'ren'; //#28349 + $k[$j++] = bwipp_renmatrix; //#28349 + $k[$j++] = 'pixs'; //#28349 + $k[$j++] = _N; //#28349 + $k[$j++] = 'pixx'; //#28349 + $k[$j++] = 69; //#28349 + $k[$j++] = 'pixy'; //#28349 + $k[$j++] = 3; //#28349 + $k[$j++] = 'height'; //#28349 + $k[$j++] = 6 / 72; //#28349 + $k[$j++] = 'width'; //#28349 + $k[$j++] = 69 / 72; //#28349 + $k[$j++] = 'opt'; //#28349 + $k[$j++] = $_.options; //#28349 + var _P = $d(); //#28349 + $k[$j++] = _P; //#28350 + bwipp_renmatrix(); //#28350 + $k[$j++] = $_.comp; //#28353 + $k[$j++] = $_.options; //#28353 + bwipp_gs1_cc(); //#28353 + var _S = $k[--$j]; //#28354 + $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28354 + $k[$j++] = _S; //#28355 bwipp_renmatrix(); //#28355 $$.restore(); //#28357 } else { //#28423 @@ -36226,29 +36285,30 @@ function bwipp_upcecomposite() { $k[$j++] = 'linwidth'; //#28363 $k[$j++] = 0; //#28363 $forall($_.sbs, function() { //#28363 - var _a = $k[--$j]; //#28363 - var _b = $k[--$j]; //#28363 - $k[$j++] = $f(_b + $cvi(_a)); //#28363 + var _c = $k[--$j]; //#28363 + var _d = $k[--$j]; //#28363 + $k[$j++] = $f(_d + $cvi(_c)); //#28363 }); //#28363 - var _c = $k[--$j]; //#28363 - $_[$k[--$j]] = _c; //#28363 + var _e = $k[--$j]; //#28363 + $_[$k[--$j]] = _e; //#28363 + var _g = $_.comp; //#28365 $k[$j++] = 'compsym'; //#28365 - $k[$j++] = $_.comp; //#28365 + $k[$j++] = _g; //#28365 $k[$j++] = $_.options; //#28365 bwipp_gs1_cc(); //#28365 - var _g = $k[--$j]; //#28365 - $_[$k[--$j]] = _g; //#28365 + var _i = $k[--$j]; //#28365 + $_[$k[--$j]] = _i; //#28365 $_.ccpixs = $get($_.compsym, 'pixs'); //#28366 $_.ccpixx = $get($_.compsym, 'pixx'); //#28367 $k[$j++] = Infinity; //#28369 - for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28369 + for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28369 $k[$j++] = 0; //#28369 } //#28369 $_.linpad = $a(); //#28369 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28371 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28371 if ($_.diff > 0) { //#28377 $k[$j++] = Infinity; //#28373 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28373 + for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28373 $k[$j++] = 0; //#28373 } //#28373 $_.ccrpad = $a(); //#28373 @@ -36257,19 +36317,17 @@ function bwipp_upcecomposite() { $_.ccrpad = $a(0); //#28376 $_.pixx = $_.ccpixx; //#28377 } //#28377 - $k[$j++] = Infinity; //#28405 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28384 - $_.i = _15; //#28382 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28383 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 - $aload($_.ccrpad); //#28383 - } //#28383 + $k[$j++] = Infinity; //#28380 + for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28384 + $_.i = _17; //#28382 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 + $aload($_.ccrpad); //#28383 } //#28383 for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28385 $aload($_.linpad); //#28385 $k[$j++] = 0; //#28385 $k[$j++] = 1; //#28385 - for (var _1H = 0, _1I = 49; _1H < _1I; _1H++) { //#28385 + for (var _1H = 0, _1I = 65; _1H < _1I; _1H++) { //#28385 $k[$j++] = 0; //#28385 } //#28385 $k[$j++] = 1; //#28385 @@ -36280,7 +36338,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28386 $k[$j++] = 1; //#28386 $k[$j++] = 0; //#28386 - for (var _1N = 0, _1O = 49; _1N < _1O; _1N++) { //#28386 + for (var _1N = 0, _1O = 65; _1N < _1O; _1N++) { //#28386 $k[$j++] = 0; //#28386 } //#28386 $k[$j++] = 0; //#28386 @@ -36291,7 +36349,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28387 $k[$j++] = 0; //#28387 $k[$j++] = 1; //#28387 - for (var _1T = 0, _1U = 49; _1T < _1U; _1T++) { //#28387 + for (var _1T = 0, _1U = 65; _1T < _1U; _1T++) { //#28387 $k[$j++] = 0; //#28387 } //#28387 $k[$j++] = 1; //#28387 @@ -36321,11 +36379,13 @@ function bwipp_upcecomposite() { } //#28402 } //#28402 } //#28402 - $k[$j++] = 0; //#28405 + if ($_.diff < 0) { //#28405 + $k[$j++] = 0; //#28405 + } //#28405 } //#28405 $_.pixs = $a(); //#28405 $_.pixy = ~~($_.pixs.length / $_.pixx); //#28409 - var _29 = new Map([ + var _2A = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36334,7 +36394,7 @@ function bwipp_upcecomposite() { ["width", $_.pixx / 72], ["opt", $_.options] ]); //#28417 - $k[$j++] = _29; //#28424 + $k[$j++] = _2A; //#28424 if (!$_.dontdraw) { //#28424 $$.save(); //#28421 bwipp_renmatrix(); //#28422 @@ -36342,9 +36402,8 @@ function bwipp_upcecomposite() { } //#28423 } //#28423 $_ = Object.getPrototypeOf($_); //#28427 -} - -function bwipp_databaromnicomposite() { +} //bwipp_ean8composite +function bwipp_upcacomposite() { $_ = Object.create($_); //#28459 $_.dontdraw = false; //#28462 $_.usematrix = false; //#28463 @@ -36369,87 +36428,517 @@ function bwipp_databaromnicomposite() { $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28479 bwipp_raiseerror(); //#28479 } //#28479 - if (!$_.usematrix) { //#28482 - $$.save(); //#28482 - } //#28482 - $put($_.options, "lintype", "databaromni"); //#28484 - $put($_.options, "linkage", true); //#28485 - $put($_.options, "inkspread", "0"); //#28486 - $put($_.options, "dontdraw", true); //#28487 - $put($_.options, "dontlint", true); //#28488 - var _F = $s($_.linear.length + $_.comp.length); //#28491 - $puti(_F, 0, $_.linear); //#28492 - $puti(_F, $_.linear.length, $_.comp); //#28493 - $k[$j++] = _F; //#28494 - $k[$j++] = 'ai'; //#28494 - bwipp_gs1process(); //#28494 - $j -= 3; //#28494 - $k[$j++] = $_.linear; //#28497 - $k[$j++] = $_.options; //#28497 - bwipp_databaromni(); //#28497 - var _L = $k[--$j]; //#28498 - $_.linsbs = $get(_L, "sbs"); //#28498 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28499 - $k[$j++] = _L; //#28500 - if (!$_.usematrix) { //#28500 - bwipp_renlinear(); //#28500 - } else { //#28500 - $j--; //#28500 - } //#28500 + $put($_.options, "lintype", "ean13"); //#28482 + $put($_.options, "inkspreadv", 0); //#28483 + $put($_.options, "dontdraw", true); //#28484 + $put($_.options, "dontlint", true); //#28485 + var _C = $s($_.comp.length + 18); //#28488 + $puti(_C, 0, "(01)00000000000000"); //#28489 + $puti(_C, 18, $_.comp); //#28490 + $k[$j++] = _C; //#28491 + $k[$j++] = 'ai'; //#28491 + bwipp_gs1process(); //#28491 + $j -= 3; //#28491 + $k[$j++] = $_.linear; //#28494 + $k[$j++] = $_.options; //#28494 + bwipp_upca(); //#28494 + if (!$_.usematrix) { //#28584 + $$.save(); //#28496 + bwipp_renlinear(); //#28498 + $$.rmoveto(-1, 72); //#28501 + $k[$j++] = Infinity; //#28501 + $k[$j++] = Infinity; //#28503 + $k[$j++] = 0; //#28504 + $k[$j++] = 1; //#28504 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28504 + $k[$j++] = 0; //#28504 + } //#28504 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28505 + $k[$j++] = 0; //#28505 + } //#28505 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28506 + $k[$j++] = 0; //#28506 + } //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + var _N = $a(); //#28506 + $k[$j++] = 'ren'; //#28512 + $k[$j++] = bwipp_renmatrix; //#28512 + $k[$j++] = 'pixs'; //#28512 + $k[$j++] = _N; //#28512 + $k[$j++] = 'pixx'; //#28512 + $k[$j++] = 97; //#28512 + $k[$j++] = 'pixy'; //#28512 + $k[$j++] = 3; //#28512 + $k[$j++] = 'height'; //#28512 + $k[$j++] = 6 / 72; //#28512 + $k[$j++] = 'width'; //#28512 + $k[$j++] = 97 / 72; //#28512 + $k[$j++] = 'opt'; //#28512 + $k[$j++] = $_.options; //#28512 + var _P = $d(); //#28512 + $k[$j++] = _P; //#28513 + bwipp_renmatrix(); //#28513 + $$.rmoveto(-2, 6); //#28516 + $k[$j++] = $_.comp; //#28516 + $k[$j++] = $_.options; //#28516 + bwipp_gs1_cc(); //#28516 + bwipp_renmatrix(); //#28516 + $$.restore(); //#28518 + } else { //#28584 + $_.linsym = $k[--$j]; //#28520 + $_.sbs = $get($_.linsym, 'sbs'); //#28521 + $_.bhs = $get($_.linsym, 'bhs'); //#28522 + $_.bbs = $get($_.linsym, 'bbs'); //#28523 + $k[$j++] = 'linwidth'; //#28524 + $k[$j++] = 0; //#28524 + $forall($_.sbs, function() { //#28524 + var _a = $k[--$j]; //#28524 + var _b = $k[--$j]; //#28524 + $k[$j++] = $f(_b + $cvi(_a)); //#28524 + }); //#28524 + var _c = $k[--$j]; //#28524 + $_[$k[--$j]] = _c; //#28524 + $k[$j++] = 'compsym'; //#28526 + $k[$j++] = $_.comp; //#28526 + $k[$j++] = $_.options; //#28526 + bwipp_gs1_cc(); //#28526 + var _g = $k[--$j]; //#28526 + $_[$k[--$j]] = _g; //#28526 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28527 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28528 + $k[$j++] = Infinity; //#28530 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28530 + $k[$j++] = 0; //#28530 + } //#28530 + $_.linpad = $a(); //#28530 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28532 + if ($_.diff > 0) { //#28538 + $k[$j++] = Infinity; //#28534 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28534 + $k[$j++] = 0; //#28534 + } //#28534 + $_.ccrpad = $a(); //#28534 + $_.pixx = $f($_.ccpixx + $_.diff); //#28535 + } else { //#28538 + $_.ccrpad = $a(0); //#28537 + $_.pixx = $_.ccpixx; //#28538 + } //#28538 + $k[$j++] = Infinity; //#28541 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28545 + $_.i = _15; //#28543 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28544 + $aload($_.ccrpad); //#28544 + } //#28544 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28546 + $aload($_.linpad); //#28546 + $k[$j++] = 0; //#28546 + $k[$j++] = 1; //#28546 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28546 + $k[$j++] = 0; //#28546 + } //#28546 + $k[$j++] = 1; //#28546 + $k[$j++] = 0; //#28546 + $aload($_.ccrpad); //#28546 + } //#28546 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28547 + $aload($_.linpad); //#28547 + $k[$j++] = 1; //#28547 + $k[$j++] = 0; //#28547 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28547 + $k[$j++] = 0; //#28547 + } //#28547 + $k[$j++] = 0; //#28547 + $k[$j++] = 1; //#28547 + $aload($_.ccrpad); //#28547 + } //#28547 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28548 + $aload($_.linpad); //#28548 + $k[$j++] = 0; //#28548 + $k[$j++] = 1; //#28548 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28548 + $k[$j++] = 0; //#28548 + } //#28548 + $k[$j++] = 1; //#28548 + $k[$j++] = 0; //#28548 + $aload($_.ccrpad); //#28548 + } //#28548 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28567 + $_.y = _1U; //#28550 + $aload($_.linpad); //#28551 + $k[$j++] = 0; //#28565 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28565 + $_.i = _1Y; //#28554 + if (($_.i % 2) == 0) { //#28563 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28557 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28560 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28558 + $k[$j++] = 0; //#28558 + } //#28558 + } else { //#28560 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28560 + $k[$j++] = 1; //#28560 + } //#28560 + } //#28560 + } else { //#28563 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28563 + $k[$j++] = 0; //#28563 + } //#28563 + } //#28563 + } //#28563 + if ($_.diff < 0) { //#28566 + $k[$j++] = 0; //#28566 + } //#28566 + } //#28566 + $_.pixs = $a(); //#28566 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28570 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28578 + $k[$j++] = _28; //#28585 + if (!$_.dontdraw) { //#28585 + $$.save(); //#28582 + bwipp_renmatrix(); //#28583 + $$.restore(); //#28584 + } //#28584 + } //#28584 + $_ = Object.getPrototypeOf($_); //#28588 +} //bwipp_upcacomposite +function bwipp_upcecomposite() { + $_ = Object.create($_); //#28620 + $_.dontdraw = false; //#28623 + $_.usematrix = false; //#28624 + $_.parse = false; //#28625 + $_.dontlint = false; //#28626 + $_.lintreqs = true; //#28627 + $k[$j++] = $_; //#28629 + bwipp_processoptions(); //#28629 + $_.options = $k[--$j]; //#28629 + $_.barcode = $k[--$j]; //#28630 + if ($_.dontdraw) { //#28632 + $_.usematrix = true; //#28632 + } //#28632 + $search($_.barcode, "|"); //#28635 + if ($k[--$j]) { //#28640 + $_.linear = $k[--$j]; //#28636 + $j--; //#28637 + $_.comp = $k[--$j]; //#28638 + } else { //#28640 + $j--; //#28640 + $k[$j++] = 'bwipp.missingCompositeComponent#28640'; //#28640 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28640 + bwipp_raiseerror(); //#28640 + } //#28640 + $put($_.options, "lintype", "upce"); //#28643 + $put($_.options, "inkspreadv", 0); //#28644 + $put($_.options, "dontdraw", true); //#28645 + $put($_.options, "dontlint", true); //#28646 + var _C = $s($_.comp.length + 18); //#28649 + $puti(_C, 0, "(01)00000000000000"); //#28650 + $puti(_C, 18, $_.comp); //#28651 + $k[$j++] = _C; //#28652 + $k[$j++] = 'ai'; //#28652 + bwipp_gs1process(); //#28652 + $j -= 3; //#28652 + $k[$j++] = $_.linear; //#28655 + $k[$j++] = $_.options; //#28655 + bwipp_upce(); //#28655 + if (!$_.usematrix) { //#28745 + $$.save(); //#28657 + bwipp_renlinear(); //#28659 + $$.rmoveto(-1, 72); //#28662 + $k[$j++] = Infinity; //#28662 + $k[$j++] = Infinity; //#28664 + $k[$j++] = 0; //#28665 + $k[$j++] = 1; //#28665 + for (var _H = 0, _I = 49; _H < _I; _H++) { //#28665 + $k[$j++] = 0; //#28665 + } //#28665 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + for (var _J = 0, _K = 49; _J < _K; _J++) { //#28666 + $k[$j++] = 0; //#28666 + } //#28666 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + for (var _L = 0, _M = 49; _L < _M; _L++) { //#28667 + $k[$j++] = 0; //#28667 + } //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + var _N = $a(); //#28667 + $k[$j++] = 'ren'; //#28673 + $k[$j++] = bwipp_renmatrix; //#28673 + $k[$j++] = 'pixs'; //#28673 + $k[$j++] = _N; //#28673 + $k[$j++] = 'pixx'; //#28673 + $k[$j++] = 53; //#28673 + $k[$j++] = 'pixy'; //#28673 + $k[$j++] = 3; //#28673 + $k[$j++] = 'height'; //#28673 + $k[$j++] = 6 / 72; //#28673 + $k[$j++] = 'width'; //#28673 + $k[$j++] = 53 / 72; //#28673 + $k[$j++] = 'opt'; //#28673 + $k[$j++] = $_.options; //#28673 + var _P = $d(); //#28673 + $k[$j++] = _P; //#28674 + bwipp_renmatrix(); //#28674 + $$.rmoveto(-2, 6); //#28677 + $k[$j++] = $_.comp; //#28677 + $k[$j++] = $_.options; //#28677 + bwipp_gs1_cc(); //#28677 + bwipp_renmatrix(); //#28677 + $$.restore(); //#28679 + } else { //#28745 + $_.linsym = $k[--$j]; //#28681 + $_.sbs = $get($_.linsym, 'sbs'); //#28682 + $_.bhs = $get($_.linsym, 'bhs'); //#28683 + $_.bbs = $get($_.linsym, 'bbs'); //#28684 + $k[$j++] = 'linwidth'; //#28685 + $k[$j++] = 0; //#28685 + $forall($_.sbs, function() { //#28685 + var _a = $k[--$j]; //#28685 + var _b = $k[--$j]; //#28685 + $k[$j++] = $f(_b + $cvi(_a)); //#28685 + }); //#28685 + var _c = $k[--$j]; //#28685 + $_[$k[--$j]] = _c; //#28685 + $k[$j++] = 'compsym'; //#28687 + $k[$j++] = $_.comp; //#28687 + $k[$j++] = $_.options; //#28687 + bwipp_gs1_cc(); //#28687 + var _g = $k[--$j]; //#28687 + $_[$k[--$j]] = _g; //#28687 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28688 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28689 + $k[$j++] = Infinity; //#28691 + for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28691 + $k[$j++] = 0; //#28691 + } //#28691 + $_.linpad = $a(); //#28691 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28693 + if ($_.diff > 0) { //#28699 + $k[$j++] = Infinity; //#28695 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28695 + $k[$j++] = 0; //#28695 + } //#28695 + $_.ccrpad = $a(); //#28695 + $_.pixx = $f($_.ccpixx + $_.diff); //#28696 + } else { //#28699 + $_.ccrpad = $a(0); //#28698 + $_.pixx = $_.ccpixx; //#28699 + } //#28699 + $k[$j++] = Infinity; //#28702 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28706 + $_.i = _15; //#28704 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28705 + $aload($_.ccrpad); //#28705 + } //#28705 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28707 + $aload($_.linpad); //#28707 + $k[$j++] = 0; //#28707 + $k[$j++] = 1; //#28707 + for (var _1F = 0, _1G = 49; _1F < _1G; _1F++) { //#28707 + $k[$j++] = 0; //#28707 + } //#28707 + $k[$j++] = 1; //#28707 + $k[$j++] = 0; //#28707 + $aload($_.ccrpad); //#28707 + } //#28707 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28708 + $aload($_.linpad); //#28708 + $k[$j++] = 1; //#28708 + $k[$j++] = 0; //#28708 + for (var _1L = 0, _1M = 49; _1L < _1M; _1L++) { //#28708 + $k[$j++] = 0; //#28708 + } //#28708 + $k[$j++] = 0; //#28708 + $k[$j++] = 1; //#28708 + $aload($_.ccrpad); //#28708 + } //#28708 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28709 + $aload($_.linpad); //#28709 + $k[$j++] = 0; //#28709 + $k[$j++] = 1; //#28709 + for (var _1R = 0, _1S = 49; _1R < _1S; _1R++) { //#28709 + $k[$j++] = 0; //#28709 + } //#28709 + $k[$j++] = 1; //#28709 + $k[$j++] = 0; //#28709 + $aload($_.ccrpad); //#28709 + } //#28709 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28728 + $_.y = _1U; //#28711 + $aload($_.linpad); //#28712 + $k[$j++] = 0; //#28726 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28726 + $_.i = _1Y; //#28715 + if (($_.i % 2) == 0) { //#28724 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28718 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28721 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28719 + $k[$j++] = 0; //#28719 + } //#28719 + } else { //#28721 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28721 + $k[$j++] = 1; //#28721 + } //#28721 + } //#28721 + } else { //#28724 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28724 + $k[$j++] = 0; //#28724 + } //#28724 + } //#28724 + } //#28724 + if ($_.diff < 0) { //#28727 + $k[$j++] = 0; //#28727 + } //#28727 + } //#28727 + $_.pixs = $a(); //#28727 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28731 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28739 + $k[$j++] = _28; //#28746 + if (!$_.dontdraw) { //#28746 + $$.save(); //#28743 + bwipp_renmatrix(); //#28744 + $$.restore(); //#28745 + } //#28745 + } //#28745 + $_ = Object.getPrototypeOf($_); //#28749 +} //bwipp_upcecomposite +function bwipp_databaromnicomposite() { + $_ = Object.create($_); //#28781 + $_.dontdraw = false; //#28784 + $_.usematrix = false; //#28785 + $_.parse = false; //#28786 + $_.dontlint = false; //#28787 + $_.lintreqs = true; //#28788 + $k[$j++] = $_; //#28790 + bwipp_processoptions(); //#28790 + $_.options = $k[--$j]; //#28790 + $_.barcode = $k[--$j]; //#28791 + if ($_.dontdraw) { //#28793 + $_.usematrix = true; //#28793 + } //#28793 + $search($_.barcode, "|"); //#28796 + if ($k[--$j]) { //#28801 + $_.linear = $k[--$j]; //#28797 + $j--; //#28798 + $_.comp = $k[--$j]; //#28799 + } else { //#28801 + $j--; //#28801 + $k[$j++] = 'bwipp.missingCompositeComponent#28801'; //#28801 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28801 + bwipp_raiseerror(); //#28801 + } //#28801 + if (!$_.usematrix) { //#28804 + $$.save(); //#28804 + } //#28804 + $put($_.options, "lintype", "databaromni"); //#28806 + $put($_.options, "linkage", true); //#28807 + $put($_.options, "inkspreadv", 0); //#28808 + $put($_.options, "dontdraw", true); //#28809 + $put($_.options, "dontlint", true); //#28810 + var _F = $s($_.linear.length + $_.comp.length); //#28813 + $puti(_F, 0, $_.linear); //#28814 + $puti(_F, $_.linear.length, $_.comp); //#28815 + $k[$j++] = _F; //#28816 + $k[$j++] = 'ai'; //#28816 + bwipp_gs1process(); //#28816 + $j -= 3; //#28816 + $k[$j++] = $_.linear; //#28819 + $k[$j++] = $_.options; //#28819 + bwipp_databaromni(); //#28819 + var _L = $k[--$j]; //#28820 + $_.linsbs = $get(_L, "sbs"); //#28820 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28821 + $k[$j++] = _L; //#28822 + if (!$_.usematrix) { //#28822 + bwipp_renlinear(); //#28822 + } else { //#28822 + $j--; //#28822 + } //#28822 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28504 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28517 - $_.i = _U; //#28506 - if ($get($_.bot, $_.i) == 0) { //#28514 - if ($get($_.bot, $_.i - 1) == 1) { //#28511 - $k[$j++] = 1; //#28509 - } else { //#28511 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28511 - $k[$j++] = _e; //#28511 - } //#28511 - } else { //#28514 - $k[$j++] = 0; //#28514 - } //#28514 - $put($_.sep, $_.i, $k[--$j]); //#28516 - } //#28516 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28518 - $k[$j++] = true; //#28519 - for (var _j = 0; _j <= 12; _j += 1) { //#28519 - var _p = $k[--$j]; //#28519 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28519 - } //#28519 - if ($k[--$j]) { //#28522 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28521 - } //#28521 - }; //#28521 - $k[$j++] = Infinity; //#28524 - $k[$j++] = 0; //#28525 - $forall($_.linsbs, function() { //#28525 - var _v = $k[--$j]; //#28525 - var _w = $k[--$j]; //#28525 - var _x = (_w == 1) ? 0 : 1; //#28525 - $k[$j++] = _w; //#28525 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28525 - $k[$j++] = _x //#28525 - } //#28525 - }); //#28525 - $astore($a($counttomark() - 1)); //#28526 - $_.bot = $k[--$j]; //#28526 - $j -= 2; //#28526 - $k[$j++] = Infinity; //#28527 - $forall($_.bot, function() { //#28527 - var _14 = $k[--$j]; //#28527 - $k[$j++] = $f(1 - _14); //#28527 - }); //#28527 - $_.sep = $a(); //#28527 - $puti($_.sep, 0, $a([0, 0, 0])); //#28528 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28529 - $k[$j++] = 18; //#28530 - $_.sepfinder(); //#28530 - $k[$j++] = 64; //#28530 - $_.sepfinder(); //#28530 - if (!$_.usematrix) { //#28581 - $$.rmoveto(0, $_.linheight); //#28532 + $_.fp = $k[--$j]; //#28826 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28839 + $_.i = _U; //#28828 + if ($get($_.bot, $_.i) == 0) { //#28836 + if ($get($_.bot, $_.i - 1) == 1) { //#28833 + $k[$j++] = 1; //#28831 + } else { //#28833 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28833 + $k[$j++] = _e; //#28833 + } //#28833 + } else { //#28836 + $k[$j++] = 0; //#28836 + } //#28836 + $put($_.sep, $_.i, $k[--$j]); //#28838 + } //#28838 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28840 + $k[$j++] = true; //#28841 + for (var _j = 0; _j <= 12; _j += 1) { //#28841 + var _p = $k[--$j]; //#28841 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28841 + } //#28841 + if ($k[--$j]) { //#28844 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28843 + } //#28843 + }; //#28843 + $k[$j++] = Infinity; //#28846 + $k[$j++] = 0; //#28847 + $forall($_.linsbs, function() { //#28847 + var _v = $k[--$j]; //#28847 + var _w = $k[--$j]; //#28847 + var _x = (_w == 1) ? 0 : 1; //#28847 + $k[$j++] = _w; //#28847 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#28847 + $k[$j++] = _x //#28847 + } //#28847 + }); //#28847 + $astore($a($counttomark() - 1)); //#28848 + $_.bot = $k[--$j]; //#28848 + $j -= 2; //#28848 + $k[$j++] = Infinity; //#28849 + $forall($_.bot, function() { //#28849 + var _14 = $k[--$j]; //#28849 + $k[$j++] = $f(1 - _14); //#28849 + }); //#28849 + $_.sep = $a(); //#28849 + $puti($_.sep, 0, $a([0, 0, 0])); //#28850 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28851 + $k[$j++] = 18; //#28852 + $_.sepfinder(); //#28852 + $k[$j++] = 64; //#28852 + $_.sepfinder(); //#28852 + if (!$_.usematrix) { //#28903 + $$.rmoveto(0, $_.linheight); //#28854 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36458,65 +36947,63 @@ function bwipp_databaromnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28539 - $k[$j++] = _1H; //#28540 - bwipp_renmatrix(); //#28540 - $$.rmoveto(-5, 1); //#28543 - $k[$j++] = $_.comp; //#28543 - $k[$j++] = $_.options; //#28543 - bwipp_gs1_cc(); //#28543 - bwipp_renmatrix(); //#28543 - $$.restore(); //#28545 - } else { //#28581 - $k[$j++] = 'compsym'; //#28547 - $k[$j++] = $_.comp; //#28547 - $k[$j++] = $_.options; //#28547 - bwipp_gs1_cc(); //#28547 - var _1M = $k[--$j]; //#28547 - $_[$k[--$j]] = _1M; //#28547 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28548 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28549 - $k[$j++] = Infinity; //#28552 - $k[$j++] = 0; //#28552 - $forall($_.linsbs, function() { //#28552 - var _1T = $k[--$j]; //#28552 - var _1U = $k[--$j]; //#28552 - var _1V = (_1U == 0) ? 1 : 0; //#28552 - $k[$j++] = _1U; //#28552 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28552 - $k[$j++] = _1V //#28552 - } //#28552 - }); //#28552 - $_.linpixs = $a(); //#28552 - $k[$j++] = Infinity; //#28554 - $k[$j++] = 0; //#28554 - $aload($_.sep); //#28554 - $_.sep = $a(); //#28554 - $_.linheight = ~~$_.linheight; //#28556 - $k[$j++] = Infinity; //#28563 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28562 - $_.i = _1f; //#28560 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#28561 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28561 - $k[$j++] = 0; //#28561 - } //#28561 - } //#28561 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.sep); //#28563 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.linpixs); //#28563 - } //#28563 - $_.pixs = $a(); //#28563 - $_.pixx = $f($_.ccpixx + 1); //#28565 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28567 - var _22 = new Map([ + ]); //#28861 + $k[$j++] = _1H; //#28862 + bwipp_renmatrix(); //#28862 + $$.rmoveto(-5, 1); //#28865 + $k[$j++] = $_.comp; //#28865 + $k[$j++] = $_.options; //#28865 + bwipp_gs1_cc(); //#28865 + bwipp_renmatrix(); //#28865 + $$.restore(); //#28867 + } else { //#28903 + $k[$j++] = 'compsym'; //#28869 + $k[$j++] = $_.comp; //#28869 + $k[$j++] = $_.options; //#28869 + bwipp_gs1_cc(); //#28869 + var _1M = $k[--$j]; //#28869 + $_[$k[--$j]] = _1M; //#28869 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28870 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28871 + $k[$j++] = Infinity; //#28873 + $k[$j++] = 0; //#28874 + $forall($_.linsbs, function() { //#28874 + var _1T = $k[--$j]; //#28874 + var _1U = $k[--$j]; //#28874 + var _1V = (_1U == 0) ? 1 : 0; //#28874 + $k[$j++] = _1U; //#28874 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28874 + $k[$j++] = _1V //#28874 + } //#28874 + }); //#28874 + $_.linpixs = $a(); //#28874 + $k[$j++] = Infinity; //#28876 + $k[$j++] = 0; //#28876 + $aload($_.sep); //#28876 + $_.sep = $a(); //#28876 + $_.linheight = ~~$_.linheight; //#28878 + $k[$j++] = Infinity; //#28880 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28884 + $_.i = _1f; //#28882 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28883 + $k[$j++] = 0; //#28883 + } //#28883 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.sep); //#28885 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.linpixs); //#28885 + } //#28885 + $_.pixs = $a(); //#28885 + $_.pixx = $f($_.ccpixx + 1); //#28887 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28889 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36524,107 +37011,106 @@ function bwipp_databaromnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28575 - $k[$j++] = _22; //#28582 - if (!$_.dontdraw) { //#28582 - $$.save(); //#28579 - bwipp_renmatrix(); //#28580 - $$.restore(); //#28581 - } //#28581 - } //#28581 - $_ = Object.getPrototypeOf($_); //#28585 -} - + ]); //#28897 + $k[$j++] = _20; //#28904 + if (!$_.dontdraw) { //#28904 + $$.save(); //#28901 + bwipp_renmatrix(); //#28902 + $$.restore(); //#28903 + } //#28903 + } //#28903 + $_ = Object.getPrototypeOf($_); //#28907 +} //bwipp_databaromnicomposite function bwipp_databarstackedcomposite() { - $_ = Object.create($_); //#28616 - $_.dontdraw = false; //#28619 - $_.usematrix = false; //#28620 - $_.parse = false; //#28621 - $_.dontlint = false; //#28622 - $_.lintreqs = true; //#28623 - $k[$j++] = $_; //#28625 - bwipp_processoptions(); //#28625 - $_.options = $k[--$j]; //#28625 - $_.barcode = $k[--$j]; //#28626 - if ($_.dontdraw) { //#28628 - $_.usematrix = true; //#28628 - } //#28628 - $search($_.barcode, "|"); //#28631 - if ($k[--$j]) { //#28636 - $_.linear = $k[--$j]; //#28632 - $j--; //#28633 - $_.comp = $k[--$j]; //#28634 - } else { //#28636 - $j--; //#28636 - $k[$j++] = 'bwipp.missingCompositeComponent#28636'; //#28636 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28636 - bwipp_raiseerror(); //#28636 - } //#28636 - if (!$_.usematrix) { //#28639 - $$.save(); //#28639 - } //#28639 - $put($_.options, "lintype", "databarstacked"); //#28641 - $put($_.options, "linkage", true); //#28642 - $put($_.options, "inkspread", "0"); //#28643 - $put($_.options, "dontdraw", true); //#28644 - $put($_.options, "dontlint", true); //#28645 - var _F = $s($_.linear.length + $_.comp.length); //#28648 - $puti(_F, 0, $_.linear); //#28649 - $puti(_F, $_.linear.length, $_.comp); //#28650 - $k[$j++] = _F; //#28651 - $k[$j++] = 'ai'; //#28651 - bwipp_gs1process(); //#28651 - $j -= 3; //#28651 - $k[$j++] = $_.linear; //#28654 - $k[$j++] = $_.options; //#28654 - bwipp_databarstacked(); //#28654 - var _L = $k[--$j]; //#28655 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28655 - $_.linheight = $get(_L, "pixy"); //#28656 - $k[$j++] = _L; //#28657 - if (!$_.usematrix) { //#28657 - bwipp_renmatrix(); //#28657 - } else { //#28657 - $_.linpixs = $get($k[--$j], 'pixs'); //#28657 - } //#28657 + $_ = Object.create($_); //#28938 + $_.dontdraw = false; //#28941 + $_.usematrix = false; //#28942 + $_.parse = false; //#28943 + $_.dontlint = false; //#28944 + $_.lintreqs = true; //#28945 + $k[$j++] = $_; //#28947 + bwipp_processoptions(); //#28947 + $_.options = $k[--$j]; //#28947 + $_.barcode = $k[--$j]; //#28948 + if ($_.dontdraw) { //#28950 + $_.usematrix = true; //#28950 + } //#28950 + $search($_.barcode, "|"); //#28953 + if ($k[--$j]) { //#28958 + $_.linear = $k[--$j]; //#28954 + $j--; //#28955 + $_.comp = $k[--$j]; //#28956 + } else { //#28958 + $j--; //#28958 + $k[$j++] = 'bwipp.missingCompositeComponent#28958'; //#28958 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28958 + bwipp_raiseerror(); //#28958 + } //#28958 + if (!$_.usematrix) { //#28961 + $$.save(); //#28961 + } //#28961 + $put($_.options, "lintype", "databarstacked"); //#28963 + $put($_.options, "linkage", true); //#28964 + $put($_.options, "inkspreadv", 0); //#28965 + $put($_.options, "dontdraw", true); //#28966 + $put($_.options, "dontlint", true); //#28967 + var _F = $s($_.linear.length + $_.comp.length); //#28970 + $puti(_F, 0, $_.linear); //#28971 + $puti(_F, $_.linear.length, $_.comp); //#28972 + $k[$j++] = _F; //#28973 + $k[$j++] = 'ai'; //#28973 + bwipp_gs1process(); //#28973 + $j -= 3; //#28973 + $k[$j++] = $_.linear; //#28976 + $k[$j++] = $_.options; //#28976 + bwipp_databarstacked(); //#28976 + var _L = $k[--$j]; //#28977 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28977 + $_.linheight = $get(_L, "pixy"); //#28978 + $k[$j++] = _L; //#28979 + if (!$_.usematrix) { //#28979 + bwipp_renmatrix(); //#28979 + } else { //#28979 + $_.linpixs = $get($k[--$j], 'pixs'); //#28979 + } //#28979 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28661 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28674 - $_.i = _X; //#28663 - if ($get($_.bot, $_.i) == 0) { //#28671 - if ($get($_.bot, $_.i - 1) == 1) { //#28668 - $k[$j++] = 1; //#28666 - } else { //#28668 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28668 - $k[$j++] = _h; //#28668 - } //#28668 - } else { //#28671 - $k[$j++] = 0; //#28671 - } //#28671 - $put($_.sep, $_.i, $k[--$j]); //#28673 - } //#28673 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28675 - $k[$j++] = true; //#28676 - for (var _m = 0; _m <= 12; _m += 1) { //#28676 - var _s = $k[--$j]; //#28676 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28676 - } //#28676 - if ($k[--$j]) { //#28679 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28678 - } //#28678 - }; //#28678 - $k[$j++] = Infinity; //#28681 - var _x = $_.bot; //#28681 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28681 - $k[$j++] = $f(1 - $get(_x, _y)); //#28681 - } //#28681 - $_.sep = $a(); //#28681 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28682 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28683 - $k[$j++] = 18; //#28684 - $_.sepfinder(); //#28684 - if (!$_.usematrix) { //#28734 - $$.rmoveto(0, $_.linheight); //#28686 + $_.fp = $k[--$j]; //#28983 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28996 + $_.i = _X; //#28985 + if ($get($_.bot, $_.i) == 0) { //#28993 + if ($get($_.bot, $_.i - 1) == 1) { //#28990 + $k[$j++] = 1; //#28988 + } else { //#28990 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28990 + $k[$j++] = _h; //#28990 + } //#28990 + } else { //#28993 + $k[$j++] = 0; //#28993 + } //#28993 + $put($_.sep, $_.i, $k[--$j]); //#28995 + } //#28995 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28997 + $k[$j++] = true; //#28998 + for (var _m = 0; _m <= 12; _m += 1) { //#28998 + var _s = $k[--$j]; //#28998 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28998 + } //#28998 + if ($k[--$j]) { //#29001 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29000 + } //#29000 + }; //#29000 + $k[$j++] = Infinity; //#29003 + var _x = $_.bot; //#29003 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29003 + $k[$j++] = $f(1 - $get(_x, _y)); //#29003 + } //#29003 + $_.sep = $a(); //#29003 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29004 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29005 + $k[$j++] = 18; //#29006 + $_.sepfinder(); //#29006 + if (!$_.usematrix) { //#29056 + $$.rmoveto(0, $_.linheight); //#29008 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36633,54 +37119,52 @@ function bwipp_databarstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28693 - $k[$j++] = _1D; //#28694 - bwipp_renmatrix(); //#28694 - $$.rmoveto(1, 1); //#28697 - $k[$j++] = $_.comp; //#28697 - $k[$j++] = $_.options; //#28697 - bwipp_gs1_cc(); //#28697 - bwipp_renmatrix(); //#28697 - $$.restore(); //#28699 - } else { //#28734 - $k[$j++] = 'compsym'; //#28701 - $k[$j++] = $_.comp; //#28701 - $k[$j++] = $_.options; //#28701 - bwipp_gs1_cc(); //#28701 - var _1I = $k[--$j]; //#28701 - $_[$k[--$j]] = _1I; //#28701 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28702 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28703 - $_.linwidth = $_.sep.length; //#28705 - $k[$j++] = Infinity; //#28715 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28711 - $_.i = _1S; //#28709 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28710 - $k[$j++] = 0; //#28710 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28710 - } //#28710 - } //#28710 - $aload($_.sep); //#28712 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28716 - $_.i = _1e; //#28714 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - } //#28715 - $_.pixs = $a(); //#28715 - $_.pixx = $f($_.ccpixx + 1); //#28718 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28720 - var _1u = new Map([ + ]); //#29015 + $k[$j++] = _1D; //#29016 + bwipp_renmatrix(); //#29016 + $$.rmoveto(1, 1); //#29019 + $k[$j++] = $_.comp; //#29019 + $k[$j++] = $_.options; //#29019 + bwipp_gs1_cc(); //#29019 + bwipp_renmatrix(); //#29019 + $$.restore(); //#29021 + } else { //#29056 + $k[$j++] = 'compsym'; //#29023 + $k[$j++] = $_.comp; //#29023 + $k[$j++] = $_.options; //#29023 + bwipp_gs1_cc(); //#29023 + var _1I = $k[--$j]; //#29023 + $_[$k[--$j]] = _1I; //#29023 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29024 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29025 + $_.linwidth = $_.sep.length; //#29027 + $k[$j++] = Infinity; //#29029 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29033 + $_.i = _1S; //#29031 + $k[$j++] = 0; //#29032 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29032 + } //#29032 + $aload($_.sep); //#29034 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29038 + $_.i = _1c; //#29036 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + } //#29037 + $_.pixs = $a(); //#29037 + $_.pixx = $f($_.ccpixx + 1); //#29040 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29042 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36688,107 +37172,106 @@ function bwipp_databarstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28728 - $k[$j++] = _1u; //#28735 - if (!$_.dontdraw) { //#28735 - $$.save(); //#28732 - bwipp_renmatrix(); //#28733 - $$.restore(); //#28734 - } //#28734 - } //#28734 - $_ = Object.getPrototypeOf($_); //#28738 -} - + ]); //#29050 + $k[$j++] = _1s; //#29057 + if (!$_.dontdraw) { //#29057 + $$.save(); //#29054 + bwipp_renmatrix(); //#29055 + $$.restore(); //#29056 + } //#29056 + } //#29056 + $_ = Object.getPrototypeOf($_); //#29060 +} //bwipp_databarstackedcomposite function bwipp_databarstackedomnicomposite() { - $_ = Object.create($_); //#28769 - $_.dontdraw = false; //#28772 - $_.usematrix = false; //#28773 - $_.parse = false; //#28774 - $_.dontlint = false; //#28775 - $_.lintreqs = true; //#28776 - $k[$j++] = $_; //#28778 - bwipp_processoptions(); //#28778 - $_.options = $k[--$j]; //#28778 - $_.barcode = $k[--$j]; //#28779 - if ($_.dontdraw) { //#28781 - $_.usematrix = true; //#28781 - } //#28781 - $search($_.barcode, "|"); //#28784 - if ($k[--$j]) { //#28789 - $_.linear = $k[--$j]; //#28785 - $j--; //#28786 - $_.comp = $k[--$j]; //#28787 - } else { //#28789 - $j--; //#28789 - $k[$j++] = 'bwipp.missingCompositeComponent#28789'; //#28789 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28789 - bwipp_raiseerror(); //#28789 - } //#28789 - if (!$_.usematrix) { //#28792 - $$.save(); //#28792 - } //#28792 - $put($_.options, "lintype", "databarstackedomni"); //#28794 - $put($_.options, "linkage", true); //#28795 - $put($_.options, "inkspread", "0"); //#28796 - $put($_.options, "dontdraw", true); //#28797 - $put($_.options, "dontlint", true); //#28798 - var _F = $s($_.linear.length + $_.comp.length); //#28801 - $puti(_F, 0, $_.linear); //#28802 - $puti(_F, $_.linear.length, $_.comp); //#28803 - $k[$j++] = _F; //#28804 - $k[$j++] = 'ai'; //#28804 - bwipp_gs1process(); //#28804 - $j -= 3; //#28804 - $k[$j++] = $_.linear; //#28807 - $k[$j++] = $_.options; //#28807 - bwipp_databarstackedomni(); //#28807 - var _L = $k[--$j]; //#28808 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28808 - $_.linheight = $get(_L, "pixy"); //#28809 - $k[$j++] = _L; //#28810 - if (!$_.usematrix) { //#28810 - bwipp_renmatrix(); //#28810 - } else { //#28810 - $_.linpixs = $get($k[--$j], 'pixs'); //#28810 - } //#28810 + $_ = Object.create($_); //#29091 + $_.dontdraw = false; //#29094 + $_.usematrix = false; //#29095 + $_.parse = false; //#29096 + $_.dontlint = false; //#29097 + $_.lintreqs = true; //#29098 + $k[$j++] = $_; //#29100 + bwipp_processoptions(); //#29100 + $_.options = $k[--$j]; //#29100 + $_.barcode = $k[--$j]; //#29101 + if ($_.dontdraw) { //#29103 + $_.usematrix = true; //#29103 + } //#29103 + $search($_.barcode, "|"); //#29106 + if ($k[--$j]) { //#29111 + $_.linear = $k[--$j]; //#29107 + $j--; //#29108 + $_.comp = $k[--$j]; //#29109 + } else { //#29111 + $j--; //#29111 + $k[$j++] = 'bwipp.missingCompositeComponent#29111'; //#29111 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29111 + bwipp_raiseerror(); //#29111 + } //#29111 + if (!$_.usematrix) { //#29114 + $$.save(); //#29114 + } //#29114 + $put($_.options, "lintype", "databarstackedomni"); //#29116 + $put($_.options, "linkage", true); //#29117 + $put($_.options, "inkspreadv", 0); //#29118 + $put($_.options, "dontdraw", true); //#29119 + $put($_.options, "dontlint", true); //#29120 + var _F = $s($_.linear.length + $_.comp.length); //#29123 + $puti(_F, 0, $_.linear); //#29124 + $puti(_F, $_.linear.length, $_.comp); //#29125 + $k[$j++] = _F; //#29126 + $k[$j++] = 'ai'; //#29126 + bwipp_gs1process(); //#29126 + $j -= 3; //#29126 + $k[$j++] = $_.linear; //#29129 + $k[$j++] = $_.options; //#29129 + bwipp_databarstackedomni(); //#29129 + var _L = $k[--$j]; //#29130 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29130 + $_.linheight = $get(_L, "pixy"); //#29131 + $k[$j++] = _L; //#29132 + if (!$_.usematrix) { //#29132 + bwipp_renmatrix(); //#29132 + } else { //#29132 + $_.linpixs = $get($k[--$j], 'pixs'); //#29132 + } //#29132 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28814 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28827 - $_.i = _X; //#28816 - if ($get($_.bot, $_.i) == 0) { //#28824 - if ($get($_.bot, $_.i - 1) == 1) { //#28821 - $k[$j++] = 1; //#28819 - } else { //#28821 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28821 - $k[$j++] = _h; //#28821 - } //#28821 - } else { //#28824 - $k[$j++] = 0; //#28824 - } //#28824 - $put($_.sep, $_.i, $k[--$j]); //#28826 - } //#28826 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28828 - $k[$j++] = true; //#28829 - for (var _m = 0; _m <= 12; _m += 1) { //#28829 - var _s = $k[--$j]; //#28829 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28829 - } //#28829 - if ($k[--$j]) { //#28832 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28831 - } //#28831 - }; //#28831 - $k[$j++] = Infinity; //#28834 - var _x = $_.bot; //#28834 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28834 - $k[$j++] = $f(1 - $get(_x, _y)); //#28834 - } //#28834 - $_.sep = $a(); //#28834 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28835 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28836 - $k[$j++] = 18; //#28837 - $_.sepfinder(); //#28837 - if (!$_.usematrix) { //#28887 - $$.rmoveto(0, $_.linheight); //#28839 + $_.fp = $k[--$j]; //#29136 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29149 + $_.i = _X; //#29138 + if ($get($_.bot, $_.i) == 0) { //#29146 + if ($get($_.bot, $_.i - 1) == 1) { //#29143 + $k[$j++] = 1; //#29141 + } else { //#29143 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29143 + $k[$j++] = _h; //#29143 + } //#29143 + } else { //#29146 + $k[$j++] = 0; //#29146 + } //#29146 + $put($_.sep, $_.i, $k[--$j]); //#29148 + } //#29148 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29150 + $k[$j++] = true; //#29151 + for (var _m = 0; _m <= 12; _m += 1) { //#29151 + var _s = $k[--$j]; //#29151 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#29151 + } //#29151 + if ($k[--$j]) { //#29154 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29153 + } //#29153 + }; //#29153 + $k[$j++] = Infinity; //#29156 + var _x = $_.bot; //#29156 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29156 + $k[$j++] = $f(1 - $get(_x, _y)); //#29156 + } //#29156 + $_.sep = $a(); //#29156 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29157 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29158 + $k[$j++] = 18; //#29159 + $_.sepfinder(); //#29159 + if (!$_.usematrix) { //#29209 + $$.rmoveto(0, $_.linheight); //#29161 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36797,54 +37280,52 @@ function bwipp_databarstackedomnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28846 - $k[$j++] = _1D; //#28847 - bwipp_renmatrix(); //#28847 - $$.rmoveto(1, 1); //#28850 - $k[$j++] = $_.comp; //#28850 - $k[$j++] = $_.options; //#28850 - bwipp_gs1_cc(); //#28850 - bwipp_renmatrix(); //#28850 - $$.restore(); //#28852 - } else { //#28887 - $k[$j++] = 'compsym'; //#28854 - $k[$j++] = $_.comp; //#28854 - $k[$j++] = $_.options; //#28854 - bwipp_gs1_cc(); //#28854 - var _1I = $k[--$j]; //#28854 - $_[$k[--$j]] = _1I; //#28854 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28855 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28856 - $_.linwidth = $_.sep.length; //#28858 - $k[$j++] = Infinity; //#28868 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28864 - $_.i = _1S; //#28862 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28863 - $k[$j++] = 0; //#28863 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28863 - } //#28863 - } //#28863 - $aload($_.sep); //#28865 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28869 - $_.i = _1e; //#28867 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - } //#28868 - $_.pixs = $a(); //#28868 - $_.pixx = $f($_.ccpixx + 1); //#28871 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28873 - var _1u = new Map([ + ]); //#29168 + $k[$j++] = _1D; //#29169 + bwipp_renmatrix(); //#29169 + $$.rmoveto(1, 1); //#29172 + $k[$j++] = $_.comp; //#29172 + $k[$j++] = $_.options; //#29172 + bwipp_gs1_cc(); //#29172 + bwipp_renmatrix(); //#29172 + $$.restore(); //#29174 + } else { //#29209 + $k[$j++] = 'compsym'; //#29176 + $k[$j++] = $_.comp; //#29176 + $k[$j++] = $_.options; //#29176 + bwipp_gs1_cc(); //#29176 + var _1I = $k[--$j]; //#29176 + $_[$k[--$j]] = _1I; //#29176 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29177 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29178 + $_.linwidth = $_.sep.length; //#29180 + $k[$j++] = Infinity; //#29182 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29186 + $_.i = _1S; //#29184 + $k[$j++] = 0; //#29185 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29185 + } //#29185 + $aload($_.sep); //#29187 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29191 + $_.i = _1c; //#29189 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + } //#29190 + $_.pixs = $a(); //#29190 + $_.pixx = $f($_.ccpixx + 1); //#29193 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29195 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36852,123 +37333,122 @@ function bwipp_databarstackedomnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28881 - $k[$j++] = _1u; //#28888 - if (!$_.dontdraw) { //#28888 - $$.save(); //#28885 - bwipp_renmatrix(); //#28886 - $$.restore(); //#28887 - } //#28887 - } //#28887 - $_ = Object.getPrototypeOf($_); //#28891 -} - + ]); //#29203 + $k[$j++] = _1s; //#29210 + if (!$_.dontdraw) { //#29210 + $$.save(); //#29207 + bwipp_renmatrix(); //#29208 + $$.restore(); //#29209 + } //#29209 + } //#29209 + $_ = Object.getPrototypeOf($_); //#29213 +} //bwipp_databarstackedomnicomposite function bwipp_databartruncatedcomposite() { - $_ = Object.create($_); //#28923 - $_.dontdraw = false; //#28926 - $_.usematrix = false; //#28927 - $_.parse = false; //#28928 - $_.dontlint = false; //#28929 - $_.lintreqs = true; //#28930 - $k[$j++] = $_; //#28932 - bwipp_processoptions(); //#28932 - $_.options = $k[--$j]; //#28932 - $_.barcode = $k[--$j]; //#28933 - if ($_.dontdraw) { //#28935 - $_.usematrix = true; //#28935 - } //#28935 - $search($_.barcode, "|"); //#28938 - if ($k[--$j]) { //#28943 - $_.linear = $k[--$j]; //#28939 - $j--; //#28940 - $_.comp = $k[--$j]; //#28941 - } else { //#28943 - $j--; //#28943 - $k[$j++] = 'bwipp.missingCompositeComponent#28943'; //#28943 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28943 - bwipp_raiseerror(); //#28943 - } //#28943 - if (!$_.usematrix) { //#28946 - $$.save(); //#28946 - } //#28946 - $put($_.options, "lintype", "databartruncated"); //#28948 - $put($_.options, "linkage", true); //#28949 - $put($_.options, "inkspread", "0"); //#28950 - $put($_.options, "dontdraw", true); //#28951 - $put($_.options, "dontlint", true); //#28952 - var _F = $s($_.linear.length + $_.comp.length); //#28955 - $puti(_F, 0, $_.linear); //#28956 - $puti(_F, $_.linear.length, $_.comp); //#28957 - $k[$j++] = _F; //#28958 - $k[$j++] = 'ai'; //#28958 - bwipp_gs1process(); //#28958 - $j -= 3; //#28958 - $k[$j++] = $_.linear; //#28961 - $k[$j++] = $_.options; //#28961 - bwipp_databartruncated(); //#28961 - var _L = $k[--$j]; //#28962 - $_.linsbs = $get(_L, "sbs"); //#28962 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28963 - $k[$j++] = _L; //#28964 - if (!$_.usematrix) { //#28964 - bwipp_renlinear(); //#28964 - } else { //#28964 - $j--; //#28964 - } //#28964 + $_ = Object.create($_); //#29245 + $_.dontdraw = false; //#29248 + $_.usematrix = false; //#29249 + $_.parse = false; //#29250 + $_.dontlint = false; //#29251 + $_.lintreqs = true; //#29252 + $k[$j++] = $_; //#29254 + bwipp_processoptions(); //#29254 + $_.options = $k[--$j]; //#29254 + $_.barcode = $k[--$j]; //#29255 + if ($_.dontdraw) { //#29257 + $_.usematrix = true; //#29257 + } //#29257 + $search($_.barcode, "|"); //#29260 + if ($k[--$j]) { //#29265 + $_.linear = $k[--$j]; //#29261 + $j--; //#29262 + $_.comp = $k[--$j]; //#29263 + } else { //#29265 + $j--; //#29265 + $k[$j++] = 'bwipp.missingCompositeComponent#29265'; //#29265 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29265 + bwipp_raiseerror(); //#29265 + } //#29265 + if (!$_.usematrix) { //#29268 + $$.save(); //#29268 + } //#29268 + $put($_.options, "lintype", "databartruncated"); //#29270 + $put($_.options, "linkage", true); //#29271 + $put($_.options, "inkspreadv", 0); //#29272 + $put($_.options, "dontdraw", true); //#29273 + $put($_.options, "dontlint", true); //#29274 + var _F = $s($_.linear.length + $_.comp.length); //#29277 + $puti(_F, 0, $_.linear); //#29278 + $puti(_F, $_.linear.length, $_.comp); //#29279 + $k[$j++] = _F; //#29280 + $k[$j++] = 'ai'; //#29280 + bwipp_gs1process(); //#29280 + $j -= 3; //#29280 + $k[$j++] = $_.linear; //#29283 + $k[$j++] = $_.options; //#29283 + bwipp_databartruncated(); //#29283 + var _L = $k[--$j]; //#29284 + $_.linsbs = $get(_L, "sbs"); //#29284 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29285 + $k[$j++] = _L; //#29286 + if (!$_.usematrix) { //#29286 + bwipp_renlinear(); //#29286 + } else { //#29286 + $j--; //#29286 + } //#29286 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28968 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28981 - $_.i = _U; //#28970 - if ($get($_.bot, $_.i) == 0) { //#28978 - if ($get($_.bot, $_.i - 1) == 1) { //#28975 - $k[$j++] = 1; //#28973 - } else { //#28975 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28975 - $k[$j++] = _e; //#28975 - } //#28975 - } else { //#28978 - $k[$j++] = 0; //#28978 - } //#28978 - $put($_.sep, $_.i, $k[--$j]); //#28980 - } //#28980 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28982 - $k[$j++] = true; //#28983 - for (var _j = 0; _j <= 12; _j += 1) { //#28983 - var _p = $k[--$j]; //#28983 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28983 - } //#28983 - if ($k[--$j]) { //#28986 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28985 - } //#28985 - }; //#28985 - $k[$j++] = Infinity; //#28988 - $k[$j++] = 0; //#28989 - $forall($_.linsbs, function() { //#28989 - var _v = $k[--$j]; //#28989 - var _w = $k[--$j]; //#28989 - var _x = (_w == 1) ? 0 : 1; //#28989 - $k[$j++] = _w; //#28989 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28989 - $k[$j++] = _x //#28989 - } //#28989 - }); //#28989 - $astore($a($counttomark() - 1)); //#28990 - $_.bot = $k[--$j]; //#28990 - $j -= 2; //#28990 - $k[$j++] = Infinity; //#28991 - $forall($_.bot, function() { //#28991 - var _14 = $k[--$j]; //#28991 - $k[$j++] = $f(1 - _14); //#28991 - }); //#28991 - $_.sep = $a(); //#28991 - $puti($_.sep, 0, $a([0, 0, 0])); //#28992 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28993 - $k[$j++] = 18; //#28994 - $_.sepfinder(); //#28994 - $k[$j++] = 64; //#28994 - $_.sepfinder(); //#28994 - if (!$_.usematrix) { //#29045 - $$.rmoveto(0, $_.linheight); //#28996 + $_.fp = $k[--$j]; //#29290 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29303 + $_.i = _U; //#29292 + if ($get($_.bot, $_.i) == 0) { //#29300 + if ($get($_.bot, $_.i - 1) == 1) { //#29297 + $k[$j++] = 1; //#29295 + } else { //#29297 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29297 + $k[$j++] = _e; //#29297 + } //#29297 + } else { //#29300 + $k[$j++] = 0; //#29300 + } //#29300 + $put($_.sep, $_.i, $k[--$j]); //#29302 + } //#29302 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29304 + $k[$j++] = true; //#29305 + for (var _j = 0; _j <= 12; _j += 1) { //#29305 + var _p = $k[--$j]; //#29305 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#29305 + } //#29305 + if ($k[--$j]) { //#29308 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29307 + } //#29307 + }; //#29307 + $k[$j++] = Infinity; //#29310 + $k[$j++] = 0; //#29311 + $forall($_.linsbs, function() { //#29311 + var _v = $k[--$j]; //#29311 + var _w = $k[--$j]; //#29311 + var _x = (_w == 1) ? 0 : 1; //#29311 + $k[$j++] = _w; //#29311 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#29311 + $k[$j++] = _x //#29311 + } //#29311 + }); //#29311 + $astore($a($counttomark() - 1)); //#29312 + $_.bot = $k[--$j]; //#29312 + $j -= 2; //#29312 + $k[$j++] = Infinity; //#29313 + $forall($_.bot, function() { //#29313 + var _14 = $k[--$j]; //#29313 + $k[$j++] = $f(1 - _14); //#29313 + }); //#29313 + $_.sep = $a(); //#29313 + $puti($_.sep, 0, $a([0, 0, 0])); //#29314 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29315 + $k[$j++] = 18; //#29316 + $_.sepfinder(); //#29316 + $k[$j++] = 64; //#29316 + $_.sepfinder(); //#29316 + if (!$_.usematrix) { //#29367 + $$.rmoveto(0, $_.linheight); //#29318 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36977,65 +37457,63 @@ function bwipp_databartruncatedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29003 - $k[$j++] = _1H; //#29004 - bwipp_renmatrix(); //#29004 - $$.rmoveto(-5, 1); //#29007 - $k[$j++] = $_.comp; //#29007 - $k[$j++] = $_.options; //#29007 - bwipp_gs1_cc(); //#29007 - bwipp_renmatrix(); //#29007 - $$.restore(); //#29009 - } else { //#29045 - $k[$j++] = 'compsym'; //#29011 - $k[$j++] = $_.comp; //#29011 - $k[$j++] = $_.options; //#29011 - bwipp_gs1_cc(); //#29011 - var _1M = $k[--$j]; //#29011 - $_[$k[--$j]] = _1M; //#29011 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29012 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29013 - $k[$j++] = Infinity; //#29016 - $k[$j++] = 0; //#29016 - $forall($_.linsbs, function() { //#29016 - var _1T = $k[--$j]; //#29016 - var _1U = $k[--$j]; //#29016 - var _1V = (_1U == 0) ? 1 : 0; //#29016 - $k[$j++] = _1U; //#29016 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29016 - $k[$j++] = _1V //#29016 - } //#29016 - }); //#29016 - $_.linpixs = $a(); //#29016 - $k[$j++] = Infinity; //#29018 - $k[$j++] = 0; //#29018 - $aload($_.sep); //#29018 - $_.sep = $a(); //#29018 - $_.linheight = ~~$_.linheight; //#29020 - $k[$j++] = Infinity; //#29027 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29026 - $_.i = _1f; //#29024 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#29025 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29025 - $k[$j++] = 0; //#29025 - } //#29025 - } //#29025 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.sep); //#29027 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.linpixs); //#29027 - } //#29027 - $_.pixs = $a(); //#29027 - $_.pixx = $f($_.ccpixx + 1); //#29029 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29031 - var _22 = new Map([ + ]); //#29325 + $k[$j++] = _1H; //#29326 + bwipp_renmatrix(); //#29326 + $$.rmoveto(-5, 1); //#29329 + $k[$j++] = $_.comp; //#29329 + $k[$j++] = $_.options; //#29329 + bwipp_gs1_cc(); //#29329 + bwipp_renmatrix(); //#29329 + $$.restore(); //#29331 + } else { //#29367 + $k[$j++] = 'compsym'; //#29333 + $k[$j++] = $_.comp; //#29333 + $k[$j++] = $_.options; //#29333 + bwipp_gs1_cc(); //#29333 + var _1M = $k[--$j]; //#29333 + $_[$k[--$j]] = _1M; //#29333 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29334 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29335 + $k[$j++] = Infinity; //#29337 + $k[$j++] = 0; //#29338 + $forall($_.linsbs, function() { //#29338 + var _1T = $k[--$j]; //#29338 + var _1U = $k[--$j]; //#29338 + var _1V = (_1U == 0) ? 1 : 0; //#29338 + $k[$j++] = _1U; //#29338 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29338 + $k[$j++] = _1V //#29338 + } //#29338 + }); //#29338 + $_.linpixs = $a(); //#29338 + $k[$j++] = Infinity; //#29340 + $k[$j++] = 0; //#29340 + $aload($_.sep); //#29340 + $_.sep = $a(); //#29340 + $_.linheight = ~~$_.linheight; //#29342 + $k[$j++] = Infinity; //#29344 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29348 + $_.i = _1f; //#29346 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29347 + $k[$j++] = 0; //#29347 + } //#29347 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.sep); //#29349 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.linpixs); //#29349 + } //#29349 + $_.pixs = $a(); //#29349 + $_.pixx = $f($_.ccpixx + 1); //#29351 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29353 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37043,89 +37521,88 @@ function bwipp_databartruncatedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29039 - $k[$j++] = _22; //#29046 - if (!$_.dontdraw) { //#29046 - $$.save(); //#29043 - bwipp_renmatrix(); //#29044 - $$.restore(); //#29045 - } //#29045 - } //#29045 - $_ = Object.getPrototypeOf($_); //#29049 -} - + ]); //#29361 + $k[$j++] = _20; //#29368 + if (!$_.dontdraw) { //#29368 + $$.save(); //#29365 + bwipp_renmatrix(); //#29366 + $$.restore(); //#29367 + } //#29367 + } //#29367 + $_ = Object.getPrototypeOf($_); //#29371 +} //bwipp_databartruncatedcomposite function bwipp_databarlimitedcomposite() { - $_ = Object.create($_); //#29081 - $_.dontdraw = false; //#29084 - $_.usematrix = false; //#29085 - $_.parse = false; //#29086 - $_.dontlint = false; //#29087 - $_.lintreqs = true; //#29088 - $k[$j++] = $_; //#29090 - bwipp_processoptions(); //#29090 - $_.options = $k[--$j]; //#29090 - $_.barcode = $k[--$j]; //#29091 - if ($_.dontdraw) { //#29093 - $_.usematrix = true; //#29093 - } //#29093 - $search($_.barcode, "|"); //#29096 - if ($k[--$j]) { //#29101 - $_.linear = $k[--$j]; //#29097 - $j--; //#29098 - $_.comp = $k[--$j]; //#29099 - } else { //#29101 - $j--; //#29101 - $k[$j++] = 'bwipp.missingCompositeComponent#29101'; //#29101 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29101 - bwipp_raiseerror(); //#29101 - } //#29101 - if (!$_.usematrix) { //#29104 - $$.save(); //#29104 - } //#29104 - $put($_.options, "lintype", "databarlimited"); //#29106 - $put($_.options, "linkage", true); //#29107 - $put($_.options, "inkspread", "0"); //#29108 - $put($_.options, "dontdraw", true); //#29109 - $put($_.options, "dontlint", true); //#29110 - var _F = $s($_.linear.length + $_.comp.length); //#29113 - $puti(_F, 0, $_.linear); //#29114 - $puti(_F, $_.linear.length, $_.comp); //#29115 - $k[$j++] = _F; //#29116 - $k[$j++] = 'ai'; //#29116 - bwipp_gs1process(); //#29116 - $j -= 3; //#29116 - $k[$j++] = $_.linear; //#29119 - $k[$j++] = $_.options; //#29119 - bwipp_databarlimited(); //#29119 - var _L = $k[--$j]; //#29120 - $_.linsbs = $get(_L, "sbs"); //#29120 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29121 - $k[$j++] = _L; //#29122 - if (!$_.usematrix) { //#29122 - bwipp_renlinear(); //#29122 - } else { //#29122 - $j--; //#29122 - } //#29122 - $k[$j++] = Infinity; //#29125 - $k[$j++] = 1; //#29126 - $forall($_.linsbs, function() { //#29126 - var _R = $k[--$j]; //#29126 - var _S = $k[--$j]; //#29126 - var _T = (_S == 0) ? 1 : 0; //#29126 - $k[$j++] = _S; //#29126 - for (var _U = 0, _V = _R; _U < _V; _U++) { //#29126 - $k[$j++] = _T //#29126 - } //#29126 - }); //#29126 - $astore($a($counttomark() - 1)); //#29127 - $_.sep = $k[--$j]; //#29127 - $j -= 2; //#29127 - $puti($_.sep, 0, $a([0, 0, 0])); //#29128 - var _c = $_.sep; //#29129 - $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29129 - if (!$_.usematrix) { //#29194 - $$.rmoveto(0, $_.linheight); //#29132 - var _g = $_.sep; //#29134 + $_ = Object.create($_); //#29403 + $_.dontdraw = false; //#29406 + $_.usematrix = false; //#29407 + $_.parse = false; //#29408 + $_.dontlint = false; //#29409 + $_.lintreqs = true; //#29410 + $k[$j++] = $_; //#29412 + bwipp_processoptions(); //#29412 + $_.options = $k[--$j]; //#29412 + $_.barcode = $k[--$j]; //#29413 + if ($_.dontdraw) { //#29415 + $_.usematrix = true; //#29415 + } //#29415 + $search($_.barcode, "|"); //#29418 + if ($k[--$j]) { //#29423 + $_.linear = $k[--$j]; //#29419 + $j--; //#29420 + $_.comp = $k[--$j]; //#29421 + } else { //#29423 + $j--; //#29423 + $k[$j++] = 'bwipp.missingCompositeComponent#29423'; //#29423 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29423 + bwipp_raiseerror(); //#29423 + } //#29423 + if (!$_.usematrix) { //#29426 + $$.save(); //#29426 + } //#29426 + $put($_.options, "lintype", "databarlimited"); //#29428 + $put($_.options, "linkage", true); //#29429 + $put($_.options, "inkspreadv", 0); //#29430 + $put($_.options, "dontdraw", true); //#29431 + $put($_.options, "dontlint", true); //#29432 + var _F = $s($_.linear.length + $_.comp.length); //#29435 + $puti(_F, 0, $_.linear); //#29436 + $puti(_F, $_.linear.length, $_.comp); //#29437 + $k[$j++] = _F; //#29438 + $k[$j++] = 'ai'; //#29438 + bwipp_gs1process(); //#29438 + $j -= 3; //#29438 + $k[$j++] = $_.linear; //#29441 + $k[$j++] = $_.options; //#29441 + bwipp_databarlimited(); //#29441 + var _L = $k[--$j]; //#29442 + $_.linsbs = $get(_L, "sbs"); //#29442 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29443 + $k[$j++] = _L; //#29444 + if (!$_.usematrix) { //#29444 + bwipp_renlinear(); //#29444 + } else { //#29444 + $j--; //#29444 + } //#29444 + $k[$j++] = Infinity; //#29447 + $k[$j++] = 1; //#29448 + $forall($_.linsbs, function() { //#29448 + var _R = $k[--$j]; //#29448 + var _S = $k[--$j]; //#29448 + var _T = (_S == 0) ? 1 : 0; //#29448 + $k[$j++] = _S; //#29448 + for (var _U = 0, _V = _R; _U < _V; _U++) { //#29448 + $k[$j++] = _T //#29448 + } //#29448 + }); //#29448 + $astore($a($counttomark() - 1)); //#29449 + $_.sep = $k[--$j]; //#29449 + $j -= 2; //#29449 + $puti($_.sep, 0, $a([0, 0, 0])); //#29450 + var _c = $_.sep; //#29451 + $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29451 + if (!$_.usematrix) { //#29516 + $$.rmoveto(0, $_.linheight); //#29454 + var _g = $_.sep; //#29456 var _k = new Map([ ["ren", bwipp_renmatrix], ["pixs", _g], @@ -37134,105 +37611,101 @@ function bwipp_databarlimitedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29139 - $k[$j++] = _k; //#29140 - bwipp_renmatrix(); //#29140 - $k[$j++] = $_.comp; //#29143 - $k[$j++] = $_.options; //#29143 - bwipp_gs1_cc(); //#29143 - var _n = $k[--$j]; //#29144 - $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29144 - $k[$j++] = _n; //#29145 - bwipp_renmatrix(); //#29145 - $$.restore(); //#29147 - } else { //#29194 - $k[$j++] = 'compsym'; //#29149 - $k[$j++] = $_.comp; //#29149 - $k[$j++] = $_.options; //#29149 - bwipp_gs1_cc(); //#29149 - var _r = $k[--$j]; //#29149 - $_[$k[--$j]] = _r; //#29149 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29150 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29151 - $k[$j++] = Infinity; //#29154 - $k[$j++] = 0; //#29154 - $forall($_.linsbs, function() { //#29154 - var _y = $k[--$j]; //#29154 - var _z = $k[--$j]; //#29154 - var _10 = (_z == 0) ? 1 : 0; //#29154 - $k[$j++] = _z; //#29154 - for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29154 - $k[$j++] = _10 //#29154 - } //#29154 - }); //#29154 - $_.linpixs = $a(); //#29154 - $k[$j++] = Infinity; //#29156 - $k[$j++] = 0; //#29156 - $aload($_.sep); //#29156 - $_.sep = $a(); //#29156 - $_.linheight = ~~$_.linheight; //#29158 - if ($_.ccpixx == 72) { //#29177 - $k[$j++] = Infinity; //#29166 - for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29165 - $_.i = _1B; //#29163 - for (var _1D = 0, _1E = 2; _1D < _1E; _1D++) { //#29164 - $k[$j++] = 0; //#29164 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - } //#29164 - } //#29164 - $aload($_.sep); //#29166 - for (var _1L = 0, _1M = $_.linheight; _1L < _1M; _1L++) { //#29166 - $aload($_.linpixs); //#29166 - } //#29166 - $_.pixs = $a(); //#29166 - $_.pixx = $_.linpixs.length; //#29168 - } else { //#29177 - $k[$j++] = Infinity; //#29175 - for (var _1T = 0, _1U = $_.ccpixx, _1S = $_.ccpixs.length - 1; _1U < 0 ? _1T >= _1S : _1T <= _1S; _1T += _1U) { //#29174 - $_.i = _1T; //#29172 - for (var _1V = 0, _1W = 2; _1V < _1W; _1V++) { //#29173 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - } //#29173 - } //#29173 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.sep); //#29175 - for (var _1d = 0, _1e = $_.linheight; _1d < _1e; _1d++) { //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.linpixs); //#29175 - } //#29175 - $_.pixs = $a(); //#29175 - $_.pixx = $f($_.ccpixx + 6); //#29177 - } //#29177 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29180 - var _1q = new Map([ + ]); //#29461 + $k[$j++] = _k; //#29462 + bwipp_renmatrix(); //#29462 + $k[$j++] = $_.comp; //#29465 + $k[$j++] = $_.options; //#29465 + bwipp_gs1_cc(); //#29465 + var _n = $k[--$j]; //#29466 + $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29466 + $k[$j++] = _n; //#29467 + bwipp_renmatrix(); //#29467 + $$.restore(); //#29469 + } else { //#29516 + $k[$j++] = 'compsym'; //#29471 + $k[$j++] = $_.comp; //#29471 + $k[$j++] = $_.options; //#29471 + bwipp_gs1_cc(); //#29471 + var _r = $k[--$j]; //#29471 + $_[$k[--$j]] = _r; //#29471 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 + $k[$j++] = Infinity; //#29475 + $k[$j++] = 0; //#29476 + $forall($_.linsbs, function() { //#29476 + var _y = $k[--$j]; //#29476 + var _z = $k[--$j]; //#29476 + var _10 = (_z == 0) ? 1 : 0; //#29476 + $k[$j++] = _z; //#29476 + for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29476 + $k[$j++] = _10 //#29476 + } //#29476 + }); //#29476 + $_.linpixs = $a(); //#29476 + $k[$j++] = Infinity; //#29478 + $k[$j++] = 0; //#29478 + $aload($_.sep); //#29478 + $_.sep = $a(); //#29478 + $_.linheight = ~~$_.linheight; //#29480 + if ($_.ccpixx == 72) { //#29499 + $k[$j++] = Infinity; //#29483 + for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29487 + $_.i = _1B; //#29485 + $k[$j++] = 0; //#29486 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + } //#29486 + $aload($_.sep); //#29488 + for (var _1J = 0, _1K = $_.linheight; _1J < _1K; _1J++) { //#29488 + $aload($_.linpixs); //#29488 + } //#29488 + $_.pixs = $a(); //#29488 + $_.pixx = $_.linpixs.length; //#29490 + } else { //#29499 + $k[$j++] = Infinity; //#29492 + for (var _1R = 0, _1S = $_.ccpixx, _1Q = $_.ccpixs.length - 1; _1S < 0 ? _1R >= _1Q : _1R <= _1Q; _1R += _1S) { //#29496 + $_.i = _1R; //#29494 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + } //#29495 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.sep); //#29497 + for (var _1Z = 0, _1a = $_.linheight; _1Z < _1a; _1Z++) { //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.linpixs); //#29497 + } //#29497 + $_.pixs = $a(); //#29497 + $_.pixx = $f($_.ccpixx + 6); //#29499 + } //#29499 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29502 + var _1m = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37240,122 +37713,121 @@ function bwipp_databarlimitedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29188 - $k[$j++] = _1q; //#29195 - if (!$_.dontdraw) { //#29195 - $$.save(); //#29192 - bwipp_renmatrix(); //#29193 - $$.restore(); //#29194 - } //#29194 - } //#29194 - $_ = Object.getPrototypeOf($_); //#29198 -} - + ]); //#29510 + $k[$j++] = _1m; //#29517 + if (!$_.dontdraw) { //#29517 + $$.save(); //#29514 + bwipp_renmatrix(); //#29515 + $$.restore(); //#29516 + } //#29516 + } //#29516 + $_ = Object.getPrototypeOf($_); //#29520 +} //bwipp_databarlimitedcomposite function bwipp_databarexpandedcomposite() { - $_ = Object.create($_); //#29230 - $_.dontdraw = false; //#29233 - $_.usematrix = false; //#29234 - $_.parse = false; //#29235 - $_.dontlint = false; //#29236 - $_.lintreqs = true; //#29237 - $k[$j++] = $_; //#29239 - bwipp_processoptions(); //#29239 - $_.options = $k[--$j]; //#29239 - $_.barcode = $k[--$j]; //#29240 - if ($_.dontdraw) { //#29242 - $_.usematrix = true; //#29242 - } //#29242 - $search($_.barcode, "|"); //#29245 - if ($k[--$j]) { //#29250 - $_.linear = $k[--$j]; //#29246 - $j--; //#29247 - $_.comp = $k[--$j]; //#29248 - } else { //#29250 - $j--; //#29250 - $k[$j++] = 'bwipp.missingCompositeComponent#29250'; //#29250 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29250 - bwipp_raiseerror(); //#29250 - } //#29250 - if (!$_.usematrix) { //#29253 - $$.save(); //#29253 - } //#29253 - $put($_.options, "lintype", "databarexpanded"); //#29255 - $put($_.options, "linkage", true); //#29256 - $put($_.options, "inkspread", "0"); //#29257 - $put($_.options, "dontdraw", true); //#29258 - $put($_.options, "dontlint", true); //#29259 - var _F = $s($_.linear.length + $_.comp.length); //#29262 - $puti(_F, 0, $_.linear); //#29263 - $puti(_F, $_.linear.length, $_.comp); //#29264 - $k[$j++] = _F; //#29265 - $k[$j++] = 'ai'; //#29265 - bwipp_gs1process(); //#29265 - $j -= 3; //#29265 - $k[$j++] = $_.linear; //#29268 - $k[$j++] = $_.options; //#29268 - bwipp_databarexpanded(); //#29268 - var _L = $k[--$j]; //#29269 - $_.linsbs = $get(_L, "sbs"); //#29269 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29270 - $k[$j++] = _L; //#29271 - if (!$_.usematrix) { //#29271 - bwipp_renlinear(); //#29271 - } else { //#29271 - $j--; //#29271 - } //#29271 + $_ = Object.create($_); //#29552 + $_.dontdraw = false; //#29555 + $_.usematrix = false; //#29556 + $_.parse = false; //#29557 + $_.dontlint = false; //#29558 + $_.lintreqs = true; //#29559 + $k[$j++] = $_; //#29561 + bwipp_processoptions(); //#29561 + $_.options = $k[--$j]; //#29561 + $_.barcode = $k[--$j]; //#29562 + if ($_.dontdraw) { //#29564 + $_.usematrix = true; //#29564 + } //#29564 + $search($_.barcode, "|"); //#29567 + if ($k[--$j]) { //#29572 + $_.linear = $k[--$j]; //#29568 + $j--; //#29569 + $_.comp = $k[--$j]; //#29570 + } else { //#29572 + $j--; //#29572 + $k[$j++] = 'bwipp.missingCompositeComponent#29572'; //#29572 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29572 + bwipp_raiseerror(); //#29572 + } //#29572 + if (!$_.usematrix) { //#29575 + $$.save(); //#29575 + } //#29575 + $put($_.options, "lintype", "databarexpanded"); //#29577 + $put($_.options, "linkage", true); //#29578 + $put($_.options, "inkspreadv", 0); //#29579 + $put($_.options, "dontdraw", true); //#29580 + $put($_.options, "dontlint", true); //#29581 + var _F = $s($_.linear.length + $_.comp.length); //#29584 + $puti(_F, 0, $_.linear); //#29585 + $puti(_F, $_.linear.length, $_.comp); //#29586 + $k[$j++] = _F; //#29587 + $k[$j++] = 'ai'; //#29587 + bwipp_gs1process(); //#29587 + $j -= 3; //#29587 + $k[$j++] = $_.linear; //#29590 + $k[$j++] = $_.options; //#29590 + bwipp_databarexpanded(); //#29590 + var _L = $k[--$j]; //#29591 + $_.linsbs = $get(_L, "sbs"); //#29591 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29592 + $k[$j++] = _L; //#29593 + if (!$_.usematrix) { //#29593 + bwipp_renlinear(); //#29593 + } else { //#29593 + $j--; //#29593 + } //#29593 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29275 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29288 - $_.i = _U; //#29277 - if ($get($_.bot, $_.i) == 0) { //#29285 - if ($get($_.bot, $_.i - 1) == 1) { //#29282 - $k[$j++] = 1; //#29280 - } else { //#29282 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29282 - $k[$j++] = _e; //#29282 - } //#29282 - } else { //#29285 - $k[$j++] = 0; //#29285 - } //#29285 - $put($_.sep, $_.i, $k[--$j]); //#29287 - } //#29287 - }; //#29287 - $k[$j++] = Infinity; //#29290 - $k[$j++] = 0; //#29291 - $forall($_.linsbs, function() { //#29291 - var _j = $k[--$j]; //#29291 - var _k = $k[--$j]; //#29291 - var _l = (_k == 1) ? 0 : 1; //#29291 - $k[$j++] = _k; //#29291 - for (var _m = 0, _n = _j; _m < _n; _m++) { //#29291 - $k[$j++] = _l //#29291 - } //#29291 - }); //#29291 - $astore($a($counttomark() - 1)); //#29292 - $_.bot = $k[--$j]; //#29292 - $j -= 2; //#29292 - $k[$j++] = Infinity; //#29293 - $forall($_.bot, function() { //#29293 - var _s = $k[--$j]; //#29293 - $k[$j++] = $f(1 - _s); //#29293 - }); //#29293 - $_.sep = $a(); //#29293 - $puti($_.sep, 0, $a([0, 0, 0])); //#29294 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29295 - $k[$j++] = Infinity; //#29298 - for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29297 - $k[$j++] = _11; //#29297 - } //#29297 - for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29298 - $k[$j++] = _14; //#29298 - } //#29298 - var _15 = $a(); //#29298 - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29299 - $k[$j++] = $get(_15, _16); //#29299 - $_.sepfinder(); //#29299 - } //#29299 - if (!$_.usematrix) { //#29352 - $$.rmoveto(0, $_.linheight); //#29302 + $_.fp = $k[--$j]; //#29597 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29610 + $_.i = _U; //#29599 + if ($get($_.bot, $_.i) == 0) { //#29607 + if ($get($_.bot, $_.i - 1) == 1) { //#29604 + $k[$j++] = 1; //#29602 + } else { //#29604 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29604 + $k[$j++] = _e; //#29604 + } //#29604 + } else { //#29607 + $k[$j++] = 0; //#29607 + } //#29607 + $put($_.sep, $_.i, $k[--$j]); //#29609 + } //#29609 + }; //#29609 + $k[$j++] = Infinity; //#29612 + $k[$j++] = 0; //#29613 + $forall($_.linsbs, function() { //#29613 + var _j = $k[--$j]; //#29613 + var _k = $k[--$j]; //#29613 + var _l = (_k == 1) ? 0 : 1; //#29613 + $k[$j++] = _k; //#29613 + for (var _m = 0, _n = _j; _m < _n; _m++) { //#29613 + $k[$j++] = _l //#29613 + } //#29613 + }); //#29613 + $astore($a($counttomark() - 1)); //#29614 + $_.bot = $k[--$j]; //#29614 + $j -= 2; //#29614 + $k[$j++] = Infinity; //#29615 + $forall($_.bot, function() { //#29615 + var _s = $k[--$j]; //#29615 + $k[$j++] = $f(1 - _s); //#29615 + }); //#29615 + $_.sep = $a(); //#29615 + $puti($_.sep, 0, $a([0, 0, 0])); //#29616 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29617 + $k[$j++] = Infinity; //#29618 + for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29619 + $k[$j++] = _11; //#29619 + } //#29619 + for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29620 + $k[$j++] = _14; //#29620 + } //#29620 + var _15 = $a(); //#29620 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29621 + $k[$j++] = $get(_15, _16); //#29621 + $_.sepfinder(); //#29621 + } //#29621 + if (!$_.usematrix) { //#29674 + $$.rmoveto(0, $_.linheight); //#29624 var _1F = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37364,65 +37836,63 @@ function bwipp_databarexpandedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29309 - $k[$j++] = _1F; //#29310 - bwipp_renmatrix(); //#29310 - $$.rmoveto(1, 1); //#29313 - $k[$j++] = $_.comp; //#29313 - $k[$j++] = $_.options; //#29313 - bwipp_gs1_cc(); //#29313 - bwipp_renmatrix(); //#29313 - $$.restore(); //#29315 - } else { //#29352 - $k[$j++] = 'compsym'; //#29317 - $k[$j++] = $_.comp; //#29317 - $k[$j++] = $_.options; //#29317 - bwipp_gs1_cc(); //#29317 - var _1K = $k[--$j]; //#29317 - $_[$k[--$j]] = _1K; //#29317 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29318 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29319 - $k[$j++] = Infinity; //#29322 - $k[$j++] = 0; //#29322 - $forall($_.linsbs, function() { //#29322 - var _1R = $k[--$j]; //#29322 - var _1S = $k[--$j]; //#29322 - var _1T = (_1S == 0) ? 1 : 0; //#29322 - $k[$j++] = _1S; //#29322 - for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29322 - $k[$j++] = _1T //#29322 - } //#29322 - }); //#29322 - $_.linpixs = $a(); //#29322 - $k[$j++] = Infinity; //#29324 - $k[$j++] = 0; //#29324 - $aload($_.sep); //#29324 - $_.sep = $a(); //#29324 - $_.linheight = ~~$_.linheight; //#29326 - $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29327 - $k[$j++] = Infinity; //#29328 - for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29328 - $k[$j++] = 0; //#29328 - } //#29328 - $_.ccrpad = $a(); //#29328 - $k[$j++] = Infinity; //#29334 - for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29333 - $_.i = _1j; //#29331 - for (var _1l = 0, _1m = 2; _1l < _1m; _1l++) { //#29332 - $k[$j++] = 0; //#29332 - $k[$j++] = 0; //#29332 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29332 - $aload($_.ccrpad); //#29332 - } //#29332 - } //#29332 - $aload($_.sep); //#29334 - for (var _1u = 0, _1v = $_.linheight; _1u < _1v; _1u++) { //#29334 - $aload($_.linpixs); //#29334 - } //#29334 - $_.pixs = $a(); //#29334 - $_.pixx = $_.linpixs.length; //#29337 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29338 - var _27 = new Map([ + ]); //#29631 + $k[$j++] = _1F; //#29632 + bwipp_renmatrix(); //#29632 + $$.rmoveto(1, 1); //#29635 + $k[$j++] = $_.comp; //#29635 + $k[$j++] = $_.options; //#29635 + bwipp_gs1_cc(); //#29635 + bwipp_renmatrix(); //#29635 + $$.restore(); //#29637 + } else { //#29674 + $k[$j++] = 'compsym'; //#29639 + $k[$j++] = $_.comp; //#29639 + $k[$j++] = $_.options; //#29639 + bwipp_gs1_cc(); //#29639 + var _1K = $k[--$j]; //#29639 + $_[$k[--$j]] = _1K; //#29639 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29640 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29641 + $k[$j++] = Infinity; //#29643 + $k[$j++] = 0; //#29644 + $forall($_.linsbs, function() { //#29644 + var _1R = $k[--$j]; //#29644 + var _1S = $k[--$j]; //#29644 + var _1T = (_1S == 0) ? 1 : 0; //#29644 + $k[$j++] = _1S; //#29644 + for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29644 + $k[$j++] = _1T //#29644 + } //#29644 + }); //#29644 + $_.linpixs = $a(); //#29644 + $k[$j++] = Infinity; //#29646 + $k[$j++] = 0; //#29646 + $aload($_.sep); //#29646 + $_.sep = $a(); //#29646 + $_.linheight = ~~$_.linheight; //#29648 + $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29649 + $k[$j++] = Infinity; //#29650 + for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29650 + $k[$j++] = 0; //#29650 + } //#29650 + $_.ccrpad = $a(); //#29650 + $k[$j++] = Infinity; //#29651 + for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29655 + $_.i = _1j; //#29653 + $k[$j++] = 0; //#29654 + $k[$j++] = 0; //#29654 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 + $aload($_.ccrpad); //#29654 + } //#29654 + $aload($_.sep); //#29656 + for (var _1s = 0, _1t = $_.linheight; _1s < _1t; _1s++) { //#29656 + $aload($_.linpixs); //#29656 + } //#29656 + $_.pixs = $a(); //#29656 + $_.pixx = $_.linpixs.length; //#29659 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29660 + var _25 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37430,108 +37900,107 @@ function bwipp_databarexpandedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29346 - $k[$j++] = _27; //#29353 - if (!$_.dontdraw) { //#29353 - $$.save(); //#29350 - bwipp_renmatrix(); //#29351 - $$.restore(); //#29352 - } //#29352 - } //#29352 - $_ = Object.getPrototypeOf($_); //#29356 -} - + ]); //#29668 + $k[$j++] = _25; //#29675 + if (!$_.dontdraw) { //#29675 + $$.save(); //#29672 + bwipp_renmatrix(); //#29673 + $$.restore(); //#29674 + } //#29674 + } //#29674 + $_ = Object.getPrototypeOf($_); //#29678 +} //bwipp_databarexpandedcomposite function bwipp_databarexpandedstackedcomposite() { - $_ = Object.create($_); //#29387 - $_.dontdraw = false; //#29390 - $_.usematrix = false; //#29391 - $_.parse = false; //#29392 - $_.dontlint = false; //#29393 - $_.lintreqs = true; //#29394 - $k[$j++] = $_; //#29396 - bwipp_processoptions(); //#29396 - $_.options = $k[--$j]; //#29396 - $_.barcode = $k[--$j]; //#29397 - if ($_.dontdraw) { //#29399 - $_.usematrix = true; //#29399 - } //#29399 - $search($_.barcode, "|"); //#29402 - if ($k[--$j]) { //#29407 - $_.linear = $k[--$j]; //#29403 - $j--; //#29404 - $_.comp = $k[--$j]; //#29405 - } else { //#29407 - $j--; //#29407 - $k[$j++] = 'bwipp.missingCompositeComponent#29407'; //#29407 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29407 - bwipp_raiseerror(); //#29407 - } //#29407 - if (!$_.usematrix) { //#29410 - $$.save(); //#29410 - } //#29410 - $put($_.options, "lintype", "databarexpandedstacked"); //#29412 - $put($_.options, "linkage", true); //#29413 - $put($_.options, "inkspread", "0"); //#29414 - $put($_.options, "dontdraw", true); //#29415 - $put($_.options, "dontlint", true); //#29416 - var _F = $s($_.linear.length + $_.comp.length); //#29419 - $puti(_F, 0, $_.linear); //#29420 - $puti(_F, $_.linear.length, $_.comp); //#29421 - $k[$j++] = _F; //#29422 - $k[$j++] = 'ai'; //#29422 - bwipp_gs1process(); //#29422 - $j -= 3; //#29422 - $k[$j++] = $_.linear; //#29425 - $k[$j++] = $_.options; //#29425 - bwipp_databarexpandedstacked(); //#29425 - var _L = $k[--$j]; //#29426 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29426 - $_.linheight = $get(_L, "pixy"); //#29427 - $k[$j++] = _L; //#29428 - if (!$_.usematrix) { //#29428 - bwipp_renmatrix(); //#29428 - } else { //#29428 - $_.linpixs = $get($k[--$j], 'pixs'); //#29428 - } //#29428 + $_ = Object.create($_); //#29709 + $_.dontdraw = false; //#29712 + $_.usematrix = false; //#29713 + $_.parse = false; //#29714 + $_.dontlint = false; //#29715 + $_.lintreqs = true; //#29716 + $k[$j++] = $_; //#29718 + bwipp_processoptions(); //#29718 + $_.options = $k[--$j]; //#29718 + $_.barcode = $k[--$j]; //#29719 + if ($_.dontdraw) { //#29721 + $_.usematrix = true; //#29721 + } //#29721 + $search($_.barcode, "|"); //#29724 + if ($k[--$j]) { //#29729 + $_.linear = $k[--$j]; //#29725 + $j--; //#29726 + $_.comp = $k[--$j]; //#29727 + } else { //#29729 + $j--; //#29729 + $k[$j++] = 'bwipp.missingCompositeComponent#29729'; //#29729 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29729 + bwipp_raiseerror(); //#29729 + } //#29729 + if (!$_.usematrix) { //#29732 + $$.save(); //#29732 + } //#29732 + $put($_.options, "lintype", "databarexpandedstacked"); //#29734 + $put($_.options, "linkage", true); //#29735 + $put($_.options, "inkspreadv", 0); //#29736 + $put($_.options, "dontdraw", true); //#29737 + $put($_.options, "dontlint", true); //#29738 + var _F = $s($_.linear.length + $_.comp.length); //#29741 + $puti(_F, 0, $_.linear); //#29742 + $puti(_F, $_.linear.length, $_.comp); //#29743 + $k[$j++] = _F; //#29744 + $k[$j++] = 'ai'; //#29744 + bwipp_gs1process(); //#29744 + $j -= 3; //#29744 + $k[$j++] = $_.linear; //#29747 + $k[$j++] = $_.options; //#29747 + bwipp_databarexpandedstacked(); //#29747 + var _L = $k[--$j]; //#29748 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29748 + $_.linheight = $get(_L, "pixy"); //#29749 + $k[$j++] = _L; //#29750 + if (!$_.usematrix) { //#29750 + bwipp_renmatrix(); //#29750 + } else { //#29750 + $_.linpixs = $get($k[--$j], 'pixs'); //#29750 + } //#29750 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29432 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29445 - $_.i = _X; //#29434 - if ($get($_.bot, $_.i) == 0) { //#29442 - if ($get($_.bot, $_.i - 1) == 1) { //#29439 - $k[$j++] = 1; //#29437 - } else { //#29439 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29439 - $k[$j++] = _h; //#29439 - } //#29439 - } else { //#29442 - $k[$j++] = 0; //#29442 - } //#29442 - $put($_.sep, $_.i, $k[--$j]); //#29444 - } //#29444 - }; //#29444 - $k[$j++] = Infinity; //#29447 - var _l = $_.bot; //#29447 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29447 - $k[$j++] = $f(1 - $get(_l, _m)); //#29447 - } //#29447 - $_.sep = $a(); //#29447 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29448 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29449 - $k[$j++] = Infinity; //#29452 - for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29451 - $k[$j++] = _x; //#29451 - } //#29451 - for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29452 - $k[$j++] = _10; //#29452 - } //#29452 - var _11 = $a(); //#29452 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29453 - $k[$j++] = $get(_11, _12); //#29453 - $_.sepfinder(); //#29453 - } //#29453 - if (!$_.usematrix) { //#29500 - $$.rmoveto(0, $_.linheight); //#29455 + $_.fp = $k[--$j]; //#29754 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29767 + $_.i = _X; //#29756 + if ($get($_.bot, $_.i) == 0) { //#29764 + if ($get($_.bot, $_.i - 1) == 1) { //#29761 + $k[$j++] = 1; //#29759 + } else { //#29761 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29761 + $k[$j++] = _h; //#29761 + } //#29761 + } else { //#29764 + $k[$j++] = 0; //#29764 + } //#29764 + $put($_.sep, $_.i, $k[--$j]); //#29766 + } //#29766 + }; //#29766 + $k[$j++] = Infinity; //#29769 + var _l = $_.bot; //#29769 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29769 + $k[$j++] = $f(1 - $get(_l, _m)); //#29769 + } //#29769 + $_.sep = $a(); //#29769 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29770 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29771 + $k[$j++] = Infinity; //#29772 + for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29773 + $k[$j++] = _x; //#29773 + } //#29773 + for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29774 + $k[$j++] = _10; //#29774 + } //#29774 + var _11 = $a(); //#29774 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29775 + $k[$j++] = $get(_11, _12); //#29775 + $_.sepfinder(); //#29775 + } //#29775 + if (!$_.usematrix) { //#29822 + $$.rmoveto(0, $_.linheight); //#29777 var _1B = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37540,50 +38009,48 @@ function bwipp_databarexpandedstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29462 - $k[$j++] = _1B; //#29463 - bwipp_renmatrix(); //#29463 - var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29466 - $$.rmoveto(_1E, 1); //#29466 - $k[$j++] = $_.comp; //#29467 - $k[$j++] = $_.options; //#29467 - bwipp_gs1_cc(); //#29467 - bwipp_renmatrix(); //#29467 - $$.restore(); //#29469 - } else { //#29500 - $k[$j++] = 'compsym'; //#29471 - $k[$j++] = $_.comp; //#29471 - $k[$j++] = $_.options; //#29471 - bwipp_gs1_cc(); //#29471 - var _1J = $k[--$j]; //#29471 - $_[$k[--$j]] = _1J; //#29471 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 - $_.pixx = $_.sep.length; //#29475 - $k[$j++] = Infinity; //#29476 - for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29476 - $k[$j++] = 0; //#29476 - } //#29476 - $_.cclpad = $a(); //#29476 - $k[$j++] = Infinity; //#29477 - for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29477 - $k[$j++] = 0; //#29477 - } //#29477 - $_.ccrpad = $a(); //#29477 - $k[$j++] = Infinity; //#29483 - for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29482 - $_.i = _1d; //#29480 - for (var _1f = 0, _1g = 2; _1f < _1g; _1f++) { //#29481 - $aload($_.cclpad); //#29481 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29481 - $aload($_.ccrpad); //#29481 - } //#29481 - } //#29481 - $aload($_.sep); //#29483 - $aload($_.linpixs); //#29483 - $_.pixs = $a(); //#29483 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29486 - var _1y = new Map([ + ]); //#29784 + $k[$j++] = _1B; //#29785 + bwipp_renmatrix(); //#29785 + var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29788 + $$.rmoveto(_1E, 1); //#29788 + $k[$j++] = $_.comp; //#29789 + $k[$j++] = $_.options; //#29789 + bwipp_gs1_cc(); //#29789 + bwipp_renmatrix(); //#29789 + $$.restore(); //#29791 + } else { //#29822 + $k[$j++] = 'compsym'; //#29793 + $k[$j++] = $_.comp; //#29793 + $k[$j++] = $_.options; //#29793 + bwipp_gs1_cc(); //#29793 + var _1J = $k[--$j]; //#29793 + $_[$k[--$j]] = _1J; //#29793 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29794 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29795 + $_.pixx = $_.sep.length; //#29797 + $k[$j++] = Infinity; //#29798 + for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29798 + $k[$j++] = 0; //#29798 + } //#29798 + $_.cclpad = $a(); //#29798 + $k[$j++] = Infinity; //#29799 + for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29799 + $k[$j++] = 0; //#29799 + } //#29799 + $_.ccrpad = $a(); //#29799 + $k[$j++] = Infinity; //#29800 + for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29804 + $_.i = _1d; //#29802 + $aload($_.cclpad); //#29803 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29803 + $aload($_.ccrpad); //#29803 + } //#29803 + $aload($_.sep); //#29805 + $aload($_.linpixs); //#29805 + $_.pixs = $a(); //#29805 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29808 + var _1w = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37591,121 +38058,124 @@ function bwipp_databarexpandedstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29494 - $k[$j++] = _1y; //#29501 - if (!$_.dontdraw) { //#29501 - $$.save(); //#29498 - bwipp_renmatrix(); //#29499 - $$.restore(); //#29500 - } //#29500 - } //#29500 - $_ = Object.getPrototypeOf($_); //#29504 -} - + ]); //#29816 + $k[$j++] = _1w; //#29823 + if (!$_.dontdraw) { //#29823 + $$.save(); //#29820 + bwipp_renmatrix(); //#29821 + $$.restore(); //#29822 + } //#29822 + } //#29822 + $_ = Object.getPrototypeOf($_); //#29826 +} //bwipp_databarexpandedstackedcomposite function bwipp_gs1_128composite() { - $_ = Object.create($_); //#29536 - $_.dontdraw = false; //#29539 - $_.usematrix = false; //#29540 - $_.parse = false; //#29541 - $_.dontlint = false; //#29542 - $_.lintreqs = true; //#29543 - $k[$j++] = $_; //#29545 - bwipp_processoptions(); //#29545 - $_.options = $k[--$j]; //#29545 - $_.barcode = $k[--$j]; //#29546 - if ($_.dontdraw) { //#29548 - $_.usematrix = true; //#29548 - } //#29548 - $search($_.barcode, "|"); //#29551 - if ($k[--$j]) { //#29556 - $_.linear = $k[--$j]; //#29552 - $j--; //#29553 - $_.comp = $k[--$j]; //#29554 - } else { //#29556 - $j--; //#29556 - $k[$j++] = 'bwipp.missingCompositeComponent#29556'; //#29556 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29556 - bwipp_raiseerror(); //#29556 - } //#29556 - if (!$_.usematrix) { //#29559 - $$.save(); //#29559 - } //#29559 - $put($_.options, "inkspread", "0"); //#29561 - $put($_.options, "dontdraw", true); //#29562 - $put($_.options, "dontlint", true); //#29563 - var _D = $s($_.linear.length + $_.comp.length); //#29566 - $puti(_D, 0, $_.linear); //#29567 - $puti(_D, $_.linear.length, $_.comp); //#29568 - $k[$j++] = _D; //#29569 - $k[$j++] = 'ai'; //#29569 - bwipp_gs1process(); //#29569 - $j -= 3; //#29569 - $put($_.options, "linkagea", true); //#29572 - $k[$j++] = $_.linear; //#29573 - $k[$j++] = Infinity; //#29573 - $forall($_.options); //#29573 - var _K = $d(); //#29573 - $k[$j++] = _K; //#29573 - bwipp_gs1_128(); //#29573 - var _M = $get($k[--$j], "sbs"); //#29574 - $k[$j++] = 0; //#29574 - $forall(_M, function() { //#29574 - var _N = $k[--$j]; //#29574 - var _O = $k[--$j]; //#29574 - $k[$j++] = $f(_O + _N); //#29574 - }); //#29574 - $_.linwidth = $k[--$j]; //#29574 - $put($_.options, "lintype", "gs1-128"); //#29577 - $put($_.options, "linwidth", $_.linwidth); //#29578 - $k[$j++] = $_.comp; //#29579 - $k[$j++] = $_.options; //#29579 - bwipp_gs1_cc(); //#29579 - $_.compsym = $k[--$j]; //#29579 - if ($get($_.compsym, "pixx") == 99) { //#29580 - $k[$j++] = "a"; //#29580 - } else { //#29580 - $k[$j++] = "c"; //#29580 - } //#29580 - $_.linktype = $k[--$j]; //#29580 - if ($eq($_.linktype, "a")) { //#29588 - $put($_.options, "linkagea", true); //#29584 - $put($_.options, "linkagec", false); //#29585 - } else { //#29588 - $put($_.options, "linkagea", false); //#29587 - $put($_.options, "linkagec", true); //#29588 - } //#29588 - $k[$j++] = $_.linear; //#29590 - $k[$j++] = Infinity; //#29590 - $forall($_.options); //#29590 - var _g = $d(); //#29590 - $k[$j++] = _g; //#29590 - bwipp_gs1_128(); //#29590 - var _h = $k[--$j]; //#29591 - $_.linsbs = $get(_h, "sbs"); //#29591 - $_.linheight = $get($get(_h, "bhs"), 0) * 72; //#29592 - $k[$j++] = _h; //#29593 - if (!$_.usematrix) { //#29593 - bwipp_renlinear(); //#29593 - } else { //#29593 - $j--; //#29593 - } //#29593 - $k[$j++] = Infinity; //#29596 - $k[$j++] = 1; //#29597 - $forall($_.linsbs, function() { //#29597 - var _n = $k[--$j]; //#29597 - var _o = $k[--$j]; //#29597 - var _p = (_o == 0) ? 1 : 0; //#29597 - $k[$j++] = _o; //#29597 - for (var _q = 0, _r = _n; _q < _r; _q++) { //#29597 - $k[$j++] = _p //#29597 - } //#29597 - }); //#29597 - $astore($a($counttomark() - 1)); //#29598 - $_.sep = $k[--$j]; //#29598 - $j -= 2; //#29598 - if (!$_.usematrix) { //#29609 - $$.rmoveto(0, $_.linheight); //#29600 - var _11 = new Map([ + $_ = Object.create($_); //#29858 + $_.dontdraw = false; //#29861 + $_.usematrix = false; //#29862 + $_.parse = false; //#29863 + $_.dontlint = false; //#29864 + $_.lintreqs = true; //#29865 + $k[$j++] = $_; //#29867 + bwipp_processoptions(); //#29867 + $_.options = $k[--$j]; //#29867 + $_.barcode = $k[--$j]; //#29868 + if ($_.dontdraw) { //#29870 + $_.usematrix = true; //#29870 + } //#29870 + $search($_.barcode, "|"); //#29873 + if ($k[--$j]) { //#29878 + $_.linear = $k[--$j]; //#29874 + $j--; //#29875 + $_.comp = $k[--$j]; //#29876 + } else { //#29878 + $j--; //#29878 + $k[$j++] = 'bwipp.missingCompositeComponent#29878'; //#29878 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29878 + bwipp_raiseerror(); //#29878 + } //#29878 + if (!$_.usematrix) { //#29881 + $$.save(); //#29881 + } //#29881 + $put($_.options, "inkspreadv", 0); //#29883 + $put($_.options, "dontdraw", true); //#29884 + $put($_.options, "dontlint", true); //#29885 + var _D = $s($_.linear.length + $_.comp.length); //#29888 + $puti(_D, 0, $_.linear); //#29889 + $puti(_D, $_.linear.length, $_.comp); //#29890 + $k[$j++] = _D; //#29891 + $k[$j++] = 'ai'; //#29891 + bwipp_gs1process(); //#29891 + $j -= 3; //#29891 + $put($_.options, "linkagea", true); //#29894 + $k[$j++] = $_.linear; //#29895 + $k[$j++] = Infinity; //#29895 + $forall($_.options); //#29895 + var _K = $d(); //#29895 + $k[$j++] = _K; //#29895 + bwipp_gs1_128(); //#29895 + var _M = $get($k[--$j], "sbs"); //#29896 + $k[$j++] = 0; //#29896 + $forall(_M, function() { //#29896 + var _N = $k[--$j]; //#29896 + var _O = $k[--$j]; //#29896 + $k[$j++] = $f(_O + _N); //#29896 + }); //#29896 + $_.linwidth = $k[--$j]; //#29896 + $put($_.options, "lintype", "gs1-128"); //#29899 + $put($_.options, "linwidth", $_.linwidth); //#29900 + $k[$j++] = $_.comp; //#29901 + $k[$j++] = Infinity; //#29901 + $forall($_.options); //#29901 + var _V = $d(); //#29901 + $k[$j++] = _V; //#29901 + bwipp_gs1_cc(); //#29901 + $_.compsym = $k[--$j]; //#29901 + if ($get($_.compsym, "pixx") == 99) { //#29902 + $k[$j++] = "a"; //#29902 + } else { //#29902 + $k[$j++] = "c"; //#29902 + } //#29902 + $_.linktype = $k[--$j]; //#29902 + if ($eq($_.linktype, "a")) { //#29910 + $put($_.options, "linkagea", true); //#29906 + $put($_.options, "linkagec", false); //#29907 + } else { //#29910 + $put($_.options, "linkagea", false); //#29909 + $put($_.options, "linkagec", true); //#29910 + } //#29910 + $k[$j++] = $_.linear; //#29912 + $k[$j++] = Infinity; //#29912 + var _g = $_.options; //#29912 + $forall(_g); //#29912 + var _h = $d(); //#29912 + $k[$j++] = _h; //#29912 + bwipp_gs1_128(); //#29912 + var _i = $k[--$j]; //#29913 + $_.linsbs = $get(_i, "sbs"); //#29913 + $_.linheight = $get($get(_i, "bhs"), 0) * 72; //#29914 + $k[$j++] = _i; //#29915 + if (!$_.usematrix) { //#29915 + bwipp_renlinear(); //#29915 + } else { //#29915 + $j--; //#29915 + } //#29915 + $k[$j++] = Infinity; //#29918 + $k[$j++] = 1; //#29919 + $forall($_.linsbs, function() { //#29919 + var _o = $k[--$j]; //#29919 + var _p = $k[--$j]; //#29919 + var _q = (_p == 0) ? 1 : 0; //#29919 + $k[$j++] = _p; //#29919 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#29919 + $k[$j++] = _q //#29919 + } //#29919 + }); //#29919 + $astore($a($counttomark() - 1)); //#29920 + $_.sep = $k[--$j]; //#29920 + $j -= 2; //#29920 + if (!$_.usematrix) { //#29931 + $$.rmoveto(0, $_.linheight); //#29922 + var _12 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], ["pixx", $_.sep.length], @@ -37713,98 +38183,94 @@ function bwipp_gs1_128composite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29607 - $k[$j++] = _11; //#29608 - bwipp_renmatrix(); //#29608 - } //#29608 - if ($eq($_.linktype, "a")) { //#29617 - $_.s = ~~($f($_.linwidth - 2) / 11); //#29613 - $_.p = ~~(($_.s - 9) / 2); //#29614 - $k[$j++] = 'x'; //#29615 - $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29615 - if ($_.p == 0) { //#29615 - var _18 = $k[--$j]; //#29615 - $k[$j++] = $f(_18 + 2); //#29615 - } //#29615 - var _19 = $k[--$j]; //#29615 - $_[$k[--$j]] = $f(_19 - 99); //#29615 - } else { //#29617 - $_.x = -7; //#29617 - } //#29617 - if (!$_.usematrix) { //#29675 - $$.rmoveto($_.x, 1); //#29621 - $k[$j++] = $_.compsym; //#29621 - bwipp_renmatrix(); //#29621 - $$.restore(); //#29623 - } else { //#29675 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29625 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29626 - $k[$j++] = Infinity; //#29629 - $forall($_.linsbs, function() { //#29629 - var _1J = $k[--$j]; //#29629 - var _1K = $k[--$j]; //#29629 - var _1L = (_1K == 1) ? 0 : 1; //#29629 - $k[$j++] = _1K; //#29629 - for (var _1M = 0, _1N = _1J; _1M < _1N; _1M++) { //#29629 - $k[$j++] = _1L //#29629 - } //#29629 - }); //#29629 - $_.linpixs = $a(); //#29629 - if ($_.x > 0) { //#29637 - $k[$j++] = Infinity; //#29633 - for (var _1R = 0, _1S = $_.x; _1R < _1S; _1R++) { //#29633 - $k[$j++] = 0; //#29633 - } //#29633 - $_.cclpad = $a(); //#29633 - $_.linlpad = $a(0); //#29634 - } else { //#29637 - $_.cclpad = $a(0); //#29636 - $k[$j++] = Infinity; //#29637 - for (var _1X = 0, _1Y = -$_.x; _1X < _1Y; _1X++) { //#29637 - $k[$j++] = 0; //#29637 - } //#29637 - $_.linlpad = $a(); //#29637 - } //#29637 - $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29640 - if ($_.diff > 0) { //#29646 - $k[$j++] = Infinity; //#29642 - for (var _1f = 0, _1g = $_.diff; _1f < _1g; _1f++) { //#29642 - $k[$j++] = 0; //#29642 - } //#29642 - $_.ccrpad = $a(); //#29642 - $_.linrpad = $a(0); //#29643 - } else { //#29646 - $_.ccrpad = $a(0); //#29645 - $k[$j++] = Infinity; //#29646 - for (var _1l = 0, _1m = -$_.diff; _1l < _1m; _1l++) { //#29646 - $k[$j++] = 0; //#29646 - } //#29646 - $_.linrpad = $a(); //#29646 - } //#29646 - $_.linheight = ~~$_.linheight; //#29649 - var _1q = $eq($_.linktype, "a") ? 2 : 3; //#29650 - $_.ccrepeat = _1q; //#29650 - $k[$j++] = Infinity; //#29657 - for (var _1u = 0, _1v = $_.ccpixx, _1t = $_.ccpixs.length - 1; _1v < 0 ? _1u >= _1t : _1u <= _1t; _1u += _1v) { //#29655 - $_.i = _1u; //#29653 - for (var _1x = 0, _1y = $_.ccrepeat; _1x < _1y; _1x++) { //#29654 - $aload($_.cclpad); //#29654 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 - $aload($_.ccrpad); //#29654 - } //#29654 - } //#29654 - $aload($_.linlpad); //#29656 - $aload($_.sep); //#29656 - $aload($_.linrpad); //#29656 - for (var _29 = 0, _2A = $_.linheight; _29 < _2A; _29++) { //#29657 - $aload($_.linlpad); //#29657 - $aload($_.linpixs); //#29657 - $aload($_.linrpad); //#29657 - } //#29657 - $_.pixs = $a(); //#29657 - $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29660 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29661 - var _2Q = new Map([ + ]); //#29929 + $k[$j++] = _12; //#29930 + bwipp_renmatrix(); //#29930 + } //#29930 + if ($eq($_.linktype, "a")) { //#29939 + $_.s = ~~($f($_.linwidth - 2) / 11); //#29935 + $_.p = ~~(($_.s - 9) / 2); //#29936 + $k[$j++] = 'x'; //#29937 + $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29937 + if ($_.p == 0) { //#29937 + var _19 = $k[--$j]; //#29937 + $k[$j++] = $f(_19 + 2); //#29937 + } //#29937 + var _1A = $k[--$j]; //#29937 + $_[$k[--$j]] = $f(_1A - 99); //#29937 + } else { //#29939 + $_.x = -7; //#29939 + } //#29939 + if (!$_.usematrix) { //#29996 + $$.rmoveto($_.x, 1); //#29943 + $k[$j++] = $_.compsym; //#29943 + bwipp_renmatrix(); //#29943 + $$.restore(); //#29945 + } else { //#29996 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29947 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29948 + $k[$j++] = Infinity; //#29950 + $forall($_.linsbs, function() { //#29951 + var _1K = $k[--$j]; //#29951 + var _1L = $k[--$j]; //#29951 + var _1M = (_1L == 1) ? 0 : 1; //#29951 + $k[$j++] = _1L; //#29951 + for (var _1N = 0, _1O = _1K; _1N < _1O; _1N++) { //#29951 + $k[$j++] = _1M //#29951 + } //#29951 + }); //#29951 + $_.linpixs = $a(); //#29951 + if ($_.x > 0) { //#29959 + $k[$j++] = Infinity; //#29955 + for (var _1S = 0, _1T = $_.x; _1S < _1T; _1S++) { //#29955 + $k[$j++] = 0; //#29955 + } //#29955 + $_.cclpad = $a(); //#29955 + $_.linlpad = $a(0); //#29956 + } else { //#29959 + $_.cclpad = $a(0); //#29958 + $k[$j++] = Infinity; //#29959 + for (var _1Y = 0, _1Z = -$_.x; _1Y < _1Z; _1Y++) { //#29959 + $k[$j++] = 0; //#29959 + } //#29959 + $_.linlpad = $a(); //#29959 + } //#29959 + $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29962 + if ($_.diff > 0) { //#29968 + $k[$j++] = Infinity; //#29964 + for (var _1g = 0, _1h = $_.diff; _1g < _1h; _1g++) { //#29964 + $k[$j++] = 0; //#29964 + } //#29964 + $_.ccrpad = $a(); //#29964 + $_.linrpad = $a(0); //#29965 + } else { //#29968 + $_.ccrpad = $a(0); //#29967 + $k[$j++] = Infinity; //#29968 + for (var _1m = 0, _1n = -$_.diff; _1m < _1n; _1m++) { //#29968 + $k[$j++] = 0; //#29968 + } //#29968 + $_.linrpad = $a(); //#29968 + } //#29968 + $_.linheight = ~~$_.linheight; //#29971 + $k[$j++] = Infinity; //#29972 + for (var _1t = 0, _1u = $_.ccpixx, _1s = $_.ccpixs.length - 1; _1u < 0 ? _1t >= _1s : _1t <= _1s; _1t += _1u) { //#29976 + $_.i = _1t; //#29974 + $aload($_.cclpad); //#29975 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29975 + $aload($_.ccrpad); //#29975 + } //#29975 + $aload($_.linlpad); //#29977 + $aload($_.sep); //#29977 + $aload($_.linrpad); //#29977 + for (var _25 = 0, _26 = $_.linheight; _25 < _26; _25++) { //#29978 + $aload($_.linlpad); //#29978 + $aload($_.linpixs); //#29978 + $aload($_.linrpad); //#29978 + } //#29978 + $_.pixs = $a(); //#29978 + $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29981 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29982 + var _2M = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37812,1671 +38278,1709 @@ function bwipp_gs1_128composite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29669 - $k[$j++] = _2Q; //#29676 - if (!$_.dontdraw) { //#29676 - $$.save(); //#29673 - bwipp_renmatrix(); //#29674 - $$.restore(); //#29675 - } //#29675 - } //#29675 - $_ = Object.getPrototypeOf($_); //#29679 -} - + ]); //#29990 + $k[$j++] = _2M; //#29997 + if (!$_.dontdraw) { //#29997 + $$.save(); //#29994 + bwipp_renmatrix(); //#29995 + $$.restore(); //#29996 + } //#29996 + } //#29996 + $_ = Object.getPrototypeOf($_); //#30000 +} //bwipp_gs1_128composite function bwipp_gs1datamatrix() { - $_ = Object.create($_); //#29709 - $_.dontdraw = false; //#29712 - $_.parse = false; //#29713 - $_.dontlint = false; //#29714 - $_.lintreqs = true; //#29715 - $_.gssep = false; //#29716 - $k[$j++] = $_; //#29718 - bwipp_processoptions(); //#29718 - $_.options = $k[--$j]; //#29718 - $_.barcode = $k[--$j]; //#29719 - $k[$j++] = $_.barcode; //#29721 - $k[$j++] = 'ai'; //#29721 - bwipp_gs1process(); //#29721 - $_.fncs = $k[--$j]; //#29722 - $_.vals = $k[--$j]; //#29723 - $_.ais = $k[--$j]; //#29724 - $_.fnc1 = -1; //#29727 - $_.dmtx = $a([$_.fnc1]); //#29728 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29744 - $_.i = _A; //#29730 - $_.ai = $get($_.ais, $_.i); //#29731 - $_.val = $get($_.vals, $_.i); //#29732 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29733 - $puti(_K, 0, $_.dmtx); //#29734 - $k[$j++] = _K; //#29735 - $k[$j++] = _K; //#29735 - $k[$j++] = $_.dmtx.length; //#29735 - $k[$j++] = $_.ai; //#29735 - $k[$j++] = Infinity; //#29735 - var _O = $k[--$j]; //#29735 - var _P = $k[--$j]; //#29735 - $k[$j++] = _O; //#29735 - $forall(_P); //#29735 - var _Q = $a(); //#29735 - var _R = $k[--$j]; //#29735 - $puti($k[--$j], _R, _Q); //#29735 - var _T = $k[--$j]; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29736 - $k[$j++] = $_.val; //#29736 - $k[$j++] = Infinity; //#29736 - var _X = $k[--$j]; //#29736 - var _Y = $k[--$j]; //#29736 - $k[$j++] = _X; //#29736 - $forall(_Y); //#29736 - var _Z = $a(); //#29736 - var _a = $k[--$j]; //#29736 - $puti($k[--$j], _a, _Z); //#29736 - $_.dmtx = $k[--$j]; //#29737 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29743 - var _j = $a($_.dmtx.length + 1); //#29739 - $puti(_j, 0, $_.dmtx); //#29740 - $k[$j++] = _j; //#29741 - $k[$j++] = _j; //#29741 - $k[$j++] = $_.dmtx.length; //#29741 - if ($_.gssep) { //#29741 - $k[$j++] = 29; //#29741 - } else { //#29741 - $k[$j++] = $_.fnc1; //#29741 - } //#29741 - var _o = $k[--$j]; //#29741 - var _p = $k[--$j]; //#29741 - $put($k[--$j], _p, _o); //#29741 - $_.dmtx = $k[--$j]; //#29742 - } //#29742 - } //#29742 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29747 - $_.i = 0; //#29748 - $_.j = 0; //#29748 - for (;;) { //#29758 - if ($_.i == $_.dmtx.length) { //#29749 - break; //#29749 - } //#29749 - var _y = $get($_.dmtx, $_.i); //#29750 - $k[$j++] = _y; //#29755 - if (_y == $_.fnc1) { //#29754 - $j--; //#29751 - $puti($_.barcode, $_.j, "^FNC1"); //#29751 - $_.j = $_.j + 4; //#29752 - } else { //#29754 - $put($_.barcode, $_.j, $k[--$j]); //#29754 - } //#29754 - $_.i = $_.i + 1; //#29756 - $_.j = $_.j + 1; //#29757 - } //#29757 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29759 - delete $_.options["parse"]; //#29762 - $put($_.options, "dontdraw", true); //#29763 - $put($_.options, "parsefnc", true); //#29764 - $k[$j++] = 'args'; //#29765 - $k[$j++] = $_.barcode; //#29765 - $k[$j++] = $_.options; //#29765 - bwipp_datamatrix(); //#29765 - var _1G = $k[--$j]; //#29765 - $_[$k[--$j]] = _1G; //#29765 - $put($_.args, "opt", $_.options); //#29767 - $k[$j++] = $_.args; //#29770 - if (!$_.dontdraw) { //#29770 - bwipp_renmatrix(); //#29770 - } //#29770 - $_ = Object.getPrototypeOf($_); //#29772 -} - + $_ = Object.create($_); //#30030 + $_.dontdraw = false; //#30033 + $_.parse = false; //#30034 + $_.dontlint = false; //#30035 + $_.lintreqs = true; //#30036 + $_.gssep = false; //#30037 + $k[$j++] = $_; //#30039 + bwipp_processoptions(); //#30039 + $_.options = $k[--$j]; //#30039 + $_.barcode = $k[--$j]; //#30040 + $k[$j++] = $_.barcode; //#30042 + $k[$j++] = 'ai'; //#30042 + bwipp_gs1process(); //#30042 + $_.fncs = $k[--$j]; //#30043 + $_.vals = $k[--$j]; //#30044 + $_.ais = $k[--$j]; //#30045 + $_.fnc1 = -1; //#30048 + $_.dmtx = $a([$_.fnc1]); //#30049 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30065 + $_.i = _A; //#30051 + $_.ai = $get($_.ais, $_.i); //#30052 + $_.val = $get($_.vals, $_.i); //#30053 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30054 + $puti(_K, 0, $_.dmtx); //#30055 + $k[$j++] = _K; //#30056 + $k[$j++] = _K; //#30056 + $k[$j++] = $_.dmtx.length; //#30056 + $k[$j++] = $_.ai; //#30056 + $k[$j++] = Infinity; //#30056 + var _O = $k[--$j]; //#30056 + var _P = $k[--$j]; //#30056 + $k[$j++] = _O; //#30056 + $forall(_P); //#30056 + var _Q = $a(); //#30056 + var _R = $k[--$j]; //#30056 + $puti($k[--$j], _R, _Q); //#30056 + var _T = $k[--$j]; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30057 + $k[$j++] = $_.val; //#30057 + $k[$j++] = Infinity; //#30057 + var _X = $k[--$j]; //#30057 + var _Y = $k[--$j]; //#30057 + $k[$j++] = _X; //#30057 + $forall(_Y); //#30057 + var _Z = $a(); //#30057 + var _a = $k[--$j]; //#30057 + $puti($k[--$j], _a, _Z); //#30057 + $_.dmtx = $k[--$j]; //#30058 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30064 + var _j = $a($_.dmtx.length + 1); //#30060 + $puti(_j, 0, $_.dmtx); //#30061 + $k[$j++] = _j; //#30062 + $k[$j++] = _j; //#30062 + $k[$j++] = $_.dmtx.length; //#30062 + if ($_.gssep) { //#30062 + $k[$j++] = 29; //#30062 + } else { //#30062 + $k[$j++] = $_.fnc1; //#30062 + } //#30062 + var _o = $k[--$j]; //#30062 + var _p = $k[--$j]; //#30062 + $put($k[--$j], _p, _o); //#30062 + $_.dmtx = $k[--$j]; //#30063 + } //#30063 + } //#30063 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30068 + $_.i = 0; //#30069 + $_.j = 0; //#30069 + for (;;) { //#30079 + if ($_.i == $_.dmtx.length) { //#30070 + break; //#30070 + } //#30070 + var _y = $get($_.dmtx, $_.i); //#30071 + $k[$j++] = _y; //#30076 + if (_y == $_.fnc1) { //#30075 + $j--; //#30072 + $puti($_.barcode, $_.j, "^FNC1"); //#30072 + $_.j = $_.j + 4; //#30073 + } else { //#30075 + $put($_.barcode, $_.j, $k[--$j]); //#30075 + } //#30075 + $_.i = $_.i + 1; //#30077 + $_.j = $_.j + 1; //#30078 + } //#30078 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30080 + delete $_.options["parse"]; //#30083 + $put($_.options, "dontdraw", true); //#30084 + $put($_.options, "parsefnc", true); //#30085 + $k[$j++] = 'args'; //#30086 + $k[$j++] = $_.barcode; //#30086 + $k[$j++] = $_.options; //#30086 + bwipp_datamatrix(); //#30086 + var _1G = $k[--$j]; //#30086 + $_[$k[--$j]] = _1G; //#30086 + $put($_.args, "opt", $_.options); //#30088 + $k[$j++] = $_.args; //#30091 + if (!$_.dontdraw) { //#30091 + bwipp_renmatrix(); //#30091 + } //#30091 + $_ = Object.getPrototypeOf($_); //#30093 +} //bwipp_gs1datamatrix function bwipp_gs1datamatrixrectangular() { - $_ = Object.create($_); //#29802 - $_.parse = false; //#29805 - $_.dontlint = false; //#29806 - $_.lintreqs = true; //#29807 - $_.dontdraw = false; //#29808 - $_.gssep = false; //#29809 - $k[$j++] = $_; //#29811 - bwipp_processoptions(); //#29811 - $_.options = $k[--$j]; //#29811 - $_.barcode = $k[--$j]; //#29812 - $k[$j++] = $_.barcode; //#29814 - $k[$j++] = 'ai'; //#29814 - bwipp_gs1process(); //#29814 - $_.fncs = $k[--$j]; //#29815 - $_.vals = $k[--$j]; //#29816 - $_.ais = $k[--$j]; //#29817 - $_.fnc1 = -1; //#29820 - $_.dmtx = $a([$_.fnc1]); //#29821 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29837 - $_.i = _A; //#29823 - $_.ai = $get($_.ais, $_.i); //#29824 - $_.val = $get($_.vals, $_.i); //#29825 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29826 - $puti(_K, 0, $_.dmtx); //#29827 - $k[$j++] = _K; //#29828 - $k[$j++] = _K; //#29828 - $k[$j++] = $_.dmtx.length; //#29828 - $k[$j++] = $_.ai; //#29828 - $k[$j++] = Infinity; //#29828 - var _O = $k[--$j]; //#29828 - var _P = $k[--$j]; //#29828 - $k[$j++] = _O; //#29828 - $forall(_P); //#29828 - var _Q = $a(); //#29828 - var _R = $k[--$j]; //#29828 - $puti($k[--$j], _R, _Q); //#29828 - var _T = $k[--$j]; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29829 - $k[$j++] = $_.val; //#29829 - $k[$j++] = Infinity; //#29829 - var _X = $k[--$j]; //#29829 - var _Y = $k[--$j]; //#29829 - $k[$j++] = _X; //#29829 - $forall(_Y); //#29829 - var _Z = $a(); //#29829 - var _a = $k[--$j]; //#29829 - $puti($k[--$j], _a, _Z); //#29829 - $_.dmtx = $k[--$j]; //#29830 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29836 - var _j = $a($_.dmtx.length + 1); //#29832 - $puti(_j, 0, $_.dmtx); //#29833 - $k[$j++] = _j; //#29834 - $k[$j++] = _j; //#29834 - $k[$j++] = $_.dmtx.length; //#29834 - if ($_.gssep) { //#29834 - $k[$j++] = 29; //#29834 - } else { //#29834 - $k[$j++] = $_.fnc1; //#29834 - } //#29834 - var _o = $k[--$j]; //#29834 - var _p = $k[--$j]; //#29834 - $put($k[--$j], _p, _o); //#29834 - $_.dmtx = $k[--$j]; //#29835 - } //#29835 - } //#29835 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29840 - $_.i = 0; //#29841 - $_.j = 0; //#29841 - for (;;) { //#29851 - if ($_.i == $_.dmtx.length) { //#29842 - break; //#29842 - } //#29842 - var _y = $get($_.dmtx, $_.i); //#29843 - $k[$j++] = _y; //#29848 - if (_y == $_.fnc1) { //#29847 - $j--; //#29844 - $puti($_.barcode, $_.j, "^FNC1"); //#29844 - $_.j = $_.j + 4; //#29845 - } else { //#29847 - $put($_.barcode, $_.j, $k[--$j]); //#29847 - } //#29847 - $_.i = $_.i + 1; //#29849 - $_.j = $_.j + 1; //#29850 - } //#29850 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29852 - delete $_.options["parse"]; //#29855 - $put($_.options, "dontdraw", true); //#29856 - $put($_.options, "parsefnc", true); //#29857 - $put($_.options, "format", "rectangle"); //#29858 - $k[$j++] = 'args'; //#29859 - $k[$j++] = $_.barcode; //#29859 - $k[$j++] = $_.options; //#29859 - bwipp_datamatrix(); //#29859 - var _1H = $k[--$j]; //#29859 - $_[$k[--$j]] = _1H; //#29859 - $put($_.args, "opt", $_.options); //#29861 - $k[$j++] = $_.args; //#29864 - if (!$_.dontdraw) { //#29864 - bwipp_renmatrix(); //#29864 - } //#29864 - $_ = Object.getPrototypeOf($_); //#29866 -} - + $_ = Object.create($_); //#30123 + $_.parse = false; //#30126 + $_.dontlint = false; //#30127 + $_.lintreqs = true; //#30128 + $_.dontdraw = false; //#30129 + $_.gssep = false; //#30130 + $k[$j++] = $_; //#30132 + bwipp_processoptions(); //#30132 + $_.options = $k[--$j]; //#30132 + $_.barcode = $k[--$j]; //#30133 + $k[$j++] = $_.barcode; //#30135 + $k[$j++] = 'ai'; //#30135 + bwipp_gs1process(); //#30135 + $_.fncs = $k[--$j]; //#30136 + $_.vals = $k[--$j]; //#30137 + $_.ais = $k[--$j]; //#30138 + $_.fnc1 = -1; //#30141 + $_.dmtx = $a([$_.fnc1]); //#30142 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30158 + $_.i = _A; //#30144 + $_.ai = $get($_.ais, $_.i); //#30145 + $_.val = $get($_.vals, $_.i); //#30146 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30147 + $puti(_K, 0, $_.dmtx); //#30148 + $k[$j++] = _K; //#30149 + $k[$j++] = _K; //#30149 + $k[$j++] = $_.dmtx.length; //#30149 + $k[$j++] = $_.ai; //#30149 + $k[$j++] = Infinity; //#30149 + var _O = $k[--$j]; //#30149 + var _P = $k[--$j]; //#30149 + $k[$j++] = _O; //#30149 + $forall(_P); //#30149 + var _Q = $a(); //#30149 + var _R = $k[--$j]; //#30149 + $puti($k[--$j], _R, _Q); //#30149 + var _T = $k[--$j]; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30150 + $k[$j++] = $_.val; //#30150 + $k[$j++] = Infinity; //#30150 + var _X = $k[--$j]; //#30150 + var _Y = $k[--$j]; //#30150 + $k[$j++] = _X; //#30150 + $forall(_Y); //#30150 + var _Z = $a(); //#30150 + var _a = $k[--$j]; //#30150 + $puti($k[--$j], _a, _Z); //#30150 + $_.dmtx = $k[--$j]; //#30151 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30157 + var _j = $a($_.dmtx.length + 1); //#30153 + $puti(_j, 0, $_.dmtx); //#30154 + $k[$j++] = _j; //#30155 + $k[$j++] = _j; //#30155 + $k[$j++] = $_.dmtx.length; //#30155 + if ($_.gssep) { //#30155 + $k[$j++] = 29; //#30155 + } else { //#30155 + $k[$j++] = $_.fnc1; //#30155 + } //#30155 + var _o = $k[--$j]; //#30155 + var _p = $k[--$j]; //#30155 + $put($k[--$j], _p, _o); //#30155 + $_.dmtx = $k[--$j]; //#30156 + } //#30156 + } //#30156 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30161 + $_.i = 0; //#30162 + $_.j = 0; //#30162 + for (;;) { //#30172 + if ($_.i == $_.dmtx.length) { //#30163 + break; //#30163 + } //#30163 + var _y = $get($_.dmtx, $_.i); //#30164 + $k[$j++] = _y; //#30169 + if (_y == $_.fnc1) { //#30168 + $j--; //#30165 + $puti($_.barcode, $_.j, "^FNC1"); //#30165 + $_.j = $_.j + 4; //#30166 + } else { //#30168 + $put($_.barcode, $_.j, $k[--$j]); //#30168 + } //#30168 + $_.i = $_.i + 1; //#30170 + $_.j = $_.j + 1; //#30171 + } //#30171 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30173 + delete $_.options["parse"]; //#30176 + $put($_.options, "dontdraw", true); //#30177 + $put($_.options, "parsefnc", true); //#30178 + $put($_.options, "format", "rectangle"); //#30179 + $k[$j++] = 'args'; //#30180 + $k[$j++] = $_.barcode; //#30180 + $k[$j++] = $_.options; //#30180 + bwipp_datamatrix(); //#30180 + var _1H = $k[--$j]; //#30180 + $_[$k[--$j]] = _1H; //#30180 + $put($_.args, "opt", $_.options); //#30182 + $k[$j++] = $_.args; //#30185 + if (!$_.dontdraw) { //#30185 + bwipp_renmatrix(); //#30185 + } //#30185 + $_ = Object.getPrototypeOf($_); //#30187 +} //bwipp_gs1datamatrixrectangular function bwipp_gs1dldatamatrix() { - $_ = Object.create($_); //#29896 - $_.parse = false; //#29899 - $_.dontlint = false; //#29900 - $_.lintreqs = true; //#29901 - $_.dontdraw = false; //#29902 - $k[$j++] = $_; //#29904 - bwipp_processoptions(); //#29904 - $_.options = $k[--$j]; //#29904 - $_.barcode = $k[--$j]; //#29905 + $_ = Object.create($_); //#30217 + $_.parse = false; //#30220 + $_.dontlint = false; //#30221 + $_.lintreqs = true; //#30222 + $_.dontdraw = false; //#30223 + $k[$j++] = $_; //#30225 + bwipp_processoptions(); //#30225 + $_.options = $k[--$j]; //#30225 + $_.barcode = $k[--$j]; //#30226 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#29911 - $_.fncvals = _3; //#29912 - $k[$j++] = 'barcode'; //#29913 - $k[$j++] = $_.barcode; //#29913 - $k[$j++] = $_.fncvals; //#29913 - bwipp_parseinput(); //#29913 - var _6 = $k[--$j]; //#29913 - $_[$k[--$j]] = _6; //#29913 - $k[$j++] = $_.barcode; //#29915 - $k[$j++] = 'dl'; //#29915 - bwipp_gs1process(); //#29915 - $j -= 3; //#29915 - delete $_.options["parse"]; //#29918 - $put($_.options, "dontdraw", true); //#29919 - $k[$j++] = 'args'; //#29920 - $k[$j++] = $_.barcode; //#29920 - $k[$j++] = $_.options; //#29920 - bwipp_datamatrix(); //#29920 - var _D = $k[--$j]; //#29920 - $_[$k[--$j]] = _D; //#29920 - $put($_.args, "opt", $_.options); //#29922 - $k[$j++] = $_.args; //#29925 - if (!$_.dontdraw) { //#29925 - bwipp_renmatrix(); //#29925 - } //#29925 - $_ = Object.getPrototypeOf($_); //#29927 -} - + ]); //#30232 + $_.fncvals = _3; //#30233 + $k[$j++] = 'barcode'; //#30234 + $k[$j++] = $_.barcode; //#30234 + $k[$j++] = $_.fncvals; //#30234 + bwipp_parseinput(); //#30234 + var _6 = $k[--$j]; //#30234 + $_[$k[--$j]] = _6; //#30234 + $k[$j++] = $_.barcode; //#30236 + $k[$j++] = 'dl'; //#30236 + bwipp_gs1process(); //#30236 + $j -= 3; //#30236 + delete $_.options["parse"]; //#30239 + $put($_.options, "dontdraw", true); //#30240 + $k[$j++] = 'args'; //#30241 + $k[$j++] = $_.barcode; //#30241 + $k[$j++] = $_.options; //#30241 + bwipp_datamatrix(); //#30241 + var _D = $k[--$j]; //#30241 + $_[$k[--$j]] = _D; //#30241 + $put($_.args, "opt", $_.options); //#30243 + $k[$j++] = $_.args; //#30246 + if (!$_.dontdraw) { //#30246 + bwipp_renmatrix(); //#30246 + } //#30246 + $_ = Object.getPrototypeOf($_); //#30248 +} //bwipp_gs1dldatamatrix function bwipp_gs1qrcode() { - $_ = Object.create($_); //#29956 - $_.parse = false; //#29959 - $_.dontlint = false; //#29960 - $_.lintreqs = true; //#29961 - $_.dontdraw = false; //#29962 - $k[$j++] = $_; //#29964 - bwipp_processoptions(); //#29964 - $_.options = $k[--$j]; //#29964 - $_.barcode = $k[--$j]; //#29965 - $k[$j++] = $_.barcode; //#29967 - $k[$j++] = 'ai'; //#29967 - bwipp_gs1process(); //#29967 - $_.fncs = $k[--$j]; //#29968 - $_.vals = $k[--$j]; //#29969 - $_.ais = $k[--$j]; //#29970 - $_.fnc1 = -1; //#29973 - $_.qrc = $a([$_.fnc1]); //#29974 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29990 - $_.i = _A; //#29976 - $_.ai = $get($_.ais, $_.i); //#29977 - $_.val = $get($_.vals, $_.i); //#29978 - var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#29979 - $puti(_K, 0, $_.qrc); //#29980 - $k[$j++] = _K; //#29981 - $k[$j++] = _K; //#29981 - $k[$j++] = $_.qrc.length; //#29981 - $k[$j++] = $_.ai; //#29981 - $k[$j++] = Infinity; //#29981 - var _O = $k[--$j]; //#29981 - var _P = $k[--$j]; //#29981 - $k[$j++] = _O; //#29981 - $forall(_P); //#29981 - var _Q = $a(); //#29981 - var _R = $k[--$j]; //#29981 - $puti($k[--$j], _R, _Q); //#29981 - var _T = $k[--$j]; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = $_.qrc.length + $_.ai.length; //#29982 - $k[$j++] = $_.val; //#29982 - $k[$j++] = Infinity; //#29982 - var _X = $k[--$j]; //#29982 - var _Y = $k[--$j]; //#29982 - $k[$j++] = _X; //#29982 - $forall(_Y); //#29982 - var _Z = $a(); //#29982 - var _a = $k[--$j]; //#29982 - $puti($k[--$j], _a, _Z); //#29982 - $_.qrc = $k[--$j]; //#29983 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29989 - var _j = $a($_.qrc.length + 1); //#29985 - $puti(_j, 0, $_.qrc); //#29986 - $put(_j, $_.qrc.length, $_.fnc1); //#29987 - $_.qrc = _j; //#29988 - } //#29988 - } //#29988 - $_.barcode = $s(($_.qrc.length + 1) * 5); //#29993 - $_.i = 0; //#29994 - $_.j = 0; //#29994 - for (;;) { //#30004 - if ($_.i == $_.qrc.length) { //#29995 - break; //#29995 - } //#29995 - var _t = $get($_.qrc, $_.i); //#29996 - $k[$j++] = _t; //#30001 - if (_t == $_.fnc1) { //#30000 - $j--; //#29997 - $puti($_.barcode, $_.j, "^FNC1"); //#29997 - $_.j = $_.j + 4; //#29998 - } else { //#30000 - $put($_.barcode, $_.j, $k[--$j]); //#30000 - } //#30000 - $_.i = $_.i + 1; //#30002 - $_.j = $_.j + 1; //#30003 - } //#30003 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30005 - delete $_.options["parse"]; //#30008 - $put($_.options, "dontdraw", true); //#30009 - $put($_.options, "parsefnc", true); //#30010 - $k[$j++] = 'args'; //#30011 - $k[$j++] = $_.barcode; //#30011 - $k[$j++] = $_.options; //#30011 - bwipp_qrcode(); //#30011 - var _1B = $k[--$j]; //#30011 - $_[$k[--$j]] = _1B; //#30011 - $put($_.args, "opt", $_.options); //#30013 - $k[$j++] = $_.args; //#30016 - if (!$_.dontdraw) { //#30016 - bwipp_renmatrix(); //#30016 - } //#30016 - $_ = Object.getPrototypeOf($_); //#30018 -} - + $_ = Object.create($_); //#30277 + $_.parse = false; //#30280 + $_.dontlint = false; //#30281 + $_.lintreqs = true; //#30282 + $_.dontdraw = false; //#30283 + $k[$j++] = $_; //#30285 + bwipp_processoptions(); //#30285 + $_.options = $k[--$j]; //#30285 + $_.barcode = $k[--$j]; //#30286 + $k[$j++] = $_.barcode; //#30288 + $k[$j++] = 'ai'; //#30288 + bwipp_gs1process(); //#30288 + $_.fncs = $k[--$j]; //#30289 + $_.vals = $k[--$j]; //#30290 + $_.ais = $k[--$j]; //#30291 + $_.fnc1 = -1; //#30294 + $_.qrc = $a([$_.fnc1]); //#30295 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30311 + $_.i = _A; //#30297 + $_.ai = $get($_.ais, $_.i); //#30298 + $_.val = $get($_.vals, $_.i); //#30299 + var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#30300 + $puti(_K, 0, $_.qrc); //#30301 + $k[$j++] = _K; //#30302 + $k[$j++] = _K; //#30302 + $k[$j++] = $_.qrc.length; //#30302 + $k[$j++] = $_.ai; //#30302 + $k[$j++] = Infinity; //#30302 + var _O = $k[--$j]; //#30302 + var _P = $k[--$j]; //#30302 + $k[$j++] = _O; //#30302 + $forall(_P); //#30302 + var _Q = $a(); //#30302 + var _R = $k[--$j]; //#30302 + $puti($k[--$j], _R, _Q); //#30302 + var _T = $k[--$j]; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = $_.qrc.length + $_.ai.length; //#30303 + $k[$j++] = $_.val; //#30303 + $k[$j++] = Infinity; //#30303 + var _X = $k[--$j]; //#30303 + var _Y = $k[--$j]; //#30303 + $k[$j++] = _X; //#30303 + $forall(_Y); //#30303 + var _Z = $a(); //#30303 + var _a = $k[--$j]; //#30303 + $puti($k[--$j], _a, _Z); //#30303 + $_.qrc = $k[--$j]; //#30304 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30310 + var _j = $a($_.qrc.length + 1); //#30306 + $puti(_j, 0, $_.qrc); //#30307 + $put(_j, $_.qrc.length, $_.fnc1); //#30308 + $_.qrc = _j; //#30309 + } //#30309 + } //#30309 + $_.barcode = $s(($_.qrc.length + 1) * 5); //#30314 + $_.i = 0; //#30315 + $_.j = 0; //#30315 + for (;;) { //#30325 + if ($_.i == $_.qrc.length) { //#30316 + break; //#30316 + } //#30316 + var _t = $get($_.qrc, $_.i); //#30317 + $k[$j++] = _t; //#30322 + if (_t == $_.fnc1) { //#30321 + $j--; //#30318 + $puti($_.barcode, $_.j, "^FNC1"); //#30318 + $_.j = $_.j + 4; //#30319 + } else { //#30321 + $put($_.barcode, $_.j, $k[--$j]); //#30321 + } //#30321 + $_.i = $_.i + 1; //#30323 + $_.j = $_.j + 1; //#30324 + } //#30324 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30326 + delete $_.options["parse"]; //#30329 + $put($_.options, "dontdraw", true); //#30330 + $put($_.options, "parsefnc", true); //#30331 + $k[$j++] = 'args'; //#30332 + $k[$j++] = $_.barcode; //#30332 + $k[$j++] = $_.options; //#30332 + bwipp_qrcode(); //#30332 + var _1B = $k[--$j]; //#30332 + $_[$k[--$j]] = _1B; //#30332 + $put($_.args, "opt", $_.options); //#30334 + $k[$j++] = $_.args; //#30337 + if (!$_.dontdraw) { //#30337 + bwipp_renmatrix(); //#30337 + } //#30337 + $_ = Object.getPrototypeOf($_); //#30339 +} //bwipp_gs1qrcode function bwipp_gs1dlqrcode() { - $_ = Object.create($_); //#30048 - $_.parse = false; //#30051 - $_.dontlint = false; //#30052 - $_.lintreqs = true; //#30053 - $_.dontdraw = false; //#30054 - $k[$j++] = $_; //#30056 - bwipp_processoptions(); //#30056 - $_.options = $k[--$j]; //#30056 - $_.barcode = $k[--$j]; //#30057 + $_ = Object.create($_); //#30369 + $_.parse = false; //#30372 + $_.dontlint = false; //#30373 + $_.lintreqs = true; //#30374 + $_.dontdraw = false; //#30375 + $k[$j++] = $_; //#30377 + bwipp_processoptions(); //#30377 + $_.options = $k[--$j]; //#30377 + $_.barcode = $k[--$j]; //#30378 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#30063 - $_.fncvals = _3; //#30064 - $k[$j++] = 'barcode'; //#30065 - $k[$j++] = $_.barcode; //#30065 - $k[$j++] = $_.fncvals; //#30065 - bwipp_parseinput(); //#30065 - var _6 = $k[--$j]; //#30065 - $_[$k[--$j]] = _6; //#30065 - $k[$j++] = $_.barcode; //#30067 - $k[$j++] = 'dl'; //#30067 - bwipp_gs1process(); //#30067 - $j -= 3; //#30067 - delete $_.options["parse"]; //#30070 - $put($_.options, "dontdraw", true); //#30071 - $k[$j++] = 'args'; //#30072 - $k[$j++] = $_.barcode; //#30072 - $k[$j++] = $_.options; //#30072 - bwipp_qrcode(); //#30072 - var _D = $k[--$j]; //#30072 - $_[$k[--$j]] = _D; //#30072 - $put($_.args, "opt", $_.options); //#30074 - $k[$j++] = $_.args; //#30077 - if (!$_.dontdraw) { //#30077 - bwipp_renmatrix(); //#30077 - } //#30077 - $_ = Object.getPrototypeOf($_); //#30079 -} - + ]); //#30384 + $_.fncvals = _3; //#30385 + $k[$j++] = 'barcode'; //#30386 + $k[$j++] = $_.barcode; //#30386 + $k[$j++] = $_.fncvals; //#30386 + bwipp_parseinput(); //#30386 + var _6 = $k[--$j]; //#30386 + $_[$k[--$j]] = _6; //#30386 + $k[$j++] = $_.barcode; //#30388 + $k[$j++] = 'dl'; //#30388 + bwipp_gs1process(); //#30388 + $j -= 3; //#30388 + delete $_.options["parse"]; //#30391 + $put($_.options, "dontdraw", true); //#30392 + $k[$j++] = 'args'; //#30393 + $k[$j++] = $_.barcode; //#30393 + $k[$j++] = $_.options; //#30393 + bwipp_qrcode(); //#30393 + var _D = $k[--$j]; //#30393 + $_[$k[--$j]] = _D; //#30393 + $put($_.args, "opt", $_.options); //#30395 + $k[$j++] = $_.args; //#30398 + if (!$_.dontdraw) { //#30398 + bwipp_renmatrix(); //#30398 + } //#30398 + $_ = Object.getPrototypeOf($_); //#30400 +} //bwipp_gs1dlqrcode function bwipp_gs1dotcode() { - $_ = Object.create($_); //#30109 - $_.dontdraw = false; //#30112 - $_.parse = false; //#30113 - $_.dontlint = false; //#30114 - $_.lintreqs = true; //#30115 - $k[$j++] = $_; //#30117 - bwipp_processoptions(); //#30117 - $_.options = $k[--$j]; //#30117 - $_.barcode = $k[--$j]; //#30118 - $k[$j++] = $_.barcode; //#30120 - $k[$j++] = 'ai'; //#30120 - bwipp_gs1process(); //#30120 - $_.fncs = $k[--$j]; //#30121 - $_.vals = $k[--$j]; //#30122 - $_.ais = $k[--$j]; //#30123 - $_.fnc1 = -1; //#30126 - $_.dmtx = $a([$_.fnc1]); //#30127 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30143 - $_.i = _A; //#30129 - $_.ai = $get($_.ais, $_.i); //#30130 - $_.val = $get($_.vals, $_.i); //#30131 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30132 - $puti(_K, 0, $_.dmtx); //#30133 - $k[$j++] = _K; //#30134 - $k[$j++] = _K; //#30134 - $k[$j++] = $_.dmtx.length; //#30134 - $k[$j++] = $_.ai; //#30134 - $k[$j++] = Infinity; //#30134 - var _O = $k[--$j]; //#30134 - var _P = $k[--$j]; //#30134 - $k[$j++] = _O; //#30134 - $forall(_P); //#30134 - var _Q = $a(); //#30134 - var _R = $k[--$j]; //#30134 - $puti($k[--$j], _R, _Q); //#30134 - var _T = $k[--$j]; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#30135 - $k[$j++] = $_.val; //#30135 - $k[$j++] = Infinity; //#30135 - var _X = $k[--$j]; //#30135 - var _Y = $k[--$j]; //#30135 - $k[$j++] = _X; //#30135 - $forall(_Y); //#30135 - var _Z = $a(); //#30135 - var _a = $k[--$j]; //#30135 - $puti($k[--$j], _a, _Z); //#30135 - $_.dmtx = $k[--$j]; //#30136 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30142 - var _j = $a($_.dmtx.length + 1); //#30138 - $puti(_j, 0, $_.dmtx); //#30139 - $put(_j, $_.dmtx.length, $_.fnc1); //#30140 - $_.dmtx = _j; //#30141 - } //#30141 - } //#30141 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30146 - $_.i = 0; //#30147 - $_.j = 0; //#30147 - for (;;) { //#30157 - if ($_.i == $_.dmtx.length) { //#30148 - break; //#30148 - } //#30148 - var _t = $get($_.dmtx, $_.i); //#30149 - $k[$j++] = _t; //#30154 - if (_t == $_.fnc1) { //#30153 - $j--; //#30150 - $puti($_.barcode, $_.j, "^FNC1"); //#30150 - $_.j = $_.j + 4; //#30151 - } else { //#30153 - $put($_.barcode, $_.j, $k[--$j]); //#30153 - } //#30153 - $_.i = $_.i + 1; //#30155 - $_.j = $_.j + 1; //#30156 - } //#30156 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30158 - delete $_.options["parse"]; //#30161 - $put($_.options, "dontdraw", true); //#30162 - $put($_.options, "parsefnc", true); //#30163 - $k[$j++] = 'args'; //#30164 - $k[$j++] = $_.barcode; //#30164 - $k[$j++] = $_.options; //#30164 - bwipp_dotcode(); //#30164 - var _1B = $k[--$j]; //#30164 - $_[$k[--$j]] = _1B; //#30164 - $put($_.args, "opt", $_.options); //#30166 - $k[$j++] = $_.args; //#30169 - if (!$_.dontdraw) { //#30169 - bwipp_renmatrix(); //#30169 - } //#30169 - $_ = Object.getPrototypeOf($_); //#30171 -} - + $_ = Object.create($_); //#30430 + $_.dontdraw = false; //#30433 + $_.parse = false; //#30434 + $_.dontlint = false; //#30435 + $_.lintreqs = true; //#30436 + $k[$j++] = $_; //#30438 + bwipp_processoptions(); //#30438 + $_.options = $k[--$j]; //#30438 + $_.barcode = $k[--$j]; //#30439 + $k[$j++] = $_.barcode; //#30441 + $k[$j++] = 'ai'; //#30441 + bwipp_gs1process(); //#30441 + $_.fncs = $k[--$j]; //#30442 + $_.vals = $k[--$j]; //#30443 + $_.ais = $k[--$j]; //#30444 + $_.fnc1 = -1; //#30447 + $_.dmtx = $a([$_.fnc1]); //#30448 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30464 + $_.i = _A; //#30450 + $_.ai = $get($_.ais, $_.i); //#30451 + $_.val = $get($_.vals, $_.i); //#30452 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30453 + $puti(_K, 0, $_.dmtx); //#30454 + $k[$j++] = _K; //#30455 + $k[$j++] = _K; //#30455 + $k[$j++] = $_.dmtx.length; //#30455 + $k[$j++] = $_.ai; //#30455 + $k[$j++] = Infinity; //#30455 + var _O = $k[--$j]; //#30455 + var _P = $k[--$j]; //#30455 + $k[$j++] = _O; //#30455 + $forall(_P); //#30455 + var _Q = $a(); //#30455 + var _R = $k[--$j]; //#30455 + $puti($k[--$j], _R, _Q); //#30455 + var _T = $k[--$j]; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30456 + $k[$j++] = $_.val; //#30456 + $k[$j++] = Infinity; //#30456 + var _X = $k[--$j]; //#30456 + var _Y = $k[--$j]; //#30456 + $k[$j++] = _X; //#30456 + $forall(_Y); //#30456 + var _Z = $a(); //#30456 + var _a = $k[--$j]; //#30456 + $puti($k[--$j], _a, _Z); //#30456 + $_.dmtx = $k[--$j]; //#30457 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30463 + var _j = $a($_.dmtx.length + 1); //#30459 + $puti(_j, 0, $_.dmtx); //#30460 + $put(_j, $_.dmtx.length, $_.fnc1); //#30461 + $_.dmtx = _j; //#30462 + } //#30462 + } //#30462 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30467 + $_.i = 0; //#30468 + $_.j = 0; //#30468 + for (;;) { //#30478 + if ($_.i == $_.dmtx.length) { //#30469 + break; //#30469 + } //#30469 + var _t = $get($_.dmtx, $_.i); //#30470 + $k[$j++] = _t; //#30475 + if (_t == $_.fnc1) { //#30474 + $j--; //#30471 + $puti($_.barcode, $_.j, "^FNC1"); //#30471 + $_.j = $_.j + 4; //#30472 + } else { //#30474 + $put($_.barcode, $_.j, $k[--$j]); //#30474 + } //#30474 + $_.i = $_.i + 1; //#30476 + $_.j = $_.j + 1; //#30477 + } //#30477 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30479 + delete $_.options["parse"]; //#30482 + $put($_.options, "dontdraw", true); //#30483 + $put($_.options, "parsefnc", true); //#30484 + $k[$j++] = 'args'; //#30485 + $k[$j++] = $_.barcode; //#30485 + $k[$j++] = $_.options; //#30485 + bwipp_dotcode(); //#30485 + var _1B = $k[--$j]; //#30485 + $_[$k[--$j]] = _1B; //#30485 + $put($_.args, "opt", $_.options); //#30487 + $k[$j++] = $_.args; //#30490 + if (!$_.dontdraw) { //#30490 + bwipp_renmatrix(); //#30490 + } //#30490 + $_ = Object.getPrototypeOf($_); //#30492 +} //bwipp_gs1dotcode function bwipp_hibccode39() { - $_ = Object.create($_); //#30202 - $_.dontdraw = false; //#30205 - $_.textfont = "OCR-B"; //#30206 - $_.textsize = 10; //#30207 - $_.textyoffset = -8; //#30208 - $_.textxoffset = 0; //#30209 - $_.validatecheck = false; //#30210 - $k[$j++] = $_; //#30212 - bwipp_processoptions(); //#30212 - $_.options = $k[--$j]; //#30212 - $_.barcode = $k[--$j]; //#30213 - bwipp_loadctx(bwipp_hibccode39) //#30215 - if (!bwipp_hibccode39.__30222__) { //#30222 - $_ = Object.create($_); //#30222 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30219 - $_.charvals = new Map; //#30220 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30221 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30221 - } //#30221 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30221 - bwipp_hibccode39.__30222__ = 1; //#30221 - $_ = Object.getPrototypeOf($_); //#30221 - } //#30221 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30229 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30226 - if (!_D) { //#30228 - $k[$j++] = 'bwipp.hibccode39badCharacter#30227'; //#30227 - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30227 - bwipp_raiseerror(); //#30227 - } //#30227 - } //#30227 - $k[$j++] = 'barlen'; //#30231 - $k[$j++] = $_.barcode.length; //#30231 - if ($_.validatecheck) { //#30231 - var _G = $k[--$j]; //#30231 - $k[$j++] = $f(_G - 1); //#30231 - } //#30231 - var _H = $k[--$j]; //#30231 - $_[$k[--$j]] = _H; //#30231 - $_.checksum = 41; //#30233 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30237 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30236 - } //#30236 - $_.checksum = $_.checksum % 43; //#30238 - if ($_.validatecheck) { //#30244 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30242 - $k[$j++] = 'bwipp.hibccode39badCheckDigit#30241'; //#30241 - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30241 - bwipp_raiseerror(); //#30241 - } //#30241 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30243 - } //#30243 - var _d = $s($f($_.barlen + 2)); //#30246 - $puti(_d, 1, $_.barcode); //#30246 - $_.barcode = _d; //#30246 - $put($_.barcode, 0, 43); //#30247 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30248 - $_.text = $s($f($_.barlen + 4)); //#30250 - $put($_.text, 0, 42); //#30251 - $puti($_.text, 1, $_.barcode); //#30252 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30253 - $k[$j++] = $_.text; //#30253 - $k[$j++] = $f($_.barlen + 2); //#30253 - $k[$j++] = _u; //#30253 - if (_u == 32) { //#30253 - $j--; //#30253 - $k[$j++] = 95; //#30253 - } //#30253 - var _v = $k[--$j]; //#30253 - var _w = $k[--$j]; //#30253 - $put($k[--$j], _w, _v); //#30253 - $put($_.text, $f($_.barlen + 3), 42); //#30254 - $put($_.options, "dontdraw", true); //#30257 - $put($_.options, "includecheck", false); //#30258 - $put($_.options, "validatecheck", false); //#30259 - $k[$j++] = 'args'; //#30260 - $k[$j++] = $_.barcode; //#30260 - $k[$j++] = $_.options; //#30260 - bwipp_code39(); //#30260 - var _15 = $k[--$j]; //#30260 - $_[$k[--$j]] = _15; //#30260 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30262 - $put($_.args, "textxalign", "center"); //#30263 - $put($_.args, "opt", $_.options); //#30264 - $k[$j++] = $_.args; //#30267 - if (!$_.dontdraw) { //#30267 - bwipp_renlinear(); //#30267 - } //#30267 - $_ = Object.getPrototypeOf($_); //#30269 - $_ = Object.getPrototypeOf($_); //#30271 -} - + $_ = Object.create($_); //#30523 + $_.dontdraw = false; //#30526 + $_.textfont = "OCR-B"; //#30527 + $_.textsize = 10; //#30528 + $_.textyoffset = -8; //#30529 + $_.textxoffset = 0; //#30530 + $_.validatecheck = false; //#30531 + $k[$j++] = $_; //#30533 + bwipp_processoptions(); //#30533 + $_.options = $k[--$j]; //#30533 + $_.barcode = $k[--$j]; //#30534 + if ($eq($_.barcode, "")) { //#30538 + $k[$j++] = 'bwipp.hibccode39emptyData#30537'; //#30537 + $k[$j++] = "The data must not be empty"; //#30537 + bwipp_raiseerror(); //#30537 + } //#30537 + bwipp_loadctx(bwipp_hibccode39) //#30540 + if (!bwipp_hibccode39.__30547__) { //#30547 + $_ = Object.create($_); //#30547 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30544 + $_.charvals = new Map; //#30545 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30546 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30546 + } //#30546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30546 + bwipp_hibccode39.__30547__ = 1; //#30546 + $_ = Object.getPrototypeOf($_); //#30546 + } //#30546 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30554 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30551 + if (!_E) { //#30553 + $k[$j++] = 'bwipp.hibccode39badCharacter#30552'; //#30552 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30552 + bwipp_raiseerror(); //#30552 + } //#30552 + } //#30552 + $k[$j++] = 'barlen'; //#30556 + $k[$j++] = $_.barcode.length; //#30556 + if ($_.validatecheck) { //#30556 + var _H = $k[--$j]; //#30556 + $k[$j++] = $f(_H - 1); //#30556 + } //#30556 + var _I = $k[--$j]; //#30556 + $_[$k[--$j]] = _I; //#30556 + $_.checksum = 41; //#30558 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30562 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30561 + } //#30561 + $_.checksum = $_.checksum % 43; //#30563 + if ($_.validatecheck) { //#30569 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30567 + $k[$j++] = 'bwipp.hibccode39badCheckDigit#30566'; //#30566 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30566 + bwipp_raiseerror(); //#30566 + } //#30566 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30568 + } //#30568 + var _e = $s($f($_.barlen + 2)); //#30571 + $puti(_e, 1, $_.barcode); //#30571 + $_.barcode = _e; //#30571 + $put($_.barcode, 0, 43); //#30572 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30573 + $_.text = $s($f($_.barlen + 4)); //#30575 + $put($_.text, 0, 42); //#30576 + $puti($_.text, 1, $_.barcode); //#30577 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30578 + $k[$j++] = $_.text; //#30578 + $k[$j++] = $f($_.barlen + 2); //#30578 + $k[$j++] = _v; //#30578 + if (_v == 32) { //#30578 + $j--; //#30578 + $k[$j++] = 95; //#30578 + } //#30578 + var _w = $k[--$j]; //#30578 + var _x = $k[--$j]; //#30578 + $put($k[--$j], _x, _w); //#30578 + $put($_.text, $f($_.barlen + 3), 42); //#30579 + $put($_.options, "dontdraw", true); //#30582 + $put($_.options, "includecheck", false); //#30583 + $put($_.options, "validatecheck", false); //#30584 + $k[$j++] = 'args'; //#30585 + $k[$j++] = $_.barcode; //#30585 + $k[$j++] = $_.options; //#30585 + bwipp_code39(); //#30585 + var _16 = $k[--$j]; //#30585 + $_[$k[--$j]] = _16; //#30585 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30587 + $put($_.args, "textxalign", "center"); //#30588 + $put($_.args, "opt", $_.options); //#30589 + $k[$j++] = $_.args; //#30592 + if (!$_.dontdraw) { //#30592 + bwipp_renlinear(); //#30592 + } //#30592 + $_ = Object.getPrototypeOf($_); //#30594 + $_ = Object.getPrototypeOf($_); //#30596 +} //bwipp_hibccode39 function bwipp_hibccode128() { - $_ = Object.create($_); //#30302 - $_.dontdraw = false; //#30305 - $_.textfont = "OCR-B"; //#30306 - $_.textsize = 10; //#30307 - $_.textyoffset = -8; //#30308 - $_.textxoffset = 0; //#30309 - $_.validatecheck = false; //#30310 - $k[$j++] = $_; //#30312 - bwipp_processoptions(); //#30312 - $_.options = $k[--$j]; //#30312 - $_.barcode = $k[--$j]; //#30313 - bwipp_loadctx(bwipp_hibccode128) //#30315 - if (!bwipp_hibccode128.__30322__) { //#30322 - $_ = Object.create($_); //#30322 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30319 - $_.charvals = new Map; //#30320 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30321 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30321 - } //#30321 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30321 - bwipp_hibccode128.__30322__ = 1; //#30321 - $_ = Object.getPrototypeOf($_); //#30321 - } //#30321 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30329 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30326 - if (!_D) { //#30328 - $k[$j++] = 'bwipp.hibccode128badCharacter#30327'; //#30327 - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30327 - bwipp_raiseerror(); //#30327 - } //#30327 - } //#30327 - $k[$j++] = 'barlen'; //#30331 - $k[$j++] = $_.barcode.length; //#30331 - if ($_.validatecheck) { //#30331 - var _G = $k[--$j]; //#30331 - $k[$j++] = $f(_G - 1); //#30331 - } //#30331 - var _H = $k[--$j]; //#30331 - $_[$k[--$j]] = _H; //#30331 - $_.checksum = 41; //#30333 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30337 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30336 - } //#30336 - $_.checksum = $_.checksum % 43; //#30338 - if ($_.validatecheck) { //#30344 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30342 - $k[$j++] = 'bwipp.hibccode128badCheckDigit#30341'; //#30341 - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30341 - bwipp_raiseerror(); //#30341 - } //#30341 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30343 - } //#30343 - var _d = $s($f($_.barlen + 2)); //#30346 - $puti(_d, 1, $_.barcode); //#30346 - $_.barcode = _d; //#30346 - $put($_.barcode, 0, 43); //#30347 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30348 - $_.text = $s($f($_.barlen + 4)); //#30350 - $put($_.text, 0, 42); //#30351 - $puti($_.text, 1, $_.barcode); //#30352 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30353 - $k[$j++] = $_.text; //#30353 - $k[$j++] = $f($_.barlen + 2); //#30353 - $k[$j++] = _u; //#30353 - if (_u == 32) { //#30353 - $j--; //#30353 - $k[$j++] = 95; //#30353 - } //#30353 - var _v = $k[--$j]; //#30353 - var _w = $k[--$j]; //#30353 - $put($k[--$j], _w, _v); //#30353 - $put($_.text, $f($_.barlen + 3), 42); //#30354 - $put($_.options, "dontdraw", true); //#30357 - $put($_.options, "validatecheck", false); //#30358 - $k[$j++] = 'args'; //#30359 - $k[$j++] = $_.barcode; //#30359 - $k[$j++] = $_.options; //#30359 - bwipp_code128(); //#30359 - var _14 = $k[--$j]; //#30359 - $_[$k[--$j]] = _14; //#30359 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30361 - $put($_.args, "textxalign", "center"); //#30362 - $put($_.args, "opt", $_.options); //#30363 - $k[$j++] = $_.args; //#30366 - if (!$_.dontdraw) { //#30366 - bwipp_renlinear(); //#30366 - } //#30366 - $_ = Object.getPrototypeOf($_); //#30368 - $_ = Object.getPrototypeOf($_); //#30370 -} - + $_ = Object.create($_); //#30627 + $_.dontdraw = false; //#30630 + $_.textfont = "OCR-B"; //#30631 + $_.textsize = 10; //#30632 + $_.textyoffset = -8; //#30633 + $_.textxoffset = 0; //#30634 + $_.validatecheck = false; //#30635 + $k[$j++] = $_; //#30637 + bwipp_processoptions(); //#30637 + $_.options = $k[--$j]; //#30637 + $_.barcode = $k[--$j]; //#30638 + if ($eq($_.barcode, "")) { //#30642 + $k[$j++] = 'bwipp.hibccode128emptyData#30641'; //#30641 + $k[$j++] = "The data must not be empty"; //#30641 + bwipp_raiseerror(); //#30641 + } //#30641 + bwipp_loadctx(bwipp_hibccode128) //#30644 + if (!bwipp_hibccode128.__30651__) { //#30651 + $_ = Object.create($_); //#30651 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30648 + $_.charvals = new Map; //#30649 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30650 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30650 + } //#30650 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30650 + bwipp_hibccode128.__30651__ = 1; //#30650 + $_ = Object.getPrototypeOf($_); //#30650 + } //#30650 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30658 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30655 + if (!_E) { //#30657 + $k[$j++] = 'bwipp.hibccode128badCharacter#30656'; //#30656 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30656 + bwipp_raiseerror(); //#30656 + } //#30656 + } //#30656 + $k[$j++] = 'barlen'; //#30660 + $k[$j++] = $_.barcode.length; //#30660 + if ($_.validatecheck) { //#30660 + var _H = $k[--$j]; //#30660 + $k[$j++] = $f(_H - 1); //#30660 + } //#30660 + var _I = $k[--$j]; //#30660 + $_[$k[--$j]] = _I; //#30660 + $_.checksum = 41; //#30662 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30666 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30665 + } //#30665 + $_.checksum = $_.checksum % 43; //#30667 + if ($_.validatecheck) { //#30673 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30671 + $k[$j++] = 'bwipp.hibccode128badCheckDigit#30670'; //#30670 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30670 + bwipp_raiseerror(); //#30670 + } //#30670 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30672 + } //#30672 + var _e = $s($f($_.barlen + 2)); //#30675 + $puti(_e, 1, $_.barcode); //#30675 + $_.barcode = _e; //#30675 + $put($_.barcode, 0, 43); //#30676 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30677 + $_.text = $s($f($_.barlen + 4)); //#30679 + $put($_.text, 0, 42); //#30680 + $puti($_.text, 1, $_.barcode); //#30681 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30682 + $k[$j++] = $_.text; //#30682 + $k[$j++] = $f($_.barlen + 2); //#30682 + $k[$j++] = _v; //#30682 + if (_v == 32) { //#30682 + $j--; //#30682 + $k[$j++] = 95; //#30682 + } //#30682 + var _w = $k[--$j]; //#30682 + var _x = $k[--$j]; //#30682 + $put($k[--$j], _x, _w); //#30682 + $put($_.text, $f($_.barlen + 3), 42); //#30683 + $put($_.options, "dontdraw", true); //#30686 + $put($_.options, "validatecheck", false); //#30687 + $k[$j++] = 'args'; //#30688 + $k[$j++] = $_.barcode; //#30688 + $k[$j++] = $_.options; //#30688 + bwipp_code128(); //#30688 + var _15 = $k[--$j]; //#30688 + $_[$k[--$j]] = _15; //#30688 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30690 + $put($_.args, "textxalign", "center"); //#30691 + $put($_.args, "opt", $_.options); //#30692 + $k[$j++] = $_.args; //#30695 + if (!$_.dontdraw) { //#30695 + bwipp_renlinear(); //#30695 + } //#30695 + $_ = Object.getPrototypeOf($_); //#30697 + $_ = Object.getPrototypeOf($_); //#30699 +} //bwipp_hibccode128 function bwipp_hibcdatamatrix() { - $_ = Object.create($_); //#30401 - $_.dontdraw = false; //#30404 - $_.validatecheck = false; //#30405 - $k[$j++] = $_; //#30407 - bwipp_processoptions(); //#30407 - $_.options = $k[--$j]; //#30407 - $_.barcode = $k[--$j]; //#30408 - bwipp_loadctx(bwipp_hibcdatamatrix) //#30410 - if (!bwipp_hibcdatamatrix.__30417__) { //#30417 - $_ = Object.create($_); //#30417 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30414 - $_.charvals = new Map; //#30415 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30416 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30416 - } //#30416 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30416 - bwipp_hibcdatamatrix.__30417__ = 1; //#30416 - $_ = Object.getPrototypeOf($_); //#30416 - } //#30416 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30424 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30421 - if (!_D) { //#30423 - $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30422'; //#30422 - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30422 - bwipp_raiseerror(); //#30422 - } //#30422 - } //#30422 - $k[$j++] = 'barlen'; //#30426 - $k[$j++] = $_.barcode.length; //#30426 - if ($_.validatecheck) { //#30426 - var _G = $k[--$j]; //#30426 - $k[$j++] = $f(_G - 1); //#30426 - } //#30426 - var _H = $k[--$j]; //#30426 - $_[$k[--$j]] = _H; //#30426 - $_.checksum = 41; //#30428 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30432 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30431 - } //#30431 - $_.checksum = $_.checksum % 43; //#30433 - if ($_.validatecheck) { //#30439 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30437 - $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30436'; //#30436 - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30436 - bwipp_raiseerror(); //#30436 - } //#30436 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30438 - } //#30438 - var _d = $s($f($_.barlen + 2)); //#30441 - $puti(_d, 1, $_.barcode); //#30441 - $_.barcode = _d; //#30441 - $put($_.barcode, 0, 43); //#30442 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30443 - $put($_.options, "dontdraw", true); //#30446 - $put($_.options, "validatecheck", false); //#30447 - $k[$j++] = 'args'; //#30448 - $k[$j++] = $_.barcode; //#30448 - $k[$j++] = $_.options; //#30448 - bwipp_datamatrix(); //#30448 - var _p = $k[--$j]; //#30448 - $_[$k[--$j]] = _p; //#30448 - var _r = $_.args; //#30450 - $put(_r, "opt", $_.options); //#30450 - $k[$j++] = $_.args; //#30453 - if (!$_.dontdraw) { //#30453 - bwipp_renmatrix(); //#30453 - } //#30453 - $_ = Object.getPrototypeOf($_); //#30455 - $_ = Object.getPrototypeOf($_); //#30457 -} - + $_ = Object.create($_); //#30730 + $_.dontdraw = false; //#30733 + $_.validatecheck = false; //#30734 + $k[$j++] = $_; //#30736 + bwipp_processoptions(); //#30736 + $_.options = $k[--$j]; //#30736 + $_.barcode = $k[--$j]; //#30737 + if ($eq($_.barcode, "")) { //#30741 + $k[$j++] = 'bwipp.hibcdatamatrixEmptyData#30740'; //#30740 + $k[$j++] = "The data must not be empty"; //#30740 + bwipp_raiseerror(); //#30740 + } //#30740 + bwipp_loadctx(bwipp_hibcdatamatrix) //#30743 + if (!bwipp_hibcdatamatrix.__30750__) { //#30750 + $_ = Object.create($_); //#30750 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30747 + $_.charvals = new Map; //#30748 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30749 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30749 + } //#30749 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30749 + bwipp_hibcdatamatrix.__30750__ = 1; //#30749 + $_ = Object.getPrototypeOf($_); //#30749 + } //#30749 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30757 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30754 + if (!_E) { //#30756 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30755'; //#30755 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30755 + bwipp_raiseerror(); //#30755 + } //#30755 + } //#30755 + $k[$j++] = 'barlen'; //#30759 + $k[$j++] = $_.barcode.length; //#30759 + if ($_.validatecheck) { //#30759 + var _H = $k[--$j]; //#30759 + $k[$j++] = $f(_H - 1); //#30759 + } //#30759 + var _I = $k[--$j]; //#30759 + $_[$k[--$j]] = _I; //#30759 + $_.checksum = 41; //#30761 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30765 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30764 + } //#30764 + $_.checksum = $_.checksum % 43; //#30766 + if ($_.validatecheck) { //#30772 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30770 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30769'; //#30769 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30769 + bwipp_raiseerror(); //#30769 + } //#30769 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30771 + } //#30771 + var _d = $_.barlen; //#30774 + var _e = $s($f(_d + 2)); //#30774 + $puti(_e, 1, $_.barcode); //#30774 + $_.barcode = _e; //#30774 + $put($_.barcode, 0, 43); //#30775 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30776 + $put($_.options, "dontdraw", true); //#30779 + $put($_.options, "validatecheck", false); //#30780 + $k[$j++] = 'args'; //#30781 + $k[$j++] = $_.barcode; //#30781 + $k[$j++] = $_.options; //#30781 + bwipp_datamatrix(); //#30781 + var _q = $k[--$j]; //#30781 + var _r = $k[--$j]; //#30781 + $_[_r] = _q; //#30781 + $put($_.args, "opt", $_.options); //#30783 + $k[$j++] = $_.args; //#30786 + if (!$_.dontdraw) { //#30786 + bwipp_renmatrix(); //#30786 + } //#30786 + $_ = Object.getPrototypeOf($_); //#30788 + $_ = Object.getPrototypeOf($_); //#30790 +} //bwipp_hibcdatamatrix function bwipp_hibcdatamatrixrectangular() { - $_ = Object.create($_); //#30488 - $_.dontdraw = false; //#30491 - $_.validatecheck = false; //#30492 - $k[$j++] = $_; //#30494 - bwipp_processoptions(); //#30494 - $_.options = $k[--$j]; //#30494 - $_.barcode = $k[--$j]; //#30495 - bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30497 - if (!bwipp_hibcdatamatrixrectangular.__30504__) { //#30504 - $_ = Object.create($_); //#30504 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30501 - $_.charvals = new Map; //#30502 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30503 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30503 - } //#30503 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30503 - bwipp_hibcdatamatrixrectangular.__30504__ = 1; //#30503 - $_ = Object.getPrototypeOf($_); //#30503 - } //#30503 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30511 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30508 - if (!_D) { //#30510 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30509'; //#30509 - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30509 - bwipp_raiseerror(); //#30509 - } //#30509 - } //#30509 - $k[$j++] = 'barlen'; //#30513 - $k[$j++] = $_.barcode.length; //#30513 - if ($_.validatecheck) { //#30513 - var _G = $k[--$j]; //#30513 - $k[$j++] = $f(_G - 1); //#30513 - } //#30513 - var _H = $k[--$j]; //#30513 - $_[$k[--$j]] = _H; //#30513 - $_.checksum = 41; //#30515 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30519 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30518 - } //#30518 - $_.checksum = $_.checksum % 43; //#30520 - if ($_.validatecheck) { //#30526 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30524 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30523'; //#30523 - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30523 - bwipp_raiseerror(); //#30523 - } //#30523 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30525 - } //#30525 - var _d = $s($f($_.barlen + 2)); //#30528 - $puti(_d, 1, $_.barcode); //#30528 - $_.barcode = _d; //#30528 - $put($_.barcode, 0, 43); //#30529 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30530 - $put($_.options, "dontdraw", true); //#30533 - $put($_.options, "validatecheck", false); //#30534 - $put($_.options, "format", "rectangle"); //#30535 - $k[$j++] = 'args'; //#30536 - $k[$j++] = $_.barcode; //#30536 - $k[$j++] = $_.options; //#30536 - bwipp_datamatrix(); //#30536 - var _q = $k[--$j]; //#30536 - var _r = $k[--$j]; //#30536 - $_[_r] = _q; //#30536 - $put($_.args, "opt", $_.options); //#30538 - $k[$j++] = $_.args; //#30541 - if (!$_.dontdraw) { //#30541 - bwipp_renmatrix(); //#30541 - } //#30541 - $_ = Object.getPrototypeOf($_); //#30543 - $_ = Object.getPrototypeOf($_); //#30545 -} - + $_ = Object.create($_); //#30821 + $_.dontdraw = false; //#30824 + $_.validatecheck = false; //#30825 + $k[$j++] = $_; //#30827 + bwipp_processoptions(); //#30827 + $_.options = $k[--$j]; //#30827 + $_.barcode = $k[--$j]; //#30828 + if ($eq($_.barcode, "")) { //#30832 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularEmptyData#30831'; //#30831 + $k[$j++] = "The data must not be empty"; //#30831 + bwipp_raiseerror(); //#30831 + } //#30831 + bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30834 + if (!bwipp_hibcdatamatrixrectangular.__30841__) { //#30841 + $_ = Object.create($_); //#30841 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30838 + $_.charvals = new Map; //#30839 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30840 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30840 + } //#30840 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30840 + bwipp_hibcdatamatrixrectangular.__30841__ = 1; //#30840 + $_ = Object.getPrototypeOf($_); //#30840 + } //#30840 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30848 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30845 + if (!_E) { //#30847 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30846'; //#30846 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30846 + bwipp_raiseerror(); //#30846 + } //#30846 + } //#30846 + $k[$j++] = 'barlen'; //#30850 + $k[$j++] = $_.barcode.length; //#30850 + if ($_.validatecheck) { //#30850 + var _H = $k[--$j]; //#30850 + $k[$j++] = $f(_H - 1); //#30850 + } //#30850 + var _I = $k[--$j]; //#30850 + $_[$k[--$j]] = _I; //#30850 + $_.checksum = 41; //#30852 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30856 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30855 + } //#30855 + $_.checksum = $_.checksum % 43; //#30857 + if ($_.validatecheck) { //#30863 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30861 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30860'; //#30860 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30860 + bwipp_raiseerror(); //#30860 + } //#30860 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30862 + } //#30862 + var _d = $_.barlen; //#30865 + var _e = $s($f(_d + 2)); //#30865 + $puti(_e, 1, $_.barcode); //#30865 + $_.barcode = _e; //#30865 + $put($_.barcode, 0, 43); //#30866 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30867 + $put($_.options, "dontdraw", true); //#30870 + $put($_.options, "validatecheck", false); //#30871 + $put($_.options, "format", "rectangle"); //#30872 + $k[$j++] = 'args'; //#30873 + $k[$j++] = $_.barcode; //#30873 + $k[$j++] = $_.options; //#30873 + bwipp_datamatrix(); //#30873 + var _r = $k[--$j]; //#30873 + $_[$k[--$j]] = _r; //#30873 + $put($_.args, "opt", $_.options); //#30875 + $k[$j++] = $_.args; //#30878 + if (!$_.dontdraw) { //#30878 + bwipp_renmatrix(); //#30878 + } //#30878 + $_ = Object.getPrototypeOf($_); //#30880 + $_ = Object.getPrototypeOf($_); //#30882 +} //bwipp_hibcdatamatrixrectangular function bwipp_hibcpdf417() { - $_ = Object.create($_); //#30576 - $_.dontdraw = false; //#30579 - $_.columns = 2; //#30580 - $_.validatecheck = false; //#30581 - $k[$j++] = $_; //#30583 - bwipp_processoptions(); //#30583 - $_.options = $k[--$j]; //#30583 - $_.barcode = $k[--$j]; //#30584 - bwipp_loadctx(bwipp_hibcpdf417) //#30586 - if (!bwipp_hibcpdf417.__30593__) { //#30593 - $_ = Object.create($_); //#30593 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30590 - $_.charvals = new Map; //#30591 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30592 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30592 - } //#30592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30592 - bwipp_hibcpdf417.__30593__ = 1; //#30592 - $_ = Object.getPrototypeOf($_); //#30592 - } //#30592 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30600 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30597 - if (!_D) { //#30599 - $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30598'; //#30598 - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30598 - bwipp_raiseerror(); //#30598 - } //#30598 - } //#30598 - $k[$j++] = 'barlen'; //#30602 - $k[$j++] = $_.barcode.length; //#30602 - if ($_.validatecheck) { //#30602 - var _G = $k[--$j]; //#30602 - $k[$j++] = $f(_G - 1); //#30602 - } //#30602 - var _H = $k[--$j]; //#30602 - $_[$k[--$j]] = _H; //#30602 - $_.checksum = 41; //#30604 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30608 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30607 - } //#30607 - $_.checksum = $_.checksum % 43; //#30609 - if ($_.validatecheck) { //#30615 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30613 - $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30612'; //#30612 - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30612 - bwipp_raiseerror(); //#30612 - } //#30612 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30614 - } //#30614 - var _d = $s($f($_.barlen + 2)); //#30617 - $puti(_d, 1, $_.barcode); //#30617 - $_.barcode = _d; //#30617 - $put($_.barcode, 0, 43); //#30618 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30619 - $put($_.options, "dontdraw", true); //#30622 - $put($_.options, "columns", $_.columns); //#30623 - $put($_.options, "validatecheck", false); //#30624 - var _p = $_.barcode; //#30625 - $k[$j++] = 'args'; //#30625 - $k[$j++] = _p; //#30625 - $k[$j++] = $_.options; //#30625 - bwipp_pdf417(); //#30625 - var _r = $k[--$j]; //#30625 - $_[$k[--$j]] = _r; //#30625 - $put($_.args, "opt", $_.options); //#30627 - $k[$j++] = $_.args; //#30630 - if (!$_.dontdraw) { //#30630 - bwipp_renmatrix(); //#30630 - } //#30630 - $_ = Object.getPrototypeOf($_); //#30632 - $_ = Object.getPrototypeOf($_); //#30634 -} - + $_ = Object.create($_); //#30913 + $_.dontdraw = false; //#30916 + $_.columns = 2; //#30917 + $_.validatecheck = false; //#30918 + $k[$j++] = $_; //#30920 + bwipp_processoptions(); //#30920 + $_.options = $k[--$j]; //#30920 + $_.barcode = $k[--$j]; //#30921 + if ($eq($_.barcode, "")) { //#30925 + $k[$j++] = 'bwipp.hibcpdf417EmptyData#30924'; //#30924 + $k[$j++] = "The data must not be empty"; //#30924 + bwipp_raiseerror(); //#30924 + } //#30924 + bwipp_loadctx(bwipp_hibcpdf417) //#30927 + if (!bwipp_hibcpdf417.__30934__) { //#30934 + $_ = Object.create($_); //#30934 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30931 + $_.charvals = new Map; //#30932 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30933 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30933 + } //#30933 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30933 + bwipp_hibcpdf417.__30934__ = 1; //#30933 + $_ = Object.getPrototypeOf($_); //#30933 + } //#30933 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30941 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30938 + if (!_E) { //#30940 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30939'; //#30939 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30939 + bwipp_raiseerror(); //#30939 + } //#30939 + } //#30939 + $k[$j++] = 'barlen'; //#30943 + $k[$j++] = $_.barcode.length; //#30943 + if ($_.validatecheck) { //#30943 + var _H = $k[--$j]; //#30943 + $k[$j++] = $f(_H - 1); //#30943 + } //#30943 + var _I = $k[--$j]; //#30943 + $_[$k[--$j]] = _I; //#30943 + $_.checksum = 41; //#30945 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30949 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30948 + } //#30948 + $_.checksum = $_.checksum % 43; //#30950 + if ($_.validatecheck) { //#30956 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30954 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30953'; //#30953 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30953 + bwipp_raiseerror(); //#30953 + } //#30953 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30955 + } //#30955 + var _e = $s($f($_.barlen + 2)); //#30958 + $puti(_e, 1, $_.barcode); //#30958 + $_.barcode = _e; //#30958 + $put($_.barcode, 0, 43); //#30959 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30960 + $put($_.options, "dontdraw", true); //#30963 + $put($_.options, "columns", $_.columns); //#30964 + var _p = $_.options; //#30965 + $put(_p, "validatecheck", false); //#30965 + var _r = $_.options; //#30966 + $k[$j++] = 'args'; //#30966 + $k[$j++] = $_.barcode; //#30966 + $k[$j++] = _r; //#30966 + bwipp_pdf417(); //#30966 + var _s = $k[--$j]; //#30966 + $_[$k[--$j]] = _s; //#30966 + $put($_.args, "opt", $_.options); //#30968 + $k[$j++] = $_.args; //#30971 + if (!$_.dontdraw) { //#30971 + bwipp_renmatrix(); //#30971 + } //#30971 + $_ = Object.getPrototypeOf($_); //#30973 + $_ = Object.getPrototypeOf($_); //#30975 +} //bwipp_hibcpdf417 function bwipp_hibcmicropdf417() { - $_ = Object.create($_); //#30665 - $_.dontdraw = false; //#30668 - $_.columns = 2; //#30669 - $_.validatecheck = false; //#30670 - $k[$j++] = $_; //#30672 - bwipp_processoptions(); //#30672 - $_.options = $k[--$j]; //#30672 - $_.barcode = $k[--$j]; //#30673 - bwipp_loadctx(bwipp_hibcmicropdf417) //#30675 - if (!bwipp_hibcmicropdf417.__30682__) { //#30682 - $_ = Object.create($_); //#30682 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30679 - $_.charvals = new Map; //#30680 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30681 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30681 - } //#30681 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#30681 - bwipp_hibcmicropdf417.__30682__ = 1; //#30681 - $_ = Object.getPrototypeOf($_); //#30681 - } //#30681 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30689 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30686 - if (!_D) { //#30688 - $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#30687'; //#30687 - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30687 - bwipp_raiseerror(); //#30687 - } //#30687 - } //#30687 - $k[$j++] = 'barlen'; //#30691 - $k[$j++] = $_.barcode.length; //#30691 - if ($_.validatecheck) { //#30691 - var _G = $k[--$j]; //#30691 - $k[$j++] = $f(_G - 1); //#30691 - } //#30691 - var _H = $k[--$j]; //#30691 - $_[$k[--$j]] = _H; //#30691 - $_.checksum = 41; //#30693 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30697 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30696 - } //#30696 - $_.checksum = $_.checksum % 43; //#30698 - if ($_.validatecheck) { //#30704 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30702 - $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#30701'; //#30701 - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#30701 - bwipp_raiseerror(); //#30701 - } //#30701 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30703 - } //#30703 - var _d = $s($f($_.barlen + 2)); //#30706 - $puti(_d, 1, $_.barcode); //#30706 - $_.barcode = _d; //#30706 - $put($_.barcode, 0, 43); //#30707 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30708 - $put($_.options, "dontdraw", true); //#30711 - var _m = $_.options; //#30712 - $put(_m, "columns", $_.columns); //#30712 - $put($_.options, "validatecheck", false); //#30713 - $k[$j++] = 'args'; //#30714 - $k[$j++] = $_.barcode; //#30714 - $k[$j++] = $_.options; //#30714 - bwipp_micropdf417(); //#30714 - var _r = $k[--$j]; //#30714 - $_[$k[--$j]] = _r; //#30714 - $put($_.args, "opt", $_.options); //#30716 - $k[$j++] = $_.args; //#30719 - if (!$_.dontdraw) { //#30719 - bwipp_renmatrix(); //#30719 - } //#30719 - $_ = Object.getPrototypeOf($_); //#30721 - $_ = Object.getPrototypeOf($_); //#30723 -} - + $_ = Object.create($_); //#31006 + $_.dontdraw = false; //#31009 + $_.columns = 2; //#31010 + $_.validatecheck = false; //#31011 + $k[$j++] = $_; //#31013 + bwipp_processoptions(); //#31013 + $_.options = $k[--$j]; //#31013 + $_.barcode = $k[--$j]; //#31014 + if ($eq($_.barcode, "")) { //#31018 + $k[$j++] = 'bwipp.hibcmicropdf417EmptyData#31017'; //#31017 + $k[$j++] = "The data must not be empty"; //#31017 + bwipp_raiseerror(); //#31017 + } //#31017 + bwipp_loadctx(bwipp_hibcmicropdf417) //#31020 + if (!bwipp_hibcmicropdf417.__31027__) { //#31027 + $_ = Object.create($_); //#31027 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31024 + $_.charvals = new Map; //#31025 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31026 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31026 + } //#31026 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#31026 + bwipp_hibcmicropdf417.__31027__ = 1; //#31026 + $_ = Object.getPrototypeOf($_); //#31026 + } //#31026 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31034 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31031 + if (!_E) { //#31033 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#31032'; //#31032 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31032 + bwipp_raiseerror(); //#31032 + } //#31032 + } //#31032 + $k[$j++] = 'barlen'; //#31036 + $k[$j++] = $_.barcode.length; //#31036 + if ($_.validatecheck) { //#31036 + var _H = $k[--$j]; //#31036 + $k[$j++] = $f(_H - 1); //#31036 + } //#31036 + var _I = $k[--$j]; //#31036 + $_[$k[--$j]] = _I; //#31036 + $_.checksum = 41; //#31038 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31042 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31041 + } //#31041 + $_.checksum = $_.checksum % 43; //#31043 + if ($_.validatecheck) { //#31049 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31047 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#31046'; //#31046 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#31046 + bwipp_raiseerror(); //#31046 + } //#31046 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31048 + } //#31048 + var _e = $s($f($_.barlen + 2)); //#31051 + $puti(_e, 1, $_.barcode); //#31051 + $_.barcode = _e; //#31051 + $put($_.barcode, 0, 43); //#31052 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31053 + var _m = $_.options; //#31056 + $put(_m, "dontdraw", true); //#31056 + $put($_.options, "columns", $_.columns); //#31057 + $put($_.options, "validatecheck", false); //#31058 + var _r = $_.options; //#31059 + $k[$j++] = 'args'; //#31059 + $k[$j++] = $_.barcode; //#31059 + $k[$j++] = _r; //#31059 + bwipp_micropdf417(); //#31059 + var _s = $k[--$j]; //#31059 + $_[$k[--$j]] = _s; //#31059 + $put($_.args, "opt", $_.options); //#31061 + $k[$j++] = $_.args; //#31064 + if (!$_.dontdraw) { //#31064 + bwipp_renmatrix(); //#31064 + } //#31064 + $_ = Object.getPrototypeOf($_); //#31066 + $_ = Object.getPrototypeOf($_); //#31068 +} //bwipp_hibcmicropdf417 function bwipp_hibcqrcode() { - $_ = Object.create($_); //#30754 - $_.dontdraw = false; //#30757 - $_.validatecheck = false; //#30758 - $k[$j++] = $_; //#30760 - bwipp_processoptions(); //#30760 - $_.options = $k[--$j]; //#30760 - $_.barcode = $k[--$j]; //#30761 - bwipp_loadctx(bwipp_hibcqrcode) //#30763 - if (!bwipp_hibcqrcode.__30770__) { //#30770 - $_ = Object.create($_); //#30770 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30767 - $_.charvals = new Map; //#30768 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30769 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30769 - } //#30769 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#30769 - bwipp_hibcqrcode.__30770__ = 1; //#30769 - $_ = Object.getPrototypeOf($_); //#30769 - } //#30769 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30777 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30774 - if (!_D) { //#30776 - $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#30775'; //#30775 - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30775 - bwipp_raiseerror(); //#30775 - } //#30775 - } //#30775 - $k[$j++] = 'barlen'; //#30779 - $k[$j++] = $_.barcode.length; //#30779 - if ($_.validatecheck) { //#30779 - var _G = $k[--$j]; //#30779 - $k[$j++] = $f(_G - 1); //#30779 - } //#30779 - var _H = $k[--$j]; //#30779 - $_[$k[--$j]] = _H; //#30779 - $_.checksum = 41; //#30781 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30785 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30784 - } //#30784 - $_.checksum = $_.checksum % 43; //#30786 - if ($_.validatecheck) { //#30792 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30790 - $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#30789'; //#30789 - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#30789 - bwipp_raiseerror(); //#30789 - } //#30789 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30791 - } //#30791 - var _d = $s($f($_.barlen + 2)); //#30794 - $puti(_d, 1, $_.barcode); //#30794 - $_.barcode = _d; //#30794 - $put($_.barcode, 0, 43); //#30795 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30796 - $put($_.options, "dontdraw", true); //#30799 - $put($_.options, "validatecheck", false); //#30800 - $k[$j++] = 'args'; //#30801 - $k[$j++] = $_.barcode; //#30801 - $k[$j++] = $_.options; //#30801 - bwipp_qrcode(); //#30801 - var _p = $k[--$j]; //#30801 - $_[$k[--$j]] = _p; //#30801 - var _r = $_.args; //#30803 - $put(_r, "opt", $_.options); //#30803 - $k[$j++] = $_.args; //#30806 - if (!$_.dontdraw) { //#30806 - bwipp_renmatrix(); //#30806 - } //#30806 - $_ = Object.getPrototypeOf($_); //#30808 - $_ = Object.getPrototypeOf($_); //#30810 -} - + $_ = Object.create($_); //#31099 + $_.dontdraw = false; //#31102 + $_.validatecheck = false; //#31103 + $k[$j++] = $_; //#31105 + bwipp_processoptions(); //#31105 + $_.options = $k[--$j]; //#31105 + $_.barcode = $k[--$j]; //#31106 + if ($eq($_.barcode, "")) { //#31110 + $k[$j++] = 'bwipp.hibcqrcodeEmptyData#31109'; //#31109 + $k[$j++] = "The data must not be empty"; //#31109 + bwipp_raiseerror(); //#31109 + } //#31109 + bwipp_loadctx(bwipp_hibcqrcode) //#31112 + if (!bwipp_hibcqrcode.__31119__) { //#31119 + $_ = Object.create($_); //#31119 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31116 + $_.charvals = new Map; //#31117 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31118 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31118 + } //#31118 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#31118 + bwipp_hibcqrcode.__31119__ = 1; //#31118 + $_ = Object.getPrototypeOf($_); //#31118 + } //#31118 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31126 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31123 + if (!_E) { //#31125 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#31124'; //#31124 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31124 + bwipp_raiseerror(); //#31124 + } //#31124 + } //#31124 + $k[$j++] = 'barlen'; //#31128 + $k[$j++] = $_.barcode.length; //#31128 + if ($_.validatecheck) { //#31128 + var _H = $k[--$j]; //#31128 + $k[$j++] = $f(_H - 1); //#31128 + } //#31128 + var _I = $k[--$j]; //#31128 + $_[$k[--$j]] = _I; //#31128 + $_.checksum = 41; //#31130 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31134 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31133 + } //#31133 + $_.checksum = $_.checksum % 43; //#31135 + if ($_.validatecheck) { //#31141 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31139 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#31138'; //#31138 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#31138 + bwipp_raiseerror(); //#31138 + } //#31138 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31140 + } //#31140 + var _e = $s($f($_.barlen + 2)); //#31143 + $puti(_e, 1, $_.barcode); //#31143 + $_.barcode = _e; //#31143 + $put($_.barcode, 0, 43); //#31144 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31145 + $put($_.options, "dontdraw", true); //#31148 + $put($_.options, "validatecheck", false); //#31149 + $k[$j++] = 'args'; //#31150 + $k[$j++] = $_.barcode; //#31150 + $k[$j++] = $_.options; //#31150 + bwipp_qrcode(); //#31150 + var _q = $k[--$j]; //#31150 + var _r = $k[--$j]; //#31150 + $_[_r] = _q; //#31150 + $put($_.args, "opt", $_.options); //#31152 + $k[$j++] = $_.args; //#31155 + if (!$_.dontdraw) { //#31155 + bwipp_renmatrix(); //#31155 + } //#31155 + $_ = Object.getPrototypeOf($_); //#31157 + $_ = Object.getPrototypeOf($_); //#31159 +} //bwipp_hibcqrcode function bwipp_hibccodablockf() { - $_ = Object.create($_); //#30841 - $_.dontdraw = false; //#30844 - $_.validatecheck = false; //#30845 - $k[$j++] = $_; //#30847 - bwipp_processoptions(); //#30847 - $_.options = $k[--$j]; //#30847 - $_.barcode = $k[--$j]; //#30848 - bwipp_loadctx(bwipp_hibccodablockf) //#30850 - if (!bwipp_hibccodablockf.__30857__) { //#30857 - $_ = Object.create($_); //#30857 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30854 - $_.charvals = new Map; //#30855 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30856 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30856 - } //#30856 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#30856 - bwipp_hibccodablockf.__30857__ = 1; //#30856 - $_ = Object.getPrototypeOf($_); //#30856 - } //#30856 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30864 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30861 - if (!_D) { //#30863 - $k[$j++] = 'bwipp.codablockfBadCharacter#30862'; //#30862 - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30862 - bwipp_raiseerror(); //#30862 - } //#30862 - } //#30862 - $k[$j++] = 'barlen'; //#30866 - $k[$j++] = $_.barcode.length; //#30866 - if ($_.validatecheck) { //#30866 - var _G = $k[--$j]; //#30866 - $k[$j++] = $f(_G - 1); //#30866 - } //#30866 - var _H = $k[--$j]; //#30866 - $_[$k[--$j]] = _H; //#30866 - $_.checksum = 41; //#30868 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30872 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30871 - } //#30871 - $_.checksum = $_.checksum % 43; //#30873 - if ($_.validatecheck) { //#30879 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30877 - $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#30876'; //#30876 - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#30876 - bwipp_raiseerror(); //#30876 - } //#30876 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30878 - } //#30878 - var _c = $_.barlen; //#30881 - var _d = $s($f(_c + 2)); //#30881 - $puti(_d, 1, $_.barcode); //#30881 - $_.barcode = _d; //#30881 - $put($_.barcode, 0, 43); //#30882 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30883 - $put($_.options, "dontdraw", true); //#30886 - $put($_.options, "validatecheck", false); //#30887 - $k[$j++] = 'args'; //#30888 - $k[$j++] = $_.barcode; //#30888 - $k[$j++] = $_.options; //#30888 - bwipp_codablockf(); //#30888 - var _p = $k[--$j]; //#30888 - $_[$k[--$j]] = _p; //#30888 - var _r = $_.args; //#30890 - $put(_r, "opt", $_.options); //#30890 - $k[$j++] = $_.args; //#30893 - if (!$_.dontdraw) { //#30893 - bwipp_renmatrix(); //#30893 - } //#30893 - $_ = Object.getPrototypeOf($_); //#30895 - $_ = Object.getPrototypeOf($_); //#30897 -} - + $_ = Object.create($_); //#31190 + $_.dontdraw = false; //#31193 + $_.validatecheck = false; //#31194 + $k[$j++] = $_; //#31196 + bwipp_processoptions(); //#31196 + $_.options = $k[--$j]; //#31196 + $_.barcode = $k[--$j]; //#31197 + if ($eq($_.barcode, "")) { //#31201 + $k[$j++] = 'bwipp.hibccodablockfEmptyData#31200'; //#31200 + $k[$j++] = "The data must not be empty"; //#31200 + bwipp_raiseerror(); //#31200 + } //#31200 + bwipp_loadctx(bwipp_hibccodablockf) //#31203 + if (!bwipp_hibccodablockf.__31210__) { //#31210 + $_ = Object.create($_); //#31210 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31207 + $_.charvals = new Map; //#31208 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31209 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31209 + } //#31209 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#31209 + bwipp_hibccodablockf.__31210__ = 1; //#31209 + $_ = Object.getPrototypeOf($_); //#31209 + } //#31209 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31217 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31214 + if (!_E) { //#31216 + $k[$j++] = 'bwipp.hibccodablockfBadCharacter#31215'; //#31215 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31215 + bwipp_raiseerror(); //#31215 + } //#31215 + } //#31215 + $k[$j++] = 'barlen'; //#31219 + $k[$j++] = $_.barcode.length; //#31219 + if ($_.validatecheck) { //#31219 + var _H = $k[--$j]; //#31219 + $k[$j++] = $f(_H - 1); //#31219 + } //#31219 + var _I = $k[--$j]; //#31219 + $_[$k[--$j]] = _I; //#31219 + $_.checksum = 41; //#31221 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31225 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31224 + } //#31224 + $_.checksum = $_.checksum % 43; //#31226 + if ($_.validatecheck) { //#31232 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31230 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#31229'; //#31229 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#31229 + bwipp_raiseerror(); //#31229 + } //#31229 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31231 + } //#31231 + var _e = $s($f($_.barlen + 2)); //#31234 + $puti(_e, 1, $_.barcode); //#31234 + $_.barcode = _e; //#31234 + $put($_.barcode, 0, 43); //#31235 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31236 + $put($_.options, "dontdraw", true); //#31239 + $put($_.options, "validatecheck", false); //#31240 + $k[$j++] = 'args'; //#31241 + $k[$j++] = $_.barcode; //#31241 + $k[$j++] = $_.options; //#31241 + bwipp_codablockf(); //#31241 + var _q = $k[--$j]; //#31241 + var _r = $k[--$j]; //#31241 + $_[_r] = _q; //#31241 + $put($_.args, "opt", $_.options); //#31243 + $k[$j++] = $_.args; //#31246 + if (!$_.dontdraw) { //#31246 + bwipp_renmatrix(); //#31246 + } //#31246 + $_ = Object.getPrototypeOf($_); //#31248 + $_ = Object.getPrototypeOf($_); //#31250 +} //bwipp_hibccodablockf function bwipp_hibcazteccode() { - $_ = Object.create($_); //#30928 - $_.dontdraw = false; //#30931 - $_.validatecheck = false; //#30932 - $k[$j++] = $_; //#30934 - bwipp_processoptions(); //#30934 - $_.options = $k[--$j]; //#30934 - $_.barcode = $k[--$j]; //#30935 - bwipp_loadctx(bwipp_hibcazteccode) //#30937 - if (!bwipp_hibcazteccode.__30944__) { //#30944 - $_ = Object.create($_); //#30944 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30941 - $_.charvals = new Map; //#30942 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30943 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30943 - } //#30943 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#30943 - bwipp_hibcazteccode.__30944__ = 1; //#30943 - $_ = Object.getPrototypeOf($_); //#30943 - } //#30943 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30951 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30948 - if (!_D) { //#30950 - $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#30949'; //#30949 - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30949 - bwipp_raiseerror(); //#30949 - } //#30949 - } //#30949 - $k[$j++] = 'barlen'; //#30953 - $k[$j++] = $_.barcode.length; //#30953 - if ($_.validatecheck) { //#30953 - var _G = $k[--$j]; //#30953 - $k[$j++] = $f(_G - 1); //#30953 - } //#30953 - var _H = $k[--$j]; //#30953 - $_[$k[--$j]] = _H; //#30953 - $_.checksum = 41; //#30955 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30959 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30958 - } //#30958 - $_.checksum = $_.checksum % 43; //#30960 - if ($_.validatecheck) { //#30966 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30964 - $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#30963'; //#30963 - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#30963 - bwipp_raiseerror(); //#30963 - } //#30963 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30965 - } //#30965 - var _d = $s($f($_.barlen + 2)); //#30968 - $puti(_d, 1, $_.barcode); //#30968 - $_.barcode = _d; //#30968 - $put($_.barcode, 0, 43); //#30969 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30970 - $put($_.options, "dontdraw", true); //#30973 - $put($_.options, "validatecheck", false); //#30974 - $k[$j++] = 'args'; //#30975 - $k[$j++] = $_.barcode; //#30975 - $k[$j++] = $_.options; //#30975 - bwipp_azteccode(); //#30975 - var _p = $k[--$j]; //#30975 - $_[$k[--$j]] = _p; //#30975 - var _r = $_.args; //#30977 - $put(_r, "opt", $_.options); //#30977 - $k[$j++] = $_.args; //#30980 - if (!$_.dontdraw) { //#30980 - bwipp_renmatrix(); //#30980 - } //#30980 - $_ = Object.getPrototypeOf($_); //#30982 - $_ = Object.getPrototypeOf($_); //#30984 -} - + $_ = Object.create($_); //#31281 + $_.dontdraw = false; //#31284 + $_.validatecheck = false; //#31285 + $k[$j++] = $_; //#31287 + bwipp_processoptions(); //#31287 + $_.options = $k[--$j]; //#31287 + $_.barcode = $k[--$j]; //#31288 + if ($eq($_.barcode, "")) { //#31292 + $k[$j++] = 'bwipp.hibcazteccodeEmptyData#31291'; //#31291 + $k[$j++] = "The data must not be empty"; //#31291 + bwipp_raiseerror(); //#31291 + } //#31291 + bwipp_loadctx(bwipp_hibcazteccode) //#31294 + if (!bwipp_hibcazteccode.__31301__) { //#31301 + $_ = Object.create($_); //#31301 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31298 + $_.charvals = new Map; //#31299 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31300 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31300 + } //#31300 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#31300 + bwipp_hibcazteccode.__31301__ = 1; //#31300 + $_ = Object.getPrototypeOf($_); //#31300 + } //#31300 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31308 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31305 + if (!_E) { //#31307 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#31306'; //#31306 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31306 + bwipp_raiseerror(); //#31306 + } //#31306 + } //#31306 + $k[$j++] = 'barlen'; //#31310 + $k[$j++] = $_.barcode.length; //#31310 + if ($_.validatecheck) { //#31310 + var _H = $k[--$j]; //#31310 + $k[$j++] = $f(_H - 1); //#31310 + } //#31310 + var _I = $k[--$j]; //#31310 + $_[$k[--$j]] = _I; //#31310 + $_.checksum = 41; //#31312 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31316 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31315 + } //#31315 + $_.checksum = $_.checksum % 43; //#31317 + if ($_.validatecheck) { //#31323 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31321 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#31320'; //#31320 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#31320 + bwipp_raiseerror(); //#31320 + } //#31320 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31322 + } //#31322 + var _e = $s($f($_.barlen + 2)); //#31325 + $puti(_e, 1, $_.barcode); //#31325 + $_.barcode = _e; //#31325 + $put($_.barcode, 0, 43); //#31326 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31327 + $put($_.options, "dontdraw", true); //#31330 + $put($_.options, "validatecheck", false); //#31331 + $k[$j++] = 'args'; //#31332 + $k[$j++] = $_.barcode; //#31332 + $k[$j++] = $_.options; //#31332 + bwipp_azteccode(); //#31332 + var _q = $k[--$j]; //#31332 + var _r = $k[--$j]; //#31332 + $_[_r] = _q; //#31332 + $put($_.args, "opt", $_.options); //#31334 + $k[$j++] = $_.args; //#31337 + if (!$_.dontdraw) { //#31337 + bwipp_renmatrix(); //#31337 + } //#31337 + $_ = Object.getPrototypeOf($_); //#31339 + $_ = Object.getPrototypeOf($_); //#31341 +} //bwipp_hibcazteccode function bwipp_channelcode() { - $_ = Object.create($_); //#31012 - $_.options = $k[--$j]; //#31014 - $_.barcode = $k[--$j]; //#31015 - $_.dontdraw = false; //#31017 - $_.shortfinder = false; //#31018 - $_.includetext = false; //#31019 - $_.includecheck = false; //#31020 - $_.height = 1; //#31021 - $forall($_.options, function() { //#31032 - var _3 = $k[--$j]; //#31032 - $_[$k[--$j]] = _3; //#31032 - }); //#31032 - $_.height = +$_.height; //#31034 - if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31039 - $k[$j++] = 'bwipp.channelcodeBadLength#31038'; //#31038 - $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31038 - bwipp_raiseerror(); //#31038 - } //#31038 - $forall($_.barcode, function() { //#31044 - var _9 = $k[--$j]; //#31041 - if ((_9 < 48) || (_9 > 57)) { //#31043 - $k[$j++] = 'bwipp.channelcodeBadCharacter#31042'; //#31042 - $k[$j++] = "Channel Code must contain only digits"; //#31042 - bwipp_raiseerror(); //#31042 - } //#31042 - }); //#31042 - if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31047 - $k[$j++] = 'bwipp.channelcodeTooBig#31046'; //#31046 - $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31046 - bwipp_raiseerror(); //#31046 - } //#31046 + $_ = Object.create($_); //#31369 + $_.options = $k[--$j]; //#31371 + $_.barcode = $k[--$j]; //#31372 + $_.dontdraw = false; //#31374 + $_.shortfinder = false; //#31375 + $_.includetext = false; //#31376 + $_.includecheck = false; //#31377 + $_.height = 1; //#31378 + $forall($_.options, function() { //#31389 + var _3 = $k[--$j]; //#31389 + $_[$k[--$j]] = _3; //#31389 + }); //#31389 + $_.height = +$_.height; //#31391 + if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31396 + $k[$j++] = 'bwipp.channelcodeBadLength#31395'; //#31395 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31395 + bwipp_raiseerror(); //#31395 + } //#31395 + $forall($_.barcode, function() { //#31401 + var _9 = $k[--$j]; //#31398 + if ((_9 < 48) || (_9 > 57)) { //#31400 + $k[$j++] = 'bwipp.channelcodeBadCharacter#31399'; //#31399 + $k[$j++] = "Channel Code must contain only digits"; //#31399 + bwipp_raiseerror(); //#31399 + } //#31399 + }); //#31399 + if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31404 + $k[$j++] = 'bwipp.channelcodeTooBig#31403'; //#31403 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31403 + bwipp_raiseerror(); //#31403 + } //#31403 $_.nextb = function() { - var _E = $k[--$j]; //#31050 - var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31055 - $k[$j++] = _E; //#31071 - $k[$j++] = _N; //#31071 - if (_E < $f($_.chan + 2)) { //#31069 - var _P = $k[--$j]; //#31057 - var _Q = $k[--$j]; //#31057 - var _R = $k[--$j]; //#31057 - $k[$j++] = _R; //#31060 - $k[$j++] = _Q; //#31060 - $k[$j++] = _P; //#31060 - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31060 - var _V = $k[--$j]; //#31058 - var _W = $k[--$j]; //#31058 - $put($_.b, _W, _T); //#31058 - var _X = $k[--$j]; //#31059 - var _Y = $k[--$j]; //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = _X; //#31059 - $k[$j++] = _W; //#31059 - $k[$j++] = _V; //#31059 - $k[$j++] = $f($f(_X - _T) + 1); //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = $f(_W + 1); //#31059 - $_.nexts(); //#31059 - } //#31059 - } else { //#31069 - var _Z = $k[--$j]; //#31062 - var _a = $k[--$j]; //#31062 - var _b = $k[--$j]; //#31062 - $k[$j++] = _b; //#31070 - $k[$j++] = _a; //#31070 - $k[$j++] = _Z; //#31070 - if ($le(_Z, _b)) { //#31070 - var _d = $k[--$j]; //#31063 - var _e = $k[--$j]; //#31063 - var _f = $k[--$j]; //#31063 - $put($_.b, _e, _f); //#31063 - $k[$j++] = _f; //#31068 - $k[$j++] = _e; //#31068 - $k[$j++] = _d; //#31068 - if ($_.value == $_.target) { //#31068 - $k[$j++] = Infinity; //#31066 - for (var _i = 3; _i <= 10; _i += 1) { //#31066 - $k[$j++] = $get($_.s, _i); //#31066 - $k[$j++] = $get($_.b, _i); //#31066 - } //#31066 - $_.out = $geti($a(), 0, $_.chan * 2); //#31067 - } //#31067 - $_.value = $_.value + 1; //#31069 - } //#31069 - } //#31069 - $j -= 4; //#31072 - }; //#31073 + var _E = $k[--$j]; //#31407 + var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31412 + $k[$j++] = _E; //#31428 + $k[$j++] = _N; //#31428 + if (_E < $f($_.chan + 2)) { //#31426 + var _P = $k[--$j]; //#31414 + var _Q = $k[--$j]; //#31414 + var _R = $k[--$j]; //#31414 + $k[$j++] = _R; //#31417 + $k[$j++] = _Q; //#31417 + $k[$j++] = _P; //#31417 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31417 + var _V = $k[--$j]; //#31415 + var _W = $k[--$j]; //#31415 + $put($_.b, _W, _T); //#31415 + var _X = $k[--$j]; //#31416 + var _Y = $k[--$j]; //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = _X; //#31416 + $k[$j++] = _W; //#31416 + $k[$j++] = _V; //#31416 + $k[$j++] = $f($f(_X - _T) + 1); //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = $f(_W + 1); //#31416 + $_.nexts(); //#31416 + } //#31416 + } else { //#31426 + var _Z = $k[--$j]; //#31419 + var _a = $k[--$j]; //#31419 + var _b = $k[--$j]; //#31419 + $k[$j++] = _b; //#31427 + $k[$j++] = _a; //#31427 + $k[$j++] = _Z; //#31427 + if ($le(_Z, _b)) { //#31427 + var _d = $k[--$j]; //#31420 + var _e = $k[--$j]; //#31420 + var _f = $k[--$j]; //#31420 + $put($_.b, _e, _f); //#31420 + $k[$j++] = _f; //#31425 + $k[$j++] = _e; //#31425 + $k[$j++] = _d; //#31425 + if ($_.value == $_.target) { //#31425 + $k[$j++] = Infinity; //#31422 + for (var _i = 3; _i <= 10; _i += 1) { //#31423 + $k[$j++] = $get($_.s, _i); //#31423 + $k[$j++] = $get($_.b, _i); //#31423 + } //#31423 + $_.out = $geti($a(), 0, $_.chan * 2); //#31424 + } //#31424 + $_.value = $_.value + 1; //#31426 + } //#31426 + } //#31426 + $j -= 4; //#31429 + }; //#31430 $_.nexts = function() { - var _r = $k[--$j]; //#31076 - $k[$j++] = _r; //#31076 - if (_r < $f($_.chan + 2)) { //#31076 - $k[$j++] = 1; //#31076 - } else { //#31076 - var _t = $k[--$j]; //#31076 - var _u = $k[--$j]; //#31076 - $k[$j++] = _u; //#31076 - $k[$j++] = _t; //#31076 - $k[$j++] = _u; //#31076 - } //#31076 - var _v = $k[--$j]; //#31076 - var _w = $k[--$j]; //#31076 - var _x = $k[--$j]; //#31076 - $k[$j++] = _x; //#31079 - $k[$j++] = _w; //#31079 - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31079 - var _11 = $k[--$j]; //#31077 - $put($_.s, _11, _z); //#31077 - var _12 = $k[--$j]; //#31078 - var _13 = $k[--$j]; //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _12; //#31078 - $k[$j++] = _11; //#31078 - $k[$j++] = $f($f(_12 - _z) + 1); //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _11; //#31078 - $_.nextb(); //#31078 - } //#31078 - $j -= 3; //#31080 - }; //#31081 + var _r = $k[--$j]; //#31433 + $k[$j++] = _r; //#31433 + if (_r < $f($_.chan + 2)) { //#31433 + $k[$j++] = 1; //#31433 + } else { //#31433 + var _t = $k[--$j]; //#31433 + var _u = $k[--$j]; //#31433 + $k[$j++] = _u; //#31433 + $k[$j++] = _t; //#31433 + $k[$j++] = _u; //#31433 + } //#31433 + var _v = $k[--$j]; //#31433 + var _w = $k[--$j]; //#31433 + var _x = $k[--$j]; //#31433 + $k[$j++] = _x; //#31436 + $k[$j++] = _w; //#31436 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31436 + var _11 = $k[--$j]; //#31434 + $put($_.s, _11, _z); //#31434 + var _12 = $k[--$j]; //#31435 + var _13 = $k[--$j]; //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _12; //#31435 + $k[$j++] = _11; //#31435 + $k[$j++] = $f($f(_12 - _z) + 1); //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _11; //#31435 + $_.nextb(); //#31435 + } //#31435 + $j -= 3; //#31437 + }; //#31438 $_.encode = function() { - $_.chan = $k[--$j]; //#31084 - $_.target = $k[--$j]; //#31085 - $_.value = 0; //#31086 - $_.out = -1; //#31087 - $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31088 - $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31089 - var _18 = $_.chan; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = 3; //#31090 - $_.nexts(); //#31090 - $k[$j++] = $_.out; //#31091 - }; //#31092 - $_.barlen = $_.barcode.length; //#31094 - $k[$j++] = 'finder'; //#31097 - if ($_.shortfinder) { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1]); //#31097 - } else { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31097 - } //#31097 - var _1E = $k[--$j]; //#31097 - $_[$k[--$j]] = _1E; //#31097 - $k[$j++] = 'data'; //#31100 - $k[$j++] = $cvi($_.barcode); //#31100 - $k[$j++] = $_.barlen + 1; //#31100 - $_.encode(); //#31100 - var _1I = $k[--$j]; //#31100 - $_[$k[--$j]] = _1I; //#31100 - $_.check = $a([]); //#31103 - if ($_.includecheck) { //#31119 - $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31113 - $k[$j++] = 0; //#31117 - for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31117 - var _1e = $k[--$j]; //#31116 - $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31116 - } //#31116 - var _1f = $k[--$j]; //#31118 - $k[$j++] = _1f % 23; //#31118 - $k[$j++] = 3; //#31118 - $_.encode(); //#31118 - $_.check = $k[--$j]; //#31118 - } //#31118 - $k[$j++] = Infinity; //#31125 - $aload($_.finder); //#31123 - $aload($_.data); //#31124 - $aload($_.check); //#31125 - $_.sbs = $a(); //#31125 - $_.txt = $a($_.barlen); //#31129 - for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31133 - $_.i = _1p; //#31131 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31132 - } //#31132 - $k[$j++] = Infinity; //#31143 - var _1w = $_.sbs; //#31138 - $k[$j++] = Infinity; //#31139 - for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31139 - $k[$j++] = $_.height; //#31139 - } //#31139 - var _21 = $a(); //#31139 - $k[$j++] = Infinity; //#31140 - for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31140 - $k[$j++] = 0; //#31140 - } //#31140 - var _25 = $a(); //#31140 - $k[$j++] = 'ren'; //#31143 - $k[$j++] = bwipp_renlinear; //#31143 - $k[$j++] = 'sbs'; //#31143 - $k[$j++] = _1w; //#31143 - $k[$j++] = 'bhs'; //#31143 - $k[$j++] = _21; //#31143 - $k[$j++] = 'bbs'; //#31143 - $k[$j++] = _25; //#31143 - $k[$j++] = 'txt'; //#31143 - $k[$j++] = $_.txt; //#31143 - $k[$j++] = 'textxalign'; //#31143 - $k[$j++] = "center"; //#31143 - $k[$j++] = 'opt'; //#31143 - $k[$j++] = $_.options; //#31143 - var _28 = $d(); //#31143 - $k[$j++] = _28; //#31146 - if (!$_.dontdraw) { //#31146 - bwipp_renlinear(); //#31146 - } //#31146 - $_ = Object.getPrototypeOf($_); //#31148 -} - + $_.chan = $k[--$j]; //#31441 + $_.target = $k[--$j]; //#31442 + $_.value = 0; //#31443 + $_.out = -1; //#31444 + $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31445 + $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31446 + var _18 = $_.chan; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = 3; //#31447 + $_.nexts(); //#31447 + $k[$j++] = $_.out; //#31448 + }; //#31449 + $_.barlen = $_.barcode.length; //#31451 + $k[$j++] = 'finder'; //#31454 + if ($_.shortfinder) { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#31454 + } else { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31454 + } //#31454 + var _1E = $k[--$j]; //#31454 + $_[$k[--$j]] = _1E; //#31454 + $k[$j++] = 'data'; //#31457 + $k[$j++] = $cvi($_.barcode); //#31457 + $k[$j++] = $_.barlen + 1; //#31457 + $_.encode(); //#31457 + var _1I = $k[--$j]; //#31457 + $_[$k[--$j]] = _1I; //#31457 + $_.check = $a([]); //#31460 + if ($_.includecheck) { //#31476 + $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31470 + $k[$j++] = 0; //#31474 + for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31474 + var _1e = $k[--$j]; //#31473 + $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31473 + } //#31473 + var _1f = $k[--$j]; //#31475 + $k[$j++] = _1f % 23; //#31475 + $k[$j++] = 3; //#31475 + $_.encode(); //#31475 + $_.check = $k[--$j]; //#31475 + } //#31475 + $k[$j++] = Infinity; //#31479 + $aload($_.finder); //#31480 + $aload($_.data); //#31481 + $aload($_.check); //#31482 + $_.sbs = $a(); //#31482 + $_.txt = $a($_.barlen); //#31486 + for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31490 + $_.i = _1p; //#31488 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31489 + } //#31489 + $k[$j++] = Infinity; //#31493 + var _1w = $_.sbs; //#31495 + $k[$j++] = Infinity; //#31496 + for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31496 + $k[$j++] = $_.height; //#31496 + } //#31496 + var _21 = $a(); //#31496 + $k[$j++] = Infinity; //#31497 + for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31497 + $k[$j++] = 0; //#31497 + } //#31497 + var _25 = $a(); //#31497 + $k[$j++] = 'ren'; //#31500 + $k[$j++] = bwipp_renlinear; //#31500 + $k[$j++] = 'sbs'; //#31500 + $k[$j++] = _1w; //#31500 + $k[$j++] = 'bhs'; //#31500 + $k[$j++] = _21; //#31500 + $k[$j++] = 'bbs'; //#31500 + $k[$j++] = _25; //#31500 + $k[$j++] = 'txt'; //#31500 + $k[$j++] = $_.txt; //#31500 + $k[$j++] = 'textxalign'; //#31500 + $k[$j++] = "center"; //#31500 + $k[$j++] = 'opt'; //#31500 + $k[$j++] = $_.options; //#31500 + var _28 = $d(); //#31500 + $k[$j++] = _28; //#31503 + if (!$_.dontdraw) { //#31503 + bwipp_renlinear(); //#31503 + } //#31503 + $_ = Object.getPrototypeOf($_); //#31505 +} //bwipp_channelcode function bwipp_renlinear() { - if ($_.bwipjs_dontdraw) { //#31176 - return; //#31176 - } //#31176 - $_ = Object.create($_); //#31177 - $_.args = $k[--$j]; //#31179 - $_.sbs = $a([]); //#31182 - $_.bhs = $a([]); //#31183 - $_.bbs = $a([]); //#31184 - $_.txt = $a([]); //#31185 - $_.barcolor = "unset"; //#31186 - $_.includetext = false; //#31187 - $_.textcolor = "unset"; //#31188 - $_.textxalign = "unset"; //#31189 - $_.textyalign = "unset"; //#31190 - $_.textfont = "OCR-B"; //#31191 - $_.textsize = 10; //#31192 - $_.textxoffset = 0; //#31193 - $_.textyoffset = 0; //#31194 - $_.textgaps = 0; //#31195 - $_.alttext = ""; //#31196 - $_.bordercolor = "unset"; //#31197 - $_.backgroundcolor = "unset"; //#31198 - $_.inkspread = 0; //#31199 - $_.width = 0; //#31200 - $_.barratio = 1; //#31201 - $_.spaceratio = 1; //#31202 - $_.showborder = false; //#31203 - $_.borderleft = 10; //#31204 - $_.borderright = 10; //#31205 - $_.bordertop = 1; //#31206 - $_.borderbottom = 1; //#31207 - $_.borderwidth = 0.5; //#31208 - $_.guardwhitespace = false; //#31209 - $_.guardleftpos = 0; //#31210 - $_.guardleftypos = 0; //#31211 - $_.guardrightpos = 0; //#31212 - $_.guardrightypos = 0; //#31213 - $_.guardwidth = 7; //#31214 - $_.guardheight = 7; //#31215 - $forall($_.args, function() { //#31218 - var _7 = $k[--$j]; //#31218 - $_[$k[--$j]] = _7; //#31218 - }); //#31218 - var _9 = $_.opt; //#31219 - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#31219 - var _A = _D.next().value; //#31219 - $_[_A] = _9.get(_A); //#31219 - } //#31219 - $_.barcolor = "" + $_.barcolor; //#31221 - $_.textcolor = "" + $_.textcolor; //#31222 - $_.textxalign = "" + $_.textxalign; //#31223 - $_.textyalign = "" + $_.textyalign; //#31224 - $_.textfont = "" + $_.textfont; //#31225 - $_.textsize = +$_.textsize; //#31226 - $_.textxoffset = +$_.textxoffset; //#31227 - $_.textyoffset = +$_.textyoffset; //#31228 - $_.textgaps = +$_.textgaps; //#31229 - $_.alttext = "" + $_.alttext; //#31230 - $_.bordercolor = "" + $_.bordercolor; //#31231 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31232 - $_.inkspread = +$_.inkspread; //#31233 - $_.width = +$_.width; //#31234 - $_.barratio = +$_.barratio; //#31235 - $_.spaceratio = +$_.spaceratio; //#31236 - $_.borderleft = +$_.borderleft; //#31237 - $_.borderright = +$_.borderright; //#31238 - $_.bordertop = +$_.bordertop; //#31239 - $_.borderbottom = +$_.borderbottom; //#31240 - $_.borderwidth = +$_.borderwidth; //#31241 - $_.guardleftpos = +$_.guardleftpos; //#31242 - $_.guardleftypos = +$_.guardleftypos; //#31243 - $_.guardrightpos = +$_.guardrightpos; //#31244 - $_.guardrightypos = +$_.guardrightypos; //#31245 - $_.guardwidth = +$_.guardwidth; //#31246 - $_.guardheight = +$_.guardheight; //#31247 - $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31250 - $_.x = 0; //#31251 - $_.maxh = 0; //#31251 - for (var _k = 0, _j = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#31270 - $_.i = _k; //#31253 - if (($_.i % 2) == 0) { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31255 - if ($get($_.sbs, $_.i) != 0) { //#31264 - $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31257 - $_.c = $f(($_.d / 2) + $_.x); //#31258 - $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31259 - $_.w = $f($_.d - $_.inkspread); //#31260 - $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31261 - if ($f($_.h + $_.y) > $_.maxh) { //#31262 - $_.maxh = $f($_.h + $_.y); //#31262 - } //#31262 - } else { //#31264 - $put($_.bars, ~~($_.i / 2), -1); //#31264 - } //#31264 - } else { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31267 - } //#31267 - $_.x = $f($_.x + $_.d); //#31269 - } //#31269 - $$.save(); //#31272 - var _1P = $$.currpos(); //#31274 - $$.translate(_1P.x, _1P.y); //#31274 - if ($_.width != 0) { //#31279 - $$.scale(($_.width * 72) / $_.x, 1); //#31278 - } //#31278 - $$.newpath(); //#31282 - $$.moveto(-$_.borderleft, -$_.borderbottom); //#31283 - $$.rlineto($f($f($_.x + $_.borderleft) + $_.borderright), 0); //#31284 - $$.rlineto(0, $f($f($_.maxh + $_.borderbottom) + $_.bordertop)); //#31285 - $$.rlineto(-($f($f($_.x + $_.borderleft) + $_.borderright)), 0); //#31286 - $$.rlineto(0, -($f($f($_.maxh + $_.borderbottom) + $_.bordertop))); //#31287 - $$.closepath(); //#31288 - if ($_.showborder) { //#31296 - $$.save(); //#31292 - if ($ne($_.bordercolor, "unset")) { //#31293 - $$.setcolor($_.bordercolor); //#31293 - } //#31293 - $$.setlinewidth($_.borderwidth); //#31294 - $$.stroke(); //#31294 - $$.restore(); //#31295 - } //#31295 - $$.save(); //#31299 - if ($ne($_.barcolor, "unset")) { //#31301 - $$.setcolor($_.barcolor); //#31301 - } //#31301 - var _1n = $_.bars; //#31302 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#31308 - var _1q = $get(_1n, _1o); //#31308 - $k[$j++] = _1q; //#31307 - if (_1q != -1) { //#31306 - $aload($k[--$j]); //#31304 - $$.newpath(); //#31304 - $$.setlinewidth($k[--$j]); //#31304 - var _1t = $k[--$j]; //#31304 - $$.moveto($k[--$j], _1t); //#31304 - $$.rlineto(0, $k[--$j]); //#31304 - $$.stroke(); //#31304 - } else { //#31306 - $j--; //#31306 - } //#31306 - } //#31306 - $$.restore(); //#31309 - if ($ne($_.textcolor, "unset")) { //#31312 - $$.setcolor($_.textcolor); //#31312 - } //#31312 - if ($_.includetext) { //#31369 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31367 - $_.s = 0; //#31315 - $_.fn = ""; //#31315 - var _22 = $_.txt; //#31316 - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#31325 - $forall($get(_22, _23)); //#31317 - var _26 = $k[--$j]; //#31318 - var _27 = $k[--$j]; //#31318 - $k[$j++] = _27; //#31323 - $k[$j++] = _26; //#31323 - if ((_26 != $_.s) || $ne(_27, $_.fn)) { //#31322 - var _2A = $k[--$j]; //#31319 - var _2B = $k[--$j]; //#31319 - $_.s = _2A; //#31319 - $_.fn = _2B; //#31319 - $$.selectfont(_2B, _2A); //#31320 - } else { //#31322 - $j -= 2; //#31322 - } //#31322 - var _2C = $k[--$j]; //#31324 - $$.moveto($k[--$j], _2C); //#31324 - $$.show($k[--$j], 0, 0); //#31324 - } //#31324 - } else { //#31367 - $$.selectfont($_.textfont, $_.textsize); //#31327 - if ($eq($_.alttext, "")) { //#31333 - $k[$j++] = Infinity; //#31329 - var _2I = $_.txt; //#31329 - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#31329 - $forall($get($get(_2I, _2J), 0)); //#31329 - } //#31329 - $_.txt = $a(); //#31329 - $_.tstr = $s($_.txt.length); //#31330 - for (var _2S = 0, _2R = $_.txt.length - 1; _2S <= _2R; _2S += 1) { //#31331 - $put($_.tstr, _2S, $get($_.txt, _2S)); //#31331 - } //#31331 - } else { //#31333 - $_.tstr = $_.alttext; //#31333 - } //#31333 - if ($_.tstr.length == 0) { //#31343 - $k[$j++] = 0; //#31338 - } else { //#31343 - $$.save(); //#31340 - $$.newpath(); //#31341 - $$.moveto(0, 0); //#31341 - $$.charpath("0", false); //#31341 - var _2Y = $$.pathbbox(); //#31341 - $$.restore(); //#31343 - $k[$j++] = _2Y.ury; //#31343 - } //#31343 - $_.textascent = $k[--$j]; //#31352 - var _2b = $$.stringwidth($_.tstr); //#31353 - $_.textwidth = $f(_2b.w + (($_.tstr.length - 1) * $_.textgaps)); //#31353 - $_.textxpos = $f($_.textxoffset + ($f($_.x - $_.textwidth) / 2)); //#31355 - if ($eq($_.textxalign, "left")) { //#31356 - $_.textxpos = $_.textxoffset; //#31356 - } //#31356 - if ($eq($_.textxalign, "right")) { //#31357 - $_.textxpos = $f($f($_.x - $_.textxoffset) - $_.textwidth); //#31357 - } //#31357 - if ($eq($_.textxalign, "offleft")) { //#31358 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31358 - } //#31358 - if ($eq($_.textxalign, "offright")) { //#31359 - $_.textxpos = $f($_.x + $_.textxoffset); //#31359 - } //#31359 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.x)) { //#31363 - $_.textxpos = 0; //#31361 - $_.textgaps = $f($_.x - $_.textwidth) / ($_.tstr.length - 1); //#31362 - } //#31362 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31364 - if ($eq($_.textyalign, "above")) { //#31365 - $_.textypos = $f($f($_.textyoffset + $_.maxh) + 1); //#31365 - } //#31365 - if ($eq($_.textyalign, "center")) { //#31366 - $_.textypos = $f($_.textyoffset + ($f($_.maxh - $_.textascent) / 2)); //#31366 - } //#31366 - $$.moveto($_.textxpos, $_.textypos); //#31367 - $$.show($_.tstr, $_.textgaps, 0); //#31367 - } //#31367 - } //#31367 - if ($_.guardwhitespace) { //#31382 - $$.selectfont("OCR-B", $_.guardheight * 2); //#31373 - if ($_.guardleftpos != 0) { //#31377 - $$.moveto($f((-$_.guardleftpos) - 1), $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.5)); //#31375 - $$.show("<", 0, 0); //#31376 - } //#31376 - if ($_.guardrightpos != 0) { //#31381 - $$.moveto($f(($f($f($_.guardrightpos + $_.x) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.5)); //#31379 - $$.show(">", 0, 0); //#31380 - } //#31380 - } //#31380 - $$.restore(); //#31384 - $_ = Object.getPrototypeOf($_); //#31386 -} - + if ($_.bwipjs_dontdraw) { //#31533 + return; //#31533 + } //#31533 + $_ = Object.create($_); //#31534 + $_.sbs = $a([]); //#31539 + $_.bhs = $a([]); //#31540 + $_.bbs = $a([]); //#31541 + $_.txt = $a([]); //#31542 + $_.barcolor = "unset"; //#31543 + $_.includetext = false; //#31544 + $_.textcolor = "unset"; //#31545 + $_.textxalign = "unset"; //#31546 + $_.textyalign = "unset"; //#31547 + $_.textfont = "OCR-B"; //#31548 + $_.textsize = 10; //#31549 + $_.textxoffset = 0; //#31550 + $_.textyoffset = 0; //#31551 + $_.textgaps = 0; //#31552 + $_.alttext = ""; //#31553 + $_.bordercolor = "unset"; //#31554 + $_.backgroundcolor = "unset"; //#31555 + $_.inkspread = 0; //#31556 + $_.width = 0; //#31557 + $_.barratio = 1; //#31558 + $_.spaceratio = 1; //#31559 + $_.showborder = false; //#31560 + $_.showbearer = false; //#31561 + $_.borderleft = 10; //#31562 + $_.borderright = 10; //#31563 + $_.bordertop = 1; //#31564 + $_.borderbottom = 1; //#31565 + $_.borderwidth = 0.5; //#31566 + $_.guardwhitespace = false; //#31567 + $_.guardleftpos = 0; //#31568 + $_.guardleftypos = 0; //#31569 + $_.guardrightpos = 0; //#31570 + $_.guardrightypos = 0; //#31571 + $_.guardwidth = 7; //#31572 + $_.guardheight = 7; //#31573 + $forall($k[--$j], function() { //#31575 + var _6 = $k[--$j]; //#31575 + $_[$k[--$j]] = _6; //#31575 + }); //#31575 + $k[$j++] = $_.opt; //#31576 + delete $_['opt']; //#31576 + $k[$j++] = $_; //#31576 + bwipp_processoptions(); //#31576 + $j--; //#31576 + if ($_.textsize <= 0) { //#31580 + $k[$j++] = 'bwipp.renlinearBadTextsize#31579'; //#31579 + $k[$j++] = "The font size must be greater than zero"; //#31579 + bwipp_raiseerror(); //#31579 + } //#31579 + $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31583 + $_.pixx = 0; //#31584 + $_.pixy = 0; //#31584 + for (var _E = 0, _D = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _E <= _D; _E += 1) { //#31603 + $_.i = _E; //#31586 + if (($_.i % 2) == 0) { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31588 + if ($get($_.sbs, $_.i) != 0) { //#31597 + $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31590 + $_.c = $f(($_.d / 2) + $_.pixx); //#31591 + $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31592 + $_.w = $f($_.d - $_.inkspread); //#31593 + $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31594 + if ($f($_.h + $_.y) > $_.pixy) { //#31595 + $_.pixy = $f($_.h + $_.y); //#31595 + } //#31595 + } else { //#31597 + $put($_.bars, ~~($_.i / 2), -1); //#31597 + } //#31597 + } else { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31600 + } //#31600 + $_.pixx = $f($_.pixx + $_.d); //#31602 + } //#31602 + $$.save(); //#31605 + var _t = $$.currpos(); //#31607 + $$.translate(_t.x, _t.y); //#31607 + if ($_.width != 0) { //#31612 + $$.scale(($_.width * 72) / $_.pixx, 1); //#31611 + } //#31611 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31622 + $_.tr = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31623 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31624 + $_.br = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31625 + if ($_.showbearer) { //#31650 + $$.save(); //#31627 + $$.newpath(); //#31628 + $aload($_.bl); //#31629 + var _1N = $k[--$j]; //#31629 + $$.moveto($k[--$j], _1N); //#31629 + $aload($_.br); //#31629 + var _1Q = $k[--$j]; //#31629 + $$.lineto($k[--$j], _1Q); //#31629 + $aload($_.tl); //#31630 + var _1T = $k[--$j]; //#31630 + $$.moveto($k[--$j], _1T); //#31630 + $aload($_.tr); //#31630 + var _1W = $k[--$j]; //#31630 + $$.lineto($k[--$j], _1W); //#31630 + if ($ne($_.bordercolor, "unset")) { //#31631 + $$.setcolor($_.bordercolor); //#31631 + } //#31631 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#31632 + $$.stroke(); //#31632 + $$.restore(); //#31633 + } else { //#31650 + if ($_.showborder) { //#31651 + $$.save(); //#31646 + $$.newpath(); //#31647 + $aload($_.bl); //#31647 + var _1e = $k[--$j]; //#31647 + $$.moveto($k[--$j], _1e); //#31647 + var _1j = $a([$_.br, $_.tr, $_.tl]); //#31647 + for (var _1k = 0, _1l = _1j.length; _1k < _1l; _1k++) { //#31647 + $aload($get(_1j, _1k)); //#31647 + var _1n = $k[--$j]; //#31647 + $$.lineto($k[--$j], _1n); //#31647 + } //#31647 + $$.closepath(); //#31647 + if ($ne($_.bordercolor, "unset")) { //#31648 + $$.setcolor($_.bordercolor); //#31648 + } //#31648 + $$.setlinewidth($_.borderwidth); //#31649 + $$.stroke(); //#31649 + $$.restore(); //#31650 + } //#31650 + } //#31650 + $$.save(); //#31654 + if ($ne($_.barcolor, "unset")) { //#31656 + $$.setcolor($_.barcolor); //#31656 + } //#31656 + var _1u = $_.bars; //#31657 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#31663 + var _1x = $get(_1u, _1v); //#31663 + $k[$j++] = _1x; //#31662 + if (_1x != -1) { //#31661 + $aload($k[--$j]); //#31659 + $$.newpath(); //#31659 + $$.setlinewidth($k[--$j]); //#31659 + var _20 = $k[--$j]; //#31659 + $$.moveto($k[--$j], _20); //#31659 + $$.rlineto(0, $k[--$j]); //#31659 + $$.stroke(); //#31659 + } else { //#31661 + $j--; //#31661 + } //#31661 + } //#31661 + $$.restore(); //#31664 + if ($ne($_.textcolor, "unset")) { //#31667 + $$.setcolor($_.textcolor); //#31667 + } //#31667 + if ($_.includetext) { //#31724 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31722 + $_.s = 0; //#31670 + $_.fn = ""; //#31670 + var _29 = $_.txt; //#31671 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#31680 + $forall($get(_29, _2A)); //#31672 + var _2D = $k[--$j]; //#31673 + var _2E = $k[--$j]; //#31673 + $k[$j++] = _2E; //#31678 + $k[$j++] = _2D; //#31678 + if ((_2D != $_.s) || $ne(_2E, $_.fn)) { //#31677 + var _2H = $k[--$j]; //#31674 + var _2I = $k[--$j]; //#31674 + $_.s = _2H; //#31674 + $_.fn = _2I; //#31674 + $$.selectfont(_2I, _2H); //#31675 + } else { //#31677 + $j -= 2; //#31677 + } //#31677 + var _2J = $k[--$j]; //#31679 + $$.moveto($k[--$j], _2J); //#31679 + $$.show($k[--$j], 0, 0); //#31679 + } //#31679 + } else { //#31722 + $$.selectfont($_.textfont, $_.textsize); //#31682 + if ($eq($_.alttext, "")) { //#31688 + $k[$j++] = Infinity; //#31684 + var _2P = $_.txt; //#31684 + for (var _2Q = 0, _2R = _2P.length; _2Q < _2R; _2Q++) { //#31684 + $forall($get($get(_2P, _2Q), 0)); //#31684 + } //#31684 + $_.txt = $a(); //#31684 + $_.tstr = $s($_.txt.length); //#31685 + for (var _2Z = 0, _2Y = $_.txt.length - 1; _2Z <= _2Y; _2Z += 1) { //#31686 + $put($_.tstr, _2Z, $get($_.txt, _2Z)); //#31686 + } //#31686 + } else { //#31688 + $_.tstr = $_.alttext; //#31688 + } //#31688 + if ($_.tstr.length == 0) { //#31698 + $k[$j++] = 0; //#31693 + } else { //#31698 + $$.save(); //#31695 + $$.newpath(); //#31696 + $$.moveto(0, 0); //#31696 + $$.charpath("0", false); //#31696 + var _2f = $$.pathbbox(); //#31696 + $$.restore(); //#31698 + $k[$j++] = _2f.ury; //#31698 + } //#31698 + $_.textascent = $k[--$j]; //#31707 + var _2i = $$.stringwidth($_.tstr); //#31708 + $_.textwidth = $f(_2i.w + (($_.tstr.length - 1) * $_.textgaps)); //#31708 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#31710 + if ($eq($_.textxalign, "left")) { //#31711 + $_.textxpos = $_.textxoffset; //#31711 + } //#31711 + if ($eq($_.textxalign, "right")) { //#31712 + $_.textxpos = $f($f($_.pixx - $_.textxoffset) - $_.textwidth); //#31712 + } //#31712 + if ($eq($_.textxalign, "offleft")) { //#31713 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31713 + } //#31713 + if ($eq($_.textxalign, "offright")) { //#31714 + $_.textxpos = $f($_.pixx + $_.textxoffset); //#31714 + } //#31714 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#31718 + $_.textxpos = 0; //#31716 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#31717 + } //#31717 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31719 + if ($eq($_.textyalign, "above")) { //#31720 + $_.textypos = $f($f($_.textyoffset + $_.pixy) + 1); //#31720 + } //#31720 + if ($eq($_.textyalign, "center")) { //#31721 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#31721 + } //#31721 + $$.moveto($_.textxpos, $_.textypos); //#31722 + $$.show($_.tstr, $_.textgaps, 0); //#31722 + } //#31722 + } //#31722 + if ($_.guardwhitespace) { //#31737 + $$.selectfont("OCR-B", $_.guardheight * 2); //#31728 + if ($_.guardleftpos != 0) { //#31732 + $$.moveto((-$_.guardleftpos) - 2, $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.25)); //#31730 + $$.show("<", 0, 0); //#31731 + } //#31731 + if ($_.guardrightpos != 0) { //#31736 + $$.moveto($f(($f($f($_.guardrightpos + $_.pixx) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.25)); //#31734 + $$.show(">", 0, 0); //#31735 + } //#31735 + } //#31735 + $$.restore(); //#31739 + $_ = Object.getPrototypeOf($_); //#31741 +} //bwipp_renlinear function bwipp_renmaximatrix() { - if ($_.bwipjs_dontdraw) { //#31404 - return; //#31404 - } //#31404 - $_ = Object.create($_); //#31406 - $_.args = $k[--$j]; //#31408 - $_.barcolor = "unset"; //#31411 - $_.backgroundcolor = "unset"; //#31412 - $forall($_.args, function() { //#31415 - var _3 = $k[--$j]; //#31415 - $_[$k[--$j]] = _3; //#31415 - }); //#31415 - var _5 = $_.opt; //#31416 - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31416 - var _6 = _9.next().value; //#31416 - $_[_6] = _5.get(_6); //#31416 - } //#31416 - $_.barcolor = "" + $_.barcolor; //#31418 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31419 - $$.save(); //#31421 - if ($ne($_.barcolor, "unset")) { //#31423 - $$.setcolor($_.barcolor); //#31423 - } //#31423 - $$.maxicode($_.pixs); //#31424 - $$.restore(); //#31426 - $_ = Object.getPrototypeOf($_); //#31428 -} + if ($_.bwipjs_dontdraw) { //#31759 + return; //#31759 + } //#31759 + $_ = Object.create($_); //#31761 + $_.args = $k[--$j]; //#31763 + $_.barcolor = "unset"; //#31766 + $_.backgroundcolor = "unset"; //#31767 + $forall($_.args, function() { //#31770 + var _3 = $k[--$j]; //#31770 + $_[$k[--$j]] = _3; //#31770 + }); //#31770 + var _5 = $_.opt; //#31771 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31771 + var _6 = _9.next().value; //#31771 + $_[_6] = _5.get(_6); //#31771 + } //#31771 + $_.barcolor = "" + $_.barcolor; //#31773 + $_.backgroundcolor = "" + $_.backgroundcolor; //#31774 + $$.save(); //#31776 + if ($ne($_.barcolor, "unset")) { //#31778 + $$.setcolor($_.barcolor); //#31778 + } //#31778 + $$.maxicode($_.pixs); //#31779 + $$.restore(); //#31781 + $_ = Object.getPrototypeOf($_); //#31783 +} //bwipp_renmaximatrix // bwip-js/barcode-ftr.js // // This code is injected below the cross-compiled barcode.js. @@ -39772,5 +40276,5 @@ function bwipp_lookup(symbol) { } throw new Error("bwipp.unknownEncoder: unknown encoder name: " + symbol); } -var BWIPP_VERSION = '2023-04-03'; +var BWIPP_VERSION = '2024-01-03'; export { bwipp_auspost,bwipp_azteccode,bwipp_azteccodecompact,bwipp_aztecrune,bwipp_bc412,bwipp_channelcode,bwipp_codablockf,bwipp_code11,bwipp_code128,bwipp_code16k,bwipp_code2of5,bwipp_code32,bwipp_code39,bwipp_code39ext,bwipp_code49,bwipp_code93,bwipp_code93ext,bwipp_codeone,bwipp_coop2of5,bwipp_daft,bwipp_databarexpanded,bwipp_databarexpandedcomposite,bwipp_databarexpandedstacked,bwipp_databarexpandedstackedcomposite,bwipp_databarlimited,bwipp_databarlimitedcomposite,bwipp_databaromni,bwipp_databaromnicomposite,bwipp_databarstacked,bwipp_databarstackedcomposite,bwipp_databarstackedomni,bwipp_databarstackedomnicomposite,bwipp_databartruncated,bwipp_databartruncatedcomposite,bwipp_datalogic2of5,bwipp_datamatrix,bwipp_datamatrixrectangular,bwipp_datamatrixrectangularextension,bwipp_dotcode,bwipp_ean13,bwipp_ean13composite,bwipp_ean14,bwipp_ean2,bwipp_ean5,bwipp_ean8,bwipp_ean8composite,bwipp_flattermarken,bwipp_gs1_128,bwipp_gs1_128composite,bwipp_gs1_cc,bwipp_gs1datamatrix,bwipp_gs1datamatrixrectangular,bwipp_gs1dldatamatrix,bwipp_gs1dlqrcode,bwipp_gs1dotcode,bwipp_gs1northamericancoupon,bwipp_gs1qrcode,bwipp_hanxin,bwipp_hibcazteccode,bwipp_hibccodablockf,bwipp_hibccode128,bwipp_hibccode39,bwipp_hibcdatamatrix,bwipp_hibcdatamatrixrectangular,bwipp_hibcmicropdf417,bwipp_hibcpdf417,bwipp_hibcqrcode,bwipp_iata2of5,bwipp_identcode,bwipp_industrial2of5,bwipp_interleaved2of5,bwipp_isbn,bwipp_ismn,bwipp_issn,bwipp_itf14,bwipp_jabcode,bwipp_japanpost,bwipp_kix,bwipp_leitcode,bwipp_mailmark,bwipp_mands,bwipp_matrix2of5,bwipp_maxicode,bwipp_micropdf417,bwipp_microqrcode,bwipp_msi,bwipp_onecode,bwipp_pdf417,bwipp_pdf417compact,bwipp_pharmacode,bwipp_pharmacode2,bwipp_planet,bwipp_plessey,bwipp_posicode,bwipp_postnet,bwipp_pzn,bwipp_qrcode,bwipp_rationalizedCodabar,bwipp_raw,bwipp_rectangularmicroqrcode,bwipp_royalmail,bwipp_sscc18,bwipp_swissqrcode,bwipp_symbol,bwipp_telepen,bwipp_telepennumeric,bwipp_ultracode,bwipp_upca,bwipp_upcacomposite,bwipp_upce,bwipp_upcecomposite,bwipp_lookup,bwipp_encode,BWIPP_VERSION }; diff --git a/examples/drawing-example.js b/examples/drawing-example.js index 33de85e8..6a698f76 100644 --- a/examples/drawing-example.js +++ b/examples/drawing-example.js @@ -173,24 +173,24 @@ function DrawingExample(opts, canvas) { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - ctx.save(); + ctx.save(); let region = new Path2D(); - for (let j = 0; j < polys.length; j++) { - let pts = polys[j]; - let path = new Path2D(); - path.moveTo(pts[0][0], pts[0][1]); - for (let i = 1; i < pts.length; i++) { - path.lineTo(pts[i][0], pts[i][1]); - } - path.closePath(); + for (let j = 0; j < polys.length; j++) { + let pts = polys[j]; + let path = new Path2D(); + path.moveTo(pts[0][0], pts[0][1]); + for (let i = 1; i < pts.length; i++) { + path.lineTo(pts[i][0], pts[i][1]); + } + path.closePath(); region.addPath(path); - } + } ctx.clip(region, 'nonzero'); }, unclip : function() { - ctx.restore(); - }, + ctx.restore(); + }, // Draw text. // `y` is the baseline. // `font` is an object with properties { name, width, height, dx } diff --git a/examples/drawing-pdfkit.js b/examples/drawing-pdfkit.js index 06b915d4..eb8e6104 100644 --- a/examples/drawing-pdfkit.js +++ b/examples/drawing-pdfkit.js @@ -182,8 +182,8 @@ function DrawingPDFKit(doc, opts, FontLib) { doc.clip('non-zero'); }, unclip : function() { - doc.restore(); - }, + doc.restore(); + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. diff --git a/lib/canvas-toblob.js b/lib/canvas-toblob.js index c07fb7c7..61598536 100644 --- a/lib/canvas-toblob.js +++ b/lib/canvas-toblob.js @@ -16,109 +16,109 @@ (function(view) { "use strict"; var - Uint8Array = view.Uint8Array - , HTMLCanvasElement = view.HTMLCanvasElement - , canvas_proto = HTMLCanvasElement && HTMLCanvasElement.prototype - , is_base64_regex = /\s*;\s*base64\s*(?:;|$)/i - , to_data_url = "toDataURL" - , base64_ranks - , decode_base64 = function(base64) { - var - len = base64.length - , buffer = new Uint8Array(len / 4 * 3 | 0) - , i = 0 - , outptr = 0 - , last = [0, 0] - , state = 0 - , save = 0 - , rank - , code - , undef - ; - while (len--) { - code = base64.charCodeAt(i++); - rank = base64_ranks[code-43]; - if (rank !== 255 && rank !== undef) { - last[1] = last[0]; - last[0] = code; - save = (save << 6) | rank; - state++; - if (state === 4) { - buffer[outptr++] = save >>> 16; - if (last[1] !== 61 /* padding character */) { - buffer[outptr++] = save >>> 8; - } - if (last[0] !== 61 /* padding character */) { - buffer[outptr++] = save; - } - state = 0; - } - } - } - // 2/3 chance there's going to be some null bytes at the end, but that - // doesn't really matter with most image formats. - // If it somehow matters for you, truncate the buffer up outptr. - return buffer; - } + Uint8Array = view.Uint8Array + , HTMLCanvasElement = view.HTMLCanvasElement + , canvas_proto = HTMLCanvasElement && HTMLCanvasElement.prototype + , is_base64_regex = /\s*;\s*base64\s*(?:;|$)/i + , to_data_url = "toDataURL" + , base64_ranks + , decode_base64 = function(base64) { + var + len = base64.length + , buffer = new Uint8Array(len / 4 * 3 | 0) + , i = 0 + , outptr = 0 + , last = [0, 0] + , state = 0 + , save = 0 + , rank + , code + , undef + ; + while (len--) { + code = base64.charCodeAt(i++); + rank = base64_ranks[code-43]; + if (rank !== 255 && rank !== undef) { + last[1] = last[0]; + last[0] = code; + save = (save << 6) | rank; + state++; + if (state === 4) { + buffer[outptr++] = save >>> 16; + if (last[1] !== 61 /* padding character */) { + buffer[outptr++] = save >>> 8; + } + if (last[0] !== 61 /* padding character */) { + buffer[outptr++] = save; + } + state = 0; + } + } + } + // 2/3 chance there's going to be some null bytes at the end, but that + // doesn't really matter with most image formats. + // If it somehow matters for you, truncate the buffer up outptr. + return buffer; + } ; if (Uint8Array) { - base64_ranks = new Uint8Array([ - 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1 - , -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 - , 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 - , -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 - , 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 - ]); + base64_ranks = new Uint8Array([ + 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1 + , -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 + , 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 + , -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 + , 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 + ]); } if (HTMLCanvasElement && !canvas_proto.toBlob) { - canvas_proto.toBlob = function(callback, type /*, ...args*/) { - if (!type) { - type = "image/png"; - } if (this.mozGetAsFile) { - callback(this.mozGetAsFile("canvas", type)); - return; - } if (this.msToBlob && /^\s*image\/png\s*(?:$|;)/i.test(type)) { - callback(this.msToBlob()); - return; - } + canvas_proto.toBlob = function(callback, type /*, ...args*/) { + if (!type) { + type = "image/png"; + } if (this.mozGetAsFile) { + callback(this.mozGetAsFile("canvas", type)); + return; + } if (this.msToBlob && /^\s*image\/png\s*(?:$|;)/i.test(type)) { + callback(this.msToBlob()); + return; + } - var - args = Array.prototype.slice.call(arguments, 1) - , dataURI = this[to_data_url].apply(this, args) - , header_end = dataURI.indexOf(",") - , data = dataURI.substring(header_end + 1) - , is_base64 = is_base64_regex.test(dataURI.substring(0, header_end)) - , blob - ; - if (Blob.fake) { - // no reason to decode a data: URI that's just going to become a data URI again - blob = new Blob - if (is_base64) { - blob.encoding = "base64"; - } else { - blob.encoding = "URI"; - } - blob.data = data; - blob.size = data.length; - } else if (Uint8Array) { - if (is_base64) { - blob = new Blob([decode_base64(data)], {type: type}); - } else { - blob = new Blob([decodeURIComponent(data)], {type: type}); - } - } - callback(blob); - }; + var + args = Array.prototype.slice.call(arguments, 1) + , dataURI = this[to_data_url].apply(this, args) + , header_end = dataURI.indexOf(",") + , data = dataURI.substring(header_end + 1) + , is_base64 = is_base64_regex.test(dataURI.substring(0, header_end)) + , blob + ; + if (Blob.fake) { + // no reason to decode a data: URI that's just going to become a data URI again + blob = new Blob + if (is_base64) { + blob.encoding = "base64"; + } else { + blob.encoding = "URI"; + } + blob.data = data; + blob.size = data.length; + } else if (Uint8Array) { + if (is_base64) { + blob = new Blob([decode_base64(data)], {type: type}); + } else { + blob = new Blob([decodeURIComponent(data)], {type: type}); + } + } + callback(blob); + }; - if (canvas_proto.toDataURLHD) { - canvas_proto.toBlobHD = function() { - to_data_url = "toDataURLHD"; - var blob = this.toBlob(); - to_data_url = "toDataURL"; - return blob; - } - } else { - canvas_proto.toBlobHD = canvas_proto.toBlob; - } + if (canvas_proto.toDataURLHD) { + canvas_proto.toBlobHD = function() { + to_data_url = "toDataURLHD"; + var blob = this.toBlob(); + to_data_url = "toDataURL"; + return blob; + } + } else { + canvas_proto.toBlobHD = canvas_proto.toBlob; + } } }(typeof self !== "undefined" && self || typeof window !== "undefined" && window || this.content || this)); diff --git a/lib/demo.css b/lib/demo.css index 5cbbc51a..061d7bfa 100644 --- a/lib/demo.css +++ b/lib/demo.css @@ -1,148 +1,148 @@ /* bwip-js : lib/demo.css */ body { - font-size: 11pt; - font-family: "Lucida Grande",Calibri,Helvetica,Arial,sans-serif; - margin: 0px; + font-size: 11pt; + font-family: "Lucida Grande",Calibri,Helvetica,Arial,sans-serif; + margin: 0px; } #header { - position: relative; - background-color: #212121; - color: #fff; - height: 48px; - padding-left: 21px; - padding-top: 0px; - padding-bottom: 20px; - margin-bottom: 17px; + position: relative; + background-color: #212121; + color: #fff; + height: 48px; + padding-left: 21px; + padding-top: 0px; + padding-bottom: 20px; + margin-bottom: 17px; } #header #bwip-js { - font-size: 25px; - font-family: "Lucida Grande",Calibri,Helvetica,Arial,sans-serif; - font-weight: bold; - position: absolute; - bottom: 21px; + font-size: 25px; + font-family: "Lucida Grande",Calibri,Helvetica,Arial,sans-serif; + font-weight: bold; + position: absolute; + bottom: 21px; } #header #versions { - font-size: 10px; - font-family: "Lucida Grande",Calibri,Helvetica,Arial,sans-serif; - font-weight: 100; - color: #a7a7a7; - position: absolute; - bottom: 2px; - right: 12px; + font-size: 10px; + font-family: "Lucida Grande",Calibri,Helvetica,Arial,sans-serif; + font-weight: 100; + color: #a7a7a7; + position: absolute; + bottom: 2px; + right: 12px; } input, select, label, button { - font-family: Verdana, Arial, san-serif; - font-size: 10.5pt; + font-family: Verdana, Arial, san-serif; + font-size: 10.5pt; } #symbol, #symtext, #symaltx, #symopts, #scaleX, #scaleY { - padding: .5ex; - box-sizing: border-box; - border: 1px solid #999; - border-radius: 4px; + padding: .5ex; + box-sizing: border-box; + border: 1px solid #999; + border-radius: 4px; } #symbol, #symtext, #symaltx, #symopts, #scaleX, #scaleY { - width: 63ex; + width: 63ex; } #scaleX, #scaleY { - width: 6ex; + width: 6ex; } #fonthdr { - position: absolute; - bottom: 0px; - left: 556px; - width: 16ex; - padding-left: 2ex; - padding-top: 1ex; - padding-bottom: 1ex; - background-color: #0090ff; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - color: white; - font-family: Verdana, Arial, san-serif; - font-weight: bold; - cursor: default; + position: absolute; + bottom: 0px; + left: 556px; + width: 16ex; + padding-left: 2ex; + padding-top: 1ex; + padding-bottom: 1ex; + background-color: #0090ff; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + color: white; + font-family: Verdana, Arial, san-serif; + font-weight: bold; + cursor: default; } #fonthdr:hover { - background-color: #32aaff; + background-color: #32aaff; } #fontdiv { - z-index: 999; - position: absolute; - top: 68px; - left: 556px; - padding: 0px; - margin: 0px; - border: 0px; + z-index: 999; + position: absolute; + top: 68px; + left: 556px; + padding: 0px; + margin: 0px; + border: 0px; } #fontdiv div.inner { - border: 1px solid #b9c3ff; - border-top: 0px; - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; - padding: 16px; - color: #000; - background-color: #e3eeff; - font-family: Verdana, Arial, san-serif; - x-box-shadow: 2px 2px 3px #ddd; + border: 1px solid #b9c3ff; + border-top: 0px; + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; + padding: 16px; + color: #000; + background-color: #e3eeff; + font-family: Verdana, Arial, san-serif; + x-box-shadow: 2px 2px 3px #ddd; } #dropzone { - width: 472px; - text-align: center; - border: 1px dashed #999; - background-color: #e7e7e7; - color: #777; - overflow: hidden; + width: 472px; + text-align: center; + border: 1px dashed #999; + background-color: #e7e7e7; + color: #777; + overflow: hidden; } #dropzone:hover { - border: 1px dashed #777; - color: #555; - background-color: #eeeeee; + border: 1px dashed #777; + color: #555; + background-color: #eeeeee; } #dropzone div.content { - padding: 32px 96px; + padding: 32px 96px; } #dropzone .fd-file { - opacity: 0; - font-size: 72px; - position: absolute; - right: 0px; - top: 0px; - width: 1000px; + opacity: 0; + font-size: 72px; + position: absolute; + right: 0px; + top: 0px; + width: 1000px; } #fontlist.visible { - margin-top: 20px; - border-top: 1px solid #bbb; - padding-top: 20px; + margin-top: 20px; + border-top: 1px solid #bbb; + padding-top: 20px; } #fontlist td, #fontlist th { - text-align: left; - padding: 3px 1ex; - border-bottom: 1px solid #999; + text-align: left; + padding: 3px 1ex; + border-bottom: 1px solid #999; } #fontlist td.delete span { - opacity: .4; + opacity: .4; } #fontlist td.delete:hover span { - opacity: 1; + opacity: 1; } #params { - margin-left: 12px; + margin-left: 12px; } #content { - margin-left: 20px; + margin-left: 20px; } #params th { - text-align: right; - padding-right: 1.5ex; + text-align: right; + padding-right: 1.5ex; } a.saveas { - color: blue; + color: blue; } a.saveas:visited { - color: blue; + color: blue; } button { - padding: .5ex 1ex; - min-width: 18ex; + padding: .5ex 1ex; + min-width: 18ex; } diff --git a/lib/filesaver.js b/lib/filesaver.js index c8f36fb4..08942f1d 100644 --- a/lib/filesaver.js +++ b/lib/filesaver.js @@ -18,222 +18,222 @@ var saveAs = saveAs navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator)) // Everyone else || (function(view) { - "use strict"; - // IE <10 is explicitly unsupported - if (typeof navigator !== "undefined" && - /MSIE [1-9]\./.test(navigator.userAgent)) { - return; - } - var - doc = view.document - // only get URL when necessary in case Blob.js hasn't overridden it yet - , get_URL = function() { - return view.URL || view.webkitURL || view; - } - , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a") - , can_use_save_link = "download" in save_link - , click = function(node) { - var event = doc.createEvent("MouseEvents"); - event.initMouseEvent( - "click", true, false, view, 0, 0, 0, 0, 0 - , false, false, false, false, 0, null - ); - node.dispatchEvent(event); - } - , webkit_req_fs = view.webkitRequestFileSystem - , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem - , throw_outside = function(ex) { - (view.setImmediate || view.setTimeout)(function() { - throw ex; - }, 0); - } - , force_saveable_type = "application/octet-stream" - , fs_min_size = 0 - // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and - // https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047 - // for the reasoning behind the timeout and revocation flow - , arbitrary_revoke_timeout = 500 // in ms - , revoke = function(file) { - var revoker = function() { - if (typeof file === "string") { // file is an object URL - get_URL().revokeObjectURL(file); - } else { // file is a File - file.remove(); - } - }; - if (view.chrome) { - revoker(); - } else { - setTimeout(revoker, arbitrary_revoke_timeout); - } - } - , dispatch = function(filesaver, event_types, event) { - event_types = [].concat(event_types); - var i = event_types.length; - while (i--) { - var listener = filesaver["on" + event_types[i]]; - if (typeof listener === "function") { - try { - listener.call(filesaver, event || filesaver); - } catch (ex) { - throw_outside(ex); - } - } - } - } - , FileSaver = function(blob, name) { - // First try a.download, then web filesystem, then object URLs - var - filesaver = this - , type = blob.type - , blob_changed = false - , object_url - , target_view - , dispatch_all = function() { - dispatch(filesaver, "writestart progress write writeend".split(" ")); - } - // on any filesys errors revert to saving with object URLs - , fs_error = function() { - // don't create more object URLs than needed - if (blob_changed || !object_url) { - object_url = get_URL().createObjectURL(blob); - } - if (target_view) { - target_view.location.href = object_url; - } else { - var new_tab = view.open(object_url, "_blank"); - if (new_tab == undefined && typeof safari !== "undefined") { - //Apple do not allow window.open, see http://bit.ly/1kZffRI - view.location.href = object_url - } - } - filesaver.readyState = filesaver.DONE; - dispatch_all(); - revoke(object_url); - } - , abortable = function(func) { - return function() { - if (filesaver.readyState !== filesaver.DONE) { - return func.apply(this, arguments); - } - }; - } - , create_if_not_found = {create: true, exclusive: false} - , slice - ; - filesaver.readyState = filesaver.INIT; - if (!name) { - name = "download"; - } - if (can_use_save_link) { - object_url = get_URL().createObjectURL(blob); - save_link.href = object_url; - save_link.download = name; - click(save_link); - filesaver.readyState = filesaver.DONE; - dispatch_all(); - revoke(object_url); - return; - } - // prepend BOM for UTF-8 XML and text/plain types - if (/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) { - blob = new Blob(["\ufeff", blob], {type: blob.type}); - } - // Object and web filesystem URLs have a problem saving in Google Chrome when - // viewed in a tab, so I force save with application/octet-stream - // http://code.google.com/p/chromium/issues/detail?id=91158 - // Update: Google errantly closed 91158, I submitted it again: - // https://code.google.com/p/chromium/issues/detail?id=389642 - if (view.chrome && type && type !== force_saveable_type) { - slice = blob.slice || blob.webkitSlice; - blob = slice.call(blob, 0, blob.size, force_saveable_type); - blob_changed = true; - } - // Since I can't be sure that the guessed media type will trigger a download - // in WebKit, I append .download to the filename. - // https://bugs.webkit.org/show_bug.cgi?id=65440 - if (webkit_req_fs && name !== "download") { - name += ".download"; - } - if (type === force_saveable_type || webkit_req_fs) { - target_view = view; - } - if (!req_fs) { - fs_error(); - return; - } - fs_min_size += blob.size; - req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) { - fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) { - var save = function() { - dir.getFile(name, create_if_not_found, abortable(function(file) { - file.createWriter(abortable(function(writer) { - writer.onwriteend = function(event) { - target_view.location.href = file.toURL(); - filesaver.readyState = filesaver.DONE; - dispatch(filesaver, "writeend", event); - revoke(file); - }; - writer.onerror = function() { - var error = writer.error; - if (error.code !== error.ABORT_ERR) { - fs_error(); - } - }; - "writestart progress write abort".split(" ").forEach(function(event) { - writer["on" + event] = filesaver["on" + event]; - }); - writer.write(blob); - filesaver.abort = function() { - writer.abort(); - filesaver.readyState = filesaver.DONE; - }; - filesaver.readyState = filesaver.WRITING; - }), fs_error); - }), fs_error); - }; - dir.getFile(name, {create: false}, abortable(function(file) { - // delete file if it already exists - file.remove(); - save(); - }), abortable(function(ex) { - if (ex.code === ex.NOT_FOUND_ERR) { - save(); - } else { - fs_error(); - } - })); - }), fs_error); - }), fs_error); - } - , FS_proto = FileSaver.prototype - , saveAs = function(blob, name) { - return new FileSaver(blob, name); - } - ; - FS_proto.abort = function() { - var filesaver = this; - filesaver.readyState = filesaver.DONE; - dispatch(filesaver, "abort"); - }; - FS_proto.readyState = FS_proto.INIT = 0; - FS_proto.WRITING = 1; - FS_proto.DONE = 2; + "use strict"; + // IE <10 is explicitly unsupported + if (typeof navigator !== "undefined" && + /MSIE [1-9]\./.test(navigator.userAgent)) { + return; + } + var + doc = view.document + // only get URL when necessary in case Blob.js hasn't overridden it yet + , get_URL = function() { + return view.URL || view.webkitURL || view; + } + , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a") + , can_use_save_link = "download" in save_link + , click = function(node) { + var event = doc.createEvent("MouseEvents"); + event.initMouseEvent( + "click", true, false, view, 0, 0, 0, 0, 0 + , false, false, false, false, 0, null + ); + node.dispatchEvent(event); + } + , webkit_req_fs = view.webkitRequestFileSystem + , req_fs = view.requestFileSystem || webkit_req_fs || view.mozRequestFileSystem + , throw_outside = function(ex) { + (view.setImmediate || view.setTimeout)(function() { + throw ex; + }, 0); + } + , force_saveable_type = "application/octet-stream" + , fs_min_size = 0 + // See https://code.google.com/p/chromium/issues/detail?id=375297#c7 and + // https://github.com/eligrey/FileSaver.js/commit/485930a#commitcomment-8768047 + // for the reasoning behind the timeout and revocation flow + , arbitrary_revoke_timeout = 500 // in ms + , revoke = function(file) { + var revoker = function() { + if (typeof file === "string") { // file is an object URL + get_URL().revokeObjectURL(file); + } else { // file is a File + file.remove(); + } + }; + if (view.chrome) { + revoker(); + } else { + setTimeout(revoker, arbitrary_revoke_timeout); + } + } + , dispatch = function(filesaver, event_types, event) { + event_types = [].concat(event_types); + var i = event_types.length; + while (i--) { + var listener = filesaver["on" + event_types[i]]; + if (typeof listener === "function") { + try { + listener.call(filesaver, event || filesaver); + } catch (ex) { + throw_outside(ex); + } + } + } + } + , FileSaver = function(blob, name) { + // First try a.download, then web filesystem, then object URLs + var + filesaver = this + , type = blob.type + , blob_changed = false + , object_url + , target_view + , dispatch_all = function() { + dispatch(filesaver, "writestart progress write writeend".split(" ")); + } + // on any filesys errors revert to saving with object URLs + , fs_error = function() { + // don't create more object URLs than needed + if (blob_changed || !object_url) { + object_url = get_URL().createObjectURL(blob); + } + if (target_view) { + target_view.location.href = object_url; + } else { + var new_tab = view.open(object_url, "_blank"); + if (new_tab == undefined && typeof safari !== "undefined") { + //Apple do not allow window.open, see http://bit.ly/1kZffRI + view.location.href = object_url + } + } + filesaver.readyState = filesaver.DONE; + dispatch_all(); + revoke(object_url); + } + , abortable = function(func) { + return function() { + if (filesaver.readyState !== filesaver.DONE) { + return func.apply(this, arguments); + } + }; + } + , create_if_not_found = {create: true, exclusive: false} + , slice + ; + filesaver.readyState = filesaver.INIT; + if (!name) { + name = "download"; + } + if (can_use_save_link) { + object_url = get_URL().createObjectURL(blob); + save_link.href = object_url; + save_link.download = name; + click(save_link); + filesaver.readyState = filesaver.DONE; + dispatch_all(); + revoke(object_url); + return; + } + // prepend BOM for UTF-8 XML and text/plain types + if (/^\s*(?:text\/(?:plain|xml)|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) { + blob = new Blob(["\ufeff", blob], {type: blob.type}); + } + // Object and web filesystem URLs have a problem saving in Google Chrome when + // viewed in a tab, so I force save with application/octet-stream + // http://code.google.com/p/chromium/issues/detail?id=91158 + // Update: Google errantly closed 91158, I submitted it again: + // https://code.google.com/p/chromium/issues/detail?id=389642 + if (view.chrome && type && type !== force_saveable_type) { + slice = blob.slice || blob.webkitSlice; + blob = slice.call(blob, 0, blob.size, force_saveable_type); + blob_changed = true; + } + // Since I can't be sure that the guessed media type will trigger a download + // in WebKit, I append .download to the filename. + // https://bugs.webkit.org/show_bug.cgi?id=65440 + if (webkit_req_fs && name !== "download") { + name += ".download"; + } + if (type === force_saveable_type || webkit_req_fs) { + target_view = view; + } + if (!req_fs) { + fs_error(); + return; + } + fs_min_size += blob.size; + req_fs(view.TEMPORARY, fs_min_size, abortable(function(fs) { + fs.root.getDirectory("saved", create_if_not_found, abortable(function(dir) { + var save = function() { + dir.getFile(name, create_if_not_found, abortable(function(file) { + file.createWriter(abortable(function(writer) { + writer.onwriteend = function(event) { + target_view.location.href = file.toURL(); + filesaver.readyState = filesaver.DONE; + dispatch(filesaver, "writeend", event); + revoke(file); + }; + writer.onerror = function() { + var error = writer.error; + if (error.code !== error.ABORT_ERR) { + fs_error(); + } + }; + "writestart progress write abort".split(" ").forEach(function(event) { + writer["on" + event] = filesaver["on" + event]; + }); + writer.write(blob); + filesaver.abort = function() { + writer.abort(); + filesaver.readyState = filesaver.DONE; + }; + filesaver.readyState = filesaver.WRITING; + }), fs_error); + }), fs_error); + }; + dir.getFile(name, {create: false}, abortable(function(file) { + // delete file if it already exists + file.remove(); + save(); + }), abortable(function(ex) { + if (ex.code === ex.NOT_FOUND_ERR) { + save(); + } else { + fs_error(); + } + })); + }), fs_error); + }), fs_error); + } + , FS_proto = FileSaver.prototype + , saveAs = function(blob, name) { + return new FileSaver(blob, name); + } + ; + FS_proto.abort = function() { + var filesaver = this; + filesaver.readyState = filesaver.DONE; + dispatch(filesaver, "abort"); + }; + FS_proto.readyState = FS_proto.INIT = 0; + FS_proto.WRITING = 1; + FS_proto.DONE = 2; - FS_proto.error = - FS_proto.onwritestart = - FS_proto.onprogress = - FS_proto.onwrite = - FS_proto.onabort = - FS_proto.onerror = - FS_proto.onwriteend = - null; + FS_proto.error = + FS_proto.onwritestart = + FS_proto.onprogress = + FS_proto.onwrite = + FS_proto.onabort = + FS_proto.onerror = + FS_proto.onwriteend = + null; - return saveAs; + return saveAs; }( - typeof self !== "undefined" && self - || typeof window !== "undefined" && window - || this.content + typeof self !== "undefined" && self + || typeof window !== "undefined" && window + || this.content )); // `self` is undefined in Firefox for Android content script context // while `this` is nsIContentFrameMessageManager diff --git a/lib/symdesc.js b/lib/symdesc.js index 2ed82a5a..72f4a67f 100644 --- a/lib/symdesc.js +++ b/lib/symdesc.js @@ -1,10 +1,10 @@ // file: bwip-js/lib/symdesc.js // // This code was automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 +// Barcode Writer in Pure PostScript - Version 2024-01-03 // // Copyright (c) 2011-2024 Mark Warren -// Copyright (c) 2004-2023 Terry Burton +// Copyright (c) 2004-2024 Terry Burton // // Licensed MIT. See the LICENSE file in the bwip-js root directory // for the extended copyright notice. diff --git a/package.json b/package.json index c45844b7..1be2352f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bwip-js", - "version": "4.2.0", + "version": "4.3.0", "description": "JavaScript barcode generator supporting over 100 types and standards.", "exports": { ".": { diff --git a/src/bwip-js.d.ts b/src/bwip-js.d.ts index 0b5238f4..e34fe0b6 100644 --- a/src/bwip-js.d.ts +++ b/src/bwip-js.d.ts @@ -135,7 +135,7 @@ declare namespace BwipJs { ): | Array<{ bbs: number[]; bhs: number[]; sbs: number[] }> | Array<{ pixs: number[]; pixx: number; pixy: number; height: number; width: number }>; - + export const BWIPP_VERSION: string; export const BWIPJS_VERSION: string; diff --git a/src/bwipjs.js b/src/bwipjs.js index 7a8005cd..b05e0fd3 100644 --- a/src/bwipjs.js +++ b/src/bwipjs.js @@ -8,141 +8,141 @@ var BWIPJS = (function() { var floor = Math.floor; var round = Math.round; var ceil = Math.ceil; -var min = Math.min; -var max = Math.max; +var min = Math.min; +var max = Math.max; function BWIPJS(drawing) { - if (this.constructor !== BWIPJS) { - return new BWIPJS(drawing); - } - this.gstk = []; // Graphics save/restore stack - this.cmds = []; // Graphics primitives to replay when rendering - this.drawing = drawing; // Drawing interface + if (this.constructor !== BWIPJS) { + return new BWIPJS(drawing); + } + this.gstk = []; // Graphics save/restore stack + this.cmds = []; // Graphics primitives to replay when rendering + this.drawing = drawing; // Drawing interface - this.reset(); + this.reset(); - // Drawing surface bounding box - this.minx = this.miny = Infinity; - this.maxx = this.maxy = -Infinity; + // Drawing surface bounding box + this.minx = this.miny = Infinity; + this.maxx = this.maxy = -Infinity; }; // All graphics state that must be saved/restored is given a prefix of g_ BWIPJS.prototype.reset = function() { - // Current Transform Matrix - since we don't do rotation, we can fake - // the matrix math - this.g_tdx = 0; // CTM x-offset - this.g_tdy = 0; // CTM y-offset - this.g_tsx = 1; // CTM x-scale factor - this.g_tsy = 1; // CTM y-scale factor - - this.g_posx = 0; // current x position - this.g_posy = 0; // current y position - this.g_penw = 1; // current line/pen width - this.g_path = []; // current path - this.g_font = null; // current font object - this.g_rgb = [0,0,0]; // current color (black) + // Current Transform Matrix - since we don't do rotation, we can fake + // the matrix math + this.g_tdx = 0; // CTM x-offset + this.g_tdy = 0; // CTM y-offset + this.g_tsx = 1; // CTM x-scale factor + this.g_tsy = 1; // CTM y-scale factor + + this.g_posx = 0; // current x position + this.g_posy = 0; // current y position + this.g_penw = 1; // current line/pen width + this.g_path = []; // current path + this.g_font = null; // current font object + this.g_rgb = [0,0,0]; // current color (black) this.g_clip = false; // clip region active }; BWIPJS.prototype.save = function() { - // clone all g_ properties - var ctx = {}; - for (var id in this) { - if (id.indexOf('g_') == 0) { - ctx[id] = clone(this[id]); - } - } - this.gstk.push(ctx); - - // Perform a deep clone of the graphics state properties - function clone(v) { - if (v instanceof Array) { - var t = []; - for (var i = 0; i < v.length; i++) - t[i] = clone(v[i]); - return t; - } - if (v instanceof Object) { - var t = {}; - for (var id in v) - t[id] = clone(v[id]); - return t; - } - return v; - } + // clone all g_ properties + var ctx = {}; + for (var id in this) { + if (id.indexOf('g_') == 0) { + ctx[id] = clone(this[id]); + } + } + this.gstk.push(ctx); + + // Perform a deep clone of the graphics state properties + function clone(v) { + if (v instanceof Array) { + var t = []; + for (var i = 0; i < v.length; i++) + t[i] = clone(v[i]); + return t; + } + if (v instanceof Object) { + var t = {}; + for (var id in v) + t[id] = clone(v[id]); + return t; + } + return v; + } }; BWIPJS.prototype.restore = function() { - if (!this.gstk.length) { - throw new Error('grestore: stack underflow'); - } - var ctx = this.gstk.pop(); + if (!this.gstk.length) { + throw new Error('grestore: stack underflow'); + } + var ctx = this.gstk.pop(); var self = this; if (this.g_clip && !ctx.g_clip) { this.cmds.push(function() { self.drawing.unclip(); }); } - for (var id in ctx) { - this[id] = ctx[id]; - } + for (var id in ctx) { + this[id] = ctx[id]; + } }; // Per the postscript spec: -// As discussed in Section 4.4.1, Current Path, points entered into a path -// are immediately converted to device coordinates by the current -// transformation matrix (CTM); subsequent modifications to the CTM do not -// affect existing points. `currentpoint` computes the user space -// coordinates corresponding to the current point according to the current -// value of the CTM. Thus, if a current point is set and then the CTM is -// changed, the coordinates returned by currentpoint will be different -// from those that were originally specified for the point. +// As discussed in Section 4.4.1, Current Path, points entered into a path +// are immediately converted to device coordinates by the current +// transformation matrix (CTM); subsequent modifications to the CTM do not +// affect existing points. `currentpoint` computes the user space +// coordinates corresponding to the current point according to the current +// value of the CTM. Thus, if a current point is set and then the CTM is +// changed, the coordinates returned by currentpoint will be different +// from those that were originally specified for the point. BWIPJS.prototype.currpos = function() { - return { x:(this.g_posx-this.g_tdx)/this.g_tsx, - y:(this.g_posy-this.g_tdy)/this.g_tsy - }; + return { x:(this.g_posx-this.g_tdx)/this.g_tsx, + y:(this.g_posy-this.g_tdy)/this.g_tsy + }; }; BWIPJS.prototype.currfont = function() { - return this.g_font; + return this.g_font; }; BWIPJS.prototype.translate = function(x, y) { - this.g_tdx = this.g_tsx * x; - this.g_tdy = this.g_tsy * y; + this.g_tdx = this.g_tsx * x; + this.g_tdy = this.g_tsy * y; }; BWIPJS.prototype.scale = function(x, y) { - this.g_tsx *= x; - this.g_tsy *= y; - var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); - if (sxy && sxy[0] && sxy[1]) { - this.g_tsx = sxy[0]; - this.g_tsy = sxy[1]; - } + this.g_tsx *= x; + this.g_tsy *= y; + var sxy = this.drawing.scale(this.g_tsx, this.g_tsy); + if (sxy && sxy[0] && sxy[1]) { + this.g_tsx = sxy[0]; + this.g_tsy = sxy[1]; + } }; BWIPJS.prototype.setlinewidth = function(w) { - this.g_penw = w; + this.g_penw = w; }; BWIPJS.prototype.selectfont = function(f, z) { - this.g_font = { FontName:this.jsstring(f), FontSize:+z }; + this.g_font = { FontName:this.jsstring(f), FontSize:+z }; }; BWIPJS.prototype.getfont = function() { - return this.g_font.FontName; + return this.g_font.FontName; }; // Special function for converting a Uint8Array string to string. BWIPJS.prototype.jsstring = function(s) { - if (s instanceof Uint8Array) { - // Postscript (like C) treats nul-char as end of string. - //for (var i = 0, l = s.length; i < l && s[i]; i++); - //if (i < l) { - // return String.fromCharCode.apply(null,s.subarray(0, i)); - //} - return String.fromCharCode.apply(null,s) - } - return ''+s; + if (s instanceof Uint8Array) { + // Postscript (like C) treats nul-char as end of string. + //for (var i = 0, l = s.length; i < l && s[i]; i++); + //if (i < l) { + // return String.fromCharCode.apply(null,s.subarray(0, i)); + //} + return String.fromCharCode.apply(null,s) + } + return ''+s; }; // Special function to replace setanycolor in BWIPP. // Converts a string of hex digits either rgb, rrggbb or ccmmyykk. // Or CSS-style #rgb and #rrggbb. BWIPJS.prototype.setcolor = function(s) { - if (s instanceof Uint8Array) { - s = this.jsstring(s); - } + if (s instanceof Uint8Array) { + s = this.jsstring(s); + } if (!s) { return; } @@ -153,24 +153,24 @@ BWIPJS.prototype.setcolor = function(s) { s = s.substr(1); } if (s.length == 3) { - var r = parseInt(s[0], 16); - var g = parseInt(s[1], 16); - var b = parseInt(s[2], 16); - this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; + var r = parseInt(s[0], 16); + var g = parseInt(s[1], 16); + var b = parseInt(s[2], 16); + this.g_rgb = [ r<<4|r, g<<4|g, b<<4|b ]; } else if (s.length == 6) { - var r = parseInt(s.substr(0,2), 16); - var g = parseInt(s.substr(2,2), 16); - var b = parseInt(s.substr(4,2), 16); - this.g_rgb = [ r, g, b ]; - } else { - var c = parseInt(s.substr(0,2), 16) / 255; - var m = parseInt(s.substr(2,2), 16) / 255; - var y = parseInt(s.substr(4,2), 16) / 255; - var k = parseInt(s.substr(6,2), 16) / 255; - var r = round((1-c) * (1-k) * 255); - var g = round((1-m) * (1-k) * 255); - var b = round((1-y) * (1-k) * 255); - this.g_rgb = [ r, g, b ]; + var r = parseInt(s.substr(0,2), 16); + var g = parseInt(s.substr(2,2), 16); + var b = parseInt(s.substr(4,2), 16); + this.g_rgb = [ r, g, b ]; + } else { + var c = parseInt(s.substr(0,2), 16) / 255; + var m = parseInt(s.substr(2,2), 16) / 255; + var y = parseInt(s.substr(4,2), 16) / 255; + var k = parseInt(s.substr(6,2), 16) / 255; + var r = round((1-c) * (1-k) * 255); + var g = round((1-m) * (1-k) * 255); + var b = round((1-y) * (1-k) * 255); + this.g_rgb = [ r, g, b ]; } }; // Used only by swissqrcode @@ -179,452 +179,452 @@ BWIPJS.prototype.setrgbcolor = function(r,g,b) { }; // Returns the current rgb values as a 'RRGGBB' BWIPJS.prototype.getRGB = function() { - var r = this.g_rgb[0].toString(16); - var g = this.g_rgb[1].toString(16); - var b = this.g_rgb[2].toString(16); - return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; + var r = this.g_rgb[0].toString(16); + var g = this.g_rgb[1].toString(16); + var b = this.g_rgb[2].toString(16); + return '00'.substr(r.length) + r + '00'.substr(g.length) + g + '00'.substr(b.length) + b; }; BWIPJS.prototype.newpath = function() { - this.g_path = []; + this.g_path = []; }; BWIPJS.prototype.closepath = function() { - var path = this.g_path; - var plen = path.length; - if (!plen) return; - - var f = plen-1; - for ( ; f >= 0 && path[f].op == 'l'; f--); - f++; - if (f < plen-1) { - var poly = []; - var xmin = Infinity; - var ymin = Infinity; - var xmax = -Infinity; - var ymax = -Infinity; - for (var i = f; i < plen; i++) { - var a = path[i]; - poly.push([ a.x0, a.y0 ]); - if (xmin > a.x0) xmin = a.x0; - if (xmax < a.x0) xmax = a.x0; - if (ymin > a.y0) ymin = a.y0; - if (ymax < a.y0) ymax = a.y0; - } - var a = path[plen-1]; - var b = path[f]; - if (a.x1 != b.x0 || a.y1 != b.y0) { - poly.push([ a.x1, a.y1 ]); - if (xmin > a.x1) xmin = a.x1; - if (xmax < a.x1) xmax = a.x1; - if (ymin > a.y1) ymin = a.y1; - if (ymax < a.y1) ymax = a.y1; - } - path.splice(f, plen-f, - { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); - } else { - path.push({ op:'c' }); - } + var path = this.g_path; + var plen = path.length; + if (!plen) return; + + var f = plen-1; + for ( ; f >= 0 && path[f].op == 'l'; f--); + f++; + if (f < plen-1) { + var poly = []; + var xmin = Infinity; + var ymin = Infinity; + var xmax = -Infinity; + var ymax = -Infinity; + for (var i = f; i < plen; i++) { + var a = path[i]; + poly.push([ a.x0, a.y0 ]); + if (xmin > a.x0) xmin = a.x0; + if (xmax < a.x0) xmax = a.x0; + if (ymin > a.y0) ymin = a.y0; + if (ymax < a.y0) ymax = a.y0; + } + var a = path[plen-1]; + var b = path[f]; + if (a.x1 != b.x0 || a.y1 != b.y0) { + poly.push([ a.x1, a.y1 ]); + if (xmin > a.x1) xmin = a.x1; + if (xmax < a.x1) xmax = a.x1; + if (ymin > a.y1) ymin = a.y1; + if (ymax < a.y1) ymax = a.y1; + } + path.splice(f, plen-f, + { op:'p', x0:xmin, y0:ymin, x1:xmax, y1:ymax, poly:poly }); + } else { + path.push({ op:'c' }); + } }; BWIPJS.prototype.moveto = function(x,y) { - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; }; BWIPJS.prototype.rmoveto = function(x,y) { - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; }; BWIPJS.prototype.lineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx = this.g_tdx + this.g_tsx * x; - this.g_posy = this.g_tdy + this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx = this.g_tdx + this.g_tsx * x; + this.g_posy = this.g_tdy + this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; BWIPJS.prototype.rlineto = function(x,y) { - var x0 = round(this.g_posx); - var y0 = round(this.g_posy); - this.g_posx += this.g_tsx * x; - this.g_posy += this.g_tsy * y; - var x1 = round(this.g_posx); - var y1 = round(this.g_posy); + var x0 = round(this.g_posx); + var y0 = round(this.g_posy); + this.g_posx += this.g_tsx * x; + this.g_posy += this.g_tsy * y; + var x1 = round(this.g_posx); + var y1 = round(this.g_posy); - this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); + this.g_path.push({ op:'l', x0:x0, y0:y0, x1:x1, y1:y1 }); }; // implements both arc and arcn BWIPJS.prototype.arc = function(x,y,r,sa,ea,ccw) { - if (sa == ea) { - return; - } - // For now, we only implement full circles... - if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { - throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); - } - - x = this.g_tdx + this.g_tsx * x; - y = this.g_tdy + this.g_tsy * y; - - // e == ellipse - var rx = r * this.g_tsx; - var ry = r * this.g_tsy; - this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, - x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); + if (sa == ea) { + return; + } + // For now, we only implement full circles... + if (sa != 0 && sa != 360 || ea != 0 && ea != 360) { + throw new Error('arc: not a full circle (' + sa + ',' + ea + ')'); + } + + x = this.g_tdx + this.g_tsx * x; + y = this.g_tdy + this.g_tsy * y; + + // e == ellipse + var rx = r * this.g_tsx; + var ry = r * this.g_tsy; + this.g_path.push({ op:'e', x0:x-rx, y0:y-ry, x1:x+rx, y1:y+ry, + x:x, y:y, rx:rx, ry:ry, sa:sa, ea:ea, ccw:ccw }); }; BWIPJS.prototype.stringwidth = function(str) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var size = +this.g_font.FontSize || 10; + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var size = +this.g_font.FontSize || 10; - // The string can be either a uint8-string or regular string - str = this.toUCS2(this.jsstring(str)); + // The string can be either a uint8-string or regular string + str = this.toUCS2(this.jsstring(str)); - var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); + var bbox = this.drawing.measure(str, this.g_font.FontName, size*tsx, size*tsy); - return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, - a:bbox.ascent/tsy, d:bbox.descent/tsy }; + return { w:bbox.width/tsx, h:(bbox.ascent+bbox.descent)/tsy, + a:bbox.ascent/tsy, d:bbox.descent/tsy }; }; BWIPJS.prototype.charpath = function(str, b) { - var sw = this.stringwidth(str); + var sw = this.stringwidth(str); - // Emulate the char-path by placing a rectangle around it - this.rlineto(0, sw.a); - this.rlineto(sw.w, 0); - this.rlineto(0, -sw.h); + // Emulate the char-path by placing a rectangle around it + this.rlineto(0, sw.a); + this.rlineto(sw.w, 0); + this.rlineto(0, -sw.h); }; BWIPJS.prototype.pathbbox = function() { - if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); - var path = this.g_path; - var llx = Infinity; - var lly = Infinity; - var urx = -Infinity; - var ury = -Infinity; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'c') { - continue; - } - if (a.x0 < a.x1) { - if (llx > a.x0) llx = a.x0; - if (urx < a.x1) urx = a.x1; - } else { - if (llx > a.x1) llx = a.x1; - if (urx < a.x0) urx = a.x0; - } - if (a.y0 < a.y1) { - if (lly > a.y0) lly = a.y0; - if (ury < a.y1) ury = a.y1; - } else { - if (lly > a.y1) lly = a.y1; - if (ury < a.y0) ury = a.y0; - } - } - - // Convert to user-space coordinates - var rv = { llx:(llx-this.g_tdx)/this.g_tsx, - lly:(lly-this.g_tdy)/this.g_tsy, - urx:(urx-this.g_tdx)/this.g_tsx, - ury:(ury-this.g_tdy)/this.g_tsy }; - return rv; + if (!this.g_path.length) throw new Error('pathbbox: --nocurrentpoint--'); + var path = this.g_path; + var llx = Infinity; + var lly = Infinity; + var urx = -Infinity; + var ury = -Infinity; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'c') { + continue; + } + if (a.x0 < a.x1) { + if (llx > a.x0) llx = a.x0; + if (urx < a.x1) urx = a.x1; + } else { + if (llx > a.x1) llx = a.x1; + if (urx < a.x0) urx = a.x0; + } + if (a.y0 < a.y1) { + if (lly > a.y0) lly = a.y0; + if (ury < a.y1) ury = a.y1; + } else { + if (lly > a.y1) lly = a.y1; + if (ury < a.y0) ury = a.y0; + } + } + + // Convert to user-space coordinates + var rv = { llx:(llx-this.g_tdx)/this.g_tsx, + lly:(lly-this.g_tdy)/this.g_tsy, + urx:(urx-this.g_tdx)/this.g_tsx, + ury:(ury-this.g_tdy)/this.g_tsy }; + return rv; }; // Tranforms the pts array to standard (not y-inverted), unscalled values. BWIPJS.prototype.transform = function(pts) { - var minx = this.minx; - var maxy = this.maxy; + var minx = this.minx; + var maxy = this.maxy; - for (var i = 0; i < pts.length; i++) { - var pt = pts[i]; - pt[0] = pt[0] - minx; - pt[1] = maxy - pt[1]; - } + for (var i = 0; i < pts.length; i++) { + var pt = pts[i]; + pt[0] = pt[0] - minx; + pt[1] = maxy - pt[1]; + } }; BWIPJS.prototype.stroke = function() { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // This is a "super majority" round i.e. if over .66 round up. - var penw = floor(this.g_penw * tsx + 0.66); - var penh = floor(this.g_penw * tsy + 0.66); - - // Calculate the bounding boxes - var nlines = 0, npolys = 0; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'l') { - // We only stroke vertical and horizontal lines. Complex shapes are - // always filled. - if (a.x0 != a.x1 && a.y0 != a.y1) { - throw new Error('stroke: --not-orthogonal--'); - } - var x0 = a.x0; - var y0 = a.y0; - var x1 = a.x1; - var y1 = a.y1; - - // Half widths (may be factional) - var penw2 = penw/2; - var penh2 = penh/2; - - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - if (x0 == x1) { - this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line - } else { - this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line - } - nlines++; - } else if (a.op == 'p') { - // Closed (rectangular) poly (border around the barcode) - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - if (pts.length != 4) { - throw new Error('stroke: --not-a-rect--'); - } - for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { - var xj = pts[j][0]; - var yj = pts[j][1]; - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi != xj && yi != yj) { - throw new Error('stroke: --not-orthogonal--'); - } - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - - // Half widths (integer) - var penw2 = ceil(penw/2); - var penh2 = ceil(penh/2); - - // We render these as two polygons plus a fill. - // When border width is odd, allocate the bigger half to the outside. - this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); - npolys++; - } else { - throw new Error('stroke: --not-a-line--'); - } - } - - // Draw the lines - var self = this; - this.cmds.push(function() { - // Half widths (big half and remaining half) - var bigw2 = ceil(penw/2); - var bigh2 = ceil(penh/2); - var remw2 = penw - bigw2; - var remh2 = penh - bigh2; - - for (var i = 0; i < path.length; i++) { - var a = path[i] - if (a.op == 'l') { - var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; - self.transform(pts); - self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], - a.x0 == a.x1 ? penw : penh, rgb); - self.fill(rgb); - } else { - var pts = a.poly; - self.transform(pts); - var x0 = min(pts[0][0], pts[2][0]); - var x1 = max(pts[0][0], pts[2][0]); - var y0 = min(pts[0][1], pts[2][1]); - var y1 = max(pts[0][1], pts[2][1]); - - // Top and left edges are "inside" the polygon. - // Bottom and right edges are outside. - self.drawing.polygon([ - [ x0-bigw2, y0-bigh2 ], - [ x0-bigw2, y1+bigh2+1 ], - [ x1+bigw2+1, y1+bigh2+1 ], - [ x1+bigw2+1, y0-bigh2 ] - ]); - self.drawing.polygon([ - [ x0+remw2, y0+remh2 ], - [ x0+remw2, y1-remh2+1 ], - [ x1-remw2+1, y1-remh2+1 ], - [ x1-remw2+1, y0+remh2 ], - ]); - self.drawing.fill(rgb); - } - } - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // This is a "super majority" round i.e. if over .66 round up. + var penw = floor(this.g_penw * tsx + 0.66); + var penh = floor(this.g_penw * tsy + 0.66); + + // Calculate the bounding boxes + var nlines = 0, npolys = 0; + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'l') { + // We only stroke vertical and horizontal lines. Complex shapes are + // always filled. + if (a.x0 != a.x1 && a.y0 != a.y1) { + throw new Error('stroke: --not-orthogonal--'); + } + var x0 = a.x0; + var y0 = a.y0; + var x1 = a.x1; + var y1 = a.y1; + + // Half widths (may be factional) + var penw2 = penw/2; + var penh2 = penh/2; + + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 == x1) { + this.bbox(x0-penw2, y0, x0+penw-penw2-1, y1); // vertical line + } else { + this.bbox(x0, y0-penh+penh2+1, x1, y1+penh2); // horizontal line + } + nlines++; + } else if (a.op == 'p') { + // Closed (rectangular) poly (border around the barcode) + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + if (pts.length != 4) { + throw new Error('stroke: --not-a-rect--'); + } + for (var i = 0, j = pts.length-1; i < pts.length; j = i++) { + var xj = pts[j][0]; + var yj = pts[j][1]; + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi != xj && yi != yj) { + throw new Error('stroke: --not-orthogonal--'); + } + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + + // Half widths (integer) + var penw2 = ceil(penw/2); + var penh2 = ceil(penh/2); + + // We render these as two polygons plus a fill. + // When border width is odd, allocate the bigger half to the outside. + this.bbox(minx-penw2, miny-penh2, maxx+penw2, maxy+penh2); + npolys++; + } else { + throw new Error('stroke: --not-a-line--'); + } + } + + // Draw the lines + var self = this; + this.cmds.push(function() { + // Half widths (big half and remaining half) + var bigw2 = ceil(penw/2); + var bigh2 = ceil(penh/2); + var remw2 = penw - bigw2; + var remh2 = penh - bigh2; + + for (var i = 0; i < path.length; i++) { + var a = path[i] + if (a.op == 'l') { + var pts = [ [ a.x0, a.y0 ], [ a.x1, a.y1 ] ]; + self.transform(pts); + self.drawing.line(pts[0][0], pts[0][1], pts[1][0], pts[1][1], + a.x0 == a.x1 ? penw : penh, rgb); + self.fill(rgb); + } else { + var pts = a.poly; + self.transform(pts); + var x0 = min(pts[0][0], pts[2][0]); + var x1 = max(pts[0][0], pts[2][0]); + var y0 = min(pts[0][1], pts[2][1]); + var y1 = max(pts[0][1], pts[2][1]); + + // Top and left edges are "inside" the polygon. + // Bottom and right edges are outside. + self.drawing.polygon([ + [ x0-bigw2, y0-bigh2 ], + [ x0-bigw2, y1+bigh2+1 ], + [ x1+bigw2+1, y1+bigh2+1 ], + [ x1+bigw2+1, y0-bigh2 ] + ]); + self.drawing.polygon([ + [ x0+remw2, y0+remh2 ], + [ x0+remw2, y1-remh2+1 ], + [ x1-remw2+1, y1-remh2+1 ], + [ x1-remw2+1, y0+remh2 ], + ]); + self.drawing.fill(rgb); + } + } + }); }; BWIPJS.prototype.fill = function() { - var path = this.g_path; - var rgb = this.getRGB(); - this.g_path = []; - - // Calculate the bounding boxes - for (var p = 0; p < path.length; p++) { - var a = path[p]; - if (a.op == 'p') { // polygon - var minx = Infinity; - var miny = Infinity; - var maxx = -Infinity; - var maxy = -Infinity; - var pts = a.poly; - for (var i = 0; i < pts.length; i++) { - var xi = pts[i][0]; - var yi = pts[i][1]; - - if (xi < minx) minx = xi; - if (xi > maxx) maxx = xi; - if (yi < miny) miny = yi; - if (yi > maxy) maxy = yi; - } - // With polygons, the right and bottom edges are "outside" and do not - // contribute to the bounding box. But we are in postscript inverted-y - // mode. - this.bbox(minx, miny+1, maxx-1, maxy); - } else if (a.op == 'e') { // ellipse - this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); - } else { - throw new Error('fill: --not-a-polygon--'); - } - } - - // Render the poly - var self = this; - this.cmds.push(function() { - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); - self.drawing.polygon(pts); - } else if (a.op == 'e') { - var pts = [ [ a.x, a.y ] ]; - self.transform(pts); - self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); - } - } - self.drawing.fill(rgb); - }); + var path = this.g_path; + var rgb = this.getRGB(); + this.g_path = []; + + // Calculate the bounding boxes + for (var p = 0; p < path.length; p++) { + var a = path[p]; + if (a.op == 'p') { // polygon + var minx = Infinity; + var miny = Infinity; + var maxx = -Infinity; + var maxy = -Infinity; + var pts = a.poly; + for (var i = 0; i < pts.length; i++) { + var xi = pts[i][0]; + var yi = pts[i][1]; + + if (xi < minx) minx = xi; + if (xi > maxx) maxx = xi; + if (yi < miny) miny = yi; + if (yi > maxy) maxy = yi; + } + // With polygons, the right and bottom edges are "outside" and do not + // contribute to the bounding box. But we are in postscript inverted-y + // mode. + this.bbox(minx, miny+1, maxx-1, maxy); + } else if (a.op == 'e') { // ellipse + this.bbox(a.x - a.rx, a.y - a.ry, a.x + a.rx, a.y + a.ry); + } else { + throw new Error('fill: --not-a-polygon--'); + } + } + + // Render the poly + var self = this; + this.cmds.push(function() { + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); + self.drawing.polygon(pts); + } else if (a.op == 'e') { + var pts = [ [ a.x, a.y ] ]; + self.transform(pts); + self.drawing.ellipse(pts[0][0], pts[0][1], a.rx, a.ry, a.ccw); + } + } + self.drawing.fill(rgb); + }); }; BWIPJS.prototype.clip = function() { - var path = this.g_path; - this.g_path = []; + var path = this.g_path; + this.g_path = []; this.g_clip = true; - var self = this; - this.cmds.push(function() { + var self = this; + this.cmds.push(function() { var polys = []; - for (var i = 0; i < path.length; i++) { - var a = path[i]; - if (a.op == 'p') { - var pts = a.poly - self.transform(pts); + for (var i = 0; i < path.length; i++) { + var a = path[i]; + if (a.op == 'p') { + var pts = a.poly + self.transform(pts); polys.push(pts); - } else { + } else { throw new Error('clip: only polygon regions supported'); - } - } - self.drawing.clip(polys); - }); + } + } + self.drawing.clip(polys); + }); }; // The pix array is in standard (not y-inverted postscript) orientation. BWIPJS.prototype.maxicode = function(pix) { - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var rgb = this.getRGB(); - - // Module width. Module height is an integer multiple of tsy. - var twidth = 1.04 * tsx * 100; - var mwidth = (twidth / 30)|0; - if (twidth - (mwidth*30-1) > 9) { - mwidth++; - } - - // Dimensions needed for plotting the hexagons. These must be integer values. - var w, h, wgap, hgap; - // if (opts.??? ) { - // // Create a one or two pixel gap - // wgap = (mwidth & 1) ? 1 : 2; - // hgap = 1; - // w = mwidth - gap; - // h = 4 * tsy; - // } else { - // Create a 1/8mm gap - wgap = (tsx/2)|0; - hgap = (tsy/2)|0; - w = mwidth - wgap; - if (w & 1) { - w--; - } - h = ((4*tsy)|0) - hgap; - //} - - // These must be integer values - var w2 = w / 2 - 1; // half width - var qh = ((w2+1) / 2)|0; // quarter height - var vh = h - 2 - 2 * qh; // side height - - // Bounding box - this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); - - // Render the elements - var self = this; - this.cmds.push(function() { - // Draw the hexagons - for (var i = 0; i < pix.length; i++) { - var c = pix[i]; - var x = c % 30; - var y = (c / 30)|0; - - // Adjust x,y to the top of hexagon - x *= mwidth; - x += (y & 1) ? mwidth : mwidth/2; - x = x|0; - - y = 33 - y; // invert for postscript notation - y *= tsy * 3; - y += tsy * 2 - h/2; - y = y|0; - - // Build bottom up so the drawing is top-down. - var pts = [ [ x-0.5, y-- ] ]; - y -= qh-1; - pts.push([x-1-w2, y--]); - y -= vh; - pts.push([x-1-w2, y--]); - y -= qh-1; - pts.push([x-0.5, y++]); - y += qh-1; - pts.push([x+w2, y++]); - y += vh; - pts.push([x+w2, y++]); - - self.transform(pts); - self.drawing.hexagon(pts, rgb); - } - self.drawing.fill(rgb); - - - // Draw the rings - var x = (14 * mwidth + mwidth/2 + 0.01)|0; - var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; - self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); - self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); - self.drawing.fill(rgb); - - }); + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var rgb = this.getRGB(); + + // Module width. Module height is an integer multiple of tsy. + var twidth = 1.04 * tsx * 100; + var mwidth = (twidth / 30)|0; + if (twidth - (mwidth*30-1) > 9) { + mwidth++; + } + + // Dimensions needed for plotting the hexagons. These must be integer values. + var w, h, wgap, hgap; + // if (opts.??? ) { + // // Create a one or two pixel gap + // wgap = (mwidth & 1) ? 1 : 2; + // hgap = 1; + // w = mwidth - gap; + // h = 4 * tsy; + // } else { + // Create a 1/8mm gap + wgap = (tsx/2)|0; + hgap = (tsy/2)|0; + w = mwidth - wgap; + if (w & 1) { + w--; + } + h = ((4*tsy)|0) - hgap; + //} + + // These must be integer values + var w2 = w / 2 - 1; // half width + var qh = ((w2+1) / 2)|0; // quarter height + var vh = h - 2 - 2 * qh; // side height + + // Bounding box + this.bbox(0, 0, mwidth*30 - wgap, tsy * 3 * 32 + tsy * 4 - hgap); + + // Render the elements + var self = this; + this.cmds.push(function() { + // Draw the hexagons + for (var i = 0; i < pix.length; i++) { + var c = pix[i]; + var x = c % 30; + var y = (c / 30)|0; + + // Adjust x,y to the top of hexagon + x *= mwidth; + x += (y & 1) ? mwidth : mwidth/2; + x = x|0; + + y = 33 - y; // invert for postscript notation + y *= tsy * 3; + y += tsy * 2 - h/2; + y = y|0; + + // Build bottom up so the drawing is top-down. + var pts = [ [ x-0.5, y-- ] ]; + y -= qh-1; + pts.push([x-1-w2, y--]); + y -= vh; + pts.push([x-1-w2, y--]); + y -= qh-1; + pts.push([x-0.5, y++]); + y += qh-1; + pts.push([x+w2, y++]); + y += vh; + pts.push([x+w2, y++]); + + self.transform(pts); + self.drawing.hexagon(pts, rgb); + } + self.drawing.fill(rgb); + + + // Draw the rings + var x = (14 * mwidth + mwidth/2 + 0.01)|0; + var y = ((12 * 4 + 3) * tsy - qh/2 + 0.01)|0; + self.drawing.ellipse(x, y, (0.5774*3.5*tsx+0.01)|0, (0.5774*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (1.3359*3.5*tsx+0.01)|0, (1.3359*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (2.1058*3.5*tsx+0.01)|0, (2.1058*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (2.8644*3.5*tsx+0.01)|0, (2.8644*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + self.drawing.ellipse(x, y, (3.6229*3.5*tsx+0.01)|0, (3.6229*3.5*tsy+0.01)|0, true); + self.drawing.ellipse(x, y, (4.3814*3.5*tsx+0.01)|0, (4.3814*3.5*tsy+0.01)|0, false); + self.drawing.fill(rgb); + + }); }; // UTF-8 to UCS-2 (no surrogates) BWIPJS.prototype.toUCS2 = function(str) { @@ -644,71 +644,71 @@ BWIPJS.prototype.toUCS2 = function(str) { }; // dx,dy are inter-character gaps BWIPJS.prototype.show = function(str, dx, dy) { - if (!str.length) { - return; - } - - // Capture current graphics state - var tsx = this.g_tsx; - var tsy = this.g_tsy; - var name = this.g_font.FontName || 'OCR-B'; - var size = (this.g_font.FontSize || 10); - var szx = size * tsx; - var szy = size * tsy; - var posx = this.g_posx; - var posy = this.g_posy; - var rgb = this.getRGB(); - - // The string can be either a uint8-string or regular string. - str = this.toUCS2(this.jsstring(str)); - - // Convert dx,dy to device space - dx = tsx * dx || 0; - dy = tsy * dy || 0; - - // Bounding box. - var base = posy + dy; - var bbox = this.drawing.measure(str, name, szx, szy); - var width = bbox.width + (str.length-1) * dx; - this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); - this.g_posx += width; - - var self = this; - self.cmds.push(function() { - // self.transform() - var x = posx - self.minx; - var y = self.maxy - posy; - self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); - }); + if (!str.length) { + return; + } + + // Capture current graphics state + var tsx = this.g_tsx; + var tsy = this.g_tsy; + var name = this.g_font.FontName || 'OCR-B'; + var size = (this.g_font.FontSize || 10); + var szx = size * tsx; + var szy = size * tsy; + var posx = this.g_posx; + var posy = this.g_posy; + var rgb = this.getRGB(); + + // The string can be either a uint8-string or regular string. + str = this.toUCS2(this.jsstring(str)); + + // Convert dx,dy to device space + dx = tsx * dx || 0; + dy = tsy * dy || 0; + + // Bounding box. + var base = posy + dy; + var bbox = this.drawing.measure(str, name, szx, szy); + var width = bbox.width + (str.length-1) * dx; + this.bbox(posx, base-bbox.descent+1, posx+width-1, base+bbox.ascent); + this.g_posx += width; + + var self = this; + self.cmds.push(function() { + // self.transform() + var x = posx - self.minx; + var y = self.maxy - posy; + self.drawing.text(x, y, str, rgb, { name:name, width:szx, height:szy, dx:dx }); + }); }; // drawing surface bounding box BWIPJS.prototype.bbox = function(x0, y0, x1, y1) { - if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } - if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } + if (x0 > x1) { var t = x0; x0 = x1; x1 = t; } + if (y0 > y1) { var t = y0; y0 = y1; y1 = t; } - x0 = floor(x0); - y0 = floor(y0); - x1 = ceil(x1); - y1 = ceil(y1); + x0 = floor(x0); + y0 = floor(y0); + x1 = ceil(x1); + y1 = ceil(y1); - if (this.minx > x0) this.minx = x0; - if (this.maxx < x1) this.maxx = x1; - if (this.miny > y0) this.miny = y0; - if (this.maxy < y1) this.maxy = y1; + if (this.minx > x0) this.minx = x0; + if (this.maxx < x1) this.maxx = x1; + if (this.miny > y0) this.miny = y0; + if (this.maxy < y1) this.maxy = y1; }; BWIPJS.prototype.render = function() { - if (this.minx === Infinity) { + if (this.minx === Infinity) { // Most likely, `dontdraw` was set in the options return false; - } - // Draw the image - this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, - this.g_tsx, this.g_tsy); - for (var i = 0, l = this.cmds.length; i < l; i++) { - this.cmds[i](); - } - return this.drawing.end(); + } + // Draw the image + this.drawing.init(this.maxx - this.minx + 1, this.maxy - this.miny + 1, + this.g_tsx, this.g_tsy); + for (var i = 0, l = this.cmds.length; i < l; i++) { + this.cmds[i](); + } + return this.drawing.end(); }; return BWIPJS; -})(); // BWIPJS closure +})(); // BWIPJS closure diff --git a/src/bwipp.js b/src/bwipp.js index 76fb02e9..1c5fbf90 100644 --- a/src/bwipp.js +++ b/src/bwipp.js @@ -2,10 +2,10 @@ // https://github.com/metafloor/bwip-js // // This code was automatically generated from: -// Barcode Writer in Pure PostScript - Version 2023-04-03 +// Barcode Writer in Pure PostScript - Version 2024-01-03 // // Copyright (c) 2011-2024 Mark Warren -// Copyright (c) 2004-2023 Terry Burton +// Copyright (c) 2004-2024 Terry Burton // // Licensed MIT. See the LICENSE file in the bwip-js root directory. // bwip-js/barcode-hdr.js @@ -19,9 +19,9 @@ var $k = []; // operand stack var $_ = {}; // base of the dictionary stack // Array ctor -// $a() : Build a new array up to the Infinity-marker on the stack. -// $a(arr) : Convert native array to a "view" of the array. -// $a(len) : Create a new array of length `len` +// $a() : Build a new array up to the Infinity-marker on the stack. +// $a(arr) : Convert native array to a "view" of the array. +// $a(len) : Create a new array of length `len` function $a(a) { if (!arguments.length) { for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); @@ -42,7 +42,7 @@ function $a(a) { } // dict ctor -// $d() : look for the Infinity marker on the stack +// $d() : look for the Infinity marker on the stack function $d() { // Build the dictionary in the order the keys/values were pushed so enumeration // occurs in the correct sequence. @@ -73,9 +73,9 @@ function $d() { } // string ctor -// s(number) : create zero-filled string of number-length -// s(string) : make a copy of the string -// s(uint8[]) : make a copy of the string +// s(number) : create zero-filled string of number-length +// s(string) : make a copy of the string +// s(uint8[]) : make a copy of the string // // Returns a Uint8Array-string. function $s(v) { @@ -145,8 +145,8 @@ function $arrcpy(dst, src) { } // cvs operator - convert a value to its string representation -// s : string to store into -// v : any value +// s : string to store into +// v : any value function $cvs(s, v) { var t = typeof v; if (t == 'number' || t == 'boolean' || v === null) { @@ -170,9 +170,9 @@ function $cvi(s) { } // cvrs operator - convert a number to a radix string -// s : string to store into -// n : number -// r : radix +// s : string to store into +// n : number +// r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } @@ -198,8 +198,8 @@ function $cvx(s) { } // get operator -// s : source -// k : key +// s : source +// k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; @@ -217,9 +217,9 @@ function $get(s, k) { } // put operator -// d : dest -// k : key -// v : value +// d : dest +// k : key +// v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; @@ -237,9 +237,9 @@ function $put(d, k, v) { } // getinterval operator -// s : src -// o : offset -// l : length +// s : src +// o : offset +// l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); @@ -255,9 +255,9 @@ function $geti(s, o, l) { } // putinterval operator -// d : dst -// o : offset -// s : src +// d : dst +// o : offset +// s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { if (typeof s == 'string') { @@ -312,14 +312,14 @@ function $type(v) { // filetype // fonttype // gstatetype - // marktype (v === Infinity) + // marktype (v === Infinity) // nametype // savetype } // anchorsearch operator -// string seek anchorsearch suffix seek true %if-found -// string false %if-not-found +// string seek anchorsearch suffix seek true %if-found +// string false %if-not-found function $anchorsearch(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -350,8 +350,8 @@ function $anchorsearch(str, seek) { } // search operator -// string seek search suffix match prefix true %if-found -// string false %if-not-found +// string seek search suffix match prefix true %if-found +// string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); @@ -652,7 +652,7 @@ function bwipp_parseinput() { delete $_.fncvals[_E]; //#210 if (!bwipp_parseinput.__225__) { //#225 $_ = Object.create($_); //#225 - $k[$j++] = Infinity; //#223 + $k[$j++] = Infinity; //#214 var _I = $a(['NUL', 'SOH', 'STX', 'ETX', 'EOT', 'ENQ', 'ACK', 'BEL', 'BS', 'TAB', 'LF', 'VT', 'FF', 'CR', "", "", 'DLE', 'DC1', 'DC2', 'DC3', 'DC4', 'NAK', 'SYN', 'ETB', 'CAN', 'EM', 'SUB', 'ESC', 'FS', 'GS', 'RS', 'US']); //#219 $k[$j++] = 0; //#223 for (var _J = 0, _K = _I.length; _J < _K; _J++) { //#223 @@ -883,13 +883,12 @@ function bwipp_parseinput() { } //#353 $_ = Object.getPrototypeOf($_); //#356 $_ = Object.getPrototypeOf($_); //#358 -} - +} //bwipp_parseinput function bwipp_gs1process() { $_ = Object.create($_); //#383 bwipp_loadctx(bwipp_gs1process) //#385 - if (!bwipp_gs1process.__2289__) { //#2289 - $_ = Object.create($_); //#2289 + if (!bwipp_gs1process.__2299__) { //#2299 + $_ = Object.create($_); //#2299 var _1 = new Map([ ["cset", 'N'], ["min", 18], @@ -932,7544 +931,7804 @@ function bwipp_gs1process() { var _F = $a([_E]); //#412 var _G = $a(["37"]); //#414 var _H = $a([_G]); //#414 - var _I = new Map([ + var _I = $a([_H]); //#414 + var _J = new Map([ ["parts", _F], - ["req", _H] + ["req", _I] ]); //#414 - var _K = new Map([ + var _K = $a([]); //#421 + var _L = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], - ["linters", $a([])] + ["linters", _K] ]); //#421 - var _O = new Map([ - ["parts", $a([_K])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _T = new Map([ + ["parts", $a([_L])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#423 - var _Q = new Map([ + var _V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#430 - var _U = new Map([ - ["parts", $a([_Q])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _d = new Map([ + ["parts", $a([_V])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#432 - var _W = new Map([ + var _f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#439 - var _a = new Map([ - ["parts", $a([_W])], - ["req", $a([$a(["8020"])])] + var _k = new Map([ + ["parts", $a([_f])], + ["req", $a([$a([$a(["8020"])])])] ]); //#441 - var _c = new Map([ + var _m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#448 - var _g = new Map([ - ["parts", $a([_c])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _u = new Map([ + ["parts", $a([_m])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#450 - var _i = new Map([ + var _w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] ]); //#459 - var _m = new Map([ - ["parts", $a([_i])], - ["req", $a([$a(["01", "02", "255", "8006", "8026"])])] + var _15 = new Map([ + ["parts", $a([_w])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["255"]), $a(["8006"]), $a(["8026"])])])] ]); //#461 - var _o = new Map([ + var _17 = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] ]); //#468 - var _s = new Map([ - ["parts", $a([_o])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1F = new Map([ + ["parts", $a([_17])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#470 - var _u = new Map([ + var _1H = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#477 - var _z = new Map([ - ["parts", $a([_u])], + var _1O = new Map([ + ["parts", $a([_1H])], ["ex", $a(["235"])], - ["req", $a([$a(["01", "8006"])])] + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#480 - var _11 = new Map([ + var _1Q = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#487 - var _15 = new Map([ - ["parts", $a([_11])], - ["req", $a([$a(["01"])])] + var _1V = new Map([ + ["parts", $a([_1Q])], + ["req", $a([$a([$a(["01"])])])] ]); //#489 - var _17 = new Map([ + var _1X = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] ]); //#496 - var _1B = new Map([ - ["parts", $a([_17])], - ["req", $a([$a(["01"])])] + var _1c = new Map([ + ["parts", $a([_1X])], + ["req", $a([$a([$a(["01"])])])] ]); //#498 - var _1D = new Map([ + var _1e = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#505 - var _1H = new Map([ - ["parts", $a([_1D])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1m = new Map([ + ["parts", $a([_1e])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#507 - var _1J = new Map([ + var _1o = new Map([ ["cset", 'N'], ["min", 1], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#515 - var _1N = new Map([ - ["parts", $a([_1J])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + var _1w = new Map([ + ["parts", $a([_1o])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#517 - var _1P = new Map([ + var _1y = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#524 - var _1T = new Map([ - ["parts", $a([_1P])], - ["req", $a([$a(["01"])])] + var _22 = $a([$a([$a(["01"])])]); //#526 + var _23 = new Map([ + ["parts", $a([_1y])], + ["req", _22] ]); //#526 - var _1V = new Map([ + var _25 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#533 - var _1a = new Map([ - ["parts", $a([_1V])], - ["req", $a([$a(["01", "8006"]), $a(["21"])])] + var _2D = new Map([ + ["parts", $a([_25])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["21"])])])] ]); //#535 - var _1c = new Map([ + var _2F = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#542 - var _1g = new Map([ - ["parts", $a([_1c])], - ["req", $a([$a(["01", "8006"])])] + var _2L = new Map([ + ["parts", $a([_2F])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] ]); //#544 - var _1i = new Map([ + var _2N = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#551 - var _1k = new Map([ + var _2P = new Map([ ["cset", 'X'], ["min", 1], ["max", 17], ["opt", true], ["linters", $a([])] ]); //#552 - var _1n = new Map([ - ["parts", $a([_1i, _1k])], + var _2S = new Map([ + ["parts", $a([_2N, _2P])], ["dlpkey", $a([])] ]); //#554 - var _1p = new Map([ + var _2U = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#561 - var _1t = new Map([ - ["parts", $a([_1p])], - ["req", $a([$a(["414"])])] + var _2Z = new Map([ + ["parts", $a([_2U])], + ["req", $a([$a([$a(["414"])])])] ]); //#563 - var _1v = new Map([ + var _2b = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#570 - var _1x = new Map([ + var _2d = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", true], ["linters", $a([])] ]); //#571 - var _21 = new Map([ - ["parts", $a([_1v, _1x])], + var _2h = new Map([ + ["parts", $a([_2b, _2d])], ["ex", $a(["01", "02", "415", "8006", "8020", "8026"])], ["dlpkey", $a([])] ]); //#574 - var _22 = $a([]); //#581 - var _23 = new Map([ + var _2j = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], - ["linters", _22] + ["linters", $a([])] ]); //#581 - var _27 = new Map([ - ["parts", $a([_23])], - ["req", $a([$a(["01", "02"])])] + var _2p = new Map([ + ["parts", $a([_2j])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#583 - var _29 = new Map([ + var _2r = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#590 - var _2E = new Map([ - ["parts", $a([_29])], + var _2y = new Map([ + ["parts", $a([_2r])], ["ex", $a(["310n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#593 - var _2G = new Map([ + var _30 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#605 - var _2L = new Map([ - ["parts", $a([_2G])], + var _37 = new Map([ + ["parts", $a([_30])], ["ex", $a(["311n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#608 - var _2N = new Map([ + var _39 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#620 - var _2S = new Map([ - ["parts", $a([_2N])], + var _3G = new Map([ + ["parts", $a([_39])], ["ex", $a(["312n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#623 - var _2U = new Map([ + var _3I = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#635 - var _2Z = new Map([ - ["parts", $a([_2U])], + var _3P = new Map([ + ["parts", $a([_3I])], ["ex", $a(["313n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#638 - var _2b = new Map([ + var _3R = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#650 - var _2g = new Map([ - ["parts", $a([_2b])], + var _3Y = new Map([ + ["parts", $a([_3R])], ["ex", $a(["314n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#653 - var _2i = new Map([ + var _3a = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#665 - var _2n = new Map([ - ["parts", $a([_2i])], + var _3h = new Map([ + ["parts", $a([_3a])], ["ex", $a(["315n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#668 - var _2p = new Map([ + var _3j = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#680 - var _2u = new Map([ - ["parts", $a([_2p])], + var _3q = new Map([ + ["parts", $a([_3j])], ["ex", $a(["316n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#683 - var _2w = new Map([ + var _3s = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#695 - var _31 = new Map([ - ["parts", $a([_2w])], + var _3z = new Map([ + ["parts", $a([_3s])], ["ex", $a(["320n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#698 - var _33 = new Map([ + var _41 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#710 - var _38 = new Map([ - ["parts", $a([_33])], + var _48 = new Map([ + ["parts", $a([_41])], ["ex", $a(["321n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#713 - var _3A = new Map([ + var _4A = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#725 - var _3F = new Map([ - ["parts", $a([_3A])], + var _4H = new Map([ + ["parts", $a([_4A])], ["ex", $a(["322n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#728 - var _3H = new Map([ + var _4J = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#740 - var _3M = new Map([ - ["parts", $a([_3H])], + var _4Q = new Map([ + ["parts", $a([_4J])], ["ex", $a(["323n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#743 - var _3O = new Map([ + var _4S = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#755 - var _3T = new Map([ - ["parts", $a([_3O])], + var _4Z = new Map([ + ["parts", $a([_4S])], ["ex", $a(["324n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#758 - var _3V = new Map([ + var _4b = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#770 - var _3a = new Map([ - ["parts", $a([_3V])], + var _4i = new Map([ + ["parts", $a([_4b])], ["ex", $a(["325n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#773 - var _3c = new Map([ + var _4k = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#785 - var _3h = new Map([ - ["parts", $a([_3c])], + var _4r = new Map([ + ["parts", $a([_4k])], ["ex", $a(["326n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#788 - var _3j = new Map([ + var _4t = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#800 - var _3o = new Map([ - ["parts", $a([_3j])], + var _50 = new Map([ + ["parts", $a([_4t])], ["ex", $a(["327n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#803 - var _3q = new Map([ + var _52 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#815 - var _3v = new Map([ - ["parts", $a([_3q])], + var _59 = new Map([ + ["parts", $a([_52])], ["ex", $a(["328n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#818 - var _3x = new Map([ + var _5B = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#830 - var _42 = new Map([ - ["parts", $a([_3x])], + var _5I = new Map([ + ["parts", $a([_5B])], ["ex", $a(["329n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#833 - var _44 = new Map([ + var _5K = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#845 - var _49 = new Map([ - ["parts", $a([_44])], + var _5R = new Map([ + ["parts", $a([_5K])], ["ex", $a(["330n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#848 - var _4B = new Map([ + var _5T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#860 - var _4G = new Map([ - ["parts", $a([_4B])], + var _5a = new Map([ + ["parts", $a([_5T])], ["ex", $a(["331n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#863 - var _4I = new Map([ + var _5c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#875 - var _4N = new Map([ - ["parts", $a([_4I])], + var _5j = new Map([ + ["parts", $a([_5c])], ["ex", $a(["332n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#878 - var _4P = new Map([ + var _5l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#890 - var _4U = new Map([ - ["parts", $a([_4P])], + var _5s = new Map([ + ["parts", $a([_5l])], ["ex", $a(["333n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#893 - var _4W = new Map([ + var _5u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#905 - var _4b = new Map([ - ["parts", $a([_4W])], + var _61 = new Map([ + ["parts", $a([_5u])], ["ex", $a(["334n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#908 - var _4d = new Map([ + var _63 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#920 - var _4i = new Map([ - ["parts", $a([_4d])], + var _6A = new Map([ + ["parts", $a([_63])], ["ex", $a(["335n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#923 - var _4k = new Map([ + var _6C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#935 - var _4p = new Map([ - ["parts", $a([_4k])], + var _6J = new Map([ + ["parts", $a([_6C])], ["ex", $a(["336n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#938 - var _4r = new Map([ + var _6L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#950 - var _4w = new Map([ - ["parts", $a([_4r])], + var _6R = new Map([ + ["parts", $a([_6L])], ["ex", $a(["337n"])], - ["req", $a([$a(["01"])])] + ["req", $a([$a([$a(["01"])])])] ]); //#953 - var _4y = new Map([ + var _6T = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#965 - var _53 = new Map([ - ["parts", $a([_4y])], + var _6a = new Map([ + ["parts", $a([_6T])], ["ex", $a(["340n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#968 - var _55 = new Map([ + var _6c = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#980 - var _5A = new Map([ - ["parts", $a([_55])], + var _6j = new Map([ + ["parts", $a([_6c])], ["ex", $a(["341n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#983 - var _5C = new Map([ + var _6l = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#995 - var _5H = new Map([ - ["parts", $a([_5C])], + var _6s = new Map([ + ["parts", $a([_6l])], ["ex", $a(["342n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#998 - var _5J = new Map([ + var _6u = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1010 - var _5O = new Map([ - ["parts", $a([_5J])], + var _71 = new Map([ + ["parts", $a([_6u])], ["ex", $a(["343n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1013 - var _5Q = new Map([ + var _73 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1025 - var _5V = new Map([ - ["parts", $a([_5Q])], + var _7A = new Map([ + ["parts", $a([_73])], ["ex", $a(["344n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1028 - var _5X = new Map([ + var _7C = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1040 - var _5c = new Map([ - ["parts", $a([_5X])], + var _7J = new Map([ + ["parts", $a([_7C])], ["ex", $a(["345n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1043 - var _5e = new Map([ + var _7L = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1055 - var _5j = new Map([ - ["parts", $a([_5e])], + var _7S = new Map([ + ["parts", $a([_7L])], ["ex", $a(["346n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1058 - var _5l = new Map([ + var _7U = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1070 - var _5q = new Map([ - ["parts", $a([_5l])], + var _7b = new Map([ + ["parts", $a([_7U])], ["ex", $a(["347n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1073 - var _5s = new Map([ + var _7d = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1085 - var _5x = new Map([ - ["parts", $a([_5s])], + var _7k = new Map([ + ["parts", $a([_7d])], ["ex", $a(["348n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1088 - var _5z = new Map([ + var _7m = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1100 - var _64 = new Map([ - ["parts", $a([_5z])], + var _7t = new Map([ + ["parts", $a([_7m])], ["ex", $a(["349n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1103 - var _66 = new Map([ + var _7v = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1115 - var _6B = new Map([ - ["parts", $a([_66])], + var _82 = new Map([ + ["parts", $a([_7v])], ["ex", $a(["350n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1118 - var _6D = new Map([ + var _84 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1130 - var _6I = new Map([ - ["parts", $a([_6D])], + var _8B = new Map([ + ["parts", $a([_84])], ["ex", $a(["351n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1133 - var _6K = new Map([ + var _8D = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1145 - var _6P = new Map([ - ["parts", $a([_6K])], + var _8K = new Map([ + ["parts", $a([_8D])], ["ex", $a(["352n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1148 - var _6R = new Map([ + var _8M = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1160 - var _6W = new Map([ - ["parts", $a([_6R])], + var _8T = new Map([ + ["parts", $a([_8M])], ["ex", $a(["353n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1163 - var _6Y = new Map([ + var _8V = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1175 - var _6d = new Map([ - ["parts", $a([_6Y])], + var _8c = new Map([ + ["parts", $a([_8V])], ["ex", $a(["354n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1178 - var _6f = new Map([ + var _8e = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1190 - var _6k = new Map([ - ["parts", $a([_6f])], + var _8l = new Map([ + ["parts", $a([_8e])], ["ex", $a(["355n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1193 - var _6m = new Map([ + var _8n = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1205 - var _6r = new Map([ - ["parts", $a([_6m])], + var _8u = new Map([ + ["parts", $a([_8n])], ["ex", $a(["356n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1208 - var _6t = new Map([ + var _8w = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1220 - var _6y = new Map([ - ["parts", $a([_6t])], + var _93 = new Map([ + ["parts", $a([_8w])], ["ex", $a(["357n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1223 - var _70 = new Map([ + var _95 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1235 - var _75 = new Map([ - ["parts", $a([_70])], + var _9C = new Map([ + ["parts", $a([_95])], ["ex", $a(["360n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1238 - var _77 = new Map([ + var _9E = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1250 - var _7C = new Map([ - ["parts", $a([_77])], + var _9L = new Map([ + ["parts", $a([_9E])], ["ex", $a(["361n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1253 - var _7E = new Map([ + var _9N = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1265 - var _7J = new Map([ - ["parts", $a([_7E])], + var _9U = new Map([ + ["parts", $a([_9N])], ["ex", $a(["362n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1268 - var _7L = new Map([ + var _9W = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1280 - var _7Q = new Map([ - ["parts", $a([_7L])], + var _9d = new Map([ + ["parts", $a([_9W])], ["ex", $a(["363n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1283 - var _7S = new Map([ + var _9f = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1295 - var _7X = new Map([ - ["parts", $a([_7S])], + var _9m = new Map([ + ["parts", $a([_9f])], ["ex", $a(["364n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1298 - var _7Z = new Map([ + var _9o = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1310 - var _7e = new Map([ - ["parts", $a([_7Z])], + var _9v = new Map([ + ["parts", $a([_9o])], ["ex", $a(["365n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1313 - var _7g = new Map([ + var _9x = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1325 - var _7l = new Map([ - ["parts", $a([_7g])], + var _A4 = new Map([ + ["parts", $a([_9x])], ["ex", $a(["366n"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1328 - var _7n = new Map([ + var _A6 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1340 - var _7s = new Map([ - ["parts", $a([_7n])], + var _AD = new Map([ + ["parts", $a([_A6])], ["ex", $a(["367n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1343 - var _7u = new Map([ + var _AF = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1355 - var _7z = new Map([ - ["parts", $a([_7u])], + var _AM = new Map([ + ["parts", $a([_AF])], ["ex", $a(["368n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1358 - var _81 = new Map([ + var _AO = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1370 - var _86 = new Map([ - ["parts", $a([_81])], + var _AV = new Map([ + ["parts", $a([_AO])], ["ex", $a(["369n"])], - ["req", $a([$a(["00", "01"])])] + ["req", $a([$a([$a(["00"]), $a(["01"])])])] ]); //#1373 - var _88 = new Map([ + var _AX = new Map([ ["cset", 'N'], ["min", 1], ["max", 8], ["opt", false], ["linters", $a([])] ]); //#1385 - var _8D = new Map([ - ["parts", $a([_88])], - ["req", $a([$a(["00"]), $a(["02", "8026"])])] + var _Af = new Map([ + ["parts", $a([_AX])], + ["req", $a([$a([$a(["00"])]), $a([$a(["02"]), $a(["8026"])])])] ]); //#1387 - var _8F = new Map([ + var _Ah = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1394 - var _8K = new Map([ - ["parts", $a([_8F])], + var _Ao = new Map([ + ["parts", $a([_Ah])], ["ex", $a(["390n", "391n", "394n", "8111"])], - ["req", $a([$a(["255", "8020"])])] + ["req", $a([$a([$a(["255"]), $a(["8020"])])])] ]); //#1397 - var _8M = new Map([ + var _Aq = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1413 - var _8O = new Map([ + var _As = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1414 - var _8T = new Map([ - ["parts", $a([_8M, _8O])], + var _Ay = new Map([ + ["parts", $a([_Aq, _As])], ["ex", $a(["391n"])], - ["req", $a([$a(["8020"])])] + ["req", $a([$a([$a(["8020"])])])] ]); //#1417 - var _8V = new Map([ + var _B0 = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1433 - var _8b = new Map([ - ["parts", $a([_8V])], + var _BC = new Map([ + ["parts", $a([_B0])], ["ex", $a(["392n", "393n"])], - ["req", $a([$a(["01"]), $a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["01"])]), $a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1436 - var _8d = new Map([ + var _BE = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso4217'])] ]); //#1452 - var _8f = new Map([ + var _BG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a([])] ]); //#1453 - var _8k = new Map([ - ["parts", $a([_8d, _8f])], + var _BQ = new Map([ + ["parts", $a([_BE, _BG])], ["ex", $a(["393n"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1456 - var _8m = new Map([ + var _BS = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] ]); //#1472 - var _8r = new Map([ - ["parts", $a([_8m])], + var _BY = new Map([ + ["parts", $a([_BS])], ["ex", $a(["394n", "8111"])], - ["req", $a([$a(["255"])])] + ["req", $a([$a([$a(["255"])])])] ]); //#1475 - var _8t = new Map([ + var _Ba = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] ]); //#1485 - var _8y = new Map([ - ["parts", $a([_8t])], + var _Bk = new Map([ + ["parts", $a([_Ba])], ["ex", $a(["392n", "393n", "395n", "8005"])], - ["req", $a([$a(["30", "31nn", "32nn", "35nn", "36nn"])])] + ["req", $a([$a([$a(["30"]), $a(["31nn"]), $a(["32nn"]), $a(["35nn"]), $a(["36nn"])])])] ]); //#1488 - var _90 = new Map([ + var _Bm = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1500 - var _92 = new Map([ - ["parts", $a([_90])] + var _Bo = new Map([ + ["parts", $a([_Bm])] ]); //#1500 - var _94 = new Map([ + var _Bq = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] ]); //#1508 - var _97 = new Map([ - ["parts", $a([_94])], + var _Bt = new Map([ + ["parts", $a([_Bq])], ["dlpkey", $a([])] ]); //#1510 - var _99 = new Map([ + var _Bv = new Map([ ["cset", 'N'], ["min", 17], ["max", 17], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1517 - var _9C = new Map([ - ["parts", $a([_99])], + var _By = new Map([ + ["parts", $a([_Bv])], ["dlpkey", $a([])] ]); //#1519 - var _9E = new Map([ + var _C0 = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1526 - var _9I = new Map([ - ["parts", $a([_9E])], - ["req", $a([$a(["00"])])] + var _C5 = new Map([ + ["parts", $a([_C0])], + ["req", $a([$a([$a(["00"])])])] ]); //#1528 - var _9K = new Map([ + var _C7 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1535 - var _9M = new Map([ - ["parts", $a([_9K])] + var _C9 = new Map([ + ["parts", $a([_C7])] ]); //#1535 - var _9O = new Map([ + var _CB = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1546 - var _9T = new Map([ - ["parts", $a([_9O])], + var _CG = new Map([ + ["parts", $a([_CB])], ["dlpkey", $a([$a(["254"]), $a(["7040"])])] ]); //#1548 - var _9V = new Map([ + var _CI = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1555 - var _9b = new Map([ - ["parts", $a([_9V])], - ["req", $a([$a(["8020"])])], + var _CP = new Map([ + ["parts", $a([_CI])], + ["req", $a([$a([$a(["8020"])])])], ["dlpkey", $a([$a(["8020"])])] ]); //#1558 - var _9d = new Map([ + var _CR = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1565 - var _9f = new Map([ - ["parts", $a([_9d])] + var _CT = new Map([ + ["parts", $a([_CR])] ]); //#1565 - var _9h = new Map([ + var _CV = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] ]); //#1573 - var _9l = new Map([ - ["parts", $a([_9h])], + var _CZ = new Map([ + ["parts", $a([_CV])], ["dlpkey", $a([$a(["7040"])])] ]); //#1575 - var _9n = new Map([ + var _Cb = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] ]); //#1582 - var _9q = new Map([ - ["parts", $a([_9n])], + var _Ce = new Map([ + ["parts", $a([_Cb])], ["ex", $a(["421"])] ]); //#1584 - var _9s = new Map([ + var _Cg = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1591 - var _9u = new Map([ + var _Ci = new Map([ ["cset", 'X'], ["min", 1], ["max", 9], ["opt", false], ["linters", $a([])] ]); //#1592 - var _9x = new Map([ - ["parts", $a([_9s, _9u])], + var _Cl = new Map([ + ["parts", $a([_Cg, _Ci])], ["ex", $a(["4307"])] ]); //#1594 - var _9z = new Map([ + var _Cn = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1601 - var _A4 = new Map([ - ["parts", $a([_9z])], + var _Cw = new Map([ + ["parts", $a([_Cn])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] ]); //#1604 - var _A6 = new Map([ + var _Cy = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1611 - var _AB = new Map([ - ["parts", $a([_A6])], + var _D5 = new Map([ + ["parts", $a([_Cy])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1614 - var _AD = new Map([ + var _D7 = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1621 - var _AI = new Map([ - ["parts", $a([_AD])], + var _DE = new Map([ + ["parts", $a([_D7])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1624 - var _AK = new Map([ + var _DG = new Map([ ["cset", 'N'], ["min", 1], ["max", 15], ["opt", false], ["linters", $a(['lintiso3166list'])] ]); //#1631 - var _AP = new Map([ - ["parts", $a([_AK])], + var _DN = new Map([ + ["parts", $a([_DG])], ["ex", $a(["426"])], - ["req", $a([$a(["01", "02"])])] + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1634 - var _AR = new Map([ + var _DP = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166'])] ]); //#1641 - var _AV = new Map([ - ["parts", $a([_AR])], - ["req", $a([$a(["01", "02"])])] + var _DV = new Map([ + ["parts", $a([_DP])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] ]); //#1643 - var _AX = new Map([ + var _DX = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] ]); //#1650 - var _Ac = new Map([ - ["parts", $a([_AX])], - ["req", $a([$a(["01", "02"]), $a(["422"])])] + var _Df = new Map([ + ["parts", $a([_DX])], + ["req", $a([$a([$a(["01"]), $a(["02"])]), $a([$a(["422"])])])] ]); //#1652 - var _Ae = new Map([ + var _Dh = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1659 - var _Ai = new Map([ - ["parts", $a([_Ae])], - ["req", $a([$a(["00"])])] + var _Dm = new Map([ + ["parts", $a([_Dh])], + ["req", $a([$a([$a(["00"])])])] ]); //#1661 - var _Ak = new Map([ + var _Do = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1669 - var _Ao = new Map([ - ["parts", $a([_Ak])], - ["req", $a([$a(["00"])])] + var _Dt = new Map([ + ["parts", $a([_Do])], + ["req", $a([$a([$a(["00"])])])] ]); //#1671 - var _Aq = new Map([ + var _Dv = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1678 - var _Au = new Map([ - ["parts", $a([_Aq])], - ["req", $a([$a(["4302"])])] + var _E0 = new Map([ + ["parts", $a([_Dv])], + ["req", $a([$a([$a(["4302"])])])] ]); //#1680 - var _Aw = new Map([ + var _E2 = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] ]); //#1687 - var _B0 = new Map([ - ["parts", $a([_Aw])], - ["req", $a([$a(["00"])])] + var _E7 = new Map([ + ["parts", $a([_E2])], + ["req", $a([$a([$a(["00"])])])] ]); //#1689 - var _B2 = new Map([ + var _E9 = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] ]); //#1698 - var _B6 = new Map([ - ["parts", $a([_B2])], - ["req", $a([$a(["00"])])] + var _EE = new Map([ + ["parts", $a([_E9])], + ["req", $a([$a([$a(["00"])])])] ]); //#1700 - var _B8 = new Map([ + var _EG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] ]); //#1707 - var _BC = new Map([ - ["parts", $a([_B8])], - ["req", $a([$a(["00"])])] + var _EL = new Map([ + ["parts", $a([_EG])], + ["req", $a([$a([$a(["00"])])])] ]); //#1709 - var _BE = new Map([ + var _EN = new Map([ ["cset", 'N'], - ["min", 20], - ["max", 20], + ["min", 10], + ["max", 10], ["opt", false], - ["linters", $a(['lintlatlong'])] + ["linters", $a(['lintlatitude'])] ]); //#1716 - var _BI = new Map([ - ["parts", $a([_BE])], - ["req", $a([$a(["00"])])] - ]); //#1718 - var _BK = new Map([ + var _EP = new Map([ + ["cset", 'N'], + ["min", 10], + ["max", 10], + ["opt", false], + ["linters", $a(['lintlongitude'])] + ]); //#1717 + var _EU = new Map([ + ["parts", $a([_EN, _EP])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1719 + var _EW = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1725 - var _BO = new Map([ - ["parts", $a([_BK])], - ["req", $a([$a(["00"])])] - ]); //#1727 - var _BQ = new Map([ + ]); //#1726 + var _Eb = new Map([ + ["parts", $a([_EW])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1728 + var _Ed = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1735 - var _BU = new Map([ - ["parts", $a([_BQ])], - ["req", $a([$a(["00"])])] - ]); //#1737 - var _BW = new Map([ + ]); //#1736 + var _Ei = new Map([ + ["parts", $a([_Ed])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1738 + var _Ek = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1744 - var _Ba = new Map([ - ["parts", $a([_BW])], - ["req", $a([$a(["4312"])])] - ]); //#1746 - var _Bc = new Map([ + ]); //#1745 + var _Ep = new Map([ + ["parts", $a([_Ek])], + ["req", $a([$a([$a(["4312"])])])] + ]); //#1747 + var _Er = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1753 - var _Bg = new Map([ - ["parts", $a([_Bc])], - ["req", $a([$a(["00"])])] - ]); //#1755 - var _Bi = new Map([ + ]); //#1754 + var _Ew = new Map([ + ["parts", $a([_Er])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1756 + var _Ey = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintiso3166alpha2'])] - ]); //#1764 - var _Bm = new Map([ - ["parts", $a([_Bi])], - ["req", $a([$a(["00"])])] - ]); //#1766 - var _Bo = new Map([ + ]); //#1765 + var _F3 = new Map([ + ["parts", $a([_Ey])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1767 + var _F5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1773 - var _Bs = new Map([ - ["parts", $a([_Bo])], - ["req", $a([$a(["00"])])] - ]); //#1775 - var _Bu = new Map([ + ]); //#1774 + var _FA = new Map([ + ["parts", $a([_F5])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1776 + var _FC = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1782 - var _By = new Map([ - ["parts", $a([_Bu])], - ["req", $a([$a(["00"])])] - ]); //#1784 - var _C0 = new Map([ + ]); //#1783 + var _FH = new Map([ + ["parts", $a([_FC])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1785 + var _FJ = new Map([ ["cset", 'X'], ["min", 1], ["max", 35], ["opt", false], ["linters", $a(['lintpcenc'])] - ]); //#1791 - var _C4 = new Map([ - ["parts", $a([_C0])], - ["req", $a([$a(["00"])])] - ]); //#1793 - var _C6 = new Map([ + ]); //#1792 + var _FO = new Map([ + ["parts", $a([_FJ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1794 + var _FQ = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintyesno'])] - ]); //#1800 - var _CA = new Map([ - ["parts", $a([_C6])], - ["req", $a([$a(["00"])])] - ]); //#1802 - var _CC = new Map([ + ]); //#1801 + var _FV = new Map([ + ["parts", $a([_FQ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1803 + var _FX = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmd0'])] - ]); //#1811 - var _CE = new Map([ + ]); //#1812 + var _FZ = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1812 - var _CI = new Map([ - ["parts", $a([_CC, _CE])], - ["req", $a([$a(["00"])])] - ]); //#1814 - var _CK = new Map([ + ]); //#1813 + var _Fe = new Map([ + ["parts", $a([_FX, _FZ])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1815 + var _Fg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1822 - var _CO = new Map([ - ["parts", $a([_CK])], - ["req", $a([$a(["00"])])] - ]); //#1824 - var _CQ = new Map([ + ]); //#1823 + var _Fl = new Map([ + ["parts", $a([_Fg])], + ["req", $a([$a([$a(["00"])])])] + ]); //#1825 + var _Fn = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a([])] - ]); //#1831 - var _CU = new Map([ - ["parts", $a([_CQ])], - ["req", $a([$a(["01", "02", "8006", "8026"])])] - ]); //#1833 - var _CW = new Map([ + ]); //#1832 + var _Fv = new Map([ + ["parts", $a([_Fn])], + ["req", $a([$a([$a(["01"]), $a(["02"]), $a(["8006"]), $a(["8026"])])])] + ]); //#1834 + var _Fx = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#1840 - var _Ca = new Map([ - ["parts", $a([_CW])], - ["req", $a([$a(["01", "02"])])] - ]); //#1842 - var _Cc = new Map([ + ]); //#1841 + var _G3 = new Map([ + ["parts", $a([_Fx])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1843 + var _G5 = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1849 - var _Ce = new Map([ + ]); //#1850 + var _G7 = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['linthhmm'])] - ]); //#1850 - var _Ci = new Map([ - ["parts", $a([_Cc, _Ce])], - ["req", $a([$a(["01", "02"])])] - ]); //#1852 - var _Ck = new Map([ + ]); //#1851 + var _GD = new Map([ + ["parts", $a([_G5, _G7])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1853 + var _GF = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#1859 - var _Cp = new Map([ - ["parts", $a([_Ck])], - ["req", $a([$a(["01"]), $a(["10"])])] - ]); //#1861 - var _Cr = new Map([ + ]); //#1860 + var _GM = new Map([ + ["parts", $a([_GF])], + ["req", $a([$a([$a(["01"])]), $a([$a(["10"])])])] + ]); //#1862 + var _GO = new Map([ ["cset", 'X'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a([])] - ]); //#1868 - var _Cv = new Map([ - ["parts", $a([_Cr])], - ["req", $a([$a(["01", "02"])])] - ]); //#1870 - var _Cx = new Map([ + ]); //#1869 + var _GU = new Map([ + ["parts", $a([_GO])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1871 + var _GW = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1877 - var _D1 = new Map([ - ["parts", $a([_Cx])], - ["req", $a([$a(["01", "02"])])] - ]); //#1879 - var _D3 = new Map([ + ]); //#1878 + var _Gc = new Map([ + ["parts", $a([_GW])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1880 + var _Ge = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1886 - var _D5 = new Map([ + ]); //#1887 + var _Gg = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", true], ["linters", $a(['lintyymmdd'])] - ]); //#1887 - var _D9 = new Map([ - ["parts", $a([_D3, _D5])], - ["req", $a([$a(["01", "02"])])] - ]); //#1889 - var _DB = new Map([ + ]); //#1888 + var _Gm = new Map([ + ["parts", $a([_Ge, _Gg])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1890 + var _Go = new Map([ ["cset", 'X'], ["min", 1], ["max", 3], ["opt", false], ["linters", $a([])] - ]); //#1896 - var _DF = new Map([ - ["parts", $a([_DB])], - ["req", $a([$a(["01", "02"])])] - ]); //#1898 - var _DH = new Map([ + ]); //#1897 + var _Gu = new Map([ + ["parts", $a([_Go])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1899 + var _Gw = new Map([ ["cset", 'X'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#1905 - var _DL = new Map([ - ["parts", $a([_DH])], - ["req", $a([$a(["01", "02"])])] - ]); //#1907 - var _DN = new Map([ + ]); //#1906 + var _H2 = new Map([ + ["parts", $a([_Gw])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1908 + var _H4 = new Map([ ["cset", 'X'], ["min", 1], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#1914 - var _DR = new Map([ - ["parts", $a([_DN])], - ["req", $a([$a(["01", "02"])])] - ]); //#1916 - var _DT = new Map([ + ]); //#1915 + var _HA = new Map([ + ["parts", $a([_H4])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1917 + var _HC = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a(['lintyymmdd'])] - ]); //#1923 - var _DV = new Map([ + ]); //#1924 + var _HE = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", true], ["linters", $a(['linthhmm'])] - ]); //#1924 - var _DZ = new Map([ - ["parts", $a([_DT, _DV])], - ["req", $a([$a(["01", "02"])])] - ]); //#1926 - var _Db = new Map([ + ]); //#1925 + var _HK = new Map([ + ["parts", $a([_HC, _HE])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1927 + var _HM = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1933 - var _Dg = new Map([ - ["parts", $a([_Db])], - ["req", $a([$a(["01", "8006"]), $a(["416"])])] - ]); //#1935 - var _Di = new Map([ + ]); //#1934 + var _HU = new Map([ + ["parts", $a([_HM])], + ["req", $a([$a([$a(["01"]), $a(["8006"])]), $a([$a(["416"])])])] + ]); //#1936 + var _HW = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1942 - var _Dm = new Map([ - ["parts", $a([_Di])], - ["req", $a([$a(["01", "8006"])])] - ]); //#1944 - var _Do = new Map([ + ]); //#1943 + var _Hc = new Map([ + ["parts", $a([_HW])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#1945 + var _He = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1951 - var _Ds = new Map([ - ["parts", $a([_Do])], - ["req", $a([$a(["7021"])])] - ]); //#1953 - var _Du = new Map([ + ]); //#1952 + var _Hj = new Map([ + ["parts", $a([_He])], + ["req", $a([$a([$a(["7021"])])])] + ]); //#1954 + var _Hl = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#1960 - var _Dw = new Map([ - ["parts", $a([_Du])] - ]); //#1960 - var _Dy = new Map([ + ]); //#1961 + var _Hn = new Map([ + ["parts", $a([_Hl])] + ]); //#1961 + var _Hp = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintiso3166999'])] - ]); //#1968 - var _E0 = new Map([ + ]); //#1969 + var _Hr = new Map([ ["cset", 'X'], ["min", 1], ["max", 27], ["opt", false], ["linters", $a([])] - ]); //#1969 - var _E4 = new Map([ - ["parts", $a([_Dy, _E0])], - ["req", $a([$a(["01", "02"])])] - ]); //#1971 - var _E6 = new Map([ + ]); //#1970 + var _Hx = new Map([ + ["parts", $a([_Hp, _Hr])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#1972 + var _Hz = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1987 - var _E8 = new Map([ + ]); //#1988 + var _I1 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1988 - var _EA = new Map([ + ]); //#1989 + var _I3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#1989 - var _EC = new Map([ + ]); //#1990 + var _I5 = new Map([ ["cset", 'X'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintimporteridx'])] - ]); //#1990 - var _EE = new Map([ - ["parts", $a([_E6, _E8, _EA, _EC])] - ]); //#1990 - var _EG = new Map([ + ]); //#1991 + var _I7 = new Map([ + ["parts", $a([_Hz, _I1, _I3, _I5])] + ]); //#1991 + var _I9 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#1998 - var _EK = new Map([ - ["parts", $a([_EG])], - ["req", $a([$a(["01"])])] - ]); //#2000 - var _EM = new Map([ + ]); //#1999 + var _IE = new Map([ + ["parts", $a([_I9])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2001 + var _IG = new Map([ ["cset", 'X'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a([])] - ]); //#2012 - var _EO = new Map([ + ]); //#2013 + var _II = new Map([ ["cset", 'X'], ["min", 1], ["max", 28], ["opt", false], ["linters", $a([])] - ]); //#2013 - var _ES = new Map([ - ["parts", $a([_EM, _EO])], - ["req", $a([$a(["01", "8004"])])] - ]); //#2015 - var _EU = new Map([ + ]); //#2014 + var _IO = new Map([ + ["parts", $a([_IG, _II])], + ["req", $a([$a([$a(["01"]), $a(["8004"])])])] + ]); //#2016 + var _IQ = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2031 - var _EY = new Map([ - ["parts", $a([_EU])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2033 - var _Ea = new Map([ + ]); //#2032 + var _IW = new Map([ + ["parts", $a([_IQ])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2034 + var _IY = new Map([ ["cset", 'N'], ["min", 2], ["max", 2], ["opt", false], ["linters", $a(['lintmediatype'])] - ]); //#2040 - var _Ee = new Map([ - ["parts", $a([_Ea])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2042 - var _Eg = new Map([ + ]); //#2041 + var _Ie = new Map([ + ["parts", $a([_IY])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2043 + var _Ig = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2049 - var _Ek = new Map([ - ["parts", $a([_Eg])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2051 - var _Em = new Map([ + ]); //#2050 + var _Im = new Map([ + ["parts", $a([_Ig])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2052 + var _Io = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2058 - var _Eo = new Map([ + ]); //#2059 + var _Iq = new Map([ ["cset", 'N'], ["min", 5], ["max", 5], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2059 - var _Eq = new Map([ + ]); //#2060 + var _Is = new Map([ ["cset", 'N'], ["min", 3], ["max", 3], ["opt", false], ["linters", $a(['lintnonzero'])] - ]); //#2060 - var _Es = new Map([ + ]); //#2061 + var _Iu = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintwinding'])] - ]); //#2061 - var _Eu = new Map([ + ]); //#2062 + var _Iw = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a([])] - ]); //#2062 - var _Ey = new Map([ - ["parts", $a([_Em, _Eo, _Eq, _Es, _Eu])], - ["req", $a([$a(["01"])])] - ]); //#2064 - var _F0 = new Map([ + ]); //#2063 + var _J1 = new Map([ + ["parts", $a([_Io, _Iq, _Is, _Iu, _Iw])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2065 + var _J3 = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2071 - var _F2 = new Map([ - ["parts", $a([_F0])] - ]); //#2071 - var _F4 = new Map([ + ]); //#2072 + var _J5 = new Map([ + ["parts", $a([_J3])] + ]); //#2072 + var _J7 = new Map([ ["cset", 'N'], ["min", 1], ["max", 1], ["opt", false], ["linters", $a(['lintzero'])] - ]); //#2079 - var _F6 = new Map([ + ]); //#2080 + var _J9 = new Map([ ["cset", 'N'], ["min", 13], ["max", 13], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2080 - var _F8 = new Map([ + ]); //#2081 + var _JB = new Map([ ["cset", 'X'], ["min", 1], ["max", 16], ["opt", true], ["linters", $a([])] - ]); //#2081 - var _FB = new Map([ - ["parts", $a([_F4, _F6, _F8])], + ]); //#2082 + var _JE = new Map([ + ["parts", $a([_J7, _J9, _JB])], ["dlpkey", $a([])] - ]); //#2083 - var _FD = new Map([ + ]); //#2084 + var _JG = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2090 - var _FH = new Map([ - ["parts", $a([_FD])], + ]); //#2091 + var _JK = new Map([ + ["parts", $a([_JG])], ["dlpkey", $a([$a(["7040"])])] - ]); //#2092 - var _FJ = new Map([ + ]); //#2093 + var _JM = new Map([ ["cset", 'N'], ["min", 6], ["max", 6], ["opt", false], ["linters", $a([])] - ]); //#2099 - var _FN = new Map([ - ["parts", $a([_FJ])], - ["req", $a([$a(["01", "02"])])] - ]); //#2101 - var _FP = new Map([ + ]); //#2100 + var _JS = new Map([ + ["parts", $a([_JM])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2102 + var _JU = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2108 - var _FR = new Map([ + ]); //#2109 + var _JW = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2109 - var _FW = new Map([ - ["parts", $a([_FP, _FR])], + ]); //#2110 + var _Jb = new Map([ + ["parts", $a([_JU, _JW])], ["ex", $a(["01", "37"])], ["dlpkey", $a([$a(["22", "10", "21"])])] - ]); //#2112 - var _FY = new Map([ + ]); //#2113 + var _Jd = new Map([ ["cset", 'X'], ["min", 1], ["max", 34], ["opt", false], ["linters", $a(['lintiban'])] - ]); //#2119 - var _Fc = new Map([ - ["parts", $a([_FY])], - ["req", $a([$a(["415"])])] - ]); //#2121 - var _Fe = new Map([ + ]); //#2120 + var _Ji = new Map([ + ["parts", $a([_Jd])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2122 + var _Jk = new Map([ ["cset", 'N'], ["min", 8], ["max", 8], ["opt", false], ["linters", $a(['lintyymmddhh'])] - ]); //#2128 - var _Fg = new Map([ + ]); //#2129 + var _Jm = new Map([ ["cset", 'N'], ["min", 1], ["max", 4], ["opt", true], ["linters", $a(['lintmmoptss'])] - ]); //#2129 - var _Fk = new Map([ - ["parts", $a([_Fe, _Fg])], - ["req", $a([$a(["01", "02"])])] - ]); //#2131 - var _Fm = new Map([ + ]); //#2130 + var _Js = new Map([ + ["parts", $a([_Jk, _Jm])], + ["req", $a([$a([$a(["01"]), $a(["02"])])])] + ]); //#2132 + var _Ju = new Map([ ["cset", 'X'], ["min", 1], ["max", 50], ["opt", false], ["linters", $a([])] - ]); //#2138 - var _Fq = new Map([ - ["parts", $a([_Fm])], - ["req", $a([$a(["00", "01"])])] - ]); //#2140 - var _Fs = new Map([ + ]); //#2139 + var _K0 = new Map([ + ["parts", $a([_Ju])], + ["req", $a([$a([$a(["00"]), $a(["01"])])])] + ]); //#2141 + var _K2 = new Map([ ["cset", 'Y'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a(['lintkey'])] - ]); //#2147 - var _Fw = new Map([ - ["parts", $a([_Fs])], + ]); //#2148 + var _K6 = new Map([ + ["parts", $a([_K2])], ["dlpkey", $a([$a(["8011"])])] - ]); //#2149 - var _Fy = new Map([ + ]); //#2150 + var _K8 = new Map([ ["cset", 'N'], ["min", 1], ["max", 12], ["opt", false], ["linters", $a(['lintnozeroprefix'])] - ]); //#2156 - var _G2 = new Map([ - ["parts", $a([_Fy])], - ["req", $a([$a(["8010"])])] - ]); //#2158 - var _G4 = new Map([ + ]); //#2157 + var _KD = new Map([ + ["parts", $a([_K8])], + ["req", $a([$a([$a(["8010"])])])] + ]); //#2159 + var _KF = new Map([ ["cset", 'X'], ["min", 1], ["max", 20], ["opt", false], ["linters", $a([])] - ]); //#2165 - var _G8 = new Map([ - ["parts", $a([_G4])], - ["req", $a([$a(["01", "8006"])])] - ]); //#2167 - var _GA = new Map([ + ]); //#2166 + var _KL = new Map([ + ["parts", $a([_KF])], + ["req", $a([$a([$a(["01"]), $a(["8006"])])])] + ]); //#2168 + var _KN = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a(['lintcsumalpha', 'lintkey'])] - ]); //#2174 - var _GD = new Map([ - ["parts", $a([_GA])], + ]); //#2175 + var _KQ = new Map([ + ["parts", $a([_KN])], ["dlpkey", $a([])] - ]); //#2176 - var _GF = new Map([ + ]); //#2177 + var _KS = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2183 - var _GK = new Map([ - ["parts", $a([_GF])], + ]); //#2184 + var _KX = new Map([ + ["parts", $a([_KS])], ["ex", $a(["8018"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2186 - var _GM = new Map([ + ]); //#2187 + var _KZ = new Map([ ["cset", 'N'], ["min", 18], ["max", 18], ["opt", false], ["linters", $a(['lintcsum', 'lintkey'])] - ]); //#2193 - var _GR = new Map([ - ["parts", $a([_GM])], + ]); //#2194 + var _Ke = new Map([ + ["parts", $a([_KZ])], ["ex", $a(["8017"])], ["dlpkey", $a([$a(["8019"])])] - ]); //#2196 - var _GT = new Map([ + ]); //#2197 + var _Kg = new Map([ ["cset", 'N'], ["min", 1], ["max", 10], ["opt", false], ["linters", $a([])] - ]); //#2203 - var _GX = new Map([ - ["parts", $a([_GT])], - ["req", $a([$a(["8017", "8018"])])] - ]); //#2205 - var _GZ = new Map([ + ]); //#2204 + var _Km = new Map([ + ["parts", $a([_Kg])], + ["req", $a([$a([$a(["8017"]), $a(["8018"])])])] + ]); //#2206 + var _Ko = new Map([ ["cset", 'X'], ["min", 1], ["max", 25], ["opt", false], ["linters", $a([])] - ]); //#2212 - var _Gd = new Map([ - ["parts", $a([_GZ])], - ["req", $a([$a(["415"])])] - ]); //#2214 - var _Gf = new Map([ + ]); //#2213 + var _Kt = new Map([ + ["parts", $a([_Ko])], + ["req", $a([$a([$a(["415"])])])] + ]); //#2215 + var _Kv = new Map([ ["cset", 'N'], ["min", 14], ["max", 14], ["opt", false], ["linters", $a(['lintcsum'])] - ]); //#2221 - var _Gh = new Map([ + ]); //#2222 + var _Kx = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a(['lintpieceoftotal'])] - ]); //#2222 - var _Gm = new Map([ - ["parts", $a([_Gf, _Gh])], + ]); //#2223 + var _L3 = new Map([ + ["parts", $a([_Kv, _Kx])], ["ex", $a(["02", "8006"])], - ["req", $a([$a(["37"])])] - ]); //#2225 - var _Go = new Map([ + ["req", $a([$a([$a(["37"])])])] + ]); //#2226 + var _L5 = new Map([ + ["cset", 'Z'], + ["min", 1], + ["max", 90], + ["opt", false], + ["linters", $a([])] + ]); //#2233 + var _LJ = new Map([ + ["parts", $a([_L5])], + ["req", $a([$a([$a(["00"]), $a(["01"]), $a(["253"]), $a(["255"]), $a(["8003"]), $a(["8004"]), $a(["8006"]), $a(["8010"]), $a(["8017"]), $a(["8018"])])])] + ]); //#2235 + var _LL = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponcode'])] - ]); //#2232 - var _Gq = new Map([ - ["parts", $a([_Go])] - ]); //#2232 - var _Gs = new Map([ + ]); //#2242 + var _LN = new Map([ + ["parts", $a([_LL])] + ]); //#2242 + var _LP = new Map([ ["cset", 'N'], ["min", 4], ["max", 4], ["opt", false], ["linters", $a([])] - ]); //#2240 - var _Gw = new Map([ - ["parts", $a([_Gs])], - ["req", $a([$a(["255"])])] - ]); //#2242 - var _Gy = new Map([ + ]); //#2250 + var _LU = new Map([ + ["parts", $a([_LP])], + ["req", $a([$a([$a(["255"])])])] + ]); //#2252 + var _LW = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a(['lintcouponposoffer'])] - ]); //#2249 - var _H0 = new Map([ - ["parts", $a([_Gy])] - ]); //#2249 - var _H2 = new Map([ + ]); //#2259 + var _LY = new Map([ + ["parts", $a([_LW])] + ]); //#2259 + var _La = new Map([ ["cset", 'X'], ["min", 1], ["max", 70], ["opt", false], ["linters", $a([])] - ]); //#2257 - var _H6 = new Map([ - ["parts", $a([_H2])], - ["req", $a([$a(["01"])])] - ]); //#2259 - var _H8 = new Map([ + ]); //#2267 + var _Lf = new Map([ + ["parts", $a([_La])], + ["req", $a([$a([$a(["01"])])])] + ]); //#2269 + var _Lh = new Map([ ["cset", 'X'], ["min", 1], ["max", 30], ["opt", false], ["linters", $a([])] - ]); //#2266 - var _HA = new Map([ - ["parts", $a([_H8])] - ]); //#2266 - var _HC = new Map([ + ]); //#2276 + var _Lj = new Map([ + ["parts", $a([_Lh])] + ]); //#2276 + var _Ll = new Map([ ["cset", 'X'], ["min", 1], ["max", 90], ["opt", false], ["linters", $a([])] - ]); //#2274 - var _HE = new Map([ - ["parts", $a([_HC])] - ]); //#2274 - var _HF = new Map([ + ]); //#2284 + var _Ln = new Map([ + ["parts", $a([_Ll])] + ]); //#2284 + var _Lo = new Map([ ["00", _4], ["01", _C], - ["02", _I], - ["10", _O], - ["11", _U], - ["12", _a], - ["13", _g], - ["15", _g], - ["16", _g], - ["17", _m], - ["20", _s], - ["21", _z], - ["22", _15], - ["235", _1B], - ["240", _1H], - ["241", _1H], - ["242", _1N], - ["243", _1T], - ["250", _1a], - ["251", _1g], - ["253", _1n], - ["254", _1t], - ["255", _21], - ["30", _27], - ["3100", _2E], - ["3101", _2E], - ["3102", _2E], - ["3103", _2E], - ["3104", _2E], - ["3105", _2E], - ["3110", _2L], - ["3111", _2L], - ["3112", _2L], - ["3113", _2L], - ["3114", _2L], - ["3115", _2L], - ["3120", _2S], - ["3121", _2S], - ["3122", _2S], - ["3123", _2S], - ["3124", _2S], - ["3125", _2S], - ["3130", _2Z], - ["3131", _2Z], - ["3132", _2Z], - ["3133", _2Z], - ["3134", _2Z], - ["3135", _2Z], - ["3140", _2g], - ["3141", _2g], - ["3142", _2g], - ["3143", _2g], - ["3144", _2g], - ["3145", _2g], - ["3150", _2n], - ["3151", _2n], - ["3152", _2n], - ["3153", _2n], - ["3154", _2n], - ["3155", _2n], - ["3160", _2u], - ["3161", _2u], - ["3162", _2u], - ["3163", _2u], - ["3164", _2u], - ["3165", _2u], - ["3200", _31], - ["3201", _31], - ["3202", _31], - ["3203", _31], - ["3204", _31], - ["3205", _31], - ["3210", _38], - ["3211", _38], - ["3212", _38], - ["3213", _38], - ["3214", _38], - ["3215", _38], - ["3220", _3F], - ["3221", _3F], - ["3222", _3F], - ["3223", _3F], - ["3224", _3F], - ["3225", _3F], - ["3230", _3M], - ["3231", _3M], - ["3232", _3M], - ["3233", _3M], - ["3234", _3M], - ["3235", _3M], - ["3240", _3T], - ["3241", _3T], - ["3242", _3T], - ["3243", _3T], - ["3244", _3T], - ["3245", _3T], - ["3250", _3a], - ["3251", _3a], - ["3252", _3a], - ["3253", _3a], - ["3254", _3a], - ["3255", _3a], - ["3260", _3h], - ["3261", _3h], - ["3262", _3h], - ["3263", _3h], - ["3264", _3h], - ["3265", _3h], - ["3270", _3o], - ["3271", _3o], - ["3272", _3o], - ["3273", _3o], - ["3274", _3o], - ["3275", _3o], - ["3280", _3v], - ["3281", _3v], - ["3282", _3v], - ["3283", _3v], - ["3284", _3v], - ["3285", _3v], - ["3290", _42], - ["3291", _42], - ["3292", _42], - ["3293", _42], - ["3294", _42], - ["3295", _42], - ["3300", _49], - ["3301", _49], - ["3302", _49], - ["3303", _49], - ["3304", _49], - ["3305", _49], - ["3310", _4G], - ["3311", _4G], - ["3312", _4G], - ["3313", _4G], - ["3314", _4G], - ["3315", _4G], - ["3320", _4N], - ["3321", _4N], - ["3322", _4N], - ["3323", _4N], - ["3324", _4N], - ["3325", _4N], - ["3330", _4U], - ["3331", _4U], - ["3332", _4U], - ["3333", _4U], - ["3334", _4U], - ["3335", _4U], - ["3340", _4b], - ["3341", _4b], - ["3342", _4b], - ["3343", _4b], - ["3344", _4b], - ["3345", _4b], - ["3350", _4i], - ["3351", _4i], - ["3352", _4i], - ["3353", _4i], - ["3354", _4i], - ["3355", _4i], - ["3360", _4p], - ["3361", _4p], - ["3362", _4p], - ["3363", _4p], - ["3364", _4p], - ["3365", _4p], - ["3370", _4w], - ["3371", _4w], - ["3372", _4w], - ["3373", _4w], - ["3374", _4w], - ["3375", _4w], - ["3400", _53], - ["3401", _53], - ["3402", _53], - ["3403", _53], - ["3404", _53], - ["3405", _53], - ["3410", _5A], - ["3411", _5A], - ["3412", _5A], - ["3413", _5A], - ["3414", _5A], - ["3415", _5A], - ["3420", _5H], - ["3421", _5H], - ["3422", _5H], - ["3423", _5H], - ["3424", _5H], - ["3425", _5H], - ["3430", _5O], - ["3431", _5O], - ["3432", _5O], - ["3433", _5O], - ["3434", _5O], - ["3435", _5O], - ["3440", _5V], - ["3441", _5V], - ["3442", _5V], - ["3443", _5V], - ["3444", _5V], - ["3445", _5V], - ["3450", _5c], - ["3451", _5c], - ["3452", _5c], - ["3453", _5c], - ["3454", _5c], - ["3455", _5c], - ["3460", _5j], - ["3461", _5j], - ["3462", _5j], - ["3463", _5j], - ["3464", _5j], - ["3465", _5j], - ["3470", _5q], - ["3471", _5q], - ["3472", _5q], - ["3473", _5q], - ["3474", _5q], - ["3475", _5q], - ["3480", _5x], - ["3481", _5x], - ["3482", _5x], - ["3483", _5x], - ["3484", _5x], - ["3485", _5x], - ["3490", _64], - ["3491", _64], - ["3492", _64], - ["3493", _64], - ["3494", _64], - ["3495", _64], - ["3500", _6B], - ["3501", _6B], - ["3502", _6B], - ["3503", _6B], - ["3504", _6B], - ["3505", _6B], - ["3510", _6I], - ["3511", _6I], - ["3512", _6I], - ["3513", _6I], - ["3514", _6I], - ["3515", _6I], - ["3520", _6P], - ["3521", _6P], - ["3522", _6P], - ["3523", _6P], - ["3524", _6P], - ["3525", _6P], - ["3530", _6W], - ["3531", _6W], - ["3532", _6W], - ["3533", _6W], - ["3534", _6W], - ["3535", _6W], - ["3540", _6d], - ["3541", _6d], - ["3542", _6d], - ["3543", _6d], - ["3544", _6d], - ["3545", _6d], - ["3550", _6k], - ["3551", _6k], - ["3552", _6k], - ["3553", _6k], - ["3554", _6k], - ["3555", _6k], - ["3560", _6r], - ["3561", _6r], - ["3562", _6r], - ["3563", _6r], - ["3564", _6r], - ["3565", _6r], - ["3570", _6y], - ["3571", _6y], - ["3572", _6y], - ["3573", _6y], - ["3574", _6y], - ["3575", _6y], - ["3600", _75], - ["3601", _75], - ["3602", _75], - ["3603", _75], - ["3604", _75], - ["3605", _75], - ["3610", _7C], - ["3611", _7C], - ["3612", _7C], - ["3613", _7C], - ["3614", _7C], - ["3615", _7C], - ["3620", _7J], - ["3621", _7J], - ["3622", _7J], - ["3623", _7J], - ["3624", _7J], - ["3625", _7J], - ["3630", _7Q], - ["3631", _7Q], - ["3632", _7Q], - ["3633", _7Q], - ["3634", _7Q], - ["3635", _7Q], - ["3640", _7X], - ["3641", _7X], - ["3642", _7X], - ["3643", _7X], - ["3644", _7X], - ["3645", _7X], - ["3650", _7e], - ["3651", _7e], - ["3652", _7e], - ["3653", _7e], - ["3654", _7e], - ["3655", _7e], - ["3660", _7l], - ["3661", _7l], - ["3662", _7l], - ["3663", _7l], - ["3664", _7l], - ["3665", _7l], - ["3670", _7s], - ["3671", _7s], - ["3672", _7s], - ["3673", _7s], - ["3674", _7s], - ["3675", _7s], - ["3680", _7z], - ["3681", _7z], - ["3682", _7z], - ["3683", _7z], - ["3684", _7z], - ["3685", _7z], - ["3690", _86], - ["3691", _86], - ["3692", _86], - ["3693", _86], - ["3694", _86], - ["3695", _86], - ["37", _8D], - ["3900", _8K], - ["3901", _8K], - ["3902", _8K], - ["3903", _8K], - ["3904", _8K], - ["3905", _8K], - ["3906", _8K], - ["3907", _8K], - ["3908", _8K], - ["3909", _8K], - ["3910", _8T], - ["3911", _8T], - ["3912", _8T], - ["3913", _8T], - ["3914", _8T], - ["3915", _8T], - ["3916", _8T], - ["3917", _8T], - ["3918", _8T], - ["3919", _8T], - ["3920", _8b], - ["3921", _8b], - ["3922", _8b], - ["3923", _8b], - ["3924", _8b], - ["3925", _8b], - ["3926", _8b], - ["3927", _8b], - ["3928", _8b], - ["3929", _8b], - ["3930", _8k], - ["3931", _8k], - ["3932", _8k], - ["3933", _8k], - ["3934", _8k], - ["3935", _8k], - ["3936", _8k], - ["3937", _8k], - ["3938", _8k], - ["3939", _8k], - ["3940", _8r], - ["3941", _8r], - ["3942", _8r], - ["3943", _8r], - ["3950", _8y], - ["3951", _8y], - ["3952", _8y], - ["3953", _8y], - ["3954", _8y], - ["3955", _8y], - ["400", _92], - ["401", _97], - ["402", _9C], - ["403", _9I], - ["410", _9M], - ["411", _9M], - ["412", _9M], - ["413", _9M], - ["414", _9T], - ["415", _9b], - ["416", _9f], - ["417", _9l], - ["420", _9q], - ["421", _9x], - ["422", _A4], - ["423", _AB], - ["424", _AI], - ["425", _AP], - ["426", _AV], - ["427", _Ac], - ["4300", _Ai], - ["4301", _Ai], - ["4302", _Ao], - ["4303", _Au], - ["4304", _B0], - ["4305", _B0], - ["4306", _B0], - ["4307", _B6], - ["4308", _BC], - ["4309", _BI], - ["4310", _BO], - ["4311", _BO], - ["4312", _BU], - ["4313", _Ba], - ["4314", _Bg], - ["4315", _Bg], - ["4316", _Bg], - ["4317", _Bm], - ["4318", _Bs], - ["4319", _By], - ["4320", _C4], - ["4321", _CA], - ["4322", _CA], - ["4323", _CA], - ["4324", _CI], - ["4325", _CI], - ["4326", _CO], - ["7001", _CU], - ["7002", _Ca], - ["7003", _Ci], - ["7004", _Cp], - ["7005", _Cv], - ["7006", _D1], - ["7007", _D9], - ["7008", _DF], - ["7009", _DL], - ["7010", _DR], - ["7011", _DZ], - ["7020", _Dg], - ["7021", _Dm], - ["7022", _Ds], - ["7023", _Dw], - ["7030", _E4], - ["7031", _E4], - ["7032", _E4], - ["7033", _E4], - ["7034", _E4], - ["7035", _E4], - ["7036", _E4], - ["7037", _E4], - ["7038", _E4], - ["7039", _E4], - ["7040", _EE], - ["710", _EK], - ["711", _EK], - ["712", _EK], - ["713", _EK], - ["714", _EK], - ["715", _EK], - ["7230", _ES], - ["7231", _ES], - ["7232", _ES], - ["7233", _ES], - ["7234", _ES], - ["7235", _ES], - ["7236", _ES], - ["7237", _ES], - ["7238", _ES], - ["7239", _ES], - ["7240", _EY], - ["7241", _Ee], - ["7242", _Ek], - ["8001", _Ey], - ["8002", _F2], - ["8003", _FB], - ["8004", _FH], - ["8005", _FN], - ["8006", _FW], - ["8007", _Fc], - ["8008", _Fk], - ["8009", _Fq], - ["8010", _Fw], - ["8011", _G2], - ["8012", _G8], - ["8013", _GD], - ["8017", _GK], - ["8018", _GR], - ["8019", _GX], - ["8020", _Gd], - ["8026", _Gm], - ["8110", _Gq], - ["8111", _Gw], - ["8112", _H0], - ["8200", _H6], - ["90", _HA], - ["91", _HE], - ["92", _HE], - ["93", _HE], - ["94", _HE], - ["95", _HE], - ["96", _HE], - ["97", _HE], - ["98", _HE], - ["99", _HE] - ]); //#2286 - $_.gs1syntax = _HF; //#2288 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2288 - bwipp_gs1process.__2289__ = 1; //#2288 - $_ = Object.getPrototypeOf($_); //#2288 - } //#2288 - if ($eq($k[--$j], 'ai')) { //#2473 - $anchorsearch($k[--$j], "("); //#2296 - if ($nt($k[--$j])) { //#2298 - $j--; //#2297 - $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2297'; //#2297 - $k[$j++] = "AIs must start with '('"; //#2297 - bwipp_raiseerror(); //#2297 - } //#2297 - $j--; //#2299 - $k[$j++] = Infinity; //#2300 - var _HK = $k[--$j]; //#2300 - var _HL = $k[--$j]; //#2300 - $k[$j++] = _HK; //#2307 - $k[$j++] = _HL; //#2307 - for (;;) { //#2307 - var _HM = $k[--$j]; //#2301 - $k[$j++] = _HM; //#2301 - if ($eq(_HM, "")) { //#2301 - $j--; //#2301 - break; //#2301 - } //#2301 - $search($k[--$j], ")"); //#2302 - if ($nt($k[--$j])) { //#2304 - $cleartomark(); //#2303 - $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2303'; //#2303 - $k[$j++] = "AIs must end with ')'"; //#2303 - bwipp_raiseerror(); //#2303 - } //#2303 - var _HP = $k[--$j]; //#2305 - var _HQ = $k[--$j]; //#2305 - $k[$j++] = _HP; //#2305 - $k[$j++] = _HQ; //#2305 - $j--; //#2305 - var _HR = $k[--$j]; //#2305 - var _HS = $k[--$j]; //#2305 - $k[$j++] = _HR; //#2306 - $search(_HS, "("); //#2306 - if ($k[--$j]) { //#2306 - var _HU = $k[--$j]; //#2306 - var _HV = $k[--$j]; //#2306 - $k[$j++] = _HU; //#2306 - $k[$j++] = _HV; //#2306 - $j--; //#2306 - var _HW = $k[--$j]; //#2306 - var _HX = $k[--$j]; //#2306 - $k[$j++] = _HW; //#2306 - $k[$j++] = _HX; //#2306 - } else { //#2306 - $k[$j++] = ""; //#2306 - } //#2306 - } //#2306 - var _HY = $counttomark(); //#2308 - $k[$j++] = _HY; //#2308 - if (_HY > 0) { //#2308 - var _HZ = $k[--$j]; //#2308 - for (var _Hb = _HZ, _Ha = (~~(_HZ / 2)) + 1; _Hb >= _Ha; _Hb -= 1) { //#2308 - $r(_Hb, -1); //#2308 - } //#2308 - } else { //#2308 - $j--; //#2308 - } //#2308 - $astore($a(~~($counttomark() / 2))); //#2309 - $_.ais = $k[--$j]; //#2309 - $astore($a($counttomark())); //#2310 - $k[$j++] = Infinity; //#2311 - var _Hh = $k[--$j]; //#2310 - var _Hi = $k[--$j]; //#2310 - $k[$j++] = _Hh; //#2312 - $forall(_Hi, function() { //#2312 - var _Hk = new Map([ + ["02", _J], + ["10", _T], + ["11", _d], + ["12", _k], + ["13", _u], + ["15", _u], + ["16", _u], + ["17", _15], + ["20", _1F], + ["21", _1O], + ["22", _1V], + ["235", _1c], + ["240", _1m], + ["241", _1m], + ["242", _1w], + ["243", _23], + ["250", _2D], + ["251", _2L], + ["253", _2S], + ["254", _2Z], + ["255", _2h], + ["30", _2p], + ["3100", _2y], + ["3101", _2y], + ["3102", _2y], + ["3103", _2y], + ["3104", _2y], + ["3105", _2y], + ["3110", _37], + ["3111", _37], + ["3112", _37], + ["3113", _37], + ["3114", _37], + ["3115", _37], + ["3120", _3G], + ["3121", _3G], + ["3122", _3G], + ["3123", _3G], + ["3124", _3G], + ["3125", _3G], + ["3130", _3P], + ["3131", _3P], + ["3132", _3P], + ["3133", _3P], + ["3134", _3P], + ["3135", _3P], + ["3140", _3Y], + ["3141", _3Y], + ["3142", _3Y], + ["3143", _3Y], + ["3144", _3Y], + ["3145", _3Y], + ["3150", _3h], + ["3151", _3h], + ["3152", _3h], + ["3153", _3h], + ["3154", _3h], + ["3155", _3h], + ["3160", _3q], + ["3161", _3q], + ["3162", _3q], + ["3163", _3q], + ["3164", _3q], + ["3165", _3q], + ["3200", _3z], + ["3201", _3z], + ["3202", _3z], + ["3203", _3z], + ["3204", _3z], + ["3205", _3z], + ["3210", _48], + ["3211", _48], + ["3212", _48], + ["3213", _48], + ["3214", _48], + ["3215", _48], + ["3220", _4H], + ["3221", _4H], + ["3222", _4H], + ["3223", _4H], + ["3224", _4H], + ["3225", _4H], + ["3230", _4Q], + ["3231", _4Q], + ["3232", _4Q], + ["3233", _4Q], + ["3234", _4Q], + ["3235", _4Q], + ["3240", _4Z], + ["3241", _4Z], + ["3242", _4Z], + ["3243", _4Z], + ["3244", _4Z], + ["3245", _4Z], + ["3250", _4i], + ["3251", _4i], + ["3252", _4i], + ["3253", _4i], + ["3254", _4i], + ["3255", _4i], + ["3260", _4r], + ["3261", _4r], + ["3262", _4r], + ["3263", _4r], + ["3264", _4r], + ["3265", _4r], + ["3270", _50], + ["3271", _50], + ["3272", _50], + ["3273", _50], + ["3274", _50], + ["3275", _50], + ["3280", _59], + ["3281", _59], + ["3282", _59], + ["3283", _59], + ["3284", _59], + ["3285", _59], + ["3290", _5I], + ["3291", _5I], + ["3292", _5I], + ["3293", _5I], + ["3294", _5I], + ["3295", _5I], + ["3300", _5R], + ["3301", _5R], + ["3302", _5R], + ["3303", _5R], + ["3304", _5R], + ["3305", _5R], + ["3310", _5a], + ["3311", _5a], + ["3312", _5a], + ["3313", _5a], + ["3314", _5a], + ["3315", _5a], + ["3320", _5j], + ["3321", _5j], + ["3322", _5j], + ["3323", _5j], + ["3324", _5j], + ["3325", _5j], + ["3330", _5s], + ["3331", _5s], + ["3332", _5s], + ["3333", _5s], + ["3334", _5s], + ["3335", _5s], + ["3340", _61], + ["3341", _61], + ["3342", _61], + ["3343", _61], + ["3344", _61], + ["3345", _61], + ["3350", _6A], + ["3351", _6A], + ["3352", _6A], + ["3353", _6A], + ["3354", _6A], + ["3355", _6A], + ["3360", _6J], + ["3361", _6J], + ["3362", _6J], + ["3363", _6J], + ["3364", _6J], + ["3365", _6J], + ["3370", _6R], + ["3371", _6R], + ["3372", _6R], + ["3373", _6R], + ["3374", _6R], + ["3375", _6R], + ["3400", _6a], + ["3401", _6a], + ["3402", _6a], + ["3403", _6a], + ["3404", _6a], + ["3405", _6a], + ["3410", _6j], + ["3411", _6j], + ["3412", _6j], + ["3413", _6j], + ["3414", _6j], + ["3415", _6j], + ["3420", _6s], + ["3421", _6s], + ["3422", _6s], + ["3423", _6s], + ["3424", _6s], + ["3425", _6s], + ["3430", _71], + ["3431", _71], + ["3432", _71], + ["3433", _71], + ["3434", _71], + ["3435", _71], + ["3440", _7A], + ["3441", _7A], + ["3442", _7A], + ["3443", _7A], + ["3444", _7A], + ["3445", _7A], + ["3450", _7J], + ["3451", _7J], + ["3452", _7J], + ["3453", _7J], + ["3454", _7J], + ["3455", _7J], + ["3460", _7S], + ["3461", _7S], + ["3462", _7S], + ["3463", _7S], + ["3464", _7S], + ["3465", _7S], + ["3470", _7b], + ["3471", _7b], + ["3472", _7b], + ["3473", _7b], + ["3474", _7b], + ["3475", _7b], + ["3480", _7k], + ["3481", _7k], + ["3482", _7k], + ["3483", _7k], + ["3484", _7k], + ["3485", _7k], + ["3490", _7t], + ["3491", _7t], + ["3492", _7t], + ["3493", _7t], + ["3494", _7t], + ["3495", _7t], + ["3500", _82], + ["3501", _82], + ["3502", _82], + ["3503", _82], + ["3504", _82], + ["3505", _82], + ["3510", _8B], + ["3511", _8B], + ["3512", _8B], + ["3513", _8B], + ["3514", _8B], + ["3515", _8B], + ["3520", _8K], + ["3521", _8K], + ["3522", _8K], + ["3523", _8K], + ["3524", _8K], + ["3525", _8K], + ["3530", _8T], + ["3531", _8T], + ["3532", _8T], + ["3533", _8T], + ["3534", _8T], + ["3535", _8T], + ["3540", _8c], + ["3541", _8c], + ["3542", _8c], + ["3543", _8c], + ["3544", _8c], + ["3545", _8c], + ["3550", _8l], + ["3551", _8l], + ["3552", _8l], + ["3553", _8l], + ["3554", _8l], + ["3555", _8l], + ["3560", _8u], + ["3561", _8u], + ["3562", _8u], + ["3563", _8u], + ["3564", _8u], + ["3565", _8u], + ["3570", _93], + ["3571", _93], + ["3572", _93], + ["3573", _93], + ["3574", _93], + ["3575", _93], + ["3600", _9C], + ["3601", _9C], + ["3602", _9C], + ["3603", _9C], + ["3604", _9C], + ["3605", _9C], + ["3610", _9L], + ["3611", _9L], + ["3612", _9L], + ["3613", _9L], + ["3614", _9L], + ["3615", _9L], + ["3620", _9U], + ["3621", _9U], + ["3622", _9U], + ["3623", _9U], + ["3624", _9U], + ["3625", _9U], + ["3630", _9d], + ["3631", _9d], + ["3632", _9d], + ["3633", _9d], + ["3634", _9d], + ["3635", _9d], + ["3640", _9m], + ["3641", _9m], + ["3642", _9m], + ["3643", _9m], + ["3644", _9m], + ["3645", _9m], + ["3650", _9v], + ["3651", _9v], + ["3652", _9v], + ["3653", _9v], + ["3654", _9v], + ["3655", _9v], + ["3660", _A4], + ["3661", _A4], + ["3662", _A4], + ["3663", _A4], + ["3664", _A4], + ["3665", _A4], + ["3670", _AD], + ["3671", _AD], + ["3672", _AD], + ["3673", _AD], + ["3674", _AD], + ["3675", _AD], + ["3680", _AM], + ["3681", _AM], + ["3682", _AM], + ["3683", _AM], + ["3684", _AM], + ["3685", _AM], + ["3690", _AV], + ["3691", _AV], + ["3692", _AV], + ["3693", _AV], + ["3694", _AV], + ["3695", _AV], + ["37", _Af], + ["3900", _Ao], + ["3901", _Ao], + ["3902", _Ao], + ["3903", _Ao], + ["3904", _Ao], + ["3905", _Ao], + ["3906", _Ao], + ["3907", _Ao], + ["3908", _Ao], + ["3909", _Ao], + ["3910", _Ay], + ["3911", _Ay], + ["3912", _Ay], + ["3913", _Ay], + ["3914", _Ay], + ["3915", _Ay], + ["3916", _Ay], + ["3917", _Ay], + ["3918", _Ay], + ["3919", _Ay], + ["3920", _BC], + ["3921", _BC], + ["3922", _BC], + ["3923", _BC], + ["3924", _BC], + ["3925", _BC], + ["3926", _BC], + ["3927", _BC], + ["3928", _BC], + ["3929", _BC], + ["3930", _BQ], + ["3931", _BQ], + ["3932", _BQ], + ["3933", _BQ], + ["3934", _BQ], + ["3935", _BQ], + ["3936", _BQ], + ["3937", _BQ], + ["3938", _BQ], + ["3939", _BQ], + ["3940", _BY], + ["3941", _BY], + ["3942", _BY], + ["3943", _BY], + ["3950", _Bk], + ["3951", _Bk], + ["3952", _Bk], + ["3953", _Bk], + ["3954", _Bk], + ["3955", _Bk], + ["400", _Bo], + ["401", _Bt], + ["402", _By], + ["403", _C5], + ["410", _C9], + ["411", _C9], + ["412", _C9], + ["413", _C9], + ["414", _CG], + ["415", _CP], + ["416", _CT], + ["417", _CZ], + ["420", _Ce], + ["421", _Cl], + ["422", _Cw], + ["423", _D5], + ["424", _DE], + ["425", _DN], + ["426", _DV], + ["427", _Df], + ["4300", _Dm], + ["4301", _Dm], + ["4302", _Dt], + ["4303", _E0], + ["4304", _E7], + ["4305", _E7], + ["4306", _E7], + ["4307", _EE], + ["4308", _EL], + ["4309", _EU], + ["4310", _Eb], + ["4311", _Eb], + ["4312", _Ei], + ["4313", _Ep], + ["4314", _Ew], + ["4315", _Ew], + ["4316", _Ew], + ["4317", _F3], + ["4318", _FA], + ["4319", _FH], + ["4320", _FO], + ["4321", _FV], + ["4322", _FV], + ["4323", _FV], + ["4324", _Fe], + ["4325", _Fe], + ["4326", _Fl], + ["7001", _Fv], + ["7002", _G3], + ["7003", _GD], + ["7004", _GM], + ["7005", _GU], + ["7006", _Gc], + ["7007", _Gm], + ["7008", _Gu], + ["7009", _H2], + ["7010", _HA], + ["7011", _HK], + ["7020", _HU], + ["7021", _Hc], + ["7022", _Hj], + ["7023", _Hn], + ["7030", _Hx], + ["7031", _Hx], + ["7032", _Hx], + ["7033", _Hx], + ["7034", _Hx], + ["7035", _Hx], + ["7036", _Hx], + ["7037", _Hx], + ["7038", _Hx], + ["7039", _Hx], + ["7040", _I7], + ["710", _IE], + ["711", _IE], + ["712", _IE], + ["713", _IE], + ["714", _IE], + ["715", _IE], + ["7230", _IO], + ["7231", _IO], + ["7232", _IO], + ["7233", _IO], + ["7234", _IO], + ["7235", _IO], + ["7236", _IO], + ["7237", _IO], + ["7238", _IO], + ["7239", _IO], + ["7240", _IW], + ["7241", _Ie], + ["7242", _Im], + ["8001", _J1], + ["8002", _J5], + ["8003", _JE], + ["8004", _JK], + ["8005", _JS], + ["8006", _Jb], + ["8007", _Ji], + ["8008", _Js], + ["8009", _K0], + ["8010", _K6], + ["8011", _KD], + ["8012", _KL], + ["8013", _KQ], + ["8017", _KX], + ["8018", _Ke], + ["8019", _Km], + ["8020", _Kt], + ["8026", _L3], + ["8030", _LJ], + ["8110", _LN], + ["8111", _LU], + ["8112", _LY], + ["8200", _Lf], + ["90", _Lj], + ["91", _Ln], + ["92", _Ln], + ["93", _Ln], + ["94", _Ln], + ["95", _Ln], + ["96", _Ln], + ["97", _Ln], + ["98", _Ln], + ["99", _Ln] + ]); //#2296 + $_.gs1syntax = _Lo; //#2298 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2298 + bwipp_gs1process.__2299__ = 1; //#2298 + $_ = Object.getPrototypeOf($_); //#2298 + } //#2298 + if ($eq($k[--$j], 'ai')) { //#2507 + $anchorsearch($k[--$j], "("); //#2306 + if ($nt($k[--$j])) { //#2308 + $j--; //#2307 + $k[$j++] = 'bwipp.GS1aiMissingOpenParen#2307'; //#2307 + $k[$j++] = "AIs must start with '('"; //#2307 + bwipp_raiseerror(); //#2307 + } //#2307 + $j--; //#2309 + $k[$j++] = Infinity; //#2310 + var _Lt = $k[--$j]; //#2310 + var _Lu = $k[--$j]; //#2310 + $k[$j++] = _Lt; //#2317 + $k[$j++] = _Lu; //#2317 + for (;;) { //#2317 + var _Lv = $k[--$j]; //#2311 + $k[$j++] = _Lv; //#2311 + if ($eq(_Lv, "")) { //#2311 + $j--; //#2311 + break; //#2311 + } //#2311 + $search($k[--$j], ")"); //#2312 + if ($nt($k[--$j])) { //#2314 + $cleartomark(); //#2313 + $k[$j++] = 'bwipp.GS1aiMissingCloseParen#2313'; //#2313 + $k[$j++] = "AIs must end with ')'"; //#2313 + bwipp_raiseerror(); //#2313 + } //#2313 + var _Ly = $k[--$j]; //#2315 + var _Lz = $k[--$j]; //#2315 + $k[$j++] = _Ly; //#2315 + $k[$j++] = _Lz; //#2315 + $j--; //#2315 + var _M0 = $k[--$j]; //#2315 + var _M1 = $k[--$j]; //#2315 + $k[$j++] = _M0; //#2316 + $search(_M1, "("); //#2316 + if ($k[--$j]) { //#2316 + var _M3 = $k[--$j]; //#2316 + var _M4 = $k[--$j]; //#2316 + $k[$j++] = _M3; //#2316 + $k[$j++] = _M4; //#2316 + $j--; //#2316 + var _M5 = $k[--$j]; //#2316 + var _M6 = $k[--$j]; //#2316 + $k[$j++] = _M5; //#2316 + $k[$j++] = _M6; //#2316 + } else { //#2316 + $k[$j++] = ""; //#2316 + } //#2316 + } //#2316 + var _M7 = $counttomark(); //#2318 + $k[$j++] = _M7; //#2318 + if (_M7 > 0) { //#2318 + var _M8 = $k[--$j]; //#2318 + for (var _MA = _M8, _M9 = (~~(_M8 / 2)) + 1; _MA >= _M9; _MA -= 1) { //#2318 + $r(_MA, -1); //#2318 + } //#2318 + } else { //#2318 + $j--; //#2318 + } //#2318 + $astore($a(~~($counttomark() / 2))); //#2319 + $_.ais = $k[--$j]; //#2319 + $astore($a($counttomark())); //#2320 + $k[$j++] = Infinity; //#2320 + var _MG = $k[--$j]; //#2320 + var _MH = $k[--$j]; //#2320 + $k[$j++] = _MG; //#2322 + $forall(_MH, function() { //#2322 + var _MJ = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#2311 - $k[$j++] = _Hk; //#2311 - bwipp_parseinput(); //#2311 - }); //#2311 - $_.vals = $a(); //#2312 - $j--; //#2313 - } else { //#2473 - $anchorsearch($k[--$j], "http://"); //#2318 - if ($nt($k[--$j])) { //#2321 - $anchorsearch($k[--$j], "https://"); //#2319 - if ($nt($k[--$j])) { //#2321 - $j--; //#2320 - $k[$j++] = 'bwipp.GS1dlURIbadScheme#2320'; //#2320 - $k[$j++] = "Scheme must be http:// or https://"; //#2320 - bwipp_raiseerror(); //#2320 - } //#2320 - } //#2320 - $j--; //#2322 - $search($k[--$j], "/"); //#2325 - if ($nt($k[--$j])) { //#2327 - $j--; //#2326 - $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2326'; //#2326 - $k[$j++] = "URI must contain a domain and path info"; //#2326 - bwipp_raiseerror(); //#2326 - } //#2326 - $j -= 2; //#2328 - $search($k[--$j], "#"); //#2331 - if ($k[--$j]) { //#2333 - var _Hu = $k[--$j]; //#2332 - var _Hv = $k[--$j]; //#2332 - $k[$j++] = _Hu; //#2332 - $k[$j++] = _Hv; //#2332 - $j--; //#2332 - var _Hw = $k[--$j]; //#2332 - var _Hx = $k[--$j]; //#2332 - $k[$j++] = _Hw; //#2332 - $k[$j++] = _Hx; //#2332 - $j--; //#2332 - } //#2332 - $search($k[--$j], "?"); //#2336 - if ($nt($k[--$j])) { //#2338 - var _I0 = $k[--$j]; //#2337 - $k[$j++] = ""; //#2337 - $k[$j++] = null; //#2337 - $k[$j++] = _I0; //#2337 - } //#2337 - $_.pp = $k[--$j]; //#2339 - $j--; //#2340 - $_.qp = $k[--$j]; //#2341 - $k[$j++] = Infinity; //#2344 - $k[$j++] = 0; //#2348 - $k[$j++] = 0; //#2348 - $k[$j++] = $_.pp; //#2348 - for (;;) { //#2348 - $search($k[--$j], "/"); //#2346 - if ($nt($k[--$j])) { //#2346 - $j--; //#2346 - break; //#2346 - } //#2346 - var _I6 = $k[--$j]; //#2347 - var _I7 = $k[--$j]; //#2347 - $k[$j++] = _I6.length + 1; //#2347 - $k[$j++] = _I7; //#2347 - $j--; //#2347 - var _I8 = $k[--$j]; //#2347 - var _I9 = $k[--$j]; //#2347 - var _IA = $k[--$j]; //#2347 - $k[$j++] = _IA; //#2347 - $k[$j++] = $f(_I8 + _IA); //#2347 - $k[$j++] = _I9; //#2347 + ]); //#2321 + $k[$j++] = _MJ; //#2321 + bwipp_parseinput(); //#2321 + }); //#2321 + $_.vals = $a(); //#2322 + $j--; //#2323 + } else { //#2507 + $anchorsearch($k[--$j], "http://"); //#2328 + if ($nt($k[--$j])) { //#2331 + $anchorsearch($k[--$j], "https://"); //#2329 + if ($nt($k[--$j])) { //#2331 + $j--; //#2330 + $k[$j++] = 'bwipp.GS1dlURIbadScheme#2330'; //#2330 + $k[$j++] = "Scheme must be http:// or https://"; //#2330 + bwipp_raiseerror(); //#2330 + } //#2330 + } //#2330 + $j--; //#2332 + $search($k[--$j], "/"); //#2335 + if ($nt($k[--$j])) { //#2337 + $j--; //#2336 + $k[$j++] = 'bwipp.GS1dlMissingDomainOrPathInfo#2336'; //#2336 + $k[$j++] = "URI must contain a domain and path info"; //#2336 + bwipp_raiseerror(); //#2336 + } //#2336 + $j -= 2; //#2338 + $search($k[--$j], "#"); //#2341 + if ($k[--$j]) { //#2343 + var _MT = $k[--$j]; //#2342 + var _MU = $k[--$j]; //#2342 + $k[$j++] = _MT; //#2342 + $k[$j++] = _MU; //#2342 + $j--; //#2342 + var _MV = $k[--$j]; //#2342 + var _MW = $k[--$j]; //#2342 + $k[$j++] = _MV; //#2342 + $k[$j++] = _MW; //#2342 + $j--; //#2342 + } //#2342 + $search($k[--$j], "?"); //#2346 + if ($nt($k[--$j])) { //#2348 + var _MZ = $k[--$j]; //#2347 + $k[$j++] = ""; //#2347 + $k[$j++] = null; //#2347 + $k[$j++] = _MZ; //#2347 } //#2347 - $astore($a($counttomark() - 1)); //#2349 - $_.pipos = $k[--$j]; //#2349 - $j -= 2; //#2349 - if ($_.pipos.length <= 1) { //#2352 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2351'; //#2351 - $k[$j++] = "The path was too short to contain AI info"; //#2351 - bwipp_raiseerror(); //#2351 - } //#2351 - $k[$j++] = false; //#2368 - for (var _IG = $_.pipos.length - 2; _IG >= 0; _IG -= 2) { //#2368 - var _II = $get($_.pipos, _IG); //#2358 - var _IM = $geti($_.pp, _II, $f($f($get($_.pipos, _IG + 1) - _II) - 1)); //#2359 - var _IO = $get($_.gs1syntax, _IM) !== undefined; //#2360 - $k[$j++] = _IG; //#2366 - $k[$j++] = _IM; //#2366 - if (_IO) { //#2365 - var _IS = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2361 - if (_IS) { //#2363 - var _IT = $k[--$j]; //#2362 - var _IU = $k[--$j]; //#2362 - $k[$j++] = _IT; //#2362 - $k[$j++] = _IU; //#2362 - $j--; //#2362 - $k[$j++] = true; //#2362 - break; //#2362 - } //#2362 - } else { //#2365 - $j--; //#2365 - } //#2365 - $j--; //#2367 - } //#2367 - if ($nt($k[--$j])) { //#2371 - $k[$j++] = 'bwipp.GS1dlNoAIinfo#2370'; //#2370 - $k[$j++] = "The path does not contain a valid primary key"; //#2370 - bwipp_raiseerror(); //#2370 - } //#2370 - var _IY = $get($_.pipos, $k[--$j]); //#2372 - $_.pp = $geti($_.pp, _IY, $f($_.pp.length - _IY)); //#2372 + $_.pp = $k[--$j]; //#2349 + $j--; //#2350 + $_.qp = $k[--$j]; //#2351 + $k[$j++] = Infinity; //#2354 + $k[$j++] = 0; //#2358 + $k[$j++] = 0; //#2358 + $k[$j++] = $_.pp; //#2358 + for (;;) { //#2358 + $search($k[--$j], "/"); //#2356 + if ($nt($k[--$j])) { //#2356 + $j--; //#2356 + break; //#2356 + } //#2356 + var _Mf = $k[--$j]; //#2357 + var _Mg = $k[--$j]; //#2357 + $k[$j++] = _Mf.length + 1; //#2357 + $k[$j++] = _Mg; //#2357 + $j--; //#2357 + var _Mh = $k[--$j]; //#2357 + var _Mi = $k[--$j]; //#2357 + var _Mj = $k[--$j]; //#2357 + $k[$j++] = _Mj; //#2357 + $k[$j++] = $f(_Mh + _Mj); //#2357 + $k[$j++] = _Mi; //#2357 + } //#2357 + $astore($a($counttomark() - 1)); //#2359 + $_.pipos = $k[--$j]; //#2359 + $j -= 2; //#2359 + if ($_.pipos.length <= 1) { //#2362 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2361'; //#2361 + $k[$j++] = "The path was too short to contain AI info"; //#2361 + bwipp_raiseerror(); //#2361 + } //#2361 + $k[$j++] = false; //#2378 + for (var _Mp = $_.pipos.length - 2; _Mp >= 0; _Mp -= 2) { //#2378 + var _Mr = $get($_.pipos, _Mp); //#2368 + var _Mv = $geti($_.pp, _Mr, $f($f($get($_.pipos, _Mp + 1) - _Mr) - 1)); //#2369 + var _Mx = $get($_.gs1syntax, _Mv) !== undefined; //#2370 + $k[$j++] = _Mp; //#2376 + $k[$j++] = _Mv; //#2376 + if (_Mx) { //#2375 + var _N1 = $get($get($_.gs1syntax, $k[--$j]), 'dlpkey') !== undefined; //#2371 + if (_N1) { //#2373 + var _N2 = $k[--$j]; //#2372 + var _N3 = $k[--$j]; //#2372 + $k[$j++] = _N2; //#2372 + $k[$j++] = _N3; //#2372 + $j--; //#2372 + $k[$j++] = true; //#2372 + break; //#2372 + } //#2372 + } else { //#2375 + $j--; //#2375 + } //#2375 + $j--; //#2377 + } //#2377 + if ($nt($k[--$j])) { //#2381 + $k[$j++] = 'bwipp.GS1dlNoAIinfo#2380'; //#2380 + $k[$j++] = "The path does not contain a valid primary key"; //#2380 + bwipp_raiseerror(); //#2380 + } //#2380 + var _N7 = $get($_.pipos, $k[--$j]); //#2382 + $_.pp = $geti($_.pp, _N7, $f($_.pp.length - _N7)); //#2382 $_.uriunescape = function() { - $_.in = $k[--$j]; //#2375 - $_.out = $s($_.in.length); //#2376 - $k[$j++] = 0; //#2396 - $k[$j++] = 0; //#2396 - for (;;) { //#2396 - var _If = $k[--$j]; //#2378 - var _Ig = $k[--$j]; //#2378 - $k[$j++] = _Ig; //#2378 - $k[$j++] = _If; //#2378 - if (_Ig >= $_.in.length) { //#2378 - break; //#2378 - } //#2378 - var _Ij = $k[--$j]; //#2379 - var _Ik = $k[--$j]; //#2379 - var _Il = $get($_.in, _Ik); //#2379 - $k[$j++] = _Ik; //#2395 - $k[$j++] = _Ij; //#2395 - $k[$j++] = _Il; //#2395 - if (_Il == 43) { //#2394 - $j--; //#2381 - var _In = $k[--$j]; //#2381 - $put($_.out, _In, 32); //#2381 - var _Io = $k[--$j]; //#2382 - $k[$j++] = $f(_Io + 1); //#2382 - $k[$j++] = $f(_In + 1); //#2382 - } else { //#2394 - var _Ip = $k[--$j]; //#2384 - var _Iq = $k[--$j]; //#2384 - var _Ir = $k[--$j]; //#2384 - $k[$j++] = _Ir; //#2395 - $k[$j++] = _Iq; //#2395 - $k[$j++] = _Ip; //#2395 - if ((_Ip == 37) && (_Ir < ($_.in.length - 2))) { //#2394 - $j--; //#2385 - var _Iu = $strcpy($s(4), "< >"); //#2386 - var _Iw = $k[--$j]; //#2386 - var _Ix = $k[--$j]; //#2386 - $puti(_Iu, 1, $geti($_.in, $f(_Ix + 1), 2)); //#2386 - try { //#2387 - $k[$j++] = _Ix; //#2387 - $k[$j++] = _Iw; //#2387 - $k[$j++] = $cvx(_Iu); //#2387 + $_.qq = $k[--$j]; //#2385 + $_.in = $k[--$j]; //#2386 + $_.out = $s($_.in.length); //#2387 + $k[$j++] = 0; //#2407 + $k[$j++] = 0; //#2407 + for (;;) { //#2407 + var _NF = $k[--$j]; //#2389 + var _NG = $k[--$j]; //#2389 + $k[$j++] = _NG; //#2389 + $k[$j++] = _NF; //#2389 + if (_NG >= $_.in.length) { //#2389 + break; //#2389 + } //#2389 + var _NJ = $k[--$j]; //#2390 + var _NK = $k[--$j]; //#2390 + var _NL = $get($_.in, _NK); //#2390 + $k[$j++] = _NK; //#2406 + $k[$j++] = _NJ; //#2406 + $k[$j++] = _NL; //#2406 + if ((_NL == 43) && $_.qq) { //#2405 + $j--; //#2392 + var _NO = $k[--$j]; //#2392 + $put($_.out, _NO, 32); //#2392 + var _NP = $k[--$j]; //#2393 + $k[$j++] = $f(_NP + 1); //#2393 + $k[$j++] = $f(_NO + 1); //#2393 + } else { //#2405 + var _NQ = $k[--$j]; //#2395 + var _NR = $k[--$j]; //#2395 + var _NS = $k[--$j]; //#2395 + $k[$j++] = _NS; //#2406 + $k[$j++] = _NR; //#2406 + $k[$j++] = _NQ; //#2406 + if ((_NQ == 37) && (_NS < ($_.in.length - 2))) { //#2405 + $j--; //#2396 + var _NV = $strcpy($s(4), "< >"); //#2397 + var _NX = $k[--$j]; //#2397 + var _NY = $k[--$j]; //#2397 + $puti(_NV, 1, $geti($_.in, $f(_NY + 1), 2)); //#2397 + try { //#2398 + $k[$j++] = _NY; //#2398 + $k[$j++] = _NX; //#2398 + $k[$j++] = $cvx(_NV); //#2398 $k[$j++] = false } catch (e) { $k[$j++] = true - } //#2387 - if ($k[--$j]) { //#2389 - $j -= 2; //#2388 - $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2388'; //#2388 - $k[$j++] = "Invalid hex character"; //#2388 - bwipp_raiseerror(); //#2388 - } //#2388 - var _J1 = $get($k[--$j], 0); //#2390 - var _J3 = $k[--$j]; //#2390 - $put($_.out, _J3, _J1); //#2390 - var _J4 = $k[--$j]; //#2391 - $k[$j++] = $f(_J4 + 3); //#2391 - $k[$j++] = $f(_J3 + 1); //#2391 - } else { //#2394 - var _J6 = $k[--$j]; //#2393 - var _J7 = $k[--$j]; //#2393 - $put($_.out, _J7, _J6); //#2393 - var _J8 = $k[--$j]; //#2394 - $k[$j++] = $f(_J8 + 1); //#2394 - $k[$j++] = $f(_J7 + 1); //#2394 - } //#2394 - } //#2394 - } //#2394 - $_.out = $geti($_.out, 0, $k[--$j]); //#2397 - $j--; //#2398 - $k[$j++] = $_.out; //#2399 - }; //#2399 - $_.ais = $a(99); //#2402 - $_.vals = $a(99); //#2403 - $k[$j++] = 0; //#2417 - $k[$j++] = $_.pp; //#2417 - for (;;) { //#2417 - $search($k[--$j], "/"); //#2408 - if ($k[--$j]) { //#2414 - var _JJ = $k[--$j]; //#2409 - var _JK = $k[--$j]; //#2409 - var _JL = $k[--$j]; //#2409 - var _JM = $k[--$j]; //#2409 - $put($_.ais, _JM, _JJ); //#2409 - $k[$j++] = _JM; //#2411 - $search(_JL, "/"); //#2411 - if ($k[--$j]) { //#2411 - var _JO = $k[--$j]; //#2411 - var _JP = $k[--$j]; //#2411 - $k[$j++] = _JO; //#2411 - $k[$j++] = _JP; //#2411 - $j--; //#2411 - } else { //#2411 - var _JQ = $k[--$j]; //#2411 - $k[$j++] = ""; //#2411 - $k[$j++] = _JQ; //#2411 - } //#2411 - var _JS = $k[--$j]; //#2412 - var _JT = $k[--$j]; //#2412 - var _JU = $k[--$j]; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JT; //#2412 - $k[$j++] = $_.vals; //#2412 - $k[$j++] = _JU; //#2412 - $k[$j++] = _JS; //#2412 - $_.uriunescape(); //#2412 - var _JV = $k[--$j]; //#2412 - var _JW = $k[--$j]; //#2412 - $put($k[--$j], _JW, _JV); //#2412 - } else { //#2414 - $j--; //#2414 - break; //#2414 - } //#2414 - var _JY = $k[--$j]; //#2416 - var _JZ = $k[--$j]; //#2416 - $k[$j++] = $f(_JZ + 1); //#2416 - $k[$j++] = _JY; //#2416 - } //#2416 - var _Ja = $k[--$j]; //#2420 - $k[$j++] = _Ja; //#2438 - if (_Ja > 1) { //#2438 - $k[$j++] = false; //#2434 - $forall($get($get($_.gs1syntax, $get($_.ais, 0)), 'dlpkey'), function() { //#2434 - $_.seq = $k[--$j]; //#2423 - $_.i = 1; //#2424 - $_.j = 0; //#2424 - for (;;) { //#2432 - if ($_.i >= $_.ais.length) { //#2426 - break; //#2426 - } //#2426 - if ($_.j >= $_.seq.length) { //#2427 - break; //#2427 - } //#2427 - if ($eq($get($_.ais, $_.i), $get($_.seq, $_.j))) { //#2430 - $_.i = $_.i + 1; //#2429 - } //#2429 - $_.j = $_.j + 1; //#2431 - } //#2431 - var _Ju = $k[--$j]; //#2433 - var _Jv = $k[--$j]; //#2433 - $k[$j++] = _Jv; //#2433 - $k[$j++] = _Ju; //#2433 - if ($_.i == _Jv) { //#2433 - $j--; //#2433 - $k[$j++] = true; //#2433 - return true; //#2433 - } //#2433 - }); //#2433 - if ($nt($k[--$j])) { //#2437 - $j--; //#2436 - $k[$j++] = 'bwipp.GS1dlBadPathInfo#2436'; //#2436 - $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2436 - bwipp_raiseerror(); //#2436 - } //#2436 - } //#2436 - $k[$j++] = $_.qp; //#2456 - for (;;) { //#2456 - var _Jy = $k[--$j]; //#2442 - $k[$j++] = _Jy; //#2442 - if ($eq(_Jy, "")) { //#2442 - $j--; //#2442 - break; //#2442 - } //#2442 - $search($k[--$j], "&"); //#2443 + } //#2398 + if ($k[--$j]) { //#2400 + $j -= 2; //#2399 + $k[$j++] = 'bwipp.GS1dlBadHexCharacter#2399'; //#2399 + $k[$j++] = "Invalid hex character"; //#2399 + bwipp_raiseerror(); //#2399 + } //#2399 + var _Nc = $get($k[--$j], 0); //#2401 + var _Ne = $k[--$j]; //#2401 + $put($_.out, _Ne, _Nc); //#2401 + var _Nf = $k[--$j]; //#2402 + $k[$j++] = $f(_Nf + 3); //#2402 + $k[$j++] = $f(_Ne + 1); //#2402 + } else { //#2405 + var _Nh = $k[--$j]; //#2404 + var _Ni = $k[--$j]; //#2404 + $put($_.out, _Ni, _Nh); //#2404 + var _Nj = $k[--$j]; //#2405 + $k[$j++] = $f(_Nj + 1); //#2405 + $k[$j++] = $f(_Ni + 1); //#2405 + } //#2405 + } //#2405 + } //#2405 + $_.out = $geti($_.out, 0, $k[--$j]); //#2408 + $j--; //#2409 + $k[$j++] = $_.out; //#2410 + }; //#2410 + $_.isvaliddlpkeyseq = function() { + $_.in = $k[--$j]; //#2414 + $k[$j++] = false; //#2428 + $forall($get($get($_.gs1syntax, $get($_.in, 0)), 'dlpkey'), function() { //#2428 + $_.seq = $k[--$j]; //#2417 + $_.i = 1; //#2418 + $_.j = 0; //#2418 + for (;;) { //#2426 + if ($_.i >= $_.in.length) { //#2420 + break; //#2420 + } //#2420 + if ($_.j >= $_.seq.length) { //#2421 + break; //#2421 + } //#2421 + if ($eq($get($_.in, $_.i), $get($_.seq, $_.j))) { //#2424 + $_.i = $_.i + 1; //#2423 + } //#2423 + $_.j = $_.j + 1; //#2425 + } //#2425 + if ($_.i == $_.in.length) { //#2427 + $j--; //#2427 + $k[$j++] = true; //#2427 + return true; //#2427 + } //#2427 + }); //#2427 + }; //#2427 + $_.ais = $a(99); //#2431 + $_.vals = $a(99); //#2432 + $k[$j++] = 0; //#2446 + $k[$j++] = $_.pp; //#2446 + for (;;) { //#2446 + $search($k[--$j], "/"); //#2437 if ($k[--$j]) { //#2443 - var _K1 = $k[--$j]; //#2443 - var _K2 = $k[--$j]; //#2443 - $k[$j++] = _K1; //#2443 - $k[$j++] = _K2; //#2443 - $j--; //#2443 + var _OF = $k[--$j]; //#2438 + var _OG = $k[--$j]; //#2438 + var _OH = $k[--$j]; //#2438 + var _OI = $k[--$j]; //#2438 + $put($_.ais, _OI, _OF); //#2438 + $k[$j++] = _OI; //#2440 + $search(_OH, "/"); //#2440 + if ($k[--$j]) { //#2440 + var _OK = $k[--$j]; //#2440 + var _OL = $k[--$j]; //#2440 + $k[$j++] = _OK; //#2440 + $k[$j++] = _OL; //#2440 + $j--; //#2440 + } else { //#2440 + var _OM = $k[--$j]; //#2440 + $k[$j++] = ""; //#2440 + $k[$j++] = _OM; //#2440 + } //#2440 + var _OO = $k[--$j]; //#2441 + var _OP = $k[--$j]; //#2441 + var _OQ = $k[--$j]; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OP; //#2441 + $k[$j++] = $_.vals; //#2441 + $k[$j++] = _OQ; //#2441 + $k[$j++] = _OO; //#2441 + $k[$j++] = false; //#2441 + $_.uriunescape(); //#2441 + var _OR = $k[--$j]; //#2441 + var _OS = $k[--$j]; //#2441 + $put($k[--$j], _OS, _OR); //#2441 } else { //#2443 - var _K3 = $k[--$j]; //#2443 - $k[$j++] = ""; //#2443 - $k[$j++] = _K3; //#2443 + $j--; //#2443 + break; //#2443 } //#2443 - $search($k[--$j], "="); //#2444 - if ($k[--$j]) { //#2454 - var _K6 = $k[--$j]; //#2445 - $k[$j++] = _K6; //#2445 - $k[$j++] = true; //#2445 - $forall(_K6, function() { //#2445 - var _K7 = $k[--$j]; //#2445 - var _K8 = $k[--$j]; //#2445 - $k[$j++] = _K8 && ((_K7 >= 48) && (_K7 <= 57)); //#2445 - }); //#2445 - if ($k[--$j]) { //#2451 - var _KB = $k[--$j]; //#2446 - var _KC = $k[--$j]; //#2446 - var _KD = $k[--$j]; //#2446 - var _KE = $k[--$j]; //#2446 - var _KF = $k[--$j]; //#2446 - $put($_.ais, _KF, _KB); //#2446 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KE; //#2448 - $k[$j++] = $_.vals; //#2448 - $k[$j++] = _KF; //#2448 - $k[$j++] = _KD; //#2448 - $_.uriunescape(); //#2448 - var _KH = $k[--$j]; //#2448 - var _KI = $k[--$j]; //#2448 - $put($k[--$j], _KI, _KH); //#2448 - var _KK = $k[--$j]; //#2449 - var _KL = $k[--$j]; //#2449 - $k[$j++] = $f(_KL + 1); //#2449 - $k[$j++] = _KK; //#2449 - } else { //#2451 - $j -= 3; //#2451 - } //#2451 - } else { //#2454 - $j--; //#2454 - } //#2454 - } //#2454 - var _KN = $k[--$j]; //#2458 - $_.ais = $geti($_.ais, 0, _KN); //#2458 - $_.vals = $geti($_.vals, 0, _KN); //#2459 - for (var _KT = 0, _KS = $_.ais.length - 1; _KT <= _KS; _KT += 1) { //#2474 - $k[$j++] = _KT; //#2472 - if ($eq($get($_.ais, _KT), "01")) { //#2472 - var _KW = $k[--$j]; //#2465 - var _KY = $get($_.vals, _KW); //#2465 - var _KZ = _KY.length; //#2466 - $k[$j++] = _KW; //#2471 - $k[$j++] = _KY; //#2471 - if ((_KZ == 8) || ((_KZ == 12) || (_KZ == 13))) { //#2470 - var _Kb = $strcpy($s(14), "00000000000000"); //#2467 - var _Kc = $k[--$j]; //#2467 - $puti(_Kb, 14 - _Kc.length, _Kc); //#2467 - var _Ke = $k[--$j]; //#2468 - $put($_.vals, _Ke, _Kb); //#2468 - $k[$j++] = _Ke; //#2468 - } else { //#2470 - $j--; //#2470 - } //#2470 + var _OU = $k[--$j]; //#2445 + var _OV = $k[--$j]; //#2445 + $k[$j++] = $f(_OV + 1); //#2445 + $k[$j++] = _OU; //#2445 + } //#2445 + var _OW = $k[--$j]; //#2447 + $_.plen = _OW; //#2447 + $k[$j++] = _OW; //#2454 + if (_OW > 1) { //#2454 + $k[$j++] = $geti($_.ais, 0, $_.plen); //#2451 + $_.isvaliddlpkeyseq(); //#2451 + if ($nt($k[--$j])) { //#2453 + $j--; //#2452 + $k[$j++] = 'bwipp.GS1dlBadPathInfo#2452'; //#2452 + $k[$j++] = "The AIs in the path are not a valid key-qualifier sequence for the key"; //#2452 + bwipp_raiseerror(); //#2452 + } //#2452 + } //#2452 + $k[$j++] = $_.qp; //#2472 + for (;;) { //#2472 + var _Oc = $k[--$j]; //#2458 + $k[$j++] = _Oc; //#2458 + if ($eq(_Oc, "")) { //#2458 + $j--; //#2458 + break; //#2458 + } //#2458 + $search($k[--$j], "&"); //#2459 + if ($k[--$j]) { //#2459 + var _Of = $k[--$j]; //#2459 + var _Og = $k[--$j]; //#2459 + $k[$j++] = _Of; //#2459 + $k[$j++] = _Og; //#2459 + $j--; //#2459 + } else { //#2459 + var _Oh = $k[--$j]; //#2459 + $k[$j++] = ""; //#2459 + $k[$j++] = _Oh; //#2459 + } //#2459 + $search($k[--$j], "="); //#2460 + if ($k[--$j]) { //#2470 + var _Ok = $k[--$j]; //#2461 + $k[$j++] = _Ok; //#2461 + $k[$j++] = true; //#2461 + $forall(_Ok, function() { //#2461 + var _Ol = $k[--$j]; //#2461 + var _Om = $k[--$j]; //#2461 + $k[$j++] = _Om && ((_Ol >= 48) && (_Ol <= 57)); //#2461 + }); //#2461 + if ($k[--$j]) { //#2467 + var _Op = $k[--$j]; //#2462 + var _Oq = $k[--$j]; //#2462 + var _Or = $k[--$j]; //#2462 + var _Os = $k[--$j]; //#2462 + var _Ot = $k[--$j]; //#2462 + $put($_.ais, _Ot, _Op); //#2462 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Os; //#2464 + $k[$j++] = $_.vals; //#2464 + $k[$j++] = _Ot; //#2464 + $k[$j++] = _Or; //#2464 + $k[$j++] = true; //#2464 + $_.uriunescape(); //#2464 + var _Ov = $k[--$j]; //#2464 + var _Ow = $k[--$j]; //#2464 + $put($k[--$j], _Ow, _Ov); //#2464 + var _Oy = $k[--$j]; //#2465 + var _Oz = $k[--$j]; //#2465 + $k[$j++] = $f(_Oz + 1); //#2465 + $k[$j++] = _Oy; //#2465 + } else { //#2467 + $j -= 3; //#2467 + } //#2467 + } else { //#2470 + $j--; //#2470 } //#2470 - $j--; //#2473 - } //#2473 - } //#2473 - if (!bwipp_gs1process.__2487__) { //#2487 - $_ = Object.create($_); //#2487 - $k[$j++] = Infinity; //#2486 - var _Kf = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2485 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#2486 - var _Ki = $get(_Kf, _Kg); //#2486 - $k[$j++] = _Ki; //#2486 - $k[$j++] = _Ki; //#2486 - } //#2486 - $_.aifixed = $d(); //#2486 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2486 - bwipp_gs1process.__2487__ = 1; //#2486 - $_ = Object.getPrototypeOf($_); //#2486 - } //#2486 - $k[$j++] = Infinity; //#2495 - var _Kl = $_.ais; //#2490 - for (var _Km = 0, _Kn = _Kl.length; _Km < _Kn; _Km++) { //#2497 - var _Ko = $get(_Kl, _Km); //#2497 - $k[$j++] = true; //#2496 - $k[$j++] = _Ko; //#2496 - if (_Ko.length >= 2) { //#2495 - var _Ks = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2493 - if (_Ks) { //#2493 - $j--; //#2493 - $k[$j++] = false; //#2493 - } //#2493 - } else { //#2495 - $j--; //#2495 - } //#2495 - } //#2495 - $_.fncs = $a(); //#2495 - $_.lintnumeric = function() { - var _Ku = $k[--$j]; //#2504 - $k[$j++] = true; //#2506 - $forall(_Ku, function() { //#2506 - var _Kv = $k[--$j]; //#2505 - if ((_Kv < 48) || (_Kv > 57)) { //#2505 - $j--; //#2505 - $k[$j++] = false; //#2505 - return true; //#2505 - } //#2505 - }); //#2505 - if ($nt($k[--$j])) { //#2507 + } //#2470 + var _P2 = $k[--$j]; //#2475 + var _P4 = $geti($_.ais, $_.plen, $f(_P2 - $_.plen)); //#2475 + $k[$j++] = _P2; //#2490 + for (var _P5 = 0, _P6 = _P4.length; _P5 < _P6; _P5++) { //#2490 + $k[$j++] = $get(_P4, _P5); //#2488 + for (var _P9 = $_.plen; _P9 >= 1; _P9 -= 1) { //#2488 + var _PA = $k[--$j]; //#2477 + $k[$j++] = _PA; //#2479 + $k[$j++] = _P9; //#2479 + $k[$j++] = _PA; //#2479 + $k[$j++] = Infinity; //#2477 + $aload($geti($_.ais, 0, $_.plen)); //#2478 + $r($counttomark() + 3, -2); //#2479 + var _PF = $k[--$j]; //#2479 + var _PG = $k[--$j]; //#2479 + $k[$j++] = _PF; //#2479 + $r(_PG, 1); //#2479 + var _PH = $a(); //#2479 + $k[$j++] = _PH; //#2480 + $_.isvaliddlpkeyseq(); //#2480 + if ($k[--$j]) { //#2487 + var _PJ = $k[--$j]; //#2481 + var _PK = $k[--$j]; //#2481 + $k[$j++] = _PJ; //#2481 + $k[$j++] = _PK; //#2481 + $j--; //#2481 + var _PL = $k[--$j]; //#2482 + var _PM = _PL.length; //#2482 + var _PN = $s(_PM + 50); //#2482 + $puti(_PN, 0, "AI ("); //#2483 + $puti(_PN, 4, _PL); //#2484 + $puti(_PN, _PM + 4, ") from query params should be in the path info"); //#2485 + $k[$j++] = _PL; //#2486 + $k[$j++] = _PN; //#2486 + $k[$j++] = _PM; //#2486 + $j--; //#2486 + var _PO = $k[--$j]; //#2486 + var _PP = $k[--$j]; //#2486 + $k[$j++] = _PO; //#2486 + $k[$j++] = _PP; //#2486 + $j--; //#2486 + var _PQ = $k[--$j]; //#2486 + $k[$j++] = 'bwipp.GS1dlAttributeMustBeQualifier#2486'; //#2486 + $k[$j++] = _PQ; //#2486 + bwipp_raiseerror(); //#2486 + } //#2486 + } //#2486 + $j--; //#2489 + } //#2489 + var _PS = $k[--$j]; //#2492 + $_.ais = $geti($_.ais, 0, _PS); //#2492 + $_.vals = $geti($_.vals, 0, _PS); //#2493 + for (var _PY = 0, _PX = $_.ais.length - 1; _PY <= _PX; _PY += 1) { //#2508 + $k[$j++] = _PY; //#2506 + if ($eq($get($_.ais, _PY), "01")) { //#2506 + var _Pb = $k[--$j]; //#2499 + var _Pd = $get($_.vals, _Pb); //#2499 + var _Pe = _Pd.length; //#2500 + $k[$j++] = _Pb; //#2505 + $k[$j++] = _Pd; //#2505 + if ((_Pe == 8) || ((_Pe == 12) || (_Pe == 13))) { //#2504 + var _Pg = $strcpy($s(14), "00000000000000"); //#2501 + var _Ph = $k[--$j]; //#2501 + $puti(_Pg, 14 - _Ph.length, _Ph); //#2501 + var _Pj = $k[--$j]; //#2502 + $put($_.vals, _Pj, _Pg); //#2502 + $k[$j++] = _Pj; //#2502 + } else { //#2504 + $j--; //#2504 + } //#2504 + } //#2504 $j--; //#2507 - $k[$j++] = 'bwipp.GS1notNumeric#2507'; //#2507 - $k[$j++] = "Not numeric"; //#2507 - $k[$j++] = false; //#2507 - return true; //#2507 } //#2507 - }; //#2507 - $_.lintcset82 = function() { - var _Kx = $k[--$j]; //#2511 - $k[$j++] = true; //#2516 - $forall(_Kx, function() { //#2516 - var _Ky = $s(1); //#2512 - $put(_Ky, 0, $k[--$j]); //#2512 - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Ky); //#2514 - if ($nt($k[--$j])) { //#2514 - $j -= 2; //#2514 - $k[$j++] = false; //#2514 - return true; //#2514 - } //#2514 - $j -= 3; //#2515 - }); //#2515 - if ($nt($k[--$j])) { //#2517 - $j--; //#2517 - $k[$j++] = 'bwipp.GS1badCSET82character#2517'; //#2517 - $k[$j++] = "Invalid CSET 82 character"; //#2517 - $k[$j++] = false; //#2517 - return true; //#2517 - } //#2517 - }; //#2517 - $_.lintcset39 = function() { - var _L2 = $k[--$j]; //#2521 - $k[$j++] = true; //#2526 - $forall(_L2, function() { //#2526 - var _L3 = $s(1); //#2522 - $put(_L3, 0, $k[--$j]); //#2522 - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _L3); //#2524 - if ($nt($k[--$j])) { //#2524 - $j -= 2; //#2524 - $k[$j++] = false; //#2524 - return true; //#2524 - } //#2524 - $j -= 3; //#2525 - }); //#2525 - if ($nt($k[--$j])) { //#2527 - $j--; //#2527 - $k[$j++] = 'bwipp.GS1badCSET39character#2527'; //#2527 - $k[$j++] = "Invalid CSET 39 character"; //#2527 - $k[$j++] = false; //#2527 - return true; //#2527 - } //#2527 - }; //#2527 - $_.lintkey = function() { - var _L7 = $k[--$j]; //#2531 - $k[$j++] = _L7; //#2531 - if (_L7.length < 2) { //#2531 - $j -= 2; //#2531 - $k[$j++] = 'bwipp.GS1keyTooShort#2531'; //#2531 - $k[$j++] = "Key is too short"; //#2531 - $k[$j++] = false; //#2531 - return true; //#2531 - } //#2531 - var _L8 = $k[--$j]; //#2532 - var _L9 = $get(_L8, 0); //#2532 - var _LA = $get(_L8, 1); //#2533 - if (((_L9 < 48) || (_L9 > 57)) || ((_LA < 48) || (_LA > 57))) { //#2535 - $j--; //#2534 - $k[$j++] = 'bwipp.GS1badGCP#2534'; //#2534 - $k[$j++] = "Non-numeric company prefix"; //#2534 - $k[$j++] = false; //#2534 - return true; //#2534 - } //#2534 - }; //#2534 - $_.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2540 - if ($nt($k[--$j])) { //#2540 - $j -= 2; //#2540 - $k[$j++] = 'bwipp.GS1badImporterIndex#2540'; //#2540 - $k[$j++] = "Invalid importer index"; //#2540 - $k[$j++] = false; //#2540 - return true; //#2540 - } //#2540 - $j -= 3; //#2541 - }; //#2541 - $_.lintcsum = function() { - $k[$j++] = Infinity; //#2545 - var _LD = $k[--$j]; //#2545 - var _LE = $k[--$j]; //#2545 - var _LF = ((_LE.length % 2) == 0) ? 3 : 1; //#2546 - $k[$j++] = _LD; //#2547 - $k[$j++] = _LF; //#2547 - $forall(_LE, function() { //#2547 - var _LG = $k[--$j]; //#2547 - var _LH = $k[--$j]; //#2547 - $k[$j++] = $f(_LG - 48) * _LH; //#2547 - $k[$j++] = $f(4 - _LH); //#2547 - }); //#2547 - $j--; //#2547 - var _LI = $counttomark() + 1; //#2548 - $k[$j++] = 0; //#2548 - for (var _LJ = 0, _LK = _LI - 1; _LJ < _LK; _LJ++) { //#2548 - var _LL = $k[--$j]; //#2548 - var _LM = $k[--$j]; //#2548 - $k[$j++] = $f(_LM + _LL); //#2548 - } //#2548 - var _LN = $k[--$j]; //#2548 - var _LO = $k[--$j]; //#2548 - $k[$j++] = _LN; //#2548 - $k[$j++] = _LO; //#2548 - $j--; //#2548 - if (($k[--$j] % 10) != 0) { //#2549 - $j--; //#2549 - $k[$j++] = 'bwipp.GS1badChecksum#2549'; //#2549 - $k[$j++] = "Bad checksum"; //#2549 - $k[$j++] = false; //#2549 - return true; //#2549 + } //#2507 + if (!bwipp_gs1process.__2521__) { //#2521 + $_ = Object.create($_); //#2521 + $k[$j++] = Infinity; //#2514 + var _Pk = $a(["00", "01", "02", "03", "04", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "31", "32", "33", "34", "35", "36", "41"]); //#2519 + for (var _Pl = 0, _Pm = _Pk.length; _Pl < _Pm; _Pl++) { //#2520 + var _Pn = $get(_Pk, _Pl); //#2520 + $k[$j++] = _Pn; //#2520 + $k[$j++] = _Pn; //#2520 + } //#2520 + $_.aifixed = $d(); //#2520 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2520 + bwipp_gs1process.__2521__ = 1; //#2520 + $_ = Object.getPrototypeOf($_); //#2520 + } //#2520 + $k[$j++] = Infinity; //#2523 + var _Pq = $_.ais; //#2524 + for (var _Pr = 0, _Ps = _Pq.length; _Pr < _Ps; _Pr++) { //#2531 + var _Pt = $get(_Pq, _Pr); //#2531 + $k[$j++] = true; //#2530 + $k[$j++] = _Pt; //#2530 + if (_Pt.length >= 2) { //#2529 + var _Px = $get($_.aifixed, $geti($k[--$j], 0, 2)) !== undefined; //#2527 + if (_Px) { //#2527 + $j--; //#2527 + $k[$j++] = false; //#2527 + } //#2527 + } else { //#2529 + $j--; //#2529 + } //#2529 + } //#2529 + $_.fncs = $a(); //#2529 + if (!bwipp_gs1process.__2556__) { //#2556 + $_ = Object.create($_); //#2556 + $k[$j++] = Infinity; //#2537 + $k[$j++] = 0; //#2539 + for (var _Pz = 0, _Q0 = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Pz < _Q0; _Pz++) { //#2539 + var _Q2 = $k[--$j]; //#2539 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Pz); //#2539 + $k[$j++] = _Q2; //#2539 + $k[$j++] = $f(_Q2 + 1); //#2539 + } //#2539 + $j--; //#2539 + $_.cset82 = $d(); //#2540 + $k[$j++] = Infinity; //#2542 + $k[$j++] = 0; //#2544 + for (var _Q4 = 0, _Q5 = "#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".length; _Q4 < _Q5; _Q4++) { //#2544 + var _Q7 = $k[--$j]; //#2544 + $k[$j++] = $get("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _Q4); //#2544 + $k[$j++] = _Q7; //#2544 + $k[$j++] = $f(_Q7 + 1); //#2544 + } //#2544 + $j--; //#2544 + $_.cset39 = $d(); //#2545 + $k[$j++] = Infinity; //#2547 + $k[$j++] = 0; //#2549 + for (var _Q9 = 0, _QA = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _Q9 < _QA; _Q9++) { //#2549 + var _QC = $k[--$j]; //#2549 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _Q9); //#2549 + $k[$j++] = _QC; //#2549 + $k[$j++] = $f(_QC + 1); //#2549 } //#2549 - }; //#2549 - if (!bwipp_gs1process.__2562__) { //#2562 - $_ = Object.create($_); //#2562 - $k[$j++] = Infinity; //#2555 - $k[$j++] = 0; //#2555 - for (var _LQ = 0, _LR = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _LQ < _LR; _LQ++) { //#2555 - var _LT = $k[--$j]; //#2555 - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _LQ); //#2555 - $k[$j++] = _LT; //#2555 - $k[$j++] = $f(_LT + 1); //#2555 - } //#2555 - $j--; //#2555 - $_.cset82 = $d(); //#2556 - $k[$j++] = Infinity; //#2560 - $k[$j++] = 0; //#2560 - for (var _LV = 0, _LW = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _LV < _LW; _LV++) { //#2560 - var _LY = $k[--$j]; //#2560 - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _LV); //#2560 - $k[$j++] = _LY; //#2560 - $k[$j++] = $f(_LY + 1); //#2560 + $j--; //#2549 + $_.cset32 = $d(); //#2550 + $k[$j++] = Infinity; //#2552 + $k[$j++] = 0; //#2554 + for (var _QE = 0, _QF = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".length; _QE < _QF; _QE++) { //#2554 + var _QH = $k[--$j]; //#2554 + $k[$j++] = $get("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_", _QE); //#2554 + $k[$j++] = _QH; //#2554 + $k[$j++] = $f(_QH + 1); //#2554 + } //#2554 + $j--; //#2554 + $_.cset64 = $d(); //#2555 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2555 + bwipp_gs1process.__2556__ = 1; //#2555 + $_ = Object.getPrototypeOf($_); //#2555 + } //#2555 + $_.lintnumeric = function() { + var _QK = $k[--$j]; //#2559 + $k[$j++] = true; //#2559 + $forall(_QK, function() { //#2559 + var _QL = $k[--$j]; //#2559 + if ((_QL < 48) || (_QL > 57)) { //#2559 + $j--; //#2559 + $k[$j++] = false; //#2559 + return true; //#2559 + } //#2559 + }); //#2559 + if ($nt($k[--$j])) { //#2560 + $j--; //#2560 + $k[$j++] = 'bwipp.GS1notNumeric#2560'; //#2560 + $k[$j++] = "Not numeric"; //#2560 + $k[$j++] = false; //#2560 + return true; //#2560 } //#2560 - $j--; //#2560 - $_.cset32 = $d(); //#2561 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2561 - bwipp_gs1process.__2562__ = 1; //#2561 - $_ = Object.getPrototypeOf($_); //#2561 - } //#2561 - $_.lintcsumalpha = function() { - var _Lb = $k[--$j]; //#2565 - $k[$j++] = _Lb; //#2565 - if (_Lb.length < 2) { //#2565 - $j -= 2; //#2565 - $k[$j++] = 'bwipp.GS1alphaTooShort#2565'; //#2565 - $k[$j++] = "Alphanumeric string is too short to check"; //#2565 + }; //#2560 + $_.lintcset82 = function() { + var _QN = $k[--$j]; //#2564 + $k[$j++] = true; //#2564 + $forall(_QN, function() { //#2564 + var _QQ = $get($_.cset82, $k[--$j]) !== undefined; //#2564 + if (!_QQ) { //#2564 + $j--; //#2564 + $k[$j++] = false; //#2564 + return true; //#2564 + } //#2564 + }); //#2564 + if ($nt($k[--$j])) { //#2565 + $j--; //#2565 + $k[$j++] = 'bwipp.GS1badCSET82character#2565'; //#2565 + $k[$j++] = "Invalid CSET 82 character"; //#2565 $k[$j++] = false; //#2565 return true; //#2565 } //#2565 - var _Lc = $k[--$j]; //#2566 - $k[$j++] = _Lc; //#2568 - $k[$j++] = _Lc.length - 2; //#2568 - $k[$j++] = $geti(_Lc, 0, _Lc.length - 2); //#2568 - $k[$j++] = Infinity; //#2568 - var _Le = $k[--$j]; //#2568 - var _Lf = $k[--$j]; //#2568 - $k[$j++] = _Le; //#2570 - $forall(_Lf, function() { //#2570 - var _Lg = $k[--$j]; //#2569 - var _Li = $get($_.cset82, _Lg) !== undefined; //#2569 - $k[$j++] = _Lg; //#2569 - if (_Li) { //#2569 - var _Ll = $get($_.cset82, $k[--$j]); //#2569 - $k[$j++] = _Ll; //#2569 - } else { //#2569 - $k[$j++] = -1; //#2569 + }; //#2565 + $_.lintcset39 = function() { + var _QS = $k[--$j]; //#2569 + $k[$j++] = true; //#2569 + $forall(_QS, function() { //#2569 + var _QV = $get($_.cset39, $k[--$j]) !== undefined; //#2569 + if (!_QV) { //#2569 + $j--; //#2569 + $k[$j++] = false; //#2569 return true; //#2569 } //#2569 }); //#2569 - var _Lm = $k[--$j]; //#2571 - $k[$j++] = _Lm; //#2571 - if (_Lm == -1) { //#2571 - $cleartomark(); //#2571 - $j -= 3; //#2571 - $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2571'; //#2571 - $k[$j++] = "Unknown CSET 82 character"; //#2571 - $k[$j++] = false; //#2571 - return true; //#2571 - } //#2571 - $astore($a($counttomark())); //#2572 - var _Lp = $k[--$j]; //#2572 - var _Lq = $k[--$j]; //#2572 - $k[$j++] = _Lp; //#2572 - $k[$j++] = _Lq; //#2572 - $j--; //#2572 - var _Lr = $k[--$j]; //#2573 - var _Ls = $k[--$j]; //#2573 - var _Lu = $geti($k[--$j], _Ls, 2); //#2574 - $k[$j++] = _Lr; //#2574 - $k[$j++] = _Lu; //#2574 - $k[$j++] = Infinity; //#2574 - var _Lv = $k[--$j]; //#2574 - var _Lw = $k[--$j]; //#2574 - $k[$j++] = _Lv; //#2576 - $forall(_Lw, function() { //#2576 - var _Lx = $k[--$j]; //#2575 - var _Lz = $get($_.cset32, _Lx) !== undefined; //#2575 - $k[$j++] = _Lx; //#2575 - if (_Lz) { //#2575 - var _M2 = $get($_.cset32, $k[--$j]); //#2575 - $k[$j++] = _M2; //#2575 - } else { //#2575 - $k[$j++] = -1; //#2575 + if ($nt($k[--$j])) { //#2570 + $j--; //#2570 + $k[$j++] = 'bwipp.GS1badCSET39character#2570'; //#2570 + $k[$j++] = "Invalid CSET 39 character"; //#2570 + $k[$j++] = false; //#2570 + return true; //#2570 + } //#2570 + }; //#2570 + $_.lintcset64 = function() { + var _QX = $k[--$j]; //#2575 + $k[$j++] = true; //#2575 + $forall(_QX, function() { //#2575 + var _QY = $k[--$j]; //#2575 + var _Qa = $get($_.cset64, _QY) !== undefined; //#2575 + if ((!_Qa) && (_QY != 61)) { //#2575 + $j--; //#2575 + $k[$j++] = false; //#2575 return true; //#2575 } //#2575 }); //#2575 - var _M3 = $k[--$j]; //#2577 - $k[$j++] = _M3; //#2577 - if (_M3 == -1) { //#2577 - $cleartomark(); //#2577 - $j -= 2; //#2577 - $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2577'; //#2577 - $k[$j++] = "Unknown CSET 32 character"; //#2577 - $k[$j++] = false; //#2577 - return true; //#2577 - } //#2577 - $astore($a($counttomark())); //#2578 - var _M6 = $k[--$j]; //#2578 - var _M7 = $k[--$j]; //#2578 - $k[$j++] = _M6; //#2578 - $k[$j++] = _M7; //#2578 - $j--; //#2578 - var _M8 = $k[--$j]; //#2579 - var _MB = $k[--$j]; //#2579 - var _MC = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2580 - var _MD = _MB.length; //#2582 - $k[$j++] = $f(($get(_M8, 0) << 5) + $get(_M8, 1)); //#2582 - $k[$j++] = _MB; //#2582 - $k[$j++] = _MC; //#2582 - $k[$j++] = _MD; //#2582 - if (_MD > _MC.length) { //#2582 - $j -= 5; //#2582 - $k[$j++] = 'bwipp.GS1alphaTooLong#2582'; //#2582 - $k[$j++] = "Alphanumeric string is too long to check"; //#2582 - $k[$j++] = false; //#2582 - return true; //#2582 - } //#2582 - var _ME = $k[--$j]; //#2583 - var _MG = $geti($k[--$j], 0, _ME); //#2583 - for (var _MH = 0, _MI = _MG.length; _MH < _MI; _MH++) { //#2583 - var _MK = $k[--$j]; //#2583 - $k[$j++] = $get(_MG, _MH); //#2583 - $k[$j++] = _MK; //#2583 + if ($nt($k[--$j])) { //#2576 + $j--; //#2576 + $k[$j++] = 'bwipp.GS1badCSET64character#2576'; //#2576 + $k[$j++] = "Invalid CSET 64 character"; //#2576 + $k[$j++] = false; //#2576 + return true; //#2576 + } //#2576 + }; //#2576 + $_.lintkey = function() { + var _Qc = $k[--$j]; //#2580 + $k[$j++] = _Qc; //#2580 + if (_Qc.length < 2) { //#2580 + $j -= 2; //#2580 + $k[$j++] = 'bwipp.GS1keyTooShort#2580'; //#2580 + $k[$j++] = "Key is too short"; //#2580 + $k[$j++] = false; //#2580 + return true; //#2580 + } //#2580 + var _Qd = $k[--$j]; //#2581 + var _Qe = $get(_Qd, 0); //#2581 + var _Qf = $get(_Qd, 1); //#2582 + if (((_Qe < 48) || (_Qe > 57)) || ((_Qf < 48) || (_Qf > 57))) { //#2584 + $j--; //#2583 + $k[$j++] = 'bwipp.GS1badGCP#2583'; //#2583 + $k[$j++] = "Non-numeric company prefix"; //#2583 + $k[$j++] = false; //#2583 + return true; //#2583 } //#2583 - var _ML = $k[--$j]; //#2584 - $k[$j++] = 0; //#2584 - $forall(_ML, function() { //#2584 - var _MM = $k[--$j]; //#2584 - var _MN = $k[--$j]; //#2584 - var _MO = $k[--$j]; //#2584 - $k[$j++] = $f(_MN + (_MO * _MM)); //#2584 - }); //#2584 - var _MP = $k[--$j]; //#2584 - if ($k[--$j] != (_MP % 1021)) { //#2585 - $j--; //#2585 - $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2585'; //#2585 - $k[$j++] = "Bad alphanumeric check characters"; //#2585 - $k[$j++] = false; //#2585 - return true; //#2585 - } //#2585 - }; //#2585 - if (!bwipp_gs1process.__2609__) { //#2609 - $_ = Object.create($_); //#2609 - $k[$j++] = Infinity; //#2608 - var _MR = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2607 - for (var _MS = 0, _MT = _MR.length; _MS < _MT; _MS++) { //#2608 - var _MU = $get(_MR, _MS); //#2608 - $k[$j++] = _MU; //#2608 - $k[$j++] = _MU; //#2608 + }; //#2583 + $_.lintimporteridx = function() { + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#2589 + if ($nt($k[--$j])) { //#2589 + $j -= 2; //#2589 + $k[$j++] = 'bwipp.GS1badImporterIndex#2589'; //#2589 + $k[$j++] = "Invalid importer index"; //#2589 + $k[$j++] = false; //#2589 + return true; //#2589 + } //#2589 + $j -= 3; //#2590 + }; //#2590 + $_.lintcsum = function() { + $k[$j++] = Infinity; //#2594 + var _Qi = $k[--$j]; //#2594 + var _Qj = $k[--$j]; //#2594 + var _Qk = ((_Qj.length % 2) == 0) ? 3 : 1; //#2595 + $k[$j++] = _Qi; //#2596 + $k[$j++] = _Qk; //#2596 + $forall(_Qj, function() { //#2596 + var _Ql = $k[--$j]; //#2596 + var _Qm = $k[--$j]; //#2596 + $k[$j++] = $f(_Ql - 48) * _Qm; //#2596 + $k[$j++] = $f(4 - _Qm); //#2596 + }); //#2596 + $j--; //#2596 + var _Qn = $counttomark() + 1; //#2597 + $k[$j++] = 0; //#2597 + for (var _Qo = 0, _Qp = _Qn - 1; _Qo < _Qp; _Qo++) { //#2597 + var _Qq = $k[--$j]; //#2597 + var _Qr = $k[--$j]; //#2597 + $k[$j++] = $f(_Qr + _Qq); //#2597 + } //#2597 + var _Qs = $k[--$j]; //#2597 + var _Qt = $k[--$j]; //#2597 + $k[$j++] = _Qs; //#2597 + $k[$j++] = _Qt; //#2597 + $j--; //#2597 + if (($k[--$j] % 10) != 0) { //#2598 + $j--; //#2598 + $k[$j++] = 'bwipp.GS1badChecksum#2598'; //#2598 + $k[$j++] = "Bad checksum"; //#2598 + $k[$j++] = false; //#2598 + return true; //#2598 + } //#2598 + }; //#2598 + $_.lintcsumalpha = function() { + var _Qv = $k[--$j]; //#2602 + $k[$j++] = _Qv; //#2602 + if (_Qv.length < 2) { //#2602 + $j -= 2; //#2602 + $k[$j++] = 'bwipp.GS1alphaTooShort#2602'; //#2602 + $k[$j++] = "Alphanumeric string is too short to check"; //#2602 + $k[$j++] = false; //#2602 + return true; //#2602 + } //#2602 + var _Qw = $k[--$j]; //#2603 + $k[$j++] = _Qw; //#2605 + $k[$j++] = _Qw.length - 2; //#2605 + $k[$j++] = $geti(_Qw, 0, _Qw.length - 2); //#2605 + $k[$j++] = Infinity; //#2605 + var _Qy = $k[--$j]; //#2605 + var _Qz = $k[--$j]; //#2605 + $k[$j++] = _Qy; //#2607 + $forall(_Qz, function() { //#2607 + var _R0 = $k[--$j]; //#2606 + var _R2 = $get($_.cset82, _R0) !== undefined; //#2606 + $k[$j++] = _R0; //#2606 + if (_R2) { //#2606 + var _R5 = $get($_.cset82, $k[--$j]); //#2606 + $k[$j++] = _R5; //#2606 + } else { //#2606 + $k[$j++] = -1; //#2606 + return true; //#2606 + } //#2606 + }); //#2606 + var _R6 = $k[--$j]; //#2608 + $k[$j++] = _R6; //#2608 + if (_R6 == -1) { //#2608 + $cleartomark(); //#2608 + $j -= 3; //#2608 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character#2608'; //#2608 + $k[$j++] = "Unknown CSET 82 character"; //#2608 + $k[$j++] = false; //#2608 + return true; //#2608 } //#2608 - $_.iso3166 = $d(); //#2608 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2608 - bwipp_gs1process.__2609__ = 1; //#2608 - $_ = Object.getPrototypeOf($_); //#2608 - } //#2608 + $astore($a($counttomark())); //#2609 + var _R9 = $k[--$j]; //#2609 + var _RA = $k[--$j]; //#2609 + $k[$j++] = _R9; //#2609 + $k[$j++] = _RA; //#2609 + $j--; //#2609 + var _RB = $k[--$j]; //#2610 + var _RC = $k[--$j]; //#2610 + var _RE = $geti($k[--$j], _RC, 2); //#2611 + $k[$j++] = _RB; //#2611 + $k[$j++] = _RE; //#2611 + $k[$j++] = Infinity; //#2611 + var _RF = $k[--$j]; //#2611 + var _RG = $k[--$j]; //#2611 + $k[$j++] = _RF; //#2613 + $forall(_RG, function() { //#2613 + var _RH = $k[--$j]; //#2612 + var _RJ = $get($_.cset32, _RH) !== undefined; //#2612 + $k[$j++] = _RH; //#2612 + if (_RJ) { //#2612 + var _RM = $get($_.cset32, $k[--$j]); //#2612 + $k[$j++] = _RM; //#2612 + } else { //#2612 + $k[$j++] = -1; //#2612 + return true; //#2612 + } //#2612 + }); //#2612 + var _RN = $k[--$j]; //#2614 + $k[$j++] = _RN; //#2614 + if (_RN == -1) { //#2614 + $cleartomark(); //#2614 + $j -= 2; //#2614 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character#2614'; //#2614 + $k[$j++] = "Unknown CSET 32 character"; //#2614 + $k[$j++] = false; //#2614 + return true; //#2614 + } //#2614 + $astore($a($counttomark())); //#2615 + var _RQ = $k[--$j]; //#2615 + var _RR = $k[--$j]; //#2615 + $k[$j++] = _RQ; //#2615 + $k[$j++] = _RR; //#2615 + $j--; //#2615 + var _RS = $k[--$j]; //#2616 + var _RV = $k[--$j]; //#2616 + var _RW = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#2617 + var _RX = _RV.length; //#2619 + $k[$j++] = $f(($get(_RS, 0) << 5) + $get(_RS, 1)); //#2619 + $k[$j++] = _RV; //#2619 + $k[$j++] = _RW; //#2619 + $k[$j++] = _RX; //#2619 + if (_RX > _RW.length) { //#2619 + $j -= 5; //#2619 + $k[$j++] = 'bwipp.GS1alphaTooLong#2619'; //#2619 + $k[$j++] = "Alphanumeric string is too long to check"; //#2619 + $k[$j++] = false; //#2619 + return true; //#2619 + } //#2619 + var _RY = $k[--$j]; //#2620 + var _Ra = $geti($k[--$j], 0, _RY); //#2620 + for (var _Rb = 0, _Rc = _Ra.length; _Rb < _Rc; _Rb++) { //#2620 + var _Re = $k[--$j]; //#2620 + $k[$j++] = $get(_Ra, _Rb); //#2620 + $k[$j++] = _Re; //#2620 + } //#2620 + var _Rf = $k[--$j]; //#2621 + $k[$j++] = 0; //#2621 + $forall(_Rf, function() { //#2621 + var _Rg = $k[--$j]; //#2621 + var _Rh = $k[--$j]; //#2621 + var _Ri = $k[--$j]; //#2621 + $k[$j++] = $f(_Rh + (_Ri * _Rg)); //#2621 + }); //#2621 + var _Rj = $k[--$j]; //#2621 + if ($k[--$j] != (_Rj % 1021)) { //#2622 + $j--; //#2622 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters#2622'; //#2622 + $k[$j++] = "Bad alphanumeric check characters"; //#2622 + $k[$j++] = false; //#2622 + return true; //#2622 + } //#2622 + }; //#2622 + if (!bwipp_gs1process.__2646__) { //#2646 + $_ = Object.create($_); //#2646 + $k[$j++] = Infinity; //#2626 + var _Rl = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#2644 + for (var _Rm = 0, _Rn = _Rl.length; _Rm < _Rn; _Rm++) { //#2645 + var _Ro = $get(_Rl, _Rm); //#2645 + $k[$j++] = _Ro; //#2645 + $k[$j++] = _Ro; //#2645 + } //#2645 + $_.iso3166 = $d(); //#2645 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2645 + bwipp_gs1process.__2646__ = 1; //#2645 + $_ = Object.getPrototypeOf($_); //#2645 + } //#2645 $_.lintiso3166 = function() { - var _MZ = $get($_.iso3166, $k[--$j]) !== undefined; //#2612 - if (!_MZ) { //#2612 - $j--; //#2612 - $k[$j++] = 'bwipp.GS1UnknownCountry#2612'; //#2612 - $k[$j++] = "Unknown country code"; //#2612 - $k[$j++] = false; //#2612 - return true; //#2612 - } //#2612 - }; //#2612 + var _Rt = $get($_.iso3166, $k[--$j]) !== undefined; //#2649 + if (!_Rt) { //#2649 + $j--; //#2649 + $k[$j++] = 'bwipp.GS1UnknownCountry#2649'; //#2649 + $k[$j++] = "Unknown country code"; //#2649 + $k[$j++] = false; //#2649 + return true; //#2649 + } //#2649 + }; //#2649 $_.lintiso3166999 = function() { - var _Ma = $k[--$j]; //#2616 - $k[$j++] = _Ma; //#2620 - if ($ne(_Ma, '999')) { //#2619 - var _Md = $get($_.iso3166, $k[--$j]) !== undefined; //#2617 - if (!_Md) { //#2617 - $j--; //#2617 - $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2617'; //#2617 - $k[$j++] = "Unknown country code or not 999"; //#2617 - $k[$j++] = false; //#2617 - return true; //#2617 - } //#2617 - } else { //#2619 - $j--; //#2619 - } //#2619 - }; //#2619 + var _Ru = $k[--$j]; //#2653 + $k[$j++] = _Ru; //#2657 + if ($ne(_Ru, '999')) { //#2656 + var _Rx = $get($_.iso3166, $k[--$j]) !== undefined; //#2654 + if (!_Rx) { //#2654 + $j--; //#2654 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999#2654'; //#2654 + $k[$j++] = "Unknown country code or not 999"; //#2654 + $k[$j++] = false; //#2654 + return true; //#2654 + } //#2654 + } else { //#2656 + $j--; //#2656 + } //#2656 + }; //#2656 $_.lintiso3166list = function() { - var _Me = $k[--$j]; //#2624 - $k[$j++] = _Me; //#2626 - if ((_Me.length % 3) != 0) { //#2626 - $j -= 2; //#2625 - $k[$j++] = 'bwipp.GS1BadCountryListLength#2625'; //#2625 - $k[$j++] = "Not a group of three-digit country codes"; //#2625 - $k[$j++] = false; //#2625 - return true; //#2625 - } //#2625 - var _Mf = $k[--$j]; //#2628 - $k[$j++] = _Mf; //#2631 - $k[$j++] = true; //#2631 - for (var _Mh = 0, _Mg = _Mf.length - 1; _Mh <= _Mg; _Mh += 3) { //#2631 - var _Mi = $k[--$j]; //#2629 - var _Mj = $k[--$j]; //#2629 - var _Mm = $get($_.iso3166, $geti(_Mj, _Mh, 3)) !== undefined; //#2630 - $k[$j++] = _Mj; //#2630 - $k[$j++] = _Mi; //#2630 - if (!_Mm) { //#2630 - $j -= 2; //#2630 - $k[$j++] = false; //#2630 - break; //#2630 - } //#2630 - } //#2630 - if ($nt($k[--$j])) { //#2632 - $j--; //#2632 - $k[$j++] = 'bwipp.GS1UnknownCountry#2632'; //#2632 - $k[$j++] = "Unknown country code"; //#2632 - $k[$j++] = false; //#2632 - return true; //#2632 - } //#2632 - $j--; //#2633 - }; //#2633 - if (!bwipp_gs1process.__2663__) { //#2663 - $_ = Object.create($_); //#2663 - $k[$j++] = Infinity; //#2662 - var _Mo = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2661 - for (var _Mp = 0, _Mq = _Mo.length; _Mp < _Mq; _Mp++) { //#2662 - var _Mr = $get(_Mo, _Mp); //#2662 - $k[$j++] = _Mr; //#2662 - $k[$j++] = _Mr; //#2662 + var _Ry = $k[--$j]; //#2661 + $k[$j++] = _Ry; //#2663 + if ((_Ry.length % 3) != 0) { //#2663 + $j -= 2; //#2662 + $k[$j++] = 'bwipp.GS1BadCountryListLength#2662'; //#2662 + $k[$j++] = "Not a group of three-digit country codes"; //#2662 + $k[$j++] = false; //#2662 + return true; //#2662 } //#2662 - $_.iso3166alpha2 = $d(); //#2662 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2662 - bwipp_gs1process.__2663__ = 1; //#2662 - $_ = Object.getPrototypeOf($_); //#2662 - } //#2662 + var _Rz = $k[--$j]; //#2665 + $k[$j++] = _Rz; //#2668 + $k[$j++] = true; //#2668 + for (var _S1 = 0, _S0 = _Rz.length - 1; _S1 <= _S0; _S1 += 3) { //#2668 + var _S2 = $k[--$j]; //#2666 + var _S3 = $k[--$j]; //#2666 + var _S6 = $get($_.iso3166, $geti(_S3, _S1, 3)) !== undefined; //#2667 + $k[$j++] = _S3; //#2667 + $k[$j++] = _S2; //#2667 + if (!_S6) { //#2667 + $j -= 2; //#2667 + $k[$j++] = false; //#2667 + break; //#2667 + } //#2667 + } //#2667 + if ($nt($k[--$j])) { //#2669 + $j--; //#2669 + $k[$j++] = 'bwipp.GS1UnknownCountry#2669'; //#2669 + $k[$j++] = "Unknown country code"; //#2669 + $k[$j++] = false; //#2669 + return true; //#2669 + } //#2669 + $j--; //#2670 + }; //#2670 + if (!bwipp_gs1process.__2700__) { //#2700 + $_ = Object.create($_); //#2700 + $k[$j++] = Infinity; //#2674 + var _S8 = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#2698 + for (var _S9 = 0, _SA = _S8.length; _S9 < _SA; _S9++) { //#2699 + var _SB = $get(_S8, _S9); //#2699 + $k[$j++] = _SB; //#2699 + $k[$j++] = _SB; //#2699 + } //#2699 + $_.iso3166alpha2 = $d(); //#2699 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2699 + bwipp_gs1process.__2700__ = 1; //#2699 + $_ = Object.getPrototypeOf($_); //#2699 + } //#2699 $_.lintiso3166alpha2 = function() { - var _Mw = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2666 - if (!_Mw) { //#2666 - $j--; //#2666 - $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2666'; //#2666 - $k[$j++] = "Unknown country alpha code"; //#2666 - $k[$j++] = false; //#2666 - return true; //#2666 - } //#2666 - }; //#2666 - if (!bwipp_gs1process.__2694__) { //#2694 - $_ = Object.create($_); //#2694 - $k[$j++] = Infinity; //#2693 - var _Mx = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2692 - for (var _My = 0, _Mz = _Mx.length; _My < _Mz; _My++) { //#2693 - var _N0 = $get(_Mx, _My); //#2693 - $k[$j++] = _N0; //#2693 - $k[$j++] = _N0; //#2693 - } //#2693 - $_.iso4217 = $d(); //#2693 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2693 - bwipp_gs1process.__2694__ = 1; //#2693 - $_ = Object.getPrototypeOf($_); //#2693 - } //#2693 + var _SG = $get($_.iso3166alpha2, $k[--$j]) !== undefined; //#2703 + if (!_SG) { //#2703 + $j--; //#2703 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha#2703'; //#2703 + $k[$j++] = "Unknown country alpha code"; //#2703 + $k[$j++] = false; //#2703 + return true; //#2703 + } //#2703 + }; //#2703 + if (!bwipp_gs1process.__2731__) { //#2731 + $_ = Object.create($_); //#2731 + $k[$j++] = Infinity; //#2707 + var _SH = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '925', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#2729 + for (var _SI = 0, _SJ = _SH.length; _SI < _SJ; _SI++) { //#2730 + var _SK = $get(_SH, _SI); //#2730 + $k[$j++] = _SK; //#2730 + $k[$j++] = _SK; //#2730 + } //#2730 + $_.iso4217 = $d(); //#2730 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#2730 + bwipp_gs1process.__2731__ = 1; //#2730 + $_ = Object.getPrototypeOf($_); //#2730 + } //#2730 $_.lintiso4217 = function() { - var _N5 = $get($_.iso4217, $k[--$j]) !== undefined; //#2697 - if (!_N5) { //#2697 - $j--; //#2697 - $k[$j++] = 'bwipp.GS1UnknownCurrency#2697'; //#2697 - $k[$j++] = "Unknown currency code"; //#2697 - $k[$j++] = false; //#2697 - return true; //#2697 - } //#2697 - }; //#2697 + var _SP = $get($_.iso4217, $k[--$j]) !== undefined; //#2734 + if (!_SP) { //#2734 + $j--; //#2734 + $k[$j++] = 'bwipp.GS1UnknownCurrency#2734'; //#2734 + $k[$j++] = "Unknown currency code"; //#2734 + $k[$j++] = false; //#2734 + return true; //#2734 + } //#2734 + }; //#2734 $_.lintiban = function() { - var _N6 = $k[--$j]; //#2701 - $k[$j++] = _N6; //#2701 - if (_N6.length <= 4) { //#2701 - $j -= 2; //#2701 - $k[$j++] = 'bwipp.GS1tooShort#2701'; //#2701 - $k[$j++] = "IBAN too short"; //#2701 - $k[$j++] = false; //#2701 - return true; //#2701 - } //#2701 - var _N7 = $k[--$j]; //#2702 - $k[$j++] = _N7; //#2707 - $k[$j++] = true; //#2707 - $forall(_N7, function() { //#2707 - var _N8 = $s(1); //#2703 - $put(_N8, 0, $k[--$j]); //#2703 - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _N8); //#2705 - if ($nt($k[--$j])) { //#2705 - $j -= 2; //#2705 - $k[$j++] = false; //#2705 - return true; //#2705 - } //#2705 - $j -= 3; //#2706 - }); //#2706 - if ($nt($k[--$j])) { //#2708 - $j--; //#2708 - $k[$j++] = 'bwipp.GS1badIBANcharacter#2708'; //#2708 - $k[$j++] = "Invalid IBAN character"; //#2708 - $k[$j++] = false; //#2708 - return true; //#2708 - } //#2708 - var _NC = $k[--$j]; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = _NC; //#2709 - $k[$j++] = Infinity; //#2709 - var _ND = $k[--$j]; //#2709 - var _NE = $k[--$j]; //#2709 - $k[$j++] = _ND; //#2709 - $k[$j++] = _NE; //#2709 - $k[$j++] = Infinity; //#2709 - var _NF = $k[--$j]; //#2709 - var _NG = $k[--$j]; //#2709 - $k[$j++] = _NF; //#2709 - $forall(_NG); //#2709 - $r($counttomark(), -4); //#2709 - $astore($a($counttomark())); //#2709 - var _NK = $k[--$j]; //#2709 - var _NL = $k[--$j]; //#2709 - $k[$j++] = _NK; //#2709 - $k[$j++] = _NL; //#2709 - $j--; //#2709 - $forall($k[--$j], function() { //#2711 - var _NO = $f($k[--$j] - 48); //#2710 - $k[$j++] = _NO; //#2710 - if (_NO > 9) { //#2710 - var _NQ = $f($k[--$j] - 7); //#2710 - $k[$j++] = ~~(_NQ / 10); //#2710 - $k[$j++] = _NQ % 10; //#2710 - } //#2710 - }); //#2710 - $astore($a($counttomark())); //#2711 - var _NT = $k[--$j]; //#2711 - var _NU = $k[--$j]; //#2711 - $k[$j++] = _NT; //#2711 - $k[$j++] = _NU; //#2711 - $j--; //#2711 - var _NV = $k[--$j]; //#2712 - $k[$j++] = 0; //#2712 - $forall(_NV, function() { //#2712 - var _NW = $k[--$j]; //#2712 - var _NX = $k[--$j]; //#2712 - $k[$j++] = ($f(_NW + (_NX * 10))) % 97; //#2712 - }); //#2712 - if ($k[--$j] != 1) { //#2713 - $j -= 2; //#2713 - $k[$j++] = 'bwipp.GS1badIBANchecksum#2713'; //#2713 - $k[$j++] = "IBAN checksum incorrect"; //#2713 - $k[$j++] = false; //#2713 - return true; //#2713 - } //#2713 - var _Na = $geti($k[--$j], 0, 2); //#2714 - $k[$j++] = _Na; //#2714 - $_.lintiso3166alpha2(); //#2714 - }; //#2714 - $_.lintzero = function() { - if ($ne($k[--$j], "0")) { //#2718 - $j--; //#2718 - $k[$j++] = 'bwipp.GS1zeroRequired#2718'; //#2718 - $k[$j++] = "Zero is required"; //#2718 - $k[$j++] = false; //#2718 - return true; //#2718 - } //#2718 - }; //#2718 - $_.lintnonzero = function() { - var _Nc = $k[--$j]; //#2722 - $k[$j++] = false; //#2722 - $forall(_Nc, function() { //#2722 - if ($k[--$j] != 48) { //#2722 - $j--; //#2722 - $k[$j++] = true; //#2722 - } //#2722 - }); //#2722 - if ($nt($k[--$j])) { //#2723 - $j--; //#2723 - $k[$j++] = 'bwipp.GS1zeroNotPermitted#2723'; //#2723 - $k[$j++] = "Zero not permitted"; //#2723 - $k[$j++] = false; //#2723 - return true; //#2723 - } //#2723 - }; //#2723 - $_.lintnozeroprefix = function() { - var _Nf = $k[--$j]; //#2727 - if ((_Nf.length > 1) && ($get(_Nf, 0) == 48)) { //#2729 - $j--; //#2728 - $k[$j++] = 'bwipp.GS1badZeroPrefix#2728'; //#2728 - $k[$j++] = "Zero prefix is not permitted"; //#2728 - $k[$j++] = false; //#2728 - return true; //#2728 - } //#2728 - }; //#2728 - $_.lintyymmd0 = function() { - var _Nh = $k[--$j]; //#2733 - var _Nj = $cvi($geti(_Nh, 2, 2)); //#2733 - $k[$j++] = _Nh; //#2733 - if ((_Nj < 1) || (_Nj > 12)) { //#2733 - $j--; //#2733 - $k[$j++] = 'bwipp.GS1badMonth#2733'; //#2733 - $k[$j++] = "Invalid month"; //#2733 - $k[$j++] = false; //#2733 - return true; //#2733 - } //#2733 - var _Nk = $k[--$j]; //#2734 - var _Nm = $cvi($geti(_Nk, 0, 2)); //#2734 - var _Nn = _Nm - 21; //#2735 - $k[$j++] = _Nk; //#2735 - $k[$j++] = _Nm; //#2735 - $k[$j++] = _Nn; //#2735 - if (_Nn >= 51) { //#2735 - $j--; //#2735 - var _No = $k[--$j]; //#2735 - $k[$j++] = $f(_No + 1900); //#2735 - } else { //#2735 - if ($k[--$j] <= -50) { //#2735 - var _Nq = $k[--$j]; //#2735 - $k[$j++] = $f(_Nq + 2100); //#2735 - } else { //#2735 - var _Nr = $k[--$j]; //#2735 - $k[$j++] = $f(_Nr + 2000); //#2735 - } //#2735 - } //#2735 - var _Ns = $k[--$j]; //#2736 - $k[$j++] = ((_Ns % 400) == 0) || (((_Ns % 4) == 0) && ((_Ns % 100) != 0)); //#2737 - $k[$j++] = Infinity; //#2737 - var _Nt = $k[--$j]; //#2737 - var _Nv = $k[--$j] ? 29 : 28; //#2737 - $k[$j++] = _Nt; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = _Nv; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - $k[$j++] = 30; //#2737 - $k[$j++] = 31; //#2737 - var _Nw = $a(); //#2737 - var _Nx = $k[--$j]; //#2738 - if ($get(_Nw, $cvi($geti(_Nx, 2, 2)) - 1) < $cvi($geti(_Nx, 4, 2))) { //#2739 - $j--; //#2739 - $k[$j++] = 'bwipp.GS1badDay#2739'; //#2739 - $k[$j++] = "Invalid day of month"; //#2739 - $k[$j++] = false; //#2739 - return true; //#2739 - } //#2739 - }; //#2739 - $_.lintyymmdd = function() { - var _O1 = $k[--$j]; //#2743 - $k[$j++] = _O1; //#2743 - if (_O1.length != 6) { //#2743 - $j--; //#2743 - $k[$j++] = 'bwipp.GS1badDateLength#2743'; //#2743 - $k[$j++] = "Invalid length for date"; //#2743 - $k[$j++] = false; //#2743 - return true; //#2743 - } //#2743 - var _O2 = $k[--$j]; //#2744 - $k[$j++] = _O2; //#2744 - if ($cvi($geti(_O2, 4, 2)) < 1) { //#2744 - $j--; //#2744 - $k[$j++] = 'bwipp.GS1badDay#2744'; //#2744 - $k[$j++] = "Invalid day of month"; //#2744 - $k[$j++] = false; //#2744 - return true; //#2744 - } //#2744 - $_.lintyymmd0(); //#2745 - }; //#2745 - $_.lintyymmddhh = function() { - var _O4 = $k[--$j]; //#2749 - $k[$j++] = _O4; //#2749 - if (_O4.length != 8) { //#2749 - $j--; //#2749 - $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2749'; //#2749 - $k[$j++] = "Invalid length for date with hour"; //#2749 - $k[$j++] = false; //#2749 - return true; //#2749 - } //#2749 - var _O5 = $k[--$j]; //#2750 - $k[$j++] = _O5; //#2750 - if ($cvi($geti(_O5, 6, 2)) > 23) { //#2750 + var _SQ = $k[--$j]; //#2738 + $k[$j++] = _SQ; //#2738 + if (_SQ.length <= 4) { //#2738 + $j -= 2; //#2738 + $k[$j++] = 'bwipp.GS1tooShort#2738'; //#2738 + $k[$j++] = "IBAN too short"; //#2738 + $k[$j++] = false; //#2738 + return true; //#2738 + } //#2738 + var _SR = $k[--$j]; //#2739 + $k[$j++] = _SR; //#2744 + $k[$j++] = true; //#2744 + $forall(_SR, function() { //#2744 + var _SS = $s(1); //#2740 + $put(_SS, 0, $k[--$j]); //#2740 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _SS); //#2742 + if ($nt($k[--$j])) { //#2742 + $j -= 2; //#2742 + $k[$j++] = false; //#2742 + return true; //#2742 + } //#2742 + $j -= 3; //#2743 + }); //#2743 + if ($nt($k[--$j])) { //#2745 + $j--; //#2745 + $k[$j++] = 'bwipp.GS1badIBANcharacter#2745'; //#2745 + $k[$j++] = "Invalid IBAN character"; //#2745 + $k[$j++] = false; //#2745 + return true; //#2745 + } //#2745 + var _SW = $k[--$j]; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = _SW; //#2746 + $k[$j++] = Infinity; //#2746 + var _SX = $k[--$j]; //#2746 + var _SY = $k[--$j]; //#2746 + $k[$j++] = _SX; //#2746 + $k[$j++] = _SY; //#2746 + $k[$j++] = Infinity; //#2746 + var _SZ = $k[--$j]; //#2746 + var _Sa = $k[--$j]; //#2746 + $k[$j++] = _SZ; //#2746 + $forall(_Sa); //#2746 + $r($counttomark(), -4); //#2746 + $astore($a($counttomark())); //#2746 + var _Se = $k[--$j]; //#2746 + var _Sf = $k[--$j]; //#2746 + $k[$j++] = _Se; //#2746 + $k[$j++] = _Sf; //#2746 + $j--; //#2746 + $forall($k[--$j], function() { //#2748 + var _Si = $f($k[--$j] - 48); //#2747 + $k[$j++] = _Si; //#2747 + if (_Si > 9) { //#2747 + var _Sk = $f($k[--$j] - 7); //#2747 + $k[$j++] = ~~(_Sk / 10); //#2747 + $k[$j++] = _Sk % 10; //#2747 + } //#2747 + }); //#2747 + $astore($a($counttomark())); //#2748 + var _Sn = $k[--$j]; //#2748 + var _So = $k[--$j]; //#2748 + $k[$j++] = _Sn; //#2748 + $k[$j++] = _So; //#2748 + $j--; //#2748 + var _Sp = $k[--$j]; //#2749 + $k[$j++] = 0; //#2749 + $forall(_Sp, function() { //#2749 + var _Sq = $k[--$j]; //#2749 + var _Sr = $k[--$j]; //#2749 + $k[$j++] = ($f(_Sq + (_Sr * 10))) % 97; //#2749 + }); //#2749 + if ($k[--$j] != 1) { //#2750 $j -= 2; //#2750 - $k[$j++] = 'bwipp.GS1badHour#2750'; //#2750 - $k[$j++] = "Invalid hour of day"; //#2750 + $k[$j++] = 'bwipp.GS1badIBANchecksum#2750'; //#2750 + $k[$j++] = "IBAN checksum incorrect"; //#2750 $k[$j++] = false; //#2750 return true; //#2750 } //#2750 - var _O8 = $geti($k[--$j], 0, 6); //#2751 - $k[$j++] = _O8; //#2751 - $_.lintyymmdd(); //#2751 + var _Su = $geti($k[--$j], 0, 2); //#2751 + $k[$j++] = _Su; //#2751 + $_.lintiso3166alpha2(); //#2751 }; //#2751 - $_.linthhmm = function() { - var _O9 = $k[--$j]; //#2755 - $k[$j++] = _O9; //#2755 - if ($cvi($geti(_O9, 0, 2)) > 23) { //#2755 - $j -= 2; //#2755 - $k[$j++] = 'bwipp.GS1badHour#2755'; //#2755 - $k[$j++] = "Invalid hour of day"; //#2755 + $_.lintzero = function() { + if ($ne($k[--$j], "0")) { //#2755 + $j--; //#2755 + $k[$j++] = 'bwipp.GS1zeroRequired#2755'; //#2755 + $k[$j++] = "Zero is required"; //#2755 $k[$j++] = false; //#2755 return true; //#2755 } //#2755 - if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2756 - $j--; //#2756 - $k[$j++] = 'bwipp.GS1badMinute#2756'; //#2756 - $k[$j++] = "Invalid minute in the hour"; //#2756 - $k[$j++] = false; //#2756 - return true; //#2756 - } //#2756 - }; //#2756 - $_.lintmmoptss = function() { - var _OD = $k[--$j]; //#2760 - var _OE = _OD.length; //#2760 - $k[$j++] = _OD; //#2762 - if ((_OE != 2) && (_OE != 4)) { //#2762 - $j--; //#2761 - $k[$j++] = 'bwipp.GS1badTimeLength#2761'; //#2761 - $k[$j++] = "Invalid length for optional minutes and seconds"; //#2761 - $k[$j++] = false; //#2761 - return true; //#2761 - } //#2761 - var _OF = $k[--$j]; //#2763 - $k[$j++] = _OF; //#2763 - if ($cvi($geti(_OF, 0, 2)) > 59) { //#2763 - $j -= 2; //#2763 - $k[$j++] = 'bwipp.GS1badMinute#2763'; //#2763 - $k[$j++] = "Invalid minute in the hour"; //#2763 - $k[$j++] = false; //#2763 - return true; //#2763 - } //#2763 - var _OH = $k[--$j]; //#2764 - $k[$j++] = _OH; //#2766 - if (_OH.length >= 4) { //#2766 - var _OI = $k[--$j]; //#2765 - $k[$j++] = _OI; //#2765 - if ($cvi($geti(_OI, 2, 2)) > 59) { //#2765 - $j -= 2; //#2765 - $k[$j++] = 'bwipp.GS1badSecond#2765'; //#2765 - $k[$j++] = "Invalid second in the minute"; //#2765 - $k[$j++] = false; //#2765 - return true; //#2765 - } //#2765 + }; //#2755 + $_.lintnonzero = function() { + var _Sw = $k[--$j]; //#2759 + $k[$j++] = false; //#2759 + $forall(_Sw, function() { //#2759 + if ($k[--$j] != 48) { //#2759 + $j--; //#2759 + $k[$j++] = true; //#2759 + } //#2759 + }); //#2759 + if ($nt($k[--$j])) { //#2760 + $j--; //#2760 + $k[$j++] = 'bwipp.GS1zeroNotPermitted#2760'; //#2760 + $k[$j++] = "Zero not permitted"; //#2760 + $k[$j++] = false; //#2760 + return true; //#2760 + } //#2760 + }; //#2760 + $_.lintnozeroprefix = function() { + var _Sz = $k[--$j]; //#2764 + if ((_Sz.length > 1) && ($get(_Sz, 0) == 48)) { //#2766 + $j--; //#2765 + $k[$j++] = 'bwipp.GS1badZeroPrefix#2765'; //#2765 + $k[$j++] = "Zero prefix is not permitted"; //#2765 + $k[$j++] = false; //#2765 + return true; //#2765 } //#2765 - $j--; //#2767 - }; //#2767 - $_.lintyesno = function() { - var _OK = $k[--$j]; //#2771 - if ($ne(_OK, "0") && $ne(_OK, "1")) { //#2773 + }; //#2765 + $_.lintyymmd0 = function() { + var _T1 = $k[--$j]; //#2770 + var _T3 = $cvi($geti(_T1, 2, 2)); //#2770 + $k[$j++] = _T1; //#2770 + if ((_T3 < 1) || (_T3 > 12)) { //#2770 + $j--; //#2770 + $k[$j++] = 'bwipp.GS1badMonth#2770'; //#2770 + $k[$j++] = "Invalid month"; //#2770 + $k[$j++] = false; //#2770 + return true; //#2770 + } //#2770 + var _T4 = $k[--$j]; //#2771 + var _T6 = $cvi($geti(_T4, 0, 2)); //#2771 + var _T7 = _T6 - 21; //#2772 + $k[$j++] = _T4; //#2772 + $k[$j++] = _T6; //#2772 + $k[$j++] = _T7; //#2772 + if (_T7 >= 51) { //#2772 $j--; //#2772 - $k[$j++] = 'bwipp.GS1badBoolean#2772'; //#2772 - $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2772 - $k[$j++] = false; //#2772 - return true; //#2772 + var _T8 = $k[--$j]; //#2772 + $k[$j++] = $f(_T8 + 1900); //#2772 + } else { //#2772 + if ($k[--$j] <= -50) { //#2772 + var _TA = $k[--$j]; //#2772 + $k[$j++] = $f(_TA + 2100); //#2772 + } else { //#2772 + var _TB = $k[--$j]; //#2772 + $k[$j++] = $f(_TB + 2000); //#2772 + } //#2772 } //#2772 - }; //#2772 - $_.lintwinding = function() { - var _OL = $k[--$j]; //#2777 - if ($ne(_OL, "0") && ($ne(_OL, "1") && $ne(_OL, "9"))) { //#2779 - $j--; //#2778 - $k[$j++] = 'bwipp.GS1badWinding#2778'; //#2778 - $k[$j++] = "Invalid winding direction"; //#2778 - $k[$j++] = false; //#2778 - return true; //#2778 - } //#2778 - }; //#2778 - $_.lintpieceoftotal = function() { - var _OM = $k[--$j]; //#2783 - $k[$j++] = _OM; //#2783 - if ((_OM.length % 2) != 0) { //#2783 - $j -= 2; //#2783 - $k[$j++] = 'bwipp.GS1badPieceTotalLength#2783'; //#2783 - $k[$j++] = "Invalid piece/total length"; //#2783 - $k[$j++] = false; //#2783 - return true; //#2783 - } //#2783 - var _ON = $k[--$j]; //#2784 - var _OP = $cvi($geti(_ON, 0, ~~(_ON.length / 2))); //#2785 - $k[$j++] = _ON; //#2785 - $k[$j++] = _OP; //#2785 - if (_OP == 0) { //#2785 - $j -= 3; //#2785 - $k[$j++] = 'bwipp.GS1badPieceNumber#2785'; //#2785 - $k[$j++] = "Invalid piece number"; //#2785 - $k[$j++] = false; //#2785 - return true; //#2785 - } //#2785 - var _OQ = $k[--$j]; //#2786 - var _OR = $k[--$j]; //#2786 - var _OS = ~~(_OR.length / 2); //#2786 - var _OU = $cvi($geti(_OR, _OS, _OS)); //#2787 - $k[$j++] = _OQ; //#2787 - $k[$j++] = _OU; //#2787 - if (_OU == 0) { //#2787 - $j -= 3; //#2787 - $k[$j++] = 'bwipp.GS1badPieceTotal#2787'; //#2787 - $k[$j++] = "Invalid total number"; //#2787 + var _TC = $k[--$j]; //#2773 + $k[$j++] = ((_TC % 400) == 0) || (((_TC % 4) == 0) && ((_TC % 100) != 0)); //#2774 + $k[$j++] = Infinity; //#2774 + var _TD = $k[--$j]; //#2774 + var _TF = $k[--$j] ? 29 : 28; //#2774 + $k[$j++] = _TD; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = _TF; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + $k[$j++] = 30; //#2774 + $k[$j++] = 31; //#2774 + var _TG = $a(); //#2774 + var _TH = $k[--$j]; //#2775 + if ($get(_TG, $cvi($geti(_TH, 2, 2)) - 1) < $cvi($geti(_TH, 4, 2))) { //#2776 + $j--; //#2776 + $k[$j++] = 'bwipp.GS1badDay#2776'; //#2776 + $k[$j++] = "Invalid day of month"; //#2776 + $k[$j++] = false; //#2776 + return true; //#2776 + } //#2776 + }; //#2776 + $_.lintyymmdd = function() { + var _TL = $k[--$j]; //#2780 + $k[$j++] = _TL; //#2780 + if (_TL.length != 6) { //#2780 + $j--; //#2780 + $k[$j++] = 'bwipp.GS1badDateLength#2780'; //#2780 + $k[$j++] = "Invalid length for date"; //#2780 + $k[$j++] = false; //#2780 + return true; //#2780 + } //#2780 + var _TM = $k[--$j]; //#2781 + $k[$j++] = _TM; //#2781 + if ($cvi($geti(_TM, 4, 2)) < 1) { //#2781 + $j--; //#2781 + $k[$j++] = 'bwipp.GS1badDay#2781'; //#2781 + $k[$j++] = "Invalid day of month"; //#2781 + $k[$j++] = false; //#2781 + return true; //#2781 + } //#2781 + $_.lintyymmd0(); //#2782 + }; //#2782 + $_.lintyymmddhh = function() { + var _TO = $k[--$j]; //#2786 + $k[$j++] = _TO; //#2786 + if (_TO.length != 8) { //#2786 + $j--; //#2786 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength#2786'; //#2786 + $k[$j++] = "Invalid length for date with hour"; //#2786 + $k[$j++] = false; //#2786 + return true; //#2786 + } //#2786 + var _TP = $k[--$j]; //#2787 + $k[$j++] = _TP; //#2787 + if ($cvi($geti(_TP, 6, 2)) > 23) { //#2787 + $j -= 2; //#2787 + $k[$j++] = 'bwipp.GS1badHour#2787'; //#2787 + $k[$j++] = "Invalid hour of day"; //#2787 $k[$j++] = false; //#2787 return true; //#2787 } //#2787 - var _OV = $k[--$j]; //#2788 - if ($gt($k[--$j], _OV)) { //#2788 - $j--; //#2788 - $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2788'; //#2788 - $k[$j++] = "Piece number exceeds total"; //#2788 - $k[$j++] = false; //#2788 - return true; //#2788 - } //#2788 + var _TS = $geti($k[--$j], 0, 6); //#2788 + $k[$j++] = _TS; //#2788 + $_.lintyymmdd(); //#2788 }; //#2788 - $_.lintpcenc = function() { - for (;;) { //#2802 - $search($k[--$j], "%"); //#2793 - if ($nt($k[--$j])) { //#2793 - $j--; //#2793 - break; //#2793 - } //#2793 - $j -= 2; //#2794 - var _OZ = $k[--$j]; //#2794 - $k[$j++] = _OZ; //#2794 - if (_OZ.length < 2) { //#2794 - $j -= 2; //#2794 - $k[$j++] = 'bwipp.GS1badPercentEscape#2794'; //#2794 - $k[$j++] = "Invalid % escape"; //#2794 - $k[$j++] = false; //#2794 - break; //#2794 - } //#2794 - var _Oa = $k[--$j]; //#2795 - var _Ob = $geti(_Oa, 0, 2); //#2795 - $k[$j++] = _Oa; //#2800 - $k[$j++] = true; //#2800 - for (var _Oc = 0, _Od = _Ob.length; _Oc < _Od; _Oc++) { //#2800 - var _Of = $s(1); //#2796 - $put(_Of, 0, $get(_Ob, _Oc)); //#2796 - $search("0123456789ABCDEFabcdef", _Of); //#2798 - if ($nt($k[--$j])) { //#2798 - $j -= 2; //#2798 - $k[$j++] = false; //#2798 - break; //#2798 - } //#2798 - $j -= 3; //#2799 - } //#2799 - if ($nt($k[--$j])) { //#2801 - $j -= 2; //#2801 - $k[$j++] = 'bwipp.GS1badPercentChars#2801'; //#2801 - $k[$j++] = "Invalid characters for percent encoding"; //#2801 - $k[$j++] = false; //#2801 - break; //#2801 - } //#2801 - } //#2801 - }; //#2801 - $_.lintcouponcode = function() { - var _Oi = $k[--$j]; //#2806 - $k[$j++] = _Oi; //#2808 - $k[$j++] = true; //#2808 - $forall(_Oi, function() { //#2808 - var _Oj = $k[--$j]; //#2807 - if ((_Oj < 48) || (_Oj > 57)) { //#2807 - $j--; //#2807 - $k[$j++] = false; //#2807 - return true; //#2807 - } //#2807 - }); //#2807 - if ($nt($k[--$j])) { //#2809 - $j -= 2; //#2809 - $k[$j++] = 'bwipp.GS1couponNotNumeric#2809'; //#2809 - $k[$j++] = "Coupon not numeric"; //#2809 + $_.linthhmm = function() { + var _TT = $k[--$j]; //#2792 + $k[$j++] = _TT; //#2792 + if ($cvi($geti(_TT, 0, 2)) > 23) { //#2792 + $j -= 2; //#2792 + $k[$j++] = 'bwipp.GS1badHour#2792'; //#2792 + $k[$j++] = "Invalid hour of day"; //#2792 + $k[$j++] = false; //#2792 + return true; //#2792 + } //#2792 + if ($cvi($geti($k[--$j], 2, 2)) > 59) { //#2793 + $j--; //#2793 + $k[$j++] = 'bwipp.GS1badMinute#2793'; //#2793 + $k[$j++] = "Invalid minute in the hour"; //#2793 + $k[$j++] = false; //#2793 + return true; //#2793 + } //#2793 + }; //#2793 + $_.lintmmoptss = function() { + var _TX = $k[--$j]; //#2797 + var _TY = _TX.length; //#2797 + $k[$j++] = _TX; //#2799 + if ((_TY != 2) && (_TY != 4)) { //#2799 + $j--; //#2798 + $k[$j++] = 'bwipp.GS1badTimeLength#2798'; //#2798 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#2798 + $k[$j++] = false; //#2798 + return true; //#2798 + } //#2798 + var _TZ = $k[--$j]; //#2800 + $k[$j++] = _TZ; //#2800 + if ($cvi($geti(_TZ, 0, 2)) > 59) { //#2800 + $j -= 2; //#2800 + $k[$j++] = 'bwipp.GS1badMinute#2800'; //#2800 + $k[$j++] = "Invalid minute in the hour"; //#2800 + $k[$j++] = false; //#2800 + return true; //#2800 + } //#2800 + var _Tb = $k[--$j]; //#2801 + $k[$j++] = _Tb; //#2803 + if (_Tb.length >= 4) { //#2803 + var _Tc = $k[--$j]; //#2802 + $k[$j++] = _Tc; //#2802 + if ($cvi($geti(_Tc, 2, 2)) > 59) { //#2802 + $j -= 2; //#2802 + $k[$j++] = 'bwipp.GS1badSecond#2802'; //#2802 + $k[$j++] = "Invalid second in the minute"; //#2802 + $k[$j++] = false; //#2802 + return true; //#2802 + } //#2802 + } //#2802 + $j--; //#2804 + }; //#2804 + $_.lintyesno = function() { + var _Te = $k[--$j]; //#2808 + if ($ne(_Te, "0") && $ne(_Te, "1")) { //#2810 + $j--; //#2809 + $k[$j++] = 'bwipp.GS1badBoolean#2809'; //#2809 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#2809 $k[$j++] = false; //#2809 return true; //#2809 } //#2809 - var _Ol = $k[--$j]; //#2812 - $k[$j++] = _Ol; //#2814 - if (_Ol.length < 1) { //#2814 - $j -= 2; //#2813 - $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2813'; //#2813 - $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2813 - $k[$j++] = false; //#2813 - return true; //#2813 - } //#2813 - var _Om = $k[--$j]; //#2815 - var _Oo = $cvi($geti(_Om, 0, 1)); //#2815 - $k[$j++] = _Om; //#2817 - $k[$j++] = _Oo; //#2817 - if (_Oo > 6) { //#2817 - $j -= 2; //#2816 - $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2816'; //#2816 - $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2816 - $k[$j++] = false; //#2816 - return true; //#2816 - } //#2816 - var _Op = $k[--$j]; //#2818 - var _Oq = $k[--$j]; //#2819 - $k[$j++] = _Oq; //#2821 - $k[$j++] = $f($f(_Op + 6) + 1); //#2821 - if (($f($f(_Op + 6) + 1)) > _Oq.length) { //#2821 - $j -= 3; //#2820 - $k[$j++] = 'bwipp.GS1couponTooShortGCP#2820'; //#2820 - $k[$j++] = "Coupon too short: GCP truncated"; //#2820 + }; //#2809 + $_.lintwinding = function() { + var _Tf = $k[--$j]; //#2814 + if ($ne(_Tf, "0") && ($ne(_Tf, "1") && $ne(_Tf, "9"))) { //#2816 + $j--; //#2815 + $k[$j++] = 'bwipp.GS1badWinding#2815'; //#2815 + $k[$j++] = "Invalid winding direction"; //#2815 + $k[$j++] = false; //#2815 + return true; //#2815 + } //#2815 + }; //#2815 + $_.lintpieceoftotal = function() { + var _Tg = $k[--$j]; //#2820 + $k[$j++] = _Tg; //#2820 + if ((_Tg.length % 2) != 0) { //#2820 + $j -= 2; //#2820 + $k[$j++] = 'bwipp.GS1badPieceTotalLength#2820'; //#2820 + $k[$j++] = "Invalid piece/total length"; //#2820 $k[$j++] = false; //#2820 return true; //#2820 } //#2820 - var _Or = $k[--$j]; //#2822 - var _Os = $k[--$j]; //#2822 - var _Ot = $geti(_Os, _Or, $f(_Os.length - _Or)); //#2822 - $k[$j++] = _Ot; //#2827 - if (_Ot.length < 6) { //#2827 - $j -= 2; //#2826 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2826'; //#2826 - $k[$j++] = "Coupon too short: Offer Code truncated"; //#2826 - $k[$j++] = false; //#2826 - return true; //#2826 - } //#2826 - var _Ou = $k[--$j]; //#2828 - var _Ov = $geti(_Ou, 6, _Ou.length - 6); //#2828 - $k[$j++] = _Ov; //#2833 - if (_Ov.length < 1) { //#2833 - $j -= 2; //#2832 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2832'; //#2832 - $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2832 - $k[$j++] = false; //#2832 - return true; //#2832 - } //#2832 - var _Ow = $k[--$j]; //#2834 - var _Oy = $cvi($geti(_Ow, 0, 1)); //#2834 - $k[$j++] = _Ow; //#2836 - $k[$j++] = _Oy; //#2836 - if ((_Oy < 1) || (_Oy > 5)) { //#2836 - $j -= 2; //#2835 - $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2835'; //#2835 - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2835 - $k[$j++] = false; //#2835 - return true; //#2835 - } //#2835 - var _Oz = $k[--$j]; //#2837 - var _P0 = $k[--$j]; //#2838 - $k[$j++] = _P0; //#2840 - $k[$j++] = $f(_Oz + 1); //#2840 - if ($f(_Oz + 1) > _P0.length) { //#2840 - $j -= 3; //#2839 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2839'; //#2839 - $k[$j++] = "Coupon too short: Save Value truncated"; //#2839 - $k[$j++] = false; //#2839 - return true; //#2839 - } //#2839 - var _P1 = $k[--$j]; //#2841 - var _P2 = $k[--$j]; //#2841 - var _P3 = $geti(_P2, _P1, $f(_P2.length - _P1)); //#2841 - $k[$j++] = _P3; //#2846 - if (_P3.length < 1) { //#2846 - $j -= 2; //#2845 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2845'; //#2845 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2845 - $k[$j++] = false; //#2845 - return true; //#2845 - } //#2845 - var _P4 = $k[--$j]; //#2847 - var _P6 = $cvi($geti(_P4, 0, 1)); //#2847 - $k[$j++] = _P4; //#2849 - $k[$j++] = _P6; //#2849 - if ((_P6 < 1) || (_P6 > 5)) { //#2849 - $j -= 2; //#2848 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2848'; //#2848 - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2848 - $k[$j++] = false; //#2848 - return true; //#2848 - } //#2848 - var _P7 = $k[--$j]; //#2850 - var _P8 = $k[--$j]; //#2851 - $k[$j++] = _P8; //#2853 - $k[$j++] = $f(_P7 + 1); //#2853 - if ($f(_P7 + 1) > _P8.length) { //#2853 - $j -= 3; //#2852 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2852'; //#2852 - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2852 - $k[$j++] = false; //#2852 - return true; //#2852 - } //#2852 - var _P9 = $k[--$j]; //#2854 - var _PA = $k[--$j]; //#2854 - var _PB = $geti(_PA, _P9, $f(_PA.length - _P9)); //#2854 - $k[$j++] = _PB; //#2859 - if (_PB.length < 1) { //#2859 - $j -= 2; //#2858 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2858'; //#2858 - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2858 - $k[$j++] = false; //#2858 - return true; //#2858 - } //#2858 - var _PC = $k[--$j]; //#2860 - var _PE = $cvi($geti(_PC, 0, 1)); //#2860 - $k[$j++] = _PC; //#2862 - if ((_PE > 4) && (_PE != 9)) { //#2862 - $j -= 2; //#2861 - $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2861'; //#2861 - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2861 - $k[$j++] = false; //#2861 - return true; //#2861 - } //#2861 - var _PF = $k[--$j]; //#2863 - var _PG = $geti(_PF, 1, _PF.length - 1); //#2863 - $k[$j++] = _PG; //#2868 - if (_PG.length < 3) { //#2868 - $j -= 2; //#2867 - $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2867'; //#2867 - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2867 - $k[$j++] = false; //#2867 - return true; //#2867 - } //#2867 - var _PH = $k[--$j]; //#2869 - var _PI = $geti(_PH, 3, _PH.length - 3); //#2869 - $k[$j++] = _PI; //#2925 - if (_PI.length >= 1) { //#2925 - var _PJ = $k[--$j]; //#2872 - $k[$j++] = _PJ; //#2925 - if ($cvi($geti(_PJ, 0, 1)) == 1) { //#2925 - var _PL = $k[--$j]; //#2873 - var _PM = $geti(_PL, 1, _PL.length - 1); //#2873 - $k[$j++] = _PM; //#2878 - if (_PM.length < 1) { //#2878 - $j -= 2; //#2877 - $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2877'; //#2877 - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2877 - $k[$j++] = false; //#2877 - return true; //#2877 - } //#2877 - var _PN = $k[--$j]; //#2879 - $k[$j++] = _PN; //#2881 - if ($cvi($geti(_PN, 0, 1)) > 3) { //#2881 - $j -= 2; //#2880 - $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2880'; //#2880 - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2880 - $k[$j++] = false; //#2880 - return true; //#2880 - } //#2880 - var _PP = $k[--$j]; //#2882 - var _PQ = $geti(_PP, 1, _PP.length - 1); //#2882 - $k[$j++] = _PQ; //#2887 - if (_PQ.length < 1) { //#2887 - $j -= 2; //#2886 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2886'; //#2886 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2886 - $k[$j++] = false; //#2886 - return true; //#2886 - } //#2886 - var _PR = $k[--$j]; //#2888 - var _PT = $cvi($geti(_PR, 0, 1)); //#2888 - $k[$j++] = _PR; //#2890 - $k[$j++] = _PT; //#2890 - if ((_PT < 1) || (_PT > 5)) { //#2890 - $j -= 2; //#2889 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2889'; //#2889 - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2889 - $k[$j++] = false; //#2889 - return true; //#2889 - } //#2889 - var _PU = $k[--$j]; //#2891 - var _PV = $k[--$j]; //#2892 - $k[$j++] = _PV; //#2894 - $k[$j++] = $f(_PU + 1); //#2894 - if ($f(_PU + 1) > _PV.length) { //#2894 - $j -= 3; //#2893 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2893'; //#2893 - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2893 - $k[$j++] = false; //#2893 - return true; //#2893 - } //#2893 - var _PW = $k[--$j]; //#2895 - var _PX = $k[--$j]; //#2895 - var _PY = $geti(_PX, _PW, $f(_PX.length - _PW)); //#2895 - $k[$j++] = _PY; //#2900 - if (_PY.length < 1) { //#2900 - $j -= 2; //#2899 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2899'; //#2899 - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2899 - $k[$j++] = false; //#2899 - return true; //#2899 - } //#2899 - var _PZ = $k[--$j]; //#2901 - var _Pb = $cvi($geti(_PZ, 0, 1)); //#2901 - $k[$j++] = _PZ; //#2903 - if ((_Pb > 4) && (_Pb != 9)) { //#2903 - $j -= 2; //#2902 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2902'; //#2902 - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2902 - $k[$j++] = false; //#2902 - return true; //#2902 - } //#2902 - var _Pc = $k[--$j]; //#2904 - var _Pd = $geti(_Pc, 1, _Pc.length - 1); //#2904 - $k[$j++] = _Pd; //#2909 - if (_Pd.length < 3) { //#2909 - $j -= 2; //#2908 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2908'; //#2908 - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2908 - $k[$j++] = false; //#2908 - return true; //#2908 - } //#2908 - var _Pe = $k[--$j]; //#2910 - var _Pf = $geti(_Pe, 3, _Pe.length - 3); //#2910 - $k[$j++] = _Pf; //#2915 - if (_Pf.length < 1) { //#2915 + var _Th = $k[--$j]; //#2821 + var _Tj = $cvi($geti(_Th, 0, ~~(_Th.length / 2))); //#2822 + $k[$j++] = _Th; //#2822 + $k[$j++] = _Tj; //#2822 + if (_Tj == 0) { //#2822 + $j -= 3; //#2822 + $k[$j++] = 'bwipp.GS1badPieceNumber#2822'; //#2822 + $k[$j++] = "Invalid piece number"; //#2822 + $k[$j++] = false; //#2822 + return true; //#2822 + } //#2822 + var _Tk = $k[--$j]; //#2823 + var _Tl = $k[--$j]; //#2823 + var _Tm = ~~(_Tl.length / 2); //#2823 + var _To = $cvi($geti(_Tl, _Tm, _Tm)); //#2824 + $k[$j++] = _Tk; //#2824 + $k[$j++] = _To; //#2824 + if (_To == 0) { //#2824 + $j -= 3; //#2824 + $k[$j++] = 'bwipp.GS1badPieceTotal#2824'; //#2824 + $k[$j++] = "Invalid total number"; //#2824 + $k[$j++] = false; //#2824 + return true; //#2824 + } //#2824 + var _Tp = $k[--$j]; //#2825 + if ($gt($k[--$j], _Tp)) { //#2825 + $j--; //#2825 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal#2825'; //#2825 + $k[$j++] = "Piece number exceeds total"; //#2825 + $k[$j++] = false; //#2825 + return true; //#2825 + } //#2825 + }; //#2825 + $_.lintpcenc = function() { + for (;;) { //#2839 + $search($k[--$j], "%"); //#2830 + if ($nt($k[--$j])) { //#2830 + $j--; //#2830 + break; //#2830 + } //#2830 + $j -= 2; //#2831 + var _Tt = $k[--$j]; //#2831 + $k[$j++] = _Tt; //#2831 + if (_Tt.length < 2) { //#2831 + $j -= 2; //#2831 + $k[$j++] = 'bwipp.GS1badPercentEscape#2831'; //#2831 + $k[$j++] = "Invalid % escape"; //#2831 + $k[$j++] = false; //#2831 + break; //#2831 + } //#2831 + var _Tu = $k[--$j]; //#2832 + var _Tv = $geti(_Tu, 0, 2); //#2832 + $k[$j++] = _Tu; //#2837 + $k[$j++] = true; //#2837 + for (var _Tw = 0, _Tx = _Tv.length; _Tw < _Tx; _Tw++) { //#2837 + var _Tz = $s(1); //#2833 + $put(_Tz, 0, $get(_Tv, _Tw)); //#2833 + $search("0123456789ABCDEFabcdef", _Tz); //#2835 + if ($nt($k[--$j])) { //#2835 + $j -= 2; //#2835 + $k[$j++] = false; //#2835 + break; //#2835 + } //#2835 + $j -= 3; //#2836 + } //#2836 + if ($nt($k[--$j])) { //#2838 + $j -= 2; //#2838 + $k[$j++] = 'bwipp.GS1badPercentChars#2838'; //#2838 + $k[$j++] = "Invalid characters for percent encoding"; //#2838 + $k[$j++] = false; //#2838 + break; //#2838 + } //#2838 + } //#2838 + }; //#2838 + $_.lintcouponcode = function() { + var _U2 = $k[--$j]; //#2843 + $k[$j++] = _U2; //#2845 + $k[$j++] = true; //#2845 + $forall(_U2, function() { //#2845 + var _U3 = $k[--$j]; //#2844 + if ((_U3 < 48) || (_U3 > 57)) { //#2844 + $j--; //#2844 + $k[$j++] = false; //#2844 + return true; //#2844 + } //#2844 + }); //#2844 + if ($nt($k[--$j])) { //#2846 + $j -= 2; //#2846 + $k[$j++] = 'bwipp.GS1couponNotNumeric#2846'; //#2846 + $k[$j++] = "Coupon not numeric"; //#2846 + $k[$j++] = false; //#2846 + return true; //#2846 + } //#2846 + var _U5 = $k[--$j]; //#2849 + $k[$j++] = _U5; //#2851 + if (_U5.length < 1) { //#2851 + $j -= 2; //#2850 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI#2850'; //#2850 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#2850 + $k[$j++] = false; //#2850 + return true; //#2850 + } //#2850 + var _U6 = $k[--$j]; //#2852 + var _U8 = $cvi($geti(_U6, 0, 1)); //#2852 + $k[$j++] = _U6; //#2854 + $k[$j++] = _U8; //#2854 + if (_U8 > 6) { //#2854 + $j -= 2; //#2853 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI#2853'; //#2853 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#2853 + $k[$j++] = false; //#2853 + return true; //#2853 + } //#2853 + var _U9 = $k[--$j]; //#2855 + var _UA = $k[--$j]; //#2856 + $k[$j++] = _UA; //#2858 + $k[$j++] = $f($f(_U9 + 6) + 1); //#2858 + if (($f($f(_U9 + 6) + 1)) > _UA.length) { //#2858 + $j -= 3; //#2857 + $k[$j++] = 'bwipp.GS1couponTooShortGCP#2857'; //#2857 + $k[$j++] = "Coupon too short: GCP truncated"; //#2857 + $k[$j++] = false; //#2857 + return true; //#2857 + } //#2857 + var _UB = $k[--$j]; //#2859 + var _UC = $k[--$j]; //#2859 + var _UD = $geti(_UC, _UB, $f(_UC.length - _UB)); //#2859 + $k[$j++] = _UD; //#2864 + if (_UD.length < 6) { //#2864 + $j -= 2; //#2863 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#2863'; //#2863 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#2863 + $k[$j++] = false; //#2863 + return true; //#2863 + } //#2863 + var _UE = $k[--$j]; //#2865 + var _UF = $geti(_UE, 6, _UE.length - 6); //#2865 + $k[$j++] = _UF; //#2870 + if (_UF.length < 1) { //#2870 + $j -= 2; //#2869 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI#2869'; //#2869 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#2869 + $k[$j++] = false; //#2869 + return true; //#2869 + } //#2869 + var _UG = $k[--$j]; //#2871 + var _UI = $cvi($geti(_UG, 0, 1)); //#2871 + $k[$j++] = _UG; //#2873 + $k[$j++] = _UI; //#2873 + if ((_UI < 1) || (_UI > 5)) { //#2873 + $j -= 2; //#2872 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI#2872'; //#2872 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#2872 + $k[$j++] = false; //#2872 + return true; //#2872 + } //#2872 + var _UJ = $k[--$j]; //#2874 + var _UK = $k[--$j]; //#2875 + $k[$j++] = _UK; //#2877 + $k[$j++] = $f(_UJ + 1); //#2877 + if ($f(_UJ + 1) > _UK.length) { //#2877 + $j -= 3; //#2876 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue#2876'; //#2876 + $k[$j++] = "Coupon too short: Save Value truncated"; //#2876 + $k[$j++] = false; //#2876 + return true; //#2876 + } //#2876 + var _UL = $k[--$j]; //#2878 + var _UM = $k[--$j]; //#2878 + var _UN = $geti(_UM, _UL, $f(_UM.length - _UL)); //#2878 + $k[$j++] = _UN; //#2883 + if (_UN.length < 1) { //#2883 + $j -= 2; //#2882 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI#2882'; //#2882 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#2882 + $k[$j++] = false; //#2882 + return true; //#2882 + } //#2882 + var _UO = $k[--$j]; //#2884 + var _UQ = $cvi($geti(_UO, 0, 1)); //#2884 + $k[$j++] = _UO; //#2886 + $k[$j++] = _UQ; //#2886 + if ((_UQ < 1) || (_UQ > 5)) { //#2886 + $j -= 2; //#2885 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI#2885'; //#2885 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#2885 + $k[$j++] = false; //#2885 + return true; //#2885 + } //#2885 + var _UR = $k[--$j]; //#2887 + var _US = $k[--$j]; //#2888 + $k[$j++] = _US; //#2890 + $k[$j++] = $f(_UR + 1); //#2890 + if ($f(_UR + 1) > _US.length) { //#2890 + $j -= 3; //#2889 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement#2889'; //#2889 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#2889 + $k[$j++] = false; //#2889 + return true; //#2889 + } //#2889 + var _UT = $k[--$j]; //#2891 + var _UU = $k[--$j]; //#2891 + var _UV = $geti(_UU, _UT, $f(_UU.length - _UT)); //#2891 + $k[$j++] = _UV; //#2896 + if (_UV.length < 1) { //#2896 + $j -= 2; //#2895 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode#2895'; //#2895 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#2895 + $k[$j++] = false; //#2895 + return true; //#2895 + } //#2895 + var _UW = $k[--$j]; //#2897 + var _UY = $cvi($geti(_UW, 0, 1)); //#2897 + $k[$j++] = _UW; //#2899 + if ((_UY > 4) && (_UY != 9)) { //#2899 + $j -= 2; //#2898 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode#2898'; //#2898 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#2898 + $k[$j++] = false; //#2898 + return true; //#2898 + } //#2898 + var _UZ = $k[--$j]; //#2900 + var _Ua = $geti(_UZ, 1, _UZ.length - 1); //#2900 + $k[$j++] = _Ua; //#2905 + if (_Ua.length < 3) { //#2905 + $j -= 2; //#2904 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode#2904'; //#2904 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#2904 + $k[$j++] = false; //#2904 + return true; //#2904 + } //#2904 + var _Ub = $k[--$j]; //#2906 + var _Uc = $geti(_Ub, 3, _Ub.length - 3); //#2906 + $k[$j++] = _Uc; //#2962 + if (_Uc.length >= 1) { //#2962 + var _Ud = $k[--$j]; //#2909 + $k[$j++] = _Ud; //#2962 + if ($cvi($geti(_Ud, 0, 1)) == 1) { //#2962 + var _Uf = $k[--$j]; //#2910 + var _Ug = $geti(_Uf, 1, _Uf.length - 1); //#2910 + $k[$j++] = _Ug; //#2915 + if (_Ug.length < 1) { //#2915 $j -= 2; //#2914 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2914'; //#2914 - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2914 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode#2914'; //#2914 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#2914 $k[$j++] = false; //#2914 return true; //#2914 } //#2914 - var _Pg = $k[--$j]; //#2916 - var _Pi = $cvi($geti(_Pg, 0, 1)); //#2916 - $k[$j++] = _Pg; //#2918 - $k[$j++] = _Pi; //#2918 - if ((_Pi > 6) && (_Pi != 9)) { //#2918 + var _Uh = $k[--$j]; //#2916 + $k[$j++] = _Uh; //#2918 + if ($cvi($geti(_Uh, 0, 1)) > 3) { //#2918 $j -= 2; //#2917 - $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2917'; //#2917 - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2917 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode#2917'; //#2917 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#2917 $k[$j++] = false; //#2917 return true; //#2917 } //#2917 - var _Pj = $k[--$j]; //#2919 - $k[$j++] = _Pj; //#2919 - if (_Pj != 9) { //#2919 - var _Pk = $k[--$j]; //#2919 - $k[$j++] = $f(_Pk + 6); //#2919 - } else { //#2919 - $j--; //#2919 - $k[$j++] = 0; //#2919 - } //#2919 - var _Pl = $k[--$j]; //#2919 - var _Pm = $k[--$j]; //#2920 - $k[$j++] = _Pm; //#2922 - $k[$j++] = $f(_Pl + 1); //#2922 - if ($f(_Pl + 1) > _Pm.length) { //#2922 - $j -= 3; //#2921 - $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2921'; //#2921 - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2921 - $k[$j++] = false; //#2921 - return true; //#2921 - } //#2921 - var _Pn = $k[--$j]; //#2923 - var _Po = $k[--$j]; //#2923 - $k[$j++] = $geti(_Po, _Pn, $f(_Po.length - _Pn)); //#2923 - } //#2923 - } //#2923 - var _Pq = $k[--$j]; //#2928 - $k[$j++] = _Pq; //#2972 - if (_Pq.length >= 1) { //#2972 - var _Pr = $k[--$j]; //#2928 - $k[$j++] = _Pr; //#2972 - if ($cvi($geti(_Pr, 0, 1)) == 2) { //#2972 - var _Pt = $k[--$j]; //#2929 - var _Pu = $geti(_Pt, 1, _Pt.length - 1); //#2929 - $k[$j++] = _Pu; //#2934 - if (_Pu.length < 1) { //#2934 - $j -= 2; //#2933 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2933'; //#2933 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2933 - $k[$j++] = false; //#2933 - return true; //#2933 - } //#2933 - var _Pv = $k[--$j]; //#2935 - var _Px = $cvi($geti(_Pv, 0, 1)); //#2935 - $k[$j++] = _Pv; //#2937 - $k[$j++] = _Px; //#2937 - if ((_Px < 1) || (_Px > 5)) { //#2937 + var _Uj = $k[--$j]; //#2919 + var _Uk = $geti(_Uj, 1, _Uj.length - 1); //#2919 + $k[$j++] = _Uk; //#2924 + if (_Uk.length < 1) { //#2924 + $j -= 2; //#2923 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI#2923'; //#2923 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#2923 + $k[$j++] = false; //#2923 + return true; //#2923 + } //#2923 + var _Ul = $k[--$j]; //#2925 + var _Un = $cvi($geti(_Ul, 0, 1)); //#2925 + $k[$j++] = _Ul; //#2927 + $k[$j++] = _Un; //#2927 + if ((_Un < 1) || (_Un > 5)) { //#2927 + $j -= 2; //#2926 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI#2926'; //#2926 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#2926 + $k[$j++] = false; //#2926 + return true; //#2926 + } //#2926 + var _Uo = $k[--$j]; //#2928 + var _Up = $k[--$j]; //#2929 + $k[$j++] = _Up; //#2931 + $k[$j++] = $f(_Uo + 1); //#2931 + if ($f(_Uo + 1) > _Up.length) { //#2931 + $j -= 3; //#2930 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement#2930'; //#2930 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#2930 + $k[$j++] = false; //#2930 + return true; //#2930 + } //#2930 + var _Uq = $k[--$j]; //#2932 + var _Ur = $k[--$j]; //#2932 + var _Us = $geti(_Ur, _Uq, $f(_Ur.length - _Uq)); //#2932 + $k[$j++] = _Us; //#2937 + if (_Us.length < 1) { //#2937 $j -= 2; //#2936 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2936'; //#2936 - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2936 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode#2936'; //#2936 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#2936 $k[$j++] = false; //#2936 return true; //#2936 } //#2936 - var _Py = $k[--$j]; //#2938 - var _Pz = $k[--$j]; //#2939 - $k[$j++] = _Pz; //#2941 - $k[$j++] = $f(_Py + 1); //#2941 - if ($f(_Py + 1) > _Pz.length) { //#2941 - $j -= 3; //#2940 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2940'; //#2940 - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2940 - $k[$j++] = false; //#2940 - return true; //#2940 - } //#2940 - var _Q0 = $k[--$j]; //#2942 - var _Q1 = $k[--$j]; //#2942 - var _Q2 = $geti(_Q1, _Q0, $f(_Q1.length - _Q0)); //#2942 - $k[$j++] = _Q2; //#2947 - if (_Q2.length < 1) { //#2947 - $j -= 2; //#2946 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2946'; //#2946 - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2946 - $k[$j++] = false; //#2946 - return true; //#2946 - } //#2946 - var _Q3 = $k[--$j]; //#2948 - var _Q5 = $cvi($geti(_Q3, 0, 1)); //#2948 - $k[$j++] = _Q3; //#2950 - if ((_Q5 > 4) && (_Q5 != 9)) { //#2950 - $j -= 2; //#2949 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2949'; //#2949 - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2949 - $k[$j++] = false; //#2949 - return true; //#2949 - } //#2949 - var _Q6 = $k[--$j]; //#2951 - var _Q7 = $geti(_Q6, 1, _Q6.length - 1); //#2951 - $k[$j++] = _Q7; //#2956 - if (_Q7.length < 3) { //#2956 - $j -= 2; //#2955 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2955'; //#2955 - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2955 - $k[$j++] = false; //#2955 - return true; //#2955 - } //#2955 - var _Q8 = $k[--$j]; //#2957 - var _Q9 = $geti(_Q8, 3, _Q8.length - 3); //#2957 - $k[$j++] = _Q9; //#2962 - if (_Q9.length < 1) { //#2962 - $j -= 2; //#2961 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2961'; //#2961 - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2961 - $k[$j++] = false; //#2961 - return true; //#2961 - } //#2961 - var _QA = $k[--$j]; //#2963 - var _QC = $cvi($geti(_QA, 0, 1)); //#2963 - $k[$j++] = _QA; //#2965 - $k[$j++] = _QC; //#2965 - if ((_QC > 6) && (_QC != 9)) { //#2965 - $j -= 2; //#2964 - $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#2964'; //#2964 - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#2964 - $k[$j++] = false; //#2964 - return true; //#2964 - } //#2964 - var _QD = $k[--$j]; //#2966 - $k[$j++] = _QD; //#2966 - if (_QD != 9) { //#2966 - var _QE = $k[--$j]; //#2966 - $k[$j++] = $f(_QE + 6); //#2966 - } else { //#2966 - $j--; //#2966 - $k[$j++] = 0; //#2966 - } //#2966 - var _QF = $k[--$j]; //#2966 - var _QG = $k[--$j]; //#2967 - $k[$j++] = _QG; //#2969 - $k[$j++] = $f(_QF + 1); //#2969 - if ($f(_QF + 1) > _QG.length) { //#2969 - $j -= 3; //#2968 - $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#2968'; //#2968 - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#2968 - $k[$j++] = false; //#2968 - return true; //#2968 - } //#2968 - var _QH = $k[--$j]; //#2970 - var _QI = $k[--$j]; //#2970 - $k[$j++] = $geti(_QI, _QH, $f(_QI.length - _QH)); //#2970 - } //#2970 - } //#2970 - $_.couponexpire = -1; //#2975 - var _QK = $k[--$j]; //#2976 - $k[$j++] = _QK; //#2994 - if (_QK.length >= 1) { //#2994 - var _QL = $k[--$j]; //#2976 - $k[$j++] = _QL; //#2994 - if ($cvi($geti(_QL, 0, 1)) == 3) { //#2994 - var _QN = $k[--$j]; //#2977 - var _QO = $geti(_QN, 1, _QN.length - 1); //#2977 - $k[$j++] = _QO; //#2982 - if (_QO.length < 6) { //#2982 - $j -= 2; //#2981 - $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#2981'; //#2981 - $k[$j++] = "Coupon too short: Expiration date"; //#2981 - $k[$j++] = false; //#2981 - return true; //#2981 - } //#2981 - var _QP = $k[--$j]; //#2983 - var _QR = $cvi($geti(_QP, 2, 2)); //#2983 - $k[$j++] = _QP; //#2983 - if ((_QR < 1) || (_QR > 12)) { //#2983 + var _Ut = $k[--$j]; //#2938 + var _Uv = $cvi($geti(_Ut, 0, 1)); //#2938 + $k[$j++] = _Ut; //#2940 + if ((_Uv > 4) && (_Uv != 9)) { //#2940 + $j -= 2; //#2939 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode#2939'; //#2939 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#2939 + $k[$j++] = false; //#2939 + return true; //#2939 + } //#2939 + var _Uw = $k[--$j]; //#2941 + var _Ux = $geti(_Uw, 1, _Uw.length - 1); //#2941 + $k[$j++] = _Ux; //#2946 + if (_Ux.length < 3) { //#2946 + $j -= 2; //#2945 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode#2945'; //#2945 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#2945 + $k[$j++] = false; //#2945 + return true; //#2945 + } //#2945 + var _Uy = $k[--$j]; //#2947 + var _Uz = $geti(_Uy, 3, _Uy.length - 3); //#2947 + $k[$j++] = _Uz; //#2952 + if (_Uz.length < 1) { //#2952 + $j -= 2; //#2951 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI#2951'; //#2951 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#2951 + $k[$j++] = false; //#2951 + return true; //#2951 + } //#2951 + var _V0 = $k[--$j]; //#2953 + var _V2 = $cvi($geti(_V0, 0, 1)); //#2953 + $k[$j++] = _V0; //#2955 + $k[$j++] = _V2; //#2955 + if ((_V2 > 6) && (_V2 != 9)) { //#2955 + $j -= 2; //#2954 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI#2954'; //#2954 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#2954 + $k[$j++] = false; //#2954 + return true; //#2954 + } //#2954 + var _V3 = $k[--$j]; //#2956 + $k[$j++] = _V3; //#2956 + if (_V3 != 9) { //#2956 + var _V4 = $k[--$j]; //#2956 + $k[$j++] = $f(_V4 + 6); //#2956 + } else { //#2956 + $j--; //#2956 + $k[$j++] = 0; //#2956 + } //#2956 + var _V5 = $k[--$j]; //#2956 + var _V6 = $k[--$j]; //#2957 + $k[$j++] = _V6; //#2959 + $k[$j++] = $f(_V5 + 1); //#2959 + if ($f(_V5 + 1) > _V6.length) { //#2959 + $j -= 3; //#2958 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP#2958'; //#2958 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#2958 + $k[$j++] = false; //#2958 + return true; //#2958 + } //#2958 + var _V7 = $k[--$j]; //#2960 + var _V8 = $k[--$j]; //#2960 + $k[$j++] = $geti(_V8, _V7, $f(_V8.length - _V7)); //#2960 + } //#2960 + } //#2960 + var _VA = $k[--$j]; //#2965 + $k[$j++] = _VA; //#3009 + if (_VA.length >= 1) { //#3009 + var _VB = $k[--$j]; //#2965 + $k[$j++] = _VB; //#3009 + if ($cvi($geti(_VB, 0, 1)) == 2) { //#3009 + var _VD = $k[--$j]; //#2966 + var _VE = $geti(_VD, 1, _VD.length - 1); //#2966 + $k[$j++] = _VE; //#2971 + if (_VE.length < 1) { //#2971 + $j -= 2; //#2970 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI#2970'; //#2970 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#2970 + $k[$j++] = false; //#2970 + return true; //#2970 + } //#2970 + var _VF = $k[--$j]; //#2972 + var _VH = $cvi($geti(_VF, 0, 1)); //#2972 + $k[$j++] = _VF; //#2974 + $k[$j++] = _VH; //#2974 + if ((_VH < 1) || (_VH > 5)) { //#2974 + $j -= 2; //#2973 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI#2973'; //#2973 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#2973 + $k[$j++] = false; //#2973 + return true; //#2973 + } //#2973 + var _VI = $k[--$j]; //#2975 + var _VJ = $k[--$j]; //#2976 + $k[$j++] = _VJ; //#2978 + $k[$j++] = $f(_VI + 1); //#2978 + if ($f(_VI + 1) > _VJ.length) { //#2978 + $j -= 3; //#2977 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement#2977'; //#2977 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#2977 + $k[$j++] = false; //#2977 + return true; //#2977 + } //#2977 + var _VK = $k[--$j]; //#2979 + var _VL = $k[--$j]; //#2979 + var _VM = $geti(_VL, _VK, $f(_VL.length - _VK)); //#2979 + $k[$j++] = _VM; //#2984 + if (_VM.length < 1) { //#2984 $j -= 2; //#2983 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#2983'; //#2983 - $k[$j++] = "Invalid month in expiration date"; //#2983 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode#2983'; //#2983 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#2983 $k[$j++] = false; //#2983 return true; //#2983 } //#2983 - var _QS = $k[--$j]; //#2984 - var _QU = $cvi($geti(_QS, 0, 2)); //#2984 - var _QV = _QU - 21; //#2985 - $k[$j++] = _QS; //#2985 - $k[$j++] = _QU; //#2985 - $k[$j++] = _QV; //#2985 - if (_QV >= 51) { //#2985 - $j--; //#2985 - var _QW = $k[--$j]; //#2985 - $k[$j++] = $f(_QW + 1900); //#2985 - } else { //#2985 - if ($k[--$j] <= -50) { //#2985 - var _QY = $k[--$j]; //#2985 - $k[$j++] = $f(_QY + 2100); //#2985 - } else { //#2985 - var _QZ = $k[--$j]; //#2985 - $k[$j++] = $f(_QZ + 2000); //#2985 - } //#2985 - } //#2985 - var _Qa = $k[--$j]; //#2986 - $k[$j++] = ((_Qa % 400) == 0) || (((_Qa % 4) == 0) && ((_Qa % 100) != 0)); //#2987 - $k[$j++] = Infinity; //#2987 - var _Qb = $k[--$j]; //#2987 - var _Qd = $k[--$j] ? 29 : 28; //#2987 - $k[$j++] = _Qb; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = _Qd; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - $k[$j++] = 30; //#2987 - $k[$j++] = 31; //#2987 - var _Qe = $a(); //#2987 - var _Qf = $k[--$j]; //#2988 - var _Qj = $cvi($geti(_Qf, 4, 2)); //#2989 - $k[$j++] = _Qf; //#2990 - if (($get(_Qe, $cvi($geti(_Qf, 2, 2)) - 1) < _Qj) || (_Qj < 1)) { //#2990 - $j -= 2; //#2990 - $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#2990'; //#2990 - $k[$j++] = "Invalid day of month in expiration date"; //#2990 - $k[$j++] = false; //#2990 - return true; //#2990 - } //#2990 - var _Qk = $k[--$j]; //#2991 - $_.couponexpire = $cvi($geti(_Qk, 0, 6)); //#2991 - $k[$j++] = $geti(_Qk, 6, _Qk.length - 6); //#2992 - } //#2992 - } //#2992 - var _Qn = $k[--$j]; //#2997 - $k[$j++] = _Qn; //#3018 - if (_Qn.length >= 1) { //#3018 - var _Qo = $k[--$j]; //#2997 - $k[$j++] = _Qo; //#3018 - if ($cvi($geti(_Qo, 0, 1)) == 4) { //#3018 - var _Qq = $k[--$j]; //#2998 - var _Qr = $geti(_Qq, 1, _Qq.length - 1); //#2998 - $k[$j++] = _Qr; //#3003 - if (_Qr.length < 6) { //#3003 - $j -= 2; //#3002 - $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3002'; //#3002 - $k[$j++] = "Coupon too short: Start date"; //#3002 - $k[$j++] = false; //#3002 - return true; //#3002 - } //#3002 - var _Qs = $k[--$j]; //#3004 - var _Qu = $cvi($geti(_Qs, 2, 2)); //#3004 - $k[$j++] = _Qs; //#3004 - if ((_Qu < 1) || (_Qu > 12)) { //#3004 - $j -= 2; //#3004 - $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3004'; //#3004 - $k[$j++] = "Invalid month in start date"; //#3004 - $k[$j++] = false; //#3004 - return true; //#3004 - } //#3004 - var _Qv = $k[--$j]; //#3005 - var _Qx = $cvi($geti(_Qv, 0, 2)); //#3005 - var _Qy = _Qx - 21; //#3006 - $k[$j++] = _Qv; //#3006 - $k[$j++] = _Qx; //#3006 - $k[$j++] = _Qy; //#3006 - if (_Qy >= 51) { //#3006 - $j--; //#3006 - var _Qz = $k[--$j]; //#3006 - $k[$j++] = $f(_Qz + 1900); //#3006 - } else { //#3006 - if ($k[--$j] <= -50) { //#3006 - var _R1 = $k[--$j]; //#3006 - $k[$j++] = $f(_R1 + 2100); //#3006 - } else { //#3006 - var _R2 = $k[--$j]; //#3006 - $k[$j++] = $f(_R2 + 2000); //#3006 - } //#3006 - } //#3006 - var _R3 = $k[--$j]; //#3007 - $k[$j++] = ((_R3 % 400) == 0) || (((_R3 % 4) == 0) && ((_R3 % 100) != 0)); //#3008 - $k[$j++] = Infinity; //#3008 - var _R4 = $k[--$j]; //#3008 - var _R6 = $k[--$j] ? 29 : 28; //#3008 - $k[$j++] = _R4; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = _R6; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - $k[$j++] = 30; //#3008 - $k[$j++] = 31; //#3008 - var _R7 = $a(); //#3008 - var _R8 = $k[--$j]; //#3009 - var _RC = $cvi($geti(_R8, 4, 2)); //#3010 - $k[$j++] = _R8; //#3011 - if (($get(_R7, $cvi($geti(_R8, 2, 2)) - 1) < _RC) || (_RC < 1)) { //#3011 - $j -= 2; //#3011 - $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3011'; //#3011 - $k[$j++] = "Invalid day of month in start date"; //#3011 - $k[$j++] = false; //#3011 - return true; //#3011 - } //#3011 - var _RD = $k[--$j]; //#3012 - $_.couponstart = $cvi($geti(_RD, 0, 6)); //#3012 - $k[$j++] = _RD; //#3015 - if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3015 - $j -= 2; //#3014 - $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3014'; //#3014 - $k[$j++] = "Coupon expires before it starts"; //#3014 - $k[$j++] = false; //#3014 - return true; //#3014 - } //#3014 - var _RI = $k[--$j]; //#3016 - $k[$j++] = $geti(_RI, 6, _RI.length - 6); //#3016 - } //#3016 - } //#3016 - var _RK = $k[--$j]; //#3021 - $k[$j++] = _RK; //#3034 - if (_RK.length >= 1) { //#3034 - var _RL = $k[--$j]; //#3021 - $k[$j++] = _RL; //#3034 - if ($cvi($geti(_RL, 0, 1)) == 5) { //#3034 - var _RN = $k[--$j]; //#3022 - var _RO = $geti(_RN, 1, _RN.length - 1); //#3022 - $k[$j++] = _RO; //#3027 - if (_RO.length < 1) { //#3027 - $j -= 2; //#3026 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3026'; //#3026 - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3026 - $k[$j++] = false; //#3026 - return true; //#3026 - } //#3026 - var _RP = $k[--$j]; //#3028 - var _RQ = $geti(_RP, 0, 1); //#3028 - $k[$j++] = _RP; //#3031 - $k[$j++] = ($cvi(_RQ) + 6) + 1; //#3031 - if ((($cvi(_RQ) + 6) + 1) > _RP.length) { //#3031 - $j -= 3; //#3030 - $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3030'; //#3030 - $k[$j++] = "Coupon too short: Serial Number truncated"; //#3030 - $k[$j++] = false; //#3030 - return true; //#3030 - } //#3030 - var _RR = $k[--$j]; //#3032 - var _RS = $k[--$j]; //#3032 - $k[$j++] = $geti(_RS, _RR, $f(_RS.length - _RR)); //#3032 - } //#3032 - } //#3032 - var _RU = $k[--$j]; //#3037 - $k[$j++] = _RU; //#3053 - if (_RU.length >= 1) { //#3053 - var _RV = $k[--$j]; //#3037 - $k[$j++] = _RV; //#3053 - if ($cvi($geti(_RV, 0, 1)) == 6) { //#3053 - var _RX = $k[--$j]; //#3038 - var _RY = $geti(_RX, 1, _RX.length - 1); //#3038 - $k[$j++] = _RY; //#3043 - if (_RY.length < 1) { //#3043 - $j -= 2; //#3042 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3042'; //#3042 - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3042 - $k[$j++] = false; //#3042 - return true; //#3042 - } //#3042 - var _RZ = $k[--$j]; //#3044 - var _Rb = $cvi($geti(_RZ, 0, 1)); //#3044 - $k[$j++] = _RZ; //#3046 - $k[$j++] = _Rb; //#3046 - if ((_Rb < 1) || (_Rb > 7)) { //#3046 - $j -= 2; //#3045 - $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3045'; //#3045 - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3045 - $k[$j++] = false; //#3045 - return true; //#3045 - } //#3045 - var _Rc = $k[--$j]; //#3047 - var _Rd = $k[--$j]; //#3048 - $k[$j++] = _Rd; //#3050 - $k[$j++] = $f($f(_Rc + 6) + 1); //#3050 - if (($f($f(_Rc + 6) + 1)) > _Rd.length) { //#3050 - $j -= 3; //#3049 - $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3049'; //#3049 - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3049 - $k[$j++] = false; //#3049 - return true; //#3049 - } //#3049 - var _Re = $k[--$j]; //#3051 - var _Rf = $k[--$j]; //#3051 - $k[$j++] = $geti(_Rf, _Re, $f(_Rf.length - _Re)); //#3051 - } //#3051 - } //#3051 - var _Rh = $k[--$j]; //#3056 - $k[$j++] = _Rh; //#3092 - if (_Rh.length >= 1) { //#3092 - var _Ri = $k[--$j]; //#3056 - $k[$j++] = _Ri; //#3092 - if ($cvi($geti(_Ri, 0, 1)) == 9) { //#3092 - var _Rk = $k[--$j]; //#3057 - var _Rl = $geti(_Rk, 1, _Rk.length - 1); //#3057 - $k[$j++] = _Rl; //#3062 - if (_Rl.length < 1) { //#3062 - $j -= 2; //#3061 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3061'; //#3061 - $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3061 - $k[$j++] = false; //#3061 - return true; //#3061 - } //#3061 - var _Rm = $k[--$j]; //#3063 - var _Ro = $cvi($geti(_Rm, 0, 1)); //#3063 - $k[$j++] = _Rm; //#3065 - if ((_Ro > 6) || ((_Ro == 3) || (_Ro == 4))) { //#3065 - $j -= 2; //#3064 - $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3064'; //#3064 - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3064 - $k[$j++] = false; //#3064 - return true; //#3064 - } //#3064 - var _Rp = $k[--$j]; //#3066 - var _Rq = $geti(_Rp, 1, _Rp.length - 1); //#3066 - $k[$j++] = _Rq; //#3071 - if (_Rq.length < 1) { //#3071 - $j -= 2; //#3070 - $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3070'; //#3070 - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3070 - $k[$j++] = false; //#3070 - return true; //#3070 - } //#3070 - var _Rr = $k[--$j]; //#3072 - $k[$j++] = _Rr; //#3074 - if ($cvi($geti(_Rr, 0, 1)) > 2) { //#3074 - $j -= 2; //#3073 - $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3073'; //#3073 - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3073 - $k[$j++] = false; //#3073 - return true; //#3073 - } //#3073 - var _Rt = $k[--$j]; //#3075 - var _Ru = $geti(_Rt, 1, _Rt.length - 1); //#3075 - $k[$j++] = _Ru; //#3080 - if (_Ru.length < 1) { //#3080 + var _VN = $k[--$j]; //#2985 + var _VP = $cvi($geti(_VN, 0, 1)); //#2985 + $k[$j++] = _VN; //#2987 + if ((_VP > 4) && (_VP != 9)) { //#2987 + $j -= 2; //#2986 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode#2986'; //#2986 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#2986 + $k[$j++] = false; //#2986 + return true; //#2986 + } //#2986 + var _VQ = $k[--$j]; //#2988 + var _VR = $geti(_VQ, 1, _VQ.length - 1); //#2988 + $k[$j++] = _VR; //#2993 + if (_VR.length < 3) { //#2993 + $j -= 2; //#2992 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode#2992'; //#2992 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#2992 + $k[$j++] = false; //#2992 + return true; //#2992 + } //#2992 + var _VS = $k[--$j]; //#2994 + var _VT = $geti(_VS, 3, _VS.length - 3); //#2994 + $k[$j++] = _VT; //#2999 + if (_VT.length < 1) { //#2999 + $j -= 2; //#2998 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI#2998'; //#2998 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#2998 + $k[$j++] = false; //#2998 + return true; //#2998 + } //#2998 + var _VU = $k[--$j]; //#3000 + var _VW = $cvi($geti(_VU, 0, 1)); //#3000 + $k[$j++] = _VU; //#3002 + $k[$j++] = _VW; //#3002 + if ((_VW > 6) && (_VW != 9)) { //#3002 + $j -= 2; //#3001 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI#3001'; //#3001 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#3001 + $k[$j++] = false; //#3001 + return true; //#3001 + } //#3001 + var _VX = $k[--$j]; //#3003 + $k[$j++] = _VX; //#3003 + if (_VX != 9) { //#3003 + var _VY = $k[--$j]; //#3003 + $k[$j++] = $f(_VY + 6); //#3003 + } else { //#3003 + $j--; //#3003 + $k[$j++] = 0; //#3003 + } //#3003 + var _VZ = $k[--$j]; //#3003 + var _Va = $k[--$j]; //#3004 + $k[$j++] = _Va; //#3006 + $k[$j++] = $f(_VZ + 1); //#3006 + if ($f(_VZ + 1) > _Va.length) { //#3006 + $j -= 3; //#3005 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP#3005'; //#3005 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#3005 + $k[$j++] = false; //#3005 + return true; //#3005 + } //#3005 + var _Vb = $k[--$j]; //#3007 + var _Vc = $k[--$j]; //#3007 + $k[$j++] = $geti(_Vc, _Vb, $f(_Vc.length - _Vb)); //#3007 + } //#3007 + } //#3007 + $_.couponexpire = -1; //#3012 + var _Ve = $k[--$j]; //#3013 + $k[$j++] = _Ve; //#3031 + if (_Ve.length >= 1) { //#3031 + var _Vf = $k[--$j]; //#3013 + $k[$j++] = _Vf; //#3031 + if ($cvi($geti(_Vf, 0, 1)) == 3) { //#3031 + var _Vh = $k[--$j]; //#3014 + var _Vi = $geti(_Vh, 1, _Vh.length - 1); //#3014 + $k[$j++] = _Vi; //#3019 + if (_Vi.length < 6) { //#3019 + $j -= 2; //#3018 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate#3018'; //#3018 + $k[$j++] = "Coupon too short: Expiration date"; //#3018 + $k[$j++] = false; //#3018 + return true; //#3018 + } //#3018 + var _Vj = $k[--$j]; //#3020 + var _Vl = $cvi($geti(_Vj, 2, 2)); //#3020 + $k[$j++] = _Vj; //#3020 + if ((_Vl < 1) || (_Vl > 12)) { //#3020 + $j -= 2; //#3020 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth#3020'; //#3020 + $k[$j++] = "Invalid month in expiration date"; //#3020 + $k[$j++] = false; //#3020 + return true; //#3020 + } //#3020 + var _Vm = $k[--$j]; //#3021 + var _Vo = $cvi($geti(_Vm, 0, 2)); //#3021 + var _Vp = _Vo - 21; //#3022 + $k[$j++] = _Vm; //#3022 + $k[$j++] = _Vo; //#3022 + $k[$j++] = _Vp; //#3022 + if (_Vp >= 51) { //#3022 + $j--; //#3022 + var _Vq = $k[--$j]; //#3022 + $k[$j++] = $f(_Vq + 1900); //#3022 + } else { //#3022 + if ($k[--$j] <= -50) { //#3022 + var _Vs = $k[--$j]; //#3022 + $k[$j++] = $f(_Vs + 2100); //#3022 + } else { //#3022 + var _Vt = $k[--$j]; //#3022 + $k[$j++] = $f(_Vt + 2000); //#3022 + } //#3022 + } //#3022 + var _Vu = $k[--$j]; //#3023 + $k[$j++] = ((_Vu % 400) == 0) || (((_Vu % 4) == 0) && ((_Vu % 100) != 0)); //#3024 + $k[$j++] = Infinity; //#3024 + var _Vv = $k[--$j]; //#3024 + var _Vx = $k[--$j] ? 29 : 28; //#3024 + $k[$j++] = _Vv; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = _Vx; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + $k[$j++] = 30; //#3024 + $k[$j++] = 31; //#3024 + var _Vy = $a(); //#3024 + var _Vz = $k[--$j]; //#3025 + var _W3 = $cvi($geti(_Vz, 4, 2)); //#3026 + $k[$j++] = _Vz; //#3027 + if (($get(_Vy, $cvi($geti(_Vz, 2, 2)) - 1) < _W3) || (_W3 < 1)) { //#3027 + $j -= 2; //#3027 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay#3027'; //#3027 + $k[$j++] = "Invalid day of month in expiration date"; //#3027 + $k[$j++] = false; //#3027 + return true; //#3027 + } //#3027 + var _W4 = $k[--$j]; //#3028 + $_.couponexpire = $cvi($geti(_W4, 0, 6)); //#3028 + $k[$j++] = $geti(_W4, 6, _W4.length - 6); //#3029 + } //#3029 + } //#3029 + var _W7 = $k[--$j]; //#3034 + $k[$j++] = _W7; //#3055 + if (_W7.length >= 1) { //#3055 + var _W8 = $k[--$j]; //#3034 + $k[$j++] = _W8; //#3055 + if ($cvi($geti(_W8, 0, 1)) == 4) { //#3055 + var _WA = $k[--$j]; //#3035 + var _WB = $geti(_WA, 1, _WA.length - 1); //#3035 + $k[$j++] = _WB; //#3040 + if (_WB.length < 6) { //#3040 + $j -= 2; //#3039 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate#3039'; //#3039 + $k[$j++] = "Coupon too short: Start date"; //#3039 + $k[$j++] = false; //#3039 + return true; //#3039 + } //#3039 + var _WC = $k[--$j]; //#3041 + var _WE = $cvi($geti(_WC, 2, 2)); //#3041 + $k[$j++] = _WC; //#3041 + if ((_WE < 1) || (_WE > 12)) { //#3041 + $j -= 2; //#3041 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth#3041'; //#3041 + $k[$j++] = "Invalid month in start date"; //#3041 + $k[$j++] = false; //#3041 + return true; //#3041 + } //#3041 + var _WF = $k[--$j]; //#3042 + var _WH = $cvi($geti(_WF, 0, 2)); //#3042 + var _WI = _WH - 21; //#3043 + $k[$j++] = _WF; //#3043 + $k[$j++] = _WH; //#3043 + $k[$j++] = _WI; //#3043 + if (_WI >= 51) { //#3043 + $j--; //#3043 + var _WJ = $k[--$j]; //#3043 + $k[$j++] = $f(_WJ + 1900); //#3043 + } else { //#3043 + if ($k[--$j] <= -50) { //#3043 + var _WL = $k[--$j]; //#3043 + $k[$j++] = $f(_WL + 2100); //#3043 + } else { //#3043 + var _WM = $k[--$j]; //#3043 + $k[$j++] = $f(_WM + 2000); //#3043 + } //#3043 + } //#3043 + var _WN = $k[--$j]; //#3044 + $k[$j++] = ((_WN % 400) == 0) || (((_WN % 4) == 0) && ((_WN % 100) != 0)); //#3045 + $k[$j++] = Infinity; //#3045 + var _WO = $k[--$j]; //#3045 + var _WQ = $k[--$j] ? 29 : 28; //#3045 + $k[$j++] = _WO; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = _WQ; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + $k[$j++] = 30; //#3045 + $k[$j++] = 31; //#3045 + var _WR = $a(); //#3045 + var _WS = $k[--$j]; //#3046 + var _WW = $cvi($geti(_WS, 4, 2)); //#3047 + $k[$j++] = _WS; //#3048 + if (($get(_WR, $cvi($geti(_WS, 2, 2)) - 1) < _WW) || (_WW < 1)) { //#3048 + $j -= 2; //#3048 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay#3048'; //#3048 + $k[$j++] = "Invalid day of month in start date"; //#3048 + $k[$j++] = false; //#3048 + return true; //#3048 + } //#3048 + var _WX = $k[--$j]; //#3049 + $_.couponstart = $cvi($geti(_WX, 0, 6)); //#3049 + $k[$j++] = _WX; //#3052 + if (($_.couponexpire != -1) && ($_.couponexpire < $_.couponstart)) { //#3052 + $j -= 2; //#3051 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate#3051'; //#3051 + $k[$j++] = "Coupon expires before it starts"; //#3051 + $k[$j++] = false; //#3051 + return true; //#3051 + } //#3051 + var _Wc = $k[--$j]; //#3053 + $k[$j++] = $geti(_Wc, 6, _Wc.length - 6); //#3053 + } //#3053 + } //#3053 + var _We = $k[--$j]; //#3058 + $k[$j++] = _We; //#3071 + if (_We.length >= 1) { //#3071 + var _Wf = $k[--$j]; //#3058 + $k[$j++] = _Wf; //#3071 + if ($cvi($geti(_Wf, 0, 1)) == 5) { //#3071 + var _Wh = $k[--$j]; //#3059 + var _Wi = $geti(_Wh, 1, _Wh.length - 1); //#3059 + $k[$j++] = _Wi; //#3064 + if (_Wi.length < 1) { //#3064 + $j -= 2; //#3063 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI#3063'; //#3063 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#3063 + $k[$j++] = false; //#3063 + return true; //#3063 + } //#3063 + var _Wj = $k[--$j]; //#3065 + var _Wk = $geti(_Wj, 0, 1); //#3065 + $k[$j++] = _Wj; //#3068 + $k[$j++] = ($cvi(_Wk) + 6) + 1; //#3068 + if ((($cvi(_Wk) + 6) + 1) > _Wj.length) { //#3068 + $j -= 3; //#3067 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber#3067'; //#3067 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#3067 + $k[$j++] = false; //#3067 + return true; //#3067 + } //#3067 + var _Wl = $k[--$j]; //#3069 + var _Wm = $k[--$j]; //#3069 + $k[$j++] = $geti(_Wm, _Wl, $f(_Wm.length - _Wl)); //#3069 + } //#3069 + } //#3069 + var _Wo = $k[--$j]; //#3074 + $k[$j++] = _Wo; //#3090 + if (_Wo.length >= 1) { //#3090 + var _Wp = $k[--$j]; //#3074 + $k[$j++] = _Wp; //#3090 + if ($cvi($geti(_Wp, 0, 1)) == 6) { //#3090 + var _Wr = $k[--$j]; //#3075 + var _Ws = $geti(_Wr, 1, _Wr.length - 1); //#3075 + $k[$j++] = _Ws; //#3080 + if (_Ws.length < 1) { //#3080 $j -= 2; //#3079 - $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3079'; //#3079 - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3079 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI#3079'; //#3079 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#3079 $k[$j++] = false; //#3079 return true; //#3079 } //#3079 - var _Rv = $k[--$j]; //#3081 - var _Rw = $geti(_Rv, 1, _Rv.length - 1); //#3081 - $k[$j++] = _Rw; //#3086 - if (_Rw.length < 1) { //#3086 - $j -= 2; //#3085 - $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3085'; //#3085 - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3085 - $k[$j++] = false; //#3085 - return true; //#3085 - } //#3085 - var _Rx = $k[--$j]; //#3087 - $k[$j++] = _Rx; //#3089 - if ($cvi($geti(_Rx, 0, 1)) > 1) { //#3089 - $j -= 2; //#3088 - $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3088'; //#3088 - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3088 - $k[$j++] = false; //#3088 - return true; //#3088 - } //#3088 - var _Rz = $k[--$j]; //#3090 - $k[$j++] = $geti(_Rz, 1, _Rz.length - 1); //#3090 - } //#3090 - } //#3090 - var _S1 = $k[--$j]; //#3094 - $k[$j++] = _S1; //#3096 - if (_S1.length != 0) { //#3096 - $j -= 2; //#3095 - $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3095'; //#3095 - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3095 - $k[$j++] = false; //#3095 - return true; //#3095 - } //#3095 - $j--; //#3097 - }; //#3097 - $_.lintcouponposoffer = function() { - var _S2 = $k[--$j]; //#3101 - $k[$j++] = _S2; //#3103 - $k[$j++] = true; //#3103 - $forall(_S2, function() { //#3103 - var _S3 = $k[--$j]; //#3102 - if ((_S3 < 48) || (_S3 > 57)) { //#3102 - $j--; //#3102 - $k[$j++] = false; //#3102 - return true; //#3102 - } //#3102 - }); //#3102 - if ($nt($k[--$j])) { //#3104 - $j -= 2; //#3104 - $k[$j++] = 'bwipp.GS1couponNotNumeric#3104'; //#3104 - $k[$j++] = "Coupon not numeric"; //#3104 - $k[$j++] = false; //#3104 - return true; //#3104 - } //#3104 - var _S5 = $k[--$j]; //#3106 - $k[$j++] = _S5; //#3108 - if (_S5.length < 1) { //#3108 - $j -= 2; //#3107 - $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3107'; //#3107 - $k[$j++] = "Coupon too short: Missing Format Code"; //#3107 - $k[$j++] = false; //#3107 - return true; //#3107 - } //#3107 - var _S6 = $k[--$j]; //#3109 - var _S7 = $geti(_S6, 0, 1); //#3109 - $k[$j++] = _S6; //#3111 - if ($ne(_S7, "0") && $ne(_S7, "1")) { //#3111 - $j -= 2; //#3110 - $k[$j++] = 'bwipp.GS1couponBadFormatCode#3110'; //#3110 - $k[$j++] = "Coupon format must be 0 or 1"; //#3110 - $k[$j++] = false; //#3110 - return true; //#3110 - } //#3110 - var _S8 = $k[--$j]; //#3112 - var _S9 = $geti(_S8, 1, _S8.length - 1); //#3112 - $k[$j++] = _S9; //#3116 - if (_S9.length < 1) { //#3116 - $j -= 2; //#3115 - $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3115'; //#3115 - $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3115 - $k[$j++] = false; //#3115 - return true; //#3115 - } //#3115 - var _SA = $k[--$j]; //#3117 - var _SC = $cvi($geti(_SA, 0, 1)); //#3117 - $k[$j++] = _SA; //#3119 - $k[$j++] = _SC; //#3119 - if (_SC > 6) { //#3119 - $j -= 3; //#3118 - $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3118'; //#3118 - $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3118 - $k[$j++] = false; //#3118 - return true; //#3118 - } //#3118 - var _SD = $k[--$j]; //#3120 - var _SE = $k[--$j]; //#3121 - $k[$j++] = _SE; //#3123 - $k[$j++] = $f($f(_SD + 6) + 1); //#3123 - if (($f($f(_SD + 6) + 1)) > _SE.length) { //#3123 - $j -= 3; //#3122 - $k[$j++] = 'bwipp.GS1couponTooShortFunder#3122'; //#3122 - $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3122 - $k[$j++] = false; //#3122 - return true; //#3122 - } //#3122 - var _SF = $k[--$j]; //#3124 - var _SG = $k[--$j]; //#3124 - var _SH = $geti(_SG, _SF, $f(_SG.length - _SF)); //#3124 - $k[$j++] = _SH; //#3128 - if (_SH.length < 6) { //#3128 - $j -= 2; //#3127 - $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3127'; //#3127 - $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3127 - $k[$j++] = false; //#3127 - return true; //#3127 + var _Wt = $k[--$j]; //#3081 + var _Wv = $cvi($geti(_Wt, 0, 1)); //#3081 + $k[$j++] = _Wt; //#3083 + $k[$j++] = _Wv; //#3083 + if ((_Wv < 1) || (_Wv > 7)) { //#3083 + $j -= 2; //#3082 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI#3082'; //#3082 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#3082 + $k[$j++] = false; //#3082 + return true; //#3082 + } //#3082 + var _Ww = $k[--$j]; //#3084 + var _Wx = $k[--$j]; //#3085 + $k[$j++] = _Wx; //#3087 + $k[$j++] = $f($f(_Ww + 6) + 1); //#3087 + if (($f($f(_Ww + 6) + 1)) > _Wx.length) { //#3087 + $j -= 3; //#3086 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN#3086'; //#3086 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#3086 + $k[$j++] = false; //#3086 + return true; //#3086 + } //#3086 + var _Wy = $k[--$j]; //#3088 + var _Wz = $k[--$j]; //#3088 + $k[$j++] = $geti(_Wz, _Wy, $f(_Wz.length - _Wy)); //#3088 + } //#3088 + } //#3088 + var _X1 = $k[--$j]; //#3093 + $k[$j++] = _X1; //#3129 + if (_X1.length >= 1) { //#3129 + var _X2 = $k[--$j]; //#3093 + $k[$j++] = _X2; //#3129 + if ($cvi($geti(_X2, 0, 1)) == 9) { //#3129 + var _X4 = $k[--$j]; //#3094 + var _X5 = $geti(_X4, 1, _X4.length - 1); //#3094 + $k[$j++] = _X5; //#3099 + if (_X5.length < 1) { //#3099 + $j -= 2; //#3098 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode#3098'; //#3098 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#3098 + $k[$j++] = false; //#3098 + return true; //#3098 + } //#3098 + var _X6 = $k[--$j]; //#3100 + var _X8 = $cvi($geti(_X6, 0, 1)); //#3100 + $k[$j++] = _X6; //#3102 + if ((_X8 > 6) || ((_X8 == 3) || (_X8 == 4))) { //#3102 + $j -= 2; //#3101 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode#3101'; //#3101 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#3101 + $k[$j++] = false; //#3101 + return true; //#3101 + } //#3101 + var _X9 = $k[--$j]; //#3103 + var _XA = $geti(_X9, 1, _X9.length - 1); //#3103 + $k[$j++] = _XA; //#3108 + if (_XA.length < 1) { //#3108 + $j -= 2; //#3107 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem#3107'; //#3107 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#3107 + $k[$j++] = false; //#3107 + return true; //#3107 + } //#3107 + var _XB = $k[--$j]; //#3109 + $k[$j++] = _XB; //#3111 + if ($cvi($geti(_XB, 0, 1)) > 2) { //#3111 + $j -= 2; //#3110 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem#3110'; //#3110 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#3110 + $k[$j++] = false; //#3110 + return true; //#3110 + } //#3110 + var _XD = $k[--$j]; //#3112 + var _XE = $geti(_XD, 1, _XD.length - 1); //#3112 + $k[$j++] = _XE; //#3117 + if (_XE.length < 1) { //#3117 + $j -= 2; //#3116 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag#3116'; //#3116 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#3116 + $k[$j++] = false; //#3116 + return true; //#3116 + } //#3116 + var _XF = $k[--$j]; //#3118 + var _XG = $geti(_XF, 1, _XF.length - 1); //#3118 + $k[$j++] = _XG; //#3123 + if (_XG.length < 1) { //#3123 + $j -= 2; //#3122 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag#3122'; //#3122 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#3122 + $k[$j++] = false; //#3122 + return true; //#3122 + } //#3122 + var _XH = $k[--$j]; //#3124 + $k[$j++] = _XH; //#3126 + if ($cvi($geti(_XH, 0, 1)) > 1) { //#3126 + $j -= 2; //#3125 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag#3125'; //#3125 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#3125 + $k[$j++] = false; //#3125 + return true; //#3125 + } //#3125 + var _XJ = $k[--$j]; //#3127 + $k[$j++] = $geti(_XJ, 1, _XJ.length - 1); //#3127 + } //#3127 } //#3127 - var _SI = $k[--$j]; //#3129 - var _SJ = $geti(_SI, 6, _SI.length - 6); //#3129 - $k[$j++] = _SJ; //#3133 - if (_SJ.length < 1) { //#3133 + var _XL = $k[--$j]; //#3131 + $k[$j++] = _XL; //#3133 + if (_XL.length != 0) { //#3133 $j -= 2; //#3132 - $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3132'; //#3132 - $k[$j++] = "Coupon too short: Missing SN VLI"; //#3132 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField#3132'; //#3132 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#3132 $k[$j++] = false; //#3132 return true; //#3132 } //#3132 - var _SK = $k[--$j]; //#3134 - var _SL = $geti(_SK, 0, 1); //#3134 - $k[$j++] = _SK; //#3138 - $k[$j++] = ($cvi(_SL) + 6) + 1; //#3138 - if ((($cvi(_SL) + 6) + 1) > _SK.length) { //#3138 - $j -= 3; //#3137 - $k[$j++] = 'bwipp.GS1couponTooShortSn#3137'; //#3137 - $k[$j++] = "Coupon too short: Truncated SN"; //#3137 - $k[$j++] = false; //#3137 - return true; //#3137 - } //#3137 - var _SM = $k[--$j]; //#3139 - var _SN = $k[--$j]; //#3139 - var _SO = $geti(_SN, _SM, $f(_SN.length - _SM)); //#3139 - $k[$j++] = _SO; //#3142 - if (_SO.length != 0) { //#3142 + $j--; //#3134 + }; //#3134 + $_.lintcouponposoffer = function() { + var _XM = $k[--$j]; //#3138 + $k[$j++] = _XM; //#3140 + $k[$j++] = true; //#3140 + $forall(_XM, function() { //#3140 + var _XN = $k[--$j]; //#3139 + if ((_XN < 48) || (_XN > 57)) { //#3139 + $j--; //#3139 + $k[$j++] = false; //#3139 + return true; //#3139 + } //#3139 + }); //#3139 + if ($nt($k[--$j])) { //#3141 $j -= 2; //#3141 - $k[$j++] = 'bwipp.GS1couponTooLong#3141'; //#3141 - $k[$j++] = "Coupon too long"; //#3141 + $k[$j++] = 'bwipp.GS1couponNotNumeric#3141'; //#3141 + $k[$j++] = "Coupon not numeric"; //#3141 $k[$j++] = false; //#3141 return true; //#3141 } //#3141 - $j--; //#3143 - }; //#3143 - $_.lintlatlong = function() { - var _SP = $k[--$j]; //#3147 - $k[$j++] = _SP; //#3149 - if (_SP.length != 20) { //#3149 - $j--; //#3148 - $k[$j++] = 'bwipp.GS1badGeoLength#3148'; //#3148 - $k[$j++] = "Invalid length for a geo-location"; //#3148 - $k[$j++] = false; //#3148 - return true; //#3148 - } //#3148 - var _SQ = $k[--$j]; //#3150 - $k[$j++] = _SQ; //#3150 - if ($cvi($geti(_SQ, 0, 10)) > 1800000000) { //#3150 - $j--; //#3150 - $k[$j++] = 'bwipp.GS1badLatitude#3150'; //#3150 - $k[$j++] = "Invalid value for latitude"; //#3150 - $k[$j++] = false; //#3150 - return true; //#3150 - } //#3150 - var _SS = $k[--$j]; //#3151 - $k[$j++] = _SS; //#3151 - if ($cvi($geti(_SS, 10, 10)) > 3600000000) { //#3151 - $j--; //#3151 - $k[$j++] = 'bwipp.GS1badLongitude#3151'; //#3151 - $k[$j++] = "Invalid value for longitude"; //#3151 - $k[$j++] = false; //#3151 - return true; //#3151 - } //#3151 - $j--; //#3152 - }; //#3152 - if (!bwipp_gs1process.__3161__) { //#3161 - $_ = Object.create($_); //#3161 - $k[$j++] = Infinity; //#3160 - var _SU = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3159 - for (var _SV = 0, _SW = _SU.length; _SV < _SW; _SV++) { //#3160 - var _SX = $get(_SU, _SV); //#3160 - $k[$j++] = _SX; //#3160 - $k[$j++] = _SX; //#3160 - } //#3160 - $_.aidcmediatype = $d(); //#3160 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3160 - bwipp_gs1process.__3161__ = 1; //#3160 - $_ = Object.getPrototypeOf($_); //#3160 - } //#3160 - $_.lintmediatype = function() { - var _Sc = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3164 - if (!_Sc) { //#3164 - $j--; //#3164 - $k[$j++] = 'bwipp.GS1UnknownMediaType#3164'; //#3164 - $k[$j++] = "Unknown AIDC media type"; //#3164 + var _XP = $k[--$j]; //#3143 + $k[$j++] = _XP; //#3145 + if (_XP.length < 1) { //#3145 + $j -= 2; //#3144 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode#3144'; //#3144 + $k[$j++] = "Coupon too short: Missing Format Code"; //#3144 + $k[$j++] = false; //#3144 + return true; //#3144 + } //#3144 + var _XQ = $k[--$j]; //#3146 + var _XR = $geti(_XQ, 0, 1); //#3146 + $k[$j++] = _XQ; //#3148 + if ($ne(_XR, "0") && $ne(_XR, "1")) { //#3148 + $j -= 2; //#3147 + $k[$j++] = 'bwipp.GS1couponBadFormatCode#3147'; //#3147 + $k[$j++] = "Coupon format must be 0 or 1"; //#3147 + $k[$j++] = false; //#3147 + return true; //#3147 + } //#3147 + var _XS = $k[--$j]; //#3149 + var _XT = $geti(_XS, 1, _XS.length - 1); //#3149 + $k[$j++] = _XT; //#3153 + if (_XT.length < 1) { //#3153 + $j -= 2; //#3152 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI#3152'; //#3152 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#3152 + $k[$j++] = false; //#3152 + return true; //#3152 + } //#3152 + var _XU = $k[--$j]; //#3154 + var _XW = $cvi($geti(_XU, 0, 1)); //#3154 + $k[$j++] = _XU; //#3156 + $k[$j++] = _XW; //#3156 + if (_XW > 6) { //#3156 + $j -= 3; //#3155 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI#3155'; //#3155 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#3155 + $k[$j++] = false; //#3155 + return true; //#3155 + } //#3155 + var _XX = $k[--$j]; //#3157 + var _XY = $k[--$j]; //#3158 + $k[$j++] = _XY; //#3160 + $k[$j++] = $f($f(_XX + 6) + 1); //#3160 + if (($f($f(_XX + 6) + 1)) > _XY.length) { //#3160 + $j -= 3; //#3159 + $k[$j++] = 'bwipp.GS1couponTooShortFunder#3159'; //#3159 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#3159 + $k[$j++] = false; //#3159 + return true; //#3159 + } //#3159 + var _XZ = $k[--$j]; //#3161 + var _Xa = $k[--$j]; //#3161 + var _Xb = $geti(_Xa, _XZ, $f(_Xa.length - _XZ)); //#3161 + $k[$j++] = _Xb; //#3165 + if (_Xb.length < 6) { //#3165 + $j -= 2; //#3164 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode#3164'; //#3164 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#3164 $k[$j++] = false; //#3164 return true; //#3164 } //#3164 - }; //#3164 - if (!$_.dontlint) { //#3301 - $k[$j++] = true; //#3207 - for (var _Sg = 0, _Sf = $_.vals.length - 1; _Sg <= _Sf; _Sg += 1) { //#3207 - $_.ai = $get($_.ais, _Sg); //#3172 - $_.val = $get($_.vals, _Sg); //#3173 - var _Sn = $get($_.gs1syntax, $_.ai) !== undefined; //#3174 - if (_Sn) { //#3205 - var _Sr = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3175 - $k[$j++] = _Sr; //#3177 - $k[$j++] = 0; //#3177 - $forall(_Sr, function() { //#3177 - var _Ss = $k[--$j]; //#3177 - $k[$j++] = _Ss; //#3177 - if ($get(_Ss, 'opt')) { //#3177 - $j--; //#3177 - $k[$j++] = 0; //#3177 - } else { //#3177 - var _Sv = $get($k[--$j], 'min'); //#3177 - $k[$j++] = _Sv; //#3177 - } //#3177 - var _Sw = $k[--$j]; //#3177 - var _Sx = $k[--$j]; //#3177 - $k[$j++] = $f(_Sx + _Sw); //#3177 - }); //#3177 - if ($k[--$j] > $_.val.length) { //#3179 - $j--; //#3178 - $k[$j++] = 'bwipp.GS1valueTooShort#3178'; //#3178 - $k[$j++] = "Too short"; //#3178 - $k[$j++] = false; //#3178 - break; //#3178 - } //#3178 - var _T0 = $k[--$j]; //#3180 - $k[$j++] = _T0; //#3180 - $k[$j++] = 0; //#3180 - $forall(_T0, function() { //#3180 - var _T2 = $get($k[--$j], 'max'); //#3180 - var _T3 = $k[--$j]; //#3180 - $k[$j++] = $f(_T3 + _T2); //#3180 - }); //#3180 - if ($k[--$j] < $_.val.length) { //#3182 - $j--; //#3181 - $k[$j++] = 'bwipp.GS1valueTooLong#3181'; //#3181 - $k[$j++] = "Too long"; //#3181 - $k[$j++] = false; //#3181 - break; //#3181 - } //#3181 - $forall($k[--$j], function() { //#3199 - $_.props = $k[--$j]; //#3184 - var _T9 = $get($_.props, 'max'); //#3185 - var _TA = $_.val; //#3185 - var _TB = _TA.length; //#3185 - if (_T9 > _TA.length) { //#3185 - var _ = _TB; //#3185 - _TB = _T9; //#3185 - _T9 = _; //#3185 - } //#3185 - $_.eval = $geti($_.val, 0, _T9); //#3186 - var _TG = $_.eval.length; //#3187 - $_.val = $geti($_.val, _TG, $_.val.length - _TG); //#3187 - if ($_.eval.length == 0) { //#3197 - if ($nt($get($_.props, 'opt'))) { //#3191 - $j--; //#3190 - $k[$j++] = 'bwipp.GS1valueTooShort#3190'; //#3190 - $k[$j++] = "Too short"; //#3190 - $k[$j++] = false; //#3190 - return true; //#3190 - } //#3190 - } else { //#3197 - if ($_.eval.length < $get($_.props, 'min')) { //#3195 - $j--; //#3194 - $k[$j++] = 'bwipp.GS1valueTooShort#3194'; //#3194 - $k[$j++] = "Too short"; //#3194 - $k[$j++] = false; //#3194 - return true; //#3194 - } //#3194 - var _TP = new Map([ + var _Xc = $k[--$j]; //#3166 + var _Xd = $geti(_Xc, 6, _Xc.length - 6); //#3166 + $k[$j++] = _Xd; //#3170 + if (_Xd.length < 1) { //#3170 + $j -= 2; //#3169 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI#3169'; //#3169 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#3169 + $k[$j++] = false; //#3169 + return true; //#3169 + } //#3169 + var _Xe = $k[--$j]; //#3171 + var _Xf = $geti(_Xe, 0, 1); //#3171 + $k[$j++] = _Xe; //#3175 + $k[$j++] = ($cvi(_Xf) + 6) + 1; //#3175 + if ((($cvi(_Xf) + 6) + 1) > _Xe.length) { //#3175 + $j -= 3; //#3174 + $k[$j++] = 'bwipp.GS1couponTooShortSn#3174'; //#3174 + $k[$j++] = "Coupon too short: Truncated SN"; //#3174 + $k[$j++] = false; //#3174 + return true; //#3174 + } //#3174 + var _Xg = $k[--$j]; //#3176 + var _Xh = $k[--$j]; //#3176 + var _Xi = $geti(_Xh, _Xg, $f(_Xh.length - _Xg)); //#3176 + $k[$j++] = _Xi; //#3179 + if (_Xi.length != 0) { //#3179 + $j -= 2; //#3178 + $k[$j++] = 'bwipp.GS1couponTooLong#3178'; //#3178 + $k[$j++] = "Coupon too long"; //#3178 + $k[$j++] = false; //#3178 + return true; //#3178 + } //#3178 + $j--; //#3180 + }; //#3180 + $_.lintlatitude = function() { + var _Xj = $k[--$j]; //#3184 + $k[$j++] = _Xj; //#3186 + if (_Xj.length != 10) { //#3186 + $j--; //#3185 + $k[$j++] = 'bwipp.GS1badLatitudeLength#3185'; //#3185 + $k[$j++] = "Invalid length for a latitude"; //#3185 + $k[$j++] = false; //#3185 + return true; //#3185 + } //#3185 + if ($cvi($k[--$j]) > $cvi("1800000000")) { //#3189 + $j--; //#3189 + $k[$j++] = 'bwipp.GS1badLatitude#3189'; //#3189 + $k[$j++] = "Invalid value for latitude"; //#3189 + $k[$j++] = false; //#3189 + return true; //#3189 + } //#3189 + }; //#3189 + $_.lintlongitude = function() { + var _Xl = $k[--$j]; //#3193 + $k[$j++] = _Xl; //#3195 + if (_Xl.length != 10) { //#3195 + $j--; //#3194 + $k[$j++] = 'bwipp.GS1badLongitudeLength#3194'; //#3194 + $k[$j++] = "Invalid length for a longitude"; //#3194 + $k[$j++] = false; //#3194 + return true; //#3194 + } //#3194 + if ($cvi($k[--$j]) > $cvi("3600000000")) { //#3199 + $j--; //#3199 + $k[$j++] = 'bwipp.GS1badLongitude#3199'; //#3199 + $k[$j++] = "Invalid value for longitude"; //#3199 + $k[$j++] = false; //#3199 + return true; //#3199 + } //#3199 + }; //#3199 + if (!bwipp_gs1process.__3208__) { //#3208 + $_ = Object.create($_); //#3208 + $k[$j++] = Infinity; //#3203 + var _Xn = $a(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99']); //#3206 + for (var _Xo = 0, _Xp = _Xn.length; _Xo < _Xp; _Xo++) { //#3207 + var _Xq = $get(_Xn, _Xo); //#3207 + $k[$j++] = _Xq; //#3207 + $k[$j++] = _Xq; //#3207 + } //#3207 + $_.aidcmediatype = $d(); //#3207 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1process.$ctx[id] = $_[id]); //#3207 + bwipp_gs1process.__3208__ = 1; //#3207 + $_ = Object.getPrototypeOf($_); //#3207 + } //#3207 + $_.lintmediatype = function() { + var _Xv = $get($_.aidcmediatype, $k[--$j]) !== undefined; //#3211 + if (!_Xv) { //#3211 + $j--; //#3211 + $k[$j++] = 'bwipp.GS1UnknownMediaType#3211'; //#3211 + $k[$j++] = "Unknown AIDC media type"; //#3211 + $k[$j++] = false; //#3211 + return true; //#3211 + } //#3211 + }; //#3211 + if (!$_.dontlint) { //#3352 + $k[$j++] = true; //#3255 + for (var _Xz = 0, _Xy = $_.vals.length - 1; _Xz <= _Xy; _Xz += 1) { //#3255 + $_.ai = $get($_.ais, _Xz); //#3219 + $_.val = $get($_.vals, _Xz); //#3220 + var _Y6 = $get($_.gs1syntax, $_.ai) !== undefined; //#3221 + if (_Y6) { //#3253 + var _YA = $get($get($_.gs1syntax, $_.ai), 'parts'); //#3222 + $k[$j++] = _YA; //#3224 + $k[$j++] = 0; //#3224 + $forall(_YA, function() { //#3224 + var _YB = $k[--$j]; //#3224 + $k[$j++] = _YB; //#3224 + if ($get(_YB, 'opt')) { //#3224 + $j--; //#3224 + $k[$j++] = 0; //#3224 + } else { //#3224 + var _YE = $get($k[--$j], 'min'); //#3224 + $k[$j++] = _YE; //#3224 + } //#3224 + var _YF = $k[--$j]; //#3224 + var _YG = $k[--$j]; //#3224 + $k[$j++] = $f(_YG + _YF); //#3224 + }); //#3224 + if ($k[--$j] > $_.val.length) { //#3226 + $j--; //#3225 + $k[$j++] = 'bwipp.GS1valueTooShort#3225'; //#3225 + $k[$j++] = "Too short"; //#3225 + $k[$j++] = false; //#3225 + break; //#3225 + } //#3225 + var _YJ = $k[--$j]; //#3227 + $k[$j++] = _YJ; //#3227 + $k[$j++] = 0; //#3227 + $forall(_YJ, function() { //#3227 + var _YL = $get($k[--$j], 'max'); //#3227 + var _YM = $k[--$j]; //#3227 + $k[$j++] = $f(_YM + _YL); //#3227 + }); //#3227 + if ($k[--$j] < $_.val.length) { //#3229 + $j--; //#3228 + $k[$j++] = 'bwipp.GS1valueTooLong#3228'; //#3228 + $k[$j++] = "Too long"; //#3228 + $k[$j++] = false; //#3228 + break; //#3228 + } //#3228 + $forall($k[--$j], function() { //#3247 + $_.props = $k[--$j]; //#3231 + var _YS = $get($_.props, 'max'); //#3232 + var _YT = $_.val; //#3232 + var _YU = _YT.length; //#3232 + if (_YS > _YT.length) { //#3232 + var _ = _YU; //#3232 + _YU = _YS; //#3232 + _YS = _; //#3232 + } //#3232 + $_.eval = $geti($_.val, 0, _YS); //#3233 + var _YZ = $_.eval.length; //#3234 + $_.val = $geti($_.val, _YZ, $_.val.length - _YZ); //#3234 + if ($_.eval.length == 0) { //#3245 + if ($nt($get($_.props, 'opt'))) { //#3238 + $j--; //#3237 + $k[$j++] = 'bwipp.GS1valueTooShort#3237'; //#3237 + $k[$j++] = "Too short"; //#3237 + $k[$j++] = false; //#3237 + return true; //#3237 + } //#3237 + } else { //#3245 + if ($_.eval.length < $get($_.props, 'min')) { //#3242 + $j--; //#3241 + $k[$j++] = 'bwipp.GS1valueTooShort#3241'; //#3241 + $k[$j++] = "Too short"; //#3241 + $k[$j++] = false; //#3241 + return true; //#3241 + } //#3241 + var _Yi = new Map([ ["N", 'lintnumeric'], ["X", 'lintcset82'], - ["Y", 'lintcset39'] - ]); //#3196 - $k[$j++] = $_.eval; //#3196 - if ($_[$get(_TP, $get($_.props, 'cset'))]() === true) { + ["Y", 'lintcset39'], + ["Z", 'lintcset64'] + ]); //#3243 + $k[$j++] = $_.eval; //#3244 + if ($_[$get(_Yi, $get($_.props, 'cset'))]() === true) { return true; - } //#3196 - $forall($get($_.props, 'linters'), function() { //#3197 - var _TZ = $_[$k[--$j]]; //#3197 - $k[$j++] = $_.eval; //#3197 - if (_TZ() === true) { + } //#3244 + $forall($get($_.props, 'linters'), function() { //#3245 + var _Ys = $_[$k[--$j]]; //#3245 + $k[$j++] = $_.eval; //#3245 + if (_Ys() === true) { return true; - } //#3197 - }); //#3197 - } //#3197 - }); //#3197 - var _Ta = $k[--$j]; //#3200 - $k[$j++] = _Ta; //#3200 - if ($nt(_Ta)) { //#3200 - break; //#3200 - } //#3200 - if ($_.val.length != 0) { //#3203 - $j--; //#3202 - $k[$j++] = 'bwipp.GS1valueTooLong#3202'; //#3202 - $k[$j++] = "Too long"; //#3202 - $k[$j++] = false; //#3202 - break; //#3202 - } //#3202 - } else { //#3205 - $j--; //#3205 - $k[$j++] = 'bwipp.GS1unknownAI#3205'; //#3205 - $k[$j++] = "Unrecognised AI"; //#3205 - $k[$j++] = false; //#3205 - break; //#3205 - } //#3205 - } //#3205 - if ($nt($k[--$j])) { //#3215 - var _Td = $k[--$j]; //#3209 - var _Tf = $s((_Td.length + $_.ai.length) + 5); //#3209 - $puti(_Tf, 0, "AI "); //#3210 - $puti(_Tf, 3, $_.ai); //#3211 - $puti(_Tf, 3 + $_.ai.length, ": "); //#3212 - $puti(_Tf, 5 + $_.ai.length, _Td); //#3213 - $k[$j++] = _Tf; //#3214 - bwipp_raiseerror(); //#3214 - } //#3214 + } //#3245 + }); //#3245 + } //#3245 + }); //#3245 + var _Yt = $k[--$j]; //#3248 + $k[$j++] = _Yt; //#3248 + if ($nt(_Yt)) { //#3248 + break; //#3248 + } //#3248 + if ($_.val.length != 0) { //#3251 + $j--; //#3250 + $k[$j++] = 'bwipp.GS1valueTooLong#3250'; //#3250 + $k[$j++] = "Too long"; //#3250 + $k[$j++] = false; //#3250 + break; //#3250 + } //#3250 + } else { //#3253 + $j--; //#3253 + $k[$j++] = 'bwipp.GS1unknownAI#3253'; //#3253 + $k[$j++] = "Unrecognised AI"; //#3253 + $k[$j++] = false; //#3253 + break; //#3253 + } //#3253 + } //#3253 + if ($nt($k[--$j])) { //#3263 + var _Yw = $k[--$j]; //#3257 + var _Yy = $s((_Yw.length + $_.ai.length) + 5); //#3257 + $puti(_Yy, 0, "AI "); //#3258 + $puti(_Yy, 3, $_.ai); //#3259 + $puti(_Yy, 3 + $_.ai.length, ": "); //#3260 + $puti(_Yy, 5 + $_.ai.length, _Yw); //#3261 + $k[$j++] = _Yy; //#3262 + bwipp_raiseerror(); //#3262 + } //#3262 $_.aiexists = function() { - $_.this = $k[--$j]; //#3219 - $_.patt = $k[--$j]; //#3220 - for (var _Tl = 0, _Tm = 1; _Tl < _Tm; _Tl++) { //#3241 - var _Tp = $get($_.aivals, $_.patt) !== undefined; //#3222 - if (_Tp) { //#3222 - $k[$j++] = true; //#3222 - break; //#3222 - } //#3222 - if ($_.patt.length == 4) { //#3239 - if ($eq($geti($_.patt, 3, 1), "n")) { //#3237 - var _Tv = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3225 - $_.pfxlen = _Tv; //#3225 - var _Tw = $_.ais; //#3227 - $k[$j++] = false; //#3235 - for (var _Tx = 0, _Ty = _Tw.length; _Tx < _Ty; _Tx++) { //#3235 - var _Tz = $get(_Tw, _Tx); //#3235 - $k[$j++] = _Tz; //#3234 - if ($ne(_Tz, $_.this) && (_Tz.length == 4)) { //#3233 - if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3231 - $j--; //#3230 - $k[$j++] = true; //#3230 - } //#3230 - } else { //#3233 - $j--; //#3233 - } //#3233 - } //#3233 - break; //#3236 - } //#3236 - $k[$j++] = false; //#3238 - break; //#3238 - } //#3238 - $k[$j++] = false; //#3240 - break; //#3240 - } //#3240 - }; //#3240 - var _U7 = $_.vals; //#3245 - $_.aivals = new Map; //#3245 - for (var _UA = 0, _U9 = $_.vals.length - 1; _UA <= _U9; _UA += 1) { //#3260 - $_.ai = $get($_.ais, _UA); //#3247 - $_.val = $get($_.vals, _UA); //#3248 - var _UH = $get($_.aivals, $_.ai) !== undefined; //#3249 - if (_UH) { //#3258 - if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3256 - var _UN = $s($_.ai.length + 40); //#3251 - $puti(_UN, 0, "Repeated AIs ("); //#3252 - $puti(_UN, 14, $_.ai); //#3253 - $puti(_UN, 14 + $_.ai.length, ") must have the same value"); //#3254 - $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3255'; //#3255 - $k[$j++] = _UN; //#3255 - bwipp_raiseerror(); //#3255 - } //#3255 - } else { //#3258 - $put($_.aivals, $_.ai, $_.val); //#3258 - } //#3258 - } //#3258 - for (var _UV = 0, _UU = $_.vals.length - 1; _UV <= _UU; _UV += 1) { //#3299 - $_.ai = $get($_.ais, _UV); //#3264 - var _Ua = $get($_.gs1syntax, $_.ai); //#3265 - var _Ub = $get(_Ua, 'ex') !== undefined; //#3265 - $k[$j++] = _Ua; //#3280 - $k[$j++] = 'ex'; //#3280 - if (_Ub) { //#3279 - var _Uc = $k[--$j]; //#3266 - $forall($get($k[--$j], _Uc), function() { //#3277 - $_.patt = $k[--$j]; //#3267 - $k[$j++] = $_.patt; //#3268 - $k[$j++] = $_.ai; //#3268 - $_.aiexists(); //#3268 - if ($k[--$j]) { //#3276 - var _Ul = $s(($_.ai.length + $_.patt.length) + 36); //#3269 - $puti(_Ul, 0, "AIs ("); //#3270 - $puti(_Ul, 5, $_.ai); //#3271 - $puti(_Ul, 5 + $_.ai.length, ") and ("); //#3272 - $puti(_Ul, 12 + $_.ai.length, $_.patt); //#3273 - $puti(_Ul, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3274 - $k[$j++] = 'bwipp.GS1exclusiveAIs#3275'; //#3275 - $k[$j++] = _Ul; //#3275 - bwipp_raiseerror(); //#3275 - } //#3275 - }); //#3275 - } else { //#3279 - $j -= 2; //#3279 - } //#3279 - if ($_.lintreqs) { //#3298 - var _Uv = $get($_.gs1syntax, $_.ai); //#3282 - var _Uw = $get(_Uv, 'req') !== undefined; //#3282 - $k[$j++] = _Uv; //#3297 - $k[$j++] = 'req'; //#3297 - if (_Uw) { //#3296 - var _Ux = $k[--$j]; //#3283 - $forall($get($k[--$j], _Ux), function() { //#3294 - var _V0 = $k[--$j]; //#3284 - $k[$j++] = false; //#3286 - $forall(_V0, function() { //#3286 - $k[$j++] = $_.ai; //#3285 - $_.aiexists(); //#3285 - if ($k[--$j]) { //#3285 - $j--; //#3285 - $k[$j++] = true; //#3285 - } //#3285 - }); //#3285 - if ($nt($k[--$j])) { //#3293 - var _V5 = $s($_.ai.length + 47); //#3288 - $puti(_V5, 0, "One of more requisite AIs for AI ("); //#3289 - $puti(_V5, 34, $_.ai); //#3290 - $puti(_V5, 34 + $_.ai.length, ") are missing"); //#3291 - $k[$j++] = 'bwipp.GS1missingAIs#3292'; //#3292 - $k[$j++] = _V5; //#3292 - bwipp_raiseerror(); //#3292 - } //#3292 - }); //#3292 - } else { //#3296 - $j -= 2; //#3296 - } //#3296 - } //#3296 - } //#3296 - } //#3296 - $k[$j++] = $_.ais; //#3305 - $k[$j++] = $_.vals; //#3305 - $k[$j++] = $_.fncs; //#3305 - $_ = Object.getPrototypeOf($_); //#3305 - $_ = Object.getPrototypeOf($_); //#3307 -} - + $_.this = $k[--$j]; //#3267 + $_.patt = $k[--$j]; //#3268 + for (var _Z4 = 0, _Z5 = 1; _Z4 < _Z5; _Z4++) { //#3289 + var _Z8 = $get($_.aivals, $_.patt) !== undefined; //#3270 + if (_Z8) { //#3270 + $k[$j++] = true; //#3270 + break; //#3270 + } //#3270 + if ($_.patt.length == 4) { //#3287 + if ($eq($geti($_.patt, 3, 1), "n")) { //#3285 + var _ZE = $eq($geti($_.patt, 2, 1), "n") ? 2 : 3; //#3273 + $_.pfxlen = _ZE; //#3273 + var _ZF = $_.ais; //#3275 + $k[$j++] = false; //#3283 + for (var _ZG = 0, _ZH = _ZF.length; _ZG < _ZH; _ZG++) { //#3283 + var _ZI = $get(_ZF, _ZG); //#3283 + $k[$j++] = _ZI; //#3282 + if ($ne(_ZI, $_.this) && (_ZI.length == 4)) { //#3281 + if ($eq($geti($k[--$j], 0, $_.pfxlen), $geti($_.patt, 0, $_.pfxlen))) { //#3279 + $j--; //#3278 + $k[$j++] = true; //#3278 + } //#3278 + } else { //#3281 + $j--; //#3281 + } //#3281 + } //#3281 + break; //#3284 + } //#3284 + $k[$j++] = false; //#3286 + break; //#3286 + } //#3286 + $k[$j++] = false; //#3288 + break; //#3288 + } //#3288 + }; //#3288 + var _ZQ = $_.vals; //#3293 + $_.aivals = new Map; //#3293 + for (var _ZT = 0, _ZS = $_.vals.length - 1; _ZT <= _ZS; _ZT += 1) { //#3308 + $_.ai = $get($_.ais, _ZT); //#3295 + $_.val = $get($_.vals, _ZT); //#3296 + var _Za = $get($_.aivals, $_.ai) !== undefined; //#3297 + if (_Za) { //#3306 + if ($ne($get($_.aivals, $_.ai), $_.val)) { //#3304 + var _Zg = $s($_.ai.length + 40); //#3299 + $puti(_Zg, 0, "Repeated AIs ("); //#3300 + $puti(_Zg, 14, $_.ai); //#3301 + $puti(_Zg, 14 + $_.ai.length, ") must have the same value"); //#3302 + $k[$j++] = 'bwipp.GS1repeatedDifferingAIs#3303'; //#3303 + $k[$j++] = _Zg; //#3303 + bwipp_raiseerror(); //#3303 + } //#3303 + } else { //#3306 + $put($_.aivals, $_.ai, $_.val); //#3306 + } //#3306 + } //#3306 + for (var _Zo = 0, _Zn = $_.vals.length - 1; _Zo <= _Zn; _Zo += 1) { //#3350 + $_.ai = $get($_.ais, _Zo); //#3312 + var _Zt = $get($_.gs1syntax, $_.ai); //#3313 + var _Zu = $get(_Zt, 'ex') !== undefined; //#3313 + $k[$j++] = _Zt; //#3328 + $k[$j++] = 'ex'; //#3328 + if (_Zu) { //#3327 + var _Zv = $k[--$j]; //#3314 + $forall($get($k[--$j], _Zv), function() { //#3325 + $_.patt = $k[--$j]; //#3315 + $k[$j++] = $_.patt; //#3316 + $k[$j++] = $_.ai; //#3316 + $_.aiexists(); //#3316 + if ($k[--$j]) { //#3324 + var _a4 = $s(($_.ai.length + $_.patt.length) + 36); //#3317 + $puti(_a4, 0, "AIs ("); //#3318 + $puti(_a4, 5, $_.ai); //#3319 + $puti(_a4, 5 + $_.ai.length, ") and ("); //#3320 + $puti(_a4, 12 + $_.ai.length, $_.patt); //#3321 + $puti(_a4, (12 + $_.ai.length) + $_.patt.length, ") are mutually exclusive"); //#3322 + $k[$j++] = 'bwipp.GS1exclusiveAIs#3323'; //#3323 + $k[$j++] = _a4; //#3323 + bwipp_raiseerror(); //#3323 + } //#3323 + }); //#3323 + } else { //#3327 + $j -= 2; //#3327 + } //#3327 + if ($_.lintreqs) { //#3349 + var _aE = $get($_.gs1syntax, $_.ai); //#3330 + var _aF = $get(_aE, 'req') !== undefined; //#3330 + $k[$j++] = _aE; //#3348 + $k[$j++] = 'req'; //#3348 + if (_aF) { //#3347 + var _aG = $k[--$j]; //#3331 + $forall($get($k[--$j], _aG), function() { //#3345 + var _aJ = $k[--$j]; //#3332 + $k[$j++] = false; //#3337 + $forall(_aJ, function() { //#3337 + var _aK = $k[--$j]; //#3333 + $k[$j++] = true; //#3335 + $forall(_aK, function() { //#3335 + $k[$j++] = $_.ai; //#3334 + $_.aiexists(); //#3334 + if ($nt($k[--$j])) { //#3334 + $j--; //#3334 + $k[$j++] = false; //#3334 + } //#3334 + }); //#3334 + if ($k[--$j]) { //#3336 + $j--; //#3336 + $k[$j++] = true; //#3336 + return true; //#3336 + } //#3336 + }); //#3336 + if ($nt($k[--$j])) { //#3344 + var _aQ = $s($_.ai.length + 47); //#3339 + $puti(_aQ, 0, "One of more requisite AIs for AI ("); //#3340 + $puti(_aQ, 34, $_.ai); //#3341 + $puti(_aQ, 34 + $_.ai.length, ") are missing"); //#3342 + $k[$j++] = 'bwipp.GS1missingAIs#3343'; //#3343 + $k[$j++] = _aQ; //#3343 + bwipp_raiseerror(); //#3343 + } //#3343 + }); //#3343 + } else { //#3347 + $j -= 2; //#3347 + } //#3347 + } //#3347 + } //#3347 + } //#3347 + $k[$j++] = $_.ais; //#3356 + $k[$j++] = $_.vals; //#3356 + $k[$j++] = $_.fncs; //#3356 + $_ = Object.getPrototypeOf($_); //#3356 + $_ = Object.getPrototypeOf($_); //#3358 +} //bwipp_gs1process function bwipp_renmatrix() { - if ($_.bwipjs_dontdraw) { //#3569 - return; //#3569 - } //#3569 - $_ = Object.create($_); //#3571 - $_.width = 1; //#3574 - $_.height = 1; //#3575 - $_.barcolor = "unset"; //#3576 - $_.backgroundcolor = "unset"; //#3577 - $_.colormap = "unset"; //#3578 - $_.dotty = false; //#3579 - $_.inkspread = 0; //#3580 - $_.inkspreadh = 0; //#3581 - $_.inkspreadv = 0; //#3582 - $_.includetext = false; //#3583 - $_.txt = $a([]); //#3584 - $_.textcolor = "unset"; //#3585 - $_.textxalign = "unset"; //#3586 - $_.textyalign = "unset"; //#3587 - $_.textfont = "OCR-B"; //#3588 - $_.textsize = 10; //#3589 - $_.textxoffset = 0; //#3590 - $_.textyoffset = 0; //#3591 - $_.textgaps = 0; //#3592 - $_.alttext = ""; //#3593 - $forall($k[--$j], function() { //#3595 - var _3 = $k[--$j]; //#3595 - $_[$k[--$j]] = _3; //#3595 - }); //#3595 - $k[$j++] = $_.opt; //#3596 - delete $_['opt']; //#3596 - $k[$j++] = $_; //#3596 - bwipp_processoptions(); //#3596 - $j--; //#3596 - if ($_.inkspread != 0) { //#3598 - $_.inkspreadh = $_.inkspread; //#3598 - } //#3598 - if ($_.inkspread != 0) { //#3599 - $_.inkspreadv = $_.inkspread; //#3599 - } //#3599 - if ($_.textsize <= 0) { //#3603 - $k[$j++] = 'bwipp.renmatrixBadTextsize#3602'; //#3602 - $k[$j++] = "The font size must be greater than zero"; //#3602 - bwipp_raiseerror(); //#3602 - } //#3602 + if ($_.bwipjs_dontdraw) { //#3633 + return; //#3633 + } //#3633 + $_ = Object.create($_); //#3635 + $_.width = 1; //#3638 + $_.height = 1; //#3639 + $_.bordercolor = "unset"; //#3640 + $_.barcolor = "unset"; //#3641 + $_.backgroundcolor = "unset"; //#3642 + $_.colormap = "unset"; //#3643 + $_.dotty = false; //#3644 + $_.inkspread = null; //#3645 + $_.inkspreadh = null; //#3646 + $_.inkspreadv = null; //#3647 + $_.includetext = false; //#3648 + $_.txt = $a([]); //#3649 + $_.textcolor = "unset"; //#3650 + $_.textxalign = "unset"; //#3651 + $_.textyalign = "unset"; //#3652 + $_.textfont = "OCR-B"; //#3653 + $_.textsize = 10; //#3654 + $_.textxoffset = 0; //#3655 + $_.textyoffset = 0; //#3656 + $_.textgaps = 0; //#3657 + $_.alttext = ""; //#3658 + $_.showborder = false; //#3659 + $_.borderleft = 0; //#3660 + $_.borderright = 0; //#3661 + $_.bordertop = 0; //#3662 + $_.borderbottom = 0; //#3663 + $_.borderwidth = 0.25; //#3664 + $forall($k[--$j], function() { //#3666 + var _3 = $k[--$j]; //#3666 + $_[$k[--$j]] = _3; //#3666 + }); //#3666 + $k[$j++] = $_.opt; //#3667 + delete $_['opt']; //#3667 + $k[$j++] = $_; //#3667 + bwipp_processoptions(); //#3667 + $j--; //#3667 + if ($eq($_.inkspread, null)) { //#3669 + $_.inkspread = 0; //#3669 + } //#3669 + if ($eq($_.inkspreadh, null)) { //#3670 + $_.inkspreadh = $_.inkspread; //#3670 + } //#3670 + if ($eq($_.inkspreadv, null)) { //#3671 + $_.inkspreadv = $_.inkspread; //#3671 + } //#3671 + if ($_.textsize <= 0) { //#3675 + $k[$j++] = 'bwipp.renmatrixBadTextsize#3674'; //#3674 + $k[$j++] = "The font size must be greater than zero"; //#3674 + bwipp_raiseerror(); //#3674 + } //#3674 $_.xyget = function() { - var _C = $k[--$j]; //#3605 - var _F = $get($_.pixs, $f($k[--$j] + (_C * $_.pixx))); //#3605 - $k[$j++] = _F; //#3605 - }; //#3605 + var _D = $k[--$j]; //#3677 + var _G = $get($_.pixs, $f($k[--$j] + (_D * $_.pixx))); //#3677 + $k[$j++] = _G; //#3677 + }; //#3677 $_.cget = function() { - var _H = $k[--$j]; //#3606 - var _K = $get($_.cache, $f($k[--$j] + (_H * $_.pixx))); //#3606 - var _L = $k[--$j]; //#3606 - $k[$j++] = $an(_L, _K); //#3606 - }; //#3606 + var _I = $k[--$j]; //#3678 + var _L = $get($_.cache, $f($k[--$j] + (_I * $_.pixx))); //#3678 + var _M = $k[--$j]; //#3678 + $k[$j++] = $an(_M, _L); //#3678 + }; //#3678 $_.cput = function() { - var _M = $k[--$j]; //#3608 - $k[$j++] = _M; //#3612 - if ((_M % 4) == 0) { //#3611 - var _N = $k[--$j]; //#3609 - var _O = $k[--$j]; //#3609 - var _P = $k[--$j]; //#3609 - var _Q = $_.pixx; //#3609 - var _R = $_.cache; //#3609 - $put(_R, $f(_P + (_O * _Q)), $or($get(_R, $f(_P + (_O * _Q))), _N)); //#3609 - } else { //#3611 - $j -= 3; //#3611 - } //#3611 - }; //#3611 + var _N = $k[--$j]; //#3680 + $k[$j++] = _N; //#3684 + if ((_N % 4) == 0) { //#3683 + var _O = $k[--$j]; //#3681 + var _P = $k[--$j]; //#3681 + var _Q = $k[--$j]; //#3681 + var _R = $_.pixx; //#3681 + var _S = $_.cache; //#3681 + $put(_S, $f(_Q + (_P * _R)), $or($get(_S, $f(_Q + (_P * _R))), _O)); //#3681 + } else { //#3683 + $j -= 3; //#3683 + } //#3683 + }; //#3683 $_.abcd = function() { - $k[$j++] = $s(4); //#3620 - $k[$j++] = 0; //#3620 - $k[$j++] = Infinity; //#3620 - var _U = $k[--$j]; //#3617 - var _V = $k[--$j]; //#3617 - var _W = $k[--$j]; //#3617 - var _X = $k[--$j]; //#3617 - var _a = $f($k[--$j] + (_X * $_.pixx)); //#3618 - $k[$j++] = _W; //#3619 - $k[$j++] = _V; //#3619 - $k[$j++] = _U; //#3619 - $k[$j++] = _a; //#3619 - $aload($geti($_.pixs, _a, 2)); //#3619 - var _d = $k[--$j]; //#3619 - var _e = $k[--$j]; //#3619 - var _i = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3620 - $k[$j++] = _e; //#3620 - $k[$j++] = _d; //#3620 - $aload(_i); //#3620 - var _j = $a(); //#3620 - for (var _k = 0, _l = _j.length; _k < _l; _k++) { //#3621 - var _n = $k[--$j]; //#3621 - var _o = $k[--$j]; //#3621 - $put(_o, _n, $f($get(_j, _k) + 48)); //#3621 - $k[$j++] = _o; //#3621 - $k[$j++] = $f(_n + 1); //#3621 - } //#3621 - $j--; //#3621 - }; //#3621 + $k[$j++] = $s(4); //#3692 + $k[$j++] = 0; //#3692 + $k[$j++] = Infinity; //#3688 + var _V = $k[--$j]; //#3689 + var _W = $k[--$j]; //#3689 + var _X = $k[--$j]; //#3689 + var _Y = $k[--$j]; //#3689 + var _b = $f($k[--$j] + (_Y * $_.pixx)); //#3690 + $k[$j++] = _X; //#3691 + $k[$j++] = _W; //#3691 + $k[$j++] = _V; //#3691 + $k[$j++] = _b; //#3691 + $aload($geti($_.pixs, _b, 2)); //#3691 + var _e = $k[--$j]; //#3691 + var _f = $k[--$j]; //#3691 + var _j = $geti($_.pixs, $f($k[--$j] + $_.pixx), 2); //#3692 + $k[$j++] = _f; //#3692 + $k[$j++] = _e; //#3692 + $aload(_j); //#3692 + var _k = $a(); //#3692 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#3693 + var _o = $k[--$j]; //#3693 + var _p = $k[--$j]; //#3693 + $put(_p, _o, $f($get(_k, _l) + 48)); //#3693 + $k[$j++] = _p; //#3693 + $k[$j++] = $f(_o + 1); //#3693 + } //#3693 + $j--; //#3693 + }; //#3693 $_.right = function() { - if ($_.dir != 1) { //#3624 - $k[$j++] = $_.x; //#3624 - $k[$j++] = $_.y; //#3624 - $k[$j++] = $_.dir; //#3624 - $_.cput(); //#3624 - $k[$j++] = $a([$_.x, $_.y]); //#3624 - } //#3624 - $_.x = $_.x + 1; //#3624 - $_.dir = 1; //#3624 - }; //#3624 + if ($_.dir != 1) { //#3696 + $k[$j++] = $_.x; //#3696 + $k[$j++] = $_.y; //#3696 + $k[$j++] = $_.dir; //#3696 + $_.cput(); //#3696 + $k[$j++] = $a([$_.x, $_.y]); //#3696 + } //#3696 + $_.x = $_.x + 1; //#3696 + $_.dir = 1; //#3696 + }; //#3696 $_.down = function() { - if ($_.dir != 2) { //#3625 - $k[$j++] = $_.x; //#3625 - $k[$j++] = $_.y; //#3625 - $k[$j++] = $_.dir; //#3625 - $_.cput(); //#3625 - $k[$j++] = $a([$_.x, $_.y]); //#3625 - } //#3625 - $_.y = $_.y + 1; //#3625 - $_.dir = 2; //#3625 - }; //#3625 + if ($_.dir != 2) { //#3697 + $k[$j++] = $_.x; //#3697 + $k[$j++] = $_.y; //#3697 + $k[$j++] = $_.dir; //#3697 + $_.cput(); //#3697 + $k[$j++] = $a([$_.x, $_.y]); //#3697 + } //#3697 + $_.y = $_.y + 1; //#3697 + $_.dir = 2; //#3697 + }; //#3697 $_.left = function() { - if ($_.dir != 4) { //#3626 - $k[$j++] = $_.x; //#3626 - $k[$j++] = $_.y; //#3626 - $k[$j++] = $_.dir; //#3626 - $_.cput(); //#3626 - $k[$j++] = $a([$_.x, $_.y]); //#3626 - } //#3626 - $_.x = $_.x - 1; //#3626 - $_.dir = 4; //#3626 - }; //#3626 + if ($_.dir != 4) { //#3698 + $k[$j++] = $_.x; //#3698 + $k[$j++] = $_.y; //#3698 + $k[$j++] = $_.dir; //#3698 + $_.cput(); //#3698 + $k[$j++] = $a([$_.x, $_.y]); //#3698 + } //#3698 + $_.x = $_.x - 1; //#3698 + $_.dir = 4; //#3698 + }; //#3698 $_.up = function() { - if ($_.dir != 8) { //#3627 - $k[$j++] = $_.x; //#3627 - $k[$j++] = $_.y; //#3627 - $k[$j++] = $_.dir; //#3627 - $_.cput(); //#3627 - $k[$j++] = $a([$_.x, $_.y]); //#3627 - } //#3627 - $_.y = $_.y - 1; //#3627 - $_.dir = 8; //#3627 - }; //#3627 + if ($_.dir != 8) { //#3699 + $k[$j++] = $_.x; //#3699 + $k[$j++] = $_.y; //#3699 + $k[$j++] = $_.dir; //#3699 + $_.cput(); //#3699 + $k[$j++] = $a([$_.x, $_.y]); //#3699 + } //#3699 + $_.y = $_.y - 1; //#3699 + $_.dir = 8; //#3699 + }; //#3699 $_.trace = function() { - $_.y = $k[--$j]; //#3631 - $_.x = $k[--$j]; //#3631 - $k[$j++] = 'dir'; //#3633 - $k[$j++] = $f($_.x + 1); //#3633 - $k[$j++] = $f($_.y + 1); //#3633 - $_.xyget(); //#3633 - var _1Q = ($k[--$j] == 1) ? 8 : 4; //#3633 - $_[$k[--$j]] = _1Q; //#3633 - $_.sx = $_.x; //#3634 - $_.sy = $_.y; //#3634 - $_.sdir = $_.dir; //#3634 - $k[$j++] = Infinity; //#3638 - for (;;) { //#3652 - $k[$j++] = $_.x; //#3639 - $k[$j++] = $_.y; //#3639 - $_.abcd(); //#3639 - for (var _1X = 0, _1Y = 1; _1X < _1Y; _1X++) { //#3650 - var _1Z = $k[--$j]; //#3641 - $k[$j++] = _1Z; //#3641 - if ($eq(_1Z, "0001") || ($eq(_1Z, "0011") || $eq(_1Z, "1011"))) { //#3641 - $j--; //#3641 - $_.right(); //#3641 - break; //#3641 - } //#3641 - var _1a = $k[--$j]; //#3642 - $k[$j++] = _1a; //#3642 - if ($eq(_1a, "0010") || ($eq(_1a, "1010") || $eq(_1a, "1110"))) { //#3642 - $j--; //#3642 - $_.down(); //#3642 - break; //#3642 - } //#3642 - var _1b = $k[--$j]; //#3643 - $k[$j++] = _1b; //#3643 - if ($eq(_1b, "1000") || ($eq(_1b, "1100") || $eq(_1b, "1101"))) { //#3643 - $j--; //#3643 - $_.left(); //#3643 - break; //#3643 - } //#3643 - var _1c = $k[--$j]; //#3644 - $k[$j++] = _1c; //#3644 - if ($eq(_1c, "0100") || ($eq(_1c, "0101") || $eq(_1c, "0111"))) { //#3644 - $j--; //#3644 - $_.up(); //#3644 - break; //#3644 - } //#3644 - var _1d = $k[--$j]; //#3645 - $k[$j++] = _1d; //#3649 - if ($eq(_1d, "1001")) { //#3648 - if ($_.dir == 2) { //#3646 - $j--; //#3646 - $_.left(); //#3646 - break; //#3646 - } else { //#3646 - $j--; //#3646 - $_.right(); //#3646 - break; //#3646 - } //#3646 - } else { //#3648 - if ($_.dir == 1) { //#3648 - $j--; //#3648 - $_.down(); //#3648 - break; //#3648 - } else { //#3648 - $j--; //#3648 - $_.up(); //#3648 - break; //#3648 - } //#3648 - } //#3648 - } //#3648 - if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3651 - break; //#3651 - } //#3651 - } //#3651 - $astore($a($counttomark())); //#3653 - var _1o = $k[--$j]; //#3653 - var _1p = $k[--$j]; //#3653 - $k[$j++] = _1o; //#3653 - $k[$j++] = _1p; //#3653 - $j--; //#3653 - }; //#3653 + $_.y = $k[--$j]; //#3703 + $_.x = $k[--$j]; //#3703 + $k[$j++] = 'dir'; //#3705 + $k[$j++] = $f($_.x + 1); //#3705 + $k[$j++] = $f($_.y + 1); //#3705 + $_.xyget(); //#3705 + var _1R = ($k[--$j] == 1) ? 8 : 4; //#3705 + $_[$k[--$j]] = _1R; //#3705 + $_.sx = $_.x; //#3706 + $_.sy = $_.y; //#3706 + $_.sdir = $_.dir; //#3706 + $k[$j++] = Infinity; //#3710 + for (;;) { //#3724 + $k[$j++] = $_.x; //#3711 + $k[$j++] = $_.y; //#3711 + $_.abcd(); //#3711 + for (var _1Y = 0, _1Z = 1; _1Y < _1Z; _1Y++) { //#3722 + var _1a = $k[--$j]; //#3713 + $k[$j++] = _1a; //#3713 + if ($eq(_1a, "0001") || ($eq(_1a, "0011") || $eq(_1a, "1011"))) { //#3713 + $j--; //#3713 + $_.right(); //#3713 + break; //#3713 + } //#3713 + var _1b = $k[--$j]; //#3714 + $k[$j++] = _1b; //#3714 + if ($eq(_1b, "0010") || ($eq(_1b, "1010") || $eq(_1b, "1110"))) { //#3714 + $j--; //#3714 + $_.down(); //#3714 + break; //#3714 + } //#3714 + var _1c = $k[--$j]; //#3715 + $k[$j++] = _1c; //#3715 + if ($eq(_1c, "1000") || ($eq(_1c, "1100") || $eq(_1c, "1101"))) { //#3715 + $j--; //#3715 + $_.left(); //#3715 + break; //#3715 + } //#3715 + var _1d = $k[--$j]; //#3716 + $k[$j++] = _1d; //#3716 + if ($eq(_1d, "0100") || ($eq(_1d, "0101") || $eq(_1d, "0111"))) { //#3716 + $j--; //#3716 + $_.up(); //#3716 + break; //#3716 + } //#3716 + var _1e = $k[--$j]; //#3717 + $k[$j++] = _1e; //#3721 + if ($eq(_1e, "1001")) { //#3720 + if ($_.dir == 2) { //#3718 + $j--; //#3718 + $_.left(); //#3718 + break; //#3718 + } else { //#3718 + $j--; //#3718 + $_.right(); //#3718 + break; //#3718 + } //#3718 + } else { //#3720 + if ($_.dir == 1) { //#3720 + $j--; //#3720 + $_.down(); //#3720 + break; //#3720 + } else { //#3720 + $j--; //#3720 + $_.up(); //#3720 + break; //#3720 + } //#3720 + } //#3720 + } //#3720 + if (($eq($_.x, $_.sx) && $eq($_.y, $_.sy)) && ($_.dir == $_.sdir)) { //#3723 + break; //#3723 + } //#3723 + } //#3723 + $astore($a($counttomark())); //#3725 + var _1p = $k[--$j]; //#3725 + var _1q = $k[--$j]; //#3725 + $k[$j++] = _1p; //#3725 + $k[$j++] = _1q; //#3725 + $j--; //#3725 + }; //#3725 $_.drawlayer = function() { - $_.pixsorig = $_.pixs; //#3679 - $_.pixs = $k[--$j]; //#3680 - $k[$j++] = Infinity; //#3690 - for (var _1t = 0, _1u = $_.pixx + 2; _1t < _1u; _1t++) { //#3684 - $k[$j++] = 0; //#3684 - } //#3684 - for (var _1y = 0, _1z = $_.pixx, _1x = $_.pixs.length - 1; _1z < 0 ? _1y >= _1x : _1y <= _1x; _1y += _1z) { //#3689 - $k[$j++] = 0; //#3687 - $aload($geti($_.pixs, _1y, $_.pixx)); //#3687 - $k[$j++] = 0; //#3688 - } //#3688 - for (var _24 = 0, _25 = $_.pixx + 2; _24 < _25; _24++) { //#3690 - $k[$j++] = 0; //#3690 - } //#3690 - $_.pixs = $a(); //#3690 - $_.pixx = $_.pixx + 2; //#3692 - $_.pixy = $_.pixy + 2; //#3693 - $k[$j++] = Infinity; //#3696 - for (var _2A = 0, _2B = $_.pixs.length; _2A < _2B; _2A++) { //#3696 - $k[$j++] = 0; //#3696 - } //#3696 - $_.cache = $a(); //#3696 - $k[$j++] = Infinity; //#3712 - for (var _2F = 0, _2E = $_.pixy - 2; _2F <= _2E; _2F += 1) { //#3716 - $_.j = _2F; //#3701 - for (var _2I = 0, _2H = $_.pixx - 2; _2I <= _2H; _2I += 1) { //#3715 - $_.i = _2I; //#3703 - $k[$j++] = 'k'; //#3704 - $k[$j++] = $_.i; //#3704 - $k[$j++] = $_.j; //#3704 - $_.abcd(); //#3704 - var _2L = $k[--$j]; //#3704 - $_[$k[--$j]] = _2L; //#3704 - if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3709 - $k[$j++] = 8; //#3706 - $k[$j++] = $_.i; //#3706 - $k[$j++] = $_.j; //#3706 - $_.cget(); //#3706 - if ($k[--$j] == 0) { //#3708 - $k[$j++] = $_.i; //#3707 - $k[$j++] = $_.j; //#3707 - $_.trace(); //#3707 - } //#3707 - } //#3707 - if ($eq($_.k, "1110")) { //#3714 - $k[$j++] = 4; //#3711 - $k[$j++] = $_.i; //#3711 - $k[$j++] = $_.j; //#3711 - $_.cget(); //#3711 - if ($k[--$j] == 0) { //#3713 - $k[$j++] = $_.i; //#3712 - $k[$j++] = $_.j; //#3712 - $_.trace(); //#3712 - } //#3712 - } //#3712 - } //#3712 - } //#3712 - $_.paths = $a(); //#3712 - $_.pixx = $_.pixx - 2; //#3720 - $_.pixy = $_.pixy - 2; //#3721 - $$.newpath(); //#3724 - var _2d = $_.paths; //#3725 - for (var _2e = 0, _2f = _2d.length; _2e < _2f; _2e++) { //#3743 - $_.p = $get(_2d, _2e); //#3726 - $_.len = $_.p.length; //#3727 - $aload($get($_.p, $_.len - 1)); //#3728 - $aload($get($_.p, 0)); //#3729 - for (var _2p = 0, _2o = $_.len - 1; _2p <= _2o; _2p += 1) { //#3740 - $_.i = _2p; //#3731 - $aload($get($_.p, ($_.i + 1) % $_.len)); //#3732 - var _2u = $k[--$j]; //#3732 - var _2v = $k[--$j]; //#3732 - var _2w = $k[--$j]; //#3732 - var _2x = $k[--$j]; //#3732 - var _2y = $k[--$j]; //#3732 - var _2z = $k[--$j]; //#3732 - $k[$j++] = _2x; //#3734 - $k[$j++] = _2w; //#3734 - $k[$j++] = _2v; //#3734 - $k[$j++] = _2u; //#3734 - $k[$j++] = _2z; //#3734 - $k[$j++] = _2x; //#3734 - $k[$j++] = $_.inkspreadh; //#3734 - if ($lt(_2u, _2y)) { //#3734 - var _31 = $k[--$j]; //#3734 - var _32 = $k[--$j]; //#3734 - $k[$j++] = $f(_32 + _31); //#3734 - } else { //#3734 - var _33 = $k[--$j]; //#3734 - var _34 = $k[--$j]; //#3734 - $k[$j++] = $f(_34 - _33); //#3734 - } //#3734 - var _35 = $k[--$j]; //#3735 - var _36 = $k[--$j]; //#3735 - var _37 = $k[--$j]; //#3735 - var _38 = $k[--$j]; //#3735 - var _39 = $k[--$j]; //#3736 - $k[$j++] = _39; //#3737 - $k[$j++] = _35; //#3737 - $k[$j++] = _38; //#3737 - $k[$j++] = _37; //#3737 - $k[$j++] = _39; //#3737 - $k[$j++] = $_.inkspreadv; //#3737 - if ($gt(_38, _36)) { //#3737 - var _3B = $k[--$j]; //#3737 - var _3C = $k[--$j]; //#3737 - $k[$j++] = $f(_3C + _3B); //#3737 - } else { //#3737 - var _3D = $k[--$j]; //#3737 - var _3E = $k[--$j]; //#3737 - $k[$j++] = $f(_3E - _3D); //#3737 - } //#3737 - var _3F = $k[--$j]; //#3738 - var _3G = $k[--$j]; //#3738 - var _3H = $k[--$j]; //#3738 - var _3I = $k[--$j]; //#3738 - $k[$j++] = _3H; //#3739 - $k[$j++] = _3G; //#3739 - $k[$j++] = _3I; //#3739 - $k[$j++] = $f($_.pixy - _3F); //#3739 - if ($_.i == 0) { //#3739 - var _3L = $k[--$j]; //#3739 - $$.moveto($k[--$j], _3L); //#3739 - } else { //#3739 - var _3N = $k[--$j]; //#3739 - $$.lineto($k[--$j], _3N); //#3739 - } //#3739 - } //#3739 - $$.closepath(); //#3741 - $j -= 4; //#3742 - } //#3742 - $$.fill(); //#3744 - $_.pixs = $_.pixsorig; //#3746 - }; //#3746 + $_.pixsorig = $_.pixs; //#3751 + $_.pixs = $k[--$j]; //#3752 + $k[$j++] = Infinity; //#3755 + for (var _1u = 0, _1v = $_.pixx + 2; _1u < _1v; _1u++) { //#3756 + $k[$j++] = 0; //#3756 + } //#3756 + for (var _1z = 0, _20 = $_.pixx, _1y = $_.pixs.length - 1; _20 < 0 ? _1z >= _1y : _1z <= _1y; _1z += _20) { //#3761 + $k[$j++] = 0; //#3759 + $aload($geti($_.pixs, _1z, $_.pixx)); //#3759 + $k[$j++] = 0; //#3760 + } //#3760 + for (var _25 = 0, _26 = $_.pixx + 2; _25 < _26; _25++) { //#3762 + $k[$j++] = 0; //#3762 + } //#3762 + $_.pixs = $a(); //#3762 + $_.pixx = $_.pixx + 2; //#3764 + $_.pixy = $_.pixy + 2; //#3765 + $k[$j++] = Infinity; //#3768 + for (var _2B = 0, _2C = $_.pixs.length; _2B < _2C; _2B++) { //#3768 + $k[$j++] = 0; //#3768 + } //#3768 + $_.cache = $a(); //#3768 + $k[$j++] = Infinity; //#3771 + for (var _2G = 0, _2F = $_.pixy - 2; _2G <= _2F; _2G += 1) { //#3788 + $_.j = _2G; //#3773 + for (var _2J = 0, _2I = $_.pixx - 2; _2J <= _2I; _2J += 1) { //#3787 + $_.i = _2J; //#3775 + $k[$j++] = 'k'; //#3776 + $k[$j++] = $_.i; //#3776 + $k[$j++] = $_.j; //#3776 + $_.abcd(); //#3776 + var _2M = $k[--$j]; //#3776 + $_[$k[--$j]] = _2M; //#3776 + if ($eq($_.k, "0001") || $eq($_.k, "1001")) { //#3781 + $k[$j++] = 8; //#3778 + $k[$j++] = $_.i; //#3778 + $k[$j++] = $_.j; //#3778 + $_.cget(); //#3778 + if ($k[--$j] == 0) { //#3780 + $k[$j++] = $_.i; //#3779 + $k[$j++] = $_.j; //#3779 + $_.trace(); //#3779 + } //#3779 + } //#3779 + if ($eq($_.k, "1110")) { //#3786 + $k[$j++] = 4; //#3783 + $k[$j++] = $_.i; //#3783 + $k[$j++] = $_.j; //#3783 + $_.cget(); //#3783 + if ($k[--$j] == 0) { //#3785 + $k[$j++] = $_.i; //#3784 + $k[$j++] = $_.j; //#3784 + $_.trace(); //#3784 + } //#3784 + } //#3784 + } //#3784 + } //#3784 + $_.paths = $a(); //#3784 + $_.pixx = $_.pixx - 2; //#3792 + $_.pixy = $_.pixy - 2; //#3793 + $$.newpath(); //#3796 + var _2e = $_.paths; //#3797 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#3815 + $_.p = $get(_2e, _2f); //#3798 + $_.len = $_.p.length; //#3799 + $aload($get($_.p, $_.len - 1)); //#3800 + $aload($get($_.p, 0)); //#3801 + for (var _2q = 0, _2p = $_.len - 1; _2q <= _2p; _2q += 1) { //#3812 + $_.i = _2q; //#3803 + $aload($get($_.p, ($_.i + 1) % $_.len)); //#3804 + var _2v = $k[--$j]; //#3804 + var _2w = $k[--$j]; //#3804 + var _2x = $k[--$j]; //#3804 + var _2y = $k[--$j]; //#3804 + var _2z = $k[--$j]; //#3804 + var _30 = $k[--$j]; //#3804 + $k[$j++] = _2y; //#3806 + $k[$j++] = _2x; //#3806 + $k[$j++] = _2w; //#3806 + $k[$j++] = _2v; //#3806 + $k[$j++] = _30; //#3806 + $k[$j++] = _2y; //#3806 + $k[$j++] = $_.inkspreadh; //#3806 + if ($lt(_2v, _2z)) { //#3806 + var _32 = $k[--$j]; //#3806 + var _33 = $k[--$j]; //#3806 + $k[$j++] = $f(_33 + _32); //#3806 + } else { //#3806 + var _34 = $k[--$j]; //#3806 + var _35 = $k[--$j]; //#3806 + $k[$j++] = $f(_35 - _34); //#3806 + } //#3806 + var _36 = $k[--$j]; //#3807 + var _37 = $k[--$j]; //#3807 + var _38 = $k[--$j]; //#3807 + var _39 = $k[--$j]; //#3807 + var _3A = $k[--$j]; //#3808 + $k[$j++] = _3A; //#3809 + $k[$j++] = _36; //#3809 + $k[$j++] = _39; //#3809 + $k[$j++] = _38; //#3809 + $k[$j++] = _3A; //#3809 + $k[$j++] = $_.inkspreadv; //#3809 + if ($gt(_39, _37)) { //#3809 + var _3C = $k[--$j]; //#3809 + var _3D = $k[--$j]; //#3809 + $k[$j++] = $f(_3D + _3C); //#3809 + } else { //#3809 + var _3E = $k[--$j]; //#3809 + var _3F = $k[--$j]; //#3809 + $k[$j++] = $f(_3F - _3E); //#3809 + } //#3809 + var _3G = $k[--$j]; //#3810 + var _3H = $k[--$j]; //#3810 + var _3I = $k[--$j]; //#3810 + var _3J = $k[--$j]; //#3810 + $k[$j++] = _3I; //#3811 + $k[$j++] = _3H; //#3811 + $k[$j++] = _3J; //#3811 + $k[$j++] = $f($_.pixy - _3G); //#3811 + if ($_.i == 0) { //#3811 + var _3M = $k[--$j]; //#3811 + $$.moveto($k[--$j], _3M); //#3811 + } else { //#3811 + var _3O = $k[--$j]; //#3811 + $$.lineto($k[--$j], _3O); //#3811 + } //#3811 + } //#3811 + $$.closepath(); //#3813 + $j -= 4; //#3814 + } //#3814 + $$.fill(); //#3816 + $_.pixs = $_.pixsorig; //#3818 + }; //#3818 $_.drawlayerdots = function() { - $_.pixsorig = $_.pixs; //#3752 - $_.pixs = $k[--$j]; //#3753 - $$.newpath(); //#3755 - for (var _3U = 0, _3T = $_.pixs.length - 1; _3U <= _3T; _3U += 1) { //#3763 - $_.x = _3U % $_.pixx; //#3757 - $_.y = ~~(_3U / $_.pixx); //#3758 - $k[$j++] = $_.x; //#3759 - $k[$j++] = $_.y; //#3759 - $_.xyget(); //#3759 - if ($k[--$j] == 1) { //#3762 - $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3760 - $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3761 - } //#3761 - } //#3761 - $$.fill(); //#3764 - $_.pixs = $_.pixsorig; //#3766 - }; //#3766 - $$.save(); //#3770 - $_.inkspread = $_.inkspread / 2; //#3773 - $_.inkspreadh = $_.inkspreadh / 2; //#3774 - $_.inkspreadv = $_.inkspreadv / 2; //#3775 - var _3l = $$.currpos(); //#3776 - $$.translate(_3l.x, _3l.y); //#3776 - $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3777 - $$.moveto(0, 0); //#3778 - $$.lineto($_.pixx, 0); //#3778 - $$.lineto($_.pixx, $_.pixy); //#3778 - $$.lineto(0, $_.pixy); //#3778 - $$.closepath(); //#3778 - if ($eq($_.colormap, "unset")) { //#3783 - var _3w = new Map([ + $_.pixsorig = $_.pixs; //#3824 + $_.pixs = $k[--$j]; //#3825 + $$.newpath(); //#3827 + for (var _3V = 0, _3U = $_.pixs.length - 1; _3V <= _3U; _3V += 1) { //#3835 + $_.x = _3V % $_.pixx; //#3829 + $_.y = ~~(_3V / $_.pixx); //#3830 + $k[$j++] = $_.x; //#3831 + $k[$j++] = $_.y; //#3831 + $_.xyget(); //#3831 + if ($k[--$j] == 1) { //#3834 + $$.moveto($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5)); //#3832 + $$.arc($f($_.x + 0.5), $f(($_.pixy - $_.y) - 0.5), $f(0.5 - $_.inkspread), 0, 360, 1); //#3833 + } //#3833 + } //#3833 + $$.fill(); //#3836 + $_.pixs = $_.pixsorig; //#3838 + }; //#3838 + $$.save(); //#3842 + var _3j = $$.currpos(); //#3844 + $$.translate(_3j.x, _3j.y); //#3844 + $_.inkspread = $_.inkspread / 2; //#3846 + $_.inkspreadh = $_.inkspreadh / 2; //#3847 + $_.inkspreadv = $_.inkspreadv / 2; //#3848 + $$.scale(($_.width / $_.pixx) * 72, ($_.height / $_.pixy) * 72); //#3851 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3854 + $_.tr = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f(($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#3855 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3856 + $_.br = $a([$f(($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#3857 + if ($ne($_.backgroundcolor, "unset")) { //#3863 + $$.save(); //#3859 + $$.newpath(); //#3860 + $aload($_.bl); //#3860 + var _4H = $k[--$j]; //#3860 + $$.moveto($k[--$j], _4H); //#3860 + var _4M = $a([$_.br, $_.tr, $_.tl]); //#3860 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#3860 + $aload($get(_4M, _4N)); //#3860 + var _4Q = $k[--$j]; //#3860 + $$.lineto($k[--$j], _4Q); //#3860 + } //#3860 + $$.closepath(); //#3860 + $$.setcolor($_.backgroundcolor); //#3861 + $$.fill(); //#3861 + $$.restore(); //#3862 + } //#3862 + if ($_.showborder) { //#3870 + $$.save(); //#3865 + $$.newpath(); //#3866 + $aload($_.bl); //#3866 + var _4V = $k[--$j]; //#3866 + $$.moveto($k[--$j], _4V); //#3866 + var _4a = $a([$_.br, $_.tr, $_.tl]); //#3866 + for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3866 + $aload($get(_4a, _4b)); //#3866 + var _4e = $k[--$j]; //#3866 + $$.lineto($k[--$j], _4e); //#3866 + } //#3866 + $$.closepath(); //#3866 + if ($ne($_.bordercolor, "unset")) { //#3867 + $$.setcolor($_.bordercolor); //#3867 + } //#3867 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#3868 + $$.stroke(); //#3868 + $$.restore(); //#3869 + } //#3869 + if ($eq($_.colormap, "unset")) { //#3875 + var _4m = new Map([ [1, $_.barcolor] - ]); //#3782 - $_.colormap = _3w; //#3782 - } //#3782 - var _3x = $_.colormap; //#3785 - for (var _42 = _3x.size, _41 = _3x.keys(), _40 = 0; _40 < _42; _40++) { //#3791 - var _3y = _41.next().value; //#3791 - var _3z = _3x.get(_3y); //#3791 - $k[$j++] = _3y; //#3786 - $k[$j++] = _3z; //#3786 - if ($ne(_3z, "unset")) { //#3786 - $$.setcolor($k[--$j]); //#3786 - } else { //#3786 - $j--; //#3786 - } //#3786 - $_.key = $k[--$j]; //#3787 - $k[$j++] = Infinity; //#3789 - var _45 = $_.pixs; //#3789 - for (var _46 = 0, _47 = _45.length; _46 < _47; _46++) { //#3789 - var _4A = $eq($get(_45, _46), $_.key) ? 1 : 0; //#3789 - $k[$j++] = _4A; //#3789 - } //#3789 - var _4B = $a(); //#3789 - $k[$j++] = _4B; //#3790 - if ($_.dotty) { //#3790 - $_.drawlayerdots(); //#3790 - } else { //#3790 - $_.drawlayer(); //#3790 - } //#3790 - } //#3790 - if ($ne($_.textcolor, "unset")) { //#3794 - $$.setcolor($_.textcolor); //#3794 - } //#3794 - if ($_.includetext) { //#3855 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3853 - $_.s = 0; //#3797 - $_.fn = ""; //#3797 - var _4J = $_.txt; //#3798 - for (var _4K = 0, _4L = _4J.length; _4K < _4L; _4K++) { //#3811 - $forall($get(_4J, _4K)); //#3799 - var _4N = $k[--$j]; //#3800 - var _4O = $k[--$j]; //#3800 - $k[$j++] = _4O; //#3809 - $k[$j++] = _4N; //#3809 - if ((_4N != $_.s) || $ne(_4O, $_.fn)) { //#3808 - var _4R = $k[--$j]; //#3801 - $k[$j++] = _4R; //#3804 - if (_4R <= 0) { //#3804 - $j -= 5; //#3802 - $k[$j++] = 'bwipp.renmatrixFontTooSmall#3803'; //#3803 - $k[$j++] = "The font size is too small"; //#3803 - bwipp_raiseerror(); //#3803 - } //#3803 - var _4S = $k[--$j]; //#3805 - var _4T = $k[--$j]; //#3805 - $_.s = _4S; //#3805 - $_.fn = _4T; //#3805 - $$.selectfont(_4T, _4S); //#3806 - } else { //#3808 - $j -= 2; //#3808 - } //#3808 - var _4U = $k[--$j]; //#3810 - $$.moveto($k[--$j], _4U); //#3810 - $$.show($k[--$j], 0, 0); //#3810 - } //#3810 - } else { //#3853 - $$.selectfont($_.textfont, $_.textsize); //#3813 - if ($eq($_.alttext, "")) { //#3819 - $k[$j++] = Infinity; //#3815 - var _4a = $_.txt; //#3815 - for (var _4b = 0, _4c = _4a.length; _4b < _4c; _4b++) { //#3815 - $forall($get($get(_4a, _4b), 0)); //#3815 - } //#3815 - $_.txt = $a(); //#3815 - $_.tstr = $s($_.txt.length); //#3816 - for (var _4k = 0, _4j = $_.txt.length - 1; _4k <= _4j; _4k += 1) { //#3817 - $put($_.tstr, _4k, $get($_.txt, _4k)); //#3817 - } //#3817 - } else { //#3819 - $_.tstr = $_.alttext; //#3819 - } //#3819 - if ($_.tstr.length == 0) { //#3829 - $k[$j++] = 0; //#3824 - } else { //#3829 - $$.save(); //#3826 - $$.newpath(); //#3827 - $$.moveto(0, 0); //#3827 - $$.charpath("0", false); //#3827 - var _4q = $$.pathbbox(); //#3827 - $$.restore(); //#3829 - $k[$j++] = _4q.ury; //#3829 - } //#3829 - $_.textascent = $k[--$j]; //#3838 - var _4t = $$.stringwidth($_.tstr); //#3839 - $_.textwidth = $f(_4t.w + (($_.tstr.length - 1) * $_.textgaps)); //#3839 - $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3841 - if ($eq($_.textxalign, "left")) { //#3842 - $_.textxpos = $_.textxoffset; //#3842 - } //#3842 - if ($eq($_.textxalign, "right")) { //#3843 - $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3843 - } //#3843 - if ($eq($_.textxalign, "offleft")) { //#3844 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3844 - } //#3844 - if ($eq($_.textxalign, "offright")) { //#3845 - $_.textxpos = $_.pixx + $_.textxoffset; //#3845 - } //#3845 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3849 - $_.textxpos = 0; //#3847 - $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3848 - } //#3848 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3850 - if ($eq($_.textyalign, "above")) { //#3851 - $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3851 - } //#3851 - if ($eq($_.textyalign, "center")) { //#3852 - $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3852 - } //#3852 - $$.moveto($_.textxpos, $_.textypos); //#3853 - $$.show($_.tstr, $_.textgaps, 0); //#3853 - } //#3853 - } //#3853 - $$.restore(); //#3857 - $_ = Object.getPrototypeOf($_); //#3859 -} - + ]); //#3874 + $_.colormap = _4m; //#3874 + } //#3874 + var _4n = $_.colormap; //#3877 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#3883 + var _4o = _4r.next().value; //#3883 + var _4p = _4n.get(_4o); //#3883 + $k[$j++] = _4o; //#3878 + $k[$j++] = _4p; //#3878 + if ($ne(_4p, "unset")) { //#3878 + $$.setcolor($k[--$j]); //#3878 + } else { //#3878 + $j--; //#3878 + } //#3878 + $_.key = $k[--$j]; //#3879 + $k[$j++] = Infinity; //#3880 + var _4v = $_.pixs; //#3881 + for (var _4w = 0, _4x = _4v.length; _4w < _4x; _4w++) { //#3881 + var _50 = $eq($get(_4v, _4w), $_.key) ? 1 : 0; //#3881 + $k[$j++] = _50; //#3881 + } //#3881 + var _51 = $a(); //#3881 + $k[$j++] = _51; //#3882 + if ($_.dotty) { //#3882 + $_.drawlayerdots(); //#3882 + } else { //#3882 + $_.drawlayer(); //#3882 + } //#3882 + } //#3882 + if ($ne($_.textcolor, "unset")) { //#3886 + $$.setcolor($_.textcolor); //#3886 + } //#3886 + if ($_.includetext) { //#3947 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#3945 + $_.s = 0; //#3889 + $_.fn = ""; //#3889 + var _59 = $_.txt; //#3890 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#3903 + $forall($get(_59, _5A)); //#3891 + var _5D = $k[--$j]; //#3892 + var _5E = $k[--$j]; //#3892 + $k[$j++] = _5E; //#3901 + $k[$j++] = _5D; //#3901 + if ((_5D != $_.s) || $ne(_5E, $_.fn)) { //#3900 + var _5H = $k[--$j]; //#3893 + $k[$j++] = _5H; //#3896 + if (_5H <= 0) { //#3896 + $j -= 5; //#3894 + $k[$j++] = 'bwipp.renmatrixFontTooSmall#3895'; //#3895 + $k[$j++] = "The font size is too small"; //#3895 + bwipp_raiseerror(); //#3895 + } //#3895 + var _5I = $k[--$j]; //#3897 + var _5J = $k[--$j]; //#3897 + $_.s = _5I; //#3897 + $_.fn = _5J; //#3897 + $$.selectfont(_5J, _5I); //#3898 + } else { //#3900 + $j -= 2; //#3900 + } //#3900 + var _5K = $k[--$j]; //#3902 + $$.moveto($k[--$j], _5K); //#3902 + $$.show($k[--$j], 0, 0); //#3902 + } //#3902 + } else { //#3945 + $$.selectfont($_.textfont, $_.textsize); //#3905 + if ($eq($_.alttext, "")) { //#3911 + $k[$j++] = Infinity; //#3907 + var _5Q = $_.txt; //#3907 + for (var _5R = 0, _5S = _5Q.length; _5R < _5S; _5R++) { //#3907 + $forall($get($get(_5Q, _5R), 0)); //#3907 + } //#3907 + $_.txt = $a(); //#3907 + $_.tstr = $s($_.txt.length); //#3908 + for (var _5a = 0, _5Z = $_.txt.length - 1; _5a <= _5Z; _5a += 1) { //#3909 + $put($_.tstr, _5a, $get($_.txt, _5a)); //#3909 + } //#3909 + } else { //#3911 + $_.tstr = $_.alttext; //#3911 + } //#3911 + if ($_.tstr.length == 0) { //#3921 + $k[$j++] = 0; //#3916 + } else { //#3921 + $$.save(); //#3918 + $$.newpath(); //#3919 + $$.moveto(0, 0); //#3919 + $$.charpath("0", false); //#3919 + var _5g = $$.pathbbox(); //#3919 + $$.restore(); //#3921 + $k[$j++] = _5g.ury; //#3921 + } //#3921 + $_.textascent = $k[--$j]; //#3930 + var _5j = $$.stringwidth($_.tstr); //#3931 + $_.textwidth = $f(_5j.w + (($_.tstr.length - 1) * $_.textgaps)); //#3931 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#3933 + if ($eq($_.textxalign, "left")) { //#3934 + $_.textxpos = $_.textxoffset; //#3934 + } //#3934 + if ($eq($_.textxalign, "right")) { //#3935 + $_.textxpos = $f(($_.pixx - $_.textxoffset) - $_.textwidth); //#3935 + } //#3935 + if ($eq($_.textxalign, "offleft")) { //#3936 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#3936 + } //#3936 + if ($eq($_.textxalign, "offright")) { //#3937 + $_.textxpos = $_.pixx + $_.textxoffset; //#3937 + } //#3937 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#3941 + $_.textxpos = 0; //#3939 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#3940 + } //#3940 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#3942 + if ($eq($_.textyalign, "above")) { //#3943 + $_.textypos = ($_.textyoffset + $_.pixy) + 1; //#3943 + } //#3943 + if ($eq($_.textyalign, "center")) { //#3944 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#3944 + } //#3944 + $$.moveto($_.textxpos, $_.textypos); //#3945 + $$.show($_.tstr, $_.textgaps, 0); //#3945 + } //#3945 + } //#3945 + $$.restore(); //#3949 + $_ = Object.getPrototypeOf($_); //#3951 +} //bwipp_renmatrix function bwipp_ean5() { - $_ = Object.create($_); //#3981 - $_.dontdraw = false; //#3984 - $_.includetext = false; //#3985 - $_.textfont = "OCR-B"; //#3986 - $_.textsize = 12; //#3987 - $_.textxoffset = 0; //#3988 - $_.textyoffset = null; //#3989 - $_.height = 0.7; //#3990 - $k[$j++] = $_; //#3992 - bwipp_processoptions(); //#3992 - $_.options = $k[--$j]; //#3992 - $_.barcode = $k[--$j]; //#3993 - if ($eq($_.textyoffset, null)) { //#3997 - $_.textyoffset = $f(($_.height * 72) + 1); //#3996 - } //#3996 - bwipp_loadctx(bwipp_ean5) //#3999 - if ($_.barcode.length != 5) { //#4004 - $k[$j++] = 'bwipp.ean5badLength#4003'; //#4003 - $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4003 - bwipp_raiseerror(); //#4003 - } //#4003 - $forall($_.barcode, function() { //#4009 - var _6 = $k[--$j]; //#4006 - if ((_6 < 48) || (_6 > 57)) { //#4008 - $k[$j++] = 'bwipp.ean5badCharacter#4007'; //#4007 - $k[$j++] = "EAN-5 add-on must contain only digits"; //#4007 - bwipp_raiseerror(); //#4007 - } //#4007 - }); //#4007 - if (!bwipp_ean5.__4027__) { //#4027 - $_ = Object.create($_); //#4027 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4017 - $_.barchars = "0123456789"; //#4020 - $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4026 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4026 - bwipp_ean5.__4027__ = 1; //#4026 - $_ = Object.getPrototypeOf($_); //#4026 - } //#4026 - $_.checksum = 0; //#4029 - for (var _A = 0; _A <= 4; _A += 1) { //#4038 - $_.i = _A; //#4031 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4032 - if (($_.i % 2) == 0) { //#4036 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4034 - } else { //#4036 - $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4036 - } //#4036 - } //#4036 - $_.checksum = $_.checksum % 10; //#4039 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4040 - $_.sbs = $s(31); //#4042 - $_.txt = $a(5); //#4043 - for (var _P = 0; _P <= 4; _P += 1) { //#4073 - $_.i = _P; //#4046 - if ($_.i == 0) { //#4052 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4050 - } else { //#4052 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4052 - } //#4052 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4056 - $j--; //#4057 - $_.indx = $k[--$j].length; //#4058 - $j -= 2; //#4059 - $_.enc = $get($_.encs, $_.indx); //#4060 - if ($get($_.mirrormap, $_.i) == 49) { //#4070 - $_.enclen = $_.enc.length; //#4062 - $_.revenc = $s($_.enclen); //#4063 - for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4068 - $_.j = _o; //#4065 - $_.char = $get($_.enc, $_.j); //#4066 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4067 - } //#4067 - $_.enc = $_.revenc; //#4069 - } //#4069 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4071 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4072 - } //#4072 - $k[$j++] = Infinity; //#4087 - $k[$j++] = Infinity; //#4078 - var _1B = $_.sbs; //#4078 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4078 - $k[$j++] = $get(_1B, _1C) - 48; //#4078 - } //#4078 - var _1F = $a(); //#4078 - $k[$j++] = Infinity; //#4079 - for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4079 - $k[$j++] = $_.height; //#4079 - } //#4079 - var _1J = $a(); //#4079 - $k[$j++] = Infinity; //#4080 - for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4080 - $k[$j++] = 0; //#4080 - } //#4080 - var _1M = $a(); //#4080 - $k[$j++] = 'ren'; //#4083 - $k[$j++] = bwipp_renlinear; //#4083 - $k[$j++] = 'sbs'; //#4083 - $k[$j++] = _1F; //#4083 - $k[$j++] = 'bhs'; //#4083 - $k[$j++] = _1J; //#4083 - $k[$j++] = 'bbs'; //#4083 - $k[$j++] = _1M; //#4083 - if ($_.includetext) { //#4083 - $k[$j++] = 'txt'; //#4082 - $k[$j++] = $_.txt; //#4082 - } //#4082 - $k[$j++] = 'opt'; //#4087 - $k[$j++] = $_.options; //#4087 - $k[$j++] = 'guardrightpos'; //#4087 - $k[$j++] = 10; //#4087 - $k[$j++] = 'guardrightypos'; //#4087 - $k[$j++] = $f($_.textyoffset + 4); //#4087 - $k[$j++] = 'bordertop'; //#4087 - $k[$j++] = 10; //#4087 - var _1R = $d(); //#4087 - $k[$j++] = _1R; //#4090 - if (!$_.dontdraw) { //#4090 - bwipp_renlinear(); //#4090 - } //#4090 - $_ = Object.getPrototypeOf($_); //#4092 - $_ = Object.getPrototypeOf($_); //#4094 -} - + $_ = Object.create($_); //#4099 + $_.dontdraw = false; //#4102 + $_.includetext = false; //#4103 + $_.textfont = "OCR-B"; //#4104 + $_.textsize = 12; //#4105 + $_.textxoffset = 0; //#4106 + $_.textyoffset = null; //#4107 + $_.height = 0.7; //#4108 + $k[$j++] = $_; //#4110 + bwipp_processoptions(); //#4110 + $_.options = $k[--$j]; //#4110 + $_.barcode = $k[--$j]; //#4111 + if ($eq($_.textyoffset, null)) { //#4115 + $_.textyoffset = $f(($_.height * 72) + 1); //#4114 + } //#4114 + bwipp_loadctx(bwipp_ean5) //#4117 + if ($_.barcode.length != 5) { //#4122 + $k[$j++] = 'bwipp.ean5badLength#4121'; //#4121 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#4121 + bwipp_raiseerror(); //#4121 + } //#4121 + $forall($_.barcode, function() { //#4127 + var _6 = $k[--$j]; //#4124 + if ((_6 < 48) || (_6 > 57)) { //#4126 + $k[$j++] = 'bwipp.ean5badCharacter#4125'; //#4125 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#4125 + bwipp_raiseerror(); //#4125 + } //#4125 + }); //#4125 + if (!bwipp_ean5.__4145__) { //#4145 + $_ = Object.create($_); //#4145 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4135 + $_.barchars = "0123456789"; //#4138 + $_.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#4144 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean5.$ctx[id] = $_[id]); //#4144 + bwipp_ean5.__4145__ = 1; //#4144 + $_ = Object.getPrototypeOf($_); //#4144 + } //#4144 + $_.checksum = 0; //#4147 + for (var _A = 0; _A <= 4; _A += 1) { //#4156 + $_.i = _A; //#4149 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4150 + if (($_.i % 2) == 0) { //#4154 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4152 + } else { //#4154 + $_.checksum = $f(($_.barchar * 9) + $_.checksum); //#4154 + } //#4154 + } //#4154 + $_.checksum = $_.checksum % 10; //#4157 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#4158 + $_.sbs = $s(31); //#4160 + $_.txt = $a(5); //#4161 + for (var _P = 0; _P <= 4; _P += 1) { //#4191 + $_.i = _P; //#4164 + if ($_.i == 0) { //#4170 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4168 + } else { //#4170 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4170 + } //#4170 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4174 + $j--; //#4175 + $_.indx = $k[--$j].length; //#4176 + $j -= 2; //#4177 + $_.enc = $get($_.encs, $_.indx); //#4178 + if ($get($_.mirrormap, $_.i) == 49) { //#4188 + $_.enclen = $_.enc.length; //#4180 + $_.revenc = $s($_.enclen); //#4181 + for (var _o = 0, _n = $_.enclen - 1; _o <= _n; _o += 1) { //#4186 + $_.j = _o; //#4183 + $_.char = $get($_.enc, $_.j); //#4184 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4185 + } //#4185 + $_.enc = $_.revenc; //#4187 + } //#4187 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4189 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4190 + } //#4190 + $k[$j++] = Infinity; //#4194 + $k[$j++] = Infinity; //#4196 + var _1B = $_.sbs; //#4196 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#4196 + $k[$j++] = $get(_1B, _1C) - 48; //#4196 + } //#4196 + var _1F = $a(); //#4196 + $k[$j++] = Infinity; //#4197 + for (var _1G = 0, _1H = 16; _1G < _1H; _1G++) { //#4197 + $k[$j++] = $_.height; //#4197 + } //#4197 + var _1J = $a(); //#4197 + $k[$j++] = Infinity; //#4198 + for (var _1K = 0, _1L = 16; _1K < _1L; _1K++) { //#4198 + $k[$j++] = 0; //#4198 + } //#4198 + var _1M = $a(); //#4198 + $k[$j++] = 'ren'; //#4201 + $k[$j++] = bwipp_renlinear; //#4201 + $k[$j++] = 'sbs'; //#4201 + $k[$j++] = _1F; //#4201 + $k[$j++] = 'bhs'; //#4201 + $k[$j++] = _1J; //#4201 + $k[$j++] = 'bbs'; //#4201 + $k[$j++] = _1M; //#4201 + if ($_.includetext) { //#4201 + $k[$j++] = 'txt'; //#4200 + $k[$j++] = $_.txt; //#4200 + } //#4200 + $k[$j++] = 'opt'; //#4207 + $k[$j++] = $_.options; //#4207 + $k[$j++] = 'guardrightpos'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'guardrightypos'; //#4207 + $k[$j++] = $f($_.textyoffset + 4); //#4207 + $k[$j++] = 'borderleft'; //#4207 + $k[$j++] = 12; //#4207 + $k[$j++] = 'borderright'; //#4207 + $k[$j++] = 5; //#4207 + $k[$j++] = 'bordertop'; //#4207 + $k[$j++] = 10; //#4207 + var _1R = $d(); //#4207 + $k[$j++] = _1R; //#4210 + if (!$_.dontdraw) { //#4210 + bwipp_renlinear(); //#4210 + } //#4210 + $_ = Object.getPrototypeOf($_); //#4212 + $_ = Object.getPrototypeOf($_); //#4214 +} //bwipp_ean5 function bwipp_ean2() { - $_ = Object.create($_); //#4124 - $_.dontdraw = false; //#4127 - $_.includetext = false; //#4128 - $_.textfont = "OCR-B"; //#4129 - $_.textsize = 12; //#4130 - $_.textxoffset = 0; //#4131 - $_.textyoffset = null; //#4132 - $_.height = 0.7; //#4133 - $k[$j++] = $_; //#4135 - bwipp_processoptions(); //#4135 - $_.options = $k[--$j]; //#4135 - $_.barcode = $k[--$j]; //#4136 - if ($eq($_.textyoffset, null)) { //#4140 - $_.textyoffset = $f(($_.height * 72) + 1); //#4139 - } //#4139 - bwipp_loadctx(bwipp_ean2) //#4142 - if ($_.barcode.length != 2) { //#4147 - $k[$j++] = 'bwipp.ean2badLength#4146'; //#4146 - $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4146 - bwipp_raiseerror(); //#4146 - } //#4146 - $forall($_.barcode, function() { //#4152 - var _6 = $k[--$j]; //#4149 - if ((_6 < 48) || (_6 > 57)) { //#4151 - $k[$j++] = 'bwipp.ean2badCharacter#4150'; //#4150 - $k[$j++] = "EAN-2 add-on must contain only digits"; //#4150 - bwipp_raiseerror(); //#4150 - } //#4150 - }); //#4150 - if (!bwipp_ean2.__4167__) { //#4167 - $_ = Object.create($_); //#4167 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4160 - $_.barchars = "0123456789"; //#4163 - $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4166 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4166 - bwipp_ean2.__4167__ = 1; //#4166 - $_ = Object.getPrototypeOf($_); //#4166 - } //#4166 - $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4169 - $_.sbs = $s(13); //#4171 - $_.txt = $a(2); //#4172 - for (var _G = 0; _G <= 1; _G += 1) { //#4202 - $_.i = _G; //#4175 - if ($_.i == 0) { //#4181 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4179 - } else { //#4181 - $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4181 - } //#4181 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4185 - $j--; //#4186 - $_.indx = $k[--$j].length; //#4187 - $j -= 2; //#4188 - $_.enc = $get($_.encs, $_.indx); //#4189 - if ($get($_.mirrormap, $_.i) == 49) { //#4199 - $_.enclen = $_.enc.length; //#4191 - $_.revenc = $s($_.enclen); //#4192 - for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4197 - $_.j = _f; //#4194 - $_.char = $get($_.enc, $_.j); //#4195 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4196 - } //#4196 - $_.enc = $_.revenc; //#4198 - } //#4198 - $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4200 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4201 - } //#4201 - $k[$j++] = Infinity; //#4216 - $k[$j++] = Infinity; //#4207 - var _12 = $_.sbs; //#4207 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4207 - $k[$j++] = $get(_12, _13) - 48; //#4207 - } //#4207 - var _16 = $a(); //#4207 - $k[$j++] = Infinity; //#4208 - for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4208 - $k[$j++] = $_.height; //#4208 - } //#4208 - var _1A = $a(); //#4208 - $k[$j++] = Infinity; //#4209 - for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4209 - $k[$j++] = 0; //#4209 - } //#4209 - var _1D = $a(); //#4209 - $k[$j++] = 'ren'; //#4212 - $k[$j++] = bwipp_renlinear; //#4212 - $k[$j++] = 'sbs'; //#4212 - $k[$j++] = _16; //#4212 - $k[$j++] = 'bhs'; //#4212 - $k[$j++] = _1A; //#4212 - $k[$j++] = 'bbs'; //#4212 - $k[$j++] = _1D; //#4212 - if ($_.includetext) { //#4212 - $k[$j++] = 'txt'; //#4211 - $k[$j++] = $_.txt; //#4211 - } //#4211 - $k[$j++] = 'opt'; //#4216 - $k[$j++] = $_.options; //#4216 - $k[$j++] = 'guardrightpos'; //#4216 - $k[$j++] = 10; //#4216 - $k[$j++] = 'guardrightypos'; //#4216 - $k[$j++] = $f($_.textyoffset + 4); //#4216 - $k[$j++] = 'bordertop'; //#4216 - $k[$j++] = 10; //#4216 - var _1I = $d(); //#4216 - $k[$j++] = _1I; //#4219 - if (!$_.dontdraw) { //#4219 - bwipp_renlinear(); //#4219 - } //#4219 - $_ = Object.getPrototypeOf($_); //#4221 - $_ = Object.getPrototypeOf($_); //#4223 -} - + $_ = Object.create($_); //#4244 + $_.dontdraw = false; //#4247 + $_.includetext = false; //#4248 + $_.textfont = "OCR-B"; //#4249 + $_.textsize = 12; //#4250 + $_.textxoffset = 0; //#4251 + $_.textyoffset = null; //#4252 + $_.height = 0.7; //#4253 + $k[$j++] = $_; //#4255 + bwipp_processoptions(); //#4255 + $_.options = $k[--$j]; //#4255 + $_.barcode = $k[--$j]; //#4256 + if ($eq($_.textyoffset, null)) { //#4260 + $_.textyoffset = $f(($_.height * 72) + 1); //#4259 + } //#4259 + bwipp_loadctx(bwipp_ean2) //#4262 + if ($_.barcode.length != 2) { //#4267 + $k[$j++] = 'bwipp.ean2badLength#4266'; //#4266 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#4266 + bwipp_raiseerror(); //#4266 + } //#4266 + $forall($_.barcode, function() { //#4272 + var _6 = $k[--$j]; //#4269 + if ((_6 < 48) || (_6 > 57)) { //#4271 + $k[$j++] = 'bwipp.ean2badCharacter#4270'; //#4270 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#4270 + bwipp_raiseerror(); //#4270 + } //#4270 + }); //#4270 + if (!bwipp_ean2.__4287__) { //#4287 + $_ = Object.create($_); //#4287 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#4280 + $_.barchars = "0123456789"; //#4283 + $_.mirrormaps = $a(["00", "01", "10", "11"]); //#4286 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean2.$ctx[id] = $_[id]); //#4286 + bwipp_ean2.__4287__ = 1; //#4286 + $_ = Object.getPrototypeOf($_); //#4286 + } //#4286 + $_.mirrormap = $get($_.mirrormaps, $cvi($geti($_.barcode, 0, 2)) % 4); //#4289 + $_.sbs = $s(13); //#4291 + $_.txt = $a(2); //#4292 + for (var _G = 0; _G <= 1; _G += 1) { //#4322 + $_.i = _G; //#4295 + if ($_.i == 0) { //#4301 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4299 + } else { //#4301 + $puti($_.sbs, (($_.i - 1) * 6) + 7, $get($_.encs, 11)); //#4301 + } //#4301 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4305 + $j--; //#4306 + $_.indx = $k[--$j].length; //#4307 + $j -= 2; //#4308 + $_.enc = $get($_.encs, $_.indx); //#4309 + if ($get($_.mirrormap, $_.i) == 49) { //#4319 + $_.enclen = $_.enc.length; //#4311 + $_.revenc = $s($_.enclen); //#4312 + for (var _f = 0, _e = $_.enclen - 1; _f <= _e; _f += 1) { //#4317 + $_.j = _f; //#4314 + $_.char = $get($_.enc, $_.j); //#4315 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4316 + } //#4316 + $_.enc = $_.revenc; //#4318 + } //#4318 + $puti($_.sbs, ($_.i * 6) + 3, $_.enc); //#4320 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 9) + 10) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4321 + } //#4321 + $k[$j++] = Infinity; //#4325 + $k[$j++] = Infinity; //#4327 + var _12 = $_.sbs; //#4327 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#4327 + $k[$j++] = $get(_12, _13) - 48; //#4327 + } //#4327 + var _16 = $a(); //#4327 + $k[$j++] = Infinity; //#4328 + for (var _17 = 0, _18 = 12; _17 < _18; _17++) { //#4328 + $k[$j++] = $_.height; //#4328 + } //#4328 + var _1A = $a(); //#4328 + $k[$j++] = Infinity; //#4329 + for (var _1B = 0, _1C = 12; _1B < _1C; _1B++) { //#4329 + $k[$j++] = 0; //#4329 + } //#4329 + var _1D = $a(); //#4329 + $k[$j++] = 'ren'; //#4332 + $k[$j++] = bwipp_renlinear; //#4332 + $k[$j++] = 'sbs'; //#4332 + $k[$j++] = _16; //#4332 + $k[$j++] = 'bhs'; //#4332 + $k[$j++] = _1A; //#4332 + $k[$j++] = 'bbs'; //#4332 + $k[$j++] = _1D; //#4332 + if ($_.includetext) { //#4332 + $k[$j++] = 'txt'; //#4331 + $k[$j++] = $_.txt; //#4331 + } //#4331 + $k[$j++] = 'opt'; //#4338 + $k[$j++] = $_.options; //#4338 + $k[$j++] = 'guardrightpos'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'guardrightypos'; //#4338 + $k[$j++] = $f($_.textyoffset + 4); //#4338 + $k[$j++] = 'borderleft'; //#4338 + $k[$j++] = 12; //#4338 + $k[$j++] = 'borderright'; //#4338 + $k[$j++] = 5; //#4338 + $k[$j++] = 'bordertop'; //#4338 + $k[$j++] = 10; //#4338 + var _1I = $d(); //#4338 + $k[$j++] = _1I; //#4341 + if (!$_.dontdraw) { //#4341 + bwipp_renlinear(); //#4341 + } //#4341 + $_ = Object.getPrototypeOf($_); //#4343 + $_ = Object.getPrototypeOf($_); //#4345 +} //bwipp_ean2 function bwipp_ean13() { - $_ = Object.create($_); //#4255 - $_.dontdraw = false; //#4258 - $_.includetext = false; //#4259 - $_.textfont = "OCR-B"; //#4260 - $_.textsize = 12; //#4261 - $_.textxoffset = -10; //#4262 - $_.textyoffset = -4; //#4263 - $_.height = 1; //#4264 - $_.addongap = 12; //#4265 - $_.addontextfont = "unset"; //#4266 - $_.addontextsize = null; //#4267 - $_.addontextxoffset = null; //#4268 - $_.addontextyoffset = null; //#4269 - $k[$j++] = $_; //#4271 - bwipp_processoptions(); //#4271 - $_.options = $k[--$j]; //#4271 - $_.barcode = $k[--$j]; //#4272 - bwipp_loadctx(bwipp_ean13) //#4274 - $search($_.barcode, " "); //#4277 - if ($k[--$j]) { //#4283 - $_.barcode = $k[--$j]; //#4278 - $j--; //#4279 - $_.addon = $k[--$j]; //#4280 - } else { //#4283 - $j--; //#4282 - $_.addon = ""; //#4283 - } //#4283 - if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4289 - $k[$j++] = 'bwipp.ean13badLength#4288'; //#4288 - $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4288 - bwipp_raiseerror(); //#4288 - } //#4288 - $forall($_.barcode, function() { //#4294 - var _9 = $k[--$j]; //#4291 - if ((_9 < 48) || (_9 > 57)) { //#4293 - $k[$j++] = 'bwipp.ean13badCharacter#4292'; //#4292 - $k[$j++] = "EAN-13 must contain only digits"; //#4292 - bwipp_raiseerror(); //#4292 - } //#4292 - }); //#4292 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4297 - $k[$j++] = 'bwipp.ean13badAddOnLength#4296'; //#4296 - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4296 - bwipp_raiseerror(); //#4296 - } //#4296 - $_.pad = $s(13); //#4300 - $_.checksum = 0; //#4301 - for (var _E = 0; _E <= 11; _E += 1) { //#4310 - $_.i = _E; //#4303 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4304 - if (($_.i % 2) == 0) { //#4308 - $_.checksum = $f($_.barchar + $_.checksum); //#4306 - } else { //#4308 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4308 - } //#4308 - } //#4308 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4311 - if ($_.barcode.length == 13) { //#4316 - if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4315 - $k[$j++] = 'bwipp.ean13badCheckDigit#4314'; //#4314 - $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4314 - bwipp_raiseerror(); //#4314 - } //#4314 - } //#4314 - $puti($_.pad, 0, $_.barcode); //#4317 - $put($_.pad, 12, $f($_.checksum + 48)); //#4318 - $_.barcode = $_.pad; //#4319 - if (!bwipp_ean13.__4337__) { //#4337 - $_ = Object.create($_); //#4337 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4327 - $_.barchars = "0123456789"; //#4330 - $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4336 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4336 - bwipp_ean13.__4337__ = 1; //#4336 - $_ = Object.getPrototypeOf($_); //#4336 - } //#4336 - $_.sbs = $s(59); //#4339 - $_.txt = $a(13); //#4340 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4343 - $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4346 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4347 - for (var _r = 1; _r <= 6; _r += 1) { //#4370 - $_.i = _r; //#4352 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4353 - $j--; //#4354 - $_.indx = $k[--$j].length; //#4355 - $j -= 2; //#4356 - $_.enc = $get($_.encs, $_.indx); //#4357 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#4367 - $_.enclen = $_.enc.length; //#4359 - $_.revenc = $s($_.enclen); //#4360 - for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4365 - $_.j = _18; //#4362 - $_.char = $get($_.enc, $_.j); //#4363 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4364 - } //#4364 - $_.enc = $_.revenc; //#4366 - } //#4366 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4368 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 14) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4369 - } //#4369 - $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4373 - for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4386 - $_.i = _1Y; //#4378 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4379 - $j--; //#4380 - $_.indx = $k[--$j].length; //#4381 - $j -= 2; //#4382 - $_.enc = $get($_.encs, $_.indx); //#4383 - $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4384 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4385 - } //#4385 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4389 - $k[$j++] = Infinity; //#4391 - var _1y = $_.sbs; //#4391 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4391 - $k[$j++] = $get(_1y, _1z) - 48; //#4391 - } //#4391 - $_.sbs = $a(); //#4391 - if ($_.includetext) { //#4398 - $k[$j++] = Infinity; //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4393 - $k[$j++] = $f($_.height - 0.075); //#4393 - } //#4393 - $k[$j++] = $_.height; //#4393 - $k[$j++] = $_.height; //#4393 - $_.bhs = $a(); //#4393 - $k[$j++] = Infinity; //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4394 - $k[$j++] = 0.075; //#4394 - } //#4394 - $k[$j++] = 0; //#4394 - $k[$j++] = 0; //#4394 - $_.bbs = $a(); //#4394 - } else { //#4398 - $k[$j++] = Infinity; //#4396 - for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4396 - $k[$j++] = $_.height; //#4396 - } //#4396 - $_.bhs = $a(); //#4396 - $k[$j++] = Infinity; //#4397 - for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4397 - $k[$j++] = 0; //#4397 - } //#4397 - $_.bbs = $a(); //#4397 - $_.txt = $a([]); //#4398 - } //#4398 - $_.guardrightypos = 0; //#4400 - if ($ne($_.addon, "")) { //#4421 - $k[$j++] = Infinity; //#4411 - $k[$j++] = 'dontdraw'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'includetext'; //#4408 - $k[$j++] = true; //#4408 - $k[$j++] = 'height'; //#4408 - $k[$j++] = $f($_.height - 0.15); //#4408 - $k[$j++] = 'textxoffset'; //#4408 - if ($ne($_.addontextxoffset, null)) { //#4408 - $k[$j++] = $_.addontextxoffset; //#4408 - } else { //#4408 - $k[$j++] = 95 + $_.addongap; //#4408 - } //#4408 - if ($ne($_.addontextyoffset, null)) { //#4409 - $k[$j++] = 'textyoffset'; //#4409 - $k[$j++] = $_.addontextyoffset; //#4409 - } //#4409 - $k[$j++] = 'textsize'; //#4410 - if ($ne($_.addontextsize, null)) { //#4410 - $k[$j++] = $_.addontextsize; //#4410 - } else { //#4410 - $k[$j++] = $_.textsize; //#4410 - } //#4410 - var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4411 - $k[$j++] = 'textfont'; //#4411 - $k[$j++] = _2f; //#4411 - $_.addopts = $d(); //#4412 - if ($_.addon.length == 2) { //#4413 - $k[$j++] = $_.addon; //#4413 - $k[$j++] = $_.addopts; //#4413 - bwipp_ean2(); //#4413 - } //#4413 - if ($_.addon.length == 5) { //#4414 - $k[$j++] = $_.addon; //#4414 - $k[$j++] = $_.addopts; //#4414 - bwipp_ean5(); //#4414 + $_ = Object.create($_); //#4377 + $_.dontdraw = false; //#4380 + $_.includetext = false; //#4381 + $_.textfont = "OCR-B"; //#4382 + $_.textsize = 12; //#4383 + $_.textxoffset = -11; //#4384 + $_.textyoffset = -4; //#4385 + $_.height = 1; //#4386 + $_.addongap = 12; //#4387 + $_.addontextfont = "unset"; //#4388 + $_.addontextsize = null; //#4389 + $_.addontextxoffset = null; //#4390 + $_.addontextyoffset = null; //#4391 + $k[$j++] = $_; //#4393 + bwipp_processoptions(); //#4393 + $_.options = $k[--$j]; //#4393 + $_.barcode = $k[--$j]; //#4394 + bwipp_loadctx(bwipp_ean13) //#4396 + $search($_.barcode, " "); //#4399 + if ($k[--$j]) { //#4405 + $_.barcode = $k[--$j]; //#4400 + $j--; //#4401 + $_.addon = $k[--$j]; //#4402 + } else { //#4405 + $j--; //#4404 + $_.addon = ""; //#4405 + } //#4405 + if (($_.barcode.length != 12) && ($_.barcode.length != 13)) { //#4411 + $k[$j++] = 'bwipp.ean13badLength#4410'; //#4410 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#4410 + bwipp_raiseerror(); //#4410 + } //#4410 + $forall($_.barcode, function() { //#4416 + var _9 = $k[--$j]; //#4413 + if ((_9 < 48) || (_9 > 57)) { //#4415 + $k[$j++] = 'bwipp.ean13badCharacter#4414'; //#4414 + $k[$j++] = "EAN-13 must contain only digits"; //#4414 + bwipp_raiseerror(); //#4414 } //#4414 - $_.addcode = $k[--$j]; //#4415 - $k[$j++] = Infinity; //#4416 - $aload($_.sbs); //#4416 - $k[$j++] = $_.addongap; //#4416 - $aload($get($_.addcode, "sbs")); //#4416 - $_.sbs = $a(); //#4416 - $k[$j++] = Infinity; //#4417 - $aload($_.bhs); //#4417 - $forall($get($_.addcode, "bhs"), function() { //#4417 - var _2w = $k[--$j]; //#4417 - $k[$j++] = $f(_2w - 0.075); //#4417 - }); //#4417 - $_.bhs = $a(); //#4417 - $k[$j++] = Infinity; //#4418 - $aload($_.bbs); //#4418 - $forall($get($_.addcode, "bbs"), function() { //#4418 - var _31 = $k[--$j]; //#4418 - $k[$j++] = $f(_31 + 0.075); //#4418 - }); //#4418 - $_.bbs = $a(); //#4418 - $k[$j++] = Infinity; //#4419 - $aload($_.txt); //#4419 - $aload($get($_.addcode, "txt")); //#4419 - $_.txt = $a(); //#4419 - $_.guardrightypos = ($_.height * 72) - 6; //#4420 - } //#4420 - var _3E = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4433 - $k[$j++] = _3E; //#4436 - if (!$_.dontdraw) { //#4436 - bwipp_renlinear(); //#4436 + }); //#4414 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4419 + $k[$j++] = 'bwipp.ean13badAddOnLength#4418'; //#4418 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#4418 + bwipp_raiseerror(); //#4418 + } //#4418 + $_.pad = $s(13); //#4422 + $_.checksum = 0; //#4423 + for (var _E = 0; _E <= 11; _E += 1) { //#4432 + $_.i = _E; //#4425 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4426 + if (($_.i % 2) == 0) { //#4430 + $_.checksum = $f($_.barchar + $_.checksum); //#4428 + } else { //#4430 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4430 + } //#4430 + } //#4430 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4433 + if ($_.barcode.length == 13) { //#4438 + if ($get($_.barcode, 12) != $f($_.checksum + 48)) { //#4437 + $k[$j++] = 'bwipp.ean13badCheckDigit#4436'; //#4436 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#4436 + bwipp_raiseerror(); //#4436 + } //#4436 } //#4436 - $_ = Object.getPrototypeOf($_); //#4438 - $_ = Object.getPrototypeOf($_); //#4440 -} - -function bwipp_ean8() { - $_ = Object.create($_); //#4472 - $_.dontdraw = false; //#4475 - $_.includetext = false; //#4476 - $_.textfont = "OCR-B"; //#4477 - $_.textsize = 12; //#4478 - $_.textxoffset = 4; //#4479 - $_.textyoffset = -4; //#4480 - $_.height = 1; //#4481 - $_.addongap = 12; //#4482 - $_.addontextfont = "unset"; //#4483 - $_.addontextsize = null; //#4484 - $_.addontextxoffset = null; //#4485 - $_.addontextyoffset = null; //#4486 - $k[$j++] = $_; //#4488 - bwipp_processoptions(); //#4488 - $_.options = $k[--$j]; //#4488 - $_.barcode = $k[--$j]; //#4489 - bwipp_loadctx(bwipp_ean8) //#4491 - $search($_.barcode, " "); //#4494 - if ($k[--$j]) { //#4500 - $_.barcode = $k[--$j]; //#4495 - $j--; //#4496 - $_.addon = $k[--$j]; //#4497 - } else { //#4500 - $j--; //#4499 - $_.addon = ""; //#4500 - } //#4500 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4506 - $k[$j++] = 'bwipp.ean8badLength#4505'; //#4505 - $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4505 - bwipp_raiseerror(); //#4505 - } //#4505 - $forall($_.barcode, function() { //#4511 - var _9 = $k[--$j]; //#4508 - if ((_9 < 48) || (_9 > 57)) { //#4510 - $k[$j++] = 'bwipp.ean8badCharacter#4509'; //#4509 - $k[$j++] = "EAN-8 must contain only digits"; //#4509 - bwipp_raiseerror(); //#4509 - } //#4509 - }); //#4509 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4514 - $k[$j++] = 'bwipp.ean8badAddOnLength#4513'; //#4513 - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4513 - bwipp_raiseerror(); //#4513 + $puti($_.pad, 0, $_.barcode); //#4439 + $put($_.pad, 12, $f($_.checksum + 48)); //#4440 + $_.barcode = $_.pad; //#4441 + if (!bwipp_ean13.__4459__) { //#4459 + $_ = Object.create($_); //#4459 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4449 + $_.barchars = "0123456789"; //#4452 + $_.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#4458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean13.$ctx[id] = $_[id]); //#4458 + bwipp_ean13.__4459__ = 1; //#4458 + $_ = Object.getPrototypeOf($_); //#4458 + } //#4458 + $_.sbs = $s(59); //#4461 + $_.txt = $a(13); //#4462 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4465 + $_.mirrormap = $get($_.mirrormaps, $get($_.barcode, 0) - 48); //#4468 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4469 + for (var _r = 1; _r <= 6; _r += 1) { //#4492 + $_.i = _r; //#4474 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4475 + $j--; //#4476 + $_.indx = $k[--$j].length; //#4477 + $j -= 2; //#4478 + $_.enc = $get($_.encs, $_.indx); //#4479 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#4489 + $_.enclen = $_.enc.length; //#4481 + $_.revenc = $s($_.enclen); //#4482 + for (var _18 = 0, _17 = $_.enclen - 1; _18 <= _17; _18 += 1) { //#4487 + $_.j = _18; //#4484 + $_.char = $get($_.enc, $_.j); //#4485 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#4486 + } //#4486 + $_.enc = $_.revenc; //#4488 + } //#4488 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#4490 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 15) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4491 + } //#4491 + $puti($_.sbs, ((7 - 1) * 4) + 3, $get($_.encs, 11)); //#4495 + for (var _1Y = 7; _1Y <= 12; _1Y += 1) { //#4508 + $_.i = _1Y; //#4500 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4501 + $j--; //#4502 + $_.indx = $k[--$j].length; //#4503 + $j -= 2; //#4504 + $_.enc = $get($_.encs, $_.indx); //#4505 + $puti($_.sbs, (($_.i - 1) * 4) + 8, $_.enc); //#4506 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 19) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4507 + } //#4507 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4511 + $k[$j++] = Infinity; //#4513 + var _1y = $_.sbs; //#4513 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#4513 + $k[$j++] = $get(_1y, _1z) - 48; //#4513 } //#4513 - $_.pad = $s(8); //#4517 - $_.checksum = 0; //#4518 - for (var _E = 0; _E <= 6; _E += 1) { //#4527 - $_.i = _E; //#4520 - $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4521 - if (($_.i % 2) != 0) { //#4525 - $_.checksum = $f($_.barchar + $_.checksum); //#4523 - } else { //#4525 - $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4525 - } //#4525 - } //#4525 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4528 - if ($_.barcode.length == 8) { //#4533 - if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4532 - $k[$j++] = 'bwipp.ean8badCheckDigit#4531'; //#4531 - $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4531 - bwipp_raiseerror(); //#4531 + $_.sbs = $a(); //#4513 + if ($_.includetext) { //#4520 + $k[$j++] = Infinity; //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _26 = 0, _27 = 12; _26 < _27; _26++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + for (var _2B = 0, _2C = 12; _2B < _2C; _2B++) { //#4515 + $k[$j++] = $f($_.height - 0.075); //#4515 + } //#4515 + $k[$j++] = $_.height; //#4515 + $k[$j++] = $_.height; //#4515 + $_.bhs = $a(); //#4515 + $k[$j++] = Infinity; //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2H = 0, _2I = 12; _2H < _2I; _2H++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + for (var _2J = 0, _2K = 12; _2J < _2K; _2J++) { //#4516 + $k[$j++] = 0.075; //#4516 + } //#4516 + $k[$j++] = 0; //#4516 + $k[$j++] = 0; //#4516 + $_.bbs = $a(); //#4516 + } else { //#4520 + $k[$j++] = Infinity; //#4518 + for (var _2M = 0, _2N = 30; _2M < _2N; _2M++) { //#4518 + $k[$j++] = $_.height; //#4518 + } //#4518 + $_.bhs = $a(); //#4518 + $k[$j++] = Infinity; //#4519 + for (var _2Q = 0, _2R = 30; _2Q < _2R; _2Q++) { //#4519 + $k[$j++] = 0; //#4519 + } //#4519 + $_.bbs = $a(); //#4519 + $_.txt = $a([]); //#4520 + } //#4520 + $_.guardrightypos = 0; //#4522 + if ($ne($_.addon, "")) { //#4543 + $k[$j++] = Infinity; //#4526 + $k[$j++] = 'dontdraw'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'includetext'; //#4530 + $k[$j++] = true; //#4530 + $k[$j++] = 'height'; //#4530 + $k[$j++] = $f($_.height - 0.15); //#4530 + $k[$j++] = 'textxoffset'; //#4530 + if ($ne($_.addontextxoffset, null)) { //#4530 + $k[$j++] = $_.addontextxoffset; //#4530 + } else { //#4530 + $k[$j++] = 95 + $_.addongap; //#4530 + } //#4530 + if ($ne($_.addontextyoffset, null)) { //#4531 + $k[$j++] = 'textyoffset'; //#4531 + $k[$j++] = $_.addontextyoffset; //#4531 } //#4531 - } //#4531 - $puti($_.pad, 0, $_.barcode); //#4534 - $put($_.pad, 7, $f($_.checksum + 48)); //#4535 - $_.barcode = $_.pad; //#4536 - if (!bwipp_ean8.__4548__) { //#4548 - $_ = Object.create($_); //#4548 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4544 - $_.barchars = "0123456789"; //#4547 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4547 - bwipp_ean8.__4548__ = 1; //#4547 - $_ = Object.getPrototypeOf($_); //#4547 - } //#4547 - $_.sbs = $s(43); //#4550 - $_.txt = $a(8); //#4551 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4554 - for (var _e = 0; _e <= 3; _e += 1) { //#4567 - $_.i = _e; //#4559 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4560 - $j--; //#4561 - $_.indx = $k[--$j].length; //#4562 - $j -= 2; //#4563 - $_.enc = $get($_.encs, $_.indx); //#4564 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4565 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4566 - } //#4566 - $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4570 - for (var _14 = 4; _14 <= 7; _14 += 1) { //#4583 - $_.i = _14; //#4575 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4576 - $j--; //#4577 - $_.indx = $k[--$j].length; //#4578 - $j -= 2; //#4579 - $_.enc = $get($_.encs, $_.indx); //#4580 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4581 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4582 - } //#4582 - $puti($_.sbs, 40, $get($_.encs, 12)); //#4586 - $k[$j++] = Infinity; //#4588 - var _1U = $_.sbs; //#4588 - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4588 - $k[$j++] = $get(_1U, _1V) - 48; //#4588 - } //#4588 - $_.sbs = $a(); //#4588 - if ($_.includetext) { //#4595 - $k[$j++] = Infinity; //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4590 - $k[$j++] = $f($_.height - 0.075); //#4590 - } //#4590 - $k[$j++] = $_.height; //#4590 - $k[$j++] = $_.height; //#4590 - $_.bhs = $a(); //#4590 - $k[$j++] = Infinity; //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4591 - $k[$j++] = 0.075; //#4591 - } //#4591 - $k[$j++] = 0; //#4591 - $k[$j++] = 0; //#4591 - $_.bbs = $a(); //#4591 - } else { //#4595 - $k[$j++] = Infinity; //#4593 - for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4593 - $k[$j++] = $_.height; //#4593 - } //#4593 - $_.bhs = $a(); //#4593 - $k[$j++] = Infinity; //#4594 - for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4594 - $k[$j++] = 0; //#4594 - } //#4594 - $_.bbs = $a(); //#4594 - $_.txt = $a([]); //#4595 - } //#4595 - $_.guardrightypos = 0; //#4597 - if ($ne($_.addon, "")) { //#4618 - $k[$j++] = Infinity; //#4608 - $k[$j++] = 'dontdraw'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'includetext'; //#4605 - $k[$j++] = true; //#4605 - $k[$j++] = 'height'; //#4605 - $k[$j++] = $f($_.height - 0.15); //#4605 - $k[$j++] = 'textxoffset'; //#4605 - if ($ne($_.addontextxoffset, null)) { //#4605 - $k[$j++] = $_.addontextxoffset; //#4605 - } else { //#4605 - $k[$j++] = 67 + $_.addongap; //#4605 - } //#4605 - if ($ne($_.addontextyoffset, null)) { //#4606 - $k[$j++] = 'textyoffset'; //#4606 - $k[$j++] = $_.addontextyoffset; //#4606 - } //#4606 - $k[$j++] = 'textsize'; //#4607 - if ($ne($_.addontextsize, null)) { //#4607 - $k[$j++] = $_.addontextsize; //#4607 - } else { //#4607 - $k[$j++] = $_.textsize; //#4607 - } //#4607 - var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4608 - $k[$j++] = 'textfont'; //#4608 - $k[$j++] = _2B; //#4608 - $_.addopts = $d(); //#4609 - if ($_.addon.length == 2) { //#4610 - $k[$j++] = $_.addon; //#4610 - $k[$j++] = $_.addopts; //#4610 - bwipp_ean2(); //#4610 - } //#4610 - if ($_.addon.length == 5) { //#4611 - $k[$j++] = $_.addon; //#4611 - $k[$j++] = $_.addopts; //#4611 - bwipp_ean5(); //#4611 - } //#4611 - $_.addcode = $k[--$j]; //#4612 - $k[$j++] = Infinity; //#4613 - $aload($_.sbs); //#4613 - $k[$j++] = $_.addongap; //#4613 - $aload($get($_.addcode, "sbs")); //#4613 - $_.sbs = $a(); //#4613 - $k[$j++] = Infinity; //#4614 - $aload($_.bhs); //#4614 - $forall($get($_.addcode, "bhs"), function() { //#4614 - var _2S = $k[--$j]; //#4614 - $k[$j++] = $f(_2S - 0.075); //#4614 - }); //#4614 - $_.bhs = $a(); //#4614 - $k[$j++] = Infinity; //#4615 - $aload($_.bbs); //#4615 - $forall($get($_.addcode, "bbs"), function() { //#4615 - var _2X = $k[--$j]; //#4615 - $k[$j++] = $f(_2X + 0.075); //#4615 - }); //#4615 - $_.bbs = $a(); //#4615 - $k[$j++] = Infinity; //#4616 - $aload($_.txt); //#4616 - $aload($get($_.addcode, "txt")); //#4616 - $_.txt = $a(); //#4616 - $_.guardrightypos = ($_.height * 72) - 6; //#4617 - } //#4617 - var _2k = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardleftpos", 10], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4631 - $k[$j++] = _2k; //#4634 - if (!$_.dontdraw) { //#4634 - bwipp_renlinear(); //#4634 - } //#4634 - $_ = Object.getPrototypeOf($_); //#4636 - $_ = Object.getPrototypeOf($_); //#4638 -} - + $k[$j++] = 'textsize'; //#4532 + if ($ne($_.addontextsize, null)) { //#4532 + $k[$j++] = $_.addontextsize; //#4532 + } else { //#4532 + $k[$j++] = $_.textsize; //#4532 + } //#4532 + var _2f = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4533 + $k[$j++] = 'textfont'; //#4533 + $k[$j++] = _2f; //#4533 + $_.addopts = $d(); //#4534 + if ($_.addon.length == 2) { //#4535 + $k[$j++] = $_.addon; //#4535 + $k[$j++] = $_.addopts; //#4535 + bwipp_ean2(); //#4535 + } //#4535 + if ($_.addon.length == 5) { //#4536 + $k[$j++] = $_.addon; //#4536 + $k[$j++] = $_.addopts; //#4536 + bwipp_ean5(); //#4536 + } //#4536 + $_.addcode = $k[--$j]; //#4537 + $k[$j++] = Infinity; //#4538 + $aload($_.sbs); //#4538 + $k[$j++] = $_.addongap; //#4538 + $aload($get($_.addcode, "sbs")); //#4538 + $_.sbs = $a(); //#4538 + $k[$j++] = Infinity; //#4539 + $aload($_.bhs); //#4539 + $forall($get($_.addcode, "bhs"), function() { //#4539 + var _2w = $k[--$j]; //#4539 + $k[$j++] = $f(_2w - 0.075); //#4539 + }); //#4539 + $_.bhs = $a(); //#4539 + $k[$j++] = Infinity; //#4540 + $aload($_.bbs); //#4540 + $forall($get($_.addcode, "bbs"), function() { //#4540 + var _31 = $k[--$j]; //#4540 + $k[$j++] = $f(_31 + 0.075); //#4540 + }); //#4540 + $_.bbs = $a(); //#4540 + $k[$j++] = Infinity; //#4541 + $aload($_.txt); //#4541 + $aload($get($_.addcode, "txt")); //#4541 + $_.txt = $a(); //#4541 + $_.guardrightypos = ($_.height * 72) - 6; //#4542 + } //#4542 + $k[$j++] = Infinity; //#4546 + $k[$j++] = 'ren'; //#4553 + $k[$j++] = bwipp_renlinear; //#4553 + $k[$j++] = 'sbs'; //#4553 + $k[$j++] = $_.sbs; //#4553 + $k[$j++] = 'bhs'; //#4553 + $k[$j++] = $_.bhs; //#4553 + $k[$j++] = 'bbs'; //#4553 + $k[$j++] = $_.bbs; //#4553 + $k[$j++] = 'txt'; //#4553 + $k[$j++] = $_.txt; //#4553 + $k[$j++] = 'opt'; //#4553 + $k[$j++] = $_.options; //#4553 + $k[$j++] = 'guardrightpos'; //#4553 + if ($eq($_.addon, "")) { //#4553 + $k[$j++] = 7; //#4553 + } else { //#4553 + $k[$j++] = 5; //#4553 + } //#4553 + $k[$j++] = 'guardrightypos'; //#4556 + $k[$j++] = $_.guardrightypos; //#4556 + $k[$j++] = 'borderleft'; //#4556 + $k[$j++] = 11; //#4556 + $k[$j++] = 'borderright'; //#4556 + if ($eq($_.addon, "")) { //#4556 + $k[$j++] = 7; //#4556 + } else { //#4556 + $k[$j++] = 5; //#4556 + } //#4556 + $k[$j++] = 'bordertop'; //#4558 + $k[$j++] = 0; //#4558 + $k[$j++] = 'borderbottom'; //#4558 + $k[$j++] = 5; //#4558 + var _3G = $d(); //#4558 + $k[$j++] = _3G; //#4561 + if (!$_.dontdraw) { //#4561 + bwipp_renlinear(); //#4561 + } //#4561 + $_ = Object.getPrototypeOf($_); //#4563 + $_ = Object.getPrototypeOf($_); //#4565 +} //bwipp_ean13 +function bwipp_ean8() { + $_ = Object.create($_); //#4597 + $_.dontdraw = false; //#4600 + $_.includetext = false; //#4601 + $_.textfont = "OCR-B"; //#4602 + $_.textsize = 12; //#4603 + $_.textxoffset = 4; //#4604 + $_.textyoffset = -4; //#4605 + $_.height = 1; //#4606 + $_.addongap = 12; //#4607 + $_.addontextfont = "unset"; //#4608 + $_.addontextsize = null; //#4609 + $_.addontextxoffset = null; //#4610 + $_.addontextyoffset = null; //#4611 + $k[$j++] = $_; //#4613 + bwipp_processoptions(); //#4613 + $_.options = $k[--$j]; //#4613 + $_.barcode = $k[--$j]; //#4614 + bwipp_loadctx(bwipp_ean8) //#4616 + $search($_.barcode, " "); //#4619 + if ($k[--$j]) { //#4625 + $_.barcode = $k[--$j]; //#4620 + $j--; //#4621 + $_.addon = $k[--$j]; //#4622 + } else { //#4625 + $j--; //#4624 + $_.addon = ""; //#4625 + } //#4625 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4631 + $k[$j++] = 'bwipp.ean8badLength#4630'; //#4630 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#4630 + bwipp_raiseerror(); //#4630 + } //#4630 + $forall($_.barcode, function() { //#4636 + var _9 = $k[--$j]; //#4633 + if ((_9 < 48) || (_9 > 57)) { //#4635 + $k[$j++] = 'bwipp.ean8badCharacter#4634'; //#4634 + $k[$j++] = "EAN-8 must contain only digits"; //#4634 + bwipp_raiseerror(); //#4634 + } //#4634 + }); //#4634 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4639 + $k[$j++] = 'bwipp.ean8badAddOnLength#4638'; //#4638 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#4638 + bwipp_raiseerror(); //#4638 + } //#4638 + $_.pad = $s(8); //#4642 + $_.checksum = 0; //#4643 + for (var _E = 0; _E <= 6; _E += 1) { //#4652 + $_.i = _E; //#4645 + $_.barchar = $f($get($_.barcode, $_.i) - 48); //#4646 + if (($_.i % 2) != 0) { //#4650 + $_.checksum = $f($_.barchar + $_.checksum); //#4648 + } else { //#4650 + $_.checksum = $f(($_.barchar * 3) + $_.checksum); //#4650 + } //#4650 + } //#4650 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#4653 + if ($_.barcode.length == 8) { //#4658 + if ($get($_.barcode, 7) != $f($_.checksum + 48)) { //#4657 + $k[$j++] = 'bwipp.ean8badCheckDigit#4656'; //#4656 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#4656 + bwipp_raiseerror(); //#4656 + } //#4656 + } //#4656 + $puti($_.pad, 0, $_.barcode); //#4659 + $put($_.pad, 7, $f($_.checksum + 48)); //#4660 + $_.barcode = $_.pad; //#4661 + if (!bwipp_ean8.__4673__) { //#4673 + $_ = Object.create($_); //#4673 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4669 + $_.barchars = "0123456789"; //#4672 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ean8.$ctx[id] = $_[id]); //#4672 + bwipp_ean8.__4673__ = 1; //#4672 + $_ = Object.getPrototypeOf($_); //#4672 + } //#4672 + $_.sbs = $s(43); //#4675 + $_.txt = $a(8); //#4676 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4679 + for (var _e = 0; _e <= 3; _e += 1) { //#4692 + $_.i = _e; //#4684 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4685 + $j--; //#4686 + $_.indx = $k[--$j].length; //#4687 + $j -= 2; //#4688 + $_.enc = $get($_.encs, $_.indx); //#4689 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4690 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 7) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4691 + } //#4691 + $puti($_.sbs, (4 * 4) + 3, $get($_.encs, 11)); //#4695 + for (var _14 = 4; _14 <= 7; _14 += 1) { //#4708 + $_.i = _14; //#4700 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4701 + $j--; //#4702 + $_.indx = $k[--$j].length; //#4703 + $j -= 2; //#4704 + $_.enc = $get($_.encs, $_.indx); //#4705 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4706 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#4707 + } //#4707 + $puti($_.sbs, 40, $get($_.encs, 12)); //#4711 + $k[$j++] = Infinity; //#4713 + var _1U = $_.sbs; //#4713 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#4713 + $k[$j++] = $get(_1U, _1V) - 48; //#4713 + } //#4713 + $_.sbs = $a(); //#4713 + if ($_.includetext) { //#4720 + $k[$j++] = Infinity; //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1c = 0, _1d = 8; _1c < _1d; _1c++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + for (var _1h = 0, _1i = 8; _1h < _1i; _1h++) { //#4715 + $k[$j++] = $f($_.height - 0.075); //#4715 + } //#4715 + $k[$j++] = $_.height; //#4715 + $k[$j++] = $_.height; //#4715 + $_.bhs = $a(); //#4715 + $k[$j++] = Infinity; //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1n = 0, _1o = 8; _1n < _1o; _1n++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + for (var _1p = 0, _1q = 8; _1p < _1q; _1p++) { //#4716 + $k[$j++] = 0.075; //#4716 + } //#4716 + $k[$j++] = 0; //#4716 + $k[$j++] = 0; //#4716 + $_.bbs = $a(); //#4716 + } else { //#4720 + $k[$j++] = Infinity; //#4718 + for (var _1s = 0, _1t = 22; _1s < _1t; _1s++) { //#4718 + $k[$j++] = $_.height; //#4718 + } //#4718 + $_.bhs = $a(); //#4718 + $k[$j++] = Infinity; //#4719 + for (var _1w = 0, _1x = 22; _1w < _1x; _1w++) { //#4719 + $k[$j++] = 0; //#4719 + } //#4719 + $_.bbs = $a(); //#4719 + $_.txt = $a([]); //#4720 + } //#4720 + $_.guardrightypos = 0; //#4722 + if ($ne($_.addon, "")) { //#4743 + $k[$j++] = Infinity; //#4726 + $k[$j++] = 'dontdraw'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'includetext'; //#4730 + $k[$j++] = true; //#4730 + $k[$j++] = 'height'; //#4730 + $k[$j++] = $f($_.height - 0.15); //#4730 + $k[$j++] = 'textxoffset'; //#4730 + if ($ne($_.addontextxoffset, null)) { //#4730 + $k[$j++] = $_.addontextxoffset; //#4730 + } else { //#4730 + $k[$j++] = 67 + $_.addongap; //#4730 + } //#4730 + if ($ne($_.addontextyoffset, null)) { //#4731 + $k[$j++] = 'textyoffset'; //#4731 + $k[$j++] = $_.addontextyoffset; //#4731 + } //#4731 + $k[$j++] = 'textsize'; //#4732 + if ($ne($_.addontextsize, null)) { //#4732 + $k[$j++] = $_.addontextsize; //#4732 + } else { //#4732 + $k[$j++] = $_.textsize; //#4732 + } //#4732 + var _2B = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4733 + $k[$j++] = 'textfont'; //#4733 + $k[$j++] = _2B; //#4733 + $_.addopts = $d(); //#4734 + if ($_.addon.length == 2) { //#4735 + $k[$j++] = $_.addon; //#4735 + $k[$j++] = $_.addopts; //#4735 + bwipp_ean2(); //#4735 + } //#4735 + if ($_.addon.length == 5) { //#4736 + $k[$j++] = $_.addon; //#4736 + $k[$j++] = $_.addopts; //#4736 + bwipp_ean5(); //#4736 + } //#4736 + $_.addcode = $k[--$j]; //#4737 + $k[$j++] = Infinity; //#4738 + $aload($_.sbs); //#4738 + $k[$j++] = $_.addongap; //#4738 + $aload($get($_.addcode, "sbs")); //#4738 + $_.sbs = $a(); //#4738 + $k[$j++] = Infinity; //#4739 + $aload($_.bhs); //#4739 + $forall($get($_.addcode, "bhs"), function() { //#4739 + var _2S = $k[--$j]; //#4739 + $k[$j++] = $f(_2S - 0.075); //#4739 + }); //#4739 + $_.bhs = $a(); //#4739 + $k[$j++] = Infinity; //#4740 + $aload($_.bbs); //#4740 + $forall($get($_.addcode, "bbs"), function() { //#4740 + var _2X = $k[--$j]; //#4740 + $k[$j++] = $f(_2X + 0.075); //#4740 + }); //#4740 + $_.bbs = $a(); //#4740 + $k[$j++] = Infinity; //#4741 + $aload($_.txt); //#4741 + $aload($get($_.addcode, "txt")); //#4741 + $_.txt = $a(); //#4741 + $_.guardrightypos = ($_.height * 72) - 6; //#4742 + } //#4742 + $k[$j++] = Infinity; //#4746 + $k[$j++] = 'ren'; //#4754 + $k[$j++] = bwipp_renlinear; //#4754 + $k[$j++] = 'sbs'; //#4754 + $k[$j++] = $_.sbs; //#4754 + $k[$j++] = 'bhs'; //#4754 + $k[$j++] = $_.bhs; //#4754 + $k[$j++] = 'bbs'; //#4754 + $k[$j++] = $_.bbs; //#4754 + $k[$j++] = 'txt'; //#4754 + $k[$j++] = $_.txt; //#4754 + $k[$j++] = 'opt'; //#4754 + $k[$j++] = $_.options; //#4754 + $k[$j++] = 'guardleftpos'; //#4754 + $k[$j++] = 7; //#4754 + $k[$j++] = 'guardrightpos'; //#4754 + if ($eq($_.addon, "")) { //#4754 + $k[$j++] = 7; //#4754 + } else { //#4754 + $k[$j++] = 5; //#4754 + } //#4754 + $k[$j++] = 'guardrightypos'; //#4757 + $k[$j++] = $_.guardrightypos; //#4757 + $k[$j++] = 'borderleft'; //#4757 + $k[$j++] = 7; //#4757 + $k[$j++] = 'borderright'; //#4757 + if ($eq($_.addon, "")) { //#4757 + $k[$j++] = 7; //#4757 + } else { //#4757 + $k[$j++] = 5; //#4757 + } //#4757 + $k[$j++] = 'bordertop'; //#4759 + $k[$j++] = 0; //#4759 + $k[$j++] = 'borderbottom'; //#4759 + $k[$j++] = 5; //#4759 + var _2m = $d(); //#4759 + $k[$j++] = _2m; //#4762 + if (!$_.dontdraw) { //#4762 + bwipp_renlinear(); //#4762 + } //#4762 + $_ = Object.getPrototypeOf($_); //#4764 + $_ = Object.getPrototypeOf($_); //#4766 +} //bwipp_ean8 function bwipp_upca() { - $_ = Object.create($_); //#4670 - $_.dontdraw = false; //#4673 - $_.includetext = false; //#4674 - $_.textfont = "OCR-B"; //#4675 - $_.textsize = 12; //#4676 - $_.textxoffset = -7; //#4677 - $_.textyoffset = -4; //#4678 - $_.height = 1; //#4679 - $_.addongap = 12; //#4680 - $_.addontextfont = "unset"; //#4681 - $_.addontextsize = null; //#4682 - $_.addontextxoffset = null; //#4683 - $_.addontextyoffset = null; //#4684 - $k[$j++] = $_; //#4686 - bwipp_processoptions(); //#4686 - $_.options = $k[--$j]; //#4686 - $_.barcode = $k[--$j]; //#4687 - bwipp_loadctx(bwipp_upca) //#4689 - $search($_.barcode, " "); //#4692 - if ($k[--$j]) { //#4698 - $_.barcode = $k[--$j]; //#4693 - $j--; //#4694 - $_.addon = $k[--$j]; //#4695 - } else { //#4698 - $j--; //#4697 - $_.addon = ""; //#4698 - } //#4698 - if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4744 - $forall($_.barcode, function() { //#4708 - var _9 = $k[--$j]; //#4705 - if ((_9 < 48) || (_9 > 57)) { //#4707 - $k[$j++] = 'bwipp.upcAupcEbadCharacter#4706'; //#4706 - $k[$j++] = "UPC-E must contain only digits"; //#4706 - bwipp_raiseerror(); //#4706 - } //#4706 - }); //#4706 - var _B = $get($_.barcode, 0); //#4709 - if ((_B != 48) && (_B != 49)) { //#4711 - $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4710'; //#4710 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#4710 - bwipp_raiseerror(); //#4710 - } //#4710 - for (var _C = 0, _D = 1; _C < _D; _C++) { //#4739 - var _F = ($_.barcode.length == 8) ? 12 : 11; //#4713 - $_.upcacode = $s(_F); //#4713 - if ($f($get($_.barcode, 6) - 48) <= 2) { //#4720 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4715 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4716 - $puti($_.upcacode, 4, "0000"); //#4717 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4718 - break; //#4719 - } //#4719 - if ($f($get($_.barcode, 6) - 48) == 3) { //#4726 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4722 - $puti($_.upcacode, 4, "00000"); //#4723 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4724 - break; //#4725 - } //#4725 - if ($f($get($_.barcode, 6) - 48) == 4) { //#4732 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4728 - $puti($_.upcacode, 5, "00000"); //#4729 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4730 - break; //#4731 - } //#4731 - if ($f($get($_.barcode, 6) - 48) >= 5) { //#4738 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4734 - $puti($_.upcacode, 6, "0000"); //#4735 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4736 - break; //#4737 - } //#4737 - } //#4737 - if ($_.barcode.length == 8) { //#4742 - $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4741 - } //#4741 - $_.barcode = $_.upcacode; //#4743 - } //#4743 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4749 - $k[$j++] = 'bwipp.upcAbadLength#4748'; //#4748 - $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4748 - bwipp_raiseerror(); //#4748 - } //#4748 - var _11 = $_.barcode; //#4750 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4754 - var _14 = $get(_11, _12); //#4754 - if ((_14 < 48) || (_14 > 57)) { //#4753 - $k[$j++] = 'bwipp.upcAbadCharacter#4752'; //#4752 - $k[$j++] = "UPC-A must contain only digits"; //#4752 - bwipp_raiseerror(); //#4752 - } //#4752 - } //#4752 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4757 - $k[$j++] = 'bwipp.upcAbadAddOnLength#4756'; //#4756 - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4756 - bwipp_raiseerror(); //#4756 - } //#4756 - $_.pad = $s(12); //#4760 - $_.checksum = 0; //#4761 - for (var _19 = 0; _19 <= 10; _19 += 1) { //#4770 - $_.i = _19; //#4763 - $_.barchar = $get($_.barcode, $_.i) - 48; //#4764 - if (($_.i % 2) != 0) { //#4768 - $_.checksum = $_.checksum + $_.barchar; //#4766 - } else { //#4768 - $_.checksum = $_.checksum + ($_.barchar * 3); //#4768 - } //#4768 - } //#4768 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4771 - if ($_.barcode.length == 12) { //#4776 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4775 - $k[$j++] = 'bwipp.upcAbadCheckDigit#4774'; //#4774 - $k[$j++] = "Incorrect UPC check digit provided"; //#4774 - bwipp_raiseerror(); //#4774 - } //#4774 - } //#4774 - $puti($_.pad, 0, $_.barcode); //#4777 - $put($_.pad, 11, $_.checksum + 48); //#4778 - $_.barcode = $_.pad; //#4779 - if (!bwipp_upca.__4791__) { //#4791 - $_ = Object.create($_); //#4791 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4787 - $_.barchars = "0123456789"; //#4790 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4790 - bwipp_upca.__4791__ = 1; //#4790 - $_ = Object.getPrototypeOf($_); //#4790 - } //#4790 - $_.sbs = $s(59); //#4793 - $_.txt = $a(12); //#4794 - $puti($_.sbs, 0, $get($_.encs, 10)); //#4797 - for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4814 - $_.i = _1Z; //#4802 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4803 - $j--; //#4804 - $_.indx = $k[--$j].length; //#4805 - $j -= 2; //#4806 - $_.enc = $get($_.encs, $_.indx); //#4807 - $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4808 - if ($_.i == 0) { //#4812 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4810 - } else { //#4812 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4812 - } //#4812 - } //#4812 - $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4817 - for (var _28 = 6; _28 <= 11; _28 += 1) { //#4834 - $_.i = _28; //#4822 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4823 - $j--; //#4824 - $_.indx = $k[--$j].length; //#4825 - $j -= 2; //#4826 - $_.enc = $get($_.encs, $_.indx); //#4827 - $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4828 - if ($_.i == 11) { //#4832 - $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 104, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4830 - } else { //#4832 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 15, $_.textyoffset, $_.textfont, $_.textsize])); //#4832 - } //#4832 - } //#4832 - $puti($_.sbs, 56, $get($_.encs, 12)); //#4837 - $k[$j++] = Infinity; //#4839 - var _2h = $_.sbs; //#4839 - for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4839 - $k[$j++] = $get(_2h, _2i) - 48; //#4839 - } //#4839 - $_.sbs = $a(); //#4839 - if ($_.includetext) { //#4846 - $k[$j++] = Infinity; //#4841 - for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - $k[$j++] = $_.height; //#4841 - $k[$j++] = $_.height; //#4841 - for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4841 - $k[$j++] = $f($_.height - 0.075); //#4841 - } //#4841 - for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4841 - $k[$j++] = $_.height; //#4841 - } //#4841 - $_.bhs = $a(); //#4841 - $k[$j++] = Infinity; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4842 - $k[$j++] = 0.075; //#4842 - } //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $k[$j++] = 0; //#4842 - $_.bbs = $a(); //#4842 - } else { //#4846 - $k[$j++] = Infinity; //#4844 - for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4844 - $k[$j++] = $_.height; //#4844 - } //#4844 - $_.bhs = $a(); //#4844 - $k[$j++] = Infinity; //#4845 - for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4845 - $k[$j++] = 0; //#4845 - } //#4845 - $_.bbs = $a(); //#4845 - $_.txt = $a([]); //#4846 - } //#4846 - $_.guardrightypos = 0; //#4848 - if ($ne($_.addon, "")) { //#4869 - $k[$j++] = Infinity; //#4859 - $k[$j++] = 'dontdraw'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'includetext'; //#4856 - $k[$j++] = true; //#4856 - $k[$j++] = 'height'; //#4856 - $k[$j++] = $f($_.height - 0.15); //#4856 - $k[$j++] = 'textxoffset'; //#4856 - if ($ne($_.addontextxoffset, null)) { //#4856 - $k[$j++] = $_.addontextxoffset; //#4856 - } else { //#4856 - $k[$j++] = 95 + $_.addongap; //#4856 - } //#4856 - if ($ne($_.addontextyoffset, null)) { //#4857 - $k[$j++] = 'textyoffset'; //#4857 - $k[$j++] = $_.addontextyoffset; //#4857 - } //#4857 - $k[$j++] = 'textsize'; //#4858 - if ($ne($_.addontextsize, null)) { //#4858 - $k[$j++] = $_.addontextsize; //#4858 - } else { //#4858 - $k[$j++] = $_.textsize; //#4858 - } //#4858 - var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4859 - $k[$j++] = 'textfont'; //#4859 - $k[$j++] = _3Q; //#4859 - $_.addopts = $d(); //#4860 - if ($_.addon.length == 2) { //#4861 - $k[$j++] = $_.addon; //#4861 - $k[$j++] = $_.addopts; //#4861 - bwipp_ean2(); //#4861 - } //#4861 - if ($_.addon.length == 5) { //#4862 - $k[$j++] = $_.addon; //#4862 - $k[$j++] = $_.addopts; //#4862 - bwipp_ean5(); //#4862 - } //#4862 - $_.addcode = $k[--$j]; //#4863 - $k[$j++] = Infinity; //#4864 - $aload($_.sbs); //#4864 - $k[$j++] = $_.addongap; //#4864 - $aload($get($_.addcode, "sbs")); //#4864 - $_.sbs = $a(); //#4864 - $k[$j++] = Infinity; //#4865 - $aload($_.bhs); //#4865 - $forall($get($_.addcode, "bhs"), function() { //#4865 - var _3h = $k[--$j]; //#4865 - $k[$j++] = $f(_3h - 0.075); //#4865 - }); //#4865 - $_.bhs = $a(); //#4865 - $k[$j++] = Infinity; //#4866 - $aload($_.bbs); //#4866 - $forall($get($_.addcode, "bbs"), function() { //#4866 - var _3m = $k[--$j]; //#4866 - $k[$j++] = $f(_3m + 0.075); //#4866 - }); //#4866 - $_.bbs = $a(); //#4866 - $k[$j++] = Infinity; //#4867 - $aload($_.txt); //#4867 - $aload($get($_.addcode, "txt")); //#4867 - $_.txt = $a(); //#4867 - $_.guardrightypos = ($_.height * 72) - 6; //#4868 - } //#4868 - var _3z = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#4881 - $k[$j++] = _3z; //#4884 - if (!$_.dontdraw) { //#4884 - bwipp_renlinear(); //#4884 + $_ = Object.create($_); //#4798 + $_.dontdraw = false; //#4801 + $_.includetext = false; //#4802 + $_.textfont = "OCR-B"; //#4803 + $_.textsize = 12; //#4804 + $_.textxoffset = -9; //#4805 + $_.textyoffset = -4; //#4806 + $_.height = 1; //#4807 + $_.addongap = 12; //#4808 + $_.addontextfont = "unset"; //#4809 + $_.addontextsize = null; //#4810 + $_.addontextxoffset = null; //#4811 + $_.addontextyoffset = null; //#4812 + $k[$j++] = $_; //#4814 + bwipp_processoptions(); //#4814 + $_.options = $k[--$j]; //#4814 + $_.barcode = $k[--$j]; //#4815 + bwipp_loadctx(bwipp_upca) //#4817 + $search($_.barcode, " "); //#4820 + if ($k[--$j]) { //#4826 + $_.barcode = $k[--$j]; //#4821 + $j--; //#4822 + $_.addon = $k[--$j]; //#4823 + } else { //#4826 + $j--; //#4825 + $_.addon = ""; //#4826 + } //#4826 + if (($_.barcode.length == 7) || ($_.barcode.length == 8)) { //#4872 + $forall($_.barcode, function() { //#4836 + var _9 = $k[--$j]; //#4833 + if ((_9 < 48) || (_9 > 57)) { //#4835 + $k[$j++] = 'bwipp.upcAupcEbadCharacter#4834'; //#4834 + $k[$j++] = "UPC-E must contain only digits"; //#4834 + bwipp_raiseerror(); //#4834 + } //#4834 + }); //#4834 + var _B = $get($_.barcode, 0); //#4837 + if ((_B != 48) && (_B != 49)) { //#4839 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem#4838'; //#4838 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#4838 + bwipp_raiseerror(); //#4838 + } //#4838 + for (var _C = 0, _D = 1; _C < _D; _C++) { //#4867 + var _F = ($_.barcode.length == 8) ? 12 : 11; //#4841 + $_.upcacode = $s(_F); //#4841 + if ($f($get($_.barcode, 6) - 48) <= 2) { //#4848 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#4843 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#4844 + $puti($_.upcacode, 4, "0000"); //#4845 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#4846 + break; //#4847 + } //#4847 + if ($f($get($_.barcode, 6) - 48) == 3) { //#4854 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#4850 + $puti($_.upcacode, 4, "00000"); //#4851 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#4852 + break; //#4853 + } //#4853 + if ($f($get($_.barcode, 6) - 48) == 4) { //#4860 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#4856 + $puti($_.upcacode, 5, "00000"); //#4857 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#4858 + break; //#4859 + } //#4859 + if ($f($get($_.barcode, 6) - 48) >= 5) { //#4866 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#4862 + $puti($_.upcacode, 6, "0000"); //#4863 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#4864 + break; //#4865 + } //#4865 + } //#4865 + if ($_.barcode.length == 8) { //#4870 + $puti($_.upcacode, 11, $geti($_.barcode, 7, 1)); //#4869 + } //#4869 + $_.barcode = $_.upcacode; //#4871 + } //#4871 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#4877 + $k[$j++] = 'bwipp.upcAbadLength#4876'; //#4876 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#4876 + bwipp_raiseerror(); //#4876 + } //#4876 + var _11 = $_.barcode; //#4878 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#4882 + var _14 = $get(_11, _12); //#4882 + if ((_14 < 48) || (_14 > 57)) { //#4881 + $k[$j++] = 'bwipp.upcAbadCharacter#4880'; //#4880 + $k[$j++] = "UPC-A must contain only digits"; //#4880 + bwipp_raiseerror(); //#4880 + } //#4880 + } //#4880 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#4885 + $k[$j++] = 'bwipp.upcAbadAddOnLength#4884'; //#4884 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#4884 + bwipp_raiseerror(); //#4884 } //#4884 - $_ = Object.getPrototypeOf($_); //#4886 - $_ = Object.getPrototypeOf($_); //#4888 -} - -function bwipp_upce() { - $_ = Object.create($_); //#4920 - $_.dontdraw = false; //#4923 - $_.includetext = false; //#4924 - $_.textfont = "OCR-B"; //#4925 - $_.textsize = 12; //#4926 - $_.textxoffset = -7; //#4927 - $_.textyoffset = -4; //#4928 - $_.height = 1; //#4929 - $_.addongap = 12; //#4930 - $_.addontextfont = "unset"; //#4931 - $_.addontextsize = null; //#4932 - $_.addontextxoffset = null; //#4933 - $_.addontextyoffset = null; //#4934 - $k[$j++] = $_; //#4936 - bwipp_processoptions(); //#4936 - $_.options = $k[--$j]; //#4936 - $_.barcode = $k[--$j]; //#4937 - bwipp_loadctx(bwipp_upce) //#4939 - $search($_.barcode, " "); //#4942 - if ($k[--$j]) { //#4948 - $_.barcode = $k[--$j]; //#4943 - $j--; //#4944 - $_.addon = $k[--$j]; //#4945 - } else { //#4948 - $j--; //#4947 - $_.addon = ""; //#4948 - } //#4948 - if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#4990 - $forall($_.barcode, function() { //#4958 - var _9 = $k[--$j]; //#4955 - if ((_9 < 48) || (_9 > 57)) { //#4957 - $k[$j++] = 'bwipp.upcEupcAbadCharacter#4956'; //#4956 - $k[$j++] = "UPC-A must contain only digits"; //#4956 - bwipp_raiseerror(); //#4956 - } //#4956 - }); //#4956 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#4985 - var _D = ($_.barcode.length == 12) ? 8 : 7; //#4960 - $_.upcecode = $s(_D); //#4960 - if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#4966 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#4962 - $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#4963 - $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#4964 - break; //#4965 - } //#4965 - if ($eq($geti($_.barcode, 4, 5), "00000")) { //#4972 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#4968 - $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#4969 - $puti($_.upcecode, 6, "3"); //#4970 - break; //#4971 - } //#4971 - if ($eq($geti($_.barcode, 5, 5), "00000")) { //#4978 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#4974 - $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#4975 - $puti($_.upcecode, 6, "4"); //#4976 - break; //#4977 - } //#4977 - if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#4983 - $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#4980 - $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#4981 - break; //#4982 - } //#4982 - $k[$j++] = 'bwipp.upcEupcAnotCompressible#4984'; //#4984 - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#4984 - bwipp_raiseerror(); //#4984 + $_.pad = $s(12); //#4888 + $_.checksum = 0; //#4889 + for (var _19 = 0; _19 <= 10; _19 += 1) { //#4898 + $_.i = _19; //#4891 + $_.barchar = $get($_.barcode, $_.i) - 48; //#4892 + if (($_.i % 2) != 0) { //#4896 + $_.checksum = $_.checksum + $_.barchar; //#4894 + } else { //#4896 + $_.checksum = $_.checksum + ($_.barchar * 3); //#4896 + } //#4896 + } //#4896 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#4899 + if ($_.barcode.length == 12) { //#4904 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#4903 + $k[$j++] = 'bwipp.upcAbadCheckDigit#4902'; //#4902 + $k[$j++] = "Incorrect UPC check digit provided"; //#4902 + bwipp_raiseerror(); //#4902 + } //#4902 + } //#4902 + $puti($_.pad, 0, $_.barcode); //#4905 + $put($_.pad, 11, $_.checksum + 48); //#4906 + $_.barcode = $_.pad; //#4907 + if (!bwipp_upca.__4919__) { //#4919 + $_ = Object.create($_); //#4919 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#4915 + $_.barchars = "0123456789"; //#4918 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upca.$ctx[id] = $_[id]); //#4918 + bwipp_upca.__4919__ = 1; //#4918 + $_ = Object.getPrototypeOf($_); //#4918 + } //#4918 + $_.sbs = $s(59); //#4921 + $_.txt = $a(12); //#4922 + $puti($_.sbs, 0, $get($_.encs, 10)); //#4925 + for (var _1Z = 0; _1Z <= 5; _1Z += 1) { //#4942 + $_.i = _1Z; //#4930 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4931 + $j--; //#4932 + $_.indx = $k[--$j].length; //#4933 + $j -= 2; //#4934 + $_.enc = $get($_.encs, $_.indx); //#4935 + $puti($_.sbs, ($_.i * 4) + 3, $_.enc); //#4936 + if ($_.i == 0) { //#4940 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4938 + } else { //#4940 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#4940 + } //#4940 + } //#4940 + $puti($_.sbs, (6 * 4) + 3, $get($_.encs, 11)); //#4945 + for (var _28 = 6; _28 <= 11; _28 += 1) { //#4962 + $_.i = _28; //#4950 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#4951 + $j--; //#4952 + $_.indx = $k[--$j].length; //#4953 + $j -= 2; //#4954 + $_.enc = $get($_.encs, $_.indx); //#4955 + $puti($_.sbs, ($_.i * 4) + 8, $_.enc); //#4956 + if ($_.i == 11) { //#4960 + $put($_.txt, 11, $a([$geti($_.barcode, 11, 1), $_.textxoffset + 107, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#4958 + } else { //#4960 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 7) + $_.textxoffset) + 17, $_.textyoffset, $_.textfont, $_.textsize])); //#4960 + } //#4960 + } //#4960 + $puti($_.sbs, 56, $get($_.encs, 12)); //#4965 + $k[$j++] = Infinity; //#4967 + var _2h = $_.sbs; //#4967 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#4967 + $k[$j++] = $get(_2h, _2i) - 48; //#4967 + } //#4967 + $_.sbs = $a(); //#4967 + if ($_.includetext) { //#4974 + $k[$j++] = Infinity; //#4969 + for (var _2n = 0, _2o = 4; _2n < _2o; _2n++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + for (var _2q = 0, _2r = 10; _2q < _2r; _2q++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + $k[$j++] = $_.height; //#4969 + $k[$j++] = $_.height; //#4969 + for (var _2v = 0, _2w = 10; _2v < _2w; _2v++) { //#4969 + $k[$j++] = $f($_.height - 0.075); //#4969 + } //#4969 + for (var _2y = 0, _2z = 4; _2y < _2z; _2y++) { //#4969 + $k[$j++] = $_.height; //#4969 + } //#4969 + $_.bhs = $a(); //#4969 + $k[$j++] = Infinity; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _32 = 0, _33 = 10; _32 < _33; _32++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + for (var _34 = 0, _35 = 10; _34 < _35; _34++) { //#4970 + $k[$j++] = 0.075; //#4970 + } //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $k[$j++] = 0; //#4970 + $_.bbs = $a(); //#4970 + } else { //#4974 + $k[$j++] = Infinity; //#4972 + for (var _37 = 0, _38 = 30; _37 < _38; _37++) { //#4972 + $k[$j++] = $_.height; //#4972 + } //#4972 + $_.bhs = $a(); //#4972 + $k[$j++] = Infinity; //#4973 + for (var _3B = 0, _3C = 30; _3B < _3C; _3B++) { //#4973 + $k[$j++] = 0; //#4973 + } //#4973 + $_.bbs = $a(); //#4973 + $_.txt = $a([]); //#4974 + } //#4974 + $_.guardrightypos = 0; //#4976 + if ($ne($_.addon, "")) { //#4997 + $k[$j++] = Infinity; //#4980 + $k[$j++] = 'dontdraw'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'includetext'; //#4984 + $k[$j++] = true; //#4984 + $k[$j++] = 'height'; //#4984 + $k[$j++] = $f($_.height - 0.15); //#4984 + $k[$j++] = 'textxoffset'; //#4984 + if ($ne($_.addontextxoffset, null)) { //#4984 + $k[$j++] = $_.addontextxoffset; //#4984 + } else { //#4984 + $k[$j++] = 95 + $_.addongap; //#4984 } //#4984 - if ($_.barcode.length == 12) { //#4988 - $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#4987 - } //#4987 - $_.barcode = $_.upcecode; //#4989 - } //#4989 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#4995 - $k[$j++] = 'bwipp.upcEbadLength#4994'; //#4994 - $k[$j++] = "UPC-E must be 7 or 8 digits"; //#4994 - bwipp_raiseerror(); //#4994 - } //#4994 - var _11 = $_.barcode; //#4996 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5000 - var _14 = $get(_11, _12); //#5000 - if ((_14 < 48) || (_14 > 57)) { //#4999 - $k[$j++] = 'bwipp.upcEbadCharacter#4998'; //#4998 - $k[$j++] = "UPC-E must contain only digits"; //#4998 - bwipp_raiseerror(); //#4998 - } //#4998 - } //#4998 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5003 - $k[$j++] = 'bwipp.upcEbadAddOnLength#5002'; //#5002 - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5002 - bwipp_raiseerror(); //#5002 - } //#5002 - var _19 = $get($_.barcode, 0); //#5006 - if ((_19 != 48) && (_19 != 49)) { //#5008 - $k[$j++] = 'bwipp.upcEbadNumberSystem#5007'; //#5007 - $k[$j++] = "UPC-E must have number system 0 or 1"; //#5007 - bwipp_raiseerror(); //#5007 + if ($ne($_.addontextyoffset, null)) { //#4985 + $k[$j++] = 'textyoffset'; //#4985 + $k[$j++] = $_.addontextyoffset; //#4985 + } //#4985 + $k[$j++] = 'textsize'; //#4986 + if ($ne($_.addontextsize, null)) { //#4986 + $k[$j++] = $_.addontextsize; //#4986 + } else { //#4986 + $k[$j++] = $_.textsize; //#4986 + } //#4986 + var _3Q = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#4987 + $k[$j++] = 'textfont'; //#4987 + $k[$j++] = _3Q; //#4987 + $_.addopts = $d(); //#4988 + if ($_.addon.length == 2) { //#4989 + $k[$j++] = $_.addon; //#4989 + $k[$j++] = $_.addopts; //#4989 + bwipp_ean2(); //#4989 + } //#4989 + if ($_.addon.length == 5) { //#4990 + $k[$j++] = $_.addon; //#4990 + $k[$j++] = $_.addopts; //#4990 + bwipp_ean5(); //#4990 + } //#4990 + $_.addcode = $k[--$j]; //#4991 + $k[$j++] = Infinity; //#4992 + $aload($_.sbs); //#4992 + $k[$j++] = $_.addongap; //#4992 + $aload($get($_.addcode, "sbs")); //#4992 + $_.sbs = $a(); //#4992 + $k[$j++] = Infinity; //#4993 + $aload($_.bhs); //#4993 + $forall($get($_.addcode, "bhs"), function() { //#4993 + var _3h = $k[--$j]; //#4993 + $k[$j++] = $f(_3h - 0.075); //#4993 + }); //#4993 + $_.bhs = $a(); //#4993 + $k[$j++] = Infinity; //#4994 + $aload($_.bbs); //#4994 + $forall($get($_.addcode, "bbs"), function() { //#4994 + var _3m = $k[--$j]; //#4994 + $k[$j++] = $f(_3m + 0.075); //#4994 + }); //#4994 + $_.bbs = $a(); //#4994 + $k[$j++] = Infinity; //#4995 + $aload($_.txt); //#4995 + $aload($get($_.addcode, "txt")); //#4995 + $_.txt = $a(); //#4995 + $_.guardrightypos = ($_.height * 72) - 6; //#4996 + } //#4996 + $k[$j++] = Infinity; //#5000 + $k[$j++] = 'ren'; //#5007 + $k[$j++] = bwipp_renlinear; //#5007 + $k[$j++] = 'sbs'; //#5007 + $k[$j++] = $_.sbs; //#5007 + $k[$j++] = 'bhs'; //#5007 + $k[$j++] = $_.bhs; //#5007 + $k[$j++] = 'bbs'; //#5007 + $k[$j++] = $_.bbs; //#5007 + $k[$j++] = 'txt'; //#5007 + $k[$j++] = $_.txt; //#5007 + $k[$j++] = 'opt'; //#5007 + $k[$j++] = $_.options; //#5007 + $k[$j++] = 'guardrightpos'; //#5007 + if ($eq($_.addon, "")) { //#5007 + $k[$j++] = 9; //#5007 + } else { //#5007 + $k[$j++] = 5; //#5007 } //#5007 - if (!bwipp_upce.__5025__) { //#5025 - $_ = Object.create($_); //#5025 - $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5016 - $_.barchars = "0123456789"; //#5019 - $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5024 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5024 - bwipp_upce.__5025__ = 1; //#5024 - $_ = Object.getPrototypeOf($_); //#5024 - } //#5024 - for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5055 - $_.upcacode = $s(11); //#5029 - if (($get($_.barcode, 6) - 48) <= 2) { //#5036 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5031 - $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5032 - $puti($_.upcacode, 4, "0000"); //#5033 - $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5034 - break; //#5035 - } //#5035 - if (($get($_.barcode, 6) - 48) == 3) { //#5042 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5038 - $puti($_.upcacode, 4, "00000"); //#5039 - $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5040 - break; //#5041 - } //#5041 - if (($get($_.barcode, 6) - 48) == 4) { //#5048 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5044 - $puti($_.upcacode, 5, "00000"); //#5045 - $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5046 - break; //#5047 - } //#5047 - if (($get($_.barcode, 6) - 48) >= 5) { //#5054 - $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5050 - $puti($_.upcacode, 6, "0000"); //#5051 - $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5052 - break; //#5053 - } //#5053 - } //#5053 - $_.checksum = 0; //#5056 - for (var _1t = 0; _1t <= 10; _1t += 1) { //#5065 - $_.i = _1t; //#5058 - $_.barchar = $get($_.upcacode, $_.i) - 48; //#5059 - if (($_.i % 2) != 0) { //#5063 - $_.checksum = $_.checksum + $_.barchar; //#5061 - } else { //#5063 - $_.checksum = $_.checksum + ($_.barchar * 3); //#5063 - } //#5063 - } //#5063 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5066 - if ($_.barcode.length == 8) { //#5071 - if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5070 - $k[$j++] = 'bwipp.upcEbadCheckDigit#5069'; //#5069 - $k[$j++] = "Incorrect UPC check digit provided"; //#5069 - bwipp_raiseerror(); //#5069 - } //#5069 - } //#5069 - $_.pad = $s(8); //#5072 - $puti($_.pad, 0, $_.barcode); //#5073 - $put($_.pad, 7, $_.checksum + 48); //#5074 - $_.barcode = $_.pad; //#5075 - $_.txt = $a(8); //#5076 - $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5077 - $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5080 - if ($get($_.barcode, 0) == 48) { //#5094 - $_.invt = $s($_.mirrormap.length); //#5084 - for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5092 - $_.i = _2V; //#5086 - if ($get($_.mirrormap, $_.i) == 48) { //#5090 - $put($_.invt, $_.i, 49); //#5088 - } else { //#5090 - $put($_.invt, $_.i, 48); //#5090 - } //#5090 - } //#5090 - $_.mirrormap = $_.invt; //#5093 - } //#5093 - $_.sbs = $s(33); //#5096 - $puti($_.sbs, 0, $get($_.encs, 10)); //#5099 - for (var _2i = 1; _2i <= 6; _2i += 1) { //#5121 - $_.i = _2i; //#5102 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5104 - $j--; //#5105 - $_.indx = $k[--$j].length; //#5106 - $j -= 2; //#5107 - $_.enc = $get($_.encs, $_.indx); //#5108 - if ($get($_.mirrormap, $_.i - 1) == 49) { //#5118 - $_.enclen = $_.enc.length; //#5110 - $_.revenc = $s($_.enclen); //#5111 - for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5116 - $_.j = _2z; //#5113 - $_.char = $get($_.enc, $_.j); //#5114 - $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5115 - } //#5115 - $_.enc = $_.revenc; //#5117 - } //#5117 - $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5119 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 11) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5120 + $k[$j++] = 'guardrightypos'; //#5010 + $k[$j++] = $_.guardrightypos; //#5010 + $k[$j++] = 'borderleft'; //#5010 + $k[$j++] = 9; //#5010 + $k[$j++] = 'borderright'; //#5010 + if ($eq($_.addon, "")) { //#5010 + $k[$j++] = 9; //#5010 + } else { //#5010 + $k[$j++] = 5; //#5010 + } //#5010 + $k[$j++] = 'bordertop'; //#5012 + $k[$j++] = 0; //#5012 + $k[$j++] = 'borderbottom'; //#5012 + $k[$j++] = 5; //#5012 + var _41 = $d(); //#5012 + $k[$j++] = _41; //#5015 + if (!$_.dontdraw) { //#5015 + bwipp_renlinear(); //#5015 + } //#5015 + $_ = Object.getPrototypeOf($_); //#5017 + $_ = Object.getPrototypeOf($_); //#5019 +} //bwipp_upca +function bwipp_upce() { + $_ = Object.create($_); //#5051 + $_.dontdraw = false; //#5054 + $_.includetext = false; //#5055 + $_.textfont = "OCR-B"; //#5056 + $_.textsize = 12; //#5057 + $_.textxoffset = -9; //#5058 + $_.textyoffset = -4; //#5059 + $_.height = 1; //#5060 + $_.addongap = 12; //#5061 + $_.addontextfont = "unset"; //#5062 + $_.addontextsize = null; //#5063 + $_.addontextxoffset = null; //#5064 + $_.addontextyoffset = null; //#5065 + $k[$j++] = $_; //#5067 + bwipp_processoptions(); //#5067 + $_.options = $k[--$j]; //#5067 + $_.barcode = $k[--$j]; //#5068 + bwipp_loadctx(bwipp_upce) //#5070 + $search($_.barcode, " "); //#5073 + if ($k[--$j]) { //#5079 + $_.barcode = $k[--$j]; //#5074 + $j--; //#5075 + $_.addon = $k[--$j]; //#5076 + } else { //#5079 + $j--; //#5078 + $_.addon = ""; //#5079 + } //#5079 + if (($_.barcode.length == 11) || ($_.barcode.length == 12)) { //#5121 + $forall($_.barcode, function() { //#5089 + var _9 = $k[--$j]; //#5086 + if ((_9 < 48) || (_9 > 57)) { //#5088 + $k[$j++] = 'bwipp.upcEupcAbadCharacter#5087'; //#5087 + $k[$j++] = "UPC-A must contain only digits"; //#5087 + bwipp_raiseerror(); //#5087 + } //#5087 + }); //#5087 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#5116 + var _D = ($_.barcode.length == 12) ? 8 : 7; //#5091 + $_.upcecode = $s(_D); //#5091 + if (($f($get($_.barcode, 3) - 48) <= 2) && $eq($geti($_.barcode, 4, 4), "0000")) { //#5097 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 3)); //#5093 + $puti($_.upcecode, 3, $geti($_.barcode, 8, 3)); //#5094 + $puti($_.upcecode, 6, $geti($_.barcode, 3, 1)); //#5095 + break; //#5096 + } //#5096 + if ($eq($geti($_.barcode, 4, 5), "00000")) { //#5103 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 4)); //#5099 + $puti($_.upcecode, 4, $geti($_.barcode, 9, 2)); //#5100 + $puti($_.upcecode, 6, "3"); //#5101 + break; //#5102 + } //#5102 + if ($eq($geti($_.barcode, 5, 5), "00000")) { //#5109 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 5)); //#5105 + $puti($_.upcecode, 5, $geti($_.barcode, 10, 1)); //#5106 + $puti($_.upcecode, 6, "4"); //#5107 + break; //#5108 + } //#5108 + if (($f($get($_.barcode, 10) - 48) >= 5) && $eq($geti($_.barcode, 6, 4), "0000")) { //#5114 + $puti($_.upcecode, 0, $geti($_.barcode, 0, 6)); //#5111 + $puti($_.upcecode, 6, $geti($_.barcode, 10, 1)); //#5112 + break; //#5113 + } //#5113 + $k[$j++] = 'bwipp.upcEupcAnotCompressible#5115'; //#5115 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#5115 + bwipp_raiseerror(); //#5115 + } //#5115 + if ($_.barcode.length == 12) { //#5119 + $puti($_.upcecode, 7, $geti($_.barcode, 11, 1)); //#5118 + } //#5118 + $_.barcode = $_.upcecode; //#5120 } //#5120 - $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 18) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5123 - $puti($_.sbs, 27, $get($_.encs, 11)); //#5126 - $k[$j++] = Infinity; //#5128 - var _3X = $_.sbs; //#5128 - for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5128 - $k[$j++] = $get(_3X, _3Y) - 48; //#5128 - } //#5128 - $_.sbs = $a(); //#5128 - if ($_.includetext) { //#5135 - $k[$j++] = Infinity; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5130 - $k[$j++] = $f($_.height - 0.075); //#5130 - } //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $k[$j++] = $_.height; //#5130 - $_.bhs = $a(); //#5130 - $k[$j++] = Infinity; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5131 - $k[$j++] = 0.075; //#5131 - } //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $k[$j++] = 0; //#5131 - $_.bbs = $a(); //#5131 - } else { //#5135 - $k[$j++] = Infinity; //#5133 - for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5133 - $k[$j++] = $_.height; //#5133 - } //#5133 - $_.bhs = $a(); //#5133 - $k[$j++] = Infinity; //#5134 - for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5134 - $k[$j++] = 0; //#5134 - } //#5134 - $_.bbs = $a(); //#5134 - $_.txt = $a([]); //#5135 - } //#5135 - $_.guardrightypos = 0; //#5137 - if ($ne($_.addon, "")) { //#5158 - $k[$j++] = Infinity; //#5148 - $k[$j++] = 'dontdraw'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'includetext'; //#5145 - $k[$j++] = true; //#5145 - $k[$j++] = 'height'; //#5145 - $k[$j++] = $f($_.height - 0.15); //#5145 - $k[$j++] = 'textxoffset'; //#5145 - if ($ne($_.addontextxoffset, null)) { //#5145 - $k[$j++] = $_.addontextxoffset; //#5145 - } else { //#5145 - $k[$j++] = 51 + $_.addongap; //#5145 - } //#5145 - if ($ne($_.addontextyoffset, null)) { //#5146 - $k[$j++] = 'textyoffset'; //#5146 - $k[$j++] = $_.addontextyoffset; //#5146 - } //#5146 - $k[$j++] = 'textsize'; //#5147 - if ($ne($_.addontextsize, null)) { //#5147 - $k[$j++] = $_.addontextsize; //#5147 - } else { //#5147 - $k[$j++] = $_.textsize; //#5147 - } //#5147 - var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5148 - $k[$j++] = 'textfont'; //#5148 - $k[$j++] = _48; //#5148 - $_.addopts = $d(); //#5149 - if ($_.addon.length == 2) { //#5150 - $k[$j++] = $_.addon; //#5150 - $k[$j++] = $_.addopts; //#5150 - bwipp_ean2(); //#5150 - } //#5150 - if ($_.addon.length == 5) { //#5151 - $k[$j++] = $_.addon; //#5151 - $k[$j++] = $_.addopts; //#5151 - bwipp_ean5(); //#5151 - } //#5151 - $_.addcode = $k[--$j]; //#5152 - $k[$j++] = Infinity; //#5153 - $aload($_.sbs); //#5153 - $k[$j++] = $_.addongap; //#5153 - $aload($get($_.addcode, "sbs")); //#5153 - $_.sbs = $a(); //#5153 - $k[$j++] = Infinity; //#5154 - $aload($_.bhs); //#5154 - $forall($get($_.addcode, "bhs"), function() { //#5154 - var _4P = $k[--$j]; //#5154 - $k[$j++] = $f(_4P - 0.075); //#5154 - }); //#5154 - $_.bhs = $a(); //#5154 - $k[$j++] = Infinity; //#5155 - $aload($_.bbs); //#5155 - $forall($get($_.addcode, "bbs"), function() { //#5155 - var _4U = $k[--$j]; //#5155 - $k[$j++] = $f(_4U + 0.075); //#5155 - }); //#5155 - $_.bbs = $a(); //#5155 - $k[$j++] = Infinity; //#5156 - $aload($_.txt); //#5156 - $aload($get($_.addcode, "txt")); //#5156 - $_.txt = $a(); //#5156 - $_.guardrightypos = ($_.height * 72) - 6; //#5157 - } //#5157 - var _4h = new Map([ - ["ren", bwipp_renlinear], - ["sbs", $_.sbs], - ["bhs", $_.bhs], - ["bbs", $_.bbs], - ["txt", $_.txt], - ["opt", $_.options], - ["guardrightpos", 10], - ["guardrightypos", $_.guardrightypos], - ["borderbottom", 5] - ]); //#5170 - $k[$j++] = _4h; //#5173 - if (!$_.dontdraw) { //#5173 - bwipp_renlinear(); //#5173 - } //#5173 - $_ = Object.getPrototypeOf($_); //#5175 - $_ = Object.getPrototypeOf($_); //#5177 -} - + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#5126 + $k[$j++] = 'bwipp.upcEbadLength#5125'; //#5125 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#5125 + bwipp_raiseerror(); //#5125 + } //#5125 + var _11 = $_.barcode; //#5127 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#5131 + var _14 = $get(_11, _12); //#5131 + if ((_14 < 48) || (_14 > 57)) { //#5130 + $k[$j++] = 'bwipp.upcEbadCharacter#5129'; //#5129 + $k[$j++] = "UPC-E must contain only digits"; //#5129 + bwipp_raiseerror(); //#5129 + } //#5129 + } //#5129 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5134 + $k[$j++] = 'bwipp.upcEbadAddOnLength#5133'; //#5133 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#5133 + bwipp_raiseerror(); //#5133 + } //#5133 + var _19 = $get($_.barcode, 0); //#5137 + if ((_19 != 48) && (_19 != 49)) { //#5139 + $k[$j++] = 'bwipp.upcEbadNumberSystem#5138'; //#5138 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#5138 + bwipp_raiseerror(); //#5138 + } //#5138 + if (!bwipp_upce.__5156__) { //#5156 + $_ = Object.create($_); //#5156 + $_.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#5147 + $_.barchars = "0123456789"; //#5150 + $_.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#5155 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_upce.$ctx[id] = $_[id]); //#5155 + bwipp_upce.__5156__ = 1; //#5155 + $_ = Object.getPrototypeOf($_); //#5155 + } //#5155 + for (var _1D = 0, _1E = 1; _1D < _1E; _1D++) { //#5186 + $_.upcacode = $s(11); //#5160 + if (($get($_.barcode, 6) - 48) <= 2) { //#5167 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 3)); //#5162 + $puti($_.upcacode, 3, $geti($_.barcode, 6, 1)); //#5163 + $puti($_.upcacode, 4, "0000"); //#5164 + $puti($_.upcacode, 8, $geti($_.barcode, 3, 3)); //#5165 + break; //#5166 + } //#5166 + if (($get($_.barcode, 6) - 48) == 3) { //#5173 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 4)); //#5169 + $puti($_.upcacode, 4, "00000"); //#5170 + $puti($_.upcacode, 9, $geti($_.barcode, 4, 2)); //#5171 + break; //#5172 + } //#5172 + if (($get($_.barcode, 6) - 48) == 4) { //#5179 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 5)); //#5175 + $puti($_.upcacode, 5, "00000"); //#5176 + $puti($_.upcacode, 10, $geti($_.barcode, 5, 1)); //#5177 + break; //#5178 + } //#5178 + if (($get($_.barcode, 6) - 48) >= 5) { //#5185 + $puti($_.upcacode, 0, $geti($_.barcode, 0, 6)); //#5181 + $puti($_.upcacode, 6, "0000"); //#5182 + $puti($_.upcacode, 10, $geti($_.barcode, 6, 1)); //#5183 + break; //#5184 + } //#5184 + } //#5184 + $_.checksum = 0; //#5187 + for (var _1t = 0; _1t <= 10; _1t += 1) { //#5196 + $_.i = _1t; //#5189 + $_.barchar = $get($_.upcacode, $_.i) - 48; //#5190 + if (($_.i % 2) != 0) { //#5194 + $_.checksum = $_.checksum + $_.barchar; //#5192 + } else { //#5194 + $_.checksum = $_.checksum + ($_.barchar * 3); //#5194 + } //#5194 + } //#5194 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#5197 + if ($_.barcode.length == 8) { //#5202 + if ($get($_.barcode, 7) != ($_.checksum + 48)) { //#5201 + $k[$j++] = 'bwipp.upcEbadCheckDigit#5200'; //#5200 + $k[$j++] = "Incorrect UPC check digit provided"; //#5200 + bwipp_raiseerror(); //#5200 + } //#5200 + } //#5200 + $_.pad = $s(8); //#5203 + $puti($_.pad, 0, $_.barcode); //#5204 + $put($_.pad, 7, $_.checksum + 48); //#5205 + $_.barcode = $_.pad; //#5206 + $_.txt = $a(8); //#5207 + $put($_.txt, 0, $a([$geti($_.barcode, 0, 1), $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5208 + $_.mirrormap = $get($_.mirrormaps, $_.checksum); //#5211 + if ($get($_.barcode, 0) == 48) { //#5225 + $_.invt = $s($_.mirrormap.length); //#5215 + for (var _2V = 0, _2U = $_.mirrormap.length - 1; _2V <= _2U; _2V += 1) { //#5223 + $_.i = _2V; //#5217 + if ($get($_.mirrormap, $_.i) == 48) { //#5221 + $put($_.invt, $_.i, 49); //#5219 + } else { //#5221 + $put($_.invt, $_.i, 48); //#5221 + } //#5221 + } //#5221 + $_.mirrormap = $_.invt; //#5224 + } //#5224 + $_.sbs = $s(33); //#5227 + $puti($_.sbs, 0, $get($_.encs, 10)); //#5230 + for (var _2i = 1; _2i <= 6; _2i += 1) { //#5252 + $_.i = _2i; //#5233 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#5235 + $j--; //#5236 + $_.indx = $k[--$j].length; //#5237 + $j -= 2; //#5238 + $_.enc = $get($_.encs, $_.indx); //#5239 + if ($get($_.mirrormap, $_.i - 1) == 49) { //#5249 + $_.enclen = $_.enc.length; //#5241 + $_.revenc = $s($_.enclen); //#5242 + for (var _2z = 0, _2y = $_.enclen - 1; _2z <= _2y; _2z += 1) { //#5247 + $_.j = _2z; //#5244 + $_.char = $get($_.enc, $_.j); //#5245 + $put($_.revenc, ($_.enclen - $_.j) - 1, $_.char); //#5246 + } //#5246 + $_.enc = $_.revenc; //#5248 + } //#5248 + $puti($_.sbs, (($_.i - 1) * 4) + 3, $_.enc); //#5250 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 1) * 7) + 13) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])); //#5251 + } //#5251 + $put($_.txt, 7, $a([$geti($_.barcode, 7, 1), ((6 * 7) + 21) + $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize - 2])); //#5254 + $puti($_.sbs, 27, $get($_.encs, 11)); //#5257 + $k[$j++] = Infinity; //#5259 + var _3X = $_.sbs; //#5259 + for (var _3Y = 0, _3Z = _3X.length; _3Y < _3Z; _3Y++) { //#5259 + $k[$j++] = $get(_3X, _3Y) - 48; //#5259 + } //#5259 + $_.sbs = $a(); //#5259 + if ($_.includetext) { //#5266 + $k[$j++] = Infinity; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + for (var _3f = 0, _3g = 12; _3f < _3g; _3f++) { //#5261 + $k[$j++] = $f($_.height - 0.075); //#5261 + } //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $k[$j++] = $_.height; //#5261 + $_.bhs = $a(); //#5261 + $k[$j++] = Infinity; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + for (var _3m = 0, _3n = 12; _3m < _3n; _3m++) { //#5262 + $k[$j++] = 0.075; //#5262 + } //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $k[$j++] = 0; //#5262 + $_.bbs = $a(); //#5262 + } else { //#5266 + $k[$j++] = Infinity; //#5264 + for (var _3p = 0, _3q = 17; _3p < _3q; _3p++) { //#5264 + $k[$j++] = $_.height; //#5264 + } //#5264 + $_.bhs = $a(); //#5264 + $k[$j++] = Infinity; //#5265 + for (var _3t = 0, _3u = 17; _3t < _3u; _3t++) { //#5265 + $k[$j++] = 0; //#5265 + } //#5265 + $_.bbs = $a(); //#5265 + $_.txt = $a([]); //#5266 + } //#5266 + $_.guardrightypos = 0; //#5268 + if ($ne($_.addon, "")) { //#5289 + $k[$j++] = Infinity; //#5272 + $k[$j++] = 'dontdraw'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'includetext'; //#5276 + $k[$j++] = true; //#5276 + $k[$j++] = 'height'; //#5276 + $k[$j++] = $f($_.height - 0.15); //#5276 + $k[$j++] = 'textxoffset'; //#5276 + if ($ne($_.addontextxoffset, null)) { //#5276 + $k[$j++] = $_.addontextxoffset; //#5276 + } else { //#5276 + $k[$j++] = 51 + $_.addongap; //#5276 + } //#5276 + if ($ne($_.addontextyoffset, null)) { //#5277 + $k[$j++] = 'textyoffset'; //#5277 + $k[$j++] = $_.addontextyoffset; //#5277 + } //#5277 + $k[$j++] = 'textsize'; //#5278 + if ($ne($_.addontextsize, null)) { //#5278 + $k[$j++] = $_.addontextsize; //#5278 + } else { //#5278 + $k[$j++] = $_.textsize; //#5278 + } //#5278 + var _48 = $ne($_.addontextfont, "unset") ? $_.addontextfont : $_.textfont; //#5279 + $k[$j++] = 'textfont'; //#5279 + $k[$j++] = _48; //#5279 + $_.addopts = $d(); //#5280 + if ($_.addon.length == 2) { //#5281 + $k[$j++] = $_.addon; //#5281 + $k[$j++] = $_.addopts; //#5281 + bwipp_ean2(); //#5281 + } //#5281 + if ($_.addon.length == 5) { //#5282 + $k[$j++] = $_.addon; //#5282 + $k[$j++] = $_.addopts; //#5282 + bwipp_ean5(); //#5282 + } //#5282 + $_.addcode = $k[--$j]; //#5283 + $k[$j++] = Infinity; //#5284 + $aload($_.sbs); //#5284 + $k[$j++] = $_.addongap; //#5284 + $aload($get($_.addcode, "sbs")); //#5284 + $_.sbs = $a(); //#5284 + $k[$j++] = Infinity; //#5285 + $aload($_.bhs); //#5285 + $forall($get($_.addcode, "bhs"), function() { //#5285 + var _4P = $k[--$j]; //#5285 + $k[$j++] = $f(_4P - 0.075); //#5285 + }); //#5285 + $_.bhs = $a(); //#5285 + $k[$j++] = Infinity; //#5286 + $aload($_.bbs); //#5286 + $forall($get($_.addcode, "bbs"), function() { //#5286 + var _4U = $k[--$j]; //#5286 + $k[$j++] = $f(_4U + 0.075); //#5286 + }); //#5286 + $_.bbs = $a(); //#5286 + $k[$j++] = Infinity; //#5287 + $aload($_.txt); //#5287 + $aload($get($_.addcode, "txt")); //#5287 + $_.txt = $a(); //#5287 + $_.guardrightypos = ($_.height * 72) - 6; //#5288 + } //#5288 + $k[$j++] = Infinity; //#5292 + $k[$j++] = 'ren'; //#5299 + $k[$j++] = bwipp_renlinear; //#5299 + $k[$j++] = 'sbs'; //#5299 + $k[$j++] = $_.sbs; //#5299 + $k[$j++] = 'bhs'; //#5299 + $k[$j++] = $_.bhs; //#5299 + $k[$j++] = 'bbs'; //#5299 + $k[$j++] = $_.bbs; //#5299 + $k[$j++] = 'txt'; //#5299 + $k[$j++] = $_.txt; //#5299 + $k[$j++] = 'opt'; //#5299 + $k[$j++] = $_.options; //#5299 + $k[$j++] = 'guardrightpos'; //#5299 + if ($eq($_.addon, "")) { //#5299 + $k[$j++] = 9; //#5299 + } else { //#5299 + $k[$j++] = 5; //#5299 + } //#5299 + $k[$j++] = 'guardrightypos'; //#5302 + $k[$j++] = $_.guardrightypos; //#5302 + $k[$j++] = 'borderleft'; //#5302 + $k[$j++] = 9; //#5302 + $k[$j++] = 'borderright'; //#5302 + if ($eq($_.addon, "")) { //#5302 + $k[$j++] = 9; //#5302 + } else { //#5302 + $k[$j++] = 5; //#5302 + } //#5302 + $k[$j++] = 'bordertop'; //#5304 + $k[$j++] = 0; //#5304 + $k[$j++] = 'borderbottom'; //#5304 + $k[$j++] = 5; //#5304 + var _4j = $d(); //#5304 + $k[$j++] = _4j; //#5307 + if (!$_.dontdraw) { //#5307 + bwipp_renlinear(); //#5307 + } //#5307 + $_ = Object.getPrototypeOf($_); //#5309 + $_ = Object.getPrototypeOf($_); //#5311 +} //bwipp_upce function bwipp_isbn() { - $_ = Object.create($_); //#5206 - $_.dontdraw = false; //#5209 - $_.includetext = false; //#5210 - $_.isbntextfont = 'OCR-A'; //#5211 - $_.isbntextsize = 8; //#5212 - $_.isbntextxoffset = null; //#5213 - $_.isbntextyoffset = null; //#5214 - $_.height = 1; //#5215 - $_.addongap = 12; //#5216 - $_.legacy = false; //#5217 - $k[$j++] = $_; //#5219 - bwipp_processoptions(); //#5219 - $_.options = $k[--$j]; //#5219 - $_.barcode = $k[--$j]; //#5220 - $search($_.barcode, " "); //#5223 - if ($k[--$j]) { //#5229 - $_.barcode = $k[--$j]; //#5224 - $j--; //#5225 - $_.addon = $k[--$j]; //#5226 - } else { //#5229 - $j--; //#5228 - $_.addon = ""; //#5229 - } //#5229 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5236 - $k[$j++] = 'bwipp.isbnBadLength#5235'; //#5235 - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5235 - bwipp_raiseerror(); //#5235 - } //#5235 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5239 - $k[$j++] = 'bwipp.isbnBadAddOnLength#5238'; //#5238 - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5238 - bwipp_raiseerror(); //#5238 - } //#5238 - if ($_.barcode.length >= 15) { //#5303 - var _F = $geti($_.barcode, 0, 4); //#5241 - if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5243 - $k[$j++] = 'bwipp.isbn13badPrefix#5242'; //#5242 - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5242 - bwipp_raiseerror(); //#5242 - } //#5242 - $_.wasdash = false; //#5244 - $_.numdash = 0; //#5244 - $_.numdigit = 0; //#5244 - var _H = $geti($_.barcode, 5, 9); //#5245 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5258 - var _K = $get(_H, _I); //#5258 - $k[$j++] = _K; //#5253 - if (_K == 45) { //#5253 - if ($_.wasdash) { //#5250 - $k[$j++] = 'bwipp.isbn13adjacentDashes#5249'; //#5249 - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5249 - bwipp_raiseerror(); //#5249 - } //#5249 - $_.wasdash = true; //#5251 - $_.numdash = $_.numdash + 1; //#5252 - } //#5252 - var _N = $k[--$j]; //#5254 - if ((_N >= 48) && (_N <= 57)) { //#5257 - $_.wasdash = false; //#5255 - $_.numdigit = $_.numdigit + 1; //#5256 - } //#5256 - } //#5256 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5261 - $k[$j++] = 'bwipp.isbn13numDashesDigits#5260'; //#5260 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5260 - bwipp_raiseerror(); //#5260 - } //#5260 - var _S = $get($_.barcode, 14); //#5262 - if ((_S < 48) || (_S > 57)) { //#5264 - $k[$j++] = 'bwipp.isbn13character15#5263'; //#5263 - $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5263 - bwipp_raiseerror(); //#5263 - } //#5263 - if ($_.barcode.length == 17) { //#5272 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5268 - $k[$j++] = 'bwipp.isbn13character16#5267'; //#5267 - $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5267 - bwipp_raiseerror(); //#5267 - } //#5267 - var _X = $get($_.barcode, 16); //#5269 - if ((_X < 48) || (_X > 57)) { //#5271 - $k[$j++] = 'bwipp.isbn13character17#5270'; //#5270 - $k[$j++] = "ISBN-13 final character must be a digit"; //#5270 - bwipp_raiseerror(); //#5270 - } //#5270 - } //#5270 - } else { //#5303 - var _Z = $get($_.barcode, 0); //#5274 - if ((_Z < 48) || (_Z > 57)) { //#5276 - $k[$j++] = 'bwipp.isbn10FirstDigit#5275'; //#5275 - $k[$j++] = "ISBN-10 first character must be a digit"; //#5275 - bwipp_raiseerror(); //#5275 - } //#5275 - $_.wasdash = false; //#5277 - $_.numdash = 0; //#5277 - $_.numdigit = 0; //#5277 - var _b = $geti($_.barcode, 1, 9); //#5278 - for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5291 - var _e = $get(_b, _c); //#5291 - $k[$j++] = _e; //#5286 - if (_e == 45) { //#5286 - if ($_.wasdash) { //#5283 - $k[$j++] = 'bwipp.isbn10adjacentDashes#5282'; //#5282 - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5282 - bwipp_raiseerror(); //#5282 - } //#5282 - $_.wasdash = true; //#5284 - $_.numdash = $_.numdash + 1; //#5285 - } //#5285 - var _h = $k[--$j]; //#5287 - if ((_h >= 48) && (_h <= 57)) { //#5290 - $_.wasdash = false; //#5288 - $_.numdigit = $_.numdigit + 1; //#5289 - } //#5289 - } //#5289 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5294 - $k[$j++] = 'bwipp.isbn10numDashesDigits#5293'; //#5293 - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5293 - bwipp_raiseerror(); //#5293 - } //#5293 - var _m = $get($_.barcode, 10); //#5295 - if ((_m < 48) || (_m > 57)) { //#5297 - $k[$j++] = 'bwipp.isbn10character11#5296'; //#5296 - $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5296 - bwipp_raiseerror(); //#5296 - } //#5296 - if ($_.barcode.length == 13) { //#5305 - if ($ne($geti($_.barcode, 11, 1), "-")) { //#5301 - $k[$j++] = 'bwipp.isbn10character12#5300'; //#5300 - $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5300 - bwipp_raiseerror(); //#5300 - } //#5300 - var _r = $get($_.barcode, 12); //#5302 - if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5304 - $k[$j++] = 'bwipp.isbn10character13#5303'; //#5303 - $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5303 - bwipp_raiseerror(); //#5303 - } //#5303 - } //#5303 - } //#5303 - $_.isbntxt = $_.barcode; //#5308 - if ($_.isbntxt.length <= 13) { //#5334 - $_.isbn = $s(10); //#5312 - $_.checksum = 0; //#5313 - $_.i = 0; //#5314 - $_.n = 0; //#5314 - for (;;) { //#5326 - $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5316 - if ($_.isbnchar != -3) { //#5323 - $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5318 - if ($_.n < 9) { //#5321 - $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5320 - } //#5320 - $_.n = $_.n + 1; //#5322 - } //#5322 - $_.i = $_.i + 1; //#5324 - if ($_.i == $_.isbntxt.length) { //#5325 - break; //#5325 - } //#5325 - } //#5325 - var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5327 - $k[$j++] = 'checksum'; //#5327 - $k[$j++] = _1B; //#5327 - if (_1B == 10) { //#5327 - $j--; //#5327 - $k[$j++] = 40; //#5327 - } //#5327 - var _1C = $k[--$j]; //#5327 - $_[$k[--$j]] = $f(_1C + 48); //#5327 - $_.isbn = $geti($_.isbn, 0, 9); //#5328 - if ($_.isbntxt.length == 13) { //#5333 - if ($get($_.isbntxt, 12) != $_.checksum) { //#5332 - $k[$j++] = 'bwipp.isbn10badCheckDigit#5331'; //#5331 - $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5331 - bwipp_raiseerror(); //#5331 - } //#5331 - } //#5331 - } //#5331 - if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5370 - if ($_.isbntxt.length <= 13) { //#5344 - $_.pad = $s(15); //#5340 - $puti($_.pad, 0, "978-"); //#5341 - $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5342 - $_.isbntxt = $_.pad; //#5343 - } //#5343 - $_.isbn = $s(13); //#5347 - $_.checksum = 0; //#5348 - $_.i = 0; //#5349 - $_.n = 0; //#5349 - for (;;) { //#5361 - $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5351 - if ($_.isbnchar != -3) { //#5358 - $put($_.isbn, $_.n, $_.isbnchar + 48); //#5353 - if ($_.n < 12) { //#5356 - $k[$j++] = 'checksum'; //#5355 - $k[$j++] = $_.isbnchar; //#5355 - if (($_.n % 2) != 0) { //#5355 - var _1e = $k[--$j]; //#5355 - $k[$j++] = _1e * 3; //#5355 - } //#5355 - var _1g = $k[--$j]; //#5355 - $_[$k[--$j]] = $f(_1g + $_.checksum); //#5355 - } //#5355 - $_.n = $_.n + 1; //#5357 - } //#5357 - $_.i = $_.i + 1; //#5359 - if ($_.i == $_.isbntxt.length) { //#5360 - break; //#5360 - } //#5360 - } //#5360 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5362 - $_.isbn = $geti($_.isbn, 0, 12); //#5363 - if ($_.isbntxt.length == 17) { //#5368 - if ($get($_.isbntxt, 16) != $_.checksum) { //#5367 - $k[$j++] = 'bwipp.isbn13badCheckDigit#5366'; //#5366 - $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5366 - bwipp_raiseerror(); //#5366 - } //#5366 - } //#5366 - } //#5366 - var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5373 - $_.pad = $s(_1u); //#5373 - $puti($_.pad, 0, "ISBN "); //#5374 - $puti($_.pad, 5, $_.isbntxt); //#5375 - $put($_.pad, $_.pad.length - 2, 45); //#5376 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5377 - $_.isbntxt = $_.pad; //#5378 - $_.barcode = $s(12); //#5381 - if ($_.isbn.length == 9) { //#5386 - $puti($_.barcode, 0, "978"); //#5383 - $puti($_.barcode, 3, $_.isbn); //#5384 - } else { //#5386 - $puti($_.barcode, 0, $_.isbn); //#5386 - } //#5386 - if ($ne($_.addon, "")) { //#5396 - var _2E = $s((12 + $_.addon.length) + 1); //#5391 - $puti(_2E, 0, $_.barcode); //#5392 - $puti(_2E, 12, " "); //#5393 - $puti(_2E, 13, $_.addon); //#5394 - $_.barcode = _2E; //#5395 - } //#5395 - $put($_.options, "dontdraw", true); //#5399 - $put($_.options, "addongap", $_.addongap); //#5400 - $k[$j++] = 'args'; //#5401 - $k[$j++] = $_.barcode; //#5401 - $k[$j++] = $_.options; //#5401 - bwipp_ean13(); //#5401 - var _2M = $k[--$j]; //#5401 - $_[$k[--$j]] = _2M; //#5401 - if ($_.includetext) { //#5420 - if ($eq($_.isbntextxoffset, null)) { //#5407 - $k[$j++] = 'isbntextxoffset'; //#5406 - if ($_.isbn.length == 9) { //#5406 - $k[$j++] = -1; //#5406 - } else { //#5406 - $k[$j++] = -12; //#5406 - } //#5406 - var _2R = $k[--$j]; //#5406 - $_[$k[--$j]] = _2R; //#5406 - } //#5406 - if ($eq($_.isbntextyoffset, null)) { //#5410 - $_.isbntextyoffset = ($_.height * 72) + 3; //#5409 + $_ = Object.create($_); //#5340 + $_.dontdraw = false; //#5343 + $_.includetext = false; //#5344 + $_.isbntextfont = 'OCR-A'; //#5345 + $_.isbntextsize = 8; //#5346 + $_.isbntextxoffset = null; //#5347 + $_.isbntextyoffset = null; //#5348 + $_.height = 1; //#5349 + $_.addongap = 12; //#5350 + $_.legacy = false; //#5351 + $k[$j++] = $_; //#5353 + bwipp_processoptions(); //#5353 + $_.options = $k[--$j]; //#5353 + $_.barcode = $k[--$j]; //#5354 + $search($_.barcode, " "); //#5357 + if ($k[--$j]) { //#5363 + $_.barcode = $k[--$j]; //#5358 + $j--; //#5359 + $_.addon = $k[--$j]; //#5360 + } else { //#5363 + $j--; //#5362 + $_.addon = ""; //#5363 + } //#5363 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5370 + $k[$j++] = 'bwipp.isbnBadLength#5369'; //#5369 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#5369 + bwipp_raiseerror(); //#5369 + } //#5369 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5373 + $k[$j++] = 'bwipp.isbnBadAddOnLength#5372'; //#5372 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#5372 + bwipp_raiseerror(); //#5372 + } //#5372 + if ($_.barcode.length >= 15) { //#5437 + var _F = $geti($_.barcode, 0, 4); //#5375 + if ($ne(_F, "978-") && $ne(_F, "979-")) { //#5377 + $k[$j++] = 'bwipp.isbn13badPrefix#5376'; //#5376 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#5376 + bwipp_raiseerror(); //#5376 + } //#5376 + $_.wasdash = false; //#5378 + $_.numdash = 0; //#5378 + $_.numdigit = 0; //#5378 + var _H = $geti($_.barcode, 5, 9); //#5379 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5392 + var _K = $get(_H, _I); //#5392 + $k[$j++] = _K; //#5387 + if (_K == 45) { //#5387 + if ($_.wasdash) { //#5384 + $k[$j++] = 'bwipp.isbn13adjacentDashes#5383'; //#5383 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#5383 + bwipp_raiseerror(); //#5383 + } //#5383 + $_.wasdash = true; //#5385 + $_.numdash = $_.numdash + 1; //#5386 + } //#5386 + var _N = $k[--$j]; //#5388 + if ((_N >= 48) && (_N <= 57)) { //#5391 + $_.wasdash = false; //#5389 + $_.numdigit = $_.numdigit + 1; //#5390 + } //#5390 + } //#5390 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5395 + $k[$j++] = 'bwipp.isbn13numDashesDigits#5394'; //#5394 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#5394 + bwipp_raiseerror(); //#5394 + } //#5394 + var _S = $get($_.barcode, 14); //#5396 + if ((_S < 48) || (_S > 57)) { //#5398 + $k[$j++] = 'bwipp.isbn13character15#5397'; //#5397 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#5397 + bwipp_raiseerror(); //#5397 + } //#5397 + if ($_.barcode.length == 17) { //#5406 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5402 + $k[$j++] = 'bwipp.isbn13character16#5401'; //#5401 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#5401 + bwipp_raiseerror(); //#5401 + } //#5401 + var _X = $get($_.barcode, 16); //#5403 + if ((_X < 48) || (_X > 57)) { //#5405 + $k[$j++] = 'bwipp.isbn13character17#5404'; //#5404 + $k[$j++] = "ISBN-13 final character must be a digit"; //#5404 + bwipp_raiseerror(); //#5404 + } //#5404 + } //#5404 + } else { //#5437 + var _Z = $get($_.barcode, 0); //#5408 + if ((_Z < 48) || (_Z > 57)) { //#5410 + $k[$j++] = 'bwipp.isbn10FirstDigit#5409'; //#5409 + $k[$j++] = "ISBN-10 first character must be a digit"; //#5409 + bwipp_raiseerror(); //#5409 } //#5409 - var _2W = $get($_.args, "txt") !== undefined; //#5411 - if (_2W) { //#5418 - $_.txt = $get($_.args, "txt"); //#5412 - $_.newtxt = $a($_.txt.length + 1); //#5413 - $puti($_.newtxt, 0, $_.txt); //#5414 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5415 - $put($_.args, "txt", $_.newtxt); //#5416 - } else { //#5418 - $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5418 - } //#5418 - } //#5418 - $put($_.args, "opt", $_.options); //#5422 - $k[$j++] = $_.args; //#5425 - if (!$_.dontdraw) { //#5425 - bwipp_renlinear(); //#5425 - } //#5425 - $_ = Object.getPrototypeOf($_); //#5427 -} - + $_.wasdash = false; //#5411 + $_.numdash = 0; //#5411 + $_.numdigit = 0; //#5411 + var _b = $geti($_.barcode, 1, 9); //#5412 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#5425 + var _e = $get(_b, _c); //#5425 + $k[$j++] = _e; //#5420 + if (_e == 45) { //#5420 + if ($_.wasdash) { //#5417 + $k[$j++] = 'bwipp.isbn10adjacentDashes#5416'; //#5416 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#5416 + bwipp_raiseerror(); //#5416 + } //#5416 + $_.wasdash = true; //#5418 + $_.numdash = $_.numdash + 1; //#5419 + } //#5419 + var _h = $k[--$j]; //#5421 + if ((_h >= 48) && (_h <= 57)) { //#5424 + $_.wasdash = false; //#5422 + $_.numdigit = $_.numdigit + 1; //#5423 + } //#5423 + } //#5423 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5428 + $k[$j++] = 'bwipp.isbn10numDashesDigits#5427'; //#5427 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#5427 + bwipp_raiseerror(); //#5427 + } //#5427 + var _m = $get($_.barcode, 10); //#5429 + if ((_m < 48) || (_m > 57)) { //#5431 + $k[$j++] = 'bwipp.isbn10character11#5430'; //#5430 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#5430 + bwipp_raiseerror(); //#5430 + } //#5430 + if ($_.barcode.length == 13) { //#5439 + if ($ne($geti($_.barcode, 11, 1), "-")) { //#5435 + $k[$j++] = 'bwipp.isbn10character12#5434'; //#5434 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#5434 + bwipp_raiseerror(); //#5434 + } //#5434 + var _r = $get($_.barcode, 12); //#5436 + if (((_r < 48) || (_r > 57)) && (_r != 88)) { //#5438 + $k[$j++] = 'bwipp.isbn10character13#5437'; //#5437 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#5437 + bwipp_raiseerror(); //#5437 + } //#5437 + } //#5437 + } //#5437 + $_.isbntxt = $_.barcode; //#5442 + if ($_.isbntxt.length <= 13) { //#5468 + $_.isbn = $s(10); //#5446 + $_.checksum = 0; //#5447 + $_.i = 0; //#5448 + $_.n = 0; //#5448 + for (;;) { //#5460 + $_.isbnchar = $f($get($_.isbntxt, $_.i) - 48); //#5450 + if ($_.isbnchar != -3) { //#5457 + $put($_.isbn, $_.n, $f($_.isbnchar + 48)); //#5452 + if ($_.n < 9) { //#5455 + $_.checksum = $f($_.checksum + ((10 - $_.n) * $_.isbnchar)); //#5454 + } //#5454 + $_.n = $_.n + 1; //#5456 + } //#5456 + $_.i = $_.i + 1; //#5458 + if ($_.i == $_.isbntxt.length) { //#5459 + break; //#5459 + } //#5459 + } //#5459 + var _1B = ($f(11 - ($_.checksum % 11))) % 11; //#5461 + $k[$j++] = 'checksum'; //#5461 + $k[$j++] = _1B; //#5461 + if (_1B == 10) { //#5461 + $j--; //#5461 + $k[$j++] = 40; //#5461 + } //#5461 + var _1C = $k[--$j]; //#5461 + $_[$k[--$j]] = $f(_1C + 48); //#5461 + $_.isbn = $geti($_.isbn, 0, 9); //#5462 + if ($_.isbntxt.length == 13) { //#5467 + if ($get($_.isbntxt, 12) != $_.checksum) { //#5466 + $k[$j++] = 'bwipp.isbn10badCheckDigit#5465'; //#5465 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#5465 + bwipp_raiseerror(); //#5465 + } //#5465 + } //#5465 + } //#5465 + if ((!$_.legacy) || ($_.isbntxt.length >= 15)) { //#5504 + if ($_.isbntxt.length <= 13) { //#5478 + $_.pad = $s(15); //#5474 + $puti($_.pad, 0, "978-"); //#5475 + $puti($_.pad, 4, $geti($_.isbntxt, 0, 11)); //#5476 + $_.isbntxt = $_.pad; //#5477 + } //#5477 + $_.isbn = $s(13); //#5481 + $_.checksum = 0; //#5482 + $_.i = 0; //#5483 + $_.n = 0; //#5483 + for (;;) { //#5495 + $_.isbnchar = $get($_.isbntxt, $_.i) - 48; //#5485 + if ($_.isbnchar != -3) { //#5492 + $put($_.isbn, $_.n, $_.isbnchar + 48); //#5487 + if ($_.n < 12) { //#5490 + $k[$j++] = 'checksum'; //#5489 + $k[$j++] = $_.isbnchar; //#5489 + if (($_.n % 2) != 0) { //#5489 + var _1e = $k[--$j]; //#5489 + $k[$j++] = _1e * 3; //#5489 + } //#5489 + var _1g = $k[--$j]; //#5489 + $_[$k[--$j]] = $f(_1g + $_.checksum); //#5489 + } //#5489 + $_.n = $_.n + 1; //#5491 + } //#5491 + $_.i = $_.i + 1; //#5493 + if ($_.i == $_.isbntxt.length) { //#5494 + break; //#5494 + } //#5494 + } //#5494 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5496 + $_.isbn = $geti($_.isbn, 0, 12); //#5497 + if ($_.isbntxt.length == 17) { //#5502 + if ($get($_.isbntxt, 16) != $_.checksum) { //#5501 + $k[$j++] = 'bwipp.isbn13badCheckDigit#5500'; //#5500 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#5500 + bwipp_raiseerror(); //#5500 + } //#5500 + } //#5500 + } //#5500 + var _1u = ($_.isbn.length == 12) ? 22 : 18; //#5507 + $_.pad = $s(_1u); //#5507 + $puti($_.pad, 0, "ISBN "); //#5508 + $puti($_.pad, 5, $_.isbntxt); //#5509 + $put($_.pad, $_.pad.length - 2, 45); //#5510 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5511 + $_.isbntxt = $_.pad; //#5512 + $_.barcode = $s(12); //#5515 + if ($_.isbn.length == 9) { //#5520 + $puti($_.barcode, 0, "978"); //#5517 + $puti($_.barcode, 3, $_.isbn); //#5518 + } else { //#5520 + $puti($_.barcode, 0, $_.isbn); //#5520 + } //#5520 + if ($ne($_.addon, "")) { //#5530 + var _2E = $s((12 + $_.addon.length) + 1); //#5525 + $puti(_2E, 0, $_.barcode); //#5526 + $puti(_2E, 12, " "); //#5527 + $puti(_2E, 13, $_.addon); //#5528 + $_.barcode = _2E; //#5529 + } //#5529 + $put($_.options, "dontdraw", true); //#5533 + $put($_.options, "addongap", $_.addongap); //#5534 + $k[$j++] = 'args'; //#5535 + $k[$j++] = $_.barcode; //#5535 + $k[$j++] = $_.options; //#5535 + bwipp_ean13(); //#5535 + var _2M = $k[--$j]; //#5535 + $_[$k[--$j]] = _2M; //#5535 + if ($_.includetext) { //#5554 + if ($eq($_.isbntextxoffset, null)) { //#5541 + $k[$j++] = 'isbntextxoffset'; //#5540 + if ($_.isbn.length == 9) { //#5540 + $k[$j++] = -1; //#5540 + } else { //#5540 + $k[$j++] = -12; //#5540 + } //#5540 + var _2R = $k[--$j]; //#5540 + $_[$k[--$j]] = _2R; //#5540 + } //#5540 + if ($eq($_.isbntextyoffset, null)) { //#5544 + $_.isbntextyoffset = ($_.height * 72) + 3; //#5543 + } //#5543 + var _2W = $get($_.args, "txt") !== undefined; //#5545 + if (_2W) { //#5552 + $_.txt = $get($_.args, "txt"); //#5546 + $_.newtxt = $a($_.txt.length + 1); //#5547 + $puti($_.newtxt, 0, $_.txt); //#5548 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])); //#5549 + $put($_.args, "txt", $_.newtxt); //#5550 + } else { //#5552 + $put($_.args, "txt", $a([$a([$_.isbntxt, $_.isbntextxoffset, $_.isbntextyoffset, $_.isbntextfont, $_.isbntextsize])])); //#5552 + } //#5552 + } //#5552 + $put($_.args, "opt", $_.options); //#5556 + $k[$j++] = $_.args; //#5559 + if (!$_.dontdraw) { //#5559 + bwipp_renlinear(); //#5559 + } //#5559 + $_ = Object.getPrototypeOf($_); //#5561 +} //bwipp_isbn function bwipp_ismn() { - $_ = Object.create($_); //#5456 - $_.dontdraw = false; //#5459 - $_.includetext = false; //#5460 - $_.ismntextfont = 'OCR-A'; //#5461 - $_.ismntextsize = 8; //#5462 - $_.ismntextxoffset = null; //#5463 - $_.ismntextyoffset = null; //#5464 - $_.height = 1; //#5465 - $_.addongap = 12; //#5466 - $_.legacy = false; //#5467 - $k[$j++] = $_; //#5469 - bwipp_processoptions(); //#5469 - $_.options = $k[--$j]; //#5469 - $_.barcode = $k[--$j]; //#5470 - $search($_.barcode, " "); //#5473 - if ($k[--$j]) { //#5479 - $_.barcode = $k[--$j]; //#5474 - $j--; //#5475 - $_.addon = $k[--$j]; //#5476 - } else { //#5479 - $j--; //#5478 - $_.addon = ""; //#5479 - } //#5479 - if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5486 - $k[$j++] = 'bwipp.ismnBadLength#5485'; //#5485 - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5485 - bwipp_raiseerror(); //#5485 - } //#5485 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5489 - $k[$j++] = 'bwipp.ismnBadAddOnLength#5488'; //#5488 - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5488 - bwipp_raiseerror(); //#5488 - } //#5488 - if ($_.barcode.length >= 15) { //#5556 - if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5493 - $k[$j++] = 'bwipp.ismn13badPrefix#5492'; //#5492 - $k[$j++] = "ISMN-13 prefix must be 979-"; //#5492 - bwipp_raiseerror(); //#5492 - } //#5492 - $_.wasdash = false; //#5494 - $_.numdash = 0; //#5494 - $_.numdigit = 0; //#5494 - var _H = $geti($_.barcode, 5, 9); //#5495 - for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5508 - var _K = $get(_H, _I); //#5508 - $k[$j++] = _K; //#5503 - if (_K == 45) { //#5503 - if ($_.wasdash) { //#5500 - $k[$j++] = 'bwipp.ismn13adjacentDashes#5499'; //#5499 - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5499 - bwipp_raiseerror(); //#5499 - } //#5499 - $_.wasdash = true; //#5501 - $_.numdash = $_.numdash + 1; //#5502 - } //#5502 - var _N = $k[--$j]; //#5504 - if ((_N >= 48) && (_N <= 57)) { //#5507 - $_.wasdash = false; //#5505 - $_.numdigit = $_.numdigit + 1; //#5506 - } //#5506 - } //#5506 - if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5511 - $k[$j++] = 'bwipp.ismn13numDashesDigits#5510'; //#5510 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5510 - bwipp_raiseerror(); //#5510 - } //#5510 - var _S = $get($_.barcode, 14); //#5512 - if ((_S < 48) || (_S > 57)) { //#5514 - $k[$j++] = 'bwipp.ismn13character15#5513'; //#5513 - $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5513 - bwipp_raiseerror(); //#5513 - } //#5513 - if ($_.barcode.length == 17) { //#5522 - if ($ne($geti($_.barcode, 15, 1), "-")) { //#5518 - $k[$j++] = 'bwipp.ismn13character16#5517'; //#5517 - $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5517 - bwipp_raiseerror(); //#5517 - } //#5517 - var _X = $get($_.barcode, 16); //#5519 - if ((_X < 48) || (_X > 57)) { //#5521 - $k[$j++] = 'bwipp.ismn13character17#5520'; //#5520 - $k[$j++] = "ISMN-13 final character must be a digit"; //#5520 - bwipp_raiseerror(); //#5520 - } //#5520 - } //#5520 - } else { //#5556 - if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5526 - $k[$j++] = 'bwipp.ismn10badPrefix#5525'; //#5525 - $k[$j++] = "ISMN-10 prefix must be M-"; //#5525 - bwipp_raiseerror(); //#5525 - } //#5525 - var _b = $get($_.barcode, 2); //#5527 - if ((_b < 48) || (_b > 57)) { //#5529 - $k[$j++] = 'bwipp.ismn10character3#5528'; //#5528 - $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5528 - bwipp_raiseerror(); //#5528 - } //#5528 - $_.wasdash = false; //#5530 - $_.numdash = 0; //#5530 - $_.numdigit = 0; //#5530 - var _d = $geti($_.barcode, 3, 7); //#5531 - for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5544 - var _g = $get(_d, _e); //#5544 - $k[$j++] = _g; //#5539 - if (_g == 45) { //#5539 - if ($_.wasdash) { //#5536 - $k[$j++] = 'bwipp.ismn10adjacentDashes#5535'; //#5535 - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5535 - bwipp_raiseerror(); //#5535 - } //#5535 - $_.wasdash = true; //#5537 - $_.numdash = $_.numdash + 1; //#5538 - } //#5538 - var _j = $k[--$j]; //#5540 - if ((_j >= 48) && (_j <= 57)) { //#5543 - $_.wasdash = false; //#5541 - $_.numdigit = $_.numdigit + 1; //#5542 - } //#5542 - } //#5542 - if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5547 - $k[$j++] = 'bwipp.ismn10numDashesDigits#5546'; //#5546 - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5546 - bwipp_raiseerror(); //#5546 - } //#5546 - var _o = $get($_.barcode, 10); //#5548 - if ((_o < 48) || (_o > 57)) { //#5550 - $k[$j++] = 'bwipp.ismn10character11#5549'; //#5549 - $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5549 - bwipp_raiseerror(); //#5549 - } //#5549 - if ($_.barcode.length == 13) { //#5558 - var _r = $geti($_.barcode, 11, 1); //#5552 - if ($ne(_r, "-")) { //#5554 - $k[$j++] = 'bwipp.ismn10character12#5553'; //#5553 - $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5553 - bwipp_raiseerror(); //#5553 - } //#5553 - var _t = $get($_.barcode, 12); //#5555 - if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5557 - $k[$j++] = 'bwipp.ismn10character13#5556'; //#5556 - $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5556 - bwipp_raiseerror(); //#5556 - } //#5556 - } //#5556 - } //#5556 - $_.ismntxt = $_.barcode; //#5561 - $_.legacytxt = ""; //#5564 - if ($_.ismntxt.length <= 13) { //#5571 - $_.legacytxt = $_.ismntxt; //#5566 - $_.pad = $s($_.ismntxt.length + 4); //#5567 - $puti($_.pad, 0, "979-0-"); //#5568 - $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5569 - $_.ismntxt = $_.pad; //#5570 - } //#5570 - $_.ismn = $s(13); //#5574 - $_.checksum = 0; //#5575 - $_.i = 0; //#5576 - $_.n = 0; //#5576 - for (;;) { //#5592 - $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5578 - if ($_.ismnchar != -3) { //#5589 - $put($_.ismn, $_.n, $_.ismnchar + 48); //#5580 - if ($_.n < 12) { //#5587 - if (($_.n % 2) == 0) { //#5585 - $_.checksum = $_.ismnchar + $_.checksum; //#5583 - } else { //#5585 - $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5585 - } //#5585 - } //#5585 - $_.n = $_.n + 1; //#5588 - } //#5588 - $_.i = $_.i + 1; //#5590 - if ($_.i == $_.ismntxt.length) { //#5591 - break; //#5591 - } //#5591 - } //#5591 - $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5593 - if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5600 - var _1Q = $_.barcode; //#5597 - if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5599 - $k[$j++] = 'bwipp.ismnBadCheckDigit#5598'; //#5598 - $k[$j++] = "Incorrect ISMN check digit provided"; //#5598 - bwipp_raiseerror(); //#5598 - } //#5598 - } //#5598 - if ($_.legacy && $ne($_.legacytxt, "")) { //#5607 - $_.ismntxt = $_.legacytxt; //#5604 - $_.pad = $s(18); //#5605 - } else { //#5607 - $_.pad = $s(22); //#5607 - } //#5607 - $puti($_.pad, 0, "ISMN "); //#5609 - $puti($_.pad, 5, $_.ismntxt); //#5610 - $put($_.pad, $_.pad.length - 2, 45); //#5611 - $put($_.pad, $_.pad.length - 1, $_.checksum); //#5612 - $_.ismntxt = $_.pad; //#5613 - $_.barcode = $geti($_.ismn, 0, 12); //#5616 - if ($ne($_.addon, "")) { //#5625 - var _1l = $s((12 + $_.addon.length) + 1); //#5620 - $puti(_1l, 0, $_.barcode); //#5621 - $puti(_1l, 12, " "); //#5622 - $puti(_1l, 13, $_.addon); //#5623 - $_.barcode = _1l; //#5624 - } //#5624 - $put($_.options, "dontdraw", true); //#5628 - $put($_.options, "addongap", $_.addongap); //#5629 - $k[$j++] = 'args'; //#5630 - $k[$j++] = $_.barcode; //#5630 - $k[$j++] = $_.options; //#5630 - bwipp_ean13(); //#5630 - var _1t = $k[--$j]; //#5630 - $_[$k[--$j]] = _1t; //#5630 - if ($_.includetext) { //#5649 - if ($eq($_.ismntextxoffset, null)) { //#5636 - $k[$j++] = 'ismntextxoffset'; //#5635 - if ($_.ismntxt.length == 18) { //#5635 - $k[$j++] = -1; //#5635 - } else { //#5635 - $k[$j++] = -12; //#5635 - } //#5635 - var _1y = $k[--$j]; //#5635 - $_[$k[--$j]] = _1y; //#5635 - } //#5635 - if ($eq($_.ismntextyoffset, null)) { //#5639 - $_.ismntextyoffset = ($_.height * 72) + 3; //#5638 - } //#5638 - var _23 = $get($_.args, "txt") !== undefined; //#5640 - if (_23) { //#5647 - $_.txt = $get($_.args, "txt"); //#5641 - $_.newtxt = $a($_.txt.length + 1); //#5642 - $puti($_.newtxt, 0, $_.txt); //#5643 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5644 - $put($_.args, "txt", $_.newtxt); //#5645 - } else { //#5647 - $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5647 + $_ = Object.create($_); //#5590 + $_.dontdraw = false; //#5593 + $_.includetext = false; //#5594 + $_.ismntextfont = 'OCR-A'; //#5595 + $_.ismntextsize = 8; //#5596 + $_.ismntextxoffset = null; //#5597 + $_.ismntextyoffset = null; //#5598 + $_.height = 1; //#5599 + $_.addongap = 12; //#5600 + $_.legacy = false; //#5601 + $k[$j++] = $_; //#5603 + bwipp_processoptions(); //#5603 + $_.options = $k[--$j]; //#5603 + $_.barcode = $k[--$j]; //#5604 + $search($_.barcode, " "); //#5607 + if ($k[--$j]) { //#5613 + $_.barcode = $k[--$j]; //#5608 + $j--; //#5609 + $_.addon = $k[--$j]; //#5610 + } else { //#5613 + $j--; //#5612 + $_.addon = ""; //#5613 + } //#5613 + if ((($_.barcode.length != 15) && ($_.barcode.length != 17)) && (($_.barcode.length != 11) && ($_.barcode.length != 13))) { //#5620 + $k[$j++] = 'bwipp.ismnBadLength#5619'; //#5619 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#5619 + bwipp_raiseerror(); //#5619 + } //#5619 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5623 + $k[$j++] = 'bwipp.ismnBadAddOnLength#5622'; //#5622 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#5622 + bwipp_raiseerror(); //#5622 + } //#5622 + if ($_.barcode.length >= 15) { //#5690 + if ($ne($geti($_.barcode, 0, 4), "979-")) { //#5627 + $k[$j++] = 'bwipp.ismn13badPrefix#5626'; //#5626 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#5626 + bwipp_raiseerror(); //#5626 + } //#5626 + $_.wasdash = false; //#5628 + $_.numdash = 0; //#5628 + $_.numdigit = 0; //#5628 + var _H = $geti($_.barcode, 5, 9); //#5629 + for (var _I = 0, _J = _H.length; _I < _J; _I++) { //#5642 + var _K = $get(_H, _I); //#5642 + $k[$j++] = _K; //#5637 + if (_K == 45) { //#5637 + if ($_.wasdash) { //#5634 + $k[$j++] = 'bwipp.ismn13adjacentDashes#5633'; //#5633 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#5633 + bwipp_raiseerror(); //#5633 + } //#5633 + $_.wasdash = true; //#5635 + $_.numdash = $_.numdash + 1; //#5636 + } //#5636 + var _N = $k[--$j]; //#5638 + if ((_N >= 48) && (_N <= 57)) { //#5641 + $_.wasdash = false; //#5639 + $_.numdigit = $_.numdigit + 1; //#5640 + } //#5640 + } //#5640 + if (($_.numdash != 2) || ($_.numdigit != 7)) { //#5645 + $k[$j++] = 'bwipp.ismn13numDashesDigits#5644'; //#5644 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#5644 + bwipp_raiseerror(); //#5644 + } //#5644 + var _S = $get($_.barcode, 14); //#5646 + if ((_S < 48) || (_S > 57)) { //#5648 + $k[$j++] = 'bwipp.ismn13character15#5647'; //#5647 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#5647 + bwipp_raiseerror(); //#5647 } //#5647 - } //#5647 - $put($_.args, "opt", $_.options); //#5651 - $k[$j++] = $_.args; //#5654 - if (!$_.dontdraw) { //#5654 - bwipp_renlinear(); //#5654 - } //#5654 - $_ = Object.getPrototypeOf($_); //#5656 -} - + if ($_.barcode.length == 17) { //#5656 + if ($ne($geti($_.barcode, 15, 1), "-")) { //#5652 + $k[$j++] = 'bwipp.ismn13character16#5651'; //#5651 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#5651 + bwipp_raiseerror(); //#5651 + } //#5651 + var _X = $get($_.barcode, 16); //#5653 + if ((_X < 48) || (_X > 57)) { //#5655 + $k[$j++] = 'bwipp.ismn13character17#5654'; //#5654 + $k[$j++] = "ISMN-13 final character must be a digit"; //#5654 + bwipp_raiseerror(); //#5654 + } //#5654 + } //#5654 + } else { //#5690 + if ($ne($geti($_.barcode, 0, 2), "M-")) { //#5660 + $k[$j++] = 'bwipp.ismn10badPrefix#5659'; //#5659 + $k[$j++] = "ISMN-10 prefix must be M-"; //#5659 + bwipp_raiseerror(); //#5659 + } //#5659 + var _b = $get($_.barcode, 2); //#5661 + if ((_b < 48) || (_b > 57)) { //#5663 + $k[$j++] = 'bwipp.ismn10character3#5662'; //#5662 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#5662 + bwipp_raiseerror(); //#5662 + } //#5662 + $_.wasdash = false; //#5664 + $_.numdash = 0; //#5664 + $_.numdigit = 0; //#5664 + var _d = $geti($_.barcode, 3, 7); //#5665 + for (var _e = 0, _f = _d.length; _e < _f; _e++) { //#5678 + var _g = $get(_d, _e); //#5678 + $k[$j++] = _g; //#5673 + if (_g == 45) { //#5673 + if ($_.wasdash) { //#5670 + $k[$j++] = 'bwipp.ismn10adjacentDashes#5669'; //#5669 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#5669 + bwipp_raiseerror(); //#5669 + } //#5669 + $_.wasdash = true; //#5671 + $_.numdash = $_.numdash + 1; //#5672 + } //#5672 + var _j = $k[--$j]; //#5674 + if ((_j >= 48) && (_j <= 57)) { //#5677 + $_.wasdash = false; //#5675 + $_.numdigit = $_.numdigit + 1; //#5676 + } //#5676 + } //#5676 + if (($_.numdash != 1) || ($_.numdigit != 6)) { //#5681 + $k[$j++] = 'bwipp.ismn10numDashesDigits#5680'; //#5680 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#5680 + bwipp_raiseerror(); //#5680 + } //#5680 + var _o = $get($_.barcode, 10); //#5682 + if ((_o < 48) || (_o > 57)) { //#5684 + $k[$j++] = 'bwipp.ismn10character11#5683'; //#5683 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#5683 + bwipp_raiseerror(); //#5683 + } //#5683 + if ($_.barcode.length == 13) { //#5692 + var _r = $geti($_.barcode, 11, 1); //#5686 + if ($ne(_r, "-")) { //#5688 + $k[$j++] = 'bwipp.ismn10character12#5687'; //#5687 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#5687 + bwipp_raiseerror(); //#5687 + } //#5687 + var _t = $get($_.barcode, 12); //#5689 + if (((_t < 48) || (_t > 57)) && (_t != 88)) { //#5691 + $k[$j++] = 'bwipp.ismn10character13#5690'; //#5690 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#5690 + bwipp_raiseerror(); //#5690 + } //#5690 + } //#5690 + } //#5690 + $_.ismntxt = $_.barcode; //#5695 + $_.legacytxt = ""; //#5698 + if ($_.ismntxt.length <= 13) { //#5705 + $_.legacytxt = $_.ismntxt; //#5700 + $_.pad = $s($_.ismntxt.length + 4); //#5701 + $puti($_.pad, 0, "979-0-"); //#5702 + $puti($_.pad, 6, $geti($_.ismntxt, 2, $_.ismntxt.length - 2)); //#5703 + $_.ismntxt = $_.pad; //#5704 + } //#5704 + $_.ismn = $s(13); //#5708 + $_.checksum = 0; //#5709 + $_.i = 0; //#5710 + $_.n = 0; //#5710 + for (;;) { //#5726 + $_.ismnchar = $get($_.ismntxt, $_.i) - 48; //#5712 + if ($_.ismnchar != -3) { //#5723 + $put($_.ismn, $_.n, $_.ismnchar + 48); //#5714 + if ($_.n < 12) { //#5721 + if (($_.n % 2) == 0) { //#5719 + $_.checksum = $_.ismnchar + $_.checksum; //#5717 + } else { //#5719 + $_.checksum = ($_.ismnchar * 3) + $_.checksum; //#5719 + } //#5719 + } //#5719 + $_.n = $_.n + 1; //#5722 + } //#5722 + $_.i = $_.i + 1; //#5724 + if ($_.i == $_.ismntxt.length) { //#5725 + break; //#5725 + } //#5725 + } //#5725 + $_.checksum = ((10 - ($_.checksum % 10)) % 10) + 48; //#5727 + if (($_.barcode.length == 13) || ($_.barcode.length == 17)) { //#5734 + var _1Q = $_.barcode; //#5731 + if ($get(_1Q, _1Q.length - 1) != $_.checksum) { //#5733 + $k[$j++] = 'bwipp.ismnBadCheckDigit#5732'; //#5732 + $k[$j++] = "Incorrect ISMN check digit provided"; //#5732 + bwipp_raiseerror(); //#5732 + } //#5732 + } //#5732 + if ($_.legacy && $ne($_.legacytxt, "")) { //#5741 + $_.ismntxt = $_.legacytxt; //#5738 + $_.pad = $s(18); //#5739 + } else { //#5741 + $_.pad = $s(22); //#5741 + } //#5741 + $puti($_.pad, 0, "ISMN "); //#5743 + $puti($_.pad, 5, $_.ismntxt); //#5744 + $put($_.pad, $_.pad.length - 2, 45); //#5745 + $put($_.pad, $_.pad.length - 1, $_.checksum); //#5746 + $_.ismntxt = $_.pad; //#5747 + $_.barcode = $geti($_.ismn, 0, 12); //#5750 + if ($ne($_.addon, "")) { //#5759 + var _1l = $s((12 + $_.addon.length) + 1); //#5754 + $puti(_1l, 0, $_.barcode); //#5755 + $puti(_1l, 12, " "); //#5756 + $puti(_1l, 13, $_.addon); //#5757 + $_.barcode = _1l; //#5758 + } //#5758 + $put($_.options, "dontdraw", true); //#5762 + $put($_.options, "addongap", $_.addongap); //#5763 + $k[$j++] = 'args'; //#5764 + $k[$j++] = $_.barcode; //#5764 + $k[$j++] = $_.options; //#5764 + bwipp_ean13(); //#5764 + var _1t = $k[--$j]; //#5764 + $_[$k[--$j]] = _1t; //#5764 + if ($_.includetext) { //#5783 + if ($eq($_.ismntextxoffset, null)) { //#5770 + $k[$j++] = 'ismntextxoffset'; //#5769 + if ($_.ismntxt.length == 18) { //#5769 + $k[$j++] = -1; //#5769 + } else { //#5769 + $k[$j++] = -12; //#5769 + } //#5769 + var _1y = $k[--$j]; //#5769 + $_[$k[--$j]] = _1y; //#5769 + } //#5769 + if ($eq($_.ismntextyoffset, null)) { //#5773 + $_.ismntextyoffset = ($_.height * 72) + 3; //#5772 + } //#5772 + var _23 = $get($_.args, "txt") !== undefined; //#5774 + if (_23) { //#5781 + $_.txt = $get($_.args, "txt"); //#5775 + $_.newtxt = $a($_.txt.length + 1); //#5776 + $puti($_.newtxt, 0, $_.txt); //#5777 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])); //#5778 + $put($_.args, "txt", $_.newtxt); //#5779 + } else { //#5781 + $put($_.args, "txt", $a([$a([$_.ismntxt, $_.ismntextxoffset, $_.ismntextyoffset, $_.ismntextfont, $_.ismntextsize])])); //#5781 + } //#5781 + } //#5781 + $put($_.args, "opt", $_.options); //#5785 + $k[$j++] = $_.args; //#5788 + if (!$_.dontdraw) { //#5788 + bwipp_renlinear(); //#5788 + } //#5788 + $_ = Object.getPrototypeOf($_); //#5790 +} //bwipp_ismn function bwipp_issn() { - $_ = Object.create($_); //#5685 - $_.dontdraw = false; //#5688 - $_.includetext = false; //#5689 - $_.issntextfont = 'OCR-A'; //#5690 - $_.issntextsize = 8; //#5691 - $_.issntextxoffset = null; //#5692 - $_.issntextyoffset = null; //#5693 - $_.height = 1; //#5694 - $_.addongap = 12; //#5695 - $k[$j++] = $_; //#5697 - bwipp_processoptions(); //#5697 - $_.options = $k[--$j]; //#5697 - $_.issntxt = $k[--$j]; //#5698 - $search($_.issntxt, " "); //#5701 - if ($k[--$j]) { //#5707 - $_.issntxt = $k[--$j]; //#5702 - $j--; //#5703 - $_.seqvar = $k[--$j]; //#5704 - } else { //#5707 - $j--; //#5706 - $_.seqvar = "00"; //#5707 - } //#5707 - $search($_.seqvar, " "); //#5711 - if ($k[--$j]) { //#5717 - $_.seqvar = $k[--$j]; //#5712 - $j--; //#5713 - $_.addon = $k[--$j]; //#5714 - } else { //#5717 - $j--; //#5716 - $_.addon = ""; //#5717 - } //#5717 - if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5723 - $k[$j++] = 'bwipp.issnBadLength#5722'; //#5722 - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5722 - bwipp_raiseerror(); //#5722 - } //#5722 - var _D = $geti($_.issntxt, 0, 4); //#5724 - for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5728 - var _G = $get(_D, _E); //#5728 - if ((_G < 48) || (_G > 57)) { //#5727 - $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5726'; //#5726 - $k[$j++] = "ISSN first four characters must be numeral characters"; //#5726 - bwipp_raiseerror(); //#5726 - } //#5726 - } //#5726 - if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5731 - $k[$j++] = 'bwipp.issnNeedsDash#5730'; //#5730 - $k[$j++] = "ISSN fifth character must be a dash"; //#5730 - bwipp_raiseerror(); //#5730 - } //#5730 - var _K = $geti($_.issntxt, 5, 3); //#5732 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5736 - var _N = $get(_K, _L); //#5736 - if ((_N < 48) || (_N > 57)) { //#5735 - $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5734'; //#5734 - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5734 - bwipp_raiseerror(); //#5734 - } //#5734 - } //#5734 - if ($_.issntxt.length == 9) { //#5741 - var _Q = $get($_.issntxt, 8); //#5738 - if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5740 - $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5739'; //#5739 - $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5739 - bwipp_raiseerror(); //#5739 - } //#5739 - } //#5739 - if ($_.seqvar.length != 2) { //#5744 - $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5743'; //#5743 - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5743 - bwipp_raiseerror(); //#5743 - } //#5743 - $forall($_.seqvar, function() { //#5749 - var _T = $k[--$j]; //#5746 - if ((_T < 48) || (_T > 57)) { //#5748 - $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5747'; //#5747 - $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5747 - bwipp_raiseerror(); //#5747 - } //#5747 - }); //#5747 - if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5752 - $k[$j++] = 'bwipp.issnBadAddOnLength#5751'; //#5751 - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5751 - bwipp_raiseerror(); //#5751 - } //#5751 - $_.issn = $s(8); //#5755 - $_.checksum = 0; //#5756 - $_.i = 0; //#5757 - $_.n = 0; //#5757 - for (;;) { //#5769 - $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5759 - if ($_.issnchar != -3) { //#5766 - $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5761 - if ($_.n < 7) { //#5764 - $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5763 - } //#5763 - $_.n = $_.n + 1; //#5765 - } //#5765 - $_.i = $_.i + 1; //#5767 - if ($_.i == $_.issntxt.length) { //#5768 - break; //#5768 - } //#5768 - } //#5768 - $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5770 - var _p = $f($_.checksum + 48); //#5771 - $k[$j++] = 'checksum'; //#5771 - $k[$j++] = _p; //#5771 - if (_p == 58) { //#5771 - $j--; //#5771 - $k[$j++] = 88; //#5771 - } //#5771 - var _q = $k[--$j]; //#5771 - var _r = $k[--$j]; //#5771 - $_[_r] = _q; //#5771 - if ($_.issntxt.length == 9) { //#5776 - if ($get($_.issntxt, 8) != $_.checksum) { //#5775 - $k[$j++] = 'bwipp.issnBadCheckDigit#5774'; //#5774 - $k[$j++] = "Incorrect ISSN check digit provided"; //#5774 - bwipp_raiseerror(); //#5774 - } //#5774 - } //#5774 - $_.pad = $s(14); //#5779 - $puti($_.pad, 0, "ISSN "); //#5780 - $puti($_.pad, 5, $_.issntxt); //#5781 - $put($_.pad, 13, $_.checksum); //#5782 - $_.issntxt = $_.pad; //#5783 - $_.barcode = $geti($_.issn, 0, 7); //#5786 - $_.barcode = $s(12); //#5789 - $puti($_.barcode, 0, "977"); //#5790 - $puti($_.barcode, 3, $_.issn); //#5791 - $puti($_.barcode, 10, $_.seqvar); //#5792 - if ($ne($_.addon, "")) { //#5801 - var _1D = $s((12 + $_.addon.length) + 1); //#5796 - $puti(_1D, 0, $_.barcode); //#5797 - $puti(_1D, 12, " "); //#5798 - $puti(_1D, 13, $_.addon); //#5799 - $_.barcode = _1D; //#5800 - } //#5800 - $put($_.options, "dontdraw", true); //#5804 - $put($_.options, "addongap", $_.addongap); //#5805 - $k[$j++] = 'args'; //#5806 - $k[$j++] = $_.barcode; //#5806 - $k[$j++] = $_.options; //#5806 - bwipp_ean13(); //#5806 - var _1L = $k[--$j]; //#5806 - $_[$k[--$j]] = _1L; //#5806 - if ($_.includetext) { //#5821 - if ($eq($_.issntextxoffset, null)) { //#5810 - $_.issntextxoffset = 10; //#5810 - } //#5810 - if ($eq($_.issntextyoffset, null)) { //#5811 - $_.issntextyoffset = ($_.height * 72) + 3; //#5811 - } //#5811 - var _1S = $get($_.args, "txt") !== undefined; //#5812 - if (_1S) { //#5819 - $_.txt = $get($_.args, "txt"); //#5813 - $_.newtxt = $a($_.txt.length + 1); //#5814 - $puti($_.newtxt, 0, $_.txt); //#5815 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5816 - $put($_.args, "txt", $_.newtxt); //#5817 - } else { //#5819 - $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5819 - } //#5819 - } //#5819 - $put($_.args, "opt", $_.options); //#5823 - $k[$j++] = $_.args; //#5826 - if (!$_.dontdraw) { //#5826 - bwipp_renlinear(); //#5826 - } //#5826 - $_ = Object.getPrototypeOf($_); //#5828 -} - + $_ = Object.create($_); //#5819 + $_.dontdraw = false; //#5822 + $_.includetext = false; //#5823 + $_.issntextfont = 'OCR-A'; //#5824 + $_.issntextsize = 8; //#5825 + $_.issntextxoffset = null; //#5826 + $_.issntextyoffset = null; //#5827 + $_.height = 1; //#5828 + $_.addongap = 12; //#5829 + $k[$j++] = $_; //#5831 + bwipp_processoptions(); //#5831 + $_.options = $k[--$j]; //#5831 + $_.issntxt = $k[--$j]; //#5832 + $search($_.issntxt, " "); //#5835 + if ($k[--$j]) { //#5841 + $_.issntxt = $k[--$j]; //#5836 + $j--; //#5837 + $_.seqvar = $k[--$j]; //#5838 + } else { //#5841 + $j--; //#5840 + $_.seqvar = "00"; //#5841 + } //#5841 + $search($_.seqvar, " "); //#5845 + if ($k[--$j]) { //#5851 + $_.seqvar = $k[--$j]; //#5846 + $j--; //#5847 + $_.addon = $k[--$j]; //#5848 + } else { //#5851 + $j--; //#5850 + $_.addon = ""; //#5851 + } //#5851 + if (($_.issntxt.length != 8) && ($_.issntxt.length != 9)) { //#5857 + $k[$j++] = 'bwipp.issnBadLength#5856'; //#5856 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#5856 + bwipp_raiseerror(); //#5856 + } //#5856 + var _D = $geti($_.issntxt, 0, 4); //#5858 + for (var _E = 0, _F = _D.length; _E < _F; _E++) { //#5862 + var _G = $get(_D, _E); //#5862 + if ((_G < 48) || (_G > 57)) { //#5861 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric#5860'; //#5860 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#5860 + bwipp_raiseerror(); //#5860 + } //#5860 + } //#5860 + if ($ne($geti($_.issntxt, 4, 1), "-")) { //#5865 + $k[$j++] = 'bwipp.issnNeedsDash#5864'; //#5864 + $k[$j++] = "ISSN fifth character must be a dash"; //#5864 + bwipp_raiseerror(); //#5864 + } //#5864 + var _K = $geti($_.issntxt, 5, 3); //#5866 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#5870 + var _N = $get(_K, _L); //#5870 + if ((_N < 48) || (_N > 57)) { //#5869 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric#5868'; //#5868 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#5868 + bwipp_raiseerror(); //#5868 + } //#5868 + } //#5868 + if ($_.issntxt.length == 9) { //#5875 + var _Q = $get($_.issntxt, 8); //#5872 + if (((_Q < 48) || (_Q > 57)) && (_Q != 88)) { //#5874 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat#5873'; //#5873 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#5873 + bwipp_raiseerror(); //#5873 + } //#5873 + } //#5873 + if ($_.seqvar.length != 2) { //#5878 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength#5877'; //#5877 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#5877 + bwipp_raiseerror(); //#5877 + } //#5877 + $forall($_.seqvar, function() { //#5883 + var _T = $k[--$j]; //#5880 + if ((_T < 48) || (_T > 57)) { //#5882 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter#5881'; //#5881 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#5881 + bwipp_raiseerror(); //#5881 + } //#5881 + }); //#5881 + if ((($_.addon.length != 0) && ($_.addon.length != 2)) && ($_.addon.length != 5)) { //#5886 + $k[$j++] = 'bwipp.issnBadAddOnLength#5885'; //#5885 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#5885 + bwipp_raiseerror(); //#5885 + } //#5885 + $_.issn = $s(8); //#5889 + $_.checksum = 0; //#5890 + $_.i = 0; //#5891 + $_.n = 0; //#5891 + for (;;) { //#5903 + $_.issnchar = $f($get($_.issntxt, $_.i) - 48); //#5893 + if ($_.issnchar != -3) { //#5900 + $put($_.issn, $_.n, $f($_.issnchar + 48)); //#5895 + if ($_.n < 7) { //#5898 + $_.checksum = $f($_.checksum + ($_.issnchar * (8 - $_.n))); //#5897 + } //#5897 + $_.n = $_.n + 1; //#5899 + } //#5899 + $_.i = $_.i + 1; //#5901 + if ($_.i == $_.issntxt.length) { //#5902 + break; //#5902 + } //#5902 + } //#5902 + $_.checksum = ($f(11 - ($_.checksum % 11))) % 11; //#5904 + var _p = $f($_.checksum + 48); //#5905 + $k[$j++] = 'checksum'; //#5905 + $k[$j++] = _p; //#5905 + if (_p == 58) { //#5905 + $j--; //#5905 + $k[$j++] = 88; //#5905 + } //#5905 + var _q = $k[--$j]; //#5905 + var _r = $k[--$j]; //#5905 + $_[_r] = _q; //#5905 + if ($_.issntxt.length == 9) { //#5910 + if ($get($_.issntxt, 8) != $_.checksum) { //#5909 + $k[$j++] = 'bwipp.issnBadCheckDigit#5908'; //#5908 + $k[$j++] = "Incorrect ISSN check digit provided"; //#5908 + bwipp_raiseerror(); //#5908 + } //#5908 + } //#5908 + $_.pad = $s(14); //#5913 + $puti($_.pad, 0, "ISSN "); //#5914 + $puti($_.pad, 5, $_.issntxt); //#5915 + $put($_.pad, 13, $_.checksum); //#5916 + $_.issntxt = $_.pad; //#5917 + $_.barcode = $geti($_.issn, 0, 7); //#5920 + $_.barcode = $s(12); //#5923 + $puti($_.barcode, 0, "977"); //#5924 + $puti($_.barcode, 3, $_.issn); //#5925 + $puti($_.barcode, 10, $_.seqvar); //#5926 + if ($ne($_.addon, "")) { //#5935 + var _1D = $s((12 + $_.addon.length) + 1); //#5930 + $puti(_1D, 0, $_.barcode); //#5931 + $puti(_1D, 12, " "); //#5932 + $puti(_1D, 13, $_.addon); //#5933 + $_.barcode = _1D; //#5934 + } //#5934 + $put($_.options, "dontdraw", true); //#5938 + $put($_.options, "addongap", $_.addongap); //#5939 + $k[$j++] = 'args'; //#5940 + $k[$j++] = $_.barcode; //#5940 + $k[$j++] = $_.options; //#5940 + bwipp_ean13(); //#5940 + var _1L = $k[--$j]; //#5940 + $_[$k[--$j]] = _1L; //#5940 + if ($_.includetext) { //#5955 + if ($eq($_.issntextxoffset, null)) { //#5944 + $_.issntextxoffset = 10; //#5944 + } //#5944 + if ($eq($_.issntextyoffset, null)) { //#5945 + $_.issntextyoffset = ($_.height * 72) + 3; //#5945 + } //#5945 + var _1S = $get($_.args, "txt") !== undefined; //#5946 + if (_1S) { //#5953 + $_.txt = $get($_.args, "txt"); //#5947 + $_.newtxt = $a($_.txt.length + 1); //#5948 + $puti($_.newtxt, 0, $_.txt); //#5949 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])); //#5950 + $put($_.args, "txt", $_.newtxt); //#5951 + } else { //#5953 + $put($_.args, "txt", $a([$a([$_.issntxt, $_.issntextxoffset, $_.issntextyoffset, $_.issntextfont, $_.issntextsize])])); //#5953 + } //#5953 + } //#5953 + $put($_.args, "opt", $_.options); //#5957 + $k[$j++] = $_.args; //#5960 + if (!$_.dontdraw) { //#5960 + bwipp_renlinear(); //#5960 + } //#5960 + $_ = Object.getPrototypeOf($_); //#5962 +} //bwipp_issn function bwipp_mands() { - $_ = Object.create($_); //#5857 - $_.dontdraw = false; //#5860 - $_.includetext = false; //#5861 - $k[$j++] = $_; //#5863 - bwipp_processoptions(); //#5863 - $_.options = $k[--$j]; //#5863 - $_.barcode = $k[--$j]; //#5864 - $_.barlen = $_.barcode.length; //#5866 - if (($_.barlen != 7) && ($_.barlen != 8)) { //#5871 - $k[$j++] = 'bwipp.MandSbadLength#5870'; //#5870 - $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#5870 - bwipp_raiseerror(); //#5870 - } //#5870 - if ($_.barlen == 7) { //#5875 - var _7 = $strcpy($s(8), "00000000"); //#5874 - $puti(_7, 1, $_.barcode); //#5874 - $_.barcode = _7; //#5874 - } //#5874 - $put($_.options, "dontdraw", true); //#5878 - $k[$j++] = 'args'; //#5879 - $k[$j++] = $_.barcode; //#5879 - $k[$j++] = $_.options; //#5879 - bwipp_ean8(); //#5879 - var _C = $k[--$j]; //#5879 - $_[$k[--$j]] = _C; //#5879 - var _F = $get($_.args, "bbs"); //#5882 - $put(_F, 10, $get(_F, 2)); //#5883 - $put(_F, 11, $get(_F, 2)); //#5884 - var _J = $get($_.args, "bhs"); //#5885 - $put(_J, 10, $get(_J, 2)); //#5886 - $put(_J, 11, $get(_J, 2)); //#5887 - $_.txt = $get($_.args, "txt"); //#5890 - if ($_.barlen == 7) { //#5898 - for (var _P = 0; _P <= 6; _P += 1) { //#5896 - var _Q = $_.txt; //#5893 - $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#5895 - } //#5895 - $puti($get($get($_.txt, 7), 0), 0, " "); //#5897 - } //#5897 - var _Y = $a(10); //#5901 - $puti(_Y, 0, $_.txt); //#5901 - $_.txt = _Y; //#5901 - var _b = $get($_.txt, 0); //#5902 - $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#5902 - var _g = $get($_.txt, 0); //#5903 - $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#5903 - $put($get($_.txt, 8), 0, "M"); //#5904 - $put($get($_.txt, 8), 1, -12); //#5904 - $put($get($_.txt, 9), 0, "S"); //#5905 - var _r = $get($_.txt, 9); //#5905 - $put(_r, 1, 69); //#5905 - $put($_.args, "txt", $_.txt); //#5907 - $put($_.args, "opt", $_.options); //#5908 - $k[$j++] = $_.args; //#5911 - if (!$_.dontdraw) { //#5911 - bwipp_renlinear(); //#5911 - } //#5911 - $_ = Object.getPrototypeOf($_); //#5913 -} - + $_ = Object.create($_); //#5991 + $_.dontdraw = false; //#5994 + $_.includetext = false; //#5995 + $k[$j++] = $_; //#5997 + bwipp_processoptions(); //#5997 + $_.options = $k[--$j]; //#5997 + $_.barcode = $k[--$j]; //#5998 + $_.barlen = $_.barcode.length; //#6000 + if (($_.barlen != 7) && ($_.barlen != 8)) { //#6005 + $k[$j++] = 'bwipp.MandSbadLength#6004'; //#6004 + $k[$j++] = "M&S barcode must be 7 or 8 characters"; //#6004 + bwipp_raiseerror(); //#6004 + } //#6004 + if ($_.barlen == 7) { //#6009 + var _7 = $strcpy($s(8), "00000000"); //#6008 + $puti(_7, 1, $_.barcode); //#6008 + $_.barcode = _7; //#6008 + } //#6008 + $put($_.options, "dontdraw", true); //#6012 + $k[$j++] = 'args'; //#6013 + $k[$j++] = $_.barcode; //#6013 + $k[$j++] = $_.options; //#6013 + bwipp_ean8(); //#6013 + var _C = $k[--$j]; //#6013 + $_[$k[--$j]] = _C; //#6013 + var _F = $get($_.args, "bbs"); //#6016 + $put(_F, 10, $get(_F, 2)); //#6017 + $put(_F, 11, $get(_F, 2)); //#6018 + var _J = $get($_.args, "bhs"); //#6019 + $put(_J, 10, $get(_J, 2)); //#6020 + $put(_J, 11, $get(_J, 2)); //#6021 + $_.txt = $get($_.args, "txt"); //#6024 + if ($_.barlen == 7) { //#6032 + for (var _P = 0; _P <= 6; _P += 1) { //#6030 + var _Q = $_.txt; //#6027 + $puti($get($get(_Q, _P), 0), 0, $get($get(_Q, _P + 1), 0)); //#6029 + } //#6029 + $puti($get($get($_.txt, 7), 0), 0, " "); //#6031 + } //#6031 + var _Y = $a(10); //#6035 + $puti(_Y, 0, $_.txt); //#6035 + $_.txt = _Y; //#6035 + var _b = $get($_.txt, 0); //#6036 + $put($_.txt, 8, $arrcpy($a(_b.length), _b)); //#6036 + var _g = $get($_.txt, 0); //#6037 + $put($_.txt, 9, $arrcpy($a(_g.length), _g)); //#6037 + $put($get($_.txt, 8), 0, "M"); //#6038 + $put($get($_.txt, 8), 1, -12); //#6038 + $put($get($_.txt, 9), 0, "S"); //#6039 + var _r = $get($_.txt, 9); //#6039 + $put(_r, 1, 69); //#6039 + $put($_.args, "txt", $_.txt); //#6041 + $put($_.args, "opt", $_.options); //#6042 + $k[$j++] = $_.args; //#6045 + if (!$_.dontdraw) { //#6045 + bwipp_renlinear(); //#6045 + } //#6045 + $_ = Object.getPrototypeOf($_); //#6047 +} //bwipp_mands function bwipp_code128() { - $_ = Object.create($_); //#5944 - $_.dontdraw = false; //#5947 - $_.includetext = false; //#5948 - $_.textfont = "OCR-B"; //#5949 - $_.textsize = 10; //#5950 - $_.textxoffset = 0; //#5951 - $_.textyoffset = -8; //#5952 - $_.height = 1; //#5953 - $_.encoding = "auto"; //#5954 - $_.raw = false; //#5955 - $_.parse = false; //#5956 - $_.parsefnc = false; //#5957 - $k[$j++] = $_; //#5959 - bwipp_processoptions(); //#5959 - $_.options = $k[--$j]; //#5959 - $_.barcode = $k[--$j]; //#5960 - bwipp_loadctx(bwipp_code128) //#5962 - if (!bwipp_code128.__5971__) { //#5971 - $_ = Object.create($_); //#5971 - $_.sta = -1; //#5966 - $_.stb = -2; //#5966 - $_.stc = -3; //#5966 - $_.swa = -4; //#5967 - $_.swb = -5; //#5967 - $_.swc = -6; //#5967 - $_.fn1 = -7; //#5968 - $_.fn2 = -8; //#5968 - $_.fn3 = -9; //#5968 - $_.fn4 = -10; //#5969 - $_.sft = -11; //#5969 - $_.stp = -12; //#5969 - $_.lka = -13; //#5970 - $_.lkc = -14; //#5970 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#5970 - bwipp_code128.__5971__ = 1; //#5970 - $_ = Object.getPrototypeOf($_); //#5970 - } //#5970 - var _6 = $_.fn1; //#5978 + $_ = Object.create($_); //#6078 + $_.dontdraw = false; //#6081 + $_.includetext = false; //#6082 + $_.textfont = "OCR-B"; //#6083 + $_.textsize = 10; //#6084 + $_.textxoffset = 0; //#6085 + $_.textyoffset = -8; //#6086 + $_.height = 1; //#6087 + $_.encoding = "auto"; //#6088 + $_.raw = false; //#6089 + $_.parse = false; //#6090 + $_.parsefnc = false; //#6091 + $k[$j++] = $_; //#6093 + bwipp_processoptions(); //#6093 + $_.options = $k[--$j]; //#6093 + $_.barcode = $k[--$j]; //#6094 + bwipp_loadctx(bwipp_code128) //#6096 + if (!bwipp_code128.__6105__) { //#6105 + $_ = Object.create($_); //#6105 + $_.sta = -1; //#6100 + $_.stb = -2; //#6100 + $_.stc = -3; //#6100 + $_.swa = -4; //#6101 + $_.swb = -5; //#6101 + $_.swc = -6; //#6101 + $_.fn1 = -7; //#6102 + $_.fn2 = -8; //#6102 + $_.fn3 = -9; //#6102 + $_.fn4 = -10; //#6103 + $_.sft = -11; //#6103 + $_.stp = -12; //#6103 + $_.lka = -13; //#6104 + $_.lkc = -14; //#6104 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6104 + bwipp_code128.__6105__ = 1; //#6104 + $_ = Object.getPrototypeOf($_); //#6104 + } //#6104 + var _6 = $_.fn1; //#6112 var _B = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -8479,1270 +8738,1267 @@ function bwipp_code128() { ["FNC3", $_.fn3], ["LNKA", $_.lka], ["LNKC", $_.lkc] - ]); //#5983 - $_.fncvals = _B; //#5984 - $k[$j++] = 'msg'; //#5985 - $k[$j++] = $_.barcode; //#5985 - $k[$j++] = $_.fncvals; //#5985 - bwipp_parseinput(); //#5985 - var _E = $k[--$j]; //#5985 - $_[$k[--$j]] = _E; //#5985 - $_.msglen = $_.msg.length; //#5986 - if (!bwipp_code128.__6044__) { //#6044 - $_ = Object.create($_); //#6044 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6028 - $_.charvals = $a([new Map, new Map, new Map]); //#6031 - for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6040 - $_.i = _2X; //#6033 - $_.encs = $get($_.charmaps, $_.i); //#6034 - for (var _2b = 0; _2b <= 2; _2b += 1) { //#6039 - $_.j = _2b; //#6036 - var _2e = $get($_.encs, $_.j); //#6037 - $k[$j++] = _2e; //#6037 - if ($eq($type(_2e), 'stringtype')) { //#6037 - var _2h = $get($k[--$j], 0); //#6037 - $k[$j++] = _2h; //#6037 - } //#6037 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6038 - } //#6038 - } //#6038 - $_.seta = $get($_.charvals, 0); //#6041 - $_.setb = $get($_.charvals, 1); //#6042 - $_.setc = $get($_.charvals, 2); //#6043 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6043 - bwipp_code128.__6044__ = 1; //#6043 - $_ = Object.getPrototypeOf($_); //#6043 - } //#6043 - $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6047 - $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6047 - $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6048 - $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6048 - $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6049 - $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6049 - if ($_.raw) { //#6051 - $_.encoding = "raw"; //#6051 - } //#6051 - if ($eq($_.encoding, "raw")) { //#6065 - $_.cws = $a($_.barcode.length); //#6054 - $_.i = 0; //#6055 - $_.j = 0; //#6055 - for (;;) { //#6062 - if ($_.i == $_.barcode.length) { //#6057 - break; //#6057 - } //#6057 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6058 - $put($_.cws, $_.j, $_.cw); //#6059 - $_.i = $_.i + 4; //#6060 - $_.j = $_.j + 1; //#6061 - } //#6061 - $_.cws = $geti($_.cws, 0, $_.j); //#6063 - $_.text = ""; //#6064 - } //#6064 - if ($eq($_.encoding, "auto")) { //#6290 - $_.text = $s($_.msglen); //#6069 - for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6073 - $_.i = _3k; //#6071 - var _3p = $get($_.msg, $_.i); //#6072 - $k[$j++] = $_.text; //#6072 - $k[$j++] = $_.i; //#6072 - $k[$j++] = _3p; //#6072 - if (_3p < 0) { //#6072 - $j--; //#6072 - $k[$j++] = 32; //#6072 - } //#6072 - var _3q = $k[--$j]; //#6072 - var _3r = $k[--$j]; //#6072 - $put($k[--$j], _3r, _3q); //#6072 - } //#6072 - $k[$j++] = Infinity; //#6076 - for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6076 - $k[$j++] = 0; //#6076 - } //#6076 - $k[$j++] = 0; //#6076 - $_.numSA = $a(); //#6076 - $k[$j++] = Infinity; //#6077 - for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6077 - $k[$j++] = 0; //#6077 - } //#6077 - $k[$j++] = 0; //#6077 - $_.numEA = $a(); //#6077 - for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6087 - $_.i = _42; //#6079 - if ($get($_.msg, $_.i) >= 0) { //#6086 - if ($get($_.msg, $_.i) >= 128) { //#6084 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6082 - } else { //#6084 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6084 - } //#6084 - } //#6084 - } //#6084 - $_.ea = false; //#6090 - $_.msgtmp = $a([]); //#6090 - for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6105 - $_.i = _4M; //#6092 - $_.c = $get($_.msg, $_.i); //#6093 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6103 - if ($_.ea) { //#6095 - $k[$j++] = $_.numSA; //#6095 - } else { //#6095 - $k[$j++] = $_.numEA; //#6095 - } //#6095 - var _4Y = $get($k[--$j], $_.i); //#6095 - var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6096 - if (_4Y < _4b) { //#6101 - $k[$j++] = Infinity; //#6098 - $aload($_.msgtmp); //#6098 - $k[$j++] = $_.fn4; //#6098 - $_.msgtmp = $a(); //#6098 - } else { //#6101 - $k[$j++] = Infinity; //#6100 - $aload($_.msgtmp); //#6100 - $k[$j++] = $_.fn4; //#6100 - $k[$j++] = $_.fn4; //#6100 - $_.msgtmp = $a(); //#6100 - $_.ea = !$_.ea; //#6101 - } //#6101 - } //#6101 - $k[$j++] = Infinity; //#6104 - $aload($_.msgtmp); //#6104 - if ($_.c >= 0) { //#6104 - $k[$j++] = $_.c & 127; //#6104 - } else { //#6104 - $k[$j++] = $_.c; //#6104 - } //#6104 - $_.msgtmp = $a(); //#6104 - } //#6104 - $_.msg = $_.msgtmp; //#6106 - $_.msglen = $_.msg.length; //#6107 + ]); //#6117 + $_.fncvals = _B; //#6118 + $k[$j++] = 'msg'; //#6119 + $k[$j++] = $_.barcode; //#6119 + $k[$j++] = $_.fncvals; //#6119 + bwipp_parseinput(); //#6119 + var _E = $k[--$j]; //#6119 + $_[$k[--$j]] = _E; //#6119 + $_.msglen = $_.msg.length; //#6120 + if (!bwipp_code128.__6178__) { //#6178 + $_ = Object.create($_); //#6178 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stb, $_.stb, $_.stb]), $a([$_.stc, $_.stc, $_.stc]), $a([$_.stp, $_.stp, $_.stp])]); //#6162 + $_.charvals = $a([new Map, new Map, new Map]); //#6165 + for (var _2X = 0, _2W = $_.charmaps.length - 1; _2X <= _2W; _2X += 1) { //#6174 + $_.i = _2X; //#6167 + $_.encs = $get($_.charmaps, $_.i); //#6168 + for (var _2b = 0; _2b <= 2; _2b += 1) { //#6173 + $_.j = _2b; //#6170 + var _2e = $get($_.encs, $_.j); //#6171 + $k[$j++] = _2e; //#6171 + if ($eq($type(_2e), 'stringtype')) { //#6171 + var _2h = $get($k[--$j], 0); //#6171 + $k[$j++] = _2h; //#6171 + } //#6171 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#6172 + } //#6172 + } //#6172 + $_.seta = $get($_.charvals, 0); //#6175 + $_.setb = $get($_.charvals, 1); //#6176 + $_.setc = $get($_.charvals, 2); //#6177 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6177 + bwipp_code128.__6178__ = 1; //#6177 + $_ = Object.getPrototypeOf($_); //#6177 + } //#6177 + $put($_.seta, $_.lka, $get($_.seta, $_.swb)); //#6181 + $put($_.seta, $_.lkc, $get($_.seta, $_.swc)); //#6181 + $put($_.setb, $_.lka, $get($_.setb, $_.swc)); //#6182 + $put($_.setb, $_.lkc, $get($_.setb, $_.swa)); //#6182 + $put($_.setc, $_.lka, $get($_.setc, $_.swa)); //#6183 + $put($_.setc, $_.lkc, $get($_.setc, $_.swb)); //#6183 + if ($_.raw) { //#6185 + $_.encoding = "raw"; //#6185 + } //#6185 + if ($eq($_.encoding, "raw")) { //#6199 + $_.cws = $a($_.barcode.length); //#6188 + $_.i = 0; //#6189 + $_.j = 0; //#6189 + for (;;) { //#6196 + if ($_.i == $_.barcode.length) { //#6191 + break; //#6191 + } //#6191 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#6192 + $put($_.cws, $_.j, $_.cw); //#6193 + $_.i = $_.i + 4; //#6194 + $_.j = $_.j + 1; //#6195 + } //#6195 + $_.cws = $geti($_.cws, 0, $_.j); //#6197 + $_.text = ""; //#6198 + } //#6198 + if ($eq($_.encoding, "auto")) { //#6424 + $_.text = $s($_.msglen); //#6203 + for (var _3k = 0, _3j = $_.msglen - 1; _3k <= _3j; _3k += 1) { //#6207 + $_.i = _3k; //#6205 + var _3p = $get($_.msg, $_.i); //#6206 + $k[$j++] = $_.text; //#6206 + $k[$j++] = $_.i; //#6206 + $k[$j++] = _3p; //#6206 + if (_3p < 0) { //#6206 + $j--; //#6206 + $k[$j++] = 32; //#6206 + } //#6206 + var _3q = $k[--$j]; //#6206 + var _3r = $k[--$j]; //#6206 + $put($k[--$j], _3r, _3q); //#6206 + } //#6206 + $k[$j++] = Infinity; //#6210 + for (var _3u = 0, _3v = $_.msglen; _3u < _3v; _3u++) { //#6210 + $k[$j++] = 0; //#6210 + } //#6210 + $k[$j++] = 0; //#6210 + $_.numSA = $a(); //#6210 + $k[$j++] = Infinity; //#6211 + for (var _3y = 0, _3z = $_.msglen; _3y < _3z; _3y++) { //#6211 + $k[$j++] = 0; //#6211 + } //#6211 + $k[$j++] = 0; //#6211 + $_.numEA = $a(); //#6211 + for (var _42 = $_.msglen - 1; _42 >= 0; _42 -= 1) { //#6221 + $_.i = _42; //#6213 + if ($get($_.msg, $_.i) >= 0) { //#6220 + if ($get($_.msg, $_.i) >= 128) { //#6218 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#6216 + } else { //#6218 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#6218 + } //#6218 + } //#6218 + } //#6218 + $_.ea = false; //#6224 + $_.msgtmp = $a([]); //#6224 + for (var _4M = 0, _4L = $_.msglen - 1; _4M <= _4L; _4M += 1) { //#6239 + $_.i = _4M; //#6226 + $_.c = $get($_.msg, $_.i); //#6227 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#6237 + if ($_.ea) { //#6229 + $k[$j++] = $_.numSA; //#6229 + } else { //#6229 + $k[$j++] = $_.numEA; //#6229 + } //#6229 + var _4Y = $get($k[--$j], $_.i); //#6229 + var _4b = ($f(_4Y + $_.i) == $_.msglen) ? 3 : 5; //#6230 + if (_4Y < _4b) { //#6235 + $k[$j++] = Infinity; //#6232 + $aload($_.msgtmp); //#6232 + $k[$j++] = $_.fn4; //#6232 + $_.msgtmp = $a(); //#6232 + } else { //#6235 + $k[$j++] = Infinity; //#6234 + $aload($_.msgtmp); //#6234 + $k[$j++] = $_.fn4; //#6234 + $k[$j++] = $_.fn4; //#6234 + $_.msgtmp = $a(); //#6234 + $_.ea = !$_.ea; //#6235 + } //#6235 + } //#6235 + $k[$j++] = Infinity; //#6238 + $aload($_.msgtmp); //#6238 + if ($_.c >= 0) { //#6238 + $k[$j++] = $_.c & 127; //#6238 + } else { //#6238 + $k[$j++] = $_.c; //#6238 + } //#6238 + $_.msgtmp = $a(); //#6238 + } //#6238 + $_.msg = $_.msgtmp; //#6240 + $_.msglen = $_.msg.length; //#6241 $_.numsscr = function() { - $_.n = 0; //#6111 - $_.s = 0; //#6111 - $_.p = $k[--$j]; //#6112 - for (;;) { //#6125 - if ($_.p >= $_.msglen) { //#6113 - break; //#6113 - } //#6113 - var _4w = $get($_.msg, $_.p); //#6114 - var _4y = $get($_.setc, _4w) !== undefined; //#6115 - $k[$j++] = _4w; //#6115 - if (!_4y) { //#6115 - $j--; //#6115 - break; //#6115 - } //#6115 - var _4z = $k[--$j]; //#6116 - $k[$j++] = _4z; //#6121 - if (_4z <= -1) { //#6120 - var _51 = $k[--$j]; //#6118 - if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6118 - $_.s = $_.s + 1; //#6118 - } else { //#6118 - break; //#6118 - } //#6118 - } else { //#6120 - $j--; //#6120 - } //#6120 - $_.n = $_.n + 1; //#6122 - $_.s = $_.s + 1; //#6123 - $_.p = $f($_.p + 1); //#6124 - } //#6124 - $k[$j++] = $_.n; //#6126 - $k[$j++] = $_.s; //#6126 - }; //#6126 + $_.n = 0; //#6245 + $_.s = 0; //#6245 + $_.p = $k[--$j]; //#6246 + for (;;) { //#6259 + if ($_.p >= $_.msglen) { //#6247 + break; //#6247 + } //#6247 + var _4w = $get($_.msg, $_.p); //#6248 + var _4y = $get($_.setc, _4w) !== undefined; //#6249 + $k[$j++] = _4w; //#6249 + if (!_4y) { //#6249 + $j--; //#6249 + break; //#6249 + } //#6249 + var _4z = $k[--$j]; //#6250 + $k[$j++] = _4z; //#6255 + if (_4z <= -1) { //#6254 + var _51 = $k[--$j]; //#6252 + if ((_51 == $_.fn1) && (($_.s % 2) == 0)) { //#6252 + $_.s = $_.s + 1; //#6252 + } else { //#6252 + break; //#6252 + } //#6252 + } else { //#6254 + $j--; //#6254 + } //#6254 + $_.n = $_.n + 1; //#6256 + $_.s = $_.s + 1; //#6257 + $_.p = $f($_.p + 1); //#6258 + } //#6258 + $k[$j++] = $_.n; //#6260 + $k[$j++] = $_.s; //#6260 + }; //#6260 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6131 - $_.j = $_.j + 1; //#6132 - }; //#6132 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#6265 + $_.j = $_.j + 1; //#6266 + }; //#6266 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6135 - $_.j = $_.j + 1; //#6136 - }; //#6136 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#6269 + $_.j = $_.j + 1; //#6270 + }; //#6270 $_.encc = function() { - var _5L = $k[--$j]; //#6139 - $k[$j++] = _5L; //#6143 - if ($ne($type(_5L), 'arraytype')) { //#6142 - var _5P = $get($_.setc, $k[--$j]); //#6140 - $k[$j++] = _5P; //#6140 - } else { //#6142 - $aload($k[--$j]); //#6142 - var _5R = $k[--$j]; //#6142 - var _5S = $k[--$j]; //#6142 - $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6142 - } //#6142 - $put($_.cws, $_.j, $k[--$j]); //#6144 - $_.j = $_.j + 1; //#6145 - }; //#6145 + var _5L = $k[--$j]; //#6273 + $k[$j++] = _5L; //#6277 + if ($ne($type(_5L), 'arraytype')) { //#6276 + var _5P = $get($_.setc, $k[--$j]); //#6274 + $k[$j++] = _5P; //#6274 + } else { //#6276 + $aload($k[--$j]); //#6276 + var _5R = $k[--$j]; //#6276 + var _5S = $k[--$j]; //#6276 + $k[$j++] = $f($f(_5R - 48) + ($f(_5S - 48) * 10)); //#6276 + } //#6276 + $put($_.cws, $_.j, $k[--$j]); //#6278 + $_.j = $_.j + 1; //#6279 + }; //#6279 $_.anotb = function() { - var _5X = $k[--$j]; //#6149 - var _5Z = $get($_.seta, _5X) !== undefined; //#6149 - var _5b = $get($_.setb, _5X) !== undefined; //#6149 - $k[$j++] = _5Z && (!_5b); //#6149 - }; //#6149 + var _5X = $k[--$j]; //#6283 + var _5Z = $get($_.seta, _5X) !== undefined; //#6283 + var _5b = $get($_.setb, _5X) !== undefined; //#6283 + $k[$j++] = _5Z && (!_5b); //#6283 + }; //#6283 $_.bnota = function() { - var _5c = $k[--$j]; //#6150 - var _5e = $get($_.setb, _5c) !== undefined; //#6150 - var _5g = $get($_.seta, _5c) !== undefined; //#6150 - $k[$j++] = _5e && (!_5g); //#6150 - }; //#6150 - $k[$j++] = Infinity; //#6153 - for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6153 - $k[$j++] = 0; //#6153 - } //#6153 - $k[$j++] = 9999; //#6153 - $_.nextanotb = $a(); //#6153 - $k[$j++] = Infinity; //#6154 - for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6154 - $k[$j++] = 0; //#6154 - } //#6154 - $k[$j++] = 9999; //#6154 - $_.nextbnota = $a(); //#6154 - for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6167 - $_.i = _5q; //#6156 - $k[$j++] = $get($_.msg, $_.i); //#6157 - $_.anotb(); //#6157 - if ($k[--$j]) { //#6160 - $put($_.nextanotb, $_.i, 0); //#6158 - } else { //#6160 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6160 - } //#6160 - $k[$j++] = $get($_.msg, $_.i); //#6162 - $_.bnota(); //#6162 - if ($k[--$j]) { //#6165 - $put($_.nextbnota, $_.i, 0); //#6163 - } else { //#6165 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6165 - } //#6165 - } //#6165 + var _5c = $k[--$j]; //#6284 + var _5e = $get($_.setb, _5c) !== undefined; //#6284 + var _5g = $get($_.seta, _5c) !== undefined; //#6284 + $k[$j++] = _5e && (!_5g); //#6284 + }; //#6284 + $k[$j++] = Infinity; //#6287 + for (var _5i = 0, _5j = $_.msg.length; _5i < _5j; _5i++) { //#6287 + $k[$j++] = 0; //#6287 + } //#6287 + $k[$j++] = 9999; //#6287 + $_.nextanotb = $a(); //#6287 + $k[$j++] = Infinity; //#6288 + for (var _5m = 0, _5n = $_.msg.length; _5m < _5n; _5m++) { //#6288 + $k[$j++] = 0; //#6288 + } //#6288 + $k[$j++] = 9999; //#6288 + $_.nextbnota = $a(); //#6288 + for (var _5q = $_.msg.length - 1; _5q >= 0; _5q -= 1) { //#6301 + $_.i = _5q; //#6290 + $k[$j++] = $get($_.msg, $_.i); //#6291 + $_.anotb(); //#6291 + if ($k[--$j]) { //#6294 + $put($_.nextanotb, $_.i, 0); //#6292 + } else { //#6294 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#6294 + } //#6294 + $k[$j++] = $get($_.msg, $_.i); //#6296 + $_.bnota(); //#6296 + if ($k[--$j]) { //#6299 + $put($_.nextbnota, $_.i, 0); //#6297 + } else { //#6299 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#6299 + } //#6299 + } //#6299 $_.abeforeb = function() { - var _6D = $k[--$j]; //#6170 - $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6170 - }; //#6170 + var _6D = $k[--$j]; //#6304 + $k[$j++] = $lt($get($_.nextanotb, _6D), $get($_.nextbnota, _6D)); //#6304 + }; //#6304 $_.bbeforea = function() { - var _6I = $k[--$j]; //#6171 - $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6171 - }; //#6171 - $_.cws = $a(($_.barcode.length * 2) + 3); //#6173 - $_.j = 0; //#6176 - if ($_.msglen > 0) { //#6177 - $k[$j++] = 0; //#6177 - $_.numsscr(); //#6177 - } else { //#6177 - $k[$j++] = -1; //#6177 - $k[$j++] = -1; //#6177 - } //#6177 - $_.nums = $k[--$j]; //#6177 - $_.nchars = $k[--$j]; //#6177 - for (;;) { //#6202 - if ($_.msglen == 0) { //#6183 - $k[$j++] = $_.stb; //#6180 - $_.enca(); //#6180 - $_.cset = "setb"; //#6181 - break; //#6182 - } //#6182 - if (($_.msglen == 2) && ($_.nums == 2)) { //#6188 - $k[$j++] = $_.stc; //#6185 - $_.enca(); //#6185 - $_.cset = "setc"; //#6186 - break; //#6187 - } //#6187 - if ($_.nums >= 4) { //#6193 - $k[$j++] = $_.stc; //#6190 - $_.enca(); //#6190 - $_.cset = "setc"; //#6191 - break; //#6192 - } //#6192 - $k[$j++] = 0; //#6194 - $_.abeforeb(); //#6194 - if ($k[--$j]) { //#6198 - $k[$j++] = $_.sta; //#6195 - $_.enca(); //#6195 - $_.cset = "seta"; //#6196 - break; //#6197 - } //#6197 - $k[$j++] = $_.stb; //#6199 - $_.enca(); //#6199 - $_.cset = "setb"; //#6200 - break; //#6201 - } //#6201 - $_.i = 0; //#6205 - for (;;) { //#6288 - if ($_.i == $_.msglen) { //#6206 - break; //#6206 - } //#6206 - $k[$j++] = $_.i; //#6208 - $_.numsscr(); //#6208 - $_.nums = $k[--$j]; //#6208 - $_.nchars = $k[--$j]; //#6208 - for (;;) { //#6286 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6225 - if (($_.nums % 2) == 0) { //#6223 - $k[$j++] = $_.swc; //#6215 - if ($eq($_.cset, "seta")) { //#6215 - $_.enca(); //#6215 - } else { //#6215 - $_.encb(); //#6215 - } //#6215 - $_.cset = "setc"; //#6216 - break; //#6217 - } else { //#6223 - $k[$j++] = $get($_.msg, $_.i); //#6219 - if ($eq($_.cset, "seta")) { //#6219 - $_.enca(); //#6219 - } else { //#6219 - $_.encb(); //#6219 - } //#6219 - $_.i = $_.i + 1; //#6220 - $k[$j++] = $_.swc; //#6221 - if ($eq($_.cset, "seta")) { //#6221 - $_.enca(); //#6221 - } else { //#6221 - $_.encb(); //#6221 - } //#6221 - $_.cset = "setc"; //#6222 - break; //#6223 - } //#6223 - } //#6223 - $k[$j++] = $eq($_.cset, "setb"); //#6226 - $k[$j++] = $get($_.msg, $_.i); //#6226 - $_.anotb(); //#6226 - var _72 = $k[--$j]; //#6226 - var _73 = $k[--$j]; //#6226 - if ((_73 && _72)) { //#6238 - if ($_.i < ($_.msglen - 1)) { //#6234 - $k[$j++] = $_.i + 1; //#6228 - $_.bbeforea(); //#6228 - if ($k[--$j]) { //#6233 - $k[$j++] = $_.sft; //#6229 - $_.encb(); //#6229 - $k[$j++] = $get($_.msg, $_.i); //#6230 - $_.enca(); //#6230 - $_.i = $_.i + 1; //#6231 - break; //#6232 - } //#6232 - } //#6232 - $k[$j++] = $_.swa; //#6235 - $_.encb(); //#6235 - $_.cset = "seta"; //#6236 - break; //#6237 - } //#6237 - $k[$j++] = $eq($_.cset, "seta"); //#6239 - $k[$j++] = $get($_.msg, $_.i); //#6239 - $_.bnota(); //#6239 - var _7I = $k[--$j]; //#6239 - var _7J = $k[--$j]; //#6239 - if ((_7J && _7I)) { //#6251 - if ($_.i < ($_.msglen - 1)) { //#6247 - $k[$j++] = $_.i + 1; //#6241 - $_.abeforeb(); //#6241 - if ($k[--$j]) { //#6246 - $k[$j++] = $_.sft; //#6242 - $_.enca(); //#6242 - $k[$j++] = $get($_.msg, $_.i); //#6243 - $_.encb(); //#6243 - $_.i = $_.i + 1; //#6244 - break; //#6245 - } //#6245 - } //#6245 - $k[$j++] = $_.swb; //#6248 - $_.enca(); //#6248 - $_.cset = "setb"; //#6249 - break; //#6250 - } //#6250 - if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6261 - $k[$j++] = $_.i; //#6253 - $_.abeforeb(); //#6253 - if ($k[--$j]) { //#6257 - $k[$j++] = $_.swa; //#6254 - $_.encc(); //#6254 - $_.cset = "seta"; //#6255 - break; //#6256 - } //#6256 - $k[$j++] = $_.swb; //#6258 - $_.encc(); //#6258 - $_.cset = "setb"; //#6259 - break; //#6260 - } //#6260 - if ($eq($_.cset, "seta")) { //#6268 - $k[$j++] = $get($_.msg, $_.i); //#6265 - $_.enca(); //#6265 - $_.i = $_.i + 1; //#6266 - break; //#6267 - } //#6267 - if ($eq($_.cset, "setb")) { //#6273 - $k[$j++] = $get($_.msg, $_.i); //#6270 - $_.encb(); //#6270 - $_.i = $_.i + 1; //#6271 - break; //#6272 - } //#6272 - if ($eq($_.cset, "setc")) { //#6283 - if ($get($_.msg, $_.i) <= -1) { //#6280 - $k[$j++] = $get($_.msg, $_.i); //#6276 - $_.encc(); //#6276 - $_.i = $_.i + 1; //#6277 - } else { //#6280 - $k[$j++] = $geti($_.msg, $_.i, 2); //#6279 - $_.encc(); //#6279 - $_.i = $_.i + 2; //#6280 - } //#6280 - break; //#6282 - } //#6282 - break; //#6285 - } //#6285 - } //#6285 - $_.cws = $geti($_.cws, 0, $_.j); //#6289 - } //#6289 - var _87 = $a($_.j + 2); //#6293 - $puti(_87, 0, $_.cws); //#6293 - $_.cws = _87; //#6293 - $_.csum = $get($_.cws, 0); //#6294 - for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6298 - $_.i = _8D; //#6296 - $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6297 - } //#6297 - $_.csum = $_.csum % 103; //#6299 - $put($_.cws, $_.j, $_.csum); //#6300 - $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6301 - var _8T = $get($_.options, 'debugcws') !== undefined; //#6303 - if (_8T) { //#6303 - $k[$j++] = 'bwipp.debugcws#6303'; //#6303 - $k[$j++] = $_.cws; //#6303 - bwipp_raiseerror(); //#6303 - } //#6303 - if (!bwipp_code128.__6325__) { //#6325 - $_ = Object.create($_); //#6325 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6324 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6324 - bwipp_code128.__6325__ = 1; //#6324 - $_ = Object.getPrototypeOf($_); //#6324 - } //#6324 - $_.sbs = $s(($_.cws.length * 6) + 1); //#6328 - for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6332 - $_.i = _8b; //#6330 - $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6331 - } //#6331 - $k[$j++] = Infinity; //#6342 - $k[$j++] = Infinity; //#6337 - var _8j = $_.sbs; //#6337 - for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6337 - $k[$j++] = $get(_8j, _8k) - 48; //#6337 - } //#6337 - var _8n = $a(); //#6337 - $k[$j++] = Infinity; //#6338 - for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6338 - $k[$j++] = $_.height; //#6338 - } //#6338 - var _8s = $a(); //#6338 - $k[$j++] = Infinity; //#6339 - for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6339 - $k[$j++] = 0; //#6339 - } //#6339 - var _8w = $a(); //#6339 - $k[$j++] = 'ren'; //#6342 - $k[$j++] = bwipp_renlinear; //#6342 - $k[$j++] = 'sbs'; //#6342 - $k[$j++] = _8n; //#6342 - $k[$j++] = 'bhs'; //#6342 - $k[$j++] = _8s; //#6342 - $k[$j++] = 'bbs'; //#6342 - $k[$j++] = _8w; //#6342 - $k[$j++] = 'txt'; //#6342 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6342 - $k[$j++] = 'textxalign'; //#6342 - $k[$j++] = "center"; //#6342 - $k[$j++] = 'opt'; //#6342 - $k[$j++] = $_.options; //#6342 - var _95 = $d(); //#6342 - $k[$j++] = _95; //#6345 - if (!$_.dontdraw) { //#6345 - bwipp_renlinear(); //#6345 - } //#6345 - $_ = Object.getPrototypeOf($_); //#6347 - $_ = Object.getPrototypeOf($_); //#6349 -} - + var _6I = $k[--$j]; //#6305 + $k[$j++] = $lt($get($_.nextbnota, _6I), $get($_.nextanotb, _6I)); //#6305 + }; //#6305 + $_.cws = $a(($_.barcode.length * 2) + 3); //#6307 + $_.j = 0; //#6310 + if ($_.msglen > 0) { //#6311 + $k[$j++] = 0; //#6311 + $_.numsscr(); //#6311 + } else { //#6311 + $k[$j++] = -1; //#6311 + $k[$j++] = -1; //#6311 + } //#6311 + $_.nums = $k[--$j]; //#6311 + $_.nchars = $k[--$j]; //#6311 + for (;;) { //#6336 + if ($_.msglen == 0) { //#6317 + $k[$j++] = $_.stb; //#6314 + $_.enca(); //#6314 + $_.cset = "setb"; //#6315 + break; //#6316 + } //#6316 + if (($_.msglen == 2) && ($_.nums == 2)) { //#6322 + $k[$j++] = $_.stc; //#6319 + $_.enca(); //#6319 + $_.cset = "setc"; //#6320 + break; //#6321 + } //#6321 + if ($_.nums >= 4) { //#6327 + $k[$j++] = $_.stc; //#6324 + $_.enca(); //#6324 + $_.cset = "setc"; //#6325 + break; //#6326 + } //#6326 + $k[$j++] = 0; //#6328 + $_.abeforeb(); //#6328 + if ($k[--$j]) { //#6332 + $k[$j++] = $_.sta; //#6329 + $_.enca(); //#6329 + $_.cset = "seta"; //#6330 + break; //#6331 + } //#6331 + $k[$j++] = $_.stb; //#6333 + $_.enca(); //#6333 + $_.cset = "setb"; //#6334 + break; //#6335 + } //#6335 + $_.i = 0; //#6339 + for (;;) { //#6422 + if ($_.i == $_.msglen) { //#6340 + break; //#6340 + } //#6340 + $k[$j++] = $_.i; //#6342 + $_.numsscr(); //#6342 + $_.nums = $k[--$j]; //#6342 + $_.nchars = $k[--$j]; //#6342 + for (;;) { //#6420 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.nums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#6359 + if (($_.nums % 2) == 0) { //#6357 + $k[$j++] = $_.swc; //#6349 + if ($eq($_.cset, "seta")) { //#6349 + $_.enca(); //#6349 + } else { //#6349 + $_.encb(); //#6349 + } //#6349 + $_.cset = "setc"; //#6350 + break; //#6351 + } else { //#6357 + $k[$j++] = $get($_.msg, $_.i); //#6353 + if ($eq($_.cset, "seta")) { //#6353 + $_.enca(); //#6353 + } else { //#6353 + $_.encb(); //#6353 + } //#6353 + $_.i = $_.i + 1; //#6354 + $k[$j++] = $_.swc; //#6355 + if ($eq($_.cset, "seta")) { //#6355 + $_.enca(); //#6355 + } else { //#6355 + $_.encb(); //#6355 + } //#6355 + $_.cset = "setc"; //#6356 + break; //#6357 + } //#6357 + } //#6357 + $k[$j++] = $eq($_.cset, "setb"); //#6360 + $k[$j++] = $get($_.msg, $_.i); //#6360 + $_.anotb(); //#6360 + var _72 = $k[--$j]; //#6360 + var _73 = $k[--$j]; //#6360 + if ((_73 && _72)) { //#6372 + if ($_.i < ($_.msglen - 1)) { //#6368 + $k[$j++] = $_.i + 1; //#6362 + $_.bbeforea(); //#6362 + if ($k[--$j]) { //#6367 + $k[$j++] = $_.sft; //#6363 + $_.encb(); //#6363 + $k[$j++] = $get($_.msg, $_.i); //#6364 + $_.enca(); //#6364 + $_.i = $_.i + 1; //#6365 + break; //#6366 + } //#6366 + } //#6366 + $k[$j++] = $_.swa; //#6369 + $_.encb(); //#6369 + $_.cset = "seta"; //#6370 + break; //#6371 + } //#6371 + $k[$j++] = $eq($_.cset, "seta"); //#6373 + $k[$j++] = $get($_.msg, $_.i); //#6373 + $_.bnota(); //#6373 + var _7I = $k[--$j]; //#6373 + var _7J = $k[--$j]; //#6373 + if ((_7J && _7I)) { //#6385 + if ($_.i < ($_.msglen - 1)) { //#6381 + $k[$j++] = $_.i + 1; //#6375 + $_.abeforeb(); //#6375 + if ($k[--$j]) { //#6380 + $k[$j++] = $_.sft; //#6376 + $_.enca(); //#6376 + $k[$j++] = $get($_.msg, $_.i); //#6377 + $_.encb(); //#6377 + $_.i = $_.i + 1; //#6378 + break; //#6379 + } //#6379 + } //#6379 + $k[$j++] = $_.swb; //#6382 + $_.enca(); //#6382 + $_.cset = "setb"; //#6383 + break; //#6384 + } //#6384 + if (($eq($_.cset, "setc") && ($_.nums < 2)) && (($get($_.msg, $_.i) > -1) || ($get($_.msg, $_.i) == $_.fn4))) { //#6395 + $k[$j++] = $_.i; //#6387 + $_.abeforeb(); //#6387 + if ($k[--$j]) { //#6391 + $k[$j++] = $_.swa; //#6388 + $_.encc(); //#6388 + $_.cset = "seta"; //#6389 + break; //#6390 + } //#6390 + $k[$j++] = $_.swb; //#6392 + $_.encc(); //#6392 + $_.cset = "setb"; //#6393 + break; //#6394 + } //#6394 + if ($eq($_.cset, "seta")) { //#6402 + $k[$j++] = $get($_.msg, $_.i); //#6399 + $_.enca(); //#6399 + $_.i = $_.i + 1; //#6400 + break; //#6401 + } //#6401 + if ($eq($_.cset, "setb")) { //#6407 + $k[$j++] = $get($_.msg, $_.i); //#6404 + $_.encb(); //#6404 + $_.i = $_.i + 1; //#6405 + break; //#6406 + } //#6406 + if ($eq($_.cset, "setc")) { //#6417 + if ($get($_.msg, $_.i) <= -1) { //#6414 + $k[$j++] = $get($_.msg, $_.i); //#6410 + $_.encc(); //#6410 + $_.i = $_.i + 1; //#6411 + } else { //#6414 + $k[$j++] = $geti($_.msg, $_.i, 2); //#6413 + $_.encc(); //#6413 + $_.i = $_.i + 2; //#6414 + } //#6414 + break; //#6416 + } //#6416 + break; //#6419 + } //#6419 + } //#6419 + $_.cws = $geti($_.cws, 0, $_.j); //#6423 + } //#6423 + var _87 = $a($_.j + 2); //#6427 + $puti(_87, 0, $_.cws); //#6427 + $_.cws = _87; //#6427 + $_.csum = $get($_.cws, 0); //#6428 + for (var _8D = 1, _8C = $_.j - 1; _8D <= _8C; _8D += 1) { //#6432 + $_.i = _8D; //#6430 + $_.csum = $f($_.csum + ($get($_.cws, $_.i) * $_.i)); //#6431 + } //#6431 + $_.csum = $_.csum % 103; //#6433 + $put($_.cws, $_.j, $_.csum); //#6434 + $put($_.cws, $_.j + 1, $get($_.seta, $_.stp)); //#6435 + var _8T = $get($_.options, 'debugcws') !== undefined; //#6437 + if (_8T) { //#6437 + $k[$j++] = 'bwipp.debugcws#6437'; //#6437 + $k[$j++] = $_.cws; //#6437 + bwipp_raiseerror(); //#6437 + } //#6437 + if (!bwipp_code128.__6459__) { //#6459 + $_ = Object.create($_); //#6459 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#6458 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code128.$ctx[id] = $_[id]); //#6458 + bwipp_code128.__6459__ = 1; //#6458 + $_ = Object.getPrototypeOf($_); //#6458 + } //#6458 + $_.sbs = $s(($_.cws.length * 6) + 1); //#6462 + for (var _8b = 0, _8a = $_.cws.length - 1; _8b <= _8a; _8b += 1) { //#6466 + $_.i = _8b; //#6464 + $puti($_.sbs, $_.i * 6, $get($_.encs, $get($_.cws, $_.i))); //#6465 + } //#6465 + $k[$j++] = Infinity; //#6469 + $k[$j++] = Infinity; //#6471 + var _8j = $_.sbs; //#6471 + for (var _8k = 0, _8l = _8j.length; _8k < _8l; _8k++) { //#6471 + $k[$j++] = $get(_8j, _8k) - 48; //#6471 + } //#6471 + var _8n = $a(); //#6471 + $k[$j++] = Infinity; //#6472 + for (var _8p = 0, _8q = ~~(($_.sbs.length + 1) / 2); _8p < _8q; _8p++) { //#6472 + $k[$j++] = $_.height; //#6472 + } //#6472 + var _8s = $a(); //#6472 + $k[$j++] = Infinity; //#6473 + for (var _8u = 0, _8v = ~~(($_.sbs.length + 1) / 2); _8u < _8v; _8u++) { //#6473 + $k[$j++] = 0; //#6473 + } //#6473 + var _8w = $a(); //#6473 + $k[$j++] = 'ren'; //#6476 + $k[$j++] = bwipp_renlinear; //#6476 + $k[$j++] = 'sbs'; //#6476 + $k[$j++] = _8n; //#6476 + $k[$j++] = 'bhs'; //#6476 + $k[$j++] = _8s; //#6476 + $k[$j++] = 'bbs'; //#6476 + $k[$j++] = _8w; //#6476 + $k[$j++] = 'txt'; //#6476 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#6476 + $k[$j++] = 'textxalign'; //#6476 + $k[$j++] = "center"; //#6476 + $k[$j++] = 'opt'; //#6476 + $k[$j++] = $_.options; //#6476 + var _95 = $d(); //#6476 + $k[$j++] = _95; //#6479 + if (!$_.dontdraw) { //#6479 + bwipp_renlinear(); //#6479 + } //#6479 + $_ = Object.getPrototypeOf($_); //#6481 + $_ = Object.getPrototypeOf($_); //#6483 +} //bwipp_code128 function bwipp_gs1_128() { - $_ = Object.create($_); //#6380 - $_.dontdraw = false; //#6383 - $_.includetext = false; //#6384 - $_.textfont = "OCR-B"; //#6385 - $_.textsize = 10; //#6386 - $_.textxoffset = 0; //#6387 - $_.textyoffset = -8; //#6388 - $_.height = 0.5; //#6389 - $_.linkagea = false; //#6390 - $_.linkagec = false; //#6391 - $_.parse = false; //#6392 - $_.dontlint = false; //#6393 - $_.lintreqs = false; //#6394 - $k[$j++] = $_; //#6396 - bwipp_processoptions(); //#6396 - $_.options = $k[--$j]; //#6396 - $_.barcode = $k[--$j]; //#6397 - if ($_.linkagea && $_.linkagec) { //#6401 - $k[$j++] = 'bwipp.gs1128badLinkage#6400'; //#6400 - $k[$j++] = "linkagea and linkagec cannot be used together"; //#6400 - bwipp_raiseerror(); //#6400 - } //#6400 - $_.text = $_.barcode; //#6403 - $k[$j++] = $_.barcode; //#6405 - $k[$j++] = 'ai'; //#6405 - bwipp_gs1process(); //#6405 - $_.fncs = $k[--$j]; //#6406 - $_.vals = $k[--$j]; //#6407 - $_.ais = $k[--$j]; //#6408 - $_.fnc1 = -1; //#6411 - $_.c128 = $a([$_.fnc1]); //#6412 - for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6428 - $_.i = _D; //#6414 - $_.ai = $get($_.ais, $_.i); //#6415 - $_.val = $get($_.vals, $_.i); //#6416 - var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6417 - $puti(_N, 0, $_.c128); //#6418 - $k[$j++] = _N; //#6419 - $k[$j++] = _N; //#6419 - $k[$j++] = $_.c128.length; //#6419 - $k[$j++] = $_.ai; //#6419 - $k[$j++] = Infinity; //#6419 - var _R = $k[--$j]; //#6419 - var _S = $k[--$j]; //#6419 - $k[$j++] = _R; //#6419 - $forall(_S); //#6419 - var _T = $a(); //#6419 - var _U = $k[--$j]; //#6419 - $puti($k[--$j], _U, _T); //#6419 - var _W = $k[--$j]; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = _W; //#6420 - $k[$j++] = $_.c128.length + $_.ai.length; //#6420 - $k[$j++] = $_.val; //#6420 - $k[$j++] = Infinity; //#6420 - var _a = $k[--$j]; //#6420 - var _b = $k[--$j]; //#6420 - $k[$j++] = _a; //#6420 - $forall(_b); //#6420 - var _c = $a(); //#6420 - var _d = $k[--$j]; //#6420 - $puti($k[--$j], _d, _c); //#6420 - $_.c128 = $k[--$j]; //#6421 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6427 - var _m = $a($_.c128.length + 1); //#6423 - $puti(_m, 0, $_.c128); //#6424 - $put(_m, $_.c128.length, $_.fnc1); //#6425 - $_.c128 = _m; //#6426 - } //#6426 - } //#6426 - $_.barcode = $s(($_.c128.length + 1) * 5); //#6431 - $_.i = 0; //#6432 - $_.j = 0; //#6432 - for (;;) { //#6442 - if ($_.i == $_.c128.length) { //#6433 - break; //#6433 - } //#6433 - var _w = $get($_.c128, $_.i); //#6434 - $k[$j++] = _w; //#6439 - if (_w == $_.fnc1) { //#6438 - $j--; //#6435 - $puti($_.barcode, $_.j, "^FNC1"); //#6435 - $_.j = $_.j + 4; //#6436 - } else { //#6438 - $put($_.barcode, $_.j, $k[--$j]); //#6438 - } //#6438 - $_.i = $_.i + 1; //#6440 - $_.j = $_.j + 1; //#6441 - } //#6441 - if ($_.linkagea || $_.linkagec) { //#6446 - $k[$j++] = $_.barcode; //#6444 - $k[$j++] = $_.j; //#6444 - if ($_.linkagea) { //#6444 - $k[$j++] = "^LNKA"; //#6444 - } else { //#6444 - $k[$j++] = "^LNKC"; //#6444 - } //#6444 - var _1B = $k[--$j]; //#6444 - var _1C = $k[--$j]; //#6444 - $puti($k[--$j], _1C, _1B); //#6444 - $_.j = $_.j + 5; //#6445 - } //#6445 - $_.barcode = $geti($_.barcode, 0, $_.j); //#6447 - delete $_.options["parse"]; //#6450 - $put($_.options, "height", $_.height); //#6451 - $put($_.options, "dontdraw", true); //#6452 - $put($_.options, "parsefnc", true); //#6453 - $k[$j++] = 'args'; //#6454 - $k[$j++] = $_.barcode; //#6454 - $k[$j++] = $_.options; //#6454 - bwipp_code128(); //#6454 - var _1P = $k[--$j]; //#6454 - $_[$k[--$j]] = _1P; //#6454 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6456 - $put($_.args, "textxalign", "center"); //#6457 - $put($_.args, "opt", $_.options); //#6458 - $k[$j++] = $_.args; //#6461 - if (!$_.dontdraw) { //#6461 - bwipp_renlinear(); //#6461 - } //#6461 - $_ = Object.getPrototypeOf($_); //#6463 -} - + $_ = Object.create($_); //#6514 + $_.dontdraw = false; //#6517 + $_.includetext = false; //#6518 + $_.textfont = "OCR-B"; //#6519 + $_.textsize = 10; //#6520 + $_.textxoffset = 0; //#6521 + $_.textyoffset = -8; //#6522 + $_.height = 0.5; //#6523 + $_.linkagea = false; //#6524 + $_.linkagec = false; //#6525 + $_.parse = false; //#6526 + $_.dontlint = false; //#6527 + $_.lintreqs = false; //#6528 + $k[$j++] = $_; //#6530 + bwipp_processoptions(); //#6530 + $_.options = $k[--$j]; //#6530 + $_.barcode = $k[--$j]; //#6531 + if ($_.linkagea && $_.linkagec) { //#6535 + $k[$j++] = 'bwipp.gs1128badLinkage#6534'; //#6534 + $k[$j++] = "linkagea and linkagec cannot be used together"; //#6534 + bwipp_raiseerror(); //#6534 + } //#6534 + $_.text = $_.barcode; //#6537 + $k[$j++] = $_.barcode; //#6539 + $k[$j++] = 'ai'; //#6539 + bwipp_gs1process(); //#6539 + $_.fncs = $k[--$j]; //#6540 + $_.vals = $k[--$j]; //#6541 + $_.ais = $k[--$j]; //#6542 + $_.fnc1 = -1; //#6545 + $_.c128 = $a([$_.fnc1]); //#6546 + for (var _D = 0, _C = $_.ais.length - 1; _D <= _C; _D += 1) { //#6562 + $_.i = _D; //#6548 + $_.ai = $get($_.ais, $_.i); //#6549 + $_.val = $get($_.vals, $_.i); //#6550 + var _N = $a(($_.c128.length + $_.ai.length) + $_.val.length); //#6551 + $puti(_N, 0, $_.c128); //#6552 + $k[$j++] = _N; //#6553 + $k[$j++] = _N; //#6553 + $k[$j++] = $_.c128.length; //#6553 + $k[$j++] = $_.ai; //#6553 + $k[$j++] = Infinity; //#6553 + var _R = $k[--$j]; //#6553 + var _S = $k[--$j]; //#6553 + $k[$j++] = _R; //#6553 + $forall(_S); //#6553 + var _T = $a(); //#6553 + var _U = $k[--$j]; //#6553 + $puti($k[--$j], _U, _T); //#6553 + var _W = $k[--$j]; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = _W; //#6554 + $k[$j++] = $_.c128.length + $_.ai.length; //#6554 + $k[$j++] = $_.val; //#6554 + $k[$j++] = Infinity; //#6554 + var _a = $k[--$j]; //#6554 + var _b = $k[--$j]; //#6554 + $k[$j++] = _a; //#6554 + $forall(_b); //#6554 + var _c = $a(); //#6554 + var _d = $k[--$j]; //#6554 + $puti($k[--$j], _d, _c); //#6554 + $_.c128 = $k[--$j]; //#6555 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#6561 + var _m = $a($_.c128.length + 1); //#6557 + $puti(_m, 0, $_.c128); //#6558 + $put(_m, $_.c128.length, $_.fnc1); //#6559 + $_.c128 = _m; //#6560 + } //#6560 + } //#6560 + $_.barcode = $s(($_.c128.length + 1) * 5); //#6565 + $_.i = 0; //#6566 + $_.j = 0; //#6566 + for (;;) { //#6576 + if ($_.i == $_.c128.length) { //#6567 + break; //#6567 + } //#6567 + var _w = $get($_.c128, $_.i); //#6568 + $k[$j++] = _w; //#6573 + if (_w == $_.fnc1) { //#6572 + $j--; //#6569 + $puti($_.barcode, $_.j, "^FNC1"); //#6569 + $_.j = $_.j + 4; //#6570 + } else { //#6572 + $put($_.barcode, $_.j, $k[--$j]); //#6572 + } //#6572 + $_.i = $_.i + 1; //#6574 + $_.j = $_.j + 1; //#6575 + } //#6575 + if ($_.linkagea || $_.linkagec) { //#6580 + $k[$j++] = $_.barcode; //#6578 + $k[$j++] = $_.j; //#6578 + if ($_.linkagea) { //#6578 + $k[$j++] = "^LNKA"; //#6578 + } else { //#6578 + $k[$j++] = "^LNKC"; //#6578 + } //#6578 + var _1B = $k[--$j]; //#6578 + var _1C = $k[--$j]; //#6578 + $puti($k[--$j], _1C, _1B); //#6578 + $_.j = $_.j + 5; //#6579 + } //#6579 + $_.barcode = $geti($_.barcode, 0, $_.j); //#6581 + delete $_.options["parse"]; //#6584 + $put($_.options, "height", $_.height); //#6585 + $put($_.options, "dontdraw", true); //#6586 + $put($_.options, "parsefnc", true); //#6587 + $k[$j++] = 'args'; //#6588 + $k[$j++] = $_.barcode; //#6588 + $k[$j++] = $_.options; //#6588 + bwipp_code128(); //#6588 + var _1P = $k[--$j]; //#6588 + $_[$k[--$j]] = _1P; //#6588 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6590 + $put($_.args, "textxalign", "center"); //#6591 + $put($_.args, "opt", $_.options); //#6592 + $k[$j++] = $_.args; //#6595 + if (!$_.dontdraw) { //#6595 + bwipp_renlinear(); //#6595 + } //#6595 + $_ = Object.getPrototypeOf($_); //#6597 +} //bwipp_gs1_128 function bwipp_ean14() { - $_ = Object.create($_); //#6492 - $_.dontdraw = false; //#6495 - $_.includetext = false; //#6496 - $_.textfont = "OCR-B"; //#6497 - $_.textsize = 10; //#6498 - $_.textxoffset = 0; //#6499 - $_.textyoffset = -8; //#6500 - $_.height = 1; //#6501 - $k[$j++] = $_; //#6503 - bwipp_processoptions(); //#6503 - $_.options = $k[--$j]; //#6503 - $_.barcode = $k[--$j]; //#6504 - $_.text = $_.barcode; //#6507 - var _3 = $_.barcode; //#6508 - $k[$j++] = $s(_3.length); //#6509 - $k[$j++] = 0; //#6509 - $forall(_3, function() { //#6509 - var _5 = $k[--$j]; //#6509 - $k[$j++] = _5; //#6509 - if (_5 != 32) { //#6509 - var _6 = $k[--$j]; //#6509 - var _7 = $k[--$j]; //#6509 - var _8 = $k[--$j]; //#6509 - $put(_8, _7, _6); //#6509 - $k[$j++] = _8; //#6509 - $k[$j++] = $f(_7 + 1); //#6509 - } else { //#6509 - $j--; //#6509 - } //#6509 - }); //#6509 - var _9 = $k[--$j]; //#6510 - $_.barcode = $geti($k[--$j], 0, _9); //#6510 - $_.hasspace = $_.text.length != $_.barcode.length; //#6511 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6516 - $k[$j++] = 'bwipp.ean14badAI#6515'; //#6515 - $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6515 - bwipp_raiseerror(); //#6515 - } //#6515 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6519 - $k[$j++] = 'bwipp.ean14badLength#6518'; //#6518 - $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6518 - bwipp_raiseerror(); //#6518 - } //#6518 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6520 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6524 - var _N = $get(_K, _L); //#6524 - if ((_N < 48) || (_N > 57)) { //#6523 - $k[$j++] = 'bwipp.ean14badCharacter#6522'; //#6522 - $k[$j++] = "GS1-14 must contain only digits"; //#6522 - bwipp_raiseerror(); //#6522 - } //#6522 - } //#6522 - $_.checksum = 0; //#6527 - for (var _O = 0; _O <= 12; _O += 1) { //#6531 - $_.i = _O; //#6529 - $k[$j++] = 'checksum'; //#6530 - $k[$j++] = $_.checksum; //#6530 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6530 - if (($_.i % 2) == 0) { //#6530 - var _U = $k[--$j]; //#6530 - $k[$j++] = _U * 3; //#6530 - } //#6530 - var _V = $k[--$j]; //#6530 - var _W = $k[--$j]; //#6530 - $_[$k[--$j]] = $f(_W + _V); //#6530 - } //#6530 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6532 - if ($_.barcode.length == 18) { //#6546 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6536 - $k[$j++] = 'bwipp.ean14badCheckDigit#6535'; //#6535 - $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6535 - bwipp_raiseerror(); //#6535 - } //#6535 - } else { //#6546 - var _d = $s(18); //#6538 - $puti(_d, 0, $_.barcode); //#6539 - $put(_d, 17, $_.checksum + 48); //#6540 - $_.barcode = _d; //#6541 - var _i = $_.hasspace ? 2 : 1; //#6542 - var _j = $s($_.text.length + _i); //#6542 - $puti(_j, _j.length - 2, " "); //#6543 - $put(_j, _j.length - 1, $_.checksum + 48); //#6544 - $puti(_j, 0, $_.text); //#6545 - $_.text = _j; //#6546 - } //#6546 - $_.gtin = $geti($_.barcode, 4, 14); //#6548 - $_.barcode = $s(21); //#6551 - $puti($_.barcode, 0, "^FNC101"); //#6552 - var _r = $_.gtin; //#6553 - $puti($_.barcode, 7, _r); //#6553 - $put($_.options, "dontdraw", true); //#6556 - $put($_.options, "parsefnc", true); //#6557 - $k[$j++] = 'args'; //#6558 - $k[$j++] = $_.barcode; //#6558 - $k[$j++] = $_.options; //#6558 - bwipp_code128(); //#6558 - var _w = $k[--$j]; //#6558 - $_[$k[--$j]] = _w; //#6558 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6560 - $put($_.args, "textxalign", "center"); //#6561 - $put($_.args, "opt", $_.options); //#6562 - $k[$j++] = $_.args; //#6565 - if (!$_.dontdraw) { //#6565 - bwipp_renlinear(); //#6565 - } //#6565 - $_ = Object.getPrototypeOf($_); //#6567 -} - + $_ = Object.create($_); //#6626 + $_.dontdraw = false; //#6629 + $_.includetext = false; //#6630 + $_.textfont = "OCR-B"; //#6631 + $_.textsize = 10; //#6632 + $_.textxoffset = 0; //#6633 + $_.textyoffset = -8; //#6634 + $_.height = 1; //#6635 + $k[$j++] = $_; //#6637 + bwipp_processoptions(); //#6637 + $_.options = $k[--$j]; //#6637 + $_.barcode = $k[--$j]; //#6638 + $_.text = $_.barcode; //#6641 + var _3 = $_.barcode; //#6642 + $k[$j++] = $s(_3.length); //#6643 + $k[$j++] = 0; //#6643 + $forall(_3, function() { //#6643 + var _5 = $k[--$j]; //#6643 + $k[$j++] = _5; //#6643 + if (_5 != 32) { //#6643 + var _6 = $k[--$j]; //#6643 + var _7 = $k[--$j]; //#6643 + var _8 = $k[--$j]; //#6643 + $put(_8, _7, _6); //#6643 + $k[$j++] = _8; //#6643 + $k[$j++] = $f(_7 + 1); //#6643 + } else { //#6643 + $j--; //#6643 + } //#6643 + }); //#6643 + var _9 = $k[--$j]; //#6644 + $_.barcode = $geti($k[--$j], 0, _9); //#6644 + $_.hasspace = $_.text.length != $_.barcode.length; //#6645 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#6650 + $k[$j++] = 'bwipp.ean14badLength#6649'; //#6649 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#6649 + bwipp_raiseerror(); //#6649 + } //#6649 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#6653 + $k[$j++] = 'bwipp.ean14badAI#6652'; //#6652 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#6652 + bwipp_raiseerror(); //#6652 + } //#6652 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6654 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6658 + var _N = $get(_K, _L); //#6658 + if ((_N < 48) || (_N > 57)) { //#6657 + $k[$j++] = 'bwipp.ean14badCharacter#6656'; //#6656 + $k[$j++] = "GS1-14 must contain only digits"; //#6656 + bwipp_raiseerror(); //#6656 + } //#6656 + } //#6656 + $_.checksum = 0; //#6661 + for (var _O = 0; _O <= 12; _O += 1) { //#6665 + $_.i = _O; //#6663 + $k[$j++] = 'checksum'; //#6664 + $k[$j++] = $_.checksum; //#6664 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6664 + if (($_.i % 2) == 0) { //#6664 + var _U = $k[--$j]; //#6664 + $k[$j++] = _U * 3; //#6664 + } //#6664 + var _V = $k[--$j]; //#6664 + var _W = $k[--$j]; //#6664 + $_[$k[--$j]] = $f(_W + _V); //#6664 + } //#6664 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6666 + if ($_.barcode.length == 18) { //#6680 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#6670 + $k[$j++] = 'bwipp.ean14badCheckDigit#6669'; //#6669 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#6669 + bwipp_raiseerror(); //#6669 + } //#6669 + } else { //#6680 + var _d = $s(18); //#6672 + $puti(_d, 0, $_.barcode); //#6673 + $put(_d, 17, $_.checksum + 48); //#6674 + $_.barcode = _d; //#6675 + var _i = $_.hasspace ? 2 : 1; //#6676 + var _j = $s($_.text.length + _i); //#6676 + $puti(_j, _j.length - 2, " "); //#6677 + $put(_j, _j.length - 1, $_.checksum + 48); //#6678 + $puti(_j, 0, $_.text); //#6679 + $_.text = _j; //#6680 + } //#6680 + $_.gtin = $geti($_.barcode, 4, 14); //#6682 + $_.barcode = $s(21); //#6685 + $puti($_.barcode, 0, "^FNC101"); //#6686 + var _r = $_.gtin; //#6687 + $puti($_.barcode, 7, _r); //#6687 + $put($_.options, "dontdraw", true); //#6690 + $put($_.options, "parsefnc", true); //#6691 + $k[$j++] = 'args'; //#6692 + $k[$j++] = $_.barcode; //#6692 + $k[$j++] = $_.options; //#6692 + bwipp_code128(); //#6692 + var _w = $k[--$j]; //#6692 + $_[$k[--$j]] = _w; //#6692 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6694 + $put($_.args, "textxalign", "center"); //#6695 + $put($_.args, "opt", $_.options); //#6696 + $k[$j++] = $_.args; //#6699 + if (!$_.dontdraw) { //#6699 + bwipp_renlinear(); //#6699 + } //#6699 + $_ = Object.getPrototypeOf($_); //#6701 +} //bwipp_ean14 function bwipp_sscc18() { - $_ = Object.create($_); //#6596 - $_.dontdraw = false; //#6599 - $_.includetext = false; //#6600 - $_.textfont = "OCR-B"; //#6601 - $_.textsize = 10; //#6602 - $_.textxoffset = 0; //#6603 - $_.textyoffset = -8; //#6604 - $_.height = 1; //#6605 - $k[$j++] = $_; //#6607 - bwipp_processoptions(); //#6607 - $_.options = $k[--$j]; //#6607 - $_.barcode = $k[--$j]; //#6608 - $_.text = $_.barcode; //#6611 - var _3 = $_.barcode; //#6612 - $k[$j++] = $s(_3.length); //#6613 - $k[$j++] = 0; //#6613 - $forall(_3, function() { //#6613 - var _5 = $k[--$j]; //#6613 - $k[$j++] = _5; //#6613 - if (_5 != 32) { //#6613 - var _6 = $k[--$j]; //#6613 - var _7 = $k[--$j]; //#6613 - var _8 = $k[--$j]; //#6613 - $put(_8, _7, _6); //#6613 - $k[$j++] = _8; //#6613 - $k[$j++] = $f(_7 + 1); //#6613 - } else { //#6613 - $j--; //#6613 - } //#6613 - }); //#6613 - var _9 = $k[--$j]; //#6614 - $_.barcode = $geti($k[--$j], 0, _9); //#6614 - $_.hasspace = $_.text.length != $_.barcode.length; //#6615 - if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6620 - $k[$j++] = 'bwipp.sscc18badAI#6619'; //#6619 - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6619 - bwipp_raiseerror(); //#6619 - } //#6619 - if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6623 - $k[$j++] = 'bwipp.sscc18badLength#6622'; //#6622 - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6622 - bwipp_raiseerror(); //#6622 - } //#6622 - var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6624 - for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6628 - var _N = $get(_K, _L); //#6628 - if ((_N < 48) || (_N > 57)) { //#6627 - $k[$j++] = 'bwipp.sscc18badCharacter#6626'; //#6626 - $k[$j++] = "SSCC-18 must contain only digits"; //#6626 - bwipp_raiseerror(); //#6626 - } //#6626 - } //#6626 - $_.checksum = 0; //#6631 - for (var _O = 0; _O <= 16; _O += 1) { //#6635 - $_.i = _O; //#6633 - $k[$j++] = 'checksum'; //#6634 - $k[$j++] = $_.checksum; //#6634 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6634 - if (($_.i % 2) == 0) { //#6634 - var _U = $k[--$j]; //#6634 - $k[$j++] = _U * 3; //#6634 - } //#6634 - var _V = $k[--$j]; //#6634 - var _W = $k[--$j]; //#6634 - $_[$k[--$j]] = $f(_W + _V); //#6634 - } //#6634 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6636 - if ($_.barcode.length == 22) { //#6650 - if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6640 - $k[$j++] = 'bwipp.sscc18badCheckDigit#6639'; //#6639 - $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6639 - bwipp_raiseerror(); //#6639 - } //#6639 - } else { //#6650 - var _d = $s(22); //#6642 - $puti(_d, 0, $_.barcode); //#6643 - $put(_d, 21, $_.checksum + 48); //#6644 - $_.barcode = _d; //#6645 - var _i = $_.hasspace ? 2 : 1; //#6646 - var _j = $s($_.text.length + _i); //#6646 - $puti(_j, _j.length - 2, " "); //#6647 - $put(_j, _j.length - 1, $_.checksum + 48); //#6648 - $puti(_j, 0, $_.text); //#6649 - $_.text = _j; //#6650 - } //#6650 - $_.sscc = $geti($_.barcode, 4, 18); //#6652 - $_.barcode = $s(25); //#6655 - $puti($_.barcode, 0, "^FNC100"); //#6656 - var _r = $_.sscc; //#6657 - $puti($_.barcode, 7, _r); //#6657 - $put($_.options, "dontdraw", true); //#6660 - $put($_.options, "parsefnc", true); //#6661 - $k[$j++] = 'args'; //#6662 - $k[$j++] = $_.barcode; //#6662 - $k[$j++] = $_.options; //#6662 - bwipp_code128(); //#6662 - var _w = $k[--$j]; //#6662 - $_[$k[--$j]] = _w; //#6662 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6664 - $put($_.args, "textxalign", "center"); //#6665 - $put($_.args, "opt", $_.options); //#6666 - $k[$j++] = $_.args; //#6669 - if (!$_.dontdraw) { //#6669 - bwipp_renlinear(); //#6669 - } //#6669 - $_ = Object.getPrototypeOf($_); //#6671 -} - -function bwipp_code39() { - $_ = Object.create($_); //#6701 - $_.dontdraw = false; //#6704 - $_.includecheck = false; //#6705 - $_.validatecheck = false; //#6706 - $_.includetext = false; //#6707 - $_.includecheckintext = false; //#6708 - $_.hidestars = false; //#6709 - $_.textfont = "OCR-B"; //#6710 - $_.textsize = 10; //#6711 - $_.textyoffset = -8; //#6712 - $_.height = 1; //#6713 - $k[$j++] = $_; //#6715 - bwipp_processoptions(); //#6715 - $_.options = $k[--$j]; //#6715 - $_.barcode = $k[--$j]; //#6716 - bwipp_loadctx(bwipp_code39) //#6718 - if (!bwipp_code39.__6738__) { //#6738 - $_ = Object.create($_); //#6738 - $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6732 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6735 - $_.charvals = new Map; //#6736 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#6737 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#6737 - } //#6737 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6737 - bwipp_code39.__6738__ = 1; //#6737 - $_ = Object.getPrototypeOf($_); //#6737 - } //#6737 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#6745 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#6742 - if (!_E) { //#6744 - $k[$j++] = 'bwipp.code39badCharacter#6743'; //#6743 - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6743 - bwipp_raiseerror(); //#6743 - } //#6743 - } //#6743 - $k[$j++] = 'barlen'; //#6747 - $k[$j++] = $_.barcode.length; //#6747 - if ($_.validatecheck) { //#6747 - var _H = $k[--$j]; //#6747 - $k[$j++] = $f(_H - 1); //#6747 - } //#6747 - var _I = $k[--$j]; //#6747 - $_[$k[--$j]] = _I; //#6747 - $_.checksum = 0; //#6749 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#6753 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#6752 - } //#6752 - $_.checksum = $_.checksum % 43; //#6754 - if ($_.validatecheck) { //#6761 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6758 - $k[$j++] = 'bwipp.code39badCheckDigit#6757'; //#6757 - $k[$j++] = "Incorrect Code 39 check digit provided"; //#6757 - bwipp_raiseerror(); //#6757 - } //#6757 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6759 - $_.includecheck = true; //#6760 + $_ = Object.create($_); //#6730 + $_.dontdraw = false; //#6733 + $_.includetext = false; //#6734 + $_.textfont = "OCR-B"; //#6735 + $_.textsize = 10; //#6736 + $_.textxoffset = 0; //#6737 + $_.textyoffset = -8; //#6738 + $_.height = 1; //#6739 + $k[$j++] = $_; //#6741 + bwipp_processoptions(); //#6741 + $_.options = $k[--$j]; //#6741 + $_.barcode = $k[--$j]; //#6742 + $_.text = $_.barcode; //#6745 + var _3 = $_.barcode; //#6746 + $k[$j++] = $s(_3.length); //#6747 + $k[$j++] = 0; //#6747 + $forall(_3, function() { //#6747 + var _5 = $k[--$j]; //#6747 + $k[$j++] = _5; //#6747 + if (_5 != 32) { //#6747 + var _6 = $k[--$j]; //#6747 + var _7 = $k[--$j]; //#6747 + var _8 = $k[--$j]; //#6747 + $put(_8, _7, _6); //#6747 + $k[$j++] = _8; //#6747 + $k[$j++] = $f(_7 + 1); //#6747 + } else { //#6747 + $j--; //#6747 + } //#6747 + }); //#6747 + var _9 = $k[--$j]; //#6748 + $_.barcode = $geti($k[--$j], 0, _9); //#6748 + $_.hasspace = $_.text.length != $_.barcode.length; //#6749 + if (($_.barcode.length != 21) && ($_.barcode.length != 22)) { //#6754 + $k[$j++] = 'bwipp.sscc18badLength#6753'; //#6753 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#6753 + bwipp_raiseerror(); //#6753 + } //#6753 + if ($ne($geti($_.barcode, 0, 4), "(00)")) { //#6757 + $k[$j++] = 'bwipp.sscc18badAI#6756'; //#6756 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#6756 + bwipp_raiseerror(); //#6756 + } //#6756 + var _K = $geti($_.barcode, 4, $_.barcode.length - 4); //#6758 + for (var _L = 0, _M = _K.length; _L < _M; _L++) { //#6762 + var _N = $get(_K, _L); //#6762 + if ((_N < 48) || (_N > 57)) { //#6761 + $k[$j++] = 'bwipp.sscc18badCharacter#6760'; //#6760 + $k[$j++] = "SSCC-18 must contain only digits"; //#6760 + bwipp_raiseerror(); //#6760 + } //#6760 } //#6760 - var _f = $_.includecheck ? 3 : 2; //#6763 - $_.sbs = $s($f($_.barlen + _f) * 10); //#6763 - var _j = $_.includecheck ? 3 : 2; //#6764 - $_.txt = $a($f($_.barlen + _j)); //#6764 - $puti($_.sbs, 0, $get($_.encs, 43)); //#6767 - if (!$_.hidestars) { //#6771 - $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6769 - } else { //#6771 - $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6771 - } //#6771 - for (var _11 = 0, _10 = $f($_.barlen - 1); _11 <= _10; _11 += 1) { //#6779 - $_.i = _11; //#6775 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6776 - $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6777 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6778 - } //#6778 - if ($_.includecheck) { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6783 - if ($_.includecheckintext) { //#6787 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6785 - } else { //#6787 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6787 - } //#6787 - $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6789 - if (!$_.hidestars) { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6791 - } else { //#6793 - $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6793 - } //#6793 - } else { //#6800 - $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6796 - if (!$_.hidestars) { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6798 - } else { //#6800 - $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6800 - } //#6800 - } //#6800 - $k[$j++] = Infinity; //#6813 - $k[$j++] = Infinity; //#6807 - var _2M = $_.sbs; //#6807 - for (var _2N = 0, _2O = _2M.length; _2N < _2O; _2N++) { //#6807 - $k[$j++] = $get(_2M, _2N) - 48; //#6807 - } //#6807 - var _2Q = $a(); //#6807 - $k[$j++] = Infinity; //#6808 - for (var _2S = 0, _2T = ~~(($_.sbs.length + 1) / 2); _2S < _2T; _2S++) { //#6808 - $k[$j++] = $_.height; //#6808 - } //#6808 - var _2V = $a(); //#6808 - $k[$j++] = Infinity; //#6809 - for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#6809 - $k[$j++] = 0; //#6809 - } //#6809 - var _2Z = $a(); //#6809 - $k[$j++] = 'ren'; //#6812 - $k[$j++] = bwipp_renlinear; //#6812 - $k[$j++] = 'sbs'; //#6812 - $k[$j++] = _2Q; //#6812 - $k[$j++] = 'bhs'; //#6812 - $k[$j++] = _2V; //#6812 - $k[$j++] = 'bbs'; //#6812 - $k[$j++] = _2Z; //#6812 - if ($_.includetext) { //#6812 - $k[$j++] = 'txt'; //#6811 - $k[$j++] = $_.txt; //#6811 - } //#6811 - $k[$j++] = 'opt'; //#6813 - $k[$j++] = $_.options; //#6813 - var _2d = $d(); //#6813 - $k[$j++] = _2d; //#6816 - if (!$_.dontdraw) { //#6816 - bwipp_renlinear(); //#6816 - } //#6816 - $_ = Object.getPrototypeOf($_); //#6818 - $_ = Object.getPrototypeOf($_); //#6820 -} - + $_.checksum = 0; //#6765 + for (var _O = 0; _O <= 16; _O += 1) { //#6769 + $_.i = _O; //#6767 + $k[$j++] = 'checksum'; //#6768 + $k[$j++] = $_.checksum; //#6768 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#6768 + if (($_.i % 2) == 0) { //#6768 + var _U = $k[--$j]; //#6768 + $k[$j++] = _U * 3; //#6768 + } //#6768 + var _V = $k[--$j]; //#6768 + var _W = $k[--$j]; //#6768 + $_[$k[--$j]] = $f(_W + _V); //#6768 + } //#6768 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#6770 + if ($_.barcode.length == 22) { //#6784 + if ($get($_.barcode, 21) != ($_.checksum + 48)) { //#6774 + $k[$j++] = 'bwipp.sscc18badCheckDigit#6773'; //#6773 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#6773 + bwipp_raiseerror(); //#6773 + } //#6773 + } else { //#6784 + var _d = $s(22); //#6776 + $puti(_d, 0, $_.barcode); //#6777 + $put(_d, 21, $_.checksum + 48); //#6778 + $_.barcode = _d; //#6779 + var _i = $_.hasspace ? 2 : 1; //#6780 + var _j = $s($_.text.length + _i); //#6780 + $puti(_j, _j.length - 2, " "); //#6781 + $put(_j, _j.length - 1, $_.checksum + 48); //#6782 + $puti(_j, 0, $_.text); //#6783 + $_.text = _j; //#6784 + } //#6784 + $_.sscc = $geti($_.barcode, 4, 18); //#6786 + $_.barcode = $s(25); //#6789 + $puti($_.barcode, 0, "^FNC100"); //#6790 + var _r = $_.sscc; //#6791 + $puti($_.barcode, 7, _r); //#6791 + $put($_.options, "dontdraw", true); //#6794 + $put($_.options, "parsefnc", true); //#6795 + $k[$j++] = 'args'; //#6796 + $k[$j++] = $_.barcode; //#6796 + $k[$j++] = $_.options; //#6796 + bwipp_code128(); //#6796 + var _w = $k[--$j]; //#6796 + $_[$k[--$j]] = _w; //#6796 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#6798 + $put($_.args, "textxalign", "center"); //#6799 + $put($_.args, "opt", $_.options); //#6800 + $k[$j++] = $_.args; //#6803 + if (!$_.dontdraw) { //#6803 + bwipp_renlinear(); //#6803 + } //#6803 + $_ = Object.getPrototypeOf($_); //#6805 +} //bwipp_sscc18 +function bwipp_code39() { + $_ = Object.create($_); //#6835 + $_.dontdraw = false; //#6838 + $_.includecheck = false; //#6839 + $_.validatecheck = false; //#6840 + $_.includetext = false; //#6841 + $_.includecheckintext = false; //#6842 + $_.hidestars = false; //#6843 + $_.textfont = "OCR-B"; //#6844 + $_.textsize = 10; //#6845 + $_.textyoffset = -8; //#6846 + $_.height = 1; //#6847 + $k[$j++] = $_; //#6849 + bwipp_processoptions(); //#6849 + $_.options = $k[--$j]; //#6849 + $_.barcode = $k[--$j]; //#6850 + if ($eq($_.barcode, "")) { //#6854 + $k[$j++] = 'bwipp.code39emptyData#6853'; //#6853 + $k[$j++] = "The data must not be empty"; //#6853 + bwipp_raiseerror(); //#6853 + } //#6853 + bwipp_loadctx(bwipp_code39) //#6856 + if (!bwipp_code39.__6876__) { //#6876 + $_ = Object.create($_); //#6876 + $_.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#6870 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#6873 + $_.charvals = new Map; //#6874 + for (var _4 = 0; _4 <= 42; _4 += 1) { //#6875 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#6875 + } //#6875 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39.$ctx[id] = $_[id]); //#6875 + bwipp_code39.__6876__ = 1; //#6875 + $_ = Object.getPrototypeOf($_); //#6875 + } //#6875 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#6883 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#6880 + if (!_F) { //#6882 + $k[$j++] = 'bwipp.code39badCharacter#6881'; //#6881 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#6881 + bwipp_raiseerror(); //#6881 + } //#6881 + } //#6881 + $k[$j++] = 'barlen'; //#6885 + $k[$j++] = $_.barcode.length; //#6885 + if ($_.validatecheck) { //#6885 + var _I = $k[--$j]; //#6885 + $k[$j++] = $f(_I - 1); //#6885 + } //#6885 + var _J = $k[--$j]; //#6885 + $_[$k[--$j]] = _J; //#6885 + $_.checksum = 0; //#6887 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#6891 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _N, 1)) + $_.checksum); //#6890 + } //#6890 + $_.checksum = $_.checksum % 43; //#6892 + if ($_.validatecheck) { //#6899 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#6896 + $k[$j++] = 'bwipp.code39badCheckDigit#6895'; //#6895 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#6895 + bwipp_raiseerror(); //#6895 + } //#6895 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#6897 + $_.includecheck = true; //#6898 + } //#6898 + var _g = $_.includecheck ? 3 : 2; //#6901 + $_.sbs = $s($f($_.barlen + _g) * 10); //#6901 + var _k = $_.includecheck ? 3 : 2; //#6902 + $_.txt = $a($f($_.barlen + _k)); //#6902 + $puti($_.sbs, 0, $get($_.encs, 43)); //#6905 + if (!$_.hidestars) { //#6909 + $put($_.txt, 0, $a(["*", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6907 + } else { //#6909 + $put($_.txt, 0, $a(["", 0, $_.textyoffset, $_.textfont, $_.textsize])); //#6909 + } //#6909 + for (var _12 = 0, _11 = $f($_.barlen - 1); _12 <= _11; _12 += 1) { //#6917 + $_.i = _12; //#6913 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#6914 + $puti($_.sbs, ($_.i * 10) + 10, $get($_.encs, $_.indx)); //#6915 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i, 1), ($_.i + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6916 + } //#6916 + if ($_.includecheck) { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, $_.checksum)); //#6921 + if ($_.includecheckintext) { //#6925 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum, 1), $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6923 + } else { //#6925 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6925 + } //#6925 + $puti($_.sbs, $f(($_.barlen * 10) + 20), $get($_.encs, 43)); //#6927 + if (!$_.hidestars) { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["*", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6929 + } else { //#6931 + $put($_.txt, $f($_.barlen + 2), $a(["", $f($_.barlen + 2) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6931 + } //#6931 + } else { //#6938 + $puti($_.sbs, $f(($_.barlen * 10) + 10), $get($_.encs, 43)); //#6934 + if (!$_.hidestars) { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["*", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6936 + } else { //#6938 + $put($_.txt, $f($_.barlen + 1), $a(["", $f($_.barlen + 1) * 16, $_.textyoffset, $_.textfont, $_.textsize])); //#6938 + } //#6938 + } //#6938 + $k[$j++] = Infinity; //#6943 + $k[$j++] = Infinity; //#6945 + var _2N = $_.sbs; //#6945 + for (var _2O = 0, _2P = _2N.length; _2O < _2P; _2O++) { //#6945 + $k[$j++] = $get(_2N, _2O) - 48; //#6945 + } //#6945 + var _2R = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + for (var _2T = 0, _2U = ~~(($_.sbs.length + 1) / 2); _2T < _2U; _2T++) { //#6946 + $k[$j++] = $_.height; //#6946 + } //#6946 + var _2W = $a(); //#6946 + $k[$j++] = Infinity; //#6947 + for (var _2Y = 0, _2Z = ~~(($_.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#6947 + $k[$j++] = 0; //#6947 + } //#6947 + var _2a = $a(); //#6947 + $k[$j++] = 'ren'; //#6950 + $k[$j++] = bwipp_renlinear; //#6950 + $k[$j++] = 'sbs'; //#6950 + $k[$j++] = _2R; //#6950 + $k[$j++] = 'bhs'; //#6950 + $k[$j++] = _2W; //#6950 + $k[$j++] = 'bbs'; //#6950 + $k[$j++] = _2a; //#6950 + if ($_.includetext) { //#6950 + $k[$j++] = 'txt'; //#6949 + $k[$j++] = $_.txt; //#6949 + } //#6949 + $k[$j++] = 'opt'; //#6951 + $k[$j++] = $_.options; //#6951 + var _2e = $d(); //#6951 + $k[$j++] = _2e; //#6954 + if (!$_.dontdraw) { //#6954 + bwipp_renlinear(); //#6954 + } //#6954 + $_ = Object.getPrototypeOf($_); //#6956 + $_ = Object.getPrototypeOf($_); //#6958 +} //bwipp_code39 function bwipp_code39ext() { - $_ = Object.create($_); //#6852 - $_.dontdraw = false; //#6855 - $_.includetext = false; //#6856 - $_.parse = false; //#6857 - $k[$j++] = $_; //#6859 - bwipp_processoptions(); //#6859 - $_.options = $k[--$j]; //#6859 - $_.barcode = $k[--$j]; //#6860 - bwipp_loadctx(bwipp_code39ext) //#6862 + $_ = Object.create($_); //#6990 + $_.dontdraw = false; //#6993 + $_.includetext = false; //#6994 + $_.parse = false; //#6995 + $k[$j++] = $_; //#6997 + bwipp_processoptions(); //#6997 + $_.options = $k[--$j]; //#6997 + $_.barcode = $k[--$j]; //#6998 + bwipp_loadctx(bwipp_code39ext) //#7000 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#6868 - $_.fncvals = _3; //#6869 - $k[$j++] = 'barcode'; //#6870 - $k[$j++] = $_.barcode; //#6870 - $k[$j++] = $_.fncvals; //#6870 - bwipp_parseinput(); //#6870 - var _6 = $k[--$j]; //#6870 - $_[$k[--$j]] = _6; //#6870 - $_.barlen = $_.barcode.length; //#6871 - delete $_.options["parse"]; //#6872 - $forall($_.barcode, function() { //#6879 - if ($k[--$j] >= 128) { //#6878 - $k[$j++] = 'bwipp.code39extBadCharacter#6877'; //#6877 - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#6877 - bwipp_raiseerror(); //#6877 - } //#6877 - }); //#6877 - if (!bwipp_code39ext.__6893__) { //#6893 - $_ = Object.create($_); //#6893 - $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#6892 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#6892 - bwipp_code39ext.__6893__ = 1; //#6892 - $_ = Object.getPrototypeOf($_); //#6892 - } //#6892 - $_.newcode = $s($_.barlen * 2); //#6895 - $_.newtext = $s($_.barlen * 2); //#6896 - $_.j = 0; //#6897 - for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#6905 - $_.i = _K; //#6899 - $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#6900 - $puti($_.newcode, $_.j, $_.extchar); //#6901 - var _X = $get($_.barcode, $_.i); //#6902 - $k[$j++] = $_.newtext; //#6902 - $k[$j++] = $_.j; //#6902 - $k[$j++] = _X; //#6902 - if ((_X < 32) || (_X == 127)) { //#6902 - $j--; //#6902 - $k[$j++] = 32; //#6902 - } //#6902 - var _Y = $k[--$j]; //#6902 - var _Z = $k[--$j]; //#6902 - $put($k[--$j], _Z, _Y); //#6902 - if ($_.extchar.length != 1) { //#6903 - $put($_.newtext, $_.j + 1, 32); //#6903 - } //#6903 - $_.j = $_.j + $_.extchar.length; //#6904 - } //#6904 - $_.newcode = $geti($_.newcode, 0, $_.j); //#6906 - $_.newtext = $geti($_.newtext, 0, $_.j); //#6907 - $put($_.options, "dontdraw", true); //#6910 - $k[$j++] = 'args'; //#6911 - $k[$j++] = $_.newcode; //#6911 - $k[$j++] = $_.options; //#6911 - bwipp_code39(); //#6911 - var _p = $k[--$j]; //#6911 - $_[$k[--$j]] = _p; //#6911 - if ($_.includetext) { //#6923 - $_.txt = $get($_.args, "txt"); //#6915 - for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#6921 - $_.i = _w; //#6917 - $_.txtentry = $get($_.txt, $_.i + 1); //#6918 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#6919 - $put($_.txt, $_.i + 1, $_.txtentry); //#6920 - } //#6920 - $put($_.args, "txt", $_.txt); //#6922 - } //#6922 - $put($_.args, "opt", $_.options); //#6924 - $k[$j++] = $_.args; //#6927 - if (!$_.dontdraw) { //#6927 - bwipp_renlinear(); //#6927 - } //#6927 - $_ = Object.getPrototypeOf($_); //#6929 - $_ = Object.getPrototypeOf($_); //#6931 -} - + ]); //#7006 + $_.fncvals = _3; //#7007 + $k[$j++] = 'barcode'; //#7008 + $k[$j++] = $_.barcode; //#7008 + $k[$j++] = $_.fncvals; //#7008 + bwipp_parseinput(); //#7008 + var _6 = $k[--$j]; //#7008 + $_[$k[--$j]] = _6; //#7008 + $_.barlen = $_.barcode.length; //#7009 + delete $_.options["parse"]; //#7010 + $forall($_.barcode, function() { //#7017 + if ($k[--$j] >= 128) { //#7016 + $k[$j++] = 'bwipp.code39extBadCharacter#7015'; //#7015 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#7015 + bwipp_raiseerror(); //#7015 + } //#7015 + }); //#7015 + if (!bwipp_code39ext.__7031__) { //#7031 + $_ = Object.create($_); //#7031 + $_.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#7030 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code39ext.$ctx[id] = $_[id]); //#7030 + bwipp_code39ext.__7031__ = 1; //#7030 + $_ = Object.getPrototypeOf($_); //#7030 + } //#7030 + $_.newcode = $s($_.barlen * 2); //#7033 + $_.newtext = $s($_.barlen * 2); //#7034 + $_.j = 0; //#7035 + for (var _K = 0, _J = $_.barlen - 1; _K <= _J; _K += 1) { //#7043 + $_.i = _K; //#7037 + $_.extchar = $get($_.extencs, $get($_.barcode, $_.i)); //#7038 + $puti($_.newcode, $_.j, $_.extchar); //#7039 + var _X = $get($_.barcode, $_.i); //#7040 + $k[$j++] = $_.newtext; //#7040 + $k[$j++] = $_.j; //#7040 + $k[$j++] = _X; //#7040 + if ((_X < 32) || (_X == 127)) { //#7040 + $j--; //#7040 + $k[$j++] = 32; //#7040 + } //#7040 + var _Y = $k[--$j]; //#7040 + var _Z = $k[--$j]; //#7040 + $put($k[--$j], _Z, _Y); //#7040 + if ($_.extchar.length != 1) { //#7041 + $put($_.newtext, $_.j + 1, 32); //#7041 + } //#7041 + $_.j = $_.j + $_.extchar.length; //#7042 + } //#7042 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7044 + $_.newtext = $geti($_.newtext, 0, $_.j); //#7045 + $put($_.options, "dontdraw", true); //#7048 + $k[$j++] = 'args'; //#7049 + $k[$j++] = $_.newcode; //#7049 + $k[$j++] = $_.options; //#7049 + bwipp_code39(); //#7049 + var _p = $k[--$j]; //#7049 + $_[$k[--$j]] = _p; //#7049 + if ($_.includetext) { //#7061 + $_.txt = $get($_.args, "txt"); //#7053 + for (var _w = 0, _v = $_.newtext.length - 1; _w <= _v; _w += 1) { //#7059 + $_.i = _w; //#7055 + $_.txtentry = $get($_.txt, $_.i + 1); //#7056 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7057 + $put($_.txt, $_.i + 1, $_.txtentry); //#7058 + } //#7058 + $put($_.args, "txt", $_.txt); //#7060 + } //#7060 + $put($_.args, "opt", $_.options); //#7062 + $k[$j++] = $_.args; //#7065 + if (!$_.dontdraw) { //#7065 + bwipp_renlinear(); //#7065 + } //#7065 + $_ = Object.getPrototypeOf($_); //#7067 + $_ = Object.getPrototypeOf($_); //#7069 +} //bwipp_code39ext function bwipp_code32() { - $_ = Object.create($_); //#6960 - $_.dontdraw = false; //#6963 - $_.includetext = false; //#6964 - $_.textfont = "OCR-B"; //#6965 - $_.textsize = 10; //#6966 - $_.textyoffset = -8; //#6967 - $_.textxoffset = 0; //#6968 - $_.height = 1; //#6969 - $k[$j++] = $_; //#6971 - bwipp_processoptions(); //#6971 - $_.options = $k[--$j]; //#6971 - $_.barcode = $k[--$j]; //#6972 - if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#6977 - $k[$j++] = 'bwipp.code32badLength#6976'; //#6976 - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#6976 - bwipp_raiseerror(); //#6976 - } //#6976 - $forall($_.barcode, function() { //#6982 - var _5 = $k[--$j]; //#6979 - if ((_5 < 48) || (_5 > 57)) { //#6981 - $k[$j++] = 'bwipp.code32badCharacter#6980'; //#6980 - $k[$j++] = "Italian Pharmacode must contain only digits"; //#6980 - bwipp_raiseerror(); //#6980 - } //#6980 - }); //#6980 - $_.checksum = 0; //#6985 - for (var _6 = 0; _6 <= 7; _6 += 1) { //#6990 - $_.i = _6; //#6987 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#6988 - if (($_.i % 2) != 0) { //#6988 - var _B = $k[--$j]; //#6988 - $k[$j++] = _B * 2; //#6988 - } //#6988 - var _C = $k[--$j]; //#6988 - $k[$j++] = _C; //#6988 - if (_C > 9) { //#6988 - var _D = $k[--$j]; //#6988 - $k[$j++] = $f(_D - 9); //#6988 - } //#6988 - $_.checksum = $f($k[--$j] + $_.checksum); //#6989 - } //#6989 - $_.checksum = $_.checksum % 10; //#6991 - if ($_.barcode.length == 9) { //#6996 - if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#6995 - $k[$j++] = 'bwipp.code32badCheckDigit#6994'; //#6994 - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#6994 - bwipp_raiseerror(); //#6994 - } //#6994 - } //#6994 - var _L = $s(10); //#6997 - $puti(_L, 0, $_.barcode); //#6998 - $put(_L, 8, $f($_.checksum + 48)); //#6999 - $_.text = _L; //#7000 - $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7003 - $_.barcode = $s(6); //#7004 - for (var _S = 0; _S <= 5; _S += 1) { //#7005 - $put($_.barcode, _S, 48); //#7005 - } //#7005 - $puti($_.barcode, 6 - $_.val.length, $_.val); //#7006 - for (var _X = 0; _X <= 5; _X += 1) { //#7013 - var _Z = $get($_.barcode, _X); //#7010 - $k[$j++] = _X; //#7011 - $k[$j++] = _Z; //#7011 - $k[$j++] = _Z; //#7011 - for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7011 - if ($k[--$j] >= $get("AEIO", _a)) { //#7011 - var _e = $k[--$j]; //#7011 - $k[$j++] = $f(_e + 1); //#7011 - } //#7011 - var _f = $k[--$j]; //#7011 - $k[$j++] = _f; //#7011 - $k[$j++] = _f; //#7011 - } //#7011 - $j--; //#7011 - var _h = $k[--$j]; //#7012 - $put($_.barcode, $k[--$j], _h); //#7012 - } //#7012 - $puti($_.text, 1, $geti($_.text, 0, 9)); //#7016 - $put($_.text, 0, 65); //#7017 - $put($_.options, "dontdraw", true); //#7020 - $k[$j++] = 'args'; //#7021 - $k[$j++] = $_.barcode; //#7021 - $k[$j++] = $_.options; //#7021 - bwipp_code39(); //#7021 - var _q = $k[--$j]; //#7021 - var _r = $k[--$j]; //#7021 - $_[_r] = _q; //#7021 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7023 - $put($_.args, "textxalign", "center"); //#7024 - $put($_.args, "opt", $_.options); //#7025 - $k[$j++] = $_.args; //#7028 - if (!$_.dontdraw) { //#7028 - bwipp_renlinear(); //#7028 - } //#7028 - $_ = Object.getPrototypeOf($_); //#7030 -} - -function bwipp_pzn() { - $_ = Object.create($_); //#7059 - $_.dontdraw = false; //#7062 - $_.includetext = false; //#7063 - $_.textfont = "OCR-B"; //#7064 - $_.textsize = 10; //#7065 - $_.textyoffset = -8; //#7066 - $_.textxoffset = 0; //#7067 - $_.height = 1; //#7068 - $_.pzn8 = false; //#7069 - $k[$j++] = $_; //#7071 - bwipp_processoptions(); //#7071 - $_.options = $k[--$j]; //#7071 - $_.barcode = $k[--$j]; //#7072 - if ($_.pzn8) { //#7081 - if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7078 - $k[$j++] = 'bwipp.pzn8badLength#7077'; //#7077 - $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7077 - bwipp_raiseerror(); //#7077 - } //#7077 - } else { //#7081 - if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7082 - $k[$j++] = 'bwipp.pzn7badLength#7081'; //#7081 - $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7081 - bwipp_raiseerror(); //#7081 - } //#7081 - } //#7081 - $forall($_.barcode, function() { //#7088 - var _8 = $k[--$j]; //#7085 - if ((_8 < 48) || (_8 > 57)) { //#7087 - $k[$j++] = 'bwipp.pznBadCharacter#7086'; //#7086 - $k[$j++] = "PZN must contain only digits"; //#7086 - bwipp_raiseerror(); //#7086 - } //#7086 - }); //#7086 - var _A = $_.pzn8 ? 9 : 8; //#7091 - $_.msglen = _A; //#7091 - $_.checksum = 0; //#7092 - for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7097 - $_.i = _D; //#7094 - var _J = $_.pzn8 ? 1 : 2; //#7095 - $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7096 - } //#7096 - $_.checksum = $_.checksum % 11; //#7098 - if ($_.checksum == 10) { //#7101 - $k[$j++] = 'bwipp.pznBadInputSequence#7100'; //#7100 - $k[$j++] = "Incorrect PZN input sequence provided"; //#7100 - bwipp_raiseerror(); //#7100 - } //#7100 - if ($_.barcode.length == ($_.msglen - 1)) { //#7106 - if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7105 - $k[$j++] = 'bwipp.pznBadCheckDigit#7104'; //#7104 - $k[$j++] = "Incorrect PZN check digit provided"; //#7104 - bwipp_raiseerror(); //#7104 - } //#7104 - } //#7104 - var _U = $s($_.msglen); //#7107 - $put(_U, 0, 45); //#7108 - $puti(_U, 1, $_.barcode); //#7109 - $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7110 - $_.msg = _U; //#7111 - $put($_.options, "dontdraw", true); //#7114 - $k[$j++] = 'args'; //#7115 - $k[$j++] = $_.msg; //#7115 - $k[$j++] = $_.options; //#7115 - bwipp_code39(); //#7115 - var _b = $k[--$j]; //#7115 - $_[$k[--$j]] = _b; //#7115 - $_.text = $s($_.msglen + 5); //#7118 - $puti($_.text, 0, "PZN - "); //#7119 - $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7120 - var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7122 - $put($_.args, "txt", _r); //#7122 - $put($_.args, "textxalign", "center"); //#7123 - $put($_.args, "opt", $_.options); //#7124 - $k[$j++] = $_.args; //#7127 - if (!$_.dontdraw) { //#7127 - bwipp_renlinear(); //#7127 + $_ = Object.create($_); //#7098 + $_.dontdraw = false; //#7101 + $_.includetext = false; //#7102 + $_.textfont = "OCR-B"; //#7103 + $_.textsize = 10; //#7104 + $_.textyoffset = -8; //#7105 + $_.textxoffset = 0; //#7106 + $_.height = 1; //#7107 + $k[$j++] = $_; //#7109 + bwipp_processoptions(); //#7109 + $_.options = $k[--$j]; //#7109 + $_.barcode = $k[--$j]; //#7110 + if (($_.barcode.length != 8) && ($_.barcode.length != 9)) { //#7115 + $k[$j++] = 'bwipp.code32badLength#7114'; //#7114 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#7114 + bwipp_raiseerror(); //#7114 + } //#7114 + $forall($_.barcode, function() { //#7120 + var _5 = $k[--$j]; //#7117 + if ((_5 < 48) || (_5 > 57)) { //#7119 + $k[$j++] = 'bwipp.code32badCharacter#7118'; //#7118 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#7118 + bwipp_raiseerror(); //#7118 + } //#7118 + }); //#7118 + $_.checksum = 0; //#7123 + for (var _6 = 0; _6 <= 7; _6 += 1) { //#7128 + $_.i = _6; //#7125 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7126 + if (($_.i % 2) != 0) { //#7126 + var _B = $k[--$j]; //#7126 + $k[$j++] = _B * 2; //#7126 + } //#7126 + var _C = $k[--$j]; //#7126 + $k[$j++] = _C; //#7126 + if (_C > 9) { //#7126 + var _D = $k[--$j]; //#7126 + $k[$j++] = $f(_D - 9); //#7126 + } //#7126 + $_.checksum = $f($k[--$j] + $_.checksum); //#7127 } //#7127 - $_ = Object.getPrototypeOf($_); //#7129 -} - + $_.checksum = $_.checksum % 10; //#7129 + if ($_.barcode.length == 9) { //#7134 + if ($get($_.barcode, 8) != $f($_.checksum + 48)) { //#7133 + $k[$j++] = 'bwipp.code32badCheckDigit#7132'; //#7132 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#7132 + bwipp_raiseerror(); //#7132 + } //#7132 + } //#7132 + var _L = $s(10); //#7135 + $puti(_L, 0, $_.barcode); //#7136 + $put(_L, 8, $f($_.checksum + 48)); //#7137 + $_.text = _L; //#7138 + $_.val = $cvrs($s(6), $cvi($_.text), 32); //#7141 + $_.barcode = $s(6); //#7142 + for (var _S = 0; _S <= 5; _S += 1) { //#7143 + $put($_.barcode, _S, 48); //#7143 + } //#7143 + $puti($_.barcode, 6 - $_.val.length, $_.val); //#7144 + for (var _X = 0; _X <= 5; _X += 1) { //#7151 + var _Z = $get($_.barcode, _X); //#7148 + $k[$j++] = _X; //#7149 + $k[$j++] = _Z; //#7149 + $k[$j++] = _Z; //#7149 + for (var _a = 0, _b = "AEIO".length; _a < _b; _a++) { //#7149 + if ($k[--$j] >= $get("AEIO", _a)) { //#7149 + var _e = $k[--$j]; //#7149 + $k[$j++] = $f(_e + 1); //#7149 + } //#7149 + var _f = $k[--$j]; //#7149 + $k[$j++] = _f; //#7149 + $k[$j++] = _f; //#7149 + } //#7149 + $j--; //#7149 + var _h = $k[--$j]; //#7150 + $put($_.barcode, $k[--$j], _h); //#7150 + } //#7150 + $puti($_.text, 1, $geti($_.text, 0, 9)); //#7154 + $put($_.text, 0, 65); //#7155 + $put($_.options, "dontdraw", true); //#7158 + $k[$j++] = 'args'; //#7159 + $k[$j++] = $_.barcode; //#7159 + $k[$j++] = $_.options; //#7159 + bwipp_code39(); //#7159 + var _q = $k[--$j]; //#7159 + var _r = $k[--$j]; //#7159 + $_[_r] = _q; //#7159 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7161 + $put($_.args, "textxalign", "center"); //#7162 + $put($_.args, "opt", $_.options); //#7163 + $k[$j++] = $_.args; //#7166 + if (!$_.dontdraw) { //#7166 + bwipp_renlinear(); //#7166 + } //#7166 + $_ = Object.getPrototypeOf($_); //#7168 +} //bwipp_code32 +function bwipp_pzn() { + $_ = Object.create($_); //#7197 + $_.dontdraw = false; //#7200 + $_.includetext = false; //#7201 + $_.textfont = "OCR-B"; //#7202 + $_.textsize = 10; //#7203 + $_.textyoffset = -8; //#7204 + $_.textxoffset = 0; //#7205 + $_.height = 1; //#7206 + $_.pzn8 = false; //#7207 + $k[$j++] = $_; //#7209 + bwipp_processoptions(); //#7209 + $_.options = $k[--$j]; //#7209 + $_.barcode = $k[--$j]; //#7210 + if ($_.pzn8) { //#7219 + if (($_.barcode.length != 7) && ($_.barcode.length != 8)) { //#7216 + $k[$j++] = 'bwipp.pzn8badLength#7215'; //#7215 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#7215 + bwipp_raiseerror(); //#7215 + } //#7215 + } else { //#7219 + if (($_.barcode.length != 6) && ($_.barcode.length != 7)) { //#7220 + $k[$j++] = 'bwipp.pzn7badLength#7219'; //#7219 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#7219 + bwipp_raiseerror(); //#7219 + } //#7219 + } //#7219 + $forall($_.barcode, function() { //#7226 + var _8 = $k[--$j]; //#7223 + if ((_8 < 48) || (_8 > 57)) { //#7225 + $k[$j++] = 'bwipp.pznBadCharacter#7224'; //#7224 + $k[$j++] = "PZN must contain only digits"; //#7224 + bwipp_raiseerror(); //#7224 + } //#7224 + }); //#7224 + var _A = $_.pzn8 ? 9 : 8; //#7229 + $_.msglen = _A; //#7229 + $_.checksum = 0; //#7230 + for (var _D = 0, _C = $_.msglen - 3; _D <= _C; _D += 1) { //#7235 + $_.i = _D; //#7232 + var _J = $_.pzn8 ? 1 : 2; //#7233 + $_.checksum = $f(($f($get($_.barcode, $_.i) - 48) * ($_.i + _J)) + $_.checksum); //#7234 + } //#7234 + $_.checksum = $_.checksum % 11; //#7236 + if ($_.checksum == 10) { //#7239 + $k[$j++] = 'bwipp.pznBadInputSequence#7238'; //#7238 + $k[$j++] = "Incorrect PZN input sequence provided"; //#7238 + bwipp_raiseerror(); //#7238 + } //#7238 + if ($_.barcode.length == ($_.msglen - 1)) { //#7244 + if ($get($_.barcode, $_.msglen - 2) != $f($_.checksum + 48)) { //#7243 + $k[$j++] = 'bwipp.pznBadCheckDigit#7242'; //#7242 + $k[$j++] = "Incorrect PZN check digit provided"; //#7242 + bwipp_raiseerror(); //#7242 + } //#7242 + } //#7242 + var _U = $s($_.msglen); //#7245 + $put(_U, 0, 45); //#7246 + $puti(_U, 1, $_.barcode); //#7247 + $put(_U, $_.msglen - 1, $f($_.checksum + 48)); //#7248 + $_.msg = _U; //#7249 + $put($_.options, "dontdraw", true); //#7252 + $k[$j++] = 'args'; //#7253 + $k[$j++] = $_.msg; //#7253 + $k[$j++] = $_.options; //#7253 + bwipp_code39(); //#7253 + var _b = $k[--$j]; //#7253 + $_[$k[--$j]] = _b; //#7253 + $_.text = $s($_.msglen + 5); //#7256 + $puti($_.text, 0, "PZN - "); //#7257 + $puti($_.text, 6, $geti($_.msg, 1, $_.msglen - 1)); //#7258 + var _r = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#7260 + $put($_.args, "txt", _r); //#7260 + $put($_.args, "textxalign", "center"); //#7261 + $put($_.args, "opt", $_.options); //#7262 + $k[$j++] = $_.args; //#7265 + if (!$_.dontdraw) { //#7265 + bwipp_renlinear(); //#7265 + } //#7265 + $_ = Object.getPrototypeOf($_); //#7267 +} //bwipp_pzn function bwipp_code93() { - $_ = Object.create($_); //#7160 - $_.dontdraw = false; //#7163 - $_.includecheck = false; //#7164 - $_.includetext = false; //#7165 - $_.textfont = "OCR-B"; //#7166 - $_.textsize = 10; //#7167 - $_.textyoffset = -8; //#7168 - $_.height = 1; //#7169 - $_.parse = false; //#7170 - $_.parsefnc = false; //#7171 - $k[$j++] = $_; //#7173 - bwipp_processoptions(); //#7173 - $_.options = $k[--$j]; //#7173 - $_.barcode = $k[--$j]; //#7174 - bwipp_loadctx(bwipp_code93) //#7176 - if (!bwipp_code93.__7204__) { //#7204 - $_ = Object.create($_); //#7204 - $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7190 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7193 - $_.charvals = new Map; //#7194 - for (var _3 = 0; _3 <= 42; _3 += 1) { //#7195 - $put($_.charvals, $get($_.barchars, _3), _3); //#7195 - } //#7195 - $_.sft1 = -1; //#7197 - $_.sft2 = -2; //#7197 - $_.sft3 = -3; //#7197 - $_.sft4 = -4; //#7197 - var _7 = $_.charvals; //#7199 - $put(_7, $_.sft1, 43); //#7199 - $put($_.charvals, $_.sft2, 44); //#7200 - $put($_.charvals, $_.sft3, 45); //#7201 - $put($_.charvals, $_.sft4, 46); //#7202 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7202 - bwipp_code93.__7204__ = 1; //#7202 - $_ = Object.getPrototypeOf($_); //#7202 - } //#7202 + $_ = Object.create($_); //#7298 + $_.dontdraw = false; //#7301 + $_.includecheck = false; //#7302 + $_.includetext = false; //#7303 + $_.textfont = "OCR-B"; //#7304 + $_.textsize = 10; //#7305 + $_.textyoffset = -8; //#7306 + $_.height = 1; //#7307 + $_.parse = false; //#7308 + $_.parsefnc = false; //#7309 + $k[$j++] = $_; //#7311 + bwipp_processoptions(); //#7311 + $_.options = $k[--$j]; //#7311 + $_.barcode = $k[--$j]; //#7312 + bwipp_loadctx(bwipp_code93) //#7314 + if (!bwipp_code93.__7342__) { //#7342 + $_ = Object.create($_); //#7342 + $_.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#7328 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#7331 + $_.charvals = new Map; //#7332 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#7333 + $put($_.charvals, $get($_.barchars, _3), _3); //#7333 + } //#7333 + $_.sft1 = -1; //#7335 + $_.sft2 = -2; //#7335 + $_.sft3 = -3; //#7335 + $_.sft4 = -4; //#7335 + var _7 = $_.charvals; //#7337 + $put(_7, $_.sft1, 43); //#7337 + $put($_.charvals, $_.sft2, 44); //#7338 + $put($_.charvals, $_.sft3, 45); //#7339 + $put($_.charvals, $_.sft4, 46); //#7340 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93.$ctx[id] = $_[id]); //#7340 + bwipp_code93.__7342__ = 1; //#7340 + $_ = Object.getPrototypeOf($_); //#7340 + } //#7340 var _M = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -9750,1272 +10006,1274 @@ function bwipp_code93() { ["SFT%", $_.sft2], ["SFT/", $_.sft3], ["SFT+", $_.sft4] - ]); //#7213 - $_.fncvals = _M; //#7214 - $k[$j++] = 'msg'; //#7215 - $k[$j++] = $_.barcode; //#7215 - $k[$j++] = $_.fncvals; //#7215 - bwipp_parseinput(); //#7215 - var _P = $k[--$j]; //#7215 - $_[$k[--$j]] = _P; //#7215 - $_.msglen = $_.msg.length; //#7216 - $forall($_.msg, function() { //#7223 - var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7220 - if (!_V) { //#7222 - $k[$j++] = 'bwipp.code93BadCharacter#7221'; //#7221 - $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7221 - bwipp_raiseerror(); //#7221 - } //#7221 - }); //#7221 - if ($_.includecheck) { //#7228 - $_.sbs = $s(($_.msglen * 6) + 25); //#7226 - } else { //#7228 - $_.sbs = $s(($_.msglen * 6) + 13); //#7228 - } //#7228 - $_.txt = $a($_.msglen); //#7230 - $puti($_.sbs, 0, $get($_.encs, 47)); //#7233 - $_.checksum1 = 0; //#7235 - $_.checksum2 = 0; //#7235 - for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7244 - $_.i = _i; //#7237 - $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7238 - $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7239 - var _v = $get($_.msg, $_.i); //#7240 - $k[$j++] = 'char'; //#7240 - $k[$j++] = _v; //#7240 - if (_v < 0) { //#7240 - $j--; //#7240 - $k[$j++] = " "; //#7240 - } else { //#7240 - var _w = $s(1); //#7240 - $put(_w, 0, $k[--$j]); //#7240 - $k[$j++] = _w; //#7240 - } //#7240 - var _y = $k[--$j]; //#7240 - $_[$k[--$j]] = _y; //#7240 - $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7241 - $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7242 - $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7243 - } //#7243 - if ($_.includecheck) { //#7256 - $_.checksum1 = $_.checksum1 % 47; //#7248 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7249 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7250 - $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7251 - $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7253 - } else { //#7256 - $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7256 - } //#7256 - $k[$j++] = Infinity; //#7268 - $k[$j++] = Infinity; //#7262 - var _1c = $_.sbs; //#7262 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7262 - $k[$j++] = $get(_1c, _1d) - 48; //#7262 - } //#7262 - var _1g = $a(); //#7262 - $k[$j++] = Infinity; //#7263 - for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7263 - $k[$j++] = $_.height; //#7263 - } //#7263 - var _1l = $a(); //#7263 - $k[$j++] = Infinity; //#7264 - for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7264 - $k[$j++] = 0; //#7264 - } //#7264 - var _1p = $a(); //#7264 - $k[$j++] = 'ren'; //#7267 - $k[$j++] = bwipp_renlinear; //#7267 - $k[$j++] = 'sbs'; //#7267 - $k[$j++] = _1g; //#7267 - $k[$j++] = 'bhs'; //#7267 - $k[$j++] = _1l; //#7267 - $k[$j++] = 'bbs'; //#7267 - $k[$j++] = _1p; //#7267 - if ($_.includetext) { //#7267 - $k[$j++] = 'txt'; //#7266 - $k[$j++] = $_.txt; //#7266 - } //#7266 - $k[$j++] = 'opt'; //#7268 - $k[$j++] = $_.options; //#7268 - var _1t = $d(); //#7268 - $k[$j++] = _1t; //#7271 - if (!$_.dontdraw) { //#7271 - bwipp_renlinear(); //#7271 - } //#7271 - $_ = Object.getPrototypeOf($_); //#7273 - $_ = Object.getPrototypeOf($_); //#7275 -} - + ]); //#7351 + $_.fncvals = _M; //#7352 + $k[$j++] = 'msg'; //#7353 + $k[$j++] = $_.barcode; //#7353 + $k[$j++] = $_.fncvals; //#7353 + bwipp_parseinput(); //#7353 + var _P = $k[--$j]; //#7353 + $_[$k[--$j]] = _P; //#7353 + $_.msglen = $_.msg.length; //#7354 + $forall($_.msg, function() { //#7361 + var _V = $get($_.charvals, $k[--$j]) !== undefined; //#7358 + if (!_V) { //#7360 + $k[$j++] = 'bwipp.code93BadCharacter#7359'; //#7359 + $k[$j++] = "Code 93 must only contain digits, capital letters, spaces, the symbols -.$/+ and shift non-data characters"; //#7359 + bwipp_raiseerror(); //#7359 + } //#7359 + }); //#7359 + if ($_.includecheck) { //#7366 + $_.sbs = $s(($_.msglen * 6) + 25); //#7364 + } else { //#7366 + $_.sbs = $s(($_.msglen * 6) + 13); //#7366 + } //#7366 + $_.txt = $a($_.msglen); //#7368 + $puti($_.sbs, 0, $get($_.encs, 47)); //#7371 + $_.checksum1 = 0; //#7373 + $_.checksum2 = 0; //#7373 + for (var _i = 0, _h = $_.msglen - 1; _i <= _h; _i += 1) { //#7382 + $_.i = _i; //#7375 + $_.indx = $get($_.charvals, $get($_.msg, $_.i)); //#7376 + $puti($_.sbs, ($_.i * 6) + 6, $get($_.encs, $_.indx)); //#7377 + var _v = $get($_.msg, $_.i); //#7378 + $k[$j++] = 'char'; //#7378 + $k[$j++] = _v; //#7378 + if (_v < 0) { //#7378 + $j--; //#7378 + $k[$j++] = " "; //#7378 + } else { //#7378 + var _w = $s(1); //#7378 + $put(_w, 0, $k[--$j]); //#7378 + $k[$j++] = _w; //#7378 + } //#7378 + var _y = $k[--$j]; //#7378 + $_[$k[--$j]] = _y; //#7378 + $put($_.txt, $_.i, $a([$_.char, ($_.i * 9) + 9, $_.textyoffset, $_.textfont, $_.textsize])); //#7379 + $_.checksum1 = $f($_.checksum1 + ((((($_.msglen - $_.i) - 1) % 20) + 1) * $_.indx)); //#7380 + $_.checksum2 = $f($_.checksum2 + (((($_.msglen - $_.i) % 15) + 1) * $_.indx)); //#7381 + } //#7381 + if ($_.includecheck) { //#7394 + $_.checksum1 = $_.checksum1 % 47; //#7386 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 47; //#7387 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, $_.checksum1)); //#7388 + $puti($_.sbs, ($_.msglen * 6) + 12, $get($_.encs, $_.checksum2)); //#7389 + $puti($_.sbs, ($_.msglen * 6) + 18, $get($_.encs, 48)); //#7391 + } else { //#7394 + $puti($_.sbs, ($_.msglen * 6) + 6, $get($_.encs, 48)); //#7394 + } //#7394 + $k[$j++] = Infinity; //#7398 + $k[$j++] = Infinity; //#7400 + var _1c = $_.sbs; //#7400 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#7400 + $k[$j++] = $get(_1c, _1d) - 48; //#7400 + } //#7400 + var _1g = $a(); //#7400 + $k[$j++] = Infinity; //#7401 + for (var _1i = 0, _1j = ~~(($_.sbs.length + 1) / 2); _1i < _1j; _1i++) { //#7401 + $k[$j++] = $_.height; //#7401 + } //#7401 + var _1l = $a(); //#7401 + $k[$j++] = Infinity; //#7402 + for (var _1n = 0, _1o = ~~(($_.sbs.length + 1) / 2); _1n < _1o; _1n++) { //#7402 + $k[$j++] = 0; //#7402 + } //#7402 + var _1p = $a(); //#7402 + $k[$j++] = 'ren'; //#7405 + $k[$j++] = bwipp_renlinear; //#7405 + $k[$j++] = 'sbs'; //#7405 + $k[$j++] = _1g; //#7405 + $k[$j++] = 'bhs'; //#7405 + $k[$j++] = _1l; //#7405 + $k[$j++] = 'bbs'; //#7405 + $k[$j++] = _1p; //#7405 + if ($_.includetext) { //#7405 + $k[$j++] = 'txt'; //#7404 + $k[$j++] = $_.txt; //#7404 + } //#7404 + $k[$j++] = 'opt'; //#7406 + $k[$j++] = $_.options; //#7406 + var _1t = $d(); //#7406 + $k[$j++] = _1t; //#7409 + if (!$_.dontdraw) { //#7409 + bwipp_renlinear(); //#7409 + } //#7409 + $_ = Object.getPrototypeOf($_); //#7411 + $_ = Object.getPrototypeOf($_); //#7413 +} //bwipp_code93 function bwipp_code93ext() { - $_ = Object.create($_); //#7307 - $_.dontdraw = false; //#7310 - $_.includetext = false; //#7311 - $_.parse = false; //#7312 - $k[$j++] = $_; //#7314 - bwipp_processoptions(); //#7314 - $_.options = $k[--$j]; //#7314 - $_.barcode = $k[--$j]; //#7315 - bwipp_loadctx(bwipp_code93ext) //#7317 + $_ = Object.create($_); //#7445 + $_.dontdraw = false; //#7448 + $_.includetext = false; //#7449 + $_.parse = false; //#7450 + $k[$j++] = $_; //#7452 + bwipp_processoptions(); //#7452 + $_.options = $k[--$j]; //#7452 + $_.barcode = $k[--$j]; //#7453 + bwipp_loadctx(bwipp_code93ext) //#7455 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#7323 - $_.fncvals = _3; //#7324 - $k[$j++] = 'barcode'; //#7325 - $k[$j++] = $_.barcode; //#7325 - $k[$j++] = $_.fncvals; //#7325 - bwipp_parseinput(); //#7325 - var _6 = $k[--$j]; //#7325 - var _7 = $k[--$j]; //#7325 - $_[_7] = _6; //#7325 - $_.barlen = $_.barcode.length; //#7326 - delete $_.options["parse"]; //#7327 - if (!bwipp_code93ext.__7349__) { //#7349 - $_ = Object.create($_); //#7349 - $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7348 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7348 - bwipp_code93ext.__7349__ = 1; //#7348 - $_ = Object.getPrototypeOf($_); //#7348 - } //#7348 - $_.newcode = $s($_.barlen * 6); //#7351 - $_.newtext = $s($_.barlen * 6); //#7352 - $_.j = 0; //#7353 - $_.k = 0; //#7353 - for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7367 - $_.i = _I; //#7355 - var _L = $get($_.barcode, $_.i); //#7356 - $k[$j++] = _L; //#7359 - if (_L > 127) { //#7359 - $j--; //#7358 - $k[$j++] = 'bwipp.code93extbadCharacter#7358'; //#7358 - $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7358 - bwipp_raiseerror(); //#7358 - } //#7358 - $_.extchar = $get($_.extencs, $k[--$j]); //#7360 - $_.extlen = $_.extchar.length; //#7361 - $puti($_.newcode, $_.j, $_.extchar); //#7362 - var _X = $get($_.barcode, $_.i); //#7363 - $k[$j++] = $_.newtext; //#7363 - $k[$j++] = $_.k; //#7363 - $k[$j++] = _X; //#7363 - if ((_X < 32) || (_X == 127)) { //#7363 - $j--; //#7363 - $k[$j++] = 32; //#7363 - } //#7363 - var _Y = $k[--$j]; //#7363 - var _Z = $k[--$j]; //#7363 - $put($k[--$j], _Z, _Y); //#7363 - if ($_.extlen != 1) { //#7364 - $put($_.newtext, $_.k + 1, 32); //#7364 - } //#7364 - $_.j = $_.j + $_.extlen; //#7365 - var _i = ($_.extlen == 1) ? 1 : 2; //#7366 - $_.k = $_.k + _i; //#7366 - } //#7366 - $_.newcode = $geti($_.newcode, 0, $_.j); //#7368 - $_.newtext = $geti($_.newtext, 0, $_.k); //#7369 - $put($_.options, "dontdraw", true); //#7372 - $put($_.options, "parsefnc", true); //#7373 - $k[$j++] = 'args'; //#7374 - $k[$j++] = $_.newcode; //#7374 - $k[$j++] = $_.options; //#7374 - bwipp_code93(); //#7374 - var _t = $k[--$j]; //#7374 - $_[$k[--$j]] = _t; //#7374 - if ($_.includetext) { //#7386 - $_.txt = $get($_.args, "txt"); //#7378 - for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7384 - $_.i = _10; //#7380 - $_.txtentry = $get($_.txt, $_.i); //#7381 - $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7382 - $put($_.txt, $_.i, $_.txtentry); //#7383 - } //#7383 - $put($_.args, "txt", $_.txt); //#7385 - } //#7385 - $put($_.args, "opt", $_.options); //#7387 - $k[$j++] = $_.args; //#7390 - if (!$_.dontdraw) { //#7390 - bwipp_renlinear(); //#7390 - } //#7390 - $_ = Object.getPrototypeOf($_); //#7392 - $_ = Object.getPrototypeOf($_); //#7394 -} - -function bwipp_interleaved2of5() { - $_ = Object.create($_); //#7424 - $_.dontdraw = false; //#7427 - $_.includecheck = false; //#7428 - $_.includetext = false; //#7429 - $_.includecheckintext = false; //#7430 - $_.textfont = "OCR-B"; //#7431 - $_.textsize = 10; //#7432 - $_.textyoffset = -8; //#7433 - $_.height = 1; //#7434 - $k[$j++] = $_; //#7436 - bwipp_processoptions(); //#7436 - $_.options = $k[--$j]; //#7436 - $_.barcode = $k[--$j]; //#7437 - bwipp_loadctx(bwipp_interleaved2of5) //#7439 - $forall($_.barcode, function() { //#7446 - var _3 = $k[--$j]; //#7443 - if ((_3 < 48) || (_3 > 57)) { //#7445 - $k[$j++] = 'bwipp.interleaved2of5badCharacter#7444'; //#7444 - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7444 - bwipp_raiseerror(); //#7444 - } //#7444 - }); //#7444 - $_.barlen = $_.barcode.length; //#7448 - if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7459 - $_.pad = $s($_.barlen + 1); //#7454 - $put($_.pad, 0, 48); //#7455 - $puti($_.pad, 1, $_.barcode); //#7456 - $_.barcode = $_.pad; //#7457 - $_.barlen = $_.barlen + 1; //#7458 - } //#7458 - if ($_.includecheck) { //#7478 - $_.checksum = 0; //#7463 - for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7471 - $_.i = _J; //#7465 - if (($_.i % 2) == 0) { //#7469 - $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7467 - } else { //#7469 - $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7469 - } //#7469 - } //#7469 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7472 - $_.pad = $s($_.barlen + 1); //#7473 - $puti($_.pad, 0, $_.barcode); //#7474 - $put($_.pad, $_.barlen, $_.checksum + 48); //#7475 - $_.barcode = $_.pad; //#7476 - $_.barlen = $_.barlen + 1; //#7477 - } //#7477 - if (!bwipp_interleaved2of5.__7490__) { //#7490 - $_ = Object.create($_); //#7490 - $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7486 - $_.barchars = "0123456789"; //#7489 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7489 - bwipp_interleaved2of5.__7490__ = 1; //#7489 - $_ = Object.getPrototypeOf($_); //#7489 - } //#7489 - $_.sbs = $s(($_.barlen * 5) + 8); //#7492 - $_.txt = $a($_.barlen); //#7493 - $puti($_.sbs, 0, $get($_.encs, 10)); //#7496 - for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7530 - $_.i = _o; //#7499 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7501 - $j--; //#7502 - $_.indx = $k[--$j].length; //#7503 - $j -= 2; //#7504 - $_.enca = $get($_.encs, $_.indx); //#7505 - $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7507 - $j--; //#7508 - $_.indx = $k[--$j].length; //#7509 - $j -= 2; //#7510 - $_.encb = $get($_.encs, $_.indx); //#7511 - $_.intl = $s($_.enca.length * 2); //#7514 - for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7521 - $_.j = _19; //#7516 - $_.achar = $get($_.enca, $_.j); //#7517 - $_.bchar = $get($_.encb, $_.j); //#7518 - $put($_.intl, $_.j * 2, $_.achar); //#7519 - $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7520 - } //#7520 - $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7523 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7524 - if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7528 - $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7526 - } else { //#7528 - $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7528 - } //#7528 + ]); //#7461 + $_.fncvals = _3; //#7462 + $k[$j++] = 'barcode'; //#7463 + $k[$j++] = $_.barcode; //#7463 + $k[$j++] = $_.fncvals; //#7463 + bwipp_parseinput(); //#7463 + var _6 = $k[--$j]; //#7463 + var _7 = $k[--$j]; //#7463 + $_[_7] = _6; //#7463 + $_.barlen = $_.barcode.length; //#7464 + delete $_.options["parse"]; //#7465 + if (!bwipp_code93ext.__7487__) { //#7487 + $_ = Object.create($_); //#7487 + $_.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "$", "%", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "+", "^SFT/L", "-", ".", "/", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#7486 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code93ext.$ctx[id] = $_[id]); //#7486 + bwipp_code93ext.__7487__ = 1; //#7486 + $_ = Object.getPrototypeOf($_); //#7486 + } //#7486 + $_.newcode = $s($_.barlen * 6); //#7489 + $_.newtext = $s($_.barlen * 6); //#7490 + $_.j = 0; //#7491 + $_.k = 0; //#7491 + for (var _I = 0, _H = $_.barlen - 1; _I <= _H; _I += 1) { //#7505 + $_.i = _I; //#7493 + var _L = $get($_.barcode, $_.i); //#7494 + $k[$j++] = _L; //#7497 + if (_L > 127) { //#7497 + $j--; //#7496 + $k[$j++] = 'bwipp.code93extbadCharacter#7496'; //#7496 + $k[$j++] = "Code 93 Extended only support ASCII characters with values 0 to 127"; //#7496 + bwipp_raiseerror(); //#7496 + } //#7496 + $_.extchar = $get($_.extencs, $k[--$j]); //#7498 + $_.extlen = $_.extchar.length; //#7499 + $puti($_.newcode, $_.j, $_.extchar); //#7500 + var _X = $get($_.barcode, $_.i); //#7501 + $k[$j++] = $_.newtext; //#7501 + $k[$j++] = $_.k; //#7501 + $k[$j++] = _X; //#7501 + if ((_X < 32) || (_X == 127)) { //#7501 + $j--; //#7501 + $k[$j++] = 32; //#7501 + } //#7501 + var _Y = $k[--$j]; //#7501 + var _Z = $k[--$j]; //#7501 + $put($k[--$j], _Z, _Y); //#7501 + if ($_.extlen != 1) { //#7502 + $put($_.newtext, $_.k + 1, 32); //#7502 + } //#7502 + $_.j = $_.j + $_.extlen; //#7503 + var _i = ($_.extlen == 1) ? 1 : 2; //#7504 + $_.k = $_.k + _i; //#7504 + } //#7504 + $_.newcode = $geti($_.newcode, 0, $_.j); //#7506 + $_.newtext = $geti($_.newtext, 0, $_.k); //#7507 + $put($_.options, "dontdraw", true); //#7510 + $put($_.options, "parsefnc", true); //#7511 + $k[$j++] = 'args'; //#7512 + $k[$j++] = $_.newcode; //#7512 + $k[$j++] = $_.options; //#7512 + bwipp_code93(); //#7512 + var _t = $k[--$j]; //#7512 + $_[$k[--$j]] = _t; //#7512 + if ($_.includetext) { //#7524 + $_.txt = $get($_.args, "txt"); //#7516 + for (var _10 = 0, _z = $_.newtext.length - 1; _10 <= _z; _10 += 1) { //#7522 + $_.i = _10; //#7518 + $_.txtentry = $get($_.txt, $_.i); //#7519 + $put($_.txtentry, 0, $geti($_.newtext, $_.i, 1)); //#7520 + $put($_.txt, $_.i, $_.txtentry); //#7521 + } //#7521 + $put($_.args, "txt", $_.txt); //#7523 + } //#7523 + $put($_.args, "opt", $_.options); //#7525 + $k[$j++] = $_.args; //#7528 + if (!$_.dontdraw) { //#7528 + bwipp_renlinear(); //#7528 } //#7528 - $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7533 - $k[$j++] = Infinity; //#7546 - $k[$j++] = Infinity; //#7538 - var _1y = $_.sbs; //#7538 - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7538 - $k[$j++] = $get(_1y, _1z) - 48; //#7538 - } //#7538 - var _22 = $a(); //#7538 - $k[$j++] = Infinity; //#7539 - for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7539 - $k[$j++] = $_.height; //#7539 - } //#7539 - var _27 = $a(); //#7539 - $k[$j++] = Infinity; //#7540 - for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7540 - $k[$j++] = 0; //#7540 - } //#7540 - var _2B = $a(); //#7540 - $k[$j++] = 'ren'; //#7543 - $k[$j++] = bwipp_renlinear; //#7543 - $k[$j++] = 'sbs'; //#7543 - $k[$j++] = _22; //#7543 - $k[$j++] = 'bhs'; //#7543 - $k[$j++] = _27; //#7543 - $k[$j++] = 'bbs'; //#7543 - $k[$j++] = _2B; //#7543 - if ($_.includetext) { //#7543 - $k[$j++] = 'txt'; //#7542 - $k[$j++] = $_.txt; //#7542 - } //#7542 - $k[$j++] = 'barratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'spaceratio'; //#7546 - $k[$j++] = 2; //#7546 - $k[$j++] = 'opt'; //#7546 - $k[$j++] = $_.options; //#7546 - var _2F = $d(); //#7546 - $k[$j++] = _2F; //#7549 - if (!$_.dontdraw) { //#7549 - bwipp_renlinear(); //#7549 - } //#7549 - $_ = Object.getPrototypeOf($_); //#7551 - $_ = Object.getPrototypeOf($_); //#7553 -} - + $_ = Object.getPrototypeOf($_); //#7530 + $_ = Object.getPrototypeOf($_); //#7532 +} //bwipp_code93ext +function bwipp_interleaved2of5() { + $_ = Object.create($_); //#7562 + $_.dontdraw = false; //#7565 + $_.includecheck = false; //#7566 + $_.includetext = false; //#7567 + $_.includecheckintext = false; //#7568 + $_.textfont = "OCR-B"; //#7569 + $_.textsize = 10; //#7570 + $_.textyoffset = -8; //#7571 + $_.height = 1; //#7572 + $k[$j++] = $_; //#7574 + bwipp_processoptions(); //#7574 + $_.options = $k[--$j]; //#7574 + $_.barcode = $k[--$j]; //#7575 + bwipp_loadctx(bwipp_interleaved2of5) //#7577 + $forall($_.barcode, function() { //#7584 + var _3 = $k[--$j]; //#7581 + if ((_3 < 48) || (_3 > 57)) { //#7583 + $k[$j++] = 'bwipp.interleaved2of5badCharacter#7582'; //#7582 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#7582 + bwipp_raiseerror(); //#7582 + } //#7582 + }); //#7582 + $_.barlen = $_.barcode.length; //#7586 + if (((($_.barlen % 2) == 0) && $_.includecheck) || ((($_.barlen % 2) != 0) && (!$_.includecheck))) { //#7597 + $_.pad = $s($_.barlen + 1); //#7592 + $put($_.pad, 0, 48); //#7593 + $puti($_.pad, 1, $_.barcode); //#7594 + $_.barcode = $_.pad; //#7595 + $_.barlen = $_.barlen + 1; //#7596 + } //#7596 + if ($_.includecheck) { //#7616 + $_.checksum = 0; //#7601 + for (var _J = 0, _I = $_.barlen - 1; _J <= _I; _J += 1) { //#7609 + $_.i = _J; //#7603 + if (($_.i % 2) == 0) { //#7607 + $_.checksum = $_.checksum + (($get($_.barcode, $_.i) - 48) * 3); //#7605 + } else { //#7607 + $_.checksum = $_.checksum + ($get($_.barcode, $_.i) - 48); //#7607 + } //#7607 + } //#7607 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7610 + $_.pad = $s($_.barlen + 1); //#7611 + $puti($_.pad, 0, $_.barcode); //#7612 + $put($_.pad, $_.barlen, $_.checksum + 48); //#7613 + $_.barcode = $_.pad; //#7614 + $_.barlen = $_.barlen + 1; //#7615 + } //#7615 + if (!bwipp_interleaved2of5.__7628__) { //#7628 + $_ = Object.create($_); //#7628 + $_.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#7624 + $_.barchars = "0123456789"; //#7627 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_interleaved2of5.$ctx[id] = $_[id]); //#7627 + bwipp_interleaved2of5.__7628__ = 1; //#7627 + $_ = Object.getPrototypeOf($_); //#7627 + } //#7627 + $_.sbs = $s(($_.barlen * 5) + 8); //#7630 + $_.txt = $a($_.barlen); //#7631 + $puti($_.sbs, 0, $get($_.encs, 10)); //#7634 + for (var _o = 0, _n = $_.barlen - 1; _o <= _n; _o += 2) { //#7668 + $_.i = _o; //#7637 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#7639 + $j--; //#7640 + $_.indx = $k[--$j].length; //#7641 + $j -= 2; //#7642 + $_.enca = $get($_.encs, $_.indx); //#7643 + $search($_.barchars, $geti($_.barcode, $_.i + 1, 1)); //#7645 + $j--; //#7646 + $_.indx = $k[--$j].length; //#7647 + $j -= 2; //#7648 + $_.encb = $get($_.encs, $_.indx); //#7649 + $_.intl = $s($_.enca.length * 2); //#7652 + for (var _19 = 0, _18 = $_.enca.length - 1; _19 <= _18; _19 += 1) { //#7659 + $_.j = _19; //#7654 + $_.achar = $get($_.enca, $_.j); //#7655 + $_.bchar = $get($_.encb, $_.j); //#7656 + $put($_.intl, $_.j * 2, $_.achar); //#7657 + $put($_.intl, ($_.j * 2) + 1, $_.bchar); //#7658 + } //#7658 + $puti($_.sbs, ($_.i * 5) + 4, $_.intl); //#7661 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7662 + if (($_.includecheck && (!$_.includecheckintext)) && (($_.barlen - 2) == $_.i)) { //#7666 + $put($_.txt, $_.i + 1, $a([" ", (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7664 + } else { //#7666 + $put($_.txt, $_.i + 1, $a([$geti($_.barcode, $_.i + 1, 1), (($_.i + 1) * 9) + 4, $_.textyoffset, $_.textfont, $_.textsize])); //#7666 + } //#7666 + } //#7666 + $puti($_.sbs, ($_.barlen * 5) + 4, $get($_.encs, 11)); //#7671 + $k[$j++] = Infinity; //#7674 + $k[$j++] = Infinity; //#7676 + var _1y = $_.sbs; //#7676 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#7676 + $k[$j++] = $get(_1y, _1z) - 48; //#7676 + } //#7676 + var _22 = $a(); //#7676 + $k[$j++] = Infinity; //#7677 + for (var _24 = 0, _25 = ~~(($_.sbs.length + 1) / 2); _24 < _25; _24++) { //#7677 + $k[$j++] = $_.height; //#7677 + } //#7677 + var _27 = $a(); //#7677 + $k[$j++] = Infinity; //#7678 + for (var _29 = 0, _2A = ~~(($_.sbs.length + 1) / 2); _29 < _2A; _29++) { //#7678 + $k[$j++] = 0; //#7678 + } //#7678 + var _2B = $a(); //#7678 + $k[$j++] = 'ren'; //#7681 + $k[$j++] = bwipp_renlinear; //#7681 + $k[$j++] = 'sbs'; //#7681 + $k[$j++] = _22; //#7681 + $k[$j++] = 'bhs'; //#7681 + $k[$j++] = _27; //#7681 + $k[$j++] = 'bbs'; //#7681 + $k[$j++] = _2B; //#7681 + if ($_.includetext) { //#7681 + $k[$j++] = 'txt'; //#7680 + $k[$j++] = $_.txt; //#7680 + } //#7680 + $k[$j++] = 'barratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'spaceratio'; //#7684 + $k[$j++] = 2; //#7684 + $k[$j++] = 'opt'; //#7684 + $k[$j++] = $_.options; //#7684 + var _2F = $d(); //#7684 + $k[$j++] = _2F; //#7687 + if (!$_.dontdraw) { //#7687 + bwipp_renlinear(); //#7687 + } //#7687 + $_ = Object.getPrototypeOf($_); //#7689 + $_ = Object.getPrototypeOf($_); //#7691 +} //bwipp_interleaved2of5 function bwipp_itf14() { - $_ = Object.create($_); //#7582 - $_.dontdraw = false; //#7585 - $_.includetext = false; //#7586 - $_.includecheckintext = true; //#7587 - $_.textfont = "OCR-B"; //#7588 - $_.textsize = 10; //#7589 - $_.textxoffset = 0; //#7590 - $_.textyoffset = 3; //#7591 - $_.height = 0.5; //#7592 - $_.showborder = true; //#7593 - $_.borderwidth = 4; //#7594 - $_.borderleft = 15; //#7595 - $_.borderright = 15; //#7596 - $k[$j++] = $_; //#7598 - bwipp_processoptions(); //#7598 - $_.options = $k[--$j]; //#7598 - $_.barcode = $k[--$j]; //#7599 - $_.text = $_.barcode; //#7602 - var _3 = $_.barcode; //#7603 - $k[$j++] = $s(_3.length); //#7604 - $k[$j++] = 0; //#7604 - $forall(_3, function() { //#7604 - var _5 = $k[--$j]; //#7604 - $k[$j++] = _5; //#7604 - if (_5 != 32) { //#7604 - var _6 = $k[--$j]; //#7604 - var _7 = $k[--$j]; //#7604 - var _8 = $k[--$j]; //#7604 - $put(_8, _7, _6); //#7604 - $k[$j++] = _8; //#7604 - $k[$j++] = $f(_7 + 1); //#7604 - } else { //#7604 - $j--; //#7604 - } //#7604 - }); //#7604 - var _9 = $k[--$j]; //#7605 - $_.barcode = $geti($k[--$j], 0, _9); //#7605 - $_.hasspace = $_.text.length != $_.barcode.length; //#7606 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7611 - $k[$j++] = 'bwipp.itf14badLength#7610'; //#7610 - $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7610 - bwipp_raiseerror(); //#7610 - } //#7610 - var _G = $_.barcode; //#7612 - for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7616 - var _J = $get(_G, _H); //#7616 - if ((_J < 48) || (_J > 57)) { //#7615 - $k[$j++] = 'bwipp.itf14badCharacter#7614'; //#7614 - $k[$j++] = "ITF-14 must contain only digits"; //#7614 - bwipp_raiseerror(); //#7614 - } //#7614 - } //#7614 - $_.checksum = 0; //#7619 - for (var _K = 0; _K <= 12; _K += 1) { //#7623 - $_.i = _K; //#7621 - $k[$j++] = 'checksum'; //#7622 - $k[$j++] = $_.checksum; //#7622 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7622 - if (($_.i % 2) == 0) { //#7622 - var _Q = $k[--$j]; //#7622 - $k[$j++] = _Q * 3; //#7622 - } //#7622 - var _R = $k[--$j]; //#7622 - var _S = $k[--$j]; //#7622 - $_[$k[--$j]] = $f(_S + _R); //#7622 - } //#7622 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7624 - if ($_.barcode.length == 14) { //#7638 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7628 - $k[$j++] = 'bwipp.itf14badCheckDigit#7627'; //#7627 - $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7627 - bwipp_raiseerror(); //#7627 - } //#7627 - } else { //#7638 - var _Z = $s(14); //#7630 - $puti(_Z, 0, $_.barcode); //#7631 - $put(_Z, 13, $_.checksum + 48); //#7632 - $_.barcode = _Z; //#7633 - var _e = $_.hasspace ? 2 : 1; //#7634 - var _f = $s($_.text.length + _e); //#7634 - $puti(_f, _f.length - 2, " "); //#7635 - $put(_f, _f.length - 1, $_.checksum + 48); //#7636 - $puti(_f, 0, $_.text); //#7637 - $_.text = _f; //#7638 - } //#7638 - var _i = $_.options; //#7642 - $put(_i, "dontdraw", true); //#7642 - $put($_.options, "showborder", $_.showborder); //#7643 - $put($_.options, "borderwidth", $_.borderwidth); //#7644 - $put($_.options, "borderleft", $_.borderleft); //#7645 - $put($_.options, "borderright", $_.borderright); //#7646 - var _r = $_.options; //#7647 - $put(_r, "height", $_.height); //#7647 - $put($_.options, "textyoffset", $_.textyoffset); //#7648 - $k[$j++] = 'args'; //#7649 - $k[$j++] = $_.barcode; //#7649 - $k[$j++] = $_.options; //#7649 - bwipp_interleaved2of5(); //#7649 - var _x = $k[--$j]; //#7649 - $_[$k[--$j]] = _x; //#7649 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7651 - $put($_.args, "textxalign", "center"); //#7652 - $put($_.args, "opt", $_.options); //#7653 - $k[$j++] = $_.args; //#7656 - if (!$_.dontdraw) { //#7656 - bwipp_renlinear(); //#7656 - } //#7656 - $_ = Object.getPrototypeOf($_); //#7658 -} - + $_ = Object.create($_); //#7720 + $_.dontdraw = false; //#7723 + $_.includetext = false; //#7724 + $_.includecheckintext = true; //#7725 + $_.textfont = "OCR-B"; //#7726 + $_.textsize = 10; //#7727 + $_.textxoffset = 0; //#7728 + $_.textyoffset = 3.5; //#7729 + $_.height = 0.5; //#7730 + $_.showborder = true; //#7731 + $_.borderwidth = 4; //#7732 + $_.borderleft = 10; //#7733 + $_.borderright = 10; //#7734 + $_.bordertop = -0.55; //#7735 + $_.borderbottom = -0.55; //#7736 + $k[$j++] = $_; //#7738 + bwipp_processoptions(); //#7738 + $_.options = $k[--$j]; //#7738 + $_.barcode = $k[--$j]; //#7739 + $_.text = $_.barcode; //#7742 + var _3 = $_.barcode; //#7743 + $k[$j++] = $s(_3.length); //#7744 + $k[$j++] = 0; //#7744 + $forall(_3, function() { //#7744 + var _5 = $k[--$j]; //#7744 + $k[$j++] = _5; //#7744 + if (_5 != 32) { //#7744 + var _6 = $k[--$j]; //#7744 + var _7 = $k[--$j]; //#7744 + var _8 = $k[--$j]; //#7744 + $put(_8, _7, _6); //#7744 + $k[$j++] = _8; //#7744 + $k[$j++] = $f(_7 + 1); //#7744 + } else { //#7744 + $j--; //#7744 + } //#7744 + }); //#7744 + var _9 = $k[--$j]; //#7745 + $_.barcode = $geti($k[--$j], 0, _9); //#7745 + $_.hasspace = $_.text.length != $_.barcode.length; //#7746 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7751 + $k[$j++] = 'bwipp.itf14badLength#7750'; //#7750 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#7750 + bwipp_raiseerror(); //#7750 + } //#7750 + var _G = $_.barcode; //#7752 + for (var _H = 0, _I = _G.length; _H < _I; _H++) { //#7756 + var _J = $get(_G, _H); //#7756 + if ((_J < 48) || (_J > 57)) { //#7755 + $k[$j++] = 'bwipp.itf14badCharacter#7754'; //#7754 + $k[$j++] = "ITF-14 must contain only digits"; //#7754 + bwipp_raiseerror(); //#7754 + } //#7754 + } //#7754 + $_.checksum = 0; //#7759 + for (var _K = 0; _K <= 12; _K += 1) { //#7763 + $_.i = _K; //#7761 + $k[$j++] = 'checksum'; //#7762 + $k[$j++] = $_.checksum; //#7762 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7762 + if (($_.i % 2) == 0) { //#7762 + var _Q = $k[--$j]; //#7762 + $k[$j++] = _Q * 3; //#7762 + } //#7762 + var _R = $k[--$j]; //#7762 + var _S = $k[--$j]; //#7762 + $_[$k[--$j]] = $f(_S + _R); //#7762 + } //#7762 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7764 + if ($_.barcode.length == 14) { //#7778 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7768 + $k[$j++] = 'bwipp.itf14badCheckDigit#7767'; //#7767 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#7767 + bwipp_raiseerror(); //#7767 + } //#7767 + } else { //#7778 + var _Z = $s(14); //#7770 + $puti(_Z, 0, $_.barcode); //#7771 + $put(_Z, 13, $_.checksum + 48); //#7772 + $_.barcode = _Z; //#7773 + var _e = $_.hasspace ? 2 : 1; //#7774 + var _f = $s($_.text.length + _e); //#7774 + $puti(_f, _f.length - 2, " "); //#7775 + $put(_f, _f.length - 1, $_.checksum + 48); //#7776 + $puti(_f, 0, $_.text); //#7777 + $_.text = _f; //#7778 + } //#7778 + var _i = $_.options; //#7782 + $put(_i, "dontdraw", true); //#7782 + $put($_.options, "showborder", $_.showborder); //#7783 + $put($_.options, "borderwidth", $_.borderwidth); //#7784 + $put($_.options, "borderleft", $_.borderleft); //#7785 + $put($_.options, "borderright", $_.borderright); //#7786 + var _r = $_.options; //#7787 + $put(_r, "bordertop", $_.bordertop); //#7787 + $put($_.options, "borderbottom", $_.borderbottom); //#7788 + $put($_.options, "height", $_.height); //#7789 + $put($_.options, "textyoffset", $_.textyoffset); //#7790 + $k[$j++] = 'args'; //#7791 + $k[$j++] = $_.barcode; //#7791 + $k[$j++] = $_.options; //#7791 + bwipp_interleaved2of5(); //#7791 + var _11 = $k[--$j]; //#7791 + $_[$k[--$j]] = _11; //#7791 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#7793 + $put($_.args, "textxalign", "center"); //#7794 + $put($_.args, "opt", $_.options); //#7795 + $k[$j++] = $_.args; //#7798 + if (!$_.dontdraw) { //#7798 + bwipp_renlinear(); //#7798 + } //#7798 + $_ = Object.getPrototypeOf($_); //#7800 +} //bwipp_itf14 function bwipp_identcode() { - $_ = Object.create($_); //#7687 - $_.dontdraw = false; //#7690 - $_.includetext = false; //#7691 - $_.textfont = "OCR-B"; //#7692 - $_.textsize = 10; //#7693 - $_.textxoffset = 0; //#7694 - $_.textyoffset = -8; //#7695 - $_.height = 1; //#7696 - $k[$j++] = $_; //#7698 - bwipp_processoptions(); //#7698 - $_.options = $k[--$j]; //#7698 - $_.barcode = $k[--$j]; //#7699 - if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7704 - $k[$j++] = 'bwipp.identcodeBadLength#7703'; //#7703 - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7703 - bwipp_raiseerror(); //#7703 - } //#7703 - $forall($_.barcode, function() { //#7709 - var _5 = $k[--$j]; //#7706 - if ((_5 < 48) || (_5 > 57)) { //#7708 - $k[$j++] = 'bwipp.identcodeBadCharacter#7707'; //#7707 - $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7707 - bwipp_raiseerror(); //#7707 - } //#7707 - }); //#7707 - $_.checksum = 0; //#7712 - for (var _6 = 0; _6 <= 10; _6 += 1) { //#7716 - $_.i = _6; //#7714 - $k[$j++] = 'checksum'; //#7715 - $k[$j++] = $_.checksum; //#7715 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7715 - if (($_.i % 2) == 0) { //#7715 - var _C = $k[--$j]; //#7715 - $k[$j++] = _C * 4; //#7715 - } else { //#7715 - var _D = $k[--$j]; //#7715 - $k[$j++] = _D * 9; //#7715 - } //#7715 - var _E = $k[--$j]; //#7715 - var _F = $k[--$j]; //#7715 - $_[$k[--$j]] = $f(_F + _E); //#7715 - } //#7715 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7717 - if ($_.barcode.length == 12) { //#7722 - if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7721 - $k[$j++] = 'bwipp.identcodeBadCheckDigit#7720'; //#7720 - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7720 - bwipp_raiseerror(); //#7720 - } //#7720 - } //#7720 - var _M = $s(12); //#7723 - $puti(_M, 0, $_.barcode); //#7724 - $put(_M, 11, $_.checksum + 48); //#7725 - $_.barcode = _M; //#7726 - $_.text = $strcpy($s(16), " . . "); //#7729 - $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7730 - $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7731 - $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7732 - $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7733 - $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7734 - $put($_.options, "dontdraw", true); //#7737 - $put($_.options, "includecheck", false); //#7738 - var _i = $_.barcode; //#7739 - $k[$j++] = 'args'; //#7739 - $k[$j++] = _i; //#7739 - $k[$j++] = $_.options; //#7739 - bwipp_interleaved2of5(); //#7739 - var _k = $k[--$j]; //#7739 - $_[$k[--$j]] = _k; //#7739 - var _r = $_.textsize; //#7741 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7741 - $put($_.args, "textxalign", "center"); //#7742 - $put($_.args, "opt", $_.options); //#7743 - $k[$j++] = $_.args; //#7746 - if (!$_.dontdraw) { //#7746 - bwipp_renlinear(); //#7746 - } //#7746 - $_ = Object.getPrototypeOf($_); //#7748 -} - + $_ = Object.create($_); //#7829 + $_.dontdraw = false; //#7832 + $_.includetext = false; //#7833 + $_.textfont = "OCR-B"; //#7834 + $_.textsize = 10; //#7835 + $_.textxoffset = 0; //#7836 + $_.textyoffset = -8; //#7837 + $_.height = 1; //#7838 + $k[$j++] = $_; //#7840 + bwipp_processoptions(); //#7840 + $_.options = $k[--$j]; //#7840 + $_.barcode = $k[--$j]; //#7841 + if (($_.barcode.length != 11) && ($_.barcode.length != 12)) { //#7846 + $k[$j++] = 'bwipp.identcodeBadLength#7845'; //#7845 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#7845 + bwipp_raiseerror(); //#7845 + } //#7845 + $forall($_.barcode, function() { //#7851 + var _5 = $k[--$j]; //#7848 + if ((_5 < 48) || (_5 > 57)) { //#7850 + $k[$j++] = 'bwipp.identcodeBadCharacter#7849'; //#7849 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#7849 + bwipp_raiseerror(); //#7849 + } //#7849 + }); //#7849 + $_.checksum = 0; //#7854 + for (var _6 = 0; _6 <= 10; _6 += 1) { //#7858 + $_.i = _6; //#7856 + $k[$j++] = 'checksum'; //#7857 + $k[$j++] = $_.checksum; //#7857 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7857 + if (($_.i % 2) == 0) { //#7857 + var _C = $k[--$j]; //#7857 + $k[$j++] = _C * 4; //#7857 + } else { //#7857 + var _D = $k[--$j]; //#7857 + $k[$j++] = _D * 9; //#7857 + } //#7857 + var _E = $k[--$j]; //#7857 + var _F = $k[--$j]; //#7857 + $_[$k[--$j]] = $f(_F + _E); //#7857 + } //#7857 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7859 + if ($_.barcode.length == 12) { //#7864 + if ($get($_.barcode, 11) != ($_.checksum + 48)) { //#7863 + $k[$j++] = 'bwipp.identcodeBadCheckDigit#7862'; //#7862 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#7862 + bwipp_raiseerror(); //#7862 + } //#7862 + } //#7862 + var _M = $s(12); //#7865 + $puti(_M, 0, $_.barcode); //#7866 + $put(_M, 11, $_.checksum + 48); //#7867 + $_.barcode = _M; //#7868 + $_.text = $strcpy($s(16), " . . "); //#7871 + $puti($_.text, 0, $geti($_.barcode, 0, 2)); //#7872 + $puti($_.text, 3, $geti($_.barcode, 2, 3)); //#7873 + $puti($_.text, 7, $geti($_.barcode, 5, 3)); //#7874 + $puti($_.text, 11, $geti($_.barcode, 8, 3)); //#7875 + $puti($_.text, 15, $geti($_.barcode, 11, 1)); //#7876 + $put($_.options, "dontdraw", true); //#7879 + $put($_.options, "includecheck", false); //#7880 + var _i = $_.barcode; //#7881 + $k[$j++] = 'args'; //#7881 + $k[$j++] = _i; //#7881 + $k[$j++] = $_.options; //#7881 + bwipp_interleaved2of5(); //#7881 + var _k = $k[--$j]; //#7881 + $_[$k[--$j]] = _k; //#7881 + var _r = $_.textsize; //#7883 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7883 + $put($_.args, "textxalign", "center"); //#7884 + $put($_.args, "opt", $_.options); //#7885 + $k[$j++] = $_.args; //#7888 + if (!$_.dontdraw) { //#7888 + bwipp_renlinear(); //#7888 + } //#7888 + $_ = Object.getPrototypeOf($_); //#7890 +} //bwipp_identcode function bwipp_leitcode() { - $_ = Object.create($_); //#7777 - $_.dontdraw = false; //#7780 - $_.includetext = false; //#7781 - $_.textfont = "OCR-B"; //#7782 - $_.textsize = 10; //#7783 - $_.textxoffset = 0; //#7784 - $_.textyoffset = -8; //#7785 - $_.height = 1; //#7786 - $k[$j++] = $_; //#7788 - bwipp_processoptions(); //#7788 - $_.options = $k[--$j]; //#7788 - $_.barcode = $k[--$j]; //#7789 - if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7794 - $k[$j++] = 'bwipp.leitcodeBadLength#7793'; //#7793 - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7793 - bwipp_raiseerror(); //#7793 - } //#7793 - $forall($_.barcode, function() { //#7799 - var _5 = $k[--$j]; //#7796 - if ((_5 < 48) || (_5 > 57)) { //#7798 - $k[$j++] = 'bwipp.leitcodeBadCharacter#7797'; //#7797 - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7797 - bwipp_raiseerror(); //#7797 - } //#7797 - }); //#7797 - $_.checksum = 0; //#7802 - for (var _6 = 0; _6 <= 12; _6 += 1) { //#7806 - $_.i = _6; //#7804 - $k[$j++] = 'checksum'; //#7805 - $k[$j++] = $_.checksum; //#7805 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7805 - if (($_.i % 2) == 0) { //#7805 - var _C = $k[--$j]; //#7805 - $k[$j++] = _C * 4; //#7805 - } else { //#7805 - var _D = $k[--$j]; //#7805 - $k[$j++] = _D * 9; //#7805 - } //#7805 - var _E = $k[--$j]; //#7805 - var _F = $k[--$j]; //#7805 - $_[$k[--$j]] = $f(_F + _E); //#7805 - } //#7805 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7807 - if ($_.barcode.length == 14) { //#7812 - if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7811 - $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7810'; //#7810 - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7810 - bwipp_raiseerror(); //#7810 - } //#7810 - } //#7810 - var _M = $s(14); //#7813 - $puti(_M, 0, $_.barcode); //#7814 - $put(_M, 13, $_.checksum + 48); //#7815 - $_.barcode = _M; //#7816 - $_.text = $strcpy($s(18), " . . . "); //#7819 - $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7820 - $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7821 - $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7822 - $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7823 - $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7824 - $put($_.options, "dontdraw", true); //#7827 - $put($_.options, "includecheck", false); //#7828 - var _i = $_.barcode; //#7829 - $k[$j++] = 'args'; //#7829 - $k[$j++] = _i; //#7829 - $k[$j++] = $_.options; //#7829 - bwipp_interleaved2of5(); //#7829 - var _k = $k[--$j]; //#7829 - $_[$k[--$j]] = _k; //#7829 - var _r = $_.textsize; //#7831 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7831 - $put($_.args, "textxalign", "center"); //#7832 - $put($_.args, "opt", $_.options); //#7833 - $k[$j++] = $_.args; //#7836 - if (!$_.dontdraw) { //#7836 - bwipp_renlinear(); //#7836 - } //#7836 - $_ = Object.getPrototypeOf($_); //#7838 -} - + $_ = Object.create($_); //#7919 + $_.dontdraw = false; //#7922 + $_.includetext = false; //#7923 + $_.textfont = "OCR-B"; //#7924 + $_.textsize = 10; //#7925 + $_.textxoffset = 0; //#7926 + $_.textyoffset = -8; //#7927 + $_.height = 1; //#7928 + $k[$j++] = $_; //#7930 + bwipp_processoptions(); //#7930 + $_.options = $k[--$j]; //#7930 + $_.barcode = $k[--$j]; //#7931 + if (($_.barcode.length != 13) && ($_.barcode.length != 14)) { //#7936 + $k[$j++] = 'bwipp.leitcodeBadLength#7935'; //#7935 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#7935 + bwipp_raiseerror(); //#7935 + } //#7935 + $forall($_.barcode, function() { //#7941 + var _5 = $k[--$j]; //#7938 + if ((_5 < 48) || (_5 > 57)) { //#7940 + $k[$j++] = 'bwipp.leitcodeBadCharacter#7939'; //#7939 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#7939 + bwipp_raiseerror(); //#7939 + } //#7939 + }); //#7939 + $_.checksum = 0; //#7944 + for (var _6 = 0; _6 <= 12; _6 += 1) { //#7948 + $_.i = _6; //#7946 + $k[$j++] = 'checksum'; //#7947 + $k[$j++] = $_.checksum; //#7947 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#7947 + if (($_.i % 2) == 0) { //#7947 + var _C = $k[--$j]; //#7947 + $k[$j++] = _C * 4; //#7947 + } else { //#7947 + var _D = $k[--$j]; //#7947 + $k[$j++] = _D * 9; //#7947 + } //#7947 + var _E = $k[--$j]; //#7947 + var _F = $k[--$j]; //#7947 + $_[$k[--$j]] = $f(_F + _E); //#7947 + } //#7947 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7949 + if ($_.barcode.length == 14) { //#7954 + if ($get($_.barcode, 13) != ($_.checksum + 48)) { //#7953 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit#7952'; //#7952 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#7952 + bwipp_raiseerror(); //#7952 + } //#7952 + } //#7952 + var _M = $s(14); //#7955 + $puti(_M, 0, $_.barcode); //#7956 + $put(_M, 13, $_.checksum + 48); //#7957 + $_.barcode = _M; //#7958 + $_.text = $strcpy($s(18), " . . . "); //#7961 + $puti($_.text, 0, $geti($_.barcode, 0, 5)); //#7962 + $puti($_.text, 6, $geti($_.barcode, 5, 3)); //#7963 + $puti($_.text, 10, $geti($_.barcode, 8, 3)); //#7964 + $puti($_.text, 14, $geti($_.barcode, 11, 2)); //#7965 + $puti($_.text, 17, $geti($_.barcode, 13, 1)); //#7966 + $put($_.options, "dontdraw", true); //#7969 + $put($_.options, "includecheck", false); //#7970 + var _i = $_.barcode; //#7971 + $k[$j++] = 'args'; //#7971 + $k[$j++] = _i; //#7971 + $k[$j++] = $_.options; //#7971 + bwipp_interleaved2of5(); //#7971 + var _k = $k[--$j]; //#7971 + $_[$k[--$j]] = _k; //#7971 + var _r = $_.textsize; //#7973 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, _r])])); //#7973 + $put($_.args, "textxalign", "center"); //#7974 + $put($_.args, "opt", $_.options); //#7975 + $k[$j++] = $_.args; //#7978 + if (!$_.dontdraw) { //#7978 + bwipp_renlinear(); //#7978 + } //#7978 + $_ = Object.getPrototypeOf($_); //#7980 +} //bwipp_leitcode function bwipp_databaromni() { - $_ = Object.create($_); //#7869 - $_.dontdraw = false; //#7872 - $_.height = 33 / 72; //#7873 - $_.linkage = false; //#7874 - $_.format = "omni"; //#7875 - $_.barxmult = 33; //#7876 - $k[$j++] = $_; //#7878 - bwipp_processoptions(); //#7878 - $_.options = $k[--$j]; //#7878 - $_.barcode = $k[--$j]; //#7879 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#7883 - $k[$j++] = 'bwipp.databaromniBadAI#7882'; //#7882 - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#7882 - bwipp_raiseerror(); //#7882 - } //#7882 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#7886 - $k[$j++] = 'bwipp.databaromniBadLength#7885'; //#7885 - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#7885 - bwipp_raiseerror(); //#7885 - } //#7885 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#7887 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#7891 - var _B = $get(_8, _9); //#7891 - if ((_B < 48) || (_B > 57)) { //#7890 - $k[$j++] = 'bwipp.databaromniBadCharacter#7889'; //#7889 - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#7889 - bwipp_raiseerror(); //#7889 - } //#7889 - } //#7889 - if ($_.barxmult < 33) { //#7895 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#7894'; //#7894 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#7894 - bwipp_raiseerror(); //#7894 - } //#7894 - if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#7899 - $k[$j++] = 'bwipp.databaromniBadFormat#7898'; //#7898 - $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#7898 - bwipp_raiseerror(); //#7898 - } //#7898 - if ($eq($_.format, "truncated")) { //#7901 - $_.height = 13 / 72; //#7901 - } //#7901 - bwipp_loadctx(bwipp_databaromni) //#7903 - $_.checksum = 0; //#7906 - for (var _I = 0; _I <= 12; _I += 1) { //#7910 - $_.i = _I; //#7908 - $k[$j++] = 'checksum'; //#7909 - $k[$j++] = $_.checksum; //#7909 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#7909 - if (($_.i % 2) == 0) { //#7909 - var _O = $k[--$j]; //#7909 - $k[$j++] = _O * 3; //#7909 - } //#7909 - var _P = $k[--$j]; //#7909 - var _Q = $k[--$j]; //#7909 - $_[$k[--$j]] = $f(_Q + _P); //#7909 - } //#7909 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#7911 - if ($_.barcode.length == 18) { //#7916 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#7915 - $k[$j++] = 'bwipp.databaromniBadCheckDigit#7914'; //#7914 - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#7914 - bwipp_raiseerror(); //#7914 - } //#7914 - } //#7914 - var _X = $s(18); //#7917 - $puti(_X, 0, $_.barcode); //#7918 - $put(_X, 17, $_.checksum + 48); //#7919 - $_.barcode = _X; //#7920 - $_.txt = $a($_.barcode.length); //#7923 - for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#7927 - $_.i = _e; //#7925 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#7926 - } //#7926 + $_ = Object.create($_); //#8011 + $_.dontdraw = false; //#8014 + $_.height = 33 / 72; //#8015 + $_.linkage = false; //#8016 + $_.format = "omni"; //#8017 + $_.barxmult = 33; //#8018 + $k[$j++] = $_; //#8020 + bwipp_processoptions(); //#8020 + $_.options = $k[--$j]; //#8020 + $_.barcode = $k[--$j]; //#8021 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8025 + $k[$j++] = 'bwipp.databaromniBadLength#8024'; //#8024 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#8024 + bwipp_raiseerror(); //#8024 + } //#8024 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8028 + $k[$j++] = 'bwipp.databaromniBadAI#8027'; //#8027 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#8027 + bwipp_raiseerror(); //#8027 + } //#8027 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8029 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8033 + var _B = $get(_8, _9); //#8033 + if ((_B < 48) || (_B > 57)) { //#8032 + $k[$j++] = 'bwipp.databaromniBadCharacter#8031'; //#8031 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#8031 + bwipp_raiseerror(); //#8031 + } //#8031 + } //#8031 + if ($_.barxmult < 33) { //#8037 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8036'; //#8036 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must have a barxmult of at least 33"; //#8036 + bwipp_raiseerror(); //#8036 + } //#8036 + if ((($ne($_.format, "omni") && $ne($_.format, "stacked")) && $ne($_.format, "stackedomni")) && $ne($_.format, "truncated")) { //#8041 + $k[$j++] = 'bwipp.databaromniBadFormat#8040'; //#8040 + $k[$j++] = "Valid formats are omni, stacked, stackedomni and truncated"; //#8040 + bwipp_raiseerror(); //#8040 + } //#8040 + if ($eq($_.format, "truncated")) { //#8043 + $_.height = 13 / 72; //#8043 + } //#8043 + bwipp_loadctx(bwipp_databaromni) //#8045 + $_.checksum = 0; //#8048 + for (var _I = 0; _I <= 12; _I += 1) { //#8052 + $_.i = _I; //#8050 + $k[$j++] = 'checksum'; //#8051 + $k[$j++] = $_.checksum; //#8051 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8051 + if (($_.i % 2) == 0) { //#8051 + var _O = $k[--$j]; //#8051 + $k[$j++] = _O * 3; //#8051 + } //#8051 + var _P = $k[--$j]; //#8051 + var _Q = $k[--$j]; //#8051 + $_[$k[--$j]] = $f(_Q + _P); //#8051 + } //#8051 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8053 + if ($_.barcode.length == 18) { //#8058 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8057 + $k[$j++] = 'bwipp.databaromniBadCheckDigit#8056'; //#8056 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#8056 + bwipp_raiseerror(); //#8056 + } //#8056 + } //#8056 + var _X = $s(18); //#8059 + $puti(_X, 0, $_.barcode); //#8060 + $put(_X, 17, $_.checksum + 48); //#8061 + $_.barcode = _X; //#8062 + $_.txt = $a($_.barcode.length); //#8065 + for (var _e = 0, _d = $_.barcode.length - 1; _e <= _d; _e += 1) { //#8069 + $_.i = _e; //#8067 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8068 + } //#8068 $_.ncr = function() { - var _l = $k[--$j]; //#7930 - var _m = $k[--$j]; //#7930 - var _n = $f(_m - _l); //#7930 - if (_l < $f(_m - _l)) { //#7930 - var _ = _n; //#7930 - _n = _l; //#7930 - _l = _; //#7930 - } //#7930 - $k[$j++] = _n; //#7937 - $k[$j++] = 1; //#7937 - $k[$j++] = 1; //#7937 - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#7937 - var _q = $k[--$j]; //#7933 - var _r = $k[--$j]; //#7934 - var _s = $k[--$j]; //#7934 - $k[$j++] = _s; //#7936 - $k[$j++] = _r; //#7936 - $k[$j++] = _q * _p; //#7936 - if ($le(_r, _s)) { //#7936 - var _t = $k[--$j]; //#7935 - var _u = $k[--$j]; //#7935 - $k[$j++] = $f(_u + 1); //#7935 - $k[$j++] = ~~(_t / _u); //#7935 - } //#7935 - } //#7935 - for (;;) { //#7941 - var _v = $k[--$j]; //#7939 - var _w = $k[--$j]; //#7939 - var _x = $k[--$j]; //#7939 - $k[$j++] = _x; //#7939 - $k[$j++] = _w; //#7939 - $k[$j++] = _v; //#7939 - if ($gt(_w, _x)) { //#7939 - break; //#7939 - } //#7939 - var _y = $k[--$j]; //#7940 - var _z = $k[--$j]; //#7940 - $k[$j++] = $f(_z + 1); //#7940 - $k[$j++] = ~~(_y / _z); //#7940 - } //#7940 - var _10 = $k[--$j]; //#7942 - var _11 = $k[--$j]; //#7942 - $k[$j++] = _10; //#7942 - $k[$j++] = _11; //#7942 - $j--; //#7942 - var _12 = $k[--$j]; //#7942 - var _13 = $k[--$j]; //#7942 - $k[$j++] = _12; //#7942 - $k[$j++] = _13; //#7942 - $j--; //#7942 - }; //#7942 + var _l = $k[--$j]; //#8072 + var _m = $k[--$j]; //#8072 + var _n = $f(_m - _l); //#8072 + if (_l < $f(_m - _l)) { //#8072 + var _ = _n; //#8072 + _n = _l; //#8072 + _l = _; //#8072 + } //#8072 + $k[$j++] = _n; //#8079 + $k[$j++] = 1; //#8079 + $k[$j++] = 1; //#8079 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#8079 + var _q = $k[--$j]; //#8075 + var _r = $k[--$j]; //#8076 + var _s = $k[--$j]; //#8076 + $k[$j++] = _s; //#8078 + $k[$j++] = _r; //#8078 + $k[$j++] = _q * _p; //#8078 + if ($le(_r, _s)) { //#8078 + var _t = $k[--$j]; //#8077 + var _u = $k[--$j]; //#8077 + $k[$j++] = $f(_u + 1); //#8077 + $k[$j++] = ~~(_t / _u); //#8077 + } //#8077 + } //#8077 + for (;;) { //#8083 + var _v = $k[--$j]; //#8081 + var _w = $k[--$j]; //#8081 + var _x = $k[--$j]; //#8081 + $k[$j++] = _x; //#8081 + $k[$j++] = _w; //#8081 + $k[$j++] = _v; //#8081 + if ($gt(_w, _x)) { //#8081 + break; //#8081 + } //#8081 + var _y = $k[--$j]; //#8082 + var _z = $k[--$j]; //#8082 + $k[$j++] = $f(_z + 1); //#8082 + $k[$j++] = ~~(_y / _z); //#8082 + } //#8082 + var _10 = $k[--$j]; //#8084 + var _11 = $k[--$j]; //#8084 + $k[$j++] = _10; //#8084 + $k[$j++] = _11; //#8084 + $j--; //#8084 + var _12 = $k[--$j]; //#8084 + var _13 = $k[--$j]; //#8084 + $k[$j++] = _12; //#8084 + $k[$j++] = _13; //#8084 + $j--; //#8084 + }; //#8084 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#7946 - $_.el = $k[--$j]; //#7947 - $_.mw = $k[--$j]; //#7948 - $_.nm = $k[--$j]; //#7949 - $_.val = $k[--$j]; //#7950 - $_.out = $a($_.el); //#7951 - $_.mask = 0; //#7952 - for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#7979 - $_.bar = _1D; //#7954 - $_.ew = 1; //#7955 - var _1F = $_.bar; //#7956 - $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#7956 - for (;;) { //#7975 - $k[$j++] = 'sval'; //#7957 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#7957 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7957 - $_.ncr(); //#7957 - var _1K = $k[--$j]; //#7957 - $_[$k[--$j]] = _1K; //#7957 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#7960 - $k[$j++] = 'sval'; //#7959 - $k[$j++] = $_.sval; //#7959 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#7959 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#7959 - $_.ncr(); //#7959 - var _1Z = $k[--$j]; //#7959 - var _1a = $k[--$j]; //#7959 - $_[$k[--$j]] = $f(_1a - _1Z); //#7959 - } //#7959 - if ($f($_.el - $_.bar) > 2) { //#7969 - $_.lval = 0; //#7962 - for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#7966 - $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#7964 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#7964 - $_.ncr(); //#7964 - $_.lval = $f($k[--$j] + $_.lval); //#7965 - } //#7965 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#7967 - } else { //#7969 - if ($f($_.nm - $_.ew) > $_.mw) { //#7969 - $_.sval = $f($_.sval - 1); //#7969 - } //#7969 - } //#7969 - $_.val = $f($_.val - $_.sval); //#7971 - if ($_.val < 0) { //#7972 - break; //#7972 - } //#7972 - $_.ew = $_.ew + 1; //#7973 - var _24 = $_.bar; //#7974 - $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#7974 - } //#7974 - $_.val = $f($_.val + $_.sval); //#7976 - $_.nm = $f($_.nm - $_.ew); //#7977 - $put($_.out, $_.bar, $_.ew); //#7978 - } //#7978 - $put($_.out, $f($_.el - 1), $_.nm); //#7980 - $k[$j++] = $_.out; //#7981 - }; //#7981 - $k[$j++] = Infinity; //#7986 - var _2H = $_.linkage ? 1 : 0; //#7985 - var _2J = $geti($_.barcode, 4, 13); //#7986 - $k[$j++] = _2H; //#7986 - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#7986 - $k[$j++] = $f($get(_2J, _2K) - 48); //#7986 - } //#7986 - $_.binval = $a(); //#7986 - for (var _2O = 0; _2O <= 12; _2O += 1) { //#7993 - $_.i = _2O; //#7990 - var _2P = $_.binval; //#7991 - var _2Q = $_.i; //#7991 - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#7991 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#7992 - } //#7992 - $_.right = $get($_.binval, 13) % 4537077; //#7994 - var _2c = $_.binval; //#7995 - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#7995 - $_.left = 0; //#7997 - $_.i = true; //#7998 - for (var _2e = 0; _2e <= 13; _2e += 1) { //#8008 - $_.j = _2e; //#8000 - var _2h = $get($_.binval, $_.j); //#8001 - $k[$j++] = _2h; //#8007 - if ((_2h == 0) && $_.i) { //#8006 - $j--; //#8003 - } else { //#8006 - $_.i = false; //#8005 - $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8006 - } //#8006 - } //#8006 - $_.d1 = ~~($_.left / 1597); //#8010 - $_.d2 = $_.left % 1597; //#8011 - $_.d3 = ~~($_.right / 1597); //#8012 - $_.d4 = $_.right % 1597; //#8013 - if (!bwipp_databaromni.__8030__) { //#8030 - $_ = Object.create($_); //#8030 - $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8022 - $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8029 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8029 - bwipp_databaromni.__8030__ = 1; //#8029 - $_ = Object.getPrototypeOf($_); //#8029 - } //#8029 - $_.i = 0; //#8032 - for (;;) { //#8042 - if ($_.d1 <= $get($_.tab164, $_.i)) { //#8040 - var _2z = $geti($_.tab164, $_.i + 1, 7); //#8034 - for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8034 - $k[$j++] = $get(_2z, _30); //#8034 - } //#8034 - $_.d1te = $k[--$j]; //#8035 - $_.d1to = $k[--$j]; //#8035 - $_.d1mwe = $k[--$j]; //#8036 - $_.d1mwo = $k[--$j]; //#8036 - $_.d1ele = $k[--$j]; //#8037 - $_.d1elo = $k[--$j]; //#8037 - $_.d1gs = $k[--$j]; //#8038 - break; //#8039 - } //#8039 - $_.i = $_.i + 8; //#8041 - } //#8041 - $_.i = 0; //#8044 - for (;;) { //#8054 - if ($_.d2 <= $get($_.tab154, $_.i)) { //#8052 - var _3H = $geti($_.tab154, $_.i + 1, 7); //#8046 - for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8046 - $k[$j++] = $get(_3H, _3I); //#8046 - } //#8046 - $_.d2te = $k[--$j]; //#8047 - $_.d2to = $k[--$j]; //#8047 - $_.d2mwe = $k[--$j]; //#8048 - $_.d2mwo = $k[--$j]; //#8048 - $_.d2ele = $k[--$j]; //#8049 - $_.d2elo = $k[--$j]; //#8049 - $_.d2gs = $k[--$j]; //#8050 - break; //#8051 - } //#8051 - $_.i = $_.i + 8; //#8053 - } //#8053 - $_.i = 0; //#8056 - for (;;) { //#8066 - if ($_.d3 <= $get($_.tab164, $_.i)) { //#8064 - var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8058 - for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8058 - $k[$j++] = $get(_3Z, _3a); //#8058 - } //#8058 - $_.d3te = $k[--$j]; //#8059 - $_.d3to = $k[--$j]; //#8059 - $_.d3mwe = $k[--$j]; //#8060 - $_.d3mwo = $k[--$j]; //#8060 - $_.d3ele = $k[--$j]; //#8061 - $_.d3elo = $k[--$j]; //#8061 - $_.d3gs = $k[--$j]; //#8062 - break; //#8063 - } //#8063 - $_.i = $_.i + 8; //#8065 - } //#8065 - $_.i = 0; //#8068 - for (;;) { //#8078 - if ($_.d4 <= $get($_.tab154, $_.i)) { //#8076 - var _3r = $geti($_.tab154, $_.i + 1, 7); //#8070 - for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8070 - $k[$j++] = $get(_3r, _3s); //#8070 - } //#8070 - $_.d4te = $k[--$j]; //#8071 - $_.d4to = $k[--$j]; //#8071 - $_.d4mwe = $k[--$j]; //#8072 - $_.d4mwo = $k[--$j]; //#8072 - $_.d4ele = $k[--$j]; //#8073 - $_.d4elo = $k[--$j]; //#8073 - $_.d4gs = $k[--$j]; //#8074 - break; //#8075 - } //#8075 - $_.i = $_.i + 8; //#8077 - } //#8077 - $k[$j++] = 'd1wo'; //#8080 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8080 - $k[$j++] = $_.d1elo; //#8080 - $k[$j++] = $_.d1mwo; //#8080 - $k[$j++] = 4; //#8080 - $k[$j++] = false; //#8080 - $_.getRSSwidths(); //#8080 - var _48 = $k[--$j]; //#8080 - $_[$k[--$j]] = _48; //#8080 - $k[$j++] = 'd1we'; //#8081 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8081 - $k[$j++] = $_.d1ele; //#8081 - $k[$j++] = $_.d1mwe; //#8081 - $k[$j++] = 4; //#8081 - $k[$j++] = true; //#8081 - $_.getRSSwidths(); //#8081 - var _4F = $k[--$j]; //#8081 - $_[$k[--$j]] = _4F; //#8081 - $k[$j++] = 'd2wo'; //#8082 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8082 - $k[$j++] = $_.d2elo; //#8082 - $k[$j++] = $_.d2mwo; //#8082 - $k[$j++] = 4; //#8082 - $k[$j++] = true; //#8082 - $_.getRSSwidths(); //#8082 - var _4M = $k[--$j]; //#8082 - $_[$k[--$j]] = _4M; //#8082 - $k[$j++] = 'd2we'; //#8083 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8083 - $k[$j++] = $_.d2ele; //#8083 - $k[$j++] = $_.d2mwe; //#8083 - $k[$j++] = 4; //#8083 - $k[$j++] = false; //#8083 - $_.getRSSwidths(); //#8083 - var _4T = $k[--$j]; //#8083 - $_[$k[--$j]] = _4T; //#8083 - $k[$j++] = 'd3wo'; //#8084 - $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8084 - $k[$j++] = $_.d3elo; //#8084 - $k[$j++] = $_.d3mwo; //#8084 - $k[$j++] = 4; //#8084 - $k[$j++] = false; //#8084 - $_.getRSSwidths(); //#8084 - var _4a = $k[--$j]; //#8084 - $_[$k[--$j]] = _4a; //#8084 - $k[$j++] = 'd3we'; //#8085 - $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8085 - $k[$j++] = $_.d3ele; //#8085 - $k[$j++] = $_.d3mwe; //#8085 - $k[$j++] = 4; //#8085 - $k[$j++] = true; //#8085 - $_.getRSSwidths(); //#8085 - var _4h = $k[--$j]; //#8085 - $_[$k[--$j]] = _4h; //#8085 - $k[$j++] = 'd4wo'; //#8086 - $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8086 - $k[$j++] = $_.d4elo; //#8086 - $k[$j++] = $_.d4mwo; //#8086 - $k[$j++] = 4; //#8086 - $k[$j++] = true; //#8086 - $_.getRSSwidths(); //#8086 - var _4o = $k[--$j]; //#8086 - $_[$k[--$j]] = _4o; //#8086 - $k[$j++] = 'd4we'; //#8087 - $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8087 - $k[$j++] = $_.d4ele; //#8087 - $k[$j++] = $_.d4mwe; //#8087 - $k[$j++] = 4; //#8087 - $k[$j++] = false; //#8087 - $_.getRSSwidths(); //#8087 - var _4v = $k[--$j]; //#8087 - $_[$k[--$j]] = _4v; //#8087 - $_.d1w = $a(8); //#8089 - for (var _4y = 0; _4y <= 3; _4y += 1) { //#8094 - $_.i = _4y; //#8091 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8092 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8093 - } //#8093 - $_.d2w = $a(8); //#8096 - for (var _5A = 0; _5A <= 3; _5A += 1) { //#8101 - $_.i = _5A; //#8098 - $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8099 - $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8100 - } //#8100 - $_.d3w = $a(8); //#8103 - for (var _5M = 0; _5M <= 3; _5M += 1) { //#8108 - $_.i = _5M; //#8105 - $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8106 - $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8107 - } //#8107 - $_.d4w = $a(8); //#8110 - for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8115 - $_.i = _5Y; //#8112 - $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8113 - $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8114 - } //#8114 - $k[$j++] = Infinity; //#8121 - var _5j = $_.d1w; //#8118 - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8118 - $k[$j++] = $get(_5j, _5k); //#8118 - } //#8118 - var _5n = $_.d2w; //#8119 - for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8119 - $k[$j++] = $get(_5n, _5o); //#8119 - } //#8119 - var _5r = $_.d3w; //#8120 - for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8120 - $k[$j++] = $get(_5r, _5s); //#8120 - } //#8120 - var _5v = $_.d4w; //#8121 - for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8121 - $k[$j++] = $get(_5v, _5w); //#8121 - } //#8121 - $_.widths = $a(); //#8121 - if (!bwipp_databaromni.__8137__) { //#8137 - $_ = Object.create($_); //#8137 - $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8130 - $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8136 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8136 - bwipp_databaromni.__8137__ = 1; //#8136 - $_ = Object.getPrototypeOf($_); //#8136 - } //#8136 - $_.checksum = 0; //#8139 - for (var _63 = 0; _63 <= 31; _63 += 1) { //#8143 - $_.i = _63; //#8141 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8142 - } //#8142 - $_.checksum = $_.checksum % 79; //#8144 - if ($_.checksum >= 8) { //#8145 - $_.checksum = $f($_.checksum + 1); //#8145 - } //#8145 - if ($_.checksum >= 72) { //#8146 - $_.checksum = $f($_.checksum + 1); //#8146 - } //#8146 - $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8147 - $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8148 - $_.checkrt = $a(5); //#8149 - for (var _6N = 0; _6N <= 4; _6N += 1) { //#8153 - $_.i = _6N; //#8151 - $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8152 - } //#8152 - if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8275 - $k[$j++] = Infinity; //#8160 - var _6V = $_.d1w; //#8159 - $k[$j++] = 1; //#8159 - for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8159 - $k[$j++] = $get(_6V, _6W); //#8159 - } //#8159 - var _6Z = $_.checklt; //#8159 - for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8159 - $k[$j++] = $get(_6Z, _6a); //#8159 - } //#8159 - var _6d = $_.d2w; //#8159 - for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8159 - $k[$j++] = $get(_6d, _6e); //#8159 - } //#8159 - var _6h = $_.d4w; //#8160 - for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8160 - $k[$j++] = $get(_6h, _6i); //#8160 - } //#8160 - var _6l = $_.checkrt; //#8160 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8160 - $k[$j++] = $get(_6l, _6m); //#8160 - } //#8160 - var _6p = $_.d3w; //#8160 - for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8160 - $k[$j++] = $get(_6p, _6q); //#8160 - } //#8160 - $k[$j++] = 1; //#8160 - $k[$j++] = 1; //#8160 - $_.sbs = $a(); //#8160 - $k[$j++] = Infinity; //#8170 - var _6u = $_.sbs; //#8165 - $k[$j++] = Infinity; //#8166 - for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8166 - $k[$j++] = $_.height; //#8166 - } //#8166 - var _6z = $a(); //#8166 - $k[$j++] = Infinity; //#8167 - for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8167 - $k[$j++] = 0; //#8167 - } //#8167 - var _73 = $a(); //#8167 - $k[$j++] = 'ren'; //#8170 - $k[$j++] = bwipp_renlinear; //#8170 - $k[$j++] = 'sbs'; //#8170 - $k[$j++] = _6u; //#8170 - $k[$j++] = 'bhs'; //#8170 - $k[$j++] = _6z; //#8170 - $k[$j++] = 'bbs'; //#8170 - $k[$j++] = _73; //#8170 - $k[$j++] = 'txt'; //#8170 - $k[$j++] = $_.txt; //#8170 - $k[$j++] = 'textxalign'; //#8170 - $k[$j++] = "center"; //#8170 - $k[$j++] = 'opt'; //#8170 - $k[$j++] = $_.options; //#8170 - var _76 = $d(); //#8170 - $k[$j++] = _76; //#8173 - if (!$_.dontdraw) { //#8173 - bwipp_renlinear(); //#8173 - } //#8173 - } else { //#8275 - $k[$j++] = Infinity; //#8177 - var _78 = $_.d1w; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8177 - $k[$j++] = $get(_78, _79); //#8177 - } //#8177 - var _7C = $_.checklt; //#8177 - for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8177 - $k[$j++] = $get(_7C, _7D); //#8177 - } //#8177 - var _7G = $_.d2w; //#8177 - for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8177 - $k[$j++] = $get(_7G, _7H); //#8177 - } //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 1; //#8177 - $k[$j++] = 0; //#8177 - $_.top = $a(); //#8177 - $k[$j++] = Infinity; //#8178 - var _7L = $_.d4w; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8178 - $k[$j++] = $get(_7L, _7M); //#8178 - } //#8178 - var _7P = $_.checkrt; //#8178 - for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8178 - $k[$j++] = $get(_7P, _7Q); //#8178 - } //#8178 - var _7T = $_.d3w; //#8178 - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8178 - $k[$j++] = $get(_7T, _7U); //#8178 - } //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 1; //#8178 - $k[$j++] = 0; //#8178 - $_.bot = $a(); //#8178 - for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8183 - $_.i = _7Y; //#8180 - for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8181 - $k[$j++] = 0; //#8181 - } //#8181 - for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8182 - $k[$j++] = 1; //#8182 - } //#8182 - } //#8182 - $astore($a(50)); //#8184 - $_.top = $k[--$j]; //#8184 - for (var _7l = 0; _7l <= 24; _7l += 2) { //#8189 - $_.i = _7l; //#8186 - for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8187 - $k[$j++] = 1; //#8187 - } //#8187 - for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8188 - $k[$j++] = 0; //#8188 + $_.oe = $k[--$j]; //#8088 + $_.el = $k[--$j]; //#8089 + $_.mw = $k[--$j]; //#8090 + $_.nm = $k[--$j]; //#8091 + $_.val = $k[--$j]; //#8092 + $_.out = $a($_.el); //#8093 + $_.mask = 0; //#8094 + for (var _1D = 0, _1C = $f($_.el - 2); _1D <= _1C; _1D += 1) { //#8121 + $_.bar = _1D; //#8096 + $_.ew = 1; //#8097 + var _1F = $_.bar; //#8098 + $_.mask = $_.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#8098 + for (;;) { //#8117 + $k[$j++] = 'sval'; //#8099 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8099 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8099 + $_.ncr(); //#8099 + var _1K = $k[--$j]; //#8099 + $_[$k[--$j]] = _1K; //#8099 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8102 + $k[$j++] = 'sval'; //#8101 + $k[$j++] = $_.sval; //#8101 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8101 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8101 + $_.ncr(); //#8101 + var _1Z = $k[--$j]; //#8101 + var _1a = $k[--$j]; //#8101 + $_[$k[--$j]] = $f(_1a - _1Z); //#8101 + } //#8101 + if ($f($_.el - $_.bar) > 2) { //#8111 + $_.lval = 0; //#8104 + for (var _1k = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1j = $f($_.mw + 1); _1k >= _1j; _1k -= 1) { //#8108 + $k[$j++] = $f(($f($f($_.nm - _1k) - $_.ew)) - 1); //#8106 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8106 + $_.ncr(); //#8106 + $_.lval = $f($k[--$j] + $_.lval); //#8107 + } //#8107 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8109 + } else { //#8111 + if ($f($_.nm - $_.ew) > $_.mw) { //#8111 + $_.sval = $f($_.sval - 1); //#8111 + } //#8111 + } //#8111 + $_.val = $f($_.val - $_.sval); //#8113 + if ($_.val < 0) { //#8114 + break; //#8114 + } //#8114 + $_.ew = $_.ew + 1; //#8115 + var _24 = $_.bar; //#8116 + $_.mask = $_.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#8116 + } //#8116 + $_.val = $f($_.val + $_.sval); //#8118 + $_.nm = $f($_.nm - $_.ew); //#8119 + $put($_.out, $_.bar, $_.ew); //#8120 + } //#8120 + $put($_.out, $f($_.el - 1), $_.nm); //#8122 + $k[$j++] = $_.out; //#8123 + }; //#8123 + $k[$j++] = Infinity; //#8126 + var _2H = $_.linkage ? 1 : 0; //#8127 + var _2J = $geti($_.barcode, 4, 13); //#8128 + $k[$j++] = _2H; //#8128 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#8128 + $k[$j++] = $f($get(_2J, _2K) - 48); //#8128 + } //#8128 + $_.binval = $a(); //#8128 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#8135 + $_.i = _2O; //#8132 + var _2P = $_.binval; //#8133 + var _2Q = $_.i; //#8133 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($_.binval, $_.i) % 4537077) * 10))); //#8133 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 4537077)); //#8134 + } //#8134 + $_.right = $get($_.binval, 13) % 4537077; //#8136 + var _2c = $_.binval; //#8137 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#8137 + $_.left = 0; //#8139 + $_.i = true; //#8140 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#8150 + $_.j = _2e; //#8142 + var _2h = $get($_.binval, $_.j); //#8143 + $k[$j++] = _2h; //#8149 + if ((_2h == 0) && $_.i) { //#8148 + $j--; //#8145 + } else { //#8148 + $_.i = false; //#8147 + $_.left = $f($_.left + ($k[--$j] * (~~Math.pow(10, 13 - $_.j)))); //#8148 + } //#8148 + } //#8148 + $_.d1 = ~~($_.left / 1597); //#8152 + $_.d2 = $_.left % 1597; //#8153 + $_.d3 = ~~($_.right / 1597); //#8154 + $_.d4 = $_.right % 1597; //#8155 + if (!bwipp_databaromni.__8172__) { //#8172 + $_ = Object.create($_); //#8172 + $_.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#8164 + $_.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#8171 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8171 + bwipp_databaromni.__8172__ = 1; //#8171 + $_ = Object.getPrototypeOf($_); //#8171 + } //#8171 + $_.i = 0; //#8174 + for (;;) { //#8184 + if ($_.d1 <= $get($_.tab164, $_.i)) { //#8182 + var _2z = $geti($_.tab164, $_.i + 1, 7); //#8176 + for (var _30 = 0, _31 = _2z.length; _30 < _31; _30++) { //#8176 + $k[$j++] = $get(_2z, _30); //#8176 + } //#8176 + $_.d1te = $k[--$j]; //#8177 + $_.d1to = $k[--$j]; //#8177 + $_.d1mwe = $k[--$j]; //#8178 + $_.d1mwo = $k[--$j]; //#8178 + $_.d1ele = $k[--$j]; //#8179 + $_.d1elo = $k[--$j]; //#8179 + $_.d1gs = $k[--$j]; //#8180 + break; //#8181 + } //#8181 + $_.i = $_.i + 8; //#8183 + } //#8183 + $_.i = 0; //#8186 + for (;;) { //#8196 + if ($_.d2 <= $get($_.tab154, $_.i)) { //#8194 + var _3H = $geti($_.tab154, $_.i + 1, 7); //#8188 + for (var _3I = 0, _3J = _3H.length; _3I < _3J; _3I++) { //#8188 + $k[$j++] = $get(_3H, _3I); //#8188 } //#8188 - } //#8188 - $astore($a(50)); //#8190 - $_.bot = $k[--$j]; //#8190 - if ($eq($_.format, "stacked")) { //#8212 - $_.sep = $a(50); //#8194 - $put($_.sep, 0, 0); //#8195 - for (var _81 = 1; _81 <= 49; _81 += 1) { //#8203 - $_.i = _81; //#8197 - if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8199 - } else { //#8201 - $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8201 - } //#8201 - } //#8201 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8204 - $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8205 - $k[$j++] = Infinity; //#8209 - for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8207 - $aload($_.top); //#8207 - } //#8207 - $aload($_.sep); //#8208 - for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8209 - $aload($_.bot); //#8209 - } //#8209 - $_.pixs = $a(); //#8209 - $_.pixy = ~~($_.pixs.length / 50); //#8211 - } //#8211 - if ($eq($_.format, "stackedomni")) { //#8262 - $k[$j++] = Infinity; //#8216 - $forall($_.top, function() { //#8216 - var _8X = $k[--$j]; //#8216 - $k[$j++] = $f(1 - _8X); //#8216 - }); //#8216 - $_.sep1 = $a(); //#8216 - $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8217 - $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8218 - for (var _8d = 18; _8d <= 30; _8d += 1) { //#8231 - $_.i = _8d; //#8220 - if ($get($_.top, $_.i) == 0) { //#8228 - if ($get($_.top, $_.i - 1) == 1) { //#8225 - $k[$j++] = 1; //#8223 - } else { //#8225 - var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8225 - $k[$j++] = _8n; //#8225 - } //#8225 - } else { //#8228 - $k[$j++] = 0; //#8228 - } //#8228 - $put($_.sep1, $_.i, $k[--$j]); //#8230 - } //#8230 - $k[$j++] = Infinity; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 1; //#8232 - } //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $k[$j++] = 0; //#8232 - $_.sep2 = $a(); //#8232 - $k[$j++] = Infinity; //#8233 - $forall($_.bot, function() { //#8233 - var _8v = $k[--$j]; //#8233 - $k[$j++] = $f(1 - _8v); //#8233 - }); //#8233 - $_.sep3 = $a(); //#8233 - $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8234 - $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8235 - for (var _91 = 19; _91 <= 31; _91 += 1) { //#8248 - $_.i = _91; //#8237 - if ($get($_.bot, $_.i) == 0) { //#8245 - if ($get($_.bot, $_.i - 1) == 1) { //#8242 - $k[$j++] = 1; //#8240 - } else { //#8242 - var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8242 - $k[$j++] = _9B; //#8242 - } //#8242 - } else { //#8245 - $k[$j++] = 0; //#8245 - } //#8245 - $put($_.sep3, $_.i, $k[--$j]); //#8247 - } //#8247 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8249 - $k[$j++] = true; //#8250 - for (var _9G = 0; _9G <= 12; _9G += 1) { //#8250 - var _9L = $k[--$j]; //#8250 - $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8250 - } //#8250 - if ($k[--$j]) { //#8253 - $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8252 - } //#8252 - $k[$j++] = Infinity; //#8259 - for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8255 - $aload($_.top); //#8255 - } //#8255 - $aload($_.sep1); //#8256 - $aload($_.sep2); //#8257 - $aload($_.sep3); //#8258 - for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8259 - $aload($_.bot); //#8259 - } //#8259 - $_.pixs = $a(); //#8259 - $_.pixy = ~~($_.pixs.length / 50); //#8261 - } //#8261 + $_.d2te = $k[--$j]; //#8189 + $_.d2to = $k[--$j]; //#8189 + $_.d2mwe = $k[--$j]; //#8190 + $_.d2mwo = $k[--$j]; //#8190 + $_.d2ele = $k[--$j]; //#8191 + $_.d2elo = $k[--$j]; //#8191 + $_.d2gs = $k[--$j]; //#8192 + break; //#8193 + } //#8193 + $_.i = $_.i + 8; //#8195 + } //#8195 + $_.i = 0; //#8198 + for (;;) { //#8208 + if ($_.d3 <= $get($_.tab164, $_.i)) { //#8206 + var _3Z = $geti($_.tab164, $_.i + 1, 7); //#8200 + for (var _3a = 0, _3b = _3Z.length; _3a < _3b; _3a++) { //#8200 + $k[$j++] = $get(_3Z, _3a); //#8200 + } //#8200 + $_.d3te = $k[--$j]; //#8201 + $_.d3to = $k[--$j]; //#8201 + $_.d3mwe = $k[--$j]; //#8202 + $_.d3mwo = $k[--$j]; //#8202 + $_.d3ele = $k[--$j]; //#8203 + $_.d3elo = $k[--$j]; //#8203 + $_.d3gs = $k[--$j]; //#8204 + break; //#8205 + } //#8205 + $_.i = $_.i + 8; //#8207 + } //#8207 + $_.i = 0; //#8210 + for (;;) { //#8220 + if ($_.d4 <= $get($_.tab154, $_.i)) { //#8218 + var _3r = $geti($_.tab154, $_.i + 1, 7); //#8212 + for (var _3s = 0, _3t = _3r.length; _3s < _3t; _3s++) { //#8212 + $k[$j++] = $get(_3r, _3s); //#8212 + } //#8212 + $_.d4te = $k[--$j]; //#8213 + $_.d4to = $k[--$j]; //#8213 + $_.d4mwe = $k[--$j]; //#8214 + $_.d4mwo = $k[--$j]; //#8214 + $_.d4ele = $k[--$j]; //#8215 + $_.d4elo = $k[--$j]; //#8215 + $_.d4gs = $k[--$j]; //#8216 + break; //#8217 + } //#8217 + $_.i = $_.i + 8; //#8219 + } //#8219 + $k[$j++] = 'd1wo'; //#8222 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8222 + $k[$j++] = $_.d1elo; //#8222 + $k[$j++] = $_.d1mwo; //#8222 + $k[$j++] = 4; //#8222 + $k[$j++] = false; //#8222 + $_.getRSSwidths(); //#8222 + var _48 = $k[--$j]; //#8222 + $_[$k[--$j]] = _48; //#8222 + $k[$j++] = 'd1we'; //#8223 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8223 + $k[$j++] = $_.d1ele; //#8223 + $k[$j++] = $_.d1mwe; //#8223 + $k[$j++] = 4; //#8223 + $k[$j++] = true; //#8223 + $_.getRSSwidths(); //#8223 + var _4F = $k[--$j]; //#8223 + $_[$k[--$j]] = _4F; //#8223 + $k[$j++] = 'd2wo'; //#8224 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2to; //#8224 + $k[$j++] = $_.d2elo; //#8224 + $k[$j++] = $_.d2mwo; //#8224 + $k[$j++] = 4; //#8224 + $k[$j++] = true; //#8224 + $_.getRSSwidths(); //#8224 + var _4M = $k[--$j]; //#8224 + $_[$k[--$j]] = _4M; //#8224 + $k[$j++] = 'd2we'; //#8225 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2to); //#8225 + $k[$j++] = $_.d2ele; //#8225 + $k[$j++] = $_.d2mwe; //#8225 + $k[$j++] = 4; //#8225 + $k[$j++] = false; //#8225 + $_.getRSSwidths(); //#8225 + var _4T = $k[--$j]; //#8225 + $_[$k[--$j]] = _4T; //#8225 + $k[$j++] = 'd3wo'; //#8226 + $k[$j++] = ~~($f($_.d3 - $_.d3gs) / $_.d3te); //#8226 + $k[$j++] = $_.d3elo; //#8226 + $k[$j++] = $_.d3mwo; //#8226 + $k[$j++] = 4; //#8226 + $k[$j++] = false; //#8226 + $_.getRSSwidths(); //#8226 + var _4a = $k[--$j]; //#8226 + $_[$k[--$j]] = _4a; //#8226 + $k[$j++] = 'd3we'; //#8227 + $k[$j++] = $f($_.d3 - $_.d3gs) % $_.d3te; //#8227 + $k[$j++] = $_.d3ele; //#8227 + $k[$j++] = $_.d3mwe; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $_.getRSSwidths(); //#8227 + var _4h = $k[--$j]; //#8227 + $_[$k[--$j]] = _4h; //#8227 + $k[$j++] = 'd4wo'; //#8228 + $k[$j++] = $f($_.d4 - $_.d4gs) % $_.d4to; //#8228 + $k[$j++] = $_.d4elo; //#8228 + $k[$j++] = $_.d4mwo; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = true; //#8228 + $_.getRSSwidths(); //#8228 + var _4o = $k[--$j]; //#8228 + $_[$k[--$j]] = _4o; //#8228 + $k[$j++] = 'd4we'; //#8229 + $k[$j++] = ~~($f($_.d4 - $_.d4gs) / $_.d4to); //#8229 + $k[$j++] = $_.d4ele; //#8229 + $k[$j++] = $_.d4mwe; //#8229 + $k[$j++] = 4; //#8229 + $k[$j++] = false; //#8229 + $_.getRSSwidths(); //#8229 + var _4v = $k[--$j]; //#8229 + $_[$k[--$j]] = _4v; //#8229 + $_.d1w = $a(8); //#8231 + for (var _4y = 0; _4y <= 3; _4y += 1) { //#8236 + $_.i = _4y; //#8233 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8234 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8235 + } //#8235 + $_.d2w = $a(8); //#8238 + for (var _5A = 0; _5A <= 3; _5A += 1) { //#8243 + $_.i = _5A; //#8240 + $put($_.d2w, 7 - ($_.i * 2), $get($_.d2wo, $_.i)); //#8241 + $put($_.d2w, 6 - ($_.i * 2), $get($_.d2we, $_.i)); //#8242 + } //#8242 + $_.d3w = $a(8); //#8245 + for (var _5M = 0; _5M <= 3; _5M += 1) { //#8250 + $_.i = _5M; //#8247 + $put($_.d3w, 7 - ($_.i * 2), $get($_.d3wo, $_.i)); //#8248 + $put($_.d3w, 6 - ($_.i * 2), $get($_.d3we, $_.i)); //#8249 + } //#8249 + $_.d4w = $a(8); //#8252 + for (var _5Y = 0; _5Y <= 3; _5Y += 1) { //#8257 + $_.i = _5Y; //#8254 + $put($_.d4w, $_.i * 2, $get($_.d4wo, $_.i)); //#8255 + $put($_.d4w, ($_.i * 2) + 1, $get($_.d4we, $_.i)); //#8256 + } //#8256 + $k[$j++] = Infinity; //#8259 + var _5j = $_.d1w; //#8260 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#8260 + $k[$j++] = $get(_5j, _5k); //#8260 + } //#8260 + var _5n = $_.d2w; //#8261 + for (var _5o = 0, _5p = _5n.length; _5o < _5p; _5o++) { //#8261 + $k[$j++] = $get(_5n, _5o); //#8261 + } //#8261 + var _5r = $_.d3w; //#8262 + for (var _5s = 0, _5t = _5r.length; _5s < _5t; _5s++) { //#8262 + $k[$j++] = $get(_5r, _5s); //#8262 + } //#8262 + var _5v = $_.d4w; //#8263 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#8263 + $k[$j++] = $get(_5v, _5w); //#8263 + } //#8263 + $_.widths = $a(); //#8263 + if (!bwipp_databaromni.__8279__) { //#8279 + $_ = Object.create($_); //#8279 + $_.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#8272 + $_.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#8278 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databaromni.$ctx[id] = $_[id]); //#8278 + bwipp_databaromni.__8279__ = 1; //#8278 + $_ = Object.getPrototypeOf($_); //#8278 + } //#8278 + $_.checksum = 0; //#8281 + for (var _63 = 0; _63 <= 31; _63 += 1) { //#8285 + $_.i = _63; //#8283 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8284 + } //#8284 + $_.checksum = $_.checksum % 79; //#8286 + if ($_.checksum >= 8) { //#8287 + $_.checksum = $f($_.checksum + 1); //#8287 + } //#8287 + if ($_.checksum >= 72) { //#8288 + $_.checksum = $f($_.checksum + 1); //#8288 + } //#8288 + $_.checklt = $geti($_.checkwidths, (~~($_.checksum / 9)) * 5, 5); //#8289 + $_.checkrtrev = $geti($_.checkwidths, ($_.checksum % 9) * 5, 5); //#8290 + $_.checkrt = $a(5); //#8291 + for (var _6N = 0; _6N <= 4; _6N += 1) { //#8295 + $_.i = _6N; //#8293 + $put($_.checkrt, $_.i, $get($_.checkrtrev, 4 - $_.i)); //#8294 + } //#8294 + if ($eq($_.format, "omni") || $eq($_.format, "truncated")) { //#8423 + $k[$j++] = Infinity; //#8300 + var _6V = $_.d1w; //#8301 + $k[$j++] = 1; //#8301 + for (var _6W = 0, _6X = _6V.length; _6W < _6X; _6W++) { //#8301 + $k[$j++] = $get(_6V, _6W); //#8301 + } //#8301 + var _6Z = $_.checklt; //#8301 + for (var _6a = 0, _6b = _6Z.length; _6a < _6b; _6a++) { //#8301 + $k[$j++] = $get(_6Z, _6a); //#8301 + } //#8301 + var _6d = $_.d2w; //#8301 + for (var _6e = 0, _6f = _6d.length; _6e < _6f; _6e++) { //#8301 + $k[$j++] = $get(_6d, _6e); //#8301 + } //#8301 + var _6h = $_.d4w; //#8302 + for (var _6i = 0, _6j = _6h.length; _6i < _6j; _6i++) { //#8302 + $k[$j++] = $get(_6h, _6i); //#8302 + } //#8302 + var _6l = $_.checkrt; //#8302 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#8302 + $k[$j++] = $get(_6l, _6m); //#8302 + } //#8302 + var _6p = $_.d3w; //#8302 + for (var _6q = 0, _6r = _6p.length; _6q < _6r; _6q++) { //#8302 + $k[$j++] = $get(_6p, _6q); //#8302 + } //#8302 + $k[$j++] = 1; //#8302 + $k[$j++] = 1; //#8302 + $_.sbs = $a(); //#8302 + $k[$j++] = Infinity; //#8305 + var _6u = $_.sbs; //#8307 + $k[$j++] = Infinity; //#8308 + for (var _6w = 0, _6x = ~~(($_.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#8308 + $k[$j++] = $_.height; //#8308 + } //#8308 + var _6z = $a(); //#8308 + $k[$j++] = Infinity; //#8309 + for (var _71 = 0, _72 = ~~(($_.sbs.length + 1) / 2); _71 < _72; _71++) { //#8309 + $k[$j++] = 0; //#8309 + } //#8309 + var _73 = $a(); //#8309 + $k[$j++] = 'ren'; //#8314 + $k[$j++] = bwipp_renlinear; //#8314 + $k[$j++] = 'sbs'; //#8314 + $k[$j++] = _6u; //#8314 + $k[$j++] = 'bhs'; //#8314 + $k[$j++] = _6z; //#8314 + $k[$j++] = 'bbs'; //#8314 + $k[$j++] = _73; //#8314 + $k[$j++] = 'txt'; //#8314 + $k[$j++] = $_.txt; //#8314 + $k[$j++] = 'textxalign'; //#8314 + $k[$j++] = "center"; //#8314 + $k[$j++] = 'borderleft'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'borderright'; //#8314 + $k[$j++] = 0; //#8314 + $k[$j++] = 'opt'; //#8314 + $k[$j++] = $_.options; //#8314 + var _76 = $d(); //#8314 + $k[$j++] = _76; //#8317 + if (!$_.dontdraw) { //#8317 + bwipp_renlinear(); //#8317 + } //#8317 + } else { //#8423 + $k[$j++] = Infinity; //#8321 + var _78 = $_.d1w; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + for (var _79 = 0, _7A = _78.length; _79 < _7A; _79++) { //#8321 + $k[$j++] = $get(_78, _79); //#8321 + } //#8321 + var _7C = $_.checklt; //#8321 + for (var _7D = 0, _7E = _7C.length; _7D < _7E; _7D++) { //#8321 + $k[$j++] = $get(_7C, _7D); //#8321 + } //#8321 + var _7G = $_.d2w; //#8321 + for (var _7H = 0, _7I = _7G.length; _7H < _7I; _7H++) { //#8321 + $k[$j++] = $get(_7G, _7H); //#8321 + } //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 1; //#8321 + $k[$j++] = 0; //#8321 + $_.top = $a(); //#8321 + $k[$j++] = Infinity; //#8322 + var _7L = $_.d4w; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + for (var _7M = 0, _7N = _7L.length; _7M < _7N; _7M++) { //#8322 + $k[$j++] = $get(_7L, _7M); //#8322 + } //#8322 + var _7P = $_.checkrt; //#8322 + for (var _7Q = 0, _7R = _7P.length; _7Q < _7R; _7Q++) { //#8322 + $k[$j++] = $get(_7P, _7Q); //#8322 + } //#8322 + var _7T = $_.d3w; //#8322 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#8322 + $k[$j++] = $get(_7T, _7U); //#8322 + } //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 1; //#8322 + $k[$j++] = 0; //#8322 + $_.bot = $a(); //#8322 + for (var _7Y = 0; _7Y <= 24; _7Y += 2) { //#8327 + $_.i = _7Y; //#8324 + for (var _7c = 0, _7d = $get($_.top, $_.i); _7c < _7d; _7c++) { //#8325 + $k[$j++] = 0; //#8325 + } //#8325 + for (var _7h = 0, _7i = $get($_.top, $_.i + 1); _7h < _7i; _7h++) { //#8326 + $k[$j++] = 1; //#8326 + } //#8326 + } //#8326 + $astore($a(50)); //#8328 + $_.top = $k[--$j]; //#8328 + for (var _7l = 0; _7l <= 24; _7l += 2) { //#8333 + $_.i = _7l; //#8330 + for (var _7p = 0, _7q = $get($_.bot, $_.i); _7p < _7q; _7p++) { //#8331 + $k[$j++] = 1; //#8331 + } //#8331 + for (var _7u = 0, _7v = $get($_.bot, $_.i + 1); _7u < _7v; _7u++) { //#8332 + $k[$j++] = 0; //#8332 + } //#8332 + } //#8332 + $astore($a(50)); //#8334 + $_.bot = $k[--$j]; //#8334 + if ($eq($_.format, "stacked")) { //#8356 + $_.sep = $a(50); //#8338 + $put($_.sep, 0, 0); //#8339 + for (var _81 = 1; _81 <= 49; _81 += 1) { //#8347 + $_.i = _81; //#8341 + if ($eq($get($_.top, $_.i), $get($_.bot, $_.i))) { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.top, $_.i))); //#8343 + } else { //#8345 + $put($_.sep, $_.i, $f(1 - $get($_.sep, $_.i - 1))); //#8345 + } //#8345 + } //#8345 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#8348 + $puti($_.sep, 46, $a([0, 0, 0, 0])); //#8349 + $k[$j++] = Infinity; //#8350 + for (var _8M = 0, _8N = 5; _8M < _8N; _8M++) { //#8351 + $aload($_.top); //#8351 + } //#8351 + $aload($_.sep); //#8352 + for (var _8Q = 0, _8R = 7; _8Q < _8R; _8Q++) { //#8353 + $aload($_.bot); //#8353 + } //#8353 + $_.pixs = $a(); //#8353 + $_.pixy = ~~($_.pixs.length / 50); //#8355 + } //#8355 + if ($eq($_.format, "stackedomni")) { //#8406 + $k[$j++] = Infinity; //#8360 + $forall($_.top, function() { //#8360 + var _8X = $k[--$j]; //#8360 + $k[$j++] = $f(1 - _8X); //#8360 + }); //#8360 + $_.sep1 = $a(); //#8360 + $puti($_.sep1, 0, $a([0, 0, 0, 0])); //#8361 + $puti($_.sep1, 46, $a([0, 0, 0, 0])); //#8362 + for (var _8d = 18; _8d <= 30; _8d += 1) { //#8375 + $_.i = _8d; //#8364 + if ($get($_.top, $_.i) == 0) { //#8372 + if ($get($_.top, $_.i - 1) == 1) { //#8369 + $k[$j++] = 1; //#8367 + } else { //#8369 + var _8n = ($get($_.sep1, $_.i - 1) == 0) ? 1 : 0; //#8369 + $k[$j++] = _8n; //#8369 + } //#8369 + } else { //#8372 + $k[$j++] = 0; //#8372 + } //#8372 + $put($_.sep1, $_.i, $k[--$j]); //#8374 + } //#8374 + $k[$j++] = Infinity; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + for (var _8r = 0, _8s = 21; _8r < _8s; _8r++) { //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 1; //#8376 + } //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $k[$j++] = 0; //#8376 + $_.sep2 = $a(); //#8376 + $k[$j++] = Infinity; //#8377 + $forall($_.bot, function() { //#8377 + var _8v = $k[--$j]; //#8377 + $k[$j++] = $f(1 - _8v); //#8377 + }); //#8377 + $_.sep3 = $a(); //#8377 + $puti($_.sep3, 0, $a([0, 0, 0, 0])); //#8378 + $puti($_.sep3, 46, $a([0, 0, 0, 0])); //#8379 + for (var _91 = 19; _91 <= 31; _91 += 1) { //#8392 + $_.i = _91; //#8381 + if ($get($_.bot, $_.i) == 0) { //#8389 + if ($get($_.bot, $_.i - 1) == 1) { //#8386 + $k[$j++] = 1; //#8384 + } else { //#8386 + var _9B = ($get($_.sep3, $_.i - 1) == 0) ? 1 : 0; //#8386 + $k[$j++] = _9B; //#8386 + } //#8386 + } else { //#8389 + $k[$j++] = 0; //#8389 + } //#8389 + $put($_.sep3, $_.i, $k[--$j]); //#8391 + } //#8391 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#8393 + $k[$j++] = true; //#8394 + for (var _9G = 0; _9G <= 12; _9G += 1) { //#8394 + var _9L = $k[--$j]; //#8394 + $k[$j++] = _9L && $eq($get($_.bot, _9G + 19), $get($_.f3, _9G)); //#8394 + } //#8394 + if ($k[--$j]) { //#8397 + $puti($_.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#8396 + } //#8396 + $k[$j++] = Infinity; //#8398 + for (var _9Q = 0, _9R = $_.barxmult; _9Q < _9R; _9Q++) { //#8399 + $aload($_.top); //#8399 + } //#8399 + $aload($_.sep1); //#8400 + $aload($_.sep2); //#8401 + $aload($_.sep3); //#8402 + for (var _9X = 0, _9Y = $_.barxmult; _9X < _9Y; _9X++) { //#8403 + $aload($_.bot); //#8403 + } //#8403 + $_.pixs = $a(); //#8403 + $_.pixy = ~~($_.pixs.length / 50); //#8405 + } //#8405 var _9g = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -11023,2056 +11281,2073 @@ function bwipp_databaromni() { ["pixy", $_.pixy], ["height", $_.pixy / 72], ["width", 50 / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#8272 - $k[$j++] = _9g; //#8275 - if (!$_.dontdraw) { //#8275 - bwipp_renmatrix(); //#8275 - } //#8275 - } //#8275 - $_ = Object.getPrototypeOf($_); //#8279 - $_ = Object.getPrototypeOf($_); //#8281 -} - + ]); //#8420 + $k[$j++] = _9g; //#8423 + if (!$_.dontdraw) { //#8423 + bwipp_renmatrix(); //#8423 + } //#8423 + } //#8423 + $_ = Object.getPrototypeOf($_); //#8427 + $_ = Object.getPrototypeOf($_); //#8429 +} //bwipp_databaromni function bwipp_databarstacked() { - $_ = Object.create($_); //#8310 - $_.dontdraw = false; //#8313 - $k[$j++] = $_; //#8315 - bwipp_processoptions(); //#8315 - $_.options = $k[--$j]; //#8315 - $_.barcode = $k[--$j]; //#8316 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8321 - $k[$j++] = 'bwipp.databarstackedBadAI#8320'; //#8320 - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8320 - bwipp_raiseerror(); //#8320 - } //#8320 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8324 - $k[$j++] = 'bwipp.databarstackedBadLength#8323'; //#8323 - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8323 - bwipp_raiseerror(); //#8323 - } //#8323 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8325 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8329 - var _B = $get(_8, _9); //#8329 - if ((_B < 48) || (_B > 57)) { //#8328 - $k[$j++] = 'bwipp.databarstackedBadCharacter#8327'; //#8327 - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8327 - bwipp_raiseerror(); //#8327 - } //#8327 - } //#8327 - $_.checksum = 0; //#8332 - for (var _C = 0; _C <= 12; _C += 1) { //#8336 - $_.i = _C; //#8334 - $k[$j++] = 'checksum'; //#8335 - $k[$j++] = $_.checksum; //#8335 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8335 - if (($_.i % 2) == 0) { //#8335 - var _I = $k[--$j]; //#8335 - $k[$j++] = _I * 3; //#8335 - } //#8335 - var _J = $k[--$j]; //#8335 - var _K = $k[--$j]; //#8335 - $_[$k[--$j]] = $f(_K + _J); //#8335 - } //#8335 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8337 - if ($_.barcode.length == 18) { //#8342 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8341 - $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8340'; //#8340 - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8340 - bwipp_raiseerror(); //#8340 - } //#8340 - } //#8340 - var _R = $s(18); //#8343 - $puti(_R, 0, $_.barcode); //#8344 - $put(_R, 17, $_.checksum + 48); //#8345 - $_.barcode = _R; //#8346 - $put($_.options, "dontdraw", true); //#8349 - $put($_.options, "format", "stacked"); //#8350 - $k[$j++] = 'args'; //#8352 - $k[$j++] = $_.barcode; //#8352 - $k[$j++] = $_.options; //#8352 - bwipp_databaromni(); //#8352 - var _Y = $k[--$j]; //#8352 - $_[$k[--$j]] = _Y; //#8352 - $put($_.args, "opt", $_.options); //#8354 - $k[$j++] = $_.args; //#8357 - if (!$_.dontdraw) { //#8357 - bwipp_renmatrix(); //#8357 - } //#8357 - $_ = Object.getPrototypeOf($_); //#8359 -} - -function bwipp_databarstackedomni() { - $_ = Object.create($_); //#8388 - $_.dontdraw = false; //#8391 - $k[$j++] = $_; //#8393 - bwipp_processoptions(); //#8393 - $_.options = $k[--$j]; //#8393 - $_.barcode = $k[--$j]; //#8394 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8399 - $k[$j++] = 'bwipp.databarstackedomniBadAI#8398'; //#8398 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8398 - bwipp_raiseerror(); //#8398 - } //#8398 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8402 - $k[$j++] = 'bwipp.databarstackedomniBadLength#8401'; //#8401 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8401 - bwipp_raiseerror(); //#8401 - } //#8401 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8403 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8407 - var _B = $get(_8, _9); //#8407 - if ((_B < 48) || (_B > 57)) { //#8406 - $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8405'; //#8405 - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8405 - bwipp_raiseerror(); //#8405 - } //#8405 - } //#8405 - $_.checksum = 0; //#8410 - for (var _C = 0; _C <= 12; _C += 1) { //#8414 - $_.i = _C; //#8412 - $k[$j++] = 'checksum'; //#8413 - $k[$j++] = $_.checksum; //#8413 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8413 - if (($_.i % 2) == 0) { //#8413 - var _I = $k[--$j]; //#8413 - $k[$j++] = _I * 3; //#8413 - } //#8413 - var _J = $k[--$j]; //#8413 - var _K = $k[--$j]; //#8413 - $_[$k[--$j]] = $f(_K + _J); //#8413 - } //#8413 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8415 - if ($_.barcode.length == 18) { //#8420 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8419 - $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8418'; //#8418 - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8418 - bwipp_raiseerror(); //#8418 - } //#8418 - } //#8418 - var _R = $s(18); //#8421 - $puti(_R, 0, $_.barcode); //#8422 - $put(_R, 17, $_.checksum + 48); //#8423 - $_.barcode = _R; //#8424 - $put($_.options, "dontdraw", true); //#8427 - $put($_.options, "format", "stackedomni"); //#8428 - $k[$j++] = 'args'; //#8430 - $k[$j++] = $_.barcode; //#8430 - $k[$j++] = $_.options; //#8430 - bwipp_databaromni(); //#8430 - var _Y = $k[--$j]; //#8430 - $_[$k[--$j]] = _Y; //#8430 - $put($_.args, "opt", $_.options); //#8432 - $k[$j++] = $_.args; //#8435 - if (!$_.dontdraw) { //#8435 - bwipp_renmatrix(); //#8435 - } //#8435 - $_ = Object.getPrototypeOf($_); //#8437 -} - -function bwipp_databartruncated() { - $_ = Object.create($_); //#8466 - $_.dontdraw = false; //#8469 - $k[$j++] = $_; //#8471 - bwipp_processoptions(); //#8471 - $_.options = $k[--$j]; //#8471 - $_.barcode = $k[--$j]; //#8472 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8477 - $k[$j++] = 'bwipp.databartruncatedBadAI#8476'; //#8476 - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8476 - bwipp_raiseerror(); //#8476 - } //#8476 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8480 - $k[$j++] = 'bwipp.databartruncatedBadLength#8479'; //#8479 - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8479 - bwipp_raiseerror(); //#8479 - } //#8479 - var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8481 - for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8485 - var _B = $get(_8, _9); //#8485 - if ((_B < 48) || (_B > 57)) { //#8484 - $k[$j++] = 'bwipp.databartruncatedBadCharacter#8483'; //#8483 - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8483 - bwipp_raiseerror(); //#8483 + $_ = Object.create($_); //#8458 + $_.dontdraw = false; //#8461 + $k[$j++] = $_; //#8463 + bwipp_processoptions(); //#8463 + $_.options = $k[--$j]; //#8463 + $_.barcode = $k[--$j]; //#8464 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8469 + $k[$j++] = 'bwipp.databarstackedBadLength#8468'; //#8468 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#8468 + bwipp_raiseerror(); //#8468 + } //#8468 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8472 + $k[$j++] = 'bwipp.databarstackedBadAI#8471'; //#8471 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#8471 + bwipp_raiseerror(); //#8471 + } //#8471 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8473 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8477 + var _B = $get(_8, _9); //#8477 + if ((_B < 48) || (_B > 57)) { //#8476 + $k[$j++] = 'bwipp.databarstackedBadCharacter#8475'; //#8475 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#8475 + bwipp_raiseerror(); //#8475 + } //#8475 + } //#8475 + $_.checksum = 0; //#8480 + for (var _C = 0; _C <= 12; _C += 1) { //#8484 + $_.i = _C; //#8482 + $k[$j++] = 'checksum'; //#8483 + $k[$j++] = $_.checksum; //#8483 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8483 + if (($_.i % 2) == 0) { //#8483 + var _I = $k[--$j]; //#8483 + $k[$j++] = _I * 3; //#8483 } //#8483 + var _J = $k[--$j]; //#8483 + var _K = $k[--$j]; //#8483 + $_[$k[--$j]] = $f(_K + _J); //#8483 } //#8483 - $_.checksum = 0; //#8488 - for (var _C = 0; _C <= 12; _C += 1) { //#8492 - $_.i = _C; //#8490 - $k[$j++] = 'checksum'; //#8491 - $k[$j++] = $_.checksum; //#8491 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8491 - if (($_.i % 2) == 0) { //#8491 - var _I = $k[--$j]; //#8491 - $k[$j++] = _I * 3; //#8491 - } //#8491 - var _J = $k[--$j]; //#8491 - var _K = $k[--$j]; //#8491 - $_[$k[--$j]] = $f(_K + _J); //#8491 - } //#8491 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8493 - if ($_.barcode.length == 18) { //#8498 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8497 - $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8496'; //#8496 - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8496 - bwipp_raiseerror(); //#8496 - } //#8496 - } //#8496 - var _R = $s(18); //#8499 - $puti(_R, 0, $_.barcode); //#8500 - $put(_R, 17, $_.checksum + 48); //#8501 - $_.barcode = _R; //#8502 - $put($_.options, "dontdraw", true); //#8505 - $put($_.options, "format", "truncated"); //#8506 - $k[$j++] = 'args'; //#8508 - $k[$j++] = $_.barcode; //#8508 - $k[$j++] = $_.options; //#8508 - bwipp_databaromni(); //#8508 - var _Y = $k[--$j]; //#8508 - $_[$k[--$j]] = _Y; //#8508 - $put($_.args, "opt", $_.options); //#8510 - $k[$j++] = $_.args; //#8513 - if (!$_.dontdraw) { //#8513 - bwipp_renlinear(); //#8513 - } //#8513 - $_ = Object.getPrototypeOf($_); //#8515 -} - + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8485 + if ($_.barcode.length == 18) { //#8490 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8489 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit#8488'; //#8488 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#8488 + bwipp_raiseerror(); //#8488 + } //#8488 + } //#8488 + var _R = $s(18); //#8491 + $puti(_R, 0, $_.barcode); //#8492 + $put(_R, 17, $_.checksum + 48); //#8493 + $_.barcode = _R; //#8494 + $put($_.options, "dontdraw", true); //#8497 + $put($_.options, "format", "stacked"); //#8498 + $k[$j++] = 'args'; //#8500 + $k[$j++] = $_.barcode; //#8500 + $k[$j++] = $_.options; //#8500 + bwipp_databaromni(); //#8500 + var _Y = $k[--$j]; //#8500 + $_[$k[--$j]] = _Y; //#8500 + $put($_.args, "opt", $_.options); //#8502 + $k[$j++] = $_.args; //#8505 + if (!$_.dontdraw) { //#8505 + bwipp_renmatrix(); //#8505 + } //#8505 + $_ = Object.getPrototypeOf($_); //#8507 +} //bwipp_databarstacked +function bwipp_databarstackedomni() { + $_ = Object.create($_); //#8536 + $_.dontdraw = false; //#8539 + $k[$j++] = $_; //#8541 + bwipp_processoptions(); //#8541 + $_.options = $k[--$j]; //#8541 + $_.barcode = $k[--$j]; //#8542 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8547 + $k[$j++] = 'bwipp.databarstackedomniBadAI#8546'; //#8546 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#8546 + bwipp_raiseerror(); //#8546 + } //#8546 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8550 + $k[$j++] = 'bwipp.databarstackedomniBadLength#8549'; //#8549 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#8549 + bwipp_raiseerror(); //#8549 + } //#8549 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8551 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8555 + var _B = $get(_8, _9); //#8555 + if ((_B < 48) || (_B > 57)) { //#8554 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter#8553'; //#8553 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#8553 + bwipp_raiseerror(); //#8553 + } //#8553 + } //#8553 + $_.checksum = 0; //#8558 + for (var _C = 0; _C <= 12; _C += 1) { //#8562 + $_.i = _C; //#8560 + $k[$j++] = 'checksum'; //#8561 + $k[$j++] = $_.checksum; //#8561 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8561 + if (($_.i % 2) == 0) { //#8561 + var _I = $k[--$j]; //#8561 + $k[$j++] = _I * 3; //#8561 + } //#8561 + var _J = $k[--$j]; //#8561 + var _K = $k[--$j]; //#8561 + $_[$k[--$j]] = $f(_K + _J); //#8561 + } //#8561 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8563 + if ($_.barcode.length == 18) { //#8568 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8567 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit#8566'; //#8566 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#8566 + bwipp_raiseerror(); //#8566 + } //#8566 + } //#8566 + var _R = $s(18); //#8569 + $puti(_R, 0, $_.barcode); //#8570 + $put(_R, 17, $_.checksum + 48); //#8571 + $_.barcode = _R; //#8572 + $put($_.options, "dontdraw", true); //#8575 + $put($_.options, "format", "stackedomni"); //#8576 + $k[$j++] = 'args'; //#8578 + $k[$j++] = $_.barcode; //#8578 + $k[$j++] = $_.options; //#8578 + bwipp_databaromni(); //#8578 + var _Y = $k[--$j]; //#8578 + $_[$k[--$j]] = _Y; //#8578 + $put($_.args, "opt", $_.options); //#8580 + $k[$j++] = $_.args; //#8583 + if (!$_.dontdraw) { //#8583 + bwipp_renmatrix(); //#8583 + } //#8583 + $_ = Object.getPrototypeOf($_); //#8585 +} //bwipp_databarstackedomni +function bwipp_databartruncated() { + $_ = Object.create($_); //#8614 + $_.dontdraw = false; //#8617 + $k[$j++] = $_; //#8619 + bwipp_processoptions(); //#8619 + $_.options = $k[--$j]; //#8619 + $_.barcode = $k[--$j]; //#8620 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8625 + $k[$j++] = 'bwipp.databartruncatedBadLength#8624'; //#8624 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#8624 + bwipp_raiseerror(); //#8624 + } //#8624 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8628 + $k[$j++] = 'bwipp.databartruncatedBadAI#8627'; //#8627 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#8627 + bwipp_raiseerror(); //#8627 + } //#8627 + var _8 = $geti($_.barcode, 4, $_.barcode.length - 4); //#8629 + for (var _9 = 0, _A = _8.length; _9 < _A; _9++) { //#8633 + var _B = $get(_8, _9); //#8633 + if ((_B < 48) || (_B > 57)) { //#8632 + $k[$j++] = 'bwipp.databartruncatedBadCharacter#8631'; //#8631 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#8631 + bwipp_raiseerror(); //#8631 + } //#8631 + } //#8631 + $_.checksum = 0; //#8636 + for (var _C = 0; _C <= 12; _C += 1) { //#8640 + $_.i = _C; //#8638 + $k[$j++] = 'checksum'; //#8639 + $k[$j++] = $_.checksum; //#8639 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8639 + if (($_.i % 2) == 0) { //#8639 + var _I = $k[--$j]; //#8639 + $k[$j++] = _I * 3; //#8639 + } //#8639 + var _J = $k[--$j]; //#8639 + var _K = $k[--$j]; //#8639 + $_[$k[--$j]] = $f(_K + _J); //#8639 + } //#8639 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8641 + if ($_.barcode.length == 18) { //#8646 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8645 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit#8644'; //#8644 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#8644 + bwipp_raiseerror(); //#8644 + } //#8644 + } //#8644 + var _R = $s(18); //#8647 + $puti(_R, 0, $_.barcode); //#8648 + $put(_R, 17, $_.checksum + 48); //#8649 + $_.barcode = _R; //#8650 + $put($_.options, "dontdraw", true); //#8653 + $put($_.options, "format", "truncated"); //#8654 + $k[$j++] = 'args'; //#8656 + $k[$j++] = $_.barcode; //#8656 + $k[$j++] = $_.options; //#8656 + bwipp_databaromni(); //#8656 + var _Y = $k[--$j]; //#8656 + $_[$k[--$j]] = _Y; //#8656 + $put($_.args, "opt", $_.options); //#8658 + $k[$j++] = $_.args; //#8661 + if (!$_.dontdraw) { //#8661 + bwipp_renlinear(); //#8661 + } //#8661 + $_ = Object.getPrototypeOf($_); //#8663 +} //bwipp_databartruncated function bwipp_databarlimited() { - $_ = Object.create($_); //#8545 - $_.dontdraw = false; //#8548 - $_.height = 10 / 72; //#8549 - $_.linkage = false; //#8550 - $k[$j++] = $_; //#8552 - bwipp_processoptions(); //#8552 - $_.options = $k[--$j]; //#8552 - $_.barcode = $k[--$j]; //#8553 - bwipp_loadctx(bwipp_databarlimited) //#8555 - if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8560 - $k[$j++] = 'bwipp.databarlimitedBadAI#8559'; //#8559 - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8559 - bwipp_raiseerror(); //#8559 - } //#8559 - if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8563 - $k[$j++] = 'bwipp.databarlimitedBadLength#8562'; //#8562 - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8562 - bwipp_raiseerror(); //#8562 - } //#8562 - var _7 = $get($_.barcode, 4); //#8564 - if ((_7 < 48) || (_7 > 49)) { //#8566 - $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8565'; //#8565 - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8565 - bwipp_raiseerror(); //#8565 - } //#8565 - var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8567 - for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8571 - var _D = $get(_A, _B); //#8571 - if ((_D < 48) || (_D > 57)) { //#8570 - $k[$j++] = 'bwipp.databarlimitedBadCharacter#8569'; //#8569 - $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8569 - bwipp_raiseerror(); //#8569 - } //#8569 - } //#8569 - $_.checksum = 0; //#8574 - for (var _E = 0; _E <= 12; _E += 1) { //#8578 - $_.i = _E; //#8576 - $k[$j++] = 'checksum'; //#8577 - $k[$j++] = $_.checksum; //#8577 - $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8577 - if (($_.i % 2) == 0) { //#8577 - var _K = $k[--$j]; //#8577 - $k[$j++] = _K * 3; //#8577 - } //#8577 - var _L = $k[--$j]; //#8577 - var _M = $k[--$j]; //#8577 - $_[$k[--$j]] = $f(_M + _L); //#8577 - } //#8577 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8579 - if ($_.barcode.length == 18) { //#8584 - if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8583 - $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8582'; //#8582 - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8582 - bwipp_raiseerror(); //#8582 - } //#8582 - } //#8582 - var _T = $s(18); //#8585 - $puti(_T, 0, $_.barcode); //#8586 - $put(_T, 17, $_.checksum + 48); //#8587 - $_.barcode = _T; //#8588 - if (!bwipp_databarlimited.__8593__) { //#8593 - $_ = Object.create($_); //#8593 - $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8592 - bwipp_databarlimited.__8593__ = 1; //#8592 - $_ = Object.getPrototypeOf($_); //#8592 - } //#8592 - $k[$j++] = Infinity; //#8595 - var _Z = $geti($_.barcode, 4, 13); //#8595 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8595 - $k[$j++] = $f($get(_Z, _a) - 48); //#8595 - } //#8595 - $_.binval = $a(); //#8595 - if ($_.linkage) { //#8602 - for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8601 - $_.i = _h; //#8599 - $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8600 - } //#8600 - } //#8600 - $_.txt = $a($_.barcode.length); //#8605 - for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8609 - $_.i = _u; //#8607 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8608 - } //#8608 + $_ = Object.create($_); //#8693 + $_.dontdraw = false; //#8696 + $_.height = 10 / 72; //#8697 + $_.linkage = false; //#8698 + $k[$j++] = $_; //#8700 + bwipp_processoptions(); //#8700 + $_.options = $k[--$j]; //#8700 + $_.barcode = $k[--$j]; //#8701 + bwipp_loadctx(bwipp_databarlimited) //#8703 + if (($_.barcode.length != 17) && ($_.barcode.length != 18)) { //#8708 + $k[$j++] = 'bwipp.databarlimitedBadLength#8707'; //#8707 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#8707 + bwipp_raiseerror(); //#8707 + } //#8707 + if ($ne($geti($_.barcode, 0, 4), "(01)")) { //#8711 + $k[$j++] = 'bwipp.databarlimitedBadAI#8710'; //#8710 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#8710 + bwipp_raiseerror(); //#8710 + } //#8710 + var _7 = $get($_.barcode, 4); //#8712 + if ((_7 < 48) || (_7 > 49)) { //#8714 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit#8713'; //#8713 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#8713 + bwipp_raiseerror(); //#8713 + } //#8713 + var _A = $geti($_.barcode, 5, $_.barcode.length - 5); //#8715 + for (var _B = 0, _C = _A.length; _B < _C; _B++) { //#8719 + var _D = $get(_A, _B); //#8719 + if ((_D < 48) || (_D > 57)) { //#8718 + $k[$j++] = 'bwipp.databarlimitedBadCharacter#8717'; //#8717 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#8717 + bwipp_raiseerror(); //#8717 + } //#8717 + } //#8717 + $_.checksum = 0; //#8722 + for (var _E = 0; _E <= 12; _E += 1) { //#8726 + $_.i = _E; //#8724 + $k[$j++] = 'checksum'; //#8725 + $k[$j++] = $_.checksum; //#8725 + $k[$j++] = $f($get($_.barcode, $_.i + 4) - 48); //#8725 + if (($_.i % 2) == 0) { //#8725 + var _K = $k[--$j]; //#8725 + $k[$j++] = _K * 3; //#8725 + } //#8725 + var _L = $k[--$j]; //#8725 + var _M = $k[--$j]; //#8725 + $_[$k[--$j]] = $f(_M + _L); //#8725 + } //#8725 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#8727 + if ($_.barcode.length == 18) { //#8732 + if ($get($_.barcode, 17) != ($_.checksum + 48)) { //#8731 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit#8730'; //#8730 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#8730 + bwipp_raiseerror(); //#8730 + } //#8730 + } //#8730 + var _T = $s(18); //#8733 + $puti(_T, 0, $_.barcode); //#8734 + $put(_T, 17, $_.checksum + 48); //#8735 + $_.barcode = _T; //#8736 + if (!bwipp_databarlimited.__8741__) { //#8741 + $_ = Object.create($_); //#8741 + $_.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#8740 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8740 + bwipp_databarlimited.__8741__ = 1; //#8740 + $_ = Object.getPrototypeOf($_); //#8740 + } //#8740 + $k[$j++] = Infinity; //#8742 + var _Z = $geti($_.barcode, 4, 13); //#8743 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#8743 + $k[$j++] = $f($get(_Z, _a) - 48); //#8743 + } //#8743 + $_.binval = $a(); //#8743 + if ($_.linkage) { //#8750 + for (var _h = 0, _g = $_.binval.length - 1; _h <= _g; _h += 1) { //#8749 + $_.i = _h; //#8747 + $put($_.binval, $_.i, $f($get($_.binval, $_.i) + $get($_.linkval, $_.i))); //#8748 + } //#8748 + } //#8748 + $_.txt = $a($_.barcode.length); //#8753 + for (var _u = 0, _t = $_.barcode.length - 1; _u <= _t; _u += 1) { //#8757 + $_.i = _u; //#8755 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#8756 + } //#8756 $_.ncr = function() { - var _11 = $k[--$j]; //#8612 - var _12 = $k[--$j]; //#8612 - var _13 = $f(_12 - _11); //#8612 - if (_11 < $f(_12 - _11)) { //#8612 - var _ = _13; //#8612 - _13 = _11; //#8612 - _11 = _; //#8612 - } //#8612 - $k[$j++] = _13; //#8619 - $k[$j++] = 1; //#8619 - $k[$j++] = 1; //#8619 - for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8619 - var _16 = $k[--$j]; //#8615 - var _17 = $k[--$j]; //#8616 - var _18 = $k[--$j]; //#8616 - $k[$j++] = _18; //#8618 - $k[$j++] = _17; //#8618 - $k[$j++] = _16 * _15; //#8618 - if ($le(_17, _18)) { //#8618 - var _19 = $k[--$j]; //#8617 - var _1A = $k[--$j]; //#8617 - $k[$j++] = $f(_1A + 1); //#8617 - $k[$j++] = ~~(_19 / _1A); //#8617 - } //#8617 - } //#8617 - for (;;) { //#8623 - var _1B = $k[--$j]; //#8621 - var _1C = $k[--$j]; //#8621 - var _1D = $k[--$j]; //#8621 - $k[$j++] = _1D; //#8621 - $k[$j++] = _1C; //#8621 - $k[$j++] = _1B; //#8621 - if ($gt(_1C, _1D)) { //#8621 - break; //#8621 - } //#8621 - var _1E = $k[--$j]; //#8622 - var _1F = $k[--$j]; //#8622 - $k[$j++] = $f(_1F + 1); //#8622 - $k[$j++] = ~~(_1E / _1F); //#8622 - } //#8622 - var _1G = $k[--$j]; //#8624 - var _1H = $k[--$j]; //#8624 - $k[$j++] = _1G; //#8624 - $k[$j++] = _1H; //#8624 - $j--; //#8624 - var _1I = $k[--$j]; //#8624 - var _1J = $k[--$j]; //#8624 - $k[$j++] = _1I; //#8624 - $k[$j++] = _1J; //#8624 - $j--; //#8624 - }; //#8624 + var _11 = $k[--$j]; //#8760 + var _12 = $k[--$j]; //#8760 + var _13 = $f(_12 - _11); //#8760 + if (_11 < $f(_12 - _11)) { //#8760 + var _ = _13; //#8760 + _13 = _11; //#8760 + _11 = _; //#8760 + } //#8760 + $k[$j++] = _13; //#8767 + $k[$j++] = 1; //#8767 + $k[$j++] = 1; //#8767 + for (var _15 = _12, _14 = $f(_11 + 1); _15 >= _14; _15 -= 1) { //#8767 + var _16 = $k[--$j]; //#8763 + var _17 = $k[--$j]; //#8764 + var _18 = $k[--$j]; //#8764 + $k[$j++] = _18; //#8766 + $k[$j++] = _17; //#8766 + $k[$j++] = _16 * _15; //#8766 + if ($le(_17, _18)) { //#8766 + var _19 = $k[--$j]; //#8765 + var _1A = $k[--$j]; //#8765 + $k[$j++] = $f(_1A + 1); //#8765 + $k[$j++] = ~~(_19 / _1A); //#8765 + } //#8765 + } //#8765 + for (;;) { //#8771 + var _1B = $k[--$j]; //#8769 + var _1C = $k[--$j]; //#8769 + var _1D = $k[--$j]; //#8769 + $k[$j++] = _1D; //#8769 + $k[$j++] = _1C; //#8769 + $k[$j++] = _1B; //#8769 + if ($gt(_1C, _1D)) { //#8769 + break; //#8769 + } //#8769 + var _1E = $k[--$j]; //#8770 + var _1F = $k[--$j]; //#8770 + $k[$j++] = $f(_1F + 1); //#8770 + $k[$j++] = ~~(_1E / _1F); //#8770 + } //#8770 + var _1G = $k[--$j]; //#8772 + var _1H = $k[--$j]; //#8772 + $k[$j++] = _1G; //#8772 + $k[$j++] = _1H; //#8772 + $j--; //#8772 + var _1I = $k[--$j]; //#8772 + var _1J = $k[--$j]; //#8772 + $k[$j++] = _1I; //#8772 + $k[$j++] = _1J; //#8772 + $j--; //#8772 + }; //#8772 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#8628 - $_.el = $k[--$j]; //#8629 - $_.mw = $k[--$j]; //#8630 - $_.nm = $k[--$j]; //#8631 - $_.val = $k[--$j]; //#8632 - $_.out = $a($_.el); //#8633 - $_.mask = 0; //#8634 - for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8661 - $_.bar = _1T; //#8636 - $_.ew = 1; //#8637 - var _1V = $_.bar; //#8638 - $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8638 - for (;;) { //#8657 - $k[$j++] = 'sval'; //#8639 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8639 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8639 - $_.ncr(); //#8639 - var _1a = $k[--$j]; //#8639 - $_[$k[--$j]] = _1a; //#8639 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8642 - $k[$j++] = 'sval'; //#8641 - $k[$j++] = $_.sval; //#8641 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8641 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8641 - $_.ncr(); //#8641 - var _1p = $k[--$j]; //#8641 - var _1q = $k[--$j]; //#8641 - $_[$k[--$j]] = $f(_1q - _1p); //#8641 - } //#8641 - if ($f($_.el - $_.bar) > 2) { //#8651 - $_.lval = 0; //#8644 - for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8648 - $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8646 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8646 - $_.ncr(); //#8646 - $_.lval = $f($k[--$j] + $_.lval); //#8647 - } //#8647 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8649 - } else { //#8651 - if ($f($_.nm - $_.ew) > $_.mw) { //#8651 - $_.sval = $f($_.sval - 1); //#8651 - } //#8651 - } //#8651 - $_.val = $f($_.val - $_.sval); //#8653 - if ($_.val < 0) { //#8654 - break; //#8654 - } //#8654 - $_.ew = $_.ew + 1; //#8655 - var _2K = $_.bar; //#8656 - $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8656 - } //#8656 - $_.val = $f($_.val + $_.sval); //#8658 - $_.nm = $f($_.nm - $_.ew); //#8659 - $put($_.out, $_.bar, $_.ew); //#8660 - } //#8660 - $put($_.out, $f($_.el - 1), $_.nm); //#8662 - $k[$j++] = $_.out; //#8663 - }; //#8663 - for (var _2W = 0; _2W <= 11; _2W += 1) { //#8670 - $_.i = _2W; //#8667 - var _2X = $_.binval; //#8668 - var _2Y = $_.i; //#8668 - $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8668 - $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8669 - } //#8669 - $_.d2 = $get($_.binval, 12) % 2013571; //#8671 - var _2k = $_.binval; //#8672 - $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8672 - $_.d1 = 0; //#8674 - $_.i = true; //#8675 - for (var _2m = 0; _2m <= 12; _2m += 1) { //#8685 - $_.j = _2m; //#8677 - var _2p = $get($_.binval, $_.j); //#8678 - $k[$j++] = _2p; //#8684 - if ((_2p == 0) && $_.i) { //#8683 - $j--; //#8680 - } else { //#8683 - $_.i = false; //#8682 - $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8683 - } //#8683 - } //#8683 - if (!bwipp_databarlimited.__8697__) { //#8697 - $_ = Object.create($_); //#8697 - $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8696 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8696 - bwipp_databarlimited.__8697__ = 1; //#8696 - $_ = Object.getPrototypeOf($_); //#8696 - } //#8696 - $_.i = 0; //#8699 - for (;;) { //#8709 - if ($_.d1 <= $get($_.tab267, $_.i)) { //#8707 - var _32 = $geti($_.tab267, $_.i + 1, 7); //#8701 - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8701 - $k[$j++] = $get(_32, _33); //#8701 - } //#8701 - $_.d1te = $k[--$j]; //#8702 - $_.d1to = $k[--$j]; //#8702 - $_.d1mwe = $k[--$j]; //#8703 - $_.d1mwo = $k[--$j]; //#8703 - $_.d1ele = $k[--$j]; //#8704 - $_.d1elo = $k[--$j]; //#8704 - $_.d1gs = $k[--$j]; //#8705 - break; //#8706 - } //#8706 - $_.i = $_.i + 8; //#8708 - } //#8708 - $_.i = 0; //#8711 - for (;;) { //#8721 - if ($_.d2 <= $get($_.tab267, $_.i)) { //#8719 - var _3K = $geti($_.tab267, $_.i + 1, 7); //#8713 - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8713 - $k[$j++] = $get(_3K, _3L); //#8713 - } //#8713 - $_.d2te = $k[--$j]; //#8714 - $_.d2to = $k[--$j]; //#8714 - $_.d2mwe = $k[--$j]; //#8715 - $_.d2mwo = $k[--$j]; //#8715 - $_.d2ele = $k[--$j]; //#8716 - $_.d2elo = $k[--$j]; //#8716 - $_.d2gs = $k[--$j]; //#8717 - break; //#8718 - } //#8718 - $_.i = $_.i + 8; //#8720 - } //#8720 - $k[$j++] = 'd1wo'; //#8723 - $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8723 - $k[$j++] = $_.d1elo; //#8723 - $k[$j++] = $_.d1mwo; //#8723 - $k[$j++] = 7; //#8723 - $k[$j++] = false; //#8723 - $_.getRSSwidths(); //#8723 - var _3b = $k[--$j]; //#8723 - $_[$k[--$j]] = _3b; //#8723 - $k[$j++] = 'd1we'; //#8724 - $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8724 - $k[$j++] = $_.d1ele; //#8724 - $k[$j++] = $_.d1mwe; //#8724 - $k[$j++] = 7; //#8724 - $k[$j++] = true; //#8724 - $_.getRSSwidths(); //#8724 - var _3i = $k[--$j]; //#8724 - $_[$k[--$j]] = _3i; //#8724 - $k[$j++] = 'd2wo'; //#8725 - $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8725 - $k[$j++] = $_.d2elo; //#8725 - $k[$j++] = $_.d2mwo; //#8725 - $k[$j++] = 7; //#8725 - $k[$j++] = false; //#8725 - $_.getRSSwidths(); //#8725 - var _3p = $k[--$j]; //#8725 - $_[$k[--$j]] = _3p; //#8725 - $k[$j++] = 'd2we'; //#8726 - $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8726 - $k[$j++] = $_.d2ele; //#8726 - $k[$j++] = $_.d2mwe; //#8726 - $k[$j++] = 7; //#8726 - $k[$j++] = true; //#8726 - $_.getRSSwidths(); //#8726 - var _3w = $k[--$j]; //#8726 - $_[$k[--$j]] = _3w; //#8726 - $_.d1w = $a(14); //#8728 - for (var _3z = 0; _3z <= 6; _3z += 1) { //#8733 - $_.i = _3z; //#8730 - $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8731 - $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8732 - } //#8732 - $_.d2w = $a(14); //#8735 - for (var _4B = 0; _4B <= 6; _4B += 1) { //#8740 - $_.i = _4B; //#8737 - $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8738 - $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8739 - } //#8739 - $k[$j++] = Infinity; //#8744 - var _4M = $_.d1w; //#8743 - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8743 - $k[$j++] = $get(_4M, _4N); //#8743 - } //#8743 - var _4Q = $_.d2w; //#8744 - for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8744 - $k[$j++] = $get(_4Q, _4R); //#8744 - } //#8744 - $_.widths = $a(); //#8744 - if (!bwipp_databarlimited.__8768__) { //#8768 - $_ = Object.create($_); //#8768 - $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8751 - $k[$j++] = Infinity; //#8766 - for (var _4W = 0; _4W <= 43; _4W += 1) { //#8754 - $k[$j++] = _4W; //#8754 - } //#8754 - $k[$j++] = 45; //#8756 - $k[$j++] = 52; //#8756 - $k[$j++] = 57; //#8756 - for (var _4X = 63; _4X <= 66; _4X += 1) { //#8756 - $k[$j++] = _4X; //#8756 - } //#8756 - for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8757 - $k[$j++] = _4Y; //#8757 - } //#8757 - $k[$j++] = 82; //#8759 - for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8759 - $k[$j++] = _4Z; //#8759 - } //#8759 - $k[$j++] = 132; //#8761 - for (var _4a = 141; _4a <= 146; _4a += 1) { //#8761 - $k[$j++] = _4a; //#8761 - } //#8761 - for (var _4b = 210; _4b <= 217; _4b += 1) { //#8762 - $k[$j++] = _4b; //#8762 - } //#8762 - $k[$j++] = 220; //#8764 - for (var _4c = 316; _4c <= 320; _4c += 1) { //#8764 - $k[$j++] = _4c; //#8764 - } //#8764 - $k[$j++] = 322; //#8766 - $k[$j++] = 323; //#8766 - $k[$j++] = 326; //#8766 - $k[$j++] = 337; //#8766 - $_.checkseq = $a(); //#8766 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8767 - bwipp_databarlimited.__8768__ = 1; //#8767 - $_ = Object.getPrototypeOf($_); //#8767 - } //#8767 - $_.checksum = 0; //#8770 - for (var _4f = 0; _4f <= 27; _4f += 1) { //#8774 - $_.i = _4f; //#8772 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8773 - } //#8773 - $_.checksum = $_.checksum % 89; //#8775 - $_.seq = $get($_.checkseq, $_.checksum); //#8776 - $k[$j++] = 'swidths'; //#8777 - $k[$j++] = ~~($_.seq / 21); //#8777 - $k[$j++] = 8; //#8777 - $k[$j++] = 3; //#8777 - $k[$j++] = 6; //#8777 - $k[$j++] = false; //#8777 - $_.getRSSwidths(); //#8777 - var _4s = $k[--$j]; //#8777 - $_[$k[--$j]] = _4s; //#8777 - $k[$j++] = 'bwidths'; //#8778 - $k[$j++] = $_.seq % 21; //#8778 - $k[$j++] = 8; //#8778 - $k[$j++] = 3; //#8778 - $k[$j++] = 6; //#8778 - $k[$j++] = false; //#8778 - $_.getRSSwidths(); //#8778 - var _4v = $k[--$j]; //#8778 - $_[$k[--$j]] = _4v; //#8778 - $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8780 - for (var _4y = 0; _4y <= 5; _4y += 1) { //#8785 - $_.i = _4y; //#8782 - $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8783 - $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8784 - } //#8784 - $k[$j++] = Infinity; //#8788 - var _59 = $_.d1w; //#8788 - $k[$j++] = 1; //#8788 - for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8788 - $k[$j++] = $get(_59, _5A); //#8788 - } //#8788 - var _5D = $_.checkwidths; //#8788 - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8788 - $k[$j++] = $get(_5D, _5E); //#8788 - } //#8788 - var _5H = $_.d2w; //#8788 - for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8788 - $k[$j++] = $get(_5H, _5I); //#8788 - } //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 1; //#8788 - $k[$j++] = 5; //#8788 - $_.sbs = $a(); //#8788 - $k[$j++] = Infinity; //#8799 - var _5M = $_.sbs; //#8794 - $k[$j++] = Infinity; //#8795 - for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8795 - $k[$j++] = $_.height; //#8795 - } //#8795 - var _5R = $a(); //#8795 - $k[$j++] = Infinity; //#8796 - for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8796 - $k[$j++] = 0; //#8796 - } //#8796 - var _5V = $a(); //#8796 - $k[$j++] = 'ren'; //#8799 - $k[$j++] = bwipp_renlinear; //#8799 - $k[$j++] = 'sbs'; //#8799 - $k[$j++] = _5M; //#8799 - $k[$j++] = 'bhs'; //#8799 - $k[$j++] = _5R; //#8799 - $k[$j++] = 'bbs'; //#8799 - $k[$j++] = _5V; //#8799 - $k[$j++] = 'txt'; //#8799 - $k[$j++] = $_.txt; //#8799 - $k[$j++] = 'textxalign'; //#8799 - $k[$j++] = "center"; //#8799 - $k[$j++] = 'opt'; //#8799 - $k[$j++] = $_.options; //#8799 - var _5Y = $d(); //#8799 - $k[$j++] = _5Y; //#8802 - if (!$_.dontdraw) { //#8802 - bwipp_renlinear(); //#8802 - } //#8802 - $_ = Object.getPrototypeOf($_); //#8804 - $_ = Object.getPrototypeOf($_); //#8806 -} - -function bwipp_databarexpanded() { - $_ = Object.create($_); //#8838 - $_.parse = false; //#8841 - $_.dontlint = false; //#8842 - $_.lintreqs = true; //#8843 - $_.dontdraw = false; //#8844 - $_.height = 34 / 72; //#8845 - $_.format = "expanded"; //#8846 - $_.segments = -1; //#8847 - $_.linkage = false; //#8848 - $_.barxmult = 34; //#8849 - $k[$j++] = $_; //#8851 - bwipp_processoptions(); //#8851 - $_.options = $k[--$j]; //#8851 - $_.barcode = $k[--$j]; //#8852 - bwipp_loadctx(bwipp_databarexpanded) //#8854 - if ($_.barxmult < 34) { //#8858 - $k[$j++] = 'bwipp.databarStackedOmniBarXmult#8857'; //#8857 - $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#8857 - bwipp_raiseerror(); //#8857 - } //#8857 - if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#8862 - $k[$j++] = 'bwipp.databarexpandedBadFormat#8861'; //#8861 - $k[$j++] = "Valid formats are expanded and expandedstacked"; //#8861 - bwipp_raiseerror(); //#8861 - } //#8861 - if ($_.segments == -1) { //#8868 - var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#8865 - $_.segments = _7; //#8865 - } else { //#8868 - if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#8869 - $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#8868'; //#8868 - $k[$j++] = "The number of segments must be even from 2 to 22"; //#8868 - bwipp_raiseerror(); //#8868 - } //#8868 + $_.oe = $k[--$j]; //#8776 + $_.el = $k[--$j]; //#8777 + $_.mw = $k[--$j]; //#8778 + $_.nm = $k[--$j]; //#8779 + $_.val = $k[--$j]; //#8780 + $_.out = $a($_.el); //#8781 + $_.mask = 0; //#8782 + for (var _1T = 0, _1S = $f($_.el - 2); _1T <= _1S; _1T += 1) { //#8809 + $_.bar = _1T; //#8784 + $_.ew = 1; //#8785 + var _1V = $_.bar; //#8786 + $_.mask = $_.mask | ((_1V < 0 ? 1 >>> -_1V : 1 << _1V)); //#8786 + for (;;) { //#8805 + $k[$j++] = 'sval'; //#8787 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#8787 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8787 + $_.ncr(); //#8787 + var _1a = $k[--$j]; //#8787 + $_[$k[--$j]] = _1a; //#8787 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#8790 + $k[$j++] = 'sval'; //#8789 + $k[$j++] = $_.sval; //#8789 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#8789 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#8789 + $_.ncr(); //#8789 + var _1p = $k[--$j]; //#8789 + var _1q = $k[--$j]; //#8789 + $_[$k[--$j]] = $f(_1q - _1p); //#8789 + } //#8789 + if ($f($_.el - $_.bar) > 2) { //#8799 + $_.lval = 0; //#8792 + for (var _20 = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _1z = $f($_.mw + 1); _20 >= _1z; _20 -= 1) { //#8796 + $k[$j++] = $f(($f($f($_.nm - _20) - $_.ew)) - 1); //#8794 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#8794 + $_.ncr(); //#8794 + $_.lval = $f($k[--$j] + $_.lval); //#8795 + } //#8795 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#8797 + } else { //#8799 + if ($f($_.nm - $_.ew) > $_.mw) { //#8799 + $_.sval = $f($_.sval - 1); //#8799 + } //#8799 + } //#8799 + $_.val = $f($_.val - $_.sval); //#8801 + if ($_.val < 0) { //#8802 + break; //#8802 + } //#8802 + $_.ew = $_.ew + 1; //#8803 + var _2K = $_.bar; //#8804 + $_.mask = $_.mask & (~((_2K < 0 ? 1 >>> -_2K : 1 << _2K))); //#8804 + } //#8804 + $_.val = $f($_.val + $_.sval); //#8806 + $_.nm = $f($_.nm - $_.ew); //#8807 + $put($_.out, $_.bar, $_.ew); //#8808 + } //#8808 + $put($_.out, $f($_.el - 1), $_.nm); //#8810 + $k[$j++] = $_.out; //#8811 + }; //#8811 + for (var _2W = 0; _2W <= 11; _2W += 1) { //#8818 + $_.i = _2W; //#8815 + var _2X = $_.binval; //#8816 + var _2Y = $_.i; //#8816 + $put(_2X, _2Y + 1, $f($get(_2X, _2Y + 1) + (($get($_.binval, $_.i) % 2013571) * 10))); //#8816 + $put($_.binval, $_.i, ~~($get($_.binval, $_.i) / 2013571)); //#8817 + } //#8817 + $_.d2 = $get($_.binval, 12) % 2013571; //#8819 + var _2k = $_.binval; //#8820 + $put(_2k, 12, ~~($get(_2k, 12) / 2013571)); //#8820 + $_.d1 = 0; //#8822 + $_.i = true; //#8823 + for (var _2m = 0; _2m <= 12; _2m += 1) { //#8833 + $_.j = _2m; //#8825 + var _2p = $get($_.binval, $_.j); //#8826 + $k[$j++] = _2p; //#8832 + if ((_2p == 0) && $_.i) { //#8831 + $j--; //#8828 + } else { //#8831 + $_.i = false; //#8830 + $_.d1 = $f($_.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $_.j)))); //#8831 + } //#8831 + } //#8831 + if (!bwipp_databarlimited.__8845__) { //#8845 + $_ = Object.create($_); //#8845 + $_.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#8844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8844 + bwipp_databarlimited.__8845__ = 1; //#8844 + $_ = Object.getPrototypeOf($_); //#8844 + } //#8844 + $_.i = 0; //#8847 + for (;;) { //#8857 + if ($_.d1 <= $get($_.tab267, $_.i)) { //#8855 + var _32 = $geti($_.tab267, $_.i + 1, 7); //#8849 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#8849 + $k[$j++] = $get(_32, _33); //#8849 + } //#8849 + $_.d1te = $k[--$j]; //#8850 + $_.d1to = $k[--$j]; //#8850 + $_.d1mwe = $k[--$j]; //#8851 + $_.d1mwo = $k[--$j]; //#8851 + $_.d1ele = $k[--$j]; //#8852 + $_.d1elo = $k[--$j]; //#8852 + $_.d1gs = $k[--$j]; //#8853 + break; //#8854 + } //#8854 + $_.i = $_.i + 8; //#8856 + } //#8856 + $_.i = 0; //#8859 + for (;;) { //#8869 + if ($_.d2 <= $get($_.tab267, $_.i)) { //#8867 + var _3K = $geti($_.tab267, $_.i + 1, 7); //#8861 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#8861 + $k[$j++] = $get(_3K, _3L); //#8861 + } //#8861 + $_.d2te = $k[--$j]; //#8862 + $_.d2to = $k[--$j]; //#8862 + $_.d2mwe = $k[--$j]; //#8863 + $_.d2mwo = $k[--$j]; //#8863 + $_.d2ele = $k[--$j]; //#8864 + $_.d2elo = $k[--$j]; //#8864 + $_.d2gs = $k[--$j]; //#8865 + break; //#8866 + } //#8866 + $_.i = $_.i + 8; //#8868 } //#8868 - $k[$j++] = $_.barcode; //#8872 - $k[$j++] = 'ai'; //#8872 - bwipp_gs1process(); //#8872 - $_.fncs = $k[--$j]; //#8873 - $_.vals = $k[--$j]; //#8874 - $_.ais = $k[--$j]; //#8875 - for (;;) { //#8963 - if ($_.ais.length == 2) { //#8887 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#8886 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#8885 - $k[$j++] = "0100"; //#8884 - $k[$j++] = false; //#8884 - break; //#8884 - } //#8884 - } //#8884 - } //#8884 - if ($_.ais.length == 2) { //#8896 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#8895 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#8894 - $k[$j++] = "0101"; //#8893 - $k[$j++] = false; //#8893 - break; //#8893 - } //#8893 - } //#8893 - } //#8893 - if ($_.ais.length == 2) { //#8905 - if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#8904 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#8903 - $k[$j++] = "0101"; //#8902 - $k[$j++] = false; //#8902 - break; //#8902 - } //#8902 - } //#8902 + $k[$j++] = 'd1wo'; //#8871 + $k[$j++] = ~~($f($_.d1 - $_.d1gs) / $_.d1te); //#8871 + $k[$j++] = $_.d1elo; //#8871 + $k[$j++] = $_.d1mwo; //#8871 + $k[$j++] = 7; //#8871 + $k[$j++] = false; //#8871 + $_.getRSSwidths(); //#8871 + var _3b = $k[--$j]; //#8871 + $_[$k[--$j]] = _3b; //#8871 + $k[$j++] = 'd1we'; //#8872 + $k[$j++] = $f($_.d1 - $_.d1gs) % $_.d1te; //#8872 + $k[$j++] = $_.d1ele; //#8872 + $k[$j++] = $_.d1mwe; //#8872 + $k[$j++] = 7; //#8872 + $k[$j++] = true; //#8872 + $_.getRSSwidths(); //#8872 + var _3i = $k[--$j]; //#8872 + $_[$k[--$j]] = _3i; //#8872 + $k[$j++] = 'd2wo'; //#8873 + $k[$j++] = ~~($f($_.d2 - $_.d2gs) / $_.d2te); //#8873 + $k[$j++] = $_.d2elo; //#8873 + $k[$j++] = $_.d2mwo; //#8873 + $k[$j++] = 7; //#8873 + $k[$j++] = false; //#8873 + $_.getRSSwidths(); //#8873 + var _3p = $k[--$j]; //#8873 + $_[$k[--$j]] = _3p; //#8873 + $k[$j++] = 'd2we'; //#8874 + $k[$j++] = $f($_.d2 - $_.d2gs) % $_.d2te; //#8874 + $k[$j++] = $_.d2ele; //#8874 + $k[$j++] = $_.d2mwe; //#8874 + $k[$j++] = 7; //#8874 + $k[$j++] = true; //#8874 + $_.getRSSwidths(); //#8874 + var _3w = $k[--$j]; //#8874 + $_[$k[--$j]] = _3w; //#8874 + $_.d1w = $a(14); //#8876 + for (var _3z = 0; _3z <= 6; _3z += 1) { //#8881 + $_.i = _3z; //#8878 + $put($_.d1w, $_.i * 2, $get($_.d1wo, $_.i)); //#8879 + $put($_.d1w, ($_.i * 2) + 1, $get($_.d1we, $_.i)); //#8880 + } //#8880 + $_.d2w = $a(14); //#8883 + for (var _4B = 0; _4B <= 6; _4B += 1) { //#8888 + $_.i = _4B; //#8885 + $put($_.d2w, $_.i * 2, $get($_.d2wo, $_.i)); //#8886 + $put($_.d2w, ($_.i * 2) + 1, $get($_.d2we, $_.i)); //#8887 + } //#8887 + $k[$j++] = Infinity; //#8890 + var _4M = $_.d1w; //#8891 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#8891 + $k[$j++] = $get(_4M, _4N); //#8891 + } //#8891 + var _4Q = $_.d2w; //#8892 + for (var _4R = 0, _4S = _4Q.length; _4R < _4S; _4R++) { //#8892 + $k[$j++] = $get(_4Q, _4R); //#8892 + } //#8892 + $_.widths = $a(); //#8892 + if (!bwipp_databarlimited.__8916__) { //#8916 + $_ = Object.create($_); //#8916 + $_.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#8899 + $k[$j++] = Infinity; //#8901 + for (var _4W = 0; _4W <= 43; _4W += 1) { //#8902 + $k[$j++] = _4W; //#8902 } //#8902 - var _k = $_.ais.length; //#8908 - if ((_k == 2) || (_k == 3)) { //#8939 - $k[$j++] = 'ai310x'; //#8909 - $k[$j++] = false; //#8909 - for (var _l = 3100; _l <= 3109; _l += 1) { //#8909 - var _q = $k[--$j]; //#8909 - $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#8909 - } //#8909 - var _r = $k[--$j]; //#8909 - $_[$k[--$j]] = _r; //#8909 - $k[$j++] = 'ai320x'; //#8910 - $k[$j++] = false; //#8910 - for (var _t = 3200; _t <= 3209; _t += 1) { //#8910 - var _y = $k[--$j]; //#8910 - $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#8910 - } //#8910 - var _z = $k[--$j]; //#8910 - $_[$k[--$j]] = _z; //#8910 - if ($_.ais.length == 3) { //#8914 - var _12 = $a(["11", "13", "15", "17"]); //#8912 - $k[$j++] = 'aibad'; //#8912 - $k[$j++] = true; //#8912 - for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#8912 - var _18 = $k[--$j]; //#8912 - $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#8912 - } //#8912 - var _19 = $k[--$j]; //#8912 - $_[$k[--$j]] = _19; //#8912 - } else { //#8914 - $_.aibad = false; //#8914 - } //#8914 - if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#8938 - if ($_.ais.length == 3) { //#8935 - var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#8920 - var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#8921 - if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#8930 - if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#8922 - $k[$j++] = "0111000"; //#8922 - $k[$j++] = false; //#8922 - break; //#8922 - } //#8922 - if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#8923 - $k[$j++] = "0111001"; //#8923 - $k[$j++] = false; //#8923 - break; //#8923 - } //#8923 - if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#8924 - $k[$j++] = "0111010"; //#8924 - $k[$j++] = false; //#8924 - break; //#8924 - } //#8924 - if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#8925 - $k[$j++] = "0111011"; //#8925 - $k[$j++] = false; //#8925 - break; //#8925 - } //#8925 - if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#8926 - $k[$j++] = "0111100"; //#8926 - $k[$j++] = false; //#8926 - break; //#8926 - } //#8926 - if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#8927 - $k[$j++] = "0111101"; //#8927 - $k[$j++] = false; //#8927 - break; //#8927 - } //#8927 - if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#8928 - $k[$j++] = "0111110"; //#8928 - $k[$j++] = false; //#8928 - break; //#8928 - } //#8928 - if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#8929 - $k[$j++] = "0111111"; //#8929 - $k[$j++] = false; //#8929 - break; //#8929 - } //#8929 - } //#8929 - } else { //#8935 - if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#8936 - if ($_.ai310x) { //#8934 - $k[$j++] = "0111000"; //#8934 - $k[$j++] = false; //#8934 - break; //#8934 - } //#8934 - if ($_.ai320x) { //#8935 - $k[$j++] = "0111001"; //#8935 - $k[$j++] = false; //#8935 - break; //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - } //#8935 - if ($_.ais.length >= 2) { //#8947 - $k[$j++] = 'ai392x'; //#8943 - $k[$j++] = false; //#8943 - for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#8943 - var _25 = $k[--$j]; //#8943 - $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#8943 - } //#8943 - var _26 = $k[--$j]; //#8943 - $_[$k[--$j]] = _26; //#8943 - if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#8946 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8945 - $k[$j++] = "01100"; //#8945 - $k[$j++] = true; //#8945 - break; //#8945 - } //#8945 - } //#8945 - } //#8945 - if ($_.ais.length >= 2) { //#8955 - $k[$j++] = 'ai393x'; //#8951 - $k[$j++] = false; //#8951 - for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#8951 - var _2K = $k[--$j]; //#8951 - $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#8951 - } //#8951 - var _2L = $k[--$j]; //#8951 - $_[$k[--$j]] = _2L; //#8951 - if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#8954 - if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#8953 - $k[$j++] = "01101"; //#8953 - $k[$j++] = true; //#8953 - break; //#8953 - } //#8953 - } //#8953 - } //#8953 - if ($eq($get($_.ais, 0), "01")) { //#8958 - $k[$j++] = "1"; //#8958 - $k[$j++] = true; //#8958 - break; //#8958 - } //#8958 - $k[$j++] = "00"; //#8961 - $k[$j++] = true; //#8961 - break; //#8961 - } //#8961 - $_.gpfallow = $k[--$j]; //#8964 - $_.method = $k[--$j]; //#8965 + $k[$j++] = 45; //#8904 + $k[$j++] = 52; //#8904 + $k[$j++] = 57; //#8904 + for (var _4X = 63; _4X <= 66; _4X += 1) { //#8904 + $k[$j++] = _4X; //#8904 + } //#8904 + for (var _4Y = 73; _4Y <= 79; _4Y += 1) { //#8905 + $k[$j++] = _4Y; //#8905 + } //#8905 + $k[$j++] = 82; //#8907 + for (var _4Z = 126; _4Z <= 130; _4Z += 1) { //#8907 + $k[$j++] = _4Z; //#8907 + } //#8907 + $k[$j++] = 132; //#8909 + for (var _4a = 141; _4a <= 146; _4a += 1) { //#8909 + $k[$j++] = _4a; //#8909 + } //#8909 + for (var _4b = 210; _4b <= 217; _4b += 1) { //#8910 + $k[$j++] = _4b; //#8910 + } //#8910 + $k[$j++] = 220; //#8912 + for (var _4c = 316; _4c <= 320; _4c += 1) { //#8912 + $k[$j++] = _4c; //#8912 + } //#8912 + $k[$j++] = 322; //#8914 + $k[$j++] = 323; //#8914 + $k[$j++] = 326; //#8914 + $k[$j++] = 337; //#8914 + $_.checkseq = $a(); //#8914 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarlimited.$ctx[id] = $_[id]); //#8915 + bwipp_databarlimited.__8916__ = 1; //#8915 + $_ = Object.getPrototypeOf($_); //#8915 + } //#8915 + $_.checksum = 0; //#8918 + for (var _4f = 0; _4f <= 27; _4f += 1) { //#8922 + $_.i = _4f; //#8920 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweights, $_.i))); //#8921 + } //#8921 + $_.checksum = $_.checksum % 89; //#8923 + $_.seq = $get($_.checkseq, $_.checksum); //#8924 + $k[$j++] = 'swidths'; //#8925 + $k[$j++] = ~~($_.seq / 21); //#8925 + $k[$j++] = 8; //#8925 + $k[$j++] = 3; //#8925 + $k[$j++] = 6; //#8925 + $k[$j++] = false; //#8925 + $_.getRSSwidths(); //#8925 + var _4s = $k[--$j]; //#8925 + $_[$k[--$j]] = _4s; //#8925 + $k[$j++] = 'bwidths'; //#8926 + $k[$j++] = $_.seq % 21; //#8926 + $k[$j++] = 8; //#8926 + $k[$j++] = 3; //#8926 + $k[$j++] = 6; //#8926 + $k[$j++] = false; //#8926 + $_.getRSSwidths(); //#8926 + var _4v = $k[--$j]; //#8926 + $_[$k[--$j]] = _4v; //#8926 + $_.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#8928 + for (var _4y = 0; _4y <= 5; _4y += 1) { //#8933 + $_.i = _4y; //#8930 + $put($_.checkwidths, $_.i * 2, $get($_.swidths, $_.i)); //#8931 + $put($_.checkwidths, ($_.i * 2) + 1, $get($_.bwidths, $_.i)); //#8932 + } //#8932 + $k[$j++] = Infinity; //#8935 + var _59 = $_.d1w; //#8936 + $k[$j++] = 1; //#8936 + for (var _5A = 0, _5B = _59.length; _5A < _5B; _5A++) { //#8936 + $k[$j++] = $get(_59, _5A); //#8936 + } //#8936 + var _5D = $_.checkwidths; //#8936 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#8936 + $k[$j++] = $get(_5D, _5E); //#8936 + } //#8936 + var _5H = $_.d2w; //#8936 + for (var _5I = 0, _5J = _5H.length; _5I < _5J; _5I++) { //#8936 + $k[$j++] = $get(_5H, _5I); //#8936 + } //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 1; //#8936 + $k[$j++] = 5; //#8936 + $_.sbs = $a(); //#8936 + $k[$j++] = Infinity; //#8940 + var _5M = $_.sbs; //#8942 + $k[$j++] = Infinity; //#8943 + for (var _5O = 0, _5P = ~~(($_.sbs.length + 1) / 2); _5O < _5P; _5O++) { //#8943 + $k[$j++] = $_.height; //#8943 + } //#8943 + var _5R = $a(); //#8943 + $k[$j++] = Infinity; //#8944 + for (var _5T = 0, _5U = ~~(($_.sbs.length + 1) / 2); _5T < _5U; _5T++) { //#8944 + $k[$j++] = 0; //#8944 + } //#8944 + var _5V = $a(); //#8944 + $k[$j++] = 'ren'; //#8949 + $k[$j++] = bwipp_renlinear; //#8949 + $k[$j++] = 'sbs'; //#8949 + $k[$j++] = _5M; //#8949 + $k[$j++] = 'bhs'; //#8949 + $k[$j++] = _5R; //#8949 + $k[$j++] = 'bbs'; //#8949 + $k[$j++] = _5V; //#8949 + $k[$j++] = 'txt'; //#8949 + $k[$j++] = $_.txt; //#8949 + $k[$j++] = 'textxalign'; //#8949 + $k[$j++] = "center"; //#8949 + $k[$j++] = 'borderleft'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'borderright'; //#8949 + $k[$j++] = 0; //#8949 + $k[$j++] = 'opt'; //#8949 + $k[$j++] = $_.options; //#8949 + var _5Y = $d(); //#8949 + $k[$j++] = _5Y; //#8952 + if (!$_.dontdraw) { //#8952 + bwipp_renlinear(); //#8952 + } //#8952 + $_ = Object.getPrototypeOf($_); //#8954 + $_ = Object.getPrototypeOf($_); //#8956 +} //bwipp_databarlimited +function bwipp_databarexpanded() { + $_ = Object.create($_); //#8988 + $_.parse = false; //#8991 + $_.dontlint = false; //#8992 + $_.lintreqs = true; //#8993 + $_.dontdraw = false; //#8994 + $_.height = 34 / 72; //#8995 + $_.format = "expanded"; //#8996 + $_.segments = -1; //#8997 + $_.linkage = false; //#8998 + $_.barxmult = 34; //#8999 + $k[$j++] = $_; //#9001 + bwipp_processoptions(); //#9001 + $_.options = $k[--$j]; //#9001 + $_.barcode = $k[--$j]; //#9002 + bwipp_loadctx(bwipp_databarexpanded) //#9004 + if ($_.barxmult < 34) { //#9008 + $k[$j++] = 'bwipp.databarStackedOmniBarXmult#9007'; //#9007 + $k[$j++] = "GS1 DataBar Expanded Stacked must have a barxmult of at least 34"; //#9007 + bwipp_raiseerror(); //#9007 + } //#9007 + if ($ne($_.format, "expanded") && $ne($_.format, "expandedstacked")) { //#9012 + $k[$j++] = 'bwipp.databarexpandedBadFormat#9011'; //#9011 + $k[$j++] = "Valid formats are expanded and expandedstacked"; //#9011 + bwipp_raiseerror(); //#9011 + } //#9011 + if ($_.segments == -1) { //#9018 + var _7 = $eq($_.format, "expandedstacked") ? 4 : 22; //#9015 + $_.segments = _7; //#9015 + } else { //#9018 + if ((($_.segments < 2) || ($_.segments > 22)) || (($_.segments % 2) != 0)) { //#9019 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments#9018'; //#9018 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#9018 + bwipp_raiseerror(); //#9018 + } //#9018 + } //#9018 + $k[$j++] = $_.barcode; //#9022 + $k[$j++] = 'ai'; //#9022 + bwipp_gs1process(); //#9022 + $_.fncs = $k[--$j]; //#9023 + $_.vals = $k[--$j]; //#9024 + $_.ais = $k[--$j]; //#9025 + for (;;) { //#9113 + if ($_.ais.length == 2) { //#9037 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3103")) { //#9036 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 32767)) { //#9035 + $k[$j++] = "0100"; //#9034 + $k[$j++] = false; //#9034 + break; //#9034 + } //#9034 + } //#9034 + } //#9034 + if ($_.ais.length == 2) { //#9046 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3202")) { //#9045 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 9999)) { //#9044 + $k[$j++] = "0101"; //#9043 + $k[$j++] = false; //#9043 + break; //#9043 + } //#9043 + } //#9043 + } //#9043 + if ($_.ais.length == 2) { //#9055 + if ($eq($get($_.ais, 0), "01") && $eq($get($_.ais, 1), "3203")) { //#9054 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 22767)) { //#9053 + $k[$j++] = "0101"; //#9052 + $k[$j++] = false; //#9052 + break; //#9052 + } //#9052 + } //#9052 + } //#9052 + var _k = $_.ais.length; //#9058 + if ((_k == 2) || (_k == 3)) { //#9089 + $k[$j++] = 'ai310x'; //#9059 + $k[$j++] = false; //#9059 + for (var _l = 3100; _l <= 3109; _l += 1) { //#9059 + var _q = $k[--$j]; //#9059 + $k[$j++] = _q || $eq($cvrs($s(4), _l, 10), $get($_.ais, 1)); //#9059 + } //#9059 + var _r = $k[--$j]; //#9059 + $_[$k[--$j]] = _r; //#9059 + $k[$j++] = 'ai320x'; //#9060 + $k[$j++] = false; //#9060 + for (var _t = 3200; _t <= 3209; _t += 1) { //#9060 + var _y = $k[--$j]; //#9060 + $k[$j++] = _y || $eq($cvrs($s(4), _t, 10), $get($_.ais, 1)); //#9060 + } //#9060 + var _z = $k[--$j]; //#9060 + $_[$k[--$j]] = _z; //#9060 + if ($_.ais.length == 3) { //#9064 + var _12 = $a(["11", "13", "15", "17"]); //#9062 + $k[$j++] = 'aibad'; //#9062 + $k[$j++] = true; //#9062 + for (var _13 = 0, _14 = _12.length; _13 < _14; _13++) { //#9062 + var _18 = $k[--$j]; //#9062 + $k[$j++] = _18 && $ne($get(_12, _13), $get($_.ais, 2)); //#9062 + } //#9062 + var _19 = $k[--$j]; //#9062 + $_[$k[--$j]] = _19; //#9062 + } else { //#9064 + $_.aibad = false; //#9064 + } //#9064 + if (($eq($get($_.ais, 0), "01") && ($_.ai310x || $_.ai320x)) && (!$_.aibad)) { //#9088 + if ($_.ais.length == 3) { //#9085 + var _1P = $cvi($geti($get($_.vals, 2), 2, 2)); //#9070 + var _1T = $cvi($geti($get($_.vals, 2), 4, 2)); //#9071 + if ((($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) && ((_1P >= 1) && (_1P <= 12))) && ((_1T >= 0) && (_1T <= 31))) { //#9080 + if ($_.ai310x && $eq($get($_.ais, 2), "11")) { //#9072 + $k[$j++] = "0111000"; //#9072 + $k[$j++] = false; //#9072 + break; //#9072 + } //#9072 + if ($_.ai320x && $eq($get($_.ais, 2), "11")) { //#9073 + $k[$j++] = "0111001"; //#9073 + $k[$j++] = false; //#9073 + break; //#9073 + } //#9073 + if ($_.ai310x && $eq($get($_.ais, 2), "13")) { //#9074 + $k[$j++] = "0111010"; //#9074 + $k[$j++] = false; //#9074 + break; //#9074 + } //#9074 + if ($_.ai320x && $eq($get($_.ais, 2), "13")) { //#9075 + $k[$j++] = "0111011"; //#9075 + $k[$j++] = false; //#9075 + break; //#9075 + } //#9075 + if ($_.ai310x && $eq($get($_.ais, 2), "15")) { //#9076 + $k[$j++] = "0111100"; //#9076 + $k[$j++] = false; //#9076 + break; //#9076 + } //#9076 + if ($_.ai320x && $eq($get($_.ais, 2), "15")) { //#9077 + $k[$j++] = "0111101"; //#9077 + $k[$j++] = false; //#9077 + break; //#9077 + } //#9077 + if ($_.ai310x && $eq($get($_.ais, 2), "17")) { //#9078 + $k[$j++] = "0111110"; //#9078 + $k[$j++] = false; //#9078 + break; //#9078 + } //#9078 + if ($_.ai320x && $eq($get($_.ais, 2), "17")) { //#9079 + $k[$j++] = "0111111"; //#9079 + $k[$j++] = false; //#9079 + break; //#9079 + } //#9079 + } //#9079 + } else { //#9085 + if ($eq($geti($get($_.vals, 0), 0, 1), "9") && ($cvi($get($_.vals, 1)) <= 99999)) { //#9086 + if ($_.ai310x) { //#9084 + $k[$j++] = "0111000"; //#9084 + $k[$j++] = false; //#9084 + break; //#9084 + } //#9084 + if ($_.ai320x) { //#9085 + $k[$j++] = "0111001"; //#9085 + $k[$j++] = false; //#9085 + break; //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + } //#9085 + if ($_.ais.length >= 2) { //#9097 + $k[$j++] = 'ai392x'; //#9093 + $k[$j++] = false; //#9093 + for (var _20 = 3920; _20 <= 3923; _20 += 1) { //#9093 + var _25 = $k[--$j]; //#9093 + $k[$j++] = _25 || $eq($cvrs($s(4), _20, 10), $get($_.ais, 1)); //#9093 + } //#9093 + var _26 = $k[--$j]; //#9093 + $_[$k[--$j]] = _26; //#9093 + if ($eq($get($_.ais, 0), "01") && $_.ai392x) { //#9096 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9095 + $k[$j++] = "01100"; //#9095 + $k[$j++] = true; //#9095 + break; //#9095 + } //#9095 + } //#9095 + } //#9095 + if ($_.ais.length >= 2) { //#9105 + $k[$j++] = 'ai393x'; //#9101 + $k[$j++] = false; //#9101 + for (var _2F = 3930; _2F <= 3933; _2F += 1) { //#9101 + var _2K = $k[--$j]; //#9101 + $k[$j++] = _2K || $eq($cvrs($s(4), _2F, 10), $get($_.ais, 1)); //#9101 + } //#9101 + var _2L = $k[--$j]; //#9101 + $_[$k[--$j]] = _2L; //#9101 + if ($eq($get($_.ais, 0), "01") && $_.ai393x) { //#9104 + if ($eq($geti($get($_.vals, 0), 0, 1), "9")) { //#9103 + $k[$j++] = "01101"; //#9103 + $k[$j++] = true; //#9103 + break; //#9103 + } //#9103 + } //#9103 + } //#9103 + if ($eq($get($_.ais, 0), "01")) { //#9108 + $k[$j++] = "1"; //#9108 + $k[$j++] = true; //#9108 + break; //#9108 + } //#9108 + $k[$j++] = "00"; //#9111 + $k[$j++] = true; //#9111 + break; //#9111 + } //#9111 + $_.gpfallow = $k[--$j]; //#9114 + $_.method = $k[--$j]; //#9115 $_.conv12to40 = function() { - var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#8968 - var _2Z = $k[--$j]; //#8969 - var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#8969 - $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#8969 - var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#8970 - $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#8970 - var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#8971 - $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#8971 - var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#8972 - $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#8972 - $k[$j++] = _2Y; //#8973 - $k[$j++] = _2Z; //#8973 - $j--; //#8973 - }; //#8973 + var _2Y = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#9118 + var _2Z = $k[--$j]; //#9119 + var _2d = $cvrs($s(10), $cvi($geti(_2Z, 0, 3)), 2); //#9119 + $puti($geti(_2Y, 0, 10), 10 - _2d.length, _2d); //#9119 + var _2h = $cvrs($s(10), $cvi($geti(_2Z, 3, 3)), 2); //#9120 + $puti($geti(_2Y, 10, 10), 10 - _2h.length, _2h); //#9120 + var _2l = $cvrs($s(10), $cvi($geti(_2Z, 6, 3)), 2); //#9121 + $puti($geti(_2Y, 20, 10), 10 - _2l.length, _2l); //#9121 + var _2p = $cvrs($s(10), $cvi($geti(_2Z, 9, 3)), 2); //#9122 + $puti($geti(_2Y, 30, 10), 10 - _2p.length, _2p); //#9122 + $k[$j++] = _2Y; //#9123 + $k[$j++] = _2Z; //#9123 + $j--; //#9123 + }; //#9123 $_.conv13to44 = function() { - var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#8977 - var _2s = $k[--$j]; //#8978 - var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#8978 - $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#8978 - $k[$j++] = _2r; //#8979 - $k[$j++] = _2r; //#8979 - $k[$j++] = $geti(_2s, 1, 12); //#8979 - $_.conv12to40(); //#8979 - var _2y = $k[--$j]; //#8979 - $puti($k[--$j], 4, _2y); //#8979 - }; //#8979 + var _2r = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#9127 + var _2s = $k[--$j]; //#9128 + var _2w = $cvrs($s(4), $cvi($geti(_2s, 0, 1)), 2); //#9128 + $puti($geti(_2r, 0, 4), 4 - _2w.length, _2w); //#9128 + $k[$j++] = _2r; //#9129 + $k[$j++] = _2r; //#9129 + $k[$j++] = $geti(_2s, 1, 12); //#9129 + $_.conv12to40(); //#9129 + var _2y = $k[--$j]; //#9129 + $puti($k[--$j], 4, _2y); //#9129 + }; //#9129 $_.tobin = function() { - var _31 = $s($k[--$j]); //#8983 - $k[$j++] = _31; //#8983 - for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#8983 - var _34 = $k[--$j]; //#8983 - $put(_34, _33, 48); //#8983 - $k[$j++] = _34; //#8983 - } //#8983 - var _35 = $k[--$j]; //#8984 - var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#8984 - $puti(_35, _35.length - _38.length, _38); //#8984 - $k[$j++] = _35; //#8984 - }; //#8984 - $_.fnc1 = -1; //#8987 - $_.lnumeric = -2; //#8987 - $_.lalphanumeric = -3; //#8987 - $_.liso646 = -4; //#8987 - if ($eq($_.method, "00")) { //#8992 - $_.cdf = $a([]); //#8990 - $_.gpf = $a([]); //#8991 - } //#8991 - if ($eq($_.method, "1")) { //#9001 - $k[$j++] = 'cdf'; //#8995 - $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#8995 - $_.conv13to44(); //#8995 - var _3G = $k[--$j]; //#8995 - $_[$k[--$j]] = _3G; //#8995 - $k[$j++] = Infinity; //#8996 - var _3I = $_.cdf; //#8996 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#8996 - $k[$j++] = $f($get(_3I, _3J) - 48); //#8996 - } //#8996 - $_.cdf = $a(); //#8996 - $_.gpf = $a([]); //#8997 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#8998 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#8999 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9000 - } //#9000 - if ($eq($_.method, "0100")) { //#9012 - $_.cdf = $s(55); //#9004 - $k[$j++] = $_.cdf; //#9005 - $k[$j++] = 0; //#9005 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9005 - $_.conv12to40(); //#9005 - var _3d = $k[--$j]; //#9005 - var _3e = $k[--$j]; //#9005 - $puti($k[--$j], _3e, _3d); //#9005 - $k[$j++] = $_.cdf; //#9006 - $k[$j++] = 40; //#9006 - $k[$j++] = $cvi($get($_.vals, 1)); //#9006 - $k[$j++] = 15; //#9006 - $_.tobin(); //#9006 - var _3j = $k[--$j]; //#9006 - var _3k = $k[--$j]; //#9006 - $puti($k[--$j], _3k, _3j); //#9006 - $k[$j++] = Infinity; //#9007 - var _3m = $_.cdf; //#9007 - for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9007 - $k[$j++] = $get(_3m, _3n) - 48; //#9007 - } //#9007 - $_.cdf = $a(); //#9007 - $_.gpf = $a([]); //#9008 - $_.ais = $a([]); //#9009 - $_.vals = $a([]); //#9010 - $_.fncs = $a([]); //#9011 - } //#9011 - if ($eq($_.method, "0101")) { //#9028 - $_.cdf = $s(55); //#9015 - $k[$j++] = $_.cdf; //#9016 - $k[$j++] = 0; //#9016 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9016 - $_.conv12to40(); //#9016 - var _41 = $k[--$j]; //#9016 - var _42 = $k[--$j]; //#9016 - $puti($k[--$j], _42, _41); //#9016 - if ($eq($get($_.ais, 1), "3202")) { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)); //#9018 - $k[$j++] = 15; //#9018 - $_.tobin(); //#9018 - } else { //#9020 - $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9020 - $k[$j++] = 15; //#9020 - $_.tobin(); //#9020 - } //#9020 - $puti($_.cdf, 40, $k[--$j]); //#9022 - $k[$j++] = Infinity; //#9023 - var _4C = $_.cdf; //#9023 - for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9023 - $k[$j++] = $get(_4C, _4D) - 48; //#9023 - } //#9023 - $_.cdf = $a(); //#9023 - $_.gpf = $a([]); //#9024 - $_.ais = $a([]); //#9025 - $_.vals = $a([]); //#9026 - $_.fncs = $a([]); //#9027 - } //#9027 - if ($_.method.length == 7) { //#9050 - $_.cdf = $s(76); //#9031 - $k[$j++] = $_.cdf; //#9032 - $k[$j++] = 0; //#9032 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9032 - $_.conv12to40(); //#9032 - var _4R = $k[--$j]; //#9032 - var _4S = $k[--$j]; //#9032 - $puti($k[--$j], _4S, _4R); //#9032 - var _4U = $s(6); //#9033 - $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9033 - $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9034 - $k[$j++] = $cvi(_4U); //#9034 - $k[$j++] = 20; //#9034 - $_.tobin(); //#9034 - $puti($_.cdf, 40, $k[--$j]); //#9035 - if ($_.ais.length == 3) { //#9042 - var _4f = $get($_.vals, 2); //#9037 - $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9040 - } else { //#9042 - $k[$j++] = 38400; //#9042 - } //#9042 - $k[$j++] = 16; //#9044 - $_.tobin(); //#9044 - $puti($_.cdf, 60, $k[--$j]); //#9044 - $k[$j++] = Infinity; //#9045 - var _4l = $_.cdf; //#9045 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9045 - $k[$j++] = $get(_4l, _4m) - 48; //#9045 - } //#9045 - $_.cdf = $a(); //#9045 - $_.gpf = $a([]); //#9046 - $_.ais = $a([]); //#9047 - $_.vals = $a([]); //#9048 - $_.fncs = $a([]); //#9049 - } //#9049 - if ($eq($_.method, "01100")) { //#9061 - $_.cdf = $s(42); //#9053 - $k[$j++] = $_.cdf; //#9054 - $k[$j++] = 0; //#9054 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9054 - $_.conv12to40(); //#9054 - var _50 = $k[--$j]; //#9054 - var _51 = $k[--$j]; //#9054 - $puti($k[--$j], _51, _50); //#9054 - $k[$j++] = $_.cdf; //#9055 - $k[$j++] = 40; //#9055 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9055 - $k[$j++] = 2; //#9055 - $_.tobin(); //#9055 - var _57 = $k[--$j]; //#9055 - var _58 = $k[--$j]; //#9055 - $puti($k[--$j], _58, _57); //#9055 - $k[$j++] = Infinity; //#9056 - var _5A = $_.cdf; //#9056 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9056 - $k[$j++] = $get(_5A, _5B) - 48; //#9056 - } //#9056 - $_.cdf = $a(); //#9056 - $k[$j++] = Infinity; //#9057 - $forall($get($_.vals, 1)); //#9057 - if ($_.ais.length > 2) { //#9057 - $k[$j++] = $_.fnc1; //#9057 - } //#9057 - $_.gpf = $a(); //#9057 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9058 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9059 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9060 - } //#9060 - if ($eq($_.method, "01101")) { //#9073 - $_.cdf = $s(52); //#9064 - $k[$j++] = $_.cdf; //#9065 - $k[$j++] = 0; //#9065 - $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9065 - $_.conv12to40(); //#9065 - var _5Z = $k[--$j]; //#9065 - var _5a = $k[--$j]; //#9065 - $puti($k[--$j], _5a, _5Z); //#9065 - $k[$j++] = $_.cdf; //#9066 - $k[$j++] = 40; //#9066 - $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9066 - $k[$j++] = 2; //#9066 - $_.tobin(); //#9066 - var _5g = $k[--$j]; //#9066 - var _5h = $k[--$j]; //#9066 - $puti($k[--$j], _5h, _5g); //#9066 - $k[$j++] = $_.cdf; //#9067 - $k[$j++] = 42; //#9067 - $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9067 - $k[$j++] = 10; //#9067 - $_.tobin(); //#9067 - var _5n = $k[--$j]; //#9067 - var _5o = $k[--$j]; //#9067 - $puti($k[--$j], _5o, _5n); //#9067 - $k[$j++] = Infinity; //#9068 - var _5q = $_.cdf; //#9068 - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9068 - $k[$j++] = $get(_5q, _5r) - 48; //#9068 - } //#9068 - $_.cdf = $a(); //#9068 - $k[$j++] = Infinity; //#9069 - var _5w = $get($_.vals, 1); //#9069 - var _5x = $geti(_5w, 3, _5w.length - 3); //#9069 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9069 - $k[$j++] = $get(_5x, _5y); //#9069 - } //#9069 - if ($_.ais.length > 2) { //#9069 - $k[$j++] = $_.fnc1; //#9069 - } //#9069 - $_.gpf = $a(); //#9069 - $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9070 - $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9071 - $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9072 - } //#9072 - if ($_.gpfallow) { //#9079 - $_.vlf = $a(2); //#9077 - } else { //#9079 - $_.vlf = $a([]); //#9079 - } //#9079 - if (!bwipp_databarexpanded.__9120__) { //#9120 - $_ = Object.create($_); //#9120 - $k[$j++] = Infinity; //#9093 - for (var _6G = 0; _6G <= 119; _6G += 1) { //#9092 - var _6I = $strcpy($s(2), "00"); //#9085 - var _6K = $cvrs($s(2), _6G, 11); //#9085 - $puti(_6I, 2 - _6K.length, _6K); //#9086 - $k[$j++] = _6G; //#9087 - $k[$j++] = _6I; //#9087 - if ($get(_6I, 0) == 65) { //#9087 - var _6M = $k[--$j]; //#9087 - $put(_6M, 0, 94); //#9087 - $k[$j++] = _6M; //#9087 - } //#9087 - var _6N = $k[--$j]; //#9088 - $k[$j++] = _6N; //#9088 - if ($get(_6N, 1) == 65) { //#9088 - var _6P = $k[--$j]; //#9088 - $put(_6P, 1, 94); //#9088 - $k[$j++] = _6P; //#9088 - } //#9088 - var _6Q = $k[--$j]; //#9089 - var _6T = $strcpy($s(7), "0000000"); //#9090 - var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9090 - $puti(_6T, 7 - _6V.length, _6V); //#9091 - $k[$j++] = _6Q; //#9091 - $k[$j++] = _6T; //#9091 - } //#9091 - $k[$j++] = $_.lalphanumeric; //#9093 - $k[$j++] = "0000"; //#9093 - $_.numeric = $d(); //#9094 - $k[$j++] = Infinity; //#9103 - for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9097 - $k[$j++] = _6Y; //#9097 - $k[$j++] = _6Y - 43; //#9097 - $k[$j++] = 5; //#9097 - $_.tobin(); //#9097 - } //#9097 - $k[$j++] = $_.fnc1; //#9099 - $k[$j++] = "01111"; //#9099 - for (var _6a = 65; _6a <= 90; _6a += 1) { //#9099 - $k[$j++] = _6a; //#9099 - $k[$j++] = _6a - 33; //#9099 - $k[$j++] = 6; //#9099 - $_.tobin(); //#9099 - } //#9099 - $k[$j++] = 42; //#9101 - $k[$j++] = "111010"; //#9101 - for (var _6b = 44; _6b <= 47; _6b += 1) { //#9101 - $k[$j++] = _6b; //#9101 - $k[$j++] = _6b + 15; //#9101 - $k[$j++] = 6; //#9101 - $_.tobin(); //#9101 - } //#9101 - $k[$j++] = $_.lnumeric; //#9103 - $k[$j++] = "000"; //#9103 - $k[$j++] = $_.liso646; //#9103 - $k[$j++] = "00100"; //#9103 - $_.alphanumeric = $d(); //#9104 - $k[$j++] = Infinity; //#9118 - for (var _6f = 48; _6f <= 57; _6f += 1) { //#9107 - $k[$j++] = _6f; //#9107 - $k[$j++] = _6f - 43; //#9107 - $k[$j++] = 5; //#9107 - $_.tobin(); //#9107 - } //#9107 - $k[$j++] = $_.fnc1; //#9109 - $k[$j++] = "01111"; //#9109 - for (var _6h = 65; _6h <= 90; _6h += 1) { //#9109 - $k[$j++] = _6h; //#9109 - $k[$j++] = _6h - 1; //#9109 - $k[$j++] = 7; //#9109 - $_.tobin(); //#9109 - } //#9109 - for (var _6i = 97; _6i <= 122; _6i += 1) { //#9110 - $k[$j++] = _6i; //#9110 - $k[$j++] = _6i - 7; //#9110 - $k[$j++] = 7; //#9110 - $_.tobin(); //#9110 - } //#9110 - $k[$j++] = 33; //#9113 - $k[$j++] = "11101000"; //#9113 - $k[$j++] = 34; //#9113 - $k[$j++] = "11101001"; //#9113 - for (var _6j = 37; _6j <= 47; _6j += 1) { //#9113 - $k[$j++] = _6j; //#9113 - $k[$j++] = _6j + 197; //#9113 - $k[$j++] = 8; //#9113 - $_.tobin(); //#9113 - } //#9113 - for (var _6k = 58; _6k <= 63; _6k += 1) { //#9114 - $k[$j++] = _6k; //#9114 - $k[$j++] = _6k + 187; //#9114 - $k[$j++] = 8; //#9114 - $_.tobin(); //#9114 - } //#9114 - $k[$j++] = 95; //#9118 - $k[$j++] = "11111011"; //#9118 - $k[$j++] = 32; //#9118 - $k[$j++] = "11111100"; //#9118 - $k[$j++] = $_.lnumeric; //#9118 - $k[$j++] = "000"; //#9118 - $k[$j++] = $_.lalphanumeric; //#9118 - $k[$j++] = "00100"; //#9118 - $_.iso646 = $d(); //#9119 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9119 - bwipp_databarexpanded.__9120__ = 1; //#9119 - $_ = Object.getPrototypeOf($_); //#9119 - } //#9119 - for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9138 - $_.i = _6r; //#9124 - $_.ai = $get($_.ais, $_.i); //#9125 - $_.val = $get($_.vals, $_.i); //#9126 - var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9127 - $puti(_71, 0, $_.gpf); //#9128 - $k[$j++] = _71; //#9129 - $k[$j++] = _71; //#9129 - $k[$j++] = $_.gpf.length; //#9129 - $k[$j++] = $_.ai; //#9129 - $k[$j++] = Infinity; //#9129 - var _75 = $k[--$j]; //#9129 - var _76 = $k[--$j]; //#9129 - $k[$j++] = _75; //#9129 - $forall(_76); //#9129 - var _77 = $a(); //#9129 - var _78 = $k[--$j]; //#9129 - $puti($k[--$j], _78, _77); //#9129 - var _7A = $k[--$j]; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = _7A; //#9130 - $k[$j++] = $_.gpf.length + $_.ai.length; //#9130 - $k[$j++] = $_.val; //#9130 - $k[$j++] = Infinity; //#9130 - var _7E = $k[--$j]; //#9130 - var _7F = $k[--$j]; //#9130 - $k[$j++] = _7E; //#9130 - $forall(_7F); //#9130 - var _7G = $a(); //#9130 - var _7H = $k[--$j]; //#9130 - $puti($k[--$j], _7H, _7G); //#9130 - $_.gpf = $k[--$j]; //#9131 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9137 - var _7Q = $a($_.gpf.length + 1); //#9133 - $puti(_7Q, 0, $_.gpf); //#9134 - $put(_7Q, $_.gpf.length, $_.fnc1); //#9135 - $_.gpf = _7Q; //#9136 - } //#9136 - } //#9136 - $_.rembits = function() { - var _7U = $k[--$j]; //#9142 - var _7V = 48; //#9144 - var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9144 - if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9144 - var _ = _7V; //#9144 - _7V = _7W; //#9144 - _7W = _; //#9144 - } //#9144 - var _7X = ~~(_7W / 12); //#9145 - $k[$j++] = _7U; //#9149 - $k[$j++] = _7W; //#9149 - $k[$j++] = _7X; //#9149 - if ((_7X % $_.segments) == 1) { //#9148 - var _7Z = $k[--$j]; //#9146 - var _7a = $k[--$j]; //#9146 - $k[$j++] = $f(_7Z + 1) * 12; //#9146 - $k[$j++] = _7a; //#9146 - $j--; //#9146 - } else { //#9148 - $j--; //#9148 - } //#9148 - var _7b = $k[--$j]; //#9150 - var _7c = $k[--$j]; //#9150 - $k[$j++] = $f(_7b - _7c); //#9150 - }; //#9150 - $_.encode = function() { - var _7d = $k[--$j]; //#9154 - $k[$j++] = _7d; //#9154 - if ($ne(_7d, 'raw')) { //#9154 - var _7e = $k[--$j]; //#9154 - var _7g = $get(_7e, $k[--$j]); //#9154 - $k[$j++] = _7g; //#9154 - } else { //#9154 - $j--; //#9154 - } //#9154 - $k[$j++] = Infinity; //#9155 - var _7h = $k[--$j]; //#9155 - var _7i = $k[--$j]; //#9155 - $k[$j++] = _7h; //#9155 - $forall(_7i, function() { //#9155 - var _7j = $k[--$j]; //#9155 - $k[$j++] = $f(_7j - 48); //#9155 - }); //#9155 - var _7k = $a(); //#9155 - $puti($_.gpfenc, $_.j, _7k); //#9157 - $_.j = _7k.length + $_.j; //#9158 - }; //#9158 - $k[$j++] = Infinity; //#9162 - for (var _7p = 0, _7q = $_.gpf.length; _7p < _7q; _7p++) { //#9162 - $k[$j++] = 0; //#9162 - } //#9162 - $k[$j++] = 0; //#9162 - $k[$j++] = -1; //#9162 - $_.numericruns = $a(); //#9162 - $k[$j++] = Infinity; //#9163 - for (var _7t = 0, _7u = $_.gpf.length; _7t < _7u; _7t++) { //#9163 - $k[$j++] = 0; //#9163 - } //#9163 - $k[$j++] = 0; //#9163 - $_.alphanumericruns = $a(); //#9163 - $k[$j++] = Infinity; //#9164 - for (var _7x = 0, _7y = $_.gpf.length; _7x < _7y; _7x++) { //#9164 - $k[$j++] = 0; //#9164 - } //#9164 - $k[$j++] = 9999; //#9164 - $_.nextiso646only = $a(); //#9164 - for (var _81 = $_.gpf.length - 1; _81 >= 0; _81 -= 1) { //#9186 - $_.i = _81; //#9166 - var _86 = $strcpy($s(2), "00"); //#9168 - var _89 = $get($_.gpf, $_.i); //#9169 - $k[$j++] = $get($_.gpf, $_.i); //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = _86; //#9169 - $k[$j++] = 0; //#9169 - $k[$j++] = _89; //#9169 - if (_89 == $_.fnc1) { //#9169 - $j--; //#9169 - $k[$j++] = 94; //#9169 - } //#9169 - var _8B = $k[--$j]; //#9169 - var _8C = $k[--$j]; //#9169 - $put($k[--$j], _8C, _8B); //#9169 - if ($_.i < ($_.gpf.length - 1)) { //#9170 - var _8G = $k[--$j]; //#9170 - var _8J = $get($_.gpf, $_.i + 1); //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = _8G; //#9170 - $k[$j++] = 1; //#9170 - $k[$j++] = _8J; //#9170 - if (_8J == $_.fnc1) { //#9170 - $j--; //#9170 - $k[$j++] = 94; //#9170 - } //#9170 - var _8L = $k[--$j]; //#9170 - var _8M = $k[--$j]; //#9170 - $put($k[--$j], _8M, _8L); //#9170 + var _31 = $s($k[--$j]); //#9133 + $k[$j++] = _31; //#9133 + for (var _33 = 0, _32 = _31.length - 1; _33 <= _32; _33 += 1) { //#9133 + var _34 = $k[--$j]; //#9133 + $put(_34, _33, 48); //#9133 + $k[$j++] = _34; //#9133 + } //#9133 + var _35 = $k[--$j]; //#9134 + var _38 = $cvrs($s(_35.length), $k[--$j], 2); //#9134 + $puti(_35, _35.length - _38.length, _38); //#9134 + $k[$j++] = _35; //#9134 + }; //#9134 + $_.fnc1 = -1; //#9137 + $_.lnumeric = -2; //#9137 + $_.lalphanumeric = -3; //#9137 + $_.liso646 = -4; //#9137 + if ($eq($_.method, "00")) { //#9142 + $_.cdf = $a([]); //#9140 + $_.gpf = $a([]); //#9141 + } //#9141 + if ($eq($_.method, "1")) { //#9151 + $k[$j++] = 'cdf'; //#9145 + $k[$j++] = $geti($get($_.vals, 0), 0, 13); //#9145 + $_.conv13to44(); //#9145 + var _3G = $k[--$j]; //#9145 + $_[$k[--$j]] = _3G; //#9145 + $k[$j++] = Infinity; //#9146 + var _3I = $_.cdf; //#9146 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#9146 + $k[$j++] = $f($get(_3I, _3J) - 48); //#9146 + } //#9146 + $_.cdf = $a(); //#9146 + $_.gpf = $a([]); //#9147 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#9148 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#9149 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#9150 + } //#9150 + if ($eq($_.method, "0100")) { //#9162 + $_.cdf = $s(55); //#9154 + $k[$j++] = $_.cdf; //#9155 + $k[$j++] = 0; //#9155 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9155 + $_.conv12to40(); //#9155 + var _3d = $k[--$j]; //#9155 + var _3e = $k[--$j]; //#9155 + $puti($k[--$j], _3e, _3d); //#9155 + $k[$j++] = $_.cdf; //#9156 + $k[$j++] = 40; //#9156 + $k[$j++] = $cvi($get($_.vals, 1)); //#9156 + $k[$j++] = 15; //#9156 + $_.tobin(); //#9156 + var _3j = $k[--$j]; //#9156 + var _3k = $k[--$j]; //#9156 + $puti($k[--$j], _3k, _3j); //#9156 + $k[$j++] = Infinity; //#9157 + var _3m = $_.cdf; //#9157 + for (var _3n = 0, _3o = _3m.length; _3n < _3o; _3n++) { //#9157 + $k[$j++] = $get(_3m, _3n) - 48; //#9157 + } //#9157 + $_.cdf = $a(); //#9157 + $_.gpf = $a([]); //#9158 + $_.ais = $a([]); //#9159 + $_.vals = $a([]); //#9160 + $_.fncs = $a([]); //#9161 + } //#9161 + if ($eq($_.method, "0101")) { //#9178 + $_.cdf = $s(55); //#9165 + $k[$j++] = $_.cdf; //#9166 + $k[$j++] = 0; //#9166 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9166 + $_.conv12to40(); //#9166 + var _41 = $k[--$j]; //#9166 + var _42 = $k[--$j]; //#9166 + $puti($k[--$j], _42, _41); //#9166 + if ($eq($get($_.ais, 1), "3202")) { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)); //#9168 + $k[$j++] = 15; //#9168 + $_.tobin(); //#9168 + } else { //#9170 + $k[$j++] = $cvi($get($_.vals, 1)) + 10000; //#9170 + $k[$j++] = 15; //#9170 + $_.tobin(); //#9170 } //#9170 - var _8Q = $get($_.numeric, $k[--$j]) !== undefined; //#9171 - if (_8Q) { //#9174 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9172 - } else { //#9174 - $put($_.numericruns, $_.i, 0); //#9174 - } //#9174 - var _8Y = $k[--$j]; //#9176 - var _8a = $get($_.alphanumeric, _8Y) !== undefined; //#9176 - $k[$j++] = _8Y; //#9180 - if (_8a) { //#9179 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9177 - } else { //#9179 - $put($_.alphanumericruns, $_.i, 0); //#9179 - } //#9179 - var _8i = $k[--$j]; //#9181 - var _8k = $get($_.iso646, _8i) !== undefined; //#9181 - var _8m = $get($_.alphanumeric, _8i) !== undefined; //#9181 - if (_8k && (!_8m)) { //#9184 - $put($_.nextiso646only, $_.i, 0); //#9182 - } else { //#9184 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9184 - } //#9184 - } //#9184 - $_.gpfenc = $a(252); //#9189 - $_.i = 0; //#9190 - $_.j = 0; //#9190 - $_.mode = "numeric"; //#9190 - for (;;) { //#9280 - if ($_.i == $_.gpf.length) { //#9192 - break; //#9192 + $puti($_.cdf, 40, $k[--$j]); //#9172 + $k[$j++] = Infinity; //#9173 + var _4C = $_.cdf; //#9173 + for (var _4D = 0, _4E = _4C.length; _4D < _4E; _4D++) { //#9173 + $k[$j++] = $get(_4C, _4D) - 48; //#9173 + } //#9173 + $_.cdf = $a(); //#9173 + $_.gpf = $a([]); //#9174 + $_.ais = $a([]); //#9175 + $_.vals = $a([]); //#9176 + $_.fncs = $a([]); //#9177 + } //#9177 + if ($_.method.length == 7) { //#9200 + $_.cdf = $s(76); //#9181 + $k[$j++] = $_.cdf; //#9182 + $k[$j++] = 0; //#9182 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9182 + $_.conv12to40(); //#9182 + var _4R = $k[--$j]; //#9182 + var _4S = $k[--$j]; //#9182 + $puti($k[--$j], _4S, _4R); //#9182 + var _4U = $s(6); //#9183 + $puti(_4U, 0, $geti($get($_.ais, 1), 3, 1)); //#9183 + $puti(_4U, 1, $geti($get($_.vals, 1), 1, 5)); //#9184 + $k[$j++] = $cvi(_4U); //#9184 + $k[$j++] = 20; //#9184 + $_.tobin(); //#9184 + $puti($_.cdf, 40, $k[--$j]); //#9185 + if ($_.ais.length == 3) { //#9192 + var _4f = $get($_.vals, 2); //#9187 + $k[$j++] = ($cvi($geti(_4f, 0, 2)) * 384) + ((($cvi($geti(_4f, 2, 2)) - 1) * 32) + $cvi($geti(_4f, 4, 2))); //#9190 + } else { //#9192 + $k[$j++] = 38400; //#9192 } //#9192 - for (;;) { //#9279 - if ($eq($_.mode, "numeric")) { //#9228 - if ($_.i <= ($_.gpf.length - 2)) { //#9225 - var _90 = $s(2); //#9197 - var _93 = $get($_.gpf, $_.i); //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = _90; //#9198 - $k[$j++] = 0; //#9198 - $k[$j++] = _93; //#9198 - if (_93 == $_.fnc1) { //#9198 - $j--; //#9198 - $k[$j++] = 94; //#9198 - } //#9198 - var _95 = $k[--$j]; //#9198 - var _96 = $k[--$j]; //#9198 - $put($k[--$j], _96, _95); //#9198 - var _98 = $k[--$j]; //#9199 - var _9B = $get($_.gpf, $_.i + 1); //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = _98; //#9199 - $k[$j++] = 1; //#9199 - $k[$j++] = _9B; //#9199 - if (_9B == $_.fnc1) { //#9199 - $j--; //#9199 - $k[$j++] = 94; //#9199 - } //#9199 - var _9D = $k[--$j]; //#9199 - var _9E = $k[--$j]; //#9199 - $put($k[--$j], _9E, _9D); //#9199 - var _9G = $k[--$j]; //#9200 - var _9I = $get($_.numeric, _9G) !== undefined; //#9200 - $k[$j++] = _9G; //#9204 - if (_9I) { //#9204 - $k[$j++] = $_.numeric; //#9201 - $_.encode(); //#9201 - $_.i = $_.i + 2; //#9202 - break; //#9203 - } //#9203 - $j--; //#9205 - $k[$j++] = $_.lalphanumeric; //#9206 - $k[$j++] = $_.numeric; //#9206 - $_.encode(); //#9206 - $_.mode = "alphanumeric"; //#9207 - break; //#9208 - } else { //#9225 - var _9P = $get($_.gpf, $_.i); //#9210 - if ((_9P < 48) || (_9P > 57)) { //#9214 - $k[$j++] = $_.lalphanumeric; //#9211 - $k[$j++] = $_.numeric; //#9211 - $_.encode(); //#9211 - $_.mode = "alphanumeric"; //#9212 - break; //#9213 - } //#9213 - $k[$j++] = 'rem'; //#9215 - $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9215 - $_.rembits(); //#9215 - var _9W = $k[--$j]; //#9215 - $_[$k[--$j]] = _9W; //#9215 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#9225 - var _9d = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9217 - var _9i = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9218 - $puti(_9d, 4 - _9i.length, _9i); //#9219 - $k[$j++] = _9d; //#9219 - $k[$j++] = 'raw'; //#9219 - $_.encode(); //#9219 - $_.i = $_.i + 1; //#9220 - break; //#9221 - } else { //#9225 - var _9k = $s(2); //#9223 - $put(_9k, 0, $get($_.gpf, $_.i)); //#9223 - $put(_9k, 1, 94); //#9223 - $k[$j++] = _9k; //#9223 - $k[$j++] = $_.numeric; //#9223 - $_.encode(); //#9223 - $_.i = $_.i + 1; //#9224 - break; //#9225 - } //#9225 - } //#9225 - } //#9225 - if ($eq($_.mode, "alphanumeric")) { //#9255 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9236 - $k[$j++] = $_.fnc1; //#9232 - $k[$j++] = $_.alphanumeric; //#9232 - $_.encode(); //#9232 - $_.mode = "numeric"; //#9233 - $_.i = $_.i + 1; //#9234 - break; //#9235 - } //#9235 - var _A0 = $get($_.gpf, $_.i); //#9237 - var _A2 = $get($_.iso646, _A0) !== undefined; //#9237 - var _A4 = $get($_.alphanumeric, _A0) !== undefined; //#9237 - if (_A2 && (!_A4)) { //#9241 - $k[$j++] = $_.liso646; //#9238 - $k[$j++] = $_.alphanumeric; //#9238 - $_.encode(); //#9238 - $_.mode = "iso646"; //#9239 - break; //#9240 - } //#9240 - if ($get($_.numericruns, $_.i) >= 6) { //#9246 - $k[$j++] = $_.lnumeric; //#9243 - $k[$j++] = $_.alphanumeric; //#9243 - $_.encode(); //#9243 - $_.mode = "numeric"; //#9244 - break; //#9245 - } //#9245 - var _AE = $get($_.numericruns, $_.i); //#9247 - if ((_AE >= 4) && ($f(_AE + $_.i) == $_.gpf.length)) { //#9251 - $k[$j++] = $_.lnumeric; //#9248 - $k[$j++] = $_.alphanumeric; //#9248 - $_.encode(); //#9248 - $_.mode = "numeric"; //#9249 - break; //#9250 - } //#9250 - $k[$j++] = $get($_.gpf, $_.i); //#9252 - $k[$j++] = $_.alphanumeric; //#9252 - $_.encode(); //#9252 - $_.i = $_.i + 1; //#9253 - break; //#9254 - } //#9254 - if ($eq($_.mode, "iso646")) { //#9277 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#9263 - $k[$j++] = $_.fnc1; //#9259 - $k[$j++] = $_.iso646; //#9259 - $_.encode(); //#9259 - $_.mode = "numeric"; //#9260 - $_.i = $_.i + 1; //#9261 - break; //#9262 - } //#9262 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9268 - $k[$j++] = $_.lnumeric; //#9265 - $k[$j++] = $_.iso646; //#9265 - $_.encode(); //#9265 - $_.mode = "numeric"; //#9266 - break; //#9267 - } //#9267 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9273 - $k[$j++] = $_.lalphanumeric; //#9270 - $k[$j++] = $_.iso646; //#9270 - $_.encode(); //#9270 - $_.mode = "alphanumeric"; //#9271 - break; //#9272 - } //#9272 - $k[$j++] = $get($_.gpf, $_.i); //#9274 - $k[$j++] = $_.iso646; //#9274 - $_.encode(); //#9274 - $_.i = $_.i + 1; //#9275 - break; //#9276 - } //#9276 - } //#9276 - } //#9276 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9281 - var _Ay = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9285 - $k[$j++] = _Ay; //#9285 - $k[$j++] = _Ay; //#9285 - $_.rembits(); //#9285 - var _Az = $k[--$j]; //#9285 - $_.pad = $a(_Az); //#9285 - $k[$j++] = _Az; //#9292 - if ($_.vlf.length != 0) { //#9291 - var _B2 = $k[--$j]; //#9287 - var _B4 = ~~($f($k[--$j] + _B2) / 12); //#9288 - $put($_.vlf, 0, _B4 % 2); //#9288 - var _B6 = (_B4 <= 14) ? 0 : 1; //#9289 - $put($_.vlf, 1, _B6); //#9289 - } else { //#9291 - $j -= 2; //#9291 - } //#9291 - if ($_.pad.length > 0) { //#9301 - for (var _BB = 0, _BA = $_.pad.length - 1; _BB <= _BA; _BB += 5) { //#9297 - $_.i = _BB; //#9295 - var _BC = $_.pad; //#9296 - var _BD = $_.i; //#9296 - var _BE = $a([0, 0, 1, 0, 0]); //#9296 - var _BF = $_.pad; //#9296 - var _BG = $_.i; //#9296 - var _BH = 5; //#9296 - var _BI = _BF.length - _BG; //#9296 - if ((_BF.length - _BG) > 5) { //#9296 - var _ = _BH; //#9296 - _BH = _BI; //#9296 - _BI = _; //#9296 - } //#9296 - $puti(_BC, _BD, $geti(_BE, 0, _BI)); //#9296 - } //#9296 - if ($eq($_.mode, "numeric")) { //#9300 - $k[$j++] = Infinity; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $k[$j++] = 0; //#9299 - $aload($_.pad); //#9299 - $_.pad = $geti($a(), 0, $_.pad.length); //#9299 - } //#9299 - } //#9299 - $k[$j++] = Infinity; //#9310 - var _BQ = $_.linkage ? 1 : 0; //#9305 - $k[$j++] = _BQ; //#9306 - $forall($_.method, function() { //#9306 - var _BS = $k[--$j]; //#9306 - $k[$j++] = $f(_BS - 48); //#9306 - }); //#9306 - $aload($_.vlf); //#9307 - $aload($_.cdf); //#9308 - $aload($_.gpf); //#9309 - $aload($_.pad); //#9310 - $_.binval = $a(); //#9310 - $_.datalen = ~~($_.binval.length / 12); //#9312 + $k[$j++] = 16; //#9194 + $_.tobin(); //#9194 + $puti($_.cdf, 60, $k[--$j]); //#9194 + $k[$j++] = Infinity; //#9195 + var _4l = $_.cdf; //#9195 + for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#9195 + $k[$j++] = $get(_4l, _4m) - 48; //#9195 + } //#9195 + $_.cdf = $a(); //#9195 + $_.gpf = $a([]); //#9196 + $_.ais = $a([]); //#9197 + $_.vals = $a([]); //#9198 + $_.fncs = $a([]); //#9199 + } //#9199 + if ($eq($_.method, "01100")) { //#9211 + $_.cdf = $s(42); //#9203 + $k[$j++] = $_.cdf; //#9204 + $k[$j++] = 0; //#9204 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9204 + $_.conv12to40(); //#9204 + var _50 = $k[--$j]; //#9204 + var _51 = $k[--$j]; //#9204 + $puti($k[--$j], _51, _50); //#9204 + $k[$j++] = $_.cdf; //#9205 + $k[$j++] = 40; //#9205 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9205 + $k[$j++] = 2; //#9205 + $_.tobin(); //#9205 + var _57 = $k[--$j]; //#9205 + var _58 = $k[--$j]; //#9205 + $puti($k[--$j], _58, _57); //#9205 + $k[$j++] = Infinity; //#9206 + var _5A = $_.cdf; //#9206 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#9206 + $k[$j++] = $get(_5A, _5B) - 48; //#9206 + } //#9206 + $_.cdf = $a(); //#9206 + $k[$j++] = Infinity; //#9207 + $forall($get($_.vals, 1)); //#9207 + if ($_.ais.length > 2) { //#9207 + $k[$j++] = $_.fnc1; //#9207 + } //#9207 + $_.gpf = $a(); //#9207 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9208 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9209 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9210 + } //#9210 + if ($eq($_.method, "01101")) { //#9223 + $_.cdf = $s(52); //#9214 + $k[$j++] = $_.cdf; //#9215 + $k[$j++] = 0; //#9215 + $k[$j++] = $geti($get($_.vals, 0), 1, 12); //#9215 + $_.conv12to40(); //#9215 + var _5Z = $k[--$j]; //#9215 + var _5a = $k[--$j]; //#9215 + $puti($k[--$j], _5a, _5Z); //#9215 + $k[$j++] = $_.cdf; //#9216 + $k[$j++] = 40; //#9216 + $k[$j++] = $cvi($geti($get($_.ais, 1), 3, 1)); //#9216 + $k[$j++] = 2; //#9216 + $_.tobin(); //#9216 + var _5g = $k[--$j]; //#9216 + var _5h = $k[--$j]; //#9216 + $puti($k[--$j], _5h, _5g); //#9216 + $k[$j++] = $_.cdf; //#9217 + $k[$j++] = 42; //#9217 + $k[$j++] = $cvi($geti($get($_.vals, 1), 0, 3)); //#9217 + $k[$j++] = 10; //#9217 + $_.tobin(); //#9217 + var _5n = $k[--$j]; //#9217 + var _5o = $k[--$j]; //#9217 + $puti($k[--$j], _5o, _5n); //#9217 + $k[$j++] = Infinity; //#9218 + var _5q = $_.cdf; //#9218 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#9218 + $k[$j++] = $get(_5q, _5r) - 48; //#9218 + } //#9218 + $_.cdf = $a(); //#9218 + $k[$j++] = Infinity; //#9219 + var _5w = $get($_.vals, 1); //#9219 + var _5x = $geti(_5w, 3, _5w.length - 3); //#9219 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#9219 + $k[$j++] = $get(_5x, _5y); //#9219 + } //#9219 + if ($_.ais.length > 2) { //#9219 + $k[$j++] = $_.fnc1; //#9219 + } //#9219 + $_.gpf = $a(); //#9219 + $_.ais = $geti($_.ais, 2, $_.ais.length - 2); //#9220 + $_.vals = $geti($_.vals, 2, $_.vals.length - 2); //#9221 + $_.fncs = $geti($_.fncs, 2, $_.fncs.length - 2); //#9222 + } //#9222 + if ($_.gpfallow) { //#9229 + $_.vlf = $a(2); //#9227 + } else { //#9229 + $_.vlf = $a([]); //#9229 + } //#9229 + if (!bwipp_databarexpanded.__9270__) { //#9270 + $_ = Object.create($_); //#9270 + $k[$j++] = Infinity; //#9233 + for (var _6G = 0; _6G <= 119; _6G += 1) { //#9242 + var _6I = $strcpy($s(2), "00"); //#9235 + var _6K = $cvrs($s(2), _6G, 11); //#9235 + $puti(_6I, 2 - _6K.length, _6K); //#9236 + $k[$j++] = _6G; //#9237 + $k[$j++] = _6I; //#9237 + if ($get(_6I, 0) == 65) { //#9237 + var _6M = $k[--$j]; //#9237 + $put(_6M, 0, 94); //#9237 + $k[$j++] = _6M; //#9237 + } //#9237 + var _6N = $k[--$j]; //#9238 + $k[$j++] = _6N; //#9238 + if ($get(_6N, 1) == 65) { //#9238 + var _6P = $k[--$j]; //#9238 + $put(_6P, 1, 94); //#9238 + $k[$j++] = _6P; //#9238 + } //#9238 + var _6Q = $k[--$j]; //#9239 + var _6T = $strcpy($s(7), "0000000"); //#9240 + var _6V = $cvrs($s(7), $f($k[--$j] + 8), 2); //#9240 + $puti(_6T, 7 - _6V.length, _6V); //#9241 + $k[$j++] = _6Q; //#9241 + $k[$j++] = _6T; //#9241 + } //#9241 + $k[$j++] = $_.lalphanumeric; //#9243 + $k[$j++] = "0000"; //#9243 + $_.numeric = $d(); //#9244 + $k[$j++] = Infinity; //#9246 + for (var _6Y = 48; _6Y <= 57; _6Y += 1) { //#9247 + $k[$j++] = _6Y; //#9247 + $k[$j++] = _6Y - 43; //#9247 + $k[$j++] = 5; //#9247 + $_.tobin(); //#9247 + } //#9247 + $k[$j++] = $_.fnc1; //#9249 + $k[$j++] = "01111"; //#9249 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#9249 + $k[$j++] = _6a; //#9249 + $k[$j++] = _6a - 33; //#9249 + $k[$j++] = 6; //#9249 + $_.tobin(); //#9249 + } //#9249 + $k[$j++] = 42; //#9251 + $k[$j++] = "111010"; //#9251 + for (var _6b = 44; _6b <= 47; _6b += 1) { //#9251 + $k[$j++] = _6b; //#9251 + $k[$j++] = _6b + 15; //#9251 + $k[$j++] = 6; //#9251 + $_.tobin(); //#9251 + } //#9251 + $k[$j++] = $_.lnumeric; //#9253 + $k[$j++] = "000"; //#9253 + $k[$j++] = $_.liso646; //#9253 + $k[$j++] = "00100"; //#9253 + $_.alphanumeric = $d(); //#9254 + $k[$j++] = Infinity; //#9256 + for (var _6f = 48; _6f <= 57; _6f += 1) { //#9257 + $k[$j++] = _6f; //#9257 + $k[$j++] = _6f - 43; //#9257 + $k[$j++] = 5; //#9257 + $_.tobin(); //#9257 + } //#9257 + $k[$j++] = $_.fnc1; //#9259 + $k[$j++] = "01111"; //#9259 + for (var _6h = 65; _6h <= 90; _6h += 1) { //#9259 + $k[$j++] = _6h; //#9259 + $k[$j++] = _6h - 1; //#9259 + $k[$j++] = 7; //#9259 + $_.tobin(); //#9259 + } //#9259 + for (var _6i = 97; _6i <= 122; _6i += 1) { //#9260 + $k[$j++] = _6i; //#9260 + $k[$j++] = _6i - 7; //#9260 + $k[$j++] = 7; //#9260 + $_.tobin(); //#9260 + } //#9260 + $k[$j++] = 33; //#9263 + $k[$j++] = "11101000"; //#9263 + $k[$j++] = 34; //#9263 + $k[$j++] = "11101001"; //#9263 + for (var _6j = 37; _6j <= 47; _6j += 1) { //#9263 + $k[$j++] = _6j; //#9263 + $k[$j++] = _6j + 197; //#9263 + $k[$j++] = 8; //#9263 + $_.tobin(); //#9263 + } //#9263 + for (var _6k = 58; _6k <= 63; _6k += 1) { //#9264 + $k[$j++] = _6k; //#9264 + $k[$j++] = _6k + 187; //#9264 + $k[$j++] = 8; //#9264 + $_.tobin(); //#9264 + } //#9264 + $k[$j++] = 95; //#9268 + $k[$j++] = "11111011"; //#9268 + $k[$j++] = 32; //#9268 + $k[$j++] = "11111100"; //#9268 + $k[$j++] = $_.lnumeric; //#9268 + $k[$j++] = "000"; //#9268 + $k[$j++] = $_.lalphanumeric; //#9268 + $k[$j++] = "00100"; //#9268 + $_.iso646 = $d(); //#9269 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9269 + bwipp_databarexpanded.__9270__ = 1; //#9269 + $_ = Object.getPrototypeOf($_); //#9269 + } //#9269 + for (var _6r = 0, _6q = $_.ais.length - 1; _6r <= _6q; _6r += 1) { //#9288 + $_.i = _6r; //#9274 + $_.ai = $get($_.ais, $_.i); //#9275 + $_.val = $get($_.vals, $_.i); //#9276 + var _71 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#9277 + $puti(_71, 0, $_.gpf); //#9278 + $k[$j++] = _71; //#9279 + $k[$j++] = _71; //#9279 + $k[$j++] = $_.gpf.length; //#9279 + $k[$j++] = $_.ai; //#9279 + $k[$j++] = Infinity; //#9279 + var _75 = $k[--$j]; //#9279 + var _76 = $k[--$j]; //#9279 + $k[$j++] = _75; //#9279 + $forall(_76); //#9279 + var _77 = $a(); //#9279 + var _78 = $k[--$j]; //#9279 + $puti($k[--$j], _78, _77); //#9279 + var _7A = $k[--$j]; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = _7A; //#9280 + $k[$j++] = $_.gpf.length + $_.ai.length; //#9280 + $k[$j++] = $_.val; //#9280 + $k[$j++] = Infinity; //#9280 + var _7E = $k[--$j]; //#9280 + var _7F = $k[--$j]; //#9280 + $k[$j++] = _7E; //#9280 + $forall(_7F); //#9280 + var _7G = $a(); //#9280 + var _7H = $k[--$j]; //#9280 + $puti($k[--$j], _7H, _7G); //#9280 + $_.gpf = $k[--$j]; //#9281 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#9287 + var _7Q = $a($_.gpf.length + 1); //#9283 + $puti(_7Q, 0, $_.gpf); //#9284 + $put(_7Q, $_.gpf.length, $_.fnc1); //#9285 + $_.gpf = _7Q; //#9286 + } //#9286 + } //#9286 + $_.rembits = function() { + var _7U = $k[--$j]; //#9292 + var _7V = 48; //#9294 + var _7W = (~~Math.ceil(_7U / 12)) * 12; //#9294 + if (((~~Math.ceil(_7U / 12)) * 12) < 48) { //#9294 + var _ = _7V; //#9294 + _7V = _7W; //#9294 + _7W = _; //#9294 + } //#9294 + var _7X = ~~(_7W / 12); //#9295 + $k[$j++] = _7U; //#9299 + $k[$j++] = _7W; //#9299 + $k[$j++] = _7X; //#9299 + if ((_7X % $_.segments) == 1) { //#9298 + var _7Z = $k[--$j]; //#9296 + var _7a = $k[--$j]; //#9296 + $k[$j++] = $f(_7Z + 1) * 12; //#9296 + $k[$j++] = _7a; //#9296 + $j--; //#9296 + } else { //#9298 + $j--; //#9298 + } //#9298 + var _7b = $k[--$j]; //#9300 + var _7c = $k[--$j]; //#9300 + $k[$j++] = $f(_7b - _7c); //#9300 + }; //#9300 + $_.encode = function() { + var _7d = $k[--$j]; //#9304 + $k[$j++] = _7d; //#9304 + if ($ne(_7d, 'raw')) { //#9304 + var _7e = $k[--$j]; //#9304 + var _7g = $get(_7e, $k[--$j]); //#9304 + $k[$j++] = _7g; //#9304 + } else { //#9304 + $j--; //#9304 + } //#9304 + var _7h = $k[--$j]; //#9305 + $k[$j++] = _7h; //#9307 + if ((_7h.length + $_.j) >= 252) { //#9307 + $j--; //#9306 + $k[$j++] = 'bwipp.gs1databarexpandedTooLong#9306'; //#9306 + $k[$j++] = "Maximum length exceeded"; //#9306 + bwipp_raiseerror(); //#9306 + } //#9306 + $k[$j++] = Infinity; //#9308 + var _7j = $k[--$j]; //#9308 + var _7k = $k[--$j]; //#9308 + $k[$j++] = _7j; //#9308 + $forall(_7k, function() { //#9308 + var _7l = $k[--$j]; //#9308 + $k[$j++] = $f(_7l - 48); //#9308 + }); //#9308 + var _7m = $a(); //#9308 + $puti($_.gpfenc, $_.j, _7m); //#9310 + $_.j = _7m.length + $_.j; //#9311 + }; //#9311 + $k[$j++] = Infinity; //#9315 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#9315 + $k[$j++] = 0; //#9315 + } //#9315 + $k[$j++] = 0; //#9315 + $k[$j++] = -1; //#9315 + $_.numericruns = $a(); //#9315 + $k[$j++] = Infinity; //#9316 + for (var _7v = 0, _7w = $_.gpf.length; _7v < _7w; _7v++) { //#9316 + $k[$j++] = 0; //#9316 + } //#9316 + $k[$j++] = 0; //#9316 + $_.alphanumericruns = $a(); //#9316 + $k[$j++] = Infinity; //#9317 + for (var _7z = 0, _80 = $_.gpf.length; _7z < _80; _7z++) { //#9317 + $k[$j++] = 0; //#9317 + } //#9317 + $k[$j++] = 9999; //#9317 + $_.nextiso646only = $a(); //#9317 + for (var _83 = $_.gpf.length - 1; _83 >= 0; _83 -= 1) { //#9339 + $_.i = _83; //#9319 + var _88 = $strcpy($s(2), "00"); //#9321 + var _8B = $get($_.gpf, $_.i); //#9322 + $k[$j++] = $get($_.gpf, $_.i); //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = _88; //#9322 + $k[$j++] = 0; //#9322 + $k[$j++] = _8B; //#9322 + if (_8B == $_.fnc1) { //#9322 + $j--; //#9322 + $k[$j++] = 94; //#9322 + } //#9322 + var _8D = $k[--$j]; //#9322 + var _8E = $k[--$j]; //#9322 + $put($k[--$j], _8E, _8D); //#9322 + if ($_.i < ($_.gpf.length - 1)) { //#9323 + var _8I = $k[--$j]; //#9323 + var _8L = $get($_.gpf, $_.i + 1); //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = _8I; //#9323 + $k[$j++] = 1; //#9323 + $k[$j++] = _8L; //#9323 + if (_8L == $_.fnc1) { //#9323 + $j--; //#9323 + $k[$j++] = 94; //#9323 + } //#9323 + var _8N = $k[--$j]; //#9323 + var _8O = $k[--$j]; //#9323 + $put($k[--$j], _8O, _8N); //#9323 + } //#9323 + var _8S = $get($_.numeric, $k[--$j]) !== undefined; //#9324 + if (_8S) { //#9327 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#9325 + } else { //#9327 + $put($_.numericruns, $_.i, 0); //#9327 + } //#9327 + var _8a = $k[--$j]; //#9329 + var _8c = $get($_.alphanumeric, _8a) !== undefined; //#9329 + $k[$j++] = _8a; //#9333 + if (_8c) { //#9332 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#9330 + } else { //#9332 + $put($_.alphanumericruns, $_.i, 0); //#9332 + } //#9332 + var _8k = $k[--$j]; //#9334 + var _8m = $get($_.iso646, _8k) !== undefined; //#9334 + var _8o = $get($_.alphanumeric, _8k) !== undefined; //#9334 + if (_8m && (!_8o)) { //#9337 + $put($_.nextiso646only, $_.i, 0); //#9335 + } else { //#9337 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#9337 + } //#9337 + } //#9337 + $_.gpfenc = $a(252); //#9342 + $_.i = 0; //#9343 + $_.j = 0; //#9343 + $_.mode = "numeric"; //#9343 + for (;;) { //#9433 + if ($_.i == $_.gpf.length) { //#9345 + break; //#9345 + } //#9345 + for (;;) { //#9432 + if ($eq($_.mode, "numeric")) { //#9381 + if ($_.i <= ($_.gpf.length - 2)) { //#9378 + var _92 = $s(2); //#9350 + var _95 = $get($_.gpf, $_.i); //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = _92; //#9351 + $k[$j++] = 0; //#9351 + $k[$j++] = _95; //#9351 + if (_95 == $_.fnc1) { //#9351 + $j--; //#9351 + $k[$j++] = 94; //#9351 + } //#9351 + var _97 = $k[--$j]; //#9351 + var _98 = $k[--$j]; //#9351 + $put($k[--$j], _98, _97); //#9351 + var _9A = $k[--$j]; //#9352 + var _9D = $get($_.gpf, $_.i + 1); //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = _9A; //#9352 + $k[$j++] = 1; //#9352 + $k[$j++] = _9D; //#9352 + if (_9D == $_.fnc1) { //#9352 + $j--; //#9352 + $k[$j++] = 94; //#9352 + } //#9352 + var _9F = $k[--$j]; //#9352 + var _9G = $k[--$j]; //#9352 + $put($k[--$j], _9G, _9F); //#9352 + var _9I = $k[--$j]; //#9353 + var _9K = $get($_.numeric, _9I) !== undefined; //#9353 + $k[$j++] = _9I; //#9357 + if (_9K) { //#9357 + $k[$j++] = $_.numeric; //#9354 + $_.encode(); //#9354 + $_.i = $_.i + 2; //#9355 + break; //#9356 + } //#9356 + $j--; //#9358 + $k[$j++] = $_.lalphanumeric; //#9359 + $k[$j++] = $_.numeric; //#9359 + $_.encode(); //#9359 + $_.mode = "alphanumeric"; //#9360 + break; //#9361 + } else { //#9378 + var _9R = $get($_.gpf, $_.i); //#9363 + if ((_9R < 48) || (_9R > 57)) { //#9367 + $k[$j++] = $_.lalphanumeric; //#9364 + $k[$j++] = $_.numeric; //#9364 + $_.encode(); //#9364 + $_.mode = "alphanumeric"; //#9365 + break; //#9366 + } //#9366 + $k[$j++] = 'rem'; //#9368 + $k[$j++] = ((((12 + 1) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.j; //#9368 + $_.rembits(); //#9368 + var _9Y = $k[--$j]; //#9368 + $_[$k[--$j]] = _9Y; //#9368 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#9378 + var _9f = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#9370 + var _9k = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#9371 + $puti(_9f, 4 - _9k.length, _9k); //#9372 + $k[$j++] = _9f; //#9372 + $k[$j++] = 'raw'; //#9372 + $_.encode(); //#9372 + $_.i = $_.i + 1; //#9373 + break; //#9374 + } else { //#9378 + var _9m = $s(2); //#9376 + $put(_9m, 0, $get($_.gpf, $_.i)); //#9376 + $put(_9m, 1, 94); //#9376 + $k[$j++] = _9m; //#9376 + $k[$j++] = $_.numeric; //#9376 + $_.encode(); //#9376 + $_.i = $_.i + 1; //#9377 + break; //#9378 + } //#9378 + } //#9378 + } //#9378 + if ($eq($_.mode, "alphanumeric")) { //#9408 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9389 + $k[$j++] = $_.fnc1; //#9385 + $k[$j++] = $_.alphanumeric; //#9385 + $_.encode(); //#9385 + $_.mode = "numeric"; //#9386 + $_.i = $_.i + 1; //#9387 + break; //#9388 + } //#9388 + var _A2 = $get($_.gpf, $_.i); //#9390 + var _A4 = $get($_.iso646, _A2) !== undefined; //#9390 + var _A6 = $get($_.alphanumeric, _A2) !== undefined; //#9390 + if (_A4 && (!_A6)) { //#9394 + $k[$j++] = $_.liso646; //#9391 + $k[$j++] = $_.alphanumeric; //#9391 + $_.encode(); //#9391 + $_.mode = "iso646"; //#9392 + break; //#9393 + } //#9393 + if ($get($_.numericruns, $_.i) >= 6) { //#9399 + $k[$j++] = $_.lnumeric; //#9396 + $k[$j++] = $_.alphanumeric; //#9396 + $_.encode(); //#9396 + $_.mode = "numeric"; //#9397 + break; //#9398 + } //#9398 + var _AG = $get($_.numericruns, $_.i); //#9400 + if ((_AG >= 4) && ($f(_AG + $_.i) == $_.gpf.length)) { //#9404 + $k[$j++] = $_.lnumeric; //#9401 + $k[$j++] = $_.alphanumeric; //#9401 + $_.encode(); //#9401 + $_.mode = "numeric"; //#9402 + break; //#9403 + } //#9403 + $k[$j++] = $get($_.gpf, $_.i); //#9405 + $k[$j++] = $_.alphanumeric; //#9405 + $_.encode(); //#9405 + $_.i = $_.i + 1; //#9406 + break; //#9407 + } //#9407 + if ($eq($_.mode, "iso646")) { //#9430 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#9416 + $k[$j++] = $_.fnc1; //#9412 + $k[$j++] = $_.iso646; //#9412 + $_.encode(); //#9412 + $_.mode = "numeric"; //#9413 + $_.i = $_.i + 1; //#9414 + break; //#9415 + } //#9415 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9421 + $k[$j++] = $_.lnumeric; //#9418 + $k[$j++] = $_.iso646; //#9418 + $_.encode(); //#9418 + $_.mode = "numeric"; //#9419 + break; //#9420 + } //#9420 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#9426 + $k[$j++] = $_.lalphanumeric; //#9423 + $k[$j++] = $_.iso646; //#9423 + $_.encode(); //#9423 + $_.mode = "alphanumeric"; //#9424 + break; //#9425 + } //#9425 + $k[$j++] = $get($_.gpf, $_.i); //#9427 + $k[$j++] = $_.iso646; //#9427 + $_.encode(); //#9427 + $_.i = $_.i + 1; //#9428 + break; //#9429 + } //#9429 + } //#9429 + } //#9429 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#9434 + var _B0 = ((((1 + 12) + $_.method.length) + $_.vlf.length) + $_.cdf.length) + $_.gpf.length; //#9438 + $k[$j++] = _B0; //#9438 + $k[$j++] = _B0; //#9438 + $_.rembits(); //#9438 + var _B1 = $k[--$j]; //#9438 + $_.pad = $a(_B1); //#9438 + $k[$j++] = _B1; //#9445 + if ($_.vlf.length != 0) { //#9444 + var _B4 = $k[--$j]; //#9440 + var _B6 = ~~($f($k[--$j] + _B4) / 12); //#9441 + $put($_.vlf, 0, _B6 % 2); //#9441 + var _B8 = (_B6 <= 14) ? 0 : 1; //#9442 + $put($_.vlf, 1, _B8); //#9442 + } else { //#9444 + $j -= 2; //#9444 + } //#9444 + if ($_.pad.length > 0) { //#9454 + for (var _BD = 0, _BC = $_.pad.length - 1; _BD <= _BC; _BD += 5) { //#9450 + $_.i = _BD; //#9448 + var _BE = $_.pad; //#9449 + var _BF = $_.i; //#9449 + var _BG = $a([0, 0, 1, 0, 0]); //#9449 + var _BH = $_.pad; //#9449 + var _BI = $_.i; //#9449 + var _BJ = 5; //#9449 + var _BK = _BH.length - _BI; //#9449 + if ((_BH.length - _BI) > 5) { //#9449 + var _ = _BJ; //#9449 + _BJ = _BK; //#9449 + _BK = _; //#9449 + } //#9449 + $puti(_BE, _BF, $geti(_BG, 0, _BK)); //#9449 + } //#9449 + if ($eq($_.mode, "numeric")) { //#9453 + $k[$j++] = Infinity; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $k[$j++] = 0; //#9452 + $aload($_.pad); //#9452 + $_.pad = $geti($a(), 0, $_.pad.length); //#9452 + } //#9452 + } //#9452 + $k[$j++] = Infinity; //#9457 + var _BS = $_.linkage ? 1 : 0; //#9458 + $k[$j++] = _BS; //#9459 + $forall($_.method, function() { //#9459 + var _BU = $k[--$j]; //#9459 + $k[$j++] = $f(_BU - 48); //#9459 + }); //#9459 + $aload($_.vlf); //#9460 + $aload($_.cdf); //#9461 + $aload($_.gpf); //#9462 + $aload($_.pad); //#9463 + $_.binval = $a(); //#9463 + $_.datalen = ~~($_.binval.length / 12); //#9465 $_.ncr = function() { - var _BZ = $k[--$j]; //#9315 - var _Ba = $k[--$j]; //#9315 - var _Bb = $f(_Ba - _BZ); //#9315 - if (_BZ < $f(_Ba - _BZ)) { //#9315 - var _ = _Bb; //#9315 - _Bb = _BZ; //#9315 - _BZ = _; //#9315 - } //#9315 - $k[$j++] = _Bb; //#9322 - $k[$j++] = 1; //#9322 - $k[$j++] = 1; //#9322 - for (var _Bd = _Ba, _Bc = $f(_BZ + 1); _Bd >= _Bc; _Bd -= 1) { //#9322 - var _Be = $k[--$j]; //#9318 - var _Bf = $k[--$j]; //#9319 - var _Bg = $k[--$j]; //#9319 - $k[$j++] = _Bg; //#9321 - $k[$j++] = _Bf; //#9321 - $k[$j++] = _Be * _Bd; //#9321 - if ($le(_Bf, _Bg)) { //#9321 - var _Bh = $k[--$j]; //#9320 - var _Bi = $k[--$j]; //#9320 - $k[$j++] = $f(_Bi + 1); //#9320 - $k[$j++] = ~~(_Bh / _Bi); //#9320 - } //#9320 - } //#9320 - for (;;) { //#9326 - var _Bj = $k[--$j]; //#9324 - var _Bk = $k[--$j]; //#9324 - var _Bl = $k[--$j]; //#9324 - $k[$j++] = _Bl; //#9324 - $k[$j++] = _Bk; //#9324 - $k[$j++] = _Bj; //#9324 - if ($gt(_Bk, _Bl)) { //#9324 - break; //#9324 - } //#9324 - var _Bm = $k[--$j]; //#9325 - var _Bn = $k[--$j]; //#9325 - $k[$j++] = $f(_Bn + 1); //#9325 - $k[$j++] = ~~(_Bm / _Bn); //#9325 - } //#9325 - var _Bo = $k[--$j]; //#9327 - var _Bp = $k[--$j]; //#9327 - $k[$j++] = _Bo; //#9327 - $k[$j++] = _Bp; //#9327 - $j--; //#9327 - var _Bq = $k[--$j]; //#9327 - var _Br = $k[--$j]; //#9327 - $k[$j++] = _Bq; //#9327 - $k[$j++] = _Br; //#9327 - $j--; //#9327 - }; //#9327 + var _Bb = $k[--$j]; //#9468 + var _Bc = $k[--$j]; //#9468 + var _Bd = $f(_Bc - _Bb); //#9468 + if (_Bb < $f(_Bc - _Bb)) { //#9468 + var _ = _Bd; //#9468 + _Bd = _Bb; //#9468 + _Bb = _; //#9468 + } //#9468 + $k[$j++] = _Bd; //#9475 + $k[$j++] = 1; //#9475 + $k[$j++] = 1; //#9475 + for (var _Bf = _Bc, _Be = $f(_Bb + 1); _Bf >= _Be; _Bf -= 1) { //#9475 + var _Bg = $k[--$j]; //#9471 + var _Bh = $k[--$j]; //#9472 + var _Bi = $k[--$j]; //#9472 + $k[$j++] = _Bi; //#9474 + $k[$j++] = _Bh; //#9474 + $k[$j++] = _Bg * _Bf; //#9474 + if ($le(_Bh, _Bi)) { //#9474 + var _Bj = $k[--$j]; //#9473 + var _Bk = $k[--$j]; //#9473 + $k[$j++] = $f(_Bk + 1); //#9473 + $k[$j++] = ~~(_Bj / _Bk); //#9473 + } //#9473 + } //#9473 + for (;;) { //#9479 + var _Bl = $k[--$j]; //#9477 + var _Bm = $k[--$j]; //#9477 + var _Bn = $k[--$j]; //#9477 + $k[$j++] = _Bn; //#9477 + $k[$j++] = _Bm; //#9477 + $k[$j++] = _Bl; //#9477 + if ($gt(_Bm, _Bn)) { //#9477 + break; //#9477 + } //#9477 + var _Bo = $k[--$j]; //#9478 + var _Bp = $k[--$j]; //#9478 + $k[$j++] = $f(_Bp + 1); //#9478 + $k[$j++] = ~~(_Bo / _Bp); //#9478 + } //#9478 + var _Bq = $k[--$j]; //#9480 + var _Br = $k[--$j]; //#9480 + $k[$j++] = _Bq; //#9480 + $k[$j++] = _Br; //#9480 + $j--; //#9480 + var _Bs = $k[--$j]; //#9480 + var _Bt = $k[--$j]; //#9480 + $k[$j++] = _Bs; //#9480 + $k[$j++] = _Bt; //#9480 + $j--; //#9480 + }; //#9480 $_.getRSSwidths = function() { - $_.oe = $k[--$j]; //#9331 - $_.el = $k[--$j]; //#9332 - $_.mw = $k[--$j]; //#9333 - $_.nm = $k[--$j]; //#9334 - $_.val = $k[--$j]; //#9335 - $_.out = $a($_.el); //#9336 - $_.mask = 0; //#9337 - for (var _C1 = 0, _C0 = $f($_.el - 2); _C1 <= _C0; _C1 += 1) { //#9364 - $_.bar = _C1; //#9339 - $_.ew = 1; //#9340 - var _C3 = $_.bar; //#9341 - $_.mask = $_.mask | ((_C3 < 0 ? 1 >>> -_C3 : 1 << _C3)); //#9341 - for (;;) { //#9360 - $k[$j++] = 'sval'; //#9342 - $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9342 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9342 - $_.ncr(); //#9342 - var _C8 = $k[--$j]; //#9342 - $_[$k[--$j]] = _C8; //#9342 - if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9345 - $k[$j++] = 'sval'; //#9344 - $k[$j++] = $_.sval; //#9344 - $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9344 - $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9344 - $_.ncr(); //#9344 - var _CN = $k[--$j]; //#9344 - var _CO = $k[--$j]; //#9344 - $_[$k[--$j]] = $f(_CO - _CN); //#9344 - } //#9344 - if ($f($_.el - $_.bar) > 2) { //#9354 - $_.lval = 0; //#9347 - for (var _CY = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CX = $f($_.mw + 1); _CY >= _CX; _CY -= 1) { //#9351 - $k[$j++] = $f(($f($f($_.nm - _CY) - $_.ew)) - 1); //#9349 - $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9349 - $_.ncr(); //#9349 - $_.lval = $f($k[--$j] + $_.lval); //#9350 - } //#9350 - $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9352 - } else { //#9354 - if ($f($_.nm - $_.ew) > $_.mw) { //#9354 - $_.sval = $f($_.sval - 1); //#9354 - } //#9354 - } //#9354 - $_.val = $f($_.val - $_.sval); //#9356 - if ($_.val < 0) { //#9357 - break; //#9357 - } //#9357 - $_.ew = $_.ew + 1; //#9358 - var _Cs = $_.bar; //#9359 - $_.mask = $_.mask & (~((_Cs < 0 ? 1 >>> -_Cs : 1 << _Cs))); //#9359 - } //#9359 - $_.val = $f($_.val + $_.sval); //#9361 - $_.nm = $f($_.nm - $_.ew); //#9362 - $put($_.out, $_.bar, $_.ew); //#9363 - } //#9363 - $put($_.out, $f($_.el - 1), $_.nm); //#9365 - $k[$j++] = $_.out; //#9366 - }; //#9366 - if (!bwipp_databarexpanded.__9377__) { //#9377 - $_ = Object.create($_); //#9377 - $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9376 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9376 - bwipp_databarexpanded.__9377__ = 1; //#9376 - $_ = Object.getPrototypeOf($_); //#9376 - } //#9376 - $_.dxw = $a($_.datalen); //#9379 - for (var _DA = 0, _D9 = $_.datalen - 1; _DA <= _D9; _DA += 1) { //#9420 - $_.x = _DA; //#9383 - $_.d = $geti($_.binval, $_.x * 12, 12); //#9385 - $k[$j++] = 'd'; //#9386 - $k[$j++] = 0; //#9386 - for (var _DE = 0; _DE <= 11; _DE += 1) { //#9386 - $_.j = _DE; //#9386 - var _DJ = $k[--$j]; //#9386 - $k[$j++] = $f(_DJ + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9386 - } //#9386 - var _DK = $k[--$j]; //#9386 - $_[$k[--$j]] = _DK; //#9386 - $_.j = 0; //#9388 - for (;;) { //#9398 - if ($le($_.d, $get($_.tab174, $_.j))) { //#9396 - var _DS = $geti($_.tab174, $_.j + 1, 7); //#9390 - for (var _DT = 0, _DU = _DS.length; _DT < _DU; _DT++) { //#9390 - $k[$j++] = $get(_DS, _DT); //#9390 - } //#9390 - $_.dte = $k[--$j]; //#9391 - $_.dto = $k[--$j]; //#9391 - $_.dmwe = $k[--$j]; //#9392 - $_.dmwo = $k[--$j]; //#9392 - $_.dele = $k[--$j]; //#9393 - $_.delo = $k[--$j]; //#9393 - $_.dgs = $k[--$j]; //#9394 - break; //#9395 - } //#9395 - $_.j = $_.j + 8; //#9397 - } //#9397 - $k[$j++] = 'dwo'; //#9400 - $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9400 - $k[$j++] = $_.delo; //#9400 - $k[$j++] = $_.dmwo; //#9400 - $k[$j++] = 4; //#9400 - $k[$j++] = true; //#9400 - $_.getRSSwidths(); //#9400 - var _Dj = $k[--$j]; //#9400 - $_[$k[--$j]] = _Dj; //#9400 - $k[$j++] = 'dwe'; //#9401 - $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9401 - $k[$j++] = $_.dele; //#9401 - $k[$j++] = $_.dmwe; //#9401 - $k[$j++] = 4; //#9401 - $k[$j++] = false; //#9401 - $_.getRSSwidths(); //#9401 - var _Dq = $k[--$j]; //#9401 - $_[$k[--$j]] = _Dq; //#9401 - $_.dw = $a(8); //#9403 - if (($_.x % 2) == 0) { //#9414 - for (var _Du = 0; _Du <= 3; _Du += 1) { //#9409 - $_.j = _Du; //#9406 - $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9407 - $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9408 - } //#9408 - } else { //#9414 - for (var _E5 = 0; _E5 <= 3; _E5 += 1) { //#9415 - $_.j = _E5; //#9412 - $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9413 - $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9414 - } //#9414 - } //#9414 - $put($_.dxw, $_.x, $_.dw); //#9418 - } //#9418 - if (!bwipp_databarexpanded.__9444__) { //#9444 - $_ = Object.create($_); //#9444 - $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9430 - $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9443 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9443 - bwipp_databarexpanded.__9444__ = 1; //#9443 - $_ = Object.getPrototypeOf($_); //#9443 - } //#9443 - $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9446 - $_.fxw = $a($_.seq.length); //#9447 - for (var _Ed = 0, _Ec = $_.seq.length - 1; _Ed <= _Ec; _Ed += 1) { //#9451 - $_.x = _Ed; //#9449 - $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9450 - } //#9450 - if (!bwipp_databarexpanded.__9480__) { //#9480 - $_ = Object.create($_); //#9480 - $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9479 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9479 - bwipp_databarexpanded.__9480__ = 1; //#9479 - $_ = Object.getPrototypeOf($_); //#9479 - } //#9479 - $k[$j++] = Infinity; //#9483 - $forall($_.seq, function() { //#9483 - $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9483 - }); //#9483 - var _Er = $a(); //#9483 - $_.checkweightseq = $geti(_Er, 8, _Er.length - 8); //#9484 - $k[$j++] = Infinity; //#9487 - var _Et = $_.dxw; //#9487 - for (var _Eu = 0, _Ev = _Et.length; _Eu < _Ev; _Eu++) { //#9487 - $forall($get(_Et, _Eu)); //#9487 - } //#9487 - $_.widths = $a(); //#9487 - $_.checksum = 0; //#9490 - for (var _F0 = 0, _Ez = $_.widths.length - 1; _F0 <= _Ez; _F0 += 1) { //#9494 - $_.i = _F0; //#9492 - $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9493 - } //#9493 - $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9495 - $_.i = 0; //#9497 - for (;;) { //#9507 - if ($_.checksum <= $get($_.tab174, $_.i)) { //#9505 - var _FG = $geti($_.tab174, $_.i + 1, 7); //#9499 - for (var _FH = 0, _FI = _FG.length; _FH < _FI; _FH++) { //#9499 - $k[$j++] = $get(_FG, _FH); //#9499 - } //#9499 - $_.cte = $k[--$j]; //#9500 - $_.cto = $k[--$j]; //#9500 - $_.cmwe = $k[--$j]; //#9501 - $_.cmwo = $k[--$j]; //#9501 - $_.cele = $k[--$j]; //#9502 - $_.celo = $k[--$j]; //#9502 - $_.cgs = $k[--$j]; //#9503 - break; //#9504 - } //#9504 - $_.i = $_.i + 8; //#9506 - } //#9506 - $k[$j++] = 'cwo'; //#9509 - $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9509 - $k[$j++] = $_.celo; //#9509 - $k[$j++] = $_.cmwo; //#9509 - $k[$j++] = 4; //#9509 - $k[$j++] = true; //#9509 - $_.getRSSwidths(); //#9509 - var _FX = $k[--$j]; //#9509 - $_[$k[--$j]] = _FX; //#9509 - $k[$j++] = 'cwe'; //#9510 - $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9510 - $k[$j++] = $_.cele; //#9510 - $k[$j++] = $_.cmwe; //#9510 - $k[$j++] = 4; //#9510 - $k[$j++] = false; //#9510 - $_.getRSSwidths(); //#9510 - var _Fe = $k[--$j]; //#9510 - $_[$k[--$j]] = _Fe; //#9510 - $_.cw = $a(8); //#9512 - for (var _Fh = 0; _Fh <= 3; _Fh += 1) { //#9517 - $_.i = _Fh; //#9514 - $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9515 - $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9516 - } //#9516 - var _Fs = $a(22); //#9519 - $put(_Fs, 0, $_.cw); //#9520 - $puti(_Fs, 1, $_.dxw); //#9520 - $_.dxw = $geti(_Fs, 0, $_.datalen + 1); //#9521 - $_.datalen = $_.dxw.length; //#9522 - $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9525 - $_.numrows = $_.rows.length; //#9526 - for (var _G4 = 0, _G3 = $_.numrows - 1; _G4 <= _G3; _G4 += 1) { //#9541 - $_.r = _G4; //#9528 - $k[$j++] = Infinity; //#9529 - if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9530 - $k[$j++] = 0; //#9530 - } //#9530 - $k[$j++] = 1; //#9538 - $k[$j++] = 1; //#9538 - for (var _G9 = 0, _G8 = $_.segments - 1; _G9 <= _G8; _G9 += 1) { //#9538 - $_.pos = _G9 + ($_.r * $_.segments); //#9533 - if ($_.pos < $_.datalen) { //#9537 - $forall($get($_.dxw, $_.pos)); //#9535 - if (($_.pos % 2) == 0) { //#9536 - $forall($get($_.fxw, ~~($_.pos / 2))); //#9536 - } //#9536 - } //#9536 - } //#9536 - var _GL = $counttomark() + 2; //#9540 - $k[$j++] = 1; //#9540 - $k[$j++] = 1; //#9540 - $astore($a(_GL)); //#9540 - $put($_.rows, $_.r, $k[--$j]); //#9540 - $j--; //#9540 - } //#9540 - if ($ne($_.format, "expandedstacked")) { //#9669 - var _GS = $get($_.rows, 0); //#9546 - $_.sbs = $geti(_GS, 1, _GS.length - 1); //#9546 - $k[$j++] = Infinity; //#9555 - $k[$j++] = 1; //#9554 - for (var _GW = 0, _GV = $_.datalen - 1; _GW <= _GV; _GW += 1) { //#9554 - $_.i = _GW; //#9551 - $forall($get($_.dxw, $_.i)); //#9552 - if (($_.i % 2) == 0) { //#9553 - $forall($get($_.fxw, ~~($_.i / 2))); //#9553 - } //#9553 - } //#9553 - $k[$j++] = 1; //#9555 - $k[$j++] = 1; //#9555 - $_.sbs = $a(); //#9555 - delete $_.options["parse"]; //#9558 - $k[$j++] = Infinity; //#9565 - var _Gg = $_.sbs; //#9562 - $k[$j++] = Infinity; //#9563 - for (var _Gi = 0, _Gj = ~~(($_.sbs.length + 1) / 2); _Gi < _Gj; _Gi++) { //#9563 - $k[$j++] = $_.height; //#9563 - } //#9563 - var _Gl = $a(); //#9563 - $k[$j++] = Infinity; //#9564 - for (var _Gn = 0, _Go = ~~(($_.sbs.length + 1) / 2); _Gn < _Go; _Gn++) { //#9564 - $k[$j++] = 0; //#9564 - } //#9564 - var _Gp = $a(); //#9564 - $k[$j++] = 'ren'; //#9565 - $k[$j++] = bwipp_renlinear; //#9565 - $k[$j++] = 'sbs'; //#9565 - $k[$j++] = _Gg; //#9565 - $k[$j++] = 'bhs'; //#9565 - $k[$j++] = _Gl; //#9565 - $k[$j++] = 'bbs'; //#9565 - $k[$j++] = _Gp; //#9565 - $k[$j++] = 'opt'; //#9565 - $k[$j++] = $_.options; //#9565 - var _Gr = $d(); //#9565 - $k[$j++] = _Gr; //#9568 - if (!$_.dontdraw) { //#9568 - bwipp_renlinear(); //#9568 - } //#9568 - } else { //#9669 - $_.seps = $a($_.numrows); //#9572 - for (var _Gx = 0, _Gw = $_.numrows - 1; _Gx <= _Gw; _Gx += 1) { //#9628 - $_.r = _Gx; //#9575 - $_.row = $get($_.rows, $_.r); //#9576 - $k[$j++] = Infinity; //#9579 - for (var _H3 = 0, _H2 = $_.row.length - 1; _H3 <= _H2; _H3 += 2) { //#9584 - $_.i = _H3; //#9581 - for (var _H7 = 0, _H8 = $get($_.row, $_.i); _H7 < _H8; _H7++) { //#9582 - $k[$j++] = 0; //#9582 - } //#9582 - if ($_.i < ($_.row.length - 1)) { //#9583 - for (var _HE = 0, _HF = $get($_.row, $_.i + 1); _HE < _HF; _HE++) { //#9583 - $k[$j++] = 1; //#9583 - } //#9583 - } //#9583 - } //#9583 - $astore($a($counttomark())); //#9585 - $_.row = $k[--$j]; //#9585 - $j--; //#9585 - $k[$j++] = Infinity; //#9588 - $forall($_.row, function() { //#9588 - var _HK = $k[--$j]; //#9588 - $k[$j++] = $f(1 - _HK); //#9588 - }); //#9588 - $_.sep = $a(); //#9588 - $k[$j++] = Infinity; //#9591 - for (var _HO = 19, _HN = $_.row.length - 13; _HO <= _HN; _HO += 98) { //#9590 - $k[$j++] = _HO; //#9590 - } //#9590 - for (var _HR = 68, _HQ = $_.row.length - 13; _HR <= _HQ; _HR += 98) { //#9591 - $k[$j++] = _HR; //#9591 - } //#9591 - $_.finderpos = $a(); //#9591 - var _HT = $_.finderpos; //#9593 - for (var _HU = 0, _HV = _HT.length; _HU < _HV; _HU++) { //#9607 - var _HW = $get(_HT, _HU); //#9607 - for (var _HY = _HW, _HX = $f(_HW + 14); _HY <= _HX; _HY += 1) { //#9606 - $_.i = _HY; //#9595 - if ($get($_.row, $_.i) == 0) { //#9603 - if ($get($_.row, $_.i - 1) == 1) { //#9600 - $k[$j++] = 1; //#9598 - } else { //#9600 - var _Hi = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9600 - $k[$j++] = _Hi; //#9600 - } //#9600 - } else { //#9603 - $k[$j++] = 0; //#9603 - } //#9603 - $put($_.sep, $_.i, $k[--$j]); //#9605 - } //#9605 - } //#9605 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9608 - $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9609 - if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9623 - if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9621 - $k[$j++] = Infinity; //#9615 - $k[$j++] = 0; //#9615 - $aload($_.row); //#9615 - $_.row = $a(); //#9615 - $k[$j++] = Infinity; //#9616 - $k[$j++] = 0; //#9616 - $aload($_.sep); //#9616 - $_.sep = $a(); //#9616 - } else { //#9621 - for (var _I4 = $_.row.length - 1; _I4 >= 0; _I4 -= 1) { //#9618 - $k[$j++] = $get($_.row, _I4); //#9618 - } //#9618 - $astore($_.row); //#9619 - $j--; //#9619 - for (var _I9 = $_.sep.length - 1; _I9 >= 0; _I9 -= 1) { //#9620 - $k[$j++] = $get($_.sep, _I9); //#9620 - } //#9620 - $astore($_.sep); //#9621 - $j--; //#9621 - } //#9621 - } //#9621 - $put($_.rows, $_.r, $_.row); //#9625 - $put($_.seps, $_.r, $_.sep); //#9626 - } //#9626 - $_.pixx = $get($_.rows, 0).length; //#9631 - $k[$j++] = Infinity; //#9632 - for (var _IM = 0, _IN = $_.pixx; _IM < _IN; _IM++) { //#9632 - $k[$j++] = 0; //#9632 - } //#9632 - var _IO = $a(); //#9632 - $puti(_IO, 0, $get($_.rows, $_.numrows - 1)); //#9632 - $put($_.rows, $_.numrows - 1, _IO); //#9633 - $k[$j++] = Infinity; //#9634 - for (var _IV = 0, _IW = $_.pixx; _IV < _IW; _IV++) { //#9634 - $k[$j++] = 0; //#9634 - } //#9634 - var _IX = $a(); //#9634 - $puti(_IX, 0, $get($_.seps, $_.numrows - 1)); //#9634 - $put($_.seps, $_.numrows - 1, _IX); //#9635 - $k[$j++] = Infinity; //#9638 - for (var _Ie = 0, _If = (~~($_.pixx / 2)) + 1; _Ie < _If; _Ie++) { //#9638 - $k[$j++] = 0; //#9638 - $k[$j++] = 1; //#9638 - } //#9638 - $_.sep = $geti($a(), 0, $_.pixx); //#9638 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9639 - $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9640 - $k[$j++] = Infinity; //#9652 - for (var _Iq = 0, _Ip = $_.numrows - 1; _Iq <= _Ip; _Iq += 1) { //#9654 - $_.r = _Iq; //#9645 - if ($_.r != 0) { //#9648 - $aload($get($_.seps, $_.r)); //#9647 - } //#9647 - for (var _Iw = 0, _Ix = $_.barxmult; _Iw < _Ix; _Iw++) { //#9649 - $aload($get($_.rows, $_.r)); //#9649 - } //#9649 - if ($_.r != ($_.numrows - 1)) { //#9653 - $aload($get($_.seps, $_.r)); //#9651 - $aload($_.sep); //#9652 + $_.oe = $k[--$j]; //#9484 + $_.el = $k[--$j]; //#9485 + $_.mw = $k[--$j]; //#9486 + $_.nm = $k[--$j]; //#9487 + $_.val = $k[--$j]; //#9488 + $_.out = $a($_.el); //#9489 + $_.mask = 0; //#9490 + for (var _C3 = 0, _C2 = $f($_.el - 2); _C3 <= _C2; _C3 += 1) { //#9517 + $_.bar = _C3; //#9492 + $_.ew = 1; //#9493 + var _C5 = $_.bar; //#9494 + $_.mask = $_.mask | ((_C5 < 0 ? 1 >>> -_C5 : 1 << _C5)); //#9494 + for (;;) { //#9513 + $k[$j++] = 'sval'; //#9495 + $k[$j++] = $f($f($_.nm - $_.ew) - 1); //#9495 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9495 + $_.ncr(); //#9495 + var _CA = $k[--$j]; //#9495 + $_[$k[--$j]] = _CA; //#9495 + if (($_.oe && ($_.mask == 0)) && (($f(($f($f($_.nm - $_.ew) - ($_.el * 2))) + ($_.bar * 2))) >= -2)) { //#9498 + $k[$j++] = 'sval'; //#9497 + $k[$j++] = $_.sval; //#9497 + $k[$j++] = $f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar); //#9497 + $k[$j++] = $f($f($_.el - $_.bar) - 2); //#9497 + $_.ncr(); //#9497 + var _CP = $k[--$j]; //#9497 + var _CQ = $k[--$j]; //#9497 + $_[$k[--$j]] = $f(_CQ - _CP); //#9497 + } //#9497 + if ($f($_.el - $_.bar) > 2) { //#9507 + $_.lval = 0; //#9500 + for (var _Ca = $f(($f(($f($f($_.nm - $_.ew) - $_.el)) + $_.bar)) + 2), _CZ = $f($_.mw + 1); _Ca >= _CZ; _Ca -= 1) { //#9504 + $k[$j++] = $f(($f($f($_.nm - _Ca) - $_.ew)) - 1); //#9502 + $k[$j++] = $f($f($_.el - $_.bar) - 3); //#9502 + $_.ncr(); //#9502 + $_.lval = $f($k[--$j] + $_.lval); //#9503 + } //#9503 + $_.sval = $f($_.sval - ($_.lval * ($f($f($_.el - $_.bar) - 1)))); //#9505 + } else { //#9507 + if ($f($_.nm - $_.ew) > $_.mw) { //#9507 + $_.sval = $f($_.sval - 1); //#9507 + } //#9507 + } //#9507 + $_.val = $f($_.val - $_.sval); //#9509 + if ($_.val < 0) { //#9510 + break; //#9510 + } //#9510 + $_.ew = $_.ew + 1; //#9511 + var _Cu = $_.bar; //#9512 + $_.mask = $_.mask & (~((_Cu < 0 ? 1 >>> -_Cu : 1 << _Cu))); //#9512 + } //#9512 + $_.val = $f($_.val + $_.sval); //#9514 + $_.nm = $f($_.nm - $_.ew); //#9515 + $put($_.out, $_.bar, $_.ew); //#9516 + } //#9516 + $put($_.out, $f($_.el - 1), $_.nm); //#9518 + $k[$j++] = $_.out; //#9519 + }; //#9519 + if (!bwipp_databarexpanded.__9530__) { //#9530 + $_ = Object.create($_); //#9530 + $_.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#9529 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9529 + bwipp_databarexpanded.__9530__ = 1; //#9529 + $_ = Object.getPrototypeOf($_); //#9529 + } //#9529 + $_.dxw = $a($_.datalen); //#9532 + for (var _DC = 0, _DB = $_.datalen - 1; _DC <= _DB; _DC += 1) { //#9573 + $_.x = _DC; //#9536 + $_.d = $geti($_.binval, $_.x * 12, 12); //#9538 + $k[$j++] = 'd'; //#9539 + $k[$j++] = 0; //#9539 + for (var _DG = 0; _DG <= 11; _DG += 1) { //#9539 + $_.j = _DG; //#9539 + var _DL = $k[--$j]; //#9539 + $k[$j++] = $f(_DL + ((~~Math.pow(2, 11 - $_.j)) * $get($_.d, $_.j))); //#9539 + } //#9539 + var _DM = $k[--$j]; //#9539 + $_[$k[--$j]] = _DM; //#9539 + $_.j = 0; //#9541 + for (;;) { //#9551 + if ($le($_.d, $get($_.tab174, $_.j))) { //#9549 + var _DU = $geti($_.tab174, $_.j + 1, 7); //#9543 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#9543 + $k[$j++] = $get(_DU, _DV); //#9543 + } //#9543 + $_.dte = $k[--$j]; //#9544 + $_.dto = $k[--$j]; //#9544 + $_.dmwe = $k[--$j]; //#9545 + $_.dmwo = $k[--$j]; //#9545 + $_.dele = $k[--$j]; //#9546 + $_.delo = $k[--$j]; //#9546 + $_.dgs = $k[--$j]; //#9547 + break; //#9548 + } //#9548 + $_.j = $_.j + 8; //#9550 + } //#9550 + $k[$j++] = 'dwo'; //#9553 + $k[$j++] = ~~($f($_.d - $_.dgs) / $_.dte); //#9553 + $k[$j++] = $_.delo; //#9553 + $k[$j++] = $_.dmwo; //#9553 + $k[$j++] = 4; //#9553 + $k[$j++] = true; //#9553 + $_.getRSSwidths(); //#9553 + var _Dl = $k[--$j]; //#9553 + $_[$k[--$j]] = _Dl; //#9553 + $k[$j++] = 'dwe'; //#9554 + $k[$j++] = $f($_.d - $_.dgs) % $_.dte; //#9554 + $k[$j++] = $_.dele; //#9554 + $k[$j++] = $_.dmwe; //#9554 + $k[$j++] = 4; //#9554 + $k[$j++] = false; //#9554 + $_.getRSSwidths(); //#9554 + var _Ds = $k[--$j]; //#9554 + $_[$k[--$j]] = _Ds; //#9554 + $_.dw = $a(8); //#9556 + if (($_.x % 2) == 0) { //#9567 + for (var _Dw = 0; _Dw <= 3; _Dw += 1) { //#9562 + $_.j = _Dw; //#9559 + $put($_.dw, 7 - ($_.j * 2), $get($_.dwo, $_.j)); //#9560 + $put($_.dw, 6 - ($_.j * 2), $get($_.dwe, $_.j)); //#9561 + } //#9561 + } else { //#9567 + for (var _E7 = 0; _E7 <= 3; _E7 += 1) { //#9568 + $_.j = _E7; //#9565 + $put($_.dw, $_.j * 2, $get($_.dwo, $_.j)); //#9566 + $put($_.dw, ($_.j * 2) + 1, $get($_.dwe, $_.j)); //#9567 + } //#9567 + } //#9567 + $put($_.dxw, $_.x, $_.dw); //#9571 + } //#9571 + if (!bwipp_databarexpanded.__9597__) { //#9597 + $_ = Object.create($_); //#9597 + $_.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#9583 + $_.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#9596 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9596 + bwipp_databarexpanded.__9597__ = 1; //#9596 + $_ = Object.getPrototypeOf($_); //#9596 + } //#9596 + $_.seq = $get($_.finderseq, ~~(($_.datalen - 2) / 2)); //#9599 + $_.fxw = $a($_.seq.length); //#9600 + for (var _Ef = 0, _Ee = $_.seq.length - 1; _Ef <= _Ee; _Ef += 1) { //#9604 + $_.x = _Ef; //#9602 + $put($_.fxw, $_.x, $geti($_.finderwidths, $get($_.seq, $_.x) * 5, 5)); //#9603 + } //#9603 + if (!bwipp_databarexpanded.__9633__) { //#9633 + $_ = Object.create($_); //#9633 + $_.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#9632 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_databarexpanded.$ctx[id] = $_[id]); //#9632 + bwipp_databarexpanded.__9633__ = 1; //#9632 + $_ = Object.getPrototypeOf($_); //#9632 + } //#9632 + $k[$j++] = Infinity; //#9635 + $forall($_.seq, function() { //#9636 + $aload($geti($_.checkweights, $k[--$j] * 16, 16)); //#9636 + }); //#9636 + var _Et = $a(); //#9636 + $_.checkweightseq = $geti(_Et, 8, _Et.length - 8); //#9637 + $k[$j++] = Infinity; //#9639 + var _Ev = $_.dxw; //#9640 + for (var _Ew = 0, _Ex = _Ev.length; _Ew < _Ex; _Ew++) { //#9640 + $forall($get(_Ev, _Ew)); //#9640 + } //#9640 + $_.widths = $a(); //#9640 + $_.checksum = 0; //#9643 + for (var _F2 = 0, _F1 = $_.widths.length - 1; _F2 <= _F1; _F2 += 1) { //#9647 + $_.i = _F2; //#9645 + $_.checksum = $f($_.checksum + ($get($_.widths, $_.i) * $get($_.checkweightseq, $_.i))); //#9646 + } //#9646 + $_.checksum = $f(($_.checksum % 211) + (($_.datalen - 3) * 211)); //#9648 + $_.i = 0; //#9650 + for (;;) { //#9660 + if ($_.checksum <= $get($_.tab174, $_.i)) { //#9658 + var _FI = $geti($_.tab174, $_.i + 1, 7); //#9652 + for (var _FJ = 0, _FK = _FI.length; _FJ < _FK; _FJ++) { //#9652 + $k[$j++] = $get(_FI, _FJ); //#9652 } //#9652 - } //#9652 - $_.pixs = $a(); //#9652 - delete $_.options["parse"]; //#9657 + $_.cte = $k[--$j]; //#9653 + $_.cto = $k[--$j]; //#9653 + $_.cmwe = $k[--$j]; //#9654 + $_.cmwo = $k[--$j]; //#9654 + $_.cele = $k[--$j]; //#9655 + $_.celo = $k[--$j]; //#9655 + $_.cgs = $k[--$j]; //#9656 + break; //#9657 + } //#9657 + $_.i = $_.i + 8; //#9659 + } //#9659 + $k[$j++] = 'cwo'; //#9662 + $k[$j++] = ~~($f($_.checksum - $_.cgs) / $_.cte); //#9662 + $k[$j++] = $_.celo; //#9662 + $k[$j++] = $_.cmwo; //#9662 + $k[$j++] = 4; //#9662 + $k[$j++] = true; //#9662 + $_.getRSSwidths(); //#9662 + var _FZ = $k[--$j]; //#9662 + $_[$k[--$j]] = _FZ; //#9662 + $k[$j++] = 'cwe'; //#9663 + $k[$j++] = $f($_.checksum - $_.cgs) % $_.cte; //#9663 + $k[$j++] = $_.cele; //#9663 + $k[$j++] = $_.cmwe; //#9663 + $k[$j++] = 4; //#9663 + $k[$j++] = false; //#9663 + $_.getRSSwidths(); //#9663 + var _Fg = $k[--$j]; //#9663 + $_[$k[--$j]] = _Fg; //#9663 + $_.cw = $a(8); //#9665 + for (var _Fj = 0; _Fj <= 3; _Fj += 1) { //#9670 + $_.i = _Fj; //#9667 + $put($_.cw, $_.i * 2, $get($_.cwo, $_.i)); //#9668 + $put($_.cw, ($_.i * 2) + 1, $get($_.cwe, $_.i)); //#9669 + } //#9669 + var _Fu = $a(22); //#9672 + $put(_Fu, 0, $_.cw); //#9673 + $puti(_Fu, 1, $_.dxw); //#9673 + $_.dxw = $geti(_Fu, 0, $_.datalen + 1); //#9674 + $_.datalen = $_.dxw.length; //#9675 + $_.rows = $a(~~Math.ceil($_.datalen / $_.segments)); //#9678 + $_.numrows = $_.rows.length; //#9679 + for (var _G6 = 0, _G5 = $_.numrows - 1; _G6 <= _G5; _G6 += 1) { //#9694 + $_.r = _G6; //#9681 + $k[$j++] = Infinity; //#9682 + if ((($_.segments % 4) != 0) && (($_.r % 2) == 1)) { //#9683 + $k[$j++] = 0; //#9683 + } //#9683 + $k[$j++] = 1; //#9691 + $k[$j++] = 1; //#9691 + for (var _GB = 0, _GA = $_.segments - 1; _GB <= _GA; _GB += 1) { //#9691 + $_.pos = _GB + ($_.r * $_.segments); //#9686 + if ($_.pos < $_.datalen) { //#9690 + $forall($get($_.dxw, $_.pos)); //#9688 + if (($_.pos % 2) == 0) { //#9689 + $forall($get($_.fxw, ~~($_.pos / 2))); //#9689 + } //#9689 + } //#9689 + } //#9689 + var _GN = $counttomark() + 2; //#9693 + $k[$j++] = 1; //#9693 + $k[$j++] = 1; //#9693 + $astore($a(_GN)); //#9693 + $put($_.rows, $_.r, $k[--$j]); //#9693 + $j--; //#9693 + } //#9693 + if ($ne($_.format, "expandedstacked")) { //#9826 + var _GU = $get($_.rows, 0); //#9699 + $_.sbs = $geti(_GU, 1, _GU.length - 1); //#9699 + $k[$j++] = Infinity; //#9701 + $k[$j++] = 1; //#9707 + for (var _GY = 0, _GX = $_.datalen - 1; _GY <= _GX; _GY += 1) { //#9707 + $_.i = _GY; //#9704 + $forall($get($_.dxw, $_.i)); //#9705 + if (($_.i % 2) == 0) { //#9706 + $forall($get($_.fxw, ~~($_.i / 2))); //#9706 + } //#9706 + } //#9706 + $k[$j++] = 1; //#9708 + $k[$j++] = 1; //#9708 + $_.sbs = $a(); //#9708 + $k[$j++] = Infinity; //#9711 + var _Gh = $_.sbs; //#9713 + $k[$j++] = Infinity; //#9714 + for (var _Gj = 0, _Gk = ~~(($_.sbs.length + 1) / 2); _Gj < _Gk; _Gj++) { //#9714 + $k[$j++] = $_.height; //#9714 + } //#9714 + var _Gm = $a(); //#9714 + $k[$j++] = Infinity; //#9715 + for (var _Go = 0, _Gp = ~~(($_.sbs.length + 1) / 2); _Go < _Gp; _Go++) { //#9715 + $k[$j++] = 0; //#9715 + } //#9715 + var _Gq = $a(); //#9715 + $k[$j++] = 'ren'; //#9720 + $k[$j++] = bwipp_renlinear; //#9720 + $k[$j++] = 'sbs'; //#9720 + $k[$j++] = _Gh; //#9720 + $k[$j++] = 'bhs'; //#9720 + $k[$j++] = _Gm; //#9720 + $k[$j++] = 'bbs'; //#9720 + $k[$j++] = _Gq; //#9720 + $k[$j++] = 'borderleft'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderright'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'bordertop'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'borderbottom'; //#9720 + $k[$j++] = 0; //#9720 + $k[$j++] = 'opt'; //#9720 + $k[$j++] = $_.options; //#9720 + var _Gs = $d(); //#9720 + $k[$j++] = _Gs; //#9723 + if (!$_.dontdraw) { //#9723 + bwipp_renlinear(); //#9723 + } //#9723 + } else { //#9826 + $_.seps = $a($_.numrows); //#9727 + for (var _Gy = 0, _Gx = $_.numrows - 1; _Gy <= _Gx; _Gy += 1) { //#9783 + $_.r = _Gy; //#9730 + $_.row = $get($_.rows, $_.r); //#9731 + $k[$j++] = Infinity; //#9734 + for (var _H4 = 0, _H3 = $_.row.length - 1; _H4 <= _H3; _H4 += 2) { //#9739 + $_.i = _H4; //#9736 + for (var _H8 = 0, _H9 = $get($_.row, $_.i); _H8 < _H9; _H8++) { //#9737 + $k[$j++] = 0; //#9737 + } //#9737 + if ($_.i < ($_.row.length - 1)) { //#9738 + for (var _HF = 0, _HG = $get($_.row, $_.i + 1); _HF < _HG; _HF++) { //#9738 + $k[$j++] = 1; //#9738 + } //#9738 + } //#9738 + } //#9738 + $astore($a($counttomark())); //#9740 + $_.row = $k[--$j]; //#9740 + $j--; //#9740 + $k[$j++] = Infinity; //#9743 + $forall($_.row, function() { //#9743 + var _HL = $k[--$j]; //#9743 + $k[$j++] = $f(1 - _HL); //#9743 + }); //#9743 + $_.sep = $a(); //#9743 + $k[$j++] = Infinity; //#9744 + for (var _HP = 19, _HO = $_.row.length - 13; _HP <= _HO; _HP += 98) { //#9745 + $k[$j++] = _HP; //#9745 + } //#9745 + for (var _HS = 68, _HR = $_.row.length - 13; _HS <= _HR; _HS += 98) { //#9746 + $k[$j++] = _HS; //#9746 + } //#9746 + $_.finderpos = $a(); //#9746 + var _HU = $_.finderpos; //#9748 + for (var _HV = 0, _HW = _HU.length; _HV < _HW; _HV++) { //#9762 + var _HX = $get(_HU, _HV); //#9762 + for (var _HZ = _HX, _HY = $f(_HX + 14); _HZ <= _HY; _HZ += 1) { //#9761 + $_.i = _HZ; //#9750 + if ($get($_.row, $_.i) == 0) { //#9758 + if ($get($_.row, $_.i - 1) == 1) { //#9755 + $k[$j++] = 1; //#9753 + } else { //#9755 + var _Hj = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#9755 + $k[$j++] = _Hj; //#9755 + } //#9755 + } else { //#9758 + $k[$j++] = 0; //#9758 + } //#9758 + $put($_.sep, $_.i, $k[--$j]); //#9760 + } //#9760 + } //#9760 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9763 + $puti($_.sep, $_.row.length - 4, $a([0, 0, 0, 0])); //#9764 + if ((($_.segments % 4) == 0) && (($_.r % 2) == 1)) { //#9778 + if (($get($_.rows, $_.r).length != $get($_.rows, 0).length) && (($_.finderpos.length % 2) == 1)) { //#9776 + $k[$j++] = Infinity; //#9770 + $k[$j++] = 0; //#9770 + $aload($_.row); //#9770 + $_.row = $a(); //#9770 + $k[$j++] = Infinity; //#9771 + $k[$j++] = 0; //#9771 + $aload($_.sep); //#9771 + $_.sep = $a(); //#9771 + } else { //#9776 + for (var _I5 = $_.row.length - 1; _I5 >= 0; _I5 -= 1) { //#9773 + $k[$j++] = $get($_.row, _I5); //#9773 + } //#9773 + $astore($_.row); //#9774 + $j--; //#9774 + for (var _IA = $_.sep.length - 1; _IA >= 0; _IA -= 1) { //#9775 + $k[$j++] = $get($_.sep, _IA); //#9775 + } //#9775 + $astore($_.sep); //#9776 + $j--; //#9776 + } //#9776 + } //#9776 + $put($_.rows, $_.r, $_.row); //#9780 + $put($_.seps, $_.r, $_.sep); //#9781 + } //#9781 + $_.pixx = $get($_.rows, 0).length; //#9786 + $k[$j++] = Infinity; //#9787 + for (var _IN = 0, _IO = $_.pixx; _IN < _IO; _IN++) { //#9787 + $k[$j++] = 0; //#9787 + } //#9787 + var _IP = $a(); //#9787 + $puti(_IP, 0, $get($_.rows, $_.numrows - 1)); //#9787 + $put($_.rows, $_.numrows - 1, _IP); //#9788 + $k[$j++] = Infinity; //#9789 + for (var _IW = 0, _IX = $_.pixx; _IW < _IX; _IW++) { //#9789 + $k[$j++] = 0; //#9789 + } //#9789 + var _IY = $a(); //#9789 + $puti(_IY, 0, $get($_.seps, $_.numrows - 1)); //#9789 + $put($_.seps, $_.numrows - 1, _IY); //#9790 + $k[$j++] = Infinity; //#9793 + for (var _If = 0, _Ig = (~~($_.pixx / 2)) + 1; _If < _Ig; _If++) { //#9793 + $k[$j++] = 0; //#9793 + $k[$j++] = 1; //#9793 + } //#9793 + $_.sep = $geti($a(), 0, $_.pixx); //#9793 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#9794 + $puti($_.sep, $_.pixx - 4, $a([0, 0, 0, 0])); //#9795 + $k[$j++] = Infinity; //#9798 + for (var _Ir = 0, _Iq = $_.numrows - 1; _Ir <= _Iq; _Ir += 1) { //#9809 + $_.r = _Ir; //#9800 + if ($_.r != 0) { //#9803 + $aload($get($_.seps, $_.r)); //#9802 + } //#9802 + for (var _Ix = 0, _Iy = $_.barxmult; _Ix < _Iy; _Ix++) { //#9804 + $aload($get($_.rows, $_.r)); //#9804 + } //#9804 + if ($_.r != ($_.numrows - 1)) { //#9808 + $aload($get($_.seps, $_.r)); //#9806 + $aload($_.sep); //#9807 + } //#9807 + } //#9807 + $_.pixs = $a(); //#9807 var _JH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -13080,4085 +13355,4133 @@ function bwipp_databarexpanded() { ["pixy", ~~($_.pixs.length / $_.pixx)], ["height", (~~($_.pixs.length / $_.pixx)) / 72], ["width", $_.pixx / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#9666 - $k[$j++] = _JH; //#9669 - if (!$_.dontdraw) { //#9669 - bwipp_renmatrix(); //#9669 - } //#9669 - } //#9669 - $_ = Object.getPrototypeOf($_); //#9673 - $_ = Object.getPrototypeOf($_); //#9675 -} - + ]); //#9823 + $k[$j++] = _JH; //#9826 + if (!$_.dontdraw) { //#9826 + bwipp_renmatrix(); //#9826 + } //#9826 + } //#9826 + $_ = Object.getPrototypeOf($_); //#9830 + $_ = Object.getPrototypeOf($_); //#9832 +} //bwipp_databarexpanded function bwipp_databarexpandedstacked() { - $_ = Object.create($_); //#9704 - $_.dontdraw = false; //#9707 - $k[$j++] = $_; //#9709 - bwipp_processoptions(); //#9709 - $_.options = $k[--$j]; //#9709 - $_.barcode = $k[--$j]; //#9710 - $put($_.options, "dontdraw", true); //#9713 - $put($_.options, "format", "expandedstacked"); //#9714 - $k[$j++] = 'args'; //#9716 - $k[$j++] = $_.barcode; //#9716 - $k[$j++] = $_.options; //#9716 - bwipp_databarexpanded(); //#9716 - var _6 = $k[--$j]; //#9716 - $_[$k[--$j]] = _6; //#9716 - $put($_.args, "opt", $_.options); //#9718 - $k[$j++] = $_.args; //#9721 - if (!$_.dontdraw) { //#9721 - bwipp_renmatrix(); //#9721 - } //#9721 - $_ = Object.getPrototypeOf($_); //#9723 -} - + $_ = Object.create($_); //#9861 + $_.dontdraw = false; //#9864 + $k[$j++] = $_; //#9866 + bwipp_processoptions(); //#9866 + $_.options = $k[--$j]; //#9866 + $_.barcode = $k[--$j]; //#9867 + $put($_.options, "dontdraw", true); //#9870 + $put($_.options, "format", "expandedstacked"); //#9871 + $k[$j++] = 'args'; //#9873 + $k[$j++] = $_.barcode; //#9873 + $k[$j++] = $_.options; //#9873 + bwipp_databarexpanded(); //#9873 + var _6 = $k[--$j]; //#9873 + $_[$k[--$j]] = _6; //#9873 + $put($_.args, "opt", $_.options); //#9875 + $k[$j++] = $_.args; //#9878 + if (!$_.dontdraw) { //#9878 + bwipp_renmatrix(); //#9878 + } //#9878 + $_ = Object.getPrototypeOf($_); //#9880 +} //bwipp_databarexpandedstacked function bwipp_gs1northamericancoupon() { - $_ = Object.create($_); //#9753 - $_.dontdraw = false; //#9756 - $_.includetext = false; //#9757 - $_.coupontextfont = "OCR-B"; //#9758 - $_.coupontextsize = 9; //#9759 - $_.coupontextxoffset = null; //#9760 - $_.coupontextyoffset = null; //#9761 - $_.parse = false; //#9762 - $_.dontlint = false; //#9763 - $_.lintreqs = true; //#9764 - $k[$j++] = $_; //#9766 - bwipp_processoptions(); //#9766 - $_.options = $k[--$j]; //#9766 - $_.barcode = $k[--$j]; //#9767 - $k[$j++] = $_.barcode; //#9769 - $k[$j++] = 'ai'; //#9769 - bwipp_gs1process(); //#9769 - $j--; //#9770 - $_.vals = $k[--$j]; //#9771 - $_.ais = $k[--$j]; //#9772 - if ($_.ais.length != 1) { //#9777 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9776'; //#9776 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9776 - bwipp_raiseerror(); //#9776 - } //#9776 - if ($ne($get($_.ais, 0), "8110")) { //#9780 - $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9779'; //#9779 - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9779 - bwipp_raiseerror(); //#9779 - } //#9779 - $_.val = $get($_.vals, 0); //#9783 - $_.vli = $f($get($_.val, 0) - 48); //#9784 - if (($_.vli < 0) || ($_.vli > 6)) { //#9787 - $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9786'; //#9786 - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9786 - bwipp_raiseerror(); //#9786 - } //#9786 - $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9788 - $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9789 - $_.coupontext = $s($_.gcp.length + 7); //#9790 - $puti($_.coupontext, 0, $_.gcp); //#9791 - $puti($_.coupontext, $_.gcp.length, "-"); //#9792 - $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9793 - delete $_.options["parse"]; //#9796 - $put($_.options, "dontdraw", true); //#9797 - $k[$j++] = 'args'; //#9799 - $k[$j++] = $_.barcode; //#9799 - $k[$j++] = $_.options; //#9799 - bwipp_databarexpandedstacked(); //#9799 - var _X = $k[--$j]; //#9799 - $_[$k[--$j]] = _X; //#9799 - if ($_.includetext) { //#9818 - if ($eq($_.coupontextxoffset, null)) { //#9805 - $_.coupontextxoffset = 0; //#9804 - } //#9804 - if ($eq($_.coupontextyoffset, null)) { //#9808 - $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9807 - } //#9807 - var _f = $get($_.args, "txt") !== undefined; //#9809 - if (_f) { //#9816 - $_.txt = $get($_.args, "txt"); //#9810 - $_.newtxt = $a($_.txt.length + 1); //#9811 - $puti($_.newtxt, 0, $_.txt); //#9812 - $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9813 - $put($_.args, "txt", $_.newtxt); //#9814 - } else { //#9816 - $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9816 - } //#9816 - } //#9816 - $put($_.args, "opt", $_.options); //#9820 - $k[$j++] = $_.args; //#9823 - if (!$_.dontdraw) { //#9823 - bwipp_renmatrix(); //#9823 - } //#9823 - $_ = Object.getPrototypeOf($_); //#9825 -} - + $_ = Object.create($_); //#9910 + $_.dontdraw = false; //#9913 + $_.includetext = false; //#9914 + $_.coupontextfont = "OCR-B"; //#9915 + $_.coupontextsize = 9; //#9916 + $_.coupontextxoffset = null; //#9917 + $_.coupontextyoffset = null; //#9918 + $_.parse = false; //#9919 + $_.dontlint = false; //#9920 + $_.lintreqs = true; //#9921 + $k[$j++] = $_; //#9923 + bwipp_processoptions(); //#9923 + $_.options = $k[--$j]; //#9923 + $_.barcode = $k[--$j]; //#9924 + $k[$j++] = $_.barcode; //#9926 + $k[$j++] = 'ai'; //#9926 + bwipp_gs1process(); //#9926 + $j--; //#9927 + $_.vals = $k[--$j]; //#9928 + $_.ais = $k[--$j]; //#9929 + if ($_.ais.length != 1) { //#9934 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9933'; //#9933 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9933 + bwipp_raiseerror(); //#9933 + } //#9933 + if ($ne($get($_.ais, 0), "8110")) { //#9937 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure#9936'; //#9936 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#9936 + bwipp_raiseerror(); //#9936 + } //#9936 + $_.val = $get($_.vals, 0); //#9940 + $_.vli = $f($get($_.val, 0) - 48); //#9941 + if (($_.vli < 0) || ($_.vli > 6)) { //#9944 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI#9943'; //#9943 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#9943 + bwipp_raiseerror(); //#9943 + } //#9943 + $_.gcp = $geti($_.val, 1, $f($_.vli + 6)); //#9945 + $_.cod = $geti($_.val, $f($_.vli + 7), 6); //#9946 + $_.coupontext = $s($_.gcp.length + 7); //#9947 + $puti($_.coupontext, 0, $_.gcp); //#9948 + $puti($_.coupontext, $_.gcp.length, "-"); //#9949 + $puti($_.coupontext, $_.gcp.length + 1, $_.cod); //#9950 + $put($_.options, "dontdraw", true); //#9953 + $k[$j++] = 'args'; //#9955 + $k[$j++] = $_.barcode; //#9955 + $k[$j++] = $_.options; //#9955 + bwipp_databarexpandedstacked(); //#9955 + var _W = $k[--$j]; //#9955 + $_[$k[--$j]] = _W; //#9955 + if ($_.includetext) { //#9974 + if ($eq($_.coupontextxoffset, null)) { //#9961 + $_.coupontextxoffset = 0; //#9960 + } //#9960 + if ($eq($_.coupontextyoffset, null)) { //#9964 + $_.coupontextyoffset = $f(($get($_.args, "height") * 72) + 3); //#9963 + } //#9963 + var _e = $get($_.args, "txt") !== undefined; //#9965 + if (_e) { //#9972 + $_.txt = $get($_.args, "txt"); //#9966 + $_.newtxt = $a($_.txt.length + 1); //#9967 + $puti($_.newtxt, 0, $_.txt); //#9968 + $put($_.newtxt, $_.newtxt.length - 1, $a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])); //#9969 + $put($_.args, "txt", $_.newtxt); //#9970 + } else { //#9972 + $put($_.args, "txt", $a([$a([$_.coupontext, $_.coupontextxoffset, $_.coupontextyoffset, $_.coupontextfont, $_.coupontextsize])])); //#9972 + } //#9972 + } //#9972 + $put($_.args, "opt", $_.options); //#9976 + $k[$j++] = $_.args; //#9979 + if (!$_.dontdraw) { //#9979 + bwipp_renmatrix(); //#9979 + } //#9979 + $_ = Object.getPrototypeOf($_); //#9981 +} //bwipp_gs1northamericancoupon function bwipp_pharmacode() { - $_ = Object.create($_); //#9853 - $_.dontdraw = false; //#9856 - $_.height = (8 * 2.835) / 72; //#9857 - $_.nwidth = 0.5 * 2.835; //#9858 - $_.wwidth = 1.5 * 2.835; //#9859 - $_.swidth = 1 * 2.835; //#9860 - $k[$j++] = $_; //#9862 - bwipp_processoptions(); //#9862 - $_.options = $k[--$j]; //#9862 - $_.barcode = $k[--$j]; //#9863 - if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#9868 - $k[$j++] = 'bwipp.pharmacodeBadLength#9867'; //#9867 - $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#9867 - bwipp_raiseerror(); //#9867 - } //#9867 - $forall($_.barcode, function() { //#9873 - var _5 = $k[--$j]; //#9870 - if ((_5 < 48) || (_5 > 57)) { //#9872 - $k[$j++] = 'bwipp.pharmacodeBadCharacter#9871'; //#9871 - $k[$j++] = "Pharmacode must contain only digits"; //#9871 - bwipp_raiseerror(); //#9871 - } //#9871 - }); //#9871 - var _7 = $cvi($_.barcode); //#9874 - if ((_7 < 3) || (_7 > 131070)) { //#9876 - $k[$j++] = 'bwipp.pharmacodeBadValue#9875'; //#9875 - $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#9875 - bwipp_raiseerror(); //#9875 - } //#9875 - $_.txt = $a($_.barcode.length); //#9879 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9883 - $_.i = _C; //#9881 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9882 - } //#9882 - $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#9886 - $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#9887 - $_.barlen = $_.barcode.length; //#9889 - $_.sbs = $a($_.barlen * 2); //#9890 - for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#9901 - $_.i = _U; //#9893 - $_.enc = $geti($_.barcode, $_.i, 1); //#9894 - if ($eq($_.enc, "0")) { //#9898 - $put($_.sbs, $_.i * 2, $_.nwidth); //#9896 - } else { //#9898 - $put($_.sbs, $_.i * 2, $_.wwidth); //#9898 - } //#9898 - $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#9900 - } //#9900 - $k[$j++] = Infinity; //#9911 - var _i = $_.sbs; //#9906 - $k[$j++] = Infinity; //#9907 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#9907 - $k[$j++] = $_.height; //#9907 - } //#9907 - var _n = $a(); //#9907 - $k[$j++] = Infinity; //#9908 - for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#9908 - $k[$j++] = 0; //#9908 - } //#9908 - var _r = $a(); //#9908 - $k[$j++] = 'ren'; //#9911 - $k[$j++] = bwipp_renlinear; //#9911 - $k[$j++] = 'sbs'; //#9911 - $k[$j++] = _i; //#9911 - $k[$j++] = 'bhs'; //#9911 - $k[$j++] = _n; //#9911 - $k[$j++] = 'bbs'; //#9911 - $k[$j++] = _r; //#9911 - $k[$j++] = 'txt'; //#9911 - $k[$j++] = $_.txt; //#9911 - $k[$j++] = 'textxalign'; //#9911 - $k[$j++] = "center"; //#9911 - $k[$j++] = 'opt'; //#9911 - $k[$j++] = $_.options; //#9911 - var _u = $d(); //#9911 - $k[$j++] = _u; //#9914 - if (!$_.dontdraw) { //#9914 - bwipp_renlinear(); //#9914 - } //#9914 - $_ = Object.getPrototypeOf($_); //#9916 -} - + $_ = Object.create($_); //#10009 + $_.dontdraw = false; //#10012 + $_.height = (8 * 2.835) / 72; //#10013 + $_.nwidth = 0.5 * 2.835; //#10014 + $_.wwidth = 1.5 * 2.835; //#10015 + $_.swidth = 1 * 2.835; //#10016 + $k[$j++] = $_; //#10018 + bwipp_processoptions(); //#10018 + $_.options = $k[--$j]; //#10018 + $_.barcode = $k[--$j]; //#10019 + if (($_.barcode.length < 1) || ($_.barcode.length > 6)) { //#10024 + $k[$j++] = 'bwipp.pharmacodeBadLength#10023'; //#10023 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#10023 + bwipp_raiseerror(); //#10023 + } //#10023 + $forall($_.barcode, function() { //#10029 + var _5 = $k[--$j]; //#10026 + if ((_5 < 48) || (_5 > 57)) { //#10028 + $k[$j++] = 'bwipp.pharmacodeBadCharacter#10027'; //#10027 + $k[$j++] = "Pharmacode must contain only digits"; //#10027 + bwipp_raiseerror(); //#10027 + } //#10027 + }); //#10027 + var _7 = $cvi($_.barcode); //#10030 + if ((_7 < 3) || (_7 > 131070)) { //#10032 + $k[$j++] = 'bwipp.pharmacodeBadValue#10031'; //#10031 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#10031 + bwipp_raiseerror(); //#10031 + } //#10031 + $_.txt = $a($_.barcode.length); //#10035 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10039 + $_.i = _C; //#10037 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10038 + } //#10038 + $_.barcode = $cvrs($s(17), $cvi($_.barcode) + 1, 2); //#10042 + $_.barcode = $geti($_.barcode, 1, $_.barcode.length - 1); //#10043 + $_.barlen = $_.barcode.length; //#10045 + $_.sbs = $a($_.barlen * 2); //#10046 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10057 + $_.i = _U; //#10049 + $_.enc = $geti($_.barcode, $_.i, 1); //#10050 + if ($eq($_.enc, "0")) { //#10054 + $put($_.sbs, $_.i * 2, $_.nwidth); //#10052 + } else { //#10054 + $put($_.sbs, $_.i * 2, $_.wwidth); //#10054 + } //#10054 + $put($_.sbs, ($_.i * 2) + 1, $_.swidth); //#10056 + } //#10056 + $k[$j++] = Infinity; //#10060 + var _i = $_.sbs; //#10062 + $k[$j++] = Infinity; //#10063 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#10063 + $k[$j++] = $_.height; //#10063 + } //#10063 + var _n = $a(); //#10063 + $k[$j++] = Infinity; //#10064 + for (var _p = 0, _q = ~~(($_.sbs.length + 1) / 2); _p < _q; _p++) { //#10064 + $k[$j++] = 0; //#10064 + } //#10064 + var _r = $a(); //#10064 + $k[$j++] = 'ren'; //#10067 + $k[$j++] = bwipp_renlinear; //#10067 + $k[$j++] = 'sbs'; //#10067 + $k[$j++] = _i; //#10067 + $k[$j++] = 'bhs'; //#10067 + $k[$j++] = _n; //#10067 + $k[$j++] = 'bbs'; //#10067 + $k[$j++] = _r; //#10067 + $k[$j++] = 'txt'; //#10067 + $k[$j++] = $_.txt; //#10067 + $k[$j++] = 'textxalign'; //#10067 + $k[$j++] = "center"; //#10067 + $k[$j++] = 'opt'; //#10067 + $k[$j++] = $_.options; //#10067 + var _u = $d(); //#10067 + $k[$j++] = _u; //#10070 + if (!$_.dontdraw) { //#10070 + bwipp_renlinear(); //#10070 + } //#10070 + $_ = Object.getPrototypeOf($_); //#10072 +} //bwipp_pharmacode function bwipp_pharmacode2() { - $_ = Object.create($_); //#9944 - $_.dontdraw = false; //#9947 - $_.includetext = false; //#9948 - $_.height = 4; //#9949 - $k[$j++] = $_; //#9951 - bwipp_processoptions(); //#9951 - $_.options = $k[--$j]; //#9951 - $_.barcode = $k[--$j]; //#9952 - if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#9957 - $k[$j++] = 'bwipp.pharmacode2BadLength#9956'; //#9956 - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#9956 - bwipp_raiseerror(); //#9956 - } //#9956 - $forall($_.barcode, function() { //#9962 - var _5 = $k[--$j]; //#9959 - if ((_5 < 48) || (_5 > 57)) { //#9961 - $k[$j++] = 'bwipp.pharmacode2badCharacter#9960'; //#9960 - $k[$j++] = "Two-track Pharmacode must contain only digits"; //#9960 - bwipp_raiseerror(); //#9960 - } //#9960 - }); //#9960 - var _7 = $cvi($_.barcode); //#9963 - if ((_7 < 4) || (_7 > 64570080)) { //#9965 - $k[$j++] = 'bwipp.pharmacode2badValue#9964'; //#9964 - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#9964 - bwipp_raiseerror(); //#9964 - } //#9964 - $_.txt = $a($_.barcode.length); //#9968 - for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#9972 - $_.i = _C; //#9970 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#9971 - } //#9971 - $_.encstr = $s(16); //#9974 - $_.sbs = $a(32); //#9975 - $_.bar = (1 / 25.4) * $_.height; //#9976 - $_.spc = (1 / 25.4) * 72; //#9977 - $_.i = 15; //#9980 - $_.val = $cvi($_.barcode); //#9981 - for (;;) { //#9988 - if ($_.val == 0) { //#9983 - break; //#9983 - } //#9983 - var _P = $_.val % 3; //#9984 - $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#9985 - $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#9986 - $_.i = $_.i - 1; //#9987 - } //#9987 - $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#9989 - $_.bhs = $a($_.encstr.length); //#9992 - $_.bbs = $a($_.encstr.length); //#9993 - for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#9999 - $_.i = _i; //#9995 - var _l = $get($_.encstr, $_.i); //#9996 - $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#9997 - $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#9998 - } //#9998 - $k[$j++] = Infinity; //#10010 - var _w = $_.bhs; //#10004 - var _x = $_.bbs; //#10005 - $k[$j++] = Infinity; //#10006 - for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10006 - $k[$j++] = $_.spc; //#10006 - } //#10006 - var _12 = $a(); //#10006 - $k[$j++] = 'ren'; //#10010 - $k[$j++] = bwipp_renlinear; //#10010 - $k[$j++] = 'bhs'; //#10010 - $k[$j++] = _w; //#10010 - $k[$j++] = 'bbs'; //#10010 - $k[$j++] = _x; //#10010 - $k[$j++] = 'sbs'; //#10010 - $k[$j++] = _12; //#10010 - $k[$j++] = 'txt'; //#10010 - $k[$j++] = $_.txt; //#10010 - $k[$j++] = 'textxalign'; //#10010 - $k[$j++] = "center"; //#10010 - $k[$j++] = 'textyoffset'; //#10010 - $k[$j++] = 4; //#10010 - $k[$j++] = 'opt'; //#10010 - $k[$j++] = $_.options; //#10010 - var _15 = $d(); //#10010 - $k[$j++] = _15; //#10013 - if (!$_.dontdraw) { //#10013 - bwipp_renlinear(); //#10013 - } //#10013 - $_ = Object.getPrototypeOf($_); //#10015 -} - + $_ = Object.create($_); //#10100 + $_.dontdraw = false; //#10103 + $_.includetext = false; //#10104 + $_.height = 4; //#10105 + $k[$j++] = $_; //#10107 + bwipp_processoptions(); //#10107 + $_.options = $k[--$j]; //#10107 + $_.barcode = $k[--$j]; //#10108 + if (($_.barcode.length < 1) || ($_.barcode.length > 8)) { //#10113 + $k[$j++] = 'bwipp.pharmacode2BadLength#10112'; //#10112 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#10112 + bwipp_raiseerror(); //#10112 + } //#10112 + $forall($_.barcode, function() { //#10118 + var _5 = $k[--$j]; //#10115 + if ((_5 < 48) || (_5 > 57)) { //#10117 + $k[$j++] = 'bwipp.pharmacode2badCharacter#10116'; //#10116 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#10116 + bwipp_raiseerror(); //#10116 + } //#10116 + }); //#10116 + var _7 = $cvi($_.barcode); //#10119 + if ((_7 < 4) || (_7 > 64570080)) { //#10121 + $k[$j++] = 'bwipp.pharmacode2badValue#10120'; //#10120 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#10120 + bwipp_raiseerror(); //#10120 + } //#10120 + $_.txt = $a($_.barcode.length); //#10124 + for (var _C = 0, _B = $_.barcode.length - 1; _C <= _B; _C += 1) { //#10128 + $_.i = _C; //#10126 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#10127 + } //#10127 + $_.encstr = $s(16); //#10130 + $_.sbs = $a(32); //#10131 + $_.bar = (1 / 25.4) * $_.height; //#10132 + $_.spc = (1 / 25.4) * 72; //#10133 + $_.i = 15; //#10136 + $_.val = $cvi($_.barcode); //#10137 + for (;;) { //#10144 + if ($_.val == 0) { //#10139 + break; //#10139 + } //#10139 + var _P = $_.val % 3; //#10140 + $_.val = ~~($f($_.val - $get($a([3, 1, 2]), _P)) / 3); //#10141 + $put($_.encstr, $_.i, $get($a([2, 0, 1]), _P)); //#10142 + $_.i = $_.i - 1; //#10143 + } //#10143 + $_.encstr = $geti($_.encstr, $_.i + 1, 15 - $_.i); //#10145 + $_.bhs = $a($_.encstr.length); //#10148 + $_.bbs = $a($_.encstr.length); //#10149 + for (var _i = 0, _h = $_.encstr.length - 1; _i <= _h; _i += 1) { //#10155 + $_.i = _i; //#10151 + var _l = $get($_.encstr, $_.i); //#10152 + $put($_.bhs, $_.i, $_.bar * $get($a([1, 1, 2]), _l)); //#10153 + $put($_.bbs, $_.i, $get($a([0, $_.bar, 0]), _l)); //#10154 + } //#10154 + $k[$j++] = Infinity; //#10158 + var _w = $_.bhs; //#10160 + var _x = $_.bbs; //#10161 + $k[$j++] = Infinity; //#10162 + for (var _z = 0, _10 = $_.encstr.length * 2; _z < _10; _z++) { //#10162 + $k[$j++] = $_.spc; //#10162 + } //#10162 + var _12 = $a(); //#10162 + $k[$j++] = 'ren'; //#10166 + $k[$j++] = bwipp_renlinear; //#10166 + $k[$j++] = 'bhs'; //#10166 + $k[$j++] = _w; //#10166 + $k[$j++] = 'bbs'; //#10166 + $k[$j++] = _x; //#10166 + $k[$j++] = 'sbs'; //#10166 + $k[$j++] = _12; //#10166 + $k[$j++] = 'txt'; //#10166 + $k[$j++] = $_.txt; //#10166 + $k[$j++] = 'textxalign'; //#10166 + $k[$j++] = "center"; //#10166 + $k[$j++] = 'textyoffset'; //#10166 + $k[$j++] = 4; //#10166 + $k[$j++] = 'opt'; //#10166 + $k[$j++] = $_.options; //#10166 + var _15 = $d(); //#10166 + $k[$j++] = _15; //#10169 + if (!$_.dontdraw) { //#10169 + bwipp_renlinear(); //#10169 + } //#10169 + $_ = Object.getPrototypeOf($_); //#10171 +} //bwipp_pharmacode2 function bwipp_code2of5() { - $_ = Object.create($_); //#10045 - $_.dontdraw = false; //#10048 - $_.includecheck = false; //#10049 - $_.validatecheck = false; //#10050 - $_.includetext = false; //#10051 - $_.includecheckintext = false; //#10052 - $_.textfont = "OCR-B"; //#10053 - $_.textsize = 10; //#10054 - $_.textyoffset = -8; //#10055 - $_.height = 1; //#10056 - $_.version = "industrial"; //#10057 - $k[$j++] = $_; //#10059 - bwipp_processoptions(); //#10059 - $_.options = $k[--$j]; //#10059 - $_.barcode = $k[--$j]; //#10060 - bwipp_loadctx(bwipp_code2of5) //#10062 - $forall($_.barcode, function() { //#10069 - var _3 = $k[--$j]; //#10066 - if ((_3 < 48) || (_3 > 57)) { //#10068 - $k[$j++] = 'bwipp.code2of5badCharacter#10067'; //#10067 - $k[$j++] = "Code 25 must contain only digits"; //#10067 - bwipp_raiseerror(); //#10067 - } //#10067 - }); //#10067 - $k[$j++] = 'barlen'; //#10071 - $k[$j++] = $_.barcode.length; //#10071 - if ($_.validatecheck) { //#10071 - var _6 = $k[--$j]; //#10071 - $k[$j++] = $f(_6 - 1); //#10071 - } //#10071 - var _7 = $k[--$j]; //#10071 - $_[$k[--$j]] = _7; //#10071 - $_.checksum = 0; //#10073 - for (var _B = 0, _A = $f($_.barlen - 1); _B <= _A; _B += 1) { //#10077 - $_.i = _B; //#10075 - $k[$j++] = 'checksum'; //#10076 - $k[$j++] = $_.checksum; //#10076 - $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10076 - if (($f($_.barlen - $_.i) % 2) != 0) { //#10076 - var _I = $k[--$j]; //#10076 - $k[$j++] = _I * 3; //#10076 - } //#10076 - var _J = $k[--$j]; //#10076 - var _K = $k[--$j]; //#10076 - $_[$k[--$j]] = $f(_K + _J); //#10076 - } //#10076 - $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10078 - if ($_.validatecheck) { //#10085 - if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10082 - $k[$j++] = 'bwipp.code2of5badCheckDigit#10081'; //#10081 - $k[$j++] = "Incorrect Code 25 check digit provided"; //#10081 - bwipp_raiseerror(); //#10081 - } //#10081 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10083 - $_.includecheck = true; //#10084 - } //#10084 - if (!bwipp_code2of5.__10113__) { //#10113 - $_ = Object.create($_); //#10113 - var _a = new Map([ + $_ = Object.create($_); //#10201 + $_.dontdraw = false; //#10204 + $_.includecheck = false; //#10205 + $_.validatecheck = false; //#10206 + $_.includetext = false; //#10207 + $_.includecheckintext = false; //#10208 + $_.textfont = "OCR-B"; //#10209 + $_.textsize = 10; //#10210 + $_.textyoffset = -8; //#10211 + $_.height = 1; //#10212 + $_.version = "industrial"; //#10213 + $k[$j++] = $_; //#10215 + bwipp_processoptions(); //#10215 + $_.options = $k[--$j]; //#10215 + $_.barcode = $k[--$j]; //#10216 + if ($eq($_.barcode, "")) { //#10220 + $k[$j++] = 'bwipp.code2of5emptyData#10219'; //#10219 + $k[$j++] = "The data must not be empty"; //#10219 + bwipp_raiseerror(); //#10219 + } //#10219 + bwipp_loadctx(bwipp_code2of5) //#10222 + $forall($_.barcode, function() { //#10229 + var _4 = $k[--$j]; //#10226 + if ((_4 < 48) || (_4 > 57)) { //#10228 + $k[$j++] = 'bwipp.code2of5badCharacter#10227'; //#10227 + $k[$j++] = "Code 25 must contain only digits"; //#10227 + bwipp_raiseerror(); //#10227 + } //#10227 + }); //#10227 + $k[$j++] = 'barlen'; //#10231 + $k[$j++] = $_.barcode.length; //#10231 + if ($_.validatecheck) { //#10231 + var _7 = $k[--$j]; //#10231 + $k[$j++] = $f(_7 - 1); //#10231 + } //#10231 + var _8 = $k[--$j]; //#10231 + $_[$k[--$j]] = _8; //#10231 + $_.checksum = 0; //#10233 + for (var _C = 0, _B = $f($_.barlen - 1); _C <= _B; _C += 1) { //#10237 + $_.i = _C; //#10235 + $k[$j++] = 'checksum'; //#10236 + $k[$j++] = $_.checksum; //#10236 + $k[$j++] = $f($get($_.barcode, $_.i) - 48); //#10236 + if (($f($_.barlen - $_.i) % 2) != 0) { //#10236 + var _J = $k[--$j]; //#10236 + $k[$j++] = _J * 3; //#10236 + } //#10236 + var _K = $k[--$j]; //#10236 + var _L = $k[--$j]; //#10236 + $_[$k[--$j]] = $f(_L + _K); //#10236 + } //#10236 + $_.checksum = (10 - ($_.checksum % 10)) % 10; //#10238 + if ($_.validatecheck) { //#10245 + if ($get($_.barcode, $_.barlen) != ($_.checksum + 48)) { //#10242 + $k[$j++] = 'bwipp.code2of5badCheckDigit#10241'; //#10241 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#10241 + bwipp_raiseerror(); //#10241 + } //#10241 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10243 + $_.includecheck = true; //#10244 + } //#10244 + if (!bwipp_code2of5.__10273__) { //#10273 + $_ = Object.create($_); //#10273 + var _b = new Map([ ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] - ]); //#10110 - $_.versions = _a; //#10112 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10112 - bwipp_code2of5.__10113__ = 1; //#10112 - $_ = Object.getPrototypeOf($_); //#10112 - } //#10112 - var _e = $get($_.versions, $_.version) !== undefined; //#10115 - if (!_e) { //#10117 - $k[$j++] = 'bwipp.code2of5badVersion#10116'; //#10116 - $k[$j++] = "Unrecognised Code 25 version"; //#10116 - bwipp_raiseerror(); //#10116 - } //#10116 - $_.encs = $get($_.versions, $_.version); //#10118 - $_.cs = $get($_.encs, 0).length; //#10120 - $k[$j++] = 'cw'; //#10121 - $k[$j++] = 0; //#10121 - $forall($get($_.encs, 0), function() { //#10121 - var _m = $k[--$j]; //#10121 - var _n = $k[--$j]; //#10121 - $k[$j++] = $f(_n + $f(_m - 48)); //#10121 - }); //#10121 - var _o = $k[--$j]; //#10121 - $_[$k[--$j]] = _o; //#10121 - $_.ss = $get($_.encs, 10).length; //#10122 - $k[$j++] = 'sw'; //#10123 - $k[$j++] = 0; //#10123 - $forall($get($_.encs, 10), function() { //#10123 - var _u = $k[--$j]; //#10123 - var _v = $k[--$j]; //#10123 - $k[$j++] = $f(_v + $f(_u - 48)); //#10123 - }); //#10123 - var _w = $k[--$j]; //#10123 - $_[$k[--$j]] = _w; //#10123 - $_.es = $get($_.encs, 11).length; //#10124 - if (!bwipp_code2of5.__10129__) { //#10129 - $_ = Object.create($_); //#10129 - $_.barchars = "0123456789"; //#10128 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10128 - bwipp_code2of5.__10129__ = 1; //#10128 - $_ = Object.getPrototypeOf($_); //#10128 - } //#10128 - $k[$j++] = 'sbs'; //#10131 - $k[$j++] = $_.barlen; //#10131 - if ($_.includecheck) { //#10131 - var _13 = $k[--$j]; //#10131 - $k[$j++] = $f(_13 + 1); //#10131 - } //#10131 - var _18 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10131 - $_[$k[--$j]] = _18; //#10131 - $k[$j++] = 'txt'; //#10132 - $k[$j++] = $_.barlen; //#10132 - if ($_.includecheck) { //#10132 - var _1C = $k[--$j]; //#10132 - $k[$j++] = $f(_1C + 1); //#10132 - } //#10132 - var _1E = $a($k[--$j]); //#10132 - $_[$k[--$j]] = _1E; //#10132 - $puti($_.sbs, 0, $get($_.encs, 10)); //#10135 - for (var _1L = 0, _1K = $f($_.barlen - 1); _1L <= _1K; _1L += 1) { //#10146 - $_.i = _1L; //#10137 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10139 - $j--; //#10140 - $_.indx = $k[--$j].length; //#10141 - $j -= 2; //#10142 - $_.enc = $get($_.encs, $_.indx); //#10143 - $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10144 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10145 - } //#10145 - if ($_.includecheck) { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10150 - $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10151 - if ($_.includecheckintext) { //#10155 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10153 - } else { //#10155 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10155 - } //#10155 - } else { //#10158 - $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10158 - } //#10158 - $k[$j++] = Infinity; //#10170 - $k[$j++] = Infinity; //#10164 - $forall($_.sbs, function() { //#10164 - var _2T = $k[--$j]; //#10164 - $k[$j++] = $f(_2T - 48); //#10164 - }); //#10164 - var _2U = $a(); //#10164 - $k[$j++] = Infinity; //#10165 - for (var _2W = 0, _2X = ~~(($_.sbs.length + 1) / 2); _2W < _2X; _2W++) { //#10165 - $k[$j++] = $_.height; //#10165 - } //#10165 - var _2Z = $a(); //#10165 - $k[$j++] = Infinity; //#10166 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10166 - $k[$j++] = 0; //#10166 - } //#10166 - var _2d = $a(); //#10166 - $k[$j++] = 'ren'; //#10169 - $k[$j++] = bwipp_renlinear; //#10169 - $k[$j++] = 'sbs'; //#10169 - $k[$j++] = _2U; //#10169 - $k[$j++] = 'bhs'; //#10169 - $k[$j++] = _2Z; //#10169 - $k[$j++] = 'bbs'; //#10169 - $k[$j++] = _2d; //#10169 - if ($_.includetext) { //#10169 - $k[$j++] = 'txt'; //#10168 - $k[$j++] = $_.txt; //#10168 - } //#10168 - $k[$j++] = 'opt'; //#10170 - $k[$j++] = $_.options; //#10170 - var _2h = $d(); //#10170 - $k[$j++] = _2h; //#10173 - if (!$_.dontdraw) { //#10173 - bwipp_renlinear(); //#10173 - } //#10173 - $_ = Object.getPrototypeOf($_); //#10175 - $_ = Object.getPrototypeOf($_); //#10177 -} - + ]); //#10270 + $_.versions = _b; //#10272 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10272 + bwipp_code2of5.__10273__ = 1; //#10272 + $_ = Object.getPrototypeOf($_); //#10272 + } //#10272 + var _f = $get($_.versions, $_.version) !== undefined; //#10275 + if (!_f) { //#10277 + $k[$j++] = 'bwipp.code2of5badVersion#10276'; //#10276 + $k[$j++] = "Unrecognised Code 25 version"; //#10276 + bwipp_raiseerror(); //#10276 + } //#10276 + $_.encs = $get($_.versions, $_.version); //#10278 + $_.cs = $get($_.encs, 0).length; //#10280 + $k[$j++] = 'cw'; //#10281 + $k[$j++] = 0; //#10281 + $forall($get($_.encs, 0), function() { //#10281 + var _n = $k[--$j]; //#10281 + var _o = $k[--$j]; //#10281 + $k[$j++] = $f(_o + $f(_n - 48)); //#10281 + }); //#10281 + var _p = $k[--$j]; //#10281 + $_[$k[--$j]] = _p; //#10281 + $_.ss = $get($_.encs, 10).length; //#10282 + $k[$j++] = 'sw'; //#10283 + $k[$j++] = 0; //#10283 + $forall($get($_.encs, 10), function() { //#10283 + var _v = $k[--$j]; //#10283 + var _w = $k[--$j]; //#10283 + $k[$j++] = $f(_w + $f(_v - 48)); //#10283 + }); //#10283 + var _x = $k[--$j]; //#10283 + $_[$k[--$j]] = _x; //#10283 + var _10 = $get($_.encs, 11); //#10284 + $_.es = _10.length; //#10284 + if (!bwipp_code2of5.__10289__) { //#10289 + $_ = Object.create($_); //#10289 + $_.barchars = "0123456789"; //#10288 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code2of5.$ctx[id] = $_[id]); //#10288 + bwipp_code2of5.__10289__ = 1; //#10288 + $_ = Object.getPrototypeOf($_); //#10288 + } //#10288 + $k[$j++] = 'sbs'; //#10291 + $k[$j++] = $_.barlen; //#10291 + if ($_.includecheck) { //#10291 + var _14 = $k[--$j]; //#10291 + $k[$j++] = $f(_14 + 1); //#10291 + } //#10291 + var _19 = $s($f(($f(($k[--$j] * $_.cs) + $_.ss)) + $_.es)); //#10291 + $_[$k[--$j]] = _19; //#10291 + $k[$j++] = 'txt'; //#10292 + $k[$j++] = $_.barlen; //#10292 + if ($_.includecheck) { //#10292 + var _1D = $k[--$j]; //#10292 + $k[$j++] = $f(_1D + 1); //#10292 + } //#10292 + var _1F = $a($k[--$j]); //#10292 + $_[$k[--$j]] = _1F; //#10292 + $puti($_.sbs, 0, $get($_.encs, 10)); //#10295 + for (var _1M = 0, _1L = $f($_.barlen - 1); _1M <= _1L; _1M += 1) { //#10306 + $_.i = _1M; //#10297 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#10299 + $j--; //#10300 + $_.indx = $k[--$j].length; //#10301 + $j -= 2; //#10302 + $_.enc = $get($_.encs, $_.indx); //#10303 + $puti($_.sbs, ($_.i * $_.cs) + $_.ss, $_.enc); //#10304 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $f(($_.i * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10305 + } //#10305 + if ($_.includecheck) { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, $_.checksum)); //#10310 + $puti($_.sbs, $f(($f(($_.barlen * $_.cs) + $_.cs)) + $_.ss), $get($_.encs, 11)); //#10311 + if ($_.includecheckintext) { //#10315 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10313 + } else { //#10315 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * $_.cw) + $_.sw), $_.textyoffset, $_.textfont, $_.textsize])); //#10315 + } //#10315 + } else { //#10318 + $puti($_.sbs, $f(($_.barlen * $_.cs) + $_.ss), $get($_.encs, 11)); //#10318 + } //#10318 + $k[$j++] = Infinity; //#10322 + $k[$j++] = Infinity; //#10324 + $forall($_.sbs, function() { //#10324 + var _2U = $k[--$j]; //#10324 + $k[$j++] = $f(_2U - 48); //#10324 + }); //#10324 + var _2V = $a(); //#10324 + $k[$j++] = Infinity; //#10325 + for (var _2X = 0, _2Y = ~~(($_.sbs.length + 1) / 2); _2X < _2Y; _2X++) { //#10325 + $k[$j++] = $_.height; //#10325 + } //#10325 + var _2a = $a(); //#10325 + $k[$j++] = Infinity; //#10326 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10326 + $k[$j++] = 0; //#10326 + } //#10326 + var _2e = $a(); //#10326 + $k[$j++] = 'ren'; //#10329 + $k[$j++] = bwipp_renlinear; //#10329 + $k[$j++] = 'sbs'; //#10329 + $k[$j++] = _2V; //#10329 + $k[$j++] = 'bhs'; //#10329 + $k[$j++] = _2a; //#10329 + $k[$j++] = 'bbs'; //#10329 + $k[$j++] = _2e; //#10329 + if ($_.includetext) { //#10329 + $k[$j++] = 'txt'; //#10328 + $k[$j++] = $_.txt; //#10328 + } //#10328 + $k[$j++] = 'opt'; //#10330 + $k[$j++] = $_.options; //#10330 + var _2i = $d(); //#10330 + $k[$j++] = _2i; //#10333 + if (!$_.dontdraw) { //#10333 + bwipp_renlinear(); //#10333 + } //#10333 + $_ = Object.getPrototypeOf($_); //#10335 + $_ = Object.getPrototypeOf($_); //#10337 +} //bwipp_code2of5 function bwipp_industrial2of5() { - $_ = Object.create($_); //#10206 - $_.dontdraw = false; //#10209 - $k[$j++] = $_; //#10211 - bwipp_processoptions(); //#10211 - $_.options = $k[--$j]; //#10211 - $_.barcode = $k[--$j]; //#10212 - $put($_.options, "dontdraw", true); //#10215 - $put($_.options, "version", "industrial"); //#10216 - $k[$j++] = 'args'; //#10218 - $k[$j++] = $_.barcode; //#10218 - $k[$j++] = $_.options; //#10218 - bwipp_code2of5(); //#10218 - var _6 = $k[--$j]; //#10218 - $_[$k[--$j]] = _6; //#10218 - $put($_.args, "opt", $_.options); //#10220 - $k[$j++] = $_.args; //#10223 - if (!$_.dontdraw) { //#10223 - bwipp_renlinear(); //#10223 - } //#10223 - $_ = Object.getPrototypeOf($_); //#10225 -} - + $_ = Object.create($_); //#10366 + $_.dontdraw = false; //#10369 + $k[$j++] = $_; //#10371 + bwipp_processoptions(); //#10371 + $_.options = $k[--$j]; //#10371 + $_.barcode = $k[--$j]; //#10372 + $put($_.options, "dontdraw", true); //#10375 + $put($_.options, "version", "industrial"); //#10376 + $k[$j++] = 'args'; //#10378 + $k[$j++] = $_.barcode; //#10378 + $k[$j++] = $_.options; //#10378 + bwipp_code2of5(); //#10378 + var _6 = $k[--$j]; //#10378 + $_[$k[--$j]] = _6; //#10378 + $put($_.args, "opt", $_.options); //#10380 + $k[$j++] = $_.args; //#10383 + if (!$_.dontdraw) { //#10383 + bwipp_renlinear(); //#10383 + } //#10383 + $_ = Object.getPrototypeOf($_); //#10385 +} //bwipp_industrial2of5 function bwipp_iata2of5() { - $_ = Object.create($_); //#10254 - $_.dontdraw = false; //#10257 - $k[$j++] = $_; //#10259 - bwipp_processoptions(); //#10259 - $_.options = $k[--$j]; //#10259 - $_.barcode = $k[--$j]; //#10260 - $put($_.options, "dontdraw", true); //#10263 - $put($_.options, "version", "iata"); //#10264 - $k[$j++] = 'args'; //#10266 - $k[$j++] = $_.barcode; //#10266 - $k[$j++] = $_.options; //#10266 - bwipp_code2of5(); //#10266 - var _6 = $k[--$j]; //#10266 - $_[$k[--$j]] = _6; //#10266 - $put($_.args, "opt", $_.options); //#10268 - $k[$j++] = $_.args; //#10271 - if (!$_.dontdraw) { //#10271 - bwipp_renlinear(); //#10271 - } //#10271 - $_ = Object.getPrototypeOf($_); //#10273 -} - + $_ = Object.create($_); //#10414 + $_.dontdraw = false; //#10417 + $k[$j++] = $_; //#10419 + bwipp_processoptions(); //#10419 + $_.options = $k[--$j]; //#10419 + $_.barcode = $k[--$j]; //#10420 + $put($_.options, "dontdraw", true); //#10423 + $put($_.options, "version", "iata"); //#10424 + $k[$j++] = 'args'; //#10426 + $k[$j++] = $_.barcode; //#10426 + $k[$j++] = $_.options; //#10426 + bwipp_code2of5(); //#10426 + var _6 = $k[--$j]; //#10426 + $_[$k[--$j]] = _6; //#10426 + $put($_.args, "opt", $_.options); //#10428 + $k[$j++] = $_.args; //#10431 + if (!$_.dontdraw) { //#10431 + bwipp_renlinear(); //#10431 + } //#10431 + $_ = Object.getPrototypeOf($_); //#10433 +} //bwipp_iata2of5 function bwipp_matrix2of5() { - $_ = Object.create($_); //#10302 - $_.dontdraw = false; //#10305 - $k[$j++] = $_; //#10307 - bwipp_processoptions(); //#10307 - $_.options = $k[--$j]; //#10307 - $_.barcode = $k[--$j]; //#10308 - $put($_.options, "dontdraw", true); //#10311 - $put($_.options, "version", "matrix"); //#10312 - $k[$j++] = 'args'; //#10314 - $k[$j++] = $_.barcode; //#10314 - $k[$j++] = $_.options; //#10314 - bwipp_code2of5(); //#10314 - var _6 = $k[--$j]; //#10314 - $_[$k[--$j]] = _6; //#10314 - $put($_.args, "opt", $_.options); //#10316 - $k[$j++] = $_.args; //#10319 - if (!$_.dontdraw) { //#10319 - bwipp_renlinear(); //#10319 - } //#10319 - $_ = Object.getPrototypeOf($_); //#10321 -} - + $_ = Object.create($_); //#10462 + $_.dontdraw = false; //#10465 + $k[$j++] = $_; //#10467 + bwipp_processoptions(); //#10467 + $_.options = $k[--$j]; //#10467 + $_.barcode = $k[--$j]; //#10468 + $put($_.options, "dontdraw", true); //#10471 + $put($_.options, "version", "matrix"); //#10472 + $k[$j++] = 'args'; //#10474 + $k[$j++] = $_.barcode; //#10474 + $k[$j++] = $_.options; //#10474 + bwipp_code2of5(); //#10474 + var _6 = $k[--$j]; //#10474 + $_[$k[--$j]] = _6; //#10474 + $put($_.args, "opt", $_.options); //#10476 + $k[$j++] = $_.args; //#10479 + if (!$_.dontdraw) { //#10479 + bwipp_renlinear(); //#10479 + } //#10479 + $_ = Object.getPrototypeOf($_); //#10481 +} //bwipp_matrix2of5 function bwipp_coop2of5() { - $_ = Object.create($_); //#10350 - $_.dontdraw = false; //#10353 - $k[$j++] = $_; //#10355 - bwipp_processoptions(); //#10355 - $_.options = $k[--$j]; //#10355 - $_.barcode = $k[--$j]; //#10356 - $put($_.options, "dontdraw", true); //#10359 - $put($_.options, "version", "coop"); //#10360 - $k[$j++] = 'args'; //#10362 - $k[$j++] = $_.barcode; //#10362 - $k[$j++] = $_.options; //#10362 - bwipp_code2of5(); //#10362 - var _6 = $k[--$j]; //#10362 - $_[$k[--$j]] = _6; //#10362 - $put($_.args, "opt", $_.options); //#10364 - $k[$j++] = $_.args; //#10367 - if (!$_.dontdraw) { //#10367 - bwipp_renlinear(); //#10367 - } //#10367 - $_ = Object.getPrototypeOf($_); //#10369 -} - + $_ = Object.create($_); //#10510 + $_.dontdraw = false; //#10513 + $k[$j++] = $_; //#10515 + bwipp_processoptions(); //#10515 + $_.options = $k[--$j]; //#10515 + $_.barcode = $k[--$j]; //#10516 + $put($_.options, "dontdraw", true); //#10519 + $put($_.options, "version", "coop"); //#10520 + $k[$j++] = 'args'; //#10522 + $k[$j++] = $_.barcode; //#10522 + $k[$j++] = $_.options; //#10522 + bwipp_code2of5(); //#10522 + var _6 = $k[--$j]; //#10522 + $_[$k[--$j]] = _6; //#10522 + $put($_.args, "opt", $_.options); //#10524 + $k[$j++] = $_.args; //#10527 + if (!$_.dontdraw) { //#10527 + bwipp_renlinear(); //#10527 + } //#10527 + $_ = Object.getPrototypeOf($_); //#10529 +} //bwipp_coop2of5 function bwipp_datalogic2of5() { - $_ = Object.create($_); //#10398 - $_.dontdraw = false; //#10401 - $k[$j++] = $_; //#10403 - bwipp_processoptions(); //#10403 - $_.options = $k[--$j]; //#10403 - $_.barcode = $k[--$j]; //#10404 - $put($_.options, "dontdraw", true); //#10407 - $put($_.options, "version", "datalogic"); //#10408 - $k[$j++] = 'args'; //#10410 - $k[$j++] = $_.barcode; //#10410 - $k[$j++] = $_.options; //#10410 - bwipp_code2of5(); //#10410 - var _6 = $k[--$j]; //#10410 - $_[$k[--$j]] = _6; //#10410 - $put($_.args, "opt", $_.options); //#10412 - $k[$j++] = $_.args; //#10415 - if (!$_.dontdraw) { //#10415 - bwipp_renlinear(); //#10415 - } //#10415 - $_ = Object.getPrototypeOf($_); //#10417 -} - + $_ = Object.create($_); //#10558 + $_.dontdraw = false; //#10561 + $k[$j++] = $_; //#10563 + bwipp_processoptions(); //#10563 + $_.options = $k[--$j]; //#10563 + $_.barcode = $k[--$j]; //#10564 + $put($_.options, "dontdraw", true); //#10567 + $put($_.options, "version", "datalogic"); //#10568 + $k[$j++] = 'args'; //#10570 + $k[$j++] = $_.barcode; //#10570 + $k[$j++] = $_.options; //#10570 + bwipp_code2of5(); //#10570 + var _6 = $k[--$j]; //#10570 + $_[$k[--$j]] = _6; //#10570 + $put($_.args, "opt", $_.options); //#10572 + $k[$j++] = $_.args; //#10575 + if (!$_.dontdraw) { //#10575 + bwipp_renlinear(); //#10575 + } //#10575 + $_ = Object.getPrototypeOf($_); //#10577 +} //bwipp_datalogic2of5 function bwipp_code11() { - $_ = Object.create($_); //#10447 - $_.dontdraw = false; //#10450 - $_.includecheck = false; //#10451 - $_.validatecheck = false; //#10452 - $_.includetext = false; //#10453 - $_.includecheckintext = false; //#10454 - $_.textfont = "OCR-B"; //#10455 - $_.textsize = 10; //#10456 - $_.textyoffset = -8; //#10457 - $_.height = 1; //#10458 - $k[$j++] = $_; //#10460 - bwipp_processoptions(); //#10460 - $_.options = $k[--$j]; //#10460 - var _1 = $k[--$j]; //#10461 - $_.barcode = _1; //#10461 - bwipp_loadctx(bwipp_code11) //#10463 - if (!bwipp_code11.__10477__) { //#10477 - $_ = Object.create($_); //#10477 - $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10471 - $_.barchars = "0123456789-"; //#10474 - $_.charvals = new Map; //#10475 - for (var _3 = 0; _3 <= 10; _3 += 1) { //#10476 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10476 - } //#10476 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10476 - bwipp_code11.__10477__ = 1; //#10476 - $_ = Object.getPrototypeOf($_); //#10476 - } //#10476 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10484 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10481 - if (!_E) { //#10483 - $k[$j++] = 'bwipp.code11badCharacter#10482'; //#10482 - $k[$j++] = "Code 11 must contain only digits and dashes"; //#10482 - bwipp_raiseerror(); //#10482 - } //#10482 - } //#10482 - $_.barlen = $_.barcode.length; //#10486 - if ($_.validatecheck) { //#10492 - if ($_.barlen == 11) { //#10490 - $k[$j++] = 'bwipp.code11badLength#10489'; //#10489 - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10489 - bwipp_raiseerror(); //#10489 - } //#10489 - var _K = ($_.barlen <= 10) ? 1 : 2; //#10491 - $_.barlen = $_.barlen - _K; //#10491 - } //#10491 - $k[$j++] = 'numchecks'; //#10494 - if ($_.includecheck || $_.validatecheck) { //#10494 - var _O = ($_.barlen >= 10) ? 2 : 1; //#10494 - $k[$j++] = _O; //#10494 - } else { //#10494 - $k[$j++] = 0; //#10494 - } //#10494 - var _P = $k[--$j]; //#10494 - $_[$k[--$j]] = _P; //#10494 - $_.checksum1 = 0; //#10495 - $_.checksum2 = 0; //#10495 - for (var _T = 0, _S = $_.barlen - 1; _T <= _S; _T += 1) { //#10501 - $_.i = _T; //#10497 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10498 - $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10499 - $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10500 - } //#10500 - $_.checksum1 = $_.checksum1 % 11; //#10502 - $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10503 - if ($_.validatecheck) { //#10517 - if ($_.numchecks == 1) { //#10512 - var _r = $get($_.barchars, $_.checksum1); //#10506 - if ($get($_.barcode, $_.barlen) != _r) { //#10508 - $k[$j++] = 'bwipp.code11badCheckDigit#10507'; //#10507 - $k[$j++] = "Incorrect Code 11 check digit provided"; //#10507 - bwipp_raiseerror(); //#10507 - } //#10507 - } else { //#10512 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10513 - $k[$j++] = 'bwipp.code11badCheckDigits#10512'; //#10512 - $k[$j++] = "Incorrect Code 11 check digits provided"; //#10512 - bwipp_raiseerror(); //#10512 - } //#10512 - } //#10512 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10515 - $_.includecheck = true; //#10516 - } //#10516 - $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10519 - $_.txt = $a($f($_.barlen + $_.numchecks)); //#10520 - $puti($_.sbs, 0, $get($_.encs, 11)); //#10523 - $_.xpos = 8; //#10525 - for (var _1I = 0, _1H = $_.barlen - 1; _1I <= _1H; _1I += 1) { //#10535 - $_.i = _1I; //#10527 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10528 - $_.enc = $get($_.encs, $_.indx); //#10529 - $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10530 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10531 - for (var _1e = 0; _1e <= 5; _1e += 1) { //#10534 - $_.xpos = $f($f($get($_.enc, _1e) - 48) + $_.xpos); //#10533 - } //#10533 - } //#10533 - if ($_.includecheck) { //#10564 - if ($_.barlen >= 10) { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10540 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10541 - if ($_.includecheckintext) { //#10551 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10543 - $_.enc = $get($_.encs, $_.checksum1); //#10544 - for (var _28 = 0; _28 <= 5; _28 += 1) { //#10547 - $_.xpos = $f($f($get($_.enc, _28) - 48) + $_.xpos); //#10546 - } //#10546 - $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10548 - } else { //#10551 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10550 - $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10551 - } //#10551 - $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10553 - } else { //#10561 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10555 - if ($_.includecheckintext) { //#10559 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10557 - } else { //#10559 - $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10559 - } //#10559 - $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10561 - } //#10561 - } else { //#10564 - $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10564 - } //#10564 - $k[$j++] = Infinity; //#10576 - $k[$j++] = Infinity; //#10570 - var _39 = $_.sbs; //#10570 - for (var _3A = 0, _3B = _39.length; _3A < _3B; _3A++) { //#10570 - $k[$j++] = $get(_39, _3A) - 48; //#10570 - } //#10570 - var _3D = $a(); //#10570 - $k[$j++] = Infinity; //#10571 - for (var _3F = 0, _3G = ~~(($_.sbs.length + 1) / 2); _3F < _3G; _3F++) { //#10571 - $k[$j++] = $_.height; //#10571 - } //#10571 - var _3I = $a(); //#10571 - $k[$j++] = Infinity; //#10572 - for (var _3K = 0, _3L = ~~(($_.sbs.length + 1) / 2); _3K < _3L; _3K++) { //#10572 - $k[$j++] = 0; //#10572 - } //#10572 - var _3M = $a(); //#10572 - $k[$j++] = 'ren'; //#10575 - $k[$j++] = bwipp_renlinear; //#10575 - $k[$j++] = 'sbs'; //#10575 - $k[$j++] = _3D; //#10575 - $k[$j++] = 'bhs'; //#10575 - $k[$j++] = _3I; //#10575 - $k[$j++] = 'bbs'; //#10575 - $k[$j++] = _3M; //#10575 - if ($_.includetext) { //#10575 - $k[$j++] = 'txt'; //#10574 - $k[$j++] = $_.txt; //#10574 - } //#10574 - $k[$j++] = 'opt'; //#10576 - $k[$j++] = $_.options; //#10576 - var _3Q = $d(); //#10576 - $k[$j++] = _3Q; //#10579 - if (!$_.dontdraw) { //#10579 - bwipp_renlinear(); //#10579 - } //#10579 - $_ = Object.getPrototypeOf($_); //#10581 - $_ = Object.getPrototypeOf($_); //#10583 -} - -function bwipp_bc412() { - $_ = Object.create($_); //#10613 - $_.dontdraw = false; //#10616 - $_.includecheck = false; //#10617 - $_.validatecheck = false; //#10618 - $_.includetext = false; //#10619 - $_.includecheckintext = false; //#10620 - $_.includestartstop = false; //#10621 - $_.semi = false; //#10622 - $_.textfont = "OCR-B"; //#10623 - $_.textsize = 10; //#10624 - $_.textyoffset = -8; //#10625 - $_.height = 1; //#10626 - $k[$j++] = $_; //#10628 - bwipp_processoptions(); //#10628 - $_.options = $k[--$j]; //#10628 - $_.barcode = $k[--$j]; //#10629 - if ($_.semi) { //#10634 - $_.includestartstop = true; //#10633 - } //#10633 - bwipp_loadctx(bwipp_bc412) //#10636 - if (!bwipp_bc412.__10643__) { //#10643 - $_ = Object.create($_); //#10643 - $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10640 - $_.charvals = new Map; //#10641 - for (var _3 = 0; _3 <= 34; _3 += 1) { //#10642 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#10642 - } //#10642 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10642 - bwipp_bc412.__10643__ = 1; //#10642 - $_ = Object.getPrototypeOf($_); //#10642 - } //#10642 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#10650 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#10647 - if (!_E) { //#10649 - $k[$j++] = 'bwipp.bc412badCharacter#10648'; //#10648 - $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10648 - bwipp_raiseerror(); //#10648 - } //#10648 - } //#10648 - if ($_.semi) { //#10706 - if ($_.validatecheck) { //#10660 - if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10657 - $k[$j++] = 'bwipp.bc412semivalidateBadLength#10656'; //#10656 - $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10656 - bwipp_raiseerror(); //#10656 - } //#10656 - } else { //#10660 - if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10661 - $k[$j++] = 'bwipp.bc412semiBadLength#10660'; //#10660 - $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10660 - bwipp_raiseerror(); //#10660 - } //#10660 - } //#10660 - $_.barlen = $_.barcode.length; //#10664 - if (!$_.validatecheck) { //#10672 - $_.barlen = $_.barlen + 1; //#10666 - $_.sbarcode = $s($_.barlen); //#10667 - $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10668 - $put($_.sbarcode, 1, 48); //#10669 - $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10670 - $_.barcode = $_.sbarcode; //#10671 - } //#10671 - $_.sumodd = 0; //#10673 - $_.sumeven = 0; //#10673 - for (var _b = 0, _a = $_.barlen - 1; _b <= _a; _b += 1) { //#10682 - $_.i = _b; //#10675 - $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10681 - if (($_.i % 2) == 0) { //#10680 - $_.sumodd = $f($k[--$j] + $_.sumodd); //#10678 - } else { //#10680 - $_.sumeven = $f($k[--$j] + $_.sumeven); //#10680 - } //#10680 - } //#10680 - $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10683 - if ($_.validatecheck) { //#10690 - if ($_.checksum != 0) { //#10687 - $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10686'; //#10686 - $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10686 - bwipp_raiseerror(); //#10686 - } //#10686 - } else { //#10690 - $_.checksum = ($_.checksum * 17) % 35; //#10689 - $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10690 - } //#10690 - } else { //#10706 - $k[$j++] = 'barlen'; //#10693 - $k[$j++] = $_.barcode.length; //#10693 - if ($_.validatecheck) { //#10693 - var _x = $k[--$j]; //#10693 - $k[$j++] = $f(_x - 1); //#10693 - } //#10693 - var _y = $k[--$j]; //#10693 - $_[$k[--$j]] = _y; //#10693 - $_.checksum = 0; //#10695 - for (var _12 = 0, _11 = $_.barlen - 1; _12 <= _11; _12 += 1) { //#10699 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _12, 1)) + $_.checksum); //#10698 - } //#10698 - $_.checksum = $_.checksum % 35; //#10700 - if ($_.validatecheck) { //#10707 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10704 - $k[$j++] = 'bwipp.bc412badCheckDigit#10703'; //#10703 - $k[$j++] = "Incorrect BC412 check digit provided"; //#10703 - bwipp_raiseerror(); //#10703 - } //#10703 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10705 - $_.includecheck = true; //#10706 - } //#10706 - } //#10706 - if (!bwipp_bc412.__10722__) { //#10722 - $_ = Object.create($_); //#10722 - $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10721 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10721 - bwipp_bc412.__10722__ = 1; //#10721 - $_ = Object.getPrototypeOf($_); //#10721 - } //#10721 - $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10724 + $_ = Object.create($_); //#10607 + $_.dontdraw = false; //#10610 + $_.includecheck = false; //#10611 + $_.validatecheck = false; //#10612 + $_.includetext = false; //#10613 + $_.includecheckintext = false; //#10614 + $_.textfont = "OCR-B"; //#10615 + $_.textsize = 10; //#10616 + $_.textyoffset = -8; //#10617 + $_.height = 1; //#10618 + $k[$j++] = $_; //#10620 + bwipp_processoptions(); //#10620 + $_.options = $k[--$j]; //#10620 + $_.barcode = $k[--$j]; //#10621 + if ($eq($_.barcode, "")) { //#10625 + $k[$j++] = 'bwipp.code11emptyData#10624'; //#10624 + $k[$j++] = "The data must not be empty"; //#10624 + bwipp_raiseerror(); //#10624 + } //#10624 + bwipp_loadctx(bwipp_code11) //#10627 + if (!bwipp_code11.__10641__) { //#10641 + $_ = Object.create($_); //#10641 + $_.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#10635 + $_.barchars = "0123456789-"; //#10638 + $_.charvals = new Map; //#10639 + for (var _4 = 0; _4 <= 10; _4 += 1) { //#10640 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10640 + } //#10640 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code11.$ctx[id] = $_[id]); //#10640 + bwipp_code11.__10641__ = 1; //#10640 + $_ = Object.getPrototypeOf($_); //#10640 + } //#10640 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10648 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10645 + if (!_F) { //#10647 + $k[$j++] = 'bwipp.code11badCharacter#10646'; //#10646 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#10646 + bwipp_raiseerror(); //#10646 + } //#10646 + } //#10646 + $_.barlen = $_.barcode.length; //#10650 + if ($_.validatecheck) { //#10656 + if ($_.barlen == 11) { //#10654 + $k[$j++] = 'bwipp.code11badLength#10653'; //#10653 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#10653 + bwipp_raiseerror(); //#10653 + } //#10653 + var _L = ($_.barlen <= 10) ? 1 : 2; //#10655 + $_.barlen = $_.barlen - _L; //#10655 + } //#10655 + $k[$j++] = 'numchecks'; //#10658 + if ($_.includecheck || $_.validatecheck) { //#10658 + var _P = ($_.barlen >= 10) ? 2 : 1; //#10658 + $k[$j++] = _P; //#10658 + } else { //#10658 + $k[$j++] = 0; //#10658 + } //#10658 + var _Q = $k[--$j]; //#10658 + $_[$k[--$j]] = _Q; //#10658 + $_.checksum1 = 0; //#10659 + $_.checksum2 = 0; //#10659 + for (var _U = 0, _T = $_.barlen - 1; _U <= _T; _U += 1) { //#10665 + $_.i = _U; //#10661 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10662 + $_.checksum1 = $f($_.checksum1 + ((((($_.barlen - $_.i) - 1) % 10) + 1) * $_.indx)); //#10663 + $_.checksum2 = $f($_.checksum2 + (((($_.barlen - $_.i) % 9) + 1) * $_.indx)); //#10664 + } //#10664 + $_.checksum1 = $_.checksum1 % 11; //#10666 + $_.checksum2 = $f($_.checksum2 + $_.checksum1) % 11; //#10667 + if ($_.validatecheck) { //#10681 + if ($_.numchecks == 1) { //#10676 + var _r = $_.checksum1; //#10670 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, _r)) { //#10672 + $k[$j++] = 'bwipp.code11badCheckDigit#10671'; //#10671 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#10671 + bwipp_raiseerror(); //#10671 + } //#10671 + } else { //#10676 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $_.barlen + 1) != $get($_.barchars, $_.checksum2))) { //#10677 + $k[$j++] = 'bwipp.code11badCheckDigits#10676'; //#10676 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#10676 + bwipp_raiseerror(); //#10676 + } //#10676 + } //#10676 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10679 + $_.includecheck = true; //#10680 + } //#10680 + $_.sbs = $s($f(($f($_.barlen + $_.numchecks) * 6) + 12)); //#10683 + $_.txt = $a($f($_.barlen + $_.numchecks)); //#10684 + $puti($_.sbs, 0, $get($_.encs, 11)); //#10687 + $_.xpos = 8; //#10689 + for (var _1J = 0, _1I = $_.barlen - 1; _1J <= _1I; _1J += 1) { //#10699 + $_.i = _1J; //#10691 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10692 + $_.enc = $get($_.encs, $_.indx); //#10693 + $puti($_.sbs, ($_.i * 6) + 6, $_.enc); //#10694 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10695 + for (var _1f = 0; _1f <= 5; _1f += 1) { //#10698 + $_.xpos = $f($f($get($_.enc, _1f) - 48) + $_.xpos); //#10697 + } //#10697 + } //#10697 if ($_.includecheck) { //#10728 - $_.txt = $a($_.barlen + 1); //#10726 + if ($_.barlen >= 10) { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10704 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, $_.checksum2)); //#10705 + if ($_.includecheckintext) { //#10715 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10707 + $_.enc = $get($_.encs, $_.checksum1); //#10708 + for (var _29 = 0; _29 <= 5; _29 += 1) { //#10711 + $_.xpos = $f($f($get($_.enc, _29) - 48) + $_.xpos); //#10710 + } //#10710 + $put($_.txt, $_.barlen + 1, $a([$geti($_.barchars, $_.checksum2, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10712 + } else { //#10715 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10714 + $put($_.txt, $_.barlen + 1, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10715 + } //#10715 + $puti($_.sbs, ($_.barlen * 6) + 18, $get($_.encs, 11)); //#10717 + } else { //#10725 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, $_.checksum1)); //#10719 + if ($_.includecheckintext) { //#10723 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10721 + } else { //#10723 + $put($_.txt, $_.barlen, $a(["", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10723 + } //#10723 + $puti($_.sbs, ($_.barlen * 6) + 12, $get($_.encs, 11)); //#10725 + } //#10725 } else { //#10728 - $_.txt = $a($_.barlen); //#10728 + $puti($_.sbs, ($_.barlen * 6) + 6, $get($_.encs, 11)); //#10728 } //#10728 - if ($_.includestartstop) { //#10738 - $puti($_.sbs, 0, $get($_.encs, 35)); //#10733 - $_.pos = 2; //#10734 - $_.txtpos = 3; //#10735 - } else { //#10738 - $_.pos = 0; //#10737 - $_.txtpos = 0; //#10738 + $k[$j++] = Infinity; //#10732 + $k[$j++] = Infinity; //#10734 + var _3A = $_.sbs; //#10734 + for (var _3B = 0, _3C = _3A.length; _3B < _3C; _3B++) { //#10734 + $k[$j++] = $get(_3A, _3B) - 48; //#10734 + } //#10734 + var _3E = $a(); //#10734 + $k[$j++] = Infinity; //#10735 + for (var _3G = 0, _3H = ~~(($_.sbs.length + 1) / 2); _3G < _3H; _3G++) { //#10735 + $k[$j++] = $_.height; //#10735 + } //#10735 + var _3J = $a(); //#10735 + $k[$j++] = Infinity; //#10736 + for (var _3L = 0, _3M = ~~(($_.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#10736 + $k[$j++] = 0; //#10736 + } //#10736 + var _3N = $a(); //#10736 + $k[$j++] = 'ren'; //#10739 + $k[$j++] = bwipp_renlinear; //#10739 + $k[$j++] = 'sbs'; //#10739 + $k[$j++] = _3E; //#10739 + $k[$j++] = 'bhs'; //#10739 + $k[$j++] = _3J; //#10739 + $k[$j++] = 'bbs'; //#10739 + $k[$j++] = _3N; //#10739 + if ($_.includetext) { //#10739 + $k[$j++] = 'txt'; //#10738 + $k[$j++] = $_.txt; //#10738 } //#10738 - for (var _1Y = 0, _1X = $_.barlen - 1; _1Y <= _1X; _1Y += 1) { //#10747 - $_.i = _1Y; //#10742 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10743 - $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10744 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10745 - $_.pos = $_.pos + 8; //#10746 - } //#10746 - if ($_.includecheck) { //#10758 - $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10751 - if ($_.includecheckintext) { //#10755 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10753 - } else { //#10755 - $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10755 - } //#10755 - $_.pos = $_.pos + 8; //#10757 - } //#10757 - if ($_.includestartstop) { //#10764 - $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10762 - $_.pos = $_.pos + 3; //#10763 - } //#10763 - $_.sbs = $geti($_.sbs, 0, $_.pos); //#10767 - $k[$j++] = Infinity; //#10776 - $k[$j++] = Infinity; //#10770 - var _2V = $_.sbs; //#10770 - for (var _2W = 0, _2X = _2V.length; _2W < _2X; _2W++) { //#10770 - $k[$j++] = $f($get(_2V, _2W) - 48); //#10770 - } //#10770 - var _2Z = $a(); //#10770 - $k[$j++] = Infinity; //#10771 - for (var _2b = 0, _2c = ~~(($_.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#10771 - $k[$j++] = $_.height; //#10771 - } //#10771 - var _2e = $a(); //#10771 - $k[$j++] = Infinity; //#10772 - for (var _2g = 0, _2h = ~~(($_.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#10772 - $k[$j++] = 0; //#10772 - } //#10772 - var _2i = $a(); //#10772 - $k[$j++] = 'ren'; //#10775 - $k[$j++] = bwipp_renlinear; //#10775 - $k[$j++] = 'sbs'; //#10775 - $k[$j++] = _2Z; //#10775 - $k[$j++] = 'bhs'; //#10775 - $k[$j++] = _2e; //#10775 - $k[$j++] = 'bbs'; //#10775 - $k[$j++] = _2i; //#10775 - if ($_.includetext) { //#10775 - $k[$j++] = 'txt'; //#10774 - $k[$j++] = $_.txt; //#10774 - } //#10774 - $k[$j++] = 'opt'; //#10776 - $k[$j++] = $_.options; //#10776 - var _2m = $d(); //#10776 - $k[$j++] = _2m; //#10779 - if (!$_.dontdraw) { //#10779 - bwipp_renlinear(); //#10779 - } //#10779 - $_ = Object.getPrototypeOf($_); //#10781 - $_ = Object.getPrototypeOf($_); //#10783 -} - -function bwipp_rationalizedCodabar() { - $_ = Object.create($_); //#10813 - $_.dontdraw = false; //#10816 - $_.altstartstop = false; //#10817 - $_.includecheck = false; //#10818 - $_.validatecheck = false; //#10819 - $_.includetext = false; //#10820 - $_.includecheckintext = false; //#10821 - $_.textfont = "OCR-B"; //#10822 - $_.textsize = 10; //#10823 - $_.textyoffset = -8; //#10824 - $_.height = 1; //#10825 - $k[$j++] = $_; //#10827 - bwipp_processoptions(); //#10827 - $_.options = $k[--$j]; //#10827 - var _1 = $k[--$j]; //#10828 - $_.barcode = _1; //#10828 - bwipp_loadctx(bwipp_rationalizedCodabar) //#10830 - if (!bwipp_rationalizedCodabar.__10844__) { //#10844 - $_ = Object.create($_); //#10844 - $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#10839 - $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#10842 - $_.barcharsalt = "0123456789-$:/.+TN*E"; //#10843 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#10843 - bwipp_rationalizedCodabar.__10844__ = 1; //#10843 - $_ = Object.getPrototypeOf($_); //#10843 - } //#10843 - var _5 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#10846 - $_.barchars = _5; //#10846 - $_.charvals = new Map; //#10848 - for (var _6 = 0; _6 <= 19; _6 += 1) { //#10849 - $put($_.charvals, $geti($_.barchars, _6, 1), _6); //#10849 - } //#10849 - $_.bodyvals = new Map; //#10850 - for (var _A = 0; _A <= 15; _A += 1) { //#10851 - $put($_.bodyvals, $geti($_.barchars, _A, 1), _A); //#10851 - } //#10851 - $_.ssvals = new Map; //#10852 - for (var _E = 16; _E <= 19; _E += 1) { //#10853 - $put($_.ssvals, $geti($_.barchars, _E, 1), _E); //#10853 - } //#10853 - var _L = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#10856 - var _Q = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#10857 - if ((!_L) || (!_Q)) { //#10863 - if ($_.altstartstop) { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#10859'; //#10859 - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#10859 - bwipp_raiseerror(); //#10859 - } else { //#10861 - $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#10861'; //#10861 - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#10861 - bwipp_raiseerror(); //#10861 + $k[$j++] = 'opt'; //#10740 + $k[$j++] = $_.options; //#10740 + var _3R = $d(); //#10740 + $k[$j++] = _3R; //#10743 + if (!$_.dontdraw) { //#10743 + bwipp_renlinear(); //#10743 + } //#10743 + $_ = Object.getPrototypeOf($_); //#10745 + $_ = Object.getPrototypeOf($_); //#10747 +} //bwipp_code11 +function bwipp_bc412() { + $_ = Object.create($_); //#10777 + $_.dontdraw = false; //#10780 + $_.includecheck = false; //#10781 + $_.validatecheck = false; //#10782 + $_.includetext = false; //#10783 + $_.includecheckintext = false; //#10784 + $_.includestartstop = false; //#10785 + $_.semi = false; //#10786 + $_.textfont = "OCR-B"; //#10787 + $_.textsize = 10; //#10788 + $_.textyoffset = -8; //#10789 + $_.height = 1; //#10790 + $k[$j++] = $_; //#10792 + bwipp_processoptions(); //#10792 + $_.options = $k[--$j]; //#10792 + $_.barcode = $k[--$j]; //#10793 + if ($eq($_.barcode, "")) { //#10797 + $k[$j++] = 'bwipp.bc412emptyData#10796'; //#10796 + $k[$j++] = "The data must not be empty"; //#10796 + bwipp_raiseerror(); //#10796 + } //#10796 + if ($_.semi) { //#10802 + $_.includestartstop = true; //#10801 + } //#10801 + bwipp_loadctx(bwipp_bc412) //#10804 + if (!bwipp_bc412.__10811__) { //#10811 + $_ = Object.create($_); //#10811 + $_.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#10808 + $_.charvals = new Map; //#10809 + for (var _4 = 0; _4 <= 34; _4 += 1) { //#10810 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#10810 + } //#10810 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10810 + bwipp_bc412.__10811__ = 1; //#10810 + $_ = Object.getPrototypeOf($_); //#10810 + } //#10810 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#10818 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#10815 + if (!_F) { //#10817 + $k[$j++] = 'bwipp.bc412badCharacter#10816'; //#10816 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#10816 + bwipp_raiseerror(); //#10816 + } //#10816 + } //#10816 + if ($_.semi) { //#10874 + if ($_.validatecheck) { //#10828 + if (($_.barcode.length < 8) || ($_.barcode.length > 19)) { //#10825 + $k[$j++] = 'bwipp.bc412semivalidateBadLength#10824'; //#10824 + $k[$j++] = "BC412 semi with check digit must be 8 to 19 characters long"; //#10824 + bwipp_raiseerror(); //#10824 + } //#10824 + } else { //#10828 + if (($_.barcode.length < 7) || ($_.barcode.length > 18)) { //#10829 + $k[$j++] = 'bwipp.bc412semiBadLength#10828'; //#10828 + $k[$j++] = "BC412 semi must be 7 to 18 characters long"; //#10828 + bwipp_raiseerror(); //#10828 + } //#10828 + } //#10828 + $_.barlen = $_.barcode.length; //#10832 + if (!$_.validatecheck) { //#10840 + $_.barlen = $_.barlen + 1; //#10834 + $_.sbarcode = $s($_.barlen); //#10835 + $put($_.sbarcode, 0, $get($_.barcode, 0)); //#10836 + $put($_.sbarcode, 1, 48); //#10837 + $puti($_.sbarcode, 2, $geti($_.barcode, 1, $_.barlen - 2)); //#10838 + $_.barcode = $_.sbarcode; //#10839 + } //#10839 + $_.sumodd = 0; //#10841 + $_.sumeven = 0; //#10841 + for (var _c = 0, _b = $_.barlen - 1; _c <= _b; _c += 1) { //#10850 + $_.i = _c; //#10843 + $k[$j++] = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10849 + if (($_.i % 2) == 0) { //#10848 + $_.sumodd = $f($k[--$j] + $_.sumodd); //#10846 + } else { //#10848 + $_.sumeven = $f($k[--$j] + $_.sumeven); //#10848 + } //#10848 + } //#10848 + $_.checksum = ($f(($_.sumodd % 35) + (($_.sumeven % 35) * 2))) % 35; //#10851 + if ($_.validatecheck) { //#10858 + if ($_.checksum != 0) { //#10855 + $k[$j++] = 'bwipp.bc412semiBadCheckDigit#10854'; //#10854 + $k[$j++] = "Incorrect BC412 semi check digit provided"; //#10854 + bwipp_raiseerror(); //#10854 + } //#10854 + } else { //#10858 + $_.checksum = ($_.checksum * 17) % 35; //#10857 + $put($_.barcode, 1, $get($_.barchars, $_.checksum)); //#10858 + } //#10858 + } else { //#10874 + $k[$j++] = 'barlen'; //#10861 + $k[$j++] = $_.barcode.length; //#10861 + if ($_.validatecheck) { //#10861 + var _y = $k[--$j]; //#10861 + $k[$j++] = $f(_y - 1); //#10861 } //#10861 - } //#10861 - for (var _U = 1, _T = $_.barcode.length - 2; _U <= _T; _U += 1) { //#10868 - var _Y = $get($_.bodyvals, $geti($_.barcode, _U, 1)) !== undefined; //#10865 - if (!_Y) { //#10867 - $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#10866'; //#10866 - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#10866 - bwipp_raiseerror(); //#10866 + var _z = $k[--$j]; //#10861 + $_[$k[--$j]] = _z; //#10861 + $_.checksum = 0; //#10863 + for (var _13 = 0, _12 = $_.barlen - 1; _13 <= _12; _13 += 1) { //#10867 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _13, 1)) + $_.checksum); //#10866 } //#10866 - } //#10866 - $k[$j++] = 'barlen'; //#10870 - $k[$j++] = $_.barcode.length; //#10870 - if ($_.validatecheck) { //#10870 - var _b = $k[--$j]; //#10870 - $k[$j++] = $f(_b - 1); //#10870 - } //#10870 - var _c = $k[--$j]; //#10870 - $_[$k[--$j]] = _c; //#10870 - $_.checksum = 0; //#10872 - for (var _g = 0, _f = $f($_.barlen - 2); _g <= _f; _g += 1) { //#10876 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _g, 1)) + $_.checksum); //#10875 - } //#10875 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, $_.barcode.length - 1, 1)) + $_.checksum); //#10878 - $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#10879 - if ($_.validatecheck) { //#10889 - if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#10883 - $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#10882'; //#10882 - $k[$j++] = "Incorrect Codabar check digit provided"; //#10882 - bwipp_raiseerror(); //#10882 - } //#10882 - var _11 = $s($_.barlen); //#10884 - $puti(_11, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#10885 - $puti(_11, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#10886 - $_.barcode = _11; //#10887 - $_.includecheck = true; //#10888 - } //#10888 - $k[$j++] = 'sbs'; //#10891 - $k[$j++] = $_.barlen; //#10891 - if ($_.includecheck) { //#10891 - var _1B = $k[--$j]; //#10891 - $k[$j++] = $f(_1B + 1); //#10891 - } //#10891 - var _1D = $s($k[--$j] * 8); //#10891 - $_[$k[--$j]] = _1D; //#10891 - $k[$j++] = 'txt'; //#10892 - $k[$j++] = $_.barlen; //#10892 - if ($_.includecheck) { //#10892 - var _1H = $k[--$j]; //#10892 - $k[$j++] = $f(_1H + 1); //#10892 - } //#10892 - var _1J = $a($k[--$j]); //#10892 - $_[$k[--$j]] = _1J; //#10892 - $_.xpos = 0; //#10894 - for (var _1N = 0, _1M = $f($_.barlen - 2); _1N <= _1M; _1N += 1) { //#10904 - $_.i = _1N; //#10896 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10897 - $_.enc = $get($_.encs, $_.indx); //#10898 - $puti($_.sbs, $_.i * 8, $_.enc); //#10899 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10900 - for (var _1j = 0; _1j <= 7; _1j += 1) { //#10903 - $_.xpos = $f($f($get($_.enc, _1j) - 48) + $_.xpos); //#10902 - } //#10902 - } //#10902 - if ($_.includecheck) { //#10928 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#10909 - if ($_.includecheckintext) { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10911 - } else { //#10913 - $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 - } //#10913 - for (var _2B = 0; _2B <= 7; _2B += 1) { //#10917 - $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2B) - 48) + $_.xpos); //#10916 - } //#10916 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10919 - $_.enc = $get($_.encs, $_.indx); //#10920 - $puti($_.sbs, $_.barlen * 8, $_.enc); //#10921 - $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10922 - } else { //#10928 - $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#10925 - $_.enc = $get($_.encs, $_.indx); //#10926 - $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#10927 - $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10928 - } //#10928 - $k[$j++] = Infinity; //#10940 - $k[$j++] = Infinity; //#10934 - $forall($_.sbs, function() { //#10934 - var _2y = $k[--$j]; //#10934 - $k[$j++] = $f(_2y - 48); //#10934 - }); //#10934 - var _2z = $a(); //#10934 - $k[$j++] = Infinity; //#10935 - for (var _31 = 0, _32 = ~~(($_.sbs.length + 1) / 2); _31 < _32; _31++) { //#10935 - $k[$j++] = $_.height; //#10935 - } //#10935 - var _34 = $a(); //#10935 + $_.checksum = $_.checksum % 35; //#10868 + if ($_.validatecheck) { //#10875 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#10872 + $k[$j++] = 'bwipp.bc412badCheckDigit#10871'; //#10871 + $k[$j++] = "Incorrect BC412 check digit provided"; //#10871 + bwipp_raiseerror(); //#10871 + } //#10871 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#10873 + $_.includecheck = true; //#10874 + } //#10874 + } //#10874 + if (!bwipp_bc412.__10890__) { //#10890 + $_ = Object.create($_); //#10890 + $_.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111311", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#10889 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_bc412.$ctx[id] = $_[id]); //#10889 + bwipp_bc412.__10890__ = 1; //#10889 + $_ = Object.getPrototypeOf($_); //#10889 + } //#10889 + $_.sbs = $s((($_.barlen + 1) * 8) + 5); //#10892 + if ($_.includecheck) { //#10896 + $_.txt = $a($_.barlen + 1); //#10894 + } else { //#10896 + $_.txt = $a($_.barlen); //#10896 + } //#10896 + if ($_.includestartstop) { //#10906 + $puti($_.sbs, 0, $get($_.encs, 35)); //#10901 + $_.pos = 2; //#10902 + $_.txtpos = 3; //#10903 + } else { //#10906 + $_.pos = 0; //#10905 + $_.txtpos = 0; //#10906 + } //#10906 + for (var _1Z = 0, _1Y = $_.barlen - 1; _1Z <= _1Y; _1Z += 1) { //#10915 + $_.i = _1Z; //#10910 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#10911 + $puti($_.sbs, $_.pos, $get($_.encs, $_.indx)); //#10912 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10913 + $_.pos = $_.pos + 8; //#10914 + } //#10914 + if ($_.includecheck) { //#10926 + $puti($_.sbs, $_.pos, $get($_.encs, $_.checksum)); //#10919 + if ($_.includecheckintext) { //#10923 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10921 + } else { //#10923 + $put($_.txt, $_.barlen, $a(["", ($_.barlen * 12) + $_.txtpos, $_.textyoffset, $_.textfont, $_.textsize])); //#10923 + } //#10923 + $_.pos = $_.pos + 8; //#10925 + } //#10925 + if ($_.includestartstop) { //#10932 + $puti($_.sbs, $_.pos, $get($_.encs, 36)); //#10930 + $_.pos = $_.pos + 3; //#10931 + } //#10931 + $_.sbs = $geti($_.sbs, 0, $_.pos); //#10935 $k[$j++] = Infinity; //#10936 - for (var _36 = 0, _37 = ~~(($_.sbs.length + 1) / 2); _36 < _37; _36++) { //#10936 - $k[$j++] = 0; //#10936 - } //#10936 - var _38 = $a(); //#10936 - $k[$j++] = 'ren'; //#10939 - $k[$j++] = bwipp_renlinear; //#10939 - $k[$j++] = 'sbs'; //#10939 - $k[$j++] = _2z; //#10939 - $k[$j++] = 'bhs'; //#10939 - $k[$j++] = _34; //#10939 - $k[$j++] = 'bbs'; //#10939 - $k[$j++] = _38; //#10939 - if ($_.includetext) { //#10939 - $k[$j++] = 'txt'; //#10938 - $k[$j++] = $_.txt; //#10938 + $k[$j++] = Infinity; //#10938 + var _2W = $_.sbs; //#10938 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#10938 + $k[$j++] = $f($get(_2W, _2X) - 48); //#10938 } //#10938 - $k[$j++] = 'opt'; //#10940 - $k[$j++] = $_.options; //#10940 - var _3C = $d(); //#10940 - $k[$j++] = _3C; //#10943 - if (!$_.dontdraw) { //#10943 - bwipp_renlinear(); //#10943 - } //#10943 - $_ = Object.getPrototypeOf($_); //#10945 - $_ = Object.getPrototypeOf($_); //#10947 -} - + var _2a = $a(); //#10938 + $k[$j++] = Infinity; //#10939 + for (var _2c = 0, _2d = ~~(($_.sbs.length + 1) / 2); _2c < _2d; _2c++) { //#10939 + $k[$j++] = $_.height; //#10939 + } //#10939 + var _2f = $a(); //#10939 + $k[$j++] = Infinity; //#10940 + for (var _2h = 0, _2i = ~~(($_.sbs.length + 1) / 2); _2h < _2i; _2h++) { //#10940 + $k[$j++] = 0; //#10940 + } //#10940 + var _2j = $a(); //#10940 + $k[$j++] = 'ren'; //#10943 + $k[$j++] = bwipp_renlinear; //#10943 + $k[$j++] = 'sbs'; //#10943 + $k[$j++] = _2a; //#10943 + $k[$j++] = 'bhs'; //#10943 + $k[$j++] = _2f; //#10943 + $k[$j++] = 'bbs'; //#10943 + $k[$j++] = _2j; //#10943 + if ($_.includetext) { //#10943 + $k[$j++] = 'txt'; //#10942 + $k[$j++] = $_.txt; //#10942 + } //#10942 + $k[$j++] = 'opt'; //#10944 + $k[$j++] = $_.options; //#10944 + var _2n = $d(); //#10944 + $k[$j++] = _2n; //#10947 + if (!$_.dontdraw) { //#10947 + bwipp_renlinear(); //#10947 + } //#10947 + $_ = Object.getPrototypeOf($_); //#10949 + $_ = Object.getPrototypeOf($_); //#10951 +} //bwipp_bc412 +function bwipp_rationalizedCodabar() { + $_ = Object.create($_); //#10981 + $_.dontdraw = false; //#10984 + $_.altstartstop = false; //#10985 + $_.includecheck = false; //#10986 + $_.validatecheck = false; //#10987 + $_.includetext = false; //#10988 + $_.includecheckintext = false; //#10989 + $_.textfont = "OCR-B"; //#10990 + $_.textsize = 10; //#10991 + $_.textyoffset = -8; //#10992 + $_.height = 1; //#10993 + $k[$j++] = $_; //#10995 + bwipp_processoptions(); //#10995 + $_.options = $k[--$j]; //#10995 + $_.barcode = $k[--$j]; //#10996 + if (($_.barcode.length < 2) || (($_.barcode.length < 3) && $_.validatecheck)) { //#11000 + $k[$j++] = 'bwipp.rationalizedCodabarBadLength#10999'; //#10999 + $k[$j++] = "Codabar must be at least 2 characters in length excluding any check digit"; //#10999 + bwipp_raiseerror(); //#10999 + } //#10999 + bwipp_loadctx(bwipp_rationalizedCodabar) //#11002 + if (!bwipp_rationalizedCodabar.__11016__) { //#11016 + $_ = Object.create($_); //#11016 + $_.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#11011 + $_.barcharsnormal = "0123456789-$:/.+ABCD"; //#11014 + $_.barcharsalt = "0123456789-$:/.+TN*E"; //#11015 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_rationalizedCodabar.$ctx[id] = $_[id]); //#11015 + bwipp_rationalizedCodabar.__11016__ = 1; //#11015 + $_ = Object.getPrototypeOf($_); //#11015 + } //#11015 + var _8 = $_.altstartstop ? $_.barcharsalt : $_.barcharsnormal; //#11018 + $_.barchars = _8; //#11018 + $_.charvals = new Map; //#11020 + for (var _9 = 0; _9 <= 19; _9 += 1) { //#11021 + $put($_.charvals, $geti($_.barchars, _9, 1), _9); //#11021 + } //#11021 + $_.bodyvals = new Map; //#11022 + for (var _D = 0; _D <= 15; _D += 1) { //#11023 + $put($_.bodyvals, $geti($_.barchars, _D, 1), _D); //#11023 + } //#11023 + $_.ssvals = new Map; //#11024 + for (var _H = 16; _H <= 19; _H += 1) { //#11025 + $put($_.ssvals, $geti($_.barchars, _H, 1), _H); //#11025 + } //#11025 + var _O = $get($_.ssvals, $geti($_.barcode, 0, 1)) !== undefined; //#11028 + var _T = $get($_.ssvals, $geti($_.barcode, $_.barcode.length - 1, 1)) !== undefined; //#11029 + if ((!_O) || (!_T)) { //#11035 + if ($_.altstartstop) { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop#11031'; //#11031 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#11031 + bwipp_raiseerror(); //#11031 + } else { //#11033 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop#11033'; //#11033 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#11033 + bwipp_raiseerror(); //#11033 + } //#11033 + } //#11033 + for (var _X = 1, _W = $_.barcode.length - 2; _X <= _W; _X += 1) { //#11040 + var _b = $get($_.bodyvals, $geti($_.barcode, _X, 1)) !== undefined; //#11037 + if (!_b) { //#11039 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter#11038'; //#11038 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#11038 + bwipp_raiseerror(); //#11038 + } //#11038 + } //#11038 + $k[$j++] = 'barlen'; //#11042 + $k[$j++] = $_.barcode.length; //#11042 + if ($_.validatecheck) { //#11042 + var _e = $k[--$j]; //#11042 + $k[$j++] = $f(_e - 1); //#11042 + } //#11042 + var _f = $k[--$j]; //#11042 + $_[$k[--$j]] = _f; //#11042 + $_.checksum = 0; //#11044 + for (var _j = 0, _i = $f($_.barlen - 2); _j <= _i; _j += 1) { //#11048 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _j, 1)) + $_.checksum); //#11047 + } //#11047 + var _r = $geti($_.barcode, $_.barcode.length - 1, 1); //#11049 + $_.checksum = $f($get($_.charvals, _r) + $_.checksum); //#11050 + $_.checksum = ($f(16 - ($_.checksum % 16))) % 16; //#11051 + if ($_.validatecheck) { //#11061 + if ($get($_.barcode, $f($_.barlen - 1)) != $get($_.barchars, $_.checksum)) { //#11055 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit#11054'; //#11054 + $k[$j++] = "Incorrect Codabar check digit provided"; //#11054 + bwipp_raiseerror(); //#11054 + } //#11054 + var _14 = $s($_.barlen); //#11056 + $puti(_14, 0, $geti($_.barcode, 0, $f($_.barlen - 1))); //#11057 + $puti(_14, $f($_.barlen - 1), $geti($_.barcode, $_.barlen, 1)); //#11058 + $_.barcode = _14; //#11059 + $_.includecheck = true; //#11060 + } //#11060 + $k[$j++] = 'sbs'; //#11063 + $k[$j++] = $_.barlen; //#11063 + if ($_.includecheck) { //#11063 + var _1E = $k[--$j]; //#11063 + $k[$j++] = $f(_1E + 1); //#11063 + } //#11063 + var _1G = $s($k[--$j] * 8); //#11063 + $_[$k[--$j]] = _1G; //#11063 + $k[$j++] = 'txt'; //#11064 + $k[$j++] = $_.barlen; //#11064 + if ($_.includecheck) { //#11064 + var _1K = $k[--$j]; //#11064 + $k[$j++] = $f(_1K + 1); //#11064 + } //#11064 + var _1M = $a($k[--$j]); //#11064 + $_[$k[--$j]] = _1M; //#11064 + $_.xpos = 0; //#11066 + for (var _1Q = 0, _1P = $f($_.barlen - 2); _1Q <= _1P; _1Q += 1) { //#11076 + $_.i = _1Q; //#11068 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11069 + $_.enc = $get($_.encs, $_.indx); //#11070 + $puti($_.sbs, $_.i * 8, $_.enc); //#11071 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11072 + for (var _1m = 0; _1m <= 7; _1m += 1) { //#11075 + $_.xpos = $f($f($get($_.enc, _1m) - 48) + $_.xpos); //#11074 + } //#11074 + } //#11074 + if ($_.includecheck) { //#11100 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $get($_.encs, $_.checksum)); //#11081 + if ($_.includecheckintext) { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barchars, $_.checksum, 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11083 + } else { //#11085 + $put($_.txt, $f($_.barlen - 1), $a([" ", $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11085 + } //#11085 + for (var _2E = 0; _2E <= 7; _2E += 1) { //#11089 + $_.xpos = $f($f($get($get($_.encs, $_.checksum), _2E) - 48) + $_.xpos); //#11088 + } //#11088 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11091 + $_.enc = $get($_.encs, $_.indx); //#11092 + $puti($_.sbs, $_.barlen * 8, $_.enc); //#11093 + $put($_.txt, $_.barlen, $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11094 + } else { //#11100 + $_.indx = $get($_.charvals, $geti($_.barcode, $f($_.barlen - 1), 1)); //#11097 + $_.enc = $get($_.encs, $_.indx); //#11098 + $puti($_.sbs, $f(($_.barlen * 8) - 8), $_.enc); //#11099 + $put($_.txt, $f($_.barlen - 1), $a([$geti($_.barcode, $f($_.barlen - 1), 1), $_.xpos, $_.textyoffset, $_.textfont, $_.textsize])); //#11100 + } //#11100 + $k[$j++] = Infinity; //#11104 + $k[$j++] = Infinity; //#11106 + $forall($_.sbs, function() { //#11106 + var _31 = $k[--$j]; //#11106 + $k[$j++] = $f(_31 - 48); //#11106 + }); //#11106 + var _32 = $a(); //#11106 + $k[$j++] = Infinity; //#11107 + for (var _34 = 0, _35 = ~~(($_.sbs.length + 1) / 2); _34 < _35; _34++) { //#11107 + $k[$j++] = $_.height; //#11107 + } //#11107 + var _37 = $a(); //#11107 + $k[$j++] = Infinity; //#11108 + for (var _39 = 0, _3A = ~~(($_.sbs.length + 1) / 2); _39 < _3A; _39++) { //#11108 + $k[$j++] = 0; //#11108 + } //#11108 + var _3B = $a(); //#11108 + $k[$j++] = 'ren'; //#11111 + $k[$j++] = bwipp_renlinear; //#11111 + $k[$j++] = 'sbs'; //#11111 + $k[$j++] = _32; //#11111 + $k[$j++] = 'bhs'; //#11111 + $k[$j++] = _37; //#11111 + $k[$j++] = 'bbs'; //#11111 + $k[$j++] = _3B; //#11111 + if ($_.includetext) { //#11111 + $k[$j++] = 'txt'; //#11110 + $k[$j++] = $_.txt; //#11110 + } //#11110 + $k[$j++] = 'opt'; //#11112 + $k[$j++] = $_.options; //#11112 + var _3F = $d(); //#11112 + $k[$j++] = _3F; //#11115 + if (!$_.dontdraw) { //#11115 + bwipp_renlinear(); //#11115 + } //#11115 + $_ = Object.getPrototypeOf($_); //#11117 + $_ = Object.getPrototypeOf($_); //#11119 +} //bwipp_rationalizedCodabar function bwipp_onecode() { - $_ = Object.create($_); //#10977 - $_.dontdraw = false; //#10980 - $_.height = 0.15; //#10981 - $k[$j++] = $_; //#10983 - bwipp_processoptions(); //#10983 - $_.options = $k[--$j]; //#10983 - $_.barcode = $k[--$j]; //#10984 - bwipp_loadctx(bwipp_onecode) //#10986 - $_.barlen = $_.barcode.length; //#10988 - $forall($_.barcode, function() { //#10994 - var _4 = $k[--$j]; //#10991 - if ((_4 < 48) || (_4 > 57)) { //#10993 - $k[$j++] = 'bwipp.onecodeBadCharacter#10992'; //#10992 - $k[$j++] = "The data must contain only digits"; //#10992 - bwipp_raiseerror(); //#10992 - } //#10992 - }); //#10992 - if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#10998 - $k[$j++] = 'bwipp.onecodeInvalidLength#10997'; //#10997 - $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#10997 - bwipp_raiseerror(); //#10997 - } //#10997 - $k[$j++] = Infinity; //#11007 - var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11004 - $k[$j++] = 2; //#11007 - $k[$j++] = 2; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = 5; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = _B; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 20; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 25; //#11007 - $k[$j++] = 29; //#11007 - $k[$j++] = 29; //#11007 - $_.txtdict = $d(); //#11008 - $_.txt = $a($_.barlen + 6); //#11009 - $_.spacecnt = 0; //#11010 - for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11018 - $_.i = _H; //#11012 - var _K = $get($_.txtdict, $_.i) !== undefined; //#11013 - if (_K) { //#11016 - $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11014 - $_.spacecnt = $_.spacecnt + 1; //#11015 - } //#11015 - $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11017 - } //#11017 - $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11019 + $_ = Object.create($_); //#11149 + $_.dontdraw = false; //#11152 + $_.height = 0.15; //#11153 + $k[$j++] = $_; //#11155 + bwipp_processoptions(); //#11155 + $_.options = $k[--$j]; //#11155 + $_.barcode = $k[--$j]; //#11156 + bwipp_loadctx(bwipp_onecode) //#11158 + $_.barlen = $_.barcode.length; //#11160 + $forall($_.barcode, function() { //#11166 + var _4 = $k[--$j]; //#11163 + if ((_4 < 48) || (_4 > 57)) { //#11165 + $k[$j++] = 'bwipp.onecodeBadCharacter#11164'; //#11164 + $k[$j++] = "The data must contain only digits"; //#11164 + bwipp_raiseerror(); //#11164 + } //#11164 + }); //#11164 + if (((($_.barlen != 20) && ($_.barlen != 25)) && ($_.barlen != 29)) && ($_.barlen != 31)) { //#11170 + $k[$j++] = 'bwipp.onecodeInvalidLength#11169'; //#11169 + $k[$j++] = "The data must be 20, 25, 29 or 31 digits"; //#11169 + bwipp_raiseerror(); //#11169 + } //#11169 + $k[$j++] = Infinity; //#11173 + var _B = $eq($geti($_.barcode, 5, 1), "9") ? 14 : 11; //#11176 + $k[$j++] = 2; //#11179 + $k[$j++] = 2; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = 5; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = _B; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 20; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 25; //#11179 + $k[$j++] = 29; //#11179 + $k[$j++] = 29; //#11179 + $_.txtdict = $d(); //#11180 + $_.txt = $a($_.barlen + 6); //#11181 + $_.spacecnt = 0; //#11182 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#11190 + $_.i = _H; //#11184 + var _K = $get($_.txtdict, $_.i) !== undefined; //#11185 + if (_K) { //#11188 + $put($_.txt, $_.i + $_.spacecnt, $a([" ", 0, 0, "", 0])); //#11186 + $_.spacecnt = $_.spacecnt + 1; //#11187 + } //#11187 + $put($_.txt, $_.i + $_.spacecnt, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#11189 + } //#11189 + $_.txt = $geti($_.txt, 0, $_.barcode.length + $_.spacecnt); //#11191 $_.normalize = function() { - $_.base = $k[--$j]; //#11022 - $_.num = $k[--$j]; //#11023 - for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11028 - $_.i = _e; //#11025 - var _f = $_.num; //#11026 - var _g = $_.i; //#11026 - $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11026 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11027 - } //#11027 - for (;;) { //#11034 - if ($lt($get($_.num, 0), $_.base)) { //#11030 - break; //#11030 - } //#11030 - $k[$j++] = Infinity; //#11031 - $k[$j++] = 0; //#11031 - $aload($_.num); //#11031 - $_.num = $a(); //#11031 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11032 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#11033 - } //#11033 - $k[$j++] = Infinity; //#11036 - $_.i = true; //#11036 - var _17 = $_.num; //#11036 - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11036 - var _1A = $get(_17, _18); //#11036 - $k[$j++] = _1A; //#11036 - if ((_1A == 0) && $_.i) { //#11036 - $j--; //#11036 - } else { //#11036 - $_.i = false; //#11036 - } //#11036 - } //#11036 - $_.num = $a(); //#11036 - if ($_.num.length == 0) { //#11037 - $_.num = $a([0]); //#11037 - } //#11037 - $k[$j++] = $_.num; //#11038 - }; //#11038 + $_.base = $k[--$j]; //#11194 + $_.num = $k[--$j]; //#11195 + for (var _e = $_.num.length - 1; _e >= 1; _e -= 1) { //#11200 + $_.i = _e; //#11197 + var _f = $_.num; //#11198 + var _g = $_.i; //#11198 + $put(_f, _g - 1, $f($get(_f, _g - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#11198 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#11199 + } //#11199 + for (;;) { //#11206 + if ($lt($get($_.num, 0), $_.base)) { //#11202 + break; //#11202 + } //#11202 + $k[$j++] = Infinity; //#11203 + $k[$j++] = 0; //#11203 + $aload($_.num); //#11203 + $_.num = $a(); //#11203 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#11204 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#11205 + } //#11205 + $k[$j++] = Infinity; //#11208 + $_.i = true; //#11208 + var _17 = $_.num; //#11208 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#11208 + var _1A = $get(_17, _18); //#11208 + $k[$j++] = _1A; //#11208 + if ((_1A == 0) && $_.i) { //#11208 + $j--; //#11208 + } else { //#11208 + $_.i = false; //#11208 + } //#11208 + } //#11208 + $_.num = $a(); //#11208 + if ($_.num.length == 0) { //#11209 + $_.num = $a([0]); //#11209 + } //#11209 + $k[$j++] = $_.num; //#11210 + }; //#11210 $_.bigadd = function() { - var _1G = $k[--$j]; //#11042 - var _1H = $k[--$j]; //#11042 - $_.offset = Math.abs(_1G.length - _1H.length); //#11043 - if (_1G.length < _1H.length) { //#11044 - var _ = _1G; //#11044 - _1G = _1H; //#11044 - _1H = _; //#11044 - } //#11044 - $_.a = _1G; //#11045 - $_.b = _1H; //#11045 - for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11048 - var _1L = $_.a; //#11047 - var _1M = $_.offset; //#11047 - $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11047 - } //#11047 - $k[$j++] = $_.a; //#11049 - }; //#11049 - if (!bwipp_onecode.__11060__) { //#11060 - $_ = Object.create($_); //#11060 + var _1G = $k[--$j]; //#11214 + var _1H = $k[--$j]; //#11214 + $_.offset = Math.abs(_1G.length - _1H.length); //#11215 + if (_1G.length < _1H.length) { //#11216 + var _ = _1G; //#11216 + _1G = _1H; //#11216 + _1H = _; //#11216 + } //#11216 + $_.a = _1G; //#11217 + $_.b = _1H; //#11217 + for (var _1K = 0, _1J = $_.b.length - 1; _1K <= _1J; _1K += 1) { //#11220 + var _1L = $_.a; //#11219 + var _1M = $_.offset; //#11219 + $put(_1L, _1K + _1M, $f($get(_1L, _1K + _1M) + $get($_.b, _1K))); //#11219 + } //#11219 + $k[$j++] = $_.a; //#11221 + }; //#11221 + if (!bwipp_onecode.__11232__) { //#11232 + $_ = Object.create($_); //#11232 var _1V = new Map([ [20, $a([0])], [25, $a([1])], [29, $a([1, 0, 0, 0, 0, 1])], [31, $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1])] - ]); //#11058 - $_.startvals = _1V; //#11059 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11059 - bwipp_onecode.__11060__ = 1; //#11059 - $_ = Object.getPrototypeOf($_); //#11059 - } //#11059 - $k[$j++] = 'binval'; //#11062 - $k[$j++] = $get($_.startvals, $_.barlen); //#11062 - $k[$j++] = Infinity; //#11062 - var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11062 - for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11062 - $k[$j++] = $f($get(_1c, _1d) - 48); //#11062 - } //#11062 - var _1g = $a(); //#11062 - $k[$j++] = _1g; //#11062 - $_.bigadd(); //#11062 - var _1h = $k[--$j]; //#11062 - $_[$k[--$j]] = _1h; //#11062 - $k[$j++] = Infinity; //#11063 - $aload($_.binval); //#11063 - $k[$j++] = $f($get($_.barcode, 0) - 48); //#11063 - $_.binval = $a(); //#11063 - $k[$j++] = Infinity; //#11064 - var _1n = $_.binval; //#11064 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11064 - $k[$j++] = $get(_1n, _1o) * 5; //#11064 - } //#11064 - var _1r = $a(); //#11064 - $k[$j++] = 'binval'; //#11064 - $k[$j++] = _1r; //#11064 - $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11064 - $_.bigadd(); //#11064 - $k[$j++] = 10; //#11064 - $_.normalize(); //#11064 - var _1v = $k[--$j]; //#11064 - $_[$k[--$j]] = _1v; //#11064 - $k[$j++] = Infinity; //#11065 - $aload($_.binval); //#11065 - var _1z = $geti($_.barcode, 2, 18); //#11065 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11065 - $k[$j++] = $f($get(_1z, _20) - 48); //#11065 - } //#11065 - $_.binval = $a(); //#11065 - $_.bytes = $a(13); //#11068 - var _25 = $_.binval; //#11069 - $_.bintmp = $arrcpy($a(_25.length), _25); //#11069 - for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11079 - $_.i = _28; //#11071 - for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11076 - $_.j = _2B; //#11073 - var _2C = $_.bintmp; //#11074 - var _2D = $_.j; //#11074 - $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11074 - $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11075 - } //#11075 - $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11077 - var _2S = $_.bintmp; //#11078 - var _2T = $_.bintmp; //#11078 - $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11078 - } //#11078 - $_.fcs = 2047; //#11082 - $_.dat = $get($_.bytes, 0) << 5; //#11083 - for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11092 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11088 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11086 - } else { //#11088 - $_.fcs = $_.fcs << 1; //#11088 - } //#11088 - $_.fcs = $_.fcs & 2047; //#11090 - $_.dat = $_.dat << 1; //#11091 - } //#11091 - for (var _2f = 1; _2f <= 12; _2f += 1) { //#11104 - $_.dat = $get($_.bytes, _2f) << 3; //#11094 - for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11103 - if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11099 - $_.fcs = ($_.fcs << 1) ^ 3893; //#11097 - } else { //#11099 - $_.fcs = $_.fcs << 1; //#11099 - } //#11099 - $_.fcs = $_.fcs & 2047; //#11101 - $_.dat = $_.dat << 1; //#11102 - } //#11102 - } //#11102 - $_.codewords = $a(10); //#11107 - for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11118 - $_.i = _2r; //#11109 - var _2t = ($_.i == 9) ? 636 : 1365; //#11110 - $_.b = _2t; //#11110 - for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11115 - $_.j = _2w; //#11112 - var _2x = $_.binval; //#11113 - var _2y = $_.j; //#11113 - $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11113 - $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11114 - } //#11114 - $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11116 - var _3G = $_.binval; //#11117 - var _3H = $_.binval; //#11117 - $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11117 - } //#11117 - $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11121 - if (($_.fcs & 1024) != 0) { //#11124 - $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11123 - } //#11123 - if (!bwipp_onecode.__11225__) { //#11225 - $_ = Object.create($_); //#11225 - $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11215 - $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11224 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11224 - bwipp_onecode.__11225__ = 1; //#11224 - $_ = Object.getPrototypeOf($_); //#11224 - } //#11224 - $_.chars = $a(10); //#11227 - for (var _3V = 0; _3V <= 9; _3V += 1) { //#11236 - $_.i = _3V; //#11229 - var _3Y = $get($_.codewords, $_.i); //#11230 - $k[$j++] = _3Y; //#11234 - if (_3Y <= 1286) { //#11233 - var _3b = $get($_.tab513, $k[--$j]); //#11231 - $k[$j++] = _3b; //#11231 - } else { //#11233 - var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11233 - $k[$j++] = _3e; //#11233 - } //#11233 - $put($_.chars, $_.i, $k[--$j]); //#11235 - } //#11235 - for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11243 - $_.i = _3i; //#11239 - if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11242 - $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11241 - } //#11241 - } //#11241 - if (!bwipp_onecode.__11262__) { //#11262 - $_ = Object.create($_); //#11262 - $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11261 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11261 - bwipp_onecode.__11262__ = 1; //#11261 - $_ = Object.getPrototypeOf($_); //#11261 - } //#11261 - $_.bbs = $a(65); //#11264 - $_.bhs = $a(65); //#11265 - for (var _3u = 0; _3u <= 64; _3u += 1) { //#11286 - $_.i = _3u; //#11267 - $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11268 - $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11269 - if ((!$_.dec) && (!$_.asc)) { //#11273 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11271 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11272 - } //#11272 - if ((!$_.dec) && $_.asc) { //#11277 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11275 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11276 - } //#11276 - if ($_.dec && (!$_.asc)) { //#11281 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11279 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11280 - } //#11280 - if ($_.dec && $_.asc) { //#11285 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11283 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11284 - } //#11284 - } //#11284 - $k[$j++] = Infinity; //#11299 - var _4h = $_.bbs; //#11291 - var _4i = $_.bhs; //#11292 - $k[$j++] = Infinity; //#11293 - for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11293 - $k[$j++] = 1.44; //#11293 - $k[$j++] = 1.872; //#11293 - } //#11293 - $k[$j++] = 1.44; //#11293 - var _4m = $a(); //#11293 - $k[$j++] = 'ren'; //#11299 - $k[$j++] = bwipp_renlinear; //#11299 - $k[$j++] = 'bbs'; //#11299 - $k[$j++] = _4h; //#11299 - $k[$j++] = 'bhs'; //#11299 - $k[$j++] = _4i; //#11299 - $k[$j++] = 'sbs'; //#11299 - $k[$j++] = _4m; //#11299 - $k[$j++] = 'txt'; //#11299 - $k[$j++] = $_.txt; //#11299 - $k[$j++] = 'textxalign'; //#11299 - $k[$j++] = "left"; //#11299 - $k[$j++] = 'textfont'; //#11299 - $k[$j++] = "OCR-B"; //#11299 - $k[$j++] = 'textyoffset'; //#11299 - $k[$j++] = 1; //#11299 - $k[$j++] = 'textxoffset'; //#11299 - $k[$j++] = -0.3; //#11299 - $k[$j++] = 'opt'; //#11299 - $k[$j++] = $_.options; //#11299 - var _4p = $d(); //#11299 - $k[$j++] = _4p; //#11302 - if (!$_.dontdraw) { //#11302 - bwipp_renlinear(); //#11302 - } //#11302 - $_ = Object.getPrototypeOf($_); //#11304 - $_ = Object.getPrototypeOf($_); //#11306 -} - + ]); //#11230 + $_.startvals = _1V; //#11231 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11231 + bwipp_onecode.__11232__ = 1; //#11231 + $_ = Object.getPrototypeOf($_); //#11231 + } //#11231 + $k[$j++] = 'binval'; //#11234 + $k[$j++] = $get($_.startvals, $_.barlen); //#11234 + $k[$j++] = Infinity; //#11234 + var _1c = $geti($_.barcode, 20, $_.barlen - 20); //#11234 + for (var _1d = 0, _1e = _1c.length; _1d < _1e; _1d++) { //#11234 + $k[$j++] = $f($get(_1c, _1d) - 48); //#11234 + } //#11234 + var _1g = $a(); //#11234 + $k[$j++] = _1g; //#11234 + $_.bigadd(); //#11234 + var _1h = $k[--$j]; //#11234 + $_[$k[--$j]] = _1h; //#11234 + $k[$j++] = Infinity; //#11235 + $aload($_.binval); //#11235 + $k[$j++] = $f($get($_.barcode, 0) - 48); //#11235 + $_.binval = $a(); //#11235 + $k[$j++] = Infinity; //#11236 + var _1n = $_.binval; //#11236 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#11236 + $k[$j++] = $get(_1n, _1o) * 5; //#11236 + } //#11236 + var _1r = $a(); //#11236 + $k[$j++] = 'binval'; //#11236 + $k[$j++] = _1r; //#11236 + $k[$j++] = $a([$f($get($_.barcode, 1) - 48)]); //#11236 + $_.bigadd(); //#11236 + $k[$j++] = 10; //#11236 + $_.normalize(); //#11236 + var _1v = $k[--$j]; //#11236 + $_[$k[--$j]] = _1v; //#11236 + $k[$j++] = Infinity; //#11237 + $aload($_.binval); //#11237 + var _1z = $geti($_.barcode, 2, 18); //#11237 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#11237 + $k[$j++] = $f($get(_1z, _20) - 48); //#11237 + } //#11237 + $_.binval = $a(); //#11237 + $_.bytes = $a(13); //#11240 + var _25 = $_.binval; //#11241 + $_.bintmp = $arrcpy($a(_25.length), _25); //#11241 + for (var _28 = 12; _28 >= 0; _28 -= 1) { //#11251 + $_.i = _28; //#11243 + for (var _2B = 0, _2A = $_.bintmp.length - 2; _2B <= _2A; _2B += 1) { //#11248 + $_.j = _2B; //#11245 + var _2C = $_.bintmp; //#11246 + var _2D = $_.j; //#11246 + $put(_2C, _2D + 1, $f($get(_2C, _2D + 1) + (($get($_.bintmp, $_.j) % 256) * 10))); //#11246 + $put($_.bintmp, $_.j, ~~($get($_.bintmp, $_.j) / 256)); //#11247 + } //#11247 + $put($_.bytes, $_.i, $get($_.bintmp, $_.bintmp.length - 1) % 256); //#11249 + var _2S = $_.bintmp; //#11250 + var _2T = $_.bintmp; //#11250 + $put(_2S, _2T.length - 1, ~~($get(_2S, _2T.length - 1) / 256)); //#11250 + } //#11250 + $_.fcs = 2047; //#11254 + $_.dat = $get($_.bytes, 0) << 5; //#11255 + for (var _2X = 0, _2Y = 6; _2X < _2Y; _2X++) { //#11264 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11260 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11258 + } else { //#11260 + $_.fcs = $_.fcs << 1; //#11260 + } //#11260 + $_.fcs = $_.fcs & 2047; //#11262 + $_.dat = $_.dat << 1; //#11263 + } //#11263 + for (var _2f = 1; _2f <= 12; _2f += 1) { //#11276 + $_.dat = $get($_.bytes, _2f) << 3; //#11266 + for (var _2i = 0, _2j = 8; _2i < _2j; _2i++) { //#11275 + if ((($_.fcs ^ $_.dat) & 1024) != 0) { //#11271 + $_.fcs = ($_.fcs << 1) ^ 3893; //#11269 + } else { //#11271 + $_.fcs = $_.fcs << 1; //#11271 + } //#11271 + $_.fcs = $_.fcs & 2047; //#11273 + $_.dat = $_.dat << 1; //#11274 + } //#11274 + } //#11274 + $_.codewords = $a(10); //#11279 + for (var _2r = 9; _2r >= 0; _2r -= 1) { //#11290 + $_.i = _2r; //#11281 + var _2t = ($_.i == 9) ? 636 : 1365; //#11282 + $_.b = _2t; //#11282 + for (var _2w = 0, _2v = $_.binval.length - 2; _2w <= _2v; _2w += 1) { //#11287 + $_.j = _2w; //#11284 + var _2x = $_.binval; //#11285 + var _2y = $_.j; //#11285 + $put(_2x, _2y + 1, $f($get(_2x, _2y + 1) + (($get($_.binval, $_.j) % $_.b) * 10))); //#11285 + $put($_.binval, $_.j, ~~($get($_.binval, $_.j) / $_.b)); //#11286 + } //#11286 + $put($_.codewords, $_.i, $get($_.binval, $_.binval.length - 1) % $_.b); //#11288 + var _3G = $_.binval; //#11289 + var _3H = $_.binval; //#11289 + $put(_3G, _3H.length - 1, ~~($get(_3G, _3H.length - 1) / $_.b)); //#11289 + } //#11289 + $put($_.codewords, 9, $get($_.codewords, 9) * 2); //#11293 + if (($_.fcs & 1024) != 0) { //#11296 + $put($_.codewords, 0, $f($get($_.codewords, 0) + 659)); //#11295 + } //#11295 + if (!bwipp_onecode.__11397__) { //#11397 + $_ = Object.create($_); //#11397 + $_.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#11387 + $_.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#11396 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11396 + bwipp_onecode.__11397__ = 1; //#11396 + $_ = Object.getPrototypeOf($_); //#11396 + } //#11396 + $_.chars = $a(10); //#11399 + for (var _3V = 0; _3V <= 9; _3V += 1) { //#11408 + $_.i = _3V; //#11401 + var _3Y = $get($_.codewords, $_.i); //#11402 + $k[$j++] = _3Y; //#11406 + if (_3Y <= 1286) { //#11405 + var _3b = $get($_.tab513, $k[--$j]); //#11403 + $k[$j++] = _3b; //#11403 + } else { //#11405 + var _3e = $get($_.tab213, $f($k[--$j] - 1287)); //#11405 + $k[$j++] = _3e; //#11405 + } //#11405 + $put($_.chars, $_.i, $k[--$j]); //#11407 + } //#11407 + for (var _3i = 9; _3i >= 0; _3i -= 1) { //#11415 + $_.i = _3i; //#11411 + if (((~~Math.pow(2, $_.i)) & $_.fcs) != 0) { //#11414 + $put($_.chars, $_.i, $get($_.chars, $_.i) ^ 8191); //#11413 + } //#11413 + } //#11413 + if (!bwipp_onecode.__11434__) { //#11434 + $_ = Object.create($_); //#11434 + $_.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#11433 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_onecode.$ctx[id] = $_[id]); //#11433 + bwipp_onecode.__11434__ = 1; //#11433 + $_ = Object.getPrototypeOf($_); //#11433 + } //#11433 + $_.bbs = $a(65); //#11436 + $_.bhs = $a(65); //#11437 + for (var _3u = 0; _3u <= 64; _3u += 1) { //#11458 + $_.i = _3u; //#11439 + $_.dec = ($get($_.chars, $get($_.barmap, $_.i * 4)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 1)))) != 0; //#11440 + $_.asc = ($get($_.chars, $get($_.barmap, ($_.i * 4) + 2)) & (~~Math.pow(2, $get($_.barmap, ($_.i * 4) + 3)))) != 0; //#11441 + if ((!$_.dec) && (!$_.asc)) { //#11445 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11443 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11444 + } //#11444 + if ((!$_.dec) && $_.asc) { //#11449 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11447 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11448 + } //#11448 + if ($_.dec && (!$_.asc)) { //#11453 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11451 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11452 + } //#11452 + if ($_.dec && $_.asc) { //#11457 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11455 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11456 + } //#11456 + } //#11456 + $k[$j++] = Infinity; //#11461 + var _4h = $_.bbs; //#11463 + var _4i = $_.bhs; //#11464 + $k[$j++] = Infinity; //#11465 + for (var _4k = 0, _4l = $_.bhs.length - 1; _4k < _4l; _4k++) { //#11465 + $k[$j++] = 1.44; //#11465 + $k[$j++] = 1.872; //#11465 + } //#11465 + $k[$j++] = 1.44; //#11465 + var _4m = $a(); //#11465 + $k[$j++] = 'ren'; //#11471 + $k[$j++] = bwipp_renlinear; //#11471 + $k[$j++] = 'bbs'; //#11471 + $k[$j++] = _4h; //#11471 + $k[$j++] = 'bhs'; //#11471 + $k[$j++] = _4i; //#11471 + $k[$j++] = 'sbs'; //#11471 + $k[$j++] = _4m; //#11471 + $k[$j++] = 'txt'; //#11471 + $k[$j++] = $_.txt; //#11471 + $k[$j++] = 'textxalign'; //#11471 + $k[$j++] = "left"; //#11471 + $k[$j++] = 'textfont'; //#11471 + $k[$j++] = "OCR-B"; //#11471 + $k[$j++] = 'textyoffset'; //#11471 + $k[$j++] = 1; //#11471 + $k[$j++] = 'textxoffset'; //#11471 + $k[$j++] = -0.3; //#11471 + $k[$j++] = 'opt'; //#11471 + $k[$j++] = $_.options; //#11471 + var _4p = $d(); //#11471 + $k[$j++] = _4p; //#11474 + if (!$_.dontdraw) { //#11474 + bwipp_renlinear(); //#11474 + } //#11474 + $_ = Object.getPrototypeOf($_); //#11476 + $_ = Object.getPrototypeOf($_); //#11478 +} //bwipp_onecode function bwipp_postnet() { - $_ = Object.create($_); //#11336 - $_.dontdraw = false; //#11339 - $_.includetext = false; //#11340 - $_.validatecheck = false; //#11341 - $_.includecheckintext = false; //#11342 - $_.textfont = "OCR-B"; //#11343 - $_.textsize = 10; //#11344 - $_.textyoffset = -8; //#11345 - $_.height = 0.125; //#11346 - $k[$j++] = $_; //#11348 - bwipp_processoptions(); //#11348 - $_.options = $k[--$j]; //#11348 - $_.barcode = $k[--$j]; //#11349 - bwipp_loadctx(bwipp_postnet) //#11351 - $k[$j++] = 'barlen'; //#11353 - $k[$j++] = $_.barcode.length; //#11353 - if ($_.validatecheck) { //#11353 - var _4 = $k[--$j]; //#11353 - $k[$j++] = $f(_4 - 1); //#11353 - } //#11353 - var _5 = $k[--$j]; //#11353 - $_[$k[--$j]] = _5; //#11353 - if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11358 - $k[$j++] = 'bwipp.postnetBadLength#11357'; //#11357 - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11357 - bwipp_raiseerror(); //#11357 - } //#11357 - $forall($_.barcode, function() { //#11363 - var _B = $k[--$j]; //#11360 - if ((_B < 48) || (_B > 57)) { //#11362 - $k[$j++] = 'bwipp.postnetBadCharacter#11361'; //#11361 - $k[$j++] = "USPS POSTNET must contain only digits"; //#11361 - bwipp_raiseerror(); //#11361 - } //#11361 - }); //#11361 - if (!bwipp_postnet.__11375__) { //#11375 - $_ = Object.create($_); //#11375 - $_.barchars = "0123456789"; //#11367 - $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11374 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11374 - bwipp_postnet.__11375__ = 1; //#11374 - $_ = Object.getPrototypeOf($_); //#11374 - } //#11374 - $_.checksum = 0; //#11377 - for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11381 - $_.i = _G; //#11379 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11380 - } //#11380 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11382 - if ($_.validatecheck) { //#11388 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11386 - $k[$j++] = 'bwipp.postnetBadCheckDigit#11385'; //#11385 - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11385 - bwipp_raiseerror(); //#11385 - } //#11385 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11387 - } //#11387 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11390 - $_.txt = $a($f($_.barlen + 1)); //#11391 - $_.enc = $get($_.encs, 10); //#11394 - $_.heights = $a($_.enc.length); //#11395 - for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11399 - $_.j = _g; //#11397 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11398 - } //#11398 - $puti($_.bhs, 0, $_.heights); //#11400 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11412 - $_.i = _r; //#11403 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11404 - $_.heights = $a($_.enc.length); //#11405 - for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11409 - $_.j = _11; //#11407 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11408 - } //#11408 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11410 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11411 - } //#11411 - $_.enc = $get($_.encs, $_.checksum); //#11415 - $_.heights = $a($_.enc.length); //#11416 - for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11420 - $_.j = _1S; //#11418 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11419 - } //#11419 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11421 - if ($_.includecheckintext) { //#11426 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11424 - } else { //#11426 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11426 - } //#11426 - $_.enc = $get($_.encs, 11); //#11430 - $_.heights = $a($_.enc.length); //#11431 - for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11435 - $_.j = _20; //#11433 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11434 - } //#11434 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11436 - $k[$j++] = Infinity; //#11447 - var _2A = $_.bhs; //#11441 - $k[$j++] = Infinity; //#11442 - for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11442 - $k[$j++] = 0; //#11442 - } //#11442 - var _2E = $a(); //#11442 - $k[$j++] = Infinity; //#11443 - for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11443 - $k[$j++] = 1.44; //#11443 - $k[$j++] = 1.872; //#11443 - } //#11443 - $k[$j++] = 1.44; //#11443 - var _2I = $a(); //#11443 - $k[$j++] = 'ren'; //#11446 - $k[$j++] = bwipp_renlinear; //#11446 - $k[$j++] = 'bhs'; //#11446 - $k[$j++] = _2A; //#11446 - $k[$j++] = 'bbs'; //#11446 - $k[$j++] = _2E; //#11446 - $k[$j++] = 'sbs'; //#11446 - $k[$j++] = _2I; //#11446 - if ($_.includetext) { //#11446 - $k[$j++] = 'txt'; //#11445 - $k[$j++] = $_.txt; //#11445 - } //#11445 - $k[$j++] = 'opt'; //#11447 - $k[$j++] = $_.options; //#11447 - var _2M = $d(); //#11447 - $k[$j++] = _2M; //#11450 - if (!$_.dontdraw) { //#11450 - bwipp_renlinear(); //#11450 - } //#11450 - $_ = Object.getPrototypeOf($_); //#11452 - $_ = Object.getPrototypeOf($_); //#11454 -} - -function bwipp_planet() { - $_ = Object.create($_); //#11484 - $_.dontdraw = false; //#11487 - $_.includetext = false; //#11488 - $_.validatecheck = false; //#11489 - $_.includecheckintext = false; //#11490 - $_.textfont = "OCR-B"; //#11491 - $_.textsize = 10; //#11492 - $_.textyoffset = -8; //#11493 - $_.height = 0.125; //#11494 - $k[$j++] = $_; //#11496 - bwipp_processoptions(); //#11496 - $_.options = $k[--$j]; //#11496 - $_.barcode = $k[--$j]; //#11497 - bwipp_loadctx(bwipp_planet) //#11499 - $k[$j++] = 'barlen'; //#11501 - $k[$j++] = $_.barcode.length; //#11501 - if ($_.validatecheck) { //#11501 - var _4 = $k[--$j]; //#11501 - $k[$j++] = $f(_4 - 1); //#11501 - } //#11501 - var _5 = $k[--$j]; //#11501 - $_[$k[--$j]] = _5; //#11501 - if (($_.barlen != 11) && ($_.barlen != 13)) { //#11506 - $k[$j++] = 'bwipp.planetBadLength#11505'; //#11505 - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11505 - bwipp_raiseerror(); //#11505 - } //#11505 - $forall($_.barcode, function() { //#11511 - var _A = $k[--$j]; //#11508 - if ((_A < 48) || (_A > 57)) { //#11510 - $k[$j++] = 'bwipp.planetBadCharacter#11509'; //#11509 - $k[$j++] = "USPS PLANET must contain only digits"; //#11509 - bwipp_raiseerror(); //#11509 - } //#11509 - }); //#11509 - if (!bwipp_planet.__11523__) { //#11523 - $_ = Object.create($_); //#11523 - $_.barchars = "0123456789"; //#11515 - $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11522 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11522 - bwipp_planet.__11523__ = 1; //#11522 - $_ = Object.getPrototypeOf($_); //#11522 - } //#11522 - $_.checksum = 0; //#11526 - for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11530 - $_.i = _F; //#11528 - $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11529 + $_ = Object.create($_); //#11508 + $_.dontdraw = false; //#11511 + $_.includetext = false; //#11512 + $_.validatecheck = false; //#11513 + $_.includecheckintext = false; //#11514 + $_.textfont = "OCR-B"; //#11515 + $_.textsize = 10; //#11516 + $_.textyoffset = -8; //#11517 + $_.height = 0.125; //#11518 + $k[$j++] = $_; //#11520 + bwipp_processoptions(); //#11520 + $_.options = $k[--$j]; //#11520 + $_.barcode = $k[--$j]; //#11521 + bwipp_loadctx(bwipp_postnet) //#11523 + $k[$j++] = 'barlen'; //#11525 + $k[$j++] = $_.barcode.length; //#11525 + if ($_.validatecheck) { //#11525 + var _4 = $k[--$j]; //#11525 + $k[$j++] = $f(_4 - 1); //#11525 + } //#11525 + var _5 = $k[--$j]; //#11525 + $_[$k[--$j]] = _5; //#11525 + if ((($_.barlen != 5) && ($_.barlen != 9)) && ($_.barlen != 11)) { //#11530 + $k[$j++] = 'bwipp.postnetBadLength#11529'; //#11529 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#11529 + bwipp_raiseerror(); //#11529 } //#11529 - $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11531 - if ($_.validatecheck) { //#11537 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11535 - $k[$j++] = 'bwipp.planetBadCheckDigit#11534'; //#11534 - $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11534 - bwipp_raiseerror(); //#11534 - } //#11534 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11536 - } //#11536 - $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11539 - $_.txt = $a($f($_.barlen + 1)); //#11540 - $_.enc = $get($_.encs, 10); //#11543 - $_.heights = $a($_.enc.length); //#11544 - for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11548 - $_.j = _f; //#11546 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11547 - } //#11547 - $puti($_.bhs, 0, $_.heights); //#11549 - for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11561 - $_.i = _q; //#11552 - $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11553 - $_.heights = $a($_.enc.length); //#11554 - for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11558 - $_.j = _10; //#11556 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11557 + $forall($_.barcode, function() { //#11535 + var _B = $k[--$j]; //#11532 + if ((_B < 48) || (_B > 57)) { //#11534 + $k[$j++] = 'bwipp.postnetBadCharacter#11533'; //#11533 + $k[$j++] = "USPS POSTNET must contain only digits"; //#11533 + bwipp_raiseerror(); //#11533 + } //#11533 + }); //#11533 + if (!bwipp_postnet.__11547__) { //#11547 + $_ = Object.create($_); //#11547 + $_.barchars = "0123456789"; //#11539 + $_.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#11546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_postnet.$ctx[id] = $_[id]); //#11546 + bwipp_postnet.__11547__ = 1; //#11546 + $_ = Object.getPrototypeOf($_); //#11546 + } //#11546 + $_.checksum = 0; //#11549 + for (var _G = 0, _F = $f($_.barlen - 1); _G <= _F; _G += 1) { //#11553 + $_.i = _G; //#11551 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11552 + } //#11552 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11554 + if ($_.validatecheck) { //#11560 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11558 + $k[$j++] = 'bwipp.postnetBadCheckDigit#11557'; //#11557 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#11557 + bwipp_raiseerror(); //#11557 } //#11557 - $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11559 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11560 - } //#11560 - $_.enc = $get($_.encs, $_.checksum); //#11564 - $_.heights = $a($_.enc.length); //#11565 - for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11569 - $_.j = _1R; //#11567 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11568 - } //#11568 - $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11570 - if ($_.includecheckintext) { //#11575 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11573 - } else { //#11575 - $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11575 - } //#11575 - $_.enc = $get($_.encs, 11); //#11579 - $_.heights = $a($_.enc.length); //#11580 - for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11584 - $_.j = _1z; //#11582 - $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11583 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11559 + } //#11559 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11562 + $_.txt = $a($f($_.barlen + 1)); //#11563 + $_.enc = $get($_.encs, 10); //#11566 + $_.heights = $a($_.enc.length); //#11567 + for (var _g = 0, _f = $_.enc.length - 1; _g <= _f; _g += 1) { //#11571 + $_.j = _g; //#11569 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11570 + } //#11570 + $puti($_.bhs, 0, $_.heights); //#11572 + for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11584 + $_.i = _r; //#11575 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11576 + $_.heights = $a($_.enc.length); //#11577 + for (var _11 = 0, _10 = $_.enc.length - 1; _11 <= _10; _11 += 1) { //#11581 + $_.j = _11; //#11579 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11580 + } //#11580 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11582 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11583 } //#11583 - $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11585 - $k[$j++] = Infinity; //#11596 - var _29 = $_.bhs; //#11590 - $k[$j++] = Infinity; //#11591 - for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11591 - $k[$j++] = 0; //#11591 + $_.enc = $get($_.encs, $_.checksum); //#11587 + $_.heights = $a($_.enc.length); //#11588 + for (var _1S = 0, _1R = $_.enc.length - 1; _1S <= _1R; _1S += 1) { //#11592 + $_.j = _1S; //#11590 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11591 } //#11591 - var _2D = $a(); //#11591 - $k[$j++] = Infinity; //#11592 - for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11592 - $k[$j++] = 1.44; //#11592 - $k[$j++] = 1.872; //#11592 - } //#11592 - $k[$j++] = 1.44; //#11592 - var _2H = $a(); //#11592 - $k[$j++] = 'ren'; //#11595 - $k[$j++] = bwipp_renlinear; //#11595 - $k[$j++] = 'bhs'; //#11595 - $k[$j++] = _29; //#11595 - $k[$j++] = 'bbs'; //#11595 - $k[$j++] = _2D; //#11595 - $k[$j++] = 'sbs'; //#11595 - $k[$j++] = _2H; //#11595 - if ($_.includetext) { //#11595 - $k[$j++] = 'txt'; //#11594 - $k[$j++] = $_.txt; //#11594 - } //#11594 - $k[$j++] = 'opt'; //#11596 - $k[$j++] = $_.options; //#11596 - var _2L = $d(); //#11596 - $k[$j++] = _2L; //#11599 - if (!$_.dontdraw) { //#11599 - bwipp_renlinear(); //#11599 - } //#11599 - $_ = Object.getPrototypeOf($_); //#11601 - $_ = Object.getPrototypeOf($_); //#11603 -} - -function bwipp_royalmail() { - $_ = Object.create($_); //#11633 - $_.dontdraw = false; //#11636 - $_.includetext = false; //#11637 - $_.validatecheck = false; //#11638 - $_.includecheckintext = false; //#11639 - $_.textfont = "OCR-B"; //#11640 - $_.textsize = 10; //#11641 - $_.textyoffset = -8; //#11642 - $_.height = 0.175; //#11643 - $k[$j++] = $_; //#11645 - bwipp_processoptions(); //#11645 - $_.options = $k[--$j]; //#11645 - var _1 = $k[--$j]; //#11646 - $_.barcode = _1; //#11646 - bwipp_loadctx(bwipp_royalmail) //#11648 - if (!bwipp_royalmail.__11666__) { //#11666 - $_ = Object.create($_); //#11666 - $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11652 - $_.charvals = new Map; //#11653 - for (var _2 = 0; _2 <= 35; _2 += 1) { //#11654 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#11654 - } //#11654 - $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11665 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11665 - bwipp_royalmail.__11666__ = 1; //#11665 - $_ = Object.getPrototypeOf($_); //#11665 - } //#11665 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#11673 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#11670 - if (!_E) { //#11672 - $k[$j++] = 'bwipp.royalmailBadCharacter#11671'; //#11671 - $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11671 - bwipp_raiseerror(); //#11671 - } //#11671 - } //#11671 - $k[$j++] = 'barlen'; //#11675 - $k[$j++] = $_.barcode.length; //#11675 - if ($_.validatecheck) { //#11675 - var _H = $k[--$j]; //#11675 - $k[$j++] = $f(_H - 1); //#11675 - } //#11675 - var _I = $k[--$j]; //#11675 - $_[$k[--$j]] = _I; //#11675 - $_.checksumrow = 0; //#11677 - $_.checksumcol = 0; //#11678 - for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#11684 - $_.i = _M; //#11680 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11681 - $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11682 - $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11683 - } //#11683 - $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11685 - if ($_.validatecheck) { //#11691 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11689 - $k[$j++] = 'bwipp.royalmailBadCheckDigit#11688'; //#11688 - $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11688 - bwipp_raiseerror(); //#11688 - } //#11688 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11690 - } //#11690 - $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11693 - $_.txt = $a($f($_.barlen + 1)); //#11694 - $puti($_.encstr, 0, $get($_.encs, 36)); //#11697 - for (var _r = 0, _q = $f($_.barlen - 1); _r <= _q; _r += 1) { //#11704 - $_.i = _r; //#11700 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11701 - $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11702 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11703 - } //#11703 - $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11707 - if ($_.includecheckintext) { //#11711 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11709 - } else { //#11711 - $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11711 - } //#11711 - $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11715 - $_.bbs = $a($_.encstr.length); //#11717 - $_.bhs = $a($_.encstr.length); //#11718 - for (var _1j = 0, _1i = $_.encstr.length - 1; _1j <= _1i; _1j += 1) { //#11738 - $_.i = _1j; //#11720 - $_.enc = $geti($_.encstr, $_.i, 1); //#11721 - if ($eq($_.enc, "0")) { //#11725 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11723 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11724 - } //#11724 - if ($eq($_.enc, "1")) { //#11729 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11727 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11728 - } //#11728 - if ($eq($_.enc, "2")) { //#11733 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11731 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11732 - } //#11732 - if ($eq($_.enc, "3")) { //#11737 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11735 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11736 - } //#11736 - } //#11736 - $k[$j++] = Infinity; //#11749 - var _2F = $_.bbs; //#11743 - var _2G = $_.bhs; //#11744 - $k[$j++] = Infinity; //#11745 - for (var _2I = 0, _2J = $_.bhs.length - 1; _2I < _2J; _2I++) { //#11745 - $k[$j++] = 1.44; //#11745 - $k[$j++] = 1.872; //#11745 - } //#11745 - $k[$j++] = 1.44; //#11745 - var _2K = $a(); //#11745 - $k[$j++] = 'ren'; //#11748 - $k[$j++] = bwipp_renlinear; //#11748 - $k[$j++] = 'bbs'; //#11748 - $k[$j++] = _2F; //#11748 - $k[$j++] = 'bhs'; //#11748 - $k[$j++] = _2G; //#11748 - $k[$j++] = 'sbs'; //#11748 - $k[$j++] = _2K; //#11748 - if ($_.includetext) { //#11748 - $k[$j++] = 'txt'; //#11747 - $k[$j++] = $_.txt; //#11747 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11593 + if ($_.includecheckintext) { //#11598 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11596 + } else { //#11598 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11598 + } //#11598 + $_.enc = $get($_.encs, 11); //#11602 + $_.heights = $a($_.enc.length); //#11603 + for (var _20 = 0, _1z = $_.enc.length - 1; _20 <= _1z; _20 += 1) { //#11607 + $_.j = _20; //#11605 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11606 + } //#11606 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11608 + $k[$j++] = Infinity; //#11611 + var _2A = $_.bhs; //#11613 + $k[$j++] = Infinity; //#11614 + for (var _2C = 0, _2D = $_.bhs.length; _2C < _2D; _2C++) { //#11614 + $k[$j++] = 0; //#11614 + } //#11614 + var _2E = $a(); //#11614 + $k[$j++] = Infinity; //#11615 + for (var _2G = 0, _2H = $_.bhs.length - 1; _2G < _2H; _2G++) { //#11615 + $k[$j++] = 1.44; //#11615 + $k[$j++] = 1.872; //#11615 + } //#11615 + $k[$j++] = 1.44; //#11615 + var _2I = $a(); //#11615 + $k[$j++] = 'ren'; //#11618 + $k[$j++] = bwipp_renlinear; //#11618 + $k[$j++] = 'bhs'; //#11618 + $k[$j++] = _2A; //#11618 + $k[$j++] = 'bbs'; //#11618 + $k[$j++] = _2E; //#11618 + $k[$j++] = 'sbs'; //#11618 + $k[$j++] = _2I; //#11618 + if ($_.includetext) { //#11618 + $k[$j++] = 'txt'; //#11617 + $k[$j++] = $_.txt; //#11617 + } //#11617 + $k[$j++] = 'opt'; //#11619 + $k[$j++] = $_.options; //#11619 + var _2M = $d(); //#11619 + $k[$j++] = _2M; //#11622 + if (!$_.dontdraw) { //#11622 + bwipp_renlinear(); //#11622 + } //#11622 + $_ = Object.getPrototypeOf($_); //#11624 + $_ = Object.getPrototypeOf($_); //#11626 +} //bwipp_postnet +function bwipp_planet() { + $_ = Object.create($_); //#11656 + $_.dontdraw = false; //#11659 + $_.includetext = false; //#11660 + $_.validatecheck = false; //#11661 + $_.includecheckintext = false; //#11662 + $_.textfont = "OCR-B"; //#11663 + $_.textsize = 10; //#11664 + $_.textyoffset = -8; //#11665 + $_.height = 0.125; //#11666 + $k[$j++] = $_; //#11668 + bwipp_processoptions(); //#11668 + $_.options = $k[--$j]; //#11668 + $_.barcode = $k[--$j]; //#11669 + bwipp_loadctx(bwipp_planet) //#11671 + $k[$j++] = 'barlen'; //#11673 + $k[$j++] = $_.barcode.length; //#11673 + if ($_.validatecheck) { //#11673 + var _4 = $k[--$j]; //#11673 + $k[$j++] = $f(_4 - 1); //#11673 + } //#11673 + var _5 = $k[--$j]; //#11673 + $_[$k[--$j]] = _5; //#11673 + if (($_.barlen != 11) && ($_.barlen != 13)) { //#11678 + $k[$j++] = 'bwipp.planetBadLength#11677'; //#11677 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#11677 + bwipp_raiseerror(); //#11677 + } //#11677 + $forall($_.barcode, function() { //#11683 + var _A = $k[--$j]; //#11680 + if ((_A < 48) || (_A > 57)) { //#11682 + $k[$j++] = 'bwipp.planetBadCharacter#11681'; //#11681 + $k[$j++] = "USPS PLANET must contain only digits"; //#11681 + bwipp_raiseerror(); //#11681 + } //#11681 + }); //#11681 + if (!bwipp_planet.__11695__) { //#11695 + $_ = Object.create($_); //#11695 + $_.barchars = "0123456789"; //#11687 + $_.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#11694 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_planet.$ctx[id] = $_[id]); //#11694 + bwipp_planet.__11695__ = 1; //#11694 + $_ = Object.getPrototypeOf($_); //#11694 + } //#11694 + $_.checksum = 0; //#11698 + for (var _F = 0, _E = $f($_.barlen - 1); _F <= _E; _F += 1) { //#11702 + $_.i = _F; //#11700 + $_.checksum = $f($_.checksum + $f($get($_.barcode, $_.i) - 48)); //#11701 + } //#11701 + $_.checksum = ($f(10 - ($_.checksum % 10))) % 10; //#11703 + if ($_.validatecheck) { //#11709 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11707 + $k[$j++] = 'bwipp.planetBadCheckDigit#11706'; //#11706 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#11706 + bwipp_raiseerror(); //#11706 + } //#11706 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11708 + } //#11708 + $_.bhs = $a($f(($_.barlen * 5) + 7)); //#11711 + $_.txt = $a($f($_.barlen + 1)); //#11712 + $_.enc = $get($_.encs, 10); //#11715 + $_.heights = $a($_.enc.length); //#11716 + for (var _f = 0, _e = $_.enc.length - 1; _f <= _e; _f += 1) { //#11720 + $_.j = _f; //#11718 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11719 + } //#11719 + $puti($_.bhs, 0, $_.heights); //#11721 + for (var _q = 0, _p = $f($_.barlen - 1); _q <= _p; _q += 1) { //#11733 + $_.i = _q; //#11724 + $_.enc = $get($_.encs, $f($get($_.barcode, $_.i) - 48)); //#11725 + $_.heights = $a($_.enc.length); //#11726 + for (var _10 = 0, _z = $_.enc.length - 1; _10 <= _z; _10 += 1) { //#11730 + $_.j = _10; //#11728 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11729 + } //#11729 + $puti($_.bhs, ($_.i * 5) + 1, $_.heights); //#11731 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 5) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11732 + } //#11732 + $_.enc = $get($_.encs, $_.checksum); //#11736 + $_.heights = $a($_.enc.length); //#11737 + for (var _1R = 0, _1Q = $_.enc.length - 1; _1R <= _1Q; _1R += 1) { //#11741 + $_.j = _1R; //#11739 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11740 + } //#11740 + $puti($_.bhs, $f(($_.barlen * 5) + 1), $_.heights); //#11742 + if ($_.includecheckintext) { //#11747 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 5) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11745 + } else { //#11747 + $put($_.txt, $_.barlen, $a([" ", (($f(($_.barlen * 5) + 1)) * 72) / 25, $_.textyoffset, $_.textfont, $_.textsize])); //#11747 } //#11747 - $k[$j++] = 'opt'; //#11749 - $k[$j++] = $_.options; //#11749 - var _2O = $d(); //#11749 - $k[$j++] = _2O; //#11752 - if (!$_.dontdraw) { //#11752 - bwipp_renlinear(); //#11752 - } //#11752 - $_ = Object.getPrototypeOf($_); //#11754 - $_ = Object.getPrototypeOf($_); //#11756 -} - + $_.enc = $get($_.encs, 11); //#11751 + $_.heights = $a($_.enc.length); //#11752 + for (var _1z = 0, _1y = $_.enc.length - 1; _1z <= _1y; _1z += 1) { //#11756 + $_.j = _1z; //#11754 + $put($_.heights, $_.j, ($cvi($geti($_.enc, $_.j, 1)) * $_.height) / 5); //#11755 + } //#11755 + $puti($_.bhs, $f(($_.barlen * 5) + 6), $_.heights); //#11757 + $k[$j++] = Infinity; //#11760 + var _29 = $_.bhs; //#11762 + $k[$j++] = Infinity; //#11763 + for (var _2B = 0, _2C = $_.bhs.length; _2B < _2C; _2B++) { //#11763 + $k[$j++] = 0; //#11763 + } //#11763 + var _2D = $a(); //#11763 + $k[$j++] = Infinity; //#11764 + for (var _2F = 0, _2G = $_.bhs.length - 1; _2F < _2G; _2F++) { //#11764 + $k[$j++] = 1.44; //#11764 + $k[$j++] = 1.872; //#11764 + } //#11764 + $k[$j++] = 1.44; //#11764 + var _2H = $a(); //#11764 + $k[$j++] = 'ren'; //#11767 + $k[$j++] = bwipp_renlinear; //#11767 + $k[$j++] = 'bhs'; //#11767 + $k[$j++] = _29; //#11767 + $k[$j++] = 'bbs'; //#11767 + $k[$j++] = _2D; //#11767 + $k[$j++] = 'sbs'; //#11767 + $k[$j++] = _2H; //#11767 + if ($_.includetext) { //#11767 + $k[$j++] = 'txt'; //#11766 + $k[$j++] = $_.txt; //#11766 + } //#11766 + $k[$j++] = 'opt'; //#11768 + $k[$j++] = $_.options; //#11768 + var _2L = $d(); //#11768 + $k[$j++] = _2L; //#11771 + if (!$_.dontdraw) { //#11771 + bwipp_renlinear(); //#11771 + } //#11771 + $_ = Object.getPrototypeOf($_); //#11773 + $_ = Object.getPrototypeOf($_); //#11775 +} //bwipp_planet +function bwipp_royalmail() { + $_ = Object.create($_); //#11805 + $_.dontdraw = false; //#11808 + $_.includetext = false; //#11809 + $_.validatecheck = false; //#11810 + $_.includecheckintext = false; //#11811 + $_.textfont = "OCR-B"; //#11812 + $_.textsize = 10; //#11813 + $_.textyoffset = -8; //#11814 + $_.height = 0.175; //#11815 + $k[$j++] = $_; //#11817 + bwipp_processoptions(); //#11817 + $_.options = $k[--$j]; //#11817 + $_.barcode = $k[--$j]; //#11818 + if ($eq($_.barcode, "")) { //#11822 + $k[$j++] = 'bwipp.royalmailEmptyData#11821'; //#11821 + $k[$j++] = "The data must not be empty"; //#11821 + bwipp_raiseerror(); //#11821 + } //#11821 + bwipp_loadctx(bwipp_royalmail) //#11824 + if (!bwipp_royalmail.__11842__) { //#11842 + $_ = Object.create($_); //#11842 + $_.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#11828 + $_.charvals = new Map; //#11829 + for (var _3 = 0; _3 <= 35; _3 += 1) { //#11830 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#11830 + } //#11830 + $_.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#11841 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_royalmail.$ctx[id] = $_[id]); //#11841 + bwipp_royalmail.__11842__ = 1; //#11841 + $_ = Object.getPrototypeOf($_); //#11841 + } //#11841 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#11849 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#11846 + if (!_F) { //#11848 + $k[$j++] = 'bwipp.royalmailBadCharacter#11847'; //#11847 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#11847 + bwipp_raiseerror(); //#11847 + } //#11847 + } //#11847 + $k[$j++] = 'barlen'; //#11851 + $k[$j++] = $_.barcode.length; //#11851 + if ($_.validatecheck) { //#11851 + var _I = $k[--$j]; //#11851 + $k[$j++] = $f(_I - 1); //#11851 + } //#11851 + var _J = $k[--$j]; //#11851 + $_[$k[--$j]] = _J; //#11851 + $_.checksumrow = 0; //#11853 + $_.checksumcol = 0; //#11854 + for (var _N = 0, _M = $f($_.barlen - 1); _N <= _M; _N += 1) { //#11860 + $_.i = _N; //#11856 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11857 + $_.checksumrow = $_.checksumrow + (~~($_.indx / 6)); //#11858 + $_.checksumcol = $f($_.checksumcol + ($_.indx % 6)); //#11859 + } //#11859 + $_.checksum = $f((($_.checksumrow % 6) * 6) + ($_.checksumcol % 6)); //#11861 + if ($_.validatecheck) { //#11867 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#11865 + $k[$j++] = 'bwipp.royalmailBadCheckDigit#11864'; //#11864 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#11864 + bwipp_raiseerror(); //#11864 + } //#11864 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#11866 + } //#11866 + $_.encstr = $s($f(($_.barlen * 4) + 6)); //#11869 + $_.txt = $a($f($_.barlen + 1)); //#11870 + $puti($_.encstr, 0, $get($_.encs, 36)); //#11873 + for (var _s = 0, _r = $f($_.barlen - 1); _s <= _r; _s += 1) { //#11880 + $_.i = _s; //#11876 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#11877 + $puti($_.encstr, ($_.i * 4) + 1, $get($_.encs, $_.indx)); //#11878 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.i * 4) + 1) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11879 + } //#11879 + $puti($_.encstr, $f(($_.barlen * 4) + 1), $get($_.encs, $_.checksum)); //#11883 + if ($_.includecheckintext) { //#11887 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum, 1), ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11885 + } else { //#11887 + $put($_.txt, $_.barlen, $a([" ", ($f(($_.barlen * 4) + 1)) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11887 + } //#11887 + $puti($_.encstr, $f(($_.barlen * 4) + 5), $get($_.encs, 37)); //#11891 + $_.bbs = $a($_.encstr.length); //#11893 + $_.bhs = $a($_.encstr.length); //#11894 + for (var _1k = 0, _1j = $_.encstr.length - 1; _1k <= _1j; _1k += 1) { //#11914 + $_.i = _1k; //#11896 + $_.enc = $geti($_.encstr, $_.i, 1); //#11897 + if ($eq($_.enc, "0")) { //#11901 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11899 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11900 + } //#11900 + if ($eq($_.enc, "1")) { //#11905 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11903 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11904 + } //#11904 + if ($eq($_.enc, "2")) { //#11909 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11907 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11908 + } //#11908 + if ($eq($_.enc, "3")) { //#11913 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11911 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11912 + } //#11912 + } //#11912 + $k[$j++] = Infinity; //#11917 + var _2G = $_.bbs; //#11919 + var _2H = $_.bhs; //#11920 + $k[$j++] = Infinity; //#11921 + for (var _2J = 0, _2K = $_.bhs.length - 1; _2J < _2K; _2J++) { //#11921 + $k[$j++] = 1.44; //#11921 + $k[$j++] = 1.872; //#11921 + } //#11921 + $k[$j++] = 1.44; //#11921 + var _2L = $a(); //#11921 + $k[$j++] = 'ren'; //#11924 + $k[$j++] = bwipp_renlinear; //#11924 + $k[$j++] = 'bbs'; //#11924 + $k[$j++] = _2G; //#11924 + $k[$j++] = 'bhs'; //#11924 + $k[$j++] = _2H; //#11924 + $k[$j++] = 'sbs'; //#11924 + $k[$j++] = _2L; //#11924 + if ($_.includetext) { //#11924 + $k[$j++] = 'txt'; //#11923 + $k[$j++] = $_.txt; //#11923 + } //#11923 + $k[$j++] = 'opt'; //#11925 + $k[$j++] = $_.options; //#11925 + var _2P = $d(); //#11925 + $k[$j++] = _2P; //#11928 + if (!$_.dontdraw) { //#11928 + bwipp_renlinear(); //#11928 + } //#11928 + $_ = Object.getPrototypeOf($_); //#11930 + $_ = Object.getPrototypeOf($_); //#11932 +} //bwipp_royalmail function bwipp_auspost() { - $_ = Object.create($_); //#11786 - $_.dontdraw = false; //#11789 - $_.includetext = false; //#11790 - $_.textfont = "OCR-B"; //#11791 - $_.textsize = 10; //#11792 - $_.textyoffset = -8; //#11793 - $_.height = 0.175; //#11794 - $_.custinfoenc = "character"; //#11795 - $k[$j++] = $_; //#11797 - bwipp_processoptions(); //#11797 - $_.options = $k[--$j]; //#11797 - $_.barcode = $k[--$j]; //#11798 - if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11802 - $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11801'; //#11801 - $k[$j++] = "Customer information encoding must be either character or numeric"; //#11801 - bwipp_raiseerror(); //#11801 - } //#11801 - bwipp_loadctx(bwipp_auspost) //#11804 - if (!bwipp_auspost.__11827__) { //#11827 - $_ = Object.create($_); //#11827 - $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11819 - $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11822 + $_ = Object.create($_); //#11962 + $_.dontdraw = false; //#11965 + $_.includetext = false; //#11966 + $_.textfont = "OCR-B"; //#11967 + $_.textsize = 10; //#11968 + $_.textyoffset = -8; //#11969 + $_.height = 0.175; //#11970 + $_.custinfoenc = "character"; //#11971 + $k[$j++] = $_; //#11973 + bwipp_processoptions(); //#11973 + $_.options = $k[--$j]; //#11973 + $_.barcode = $k[--$j]; //#11974 + if ($ne($_.custinfoenc, "character") && $ne($_.custinfoenc, "numeric")) { //#11978 + $k[$j++] = 'bwipp.auspostBadCustinfoEncoding#11977'; //#11977 + $k[$j++] = "Customer information encoding must be either character or numeric"; //#11977 + bwipp_raiseerror(); //#11977 + } //#11977 + bwipp_loadctx(bwipp_auspost) //#11980 + if (!bwipp_auspost.__12003__) { //#12003 + $_ = Object.create($_); //#12003 + $_.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#11995 + $_.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#11998 var _5 = new Map([ ["11", 37], ["45", 37], ["59", 52], ["62", 67] - ]); //#11825 - $_.fcclen = _5; //#11825 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11825 - bwipp_auspost.__11827__ = 1; //#11825 - $_ = Object.getPrototypeOf($_); //#11825 - } //#11825 - $_.barlen = $_.barcode.length; //#11829 - $_.txt = $a($_.barlen - 2); //#11830 - $k[$j++] = $_.fcclen; //#11832 - if ($_.barlen >= 2) { //#11832 - $k[$j++] = $geti($_.barcode, 0, 2); //#11832 - } else { //#11832 - $k[$j++] = ""; //#11832 - } //#11832 - var _E = $k[--$j]; //#11833 - var _F = $k[--$j]; //#11833 - var _G = $get(_F, _E) !== undefined; //#11833 - $k[$j++] = _F; //#11835 - $k[$j++] = _E; //#11835 - if (!_G) { //#11835 - $j -= 2; //#11834 - $k[$j++] = 'bwipp.auspostBadFCC#11834'; //#11834 - $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#11834 - bwipp_raiseerror(); //#11834 - } //#11834 - var _H = $k[--$j]; //#11836 - $_.encstr = $s($get($k[--$j], _H)); //#11836 - $k[$j++] = true; //#11843 - for (var _L = 0, _M = 1; _L < _M; _L++) { //#11843 - if ($_.barlen < 10) { //#11841 - $j--; //#11841 - $k[$j++] = false; //#11841 - break; //#11841 - } //#11841 - var _P = $geti($_.barcode, 2, 8); //#11842 - for (var _Q = 0, _R = _P.length; _Q < _R; _Q++) { //#11842 - var _S = $get(_P, _Q); //#11842 - if ((_S < 48) || (_S > 57)) { //#11842 - $j--; //#11842 - $k[$j++] = false; //#11842 - break; //#11842 - } //#11842 - } //#11842 - } //#11842 - if ($nt($k[--$j])) { //#11846 - $k[$j++] = 'bwipp.auspostIncompleteDPID#11845'; //#11845 - $k[$j++] = "The DPID must be 8 digits"; //#11845 - bwipp_raiseerror(); //#11845 - } //#11845 - var _W = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#11849 - if ((($_.barlen - 10) * _W) > (($_.encstr.length - 22) - 14)) { //#11852 - $k[$j++] = 'bwipp.auspostTooLong#11851'; //#11851 - $k[$j++] = "The message is too long"; //#11851 - bwipp_raiseerror(); //#11851 - } //#11851 - $puti($_.encstr, 0, $get($_.encs, 74)); //#11855 - for (var _b = 0; _b <= 1; _b += 1) { //#11862 - $_.i = _b; //#11859 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11861 - } //#11861 - for (var _j = 2; _j <= 9; _j += 1) { //#11870 - $_.i = _j; //#11866 - $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#11868 - $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11869 - } //#11869 - if ($eq($_.custinfoenc, "numeric")) { //#11898 - for (var _14 = 0, _13 = $_.barlen - 11; _14 <= _13; _14 += 1) { //#11883 - $_.i = _14; //#11875 - var _18 = $get($_.barcode, $_.i + 10); //#11876 - $k[$j++] = $_.encs; //#11879 - $k[$j++] = _18; //#11879 - if ((_18 < 48) || (_18 > 57)) { //#11879 - $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#11878'; //#11878 - $k[$j++] = "The customer information data contains a non-digit character"; //#11878 - bwipp_raiseerror(); //#11878 - } //#11878 - var _19 = $k[--$j]; //#11880 - $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_19 - 48) + 64))); //#11881 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11882 - } //#11882 - $_.ciflen = ($_.barlen - 10) * 2; //#11884 - } else { //#11898 - for (var _1R = 0, _1Q = $_.barlen - 11; _1R <= _1Q; _1R += 1) { //#11897 - $_.i = _1R; //#11887 - $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#11888 - if ($nt($k[--$j])) { //#11891 - $j--; //#11890 - $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#11890'; //#11890 - $k[$j++] = "The customer information contains an invalid character"; //#11890 - bwipp_raiseerror(); //#11890 - } //#11890 - $_.indx = $k[--$j].length; //#11892 - $j -= 2; //#11893 - $_.enc = $get($_.encs, $_.indx); //#11894 - $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#11895 - $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#11896 - } //#11896 - $_.ciflen = ($_.barlen - 10) * 3; //#11898 - } //#11898 - for (var _1s = 22 + $_.ciflen, _1r = $_.encstr.length - 14; _1s <= _1r; _1s += 1) { //#11904 - $puti($_.encstr, _1s, $get($_.encs, 75)); //#11903 - } //#11903 - if (!bwipp_auspost.__11927__) { //#11927 - $_ = Object.create($_); //#11927 - $_.rstable = $a(64 * 64); //#11908 - $k[$j++] = $_.rstable; //#11909 - $k[$j++] = 0; //#11909 - $k[$j++] = Infinity; //#11909 - for (var _1y = 0, _1z = 64; _1y < _1z; _1y++) { //#11909 - $k[$j++] = 0; //#11909 - } //#11909 - var _20 = $a(); //#11909 - var _21 = $k[--$j]; //#11909 - $puti($k[--$j], _21, _20); //#11909 - $k[$j++] = $_.rstable; //#11910 - $k[$j++] = 64; //#11910 - $k[$j++] = Infinity; //#11910 - for (var _24 = 0; _24 <= 63; _24 += 1) { //#11910 - $k[$j++] = _24; //#11910 - } //#11910 - var _25 = $a(); //#11910 - var _26 = $k[--$j]; //#11910 - $puti($k[--$j], _26, _25); //#11910 - $_.prev = 1; //#11911 - for (var _28 = 0, _29 = 64; _28 < _29; _28++) { //#11926 - $_.next = $_.prev << 1; //#11913 - if (($_.next & 64) != 0) { //#11916 - $_.next = $_.next ^ 67; //#11915 - } //#11915 - for (var _2D = 0; _2D <= 63; _2D += 1) { //#11924 - $_.j = _2D; //#11918 - $_.nextcell = function() { - $k[$j++] = $_.rstable; //#11919 - $k[$j++] = (64 * $_.next) + $_.j; //#11919 - }; //#11919 - $_.nextcell(); //#11920 - var _2L = $k[--$j]; //#11920 - $put($k[--$j], _2L, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#11920 - $_.nextcell(); //#11921 - var _2N = $k[--$j]; //#11921 - if (($get($k[--$j], _2N) & 64) != 0) { //#11923 - $_.nextcell(); //#11922 - $_.nextcell(); //#11922 - var _2Q = $k[--$j]; //#11922 - var _2S = $get($k[--$j], _2Q); //#11922 - var _2T = $k[--$j]; //#11922 - $put($k[--$j], _2T, _2S ^ 67); //#11922 - } //#11922 - } //#11922 - $_.prev = $_.next; //#11925 - } //#11925 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#11925 - bwipp_auspost.__11927__ = 1; //#11925 - $_ = Object.getPrototypeOf($_); //#11925 - } //#11925 - $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#11930 - $k[$j++] = $_.rscodes; //#11931 - $k[$j++] = 0; //#11931 - $k[$j++] = Infinity; //#11931 - for (var _2a = 0, _2b = 4; _2a < _2b; _2a++) { //#11931 - $k[$j++] = 0; //#11931 - } //#11931 - var _2c = $a(); //#11931 - var _2d = $k[--$j]; //#11931 - $puti($k[--$j], _2d, _2c); //#11931 - for (var _2h = 2, _2g = $_.encstr.length - 16; _2h <= _2g; _2h += 3) { //#11939 - $_.i = _2h; //#11933 - $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#11938 - } //#11938 - for (var _2v = $_.rscodes.length - 5; _2v >= 0; _2v -= 1) { //#11948 - $_.i = _2v; //#11941 - for (var _2w = 0; _2w <= 4; _2w += 1) { //#11947 - $_.j = _2w; //#11943 - $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#11946 - } //#11946 - } //#11946 - $_.checkcode = $strcpy($s(12), "000000000000"); //#11949 - for (var _3E = 0; _3E <= 3; _3E += 1) { //#11954 - $_.i = _3E; //#11951 - $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#11952 - $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#11953 - } //#11953 - $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#11957 - $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#11958 - $_.bbs = $a($_.encstr.length); //#11960 - $_.bhs = $a($_.encstr.length); //#11961 - for (var _3b = 0, _3a = $_.encstr.length - 1; _3b <= _3a; _3b += 1) { //#11981 - $_.i = _3b; //#11963 - $_.enc = $geti($_.encstr, $_.i, 1); //#11964 - if ($eq($_.enc, "0")) { //#11968 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11966 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#11967 - } //#11967 - if ($eq($_.enc, "1")) { //#11972 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11970 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11971 - } //#11971 - if ($eq($_.enc, "2")) { //#11976 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#11974 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#11975 - } //#11975 - if ($eq($_.enc, "3")) { //#11980 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#11978 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#11979 - } //#11979 - } //#11979 - $k[$j++] = Infinity; //#11992 - var _47 = $_.bbs; //#11986 - var _48 = $_.bhs; //#11987 - $k[$j++] = Infinity; //#11988 - for (var _4A = 0, _4B = $_.bhs.length - 1; _4A < _4B; _4A++) { //#11988 - $k[$j++] = 1.44; //#11988 - $k[$j++] = 1.872; //#11988 - } //#11988 - $k[$j++] = 1.44; //#11988 - var _4C = $a(); //#11988 - $k[$j++] = 'ren'; //#11991 - $k[$j++] = bwipp_renlinear; //#11991 - $k[$j++] = 'bbs'; //#11991 - $k[$j++] = _47; //#11991 - $k[$j++] = 'bhs'; //#11991 - $k[$j++] = _48; //#11991 - $k[$j++] = 'sbs'; //#11991 - $k[$j++] = _4C; //#11991 - if ($_.includetext) { //#11991 - $k[$j++] = 'txt'; //#11990 - $k[$j++] = $_.txt; //#11990 - } //#11990 - $k[$j++] = 'opt'; //#11992 - $k[$j++] = $_.options; //#11992 - var _4G = $d(); //#11992 - $k[$j++] = _4G; //#11995 - if (!$_.dontdraw) { //#11995 - bwipp_renlinear(); //#11995 - } //#11995 - $_ = Object.getPrototypeOf($_); //#11997 - $_ = Object.getPrototypeOf($_); //#11999 -} - -function bwipp_kix() { - $_ = Object.create($_); //#12029 - $_.dontdraw = false; //#12032 - $_.includetext = false; //#12033 - $_.textfont = "OCR-B"; //#12034 - $_.textsize = 10; //#12035 - $_.textyoffset = -8; //#12036 - $_.height = 0.175; //#12037 - $k[$j++] = $_; //#12039 - bwipp_processoptions(); //#12039 - $_.options = $k[--$j]; //#12039 - var _1 = $k[--$j]; //#12040 - $_.barcode = _1; //#12040 - bwipp_loadctx(bwipp_kix) //#12042 - if (!bwipp_kix.__12059__) { //#12059 - $_ = Object.create($_); //#12059 - $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12053 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12056 - $_.charvals = new Map; //#12057 - for (var _3 = 0; _3 <= 35; _3 += 1) { //#12058 - $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12058 - } //#12058 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12058 - bwipp_kix.__12059__ = 1; //#12058 - $_ = Object.getPrototypeOf($_); //#12058 - } //#12058 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12066 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12063 - if (!_E) { //#12065 - $k[$j++] = 'bwipp.kixBadCharacter#12064'; //#12064 - $k[$j++] = "KIX must contain only capital letters and digits"; //#12064 - bwipp_raiseerror(); //#12064 - } //#12064 - } //#12064 - $_.barlen = $_.barcode.length; //#12068 - $_.encstr = $s($_.barlen * 4); //#12069 - $_.txt = $a($_.barlen); //#12070 - for (var _M = 0, _L = $_.barlen - 1; _M <= _L; _M += 1) { //#12077 - $_.i = _M; //#12073 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12074 - $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12075 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 - } //#12076 - $_.bbs = $a($_.encstr.length); //#12079 - $_.bhs = $a($_.encstr.length); //#12080 - for (var _n = 0, _m = $_.encstr.length - 1; _n <= _m; _n += 1) { //#12100 - $_.i = _n; //#12082 - $_.enc = $geti($_.encstr, $_.i, 1); //#12083 - if ($eq($_.enc, "0")) { //#12087 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12085 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12086 - } //#12086 - if ($eq($_.enc, "1")) { //#12091 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12089 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12090 + ]); //#12001 + $_.fcclen = _5; //#12001 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12001 + bwipp_auspost.__12003__ = 1; //#12001 + $_ = Object.getPrototypeOf($_); //#12001 + } //#12001 + $_.barlen = $_.barcode.length; //#12005 + if ($_.barlen < 10) { //#12008 + $k[$j++] = 'bwipp.auspostTooShort#12007'; //#12007 + $k[$j++] = "The data length must be at least 10"; //#12007 + bwipp_raiseerror(); //#12007 + } //#12007 + $_.txt = $a($_.barlen - 2); //#12010 + $k[$j++] = $_.fcclen; //#12012 + if ($_.barlen >= 2) { //#12012 + $k[$j++] = $geti($_.barcode, 0, 2); //#12012 + } else { //#12012 + $k[$j++] = ""; //#12012 + } //#12012 + var _F = $k[--$j]; //#12013 + var _G = $k[--$j]; //#12013 + var _H = $get(_G, _F) !== undefined; //#12013 + $k[$j++] = _G; //#12015 + $k[$j++] = _F; //#12015 + if (!_H) { //#12015 + $j -= 2; //#12014 + $k[$j++] = 'bwipp.auspostBadFCC#12014'; //#12014 + $k[$j++] = "Must begin with an FCC, either 11, 45, 59 or 62"; //#12014 + bwipp_raiseerror(); //#12014 + } //#12014 + var _I = $k[--$j]; //#12016 + $_.encstr = $s($get($k[--$j], _I)); //#12016 + $k[$j++] = true; //#12023 + for (var _M = 0, _N = 1; _M < _N; _M++) { //#12023 + if ($_.barlen < 10) { //#12021 + $j--; //#12021 + $k[$j++] = false; //#12021 + break; //#12021 + } //#12021 + var _Q = $geti($_.barcode, 2, 8); //#12022 + for (var _R = 0, _S = _Q.length; _R < _S; _R++) { //#12022 + var _T = $get(_Q, _R); //#12022 + if ((_T < 48) || (_T > 57)) { //#12022 + $j--; //#12022 + $k[$j++] = false; //#12022 + break; //#12022 + } //#12022 + } //#12022 + } //#12022 + if ($nt($k[--$j])) { //#12026 + $k[$j++] = 'bwipp.auspostIncompleteDPID#12025'; //#12025 + $k[$j++] = "The DPID must be 8 digits"; //#12025 + bwipp_raiseerror(); //#12025 + } //#12025 + var _X = $eq($_.custinfoenc, "numeric") ? 2 : 3; //#12029 + if ((($_.barlen - 10) * _X) > (($_.encstr.length - 22) - 14)) { //#12032 + $k[$j++] = 'bwipp.auspostTooLong#12031'; //#12031 + $k[$j++] = "The message is too long"; //#12031 + bwipp_raiseerror(); //#12031 + } //#12031 + $puti($_.encstr, 0, $get($_.encs, 74)); //#12035 + for (var _c = 0; _c <= 1; _c += 1) { //#12042 + $_.i = _c; //#12039 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12041 + } //#12041 + for (var _k = 2; _k <= 9; _k += 1) { //#12050 + $_.i = _k; //#12046 + $puti($_.encstr, ($_.i * 2) + 2, $get($_.encs, $cvi($geti($_.barcode, $_.i, 1)) + 64)); //#12048 + $put($_.txt, $_.i - 2, $a([$geti($_.barcode, $_.i, 1), ((($_.i - 2) * 2) + 6) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12049 + } //#12049 + if ($eq($_.custinfoenc, "numeric")) { //#12078 + for (var _15 = 0, _14 = $_.barlen - 11; _15 <= _14; _15 += 1) { //#12063 + $_.i = _15; //#12055 + var _19 = $get($_.barcode, $_.i + 10); //#12056 + $k[$j++] = $_.encs; //#12059 + $k[$j++] = _19; //#12059 + if ((_19 < 48) || (_19 > 57)) { //#12059 + $k[$j++] = 'bwipp.auspostInvalidCustinfoDigit#12058'; //#12058 + $k[$j++] = "The customer information data contains a non-digit character"; //#12058 + bwipp_raiseerror(); //#12058 + } //#12058 + var _1A = $k[--$j]; //#12060 + $puti($_.encstr, ($_.i * 2) + 22, $get($k[--$j], $f($f(_1A - 48) + 64))); //#12061 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 2) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12062 + } //#12062 + $_.ciflen = ($_.barlen - 10) * 2; //#12064 + } else { //#12078 + for (var _1S = 0, _1R = $_.barlen - 11; _1S <= _1R; _1S += 1) { //#12077 + $_.i = _1S; //#12067 + $search($_.barchars, $geti($_.barcode, $_.i + 10, 1)); //#12068 + if ($nt($k[--$j])) { //#12071 + $j--; //#12070 + $k[$j++] = 'bwipp.auspostInvalidCustinfoCharacter#12070'; //#12070 + $k[$j++] = "The customer information contains an invalid character"; //#12070 + bwipp_raiseerror(); //#12070 + } //#12070 + $_.indx = $k[--$j].length; //#12072 + $j -= 2; //#12073 + $_.enc = $get($_.encs, $_.indx); //#12074 + $puti($_.encstr, ($_.i * 3) + 22, $_.enc); //#12075 + $put($_.txt, $_.i + 8, $a([$geti($_.barcode, $_.i + 10, 1), (($_.i * 3) + 22) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12076 + } //#12076 + $_.ciflen = ($_.barlen - 10) * 3; //#12078 + } //#12078 + for (var _1t = 22 + $_.ciflen, _1s = $_.encstr.length - 14; _1t <= _1s; _1t += 1) { //#12084 + $puti($_.encstr, _1t, $get($_.encs, 75)); //#12083 + } //#12083 + if (!bwipp_auspost.__12107__) { //#12107 + $_ = Object.create($_); //#12107 + $_.rstable = $a(64 * 64); //#12088 + $k[$j++] = $_.rstable; //#12089 + $k[$j++] = 0; //#12089 + $k[$j++] = Infinity; //#12089 + for (var _1z = 0, _20 = 64; _1z < _20; _1z++) { //#12089 + $k[$j++] = 0; //#12089 + } //#12089 + var _21 = $a(); //#12089 + var _22 = $k[--$j]; //#12089 + $puti($k[--$j], _22, _21); //#12089 + $k[$j++] = $_.rstable; //#12090 + $k[$j++] = 64; //#12090 + $k[$j++] = Infinity; //#12090 + for (var _25 = 0; _25 <= 63; _25 += 1) { //#12090 + $k[$j++] = _25; //#12090 } //#12090 - if ($eq($_.enc, "2")) { //#12095 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12093 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12094 - } //#12094 - if ($eq($_.enc, "3")) { //#12099 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12097 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12098 - } //#12098 - } //#12098 + var _26 = $a(); //#12090 + var _27 = $k[--$j]; //#12090 + $puti($k[--$j], _27, _26); //#12090 + $_.prev = 1; //#12091 + for (var _29 = 0, _2A = 64; _29 < _2A; _29++) { //#12106 + $_.next = $_.prev << 1; //#12093 + if (($_.next & 64) != 0) { //#12096 + $_.next = $_.next ^ 67; //#12095 + } //#12095 + for (var _2E = 0; _2E <= 63; _2E += 1) { //#12104 + $_.j = _2E; //#12098 + $_.nextcell = function() { + $k[$j++] = $_.rstable; //#12099 + $k[$j++] = (64 * $_.next) + $_.j; //#12099 + }; //#12099 + $_.nextcell(); //#12100 + var _2M = $k[--$j]; //#12100 + $put($k[--$j], _2M, $get($_.rstable, (64 * $_.prev) + $_.j) << 1); //#12100 + $_.nextcell(); //#12101 + var _2O = $k[--$j]; //#12101 + if (($get($k[--$j], _2O) & 64) != 0) { //#12103 + $_.nextcell(); //#12102 + $_.nextcell(); //#12102 + var _2R = $k[--$j]; //#12102 + var _2T = $get($k[--$j], _2R); //#12102 + var _2U = $k[--$j]; //#12102 + $put($k[--$j], _2U, _2T ^ 67); //#12102 + } //#12102 + } //#12102 + $_.prev = $_.next; //#12105 + } //#12105 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_auspost.$ctx[id] = $_[id]); //#12105 + bwipp_auspost.__12107__ = 1; //#12105 + $_ = Object.getPrototypeOf($_); //#12105 + } //#12105 + $_.rscodes = $a((~~(($_.encstr.length - 16) / 3)) + 4); //#12110 + $k[$j++] = $_.rscodes; //#12111 + $k[$j++] = 0; //#12111 $k[$j++] = Infinity; //#12111 - var _1J = $_.bbs; //#12105 - var _1K = $_.bhs; //#12106 - $k[$j++] = Infinity; //#12107 - for (var _1M = 0, _1N = $_.bhs.length - 1; _1M < _1N; _1M++) { //#12107 - $k[$j++] = 1.44; //#12107 - $k[$j++] = 1.872; //#12107 - } //#12107 - $k[$j++] = 1.44; //#12107 - var _1O = $a(); //#12107 - $k[$j++] = 'ren'; //#12110 - $k[$j++] = bwipp_renlinear; //#12110 - $k[$j++] = 'bbs'; //#12110 - $k[$j++] = _1J; //#12110 - $k[$j++] = 'bhs'; //#12110 - $k[$j++] = _1K; //#12110 - $k[$j++] = 'sbs'; //#12110 - $k[$j++] = _1O; //#12110 - if ($_.includetext) { //#12110 - $k[$j++] = 'txt'; //#12109 - $k[$j++] = $_.txt; //#12109 - } //#12109 - $k[$j++] = 'opt'; //#12111 - $k[$j++] = $_.options; //#12111 - var _1S = $d(); //#12111 - $k[$j++] = _1S; //#12114 - if (!$_.dontdraw) { //#12114 - bwipp_renlinear(); //#12114 - } //#12114 - $_ = Object.getPrototypeOf($_); //#12116 - $_ = Object.getPrototypeOf($_); //#12118 -} - -function bwipp_japanpost() { - $_ = Object.create($_); //#12148 - $_.dontdraw = false; //#12151 - $_.includetext = false; //#12152 - $_.includecheckintext = false; //#12153 - $_.textfont = "OCR-B"; //#12154 - $_.textsize = 10; //#12155 - $_.textyoffset = -8; //#12156 - $_.height = 0.175; //#12157 - $k[$j++] = $_; //#12159 - bwipp_processoptions(); //#12159 - $_.options = $k[--$j]; //#12159 - $_.barcode = $k[--$j]; //#12160 - bwipp_loadctx(bwipp_japanpost) //#12162 - $forall($_.barcode, function() { //#12171 - var _3 = $k[--$j]; //#12166 - if (!(((_3 >= 48) && (_3 <= 57)) || (((_3 >= 65) && (_3 <= 90)) || (_3 == 45)))) { //#12170 - $k[$j++] = 'bwipp.japanPostBadCharacter#12169'; //#12169 - $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12169 - if ('raiseerror'() === true) { - return true; - } //#12169 - } //#12169 - }); //#12169 - if (!bwipp_japanpost.__12183__) { //#12183 - $_ = Object.create($_); //#12183 - $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12179 - $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12182 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12182 - bwipp_japanpost.__12183__ = 1; //#12182 - $_ = Object.getPrototypeOf($_); //#12182 - } //#12182 - $_.barlen = $_.barcode.length; //#12185 - $_.encstr = $s(((20 + 1) * 3) + 4); //#12187 - $_.digits = $a(20); //#12188 - $_.txt = $a($_.barlen + 1); //#12189 - $puti($_.encstr, 0, $get($_.encs, 19)); //#12192 - $_.checksum = 0; //#12194 - $_.j = 0; //#12195 - $_.i = 0; //#12195 - $k[$j++] = true; //#12230 - for (var _G = 0, _F = $_.barlen - 1; _G <= _F; _G += 1) { //#12230 - $_.i = _G; //#12198 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12199 - $j--; //#12200 - $_.indx = $k[--$j].length; //#12201 - $j -= 2; //#12202 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12213 - if ($_.j > 18) { //#12204 - $j--; //#12204 - $k[$j++] = false; //#12204 - break; //#12204 - } //#12204 - $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12208 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12209 - $_.checksum = $_.checksum + $_.digit; //#12210 - $put($_.digits, $_.j, $_.digit); //#12211 - $_.j = $_.j + 1; //#12212 - } //#12212 - if ($_.j > 19) { //#12214 - $j--; //#12214 - $k[$j++] = false; //#12214 - break; //#12214 - } //#12214 - $_.digit = 0; //#12215 - if ($_.indx == 37) { //#12218 - $_.digit = 14; //#12217 - } //#12217 - if (($_.indx >= 11) && ($_.indx < 37)) { //#12221 - $_.digit = ($_.indx - 1) % 10; //#12220 - } //#12220 - if ($_.indx < 11) { //#12224 - $_.digit = $_.indx; //#12223 - } //#12223 - $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12225 - $_.checksum = $_.checksum + $_.digit; //#12226 - $put($_.digits, $_.j, $_.digit); //#12227 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12228 - $_.j = $_.j + 1; //#12229 - } //#12229 - if ($nt($k[--$j])) { //#12234 - $k[$j++] = 'bwipp.japanpostTooLong#12233'; //#12233 - $k[$j++] = "The input is too long"; //#12233 - bwipp_raiseerror(); //#12233 - } //#12233 - for (var _16 = $_.j, _15 = 20 - 1; _16 <= _15; _16 += 1) { //#12242 - $_.k = _16; //#12238 - $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12239 - $_.checksum = $_.checksum + 14; //#12240 - $put($_.digits, $_.k, 14); //#12241 - } //#12241 - $_.checksum = 19 - ($_.checksum % 19); //#12245 - $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12246 - $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12249 - $_.checkdigit = " "; //#12250 - if ($_.includecheckintext) { //#12253 - $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12252 - } //#12252 - $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12254 - $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12257 - $_.bbs = $a((21 * 3) + 4); //#12259 - $_.bhs = $a($_.bbs.length); //#12260 - for (var _1f = 0, _1e = $_.bbs.length - 1; _1f <= _1e; _1f += 1) { //#12284 - $_.i = _1f; //#12262 - $_.enc = $geti($_.encstr, $_.i, 1); //#12263 - $_.bunit = 0; //#12264 - $_.hunit = 0; //#12265 - if ($eq($_.enc, "0")) { //#12269 - $_.bunit = 3; //#12267 - $_.hunit = 2; //#12268 - } //#12268 - if ($eq($_.enc, "1")) { //#12273 - $_.bunit = 0; //#12271 - $_.hunit = 5; //#12272 - } //#12272 - if ($eq($_.enc, "2")) { //#12277 - $_.bunit = 3; //#12275 - $_.hunit = 5; //#12276 - } //#12276 - if ($eq($_.enc, "3")) { //#12281 - $_.bunit = 0; //#12279 - $_.hunit = 8; //#12280 - } //#12280 - $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12282 - $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12283 - } //#12283 - $k[$j++] = Infinity; //#12295 - var _1v = $_.bbs; //#12289 - var _1w = $_.bhs; //#12290 + for (var _2b = 0, _2c = 4; _2b < _2c; _2b++) { //#12111 + $k[$j++] = 0; //#12111 + } //#12111 + var _2d = $a(); //#12111 + var _2e = $k[--$j]; //#12111 + $puti($k[--$j], _2e, _2d); //#12111 + for (var _2i = 2, _2h = $_.encstr.length - 16; _2i <= _2h; _2i += 3) { //#12119 + $_.i = _2i; //#12113 + $put($_.rscodes, ($_.rscodes.length - (~~(($_.i - 2) / 3))) - 1, (($cvi($geti($_.encstr, $_.i, 1)) * 16) + ($cvi($geti($_.encstr, $_.i + 1, 1)) * 4)) + $cvi($geti($_.encstr, $_.i + 2, 1))); //#12118 + } //#12118 + for (var _2w = $_.rscodes.length - 5; _2w >= 0; _2w -= 1) { //#12128 + $_.i = _2w; //#12121 + for (var _2x = 0; _2x <= 4; _2x += 1) { //#12127 + $_.j = _2x; //#12123 + $put($_.rscodes, $_.i + $_.j, $xo($get($_.rscodes, $_.i + $_.j), $get($_.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $_.j)) + $get($_.rscodes, $_.i + 4))))); //#12126 + } //#12126 + } //#12126 + $_.checkcode = $strcpy($s(12), "000000000000"); //#12129 + for (var _3F = 0; _3F <= 3; _3F += 1) { //#12134 + $_.i = _3F; //#12131 + $_.enc = $cvrs($s(3), $get($_.rscodes, 3 - $_.i), 4); //#12132 + $puti($_.checkcode, ($_.i * 3) + (3 - $_.enc.length), $_.enc); //#12133 + } //#12133 + $puti($_.encstr, $_.encstr.length - 14, $_.checkcode); //#12137 + $puti($_.encstr, $_.encstr.length - 2, $get($_.encs, 74)); //#12138 + $_.bbs = $a($_.encstr.length); //#12140 + $_.bhs = $a($_.encstr.length); //#12141 + for (var _3c = 0, _3b = $_.encstr.length - 1; _3c <= _3b; _3c += 1) { //#12161 + $_.i = _3c; //#12143 + $_.enc = $geti($_.encstr, $_.i, 1); //#12144 + if ($eq($_.enc, "0")) { //#12148 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12146 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12147 + } //#12147 + if ($eq($_.enc, "1")) { //#12152 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12150 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12151 + } //#12151 + if ($eq($_.enc, "2")) { //#12156 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12154 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12155 + } //#12155 + if ($eq($_.enc, "3")) { //#12160 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12158 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12159 + } //#12159 + } //#12159 + $k[$j++] = Infinity; //#12164 + var _48 = $_.bbs; //#12166 + var _49 = $_.bhs; //#12167 + $k[$j++] = Infinity; //#12168 + for (var _4B = 0, _4C = $_.bhs.length - 1; _4B < _4C; _4B++) { //#12168 + $k[$j++] = 1.44; //#12168 + $k[$j++] = 1.872; //#12168 + } //#12168 + $k[$j++] = 1.44; //#12168 + var _4D = $a(); //#12168 + $k[$j++] = 'ren'; //#12171 + $k[$j++] = bwipp_renlinear; //#12171 + $k[$j++] = 'bbs'; //#12171 + $k[$j++] = _48; //#12171 + $k[$j++] = 'bhs'; //#12171 + $k[$j++] = _49; //#12171 + $k[$j++] = 'sbs'; //#12171 + $k[$j++] = _4D; //#12171 + if ($_.includetext) { //#12171 + $k[$j++] = 'txt'; //#12170 + $k[$j++] = $_.txt; //#12170 + } //#12170 + $k[$j++] = 'opt'; //#12172 + $k[$j++] = $_.options; //#12172 + var _4H = $d(); //#12172 + $k[$j++] = _4H; //#12175 + if (!$_.dontdraw) { //#12175 + bwipp_renlinear(); //#12175 + } //#12175 + $_ = Object.getPrototypeOf($_); //#12177 + $_ = Object.getPrototypeOf($_); //#12179 +} //bwipp_auspost +function bwipp_kix() { + $_ = Object.create($_); //#12209 + $_.dontdraw = false; //#12212 + $_.includetext = false; //#12213 + $_.textfont = "OCR-B"; //#12214 + $_.textsize = 10; //#12215 + $_.textyoffset = -8; //#12216 + $_.height = 0.175; //#12217 + $k[$j++] = $_; //#12219 + bwipp_processoptions(); //#12219 + $_.options = $k[--$j]; //#12219 + $_.barcode = $k[--$j]; //#12220 + if ($eq($_.barcode, "")) { //#12224 + $k[$j++] = 'bwipp.kixEmptyData#12223'; //#12223 + $k[$j++] = "The data must not be empty"; //#12223 + bwipp_raiseerror(); //#12223 + } //#12223 + bwipp_loadctx(bwipp_kix) //#12226 + if (!bwipp_kix.__12243__) { //#12243 + $_ = Object.create($_); //#12243 + $_.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#12237 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12240 + $_.charvals = new Map; //#12241 + for (var _4 = 0; _4 <= 35; _4 += 1) { //#12242 + $put($_.charvals, $geti($_.barchars, _4, 1), _4); //#12242 + } //#12242 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_kix.$ctx[id] = $_[id]); //#12242 + bwipp_kix.__12243__ = 1; //#12242 + $_ = Object.getPrototypeOf($_); //#12242 + } //#12242 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12250 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12247 + if (!_F) { //#12249 + $k[$j++] = 'bwipp.kixBadCharacter#12248'; //#12248 + $k[$j++] = "KIX must contain only capital letters and digits"; //#12248 + bwipp_raiseerror(); //#12248 + } //#12248 + } //#12248 + $_.barlen = $_.barcode.length; //#12252 + $_.encstr = $s($_.barlen * 4); //#12253 + $_.txt = $a($_.barlen); //#12254 + for (var _N = 0, _M = $_.barlen - 1; _N <= _M; _N += 1) { //#12261 + $_.i = _N; //#12257 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12258 + $puti($_.encstr, $_.i * 4, $get($_.encs, $_.indx)); //#12259 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 4) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12260 + } //#12260 + $_.bbs = $a($_.encstr.length); //#12263 + $_.bhs = $a($_.encstr.length); //#12264 + for (var _o = 0, _n = $_.encstr.length - 1; _o <= _n; _o += 1) { //#12284 + $_.i = _o; //#12266 + $_.enc = $geti($_.encstr, $_.i, 1); //#12267 + if ($eq($_.enc, "0")) { //#12271 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12269 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#12270 + } //#12270 + if ($eq($_.enc, "1")) { //#12275 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12273 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12274 + } //#12274 + if ($eq($_.enc, "2")) { //#12279 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#12277 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#12278 + } //#12278 + if ($eq($_.enc, "3")) { //#12283 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#12281 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#12282 + } //#12282 + } //#12282 + $k[$j++] = Infinity; //#12287 + var _1K = $_.bbs; //#12289 + var _1L = $_.bhs; //#12290 $k[$j++] = Infinity; //#12291 - for (var _1y = 0, _1z = $_.bhs.length - 1; _1y < _1z; _1y++) { //#12291 + for (var _1N = 0, _1O = $_.bhs.length - 1; _1N < _1O; _1N++) { //#12291 $k[$j++] = 1.44; //#12291 $k[$j++] = 1.872; //#12291 } //#12291 $k[$j++] = 1.44; //#12291 - var _20 = $a(); //#12291 + var _1P = $a(); //#12291 $k[$j++] = 'ren'; //#12294 $k[$j++] = bwipp_renlinear; //#12294 $k[$j++] = 'bbs'; //#12294 - $k[$j++] = _1v; //#12294 + $k[$j++] = _1K; //#12294 $k[$j++] = 'bhs'; //#12294 - $k[$j++] = _1w; //#12294 + $k[$j++] = _1L; //#12294 $k[$j++] = 'sbs'; //#12294 - $k[$j++] = _20; //#12294 + $k[$j++] = _1P; //#12294 if ($_.includetext) { //#12294 $k[$j++] = 'txt'; //#12293 $k[$j++] = $_.txt; //#12293 } //#12293 $k[$j++] = 'opt'; //#12295 $k[$j++] = $_.options; //#12295 - var _24 = $d(); //#12295 - $k[$j++] = _24; //#12298 + var _1T = $d(); //#12295 + $k[$j++] = _1T; //#12298 if (!$_.dontdraw) { //#12298 bwipp_renlinear(); //#12298 } //#12298 $_ = Object.getPrototypeOf($_); //#12300 $_ = Object.getPrototypeOf($_); //#12302 -} - -function bwipp_msi() { +} //bwipp_kix +function bwipp_japanpost() { $_ = Object.create($_); //#12332 $_.dontdraw = false; //#12335 - $_.includecheck = false; //#12336 - $_.includetext = false; //#12337 - $_.includecheckintext = false; //#12338 - $_.checktype = "unset"; //#12339 - $_.badmod11 = false; //#12340 - $_.textfont = "OCR-B"; //#12341 - $_.textsize = 10; //#12342 - $_.textyoffset = -8; //#12343 - $_.height = 1; //#12344 - $k[$j++] = $_; //#12346 - bwipp_processoptions(); //#12346 - $_.options = $k[--$j]; //#12346 - $_.barcode = $k[--$j]; //#12347 - if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12351 - $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12350'; //#12350 - $k[$j++] = "checktype requires includecheck"; //#12350 - bwipp_raiseerror(); //#12350 - } //#12350 - if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12355 - $k[$j++] = 'bwipp.msiBadMod11Mismatch#12354'; //#12354 - $k[$j++] = "badmod11 requires checktype with mod11"; //#12354 - bwipp_raiseerror(); //#12354 - } //#12354 - if ($eq($_.checktype, "unset")) { //#12357 - $_.checktype = "mod10"; //#12357 - } //#12357 - bwipp_loadctx(bwipp_msi) //#12359 - $forall($_.barcode, function() { //#12366 - var _B = $k[--$j]; //#12363 - if ((_B < 48) || (_B > 57)) { //#12365 - $k[$j++] = 'bwipp.msiBadCharacter#12364'; //#12364 - $k[$j++] = "MSI must contain only digits"; //#12364 - bwipp_raiseerror(); //#12364 - } //#12364 - }); //#12364 - if (!bwipp_msi.__12378__) { //#12378 - $_ = Object.create($_); //#12378 - $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12374 - $_.barchars = "0123456789"; //#12377 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12377 - bwipp_msi.__12378__ = 1; //#12377 - $_ = Object.getPrototypeOf($_); //#12377 - } //#12377 - $_.barlen = $_.barcode.length; //#12380 - $_.txtlen = $_.barlen; //#12381 + $_.includetext = false; //#12336 + $_.includecheckintext = false; //#12337 + $_.textfont = "OCR-B"; //#12338 + $_.textsize = 10; //#12339 + $_.textyoffset = -8; //#12340 + $_.height = 0.175; //#12341 + $k[$j++] = $_; //#12343 + bwipp_processoptions(); //#12343 + $_.options = $k[--$j]; //#12343 + $_.barcode = $k[--$j]; //#12344 + if ($eq($_.barcode, "")) { //#12348 + $k[$j++] = 'bwipp.japanpostEmptyData#12347'; //#12347 + $k[$j++] = "The data must not be empty"; //#12347 + bwipp_raiseerror(); //#12347 + } //#12347 + bwipp_loadctx(bwipp_japanpost) //#12350 + $forall($_.barcode, function() { //#12359 + var _4 = $k[--$j]; //#12354 + if (!(((_4 >= 48) && (_4 <= 57)) || (((_4 >= 65) && (_4 <= 90)) || (_4 == 45)))) { //#12358 + $k[$j++] = 'bwipp.japanpostBadCharacter#12357'; //#12357 + $k[$j++] = "Japan Post must contain only digits, capital letters and the dash symbol"; //#12357 + bwipp_raiseerror(); //#12357 + } //#12357 + }); //#12357 + if (!bwipp_japanpost.__12371__) { //#12371 + $_ = Object.create($_); //#12371 + $_.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#12367 + $_.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#12370 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_japanpost.$ctx[id] = $_[id]); //#12370 + bwipp_japanpost.__12371__ = 1; //#12370 + $_ = Object.getPrototypeOf($_); //#12370 + } //#12370 + $_.barlen = $_.barcode.length; //#12373 + $_.encstr = $s(((20 + 1) * 3) + 4); //#12375 + $_.digits = $a(20); //#12376 + $_.txt = $a($_.barlen + 1); //#12377 + $puti($_.encstr, 0, $get($_.encs, 19)); //#12380 + $_.checksum = 0; //#12382 + $_.j = 0; //#12383 + $_.i = 0; //#12383 + $k[$j++] = true; //#12418 + for (var _H = 0, _G = $_.barlen - 1; _H <= _G; _H += 1) { //#12418 + $_.i = _H; //#12386 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12387 + $j--; //#12388 + $_.indx = $k[--$j].length; //#12389 + $j -= 2; //#12390 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12401 + if ($_.j > 18) { //#12392 + $j--; //#12392 + $k[$j++] = false; //#12392 + break; //#12392 + } //#12392 + $_.digit = (~~(($_.indx - 1) / 10)) + 10; //#12396 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12397 + $_.checksum = $_.checksum + $_.digit; //#12398 + $put($_.digits, $_.j, $_.digit); //#12399 + $_.j = $_.j + 1; //#12400 + } //#12400 + if ($_.j > 19) { //#12402 + $j--; //#12402 + $k[$j++] = false; //#12402 + break; //#12402 + } //#12402 + $_.digit = 0; //#12403 + if ($_.indx == 37) { //#12406 + $_.digit = 14; //#12405 + } //#12405 + if (($_.indx >= 11) && ($_.indx < 37)) { //#12409 + $_.digit = ($_.indx - 1) % 10; //#12408 + } //#12408 + if ($_.indx < 11) { //#12412 + $_.digit = $_.indx; //#12411 + } //#12411 + $puti($_.encstr, ($_.j * 3) + 2, $get($_.encs, $_.digit)); //#12413 + $_.checksum = $_.checksum + $_.digit; //#12414 + $put($_.digits, $_.j, $_.digit); //#12415 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), (($_.j * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12416 + $_.j = $_.j + 1; //#12417 + } //#12417 + if ($nt($k[--$j])) { //#12422 + $k[$j++] = 'bwipp.japanpostTooLong#12421'; //#12421 + $k[$j++] = "The input is too long"; //#12421 + bwipp_raiseerror(); //#12421 + } //#12421 + for (var _17 = $_.j, _16 = 20 - 1; _17 <= _16; _17 += 1) { //#12430 + $_.k = _17; //#12426 + $puti($_.encstr, ($_.k * 3) + 2, $get($_.encs, 14)); //#12427 + $_.checksum = $_.checksum + 14; //#12428 + $put($_.digits, $_.k, 14); //#12429 + } //#12429 + $_.checksum = 19 - ($_.checksum % 19); //#12433 + $puti($_.encstr, 2 + (20 * 3), $get($_.encs, $_.checksum)); //#12434 + $puti($_.encstr, 2 + (21 * 3), $get($_.encs, 20)); //#12437 + $_.checkdigit = " "; //#12438 + if ($_.includecheckintext) { //#12441 + $_.checkdigit = $geti($_.barchars, $_.checksum, 1); //#12440 + } //#12440 + $put($_.txt, $_.i + 1, $a([$_.checkdigit, ((20 * 3) + 2) * 3.312, $_.textyoffset, $_.textfont, $_.textsize])); //#12442 + $puti($_.encstr, ((20 + 1) * 3) + 2, $get($_.encs, 20)); //#12445 + $_.bbs = $a((21 * 3) + 4); //#12447 + $_.bhs = $a($_.bbs.length); //#12448 + for (var _1g = 0, _1f = $_.bbs.length - 1; _1g <= _1f; _1g += 1) { //#12472 + $_.i = _1g; //#12450 + $_.enc = $geti($_.encstr, $_.i, 1); //#12451 + $_.bunit = 0; //#12452 + $_.hunit = 0; //#12453 + if ($eq($_.enc, "0")) { //#12457 + $_.bunit = 3; //#12455 + $_.hunit = 2; //#12456 + } //#12456 + if ($eq($_.enc, "1")) { //#12461 + $_.bunit = 0; //#12459 + $_.hunit = 5; //#12460 + } //#12460 + if ($eq($_.enc, "2")) { //#12465 + $_.bunit = 3; //#12463 + $_.hunit = 5; //#12464 + } //#12464 + if ($eq($_.enc, "3")) { //#12469 + $_.bunit = 0; //#12467 + $_.hunit = 8; //#12468 + } //#12468 + $put($_.bbs, $_.i, ($_.bunit * $_.height) / 8); //#12470 + $put($_.bhs, $_.i, ($_.hunit * $_.height) / 8); //#12471 + } //#12471 + $k[$j++] = Infinity; //#12475 + var _1w = $_.bbs; //#12477 + var _1x = $_.bhs; //#12478 + $k[$j++] = Infinity; //#12479 + for (var _1z = 0, _20 = $_.bhs.length - 1; _1z < _20; _1z++) { //#12479 + $k[$j++] = 1.44; //#12479 + $k[$j++] = 1.872; //#12479 + } //#12479 + $k[$j++] = 1.44; //#12479 + var _21 = $a(); //#12479 + $k[$j++] = 'ren'; //#12482 + $k[$j++] = bwipp_renlinear; //#12482 + $k[$j++] = 'bbs'; //#12482 + $k[$j++] = _1w; //#12482 + $k[$j++] = 'bhs'; //#12482 + $k[$j++] = _1x; //#12482 + $k[$j++] = 'sbs'; //#12482 + $k[$j++] = _21; //#12482 + if ($_.includetext) { //#12482 + $k[$j++] = 'txt'; //#12481 + $k[$j++] = $_.txt; //#12481 + } //#12481 + $k[$j++] = 'opt'; //#12483 + $k[$j++] = $_.options; //#12483 + var _25 = $d(); //#12483 + $k[$j++] = _25; //#12486 + if (!$_.dontdraw) { //#12486 + bwipp_renlinear(); //#12486 + } //#12486 + $_ = Object.getPrototypeOf($_); //#12488 + $_ = Object.getPrototypeOf($_); //#12490 +} //bwipp_japanpost +function bwipp_msi() { + $_ = Object.create($_); //#12520 + $_.dontdraw = false; //#12523 + $_.includecheck = false; //#12524 + $_.includetext = false; //#12525 + $_.includecheckintext = false; //#12526 + $_.checktype = "unset"; //#12527 + $_.badmod11 = false; //#12528 + $_.textfont = "OCR-B"; //#12529 + $_.textsize = 10; //#12530 + $_.textyoffset = -8; //#12531 + $_.height = 1; //#12532 + $k[$j++] = $_; //#12534 + bwipp_processoptions(); //#12534 + $_.options = $k[--$j]; //#12534 + $_.barcode = $k[--$j]; //#12535 + if ($ne($_.checktype, "unset") && (!$_.includecheck)) { //#12539 + $k[$j++] = 'bwipp.msiCheckTypeWithoutCheck#12538'; //#12538 + $k[$j++] = "checktype requires includecheck"; //#12538 + bwipp_raiseerror(); //#12538 + } //#12538 + if ($_.badmod11 && ((($ne($_.checktype, "mod11") && $ne($_.checktype, "ncrmod11")) && $ne($_.checktype, "mod1110")) && $ne($_.checktype, "ncrmod1110"))) { //#12543 + $k[$j++] = 'bwipp.msiBadMod11Mismatch#12542'; //#12542 + $k[$j++] = "badmod11 requires checktype with mod11"; //#12542 + bwipp_raiseerror(); //#12542 + } //#12542 + if ($eq($_.checktype, "unset")) { //#12545 + $_.checktype = "mod10"; //#12545 + } //#12545 + bwipp_loadctx(bwipp_msi) //#12547 + $forall($_.barcode, function() { //#12554 + var _B = $k[--$j]; //#12551 + if ((_B < 48) || (_B > 57)) { //#12553 + $k[$j++] = 'bwipp.msiBadCharacter#12552'; //#12552 + $k[$j++] = "MSI must contain only digits"; //#12552 + bwipp_raiseerror(); //#12552 + } //#12552 + }); //#12552 + if (!bwipp_msi.__12566__) { //#12566 + $_ = Object.create($_); //#12566 + $_.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#12562 + $_.barchars = "0123456789"; //#12565 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12565 + bwipp_msi.__12566__ = 1; //#12565 + $_ = Object.getPrototypeOf($_); //#12565 + } //#12565 + $_.barlen = $_.barcode.length; //#12568 + $_.txtlen = $_.barlen; //#12569 $_.mod10 = function() { - $_.code = $k[--$j]; //#12384 - $k[$j++] = 0; //#12385 - $k[$j++] = 0; //#12385 - $forall($_.code, function() { //#12385 - var _I = $k[--$j]; //#12385 - var _J = $k[--$j]; //#12385 - var _K = $k[--$j]; //#12385 - $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12385 - $k[$j++] = _K; //#12385 - }); //#12385 - $j--; //#12385 - var _L = $k[--$j]; //#12385 - $k[$j++] = _L * 2; //#12386 - $k[$j++] = 0; //#12386 - for (;;) { //#12386 - var _M = $k[--$j]; //#12386 - var _N = $k[--$j]; //#12386 - var _O = ~~(_N / 10); //#12386 - $k[$j++] = $f(_M + (_N % 10)); //#12386 - $k[$j++] = _O; //#12386 - if (_O == 0) { //#12386 - $j--; //#12386 - break; //#12386 - } //#12386 - var _P = $k[--$j]; //#12386 - var _Q = $k[--$j]; //#12386 - $k[$j++] = _P; //#12386 - $k[$j++] = _Q; //#12386 - } //#12386 - $k[$j++] = 0; //#12387 - $k[$j++] = 0; //#12387 - $forall($_.code, function() { //#12387 - var _S = $k[--$j]; //#12387 - var _T = $k[--$j]; //#12387 - var _U = $k[--$j]; //#12387 - $k[$j++] = $f(_T + $f(_S - 48)); //#12387 - $k[$j++] = _U; //#12387 - }); //#12387 - var _V = $k[--$j]; //#12387 - var _W = $k[--$j]; //#12387 - $k[$j++] = _V; //#12387 - $k[$j++] = _W; //#12387 - $j--; //#12387 - var _X = $k[--$j]; //#12387 - var _a = $s($_.code.length + 1); //#12389 - $puti(_a, 0, $_.code); //#12389 - $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12389 - $k[$j++] = _a; //#12389 - }; //#12389 + $_.code = $k[--$j]; //#12572 + $k[$j++] = 0; //#12573 + $k[$j++] = 0; //#12573 + $forall($_.code, function() { //#12573 + var _I = $k[--$j]; //#12573 + var _J = $k[--$j]; //#12573 + var _K = $k[--$j]; //#12573 + $k[$j++] = $f($f(_I - 48) + (_J * 10)); //#12573 + $k[$j++] = _K; //#12573 + }); //#12573 + $j--; //#12573 + var _L = $k[--$j]; //#12573 + $k[$j++] = _L * 2; //#12574 + $k[$j++] = 0; //#12574 + for (;;) { //#12574 + var _M = $k[--$j]; //#12574 + var _N = $k[--$j]; //#12574 + var _O = ~~(_N / 10); //#12574 + $k[$j++] = $f(_M + (_N % 10)); //#12574 + $k[$j++] = _O; //#12574 + if (_O == 0) { //#12574 + $j--; //#12574 + break; //#12574 + } //#12574 + var _P = $k[--$j]; //#12574 + var _Q = $k[--$j]; //#12574 + $k[$j++] = _P; //#12574 + $k[$j++] = _Q; //#12574 + } //#12574 + $k[$j++] = 0; //#12575 + $k[$j++] = 0; //#12575 + $forall($_.code, function() { //#12575 + var _S = $k[--$j]; //#12575 + var _T = $k[--$j]; //#12575 + var _U = $k[--$j]; //#12575 + $k[$j++] = $f(_T + $f(_S - 48)); //#12575 + $k[$j++] = _U; //#12575 + }); //#12575 + var _V = $k[--$j]; //#12575 + var _W = $k[--$j]; //#12575 + $k[$j++] = _V; //#12575 + $k[$j++] = _W; //#12575 + $j--; //#12575 + var _X = $k[--$j]; //#12575 + var _a = $s($_.code.length + 1); //#12577 + $puti(_a, 0, $_.code); //#12577 + $put(_a, $_.code.length, $f((($f(10 - ($f($k[--$j] + _X) % 10))) % 10) + 48)); //#12577 + $k[$j++] = _a; //#12577 + }; //#12577 $_.mod11 = function() { - $_.code = $k[--$j]; //#12393 - $k[$j++] = $_.code.length - 1; //#12394 - $forall($_.code, function() { //#12394 - var _g = $k[--$j]; //#12394 - var _h = $k[--$j]; //#12394 - $k[$j++] = $f(_g - 48); //#12394 - $k[$j++] = $f((_h % 6) + 2); //#12394 - $k[$j++] = $f(_h - 1); //#12394 - }); //#12394 - $j--; //#12394 - $k[$j++] = 0; //#12395 - for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12395 - var _l = $k[--$j]; //#12395 - var _m = $k[--$j]; //#12395 - var _n = $k[--$j]; //#12395 - $k[$j++] = $f(_l + (_n * _m)); //#12395 - } //#12395 - var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12397 - $k[$j++] = _p; //#12405 - if (_p == 10) { //#12404 - if ($_.badmod11) { //#12401 - $j--; //#12399 - var _s = $s($_.code.length + 2); //#12399 - $puti(_s, 0, $_.code); //#12399 - $puti(_s, $_.code.length, "10"); //#12399 - $k[$j++] = _s; //#12399 - } else { //#12401 - $j--; //#12401 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12401'; //#12401 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12401 - bwipp_raiseerror(); //#12401 - } //#12401 - } else { //#12404 - var _w = $s($_.code.length + 1); //#12404 - $puti(_w, 0, $_.code); //#12404 - $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12404 - $k[$j++] = _w; //#12404 - } //#12404 - }; //#12404 + $_.code = $k[--$j]; //#12581 + $k[$j++] = $_.code.length - 1; //#12582 + $forall($_.code, function() { //#12582 + var _g = $k[--$j]; //#12582 + var _h = $k[--$j]; //#12582 + $k[$j++] = $f(_g - 48); //#12582 + $k[$j++] = $f((_h % 6) + 2); //#12582 + $k[$j++] = $f(_h - 1); //#12582 + }); //#12582 + $j--; //#12582 + $k[$j++] = 0; //#12583 + for (var _j = 0, _k = $_.code.length; _j < _k; _j++) { //#12583 + var _l = $k[--$j]; //#12583 + var _m = $k[--$j]; //#12583 + var _n = $k[--$j]; //#12583 + $k[$j++] = $f(_l + (_n * _m)); //#12583 + } //#12583 + var _p = ($f(11 - ($k[--$j] % 11))) % 11; //#12585 + $k[$j++] = _p; //#12593 + if (_p == 10) { //#12592 + if ($_.badmod11) { //#12589 + $j--; //#12587 + var _s = $s($_.code.length + 2); //#12587 + $puti(_s, 0, $_.code); //#12587 + $puti(_s, $_.code.length, "10"); //#12587 + $k[$j++] = _s; //#12587 + } else { //#12589 + $j--; //#12589 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12589'; //#12589 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12589 + bwipp_raiseerror(); //#12589 + } //#12589 + } else { //#12592 + var _w = $s($_.code.length + 1); //#12592 + $puti(_w, 0, $_.code); //#12592 + $put(_w, $_.code.length, $f($k[--$j] + 48)); //#12592 + $k[$j++] = _w; //#12592 + } //#12592 + }; //#12592 $_.ncrmod11 = function() { - $_.code = $k[--$j]; //#12409 - $k[$j++] = $_.code.length - 1; //#12410 - $forall($_.code, function() { //#12410 - var _13 = $k[--$j]; //#12410 - var _14 = $k[--$j]; //#12410 - $k[$j++] = $f(_13 - 48); //#12410 - $k[$j++] = $f((_14 % 8) + 2); //#12410 - $k[$j++] = $f(_14 - 1); //#12410 - }); //#12410 - $j--; //#12410 - $k[$j++] = 0; //#12411 - for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12411 - var _18 = $k[--$j]; //#12411 - var _19 = $k[--$j]; //#12411 - var _1A = $k[--$j]; //#12411 - $k[$j++] = $f(_18 + (_1A * _19)); //#12411 - } //#12411 - var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12413 - $k[$j++] = _1C; //#12421 - if (_1C == 10) { //#12420 - if ($_.badmod11) { //#12417 - $j--; //#12415 - var _1F = $s($_.code.length + 2); //#12415 - $puti(_1F, 0, $_.code); //#12415 - $puti(_1F, $_.code.length, "10"); //#12415 - $k[$j++] = _1F; //#12415 - } else { //#12417 - $j--; //#12417 - $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12417'; //#12417 - $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12417 - bwipp_raiseerror(); //#12417 - } //#12417 - } else { //#12420 - var _1J = $s($_.code.length + 1); //#12420 - $puti(_1J, 0, $_.code); //#12420 - $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12420 - $k[$j++] = _1J; //#12420 - } //#12420 - }; //#12420 - if (!bwipp_msi.__12433__) { //#12433 - $_ = Object.create($_); //#12433 + $_.code = $k[--$j]; //#12597 + $k[$j++] = $_.code.length - 1; //#12598 + $forall($_.code, function() { //#12598 + var _13 = $k[--$j]; //#12598 + var _14 = $k[--$j]; //#12598 + $k[$j++] = $f(_13 - 48); //#12598 + $k[$j++] = $f((_14 % 8) + 2); //#12598 + $k[$j++] = $f(_14 - 1); //#12598 + }); //#12598 + $j--; //#12598 + $k[$j++] = 0; //#12599 + for (var _16 = 0, _17 = $_.code.length; _16 < _17; _16++) { //#12599 + var _18 = $k[--$j]; //#12599 + var _19 = $k[--$j]; //#12599 + var _1A = $k[--$j]; //#12599 + $k[$j++] = $f(_18 + (_1A * _19)); //#12599 + } //#12599 + var _1C = ($f(11 - ($k[--$j] % 11))) % 11; //#12601 + $k[$j++] = _1C; //#12609 + if (_1C == 10) { //#12608 + if ($_.badmod11) { //#12605 + $j--; //#12603 + var _1F = $s($_.code.length + 2); //#12603 + $puti(_1F, 0, $_.code); //#12603 + $puti(_1F, $_.code.length, "10"); //#12603 + $k[$j++] = _1F; //#12603 + } else { //#12605 + $j--; //#12605 + $k[$j++] = 'bwipp.msiBadMod11NotSpecified#12605'; //#12605 + $k[$j++] = "mod11 check digit is 10 but badmod11 not specified"; //#12605 + bwipp_raiseerror(); //#12605 + } //#12605 + } else { //#12608 + var _1J = $s($_.code.length + 1); //#12608 + $puti(_1J, 0, $_.code); //#12608 + $put(_1J, $_.code.length, $f($k[--$j] + 48)); //#12608 + $k[$j++] = _1J; //#12608 + } //#12608 + }; //#12608 + if (!bwipp_msi.__12621__) { //#12621 + $_ = Object.create($_); //#12621 var _1N = new Map([ ["mod10", function() { - $_.mod10(); //#12426 + $_.mod10(); //#12614 }], ["mod1010", function() { - $_.mod10(); //#12427 - $_.mod10(); //#12427 + $_.mod10(); //#12615 + $_.mod10(); //#12615 }], ["mod11", function() { - $_.mod11(); //#12428 + $_.mod11(); //#12616 }], ["ncrmod11", function() { - $_.ncrmod11(); //#12429 + $_.ncrmod11(); //#12617 }], ["mod1110", function() { - $_.mod11(); //#12430 - $_.mod10(); //#12430 + $_.mod11(); //#12618 + $_.mod10(); //#12618 }], ["ncrmod1110", function() { - $_.ncrmod11(); //#12431 - $_.mod10(); //#12431 + $_.ncrmod11(); //#12619 + $_.mod10(); //#12619 }] - ]); //#12431 - $_.checkfunc = _1N; //#12432 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12432 - bwipp_msi.__12433__ = 1; //#12432 - $_ = Object.getPrototypeOf($_); //#12432 - } //#12432 - if ($_.includecheck) { //#12443 - var _1Q = $_.checkfunc; //#12437 - var _1R = $_.checktype; //#12437 - var _1S = $get(_1Q, _1R) !== undefined; //#12437 - $k[$j++] = _1Q; //#12439 - $k[$j++] = _1R; //#12439 - if (!_1S) { //#12439 - $j -= 2; //#12438 - $k[$j++] = 'bwipp.msiBadCharacter#12438'; //#12438 - $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12438 - bwipp_raiseerror(); //#12438 - } //#12438 - var _1T = $k[--$j]; //#12440 - var _1V = $get($k[--$j], _1T); //#12440 - $k[$j++] = $_.barcode; //#12440 + ]); //#12619 + $_.checkfunc = _1N; //#12620 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_msi.$ctx[id] = $_[id]); //#12620 + bwipp_msi.__12621__ = 1; //#12620 + $_ = Object.getPrototypeOf($_); //#12620 + } //#12620 + if ($_.includecheck) { //#12631 + var _1Q = $_.checkfunc; //#12625 + var _1R = $_.checktype; //#12625 + var _1S = $get(_1Q, _1R) !== undefined; //#12625 + $k[$j++] = _1Q; //#12627 + $k[$j++] = _1R; //#12627 + if (!_1S) { //#12627 + $j -= 2; //#12626 + $k[$j++] = 'bwipp.msiBadCharacter#12626'; //#12626 + $k[$j++] = "MSI checktype must be mod10, mod1010, mod11, ncrmod11, mod1110 or ncrmod1110"; //#12626 + bwipp_raiseerror(); //#12626 + } //#12626 + var _1T = $k[--$j]; //#12628 + var _1V = $get($k[--$j], _1T); //#12628 + $k[$j++] = $_.barcode; //#12628 if (_1V() === true) { return true; - } //#12440 - $_.barcode = $k[--$j]; //#12440 - $_.barlen = $_.barcode.length; //#12441 - if ($_.includecheckintext) { //#12442 - $_.txtlen = $_.barlen; //#12442 - } //#12442 - } //#12442 - $_.sbs = $s(($_.barlen * 8) + 5); //#12445 - $_.txt = $a($_.barlen); //#12446 - $puti($_.sbs, 0, $get($_.encs, 10)); //#12449 - for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12461 - $_.i = _1k; //#12452 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12454 - $j--; //#12455 - $_.indx = $k[--$j].length; //#12456 - $j -= 2; //#12457 - $_.enc = $get($_.encs, $_.indx); //#12458 - $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12459 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12460 - } //#12460 - $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12464 - $k[$j++] = Infinity; //#12475 - $k[$j++] = Infinity; //#12469 - var _2A = $_.sbs; //#12469 - for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12469 - $k[$j++] = $get(_2A, _2B) - 48; //#12469 - } //#12469 - var _2E = $a(); //#12469 - $k[$j++] = Infinity; //#12470 - for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12470 - $k[$j++] = $_.height; //#12470 - } //#12470 - var _2J = $a(); //#12470 - $k[$j++] = Infinity; //#12471 - for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12471 - $k[$j++] = 0; //#12471 - } //#12471 - var _2N = $a(); //#12471 - $k[$j++] = 'ren'; //#12474 - $k[$j++] = bwipp_renlinear; //#12474 - $k[$j++] = 'sbs'; //#12474 - $k[$j++] = _2E; //#12474 - $k[$j++] = 'bhs'; //#12474 - $k[$j++] = _2J; //#12474 - $k[$j++] = 'bbs'; //#12474 - $k[$j++] = _2N; //#12474 - if ($_.includetext) { //#12474 - $k[$j++] = 'txt'; //#12473 - $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12473 - } //#12473 - $k[$j++] = 'opt'; //#12475 - $k[$j++] = $_.options; //#12475 - var _2T = $d(); //#12475 - $k[$j++] = _2T; //#12478 - if (!$_.dontdraw) { //#12478 - bwipp_renlinear(); //#12478 - } //#12478 - $_ = Object.getPrototypeOf($_); //#12480 - $_ = Object.getPrototypeOf($_); //#12482 -} - + } //#12628 + $_.barcode = $k[--$j]; //#12628 + $_.barlen = $_.barcode.length; //#12629 + if ($_.includecheckintext) { //#12630 + $_.txtlen = $_.barlen; //#12630 + } //#12630 + } //#12630 + $_.sbs = $s(($_.barlen * 8) + 5); //#12633 + $_.txt = $a($_.barlen); //#12634 + $puti($_.sbs, 0, $get($_.encs, 10)); //#12637 + for (var _1k = 0, _1j = $_.barlen - 1; _1k <= _1j; _1k += 1) { //#12649 + $_.i = _1k; //#12640 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#12642 + $j--; //#12643 + $_.indx = $k[--$j].length; //#12644 + $j -= 2; //#12645 + $_.enc = $get($_.encs, $_.indx); //#12646 + $puti($_.sbs, ($_.i * 8) + 2, $_.enc); //#12647 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 12) + 3, $_.textyoffset, $_.textfont, $_.textsize])); //#12648 + } //#12648 + $puti($_.sbs, ($_.barlen * 8) + 2, $get($_.encs, 11)); //#12652 + $k[$j++] = Infinity; //#12655 + $k[$j++] = Infinity; //#12657 + var _2A = $_.sbs; //#12657 + for (var _2B = 0, _2C = _2A.length; _2B < _2C; _2B++) { //#12657 + $k[$j++] = $get(_2A, _2B) - 48; //#12657 + } //#12657 + var _2E = $a(); //#12657 + $k[$j++] = Infinity; //#12658 + for (var _2G = 0, _2H = ~~(($_.sbs.length + 1) / 2); _2G < _2H; _2G++) { //#12658 + $k[$j++] = $_.height; //#12658 + } //#12658 + var _2J = $a(); //#12658 + $k[$j++] = Infinity; //#12659 + for (var _2L = 0, _2M = ~~(($_.sbs.length + 1) / 2); _2L < _2M; _2L++) { //#12659 + $k[$j++] = 0; //#12659 + } //#12659 + var _2N = $a(); //#12659 + $k[$j++] = 'ren'; //#12662 + $k[$j++] = bwipp_renlinear; //#12662 + $k[$j++] = 'sbs'; //#12662 + $k[$j++] = _2E; //#12662 + $k[$j++] = 'bhs'; //#12662 + $k[$j++] = _2J; //#12662 + $k[$j++] = 'bbs'; //#12662 + $k[$j++] = _2N; //#12662 + if ($_.includetext) { //#12662 + $k[$j++] = 'txt'; //#12661 + $k[$j++] = $geti($_.txt, 0, $_.txtlen); //#12661 + } //#12661 + $k[$j++] = 'opt'; //#12663 + $k[$j++] = $_.options; //#12663 + var _2T = $d(); //#12663 + $k[$j++] = _2T; //#12666 + if (!$_.dontdraw) { //#12666 + bwipp_renlinear(); //#12666 + } //#12666 + $_ = Object.getPrototypeOf($_); //#12668 + $_ = Object.getPrototypeOf($_); //#12670 +} //bwipp_msi function bwipp_plessey() { - $_ = Object.create($_); //#12512 - $_.dontdraw = false; //#12515 - $_.includetext = false; //#12516 - $_.validatecheck = false; //#12517 - $_.includecheckintext = false; //#12518 - $_.unidirectional = false; //#12519 - $_.textfont = "OCR-B"; //#12520 - $_.textsize = 10; //#12521 - $_.textyoffset = -8; //#12522 - $_.height = 1; //#12523 - $k[$j++] = $_; //#12525 - bwipp_processoptions(); //#12525 - $_.options = $k[--$j]; //#12525 - var _1 = $k[--$j]; //#12526 - $_.barcode = _1; //#12526 - bwipp_loadctx(bwipp_plessey) //#12528 - if (!bwipp_plessey.__12544__) { //#12544 - $_ = Object.create($_); //#12544 - $_.barchars = "0123456789ABCDEF"; //#12532 - $_.charvals = new Map; //#12533 - for (var _2 = 0; _2 <= 15; _2 += 1) { //#12534 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#12534 - } //#12534 - $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12543 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12543 - bwipp_plessey.__12544__ = 1; //#12543 - $_ = Object.getPrototypeOf($_); //#12543 - } //#12543 - for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#12551 - var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#12548 - if (!_E) { //#12550 - $k[$j++] = 'bwipp.plesseyBadCharacter#12549'; //#12549 - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12549 - bwipp_raiseerror(); //#12549 - } //#12549 - } //#12549 - $k[$j++] = 'barlen'; //#12553 - $k[$j++] = $_.barcode.length; //#12553 - if ($_.validatecheck) { //#12553 - var _H = $k[--$j]; //#12553 - $k[$j++] = $f(_H - 2); //#12553 - } //#12553 - var _I = $k[--$j]; //#12553 - $_[$k[--$j]] = _I; //#12553 - $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12556 - $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12557 - for (var _R = 0, _Q = $f($_.barlen - 1); _R <= _Q; _R += 1) { //#12567 - $_.i = _R; //#12559 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12560 - $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12566 - } //#12566 - $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12568 - for (var _h = 0, _g = $f(($_.barlen * 4) - 1); _h <= _g; _h += 1) { //#12577 - $_.i = _h; //#12570 - if ($get($_.checkbits, $_.i) == 1) { //#12576 - for (var _l = 0; _l <= 8; _l += 1) { //#12575 - $_.j = _l; //#12573 - $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12574 - } //#12574 - } //#12574 - } //#12574 - $_.checkval = 0; //#12578 - for (var _w = 0; _w <= 7; _w += 1) { //#12582 - $_.i = _w; //#12580 - $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12581 - } //#12581 - $_.checksum1 = $_.checkval & 15; //#12583 - $_.checksum2 = $_.checkval >>> 4; //#12584 - if ($_.validatecheck) { //#12591 - if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12589 - $k[$j++] = 'bwipp.plesseyBadCheckDigits#12588'; //#12588 - $k[$j++] = "Incorrect Plessey check digits provided"; //#12588 - bwipp_raiseerror(); //#12588 - } //#12588 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12590 - } //#12590 - var _1N = $_.unidirectional ? 27 : 33; //#12593 - $_.sbs = $s($f(($_.barlen * 8) + _1N)); //#12593 - $_.txt = $a($f($_.barlen + 2)); //#12594 - $puti($_.sbs, 0, $get($_.encs, 16)); //#12597 - for (var _1W = 0, _1V = $f($_.barlen - 1); _1W <= _1V; _1W += 1) { //#12604 - $_.i = _1W; //#12600 - $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12601 - $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12602 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12603 - } //#12603 - $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12607 - $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12608 - if ($_.includecheckintext) { //#12614 - $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12610 - $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12611 - } else { //#12614 - $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12613 - $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12614 - } //#12614 - var _2e = $_.unidirectional ? 18 : 17; //#12618 - $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2e)); //#12618 - $k[$j++] = Infinity; //#12629 - $k[$j++] = Infinity; //#12623 - var _2g = $_.sbs; //#12623 - for (var _2h = 0, _2i = _2g.length; _2h < _2i; _2h++) { //#12623 - $k[$j++] = $get(_2g, _2h) - 48; //#12623 - } //#12623 - var _2k = $a(); //#12623 - $k[$j++] = Infinity; //#12624 - for (var _2m = 0, _2n = ~~(($_.sbs.length + 1) / 2); _2m < _2n; _2m++) { //#12624 - $k[$j++] = $_.height; //#12624 - } //#12624 - var _2p = $a(); //#12624 - $k[$j++] = Infinity; //#12625 - for (var _2r = 0, _2s = ~~(($_.sbs.length + 1) / 2); _2r < _2s; _2r++) { //#12625 - $k[$j++] = 0; //#12625 - } //#12625 - var _2t = $a(); //#12625 - $k[$j++] = 'ren'; //#12628 - $k[$j++] = bwipp_renlinear; //#12628 - $k[$j++] = 'sbs'; //#12628 - $k[$j++] = _2k; //#12628 - $k[$j++] = 'bhs'; //#12628 - $k[$j++] = _2p; //#12628 - $k[$j++] = 'bbs'; //#12628 - $k[$j++] = _2t; //#12628 - if ($_.includetext) { //#12628 - $k[$j++] = 'txt'; //#12627 - $k[$j++] = $_.txt; //#12627 - } //#12627 - $k[$j++] = 'opt'; //#12629 - $k[$j++] = $_.options; //#12629 - var _2x = $d(); //#12629 - $k[$j++] = _2x; //#12632 - if (!$_.dontdraw) { //#12632 - bwipp_renlinear(); //#12632 - } //#12632 - $_ = Object.getPrototypeOf($_); //#12634 - $_ = Object.getPrototypeOf($_); //#12636 -} - + $_ = Object.create($_); //#12700 + $_.dontdraw = false; //#12703 + $_.includetext = false; //#12704 + $_.validatecheck = false; //#12705 + $_.includecheckintext = false; //#12706 + $_.unidirectional = false; //#12707 + $_.textfont = "OCR-B"; //#12708 + $_.textsize = 10; //#12709 + $_.textyoffset = -8; //#12710 + $_.height = 1; //#12711 + $k[$j++] = $_; //#12713 + bwipp_processoptions(); //#12713 + $_.options = $k[--$j]; //#12713 + $_.barcode = $k[--$j]; //#12714 + if ($eq($_.barcode, "")) { //#12718 + $k[$j++] = 'bwipp.plesseyEmptyData#12717'; //#12717 + $k[$j++] = "The data must not be empty"; //#12717 + bwipp_raiseerror(); //#12717 + } //#12717 + bwipp_loadctx(bwipp_plessey) //#12720 + if (!bwipp_plessey.__12736__) { //#12736 + $_ = Object.create($_); //#12736 + $_.barchars = "0123456789ABCDEF"; //#12724 + $_.charvals = new Map; //#12725 + for (var _3 = 0; _3 <= 15; _3 += 1) { //#12726 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#12726 + } //#12726 + $_.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#12735 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_plessey.$ctx[id] = $_[id]); //#12735 + bwipp_plessey.__12736__ = 1; //#12735 + $_ = Object.getPrototypeOf($_); //#12735 + } //#12735 + for (var _B = 0, _A = $_.barcode.length - 1; _B <= _A; _B += 1) { //#12743 + var _F = $get($_.charvals, $geti($_.barcode, _B, 1)) !== undefined; //#12740 + if (!_F) { //#12742 + $k[$j++] = 'bwipp.plesseyBadCharacter#12741'; //#12741 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#12741 + bwipp_raiseerror(); //#12741 + } //#12741 + } //#12741 + $k[$j++] = 'barlen'; //#12745 + $k[$j++] = $_.barcode.length; //#12745 + if ($_.validatecheck) { //#12745 + var _I = $k[--$j]; //#12745 + $k[$j++] = $f(_I - 2); //#12745 + } //#12745 + var _J = $k[--$j]; //#12745 + $_[$k[--$j]] = _J; //#12745 + $_.checkbits = $a($f(($_.barlen * 4) + 8)); //#12748 + $puti($_.checkbits, $_.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#12749 + for (var _S = 0, _R = $f($_.barlen - 1); _S <= _R; _S += 1) { //#12759 + $_.i = _S; //#12751 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12752 + $puti($_.checkbits, $_.i * 4, $a([$_.indx & 1, ($_.indx >>> 1) & 1, ($_.indx >>> 2) & 1, $_.indx >>> 3])); //#12758 + } //#12758 + $_.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#12760 + for (var _i = 0, _h = $f(($_.barlen * 4) - 1); _i <= _h; _i += 1) { //#12769 + $_.i = _i; //#12762 + if ($get($_.checkbits, $_.i) == 1) { //#12768 + for (var _m = 0; _m <= 8; _m += 1) { //#12767 + $_.j = _m; //#12765 + $put($_.checkbits, $_.i + $_.j, $xo($get($_.checkbits, $_.i + $_.j), $get($_.checksalt, $_.j))); //#12766 + } //#12766 + } //#12766 + } //#12766 + $_.checkval = 0; //#12770 + for (var _x = 0; _x <= 7; _x += 1) { //#12774 + $_.i = _x; //#12772 + $_.checkval = $f($_.checkval + ((~~Math.pow(2, $_.i)) * $get($_.checkbits, $f(($_.barlen * 4) + $_.i)))); //#12773 + } //#12773 + $_.checksum1 = $_.checkval & 15; //#12775 + $_.checksum2 = $_.checkval >>> 4; //#12776 + if ($_.validatecheck) { //#12783 + if (($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum1)) || ($get($_.barcode, $f($_.barlen + 1)) != $get($_.barchars, $_.checksum2))) { //#12781 + $k[$j++] = 'bwipp.plesseyBadCheckDigits#12780'; //#12780 + $k[$j++] = "Incorrect Plessey check digits provided"; //#12780 + bwipp_raiseerror(); //#12780 + } //#12780 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#12782 + } //#12782 + var _1O = $_.unidirectional ? 27 : 33; //#12785 + $_.sbs = $s($f(($_.barlen * 8) + _1O)); //#12785 + $_.txt = $a($f($_.barlen + 2)); //#12786 + $puti($_.sbs, 0, $get($_.encs, 16)); //#12789 + for (var _1X = 0, _1W = $f($_.barlen - 1); _1X <= _1W; _1X += 1) { //#12796 + $_.i = _1X; //#12792 + $_.indx = $get($_.charvals, $geti($_.barcode, $_.i, 1)); //#12793 + $puti($_.sbs, ($_.i * 8) + 8, $get($_.encs, $_.indx)); //#12794 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), ($_.i * 20) + 20, $_.textyoffset, $_.textfont, $_.textsize])); //#12795 + } //#12795 + $puti($_.sbs, $f(($_.barlen * 8) + 8), $get($_.encs, $_.checksum1)); //#12799 + $puti($_.sbs, $f(($_.barlen * 8) + 16), $get($_.encs, $_.checksum2)); //#12800 + if ($_.includecheckintext) { //#12806 + $put($_.txt, $_.barlen, $a([$geti($_.barchars, $_.checksum1, 1), $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12802 + $put($_.txt, $f($_.barlen + 1), $a([$geti($_.barchars, $_.checksum2, 1), $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12803 + } else { //#12806 + $put($_.txt, $_.barlen, $a([" ", $f(($_.barlen * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12805 + $put($_.txt, $f($_.barlen + 1), $a([" ", $f(($f($_.barlen + 1) * 20) + 20), $_.textyoffset, $_.textfont, $_.textsize])); //#12806 + } //#12806 + var _2f = $_.unidirectional ? 18 : 17; //#12810 + $puti($_.sbs, $f(($_.barlen * 8) + 24), $get($_.encs, _2f)); //#12810 + $k[$j++] = Infinity; //#12813 + $k[$j++] = Infinity; //#12815 + var _2h = $_.sbs; //#12815 + for (var _2i = 0, _2j = _2h.length; _2i < _2j; _2i++) { //#12815 + $k[$j++] = $get(_2h, _2i) - 48; //#12815 + } //#12815 + var _2l = $a(); //#12815 + $k[$j++] = Infinity; //#12816 + for (var _2n = 0, _2o = ~~(($_.sbs.length + 1) / 2); _2n < _2o; _2n++) { //#12816 + $k[$j++] = $_.height; //#12816 + } //#12816 + var _2q = $a(); //#12816 + $k[$j++] = Infinity; //#12817 + for (var _2s = 0, _2t = ~~(($_.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#12817 + $k[$j++] = 0; //#12817 + } //#12817 + var _2u = $a(); //#12817 + $k[$j++] = 'ren'; //#12820 + $k[$j++] = bwipp_renlinear; //#12820 + $k[$j++] = 'sbs'; //#12820 + $k[$j++] = _2l; //#12820 + $k[$j++] = 'bhs'; //#12820 + $k[$j++] = _2q; //#12820 + $k[$j++] = 'bbs'; //#12820 + $k[$j++] = _2u; //#12820 + if ($_.includetext) { //#12820 + $k[$j++] = 'txt'; //#12819 + $k[$j++] = $_.txt; //#12819 + } //#12819 + $k[$j++] = 'opt'; //#12821 + $k[$j++] = $_.options; //#12821 + var _2y = $d(); //#12821 + $k[$j++] = _2y; //#12824 + if (!$_.dontdraw) { //#12824 + bwipp_renlinear(); //#12824 + } //#12824 + $_ = Object.getPrototypeOf($_); //#12826 + $_ = Object.getPrototypeOf($_); //#12828 +} //bwipp_plessey function bwipp_telepen() { - $_ = Object.create($_); //#12667 - $_.numeric = false; //#12670 - $_.dontdraw = false; //#12671 - $_.includetext = false; //#12672 - $_.textfont = "OCR-B"; //#12673 - $_.textsize = 10; //#12674 - $_.textyoffset = -8; //#12675 - $_.height = 1; //#12676 - $_.parse = false; //#12677 - $k[$j++] = $_; //#12679 - bwipp_processoptions(); //#12679 - $_.options = $k[--$j]; //#12679 - $_.barcode = $k[--$j]; //#12680 - bwipp_loadctx(bwipp_telepen) //#12682 + $_ = Object.create($_); //#12859 + $_.numeric = false; //#12862 + $_.dontdraw = false; //#12863 + $_.includetext = false; //#12864 + $_.textfont = "OCR-B"; //#12865 + $_.textsize = 10; //#12866 + $_.textyoffset = -8; //#12867 + $_.height = 1; //#12868 + $_.parse = false; //#12869 + $k[$j++] = $_; //#12871 + bwipp_processoptions(); //#12871 + $_.options = $k[--$j]; //#12871 + $_.barcode = $k[--$j]; //#12872 + bwipp_loadctx(bwipp_telepen) //#12874 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#12688 - $_.fncvals = _3; //#12689 - $k[$j++] = 'barcode'; //#12690 - $k[$j++] = $_.barcode; //#12690 - $k[$j++] = $_.fncvals; //#12690 - bwipp_parseinput(); //#12690 - var _6 = $k[--$j]; //#12690 - $_[$k[--$j]] = _6; //#12690 - $_.barlen = $_.barcode.length; //#12691 - delete $_.options["parse"]; //#12692 - if ($_.numeric && (($_.barlen % 2) != 0)) { //#12696 - $k[$j++] = 'bwipp.telepenNumericOddLength#12695'; //#12695 - $k[$j++] = "Telepen Numeric must have an even length"; //#12695 - bwipp_raiseerror(); //#12695 - } //#12695 - if (!bwipp_telepen.__12734__) { //#12734 - $_ = Object.create($_); //#12734 - $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12733 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12733 - bwipp_telepen.__12734__ = 1; //#12733 - $_ = Object.getPrototypeOf($_); //#12733 - } //#12733 - $_.sbs = $s(($_.barlen * 16) + 48); //#12736 - $_.txt = $a($_.barlen); //#12737 - $_.enc = $get($_.encs, 95); //#12740 - $puti($_.sbs, 0, $_.enc); //#12741 - $_.l = $_.enc.length; //#12742 - $_.checksum = 0; //#12744 - $_.i = 0; //#12745 - $_.j = 0; //#12745 - for (;;) { //#12788 - if ($_.i == $_.barlen) { //#12747 - break; //#12747 - } //#12747 - if ($_.numeric) { //#12781 - if ($get($_.barcode, $_.i) > 16) { //#12769 - $_.np = $geti($_.barcode, $_.i, 2); //#12750 - var _X = $get($_.np, 0); //#12751 - var _Z = $get($_.np, 1); //#12752 - if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12758 - $k[$j++] = -1; //#12754 - } else { //#12758 - var _e = $f($get($_.np, 1) - 48); //#12757 - $k[$j++] = $f($get($_.np, 0) - 48); //#12757 - $k[$j++] = _e; //#12757 - if (_e != 40) { //#12757 - var _f = $k[--$j]; //#12757 - var _g = $k[--$j]; //#12757 - $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12757 - } else { //#12757 - $j--; //#12757 - } //#12757 - var _h = $k[--$j]; //#12758 - $k[$j++] = $f(_h + 17); //#12758 - } //#12758 - var _i = $k[--$j]; //#12760 - $k[$j++] = _i; //#12762 - if (_i == -1) { //#12762 - $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12761'; //#12761 - $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12761 - bwipp_raiseerror(); //#12761 - } //#12761 - $_.indx = $k[--$j]; //#12763 - $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12764 - $_.i = $_.i + 2; //#12765 - } else { //#12769 - $_.indx = $get($_.barcode, $_.i); //#12767 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12768 - $_.i = $_.i + 1; //#12769 - } //#12769 - } else { //#12781 - $_.indx = $get($_.barcode, $_.i); //#12772 - if ($_.indx > 127) { //#12775 - $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12774'; //#12774 - $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12774 - bwipp_raiseerror(); //#12774 - } //#12774 - if (($_.indx >= 32) && ($_.indx <= 126)) { //#12779 - $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12777 - } else { //#12779 - $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12779 - } //#12779 - $_.i = $_.i + 1; //#12781 - } //#12781 - $_.checksum = $f($_.checksum + $_.indx); //#12783 - $_.enc = $get($_.encs, $_.indx); //#12784 - $puti($_.sbs, $_.l, $_.enc); //#12785 - $_.l = $_.l + $_.enc.length; //#12786 - $_.j = $_.j + 1; //#12787 - } //#12787 - $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12791 - $_.enc = $get($_.encs, $_.checksum); //#12792 - $puti($_.sbs, $_.l, $_.enc); //#12793 - $_.l = $_.l + $_.enc.length; //#12794 - $_.enc = $get($_.encs, 122); //#12797 - $puti($_.sbs, $_.l, $_.enc); //#12798 - $_.l = $_.l + $_.enc.length; //#12799 - $_.sbs = $geti($_.sbs, 0, $_.l); //#12802 - $_.txt = $geti($_.txt, 0, $_.j); //#12803 - $k[$j++] = Infinity; //#12814 - $k[$j++] = Infinity; //#12808 - var _1z = $_.sbs; //#12808 - for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#12808 - $k[$j++] = $f($get(_1z, _20) - 48); //#12808 - } //#12808 - var _23 = $a(); //#12808 - $k[$j++] = Infinity; //#12809 - for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#12809 - $k[$j++] = $_.height; //#12809 - } //#12809 - var _28 = $a(); //#12809 - $k[$j++] = Infinity; //#12810 - for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#12810 - $k[$j++] = 0; //#12810 - } //#12810 - var _2C = $a(); //#12810 - $k[$j++] = 'ren'; //#12813 - $k[$j++] = bwipp_renlinear; //#12813 - $k[$j++] = 'sbs'; //#12813 - $k[$j++] = _23; //#12813 - $k[$j++] = 'bhs'; //#12813 - $k[$j++] = _28; //#12813 - $k[$j++] = 'bbs'; //#12813 - $k[$j++] = _2C; //#12813 - if ($_.includetext) { //#12813 - $k[$j++] = 'txt'; //#12812 - $k[$j++] = $_.txt; //#12812 - } //#12812 - $k[$j++] = 'opt'; //#12814 - $k[$j++] = $_.options; //#12814 - var _2G = $d(); //#12814 - $k[$j++] = _2G; //#12817 - if (!$_.dontdraw) { //#12817 - bwipp_renlinear(); //#12817 - } //#12817 - $_ = Object.getPrototypeOf($_); //#12819 - $_ = Object.getPrototypeOf($_); //#12821 -} - + ]); //#12880 + $_.fncvals = _3; //#12881 + $k[$j++] = 'barcode'; //#12882 + $k[$j++] = $_.barcode; //#12882 + $k[$j++] = $_.fncvals; //#12882 + bwipp_parseinput(); //#12882 + var _6 = $k[--$j]; //#12882 + $_[$k[--$j]] = _6; //#12882 + $_.barlen = $_.barcode.length; //#12883 + delete $_.options["parse"]; //#12884 + if ($_.numeric && (($_.barlen % 2) != 0)) { //#12888 + $k[$j++] = 'bwipp.telepenNumericOddLength#12887'; //#12887 + $k[$j++] = "Telepen Numeric must have an even length"; //#12887 + bwipp_raiseerror(); //#12887 + } //#12887 + if (!bwipp_telepen.__12926__) { //#12926 + $_ = Object.create($_); //#12926 + $_.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#12925 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_telepen.$ctx[id] = $_[id]); //#12925 + bwipp_telepen.__12926__ = 1; //#12925 + $_ = Object.getPrototypeOf($_); //#12925 + } //#12925 + $_.sbs = $s(($_.barlen * 16) + 48); //#12928 + $_.txt = $a($_.barlen); //#12929 + $_.enc = $get($_.encs, 95); //#12932 + $puti($_.sbs, 0, $_.enc); //#12933 + $_.l = $_.enc.length; //#12934 + $_.checksum = 0; //#12936 + $_.i = 0; //#12937 + $_.j = 0; //#12937 + for (;;) { //#12980 + if ($_.i == $_.barlen) { //#12939 + break; //#12939 + } //#12939 + if ($_.numeric) { //#12973 + if ($get($_.barcode, $_.i) > 16) { //#12961 + $_.np = $geti($_.barcode, $_.i, 2); //#12942 + var _X = $get($_.np, 0); //#12943 + var _Z = $get($_.np, 1); //#12944 + if (((_X < 48) || (_X > 57)) || (((_Z < 48) || (_Z > 57)) && (!(_Z == 88)))) { //#12950 + $k[$j++] = -1; //#12946 + } else { //#12950 + var _e = $f($get($_.np, 1) - 48); //#12949 + $k[$j++] = $f($get($_.np, 0) - 48); //#12949 + $k[$j++] = _e; //#12949 + if (_e != 40) { //#12949 + var _f = $k[--$j]; //#12949 + var _g = $k[--$j]; //#12949 + $k[$j++] = $f(($f(_f + (_g * 10))) + 10); //#12949 + } else { //#12949 + $j--; //#12949 + } //#12949 + var _h = $k[--$j]; //#12950 + $k[$j++] = $f(_h + 17); //#12950 + } //#12950 + var _i = $k[--$j]; //#12952 + $k[$j++] = _i; //#12954 + if (_i == -1) { //#12954 + $k[$j++] = 'bwipp.telepenInvalidNumericCharacter#12953'; //#12953 + $k[$j++] = "Telepen Numeric may contain only digits, or X in even positions"; //#12953 + bwipp_raiseerror(); //#12953 + } //#12953 + $_.indx = $k[--$j]; //#12955 + $put($_.txt, $_.j, $a([$_.np, ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12956 + $_.i = $_.i + 2; //#12957 + } else { //#12961 + $_.indx = $get($_.barcode, $_.i); //#12959 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12960 + $_.i = $_.i + 1; //#12961 + } //#12961 + } else { //#12973 + $_.indx = $get($_.barcode, $_.i); //#12964 + if ($_.indx > 127) { //#12967 + $k[$j++] = 'bwipp.telepenInvalidAlphaCharacter#12966'; //#12966 + $k[$j++] = "Telepen Alpha characters must have ordinal values 0 to 127"; //#12966 + bwipp_raiseerror(); //#12966 + } //#12966 + if (($_.indx >= 32) && ($_.indx <= 126)) { //#12971 + $put($_.txt, $_.j, $a([$geti($_.barcode, $_.i, 1), ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12969 + } else { //#12971 + $put($_.txt, $_.j, $a([" ", ($_.j * 16) + 16, $_.textyoffset, $_.textfont, $_.textsize])); //#12971 + } //#12971 + $_.i = $_.i + 1; //#12973 + } //#12973 + $_.checksum = $f($_.checksum + $_.indx); //#12975 + $_.enc = $get($_.encs, $_.indx); //#12976 + $puti($_.sbs, $_.l, $_.enc); //#12977 + $_.l = $_.l + $_.enc.length; //#12978 + $_.j = $_.j + 1; //#12979 + } //#12979 + $_.checksum = ($f(127 - ($_.checksum % 127))) % 127; //#12983 + $_.enc = $get($_.encs, $_.checksum); //#12984 + $puti($_.sbs, $_.l, $_.enc); //#12985 + $_.l = $_.l + $_.enc.length; //#12986 + $_.enc = $get($_.encs, 122); //#12989 + $puti($_.sbs, $_.l, $_.enc); //#12990 + $_.l = $_.l + $_.enc.length; //#12991 + $_.sbs = $geti($_.sbs, 0, $_.l); //#12994 + $_.txt = $geti($_.txt, 0, $_.j); //#12995 + $k[$j++] = Infinity; //#12998 + $k[$j++] = Infinity; //#13000 + var _1z = $_.sbs; //#13000 + for (var _20 = 0, _21 = _1z.length; _20 < _21; _20++) { //#13000 + $k[$j++] = $f($get(_1z, _20) - 48); //#13000 + } //#13000 + var _23 = $a(); //#13000 + $k[$j++] = Infinity; //#13001 + for (var _25 = 0, _26 = ~~(($_.sbs.length + 1) / 2); _25 < _26; _25++) { //#13001 + $k[$j++] = $_.height; //#13001 + } //#13001 + var _28 = $a(); //#13001 + $k[$j++] = Infinity; //#13002 + for (var _2A = 0, _2B = ~~(($_.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#13002 + $k[$j++] = 0; //#13002 + } //#13002 + var _2C = $a(); //#13002 + $k[$j++] = 'ren'; //#13005 + $k[$j++] = bwipp_renlinear; //#13005 + $k[$j++] = 'sbs'; //#13005 + $k[$j++] = _23; //#13005 + $k[$j++] = 'bhs'; //#13005 + $k[$j++] = _28; //#13005 + $k[$j++] = 'bbs'; //#13005 + $k[$j++] = _2C; //#13005 + if ($_.includetext) { //#13005 + $k[$j++] = 'txt'; //#13004 + $k[$j++] = $_.txt; //#13004 + } //#13004 + $k[$j++] = 'opt'; //#13006 + $k[$j++] = $_.options; //#13006 + var _2G = $d(); //#13006 + $k[$j++] = _2G; //#13009 + if (!$_.dontdraw) { //#13009 + bwipp_renlinear(); //#13009 + } //#13009 + $_ = Object.getPrototypeOf($_); //#13011 + $_ = Object.getPrototypeOf($_); //#13013 +} //bwipp_telepen function bwipp_telepennumeric() { - $_ = Object.create($_); //#12850 - $_.dontdraw = false; //#12853 - $k[$j++] = $_; //#12855 - bwipp_processoptions(); //#12855 - $_.options = $k[--$j]; //#12855 - $_.barcode = $k[--$j]; //#12856 - $put($_.options, "dontdraw", true); //#12859 - $put($_.options, "numeric", true); //#12860 - $k[$j++] = 'args'; //#12862 - $k[$j++] = $_.barcode; //#12862 - $k[$j++] = $_.options; //#12862 - bwipp_telepen(); //#12862 - var _6 = $k[--$j]; //#12862 - $_[$k[--$j]] = _6; //#12862 - $put($_.args, "opt", $_.options); //#12864 - $k[$j++] = $_.args; //#12867 - if (!$_.dontdraw) { //#12867 - bwipp_renlinear(); //#12867 - } //#12867 - $_ = Object.getPrototypeOf($_); //#12869 -} - + $_ = Object.create($_); //#13042 + $_.dontdraw = false; //#13045 + $k[$j++] = $_; //#13047 + bwipp_processoptions(); //#13047 + $_.options = $k[--$j]; //#13047 + $_.barcode = $k[--$j]; //#13048 + $put($_.options, "dontdraw", true); //#13051 + $put($_.options, "numeric", true); //#13052 + $k[$j++] = 'args'; //#13054 + $k[$j++] = $_.barcode; //#13054 + $k[$j++] = $_.options; //#13054 + bwipp_telepen(); //#13054 + var _6 = $k[--$j]; //#13054 + $_[$k[--$j]] = _6; //#13054 + $put($_.args, "opt", $_.options); //#13056 + $k[$j++] = $_.args; //#13059 + if (!$_.dontdraw) { //#13059 + bwipp_renlinear(); //#13059 + } //#13059 + $_ = Object.getPrototypeOf($_); //#13061 +} //bwipp_telepennumeric function bwipp_posicode() { - $_ = Object.create($_); //#12900 - $_.dontdraw = false; //#12903 - $_.includetext = false; //#12904 - $_.textfont = "OCR-B"; //#12905 - $_.textsize = 10; //#12906 - $_.textxoffset = 0; //#12907 - $_.textyoffset = -8; //#12908 - $_.height = 1; //#12909 - $_.encoding = "auto"; //#12910 - $_.version = "a"; //#12911 - $_.checkoffset = 0; //#12912 - $_.raw = false; //#12913 - $_.parse = false; //#12914 - $_.parsefnc = false; //#12915 - $k[$j++] = $_; //#12917 - bwipp_processoptions(); //#12917 - $_.options = $k[--$j]; //#12917 - var _1 = $k[--$j]; //#12918 - $_.barcode = _1; //#12918 - bwipp_loadctx(bwipp_posicode) //#12920 - if (!bwipp_posicode.__12963__) { //#12963 - $_ = Object.create($_); //#12963 - $_.la0 = -1; //#12924 - $_.la1 = -2; //#12924 - $_.la2 = -3; //#12924 - $_.sf0 = -4; //#12925 - $_.sf1 = -5; //#12925 - $_.sf2 = -6; //#12925 - $_.fn1 = -7; //#12926 - $_.fn2 = -8; //#12926 - $_.fn3 = -9; //#12926 - $_.fn4 = -10; //#12926 - $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#12947 - var _12 = $a(["5", -98, -98]); //#12950 - $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), _12, $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#12962 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#12962 - bwipp_posicode.__12963__ = 1; //#12962 - $_ = Object.getPrototypeOf($_); //#12962 - } //#12962 - $k[$j++] = 'charmaps'; //#12965 - if ($eq($_.version, "a") || $eq($_.version, "b")) { //#12965 - $k[$j++] = $_.charmapsnormal; //#12965 - } else { //#12965 - $k[$j++] = $_.chapmapslimited; //#12965 - } //#12965 - var _1f = $k[--$j]; //#12965 - $_[$k[--$j]] = _1f; //#12965 - var _1h = $_.charmaps; //#12969 - var _1i = $_.charmaps; //#12969 - var _1j = $_.charmaps; //#12969 - $_.charvals = $a([new Map, new Map, new Map]); //#12970 - for (var _1n = 0, _1m = $_.charmaps.length - 1; _1n <= _1m; _1n += 1) { //#12979 - $_.i = _1n; //#12972 - $_.encs = $get($_.charmaps, $_.i); //#12973 - for (var _1r = 0; _1r <= 2; _1r += 1) { //#12978 - $_.j = _1r; //#12975 - var _1u = $get($_.encs, $_.j); //#12976 - $k[$j++] = _1u; //#12976 - if ($eq($type(_1u), 'stringtype')) { //#12976 - var _1x = $get($k[--$j], 0); //#12976 - $k[$j++] = _1x; //#12976 - } //#12976 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#12977 - } //#12977 - } //#12977 - $_.set0 = $get($_.charvals, 0); //#12980 - $_.set1 = $get($_.charvals, 1); //#12981 - $_.set2 = $get($_.charvals, 2); //#12982 - if ($_.raw) { //#12984 - $_.encoding = "raw"; //#12984 - } //#12984 - if ($eq($_.encoding, "raw")) { //#12998 - $_.cws = $a($_.barcode.length); //#12987 - $_.i = 0; //#12988 - $_.j = 0; //#12988 - for (;;) { //#12995 - if ($_.i == $_.barcode.length) { //#12990 - break; //#12990 - } //#12990 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#12991 - $put($_.cws, $_.j, $_.cw); //#12992 - $_.i = $_.i + 4; //#12993 - $_.j = $_.j + 1; //#12994 - } //#12994 - $_.cws = $geti($_.cws, 0, $_.j); //#12996 - $_.text = ""; //#12997 - } //#12997 - if ($eq($_.encoding, "auto")) { //#13113 - var _2W = new Map([ + $_ = Object.create($_); //#13092 + $_.dontdraw = false; //#13095 + $_.includetext = false; //#13096 + $_.textfont = "OCR-B"; //#13097 + $_.textsize = 10; //#13098 + $_.textxoffset = 0; //#13099 + $_.textyoffset = -8; //#13100 + $_.height = 1; //#13101 + $_.encoding = "auto"; //#13102 + $_.version = "a"; //#13103 + $_.checkoffset = 0; //#13104 + $_.raw = false; //#13105 + $_.parse = false; //#13106 + $_.parsefnc = false; //#13107 + $k[$j++] = $_; //#13109 + bwipp_processoptions(); //#13109 + $_.options = $k[--$j]; //#13109 + var _1 = $k[--$j]; //#13110 + $_.barcode = _1; //#13110 + bwipp_loadctx(bwipp_posicode) //#13112 + if (!bwipp_posicode.__13155__) { //#13155 + $_ = Object.create($_); //#13155 + $_.la0 = -1; //#13116 + $_.la1 = -2; //#13116 + $_.la2 = -3; //#13116 + $_.sf0 = -4; //#13117 + $_.sf1 = -5; //#13117 + $_.sf2 = -6; //#13117 + $_.fn1 = -7; //#13118 + $_.fn2 = -8; //#13118 + $_.fn3 = -9; //#13118 + $_.fn4 = -10; //#13118 + $_.charmapsnormal = $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $_.fn1]), $a([$_.la1, $_.la0, $_.fn2]), $a([$_.sf1, $_.sf0, $_.fn3]), $a([$_.sf2, $_.sf2, $_.fn4])]); //#13139 + var _13 = $a(["6", -98, -98]); //#13143 + $_.chapmapslimited = $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), _13, $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])]); //#13154 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13154 + bwipp_posicode.__13155__ = 1; //#13154 + $_ = Object.getPrototypeOf($_); //#13154 + } //#13154 + if ((($ne($_.version, "a") && $ne($_.version, "b")) && $ne($_.version, "limiteda")) && $ne($_.version, "limitedb")) { //#13159 + $k[$j++] = 'bwipp.posicodeInvalidVersion#13158'; //#13158 + $k[$j++] = "The version must be either a, b, limiteda or limitedb"; //#13158 + bwipp_raiseerror(); //#13158 + } //#13158 + $k[$j++] = 'charmaps'; //#13161 + if ($eq($_.version, "a") || $eq($_.version, "b")) { //#13161 + $k[$j++] = $_.charmapsnormal; //#13161 + } else { //#13161 + $k[$j++] = $_.chapmapslimited; //#13161 + } //#13161 + var _1j = $k[--$j]; //#13161 + $_[$k[--$j]] = _1j; //#13161 + var _1l = $_.charmaps; //#13165 + var _1m = $_.charmaps; //#13165 + var _1n = $_.charmaps; //#13165 + $_.charvals = $a([new Map, new Map, new Map]); //#13166 + for (var _1r = 0, _1q = $_.charmaps.length - 1; _1r <= _1q; _1r += 1) { //#13175 + $_.i = _1r; //#13168 + $_.encs = $get($_.charmaps, $_.i); //#13169 + for (var _1v = 0; _1v <= 2; _1v += 1) { //#13174 + $_.j = _1v; //#13171 + var _1y = $get($_.encs, $_.j); //#13172 + $k[$j++] = _1y; //#13172 + if ($eq($type(_1y), 'stringtype')) { //#13172 + var _21 = $get($k[--$j], 0); //#13172 + $k[$j++] = _21; //#13172 + } //#13172 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13173 + } //#13173 + } //#13173 + $_.set0 = $get($_.charvals, 0); //#13176 + $_.set1 = $get($_.charvals, 1); //#13177 + $_.set2 = $get($_.charvals, 2); //#13178 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13187 + for (var _2H = 0, _2G = $_.barcode.length - 1; _2H <= _2G; _2H += 1) { //#13186 + var _2M = $get($_.set0, $get($geti($_.barcode, _2H, 1), 0)) !== undefined; //#13183 + if (!_2M) { //#13185 + $k[$j++] = 'bwipp.posicodeBadCharacter#13184'; //#13184 + $k[$j++] = "Posicode limited must contain only digits, capital letters, and the symbols - and ."; //#13184 + bwipp_raiseerror(); //#13184 + } //#13184 + } //#13184 + } //#13184 + if ($_.raw) { //#13189 + $_.encoding = "raw"; //#13189 + } //#13189 + if ($eq($_.encoding, "raw")) { //#13203 + $_.cws = $a($_.barcode.length); //#13192 + $_.i = 0; //#13193 + $_.j = 0; //#13193 + for (;;) { //#13200 + if ($_.i == $_.barcode.length) { //#13195 + break; //#13195 + } //#13195 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#13196 + $put($_.cws, $_.j, $_.cw); //#13197 + $_.i = $_.i + 4; //#13198 + $_.j = $_.j + 1; //#13199 + } //#13199 + $_.cws = $geti($_.cws, 0, $_.j); //#13201 + $_.text = ""; //#13202 + } //#13202 + if ($eq($_.encoding, "auto")) { //#13318 + var _2k = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13008 - $_.fncvals = _2W; //#13010 - $k[$j++] = 'msg'; //#13011 - $k[$j++] = $_.barcode; //#13011 - $k[$j++] = $_.fncvals; //#13011 - bwipp_parseinput(); //#13011 - var _2Z = $k[--$j]; //#13011 - $_[$k[--$j]] = _2Z; //#13011 - $_.msglen = $_.msg.length; //#13012 - $_.text = $s($_.msglen); //#13014 - for (var _2g = 0, _2f = $_.msglen - 1; _2g <= _2f; _2g += 1) { //#13018 - $_.i = _2g; //#13016 - var _2l = $get($_.msg, $_.i); //#13017 - $k[$j++] = $_.text; //#13017 - $k[$j++] = $_.i; //#13017 - $k[$j++] = _2l; //#13017 - if (_2l < 0) { //#13017 - $j--; //#13017 - $k[$j++] = 32; //#13017 - } //#13017 - var _2m = $k[--$j]; //#13017 - var _2n = $k[--$j]; //#13017 - $put($k[--$j], _2n, _2m); //#13017 - } //#13017 - $k[$j++] = Infinity; //#13021 - for (var _2q = 0, _2r = $_.msglen; _2q < _2r; _2q++) { //#13021 - $k[$j++] = 0; //#13021 - } //#13021 - $k[$j++] = 0; //#13021 - $_.numSA = $a(); //#13021 - $k[$j++] = Infinity; //#13022 - for (var _2u = 0, _2v = $_.msglen; _2u < _2v; _2u++) { //#13022 - $k[$j++] = 0; //#13022 - } //#13022 - $k[$j++] = 0; //#13022 - $_.numEA = $a(); //#13022 - for (var _2y = $_.msglen - 1; _2y >= 0; _2y -= 1) { //#13032 - $_.i = _2y; //#13024 - if ($get($_.msg, $_.i) >= 0) { //#13031 - if ($get($_.msg, $_.i) >= 128) { //#13029 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13027 - } else { //#13029 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13029 - } //#13029 - } //#13029 - } //#13029 - $_.ea = false; //#13035 - $_.msgtmp = $a([]); //#13035 - for (var _3I = 0, _3H = $_.msglen - 1; _3I <= _3H; _3I += 1) { //#13050 - $_.i = _3I; //#13037 - $_.c = $get($_.msg, $_.i); //#13038 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13048 - if ($_.ea) { //#13040 - $k[$j++] = $_.numSA; //#13040 - } else { //#13040 - $k[$j++] = $_.numEA; //#13040 - } //#13040 - var _3U = $get($k[--$j], $_.i); //#13040 - var _3X = ($f(_3U + $_.i) == $_.msglen) ? 3 : 5; //#13041 - if (_3U < _3X) { //#13046 - $k[$j++] = Infinity; //#13043 - $aload($_.msgtmp); //#13043 - $k[$j++] = $_.fn4; //#13043 - $_.msgtmp = $a(); //#13043 - } else { //#13046 - $k[$j++] = Infinity; //#13045 - $aload($_.msgtmp); //#13045 - $k[$j++] = $_.fn4; //#13045 - $k[$j++] = $_.fn4; //#13045 - $_.msgtmp = $a(); //#13045 - $_.ea = !$_.ea; //#13046 - } //#13046 - } //#13046 - $k[$j++] = Infinity; //#13049 - $aload($_.msgtmp); //#13049 - if ($_.c >= 0) { //#13049 - $k[$j++] = $_.c & 127; //#13049 - } else { //#13049 - $k[$j++] = $_.c; //#13049 - } //#13049 - $_.msgtmp = $a(); //#13049 - } //#13049 - $_.msg = $_.msgtmp; //#13051 - $_.msglen = $_.msg.length; //#13052 + ]); //#13213 + $_.fncvals = _2k; //#13215 + $k[$j++] = 'msg'; //#13216 + $k[$j++] = $_.barcode; //#13216 + $k[$j++] = $_.fncvals; //#13216 + bwipp_parseinput(); //#13216 + var _2n = $k[--$j]; //#13216 + $_[$k[--$j]] = _2n; //#13216 + $_.msglen = $_.msg.length; //#13217 + $_.text = $s($_.msglen); //#13219 + for (var _2u = 0, _2t = $_.msglen - 1; _2u <= _2t; _2u += 1) { //#13223 + $_.i = _2u; //#13221 + var _2z = $get($_.msg, $_.i); //#13222 + $k[$j++] = $_.text; //#13222 + $k[$j++] = $_.i; //#13222 + $k[$j++] = _2z; //#13222 + if (_2z < 0) { //#13222 + $j--; //#13222 + $k[$j++] = 32; //#13222 + } //#13222 + var _30 = $k[--$j]; //#13222 + var _31 = $k[--$j]; //#13222 + $put($k[--$j], _31, _30); //#13222 + } //#13222 + $k[$j++] = Infinity; //#13226 + for (var _34 = 0, _35 = $_.msglen; _34 < _35; _34++) { //#13226 + $k[$j++] = 0; //#13226 + } //#13226 + $k[$j++] = 0; //#13226 + $_.numSA = $a(); //#13226 + $k[$j++] = Infinity; //#13227 + for (var _38 = 0, _39 = $_.msglen; _38 < _39; _38++) { //#13227 + $k[$j++] = 0; //#13227 + } //#13227 + $k[$j++] = 0; //#13227 + $_.numEA = $a(); //#13227 + for (var _3C = $_.msglen - 1; _3C >= 0; _3C -= 1) { //#13237 + $_.i = _3C; //#13229 + if ($get($_.msg, $_.i) >= 0) { //#13236 + if ($get($_.msg, $_.i) >= 128) { //#13234 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13232 + } else { //#13234 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13234 + } //#13234 + } //#13234 + } //#13234 + $_.ea = false; //#13240 + $_.msgtmp = $a([]); //#13240 + for (var _3W = 0, _3V = $_.msglen - 1; _3W <= _3V; _3W += 1) { //#13255 + $_.i = _3W; //#13242 + $_.c = $get($_.msg, $_.i); //#13243 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#13253 + if ($_.ea) { //#13245 + $k[$j++] = $_.numSA; //#13245 + } else { //#13245 + $k[$j++] = $_.numEA; //#13245 + } //#13245 + var _3i = $get($k[--$j], $_.i); //#13245 + var _3l = ($f(_3i + $_.i) == $_.msglen) ? 3 : 5; //#13246 + if (_3i < _3l) { //#13251 + $k[$j++] = Infinity; //#13248 + $aload($_.msgtmp); //#13248 + $k[$j++] = $_.fn4; //#13248 + $_.msgtmp = $a(); //#13248 + } else { //#13251 + $k[$j++] = Infinity; //#13250 + $aload($_.msgtmp); //#13250 + $k[$j++] = $_.fn4; //#13250 + $k[$j++] = $_.fn4; //#13250 + $_.msgtmp = $a(); //#13250 + $_.ea = !$_.ea; //#13251 + } //#13251 + } //#13251 + $k[$j++] = Infinity; //#13254 + $aload($_.msgtmp); //#13254 + if ($_.c >= 0) { //#13254 + $k[$j++] = $_.c & 127; //#13254 + } else { //#13254 + $k[$j++] = $_.c; //#13254 + } //#13254 + $_.msgtmp = $a(); //#13254 + } //#13254 + $_.msg = $_.msgtmp; //#13256 + $_.msglen = $_.msg.length; //#13257 $_.enc = function() { - var _3n = $k[--$j]; //#13056 - $put($_.cws, $_.j, $get(_3n, $k[--$j])); //#13056 - $_.j = $_.j + 1; //#13057 - }; //#13057 - $_.cws = $a($_.msglen * 2); //#13060 - $_.i = 0; //#13061 - $_.j = 0; //#13061 - $_.cset = "set0"; //#13061 - for (;;) { //#13111 - if ($_.i == $_.msglen) { //#13063 - break; //#13063 - } //#13063 - for (;;) { //#13109 - $_.char1 = $get($_.msg, $_.i); //#13068 - $k[$j++] = 'char2'; //#13069 - if (($_.i + 1) < $_.msglen) { //#13069 - $k[$j++] = $get($_.msg, $_.i + 1); //#13069 - } else { //#13069 - $k[$j++] = -99; //#13069 - } //#13069 - var _45 = $k[--$j]; //#13069 - $_[$k[--$j]] = _45; //#13069 - var _4A = $get($_[$_.cset], $_.char1) !== undefined; //#13072 - if (_4A) { //#13076 - $k[$j++] = $_.char1; //#13073 - $k[$j++] = $_[$_.cset]; //#13073 - $_.enc(); //#13073 - $_.i = $_.i + 1; //#13074 - break; //#13075 - } //#13075 - var _4H = $get($_.set2, $_.char1) !== undefined; //#13079 - if (_4H) { //#13084 - $k[$j++] = $_.sf2; //#13080 - $k[$j++] = $_[$_.cset]; //#13080 - $_.enc(); //#13080 - $k[$j++] = $_.char1; //#13081 - $k[$j++] = $_.set2; //#13081 - $_.enc(); //#13081 - $_.i = $_.i + 1; //#13082 - break; //#13083 - } //#13083 - var _4R = $get($_[$_.cset], $_.char2) !== undefined; //#13087 - if (!_4R) { //#13105 - if ($eq($_.cset, "set0")) { //#13093 - $k[$j++] = $_.la1; //#13089 - $k[$j++] = $_[$_.cset]; //#13089 - $_.enc(); //#13089 - $_.cset = "set1"; //#13090 - } else { //#13093 - $k[$j++] = $_.la0; //#13092 - $k[$j++] = $_[$_.cset]; //#13092 - $_.enc(); //#13092 - $_.cset = "set0"; //#13093 - } //#13093 - break; //#13095 - } else { //#13105 - if ($eq($_.cset, "set0")) { //#13102 - $k[$j++] = $_.sf1; //#13098 - $k[$j++] = $_[$_.cset]; //#13098 - $_.enc(); //#13098 - $k[$j++] = $_.char1; //#13099 - $k[$j++] = $_.set1; //#13099 - $_.enc(); //#13099 - } else { //#13102 - $k[$j++] = $_.sf0; //#13101 - $k[$j++] = $_[$_.cset]; //#13101 - $_.enc(); //#13101 - $k[$j++] = $_.char1; //#13102 - $k[$j++] = $_.set0; //#13102 - $_.enc(); //#13102 - } //#13102 - $_.i = $_.i + 1; //#13104 - break; //#13105 - } //#13105 - break; //#13108 - } //#13108 - } //#13108 - $_.cws = $geti($_.cws, 0, $_.j); //#13112 - } //#13112 - if (!bwipp_posicode.__13163__) { //#13163 - $_ = Object.create($_); //#13163 - var _4s = new Map([ + var _41 = $k[--$j]; //#13261 + $put($_.cws, $_.j, $get(_41, $k[--$j])); //#13261 + $_.j = $_.j + 1; //#13262 + }; //#13262 + $_.cws = $a($_.msglen * 2); //#13265 + $_.i = 0; //#13266 + $_.j = 0; //#13266 + $_.cset = "set0"; //#13266 + for (;;) { //#13316 + if ($_.i == $_.msglen) { //#13268 + break; //#13268 + } //#13268 + for (;;) { //#13314 + $_.char1 = $get($_.msg, $_.i); //#13273 + $k[$j++] = 'char2'; //#13274 + if (($_.i + 1) < $_.msglen) { //#13274 + $k[$j++] = $get($_.msg, $_.i + 1); //#13274 + } else { //#13274 + $k[$j++] = -99; //#13274 + } //#13274 + var _4J = $k[--$j]; //#13274 + $_[$k[--$j]] = _4J; //#13274 + var _4O = $get($_[$_.cset], $_.char1) !== undefined; //#13277 + if (_4O) { //#13281 + $k[$j++] = $_.char1; //#13278 + $k[$j++] = $_[$_.cset]; //#13278 + $_.enc(); //#13278 + $_.i = $_.i + 1; //#13279 + break; //#13280 + } //#13280 + var _4V = $get($_.set2, $_.char1) !== undefined; //#13284 + if (_4V) { //#13289 + $k[$j++] = $_.sf2; //#13285 + $k[$j++] = $_[$_.cset]; //#13285 + $_.enc(); //#13285 + $k[$j++] = $_.char1; //#13286 + $k[$j++] = $_.set2; //#13286 + $_.enc(); //#13286 + $_.i = $_.i + 1; //#13287 + break; //#13288 + } //#13288 + var _4f = $get($_[$_.cset], $_.char2) !== undefined; //#13292 + if (!_4f) { //#13310 + if ($eq($_.cset, "set0")) { //#13298 + $k[$j++] = $_.la1; //#13294 + $k[$j++] = $_[$_.cset]; //#13294 + $_.enc(); //#13294 + $_.cset = "set1"; //#13295 + } else { //#13298 + $k[$j++] = $_.la0; //#13297 + $k[$j++] = $_[$_.cset]; //#13297 + $_.enc(); //#13297 + $_.cset = "set0"; //#13298 + } //#13298 + break; //#13300 + } else { //#13310 + if ($eq($_.cset, "set0")) { //#13307 + $k[$j++] = $_.sf1; //#13303 + $k[$j++] = $_[$_.cset]; //#13303 + $_.enc(); //#13303 + $k[$j++] = $_.char1; //#13304 + $k[$j++] = $_.set1; //#13304 + $_.enc(); //#13304 + } else { //#13307 + $k[$j++] = $_.sf0; //#13306 + $k[$j++] = $_[$_.cset]; //#13306 + $_.enc(); //#13306 + $k[$j++] = $_.char1; //#13307 + $k[$j++] = $_.set0; //#13307 + $_.enc(); //#13307 + } //#13307 + $_.i = $_.i + 1; //#13309 + break; //#13310 + } //#13310 + break; //#13313 + } //#13313 + } //#13313 + $_.cws = $geti($_.cws, 0, $_.j); //#13317 + } //#13317 + if (!bwipp_posicode.__13368__) { //#13368 + $_ = Object.create($_); //#13368 + var _56 = new Map([ ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] - ]); //#13160 - $_.encmaps = _4s; //#13162 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13162 - bwipp_posicode.__13163__ = 1; //#13162 - $_ = Object.getPrototypeOf($_); //#13162 - } //#13162 - $_.encs = $get($_.encmaps, $_.version); //#13164 - if (!bwipp_posicode.__13174__) { //#13174 - $_ = Object.create($_); //#13174 - $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13173 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13173 - bwipp_posicode.__13174__ = 1; //#13173 - $_ = Object.getPrototypeOf($_); //#13173 - } //#13173 - $_.v = 0; //#13175 - var _54 = $_.cws; //#13176 - for (var _55 = 0, _56 = _54.length; _55 < _56; _55++) { //#13185 - $_.cw = $get(_54, _55); //#13177 - for (var _58 = 0, _59 = 6; _58 < _59; _58++) { //#13184 - if ((($_.cw ^ $_.v) & 1) != 0) { //#13181 - $_.v = $_.v ^ 7682; //#13180 - } //#13180 - $_.v = $_.v >>> 1; //#13182 - $_.cw = $_.cw >>> 1; //#13183 - } //#13183 - } //#13183 - $_.v = $_.v + $_.checkoffset; //#13186 - if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13194 - $_.v = $_.v & 1023; //#13189 - if (($_.v > 824) && ($_.v < 853)) { //#13192 - $_.v = $_.v + 292; //#13191 - } //#13191 - } else { //#13194 - $_.v = ($_.v & 1023) + 45; //#13194 - } //#13194 - $_.d = $a([2, 2, 2, 2, 2, 2]); //#13197 - $_.r = 0; //#13198 - $_.c = 0; //#13198 - $_.w = 0; //#13198 - $_.sum = 0; //#13198 - for (;;) { //#13217 - if ($_.sum == $_.v) { //#13200 - break; //#13200 - } //#13200 - $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13201 - if ($_.t == $_.v) { //#13206 - $_.w = $_.w + 1; //#13203 - $put($_.d, $_.r, $_.w + 2); //#13204 - $_.sum = $_.t; //#13205 - } //#13205 - if ($_.t > $_.v) { //#13211 - $put($_.d, $_.r, $_.w + 2); //#13208 - $_.r = $_.r + 1; //#13209 - $_.w = 0; //#13210 - } //#13210 - if ($_.t < $_.v) { //#13216 - $_.c = $_.c + 1; //#13213 - $_.w = $_.w + 1; //#13214 - $_.sum = $_.t; //#13215 - } //#13215 - } //#13215 - $k[$j++] = 20; //#13218 - for (var _5p = 0; _5p <= 4; _5p += 1) { //#13218 - var _5s = $k[--$j]; //#13218 - $k[$j++] = $f(_5s - $get($_.d, _5p)); //#13218 - } //#13218 - $put($_.d, 5, $k[--$j]); //#13219 - if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13222 - $k[$j++] = Infinity; //#13221 - var _5x = $_.d; //#13221 - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#13221 - $k[$j++] = $f($get(_5x, _5y) + 1); //#13221 - } //#13221 - $_.d = $a(); //#13221 - } //#13221 - $_.cbs = $strcpy($s(12), "111111111111"); //#13223 - for (var _64 = 5; _64 >= 0; _64 -= 1) { //#13227 - $_.i = _64; //#13225 - $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13226 - } //#13226 - $_.sbs = $s(($_.cws.length * 6) + 31); //#13230 - var _6E = $get($_.encs, $_.encs.length - 2); //#13231 - $puti($_.sbs, 0, _6E); //#13232 - $_.j = _6E.length; //#13233 - for (var _6I = 0, _6H = $_.cws.length - 1; _6I <= _6H; _6I += 1) { //#13238 - $_.i = _6I; //#13235 - $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13236 - $_.j = $_.j + 6; //#13237 - } //#13237 - $puti($_.sbs, $_.j, $_.cbs); //#13239 - $_.j = $_.j + 12; //#13240 - var _6X = $get($_.encs, $_.encs.length - 1); //#13241 - $puti($_.sbs, $_.j, _6X); //#13242 - $_.j = _6X.length + $_.j; //#13243 - $_.sbs = $geti($_.sbs, 0, $_.j); //#13244 - $k[$j++] = Infinity; //#13254 - $k[$j++] = Infinity; //#13249 - var _6e = $_.sbs; //#13249 - for (var _6f = 0, _6g = _6e.length; _6f < _6g; _6f++) { //#13249 - $k[$j++] = $f($get(_6e, _6f) - 48); //#13249 - } //#13249 - var _6i = $a(); //#13249 - $k[$j++] = Infinity; //#13250 - for (var _6k = 0, _6l = ~~(($_.sbs.length + 1) / 2); _6k < _6l; _6k++) { //#13250 - $k[$j++] = $_.height; //#13250 - } //#13250 - var _6n = $a(); //#13250 - $k[$j++] = Infinity; //#13251 - for (var _6p = 0, _6q = ~~(($_.sbs.length + 1) / 2); _6p < _6q; _6p++) { //#13251 - $k[$j++] = 0; //#13251 - } //#13251 - var _6r = $a(); //#13251 - $k[$j++] = 'ren'; //#13254 - $k[$j++] = bwipp_renlinear; //#13254 - $k[$j++] = 'sbs'; //#13254 - $k[$j++] = _6i; //#13254 - $k[$j++] = 'bhs'; //#13254 - $k[$j++] = _6n; //#13254 - $k[$j++] = 'bbs'; //#13254 - $k[$j++] = _6r; //#13254 - $k[$j++] = 'txt'; //#13254 - $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13254 - $k[$j++] = 'textxalign'; //#13254 - $k[$j++] = "center"; //#13254 - $k[$j++] = 'opt'; //#13254 - $k[$j++] = $_.options; //#13254 - var _70 = $d(); //#13254 - $k[$j++] = _70; //#13257 - if (!$_.dontdraw) { //#13257 - bwipp_renlinear(); //#13257 - } //#13257 - $_ = Object.getPrototypeOf($_); //#13259 - $_ = Object.getPrototypeOf($_); //#13261 -} - + ]); //#13365 + $_.encmaps = _56; //#13367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13367 + bwipp_posicode.__13368__ = 1; //#13367 + $_ = Object.getPrototypeOf($_); //#13367 + } //#13367 + $_.encs = $get($_.encmaps, $_.version); //#13369 + if (!bwipp_posicode.__13379__) { //#13379 + $_ = Object.create($_); //#13379 + $_.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#13378 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_posicode.$ctx[id] = $_[id]); //#13378 + bwipp_posicode.__13379__ = 1; //#13378 + $_ = Object.getPrototypeOf($_); //#13378 + } //#13378 + $_.v = 0; //#13380 + var _5I = $_.cws; //#13381 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#13390 + $_.cw = $get(_5I, _5J); //#13382 + for (var _5M = 0, _5N = 6; _5M < _5N; _5M++) { //#13389 + if ((($_.cw ^ $_.v) & 1) != 0) { //#13386 + $_.v = $_.v ^ 7682; //#13385 + } //#13385 + $_.v = $_.v >>> 1; //#13387 + $_.cw = $_.cw >>> 1; //#13388 + } //#13388 + } //#13388 + $_.v = $_.v + $_.checkoffset; //#13391 + if ($eq($_.version, "limiteda") || $eq($_.version, "limitedb")) { //#13399 + $_.v = $_.v & 1023; //#13394 + if (($_.v > 824) && ($_.v < 853)) { //#13397 + $_.v = $_.v + 292; //#13396 + } //#13396 + } else { //#13399 + $_.v = ($_.v & 1023) + 45; //#13399 + } //#13399 + $_.d = $a([2, 2, 2, 2, 2, 2]); //#13402 + $_.r = 0; //#13403 + $_.c = 0; //#13403 + $_.w = 0; //#13403 + $_.sum = 0; //#13403 + for (;;) { //#13422 + if ($_.sum == $_.v) { //#13405 + break; //#13405 + } //#13405 + $_.t = $f($_.sum + $get($get($_.c2w, $_.r), $_.c)); //#13406 + if ($_.t == $_.v) { //#13411 + $_.w = $_.w + 1; //#13408 + $put($_.d, $_.r, $_.w + 2); //#13409 + $_.sum = $_.t; //#13410 + } //#13410 + if ($_.t > $_.v) { //#13416 + $put($_.d, $_.r, $_.w + 2); //#13413 + $_.r = $_.r + 1; //#13414 + $_.w = 0; //#13415 + } //#13415 + if ($_.t < $_.v) { //#13421 + $_.c = $_.c + 1; //#13418 + $_.w = $_.w + 1; //#13419 + $_.sum = $_.t; //#13420 + } //#13420 + } //#13420 + $k[$j++] = 20; //#13423 + for (var _63 = 0; _63 <= 4; _63 += 1) { //#13423 + var _66 = $k[--$j]; //#13423 + $k[$j++] = $f(_66 - $get($_.d, _63)); //#13423 + } //#13423 + $put($_.d, 5, $k[--$j]); //#13424 + if ($eq($_.version, "b") || $eq($_.version, "limitedb")) { //#13427 + $k[$j++] = Infinity; //#13426 + var _6B = $_.d; //#13426 + for (var _6C = 0, _6D = _6B.length; _6C < _6D; _6C++) { //#13426 + $k[$j++] = $f($get(_6B, _6C) + 1); //#13426 + } //#13426 + $_.d = $a(); //#13426 + } //#13426 + $_.cbs = $strcpy($s(12), "111111111111"); //#13428 + for (var _6I = 5; _6I >= 0; _6I -= 1) { //#13432 + $_.i = _6I; //#13430 + $put($_.cbs, ((5 - $_.i) * 2) + 1, $f($get($_.d, $_.i) + 47)); //#13431 + } //#13431 + $_.sbs = $s(($_.cws.length * 6) + 31); //#13435 + var _6S = $get($_.encs, $_.encs.length - 2); //#13436 + $puti($_.sbs, 0, _6S); //#13437 + $_.j = _6S.length; //#13438 + for (var _6W = 0, _6V = $_.cws.length - 1; _6W <= _6V; _6W += 1) { //#13443 + $_.i = _6W; //#13440 + $puti($_.sbs, $_.j, $get($_.encs, $get($_.cws, $_.i))); //#13441 + $_.j = $_.j + 6; //#13442 + } //#13442 + $puti($_.sbs, $_.j, $_.cbs); //#13444 + $_.j = $_.j + 12; //#13445 + var _6l = $get($_.encs, $_.encs.length - 1); //#13446 + $puti($_.sbs, $_.j, _6l); //#13447 + $_.j = _6l.length + $_.j; //#13448 + $_.sbs = $geti($_.sbs, 0, $_.j); //#13449 + $k[$j++] = Infinity; //#13452 + $k[$j++] = Infinity; //#13454 + var _6s = $_.sbs; //#13454 + for (var _6t = 0, _6u = _6s.length; _6t < _6u; _6t++) { //#13454 + $k[$j++] = $f($get(_6s, _6t) - 48); //#13454 + } //#13454 + var _6w = $a(); //#13454 + $k[$j++] = Infinity; //#13455 + for (var _6y = 0, _6z = ~~(($_.sbs.length + 1) / 2); _6y < _6z; _6y++) { //#13455 + $k[$j++] = $_.height; //#13455 + } //#13455 + var _71 = $a(); //#13455 + $k[$j++] = Infinity; //#13456 + for (var _73 = 0, _74 = ~~(($_.sbs.length + 1) / 2); _73 < _74; _73++) { //#13456 + $k[$j++] = 0; //#13456 + } //#13456 + var _75 = $a(); //#13456 + var _7D = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13459 + var _7G = new Map([ + ["a", 0], + ["b", 0], + ["limiteda", 12], + ["limitedb", 13] + ]); //#13460 + $k[$j++] = 'ren'; //#13461 + $k[$j++] = bwipp_renlinear; //#13461 + $k[$j++] = 'sbs'; //#13461 + $k[$j++] = _6w; //#13461 + $k[$j++] = 'bhs'; //#13461 + $k[$j++] = _71; //#13461 + $k[$j++] = 'bbs'; //#13461 + $k[$j++] = _75; //#13461 + $k[$j++] = 'txt'; //#13461 + $k[$j++] = $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])]); //#13461 + $k[$j++] = 'textxalign'; //#13461 + $k[$j++] = "center"; //#13461 + $k[$j++] = 'borderleft'; //#13461 + $k[$j++] = $get(_7D, $_.version); //#13461 + $k[$j++] = 'borderright'; //#13461 + $k[$j++] = $get(_7G, $_.version); //#13461 + $k[$j++] = 'opt'; //#13461 + $k[$j++] = $_.options; //#13461 + var _7K = $d(); //#13461 + $k[$j++] = _7K; //#13464 + if (!$_.dontdraw) { //#13464 + bwipp_renlinear(); //#13464 + } //#13464 + $_ = Object.getPrototypeOf($_); //#13466 + $_ = Object.getPrototypeOf($_); //#13468 +} //bwipp_posicode function bwipp_codablockf() { - $_ = Object.create($_); //#13292 - $_.dontdraw = false; //#13295 - $_.rows = -1; //#13296 - $_.columns = 8; //#13297 - $_.rowheight = 10; //#13298 - $_.sepheight = 1; //#13299 - $_.parse = false; //#13300 - $_.parsefnc = false; //#13301 - $k[$j++] = $_; //#13303 - bwipp_processoptions(); //#13303 - $_.options = $k[--$j]; //#13303 - $_.barcode = $k[--$j]; //#13304 - if (($_.columns < 4) || ($_.columns > 62)) { //#13308 - $k[$j++] = 'bwipp.codablockfBadColumns#13307'; //#13307 - $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13307 - bwipp_raiseerror(); //#13307 - } //#13307 - if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13312 - $k[$j++] = 'bwipp.codablockfBadRows#13311'; //#13311 - $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13311 - bwipp_raiseerror(); //#13311 - } //#13311 - if ($_.rowheight < 8) { //#13316 - $k[$j++] = 'bwipp.codablockfBadRowHeight#13315'; //#13315 - $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13315 - bwipp_raiseerror(); //#13315 - } //#13315 - if ($_.sepheight < 1) { //#13320 - $k[$j++] = 'bwipp.codablockfBadSepHeight#13319'; //#13319 - $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13319 - bwipp_raiseerror(); //#13319 - } //#13319 - bwipp_loadctx(bwipp_codablockf) //#13322 - $k[$j++] = 'c'; //#13324 - if (($_.columns >= 4) && ($_.columns <= 62)) { //#13324 - $k[$j++] = $_.columns; //#13324 - } else { //#13324 - $k[$j++] = 8; //#13324 - } //#13324 - var _C = $k[--$j]; //#13324 - $_[$k[--$j]] = _C; //#13324 - $k[$j++] = 'rows'; //#13325 - if (($_.rows >= 2) && ($_.rows <= 44)) { //#13325 - $k[$j++] = $_.rows; //#13325 - } else { //#13325 - $k[$j++] = -1; //#13325 - } //#13325 - var _H = $k[--$j]; //#13325 - $_[$k[--$j]] = _H; //#13325 - $_.swa = -1; //#13328 - $_.swb = -2; //#13328 - $_.swc = -3; //#13328 - $_.sft = -4; //#13328 - $_.fn1 = -5; //#13329 - $_.fn2 = -6; //#13329 - $_.fn3 = -7; //#13329 - $_.fn4 = -8; //#13329 - $_.sta = -9; //#13330 - $_.stp = -10; //#13330 + $_ = Object.create($_); //#13499 + $_.dontdraw = false; //#13502 + $_.rows = -1; //#13503 + $_.columns = 8; //#13504 + $_.rowheight = 10; //#13505 + $_.sepheight = 1; //#13506 + $_.parse = false; //#13507 + $_.parsefnc = false; //#13508 + $k[$j++] = $_; //#13510 + bwipp_processoptions(); //#13510 + $_.options = $k[--$j]; //#13510 + $_.barcode = $k[--$j]; //#13511 + if (($_.columns < 4) || ($_.columns > 62)) { //#13515 + $k[$j++] = 'bwipp.codablockfBadColumns#13514'; //#13514 + $k[$j++] = "Codablock F must have 4 to 62 columns"; //#13514 + bwipp_raiseerror(); //#13514 + } //#13514 + if (($_.rows != -1) && (($_.rows < 2) || ($_.rows > 44))) { //#13519 + $k[$j++] = 'bwipp.codablockfBadRows#13518'; //#13518 + $k[$j++] = "Codablock F must have 2 to 44 rows"; //#13518 + bwipp_raiseerror(); //#13518 + } //#13518 + if ($_.rowheight < 8) { //#13523 + $k[$j++] = 'bwipp.codablockfBadRowHeight#13522'; //#13522 + $k[$j++] = "Codablock F must have rowheight of at least 8"; //#13522 + bwipp_raiseerror(); //#13522 + } //#13522 + if ($_.sepheight < 1) { //#13527 + $k[$j++] = 'bwipp.codablockfBadSepHeight#13526'; //#13526 + $k[$j++] = "Codablock F must have sepheight of at least 1"; //#13526 + bwipp_raiseerror(); //#13526 + } //#13526 + bwipp_loadctx(bwipp_codablockf) //#13529 + $k[$j++] = 'c'; //#13531 + if (($_.columns >= 4) && ($_.columns <= 62)) { //#13531 + $k[$j++] = $_.columns; //#13531 + } else { //#13531 + $k[$j++] = 8; //#13531 + } //#13531 + var _C = $k[--$j]; //#13531 + $_[$k[--$j]] = _C; //#13531 + $k[$j++] = 'rows'; //#13532 + if (($_.rows >= 2) && ($_.rows <= 44)) { //#13532 + $k[$j++] = $_.rows; //#13532 + } else { //#13532 + $k[$j++] = -1; //#13532 + } //#13532 + var _H = $k[--$j]; //#13532 + $_[$k[--$j]] = _H; //#13532 + $_.swa = -1; //#13535 + $_.swb = -2; //#13535 + $_.swc = -3; //#13535 + $_.sft = -4; //#13535 + $_.fn1 = -5; //#13536 + $_.fn2 = -6; //#13536 + $_.fn3 = -7; //#13536 + $_.fn4 = -8; //#13536 + $_.sta = -9; //#13537 + $_.stp = -10; //#13537 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#13338 - $_.fncvals = _N; //#13340 - $k[$j++] = 'msg'; //#13341 - $k[$j++] = $_.barcode; //#13341 - $k[$j++] = $_.fncvals; //#13341 - bwipp_parseinput(); //#13341 - var _Q = $k[--$j]; //#13341 - $_[$k[--$j]] = _Q; //#13341 - $_.msglen = $_.msg.length; //#13342 - $_.msgtmp = $a([]); //#13345 - var _U = $_.msg; //#13346 - for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13349 - $_.char = $get(_U, _V); //#13347 - $k[$j++] = Infinity; //#13348 - $aload($_.msgtmp); //#13348 - if ($_.char < 128) { //#13348 - $k[$j++] = $_.char; //#13348 - } else { //#13348 - $k[$j++] = $_.fn4; //#13348 - $k[$j++] = $_.char & 127; //#13348 - } //#13348 - $_.msgtmp = $a(); //#13348 - } //#13348 - $_.kmsg = $_.msg; //#13350 - $_.msg = $_.msgtmp; //#13351 - $_.msglen = $_.msg.length; //#13352 - if (!bwipp_codablockf.__13409__) { //#13409 - $_ = Object.create($_); //#13409 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13393 - $_.charvals = $a([new Map, new Map, new Map]); //#13396 - for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13405 - $_.i = _2p; //#13398 - $_.encs = $get($_.charmaps, $_.i); //#13399 - for (var _2t = 0; _2t <= 2; _2t += 1) { //#13404 - $_.j = _2t; //#13401 - var _2w = $get($_.encs, $_.j); //#13402 - $k[$j++] = _2w; //#13402 - if ($eq($type(_2w), 'stringtype')) { //#13402 - var _2z = $get($k[--$j], 0); //#13402 - $k[$j++] = _2z; //#13402 - } //#13402 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13403 - } //#13403 - } //#13403 - $_.seta = $get($_.charvals, 0); //#13406 - $_.setb = $get($_.charvals, 1); //#13407 - $_.setc = $get($_.charvals, 2); //#13408 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13408 - bwipp_codablockf.__13409__ = 1; //#13408 - $_ = Object.getPrototypeOf($_); //#13408 - } //#13408 + ]); //#13545 + $_.fncvals = _N; //#13547 + $k[$j++] = 'msg'; //#13548 + $k[$j++] = $_.barcode; //#13548 + $k[$j++] = $_.fncvals; //#13548 + bwipp_parseinput(); //#13548 + var _Q = $k[--$j]; //#13548 + $_[$k[--$j]] = _Q; //#13548 + $_.msglen = $_.msg.length; //#13549 + $_.msgtmp = $a([]); //#13552 + var _U = $_.msg; //#13553 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#13556 + $_.char = $get(_U, _V); //#13554 + $k[$j++] = Infinity; //#13555 + $aload($_.msgtmp); //#13555 + if ($_.char < 128) { //#13555 + $k[$j++] = $_.char; //#13555 + } else { //#13555 + $k[$j++] = $_.fn4; //#13555 + $k[$j++] = $_.char & 127; //#13555 + } //#13555 + $_.msgtmp = $a(); //#13555 + } //#13555 + $_.kmsg = $_.msg; //#13557 + $_.msg = $_.msgtmp; //#13558 + $_.msglen = $_.msg.length; //#13559 + if (!bwipp_codablockf.__13616__) { //#13616 + $_ = Object.create($_); //#13616 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sft, $_.sft, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.sta, $_.sta, $_.sta]), $a([$_.stp, $_.stp, $_.stp])]); //#13600 + $_.charvals = $a([new Map, new Map, new Map]); //#13603 + for (var _2p = 0, _2o = $_.charmaps.length - 1; _2p <= _2o; _2p += 1) { //#13612 + $_.i = _2p; //#13605 + $_.encs = $get($_.charmaps, $_.i); //#13606 + for (var _2t = 0; _2t <= 2; _2t += 1) { //#13611 + $_.j = _2t; //#13608 + var _2w = $get($_.encs, $_.j); //#13609 + $k[$j++] = _2w; //#13609 + if ($eq($type(_2w), 'stringtype')) { //#13609 + var _2z = $get($k[--$j], 0); //#13609 + $k[$j++] = _2z; //#13609 + } //#13609 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13610 + } //#13610 + } //#13610 + $_.seta = $get($_.charvals, 0); //#13613 + $_.setb = $get($_.charvals, 1); //#13614 + $_.setc = $get($_.charvals, 2); //#13615 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13615 + bwipp_codablockf.__13616__ = 1; //#13615 + $_ = Object.getPrototypeOf($_); //#13615 + } //#13615 $_.numsscr = function() { - $_.n = 0; //#13413 - $_.s = 0; //#13413 - $_.p = $k[--$j]; //#13414 - for (;;) { //#13425 - if ($_.p >= $_.msglen) { //#13415 - break; //#13415 - } //#13415 - var _3H = $get($_.msg, $_.p); //#13416 - var _3J = $get($_.setc, _3H) !== undefined; //#13417 - $k[$j++] = _3H; //#13417 - if (!_3J) { //#13417 - $j--; //#13417 - break; //#13417 - } //#13417 - if ($k[--$j] == $_.fn1) { //#13421 - if (($_.s % 2) == 0) { //#13420 - $_.s = $_.s + 1; //#13420 - } else { //#13420 - break; //#13420 - } //#13420 - } //#13420 - $_.n = $_.n + 1; //#13422 - $_.s = $_.s + 1; //#13423 - $_.p = $f($_.p + 1); //#13424 - } //#13424 - $k[$j++] = $_.n; //#13426 - $k[$j++] = $_.s; //#13426 - }; //#13426 + $_.n = 0; //#13620 + $_.s = 0; //#13620 + $_.p = $k[--$j]; //#13621 + for (;;) { //#13632 + if ($_.p >= $_.msglen) { //#13622 + break; //#13622 + } //#13622 + var _3H = $get($_.msg, $_.p); //#13623 + var _3J = $get($_.setc, _3H) !== undefined; //#13624 + $k[$j++] = _3H; //#13624 + if (!_3J) { //#13624 + $j--; //#13624 + break; //#13624 + } //#13624 + if ($k[--$j] == $_.fn1) { //#13628 + if (($_.s % 2) == 0) { //#13627 + $_.s = $_.s + 1; //#13627 + } else { //#13627 + break; //#13627 + } //#13627 + } //#13627 + $_.n = $_.n + 1; //#13629 + $_.s = $_.s + 1; //#13630 + $_.p = $f($_.p + 1); //#13631 + } //#13631 + $k[$j++] = $_.n; //#13633 + $k[$j++] = $_.s; //#13633 + }; //#13633 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13431 - $_.j = $_.j + 1; //#13432 - }; //#13432 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#13638 + $_.j = $_.j + 1; //#13639 + }; //#13639 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13435 - $_.j = $_.j + 1; //#13436 - }; //#13436 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#13642 + $_.j = $_.j + 1; //#13643 + }; //#13643 $_.encc = function() { - var _3f = $k[--$j]; //#13439 - $k[$j++] = _3f; //#13443 - if ($ne($type(_3f), 'arraytype')) { //#13442 - var _3j = $get($_.setc, $k[--$j]); //#13440 - $k[$j++] = _3j; //#13440 - } else { //#13442 - $aload($k[--$j]); //#13442 - var _3l = $k[--$j]; //#13442 - var _3m = $k[--$j]; //#13442 - $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13442 - } //#13442 - $put($_.cws, $_.j, $k[--$j]); //#13444 - $_.j = $_.j + 1; //#13445 - }; //#13445 + var _3f = $k[--$j]; //#13646 + $k[$j++] = _3f; //#13650 + if ($ne($type(_3f), 'arraytype')) { //#13649 + var _3j = $get($_.setc, $k[--$j]); //#13647 + $k[$j++] = _3j; //#13647 + } else { //#13649 + $aload($k[--$j]); //#13649 + var _3l = $k[--$j]; //#13649 + var _3m = $k[--$j]; //#13649 + $k[$j++] = $f($f(_3l - 48) + ($f(_3m - 48) * 10)); //#13649 + } //#13649 + $put($_.cws, $_.j, $k[--$j]); //#13651 + $_.j = $_.j + 1; //#13652 + }; //#13652 $_.anotb = function() { - var _3r = $k[--$j]; //#13449 - var _3t = $get($_.seta, _3r) !== undefined; //#13449 - var _3v = $get($_.setb, _3r) !== undefined; //#13449 - $k[$j++] = _3t && (!_3v); //#13449 - }; //#13449 + var _3r = $k[--$j]; //#13656 + var _3t = $get($_.seta, _3r) !== undefined; //#13656 + var _3v = $get($_.setb, _3r) !== undefined; //#13656 + $k[$j++] = _3t && (!_3v); //#13656 + }; //#13656 $_.bnota = function() { - var _3w = $k[--$j]; //#13450 - var _3y = $get($_.setb, _3w) !== undefined; //#13450 - var _40 = $get($_.seta, _3w) !== undefined; //#13450 - $k[$j++] = _3y && (!_40); //#13450 - }; //#13450 - $k[$j++] = Infinity; //#13453 - for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13453 - $k[$j++] = 0; //#13453 - } //#13453 - $k[$j++] = 9999; //#13453 - $_.nextanotb = $a(); //#13453 - $k[$j++] = Infinity; //#13454 - for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13454 - $k[$j++] = 0; //#13454 - } //#13454 - $k[$j++] = 9999; //#13454 - $_.nextbnota = $a(); //#13454 - for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13467 - $_.i = _4A; //#13456 - $k[$j++] = $get($_.msg, $_.i); //#13457 - $_.anotb(); //#13457 - if ($k[--$j]) { //#13460 - $put($_.nextanotb, $_.i, 0); //#13458 - } else { //#13460 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13460 - } //#13460 - $k[$j++] = $get($_.msg, $_.i); //#13462 - $_.bnota(); //#13462 - if ($k[--$j]) { //#13465 - $put($_.nextbnota, $_.i, 0); //#13463 - } else { //#13465 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13465 - } //#13465 - } //#13465 + var _3w = $k[--$j]; //#13657 + var _3y = $get($_.setb, _3w) !== undefined; //#13657 + var _40 = $get($_.seta, _3w) !== undefined; //#13657 + $k[$j++] = _3y && (!_40); //#13657 + }; //#13657 + $k[$j++] = Infinity; //#13660 + for (var _42 = 0, _43 = $_.msg.length; _42 < _43; _42++) { //#13660 + $k[$j++] = 0; //#13660 + } //#13660 + $k[$j++] = 9999; //#13660 + $_.nextanotb = $a(); //#13660 + $k[$j++] = Infinity; //#13661 + for (var _46 = 0, _47 = $_.msg.length; _46 < _47; _46++) { //#13661 + $k[$j++] = 0; //#13661 + } //#13661 + $k[$j++] = 9999; //#13661 + $_.nextbnota = $a(); //#13661 + for (var _4A = $_.msg.length - 1; _4A >= 0; _4A -= 1) { //#13674 + $_.i = _4A; //#13663 + $k[$j++] = $get($_.msg, $_.i); //#13664 + $_.anotb(); //#13664 + if ($k[--$j]) { //#13667 + $put($_.nextanotb, $_.i, 0); //#13665 + } else { //#13667 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#13667 + } //#13667 + $k[$j++] = $get($_.msg, $_.i); //#13669 + $_.bnota(); //#13669 + if ($k[--$j]) { //#13672 + $put($_.nextbnota, $_.i, 0); //#13670 + } else { //#13672 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#13672 + } //#13672 + } //#13672 $_.abeforeb = function() { - var _4X = $k[--$j]; //#13470 - $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13470 - }; //#13470 + var _4X = $k[--$j]; //#13677 + $k[$j++] = $lt($get($_.nextanotb, _4X), $get($_.nextbnota, _4X)); //#13677 + }; //#13677 $_.bbeforea = function() { - var _4c = $k[--$j]; //#13471 - $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13471 - }; //#13471 + var _4c = $k[--$j]; //#13678 + $k[$j++] = $lt($get($_.nextbnota, _4c), $get($_.nextanotb, _4c)); //#13678 + }; //#13678 $_.padrow = function() { - for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13481 - for (;;) { //#13480 - if ($eq($_.cset, "seta")) { //#13477 - $k[$j++] = $_.swc; //#13477 - $_.enca(); //#13477 - $_.cset = "setc"; //#13477 - break; //#13477 - } //#13477 - if ($eq($_.cset, "setb")) { //#13478 - $k[$j++] = $_.swc; //#13478 - $_.encb(); //#13478 - $_.cset = "setc"; //#13478 - break; //#13478 - } //#13478 - if ($eq($_.cset, "setc")) { //#13479 - $k[$j++] = $_.swb; //#13479 - $_.encc(); //#13479 - $_.cset = "setb"; //#13479 - break; //#13479 - } //#13479 - } //#13479 - } //#13479 - }; //#13479 + for (var _4i = 0, _4j = $k[--$j]; _4i < _4j; _4i++) { //#13688 + for (;;) { //#13687 + if ($eq($_.cset, "seta")) { //#13684 + $k[$j++] = $_.swc; //#13684 + $_.enca(); //#13684 + $_.cset = "setc"; //#13684 + break; //#13684 + } //#13684 + if ($eq($_.cset, "setb")) { //#13685 + $k[$j++] = $_.swc; //#13685 + $_.encb(); //#13685 + $_.cset = "setc"; //#13685 + break; //#13685 + } //#13685 + if ($eq($_.cset, "setc")) { //#13686 + $k[$j++] = $_.swb; //#13686 + $_.encc(); //#13686 + $_.cset = "setb"; //#13686 + break; //#13686 + } //#13686 + } //#13686 + } //#13686 + }; //#13686 $_.encafitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13496 - var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13488 - $k[$j++] = _4z; //#13492 - if (_4z) { //#13492 - $k[$j++] = $_.fn4; //#13489 - $_.enca(); //#13489 - $k[$j++] = $get($_.msg, $_.i + 1); //#13490 - $_.enca(); //#13490 - $_.i = $_.i + 2; //#13491 - } //#13491 - } else { //#13496 - $k[$j++] = $get($_.msg, $_.i); //#13494 - $_.enca(); //#13494 - $_.i = $_.i + 1; //#13495 - $k[$j++] = true; //#13496 - } //#13496 - }; //#13496 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13703 + var _4z = ($_.rem == 2) && ($get($_.msg, $_.i + 1) <= 95); //#13695 + $k[$j++] = _4z; //#13699 + if (_4z) { //#13699 + $k[$j++] = $_.fn4; //#13696 + $_.enca(); //#13696 + $k[$j++] = $get($_.msg, $_.i + 1); //#13697 + $_.enca(); //#13697 + $_.i = $_.i + 2; //#13698 + } //#13698 + } else { //#13703 + $k[$j++] = $get($_.msg, $_.i); //#13701 + $_.enca(); //#13701 + $_.i = $_.i + 1; //#13702 + $k[$j++] = true; //#13703 + } //#13703 + }; //#13703 $_.encbfitsrow = function() { - if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13512 - var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13504 - $k[$j++] = _5I; //#13508 - if (_5I) { //#13508 - $k[$j++] = $_.fn4; //#13505 - $_.encb(); //#13505 - $k[$j++] = $get($_.msg, $_.i + 1); //#13506 - $_.encb(); //#13506 - $_.i = $_.i + 2; //#13507 - } //#13507 - } else { //#13512 - $k[$j++] = $get($_.msg, $_.i); //#13510 - $_.encb(); //#13510 - $_.i = $_.i + 1; //#13511 - $k[$j++] = true; //#13512 - } //#13512 - }; //#13512 - $_.cws = $a($f($_.c + 5) * 44); //#13517 - $_.i = 0; //#13519 - $_.j = 0; //#13519 - $_.r = 1; //#13519 - $_.lastrow = false; //#13520 - for (;;) { //#13687 - if ($_.lastrow) { //#13522 - break; //#13522 - } //#13522 - if ($_.r > 44) { //#13526 - $k[$j++] = 'bwipp.codablockfTooBig#13525'; //#13525 - $k[$j++] = "Maximum length exceeded"; //#13525 - bwipp_raiseerror(); //#13525 - } //#13525 - $k[$j++] = $_.sta; //#13529 - $_.enca(); //#13529 - if ($_.i < $_.msglen) { //#13530 - $k[$j++] = $_.i; //#13530 - $_.numsscr(); //#13530 - } else { //#13530 - $k[$j++] = -1; //#13530 - $k[$j++] = -1; //#13530 - } //#13530 - $_.nums = $k[--$j]; //#13530 - $_.nchars = $k[--$j]; //#13530 - for (;;) { //#13550 - if ($_.msglen == 0) { //#13536 - $k[$j++] = $_.swb; //#13533 - $_.enca(); //#13533 - $_.cset = "setb"; //#13534 - break; //#13535 - } //#13535 - if ($_.nums >= 2) { //#13541 - $k[$j++] = $_.swc; //#13538 - $_.enca(); //#13538 - $_.cset = "setc"; //#13539 - break; //#13540 - } //#13540 - $k[$j++] = $_.i; //#13542 - $_.abeforeb(); //#13542 - if ($k[--$j]) { //#13546 - $k[$j++] = $_.sft; //#13543 - $_.enca(); //#13543 - $_.cset = "seta"; //#13544 - break; //#13545 - } //#13545 - $k[$j++] = $_.swb; //#13547 - $_.enca(); //#13547 - $_.cset = "setb"; //#13548 - break; //#13549 - } //#13549 - $_.j = $_.j + 1; //#13551 - $_.endofrow = false; //#13554 - for (;;) { //#13672 - $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13555 - if (($_.i == $_.msglen) || $_.endofrow) { //#13557 - break; //#13557 - } //#13557 - $k[$j++] = $_.i; //#13559 - $_.numsscr(); //#13559 - $_.nums = $k[--$j]; //#13559 - $_.nchars = $k[--$j]; //#13559 - $k[$j++] = 'remnums'; //#13560 - if ($_.nums > ($_.rem * 2)) { //#13560 - $k[$j++] = $_.rem * 2; //#13560 - } else { //#13560 - $k[$j++] = $_.nums; //#13560 - } //#13560 - var _5y = $k[--$j]; //#13560 - $_[$k[--$j]] = _5y; //#13560 - for (;;) { //#13670 - if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13598 - if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13580 - $k[$j++] = $_.swc; //#13568 - if ($eq($_.cset, "seta")) { //#13568 - $_.enca(); //#13568 - } else { //#13568 - $_.encb(); //#13568 - } //#13568 - $_.cset = "setc"; //#13569 - for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13578 - if ($get($_.msg, $_.i) == $_.fn1) { //#13576 - $k[$j++] = $_.fn1; //#13572 - $_.encc(); //#13572 - $_.i = $_.i + 1; //#13573 - } else { //#13576 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13575 - $_.encc(); //#13575 - $_.i = $_.i + 2; //#13576 - } //#13576 - } //#13576 - break; //#13579 - } //#13579 - if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13597 - $k[$j++] = $get($_.msg, $_.i); //#13583 - if ($eq($_.cset, "seta")) { //#13583 - $_.enca(); //#13583 - } else { //#13583 - $_.encb(); //#13583 - } //#13583 - $_.i = $_.i + 1; //#13584 - $k[$j++] = $_.swc; //#13585 - if ($eq($_.cset, "seta")) { //#13585 - $_.enca(); //#13585 - } else { //#13585 - $_.encb(); //#13585 - } //#13585 - $_.cset = "setc"; //#13586 - for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13595 - if ($get($_.msg, $_.i) == $_.fn1) { //#13593 - $k[$j++] = $_.fn1; //#13589 - $_.encc(); //#13589 - $_.i = $_.i + 1; //#13590 - } else { //#13593 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13592 - $_.encc(); //#13592 - $_.i = $_.i + 2; //#13593 - } //#13593 - } //#13593 - break; //#13596 - } //#13596 - } //#13596 - $k[$j++] = $eq($_.cset, "setb"); //#13599 - $k[$j++] = $get($_.msg, $_.i); //#13599 - $_.anotb(); //#13599 - var _6m = $k[--$j]; //#13599 - var _6n = $k[--$j]; //#13599 - if ((_6n && _6m) && ($_.rem >= 2)) { //#13614 - if ($_.i < ($_.msglen - 1)) { //#13608 - $k[$j++] = $_.i + 1; //#13602 - $_.bbeforea(); //#13602 - if ($k[--$j]) { //#13607 - $k[$j++] = $_.sft; //#13603 - $_.encb(); //#13603 - $k[$j++] = $get($_.msg, $_.i); //#13604 - $_.enca(); //#13604 - $_.i = $_.i + 1; //#13605 - break; //#13606 - } //#13606 - } //#13606 - $k[$j++] = $_.swa; //#13609 - $_.encb(); //#13609 - $_.cset = "seta"; //#13610 - $k[$j++] = $get($_.msg, $_.i); //#13611 - $_.enca(); //#13611 - $_.i = $_.i + 1; //#13612 - break; //#13613 - } //#13613 - $k[$j++] = $eq($_.cset, "seta"); //#13615 - $k[$j++] = $get($_.msg, $_.i); //#13615 - $_.bnota(); //#13615 - var _77 = $k[--$j]; //#13615 - var _78 = $k[--$j]; //#13615 - if ((_78 && _77) && ($_.rem >= 2)) { //#13630 - if ($_.i < ($_.msglen - 1)) { //#13624 - $k[$j++] = $_.i + 1; //#13618 - $_.abeforeb(); //#13618 - if ($k[--$j]) { //#13623 - $k[$j++] = $_.sft; //#13619 - $_.enca(); //#13619 - $k[$j++] = $get($_.msg, $_.i); //#13620 - $_.encb(); //#13620 - $_.i = $_.i + 1; //#13621 - break; //#13622 - } //#13622 - } //#13622 - $k[$j++] = $_.swb; //#13625 - $_.enca(); //#13625 - $_.cset = "setb"; //#13626 - $k[$j++] = $get($_.msg, $_.i); //#13627 - $_.encb(); //#13627 - $_.i = $_.i + 1; //#13628 - break; //#13629 - } //#13629 - if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13643 - $_.rem = $f($_.rem - 1); //#13633 - $k[$j++] = $_.i; //#13634 - $_.abeforeb(); //#13634 - if ($k[--$j]) { //#13641 - $k[$j++] = $_.swa; //#13635 - $_.encc(); //#13635 - $_.cset = "seta"; //#13636 - $_.encafitsrow(); //#13637 - if ($k[--$j]) { //#13637 - break; //#13637 - } //#13637 - } else { //#13641 - $k[$j++] = $_.swb; //#13639 - $_.encc(); //#13639 - $_.cset = "setb"; //#13640 - $_.encbfitsrow(); //#13641 - if ($k[--$j]) { //#13641 - break; //#13641 - } //#13641 - } //#13641 - } //#13641 - var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13646 - if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13649 - $_.encafitsrow(); //#13648 - if ($k[--$j]) { //#13648 - break; //#13648 - } //#13648 - } //#13648 - var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13650 - if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13653 - $_.encbfitsrow(); //#13652 - if ($k[--$j]) { //#13652 - break; //#13652 - } //#13652 - } //#13652 - if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13664 - if ($get($_.msg, $_.i) == $_.fn1) { //#13661 - $k[$j++] = $_.fn1; //#13657 - $_.encc(); //#13657 - $_.i = $_.i + 1; //#13658 - } else { //#13661 - $k[$j++] = $geti($_.msg, $_.i, 2); //#13660 - $_.encc(); //#13660 - $_.i = $_.i + 2; //#13661 - } //#13661 - break; //#13663 - } //#13663 - $_.endofrow = true; //#13667 - break; //#13668 - } //#13668 - } //#13668 - if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13684 - $k[$j++] = $f($_.rem - 2); //#13676 - $_.padrow(); //#13676 - $_.j = $_.j + 3; //#13677 - $k[$j++] = $_.stp; //#13678 - $_.enca(); //#13678 - $_.lastrow = true; //#13679 - } else { //#13684 - $k[$j++] = $_.rem; //#13681 - $_.padrow(); //#13681 - $_.j = $_.j + 1; //#13682 - $k[$j++] = $_.stp; //#13683 - $_.enca(); //#13683 - $_.r = $_.r + 1; //#13684 - } //#13684 - } //#13684 - $_.cws = $geti($_.cws, 0, $_.j); //#13688 - if (!bwipp_codablockf.__13698__) { //#13698 - $_ = Object.create($_); //#13698 - $k[$j++] = Infinity; //#13695 - for (var _8I = 64; _8I <= 95; _8I += 1) { //#13693 - $k[$j++] = _8I; //#13693 - } //#13693 - for (var _8J = 0; _8J <= 15; _8J += 1) { //#13694 - $k[$j++] = _8J; //#13694 - } //#13694 - for (var _8K = 26; _8K <= 63; _8K += 1) { //#13695 - $k[$j++] = _8K; //#13695 - } //#13695 - $_.abmap = $a(); //#13695 - $k[$j++] = Infinity; //#13697 - for (var _8M = 0; _8M <= 85; _8M += 1) { //#13697 - $k[$j++] = _8M; //#13697 - } //#13697 - $_.cmap = $a(); //#13697 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13697 - bwipp_codablockf.__13698__ = 1; //#13697 - $_ = Object.getPrototypeOf($_); //#13697 - } //#13697 - $_.chkmsg = $a($_.kmsg.length); //#13701 - $_.j = 0; //#13702 - for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13708 - $_.i = _8T; //#13704 - $_.char = $get($_.kmsg, $_.i); //#13705 - if ($_.char >= 0) { //#13706 - $put($_.chkmsg, $_.j, $_.char); //#13706 - $_.j = $_.j + 1; //#13706 - } //#13706 - if (($_.char == $_.fn1) && ($_.i != 0)) { //#13707 - $put($_.chkmsg, $_.j, 29); //#13707 - $_.j = $_.j + 1; //#13707 - } //#13707 - } //#13707 - $_.t1 = 0; //#13709 - $_.t2 = 0; //#13709 - $_.k1 = 0; //#13709 - $_.k2 = 0; //#13709 - for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13716 - $_.i = _8k; //#13711 - $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13712 - $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13713 - $_.k1 = $f($_.k1 + $_.t2) % 86; //#13714 - $_.k2 = $f($_.k2 + $_.t1) % 86; //#13715 - } //#13715 - $k[$j++] = $_.cws; //#13717 - $k[$j++] = $_.cws.length - 4; //#13717 - if ($ne($_.cset, "setc")) { //#13717 - $k[$j++] = $_.abmap; //#13717 - } else { //#13717 - $k[$j++] = $_.cmap; //#13717 - } //#13717 - var _94 = $get($k[--$j], $_.k1); //#13717 - var _95 = $k[--$j]; //#13717 - $put($k[--$j], _95, _94); //#13717 - $k[$j++] = $_.cws; //#13718 - $k[$j++] = $_.cws.length - 3; //#13718 - if ($ne($_.cset, "setc")) { //#13718 - $k[$j++] = $_.abmap; //#13718 - } else { //#13718 - $k[$j++] = $_.cmap; //#13718 - } //#13718 - var _9E = $get($k[--$j], $_.k2); //#13718 - var _9F = $k[--$j]; //#13718 - $put($k[--$j], _9F, _9E); //#13718 - var _9H = $_.cws; //#13721 - $k[$j++] = _9H; //#13721 - $k[$j++] = 2; //#13721 - if ($get(_9H, 2 - 1) != 99) { //#13721 - $k[$j++] = $_.abmap; //#13721 - } else { //#13721 - $k[$j++] = $_.cmap; //#13721 - } //#13721 - var _9N = $get($k[--$j], $_.r - 2); //#13721 - var _9O = $k[--$j]; //#13721 - $put($k[--$j], _9O, _9N); //#13721 - for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13725 - $_.i = _9S; //#13723 - var _9T = $_.cws; //#13724 - var _9U = $_.i; //#13724 - var _9V = $_.c; //#13724 - $k[$j++] = _9T; //#13724 - $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13724 - if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13724 - $k[$j++] = $_.abmap; //#13724 - } else { //#13724 - $k[$j++] = $_.cmap; //#13724 - } //#13724 - var _9b = $get($k[--$j], $_.i + 42); //#13724 - var _9c = $k[--$j]; //#13724 - $put($k[--$j], _9c, _9b); //#13724 - } //#13724 - for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13736 - $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13729 - $_.csum = $get($_.rcws, 0); //#13730 - for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13734 - $_.i = _9p; //#13732 - $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13733 - } //#13733 - $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13735 - } //#13735 - var _9z = $get($_.options, 'debugcws') !== undefined; //#13738 - if (_9z) { //#13738 - $k[$j++] = 'bwipp.debugcws#13738'; //#13738 - $k[$j++] = $_.cws; //#13738 - bwipp_raiseerror(); //#13738 - } //#13738 - if (!bwipp_codablockf.__13759__) { //#13759 - $_ = Object.create($_); //#13759 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13758 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13758 - bwipp_codablockf.__13759__ = 1; //#13758 - $_ = Object.getPrototypeOf($_); //#13758 - } //#13758 - $_.rowbits = $a($_.r); //#13762 - for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13774 - $_.i = _A7; //#13764 - $k[$j++] = Infinity; //#13767 - var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13766 - for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13768 - $forall($get($_.encs, $get(_AC, _AD)), function() { //#13767 - var _AI = $k[--$j]; //#13767 - $k[$j++] = $f(_AI - 48); //#13767 - }); //#13767 - } //#13767 - $_.sbs = $a(); //#13767 - $k[$j++] = Infinity; //#13770 - var _AK = $_.sbs; //#13771 - $k[$j++] = 0; //#13771 - for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13771 - var _AO = $k[--$j]; //#13771 - var _AP = (_AO == 1) ? 0 : 1; //#13771 - $k[$j++] = _AO; //#13771 - for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13771 - $k[$j++] = _AP //#13771 - } //#13771 - } //#13771 - $astore($a($counttomark() - 1)); //#13772 - var _AU = $k[--$j]; //#13772 - var _AV = $k[--$j]; //#13772 - $k[$j++] = _AU; //#13772 - $k[$j++] = _AV; //#13772 - $j--; //#13772 - var _AW = $k[--$j]; //#13772 - var _AX = $k[--$j]; //#13772 - $k[$j++] = _AW; //#13772 - $k[$j++] = _AX; //#13772 - $j--; //#13772 - $put($_.rowbits, $_.i, $k[--$j]); //#13773 - } //#13773 - $_.symwid = $f(($_.c * 11) + 57); //#13777 - $k[$j++] = Infinity; //#13790 - for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13779 - $k[$j++] = 1; //#13779 - } //#13779 - for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13788 - $_.i = _Ai; //#13781 - for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13782 - $aload($get($_.rowbits, $_.i)); //#13782 - } //#13782 - for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13787 - $k[$j++] = 1; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 1; //#13785 - $k[$j++] = 0; //#13785 - $k[$j++] = 0; //#13785 - for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13785 - $k[$j++] = 1; //#13785 - } //#13785 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 0; //#13786 - $k[$j++] = 1; //#13786 - $k[$j++] = 1; //#13786 - } //#13786 - } //#13786 - for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13789 - $aload($get($_.rowbits, $_.r - 1)); //#13789 - } //#13789 - for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13790 - $k[$j++] = 1; //#13790 - } //#13790 - $_.pixs = $a(); //#13790 + if (($_.rem <= 2) && ($get($_.msg, $_.i) == $_.fn4)) { //#13719 + var _5I = ($_.rem == 2) && ($get($_.msg, $_.i + 1) >= 32); //#13711 + $k[$j++] = _5I; //#13715 + if (_5I) { //#13715 + $k[$j++] = $_.fn4; //#13712 + $_.encb(); //#13712 + $k[$j++] = $get($_.msg, $_.i + 1); //#13713 + $_.encb(); //#13713 + $_.i = $_.i + 2; //#13714 + } //#13714 + } else { //#13719 + $k[$j++] = $get($_.msg, $_.i); //#13717 + $_.encb(); //#13717 + $_.i = $_.i + 1; //#13718 + $k[$j++] = true; //#13719 + } //#13719 + }; //#13719 + $_.cws = $a($f($_.c + 5) * 44); //#13724 + $_.i = 0; //#13726 + $_.j = 0; //#13726 + $_.r = 1; //#13726 + $_.lastrow = false; //#13727 + for (;;) { //#13894 + if ($_.lastrow) { //#13729 + break; //#13729 + } //#13729 + if ($_.r > 44) { //#13733 + $k[$j++] = 'bwipp.codablockfTooBig#13732'; //#13732 + $k[$j++] = "Maximum length exceeded"; //#13732 + bwipp_raiseerror(); //#13732 + } //#13732 + $k[$j++] = $_.sta; //#13736 + $_.enca(); //#13736 + if ($_.i < $_.msglen) { //#13737 + $k[$j++] = $_.i; //#13737 + $_.numsscr(); //#13737 + } else { //#13737 + $k[$j++] = -1; //#13737 + $k[$j++] = -1; //#13737 + } //#13737 + $_.nums = $k[--$j]; //#13737 + $_.nchars = $k[--$j]; //#13737 + for (;;) { //#13757 + if ($_.msglen == 0) { //#13743 + $k[$j++] = $_.swb; //#13740 + $_.enca(); //#13740 + $_.cset = "setb"; //#13741 + break; //#13742 + } //#13742 + if ($_.nums >= 2) { //#13748 + $k[$j++] = $_.swc; //#13745 + $_.enca(); //#13745 + $_.cset = "setc"; //#13746 + break; //#13747 + } //#13747 + $k[$j++] = $_.i; //#13749 + $_.abeforeb(); //#13749 + if ($k[--$j]) { //#13753 + $k[$j++] = $_.sft; //#13750 + $_.enca(); //#13750 + $_.cset = "seta"; //#13751 + break; //#13752 + } //#13752 + $k[$j++] = $_.swb; //#13754 + $_.enca(); //#13754 + $_.cset = "setb"; //#13755 + break; //#13756 + } //#13756 + $_.j = $_.j + 1; //#13758 + $_.endofrow = false; //#13761 + for (;;) { //#13879 + $_.rem = $f($f($_.c + 3) - ($_.j % $f($_.c + 5))); //#13762 + if (($_.i == $_.msglen) || $_.endofrow) { //#13764 + break; //#13764 + } //#13764 + $k[$j++] = $_.i; //#13766 + $_.numsscr(); //#13766 + $_.nums = $k[--$j]; //#13766 + $_.nchars = $k[--$j]; //#13766 + $k[$j++] = 'remnums'; //#13767 + if ($_.nums > ($_.rem * 2)) { //#13767 + $k[$j++] = $_.rem * 2; //#13767 + } else { //#13767 + $k[$j++] = $_.nums; //#13767 + } //#13767 + var _5y = $k[--$j]; //#13767 + $_[$k[--$j]] = _5y; //#13767 + for (;;) { //#13877 + if ((($eq($_.cset, "seta") || $eq($_.cset, "setb")) && ($_.remnums >= 4)) && ($get($_.msg, $_.i) != $_.fn1)) { //#13805 + if ((($_.remnums % 2) == 0) && ($_.rem >= 3)) { //#13787 + $k[$j++] = $_.swc; //#13775 + if ($eq($_.cset, "seta")) { //#13775 + $_.enca(); //#13775 + } else { //#13775 + $_.encb(); //#13775 + } //#13775 + $_.cset = "setc"; //#13776 + for (var _6B = 0, _6C = 2; _6B < _6C; _6B++) { //#13785 + if ($get($_.msg, $_.i) == $_.fn1) { //#13783 + $k[$j++] = $_.fn1; //#13779 + $_.encc(); //#13779 + $_.i = $_.i + 1; //#13780 + } else { //#13783 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13782 + $_.encc(); //#13782 + $_.i = $_.i + 2; //#13783 + } //#13783 + } //#13783 + break; //#13786 + } //#13786 + if ((($_.remnums % 2) != 0) && ($_.rem >= 4)) { //#13804 + $k[$j++] = $get($_.msg, $_.i); //#13790 + if ($eq($_.cset, "seta")) { //#13790 + $_.enca(); //#13790 + } else { //#13790 + $_.encb(); //#13790 + } //#13790 + $_.i = $_.i + 1; //#13791 + $k[$j++] = $_.swc; //#13792 + if ($eq($_.cset, "seta")) { //#13792 + $_.enca(); //#13792 + } else { //#13792 + $_.encb(); //#13792 + } //#13792 + $_.cset = "setc"; //#13793 + for (var _6W = 0, _6X = 2; _6W < _6X; _6W++) { //#13802 + if ($get($_.msg, $_.i) == $_.fn1) { //#13800 + $k[$j++] = $_.fn1; //#13796 + $_.encc(); //#13796 + $_.i = $_.i + 1; //#13797 + } else { //#13800 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13799 + $_.encc(); //#13799 + $_.i = $_.i + 2; //#13800 + } //#13800 + } //#13800 + break; //#13803 + } //#13803 + } //#13803 + $k[$j++] = $eq($_.cset, "setb"); //#13806 + $k[$j++] = $get($_.msg, $_.i); //#13806 + $_.anotb(); //#13806 + var _6m = $k[--$j]; //#13806 + var _6n = $k[--$j]; //#13806 + if ((_6n && _6m) && ($_.rem >= 2)) { //#13821 + if ($_.i < ($_.msglen - 1)) { //#13815 + $k[$j++] = $_.i + 1; //#13809 + $_.bbeforea(); //#13809 + if ($k[--$j]) { //#13814 + $k[$j++] = $_.sft; //#13810 + $_.encb(); //#13810 + $k[$j++] = $get($_.msg, $_.i); //#13811 + $_.enca(); //#13811 + $_.i = $_.i + 1; //#13812 + break; //#13813 + } //#13813 + } //#13813 + $k[$j++] = $_.swa; //#13816 + $_.encb(); //#13816 + $_.cset = "seta"; //#13817 + $k[$j++] = $get($_.msg, $_.i); //#13818 + $_.enca(); //#13818 + $_.i = $_.i + 1; //#13819 + break; //#13820 + } //#13820 + $k[$j++] = $eq($_.cset, "seta"); //#13822 + $k[$j++] = $get($_.msg, $_.i); //#13822 + $_.bnota(); //#13822 + var _77 = $k[--$j]; //#13822 + var _78 = $k[--$j]; //#13822 + if ((_78 && _77) && ($_.rem >= 2)) { //#13837 + if ($_.i < ($_.msglen - 1)) { //#13831 + $k[$j++] = $_.i + 1; //#13825 + $_.abeforeb(); //#13825 + if ($k[--$j]) { //#13830 + $k[$j++] = $_.sft; //#13826 + $_.enca(); //#13826 + $k[$j++] = $get($_.msg, $_.i); //#13827 + $_.encb(); //#13827 + $_.i = $_.i + 1; //#13828 + break; //#13829 + } //#13829 + } //#13829 + $k[$j++] = $_.swb; //#13832 + $_.enca(); //#13832 + $_.cset = "setb"; //#13833 + $k[$j++] = $get($_.msg, $_.i); //#13834 + $_.encb(); //#13834 + $_.i = $_.i + 1; //#13835 + break; //#13836 + } //#13836 + if (($eq($_.cset, "setc") && ($_.remnums < 2)) && ($_.rem >= 2)) { //#13850 + $_.rem = $f($_.rem - 1); //#13840 + $k[$j++] = $_.i; //#13841 + $_.abeforeb(); //#13841 + if ($k[--$j]) { //#13848 + $k[$j++] = $_.swa; //#13842 + $_.encc(); //#13842 + $_.cset = "seta"; //#13843 + $_.encafitsrow(); //#13844 + if ($k[--$j]) { //#13844 + break; //#13844 + } //#13844 + } else { //#13848 + $k[$j++] = $_.swb; //#13846 + $_.encc(); //#13846 + $_.cset = "setb"; //#13847 + $_.encbfitsrow(); //#13848 + if ($k[--$j]) { //#13848 + break; //#13848 + } //#13848 + } //#13848 + } //#13848 + var _7d = $get($_.seta, $get($_.msg, $_.i)) !== undefined; //#13853 + if (($eq($_.cset, "seta") && _7d) && ($_.rem >= 1)) { //#13856 + $_.encafitsrow(); //#13855 + if ($k[--$j]) { //#13855 + break; //#13855 + } //#13855 + } //#13855 + var _7l = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#13857 + if (($eq($_.cset, "setb") && _7l) && ($_.rem >= 1)) { //#13860 + $_.encbfitsrow(); //#13859 + if ($k[--$j]) { //#13859 + break; //#13859 + } //#13859 + } //#13859 + if (($eq($_.cset, "setc") && ($_.remnums >= 2)) && ($_.rem >= 1)) { //#13871 + if ($get($_.msg, $_.i) == $_.fn1) { //#13868 + $k[$j++] = $_.fn1; //#13864 + $_.encc(); //#13864 + $_.i = $_.i + 1; //#13865 + } else { //#13868 + $k[$j++] = $geti($_.msg, $_.i, 2); //#13867 + $_.encc(); //#13867 + $_.i = $_.i + 2; //#13868 + } //#13868 + break; //#13870 + } //#13870 + $_.endofrow = true; //#13874 + break; //#13875 + } //#13875 + } //#13875 + if ((((($_.r >= $_.rows) || ($_.rows == -1)) && ($_.r > 1)) && ($_.i == $_.msglen)) && ($_.rem >= 2)) { //#13891 + $k[$j++] = $f($_.rem - 2); //#13883 + $_.padrow(); //#13883 + $_.j = $_.j + 3; //#13884 + $k[$j++] = $_.stp; //#13885 + $_.enca(); //#13885 + $_.lastrow = true; //#13886 + } else { //#13891 + $k[$j++] = $_.rem; //#13888 + $_.padrow(); //#13888 + $_.j = $_.j + 1; //#13889 + $k[$j++] = $_.stp; //#13890 + $_.enca(); //#13890 + $_.r = $_.r + 1; //#13891 + } //#13891 + } //#13891 + $_.cws = $geti($_.cws, 0, $_.j); //#13895 + if (!bwipp_codablockf.__13905__) { //#13905 + $_ = Object.create($_); //#13905 + $k[$j++] = Infinity; //#13899 + for (var _8I = 64; _8I <= 95; _8I += 1) { //#13900 + $k[$j++] = _8I; //#13900 + } //#13900 + for (var _8J = 0; _8J <= 15; _8J += 1) { //#13901 + $k[$j++] = _8J; //#13901 + } //#13901 + for (var _8K = 26; _8K <= 63; _8K += 1) { //#13902 + $k[$j++] = _8K; //#13902 + } //#13902 + $_.abmap = $a(); //#13902 + $k[$j++] = Infinity; //#13904 + for (var _8M = 0; _8M <= 85; _8M += 1) { //#13904 + $k[$j++] = _8M; //#13904 + } //#13904 + $_.cmap = $a(); //#13904 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13904 + bwipp_codablockf.__13905__ = 1; //#13904 + $_ = Object.getPrototypeOf($_); //#13904 + } //#13904 + $_.chkmsg = $a($_.kmsg.length); //#13908 + $_.j = 0; //#13909 + for (var _8T = 0, _8S = $_.kmsg.length - 1; _8T <= _8S; _8T += 1) { //#13915 + $_.i = _8T; //#13911 + $_.char = $get($_.kmsg, $_.i); //#13912 + if ($_.char >= 0) { //#13913 + $put($_.chkmsg, $_.j, $_.char); //#13913 + $_.j = $_.j + 1; //#13913 + } //#13913 + if (($_.char == $_.fn1) && ($_.i != 0)) { //#13914 + $put($_.chkmsg, $_.j, 29); //#13914 + $_.j = $_.j + 1; //#13914 + } //#13914 + } //#13914 + $_.t1 = 0; //#13916 + $_.t2 = 0; //#13916 + $_.k1 = 0; //#13916 + $_.k2 = 0; //#13916 + for (var _8k = 0, _8j = $_.j - 1; _8k <= _8j; _8k += 1) { //#13923 + $_.i = _8k; //#13918 + $_.t1 = ($get($_.chkmsg, $_.i) * $_.i) % 86; //#13919 + $_.t2 = $f($_.t1 + $get($_.chkmsg, $_.i)) % 86; //#13920 + $_.k1 = $f($_.k1 + $_.t2) % 86; //#13921 + $_.k2 = $f($_.k2 + $_.t1) % 86; //#13922 + } //#13922 + $k[$j++] = $_.cws; //#13924 + $k[$j++] = $_.cws.length - 4; //#13924 + if ($ne($_.cset, "setc")) { //#13924 + $k[$j++] = $_.abmap; //#13924 + } else { //#13924 + $k[$j++] = $_.cmap; //#13924 + } //#13924 + var _94 = $get($k[--$j], $_.k1); //#13924 + var _95 = $k[--$j]; //#13924 + $put($k[--$j], _95, _94); //#13924 + $k[$j++] = $_.cws; //#13925 + $k[$j++] = $_.cws.length - 3; //#13925 + if ($ne($_.cset, "setc")) { //#13925 + $k[$j++] = $_.abmap; //#13925 + } else { //#13925 + $k[$j++] = $_.cmap; //#13925 + } //#13925 + var _9E = $get($k[--$j], $_.k2); //#13925 + var _9F = $k[--$j]; //#13925 + $put($k[--$j], _9F, _9E); //#13925 + var _9H = $_.cws; //#13928 + $k[$j++] = _9H; //#13928 + $k[$j++] = 2; //#13928 + if ($get(_9H, 2 - 1) != 99) { //#13928 + $k[$j++] = $_.abmap; //#13928 + } else { //#13928 + $k[$j++] = $_.cmap; //#13928 + } //#13928 + var _9N = $get($k[--$j], $_.r - 2); //#13928 + var _9O = $k[--$j]; //#13928 + $put($k[--$j], _9O, _9N); //#13928 + for (var _9S = 1, _9R = $_.r - 1; _9S <= _9R; _9S += 1) { //#13932 + $_.i = _9S; //#13930 + var _9T = $_.cws; //#13931 + var _9U = $_.i; //#13931 + var _9V = $_.c; //#13931 + $k[$j++] = _9T; //#13931 + $k[$j++] = $f((_9U * $f(_9V + 5)) + 2); //#13931 + if ($get(_9T, $f(($f((_9U * $f(_9V + 5)) + 2)) - 1)) != 99) { //#13931 + $k[$j++] = $_.abmap; //#13931 + } else { //#13931 + $k[$j++] = $_.cmap; //#13931 + } //#13931 + var _9b = $get($k[--$j], $_.i + 42); //#13931 + var _9c = $k[--$j]; //#13931 + $put($k[--$j], _9c, _9b); //#13931 + } //#13931 + for (var _9g = 0, _9f = $_.r - 1; _9g <= _9f; _9g += 1) { //#13943 + $_.rcws = $geti($_.cws, _9g * $f($_.c + 5), $f($_.c + 4)); //#13936 + $_.csum = $get($_.rcws, 0); //#13937 + for (var _9p = 1, _9o = $_.rcws.length - 2; _9p <= _9o; _9p += 1) { //#13941 + $_.i = _9p; //#13939 + $_.csum = $f($_.csum + ($get($_.rcws, $_.i) * $_.i)); //#13940 + } //#13940 + $put($_.rcws, $_.rcws.length - 1, $_.csum % 103); //#13942 + } //#13942 + var _9z = $get($_.options, 'debugcws') !== undefined; //#13945 + if (_9z) { //#13945 + $k[$j++] = 'bwipp.debugcws#13945'; //#13945 + $k[$j++] = $_.cws; //#13945 + bwipp_raiseerror(); //#13945 + } //#13945 + if (!bwipp_codablockf.__13966__) { //#13966 + $_ = Object.create($_); //#13966 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#13965 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codablockf.$ctx[id] = $_[id]); //#13965 + bwipp_codablockf.__13966__ = 1; //#13965 + $_ = Object.getPrototypeOf($_); //#13965 + } //#13965 + $_.rowbits = $a($_.r); //#13969 + for (var _A7 = 0, _A6 = $_.r - 1; _A7 <= _A6; _A7 += 1) { //#13981 + $_.i = _A7; //#13971 + $k[$j++] = Infinity; //#13972 + var _AC = $geti($_.cws, $_.i * $f($_.c + 5), $f($_.c + 5)); //#13973 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#13975 + $forall($get($_.encs, $get(_AC, _AD)), function() { //#13974 + var _AI = $k[--$j]; //#13974 + $k[$j++] = $f(_AI - 48); //#13974 + }); //#13974 + } //#13974 + $_.sbs = $a(); //#13974 + $k[$j++] = Infinity; //#13977 + var _AK = $_.sbs; //#13978 + $k[$j++] = 0; //#13978 + for (var _AL = 0, _AM = _AK.length; _AL < _AM; _AL++) { //#13978 + var _AO = $k[--$j]; //#13978 + var _AP = (_AO == 1) ? 0 : 1; //#13978 + $k[$j++] = _AO; //#13978 + for (var _AQ = 0, _AR = $get(_AK, _AL); _AQ < _AR; _AQ++) { //#13978 + $k[$j++] = _AP //#13978 + } //#13978 + } //#13978 + $astore($a($counttomark() - 1)); //#13979 + var _AU = $k[--$j]; //#13979 + var _AV = $k[--$j]; //#13979 + $k[$j++] = _AU; //#13979 + $k[$j++] = _AV; //#13979 + $j--; //#13979 + var _AW = $k[--$j]; //#13979 + var _AX = $k[--$j]; //#13979 + $k[$j++] = _AW; //#13979 + $k[$j++] = _AX; //#13979 + $j--; //#13979 + $put($_.rowbits, $_.i, $k[--$j]); //#13980 + } //#13980 + $_.symwid = $f(($_.c * 11) + 57); //#13984 + $k[$j++] = Infinity; //#13985 + for (var _Ae = 0, _Af = $_.symwid * $_.sepheight; _Ae < _Af; _Ae++) { //#13986 + $k[$j++] = 1; //#13986 + } //#13986 + for (var _Ai = 0, _Ah = $_.r - 2; _Ai <= _Ah; _Ai += 1) { //#13995 + $_.i = _Ai; //#13988 + for (var _Ak = 0, _Al = $_.rowheight; _Ak < _Al; _Ak++) { //#13989 + $aload($get($_.rowbits, $_.i)); //#13989 + } //#13989 + for (var _Aq = 0, _Ar = $_.sepheight; _Aq < _Ar; _Aq++) { //#13994 + $k[$j++] = 1; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 1; //#13992 + $k[$j++] = 0; //#13992 + $k[$j++] = 0; //#13992 + for (var _At = 0, _Au = $f($_.symwid - 24); _At < _Au; _At++) { //#13992 + $k[$j++] = 1; //#13992 + } //#13992 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 0; //#13993 + $k[$j++] = 1; //#13993 + $k[$j++] = 1; //#13993 + } //#13993 + } //#13993 + for (var _Aw = 0, _Ax = $_.rowheight; _Aw < _Ax; _Aw++) { //#13996 + $aload($get($_.rowbits, $_.r - 1)); //#13996 + } //#13996 + for (var _B3 = 0, _B4 = $_.symwid * $_.sepheight; _B3 < _B4; _B3++) { //#13997 + $k[$j++] = 1; //#13997 + } //#13997 + $_.pixs = $a(); //#13997 var _BE = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -17167,152 +17490,151 @@ function bwipp_codablockf() { ["height", (~~($_.pixs.length / $_.symwid)) / 72], ["width", $_.symwid / 72], ["opt", $_.options] - ]); //#13801 - $k[$j++] = _BE; //#13804 - if (!$_.dontdraw) { //#13804 - bwipp_renmatrix(); //#13804 - } //#13804 - $_ = Object.getPrototypeOf($_); //#13806 - $_ = Object.getPrototypeOf($_); //#13808 -} - + ]); //#14008 + $k[$j++] = _BE; //#14011 + if (!$_.dontdraw) { //#14011 + bwipp_renmatrix(); //#14011 + } //#14011 + $_ = Object.getPrototypeOf($_); //#14013 + $_ = Object.getPrototypeOf($_); //#14015 +} //bwipp_codablockf function bwipp_code16k() { - $_ = Object.create($_); //#13839 - $_.dontdraw = false; //#13842 - $_.sam = -1; //#13843 - $_.rows = 0; //#13844 - $_.rowheight = 8; //#13845 - $_.sepheight = 1; //#13846 - $_.raw = false; //#13847 - $_.parse = false; //#13848 - $_.parsefnc = false; //#13849 - $k[$j++] = $_; //#13851 - bwipp_processoptions(); //#13851 - $_.options = $k[--$j]; //#13851 - $_.barcode = $k[--$j]; //#13852 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#13856 - $k[$j++] = 'bwipp.code16kBadRows#13855'; //#13855 - $k[$j++] = "Code 16K must have 2 to 16 rows"; //#13855 - bwipp_raiseerror(); //#13855 - } //#13855 - if ($_.rowheight < 8) { //#13860 - $k[$j++] = 'bwipp.code16kBadRowHeight#13859'; //#13859 - $k[$j++] = "Code 16K must have rowheight of at least 8"; //#13859 - bwipp_raiseerror(); //#13859 - } //#13859 - if ($_.sepheight < 1) { //#13864 - $k[$j++] = 'bwipp.code16kBadSepHeight#13863'; //#13863 - $k[$j++] = "Code 16K must have sepheight of at least 1"; //#13863 - bwipp_raiseerror(); //#13863 - } //#13863 - if ($_.sam != -1) { //#13876 - $k[$j++] = true; //#13872 - for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#13872 - var _A = $_.sam; //#13869 - if ((_A < 12) || (_A > 99)) { //#13869 - $j--; //#13869 - $k[$j++] = false; //#13869 - break; //#13869 - } //#13869 - if (($_.sam % 10) < 2) { //#13870 - $j--; //#13870 - $k[$j++] = false; //#13870 - break; //#13870 - } //#13870 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#13871 - $j--; //#13871 - $k[$j++] = false; //#13871 - break; //#13871 - } //#13871 - } //#13871 - if ($nt($k[--$j])) { //#13875 - $k[$j++] = 'bwipp.code16kBadSAM#13874'; //#13874 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#13874 - bwipp_raiseerror(); //#13874 - } //#13874 - } //#13874 - bwipp_loadctx(bwipp_code16k) //#13878 - if ($_.sam != -1) { //#13880 - $_.rows = 16; //#13880 - } //#13880 - if (!bwipp_code16k.__13945__) { //#13945 - $_ = Object.create($_); //#13945 - $_.swa = -1; //#13884 - $_.swb = -2; //#13884 - $_.swc = -3; //#13884 - $_.sa1 = -4; //#13885 - $_.sb1 = -5; //#13885 - $_.sc1 = -6; //#13885 - $_.sa2 = -7; //#13886 - $_.sb2 = -8; //#13886 - $_.sc2 = -9; //#13886 - $_.pad = -10; //#13887 - $_.sb3 = -11; //#13887 - $_.sc3 = -12; //#13887 - $_.fn1 = -13; //#13888 - $_.fn2 = -14; //#13888 - $_.fn3 = -15; //#13888 - $_.fn4 = -16; //#13888 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#13929 - $_.charvals = $a([new Map, new Map, new Map]); //#13932 - for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#13941 - $_.i = _2W; //#13934 - $_.encs = $get($_.charmaps, $_.i); //#13935 - for (var _2a = 0; _2a <= 2; _2a += 1) { //#13940 - $_.j = _2a; //#13937 - var _2d = $get($_.encs, $_.j); //#13938 - $k[$j++] = _2d; //#13938 - if ($eq($type(_2d), 'stringtype')) { //#13938 - var _2g = $get($k[--$j], 0); //#13938 - $k[$j++] = _2g; //#13938 - } //#13938 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#13939 - } //#13939 - } //#13939 - $_.seta = $get($_.charvals, 0); //#13942 - $_.setb = $get($_.charvals, 1); //#13943 - $_.setc = $get($_.charvals, 2); //#13944 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#13944 - bwipp_code16k.__13945__ = 1; //#13944 - $_ = Object.getPrototypeOf($_); //#13944 - } //#13944 - if ($_.raw) { //#14415 - $_.cws = $a($_.barcode.length); //#13949 - $_.i = 0; //#13950 - $_.j = 0; //#13950 - for (;;) { //#13961 - if ($_.i >= ($_.barcode.length - 3)) { //#13952 - break; //#13952 - } //#13952 - if ($get($_.barcode, $_.i) != 94) { //#13953 - break; //#13953 - } //#13953 - var _33 = $geti($_.barcode, $_.i + 1, 3); //#13954 - $k[$j++] = _33; //#13956 - $k[$j++] = false; //#13956 - for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#13956 - var _36 = $get(_33, _34); //#13956 - if ((_36 < 48) || (_36 > 57)) { //#13955 - $j--; //#13955 - $k[$j++] = true; //#13955 - } //#13955 - } //#13955 - if ($k[--$j]) { //#13956 - $j--; //#13956 - break; //#13956 - } //#13956 - $_.cw = $cvi($k[--$j]); //#13957 - $put($_.cws, $_.j, $_.cw); //#13958 - $_.i = $_.i + 4; //#13959 - $_.j = $_.j + 1; //#13960 - } //#13960 - if ($_.i != $_.barcode.length) { //#13964 - $k[$j++] = 'bwipp.code16kBadRawFormat#13963'; //#13963 - $k[$j++] = "raw data must be formatted as ^NNN"; //#13963 - bwipp_raiseerror(); //#13963 - } //#13963 - $_.cws = $geti($_.cws, 0, $_.j); //#13965 - } else { //#14415 + $_ = Object.create($_); //#14046 + $_.dontdraw = false; //#14049 + $_.sam = -1; //#14050 + $_.rows = 0; //#14051 + $_.rowheight = 8; //#14052 + $_.sepheight = 1; //#14053 + $_.raw = false; //#14054 + $_.parse = false; //#14055 + $_.parsefnc = false; //#14056 + $k[$j++] = $_; //#14058 + bwipp_processoptions(); //#14058 + $_.options = $k[--$j]; //#14058 + $_.barcode = $k[--$j]; //#14059 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 16))) { //#14063 + $k[$j++] = 'bwipp.code16kBadRows#14062'; //#14062 + $k[$j++] = "Code 16K must have 2 to 16 rows"; //#14062 + bwipp_raiseerror(); //#14062 + } //#14062 + if ($_.rowheight < 8) { //#14067 + $k[$j++] = 'bwipp.code16kBadRowHeight#14066'; //#14066 + $k[$j++] = "Code 16K must have rowheight of at least 8"; //#14066 + bwipp_raiseerror(); //#14066 + } //#14066 + if ($_.sepheight < 1) { //#14071 + $k[$j++] = 'bwipp.code16kBadSepHeight#14070'; //#14070 + $k[$j++] = "Code 16K must have sepheight of at least 1"; //#14070 + bwipp_raiseerror(); //#14070 + } //#14070 + if ($_.sam != -1) { //#14083 + $k[$j++] = true; //#14079 + for (var _8 = 0, _9 = 1; _8 < _9; _8++) { //#14079 + var _A = $_.sam; //#14076 + if ((_A < 12) || (_A > 99)) { //#14076 + $j--; //#14076 + $k[$j++] = false; //#14076 + break; //#14076 + } //#14076 + if (($_.sam % 10) < 2) { //#14077 + $j--; //#14077 + $k[$j++] = false; //#14077 + break; //#14077 + } //#14077 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14078 + $j--; //#14078 + $k[$j++] = false; //#14078 + break; //#14078 + } //#14078 + } //#14078 + if ($nt($k[--$j])) { //#14082 + $k[$j++] = 'bwipp.code16kBadSAM#14081'; //#14081 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14081 + bwipp_raiseerror(); //#14081 + } //#14081 + } //#14081 + bwipp_loadctx(bwipp_code16k) //#14085 + if ($_.sam != -1) { //#14087 + $_.rows = 16; //#14087 + } //#14087 + if (!bwipp_code16k.__14152__) { //#14152 + $_ = Object.create($_); //#14152 + $_.swa = -1; //#14091 + $_.swb = -2; //#14091 + $_.swc = -3; //#14091 + $_.sa1 = -4; //#14092 + $_.sb1 = -5; //#14092 + $_.sc1 = -6; //#14092 + $_.sa2 = -7; //#14093 + $_.sb2 = -8; //#14093 + $_.sc2 = -9; //#14093 + $_.pad = -10; //#14094 + $_.sb3 = -11; //#14094 + $_.sc3 = -12; //#14094 + $_.fn1 = -13; //#14095 + $_.fn2 = -14; //#14095 + $_.fn3 = -15; //#14095 + $_.fn4 = -16; //#14095 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.fn3, $_.fn3, "96"]), $a([$_.fn2, $_.fn2, "97"]), $a([$_.sb1, $_.sa1, "98"]), $a([$_.swc, $_.swc, "99"]), $a([$_.swb, $_.fn4, $_.swb]), $a([$_.fn4, $_.swa, $_.swa]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.pad, $_.pad, $_.pad]), $a([$_.sb2, $_.sa2, $_.sb1]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3])]); //#14136 + $_.charvals = $a([new Map, new Map, new Map]); //#14139 + for (var _2W = 0, _2V = $_.charmaps.length - 1; _2W <= _2V; _2W += 1) { //#14148 + $_.i = _2W; //#14141 + $_.encs = $get($_.charmaps, $_.i); //#14142 + for (var _2a = 0; _2a <= 2; _2a += 1) { //#14147 + $_.j = _2a; //#14144 + var _2d = $get($_.encs, $_.j); //#14145 + $k[$j++] = _2d; //#14145 + if ($eq($type(_2d), 'stringtype')) { //#14145 + var _2g = $get($k[--$j], 0); //#14145 + $k[$j++] = _2g; //#14145 + } //#14145 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#14146 + } //#14146 + } //#14146 + $_.seta = $get($_.charvals, 0); //#14149 + $_.setb = $get($_.charvals, 1); //#14150 + $_.setc = $get($_.charvals, 2); //#14151 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14151 + bwipp_code16k.__14152__ = 1; //#14151 + $_ = Object.getPrototypeOf($_); //#14151 + } //#14151 + if ($_.raw) { //#14622 + $_.cws = $a($_.barcode.length); //#14156 + $_.i = 0; //#14157 + $_.j = 0; //#14157 + for (;;) { //#14168 + if ($_.i >= ($_.barcode.length - 3)) { //#14159 + break; //#14159 + } //#14159 + if ($get($_.barcode, $_.i) != 94) { //#14160 + break; //#14160 + } //#14160 + var _33 = $geti($_.barcode, $_.i + 1, 3); //#14161 + $k[$j++] = _33; //#14163 + $k[$j++] = false; //#14163 + for (var _34 = 0, _35 = _33.length; _34 < _35; _34++) { //#14163 + var _36 = $get(_33, _34); //#14163 + if ((_36 < 48) || (_36 > 57)) { //#14162 + $j--; //#14162 + $k[$j++] = true; //#14162 + } //#14162 + } //#14162 + if ($k[--$j]) { //#14163 + $j--; //#14163 + break; //#14163 + } //#14163 + $_.cw = $cvi($k[--$j]); //#14164 + $put($_.cws, $_.j, $_.cw); //#14165 + $_.i = $_.i + 4; //#14166 + $_.j = $_.j + 1; //#14167 + } //#14167 + if ($_.i != $_.barcode.length) { //#14171 + $k[$j++] = 'bwipp.code16kBadRawFormat#14170'; //#14170 + $k[$j++] = "raw data must be formatted as ^NNN"; //#14170 + bwipp_raiseerror(); //#14170 + } //#14170 + $_.cws = $geti($_.cws, 0, $_.j); //#14172 + } else { //#14622 var _3O = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], @@ -17320,826 +17642,826 @@ function bwipp_code16k() { ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#13976 - $_.fncvals = _3O; //#13978 - $k[$j++] = 'msg'; //#13979 - $k[$j++] = $_.barcode; //#13979 - $k[$j++] = $_.fncvals; //#13979 - bwipp_parseinput(); //#13979 - var _3R = $k[--$j]; //#13979 - $_[$k[--$j]] = _3R; //#13979 - $_.msglen = $_.msg.length; //#13980 - $k[$j++] = Infinity; //#13983 - for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#13983 - $k[$j++] = 0; //#13983 - } //#13983 - $k[$j++] = 0; //#13983 - $_.numSA = $a(); //#13983 - $k[$j++] = Infinity; //#13984 - for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#13984 - $k[$j++] = 0; //#13984 - } //#13984 - $k[$j++] = 0; //#13984 - $_.numEA = $a(); //#13984 - for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#13994 - $_.i = _3d; //#13986 - if ($get($_.msg, $_.i) >= 0) { //#13993 - if ($get($_.msg, $_.i) >= 128) { //#13991 - $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#13989 - } else { //#13991 - $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#13991 - } //#13991 - } //#13991 - } //#13991 - $_.ea = false; //#13997 - $_.msgtmp = $a([]); //#13997 - for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14012 - $_.i = _3x; //#13999 - $_.c = $get($_.msg, $_.i); //#14000 - if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14010 - if ($_.ea) { //#14002 - $k[$j++] = $_.numSA; //#14002 - } else { //#14002 - $k[$j++] = $_.numEA; //#14002 - } //#14002 - var _49 = $get($k[--$j], $_.i); //#14002 - var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14003 - if (_49 < _4C) { //#14008 - $k[$j++] = Infinity; //#14005 - $aload($_.msgtmp); //#14005 - $k[$j++] = $_.fn4; //#14005 - $_.msgtmp = $a(); //#14005 - } else { //#14008 - $k[$j++] = Infinity; //#14007 - $aload($_.msgtmp); //#14007 - $k[$j++] = $_.fn4; //#14007 - $k[$j++] = $_.fn4; //#14007 - $_.msgtmp = $a(); //#14007 - $_.ea = !$_.ea; //#14008 - } //#14008 - } //#14008 - $k[$j++] = Infinity; //#14011 - $aload($_.msgtmp); //#14011 - if ($_.c >= 0) { //#14011 - $k[$j++] = $_.c & 127; //#14011 - } else { //#14011 - $k[$j++] = $_.c; //#14011 - } //#14011 - $_.msgtmp = $a(); //#14011 - } //#14011 - $_.msg = $_.msgtmp; //#14013 - $_.msglen = $_.msg.length; //#14014 + ]); //#14183 + $_.fncvals = _3O; //#14185 + $k[$j++] = 'msg'; //#14186 + $k[$j++] = $_.barcode; //#14186 + $k[$j++] = $_.fncvals; //#14186 + bwipp_parseinput(); //#14186 + var _3R = $k[--$j]; //#14186 + $_[$k[--$j]] = _3R; //#14186 + $_.msglen = $_.msg.length; //#14187 + $k[$j++] = Infinity; //#14190 + for (var _3V = 0, _3W = $_.msglen; _3V < _3W; _3V++) { //#14190 + $k[$j++] = 0; //#14190 + } //#14190 + $k[$j++] = 0; //#14190 + $_.numSA = $a(); //#14190 + $k[$j++] = Infinity; //#14191 + for (var _3Z = 0, _3a = $_.msglen; _3Z < _3a; _3Z++) { //#14191 + $k[$j++] = 0; //#14191 + } //#14191 + $k[$j++] = 0; //#14191 + $_.numEA = $a(); //#14191 + for (var _3d = $_.msglen - 1; _3d >= 0; _3d -= 1) { //#14201 + $_.i = _3d; //#14193 + if ($get($_.msg, $_.i) >= 0) { //#14200 + if ($get($_.msg, $_.i) >= 128) { //#14198 + $put($_.numEA, $_.i, $f($get($_.numEA, $_.i + 1) + 1)); //#14196 + } else { //#14198 + $put($_.numSA, $_.i, $f($get($_.numSA, $_.i + 1) + 1)); //#14198 + } //#14198 + } //#14198 + } //#14198 + $_.ea = false; //#14204 + $_.msgtmp = $a([]); //#14204 + for (var _3x = 0, _3w = $_.msglen - 1; _3x <= _3w; _3x += 1) { //#14219 + $_.i = _3x; //#14206 + $_.c = $get($_.msg, $_.i); //#14207 + if ((!$xo($_.ea, $_.c < 128)) && ($_.c >= 0)) { //#14217 + if ($_.ea) { //#14209 + $k[$j++] = $_.numSA; //#14209 + } else { //#14209 + $k[$j++] = $_.numEA; //#14209 + } //#14209 + var _49 = $get($k[--$j], $_.i); //#14209 + var _4C = ($f(_49 + $_.i) == $_.msglen) ? 3 : 5; //#14210 + if (_49 < _4C) { //#14215 + $k[$j++] = Infinity; //#14212 + $aload($_.msgtmp); //#14212 + $k[$j++] = $_.fn4; //#14212 + $_.msgtmp = $a(); //#14212 + } else { //#14215 + $k[$j++] = Infinity; //#14214 + $aload($_.msgtmp); //#14214 + $k[$j++] = $_.fn4; //#14214 + $k[$j++] = $_.fn4; //#14214 + $_.msgtmp = $a(); //#14214 + $_.ea = !$_.ea; //#14215 + } //#14215 + } //#14215 + $k[$j++] = Infinity; //#14218 + $aload($_.msgtmp); //#14218 + if ($_.c >= 0) { //#14218 + $k[$j++] = $_.c & 127; //#14218 + } else { //#14218 + $k[$j++] = $_.c; //#14218 + } //#14218 + $_.msgtmp = $a(); //#14218 + } //#14218 + $_.msg = $_.msgtmp; //#14220 + $_.msglen = $_.msg.length; //#14221 $_.numsscr = function() { - $_.n = 0; //#14018 - $_.s = 0; //#14018 - $_.p = $k[--$j]; //#14019 - for (;;) { //#14030 - if ($_.p >= $_.msglen) { //#14020 - break; //#14020 - } //#14020 - var _4X = $get($_.msg, $_.p); //#14021 - var _4Z = $get($_.setc, _4X) !== undefined; //#14022 - $k[$j++] = _4X; //#14022 - if (!_4Z) { //#14022 - $j--; //#14022 - break; //#14022 - } //#14022 - if ($k[--$j] == $_.fn1) { //#14026 - if (($_.s % 2) == 0) { //#14025 - $_.s = $_.s + 1; //#14025 - } else { //#14025 - break; //#14025 - } //#14025 - } //#14025 - $_.n = $_.n + 1; //#14027 - $_.s = $_.s + 1; //#14028 - $_.p = $f($_.p + 1); //#14029 - } //#14029 - $k[$j++] = $_.n; //#14031 - $k[$j++] = $_.s; //#14031 - }; //#14031 + $_.n = 0; //#14225 + $_.s = 0; //#14225 + $_.p = $k[--$j]; //#14226 + for (;;) { //#14237 + if ($_.p >= $_.msglen) { //#14227 + break; //#14227 + } //#14227 + var _4X = $get($_.msg, $_.p); //#14228 + var _4Z = $get($_.setc, _4X) !== undefined; //#14229 + $k[$j++] = _4X; //#14229 + if (!_4Z) { //#14229 + $j--; //#14229 + break; //#14229 + } //#14229 + if ($k[--$j] == $_.fn1) { //#14233 + if (($_.s % 2) == 0) { //#14232 + $_.s = $_.s + 1; //#14232 + } else { //#14232 + break; //#14232 + } //#14232 + } //#14232 + $_.n = $_.n + 1; //#14234 + $_.s = $_.s + 1; //#14235 + $_.p = $f($_.p + 1); //#14236 + } //#14236 + $k[$j++] = $_.n; //#14238 + $k[$j++] = $_.s; //#14238 + }; //#14238 $_.enca = function() { - $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14036 - $_.j = $_.j + 1; //#14037 - }; //#14037 + $put($_.cws, $_.j, $get($_.seta, $k[--$j])); //#14243 + $_.j = $_.j + 1; //#14244 + }; //#14244 $_.encb = function() { - $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14040 - $_.j = $_.j + 1; //#14041 - }; //#14041 + $put($_.cws, $_.j, $get($_.setb, $k[--$j])); //#14247 + $_.j = $_.j + 1; //#14248 + }; //#14248 $_.encc = function() { - var _4v = $k[--$j]; //#14044 - $k[$j++] = _4v; //#14048 - if ($ne($type(_4v), 'arraytype')) { //#14047 - var _4z = $get($_.setc, $k[--$j]); //#14045 - $k[$j++] = _4z; //#14045 - } else { //#14047 - $aload($k[--$j]); //#14047 - var _51 = $k[--$j]; //#14047 - var _52 = $k[--$j]; //#14047 - $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14047 - } //#14047 - $put($_.cws, $_.j, $k[--$j]); //#14049 - $_.j = $_.j + 1; //#14050 - }; //#14050 + var _4v = $k[--$j]; //#14251 + $k[$j++] = _4v; //#14255 + if ($ne($type(_4v), 'arraytype')) { //#14254 + var _4z = $get($_.setc, $k[--$j]); //#14252 + $k[$j++] = _4z; //#14252 + } else { //#14254 + $aload($k[--$j]); //#14254 + var _51 = $k[--$j]; //#14254 + var _52 = $k[--$j]; //#14254 + $k[$j++] = $f($f(_51 - 48) + ($f(_52 - 48) * 10)); //#14254 + } //#14254 + $put($_.cws, $_.j, $k[--$j]); //#14256 + $_.j = $_.j + 1; //#14257 + }; //#14257 $_.anotb = function() { - var _57 = $k[--$j]; //#14054 - var _59 = $get($_.seta, _57) !== undefined; //#14054 - var _5B = $get($_.setb, _57) !== undefined; //#14054 - $k[$j++] = _59 && (!_5B); //#14054 - }; //#14054 + var _57 = $k[--$j]; //#14261 + var _59 = $get($_.seta, _57) !== undefined; //#14261 + var _5B = $get($_.setb, _57) !== undefined; //#14261 + $k[$j++] = _59 && (!_5B); //#14261 + }; //#14261 $_.bnota = function() { - var _5C = $k[--$j]; //#14055 - var _5E = $get($_.setb, _5C) !== undefined; //#14055 - var _5G = $get($_.seta, _5C) !== undefined; //#14055 - $k[$j++] = _5E && (!_5G); //#14055 - }; //#14055 - $k[$j++] = Infinity; //#14058 - for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14058 - $k[$j++] = 0; //#14058 - } //#14058 - $k[$j++] = 9999; //#14058 - $_.nextanotb = $a(); //#14058 - $k[$j++] = Infinity; //#14059 - for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14059 - $k[$j++] = 0; //#14059 - } //#14059 - $k[$j++] = 9999; //#14059 - $_.nextbnota = $a(); //#14059 - for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14072 - $_.i = _5Q; //#14061 - $k[$j++] = $get($_.msg, $_.i); //#14062 - $_.anotb(); //#14062 - if ($k[--$j]) { //#14065 - $put($_.nextanotb, $_.i, 0); //#14063 - } else { //#14065 - $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14065 - } //#14065 - $k[$j++] = $get($_.msg, $_.i); //#14067 - $_.bnota(); //#14067 - if ($k[--$j]) { //#14070 - $put($_.nextbnota, $_.i, 0); //#14068 - } else { //#14070 - $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14070 - } //#14070 - } //#14070 + var _5C = $k[--$j]; //#14262 + var _5E = $get($_.setb, _5C) !== undefined; //#14262 + var _5G = $get($_.seta, _5C) !== undefined; //#14262 + $k[$j++] = _5E && (!_5G); //#14262 + }; //#14262 + $k[$j++] = Infinity; //#14265 + for (var _5I = 0, _5J = $_.msg.length; _5I < _5J; _5I++) { //#14265 + $k[$j++] = 0; //#14265 + } //#14265 + $k[$j++] = 9999; //#14265 + $_.nextanotb = $a(); //#14265 + $k[$j++] = Infinity; //#14266 + for (var _5M = 0, _5N = $_.msg.length; _5M < _5N; _5M++) { //#14266 + $k[$j++] = 0; //#14266 + } //#14266 + $k[$j++] = 9999; //#14266 + $_.nextbnota = $a(); //#14266 + for (var _5Q = $_.msg.length - 1; _5Q >= 0; _5Q -= 1) { //#14279 + $_.i = _5Q; //#14268 + $k[$j++] = $get($_.msg, $_.i); //#14269 + $_.anotb(); //#14269 + if ($k[--$j]) { //#14272 + $put($_.nextanotb, $_.i, 0); //#14270 + } else { //#14272 + $put($_.nextanotb, $_.i, $f($get($_.nextanotb, $_.i + 1) + 1)); //#14272 + } //#14272 + $k[$j++] = $get($_.msg, $_.i); //#14274 + $_.bnota(); //#14274 + if ($k[--$j]) { //#14277 + $put($_.nextbnota, $_.i, 0); //#14275 + } else { //#14277 + $put($_.nextbnota, $_.i, $f($get($_.nextbnota, $_.i + 1) + 1)); //#14277 + } //#14277 + } //#14277 $_.abeforeb = function() { - var _5n = $k[--$j]; //#14075 - $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14075 - }; //#14075 + var _5n = $k[--$j]; //#14282 + $k[$j++] = $lt($get($_.nextanotb, _5n), $get($_.nextbnota, _5n)); //#14282 + }; //#14282 $_.bbeforea = function() { - var _5s = $k[--$j]; //#14076 - $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14076 - }; //#14076 - $_.cws = $a(($_.barcode.length * 2) + 3); //#14078 - $_.i = 0; //#14081 - $_.j = 0; //#14081 - for (;;) { //#14171 - if ($_.sam != -1) { //#14092 - $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14086 - $put($_.cws, 1, ($_.sam % 10) - 1); //#14087 - $_.j = 2; //#14088 - $_.cset = "setb"; //#14089 - $_.mode = 7; //#14090 - break; //#14091 - } //#14091 - if ($_.msglen == 0) { //#14098 - $_.cset = "setb"; //#14095 - $_.mode = 1; //#14096 - break; //#14097 - } //#14097 - if ($_.msglen >= 2) { //#14107 - $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14101 - $k[$j++] = 1; //#14101 - $_.numsscr(); //#14101 - var _69 = $k[--$j]; //#14101 - var _6A = $k[--$j]; //#14101 - $k[$j++] = _69; //#14101 - $k[$j++] = _6A; //#14101 - $j--; //#14101 - var _6B = $k[--$j]; //#14101 - var _6C = $k[--$j]; //#14101 - if (_6C && (_6B >= 2)) { //#14106 - $_.cset = "setc"; //#14102 - $_.mode = 4; //#14103 - $_.i = 1; //#14104 - break; //#14105 - } //#14105 - } //#14105 - if ($get($_.msg, 0) == $_.fn1) { //#14114 - $_.cset = "setb"; //#14110 - $_.mode = 3; //#14111 - $_.i = 1; //#14112 - break; //#14113 - } //#14113 - if ($_.msglen >= 2) { //#14160 - $k[$j++] = 0; //#14117 - $_.numsscr(); //#14117 - var _6H = $k[--$j]; //#14117 - var _6I = $k[--$j]; //#14117 - $k[$j++] = _6H; //#14117 - $k[$j++] = _6I; //#14117 - $j--; //#14117 - var _6J = $k[--$j]; //#14117 - if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14121 - $_.cset = "setc"; //#14118 - $_.mode = 2; //#14119 - break; //#14120 - } //#14120 - $k[$j++] = 0; //#14123 - $_.numsscr(); //#14123 - var _6K = $k[--$j]; //#14123 - var _6L = $k[--$j]; //#14123 - $k[$j++] = _6K; //#14123 - $k[$j++] = _6L; //#14123 - $j--; //#14123 - var _6M = $k[--$j]; //#14123 - if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14129 - $k[$j++] = $get($_.msg, 0); //#14124 - $_.encb(); //#14124 - $_.cset = "setc"; //#14125 - $_.mode = 5; //#14126 - $_.i = 1; //#14127 - break; //#14128 - } //#14128 - var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14131 - $k[$j++] = _6S; //#14132 - $k[$j++] = 1; //#14132 - $_.numsscr(); //#14132 - var _6T = $k[--$j]; //#14132 - var _6U = $k[--$j]; //#14132 - $k[$j++] = _6T; //#14132 - $k[$j++] = _6U; //#14132 - $j--; //#14132 - var _6V = $k[--$j]; //#14132 - var _6W = $k[--$j]; //#14132 - if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14138 - $k[$j++] = $get($_.msg, 0); //#14133 - $_.encb(); //#14133 - $_.cset = "setc"; //#14134 - $_.mode = 5; //#14135 - $_.i = 1; //#14136 - break; //#14137 - } //#14137 - var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14140 - $k[$j++] = _6c; //#14141 - $k[$j++] = 1; //#14141 - $_.numsscr(); //#14141 - var _6d = $k[--$j]; //#14141 - var _6e = $k[--$j]; //#14141 - $k[$j++] = _6d; //#14141 - $k[$j++] = _6e; //#14141 - $j--; //#14141 - var _6f = $k[--$j]; //#14141 - var _6g = $k[--$j]; //#14141 - if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14148 - $k[$j++] = $get($_.msg, 0); //#14142 - $_.encb(); //#14142 - $k[$j++] = $get($_.msg, 1); //#14143 - $_.encb(); //#14143 - $_.cset = "setc"; //#14144 - $_.mode = 6; //#14145 - $_.i = 2; //#14146 - break; //#14147 - } //#14147 - var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14150 - var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14151 - $k[$j++] = _6o && _6s; //#14152 - $k[$j++] = 2; //#14152 - $_.numsscr(); //#14152 - var _6t = $k[--$j]; //#14152 - var _6u = $k[--$j]; //#14152 - $k[$j++] = _6t; //#14152 - $k[$j++] = _6u; //#14152 - $j--; //#14152 - var _6v = $k[--$j]; //#14152 - var _6w = $k[--$j]; //#14152 - if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14159 - $k[$j++] = $get($_.msg, 0); //#14153 - $_.encb(); //#14153 - $k[$j++] = $get($_.msg, 1); //#14154 - $_.encb(); //#14154 - $_.cset = "setc"; //#14155 - $_.mode = 6; //#14156 - $_.i = 2; //#14157 - break; //#14158 - } //#14158 - } //#14158 - $k[$j++] = 0; //#14162 - $_.abeforeb(); //#14162 - if ($k[--$j]) { //#14166 - $_.cset = "seta"; //#14163 - $_.mode = 0; //#14164 - break; //#14165 - } //#14165 - $_.cset = "setb"; //#14168 - $_.mode = 1; //#14169 - break; //#14170 - } //#14170 - for (;;) { //#14414 - if ($_.i == $_.msglen) { //#14174 - break; //#14174 - } //#14174 - $k[$j++] = $_.i; //#14176 - $_.numsscr(); //#14176 - $_.nums = $k[--$j]; //#14176 - $_.nchars = $k[--$j]; //#14176 - for (;;) { //#14412 - if ($eq($_.cset, "seta")) { //#14253 - if ($_.i < ($_.msglen - 1)) { //#14190 - $k[$j++] = $get($_.msg, $_.i); //#14183 - $_.bnota(); //#14183 - $k[$j++] = $_.i + 1; //#14184 - $_.abeforeb(); //#14184 - var _7E = $k[--$j]; //#14184 - var _7F = $k[--$j]; //#14184 - if ((_7F && _7E)) { //#14189 - $k[$j++] = $_.sb1; //#14185 - $_.enca(); //#14185 - $k[$j++] = $get($_.msg, $_.i); //#14186 - $_.encb(); //#14186 - $_.i = $_.i + 1; //#14187 - break; //#14188 - } //#14188 - } //#14188 - if ($_.i < ($_.msglen - 2)) { //#14202 - $k[$j++] = $get($_.msg, $_.i); //#14193 - $_.bnota(); //#14193 - $k[$j++] = $get($_.msg, $_.i + 1); //#14194 - $_.bnota(); //#14194 - var _7T = $k[--$j]; //#14194 - var _7U = $k[--$j]; //#14194 - $k[$j++] = $an(_7U, _7T); //#14195 - $k[$j++] = $_.i + 2; //#14195 - $_.abeforeb(); //#14195 - var _7W = $k[--$j]; //#14195 - var _7X = $k[--$j]; //#14195 - if ((_7X && _7W)) { //#14201 - $k[$j++] = $_.sb2; //#14196 - $_.enca(); //#14196 - $k[$j++] = $get($_.msg, $_.i); //#14197 - $_.encb(); //#14197 - $k[$j++] = $get($_.msg, $_.i + 1); //#14198 - $_.encb(); //#14198 - $_.i = $_.i + 2; //#14199 - break; //#14200 - } //#14200 - } //#14200 - $k[$j++] = $get($_.msg, $_.i); //#14204 - $_.bnota(); //#14204 - if ($k[--$j]) { //#14208 - $k[$j++] = $_.swb; //#14205 - $_.enca(); //#14205 - $_.cset = "setb"; //#14206 - break; //#14207 - } //#14207 - if ($_.i < ($_.msglen - 4)) { //#14225 - var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14212 - if (($_.nums == 4) && _7s) { //#14224 - $k[$j++] = $_.sc2; //#14213 - $_.enca(); //#14213 - for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14222 - if ($get($_.msg, $_.i) == $_.fn1) { //#14220 - $k[$j++] = $_.fn1; //#14216 - $_.encc(); //#14216 - $_.i = $_.i + 1; //#14217 - } else { //#14220 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14219 - $_.encc(); //#14219 - $_.i = $_.i + 2; //#14220 - } //#14220 - } //#14220 - break; //#14223 - } //#14223 - } //#14223 - if ($_.i < ($_.msglen - 6)) { //#14242 - var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14229 - if (($_.nums == 6) && _8D) { //#14241 - $k[$j++] = $_.sc3; //#14230 - $_.enca(); //#14230 - for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14239 - if ($get($_.msg, $_.i) == $_.fn1) { //#14237 - $k[$j++] = $_.fn1; //#14233 - $_.encc(); //#14233 - $_.i = $_.i + 1; //#14234 - } else { //#14237 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14236 - $_.encc(); //#14236 - $_.i = $_.i + 2; //#14237 - } //#14237 - } //#14237 - break; //#14240 - } //#14240 - } //#14240 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14248 - $k[$j++] = $_.swc; //#14245 - $_.enca(); //#14245 - $_.cset = "setc"; //#14246 - break; //#14247 - } //#14247 - $k[$j++] = $get($_.msg, $_.i); //#14250 - $_.enca(); //#14250 - $_.i = $_.i + 1; //#14251 - break; //#14252 - } //#14252 - if ($eq($_.cset, "setb")) { //#14327 - if ($_.i < ($_.msglen - 1)) { //#14264 - $k[$j++] = $get($_.msg, $_.i); //#14257 - $_.anotb(); //#14257 - $k[$j++] = $_.i + 1; //#14258 - $_.bbeforea(); //#14258 - var _8f = $k[--$j]; //#14258 - var _8g = $k[--$j]; //#14258 - if ((_8g && _8f)) { //#14263 - $k[$j++] = $_.sa1; //#14259 - $_.encb(); //#14259 - $k[$j++] = $get($_.msg, $_.i); //#14260 - $_.enca(); //#14260 - $_.i = $_.i + 1; //#14261 - break; //#14262 - } //#14262 - } //#14262 - if ($_.i < ($_.msglen - 2)) { //#14276 - $k[$j++] = $get($_.msg, $_.i); //#14267 - $_.anotb(); //#14267 - $k[$j++] = $get($_.msg, $_.i + 1); //#14268 - $_.anotb(); //#14268 - var _8u = $k[--$j]; //#14268 - var _8v = $k[--$j]; //#14268 - $k[$j++] = $an(_8v, _8u); //#14269 - $k[$j++] = $_.i + 2; //#14269 - $_.bbeforea(); //#14269 - var _8x = $k[--$j]; //#14269 - var _8y = $k[--$j]; //#14269 - if ((_8y && _8x)) { //#14275 - $k[$j++] = $_.sa2; //#14270 - $_.encb(); //#14270 - $k[$j++] = $get($_.msg, $_.i); //#14271 - $_.enca(); //#14271 - $k[$j++] = $get($_.msg, $_.i + 1); //#14272 - $_.enca(); //#14272 - $_.i = $_.i + 2; //#14273 - break; //#14274 - } //#14274 - } //#14274 - $k[$j++] = $get($_.msg, $_.i); //#14278 - $_.anotb(); //#14278 - if ($k[--$j]) { //#14282 - $k[$j++] = $_.swa; //#14279 - $_.encb(); //#14279 - $_.cset = "seta"; //#14280 - break; //#14281 - } //#14281 - if ($_.i < ($_.msglen - 4)) { //#14299 - var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14286 - if (($_.nums == 4) && _9J) { //#14298 - $k[$j++] = $_.sc2; //#14287 - $_.encb(); //#14287 - for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14296 - if ($get($_.msg, $_.i) == $_.fn1) { //#14294 - $k[$j++] = $_.fn1; //#14290 - $_.encc(); //#14290 - $_.i = $_.i + 1; //#14291 - } else { //#14294 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14293 - $_.encc(); //#14293 - $_.i = $_.i + 2; //#14294 - } //#14294 - } //#14294 - break; //#14297 - } //#14297 - } //#14297 - if ($_.i < ($_.msglen - 6)) { //#14316 - var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14303 - if (($_.nums == 6) && _9e) { //#14315 - $k[$j++] = $_.sc3; //#14304 - $_.encb(); //#14304 - for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14313 - if ($get($_.msg, $_.i) == $_.fn1) { //#14311 - $k[$j++] = $_.fn1; //#14307 - $_.encc(); //#14307 - $_.i = $_.i + 1; //#14308 - } else { //#14311 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14310 - $_.encc(); //#14310 - $_.i = $_.i + 2; //#14311 - } //#14311 - } //#14311 - break; //#14314 - } //#14314 - } //#14314 - if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14322 - $k[$j++] = $_.swc; //#14319 - $_.encb(); //#14319 - $_.cset = "setc"; //#14320 - break; //#14321 - } //#14321 - $k[$j++] = $get($_.msg, $_.i); //#14324 - $_.encb(); //#14324 - $_.i = $_.i + 1; //#14325 - break; //#14326 - } //#14326 - if ($eq($_.cset, "setc")) { //#14410 - if ($_.nums >= 2) { //#14339 - if ($get($_.msg, $_.i) == $_.fn1) { //#14336 - $k[$j++] = $_.fn1; //#14332 - $_.encc(); //#14332 - $_.i = $_.i + 1; //#14333 - } else { //#14336 - $k[$j++] = $geti($_.msg, $_.i, 2); //#14335 - $_.encc(); //#14335 - $_.i = $_.i + 2; //#14336 - } //#14336 - break; //#14338 - } //#14338 - if ($_.i < ($_.msglen - 1)) { //#14349 - var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14342 - $k[$j++] = _AH; //#14343 - $k[$j++] = $_.i + 1; //#14343 - $_.numsscr(); //#14343 - var _AJ = $k[--$j]; //#14343 - var _AK = $k[--$j]; //#14343 - $k[$j++] = _AJ; //#14343 - $k[$j++] = _AK; //#14343 - $j--; //#14343 - var _AL = $k[--$j]; //#14343 - var _AM = $k[--$j]; //#14343 - if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14348 - $k[$j++] = $_.sb1; //#14344 - $_.encc(); //#14344 - $k[$j++] = $get($_.msg, $_.i); //#14345 - $_.encb(); //#14345 - $_.i = $_.i + 1; //#14346 - break; //#14347 - } //#14347 - } //#14347 - if ($_.i < ($_.msglen - 1)) { //#14360 - var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14352 - $k[$j++] = _AY; //#14353 - $k[$j++] = $_.i + 1; //#14353 - $_.numsscr(); //#14353 - var _Aa = $k[--$j]; //#14353 - var _Ab = $k[--$j]; //#14353 - $k[$j++] = _Aa; //#14353 - $k[$j++] = _Ab; //#14353 - $j--; //#14353 - var _Ac = $k[--$j]; //#14353 - var _Ad = $k[--$j]; //#14353 - if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14359 - $k[$j++] = $_.sb2; //#14354 - $_.encc(); //#14354 - $k[$j++] = $get($_.msg, $_.i); //#14355 - $_.encb(); //#14355 - $k[$j++] = $get($_.msg, $_.i + 1); //#14356 - $_.encb(); //#14356 - $_.i = $_.i + 2; //#14357 - break; //#14358 - } //#14358 - } //#14358 - if ($_.i < ($_.msglen - 2)) { //#14372 - var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14363 - var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14364 - $k[$j++] = _As && _Ax; //#14365 - $k[$j++] = $_.i + 2; //#14365 - $_.numsscr(); //#14365 - var _Az = $k[--$j]; //#14365 - var _B0 = $k[--$j]; //#14365 - $k[$j++] = _Az; //#14365 - $k[$j++] = _B0; //#14365 - $j--; //#14365 - var _B1 = $k[--$j]; //#14365 - var _B2 = $k[--$j]; //#14365 - if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14371 - $k[$j++] = $_.sb2; //#14366 - $_.encc(); //#14366 - $k[$j++] = $get($_.msg, $_.i); //#14367 - $_.encb(); //#14367 - $k[$j++] = $get($_.msg, $_.i + 1); //#14368 - $_.encb(); //#14368 - $_.i = $_.i + 2; //#14369 - break; //#14370 - } //#14370 - } //#14370 - if ($_.i < ($_.msglen - 3)) { //#14385 - var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14375 - var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14376 - $k[$j++] = _BH && _BM; //#14377 - $k[$j++] = $_.i + 2; //#14377 - $_.numsscr(); //#14377 - var _BO = $k[--$j]; //#14377 - var _BP = $k[--$j]; //#14377 - $k[$j++] = _BO; //#14377 - $k[$j++] = _BP; //#14377 - $j--; //#14377 - var _BQ = $k[--$j]; //#14377 - var _BR = $k[--$j]; //#14377 - if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14384 - $k[$j++] = $_.sb3; //#14378 - $_.encc(); //#14378 - $k[$j++] = $get($_.msg, $_.i); //#14379 - $_.encb(); //#14379 - $k[$j++] = $get($_.msg, $_.i + 1); //#14380 - $_.encb(); //#14380 - $k[$j++] = $get($_.msg, $_.i + 2); //#14381 - $_.encb(); //#14381 - $_.i = $_.i + 3; //#14382 - break; //#14383 - } //#14383 - } //#14383 - if ($_.i < ($_.msglen - 3)) { //#14399 - var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14388 - var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14389 - var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14390 - $k[$j++] = (_Bj && _Bo) && _Bt; //#14391 - $k[$j++] = $_.i + 3; //#14391 - $_.numsscr(); //#14391 - var _Bv = $k[--$j]; //#14391 - var _Bw = $k[--$j]; //#14391 - $k[$j++] = _Bv; //#14391 - $k[$j++] = _Bw; //#14391 - $j--; //#14391 - var _Bx = $k[--$j]; //#14391 - var _By = $k[--$j]; //#14391 - if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14398 - $k[$j++] = $_.sb3; //#14392 - $_.encc(); //#14392 + var _5s = $k[--$j]; //#14283 + $k[$j++] = $lt($get($_.nextbnota, _5s), $get($_.nextanotb, _5s)); //#14283 + }; //#14283 + $_.cws = $a(($_.barcode.length * 2) + 3); //#14285 + $_.i = 0; //#14288 + $_.j = 0; //#14288 + for (;;) { //#14378 + if ($_.sam != -1) { //#14299 + $put($_.cws, 0, (~~($_.sam / 10)) - 1); //#14293 + $put($_.cws, 1, ($_.sam % 10) - 1); //#14294 + $_.j = 2; //#14295 + $_.cset = "setb"; //#14296 + $_.mode = 7; //#14297 + break; //#14298 + } //#14298 + if ($_.msglen == 0) { //#14305 + $_.cset = "setb"; //#14302 + $_.mode = 1; //#14303 + break; //#14304 + } //#14304 + if ($_.msglen >= 2) { //#14314 + $k[$j++] = $get($_.msg, 0) == $_.fn1; //#14308 + $k[$j++] = 1; //#14308 + $_.numsscr(); //#14308 + var _69 = $k[--$j]; //#14308 + var _6A = $k[--$j]; //#14308 + $k[$j++] = _69; //#14308 + $k[$j++] = _6A; //#14308 + $j--; //#14308 + var _6B = $k[--$j]; //#14308 + var _6C = $k[--$j]; //#14308 + if (_6C && (_6B >= 2)) { //#14313 + $_.cset = "setc"; //#14309 + $_.mode = 4; //#14310 + $_.i = 1; //#14311 + break; //#14312 + } //#14312 + } //#14312 + if ($get($_.msg, 0) == $_.fn1) { //#14321 + $_.cset = "setb"; //#14317 + $_.mode = 3; //#14318 + $_.i = 1; //#14319 + break; //#14320 + } //#14320 + if ($_.msglen >= 2) { //#14367 + $k[$j++] = 0; //#14324 + $_.numsscr(); //#14324 + var _6H = $k[--$j]; //#14324 + var _6I = $k[--$j]; //#14324 + $k[$j++] = _6H; //#14324 + $k[$j++] = _6I; //#14324 + $j--; //#14324 + var _6J = $k[--$j]; //#14324 + if ((_6J >= 2) && ((_6J % 2) == 0)) { //#14328 + $_.cset = "setc"; //#14325 + $_.mode = 2; //#14326 + break; //#14327 + } //#14327 + $k[$j++] = 0; //#14330 + $_.numsscr(); //#14330 + var _6K = $k[--$j]; //#14330 + var _6L = $k[--$j]; //#14330 + $k[$j++] = _6K; //#14330 + $k[$j++] = _6L; //#14330 + $j--; //#14330 + var _6M = $k[--$j]; //#14330 + if ((_6M >= 3) && ((_6M % 2) == 1)) { //#14336 + $k[$j++] = $get($_.msg, 0); //#14331 + $_.encb(); //#14331 + $_.cset = "setc"; //#14332 + $_.mode = 5; //#14333 + $_.i = 1; //#14334 + break; //#14335 + } //#14335 + var _6S = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14338 + $k[$j++] = _6S; //#14339 + $k[$j++] = 1; //#14339 + $_.numsscr(); //#14339 + var _6T = $k[--$j]; //#14339 + var _6U = $k[--$j]; //#14339 + $k[$j++] = _6T; //#14339 + $k[$j++] = _6U; //#14339 + $j--; //#14339 + var _6V = $k[--$j]; //#14339 + var _6W = $k[--$j]; //#14339 + if (_6W && ((_6V >= 2) && ((_6V % 2) == 0))) { //#14345 + $k[$j++] = $get($_.msg, 0); //#14340 + $_.encb(); //#14340 + $_.cset = "setc"; //#14341 + $_.mode = 5; //#14342 + $_.i = 1; //#14343 + break; //#14344 + } //#14344 + var _6c = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14347 + $k[$j++] = _6c; //#14348 + $k[$j++] = 1; //#14348 + $_.numsscr(); //#14348 + var _6d = $k[--$j]; //#14348 + var _6e = $k[--$j]; //#14348 + $k[$j++] = _6d; //#14348 + $k[$j++] = _6e; //#14348 + $j--; //#14348 + var _6f = $k[--$j]; //#14348 + var _6g = $k[--$j]; //#14348 + if (_6g && ((_6f >= 3) && ((_6f % 2) == 1))) { //#14355 + $k[$j++] = $get($_.msg, 0); //#14349 + $_.encb(); //#14349 + $k[$j++] = $get($_.msg, 1); //#14350 + $_.encb(); //#14350 + $_.cset = "setc"; //#14351 + $_.mode = 6; //#14352 + $_.i = 2; //#14353 + break; //#14354 + } //#14354 + var _6o = $get($_.setb, $get($_.msg, 0)) !== undefined; //#14357 + var _6s = $get($_.setb, $get($_.msg, 1)) !== undefined; //#14358 + $k[$j++] = _6o && _6s; //#14359 + $k[$j++] = 2; //#14359 + $_.numsscr(); //#14359 + var _6t = $k[--$j]; //#14359 + var _6u = $k[--$j]; //#14359 + $k[$j++] = _6t; //#14359 + $k[$j++] = _6u; //#14359 + $j--; //#14359 + var _6v = $k[--$j]; //#14359 + var _6w = $k[--$j]; //#14359 + if (_6w && ((_6v >= 2) && ((_6v % 2) == 0))) { //#14366 + $k[$j++] = $get($_.msg, 0); //#14360 + $_.encb(); //#14360 + $k[$j++] = $get($_.msg, 1); //#14361 + $_.encb(); //#14361 + $_.cset = "setc"; //#14362 + $_.mode = 6; //#14363 + $_.i = 2; //#14364 + break; //#14365 + } //#14365 + } //#14365 + $k[$j++] = 0; //#14369 + $_.abeforeb(); //#14369 + if ($k[--$j]) { //#14373 + $_.cset = "seta"; //#14370 + $_.mode = 0; //#14371 + break; //#14372 + } //#14372 + $_.cset = "setb"; //#14375 + $_.mode = 1; //#14376 + break; //#14377 + } //#14377 + for (;;) { //#14621 + if ($_.i == $_.msglen) { //#14381 + break; //#14381 + } //#14381 + $k[$j++] = $_.i; //#14383 + $_.numsscr(); //#14383 + $_.nums = $k[--$j]; //#14383 + $_.nchars = $k[--$j]; //#14383 + for (;;) { //#14619 + if ($eq($_.cset, "seta")) { //#14460 + if ($_.i < ($_.msglen - 1)) { //#14397 + $k[$j++] = $get($_.msg, $_.i); //#14390 + $_.bnota(); //#14390 + $k[$j++] = $_.i + 1; //#14391 + $_.abeforeb(); //#14391 + var _7E = $k[--$j]; //#14391 + var _7F = $k[--$j]; //#14391 + if ((_7F && _7E)) { //#14396 + $k[$j++] = $_.sb1; //#14392 + $_.enca(); //#14392 $k[$j++] = $get($_.msg, $_.i); //#14393 $_.encb(); //#14393 - $k[$j++] = $get($_.msg, $_.i + 1); //#14394 - $_.encb(); //#14394 - $k[$j++] = $get($_.msg, $_.i + 2); //#14395 - $_.encb(); //#14395 - $_.i = $_.i + 3; //#14396 - break; //#14397 - } //#14397 - } //#14397 - $k[$j++] = $_.i; //#14401 - $_.abeforeb(); //#14401 - if ($k[--$j]) { //#14405 - $k[$j++] = $_.swa; //#14402 - $_.encc(); //#14402 - $_.cset = "seta"; //#14403 - break; //#14404 - } //#14404 - $k[$j++] = $_.swb; //#14407 - $_.encc(); //#14407 - $_.cset = "setb"; //#14408 - break; //#14409 - } //#14409 - break; //#14411 - } //#14411 - } //#14411 - $_.cws = $geti($_.cws, 0, $_.j); //#14415 - } //#14415 - if (!bwipp_code16k.__14438__) { //#14438 - $_ = Object.create($_); //#14438 - $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14437 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14437 - bwipp_code16k.__14438__ = 1; //#14437 - $_ = Object.getPrototypeOf($_); //#14437 - } //#14437 - $_.urows = $_.rows; //#14441 - var _CZ = $_.metrics; //#14442 - for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14450 - $_.m = $get(_CZ, _Ca); //#14443 - $_.r = $get($_.m, 0); //#14444 - $_.dcws = $get($_.m, 1); //#14445 - $_.okay = true; //#14446 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14447 - $_.okay = false; //#14447 - } //#14447 - if ($_.cws.length > $_.dcws) { //#14448 - $_.okay = false; //#14448 - } //#14448 - if ($_.okay) { //#14449 - break; //#14449 - } //#14449 - } //#14449 - if (!$_.okay) { //#14454 - $k[$j++] = 'bwipp.code16kNoValidSymbol#14453'; //#14453 - $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14453 - bwipp_raiseerror(); //#14453 - } //#14453 - $k[$j++] = Infinity; //#14457 - $aload($_.cws); //#14457 - for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14457 - $k[$j++] = 103; //#14457 - } //#14457 - $_.cws = $a(); //#14457 - $k[$j++] = Infinity; //#14460 - $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14460 - $aload($_.cws); //#14460 - $_.cws = $a(); //#14460 - $k[$j++] = 0; //#14463 - for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14463 - var _D3 = $k[--$j]; //#14463 - $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14463 - } //#14463 - $_.c1 = $k[--$j] % 107; //#14464 - $k[$j++] = 0; //#14465 - for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14465 - var _DA = $k[--$j]; //#14465 - $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14465 - } //#14465 - $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14466 - $k[$j++] = Infinity; //#14467 - $aload($_.cws); //#14467 - $k[$j++] = $_.c1; //#14467 - $k[$j++] = $_.c2; //#14467 - $_.cws = $a(); //#14467 - var _DJ = $get($_.options, 'debugcws') !== undefined; //#14469 - if (_DJ) { //#14469 - $k[$j++] = 'bwipp.debugcws#14469'; //#14469 - $k[$j++] = $_.cws; //#14469 - bwipp_raiseerror(); //#14469 - } //#14469 - if (!bwipp_code16k.__14505__) { //#14505 - $_ = Object.create($_); //#14505 - $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14490 - $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14496 - $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14500 - $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14504 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14504 - bwipp_code16k.__14505__ = 1; //#14504 - $_ = Object.getPrototypeOf($_); //#14504 - } //#14504 - if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14510 - $_.stopencs = $_.stopencsodd; //#14508 - } else { //#14510 - $_.stopencs = $_.stopencseven; //#14510 - } //#14510 - $_.rowbits = $a($_.r); //#14514 - for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14531 - $_.i = _DY; //#14516 - $k[$j++] = Infinity; //#14525 - $k[$j++] = 10; //#14519 - $forall($get($_.startencs, $_.i), function() { //#14519 - var _Dc = $k[--$j]; //#14519 - $k[$j++] = $f(_Dc - 48); //#14519 - }); //#14519 - var _Df = $geti($_.cws, $_.i * 5, 5); //#14521 - $k[$j++] = 1; //#14523 - for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14523 - $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14522 - var _Dl = $k[--$j]; //#14522 - $k[$j++] = $f(_Dl - 48); //#14522 - }); //#14522 - } //#14522 - $forall($get($_.stopencs, $_.i), function() { //#14524 - var _Dp = $k[--$j]; //#14524 - $k[$j++] = $f(_Dp - 48); //#14524 - }); //#14524 - $k[$j++] = 1; //#14525 - $_.sbs = $a(); //#14525 - $k[$j++] = Infinity; //#14527 - var _Dr = $_.sbs; //#14528 - $k[$j++] = 1; //#14528 - for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14528 - var _Dv = $k[--$j]; //#14528 - var _Dw = (_Dv == 0) ? 1 : 0; //#14528 - $k[$j++] = _Dv; //#14528 - for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14528 - $k[$j++] = _Dw //#14528 - } //#14528 - } //#14528 - $astore($a($counttomark() - 1)); //#14529 - var _E1 = $k[--$j]; //#14529 - var _E2 = $k[--$j]; //#14529 - $k[$j++] = _E1; //#14529 - $k[$j++] = _E2; //#14529 - $j--; //#14529 - var _E3 = $k[--$j]; //#14529 - var _E4 = $k[--$j]; //#14529 - $k[$j++] = _E3; //#14529 - $k[$j++] = _E4; //#14529 - $j--; //#14529 - $put($_.rowbits, $_.i, $k[--$j]); //#14530 - } //#14530 - $k[$j++] = Infinity; //#14542 - for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14535 - $k[$j++] = 1; //#14535 - } //#14535 - for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14540 - $_.i = _ED; //#14537 - for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14538 - $aload($get($_.rowbits, $_.i)); //#14538 - } //#14538 - for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14539 - for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14539 - $k[$j++] = 1; //#14539 - } //#14539 - $k[$j++] = 0; //#14539 - } //#14539 - } //#14539 - for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14541 - $aload($get($_.rowbits, $f($_.r - 1))); //#14541 - } //#14541 - for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14542 - $k[$j++] = 1; //#14542 - } //#14542 - $_.pixs = $a(); //#14542 + $_.i = $_.i + 1; //#14394 + break; //#14395 + } //#14395 + } //#14395 + if ($_.i < ($_.msglen - 2)) { //#14409 + $k[$j++] = $get($_.msg, $_.i); //#14400 + $_.bnota(); //#14400 + $k[$j++] = $get($_.msg, $_.i + 1); //#14401 + $_.bnota(); //#14401 + var _7T = $k[--$j]; //#14401 + var _7U = $k[--$j]; //#14401 + $k[$j++] = $an(_7U, _7T); //#14402 + $k[$j++] = $_.i + 2; //#14402 + $_.abeforeb(); //#14402 + var _7W = $k[--$j]; //#14402 + var _7X = $k[--$j]; //#14402 + if ((_7X && _7W)) { //#14408 + $k[$j++] = $_.sb2; //#14403 + $_.enca(); //#14403 + $k[$j++] = $get($_.msg, $_.i); //#14404 + $_.encb(); //#14404 + $k[$j++] = $get($_.msg, $_.i + 1); //#14405 + $_.encb(); //#14405 + $_.i = $_.i + 2; //#14406 + break; //#14407 + } //#14407 + } //#14407 + $k[$j++] = $get($_.msg, $_.i); //#14411 + $_.bnota(); //#14411 + if ($k[--$j]) { //#14415 + $k[$j++] = $_.swb; //#14412 + $_.enca(); //#14412 + $_.cset = "setb"; //#14413 + break; //#14414 + } //#14414 + if ($_.i < ($_.msglen - 4)) { //#14432 + var _7s = $get($_.seta, $get($_.msg, $_.i + 4)) !== undefined; //#14419 + if (($_.nums == 4) && _7s) { //#14431 + $k[$j++] = $_.sc2; //#14420 + $_.enca(); //#14420 + for (var _7u = 0, _7v = 2; _7u < _7v; _7u++) { //#14429 + if ($get($_.msg, $_.i) == $_.fn1) { //#14427 + $k[$j++] = $_.fn1; //#14423 + $_.encc(); //#14423 + $_.i = $_.i + 1; //#14424 + } else { //#14427 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14426 + $_.encc(); //#14426 + $_.i = $_.i + 2; //#14427 + } //#14427 + } //#14427 + break; //#14430 + } //#14430 + } //#14430 + if ($_.i < ($_.msglen - 6)) { //#14449 + var _8D = $get($_.seta, $get($_.msg, $_.i + 6)) !== undefined; //#14436 + if (($_.nums == 6) && _8D) { //#14448 + $k[$j++] = $_.sc3; //#14437 + $_.enca(); //#14437 + for (var _8F = 0, _8G = 3; _8F < _8G; _8F++) { //#14446 + if ($get($_.msg, $_.i) == $_.fn1) { //#14444 + $k[$j++] = $_.fn1; //#14440 + $_.encc(); //#14440 + $_.i = $_.i + 1; //#14441 + } else { //#14444 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14443 + $_.encc(); //#14443 + $_.i = $_.i + 2; //#14444 + } //#14444 + } //#14444 + break; //#14447 + } //#14447 + } //#14447 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14455 + $k[$j++] = $_.swc; //#14452 + $_.enca(); //#14452 + $_.cset = "setc"; //#14453 + break; //#14454 + } //#14454 + $k[$j++] = $get($_.msg, $_.i); //#14457 + $_.enca(); //#14457 + $_.i = $_.i + 1; //#14458 + break; //#14459 + } //#14459 + if ($eq($_.cset, "setb")) { //#14534 + if ($_.i < ($_.msglen - 1)) { //#14471 + $k[$j++] = $get($_.msg, $_.i); //#14464 + $_.anotb(); //#14464 + $k[$j++] = $_.i + 1; //#14465 + $_.bbeforea(); //#14465 + var _8f = $k[--$j]; //#14465 + var _8g = $k[--$j]; //#14465 + if ((_8g && _8f)) { //#14470 + $k[$j++] = $_.sa1; //#14466 + $_.encb(); //#14466 + $k[$j++] = $get($_.msg, $_.i); //#14467 + $_.enca(); //#14467 + $_.i = $_.i + 1; //#14468 + break; //#14469 + } //#14469 + } //#14469 + if ($_.i < ($_.msglen - 2)) { //#14483 + $k[$j++] = $get($_.msg, $_.i); //#14474 + $_.anotb(); //#14474 + $k[$j++] = $get($_.msg, $_.i + 1); //#14475 + $_.anotb(); //#14475 + var _8u = $k[--$j]; //#14475 + var _8v = $k[--$j]; //#14475 + $k[$j++] = $an(_8v, _8u); //#14476 + $k[$j++] = $_.i + 2; //#14476 + $_.bbeforea(); //#14476 + var _8x = $k[--$j]; //#14476 + var _8y = $k[--$j]; //#14476 + if ((_8y && _8x)) { //#14482 + $k[$j++] = $_.sa2; //#14477 + $_.encb(); //#14477 + $k[$j++] = $get($_.msg, $_.i); //#14478 + $_.enca(); //#14478 + $k[$j++] = $get($_.msg, $_.i + 1); //#14479 + $_.enca(); //#14479 + $_.i = $_.i + 2; //#14480 + break; //#14481 + } //#14481 + } //#14481 + $k[$j++] = $get($_.msg, $_.i); //#14485 + $_.anotb(); //#14485 + if ($k[--$j]) { //#14489 + $k[$j++] = $_.swa; //#14486 + $_.encb(); //#14486 + $_.cset = "seta"; //#14487 + break; //#14488 + } //#14488 + if ($_.i < ($_.msglen - 4)) { //#14506 + var _9J = $get($_.setb, $get($_.msg, $_.i + 4)) !== undefined; //#14493 + if (($_.nums == 4) && _9J) { //#14505 + $k[$j++] = $_.sc2; //#14494 + $_.encb(); //#14494 + for (var _9L = 0, _9M = 2; _9L < _9M; _9L++) { //#14503 + if ($get($_.msg, $_.i) == $_.fn1) { //#14501 + $k[$j++] = $_.fn1; //#14497 + $_.encc(); //#14497 + $_.i = $_.i + 1; //#14498 + } else { //#14501 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14500 + $_.encc(); //#14500 + $_.i = $_.i + 2; //#14501 + } //#14501 + } //#14501 + break; //#14504 + } //#14504 + } //#14504 + if ($_.i < ($_.msglen - 6)) { //#14523 + var _9e = $get($_.setb, $get($_.msg, $_.i + 6)) !== undefined; //#14510 + if (($_.nums == 6) && _9e) { //#14522 + $k[$j++] = $_.sc3; //#14511 + $_.encb(); //#14511 + for (var _9g = 0, _9h = 3; _9g < _9h; _9g++) { //#14520 + if ($get($_.msg, $_.i) == $_.fn1) { //#14518 + $k[$j++] = $_.fn1; //#14514 + $_.encc(); //#14514 + $_.i = $_.i + 1; //#14515 + } else { //#14518 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14517 + $_.encc(); //#14517 + $_.i = $_.i + 2; //#14518 + } //#14518 + } //#14518 + break; //#14521 + } //#14521 + } //#14521 + if (($_.nums >= 4) && (($_.nums % 2) == 0)) { //#14529 + $k[$j++] = $_.swc; //#14526 + $_.encb(); //#14526 + $_.cset = "setc"; //#14527 + break; //#14528 + } //#14528 + $k[$j++] = $get($_.msg, $_.i); //#14531 + $_.encb(); //#14531 + $_.i = $_.i + 1; //#14532 + break; //#14533 + } //#14533 + if ($eq($_.cset, "setc")) { //#14617 + if ($_.nums >= 2) { //#14546 + if ($get($_.msg, $_.i) == $_.fn1) { //#14543 + $k[$j++] = $_.fn1; //#14539 + $_.encc(); //#14539 + $_.i = $_.i + 1; //#14540 + } else { //#14543 + $k[$j++] = $geti($_.msg, $_.i, 2); //#14542 + $_.encc(); //#14542 + $_.i = $_.i + 2; //#14543 + } //#14543 + break; //#14545 + } //#14545 + if ($_.i < ($_.msglen - 1)) { //#14556 + var _AH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14549 + $k[$j++] = _AH; //#14550 + $k[$j++] = $_.i + 1; //#14550 + $_.numsscr(); //#14550 + var _AJ = $k[--$j]; //#14550 + var _AK = $k[--$j]; //#14550 + $k[$j++] = _AJ; //#14550 + $k[$j++] = _AK; //#14550 + $j--; //#14550 + var _AL = $k[--$j]; //#14550 + var _AM = $k[--$j]; //#14550 + if (_AM && ((_AL >= 2) && ((_AL % 2) == 0))) { //#14555 + $k[$j++] = $_.sb1; //#14551 + $_.encc(); //#14551 + $k[$j++] = $get($_.msg, $_.i); //#14552 + $_.encb(); //#14552 + $_.i = $_.i + 1; //#14553 + break; //#14554 + } //#14554 + } //#14554 + if ($_.i < ($_.msglen - 1)) { //#14567 + var _AY = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14559 + $k[$j++] = _AY; //#14560 + $k[$j++] = $_.i + 1; //#14560 + $_.numsscr(); //#14560 + var _Aa = $k[--$j]; //#14560 + var _Ab = $k[--$j]; //#14560 + $k[$j++] = _Aa; //#14560 + $k[$j++] = _Ab; //#14560 + $j--; //#14560 + var _Ac = $k[--$j]; //#14560 + var _Ad = $k[--$j]; //#14560 + if (_Ad && ((_Ac >= 3) && ((_Ac % 2) == 1))) { //#14566 + $k[$j++] = $_.sb2; //#14561 + $_.encc(); //#14561 + $k[$j++] = $get($_.msg, $_.i); //#14562 + $_.encb(); //#14562 + $k[$j++] = $get($_.msg, $_.i + 1); //#14563 + $_.encb(); //#14563 + $_.i = $_.i + 2; //#14564 + break; //#14565 + } //#14565 + } //#14565 + if ($_.i < ($_.msglen - 2)) { //#14579 + var _As = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14570 + var _Ax = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14571 + $k[$j++] = _As && _Ax; //#14572 + $k[$j++] = $_.i + 2; //#14572 + $_.numsscr(); //#14572 + var _Az = $k[--$j]; //#14572 + var _B0 = $k[--$j]; //#14572 + $k[$j++] = _Az; //#14572 + $k[$j++] = _B0; //#14572 + $j--; //#14572 + var _B1 = $k[--$j]; //#14572 + var _B2 = $k[--$j]; //#14572 + if (_B2 && ((_B1 >= 2) && ((_B1 % 2) == 0))) { //#14578 + $k[$j++] = $_.sb2; //#14573 + $_.encc(); //#14573 + $k[$j++] = $get($_.msg, $_.i); //#14574 + $_.encb(); //#14574 + $k[$j++] = $get($_.msg, $_.i + 1); //#14575 + $_.encb(); //#14575 + $_.i = $_.i + 2; //#14576 + break; //#14577 + } //#14577 + } //#14577 + if ($_.i < ($_.msglen - 3)) { //#14592 + var _BH = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14582 + var _BM = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14583 + $k[$j++] = _BH && _BM; //#14584 + $k[$j++] = $_.i + 2; //#14584 + $_.numsscr(); //#14584 + var _BO = $k[--$j]; //#14584 + var _BP = $k[--$j]; //#14584 + $k[$j++] = _BO; //#14584 + $k[$j++] = _BP; //#14584 + $j--; //#14584 + var _BQ = $k[--$j]; //#14584 + var _BR = $k[--$j]; //#14584 + if (_BR && ((_BQ >= 3) && ((_BQ % 2) == 1))) { //#14591 + $k[$j++] = $_.sb3; //#14585 + $_.encc(); //#14585 + $k[$j++] = $get($_.msg, $_.i); //#14586 + $_.encb(); //#14586 + $k[$j++] = $get($_.msg, $_.i + 1); //#14587 + $_.encb(); //#14587 + $k[$j++] = $get($_.msg, $_.i + 2); //#14588 + $_.encb(); //#14588 + $_.i = $_.i + 3; //#14589 + break; //#14590 + } //#14590 + } //#14590 + if ($_.i < ($_.msglen - 3)) { //#14606 + var _Bj = $get($_.setb, $get($_.msg, $_.i)) !== undefined; //#14595 + var _Bo = $get($_.setb, $get($_.msg, $_.i + 1)) !== undefined; //#14596 + var _Bt = $get($_.setb, $get($_.msg, $_.i + 2)) !== undefined; //#14597 + $k[$j++] = (_Bj && _Bo) && _Bt; //#14598 + $k[$j++] = $_.i + 3; //#14598 + $_.numsscr(); //#14598 + var _Bv = $k[--$j]; //#14598 + var _Bw = $k[--$j]; //#14598 + $k[$j++] = _Bv; //#14598 + $k[$j++] = _Bw; //#14598 + $j--; //#14598 + var _Bx = $k[--$j]; //#14598 + var _By = $k[--$j]; //#14598 + if (_By && ((_Bx >= 2) && ((_Bx % 2) == 0))) { //#14605 + $k[$j++] = $_.sb3; //#14599 + $_.encc(); //#14599 + $k[$j++] = $get($_.msg, $_.i); //#14600 + $_.encb(); //#14600 + $k[$j++] = $get($_.msg, $_.i + 1); //#14601 + $_.encb(); //#14601 + $k[$j++] = $get($_.msg, $_.i + 2); //#14602 + $_.encb(); //#14602 + $_.i = $_.i + 3; //#14603 + break; //#14604 + } //#14604 + } //#14604 + $k[$j++] = $_.i; //#14608 + $_.abeforeb(); //#14608 + if ($k[--$j]) { //#14612 + $k[$j++] = $_.swa; //#14609 + $_.encc(); //#14609 + $_.cset = "seta"; //#14610 + break; //#14611 + } //#14611 + $k[$j++] = $_.swb; //#14614 + $_.encc(); //#14614 + $_.cset = "setb"; //#14615 + break; //#14616 + } //#14616 + break; //#14618 + } //#14618 + } //#14618 + $_.cws = $geti($_.cws, 0, $_.j); //#14622 + } //#14622 + if (!bwipp_code16k.__14645__) { //#14645 + $_ = Object.create($_); //#14645 + $_.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#14644 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14644 + bwipp_code16k.__14645__ = 1; //#14644 + $_ = Object.getPrototypeOf($_); //#14644 + } //#14644 + $_.urows = $_.rows; //#14648 + var _CZ = $_.metrics; //#14649 + for (var _Ca = 0, _Cb = _CZ.length; _Ca < _Cb; _Ca++) { //#14657 + $_.m = $get(_CZ, _Ca); //#14650 + $_.r = $get($_.m, 0); //#14651 + $_.dcws = $get($_.m, 1); //#14652 + $_.okay = true; //#14653 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#14654 + $_.okay = false; //#14654 + } //#14654 + if ($_.cws.length > $_.dcws) { //#14655 + $_.okay = false; //#14655 + } //#14655 + if ($_.okay) { //#14656 + break; //#14656 + } //#14656 + } //#14656 + if (!$_.okay) { //#14661 + $k[$j++] = 'bwipp.code16kNoValidSymbol#14660'; //#14660 + $k[$j++] = "Maximum length exceeded or data too large for given options"; //#14660 + bwipp_raiseerror(); //#14660 + } //#14660 + $k[$j++] = Infinity; //#14664 + $aload($_.cws); //#14664 + for (var _Cr = 0, _Cs = $f($_.dcws - $_.cws.length); _Cr < _Cs; _Cr++) { //#14664 + $k[$j++] = 103; //#14664 + } //#14664 + $_.cws = $a(); //#14664 + $k[$j++] = Infinity; //#14667 + $k[$j++] = $f(($f($_.r - 2) * 7) + $_.mode); //#14667 + $aload($_.cws); //#14667 + $_.cws = $a(); //#14667 + $k[$j++] = 0; //#14670 + for (var _D0 = 0, _Cz = $_.dcws; _D0 <= _Cz; _D0 += 1) { //#14670 + var _D3 = $k[--$j]; //#14670 + $k[$j++] = $f(_D3 + ((_D0 + 2) * $get($_.cws, _D0))); //#14670 + } //#14670 + $_.c1 = $k[--$j] % 107; //#14671 + $k[$j++] = 0; //#14672 + for (var _D7 = 0, _D6 = $_.dcws; _D7 <= _D6; _D7 += 1) { //#14672 + var _DA = $k[--$j]; //#14672 + $k[$j++] = $f(_DA + ((_D7 + 1) * $get($_.cws, _D7))); //#14672 + } //#14672 + $_.c2 = ($f($k[--$j] + ($_.c1 * $f($_.dcws + 2)))) % 107; //#14673 + $k[$j++] = Infinity; //#14674 + $aload($_.cws); //#14674 + $k[$j++] = $_.c1; //#14674 + $k[$j++] = $_.c2; //#14674 + $_.cws = $a(); //#14674 + var _DJ = $get($_.options, 'debugcws') !== undefined; //#14676 + if (_DJ) { //#14676 + $k[$j++] = 'bwipp.debugcws#14676'; //#14676 + $k[$j++] = $_.cws; //#14676 + bwipp_raiseerror(); //#14676 + } //#14676 + if (!bwipp_code16k.__14712__) { //#14712 + $_ = Object.create($_); //#14712 + $_.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#14697 + $_.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#14703 + $_.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#14707 + $_.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#14711 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code16k.$ctx[id] = $_[id]); //#14711 + bwipp_code16k.__14712__ = 1; //#14711 + $_ = Object.getPrototypeOf($_); //#14711 + } //#14711 + if (($_.sam == -1) || (((~~($_.sam / 10)) % 2) == 1)) { //#14717 + $_.stopencs = $_.stopencsodd; //#14715 + } else { //#14717 + $_.stopencs = $_.stopencseven; //#14717 + } //#14717 + $_.rowbits = $a($_.r); //#14721 + for (var _DY = 0, _DX = $f($_.r - 1); _DY <= _DX; _DY += 1) { //#14738 + $_.i = _DY; //#14723 + $k[$j++] = Infinity; //#14724 + $k[$j++] = 10; //#14726 + $forall($get($_.startencs, $_.i), function() { //#14726 + var _Dc = $k[--$j]; //#14726 + $k[$j++] = $f(_Dc - 48); //#14726 + }); //#14726 + var _Df = $geti($_.cws, $_.i * 5, 5); //#14728 + $k[$j++] = 1; //#14730 + for (var _Dg = 0, _Dh = _Df.length; _Dg < _Dh; _Dg++) { //#14730 + $forall($get($_.encs, $get(_Df, _Dg)), function() { //#14729 + var _Dl = $k[--$j]; //#14729 + $k[$j++] = $f(_Dl - 48); //#14729 + }); //#14729 + } //#14729 + $forall($get($_.stopencs, $_.i), function() { //#14731 + var _Dp = $k[--$j]; //#14731 + $k[$j++] = $f(_Dp - 48); //#14731 + }); //#14731 + $k[$j++] = 1; //#14732 + $_.sbs = $a(); //#14732 + $k[$j++] = Infinity; //#14734 + var _Dr = $_.sbs; //#14735 + $k[$j++] = 1; //#14735 + for (var _Ds = 0, _Dt = _Dr.length; _Ds < _Dt; _Ds++) { //#14735 + var _Dv = $k[--$j]; //#14735 + var _Dw = (_Dv == 0) ? 1 : 0; //#14735 + $k[$j++] = _Dv; //#14735 + for (var _Dx = 0, _Dy = $get(_Dr, _Ds); _Dx < _Dy; _Dx++) { //#14735 + $k[$j++] = _Dw //#14735 + } //#14735 + } //#14735 + $astore($a($counttomark() - 1)); //#14736 + var _E1 = $k[--$j]; //#14736 + var _E2 = $k[--$j]; //#14736 + $k[$j++] = _E1; //#14736 + $k[$j++] = _E2; //#14736 + $j--; //#14736 + var _E3 = $k[--$j]; //#14736 + var _E4 = $k[--$j]; //#14736 + $k[$j++] = _E3; //#14736 + $k[$j++] = _E4; //#14736 + $j--; //#14736 + $put($_.rowbits, $_.i, $k[--$j]); //#14737 + } //#14737 + $k[$j++] = Infinity; //#14741 + for (var _E9 = 0, _EA = 81 * $_.sepheight; _E9 < _EA; _E9++) { //#14742 + $k[$j++] = 1; //#14742 + } //#14742 + for (var _ED = 0, _EC = $f($_.r - 2); _ED <= _EC; _ED += 1) { //#14747 + $_.i = _ED; //#14744 + for (var _EF = 0, _EG = $_.rowheight; _EF < _EG; _EF++) { //#14745 + $aload($get($_.rowbits, $_.i)); //#14745 + } //#14745 + for (var _EL = 0, _EM = $_.sepheight; _EL < _EM; _EL++) { //#14746 + for (var _EN = 0, _EO = 10; _EN < _EO; _EN++) { //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + for (var _EP = 0, _EQ = 70; _EP < _EQ; _EP++) { //#14746 + $k[$j++] = 1; //#14746 + } //#14746 + $k[$j++] = 0; //#14746 + } //#14746 + } //#14746 + for (var _ES = 0, _ET = $_.rowheight; _ES < _ET; _ES++) { //#14748 + $aload($get($_.rowbits, $f($_.r - 1))); //#14748 + } //#14748 + for (var _EY = 0, _EZ = 81 * $_.sepheight; _EY < _EZ; _EY++) { //#14749 + $k[$j++] = 1; //#14749 + } //#14749 + $_.pixs = $a(); //#14749 var _Ef = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -18148,594 +18470,593 @@ function bwipp_code16k() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#14553 - $k[$j++] = _Ef; //#14556 - if (!$_.dontdraw) { //#14556 - bwipp_renmatrix(); //#14556 - } //#14556 - $_ = Object.getPrototypeOf($_); //#14558 - $_ = Object.getPrototypeOf($_); //#14560 -} - + ]); //#14760 + $k[$j++] = _Ef; //#14763 + if (!$_.dontdraw) { //#14763 + bwipp_renmatrix(); //#14763 + } //#14763 + $_ = Object.getPrototypeOf($_); //#14765 + $_ = Object.getPrototypeOf($_); //#14767 +} //bwipp_code16k function bwipp_code49() { - $_ = Object.create($_); //#14591 - $_.dontdraw = false; //#14594 - $_.sam = -1; //#14595 - $_.append = false; //#14596 - $_.rows = 0; //#14597 - $_.rowheight = 8; //#14598 - $_.sepheight = 1; //#14599 - $_.parse = false; //#14600 - $_.parsefnc = false; //#14601 - $k[$j++] = $_; //#14603 - bwipp_processoptions(); //#14603 - $_.options = $k[--$j]; //#14603 - $_.barcode = $k[--$j]; //#14604 - if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14608 - $k[$j++] = 'bwipp.code49badRows#14607'; //#14607 - $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14607 - bwipp_raiseerror(); //#14607 - } //#14607 - if ($_.rowheight < 8) { //#14612 - $k[$j++] = 'bwipp.code49badRowHeight#14611'; //#14611 - $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14611 - bwipp_raiseerror(); //#14611 - } //#14611 - if ($_.sepheight < 1) { //#14616 - $k[$j++] = 'bwipp.code49badSepHeight#14615'; //#14615 - $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14615 - bwipp_raiseerror(); //#14615 - } //#14615 - if ($_.append && ($_.sam != -1)) { //#14620 - $k[$j++] = 'bwipp.code49samAndAppend#14619'; //#14619 - $k[$j++] = "sam and append cannot be specified together"; //#14619 - bwipp_raiseerror(); //#14619 - } //#14619 - if ($_.sam != -1) { //#14632 - $k[$j++] = true; //#14628 - for (var _A = 0, _B = 1; _A < _B; _A++) { //#14628 - var _C = $_.sam; //#14625 - if ((_C < 12) || (_C > 99)) { //#14625 - $j--; //#14625 - $k[$j++] = false; //#14625 - break; //#14625 - } //#14625 - if (($_.sam % 10) < 2) { //#14626 - $j--; //#14626 - $k[$j++] = false; //#14626 - break; //#14626 - } //#14626 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14627 - $j--; //#14627 - $k[$j++] = false; //#14627 - break; //#14627 - } //#14627 - } //#14627 - if ($nt($k[--$j])) { //#14631 - $k[$j++] = 'bwipp.code49badSAM#14630'; //#14630 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14630 - bwipp_raiseerror(); //#14630 - } //#14630 - } //#14630 - bwipp_loadctx(bwipp_code49) //#14634 - if (!bwipp_code49.__14638__) { //#14638 - $_ = Object.create($_); //#14638 - $_.s1 = -1; //#14637 - $_.s2 = -2; //#14637 - $_.fn1 = -3; //#14637 - $_.fn2 = -4; //#14637 - $_.fn3 = -5; //#14637 - $_.ns = -6; //#14637 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14637 - bwipp_code49.__14638__ = 1; //#14637 - $_ = Object.getPrototypeOf($_); //#14637 - } //#14637 + $_ = Object.create($_); //#14798 + $_.dontdraw = false; //#14801 + $_.sam = -1; //#14802 + $_.append = false; //#14803 + $_.rows = 0; //#14804 + $_.rowheight = 8; //#14805 + $_.sepheight = 1; //#14806 + $_.parse = false; //#14807 + $_.parsefnc = false; //#14808 + $k[$j++] = $_; //#14810 + bwipp_processoptions(); //#14810 + $_.options = $k[--$j]; //#14810 + $_.barcode = $k[--$j]; //#14811 + if (($_.rows != 0) && (($_.rows < 2) || ($_.rows > 8))) { //#14815 + $k[$j++] = 'bwipp.code49badRows#14814'; //#14814 + $k[$j++] = "Code 49 must have 2 to 8 rows"; //#14814 + bwipp_raiseerror(); //#14814 + } //#14814 + if ($_.rowheight < 8) { //#14819 + $k[$j++] = 'bwipp.code49badRowHeight#14818'; //#14818 + $k[$j++] = "Code 49 must have rowheight of at least 8"; //#14818 + bwipp_raiseerror(); //#14818 + } //#14818 + if ($_.sepheight < 1) { //#14823 + $k[$j++] = 'bwipp.code49badSepHeight#14822'; //#14822 + $k[$j++] = "Code 49 must have sepheight of at least 1"; //#14822 + bwipp_raiseerror(); //#14822 + } //#14822 + if ($_.append && ($_.sam != -1)) { //#14827 + $k[$j++] = 'bwipp.code49samAndAppend#14826'; //#14826 + $k[$j++] = "sam and append cannot be specified together"; //#14826 + bwipp_raiseerror(); //#14826 + } //#14826 + if ($_.sam != -1) { //#14839 + $k[$j++] = true; //#14835 + for (var _A = 0, _B = 1; _A < _B; _A++) { //#14835 + var _C = $_.sam; //#14832 + if ((_C < 12) || (_C > 99)) { //#14832 + $j--; //#14832 + $k[$j++] = false; //#14832 + break; //#14832 + } //#14832 + if (($_.sam % 10) < 2) { //#14833 + $j--; //#14833 + $k[$j++] = false; //#14833 + break; //#14833 + } //#14833 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#14834 + $j--; //#14834 + $k[$j++] = false; //#14834 + break; //#14834 + } //#14834 + } //#14834 + if ($nt($k[--$j])) { //#14838 + $k[$j++] = 'bwipp.code49badSAM#14837'; //#14837 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 9 symbols"; //#14837 + bwipp_raiseerror(); //#14837 + } //#14837 + } //#14837 + bwipp_loadctx(bwipp_code49) //#14841 + if (!bwipp_code49.__14845__) { //#14845 + $_ = Object.create($_); //#14845 + $_.s1 = -1; //#14844 + $_.s2 = -2; //#14844 + $_.fn1 = -3; //#14844 + $_.fn2 = -4; //#14844 + $_.fn3 = -5; //#14844 + $_.ns = -6; //#14844 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14844 + bwipp_code49.__14845__ = 1; //#14844 + $_ = Object.getPrototypeOf($_); //#14844 + } //#14844 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC2", $_.fn2], ["FNC3", $_.fn3] - ]); //#14646 - $_.fncvals = _N; //#14647 - $k[$j++] = 'msg'; //#14648 - $k[$j++] = $_.barcode; //#14648 - $k[$j++] = $_.fncvals; //#14648 - bwipp_parseinput(); //#14648 - var _Q = $k[--$j]; //#14648 - $_[$k[--$j]] = _Q; //#14648 - $_.msglen = $_.msg.length; //#14649 - $forall($_.msg, function() { //#14655 - if ($k[--$j] > 127) { //#14654 - $k[$j++] = 'bwipp.code49badCharacter#14653'; //#14653 - $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14653 - bwipp_raiseerror(); //#14653 - } //#14653 - }); //#14653 - if (!bwipp_code49.__14697__) { //#14697 - $_ = Object.create($_); //#14697 - $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14665 - $_.charvals = new Map; //#14668 - for (var _c = 0; _c <= 48; _c += 1) { //#14674 - $_.i = _c; //#14670 - var _f = $get($_.charmap, $_.i); //#14671 - $k[$j++] = _f; //#14672 - if ($eq($type(_f), 'stringtype')) { //#14672 - var _i = $get($k[--$j], 0); //#14672 - $k[$j++] = _i; //#14672 - } //#14672 - $put($_.charvals, $k[--$j], $_.i); //#14673 - } //#14673 - $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14686 - for (var _n = 0; _n <= 127; _n += 1) { //#14696 - $_.i = _n; //#14688 - var _q = $get($_.combos, $_.i); //#14689 - $_.c1 = $get(_q, 0); //#14689 - $_.c2 = $get(_q, 1); //#14689 - if ($_.c1 == 49) { //#14692 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14691 - } //#14691 - if ($_.c1 == 50) { //#14695 - $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14694 - } //#14694 - } //#14694 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14694 - bwipp_code49.__14697__ = 1; //#14694 - $_ = Object.getPrototypeOf($_); //#14694 - } //#14694 + ]); //#14853 + $_.fncvals = _N; //#14854 + $k[$j++] = 'msg'; //#14855 + $k[$j++] = $_.barcode; //#14855 + $k[$j++] = $_.fncvals; //#14855 + bwipp_parseinput(); //#14855 + var _Q = $k[--$j]; //#14855 + $_[$k[--$j]] = _Q; //#14855 + $_.msglen = $_.msg.length; //#14856 + $forall($_.msg, function() { //#14862 + if ($k[--$j] > 127) { //#14861 + $k[$j++] = 'bwipp.code49badCharacter#14860'; //#14860 + $k[$j++] = "Code 49 can only support ASCII characters with values 0 to 127"; //#14860 + bwipp_raiseerror(); //#14860 + } //#14860 + }); //#14860 + if (!bwipp_code49.__14904__) { //#14904 + $_ = Object.create($_); //#14904 + $_.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $_.s1, $_.s2, $_.fn1, $_.fn2, $_.fn3, $_.ns]); //#14872 + $_.charvals = new Map; //#14875 + for (var _c = 0; _c <= 48; _c += 1) { //#14881 + $_.i = _c; //#14877 + var _f = $get($_.charmap, $_.i); //#14878 + $k[$j++] = _f; //#14879 + if ($eq($type(_f), 'stringtype')) { //#14879 + var _i = $get($k[--$j], 0); //#14879 + $k[$j++] = _i; //#14879 + } //#14879 + $put($_.charvals, $k[--$j], $_.i); //#14880 + } //#14880 + $_.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#14893 + for (var _n = 0; _n <= 127; _n += 1) { //#14903 + $_.i = _n; //#14895 + var _q = $get($_.combos, $_.i); //#14896 + $_.c1 = $get(_q, 0); //#14896 + $_.c2 = $get(_q, 1); //#14896 + if ($_.c1 == 49) { //#14899 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s1), $get($_.charvals, $_.c2)])); //#14898 + } //#14898 + if ($_.c1 == 50) { //#14902 + $put($_.charvals, $_.i, $a([$get($_.charvals, $_.s2), $get($_.charvals, $_.c2)])); //#14901 + } //#14901 + } //#14901 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14901 + bwipp_code49.__14904__ = 1; //#14901 + $_ = Object.getPrototypeOf($_); //#14901 + } //#14901 $_.encodealpha = function() { - var _1G = $get($_.charvals, $k[--$j]); //#14700 - $k[$j++] = _1G; //#14701 - if ($ne($type(_1G), 'arraytype')) { //#14701 - $astore($a(1)); //#14701 - } //#14701 - var _1J = $k[--$j]; //#14702 - $puti($_.cws, $_.j, _1J); //#14702 - $_.j = _1J.length + $_.j; //#14703 - }; //#14703 + var _1G = $get($_.charvals, $k[--$j]); //#14907 + $k[$j++] = _1G; //#14908 + if ($ne($type(_1G), 'arraytype')) { //#14908 + $astore($a(1)); //#14908 + } //#14908 + var _1J = $k[--$j]; //#14909 + $puti($_.cws, $_.j, _1J); //#14909 + $_.j = _1J.length + $_.j; //#14910 + }; //#14910 $_.base48 = function() { - var _1N = $k[--$j]; //#14707 - $k[$j++] = 0; //#14707 - $forall(_1N, function() { //#14707 - var _1O = $k[--$j]; //#14707 - var _1P = $k[--$j]; //#14707 - $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14707 - }); //#14707 - $k[$j++] = Infinity; //#14708 - var _1Q = $k[--$j]; //#14708 - var _1R = $k[--$j]; //#14708 - var _1S = $k[--$j]; //#14708 - $k[$j++] = _1Q; //#14708 - $k[$j++] = _1R; //#14708 - for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14708 - var _1V = $k[--$j]; //#14708 - $k[$j++] = _1V % 48; //#14708 - $k[$j++] = ~~(_1V / 48); //#14708 - } //#14708 - var _1W = $a(); //#14708 - $k[$j++] = _1W; //#14709 - $k[$j++] = Infinity; //#14709 - var _1X = $k[--$j]; //#14709 - var _1Y = $k[--$j]; //#14709 - $k[$j++] = _1X; //#14709 - $k[$j++] = _1Y; //#14709 - for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14709 - var _1a = $k[--$j]; //#14709 - $k[$j++] = $get(_1a, _1Z); //#14709 - $k[$j++] = _1a; //#14709 - } //#14709 - $j--; //#14709 - var _1c = $a(); //#14709 - $puti($_.cws, $_.j, _1c); //#14710 - $_.j = _1c.length + $_.j; //#14711 - }; //#14711 + var _1N = $k[--$j]; //#14914 + $k[$j++] = 0; //#14914 + $forall(_1N, function() { //#14914 + var _1O = $k[--$j]; //#14914 + var _1P = $k[--$j]; //#14914 + $k[$j++] = $f($f(_1O - 48) + (_1P * 10)); //#14914 + }); //#14914 + $k[$j++] = Infinity; //#14915 + var _1Q = $k[--$j]; //#14915 + var _1R = $k[--$j]; //#14915 + var _1S = $k[--$j]; //#14915 + $k[$j++] = _1Q; //#14915 + $k[$j++] = _1R; //#14915 + for (var _1T = 0, _1U = $f(_1S - 1); _1T < _1U; _1T++) { //#14915 + var _1V = $k[--$j]; //#14915 + $k[$j++] = _1V % 48; //#14915 + $k[$j++] = ~~(_1V / 48); //#14915 + } //#14915 + var _1W = $a(); //#14915 + $k[$j++] = _1W; //#14916 + $k[$j++] = Infinity; //#14916 + var _1X = $k[--$j]; //#14916 + var _1Y = $k[--$j]; //#14916 + $k[$j++] = _1X; //#14916 + $k[$j++] = _1Y; //#14916 + for (var _1Z = _1Y.length - 1; _1Z >= 0; _1Z -= 1) { //#14916 + var _1a = $k[--$j]; //#14916 + $k[$j++] = $get(_1a, _1Z); //#14916 + $k[$j++] = _1a; //#14916 + } //#14916 + $j--; //#14916 + var _1c = $a(); //#14916 + $puti($_.cws, $_.j, _1c); //#14917 + $_.j = _1c.length + $_.j; //#14918 + }; //#14918 $_.encodenumeric = function() { - $_.nums = $k[--$j]; //#14715 - var _1i = $_.nums.length; //#14716 - var _1j = _1i % 5; //#14716 - $k[$j++] = 'pre'; //#14716 - $k[$j++] = _1i; //#14716 - $k[$j++] = _1j; //#14716 - if (_1j != 2) { //#14716 - var _1k = $k[--$j]; //#14716 - var _1l = $k[--$j]; //#14716 - $k[$j++] = $f(_1l - _1k); //#14716 - } else { //#14716 - var _1m = $k[--$j]; //#14716 - var _1n = $k[--$j]; //#14716 - $k[$j++] = $f($f(_1n - _1m) - 5); //#14716 - } //#14716 - var _1o = $k[--$j]; //#14716 - $_[$k[--$j]] = _1o; //#14716 - for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14717 - $k[$j++] = 3; //#14717 - $k[$j++] = $geti($_.nums, _1s, 5); //#14717 - $_.base48(); //#14717 - } //#14717 - $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14718 - var _21 = $_.nums.length; //#14720 - $k[$j++] = _21; //#14720 - if (_21 == 1) { //#14720 - $k[$j++] = $get($_.nums, $_.i); //#14720 - $_.encodealpha(); //#14720 - } //#14720 - var _25 = $k[--$j]; //#14721 - $k[$j++] = _25; //#14721 - if (_25 == 3) { //#14721 - $k[$j++] = 2; //#14721 - $k[$j++] = $_.nums; //#14721 - $_.base48(); //#14721 - } //#14721 - var _27 = $k[--$j]; //#14722 - $k[$j++] = _27; //#14722 - if (_27 == 4) { //#14722 - $k[$j++] = 3; //#14722 - $k[$j++] = Infinity; //#14722 - $k[$j++] = 49; //#14722 - $k[$j++] = 48; //#14722 - $aload($_.nums); //#14722 - var _29 = $a(); //#14722 - $k[$j++] = _29; //#14722 - $_.base48(); //#14722 - } //#14722 - if ($k[--$j] == 7) { //#14726 - $k[$j++] = 3; //#14724 - $k[$j++] = Infinity; //#14724 - $k[$j++] = 49; //#14724 - $k[$j++] = 48; //#14724 - $aload($geti($_.nums, 0, 4)); //#14724 - var _2D = $a(); //#14724 - $k[$j++] = _2D; //#14724 - $_.base48(); //#14724 - $k[$j++] = 2; //#14725 - $k[$j++] = $geti($_.nums, 4, 3); //#14725 - $_.base48(); //#14725 - } //#14725 - }; //#14725 - $k[$j++] = Infinity; //#14730 - for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14730 - $k[$j++] = 0; //#14730 - } //#14730 - $k[$j++] = 0; //#14730 - $_.numericruns = $a(); //#14730 - for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14739 - $_.i = _2L; //#14732 - var _2O = $get($_.msg, $_.i); //#14733 - if ((_2O >= 48) && (_2O <= 57)) { //#14737 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14735 - } else { //#14737 - $put($_.numericruns, $_.i, 0); //#14737 - } //#14737 - } //#14737 - $_.cws = $a(($_.msglen * 2) + 1); //#14741 - if (!bwipp_code49.__14754__) { //#14754 - $_ = Object.create($_); //#14754 - $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14753 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14753 - bwipp_code49.__14754__ = 1; //#14753 - $_ = Object.getPrototypeOf($_); //#14753 - } //#14753 - for (;;) { //#14790 - if ($_.append) { //#14763 - $_.mode = 1; //#14759 - $_.method = "alpha"; //#14760 - $_.i = 0; //#14761 - $_.j = 0; //#14761 - break; //#14762 - } //#14762 - if ($_.sam != -1) { //#14770 - $_.mode = 3; //#14765 - $k[$j++] = $_.cws; //#14766 - $k[$j++] = 0; //#14766 - for (var _2d = 0; _2d <= 43; _2d += 1) { //#14766 - $k[$j++] = _2d; //#14766 - if ($get($_.samval, _2d) != $_.sam) { //#14766 - $j--; //#14766 - } //#14766 - } //#14766 - var _2h = $k[--$j]; //#14766 - var _2i = $k[--$j]; //#14766 - $put($k[--$j], _2i, $f(_2h + 1)); //#14766 - $_.method = "alpha"; //#14767 - $_.i = 0; //#14768 - $_.j = 1; //#14768 - break; //#14769 - } //#14769 - if ($get($_.numericruns, 0) >= 5) { //#14775 - $_.mode = 2; //#14772 - $_.method = "numeric"; //#14773 - $_.i = 0; //#14773 - $_.j = 0; //#14773 - break; //#14774 - } //#14774 - var _2p = $get($_.charvals, $get($_.msg, 0)); //#14776 - $k[$j++] = _2p; //#14783 - if ($ne($type(_2p), 'arraytype')) { //#14783 - $j--; //#14778 - $_.mode = 0; //#14779 - $_.method = "alpha"; //#14780 - $_.i = 0; //#14781 - $_.j = 0; //#14781 - break; //#14782 - } //#14782 - var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14785 - $_.mode = _2t; //#14785 - $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14786 - $_.method = "alpha"; //#14787 - $_.i = 1; //#14788 - $_.j = 1; //#14788 - break; //#14789 - } //#14789 - for (;;) { //#14817 - if ($_.i == $_.msglen) { //#14794 - break; //#14794 - } //#14794 - for (;;) { //#14816 - if ($eq($_.method, "alpha")) { //#14805 - if ($get($_.numericruns, $_.i) >= 5) { //#14801 - $k[$j++] = $_.ns; //#14798 - $_.encodealpha(); //#14798 - $_.method = "numeric"; //#14799 - break; //#14800 - } //#14800 - $k[$j++] = $get($_.msg, $_.i); //#14802 - $_.encodealpha(); //#14802 - $_.i = $_.i + 1; //#14803 - break; //#14804 - } //#14804 - if ($eq($_.method, "numeric")) { //#14815 - if ($get($_.numericruns, $_.i) < 5) { //#14811 - $k[$j++] = $_.ns; //#14808 - $_.encodealpha(); //#14808 - $_.method = "alpha"; //#14809 - break; //#14810 - } //#14810 - $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#14812 - $_.encodenumeric(); //#14812 - $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#14813 - break; //#14814 - } //#14814 - } //#14814 - } //#14814 - $_.cws = $geti($_.cws, 0, $_.j); //#14818 - if (!bwipp_code49.__14832__) { //#14832 - $_ = Object.create($_); //#14832 - $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#14831 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14831 - bwipp_code49.__14832__ = 1; //#14831 - $_ = Object.getPrototypeOf($_); //#14831 - } //#14831 - $_.urows = $_.rows; //#14835 - var _3d = $_.metrics; //#14836 - for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#14844 - $_.m = $get(_3d, _3e); //#14837 - $_.r = $get($_.m, 0); //#14838 - $_.dcws = $get($_.m, 1); //#14839 - $_.okay = true; //#14840 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#14841 - $_.okay = false; //#14841 - } //#14841 - if ($_.cws.length > $_.dcws) { //#14842 - $_.okay = false; //#14842 - } //#14842 - if ($_.okay) { //#14843 - break; //#14843 - } //#14843 - } //#14843 - if (!$_.okay) { //#14848 - $k[$j++] = 'bwipp.code49noValidSymbol#14847'; //#14847 - $k[$j++] = "Maximum length exceeded"; //#14847 - bwipp_raiseerror(); //#14847 - } //#14847 - $k[$j++] = Infinity; //#14851 - $aload($_.cws); //#14851 - for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#14851 - $k[$j++] = 48; //#14851 - } //#14851 - $_.cws = $a(); //#14851 - $_.ccs = $a($_.r * 8); //#14854 - $_.j = 0; //#14855 - for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#14862 - $_.i = _42; //#14857 - $_.cc = $geti($_.cws, $_.j, 7); //#14858 - $puti($_.ccs, $_.i * 8, $_.cc); //#14859 - var _4B = $_.cc; //#14860 - $k[$j++] = $_.ccs; //#14860 - $k[$j++] = ($_.i * 8) + 7; //#14860 - $k[$j++] = 0; //#14860 - for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#14860 - var _4F = $k[--$j]; //#14860 - $k[$j++] = $f(_4F + $get(_4B, _4C)); //#14860 - } //#14860 - var _4G = $k[--$j]; //#14860 - var _4H = $k[--$j]; //#14860 - $put($k[--$j], _4H, _4G % 49); //#14860 - $_.j = $_.j + 7; //#14861 - } //#14861 - if ($_.j < $_.dcws) { //#14865 - $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#14864 - } //#14864 - $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#14868 - $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#14869 - if (!bwipp_code49.__14878__) { //#14878 - $_ = Object.create($_); //#14878 - var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#14874 - $k[$j++] = _4Y; //#14875 - $k[$j++] = _4Y; //#14875 - $k[$j++] = Infinity; //#14875 - var _4Z = $k[--$j]; //#14875 - var _4b = $geti($k[--$j], 0, 32); //#14875 - $k[$j++] = _4Z; //#14875 - $k[$j++] = 20; //#14875 - $aload(_4b); //#14875 - $_.weightx = $a(); //#14875 - var _4d = $k[--$j]; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = _4d; //#14876 - $k[$j++] = Infinity; //#14876 - var _4e = $k[--$j]; //#14876 - var _4g = $geti($k[--$j], 1, 32); //#14876 - $k[$j++] = _4e; //#14876 - $k[$j++] = 16; //#14876 - $aload(_4g); //#14876 - $_.weighty = $a(); //#14876 - $k[$j++] = Infinity; //#14877 - var _4i = $k[--$j]; //#14877 - var _4k = $geti($k[--$j], 2, 32); //#14877 - $k[$j++] = _4i; //#14877 - $k[$j++] = 38; //#14877 - $aload(_4k); //#14877 - $_.weightz = $a(); //#14877 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14877 - bwipp_code49.__14878__ = 1; //#14877 - $_ = Object.getPrototypeOf($_); //#14877 - } //#14877 + $_.nums = $k[--$j]; //#14922 + var _1i = $_.nums.length; //#14923 + var _1j = _1i % 5; //#14923 + $k[$j++] = 'pre'; //#14923 + $k[$j++] = _1i; //#14923 + $k[$j++] = _1j; //#14923 + if (_1j != 2) { //#14923 + var _1k = $k[--$j]; //#14923 + var _1l = $k[--$j]; //#14923 + $k[$j++] = $f(_1l - _1k); //#14923 + } else { //#14923 + var _1m = $k[--$j]; //#14923 + var _1n = $k[--$j]; //#14923 + $k[$j++] = $f($f(_1n - _1m) - 5); //#14923 + } //#14923 + var _1o = $k[--$j]; //#14923 + $_[$k[--$j]] = _1o; //#14923 + for (var _1s = 0, _1r = $f($_.pre - 1); _1s <= _1r; _1s += 5) { //#14924 + $k[$j++] = 3; //#14924 + $k[$j++] = $geti($_.nums, _1s, 5); //#14924 + $_.base48(); //#14924 + } //#14924 + $_.nums = $geti($_.nums, $_.pre, $f($_.nums.length - $_.pre)); //#14925 + var _21 = $_.nums.length; //#14927 + $k[$j++] = _21; //#14927 + if (_21 == 1) { //#14927 + $k[$j++] = $get($_.nums, $_.i); //#14927 + $_.encodealpha(); //#14927 + } //#14927 + var _25 = $k[--$j]; //#14928 + $k[$j++] = _25; //#14928 + if (_25 == 3) { //#14928 + $k[$j++] = 2; //#14928 + $k[$j++] = $_.nums; //#14928 + $_.base48(); //#14928 + } //#14928 + var _27 = $k[--$j]; //#14929 + $k[$j++] = _27; //#14929 + if (_27 == 4) { //#14929 + $k[$j++] = 3; //#14929 + $k[$j++] = Infinity; //#14929 + $k[$j++] = 49; //#14929 + $k[$j++] = 48; //#14929 + $aload($_.nums); //#14929 + var _29 = $a(); //#14929 + $k[$j++] = _29; //#14929 + $_.base48(); //#14929 + } //#14929 + if ($k[--$j] == 7) { //#14933 + $k[$j++] = 3; //#14931 + $k[$j++] = Infinity; //#14931 + $k[$j++] = 49; //#14931 + $k[$j++] = 48; //#14931 + $aload($geti($_.nums, 0, 4)); //#14931 + var _2D = $a(); //#14931 + $k[$j++] = _2D; //#14931 + $_.base48(); //#14931 + $k[$j++] = 2; //#14932 + $k[$j++] = $geti($_.nums, 4, 3); //#14932 + $_.base48(); //#14932 + } //#14932 + }; //#14932 + $k[$j++] = Infinity; //#14937 + for (var _2H = 0, _2I = $_.msglen; _2H < _2I; _2H++) { //#14937 + $k[$j++] = 0; //#14937 + } //#14937 + $k[$j++] = 0; //#14937 + $_.numericruns = $a(); //#14937 + for (var _2L = $_.msglen - 1; _2L >= 0; _2L -= 1) { //#14946 + $_.i = _2L; //#14939 + var _2O = $get($_.msg, $_.i); //#14940 + if ((_2O >= 48) && (_2O <= 57)) { //#14944 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 1) + 1)); //#14942 + } else { //#14944 + $put($_.numericruns, $_.i, 0); //#14944 + } //#14944 + } //#14944 + $_.cws = $a(($_.msglen * 2) + 1); //#14948 + if (!bwipp_code49.__14961__) { //#14961 + $_ = Object.create($_); //#14961 + $_.samval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#14960 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#14960 + bwipp_code49.__14961__ = 1; //#14960 + $_ = Object.getPrototypeOf($_); //#14960 + } //#14960 + for (;;) { //#14997 + if ($_.append) { //#14970 + $_.mode = 1; //#14966 + $_.method = "alpha"; //#14967 + $_.i = 0; //#14968 + $_.j = 0; //#14968 + break; //#14969 + } //#14969 + if ($_.sam != -1) { //#14977 + $_.mode = 3; //#14972 + $k[$j++] = $_.cws; //#14973 + $k[$j++] = 0; //#14973 + for (var _2d = 0; _2d <= 43; _2d += 1) { //#14973 + $k[$j++] = _2d; //#14973 + if ($get($_.samval, _2d) != $_.sam) { //#14973 + $j--; //#14973 + } //#14973 + } //#14973 + var _2h = $k[--$j]; //#14973 + var _2i = $k[--$j]; //#14973 + $put($k[--$j], _2i, $f(_2h + 1)); //#14973 + $_.method = "alpha"; //#14974 + $_.i = 0; //#14975 + $_.j = 1; //#14975 + break; //#14976 + } //#14976 + if ($get($_.numericruns, 0) >= 5) { //#14982 + $_.mode = 2; //#14979 + $_.method = "numeric"; //#14980 + $_.i = 0; //#14980 + $_.j = 0; //#14980 + break; //#14981 + } //#14981 + var _2p = $get($_.charvals, $get($_.msg, 0)); //#14983 + $k[$j++] = _2p; //#14990 + if ($ne($type(_2p), 'arraytype')) { //#14990 + $j--; //#14985 + $_.mode = 0; //#14986 + $_.method = "alpha"; //#14987 + $_.i = 0; //#14988 + $_.j = 0; //#14988 + break; //#14989 + } //#14989 + var _2t = ($get($k[--$j], 0) == 43) ? 4 : 5; //#14992 + $_.mode = _2t; //#14992 + $put($_.cws, 0, $get($get($_.charvals, $get($_.msg, 0)), 1)); //#14993 + $_.method = "alpha"; //#14994 + $_.i = 1; //#14995 + $_.j = 1; //#14995 + break; //#14996 + } //#14996 + for (;;) { //#15024 + if ($_.i == $_.msglen) { //#15001 + break; //#15001 + } //#15001 + for (;;) { //#15023 + if ($eq($_.method, "alpha")) { //#15012 + if ($get($_.numericruns, $_.i) >= 5) { //#15008 + $k[$j++] = $_.ns; //#15005 + $_.encodealpha(); //#15005 + $_.method = "numeric"; //#15006 + break; //#15007 + } //#15007 + $k[$j++] = $get($_.msg, $_.i); //#15009 + $_.encodealpha(); //#15009 + $_.i = $_.i + 1; //#15010 + break; //#15011 + } //#15011 + if ($eq($_.method, "numeric")) { //#15022 + if ($get($_.numericruns, $_.i) < 5) { //#15018 + $k[$j++] = $_.ns; //#15015 + $_.encodealpha(); //#15015 + $_.method = "alpha"; //#15016 + break; //#15017 + } //#15017 + $k[$j++] = $geti($_.msg, $_.i, $get($_.numericruns, $_.i)); //#15019 + $_.encodenumeric(); //#15019 + $_.i = $f($_.i + $get($_.numericruns, $_.i)); //#15020 + break; //#15021 + } //#15021 + } //#15021 + } //#15021 + $_.cws = $geti($_.cws, 0, $_.j); //#15025 + if (!bwipp_code49.__15039__) { //#15039 + $_ = Object.create($_); //#15039 + $_.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#15038 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15038 + bwipp_code49.__15039__ = 1; //#15038 + $_ = Object.getPrototypeOf($_); //#15038 + } //#15038 + $_.urows = $_.rows; //#15042 + var _3d = $_.metrics; //#15043 + for (var _3e = 0, _3f = _3d.length; _3e < _3f; _3e++) { //#15051 + $_.m = $get(_3d, _3e); //#15044 + $_.r = $get($_.m, 0); //#15045 + $_.dcws = $get($_.m, 1); //#15046 + $_.okay = true; //#15047 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#15048 + $_.okay = false; //#15048 + } //#15048 + if ($_.cws.length > $_.dcws) { //#15049 + $_.okay = false; //#15049 + } //#15049 + if ($_.okay) { //#15050 + break; //#15050 + } //#15050 + } //#15050 + if (!$_.okay) { //#15055 + $k[$j++] = 'bwipp.code49noValidSymbol#15054'; //#15054 + $k[$j++] = "Maximum length exceeded"; //#15054 + bwipp_raiseerror(); //#15054 + } //#15054 + $k[$j++] = Infinity; //#15058 + $aload($_.cws); //#15058 + for (var _3v = 0, _3w = $f($_.dcws - $_.cws.length); _3v < _3w; _3v++) { //#15058 + $k[$j++] = 48; //#15058 + } //#15058 + $_.cws = $a(); //#15058 + $_.ccs = $a($_.r * 8); //#15061 + $_.j = 0; //#15062 + for (var _42 = 0, _41 = $f($_.r - 2); _42 <= _41; _42 += 1) { //#15069 + $_.i = _42; //#15064 + $_.cc = $geti($_.cws, $_.j, 7); //#15065 + $puti($_.ccs, $_.i * 8, $_.cc); //#15066 + var _4B = $_.cc; //#15067 + $k[$j++] = $_.ccs; //#15067 + $k[$j++] = ($_.i * 8) + 7; //#15067 + $k[$j++] = 0; //#15067 + for (var _4C = 0, _4D = _4B.length; _4C < _4D; _4C++) { //#15067 + var _4F = $k[--$j]; //#15067 + $k[$j++] = $f(_4F + $get(_4B, _4C)); //#15067 + } //#15067 + var _4G = $k[--$j]; //#15067 + var _4H = $k[--$j]; //#15067 + $put($k[--$j], _4H, _4G % 49); //#15067 + $_.j = $_.j + 7; //#15068 + } //#15068 + if ($_.j < $_.dcws) { //#15072 + $puti($_.ccs, $_.ccs.length - 8, $geti($_.cws, $_.j, $f($_.dcws - $_.j))); //#15071 + } //#15071 + $_.cr7 = $f(($f($_.r - 2) * 7) + $_.mode); //#15075 + $put($_.ccs, $_.ccs.length - 2, $_.cr7); //#15076 + if (!bwipp_code49.__15085__) { //#15085 + $_ = Object.create($_); //#15085 + var _4Y = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#15081 + $k[$j++] = _4Y; //#15082 + $k[$j++] = _4Y; //#15082 + $k[$j++] = Infinity; //#15082 + var _4Z = $k[--$j]; //#15082 + var _4b = $geti($k[--$j], 0, 32); //#15082 + $k[$j++] = _4Z; //#15082 + $k[$j++] = 20; //#15082 + $aload(_4b); //#15082 + $_.weightx = $a(); //#15082 + var _4d = $k[--$j]; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = _4d; //#15083 + $k[$j++] = Infinity; //#15083 + var _4e = $k[--$j]; //#15083 + var _4g = $geti($k[--$j], 1, 32); //#15083 + $k[$j++] = _4e; //#15083 + $k[$j++] = 16; //#15083 + $aload(_4g); //#15083 + $_.weighty = $a(); //#15083 + $k[$j++] = Infinity; //#15084 + var _4i = $k[--$j]; //#15084 + var _4k = $geti($k[--$j], 2, 32); //#15084 + $k[$j++] = _4i; //#15084 + $k[$j++] = 38; //#15084 + $aload(_4k); //#15084 + $_.weightz = $a(); //#15084 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15084 + bwipp_code49.__15085__ = 1; //#15084 + $_ = Object.getPrototypeOf($_); //#15084 + } //#15084 $_.calccheck = function() { - $_.weights = $k[--$j]; //#14880 - $_.score = 0; //#14881 - for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#14886 - $_.i = _4q; //#14883 - $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#14885 - } //#14885 - $k[$j++] = $_.score; //#14887 - }; //#14887 - $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#14889 - if ($_.r >= 7) { //#14896 - $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#14893 - $k[$j++] = $_.weightz; //#14893 - $_.calccheck(); //#14893 - var _5A = $k[--$j]; //#14893 - var _5C = $f($k[--$j] + _5A) % 2401; //#14894 - $k[$j++] = ~~(_5C / 49); //#14894 - $k[$j++] = _5C % 49; //#14894 - $astore($a(2)); //#14894 - $puti($_.lastrow, 0, $k[--$j]); //#14895 - } //#14895 - $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#14897 - $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#14900 - $k[$j++] = $_.weighty; //#14900 - $_.calccheck(); //#14900 - var _5O = $k[--$j]; //#14900 - var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#14902 - $_.wr2 = _5U; //#14902 - $k[$j++] = ~~(_5U / 49); //#14903 - $k[$j++] = _5U % 49; //#14903 - $astore($a(2)); //#14903 - $puti($_.lastrow, 2, $k[--$j]); //#14904 - $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#14907 - $k[$j++] = $_.weightx; //#14907 - $_.calccheck(); //#14907 - var _5c = $k[--$j]; //#14907 - var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#14911 - $k[$j++] = ~~(_5m / 49); //#14911 - $k[$j++] = _5m % 49; //#14911 - $astore($a(2)); //#14911 - $puti($_.lastrow, 4, $k[--$j]); //#14912 - var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#14915 - $k[$j++] = 0; //#14915 - for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#14915 - var _5w = $k[--$j]; //#14915 - $k[$j++] = $f(_5w + $get(_5s, _5t)); //#14915 - } //#14915 - $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#14916 - var _61 = $get($_.options, 'debugcws') !== undefined; //#14918 - if (_61) { //#14918 - $k[$j++] = 'bwipp.debugcws#14918'; //#14918 - $k[$j++] = $_.ccs; //#14918 - bwipp_raiseerror(); //#14918 - } //#14918 - if (!bwipp_code49.__15616__) { //#15616 - $_ = Object.create($_); //#15616 - $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15611 - $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15615 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15615 - bwipp_code49.__15616__ = 1; //#15615 - $_ = Object.getPrototypeOf($_); //#15615 - } //#15615 - $_.rowbits = $a($_.r); //#15619 - for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15639 - $_.i = _6C; //#15621 - $k[$j++] = 'p'; //#15622 - if ($_.i != $f($_.r - 1)) { //#15622 - $k[$j++] = $get($_.parity, $_.i); //#15622 - } else { //#15622 - $k[$j++] = "0000"; //#15622 - } //#15622 - var _6I = $k[--$j]; //#15622 - $_[$k[--$j]] = _6I; //#15622 - $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15623 - $k[$j++] = Infinity; //#15625 - for (var _6N = 0; _6N <= 7; _6N += 2) { //#15625 - $aload($geti($_.ccrow, _6N, 2)); //#15625 - var _6Q = $k[--$j]; //#15625 - var _6R = $k[--$j]; //#15625 - $k[$j++] = $f(_6Q + (_6R * 49)); //#15625 - } //#15625 - $_.scrow = $a(); //#15625 - $k[$j++] = Infinity; //#15633 - $k[$j++] = 10; //#15632 - $k[$j++] = 1; //#15632 - $k[$j++] = 1; //#15632 - for (var _6T = 0; _6T <= 3; _6T += 1) { //#15632 - $_.j = _6T; //#15630 - $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15631 - var _6d = $k[--$j]; //#15631 - $k[$j++] = $f(_6d - 48); //#15631 - }); //#15631 - } //#15631 - $k[$j++] = 4; //#15633 - $k[$j++] = 1; //#15633 - $_.sbs = $a(); //#15633 - $k[$j++] = Infinity; //#15635 - var _6f = $_.sbs; //#15636 - $k[$j++] = 1; //#15636 - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15636 - var _6j = $k[--$j]; //#15636 - var _6k = (_6j == 0) ? 1 : 0; //#15636 - $k[$j++] = _6j; //#15636 - for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15636 - $k[$j++] = _6k //#15636 - } //#15636 - } //#15636 - $astore($a($counttomark() - 1)); //#15637 - var _6p = $k[--$j]; //#15637 - var _6q = $k[--$j]; //#15637 - $k[$j++] = _6p; //#15637 - $k[$j++] = _6q; //#15637 - $j--; //#15637 - var _6r = $k[--$j]; //#15637 - var _6s = $k[--$j]; //#15637 - $k[$j++] = _6r; //#15637 - $k[$j++] = _6s; //#15637 - $j--; //#15637 - $put($_.rowbits, $_.i, $k[--$j]); //#15638 - } //#15638 - $k[$j++] = Infinity; //#15650 - for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15643 - $k[$j++] = 1; //#15643 - } //#15643 - for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15648 - $_.i = _71; //#15645 - for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15646 - $aload($get($_.rowbits, $_.i)); //#15646 - } //#15646 - for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15647 - for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15647 - $k[$j++] = 1; //#15647 - } //#15647 - $k[$j++] = 0; //#15647 - } //#15647 - } //#15647 - for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15649 - $aload($get($_.rowbits, $f($_.r - 1))); //#15649 - } //#15649 - for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15650 - $k[$j++] = 1; //#15650 - } //#15650 - $_.pixs = $a(); //#15650 + $_.weights = $k[--$j]; //#15087 + $_.score = 0; //#15088 + for (var _4q = 0, _4p = (~~(($f($_.r - 1) * 8) / 2)) - 1; _4q <= _4p; _4q += 1) { //#15093 + $_.i = _4q; //#15090 + $_.score = $f((($f(($get($_.ccs, $_.i * 2) * 49) + $get($_.ccs, ($_.i * 2) + 1))) * $get($_.weights, $_.i + 1)) + $_.score); //#15092 + } //#15092 + $k[$j++] = $_.score; //#15094 + }; //#15094 + $_.lastrow = $geti($_.ccs, $_.ccs.length - 8, 8); //#15096 + if ($_.r >= 7) { //#15103 + $k[$j++] = $_.cr7 * $get($_.weightz, 0); //#15100 + $k[$j++] = $_.weightz; //#15100 + $_.calccheck(); //#15100 + var _5A = $k[--$j]; //#15100 + var _5C = $f($k[--$j] + _5A) % 2401; //#15101 + $k[$j++] = ~~(_5C / 49); //#15101 + $k[$j++] = _5C % 49; //#15101 + $astore($a(2)); //#15101 + $puti($_.lastrow, 0, $k[--$j]); //#15102 + } //#15102 + $_.wr1 = $f(($get($_.lastrow, 0) * 49) + $get($_.lastrow, 1)); //#15104 + $k[$j++] = $_.cr7 * $get($_.weighty, 0); //#15107 + $k[$j++] = $_.weighty; //#15107 + $_.calccheck(); //#15107 + var _5O = $k[--$j]; //#15107 + var _5U = ($f($f($k[--$j] + _5O) + ($_.wr1 * $get($_.weighty, $f(($_.r * 4) - 3))))) % 2401; //#15109 + $_.wr2 = _5U; //#15109 + $k[$j++] = ~~(_5U / 49); //#15110 + $k[$j++] = _5U % 49; //#15110 + $astore($a(2)); //#15110 + $puti($_.lastrow, 2, $k[--$j]); //#15111 + $k[$j++] = $_.cr7 * $get($_.weightx, 0); //#15114 + $k[$j++] = $_.weightx; //#15114 + $_.calccheck(); //#15114 + var _5c = $k[--$j]; //#15114 + var _5m = ($f(($f($f($k[--$j] + _5c) + ($_.wr1 * $get($_.weightx, $f(($_.r * 4) - 3))))) + ($_.wr2 * $get($_.weightx, $f(($_.r * 4) - 2))))) % 2401; //#15118 + $k[$j++] = ~~(_5m / 49); //#15118 + $k[$j++] = _5m % 49; //#15118 + $astore($a(2)); //#15118 + $puti($_.lastrow, 4, $k[--$j]); //#15119 + var _5s = $geti($_.ccs, $_.ccs.length - 8, 7); //#15122 + $k[$j++] = 0; //#15122 + for (var _5t = 0, _5u = _5s.length; _5t < _5u; _5t++) { //#15122 + var _5w = $k[--$j]; //#15122 + $k[$j++] = $f(_5w + $get(_5s, _5t)); //#15122 + } //#15122 + $put($_.ccs, $_.ccs.length - 1, $k[--$j] % 49); //#15123 + var _61 = $get($_.options, 'debugcws') !== undefined; //#15125 + if (_61) { //#15125 + $k[$j++] = 'bwipp.debugcws#15125'; //#15125 + $k[$j++] = $_.ccs; //#15125 + bwipp_raiseerror(); //#15125 + } //#15125 + if (!bwipp_code49.__15823__) { //#15823 + $_ = Object.create($_); //#15823 + $_.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#15818 + $_.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#15822 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_code49.$ctx[id] = $_[id]); //#15822 + bwipp_code49.__15823__ = 1; //#15822 + $_ = Object.getPrototypeOf($_); //#15822 + } //#15822 + $_.rowbits = $a($_.r); //#15826 + for (var _6C = 0, _6B = $f($_.r - 1); _6C <= _6B; _6C += 1) { //#15846 + $_.i = _6C; //#15828 + $k[$j++] = 'p'; //#15829 + if ($_.i != $f($_.r - 1)) { //#15829 + $k[$j++] = $get($_.parity, $_.i); //#15829 + } else { //#15829 + $k[$j++] = "0000"; //#15829 + } //#15829 + var _6I = $k[--$j]; //#15829 + $_[$k[--$j]] = _6I; //#15829 + $_.ccrow = $geti($_.ccs, $_.i * 8, 8); //#15830 + $k[$j++] = Infinity; //#15831 + for (var _6N = 0; _6N <= 7; _6N += 2) { //#15832 + $aload($geti($_.ccrow, _6N, 2)); //#15832 + var _6Q = $k[--$j]; //#15832 + var _6R = $k[--$j]; //#15832 + $k[$j++] = $f(_6Q + (_6R * 49)); //#15832 + } //#15832 + $_.scrow = $a(); //#15832 + $k[$j++] = Infinity; //#15834 + $k[$j++] = 10; //#15839 + $k[$j++] = 1; //#15839 + $k[$j++] = 1; //#15839 + for (var _6T = 0; _6T <= 3; _6T += 1) { //#15839 + $_.j = _6T; //#15837 + $forall($get($get($_.patterns, $f($get($_.p, $_.j) - 48)), $get($_.scrow, $_.j)), function() { //#15838 + var _6d = $k[--$j]; //#15838 + $k[$j++] = $f(_6d - 48); //#15838 + }); //#15838 + } //#15838 + $k[$j++] = 4; //#15840 + $k[$j++] = 1; //#15840 + $_.sbs = $a(); //#15840 + $k[$j++] = Infinity; //#15842 + var _6f = $_.sbs; //#15843 + $k[$j++] = 1; //#15843 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#15843 + var _6j = $k[--$j]; //#15843 + var _6k = (_6j == 0) ? 1 : 0; //#15843 + $k[$j++] = _6j; //#15843 + for (var _6l = 0, _6m = $get(_6f, _6g); _6l < _6m; _6l++) { //#15843 + $k[$j++] = _6k //#15843 + } //#15843 + } //#15843 + $astore($a($counttomark() - 1)); //#15844 + var _6p = $k[--$j]; //#15844 + var _6q = $k[--$j]; //#15844 + $k[$j++] = _6p; //#15844 + $k[$j++] = _6q; //#15844 + $j--; //#15844 + var _6r = $k[--$j]; //#15844 + var _6s = $k[--$j]; //#15844 + $k[$j++] = _6r; //#15844 + $k[$j++] = _6s; //#15844 + $j--; //#15844 + $put($_.rowbits, $_.i, $k[--$j]); //#15845 + } //#15845 + $k[$j++] = Infinity; //#15849 + for (var _6x = 0, _6y = 81 * $_.sepheight; _6x < _6y; _6x++) { //#15850 + $k[$j++] = 1; //#15850 + } //#15850 + for (var _71 = 0, _70 = $f($_.r - 2); _71 <= _70; _71 += 1) { //#15855 + $_.i = _71; //#15852 + for (var _73 = 0, _74 = $_.rowheight; _73 < _74; _73++) { //#15853 + $aload($get($_.rowbits, $_.i)); //#15853 + } //#15853 + for (var _79 = 0, _7A = $_.sepheight; _79 < _7A; _79++) { //#15854 + for (var _7B = 0, _7C = 10; _7B < _7C; _7B++) { //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + for (var _7D = 0, _7E = 70; _7D < _7E; _7D++) { //#15854 + $k[$j++] = 1; //#15854 + } //#15854 + $k[$j++] = 0; //#15854 + } //#15854 + } //#15854 + for (var _7G = 0, _7H = $_.rowheight; _7G < _7H; _7G++) { //#15856 + $aload($get($_.rowbits, $f($_.r - 1))); //#15856 + } //#15856 + for (var _7M = 0, _7N = 81 * $_.sepheight; _7M < _7N; _7M++) { //#15857 + $k[$j++] = 1; //#15857 + } //#15857 + $_.pixs = $a(); //#15857 var _7T = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -18744,4438 +19065,4524 @@ function bwipp_code49() { ["height", (~~($_.pixs.length / 81)) / 72], ["width", 81 / 72], ["opt", $_.options] - ]); //#15661 - $k[$j++] = _7T; //#15664 - if (!$_.dontdraw) { //#15664 - bwipp_renmatrix(); //#15664 - } //#15664 - $_ = Object.getPrototypeOf($_); //#15666 - $_ = Object.getPrototypeOf($_); //#15668 -} - + ]); //#15868 + $k[$j++] = _7T; //#15871 + if (!$_.dontdraw) { //#15871 + bwipp_renmatrix(); //#15871 + } //#15871 + $_ = Object.getPrototypeOf($_); //#15873 + $_ = Object.getPrototypeOf($_); //#15875 +} //bwipp_code49 function bwipp_flattermarken() { - $_ = Object.create($_); //#15960 - $_.dontdraw = false; //#15963 - $_.includetext = false; //#15964 - $_.textfont = "OCR-B"; //#15965 - $_.textsize = 10; //#15966 - $_.textyoffset = -8; //#15967 - $_.height = 0.3; //#15968 - $k[$j++] = $_; //#15970 - bwipp_processoptions(); //#15970 - $_.options = $k[--$j]; //#15970 - $_.barcode = $k[--$j]; //#15971 - bwipp_loadctx(bwipp_flattermarken) //#15973 - $forall($_.barcode, function() { //#15980 - var _3 = $k[--$j]; //#15977 - if ((_3 < 48) || (_3 > 57)) { //#15979 - $k[$j++] = 'bwipp.flattermarkenBadCharacter#15978'; //#15978 - $k[$j++] = "Flattermarken must contain only digits"; //#15978 - bwipp_raiseerror(); //#15978 - } //#15978 - }); //#15978 - if (!bwipp_flattermarken.__15991__) { //#15991 - $_ = Object.create($_); //#15991 - $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#15987 - $_.barchars = "1234567890"; //#15990 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#15990 - bwipp_flattermarken.__15991__ = 1; //#15990 - $_ = Object.getPrototypeOf($_); //#15990 - } //#15990 - $_.barlen = $_.barcode.length; //#15993 - $_.sbs = $s($_.barlen * 4); //#15995 - $_.txt = $a($_.barlen); //#15996 - for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16008 - $_.i = _D; //#15999 - $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16001 - $j--; //#16002 - $_.indx = $k[--$j].length; //#16003 - $j -= 2; //#16004 - $_.enc = $get($_.encs, $_.indx); //#16005 - $puti($_.sbs, $_.i * 4, $_.enc); //#16006 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16007 - } //#16007 - $k[$j++] = Infinity; //#16017 - $k[$j++] = Infinity; //#16013 - var _Z = $_.sbs; //#16013 - for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16013 - $k[$j++] = $get(_Z, _a) - 48; //#16013 - } //#16013 - var _d = $a(); //#16013 - $k[$j++] = Infinity; //#16014 - for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16014 - $k[$j++] = $_.height; //#16014 - } //#16014 - var _i = $a(); //#16014 - $k[$j++] = Infinity; //#16015 - for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16015 - $k[$j++] = 0; //#16015 - } //#16015 - var _m = $a(); //#16015 - $k[$j++] = 'ren'; //#16017 - $k[$j++] = bwipp_renlinear; //#16017 - $k[$j++] = 'sbs'; //#16017 - $k[$j++] = _d; //#16017 - $k[$j++] = 'bhs'; //#16017 - $k[$j++] = _i; //#16017 - $k[$j++] = 'bbs'; //#16017 - $k[$j++] = _m; //#16017 - $k[$j++] = 'txt'; //#16017 - $k[$j++] = $_.txt; //#16017 - $k[$j++] = 'opt'; //#16017 - $k[$j++] = $_.options; //#16017 - var _p = $d(); //#16017 - $k[$j++] = _p; //#16020 - if (!$_.dontdraw) { //#16020 - bwipp_renlinear(); //#16020 - } //#16020 - $_ = Object.getPrototypeOf($_); //#16022 - $_ = Object.getPrototypeOf($_); //#16024 -} - + $_ = Object.create($_); //#16169 + $_.dontdraw = false; //#16172 + $_.includetext = false; //#16173 + $_.textfont = "OCR-B"; //#16174 + $_.textsize = 10; //#16175 + $_.textyoffset = -8; //#16176 + $_.height = 0.3; //#16177 + $k[$j++] = $_; //#16179 + bwipp_processoptions(); //#16179 + $_.options = $k[--$j]; //#16179 + $_.barcode = $k[--$j]; //#16180 + bwipp_loadctx(bwipp_flattermarken) //#16182 + $forall($_.barcode, function() { //#16189 + var _3 = $k[--$j]; //#16186 + if ((_3 < 48) || (_3 > 57)) { //#16188 + $k[$j++] = 'bwipp.flattermarkenBadCharacter#16187'; //#16187 + $k[$j++] = "Flattermarken must contain only digits"; //#16187 + bwipp_raiseerror(); //#16187 + } //#16187 + }); //#16187 + if (!bwipp_flattermarken.__16200__) { //#16200 + $_ = Object.create($_); //#16200 + $_.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#16196 + $_.barchars = "1234567890"; //#16199 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_flattermarken.$ctx[id] = $_[id]); //#16199 + bwipp_flattermarken.__16200__ = 1; //#16199 + $_ = Object.getPrototypeOf($_); //#16199 + } //#16199 + $_.barlen = $_.barcode.length; //#16202 + $_.sbs = $s($_.barlen * 4); //#16204 + $_.txt = $a($_.barlen); //#16205 + for (var _D = 0, _C = $_.barlen - 1; _D <= _C; _D += 1) { //#16217 + $_.i = _D; //#16208 + $search($_.barchars, $geti($_.barcode, $_.i, 1)); //#16210 + $j--; //#16211 + $_.indx = $k[--$j].length; //#16212 + $j -= 2; //#16213 + $_.enc = $get($_.encs, $_.indx); //#16214 + $puti($_.sbs, $_.i * 4, $_.enc); //#16215 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), $_.i * 9, $_.textyoffset, $_.textfont, $_.textsize])); //#16216 + } //#16216 + $k[$j++] = Infinity; //#16220 + $k[$j++] = Infinity; //#16222 + var _Z = $_.sbs; //#16222 + for (var _a = 0, _b = _Z.length; _a < _b; _a++) { //#16222 + $k[$j++] = $get(_Z, _a) - 48; //#16222 + } //#16222 + var _d = $a(); //#16222 + $k[$j++] = Infinity; //#16223 + for (var _f = 0, _g = ~~(($_.sbs.length + 1) / 2); _f < _g; _f++) { //#16223 + $k[$j++] = $_.height; //#16223 + } //#16223 + var _i = $a(); //#16223 + $k[$j++] = Infinity; //#16224 + for (var _k = 0, _l = ~~(($_.sbs.length + 1) / 2); _k < _l; _k++) { //#16224 + $k[$j++] = 0; //#16224 + } //#16224 + var _m = $a(); //#16224 + $k[$j++] = 'ren'; //#16226 + $k[$j++] = bwipp_renlinear; //#16226 + $k[$j++] = 'sbs'; //#16226 + $k[$j++] = _d; //#16226 + $k[$j++] = 'bhs'; //#16226 + $k[$j++] = _i; //#16226 + $k[$j++] = 'bbs'; //#16226 + $k[$j++] = _m; //#16226 + $k[$j++] = 'txt'; //#16226 + $k[$j++] = $_.txt; //#16226 + $k[$j++] = 'opt'; //#16226 + $k[$j++] = $_.options; //#16226 + var _p = $d(); //#16226 + $k[$j++] = _p; //#16229 + if (!$_.dontdraw) { //#16229 + bwipp_renlinear(); //#16229 + } //#16229 + $_ = Object.getPrototypeOf($_); //#16231 + $_ = Object.getPrototypeOf($_); //#16233 +} //bwipp_flattermarken function bwipp_raw() { - $_ = Object.create($_); //#16052 - $_.dontdraw = false; //#16055 - $_.height = 1; //#16056 - $k[$j++] = $_; //#16058 - bwipp_processoptions(); //#16058 - $_.options = $k[--$j]; //#16058 - $_.barcode = $k[--$j]; //#16059 - $forall($_.barcode, function() { //#16066 - var _3 = $k[--$j]; //#16063 - if ((_3 < 49) || (_3 > 57)) { //#16065 - $k[$j++] = 'bwipp.rawBadCharacter#16064'; //#16064 - $k[$j++] = "Raw must contain only digits 1 to 9"; //#16064 - bwipp_raiseerror(); //#16064 - } //#16064 - }); //#16064 - $k[$j++] = Infinity; //#16074 - $k[$j++] = Infinity; //#16071 - $forall($_.barcode, function() { //#16071 - var _5 = $k[--$j]; //#16071 - $k[$j++] = $f(_5 - 48); //#16071 - }); //#16071 - var _6 = $a(); //#16071 - $k[$j++] = Infinity; //#16072 - for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16072 - $k[$j++] = $_.height; //#16072 - } //#16072 - var _B = $a(); //#16072 - $k[$j++] = Infinity; //#16073 - for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16073 - $k[$j++] = 0; //#16073 - } //#16073 - var _F = $a(); //#16073 - $k[$j++] = 'ren'; //#16074 - $k[$j++] = bwipp_renlinear; //#16074 - $k[$j++] = 'sbs'; //#16074 - $k[$j++] = _6; //#16074 - $k[$j++] = 'bhs'; //#16074 - $k[$j++] = _B; //#16074 - $k[$j++] = 'bbs'; //#16074 - $k[$j++] = _F; //#16074 - $k[$j++] = 'opt'; //#16074 - $k[$j++] = $_.options; //#16074 - var _H = $d(); //#16074 - $k[$j++] = _H; //#16077 - if (!$_.dontdraw) { //#16077 - bwipp_renlinear(); //#16077 - } //#16077 - $_ = Object.getPrototypeOf($_); //#16079 -} - + $_ = Object.create($_); //#16261 + $_.dontdraw = false; //#16264 + $_.height = 1; //#16265 + $k[$j++] = $_; //#16267 + bwipp_processoptions(); //#16267 + $_.options = $k[--$j]; //#16267 + $_.barcode = $k[--$j]; //#16268 + $forall($_.barcode, function() { //#16275 + var _3 = $k[--$j]; //#16272 + if ((_3 < 49) || (_3 > 57)) { //#16274 + $k[$j++] = 'bwipp.rawBadCharacter#16273'; //#16273 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#16273 + bwipp_raiseerror(); //#16273 + } //#16273 + }); //#16273 + $k[$j++] = Infinity; //#16278 + $k[$j++] = Infinity; //#16280 + $forall($_.barcode, function() { //#16280 + var _5 = $k[--$j]; //#16280 + $k[$j++] = $f(_5 - 48); //#16280 + }); //#16280 + var _6 = $a(); //#16280 + $k[$j++] = Infinity; //#16281 + for (var _8 = 0, _9 = ~~(($_.barcode.length + 1) / 2); _8 < _9; _8++) { //#16281 + $k[$j++] = $_.height; //#16281 + } //#16281 + var _B = $a(); //#16281 + $k[$j++] = Infinity; //#16282 + for (var _D = 0, _E = ~~(($_.barcode.length + 1) / 2); _D < _E; _D++) { //#16282 + $k[$j++] = 0; //#16282 + } //#16282 + var _F = $a(); //#16282 + $k[$j++] = 'ren'; //#16283 + $k[$j++] = bwipp_renlinear; //#16283 + $k[$j++] = 'sbs'; //#16283 + $k[$j++] = _6; //#16283 + $k[$j++] = 'bhs'; //#16283 + $k[$j++] = _B; //#16283 + $k[$j++] = 'bbs'; //#16283 + $k[$j++] = _F; //#16283 + $k[$j++] = 'opt'; //#16283 + $k[$j++] = $_.options; //#16283 + var _H = $d(); //#16283 + $k[$j++] = _H; //#16286 + if (!$_.dontdraw) { //#16286 + bwipp_renlinear(); //#16286 + } //#16286 + $_ = Object.getPrototypeOf($_); //#16288 +} //bwipp_raw function bwipp_daft() { - $_ = Object.create($_); //#16107 - $_.dontdraw = false; //#16110 - $_.height = 0.175; //#16111 - $k[$j++] = $_; //#16113 - bwipp_processoptions(); //#16113 - $_.options = $k[--$j]; //#16113 - $_.barcode = $k[--$j]; //#16114 - $forall($_.barcode, function() { //#16120 - var _3 = $k[--$j]; //#16117 - if ((_3 != 68) && ((_3 != 65) && ((_3 != 70) && (_3 != 84)))) { //#16119 - $k[$j++] = 'bwipp.daftBadCharacter#16118'; //#16118 - $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16118 - bwipp_raiseerror(); //#16118 - } //#16118 - }); //#16118 - $_.barlen = $_.barcode.length; //#16122 - $_.bbs = $a($_.barlen); //#16124 - $_.bhs = $a($_.barlen); //#16125 - for (var _B = 0, _A = $_.barlen - 1; _B <= _A; _B += 1) { //#16145 - $_.i = _B; //#16127 - $_.enc = $geti($_.barcode, $_.i, 1); //#16128 - if ($eq($_.enc, "D")) { //#16132 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16130 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16131 - } //#16131 - if ($eq($_.enc, "A")) { //#16136 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16134 - $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16135 - } //#16135 - if ($eq($_.enc, "F")) { //#16140 - $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16138 - $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16139 - } //#16139 - if ($eq($_.enc, "T")) { //#16144 - $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16142 - $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16143 - } //#16143 - } //#16143 - $k[$j++] = Infinity; //#16153 - var _h = $_.bbs; //#16150 - var _i = $_.bhs; //#16151 - $k[$j++] = Infinity; //#16152 - for (var _k = 0, _l = $_.bhs.length - 1; _k < _l; _k++) { //#16152 - $k[$j++] = 1.44; //#16152 - $k[$j++] = 1.872; //#16152 - } //#16152 - $k[$j++] = 1.44; //#16152 - var _m = $a(); //#16152 - $k[$j++] = 'ren'; //#16153 - $k[$j++] = bwipp_renlinear; //#16153 - $k[$j++] = 'bbs'; //#16153 - $k[$j++] = _h; //#16153 - $k[$j++] = 'bhs'; //#16153 - $k[$j++] = _i; //#16153 - $k[$j++] = 'sbs'; //#16153 - $k[$j++] = _m; //#16153 - $k[$j++] = 'opt'; //#16153 - $k[$j++] = $_.options; //#16153 - var _o = $d(); //#16153 - $k[$j++] = _o; //#16156 - if (!$_.dontdraw) { //#16156 - bwipp_renlinear(); //#16156 - } //#16156 - $_ = Object.getPrototypeOf($_); //#16158 -} - + $_ = Object.create($_); //#16316 + $_.dontdraw = false; //#16319 + $_.height = 0.175; //#16320 + $k[$j++] = $_; //#16322 + bwipp_processoptions(); //#16322 + $_.options = $k[--$j]; //#16322 + $_.barcode = $k[--$j]; //#16323 + if ($eq($_.barcode, "")) { //#16327 + $k[$j++] = 'bwipp.daftEmptyData#16326'; //#16326 + $k[$j++] = "The data must not be empty"; //#16326 + bwipp_raiseerror(); //#16326 + } //#16326 + $forall($_.barcode, function() { //#16333 + var _4 = $k[--$j]; //#16330 + if ((_4 != 68) && ((_4 != 65) && ((_4 != 70) && (_4 != 84)))) { //#16332 + $k[$j++] = 'bwipp.daftBadCharacter#16331'; //#16331 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#16331 + bwipp_raiseerror(); //#16331 + } //#16331 + }); //#16331 + $_.barlen = $_.barcode.length; //#16335 + $_.bbs = $a($_.barlen); //#16337 + $_.bhs = $a($_.barlen); //#16338 + for (var _C = 0, _B = $_.barlen - 1; _C <= _B; _C += 1) { //#16358 + $_.i = _C; //#16340 + $_.enc = $geti($_.barcode, $_.i, 1); //#16341 + if ($eq($_.enc, "D")) { //#16345 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16343 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16344 + } //#16344 + if ($eq($_.enc, "A")) { //#16349 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16347 + $put($_.bhs, $_.i, (5 * $_.height) / 8); //#16348 + } //#16348 + if ($eq($_.enc, "F")) { //#16353 + $put($_.bbs, $_.i, (0 * $_.height) / 8); //#16351 + $put($_.bhs, $_.i, (8 * $_.height) / 8); //#16352 + } //#16352 + if ($eq($_.enc, "T")) { //#16357 + $put($_.bbs, $_.i, (3 * $_.height) / 8); //#16355 + $put($_.bhs, $_.i, (2 * $_.height) / 8); //#16356 + } //#16356 + } //#16356 + $k[$j++] = Infinity; //#16361 + var _i = $_.bbs; //#16363 + var _j = $_.bhs; //#16364 + $k[$j++] = Infinity; //#16365 + for (var _l = 0, _m = $_.bhs.length - 1; _l < _m; _l++) { //#16365 + $k[$j++] = 1.44; //#16365 + $k[$j++] = 1.872; //#16365 + } //#16365 + $k[$j++] = 1.44; //#16365 + var _n = $a(); //#16365 + $k[$j++] = 'ren'; //#16366 + $k[$j++] = bwipp_renlinear; //#16366 + $k[$j++] = 'bbs'; //#16366 + $k[$j++] = _i; //#16366 + $k[$j++] = 'bhs'; //#16366 + $k[$j++] = _j; //#16366 + $k[$j++] = 'sbs'; //#16366 + $k[$j++] = _n; //#16366 + $k[$j++] = 'opt'; //#16366 + $k[$j++] = $_.options; //#16366 + var _p = $d(); //#16366 + $k[$j++] = _p; //#16369 + if (!$_.dontdraw) { //#16369 + bwipp_renlinear(); //#16369 + } //#16369 + $_ = Object.getPrototypeOf($_); //#16371 +} //bwipp_daft function bwipp_symbol() { - $_ = Object.create($_); //#16186 - $_.dontdraw = false; //#16189 - $k[$j++] = $_; //#16191 - bwipp_processoptions(); //#16191 - $_.options = $k[--$j]; //#16191 - $_.barcode = $k[--$j]; //#16192 + $_ = Object.create($_); //#16399 + $_.dontdraw = false; //#16402 + $k[$j++] = $_; //#16404 + bwipp_processoptions(); //#16404 + $_.options = $k[--$j]; //#16404 + $_.barcode = $k[--$j]; //#16405 var _H = new Map([ ["fima", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16196 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16197 - $_.bbs = $a([0, 0, 0, 0, 0]); //#16198 + $_.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#16409 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#16410 + $_.bbs = $a([0, 0, 0, 0, 0]); //#16411 }], ["fimb", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16201 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16202 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16203 + $_.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#16414 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16415 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16416 }], ["fimc", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16206 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16207 - $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16208 + $_.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#16419 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16420 + $_.bbs = $a([0, 0, 0, 0, 0, 0]); //#16421 }], ["fimd", function() { - $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16211 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16212 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16213 + $_.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#16424 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16425 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16426 }], ["fime", function() { - $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16216 - $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16217 - $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16218 + $_.sbs = $a([2.25, 6.75, 2.25, 15.75, 2.25, 6.75, 2.25]); //#16429 + $_.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#16430 + $_.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#16431 }] - ]); //#16218 - $_.symbols = _H; //#16220 - var _K = $get($_.symbols, $_.barcode) !== undefined; //#16223 - if (!_K) { //#16225 - $k[$j++] = 'bwipp.symbolUnknownSymbol#16224'; //#16224 - $k[$j++] = "Unknown symbol name provided"; //#16224 - bwipp_raiseerror(); //#16224 - } //#16224 + ]); //#16431 + $_.symbols = _H; //#16433 + var _K = $get($_.symbols, $_.barcode) !== undefined; //#16436 + if (!_K) { //#16438 + $k[$j++] = 'bwipp.symbolUnknownSymbol#16437'; //#16437 + $k[$j++] = "Unknown symbol name provided"; //#16437 + bwipp_raiseerror(); //#16437 + } //#16437 if ($get($_.symbols, $_.barcode)() === true) { return true; - } //#16227 + } //#16440 var _S = new Map([ ["ren", bwipp_renlinear], ["sbs", $_.sbs], ["bhs", $_.bhs], ["bbs", $_.bbs], ["opt", $_.options] - ]); //#16235 - $k[$j++] = _S; //#16238 - if (!$_.dontdraw) { //#16238 - bwipp_renlinear(); //#16238 - } //#16238 - $_ = Object.getPrototypeOf($_); //#16240 -} - + ]); //#16448 + $k[$j++] = _S; //#16451 + if (!$_.dontdraw) { //#16451 + bwipp_renlinear(); //#16451 + } //#16451 + $_ = Object.getPrototypeOf($_); //#16453 +} //bwipp_symbol function bwipp_pdf417() { - $_ = Object.create($_); //#16271 - $_.dontdraw = false; //#16274 - $_.compact = false; //#16275 - $_.eclevel = -1; //#16276 - $_.columns = 0; //#16277 - $_.rows = 0; //#16278 - $_.rowmult = 3; //#16279 - $_.ccc = false; //#16280 - $_.raw = false; //#16281 - $_.parse = false; //#16282 - $_.parsefnc = false; //#16283 - $k[$j++] = $_; //#16285 - bwipp_processoptions(); //#16285 - $_.options = $k[--$j]; //#16285 - $_.barcode = $k[--$j]; //#16286 - if ($eq($_.barcode, "")) { //#16290 - $k[$j++] = 'bwipp.pdf417emptyData#16289'; //#16289 - $k[$j++] = "The data must not be empty"; //#16289 - bwipp_raiseerror(); //#16289 - } //#16289 - if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16294 - $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16293'; //#16293 - $k[$j++] = "Valid error correction levels are 0 to 8"; //#16293 - bwipp_raiseerror(); //#16293 - } //#16293 - if ($_.ccc && $_.raw) { //#16298 - $k[$j++] = 'bwipp.pdf417cccAndRaw#16297'; //#16297 - $k[$j++] = "Cannot combine ccc and raw"; //#16297 - bwipp_raiseerror(); //#16297 - } //#16297 - if ($_.ccc && $_.compact) { //#16302 - $k[$j++] = 'bwipp.pdf417cccAndCompact#16301'; //#16301 - $k[$j++] = "Cannot combine ccc and compact"; //#16301 - bwipp_raiseerror(); //#16301 - } //#16301 - if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16306 - $k[$j++] = 'bwipp.pdf417invalidRows#16305'; //#16305 - $k[$j++] = "There must be between 3 and 90 rows"; //#16305 - bwipp_raiseerror(); //#16305 - } //#16305 - if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16310 - $k[$j++] = 'bwipp.pdf417invalidColumns#16309'; //#16309 - $k[$j++] = "There must be between 1 and 30 columns"; //#16309 - bwipp_raiseerror(); //#16309 - } //#16309 - if ($_.rowmult <= 0) { //#16314 - $k[$j++] = 'bwipp.pdf417badRowMult#16313'; //#16313 - $k[$j++] = "The row multiplier must be greater than zero"; //#16313 - bwipp_raiseerror(); //#16313 - } //#16313 - bwipp_loadctx(bwipp_pdf417) //#16316 - if (!bwipp_pdf417.__16407__) { //#16407 - $_ = Object.create($_); //#16407 - $_.T = 0; //#16320 - $_.N = 1; //#16320 - $_.B = 2; //#16320 - $_.A = 0; //#16321 - $_.L = 1; //#16321 - $_.M = 2; //#16321 - $_.P = 3; //#16321 - $_.tl = -1; //#16324 - $_.nl = -2; //#16324 - $_.bl = -3; //#16324 - $_.bl6 = -4; //#16324 - $_.bs = -5; //#16324 - $_.al = -6; //#16327 - $_.ll = -7; //#16327 - $_.ml = -8; //#16327 - $_.pl = -9; //#16327 - $_.as = -10; //#16327 - $_.ps = -11; //#16327 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16362 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16365 - $_.alltext = new Map; //#16366 - for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16376 - $_.i = _10; //#16368 - $_.encs = $get($_.charmaps, $_.i); //#16369 - for (var _14 = 0; _14 <= 3; _14 += 1) { //#16375 - $_.j = _14; //#16371 - var _17 = $get($_.encs, $_.j); //#16372 - $k[$j++] = _17; //#16372 - if ($eq($type(_17), 'stringtype')) { //#16372 - var _1A = $get($k[--$j], 0); //#16372 - $k[$j++] = _1A; //#16372 - } //#16372 - var _1B = $k[--$j]; //#16373 - $put($get($_.charvals, $_.j), _1B, $_.i); //#16373 - $put($_.alltext, _1B, -1); //#16374 - } //#16374 - } //#16374 - $_.e = 10000; //#16378 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16386 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16394 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16402 - $k[$j++] = Infinity; //#16405 - $k[$j++] = $_.tl; //#16405 - $k[$j++] = 900; //#16405 - $k[$j++] = $_.bl; //#16405 - $k[$j++] = 901; //#16405 - $k[$j++] = $_.bl6; //#16405 - $k[$j++] = 924; //#16405 - $k[$j++] = $_.nl; //#16405 - $k[$j++] = 902; //#16405 - $k[$j++] = $_.bs; //#16405 - $k[$j++] = 913; //#16405 - $_.latchcws = $d(); //#16406 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16406 - bwipp_pdf417.__16407__ = 1; //#16406 - $_ = Object.getPrototypeOf($_); //#16406 - } //#16406 - if ($_.raw) { //#16428 - $_.datcws = $a($_.barcode.length); //#16411 - $_.i = 0; //#16412 - $_.j = 0; //#16412 - for (;;) { //#16423 - if ($_.i >= ($_.barcode.length - 3)) { //#16414 - break; //#16414 - } //#16414 - if ($get($_.barcode, $_.i) != 94) { //#16415 - break; //#16415 - } //#16415 - var _2W = $geti($_.barcode, $_.i + 1, 3); //#16416 - $k[$j++] = _2W; //#16418 - $k[$j++] = false; //#16418 - for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16418 - var _2Z = $get(_2W, _2X); //#16418 - if ((_2Z < 48) || (_2Z > 57)) { //#16417 - $j--; //#16417 - $k[$j++] = true; //#16417 - } //#16417 - } //#16417 - if ($k[--$j]) { //#16418 - $j--; //#16418 - break; //#16418 - } //#16418 - $_.cw = $cvi($k[--$j]); //#16419 - $put($_.datcws, $_.j, $_.cw); //#16420 - $_.i = $_.i + 4; //#16421 - $_.j = $_.j + 1; //#16422 - } //#16422 - if ($_.i != $_.barcode.length) { //#16426 - $k[$j++] = 'bwipp.pdf417badRawFormat#16425'; //#16425 - $k[$j++] = "raw data must be formatted as ^NNN"; //#16425 - bwipp_raiseerror(); //#16425 - } //#16425 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16427 - } //#16427 + $_ = Object.create($_); //#16484 + $_.dontdraw = false; //#16487 + $_.compact = false; //#16488 + $_.eclevel = -1; //#16489 + $_.columns = 0; //#16490 + $_.rows = 0; //#16491 + $_.rowmult = 3; //#16492 + $_.ccc = false; //#16493 + $_.raw = false; //#16494 + $_.parse = false; //#16495 + $_.parsefnc = false; //#16496 + $k[$j++] = $_; //#16498 + bwipp_processoptions(); //#16498 + $_.options = $k[--$j]; //#16498 + $_.barcode = $k[--$j]; //#16499 + if ($eq($_.barcode, "")) { //#16503 + $k[$j++] = 'bwipp.pdf417emptyData#16502'; //#16502 + $k[$j++] = "The data must not be empty"; //#16502 + bwipp_raiseerror(); //#16502 + } //#16502 + if (($_.eclevel != -1) && (($_.eclevel < 0) || ($_.eclevel > 8))) { //#16507 + $k[$j++] = 'bwipp.pdf417InvalidErrorCorrectionLevel#16506'; //#16506 + $k[$j++] = "Valid error correction levels are 0 to 8"; //#16506 + bwipp_raiseerror(); //#16506 + } //#16506 + if ($_.ccc && $_.raw) { //#16511 + $k[$j++] = 'bwipp.pdf417cccAndRaw#16510'; //#16510 + $k[$j++] = "Cannot combine ccc and raw"; //#16510 + bwipp_raiseerror(); //#16510 + } //#16510 + if ($_.ccc && $_.compact) { //#16515 + $k[$j++] = 'bwipp.pdf417cccAndCompact#16514'; //#16514 + $k[$j++] = "Cannot combine ccc and compact"; //#16514 + bwipp_raiseerror(); //#16514 + } //#16514 + if (($_.rows != 0) && (($_.rows < 3) || ($_.rows > 90))) { //#16519 + $k[$j++] = 'bwipp.pdf417invalidRows#16518'; //#16518 + $k[$j++] = "There must be between 3 and 90 rows"; //#16518 + bwipp_raiseerror(); //#16518 + } //#16518 + if (($_.columns != 0) && (($_.columns < 1) || ($_.columns > 30))) { //#16523 + $k[$j++] = 'bwipp.pdf417invalidColumns#16522'; //#16522 + $k[$j++] = "There must be between 1 and 30 columns"; //#16522 + bwipp_raiseerror(); //#16522 + } //#16522 + if ($_.rowmult <= 0) { //#16527 + $k[$j++] = 'bwipp.pdf417badRowMult#16526'; //#16526 + $k[$j++] = "The row multiplier must be greater than zero"; //#16526 + bwipp_raiseerror(); //#16526 + } //#16526 + bwipp_loadctx(bwipp_pdf417) //#16529 + if (!bwipp_pdf417.__16620__) { //#16620 + $_ = Object.create($_); //#16620 + $_.T = 0; //#16533 + $_.N = 1; //#16533 + $_.B = 2; //#16533 + $_.A = 0; //#16534 + $_.L = 1; //#16534 + $_.M = 2; //#16534 + $_.P = 3; //#16534 + $_.tl = -1; //#16537 + $_.nl = -2; //#16537 + $_.bl = -3; //#16537 + $_.bl6 = -4; //#16537 + $_.bs = -5; //#16537 + $_.al = -6; //#16540 + $_.ll = -7; //#16540 + $_.ml = -8; //#16540 + $_.pl = -9; //#16540 + $_.as = -10; //#16540 + $_.ps = -11; //#16540 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#16575 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#16578 + $_.alltext = new Map; //#16579 + for (var _10 = 0, _z = $_.charmaps.length - 1; _10 <= _z; _10 += 1) { //#16589 + $_.i = _10; //#16581 + $_.encs = $get($_.charmaps, $_.i); //#16582 + for (var _14 = 0; _14 <= 3; _14 += 1) { //#16588 + $_.j = _14; //#16584 + var _17 = $get($_.encs, $_.j); //#16585 + $k[$j++] = _17; //#16585 + if ($eq($type(_17), 'stringtype')) { //#16585 + var _1A = $get($k[--$j], 0); //#16585 + $k[$j++] = _1A; //#16585 + } //#16585 + var _1B = $k[--$j]; //#16586 + $put($get($_.charvals, $_.j), _1B, $_.i); //#16586 + $put($_.alltext, _1B, -1); //#16587 + } //#16587 + } //#16587 + $_.e = 10000; //#16591 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16599 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#16607 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#16615 + $k[$j++] = Infinity; //#16617 + $k[$j++] = $_.tl; //#16618 + $k[$j++] = 900; //#16618 + $k[$j++] = $_.bl; //#16618 + $k[$j++] = 901; //#16618 + $k[$j++] = $_.bl6; //#16618 + $k[$j++] = 924; //#16618 + $k[$j++] = $_.nl; //#16618 + $k[$j++] = 902; //#16618 + $k[$j++] = $_.bs; //#16618 + $k[$j++] = 913; //#16618 + $_.latchcws = $d(); //#16619 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#16619 + bwipp_pdf417.__16620__ = 1; //#16619 + $_ = Object.getPrototypeOf($_); //#16619 + } //#16619 + if ($_.raw) { //#16641 + $_.datcws = $a($_.barcode.length); //#16624 + $_.i = 0; //#16625 + $_.j = 0; //#16625 + for (;;) { //#16636 + if ($_.i >= ($_.barcode.length - 3)) { //#16627 + break; //#16627 + } //#16627 + if ($get($_.barcode, $_.i) != 94) { //#16628 + break; //#16628 + } //#16628 + var _2W = $geti($_.barcode, $_.i + 1, 3); //#16629 + $k[$j++] = _2W; //#16631 + $k[$j++] = false; //#16631 + for (var _2X = 0, _2Y = _2W.length; _2X < _2Y; _2X++) { //#16631 + var _2Z = $get(_2W, _2X); //#16631 + if ((_2Z < 48) || (_2Z > 57)) { //#16630 + $j--; //#16630 + $k[$j++] = true; //#16630 + } //#16630 + } //#16630 + if ($k[--$j]) { //#16631 + $j--; //#16631 + break; //#16631 + } //#16631 + $_.cw = $cvi($k[--$j]); //#16632 + $put($_.datcws, $_.j, $_.cw); //#16633 + $_.i = $_.i + 4; //#16634 + $_.j = $_.j + 1; //#16635 + } //#16635 + if ($_.i != $_.barcode.length) { //#16639 + $k[$j++] = 'bwipp.pdf417badRawFormat#16638'; //#16638 + $k[$j++] = "raw data must be formatted as ^NNN"; //#16638 + bwipp_raiseerror(); //#16638 + } //#16638 + $_.datcws = $geti($_.datcws, 0, $_.j); //#16640 + } //#16640 $_.encb = function() { - $_.in = $k[--$j]; //#16431 - $_.inlen = $_.in.length; //#16432 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16433 - for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16456 - $_.k = _2t; //#16435 - $k[$j++] = Infinity; //#16436 - $aload($geti($_.in, $_.k * 6, 3)); //#16436 - $_.msbs = $a(); //#16436 - $k[$j++] = Infinity; //#16439 - $aload($_.msbs); //#16438 - var _2z = $k[--$j]; //#16438 - var _30 = $k[--$j]; //#16438 - var _31 = $k[--$j]; //#16438 - $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16439 - for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16439 - var _34 = $k[--$j]; //#16439 - $k[$j++] = _34 % 900; //#16439 - $k[$j++] = ~~(_34 / 900); //#16439 - } //#16439 - $_.mscs = $a(); //#16439 - $k[$j++] = Infinity; //#16441 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16441 - $_.lsbs = $a(); //#16441 - $k[$j++] = Infinity; //#16444 - $aload($_.lsbs); //#16443 - var _3B = $k[--$j]; //#16443 - var _3C = $k[--$j]; //#16443 - var _3D = $k[--$j]; //#16443 - $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16444 - for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16444 - var _3G = $k[--$j]; //#16444 - $k[$j++] = _3G % 900; //#16444 - $k[$j++] = ~~(_3G / 900); //#16444 - } //#16444 - $_.lscs = $a(); //#16444 - var _3J = $get($_.lscs, 0); //#16446 - var _3L = $get($_.mscs, 0); //#16446 - $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16447 - var _3P = $get($_.lscs, 1); //#16448 - var _3R = $get($_.mscs, 0); //#16448 - var _3T = $get($_.mscs, 1); //#16448 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16449 - var _3X = $get($_.lscs, 2); //#16450 - var _3Z = $get($_.mscs, 0); //#16450 - var _3b = $get($_.mscs, 1); //#16450 - var _3d = $get($_.mscs, 2); //#16450 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16451 - var _3h = $get($_.lscs, 3); //#16452 - var _3j = $get($_.mscs, 1); //#16452 - var _3l = $get($_.mscs, 2); //#16452 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16453 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16455 - } //#16455 - $_.rem = $_.inlen % 6; //#16457 - if ($_.rem != 0) { //#16462 - $k[$j++] = $_.out; //#16460 - $k[$j++] = $_.out.length - $_.rem; //#16460 - $k[$j++] = Infinity; //#16460 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16460 - var _42 = $a(); //#16460 - var _43 = $k[--$j]; //#16461 - $puti($k[--$j], _43, _42); //#16461 - } //#16461 - $k[$j++] = $_.out; //#16463 - }; //#16463 - if ($_.ccc) { //#16472 - $_.barlen = $_.barcode.length; //#16467 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16468 - $put($_.datcws, 0, 920); //#16469 - var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16470 - $put($_.datcws, 1, _4E); //#16470 - $k[$j++] = $_.datcws; //#16471 - $k[$j++] = 2; //#16471 - $k[$j++] = Infinity; //#16471 - $forall($_.barcode); //#16471 - var _4H = $a(); //#16471 - $k[$j++] = _4H; //#16471 - $_.encb(); //#16471 - var _4I = $k[--$j]; //#16471 - var _4J = $k[--$j]; //#16471 - $puti($k[--$j], _4J, _4I); //#16471 - } //#16471 - if ((!$_.raw) && (!$_.ccc)) { //#16823 + $_.in = $k[--$j]; //#16644 + $_.inlen = $_.in.length; //#16645 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#16646 + for (var _2t = 0, _2s = (~~($_.inlen / 6)) - 1; _2t <= _2s; _2t += 1) { //#16669 + $_.k = _2t; //#16648 + $k[$j++] = Infinity; //#16649 + $aload($geti($_.in, $_.k * 6, 3)); //#16649 + $_.msbs = $a(); //#16649 + $k[$j++] = Infinity; //#16650 + $aload($_.msbs); //#16651 + var _2z = $k[--$j]; //#16651 + var _30 = $k[--$j]; //#16651 + var _31 = $k[--$j]; //#16651 + $k[$j++] = $f(($f(_2z + (_30 * 256))) + (_31 * 65536)); //#16652 + for (var _32 = 0, _33 = 3; _32 < _33; _32++) { //#16652 + var _34 = $k[--$j]; //#16652 + $k[$j++] = _34 % 900; //#16652 + $k[$j++] = ~~(_34 / 900); //#16652 + } //#16652 + $_.mscs = $a(); //#16652 + $k[$j++] = Infinity; //#16654 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#16654 + $_.lsbs = $a(); //#16654 + $k[$j++] = Infinity; //#16655 + $aload($_.lsbs); //#16656 + var _3B = $k[--$j]; //#16656 + var _3C = $k[--$j]; //#16656 + var _3D = $k[--$j]; //#16656 + $k[$j++] = $f(($f(_3B + (_3C * 256))) + (_3D * 65536)); //#16657 + for (var _3E = 0, _3F = 3; _3E < _3F; _3E++) { //#16657 + var _3G = $k[--$j]; //#16657 + $k[$j++] = _3G % 900; //#16657 + $k[$j++] = ~~(_3G / 900); //#16657 + } //#16657 + $_.lscs = $a(); //#16657 + var _3J = $get($_.lscs, 0); //#16659 + var _3L = $get($_.mscs, 0); //#16659 + $put($_.out, ($_.k * 5) + 4, ($f(_3J + (_3L * 316))) % 900); //#16660 + var _3P = $get($_.lscs, 1); //#16661 + var _3R = $get($_.mscs, 0); //#16661 + var _3T = $get($_.mscs, 1); //#16661 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) % 900); //#16662 + var _3X = $get($_.lscs, 2); //#16663 + var _3Z = $get($_.mscs, 0); //#16663 + var _3b = $get($_.mscs, 1); //#16663 + var _3d = $get($_.mscs, 2); //#16663 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) % 900); //#16664 + var _3h = $get($_.lscs, 3); //#16665 + var _3j = $get($_.mscs, 1); //#16665 + var _3l = $get($_.mscs, 2); //#16665 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) % 900); //#16666 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3J + (_3L * 316))) / 900)) + _3P)) + (_3R * 641))) + (_3T * 316))) / 900)) + _3X)) + (_3Z * 20))) + (_3b * 641))) + (_3d * 316))) / 900)) + _3h)) + (_3j * 20))) + (_3l * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#16668 + } //#16668 + $_.rem = $_.inlen % 6; //#16670 + if ($_.rem != 0) { //#16675 + $k[$j++] = $_.out; //#16673 + $k[$j++] = $_.out.length - $_.rem; //#16673 + $k[$j++] = Infinity; //#16673 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#16673 + var _42 = $a(); //#16673 + var _43 = $k[--$j]; //#16674 + $puti($k[--$j], _43, _42); //#16674 + } //#16674 + $k[$j++] = $_.out; //#16676 + }; //#16676 + if ($_.ccc) { //#16685 + $_.barlen = $_.barcode.length; //#16680 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#16681 + $put($_.datcws, 0, 920); //#16682 + var _4E = (($_.barlen % 6) == 0) ? 924 : 901; //#16683 + $put($_.datcws, 1, _4E); //#16683 + $k[$j++] = $_.datcws; //#16684 + $k[$j++] = 2; //#16684 + $k[$j++] = Infinity; //#16684 + $forall($_.barcode); //#16684 + var _4H = $a(); //#16684 + $k[$j++] = _4H; //#16684 + $_.encb(); //#16684 + var _4I = $k[--$j]; //#16684 + var _4J = $k[--$j]; //#16684 + $puti($k[--$j], _4J, _4I); //#16684 + } //#16684 + if ((!$_.raw) && (!$_.ccc)) { //#17036 var _4P = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#16480 - $_.fncvals = _4P; //#16482 - $k[$j++] = 'msg'; //#16483 - $k[$j++] = $_.barcode; //#16483 - $k[$j++] = $_.fncvals; //#16483 - bwipp_parseinput(); //#16483 - var _4S = $k[--$j]; //#16483 - $_[$k[--$j]] = _4S; //#16483 - $_.msglen = $_.msg.length; //#16484 - $k[$j++] = Infinity; //#16487 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16487 - $k[$j++] = 0; //#16487 - } //#16487 - $k[$j++] = 0; //#16487 - $_.numdigits = $a(); //#16487 - $k[$j++] = Infinity; //#16488 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16488 - $k[$j++] = 0; //#16488 - } //#16488 - $k[$j++] = 0; //#16488 - $_.numtext = $a(); //#16488 - $k[$j++] = Infinity; //#16489 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16489 - $k[$j++] = 0; //#16489 - } //#16489 - $k[$j++] = 0; //#16489 - $_.numbytes = $a(); //#16489 - $k[$j++] = Infinity; //#16490 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16490 - $k[$j++] = 0; //#16490 - } //#16490 - $k[$j++] = 0; //#16490 - $_.iseci = $a(); //#16490 - for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16503 - $_.i = _4m; //#16492 - var _4p = $get($_.msg, $_.i); //#16493 - if ((_4p >= 48) && (_4p <= 57)) { //#16495 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16494 - } //#16494 - var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16496 - if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16498 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16497 - } //#16497 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16501 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16500 - } //#16500 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16502 - } //#16502 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16504 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16505 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16506 - $_.seq = $a([]); //#16508 - $_.seqlen = 0; //#16508 - $_.state = $_.T; //#16508 - $_.p = 0; //#16508 - for (;;) { //#16562 - if ($_.p == $_.msglen) { //#16509 - break; //#16509 - } //#16509 - if ($get($_.iseci, $_.p)) { //#16560 - $_.eci = $get($_.msg, $_.p); //#16511 - $k[$j++] = Infinity; //#16514 - $aload($_.seq); //#16513 - $k[$j++] = $a([$_.eci]); //#16514 - $_.seq = $a(); //#16514 - $_.p = $_.p + 1; //#16516 - $k[$j++] = 'seqlen'; //#16517 - $k[$j++] = $_.seqlen; //#16517 - if ($_.eci <= -1810900) { //#16517 - $k[$j++] = 2; //#16517 - } else { //#16517 - var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16517 - $k[$j++] = _5s; //#16517 - } //#16517 - var _5t = $k[--$j]; //#16517 - var _5u = $k[--$j]; //#16517 - $_[$k[--$j]] = $f(_5u + _5t); //#16517 - } else { //#16560 - $_.n = $get($_.numdigits, $_.p); //#16519 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16560 - $k[$j++] = Infinity; //#16524 - $aload($_.seq); //#16522 - $k[$j++] = $_.nl; //#16524 - $k[$j++] = Infinity; //#16524 - $aload($geti($_.msg, $_.p, $_.n)); //#16524 - var _69 = $a(); //#16524 - $k[$j++] = _69; //#16524 - $_.seq = $a(); //#16524 - $_.state = $_.N; //#16526 - $_.p = $f($_.p + $_.n); //#16527 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16528 - } else { //#16560 - $_.t = $get($_.numtext, $_.p); //#16530 - if ($_.t >= 5) { //#16560 - $k[$j++] = Infinity; //#16537 - $aload($_.seq); //#16533 - if ($_.state != $_.T) { //#16536 - $k[$j++] = $_.tl; //#16535 - } //#16535 - $k[$j++] = Infinity; //#16537 - $aload($geti($_.msg, $_.p, $_.t)); //#16537 - var _6S = $a(); //#16537 - $k[$j++] = _6S; //#16537 - $_.seq = $a(); //#16537 - $_.state = $_.T; //#16539 - $_.p = $f($_.p + $_.t); //#16540 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16541 - } else { //#16560 - $_.b = $get($_.numbytes, $_.p); //#16543 - if (($_.b == 1) && ($_.state == $_.T)) { //#16560 - $k[$j++] = Infinity; //#16548 - $aload($_.seq); //#16546 - $k[$j++] = $_.bs; //#16548 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#16548 - $_.seq = $a(); //#16548 - $_.p = $f($_.p + $_.b); //#16550 - $_.seqlen = $f($_.seqlen + 2); //#16551 - } else { //#16560 - $k[$j++] = Infinity; //#16556 - $aload($_.seq); //#16554 - var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16555 - $k[$j++] = _6r; //#16556 - $k[$j++] = Infinity; //#16556 - $aload($geti($_.msg, $_.p, $_.b)); //#16556 - var _6w = $a(); //#16556 - $k[$j++] = _6w; //#16556 - $_.seq = $a(); //#16556 - $_.state = $_.B; //#16558 - $_.p = $f($_.p + $_.b); //#16559 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 - } //#16560 + ]); //#16693 + $_.fncvals = _4P; //#16695 + $k[$j++] = 'msg'; //#16696 + $k[$j++] = $_.barcode; //#16696 + $k[$j++] = $_.fncvals; //#16696 + bwipp_parseinput(); //#16696 + var _4S = $k[--$j]; //#16696 + $_[$k[--$j]] = _4S; //#16696 + $_.msglen = $_.msg.length; //#16697 + $k[$j++] = Infinity; //#16700 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#16700 + $k[$j++] = 0; //#16700 + } //#16700 + $k[$j++] = 0; //#16700 + $_.numdigits = $a(); //#16700 + $k[$j++] = Infinity; //#16701 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#16701 + $k[$j++] = 0; //#16701 + } //#16701 + $k[$j++] = 0; //#16701 + $_.numtext = $a(); //#16701 + $k[$j++] = Infinity; //#16702 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#16702 + $k[$j++] = 0; //#16702 + } //#16702 + $k[$j++] = 0; //#16702 + $_.numbytes = $a(); //#16702 + $k[$j++] = Infinity; //#16703 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#16703 + $k[$j++] = 0; //#16703 + } //#16703 + $k[$j++] = 0; //#16703 + $_.iseci = $a(); //#16703 + for (var _4m = $_.msglen - 1; _4m >= 0; _4m -= 1) { //#16716 + $_.i = _4m; //#16705 + var _4p = $get($_.msg, $_.i); //#16706 + if ((_4p >= 48) && (_4p <= 57)) { //#16708 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#16707 + } //#16707 + var _4z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#16709 + if (_4z && ($get($_.numdigits, $_.i) < 13)) { //#16711 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#16710 + } //#16710 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#16714 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#16713 + } //#16713 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#16715 + } //#16715 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#16717 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#16718 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#16719 + $_.seq = $a([]); //#16721 + $_.seqlen = 0; //#16721 + $_.state = $_.T; //#16721 + $_.p = 0; //#16721 + for (;;) { //#16775 + if ($_.p == $_.msglen) { //#16722 + break; //#16722 + } //#16722 + if ($get($_.iseci, $_.p)) { //#16773 + $_.eci = $get($_.msg, $_.p); //#16724 + $k[$j++] = Infinity; //#16725 + $aload($_.seq); //#16726 + $k[$j++] = $a([$_.eci]); //#16727 + $_.seq = $a(); //#16727 + $_.p = $_.p + 1; //#16729 + $k[$j++] = 'seqlen'; //#16730 + $k[$j++] = $_.seqlen; //#16730 + if ($_.eci <= -1810900) { //#16730 + $k[$j++] = 2; //#16730 + } else { //#16730 + var _5s = ($_.eci <= -1000900) ? 3 : 2; //#16730 + $k[$j++] = _5s; //#16730 + } //#16730 + var _5t = $k[--$j]; //#16730 + var _5u = $k[--$j]; //#16730 + $_[$k[--$j]] = $f(_5u + _5t); //#16730 + } else { //#16773 + $_.n = $get($_.numdigits, $_.p); //#16732 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#16773 + $k[$j++] = Infinity; //#16734 + $aload($_.seq); //#16735 + $k[$j++] = $_.nl; //#16737 + $k[$j++] = Infinity; //#16737 + $aload($geti($_.msg, $_.p, $_.n)); //#16737 + var _69 = $a(); //#16737 + $k[$j++] = _69; //#16737 + $_.seq = $a(); //#16737 + $_.state = $_.N; //#16739 + $_.p = $f($_.p + $_.n); //#16740 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#16741 + } else { //#16773 + $_.t = $get($_.numtext, $_.p); //#16743 + if ($_.t >= 5) { //#16773 + $k[$j++] = Infinity; //#16745 + $aload($_.seq); //#16746 + if ($_.state != $_.T) { //#16749 + $k[$j++] = $_.tl; //#16748 + } //#16748 + $k[$j++] = Infinity; //#16750 + $aload($geti($_.msg, $_.p, $_.t)); //#16750 + var _6S = $a(); //#16750 + $k[$j++] = _6S; //#16750 + $_.seq = $a(); //#16750 + $_.state = $_.T; //#16752 + $_.p = $f($_.p + $_.t); //#16753 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#16754 + } else { //#16773 + $_.b = $get($_.numbytes, $_.p); //#16756 + if (($_.b == 1) && ($_.state == $_.T)) { //#16773 + $k[$j++] = Infinity; //#16758 + $aload($_.seq); //#16759 + $k[$j++] = $_.bs; //#16761 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#16761 + $_.seq = $a(); //#16761 + $_.p = $f($_.p + $_.b); //#16763 + $_.seqlen = $f($_.seqlen + 2); //#16764 + } else { //#16773 + $k[$j++] = Infinity; //#16766 + $aload($_.seq); //#16767 + var _6r = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#16768 + $k[$j++] = _6r; //#16769 + $k[$j++] = Infinity; //#16769 + $aload($geti($_.msg, $_.p, $_.b)); //#16769 + var _6w = $a(); //#16769 + $k[$j++] = _6w; //#16769 + $_.seq = $a(); //#16769 + $_.state = $_.B; //#16771 + $_.p = $f($_.p + $_.b); //#16772 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 + } //#16773 $_.enca = function() { - var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16565 - $k[$j++] = _77; //#16565 - }; //#16565 + var _77 = $get($get($_.charvals, $_.A), $k[--$j]); //#16778 + $k[$j++] = _77; //#16778 + }; //#16778 $_.encl = function() { - var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16566 - $k[$j++] = _7C; //#16566 - }; //#16566 + var _7C = $get($get($_.charvals, $_.L), $k[--$j]); //#16779 + $k[$j++] = _7C; //#16779 + }; //#16779 $_.encm = function() { - var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16567 - $k[$j++] = _7H; //#16567 - }; //#16567 + var _7H = $get($get($_.charvals, $_.M), $k[--$j]); //#16780 + $k[$j++] = _7H; //#16780 + }; //#16780 $_.encp = function() { - var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16568 - $k[$j++] = _7M; //#16568 - }; //#16568 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16569 + var _7M = $get($get($_.charvals, $_.P), $k[--$j]); //#16781 + $k[$j++] = _7M; //#16781 + }; //#16781 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16782 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#16572 - $_.l = $_.l + 1; //#16573 - }; //#16573 + $put($_.text, $_.l, $k[--$j]); //#16785 + $_.l = $_.l + 1; //#16786 + }; //#16786 $_.enct = function() { - $_.in = $k[--$j]; //#16577 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16579 - $put($_.curlen, $_.submode, 0); //#16580 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16581 - $forall($_.in, function() { //#16651 - $_.char = $k[--$j]; //#16586 - for (;;) { //#16607 - $_.imp = false; //#16590 - var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16591 - for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16605 - $_.x = $get(_7l, _7m); //#16592 - var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16593 - for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16604 - $_.y = $get(_7t, _7u); //#16594 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16595 - if ($_.cost < $get($_.curlen, $_.y)) { //#16603 - $put($_.curlen, $_.y, $_.cost); //#16597 - $k[$j++] = $_.curseq; //#16600 - $k[$j++] = $_.y; //#16600 - $k[$j++] = Infinity; //#16600 - $aload($get($_.curseq, $_.x)); //#16599 - $aload($get($get($_.latseq, $_.x), $_.y)); //#16600 - var _8M = $a(); //#16600 - var _8N = $k[--$j]; //#16601 - $put($k[--$j], _8N, _8M); //#16601 - $_.imp = true; //#16602 - } //#16602 - } //#16602 - } //#16602 - if (!$_.imp) { //#16606 - break; //#16606 - } //#16606 - } //#16606 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16610 - $_.nxtseq = $a(4); //#16611 - var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16613 - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16646 - $_.x = $get(_8a, _8b); //#16614 - for (;;) { //#16644 - var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16618 - if (!_8i) { //#16618 - break; //#16618 - } //#16618 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#16621 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#16625 - $put($_.nxtlen, $_.x, $_.cost); //#16623 - $k[$j++] = $_.nxtseq; //#16624 - $k[$j++] = $_.x; //#16624 - $k[$j++] = Infinity; //#16624 - $aload($get($_.curseq, $_.x)); //#16624 - $k[$j++] = $_.char; //#16624 - var _8z = $a(); //#16624 - var _90 = $k[--$j]; //#16624 - $put($k[--$j], _90, _8z); //#16624 - } //#16624 - var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16628 - for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16641 - $_.y = $get(_96, _97); //#16629 - if ($ne($_.x, $_.y)) { //#16640 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16631 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#16639 - $put($_.nxtlen, $_.y, $_.cost); //#16633 - $k[$j++] = $_.nxtseq; //#16637 - $k[$j++] = $_.y; //#16637 - $k[$j++] = Infinity; //#16637 - $aload($get($_.curseq, $_.y)); //#16635 - var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16636 - $k[$j++] = _9Y; //#16637 - $k[$j++] = $_.char; //#16637 - var _9a = $a(); //#16637 - var _9b = $k[--$j]; //#16638 - $put($k[--$j], _9b, _9a); //#16638 - } //#16638 - } //#16638 - } //#16638 - break; //#16643 - } //#16643 - } //#16643 - $_.curlen = $_.nxtlen; //#16648 - $_.curseq = $_.nxtseq; //#16649 - }); //#16649 - $_.minseq = $_.e; //#16654 - var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16655 - for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16661 - $_.k = $get(_9k, _9l); //#16656 - if ($get($_.curlen, $_.k) < $_.minseq) { //#16660 - $_.minseq = $get($_.curlen, $_.k); //#16658 - $_.txtseq = $get($_.curseq, $_.k); //#16659 - } //#16659 - } //#16659 - $_.text = $a($_.minseq); //#16664 - $_.k = 0; //#16665 - $_.l = 0; //#16665 - for (;;) { //#16685 - if ($_.k >= $_.txtseq.length) { //#16666 - break; //#16666 - } //#16666 - $_.char = $get($_.txtseq, $_.k); //#16668 - $k[$j++] = $_.char; //#16671 + $_.in = $k[--$j]; //#16790 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16792 + $put($_.curlen, $_.submode, 0); //#16793 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16794 + $forall($_.in, function() { //#16864 + $_.char = $k[--$j]; //#16799 + for (;;) { //#16820 + $_.imp = false; //#16803 + var _7l = $a([$_.A, $_.L, $_.M, $_.P]); //#16804 + for (var _7m = 0, _7n = _7l.length; _7m < _7n; _7m++) { //#16818 + $_.x = $get(_7l, _7m); //#16805 + var _7t = $a([$_.A, $_.L, $_.M, $_.P]); //#16806 + for (var _7u = 0, _7v = _7t.length; _7u < _7v; _7u++) { //#16817 + $_.y = $get(_7t, _7u); //#16807 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#16808 + if ($_.cost < $get($_.curlen, $_.y)) { //#16816 + $put($_.curlen, $_.y, $_.cost); //#16810 + $k[$j++] = $_.curseq; //#16813 + $k[$j++] = $_.y; //#16813 + $k[$j++] = Infinity; //#16811 + $aload($get($_.curseq, $_.x)); //#16812 + $aload($get($get($_.latseq, $_.x), $_.y)); //#16813 + var _8M = $a(); //#16813 + var _8N = $k[--$j]; //#16814 + $put($k[--$j], _8N, _8M); //#16814 + $_.imp = true; //#16815 + } //#16815 + } //#16815 + } //#16815 + if (!$_.imp) { //#16819 + break; //#16819 + } //#16819 + } //#16819 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#16823 + $_.nxtseq = $a(4); //#16824 + var _8a = $a([$_.A, $_.L, $_.M, $_.P]); //#16826 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#16859 + $_.x = $get(_8a, _8b); //#16827 + for (;;) { //#16857 + var _8i = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#16831 + if (!_8i) { //#16831 + break; //#16831 + } //#16831 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#16834 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#16838 + $put($_.nxtlen, $_.x, $_.cost); //#16836 + $k[$j++] = $_.nxtseq; //#16837 + $k[$j++] = $_.x; //#16837 + $k[$j++] = Infinity; //#16837 + $aload($get($_.curseq, $_.x)); //#16837 + $k[$j++] = $_.char; //#16837 + var _8z = $a(); //#16837 + var _90 = $k[--$j]; //#16837 + $put($k[--$j], _90, _8z); //#16837 + } //#16837 + var _96 = $a([$_.A, $_.L, $_.M, $_.P]); //#16841 + for (var _97 = 0, _98 = _96.length; _97 < _98; _97++) { //#16854 + $_.y = $get(_96, _97); //#16842 + if ($ne($_.x, $_.y)) { //#16853 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#16844 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#16852 + $put($_.nxtlen, $_.y, $_.cost); //#16846 + $k[$j++] = $_.nxtseq; //#16850 + $k[$j++] = $_.y; //#16850 + $k[$j++] = Infinity; //#16847 + $aload($get($_.curseq, $_.y)); //#16848 + var _9Y = ($_.x == $_.A) ? $_.as : $_.ps; //#16849 + $k[$j++] = _9Y; //#16850 + $k[$j++] = $_.char; //#16850 + var _9a = $a(); //#16850 + var _9b = $k[--$j]; //#16851 + $put($k[--$j], _9b, _9a); //#16851 + } //#16851 + } //#16851 + } //#16851 + break; //#16856 + } //#16856 + } //#16856 + $_.curlen = $_.nxtlen; //#16861 + $_.curseq = $_.nxtseq; //#16862 + }); //#16862 + $_.minseq = $_.e; //#16867 + var _9k = $a([$_.A, $_.L, $_.M, $_.P]); //#16868 + for (var _9l = 0, _9m = _9k.length; _9l < _9m; _9l++) { //#16874 + $_.k = $get(_9k, _9l); //#16869 + if ($get($_.curlen, $_.k) < $_.minseq) { //#16873 + $_.minseq = $get($_.curlen, $_.k); //#16871 + $_.txtseq = $get($_.curseq, $_.k); //#16872 + } //#16872 + } //#16872 + $_.text = $a($_.minseq); //#16877 + $_.k = 0; //#16878 + $_.l = 0; //#16878 + for (;;) { //#16898 + if ($_.k >= $_.txtseq.length) { //#16879 + break; //#16879 + } //#16879 + $_.char = $get($_.txtseq, $_.k); //#16881 + $k[$j++] = $_.char; //#16884 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#16671 - $_.addtotext(); //#16671 - $_.k = $_.k + 1; //#16672 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16678 - $k[$j++] = $get($_.txtseq, $_.k); //#16676 - if ($_.char == $_.as) { //#16676 - $_.enca(); //#16676 - } else { //#16676 - $_.encp(); //#16676 - } //#16676 - $_.addtotext(); //#16676 - $_.k = $_.k + 1; //#16677 - } //#16677 - if ($_.char == $_.al) { //#16681 - $_.submode = $_.A; //#16681 - } //#16681 - if ($_.char == $_.ll) { //#16682 - $_.submode = $_.L; //#16682 - } //#16682 - if ($_.char == $_.ml) { //#16683 - $_.submode = $_.M; //#16683 - } //#16683 - if ($_.char == $_.pl) { //#16684 - $_.submode = $_.P; //#16684 - } //#16684 - } //#16684 - if (($_.text.length % 2) == 1) { //#16732 - if ($_.submode == $_.P) { //#16728 - $k[$j++] = 'pad'; //#16689 - $k[$j++] = $_.al; //#16689 - $_.encp(); //#16689 - var _Ab = $k[--$j]; //#16689 - $_[$k[--$j]] = _Ab; //#16689 - $_.submode = $_.A; //#16690 - } else { //#16728 - $_.nextecitext = false; //#16693 - for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16700 - $_.ti = _Ah; //#16696 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16697 - $_.nextecitext = false; //#16697 - break; //#16697 - } //#16697 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16698 - break; //#16698 - } //#16698 - $_.nextecitext = true; //#16699 - } //#16699 - if ($_.nextecitext) { //#16728 - if ($_.submode == $_.A) { //#16725 - var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16703 - if (_B0) { //#16708 - $k[$j++] = 'pad'; //#16704 - $k[$j++] = $_.ll; //#16704 - $_.enca(); //#16704 - var _B2 = $k[--$j]; //#16704 - $_[$k[--$j]] = _B2; //#16704 - $_.submode = $_.L; //#16705 - } else { //#16708 - $k[$j++] = 'pad'; //#16707 - $k[$j++] = $_.ml; //#16707 - $_.enca(); //#16707 - var _B6 = $k[--$j]; //#16707 - $_[$k[--$j]] = _B6; //#16707 - $_.submode = $_.M; //#16708 - } //#16708 - } else { //#16725 - if ($_.submode == $_.M) { //#16725 - var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16712 - if (_BI) { //#16721 - $k[$j++] = 'pad'; //#16713 - $k[$j++] = $_.ll; //#16713 - $_.encm(); //#16713 - var _BK = $k[--$j]; //#16713 - $_[$k[--$j]] = _BK; //#16713 - $_.submode = $_.L; //#16714 - } else { //#16721 - var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16716 - if (_BU) { //#16721 - $k[$j++] = 'pad'; //#16717 - $k[$j++] = $_.pl; //#16717 - $_.encm(); //#16717 - var _BW = $k[--$j]; //#16717 - $_[$k[--$j]] = _BW; //#16717 - $_.submode = $_.P; //#16718 - } else { //#16721 - $k[$j++] = 'pad'; //#16720 - $k[$j++] = $_.al; //#16720 - $_.encm(); //#16720 - var _Ba = $k[--$j]; //#16720 - $_[$k[--$j]] = _Ba; //#16720 - $_.submode = $_.A; //#16721 - } //#16721 - } //#16721 - } else { //#16725 - $k[$j++] = 'pad'; //#16724 - $k[$j++] = $_.ml; //#16724 - $_.encl(); //#16724 - var _Be = $k[--$j]; //#16724 - $_[$k[--$j]] = _Be; //#16724 - $_.submode = $_.M; //#16725 - } //#16725 - } //#16725 - } else { //#16728 - $k[$j++] = 'pad'; //#16728 - $k[$j++] = $_.ps; //#16728 + } //#16884 + $_.addtotext(); //#16884 + $_.k = $_.k + 1; //#16885 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#16891 + $k[$j++] = $get($_.txtseq, $_.k); //#16889 + if ($_.char == $_.as) { //#16889 + $_.enca(); //#16889 + } else { //#16889 + $_.encp(); //#16889 + } //#16889 + $_.addtotext(); //#16889 + $_.k = $_.k + 1; //#16890 + } //#16890 + if ($_.char == $_.al) { //#16894 + $_.submode = $_.A; //#16894 + } //#16894 + if ($_.char == $_.ll) { //#16895 + $_.submode = $_.L; //#16895 + } //#16895 + if ($_.char == $_.ml) { //#16896 + $_.submode = $_.M; //#16896 + } //#16896 + if ($_.char == $_.pl) { //#16897 + $_.submode = $_.P; //#16897 + } //#16897 + } //#16897 + if (($_.text.length % 2) == 1) { //#16945 + if ($_.submode == $_.P) { //#16941 + $k[$j++] = 'pad'; //#16902 + $k[$j++] = $_.al; //#16902 + $_.encp(); //#16902 + var _Ab = $k[--$j]; //#16902 + $_[$k[--$j]] = _Ab; //#16902 + $_.submode = $_.A; //#16903 + } else { //#16941 + $_.nextecitext = false; //#16906 + for (var _Ah = $_.i + 1, _Ag = $_.seq.length - 1; _Ah <= _Ag; _Ah += 1) { //#16913 + $_.ti = _Ah; //#16909 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#16910 + $_.nextecitext = false; //#16910 + break; //#16910 + } //#16910 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#16911 + break; //#16911 + } //#16911 + $_.nextecitext = true; //#16912 + } //#16912 + if ($_.nextecitext) { //#16941 + if ($_.submode == $_.A) { //#16938 + var _B0 = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16916 + if (_B0) { //#16921 + $k[$j++] = 'pad'; //#16917 + $k[$j++] = $_.ll; //#16917 + $_.enca(); //#16917 + var _B2 = $k[--$j]; //#16917 + $_[$k[--$j]] = _B2; //#16917 + $_.submode = $_.L; //#16918 + } else { //#16921 + $k[$j++] = 'pad'; //#16920 + $k[$j++] = $_.ml; //#16920 + $_.enca(); //#16920 + var _B6 = $k[--$j]; //#16920 + $_[$k[--$j]] = _B6; //#16920 + $_.submode = $_.M; //#16921 + } //#16921 + } else { //#16938 + if ($_.submode == $_.M) { //#16938 + var _BI = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16925 + if (_BI) { //#16934 + $k[$j++] = 'pad'; //#16926 + $k[$j++] = $_.ll; //#16926 + $_.encm(); //#16926 + var _BK = $k[--$j]; //#16926 + $_[$k[--$j]] = _BK; //#16926 + $_.submode = $_.L; //#16927 + } else { //#16934 + var _BU = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#16929 + if (_BU) { //#16934 + $k[$j++] = 'pad'; //#16930 + $k[$j++] = $_.pl; //#16930 + $_.encm(); //#16930 + var _BW = $k[--$j]; //#16930 + $_[$k[--$j]] = _BW; //#16930 + $_.submode = $_.P; //#16931 + } else { //#16934 + $k[$j++] = 'pad'; //#16933 + $k[$j++] = $_.al; //#16933 + $_.encm(); //#16933 + var _Ba = $k[--$j]; //#16933 + $_[$k[--$j]] = _Ba; //#16933 + $_.submode = $_.A; //#16934 + } //#16934 + } //#16934 + } else { //#16938 + $k[$j++] = 'pad'; //#16937 + $k[$j++] = $_.ml; //#16937 + $_.encl(); //#16937 + var _Be = $k[--$j]; //#16937 + $_[$k[--$j]] = _Be; //#16937 + $_.submode = $_.M; //#16938 + } //#16938 + } //#16938 + } else { //#16941 + $k[$j++] = 'pad'; //#16941 + $k[$j++] = $_.ps; //#16941 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#16728 - var _Bm = $k[--$j]; //#16728 - $_[$k[--$j]] = _Bm; //#16728 - } //#16728 - } //#16728 - $k[$j++] = Infinity; //#16731 - $aload($_.text); //#16731 - $k[$j++] = $_.pad; //#16731 - $_.text = $a(); //#16731 - } //#16731 - $_.out = $a(~~($_.text.length / 2)); //#16734 - for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16738 - $_.k = _Bv; //#16736 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16737 - } //#16737 - $k[$j++] = $_.out; //#16740 - }; //#16740 + } //#16941 + var _Bm = $k[--$j]; //#16941 + $_[$k[--$j]] = _Bm; //#16941 + } //#16941 + } //#16941 + $k[$j++] = Infinity; //#16944 + $aload($_.text); //#16944 + $k[$j++] = $_.pad; //#16944 + $_.text = $a(); //#16944 + } //#16944 + $_.out = $a(~~($_.text.length / 2)); //#16947 + for (var _Bv = 0, _Bu = $_.out.length - 1; _Bv <= _Bu; _Bv += 1) { //#16951 + $_.k = _Bv; //#16949 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#16950 + } //#16950 + $k[$j++] = $_.out; //#16953 + }; //#16953 $_.encn = function() { - $_.in = $k[--$j]; //#16745 - $_.out = $a([]); //#16746 - for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16774 - $_.k = _C9; //#16748 - $k[$j++] = Infinity; //#16751 - var _CE = $_.in.length - $_.k; //#16750 - $k[$j++] = 1; //#16750 - $k[$j++] = $_.in; //#16750 - $k[$j++] = $_.k; //#16750 - $k[$j++] = _CE; //#16750 - if (_CE > 44) { //#16750 - $j--; //#16750 - $k[$j++] = 44; //#16750 - } //#16750 - var _CF = $k[--$j]; //#16750 - var _CG = $k[--$j]; //#16750 - var _CI = $geti($k[--$j], _CG, _CF); //#16750 - for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16751 - $k[$j++] = $f($get(_CI, _CJ) - 48); //#16751 - } //#16751 - $_.gmod = $a(); //#16751 - $_.cwn = $a([]); //#16753 - for (;;) { //#16772 - $_.dv = 900; //#16754 - $_.gmul = $a([]); //#16755 - $_.val = 0; //#16755 - for (;;) { //#16767 - if ($_.gmod.length == 0) { //#16756 - break; //#16756 - } //#16756 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16757 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16758 - if ($_.val < $_.dv) { //#16764 - if ($_.gmul.length != 0) { //#16762 - $k[$j++] = Infinity; //#16761 - $aload($_.gmul); //#16761 - $k[$j++] = 0; //#16761 - $_.gmul = $a(); //#16761 - } //#16761 - } else { //#16764 - $k[$j++] = Infinity; //#16764 - $aload($_.gmul); //#16764 - $k[$j++] = ~~($_.val / $_.dv); //#16764 - $_.gmul = $a(); //#16764 - } //#16764 - $_.val = $_.val % $_.dv; //#16766 - } //#16766 - $_.dv = $_.val; //#16768 - $k[$j++] = Infinity; //#16769 - $k[$j++] = $_.dv; //#16769 - $aload($_.cwn); //#16769 - $_.cwn = $a(); //#16769 - $_.gmod = $_.gmul; //#16770 - if ($_.gmul.length == 0) { //#16771 - break; //#16771 - } //#16771 - } //#16771 - $k[$j++] = Infinity; //#16773 - $aload($_.out); //#16773 - $aload($_.cwn); //#16773 - $_.out = $a(); //#16773 - } //#16773 - $k[$j++] = $_.out; //#16775 - }; //#16775 + $_.in = $k[--$j]; //#16958 + $_.out = $a([]); //#16959 + for (var _C9 = 0, _C8 = $_.in.length - 1; _C9 <= _C8; _C9 += 44) { //#16987 + $_.k = _C9; //#16961 + $k[$j++] = Infinity; //#16962 + var _CE = $_.in.length - $_.k; //#16963 + $k[$j++] = 1; //#16963 + $k[$j++] = $_.in; //#16963 + $k[$j++] = $_.k; //#16963 + $k[$j++] = _CE; //#16963 + if (_CE > 44) { //#16963 + $j--; //#16963 + $k[$j++] = 44; //#16963 + } //#16963 + var _CF = $k[--$j]; //#16963 + var _CG = $k[--$j]; //#16963 + var _CI = $geti($k[--$j], _CG, _CF); //#16963 + for (var _CJ = 0, _CK = _CI.length; _CJ < _CK; _CJ++) { //#16964 + $k[$j++] = $f($get(_CI, _CJ) - 48); //#16964 + } //#16964 + $_.gmod = $a(); //#16964 + $_.cwn = $a([]); //#16966 + for (;;) { //#16985 + $_.dv = 900; //#16967 + $_.gmul = $a([]); //#16968 + $_.val = 0; //#16968 + for (;;) { //#16980 + if ($_.gmod.length == 0) { //#16969 + break; //#16969 + } //#16969 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#16970 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#16971 + if ($_.val < $_.dv) { //#16977 + if ($_.gmul.length != 0) { //#16975 + $k[$j++] = Infinity; //#16974 + $aload($_.gmul); //#16974 + $k[$j++] = 0; //#16974 + $_.gmul = $a(); //#16974 + } //#16974 + } else { //#16977 + $k[$j++] = Infinity; //#16977 + $aload($_.gmul); //#16977 + $k[$j++] = ~~($_.val / $_.dv); //#16977 + $_.gmul = $a(); //#16977 + } //#16977 + $_.val = $_.val % $_.dv; //#16979 + } //#16979 + $_.dv = $_.val; //#16981 + $k[$j++] = Infinity; //#16982 + $k[$j++] = $_.dv; //#16982 + $aload($_.cwn); //#16982 + $_.cwn = $a(); //#16982 + $_.gmod = $_.gmul; //#16983 + if ($_.gmul.length == 0) { //#16984 + break; //#16984 + } //#16984 + } //#16984 + $k[$j++] = Infinity; //#16986 + $aload($_.out); //#16986 + $aload($_.cwn); //#16986 + $_.out = $a(); //#16986 + } //#16986 + $k[$j++] = $_.out; //#16988 + }; //#16988 $_.ence = function() { - var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16780 - $k[$j++] = _Ct; //#16788 - if (_Ct <= 899) { //#16787 - var _Cu = $k[--$j]; //#16781 - $k[$j++] = 927; //#16781 - $k[$j++] = _Cu; //#16781 - $astore($a(2)); //#16781 - } else { //#16787 - var _Cw = $k[--$j]; //#16782 - $k[$j++] = _Cw; //#16788 - if (_Cw <= 810899) { //#16787 - var _Cx = $k[--$j]; //#16783 - $k[$j++] = 926; //#16783 - $k[$j++] = (~~(_Cx / 900)) - 1; //#16783 - $k[$j++] = _Cx % 900; //#16783 - $astore($a(3)); //#16783 - } else { //#16787 - var _Cz = $k[--$j]; //#16784 - $k[$j++] = _Cz; //#16788 - if (_Cz <= 811799) { //#16787 - var _D0 = $k[--$j]; //#16785 - $k[$j++] = 925; //#16785 - $k[$j++] = $f(_D0 - 810900); //#16785 - $astore($a(2)); //#16785 - } else { //#16787 - $k[$j++] = 'bwipp.pdf417badECI#16787'; //#16787 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16787 - bwipp_raiseerror(); //#16787 - } //#16787 - } //#16787 - } //#16787 - }; //#16787 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#16791 + var _Ct = $f((-$get($k[--$j], 0)) - 1000000); //#16993 + $k[$j++] = _Ct; //#17001 + if (_Ct <= 899) { //#17000 + var _Cu = $k[--$j]; //#16994 + $k[$j++] = 927; //#16994 + $k[$j++] = _Cu; //#16994 + $astore($a(2)); //#16994 + } else { //#17000 + var _Cw = $k[--$j]; //#16995 + $k[$j++] = _Cw; //#17001 + if (_Cw <= 810899) { //#17000 + var _Cx = $k[--$j]; //#16996 + $k[$j++] = 926; //#16996 + $k[$j++] = (~~(_Cx / 900)) - 1; //#16996 + $k[$j++] = _Cx % 900; //#16996 + $astore($a(3)); //#16996 + } else { //#17000 + var _Cz = $k[--$j]; //#16997 + $k[$j++] = _Cz; //#17001 + if (_Cz <= 811799) { //#17000 + var _D0 = $k[--$j]; //#16998 + $k[$j++] = 925; //#16998 + $k[$j++] = $f(_D0 - 810900); //#16998 + $astore($a(2)); //#16998 + } else { //#17000 + $k[$j++] = 'bwipp.pdf417badECI#17000'; //#17000 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17000 + bwipp_raiseerror(); //#17000 + } //#17000 + } //#17000 + } //#17000 + }; //#17000 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17004 $_.addtocws = function() { - var _D3 = $k[--$j]; //#16794 - $puti($_.datcws, $_.j, _D3); //#16794 - $_.j = _D3.length + $_.j; //#16795 - }; //#16795 - $_.state = $_.T; //#16799 - $_.submode = $_.A; //#16799 - $_.datcws = $a($_.seqlen); //#16800 - $_.i = 0; //#16801 - $_.j = 0; //#16801 - for (;;) { //#16821 - if ($_.i >= $_.seq.length) { //#16802 - break; //#16802 - } //#16802 - $_.chars = $get($_.seq, $_.i); //#16803 - if ($eq($type($_.chars), 'arraytype')) { //#16817 - if ($get($_.chars, 0) <= -1000000) { //#16808 - $k[$j++] = $_.chars; //#16806 - $_.ence(); //#16806 - $_.addtocws(); //#16806 - } else { //#16808 - $k[$j++] = $_.chars; //#16808 + var _D3 = $k[--$j]; //#17007 + $puti($_.datcws, $_.j, _D3); //#17007 + $_.j = _D3.length + $_.j; //#17008 + }; //#17008 + $_.state = $_.T; //#17012 + $_.submode = $_.A; //#17012 + $_.datcws = $a($_.seqlen); //#17013 + $_.i = 0; //#17014 + $_.j = 0; //#17014 + for (;;) { //#17034 + if ($_.i >= $_.seq.length) { //#17015 + break; //#17015 + } //#17015 + $_.chars = $get($_.seq, $_.i); //#17016 + if ($eq($type($_.chars), 'arraytype')) { //#17030 + if ($get($_.chars, 0) <= -1000000) { //#17021 + $k[$j++] = $_.chars; //#17019 + $_.ence(); //#17019 + $_.addtocws(); //#17019 + } else { //#17021 + $k[$j++] = $_.chars; //#17021 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#16808 - $_.addtocws(); //#16808 - } //#16808 - } else { //#16817 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#16811 - $_.addtocws(); //#16811 - if ($_.chars == $_.tl) { //#16812 - $_.state = $_.T; //#16812 - $_.submode = $_.A; //#16812 - } //#16812 - if ($_.chars == $_.nl) { //#16813 - $_.state = $_.N; //#16813 - } //#16813 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#16814 - $_.state = $_.B; //#16814 - } //#16814 - if ($_.chars == $_.bs) { //#16818 - $_.i = $_.i + 1; //#16816 - $k[$j++] = $get($_.seq, $_.i); //#16817 - $_.encb(); //#16817 - $_.addtocws(); //#16817 - } //#16817 - } //#16817 - $_.i = $_.i + 1; //#16820 - } //#16820 - $_.datcws = $geti($_.datcws, 0, $_.j); //#16822 - } //#16822 - $_.m = $_.datcws.length; //#16826 - if ($_.eclevel == -1) { //#16832 - if ($_.m <= 40) { //#16828 - $_.eclevel = 2; //#16828 - } //#16828 - if (($_.m >= 41) && ($_.m <= 160)) { //#16829 - $_.eclevel = 3; //#16829 - } //#16829 - if (($_.m >= 161) && ($_.m <= 320)) { //#16830 - $_.eclevel = 4; //#16830 - } //#16830 - if ($_.m >= 321) { //#16831 - $_.eclevel = 5; //#16831 - } //#16831 - } //#16831 - $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#16835 - if ($_.eclevel > $_.maxeclevel) { //#16836 - $_.eclevel = $_.maxeclevel; //#16836 - } //#16836 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16837 - if ($_.columns == 0) { //#16840 - $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#16840 - } //#16840 - $k[$j++] = 'c'; //#16841 - if ($_.columns >= 1) { //#16841 - $k[$j++] = $_.columns; //#16841 - } else { //#16841 - $k[$j++] = 1; //#16841 - } //#16841 - var _E8 = $k[--$j]; //#16841 - $_[$k[--$j]] = _E8; //#16841 - $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#16844 - if (($_.r < $_.rows) && ($_.rows <= 90)) { //#16845 - $_.r = $_.rows; //#16845 - } //#16845 - if ($_.r < 3) { //#16846 - $_.r = 3; //#16846 - } //#16846 - if ($_.r > 90) { //#16851 - $k[$j++] = 'bwipp.pdf417insufficientCapacity#16850'; //#16850 - $k[$j++] = "Insufficient capacity in the symbol"; //#16850 - bwipp_raiseerror(); //#16850 - } //#16850 - var _EJ = $_.c; //#16854 - var _EK = $_.r; //#16854 - var _EL = $_.m; //#16854 - var _EM = 8; //#16854 - var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#16854 - if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#16854 - var _ = _EM; //#16854 - _EM = _EN; //#16854 - _EN = _; //#16854 - } //#16854 - $_.maxeclevel = _EN; //#16854 - if ($_.maxeclevel > $_.eclevel) { //#16858 - $_.eclevel = $_.maxeclevel; //#16856 - $_.k = ~~Math.pow(2, $_.eclevel + 1); //#16857 - } //#16857 - $_.n = $f(($_.c * $_.r) - $_.k); //#16861 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#16862 - $put($_.cws, 0, $_.n); //#16863 - $puti($_.cws, 1, $_.datcws); //#16864 - $k[$j++] = $_.cws; //#16865 - $k[$j++] = $_.m + 1; //#16865 - $k[$j++] = Infinity; //#16865 - for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#16865 - $k[$j++] = 900; //#16865 - } //#16865 - var _Ei = $a(); //#16865 - var _Ej = $k[--$j]; //#16865 - $puti($k[--$j], _Ej, _Ei); //#16865 - $k[$j++] = $_.cws; //#16866 - $k[$j++] = $_.n; //#16866 - $k[$j++] = Infinity; //#16866 - for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#16866 - $k[$j++] = 0; //#16866 - } //#16866 - $k[$j++] = 0; //#16866 - var _Eq = $a(); //#16866 - var _Er = $k[--$j]; //#16866 - $puti($k[--$j], _Er, _Eq); //#16866 - $k[$j++] = Infinity; //#16869 - $k[$j++] = 1; //#16869 - for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#16869 - var _Ev = $k[--$j]; //#16869 - $k[$j++] = _Ev; //#16869 - $k[$j++] = (_Ev * 3) % 929; //#16869 - } //#16869 - $_.rsalog = $a(); //#16869 - $_.rslog = $a(929); //#16870 - for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#16871 - $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#16871 - } //#16871 + } //#17021 + $_.addtocws(); //#17021 + } //#17021 + } else { //#17030 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17024 + $_.addtocws(); //#17024 + if ($_.chars == $_.tl) { //#17025 + $_.state = $_.T; //#17025 + $_.submode = $_.A; //#17025 + } //#17025 + if ($_.chars == $_.nl) { //#17026 + $_.state = $_.N; //#17026 + } //#17026 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17027 + $_.state = $_.B; //#17027 + } //#17027 + if ($_.chars == $_.bs) { //#17031 + $_.i = $_.i + 1; //#17029 + $k[$j++] = $get($_.seq, $_.i); //#17030 + $_.encb(); //#17030 + $_.addtocws(); //#17030 + } //#17030 + } //#17030 + $_.i = $_.i + 1; //#17033 + } //#17033 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17035 + } //#17035 + $_.m = $_.datcws.length; //#17039 + if ($_.eclevel == -1) { //#17045 + if ($_.m <= 40) { //#17041 + $_.eclevel = 2; //#17041 + } //#17041 + if (($_.m >= 41) && ($_.m <= 160)) { //#17042 + $_.eclevel = 3; //#17042 + } //#17042 + if (($_.m >= 161) && ($_.m <= 320)) { //#17043 + $_.eclevel = 4; //#17043 + } //#17043 + if ($_.m >= 321) { //#17044 + $_.eclevel = 5; //#17044 + } //#17044 + } //#17044 + $_.maxeclevel = (~~((Math.log((928 - 1) - $_.m)) / Math.log(2))) - 1; //#17048 + if ($_.eclevel > $_.maxeclevel) { //#17049 + $_.eclevel = $_.maxeclevel; //#17049 + } //#17049 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17050 + if ($_.columns == 0) { //#17053 + $_.columns = ~~(Math.round(Math.sqrt(($_.m + $_.k) / 3))); //#17053 + } //#17053 + $k[$j++] = 'c'; //#17054 + if ($_.columns >= 1) { //#17054 + $k[$j++] = $_.columns; //#17054 + } else { //#17054 + $k[$j++] = 1; //#17054 + } //#17054 + var _E8 = $k[--$j]; //#17054 + $_[$k[--$j]] = _E8; //#17054 + $_.r = ~~(Math.ceil((($_.m + $_.k) + 1) / $_.columns)); //#17057 + if (($_.r < $_.rows) && ($_.rows <= 90)) { //#17058 + $_.r = $_.rows; //#17058 + } //#17058 + if ($_.r < 3) { //#17059 + $_.r = 3; //#17059 + } //#17059 + if ($_.r > 90) { //#17064 + $k[$j++] = 'bwipp.pdf417insufficientCapacity#17063'; //#17063 + $k[$j++] = "Insufficient capacity in the symbol"; //#17063 + bwipp_raiseerror(); //#17063 + } //#17063 + var _EJ = $_.c; //#17067 + var _EK = $_.r; //#17067 + var _EL = $_.m; //#17067 + var _EM = 8; //#17067 + var _EN = (~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1; //#17067 + if (((~~((Math.log($f(($f((_EJ * _EK) - 1)) - _EL))) / Math.log(2))) - 1) > 8) { //#17067 + var _ = _EM; //#17067 + _EM = _EN; //#17067 + _EN = _; //#17067 + } //#17067 + $_.maxeclevel = _EN; //#17067 + if ($_.maxeclevel > $_.eclevel) { //#17071 + $_.eclevel = $_.maxeclevel; //#17069 + $_.k = ~~Math.pow(2, $_.eclevel + 1); //#17070 + } //#17070 + $_.n = $f(($_.c * $_.r) - $_.k); //#17074 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#17075 + $put($_.cws, 0, $_.n); //#17076 + $puti($_.cws, 1, $_.datcws); //#17077 + $k[$j++] = $_.cws; //#17078 + $k[$j++] = $_.m + 1; //#17078 + $k[$j++] = Infinity; //#17078 + for (var _Eg = 0, _Eh = $f($f($_.n - $_.m) - 1); _Eg < _Eh; _Eg++) { //#17078 + $k[$j++] = 900; //#17078 + } //#17078 + var _Ei = $a(); //#17078 + var _Ej = $k[--$j]; //#17078 + $puti($k[--$j], _Ej, _Ei); //#17078 + $k[$j++] = $_.cws; //#17079 + $k[$j++] = $_.n; //#17079 + $k[$j++] = Infinity; //#17079 + for (var _Eo = 0, _Ep = $_.k; _Eo < _Ep; _Eo++) { //#17079 + $k[$j++] = 0; //#17079 + } //#17079 + $k[$j++] = 0; //#17079 + var _Eq = $a(); //#17079 + var _Er = $k[--$j]; //#17079 + $puti($k[--$j], _Er, _Eq); //#17079 + if (!bwipp_pdf417.__17086__) { //#17086 + $_ = Object.create($_); //#17086 + $k[$j++] = Infinity; //#17083 + $k[$j++] = 1; //#17083 + for (var _Et = 0, _Eu = 928; _Et < _Eu; _Et++) { //#17083 + var _Ev = $k[--$j]; //#17083 + $k[$j++] = _Ev; //#17083 + $k[$j++] = (_Ev * 3) % 929; //#17083 + } //#17083 + $_.rsalog = $a(); //#17083 + $_.rslog = $a(929); //#17084 + for (var _Ey = 1; _Ey <= 928; _Ey += 1) { //#17085 + $put($_.rslog, $get($_.rsalog, _Ey), _Ey); //#17085 + } //#17085 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17085 + bwipp_pdf417.__17086__ = 1; //#17085 + $_ = Object.getPrototypeOf($_); //#17085 + } //#17085 $_.rsprod = function() { - var _F2 = $k[--$j]; //#16875 - var _F3 = $k[--$j]; //#16875 - $k[$j++] = _F3; //#16879 - $k[$j++] = _F2; //#16879 - if ((_F2 != 0) && (_F3 != 0)) { //#16878 - var _F6 = $get($_.rslog, $k[--$j]); //#16876 - var _FB = $get($_.rsalog, $f(_F6 + $get($_.rslog, $k[--$j])) % 928); //#16876 - $k[$j++] = _FB; //#16876 - } else { //#16878 - $j -= 2; //#16878 - $k[$j++] = 0; //#16878 - } //#16878 - }; //#16878 - $k[$j++] = Infinity; //#16883 - $k[$j++] = 1; //#16883 - for (var _FD = 0, _FE = $_.k; _FD < _FE; _FD++) { //#16883 - $k[$j++] = 0; //#16883 - } //#16883 - $_.coeffs = $a(); //#16883 - for (var _FI = 1, _FH = $_.k; _FI <= _FH; _FI += 1) { //#16892 - $_.i = _FI; //#16885 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#16886 - for (var _FP = $_.i - 1; _FP >= 1; _FP -= 1) { //#16890 - $_.j = _FP; //#16888 - $k[$j++] = $_.coeffs; //#16889 - $k[$j++] = $_.j; //#16889 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#16889 - $k[$j++] = $get($_.coeffs, $_.j); //#16889 - $k[$j++] = $get($_.rsalog, $_.i); //#16889 - $_.rsprod(); //#16889 - var _Fb = $k[--$j]; //#16889 - var _Fc = $k[--$j]; //#16889 - var _Fd = $k[--$j]; //#16889 - $put($k[--$j], _Fd, $f(_Fc + _Fb) % 929); //#16889 - } //#16889 - $k[$j++] = $_.coeffs; //#16891 - $k[$j++] = 0; //#16891 - $k[$j++] = $get($_.coeffs, 0); //#16891 - $k[$j++] = $get($_.rsalog, $_.i); //#16891 - $_.rsprod(); //#16891 - var _Fl = $k[--$j]; //#16891 - var _Fm = $k[--$j]; //#16891 - $put($k[--$j], _Fm, _Fl); //#16891 - } //#16891 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#16893 - for (var _Fs = $_.coeffs.length - 1; _Fs >= 0; _Fs -= 2) { //#16894 - var _Ft = $_.coeffs; //#16894 - $put(_Ft, _Fs, $f(929 - $get(_Ft, _Fs))); //#16894 - } //#16894 - for (var _Fx = 0, _Fw = $f($_.n - 1); _Fx <= _Fw; _Fx += 1) { //#16903 - $_.t = $f($get($_.cws, _Fx) + $get($_.cws, $_.n)) % 929; //#16898 - for (var _G5 = 0, _G4 = $_.k - 1; _G5 <= _G4; _G5 += 1) { //#16902 - $_.j = _G5; //#16900 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#16901 - } //#16901 - } //#16901 - for (var _GM = $_.n, _GL = $f($_.n + $_.k); _GM <= _GL; _GM += 1) { //#16904 - $put($_.cws, _GM, $f(929 - $get($_.cws, _GM)) % 929); //#16904 - } //#16904 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#16907 - var _GU = $get($_.options, 'debugcws') !== undefined; //#16909 - if (_GU) { //#16909 - $k[$j++] = 'bwipp.debugcws#16909'; //#16909 - $k[$j++] = $_.cws; //#16909 - bwipp_raiseerror(); //#16909 - } //#16909 - if (!bwipp_pdf417.__17153__) { //#17153 - $_ = Object.create($_); //#17153 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17152 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17152 - bwipp_pdf417.__17153__ = 1; //#17152 - $_ = Object.getPrototypeOf($_); //#17152 - } //#17152 + var _F3 = $k[--$j]; //#17090 + var _F4 = $k[--$j]; //#17090 + $k[$j++] = _F4; //#17094 + $k[$j++] = _F3; //#17094 + if ((_F3 != 0) && (_F4 != 0)) { //#17093 + var _F7 = $get($_.rslog, $k[--$j]); //#17091 + var _FC = $get($_.rsalog, $f(_F7 + $get($_.rslog, $k[--$j])) % 928); //#17091 + $k[$j++] = _FC; //#17091 + } else { //#17093 + $j -= 2; //#17093 + $k[$j++] = 0; //#17093 + } //#17093 + }; //#17093 + $k[$j++] = Infinity; //#17098 + $k[$j++] = 1; //#17098 + for (var _FE = 0, _FF = $_.k; _FE < _FF; _FE++) { //#17098 + $k[$j++] = 0; //#17098 + } //#17098 + $_.coeffs = $a(); //#17098 + for (var _FJ = 1, _FI = $_.k; _FJ <= _FI; _FJ += 1) { //#17107 + $_.i = _FJ; //#17100 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17101 + for (var _FQ = $_.i - 1; _FQ >= 1; _FQ -= 1) { //#17105 + $_.j = _FQ; //#17103 + $k[$j++] = $_.coeffs; //#17104 + $k[$j++] = $_.j; //#17104 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#17104 + $k[$j++] = $get($_.coeffs, $_.j); //#17104 + $k[$j++] = $get($_.rsalog, $_.i); //#17104 + $_.rsprod(); //#17104 + var _Fc = $k[--$j]; //#17104 + var _Fd = $k[--$j]; //#17104 + var _Fe = $k[--$j]; //#17104 + $put($k[--$j], _Fe, $f(_Fd + _Fc) % 929); //#17104 + } //#17104 + $k[$j++] = $_.coeffs; //#17106 + $k[$j++] = 0; //#17106 + $k[$j++] = $get($_.coeffs, 0); //#17106 + $k[$j++] = $get($_.rsalog, $_.i); //#17106 + $_.rsprod(); //#17106 + var _Fm = $k[--$j]; //#17106 + var _Fn = $k[--$j]; //#17106 + $put($k[--$j], _Fn, _Fm); //#17106 + } //#17106 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17108 + for (var _Ft = $_.coeffs.length - 1; _Ft >= 0; _Ft -= 2) { //#17109 + var _Fu = $_.coeffs; //#17109 + $put(_Fu, _Ft, $f(929 - $get(_Fu, _Ft))); //#17109 + } //#17109 + for (var _Fy = 0, _Fx = $f($_.n - 1); _Fy <= _Fx; _Fy += 1) { //#17118 + $_.t = $f($get($_.cws, _Fy) + $get($_.cws, $_.n)) % 929; //#17113 + for (var _G6 = 0, _G5 = $_.k - 1; _G6 <= _G5; _G6 += 1) { //#17117 + $_.j = _G6; //#17115 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 929))))) % 929); //#17116 + } //#17116 + } //#17116 + for (var _GN = $_.n, _GM = $f($_.n + $_.k); _GN <= _GM; _GN += 1) { //#17119 + $put($_.cws, _GN, $f(929 - $get($_.cws, _GN)) % 929); //#17119 + } //#17119 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17122 + var _GV = $get($_.options, 'debugcws') !== undefined; //#17124 + if (_GV) { //#17124 + $k[$j++] = 'bwipp.debugcws#17124'; //#17124 + $k[$j++] = $_.cws; //#17124 + bwipp_raiseerror(); //#17124 + } //#17124 + if (!bwipp_pdf417.__17368__) { //#17368 + $_ = Object.create($_); //#17368 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#17367 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_pdf417.$ctx[id] = $_[id]); //#17367 + bwipp_pdf417.__17368__ = 1; //#17367 + $_ = Object.getPrototypeOf($_); //#17367 + } //#17367 $_.cwtobits = function() { - var _Gd = $get($_.clusters, $k[--$j]); //#17157 - $_.v = $get(_Gd, $k[--$j]); //#17157 - $k[$j++] = Infinity; //#17158 - for (var _Gg = 0, _Gh = 17; _Gg < _Gh; _Gg++) { //#17158 - $k[$j++] = 0; //#17158 - } //#17158 - var _Gk = $cvrs($s(17), $_.v, 2); //#17158 - for (var _Gl = 0, _Gm = _Gk.length; _Gl < _Gm; _Gl++) { //#17158 - $k[$j++] = $get(_Gk, _Gl) - 48; //#17158 - } //#17158 - var _Go = $a(); //#17158 - $k[$j++] = $geti(_Go, _Go.length - 17, 17); //#17159 - }; //#17159 - if ($_.compact) { //#17166 - $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17164 - } else { //#17166 - $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17166 - } //#17166 - $_.pixs = $a($_.rwid * $_.r); //#17168 - for (var _Gy = 0, _Gx = $_.r - 1; _Gy <= _Gx; _Gy += 1) { //#17198 - $_.i = _Gy; //#17171 - if (($_.i % 3) == 0) { //#17176 - $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17174 - $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17175 - } //#17175 - if (($_.i % 3) == 1) { //#17180 - $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17178 - $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17179 - } //#17179 - if (($_.i % 3) == 2) { //#17184 - $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17182 - $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17183 - } //#17183 - $k[$j++] = $_.pixs; //#17194 - $k[$j++] = $_.rwid * $_.i; //#17194 - $k[$j++] = Infinity; //#17194 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 1; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = 0; //#17188 - $k[$j++] = $_.lcw; //#17188 - $k[$j++] = $_.i % 3; //#17188 - $_.cwtobits(); //#17188 - $forall($k[--$j]); //#17188 - var _HQ = $geti($_.cws, $_.c * $_.i, $_.c); //#17189 - for (var _HR = 0, _HS = _HQ.length; _HR < _HS; _HR++) { //#17189 - $k[$j++] = $get(_HQ, _HR); //#17189 - $k[$j++] = $_.i % 3; //#17189 - $_.cwtobits(); //#17189 - $forall($k[--$j]); //#17189 - } //#17189 - if ($_.compact) { //#17194 - $k[$j++] = 1; //#17191 - } else { //#17194 - $k[$j++] = $_.rcw; //#17193 - $k[$j++] = $_.i % 3; //#17193 - $_.cwtobits(); //#17193 - $forall($k[--$j]); //#17193 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 0; //#17194 - $k[$j++] = 1; //#17194 - } //#17194 - var _Ha = $a(); //#17194 - var _Hb = $k[--$j]; //#17196 - $puti($k[--$j], _Hb, _Ha); //#17196 - } //#17196 - var _Hk = new Map([ + var _Ge = $get($_.clusters, $k[--$j]); //#17372 + $_.v = $get(_Ge, $k[--$j]); //#17372 + $k[$j++] = Infinity; //#17373 + for (var _Gh = 0, _Gi = 17; _Gh < _Gi; _Gh++) { //#17373 + $k[$j++] = 0; //#17373 + } //#17373 + var _Gl = $cvrs($s(17), $_.v, 2); //#17373 + for (var _Gm = 0, _Gn = _Gl.length; _Gm < _Gn; _Gm++) { //#17373 + $k[$j++] = $get(_Gl, _Gm) - 48; //#17373 + } //#17373 + var _Gp = $a(); //#17373 + $k[$j++] = $geti(_Gp, _Gp.length - 17, 17); //#17374 + }; //#17374 + if ($_.compact) { //#17381 + $_.rwid = $f(($f(($f((17 * $_.c) + 17)) + 17)) + 1); //#17379 + } else { //#17381 + $_.rwid = $f(($f(($f(($f((17 * $_.c) + 17)) + 17)) + 17)) + 18); //#17381 + } //#17381 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#17383 + for (var _H0 = 0, _Gz = $_.r - 1; _H0 <= _Gz; _H0 += 1) { //#17416 + $_.i = _H0; //#17386 + if (($_.i % 3) == 0) { //#17391 + $_.lcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17389 + $_.rcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17390 + } //#17390 + if (($_.i % 3) == 1) { //#17395 + $_.lcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17393 + $_.rcw = ((~~($_.i / 3)) * 30) + (~~(($_.r - 1) / 3)); //#17394 + } //#17394 + if (($_.i % 3) == 2) { //#17399 + $_.lcw = $f(($f(((~~($_.i / 3)) * 30) + $_.c)) - 1); //#17397 + $_.rcw = (((~~($_.i / 3)) * 30) + ($_.eclevel * 3)) + (($_.r - 1) % 3); //#17398 + } //#17398 + $k[$j++] = Infinity; //#17401 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 1; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = 0; //#17403 + $k[$j++] = $_.lcw; //#17403 + $k[$j++] = $_.i % 3; //#17403 + $_.cwtobits(); //#17403 + $aload($k[--$j]); //#17403 + var _HP = $geti($_.cws, $_.c * $_.i, $_.c); //#17404 + for (var _HQ = 0, _HR = _HP.length; _HQ < _HR; _HQ++) { //#17404 + $k[$j++] = $get(_HP, _HQ); //#17404 + $k[$j++] = $_.i % 3; //#17404 + $_.cwtobits(); //#17404 + $aload($k[--$j]); //#17404 + } //#17404 + if ($_.compact) { //#17409 + $k[$j++] = 1; //#17406 + } else { //#17409 + $k[$j++] = $_.rcw; //#17408 + $k[$j++] = $_.i % 3; //#17408 + $_.cwtobits(); //#17408 + $aload($k[--$j]); //#17408 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 0; //#17409 + $k[$j++] = 1; //#17409 + } //#17409 + var _HZ = $a(); //#17409 + $k[$j++] = _HZ; //#17414 + for (var _Hc = 0, _Hb = $_.rowmult - 1; _Hc <= _Hb; _Hc += 1) { //#17414 + var _Hh = $k[--$j]; //#17413 + $puti($_.pixs, (_Hc + ($_.i * $_.rowmult)) * $_.rwid, _Hh); //#17413 + $k[$j++] = _Hh; //#17413 + } //#17413 + $j--; //#17415 + } //#17415 + var _Hq = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 2], + ["borderright", 2], + ["bordertop", 2], + ["borderbottom", 2], ["opt", $_.options] - ]); //#17208 - $k[$j++] = _Hk; //#17211 - if (!$_.dontdraw) { //#17211 - bwipp_renmatrix(); //#17211 - } //#17211 - $_ = Object.getPrototypeOf($_); //#17213 - $_ = Object.getPrototypeOf($_); //#17215 -} - + ]); //#17430 + $k[$j++] = _Hq; //#17433 + if (!$_.dontdraw) { //#17433 + bwipp_renmatrix(); //#17433 + } //#17433 + $_ = Object.getPrototypeOf($_); //#17435 + $_ = Object.getPrototypeOf($_); //#17437 +} //bwipp_pdf417 function bwipp_pdf417compact() { - $_ = Object.create($_); //#17244 - $_.dontdraw = false; //#17247 - $k[$j++] = $_; //#17249 - bwipp_processoptions(); //#17249 - $_.options = $k[--$j]; //#17249 - $_.barcode = $k[--$j]; //#17250 - $put($_.options, "dontdraw", true); //#17253 - $put($_.options, "compact", true); //#17254 - $k[$j++] = 'args'; //#17256 - $k[$j++] = $_.barcode; //#17256 - $k[$j++] = $_.options; //#17256 - bwipp_pdf417(); //#17256 - var _6 = $k[--$j]; //#17256 - $_[$k[--$j]] = _6; //#17256 - $put($_.args, "opt", $_.options); //#17258 - $k[$j++] = $_.args; //#17261 - if (!$_.dontdraw) { //#17261 - bwipp_renmatrix(); //#17261 - } //#17261 - $_ = Object.getPrototypeOf($_); //#17263 -} - + $_ = Object.create($_); //#17466 + $_.dontdraw = false; //#17469 + $k[$j++] = $_; //#17471 + bwipp_processoptions(); //#17471 + $_.options = $k[--$j]; //#17471 + $_.barcode = $k[--$j]; //#17472 + $put($_.options, "dontdraw", true); //#17475 + $put($_.options, "compact", true); //#17476 + $k[$j++] = 'args'; //#17478 + $k[$j++] = $_.barcode; //#17478 + $k[$j++] = $_.options; //#17478 + bwipp_pdf417(); //#17478 + var _6 = $k[--$j]; //#17478 + $_[$k[--$j]] = _6; //#17478 + $put($_.args, "opt", $_.options); //#17480 + $k[$j++] = $_.args; //#17483 + if (!$_.dontdraw) { //#17483 + bwipp_renmatrix(); //#17483 + } //#17483 + $_ = Object.getPrototypeOf($_); //#17485 +} //bwipp_pdf417compact function bwipp_micropdf417() { - $_ = Object.create($_); //#17294 - $_.dontdraw = false; //#17297 - $_.version = "unset"; //#17298 - $_.columns = 0; //#17299 - $_.rows = 0; //#17300 - $_.rowmult = 2; //#17301 - $_.cca = false; //#17302 - $_.ccb = false; //#17303 - $_.raw = false; //#17304 - $_.parse = false; //#17305 - $_.parsefnc = false; //#17306 - $k[$j++] = $_; //#17308 - bwipp_processoptions(); //#17308 - $_.options = $k[--$j]; //#17308 - $_.barcode = $k[--$j]; //#17309 - if ($eq($_.barcode, "")) { //#17313 - $k[$j++] = 'bwipp.micropdf417emptyData#17312'; //#17312 - $k[$j++] = "The data must not be empty"; //#17312 - bwipp_raiseerror(); //#17312 - } //#17312 - if ($_.rowmult <= 0) { //#17317 - $k[$j++] = 'bwipp.micropdf417badRowMult#17316'; //#17316 - $k[$j++] = "The row multiplier must be greater than zero"; //#17316 - bwipp_raiseerror(); //#17316 - } //#17316 - if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17321 - $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17320'; //#17320 - $k[$j++] = "Cannot combine cca, ccb and raw"; //#17320 - bwipp_raiseerror(); //#17320 - } //#17320 - if ($ne($_.version, "unset")) { //#17342 - $search($_.version, "x"); //#17325 - if ($k[--$j]) { //#17340 - var _D = $k[--$j]; //#17326 - var _E = $k[--$j]; //#17326 - $k[$j++] = _D; //#17326 - $k[$j++] = _E; //#17326 - $j--; //#17326 - var _F = $k[--$j]; //#17327 - var _G = $k[--$j]; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $k[$j++] = _G; //#17327 - $k[$j++] = _F; //#17327 - $astore($a(2)); //#17327 - $forall($k[--$j], function() { //#17336 - var _J = $k[--$j]; //#17329 - $k[$j++] = _J; //#17329 - $k[$j++] = true; //#17329 - if (_J.length == 0) { //#17329 - $j--; //#17329 - $k[$j++] = false; //#17329 - } //#17329 - var _K = $k[--$j]; //#17330 - var _L = $k[--$j]; //#17330 - $k[$j++] = _K; //#17332 - $forall(_L, function() { //#17332 - var _M = $k[--$j]; //#17331 - if ((_M < 48) || (_M > 57)) { //#17331 - $j--; //#17331 - $k[$j++] = false; //#17331 - } //#17331 - }); //#17331 - if ($nt($k[--$j])) { //#17335 - $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17334'; //#17334 - $k[$j++] = "version must be formatted as RxC"; //#17334 - bwipp_raiseerror(); //#17334 - } //#17334 - }); //#17334 - $_.rows = $cvi($k[--$j]); //#17337 - $_.columns = $cvi($k[--$j]); //#17338 - } else { //#17340 - $j--; //#17340 - $k[$j++] = 'bwipp.micropdf417badVersionFormat#17340'; //#17340 - $k[$j++] = "version must be formatted as RxC"; //#17340 - bwipp_raiseerror(); //#17340 - } //#17340 - } //#17340 - bwipp_loadctx(bwipp_micropdf417) //#17344 - if (!bwipp_micropdf417.__17431__) { //#17431 - $_ = Object.create($_); //#17431 - $_.T = 0; //#17348 - $_.N = 1; //#17348 - $_.B = 2; //#17348 - $_.A = 0; //#17349 - $_.L = 1; //#17349 - $_.M = 2; //#17349 - $_.P = 3; //#17349 - $_.tl = -1; //#17352 - $_.nl = -2; //#17352 - $_.bl = -3; //#17352 - $_.bl6 = -4; //#17352 - $_.bs = -5; //#17352 - $_.al = -6; //#17355 - $_.ll = -7; //#17355 - $_.ml = -8; //#17355 - $_.pl = -9; //#17355 - $_.as = -10; //#17355 - $_.ps = -11; //#17355 - $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17390 - $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17393 - $_.alltext = new Map; //#17394 - for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17404 - $_.i = _19; //#17396 - $_.encs = $get($_.charmaps, $_.i); //#17397 - for (var _1D = 0; _1D <= 3; _1D += 1) { //#17403 - $_.j = _1D; //#17399 - var _1G = $get($_.encs, $_.j); //#17400 - $k[$j++] = _1G; //#17400 - if ($eq($type(_1G), 'stringtype')) { //#17400 - var _1J = $get($k[--$j], 0); //#17400 - $k[$j++] = _1J; //#17400 - } //#17400 - var _1K = $k[--$j]; //#17401 - $put($get($_.charvals, $_.j), _1K, $_.i); //#17401 - $put($_.alltext, _1K, -1); //#17402 - } //#17402 - } //#17402 - $_.e = 10000; //#17406 - $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17414 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17422 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17430 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17430 - bwipp_micropdf417.__17431__ = 1; //#17430 - $_ = Object.getPrototypeOf($_); //#17430 - } //#17430 - if ($_.raw || $_.cca) { //#17452 - $_.datcws = $a($_.barcode.length); //#17435 - $_.i = 0; //#17436 - $_.j = 0; //#17436 - for (;;) { //#17447 - if ($_.i >= ($_.barcode.length - 3)) { //#17438 - break; //#17438 - } //#17438 - if ($get($_.barcode, $_.i) != 94) { //#17439 - break; //#17439 - } //#17439 - var _2a = $geti($_.barcode, $_.i + 1, 3); //#17440 - $k[$j++] = _2a; //#17442 - $k[$j++] = false; //#17442 - for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17442 - var _2d = $get(_2a, _2b); //#17442 - if ((_2d < 48) || (_2d > 57)) { //#17441 - $j--; //#17441 - $k[$j++] = true; //#17441 - } //#17441 - } //#17441 - if ($k[--$j]) { //#17442 - $j--; //#17442 - break; //#17442 - } //#17442 - $_.cw = $cvi($k[--$j]); //#17443 - $put($_.datcws, $_.j, $_.cw); //#17444 - $_.i = $_.i + 4; //#17445 - $_.j = $_.j + 1; //#17446 - } //#17446 - if ($_.i != $_.barcode.length) { //#17450 - $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17449'; //#17449 - $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17449 - bwipp_raiseerror(); //#17449 - } //#17449 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17451 - } //#17451 + $_ = Object.create($_); //#17516 + $_.dontdraw = false; //#17519 + $_.version = "unset"; //#17520 + $_.columns = 0; //#17521 + $_.rows = 0; //#17522 + $_.rowmult = 2; //#17523 + $_.cca = false; //#17524 + $_.ccb = false; //#17525 + $_.raw = false; //#17526 + $_.parse = false; //#17527 + $_.parsefnc = false; //#17528 + $k[$j++] = $_; //#17530 + bwipp_processoptions(); //#17530 + $_.options = $k[--$j]; //#17530 + $_.barcode = $k[--$j]; //#17531 + if ($eq($_.barcode, "")) { //#17535 + $k[$j++] = 'bwipp.micropdf417emptyData#17534'; //#17534 + $k[$j++] = "The data must not be empty"; //#17534 + bwipp_raiseerror(); //#17534 + } //#17534 + if ($_.rowmult <= 0) { //#17539 + $k[$j++] = 'bwipp.micropdf417badRowMult#17538'; //#17538 + $k[$j++] = "The row multiplier must be greater than zero"; //#17538 + bwipp_raiseerror(); //#17538 + } //#17538 + if (($_.cca && $_.ccb) || (($_.cca && $_.raw) || ($_.ccb && $_.raw))) { //#17543 + $k[$j++] = 'bwipp.micropdf417ccaAndCcb#17542'; //#17542 + $k[$j++] = "Cannot combine cca, ccb and raw"; //#17542 + bwipp_raiseerror(); //#17542 + } //#17542 + if ($ne($_.version, "unset")) { //#17564 + $search($_.version, "x"); //#17547 + if ($k[--$j]) { //#17562 + var _D = $k[--$j]; //#17548 + var _E = $k[--$j]; //#17548 + $k[$j++] = _D; //#17548 + $k[$j++] = _E; //#17548 + $j--; //#17548 + var _F = $k[--$j]; //#17549 + var _G = $k[--$j]; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $k[$j++] = _G; //#17549 + $k[$j++] = _F; //#17549 + $astore($a(2)); //#17549 + $forall($k[--$j], function() { //#17558 + var _J = $k[--$j]; //#17551 + $k[$j++] = _J; //#17551 + $k[$j++] = true; //#17551 + if (_J.length == 0) { //#17551 + $j--; //#17551 + $k[$j++] = false; //#17551 + } //#17551 + var _K = $k[--$j]; //#17552 + var _L = $k[--$j]; //#17552 + $k[$j++] = _K; //#17554 + $forall(_L, function() { //#17554 + var _M = $k[--$j]; //#17553 + if ((_M < 48) || (_M > 57)) { //#17553 + $j--; //#17553 + $k[$j++] = false; //#17553 + } //#17553 + }); //#17553 + if ($nt($k[--$j])) { //#17557 + $k[$j++] = 'bwipp.micropdf417BadVersionBadRowOrColumn#17556'; //#17556 + $k[$j++] = "version must be formatted as RxC"; //#17556 + bwipp_raiseerror(); //#17556 + } //#17556 + }); //#17556 + $_.rows = $cvi($k[--$j]); //#17559 + $_.columns = $cvi($k[--$j]); //#17560 + } else { //#17562 + $j--; //#17562 + $k[$j++] = 'bwipp.micropdf417badVersionFormat#17562'; //#17562 + $k[$j++] = "version must be formatted as RxC"; //#17562 + bwipp_raiseerror(); //#17562 + } //#17562 + } //#17562 + bwipp_loadctx(bwipp_micropdf417) //#17566 + if (!bwipp_micropdf417.__17656__) { //#17656 + $_ = Object.create($_); //#17656 + $_.T = 0; //#17570 + $_.N = 1; //#17570 + $_.B = 2; //#17570 + $_.A = 0; //#17571 + $_.L = 1; //#17571 + $_.M = 2; //#17571 + $_.P = 3; //#17571 + $_.tl = -1; //#17574 + $_.nl = -2; //#17574 + $_.bl = -3; //#17574 + $_.bl6 = -4; //#17574 + $_.bs = -5; //#17574 + $_.al = -6; //#17577 + $_.ll = -7; //#17577 + $_.ml = -8; //#17577 + $_.pl = -9; //#17577 + $_.as = -10; //#17577 + $_.ps = -11; //#17577 + $_.m05 = -12; //#17580 + $_.m06 = -13; //#17580 + $_.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $_.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$_.ll, $_.as, $_.ll, "}"]), $a([$_.ml, $_.ml, $_.al, "'"]), $a([$_.ps, $_.ps, $_.ps, $_.al])]); //#17615 + $_.charvals = $a([new Map, new Map, new Map, new Map]); //#17618 + $_.alltext = new Map; //#17619 + for (var _19 = 0, _18 = $_.charmaps.length - 1; _19 <= _18; _19 += 1) { //#17629 + $_.i = _19; //#17621 + $_.encs = $get($_.charmaps, $_.i); //#17622 + for (var _1D = 0; _1D <= 3; _1D += 1) { //#17628 + $_.j = _1D; //#17624 + var _1G = $get($_.encs, $_.j); //#17625 + $k[$j++] = _1G; //#17625 + if ($eq($type(_1G), 'stringtype')) { //#17625 + var _1J = $get($k[--$j], 0); //#17625 + $k[$j++] = _1J; //#17625 + } //#17625 + var _1K = $k[--$j]; //#17626 + $put($get($_.charvals, $_.j), _1K, $_.i); //#17626 + $put($_.alltext, _1K, -1); //#17627 + } //#17627 + } //#17627 + $_.e = 10000; //#17631 + $_.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#17639 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.ml, $_.al]), $a([]), $a([$_.ml]), $a([$_.ml, $_.pl])]), $a([$a([$_.al]), $a([$_.ll]), $a([]), $a([$_.pl])]), $a([$a([$_.al]), $a([$_.al, $_.ll]), $a([$_.al, $_.ml]), $a([])])]); //#17647 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 1]), $a([1, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, 1]), $a([$_.e, $_.e, $_.e, $_.e])]); //#17655 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17655 + bwipp_micropdf417.__17656__ = 1; //#17655 + $_ = Object.getPrototypeOf($_); //#17655 + } //#17655 + if ($_.raw || $_.cca) { //#17677 + $_.datcws = $a($_.barcode.length); //#17660 + $_.i = 0; //#17661 + $_.j = 0; //#17661 + for (;;) { //#17672 + if ($_.i >= ($_.barcode.length - 3)) { //#17663 + break; //#17663 + } //#17663 + if ($get($_.barcode, $_.i) != 94) { //#17664 + break; //#17664 + } //#17664 + var _2a = $geti($_.barcode, $_.i + 1, 3); //#17665 + $k[$j++] = _2a; //#17667 + $k[$j++] = false; //#17667 + for (var _2b = 0, _2c = _2a.length; _2b < _2c; _2b++) { //#17667 + var _2d = $get(_2a, _2b); //#17667 + if ((_2d < 48) || (_2d > 57)) { //#17666 + $j--; //#17666 + $k[$j++] = true; //#17666 + } //#17666 + } //#17666 + if ($k[--$j]) { //#17667 + $j--; //#17667 + break; //#17667 + } //#17667 + $_.cw = $cvi($k[--$j]); //#17668 + $put($_.datcws, $_.j, $_.cw); //#17669 + $_.i = $_.i + 4; //#17670 + $_.j = $_.j + 1; //#17671 + } //#17671 + if ($_.i != $_.barcode.length) { //#17675 + $k[$j++] = 'bwipp.micropdf417badCcaRawFormat#17674'; //#17674 + $k[$j++] = "cca and raw data must be formatted as ^NNN"; //#17674 + bwipp_raiseerror(); //#17674 + } //#17674 + $_.datcws = $geti($_.datcws, 0, $_.j); //#17676 + } //#17676 $_.encb = function() { - $_.in = $k[--$j]; //#17455 - $_.inlen = $_.in.length; //#17456 - $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17457 - for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17480 - $_.k = _2x; //#17459 - $k[$j++] = Infinity; //#17460 - $aload($geti($_.in, $_.k * 6, 3)); //#17460 - $_.msbs = $a(); //#17460 - $k[$j++] = Infinity; //#17463 - $aload($_.msbs); //#17462 - var _33 = $k[--$j]; //#17462 - var _34 = $k[--$j]; //#17462 - var _35 = $k[--$j]; //#17462 - $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17463 - for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17463 - var _38 = $k[--$j]; //#17463 - $k[$j++] = _38 % 900; //#17463 - $k[$j++] = ~~(_38 / 900); //#17463 - } //#17463 - $_.mscs = $a(); //#17463 - $k[$j++] = Infinity; //#17465 - $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17465 - $_.lsbs = $a(); //#17465 - $k[$j++] = Infinity; //#17468 - $aload($_.lsbs); //#17467 - var _3F = $k[--$j]; //#17467 - var _3G = $k[--$j]; //#17467 - var _3H = $k[--$j]; //#17467 - $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17468 - for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17468 - var _3K = $k[--$j]; //#17468 - $k[$j++] = _3K % 900; //#17468 - $k[$j++] = ~~(_3K / 900); //#17468 - } //#17468 - $_.lscs = $a(); //#17468 - var _3N = $get($_.lscs, 0); //#17470 - var _3P = $get($_.mscs, 0); //#17470 - $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17471 - var _3T = $get($_.lscs, 1); //#17472 - var _3V = $get($_.mscs, 0); //#17472 - var _3X = $get($_.mscs, 1); //#17472 - $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17473 - var _3b = $get($_.lscs, 2); //#17474 - var _3d = $get($_.mscs, 0); //#17474 - var _3f = $get($_.mscs, 1); //#17474 - var _3h = $get($_.mscs, 2); //#17474 - $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17475 - var _3l = $get($_.lscs, 3); //#17476 - var _3n = $get($_.mscs, 1); //#17476 - var _3p = $get($_.mscs, 2); //#17476 - $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17477 - $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17479 - } //#17479 - $_.rem = $_.inlen % 6; //#17481 - if ($_.rem != 0) { //#17486 - $k[$j++] = $_.out; //#17484 - $k[$j++] = $_.out.length - $_.rem; //#17484 - $k[$j++] = Infinity; //#17484 - $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17484 - var _46 = $a(); //#17484 - var _47 = $k[--$j]; //#17485 - $puti($k[--$j], _47, _46); //#17485 - } //#17485 - $k[$j++] = $_.out; //#17487 - }; //#17487 - if ($_.ccb) { //#17496 - $_.barlen = $_.barcode.length; //#17491 - $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17492 - $put($_.datcws, 0, 920); //#17493 - var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17494 - $put($_.datcws, 1, _4I); //#17494 - $k[$j++] = $_.datcws; //#17495 - $k[$j++] = 2; //#17495 - $k[$j++] = Infinity; //#17495 - $forall($_.barcode); //#17495 - var _4L = $a(); //#17495 - $k[$j++] = _4L; //#17495 - $_.encb(); //#17495 - var _4M = $k[--$j]; //#17495 - var _4N = $k[--$j]; //#17495 - $puti($k[--$j], _4N, _4M); //#17495 - } //#17495 - if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#17852 + $_.in = $k[--$j]; //#17680 + $_.inlen = $_.in.length; //#17681 + $_.out = $a(((~~($_.inlen / 6)) * 5) + ($_.inlen % 6)); //#17682 + for (var _2x = 0, _2w = (~~($_.inlen / 6)) - 1; _2x <= _2w; _2x += 1) { //#17705 + $_.k = _2x; //#17684 + $k[$j++] = Infinity; //#17685 + $aload($geti($_.in, $_.k * 6, 3)); //#17685 + $_.msbs = $a(); //#17685 + $k[$j++] = Infinity; //#17686 + $aload($_.msbs); //#17687 + var _33 = $k[--$j]; //#17687 + var _34 = $k[--$j]; //#17687 + var _35 = $k[--$j]; //#17687 + $k[$j++] = $f(($f(_33 + (_34 * 256))) + (_35 * 65536)); //#17688 + for (var _36 = 0, _37 = 3; _36 < _37; _36++) { //#17688 + var _38 = $k[--$j]; //#17688 + $k[$j++] = _38 % 900; //#17688 + $k[$j++] = ~~(_38 / 900); //#17688 + } //#17688 + $_.mscs = $a(); //#17688 + $k[$j++] = Infinity; //#17690 + $aload($geti($_.in, ($_.k * 6) + 3, 3)); //#17690 + $_.lsbs = $a(); //#17690 + $k[$j++] = Infinity; //#17691 + $aload($_.lsbs); //#17692 + var _3F = $k[--$j]; //#17692 + var _3G = $k[--$j]; //#17692 + var _3H = $k[--$j]; //#17692 + $k[$j++] = $f(($f(_3F + (_3G * 256))) + (_3H * 65536)); //#17693 + for (var _3I = 0, _3J = 3; _3I < _3J; _3I++) { //#17693 + var _3K = $k[--$j]; //#17693 + $k[$j++] = _3K % 900; //#17693 + $k[$j++] = ~~(_3K / 900); //#17693 + } //#17693 + $_.lscs = $a(); //#17693 + var _3N = $get($_.lscs, 0); //#17695 + var _3P = $get($_.mscs, 0); //#17695 + $put($_.out, ($_.k * 5) + 4, ($f(_3N + (_3P * 316))) % 900); //#17696 + var _3T = $get($_.lscs, 1); //#17697 + var _3V = $get($_.mscs, 0); //#17697 + var _3X = $get($_.mscs, 1); //#17697 + $put($_.out, ($_.k * 5) + 3, ($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) % 900); //#17698 + var _3b = $get($_.lscs, 2); //#17699 + var _3d = $get($_.mscs, 0); //#17699 + var _3f = $get($_.mscs, 1); //#17699 + var _3h = $get($_.mscs, 2); //#17699 + $put($_.out, ($_.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) % 900); //#17700 + var _3l = $get($_.lscs, 3); //#17701 + var _3n = $get($_.mscs, 1); //#17701 + var _3p = $get($_.mscs, 2); //#17701 + $put($_.out, ($_.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) % 900); //#17702 + $put($_.out, $_.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_3N + (_3P * 316))) / 900)) + _3T)) + (_3V * 641))) + (_3X * 316))) / 900)) + _3b)) + (_3d * 20))) + (_3f * 641))) + (_3h * 316))) / 900)) + _3l)) + (_3n * 20))) + (_3p * 641))) / 900)) + ($get($_.mscs, 2) * 20))) % 900); //#17704 + } //#17704 + $_.rem = $_.inlen % 6; //#17706 + if ($_.rem != 0) { //#17711 + $k[$j++] = $_.out; //#17709 + $k[$j++] = $_.out.length - $_.rem; //#17709 + $k[$j++] = Infinity; //#17709 + $aload($geti($_.in, $_.inlen - $_.rem, $_.rem)); //#17709 + var _46 = $a(); //#17709 + var _47 = $k[--$j]; //#17710 + $puti($k[--$j], _47, _46); //#17710 + } //#17710 + $k[$j++] = $_.out; //#17712 + }; //#17712 + if ($_.ccb) { //#17721 + $_.barlen = $_.barcode.length; //#17716 + $_.datcws = $a((((~~($_.barlen / 6)) * 5) + ($_.barlen % 6)) + 2); //#17717 + $put($_.datcws, 0, 920); //#17718 + var _4I = (($_.barlen % 6) == 0) ? 924 : 901; //#17719 + $put($_.datcws, 1, _4I); //#17719 + $k[$j++] = $_.datcws; //#17720 + $k[$j++] = 2; //#17720 + $k[$j++] = Infinity; //#17720 + $forall($_.barcode); //#17720 + var _4L = $a(); //#17720 + $k[$j++] = _4L; //#17720 + $_.encb(); //#17720 + var _4M = $k[--$j]; //#17720 + var _4N = $k[--$j]; //#17720 + $puti($k[--$j], _4N, _4M); //#17720 + } //#17720 + if (((!$_.raw) && (!$_.cca)) && (!$_.ccb)) { //#18122 var _4U = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#17504 - $_.fncvals = _4U; //#17506 - $k[$j++] = 'msg'; //#17507 - $k[$j++] = $_.barcode; //#17507 - $k[$j++] = $_.fncvals; //#17507 - bwipp_parseinput(); //#17507 - var _4X = $k[--$j]; //#17507 - $_[$k[--$j]] = _4X; //#17507 - $_.msglen = $_.msg.length; //#17508 - $k[$j++] = Infinity; //#17511 - for (var _4b = 0, _4c = $_.msglen; _4b < _4c; _4b++) { //#17511 - $k[$j++] = 0; //#17511 - } //#17511 - $k[$j++] = 0; //#17511 - $_.numdigits = $a(); //#17511 - $k[$j++] = Infinity; //#17512 - for (var _4f = 0, _4g = $_.msglen; _4f < _4g; _4f++) { //#17512 - $k[$j++] = 0; //#17512 - } //#17512 - $k[$j++] = 0; //#17512 - $_.numtext = $a(); //#17512 - $k[$j++] = Infinity; //#17513 - for (var _4j = 0, _4k = $_.msglen; _4j < _4k; _4j++) { //#17513 - $k[$j++] = 0; //#17513 - } //#17513 - $k[$j++] = 0; //#17513 - $_.numbytes = $a(); //#17513 - $k[$j++] = Infinity; //#17514 - for (var _4n = 0, _4o = $_.msglen; _4n < _4o; _4n++) { //#17514 - $k[$j++] = 0; //#17514 - } //#17514 - $_.iseci = $a(); //#17514 - for (var _4r = $_.msglen - 1; _4r >= 0; _4r -= 1) { //#17527 - $_.i = _4r; //#17516 - var _4u = $get($_.msg, $_.i); //#17517 - if ((_4u >= 48) && (_4u <= 57)) { //#17519 - $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17518 - } //#17518 - var _54 = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17520 - if (_54 && ($get($_.numdigits, $_.i) < 13)) { //#17522 - $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17521 - } //#17521 - if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17525 - $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17524 - } //#17524 - $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17526 - } //#17526 - $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17528 - $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17529 - $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17530 - $_.seq = $a([]); //#17532 - $_.seqlen = 0; //#17532 - $_.state = $_.B; //#17532 - $_.p = 0; //#17532 - for (;;) { //#17586 - if ($_.p == $_.msglen) { //#17533 - break; //#17533 - } //#17533 - if ($get($_.iseci, $_.p)) { //#17584 - $_.eci = $get($_.msg, $_.p); //#17535 - $k[$j++] = Infinity; //#17538 - $aload($_.seq); //#17537 - $k[$j++] = $a([$_.eci]); //#17538 - $_.seq = $a(); //#17538 - $_.p = $_.p + 1; //#17540 - $k[$j++] = 'seqlen'; //#17541 - $k[$j++] = $_.seqlen; //#17541 - if ($_.eci <= -1810900) { //#17541 - $k[$j++] = 2; //#17541 - } else { //#17541 - var _5x = ($_.eci <= -1000900) ? 3 : 2; //#17541 - $k[$j++] = _5x; //#17541 - } //#17541 - var _5y = $k[--$j]; //#17541 - var _5z = $k[--$j]; //#17541 - $_[$k[--$j]] = $f(_5z + _5y); //#17541 - } else { //#17584 - $_.n = $get($_.numdigits, $_.p); //#17543 - if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17584 - $k[$j++] = Infinity; //#17548 - $aload($_.seq); //#17546 - $k[$j++] = $_.nl; //#17548 - $k[$j++] = Infinity; //#17548 - $aload($geti($_.msg, $_.p, $_.n)); //#17548 - var _6E = $a(); //#17548 - $k[$j++] = _6E; //#17548 - $_.seq = $a(); //#17548 - $_.state = $_.N; //#17550 - $_.p = $f($_.p + $_.n); //#17551 - $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17552 - } else { //#17584 - $_.t = $get($_.numtext, $_.p); //#17554 - if ($_.t >= 5) { //#17584 - $k[$j++] = Infinity; //#17561 - $aload($_.seq); //#17557 - if ($_.state != $_.T) { //#17560 - $k[$j++] = $_.tl; //#17559 - } //#17559 - $k[$j++] = Infinity; //#17561 - $aload($geti($_.msg, $_.p, $_.t)); //#17561 - var _6X = $a(); //#17561 - $k[$j++] = _6X; //#17561 - $_.seq = $a(); //#17561 - $_.state = $_.T; //#17563 - $_.p = $f($_.p + $_.t); //#17564 - $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17565 - } else { //#17584 - $_.b = $get($_.numbytes, $_.p); //#17567 - if (($_.b == 1) && ($_.state == $_.T)) { //#17584 - $k[$j++] = Infinity; //#17572 - $aload($_.seq); //#17570 - $k[$j++] = $_.bs; //#17572 - $k[$j++] = $a([$get($_.msg, $_.p)]); //#17572 - $_.seq = $a(); //#17572 - $_.p = $f($_.p + $_.b); //#17574 - $_.seqlen = $f($_.seqlen + 2); //#17575 - } else { //#17584 - $k[$j++] = Infinity; //#17580 - $aload($_.seq); //#17578 - var _6w = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17579 - $k[$j++] = _6w; //#17580 - $k[$j++] = Infinity; //#17580 - $aload($geti($_.msg, $_.p, $_.b)); //#17580 - var _71 = $a(); //#17580 - $k[$j++] = _71; //#17580 - $_.seq = $a(); //#17580 - $_.state = $_.B; //#17582 - $_.p = $f($_.p + $_.b); //#17583 - $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - } //#17584 - $k[$j++] = Infinity; //#17589 - $k[$j++] = $_.tl; //#17589 - $k[$j++] = 900; //#17589 - $k[$j++] = $_.bl; //#17589 - $k[$j++] = 901; //#17589 - $k[$j++] = $_.bl6; //#17589 - $k[$j++] = 924; //#17589 - $k[$j++] = $_.nl; //#17589 - $k[$j++] = 902; //#17589 - $k[$j++] = $_.bs; //#17589 - $k[$j++] = 913; //#17589 - $_.latchcws = $d(); //#17590 + ]); //#17732 + $_.fncvals = _4U; //#17733 + $k[$j++] = 'msg'; //#17734 + $k[$j++] = $_.barcode; //#17734 + $k[$j++] = $_.fncvals; //#17734 + bwipp_parseinput(); //#17734 + var _4X = $k[--$j]; //#17734 + $_[$k[--$j]] = _4X; //#17734 + $_.msglen = $_.msg.length; //#17735 + if ($_.msglen >= 9) { //#17753 + $aload($geti($_.msg, 0, 7)); //#17739 + var _4d = $k[--$j]; //#17740 + var _4e = $k[--$j]; //#17740 + $k[$j++] = _4d == 29; //#17740 + $k[$j++] = _4e; //#17740 + $j--; //#17740 + var _4f = $k[--$j]; //#17740 + var _4g = $k[--$j]; //#17740 + var _4h = $k[--$j]; //#17740 + var _4i = $k[--$j]; //#17741 + var _4j = $k[--$j]; //#17741 + var _4k = $k[--$j]; //#17741 + if (((((_4f && (_4g == 48)) && (_4h == 30)) && (_4i == 62)) && (_4j == 41)) && (_4k == 91)) { //#17752 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#17742 + var _4o = $k[--$j]; //#17743 + var _4p = $k[--$j]; //#17743 + if ((_4o == 4) && (_4p == 30)) { //#17751 + if ($get($_.msg, 5) == 53) { //#17748 + $k[$j++] = Infinity; //#17745 + $k[$j++] = $_.m05; //#17745 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17745 + $_.msg = $a(); //#17745 + } else { //#17748 + if ($get($_.msg, 5) == 54) { //#17749 + $k[$j++] = Infinity; //#17748 + $k[$j++] = $_.m06; //#17748 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#17748 + $_.msg = $a(); //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + } //#17748 + $_.msglen = $_.msg.length; //#17754 + $k[$j++] = Infinity; //#17757 + for (var _56 = 0, _57 = $_.msglen; _56 < _57; _56++) { //#17757 + $k[$j++] = 0; //#17757 + } //#17757 + $k[$j++] = 0; //#17757 + $_.numdigits = $a(); //#17757 + $k[$j++] = Infinity; //#17758 + for (var _5A = 0, _5B = $_.msglen; _5A < _5B; _5A++) { //#17758 + $k[$j++] = 0; //#17758 + } //#17758 + $k[$j++] = 0; //#17758 + $_.numtext = $a(); //#17758 + $k[$j++] = Infinity; //#17759 + for (var _5E = 0, _5F = $_.msglen; _5E < _5F; _5E++) { //#17759 + $k[$j++] = 0; //#17759 + } //#17759 + $k[$j++] = 0; //#17759 + $_.numbytes = $a(); //#17759 + $k[$j++] = Infinity; //#17760 + for (var _5I = 0, _5J = $_.msglen; _5I < _5J; _5I++) { //#17760 + $k[$j++] = 0; //#17760 + } //#17760 + $_.iseci = $a(); //#17760 + for (var _5M = $_.msglen - 1; _5M >= 0; _5M -= 1) { //#17773 + $_.i = _5M; //#17762 + var _5P = $get($_.msg, $_.i); //#17763 + if ((_5P >= 48) && (_5P <= 57)) { //#17765 + $put($_.numdigits, $_.i, $f($get($_.numdigits, $_.i + 1) + 1)); //#17764 + } //#17764 + var _5Z = $get($_.alltext, $get($_.msg, $_.i)) !== undefined; //#17766 + if (_5Z && ($get($_.numdigits, $_.i) < 13)) { //#17768 + $put($_.numtext, $_.i, $f($get($_.numtext, $_.i + 1) + 1)); //#17767 + } //#17767 + if ((($get($_.msg, $_.i) >= 0) && ($get($_.numtext, $_.i) < 5)) && ($get($_.numdigits, $_.i) < 13)) { //#17771 + $put($_.numbytes, $_.i, $f($get($_.numbytes, $_.i + 1) + 1)); //#17770 + } //#17770 + $put($_.iseci, $_.i, $get($_.msg, $_.i) <= -1000000); //#17772 + } //#17772 + $_.numdigits = $geti($_.numdigits, 0, $_.msglen); //#17774 + $_.numtext = $geti($_.numtext, 0, $_.msglen); //#17775 + $_.numbytes = $geti($_.numbytes, 0, $_.msglen); //#17776 + $_.seq = $a([]); //#17778 + $_.seqlen = 0; //#17778 + $_.state = $_.B; //#17778 + $_.p = 0; //#17778 + for (;;) { //#17840 + if ($_.p == $_.msglen) { //#17779 + break; //#17779 + } //#17779 + var _6H = $get($_.msg, $_.p); //#17780 + if (($_.p == 0) && ((_6H == $_.m05) || (_6H == $_.m06))) { //#17838 + $k[$j++] = Infinity; //#17781 + $aload($_.seq); //#17782 + var _6P = ($get($_.msg, $_.p) == $_.m05) ? $_.m05 : $_.m06; //#17783 + $k[$j++] = _6P; //#17783 + $_.seq = $a(); //#17783 + $_.p = $_.p + 1; //#17785 + $_.seqlen = $_.seqlen + 1; //#17786 + } else { //#17838 + if ($get($_.iseci, $_.p)) { //#17838 + $_.eci = $get($_.msg, $_.p); //#17789 + $k[$j++] = Infinity; //#17790 + $aload($_.seq); //#17791 + $k[$j++] = $a([$_.eci]); //#17792 + $_.seq = $a(); //#17792 + $_.p = $_.p + 1; //#17794 + $k[$j++] = 'seqlen'; //#17795 + $k[$j++] = $_.seqlen; //#17795 + if ($_.eci <= -1810900) { //#17795 + $k[$j++] = 2; //#17795 + } else { //#17795 + var _6h = ($_.eci <= -1000900) ? 3 : 2; //#17795 + $k[$j++] = _6h; //#17795 + } //#17795 + var _6i = $k[--$j]; //#17795 + var _6j = $k[--$j]; //#17795 + $_[$k[--$j]] = $f(_6j + _6i); //#17795 + } else { //#17838 + $_.n = $get($_.numdigits, $_.p); //#17797 + if (($_.n >= 13) || (($_.n == $_.msglen) && ($_.n >= 8))) { //#17838 + $k[$j++] = Infinity; //#17799 + $aload($_.seq); //#17800 + $k[$j++] = $_.nl; //#17802 + $k[$j++] = Infinity; //#17802 + $aload($geti($_.msg, $_.p, $_.n)); //#17802 + var _6y = $a(); //#17802 + $k[$j++] = _6y; //#17802 + $_.seq = $a(); //#17802 + $_.state = $_.N; //#17804 + $_.p = $f($_.p + $_.n); //#17805 + $_.seqlen = $f(($_.seqlen + 1) + $_.n); //#17806 + } else { //#17838 + $_.t = $get($_.numtext, $_.p); //#17808 + if ($_.t >= 5) { //#17838 + $k[$j++] = Infinity; //#17810 + $aload($_.seq); //#17811 + if ($_.state != $_.T) { //#17814 + $k[$j++] = $_.tl; //#17813 + } //#17813 + $k[$j++] = Infinity; //#17815 + $aload($geti($_.msg, $_.p, $_.t)); //#17815 + var _7H = $a(); //#17815 + $k[$j++] = _7H; //#17815 + $_.seq = $a(); //#17815 + $_.state = $_.T; //#17817 + $_.p = $f($_.p + $_.t); //#17818 + $_.seqlen = $f($f($_.seqlen + 1) + $_.t); //#17819 + } else { //#17838 + $_.b = $get($_.numbytes, $_.p); //#17821 + if (($_.b == 1) && ($_.state == $_.T)) { //#17838 + $k[$j++] = Infinity; //#17823 + $aload($_.seq); //#17824 + $k[$j++] = $_.bs; //#17826 + $k[$j++] = $a([$get($_.msg, $_.p)]); //#17826 + $_.seq = $a(); //#17826 + $_.p = $f($_.p + $_.b); //#17828 + $_.seqlen = $f($_.seqlen + 2); //#17829 + } else { //#17838 + $k[$j++] = Infinity; //#17831 + $aload($_.seq); //#17832 + var _7g = (($_.b % 6) != 0) ? $_.bl : $_.bl6; //#17833 + $k[$j++] = _7g; //#17834 + $k[$j++] = Infinity; //#17834 + $aload($geti($_.msg, $_.p, $_.b)); //#17834 + var _7l = $a(); //#17834 + $k[$j++] = _7l; //#17834 + $_.seq = $a(); //#17834 + $_.state = $_.B; //#17836 + $_.p = $f($_.p + $_.b); //#17837 + $_.seqlen = $f($f($_.seqlen + 1) + $_.b); //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + } //#17838 + $k[$j++] = Infinity; //#17842 + $k[$j++] = $_.tl; //#17843 + $k[$j++] = 900; //#17843 + $k[$j++] = $_.bl; //#17843 + $k[$j++] = 901; //#17843 + $k[$j++] = $_.bl6; //#17843 + $k[$j++] = 924; //#17843 + $k[$j++] = $_.nl; //#17843 + $k[$j++] = 902; //#17843 + $k[$j++] = $_.bs; //#17843 + $k[$j++] = 913; //#17843 + $k[$j++] = $_.m05; //#17843 + $k[$j++] = 916; //#17843 + $k[$j++] = $_.m06; //#17843 + $k[$j++] = 917; //#17843 + $_.latchcws = $d(); //#17844 $_.enca = function() { - var _7I = $get($get($_.charvals, $_.A), $k[--$j]); //#17593 - $k[$j++] = _7I; //#17593 - }; //#17593 + var _84 = $get($get($_.charvals, $_.A), $k[--$j]); //#17847 + $k[$j++] = _84; //#17847 + }; //#17847 $_.encl = function() { - var _7N = $get($get($_.charvals, $_.L), $k[--$j]); //#17594 - $k[$j++] = _7N; //#17594 - }; //#17594 + var _89 = $get($get($_.charvals, $_.L), $k[--$j]); //#17848 + $k[$j++] = _89; //#17848 + }; //#17848 $_.encm = function() { - var _7S = $get($get($_.charvals, $_.M), $k[--$j]); //#17595 - $k[$j++] = _7S; //#17595 - }; //#17595 + var _8E = $get($get($_.charvals, $_.M), $k[--$j]); //#17849 + $k[$j++] = _8E; //#17849 + }; //#17849 $_.encp = function() { - var _7X = $get($get($_.charvals, $_.P), $k[--$j]); //#17596 - $k[$j++] = _7X; //#17596 - }; //#17596 - $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17597 + var _8J = $get($get($_.charvals, $_.P), $k[--$j]); //#17850 + $k[$j++] = _8J; //#17850 + }; //#17850 + $_.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#17851 $_.addtotext = function() { - $put($_.text, $_.l, $k[--$j]); //#17600 - $_.l = $_.l + 1; //#17601 - }; //#17601 + $put($_.text, $_.l, $k[--$j]); //#17854 + $_.l = $_.l + 1; //#17855 + }; //#17855 $_.enct = function() { - $_.in = $k[--$j]; //#17606 - $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17608 - $put($_.curlen, $_.submode, 0); //#17609 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17610 - $forall($_.in, function() { //#17680 - $_.char = $k[--$j]; //#17615 - for (;;) { //#17636 - $_.imp = false; //#17619 - var _7w = $a([$_.A, $_.L, $_.M, $_.P]); //#17620 - for (var _7x = 0, _7y = _7w.length; _7x < _7y; _7x++) { //#17634 - $_.x = $get(_7w, _7x); //#17621 - var _84 = $a([$_.A, $_.L, $_.M, $_.P]); //#17622 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#17633 - $_.y = $get(_84, _85); //#17623 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17624 - if ($_.cost < $get($_.curlen, $_.y)) { //#17632 - $put($_.curlen, $_.y, $_.cost); //#17626 - $k[$j++] = $_.curseq; //#17629 - $k[$j++] = $_.y; //#17629 - $k[$j++] = Infinity; //#17629 - $aload($get($_.curseq, $_.x)); //#17628 - $aload($get($get($_.latseq, $_.x), $_.y)); //#17629 - var _8X = $a(); //#17629 - var _8Y = $k[--$j]; //#17630 - $put($k[--$j], _8Y, _8X); //#17630 - $_.imp = true; //#17631 - } //#17631 - } //#17631 - } //#17631 - if (!$_.imp) { //#17635 - break; //#17635 - } //#17635 - } //#17635 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17639 - $_.nxtseq = $a(4); //#17640 - var _8l = $a([$_.A, $_.L, $_.M, $_.P]); //#17642 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#17675 - $_.x = $get(_8l, _8m); //#17643 - for (;;) { //#17673 - var _8t = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17647 - if (!_8t) { //#17647 - break; //#17647 - } //#17647 - $_.cost = $f($get($_.curlen, $_.x) + 1); //#17650 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#17654 - $put($_.nxtlen, $_.x, $_.cost); //#17652 - $k[$j++] = $_.nxtseq; //#17653 - $k[$j++] = $_.x; //#17653 - $k[$j++] = Infinity; //#17653 - $aload($get($_.curseq, $_.x)); //#17653 - $k[$j++] = $_.char; //#17653 - var _9A = $a(); //#17653 - var _9B = $k[--$j]; //#17653 - $put($k[--$j], _9B, _9A); //#17653 - } //#17653 - var _9H = $a([$_.A, $_.L, $_.M, $_.P]); //#17657 - for (var _9I = 0, _9J = _9H.length; _9I < _9J; _9I++) { //#17670 - $_.y = $get(_9H, _9I); //#17658 - if ($ne($_.x, $_.y)) { //#17669 - $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17660 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#17668 - $put($_.nxtlen, $_.y, $_.cost); //#17662 - $k[$j++] = $_.nxtseq; //#17666 - $k[$j++] = $_.y; //#17666 - $k[$j++] = Infinity; //#17666 - $aload($get($_.curseq, $_.y)); //#17664 - var _9j = ($_.x == $_.A) ? $_.as : $_.ps; //#17665 - $k[$j++] = _9j; //#17666 - $k[$j++] = $_.char; //#17666 - var _9l = $a(); //#17666 - var _9m = $k[--$j]; //#17667 - $put($k[--$j], _9m, _9l); //#17667 - } //#17667 - } //#17667 - } //#17667 - break; //#17672 - } //#17672 - } //#17672 - $_.curlen = $_.nxtlen; //#17677 - $_.curseq = $_.nxtseq; //#17678 - }); //#17678 - $_.minseq = $_.e; //#17683 - var _9v = $a([$_.A, $_.L, $_.M, $_.P]); //#17684 - for (var _9w = 0, _9x = _9v.length; _9w < _9x; _9w++) { //#17690 - $_.k = $get(_9v, _9w); //#17685 - if ($get($_.curlen, $_.k) < $_.minseq) { //#17689 - $_.minseq = $get($_.curlen, $_.k); //#17687 - $_.txtseq = $get($_.curseq, $_.k); //#17688 - } //#17688 - } //#17688 - $_.text = $a($_.minseq); //#17693 - $_.k = 0; //#17694 - $_.l = 0; //#17694 - for (;;) { //#17714 - if ($_.k >= $_.txtseq.length) { //#17695 - break; //#17695 - } //#17695 - $_.char = $get($_.txtseq, $_.k); //#17697 - $k[$j++] = $_.char; //#17700 + $_.in = $k[--$j]; //#17860 + $_.curlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17862 + $put($_.curlen, $_.submode, 0); //#17863 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#17864 + $forall($_.in, function() { //#17934 + $_.char = $k[--$j]; //#17869 + for (;;) { //#17890 + $_.imp = false; //#17873 + var _8i = $a([$_.A, $_.L, $_.M, $_.P]); //#17874 + for (var _8j = 0, _8k = _8i.length; _8j < _8k; _8j++) { //#17888 + $_.x = $get(_8i, _8j); //#17875 + var _8q = $a([$_.A, $_.L, $_.M, $_.P]); //#17876 + for (var _8r = 0, _8s = _8q.length; _8r < _8s; _8r++) { //#17887 + $_.y = $get(_8q, _8r); //#17877 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#17878 + if ($_.cost < $get($_.curlen, $_.y)) { //#17886 + $put($_.curlen, $_.y, $_.cost); //#17880 + $k[$j++] = $_.curseq; //#17883 + $k[$j++] = $_.y; //#17883 + $k[$j++] = Infinity; //#17881 + $aload($get($_.curseq, $_.x)); //#17882 + $aload($get($get($_.latseq, $_.x), $_.y)); //#17883 + var _9J = $a(); //#17883 + var _9K = $k[--$j]; //#17884 + $put($k[--$j], _9K, _9J); //#17884 + $_.imp = true; //#17885 + } //#17885 + } //#17885 + } //#17885 + if (!$_.imp) { //#17889 + break; //#17889 + } //#17889 + } //#17889 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e]); //#17893 + $_.nxtseq = $a(4); //#17894 + var _9X = $a([$_.A, $_.L, $_.M, $_.P]); //#17896 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#17929 + $_.x = $get(_9X, _9Y); //#17897 + for (;;) { //#17927 + var _9f = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#17901 + if (!_9f) { //#17901 + break; //#17901 + } //#17901 + $_.cost = $f($get($_.curlen, $_.x) + 1); //#17904 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#17908 + $put($_.nxtlen, $_.x, $_.cost); //#17906 + $k[$j++] = $_.nxtseq; //#17907 + $k[$j++] = $_.x; //#17907 + $k[$j++] = Infinity; //#17907 + $aload($get($_.curseq, $_.x)); //#17907 + $k[$j++] = $_.char; //#17907 + var _9w = $a(); //#17907 + var _9x = $k[--$j]; //#17907 + $put($k[--$j], _9x, _9w); //#17907 + } //#17907 + var _A3 = $a([$_.A, $_.L, $_.M, $_.P]); //#17911 + for (var _A4 = 0, _A5 = _A3.length; _A4 < _A5; _A4++) { //#17924 + $_.y = $get(_A3, _A4); //#17912 + if ($ne($_.x, $_.y)) { //#17923 + $_.cost = $f($f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)) + 1); //#17914 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#17922 + $put($_.nxtlen, $_.y, $_.cost); //#17916 + $k[$j++] = $_.nxtseq; //#17920 + $k[$j++] = $_.y; //#17920 + $k[$j++] = Infinity; //#17917 + $aload($get($_.curseq, $_.y)); //#17918 + var _AV = ($_.x == $_.A) ? $_.as : $_.ps; //#17919 + $k[$j++] = _AV; //#17920 + $k[$j++] = $_.char; //#17920 + var _AX = $a(); //#17920 + var _AY = $k[--$j]; //#17921 + $put($k[--$j], _AY, _AX); //#17921 + } //#17921 + } //#17921 + } //#17921 + break; //#17926 + } //#17926 + } //#17926 + $_.curlen = $_.nxtlen; //#17931 + $_.curseq = $_.nxtseq; //#17932 + }); //#17932 + $_.minseq = $_.e; //#17937 + var _Ah = $a([$_.A, $_.L, $_.M, $_.P]); //#17938 + for (var _Ai = 0, _Aj = _Ah.length; _Ai < _Aj; _Ai++) { //#17944 + $_.k = $get(_Ah, _Ai); //#17939 + if ($get($_.curlen, $_.k) < $_.minseq) { //#17943 + $_.minseq = $get($_.curlen, $_.k); //#17941 + $_.txtseq = $get($_.curseq, $_.k); //#17942 + } //#17942 + } //#17942 + $_.text = $a($_.minseq); //#17947 + $_.k = 0; //#17948 + $_.l = 0; //#17948 + for (;;) { //#17968 + if ($_.k >= $_.txtseq.length) { //#17949 + break; //#17949 + } //#17949 + $_.char = $get($_.txtseq, $_.k); //#17951 + $k[$j++] = $_.char; //#17954 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { break; - } //#17700 - $_.addtotext(); //#17700 - $_.k = $_.k + 1; //#17701 - if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17707 - $k[$j++] = $get($_.txtseq, $_.k); //#17705 - if ($_.char == $_.as) { //#17705 - $_.enca(); //#17705 - } else { //#17705 - $_.encp(); //#17705 - } //#17705 - $_.addtotext(); //#17705 - $_.k = $_.k + 1; //#17706 - } //#17706 - if ($_.char == $_.al) { //#17710 - $_.submode = $_.A; //#17710 - } //#17710 - if ($_.char == $_.ll) { //#17711 - $_.submode = $_.L; //#17711 - } //#17711 - if ($_.char == $_.ml) { //#17712 - $_.submode = $_.M; //#17712 - } //#17712 - if ($_.char == $_.pl) { //#17713 - $_.submode = $_.P; //#17713 - } //#17713 - } //#17713 - if (($_.text.length % 2) == 1) { //#17761 - if ($_.submode == $_.P) { //#17757 - $k[$j++] = 'pad'; //#17718 - $k[$j++] = $_.al; //#17718 - $_.encp(); //#17718 - var _Am = $k[--$j]; //#17718 - $_[$k[--$j]] = _Am; //#17718 - $_.submode = $_.A; //#17719 - } else { //#17757 - $_.nextecitext = false; //#17722 - for (var _As = $_.i + 1, _Ar = $_.seq.length - 1; _As <= _Ar; _As += 1) { //#17729 - $_.ti = _As; //#17725 - if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17726 - $_.nextecitext = false; //#17726 - break; //#17726 - } //#17726 - if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17727 - break; //#17727 - } //#17727 - $_.nextecitext = true; //#17728 - } //#17728 - if ($_.nextecitext) { //#17757 - if ($_.submode == $_.A) { //#17754 - var _BB = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17732 - if (_BB) { //#17737 - $k[$j++] = 'pad'; //#17733 - $k[$j++] = $_.ll; //#17733 - $_.enca(); //#17733 - var _BD = $k[--$j]; //#17733 - $_[$k[--$j]] = _BD; //#17733 - $_.submode = $_.L; //#17734 - } else { //#17737 - $k[$j++] = 'pad'; //#17736 - $k[$j++] = $_.ml; //#17736 - $_.enca(); //#17736 - var _BH = $k[--$j]; //#17736 - $_[$k[--$j]] = _BH; //#17736 - $_.submode = $_.M; //#17737 - } //#17737 - } else { //#17754 - if ($_.submode == $_.M) { //#17754 - var _BT = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17741 - if (_BT) { //#17750 - $k[$j++] = 'pad'; //#17742 - $k[$j++] = $_.ll; //#17742 - $_.encm(); //#17742 - var _BV = $k[--$j]; //#17742 - $_[$k[--$j]] = _BV; //#17742 - $_.submode = $_.L; //#17743 - } else { //#17750 - var _Bf = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17745 - if (_Bf) { //#17750 - $k[$j++] = 'pad'; //#17746 - $k[$j++] = $_.pl; //#17746 - $_.encm(); //#17746 - var _Bh = $k[--$j]; //#17746 - $_[$k[--$j]] = _Bh; //#17746 - $_.submode = $_.P; //#17747 - } else { //#17750 - $k[$j++] = 'pad'; //#17749 - $k[$j++] = $_.al; //#17749 - $_.encm(); //#17749 - var _Bl = $k[--$j]; //#17749 - $_[$k[--$j]] = _Bl; //#17749 - $_.submode = $_.A; //#17750 - } //#17750 - } //#17750 - } else { //#17754 - $k[$j++] = 'pad'; //#17753 - $k[$j++] = $_.ml; //#17753 - $_.encl(); //#17753 - var _Bp = $k[--$j]; //#17753 - $_[$k[--$j]] = _Bp; //#17753 - $_.submode = $_.M; //#17754 - } //#17754 - } //#17754 - } else { //#17757 - $k[$j++] = 'pad'; //#17757 - $k[$j++] = $_.ps; //#17757 + } //#17954 + $_.addtotext(); //#17954 + $_.k = $_.k + 1; //#17955 + if (($_.char == $_.as) || ($_.char == $_.ps)) { //#17961 + $k[$j++] = $get($_.txtseq, $_.k); //#17959 + if ($_.char == $_.as) { //#17959 + $_.enca(); //#17959 + } else { //#17959 + $_.encp(); //#17959 + } //#17959 + $_.addtotext(); //#17959 + $_.k = $_.k + 1; //#17960 + } //#17960 + if ($_.char == $_.al) { //#17964 + $_.submode = $_.A; //#17964 + } //#17964 + if ($_.char == $_.ll) { //#17965 + $_.submode = $_.L; //#17965 + } //#17965 + if ($_.char == $_.ml) { //#17966 + $_.submode = $_.M; //#17966 + } //#17966 + if ($_.char == $_.pl) { //#17967 + $_.submode = $_.P; //#17967 + } //#17967 + } //#17967 + if (($_.text.length % 2) == 1) { //#18015 + if ($_.submode == $_.P) { //#18011 + $k[$j++] = 'pad'; //#17972 + $k[$j++] = $_.al; //#17972 + $_.encp(); //#17972 + var _BY = $k[--$j]; //#17972 + $_[$k[--$j]] = _BY; //#17972 + $_.submode = $_.A; //#17973 + } else { //#18011 + $_.nextecitext = false; //#17976 + for (var _Be = $_.i + 1, _Bd = $_.seq.length - 1; _Be <= _Bd; _Be += 1) { //#17983 + $_.ti = _Be; //#17979 + if ($ne($type($get($_.seq, $_.ti)), 'arraytype')) { //#17980 + $_.nextecitext = false; //#17980 + break; //#17980 + } //#17980 + if ($get($get($_.seq, $_.ti), 0) > -1000000) { //#17981 + break; //#17981 + } //#17981 + $_.nextecitext = true; //#17982 + } //#17982 + if ($_.nextecitext) { //#18011 + if ($_.submode == $_.A) { //#18008 + var _Bx = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17986 + if (_Bx) { //#17991 + $k[$j++] = 'pad'; //#17987 + $k[$j++] = $_.ll; //#17987 + $_.enca(); //#17987 + var _Bz = $k[--$j]; //#17987 + $_[$k[--$j]] = _Bz; //#17987 + $_.submode = $_.L; //#17988 + } else { //#17991 + $k[$j++] = 'pad'; //#17990 + $k[$j++] = $_.ml; //#17990 + $_.enca(); //#17990 + var _C3 = $k[--$j]; //#17990 + $_[$k[--$j]] = _C3; //#17990 + $_.submode = $_.M; //#17991 + } //#17991 + } else { //#18008 + if ($_.submode == $_.M) { //#18008 + var _CF = $get($get($_.charvals, $_.L), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17995 + if (_CF) { //#18004 + $k[$j++] = 'pad'; //#17996 + $k[$j++] = $_.ll; //#17996 + $_.encm(); //#17996 + var _CH = $k[--$j]; //#17996 + $_[$k[--$j]] = _CH; //#17996 + $_.submode = $_.L; //#17997 + } else { //#18004 + var _CR = $get($get($_.charvals, $_.P), $get($get($_.seq, $_.ti), 0)) !== undefined; //#17999 + if (_CR) { //#18004 + $k[$j++] = 'pad'; //#18000 + $k[$j++] = $_.pl; //#18000 + $_.encm(); //#18000 + var _CT = $k[--$j]; //#18000 + $_[$k[--$j]] = _CT; //#18000 + $_.submode = $_.P; //#18001 + } else { //#18004 + $k[$j++] = 'pad'; //#18003 + $k[$j++] = $_.al; //#18003 + $_.encm(); //#18003 + var _CX = $k[--$j]; //#18003 + $_[$k[--$j]] = _CX; //#18003 + $_.submode = $_.A; //#18004 + } //#18004 + } //#18004 + } else { //#18008 + $k[$j++] = 'pad'; //#18007 + $k[$j++] = $_.ml; //#18007 + $_.encl(); //#18007 + var _Cb = $k[--$j]; //#18007 + $_[$k[--$j]] = _Cb; //#18007 + $_.submode = $_.M; //#18008 + } //#18008 + } //#18008 + } else { //#18011 + $k[$j++] = 'pad'; //#18011 + $k[$j++] = $_.ps; //#18011 if ($_[$get($_.textencfuncs, $_.submode)]() === true) { return true; - } //#17757 - var _Bx = $k[--$j]; //#17757 - $_[$k[--$j]] = _Bx; //#17757 - } //#17757 - } //#17757 - $k[$j++] = Infinity; //#17760 - $aload($_.text); //#17760 - $k[$j++] = $_.pad; //#17760 - $_.text = $a(); //#17760 - } //#17760 - $_.out = $a(~~($_.text.length / 2)); //#17763 - for (var _C6 = 0, _C5 = $_.out.length - 1; _C6 <= _C5; _C6 += 1) { //#17767 - $_.k = _C6; //#17765 - $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#17766 - } //#17766 - $k[$j++] = $_.out; //#17769 - }; //#17769 + } //#18011 + var _Cj = $k[--$j]; //#18011 + $_[$k[--$j]] = _Cj; //#18011 + } //#18011 + } //#18011 + $k[$j++] = Infinity; //#18014 + $aload($_.text); //#18014 + $k[$j++] = $_.pad; //#18014 + $_.text = $a(); //#18014 + } //#18014 + $_.out = $a(~~($_.text.length / 2)); //#18017 + for (var _Cs = 0, _Cr = $_.out.length - 1; _Cs <= _Cr; _Cs += 1) { //#18021 + $_.k = _Cs; //#18019 + $put($_.out, $_.k, $f(($get($_.text, $_.k * 2) * 30) + $get($_.text, ($_.k * 2) + 1))); //#18020 + } //#18020 + $k[$j++] = $_.out; //#18023 + }; //#18023 $_.encn = function() { - $_.in = $k[--$j]; //#17774 - $_.out = $a([]); //#17775 - for (var _CK = 0, _CJ = $_.in.length - 1; _CK <= _CJ; _CK += 44) { //#17803 - $_.k = _CK; //#17777 - $k[$j++] = Infinity; //#17780 - var _CP = $_.in.length - $_.k; //#17779 - $k[$j++] = 1; //#17779 - $k[$j++] = $_.in; //#17779 - $k[$j++] = $_.k; //#17779 - $k[$j++] = _CP; //#17779 - if (_CP > 44) { //#17779 - $j--; //#17779 - $k[$j++] = 44; //#17779 - } //#17779 - var _CQ = $k[--$j]; //#17779 - var _CR = $k[--$j]; //#17779 - var _CT = $geti($k[--$j], _CR, _CQ); //#17779 - for (var _CU = 0, _CV = _CT.length; _CU < _CV; _CU++) { //#17780 - $k[$j++] = $f($get(_CT, _CU) - 48); //#17780 - } //#17780 - $_.gmod = $a(); //#17780 - $_.cwn = $a([]); //#17782 - for (;;) { //#17801 - $_.dv = 900; //#17783 - $_.gmul = $a([]); //#17784 - $_.val = 0; //#17784 - for (;;) { //#17796 - if ($_.gmod.length == 0) { //#17785 - break; //#17785 - } //#17785 - $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#17786 - $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#17787 - if ($_.val < $_.dv) { //#17793 - if ($_.gmul.length != 0) { //#17791 - $k[$j++] = Infinity; //#17790 - $aload($_.gmul); //#17790 - $k[$j++] = 0; //#17790 - $_.gmul = $a(); //#17790 - } //#17790 - } else { //#17793 - $k[$j++] = Infinity; //#17793 - $aload($_.gmul); //#17793 - $k[$j++] = ~~($_.val / $_.dv); //#17793 - $_.gmul = $a(); //#17793 - } //#17793 - $_.val = $_.val % $_.dv; //#17795 - } //#17795 - $_.dv = $_.val; //#17797 - $k[$j++] = Infinity; //#17798 - $k[$j++] = $_.dv; //#17798 - $aload($_.cwn); //#17798 - $_.cwn = $a(); //#17798 - $_.gmod = $_.gmul; //#17799 - if ($_.gmul.length == 0) { //#17800 - break; //#17800 - } //#17800 - } //#17800 - $k[$j++] = Infinity; //#17802 - $aload($_.out); //#17802 - $aload($_.cwn); //#17802 - $_.out = $a(); //#17802 - } //#17802 - $k[$j++] = $_.out; //#17804 - }; //#17804 + $_.in = $k[--$j]; //#18028 + $_.out = $a([]); //#18029 + for (var _D6 = 0, _D5 = $_.in.length - 1; _D6 <= _D5; _D6 += 44) { //#18057 + $_.k = _D6; //#18031 + $k[$j++] = Infinity; //#18032 + var _DB = $_.in.length - $_.k; //#18033 + $k[$j++] = 1; //#18033 + $k[$j++] = $_.in; //#18033 + $k[$j++] = $_.k; //#18033 + $k[$j++] = _DB; //#18033 + if (_DB > 44) { //#18033 + $j--; //#18033 + $k[$j++] = 44; //#18033 + } //#18033 + var _DC = $k[--$j]; //#18033 + var _DD = $k[--$j]; //#18033 + var _DF = $geti($k[--$j], _DD, _DC); //#18033 + for (var _DG = 0, _DH = _DF.length; _DG < _DH; _DG++) { //#18034 + $k[$j++] = $f($get(_DF, _DG) - 48); //#18034 + } //#18034 + $_.gmod = $a(); //#18034 + $_.cwn = $a([]); //#18036 + for (;;) { //#18055 + $_.dv = 900; //#18037 + $_.gmul = $a([]); //#18038 + $_.val = 0; //#18038 + for (;;) { //#18050 + if ($_.gmod.length == 0) { //#18039 + break; //#18039 + } //#18039 + $_.val = $f(($_.val * 10) + $get($_.gmod, 0)); //#18040 + $_.gmod = $geti($_.gmod, 1, $_.gmod.length - 1); //#18041 + if ($_.val < $_.dv) { //#18047 + if ($_.gmul.length != 0) { //#18045 + $k[$j++] = Infinity; //#18044 + $aload($_.gmul); //#18044 + $k[$j++] = 0; //#18044 + $_.gmul = $a(); //#18044 + } //#18044 + } else { //#18047 + $k[$j++] = Infinity; //#18047 + $aload($_.gmul); //#18047 + $k[$j++] = ~~($_.val / $_.dv); //#18047 + $_.gmul = $a(); //#18047 + } //#18047 + $_.val = $_.val % $_.dv; //#18049 + } //#18049 + $_.dv = $_.val; //#18051 + $k[$j++] = Infinity; //#18052 + $k[$j++] = $_.dv; //#18052 + $aload($_.cwn); //#18052 + $_.cwn = $a(); //#18052 + $_.gmod = $_.gmul; //#18053 + if ($_.gmul.length == 0) { //#18054 + break; //#18054 + } //#18054 + } //#18054 + $k[$j++] = Infinity; //#18056 + $aload($_.out); //#18056 + $aload($_.cwn); //#18056 + $_.out = $a(); //#18056 + } //#18056 + $k[$j++] = $_.out; //#18058 + }; //#18058 $_.ence = function() { - var _D4 = $f((-$get($k[--$j], 0)) - 1000000); //#17809 - $k[$j++] = _D4; //#17817 - if (_D4 <= 899) { //#17816 - var _D5 = $k[--$j]; //#17810 - $k[$j++] = 927; //#17810 - $k[$j++] = _D5; //#17810 - $astore($a(2)); //#17810 - } else { //#17816 - var _D7 = $k[--$j]; //#17811 - $k[$j++] = _D7; //#17817 - if (_D7 <= 810899) { //#17816 - var _D8 = $k[--$j]; //#17812 - $k[$j++] = 926; //#17812 - $k[$j++] = (~~(_D8 / 900)) - 1; //#17812 - $k[$j++] = _D8 % 900; //#17812 - $astore($a(3)); //#17812 - } else { //#17816 - var _DA = $k[--$j]; //#17813 - $k[$j++] = _DA; //#17817 - if (_DA <= 811799) { //#17816 - var _DB = $k[--$j]; //#17814 - $k[$j++] = 925; //#17814 - $k[$j++] = $f(_DB - 810900); //#17814 - $astore($a(2)); //#17814 - } else { //#17816 - $k[$j++] = 'bwipp.pdf417badECI#17816'; //#17816 - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#17816 - bwipp_raiseerror(); //#17816 - } //#17816 - } //#17816 - } //#17816 - }; //#17816 - $_.encfuncs = $a(['enct', 'encn', 'encb']); //#17820 + var _Dq = $f((-$get($k[--$j], 0)) - 1000000); //#18063 + $k[$j++] = _Dq; //#18071 + if (_Dq <= 899) { //#18070 + var _Dr = $k[--$j]; //#18064 + $k[$j++] = 927; //#18064 + $k[$j++] = _Dr; //#18064 + $astore($a(2)); //#18064 + } else { //#18070 + var _Dt = $k[--$j]; //#18065 + $k[$j++] = _Dt; //#18071 + if (_Dt <= 810899) { //#18070 + var _Du = $k[--$j]; //#18066 + $k[$j++] = 926; //#18066 + $k[$j++] = (~~(_Du / 900)) - 1; //#18066 + $k[$j++] = _Du % 900; //#18066 + $astore($a(3)); //#18066 + } else { //#18070 + var _Dw = $k[--$j]; //#18067 + $k[$j++] = _Dw; //#18071 + if (_Dw <= 811799) { //#18070 + var _Dx = $k[--$j]; //#18068 + $k[$j++] = 925; //#18068 + $k[$j++] = $f(_Dx - 810900); //#18068 + $astore($a(2)); //#18068 + } else { //#18070 + $k[$j++] = 'bwipp.pdf417badECI#18070'; //#18070 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#18070 + bwipp_raiseerror(); //#18070 + } //#18070 + } //#18070 + } //#18070 + }; //#18070 + $_.encfuncs = $a(['enct', 'encn', 'encb']); //#18074 $_.addtocws = function() { - var _DE = $k[--$j]; //#17823 - $puti($_.datcws, $_.j, _DE); //#17823 - $_.j = _DE.length + $_.j; //#17824 - }; //#17824 - $_.datcws = $a($_.seqlen); //#17829 - $_.i = 0; //#17830 - $_.j = 0; //#17830 - for (;;) { //#17850 - if ($_.i >= $_.seq.length) { //#17831 - break; //#17831 - } //#17831 - $_.chars = $get($_.seq, $_.i); //#17832 - if ($eq($type($_.chars), 'arraytype')) { //#17846 - if ($get($_.chars, 0) <= -1000000) { //#17837 - $k[$j++] = $_.chars; //#17835 - $_.ence(); //#17835 - $_.addtocws(); //#17835 - } else { //#17837 - $k[$j++] = $_.chars; //#17837 + var _E0 = $k[--$j]; //#18077 + $puti($_.datcws, $_.j, _E0); //#18077 + $_.j = _E0.length + $_.j; //#18078 + }; //#18078 + $_.datcws = $a($_.seqlen); //#18083 + $_.i = 0; //#18084 + $_.j = 0; //#18084 + for (;;) { //#18120 + if ($_.i >= $_.seq.length) { //#18085 + break; //#18085 + } //#18085 + $_.chars = $get($_.seq, $_.i); //#18086 + if ($eq($type($_.chars), 'arraytype')) { //#18116 + if ($get($_.chars, 0) <= -1000000) { //#18091 + $k[$j++] = $_.chars; //#18089 + $_.ence(); //#18089 + $_.addtocws(); //#18089 + } else { //#18091 + $k[$j++] = $_.chars; //#18091 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#17837 - $_.addtocws(); //#17837 - } //#17837 - } else { //#17846 - $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#17840 - $_.addtocws(); //#17840 - if ($_.chars == $_.tl) { //#17841 - $_.state = $_.T; //#17841 - $_.submode = $_.A; //#17841 - } //#17841 - if ($_.chars == $_.nl) { //#17842 - $_.state = $_.N; //#17842 - } //#17842 - if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#17843 - $_.state = $_.B; //#17843 - } //#17843 - if ($_.chars == $_.bs) { //#17847 - $_.i = $_.i + 1; //#17845 - $k[$j++] = $get($_.seq, $_.i); //#17846 - $_.encb(); //#17846 - $_.addtocws(); //#17846 - } //#17846 - } //#17846 - $_.i = $_.i + 1; //#17849 - } //#17849 - $_.datcws = $geti($_.datcws, 0, $_.j); //#17851 - } //#17851 - if (!bwipp_micropdf417.__17915__) { //#17915 - $_ = Object.create($_); //#17915 - $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#17875 - $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#17914 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17914 - bwipp_micropdf417.__17915__ = 1; //#17914 - $_ = Object.getPrototypeOf($_); //#17914 - } //#17914 - $k[$j++] = 'metrics'; //#17917 - if ($_.cca) { //#17917 - $k[$j++] = $_.ccametrics; //#17917 - } else { //#17917 - $k[$j++] = $_.nonccametrics; //#17917 - } //#17917 - var _Eu = $k[--$j]; //#17917 - $_[$k[--$j]] = _Eu; //#17917 - $_.urows = $_.rows; //#17920 - $_.ucols = $_.columns; //#17921 - $forall($_.metrics, function() { //#17936 - $_.m = $k[--$j]; //#17923 - $_.c = $get($_.m, 0); //#17924 - $_.r = $get($_.m, 1); //#17925 - $_.k = $get($_.m, 2); //#17926 - $_.rapl = $get($_.m, 3); //#17927 - $_.rapc = $get($_.m, 4); //#17928 - $_.rapr = $get($_.m, 5); //#17929 - $_.ncws = $f(($_.r * $_.c) - $_.k); //#17930 - $_.okay = true; //#17931 - if ($_.datcws.length > $_.ncws) { //#17932 - $_.okay = false; //#17932 - } //#17932 - if (($_.urows != 0) && ($_.urows != $_.r)) { //#17933 - $_.okay = false; //#17933 - } //#17933 - if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#17934 - $_.okay = false; //#17934 - } //#17934 - if ($_.okay) { //#17935 - return true; //#17935 - } //#17935 - }); //#17935 - if (!$_.okay) { //#17940 - $k[$j++] = 'bwipp.micropdf417noValidSymbol#17939'; //#17939 - $k[$j++] = "Maximum length exceeded or invalid size"; //#17939 - bwipp_raiseerror(); //#17939 - } //#17939 - $_.m = $_.datcws.length; //#17943 - $_.n = $f(($_.c * $_.r) - $_.k); //#17944 - $_.cws = $a($f(($_.c * $_.r) + 1)); //#17945 - $puti($_.cws, 0, $_.datcws); //#17946 - $k[$j++] = $_.cws; //#17947 - $k[$j++] = $_.m; //#17947 - $k[$j++] = Infinity; //#17947 - for (var _Fc = 0, _Fd = $f($_.n - $_.m); _Fc < _Fd; _Fc++) { //#17947 - $k[$j++] = 900; //#17947 - } //#17947 - var _Fe = $a(); //#17947 - var _Ff = $k[--$j]; //#17947 - $puti($k[--$j], _Ff, _Fe); //#17947 - $k[$j++] = $_.cws; //#17948 - $k[$j++] = $_.n; //#17948 - $k[$j++] = Infinity; //#17948 - for (var _Fk = 0, _Fl = $_.k; _Fk < _Fl; _Fk++) { //#17948 - $k[$j++] = 0; //#17948 - } //#17948 - $k[$j++] = 0; //#17948 - var _Fm = $a(); //#17948 - var _Fn = $k[--$j]; //#17948 - $puti($k[--$j], _Fn, _Fm); //#17948 - if (!bwipp_micropdf417.__17955__) { //#17955 - $_ = Object.create($_); //#17955 - $k[$j++] = Infinity; //#17952 - $k[$j++] = 1; //#17952 - for (var _Fp = 0, _Fq = 928; _Fp < _Fq; _Fp++) { //#17952 - var _Fr = $k[--$j]; //#17952 - $k[$j++] = _Fr; //#17952 - $k[$j++] = (_Fr * 3) % 929; //#17952 - } //#17952 - $_.rsalog = $a(); //#17952 - $_.rslog = $a(929); //#17953 - for (var _Fu = 1; _Fu <= 928; _Fu += 1) { //#17954 - $put($_.rslog, $get($_.rsalog, _Fu), _Fu); //#17954 - } //#17954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#17954 - bwipp_micropdf417.__17955__ = 1; //#17954 - $_ = Object.getPrototypeOf($_); //#17954 - } //#17954 + } //#18091 + $_.addtocws(); //#18091 + } //#18091 + } else { //#18116 + $k[$j++] = $a([$get($_.latchcws, $_.chars)]); //#18094 + $_.addtocws(); //#18094 + if ($_.chars == $_.tl) { //#18095 + $_.state = $_.T; //#18095 + $_.submode = $_.A; //#18095 + } //#18095 + if ($_.chars == $_.nl) { //#18096 + $_.state = $_.N; //#18096 + } //#18096 + if (($_.chars == $_.bl) || ($_.chars == $_.bl6)) { //#18097 + $_.state = $_.B; //#18097 + } //#18097 + if ($_.chars == $_.bs) { //#18101 + $_.i = $_.i + 1; //#18099 + $k[$j++] = $get($_.seq, $_.i); //#18100 + $_.encb(); //#18100 + $_.addtocws(); //#18100 + } //#18100 + if ($_.chars == $_.m05) { //#18109 + if (($_.i + 1) < $_.seq.length) { //#18107 + if ($get($_.seq, $_.i + 1) == $_.nl) { //#18106 + $_.i = $_.i + 1; //#18105 + } //#18105 + } //#18105 + $_.state = $_.N; //#18108 + } //#18108 + if ($_.chars == $_.m06) { //#18117 + if (($_.i + 1) < $_.seq.length) { //#18115 + if ($get($_.seq, $_.i + 1) == $_.tl) { //#18114 + $_.i = $_.i + 1; //#18113 + } //#18113 + } //#18113 + $_.state = $_.T; //#18116 + $_.submode = $_.M; //#18116 + } //#18116 + } //#18116 + $_.i = $_.i + 1; //#18119 + } //#18119 + $_.datcws = $geti($_.datcws, 0, $_.j); //#18121 + } //#18121 + if (!bwipp_micropdf417.__18185__) { //#18185 + $_ = Object.create($_); //#18185 + $_.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#18145 + $_.nonccametrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#18184 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18184 + bwipp_micropdf417.__18185__ = 1; //#18184 + $_ = Object.getPrototypeOf($_); //#18184 + } //#18184 + $k[$j++] = 'metrics'; //#18187 + if ($_.cca) { //#18187 + $k[$j++] = $_.ccametrics; //#18187 + } else { //#18187 + $k[$j++] = $_.nonccametrics; //#18187 + } //#18187 + var _G1 = $k[--$j]; //#18187 + $_[$k[--$j]] = _G1; //#18187 + $_.urows = $_.rows; //#18190 + $_.ucols = $_.columns; //#18191 + $forall($_.metrics, function() { //#18206 + $_.m = $k[--$j]; //#18193 + $_.c = $get($_.m, 0); //#18194 + $_.r = $get($_.m, 1); //#18195 + $_.k = $get($_.m, 2); //#18196 + $_.rapl = $get($_.m, 3); //#18197 + $_.rapc = $get($_.m, 4); //#18198 + $_.rapr = $get($_.m, 5); //#18199 + $_.ncws = $f(($_.r * $_.c) - $_.k); //#18200 + $_.okay = true; //#18201 + if ($_.datcws.length > $_.ncws) { //#18202 + $_.okay = false; //#18202 + } //#18202 + if (($_.urows != 0) && ($_.urows != $_.r)) { //#18203 + $_.okay = false; //#18203 + } //#18203 + if (($_.ucols != 0) && ($_.ucols != $_.c)) { //#18204 + $_.okay = false; //#18204 + } //#18204 + if ($_.okay) { //#18205 + return true; //#18205 + } //#18205 + }); //#18205 + if (!$_.okay) { //#18210 + $k[$j++] = 'bwipp.micropdf417noValidSymbol#18209'; //#18209 + $k[$j++] = "Maximum length exceeded or invalid size"; //#18209 + bwipp_raiseerror(); //#18209 + } //#18209 + $_.m = $_.datcws.length; //#18213 + $_.n = $f(($_.c * $_.r) - $_.k); //#18214 + $_.cws = $a($f(($_.c * $_.r) + 1)); //#18215 + $puti($_.cws, 0, $_.datcws); //#18216 + $k[$j++] = $_.cws; //#18217 + $k[$j++] = $_.m; //#18217 + $k[$j++] = Infinity; //#18217 + for (var _Gj = 0, _Gk = $f($_.n - $_.m); _Gj < _Gk; _Gj++) { //#18217 + $k[$j++] = 900; //#18217 + } //#18217 + var _Gl = $a(); //#18217 + var _Gm = $k[--$j]; //#18217 + $puti($k[--$j], _Gm, _Gl); //#18217 + $k[$j++] = $_.cws; //#18218 + $k[$j++] = $_.n; //#18218 + $k[$j++] = Infinity; //#18218 + for (var _Gr = 0, _Gs = $_.k; _Gr < _Gs; _Gr++) { //#18218 + $k[$j++] = 0; //#18218 + } //#18218 + $k[$j++] = 0; //#18218 + var _Gt = $a(); //#18218 + var _Gu = $k[--$j]; //#18218 + $puti($k[--$j], _Gu, _Gt); //#18218 + if (!bwipp_micropdf417.__18225__) { //#18225 + $_ = Object.create($_); //#18225 + $k[$j++] = Infinity; //#18222 + $k[$j++] = 1; //#18222 + for (var _Gw = 0, _Gx = 928; _Gw < _Gx; _Gw++) { //#18222 + var _Gy = $k[--$j]; //#18222 + $k[$j++] = _Gy; //#18222 + $k[$j++] = (_Gy * 3) % 929; //#18222 + } //#18222 + $_.rsalog = $a(); //#18222 + $_.rslog = $a(929); //#18223 + for (var _H1 = 1; _H1 <= 928; _H1 += 1) { //#18224 + $put($_.rslog, $get($_.rsalog, _H1), _H1); //#18224 + } //#18224 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18224 + bwipp_micropdf417.__18225__ = 1; //#18224 + $_ = Object.getPrototypeOf($_); //#18224 + } //#18224 $_.rsprod = function() { - var _Fz = $k[--$j]; //#17959 - var _G0 = $k[--$j]; //#17959 - $k[$j++] = _G0; //#17963 - $k[$j++] = _Fz; //#17963 - if ((_Fz != 0) && (_G0 != 0)) { //#17962 - var _G3 = $get($_.rslog, $k[--$j]); //#17960 - var _G8 = $get($_.rsalog, $f(_G3 + $get($_.rslog, $k[--$j])) % 928); //#17960 - $k[$j++] = _G8; //#17960 - } else { //#17962 - $j -= 2; //#17962 - $k[$j++] = 0; //#17962 - } //#17962 - }; //#17962 - $k[$j++] = Infinity; //#17967 - $k[$j++] = 1; //#17967 - for (var _GA = 0, _GB = $_.k; _GA < _GB; _GA++) { //#17967 - $k[$j++] = 0; //#17967 - } //#17967 - $_.coeffs = $a(); //#17967 - for (var _GF = 1, _GE = $_.k; _GF <= _GE; _GF += 1) { //#17976 - $_.i = _GF; //#17969 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#17970 - for (var _GM = $_.i - 1; _GM >= 1; _GM -= 1) { //#17974 - $_.j = _GM; //#17972 - $k[$j++] = $_.coeffs; //#17973 - $k[$j++] = $_.j; //#17973 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#17973 - $k[$j++] = $get($_.coeffs, $_.j); //#17973 - $k[$j++] = $get($_.rsalog, $_.i); //#17973 - $_.rsprod(); //#17973 - var _GY = $k[--$j]; //#17973 - var _GZ = $k[--$j]; //#17973 - var _Ga = $k[--$j]; //#17973 - $put($k[--$j], _Ga, $f(_GZ + _GY) % 929); //#17973 - } //#17973 - $k[$j++] = $_.coeffs; //#17975 - $k[$j++] = 0; //#17975 - $k[$j++] = $get($_.coeffs, 0); //#17975 - $k[$j++] = $get($_.rsalog, $_.i); //#17975 - $_.rsprod(); //#17975 - var _Gi = $k[--$j]; //#17975 - var _Gj = $k[--$j]; //#17975 - $put($k[--$j], _Gj, _Gi); //#17975 - } //#17975 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#17977 - for (var _Gp = $_.coeffs.length - 1; _Gp >= 0; _Gp -= 2) { //#17978 - var _Gq = $_.coeffs; //#17978 - $put(_Gq, _Gp, $f(929 - $get(_Gq, _Gp))); //#17978 - } //#17978 - for (var _Gu = 0, _Gt = $f($_.n - 1); _Gu <= _Gt; _Gu += 1) { //#17987 - $_.t = $f($get($_.cws, _Gu) + $get($_.cws, $_.n)) % 929; //#17982 - for (var _H2 = 0, _H1 = $f($_.k - 1); _H2 <= _H1; _H2 += 1) { //#17986 - $_.j = _H2; //#17984 - $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#17985 - } //#17985 - } //#17985 - for (var _HJ = $_.n, _HI = $f($_.n + $_.k); _HJ <= _HI; _HJ += 1) { //#17988 - $put($_.cws, _HJ, $f(929 - $get($_.cws, _HJ)) % 929); //#17988 - } //#17988 - $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#17991 - var _HR = $get($_.options, 'debugcws') !== undefined; //#17993 - if (_HR) { //#17993 - $k[$j++] = 'bwipp.debugcws#17993'; //#17993 - $k[$j++] = $_.cws; //#17993 - bwipp_raiseerror(); //#17993 - } //#17993 - if (!bwipp_micropdf417.__18252__) { //#18252 - $_ = Object.create($_); //#18252 - $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18236 - $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18251 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18251 - bwipp_micropdf417.__18252__ = 1; //#18251 - $_ = Object.getPrototypeOf($_); //#18251 - } //#18251 + var _H6 = $k[--$j]; //#18229 + var _H7 = $k[--$j]; //#18229 + $k[$j++] = _H7; //#18233 + $k[$j++] = _H6; //#18233 + if ((_H6 != 0) && (_H7 != 0)) { //#18232 + var _HA = $get($_.rslog, $k[--$j]); //#18230 + var _HF = $get($_.rsalog, $f(_HA + $get($_.rslog, $k[--$j])) % 928); //#18230 + $k[$j++] = _HF; //#18230 + } else { //#18232 + $j -= 2; //#18232 + $k[$j++] = 0; //#18232 + } //#18232 + }; //#18232 + $k[$j++] = Infinity; //#18237 + $k[$j++] = 1; //#18237 + for (var _HH = 0, _HI = $_.k; _HH < _HI; _HH++) { //#18237 + $k[$j++] = 0; //#18237 + } //#18237 + $_.coeffs = $a(); //#18237 + for (var _HM = 1, _HL = $_.k; _HM <= _HL; _HM += 1) { //#18246 + $_.i = _HM; //#18239 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#18240 + for (var _HT = $_.i - 1; _HT >= 1; _HT -= 1) { //#18244 + $_.j = _HT; //#18242 + $k[$j++] = $_.coeffs; //#18243 + $k[$j++] = $_.j; //#18243 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#18243 + $k[$j++] = $get($_.coeffs, $_.j); //#18243 + $k[$j++] = $get($_.rsalog, $_.i); //#18243 + $_.rsprod(); //#18243 + var _Hf = $k[--$j]; //#18243 + var _Hg = $k[--$j]; //#18243 + var _Hh = $k[--$j]; //#18243 + $put($k[--$j], _Hh, $f(_Hg + _Hf) % 929); //#18243 + } //#18243 + $k[$j++] = $_.coeffs; //#18245 + $k[$j++] = 0; //#18245 + $k[$j++] = $get($_.coeffs, 0); //#18245 + $k[$j++] = $get($_.rsalog, $_.i); //#18245 + $_.rsprod(); //#18245 + var _Hp = $k[--$j]; //#18245 + var _Hq = $k[--$j]; //#18245 + $put($k[--$j], _Hq, _Hp); //#18245 + } //#18245 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#18247 + for (var _Hw = $_.coeffs.length - 1; _Hw >= 0; _Hw -= 2) { //#18248 + var _Hx = $_.coeffs; //#18248 + $put(_Hx, _Hw, $f(929 - $get(_Hx, _Hw))); //#18248 + } //#18248 + for (var _I1 = 0, _I0 = $f($_.n - 1); _I1 <= _I0; _I1 += 1) { //#18257 + $_.t = $f($get($_.cws, _I1) + $get($_.cws, $_.n)) % 929; //#18252 + for (var _I9 = 0, _I8 = $f($_.k - 1); _I9 <= _I8; _I9 += 1) { //#18256 + $_.j = _I9; //#18254 + $put($_.cws, $f($_.n + $_.j), ($f($get($_.cws, $f($f($_.n + $_.j) + 1)) + ($f(929 - (($_.t * $get($_.coeffs, $f($f($_.k - $_.j) - 1))) % 929))))) % 929); //#18255 + } //#18255 + } //#18255 + for (var _IQ = $_.n, _IP = $f($_.n + $_.k); _IQ <= _IP; _IQ += 1) { //#18258 + $put($_.cws, _IQ, $f(929 - $get($_.cws, _IQ)) % 929); //#18258 + } //#18258 + $_.cws = $geti($_.cws, 0, $_.cws.length - 1); //#18261 + var _IY = $get($_.options, 'debugcws') !== undefined; //#18263 + if (_IY) { //#18263 + $k[$j++] = 'bwipp.debugcws#18263'; //#18263 + $k[$j++] = $_.cws; //#18263 + bwipp_raiseerror(); //#18263 + } //#18263 + if (!bwipp_micropdf417.__18522__) { //#18522 + $_ = Object.create($_); //#18522 + $_.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#18506 + $_.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#18521 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_micropdf417.$ctx[id] = $_[id]); //#18521 + bwipp_micropdf417.__18522__ = 1; //#18521 + $_ = Object.getPrototypeOf($_); //#18521 + } //#18521 $_.cwtobits = function() { - var _Hd = $get($_.clusters, $k[--$j]); //#18256 - $_.v = $get(_Hd, $k[--$j]); //#18256 - $k[$j++] = Infinity; //#18257 - for (var _Hg = 0, _Hh = 17; _Hg < _Hh; _Hg++) { //#18257 - $k[$j++] = 0; //#18257 - } //#18257 - var _Hk = $cvrs($s(17), $_.v, 2); //#18257 - for (var _Hl = 0, _Hm = _Hk.length; _Hl < _Hm; _Hl++) { //#18257 - $k[$j++] = $get(_Hk, _Hl) - 48; //#18257 - } //#18257 - var _Ho = $a(); //#18257 - $k[$j++] = $geti(_Ho, _Ho.length - 17, 17); //#18258 - }; //#18258 + var _Ik = $get($_.clusters, $k[--$j]); //#18526 + $_.v = $get(_Ik, $k[--$j]); //#18526 + $k[$j++] = Infinity; //#18527 + for (var _In = 0, _Io = 17; _In < _Io; _In++) { //#18527 + $k[$j++] = 0; //#18527 + } //#18527 + var _Ir = $cvrs($s(17), $_.v, 2); //#18527 + for (var _Is = 0, _It = _Ir.length; _Is < _It; _Is++) { //#18527 + $k[$j++] = $get(_Ir, _Is) - 48; //#18527 + } //#18527 + var _Iv = $a(); //#18527 + $k[$j++] = $geti(_Iv, _Iv.length - 17, 17); //#18528 + }; //#18528 $_.raptobits = function() { - var _Hs = $get($_.raps, $k[--$j]); //#18263 - $_.v = $get(_Hs, $k[--$j]); //#18263 - $k[$j++] = Infinity; //#18264 - for (var _Hv = 0, _Hw = 10; _Hv < _Hw; _Hv++) { //#18264 - $k[$j++] = 0; //#18264 - } //#18264 - var _Hz = $cvrs($s(10), $_.v, 2); //#18264 - for (var _I0 = 0, _I1 = _Hz.length; _I0 < _I1; _I0++) { //#18264 - $k[$j++] = $get(_Hz, _I0) - 48; //#18264 - } //#18264 - var _I3 = $a(); //#18264 - $k[$j++] = $geti(_I3, _I3.length - 10, 10); //#18265 - }; //#18265 - $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18269 - if (($_.c == 3) && $_.cca) { //#18270 - $_.rwid = 72; //#18270 - } //#18270 - $_.pixs = $a($_.rwid * $_.r); //#18271 - for (var _IF = 0, _IE = $f($_.r - 1); _IF <= _IE; _IF += 1) { //#18309 - $_.i = _IF; //#18274 - $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18275 - $k[$j++] = $_.pixs; //#18307 - $k[$j++] = $_.rwid * $_.i; //#18307 - $k[$j++] = Infinity; //#18307 - if ($_.c == 1) { //#18281 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18278 - $k[$j++] = 0; //#18278 - $_.raptobits(); //#18278 - $aload($k[--$j]); //#18278 - $k[$j++] = $get($_.cws, $_.i); //#18279 - $k[$j++] = $_.clst; //#18279 - $_.cwtobits(); //#18279 - $aload($k[--$j]); //#18279 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18280 - $k[$j++] = 0; //#18280 - $_.raptobits(); //#18280 - $aload($k[--$j]); //#18280 - } //#18280 - if ($_.c == 2) { //#18287 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18283 - $k[$j++] = 0; //#18283 - $_.raptobits(); //#18283 - $aload($k[--$j]); //#18283 - $k[$j++] = $get($_.cws, $_.i * 2); //#18284 - $k[$j++] = $_.clst; //#18284 - $_.cwtobits(); //#18284 - $aload($k[--$j]); //#18284 - $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18285 - $k[$j++] = $_.clst; //#18285 - $_.cwtobits(); //#18285 - $aload($k[--$j]); //#18285 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18286 - $k[$j++] = 0; //#18286 - $_.raptobits(); //#18286 - $aload($k[--$j]); //#18286 - } //#18286 - if ($_.c == 3) { //#18297 - if (!$_.cca) { //#18291 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18290 - $k[$j++] = 0; //#18290 - $_.raptobits(); //#18290 - $aload($k[--$j]); //#18290 - } //#18290 - $k[$j++] = $get($_.cws, $_.i * 3); //#18292 - $k[$j++] = $_.clst; //#18292 - $_.cwtobits(); //#18292 - $aload($k[--$j]); //#18292 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18293 - $k[$j++] = 1; //#18293 - $_.raptobits(); //#18293 - $aload($k[--$j]); //#18293 - $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18294 - $k[$j++] = $_.clst; //#18294 - $_.cwtobits(); //#18294 - $aload($k[--$j]); //#18294 - $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18295 - $k[$j++] = $_.clst; //#18295 - $_.cwtobits(); //#18295 - $aload($k[--$j]); //#18295 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18296 - $k[$j++] = 0; //#18296 - $_.raptobits(); //#18296 - $aload($k[--$j]); //#18296 - } //#18296 - if ($_.c == 4) { //#18306 - $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18299 - $k[$j++] = 0; //#18299 - $_.raptobits(); //#18299 - $aload($k[--$j]); //#18299 - $k[$j++] = $get($_.cws, $_.i * 4); //#18300 - $k[$j++] = $_.clst; //#18300 - $_.cwtobits(); //#18300 - $aload($k[--$j]); //#18300 - $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18301 - $k[$j++] = $_.clst; //#18301 - $_.cwtobits(); //#18301 - $aload($k[--$j]); //#18301 - $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18302 - $k[$j++] = 1; //#18302 - $_.raptobits(); //#18302 - $aload($k[--$j]); //#18302 - $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18303 - $k[$j++] = $_.clst; //#18303 - $_.cwtobits(); //#18303 - $aload($k[--$j]); //#18303 - $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18304 - $k[$j++] = $_.clst; //#18304 - $_.cwtobits(); //#18304 - $aload($k[--$j]); //#18304 - $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18305 - $k[$j++] = 0; //#18305 - $_.raptobits(); //#18305 - $aload($k[--$j]); //#18305 - } //#18305 - $k[$j++] = 1; //#18307 - var _Ji = $a(); //#18307 - var _Jj = $k[--$j]; //#18308 - $puti($k[--$j], _Jj, _Ji); //#18308 - } //#18308 - var _Js = new Map([ + var _Iz = $get($_.raps, $k[--$j]); //#18533 + $_.v = $get(_Iz, $k[--$j]); //#18533 + $k[$j++] = Infinity; //#18534 + for (var _J2 = 0, _J3 = 10; _J2 < _J3; _J2++) { //#18534 + $k[$j++] = 0; //#18534 + } //#18534 + var _J6 = $cvrs($s(10), $_.v, 2); //#18534 + for (var _J7 = 0, _J8 = _J6.length; _J7 < _J8; _J7++) { //#18534 + $k[$j++] = $get(_J6, _J7) - 48; //#18534 + } //#18534 + var _JA = $a(); //#18534 + $k[$j++] = $geti(_JA, _JA.length - 10, 10); //#18535 + }; //#18535 + $_.rwid = $get($a([38, 55, 82, 99]), $f($_.c - 1)); //#18539 + if (($_.c == 3) && $_.cca) { //#18540 + $_.rwid = 72; //#18540 + } //#18540 + $_.pixs = $a(($_.rwid * $_.r) * $_.rowmult); //#18541 + for (var _JN = 0, _JM = $f($_.r - 1); _JN <= _JM; _JN += 1) { //#18583 + $_.i = _JN; //#18544 + $_.clst = ($f($f($_.i + $_.rapl) - 1)) % 3; //#18545 + $k[$j++] = Infinity; //#18546 + if ($_.c == 1) { //#18551 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18548 + $k[$j++] = 0; //#18548 + $_.raptobits(); //#18548 + $aload($k[--$j]); //#18548 + $k[$j++] = $get($_.cws, $_.i); //#18549 + $k[$j++] = $_.clst; //#18549 + $_.cwtobits(); //#18549 + $aload($k[--$j]); //#18549 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18550 + $k[$j++] = 0; //#18550 + $_.raptobits(); //#18550 + $aload($k[--$j]); //#18550 + } //#18550 + if ($_.c == 2) { //#18557 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18553 + $k[$j++] = 0; //#18553 + $_.raptobits(); //#18553 + $aload($k[--$j]); //#18553 + $k[$j++] = $get($_.cws, $_.i * 2); //#18554 + $k[$j++] = $_.clst; //#18554 + $_.cwtobits(); //#18554 + $aload($k[--$j]); //#18554 + $k[$j++] = $get($_.cws, ($_.i * 2) + 1); //#18555 + $k[$j++] = $_.clst; //#18555 + $_.cwtobits(); //#18555 + $aload($k[--$j]); //#18555 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18556 + $k[$j++] = 0; //#18556 + $_.raptobits(); //#18556 + $aload($k[--$j]); //#18556 + } //#18556 + if ($_.c == 3) { //#18567 + if (!$_.cca) { //#18561 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18560 + $k[$j++] = 0; //#18560 + $_.raptobits(); //#18560 + $aload($k[--$j]); //#18560 + } //#18560 + $k[$j++] = $get($_.cws, $_.i * 3); //#18562 + $k[$j++] = $_.clst; //#18562 + $_.cwtobits(); //#18562 + $aload($k[--$j]); //#18562 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18563 + $k[$j++] = 1; //#18563 + $_.raptobits(); //#18563 + $aload($k[--$j]); //#18563 + $k[$j++] = $get($_.cws, ($_.i * 3) + 1); //#18564 + $k[$j++] = $_.clst; //#18564 + $_.cwtobits(); //#18564 + $aload($k[--$j]); //#18564 + $k[$j++] = $get($_.cws, ($_.i * 3) + 2); //#18565 + $k[$j++] = $_.clst; //#18565 + $_.cwtobits(); //#18565 + $aload($k[--$j]); //#18565 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18566 + $k[$j++] = 0; //#18566 + $_.raptobits(); //#18566 + $aload($k[--$j]); //#18566 + } //#18566 + if ($_.c == 4) { //#18576 + $k[$j++] = ($f($f($_.i + $_.rapl) - 1)) % 52; //#18569 + $k[$j++] = 0; //#18569 + $_.raptobits(); //#18569 + $aload($k[--$j]); //#18569 + $k[$j++] = $get($_.cws, $_.i * 4); //#18570 + $k[$j++] = $_.clst; //#18570 + $_.cwtobits(); //#18570 + $aload($k[--$j]); //#18570 + $k[$j++] = $get($_.cws, ($_.i * 4) + 1); //#18571 + $k[$j++] = $_.clst; //#18571 + $_.cwtobits(); //#18571 + $aload($k[--$j]); //#18571 + $k[$j++] = ($f($f($_.i + $_.rapc) - 1)) % 52; //#18572 + $k[$j++] = 1; //#18572 + $_.raptobits(); //#18572 + $aload($k[--$j]); //#18572 + $k[$j++] = $get($_.cws, ($_.i * 4) + 2); //#18573 + $k[$j++] = $_.clst; //#18573 + $_.cwtobits(); //#18573 + $aload($k[--$j]); //#18573 + $k[$j++] = $get($_.cws, ($_.i * 4) + 3); //#18574 + $k[$j++] = $_.clst; //#18574 + $_.cwtobits(); //#18574 + $aload($k[--$j]); //#18574 + $k[$j++] = ($f($f($_.i + $_.rapr) - 1)) % 52; //#18575 + $k[$j++] = 0; //#18575 + $_.raptobits(); //#18575 + $aload($k[--$j]); //#18575 + } //#18575 + $k[$j++] = 1; //#18577 + var _Kn = $a(); //#18577 + $k[$j++] = _Kn; //#18581 + for (var _Kq = 0, _Kp = $_.rowmult - 1; _Kq <= _Kp; _Kq += 1) { //#18581 + var _Kv = $k[--$j]; //#18580 + $puti($_.pixs, (_Kq + ($_.i * $_.rowmult)) * $_.rwid, _Kv); //#18580 + $k[$j++] = _Kv; //#18580 + } //#18580 + $j--; //#18582 + } //#18582 + var _L4 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.rwid], - ["pixy", $_.r], - ["height", ($_.r / 72) * $_.rowmult], + ["pixy", $_.r * $_.rowmult], + ["height", ($_.r * $_.rowmult) / 72], ["width", $_.rwid / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#18319 - $k[$j++] = _Js; //#18322 - if (!$_.dontdraw) { //#18322 - bwipp_renmatrix(); //#18322 - } //#18322 - $_ = Object.getPrototypeOf($_); //#18324 - $_ = Object.getPrototypeOf($_); //#18326 -} - + ]); //#18597 + $k[$j++] = _L4; //#18600 + if (!$_.dontdraw) { //#18600 + bwipp_renmatrix(); //#18600 + } //#18600 + $_ = Object.getPrototypeOf($_); //#18602 + $_ = Object.getPrototypeOf($_); //#18604 +} //bwipp_micropdf417 function bwipp_datamatrix() { - $_ = Object.create($_); //#18357 - $_.dontdraw = false; //#18360 - $_.columns = 0; //#18361 - $_.rows = 0; //#18362 - $_.format = "unset"; //#18363 - $_.version = "unset"; //#18364 - $_.parse = false; //#18365 - $_.parsefnc = false; //#18366 - $_.c40headerlength = -1; //#18367 - $_.raw = false; //#18368 - $_.dmre = false; //#18369 - $k[$j++] = $_; //#18371 - bwipp_processoptions(); //#18371 - $_.options = $k[--$j]; //#18371 - $_.barcode = $k[--$j]; //#18372 - if ($eq($_.barcode, "")) { //#18376 - $k[$j++] = 'bwipp.datamatrixEmptyData#18375'; //#18375 - $k[$j++] = "The data must not be empty"; //#18375 - bwipp_raiseerror(); //#18375 - } //#18375 - if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18380 - $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18379'; //#18379 - $k[$j++] = "rows and columns must not be given if version is specified"; //#18379 - bwipp_raiseerror(); //#18379 - } //#18379 - if ($ne($_.version, "unset")) { //#18404 - $search($_.version, "x"); //#18384 - if ($k[--$j]) { //#18400 - var _9 = $k[--$j]; //#18385 - var _A = $k[--$j]; //#18385 - $k[$j++] = _9; //#18385 - $k[$j++] = _A; //#18385 - $j--; //#18385 - var _B = $k[--$j]; //#18386 - var _C = $k[--$j]; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $k[$j++] = _C; //#18386 - $k[$j++] = _B; //#18386 - $astore($a(2)); //#18386 - $forall($k[--$j], function() { //#18395 - var _F = $k[--$j]; //#18388 - $k[$j++] = _F; //#18388 - $k[$j++] = true; //#18388 - if (_F.length == 0) { //#18388 - $j--; //#18388 - $k[$j++] = false; //#18388 - } //#18388 - var _G = $k[--$j]; //#18389 - var _H = $k[--$j]; //#18389 - $k[$j++] = _G; //#18391 - $forall(_H, function() { //#18391 - var _I = $k[--$j]; //#18390 - if ((_I < 48) || (_I > 57)) { //#18390 - $j--; //#18390 - $k[$j++] = false; //#18390 - } //#18390 - }); //#18390 - if ($nt($k[--$j])) { //#18394 - $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18393'; //#18393 - $k[$j++] = "version must be formatted as RxC"; //#18393 - bwipp_raiseerror(); //#18393 - } //#18393 - }); //#18393 - $_.rows = $cvi($k[--$j]); //#18396 - $_.columns = $cvi($k[--$j]); //#18397 - $k[$j++] = 'format'; //#18398 - if ($_.rows == $_.columns) { //#18398 - $k[$j++] = "square"; //#18398 - } else { //#18398 - $k[$j++] = "rectangle"; //#18398 - } //#18398 - var _O = $k[--$j]; //#18398 - $_[$k[--$j]] = _O; //#18398 - } else { //#18400 - $j--; //#18400 - $k[$j++] = 'bwipp.datamatrixVersionFormat#18400'; //#18400 - $k[$j++] = "version must be formatted as RxC"; //#18400 - bwipp_raiseerror(); //#18400 - } //#18400 - } else { //#18404 - if ($eq($_.format, "unset")) { //#18405 - $k[$j++] = 'format'; //#18404 - if ($_.dmre) { //#18404 - $k[$j++] = "rectangle"; //#18404 - } else { //#18404 - $k[$j++] = "square"; //#18404 - } //#18404 - var _S = $k[--$j]; //#18404 - $_[$k[--$j]] = _S; //#18404 - } //#18404 - } //#18404 - if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18410 - $k[$j++] = 'bwipp.datamatrixInvalidFormat#18409'; //#18409 - $k[$j++] = "The format must be either square or rectangle"; //#18409 - bwipp_raiseerror(); //#18409 - } //#18409 - bwipp_loadctx(bwipp_datamatrix) //#18412 - if (!bwipp_datamatrix.__18469__) { //#18469 - $_ = Object.create($_); //#18469 - var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18458 - $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18468 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18468 - bwipp_datamatrix.__18469__ = 1; //#18468 - $_ = Object.getPrototypeOf($_); //#18468 - } //#18468 - $_.urows = $_.rows; //#18472 - $_.ucols = $_.columns; //#18473 - $_.fullcws = $a([]); //#18474 - var _1N = $_.metrics; //#18475 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18494 - $_.m = $get(_1N, _1O); //#18476 - $_.rows = $get($_.m, 0); //#18477 - $_.cols = $get($_.m, 1); //#18478 - $_.regh = $get($_.m, 2); //#18479 - $_.regv = $get($_.m, 3); //#18480 - $_.rscw = $get($_.m, 4); //#18481 - $_.rsbl = $get($_.m, 5); //#18482 - $_.doly = $get($_.m, 6); //#18483 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#18484 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#18485 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18486 - $_.okay = true; //#18487 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18488 - $_.okay = false; //#18488 - } //#18488 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18489 - $_.okay = false; //#18489 - } //#18489 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18490 - $_.okay = false; //#18490 - } //#18490 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18491 - $_.okay = false; //#18491 - } //#18491 - if ((!$_.dmre) && ($_.doly == 1)) { //#18492 - $_.okay = false; //#18492 - } //#18492 - if ($_.okay) { //#18493 - $k[$j++] = Infinity; //#18493 - $aload($_.fullcws); //#18493 - $k[$j++] = $_.ncws; //#18493 - $_.fullcws = $a(); //#18493 - } //#18493 - } //#18493 - $k[$j++] = Infinity; //#18495 - for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18495 - $k[$j++] = 10000; //#18495 - } //#18495 - $_.numremcws = $a(); //#18495 - var _27 = $_.fullcws; //#18496 - for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18496 - $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18496 - } //#18496 - for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18502 - $_.i = _2C; //#18498 - if ($get($_.numremcws, $_.i) != 1) { //#18501 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18500 - } //#18500 - } //#18500 - if (!bwipp_datamatrix.__18615__) { //#18615 - $_ = Object.create($_); //#18615 - $_.fnc1 = -1; //#18506 - $_.prog = -2; //#18506 - $_.m05 = -3; //#18506 - $_.m06 = -4; //#18506 - $_.lC = -5; //#18507 - $_.lB = -6; //#18507 - $_.lX = -7; //#18507 - $_.lT = -8; //#18507 - $_.lE = -9; //#18507 - $_.unl = -10; //#18507 - $_.sapp = -11; //#18508 - $_.usft = -12; //#18508 - $_.sft1 = -13; //#18508 - $_.sft2 = -14; //#18508 - $_.sft3 = -15; //#18508 - $_.eci = -16; //#18508 - $_.pad = -17; //#18508 - $_.unlcw = 254; //#18509 - $k[$j++] = Infinity; //#18518 - for (var _2L = 0; _2L <= 128; _2L += 1) { //#18512 - $k[$j++] = _2L; //#18512 - $k[$j++] = _2L + 1; //#18512 - } //#18512 - $k[$j++] = $_.pad; //#18517 - $k[$j++] = 129; //#18517 - for (var _2N = 0; _2N <= 99; _2N += 1) { //#18517 - var _2P = $cvrs($s(2), _2N, 10); //#18515 - var _2R = $strcpy($s(2), "00"); //#18515 - $puti(_2R, 2 - _2P.length, _2P); //#18515 - $k[$j++] = _2R; //#18516 - $k[$j++] = _2N + 130; //#18516 - } //#18516 - var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18518 - $k[$j++] = 229; //#18518 - for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18518 - var _2j = $f($k[--$j] + 1); //#18518 - $k[$j++] = $get(_2e, _2f); //#18518 - $k[$j++] = _2j; //#18518 - $k[$j++] = _2j; //#18518 - } //#18518 - $j--; //#18518 - $_.Avals = $d(); //#18519 - $k[$j++] = Infinity; //#18521 - var _2l = $_.Avals; //#18521 - for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18521 - var _2m = _2p.next().value; //#18521 - $k[$j++] = _2m; //#18521 - $k[$j++] = _2l.get(_2m); //#18521 - $k[$j++] = Infinity; //#18521 - var _2r = $k[--$j]; //#18521 - var _2s = $k[--$j]; //#18521 - $k[$j++] = _2r; //#18521 - $k[$j++] = _2s; //#18521 - var _2t = $a(); //#18521 - $k[$j++] = _2t; //#18521 - } //#18521 - $_.Avals = $d(); //#18522 - $k[$j++] = Infinity; //#18530 - $k[$j++] = $_.sft1; //#18529 - $k[$j++] = 0; //#18529 - $k[$j++] = $_.sft2; //#18529 - $k[$j++] = 1; //#18529 - $k[$j++] = $_.sft3; //#18529 - $k[$j++] = 2; //#18529 - $k[$j++] = 32; //#18529 - $k[$j++] = 3; //#18529 - for (var _2y = 48; _2y <= 57; _2y += 1) { //#18529 - $k[$j++] = _2y; //#18529 - $k[$j++] = _2y - 44; //#18529 - } //#18529 - for (var _2z = 65; _2z <= 90; _2z += 1) { //#18530 - $k[$j++] = _2z; //#18530 - $k[$j++] = _2z - 51; //#18530 - } //#18530 - $_.CNvals = $d(); //#18531 - $k[$j++] = Infinity; //#18532 - for (var _31 = 0; _31 <= 31; _31 += 1) { //#18532 - $k[$j++] = _31; //#18532 - $k[$j++] = _31; //#18532 - } //#18532 - $_.C1vals = $d(); //#18532 - $k[$j++] = Infinity; //#18538 - for (var _33 = 33; _33 <= 47; _33 += 1) { //#18534 - $k[$j++] = _33; //#18534 - $k[$j++] = _33 - 33; //#18534 - } //#18534 - for (var _34 = 58; _34 <= 64; _34 += 1) { //#18535 - $k[$j++] = _34; //#18535 - $k[$j++] = _34 - 43; //#18535 - } //#18535 - for (var _35 = 91; _35 <= 95; _35 += 1) { //#18536 - $k[$j++] = _35; //#18536 - $k[$j++] = _35 - 69; //#18536 - } //#18536 - $k[$j++] = $_.fnc1; //#18538 - $k[$j++] = 27; //#18538 - $k[$j++] = $_.usft; //#18538 - $k[$j++] = 30; //#18538 - $_.C2vals = $d(); //#18539 - $k[$j++] = Infinity; //#18540 - for (var _39 = 96; _39 <= 127; _39 += 1) { //#18540 - $k[$j++] = _39; //#18540 - $k[$j++] = _39 - 96; //#18540 - } //#18540 - $_.C3vals = $d(); //#18540 - $k[$j++] = Infinity; //#18545 - var _3B = $_.CNvals; //#18542 - for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18542 - var _3C = _3F.next().value; //#18542 - $k[$j++] = _3C; //#18542 - $k[$j++] = _3B.get(_3C); //#18542 - $k[$j++] = Infinity; //#18542 - var _3H = $k[--$j]; //#18542 - var _3I = $k[--$j]; //#18542 - $k[$j++] = _3H; //#18542 - $k[$j++] = _3I; //#18542 - var _3J = $a(); //#18542 - $k[$j++] = _3J; //#18542 - } //#18542 - var _3K = $_.C1vals; //#18543 - for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18543 - var _3L = _3O.next().value; //#18543 - $k[$j++] = _3L; //#18543 - $k[$j++] = _3K.get(_3L); //#18543 - $k[$j++] = Infinity; //#18543 - var _3Q = $k[--$j]; //#18543 - var _3R = $k[--$j]; //#18543 - $k[$j++] = _3Q; //#18543 - $k[$j++] = $get($_.CNvals, $_.sft1); //#18543 - $k[$j++] = _3R; //#18543 - var _3V = $a(); //#18543 - $k[$j++] = _3V; //#18543 - } //#18543 - var _3W = $_.C2vals; //#18544 - for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18544 - var _3X = _3a.next().value; //#18544 - $k[$j++] = _3X; //#18544 - $k[$j++] = _3W.get(_3X); //#18544 - $k[$j++] = Infinity; //#18544 - var _3c = $k[--$j]; //#18544 - var _3d = $k[--$j]; //#18544 - $k[$j++] = _3c; //#18544 - $k[$j++] = $get($_.CNvals, $_.sft2); //#18544 - $k[$j++] = _3d; //#18544 - var _3h = $a(); //#18544 - $k[$j++] = _3h; //#18544 - } //#18544 - var _3i = $_.C3vals; //#18545 - for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18545 - var _3j = _3m.next().value; //#18545 - $k[$j++] = _3j; //#18545 - $k[$j++] = _3i.get(_3j); //#18545 - $k[$j++] = Infinity; //#18545 - var _3o = $k[--$j]; //#18545 - var _3p = $k[--$j]; //#18545 - $k[$j++] = _3o; //#18545 - $k[$j++] = $get($_.CNvals, $_.sft3); //#18545 - $k[$j++] = _3p; //#18545 - var _3t = $a(); //#18545 - $k[$j++] = _3t; //#18545 - } //#18545 - $_.Cvals = $d(); //#18546 - $k[$j++] = Infinity; //#18554 - $k[$j++] = $_.sft1; //#18553 - $k[$j++] = 0; //#18553 - $k[$j++] = $_.sft2; //#18553 - $k[$j++] = 1; //#18553 - $k[$j++] = $_.sft3; //#18553 - $k[$j++] = 2; //#18553 - $k[$j++] = 32; //#18553 - $k[$j++] = 3; //#18553 - for (var _3y = 48; _3y <= 57; _3y += 1) { //#18553 - $k[$j++] = _3y; //#18553 - $k[$j++] = _3y - 44; //#18553 - } //#18553 - for (var _3z = 97; _3z <= 122; _3z += 1) { //#18554 - $k[$j++] = _3z; //#18554 - $k[$j++] = _3z - 83; //#18554 - } //#18554 - $_.TNvals = $d(); //#18555 - $k[$j++] = Infinity; //#18556 - for (var _41 = 0; _41 <= 31; _41 += 1) { //#18556 - $k[$j++] = _41; //#18556 - $k[$j++] = _41; //#18556 - } //#18556 - $_.T1vals = $d(); //#18556 - $k[$j++] = Infinity; //#18562 - for (var _43 = 33; _43 <= 47; _43 += 1) { //#18558 - $k[$j++] = _43; //#18558 - $k[$j++] = _43 - 33; //#18558 - } //#18558 - for (var _44 = 58; _44 <= 64; _44 += 1) { //#18559 - $k[$j++] = _44; //#18559 - $k[$j++] = _44 - 43; //#18559 - } //#18559 - for (var _45 = 91; _45 <= 95; _45 += 1) { //#18560 - $k[$j++] = _45; //#18560 - $k[$j++] = _45 - 69; //#18560 - } //#18560 - $k[$j++] = $_.fnc1; //#18562 - $k[$j++] = 27; //#18562 - $k[$j++] = $_.usft; //#18562 - $k[$j++] = 30; //#18562 - $_.T2vals = $d(); //#18563 - $k[$j++] = Infinity; //#18567 - $k[$j++] = 96; //#18566 - $k[$j++] = 0; //#18566 - for (var _49 = 65; _49 <= 90; _49 += 1) { //#18566 - $k[$j++] = _49; //#18566 - $k[$j++] = _49 - 64; //#18566 - } //#18566 - for (var _4A = 123; _4A <= 127; _4A += 1) { //#18567 - $k[$j++] = _4A; //#18567 - $k[$j++] = _4A - 96; //#18567 - } //#18567 - $_.T3vals = $d(); //#18568 - $k[$j++] = Infinity; //#18573 - var _4C = $_.TNvals; //#18570 - for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18570 - var _4D = _4G.next().value; //#18570 - $k[$j++] = _4D; //#18570 - $k[$j++] = _4C.get(_4D); //#18570 - $k[$j++] = Infinity; //#18570 - var _4I = $k[--$j]; //#18570 - var _4J = $k[--$j]; //#18570 - $k[$j++] = _4I; //#18570 - $k[$j++] = _4J; //#18570 - var _4K = $a(); //#18570 - $k[$j++] = _4K; //#18570 - } //#18570 - var _4L = $_.T1vals; //#18571 - for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18571 - var _4M = _4P.next().value; //#18571 - $k[$j++] = _4M; //#18571 - $k[$j++] = _4L.get(_4M); //#18571 - $k[$j++] = Infinity; //#18571 - var _4R = $k[--$j]; //#18571 - var _4S = $k[--$j]; //#18571 - $k[$j++] = _4R; //#18571 - $k[$j++] = $get($_.TNvals, $_.sft1); //#18571 - $k[$j++] = _4S; //#18571 - var _4W = $a(); //#18571 - $k[$j++] = _4W; //#18571 - } //#18571 - var _4X = $_.T2vals; //#18572 - for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18572 - var _4Y = _4b.next().value; //#18572 - $k[$j++] = _4Y; //#18572 - $k[$j++] = _4X.get(_4Y); //#18572 - $k[$j++] = Infinity; //#18572 - var _4d = $k[--$j]; //#18572 - var _4e = $k[--$j]; //#18572 - $k[$j++] = _4d; //#18572 - $k[$j++] = $get($_.TNvals, $_.sft2); //#18572 - $k[$j++] = _4e; //#18572 - var _4i = $a(); //#18572 - $k[$j++] = _4i; //#18572 - } //#18572 - var _4j = $_.T3vals; //#18573 - for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18573 - var _4k = _4n.next().value; //#18573 - $k[$j++] = _4k; //#18573 - $k[$j++] = _4j.get(_4k); //#18573 - $k[$j++] = Infinity; //#18573 - var _4p = $k[--$j]; //#18573 - var _4q = $k[--$j]; //#18573 - $k[$j++] = _4p; //#18573 - $k[$j++] = $get($_.TNvals, $_.sft3); //#18573 - $k[$j++] = _4q; //#18573 - var _4u = $a(); //#18573 - $k[$j++] = _4u; //#18573 - } //#18573 - $_.Tvals = $d(); //#18574 - for (var _4w = 128; _4w <= 255; _4w += 1) { //#18582 - $_.i = _4w; //#18578 - $k[$j++] = $_.Avals; //#18579 - $k[$j++] = $_.i; //#18579 - $k[$j++] = Infinity; //#18579 - $aload($get($_.Avals, $_.usft)); //#18579 - $aload($get($_.Avals, $_.i - 128)); //#18579 - var _55 = $a(); //#18579 - var _56 = $k[--$j]; //#18579 - $put($k[--$j], _56, _55); //#18579 - $k[$j++] = $_.Cvals; //#18580 - $k[$j++] = $_.i; //#18580 - $k[$j++] = Infinity; //#18580 - $aload($get($_.Cvals, $_.usft)); //#18580 - $aload($get($_.Cvals, $_.i - 128)); //#18580 - var _5G = $a(); //#18580 - var _5H = $k[--$j]; //#18580 - $put($k[--$j], _5H, _5G); //#18580 - $k[$j++] = $_.Tvals; //#18581 - $k[$j++] = $_.i; //#18581 - $k[$j++] = Infinity; //#18581 - $aload($get($_.Tvals, $_.usft)); //#18581 - $aload($get($_.Tvals, $_.i - 128)); //#18581 - var _5R = $a(); //#18581 - var _5S = $k[--$j]; //#18581 - $put($k[--$j], _5S, _5R); //#18581 - } //#18581 - $k[$j++] = Infinity; //#18590 - $k[$j++] = 13; //#18589 - $k[$j++] = 0; //#18589 - $k[$j++] = 42; //#18589 - $k[$j++] = 1; //#18589 - $k[$j++] = 62; //#18589 - $k[$j++] = 2; //#18589 - $k[$j++] = 32; //#18589 - $k[$j++] = 3; //#18589 - for (var _5U = 48; _5U <= 57; _5U += 1) { //#18589 - $k[$j++] = _5U; //#18589 - $k[$j++] = _5U - 44; //#18589 - } //#18589 - for (var _5V = 65; _5V <= 90; _5V += 1) { //#18590 - $k[$j++] = _5V; //#18590 - $k[$j++] = _5V - 51; //#18590 - } //#18590 - $_.Xvals = $d(); //#18591 - $k[$j++] = Infinity; //#18593 - var _5X = $_.Xvals; //#18593 - for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18593 - var _5Y = _5b.next().value; //#18593 - $k[$j++] = _5Y; //#18593 - $k[$j++] = _5X.get(_5Y); //#18593 - $k[$j++] = Infinity; //#18593 - var _5d = $k[--$j]; //#18593 - var _5e = $k[--$j]; //#18593 - $k[$j++] = _5d; //#18593 - $k[$j++] = _5e; //#18593 - var _5f = $a(); //#18593 - $k[$j++] = _5f; //#18593 - } //#18593 - $_.Xvals = $d(); //#18594 - $k[$j++] = Infinity; //#18599 - for (var _5h = 64; _5h <= 94; _5h += 1) { //#18597 - $k[$j++] = _5h; //#18597 - $k[$j++] = _5h - 64; //#18597 - } //#18597 - $k[$j++] = $_.unl; //#18599 - $k[$j++] = 31; //#18599 - for (var _5j = 32; _5j <= 63; _5j += 1) { //#18599 - $k[$j++] = _5j; //#18599 - $k[$j++] = _5j; //#18599 - } //#18599 - $_.Evals = $d(); //#18600 - $k[$j++] = Infinity; //#18602 - var _5l = $_.Evals; //#18602 - for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18602 - var _5m = _5p.next().value; //#18602 - $k[$j++] = _5m; //#18602 - $k[$j++] = _5l.get(_5m); //#18602 - $k[$j++] = Infinity; //#18602 - var _5r = $k[--$j]; //#18602 - var _5s = $k[--$j]; //#18602 - $k[$j++] = _5r; //#18602 - $k[$j++] = _5s; //#18602 - var _5t = $a(); //#18602 - $k[$j++] = _5t; //#18602 - } //#18602 - $_.Evals = $d(); //#18603 - $k[$j++] = Infinity; //#18606 - for (var _5v = 0; _5v <= 255; _5v += 1) { //#18606 - $k[$j++] = _5v; //#18606 - $k[$j++] = _5v; //#18606 - } //#18606 - $_.Bvals = $d(); //#18607 - $k[$j++] = Infinity; //#18609 - var _5x = $_.Bvals; //#18609 - for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18609 - var _5y = _61.next().value; //#18609 - $k[$j++] = _5y; //#18609 - $k[$j++] = _5x.get(_5y); //#18609 - $k[$j++] = Infinity; //#18609 - var _63 = $k[--$j]; //#18609 - var _64 = $k[--$j]; //#18609 - $k[$j++] = _63; //#18609 - $k[$j++] = _64; //#18609 - var _65 = $a(); //#18609 - $k[$j++] = _65; //#18609 - } //#18609 - $_.Bvals = $d(); //#18610 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18612 - $_.A = 0; //#18614 - $_.C = 1; //#18614 - $_.T = 2; //#18614 - $_.X = 3; //#18614 - $_.E = 4; //#18614 - $_.B = 5; //#18614 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18614 - bwipp_datamatrix.__18615__ = 1; //#18614 - $_ = Object.getPrototypeOf($_); //#18614 - } //#18614 - if ($_.raw) { //#19019 - $_.cws = $a($_.barcode.length); //#18619 - $_.i = 0; //#18620 - $_.j = 0; //#18620 - for (;;) { //#18627 - if ($_.i == $_.barcode.length) { //#18622 - break; //#18622 - } //#18622 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18623 - $put($_.cws, $_.j, $_.cw); //#18624 - $_.i = $_.i + 4; //#18625 - $_.j = $_.j + 1; //#18626 - } //#18626 - $_.cws = $geti($_.cws, 0, $_.j); //#18628 - } else { //#19019 + $_ = Object.create($_); //#18635 + $_.dontdraw = false; //#18638 + $_.columns = 0; //#18639 + $_.rows = 0; //#18640 + $_.format = "unset"; //#18641 + $_.version = "unset"; //#18642 + $_.parse = false; //#18643 + $_.parsefnc = false; //#18644 + $_.c40headerlength = -1; //#18645 + $_.raw = false; //#18646 + $_.dmre = false; //#18647 + $k[$j++] = $_; //#18649 + bwipp_processoptions(); //#18649 + $_.options = $k[--$j]; //#18649 + $_.barcode = $k[--$j]; //#18650 + if ($eq($_.barcode, "")) { //#18654 + $k[$j++] = 'bwipp.datamatrixEmptyData#18653'; //#18653 + $k[$j++] = "The data must not be empty"; //#18653 + bwipp_raiseerror(); //#18653 + } //#18653 + if ($ne($_.version, "unset") && (($_.rows != 0) || ($_.columns != 0))) { //#18658 + $k[$j++] = 'bwipp.datamatrixVersionRowsCols#18657'; //#18657 + $k[$j++] = "rows and columns must not be given if version is specified"; //#18657 + bwipp_raiseerror(); //#18657 + } //#18657 + if ($ne($_.version, "unset")) { //#18682 + $search($_.version, "x"); //#18662 + if ($k[--$j]) { //#18678 + var _9 = $k[--$j]; //#18663 + var _A = $k[--$j]; //#18663 + $k[$j++] = _9; //#18663 + $k[$j++] = _A; //#18663 + $j--; //#18663 + var _B = $k[--$j]; //#18664 + var _C = $k[--$j]; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $k[$j++] = _C; //#18664 + $k[$j++] = _B; //#18664 + $astore($a(2)); //#18664 + $forall($k[--$j], function() { //#18673 + var _F = $k[--$j]; //#18666 + $k[$j++] = _F; //#18666 + $k[$j++] = true; //#18666 + if (_F.length == 0) { //#18666 + $j--; //#18666 + $k[$j++] = false; //#18666 + } //#18666 + var _G = $k[--$j]; //#18667 + var _H = $k[--$j]; //#18667 + $k[$j++] = _G; //#18669 + $forall(_H, function() { //#18669 + var _I = $k[--$j]; //#18668 + if ((_I < 48) || (_I > 57)) { //#18668 + $j--; //#18668 + $k[$j++] = false; //#18668 + } //#18668 + }); //#18668 + if ($nt($k[--$j])) { //#18672 + $k[$j++] = 'bwipp.datamatrixVersionBadRowOrColumn#18671'; //#18671 + $k[$j++] = "version must be formatted as RxC"; //#18671 + bwipp_raiseerror(); //#18671 + } //#18671 + }); //#18671 + $_.rows = $cvi($k[--$j]); //#18674 + $_.columns = $cvi($k[--$j]); //#18675 + $k[$j++] = 'format'; //#18676 + if ($_.rows == $_.columns) { //#18676 + $k[$j++] = "square"; //#18676 + } else { //#18676 + $k[$j++] = "rectangle"; //#18676 + } //#18676 + var _O = $k[--$j]; //#18676 + $_[$k[--$j]] = _O; //#18676 + } else { //#18678 + $j--; //#18678 + $k[$j++] = 'bwipp.datamatrixVersionFormat#18678'; //#18678 + $k[$j++] = "version must be formatted as RxC"; //#18678 + bwipp_raiseerror(); //#18678 + } //#18678 + } else { //#18682 + if ($eq($_.format, "unset")) { //#18683 + $k[$j++] = 'format'; //#18682 + if ($_.dmre) { //#18682 + $k[$j++] = "rectangle"; //#18682 + } else { //#18682 + $k[$j++] = "square"; //#18682 + } //#18682 + var _S = $k[--$j]; //#18682 + $_[$k[--$j]] = _S; //#18682 + } //#18682 + } //#18682 + if ($ne($_.format, "square") && $ne($_.format, "rectangle")) { //#18688 + $k[$j++] = 'bwipp.datamatrixInvalidFormat#18687'; //#18687 + $k[$j++] = "The format must be either square or rectangle"; //#18687 + bwipp_raiseerror(); //#18687 + } //#18687 + bwipp_loadctx(bwipp_datamatrix) //#18690 + if (!bwipp_datamatrix.__18747__) { //#18747 + $_ = Object.create($_); //#18747 + var _18 = $a([16, 64, 1, 4, 36, 1, 1]); //#18736 + $_.metrics = $a([$a([10, 10, 1, 1, 5, 1, 0]), $a([12, 12, 1, 1, 7, 1, 0]), $a([14, 14, 1, 1, 10, 1, 0]), $a([16, 16, 1, 1, 12, 1, 0]), $a([18, 18, 1, 1, 14, 1, 0]), $a([20, 20, 1, 1, 18, 1, 0]), $a([22, 22, 1, 1, 20, 1, 0]), $a([24, 24, 1, 1, 24, 1, 0]), $a([26, 26, 1, 1, 28, 1, 0]), $a([32, 32, 2, 2, 36, 1, 0]), $a([36, 36, 2, 2, 42, 1, 0]), $a([40, 40, 2, 2, 48, 1, 0]), $a([44, 44, 2, 2, 56, 1, 0]), $a([48, 48, 2, 2, 68, 1, 0]), $a([52, 52, 2, 2, 84, 2, 0]), $a([64, 64, 4, 4, 112, 2, 0]), $a([72, 72, 4, 4, 144, 4, 0]), $a([80, 80, 4, 4, 192, 4, 0]), $a([88, 88, 4, 4, 224, 4, 0]), $a([96, 96, 4, 4, 272, 4, 0]), $a([104, 104, 4, 4, 336, 6, 0]), $a([120, 120, 6, 6, 408, 6, 0]), $a([132, 132, 6, 6, 496, 8, 0]), $a([144, 144, 6, 6, 620, 10, 0]), $a([8, 18, 1, 1, 7, 1, 0]), $a([8, 32, 1, 2, 11, 1, 0]), $a([8, 48, 1, 2, 15, 1, 1]), $a([8, 64, 1, 4, 18, 1, 1]), $a([8, 80, 1, 4, 22, 1, 1]), $a([8, 96, 1, 4, 28, 1, 1]), $a([8, 120, 1, 6, 32, 1, 1]), $a([8, 144, 1, 6, 36, 1, 1]), $a([12, 26, 1, 1, 14, 1, 0]), $a([12, 36, 1, 2, 18, 1, 0]), $a([12, 64, 1, 4, 27, 1, 1]), $a([12, 88, 1, 4, 36, 1, 1]), $a([16, 36, 1, 2, 24, 1, 0]), $a([16, 48, 1, 2, 28, 1, 0]), _18, $a([20, 36, 1, 2, 28, 1, 1]), $a([20, 44, 1, 2, 34, 1, 1]), $a([20, 64, 1, 4, 42, 1, 1]), $a([22, 48, 1, 2, 38, 1, 1]), $a([24, 48, 1, 2, 41, 1, 1]), $a([24, 64, 1, 4, 46, 1, 1]), $a([26, 40, 1, 2, 38, 1, 1]), $a([26, 48, 1, 2, 42, 1, 1]), $a([26, 64, 1, 4, 50, 1, 1])]); //#18746 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18746 + bwipp_datamatrix.__18747__ = 1; //#18746 + $_ = Object.getPrototypeOf($_); //#18746 + } //#18746 + $_.urows = $_.rows; //#18750 + $_.ucols = $_.columns; //#18751 + $_.fullcws = $a([]); //#18752 + var _1N = $_.metrics; //#18753 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#18772 + $_.m = $get(_1N, _1O); //#18754 + $_.rows = $get($_.m, 0); //#18755 + $_.cols = $get($_.m, 1); //#18756 + $_.regh = $get($_.m, 2); //#18757 + $_.regv = $get($_.m, 3); //#18758 + $_.rscw = $get($_.m, 4); //#18759 + $_.rsbl = $get($_.m, 5); //#18760 + $_.doly = $get($_.m, 6); //#18761 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#18762 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#18763 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#18764 + $_.okay = true; //#18765 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#18766 + $_.okay = false; //#18766 + } //#18766 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#18767 + $_.okay = false; //#18767 + } //#18767 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#18768 + $_.okay = false; //#18768 + } //#18768 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#18769 + $_.okay = false; //#18769 + } //#18769 + if ((!$_.dmre) && ($_.doly == 1)) { //#18770 + $_.okay = false; //#18770 + } //#18770 + if ($_.okay) { //#18771 + $k[$j++] = Infinity; //#18771 + $aload($_.fullcws); //#18771 + $k[$j++] = $_.ncws; //#18771 + $_.fullcws = $a(); //#18771 + } //#18771 + } //#18771 + $k[$j++] = Infinity; //#18773 + for (var _24 = 0, _25 = 1558; _24 < _25; _24++) { //#18773 + $k[$j++] = 10000; //#18773 + } //#18773 + $_.numremcws = $a(); //#18773 + var _27 = $_.fullcws; //#18774 + for (var _28 = 0, _29 = _27.length; _28 < _29; _28++) { //#18774 + $put($_.numremcws, $f($get(_27, _28) - 1), 1); //#18774 + } //#18774 + for (var _2C = 1556; _2C >= 0; _2C -= 1) { //#18780 + $_.i = _2C; //#18776 + if ($get($_.numremcws, $_.i) != 1) { //#18779 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#18778 + } //#18778 + } //#18778 + if (!bwipp_datamatrix.__18893__) { //#18893 + $_ = Object.create($_); //#18893 + $_.fnc1 = -1; //#18784 + $_.prog = -2; //#18784 + $_.m05 = -3; //#18784 + $_.m06 = -4; //#18784 + $_.lC = -5; //#18785 + $_.lB = -6; //#18785 + $_.lX = -7; //#18785 + $_.lT = -8; //#18785 + $_.lE = -9; //#18785 + $_.unl = -10; //#18785 + $_.sapp = -11; //#18786 + $_.usft = -12; //#18786 + $_.sft1 = -13; //#18786 + $_.sft2 = -14; //#18786 + $_.sft3 = -15; //#18786 + $_.eci = -16; //#18786 + $_.pad = -17; //#18786 + $_.unlcw = 254; //#18787 + $k[$j++] = Infinity; //#18789 + for (var _2L = 0; _2L <= 128; _2L += 1) { //#18790 + $k[$j++] = _2L; //#18790 + $k[$j++] = _2L + 1; //#18790 + } //#18790 + $k[$j++] = $_.pad; //#18795 + $k[$j++] = 129; //#18795 + for (var _2N = 0; _2N <= 99; _2N += 1) { //#18795 + var _2P = $cvrs($s(2), _2N, 10); //#18793 + var _2R = $strcpy($s(2), "00"); //#18793 + $puti(_2R, 2 - _2P.length, _2P); //#18793 + $k[$j++] = _2R; //#18794 + $k[$j++] = _2N + 130; //#18794 + } //#18794 + var _2e = $a([$_.lC, $_.lB, $_.fnc1, $_.sapp, $_.prog, $_.usft, $_.m05, $_.m06, $_.lX, $_.lT, $_.lE, $_.eci]); //#18796 + $k[$j++] = 229; //#18796 + for (var _2f = 0, _2g = _2e.length; _2f < _2g; _2f++) { //#18796 + var _2j = $f($k[--$j] + 1); //#18796 + $k[$j++] = $get(_2e, _2f); //#18796 + $k[$j++] = _2j; //#18796 + $k[$j++] = _2j; //#18796 + } //#18796 + $j--; //#18796 + $_.Avals = $d(); //#18797 + $k[$j++] = Infinity; //#18798 + var _2l = $_.Avals; //#18799 + for (var _2q = _2l.size, _2p = _2l.keys(), _2o = 0; _2o < _2q; _2o++) { //#18799 + var _2m = _2p.next().value; //#18799 + $k[$j++] = _2m; //#18799 + $k[$j++] = _2l.get(_2m); //#18799 + $k[$j++] = Infinity; //#18799 + var _2r = $k[--$j]; //#18799 + var _2s = $k[--$j]; //#18799 + $k[$j++] = _2r; //#18799 + $k[$j++] = _2s; //#18799 + var _2t = $a(); //#18799 + $k[$j++] = _2t; //#18799 + } //#18799 + $_.Avals = $d(); //#18800 + $k[$j++] = Infinity; //#18802 + $k[$j++] = $_.sft1; //#18807 + $k[$j++] = 0; //#18807 + $k[$j++] = $_.sft2; //#18807 + $k[$j++] = 1; //#18807 + $k[$j++] = $_.sft3; //#18807 + $k[$j++] = 2; //#18807 + $k[$j++] = 32; //#18807 + $k[$j++] = 3; //#18807 + for (var _2y = 48; _2y <= 57; _2y += 1) { //#18807 + $k[$j++] = _2y; //#18807 + $k[$j++] = _2y - 44; //#18807 + } //#18807 + for (var _2z = 65; _2z <= 90; _2z += 1) { //#18808 + $k[$j++] = _2z; //#18808 + $k[$j++] = _2z - 51; //#18808 + } //#18808 + $_.CNvals = $d(); //#18809 + $k[$j++] = Infinity; //#18810 + for (var _31 = 0; _31 <= 31; _31 += 1) { //#18810 + $k[$j++] = _31; //#18810 + $k[$j++] = _31; //#18810 + } //#18810 + $_.C1vals = $d(); //#18810 + $k[$j++] = Infinity; //#18811 + for (var _33 = 33; _33 <= 47; _33 += 1) { //#18812 + $k[$j++] = _33; //#18812 + $k[$j++] = _33 - 33; //#18812 + } //#18812 + for (var _34 = 58; _34 <= 64; _34 += 1) { //#18813 + $k[$j++] = _34; //#18813 + $k[$j++] = _34 - 43; //#18813 + } //#18813 + for (var _35 = 91; _35 <= 95; _35 += 1) { //#18814 + $k[$j++] = _35; //#18814 + $k[$j++] = _35 - 69; //#18814 + } //#18814 + $k[$j++] = $_.fnc1; //#18816 + $k[$j++] = 27; //#18816 + $k[$j++] = $_.usft; //#18816 + $k[$j++] = 30; //#18816 + $_.C2vals = $d(); //#18817 + $k[$j++] = Infinity; //#18818 + for (var _39 = 96; _39 <= 127; _39 += 1) { //#18818 + $k[$j++] = _39; //#18818 + $k[$j++] = _39 - 96; //#18818 + } //#18818 + $_.C3vals = $d(); //#18818 + $k[$j++] = Infinity; //#18819 + var _3B = $_.CNvals; //#18820 + for (var _3G = _3B.size, _3F = _3B.keys(), _3E = 0; _3E < _3G; _3E++) { //#18820 + var _3C = _3F.next().value; //#18820 + $k[$j++] = _3C; //#18820 + $k[$j++] = _3B.get(_3C); //#18820 + $k[$j++] = Infinity; //#18820 + var _3H = $k[--$j]; //#18820 + var _3I = $k[--$j]; //#18820 + $k[$j++] = _3H; //#18820 + $k[$j++] = _3I; //#18820 + var _3J = $a(); //#18820 + $k[$j++] = _3J; //#18820 + } //#18820 + var _3K = $_.C1vals; //#18821 + for (var _3P = _3K.size, _3O = _3K.keys(), _3N = 0; _3N < _3P; _3N++) { //#18821 + var _3L = _3O.next().value; //#18821 + $k[$j++] = _3L; //#18821 + $k[$j++] = _3K.get(_3L); //#18821 + $k[$j++] = Infinity; //#18821 + var _3Q = $k[--$j]; //#18821 + var _3R = $k[--$j]; //#18821 + $k[$j++] = _3Q; //#18821 + $k[$j++] = $get($_.CNvals, $_.sft1); //#18821 + $k[$j++] = _3R; //#18821 + var _3V = $a(); //#18821 + $k[$j++] = _3V; //#18821 + } //#18821 + var _3W = $_.C2vals; //#18822 + for (var _3b = _3W.size, _3a = _3W.keys(), _3Z = 0; _3Z < _3b; _3Z++) { //#18822 + var _3X = _3a.next().value; //#18822 + $k[$j++] = _3X; //#18822 + $k[$j++] = _3W.get(_3X); //#18822 + $k[$j++] = Infinity; //#18822 + var _3c = $k[--$j]; //#18822 + var _3d = $k[--$j]; //#18822 + $k[$j++] = _3c; //#18822 + $k[$j++] = $get($_.CNvals, $_.sft2); //#18822 + $k[$j++] = _3d; //#18822 + var _3h = $a(); //#18822 + $k[$j++] = _3h; //#18822 + } //#18822 + var _3i = $_.C3vals; //#18823 + for (var _3n = _3i.size, _3m = _3i.keys(), _3l = 0; _3l < _3n; _3l++) { //#18823 + var _3j = _3m.next().value; //#18823 + $k[$j++] = _3j; //#18823 + $k[$j++] = _3i.get(_3j); //#18823 + $k[$j++] = Infinity; //#18823 + var _3o = $k[--$j]; //#18823 + var _3p = $k[--$j]; //#18823 + $k[$j++] = _3o; //#18823 + $k[$j++] = $get($_.CNvals, $_.sft3); //#18823 + $k[$j++] = _3p; //#18823 + var _3t = $a(); //#18823 + $k[$j++] = _3t; //#18823 + } //#18823 + $_.Cvals = $d(); //#18824 + $k[$j++] = Infinity; //#18826 + $k[$j++] = $_.sft1; //#18831 + $k[$j++] = 0; //#18831 + $k[$j++] = $_.sft2; //#18831 + $k[$j++] = 1; //#18831 + $k[$j++] = $_.sft3; //#18831 + $k[$j++] = 2; //#18831 + $k[$j++] = 32; //#18831 + $k[$j++] = 3; //#18831 + for (var _3y = 48; _3y <= 57; _3y += 1) { //#18831 + $k[$j++] = _3y; //#18831 + $k[$j++] = _3y - 44; //#18831 + } //#18831 + for (var _3z = 97; _3z <= 122; _3z += 1) { //#18832 + $k[$j++] = _3z; //#18832 + $k[$j++] = _3z - 83; //#18832 + } //#18832 + $_.TNvals = $d(); //#18833 + $k[$j++] = Infinity; //#18834 + for (var _41 = 0; _41 <= 31; _41 += 1) { //#18834 + $k[$j++] = _41; //#18834 + $k[$j++] = _41; //#18834 + } //#18834 + $_.T1vals = $d(); //#18834 + $k[$j++] = Infinity; //#18835 + for (var _43 = 33; _43 <= 47; _43 += 1) { //#18836 + $k[$j++] = _43; //#18836 + $k[$j++] = _43 - 33; //#18836 + } //#18836 + for (var _44 = 58; _44 <= 64; _44 += 1) { //#18837 + $k[$j++] = _44; //#18837 + $k[$j++] = _44 - 43; //#18837 + } //#18837 + for (var _45 = 91; _45 <= 95; _45 += 1) { //#18838 + $k[$j++] = _45; //#18838 + $k[$j++] = _45 - 69; //#18838 + } //#18838 + $k[$j++] = $_.fnc1; //#18840 + $k[$j++] = 27; //#18840 + $k[$j++] = $_.usft; //#18840 + $k[$j++] = 30; //#18840 + $_.T2vals = $d(); //#18841 + $k[$j++] = Infinity; //#18842 + $k[$j++] = 96; //#18844 + $k[$j++] = 0; //#18844 + for (var _49 = 65; _49 <= 90; _49 += 1) { //#18844 + $k[$j++] = _49; //#18844 + $k[$j++] = _49 - 64; //#18844 + } //#18844 + for (var _4A = 123; _4A <= 127; _4A += 1) { //#18845 + $k[$j++] = _4A; //#18845 + $k[$j++] = _4A - 96; //#18845 + } //#18845 + $_.T3vals = $d(); //#18846 + $k[$j++] = Infinity; //#18847 + var _4C = $_.TNvals; //#18848 + for (var _4H = _4C.size, _4G = _4C.keys(), _4F = 0; _4F < _4H; _4F++) { //#18848 + var _4D = _4G.next().value; //#18848 + $k[$j++] = _4D; //#18848 + $k[$j++] = _4C.get(_4D); //#18848 + $k[$j++] = Infinity; //#18848 + var _4I = $k[--$j]; //#18848 + var _4J = $k[--$j]; //#18848 + $k[$j++] = _4I; //#18848 + $k[$j++] = _4J; //#18848 + var _4K = $a(); //#18848 + $k[$j++] = _4K; //#18848 + } //#18848 + var _4L = $_.T1vals; //#18849 + for (var _4Q = _4L.size, _4P = _4L.keys(), _4O = 0; _4O < _4Q; _4O++) { //#18849 + var _4M = _4P.next().value; //#18849 + $k[$j++] = _4M; //#18849 + $k[$j++] = _4L.get(_4M); //#18849 + $k[$j++] = Infinity; //#18849 + var _4R = $k[--$j]; //#18849 + var _4S = $k[--$j]; //#18849 + $k[$j++] = _4R; //#18849 + $k[$j++] = $get($_.TNvals, $_.sft1); //#18849 + $k[$j++] = _4S; //#18849 + var _4W = $a(); //#18849 + $k[$j++] = _4W; //#18849 + } //#18849 + var _4X = $_.T2vals; //#18850 + for (var _4c = _4X.size, _4b = _4X.keys(), _4a = 0; _4a < _4c; _4a++) { //#18850 + var _4Y = _4b.next().value; //#18850 + $k[$j++] = _4Y; //#18850 + $k[$j++] = _4X.get(_4Y); //#18850 + $k[$j++] = Infinity; //#18850 + var _4d = $k[--$j]; //#18850 + var _4e = $k[--$j]; //#18850 + $k[$j++] = _4d; //#18850 + $k[$j++] = $get($_.TNvals, $_.sft2); //#18850 + $k[$j++] = _4e; //#18850 + var _4i = $a(); //#18850 + $k[$j++] = _4i; //#18850 + } //#18850 + var _4j = $_.T3vals; //#18851 + for (var _4o = _4j.size, _4n = _4j.keys(), _4m = 0; _4m < _4o; _4m++) { //#18851 + var _4k = _4n.next().value; //#18851 + $k[$j++] = _4k; //#18851 + $k[$j++] = _4j.get(_4k); //#18851 + $k[$j++] = Infinity; //#18851 + var _4p = $k[--$j]; //#18851 + var _4q = $k[--$j]; //#18851 + $k[$j++] = _4p; //#18851 + $k[$j++] = $get($_.TNvals, $_.sft3); //#18851 + $k[$j++] = _4q; //#18851 + var _4u = $a(); //#18851 + $k[$j++] = _4u; //#18851 + } //#18851 + $_.Tvals = $d(); //#18852 + for (var _4w = 128; _4w <= 255; _4w += 1) { //#18860 + $_.i = _4w; //#18856 + $k[$j++] = $_.Avals; //#18857 + $k[$j++] = $_.i; //#18857 + $k[$j++] = Infinity; //#18857 + $aload($get($_.Avals, $_.usft)); //#18857 + $aload($get($_.Avals, $_.i - 128)); //#18857 + var _55 = $a(); //#18857 + var _56 = $k[--$j]; //#18857 + $put($k[--$j], _56, _55); //#18857 + $k[$j++] = $_.Cvals; //#18858 + $k[$j++] = $_.i; //#18858 + $k[$j++] = Infinity; //#18858 + $aload($get($_.Cvals, $_.usft)); //#18858 + $aload($get($_.Cvals, $_.i - 128)); //#18858 + var _5G = $a(); //#18858 + var _5H = $k[--$j]; //#18858 + $put($k[--$j], _5H, _5G); //#18858 + $k[$j++] = $_.Tvals; //#18859 + $k[$j++] = $_.i; //#18859 + $k[$j++] = Infinity; //#18859 + $aload($get($_.Tvals, $_.usft)); //#18859 + $aload($get($_.Tvals, $_.i - 128)); //#18859 + var _5R = $a(); //#18859 + var _5S = $k[--$j]; //#18859 + $put($k[--$j], _5S, _5R); //#18859 + } //#18859 + $k[$j++] = Infinity; //#18862 + $k[$j++] = 13; //#18867 + $k[$j++] = 0; //#18867 + $k[$j++] = 42; //#18867 + $k[$j++] = 1; //#18867 + $k[$j++] = 62; //#18867 + $k[$j++] = 2; //#18867 + $k[$j++] = 32; //#18867 + $k[$j++] = 3; //#18867 + for (var _5U = 48; _5U <= 57; _5U += 1) { //#18867 + $k[$j++] = _5U; //#18867 + $k[$j++] = _5U - 44; //#18867 + } //#18867 + for (var _5V = 65; _5V <= 90; _5V += 1) { //#18868 + $k[$j++] = _5V; //#18868 + $k[$j++] = _5V - 51; //#18868 + } //#18868 + $_.Xvals = $d(); //#18869 + $k[$j++] = Infinity; //#18870 + var _5X = $_.Xvals; //#18871 + for (var _5c = _5X.size, _5b = _5X.keys(), _5a = 0; _5a < _5c; _5a++) { //#18871 + var _5Y = _5b.next().value; //#18871 + $k[$j++] = _5Y; //#18871 + $k[$j++] = _5X.get(_5Y); //#18871 + $k[$j++] = Infinity; //#18871 + var _5d = $k[--$j]; //#18871 + var _5e = $k[--$j]; //#18871 + $k[$j++] = _5d; //#18871 + $k[$j++] = _5e; //#18871 + var _5f = $a(); //#18871 + $k[$j++] = _5f; //#18871 + } //#18871 + $_.Xvals = $d(); //#18872 + $k[$j++] = Infinity; //#18874 + for (var _5h = 64; _5h <= 94; _5h += 1) { //#18875 + $k[$j++] = _5h; //#18875 + $k[$j++] = _5h - 64; //#18875 + } //#18875 + $k[$j++] = $_.unl; //#18877 + $k[$j++] = 31; //#18877 + for (var _5j = 32; _5j <= 63; _5j += 1) { //#18877 + $k[$j++] = _5j; //#18877 + $k[$j++] = _5j; //#18877 + } //#18877 + $_.Evals = $d(); //#18878 + $k[$j++] = Infinity; //#18879 + var _5l = $_.Evals; //#18880 + for (var _5q = _5l.size, _5p = _5l.keys(), _5o = 0; _5o < _5q; _5o++) { //#18880 + var _5m = _5p.next().value; //#18880 + $k[$j++] = _5m; //#18880 + $k[$j++] = _5l.get(_5m); //#18880 + $k[$j++] = Infinity; //#18880 + var _5r = $k[--$j]; //#18880 + var _5s = $k[--$j]; //#18880 + $k[$j++] = _5r; //#18880 + $k[$j++] = _5s; //#18880 + var _5t = $a(); //#18880 + $k[$j++] = _5t; //#18880 + } //#18880 + $_.Evals = $d(); //#18881 + $k[$j++] = Infinity; //#18883 + for (var _5v = 0; _5v <= 255; _5v += 1) { //#18884 + $k[$j++] = _5v; //#18884 + $k[$j++] = _5v; //#18884 + } //#18884 + $_.Bvals = $d(); //#18885 + $k[$j++] = Infinity; //#18886 + var _5x = $_.Bvals; //#18887 + for (var _62 = _5x.size, _61 = _5x.keys(), _60 = 0; _60 < _62; _60++) { //#18887 + var _5y = _61.next().value; //#18887 + $k[$j++] = _5y; //#18887 + $k[$j++] = _5x.get(_5y); //#18887 + $k[$j++] = Infinity; //#18887 + var _63 = $k[--$j]; //#18887 + var _64 = $k[--$j]; //#18887 + $k[$j++] = _63; //#18887 + $k[$j++] = _64; //#18887 + var _65 = $a(); //#18887 + $k[$j++] = _65; //#18887 + } //#18887 + $_.Bvals = $d(); //#18888 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, $_.Evals, $_.Bvals]); //#18890 + $_.A = 0; //#18892 + $_.C = 1; //#18892 + $_.T = 2; //#18892 + $_.X = 3; //#18892 + $_.E = 4; //#18892 + $_.B = 5; //#18892 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#18892 + bwipp_datamatrix.__18893__ = 1; //#18892 + $_ = Object.getPrototypeOf($_); //#18892 + } //#18892 + if ($_.raw) { //#19297 + $_.cws = $a($_.barcode.length); //#18897 + $_.i = 0; //#18898 + $_.j = 0; //#18898 + for (;;) { //#18905 + if ($_.i == $_.barcode.length) { //#18900 + break; //#18900 + } //#18900 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#18901 + $put($_.cws, $_.j, $_.cw); //#18902 + $_.i = $_.i + 4; //#18903 + $_.j = $_.j + 1; //#18904 + } //#18904 + $_.cws = $geti($_.cws, 0, $_.j); //#18906 + } else { //#19297 var _6Z = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["PROG", $_.prog] - ]); //#18638 - $_.fncvals = _6Z; //#18641 - $k[$j++] = 'msg'; //#18642 - $k[$j++] = $_.barcode; //#18642 - $k[$j++] = $_.fncvals; //#18642 - bwipp_parseinput(); //#18642 - var _6c = $k[--$j]; //#18642 - $_[$k[--$j]] = _6c; //#18642 - $_.msglen = $_.msg.length; //#18643 - if ($_.msglen >= 9) { //#18661 - $aload($geti($_.msg, 0, 7)); //#18647 - var _6i = $k[--$j]; //#18648 - var _6j = $k[--$j]; //#18648 - $k[$j++] = _6i == 29; //#18648 - $k[$j++] = _6j; //#18648 - $j--; //#18648 - var _6k = $k[--$j]; //#18648 - var _6l = $k[--$j]; //#18648 - var _6m = $k[--$j]; //#18648 - var _6n = $k[--$j]; //#18649 - var _6o = $k[--$j]; //#18649 - var _6p = $k[--$j]; //#18649 - if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18660 - $aload($geti($_.msg, $_.msglen - 2, 2)); //#18650 - var _6t = $k[--$j]; //#18651 - var _6u = $k[--$j]; //#18651 - if ((_6t == 4) && (_6u == 30)) { //#18659 - if ($get($_.msg, 5) == 53) { //#18656 - $k[$j++] = Infinity; //#18653 - $k[$j++] = $_.m05; //#18653 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18653 - $_.msg = $a(); //#18653 - } else { //#18656 - if ($get($_.msg, 5) == 54) { //#18657 - $k[$j++] = Infinity; //#18656 - $k[$j++] = $_.m06; //#18656 - $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18656 - $_.msg = $a(); //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - } //#18656 - $_.msglen = $_.msg.length; //#18662 - $k[$j++] = Infinity; //#18664 - for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18664 - $k[$j++] = 0; //#18664 - } //#18664 - $k[$j++] = 0; //#18664 - $_.numD = $a(); //#18664 - $k[$j++] = Infinity; //#18665 - for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18665 - $k[$j++] = 0; //#18665 - } //#18665 - $k[$j++] = 9999; //#18665 - $_.nextXterm = $a(); //#18665 - $k[$j++] = Infinity; //#18666 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18666 - $k[$j++] = 0; //#18666 - } //#18666 - $k[$j++] = 9999; //#18666 - $_.nextNonX = $a(); //#18666 - $k[$j++] = Infinity; //#18667 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18667 - $k[$j++] = false; //#18667 - } //#18667 - $k[$j++] = false; //#18667 - $_.isECI = $a(); //#18667 - for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18685 - $_.i = _7R; //#18669 - $_.barchar = $get($_.msg, $_.i); //#18670 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18673 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18672 - } //#18672 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18677 - $put($_.nextXterm, $_.i, 0); //#18675 - } else { //#18677 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18677 - } //#18677 - var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18679 - if (!_7o) { //#18682 - $put($_.nextNonX, $_.i, 0); //#18680 - } else { //#18682 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18682 - } //#18682 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18684 - } //#18684 - $k[$j++] = Infinity; //#18686 - var _7z = $_.nextXterm; //#18686 - for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18686 - var _82 = $get(_7z, _80); //#18686 - $k[$j++] = _82; //#18686 - if (_82 > 10000) { //#18686 - $j--; //#18686 - $k[$j++] = 10000; //#18686 - } //#18686 - } //#18686 - $_.nextXterm = $a(); //#18686 - $k[$j++] = Infinity; //#18687 - var _84 = $_.nextNonX; //#18687 - for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18687 - var _87 = $get(_84, _85); //#18687 - $k[$j++] = _87; //#18687 - if (_87 > 10000) { //#18687 - $j--; //#18687 - $k[$j++] = 10000; //#18687 - } //#18687 - } //#18687 - $_.nextNonX = $a(); //#18687 + ]); //#18916 + $_.fncvals = _6Z; //#18919 + $k[$j++] = 'msg'; //#18920 + $k[$j++] = $_.barcode; //#18920 + $k[$j++] = $_.fncvals; //#18920 + bwipp_parseinput(); //#18920 + var _6c = $k[--$j]; //#18920 + $_[$k[--$j]] = _6c; //#18920 + $_.msglen = $_.msg.length; //#18921 + if ($_.msglen >= 9) { //#18939 + $aload($geti($_.msg, 0, 7)); //#18925 + var _6i = $k[--$j]; //#18926 + var _6j = $k[--$j]; //#18926 + $k[$j++] = _6i == 29; //#18926 + $k[$j++] = _6j; //#18926 + $j--; //#18926 + var _6k = $k[--$j]; //#18926 + var _6l = $k[--$j]; //#18926 + var _6m = $k[--$j]; //#18926 + var _6n = $k[--$j]; //#18927 + var _6o = $k[--$j]; //#18927 + var _6p = $k[--$j]; //#18927 + if (((((_6k && (_6l == 48)) && (_6m == 30)) && (_6n == 62)) && (_6o == 41)) && (_6p == 91)) { //#18938 + $aload($geti($_.msg, $_.msglen - 2, 2)); //#18928 + var _6t = $k[--$j]; //#18929 + var _6u = $k[--$j]; //#18929 + if ((_6t == 4) && (_6u == 30)) { //#18937 + if ($get($_.msg, 5) == 53) { //#18934 + $k[$j++] = Infinity; //#18931 + $k[$j++] = $_.m05; //#18931 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18931 + $_.msg = $a(); //#18931 + } else { //#18934 + if ($get($_.msg, 5) == 54) { //#18935 + $k[$j++] = Infinity; //#18934 + $k[$j++] = $_.m06; //#18934 + $aload($geti($_.msg, 7, $_.msg.length - 9)); //#18934 + $_.msg = $a(); //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + } //#18934 + $_.msglen = $_.msg.length; //#18940 + $k[$j++] = Infinity; //#18942 + for (var _7B = 0, _7C = $_.msglen; _7B < _7C; _7B++) { //#18942 + $k[$j++] = 0; //#18942 + } //#18942 + $k[$j++] = 0; //#18942 + $_.numD = $a(); //#18942 + $k[$j++] = Infinity; //#18943 + for (var _7F = 0, _7G = $_.msglen; _7F < _7G; _7F++) { //#18943 + $k[$j++] = 0; //#18943 + } //#18943 + $k[$j++] = 9999; //#18943 + $_.nextXterm = $a(); //#18943 + $k[$j++] = Infinity; //#18944 + for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $k[$j++] = 9999; //#18944 + $_.nextNonX = $a(); //#18944 + $k[$j++] = Infinity; //#18945 + for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#18945 + $k[$j++] = false; //#18945 + } //#18945 + $k[$j++] = false; //#18945 + $_.isECI = $a(); //#18945 + for (var _7R = $_.msglen - 1; _7R >= 0; _7R -= 1) { //#18963 + $_.i = _7R; //#18947 + $_.barchar = $get($_.msg, $_.i); //#18948 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#18951 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#18950 + } //#18950 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#18955 + $put($_.nextXterm, $_.i, 0); //#18953 + } else { //#18955 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#18955 + } //#18955 + var _7o = $get($_.Xvals, $_.barchar) !== undefined; //#18957 + if (!_7o) { //#18960 + $put($_.nextNonX, $_.i, 0); //#18958 + } else { //#18960 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#18960 + } //#18960 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#18962 + } //#18962 + $k[$j++] = Infinity; //#18964 + var _7z = $_.nextXterm; //#18964 + for (var _80 = 0, _81 = _7z.length; _80 < _81; _80++) { //#18964 + var _82 = $get(_7z, _80); //#18964 + $k[$j++] = _82; //#18964 + if (_82 > 10000) { //#18964 + $j--; //#18964 + $k[$j++] = 10000; //#18964 + } //#18964 + } //#18964 + $_.nextXterm = $a(); //#18964 + $k[$j++] = Infinity; //#18965 + var _84 = $_.nextNonX; //#18965 + for (var _85 = 0, _86 = _84.length; _85 < _86; _85++) { //#18965 + var _87 = $get(_84, _85); //#18965 + $k[$j++] = _87; //#18965 + if (_87 > 10000) { //#18965 + $j--; //#18965 + $k[$j++] = 10000; //#18965 + } //#18965 + } //#18965 + $_.nextNonX = $a(); //#18965 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18689 - }; //#18689 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#18967 + }; //#18967 $_.isC = function() { - var _8D = $get($_.CNvals, $_.char) !== undefined; //#18690 - $k[$j++] = _8D; //#18690 - }; //#18690 + var _8D = $get($_.CNvals, $_.char) !== undefined; //#18968 + $k[$j++] = _8D; //#18968 + }; //#18968 $_.isT = function() { - var _8G = $get($_.TNvals, $_.char) !== undefined; //#18691 - $k[$j++] = _8G; //#18691 - }; //#18691 + var _8G = $get($_.TNvals, $_.char) !== undefined; //#18969 + $k[$j++] = _8G; //#18969 + }; //#18969 $_.isX = function() { - var _8J = $get($_.Xvals, $_.char) !== undefined; //#18692 - $k[$j++] = _8J; //#18692 - }; //#18692 + var _8J = $get($_.Xvals, $_.char) !== undefined; //#18970 + $k[$j++] = _8J; //#18970 + }; //#18970 $_.isE = function() { - var _8M = $get($_.Evals, $_.char) !== undefined; //#18693 - $k[$j++] = _8M; //#18693 - }; //#18693 + var _8M = $get($_.Evals, $_.char) !== undefined; //#18971 + $k[$j++] = _8M; //#18971 + }; //#18971 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#18694 - }; //#18694 + $k[$j++] = $_.char > 127; //#18972 + }; //#18972 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#18695 - }; //#18695 + $k[$j++] = $_.char < 0; //#18973 + }; //#18973 $_.XtermFirst = function() { - var _8P = $k[--$j]; //#18696 - $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18696 - }; //#18696 + var _8P = $k[--$j]; //#18974 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#18974 + }; //#18974 $_.lookup = function() { - $_.ac = 1; //#18700 - $_.cc = 2; //#18700 - $_.tc = 2; //#18700 - $_.xc = 2; //#18700 - $_.ec = 2; //#18700 - $_.bc = 2.25; //#18700 - if ($_.mode == $_.A) { //#18701 - $_.ac = 0; //#18701 - $_.cc = 1; //#18701 - $_.tc = 1; //#18701 - $_.xc = 1; //#18701 - $_.ec = 1; //#18701 - $_.bc = 1.25; //#18701 - } //#18701 - if ($_.mode == $_.C) { //#18702 - $_.cc = 0; //#18702 - } //#18702 - if ($_.mode == $_.T) { //#18703 - $_.tc = 0; //#18703 - } //#18703 - if ($_.mode == $_.X) { //#18704 - $_.xc = 0; //#18704 - } //#18704 - if ($_.mode == $_.E) { //#18705 - $_.ec = 0; //#18705 - } //#18705 - if ($_.mode == $_.B) { //#18706 - $_.bc = 0; //#18706 - } //#18706 - for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#18741 - if ($get($_.isECI, $_.i)) { //#18708 - $k[$j++] = $_.A; //#18708 - break; //#18708 - } //#18708 - if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18709 - $k[$j++] = $_.C; //#18709 - break; //#18709 - } //#18709 - $_.k = 0; //#18710 - for (;;) { //#18740 - if (($_.i + $_.k) == $_.msglen) { //#18719 - var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18712 - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18712 - var _8w = $get(_8t, _8u); //#18712 - $_[_8w] = Math.ceil($_[_8w]); //#18712 - } //#18712 - var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18713 - $k[$j++] = true; //#18713 - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18713 - var _98 = $k[--$j]; //#18713 - $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18713 - } //#18713 - if ($k[--$j]) { //#18713 - $k[$j++] = $_.A; //#18713 - break; //#18713 - } //#18713 - var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18714 - $k[$j++] = true; //#18714 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18714 - var _9L = $k[--$j]; //#18714 - $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18714 - } //#18714 - if ($k[--$j]) { //#18714 - $k[$j++] = $_.B; //#18714 - break; //#18714 - } //#18714 - var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18715 - $k[$j++] = true; //#18715 - for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18715 - var _9Y = $k[--$j]; //#18715 - $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18715 - } //#18715 - if ($k[--$j]) { //#18715 - $k[$j++] = $_.E; //#18715 - break; //#18715 - } //#18715 - var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18716 - $k[$j++] = true; //#18716 - for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18716 - var _9l = $k[--$j]; //#18716 - $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18716 - } //#18716 - if ($k[--$j]) { //#18716 - $k[$j++] = $_.T; //#18716 - break; //#18716 - } //#18716 - var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18717 - $k[$j++] = true; //#18717 - for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18717 - var _9y = $k[--$j]; //#18717 - $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18717 - } //#18717 - if ($k[--$j]) { //#18717 - $k[$j++] = $_.X; //#18717 - break; //#18717 - } //#18717 - $k[$j++] = $_.C; //#18718 - break; //#18718 - } //#18718 - $_.char = $get($_.msg, $_.i + $_.k); //#18720 - $k[$j++] = 'ac'; //#18721 - $k[$j++] = $_.ac; //#18721 - $_.isD(); //#18721 - if ($k[--$j]) { //#18721 - var _A8 = $k[--$j]; //#18721 - $k[$j++] = $f(_A8 + (1 / 2)); //#18721 - } else { //#18721 - $_.isEA(); //#18721 - if ($k[--$j]) { //#18721 - var _AA = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AA) + 2; //#18721 - } else { //#18721 - var _AB = $k[--$j]; //#18721 - $k[$j++] = Math.ceil(_AB) + 1; //#18721 - } //#18721 - } //#18721 - var _AC = $k[--$j]; //#18721 - $_[$k[--$j]] = _AC; //#18721 - $k[$j++] = 'cc'; //#18722 - $k[$j++] = $_.cc; //#18722 - $_.isC(); //#18722 - if ($k[--$j]) { //#18722 - var _AG = $k[--$j]; //#18722 - $k[$j++] = $f(_AG + 0.6666667); //#18722 - } else { //#18722 - $_.isEA(); //#18722 - if ($k[--$j]) { //#18722 - var _AI = $k[--$j]; //#18722 - $k[$j++] = $f(_AI + 2.6666667); //#18722 - } else { //#18722 - var _AJ = $k[--$j]; //#18722 - $k[$j++] = $f(_AJ + 1.3333334); //#18722 - } //#18722 - } //#18722 - var _AK = $k[--$j]; //#18722 - $_[$k[--$j]] = _AK; //#18722 - $k[$j++] = 'tc'; //#18723 - $k[$j++] = $_.tc; //#18723 - $_.isT(); //#18723 - if ($k[--$j]) { //#18723 - var _AO = $k[--$j]; //#18723 - $k[$j++] = $f(_AO + 0.6666667); //#18723 - } else { //#18723 - $_.isEA(); //#18723 - if ($k[--$j]) { //#18723 - var _AQ = $k[--$j]; //#18723 - $k[$j++] = $f(_AQ + 2.6666667); //#18723 - } else { //#18723 - var _AR = $k[--$j]; //#18723 - $k[$j++] = $f(_AR + 1.3333334); //#18723 - } //#18723 - } //#18723 - var _AS = $k[--$j]; //#18723 - $_[$k[--$j]] = _AS; //#18723 - $k[$j++] = 'xc'; //#18724 - $k[$j++] = $_.xc; //#18724 - $_.isX(); //#18724 - if ($k[--$j]) { //#18724 - var _AW = $k[--$j]; //#18724 - $k[$j++] = $f(_AW + 0.6666667); //#18724 - } else { //#18724 - $_.isEA(); //#18724 - if ($k[--$j]) { //#18724 - var _AY = $k[--$j]; //#18724 - $k[$j++] = $f(_AY + 4.3333334); //#18724 - } else { //#18724 - var _AZ = $k[--$j]; //#18724 - $k[$j++] = $f(_AZ + 3.3333334); //#18724 - } //#18724 - } //#18724 - var _Aa = $k[--$j]; //#18724 - $_[$k[--$j]] = _Aa; //#18724 - $k[$j++] = 'ec'; //#18725 - $k[$j++] = $_.ec; //#18725 - $_.isE(); //#18725 - if ($k[--$j]) { //#18725 - var _Ae = $k[--$j]; //#18725 - $k[$j++] = $f(_Ae + (3 / 4)); //#18725 - } else { //#18725 - $_.isEA(); //#18725 - if ($k[--$j]) { //#18725 - var _Ag = $k[--$j]; //#18725 - $k[$j++] = $f(_Ag + (17 / 4)); //#18725 - } else { //#18725 - var _Ah = $k[--$j]; //#18725 - $k[$j++] = $f(_Ah + (13 / 4)); //#18725 - } //#18725 - } //#18725 - var _Ai = $k[--$j]; //#18725 - $_[$k[--$j]] = _Ai; //#18725 - $k[$j++] = 'bc'; //#18726 - $k[$j++] = $_.bc; //#18726 - $_.isFN(); //#18726 - if ($k[--$j]) { //#18726 - var _Am = $k[--$j]; //#18726 - $k[$j++] = $f(_Am + 4); //#18726 - } else { //#18726 - var _An = $k[--$j]; //#18726 - $k[$j++] = $f(_An + 1); //#18726 - } //#18726 - var _Ao = $k[--$j]; //#18726 - $_[$k[--$j]] = _Ao; //#18726 - if ($_.k >= 4) { //#18738 - var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18728 - $k[$j++] = true; //#18728 - for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#18728 - var _B1 = $k[--$j]; //#18728 - $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#18728 - } //#18728 - if ($k[--$j]) { //#18728 - $k[$j++] = $_.A; //#18728 - break; //#18728 - } //#18728 - if (($_.bc + 1) <= $_.ac) { //#18729 - $k[$j++] = $_.B; //#18729 - break; //#18729 - } //#18729 - var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#18730 - $k[$j++] = true; //#18730 - for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#18730 - var _BG = $k[--$j]; //#18730 - $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#18730 - } //#18730 - if ($k[--$j]) { //#18730 - $k[$j++] = $_.B; //#18730 - break; //#18730 - } //#18730 - var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18731 - $k[$j++] = true; //#18731 - for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#18731 - var _BT = $k[--$j]; //#18731 - $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#18731 - } //#18731 - if ($k[--$j]) { //#18731 - $k[$j++] = $_.E; //#18731 - break; //#18731 - } //#18731 - var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18732 - $k[$j++] = true; //#18732 - for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#18732 - var _Bg = $k[--$j]; //#18732 - $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#18732 - } //#18732 - if ($k[--$j]) { //#18732 - $k[$j++] = $_.T; //#18732 - break; //#18732 - } //#18732 - var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18733 - $k[$j++] = true; //#18733 - for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#18733 - var _Bt = $k[--$j]; //#18733 - $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#18733 - } //#18733 - if ($k[--$j]) { //#18733 - $k[$j++] = $_.X; //#18733 - break; //#18733 - } //#18733 - var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#18734 - $k[$j++] = true; //#18734 - for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#18734 - var _C5 = $k[--$j]; //#18734 - $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#18734 - } //#18734 - if ($k[--$j]) { //#18737 - if ($_.cc < $_.xc) { //#18735 - $k[$j++] = $_.C; //#18735 - break; //#18735 - } //#18735 - if ($_.cc == $_.xc) { //#18736 - $k[$j++] = ($_.i + $_.k) + 1; //#18736 - $_.XtermFirst(); //#18736 - if ($k[--$j]) { //#18736 - $k[$j++] = $_.X; //#18736 - break; //#18736 - } else { //#18736 - $k[$j++] = $_.C; //#18736 - break; //#18736 - } //#18736 - } //#18736 - } //#18736 - } //#18736 - $_.k = $_.k + 1; //#18739 - } //#18739 - } //#18739 - }; //#18739 + $_.ac = 1; //#18978 + $_.cc = 2; //#18978 + $_.tc = 2; //#18978 + $_.xc = 2; //#18978 + $_.ec = 2; //#18978 + $_.bc = 2.25; //#18978 + if ($_.mode == $_.A) { //#18979 + $_.ac = 0; //#18979 + $_.cc = 1; //#18979 + $_.tc = 1; //#18979 + $_.xc = 1; //#18979 + $_.ec = 1; //#18979 + $_.bc = 1.25; //#18979 + } //#18979 + if ($_.mode == $_.C) { //#18980 + $_.cc = 0; //#18980 + } //#18980 + if ($_.mode == $_.T) { //#18981 + $_.tc = 0; //#18981 + } //#18981 + if ($_.mode == $_.X) { //#18982 + $_.xc = 0; //#18982 + } //#18982 + if ($_.mode == $_.E) { //#18983 + $_.ec = 0; //#18983 + } //#18983 + if ($_.mode == $_.B) { //#18984 + $_.bc = 0; //#18984 + } //#18984 + for (var _8g = 0, _8h = 1; _8g < _8h; _8g++) { //#19019 + if ($get($_.isECI, $_.i)) { //#18986 + $k[$j++] = $_.A; //#18986 + break; //#18986 + } //#18986 + if (($_.c40headerlength != -1) && ($_.i < $_.c40headerlength)) { //#18987 + $k[$j++] = $_.C; //#18987 + break; //#18987 + } //#18987 + $_.k = 0; //#18988 + for (;;) { //#19018 + if (($_.i + $_.k) == $_.msglen) { //#18997 + var _8t = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#18990 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#18990 + var _8w = $get(_8t, _8u); //#18990 + $_[_8w] = Math.ceil($_[_8w]); //#18990 + } //#18990 + var _93 = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#18991 + $k[$j++] = true; //#18991 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#18991 + var _98 = $k[--$j]; //#18991 + $k[$j++] = _98 && ($_.ac <= $get(_93, _94)); //#18991 + } //#18991 + if ($k[--$j]) { //#18991 + $k[$j++] = $_.A; //#18991 + break; //#18991 + } //#18991 + var _9G = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.ec]); //#18992 + $k[$j++] = true; //#18992 + for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#18992 + var _9L = $k[--$j]; //#18992 + $k[$j++] = _9L && ($_.bc < $get(_9G, _9H)); //#18992 + } //#18992 + if ($k[--$j]) { //#18992 + $k[$j++] = $_.B; //#18992 + break; //#18992 + } //#18992 + var _9T = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#18993 + $k[$j++] = true; //#18993 + for (var _9U = 0, _9V = _9T.length; _9U < _9V; _9U++) { //#18993 + var _9Y = $k[--$j]; //#18993 + $k[$j++] = _9Y && ($_.ec < $get(_9T, _9U)); //#18993 + } //#18993 + if ($k[--$j]) { //#18993 + $k[$j++] = $_.E; //#18993 + break; //#18993 + } //#18993 + var _9g = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#18994 + $k[$j++] = true; //#18994 + for (var _9h = 0, _9i = _9g.length; _9h < _9i; _9h++) { //#18994 + var _9l = $k[--$j]; //#18994 + $k[$j++] = _9l && ($_.tc < $get(_9g, _9h)); //#18994 + } //#18994 + if ($k[--$j]) { //#18994 + $k[$j++] = $_.T; //#18994 + break; //#18994 + } //#18994 + var _9t = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#18995 + $k[$j++] = true; //#18995 + for (var _9u = 0, _9v = _9t.length; _9u < _9v; _9u++) { //#18995 + var _9y = $k[--$j]; //#18995 + $k[$j++] = _9y && ($_.xc < $get(_9t, _9u)); //#18995 + } //#18995 + if ($k[--$j]) { //#18995 + $k[$j++] = $_.X; //#18995 + break; //#18995 + } //#18995 + $k[$j++] = $_.C; //#18996 + break; //#18996 + } //#18996 + $_.char = $get($_.msg, $_.i + $_.k); //#18998 + $k[$j++] = 'ac'; //#18999 + $k[$j++] = $_.ac; //#18999 + $_.isD(); //#18999 + if ($k[--$j]) { //#18999 + var _A8 = $k[--$j]; //#18999 + $k[$j++] = $f(_A8 + (1 / 2)); //#18999 + } else { //#18999 + $_.isEA(); //#18999 + if ($k[--$j]) { //#18999 + var _AA = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AA) + 2; //#18999 + } else { //#18999 + var _AB = $k[--$j]; //#18999 + $k[$j++] = Math.ceil(_AB) + 1; //#18999 + } //#18999 + } //#18999 + var _AC = $k[--$j]; //#18999 + $_[$k[--$j]] = _AC; //#18999 + $k[$j++] = 'cc'; //#19000 + $k[$j++] = $_.cc; //#19000 + $_.isC(); //#19000 + if ($k[--$j]) { //#19000 + var _AG = $k[--$j]; //#19000 + $k[$j++] = $f(_AG + 0.6666667); //#19000 + } else { //#19000 + $_.isEA(); //#19000 + if ($k[--$j]) { //#19000 + var _AI = $k[--$j]; //#19000 + $k[$j++] = $f(_AI + 2.6666667); //#19000 + } else { //#19000 + var _AJ = $k[--$j]; //#19000 + $k[$j++] = $f(_AJ + 1.3333334); //#19000 + } //#19000 + } //#19000 + var _AK = $k[--$j]; //#19000 + $_[$k[--$j]] = _AK; //#19000 + $k[$j++] = 'tc'; //#19001 + $k[$j++] = $_.tc; //#19001 + $_.isT(); //#19001 + if ($k[--$j]) { //#19001 + var _AO = $k[--$j]; //#19001 + $k[$j++] = $f(_AO + 0.6666667); //#19001 + } else { //#19001 + $_.isEA(); //#19001 + if ($k[--$j]) { //#19001 + var _AQ = $k[--$j]; //#19001 + $k[$j++] = $f(_AQ + 2.6666667); //#19001 + } else { //#19001 + var _AR = $k[--$j]; //#19001 + $k[$j++] = $f(_AR + 1.3333334); //#19001 + } //#19001 + } //#19001 + var _AS = $k[--$j]; //#19001 + $_[$k[--$j]] = _AS; //#19001 + $k[$j++] = 'xc'; //#19002 + $k[$j++] = $_.xc; //#19002 + $_.isX(); //#19002 + if ($k[--$j]) { //#19002 + var _AW = $k[--$j]; //#19002 + $k[$j++] = $f(_AW + 0.6666667); //#19002 + } else { //#19002 + $_.isEA(); //#19002 + if ($k[--$j]) { //#19002 + var _AY = $k[--$j]; //#19002 + $k[$j++] = $f(_AY + 4.3333334); //#19002 + } else { //#19002 + var _AZ = $k[--$j]; //#19002 + $k[$j++] = $f(_AZ + 3.3333334); //#19002 + } //#19002 + } //#19002 + var _Aa = $k[--$j]; //#19002 + $_[$k[--$j]] = _Aa; //#19002 + $k[$j++] = 'ec'; //#19003 + $k[$j++] = $_.ec; //#19003 + $_.isE(); //#19003 + if ($k[--$j]) { //#19003 + var _Ae = $k[--$j]; //#19003 + $k[$j++] = $f(_Ae + (3 / 4)); //#19003 + } else { //#19003 + $_.isEA(); //#19003 + if ($k[--$j]) { //#19003 + var _Ag = $k[--$j]; //#19003 + $k[$j++] = $f(_Ag + (17 / 4)); //#19003 + } else { //#19003 + var _Ah = $k[--$j]; //#19003 + $k[$j++] = $f(_Ah + (13 / 4)); //#19003 + } //#19003 + } //#19003 + var _Ai = $k[--$j]; //#19003 + $_[$k[--$j]] = _Ai; //#19003 + $k[$j++] = 'bc'; //#19004 + $k[$j++] = $_.bc; //#19004 + $_.isFN(); //#19004 + if ($k[--$j]) { //#19004 + var _Am = $k[--$j]; //#19004 + $k[$j++] = $f(_Am + 4); //#19004 + } else { //#19004 + var _An = $k[--$j]; //#19004 + $k[$j++] = $f(_An + 1); //#19004 + } //#19004 + var _Ao = $k[--$j]; //#19004 + $_[$k[--$j]] = _Ao; //#19004 + if ($_.k >= 4) { //#19016 + var _Aw = $a([$_.cc, $_.tc, $_.xc, $_.ec, $_.bc]); //#19006 + $k[$j++] = true; //#19006 + for (var _Ax = 0, _Ay = _Aw.length; _Ax < _Ay; _Ax++) { //#19006 + var _B1 = $k[--$j]; //#19006 + $k[$j++] = _B1 && (($_.ac + 1) <= $get(_Aw, _Ax)); //#19006 + } //#19006 + if ($k[--$j]) { //#19006 + $k[$j++] = $_.A; //#19006 + break; //#19006 + } //#19006 + if (($_.bc + 1) <= $_.ac) { //#19007 + $k[$j++] = $_.B; //#19007 + break; //#19007 + } //#19007 + var _BB = $a([$_.cc, $_.tc, $_.xc, $_.ec]); //#19008 + $k[$j++] = true; //#19008 + for (var _BC = 0, _BD = _BB.length; _BC < _BD; _BC++) { //#19008 + var _BG = $k[--$j]; //#19008 + $k[$j++] = _BG && (($_.bc + 1) < $get(_BB, _BC)); //#19008 + } //#19008 + if ($k[--$j]) { //#19008 + $k[$j++] = $_.B; //#19008 + break; //#19008 + } //#19008 + var _BO = $a([$_.ac, $_.cc, $_.tc, $_.xc, $_.bc]); //#19009 + $k[$j++] = true; //#19009 + for (var _BP = 0, _BQ = _BO.length; _BP < _BQ; _BP++) { //#19009 + var _BT = $k[--$j]; //#19009 + $k[$j++] = _BT && (($_.ec + 1) < $get(_BO, _BP)); //#19009 + } //#19009 + if ($k[--$j]) { //#19009 + $k[$j++] = $_.E; //#19009 + break; //#19009 + } //#19009 + var _Bb = $a([$_.ac, $_.cc, $_.xc, $_.ec, $_.bc]); //#19010 + $k[$j++] = true; //#19010 + for (var _Bc = 0, _Bd = _Bb.length; _Bc < _Bd; _Bc++) { //#19010 + var _Bg = $k[--$j]; //#19010 + $k[$j++] = _Bg && (($_.tc + 1) < $get(_Bb, _Bc)); //#19010 + } //#19010 + if ($k[--$j]) { //#19010 + $k[$j++] = $_.T; //#19010 + break; //#19010 + } //#19010 + var _Bo = $a([$_.ac, $_.cc, $_.tc, $_.ec, $_.bc]); //#19011 + $k[$j++] = true; //#19011 + for (var _Bp = 0, _Bq = _Bo.length; _Bp < _Bq; _Bp++) { //#19011 + var _Bt = $k[--$j]; //#19011 + $k[$j++] = _Bt && (($_.xc + 1) < $get(_Bo, _Bp)); //#19011 + } //#19011 + if ($k[--$j]) { //#19011 + $k[$j++] = $_.X; //#19011 + break; //#19011 + } //#19011 + var _C0 = $a([$_.ac, $_.tc, $_.ec, $_.bc]); //#19012 + $k[$j++] = true; //#19012 + for (var _C1 = 0, _C2 = _C0.length; _C1 < _C2; _C1++) { //#19012 + var _C5 = $k[--$j]; //#19012 + $k[$j++] = _C5 && (($_.cc + 1) < $get(_C0, _C1)); //#19012 + } //#19012 + if ($k[--$j]) { //#19015 + if ($_.cc < $_.xc) { //#19013 + $k[$j++] = $_.C; //#19013 + break; //#19013 + } //#19013 + if ($_.cc == $_.xc) { //#19014 + $k[$j++] = ($_.i + $_.k) + 1; //#19014 + $_.XtermFirst(); //#19014 + if ($k[--$j]) { //#19014 + $k[$j++] = $_.X; //#19014 + break; //#19014 + } else { //#19014 + $k[$j++] = $_.C; //#19014 + break; //#19014 + } //#19014 + } //#19014 + } //#19014 + } //#19014 + $_.k = $_.k + 1; //#19017 + } //#19017 + } //#19017 + }; //#19017 $_.addtocws = function() { - var _CI = $k[--$j]; //#18745 - $puti($_.cws, $_.j, _CI); //#18745 - $_.j = _CI.length + $_.j; //#18746 - }; //#18746 + var _CI = $k[--$j]; //#19023 + $puti($_.cws, $_.j, _CI); //#19023 + $_.j = _CI.length + $_.j; //#19024 + }; //#19024 $_.ECItocws = function() { - var _CN = $f((-$k[--$j]) - 1000000); //#18751 - $k[$j++] = _CN; //#18765 - if (_CN <= 126) { //#18764 - var _CO = $k[--$j]; //#18752 - $k[$j++] = $f(_CO + 1); //#18753 - $astore($a(1)); //#18753 - } else { //#18764 - var _CQ = $k[--$j]; //#18754 - $k[$j++] = _CQ; //#18765 - if (_CQ <= 16382) { //#18764 - var _CS = $f($k[--$j] - 127); //#18756 - $k[$j++] = (~~(_CS / 254)) + 128; //#18758 - $k[$j++] = $f((_CS % 254) + 1); //#18758 - $astore($a(2)); //#18758 - } else { //#18764 - var _CV = $f($k[--$j] - 16383); //#18761 - $k[$j++] = (~~(_CV / 64516)) + 192; //#18764 - $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#18764 - $k[$j++] = $f((_CV % 254) + 1); //#18764 - $astore($a(3)); //#18764 - } //#18764 - } //#18764 - }; //#18764 + var _CN = $f((-$k[--$j]) - 1000000); //#19029 + $k[$j++] = _CN; //#19043 + if (_CN <= 126) { //#19042 + var _CO = $k[--$j]; //#19030 + $k[$j++] = $f(_CO + 1); //#19031 + $astore($a(1)); //#19031 + } else { //#19042 + var _CQ = $k[--$j]; //#19032 + $k[$j++] = _CQ; //#19043 + if (_CQ <= 16382) { //#19042 + var _CS = $f($k[--$j] - 127); //#19034 + $k[$j++] = (~~(_CS / 254)) + 128; //#19036 + $k[$j++] = $f((_CS % 254) + 1); //#19036 + $astore($a(2)); //#19036 + } else { //#19042 + var _CV = $f($k[--$j] - 16383); //#19039 + $k[$j++] = (~~(_CV / 64516)) + 192; //#19042 + $k[$j++] = ((~~(_CV / 254)) % 254) + 1; //#19042 + $k[$j++] = $f((_CV % 254) + 1); //#19042 + $astore($a(3)); //#19042 + } //#19042 + } //#19042 + }; //#19042 $_.encA = function() { - for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#18790 - if ($get($_.isECI, $_.i)) { //#18775 - $k[$j++] = $get($_.Avals, $_.eci); //#18771 - $_.addtocws(); //#18771 - $k[$j++] = $get($_.msg, $_.i); //#18772 - $_.ECItocws(); //#18772 - $_.addtocws(); //#18772 - $_.i = $_.i + 1; //#18773 - break; //#18774 - } //#18774 - if ($get($_.numD, $_.i) >= 2) { //#18780 - var _Cm = $s(2); //#18777 - $put(_Cm, 0, $get($_.msg, $_.i)); //#18777 - $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#18777 - $k[$j++] = $get($_.Avals, _Cm); //#18777 - $_.addtocws(); //#18777 - $_.i = $_.i + 2; //#18778 - break; //#18779 - } //#18779 - $k[$j++] = 'newmode'; //#18781 - $_.lookup(); //#18781 - var _Cw = $k[--$j]; //#18781 - $_[$k[--$j]] = _Cw; //#18781 - if ($_.newmode != $_.mode) { //#18786 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18783 - $_.addtocws(); //#18783 - $_.mode = $_.newmode; //#18784 - break; //#18785 - } //#18785 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18787 - $_.addtocws(); //#18787 - $_.i = $_.i + 1; //#18788 - break; //#18789 - } //#18789 - }; //#18789 + for (var _CX = 0, _CY = 1; _CX < _CY; _CX++) { //#19068 + if ($get($_.isECI, $_.i)) { //#19053 + $k[$j++] = $get($_.Avals, $_.eci); //#19049 + $_.addtocws(); //#19049 + $k[$j++] = $get($_.msg, $_.i); //#19050 + $_.ECItocws(); //#19050 + $_.addtocws(); //#19050 + $_.i = $_.i + 1; //#19051 + break; //#19052 + } //#19052 + if ($get($_.numD, $_.i) >= 2) { //#19058 + var _Cm = $s(2); //#19055 + $put(_Cm, 0, $get($_.msg, $_.i)); //#19055 + $put(_Cm, 1, $get($_.msg, $_.i + 1)); //#19055 + $k[$j++] = $get($_.Avals, _Cm); //#19055 + $_.addtocws(); //#19055 + $_.i = $_.i + 2; //#19056 + break; //#19057 + } //#19057 + $k[$j++] = 'newmode'; //#19059 + $_.lookup(); //#19059 + var _Cw = $k[--$j]; //#19059 + $_[$k[--$j]] = _Cw; //#19059 + if ($_.newmode != $_.mode) { //#19064 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19061 + $_.addtocws(); //#19061 + $_.mode = $_.newmode; //#19062 + break; //#19063 + } //#19063 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19065 + $_.addtocws(); //#19065 + $_.i = $_.i + 1; //#19066 + break; //#19067 + } //#19067 + }; //#19067 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#18794 - $k[$j++] = Infinity; //#18795 - for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#18799 - var _DM = $geti($_.in, _DK, 3); //#18797 - $k[$j++] = 0; //#18797 - for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#18797 - var _DQ = $k[--$j]; //#18797 - $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#18797 - } //#18797 - var _DS = (~~($k[--$j] / 40)) + 1; //#18798 - $k[$j++] = ~~(_DS / 256); //#18798 - $k[$j++] = _DS % 256; //#18798 - } //#18798 - $astore($a($counttomark())); //#18800 - var _DV = $k[--$j]; //#18800 - var _DW = $k[--$j]; //#18800 - $k[$j++] = _DV; //#18800 - $k[$j++] = _DW; //#18800 - $j--; //#18800 - }; //#18800 + $_.in = $k[--$j]; //#19072 + $k[$j++] = Infinity; //#19073 + for (var _DK = 0, _DJ = $_.in.length - 1; _DK <= _DJ; _DK += 3) { //#19077 + var _DM = $geti($_.in, _DK, 3); //#19075 + $k[$j++] = 0; //#19075 + for (var _DN = 0, _DO = _DM.length; _DN < _DO; _DN++) { //#19075 + var _DQ = $k[--$j]; //#19075 + $k[$j++] = $f(_DQ + $get(_DM, _DN)) * 40; //#19075 + } //#19075 + var _DS = (~~($k[--$j] / 40)) + 1; //#19076 + $k[$j++] = ~~(_DS / 256); //#19076 + $k[$j++] = _DS % 256; //#19076 + } //#19076 + $astore($a($counttomark())); //#19078 + var _DV = $k[--$j]; //#19078 + var _DW = $k[--$j]; //#19078 + $k[$j++] = _DV; //#19078 + $k[$j++] = _DW; //#19078 + $j--; //#19078 + }; //#19078 $_.encCTX = function() { - $_.p = 0; //#18804 - $_.ctxvals = $a(2500); //#18805 - $_.done = false; //#18806 - for (;;) { //#18885 - if ($_.i == $_.msglen) { //#18810 - break; //#18810 - } //#18810 - var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#18811 - if (!_Dg) { //#18811 - break; //#18811 - } //#18811 - if (($_.p % 3) == 0) { //#18880 - if ($_.p > 0) { //#18825 - $k[$j++] = 'newmode'; //#18814 - $_.lookup(); //#18814 - var _Dj = $k[--$j]; //#18814 - $_[$k[--$j]] = _Dj; //#18814 - if ($ne($_.newmode, $_.mode)) { //#18824 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18816 - $_.CTXvalstocws(); //#18816 - $_.addtocws(); //#18816 - $k[$j++] = $a([$_.unlcw]); //#18817 - $_.addtocws(); //#18817 - if ($_.newmode != $_.A) { //#18820 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#18819 - $_.addtocws(); //#18819 - } //#18819 - $_.mode = $_.newmode; //#18821 - $_.done = true; //#18822 - break; //#18823 - } //#18823 - } //#18823 - if (($_.msglen - $_.i) <= 3) { //#18879 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#18827 - $k[$j++] = Infinity; //#18833 - var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18829 - for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#18835 - var _EI = $get(_EF, _EG); //#18835 - var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#18830 - $k[$j++] = _EI; //#18834 - if (_EM) { //#18833 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#18831 - } else { //#18833 - $j--; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - $k[$j++] = -1; //#18833 - } //#18833 - } //#18833 - $_.remvals = $a(); //#18833 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#18847 - $k[$j++] = Infinity; //#18841 - $aload($geti($_.ctxvals, 0, $_.p)); //#18840 - $aload($_.remvals); //#18841 - var _EZ = $a(); //#18841 - $k[$j++] = _EZ; //#18842 - $_.CTXvalstocws(); //#18842 - $_.addtocws(); //#18842 - $_.mode = $_.A; //#18843 - $_.i = $_.msglen; //#18844 - $_.done = true; //#18845 - break; //#18846 - } //#18846 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#18859 - $k[$j++] = Infinity; //#18853 - $aload($geti($_.ctxvals, 0, $_.p)); //#18851 - $aload($_.remvals); //#18852 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#18853 - var _Ep = $a(); //#18853 - $k[$j++] = _Ep; //#18854 - $_.CTXvalstocws(); //#18854 - $_.addtocws(); //#18854 - $_.mode = $_.A; //#18855 - $_.i = $_.msglen; //#18856 - $_.done = true; //#18857 - break; //#18858 - } //#18858 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#18869 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18862 - $_.CTXvalstocws(); //#18862 - $_.addtocws(); //#18862 - $k[$j++] = $a([$_.unlcw]); //#18863 - $_.addtocws(); //#18863 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18864 - $_.addtocws(); //#18864 - $_.mode = $_.A; //#18865 - $_.i = $_.msglen; //#18866 - $_.done = true; //#18867 - break; //#18868 - } //#18868 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#18878 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#18872 - $_.CTXvalstocws(); //#18872 - $_.addtocws(); //#18872 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18873 - $_.addtocws(); //#18873 - $_.mode = $_.A; //#18874 - $_.i = $_.msglen; //#18875 - $_.done = true; //#18876 - break; //#18877 - } //#18877 - } //#18877 - } //#18877 - var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#18881 - $puti($_.ctxvals, $_.p, _FO); //#18882 - $_.p = _FO.length + $_.p; //#18883 - $_.i = $_.i + 1; //#18884 - } //#18884 - if (!$_.done) { //#18909 - for (;;) { //#18893 - if (($_.p % 3) == 0) { //#18890 - break; //#18890 - } //#18890 - $_.i = $_.i - 1; //#18891 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#18892 - } //#18892 - $k[$j++] = Infinity; //#18895 - $aload($geti($_.ctxvals, 0, $_.p)); //#18895 - var _Fh = $a(); //#18895 - $k[$j++] = _Fh; //#18896 - $_.CTXvalstocws(); //#18896 - $_.addtocws(); //#18896 - $k[$j++] = $a([$_.unlcw]); //#18897 - $_.addtocws(); //#18897 - $_.mode = $_.A; //#18898 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18908 - if ($get($_.numD, $_.i) >= 2) { //#18906 - var _Ft = $s(2); //#18902 - $put(_Ft, 0, $get($_.msg, $_.i)); //#18902 - $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#18902 - $k[$j++] = $get($_.Avals, _Ft); //#18902 - $_.addtocws(); //#18902 - $_.i = $_.i + 2; //#18903 - } else { //#18906 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18905 - $_.addtocws(); //#18905 - $_.i = $_.i + 1; //#18906 - } //#18906 - } //#18906 - } //#18906 - }; //#18906 + $_.p = 0; //#19082 + $_.ctxvals = $a(2500); //#19083 + $_.done = false; //#19084 + for (;;) { //#19163 + if ($_.i == $_.msglen) { //#19088 + break; //#19088 + } //#19088 + var _Dg = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)) !== undefined; //#19089 + if (!_Dg) { //#19089 + break; //#19089 + } //#19089 + if (($_.p % 3) == 0) { //#19158 + if ($_.p > 0) { //#19103 + $k[$j++] = 'newmode'; //#19092 + $_.lookup(); //#19092 + var _Dj = $k[--$j]; //#19092 + $_[$k[--$j]] = _Dj; //#19092 + if ($ne($_.newmode, $_.mode)) { //#19102 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19094 + $_.CTXvalstocws(); //#19094 + $_.addtocws(); //#19094 + $k[$j++] = $a([$_.unlcw]); //#19095 + $_.addtocws(); //#19095 + if ($_.newmode != $_.A) { //#19098 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lE, $_.lB]), $_.newmode)); //#19097 + $_.addtocws(); //#19097 + } //#19097 + $_.mode = $_.newmode; //#19099 + $_.done = true; //#19100 + break; //#19101 + } //#19101 + } //#19101 + if (($_.msglen - $_.i) <= 3) { //#19157 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#19105 + $k[$j++] = Infinity; //#19106 + var _EF = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19107 + for (var _EG = 0, _EH = _EF.length; _EG < _EH; _EG++) { //#19113 + var _EI = $get(_EF, _EG); //#19113 + var _EM = $get($get($_.encvals, $_.mode), _EI) !== undefined; //#19108 + $k[$j++] = _EI; //#19112 + if (_EM) { //#19111 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#19109 + } else { //#19111 + $j--; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + $k[$j++] = -1; //#19111 + } //#19111 + } //#19111 + $_.remvals = $a(); //#19111 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#19125 + $k[$j++] = Infinity; //#19117 + $aload($geti($_.ctxvals, 0, $_.p)); //#19118 + $aload($_.remvals); //#19119 + var _EZ = $a(); //#19119 + $k[$j++] = _EZ; //#19120 + $_.CTXvalstocws(); //#19120 + $_.addtocws(); //#19120 + $_.mode = $_.A; //#19121 + $_.i = $_.msglen; //#19122 + $_.done = true; //#19123 + break; //#19124 + } //#19124 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#19137 + $k[$j++] = Infinity; //#19128 + $aload($geti($_.ctxvals, 0, $_.p)); //#19129 + $aload($_.remvals); //#19130 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#19131 + var _Ep = $a(); //#19131 + $k[$j++] = _Ep; //#19132 + $_.CTXvalstocws(); //#19132 + $_.addtocws(); //#19132 + $_.mode = $_.A; //#19133 + $_.i = $_.msglen; //#19134 + $_.done = true; //#19135 + break; //#19136 + } //#19136 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#19147 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19140 + $_.CTXvalstocws(); //#19140 + $_.addtocws(); //#19140 + $k[$j++] = $a([$_.unlcw]); //#19141 + $_.addtocws(); //#19141 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19142 + $_.addtocws(); //#19142 + $_.mode = $_.A; //#19143 + $_.i = $_.msglen; //#19144 + $_.done = true; //#19145 + break; //#19146 + } //#19146 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#19156 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#19150 + $_.CTXvalstocws(); //#19150 + $_.addtocws(); //#19150 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19151 + $_.addtocws(); //#19151 + $_.mode = $_.A; //#19152 + $_.i = $_.msglen; //#19153 + $_.done = true; //#19154 + break; //#19155 + } //#19155 + } //#19155 + } //#19155 + var _FO = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#19159 + $puti($_.ctxvals, $_.p, _FO); //#19160 + $_.p = _FO.length + $_.p; //#19161 + $_.i = $_.i + 1; //#19162 + } //#19162 + if (!$_.done) { //#19187 + for (;;) { //#19171 + if (($_.p % 3) == 0) { //#19168 + break; //#19168 + } //#19168 + $_.i = $_.i - 1; //#19169 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#19170 + } //#19170 + $k[$j++] = Infinity; //#19172 + $aload($geti($_.ctxvals, 0, $_.p)); //#19173 + var _Fh = $a(); //#19173 + $k[$j++] = _Fh; //#19174 + $_.CTXvalstocws(); //#19174 + $_.addtocws(); //#19174 + $k[$j++] = $a([$_.unlcw]); //#19175 + $_.addtocws(); //#19175 + $_.mode = $_.A; //#19176 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19186 + if ($get($_.numD, $_.i) >= 2) { //#19184 + var _Ft = $s(2); //#19180 + $put(_Ft, 0, $get($_.msg, $_.i)); //#19180 + $put(_Ft, 1, $get($_.msg, $_.i + 1)); //#19180 + $k[$j++] = $get($_.Avals, _Ft); //#19180 + $_.addtocws(); //#19180 + $_.i = $_.i + 2; //#19181 + } else { //#19184 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19183 + $_.addtocws(); //#19183 + $_.i = $_.i + 1; //#19184 + } //#19184 + } //#19184 + } //#19184 + }; //#19184 $_.Evalstocws = function() { - $_.in = $k[--$j]; //#18914 - $_.inlen = $_.in.length; //#18915 - $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#18916 - $k[$j++] = Infinity; //#18917 - $aload($_.in); //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $k[$j++] = 0; //#18917 - $_.in = $a(); //#18917 - $k[$j++] = Infinity; //#18918 - for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#18924 - var _GI = $geti($_.in, _GG, 4); //#18920 - $k[$j++] = 0; //#18920 - for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#18920 - var _GM = $k[--$j]; //#18920 - $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#18920 - } //#18920 - var _GO = $k[--$j] >>> 6; //#18921 - $k[$j++] = (_GO >>> 16) & 255; //#18923 - $k[$j++] = (_GO >>> 8) & 255; //#18923 - $k[$j++] = _GO & 255; //#18923 - } //#18923 - $astore($a($counttomark())); //#18925 - var _GR = $k[--$j]; //#18925 - var _GS = $k[--$j]; //#18925 - $k[$j++] = _GR; //#18925 - $k[$j++] = _GS; //#18925 - $j--; //#18925 - var _GV = $geti($k[--$j], 0, $_.outlen); //#18926 - $k[$j++] = _GV; //#18926 - }; //#18926 + $_.in = $k[--$j]; //#19192 + $_.inlen = $_.in.length; //#19193 + $_.outlen = ~~(Math.ceil(($_.in.length / 4) * 3)); //#19194 + $k[$j++] = Infinity; //#19195 + $aload($_.in); //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $k[$j++] = 0; //#19195 + $_.in = $a(); //#19195 + $k[$j++] = Infinity; //#19196 + for (var _GG = 0, _GF = $_.inlen - 1; _GG <= _GF; _GG += 4) { //#19202 + var _GI = $geti($_.in, _GG, 4); //#19198 + $k[$j++] = 0; //#19198 + for (var _GJ = 0, _GK = _GI.length; _GJ < _GK; _GJ++) { //#19198 + var _GM = $k[--$j]; //#19198 + $k[$j++] = $or(_GM, $get(_GI, _GJ)) << 6; //#19198 + } //#19198 + var _GO = $k[--$j] >>> 6; //#19199 + $k[$j++] = (_GO >>> 16) & 255; //#19201 + $k[$j++] = (_GO >>> 8) & 255; //#19201 + $k[$j++] = _GO & 255; //#19201 + } //#19201 + $astore($a($counttomark())); //#19203 + var _GR = $k[--$j]; //#19203 + var _GS = $k[--$j]; //#19203 + $k[$j++] = _GR; //#19203 + $k[$j++] = _GS; //#19203 + $j--; //#19203 + var _GV = $geti($k[--$j], 0, $_.outlen); //#19204 + $k[$j++] = _GV; //#19204 + }; //#19204 $_.encE = function() { - $_.p = 0; //#18930 - $_.edifactvals = $a(2100); //#18931 - for (;;) { //#18960 - if ($_.i == $_.msglen) { //#18935 - break; //#18935 - } //#18935 - var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#18936 - if (!_Gd) { //#18936 - break; //#18936 - } //#18936 - if (($_.p % 4) == 0) { //#18955 - if (($_.msglen - $_.i) <= 2) { //#18953 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#18939 - $k[$j++] = Infinity; //#18942 - var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#18941 - for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#18943 - $aload($get($_.Avals, $get(_Gp, _Gq))); //#18942 - } //#18942 - $_.remvals = $a(); //#18942 - if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#18952 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18947 - $_.Evalstocws(); //#18947 - $_.addtocws(); //#18947 - $k[$j++] = $_.remvals; //#18948 - $_.addtocws(); //#18948 - $_.mode = $_.A; //#18949 - $_.i = $_.msglen; //#18950 - break; //#18951 - } //#18951 - } //#18951 - $_.lookup(); //#18954 - if ($k[--$j] != $_.mode) { //#18954 - break; //#18954 - } //#18954 - } //#18954 - var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#18956 - $puti($_.edifactvals, $_.p, _HC); //#18957 - $_.p = _HC.length + $_.p; //#18958 - $_.i = $_.i + 1; //#18959 - } //#18959 - if ($_.mode != $_.A) { //#18982 - $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#18964 - if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#18969 - var _HT = $get($_.Evals, $_.unl); //#18966 - $puti($_.edifactvals, $_.p, _HT); //#18967 - $_.p = _HT.length + $_.p; //#18968 - } //#18968 - $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#18970 - $_.Evalstocws(); //#18970 - $_.addtocws(); //#18970 - $_.mode = $_.A; //#18971 - if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#18981 - if ($get($_.numD, $_.i) >= 2) { //#18979 - var _Hj = $s(2); //#18975 - $put(_Hj, 0, $get($_.msg, $_.i)); //#18975 - $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#18975 - $k[$j++] = $get($_.Avals, _Hj); //#18975 - $_.addtocws(); //#18975 - $_.i = $_.i + 2; //#18976 - } else { //#18979 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#18978 - $_.addtocws(); //#18978 - $_.i = $_.i + 1; //#18979 - } //#18979 - } //#18979 - } //#18979 - }; //#18979 + $_.p = 0; //#19208 + $_.edifactvals = $a(2100); //#19209 + for (;;) { //#19238 + if ($_.i == $_.msglen) { //#19213 + break; //#19213 + } //#19213 + var _Gd = $get($_.Evals, $get($_.msg, $_.i)) !== undefined; //#19214 + if (!_Gd) { //#19214 + break; //#19214 + } //#19214 + if (($_.p % 4) == 0) { //#19233 + if (($_.msglen - $_.i) <= 2) { //#19231 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 4)) * 3)); //#19217 + $k[$j++] = Infinity; //#19218 + var _Gp = $geti($_.msg, $_.i, $_.msglen - $_.i); //#19219 + for (var _Gq = 0, _Gr = _Gp.length; _Gq < _Gr; _Gq++) { //#19221 + $aload($get($_.Avals, $get(_Gp, _Gq))); //#19220 + } //#19220 + $_.remvals = $a(); //#19220 + if ((($_.remcws == 1) || ($_.remcws == 2)) && ($_.remvals.length <= $_.remcws)) { //#19230 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19225 + $_.Evalstocws(); //#19225 + $_.addtocws(); //#19225 + $k[$j++] = $_.remvals; //#19226 + $_.addtocws(); //#19226 + $_.mode = $_.A; //#19227 + $_.i = $_.msglen; //#19228 + break; //#19229 + } //#19229 + } //#19229 + $_.lookup(); //#19232 + if ($k[--$j] != $_.mode) { //#19232 + break; //#19232 + } //#19232 + } //#19232 + var _HC = $get($_.Evals, $get($_.msg, $_.i)); //#19234 + $puti($_.edifactvals, $_.p, _HC); //#19235 + $_.p = _HC.length + $_.p; //#19236 + $_.i = $_.i + 1; //#19237 + } //#19237 + if ($_.mode != $_.A) { //#19260 + $_.remcws = $f($get($_.numremcws, ($_.j + ((~~($_.p / 4)) * 3)) - 1) - 1); //#19242 + if (((($_.p % 4) != 0) || ($_.i != $_.msglen)) || ($_.remcws >= 3)) { //#19247 + var _HT = $get($_.Evals, $_.unl); //#19244 + $puti($_.edifactvals, $_.p, _HT); //#19245 + $_.p = _HT.length + $_.p; //#19246 + } //#19246 + $k[$j++] = $geti($_.edifactvals, 0, $_.p); //#19248 + $_.Evalstocws(); //#19248 + $_.addtocws(); //#19248 + $_.mode = $_.A; //#19249 + if (($_.i != $_.msglen) && $nt($get($_.isECI, $_.i))) { //#19259 + if ($get($_.numD, $_.i) >= 2) { //#19257 + var _Hj = $s(2); //#19253 + $put(_Hj, 0, $get($_.msg, $_.i)); //#19253 + $put(_Hj, 1, $get($_.msg, $_.i + 1)); //#19253 + $k[$j++] = $get($_.Avals, _Hj); //#19253 + $_.addtocws(); //#19253 + $_.i = $_.i + 2; //#19254 + } else { //#19257 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#19256 + $_.addtocws(); //#19256 + $_.i = $_.i + 1; //#19257 + } //#19257 + } //#19257 + } //#19257 + }; //#19257 $_.encB = function() { - $_.p = 0; //#18987 - $_.bvals = $a(1558); //#18987 - for (;;) { //#18993 - if ($_.i == $_.msglen) { //#18988 - break; //#18988 - } //#18988 - $_.lookup(); //#18989 - if ($k[--$j] != $_.mode) { //#18989 - break; //#18989 - } //#18989 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#18990 - $_.p = $_.p + 1; //#18991 - $_.i = $_.i + 1; //#18992 - } //#18992 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#18994 - $k[$j++] = Infinity; //#19001 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#18999 - $k[$j++] = 0; //#18997 - } else { //#18999 - if ($_.p < 250) { //#18999 - $k[$j++] = $_.p; //#18999 - } else { //#18999 - $k[$j++] = (~~($_.p / 250)) + 249; //#18999 - $k[$j++] = $_.p % 250; //#18999 - } //#18999 - } //#18999 - $aload($geti($_.bvals, 0, $_.p)); //#19001 - $_.bvals = $a(); //#19001 - for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19008 - $_.p = _IS; //#19004 - var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19006 - $k[$j++] = _IY; //#19006 - if (_IY >= 256) { //#19006 - var _IZ = $k[--$j]; //#19006 - $k[$j++] = $f(_IZ - 256); //#19006 - } //#19006 - $put($_.bvals, $_.p, $k[--$j]); //#19007 - } //#19007 - $k[$j++] = $_.bvals; //#19009 - $_.addtocws(); //#19009 - $_.mode = $_.A; //#19010 - }; //#19010 - $_.cws = $a(1558); //#19014 - $_.mode = $_.A; //#19015 - $_.i = 0; //#19015 - $_.j = 0; //#19015 - for (;;) { //#19018 - if ($_.i >= $_.msglen) { //#19016 - break; //#19016 - } //#19016 + $_.p = 0; //#19265 + $_.bvals = $a(1558); //#19265 + for (;;) { //#19271 + if ($_.i == $_.msglen) { //#19266 + break; //#19266 + } //#19266 + $_.lookup(); //#19267 + if ($k[--$j] != $_.mode) { //#19267 + break; //#19267 + } //#19267 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#19268 + $_.p = $_.p + 1; //#19269 + $_.i = $_.i + 1; //#19270 + } //#19270 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#19272 + $k[$j++] = Infinity; //#19273 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#19277 + $k[$j++] = 0; //#19275 + } else { //#19277 + if ($_.p < 250) { //#19277 + $k[$j++] = $_.p; //#19277 + } else { //#19277 + $k[$j++] = (~~($_.p / 250)) + 249; //#19277 + $k[$j++] = $_.p % 250; //#19277 + } //#19277 + } //#19277 + $aload($geti($_.bvals, 0, $_.p)); //#19279 + $_.bvals = $a(); //#19279 + for (var _IS = 0, _IR = $_.bvals.length - 1; _IS <= _IR; _IS += 1) { //#19286 + $_.p = _IS; //#19282 + var _IY = $f(((((($_.j + $_.p) + 1) * 149) % 255) + 1) + $get($_.bvals, $_.p)); //#19284 + $k[$j++] = _IY; //#19284 + if (_IY >= 256) { //#19284 + var _IZ = $k[--$j]; //#19284 + $k[$j++] = $f(_IZ - 256); //#19284 + } //#19284 + $put($_.bvals, $_.p, $k[--$j]); //#19285 + } //#19285 + $k[$j++] = $_.bvals; //#19287 + $_.addtocws(); //#19287 + $_.mode = $_.A; //#19288 + }; //#19288 + $_.cws = $a(1558); //#19292 + $_.mode = $_.A; //#19293 + $_.i = 0; //#19293 + $_.j = 0; //#19293 + for (;;) { //#19296 + if ($_.i >= $_.msglen) { //#19294 + break; //#19294 + } //#19294 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $_.mode)]() === true) { break; - } //#19017 - } //#19017 - $_.cws = $geti($_.cws, 0, $_.j); //#19019 - } //#19019 - $_.datlen = $_.cws.length; //#19024 - $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19025 - if ($_.remcws > 0) { //#19034 - $k[$j++] = Infinity; //#19027 - $aload($_.cws); //#19027 - for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19027 - $k[$j++] = 129; //#19027 - } //#19027 - $_.cws = $a(); //#19027 - for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19033 - $_.i = _J4; //#19029 - var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19031 - $k[$j++] = _J6; //#19031 - if (_J6 > 254) { //#19031 - var _J7 = $k[--$j]; //#19031 - $k[$j++] = $f(_J7 - 254); //#19031 - } //#19031 - $put($_.cws, $_.i, $k[--$j]); //#19032 - } //#19032 - } //#19032 - var _JC = $get($_.options, 'debugcws') !== undefined; //#19036 - if (_JC) { //#19036 - $k[$j++] = 'bwipp.debugcws#19036'; //#19036 - $k[$j++] = $_.cws; //#19036 - bwipp_raiseerror(); //#19036 - } //#19036 - var _JE = $_.metrics; //#19039 - for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19061 - $_.m = $get(_JE, _JF); //#19040 - $_.rows = $get($_.m, 0); //#19041 - $_.cols = $get($_.m, 1); //#19042 - $_.regh = $get($_.m, 2); //#19043 - $_.regv = $get($_.m, 3); //#19044 - $_.rscw = $get($_.m, 4); //#19045 - $_.rsbl = $get($_.m, 5); //#19046 - $_.doly = $get($_.m, 6); //#19047 - $_.mrows = $f($_.rows - (2 * $_.regh)); //#19048 - $_.mcols = $f($_.cols - (2 * $_.regv)); //#19049 - $_.rrows = ~~($_.mrows / $_.regh); //#19050 - $_.rcols = ~~($_.mcols / $_.regv); //#19051 - $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19052 - $_.okay = true; //#19053 - if ($_.cws.length != $_.ncws) { //#19054 - $_.okay = false; //#19054 - } //#19054 - if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19055 - $_.okay = false; //#19055 - } //#19055 - if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19056 - $_.okay = false; //#19056 - } //#19056 - if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19057 - $_.okay = false; //#19057 - } //#19057 - if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19058 - $_.okay = false; //#19058 - } //#19058 - if ((!$_.dmre) && ($_.doly == 1)) { //#19059 - $_.okay = false; //#19059 - } //#19059 - if ($_.okay) { //#19060 - break; //#19060 - } //#19060 - } //#19060 - if (!$_.okay) { //#19065 - $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19064'; //#19064 - $k[$j++] = "Maximum length exceeded or invalid size"; //#19064 - bwipp_raiseerror(); //#19064 - } //#19064 - $_.cwbs = $a($_.rsbl); //#19068 - $_.ecbs = $a($_.rsbl); //#19069 - for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19084 - $_.i = _K5; //#19071 - if ($_.cws.length != 1558) { //#19075 - $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19073 - } else { //#19075 - if ($_.i <= 7) { //#19075 - $_.cwbsize = 156; //#19075 - } else { //#19075 - $_.cwbsize = 155; //#19075 - } //#19075 - } //#19075 - $_.cwb = $a($_.cwbsize); //#19077 - for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19081 - $_.j = _KE; //#19079 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19080 - } //#19080 - $put($_.cwbs, $_.i, $_.cwb); //#19082 - $k[$j++] = $_.ecbs; //#19083 - $k[$j++] = $_.i; //#19083 - $k[$j++] = Infinity; //#19083 - for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19083 - $k[$j++] = 0; //#19083 - } //#19083 - var _KV = $a(); //#19083 - var _KW = $k[--$j]; //#19083 - $put($k[--$j], _KW, _KV); //#19083 - } //#19083 - if (!bwipp_datamatrix.__19091__) { //#19091 - $_ = Object.create($_); //#19091 - $k[$j++] = Infinity; //#19088 - $k[$j++] = 1; //#19088 - for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19088 - var _Ka = $k[--$j]; //#19088 - var _Kb = _Ka * 2; //#19088 - $k[$j++] = _Ka; //#19088 - $k[$j++] = _Kb; //#19088 - if (_Kb >= 256) { //#19088 - var _Kc = $k[--$j]; //#19088 - $k[$j++] = _Kc ^ 301; //#19088 - } //#19088 - } //#19088 - $_.rsalog = $a(); //#19088 - $_.rslog = $a(256); //#19089 - for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19090 - $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19090 - } //#19090 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19090 - bwipp_datamatrix.__19091__ = 1; //#19090 - $_ = Object.getPrototypeOf($_); //#19090 - } //#19090 + } //#19295 + } //#19295 + $_.cws = $geti($_.cws, 0, $_.j); //#19297 + } //#19297 + $_.datlen = $_.cws.length; //#19302 + $_.remcws = $f($get($_.numremcws, $_.j - 1) - 1); //#19303 + if ($_.remcws > 0) { //#19312 + $k[$j++] = Infinity; //#19305 + $aload($_.cws); //#19305 + for (var _Ix = 0, _Iy = $_.remcws; _Ix < _Iy; _Ix++) { //#19305 + $k[$j++] = 129; //#19305 + } //#19305 + $_.cws = $a(); //#19305 + for (var _J4 = $_.datlen + 1, _J3 = $f($f($_.datlen + $_.remcws) - 1); _J4 <= _J3; _J4 += 1) { //#19311 + $_.i = _J4; //#19307 + var _J6 = (((($_.i + 1) * 149) % 253) + 1) + 129; //#19309 + $k[$j++] = _J6; //#19309 + if (_J6 > 254) { //#19309 + var _J7 = $k[--$j]; //#19309 + $k[$j++] = $f(_J7 - 254); //#19309 + } //#19309 + $put($_.cws, $_.i, $k[--$j]); //#19310 + } //#19310 + } //#19310 + var _JC = $get($_.options, 'debugcws') !== undefined; //#19314 + if (_JC) { //#19314 + $k[$j++] = 'bwipp.debugcws#19314'; //#19314 + $k[$j++] = $_.cws; //#19314 + bwipp_raiseerror(); //#19314 + } //#19314 + var _JE = $_.metrics; //#19317 + for (var _JF = 0, _JG = _JE.length; _JF < _JG; _JF++) { //#19339 + $_.m = $get(_JE, _JF); //#19318 + $_.rows = $get($_.m, 0); //#19319 + $_.cols = $get($_.m, 1); //#19320 + $_.regh = $get($_.m, 2); //#19321 + $_.regv = $get($_.m, 3); //#19322 + $_.rscw = $get($_.m, 4); //#19323 + $_.rsbl = $get($_.m, 5); //#19324 + $_.doly = $get($_.m, 6); //#19325 + $_.mrows = $f($_.rows - (2 * $_.regh)); //#19326 + $_.mcols = $f($_.cols - (2 * $_.regv)); //#19327 + $_.rrows = ~~($_.mrows / $_.regh); //#19328 + $_.rcols = ~~($_.mcols / $_.regv); //#19329 + $_.ncws = $f((~~(($_.mrows * $_.mcols) / 8)) - $_.rscw); //#19330 + $_.okay = true; //#19331 + if ($_.cws.length != $_.ncws) { //#19332 + $_.okay = false; //#19332 + } //#19332 + if (($_.urows != 0) && ($_.urows != $_.rows)) { //#19333 + $_.okay = false; //#19333 + } //#19333 + if (($_.ucols != 0) && ($_.ucols != $_.cols)) { //#19334 + $_.okay = false; //#19334 + } //#19334 + if ($eq($_.format, "square") && $ne($_.rows, $_.cols)) { //#19335 + $_.okay = false; //#19335 + } //#19335 + if ($eq($_.format, "rectangle") && $eq($_.rows, $_.cols)) { //#19336 + $_.okay = false; //#19336 + } //#19336 + if ((!$_.dmre) && ($_.doly == 1)) { //#19337 + $_.okay = false; //#19337 + } //#19337 + if ($_.okay) { //#19338 + break; //#19338 + } //#19338 + } //#19338 + if (!$_.okay) { //#19343 + $k[$j++] = 'bwipp.datamatrixNoValidSymbol#19342'; //#19342 + $k[$j++] = "Maximum length exceeded or invalid size"; //#19342 + bwipp_raiseerror(); //#19342 + } //#19342 + $_.cwbs = $a($_.rsbl); //#19346 + $_.ecbs = $a($_.rsbl); //#19347 + for (var _K5 = 0, _K4 = $f($_.rsbl - 1); _K5 <= _K4; _K5 += 1) { //#19362 + $_.i = _K5; //#19349 + if ($_.cws.length != 1558) { //#19353 + $_.cwbsize = ~~($_.cws.length / $_.rsbl); //#19351 + } else { //#19353 + if ($_.i <= 7) { //#19353 + $_.cwbsize = 156; //#19353 + } else { //#19353 + $_.cwbsize = 155; //#19353 + } //#19353 + } //#19353 + $_.cwb = $a($_.cwbsize); //#19355 + for (var _KE = 0, _KD = $_.cwbsize - 1; _KE <= _KD; _KE += 1) { //#19359 + $_.j = _KE; //#19357 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#19358 + } //#19358 + $put($_.cwbs, $_.i, $_.cwb); //#19360 + $k[$j++] = $_.ecbs; //#19361 + $k[$j++] = $_.i; //#19361 + $k[$j++] = Infinity; //#19361 + for (var _KT = 0, _KU = ~~($_.rscw / $_.rsbl); _KT < _KU; _KT++) { //#19361 + $k[$j++] = 0; //#19361 + } //#19361 + var _KV = $a(); //#19361 + var _KW = $k[--$j]; //#19361 + $put($k[--$j], _KW, _KV); //#19361 + } //#19361 + if (!bwipp_datamatrix.__19369__) { //#19369 + $_ = Object.create($_); //#19369 + $k[$j++] = Infinity; //#19366 + $k[$j++] = 1; //#19366 + for (var _KY = 0, _KZ = 255; _KY < _KZ; _KY++) { //#19366 + var _Ka = $k[--$j]; //#19366 + var _Kb = _Ka * 2; //#19366 + $k[$j++] = _Ka; //#19366 + $k[$j++] = _Kb; //#19366 + if (_Kb >= 256) { //#19366 + var _Kc = $k[--$j]; //#19366 + $k[$j++] = _Kc ^ 301; //#19366 + } //#19366 + } //#19366 + $_.rsalog = $a(); //#19366 + $_.rslog = $a(256); //#19367 + for (var _Kf = 1; _Kf <= 255; _Kf += 1) { //#19368 + $put($_.rslog, $get($_.rsalog, _Kf), _Kf); //#19368 + } //#19368 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_datamatrix.$ctx[id] = $_[id]); //#19368 + bwipp_datamatrix.__19369__ = 1; //#19368 + $_ = Object.getPrototypeOf($_); //#19368 + } //#19368 $_.rsprod = function() { - var _Kk = $k[--$j]; //#19095 - var _Kl = $k[--$j]; //#19095 - $k[$j++] = _Kl; //#19099 - $k[$j++] = _Kk; //#19099 - if ((_Kk != 0) && (_Kl != 0)) { //#19098 - var _Ko = $get($_.rslog, $k[--$j]); //#19096 - var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19096 - $k[$j++] = _Kt; //#19096 - } else { //#19098 - $j -= 2; //#19098 - $k[$j++] = 0; //#19098 - } //#19098 - }; //#19098 - $k[$j++] = Infinity; //#19103 - $k[$j++] = 1; //#19103 - for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19103 - $k[$j++] = 0; //#19103 - } //#19103 - $_.coeffs = $a(); //#19103 - for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19112 - $_.i = _L2; //#19105 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19106 - for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19110 - $_.j = _L9; //#19108 - $k[$j++] = $_.coeffs; //#19109 - $k[$j++] = $_.j; //#19109 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#19109 - $k[$j++] = $get($_.coeffs, $_.j); //#19109 - $k[$j++] = $get($_.rsalog, $_.i); //#19109 - $_.rsprod(); //#19109 - var _LL = $k[--$j]; //#19109 - var _LM = $k[--$j]; //#19109 - var _LN = $k[--$j]; //#19109 - $put($k[--$j], _LN, $xo(_LM, _LL)); //#19109 - } //#19109 - $k[$j++] = $_.coeffs; //#19111 - $k[$j++] = 0; //#19111 - $k[$j++] = $get($_.coeffs, 0); //#19111 - $k[$j++] = $get($_.rsalog, $_.i); //#19111 - $_.rsprod(); //#19111 - var _LV = $k[--$j]; //#19111 - var _LW = $k[--$j]; //#19111 - $put($k[--$j], _LW, _LV); //#19111 - } //#19111 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19113 - for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19129 - $_.i = _Ld; //#19117 - $_.cwb = $get($_.cwbs, $_.i); //#19118 - $_.ecb = $get($_.ecbs, $_.i); //#19119 - for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19128 - $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19121 - for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19127 - $_.j = _Ls; //#19123 - $_.p = ($_.ecb.length - $_.j) - 1; //#19124 - $k[$j++] = $_.ecb; //#19125 - $k[$j++] = $_.p; //#19125 - $k[$j++] = $_.t; //#19125 - $k[$j++] = $get($_.coeffs, $_.j); //#19125 - $_.rsprod(); //#19125 - var _M1 = $k[--$j]; //#19125 - var _M2 = $k[--$j]; //#19125 - $put($k[--$j], _M2, _M1); //#19125 - if ($_.j > 0) { //#19126 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19126 - } //#19126 - } //#19126 - } //#19126 - } //#19126 - if ($_.ncws == 1558) { //#19134 - $k[$j++] = Infinity; //#19133 - var _MF = $geti($_.ecbs, 8, 2); //#19133 - for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19133 - $k[$j++] = $get(_MF, _MG); //#19133 - } //#19133 - var _MK = $geti($_.ecbs, 0, 8); //#19133 - for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19133 - $k[$j++] = $get(_MK, _ML); //#19133 - } //#19133 - $_.ecbs = $a(); //#19133 - } //#19133 - $k[$j++] = Infinity; //#19137 - var _MP = $_.cws; //#19137 - for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19137 - $k[$j++] = $get(_MP, _MQ); //#19137 - } //#19137 - for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19137 - $k[$j++] = 0; //#19137 - } //#19137 - $_.cws = $a(); //#19137 - for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19141 - $_.i = _MZ; //#19139 - $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19140 - } //#19140 + var _Kk = $k[--$j]; //#19373 + var _Kl = $k[--$j]; //#19373 + $k[$j++] = _Kl; //#19377 + $k[$j++] = _Kk; //#19377 + if ((_Kk != 0) && (_Kl != 0)) { //#19376 + var _Ko = $get($_.rslog, $k[--$j]); //#19374 + var _Kt = $get($_.rsalog, $f(_Ko + $get($_.rslog, $k[--$j])) % 255); //#19374 + $k[$j++] = _Kt; //#19374 + } else { //#19376 + $j -= 2; //#19376 + $k[$j++] = 0; //#19376 + } //#19376 + }; //#19376 + $k[$j++] = Infinity; //#19381 + $k[$j++] = 1; //#19381 + for (var _Kw = 0, _Kx = ~~($_.rscw / $_.rsbl); _Kw < _Kx; _Kw++) { //#19381 + $k[$j++] = 0; //#19381 + } //#19381 + $_.coeffs = $a(); //#19381 + for (var _L2 = 1, _L1 = ~~($_.rscw / $_.rsbl); _L2 <= _L1; _L2 += 1) { //#19390 + $_.i = _L2; //#19383 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#19384 + for (var _L9 = $_.i - 1; _L9 >= 1; _L9 -= 1) { //#19388 + $_.j = _L9; //#19386 + $k[$j++] = $_.coeffs; //#19387 + $k[$j++] = $_.j; //#19387 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#19387 + $k[$j++] = $get($_.coeffs, $_.j); //#19387 + $k[$j++] = $get($_.rsalog, $_.i); //#19387 + $_.rsprod(); //#19387 + var _LL = $k[--$j]; //#19387 + var _LM = $k[--$j]; //#19387 + var _LN = $k[--$j]; //#19387 + $put($k[--$j], _LN, $xo(_LM, _LL)); //#19387 + } //#19387 + $k[$j++] = $_.coeffs; //#19389 + $k[$j++] = 0; //#19389 + $k[$j++] = $get($_.coeffs, 0); //#19389 + $k[$j++] = $get($_.rsalog, $_.i); //#19389 + $_.rsprod(); //#19389 + var _LV = $k[--$j]; //#19389 + var _LW = $k[--$j]; //#19389 + $put($k[--$j], _LW, _LV); //#19389 + } //#19389 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#19391 + for (var _Ld = 0, _Lc = $_.cwbs.length - 1; _Ld <= _Lc; _Ld += 1) { //#19407 + $_.i = _Ld; //#19395 + $_.cwb = $get($_.cwbs, $_.i); //#19396 + $_.ecb = $get($_.ecbs, $_.i); //#19397 + for (var _Lm = 0, _Ll = $_.cwb.length - 1; _Lm <= _Ll; _Lm += 1) { //#19406 + $_.t = $xo($get($_.cwb, _Lm), $get($_.ecb, 0)); //#19399 + for (var _Ls = $_.ecb.length - 1; _Ls >= 0; _Ls -= 1) { //#19405 + $_.j = _Ls; //#19401 + $_.p = ($_.ecb.length - $_.j) - 1; //#19402 + $k[$j++] = $_.ecb; //#19403 + $k[$j++] = $_.p; //#19403 + $k[$j++] = $_.t; //#19403 + $k[$j++] = $get($_.coeffs, $_.j); //#19403 + $_.rsprod(); //#19403 + var _M1 = $k[--$j]; //#19403 + var _M2 = $k[--$j]; //#19403 + $put($k[--$j], _M2, _M1); //#19403 + if ($_.j > 0) { //#19404 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#19404 + } //#19404 + } //#19404 + } //#19404 + } //#19404 + if ($_.ncws == 1558) { //#19412 + $k[$j++] = Infinity; //#19411 + var _MF = $geti($_.ecbs, 8, 2); //#19411 + for (var _MG = 0, _MH = _MF.length; _MG < _MH; _MG++) { //#19411 + $k[$j++] = $get(_MF, _MG); //#19411 + } //#19411 + var _MK = $geti($_.ecbs, 0, 8); //#19411 + for (var _ML = 0, _MM = _MK.length; _ML < _MM; _ML++) { //#19411 + $k[$j++] = $get(_MK, _ML); //#19411 + } //#19411 + $_.ecbs = $a(); //#19411 + } //#19411 + $k[$j++] = Infinity; //#19415 + var _MP = $_.cws; //#19415 + for (var _MQ = 0, _MR = _MP.length; _MQ < _MR; _MQ++) { //#19415 + $k[$j++] = $get(_MP, _MQ); //#19415 + } //#19415 + for (var _MU = 0, _MV = $_.rscw; _MU < _MV; _MU++) { //#19415 + $k[$j++] = 0; //#19415 + } //#19415 + $_.cws = $a(); //#19415 + for (var _MZ = 0, _MY = $f($_.rscw - 1); _MZ <= _MY; _MZ += 1) { //#19419 + $_.i = _MZ; //#19417 + $put($_.cws, $f($_.ncws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#19418 + } //#19418 $_.module = function() { - var _Mk = $k[--$j]; //#19146 - var _Ml = $k[--$j]; //#19146 - var _Mm = $k[--$j]; //#19146 - var _Mp = $strcpy($s(8), "00000000"); //#19147 - var _Mr = $cvrs($s(8), $k[--$j], 2); //#19147 - $puti(_Mp, 8 - _Mr.length, _Mr); //#19148 - $k[$j++] = _Mm; //#19149 - $k[$j++] = _Ml; //#19149 - $k[$j++] = _Mk; //#19149 - $k[$j++] = _Mp; //#19149 - for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19149 - var _Mt = $k[--$j]; //#19149 - $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19149 - $k[$j++] = _Mt; //#19149 - } //#19149 - $j--; //#19149 - var _Mv = $k[--$j]; //#19150 - var _Mw = $k[--$j]; //#19150 - var _Mx = $k[--$j]; //#19150 - var _My = $k[--$j]; //#19150 - var _Mz = $k[--$j]; //#19150 - var _N0 = $k[--$j]; //#19150 - var _N1 = $k[--$j]; //#19150 - var _N2 = $k[--$j]; //#19150 - var _N3 = $k[--$j]; //#19150 - var _N4 = $k[--$j]; //#19150 - var _N5 = $k[--$j]; //#19150 - $k[$j++] = _N2; //#19167 - $k[$j++] = _N1; //#19167 - $k[$j++] = _N0; //#19167 - $k[$j++] = _Mz; //#19167 - $k[$j++] = _My; //#19167 - $k[$j++] = _Mx; //#19167 - $k[$j++] = _Mw; //#19167 - $k[$j++] = _Mv; //#19167 - $k[$j++] = _N5; //#19167 - $k[$j++] = _N4; //#19167 - $forall(_N3, function() { //#19167 + var _Mk = $k[--$j]; //#19424 + var _Ml = $k[--$j]; //#19424 + var _Mm = $k[--$j]; //#19424 + var _Mp = $strcpy($s(8), "00000000"); //#19425 + var _Mr = $cvrs($s(8), $k[--$j], 2); //#19425 + $puti(_Mp, 8 - _Mr.length, _Mr); //#19426 + $k[$j++] = _Mm; //#19427 + $k[$j++] = _Ml; //#19427 + $k[$j++] = _Mk; //#19427 + $k[$j++] = _Mp; //#19427 + for (var _Ms = 7; _Ms >= 0; _Ms -= 1) { //#19427 + var _Mt = $k[--$j]; //#19427 + $k[$j++] = $f($get(_Mt, _Ms) - 48); //#19427 + $k[$j++] = _Mt; //#19427 + } //#19427 + $j--; //#19427 + var _Mv = $k[--$j]; //#19428 + var _Mw = $k[--$j]; //#19428 + var _Mx = $k[--$j]; //#19428 + var _My = $k[--$j]; //#19428 + var _Mz = $k[--$j]; //#19428 + var _N0 = $k[--$j]; //#19428 + var _N1 = $k[--$j]; //#19428 + var _N2 = $k[--$j]; //#19428 + var _N3 = $k[--$j]; //#19428 + var _N4 = $k[--$j]; //#19428 + var _N5 = $k[--$j]; //#19428 + $k[$j++] = _N2; //#19445 + $k[$j++] = _N1; //#19445 + $k[$j++] = _N0; //#19445 + $k[$j++] = _Mz; //#19445 + $k[$j++] = _My; //#19445 + $k[$j++] = _Mx; //#19445 + $k[$j++] = _Mw; //#19445 + $k[$j++] = _Mv; //#19445 + $k[$j++] = _N5; //#19445 + $k[$j++] = _N4; //#19445 + $forall(_N3, function() { //#19445 if ($k[--$j]() === true) { return true; - } //#19153 - var _N7 = $k[--$j]; //#19154 - var _N8 = $k[--$j]; //#19154 - $k[$j++] = _N8; //#19157 - $k[$j++] = _N7; //#19157 - if (_N8 < 0) { //#19157 - var _N9 = $k[--$j]; //#19155 - var _NA = $k[--$j]; //#19155 - $k[$j++] = $f(_NA + $_.mrows); //#19156 - $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19156 - } //#19156 - var _ND = $k[--$j]; //#19158 - $k[$j++] = _ND; //#19161 - if (_ND < 0) { //#19161 - var _NF = $k[--$j]; //#19159 - var _NG = $k[--$j]; //#19159 - $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19160 - $k[$j++] = $f(_NF + $_.mcols); //#19160 - } //#19160 - var _NI = $k[--$j]; //#19162 - var _NJ = $k[--$j]; //#19162 - $k[$j++] = _NJ; //#19164 - $k[$j++] = _NI; //#19164 - if (_NJ >= $_.mrows) { //#19164 - var _NL = $k[--$j]; //#19163 - var _NM = $k[--$j]; //#19163 - $k[$j++] = $f(_NM - $_.mrows); //#19163 - $k[$j++] = _NL; //#19163 - } //#19163 - var _NO = $k[--$j]; //#19165 - var _NP = $k[--$j]; //#19165 - var _NS = $k[--$j]; //#19166 - var _NT = $k[--$j]; //#19166 - $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19166 - $k[$j++] = _NT; //#19166 - $k[$j++] = _NS; //#19166 - }); //#19166 - }; //#19166 + } //#19431 + var _N7 = $k[--$j]; //#19432 + var _N8 = $k[--$j]; //#19432 + $k[$j++] = _N8; //#19435 + $k[$j++] = _N7; //#19435 + if (_N8 < 0) { //#19435 + var _N9 = $k[--$j]; //#19433 + var _NA = $k[--$j]; //#19433 + $k[$j++] = $f(_NA + $_.mrows); //#19434 + $k[$j++] = $f(_N9 + ($f(4 - ($f($_.mrows + 4) % 8)))); //#19434 + } //#19434 + var _ND = $k[--$j]; //#19436 + $k[$j++] = _ND; //#19439 + if (_ND < 0) { //#19439 + var _NF = $k[--$j]; //#19437 + var _NG = $k[--$j]; //#19437 + $k[$j++] = $f(_NG + ($f(4 - ($f($_.mcols + 4) % 8)))); //#19438 + $k[$j++] = $f(_NF + $_.mcols); //#19438 + } //#19438 + var _NI = $k[--$j]; //#19440 + var _NJ = $k[--$j]; //#19440 + $k[$j++] = _NJ; //#19442 + $k[$j++] = _NI; //#19442 + if (_NJ >= $_.mrows) { //#19442 + var _NL = $k[--$j]; //#19441 + var _NM = $k[--$j]; //#19441 + $k[$j++] = $f(_NM - $_.mrows); //#19441 + $k[$j++] = _NL; //#19441 + } //#19441 + var _NO = $k[--$j]; //#19443 + var _NP = $k[--$j]; //#19443 + var _NS = $k[--$j]; //#19444 + var _NT = $k[--$j]; //#19444 + $put($_.mmat, $f(_NO + (_NP * $_.mcols)), $k[--$j]); //#19444 + $k[$j++] = _NT; //#19444 + $k[$j++] = _NS; //#19444 + }); //#19444 + }; //#19444 var _Nl = $a([function() { - var _NV = $k[--$j]; //#19172 - var _NW = $k[--$j]; //#19172 - $k[$j++] = _NW; //#19172 - $k[$j++] = _NV; //#19172 - $k[$j++] = $f(_NW - 2); //#19172 - $k[$j++] = $f(_NV - 2); //#19172 + var _NV = $k[--$j]; //#19450 + var _NW = $k[--$j]; //#19450 + $k[$j++] = _NW; //#19450 + $k[$j++] = _NV; //#19450 + $k[$j++] = $f(_NW - 2); //#19450 + $k[$j++] = $f(_NV - 2); //#19450 }, function() { - var _NX = $k[--$j]; //#19172 - var _NY = $k[--$j]; //#19172 - $k[$j++] = _NY; //#19172 - $k[$j++] = _NX; //#19172 - $k[$j++] = $f(_NY - 2); //#19172 - $k[$j++] = $f(_NX - 1); //#19172 + var _NX = $k[--$j]; //#19450 + var _NY = $k[--$j]; //#19450 + $k[$j++] = _NY; //#19450 + $k[$j++] = _NX; //#19450 + $k[$j++] = $f(_NY - 2); //#19450 + $k[$j++] = $f(_NX - 1); //#19450 }, function() { - var _NZ = $k[--$j]; //#19173 - var _Na = $k[--$j]; //#19173 - $k[$j++] = _Na; //#19173 - $k[$j++] = _NZ; //#19173 - $k[$j++] = $f(_Na - 1); //#19173 - $k[$j++] = $f(_NZ - 2); //#19173 + var _NZ = $k[--$j]; //#19451 + var _Na = $k[--$j]; //#19451 + $k[$j++] = _Na; //#19451 + $k[$j++] = _NZ; //#19451 + $k[$j++] = $f(_Na - 1); //#19451 + $k[$j++] = $f(_NZ - 2); //#19451 }, function() { - var _Nb = $k[--$j]; //#19173 - var _Nc = $k[--$j]; //#19173 - $k[$j++] = _Nc; //#19173 - $k[$j++] = _Nb; //#19173 - $k[$j++] = $f(_Nc - 1); //#19173 - $k[$j++] = $f(_Nb - 1); //#19173 + var _Nb = $k[--$j]; //#19451 + var _Nc = $k[--$j]; //#19451 + $k[$j++] = _Nc; //#19451 + $k[$j++] = _Nb; //#19451 + $k[$j++] = $f(_Nc - 1); //#19451 + $k[$j++] = $f(_Nb - 1); //#19451 }, function() { - var _Nd = $k[--$j]; //#19174 - var _Ne = $k[--$j]; //#19174 - $k[$j++] = _Ne; //#19174 - $k[$j++] = _Nd; //#19174 - $k[$j++] = $f(_Ne - 1); //#19174 - $k[$j++] = _Nd; //#19174 + var _Nd = $k[--$j]; //#19452 + var _Ne = $k[--$j]; //#19452 + $k[$j++] = _Ne; //#19452 + $k[$j++] = _Nd; //#19452 + $k[$j++] = $f(_Ne - 1); //#19452 + $k[$j++] = _Nd; //#19452 }, function() { - var _Nf = $k[--$j]; //#19174 - var _Ng = $k[--$j]; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = _Nf; //#19174 - $k[$j++] = _Ng; //#19174 - $k[$j++] = $f(_Nf - 2); //#19174 + var _Nf = $k[--$j]; //#19452 + var _Ng = $k[--$j]; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = _Nf; //#19452 + $k[$j++] = _Ng; //#19452 + $k[$j++] = $f(_Nf - 2); //#19452 }, function() { - var _Nh = $k[--$j]; //#19175 - var _Ni = $k[--$j]; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = _Nh; //#19175 - $k[$j++] = _Ni; //#19175 - $k[$j++] = $f(_Nh - 1); //#19175 + var _Nh = $k[--$j]; //#19453 + var _Ni = $k[--$j]; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = _Nh; //#19453 + $k[$j++] = _Ni; //#19453 + $k[$j++] = $f(_Nh - 1); //#19453 }, function() { - var _Nj = $k[--$j]; //#19175 - var _Nk = $k[--$j]; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - $k[$j++] = _Nk; //#19175 - $k[$j++] = _Nj; //#19175 - }]); //#19175 - $_.dmn = _Nl; //#19176 + var _Nj = $k[--$j]; //#19453 + var _Nk = $k[--$j]; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + $k[$j++] = _Nk; //#19453 + $k[$j++] = _Nj; //#19453 + }]); //#19453 + $_.dmn = _Nl; //#19454 var _Nu = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 0; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 0; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19179 - $k[$j++] = 1; //#19179 + $k[$j++] = $f($_.mrows - 1); //#19457 + $k[$j++] = 1; //#19457 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19180 - $k[$j++] = 2; //#19180 + $k[$j++] = $f($_.mrows - 1); //#19458 + $k[$j++] = 2; //#19458 }, function() { - $k[$j++] = 0; //#19180 - $k[$j++] = $f($_.mcols - 2); //#19180 + $k[$j++] = 0; //#19458 + $k[$j++] = $f($_.mcols - 2); //#19458 }, function() { - $k[$j++] = 0; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 0; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 1; //#19181 - $k[$j++] = $f($_.mcols - 1); //#19181 + $k[$j++] = 1; //#19459 + $k[$j++] = $f($_.mcols - 1); //#19459 }, function() { - $k[$j++] = 2; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 + $k[$j++] = 2; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 }, function() { - $k[$j++] = 3; //#19182 - $k[$j++] = $f($_.mcols - 1); //#19182 - }]); //#19182 - $_.dmc1 = _Nu; //#19183 + $k[$j++] = 3; //#19460 + $k[$j++] = $f($_.mcols - 1); //#19460 + }]); //#19460 + $_.dmc1 = _Nu; //#19461 var _O3 = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 3); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19186 - $k[$j++] = 0; //#19186 + $k[$j++] = $f($_.mrows - 2); //#19464 + $k[$j++] = 0; //#19464 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19187 - $k[$j++] = 0; //#19187 + $k[$j++] = $f($_.mrows - 1); //#19465 + $k[$j++] = 0; //#19465 }, function() { - $k[$j++] = 0; //#19187 - $k[$j++] = $f($_.mcols - 4); //#19187 + $k[$j++] = 0; //#19465 + $k[$j++] = $f($_.mcols - 4); //#19465 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 3); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 3); //#19466 }, function() { - $k[$j++] = 0; //#19188 - $k[$j++] = $f($_.mcols - 2); //#19188 + $k[$j++] = 0; //#19466 + $k[$j++] = $f($_.mcols - 2); //#19466 }, function() { - $k[$j++] = 0; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 + $k[$j++] = 0; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 }, function() { - $k[$j++] = 1; //#19189 - $k[$j++] = $f($_.mcols - 1); //#19189 - }]); //#19189 - $_.dmc2 = _O3; //#19190 + $k[$j++] = 1; //#19467 + $k[$j++] = $f($_.mcols - 1); //#19467 + }]); //#19467 + $_.dmc2 = _O3; //#19468 var _OC = $a([function() { - $k[$j++] = $f($_.mrows - 3); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 3); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 2); //#19193 - $k[$j++] = 0; //#19193 + $k[$j++] = $f($_.mrows - 2); //#19471 + $k[$j++] = 0; //#19471 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19194 - $k[$j++] = 0; //#19194 + $k[$j++] = $f($_.mrows - 1); //#19472 + $k[$j++] = 0; //#19472 }, function() { - $k[$j++] = 0; //#19194 - $k[$j++] = $f($_.mcols - 2); //#19194 + $k[$j++] = 0; //#19472 + $k[$j++] = $f($_.mcols - 2); //#19472 }, function() { - $k[$j++] = 0; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 0; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 1; //#19195 - $k[$j++] = $f($_.mcols - 1); //#19195 + $k[$j++] = 1; //#19473 + $k[$j++] = $f($_.mcols - 1); //#19473 }, function() { - $k[$j++] = 2; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 + $k[$j++] = 2; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 }, function() { - $k[$j++] = 3; //#19196 - $k[$j++] = $f($_.mcols - 1); //#19196 - }]); //#19196 - $_.dmc3 = _OC; //#19197 + $k[$j++] = 3; //#19474 + $k[$j++] = $f($_.mcols - 1); //#19474 + }]); //#19474 + $_.dmc3 = _OC; //#19475 var _OM = $a([function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = 0; //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = 0; //#19478 }, function() { - $k[$j++] = $f($_.mrows - 1); //#19200 - $k[$j++] = $f($_.mcols - 1); //#19200 + $k[$j++] = $f($_.mrows - 1); //#19478 + $k[$j++] = $f($_.mcols - 1); //#19478 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 3); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 3); //#19479 }, function() { - $k[$j++] = 0; //#19201 - $k[$j++] = $f($_.mcols - 2); //#19201 + $k[$j++] = 0; //#19479 + $k[$j++] = $f($_.mcols - 2); //#19479 }, function() { - $k[$j++] = 0; //#19202 - $k[$j++] = $f($_.mcols - 1); //#19202 + $k[$j++] = 0; //#19480 + $k[$j++] = $f($_.mcols - 1); //#19480 }, function() { - $k[$j++] = 1; //#19202 - $k[$j++] = $f($_.mcols - 3); //#19202 + $k[$j++] = 1; //#19480 + $k[$j++] = $f($_.mcols - 3); //#19480 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 2); //#19203 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 2); //#19481 }, function() { - $k[$j++] = 1; //#19203 - $k[$j++] = $f($_.mcols - 1); //#19203 - }]); //#19203 - $_.dmc4 = _OM; //#19204 - $k[$j++] = Infinity; //#19206 - for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19206 - $k[$j++] = -1; //#19206 - } //#19206 - $_.mmat = $a(); //#19206 - for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19207 - $k[$j++] = $get($_.cws, _OT); //#19207 - } //#19207 - $k[$j++] = 4; //#19247 - $k[$j++] = 0; //#19247 - for (;;) { //#19247 - var _OW = $k[--$j]; //#19210 - var _OX = $k[--$j]; //#19210 - $k[$j++] = _OX; //#19212 - $k[$j++] = _OW; //#19212 - if ((_OW == 0) && (_OX == $_.mrows)) { //#19212 - $k[$j++] = $_.dmc1; //#19211 - $_.module(); //#19211 - } //#19211 - var _Oa = $k[--$j]; //#19213 - var _Ob = $k[--$j]; //#19213 - $k[$j++] = _Ob; //#19215 - $k[$j++] = _Oa; //#19215 - if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19215 - $k[$j++] = $_.dmc2; //#19214 - $_.module(); //#19214 - } //#19214 - var _Of = $k[--$j]; //#19216 - var _Og = $k[--$j]; //#19216 - $k[$j++] = _Og; //#19218 - $k[$j++] = _Of; //#19218 - if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19218 - $k[$j++] = $_.dmc3; //#19217 - $_.module(); //#19217 - } //#19217 - var _Ok = $k[--$j]; //#19219 - var _Ol = $k[--$j]; //#19219 - $k[$j++] = _Ol; //#19221 - $k[$j++] = _Ok; //#19221 - if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19221 - $k[$j++] = $_.dmc4; //#19220 - $_.module(); //#19220 - } //#19220 - for (;;) { //#19231 - var _Op = $k[--$j]; //#19224 - var _Oq = $k[--$j]; //#19224 - $k[$j++] = _Oq; //#19228 - $k[$j++] = _Op; //#19228 - if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19228 - var _Os = $k[--$j]; //#19225 - var _Ot = $k[--$j]; //#19225 - $k[$j++] = _Ot; //#19227 - $k[$j++] = _Os; //#19227 - if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19227 - $k[$j++] = $_.dmn; //#19226 - $_.module(); //#19226 - } //#19226 - } //#19226 - var _Oy = $k[--$j]; //#19229 - var _Oz = $k[--$j]; //#19229 - $k[$j++] = $f(_Oz - 2); //#19230 - $k[$j++] = $f(_Oy + 2); //#19230 - if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19230 - break; //#19230 - } //#19230 - } //#19230 - var _P1 = $k[--$j]; //#19232 - var _P2 = $k[--$j]; //#19232 - $k[$j++] = $f(_P2 + 1); //#19242 - $k[$j++] = $f(_P1 + 3); //#19242 - for (;;) { //#19242 - var _P3 = $k[--$j]; //#19235 - var _P4 = $k[--$j]; //#19235 - $k[$j++] = _P4; //#19239 - $k[$j++] = _P3; //#19239 - if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19239 - var _P6 = $k[--$j]; //#19236 - var _P7 = $k[--$j]; //#19236 - $k[$j++] = _P7; //#19238 - $k[$j++] = _P6; //#19238 - if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19238 - $k[$j++] = $_.dmn; //#19237 - $_.module(); //#19237 - } //#19237 - } //#19237 - var _PC = $k[--$j]; //#19240 - var _PD = $k[--$j]; //#19240 - $k[$j++] = $f(_PD + 2); //#19241 - $k[$j++] = $f(_PC - 2); //#19241 - if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19241 - break; //#19241 - } //#19241 - } //#19241 - var _PF = $k[--$j]; //#19243 - var _PG = $k[--$j]; //#19243 - $k[$j++] = $f(_PG + 3); //#19245 - $k[$j++] = $f(_PF + 1); //#19245 - if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19245 - $j -= 2; //#19245 - break; //#19245 - } //#19245 - } //#19245 - if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19253 - $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19251 - $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19252 - } //#19252 - $_.pixs = $a($_.rows * $_.cols); //#19256 - $_.cwpos = 0; //#19257 - for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19273 - $_.i = _Pa; //#19259 - if (($_.i % ($_.rrows + 2)) == 0) { //#19260 - $k[$j++] = $_.pixs; //#19260 - $k[$j++] = $_.i * $_.cols; //#19260 - $k[$j++] = Infinity; //#19260 - for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19260 - $k[$j++] = 1; //#19260 - $k[$j++] = 0; //#19260 - } //#19260 - var _Pj = $a(); //#19260 - var _Pk = $k[--$j]; //#19260 - $puti($k[--$j], _Pk, _Pj); //#19260 - } //#19260 - if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19261 - $k[$j++] = $_.pixs; //#19261 - $k[$j++] = $_.i * $_.cols; //#19261 - $k[$j++] = Infinity; //#19261 - for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19261 - $k[$j++] = 1; //#19261 - } //#19261 - var _Pv = $a(); //#19261 - var _Pw = $k[--$j]; //#19261 - $puti($k[--$j], _Pw, _Pv); //#19261 - } //#19261 - if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19272 - for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19271 - $_.j = _Q5; //#19264 - if (($_.j % ($_.rcols + 2)) == 0) { //#19265 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19265 - } //#19265 - if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19266 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19266 - } //#19266 - if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19270 - $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19268 - $_.cwpos = $_.cwpos + 1; //#19269 - } //#19269 - } //#19269 - } //#19269 - } //#19269 + $k[$j++] = 1; //#19481 + $k[$j++] = $f($_.mcols - 1); //#19481 + }]); //#19481 + $_.dmc4 = _OM; //#19482 + $k[$j++] = Infinity; //#19484 + for (var _OP = 0, _OQ = $_.mrows * $_.mcols; _OP < _OQ; _OP++) { //#19484 + $k[$j++] = -1; //#19484 + } //#19484 + $_.mmat = $a(); //#19484 + for (var _OT = $_.cws.length - 1; _OT >= 0; _OT -= 1) { //#19485 + $k[$j++] = $get($_.cws, _OT); //#19485 + } //#19485 + $k[$j++] = 4; //#19525 + $k[$j++] = 0; //#19525 + for (;;) { //#19525 + var _OW = $k[--$j]; //#19488 + var _OX = $k[--$j]; //#19488 + $k[$j++] = _OX; //#19490 + $k[$j++] = _OW; //#19490 + if ((_OW == 0) && (_OX == $_.mrows)) { //#19490 + $k[$j++] = $_.dmc1; //#19489 + $_.module(); //#19489 + } //#19489 + var _Oa = $k[--$j]; //#19491 + var _Ob = $k[--$j]; //#19491 + $k[$j++] = _Ob; //#19493 + $k[$j++] = _Oa; //#19493 + if (((_Oa == 0) && (_Ob == $f($_.mrows - 2))) && (($_.mcols % 4) != 0)) { //#19493 + $k[$j++] = $_.dmc2; //#19492 + $_.module(); //#19492 + } //#19492 + var _Of = $k[--$j]; //#19494 + var _Og = $k[--$j]; //#19494 + $k[$j++] = _Og; //#19496 + $k[$j++] = _Of; //#19496 + if (((_Of == 0) && (_Og == $f($_.mrows - 2))) && (($_.mcols % 8) == 4)) { //#19496 + $k[$j++] = $_.dmc3; //#19495 + $_.module(); //#19495 + } //#19495 + var _Ok = $k[--$j]; //#19497 + var _Ol = $k[--$j]; //#19497 + $k[$j++] = _Ol; //#19499 + $k[$j++] = _Ok; //#19499 + if (((_Ok == 2) && (_Ol == $f($_.mrows + 4))) && (($_.mcols % 8) == 0)) { //#19499 + $k[$j++] = $_.dmc4; //#19498 + $_.module(); //#19498 + } //#19498 + for (;;) { //#19509 + var _Op = $k[--$j]; //#19502 + var _Oq = $k[--$j]; //#19502 + $k[$j++] = _Oq; //#19506 + $k[$j++] = _Op; //#19506 + if ((_Op >= 0) && (_Oq < $_.mrows)) { //#19506 + var _Os = $k[--$j]; //#19503 + var _Ot = $k[--$j]; //#19503 + $k[$j++] = _Ot; //#19505 + $k[$j++] = _Os; //#19505 + if ($get($_.mmat, $f(_Os + (_Ot * $_.mcols))) == -1) { //#19505 + $k[$j++] = $_.dmn; //#19504 + $_.module(); //#19504 + } //#19504 + } //#19504 + var _Oy = $k[--$j]; //#19507 + var _Oz = $k[--$j]; //#19507 + $k[$j++] = $f(_Oz - 2); //#19508 + $k[$j++] = $f(_Oy + 2); //#19508 + if (!(($f(_Oy + 2) < $_.mcols) && ($f(_Oz - 2) >= 0))) { //#19508 + break; //#19508 + } //#19508 + } //#19508 + var _P1 = $k[--$j]; //#19510 + var _P2 = $k[--$j]; //#19510 + $k[$j++] = $f(_P2 + 1); //#19520 + $k[$j++] = $f(_P1 + 3); //#19520 + for (;;) { //#19520 + var _P3 = $k[--$j]; //#19513 + var _P4 = $k[--$j]; //#19513 + $k[$j++] = _P4; //#19517 + $k[$j++] = _P3; //#19517 + if ((_P3 < $_.mcols) && (_P4 >= 0)) { //#19517 + var _P6 = $k[--$j]; //#19514 + var _P7 = $k[--$j]; //#19514 + $k[$j++] = _P7; //#19516 + $k[$j++] = _P6; //#19516 + if ($get($_.mmat, $f(_P6 + (_P7 * $_.mcols))) == -1) { //#19516 + $k[$j++] = $_.dmn; //#19515 + $_.module(); //#19515 + } //#19515 + } //#19515 + var _PC = $k[--$j]; //#19518 + var _PD = $k[--$j]; //#19518 + $k[$j++] = $f(_PD + 2); //#19519 + $k[$j++] = $f(_PC - 2); //#19519 + if (!(($f(_PC - 2) >= 0) && ($f(_PD + 2) < $_.mrows))) { //#19519 + break; //#19519 + } //#19519 + } //#19519 + var _PF = $k[--$j]; //#19521 + var _PG = $k[--$j]; //#19521 + $k[$j++] = $f(_PG + 3); //#19523 + $k[$j++] = $f(_PF + 1); //#19523 + if (!(($f(_PF + 1) < $_.mcols) || ($f(_PG + 3) < $_.mrows))) { //#19523 + $j -= 2; //#19523 + break; //#19523 + } //#19523 + } //#19523 + if ($get($_.mmat, $f(($_.mrows * $_.mcols) - 1)) == -1) { //#19531 + $puti($_.mmat, $f(($_.mrows * $f($_.mcols - 1)) - 2), $a([1, 0])); //#19529 + $puti($_.mmat, $f(($_.mrows * $_.mcols) - 2), $a([0, 1])); //#19530 + } //#19530 + $_.pixs = $a($_.rows * $_.cols); //#19534 + $_.cwpos = 0; //#19535 + for (var _Pa = 0, _PZ = $f($_.rows - 1); _Pa <= _PZ; _Pa += 1) { //#19551 + $_.i = _Pa; //#19537 + if (($_.i % ($_.rrows + 2)) == 0) { //#19538 + $k[$j++] = $_.pixs; //#19538 + $k[$j++] = $_.i * $_.cols; //#19538 + $k[$j++] = Infinity; //#19538 + for (var _Ph = 0, _Pi = ~~($_.cols / 2); _Ph < _Pi; _Ph++) { //#19538 + $k[$j++] = 1; //#19538 + $k[$j++] = 0; //#19538 + } //#19538 + var _Pj = $a(); //#19538 + var _Pk = $k[--$j]; //#19538 + $puti($k[--$j], _Pk, _Pj); //#19538 + } //#19538 + if (($_.i % ($_.rrows + 2)) == ($_.rrows + 1)) { //#19539 + $k[$j++] = $_.pixs; //#19539 + $k[$j++] = $_.i * $_.cols; //#19539 + $k[$j++] = Infinity; //#19539 + for (var _Pt = 0, _Pu = $_.cols; _Pt < _Pu; _Pt++) { //#19539 + $k[$j++] = 1; //#19539 + } //#19539 + var _Pv = $a(); //#19539 + var _Pw = $k[--$j]; //#19539 + $puti($k[--$j], _Pw, _Pv); //#19539 + } //#19539 + if ((($_.i % ($_.rrows + 2)) != 0) && (($_.i % ($_.rrows + 2)) != ($_.rrows + 1))) { //#19550 + for (var _Q5 = 0, _Q4 = $f($_.cols - 1); _Q5 <= _Q4; _Q5 += 1) { //#19549 + $_.j = _Q5; //#19542 + if (($_.j % ($_.rcols + 2)) == 0) { //#19543 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), 1); //#19543 + } //#19543 + if (($_.j % ($_.rcols + 2)) == ($_.rcols + 1)) { //#19544 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $_.i % 2); //#19544 + } //#19544 + if ((($_.j % ($_.rcols + 2)) != 0) && (($_.j % ($_.rcols + 2)) != ($_.rcols + 1))) { //#19548 + $put($_.pixs, $f(($_.i * $_.cols) + $_.j), $get($_.mmat, $_.cwpos)); //#19546 + $_.cwpos = $_.cwpos + 1; //#19547 + } //#19547 + } //#19547 + } //#19547 + } //#19547 var _Qd = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -23183,715 +23590,715 @@ function bwipp_datamatrix() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#19283 - $k[$j++] = _Qd; //#19286 - if (!$_.dontdraw) { //#19286 - bwipp_renmatrix(); //#19286 - } //#19286 - $_ = Object.getPrototypeOf($_); //#19288 - $_ = Object.getPrototypeOf($_); //#19290 -} - + ]); //#19565 + $k[$j++] = _Qd; //#19568 + if (!$_.dontdraw) { //#19568 + bwipp_renmatrix(); //#19568 + } //#19568 + $_ = Object.getPrototypeOf($_); //#19570 + $_ = Object.getPrototypeOf($_); //#19572 +} //bwipp_datamatrix function bwipp_datamatrixrectangular() { - $_ = Object.create($_); //#19319 - $_.dontdraw = false; //#19322 - $k[$j++] = $_; //#19324 - bwipp_processoptions(); //#19324 - $_.options = $k[--$j]; //#19324 - $_.barcode = $k[--$j]; //#19325 - $put($_.options, "dontdraw", true); //#19328 - $put($_.options, "format", "rectangle"); //#19329 - $k[$j++] = 'args'; //#19331 - $k[$j++] = $_.barcode; //#19331 - $k[$j++] = $_.options; //#19331 - bwipp_datamatrix(); //#19331 - var _6 = $k[--$j]; //#19331 - $_[$k[--$j]] = _6; //#19331 - $put($_.args, "opt", $_.options); //#19333 - $k[$j++] = $_.args; //#19336 - if (!$_.dontdraw) { //#19336 - bwipp_renmatrix(); //#19336 - } //#19336 - $_ = Object.getPrototypeOf($_); //#19338 -} - + $_ = Object.create($_); //#19601 + $_.dontdraw = false; //#19604 + $k[$j++] = $_; //#19606 + bwipp_processoptions(); //#19606 + $_.options = $k[--$j]; //#19606 + $_.barcode = $k[--$j]; //#19607 + $put($_.options, "dontdraw", true); //#19610 + $put($_.options, "format", "rectangle"); //#19611 + $k[$j++] = 'args'; //#19613 + $k[$j++] = $_.barcode; //#19613 + $k[$j++] = $_.options; //#19613 + bwipp_datamatrix(); //#19613 + var _6 = $k[--$j]; //#19613 + $_[$k[--$j]] = _6; //#19613 + $put($_.args, "opt", $_.options); //#19615 + $k[$j++] = $_.args; //#19618 + if (!$_.dontdraw) { //#19618 + bwipp_renmatrix(); //#19618 + } //#19618 + $_ = Object.getPrototypeOf($_); //#19620 +} //bwipp_datamatrixrectangular function bwipp_datamatrixrectangularextension() { - $_ = Object.create($_); //#19367 - $_.dontdraw = false; //#19370 - $k[$j++] = $_; //#19372 - bwipp_processoptions(); //#19372 - $_.options = $k[--$j]; //#19372 - $_.barcode = $k[--$j]; //#19373 - $put($_.options, "dontdraw", true); //#19376 - $put($_.options, "dmre", true); //#19377 - $k[$j++] = 'args'; //#19379 - $k[$j++] = $_.barcode; //#19379 - $k[$j++] = $_.options; //#19379 - bwipp_datamatrix(); //#19379 - var _6 = $k[--$j]; //#19379 - $_[$k[--$j]] = _6; //#19379 - $put($_.args, "opt", $_.options); //#19381 - $k[$j++] = $_.args; //#19384 - if (!$_.dontdraw) { //#19384 - bwipp_renmatrix(); //#19384 - } //#19384 - $_ = Object.getPrototypeOf($_); //#19386 -} - + $_ = Object.create($_); //#19649 + $_.dontdraw = false; //#19652 + $k[$j++] = $_; //#19654 + bwipp_processoptions(); //#19654 + $_.options = $k[--$j]; //#19654 + $_.barcode = $k[--$j]; //#19655 + $put($_.options, "dontdraw", true); //#19658 + $put($_.options, "dmre", true); //#19659 + $k[$j++] = 'args'; //#19661 + $k[$j++] = $_.barcode; //#19661 + $k[$j++] = $_.options; //#19661 + bwipp_datamatrix(); //#19661 + var _6 = $k[--$j]; //#19661 + $_[$k[--$j]] = _6; //#19661 + $put($_.args, "opt", $_.options); //#19663 + $k[$j++] = $_.args; //#19666 + if (!$_.dontdraw) { //#19666 + bwipp_renmatrix(); //#19666 + } //#19666 + $_ = Object.getPrototypeOf($_); //#19668 +} //bwipp_datamatrixrectangularextension function bwipp_mailmark() { - $_ = Object.create($_); //#19416 - $_.type = "unset"; //#19419 - $_.parse = false; //#19420 - $_.dontdraw = false; //#19421 - $k[$j++] = $_; //#19423 - bwipp_processoptions(); //#19423 - $_.options = $k[--$j]; //#19423 - $_.barcode = $k[--$j]; //#19424 + $_ = Object.create($_); //#19698 + $_.type = "unset"; //#19701 + $_.parse = false; //#19702 + $_.dontdraw = false; //#19703 + $k[$j++] = $_; //#19705 + bwipp_processoptions(); //#19705 + $_.options = $k[--$j]; //#19705 + $_.barcode = $k[--$j]; //#19706 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#19430 - $_.fncvals = _3; //#19431 - $k[$j++] = 'barcode'; //#19432 - $k[$j++] = $_.barcode; //#19432 - $k[$j++] = $_.fncvals; //#19432 - bwipp_parseinput(); //#19432 - var _6 = $k[--$j]; //#19432 - $_[$k[--$j]] = _6; //#19432 - $_.barlen = $_.barcode.length; //#19433 - delete $_.options["parse"]; //#19434 - var _A = $_['type']; //#19437 - if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19439 - $k[$j++] = 'bwipp.mailmarkBadType#19438'; //#19438 - $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19438 - bwipp_raiseerror(); //#19438 - } //#19438 + ]); //#19712 + $_.fncvals = _3; //#19713 + $k[$j++] = 'barcode'; //#19714 + $k[$j++] = $_.barcode; //#19714 + $k[$j++] = $_.fncvals; //#19714 + bwipp_parseinput(); //#19714 + var _6 = $k[--$j]; //#19714 + $_[$k[--$j]] = _6; //#19714 + $_.barlen = $_.barcode.length; //#19715 + delete $_.options["parse"]; //#19716 + var _A = $_['type']; //#19719 + if ($ne(_A, "7") && ($ne(_A, "9") && $ne(_A, "29"))) { //#19721 + $k[$j++] = 'bwipp.mailmarkBadType#19720'; //#19720 + $k[$j++] = "Royal Mail Mailmark type must be 7, 9 or 29"; //#19720 + bwipp_raiseerror(); //#19720 + } //#19720 var _B = new Map([ ["7", "24x24"], ["9", "32x32"], ["29", "16x48"] - ]); //#19443 - $_.version = $get(_B, $_['type']); //#19444 + ]); //#19725 + $_.version = $get(_B, $_['type']); //#19726 var _E = new Map([ ["7", "square"], ["9", "square"], ["29", "rectangle"] - ]); //#19449 - $_.format = $get(_E, $_['type']); //#19450 - if ($_.barcode.length < 45) { //#19455 - $k[$j++] = 'bwipp.mailmarkBadLength#19454'; //#19454 - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19454 - bwipp_raiseerror(); //#19454 - } //#19454 - if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19458 - $k[$j++] = 'bwipp.mailmarkBadIndicator#19457'; //#19457 - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19457 - bwipp_raiseerror(); //#19457 - } //#19457 - $put($_.options, "dontdraw", true); //#19461 - $put($_.options, "version", $_.version); //#19462 - $put($_.options, "format", $_.format); //#19463 - $put($_.options, "c40headerlength", 45); //#19464 - $k[$j++] = 'args'; //#19465 - $k[$j++] = $_.barcode; //#19465 - $k[$j++] = $_.options; //#19465 - bwipp_datamatrix(); //#19465 - var _S = $k[--$j]; //#19465 - $_[$k[--$j]] = _S; //#19465 - $put($_.args, "opt", $_.options); //#19467 - $k[$j++] = $_.args; //#19470 - if (!$_.dontdraw) { //#19470 - bwipp_renmatrix(); //#19470 - } //#19470 - $_ = Object.getPrototypeOf($_); //#19472 -} - + ]); //#19731 + $_.format = $get(_E, $_['type']); //#19732 + if ($_.barcode.length < 45) { //#19737 + $k[$j++] = 'bwipp.mailmarkBadLength#19736'; //#19736 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#19736 + bwipp_raiseerror(); //#19736 + } //#19736 + if ($ne($geti($_.barcode, 0, 4), "JGB ")) { //#19740 + $k[$j++] = 'bwipp.mailmarkBadIndicator#19739'; //#19739 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#19739 + bwipp_raiseerror(); //#19739 + } //#19739 + $put($_.options, "dontdraw", true); //#19743 + $put($_.options, "version", $_.version); //#19744 + $put($_.options, "format", $_.format); //#19745 + $put($_.options, "c40headerlength", 45); //#19746 + $k[$j++] = 'args'; //#19747 + $k[$j++] = $_.barcode; //#19747 + $k[$j++] = $_.options; //#19747 + bwipp_datamatrix(); //#19747 + var _S = $k[--$j]; //#19747 + $_[$k[--$j]] = _S; //#19747 + $put($_.args, "opt", $_.options); //#19749 + $k[$j++] = $_.args; //#19752 + if (!$_.dontdraw) { //#19752 + bwipp_renmatrix(); //#19752 + } //#19752 + $_ = Object.getPrototypeOf($_); //#19754 +} //bwipp_mailmark function bwipp_qrcode() { - $_ = Object.create($_); //#19503 - $_.dontdraw = false; //#19506 - $_.format = "unset"; //#19507 - $_.version = "unset"; //#19508 - $_.eclevel = "unset"; //#19509 - $_.parse = false; //#19510 - $_.parsefnc = false; //#19511 - $_.mask = -1; //#19512 - $k[$j++] = $_; //#19514 - bwipp_processoptions(); //#19514 - $_.options = $k[--$j]; //#19514 - $_.barcode = $k[--$j]; //#19515 - bwipp_loadctx(bwipp_qrcode) //#19517 - if ($eq($_.barcode, "")) { //#19521 - $k[$j++] = 'bwipp.qrcodeEmptyData#19520'; //#19520 - $k[$j++] = "The data must not be empty"; //#19520 - bwipp_raiseerror(); //#19520 - } //#19520 - if ($ne($_.version, "unset")) { //#19532 - if ($eq($_.format, "unset")) { //#19530 - $k[$j++] = "full"; //#19527 - if ($eq($geti($_.version, 0, 1), "M")) { //#19527 - $j--; //#19527 - $k[$j++] = "micro"; //#19527 - } //#19527 - if ($eq($geti($_.version, 0, 1), "R")) { //#19528 - $j--; //#19528 - $k[$j++] = "rmqr"; //#19528 - } //#19528 - $_.format = $k[--$j]; //#19529 - } //#19529 - } else { //#19532 - if ($eq($_.format, "unset")) { //#19532 - $_.format = "full"; //#19532 - } //#19532 - } //#19532 - if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19537 - $k[$j++] = 'bwipp.qrcodeInvalidFormat#19536'; //#19536 - $k[$j++] = "The format must be either full, micro or rmqr"; //#19536 - bwipp_raiseerror(); //#19536 - } //#19536 - if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19541 - $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19540'; //#19540 - $k[$j++] = "A version must be provided for RMQR"; //#19540 - bwipp_raiseerror(); //#19540 - } //#19540 - if ($eq($_.eclevel, "unset")) { //#19544 - $k[$j++] = 'eclevel'; //#19544 - if ($ne($_.format, "micro")) { //#19544 - $k[$j++] = "M"; //#19544 - } else { //#19544 - $k[$j++] = "L"; //#19544 - } //#19544 - var _I = $k[--$j]; //#19544 - $_[$k[--$j]] = _I; //#19544 - } //#19544 - if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19548 - $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19547'; //#19547 - $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19547 - bwipp_raiseerror(); //#19547 - } //#19547 - if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19552 - $k[$j++] = 'bwipp.qrcodeRMQRmask#19551'; //#19551 - $k[$j++] = "A mask cannot be supplied for RMQR"; //#19551 - bwipp_raiseerror(); //#19551 - } //#19551 - if ($_.mask != -1) { //#19558 - var _U = $eq($_.format, "full") ? 8 : 4; //#19555 - if (($_.mask < 1) || ($_.mask > _U)) { //#19557 - $k[$j++] = 'bwipp.qrcodeBadMask#19556'; //#19556 - $k[$j++] = "An invalid mask was supplied"; //#19556 - bwipp_raiseerror(); //#19556 - } //#19556 - } //#19556 - $_.fn1 = -1; //#19561 + $_ = Object.create($_); //#19785 + $_.dontdraw = false; //#19788 + $_.format = "unset"; //#19789 + $_.version = "unset"; //#19790 + $_.eclevel = "unset"; //#19791 + $_.parse = false; //#19792 + $_.parsefnc = false; //#19793 + $_.mask = -1; //#19794 + $k[$j++] = $_; //#19796 + bwipp_processoptions(); //#19796 + $_.options = $k[--$j]; //#19796 + $_.barcode = $k[--$j]; //#19797 + bwipp_loadctx(bwipp_qrcode) //#19799 + if ($eq($_.barcode, "")) { //#19803 + $k[$j++] = 'bwipp.qrcodeEmptyData#19802'; //#19802 + $k[$j++] = "The data must not be empty"; //#19802 + bwipp_raiseerror(); //#19802 + } //#19802 + if ($ne($_.version, "unset")) { //#19814 + if ($eq($_.format, "unset")) { //#19812 + $k[$j++] = "full"; //#19809 + if ($eq($geti($_.version, 0, 1), "M")) { //#19809 + $j--; //#19809 + $k[$j++] = "micro"; //#19809 + } //#19809 + if ($eq($geti($_.version, 0, 1), "R")) { //#19810 + $j--; //#19810 + $k[$j++] = "rmqr"; //#19810 + } //#19810 + $_.format = $k[--$j]; //#19811 + } //#19811 + } else { //#19814 + if ($eq($_.format, "unset")) { //#19814 + $_.format = "full"; //#19814 + } //#19814 + } //#19814 + if ($ne($_.format, "full") && ($ne($_.format, "micro") && $ne($_.format, "rmqr"))) { //#19819 + $k[$j++] = 'bwipp.qrcodeInvalidFormat#19818'; //#19818 + $k[$j++] = "The format must be either full, micro or rmqr"; //#19818 + bwipp_raiseerror(); //#19818 + } //#19818 + if ($eq($_.format, "rmqr") && $eq($_.version, "unset")) { //#19823 + $k[$j++] = 'bwipp.qrcodeRMQRwithoutVersion#19822'; //#19822 + $k[$j++] = "A version must be provided for RMQR"; //#19822 + bwipp_raiseerror(); //#19822 + } //#19822 + if ($eq($_.eclevel, "unset")) { //#19826 + $k[$j++] = 'eclevel'; //#19826 + if ($ne($_.format, "micro")) { //#19826 + $k[$j++] = "M"; //#19826 + } else { //#19826 + $k[$j++] = "L"; //#19826 + } //#19826 + var _I = $k[--$j]; //#19826 + $_[$k[--$j]] = _I; //#19826 + } //#19826 + if ($ne($_.eclevel, "L") && ($ne($_.eclevel, "M") && ($ne($_.eclevel, "Q") && $ne($_.eclevel, "H")))) { //#19830 + $k[$j++] = 'bwipp.qrcodeInvalidEClevel#19829'; //#19829 + $k[$j++] = "Error correction level must be either L, M, Q, or H"; //#19829 + bwipp_raiseerror(); //#19829 + } //#19829 + if (($_.mask != -1) && $eq($_.format, "rmqr")) { //#19834 + $k[$j++] = 'bwipp.qrcodeRMQRmask#19833'; //#19833 + $k[$j++] = "A mask cannot be supplied for RMQR"; //#19833 + bwipp_raiseerror(); //#19833 + } //#19833 + if ($_.mask != -1) { //#19840 + var _U = $eq($_.format, "full") ? 8 : 4; //#19837 + if (($_.mask < 1) || ($_.mask > _U)) { //#19839 + $k[$j++] = 'bwipp.qrcodeBadMask#19838'; //#19838 + $k[$j++] = "An invalid mask was supplied"; //#19838 + bwipp_raiseerror(); //#19838 + } //#19838 + } //#19838 + $_.fn1 = -1; //#19843 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#19566 - $_.fncvals = _Y; //#19567 - $k[$j++] = 'msg'; //#19568 - $k[$j++] = $_.barcode; //#19568 - $k[$j++] = $_.fncvals; //#19568 - bwipp_parseinput(); //#19568 - var _b = $k[--$j]; //#19568 - $_[$k[--$j]] = _b; //#19568 - $_.msglen = $_.msg.length; //#19569 - $_.fnc1first = false; //#19572 - if ($_.msglen > 0) { //#19579 - if ($get($_.msg, 0) == $_.fn1) { //#19578 - $_.fnc1first = true; //#19575 - $k[$j++] = Infinity; //#19576 - var _k = $geti($_.msg, 1, $_.msglen - 1); //#19576 - for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19576 - var _n = $get(_k, _l); //#19576 - $k[$j++] = _n; //#19576 - if (_n == 37) { //#19576 - var _o = $k[--$j]; //#19576 - $k[$j++] = _o; //#19576 - $k[$j++] = _o; //#19576 - } //#19576 - } //#19576 - $_.msg = $a(); //#19576 - $_.msglen = $_.msg.length; //#19577 - } //#19577 - } //#19577 - if (!bwipp_qrcode.__19700__) { //#19700 - $_ = Object.create($_); //#19700 - var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19592 - $k[$j++] = 0; //#19593 - for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19593 - var _v = $k[--$j]; //#19593 - $_[$get(_r, _s)] = _v; //#19593 - $k[$j++] = $f(_v + 1); //#19593 - } //#19593 - $j--; //#19593 - $_.N = 0; //#19599 - $_.A = 1; //#19599 - $_.B = 2; //#19599 - $_.K = 3; //#19599 - $_.E = 4; //#19599 - $k[$j++] = Infinity; //#19604 - $k[$j++] = Infinity; //#19603 - for (var _w = 48; _w <= 57; _w += 1) { //#19603 - $k[$j++] = _w; //#19603 - } //#19603 - var _x = $a(); //#19603 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19604 - $k[$j++] = $get(_x, _y); //#19604 - $k[$j++] = -1; //#19604 - } //#19604 - $_.Nexcl = $d(); //#19605 - $k[$j++] = Infinity; //#19612 - $k[$j++] = Infinity; //#19611 - $k[$j++] = 32; //#19610 - $k[$j++] = 36; //#19610 - $k[$j++] = 37; //#19610 - $k[$j++] = 42; //#19610 - $k[$j++] = 43; //#19610 - $k[$j++] = 45; //#19610 - $k[$j++] = 46; //#19610 - $k[$j++] = 47; //#19610 - $k[$j++] = 58; //#19610 - for (var _12 = 65; _12 <= 90; _12 += 1) { //#19610 - $k[$j++] = _12; //#19610 - } //#19610 - $k[$j++] = $_.fn1; //#19611 - var _14 = $a(); //#19611 - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19612 - $k[$j++] = $get(_14, _15); //#19612 - $k[$j++] = -1; //#19612 - } //#19612 - $_.Aexcl = $d(); //#19613 - $k[$j++] = Infinity; //#19621 - $k[$j++] = Infinity; //#19620 - for (var _19 = 129; _19 <= 159; _19 += 1) { //#19619 - $k[$j++] = _19; //#19619 - } //#19619 - for (var _1A = 224; _1A <= 235; _1A += 1) { //#19620 - $k[$j++] = _1A; //#19620 - } //#19620 - var _1B = $a(); //#19620 - for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19621 - $k[$j++] = $get(_1B, _1C); //#19621 - $k[$j++] = -1; //#19621 - } //#19621 - $_.Kexcl = $d(); //#19622 - $k[$j++] = Infinity; //#19634 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19635 - $k[$j++] = $a(["", -1, -1, -1, -1]); //#19635 - $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19635 - $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19635 - $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19635 - for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19635 - $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19634 - } //#19634 - $_.mids = $a(); //#19634 - $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19678 - $k[$j++] = Infinity; //#19689 - for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19683 - $k[$j++] = 4; //#19682 - } //#19682 - $k[$j++] = 3; //#19690 - $k[$j++] = 5; //#19690 - $k[$j++] = 7; //#19690 - $k[$j++] = 9; //#19690 - for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19690 - $k[$j++] = 3; //#19689 - } //#19689 - $_.termlens = $a(); //#19689 - $_.padstrs = $a(["11101100", "00010001"]); //#19693 - $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19696 - $_.charvals = new Map; //#19697 - for (var _2B = 0; _2B <= 44; _2B += 1) { //#19698 - $put($_.charvals, $get($_.charmap, _2B), _2B); //#19698 - } //#19698 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19698 - bwipp_qrcode.__19700__ = 1; //#19698 - $_ = Object.getPrototypeOf($_); //#19698 - } //#19698 + ]); //#19848 + $_.fncvals = _Y; //#19849 + $k[$j++] = 'msg'; //#19850 + $k[$j++] = $_.barcode; //#19850 + $k[$j++] = $_.fncvals; //#19850 + bwipp_parseinput(); //#19850 + var _b = $k[--$j]; //#19850 + $_[$k[--$j]] = _b; //#19850 + $_.msglen = $_.msg.length; //#19851 + $_.fnc1first = false; //#19854 + if ($_.msglen > 0) { //#19861 + if ($get($_.msg, 0) == $_.fn1) { //#19860 + $_.fnc1first = true; //#19857 + $k[$j++] = Infinity; //#19858 + var _k = $geti($_.msg, 1, $_.msglen - 1); //#19858 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#19858 + var _n = $get(_k, _l); //#19858 + $k[$j++] = _n; //#19858 + if (_n == 37) { //#19858 + var _o = $k[--$j]; //#19858 + $k[$j++] = _o; //#19858 + $k[$j++] = _o; //#19858 + } //#19858 + } //#19858 + $_.msg = $a(); //#19858 + $_.msglen = $_.msg.length; //#19859 + } //#19859 + } //#19859 + if (!bwipp_qrcode.__19982__) { //#19982 + $_ = Object.create($_); //#19982 + var _r = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#19874 + $k[$j++] = 0; //#19875 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#19875 + var _v = $k[--$j]; //#19875 + $_[$get(_r, _s)] = _v; //#19875 + $k[$j++] = $f(_v + 1); //#19875 + } //#19875 + $j--; //#19875 + $_.N = 0; //#19881 + $_.A = 1; //#19881 + $_.B = 2; //#19881 + $_.K = 3; //#19881 + $_.E = 4; //#19881 + $k[$j++] = Infinity; //#19883 + $k[$j++] = Infinity; //#19884 + for (var _w = 48; _w <= 57; _w += 1) { //#19885 + $k[$j++] = _w; //#19885 + } //#19885 + var _x = $a(); //#19885 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#19886 + $k[$j++] = $get(_x, _y); //#19886 + $k[$j++] = -1; //#19886 + } //#19886 + $_.Nexcl = $d(); //#19887 + $k[$j++] = Infinity; //#19889 + $k[$j++] = Infinity; //#19890 + $k[$j++] = 32; //#19892 + $k[$j++] = 36; //#19892 + $k[$j++] = 37; //#19892 + $k[$j++] = 42; //#19892 + $k[$j++] = 43; //#19892 + $k[$j++] = 45; //#19892 + $k[$j++] = 46; //#19892 + $k[$j++] = 47; //#19892 + $k[$j++] = 58; //#19892 + for (var _12 = 65; _12 <= 90; _12 += 1) { //#19892 + $k[$j++] = _12; //#19892 + } //#19892 + $k[$j++] = $_.fn1; //#19893 + var _14 = $a(); //#19893 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#19894 + $k[$j++] = $get(_14, _15); //#19894 + $k[$j++] = -1; //#19894 + } //#19894 + $_.Aexcl = $d(); //#19895 + $k[$j++] = Infinity; //#19899 + $k[$j++] = Infinity; //#19900 + for (var _19 = 129; _19 <= 159; _19 += 1) { //#19901 + $k[$j++] = _19; //#19901 + } //#19901 + for (var _1A = 224; _1A <= 235; _1A += 1) { //#19902 + $k[$j++] = _1A; //#19902 + } //#19902 + var _1B = $a(); //#19902 + for (var _1C = 0, _1D = _1B.length; _1C < _1D; _1C++) { //#19903 + $k[$j++] = $get(_1B, _1C); //#19903 + $k[$j++] = -1; //#19903 + } //#19903 + $_.Kexcl = $d(); //#19904 + $k[$j++] = Infinity; //#19906 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#19917 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#19917 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#19917 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#19917 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#19917 + for (var _1N = 0, _1O = 32; _1N < _1O; _1N++) { //#19917 + $k[$j++] = $a(["001", "010", "011", "100", "111"]); //#19916 + } //#19916 + $_.mids = $a(); //#19916 + $_.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([7, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#19960 + $k[$j++] = Infinity; //#19962 + for (var _25 = 0, _26 = 3; _25 < _26; _25++) { //#19965 + $k[$j++] = 4; //#19964 + } //#19964 + $k[$j++] = 3; //#19972 + $k[$j++] = 5; //#19972 + $k[$j++] = 7; //#19972 + $k[$j++] = 9; //#19972 + for (var _27 = 0, _28 = 32; _27 < _28; _27++) { //#19972 + $k[$j++] = 3; //#19971 + } //#19971 + $_.termlens = $a(); //#19971 + $_.padstrs = $a(["11101100", "00010001"]); //#19975 + $_.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#19978 + $_.charvals = new Map; //#19979 + for (var _2B = 0; _2B <= 44; _2B += 1) { //#19980 + $put($_.charvals, $get($_.charmap, _2B), _2B); //#19980 + } //#19980 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19980 + bwipp_qrcode.__19982__ = 1; //#19980 + $_ = Object.getPrototypeOf($_); //#19980 + } //#19980 $_.tobin = function() { - var _2H = $s($k[--$j]); //#19704 - $k[$j++] = _2H; //#19704 - for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19704 - var _2K = $k[--$j]; //#19704 - $put(_2K, _2J, 48); //#19704 - $k[$j++] = _2K; //#19704 - } //#19704 - var _2L = $k[--$j]; //#19705 - var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19705 - $puti(_2L, _2L.length - _2O.length, _2O); //#19705 - $k[$j++] = _2L; //#19705 - }; //#19705 + var _2H = $s($k[--$j]); //#19986 + $k[$j++] = _2H; //#19986 + for (var _2J = 0, _2I = _2H.length - 1; _2J <= _2I; _2J += 1) { //#19986 + var _2K = $k[--$j]; //#19986 + $put(_2K, _2J, 48); //#19986 + $k[$j++] = _2K; //#19986 + } //#19986 + var _2L = $k[--$j]; //#19987 + var _2O = $cvrs($s(_2L.length), $k[--$j], 2); //#19987 + $puti(_2L, _2L.length - _2O.length, _2O); //#19987 + $k[$j++] = _2L; //#19987 + }; //#19987 $_.encA = function() { - $_.in = $k[--$j]; //#19709 - if ($_.fnc1first) { //#19712 - $k[$j++] = Infinity; //#19711 - $forall($_.in, function() { //#19711 - var _2S = $k[--$j]; //#19711 - $k[$j++] = _2S; //#19711 - if (_2S == $_.fn1) { //#19711 - $j--; //#19711 - $k[$j++] = 37; //#19711 - } //#19711 - }); //#19711 - $_.in = $a(); //#19711 - } //#19711 - $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19713 - $_.k = 0; //#19714 - $_.m = 0; //#19714 - for (;;) { //#19725 - if ($_.k == $_.in.length) { //#19715 - break; //#19715 - } //#19715 - if ($_.k < ($_.in.length - 1)) { //#19721 - $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19717 - $k[$j++] = 11; //#19717 - $_.tobin(); //#19717 - $_.k = $_.k + 2; //#19718 - } else { //#19721 - $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#19720 - $k[$j++] = 6; //#19720 - $_.tobin(); //#19720 - $_.k = $_.k + 1; //#19721 - } //#19721 - var _2s = $k[--$j]; //#19723 - $puti($_.out, $_.m, _2s); //#19723 - $_.m = _2s.length + $_.m; //#19724 - } //#19724 - $k[$j++] = $geti($_.out, 0, $_.m); //#19726 - }; //#19726 + $_.in = $k[--$j]; //#19991 + if ($_.fnc1first) { //#19994 + $k[$j++] = Infinity; //#19993 + $forall($_.in, function() { //#19993 + var _2S = $k[--$j]; //#19993 + $k[$j++] = _2S; //#19993 + if (_2S == $_.fn1) { //#19993 + $j--; //#19993 + $k[$j++] = 37; //#19993 + } //#19993 + }); //#19993 + $_.in = $a(); //#19993 + } //#19993 + $_.out = $s((~~(($_.in.length * 11) / 2)) + 1); //#19995 + $_.k = 0; //#19996 + $_.m = 0; //#19996 + for (;;) { //#20007 + if ($_.k == $_.in.length) { //#19997 + break; //#19997 + } //#19997 + if ($_.k < ($_.in.length - 1)) { //#20003 + $k[$j++] = $f(($get($_.charvals, $get($_.in, $_.k)) * 45) + $get($_.charvals, $get($_.in, $_.k + 1))); //#19999 + $k[$j++] = 11; //#19999 + $_.tobin(); //#19999 + $_.k = $_.k + 2; //#20000 + } else { //#20003 + $k[$j++] = $get($_.charvals, $get($_.in, $_.k)); //#20002 + $k[$j++] = 6; //#20002 + $_.tobin(); //#20002 + $_.k = $_.k + 1; //#20003 + } //#20003 + var _2s = $k[--$j]; //#20005 + $puti($_.out, $_.m, _2s); //#20005 + $_.m = _2s.length + $_.m; //#20006 + } //#20006 + $k[$j++] = $geti($_.out, 0, $_.m); //#20008 + }; //#20008 $_.encN = function() { - $_.in = $k[--$j]; //#19730 - $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#19731 - $_.k = 0; //#19732 - $_.m = 0; //#19732 - for (;;) { //#19748 - if ($_.k == $_.in.length) { //#19733 - break; //#19733 - } //#19733 - if ($_.k < ($_.in.length - 2)) { //#19743 - var _38 = $geti($_.in, $_.k, 3); //#19735 - $k[$j++] = 0; //#19735 - for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#19735 - var _3C = $k[--$j]; //#19735 - $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#19735 - } //#19735 - $k[$j++] = 10; //#19735 - $_.tobin(); //#19735 - $_.k = $_.k + 3; //#19736 - } else { //#19743 - if ($_.k == ($_.in.length - 2)) { //#19743 - var _3I = $geti($_.in, $_.k, 2); //#19739 - $k[$j++] = 0; //#19739 - for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#19739 - var _3M = $k[--$j]; //#19739 - $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#19739 - } //#19739 - $k[$j++] = 7; //#19739 - $_.tobin(); //#19739 - $_.k = $_.k + 2; //#19740 - } else { //#19743 - var _3Q = $geti($_.in, $_.k, 1); //#19742 - $k[$j++] = 0; //#19742 - for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#19742 - var _3U = $k[--$j]; //#19742 - $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#19742 - } //#19742 - $k[$j++] = 4; //#19742 - $_.tobin(); //#19742 - $_.k = $_.k + 1; //#19743 - } //#19743 - } //#19743 - var _3W = $k[--$j]; //#19746 - $puti($_.out, $_.m, _3W); //#19746 - $_.m = _3W.length + $_.m; //#19747 - } //#19747 - $k[$j++] = $geti($_.out, 0, $_.m); //#19749 - }; //#19749 + $_.in = $k[--$j]; //#20012 + $_.out = $s((~~(($_.in.length * 10) / 3)) + 1); //#20013 + $_.k = 0; //#20014 + $_.m = 0; //#20014 + for (;;) { //#20030 + if ($_.k == $_.in.length) { //#20015 + break; //#20015 + } //#20015 + if ($_.k < ($_.in.length - 2)) { //#20025 + var _38 = $geti($_.in, $_.k, 3); //#20017 + $k[$j++] = 0; //#20017 + for (var _39 = 0, _3A = _38.length; _39 < _3A; _39++) { //#20017 + var _3C = $k[--$j]; //#20017 + $k[$j++] = $f($get(_38, _39) + ($f((_3C * 10) - 48))); //#20017 + } //#20017 + $k[$j++] = 10; //#20017 + $_.tobin(); //#20017 + $_.k = $_.k + 3; //#20018 + } else { //#20025 + if ($_.k == ($_.in.length - 2)) { //#20025 + var _3I = $geti($_.in, $_.k, 2); //#20021 + $k[$j++] = 0; //#20021 + for (var _3J = 0, _3K = _3I.length; _3J < _3K; _3J++) { //#20021 + var _3M = $k[--$j]; //#20021 + $k[$j++] = $f($get(_3I, _3J) + ($f((_3M * 10) - 48))); //#20021 + } //#20021 + $k[$j++] = 7; //#20021 + $_.tobin(); //#20021 + $_.k = $_.k + 2; //#20022 + } else { //#20025 + var _3Q = $geti($_.in, $_.k, 1); //#20024 + $k[$j++] = 0; //#20024 + for (var _3R = 0, _3S = _3Q.length; _3R < _3S; _3R++) { //#20024 + var _3U = $k[--$j]; //#20024 + $k[$j++] = $f($get(_3Q, _3R) + ($f((_3U * 10) - 48))); //#20024 + } //#20024 + $k[$j++] = 4; //#20024 + $_.tobin(); //#20024 + $_.k = $_.k + 1; //#20025 + } //#20025 + } //#20025 + var _3W = $k[--$j]; //#20028 + $puti($_.out, $_.m, _3W); //#20028 + $_.m = _3W.length + $_.m; //#20029 + } //#20029 + $k[$j++] = $geti($_.out, 0, $_.m); //#20031 + }; //#20031 $_.encB = function() { - $_.in = $k[--$j]; //#19753 - if ($_.fnc1first) { //#19756 - $k[$j++] = Infinity; //#19755 - $forall($_.in, function() { //#19755 - var _3g = $k[--$j]; //#19755 - $k[$j++] = _3g; //#19755 - if (_3g == $_.fn1) { //#19755 - $j--; //#19755 - $k[$j++] = 29; //#19755 - } //#19755 - }); //#19755 - $_.in = $a(); //#19755 - } //#19755 - $_.out = $s($_.in.length * 8); //#19757 - for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#19762 - $_.k = _3n; //#19759 - $k[$j++] = $cvi($get($_.in, $_.k)); //#19760 - $k[$j++] = 8; //#19760 - $_.tobin(); //#19760 - $puti($_.out, $_.k * 8, $k[--$j]); //#19761 - } //#19761 - $k[$j++] = $_.out; //#19763 - }; //#19763 + $_.in = $k[--$j]; //#20035 + if ($_.fnc1first) { //#20038 + $k[$j++] = Infinity; //#20037 + $forall($_.in, function() { //#20037 + var _3g = $k[--$j]; //#20037 + $k[$j++] = _3g; //#20037 + if (_3g == $_.fn1) { //#20037 + $j--; //#20037 + $k[$j++] = 29; //#20037 + } //#20037 + }); //#20037 + $_.in = $a(); //#20037 + } //#20037 + $_.out = $s($_.in.length * 8); //#20039 + for (var _3n = 0, _3m = $_.in.length - 1; _3n <= _3m; _3n += 1) { //#20044 + $_.k = _3n; //#20041 + $k[$j++] = $cvi($get($_.in, $_.k)); //#20042 + $k[$j++] = 8; //#20042 + $_.tobin(); //#20042 + $puti($_.out, $_.k * 8, $k[--$j]); //#20043 + } //#20043 + $k[$j++] = $_.out; //#20045 + }; //#20045 $_.encK = function() { - $_.in = $k[--$j]; //#19767 - $_.out = $s((~~($_.in.length / 2)) * 13); //#19768 - $_.k = 0; //#19769 - $_.m = 0; //#19769 - for (;;) { //#19777 - if ($_.k == $_.in.length) { //#19770 - break; //#19770 - } //#19770 - var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#19772 - $k[$j++] = _46; //#19772 - if (_46 < 57408) { //#19772 - $k[$j++] = 33088; //#19772 - } else { //#19772 - $k[$j++] = 49472; //#19772 - } //#19772 - var _47 = $k[--$j]; //#19772 - var _49 = $f($k[--$j] - _47); //#19773 - $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#19774 - $k[$j++] = 13; //#19774 - $_.tobin(); //#19774 - var _4A = $k[--$j]; //#19774 - $puti($_.out, $_.m, _4A); //#19774 - $_.m = _4A.length + $_.m; //#19775 - $_.k = $_.k + 2; //#19776 - } //#19776 - $k[$j++] = $_.out; //#19778 - }; //#19778 + $_.in = $k[--$j]; //#20049 + $_.out = $s((~~($_.in.length / 2)) * 13); //#20050 + $_.k = 0; //#20051 + $_.m = 0; //#20051 + for (;;) { //#20059 + if ($_.k == $_.in.length) { //#20052 + break; //#20052 + } //#20052 + var _46 = $f(($get($_.in, $_.k) * 256) + $get($_.in, $_.k + 1)); //#20054 + $k[$j++] = _46; //#20054 + if (_46 < 57408) { //#20054 + $k[$j++] = 33088; //#20054 + } else { //#20054 + $k[$j++] = 49472; //#20054 + } //#20054 + var _47 = $k[--$j]; //#20054 + var _49 = $f($k[--$j] - _47); //#20055 + $k[$j++] = $f(((_49 >>> 8) * 192) + (_49 & 255)); //#20056 + $k[$j++] = 13; //#20056 + $_.tobin(); //#20056 + var _4A = $k[--$j]; //#20056 + $puti($_.out, $_.m, _4A); //#20056 + $_.m = _4A.length + $_.m; //#20057 + $_.k = $_.k + 2; //#20058 + } //#20058 + $k[$j++] = $_.out; //#20060 + }; //#20060 $_.encE = function() { - var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#19783 - $k[$j++] = _4I; //#19789 - if (_4I <= 127) { //#19788 - $k[$j++] = 8; //#19784 - $_.tobin(); //#19784 - } else { //#19788 - var _4J = $k[--$j]; //#19785 - $k[$j++] = _4J; //#19789 - if (_4J <= 16383) { //#19788 - var _4K = $k[--$j]; //#19786 - $k[$j++] = $f(_4K + 32768); //#19786 - $k[$j++] = 16; //#19786 - $_.tobin(); //#19786 - } else { //#19788 - var _4L = $k[--$j]; //#19788 - $k[$j++] = $f(_4L + 12582912); //#19788 - $k[$j++] = 24; //#19788 - $_.tobin(); //#19788 - } //#19788 - } //#19788 - }; //#19788 - $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#19792 + var _4I = $f((-$get($k[--$j], 0)) - 1000000); //#20065 + $k[$j++] = _4I; //#20071 + if (_4I <= 127) { //#20070 + $k[$j++] = 8; //#20066 + $_.tobin(); //#20066 + } else { //#20070 + var _4J = $k[--$j]; //#20067 + $k[$j++] = _4J; //#20071 + if (_4J <= 16383) { //#20070 + var _4K = $k[--$j]; //#20068 + $k[$j++] = $f(_4K + 32768); //#20068 + $k[$j++] = 16; //#20068 + $_.tobin(); //#20068 + } else { //#20070 + var _4L = $k[--$j]; //#20070 + $k[$j++] = $f(_4L + 12582912); //#20070 + $k[$j++] = 24; //#20070 + $_.tobin(); //#20070 + } //#20070 + } //#20070 + }; //#20070 + $_.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#20074 $_.addtobits = function() { - var _4N = $k[--$j]; //#19795 - $puti($_.bits, $_.j, _4N); //#19795 - $_.j = _4N.length + $_.j; //#19796 - }; //#19796 - $k[$j++] = Infinity; //#19799 - for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#19799 - $k[$j++] = 0; //#19799 - } //#19799 - $k[$j++] = 0; //#19799 - $_.numNs = $a(); //#19799 - $k[$j++] = Infinity; //#19800 - for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#19800 - $k[$j++] = 0; //#19800 - } //#19800 - $k[$j++] = 0; //#19800 - $_.numAs = $a(); //#19800 - $k[$j++] = Infinity; //#19801 - for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#19801 - $k[$j++] = 0; //#19801 - } //#19801 - $k[$j++] = 0; //#19801 - $_.numAorNs = $a(); //#19801 - $k[$j++] = Infinity; //#19802 - for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#19802 - $k[$j++] = 0; //#19802 - } //#19802 - $k[$j++] = 0; //#19802 - $_.numBs = $a(); //#19802 - $k[$j++] = Infinity; //#19803 - for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#19803 - $k[$j++] = 0; //#19803 - } //#19803 - $k[$j++] = 0; //#19803 - $_.numKs = $a(); //#19803 - $k[$j++] = Infinity; //#19804 - for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#19804 - $k[$j++] = 0; //#19804 - } //#19804 - $k[$j++] = 9999; //#19804 - $_.nextNs = $a(); //#19804 - $k[$j++] = Infinity; //#19805 - for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#19805 - $k[$j++] = 0; //#19805 - } //#19805 - $k[$j++] = 9999; //#19805 - $_.nextBs = $a(); //#19805 - $k[$j++] = Infinity; //#19806 - for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#19806 - $k[$j++] = 0; //#19806 - } //#19806 - $k[$j++] = 9999; //#19806 - $_.nextAs = $a(); //#19806 - $k[$j++] = Infinity; //#19807 - for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#19807 - $k[$j++] = 0; //#19807 - } //#19807 - $k[$j++] = 9999; //#19807 - $_.nextKs = $a(); //#19807 - $_.isECI = $a($_.msglen); //#19808 - for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#19838 - $_.i = _54; //#19810 - $_.barchar = $get($_.msg, $_.i); //#19811 - var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#19812 - if (_5A) { //#19821 - $k[$j++] = 'sjis'; //#19813 - if (($_.i + 1) < $_.msglen) { //#19813 - $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#19813 - } else { //#19813 - $k[$j++] = 0; //#19813 - } //#19813 - var _5H = $k[--$j]; //#19813 - $_[$k[--$j]] = _5H; //#19813 - if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#19818 - $put($_.nextKs, $_.i, 0); //#19815 - $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#19816 - } else { //#19818 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19818 - } //#19818 - } else { //#19821 - $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#19821 - } //#19821 - var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#19823 - if (_5g) { //#19828 - $put($_.nextNs, $_.i, 0); //#19824 - $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#19825 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19826 - } else { //#19828 - $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#19828 - } //#19828 - var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#19830 - if (_60) { //#19835 - $put($_.nextAs, $_.i, 0); //#19831 - $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#19832 - $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#19833 - } else { //#19835 - $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#19835 - } //#19835 - $put($_.isECI, $_.i, $_.barchar <= -1000000); //#19837 - } //#19837 - for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#19845 - $_.i = _6N; //#19840 - if ($get($_.numKs, $_.i) > 0) { //#19844 - $put($_.numKs, $_.i + 1, 0); //#19842 - $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#19843 - } //#19843 - } //#19843 - for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#19854 - $_.i = _6Z; //#19847 - if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#19852 - $put($_.nextBs, $_.i, 0); //#19849 - $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#19850 - } else { //#19852 - $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#19852 - } //#19852 - } //#19852 + var _4N = $k[--$j]; //#20077 + $puti($_.bits, $_.j, _4N); //#20077 + $_.j = _4N.length + $_.j; //#20078 + }; //#20078 + $k[$j++] = Infinity; //#20081 + for (var _4S = 0, _4T = $_.msglen; _4S < _4T; _4S++) { //#20081 + $k[$j++] = 0; //#20081 + } //#20081 + $k[$j++] = 0; //#20081 + $_.numNs = $a(); //#20081 + $k[$j++] = Infinity; //#20082 + for (var _4W = 0, _4X = $_.msglen; _4W < _4X; _4W++) { //#20082 + $k[$j++] = 0; //#20082 + } //#20082 + $k[$j++] = 0; //#20082 + $_.numAs = $a(); //#20082 + $k[$j++] = Infinity; //#20083 + for (var _4a = 0, _4b = $_.msglen; _4a < _4b; _4a++) { //#20083 + $k[$j++] = 0; //#20083 + } //#20083 + $k[$j++] = 0; //#20083 + $_.numAorNs = $a(); //#20083 + $k[$j++] = Infinity; //#20084 + for (var _4e = 0, _4f = $_.msglen; _4e < _4f; _4e++) { //#20084 + $k[$j++] = 0; //#20084 + } //#20084 + $k[$j++] = 0; //#20084 + $_.numBs = $a(); //#20084 + $k[$j++] = Infinity; //#20085 + for (var _4i = 0, _4j = $_.msglen; _4i < _4j; _4i++) { //#20085 + $k[$j++] = 0; //#20085 + } //#20085 + $k[$j++] = 0; //#20085 + $_.numKs = $a(); //#20085 + $k[$j++] = Infinity; //#20086 + for (var _4m = 0, _4n = $_.msglen; _4m < _4n; _4m++) { //#20086 + $k[$j++] = 0; //#20086 + } //#20086 + $k[$j++] = 9999; //#20086 + $_.nextNs = $a(); //#20086 + $k[$j++] = Infinity; //#20087 + for (var _4q = 0, _4r = $_.msglen; _4q < _4r; _4q++) { //#20087 + $k[$j++] = 0; //#20087 + } //#20087 + $k[$j++] = 9999; //#20087 + $_.nextBs = $a(); //#20087 + $k[$j++] = Infinity; //#20088 + for (var _4u = 0, _4v = $_.msglen; _4u < _4v; _4u++) { //#20088 + $k[$j++] = 0; //#20088 + } //#20088 + $k[$j++] = 9999; //#20088 + $_.nextAs = $a(); //#20088 + $k[$j++] = Infinity; //#20089 + for (var _4y = 0, _4z = $_.msglen; _4y < _4z; _4y++) { //#20089 + $k[$j++] = 0; //#20089 + } //#20089 + $k[$j++] = 9999; //#20089 + $_.nextKs = $a(); //#20089 + $_.isECI = $a($_.msglen); //#20090 + for (var _54 = $_.msglen - 1; _54 >= 0; _54 -= 1) { //#20120 + $_.i = _54; //#20092 + $_.barchar = $get($_.msg, $_.i); //#20093 + var _5A = $get($_.Kexcl, $_.barchar) !== undefined; //#20094 + if (_5A) { //#20103 + $k[$j++] = 'sjis'; //#20095 + if (($_.i + 1) < $_.msglen) { //#20095 + $k[$j++] = $f(($_.barchar * 256) + $get($_.msg, $_.i + 1)); //#20095 + } else { //#20095 + $k[$j++] = 0; //#20095 + } //#20095 + var _5H = $k[--$j]; //#20095 + $_[$k[--$j]] = _5H; //#20095 + if ((($_.sjis >= 33088) && ($_.sjis <= 40956)) || (($_.sjis >= 57408) && ($_.sjis <= 60351))) { //#20100 + $put($_.nextKs, $_.i, 0); //#20097 + $put($_.numKs, $_.i, $f($get($_.numKs, $_.i + 2) + 1)); //#20098 + } else { //#20100 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20100 + } //#20100 + } else { //#20103 + $put($_.nextKs, $_.i, $f($get($_.nextKs, $_.i + 1) + 1)); //#20103 + } //#20103 + var _5g = $get($_.Nexcl, $_.barchar) !== undefined; //#20105 + if (_5g) { //#20110 + $put($_.nextNs, $_.i, 0); //#20106 + $put($_.numNs, $_.i, $f($get($_.numNs, $_.i + 1) + 1)); //#20107 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20108 + } else { //#20110 + $put($_.nextNs, $_.i, $f($get($_.nextNs, $_.i + 1) + 1)); //#20110 + } //#20110 + var _60 = $get($_.Aexcl, $_.barchar) !== undefined; //#20112 + if (_60) { //#20117 + $put($_.nextAs, $_.i, 0); //#20113 + $put($_.numAs, $_.i, $f($get($_.numAs, $_.i + 1) + 1)); //#20114 + $put($_.numAorNs, $_.i, $f($get($_.numAorNs, $_.i + 1) + 1)); //#20115 + } else { //#20117 + $put($_.nextAs, $_.i, $f($get($_.nextAs, $_.i + 1) + 1)); //#20117 + } //#20117 + $put($_.isECI, $_.i, $_.barchar <= -1000000); //#20119 + } //#20119 + for (var _6N = 0, _6M = $_.msglen - 1; _6N <= _6M; _6N += 1) { //#20127 + $_.i = _6N; //#20122 + if ($get($_.numKs, $_.i) > 0) { //#20126 + $put($_.numKs, $_.i + 1, 0); //#20124 + $put($_.nextKs, $_.i + 1, $f($get($_.nextKs, $_.i + 1) + 1)); //#20125 + } //#20125 + } //#20125 + for (var _6Z = $_.msglen - 1; _6Z >= 0; _6Z -= 1) { //#20136 + $_.i = _6Z; //#20129 + if ((($f($get($_.numNs, $_.i) + $f($get($_.numAs, $_.i) + $get($_.numKs, $_.i)))) == 0) && $nt($get($_.isECI, $_.i))) { //#20134 + $put($_.nextBs, $_.i, 0); //#20131 + $put($_.numBs, $_.i, $f($get($_.numBs, $_.i + 1) + 1)); //#20132 + } else { //#20134 + $put($_.nextBs, $_.i, $f($get($_.nextBs, $_.i + 1) + 1)); //#20134 + } //#20134 + } //#20134 $_.KbeforeB = function() { - var _71 = $get($k[--$j], $_.ver); //#19856 - $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#19856 - }; //#19856 + var _71 = $get($k[--$j], $_.ver); //#20138 + $k[$j++] = $ge($_.numK, _71) && ($get($_.nextBs, $f(($_.numK * 2) + $_.i)) == 0); //#20138 + }; //#20138 $_.KbeforeA = function() { - var _79 = $get($k[--$j], $_.ver); //#19857 - $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#19857 - }; //#19857 + var _79 = $get($k[--$j], $_.ver); //#20139 + $k[$j++] = $ge($_.numK, _79) && ($get($_.nextAs, $f(($_.numK * 2) + $_.i)) == 0); //#20139 + }; //#20139 $_.KbeforeN = function() { - var _7H = $get($k[--$j], $_.ver); //#19858 - $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#19858 - }; //#19858 + var _7H = $get($k[--$j], $_.ver); //#20140 + $k[$j++] = $ge($_.numK, _7H) && ($get($_.nextNs, $f(($_.numK * 2) + $_.i)) == 0); //#20140 + }; //#20140 $_.KbeforeE = function() { - var _7P = $get($k[--$j], $_.ver); //#19859 - $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#19859 - }; //#19859 + var _7P = $get($k[--$j], $_.ver); //#20141 + $k[$j++] = $ge($_.numK, _7P) && (($f(($_.numK * 2) + $_.i)) == $_.msglen); //#20141 + }; //#20141 $_.AbeforeK = function() { - var _7W = $get($k[--$j], $_.ver); //#19860 - $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#19860 - }; //#19860 + var _7W = $get($k[--$j], $_.ver); //#20142 + $k[$j++] = $ge($_.numA, _7W) && ($get($_.nextKs, $f($_.numA + $_.i)) == 0); //#20142 + }; //#20142 $_.AbeforeB = function() { - var _7e = $get($k[--$j], $_.ver); //#19861 - $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#19861 - }; //#19861 + var _7e = $get($k[--$j], $_.ver); //#20143 + $k[$j++] = $ge($_.numA, _7e) && ($get($_.nextBs, $f($_.numA + $_.i)) == 0); //#20143 + }; //#20143 $_.AbeforeN = function() { - var _7m = $get($k[--$j], $_.ver); //#19862 - $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#19862 - }; //#19862 + var _7m = $get($k[--$j], $_.ver); //#20144 + $k[$j++] = $ge($_.numA, _7m) && ($get($_.nextNs, $f($_.numA + $_.i)) == 0); //#20144 + }; //#20144 $_.AbeforeE = function() { - var _7u = $get($k[--$j], $_.ver); //#19863 - $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#19863 - }; //#19863 + var _7u = $get($k[--$j], $_.ver); //#20145 + $k[$j++] = $ge($_.numA, _7u) && ($f($_.numA + $_.i) == $_.msglen); //#20145 + }; //#20145 $_.NbeforeK = function() { - var _81 = $get($k[--$j], $_.ver); //#19864 - $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#19864 - }; //#19864 + var _81 = $get($k[--$j], $_.ver); //#20146 + $k[$j++] = $ge($_.numN, _81) && ($get($_.nextKs, $f($_.numN + $_.i)) == 0); //#20146 + }; //#20146 $_.NbeforeB = function() { - var _89 = $get($k[--$j], $_.ver); //#19865 - $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#19865 - }; //#19865 + var _89 = $get($k[--$j], $_.ver); //#20147 + $k[$j++] = $ge($_.numN, _89) && ($get($_.nextBs, $f($_.numN + $_.i)) == 0); //#20147 + }; //#20147 $_.NbeforeA = function() { - var _8H = $get($k[--$j], $_.ver); //#19866 - $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#19866 - }; //#19866 + var _8H = $get($k[--$j], $_.ver); //#20148 + $k[$j++] = $ge($_.numN, _8H) && ($get($_.nextAs, $f($_.numN + $_.i)) == 0); //#20148 + }; //#20148 $_.NbeforeE = function() { - var _8P = $get($k[--$j], $_.ver); //#19867 - $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#19867 - }; //#19867 + var _8P = $get($k[--$j], $_.ver); //#20149 + $k[$j++] = $ge($_.numN, _8P) && ($f($_.numN + $_.i) == $_.msglen); //#20149 + }; //#20149 $_.AorNbeforeB = function() { - var _8W = $get($k[--$j], $_.ver); //#19868 - $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#19868 - }; //#19868 + var _8W = $get($k[--$j], $_.ver); //#20150 + $k[$j++] = $ge($_.numAorN, _8W) && ($get($_.nextBs, $f($_.numAorN + $_.i)) == 0); //#20150 + }; //#20150 $_.AorNbeforeE = function() { - var _8e = $get($k[--$j], $_.ver); //#19869 - $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#19869 - }; //#19869 + var _8e = $get($k[--$j], $_.ver); //#20151 + $k[$j++] = $ge($_.numAorN, _8e) && ($f($_.numAorN + $_.i) == $_.msglen); //#20151 + }; //#20151 $_.nextNslt = function() { - if ($get($_.nextNs, $_.i) >= $_.msglen) { //#19871 - $j--; //#19871 - $k[$j++] = true; //#19871 - } else { //#19871 - var _8u = $get($k[--$j], $_.ver); //#19871 - $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#19871 - } //#19871 - }; //#19871 - if (!bwipp_qrcode.__19901__) { //#19901 - $_ = Object.create($_); //#19901 - $k[$j++] = Infinity; //#19896 - $k[$j++] = "full"; //#19885 - $k[$j++] = Infinity; //#19885 - for (var _8v = 0; _8v <= 9; _8v += 1) { //#19883 - $k[$j++] = $cvrs($s(2), _8v, 10); //#19883 - $k[$j++] = $_.v1to9; //#19883 - } //#19883 - for (var _8z = 10; _8z <= 26; _8z += 1) { //#19884 - $k[$j++] = $cvrs($s(2), _8z, 10); //#19884 - $k[$j++] = $_.v10to26; //#19884 - } //#19884 - for (var _93 = 27; _93 <= 40; _93 += 1) { //#19885 - $k[$j++] = $cvrs($s(2), _93, 10); //#19885 - $k[$j++] = $_.v27to40; //#19885 - } //#19885 - var _97 = $d(); //#19885 + if ($get($_.nextNs, $_.i) >= $_.msglen) { //#20153 + $j--; //#20153 + $k[$j++] = true; //#20153 + } else { //#20153 + var _8u = $get($k[--$j], $_.ver); //#20153 + $k[$j++] = $lt($get($_.numNs, $f($get($_.nextNs, $_.i) + $_.i)), _8u); //#20153 + } //#20153 + }; //#20153 + if (!bwipp_qrcode.__20183__) { //#20183 + $_ = Object.create($_); //#20183 + $k[$j++] = Infinity; //#20163 + $k[$j++] = "full"; //#20167 + $k[$j++] = Infinity; //#20164 + for (var _8v = 0; _8v <= 9; _8v += 1) { //#20165 + $k[$j++] = $cvrs($s(2), _8v, 10); //#20165 + $k[$j++] = $_.v1to9; //#20165 + } //#20165 + for (var _8z = 10; _8z <= 26; _8z += 1) { //#20166 + $k[$j++] = $cvrs($s(2), _8z, 10); //#20166 + $k[$j++] = $_.v10to26; //#20166 + } //#20166 + for (var _93 = 27; _93 <= 40; _93 += 1) { //#20167 + $k[$j++] = $cvrs($s(2), _93, 10); //#20167 + $k[$j++] = $_.v27to40; //#20167 + } //#20167 + var _97 = $d(); //#20167 var _9C = new Map([ ["M1", $_.vM1], ["M2", $_.vM2], ["M3", $_.vM3], ["M4", $_.vM4] - ]); //#19888 + ]); //#20170 var _9j = new Map([ ["R7x43", $_.vR7x43], ["R7x59", $_.vR7x59], @@ -23925,3690 +24332,3726 @@ function bwipp_qrcode() { ["R17x77", $_.vR17x77], ["R17x99", $_.vR17x99], ["R17x139", $_.vR17x139] - ]); //#19896 - $k[$j++] = _97; //#19896 - $k[$j++] = "micro"; //#19896 - $k[$j++] = _9C; //#19896 - $k[$j++] = "rmqr"; //#19896 - $k[$j++] = _9j; //#19896 - $_.versetmap = $d(); //#19898 - $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#19899 - $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#19900 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19900 - bwipp_qrcode.__19901__ = 1; //#19900 - $_ = Object.getPrototypeOf($_); //#19900 - } //#19900 - if ($ne($_.version, "unset")) { //#19919 - var _9y = $get($_.versetmap, $_.format); //#19904 - var _9z = $_.version; //#19904 - var _A0 = $get(_9y, _9z) !== undefined; //#19904 - $k[$j++] = _9y; //#19914 - $k[$j++] = _9z; //#19914 - if (!_A0) { //#19914 - $j -= 2; //#19905 - if ($eq($_.format, "full")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#19907'; //#19907 - $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#19907 - bwipp_raiseerror(); //#19907 - } else { //#19912 - if ($eq($_.format, "micro")) { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#19910'; //#19910 - $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#19910 - bwipp_raiseerror(); //#19910 - } else { //#19912 - $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#19912'; //#19912 - $k[$j++] = "Invalid version for an RMQR symbol"; //#19912 - bwipp_raiseerror(); //#19912 - } //#19912 - } //#19912 - } //#19912 - var _A3 = $k[--$j]; //#19915 - var _A5 = $get($k[--$j], _A3); //#19915 - $k[$j++] = _A5; //#19915 - $k[$j++] = Infinity; //#19915 - var _A6 = $k[--$j]; //#19915 - var _A7 = $k[--$j]; //#19915 - $k[$j++] = _A6; //#19915 - $k[$j++] = _A7; //#19915 - $_.verset = $a(); //#19915 - } else { //#19919 - if ($eq($_.format, "full")) { //#19918 - $_.verset = $_.versetfull; //#19918 - } //#19918 - if ($eq($_.format, "micro")) { //#19919 - $_.verset = $_.versetmicro; //#19919 - } //#19919 - } //#19919 - $k[$j++] = Infinity; //#19924 - for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#19924 - $k[$j++] = -1; //#19924 - } //#19924 - $_.msgbits = $a(); //#19924 - $_.e = 10000; //#19925 - if (!bwipp_qrcode.__19955__) { //#19955 - $_ = Object.create($_); //#19955 - $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19931 - $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19932 - $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#19933 - $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19935 - $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#19937 - $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#19938 - $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#19939 - $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#19940 - $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#19942 - $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#19943 - $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#19944 - $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#19945 - $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#19947 - $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#19948 - $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#19949 - $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#19950 - $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#19952 - $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#19953 - $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#19954 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#19954 - bwipp_qrcode.__19955__ = 1; //#19954 - $_ = Object.getPrototypeOf($_); //#19954 - } //#19954 - var _B7 = $_.verset; //#19957 - for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20089 - $_.ver = $get(_B7, _B8); //#19958 - $_.mode = -1; //#19961 - $_.seq = $a([]); //#19961 - $_.i = 0; //#19961 - for (;;) { //#20058 - if ($_.i >= $_.msglen) { //#19962 - break; //#19962 - } //#19962 - $_.numK = $get($_.numKs, $_.i); //#19963 - $_.numB = $get($_.numBs, $_.i); //#19964 - $_.numA = $get($_.numAs, $_.i); //#19965 - $_.numN = $get($_.numNs, $_.i); //#19966 - $_.numAorN = $get($_.numAorNs, $_.i); //#19967 - $_.eci = $get($_.isECI, $_.i); //#19968 - if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#19969 - $_.seq = -1; //#19969 - break; //#19969 - } //#19969 - if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#19970 - $_.seq = -1; //#19970 - break; //#19970 - } //#19970 - if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#19971 - $_.seq = -1; //#19971 - break; //#19971 - } //#19971 - if ($eq($_.ver, $_.vM1) && $_.eci) { //#19972 - $_.seq = -1; //#19972 - break; //#19972 - } //#19972 - if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#19973 - $_.seq = -1; //#19973 - break; //#19973 - } //#19973 - if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#19974 - $_.seq = -1; //#19974 - break; //#19974 - } //#19974 - if ($eq($_.ver, $_.vM2) && $_.eci) { //#19975 - $_.seq = -1; //#19975 - break; //#19975 - } //#19975 - if ($eq($_.ver, $_.vM3) && $_.eci) { //#19976 - $_.seq = -1; //#19976 - break; //#19976 - } //#19976 - if ($eq($_.ver, $_.vM4) && $_.eci) { //#19977 - $_.seq = -1; //#19977 - break; //#19977 - } //#19977 - for (;;) { //#20038 - if ($_.eci) { //#19981 - $k[$j++] = $_.E; //#19980 - break; //#19980 - } //#19980 - if ($_.mode == -1) { //#19996 - $k[$j++] = $_.mode0forceKB; //#19983 - $_.KbeforeA(); //#19983 - if ($k[--$j]) { //#19983 - $k[$j++] = $_.K; //#19983 - break; //#19983 - } //#19983 - $k[$j++] = $_.mode0forceKB; //#19984 - $_.KbeforeN(); //#19984 - if ($k[--$j]) { //#19984 - $k[$j++] = $_.K; //#19984 - break; //#19984 - } //#19984 - $k[$j++] = $_.modeBKbeforeE; //#19985 - $_.KbeforeB(); //#19985 - if ($k[--$j]) { //#19985 - $k[$j++] = $_.K; //#19985 - break; //#19985 - } //#19985 - $k[$j++] = $_.mode0forceKB; //#19986 - $_.KbeforeE(); //#19986 - if ($k[--$j]) { //#19986 - $k[$j++] = $_.K; //#19986 - break; //#19986 - } //#19986 - if ($_.numK >= 1) { //#19987 - $k[$j++] = $_.B; //#19987 - break; //#19987 - } //#19987 - $k[$j++] = $_.mode0NbeforeB; //#19988 - $_.NbeforeB(); //#19988 - if ($k[--$j]) { //#19988 - $k[$j++] = $_.N; //#19988 - break; //#19988 - } //#19988 - $k[$j++] = $_.mode0forceKB; //#19989 - $_.NbeforeB(); //#19989 - if ($k[--$j]) { //#19989 - $k[$j++] = $_.B; //#19989 - break; //#19989 - } //#19989 - $k[$j++] = $_.modeANbeforeE; //#19990 - $_.NbeforeA(); //#19990 - if ($k[--$j]) { //#19990 - $k[$j++] = $_.N; //#19990 - break; //#19990 - } //#19990 - $k[$j++] = $_.mode0forceN; //#19991 - $_.NbeforeE(); //#19991 - if ($k[--$j]) { //#19991 - $k[$j++] = $_.N; //#19991 - break; //#19991 - } //#19991 - $k[$j++] = $_.modeBAbeforeE; //#19992 - $_.AbeforeK(); //#19992 - if ($k[--$j]) { //#19992 - $k[$j++] = $_.A; //#19992 - break; //#19992 - } //#19992 - $k[$j++] = $_.modeBAbeforeE; //#19993 - $_.AorNbeforeB(); //#19993 - if ($k[--$j]) { //#19993 - $k[$j++] = $_.A; //#19993 - break; //#19993 - } //#19993 - $k[$j++] = $_.mode0forceA; //#19994 - $_.AorNbeforeE(); //#19994 - if ($k[--$j]) { //#19994 - $k[$j++] = $_.A; //#19994 - break; //#19994 - } //#19994 - $k[$j++] = $_.B; //#19995 - break; //#19995 - } //#19995 - if ($_.mode == $_.B) { //#20014 - $k[$j++] = $_.modeBKbeforeB; //#19998 - $_.KbeforeB(); //#19998 - if ($k[--$j]) { //#19998 - $k[$j++] = $_.K; //#19998 - break; //#19998 - } //#19998 - $k[$j++] = $_.modeBKbeforeA; //#19999 - $_.KbeforeA(); //#19999 - if ($k[--$j]) { //#19999 - $k[$j++] = $_.K; //#19999 - break; //#19999 - } //#19999 - $k[$j++] = $_.modeBKbeforeN; //#20000 - $_.KbeforeN(); //#20000 - if ($k[--$j]) { //#20000 - $k[$j++] = $_.K; //#20000 - break; //#20000 - } //#20000 - $k[$j++] = $_.modeBKbeforeE; //#20001 - $_.KbeforeE(); //#20001 - if ($k[--$j]) { //#20001 - $k[$j++] = $_.K; //#20001 - break; //#20001 - } //#20001 - $k[$j++] = $_.modeBAbeforeK; //#20002 - $_.AbeforeK(); //#20002 - if ($k[--$j]) { //#20002 - $k[$j++] = $_.A; //#20002 - break; //#20002 - } //#20002 - $k[$j++] = $_.modeBAbeforeB; //#20003 - $_.AbeforeB(); //#20003 - if ($k[--$j]) { //#20003 - $k[$j++] = $_.A; //#20003 - break; //#20003 - } //#20003 - $k[$j++] = $_.modeBAbeforeN; //#20004 - $_.AbeforeN(); //#20004 - if ($k[--$j]) { //#20004 - $k[$j++] = $_.A; //#20004 - break; //#20004 - } //#20004 - $k[$j++] = $_.modeBAbeforeE; //#20005 - $_.AbeforeE(); //#20005 - if ($k[--$j]) { //#20005 - $k[$j++] = $_.A; //#20005 - break; //#20005 - } //#20005 - $k[$j++] = $_.modeBNbeforeK; //#20006 - $_.NbeforeK(); //#20006 - if ($k[--$j]) { //#20006 - $k[$j++] = $_.N; //#20006 - break; //#20006 - } //#20006 - $k[$j++] = $_.modeBNbeforeB; //#20007 - $_.NbeforeB(); //#20007 - if ($k[--$j]) { //#20007 - $k[$j++] = $_.N; //#20007 - break; //#20007 - } //#20007 - $k[$j++] = $_.modeBNbeforeA; //#20008 - $_.NbeforeA(); //#20008 - if ($k[--$j]) { //#20008 - $k[$j++] = $_.N; //#20008 - break; //#20008 - } //#20008 - $k[$j++] = $_.modeBNbeforeE; //#20009 - $_.NbeforeE(); //#20009 - if ($k[--$j]) { //#20009 - $k[$j++] = $_.N; //#20009 - break; //#20009 - } //#20009 - $k[$j++] = $_.modeBAbeforeE; //#20010 - $_.AorNbeforeE(); //#20010 - var _DH = $k[--$j]; //#20010 - if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20012 - $k[$j++] = $_.modeBNbeforeA; //#20011 - $_.nextNslt(); //#20011 - if ($k[--$j]) { //#20011 - $k[$j++] = $_.A; //#20011 - break; //#20011 - } //#20011 - } //#20011 - $k[$j++] = $_.B; //#20013 - break; //#20013 - } //#20013 - if ($_.mode == $_.A) { //#20023 - if ($_.numK >= 1) { //#20016 - $k[$j++] = $_.K; //#20016 - break; //#20016 - } //#20016 - if ($_.numB >= 1) { //#20017 - $k[$j++] = $_.B; //#20017 - break; //#20017 - } //#20017 - $k[$j++] = $_.modeANbeforeA; //#20018 - $_.NbeforeA(); //#20018 - if ($k[--$j]) { //#20018 - $k[$j++] = $_.N; //#20018 - break; //#20018 - } //#20018 - $k[$j++] = $_.modeANbeforeB; //#20019 - $_.NbeforeB(); //#20019 - if ($k[--$j]) { //#20019 - $k[$j++] = $_.N; //#20019 - break; //#20019 - } //#20019 - $k[$j++] = $_.modeANbeforeE; //#20020 - $_.NbeforeE(); //#20020 - if ($k[--$j]) { //#20020 - $k[$j++] = $_.N; //#20020 - break; //#20020 - } //#20020 - if (($_.numA >= 1) || ($_.numN >= 1)) { //#20021 - $k[$j++] = $_.A; //#20021 - break; //#20021 - } //#20021 - $k[$j++] = $_.B; //#20022 - break; //#20022 - } //#20022 - if ($_.mode == $_.N) { //#20030 - if ($_.numK >= 1) { //#20025 - $k[$j++] = $_.K; //#20025 - break; //#20025 - } //#20025 - if ($_.numB >= 1) { //#20026 - $k[$j++] = $_.B; //#20026 - break; //#20026 - } //#20026 - if ($_.numA >= 1) { //#20027 - $k[$j++] = $_.A; //#20027 - break; //#20027 - } //#20027 - if ($_.numN >= 1) { //#20028 - $k[$j++] = $_.N; //#20028 - break; //#20028 - } //#20028 - $k[$j++] = $_.B; //#20029 - break; //#20029 - } //#20029 - if ($_.mode == $_.K) { //#20037 - if ($_.numB >= 1) { //#20032 - $k[$j++] = $_.B; //#20032 - break; //#20032 - } //#20032 - if ($_.numA >= 1) { //#20033 - $k[$j++] = $_.A; //#20033 - break; //#20033 - } //#20033 - if ($_.numN >= 1) { //#20034 - $k[$j++] = $_.N; //#20034 - break; //#20034 - } //#20034 - if ($_.numK >= 1) { //#20035 - $k[$j++] = $_.K; //#20035 - break; //#20035 - } //#20035 - $k[$j++] = $_.B; //#20036 - break; //#20036 - } //#20036 - } //#20036 - var _E1 = $k[--$j]; //#20039 - $k[$j++] = _E1; //#20039 - if ((_E1 == $_.K) && $_.fnc1first) { //#20039 - $j--; //#20039 - $k[$j++] = $_.B; //#20039 - } //#20039 - var _E5 = $k[--$j]; //#20040 - $k[$j++] = _E5; //#20056 - if (_E5 == $_.mode) { //#20055 - $j--; //#20041 - var _EB = ($_.mode == $_.K) ? 2 : 1; //#20042 - $_.dat = $geti($_.msg, $_.i, _EB); //#20042 - $k[$j++] = Infinity; //#20045 - $aload($_.seq); //#20044 - $k[$j++] = Infinity; //#20045 - var _EE = $k[--$j]; //#20045 - var _EF = $k[--$j]; //#20045 - $k[$j++] = _EE; //#20045 - $aload(_EF); //#20045 - $aload($_.dat); //#20045 - var _EH = $a(); //#20045 - $k[$j++] = _EH; //#20045 - $_.seq = $a(); //#20045 - } else { //#20055 - $_.mode = $k[--$j]; //#20048 - if ($_.mode == $_.K) { //#20049 - $k[$j++] = $_.K; //#20049 - $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20049 - } //#20049 - if ($_.mode == $_.B) { //#20050 - $k[$j++] = $_.B; //#20050 - $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20050 - } //#20050 - if ($_.mode == $_.A) { //#20051 - $k[$j++] = $_.A; //#20051 - $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20051 - } //#20051 - if ($_.mode == $_.N) { //#20052 - $k[$j++] = $_.N; //#20052 - $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20052 - } //#20052 - if ($_.mode == $_.E) { //#20053 - $_.mode = -1; //#20053 - $k[$j++] = $_.E; //#20053 - $k[$j++] = $geti($_.msg, $_.i, 1); //#20053 - } //#20053 - $_.dat = $k[--$j]; //#20054 - $_.sw = $k[--$j]; //#20054 - $k[$j++] = Infinity; //#20055 - $aload($_.seq); //#20055 - $k[$j++] = $_.sw; //#20055 - $k[$j++] = $_.dat; //#20055 - $_.seq = $a(); //#20055 - } //#20055 - $_.i = $_.i + $_.dat.length; //#20057 - } //#20057 - for (;;) { //#20088 - if ($_.seq == -1) { //#20062 - break; //#20062 - } //#20062 - $_.bits = $s(23648); //#20063 - $_.j = 0; //#20064 - if ($_.fnc1first) { //#20067 - if ($lt($_.ver, $_.vR7x43)) { //#20066 - $k[$j++] = "0101"; //#20066 - } else { //#20066 - $k[$j++] = "101"; //#20066 - } //#20066 - $_.addtobits(); //#20066 - } //#20066 - $_.abort = false; //#20068 - for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20083 - $_.i = _F7; //#20070 - $_.mode = $get($_.seq, $_.i); //#20071 - $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20072 - $_.addtobits(); //#20072 - $_.chars = $get($_.seq, $_.i + 1); //#20073 - $k[$j++] = 'charslen'; //#20074 - $k[$j++] = $_.chars.length; //#20074 - if ($_.mode == $_.K) { //#20074 - var _FM = $k[--$j]; //#20074 - $k[$j++] = ~~(_FM / 2); //#20074 - } //#20074 - var _FN = $k[--$j]; //#20074 - $_[$k[--$j]] = _FN; //#20074 - if ($_.mode != $_.E) { //#20081 - $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20076 - if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20079 - $_.abort = true; //#20078 - break; //#20078 - } //#20078 - $k[$j++] = $_.charslen; //#20080 - $k[$j++] = $_.cclen; //#20080 - $_.tobin(); //#20080 - $_.addtobits(); //#20080 - } //#20080 - $k[$j++] = $_.chars; //#20082 + ]); //#20178 + $k[$j++] = _97; //#20178 + $k[$j++] = "micro"; //#20178 + $k[$j++] = _9C; //#20178 + $k[$j++] = "rmqr"; //#20178 + $k[$j++] = _9j; //#20178 + $_.versetmap = $d(); //#20180 + $_.versetfull = $a([$_.v1to9, $_.v10to26, $_.v27to40]); //#20181 + $_.versetmicro = $a([$_.vM1, $_.vM2, $_.vM3, $_.vM4]); //#20182 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20182 + bwipp_qrcode.__20183__ = 1; //#20182 + $_ = Object.getPrototypeOf($_); //#20182 + } //#20182 + if ($ne($_.version, "unset")) { //#20201 + var _9y = $get($_.versetmap, $_.format); //#20186 + var _9z = $_.version; //#20186 + var _A0 = $get(_9y, _9z) !== undefined; //#20186 + $k[$j++] = _9y; //#20196 + $k[$j++] = _9z; //#20196 + if (!_A0) { //#20196 + $j -= 2; //#20187 + if ($eq($_.format, "full")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidFullVersion#20189'; //#20189 + $k[$j++] = "Valid versions for QR Code symbols are 1 to 40"; //#20189 + bwipp_raiseerror(); //#20189 + } else { //#20194 + if ($eq($_.format, "micro")) { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidMicroVersion#20192'; //#20192 + $k[$j++] = "Valid versions for Micro QR Code symbols are M1 to M4"; //#20192 + bwipp_raiseerror(); //#20192 + } else { //#20194 + $k[$j++] = 'bwipp.qrcodeInvalidRMQRversion#20194'; //#20194 + $k[$j++] = "Invalid version for an RMQR symbol"; //#20194 + bwipp_raiseerror(); //#20194 + } //#20194 + } //#20194 + } //#20194 + var _A3 = $k[--$j]; //#20197 + var _A5 = $get($k[--$j], _A3); //#20197 + $k[$j++] = _A5; //#20197 + $k[$j++] = Infinity; //#20197 + var _A6 = $k[--$j]; //#20197 + var _A7 = $k[--$j]; //#20197 + $k[$j++] = _A6; //#20197 + $k[$j++] = _A7; //#20197 + $_.verset = $a(); //#20197 + } else { //#20201 + if ($eq($_.format, "full")) { //#20200 + $_.verset = $_.versetfull; //#20200 + } //#20200 + if ($eq($_.format, "micro")) { //#20201 + $_.verset = $_.versetmicro; //#20201 + } //#20201 + } //#20201 + $k[$j++] = Infinity; //#20206 + for (var _AD = 0, _AE = 39; _AD < _AE; _AD++) { //#20206 + $k[$j++] = -1; //#20206 + } //#20206 + $_.msgbits = $a(); //#20206 + $_.e = 10000; //#20207 + if (!bwipp_qrcode.__20237__) { //#20237 + $_ = Object.create($_); //#20237 + $_.mode0forceKB = $a([1, 1, 1, $_.e, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20213 + $_.mode0forceA = $a([1, 1, 1, $_.e, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20214 + $_.mode0forceN = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); //#20215 + $_.mode0NbeforeB = $a([4, 4, 5, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20217 + $_.modeBKbeforeB = $a([9, 12, 13, $_.e, $_.e, 4, 6, 4, 5, 6, 6, 6, 5, 6, 6, 6, 7, 4, 6, 6, 6, 7, 7, 5, 6, 6, 7, 7, 7, 6, 6, 7, 7, 7, 6, 7, 7, 7, 8]); //#20219 + $_.modeBKbeforeA = $a([8, 10, 11, $_.e, $_.e, 4, 5, 4, 5, 5, 6, 6, 5, 5, 6, 6, 6, 4, 5, 6, 6, 6, 6, 5, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 7, 7]); //#20220 + $_.modeBKbeforeN = $a([8, 9, 11, $_.e, $_.e, 3, 5, 3, 4, 5, 5, 5, 4, 5, 5, 5, 6, 3, 5, 5, 5, 6, 6, 4, 5, 5, 6, 6, 6, 5, 5, 6, 6, 7, 5, 6, 6, 6, 7]); //#20221 + $_.modeBKbeforeE = $a([5, 5, 6, $_.e, $_.e, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 2, 3, 3, 3, 4, 4, 3, 3, 3, 4, 4, 4, 3, 3, 4, 4, 4, 3, 4, 4, 4, 4]); //#20222 + $_.modeBAbeforeK = $a([11, 12, 14, $_.e, $_.e, 5, 7, 5, 6, 7, 8, 8, 6, 7, 8, 8, 8, 6, 7, 8, 8, 8, 8, 6, 8, 8, 8, 8, 9, 8, 8, 8, 8, 9, 8, 8, 8, 9, 9]); //#20224 + $_.modeBAbeforeB = $a([11, 15, 16, $_.e, $_.e, 6, 7, 6, 7, 7, 8, 8, 7, 7, 8, 8, 8, 6, 7, 8, 8, 8, 9, 7, 8, 8, 8, 9, 9, 8, 8, 9, 9, 9, 8, 8, 9, 9, 10]); //#20225 + $_.modeBAbeforeN = $a([12, 13, 15, $_.e, $_.e, 6, 8, 6, 7, 8, 8, 8, 7, 8, 8, 8, 9, 6, 8, 8, 8, 9, 9, 7, 8, 8, 9, 9, 10, 8, 9, 9, 9, 10, 8, 9, 9, 10, 10]); //#20226 + $_.modeBAbeforeE = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5]); //#20227 + $_.modeBNbeforeK = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]); //#20229 + $_.modeBNbeforeB = $a([6, 8, 9, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 3, 4, 5, 5, 5, 5, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6]); //#20230 + $_.modeBNbeforeA = $a([6, 7, 8, $_.e, $_.e, 3, 4, 3, 4, 4, 5, 5, 4, 4, 5, 5, 5, 4, 4, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 6]); //#20231 + $_.modeBNbeforeE = $a([3, 4, 4, $_.e, $_.e, 2, 3, 2, 2, 3, 3, 3, 2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]); //#20232 + $_.modeANbeforeA = $a([13, 15, 17, $_.e, 5, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 11, 7, 9, 9, 9, 11, 11, 8, 9, 9, 10, 11, 11, 9, 10, 11, 11, 11, 9, 11, 11, 11, 11]); //#20234 + $_.modeANbeforeB = $a([13, 17, 18, $_.e, $_.e, 7, 9, 7, 8, 9, 9, 9, 8, 9, 9, 9, 10, 7, 9, 9, 9, 10, 11, 8, 9, 9, 9, 11, 11, 9, 9, 11, 11, 11, 9, 10, 11, 11, 11]); //#20235 + $_.modeANbeforeE = $a([7, 8, 9, $_.e, 3, 4, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 4, 5, 5, 5, 6, 6, 5, 5, 5, 5, 6, 6, 5, 5, 6, 6, 6, 5, 6, 6, 6, 6]); //#20236 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20236 + bwipp_qrcode.__20237__ = 1; //#20236 + $_ = Object.getPrototypeOf($_); //#20236 + } //#20236 + var _B7 = $_.verset; //#20239 + for (var _B8 = 0, _B9 = _B7.length; _B8 < _B9; _B8++) { //#20371 + $_.ver = $get(_B7, _B8); //#20240 + $_.mode = -1; //#20243 + $_.seq = $a([]); //#20243 + $_.i = 0; //#20243 + for (;;) { //#20340 + if ($_.i >= $_.msglen) { //#20244 + break; //#20244 + } //#20244 + $_.numK = $get($_.numKs, $_.i); //#20245 + $_.numB = $get($_.numBs, $_.i); //#20246 + $_.numA = $get($_.numAs, $_.i); //#20247 + $_.numN = $get($_.numNs, $_.i); //#20248 + $_.numAorN = $get($_.numAorNs, $_.i); //#20249 + $_.eci = $get($_.isECI, $_.i); //#20250 + if ($eq($_.ver, $_.vM1) && ($_.numA >= 1)) { //#20251 + $_.seq = -1; //#20251 + break; //#20251 + } //#20251 + if ($eq($_.ver, $_.vM1) && ($_.numB >= 1)) { //#20252 + $_.seq = -1; //#20252 + break; //#20252 + } //#20252 + if ($eq($_.ver, $_.vM1) && ($_.numK >= 1)) { //#20253 + $_.seq = -1; //#20253 + break; //#20253 + } //#20253 + if ($eq($_.ver, $_.vM1) && $_.eci) { //#20254 + $_.seq = -1; //#20254 + break; //#20254 + } //#20254 + if ($eq($_.ver, $_.vM2) && ($_.numB >= 1)) { //#20255 + $_.seq = -1; //#20255 + break; //#20255 + } //#20255 + if ($eq($_.ver, $_.vM2) && ($_.numK >= 1)) { //#20256 + $_.seq = -1; //#20256 + break; //#20256 + } //#20256 + if ($eq($_.ver, $_.vM2) && $_.eci) { //#20257 + $_.seq = -1; //#20257 + break; //#20257 + } //#20257 + if ($eq($_.ver, $_.vM3) && $_.eci) { //#20258 + $_.seq = -1; //#20258 + break; //#20258 + } //#20258 + if ($eq($_.ver, $_.vM4) && $_.eci) { //#20259 + $_.seq = -1; //#20259 + break; //#20259 + } //#20259 + for (;;) { //#20320 + if ($_.eci) { //#20263 + $k[$j++] = $_.E; //#20262 + break; //#20262 + } //#20262 + if ($_.mode == -1) { //#20278 + $k[$j++] = $_.mode0forceKB; //#20265 + $_.KbeforeA(); //#20265 + if ($k[--$j]) { //#20265 + $k[$j++] = $_.K; //#20265 + break; //#20265 + } //#20265 + $k[$j++] = $_.mode0forceKB; //#20266 + $_.KbeforeN(); //#20266 + if ($k[--$j]) { //#20266 + $k[$j++] = $_.K; //#20266 + break; //#20266 + } //#20266 + $k[$j++] = $_.modeBKbeforeE; //#20267 + $_.KbeforeB(); //#20267 + if ($k[--$j]) { //#20267 + $k[$j++] = $_.K; //#20267 + break; //#20267 + } //#20267 + $k[$j++] = $_.mode0forceKB; //#20268 + $_.KbeforeE(); //#20268 + if ($k[--$j]) { //#20268 + $k[$j++] = $_.K; //#20268 + break; //#20268 + } //#20268 + if ($_.numK >= 1) { //#20269 + $k[$j++] = $_.B; //#20269 + break; //#20269 + } //#20269 + $k[$j++] = $_.mode0NbeforeB; //#20270 + $_.NbeforeB(); //#20270 + if ($k[--$j]) { //#20270 + $k[$j++] = $_.N; //#20270 + break; //#20270 + } //#20270 + $k[$j++] = $_.mode0forceKB; //#20271 + $_.NbeforeB(); //#20271 + if ($k[--$j]) { //#20271 + $k[$j++] = $_.B; //#20271 + break; //#20271 + } //#20271 + $k[$j++] = $_.modeANbeforeE; //#20272 + $_.NbeforeA(); //#20272 + if ($k[--$j]) { //#20272 + $k[$j++] = $_.N; //#20272 + break; //#20272 + } //#20272 + $k[$j++] = $_.mode0forceN; //#20273 + $_.NbeforeE(); //#20273 + if ($k[--$j]) { //#20273 + $k[$j++] = $_.N; //#20273 + break; //#20273 + } //#20273 + $k[$j++] = $_.modeBAbeforeE; //#20274 + $_.AbeforeK(); //#20274 + if ($k[--$j]) { //#20274 + $k[$j++] = $_.A; //#20274 + break; //#20274 + } //#20274 + $k[$j++] = $_.modeBAbeforeE; //#20275 + $_.AorNbeforeB(); //#20275 + if ($k[--$j]) { //#20275 + $k[$j++] = $_.A; //#20275 + break; //#20275 + } //#20275 + $k[$j++] = $_.mode0forceA; //#20276 + $_.AorNbeforeE(); //#20276 + if ($k[--$j]) { //#20276 + $k[$j++] = $_.A; //#20276 + break; //#20276 + } //#20276 + $k[$j++] = $_.B; //#20277 + break; //#20277 + } //#20277 + if ($_.mode == $_.B) { //#20296 + $k[$j++] = $_.modeBKbeforeB; //#20280 + $_.KbeforeB(); //#20280 + if ($k[--$j]) { //#20280 + $k[$j++] = $_.K; //#20280 + break; //#20280 + } //#20280 + $k[$j++] = $_.modeBKbeforeA; //#20281 + $_.KbeforeA(); //#20281 + if ($k[--$j]) { //#20281 + $k[$j++] = $_.K; //#20281 + break; //#20281 + } //#20281 + $k[$j++] = $_.modeBKbeforeN; //#20282 + $_.KbeforeN(); //#20282 + if ($k[--$j]) { //#20282 + $k[$j++] = $_.K; //#20282 + break; //#20282 + } //#20282 + $k[$j++] = $_.modeBKbeforeE; //#20283 + $_.KbeforeE(); //#20283 + if ($k[--$j]) { //#20283 + $k[$j++] = $_.K; //#20283 + break; //#20283 + } //#20283 + $k[$j++] = $_.modeBAbeforeK; //#20284 + $_.AbeforeK(); //#20284 + if ($k[--$j]) { //#20284 + $k[$j++] = $_.A; //#20284 + break; //#20284 + } //#20284 + $k[$j++] = $_.modeBAbeforeB; //#20285 + $_.AbeforeB(); //#20285 + if ($k[--$j]) { //#20285 + $k[$j++] = $_.A; //#20285 + break; //#20285 + } //#20285 + $k[$j++] = $_.modeBAbeforeN; //#20286 + $_.AbeforeN(); //#20286 + if ($k[--$j]) { //#20286 + $k[$j++] = $_.A; //#20286 + break; //#20286 + } //#20286 + $k[$j++] = $_.modeBAbeforeE; //#20287 + $_.AbeforeE(); //#20287 + if ($k[--$j]) { //#20287 + $k[$j++] = $_.A; //#20287 + break; //#20287 + } //#20287 + $k[$j++] = $_.modeBNbeforeK; //#20288 + $_.NbeforeK(); //#20288 + if ($k[--$j]) { //#20288 + $k[$j++] = $_.N; //#20288 + break; //#20288 + } //#20288 + $k[$j++] = $_.modeBNbeforeB; //#20289 + $_.NbeforeB(); //#20289 + if ($k[--$j]) { //#20289 + $k[$j++] = $_.N; //#20289 + break; //#20289 + } //#20289 + $k[$j++] = $_.modeBNbeforeA; //#20290 + $_.NbeforeA(); //#20290 + if ($k[--$j]) { //#20290 + $k[$j++] = $_.N; //#20290 + break; //#20290 + } //#20290 + $k[$j++] = $_.modeBNbeforeE; //#20291 + $_.NbeforeE(); //#20291 + if ($k[--$j]) { //#20291 + $k[$j++] = $_.N; //#20291 + break; //#20291 + } //#20291 + $k[$j++] = $_.modeBAbeforeE; //#20292 + $_.AorNbeforeE(); //#20292 + var _DH = $k[--$j]; //#20292 + if (_DH && $le($_.numAorN, $get($_.modeBAbeforeN, $_.ver))) { //#20294 + $k[$j++] = $_.modeBNbeforeA; //#20293 + $_.nextNslt(); //#20293 + if ($k[--$j]) { //#20293 + $k[$j++] = $_.A; //#20293 + break; //#20293 + } //#20293 + } //#20293 + $k[$j++] = $_.B; //#20295 + break; //#20295 + } //#20295 + if ($_.mode == $_.A) { //#20305 + if ($_.numK >= 1) { //#20298 + $k[$j++] = $_.K; //#20298 + break; //#20298 + } //#20298 + if ($_.numB >= 1) { //#20299 + $k[$j++] = $_.B; //#20299 + break; //#20299 + } //#20299 + $k[$j++] = $_.modeANbeforeA; //#20300 + $_.NbeforeA(); //#20300 + if ($k[--$j]) { //#20300 + $k[$j++] = $_.N; //#20300 + break; //#20300 + } //#20300 + $k[$j++] = $_.modeANbeforeB; //#20301 + $_.NbeforeB(); //#20301 + if ($k[--$j]) { //#20301 + $k[$j++] = $_.N; //#20301 + break; //#20301 + } //#20301 + $k[$j++] = $_.modeANbeforeE; //#20302 + $_.NbeforeE(); //#20302 + if ($k[--$j]) { //#20302 + $k[$j++] = $_.N; //#20302 + break; //#20302 + } //#20302 + if (($_.numA >= 1) || ($_.numN >= 1)) { //#20303 + $k[$j++] = $_.A; //#20303 + break; //#20303 + } //#20303 + $k[$j++] = $_.B; //#20304 + break; //#20304 + } //#20304 + if ($_.mode == $_.N) { //#20312 + if ($_.numK >= 1) { //#20307 + $k[$j++] = $_.K; //#20307 + break; //#20307 + } //#20307 + if ($_.numB >= 1) { //#20308 + $k[$j++] = $_.B; //#20308 + break; //#20308 + } //#20308 + if ($_.numA >= 1) { //#20309 + $k[$j++] = $_.A; //#20309 + break; //#20309 + } //#20309 + if ($_.numN >= 1) { //#20310 + $k[$j++] = $_.N; //#20310 + break; //#20310 + } //#20310 + $k[$j++] = $_.B; //#20311 + break; //#20311 + } //#20311 + if ($_.mode == $_.K) { //#20319 + if ($_.numB >= 1) { //#20314 + $k[$j++] = $_.B; //#20314 + break; //#20314 + } //#20314 + if ($_.numA >= 1) { //#20315 + $k[$j++] = $_.A; //#20315 + break; //#20315 + } //#20315 + if ($_.numN >= 1) { //#20316 + $k[$j++] = $_.N; //#20316 + break; //#20316 + } //#20316 + if ($_.numK >= 1) { //#20317 + $k[$j++] = $_.K; //#20317 + break; //#20317 + } //#20317 + $k[$j++] = $_.B; //#20318 + break; //#20318 + } //#20318 + } //#20318 + var _E1 = $k[--$j]; //#20321 + $k[$j++] = _E1; //#20321 + if ((_E1 == $_.K) && $_.fnc1first) { //#20321 + $j--; //#20321 + $k[$j++] = $_.B; //#20321 + } //#20321 + var _E5 = $k[--$j]; //#20322 + $k[$j++] = _E5; //#20338 + if (_E5 == $_.mode) { //#20337 + $j--; //#20323 + var _EB = ($_.mode == $_.K) ? 2 : 1; //#20324 + $_.dat = $geti($_.msg, $_.i, _EB); //#20324 + $k[$j++] = Infinity; //#20325 + $aload($_.seq); //#20326 + $k[$j++] = Infinity; //#20327 + var _EE = $k[--$j]; //#20327 + var _EF = $k[--$j]; //#20327 + $k[$j++] = _EE; //#20327 + $aload(_EF); //#20327 + $aload($_.dat); //#20327 + var _EH = $a(); //#20327 + $k[$j++] = _EH; //#20327 + $_.seq = $a(); //#20327 + } else { //#20337 + $_.mode = $k[--$j]; //#20330 + if ($_.mode == $_.K) { //#20331 + $k[$j++] = $_.K; //#20331 + $k[$j++] = $geti($_.msg, $_.i, $_.numK * 2); //#20331 + } //#20331 + if ($_.mode == $_.B) { //#20332 + $k[$j++] = $_.B; //#20332 + $k[$j++] = $geti($_.msg, $_.i, $_.numB); //#20332 + } //#20332 + if ($_.mode == $_.A) { //#20333 + $k[$j++] = $_.A; //#20333 + $k[$j++] = $geti($_.msg, $_.i, $_.numA); //#20333 + } //#20333 + if ($_.mode == $_.N) { //#20334 + $k[$j++] = $_.N; //#20334 + $k[$j++] = $geti($_.msg, $_.i, $_.numN); //#20334 + } //#20334 + if ($_.mode == $_.E) { //#20335 + $_.mode = -1; //#20335 + $k[$j++] = $_.E; //#20335 + $k[$j++] = $geti($_.msg, $_.i, 1); //#20335 + } //#20335 + $_.dat = $k[--$j]; //#20336 + $_.sw = $k[--$j]; //#20336 + $k[$j++] = Infinity; //#20337 + $aload($_.seq); //#20337 + $k[$j++] = $_.sw; //#20337 + $k[$j++] = $_.dat; //#20337 + $_.seq = $a(); //#20337 + } //#20337 + $_.i = $_.i + $_.dat.length; //#20339 + } //#20339 + for (;;) { //#20370 + if ($_.seq == -1) { //#20344 + break; //#20344 + } //#20344 + $_.bits = $s(23648); //#20345 + $_.j = 0; //#20346 + if ($_.fnc1first) { //#20349 + if ($lt($_.ver, $_.vR7x43)) { //#20348 + $k[$j++] = "0101"; //#20348 + } else { //#20348 + $k[$j++] = "101"; //#20348 + } //#20348 + $_.addtobits(); //#20348 + } //#20348 + $_.abort = false; //#20350 + for (var _F7 = 0, _F6 = $_.seq.length - 1; _F7 <= _F6; _F7 += 2) { //#20365 + $_.i = _F7; //#20352 + $_.mode = $get($_.seq, $_.i); //#20353 + $k[$j++] = $get($get($_.mids, $_.ver), $_.mode); //#20354 + $_.addtobits(); //#20354 + $_.chars = $get($_.seq, $_.i + 1); //#20355 + $k[$j++] = 'charslen'; //#20356 + $k[$j++] = $_.chars.length; //#20356 + if ($_.mode == $_.K) { //#20356 + var _FM = $k[--$j]; //#20356 + $k[$j++] = ~~(_FM / 2); //#20356 + } //#20356 + var _FN = $k[--$j]; //#20356 + $_[$k[--$j]] = _FN; //#20356 + if ($_.mode != $_.E) { //#20363 + $_.cclen = $get($get($_.cclens, $_.ver), $_.mode); //#20358 + if ($_.charslen >= (~~Math.pow(2, $_.cclen))) { //#20361 + $_.abort = true; //#20360 + break; //#20360 + } //#20360 + $k[$j++] = $_.charslen; //#20362 + $k[$j++] = $_.cclen; //#20362 + $_.tobin(); //#20362 + $_.addtobits(); //#20362 + } //#20362 + $k[$j++] = $_.chars; //#20364 if ($_[$get($_.encfuncs, $_.mode)]() === true) { break; - } //#20082 - $_.addtobits(); //#20082 - } //#20082 - if ($_.abort) { //#20084 - break; //#20084 - } //#20084 - $_.bits = $geti($_.bits, 0, $_.j); //#20085 - $put($_.msgbits, $_.ver, $_.bits); //#20086 - break; //#20087 - } //#20087 - } //#20087 - if (!bwipp_qrcode.__20173__) { //#20173 - $_ = Object.create($_); //#20173 - $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20172 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20172 - bwipp_qrcode.__20173__ = 1; //#20172 - $_ = Object.getPrototypeOf($_); //#20172 - } //#20172 - $k[$j++] = 'eclval'; //#20175 - $search("LMQH", $_.eclevel); //#20175 - $j--; //#20175 - var _Kj = $k[--$j]; //#20175 - var _Kk = $k[--$j]; //#20175 - $k[$j++] = _Kj.length; //#20175 - $k[$j++] = _Kk; //#20175 - $j--; //#20175 - var _Kl = $k[--$j]; //#20175 - var _Km = $k[--$j]; //#20175 - $k[$j++] = _Kl; //#20175 - $k[$j++] = _Km; //#20175 - $j--; //#20175 - var _Kn = $k[--$j]; //#20175 - $_[$k[--$j]] = _Kn; //#20175 - for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20214 - $_.i = _Kr; //#20177 - $_.m = $get($_.metrics, $_.i); //#20178 - $_.frmt = $get($_.m, 0); //#20179 - $_.vers = $get($_.m, 1); //#20180 - $_.vergrp = $get($_.m, 2); //#20181 - $_.verind = $_.i - 44; //#20182 - $_.rows = $get($_.m, 3); //#20183 - $_.cols = $get($_.m, 4); //#20184 - $_.asp2 = $get($_.m, 5); //#20185 - $_.asp3 = $get($_.m, 6); //#20186 - $_.nmod = $get($_.m, 7); //#20187 - $_.ncws = ~~($_.nmod / 8); //#20188 - $_.rbit = $_.nmod % 8; //#20189 - $_.lc4b = false; //#20190 - if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20195 - $_.ncws = $_.ncws + 1; //#20192 - $_.rbit = 0; //#20193 - $_.lc4b = true; //#20194 - } //#20194 - $_.ecws = $get($get($_.m, 8), $_.eclval); //#20196 - $_.dcws = $f($_.ncws - $_.ecws); //#20197 - var _LP = $_.lc4b ? 4 : 0; //#20198 - $_.dmod = $f(($_.dcws * 8) - _LP); //#20198 - $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20199 - $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20200 - $_.okay = true; //#20201 - if ($ne($_.format, $_.frmt)) { //#20202 - $_.okay = false; //#20202 - } //#20202 - if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20203 - $_.okay = false; //#20203 - } //#20203 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20204 - $_.okay = false; //#20204 - } //#20204 - if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20205 - $_.okay = false; //#20205 - } //#20205 - $_.verbits = $get($_.msgbits, $_.vergrp); //#20206 - if ($_.verbits == -1) { //#20210 - $_.okay = false; //#20208 - } else { //#20210 - if ($_.verbits.length > $_.dmod) { //#20210 - $_.okay = false; //#20210 - } //#20210 - } //#20210 - $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20212 - if ($_.okay) { //#20213 - break; //#20213 - } //#20213 - } //#20213 - if (!$_.okay) { //#20218 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20217'; //#20217 - $k[$j++] = "Maximum length exceeded or invalid content"; //#20217 - bwipp_raiseerror(); //#20217 - } //#20217 - $_.format = $_.frmt; //#20220 - $_.version = $_.vers; //#20221 - $_.msgbits = $_.verbits; //#20222 - $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20223 - $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20224 - var _M3 = $_.term; //#20227 - var _M4 = $_.dmod; //#20227 - var _M5 = $_.msgbits; //#20227 - var _M6 = $_.term; //#20227 - var _M7 = _M6.length; //#20227 - var _M8 = $f(_M4 - _M5.length); //#20227 - if ($f(_M4 - _M5.length) > _M6.length) { //#20227 - var _ = _M7; //#20227 - _M7 = _M8; //#20227 - _M8 = _; //#20227 - } //#20227 - $_.term = $geti(_M3, 0, _M8); //#20227 - var _MC = $s($_.msgbits.length + $_.term.length); //#20228 - $puti(_MC, 0, $_.msgbits); //#20229 - $puti(_MC, $_.msgbits.length, $_.term); //#20230 - $_.msgbits = _MC; //#20231 - $_.pad = $s($_.dmod); //#20234 - for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20235 - $put($_.pad, _MK, 48); //#20235 - } //#20235 - $puti($_.pad, 0, $_.msgbits); //#20236 - $_.padnum = 0; //#20237 - var _MR = $_.lc4b ? 5 : 1; //#20238 - for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20241 - $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20239 - $_.padnum = ($_.padnum + 1) % 2; //#20240 - } //#20240 - $_.cws = $a($_.dcws); //#20244 - for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20256 - $_.c = _Md; //#20246 - $_.bpcw = 8; //#20247 - if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20248 - $_.bpcw = 4; //#20248 - } //#20248 - $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20249 - $_.cw = 0; //#20250 - for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20254 - $_.i = _Mn; //#20252 - $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20253 - } //#20253 - $put($_.cws, $_.c, $_.cw); //#20255 - } //#20255 - if ($_.lc4b) { //#20259 - var _My = $_.cws; //#20259 - var _Mz = $_.cws; //#20259 - $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20259 - } //#20259 - var _N2 = $get($_.options, 'debugcws') !== undefined; //#20261 - if (_N2) { //#20261 - $k[$j++] = 'bwipp.debugcws#20261'; //#20261 - $k[$j++] = $_.cws; //#20261 - bwipp_raiseerror(); //#20261 - } //#20261 - if (!bwipp_qrcode.__20268__) { //#20268 - $_ = Object.create($_); //#20268 - $k[$j++] = Infinity; //#20265 - $k[$j++] = 1; //#20265 - for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20265 - var _N6 = $k[--$j]; //#20265 - var _N7 = _N6 * 2; //#20265 - $k[$j++] = _N6; //#20265 - $k[$j++] = _N7; //#20265 - if (_N7 >= 256) { //#20265 - var _N8 = $k[--$j]; //#20265 - $k[$j++] = _N8 ^ 285; //#20265 - } //#20265 - } //#20265 - $_.rsalog = $a(); //#20265 - $_.rslog = $a(256); //#20266 - for (var _NB = 1; _NB <= 255; _NB += 1) { //#20267 - $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20267 - } //#20267 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20267 - bwipp_qrcode.__20268__ = 1; //#20267 - $_ = Object.getPrototypeOf($_); //#20267 - } //#20267 + } //#20364 + $_.addtobits(); //#20364 + } //#20364 + if ($_.abort) { //#20366 + break; //#20366 + } //#20366 + $_.bits = $geti($_.bits, 0, $_.j); //#20367 + $put($_.msgbits, $_.ver, $_.bits); //#20368 + break; //#20369 + } //#20369 + } //#20369 + if (!bwipp_qrcode.__20455__) { //#20455 + $_ = Object.create($_); //#20455 + $_.metrics = $a([$a(["micro", "M1", $_.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $_.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $_.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $_.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $_.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $_.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $_.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $_.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $_.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $_.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $_.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $_.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $_.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $_.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $_.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $_.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $_.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $_.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $_.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $_.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $_.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $_.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $_.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $_.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $_.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $_.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $_.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $_.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $_.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $_.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $_.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $_.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $_.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $_.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $_.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $_.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $_.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $_.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $_.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $_.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $_.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $_.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $_.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $_.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $_.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $_.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $_.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $_.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $_.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $_.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $_.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $_.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $_.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $_.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $_.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $_.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $_.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $_.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $_.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $_.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $_.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $_.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $_.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $_.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $_.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $_.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $_.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $_.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $_.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $_.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $_.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $_.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $_.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $_.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $_.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $_.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#20454 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20454 + bwipp_qrcode.__20455__ = 1; //#20454 + $_ = Object.getPrototypeOf($_); //#20454 + } //#20454 + $k[$j++] = 'eclval'; //#20457 + $search("LMQH", $_.eclevel); //#20457 + $j--; //#20457 + var _Kj = $k[--$j]; //#20457 + var _Kk = $k[--$j]; //#20457 + $k[$j++] = _Kj.length; //#20457 + $k[$j++] = _Kk; //#20457 + $j--; //#20457 + var _Kl = $k[--$j]; //#20457 + var _Km = $k[--$j]; //#20457 + $k[$j++] = _Kl; //#20457 + $k[$j++] = _Km; //#20457 + $j--; //#20457 + var _Kn = $k[--$j]; //#20457 + $_[$k[--$j]] = _Kn; //#20457 + for (var _Kr = 0, _Kq = $_.metrics.length - 1; _Kr <= _Kq; _Kr += 1) { //#20496 + $_.i = _Kr; //#20459 + $_.m = $get($_.metrics, $_.i); //#20460 + $_.frmt = $get($_.m, 0); //#20461 + $_.vers = $get($_.m, 1); //#20462 + $_.vergrp = $get($_.m, 2); //#20463 + $_.verind = $_.i - 44; //#20464 + $_.rows = $get($_.m, 3); //#20465 + $_.cols = $get($_.m, 4); //#20466 + $_.asp2 = $get($_.m, 5); //#20467 + $_.asp3 = $get($_.m, 6); //#20468 + $_.nmod = $get($_.m, 7); //#20469 + $_.ncws = ~~($_.nmod / 8); //#20470 + $_.rbit = $_.nmod % 8; //#20471 + $_.lc4b = false; //#20472 + if ($eq($_.vers, "M1") || $eq($_.vers, "M3")) { //#20477 + $_.ncws = $_.ncws + 1; //#20474 + $_.rbit = 0; //#20475 + $_.lc4b = true; //#20476 + } //#20476 + $_.ecws = $get($get($_.m, 8), $_.eclval); //#20478 + $_.dcws = $f($_.ncws - $_.ecws); //#20479 + var _LP = $_.lc4b ? 4 : 0; //#20480 + $_.dmod = $f(($_.dcws * 8) - _LP); //#20480 + $_.ecb1 = $get($get($_.m, 9), $_.eclval * 2); //#20481 + $_.ecb2 = $get($get($_.m, 9), $f(($_.eclval * 2) + 1)); //#20482 + $_.okay = true; //#20483 + if ($ne($_.format, $_.frmt)) { //#20484 + $_.okay = false; //#20484 + } //#20484 + if ($eq($_.frmt, "micro") && $_.fnc1first) { //#20485 + $_.okay = false; //#20485 + } //#20485 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#20486 + $_.okay = false; //#20486 + } //#20486 + if (($_.ecb1 == -1) || ($_.ecb2 == -1)) { //#20487 + $_.okay = false; //#20487 + } //#20487 + $_.verbits = $get($_.msgbits, $_.vergrp); //#20488 + if ($_.verbits == -1) { //#20492 + $_.okay = false; //#20490 + } else { //#20492 + if ($_.verbits.length > $_.dmod) { //#20492 + $_.okay = false; //#20492 + } //#20492 + } //#20492 + $_.term = $geti("000000000", 0, $get($_.termlens, $_.vergrp)); //#20494 + if ($_.okay) { //#20495 + break; //#20495 + } //#20495 + } //#20495 + if (!$_.okay) { //#20500 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol#20499'; //#20499 + $k[$j++] = "Maximum length exceeded or invalid content"; //#20499 + bwipp_raiseerror(); //#20499 + } //#20499 + $_.format = $_.frmt; //#20502 + $_.version = $_.vers; //#20503 + $_.msgbits = $_.verbits; //#20504 + $_.dcpb = ~~($_.dcws / $f($_.ecb1 + $_.ecb2)); //#20505 + $_.ecpb = (~~($_.ncws / $f($_.ecb1 + $_.ecb2))) - $_.dcpb; //#20506 + var _M3 = $_.term; //#20509 + var _M4 = $_.dmod; //#20509 + var _M5 = $_.msgbits; //#20509 + var _M6 = $_.term; //#20509 + var _M7 = _M6.length; //#20509 + var _M8 = $f(_M4 - _M5.length); //#20509 + if ($f(_M4 - _M5.length) > _M6.length) { //#20509 + var _ = _M7; //#20509 + _M7 = _M8; //#20509 + _M8 = _; //#20509 + } //#20509 + $_.term = $geti(_M3, 0, _M8); //#20509 + var _MC = $s($_.msgbits.length + $_.term.length); //#20510 + $puti(_MC, 0, $_.msgbits); //#20511 + $puti(_MC, $_.msgbits.length, $_.term); //#20512 + $_.msgbits = _MC; //#20513 + $_.pad = $s($_.dmod); //#20516 + for (var _MK = 0, _MJ = $_.pad.length - 1; _MK <= _MJ; _MK += 1) { //#20517 + $put($_.pad, _MK, 48); //#20517 + } //#20517 + $puti($_.pad, 0, $_.msgbits); //#20518 + $_.padnum = 0; //#20519 + var _MR = $_.lc4b ? 5 : 1; //#20520 + for (var _MT = ~~(Math.ceil($_.msgbits.length / 8) * 8), _MS = $f($_.dmod - _MR); _MT <= _MS; _MT += 8) { //#20523 + $puti($_.pad, _MT, $get($_.padstrs, $_.padnum)); //#20521 + $_.padnum = ($_.padnum + 1) % 2; //#20522 + } //#20522 + $_.cws = $a($_.dcws); //#20526 + for (var _Md = 0, _Mc = $_.cws.length - 1; _Md <= _Mc; _Md += 1) { //#20538 + $_.c = _Md; //#20528 + $_.bpcw = 8; //#20529 + if ($_.lc4b && ($_.c == ($_.cws.length - 1))) { //#20530 + $_.bpcw = 4; //#20530 + } //#20530 + $_.cwb = $geti($_.pad, $_.c * 8, $_.bpcw); //#20531 + $_.cw = 0; //#20532 + for (var _Mn = 0, _Mm = $_.bpcw - 1; _Mn <= _Mm; _Mn += 1) { //#20536 + $_.i = _Mn; //#20534 + $_.cw = $f($_.cw + ((~~(Math.pow(2, ($_.bpcw - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#20535 + } //#20535 + $put($_.cws, $_.c, $_.cw); //#20537 + } //#20537 + if ($_.lc4b) { //#20541 + var _My = $_.cws; //#20541 + var _Mz = $_.cws; //#20541 + $put(_My, _Mz.length - 1, $get(_My, _Mz.length - 1) << 4); //#20541 + } //#20541 + var _N2 = $get($_.options, 'debugcws') !== undefined; //#20543 + if (_N2) { //#20543 + $k[$j++] = 'bwipp.debugcws#20543'; //#20543 + $k[$j++] = $_.cws; //#20543 + bwipp_raiseerror(); //#20543 + } //#20543 + if (!bwipp_qrcode.__20550__) { //#20550 + $_ = Object.create($_); //#20550 + $k[$j++] = Infinity; //#20547 + $k[$j++] = 1; //#20547 + for (var _N4 = 0, _N5 = 255; _N4 < _N5; _N4++) { //#20547 + var _N6 = $k[--$j]; //#20547 + var _N7 = _N6 * 2; //#20547 + $k[$j++] = _N6; //#20547 + $k[$j++] = _N7; //#20547 + if (_N7 >= 256) { //#20547 + var _N8 = $k[--$j]; //#20547 + $k[$j++] = _N8 ^ 285; //#20547 + } //#20547 + } //#20547 + $_.rsalog = $a(); //#20547 + $_.rslog = $a(256); //#20548 + for (var _NB = 1; _NB <= 255; _NB += 1) { //#20549 + $put($_.rslog, $get($_.rsalog, _NB), _NB); //#20549 + } //#20549 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20549 + bwipp_qrcode.__20550__ = 1; //#20549 + $_ = Object.getPrototypeOf($_); //#20549 + } //#20549 $_.rsprod = function() { - var _NG = $k[--$j]; //#20272 - var _NH = $k[--$j]; //#20272 - $k[$j++] = _NH; //#20276 - $k[$j++] = _NG; //#20276 - if ((_NG != 0) && (_NH != 0)) { //#20275 - var _NK = $get($_.rslog, $k[--$j]); //#20273 - var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20273 - $k[$j++] = _NP; //#20273 - } else { //#20275 - $j -= 2; //#20275 - $k[$j++] = 0; //#20275 - } //#20275 - }; //#20275 - $k[$j++] = Infinity; //#20280 - $k[$j++] = 1; //#20280 - for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20280 - $k[$j++] = 0; //#20280 - } //#20280 - $_.coeffs = $a(); //#20280 - for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20289 - $_.i = _NW; //#20282 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20283 - for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20287 - $_.j = _Nd; //#20285 - $k[$j++] = $_.coeffs; //#20286 - $k[$j++] = $_.j; //#20286 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#20286 - $k[$j++] = $get($_.coeffs, $_.j); //#20286 - $k[$j++] = $get($_.rsalog, $_.i); //#20286 - $_.rsprod(); //#20286 - var _Np = $k[--$j]; //#20286 - var _Nq = $k[--$j]; //#20286 - var _Nr = $k[--$j]; //#20286 - $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20286 - } //#20286 - $k[$j++] = $_.coeffs; //#20288 - $k[$j++] = 0; //#20288 - $k[$j++] = $get($_.coeffs, 0); //#20288 - $k[$j++] = $get($_.rsalog, $_.i); //#20288 - $_.rsprod(); //#20288 - var _Nz = $k[--$j]; //#20288 - var _O0 = $k[--$j]; //#20288 - $put($k[--$j], _O0, _Nz); //#20288 - } //#20288 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20290 + var _NG = $k[--$j]; //#20554 + var _NH = $k[--$j]; //#20554 + $k[$j++] = _NH; //#20558 + $k[$j++] = _NG; //#20558 + if ((_NG != 0) && (_NH != 0)) { //#20557 + var _NK = $get($_.rslog, $k[--$j]); //#20555 + var _NP = $get($_.rsalog, $f(_NK + $get($_.rslog, $k[--$j])) % 255); //#20555 + $k[$j++] = _NP; //#20555 + } else { //#20557 + $j -= 2; //#20557 + $k[$j++] = 0; //#20557 + } //#20557 + }; //#20557 + $k[$j++] = Infinity; //#20562 + $k[$j++] = 1; //#20562 + for (var _NR = 0, _NS = $_.ecpb; _NR < _NS; _NR++) { //#20562 + $k[$j++] = 0; //#20562 + } //#20562 + $_.coeffs = $a(); //#20562 + for (var _NW = 0, _NV = $_.ecpb - 1; _NW <= _NV; _NW += 1) { //#20571 + $_.i = _NW; //#20564 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#20565 + for (var _Nd = $_.i; _Nd >= 1; _Nd -= 1) { //#20569 + $_.j = _Nd; //#20567 + $k[$j++] = $_.coeffs; //#20568 + $k[$j++] = $_.j; //#20568 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#20568 + $k[$j++] = $get($_.coeffs, $_.j); //#20568 + $k[$j++] = $get($_.rsalog, $_.i); //#20568 + $_.rsprod(); //#20568 + var _Np = $k[--$j]; //#20568 + var _Nq = $k[--$j]; //#20568 + var _Nr = $k[--$j]; //#20568 + $put($k[--$j], _Nr, $xo(_Nq, _Np)); //#20568 + } //#20568 + $k[$j++] = $_.coeffs; //#20570 + $k[$j++] = 0; //#20570 + $k[$j++] = $get($_.coeffs, 0); //#20570 + $k[$j++] = $get($_.rsalog, $_.i); //#20570 + $_.rsprod(); //#20570 + var _Nz = $k[--$j]; //#20570 + var _O0 = $k[--$j]; //#20570 + $put($k[--$j], _O0, _Nz); //#20570 + } //#20570 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#20572 $_.rscodes = function() { - $_.rscws = $k[--$j]; //#20294 - $_.rsnd = $_.rscws.length; //#20295 - $k[$j++] = Infinity; //#20296 - $forall($_.rscws); //#20296 - for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20296 - $k[$j++] = 0; //#20296 - } //#20296 - $_.rscws = $a(); //#20296 - for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20304 - $_.m = _OE; //#20298 - $_.k = $get($_.rscws, $_.m); //#20299 - for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20303 - $_.j = _OK; //#20301 - $k[$j++] = $_.rscws; //#20302 - $k[$j++] = ($_.m + $_.j) + 1; //#20302 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20302 - $k[$j++] = $_.k; //#20302 - $_.rsprod(); //#20302 - var _OX = $k[--$j]; //#20302 - var _OY = $k[--$j]; //#20302 - $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20302 - } //#20302 - } //#20302 - $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20305 - }; //#20305 - $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20309 - $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20310 - for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20315 - $_.i = _Om; //#20312 - $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20313 - $k[$j++] = $_.ecwsb; //#20314 - $k[$j++] = $_.i; //#20314 - $k[$j++] = $get($_.dcwsb, $_.i); //#20314 - $_.rscodes(); //#20314 - var _Oz = $k[--$j]; //#20314 - var _P0 = $k[--$j]; //#20314 - $put($k[--$j], _P0, _Oz); //#20314 - } //#20314 - for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20320 - $_.i = _P4; //#20317 - $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20318 - $k[$j++] = $_.ecwsb; //#20319 - $k[$j++] = $f($_.ecb1 + $_.i); //#20319 - $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20319 - $_.rscodes(); //#20319 - var _PM = $k[--$j]; //#20319 - var _PN = $k[--$j]; //#20319 - $put($k[--$j], _PN, _PM); //#20319 - } //#20319 - $_.cws = $a($_.ncws); //#20323 - $_.cw = 0; //#20324 - for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20334 - $_.i = _PT; //#20326 - for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20333 - $_.j = _PX; //#20328 - if ($_.i < $get($_.dcwsb, $_.j).length) { //#20332 - $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20330 - $_.cw = $_.cw + 1; //#20331 - } //#20331 - } //#20331 - } //#20331 - for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20342 - $_.i = _Pm; //#20336 - for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20341 - $_.j = _Pq; //#20338 - $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20339 - $_.cw = $_.cw + 1; //#20340 - } //#20340 - } //#20340 - if ($_.rbit > 0) { //#20350 - $_.pad = $a($_.cws.length + 1); //#20346 - $puti($_.pad, 0, $_.cws); //#20347 - $put($_.pad, $_.pad.length - 1, 0); //#20348 - $_.cws = $_.pad; //#20349 - } //#20349 - if ($_.lc4b) { //#20361 - var _Q8 = $_.cws; //#20354 - var _Q9 = $_.dcws; //#20354 - $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20354 - for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20359 - $_.i = _QE; //#20356 - $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20357 - $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20358 - } //#20358 - $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20360 - } //#20360 - var _QY = $get($_.options, 'debugecc') !== undefined; //#20363 - if (_QY) { //#20363 - $k[$j++] = 'bwipp.debugecc#20363'; //#20363 - $k[$j++] = $_.cws; //#20363 - bwipp_raiseerror(); //#20363 - } //#20363 - $k[$j++] = Infinity; //#20366 - for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20366 - $k[$j++] = -1; //#20366 - } //#20366 - $_.pixs = $a(); //#20366 + $_.rscws = $k[--$j]; //#20576 + $_.rsnd = $_.rscws.length; //#20577 + $k[$j++] = Infinity; //#20578 + $forall($_.rscws); //#20578 + for (var _O9 = 0, _OA = $_.ecpb; _O9 < _OA; _O9++) { //#20578 + $k[$j++] = 0; //#20578 + } //#20578 + $_.rscws = $a(); //#20578 + for (var _OE = 0, _OD = $_.rsnd - 1; _OE <= _OD; _OE += 1) { //#20586 + $_.m = _OE; //#20580 + $_.k = $get($_.rscws, $_.m); //#20581 + for (var _OK = 0, _OJ = $_.ecpb - 1; _OK <= _OJ; _OK += 1) { //#20585 + $_.j = _OK; //#20583 + $k[$j++] = $_.rscws; //#20584 + $k[$j++] = ($_.m + $_.j) + 1; //#20584 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#20584 + $k[$j++] = $_.k; //#20584 + $_.rsprod(); //#20584 + var _OX = $k[--$j]; //#20584 + var _OY = $k[--$j]; //#20584 + $put($k[--$j], _OY, $xo(_OX, $get($_.rscws, ($_.m + $_.j) + 1))); //#20584 + } //#20584 + } //#20584 + $k[$j++] = $geti($_.rscws, $_.rsnd, $_.ecpb); //#20587 + }; //#20587 + $_.dcwsb = $a($f($_.ecb1 + $_.ecb2)); //#20591 + $_.ecwsb = $a($f($_.ecb1 + $_.ecb2)); //#20592 + for (var _Om = 0, _Ol = $f($_.ecb1 - 1); _Om <= _Ol; _Om += 1) { //#20597 + $_.i = _Om; //#20594 + $put($_.dcwsb, $_.i, $geti($_.cws, $_.i * $_.dcpb, $_.dcpb)); //#20595 + $k[$j++] = $_.ecwsb; //#20596 + $k[$j++] = $_.i; //#20596 + $k[$j++] = $get($_.dcwsb, $_.i); //#20596 + $_.rscodes(); //#20596 + var _Oz = $k[--$j]; //#20596 + var _P0 = $k[--$j]; //#20596 + $put($k[--$j], _P0, _Oz); //#20596 + } //#20596 + for (var _P4 = 0, _P3 = $f($_.ecb2 - 1); _P4 <= _P3; _P4 += 1) { //#20602 + $_.i = _P4; //#20599 + $put($_.dcwsb, $f($_.ecb1 + $_.i), $geti($_.cws, $f(($_.ecb1 * $_.dcpb) + ($_.i * ($_.dcpb + 1))), $_.dcpb + 1)); //#20600 + $k[$j++] = $_.ecwsb; //#20601 + $k[$j++] = $f($_.ecb1 + $_.i); //#20601 + $k[$j++] = $get($_.dcwsb, $f($_.ecb1 + $_.i)); //#20601 + $_.rscodes(); //#20601 + var _PM = $k[--$j]; //#20601 + var _PN = $k[--$j]; //#20601 + $put($k[--$j], _PN, _PM); //#20601 + } //#20601 + $_.cws = $a($_.ncws); //#20605 + $_.cw = 0; //#20606 + for (var _PT = 0, _PS = $_.dcpb; _PT <= _PS; _PT += 1) { //#20616 + $_.i = _PT; //#20608 + for (var _PX = 0, _PW = $f($f($_.ecb1 + $_.ecb2) - 1); _PX <= _PW; _PX += 1) { //#20615 + $_.j = _PX; //#20610 + if ($_.i < $get($_.dcwsb, $_.j).length) { //#20614 + $put($_.cws, $_.cw, $get($get($_.dcwsb, $_.j), $_.i)); //#20612 + $_.cw = $_.cw + 1; //#20613 + } //#20613 + } //#20613 + } //#20613 + for (var _Pm = 0, _Pl = $_.ecpb - 1; _Pm <= _Pl; _Pm += 1) { //#20624 + $_.i = _Pm; //#20618 + for (var _Pq = 0, _Pp = $f($f($_.ecb1 + $_.ecb2) - 1); _Pq <= _Pp; _Pq += 1) { //#20623 + $_.j = _Pq; //#20620 + $put($_.cws, $_.cw, $get($get($_.ecwsb, $_.j), $_.i)); //#20621 + $_.cw = $_.cw + 1; //#20622 + } //#20622 + } //#20622 + if ($_.rbit > 0) { //#20632 + $_.pad = $a($_.cws.length + 1); //#20628 + $puti($_.pad, 0, $_.cws); //#20629 + $put($_.pad, $_.pad.length - 1, 0); //#20630 + $_.cws = $_.pad; //#20631 + } //#20631 + if ($_.lc4b) { //#20643 + var _Q8 = $_.cws; //#20636 + var _Q9 = $_.dcws; //#20636 + $put(_Q8, $f(_Q9 - 1), $get(_Q8, $f(_Q9 - 1)) >>> 4); //#20636 + for (var _QE = $f($_.dcws - 1), _QD = $_.ncws - 2; _QE <= _QD; _QE += 1) { //#20641 + $_.i = _QE; //#20638 + $put($_.cws, $_.i, ($get($_.cws, $_.i) & 15) << 4); //#20639 + $put($_.cws, $_.i, (($get($_.cws, $_.i + 1) >>> 4) & 15) | $get($_.cws, $_.i)); //#20640 + } //#20640 + $put($_.cws, $_.ncws - 1, ($get($_.cws, $_.ncws - 1) & 15) << 4); //#20642 + } //#20642 + var _QY = $get($_.options, 'debugecc') !== undefined; //#20645 + if (_QY) { //#20645 + $k[$j++] = 'bwipp.debugecc#20645'; //#20645 + $k[$j++] = $_.cws; //#20645 + bwipp_raiseerror(); //#20645 + } //#20645 + $k[$j++] = Infinity; //#20648 + for (var _Qc = 0, _Qd = $_.rows * $_.cols; _Qc < _Qd; _Qc++) { //#20648 + $k[$j++] = -1; //#20648 + } //#20648 + $_.pixs = $a(); //#20648 $_.qmv = function() { - var _Qg = $k[--$j]; //#20367 - var _Qh = $k[--$j]; //#20367 - $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20367 - }; //#20367 - if ($eq($_.format, "full")) { //#20376 - for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20375 - $_.i = _Ql; //#20372 - $k[$j++] = $_.pixs; //#20373 - $k[$j++] = $_.i; //#20373 - $k[$j++] = 6; //#20373 - $_.qmv(); //#20373 - var _Qp = $k[--$j]; //#20373 - $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20373 - $k[$j++] = $_.pixs; //#20374 - $k[$j++] = 6; //#20374 - $k[$j++] = $_.i; //#20374 - $_.qmv(); //#20374 - var _Qu = $k[--$j]; //#20374 - $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20374 - } //#20374 - } //#20374 - if ($eq($_.format, "micro")) { //#20383 - for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20382 - $_.i = _Qz; //#20379 - $k[$j++] = $_.pixs; //#20380 - $k[$j++] = $_.i; //#20380 - $k[$j++] = 0; //#20380 - $_.qmv(); //#20380 - var _R3 = $k[--$j]; //#20380 - $put($k[--$j], _R3, ($_.i + 1) % 2); //#20380 - $k[$j++] = $_.pixs; //#20381 - $k[$j++] = 0; //#20381 - $k[$j++] = $_.i; //#20381 - $_.qmv(); //#20381 - var _R8 = $k[--$j]; //#20381 - $put($k[--$j], _R8, ($_.i + 1) % 2); //#20381 - } //#20381 - } //#20381 - if ($eq($_.format, "rmqr")) { //#20402 - for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20389 - $_.i = _RD; //#20386 - $k[$j++] = $_.pixs; //#20387 - $k[$j++] = $_.i; //#20387 - $k[$j++] = 0; //#20387 - $_.qmv(); //#20387 - var _RH = $k[--$j]; //#20387 - $put($k[--$j], _RH, ($_.i + 1) % 2); //#20387 - $k[$j++] = $_.pixs; //#20388 - $k[$j++] = $_.i; //#20388 - $k[$j++] = $f($_.rows - 1); //#20388 - $_.qmv(); //#20388 - var _RN = $k[--$j]; //#20388 - $put($k[--$j], _RN, ($_.i + 1) % 2); //#20388 - } //#20388 - for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20394 - $_.i = _RR; //#20391 - $k[$j++] = $_.pixs; //#20392 - $k[$j++] = 0; //#20392 - $k[$j++] = $_.i; //#20392 - $_.qmv(); //#20392 - var _RV = $k[--$j]; //#20392 - $put($k[--$j], _RV, ($_.i + 1) % 2); //#20392 - $k[$j++] = $_.pixs; //#20393 - $k[$j++] = $f($_.cols - 1); //#20393 - $k[$j++] = $_.i; //#20393 - $_.qmv(); //#20393 - var _Rb = $k[--$j]; //#20393 - $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20393 - } //#20393 - for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20401 - $_.i = _Ri; //#20396 - for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20400 - $_.j = _Rm; //#20398 - $k[$j++] = $_.pixs; //#20399 - $k[$j++] = $_.i; //#20399 - $k[$j++] = $_.j; //#20399 - $_.qmv(); //#20399 - var _Rr = $k[--$j]; //#20399 - $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20399 - } //#20399 - } //#20399 - } //#20399 - if (!bwipp_qrcode.__20452__) { //#20452 - $_ = Object.create($_); //#20452 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20415 - $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20425 - $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20435 - $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20445 + var _Qg = $k[--$j]; //#20649 + var _Qh = $k[--$j]; //#20649 + $k[$j++] = $f(_Qh + (_Qg * $_.cols)); //#20649 + }; //#20649 + if ($eq($_.format, "full")) { //#20658 + for (var _Ql = 8, _Qk = $f($_.cols - 9); _Ql <= _Qk; _Ql += 1) { //#20657 + $_.i = _Ql; //#20654 + $k[$j++] = $_.pixs; //#20655 + $k[$j++] = $_.i; //#20655 + $k[$j++] = 6; //#20655 + $_.qmv(); //#20655 + var _Qp = $k[--$j]; //#20655 + $put($k[--$j], _Qp, ($_.i + 1) % 2); //#20655 + $k[$j++] = $_.pixs; //#20656 + $k[$j++] = 6; //#20656 + $k[$j++] = $_.i; //#20656 + $_.qmv(); //#20656 + var _Qu = $k[--$j]; //#20656 + $put($k[--$j], _Qu, ($_.i + 1) % 2); //#20656 + } //#20656 + } //#20656 + if ($eq($_.format, "micro")) { //#20665 + for (var _Qz = 8, _Qy = $f($_.cols - 1); _Qz <= _Qy; _Qz += 1) { //#20664 + $_.i = _Qz; //#20661 + $k[$j++] = $_.pixs; //#20662 + $k[$j++] = $_.i; //#20662 + $k[$j++] = 0; //#20662 + $_.qmv(); //#20662 + var _R3 = $k[--$j]; //#20662 + $put($k[--$j], _R3, ($_.i + 1) % 2); //#20662 + $k[$j++] = $_.pixs; //#20663 + $k[$j++] = 0; //#20663 + $k[$j++] = $_.i; //#20663 + $_.qmv(); //#20663 + var _R8 = $k[--$j]; //#20663 + $put($k[--$j], _R8, ($_.i + 1) % 2); //#20663 + } //#20663 + } //#20663 + if ($eq($_.format, "rmqr")) { //#20684 + for (var _RD = 3, _RC = $f($_.cols - 4); _RD <= _RC; _RD += 1) { //#20671 + $_.i = _RD; //#20668 + $k[$j++] = $_.pixs; //#20669 + $k[$j++] = $_.i; //#20669 + $k[$j++] = 0; //#20669 + $_.qmv(); //#20669 + var _RH = $k[--$j]; //#20669 + $put($k[--$j], _RH, ($_.i + 1) % 2); //#20669 + $k[$j++] = $_.pixs; //#20670 + $k[$j++] = $_.i; //#20670 + $k[$j++] = $f($_.rows - 1); //#20670 + $_.qmv(); //#20670 + var _RN = $k[--$j]; //#20670 + $put($k[--$j], _RN, ($_.i + 1) % 2); //#20670 + } //#20670 + for (var _RR = 3, _RQ = $f($_.rows - 4); _RR <= _RQ; _RR += 1) { //#20676 + $_.i = _RR; //#20673 + $k[$j++] = $_.pixs; //#20674 + $k[$j++] = 0; //#20674 + $k[$j++] = $_.i; //#20674 + $_.qmv(); //#20674 + var _RV = $k[--$j]; //#20674 + $put($k[--$j], _RV, ($_.i + 1) % 2); //#20674 + $k[$j++] = $_.pixs; //#20675 + $k[$j++] = $f($_.cols - 1); //#20675 + $k[$j++] = $_.i; //#20675 + $_.qmv(); //#20675 + var _Rb = $k[--$j]; //#20675 + $put($k[--$j], _Rb, ($_.i + 1) % 2); //#20675 + } //#20675 + for (var _Ri = $f($_.asp2 - 1), _Rj = $f($_.asp3 - $_.asp2), _Rh = $f($_.cols - 13); _Rj < 0 ? _Ri >= _Rh : _Ri <= _Rh; _Ri += _Rj) { //#20683 + $_.i = _Ri; //#20678 + for (var _Rm = 3, _Rl = $f($_.rows - 4); _Rm <= _Rl; _Rm += 1) { //#20682 + $_.j = _Rm; //#20680 + $k[$j++] = $_.pixs; //#20681 + $k[$j++] = $_.i; //#20681 + $k[$j++] = $_.j; //#20681 + $_.qmv(); //#20681 + var _Rr = $k[--$j]; //#20681 + $put($k[--$j], _Rr, ($_.j + 1) % 2); //#20681 + } //#20681 + } //#20681 + } //#20681 + if (!bwipp_qrcode.__20734__) { //#20734 + $_ = Object.create($_); //#20734 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#20697 + $_.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20707 + $_.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20717 + $_.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#20727 var _Si = new Map([ ["full", $a([$_.fpat, $_.fpat, $_.fpat, $_.fnullpat])], ["micro", $a([$_.fpat, $_.fnullpat, $_.fnullpat, $_.fnullpat])], ["rmqr", $a([$_.fpat, $_.fcorpat, $_.fcorpat, $_.fsubpat])] - ]); //#20450 - $_.fpatmap = _Si; //#20451 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20451 - bwipp_qrcode.__20452__ = 1; //#20451 - $_ = Object.getPrototypeOf($_); //#20451 - } //#20451 - $_.fpats = $get($_.fpatmap, $_.format); //#20453 - for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20467 - $_.y = _Sn; //#20455 - for (var _So = 0; _So <= 7; _So += 1) { //#20466 - $_.x = _So; //#20457 - $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20458 - $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20459 - $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20460 - $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20461 - if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20462 - $k[$j++] = $_.pixs; //#20462 - $k[$j++] = $_.x; //#20462 - $k[$j++] = $_.y; //#20462 - $_.qmv(); //#20462 - var _TK = $k[--$j]; //#20462 - $put($k[--$j], _TK, $_.fpb0); //#20462 - } //#20462 - if ($_.fpb1 != 9) { //#20463 - $k[$j++] = $_.pixs; //#20463 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20463 - $k[$j++] = $_.y; //#20463 - $_.qmv(); //#20463 - var _TS = $k[--$j]; //#20463 - $put($k[--$j], _TS, $_.fpb1); //#20463 - } //#20463 - if ($_.fpb2 != 9) { //#20464 - $k[$j++] = $_.pixs; //#20464 - $k[$j++] = $_.x; //#20464 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20464 - $_.qmv(); //#20464 - var _Ta = $k[--$j]; //#20464 - $put($k[--$j], _Ta, $_.fpb2); //#20464 - } //#20464 - if ($_.fpb3 != 9) { //#20465 - $k[$j++] = $_.pixs; //#20465 - $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20465 - $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20465 - $_.qmv(); //#20465 - var _Tj = $k[--$j]; //#20465 - $put($k[--$j], _Tj, $_.fpb3); //#20465 - } //#20465 - } //#20465 - } //#20465 - if (!bwipp_qrcode.__20485__) { //#20485 - $_ = Object.create($_); //#20485 - $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20477 - $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20484 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20484 - bwipp_qrcode.__20485__ = 1; //#20484 - $_ = Object.getPrototypeOf($_); //#20484 - } //#20484 + ]); //#20732 + $_.fpatmap = _Si; //#20733 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20733 + bwipp_qrcode.__20734__ = 1; //#20733 + $_ = Object.getPrototypeOf($_); //#20733 + } //#20733 + $_.fpats = $get($_.fpatmap, $_.format); //#20735 + for (var _Sn = 0; _Sn <= 7; _Sn += 1) { //#20749 + $_.y = _Sn; //#20737 + for (var _So = 0; _So <= 7; _So += 1) { //#20748 + $_.x = _So; //#20739 + $_.fpb0 = $get($get($get($_.fpats, 0), $_.y), $_.x); //#20740 + $_.fpb1 = $get($get($get($_.fpats, 1), $_.y), $_.x); //#20741 + $_.fpb2 = $get($get($get($_.fpats, 2), $_.y), $_.x); //#20742 + $_.fpb3 = $get($get($get($_.fpats, 3), $_.y), $_.x); //#20743 + if (($_.fpb0 != 9) && ($_.y < $_.rows)) { //#20744 + $k[$j++] = $_.pixs; //#20744 + $k[$j++] = $_.x; //#20744 + $k[$j++] = $_.y; //#20744 + $_.qmv(); //#20744 + var _TK = $k[--$j]; //#20744 + $put($k[--$j], _TK, $_.fpb0); //#20744 + } //#20744 + if ($_.fpb1 != 9) { //#20745 + $k[$j++] = $_.pixs; //#20745 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20745 + $k[$j++] = $_.y; //#20745 + $_.qmv(); //#20745 + var _TS = $k[--$j]; //#20745 + $put($k[--$j], _TS, $_.fpb1); //#20745 + } //#20745 + if ($_.fpb2 != 9) { //#20746 + $k[$j++] = $_.pixs; //#20746 + $k[$j++] = $_.x; //#20746 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20746 + $_.qmv(); //#20746 + var _Ta = $k[--$j]; //#20746 + $put($k[--$j], _Ta, $_.fpb2); //#20746 + } //#20746 + if ($_.fpb3 != 9) { //#20747 + $k[$j++] = $_.pixs; //#20747 + $k[$j++] = $f($f($_.cols - $_.x) - 1); //#20747 + $k[$j++] = $f($f($_.rows - $_.y) - 1); //#20747 + $_.qmv(); //#20747 + var _Tj = $k[--$j]; //#20747 + $put($k[--$j], _Tj, $_.fpb3); //#20747 + } //#20747 + } //#20747 + } //#20747 + if (!bwipp_qrcode.__20767__) { //#20767 + $_ = Object.create($_); //#20767 + $_.algnpatfull = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#20759 + $_.algnpatrmqr = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#20766 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20766 + bwipp_qrcode.__20767__ = 1; //#20766 + $_ = Object.getPrototypeOf($_); //#20766 + } //#20766 $_.putalgnpat = function() { - $_.py = $k[--$j]; //#20488 - $_.px = $k[--$j]; //#20489 - for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20499 - $_.pb = _U0; //#20491 - for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20498 - $_.pa = _U1; //#20493 - $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20494 - if ($_.algnb != 9) { //#20497 - $k[$j++] = $_.pixs; //#20496 - $k[$j++] = $f($_.px + $_.pa); //#20496 - $k[$j++] = $f($_.py + $_.pb); //#20496 - $_.qmv(); //#20496 - var _UE = $k[--$j]; //#20496 - $put($k[--$j], _UE, $_.algnb); //#20496 - } //#20496 - } //#20496 - } //#20496 - }; //#20496 - if ($eq($_.format, "full")) { //#20515 - $_.algnpat = $_.algnpatfull; //#20502 - for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20507 - $_.i = _UN; //#20504 - $k[$j++] = $_.i; //#20505 - $k[$j++] = 4; //#20505 - $_.putalgnpat(); //#20505 - $k[$j++] = 4; //#20506 - $k[$j++] = $_.i; //#20506 - $_.putalgnpat(); //#20506 - } //#20506 - for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20514 - $_.x = _UW; //#20509 - for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20513 - $_.y = _Ud; //#20511 - $k[$j++] = $_.x; //#20512 - $k[$j++] = $_.y; //#20512 - $_.putalgnpat(); //#20512 - } //#20512 - } //#20512 - } //#20512 - if ($eq($_.format, "rmqr")) { //#20523 - $_.algnpat = $_.algnpatrmqr; //#20517 - for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20522 - $_.i = _Uo; //#20519 - $k[$j++] = $_.i; //#20520 - $k[$j++] = 0; //#20520 - $_.putalgnpat(); //#20520 - $k[$j++] = $_.i; //#20521 - $k[$j++] = $f($_.rows - 3); //#20521 - $_.putalgnpat(); //#20521 - } //#20521 - } //#20521 - if (!bwipp_qrcode.__20532__) { //#20532 - $_ = Object.create($_); //#20532 - $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20531 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20531 - bwipp_qrcode.__20532__ = 1; //#20531 - $_ = Object.getPrototypeOf($_); //#20531 - } //#20531 + $_.py = $k[--$j]; //#20770 + $_.px = $k[--$j]; //#20771 + for (var _U0 = 0; _U0 <= 4; _U0 += 1) { //#20781 + $_.pb = _U0; //#20773 + for (var _U1 = 0; _U1 <= 4; _U1 += 1) { //#20780 + $_.pa = _U1; //#20775 + $_.algnb = $get($get($_.algnpat, $_.pb), $_.pa); //#20776 + if ($_.algnb != 9) { //#20779 + $k[$j++] = $_.pixs; //#20778 + $k[$j++] = $f($_.px + $_.pa); //#20778 + $k[$j++] = $f($_.py + $_.pb); //#20778 + $_.qmv(); //#20778 + var _UE = $k[--$j]; //#20778 + $put($k[--$j], _UE, $_.algnb); //#20778 + } //#20778 + } //#20778 + } //#20778 + }; //#20778 + if ($eq($_.format, "full")) { //#20797 + $_.algnpat = $_.algnpatfull; //#20784 + for (var _UN = $f($_.asp2 - 2), _UO = $f($_.asp3 - $_.asp2), _UM = $f($_.cols - 13); _UO < 0 ? _UN >= _UM : _UN <= _UM; _UN += _UO) { //#20789 + $_.i = _UN; //#20786 + $k[$j++] = $_.i; //#20787 + $k[$j++] = 4; //#20787 + $_.putalgnpat(); //#20787 + $k[$j++] = 4; //#20788 + $k[$j++] = $_.i; //#20788 + $_.putalgnpat(); //#20788 + } //#20788 + for (var _UW = $f($_.asp2 - 2), _UX = $f($_.asp3 - $_.asp2), _UV = $f($_.cols - 9); _UX < 0 ? _UW >= _UV : _UW <= _UV; _UW += _UX) { //#20796 + $_.x = _UW; //#20791 + for (var _Ud = $f($_.asp2 - 2), _Ue = $f($_.asp3 - $_.asp2), _Uc = $f($_.rows - 9); _Ue < 0 ? _Ud >= _Uc : _Ud <= _Uc; _Ud += _Ue) { //#20795 + $_.y = _Ud; //#20793 + $k[$j++] = $_.x; //#20794 + $k[$j++] = $_.y; //#20794 + $_.putalgnpat(); //#20794 + } //#20794 + } //#20794 + } //#20794 + if ($eq($_.format, "rmqr")) { //#20805 + $_.algnpat = $_.algnpatrmqr; //#20799 + for (var _Uo = $f($_.asp2 - 2), _Up = $f($_.asp3 - $_.asp2), _Un = $f($_.cols - 13); _Up < 0 ? _Uo >= _Un : _Uo <= _Un; _Uo += _Up) { //#20804 + $_.i = _Uo; //#20801 + $k[$j++] = $_.i; //#20802 + $k[$j++] = 0; //#20802 + $_.putalgnpat(); //#20802 + $k[$j++] = $_.i; //#20803 + $k[$j++] = $f($_.rows - 3); //#20803 + $_.putalgnpat(); //#20803 + } //#20803 + } //#20803 + if (!bwipp_qrcode.__20814__) { //#20814 + $_ = Object.create($_); //#20814 + $_.formatmapmicro = $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])]); //#20813 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 + bwipp_qrcode.__20814__ = 1; //#20813 + $_ = Object.getPrototypeOf($_); //#20813 + } //#20813 var _Xs = new Map([ ["full", $a([$a([$a([0, 8]), $a([8, $f($_.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($_.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($_.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($_.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($_.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($_.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($_.cols - 7)])]), $a([$a([8, 8]), $a([$f($_.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($_.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($_.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($_.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($_.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($_.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($_.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($_.cols - 1), 8])])])], ["micro", $_.formatmapmicro], ["rmqr", $a([$a([$a([11, 3]), $a([$f($_.cols - 3), $f($_.rows - 6)])]), $a([$a([11, 2]), $a([$f($_.cols - 4), $f($_.rows - 6)])]), $a([$a([11, 1]), $a([$f($_.cols - 5), $f($_.rows - 6)])]), $a([$a([10, 5]), $a([$f($_.cols - 6), $f($_.rows - 2)])]), $a([$a([10, 4]), $a([$f($_.cols - 6), $f($_.rows - 3)])]), $a([$a([10, 3]), $a([$f($_.cols - 6), $f($_.rows - 4)])]), $a([$a([10, 2]), $a([$f($_.cols - 6), $f($_.rows - 5)])]), $a([$a([10, 1]), $a([$f($_.cols - 6), $f($_.rows - 6)])]), $a([$a([9, 5]), $a([$f($_.cols - 7), $f($_.rows - 2)])]), $a([$a([9, 4]), $a([$f($_.cols - 7), $f($_.rows - 3)])]), $a([$a([9, 3]), $a([$f($_.cols - 7), $f($_.rows - 4)])]), $a([$a([9, 2]), $a([$f($_.cols - 7), $f($_.rows - 5)])]), $a([$a([9, 1]), $a([$f($_.cols - 7), $f($_.rows - 6)])]), $a([$a([8, 5]), $a([$f($_.cols - 8), $f($_.rows - 2)])]), $a([$a([8, 4]), $a([$f($_.cols - 8), $f($_.rows - 3)])]), $a([$a([8, 3]), $a([$f($_.cols - 8), $f($_.rows - 4)])]), $a([$a([8, 2]), $a([$f($_.cols - 8), $f($_.rows - 5)])]), $a([$a([8, 1]), $a([$f($_.cols - 8), $f($_.rows - 6)])])])] - ]); //#20548 - $_.formatmap = $get(_Xs, $_.format); //#20550 - $forall($_.formatmap, function() { //#20553 - $forall($k[--$j], function() { //#20552 - $forall($k[--$j]); //#20552 - $_.qmv(); //#20552 - $put($_.pixs, $k[--$j], 1); //#20552 - }); //#20552 - }); //#20552 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20569 - $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20567 - } else { //#20569 - $_.versionmap = $a([]); //#20569 - } //#20569 - var _ZW = $_.versionmap; //#20571 - for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20573 - $forall($get(_ZW, _ZX), function() { //#20572 - $forall($k[--$j]); //#20572 - $_.qmv(); //#20572 - $put($_.pixs, $k[--$j], 0); //#20572 - }); //#20572 - } //#20572 - if ($eq($_.format, "full")) { //#20578 - $k[$j++] = $_.pixs; //#20577 - $k[$j++] = 8; //#20577 - $k[$j++] = $f($_.rows - 8); //#20577 - $_.qmv(); //#20577 - var _Zg = $k[--$j]; //#20577 - $put($k[--$j], _Zg, 0); //#20577 - } //#20577 + ]); //#20830 + $_.formatmap = $get(_Xs, $_.format); //#20832 + $forall($_.formatmap, function() { //#20835 + $forall($k[--$j], function() { //#20834 + $forall($k[--$j]); //#20834 + $_.qmv(); //#20834 + $put($_.pixs, $k[--$j], 1); //#20834 + }); //#20834 + }); //#20834 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20851 + $_.versionmap = $a([$a([$a([$f($_.cols - 9), 5]), $a([5, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 5]), $a([5, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 5]), $a([5, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 4]), $a([4, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 4]), $a([4, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 4]), $a([4, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 3]), $a([3, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 3]), $a([3, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 3]), $a([3, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 2]), $a([2, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 2]), $a([2, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 2]), $a([2, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 1]), $a([1, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 1]), $a([1, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 1]), $a([1, $f($_.cols - 11)])]), $a([$a([$f($_.cols - 9), 0]), $a([0, $f($_.cols - 9)])]), $a([$a([$f($_.cols - 10), 0]), $a([0, $f($_.cols - 10)])]), $a([$a([$f($_.cols - 11), 0]), $a([0, $f($_.cols - 11)])])]); //#20849 + } else { //#20851 + $_.versionmap = $a([]); //#20851 + } //#20851 + var _ZW = $_.versionmap; //#20853 + for (var _ZX = 0, _ZY = _ZW.length; _ZX < _ZY; _ZX++) { //#20855 + $forall($get(_ZW, _ZX), function() { //#20854 + $forall($k[--$j]); //#20854 + $_.qmv(); //#20854 + $put($_.pixs, $k[--$j], 0); //#20854 + }); //#20854 + } //#20854 + if ($eq($_.format, "full")) { //#20860 + $k[$j++] = $_.pixs; //#20859 + $k[$j++] = 8; //#20859 + $k[$j++] = $f($_.rows - 8); //#20859 + $_.qmv(); //#20859 + var _Zg = $k[--$j]; //#20859 + $put($k[--$j], _Zg, 0); //#20859 + } //#20859 var _a0 = $a([function() { - var _Zi = $k[--$j]; //#20583 - var _Zj = $k[--$j]; //#20583 - $k[$j++] = $f(_Zj + _Zi) % 2; //#20583 + var _Zi = $k[--$j]; //#20865 + var _Zj = $k[--$j]; //#20865 + $k[$j++] = $f(_Zj + _Zi) % 2; //#20865 }, function() { - var _Zk = $k[--$j]; //#20584 - var _Zl = $k[--$j]; //#20584 - $k[$j++] = _Zk; //#20584 - $k[$j++] = _Zl; //#20584 - $j--; //#20584 - var _Zm = $k[--$j]; //#20584 - $k[$j++] = _Zm % 2; //#20584 + var _Zk = $k[--$j]; //#20866 + var _Zl = $k[--$j]; //#20866 + $k[$j++] = _Zk; //#20866 + $k[$j++] = _Zl; //#20866 + $j--; //#20866 + var _Zm = $k[--$j]; //#20866 + $k[$j++] = _Zm % 2; //#20866 }, function() { - $j--; //#20585 - var _Zn = $k[--$j]; //#20585 - $k[$j++] = _Zn % 3; //#20585 + $j--; //#20867 + var _Zn = $k[--$j]; //#20867 + $k[$j++] = _Zn % 3; //#20867 }, function() { - var _Zo = $k[--$j]; //#20586 - var _Zp = $k[--$j]; //#20586 - $k[$j++] = $f(_Zp + _Zo) % 3; //#20586 + var _Zo = $k[--$j]; //#20868 + var _Zp = $k[--$j]; //#20868 + $k[$j++] = $f(_Zp + _Zo) % 3; //#20868 }, function() { - var _Zq = $k[--$j]; //#20587 - var _Zr = $k[--$j]; //#20587 - $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20587 + var _Zq = $k[--$j]; //#20869 + var _Zr = $k[--$j]; //#20869 + $k[$j++] = ((~~(_Zq / 2)) + (~~(_Zr / 3))) % 2; //#20869 }, function() { - var _Zs = $k[--$j]; //#20588 - var _Zu = $k[--$j] * _Zs; //#20588 - $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20588 + var _Zs = $k[--$j]; //#20870 + var _Zu = $k[--$j] * _Zs; //#20870 + $k[$j++] = $f((_Zu % 2) + (_Zu % 3)); //#20870 }, function() { - var _Zv = $k[--$j]; //#20589 - var _Zx = $k[--$j] * _Zv; //#20589 - $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20589 + var _Zv = $k[--$j]; //#20871 + var _Zx = $k[--$j] * _Zv; //#20871 + $k[$j++] = ($f((_Zx % 2) + (_Zx % 3))) % 2; //#20871 }, function() { - var _Zy = $k[--$j]; //#20590 - var _Zz = $k[--$j]; //#20590 - $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20590 - }]); //#20590 + var _Zy = $k[--$j]; //#20872 + var _Zz = $k[--$j]; //#20872 + $k[$j++] = ($f(((_Zz * _Zy) % 3) + ($f(_Zz + _Zy) % 2))) % 2; //#20872 + }]); //#20872 var _aB = $a([function() { - var _a1 = $k[--$j]; //#20593 - var _a2 = $k[--$j]; //#20593 - $k[$j++] = _a1; //#20593 - $k[$j++] = _a2; //#20593 - $j--; //#20593 - var _a3 = $k[--$j]; //#20593 - $k[$j++] = _a3 % 2; //#20593 + var _a1 = $k[--$j]; //#20875 + var _a2 = $k[--$j]; //#20875 + $k[$j++] = _a1; //#20875 + $k[$j++] = _a2; //#20875 + $j--; //#20875 + var _a3 = $k[--$j]; //#20875 + $k[$j++] = _a3 % 2; //#20875 }, function() { - var _a4 = $k[--$j]; //#20594 - var _a5 = $k[--$j]; //#20594 - $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20594 + var _a4 = $k[--$j]; //#20876 + var _a5 = $k[--$j]; //#20876 + $k[$j++] = ((~~(_a4 / 2)) + (~~(_a5 / 3))) % 2; //#20876 }, function() { - var _a6 = $k[--$j]; //#20595 - var _a8 = $k[--$j] * _a6; //#20595 - $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20595 + var _a6 = $k[--$j]; //#20877 + var _a8 = $k[--$j] * _a6; //#20877 + $k[$j++] = ($f((_a8 % 2) + (_a8 % 3))) % 2; //#20877 }, function() { - var _a9 = $k[--$j]; //#20596 - var _aA = $k[--$j]; //#20596 - $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20596 - }]); //#20596 + var _a9 = $k[--$j]; //#20878 + var _aA = $k[--$j]; //#20878 + $k[$j++] = ($f(((_aA * _a9) % 3) + ($f(_aA + _a9) % 2))) % 2; //#20878 + }]); //#20878 var _aE = $a([function() { - var _aC = $k[--$j]; //#20599 - var _aD = $k[--$j]; //#20599 - $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20599 - }]); //#20599 + var _aC = $k[--$j]; //#20881 + var _aD = $k[--$j]; //#20881 + $k[$j++] = ((~~(_aC / 2)) + (~~(_aD / 3))) % 2; //#20881 + }]); //#20881 var _aF = new Map([ ["full", _a0], ["micro", _aB], ["rmqr", _aE] - ]); //#20599 - $_.maskfuncs = $get(_aF, $_.format); //#20601 - if ($_.mask != -1) { //#20605 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20603 - $_.bestmaskval = $_.mask - 1; //#20604 - } //#20604 - $_.masks = $a($_.maskfuncs.length); //#20606 - for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20620 - $_.m = _aS; //#20608 - $_.mask = $a($_.rows * $_.cols); //#20609 - for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20618 - $_.j = _aY; //#20611 - for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20617 - $_.i = _ab; //#20613 - $k[$j++] = $_.i; //#20614 - $k[$j++] = $_.j; //#20614 + ]); //#20881 + $_.maskfuncs = $get(_aF, $_.format); //#20883 + if ($_.mask != -1) { //#20887 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#20885 + $_.bestmaskval = $_.mask - 1; //#20886 + } //#20886 + $_.masks = $a($_.maskfuncs.length); //#20888 + for (var _aS = 0, _aR = $_.masks.length - 1; _aS <= _aR; _aS += 1) { //#20902 + $_.m = _aS; //#20890 + $_.mask = $a($_.rows * $_.cols); //#20891 + for (var _aY = 0, _aX = $f($_.rows - 1); _aY <= _aX; _aY += 1) { //#20900 + $_.j = _aY; //#20893 + for (var _ab = 0, _aa = $f($_.cols - 1); _ab <= _aa; _ab += 1) { //#20899 + $_.i = _ab; //#20895 + $k[$j++] = $_.i; //#20896 + $k[$j++] = $_.j; //#20896 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#20614 - var _ah = $k[--$j]; //#20614 - $k[$j++] = _ah == 0; //#20615 - $k[$j++] = $_.pixs; //#20615 - $k[$j++] = $_.i; //#20615 - $k[$j++] = $_.j; //#20615 - $_.qmv(); //#20615 - var _al = $k[--$j]; //#20615 - var _an = $get($k[--$j], _al); //#20615 - var _ao = $k[--$j]; //#20615 - var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20615 - $k[$j++] = _ap; //#20616 - $k[$j++] = $_.mask; //#20616 - $k[$j++] = $_.i; //#20616 - $k[$j++] = $_.j; //#20616 - $_.qmv(); //#20616 - var _at = $k[--$j]; //#20616 - var _au = $k[--$j]; //#20616 - $put(_au, _at, $k[--$j]); //#20616 - } //#20616 - } //#20616 - $put($_.masks, $_.m, $_.mask); //#20619 - } //#20619 - var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20623 - $_.posx = $f($_.cols - _b1); //#20623 - $_.posy = $f($_.rows - 1); //#20624 - $_.dir = -1; //#20625 - $_.col = 1; //#20626 - $_.num = 0; //#20627 - for (;;) { //#20650 - if ($_.posx < 0) { //#20629 - break; //#20629 - } //#20629 - $k[$j++] = $_.pixs; //#20630 - $k[$j++] = $_.posx; //#20630 - $k[$j++] = $_.posy; //#20630 - $_.qmv(); //#20630 - var _b7 = $k[--$j]; //#20630 - if ($get($k[--$j], _b7) == -1) { //#20634 - var _bC = $get($_.cws, ~~($_.num / 8)); //#20631 - var _bE = -(7 - ($_.num % 8)); //#20631 - $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20632 - $k[$j++] = $_.pixs; //#20632 - $k[$j++] = $_.posx; //#20632 - $k[$j++] = $_.posy; //#20632 - $_.qmv(); //#20632 - var _bI = $k[--$j]; //#20632 - var _bJ = $k[--$j]; //#20632 - $put(_bJ, _bI, $k[--$j]); //#20632 - $_.num = $_.num + 1; //#20633 - } //#20633 - if ($_.col == 1) { //#20647 - $_.col = 0; //#20636 - $_.posx = $f($_.posx - 1); //#20637 - } else { //#20647 - $_.col = 1; //#20639 - $_.posx = $f($_.posx + 1); //#20640 - $_.posy = $f($_.posy + $_.dir); //#20641 - if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20648 - $_.dir = $_.dir * -1; //#20643 - $_.posy = $f($_.posy + $_.dir); //#20644 - $_.posx = $f($_.posx - 2); //#20645 - if ($eq($_.format, "full") && ($_.posx == 6)) { //#20647 - $_.posx = $f($_.posx - 1); //#20647 - } //#20647 - } //#20647 - } //#20647 - } //#20647 + } //#20896 + var _ah = $k[--$j]; //#20896 + $k[$j++] = _ah == 0; //#20897 + $k[$j++] = $_.pixs; //#20897 + $k[$j++] = $_.i; //#20897 + $k[$j++] = $_.j; //#20897 + $_.qmv(); //#20897 + var _al = $k[--$j]; //#20897 + var _an = $get($k[--$j], _al); //#20897 + var _ao = $k[--$j]; //#20897 + var _ap = (_ao && (_an == -1)) ? 1 : 0; //#20897 + $k[$j++] = _ap; //#20898 + $k[$j++] = $_.mask; //#20898 + $k[$j++] = $_.i; //#20898 + $k[$j++] = $_.j; //#20898 + $_.qmv(); //#20898 + var _at = $k[--$j]; //#20898 + var _au = $k[--$j]; //#20898 + $put(_au, _at, $k[--$j]); //#20898 + } //#20898 + } //#20898 + $put($_.masks, $_.m, $_.mask); //#20901 + } //#20901 + var _b1 = $ne($_.format, "rmqr") ? 1 : 2; //#20905 + $_.posx = $f($_.cols - _b1); //#20905 + $_.posy = $f($_.rows - 1); //#20906 + $_.dir = -1; //#20907 + $_.col = 1; //#20908 + $_.num = 0; //#20909 + for (;;) { //#20932 + if ($_.posx < 0) { //#20911 + break; //#20911 + } //#20911 + $k[$j++] = $_.pixs; //#20912 + $k[$j++] = $_.posx; //#20912 + $k[$j++] = $_.posy; //#20912 + $_.qmv(); //#20912 + var _b7 = $k[--$j]; //#20912 + if ($get($k[--$j], _b7) == -1) { //#20916 + var _bC = $get($_.cws, ~~($_.num / 8)); //#20913 + var _bE = -(7 - ($_.num % 8)); //#20913 + $k[$j++] = ((_bE < 0 ? _bC >>> -_bE : _bC << _bE)) & 1; //#20914 + $k[$j++] = $_.pixs; //#20914 + $k[$j++] = $_.posx; //#20914 + $k[$j++] = $_.posy; //#20914 + $_.qmv(); //#20914 + var _bI = $k[--$j]; //#20914 + var _bJ = $k[--$j]; //#20914 + $put(_bJ, _bI, $k[--$j]); //#20914 + $_.num = $_.num + 1; //#20915 + } //#20915 + if ($_.col == 1) { //#20929 + $_.col = 0; //#20918 + $_.posx = $f($_.posx - 1); //#20919 + } else { //#20929 + $_.col = 1; //#20921 + $_.posx = $f($_.posx + 1); //#20922 + $_.posy = $f($_.posy + $_.dir); //#20923 + if (($_.posy < 0) || ($_.posy >= $_.rows)) { //#20930 + $_.dir = $_.dir * -1; //#20925 + $_.posy = $f($_.posy + $_.dir); //#20926 + $_.posx = $f($_.posx - 2); //#20927 + if ($eq($_.format, "full") && ($_.posx == 6)) { //#20929 + $_.posx = $f($_.posx - 1); //#20929 + } //#20929 + } //#20929 + } //#20929 + } //#20929 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#20654 - $k[$j++] = 'scr1'; //#20656 - $k[$j++] = 0; //#20656 - $forall($_.scrle, function() { //#20656 - var _bd = $k[--$j]; //#20656 - $k[$j++] = _bd; //#20656 - if (_bd >= 5) { //#20656 - var _be = $k[--$j]; //#20656 - var _bg = $f($f($k[--$j] + _be) - 2); //#20656 - $k[$j++] = _bg; //#20656 - $k[$j++] = _bg; //#20656 - } //#20656 - $j--; //#20656 - }); //#20656 - var _bh = $k[--$j]; //#20656 - $_[$k[--$j]] = _bh; //#20656 - $_.scr3 = 0; //#20658 - for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20673 - $_.j = _bl; //#20660 - if (($get($_.scrle, $_.j) % 3) == 0) { //#20672 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20662 - var _bu = $geti($_.scrle, $_.j - 2, 5); //#20663 - for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20663 - $k[$j++] = $get(_bu, _bv) == $_.fact; //#20663 - } //#20663 - var _bz = $k[--$j]; //#20663 - var _c0 = $k[--$j]; //#20663 - var _c1 = $k[--$j]; //#20663 - $k[$j++] = $an(_c0, _bz); //#20663 - $k[$j++] = _c1; //#20663 - $j--; //#20663 - var _c2 = $k[--$j]; //#20663 - var _c3 = $k[--$j]; //#20663 - var _c4 = $k[--$j]; //#20663 - if (_c4 && (_c3 && _c2)) { //#20671 - if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20668 - $_.scr3 = $_.scr3 + 40; //#20665 - } else { //#20668 - if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20669 - $_.scr3 = $_.scr3 + 40; //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - } //#20668 - $k[$j++] = $_.scr1; //#20674 - $k[$j++] = $_.scr3; //#20674 - }; //#20674 + $_.scrle = $k[--$j]; //#20936 + $k[$j++] = 'scr1'; //#20938 + $k[$j++] = 0; //#20938 + $forall($_.scrle, function() { //#20938 + var _bd = $k[--$j]; //#20938 + $k[$j++] = _bd; //#20938 + if (_bd >= 5) { //#20938 + var _be = $k[--$j]; //#20938 + var _bg = $f($f($k[--$j] + _be) - 2); //#20938 + $k[$j++] = _bg; //#20938 + $k[$j++] = _bg; //#20938 + } //#20938 + $j--; //#20938 + }); //#20938 + var _bh = $k[--$j]; //#20938 + $_[$k[--$j]] = _bh; //#20938 + $_.scr3 = 0; //#20940 + for (var _bl = 3, _bk = $_.scrle.length - 3; _bl <= _bk; _bl += 2) { //#20955 + $_.j = _bl; //#20942 + if (($get($_.scrle, $_.j) % 3) == 0) { //#20954 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#20944 + var _bu = $geti($_.scrle, $_.j - 2, 5); //#20945 + for (var _bv = 0, _bw = _bu.length; _bv < _bw; _bv++) { //#20945 + $k[$j++] = $get(_bu, _bv) == $_.fact; //#20945 + } //#20945 + var _bz = $k[--$j]; //#20945 + var _c0 = $k[--$j]; //#20945 + var _c1 = $k[--$j]; //#20945 + $k[$j++] = $an(_c0, _bz); //#20945 + $k[$j++] = _c1; //#20945 + $j--; //#20945 + var _c2 = $k[--$j]; //#20945 + var _c3 = $k[--$j]; //#20945 + var _c4 = $k[--$j]; //#20945 + if (_c4 && (_c3 && _c2)) { //#20953 + if (($_.j == 3) || (($_.j + 4) >= $_.scrle.length)) { //#20950 + $_.scr3 = $_.scr3 + 40; //#20947 + } else { //#20950 + if (($get($_.scrle, $_.j - 3) >= 4) || ($get($_.scrle, $_.j + 3) >= 4)) { //#20951 + $_.scr3 = $_.scr3 + 40; //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + } //#20950 + $k[$j++] = $_.scr1; //#20956 + $k[$j++] = $_.scr3; //#20956 + }; //#20956 $_.evalfull = function() { - $_.sym = $k[--$j]; //#20679 - $_.n1 = 0; //#20681 - $_.n2 = 0; //#20681 - $_.n3 = 0; //#20681 - $_.rle = $a($f($_.cols + 1)); //#20682 - $_.lastpairs = $a($_.cols); //#20683 - $_.thispairs = $a($_.cols); //#20684 - $_.colsadd1 = $f($_.cols + 1); //#20685 - for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#20724 - $_.i = _cS; //#20687 - $k[$j++] = Infinity; //#20690 - var _cU = $_.cols; //#20691 - $k[$j++] = 0; //#20693 - $k[$j++] = 0; //#20693 - for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20693 - var _cZ = $get($_.sym, _cW); //#20692 - var _ca = $k[--$j]; //#20692 - $k[$j++] = _cZ; //#20692 - if ($eq(_ca, _cZ)) { //#20692 - var _cb = $k[--$j]; //#20692 - var _cc = $k[--$j]; //#20692 - $k[$j++] = $f(_cc + 1); //#20692 - $k[$j++] = _cb; //#20692 - } else { //#20692 - var _cd = $k[--$j]; //#20692 - $k[$j++] = 1; //#20692 - $k[$j++] = _cd; //#20692 - } //#20692 - } //#20692 - $j--; //#20694 - var _cf = $counttomark() + 2; //#20695 - $astore($geti($_.rle, 0, _cf - 2)); //#20695 - $_.evalfulln1n3(); //#20696 - $_.n3 = $f($k[--$j] + $_.n3); //#20696 - $_.n1 = $f($k[--$j] + $_.n1); //#20696 - $j--; //#20697 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20700 - $k[$j++] = Infinity; //#20701 - var _cq = $_.symrow; //#20702 - $k[$j++] = 0; //#20704 - $k[$j++] = 0; //#20704 - for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20704 - var _ct = $get(_cq, _cr); //#20704 - var _cu = $k[--$j]; //#20703 - $k[$j++] = _ct; //#20703 - if ($eq(_cu, _ct)) { //#20703 - var _cv = $k[--$j]; //#20703 - var _cw = $k[--$j]; //#20703 - $k[$j++] = $f(_cw + 1); //#20703 - $k[$j++] = _cv; //#20703 - } else { //#20703 - var _cx = $k[--$j]; //#20703 - $k[$j++] = 1; //#20703 - $k[$j++] = _cx; //#20703 - } //#20703 - } //#20703 - $j--; //#20705 - var _cz = $counttomark() + 2; //#20706 - $astore($geti($_.rle, 0, _cz - 2)); //#20706 - $_.evalfulln1n3(); //#20707 - $_.n3 = $f($k[--$j] + $_.n3); //#20707 - $_.n1 = $f($k[--$j] + $_.n1); //#20707 - $j--; //#20708 - var _d5 = $_.thispairs; //#20711 - $_.thispairs = $_.lastpairs; //#20711 - $_.lastpairs = _d5; //#20711 - var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20712 - var _dA = $_.symrow; //#20713 - $k[$j++] = _d9; //#20713 - for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20713 - var _dD = $get(_dA, _dB); //#20713 - var _dE = $k[--$j]; //#20713 - $k[$j++] = $f(_dE + _dD); //#20713 - $k[$j++] = _dD; //#20713 - } //#20713 - $j--; //#20714 - $astore($_.thispairs); //#20715 - $j--; //#20715 - if ($_.i > 0) { //#20722 - $k[$j++] = Infinity; //#20717 - $aload($_.lastpairs); //#20718 - $aload($_.thispairs); //#20718 - $k[$j++] = $_.n2; //#20719 - for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#20719 - var _dN = $k[--$j]; //#20719 - var _dO = $k[--$j]; //#20719 - $k[$j++] = _dN; //#20719 - $k[$j++] = _dO; //#20719 - var _dQ = $k[$j - 1 - $_.colsadd1]; //#20719 - if (($f($k[--$j] + _dQ) & 3) == 0) { //#20719 - var _dS = $k[--$j]; //#20719 - $k[$j++] = $f(_dS + 3); //#20719 - } //#20719 - } //#20719 - $_.n2 = $k[--$j]; //#20720 - $cleartomark(); //#20721 - } //#20721 - } //#20721 - $k[$j++] = 'dark'; //#20727 - $k[$j++] = 0; //#20727 - $forall($_.sym, function() { //#20727 - var _dV = $k[--$j]; //#20727 - var _dW = $k[--$j]; //#20727 - $k[$j++] = $f(_dW + _dV); //#20727 - }); //#20727 - var _dX = $k[--$j]; //#20727 - $_[$k[--$j]] = _dX; //#20727 - var _da = $_.cols; //#20728 - $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#20728 - $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#20730 - }; //#20730 + $_.sym = $k[--$j]; //#20961 + $_.n1 = 0; //#20963 + $_.n2 = 0; //#20963 + $_.n3 = 0; //#20963 + $_.rle = $a($f($_.cols + 1)); //#20964 + $_.lastpairs = $a($_.cols); //#20965 + $_.thispairs = $a($_.cols); //#20966 + $_.colsadd1 = $f($_.cols + 1); //#20967 + for (var _cS = 0, _cR = $f($_.cols - 1); _cS <= _cR; _cS += 1) { //#21006 + $_.i = _cS; //#20969 + $k[$j++] = Infinity; //#20972 + var _cU = $_.cols; //#20973 + $k[$j++] = 0; //#20975 + $k[$j++] = 0; //#20975 + for (var _cW = $_.i, _cX = _cU, _cV = $f((_cU * _cU) - 1); _cX < 0 ? _cW >= _cV : _cW <= _cV; _cW += _cX) { //#20975 + var _cZ = $get($_.sym, _cW); //#20974 + var _ca = $k[--$j]; //#20974 + $k[$j++] = _cZ; //#20974 + if ($eq(_ca, _cZ)) { //#20974 + var _cb = $k[--$j]; //#20974 + var _cc = $k[--$j]; //#20974 + $k[$j++] = $f(_cc + 1); //#20974 + $k[$j++] = _cb; //#20974 + } else { //#20974 + var _cd = $k[--$j]; //#20974 + $k[$j++] = 1; //#20974 + $k[$j++] = _cd; //#20974 + } //#20974 + } //#20974 + $j--; //#20976 + var _cf = $counttomark() + 2; //#20977 + $astore($geti($_.rle, 0, _cf - 2)); //#20977 + $_.evalfulln1n3(); //#20978 + $_.n3 = $f($k[--$j] + $_.n3); //#20978 + $_.n1 = $f($k[--$j] + $_.n1); //#20978 + $j--; //#20979 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#20982 + $k[$j++] = Infinity; //#20983 + var _cq = $_.symrow; //#20984 + $k[$j++] = 0; //#20986 + $k[$j++] = 0; //#20986 + for (var _cr = 0, _cs = _cq.length; _cr < _cs; _cr++) { //#20986 + var _ct = $get(_cq, _cr); //#20986 + var _cu = $k[--$j]; //#20985 + $k[$j++] = _ct; //#20985 + if ($eq(_cu, _ct)) { //#20985 + var _cv = $k[--$j]; //#20985 + var _cw = $k[--$j]; //#20985 + $k[$j++] = $f(_cw + 1); //#20985 + $k[$j++] = _cv; //#20985 + } else { //#20985 + var _cx = $k[--$j]; //#20985 + $k[$j++] = 1; //#20985 + $k[$j++] = _cx; //#20985 + } //#20985 + } //#20985 + $j--; //#20987 + var _cz = $counttomark() + 2; //#20988 + $astore($geti($_.rle, 0, _cz - 2)); //#20988 + $_.evalfulln1n3(); //#20989 + $_.n3 = $f($k[--$j] + $_.n3); //#20989 + $_.n1 = $f($k[--$j] + $_.n1); //#20989 + $j--; //#20990 + var _d5 = $_.thispairs; //#20993 + $_.thispairs = $_.lastpairs; //#20993 + $_.lastpairs = _d5; //#20993 + var _d9 = ($get($_.symrow, 0) == 1) ? 0 : 1; //#20994 + var _dA = $_.symrow; //#20995 + $k[$j++] = _d9; //#20995 + for (var _dB = 0, _dC = _dA.length; _dB < _dC; _dB++) { //#20995 + var _dD = $get(_dA, _dB); //#20995 + var _dE = $k[--$j]; //#20995 + $k[$j++] = $f(_dE + _dD); //#20995 + $k[$j++] = _dD; //#20995 + } //#20995 + $j--; //#20996 + $astore($_.thispairs); //#20997 + $j--; //#20997 + if ($_.i > 0) { //#21004 + $k[$j++] = Infinity; //#20999 + $aload($_.lastpairs); //#21000 + $aload($_.thispairs); //#21000 + $k[$j++] = $_.n2; //#21001 + for (var _dL = 0, _dM = $_.cols; _dL < _dM; _dL++) { //#21001 + var _dN = $k[--$j]; //#21001 + var _dO = $k[--$j]; //#21001 + $k[$j++] = _dN; //#21001 + $k[$j++] = _dO; //#21001 + var _dQ = $k[$j - 1 - $_.colsadd1]; //#21001 + if (($f($k[--$j] + _dQ) & 3) == 0) { //#21001 + var _dS = $k[--$j]; //#21001 + $k[$j++] = $f(_dS + 3); //#21001 + } //#21001 + } //#21001 + $_.n2 = $k[--$j]; //#21002 + $cleartomark(); //#21003 + } //#21003 + } //#21003 + $k[$j++] = 'dark'; //#21009 + $k[$j++] = 0; //#21009 + $forall($_.sym, function() { //#21009 + var _dV = $k[--$j]; //#21009 + var _dW = $k[--$j]; //#21009 + $k[$j++] = $f(_dW + _dV); //#21009 + }); //#21009 + var _dX = $k[--$j]; //#21009 + $_[$k[--$j]] = _dX; //#21009 + var _da = $_.cols; //#21010 + $_.n4 = (~~((Math.abs($f((($_.dark * 100) / (_da * _da)) - 50))) / 5)) * 10; //#21010 + $k[$j++] = $f(($f($f($_.n1 + $_.n2) + $_.n3)) + $_.n4); //#21012 + }; //#21012 $_.evalmicro = function() { - $_.sym = $k[--$j]; //#20735 - $_.dkrhs = 0; //#20736 - $_.dkbot = 0; //#20736 - for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#20741 - $_.i = _di; //#20738 - $k[$j++] = 'dkrhs'; //#20739 - $k[$j++] = $_.dkrhs; //#20739 - $k[$j++] = $_.sym; //#20739 - $k[$j++] = $f($_.cols - 1); //#20739 - $k[$j++] = $_.i; //#20739 - $_.qmv(); //#20739 - var _dn = $k[--$j]; //#20739 - var _dp = $get($k[--$j], _dn); //#20739 - var _dq = $k[--$j]; //#20739 - $_[$k[--$j]] = $f(_dq + _dp); //#20739 - $k[$j++] = 'dkbot'; //#20740 - $k[$j++] = $_.dkbot; //#20740 - $k[$j++] = $_.sym; //#20740 - $k[$j++] = $_.i; //#20740 - $k[$j++] = $f($_.cols - 1); //#20740 - $_.qmv(); //#20740 - var _dw = $k[--$j]; //#20740 - var _dy = $get($k[--$j], _dw); //#20740 - var _dz = $k[--$j]; //#20740 - $_[$k[--$j]] = $f(_dz + _dy); //#20740 - } //#20740 - if ($_.dkrhs <= $_.dkbot) { //#20745 - $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#20743 - } else { //#20745 - $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#20745 - } //#20745 - }; //#20745 - $_.bestscore = 999999999; //#20750 - for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#20772 - $_.m = _e9; //#20752 - $_.masksym = $a($_.rows * $_.cols); //#20753 - for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#20757 - $_.i = _eG; //#20755 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#20756 - } //#20756 - if ($_.masks.length != 1) { //#20770 - if ($eq($_.format, "full")) { //#20762 - $k[$j++] = $_.masksym; //#20760 - $_.evalfull(); //#20760 - $_.score = $k[--$j]; //#20760 - } else { //#20762 - $k[$j++] = $_.masksym; //#20762 - $_.evalmicro(); //#20762 - $_.score = $k[--$j]; //#20762 - } //#20762 - if ($_.score < $_.bestscore) { //#20768 - $_.bestsym = $_.masksym; //#20765 - $_.bestmaskval = $_.m; //#20766 - $_.bestscore = $_.score; //#20767 - } //#20767 - } else { //#20770 - $_.bestsym = $_.masksym; //#20770 - } //#20770 - } //#20770 - $_.pixs = $_.bestsym; //#20773 - if ($eq($_.format, "full")) { //#20778 - $k[$j++] = $_.pixs; //#20777 - $k[$j++] = 8; //#20777 - $k[$j++] = $f($_.cols - 8); //#20777 - $_.qmv(); //#20777 - var _eh = $k[--$j]; //#20777 - $put($k[--$j], _eh, 1); //#20777 - } //#20777 - if (!bwipp_qrcode.__20814__) { //#20814 - $_ = Object.create($_); //#20814 - $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#20787 - $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#20793 - $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#20803 - $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#20813 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20813 - bwipp_qrcode.__20814__ = 1; //#20813 - $_ = Object.getPrototypeOf($_); //#20813 - } //#20813 - if ($eq($_.format, "full")) { //#20824 - $k[$j++] = 'ecid'; //#20816 - $search("MLHQ", $_.eclevel); //#20816 - $j--; //#20816 - var _eq = $k[--$j]; //#20816 - var _er = $k[--$j]; //#20816 - $k[$j++] = _eq.length; //#20816 - $k[$j++] = _er; //#20816 - $j--; //#20816 - var _es = $k[--$j]; //#20816 - var _et = $k[--$j]; //#20816 - $k[$j++] = _es; //#20816 - $k[$j++] = _et; //#20816 - $j--; //#20816 - var _eu = $k[--$j]; //#20816 - $_[$k[--$j]] = _eu; //#20816 - $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#20817 - for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#20823 - $_.i = _f2; //#20819 - $forall($get($_.formatmap, $_.i), function() { //#20822 - var _f7 = $k[--$j]; //#20821 - $k[$j++] = $_.pixs; //#20821 - $aload(_f7); //#20821 - $_.qmv(); //#20821 - var _f8 = $_.fmtval; //#20821 - var _fA = -(14 - $_.i); //#20821 - var _fB = $k[--$j]; //#20821 - $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#20821 - }); //#20821 - } //#20821 - } //#20821 - if ($eq($_.format, "micro")) { //#20832 - $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#20826 - $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#20827 - for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#20831 - $_.i = _fT; //#20829 - $k[$j++] = $_.pixs; //#20830 - $aload($get($get($_.formatmap, $_.i), 0)); //#20830 - $_.qmv(); //#20830 - var _fZ = $_.fmtval; //#20830 - var _fb = -(14 - $_.i); //#20830 - var _fc = $k[--$j]; //#20830 - $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#20830 - } //#20830 - } //#20830 - if ($eq($_.format, "rmqr")) { //#20842 - $k[$j++] = 'fmtvalu'; //#20834 - $search("MH", $_.eclevel); //#20834 - $j--; //#20834 - var _fg = $k[--$j]; //#20834 - var _fh = $k[--$j]; //#20834 - $k[$j++] = _fg.length; //#20834 - $k[$j++] = _fh; //#20834 - $j--; //#20834 - var _fi = $k[--$j]; //#20834 - var _fj = $k[--$j]; //#20834 - $k[$j++] = _fi; //#20834 - $k[$j++] = _fj; //#20834 - $j--; //#20834 - var _fk = $k[--$j]; //#20834 - $_[$k[--$j]] = (_fk << 5) + $_.verind; //#20834 - $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#20835 - $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#20836 - for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#20841 - $_.i = _fv; //#20838 - $k[$j++] = $_.pixs; //#20839 - $aload($get($get($_.formatmap, $_.i), 0)); //#20839 - $_.qmv(); //#20839 - var _g1 = $_.fmtval1; //#20839 - var _g3 = -(17 - $_.i); //#20839 - var _g4 = $k[--$j]; //#20839 - $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#20839 - $k[$j++] = $_.pixs; //#20840 - $aload($get($get($_.formatmap, $_.i), 1)); //#20840 - $_.qmv(); //#20840 - var _gB = $_.fmtval2; //#20840 - var _gD = -(17 - $_.i); //#20840 - var _gE = $k[--$j]; //#20840 - $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#20840 - } //#20840 - } //#20840 - if (!bwipp_qrcode.__20853__) { //#20853 - $_ = Object.create($_); //#20853 - $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#20852 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#20852 - bwipp_qrcode.__20853__ = 1; //#20852 - $_ = Object.getPrototypeOf($_); //#20852 - } //#20852 - if ($eq($_.format, "full") && ($_.cols >= 45)) { //#20862 - $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#20855 - for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#20861 - $_.i = _gP; //#20857 - $forall($get($_.versionmap, $_.i), function() { //#20860 - var _gU = $k[--$j]; //#20859 - $k[$j++] = $_.pixs; //#20859 - $forall(_gU); //#20859 - $_.qmv(); //#20859 - var _gV = $_.verval; //#20859 - var _gX = -(17 - $_.i); //#20859 - var _gY = $k[--$j]; //#20859 - $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#20859 - }); //#20859 - } //#20859 - } //#20859 - var _gg = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows * 2) / 72], - ["width", ($_.cols * 2) / 72], - ["opt", $_.options] - ]); //#20872 - $k[$j++] = _gg; //#20875 - if (!$_.dontdraw) { //#20875 - bwipp_renmatrix(); //#20875 - } //#20875 - $_ = Object.getPrototypeOf($_); //#20877 - $_ = Object.getPrototypeOf($_); //#20879 -} - + $_.sym = $k[--$j]; //#21017 + $_.dkrhs = 0; //#21018 + $_.dkbot = 0; //#21018 + for (var _di = 1, _dh = $f($_.cols - 1); _di <= _dh; _di += 1) { //#21023 + $_.i = _di; //#21020 + $k[$j++] = 'dkrhs'; //#21021 + $k[$j++] = $_.dkrhs; //#21021 + $k[$j++] = $_.sym; //#21021 + $k[$j++] = $f($_.cols - 1); //#21021 + $k[$j++] = $_.i; //#21021 + $_.qmv(); //#21021 + var _dn = $k[--$j]; //#21021 + var _dp = $get($k[--$j], _dn); //#21021 + var _dq = $k[--$j]; //#21021 + $_[$k[--$j]] = $f(_dq + _dp); //#21021 + $k[$j++] = 'dkbot'; //#21022 + $k[$j++] = $_.dkbot; //#21022 + $k[$j++] = $_.sym; //#21022 + $k[$j++] = $_.i; //#21022 + $k[$j++] = $f($_.cols - 1); //#21022 + $_.qmv(); //#21022 + var _dw = $k[--$j]; //#21022 + var _dy = $get($k[--$j], _dw); //#21022 + var _dz = $k[--$j]; //#21022 + $_[$k[--$j]] = $f(_dz + _dy); //#21022 + } //#21022 + if ($_.dkrhs <= $_.dkbot) { //#21027 + $k[$j++] = -(($_.dkrhs * 16) + $_.dkbot); //#21025 + } else { //#21027 + $k[$j++] = -(($_.dkbot * 16) + $_.dkrhs); //#21027 + } //#21027 + }; //#21027 + $_.bestscore = 999999999; //#21032 + for (var _e9 = 0, _e8 = $_.masks.length - 1; _e9 <= _e8; _e9 += 1) { //#21054 + $_.m = _e9; //#21034 + $_.masksym = $a($_.rows * $_.cols); //#21035 + for (var _eG = 0, _eF = $f(($_.rows * $_.cols) - 1); _eG <= _eF; _eG += 1) { //#21039 + $_.i = _eG; //#21037 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#21038 + } //#21038 + if ($_.masks.length != 1) { //#21052 + if ($eq($_.format, "full")) { //#21044 + $k[$j++] = $_.masksym; //#21042 + $_.evalfull(); //#21042 + $_.score = $k[--$j]; //#21042 + } else { //#21044 + $k[$j++] = $_.masksym; //#21044 + $_.evalmicro(); //#21044 + $_.score = $k[--$j]; //#21044 + } //#21044 + if ($_.score < $_.bestscore) { //#21050 + $_.bestsym = $_.masksym; //#21047 + $_.bestmaskval = $_.m; //#21048 + $_.bestscore = $_.score; //#21049 + } //#21049 + } else { //#21052 + $_.bestsym = $_.masksym; //#21052 + } //#21052 + } //#21052 + $_.pixs = $_.bestsym; //#21055 + if ($eq($_.format, "full")) { //#21060 + $k[$j++] = $_.pixs; //#21059 + $k[$j++] = 8; //#21059 + $k[$j++] = $f($_.cols - 8); //#21059 + $_.qmv(); //#21059 + var _eh = $k[--$j]; //#21059 + $put($k[--$j], _eh, 1); //#21059 + } //#21059 + if (!bwipp_qrcode.__21096__) { //#21096 + $_ = Object.create($_); //#21096 + $_.fmtvalsfull = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#21069 + $_.fmtvalsmicro = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#21075 + $_.fmtvalsrmqr1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#21085 + $_.fmtvalsrmqr2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#21095 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21095 + bwipp_qrcode.__21096__ = 1; //#21095 + $_ = Object.getPrototypeOf($_); //#21095 + } //#21095 + if ($eq($_.format, "full")) { //#21106 + $k[$j++] = 'ecid'; //#21098 + $search("MLHQ", $_.eclevel); //#21098 + $j--; //#21098 + var _eq = $k[--$j]; //#21098 + var _er = $k[--$j]; //#21098 + $k[$j++] = _eq.length; //#21098 + $k[$j++] = _er; //#21098 + $j--; //#21098 + var _es = $k[--$j]; //#21098 + var _et = $k[--$j]; //#21098 + $k[$j++] = _es; //#21098 + $k[$j++] = _et; //#21098 + $j--; //#21098 + var _eu = $k[--$j]; //#21098 + $_[$k[--$j]] = _eu; //#21098 + $_.fmtval = $get($_.fmtvalsfull, ($_.ecid << 3) + $_.bestmaskval); //#21099 + for (var _f2 = 0, _f1 = $_.formatmap.length - 1; _f2 <= _f1; _f2 += 1) { //#21105 + $_.i = _f2; //#21101 + $forall($get($_.formatmap, $_.i), function() { //#21104 + var _f7 = $k[--$j]; //#21103 + $k[$j++] = $_.pixs; //#21103 + $aload(_f7); //#21103 + $_.qmv(); //#21103 + var _f8 = $_.fmtval; //#21103 + var _fA = -(14 - $_.i); //#21103 + var _fB = $k[--$j]; //#21103 + $put($k[--$j], _fB, ((_fA < 0 ? _f8 >>> -_fA : _f8 << _fA)) & 1); //#21103 + }); //#21103 + } //#21103 + } //#21103 + if ($eq($_.format, "micro")) { //#21114 + $_.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($_.cols - 11) / 2)), $_.eclval); //#21108 + $_.fmtval = $get($_.fmtvalsmicro, ($_.symid << 2) + $_.bestmaskval); //#21109 + for (var _fT = 0, _fS = $_.formatmap.length - 1; _fT <= _fS; _fT += 1) { //#21113 + $_.i = _fT; //#21111 + $k[$j++] = $_.pixs; //#21112 + $aload($get($get($_.formatmap, $_.i), 0)); //#21112 + $_.qmv(); //#21112 + var _fZ = $_.fmtval; //#21112 + var _fb = -(14 - $_.i); //#21112 + var _fc = $k[--$j]; //#21112 + $put($k[--$j], _fc, ((_fb < 0 ? _fZ >>> -_fb : _fZ << _fb)) & 1); //#21112 + } //#21112 + } //#21112 + if ($eq($_.format, "rmqr")) { //#21124 + $k[$j++] = 'fmtvalu'; //#21116 + $search("MH", $_.eclevel); //#21116 + $j--; //#21116 + var _fg = $k[--$j]; //#21116 + var _fh = $k[--$j]; //#21116 + $k[$j++] = _fg.length; //#21116 + $k[$j++] = _fh; //#21116 + $j--; //#21116 + var _fi = $k[--$j]; //#21116 + var _fj = $k[--$j]; //#21116 + $k[$j++] = _fi; //#21116 + $k[$j++] = _fj; //#21116 + $j--; //#21116 + var _fk = $k[--$j]; //#21116 + $_[$k[--$j]] = (_fk << 5) + $_.verind; //#21116 + $_.fmtval1 = $get($_.fmtvalsrmqr1, $_.fmtvalu); //#21117 + $_.fmtval2 = $get($_.fmtvalsrmqr2, $_.fmtvalu); //#21118 + for (var _fv = 0, _fu = $_.formatmap.length - 1; _fv <= _fu; _fv += 1) { //#21123 + $_.i = _fv; //#21120 + $k[$j++] = $_.pixs; //#21121 + $aload($get($get($_.formatmap, $_.i), 0)); //#21121 + $_.qmv(); //#21121 + var _g1 = $_.fmtval1; //#21121 + var _g3 = -(17 - $_.i); //#21121 + var _g4 = $k[--$j]; //#21121 + $put($k[--$j], _g4, ((_g3 < 0 ? _g1 >>> -_g3 : _g1 << _g3)) & 1); //#21121 + $k[$j++] = $_.pixs; //#21122 + $aload($get($get($_.formatmap, $_.i), 1)); //#21122 + $_.qmv(); //#21122 + var _gB = $_.fmtval2; //#21122 + var _gD = -(17 - $_.i); //#21122 + var _gE = $k[--$j]; //#21122 + $put($k[--$j], _gE, ((_gD < 0 ? _gB >>> -_gD : _gB << _gD)) & 1); //#21122 + } //#21122 + } //#21122 + if (!bwipp_qrcode.__21135__) { //#21135 + $_ = Object.create($_); //#21135 + $_.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136944, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#21134 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_qrcode.$ctx[id] = $_[id]); //#21134 + bwipp_qrcode.__21135__ = 1; //#21134 + $_ = Object.getPrototypeOf($_); //#21134 + } //#21134 + if ($eq($_.format, "full") && ($_.cols >= 45)) { //#21144 + $_.verval = $get($_.vervals, (~~($f($_.cols - 17) / 4)) - 7); //#21137 + for (var _gP = 0, _gO = $_.versionmap.length - 1; _gP <= _gO; _gP += 1) { //#21143 + $_.i = _gP; //#21139 + $forall($get($_.versionmap, $_.i), function() { //#21142 + var _gU = $k[--$j]; //#21141 + $k[$j++] = $_.pixs; //#21141 + $forall(_gU); //#21141 + $_.qmv(); //#21141 + var _gV = $_.verval; //#21141 + var _gX = -(17 - $_.i); //#21141 + var _gY = $k[--$j]; //#21141 + $put($k[--$j], _gY, ((_gX < 0 ? _gV >>> -_gX : _gV << _gX)) & 1); //#21141 + }); //#21141 + } //#21141 + } //#21141 + $k[$j++] = Infinity; //#21147 + $k[$j++] = 'ren'; //#21154 + $k[$j++] = bwipp_renmatrix; //#21154 + $k[$j++] = 'pixs'; //#21154 + $k[$j++] = $_.pixs; //#21154 + $k[$j++] = 'pixx'; //#21154 + $k[$j++] = $_.cols; //#21154 + $k[$j++] = 'pixy'; //#21154 + $k[$j++] = $_.rows; //#21154 + $k[$j++] = 'height'; //#21154 + $k[$j++] = ($_.rows * 2) / 72; //#21154 + $k[$j++] = 'width'; //#21154 + $k[$j++] = ($_.cols * 2) / 72; //#21154 + $k[$j++] = 'borderleft'; //#21154 + if ($eq($_.format, "full")) { //#21154 + $k[$j++] = 4; //#21154 + } else { //#21154 + $k[$j++] = 2; //#21154 + } //#21154 + $k[$j++] = 'borderright'; //#21155 + if ($eq($_.format, "full")) { //#21155 + $k[$j++] = 4; //#21155 + } else { //#21155 + $k[$j++] = 2; //#21155 + } //#21155 + $k[$j++] = 'bordertop'; //#21156 + if ($eq($_.format, "full")) { //#21156 + $k[$j++] = 4; //#21156 + } else { //#21156 + $k[$j++] = 2; //#21156 + } //#21156 + $k[$j++] = 'borderbottom'; //#21157 + if ($eq($_.format, "full")) { //#21157 + $k[$j++] = 4; //#21157 + } else { //#21157 + $k[$j++] = 2; //#21157 + } //#21157 + $k[$j++] = 'opt'; //#21158 + $k[$j++] = $_.options; //#21158 + var _gk = $d(); //#21158 + $k[$j++] = _gk; //#21161 + if (!$_.dontdraw) { //#21161 + bwipp_renmatrix(); //#21161 + } //#21161 + $_ = Object.getPrototypeOf($_); //#21163 + $_ = Object.getPrototypeOf($_); //#21165 +} //bwipp_qrcode function bwipp_swissqrcode() { - $_ = Object.create($_); //#20909 - $_.dontdraw = false; //#20912 - $_.parse = false; //#20913 - $k[$j++] = $_; //#20915 - bwipp_processoptions(); //#20915 - $_.options = $k[--$j]; //#20915 - $_.barcode = $k[--$j]; //#20916 + $_ = Object.create($_); //#21195 + $_.dontdraw = false; //#21198 + $_.parse = false; //#21199 + $k[$j++] = $_; //#21201 + bwipp_processoptions(); //#21201 + $_.options = $k[--$j]; //#21201 + $_.barcode = $k[--$j]; //#21202 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#20922 - $_.fncvals = _3; //#20923 - $k[$j++] = 'barcode'; //#20924 - $k[$j++] = $_.barcode; //#20924 - $k[$j++] = $_.fncvals; //#20924 - bwipp_parseinput(); //#20924 - var _6 = $k[--$j]; //#20924 - $_[$k[--$j]] = _6; //#20924 - $_.barlen = $_.barcode.length; //#20925 - delete $_.options["parse"]; //#20926 - if ($_.barcode.length > 997) { //#20931 - $k[$j++] = 'bwipp.swissqrcodeBadLength#20930'; //#20930 - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#20930 - bwipp_raiseerror(); //#20930 - } //#20930 - $put($_.options, "dontdraw", true); //#20934 - $k[$j++] = 'args'; //#20935 - $k[$j++] = $_.barcode; //#20935 - $k[$j++] = $_.options; //#20935 - bwipp_qrcode(); //#20935 - var _E = $k[--$j]; //#20935 - $_[$k[--$j]] = _E; //#20935 - $put($_.args, "opt", $_.options); //#20937 - $k[$j++] = $_.args; //#21006 - if (!$_.dontdraw) { //#21006 - $$.save(); //#20951 - var _K = $$.currpos(); //#20952 - $$.translate(_K.x, _K.y); //#20952 - var _L = 72 / 25.4; //#20953 - $$.scale(_L, _L); //#20953 - $$.save(); //#20956 - $$.newpath(); //#20957 - $$.moveto(0, 0); //#20958 - $$.lineto(46, 0); //#20959 - $$.lineto(46, 46); //#20960 - $$.lineto(0, 46); //#20961 - $$.closepath(); //#20962 - $$.moveto(19.5, 19.5); //#20963 - $$.lineto(19.5, 26.5); //#20964 - $$.lineto(26.5, 26.5); //#20965 - $$.lineto(26.5, 19.5); //#20966 - $$.closepath(); //#20967 - $$.clip(); //#20968 - $$.save(); //#20971 - $$.moveto(0, 0); //#20972 - var _O = (46 / $get($_.args, "pixx")) / 2; //#20973 - $$.scale(_O, _O); //#20973 - bwipp_renmatrix(); //#20974 - $$.restore(); //#20975 - $$.restore(); //#20977 - $$.translate(19.5, 19.5); //#20980 - var _P = 7 / 83; //#20981 - $$.scale(_P, _P); //#20981 - $$.newpath(); //#20983 - $$.moveto(6, 6); //#20984 - $$.lineto(6, 77); //#20985 - $$.lineto(77, 77); //#20986 - $$.lineto(77, 6); //#20987 - $$.closepath(); //#20988 - $$.moveto(49, 18); //#20989 - $$.lineto(49, 34); //#20990 - $$.lineto(65, 34); //#20991 - $$.lineto(65, 49); //#20992 - $$.lineto(49, 49); //#20993 - $$.lineto(49, 65); //#20994 - $$.lineto(34, 65); //#20995 - $$.lineto(34, 49); //#20996 - $$.lineto(18, 49); //#20997 - $$.lineto(18, 34); //#20998 - $$.lineto(34, 34); //#20999 - $$.lineto(34, 18); //#21000 - $$.closepath(); //#21001 - $$.setrgbcolor(0, 0, 0); //#21002 - $$.fill(); //#21002 - $$.restore(); //#21004 - } //#21004 - $_ = Object.getPrototypeOf($_); //#21008 -} - + ]); //#21208 + $_.fncvals = _3; //#21209 + $k[$j++] = 'barcode'; //#21210 + $k[$j++] = $_.barcode; //#21210 + $k[$j++] = $_.fncvals; //#21210 + bwipp_parseinput(); //#21210 + var _6 = $k[--$j]; //#21210 + $_[$k[--$j]] = _6; //#21210 + $_.barlen = $_.barcode.length; //#21211 + delete $_.options["parse"]; //#21212 + if ($_.barcode.length > 997) { //#21217 + $k[$j++] = 'bwipp.swissqrcodeBadLength#21216'; //#21216 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#21216 + bwipp_raiseerror(); //#21216 + } //#21216 + $put($_.options, "dontdraw", true); //#21220 + $k[$j++] = 'args'; //#21221 + $k[$j++] = $_.barcode; //#21221 + $k[$j++] = $_.options; //#21221 + bwipp_qrcode(); //#21221 + var _E = $k[--$j]; //#21221 + $_[$k[--$j]] = _E; //#21221 + $put($_.args, "opt", $_.options); //#21223 + $k[$j++] = $_.args; //#21292 + if (!$_.dontdraw) { //#21292 + $$.save(); //#21237 + var _K = $$.currpos(); //#21238 + $$.translate(_K.x, _K.y); //#21238 + var _L = 72 / 25.4; //#21239 + $$.scale(_L, _L); //#21239 + $$.save(); //#21242 + $$.newpath(); //#21243 + $$.moveto(0, 0); //#21244 + $$.lineto(46, 0); //#21245 + $$.lineto(46, 46); //#21246 + $$.lineto(0, 46); //#21247 + $$.closepath(); //#21248 + $$.moveto(19.5, 19.5); //#21249 + $$.lineto(19.5, 26.5); //#21250 + $$.lineto(26.5, 26.5); //#21251 + $$.lineto(26.5, 19.5); //#21252 + $$.closepath(); //#21253 + $$.clip(); //#21254 + $$.save(); //#21257 + $$.moveto(0, 0); //#21258 + var _O = (46 / $get($_.args, "pixx")) / 2; //#21259 + $$.scale(_O, _O); //#21259 + bwipp_renmatrix(); //#21260 + $$.restore(); //#21261 + $$.restore(); //#21263 + $$.translate(19.5, 19.5); //#21266 + var _P = 7 / 83; //#21267 + $$.scale(_P, _P); //#21267 + $$.newpath(); //#21269 + $$.moveto(6, 6); //#21270 + $$.lineto(6, 77); //#21271 + $$.lineto(77, 77); //#21272 + $$.lineto(77, 6); //#21273 + $$.closepath(); //#21274 + $$.moveto(49, 18); //#21275 + $$.lineto(49, 34); //#21276 + $$.lineto(65, 34); //#21277 + $$.lineto(65, 49); //#21278 + $$.lineto(49, 49); //#21279 + $$.lineto(49, 65); //#21280 + $$.lineto(34, 65); //#21281 + $$.lineto(34, 49); //#21282 + $$.lineto(18, 49); //#21283 + $$.lineto(18, 34); //#21284 + $$.lineto(34, 34); //#21285 + $$.lineto(34, 18); //#21286 + $$.closepath(); //#21287 + $$.setrgbcolor(0, 0, 0); //#21288 + $$.fill(); //#21288 + $$.restore(); //#21290 + } //#21290 + $_ = Object.getPrototypeOf($_); //#21294 +} //bwipp_swissqrcode function bwipp_microqrcode() { - $_ = Object.create($_); //#21037 - $_.dontdraw = false; //#21040 - $k[$j++] = $_; //#21042 - bwipp_processoptions(); //#21042 - $_.options = $k[--$j]; //#21042 - $_.barcode = $k[--$j]; //#21043 - $put($_.options, "dontdraw", true); //#21046 - $put($_.options, "format", "micro"); //#21047 - $k[$j++] = 'args'; //#21049 - $k[$j++] = $_.barcode; //#21049 - $k[$j++] = $_.options; //#21049 - bwipp_qrcode(); //#21049 - var _6 = $k[--$j]; //#21049 - $_[$k[--$j]] = _6; //#21049 - $put($_.args, "opt", $_.options); //#21051 - $k[$j++] = $_.args; //#21054 - if (!$_.dontdraw) { //#21054 - bwipp_renmatrix(); //#21054 - } //#21054 - $_ = Object.getPrototypeOf($_); //#21056 -} - + $_ = Object.create($_); //#21323 + $_.dontdraw = false; //#21326 + $k[$j++] = $_; //#21328 + bwipp_processoptions(); //#21328 + $_.options = $k[--$j]; //#21328 + $_.barcode = $k[--$j]; //#21329 + $put($_.options, "dontdraw", true); //#21332 + $put($_.options, "format", "micro"); //#21333 + $k[$j++] = 'args'; //#21335 + $k[$j++] = $_.barcode; //#21335 + $k[$j++] = $_.options; //#21335 + bwipp_qrcode(); //#21335 + var _6 = $k[--$j]; //#21335 + $_[$k[--$j]] = _6; //#21335 + $put($_.args, "opt", $_.options); //#21337 + $k[$j++] = $_.args; //#21340 + if (!$_.dontdraw) { //#21340 + bwipp_renmatrix(); //#21340 + } //#21340 + $_ = Object.getPrototypeOf($_); //#21342 +} //bwipp_microqrcode function bwipp_rectangularmicroqrcode() { - $_ = Object.create($_); //#21085 - $_.dontdraw = false; //#21088 - $k[$j++] = $_; //#21090 - bwipp_processoptions(); //#21090 - $_.options = $k[--$j]; //#21090 - $_.barcode = $k[--$j]; //#21091 - $put($_.options, "dontdraw", true); //#21094 - $put($_.options, "format", "rmqr"); //#21095 - $k[$j++] = 'args'; //#21097 - $k[$j++] = $_.barcode; //#21097 - $k[$j++] = $_.options; //#21097 - bwipp_qrcode(); //#21097 - var _6 = $k[--$j]; //#21097 - $_[$k[--$j]] = _6; //#21097 - $put($_.args, "opt", $_.options); //#21099 - $k[$j++] = $_.args; //#21102 - if (!$_.dontdraw) { //#21102 - bwipp_renmatrix(); //#21102 - } //#21102 - $_ = Object.getPrototypeOf($_); //#21104 -} - + $_ = Object.create($_); //#21371 + $_.dontdraw = false; //#21374 + $k[$j++] = $_; //#21376 + bwipp_processoptions(); //#21376 + $_.options = $k[--$j]; //#21376 + $_.barcode = $k[--$j]; //#21377 + $put($_.options, "dontdraw", true); //#21380 + $put($_.options, "format", "rmqr"); //#21381 + $k[$j++] = 'args'; //#21383 + $k[$j++] = $_.barcode; //#21383 + $k[$j++] = $_.options; //#21383 + bwipp_qrcode(); //#21383 + var _6 = $k[--$j]; //#21383 + $_[$k[--$j]] = _6; //#21383 + $put($_.args, "opt", $_.options); //#21385 + $k[$j++] = $_.args; //#21388 + if (!$_.dontdraw) { //#21388 + bwipp_renmatrix(); //#21388 + } //#21388 + $_ = Object.getPrototypeOf($_); //#21390 +} //bwipp_rectangularmicroqrcode function bwipp_maxicode() { - $_ = Object.create($_); //#21135 - $_.dontdraw = false; //#21138 - $_.mode = -1; //#21139 - $_.sam = -1; //#21140 - $_.parse = false; //#21141 - $_.parsefnc = false; //#21142 - $k[$j++] = $_; //#21144 - bwipp_processoptions(); //#21144 - $_.options = $k[--$j]; //#21144 - $_.barcode = $k[--$j]; //#21145 - if ($eq($_.barcode, "")) { //#21149 - $k[$j++] = 'bwipp.maxicodeEmptyData#21148'; //#21148 - $k[$j++] = "The data must not be empty"; //#21148 - bwipp_raiseerror(); //#21148 - } //#21148 - if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21153 - $k[$j++] = 'bwipp.maxicodeBadMode#21152'; //#21152 - $k[$j++] = "Mode must be 2 to 6"; //#21152 - bwipp_raiseerror(); //#21152 - } //#21152 - if ($_.sam != -1) { //#21165 - $k[$j++] = true; //#21161 - for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21161 - var _9 = $_.sam; //#21158 - if ((_9 < 12) || (_9 > 88)) { //#21158 - $j--; //#21158 - $k[$j++] = false; //#21158 - break; //#21158 - } //#21158 - var _B = $_.sam % 10; //#21159 - if ((_B < 2) || (_B > 8)) { //#21159 - $j--; //#21159 - $k[$j++] = false; //#21159 - break; //#21159 - } //#21159 - if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21160 - $j--; //#21160 - $k[$j++] = false; //#21160 - break; //#21160 - } //#21160 - } //#21160 - if ($nt($k[--$j])) { //#21164 - $k[$j++] = 'bwipp.maxicodeBadSAM#21163'; //#21163 - $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21163 - bwipp_raiseerror(); //#21163 - } //#21163 - } //#21163 - bwipp_loadctx(bwipp_maxicode) //#21167 + $_ = Object.create($_); //#21421 + $_.dontdraw = false; //#21424 + $_.mode = -1; //#21425 + $_.sam = -1; //#21426 + $_.parse = false; //#21427 + $_.parsefnc = false; //#21428 + $k[$j++] = $_; //#21430 + bwipp_processoptions(); //#21430 + $_.options = $k[--$j]; //#21430 + $_.barcode = $k[--$j]; //#21431 + if ($eq($_.barcode, "")) { //#21435 + $k[$j++] = 'bwipp.maxicodeEmptyData#21434'; //#21434 + $k[$j++] = "The data must not be empty"; //#21434 + bwipp_raiseerror(); //#21434 + } //#21434 + if (($_.mode != -1) && (($_.mode < 2) || ($_.mode > 6))) { //#21439 + $k[$j++] = 'bwipp.maxicodeBadMode#21438'; //#21438 + $k[$j++] = "Mode must be 2 to 6"; //#21438 + bwipp_raiseerror(); //#21438 + } //#21438 + if ($_.sam != -1) { //#21451 + $k[$j++] = true; //#21447 + for (var _7 = 0, _8 = 1; _7 < _8; _7++) { //#21447 + var _9 = $_.sam; //#21444 + if ((_9 < 12) || (_9 > 88)) { //#21444 + $j--; //#21444 + $k[$j++] = false; //#21444 + break; //#21444 + } //#21444 + var _B = $_.sam % 10; //#21445 + if ((_B < 2) || (_B > 8)) { //#21445 + $j--; //#21445 + $k[$j++] = false; //#21445 + break; //#21445 + } //#21445 + if ((~~($_.sam / 10)) > ($_.sam % 10)) { //#21446 + $j--; //#21446 + $k[$j++] = false; //#21446 + break; //#21446 + } //#21446 + } //#21446 + if ($nt($k[--$j])) { //#21450 + $k[$j++] = 'bwipp.maxicodeBadSAM#21449'; //#21449 + $k[$j++] = "SAM must be formatted as \"NM\" for Nth of M symbols, from 2 to 8 symbols"; //#21449 + bwipp_raiseerror(); //#21449 + } //#21449 + } //#21449 + bwipp_loadctx(bwipp_maxicode) //#21453 var _H = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true] - ]); //#21173 - $_.fncvals = _H; //#21175 - $k[$j++] = 'msg'; //#21176 - $k[$j++] = $_.barcode; //#21176 - $k[$j++] = $_.fncvals; //#21176 - bwipp_parseinput(); //#21176 - var _K = $k[--$j]; //#21176 - $_[$k[--$j]] = _K; //#21176 - $_.msglen = $_.msg.length; //#21177 - if (($_.mode == 2) || ($_.mode == 3)) { //#21265 - $_.barcode = $s($_.msglen); //#21183 - for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21189 - $_.i = _T; //#21185 - if ($get($_.msg, $_.i) > 0) { //#21188 - $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21187 - } //#21187 - } //#21187 - $_.barlen = $_.barcode.length; //#21190 - $_.fid = ""; //#21193 - if ($_.barlen >= 7) { //#21199 - if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21198 - $_.fid = $geti($_.barcode, 0, 9); //#21196 - $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21197 - } //#21197 - } //#21197 - $search($_.barcode, "\x1d"); //#21203 - if ($k[--$j]) { //#21225 - $_.pcode = $k[--$j]; //#21204 - $j--; //#21204 - if ($_.mode == 2) { //#21220 - $k[$j++] = true; //#21210 - for (var _p = 0, _q = 1; _p < _q; _p++) { //#21210 - if ($_.pcode.length > 9) { //#21208 - $j--; //#21208 - $k[$j++] = false; //#21208 - break; //#21208 - } //#21208 - $forall($_.pcode, function() { //#21209 - var _t = $k[--$j]; //#21209 - if ((_t < 48) || (_t > 57)) { //#21209 - $j--; //#21209 - $k[$j++] = false; //#21209 - return true; //#21209 - } //#21209 - }); //#21209 - } //#21209 - if ($nt($k[--$j])) { //#21213 - $j--; //#21212 - $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21212'; //#21212 - $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21212 - bwipp_raiseerror(); //#21212 - } //#21212 - } else { //#21220 - $forall($_.pcode, function() { //#21222 - var _w = $k[--$j]; //#21216 - if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21221 - $j--; //#21220 - $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21220'; //#21220 - $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21220 - bwipp_raiseerror(); //#21220 - } //#21220 - }); //#21220 - } //#21220 - } else { //#21225 - $j--; //#21225 - $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21225'; //#21225 - $k[$j++] = "Expected postcode followed by group separator character"; //#21225 - bwipp_raiseerror(); //#21225 - } //#21225 - $search($k[--$j], "\x1d"); //#21227 - if ($k[--$j]) { //#21238 - $_.ccode = $k[--$j]; //#21228 - $j--; //#21228 - $k[$j++] = true; //#21233 - for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21233 - if ($_.ccode.length != 3) { //#21231 - $j--; //#21231 - $k[$j++] = false; //#21231 - break; //#21231 - } //#21231 - $forall($_.ccode, function() { //#21232 - var _14 = $k[--$j]; //#21232 - if ((_14 < 48) || (_14 > 57)) { //#21232 - $j--; //#21232 - $k[$j++] = false; //#21232 - return true; //#21232 - } //#21232 - }); //#21232 - } //#21232 - if ($nt($k[--$j])) { //#21236 - $j--; //#21235 - $k[$j++] = 'bwipp.maxicodeBadCountryCode#21235'; //#21235 - $k[$j++] = "Country code must be three digits"; //#21235 - bwipp_raiseerror(); //#21235 - } //#21235 - } else { //#21238 - $j--; //#21238 - $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21238'; //#21238 - $k[$j++] = "Expected country code followed by group separator character"; //#21238 - bwipp_raiseerror(); //#21238 - } //#21238 - $search($k[--$j], "\x1d"); //#21240 - if ($k[--$j]) { //#21251 - $_.scode = $k[--$j]; //#21241 - $j--; //#21241 - $k[$j++] = true; //#21246 - for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21246 - if ($_.scode.length != 3) { //#21244 - $j--; //#21244 - $k[$j++] = false; //#21244 - break; //#21244 - } //#21244 - $forall($_.scode, function() { //#21245 - var _1D = $k[--$j]; //#21245 - if ((_1D < 48) || (_1D > 57)) { //#21245 - $j--; //#21245 - $k[$j++] = false; //#21245 - return true; //#21245 - } //#21245 - }); //#21245 - } //#21245 - if ($nt($k[--$j])) { //#21249 - $j--; //#21248 - $k[$j++] = 'bwipp.maxicodeBadServiceClass#21248'; //#21248 - $k[$j++] = "Service class must be three digits"; //#21248 - bwipp_raiseerror(); //#21248 - } //#21248 - } else { //#21251 - $j--; //#21251 - $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21251'; //#21251 - $k[$j++] = "Expected service class followed by group separator character"; //#21251 - bwipp_raiseerror(); //#21251 - } //#21251 - $_.barcode = $k[--$j]; //#21253 - var _1I = $s($_.barcode.length + $_.fid.length); //#21256 - $puti(_1I, 0, $_.fid); //#21257 - $puti(_1I, $_.fid.length, $_.barcode); //#21258 - $_.barcode = _1I; //#21259 - $_.barlen = $_.barcode.length; //#21260 - $k[$j++] = Infinity; //#21262 - var _1N = $_.barcode; //#21262 - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21262 - $k[$j++] = $get(_1N, _1O); //#21262 - } //#21262 - $_.msg = $a(); //#21262 - $_.msglen = $_.msg.length; //#21263 - } //#21263 - if (!bwipp_maxicode.__21361__) { //#21361 - $_ = Object.create($_); //#21361 - $_.eci = -1; //#21269 - $_.pad = -2; //#21269 - $_.ns = -3; //#21269 - $_.la = -4; //#21270 - $_.lb = -5; //#21270 - $_.sa = -6; //#21271 - $_.sb = -7; //#21271 - $_.sc = -8; //#21271 - $_.sd = -9; //#21271 - $_.se = -10; //#21271 - $_.sa2 = -11; //#21272 - $_.sa3 = -12; //#21272 - $_.lkc = -13; //#21273 - $_.lkd = -14; //#21273 - $_.lke = -15; //#21273 - $_.pd2 = -16; //#21274 - $_.pd3 = -17; //#21274 - $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21343 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21346 - for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21355 - $_.i = _3G; //#21348 - $_.encs = $get($_.charmaps, $_.i); //#21349 - for (var _3K = 0; _3K <= 4; _3K += 1) { //#21354 - $_.j = _3K; //#21351 - var _3N = $get($_.encs, $_.j); //#21352 - $k[$j++] = _3N; //#21352 - if ($eq($type(_3N), 'stringtype')) { //#21352 - var _3Q = $get($k[--$j], 0); //#21352 - $k[$j++] = _3Q; //#21352 - } //#21352 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21353 - } //#21353 - } //#21353 - $_.seta = $get($_.charvals, 0); //#21356 - $_.setb = $get($_.charvals, 1); //#21357 - $_.setc = $get($_.charvals, 2); //#21358 - $_.setd = $get($_.charvals, 3); //#21359 - $_.sete = $get($_.charvals, 4); //#21360 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21360 - bwipp_maxicode.__21361__ = 1; //#21360 - $_ = Object.getPrototypeOf($_); //#21360 - } //#21360 - $k[$j++] = Infinity; //#21364 - for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21364 - $k[$j++] = 0; //#21364 - } //#21364 - $_.nseq = $a(); //#21364 - for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21372 - $_.i = _3m; //#21366 - var _3p = $get($_.msg, $_.i); //#21367 - if ((_3p >= 48) && (_3p <= 57)) { //#21370 - $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21368 - } else { //#21370 - $put($_.nseq, $_.i, 0); //#21370 - } //#21370 - } //#21370 - $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21373 + ]); //#21459 + $_.fncvals = _H; //#21461 + $k[$j++] = 'msg'; //#21462 + $k[$j++] = $_.barcode; //#21462 + $k[$j++] = $_.fncvals; //#21462 + bwipp_parseinput(); //#21462 + var _K = $k[--$j]; //#21462 + $_[$k[--$j]] = _K; //#21462 + $_.msglen = $_.msg.length; //#21463 + if (($_.mode == 2) || ($_.mode == 3)) { //#21551 + $_.barcode = $s($_.msglen); //#21469 + for (var _T = 0, _S = $_.msglen - 1; _T <= _S; _T += 1) { //#21475 + $_.i = _T; //#21471 + if ($get($_.msg, $_.i) > 0) { //#21474 + $put($_.barcode, $_.i, $get($_.msg, $_.i)); //#21473 + } //#21473 + } //#21473 + $_.barlen = $_.barcode.length; //#21476 + $_.fid = ""; //#21479 + if ($_.barlen >= 7) { //#21485 + if ($eq($geti($_.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#21484 + $_.fid = $geti($_.barcode, 0, 9); //#21482 + $_.barcode = $geti($_.barcode, 9, $_.barlen - 9); //#21483 + } //#21483 + } //#21483 + $search($_.barcode, "\x1d"); //#21489 + if ($k[--$j]) { //#21511 + $_.pcode = $k[--$j]; //#21490 + $j--; //#21490 + if ($_.mode == 2) { //#21506 + $k[$j++] = true; //#21496 + for (var _p = 0, _q = 1; _p < _q; _p++) { //#21496 + if ($_.pcode.length > 9) { //#21494 + $j--; //#21494 + $k[$j++] = false; //#21494 + break; //#21494 + } //#21494 + $forall($_.pcode, function() { //#21495 + var _t = $k[--$j]; //#21495 + if ((_t < 48) || (_t > 57)) { //#21495 + $j--; //#21495 + $k[$j++] = false; //#21495 + return true; //#21495 + } //#21495 + }); //#21495 + } //#21495 + if ($nt($k[--$j])) { //#21499 + $j--; //#21498 + $k[$j++] = 'bwipp.maxicodeBadMode2PostCode#21498'; //#21498 + $k[$j++] = "A mode 2 postcode must not exceed 9 digits"; //#21498 + bwipp_raiseerror(); //#21498 + } //#21498 + } else { //#21506 + $forall($_.pcode, function() { //#21508 + var _w = $k[--$j]; //#21502 + if (!((_w == 32) || (((_w >= 34) && (_w <= 58)) || ((_w >= 65) && (_w <= 90))))) { //#21507 + $j--; //#21506 + $k[$j++] = 'bwipp.maxicodeBadMode3PostCode#21506'; //#21506 + $k[$j++] = "A mode 3 postcode must not exceed 6 characters"; //#21506 + bwipp_raiseerror(); //#21506 + } //#21506 + }); //#21506 + } //#21506 + } else { //#21511 + $j--; //#21511 + $k[$j++] = 'bwipp.maxicodeExpectedPostCode#21511'; //#21511 + $k[$j++] = "Expected postcode followed by group separator character"; //#21511 + bwipp_raiseerror(); //#21511 + } //#21511 + $search($k[--$j], "\x1d"); //#21513 + if ($k[--$j]) { //#21524 + $_.ccode = $k[--$j]; //#21514 + $j--; //#21514 + $k[$j++] = true; //#21519 + for (var _10 = 0, _11 = 1; _10 < _11; _10++) { //#21519 + if ($_.ccode.length != 3) { //#21517 + $j--; //#21517 + $k[$j++] = false; //#21517 + break; //#21517 + } //#21517 + $forall($_.ccode, function() { //#21518 + var _14 = $k[--$j]; //#21518 + if ((_14 < 48) || (_14 > 57)) { //#21518 + $j--; //#21518 + $k[$j++] = false; //#21518 + return true; //#21518 + } //#21518 + }); //#21518 + } //#21518 + if ($nt($k[--$j])) { //#21522 + $j--; //#21521 + $k[$j++] = 'bwipp.maxicodeBadCountryCode#21521'; //#21521 + $k[$j++] = "Country code must be three digits"; //#21521 + bwipp_raiseerror(); //#21521 + } //#21521 + } else { //#21524 + $j--; //#21524 + $k[$j++] = 'bwipp.maxicodeExpectedCountryCode#21524'; //#21524 + $k[$j++] = "Expected country code followed by group separator character"; //#21524 + bwipp_raiseerror(); //#21524 + } //#21524 + $search($k[--$j], "\x1d"); //#21526 + if ($k[--$j]) { //#21537 + $_.scode = $k[--$j]; //#21527 + $j--; //#21527 + $k[$j++] = true; //#21532 + for (var _19 = 0, _1A = 1; _19 < _1A; _19++) { //#21532 + if ($_.scode.length != 3) { //#21530 + $j--; //#21530 + $k[$j++] = false; //#21530 + break; //#21530 + } //#21530 + $forall($_.scode, function() { //#21531 + var _1D = $k[--$j]; //#21531 + if ((_1D < 48) || (_1D > 57)) { //#21531 + $j--; //#21531 + $k[$j++] = false; //#21531 + return true; //#21531 + } //#21531 + }); //#21531 + } //#21531 + if ($nt($k[--$j])) { //#21535 + $j--; //#21534 + $k[$j++] = 'bwipp.maxicodeBadServiceClass#21534'; //#21534 + $k[$j++] = "Service class must be three digits"; //#21534 + bwipp_raiseerror(); //#21534 + } //#21534 + } else { //#21537 + $j--; //#21537 + $k[$j++] = 'bwipp.maxicodeExpectedServiceClass#21537'; //#21537 + $k[$j++] = "Expected service class followed by group separator character"; //#21537 + bwipp_raiseerror(); //#21537 + } //#21537 + $_.barcode = $k[--$j]; //#21539 + var _1I = $s($_.barcode.length + $_.fid.length); //#21542 + $puti(_1I, 0, $_.fid); //#21543 + $puti(_1I, $_.fid.length, $_.barcode); //#21544 + $_.barcode = _1I; //#21545 + $_.barlen = $_.barcode.length; //#21546 + $k[$j++] = Infinity; //#21548 + var _1N = $_.barcode; //#21548 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#21548 + $k[$j++] = $get(_1N, _1O); //#21548 + } //#21548 + $_.msg = $a(); //#21548 + $_.msglen = $_.msg.length; //#21549 + } //#21549 + if (!bwipp_maxicode.__21647__) { //#21647 + $_ = Object.create($_); //#21647 + $_.eci = -1; //#21555 + $_.pad = -2; //#21555 + $_.ns = -3; //#21555 + $_.la = -4; //#21556 + $_.lb = -5; //#21556 + $_.sa = -6; //#21557 + $_.sb = -7; //#21557 + $_.sc = -8; //#21557 + $_.sd = -9; //#21557 + $_.se = -10; //#21557 + $_.sa2 = -11; //#21558 + $_.sa3 = -12; //#21558 + $_.lkc = -13; //#21559 + $_.lkd = -14; //#21559 + $_.lke = -15; //#21559 + $_.pd2 = -16; //#21560 + $_.pd3 = -17; //#21560 + $_.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$_.eci, $_.eci, $_.eci, $_.eci, $_.eci]), $a([28, 28, 28, 28, $_.pad]), $a([29, 29, 29, 29, $_.pad]), $a([30, 30, 30, 30, 27]), $a([$_.ns, $_.ns, $_.ns, $_.ns, $_.ns]), $a([" ", "{", 219, 251, 28]), $a([$_.pad, $_.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $_.pd2, 135, 146, 156]), $a(["8", $_.sa2, 136, 147, 157]), $a(["9", $_.sa3, 137, 148, 158]), $a([":", $_.pd3, $_.la, $_.la, $_.la]), $a([$_.sb, $_.sa, " ", " ", " "]), $a([$_.sc, $_.sc, $_.lkc, $_.sc, $_.sc]), $a([$_.sd, $_.sd, $_.sd, $_.lkd, $_.sd]), $a([$_.se, $_.se, $_.se, $_.se, $_.lke]), $a([$_.lb, $_.la, $_.lb, $_.lb, $_.lb])]); //#21629 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21632 + for (var _3G = 0, _3F = $_.charmaps.length - 1; _3G <= _3F; _3G += 1) { //#21641 + $_.i = _3G; //#21634 + $_.encs = $get($_.charmaps, $_.i); //#21635 + for (var _3K = 0; _3K <= 4; _3K += 1) { //#21640 + $_.j = _3K; //#21637 + var _3N = $get($_.encs, $_.j); //#21638 + $k[$j++] = _3N; //#21638 + if ($eq($type(_3N), 'stringtype')) { //#21638 + var _3Q = $get($k[--$j], 0); //#21638 + $k[$j++] = _3Q; //#21638 + } //#21638 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21639 + } //#21639 + } //#21639 + $_.seta = $get($_.charvals, 0); //#21642 + $_.setb = $get($_.charvals, 1); //#21643 + $_.setc = $get($_.charvals, 2); //#21644 + $_.setd = $get($_.charvals, 3); //#21645 + $_.sete = $get($_.charvals, 4); //#21646 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21646 + bwipp_maxicode.__21647__ = 1; //#21646 + $_ = Object.getPrototypeOf($_); //#21646 + } //#21646 + $k[$j++] = Infinity; //#21650 + for (var _3i = 0, _3j = $_.msglen + 1; _3i < _3j; _3i++) { //#21650 + $k[$j++] = 0; //#21650 + } //#21650 + $_.nseq = $a(); //#21650 + for (var _3m = $_.msglen - 1; _3m >= 0; _3m -= 1) { //#21658 + $_.i = _3m; //#21652 + var _3p = $get($_.msg, $_.i); //#21653 + if ((_3p >= 48) && (_3p <= 57)) { //#21656 + $put($_.nseq, $_.i, $f($get($_.nseq, $_.i + 1) + 1)); //#21654 + } else { //#21656 + $put($_.nseq, $_.i, 0); //#21656 + } //#21656 + } //#21656 + $_.nseq = $geti($_.nseq, 0, $_.msglen); //#21659 $_.prefixinset = function() { - $k[$j++] = 0; //#21380 - for (;;) { //#21380 - var _40 = $k[--$j]; //#21378 - var _41 = $k[--$j]; //#21378 - $k[$j++] = _41; //#21378 - $k[$j++] = _40; //#21378 - if (_40 >= _41.length) { //#21378 - break; //#21378 - } //#21378 - var _42 = $k[--$j]; //#21379 - var _43 = $k[--$j]; //#21379 - var _45 = $k[--$j]; //#21379 - var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21379 - $k[$j++] = _45; //#21379 - $k[$j++] = _43; //#21379 - $k[$j++] = _42; //#21379 - if (_46) { //#21379 - var _47 = $k[--$j]; //#21379 - $k[$j++] = $f(_47 + 1); //#21379 - } else { //#21379 - break; //#21379 - } //#21379 - } //#21379 - var _48 = $k[--$j]; //#21381 - var _49 = $k[--$j]; //#21381 - $k[$j++] = _48; //#21381 - $k[$j++] = _49; //#21381 - $j--; //#21381 - var _4A = $k[--$j]; //#21381 - var _4B = $k[--$j]; //#21381 - $k[$j++] = _4A; //#21381 - $k[$j++] = _4B; //#21381 - $j--; //#21381 - }; //#21381 + $k[$j++] = 0; //#21666 + for (;;) { //#21666 + var _40 = $k[--$j]; //#21664 + var _41 = $k[--$j]; //#21664 + $k[$j++] = _41; //#21664 + $k[$j++] = _40; //#21664 + if (_40 >= _41.length) { //#21664 + break; //#21664 + } //#21664 + var _42 = $k[--$j]; //#21665 + var _43 = $k[--$j]; //#21665 + var _45 = $k[--$j]; //#21665 + var _46 = $get(_45, $get(_43, _42)) !== undefined; //#21665 + $k[$j++] = _45; //#21665 + $k[$j++] = _43; //#21665 + $k[$j++] = _42; //#21665 + if (_46) { //#21665 + var _47 = $k[--$j]; //#21665 + $k[$j++] = $f(_47 + 1); //#21665 + } else { //#21665 + break; //#21665 + } //#21665 + } //#21665 + var _48 = $k[--$j]; //#21667 + var _49 = $k[--$j]; //#21667 + $k[$j++] = _48; //#21667 + $k[$j++] = _49; //#21667 + $j--; //#21667 + var _4A = $k[--$j]; //#21667 + var _4B = $k[--$j]; //#21667 + $k[$j++] = _4A; //#21667 + $k[$j++] = _4B; //#21667 + $j--; //#21667 + }; //#21667 $_.enc = function() { - var _4C = $k[--$j]; //#21385 - $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21385 - $_.j = $_.j + 1; //#21386 - }; //#21386 - $_.out = $a(144); //#21389 - $_.i = 0; //#21390 - $_.j = 0; //#21390 - $_.cset = "seta"; //#21390 - for (;;) { //#21542 - if ($_.i == $_.msglen) { //#21399 - if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21397 - $k[$j++] = $_.la; //#21395 - $k[$j++] = $_[$_.cset]; //#21395 - $_.enc(); //#21395 - $_.cset = "seta"; //#21396 - } //#21396 - break; //#21398 - } //#21398 - for (;;) { //#21541 - if ($get($_.msg, $_.i) <= -1000000) { //#21428 - $k[$j++] = $_.eci; //#21403 - $k[$j++] = $_[$_.cset]; //#21403 - $_.enc(); //#21403 - var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21405 - $k[$j++] = _4Z; //#21423 - if (_4Z <= 31) { //#21422 - var _4a = $k[--$j]; //#21406 - $k[$j++] = _4a & 63; //#21407 - $astore($a(1)); //#21407 - } else { //#21422 - var _4c = $k[--$j]; //#21408 - $k[$j++] = _4c; //#21423 - if (_4c <= 1023) { //#21422 - var _4d = $k[--$j]; //#21409 - $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21411 - $k[$j++] = _4d & 63; //#21411 - $astore($a(2)); //#21411 - } else { //#21422 - var _4f = $k[--$j]; //#21412 - $k[$j++] = _4f; //#21423 - if (_4f <= 32767) { //#21422 - var _4g = $k[--$j]; //#21413 - $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21416 - $k[$j++] = (_4g >>> 6) & 63; //#21416 - $k[$j++] = _4g & 63; //#21416 - $astore($a(3)); //#21416 - } else { //#21422 - var _4i = $k[--$j]; //#21418 - $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21422 - $k[$j++] = (_4i >>> 12) & 63; //#21422 - $k[$j++] = (_4i >>> 6) & 63; //#21422 - $k[$j++] = _4i & 63; //#21422 - $astore($a(4)); //#21422 - } //#21422 - } //#21422 - } //#21422 - var _4k = $k[--$j]; //#21424 - $puti($_.out, $_.j, _4k); //#21424 - $_.j = _4k.length + $_.j; //#21425 - $_.i = $_.i + 1; //#21426 - break; //#21427 - } //#21427 - if ($get($_.nseq, $_.i) >= 9) { //#21439 - var _4u = $geti($_.msg, $_.i, 9); //#21432 - $k[$j++] = 0; //#21432 - for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21432 - var _4y = $k[--$j]; //#21432 - $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21432 - } //#21432 - var _4z = $k[--$j]; //#21432 - $k[$j++] = ~~(_4z / 10); //#21433 - for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21433 - var _52 = $k[--$j]; //#21433 - $k[$j++] = _52 & 63; //#21433 - $k[$j++] = _52 >>> 6; //#21433 - } //#21433 - $k[$j++] = $get($_[$_.cset], $_.ns); //#21434 - for (var _57 = 0; _57 <= 10; _57 += 2) { //#21434 - var _58 = $k[$j - 1 - _57]; //#21434 - $k[$j++] = _58; //#21434 - } //#21434 - $astore($a(6)); //#21434 - var _5A = $k[--$j]; //#21434 - var _5B = $k[--$j]; //#21434 - var _5C = $k[--$j]; //#21434 - var _5D = $k[--$j]; //#21434 - var _5E = $k[--$j]; //#21434 - var _5F = $k[--$j]; //#21434 - var _5G = $k[--$j]; //#21434 - $k[$j++] = _5A; //#21434 - $k[$j++] = _5G; //#21434 - $k[$j++] = _5F; //#21434 - $k[$j++] = _5E; //#21434 - $k[$j++] = _5D; //#21434 - $k[$j++] = _5C; //#21434 - $k[$j++] = _5B; //#21434 - for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21434 - $j--; //#21434 - } //#21434 - $puti($_.out, $_.j, $k[--$j]); //#21435 - $_.i = $_.i + 9; //#21436 - $_.j = $_.j + 6; //#21437 - break; //#21438 - } //#21438 - $_.char1 = $get($_.msg, $_.i); //#21442 - $k[$j++] = 'char2'; //#21443 - if (($_.i + 1) < $_.msglen) { //#21443 - $k[$j++] = $get($_.msg, $_.i + 1); //#21443 - } else { //#21443 - $k[$j++] = -99; //#21443 - } //#21443 - var _5W = $k[--$j]; //#21443 - $_[$k[--$j]] = _5W; //#21443 - $k[$j++] = 'char3'; //#21444 - if (($_.i + 2) < $_.msglen) { //#21444 - $k[$j++] = $get($_.msg, $_.i + 2); //#21444 - } else { //#21444 - $k[$j++] = -99; //#21444 - } //#21444 - var _5d = $k[--$j]; //#21444 - $_[$k[--$j]] = _5d; //#21444 - var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21447 - if (_5i) { //#21451 - $k[$j++] = $_.char1; //#21448 - $k[$j++] = $_[$_.cset]; //#21448 - $_.enc(); //#21448 - $_.i = $_.i + 1; //#21449 - break; //#21450 - } //#21450 - var _5q = $get($_.setb, $_.char1) !== undefined; //#21454 - if ($eq($_.cset, "seta") && _5q) { //#21464 - var _5t = $get($_.setb, $_.char2) !== undefined; //#21455 - if (_5t) { //#21461 - $k[$j++] = $_.lb; //#21456 - $k[$j++] = $_.seta; //#21456 - $_.enc(); //#21456 - $_.cset = "setb"; //#21457 - } else { //#21461 - $k[$j++] = $_.sb; //#21459 - $k[$j++] = $_.seta; //#21459 - $_.enc(); //#21459 - $k[$j++] = $_.char1; //#21460 - $k[$j++] = $_.setb; //#21460 - $_.enc(); //#21460 - $_.i = $_.i + 1; //#21461 - } //#21461 - break; //#21463 - } //#21463 - var _64 = $get($_.seta, $_.char1) !== undefined; //#21467 - if ($eq($_.cset, "setb") && _64) { //#21492 - var _65 = $_.seta; //#21468 - var _66 = $_.msg; //#21468 - var _67 = $_.i; //#21468 - var _68 = $_.msglen; //#21468 - var _69 = $_.i; //#21468 - var _6A = _68 - _69; //#21468 - var _6B = 4; //#21468 - if (4 > (_68 - _69)) { //#21468 - var _ = _6A; //#21468 - _6A = _6B; //#21468 - _6B = _; //#21468 - } //#21468 - $k[$j++] = 'p'; //#21468 - $k[$j++] = _65; //#21468 - $k[$j++] = $geti(_66, _67, _6B); //#21468 - $_.prefixinset(); //#21468 - var _6D = $k[--$j]; //#21468 - $_[$k[--$j]] = _6D; //#21468 - if ($_.p == 1) { //#21473 - $k[$j++] = $_.sa; //#21470 - $k[$j++] = $_.setb; //#21470 - $_.enc(); //#21470 - $k[$j++] = $_.char1; //#21471 - $k[$j++] = $_.seta; //#21471 - $_.enc(); //#21471 - $_.i = $_.i + 1; //#21472 - } //#21472 - if ($_.p == 2) { //#21479 - $k[$j++] = $_.sa2; //#21475 - $k[$j++] = $_.setb; //#21475 - $_.enc(); //#21475 - $k[$j++] = $_.char1; //#21476 - $k[$j++] = $_.seta; //#21476 - $_.enc(); //#21476 - $k[$j++] = $_.char2; //#21477 - $k[$j++] = $_.seta; //#21477 - $_.enc(); //#21477 - $_.i = $_.i + 2; //#21478 - } //#21478 - if ($_.p == 3) { //#21486 - $k[$j++] = $_.sa3; //#21481 - $k[$j++] = $_.setb; //#21481 - $_.enc(); //#21481 - $k[$j++] = $_.char1; //#21482 - $k[$j++] = $_.seta; //#21482 - $_.enc(); //#21482 - $k[$j++] = $_.char2; //#21483 - $k[$j++] = $_.seta; //#21483 - $_.enc(); //#21483 - $k[$j++] = $_.char3; //#21484 - $k[$j++] = $_.seta; //#21484 - $_.enc(); //#21484 - $_.i = $_.i + 3; //#21485 - } //#21485 - if ($_.p >= 4) { //#21490 - $k[$j++] = $_.la; //#21488 - $k[$j++] = $_.setb; //#21488 - $_.enc(); //#21488 - $_.cset = "seta"; //#21489 - } //#21489 - break; //#21491 - } //#21491 - var _6i = $get($_.seta, $_.char1) !== undefined; //#21495 - if (_6i) { //#21499 - $k[$j++] = $_.la; //#21496 - $k[$j++] = $_[$_.cset]; //#21496 - $_.enc(); //#21496 - $_.cset = "seta"; //#21497 - break; //#21498 - } //#21498 - var _6o = $get($_.setb, $_.char1) !== undefined; //#21500 - if (_6o) { //#21504 - $k[$j++] = $_.lb; //#21501 - $k[$j++] = $_[$_.cset]; //#21501 - $_.enc(); //#21501 - $_.cset = "setb"; //#21502 - break; //#21503 - } //#21503 - var _6u = $get($_.setc, $_.char1) !== undefined; //#21507 - if (_6u) { //#21507 - $_.setx = "setc"; //#21507 - $_.sx = $_.sc; //#21507 - $_.lkx = $_.lkc; //#21507 - } //#21507 - var _6z = $get($_.setd, $_.char1) !== undefined; //#21508 - if (_6z) { //#21508 - $_.setx = "setd"; //#21508 - $_.sx = $_.sd; //#21508 - $_.lkx = $_.lkd; //#21508 - } //#21508 - var _74 = $get($_.sete, $_.char1) !== undefined; //#21509 - if (_74) { //#21509 - $_.setx = "sete"; //#21509 - $_.sx = $_.se; //#21509 - $_.lkx = $_.lke; //#21509 - } //#21509 - var _78 = $_[$_.setx]; //#21512 - var _79 = $_.msg; //#21512 - var _7A = $_.i; //#21512 - var _7B = $_.msglen; //#21512 - var _7C = $_.i; //#21512 - var _7D = _7B - _7C; //#21512 - var _7E = 4; //#21512 - if (4 > (_7B - _7C)) { //#21512 - var _ = _7D; //#21512 - _7D = _7E; //#21512 - _7E = _; //#21512 - } //#21512 - $k[$j++] = 'p'; //#21512 - $k[$j++] = _78; //#21512 - $k[$j++] = $geti(_79, _7A, _7E); //#21512 - $_.prefixinset(); //#21512 - var _7G = $k[--$j]; //#21512 - $_[$k[--$j]] = _7G; //#21512 - if ($_.p == 1) { //#21517 - $k[$j++] = $_.sx; //#21514 - $k[$j++] = $_[$_.cset]; //#21514 - $_.enc(); //#21514 - $k[$j++] = $_.char1; //#21515 - $k[$j++] = $_[$_.setx]; //#21515 - $_.enc(); //#21515 - $_.i = $_.i + 1; //#21516 - } //#21516 - if ($_.p == 2) { //#21524 - $k[$j++] = $_.sx; //#21519 - $k[$j++] = $_[$_.cset]; //#21519 - $_.enc(); //#21519 - $k[$j++] = $_.char1; //#21520 - $k[$j++] = $_[$_.setx]; //#21520 - $_.enc(); //#21520 - $k[$j++] = $_.sx; //#21521 - $k[$j++] = $_[$_.cset]; //#21521 - $_.enc(); //#21521 - $k[$j++] = $_.char2; //#21522 - $k[$j++] = $_[$_.setx]; //#21522 - $_.enc(); //#21522 - $_.i = $_.i + 2; //#21523 - } //#21523 - if ($_.p == 3) { //#21533 - $k[$j++] = $_.sx; //#21526 - $k[$j++] = $_[$_.cset]; //#21526 - $_.enc(); //#21526 - $k[$j++] = $_.char1; //#21527 - $k[$j++] = $_[$_.setx]; //#21527 - $_.enc(); //#21527 - $k[$j++] = $_.sx; //#21528 - $k[$j++] = $_[$_.cset]; //#21528 - $_.enc(); //#21528 - $k[$j++] = $_.char2; //#21529 - $k[$j++] = $_[$_.setx]; //#21529 - $_.enc(); //#21529 - $k[$j++] = $_.sx; //#21530 - $k[$j++] = $_[$_.cset]; //#21530 - $_.enc(); //#21530 - $k[$j++] = $_.char3; //#21531 - $k[$j++] = $_[$_.setx]; //#21531 - $_.enc(); //#21531 - $_.i = $_.i + 3; //#21532 - } //#21532 - if ($_.p >= 4) { //#21538 - $k[$j++] = $_.sx; //#21535 - $k[$j++] = $_[$_.cset]; //#21535 - $_.enc(); //#21535 - $k[$j++] = $_.lkx; //#21536 - $k[$j++] = $_[$_.setx]; //#21536 - $_.enc(); //#21536 - $_.cset = $_.setx; //#21537 - } //#21537 - break; //#21540 - } //#21540 - } //#21540 - $_.encmsg = $geti($_.out, 0, $_.j); //#21543 - $_.padval = $get($_[$_.cset], $_.pad); //#21544 - $k[$j++] = 'sami'; //#21547 - if ($_.sam != -1) { //#21547 - $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21547 - } else { //#21547 - $k[$j++] = $a([]); //#21547 - } //#21547 - var _8L = $k[--$j]; //#21547 - $_[$k[--$j]] = _8L; //#21547 - $k[$j++] = Infinity; //#21548 - $aload($_.sami); //#21548 - $aload($_.encmsg); //#21548 - $_.encmsg = $a(); //#21548 - if (($_.mode == 2) || ($_.mode == 3)) { //#21607 - if ($_.encmsg.length > 84) { //#21555 - $k[$j++] = 'bwipp.maxicodeMode23TooLong#21554'; //#21554 - $k[$j++] = "The secondary message is too long"; //#21554 - bwipp_raiseerror(); //#21554 - } //#21554 - var _8U = $strcpy($s(4), "0000"); //#21558 - var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21558 - $puti(_8U, 4 - _8X.length, _8X); //#21558 - $_.mdb = _8U; //#21558 - var _8Z = $strcpy($s(10), "0000000000"); //#21559 - var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21559 - $puti(_8Z, 10 - _8c.length, _8c); //#21559 - $_.ccb = _8Z; //#21559 - var _8e = $strcpy($s(10), "0000000000"); //#21560 - var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21560 - $puti(_8e, 10 - _8h.length, _8h); //#21560 - $_.scb = _8e; //#21560 - $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21561 - if ($_.mode == 2) { //#21574 - var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21564 - $puti($_.pcb, 6 - _8o.length, _8o); //#21564 - var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21565 - $puti($_.pcb, 36 - _8s.length, _8s); //#21565 - } else { //#21574 - $k[$j++] = Infinity; //#21570 - var _8u = $strcpy($s(6), " "); //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = _8u; //#21569 - $k[$j++] = 0; //#21569 - if ($_.pcode.length > 6) { //#21569 - $k[$j++] = $geti($_.pcode, 0, 6); //#21569 - } else { //#21569 - $k[$j++] = $_.pcode; //#21569 - } //#21569 - var _8z = $k[--$j]; //#21569 - var _90 = $k[--$j]; //#21569 - $puti($k[--$j], _90, _8z); //#21569 - $forall($k[--$j], function() { //#21570 - var _95 = $get($_.seta, $k[--$j]); //#21570 - $k[$j++] = _95; //#21570 - }); //#21570 - $_.pccw = $a(); //#21570 - for (var _97 = 0; _97 <= 5; _97 += 1) { //#21575 - $_.i = _97; //#21573 - var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21574 - $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21574 - } //#21574 - } //#21574 - $_.scm = $s(60); //#21579 - $puti($_.scm, 2, $_.mdb); //#21580 - $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21581 - $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21582 - $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21583 - $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21584 - $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21585 - $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21586 - $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21587 - $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21588 - $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21589 - $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21590 - $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21591 - $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21592 - $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21595 - for (var _9t = 0; _9t <= 59; _9t += 1) { //#21601 - $_.i = _9t; //#21597 - $_.ps = ~~($_.i / 6); //#21598 - $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21599 - $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21600 - } //#21600 - $k[$j++] = Infinity; //#21604 - for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21604 - $k[$j++] = $_.padval; //#21604 - } //#21604 - $_.sec = $a(); //#21604 - $puti($_.sec, 0, $_.encmsg); //#21605 - } //#21605 - if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21628 - if ($_.mode == -1) { //#21615 - var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21614 - $_.mode = _AH; //#21614 - } //#21614 - $k[$j++] = Infinity; //#21617 - var _AJ = ($_.mode == 5) ? 78 : 94; //#21617 - for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21617 - $k[$j++] = $_.padval; //#21617 - } //#21617 - $_.cws = $a(); //#21617 - if ($_.encmsg.length > ($_.cws.length - 1)) { //#21620 - $k[$j++] = 'bwipp.maxicodeMode56TooLong#21619'; //#21619 - $k[$j++] = "The message is too long"; //#21619 - bwipp_raiseerror(); //#21619 - } //#21619 - $put($_.cws, 0, $_.mode); //#21621 - $puti($_.cws, 1, $_.encmsg); //#21622 - $_.pri = $geti($_.cws, 0, 10); //#21625 - $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21626 - } //#21626 - $k[$j++] = Infinity; //#21631 - $k[$j++] = 1; //#21631 - for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21631 - var _Ab = $k[--$j]; //#21631 - var _Ac = _Ab * 2; //#21631 - $k[$j++] = _Ab; //#21631 - $k[$j++] = _Ac; //#21631 - if (_Ac >= 64) { //#21631 - var _Ad = $k[--$j]; //#21631 - $k[$j++] = _Ad ^ 67; //#21631 - } //#21631 - } //#21631 - $_.rsalog = $a(); //#21631 - $_.rslog = $a(64); //#21632 - for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21633 - $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21633 - } //#21633 + var _4C = $k[--$j]; //#21671 + $put($_.out, $_.j, $get(_4C, $k[--$j])); //#21671 + $_.j = $_.j + 1; //#21672 + }; //#21672 + $_.out = $a(144); //#21675 + $_.i = 0; //#21676 + $_.j = 0; //#21676 + $_.cset = "seta"; //#21676 + for (;;) { //#21828 + if ($_.i == $_.msglen) { //#21685 + if ($ne($_.cset, "seta") && $ne($_.cset, "setb")) { //#21683 + $k[$j++] = $_.la; //#21681 + $k[$j++] = $_[$_.cset]; //#21681 + $_.enc(); //#21681 + $_.cset = "seta"; //#21682 + } //#21682 + break; //#21684 + } //#21684 + for (;;) { //#21827 + if ($get($_.msg, $_.i) <= -1000000) { //#21714 + $k[$j++] = $_.eci; //#21689 + $k[$j++] = $_[$_.cset]; //#21689 + $_.enc(); //#21689 + var _4Z = $f((-$get($_.msg, $_.i)) - 1000000); //#21691 + $k[$j++] = _4Z; //#21709 + if (_4Z <= 31) { //#21708 + var _4a = $k[--$j]; //#21692 + $k[$j++] = _4a & 63; //#21693 + $astore($a(1)); //#21693 + } else { //#21708 + var _4c = $k[--$j]; //#21694 + $k[$j++] = _4c; //#21709 + if (_4c <= 1023) { //#21708 + var _4d = $k[--$j]; //#21695 + $k[$j++] = ((_4d >>> 6) & 31) | 32; //#21697 + $k[$j++] = _4d & 63; //#21697 + $astore($a(2)); //#21697 + } else { //#21708 + var _4f = $k[--$j]; //#21698 + $k[$j++] = _4f; //#21709 + if (_4f <= 32767) { //#21708 + var _4g = $k[--$j]; //#21699 + $k[$j++] = ((_4g >>> 12) & 47) | 48; //#21702 + $k[$j++] = (_4g >>> 6) & 63; //#21702 + $k[$j++] = _4g & 63; //#21702 + $astore($a(3)); //#21702 + } else { //#21708 + var _4i = $k[--$j]; //#21704 + $k[$j++] = ((_4i >>> 18) & 55) | 56; //#21708 + $k[$j++] = (_4i >>> 12) & 63; //#21708 + $k[$j++] = (_4i >>> 6) & 63; //#21708 + $k[$j++] = _4i & 63; //#21708 + $astore($a(4)); //#21708 + } //#21708 + } //#21708 + } //#21708 + var _4k = $k[--$j]; //#21710 + $puti($_.out, $_.j, _4k); //#21710 + $_.j = _4k.length + $_.j; //#21711 + $_.i = $_.i + 1; //#21712 + break; //#21713 + } //#21713 + if ($get($_.nseq, $_.i) >= 9) { //#21725 + var _4u = $geti($_.msg, $_.i, 9); //#21718 + $k[$j++] = 0; //#21718 + for (var _4v = 0, _4w = _4u.length; _4v < _4w; _4v++) { //#21718 + var _4y = $k[--$j]; //#21718 + $k[$j++] = ($f(_4y + $f($get(_4u, _4v) - 48))) * 10; //#21718 + } //#21718 + var _4z = $k[--$j]; //#21718 + $k[$j++] = ~~(_4z / 10); //#21719 + for (var _50 = 0, _51 = 4; _50 < _51; _50++) { //#21719 + var _52 = $k[--$j]; //#21719 + $k[$j++] = _52 & 63; //#21719 + $k[$j++] = _52 >>> 6; //#21719 + } //#21719 + $k[$j++] = $get($_[$_.cset], $_.ns); //#21720 + for (var _57 = 0; _57 <= 10; _57 += 2) { //#21720 + var _58 = $k[$j - 1 - _57]; //#21720 + $k[$j++] = _58; //#21720 + } //#21720 + $astore($a(6)); //#21720 + var _5A = $k[--$j]; //#21720 + var _5B = $k[--$j]; //#21720 + var _5C = $k[--$j]; //#21720 + var _5D = $k[--$j]; //#21720 + var _5E = $k[--$j]; //#21720 + var _5F = $k[--$j]; //#21720 + var _5G = $k[--$j]; //#21720 + $k[$j++] = _5A; //#21720 + $k[$j++] = _5G; //#21720 + $k[$j++] = _5F; //#21720 + $k[$j++] = _5E; //#21720 + $k[$j++] = _5D; //#21720 + $k[$j++] = _5C; //#21720 + $k[$j++] = _5B; //#21720 + for (var _5H = 0, _5I = 6; _5H < _5I; _5H++) { //#21720 + $j--; //#21720 + } //#21720 + $puti($_.out, $_.j, $k[--$j]); //#21721 + $_.i = $_.i + 9; //#21722 + $_.j = $_.j + 6; //#21723 + break; //#21724 + } //#21724 + $_.char1 = $get($_.msg, $_.i); //#21728 + $k[$j++] = 'char2'; //#21729 + if (($_.i + 1) < $_.msglen) { //#21729 + $k[$j++] = $get($_.msg, $_.i + 1); //#21729 + } else { //#21729 + $k[$j++] = -99; //#21729 + } //#21729 + var _5W = $k[--$j]; //#21729 + $_[$k[--$j]] = _5W; //#21729 + $k[$j++] = 'char3'; //#21730 + if (($_.i + 2) < $_.msglen) { //#21730 + $k[$j++] = $get($_.msg, $_.i + 2); //#21730 + } else { //#21730 + $k[$j++] = -99; //#21730 + } //#21730 + var _5d = $k[--$j]; //#21730 + $_[$k[--$j]] = _5d; //#21730 + var _5i = $get($_[$_.cset], $_.char1) !== undefined; //#21733 + if (_5i) { //#21737 + $k[$j++] = $_.char1; //#21734 + $k[$j++] = $_[$_.cset]; //#21734 + $_.enc(); //#21734 + $_.i = $_.i + 1; //#21735 + break; //#21736 + } //#21736 + var _5q = $get($_.setb, $_.char1) !== undefined; //#21740 + if ($eq($_.cset, "seta") && _5q) { //#21750 + var _5t = $get($_.setb, $_.char2) !== undefined; //#21741 + if (_5t) { //#21747 + $k[$j++] = $_.lb; //#21742 + $k[$j++] = $_.seta; //#21742 + $_.enc(); //#21742 + $_.cset = "setb"; //#21743 + } else { //#21747 + $k[$j++] = $_.sb; //#21745 + $k[$j++] = $_.seta; //#21745 + $_.enc(); //#21745 + $k[$j++] = $_.char1; //#21746 + $k[$j++] = $_.setb; //#21746 + $_.enc(); //#21746 + $_.i = $_.i + 1; //#21747 + } //#21747 + break; //#21749 + } //#21749 + var _64 = $get($_.seta, $_.char1) !== undefined; //#21753 + if ($eq($_.cset, "setb") && _64) { //#21778 + var _65 = $_.seta; //#21754 + var _66 = $_.msg; //#21754 + var _67 = $_.i; //#21754 + var _68 = $_.msglen; //#21754 + var _69 = $_.i; //#21754 + var _6A = _68 - _69; //#21754 + var _6B = 4; //#21754 + if (4 > (_68 - _69)) { //#21754 + var _ = _6A; //#21754 + _6A = _6B; //#21754 + _6B = _; //#21754 + } //#21754 + $k[$j++] = 'p'; //#21754 + $k[$j++] = _65; //#21754 + $k[$j++] = $geti(_66, _67, _6B); //#21754 + $_.prefixinset(); //#21754 + var _6D = $k[--$j]; //#21754 + $_[$k[--$j]] = _6D; //#21754 + if ($_.p == 1) { //#21759 + $k[$j++] = $_.sa; //#21756 + $k[$j++] = $_.setb; //#21756 + $_.enc(); //#21756 + $k[$j++] = $_.char1; //#21757 + $k[$j++] = $_.seta; //#21757 + $_.enc(); //#21757 + $_.i = $_.i + 1; //#21758 + } //#21758 + if ($_.p == 2) { //#21765 + $k[$j++] = $_.sa2; //#21761 + $k[$j++] = $_.setb; //#21761 + $_.enc(); //#21761 + $k[$j++] = $_.char1; //#21762 + $k[$j++] = $_.seta; //#21762 + $_.enc(); //#21762 + $k[$j++] = $_.char2; //#21763 + $k[$j++] = $_.seta; //#21763 + $_.enc(); //#21763 + $_.i = $_.i + 2; //#21764 + } //#21764 + if ($_.p == 3) { //#21772 + $k[$j++] = $_.sa3; //#21767 + $k[$j++] = $_.setb; //#21767 + $_.enc(); //#21767 + $k[$j++] = $_.char1; //#21768 + $k[$j++] = $_.seta; //#21768 + $_.enc(); //#21768 + $k[$j++] = $_.char2; //#21769 + $k[$j++] = $_.seta; //#21769 + $_.enc(); //#21769 + $k[$j++] = $_.char3; //#21770 + $k[$j++] = $_.seta; //#21770 + $_.enc(); //#21770 + $_.i = $_.i + 3; //#21771 + } //#21771 + if ($_.p >= 4) { //#21776 + $k[$j++] = $_.la; //#21774 + $k[$j++] = $_.setb; //#21774 + $_.enc(); //#21774 + $_.cset = "seta"; //#21775 + } //#21775 + break; //#21777 + } //#21777 + var _6i = $get($_.seta, $_.char1) !== undefined; //#21781 + if (_6i) { //#21785 + $k[$j++] = $_.la; //#21782 + $k[$j++] = $_[$_.cset]; //#21782 + $_.enc(); //#21782 + $_.cset = "seta"; //#21783 + break; //#21784 + } //#21784 + var _6o = $get($_.setb, $_.char1) !== undefined; //#21786 + if (_6o) { //#21790 + $k[$j++] = $_.lb; //#21787 + $k[$j++] = $_[$_.cset]; //#21787 + $_.enc(); //#21787 + $_.cset = "setb"; //#21788 + break; //#21789 + } //#21789 + var _6u = $get($_.setc, $_.char1) !== undefined; //#21793 + if (_6u) { //#21793 + $_.setx = "setc"; //#21793 + $_.sx = $_.sc; //#21793 + $_.lkx = $_.lkc; //#21793 + } //#21793 + var _6z = $get($_.setd, $_.char1) !== undefined; //#21794 + if (_6z) { //#21794 + $_.setx = "setd"; //#21794 + $_.sx = $_.sd; //#21794 + $_.lkx = $_.lkd; //#21794 + } //#21794 + var _74 = $get($_.sete, $_.char1) !== undefined; //#21795 + if (_74) { //#21795 + $_.setx = "sete"; //#21795 + $_.sx = $_.se; //#21795 + $_.lkx = $_.lke; //#21795 + } //#21795 + var _78 = $_[$_.setx]; //#21798 + var _79 = $_.msg; //#21798 + var _7A = $_.i; //#21798 + var _7B = $_.msglen; //#21798 + var _7C = $_.i; //#21798 + var _7D = _7B - _7C; //#21798 + var _7E = 4; //#21798 + if (4 > (_7B - _7C)) { //#21798 + var _ = _7D; //#21798 + _7D = _7E; //#21798 + _7E = _; //#21798 + } //#21798 + $k[$j++] = 'p'; //#21798 + $k[$j++] = _78; //#21798 + $k[$j++] = $geti(_79, _7A, _7E); //#21798 + $_.prefixinset(); //#21798 + var _7G = $k[--$j]; //#21798 + $_[$k[--$j]] = _7G; //#21798 + if ($_.p == 1) { //#21803 + $k[$j++] = $_.sx; //#21800 + $k[$j++] = $_[$_.cset]; //#21800 + $_.enc(); //#21800 + $k[$j++] = $_.char1; //#21801 + $k[$j++] = $_[$_.setx]; //#21801 + $_.enc(); //#21801 + $_.i = $_.i + 1; //#21802 + } //#21802 + if ($_.p == 2) { //#21810 + $k[$j++] = $_.sx; //#21805 + $k[$j++] = $_[$_.cset]; //#21805 + $_.enc(); //#21805 + $k[$j++] = $_.char1; //#21806 + $k[$j++] = $_[$_.setx]; //#21806 + $_.enc(); //#21806 + $k[$j++] = $_.sx; //#21807 + $k[$j++] = $_[$_.cset]; //#21807 + $_.enc(); //#21807 + $k[$j++] = $_.char2; //#21808 + $k[$j++] = $_[$_.setx]; //#21808 + $_.enc(); //#21808 + $_.i = $_.i + 2; //#21809 + } //#21809 + if ($_.p == 3) { //#21819 + $k[$j++] = $_.sx; //#21812 + $k[$j++] = $_[$_.cset]; //#21812 + $_.enc(); //#21812 + $k[$j++] = $_.char1; //#21813 + $k[$j++] = $_[$_.setx]; //#21813 + $_.enc(); //#21813 + $k[$j++] = $_.sx; //#21814 + $k[$j++] = $_[$_.cset]; //#21814 + $_.enc(); //#21814 + $k[$j++] = $_.char2; //#21815 + $k[$j++] = $_[$_.setx]; //#21815 + $_.enc(); //#21815 + $k[$j++] = $_.sx; //#21816 + $k[$j++] = $_[$_.cset]; //#21816 + $_.enc(); //#21816 + $k[$j++] = $_.char3; //#21817 + $k[$j++] = $_[$_.setx]; //#21817 + $_.enc(); //#21817 + $_.i = $_.i + 3; //#21818 + } //#21818 + if ($_.p >= 4) { //#21824 + $k[$j++] = $_.sx; //#21821 + $k[$j++] = $_[$_.cset]; //#21821 + $_.enc(); //#21821 + $k[$j++] = $_.lkx; //#21822 + $k[$j++] = $_[$_.setx]; //#21822 + $_.enc(); //#21822 + $_.cset = $_.setx; //#21823 + } //#21823 + break; //#21826 + } //#21826 + } //#21826 + $_.encmsg = $geti($_.out, 0, $_.j); //#21829 + $_.padval = $get($_[$_.cset], $_.pad); //#21830 + $k[$j++] = 'sami'; //#21833 + if ($_.sam != -1) { //#21833 + $k[$j++] = $a([$get($_.seta, $_.pad), (((~~($_.sam / 10)) - 1) * 8) + (($_.sam % 10) - 1)]); //#21833 + } else { //#21833 + $k[$j++] = $a([]); //#21833 + } //#21833 + var _8L = $k[--$j]; //#21833 + $_[$k[--$j]] = _8L; //#21833 + $k[$j++] = Infinity; //#21834 + $aload($_.sami); //#21834 + $aload($_.encmsg); //#21834 + $_.encmsg = $a(); //#21834 + if (($_.mode == 2) || ($_.mode == 3)) { //#21893 + if ($_.encmsg.length > 84) { //#21841 + $k[$j++] = 'bwipp.maxicodeMode23TooLong#21840'; //#21840 + $k[$j++] = "The secondary message is too long"; //#21840 + bwipp_raiseerror(); //#21840 + } //#21840 + var _8U = $strcpy($s(4), "0000"); //#21844 + var _8X = $cvrs($s(4), ~~$_.mode, 2); //#21844 + $puti(_8U, 4 - _8X.length, _8X); //#21844 + $_.mdb = _8U; //#21844 + var _8Z = $strcpy($s(10), "0000000000"); //#21845 + var _8c = $cvrs($s(10), $cvi($_.ccode), 2); //#21845 + $puti(_8Z, 10 - _8c.length, _8c); //#21845 + $_.ccb = _8Z; //#21845 + var _8e = $strcpy($s(10), "0000000000"); //#21846 + var _8h = $cvrs($s(10), $cvi($_.scode), 2); //#21846 + $puti(_8e, 10 - _8h.length, _8h); //#21846 + $_.scb = _8e; //#21846 + $_.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#21847 + if ($_.mode == 2) { //#21860 + var _8o = $cvrs($s(6), $_.pcode.length, 2); //#21850 + $puti($_.pcb, 6 - _8o.length, _8o); //#21850 + var _8s = $cvrs($s(30), $cvi($_.pcode), 2); //#21851 + $puti($_.pcb, 36 - _8s.length, _8s); //#21851 + } else { //#21860 + $k[$j++] = Infinity; //#21854 + var _8u = $strcpy($s(6), " "); //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = _8u; //#21855 + $k[$j++] = 0; //#21855 + if ($_.pcode.length > 6) { //#21855 + $k[$j++] = $geti($_.pcode, 0, 6); //#21855 + } else { //#21855 + $k[$j++] = $_.pcode; //#21855 + } //#21855 + var _8z = $k[--$j]; //#21855 + var _90 = $k[--$j]; //#21855 + $puti($k[--$j], _90, _8z); //#21855 + $forall($k[--$j], function() { //#21856 + var _95 = $get($_.seta, $k[--$j]); //#21856 + $k[$j++] = _95; //#21856 + }); //#21856 + $_.pccw = $a(); //#21856 + for (var _97 = 0; _97 <= 5; _97 += 1) { //#21861 + $_.i = _97; //#21859 + var _9D = $cvrs($s(6), $get($_.pccw, $_.i), 2); //#21860 + $puti($_.pcb, ((6 * $_.i) + 6) - _9D.length, _9D); //#21860 + } //#21860 + } //#21860 + $_.scm = $s(60); //#21865 + $puti($_.scm, 2, $_.mdb); //#21866 + $puti($_.scm, 38, $geti($_.pcb, 0, 4)); //#21867 + $puti($_.scm, 30, $geti($_.pcb, 4, 6)); //#21868 + $puti($_.scm, 24, $geti($_.pcb, 10, 6)); //#21869 + $puti($_.scm, 18, $geti($_.pcb, 16, 6)); //#21870 + $puti($_.scm, 12, $geti($_.pcb, 22, 6)); //#21871 + $puti($_.scm, 6, $geti($_.pcb, 28, 6)); //#21872 + $puti($_.scm, 0, $geti($_.pcb, 34, 2)); //#21873 + $puti($_.scm, 52, $geti($_.ccb, 0, 2)); //#21874 + $puti($_.scm, 42, $geti($_.ccb, 2, 6)); //#21875 + $puti($_.scm, 36, $geti($_.ccb, 8, 2)); //#21876 + $puti($_.scm, 54, $geti($_.scb, 0, 6)); //#21877 + $puti($_.scm, 48, $geti($_.scb, 6, 4)); //#21878 + $_.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#21881 + for (var _9t = 0; _9t <= 59; _9t += 1) { //#21887 + $_.i = _9t; //#21883 + $_.ps = ~~($_.i / 6); //#21884 + $_.ep = (~~(Math.pow(2, 5 - ($_.i % 6)))) * ($get($_.scm, $_.i) - 48); //#21885 + $put($_.pri, $_.ps, $f($get($_.pri, $_.ps) + $_.ep)); //#21886 + } //#21886 + $k[$j++] = Infinity; //#21890 + for (var _A5 = 0, _A6 = 84; _A5 < _A6; _A5++) { //#21890 + $k[$j++] = $_.padval; //#21890 + } //#21890 + $_.sec = $a(); //#21890 + $puti($_.sec, 0, $_.encmsg); //#21891 + } //#21891 + if (((($_.mode == 4) || ($_.mode == 5)) || ($_.mode == 6)) || ($_.mode == -1)) { //#21914 + if ($_.mode == -1) { //#21901 + var _AH = ($_.encmsg.length <= 77) ? 5 : 4; //#21900 + $_.mode = _AH; //#21900 + } //#21900 + $k[$j++] = Infinity; //#21903 + var _AJ = ($_.mode == 5) ? 78 : 94; //#21903 + for (var _AK = 0, _AL = _AJ; _AK < _AL; _AK++) { //#21903 + $k[$j++] = $_.padval; //#21903 + } //#21903 + $_.cws = $a(); //#21903 + if ($_.encmsg.length > ($_.cws.length - 1)) { //#21906 + $k[$j++] = 'bwipp.maxicodeMode56TooLong#21905'; //#21905 + $k[$j++] = "The message is too long"; //#21905 + bwipp_raiseerror(); //#21905 + } //#21905 + $put($_.cws, 0, $_.mode); //#21907 + $puti($_.cws, 1, $_.encmsg); //#21908 + $_.pri = $geti($_.cws, 0, 10); //#21911 + $_.sec = $geti($_.cws, 10, $_.cws.length - 10); //#21912 + } //#21912 + if (!bwipp_maxicode.__21921__) { //#21921 + $_ = Object.create($_); //#21921 + $k[$j++] = Infinity; //#21918 + $k[$j++] = 1; //#21918 + for (var _AZ = 0, _Aa = 63; _AZ < _Aa; _AZ++) { //#21918 + var _Ab = $k[--$j]; //#21918 + var _Ac = _Ab * 2; //#21918 + $k[$j++] = _Ab; //#21918 + $k[$j++] = _Ac; //#21918 + if (_Ac >= 64) { //#21918 + var _Ad = $k[--$j]; //#21918 + $k[$j++] = _Ad ^ 67; //#21918 + } //#21918 + } //#21918 + $_.rsalog = $a(); //#21918 + $_.rslog = $a(64); //#21919 + for (var _Ag = 1; _Ag <= 63; _Ag += 1) { //#21920 + $put($_.rslog, $get($_.rsalog, _Ag), _Ag); //#21920 + } //#21920 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21920 + bwipp_maxicode.__21921__ = 1; //#21920 + $_ = Object.getPrototypeOf($_); //#21920 + } //#21920 $_.rsprod = function() { - var _Ak = $k[--$j]; //#21637 - var _Al = $k[--$j]; //#21637 - $k[$j++] = _Al; //#21641 - $k[$j++] = _Ak; //#21641 - if ((_Ak != 0) && (_Al != 0)) { //#21640 - var _Ao = $get($_.rslog, $k[--$j]); //#21638 - var _At = $get($_.rsalog, $f(_Ao + $get($_.rslog, $k[--$j])) % 63); //#21638 - $k[$j++] = _At; //#21638 - } else { //#21640 - $j -= 2; //#21640 - $k[$j++] = 0; //#21640 - } //#21640 - }; //#21640 + var _Al = $k[--$j]; //#21925 + var _Am = $k[--$j]; //#21925 + $k[$j++] = _Am; //#21929 + $k[$j++] = _Al; //#21929 + if ((_Al != 0) && (_Am != 0)) { //#21928 + var _Ap = $get($_.rslog, $k[--$j]); //#21926 + var _Au = $get($_.rsalog, $f(_Ap + $get($_.rslog, $k[--$j])) % 63); //#21926 + $k[$j++] = _Au; //#21926 + } else { //#21928 + $j -= 2; //#21928 + $k[$j++] = 0; //#21928 + } //#21928 + }; //#21928 $_.rscodes = function() { - $_.rsnum = $k[--$j]; //#21647 - $_.cwb = $k[--$j]; //#21648 - $k[$j++] = Infinity; //#21651 - $k[$j++] = 1; //#21651 - for (var _Ax = 0, _Ay = $_.rsnum; _Ax < _Ay; _Ax++) { //#21651 - $k[$j++] = 0; //#21651 - } //#21651 - $_.coeffs = $a(); //#21651 - for (var _B2 = 1, _B1 = $_.rsnum; _B2 <= _B1; _B2 += 1) { //#21660 - $_.i = _B2; //#21653 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21654 - for (var _B9 = $_.i - 1; _B9 >= 1; _B9 -= 1) { //#21658 - $_.j = _B9; //#21656 - $k[$j++] = $_.coeffs; //#21657 - $k[$j++] = $_.j; //#21657 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#21657 - $k[$j++] = $get($_.coeffs, $_.j); //#21657 - $k[$j++] = $get($_.rsalog, $_.i); //#21657 - $_.rsprod(); //#21657 - var _BL = $k[--$j]; //#21657 - var _BM = $k[--$j]; //#21657 - var _BN = $k[--$j]; //#21657 - $put($k[--$j], _BN, $xo(_BM, _BL)); //#21657 - } //#21657 - $k[$j++] = $_.coeffs; //#21659 - $k[$j++] = 0; //#21659 - $k[$j++] = $get($_.coeffs, 0); //#21659 - $k[$j++] = $get($_.rsalog, $_.i); //#21659 - $_.rsprod(); //#21659 - var _BV = $k[--$j]; //#21659 - var _BW = $k[--$j]; //#21659 - $put($k[--$j], _BW, _BV); //#21659 - } //#21659 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21661 - $k[$j++] = Infinity; //#21664 - for (var _Bc = 0, _Bd = $_.rsnum; _Bc < _Bd; _Bc++) { //#21664 - $k[$j++] = 0; //#21664 - } //#21664 - $_.ecb = $a(); //#21664 - for (var _Bh = 0, _Bg = $_.cwb.length - 1; _Bh <= _Bg; _Bh += 1) { //#21673 - $_.t = $xo($get($_.cwb, _Bh), $get($_.ecb, 0)); //#21666 - for (var _Bn = $_.ecb.length - 1; _Bn >= 0; _Bn -= 1) { //#21672 - $_.i = _Bn; //#21668 - $_.p = ($_.ecb.length - $_.i) - 1; //#21669 - $k[$j++] = $_.ecb; //#21670 - $k[$j++] = $_.p; //#21670 - $k[$j++] = $_.t; //#21670 - $k[$j++] = $get($_.coeffs, $_.i); //#21670 - $_.rsprod(); //#21670 - var _Bw = $k[--$j]; //#21670 - var _Bx = $k[--$j]; //#21670 - $put($k[--$j], _Bx, _Bw); //#21670 - if ($_.i > 0) { //#21671 - $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21671 - } //#21671 - } //#21671 - } //#21671 - $k[$j++] = $_.ecb; //#21675 - }; //#21675 - $k[$j++] = Infinity; //#21680 - for (var _CB = 0, _CA = $_.sec.length - 1; _CB <= _CA; _CB += 2) { //#21680 - $k[$j++] = $get($_.sec, _CB); //#21680 - } //#21680 - $_.seco = $a(); //#21680 - $k[$j++] = Infinity; //#21681 - for (var _CH = 1, _CG = $_.sec.length - 1; _CH <= _CG; _CH += 2) { //#21681 - $k[$j++] = $get($_.sec, _CH); //#21681 - } //#21681 - $_.sece = $a(); //#21681 - var _CM = ($_.sec.length == 84) ? 20 : 28; //#21684 - $_.scodes = _CM; //#21684 - $k[$j++] = 'secochk'; //#21685 - $k[$j++] = $_.seco; //#21685 - $k[$j++] = $_.scodes; //#21685 - $_.rscodes(); //#21685 - var _CP = $k[--$j]; //#21685 - $_[$k[--$j]] = _CP; //#21685 - $k[$j++] = 'secechk'; //#21686 - $k[$j++] = $_.sece; //#21686 - $k[$j++] = $_.scodes; //#21686 - $_.rscodes(); //#21686 - var _CT = $k[--$j]; //#21686 - $_[$k[--$j]] = _CT; //#21686 - $k[$j++] = Infinity; //#21689 - for (var _CX = 0, _CW = $_.scodes - 1; _CX <= _CW; _CX += 1) { //#21689 - $k[$j++] = $get($_.secochk, _CX); //#21689 - $k[$j++] = $get($_.secechk, _CX); //#21689 - } //#21689 - $_.secchk = $a(); //#21689 - $k[$j++] = Infinity; //#21696 - $aload($_.pri); //#21693 - $k[$j++] = $_.pri; //#21694 - $k[$j++] = 10; //#21694 - $_.rscodes(); //#21694 - $aload($k[--$j]); //#21694 - $aload($_.sec); //#21695 - $aload($_.secchk); //#21696 - $_.codewords = $a(); //#21696 - $k[$j++] = Infinity; //#21700 - for (var _Cj = 0, _Ck = 864; _Cj < _Ck; _Cj++) { //#21700 - $k[$j++] = 0; //#21700 - } //#21700 - $_.mods = $a(); //#21700 - for (var _Cm = 0; _Cm <= 143; _Cm += 1) { //#21705 - $_.i = _Cm; //#21702 - $k[$j++] = Infinity; //#21703 - var _Cr = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21703 - for (var _Cs = 0, _Ct = _Cr.length; _Cs < _Ct; _Cs++) { //#21703 - $k[$j++] = $get(_Cr, _Cs) - 48; //#21703 - } //#21703 - $_.cw = $a(); //#21703 - $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21704 - } //#21704 - if (!bwipp_maxicode.__21755__) { //#21755 - $_ = Object.create($_); //#21755 - $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#21754 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#21754 - bwipp_maxicode.__21755__ = 1; //#21754 - $_ = Object.getPrototypeOf($_); //#21754 - } //#21754 - $_.pixs = $a(864); //#21758 - $_.j = 0; //#21759 - for (var _D5 = 0, _D4 = $_.mods.length - 1; _D5 <= _D4; _D5 += 1) { //#21766 - $_.i = _D5; //#21761 - if ($get($_.mods, $_.i) == 1) { //#21765 - $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#21763 - $_.j = $_.j + 1; //#21764 - } //#21764 - } //#21764 - $k[$j++] = Infinity; //#21767 - $aload($geti($_.pixs, 0, $_.j)); //#21767 - $k[$j++] = 28; //#21767 - $k[$j++] = 29; //#21767 - $k[$j++] = 280; //#21767 - $k[$j++] = 281; //#21767 - $k[$j++] = 311; //#21767 - $k[$j++] = 457; //#21767 - $k[$j++] = 488; //#21767 - $k[$j++] = 500; //#21767 - $k[$j++] = 530; //#21767 - $k[$j++] = 670; //#21767 - $k[$j++] = 700; //#21767 - $k[$j++] = 677; //#21767 - $k[$j++] = 707; //#21767 - $_.pixs = $a(); //#21767 - var _DL = new Map([ + $_.rsnum = $k[--$j]; //#21935 + $_.cwb = $k[--$j]; //#21936 + $k[$j++] = Infinity; //#21939 + $k[$j++] = 1; //#21939 + for (var _Ay = 0, _Az = $_.rsnum; _Ay < _Az; _Ay++) { //#21939 + $k[$j++] = 0; //#21939 + } //#21939 + $_.coeffs = $a(); //#21939 + for (var _B3 = 1, _B2 = $_.rsnum; _B3 <= _B2; _B3 += 1) { //#21948 + $_.i = _B3; //#21941 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#21942 + for (var _BA = $_.i - 1; _BA >= 1; _BA -= 1) { //#21946 + $_.j = _BA; //#21944 + $k[$j++] = $_.coeffs; //#21945 + $k[$j++] = $_.j; //#21945 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#21945 + $k[$j++] = $get($_.coeffs, $_.j); //#21945 + $k[$j++] = $get($_.rsalog, $_.i); //#21945 + $_.rsprod(); //#21945 + var _BM = $k[--$j]; //#21945 + var _BN = $k[--$j]; //#21945 + var _BO = $k[--$j]; //#21945 + $put($k[--$j], _BO, $xo(_BN, _BM)); //#21945 + } //#21945 + $k[$j++] = $_.coeffs; //#21947 + $k[$j++] = 0; //#21947 + $k[$j++] = $get($_.coeffs, 0); //#21947 + $k[$j++] = $get($_.rsalog, $_.i); //#21947 + $_.rsprod(); //#21947 + var _BW = $k[--$j]; //#21947 + var _BX = $k[--$j]; //#21947 + $put($k[--$j], _BX, _BW); //#21947 + } //#21947 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#21949 + $k[$j++] = Infinity; //#21952 + for (var _Bd = 0, _Be = $_.rsnum; _Bd < _Be; _Bd++) { //#21952 + $k[$j++] = 0; //#21952 + } //#21952 + $_.ecb = $a(); //#21952 + for (var _Bi = 0, _Bh = $_.cwb.length - 1; _Bi <= _Bh; _Bi += 1) { //#21961 + $_.t = $xo($get($_.cwb, _Bi), $get($_.ecb, 0)); //#21954 + for (var _Bo = $_.ecb.length - 1; _Bo >= 0; _Bo -= 1) { //#21960 + $_.i = _Bo; //#21956 + $_.p = ($_.ecb.length - $_.i) - 1; //#21957 + $k[$j++] = $_.ecb; //#21958 + $k[$j++] = $_.p; //#21958 + $k[$j++] = $_.t; //#21958 + $k[$j++] = $get($_.coeffs, $_.i); //#21958 + $_.rsprod(); //#21958 + var _Bx = $k[--$j]; //#21958 + var _By = $k[--$j]; //#21958 + $put($k[--$j], _By, _Bx); //#21958 + if ($_.i > 0) { //#21959 + $put($_.ecb, $_.p, $xo($get($_.ecb, $_.p + 1), $get($_.ecb, $_.p))); //#21959 + } //#21959 + } //#21959 + } //#21959 + $k[$j++] = $_.ecb; //#21963 + }; //#21963 + $k[$j++] = Infinity; //#21968 + for (var _CC = 0, _CB = $_.sec.length - 1; _CC <= _CB; _CC += 2) { //#21968 + $k[$j++] = $get($_.sec, _CC); //#21968 + } //#21968 + $_.seco = $a(); //#21968 + $k[$j++] = Infinity; //#21969 + for (var _CI = 1, _CH = $_.sec.length - 1; _CI <= _CH; _CI += 2) { //#21969 + $k[$j++] = $get($_.sec, _CI); //#21969 + } //#21969 + $_.sece = $a(); //#21969 + var _CN = ($_.sec.length == 84) ? 20 : 28; //#21972 + $_.scodes = _CN; //#21972 + $k[$j++] = 'secochk'; //#21973 + $k[$j++] = $_.seco; //#21973 + $k[$j++] = $_.scodes; //#21973 + $_.rscodes(); //#21973 + var _CQ = $k[--$j]; //#21973 + $_[$k[--$j]] = _CQ; //#21973 + $k[$j++] = 'secechk'; //#21974 + $k[$j++] = $_.sece; //#21974 + $k[$j++] = $_.scodes; //#21974 + $_.rscodes(); //#21974 + var _CU = $k[--$j]; //#21974 + $_[$k[--$j]] = _CU; //#21974 + $k[$j++] = Infinity; //#21977 + for (var _CY = 0, _CX = $_.scodes - 1; _CY <= _CX; _CY += 1) { //#21977 + $k[$j++] = $get($_.secochk, _CY); //#21977 + $k[$j++] = $get($_.secechk, _CY); //#21977 + } //#21977 + $_.secchk = $a(); //#21977 + $k[$j++] = Infinity; //#21980 + $aload($_.pri); //#21981 + $k[$j++] = $_.pri; //#21982 + $k[$j++] = 10; //#21982 + $_.rscodes(); //#21982 + $aload($k[--$j]); //#21982 + $aload($_.sec); //#21983 + $aload($_.secchk); //#21984 + $_.codewords = $a(); //#21984 + $k[$j++] = Infinity; //#21988 + for (var _Ck = 0, _Cl = 864; _Ck < _Cl; _Ck++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $_.mods = $a(); //#21988 + for (var _Cn = 0; _Cn <= 143; _Cn += 1) { //#21993 + $_.i = _Cn; //#21990 + $k[$j++] = Infinity; //#21991 + var _Cs = $cvrs($s(6), $get($_.codewords, $_.i), 2); //#21991 + for (var _Ct = 0, _Cu = _Cs.length; _Ct < _Cu; _Ct++) { //#21991 + $k[$j++] = $get(_Cs, _Ct) - 48; //#21991 + } //#21991 + $_.cw = $a(); //#21991 + $puti($_.mods, (6 * $_.i) + (6 - $_.cw.length), $_.cw); //#21992 + } //#21992 + if (!bwipp_maxicode.__22043__) { //#22043 + $_ = Object.create($_); //#22043 + $_.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#22042 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_maxicode.$ctx[id] = $_[id]); //#22042 + bwipp_maxicode.__22043__ = 1; //#22042 + $_ = Object.getPrototypeOf($_); //#22042 + } //#22042 + $_.pixs = $a(864); //#22046 + $_.j = 0; //#22047 + for (var _D6 = 0, _D5 = $_.mods.length - 1; _D6 <= _D5; _D6 += 1) { //#22054 + $_.i = _D6; //#22049 + if ($get($_.mods, $_.i) == 1) { //#22053 + $put($_.pixs, $_.j, $get($_.modmap, $_.i)); //#22051 + $_.j = $_.j + 1; //#22052 + } //#22052 + } //#22052 + $k[$j++] = Infinity; //#22055 + $aload($geti($_.pixs, 0, $_.j)); //#22055 + $k[$j++] = 28; //#22055 + $k[$j++] = 29; //#22055 + $k[$j++] = 280; //#22055 + $k[$j++] = 281; //#22055 + $k[$j++] = 311; //#22055 + $k[$j++] = 457; //#22055 + $k[$j++] = 488; //#22055 + $k[$j++] = 500; //#22055 + $k[$j++] = 530; //#22055 + $k[$j++] = 670; //#22055 + $k[$j++] = 700; //#22055 + $k[$j++] = 677; //#22055 + $k[$j++] = 707; //#22055 + $_.pixs = $a(); //#22055 + var _DM = new Map([ ["ren", bwipp_renmaximatrix], ["pixs", $_.pixs], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#21773 - $k[$j++] = _DL; //#21776 - if (!$_.dontdraw) { //#21776 - bwipp_renmaximatrix(); //#21776 - } //#21776 - $_ = Object.getPrototypeOf($_); //#21778 - $_ = Object.getPrototypeOf($_); //#21780 -} - + ]); //#22065 + $k[$j++] = _DM; //#22068 + if (!$_.dontdraw) { //#22068 + bwipp_renmaximatrix(); //#22068 + } //#22068 + $_ = Object.getPrototypeOf($_); //#22070 + $_ = Object.getPrototypeOf($_); //#22072 +} //bwipp_maxicode function bwipp_azteccode() { - $_ = Object.create($_); //#21811 - $_.dontdraw = false; //#21814 - $_.format = "full"; //#21815 - $_.readerinit = false; //#21816 - $_.layers = -1; //#21817 - $_.eclevel = 23; //#21818 - $_.ecaddchars = 3; //#21819 - $_.raw = false; //#21820 - $_.parse = false; //#21821 - $_.parsefnc = false; //#21822 - $k[$j++] = $_; //#21824 - bwipp_processoptions(); //#21824 - $_.options = $k[--$j]; //#21824 - $_.barcode = $k[--$j]; //#21825 - bwipp_loadctx(bwipp_azteccode) //#21827 - if ($eq($_.barcode, "")) { //#21831 - $k[$j++] = 'bwipp.aztecEmptyData#21830'; //#21830 - $k[$j++] = "The data must not be empty"; //#21830 - bwipp_raiseerror(); //#21830 - } //#21830 - if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#21835 - $k[$j++] = 'bwipp.aztecInvalidEClevel#21834'; //#21834 - $k[$j++] = "The EC percentage must be from 5 to 95"; //#21834 - bwipp_raiseerror(); //#21834 - } //#21834 - if ($_.ecaddchars < 3) { //#21839 - $k[$j++] = 'bwipp.aztecInvalidECaddChars#21838'; //#21838 - $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#21838 - bwipp_raiseerror(); //#21838 - } //#21838 - if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#21843 - $k[$j++] = 'bwipp.aztecInvalidFormat#21842'; //#21842 - $k[$j++] = "The format must be either full, compact or rune"; //#21842 - bwipp_raiseerror(); //#21842 - } //#21842 - if ($eq($_.format, "full")) { //#21852 - if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#21848 - $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#21847'; //#21847 - $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#21847 - bwipp_raiseerror(); //#21847 - } //#21847 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#21851 - $k[$j++] = 'bwipp.aztecFullInvalidLayers#21850'; //#21850 - $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#21850 - bwipp_raiseerror(); //#21850 - } //#21850 - } //#21850 - if ($eq($_.format, "compact")) { //#21864 - if ($_.readerinit) { //#21860 - if (($_.layers != -1) && ($_.layers != 1)) { //#21858 - $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#21857'; //#21857 - $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#21857 - bwipp_raiseerror(); //#21857 - } //#21857 - $_.layers = 1; //#21859 - } //#21859 - if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#21863 - $k[$j++] = 'bwipp.aztecCompactInvalidLayers#21862'; //#21862 - $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#21862 - bwipp_raiseerror(); //#21862 - } //#21862 - } //#21862 - if ($eq($_.format, "rune")) { //#21884 - if ($_.layers != -1) { //#21869 - $k[$j++] = 'bwipp.aztecRuneInvalidLayers#21868'; //#21868 - $k[$j++] = "It is not valid to specify layers for runes"; //#21868 - bwipp_raiseerror(); //#21868 - } //#21868 - if ($_.readerinit) { //#21872 - $k[$j++] = 'bwipp.aztecRuneReaderInit#21871'; //#21871 - $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#21871 - bwipp_raiseerror(); //#21871 - } //#21871 - if ($_.barcode.length == 0) { //#21875 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21874'; //#21874 - $k[$j++] = "Aztec runes must be numeric"; //#21874 - bwipp_raiseerror(); //#21874 - } //#21874 - $forall($_.barcode, function() { //#21880 - var _S = $k[--$j]; //#21877 - if ((_S < 48) || (_S > 57)) { //#21879 - $k[$j++] = 'bwipp.aztecRuneNotNumeric#21878'; //#21878 - $k[$j++] = "Aztec runes must be numeric"; //#21878 - bwipp_raiseerror(); //#21878 - } //#21878 - }); //#21878 - var _U = $cvi($_.barcode); //#21881 - if ((_U < 0) || (_U > 255)) { //#21883 - $k[$j++] = 'bwipp.aztecRuneInvalid#21882'; //#21882 - $k[$j++] = "Aztec runes must be 0 to 255"; //#21882 - bwipp_raiseerror(); //#21882 - } //#21882 - } //#21882 - $_.fn1 = -1; //#21887 + $_ = Object.create($_); //#22103 + $_.dontdraw = false; //#22106 + $_.format = "full"; //#22107 + $_.readerinit = false; //#22108 + $_.layers = -1; //#22109 + $_.eclevel = 23; //#22110 + $_.ecaddchars = 3; //#22111 + $_.raw = false; //#22112 + $_.parse = false; //#22113 + $_.parsefnc = false; //#22114 + $k[$j++] = $_; //#22116 + bwipp_processoptions(); //#22116 + $_.options = $k[--$j]; //#22116 + $_.barcode = $k[--$j]; //#22117 + bwipp_loadctx(bwipp_azteccode) //#22119 + if ($eq($_.barcode, "")) { //#22123 + $k[$j++] = 'bwipp.aztecEmptyData#22122'; //#22122 + $k[$j++] = "The data must not be empty"; //#22122 + bwipp_raiseerror(); //#22122 + } //#22122 + if (($_.eclevel < 5) || ($_.eclevel > 95)) { //#22127 + $k[$j++] = 'bwipp.aztecInvalidEClevel#22126'; //#22126 + $k[$j++] = "The EC percentage must be from 5 to 95"; //#22126 + bwipp_raiseerror(); //#22126 + } //#22126 + if ($_.ecaddchars < 3) { //#22131 + $k[$j++] = 'bwipp.aztecInvalidECaddChars#22130'; //#22130 + $k[$j++] = "The number of additional EC codewords must be 3 or more"; //#22130 + bwipp_raiseerror(); //#22130 + } //#22130 + if ($ne($_.format, "full") && ($ne($_.format, "compact") && $ne($_.format, "rune"))) { //#22135 + $k[$j++] = 'bwipp.aztecInvalidFormat#22134'; //#22134 + $k[$j++] = "The format must be either full, compact or rune"; //#22134 + bwipp_raiseerror(); //#22134 + } //#22134 + if ($eq($_.format, "full")) { //#22144 + if ($_.readerinit && (($_.layers < 1) || ($_.layers > 22))) { //#22140 + $k[$j++] = 'bwipp.aztecFullInitInvalidLayers#22139'; //#22139 + $k[$j++] = "Full-range symbols for reader programming must specify from 1 to 22 layers"; //#22139 + bwipp_raiseerror(); //#22139 + } //#22139 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 32))) { //#22143 + $k[$j++] = 'bwipp.aztecFullInvalidLayers#22142'; //#22142 + $k[$j++] = "Layers for full-range symbols must be from 1 to 32"; //#22142 + bwipp_raiseerror(); //#22142 + } //#22142 + } //#22142 + if ($eq($_.format, "compact")) { //#22156 + if ($_.readerinit) { //#22152 + if (($_.layers != -1) && ($_.layers != 1)) { //#22150 + $k[$j++] = 'bwipp.aztecCompactInitInvalidLayers#22149'; //#22149 + $k[$j++] = "Compact symbols for reader programming must have 1 layer"; //#22149 + bwipp_raiseerror(); //#22149 + } //#22149 + $_.layers = 1; //#22151 + } //#22151 + if (($_.layers != -1) && (($_.layers < 1) || ($_.layers > 4))) { //#22155 + $k[$j++] = 'bwipp.aztecCompactInvalidLayers#22154'; //#22154 + $k[$j++] = "Layers for compact symbols must be from 1 to 4"; //#22154 + bwipp_raiseerror(); //#22154 + } //#22154 + } //#22154 + if ($eq($_.format, "rune")) { //#22176 + if ($_.layers != -1) { //#22161 + $k[$j++] = 'bwipp.aztecRuneInvalidLayers#22160'; //#22160 + $k[$j++] = "It is not valid to specify layers for runes"; //#22160 + bwipp_raiseerror(); //#22160 + } //#22160 + if ($_.readerinit) { //#22164 + $k[$j++] = 'bwipp.aztecRuneReaderInit#22163'; //#22163 + $k[$j++] = "Reader initialisation is not compactible with Aztec Runes"; //#22163 + bwipp_raiseerror(); //#22163 + } //#22163 + if ($_.barcode.length == 0) { //#22167 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22166'; //#22166 + $k[$j++] = "Aztec runes must be numeric"; //#22166 + bwipp_raiseerror(); //#22166 + } //#22166 + $forall($_.barcode, function() { //#22172 + var _S = $k[--$j]; //#22169 + if ((_S < 48) || (_S > 57)) { //#22171 + $k[$j++] = 'bwipp.aztecRuneNotNumeric#22170'; //#22170 + $k[$j++] = "Aztec runes must be numeric"; //#22170 + bwipp_raiseerror(); //#22170 + } //#22170 + }); //#22170 + var _U = $cvi($_.barcode); //#22173 + if ((_U < 0) || (_U > 255)) { //#22175 + $k[$j++] = 'bwipp.aztecRuneInvalid#22174'; //#22174 + $k[$j++] = "Aztec runes must be 0 to 255"; //#22174 + bwipp_raiseerror(); //#22174 + } //#22174 + } //#22174 + $_.fn1 = -1; //#22179 var _Y = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1] - ]); //#21892 - $_.fncvals = _Y; //#21893 - $k[$j++] = 'msg'; //#21894 - $k[$j++] = $_.barcode; //#21894 - $k[$j++] = $_.fncvals; //#21894 - bwipp_parseinput(); //#21894 - var _b = $k[--$j]; //#21894 - $_[$k[--$j]] = _b; //#21894 - $_.msglen = $_.msg.length; //#21895 - if (!bwipp_azteccode.__21995__) { //#21995 - $_ = Object.create($_); //#21995 - $_.U = 0; //#21899 - $_.L = 1; //#21899 - $_.M = 2; //#21899 - $_.P = 3; //#21899 - $_.D = 4; //#21899 - $_.B = 5; //#21899 - $_.lu = -2; //#21902 - $_.ll = -3; //#21902 - $_.lm = -4; //#21902 - $_.lp = -5; //#21903 - $_.ld = -6; //#21903 - $_.su = -7; //#21903 - $_.sp = -8; //#21904 - $_.sb = -9; //#21904 - $_.fl = -10; //#21904 - $_.p2 = -11; //#21905 - $_.p3 = -12; //#21905 - $_.p4 = -13; //#21905 - $_.p5 = -14; //#21905 - $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#21942 - $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#21945 - for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#21954 - $_.i = _1c; //#21947 - $_.encs = $get($_.charmaps, $_.i); //#21948 - for (var _1g = 0; _1g <= 4; _1g += 1) { //#21953 - $_.j = _1g; //#21950 - var _1j = $get($_.encs, $_.j); //#21951 - $k[$j++] = _1j; //#21951 - if ($eq($type(_1j), 'stringtype')) { //#21951 - var _1m = $get($k[--$j], 0); //#21951 - $k[$j++] = _1m; //#21951 - } //#21951 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#21952 - } //#21952 - } //#21952 + ]); //#22184 + $_.fncvals = _Y; //#22185 + $k[$j++] = 'msg'; //#22186 + $k[$j++] = $_.barcode; //#22186 + $k[$j++] = $_.fncvals; //#22186 + bwipp_parseinput(); //#22186 + var _b = $k[--$j]; //#22186 + $_[$k[--$j]] = _b; //#22186 + $_.msglen = $_.msg.length; //#22187 + if (!bwipp_azteccode.__22287__) { //#22287 + $_ = Object.create($_); //#22287 + $_.U = 0; //#22191 + $_.L = 1; //#22191 + $_.M = 2; //#22191 + $_.P = 3; //#22191 + $_.D = 4; //#22191 + $_.B = 5; //#22191 + $_.lu = -2; //#22194 + $_.ll = -3; //#22194 + $_.lm = -4; //#22194 + $_.lp = -5; //#22195 + $_.ld = -6; //#22195 + $_.su = -7; //#22195 + $_.sp = -8; //#22196 + $_.sb = -9; //#22196 + $_.fl = -10; //#22196 + $_.p2 = -11; //#22197 + $_.p3 = -12; //#22197 + $_.p4 = -13; //#22197 + $_.p5 = -14; //#22197 + $_.charmaps = $a([$a([$_.sp, $_.sp, $_.sp, $_.fl, $_.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $_.p2, "0"]), $a(["B", "b", 2, $_.p3, "1"]), $a(["C", "c", 3, $_.p4, "2"]), $a(["D", "d", 4, $_.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $_.lu]), $a(["N", "n", 27, "*", $_.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$_.ll, $_.su, $_.ll, "]", -99]), $a([$_.lm, $_.lm, $_.lu, "{", -99]), $a([$_.ld, $_.ld, $_.lp, "}", -99]), $a([$_.sb, $_.sb, $_.sb, $_.lu, -99])]); //#22234 + $_.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#22237 + for (var _1c = 0, _1b = $_.charmaps.length - 1; _1c <= _1b; _1c += 1) { //#22246 + $_.i = _1c; //#22239 + $_.encs = $get($_.charmaps, $_.i); //#22240 + for (var _1g = 0; _1g <= 4; _1g += 1) { //#22245 + $_.j = _1g; //#22242 + var _1j = $get($_.encs, $_.j); //#22243 + $k[$j++] = _1j; //#22243 + if ($eq($type(_1j), 'stringtype')) { //#22243 + var _1m = $get($k[--$j], 0); //#22243 + $k[$j++] = _1m; //#22243 + } //#22243 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#22244 + } //#22244 + } //#22244 var _1w = new Map([ ["\x0d\x0a", $_.p2], [". ", $_.p3], [", ", $_.p4], [": ", $_.p5] - ]); //#21961 - $_.pcomp = _1w; //#21962 - $_.e = 10000; //#21964 - var _21 = $a([4, 9, 9, 14, 0, 14]); //#21972 - $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), _21, $a([0, 0, 0, 0, 0, 0])]); //#21974 - $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#21984 - $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#21993 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#21993 - bwipp_azteccode.__21995__ = 1; //#21993 - $_ = Object.getPrototypeOf($_); //#21993 - } //#21993 - $_.msgbits = ""; //#21998 - if ($ne($_.format, "rune") && $_.raw) { //#21999 - $_.msgbits = $_.barcode; //#21999 - } //#21999 - if ($ne($_.format, "rune") && (!$_.raw)) { //#22290 + ]); //#22253 + $_.pcomp = _1w; //#22254 + $_.e = 1000000; //#22256 + var _22 = $a([0, 0, 0, 0, 0, 0]); //#22265 + $_.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), _22]); //#22266 + $_.latseq = $a([$a([$a([]), $a([$_.ll]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.ld, $_.lu]), $a([]), $a([$_.lm]), $a([$_.lm, $_.lp]), $a([$_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([]), $a([$_.lp]), $a([$_.lu, $_.ld]), $a([$_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([]), $a([$_.lu, $_.ld]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.lu, $_.ll]), $a([$_.lu, $_.lm]), $a([$_.lu, $_.lm, $_.lp]), $a([]), $a([$_.lu, $_.sb])]), $a([$a([$_.lu]), $a([$_.ll]), $a([$_.lm]), $a([]), $a([]), $a([])])]); //#22276 + $_.shftlen = $a([$a([$_.e, $_.e, $_.e, 5, $_.e]), $a([5, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, 5, $_.e]), $a([$_.e, $_.e, $_.e, $_.e, $_.e]), $a([4, $_.e, $_.e, 4, $_.e])]); //#22285 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22285 + bwipp_azteccode.__22287__ = 1; //#22285 + $_ = Object.getPrototypeOf($_); //#22285 + } //#22285 + $_.msgbits = ""; //#22290 + if ($ne($_.format, "rune") && $_.raw) { //#22291 + $_.msgbits = $_.barcode; //#22291 + } //#22291 + if ($ne($_.format, "rune") && (!$_.raw)) { //#22582 $_.charsize = function() { - var _3v = $k[--$j]; //#22003 - $k[$j++] = _3v; //#22014 - if (_3v >= 0) { //#22012 - $j--; //#22005 - var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22005 - $k[$j++] = _3y; //#22005 - } else { //#22012 - var _3z = $k[--$j]; //#22007 - var _40 = $k[--$j]; //#22007 - $k[$j++] = _3z; //#22007 - $k[$j++] = _40; //#22007 - $j--; //#22007 - var _41 = $k[--$j]; //#22008 - $k[$j++] = _41; //#22013 - if (_41 == $_.fn1) { //#22012 - $j--; //#22009 - $k[$j++] = 8; //#22009 - } else { //#22012 - var _44 = $f((-$k[--$j]) - 1000000); //#22011 - $k[$j++] = _44; //#22011 - if (_44 == 0) { //#22011 - $j--; //#22011 - $k[$j++] = 1; //#22011 - } //#22011 - var _45 = $k[--$j]; //#22012 - $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22012 - } //#22012 - } //#22012 - }; //#22012 - $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22018 - $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22019 - $_.backto = $_.U; //#22021 - $_.lastchar = ""; //#22022 - $forall($_.msg, function() { //#22174 - $_.char = $k[--$j]; //#22027 - for (;;) { //#22053 - $_.imp = false; //#22031 - var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22032 - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22051 - $_.x = $get(_4S, _4T); //#22033 - var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22034 - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22050 - $_.y = $get(_4c, _4d); //#22035 - if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22049 - $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22037 - if ($_.cost < $get($_.curlen, $_.y)) { //#22048 - $put($_.curlen, $_.y, $_.cost); //#22039 - $k[$j++] = $_.curseq; //#22042 - $k[$j++] = $_.y; //#22042 - $k[$j++] = Infinity; //#22042 - $aload($get($_.curseq, $_.x)); //#22041 - $aload($get($get($_.latseq, $_.x), $_.y)); //#22042 - var _59 = $a(); //#22042 - var _5A = $k[--$j]; //#22043 - $put($k[--$j], _5A, _59); //#22043 - if ($_.y == $_.B) { //#22046 - $k[$j++] = 'backto'; //#22045 - if (($_.x == $_.P) || ($_.x == $_.D)) { //#22045 - $k[$j++] = $_.U; //#22045 - } else { //#22045 - $k[$j++] = $_.x; //#22045 - } //#22045 - var _5K = $k[--$j]; //#22045 - $_[$k[--$j]] = _5K; //#22045 - } //#22045 - $_.imp = true; //#22047 - } //#22047 - } //#22047 - } //#22047 - } //#22047 - if (!$_.imp) { //#22052 - break; //#22052 - } //#22052 - } //#22052 - $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22056 - $_.nxtseq = $a(6); //#22057 - var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22059 - for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22098 - $_.x = $get(_5b, _5c); //#22060 - for (;;) { //#22096 - if ($_.char >= 0) { //#22068 - if ($_.x != $_.B) { //#22066 - var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22066 - if (!_5m) { //#22066 - break; //#22066 - } //#22066 - } //#22066 - } else { //#22068 - if ($_.x != $_.P) { //#22068 - break; //#22068 - } //#22068 - } //#22068 - $k[$j++] = 'cost'; //#22072 - $k[$j++] = $get($_.curlen, $_.x); //#22072 - $k[$j++] = $_.x; //#22072 - $k[$j++] = $_.char; //#22072 - $_.charsize(); //#22072 - var _5u = $k[--$j]; //#22072 - var _5v = $k[--$j]; //#22072 - $_[$k[--$j]] = $f(_5v + _5u); //#22072 - if ($_.cost < $get($_.nxtlen, $_.x)) { //#22076 - $put($_.nxtlen, $_.x, $_.cost); //#22074 - $k[$j++] = $_.nxtseq; //#22075 - $k[$j++] = $_.x; //#22075 - $k[$j++] = Infinity; //#22075 - $aload($get($_.curseq, $_.x)); //#22075 - $k[$j++] = $_.char; //#22075 - var _6A = $a(); //#22075 - var _6B = $k[--$j]; //#22075 - $put($k[--$j], _6B, _6A); //#22075 - } //#22075 - if ($_.x == $_.B) { //#22079 - break; //#22079 - } //#22079 - var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22080 - for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22093 - $_.y = $get(_6K, _6L); //#22081 - if ($ne($_.x, $_.y)) { //#22092 - $k[$j++] = 'cost'; //#22083 - $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22083 - $k[$j++] = $_.x; //#22083 - $k[$j++] = $_.char; //#22083 - $_.charsize(); //#22083 - var _6a = $k[--$j]; //#22083 - var _6b = $k[--$j]; //#22083 - $_[$k[--$j]] = $f(_6b + _6a); //#22083 - if ($_.cost < $get($_.nxtlen, $_.y)) { //#22091 - $put($_.nxtlen, $_.y, $_.cost); //#22085 - $k[$j++] = $_.nxtseq; //#22089 - $k[$j++] = $_.y; //#22089 - $k[$j++] = Infinity; //#22089 - $aload($get($_.curseq, $_.y)); //#22087 - var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22088 - $k[$j++] = _6r; //#22089 - $k[$j++] = $_.char; //#22089 - var _6t = $a(); //#22089 - var _6u = $k[--$j]; //#22090 - $put($k[--$j], _6u, _6t); //#22090 - } //#22090 - } //#22090 - } //#22090 - break; //#22095 - } //#22095 - } //#22095 - if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22159 - var _6y = $s(2); //#22102 - $put(_6y, 0, $_.lastchar); //#22102 - $put(_6y, 1, $_.char); //#22102 - $_.pchars = _6y; //#22102 - var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22103 - if (_73) { //#22158 - var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22104 - for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22157 - $_.i = $get(_79, _7A); //#22105 - $_.inP = true; //#22106 - if ($_.i == $_.M) { //#22111 - if ($_.lastchar == 13) { //#22108 - $_.inP = false; //#22108 - } //#22108 - } else { //#22111 - if ($_.i == $_.D) { //#22112 - if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22111 - $_.inP = false; //#22111 - } //#22111 - } //#22111 - } //#22111 - if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22156 - $_.curseqi = $get($_.curseq, $_.i); //#22115 - $_.lastld = false; //#22116 - $_.lastsp = false; //#22117 - $_.lastidx = -1; //#22118 - for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22139 - $_.idx = _7V; //#22120 - $_.ch = $get($_.curseqi, $_.idx); //#22121 - if ($_.lastidx == -1) { //#22136 - if ($eq($_.ch, $_.lastchar)) { //#22128 - $_.lastidx = $_.idx; //#22124 - if ($_.idx > 0) { //#22127 - if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22126 - $_.lastsp = true; //#22126 - } //#22126 - } //#22126 - } //#22126 - } else { //#22136 - if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22137 - if ($_.i == $_.P) { //#22134 - if ($_.ch == $_.ld) { //#22132 - $_.lastld = true; //#22132 - } //#22132 - } else { //#22134 - if ($_.ch != $_.lp) { //#22134 - $_.inP = $_.lastsp; //#22134 - } //#22134 - } //#22134 - break; //#22136 - } //#22136 - } //#22136 - } //#22136 - if ($_.inP && ($_.lastidx >= 0)) { //#22155 - $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22141 - if ($_.lastidx < ($_.curseqi.length - 1)) { //#22153 - if ($_.i == $_.P) { //#22150 - if ($_.lastld) { //#22144 - $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22144 - } //#22144 - $k[$j++] = $_.nxtseq; //#22146 - $k[$j++] = $_.i; //#22146 - $k[$j++] = Infinity; //#22146 - $aload($_.curseqi); //#22146 - $r($_.curseqi.length - $_.lastidx, -1); //#22146 - $j--; //#22146 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22146 - var _8H = $a(); //#22146 - var _8I = $k[--$j]; //#22146 - $put($k[--$j], _8I, _8H); //#22146 - } else { //#22150 - $k[$j++] = $_.nxtseq; //#22149 - $k[$j++] = $_.i; //#22149 - $k[$j++] = Infinity; //#22149 - $aload($_.curseqi); //#22149 - var _8N = $a(); //#22149 - var _8O = $k[--$j]; //#22149 - $put($k[--$j], _8O, _8N); //#22149 - $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22150 - } //#22150 - } else { //#22153 - $k[$j++] = $_.nxtseq; //#22153 - $k[$j++] = $_.i; //#22153 - $k[$j++] = Infinity; //#22153 - $aload($_.curseqi); //#22153 - $j--; //#22153 - $k[$j++] = $get($_.pcomp, $_.pchars); //#22153 - var _8d = $a(); //#22153 - var _8e = $k[--$j]; //#22153 - $put($k[--$j], _8e, _8d); //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - } //#22153 - if ($ne($get($_.nxtseq, $_.B), null)) { //#22168 - $_.numbytes = 0; //#22163 - $forall($get($_.nxtseq, $_.B), function() { //#22166 - if ($k[--$j] == $_.sb) { //#22165 - $k[$j++] = 0; //#22165 - } else { //#22165 - $k[$j++] = $_.numbytes + 1; //#22165 - } //#22165 - $_.numbytes = $k[--$j]; //#22165 - }); //#22165 - if ($_.numbytes == 32) { //#22167 - $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22167 - } //#22167 - } //#22167 - $_.curlen = $_.nxtlen; //#22170 - $_.curseq = $_.nxtseq; //#22171 - $k[$j++] = 'lastchar'; //#22172 - if ($_.char >= 0) { //#22172 - $k[$j++] = $_.char; //#22172 - } else { //#22172 - $k[$j++] = ""; //#22172 - } //#22172 - var _90 = $k[--$j]; //#22172 - $_[$k[--$j]] = _90; //#22172 - }); //#22172 - $_.minseq = $_.e; //#22177 - var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22178 - for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22184 - $_.i = $get(_99, _9A); //#22179 - if ($get($_.curlen, $_.i) < $_.minseq) { //#22183 - $_.minseq = $get($_.curlen, $_.i); //#22181 - $_.seq = $get($_.curseq, $_.i); //#22182 - } //#22182 - } //#22182 + var _3v = $k[--$j]; //#22295 + $k[$j++] = _3v; //#22306 + if (_3v >= 0) { //#22304 + $j--; //#22297 + var _3y = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#22297 + $k[$j++] = _3y; //#22297 + } else { //#22304 + var _3z = $k[--$j]; //#22299 + var _40 = $k[--$j]; //#22299 + $k[$j++] = _3z; //#22299 + $k[$j++] = _40; //#22299 + $j--; //#22299 + var _41 = $k[--$j]; //#22300 + $k[$j++] = _41; //#22305 + if (_41 == $_.fn1) { //#22304 + $j--; //#22301 + $k[$j++] = 8; //#22301 + } else { //#22304 + var _44 = $f((-$k[--$j]) - 1000000); //#22303 + $k[$j++] = _44; //#22303 + if (_44 == 0) { //#22303 + $j--; //#22303 + $k[$j++] = 1; //#22303 + } //#22303 + var _45 = $k[--$j]; //#22304 + $k[$j++] = (((~~(Math.log(_45) / Math.log(10))) + 1) * 4) + 8; //#22304 + } //#22304 + } //#22304 + }; //#22304 + $_.curlen = $a([0, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22310 + $_.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#22311 + $_.backto = $_.U; //#22313 + $_.lastchar = ""; //#22314 + $forall($_.msg, function() { //#22466 + $_.char = $k[--$j]; //#22319 + for (;;) { //#22345 + $_.imp = false; //#22323 + var _4S = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22324 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#22343 + $_.x = $get(_4S, _4T); //#22325 + var _4c = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22326 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#22342 + $_.y = $get(_4c, _4d); //#22327 + if (($_.x != $_.B) || ($_.y == $_.backto)) { //#22341 + $_.cost = $f($get($_.curlen, $_.x) + $get($get($_.latlen, $_.x), $_.y)); //#22329 + if ($_.cost < $get($_.curlen, $_.y)) { //#22340 + $put($_.curlen, $_.y, $_.cost); //#22331 + $k[$j++] = $_.curseq; //#22334 + $k[$j++] = $_.y; //#22334 + $k[$j++] = Infinity; //#22332 + $aload($get($_.curseq, $_.x)); //#22333 + $aload($get($get($_.latseq, $_.x), $_.y)); //#22334 + var _59 = $a(); //#22334 + var _5A = $k[--$j]; //#22335 + $put($k[--$j], _5A, _59); //#22335 + if ($_.y == $_.B) { //#22338 + $k[$j++] = 'backto'; //#22337 + if (($_.x == $_.P) || ($_.x == $_.D)) { //#22337 + $k[$j++] = $_.U; //#22337 + } else { //#22337 + $k[$j++] = $_.x; //#22337 + } //#22337 + var _5K = $k[--$j]; //#22337 + $_[$k[--$j]] = _5K; //#22337 + } //#22337 + $_.imp = true; //#22339 + } //#22339 + } //#22339 + } //#22339 + } //#22339 + if (!$_.imp) { //#22344 + break; //#22344 + } //#22344 + } //#22344 + $_.nxtlen = $a([$_.e, $_.e, $_.e, $_.e, $_.e, $_.e]); //#22348 + $_.nxtseq = $a(6); //#22349 + var _5b = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22351 + for (var _5c = 0, _5d = _5b.length; _5c < _5d; _5c++) { //#22390 + $_.x = $get(_5b, _5c); //#22352 + for (;;) { //#22388 + if ($_.char >= 0) { //#22360 + if ($_.x != $_.B) { //#22358 + var _5m = $get($get($_.charvals, $_.x), $_.char) !== undefined; //#22358 + if (!_5m) { //#22358 + break; //#22358 + } //#22358 + } //#22358 + } else { //#22360 + if ($_.x != $_.P) { //#22360 + break; //#22360 + } //#22360 + } //#22360 + $k[$j++] = 'cost'; //#22364 + $k[$j++] = $get($_.curlen, $_.x); //#22364 + $k[$j++] = $_.x; //#22364 + $k[$j++] = $_.char; //#22364 + $_.charsize(); //#22364 + var _5u = $k[--$j]; //#22364 + var _5v = $k[--$j]; //#22364 + $_[$k[--$j]] = $f(_5v + _5u); //#22364 + if ($_.cost < $get($_.nxtlen, $_.x)) { //#22368 + $put($_.nxtlen, $_.x, $_.cost); //#22366 + $k[$j++] = $_.nxtseq; //#22367 + $k[$j++] = $_.x; //#22367 + $k[$j++] = Infinity; //#22367 + $aload($get($_.curseq, $_.x)); //#22367 + $k[$j++] = $_.char; //#22367 + var _6A = $a(); //#22367 + var _6B = $k[--$j]; //#22367 + $put($k[--$j], _6B, _6A); //#22367 + } //#22367 + if ($_.x == $_.B) { //#22371 + break; //#22371 + } //#22371 + var _6K = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22372 + for (var _6L = 0, _6M = _6K.length; _6L < _6M; _6L++) { //#22385 + $_.y = $get(_6K, _6L); //#22373 + if ($ne($_.x, $_.y)) { //#22384 + $k[$j++] = 'cost'; //#22375 + $k[$j++] = $f($get($_.curlen, $_.y) + $get($get($_.shftlen, $_.y), $_.x)); //#22375 + $k[$j++] = $_.x; //#22375 + $k[$j++] = $_.char; //#22375 + $_.charsize(); //#22375 + var _6a = $k[--$j]; //#22375 + var _6b = $k[--$j]; //#22375 + $_[$k[--$j]] = $f(_6b + _6a); //#22375 + if ($_.cost < $get($_.nxtlen, $_.y)) { //#22383 + $put($_.nxtlen, $_.y, $_.cost); //#22377 + $k[$j++] = $_.nxtseq; //#22381 + $k[$j++] = $_.y; //#22381 + $k[$j++] = Infinity; //#22378 + $aload($get($_.curseq, $_.y)); //#22379 + var _6r = ($_.x == $_.U) ? $_.su : $_.sp; //#22380 + $k[$j++] = _6r; //#22381 + $k[$j++] = $_.char; //#22381 + var _6t = $a(); //#22381 + var _6u = $k[--$j]; //#22382 + $put($k[--$j], _6u, _6t); //#22382 + } //#22382 + } //#22382 + } //#22382 + break; //#22387 + } //#22387 + } //#22387 + if ($ne($_.lastchar, "") && ($_.char >= 0)) { //#22451 + var _6y = $s(2); //#22394 + $put(_6y, 0, $_.lastchar); //#22394 + $put(_6y, 1, $_.char); //#22394 + $_.pchars = _6y; //#22394 + var _73 = $get($_.pcomp, $_.pchars) !== undefined; //#22395 + if (_73) { //#22450 + var _79 = $a([$_.U, $_.L, $_.M, $_.P, $_.D]); //#22396 + for (var _7A = 0, _7B = _79.length; _7A < _7B; _7A++) { //#22449 + $_.i = $get(_79, _7A); //#22397 + $_.inP = true; //#22398 + if ($_.i == $_.M) { //#22403 + if ($_.lastchar == 13) { //#22400 + $_.inP = false; //#22400 + } //#22400 + } else { //#22403 + if ($_.i == $_.D) { //#22404 + if (($_.lastchar == 44) || ($_.lastchar == 46)) { //#22403 + $_.inP = false; //#22403 + } //#22403 + } //#22403 + } //#22403 + if ($_.inP && $lt($get($_.curlen, $_.i), $get($_.nxtlen, $_.i))) { //#22448 + $_.curseqi = $get($_.curseq, $_.i); //#22407 + $_.lastld = false; //#22408 + $_.lastsp = false; //#22409 + $_.lastidx = -1; //#22410 + for (var _7V = $_.curseqi.length - 1; _7V >= 0; _7V -= 1) { //#22431 + $_.idx = _7V; //#22412 + $_.ch = $get($_.curseqi, $_.idx); //#22413 + if ($_.lastidx == -1) { //#22428 + if ($eq($_.ch, $_.lastchar)) { //#22420 + $_.lastidx = $_.idx; //#22416 + if ($_.idx > 0) { //#22419 + if ($get($_.curseqi, $_.idx - 1) == $_.sp) { //#22418 + $_.lastsp = true; //#22418 + } //#22418 + } //#22418 + } //#22418 + } else { //#22428 + if (($_.ch < 0) && ($_.ch >= $_.ld)) { //#22429 + if ($_.i == $_.P) { //#22426 + if ($_.ch == $_.ld) { //#22424 + $_.lastld = true; //#22424 + } //#22424 + } else { //#22426 + if ($_.ch != $_.lp) { //#22426 + $_.inP = $_.lastsp; //#22426 + } //#22426 + } //#22426 + break; //#22428 + } //#22428 + } //#22428 + } //#22428 + if ($_.inP && ($_.lastidx >= 0)) { //#22447 + $put($_.nxtlen, $_.i, $get($_.curlen, $_.i)); //#22433 + if ($_.lastidx < ($_.curseqi.length - 1)) { //#22445 + if ($_.i == $_.P) { //#22442 + if ($_.lastld) { //#22436 + $put($_.nxtlen, $_.i, $f($get($_.nxtlen, $_.i) + 1)); //#22436 + } //#22436 + $k[$j++] = $_.nxtseq; //#22438 + $k[$j++] = $_.i; //#22438 + $k[$j++] = Infinity; //#22438 + $aload($_.curseqi); //#22438 + $r($_.curseqi.length - $_.lastidx, -1); //#22438 + $j--; //#22438 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22438 + var _8H = $a(); //#22438 + var _8I = $k[--$j]; //#22438 + $put($k[--$j], _8I, _8H); //#22438 + } else { //#22442 + $k[$j++] = $_.nxtseq; //#22441 + $k[$j++] = $_.i; //#22441 + $k[$j++] = Infinity; //#22441 + $aload($_.curseqi); //#22441 + var _8N = $a(); //#22441 + var _8O = $k[--$j]; //#22441 + $put($k[--$j], _8O, _8N); //#22441 + $put($get($_.nxtseq, $_.i), $_.lastidx, $get($_.pcomp, $_.pchars)); //#22442 + } //#22442 + } else { //#22445 + $k[$j++] = $_.nxtseq; //#22445 + $k[$j++] = $_.i; //#22445 + $k[$j++] = Infinity; //#22445 + $aload($_.curseqi); //#22445 + $j--; //#22445 + $k[$j++] = $get($_.pcomp, $_.pchars); //#22445 + var _8d = $a(); //#22445 + var _8e = $k[--$j]; //#22445 + $put($k[--$j], _8e, _8d); //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + } //#22445 + if ($ne($get($_.nxtseq, $_.B), null)) { //#22460 + $_.numbytes = 0; //#22455 + $forall($get($_.nxtseq, $_.B), function() { //#22458 + if ($k[--$j] == $_.sb) { //#22457 + $k[$j++] = 0; //#22457 + } else { //#22457 + $k[$j++] = $_.numbytes + 1; //#22457 + } //#22457 + $_.numbytes = $k[--$j]; //#22457 + }); //#22457 + if ($_.numbytes == 32) { //#22459 + $put($_.nxtlen, $_.B, $f($get($_.nxtlen, $_.B) + 11)); //#22459 + } //#22459 + } //#22459 + $_.curlen = $_.nxtlen; //#22462 + $_.curseq = $_.nxtseq; //#22463 + $k[$j++] = 'lastchar'; //#22464 + if ($_.char >= 0) { //#22464 + $k[$j++] = $_.char; //#22464 + } else { //#22464 + $k[$j++] = ""; //#22464 + } //#22464 + var _90 = $k[--$j]; //#22464 + $_[$k[--$j]] = _90; //#22464 + }); //#22464 + $_.minseq = $_.e; //#22469 + var _99 = $a([$_.U, $_.L, $_.M, $_.P, $_.D, $_.B]); //#22470 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#22476 + $_.i = $get(_99, _9A); //#22471 + if ($get($_.curlen, $_.i) < $_.minseq) { //#22475 + $_.minseq = $get($_.curlen, $_.i); //#22473 + $_.seq = $get($_.curseq, $_.i); //#22474 + } //#22474 + } //#22474 $_.tobin = function() { - var _9O = $s($k[--$j]); //#22188 - $k[$j++] = _9O; //#22188 - for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22188 - var _9R = $k[--$j]; //#22188 - $put(_9R, _9Q, 48); //#22188 - $k[$j++] = _9R; //#22188 - } //#22188 - var _9S = $k[--$j]; //#22189 - var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22189 - $puti(_9S, _9S.length - _9V.length, _9V); //#22189 - $k[$j++] = _9S; //#22189 - }; //#22189 + var _9O = $s($k[--$j]); //#22480 + $k[$j++] = _9O; //#22480 + for (var _9Q = 0, _9P = _9O.length - 1; _9Q <= _9P; _9Q += 1) { //#22480 + var _9R = $k[--$j]; //#22480 + $put(_9R, _9Q, 48); //#22480 + $k[$j++] = _9R; //#22480 + } //#22480 + var _9S = $k[--$j]; //#22481 + var _9V = $cvrs($s(_9S.length), $k[--$j], 2); //#22481 + $puti(_9S, _9S.length - _9V.length, _9V); //#22481 + $k[$j++] = _9S; //#22481 + }; //#22481 $_.encu = function() { - var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22192 - $k[$j++] = _9a; //#22192 - $k[$j++] = 5; //#22192 - $_.tobin(); //#22192 - }; //#22192 + var _9a = $get($get($_.charvals, $_.U), $k[--$j]); //#22484 + $k[$j++] = _9a; //#22484 + $k[$j++] = 5; //#22484 + $_.tobin(); //#22484 + }; //#22484 $_.encl = function() { - var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22193 - $k[$j++] = _9f; //#22193 - $k[$j++] = 5; //#22193 - $_.tobin(); //#22193 - }; //#22193 + var _9f = $get($get($_.charvals, $_.L), $k[--$j]); //#22485 + $k[$j++] = _9f; //#22485 + $k[$j++] = 5; //#22485 + $_.tobin(); //#22485 + }; //#22485 $_.encm = function() { - var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22194 - $k[$j++] = _9k; //#22194 - $k[$j++] = 5; //#22194 - $_.tobin(); //#22194 - }; //#22194 + var _9k = $get($get($_.charvals, $_.M), $k[--$j]); //#22486 + $k[$j++] = _9k; //#22486 + $k[$j++] = 5; //#22486 + $_.tobin(); //#22486 + }; //#22486 $_.encd = function() { - var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22195 - $k[$j++] = _9p; //#22195 - $k[$j++] = 4; //#22195 - $_.tobin(); //#22195 - }; //#22195 + var _9p = $get($get($_.charvals, $_.D), $k[--$j]); //#22487 + $k[$j++] = _9p; //#22487 + $k[$j++] = 4; //#22487 + $_.tobin(); //#22487 + }; //#22487 $_.encp = function() { - var _9q = $k[--$j]; //#22198 - $k[$j++] = _9q; //#22215 - if (_9q == $_.fn1) { //#22214 - $j--; //#22199 - $k[$j++] = "00000000"; //#22199 - } else { //#22214 - var _9s = $k[--$j]; //#22201 - $k[$j++] = _9s; //#22215 - if (_9s <= -1000000) { //#22214 - var _9u = $f((-$k[--$j]) - 1000000); //#22202 - $k[$j++] = _9u; //#22202 - $k[$j++] = _9u; //#22202 - if (_9u == 0) { //#22202 - $j--; //#22202 - $k[$j++] = 1; //#22202 - } //#22202 - var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22204 - var _9x = $s(((_9w + 1) * 4) + 8); //#22204 - $puti(_9x, 0, "00000"); //#22205 - $k[$j++] = _9w; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9x; //#22206 - $k[$j++] = _9w + 1; //#22206 - $k[$j++] = 3; //#22206 - $_.tobin(); //#22206 - var _9y = $k[--$j]; //#22206 - $puti($k[--$j], 5, _9y); //#22206 - var _A0 = $k[--$j]; //#22207 - var _A1 = $k[--$j]; //#22207 - var _A2 = $k[--$j]; //#22207 - $k[$j++] = _A0; //#22211 - $k[$j++] = _A2; //#22211 - for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22211 - var _A4 = $k[--$j]; //#22208 - var _A5 = $k[--$j]; //#22209 - $k[$j++] = _A5; //#22210 - $k[$j++] = ~~(_A4 / 10); //#22210 - $k[$j++] = _A5; //#22210 - $k[$j++] = (_A3 * 4) + 8; //#22210 - $k[$j++] = $f((_A4 % 10) + 2); //#22210 - $k[$j++] = 4; //#22210 - $_.tobin(); //#22210 - var _A6 = $k[--$j]; //#22210 - var _A7 = $k[--$j]; //#22210 - $puti($k[--$j], _A7, _A6); //#22210 - } //#22210 - $j--; //#22212 - } else { //#22214 - var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22214 - $k[$j++] = _AD; //#22214 - $k[$j++] = 5; //#22214 - $_.tobin(); //#22214 - } //#22214 - } //#22214 - }; //#22214 - $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22218 + var _9q = $k[--$j]; //#22490 + $k[$j++] = _9q; //#22507 + if (_9q == $_.fn1) { //#22506 + $j--; //#22491 + $k[$j++] = "00000000"; //#22491 + } else { //#22506 + var _9s = $k[--$j]; //#22493 + $k[$j++] = _9s; //#22507 + if (_9s <= -1000000) { //#22506 + var _9u = $f((-$k[--$j]) - 1000000); //#22494 + $k[$j++] = _9u; //#22494 + $k[$j++] = _9u; //#22494 + if (_9u == 0) { //#22494 + $j--; //#22494 + $k[$j++] = 1; //#22494 + } //#22494 + var _9w = ~~(Math.log($k[--$j]) / Math.log(10)); //#22496 + var _9x = $s(((_9w + 1) * 4) + 8); //#22496 + $puti(_9x, 0, "00000"); //#22497 + $k[$j++] = _9w; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9x; //#22498 + $k[$j++] = _9w + 1; //#22498 + $k[$j++] = 3; //#22498 + $_.tobin(); //#22498 + var _9y = $k[--$j]; //#22498 + $puti($k[--$j], 5, _9y); //#22498 + var _A0 = $k[--$j]; //#22499 + var _A1 = $k[--$j]; //#22499 + var _A2 = $k[--$j]; //#22499 + $k[$j++] = _A0; //#22503 + $k[$j++] = _A2; //#22503 + for (var _A3 = _A1; _A3 >= 0; _A3 -= 1) { //#22503 + var _A4 = $k[--$j]; //#22500 + var _A5 = $k[--$j]; //#22501 + $k[$j++] = _A5; //#22502 + $k[$j++] = ~~(_A4 / 10); //#22502 + $k[$j++] = _A5; //#22502 + $k[$j++] = (_A3 * 4) + 8; //#22502 + $k[$j++] = $f((_A4 % 10) + 2); //#22502 + $k[$j++] = 4; //#22502 + $_.tobin(); //#22502 + var _A6 = $k[--$j]; //#22502 + var _A7 = $k[--$j]; //#22502 + $puti($k[--$j], _A7, _A6); //#22502 + } //#22502 + $j--; //#22504 + } else { //#22506 + var _AD = $get($get($_.charvals, $_.P), $k[--$j]); //#22506 + $k[$j++] = _AD; //#22506 + $k[$j++] = 5; //#22506 + $_.tobin(); //#22506 + } //#22506 + } //#22506 + }; //#22506 + $_.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#22510 $_.addtomsgbits = function() { - $_.v = $k[--$j]; //#22221 - $puti($_.msgbits, $_.j, $_.v); //#22222 - $_.j = $_.j + $_.v.length; //#22223 - }; //#22223 - $_.state = $_.U; //#22227 - $_.msgbits = $s($_.minseq); //#22228 - $_.i = 0; //#22229 - $_.j = 0; //#22229 - for (;;) { //#22288 - if ($_.i >= $_.seq.length) { //#22230 - break; //#22230 - } //#22230 - if ($_.state != $_.B) { //#22283 - $_.char = $get($_.seq, $_.i); //#22234 - $k[$j++] = $_.char; //#22237 + $_.v = $k[--$j]; //#22513 + $puti($_.msgbits, $_.j, $_.v); //#22514 + $_.j = $_.j + $_.v.length; //#22515 + }; //#22515 + $_.state = $_.U; //#22519 + $_.msgbits = $s($_.minseq); //#22520 + $_.i = 0; //#22521 + $_.j = 0; //#22521 + for (;;) { //#22580 + if ($_.i >= $_.seq.length) { //#22522 + break; //#22522 + } //#22522 + if ($_.state != $_.B) { //#22575 + $_.char = $get($_.seq, $_.i); //#22526 + $k[$j++] = $_.char; //#22529 if ($_[$get($_.encfuncs, $_.state)]() === true) { break; - } //#22237 - $_.addtomsgbits(); //#22237 - $_.i = $_.i + 1; //#22238 - if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22244 - $k[$j++] = $get($_.seq, $_.i); //#22242 - if ($_.char == $_.su) { //#22242 - $_.encu(); //#22242 - } else { //#22242 - $_.encp(); //#22242 - } //#22242 - $_.addtomsgbits(); //#22242 - $_.i = $_.i + 1; //#22243 - } //#22243 - if ($_.char == $_.lu) { //#22247 - $_.state = $_.U; //#22247 - } //#22247 - if ($_.char == $_.ll) { //#22248 - $_.state = $_.L; //#22248 - } //#22248 - if ($_.char == $_.lm) { //#22249 - $_.state = $_.M; //#22249 - } //#22249 - if ($_.char == $_.lp) { //#22250 - $_.state = $_.P; //#22250 - } //#22250 - if ($_.char == $_.ld) { //#22251 - $_.state = $_.D; //#22251 - } //#22251 - if ($_.char == $_.sb) { //#22252 - $_.state = $_.B; //#22252 - } //#22252 - } else { //#22283 - $_.numbytes = 0; //#22257 - for (;;) { //#22261 - if (($_.i + $_.numbytes) >= $_.seq.length) { //#22258 - break; //#22258 - } //#22258 - if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22259 - break; //#22259 - } //#22259 - $_.numbytes = $_.numbytes + 1; //#22260 - } //#22260 - if ($_.numbytes <= 31) { //#22268 - $k[$j++] = $_.numbytes; //#22265 - $k[$j++] = 5; //#22265 - $_.tobin(); //#22265 - $_.addtomsgbits(); //#22265 - } else { //#22268 - $k[$j++] = 0; //#22267 - $k[$j++] = 5; //#22267 - $_.tobin(); //#22267 - $_.addtomsgbits(); //#22267 - $k[$j++] = $_.numbytes - 31; //#22268 - $k[$j++] = 11; //#22268 - $_.tobin(); //#22268 - $_.addtomsgbits(); //#22268 - } //#22268 - for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22275 - $k[$j++] = $get($_.seq, $_.i); //#22273 - $k[$j++] = 8; //#22273 - $_.tobin(); //#22273 - $_.addtomsgbits(); //#22273 - $_.i = $_.i + 1; //#22274 - } //#22274 - if ($_.i < $_.seq.length) { //#22284 - $_.char = $get($_.seq, $_.i); //#22279 - $_.i = $_.i + 1; //#22280 - if ($_.char == $_.lu) { //#22281 - $_.state = $_.U; //#22281 - } //#22281 - if ($_.char == $_.ll) { //#22282 - $_.state = $_.L; //#22282 - } //#22282 - if ($_.char == $_.lm) { //#22283 - $_.state = $_.M; //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - } //#22283 - if (!bwipp_azteccode.__22309__) { //#22309 - $_ = Object.create($_); //#22309 - $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22308 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22308 - bwipp_azteccode.__22309__ = 1; //#22308 - $_ = Object.getPrototypeOf($_); //#22308 - } //#22308 - var _CD = $_.metrics; //#22311 - for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22327 - $_.m = $get(_CD, _CE); //#22312 - $_.frmt = $get($_.m, 0); //#22313 - $_.mlyr = $get($_.m, 1); //#22314 - $_.icap = $get($_.m, 2); //#22315 - $_.ncws = $get($_.m, 3); //#22316 - $_.bpcw = $get($_.m, 4); //#22317 - $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22318 - if ($_.msgbits.length == 0) { //#22319 - $_.numecw = 0; //#22319 - } //#22319 - $_.numdcw = $f($_.ncws - $_.numecw); //#22320 - $_.okay = true; //#22321 - if ($ne($_.format, $_.frmt)) { //#22322 - $_.okay = false; //#22322 - } //#22322 - if ($_.readerinit && ($_.icap != 1)) { //#22323 - $_.okay = false; //#22323 - } //#22323 - if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22324 - $_.okay = false; //#22324 - } //#22324 - if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22325 - $_.okay = false; //#22325 - } //#22325 - if ($_.okay) { //#22326 - break; //#22326 - } //#22326 - } //#22326 - if (!$_.okay) { //#22331 - $k[$j++] = 'bwipp.qrcodeNoValidSymbol#22330'; //#22330 - $k[$j++] = "Maximum length exceeded"; //#22330 - bwipp_raiseerror(); //#22330 - } //#22330 - $_.layers = $_.mlyr; //#22333 + } //#22529 + $_.addtomsgbits(); //#22529 + $_.i = $_.i + 1; //#22530 + if (($_.char == $_.su) || ($_.char == $_.sp)) { //#22536 + $k[$j++] = $get($_.seq, $_.i); //#22534 + if ($_.char == $_.su) { //#22534 + $_.encu(); //#22534 + } else { //#22534 + $_.encp(); //#22534 + } //#22534 + $_.addtomsgbits(); //#22534 + $_.i = $_.i + 1; //#22535 + } //#22535 + if ($_.char == $_.lu) { //#22539 + $_.state = $_.U; //#22539 + } //#22539 + if ($_.char == $_.ll) { //#22540 + $_.state = $_.L; //#22540 + } //#22540 + if ($_.char == $_.lm) { //#22541 + $_.state = $_.M; //#22541 + } //#22541 + if ($_.char == $_.lp) { //#22542 + $_.state = $_.P; //#22542 + } //#22542 + if ($_.char == $_.ld) { //#22543 + $_.state = $_.D; //#22543 + } //#22543 + if ($_.char == $_.sb) { //#22544 + $_.state = $_.B; //#22544 + } //#22544 + } else { //#22575 + $_.numbytes = 0; //#22549 + for (;;) { //#22553 + if (($_.i + $_.numbytes) >= $_.seq.length) { //#22550 + break; //#22550 + } //#22550 + if ($get($_.seq, $_.i + $_.numbytes) < 0) { //#22551 + break; //#22551 + } //#22551 + $_.numbytes = $_.numbytes + 1; //#22552 + } //#22552 + if ($_.numbytes <= 31) { //#22560 + $k[$j++] = $_.numbytes; //#22557 + $k[$j++] = 5; //#22557 + $_.tobin(); //#22557 + $_.addtomsgbits(); //#22557 + } else { //#22560 + $k[$j++] = 0; //#22559 + $k[$j++] = 5; //#22559 + $_.tobin(); //#22559 + $_.addtomsgbits(); //#22559 + $k[$j++] = $_.numbytes - 31; //#22560 + $k[$j++] = 11; //#22560 + $_.tobin(); //#22560 + $_.addtomsgbits(); //#22560 + } //#22560 + for (var _BF = 0, _BG = $_.numbytes; _BF < _BG; _BF++) { //#22567 + $k[$j++] = $get($_.seq, $_.i); //#22565 + $k[$j++] = 8; //#22565 + $_.tobin(); //#22565 + $_.addtomsgbits(); //#22565 + $_.i = $_.i + 1; //#22566 + } //#22566 + if ($_.i < $_.seq.length) { //#22576 + $_.char = $get($_.seq, $_.i); //#22571 + $_.i = $_.i + 1; //#22572 + if ($_.char == $_.lu) { //#22573 + $_.state = $_.U; //#22573 + } //#22573 + if ($_.char == $_.ll) { //#22574 + $_.state = $_.L; //#22574 + } //#22574 + if ($_.char == $_.lm) { //#22575 + $_.state = $_.M; //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + } //#22575 + if (!bwipp_azteccode.__22601__) { //#22601 + $_ = Object.create($_); //#22601 + $_.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#22600 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22600 + bwipp_azteccode.__22601__ = 1; //#22600 + $_ = Object.getPrototypeOf($_); //#22600 + } //#22600 + var _CD = $_.metrics; //#22603 + for (var _CE = 0, _CF = _CD.length; _CE < _CF; _CE++) { //#22619 + $_.m = $get(_CD, _CE); //#22604 + $_.frmt = $get($_.m, 0); //#22605 + $_.mlyr = $get($_.m, 1); //#22606 + $_.icap = $get($_.m, 2); //#22607 + $_.ncws = $get($_.m, 3); //#22608 + $_.bpcw = $get($_.m, 4); //#22609 + $_.numecw = ~~(Math.ceil($f((($_.ncws * $_.eclevel) / 100) + $_.ecaddchars))); //#22610 + if ($_.msgbits.length == 0) { //#22611 + $_.numecw = 0; //#22611 + } //#22611 + $_.numdcw = $f($_.ncws - $_.numecw); //#22612 + $_.okay = true; //#22613 + if ($ne($_.format, $_.frmt)) { //#22614 + $_.okay = false; //#22614 + } //#22614 + if ($_.readerinit && ($_.icap != 1)) { //#22615 + $_.okay = false; //#22615 + } //#22615 + if (($_.layers != -1) && ($_.layers != $_.mlyr)) { //#22616 + $_.okay = false; //#22616 + } //#22616 + if ((~~Math.ceil($_.msgbits.length / $_.bpcw)) > $_.numdcw) { //#22617 + $_.okay = false; //#22617 + } //#22617 + if ($_.okay) { //#22618 + break; //#22618 + } //#22618 + } //#22618 + if (!$_.okay) { //#22623 + $k[$j++] = 'bwipp.azteccodeNoValidSymbol#22622'; //#22622 + $k[$j++] = "Maximum length exceeded"; //#22622 + bwipp_raiseerror(); //#22622 + } //#22622 + $_.layers = $_.mlyr; //#22625 $_.allzero = function() { - var _Ck = $k[--$j]; //#22336 - $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22336 - }; //#22336 + var _Ck = $k[--$j]; //#22628 + $k[$j++] = $eq(_Ck, $geti("000000000000", 0, _Ck.length)); //#22628 + }; //#22628 $_.allones = function() { - var _Cm = $k[--$j]; //#22337 - $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22337 - }; //#22337 - $_.cws = $a($_.ncws); //#22338 - $_.m = 0; //#22339 - $_.c = 0; //#22339 - for (;;) { //#22366 - if ($_.msgbits.length <= $_.m) { //#22341 - break; //#22341 - } //#22341 - if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22343 - $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22344 - $k[$j++] = $_.cwb; //#22345 - $_.allzero(); //#22345 - if ($k[--$j]) { //#22345 - $_.cwf = "1"; //#22345 - $_.m = $_.m - 1; //#22345 - } //#22345 - $k[$j++] = $_.cwb; //#22346 - $_.allones(); //#22346 - if ($k[--$j]) { //#22346 - $_.cwf = "0"; //#22346 - $_.m = $_.m - 1; //#22346 - } //#22346 - var _D9 = $s(12); //#22348 - $puti(_D9, 0, $_.cwb); //#22348 - $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22349 - $_.cwb = $geti(_D9, 0, $_.bpcw); //#22351 - } else { //#22355 - $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22353 - var _DL = $strcpy($s(12), "111111111111"); //#22354 - $puti(_DL, 0, $_.cwb); //#22354 - $_.cwb = $geti(_DL, 0, $_.bpcw); //#22354 - $k[$j++] = $_.cwb; //#22355 - $_.allones(); //#22355 - if ($k[--$j]) { //#22355 - $puti($_.cwb, $_.cwb.length - 1, "0"); //#22355 - } //#22355 - } //#22355 - $_.cw = 0; //#22358 - for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22362 - $_.i = _DV; //#22360 - $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22361 - } //#22361 - $put($_.cws, $_.c, $_.cw); //#22363 - $_.m = $f($_.m + $_.bpcw); //#22364 - $_.c = $_.c + 1; //#22365 - } //#22365 - $_.cws = $geti($_.cws, 0, $_.c); //#22367 - var _Dm = $get($_.options, 'debugcws') !== undefined; //#22369 - if (_Dm) { //#22369 - $k[$j++] = 'bwipp.debugcws#22369'; //#22369 - $k[$j++] = $_.cws; //#22369 - bwipp_raiseerror(); //#22369 - } //#22369 + var _Cm = $k[--$j]; //#22629 + $k[$j++] = $eq(_Cm, $geti("111111111111", 0, _Cm.length)); //#22629 + }; //#22629 + $_.cws = $a($_.ncws); //#22630 + $_.m = 0; //#22631 + $_.c = 0; //#22631 + for (;;) { //#22658 + if ($_.msgbits.length <= $_.m) { //#22633 + break; //#22633 + } //#22633 + if (($_.msgbits.length - $_.m) >= $_.bpcw) { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $f($_.bpcw - 1)); //#22635 + $_.cwf = $geti($_.msgbits, $f($f($_.m + $_.bpcw) - 1), 1); //#22636 + $k[$j++] = $_.cwb; //#22637 + $_.allzero(); //#22637 + if ($k[--$j]) { //#22637 + $_.cwf = "1"; //#22637 + $_.m = $_.m - 1; //#22637 + } //#22637 + $k[$j++] = $_.cwb; //#22638 + $_.allones(); //#22638 + if ($k[--$j]) { //#22638 + $_.cwf = "0"; //#22638 + $_.m = $_.m - 1; //#22638 + } //#22638 + var _D9 = $s(12); //#22640 + $puti(_D9, 0, $_.cwb); //#22640 + $puti(_D9, $f($_.bpcw - 1), $_.cwf); //#22641 + $_.cwb = $geti(_D9, 0, $_.bpcw); //#22643 + } else { //#22647 + $_.cwb = $geti($_.msgbits, $_.m, $_.msgbits.length - $_.m); //#22645 + var _DL = $strcpy($s(12), "111111111111"); //#22646 + $puti(_DL, 0, $_.cwb); //#22646 + $_.cwb = $geti(_DL, 0, $_.bpcw); //#22646 + $k[$j++] = $_.cwb; //#22647 + $_.allones(); //#22647 + if ($k[--$j]) { //#22647 + $puti($_.cwb, $_.cwb.length - 1, "0"); //#22647 + } //#22647 + } //#22647 + $_.cw = 0; //#22650 + for (var _DV = 0, _DU = $f($_.bpcw - 1); _DV <= _DU; _DV += 1) { //#22654 + $_.i = _DV; //#22652 + $_.cw = $f($_.cw + ((~~(Math.pow(2, $f($f($_.bpcw - $_.i) - 1)))) * $f($get($_.cwb, $_.i) - 48))); //#22653 + } //#22653 + $put($_.cws, $_.c, $_.cw); //#22655 + $_.m = $f($_.m + $_.bpcw); //#22656 + $_.c = $_.c + 1; //#22657 + } //#22657 + $_.cws = $geti($_.cws, 0, $_.c); //#22659 + var _Dm = $get($_.options, 'debugcws') !== undefined; //#22661 + if (_Dm) { //#22661 + $k[$j++] = 'bwipp.debugcws#22661'; //#22661 + $k[$j++] = $_.cws; //#22661 + bwipp_raiseerror(); //#22661 + } //#22661 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#22374 - $_.rsgf = $k[--$j]; //#22375 - $_.rsnc = $k[--$j]; //#22376 - $_.rscws = $k[--$j]; //#22377 - $k[$j++] = Infinity; //#22380 - $k[$j++] = 1; //#22380 - for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22380 - var _Dv = $k[--$j]; //#22380 - var _Dw = _Dv * 2; //#22380 - $k[$j++] = _Dv; //#22380 - $k[$j++] = _Dw; //#22380 - if (_Dw >= $_.rsgf) { //#22380 - var _Dz = $k[--$j]; //#22380 - $k[$j++] = $xo(_Dz, $_.rspm); //#22380 - } //#22380 - } //#22380 - $_.rsalog = $a(); //#22380 - $_.rslog = $a($_.rsgf); //#22381 - for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22382 - $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22382 - } //#22382 + $_.rspm = $k[--$j]; //#22666 + $_.rsgf = $k[--$j]; //#22667 + $_.rsnc = $k[--$j]; //#22668 + $_.rscws = $k[--$j]; //#22669 + $k[$j++] = Infinity; //#22672 + $k[$j++] = 1; //#22672 + for (var _Dt = 0, _Du = $f($_.rsgf - 1); _Dt < _Du; _Dt++) { //#22672 + var _Dv = $k[--$j]; //#22672 + var _Dw = _Dv * 2; //#22672 + $k[$j++] = _Dv; //#22672 + $k[$j++] = _Dw; //#22672 + if (_Dw >= $_.rsgf) { //#22672 + var _Dz = $k[--$j]; //#22672 + $k[$j++] = $xo(_Dz, $_.rspm); //#22672 + } //#22672 + } //#22672 + $_.rsalog = $a(); //#22672 + $_.rslog = $a($_.rsgf); //#22673 + for (var _E5 = 1, _E4 = $f($_.rsgf - 1); _E5 <= _E4; _E5 += 1) { //#22674 + $put($_.rslog, $get($_.rsalog, _E5), _E5); //#22674 + } //#22674 $_.rsprod = function() { - var _E9 = $k[--$j]; //#22386 - var _EA = $k[--$j]; //#22386 - $k[$j++] = _EA; //#22390 - $k[$j++] = _E9; //#22390 - if ((_E9 != 0) && (_EA != 0)) { //#22389 - var _ED = $get($_.rslog, $k[--$j]); //#22387 - var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22387 - $k[$j++] = _EJ; //#22387 - } else { //#22389 - $j -= 2; //#22389 - $k[$j++] = 0; //#22389 - } //#22389 - }; //#22389 - $k[$j++] = Infinity; //#22394 - $k[$j++] = 1; //#22394 - for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22394 - $k[$j++] = 0; //#22394 - } //#22394 - $_.coeffs = $a(); //#22394 - for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22403 - $_.i = _EQ; //#22396 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22397 - for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22401 - $_.j = _EX; //#22399 - $k[$j++] = $_.coeffs; //#22400 - $k[$j++] = $_.j; //#22400 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#22400 - $k[$j++] = $get($_.coeffs, $_.j); //#22400 - $k[$j++] = $get($_.rsalog, $_.i); //#22400 - $_.rsprod(); //#22400 - var _Ej = $k[--$j]; //#22400 - var _Ek = $k[--$j]; //#22400 - var _El = $k[--$j]; //#22400 - $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22400 - } //#22400 - $k[$j++] = $_.coeffs; //#22402 - $k[$j++] = 0; //#22402 - $k[$j++] = $get($_.coeffs, 0); //#22402 - $k[$j++] = $get($_.rsalog, $_.i); //#22402 - $_.rsprod(); //#22402 - var _Et = $k[--$j]; //#22402 - var _Eu = $k[--$j]; //#22402 - $put($k[--$j], _Eu, _Et); //#22402 - } //#22402 - $_.nd = $_.rscws.length; //#22406 - $k[$j++] = Infinity; //#22407 - $forall($_.rscws); //#22407 - for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22407 - $k[$j++] = 0; //#22407 - } //#22407 - $k[$j++] = 0; //#22407 - $_.rscws = $a(); //#22407 - for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22414 - $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22409 - for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22413 - $_.j = _FC; //#22411 - $k[$j++] = $_.rscws; //#22412 - $k[$j++] = $_.nd + $_.j; //#22412 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22412 - $k[$j++] = $_.k; //#22412 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22412 - $_.rsprod(); //#22412 - var _FP = $k[--$j]; //#22412 - var _FQ = $k[--$j]; //#22412 - var _FR = $k[--$j]; //#22412 - $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22412 - } //#22412 - } //#22412 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22417 - }; //#22417 - if ($eq($_.format, "full")) { //#22432 - $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22423 - if ($_.readerinit) { //#22424 - $_.mode = $_.mode | 1024; //#22424 - } //#22424 - $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22430 - $k[$j++] = 'mode'; //#22431 - $k[$j++] = $_.mode; //#22431 - $k[$j++] = 6; //#22431 - $k[$j++] = 16; //#22431 - $k[$j++] = 19; //#22431 - $_.rscodes(); //#22431 - var _Fh = $k[--$j]; //#22431 - $_[$k[--$j]] = _Fh; //#22431 - } //#22431 - if ($eq($_.format, "compact")) { //#22441 - $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22434 - if ($_.readerinit) { //#22435 - $_.mode = $_.mode | 32; //#22435 - } //#22435 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22439 - $k[$j++] = 'mode'; //#22440 - $k[$j++] = $_.mode; //#22440 - $k[$j++] = 5; //#22440 - $k[$j++] = 16; //#22440 - $k[$j++] = 19; //#22440 - $_.rscodes(); //#22440 - var _Fs = $k[--$j]; //#22440 - $_[$k[--$j]] = _Fs; //#22440 - } //#22440 - if ($eq($_.format, "rune")) { //#22450 - $_.mode = $cvi($_.barcode); //#22443 - $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22447 - $k[$j++] = 'mode'; //#22448 - $k[$j++] = $_.mode; //#22448 - $k[$j++] = 5; //#22448 - $k[$j++] = 16; //#22448 - $k[$j++] = 19; //#22448 - $_.rscodes(); //#22448 - var _G0 = $k[--$j]; //#22448 - $_[$k[--$j]] = _G0; //#22448 - $k[$j++] = Infinity; //#22449 - var _G2 = $_.mode; //#22449 - for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22449 - $k[$j++] = $get(_G2, _G3) ^ 10; //#22449 - } //#22449 - $_.mode = $a(); //#22449 - } //#22449 - $_.modebits = $s($_.mode.length * 4); //#22451 - for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22452 - $puti($_.modebits, _GB, "0"); //#22452 - } //#22452 - for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22456 - $_.i = _GF; //#22454 - var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22455 - $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22455 - } //#22455 - if (!bwipp_azteccode.__22470__) { //#22470 - $_ = Object.create($_); //#22470 - $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22469 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22469 - bwipp_azteccode.__22470__ = 1; //#22469 - $_ = Object.getPrototypeOf($_); //#22469 - } //#22469 - $k[$j++] = 'cws'; //#22471 - $k[$j++] = $_.cws; //#22471 - $k[$j++] = $f($_.ncws - $_.cws.length); //#22471 - $forall($get($_.rsparams, $_.bpcw)); //#22471 - $_.rscodes(); //#22471 - var _Gi = $k[--$j]; //#22471 - $_[$k[--$j]] = _Gi; //#22471 - if ($eq($_.format, "full")) { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22473 - } else { //#22475 - $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22475 - } //#22475 - for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22477 - $puti($_.databits, _Gv, "0"); //#22477 - } //#22477 - for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22483 - $_.i = _Gz; //#22479 - var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22480 - $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22482 - } //#22482 + var _E9 = $k[--$j]; //#22678 + var _EA = $k[--$j]; //#22678 + $k[$j++] = _EA; //#22682 + $k[$j++] = _E9; //#22682 + if ((_E9 != 0) && (_EA != 0)) { //#22681 + var _ED = $get($_.rslog, $k[--$j]); //#22679 + var _EJ = $get($_.rsalog, $f(_ED + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#22679 + $k[$j++] = _EJ; //#22679 + } else { //#22681 + $j -= 2; //#22681 + $k[$j++] = 0; //#22681 + } //#22681 + }; //#22681 + $k[$j++] = Infinity; //#22686 + $k[$j++] = 1; //#22686 + for (var _EL = 0, _EM = $_.rsnc; _EL < _EM; _EL++) { //#22686 + $k[$j++] = 0; //#22686 + } //#22686 + $_.coeffs = $a(); //#22686 + for (var _EQ = 1, _EP = $_.rsnc; _EQ <= _EP; _EQ += 1) { //#22695 + $_.i = _EQ; //#22688 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#22689 + for (var _EX = $_.i - 1; _EX >= 1; _EX -= 1) { //#22693 + $_.j = _EX; //#22691 + $k[$j++] = $_.coeffs; //#22692 + $k[$j++] = $_.j; //#22692 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#22692 + $k[$j++] = $get($_.coeffs, $_.j); //#22692 + $k[$j++] = $get($_.rsalog, $_.i); //#22692 + $_.rsprod(); //#22692 + var _Ej = $k[--$j]; //#22692 + var _Ek = $k[--$j]; //#22692 + var _El = $k[--$j]; //#22692 + $put($k[--$j], _El, $xo(_Ek, _Ej)); //#22692 + } //#22692 + $k[$j++] = $_.coeffs; //#22694 + $k[$j++] = 0; //#22694 + $k[$j++] = $get($_.coeffs, 0); //#22694 + $k[$j++] = $get($_.rsalog, $_.i); //#22694 + $_.rsprod(); //#22694 + var _Et = $k[--$j]; //#22694 + var _Eu = $k[--$j]; //#22694 + $put($k[--$j], _Eu, _Et); //#22694 + } //#22694 + $_.nd = $_.rscws.length; //#22698 + $k[$j++] = Infinity; //#22699 + $forall($_.rscws); //#22699 + for (var _Ez = 0, _F0 = $_.rsnc; _Ez < _F0; _Ez++) { //#22699 + $k[$j++] = 0; //#22699 + } //#22699 + $k[$j++] = 0; //#22699 + $_.rscws = $a(); //#22699 + for (var _F4 = 0, _F3 = $_.nd - 1; _F4 <= _F3; _F4 += 1) { //#22706 + $_.k = $xo($get($_.rscws, _F4), $get($_.rscws, $_.nd)); //#22701 + for (var _FC = 0, _FB = $f($_.rsnc - 1); _FC <= _FB; _FC += 1) { //#22705 + $_.j = _FC; //#22703 + $k[$j++] = $_.rscws; //#22704 + $k[$j++] = $_.nd + $_.j; //#22704 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#22704 + $k[$j++] = $_.k; //#22704 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#22704 + $_.rsprod(); //#22704 + var _FP = $k[--$j]; //#22704 + var _FQ = $k[--$j]; //#22704 + var _FR = $k[--$j]; //#22704 + $put($k[--$j], _FR, $xo(_FQ, _FP)); //#22704 + } //#22704 + } //#22704 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#22709 + }; //#22709 + if ($eq($_.format, "full")) { //#22724 + $_.mode = ($f($_.layers - 1) << 11) + ($_.cws.length - 1); //#22715 + if ($_.readerinit) { //#22716 + $_.mode = $_.mode | 1024; //#22716 + } //#22716 + $_.mode = $a([($_.mode & 61440) >>> 12, ($_.mode & 3840) >>> 8, ($_.mode & 240) >>> 4, $_.mode & 15]); //#22722 + $k[$j++] = 'mode'; //#22723 + $k[$j++] = $_.mode; //#22723 + $k[$j++] = 6; //#22723 + $k[$j++] = 16; //#22723 + $k[$j++] = 19; //#22723 + $_.rscodes(); //#22723 + var _Fh = $k[--$j]; //#22723 + $_[$k[--$j]] = _Fh; //#22723 + } //#22723 + if ($eq($_.format, "compact")) { //#22733 + $_.mode = ($f($_.layers - 1) << 6) + ($_.cws.length - 1); //#22726 + if ($_.readerinit) { //#22727 + $_.mode = $_.mode | 32; //#22727 + } //#22727 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22731 + $k[$j++] = 'mode'; //#22732 + $k[$j++] = $_.mode; //#22732 + $k[$j++] = 5; //#22732 + $k[$j++] = 16; //#22732 + $k[$j++] = 19; //#22732 + $_.rscodes(); //#22732 + var _Fs = $k[--$j]; //#22732 + $_[$k[--$j]] = _Fs; //#22732 + } //#22732 + if ($eq($_.format, "rune")) { //#22742 + $_.mode = $cvi($_.barcode); //#22735 + $_.mode = $a([($_.mode & 240) >>> 4, $_.mode & 15]); //#22739 + $k[$j++] = 'mode'; //#22740 + $k[$j++] = $_.mode; //#22740 + $k[$j++] = 5; //#22740 + $k[$j++] = 16; //#22740 + $k[$j++] = 19; //#22740 + $_.rscodes(); //#22740 + var _G0 = $k[--$j]; //#22740 + $_[$k[--$j]] = _G0; //#22740 + $k[$j++] = Infinity; //#22741 + var _G2 = $_.mode; //#22741 + for (var _G3 = 0, _G4 = _G2.length; _G3 < _G4; _G3++) { //#22741 + $k[$j++] = $get(_G2, _G3) ^ 10; //#22741 + } //#22741 + $_.mode = $a(); //#22741 + } //#22741 + $_.modebits = $s($_.mode.length * 4); //#22743 + for (var _GB = 0, _GA = $_.modebits.length - 1; _GB <= _GA; _GB += 1) { //#22744 + $puti($_.modebits, _GB, "0"); //#22744 + } //#22744 + for (var _GF = 0, _GE = $_.mode.length - 1; _GF <= _GE; _GF += 1) { //#22748 + $_.i = _GF; //#22746 + var _GL = $cvrs($s(4), $get($_.mode, $_.i), 2); //#22747 + $puti($_.modebits, (4 - _GL.length) + (4 * $_.i), _GL); //#22747 + } //#22747 + if (!bwipp_azteccode.__22762__) { //#22762 + $_ = Object.create($_); //#22762 + $_.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#22761 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22761 + bwipp_azteccode.__22762__ = 1; //#22761 + $_ = Object.getPrototypeOf($_); //#22761 + } //#22761 + $k[$j++] = 'cws'; //#22763 + $k[$j++] = $_.cws; //#22763 + $k[$j++] = $f($_.ncws - $_.cws.length); //#22763 + $forall($get($_.rsparams, $_.bpcw)); //#22763 + $_.rscodes(); //#22763 + var _Gi = $k[--$j]; //#22763 + $_[$k[--$j]] = _Gi; //#22763 + if ($eq($_.format, "full")) { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 112))); //#22765 + } else { //#22767 + $_.databits = $s($f((($_.layers * $_.layers) * 16) + ($_.layers * 88))); //#22767 + } //#22767 + for (var _Gv = 0, _Gu = $_.databits.length - 1; _Gv <= _Gu; _Gv += 1) { //#22769 + $puti($_.databits, _Gv, "0"); //#22769 + } //#22769 + for (var _Gz = 0, _Gy = $f($_.ncws - 1); _Gz <= _Gy; _Gz += 1) { //#22775 + $_.i = _Gz; //#22771 + var _H6 = $cvrs($s($_.bpcw), $get($_.cws, $_.i), 2); //#22772 + $puti($_.databits, $f(($f($f($_.bpcw - _H6.length) + ($_.bpcw * $_.i))) + ($f($_.databits.length - ($_.ncws * $_.bpcw)))), _H6); //#22774 + } //#22774 $_.cmv = function() { - var _HE = $k[--$j]; //#22486 - var _HF = $k[--$j]; //#22486 - $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22486 - }; //#22486 + var _HE = $k[--$j]; //#22778 + var _HF = $k[--$j]; //#22778 + $k[$j++] = $f(($f(_HF - (_HE * $_.size))) + $_.mid); //#22778 + }; //#22778 $_.lmv = function() { - $_.lbit = $k[--$j]; //#22490 - $_.llyr = $k[--$j]; //#22491 - $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22492 - $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22493 - if ($_.ldir == 0) { //#22498 - $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22497 - $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22497 - $_.cmv(); //#22497 - } //#22497 - if ($_.ldir == 1) { //#22503 - $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22502 - $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22502 - $_.cmv(); //#22502 - } //#22502 - if ($_.ldir == 2) { //#22508 - $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22507 - $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22507 - $_.cmv(); //#22507 - } //#22507 - if ($_.ldir == 3) { //#22513 - $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22512 - $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22512 - $_.cmv(); //#22512 - } //#22512 - }; //#22512 - if ($eq($_.format, "full")) { //#22518 - $_.fw = 12; //#22518 - } else { //#22518 - $_.fw = 9; //#22518 - } //#22518 - $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22519 - $k[$j++] = Infinity; //#22520 - for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22520 - $k[$j++] = -1; //#22520 - } //#22520 - $_.pixs = $a(); //#22520 - $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22521 - $_.i = 0; //#22524 - for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22532 - $_.layer = _I2; //#22526 - for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22531 - $_.pos = _I6; //#22528 - $k[$j++] = $_.pixs; //#22529 - $k[$j++] = $_.layer; //#22529 - $k[$j++] = $_.pos; //#22529 - $_.lmv(); //#22529 - var _IE = $k[--$j]; //#22529 - $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22529 - $_.i = $_.i + 1; //#22530 - } //#22530 - } //#22530 - if ($eq($_.format, "full")) { //#22559 - $_.fw = 13; //#22536 - $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22537 - $_.mid = ~~(($_.size * $_.size) / 2); //#22538 - $k[$j++] = Infinity; //#22539 - for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22539 - $k[$j++] = -2; //#22539 - } //#22539 - $_.npixs = $a(); //#22539 - for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22549 - $_.i = _IU; //#22541 - for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22548 - $_.j = _IX; //#22543 - $k[$j++] = $_.npixs; //#22544 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22544 - $k[$j++] = $_.i; //#22544 - $_.cmv(); //#22544 - var _Ig = $k[--$j]; //#22544 - $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22544 - $k[$j++] = $_.npixs; //#22545 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22545 - $k[$j++] = -$_.i; //#22545 - $_.cmv(); //#22545 - var _Iq = $k[--$j]; //#22545 - $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22545 - $k[$j++] = $_.npixs; //#22546 - $k[$j++] = $_.i; //#22546 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22546 - $_.cmv(); //#22546 - var _J0 = $k[--$j]; //#22546 - $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22546 - $k[$j++] = $_.npixs; //#22547 - $k[$j++] = -$_.i; //#22547 - $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22547 - $_.cmv(); //#22547 - var _JA = $k[--$j]; //#22547 - $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22547 - } //#22547 - } //#22547 - $_.j = 0; //#22550 - for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22557 - $_.i = _JE; //#22552 - if ($get($_.npixs, $_.i) == -2) { //#22556 - $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22554 - $_.j = $_.j + 1; //#22555 - } //#22555 - } //#22555 - $_.pixs = $_.npixs; //#22558 - } //#22558 - $_.fw = ~~($_.fw / 2); //#22562 - for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22571 - $_.i = _JT; //#22564 - for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22570 - $_.j = _JX; //#22566 - $k[$j++] = $_.pixs; //#22567 - $k[$j++] = $_.i; //#22567 - $k[$j++] = $_.j; //#22567 - $_.cmv(); //#22567 - if (Math.abs($_.i) > Math.abs($_.j)) { //#22568 - $k[$j++] = Math.abs($_.i); //#22568 - } else { //#22568 - $k[$j++] = Math.abs($_.j); //#22568 - } //#22568 - var _Jf = $k[--$j]; //#22568 - var _Jg = $k[--$j]; //#22569 - $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22569 - } //#22569 - } //#22569 - var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22579 - for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22580 - $k[$j++] = $_.pixs; //#22580 - $forall($get(_KI, _KJ)); //#22580 - var _KN = $k[--$j]; //#22580 - var _KO = $k[--$j]; //#22580 - var _KP = $k[--$j]; //#22580 - $k[$j++] = _KN; //#22580 - $k[$j++] = _KP; //#22580 - $k[$j++] = _KO; //#22580 - $_.cmv(); //#22580 - var _KQ = $k[--$j]; //#22580 - var _KR = $k[--$j]; //#22580 - $put($k[--$j], _KQ, _KR); //#22580 - } //#22580 - if (!bwipp_azteccode.__22596__) { //#22596 - $_ = Object.create($_); //#22596 - $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22589 - $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22595 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22595 - bwipp_azteccode.__22596__ = 1; //#22595 - $_ = Object.getPrototypeOf($_); //#22595 - } //#22595 - $k[$j++] = 'modemap'; //#22597 - if ($eq($_.format, "full")) { //#22597 - $k[$j++] = $_.modemapfull; //#22597 - } else { //#22597 - $k[$j++] = $_.modemapcompact; //#22597 - } //#22597 - var _Lf = $k[--$j]; //#22597 - $_[$k[--$j]] = _Lf; //#22597 - for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22601 - $_.i = _Lj; //#22599 - $k[$j++] = $_.pixs; //#22600 - $forall($get($_.modemap, $_.i)); //#22600 - $_.cmv(); //#22600 - var _Lr = $k[--$j]; //#22600 - $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22600 - } //#22600 + $_.lbit = $k[--$j]; //#22782 + $_.llyr = $k[--$j]; //#22783 + $_.lwid = $f($_.fw + ($_.llyr * 4)); //#22784 + $_.ldir = ~~((~~($_.lbit / 2)) / $_.lwid); //#22785 + if ($_.ldir == 0) { //#22790 + $k[$j++] = $f(((-(~~($f($_.lwid - 1) / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid)); //#22789 + $k[$j++] = $f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22789 + $_.cmv(); //#22789 + } //#22789 + if ($_.ldir == 1) { //#22795 + $k[$j++] = $f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2)); //#22794 + $k[$j++] = $f(((~~($f($_.lwid - 1) / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid)); //#22794 + $_.cmv(); //#22794 + } //#22794 + if ($_.ldir == 2) { //#22800 + $k[$j++] = -($f(((-(~~($_.lwid / 2))) + 1) + ((~~($_.lbit / 2)) % $_.lwid))); //#22799 + $k[$j++] = -($f(($f((~~($_.fw / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22799 + $_.cmv(); //#22799 + } //#22799 + if ($_.ldir == 3) { //#22805 + $k[$j++] = -($f(($f((~~(($_.fw - 1) / 2)) + ($_.llyr * 2))) + ($_.lbit % 2))); //#22804 + $k[$j++] = -($f(((~~($_.lwid / 2)) - 1) - ((~~($_.lbit / 2)) % $_.lwid))); //#22804 + $_.cmv(); //#22804 + } //#22804 + }; //#22804 + if ($eq($_.format, "full")) { //#22810 + $_.fw = 12; //#22810 + } else { //#22810 + $_.fw = 9; //#22810 + } //#22810 + $_.size = $f(($f($_.fw + ($_.layers * 4))) + 2); //#22811 + $k[$j++] = Infinity; //#22812 + for (var _Hu = 0, _Hv = $_.size * $_.size; _Hu < _Hv; _Hu++) { //#22812 + $k[$j++] = -1; //#22812 + } //#22812 + $_.pixs = $a(); //#22812 + $_.mid = $f(((~~($f($_.size - 1) / 2)) * $_.size) + (~~($f($_.size - 1) / 2))); //#22813 + $_.i = 0; //#22816 + for (var _I2 = 1, _I1 = $_.layers; _I2 <= _I1; _I2 += 1) { //#22824 + $_.layer = _I2; //#22818 + for (var _I6 = 0, _I5 = (($_.fw + ($_.layer * 4)) * 8) - 1; _I6 <= _I5; _I6 += 1) { //#22823 + $_.pos = _I6; //#22820 + $k[$j++] = $_.pixs; //#22821 + $k[$j++] = $_.layer; //#22821 + $k[$j++] = $_.pos; //#22821 + $_.lmv(); //#22821 + var _IE = $k[--$j]; //#22821 + $put($k[--$j], _IE, $get($_.databits, ($_.databits.length - $_.i) - 1) - 48); //#22821 + $_.i = $_.i + 1; //#22822 + } //#22822 + } //#22822 + if ($eq($_.format, "full")) { //#22851 + $_.fw = 13; //#22828 + $_.size = $f(($f(($f($_.fw + ($_.layers * 4))) + 2)) + ((~~($f(($f($_.layers + 10.5) / 7.5) - 1))) * 2)); //#22829 + $_.mid = ~~(($_.size * $_.size) / 2); //#22830 + $k[$j++] = Infinity; //#22831 + for (var _IP = 0, _IQ = $_.size * $_.size; _IP < _IQ; _IP++) { //#22831 + $k[$j++] = -2; //#22831 + } //#22831 + $_.npixs = $a(); //#22831 + for (var _IU = 0, _IT = ~~($_.size / 2); _IU <= _IT; _IU += 16) { //#22841 + $_.i = _IU; //#22833 + for (var _IX = 0, _IW = $f($_.size - 1); _IX <= _IW; _IX += 1) { //#22840 + $_.j = _IX; //#22835 + $k[$j++] = $_.npixs; //#22836 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22836 + $k[$j++] = $_.i; //#22836 + $_.cmv(); //#22836 + var _Ig = $k[--$j]; //#22836 + $puti($k[--$j], _Ig, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22836 + $k[$j++] = $_.npixs; //#22837 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22837 + $k[$j++] = -$_.i; //#22837 + $_.cmv(); //#22837 + var _Iq = $k[--$j]; //#22837 + $puti($k[--$j], _Iq, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22837 + $k[$j++] = $_.npixs; //#22838 + $k[$j++] = $_.i; //#22838 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22838 + $_.cmv(); //#22838 + var _J0 = $k[--$j]; //#22838 + $puti($k[--$j], _J0, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22838 + $k[$j++] = $_.npixs; //#22839 + $k[$j++] = -$_.i; //#22839 + $k[$j++] = (-(~~($_.size / 2))) + $_.j; //#22839 + $_.cmv(); //#22839 + var _JA = $k[--$j]; //#22839 + $puti($k[--$j], _JA, $a([((((~~($_.size / 2)) + $_.j) + $_.i) + 1) % 2])); //#22839 + } //#22839 + } //#22839 + $_.j = 0; //#22842 + for (var _JE = 0, _JD = $_.npixs.length - 1; _JE <= _JD; _JE += 1) { //#22849 + $_.i = _JE; //#22844 + if ($get($_.npixs, $_.i) == -2) { //#22848 + $put($_.npixs, $_.i, $get($_.pixs, $_.j)); //#22846 + $_.j = $_.j + 1; //#22847 + } //#22847 + } //#22847 + $_.pixs = $_.npixs; //#22850 + } //#22850 + $_.fw = ~~($_.fw / 2); //#22854 + for (var _JT = -$_.fw, _JS = $_.fw; _JT <= _JS; _JT += 1) { //#22863 + $_.i = _JT; //#22856 + for (var _JX = -$_.fw, _JW = $_.fw; _JX <= _JW; _JX += 1) { //#22862 + $_.j = _JX; //#22858 + $k[$j++] = $_.pixs; //#22859 + $k[$j++] = $_.i; //#22859 + $k[$j++] = $_.j; //#22859 + $_.cmv(); //#22859 + if (Math.abs($_.i) > Math.abs($_.j)) { //#22860 + $k[$j++] = Math.abs($_.i); //#22860 + } else { //#22860 + $k[$j++] = Math.abs($_.j); //#22860 + } //#22860 + var _Jf = $k[--$j]; //#22860 + var _Jg = $k[--$j]; //#22861 + $put($k[--$j], _Jg, $f(_Jf + 1) % 2); //#22861 + } //#22861 + } //#22861 + var _KI = $a([$a([-($_.fw + 1), $_.fw, 1]), $a([-($_.fw + 1), $_.fw + 1, 1]), $a([-$_.fw, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw + 1, 1]), $a([$_.fw + 1, $_.fw, 1]), $a([$_.fw + 1, -$_.fw, 1]), $a([$_.fw, $_.fw + 1, 0]), $a([$_.fw + 1, -($_.fw + 1), 0]), $a([$_.fw, -($_.fw + 1), 0]), $a([-$_.fw, -($_.fw + 1), 0]), $a([-($_.fw + 1), -($_.fw + 1), 0]), $a([-($_.fw + 1), -$_.fw, 0])]); //#22871 + for (var _KJ = 0, _KK = _KI.length; _KJ < _KK; _KJ++) { //#22872 + $k[$j++] = $_.pixs; //#22872 + $forall($get(_KI, _KJ)); //#22872 + var _KN = $k[--$j]; //#22872 + var _KO = $k[--$j]; //#22872 + var _KP = $k[--$j]; //#22872 + $k[$j++] = _KN; //#22872 + $k[$j++] = _KP; //#22872 + $k[$j++] = _KO; //#22872 + $_.cmv(); //#22872 + var _KQ = $k[--$j]; //#22872 + var _KR = $k[--$j]; //#22872 + $put($k[--$j], _KQ, _KR); //#22872 + } //#22872 + if (!bwipp_azteccode.__22888__) { //#22888 + $_ = Object.create($_); //#22888 + $_.modemapfull = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#22881 + $_.modemapcompact = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#22887 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_azteccode.$ctx[id] = $_[id]); //#22887 + bwipp_azteccode.__22888__ = 1; //#22887 + $_ = Object.getPrototypeOf($_); //#22887 + } //#22887 + $k[$j++] = 'modemap'; //#22889 + if ($eq($_.format, "full")) { //#22889 + $k[$j++] = $_.modemapfull; //#22889 + } else { //#22889 + $k[$j++] = $_.modemapcompact; //#22889 + } //#22889 + var _Lf = $k[--$j]; //#22889 + $_[$k[--$j]] = _Lf; //#22889 + for (var _Lj = 0, _Li = $_.modemap.length - 1; _Lj <= _Li; _Lj += 1) { //#22893 + $_.i = _Lj; //#22891 + $k[$j++] = $_.pixs; //#22892 + $forall($get($_.modemap, $_.i)); //#22892 + $_.cmv(); //#22892 + var _Lr = $k[--$j]; //#22892 + $put($k[--$j], _Lr, $get($_.modebits, $_.i) - 48); //#22892 + } //#22892 var _Lz = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -27617,1730 +28060,1728 @@ function bwipp_azteccode() { ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], ["opt", $_.options] - ]); //#22610 - $k[$j++] = _Lz; //#22613 - if (!$_.dontdraw) { //#22613 - bwipp_renmatrix(); //#22613 - } //#22613 - $_ = Object.getPrototypeOf($_); //#22615 - $_ = Object.getPrototypeOf($_); //#22617 -} - + ]); //#22902 + $k[$j++] = _Lz; //#22905 + if (!$_.dontdraw) { //#22905 + bwipp_renmatrix(); //#22905 + } //#22905 + $_ = Object.getPrototypeOf($_); //#22907 + $_ = Object.getPrototypeOf($_); //#22909 +} //bwipp_azteccode function bwipp_azteccodecompact() { - $_ = Object.create($_); //#22646 - $_.dontdraw = false; //#22649 - $k[$j++] = $_; //#22651 - bwipp_processoptions(); //#22651 - $_.options = $k[--$j]; //#22651 - $_.barcode = $k[--$j]; //#22652 - $put($_.options, "dontdraw", true); //#22655 - $put($_.options, "format", "compact"); //#22656 - $k[$j++] = 'args'; //#22658 - $k[$j++] = $_.barcode; //#22658 - $k[$j++] = $_.options; //#22658 - bwipp_azteccode(); //#22658 - var _6 = $k[--$j]; //#22658 - $_[$k[--$j]] = _6; //#22658 - $put($_.args, "opt", $_.options); //#22660 - $k[$j++] = $_.args; //#22663 - if (!$_.dontdraw) { //#22663 - bwipp_renmatrix(); //#22663 - } //#22663 - $_ = Object.getPrototypeOf($_); //#22665 -} - + $_ = Object.create($_); //#22938 + $_.dontdraw = false; //#22941 + $k[$j++] = $_; //#22943 + bwipp_processoptions(); //#22943 + $_.options = $k[--$j]; //#22943 + $_.barcode = $k[--$j]; //#22944 + $put($_.options, "dontdraw", true); //#22947 + $put($_.options, "format", "compact"); //#22948 + $k[$j++] = 'args'; //#22950 + $k[$j++] = $_.barcode; //#22950 + $k[$j++] = $_.options; //#22950 + bwipp_azteccode(); //#22950 + var _6 = $k[--$j]; //#22950 + $_[$k[--$j]] = _6; //#22950 + $put($_.args, "opt", $_.options); //#22952 + $k[$j++] = $_.args; //#22955 + if (!$_.dontdraw) { //#22955 + bwipp_renmatrix(); //#22955 + } //#22955 + $_ = Object.getPrototypeOf($_); //#22957 +} //bwipp_azteccodecompact function bwipp_aztecrune() { - $_ = Object.create($_); //#22694 - $_.dontdraw = false; //#22697 - $k[$j++] = $_; //#22699 - bwipp_processoptions(); //#22699 - $_.options = $k[--$j]; //#22699 - $_.barcode = $k[--$j]; //#22700 - $put($_.options, "dontdraw", true); //#22703 - $put($_.options, "format", "rune"); //#22704 - $k[$j++] = 'args'; //#22706 - $k[$j++] = $_.barcode; //#22706 - $k[$j++] = $_.options; //#22706 - bwipp_azteccode(); //#22706 - var _6 = $k[--$j]; //#22706 - $_[$k[--$j]] = _6; //#22706 - $put($_.args, "opt", $_.options); //#22708 - $k[$j++] = $_.args; //#22711 - if (!$_.dontdraw) { //#22711 - bwipp_renmatrix(); //#22711 - } //#22711 - $_ = Object.getPrototypeOf($_); //#22713 -} - + $_ = Object.create($_); //#22986 + $_.dontdraw = false; //#22989 + $k[$j++] = $_; //#22991 + bwipp_processoptions(); //#22991 + $_.options = $k[--$j]; //#22991 + $_.barcode = $k[--$j]; //#22992 + $put($_.options, "dontdraw", true); //#22995 + $put($_.options, "format", "rune"); //#22996 + $k[$j++] = 'args'; //#22998 + $k[$j++] = $_.barcode; //#22998 + $k[$j++] = $_.options; //#22998 + bwipp_azteccode(); //#22998 + var _6 = $k[--$j]; //#22998 + $_[$k[--$j]] = _6; //#22998 + $put($_.args, "opt", $_.options); //#23000 + $k[$j++] = $_.args; //#23003 + if (!$_.dontdraw) { //#23003 + bwipp_renmatrix(); //#23003 + } //#23003 + $_ = Object.getPrototypeOf($_); //#23005 +} //bwipp_aztecrune function bwipp_codeone() { - $_ = Object.create($_); //#22744 - $_.dontdraw = false; //#22747 - $_.version = "unset"; //#22748 - $_.parse = false; //#22749 - $_.parsefnc = false; //#22750 - $k[$j++] = $_; //#22752 - bwipp_processoptions(); //#22752 - $_.options = $k[--$j]; //#22752 - $_.barcode = $k[--$j]; //#22753 - var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#22755 - $k[$j++] = false; //#22756 - for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#22756 - var _7 = $k[--$j]; //#22756 - $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#22756 - } //#22756 - if ($nt($k[--$j])) { //#22758 - $k[$j++] = 'bwipp.codeoneBadVersion#22757'; //#22757 - $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#22757 - bwipp_raiseerror(); //#22757 - } //#22757 - bwipp_loadctx(bwipp_codeone) //#22760 - $_.stype = $eq($geti($_.version, 0, 1), "S"); //#22762 - if (!bwipp_codeone.__22920__) { //#22920 - $_ = Object.create($_); //#22920 - $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#22784 - $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#22792 - $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#22808 - $_.fnc1 = -1; //#22811 - $_.fnc3 = -2; //#22811 - $_.lC = -5; //#22812 - $_.lB = -6; //#22812 - $_.lX = -7; //#22812 - $_.lT = -8; //#22812 - $_.lD = -9; //#22812 - $_.unl = -10; //#22812 - $_.fnc2 = -11; //#22813 - $_.fnc4 = -12; //#22813 - $_.sft1 = -13; //#22813 - $_.sft2 = -14; //#22813 - $_.sft3 = -15; //#22813 - $_.eci = -16; //#22813 - $_.pad = -17; //#22813 - $_.fnc1lD = -18; //#22813 - $_.unlcw = 255; //#22814 - $k[$j++] = Infinity; //#22825 - for (var _S = 0; _S <= 128; _S += 1) { //#22817 - $k[$j++] = _S; //#22817 - $k[$j++] = _S + 1; //#22817 - } //#22817 - $k[$j++] = $_.pad; //#22822 - $k[$j++] = 129; //#22822 - for (var _U = 0; _U <= 99; _U += 1) { //#22822 - var _W = $cvrs($s(2), _U, 10); //#22820 - var _Y = $strcpy($s(2), "00"); //#22820 - $puti(_Y, 2 - _W.length, _W); //#22820 - $k[$j++] = _Y; //#22821 - $k[$j++] = _U + 130; //#22821 - } //#22821 - var _g = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#22823 - $k[$j++] = 229; //#22823 - for (var _h = 0, _i = _g.length; _h < _i; _h++) { //#22823 - var _l = $f($k[--$j] + 1); //#22823 - $k[$j++] = $get(_g, _h); //#22823 - $k[$j++] = _l; //#22823 - $k[$j++] = _l; //#22823 - } //#22823 - $j--; //#22823 - $k[$j++] = $_.lX; //#22825 - $k[$j++] = 238; //#22825 - $k[$j++] = $_.lT; //#22825 - $k[$j++] = 239; //#22825 - $_.Avals = $d(); //#22827 - $k[$j++] = Infinity; //#22829 - var _p = $_.Avals; //#22829 - for (var _u = _p.size, _t = _p.keys(), _s = 0; _s < _u; _s++) { //#22829 - var _q = _t.next().value; //#22829 - $k[$j++] = _q; //#22829 - $k[$j++] = _p.get(_q); //#22829 - $k[$j++] = Infinity; //#22829 - var _v = $k[--$j]; //#22829 - var _w = $k[--$j]; //#22829 - $k[$j++] = _v; //#22829 - $k[$j++] = _w; //#22829 - var _x = $a(); //#22829 - $k[$j++] = _x; //#22829 - } //#22829 - $_.Avals = $d(); //#22830 - $k[$j++] = Infinity; //#22838 - $k[$j++] = $_.sft1; //#22837 - $k[$j++] = 0; //#22837 - $k[$j++] = $_.sft2; //#22837 - $k[$j++] = 1; //#22837 - $k[$j++] = $_.sft3; //#22837 - $k[$j++] = 2; //#22837 - $k[$j++] = 32; //#22837 - $k[$j++] = 3; //#22837 - for (var _12 = 48; _12 <= 57; _12 += 1) { //#22837 - $k[$j++] = _12; //#22837 - $k[$j++] = _12 - 44; //#22837 - } //#22837 - for (var _13 = 65; _13 <= 90; _13 += 1) { //#22838 - $k[$j++] = _13; //#22838 - $k[$j++] = _13 - 51; //#22838 - } //#22838 - $_.CNvals = $d(); //#22839 - $k[$j++] = Infinity; //#22840 - for (var _15 = 0; _15 <= 31; _15 += 1) { //#22840 - $k[$j++] = _15; //#22840 - $k[$j++] = _15; //#22840 - } //#22840 - $_.C1vals = $d(); //#22840 - $k[$j++] = Infinity; //#22849 - for (var _17 = 33; _17 <= 47; _17 += 1) { //#22842 - $k[$j++] = _17; //#22842 - $k[$j++] = _17 - 33; //#22842 - } //#22842 - for (var _18 = 58; _18 <= 64; _18 += 1) { //#22843 - $k[$j++] = _18; //#22843 - $k[$j++] = _18 - 43; //#22843 - } //#22843 - for (var _19 = 91; _19 <= 95; _19 += 1) { //#22844 - $k[$j++] = _19; //#22844 - $k[$j++] = _19 - 69; //#22844 - } //#22844 - $k[$j++] = $_.fnc1; //#22849 - $k[$j++] = 27; //#22849 - $k[$j++] = $_.fnc2; //#22849 - $k[$j++] = 28; //#22849 - $k[$j++] = $_.fnc3; //#22849 - $k[$j++] = 29; //#22849 - $k[$j++] = $_.fnc4; //#22849 - $k[$j++] = 30; //#22849 - $k[$j++] = $_.pad; //#22849 - $k[$j++] = 31; //#22849 - $_.C2vals = $d(); //#22850 - $k[$j++] = Infinity; //#22851 - for (var _1G = 96; _1G <= 127; _1G += 1) { //#22851 - $k[$j++] = _1G; //#22851 - $k[$j++] = _1G - 96; //#22851 - } //#22851 - $_.C3vals = $d(); //#22851 - $k[$j++] = Infinity; //#22856 - var _1I = $_.CNvals; //#22853 - for (var _1N = _1I.size, _1M = _1I.keys(), _1L = 0; _1L < _1N; _1L++) { //#22853 - var _1J = _1M.next().value; //#22853 - $k[$j++] = _1J; //#22853 - $k[$j++] = _1I.get(_1J); //#22853 - $k[$j++] = Infinity; //#22853 - var _1O = $k[--$j]; //#22853 - var _1P = $k[--$j]; //#22853 - $k[$j++] = _1O; //#22853 - $k[$j++] = _1P; //#22853 - var _1Q = $a(); //#22853 - $k[$j++] = _1Q; //#22853 - } //#22853 - var _1R = $_.C1vals; //#22854 - for (var _1W = _1R.size, _1V = _1R.keys(), _1U = 0; _1U < _1W; _1U++) { //#22854 - var _1S = _1V.next().value; //#22854 - $k[$j++] = _1S; //#22854 - $k[$j++] = _1R.get(_1S); //#22854 - $k[$j++] = Infinity; //#22854 - var _1X = $k[--$j]; //#22854 - var _1Y = $k[--$j]; //#22854 - $k[$j++] = _1X; //#22854 - $k[$j++] = $get($_.CNvals, $_.sft1); //#22854 - $k[$j++] = _1Y; //#22854 - var _1c = $a(); //#22854 - $k[$j++] = _1c; //#22854 - } //#22854 - var _1d = $_.C2vals; //#22855 - for (var _1i = _1d.size, _1h = _1d.keys(), _1g = 0; _1g < _1i; _1g++) { //#22855 - var _1e = _1h.next().value; //#22855 - $k[$j++] = _1e; //#22855 - $k[$j++] = _1d.get(_1e); //#22855 - $k[$j++] = Infinity; //#22855 - var _1j = $k[--$j]; //#22855 - var _1k = $k[--$j]; //#22855 - $k[$j++] = _1j; //#22855 - $k[$j++] = $get($_.CNvals, $_.sft2); //#22855 - $k[$j++] = _1k; //#22855 - var _1o = $a(); //#22855 - $k[$j++] = _1o; //#22855 - } //#22855 - var _1p = $_.C3vals; //#22856 - for (var _1u = _1p.size, _1t = _1p.keys(), _1s = 0; _1s < _1u; _1s++) { //#22856 - var _1q = _1t.next().value; //#22856 - $k[$j++] = _1q; //#22856 - $k[$j++] = _1p.get(_1q); //#22856 - $k[$j++] = Infinity; //#22856 - var _1v = $k[--$j]; //#22856 - var _1w = $k[--$j]; //#22856 - $k[$j++] = _1v; //#22856 - $k[$j++] = $get($_.CNvals, $_.sft3); //#22856 - $k[$j++] = _1w; //#22856 - var _20 = $a(); //#22856 - $k[$j++] = _20; //#22856 - } //#22856 - $_.Cvals = $d(); //#22857 - $k[$j++] = Infinity; //#22865 - $k[$j++] = $_.sft1; //#22864 - $k[$j++] = 0; //#22864 - $k[$j++] = $_.sft2; //#22864 - $k[$j++] = 1; //#22864 - $k[$j++] = $_.sft3; //#22864 - $k[$j++] = 2; //#22864 - $k[$j++] = 32; //#22864 - $k[$j++] = 3; //#22864 - for (var _25 = 48; _25 <= 57; _25 += 1) { //#22864 - $k[$j++] = _25; //#22864 - $k[$j++] = _25 - 44; //#22864 - } //#22864 - for (var _26 = 97; _26 <= 122; _26 += 1) { //#22865 - $k[$j++] = _26; //#22865 - $k[$j++] = _26 - 83; //#22865 - } //#22865 - $_.TNvals = $d(); //#22866 - $k[$j++] = Infinity; //#22867 - for (var _28 = 0; _28 <= 31; _28 += 1) { //#22867 - $k[$j++] = _28; //#22867 - $k[$j++] = _28; //#22867 - } //#22867 - $_.T1vals = $d(); //#22867 - $k[$j++] = Infinity; //#22876 - for (var _2A = 33; _2A <= 47; _2A += 1) { //#22869 - $k[$j++] = _2A; //#22869 - $k[$j++] = _2A - 33; //#22869 - } //#22869 - for (var _2B = 58; _2B <= 64; _2B += 1) { //#22870 - $k[$j++] = _2B; //#22870 - $k[$j++] = _2B - 43; //#22870 - } //#22870 - for (var _2C = 91; _2C <= 95; _2C += 1) { //#22871 - $k[$j++] = _2C; //#22871 - $k[$j++] = _2C - 69; //#22871 - } //#22871 - $k[$j++] = $_.fnc1; //#22876 - $k[$j++] = 27; //#22876 - $k[$j++] = $_.fnc2; //#22876 - $k[$j++] = 28; //#22876 - $k[$j++] = $_.fnc3; //#22876 - $k[$j++] = 29; //#22876 - $k[$j++] = $_.fnc4; //#22876 - $k[$j++] = 30; //#22876 - $k[$j++] = $_.pad; //#22876 - $k[$j++] = 31; //#22876 - $_.T2vals = $d(); //#22877 - $k[$j++] = Infinity; //#22881 - $k[$j++] = 96; //#22880 - $k[$j++] = 0; //#22880 - for (var _2J = 65; _2J <= 90; _2J += 1) { //#22880 - $k[$j++] = _2J; //#22880 - $k[$j++] = _2J - 64; //#22880 - } //#22880 - for (var _2K = 123; _2K <= 127; _2K += 1) { //#22881 - $k[$j++] = _2K; //#22881 - $k[$j++] = _2K - 96; //#22881 - } //#22881 - $_.T3vals = $d(); //#22882 - $k[$j++] = Infinity; //#22887 - var _2M = $_.TNvals; //#22884 - for (var _2R = _2M.size, _2Q = _2M.keys(), _2P = 0; _2P < _2R; _2P++) { //#22884 - var _2N = _2Q.next().value; //#22884 - $k[$j++] = _2N; //#22884 - $k[$j++] = _2M.get(_2N); //#22884 - $k[$j++] = Infinity; //#22884 - var _2S = $k[--$j]; //#22884 - var _2T = $k[--$j]; //#22884 - $k[$j++] = _2S; //#22884 - $k[$j++] = _2T; //#22884 - var _2U = $a(); //#22884 - $k[$j++] = _2U; //#22884 - } //#22884 - var _2V = $_.T1vals; //#22885 - for (var _2a = _2V.size, _2Z = _2V.keys(), _2Y = 0; _2Y < _2a; _2Y++) { //#22885 - var _2W = _2Z.next().value; //#22885 - $k[$j++] = _2W; //#22885 - $k[$j++] = _2V.get(_2W); //#22885 - $k[$j++] = Infinity; //#22885 - var _2b = $k[--$j]; //#22885 - var _2c = $k[--$j]; //#22885 - $k[$j++] = _2b; //#22885 - $k[$j++] = $get($_.TNvals, $_.sft1); //#22885 - $k[$j++] = _2c; //#22885 - var _2g = $a(); //#22885 - $k[$j++] = _2g; //#22885 - } //#22885 - var _2h = $_.T2vals; //#22886 - for (var _2m = _2h.size, _2l = _2h.keys(), _2k = 0; _2k < _2m; _2k++) { //#22886 - var _2i = _2l.next().value; //#22886 - $k[$j++] = _2i; //#22886 - $k[$j++] = _2h.get(_2i); //#22886 - $k[$j++] = Infinity; //#22886 - var _2n = $k[--$j]; //#22886 - var _2o = $k[--$j]; //#22886 - $k[$j++] = _2n; //#22886 - $k[$j++] = $get($_.TNvals, $_.sft2); //#22886 - $k[$j++] = _2o; //#22886 - var _2s = $a(); //#22886 - $k[$j++] = _2s; //#22886 - } //#22886 - var _2t = $_.T3vals; //#22887 - for (var _2y = _2t.size, _2x = _2t.keys(), _2w = 0; _2w < _2y; _2w++) { //#22887 - var _2u = _2x.next().value; //#22887 - $k[$j++] = _2u; //#22887 - $k[$j++] = _2t.get(_2u); //#22887 - $k[$j++] = Infinity; //#22887 - var _2z = $k[--$j]; //#22887 - var _30 = $k[--$j]; //#22887 - $k[$j++] = _2z; //#22887 - $k[$j++] = $get($_.TNvals, $_.sft3); //#22887 - $k[$j++] = _30; //#22887 - var _34 = $a(); //#22887 - $k[$j++] = _34; //#22887 - } //#22887 - $_.Tvals = $d(); //#22888 - for (var _36 = 128; _36 <= 255; _36 += 1) { //#22896 - $_.i = _36; //#22892 - $k[$j++] = $_.Avals; //#22893 - $k[$j++] = $_.i; //#22893 - $k[$j++] = Infinity; //#22893 - $aload($get($_.Avals, $_.fnc4)); //#22893 - $aload($get($_.Avals, $_.i - 128)); //#22893 - var _3F = $a(); //#22893 - var _3G = $k[--$j]; //#22893 - $put($k[--$j], _3G, _3F); //#22893 - $k[$j++] = $_.Cvals; //#22894 - $k[$j++] = $_.i; //#22894 - $k[$j++] = Infinity; //#22894 - $aload($get($_.Cvals, $_.fnc4)); //#22894 - $aload($get($_.Cvals, $_.i - 128)); //#22894 - var _3Q = $a(); //#22894 - var _3R = $k[--$j]; //#22894 - $put($k[--$j], _3R, _3Q); //#22894 - $k[$j++] = $_.Tvals; //#22895 - $k[$j++] = $_.i; //#22895 - $k[$j++] = Infinity; //#22895 - $aload($get($_.Tvals, $_.fnc4)); //#22895 - $aload($get($_.Tvals, $_.i - 128)); //#22895 - var _3b = $a(); //#22895 - var _3c = $k[--$j]; //#22895 - $put($k[--$j], _3c, _3b); //#22895 - } //#22895 - $k[$j++] = Infinity; //#22904 - $k[$j++] = 13; //#22903 - $k[$j++] = 0; //#22903 - $k[$j++] = 42; //#22903 - $k[$j++] = 1; //#22903 - $k[$j++] = 62; //#22903 - $k[$j++] = 2; //#22903 - $k[$j++] = 32; //#22903 - $k[$j++] = 3; //#22903 - for (var _3e = 48; _3e <= 57; _3e += 1) { //#22903 - $k[$j++] = _3e; //#22903 - $k[$j++] = _3e - 44; //#22903 - } //#22903 - for (var _3f = 65; _3f <= 90; _3f += 1) { //#22904 - $k[$j++] = _3f; //#22904 - $k[$j++] = _3f - 51; //#22904 - } //#22904 - $_.Xvals = $d(); //#22905 - $k[$j++] = Infinity; //#22907 - var _3h = $_.Xvals; //#22907 - for (var _3m = _3h.size, _3l = _3h.keys(), _3k = 0; _3k < _3m; _3k++) { //#22907 - var _3i = _3l.next().value; //#22907 - $k[$j++] = _3i; //#22907 - $k[$j++] = _3h.get(_3i); //#22907 - $k[$j++] = Infinity; //#22907 - var _3n = $k[--$j]; //#22907 - var _3o = $k[--$j]; //#22907 - $k[$j++] = _3n; //#22907 - $k[$j++] = _3o; //#22907 - var _3p = $a(); //#22907 - $k[$j++] = _3p; //#22907 - } //#22907 - $_.Xvals = $d(); //#22908 - $k[$j++] = Infinity; //#22911 - for (var _3r = 0; _3r <= 255; _3r += 1) { //#22911 - $k[$j++] = _3r; //#22911 - $k[$j++] = _3r; //#22911 - } //#22911 - $_.Bvals = $d(); //#22912 - $k[$j++] = Infinity; //#22914 - var _3t = $_.Bvals; //#22914 - for (var _3y = _3t.size, _3x = _3t.keys(), _3w = 0; _3w < _3y; _3w++) { //#22914 - var _3u = _3x.next().value; //#22914 - $k[$j++] = _3u; //#22914 - $k[$j++] = _3t.get(_3u); //#22914 - $k[$j++] = Infinity; //#22914 - var _3z = $k[--$j]; //#22914 - var _40 = $k[--$j]; //#22914 - $k[$j++] = _3z; //#22914 - $k[$j++] = _40; //#22914 - var _41 = $a(); //#22914 - $k[$j++] = _41; //#22914 - } //#22914 - $_.Bvals = $d(); //#22915 - $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#22917 - $_.A = 0; //#22919 - $_.C = 1; //#22919 - $_.T = 2; //#22919 - $_.X = 3; //#22919 - $_.D = 4; //#22919 - $_.B = 5; //#22919 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#22919 - bwipp_codeone.__22920__ = 1; //#22919 - $_ = Object.getPrototypeOf($_); //#22919 - } //#22919 - if ($_.stype) { //#23418 - $forall($_.barcode, function() { //#22928 - var _4C = $k[--$j]; //#22925 - if ((_4C < 48) || (_4C > 57)) { //#22927 - $k[$j++] = 'bwipp.codeoneStypeNonDigit#22926'; //#22926 - $k[$j++] = "S-Type symbols can only contain digits"; //#22926 - bwipp_raiseerror(); //#22926 - } //#22926 - }); //#22926 - $_.barlen = $_.barcode.length; //#22930 - if ($_.barlen > 18) { //#22933 - $k[$j++] = 'bwipp.codeoneStypeTooLong#22932'; //#22932 - $k[$j++] = "Maximum length exceeded"; //#22932 - bwipp_raiseerror(); //#22932 - } //#22932 + $_ = Object.create($_); //#23036 + $_.dontdraw = false; //#23039 + $_.version = "unset"; //#23040 + $_.parse = false; //#23041 + $_.parsefnc = false; //#23042 + $k[$j++] = $_; //#23044 + bwipp_processoptions(); //#23044 + $_.options = $k[--$j]; //#23044 + $_.barcode = $k[--$j]; //#23045 + var _2 = $a(["unset", "T-16", "T-32", "T-48", "S-10", "S-20", "S-30", "A", "B", "C", "D", "E", "F", "G", "H"]); //#23047 + $k[$j++] = false; //#23048 + for (var _3 = 0, _4 = _2.length; _3 < _4; _3++) { //#23048 + var _7 = $k[--$j]; //#23048 + $k[$j++] = _7 || $eq($get(_2, _3), $_.version); //#23048 + } //#23048 + if ($nt($k[--$j])) { //#23050 + $k[$j++] = 'bwipp.codeoneBadVersion#23049'; //#23049 + $k[$j++] = "version must be A to H, T-16, T-32, T-48, S-10, S-20 or S-30"; //#23049 + bwipp_raiseerror(); //#23049 + } //#23049 + bwipp_loadctx(bwipp_codeone) //#23052 + $_.stype = $eq($geti($_.version, 0, 1), "S"); //#23054 + $_.ttype = $eq($geti($_.version, 0, 1), "T"); //#23055 + if (!bwipp_codeone.__23213__) { //#23213 + $_ = Object.create($_); //#23213 + $_.stypevals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#23077 + $_.stypemetrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#23085 + $_.nonstypemetrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#23101 + $_.fnc1 = -1; //#23104 + $_.fnc3 = -2; //#23104 + $_.lC = -5; //#23105 + $_.lB = -6; //#23105 + $_.lX = -7; //#23105 + $_.lT = -8; //#23105 + $_.lD = -9; //#23105 + $_.unl = -10; //#23105 + $_.fnc2 = -11; //#23106 + $_.fnc4 = -12; //#23106 + $_.sft1 = -13; //#23106 + $_.sft2 = -14; //#23106 + $_.sft3 = -15; //#23106 + $_.eci = -16; //#23106 + $_.pad = -17; //#23106 + $_.fnc1lD = -18; //#23106 + $_.unlcw = 255; //#23107 + $k[$j++] = Infinity; //#23109 + for (var _U = 0; _U <= 128; _U += 1) { //#23110 + $k[$j++] = _U; //#23110 + $k[$j++] = _U + 1; //#23110 + } //#23110 + $k[$j++] = $_.pad; //#23115 + $k[$j++] = 129; //#23115 + for (var _W = 0; _W <= 99; _W += 1) { //#23115 + var _Y = $cvrs($s(2), _W, 10); //#23113 + var _a = $strcpy($s(2), "00"); //#23113 + $puti(_a, 2 - _Y.length, _Y); //#23113 + $k[$j++] = _a; //#23114 + $k[$j++] = _W + 130; //#23114 + } //#23114 + var _i = $a([$_.lC, $_.lB, $_.fnc1, $_.fnc2, $_.fnc3, $_.fnc4, $_.fnc1lD]); //#23116 + $k[$j++] = 229; //#23116 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#23116 + var _n = $f($k[--$j] + 1); //#23116 + $k[$j++] = $get(_i, _j); //#23116 + $k[$j++] = _n; //#23116 + $k[$j++] = _n; //#23116 + } //#23116 + $j--; //#23116 + $k[$j++] = $_.lX; //#23118 + $k[$j++] = 238; //#23118 + $k[$j++] = $_.lT; //#23118 + $k[$j++] = 239; //#23118 + $_.Avals = $d(); //#23120 + $k[$j++] = Infinity; //#23121 + var _r = $_.Avals; //#23122 + for (var _w = _r.size, _v = _r.keys(), _u = 0; _u < _w; _u++) { //#23122 + var _s = _v.next().value; //#23122 + $k[$j++] = _s; //#23122 + $k[$j++] = _r.get(_s); //#23122 + $k[$j++] = Infinity; //#23122 + var _x = $k[--$j]; //#23122 + var _y = $k[--$j]; //#23122 + $k[$j++] = _x; //#23122 + $k[$j++] = _y; //#23122 + var _z = $a(); //#23122 + $k[$j++] = _z; //#23122 + } //#23122 + $_.Avals = $d(); //#23123 + $k[$j++] = Infinity; //#23125 + $k[$j++] = $_.sft1; //#23130 + $k[$j++] = 0; //#23130 + $k[$j++] = $_.sft2; //#23130 + $k[$j++] = 1; //#23130 + $k[$j++] = $_.sft3; //#23130 + $k[$j++] = 2; //#23130 + $k[$j++] = 32; //#23130 + $k[$j++] = 3; //#23130 + for (var _14 = 48; _14 <= 57; _14 += 1) { //#23130 + $k[$j++] = _14; //#23130 + $k[$j++] = _14 - 44; //#23130 + } //#23130 + for (var _15 = 65; _15 <= 90; _15 += 1) { //#23131 + $k[$j++] = _15; //#23131 + $k[$j++] = _15 - 51; //#23131 + } //#23131 + $_.CNvals = $d(); //#23132 + $k[$j++] = Infinity; //#23133 + for (var _17 = 0; _17 <= 31; _17 += 1) { //#23133 + $k[$j++] = _17; //#23133 + $k[$j++] = _17; //#23133 + } //#23133 + $_.C1vals = $d(); //#23133 + $k[$j++] = Infinity; //#23134 + for (var _19 = 33; _19 <= 47; _19 += 1) { //#23135 + $k[$j++] = _19; //#23135 + $k[$j++] = _19 - 33; //#23135 + } //#23135 + for (var _1A = 58; _1A <= 64; _1A += 1) { //#23136 + $k[$j++] = _1A; //#23136 + $k[$j++] = _1A - 43; //#23136 + } //#23136 + for (var _1B = 91; _1B <= 95; _1B += 1) { //#23137 + $k[$j++] = _1B; //#23137 + $k[$j++] = _1B - 69; //#23137 + } //#23137 + $k[$j++] = $_.fnc1; //#23142 + $k[$j++] = 27; //#23142 + $k[$j++] = $_.fnc2; //#23142 + $k[$j++] = 28; //#23142 + $k[$j++] = $_.fnc3; //#23142 + $k[$j++] = 29; //#23142 + $k[$j++] = $_.fnc4; //#23142 + $k[$j++] = 30; //#23142 + $k[$j++] = $_.pad; //#23142 + $k[$j++] = 31; //#23142 + $_.C2vals = $d(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _1I = 96; _1I <= 127; _1I += 1) { //#23144 + $k[$j++] = _1I; //#23144 + $k[$j++] = _1I - 96; //#23144 + } //#23144 + $_.C3vals = $d(); //#23144 + $k[$j++] = Infinity; //#23145 + var _1K = $_.CNvals; //#23146 + for (var _1P = _1K.size, _1O = _1K.keys(), _1N = 0; _1N < _1P; _1N++) { //#23146 + var _1L = _1O.next().value; //#23146 + $k[$j++] = _1L; //#23146 + $k[$j++] = _1K.get(_1L); //#23146 + $k[$j++] = Infinity; //#23146 + var _1Q = $k[--$j]; //#23146 + var _1R = $k[--$j]; //#23146 + $k[$j++] = _1Q; //#23146 + $k[$j++] = _1R; //#23146 + var _1S = $a(); //#23146 + $k[$j++] = _1S; //#23146 + } //#23146 + var _1T = $_.C1vals; //#23147 + for (var _1Y = _1T.size, _1X = _1T.keys(), _1W = 0; _1W < _1Y; _1W++) { //#23147 + var _1U = _1X.next().value; //#23147 + $k[$j++] = _1U; //#23147 + $k[$j++] = _1T.get(_1U); //#23147 + $k[$j++] = Infinity; //#23147 + var _1Z = $k[--$j]; //#23147 + var _1a = $k[--$j]; //#23147 + $k[$j++] = _1Z; //#23147 + $k[$j++] = $get($_.CNvals, $_.sft1); //#23147 + $k[$j++] = _1a; //#23147 + var _1e = $a(); //#23147 + $k[$j++] = _1e; //#23147 + } //#23147 + var _1f = $_.C2vals; //#23148 + for (var _1k = _1f.size, _1j = _1f.keys(), _1i = 0; _1i < _1k; _1i++) { //#23148 + var _1g = _1j.next().value; //#23148 + $k[$j++] = _1g; //#23148 + $k[$j++] = _1f.get(_1g); //#23148 + $k[$j++] = Infinity; //#23148 + var _1l = $k[--$j]; //#23148 + var _1m = $k[--$j]; //#23148 + $k[$j++] = _1l; //#23148 + $k[$j++] = $get($_.CNvals, $_.sft2); //#23148 + $k[$j++] = _1m; //#23148 + var _1q = $a(); //#23148 + $k[$j++] = _1q; //#23148 + } //#23148 + var _1r = $_.C3vals; //#23149 + for (var _1w = _1r.size, _1v = _1r.keys(), _1u = 0; _1u < _1w; _1u++) { //#23149 + var _1s = _1v.next().value; //#23149 + $k[$j++] = _1s; //#23149 + $k[$j++] = _1r.get(_1s); //#23149 + $k[$j++] = Infinity; //#23149 + var _1x = $k[--$j]; //#23149 + var _1y = $k[--$j]; //#23149 + $k[$j++] = _1x; //#23149 + $k[$j++] = $get($_.CNvals, $_.sft3); //#23149 + $k[$j++] = _1y; //#23149 + var _22 = $a(); //#23149 + $k[$j++] = _22; //#23149 + } //#23149 + $_.Cvals = $d(); //#23150 + $k[$j++] = Infinity; //#23152 + $k[$j++] = $_.sft1; //#23157 + $k[$j++] = 0; //#23157 + $k[$j++] = $_.sft2; //#23157 + $k[$j++] = 1; //#23157 + $k[$j++] = $_.sft3; //#23157 + $k[$j++] = 2; //#23157 + $k[$j++] = 32; //#23157 + $k[$j++] = 3; //#23157 + for (var _27 = 48; _27 <= 57; _27 += 1) { //#23157 + $k[$j++] = _27; //#23157 + $k[$j++] = _27 - 44; //#23157 + } //#23157 + for (var _28 = 97; _28 <= 122; _28 += 1) { //#23158 + $k[$j++] = _28; //#23158 + $k[$j++] = _28 - 83; //#23158 + } //#23158 + $_.TNvals = $d(); //#23159 + $k[$j++] = Infinity; //#23160 + for (var _2A = 0; _2A <= 31; _2A += 1) { //#23160 + $k[$j++] = _2A; //#23160 + $k[$j++] = _2A; //#23160 + } //#23160 + $_.T1vals = $d(); //#23160 + $k[$j++] = Infinity; //#23161 + for (var _2C = 33; _2C <= 47; _2C += 1) { //#23162 + $k[$j++] = _2C; //#23162 + $k[$j++] = _2C - 33; //#23162 + } //#23162 + for (var _2D = 58; _2D <= 64; _2D += 1) { //#23163 + $k[$j++] = _2D; //#23163 + $k[$j++] = _2D - 43; //#23163 + } //#23163 + for (var _2E = 91; _2E <= 95; _2E += 1) { //#23164 + $k[$j++] = _2E; //#23164 + $k[$j++] = _2E - 69; //#23164 + } //#23164 + $k[$j++] = $_.fnc1; //#23169 + $k[$j++] = 27; //#23169 + $k[$j++] = $_.fnc2; //#23169 + $k[$j++] = 28; //#23169 + $k[$j++] = $_.fnc3; //#23169 + $k[$j++] = 29; //#23169 + $k[$j++] = $_.fnc4; //#23169 + $k[$j++] = 30; //#23169 + $k[$j++] = $_.pad; //#23169 + $k[$j++] = 31; //#23169 + $_.T2vals = $d(); //#23170 + $k[$j++] = Infinity; //#23171 + $k[$j++] = 96; //#23173 + $k[$j++] = 0; //#23173 + for (var _2L = 65; _2L <= 90; _2L += 1) { //#23173 + $k[$j++] = _2L; //#23173 + $k[$j++] = _2L - 64; //#23173 + } //#23173 + for (var _2M = 123; _2M <= 127; _2M += 1) { //#23174 + $k[$j++] = _2M; //#23174 + $k[$j++] = _2M - 96; //#23174 + } //#23174 + $_.T3vals = $d(); //#23175 + $k[$j++] = Infinity; //#23176 + var _2O = $_.TNvals; //#23177 + for (var _2T = _2O.size, _2S = _2O.keys(), _2R = 0; _2R < _2T; _2R++) { //#23177 + var _2P = _2S.next().value; //#23177 + $k[$j++] = _2P; //#23177 + $k[$j++] = _2O.get(_2P); //#23177 + $k[$j++] = Infinity; //#23177 + var _2U = $k[--$j]; //#23177 + var _2V = $k[--$j]; //#23177 + $k[$j++] = _2U; //#23177 + $k[$j++] = _2V; //#23177 + var _2W = $a(); //#23177 + $k[$j++] = _2W; //#23177 + } //#23177 + var _2X = $_.T1vals; //#23178 + for (var _2c = _2X.size, _2b = _2X.keys(), _2a = 0; _2a < _2c; _2a++) { //#23178 + var _2Y = _2b.next().value; //#23178 + $k[$j++] = _2Y; //#23178 + $k[$j++] = _2X.get(_2Y); //#23178 + $k[$j++] = Infinity; //#23178 + var _2d = $k[--$j]; //#23178 + var _2e = $k[--$j]; //#23178 + $k[$j++] = _2d; //#23178 + $k[$j++] = $get($_.TNvals, $_.sft1); //#23178 + $k[$j++] = _2e; //#23178 + var _2i = $a(); //#23178 + $k[$j++] = _2i; //#23178 + } //#23178 + var _2j = $_.T2vals; //#23179 + for (var _2o = _2j.size, _2n = _2j.keys(), _2m = 0; _2m < _2o; _2m++) { //#23179 + var _2k = _2n.next().value; //#23179 + $k[$j++] = _2k; //#23179 + $k[$j++] = _2j.get(_2k); //#23179 + $k[$j++] = Infinity; //#23179 + var _2p = $k[--$j]; //#23179 + var _2q = $k[--$j]; //#23179 + $k[$j++] = _2p; //#23179 + $k[$j++] = $get($_.TNvals, $_.sft2); //#23179 + $k[$j++] = _2q; //#23179 + var _2u = $a(); //#23179 + $k[$j++] = _2u; //#23179 + } //#23179 + var _2v = $_.T3vals; //#23180 + for (var _30 = _2v.size, _2z = _2v.keys(), _2y = 0; _2y < _30; _2y++) { //#23180 + var _2w = _2z.next().value; //#23180 + $k[$j++] = _2w; //#23180 + $k[$j++] = _2v.get(_2w); //#23180 + $k[$j++] = Infinity; //#23180 + var _31 = $k[--$j]; //#23180 + var _32 = $k[--$j]; //#23180 + $k[$j++] = _31; //#23180 + $k[$j++] = $get($_.TNvals, $_.sft3); //#23180 + $k[$j++] = _32; //#23180 + var _36 = $a(); //#23180 + $k[$j++] = _36; //#23180 + } //#23180 + $_.Tvals = $d(); //#23181 + for (var _38 = 128; _38 <= 255; _38 += 1) { //#23189 + $_.i = _38; //#23185 + $k[$j++] = $_.Avals; //#23186 + $k[$j++] = $_.i; //#23186 + $k[$j++] = Infinity; //#23186 + $aload($get($_.Avals, $_.fnc4)); //#23186 + $aload($get($_.Avals, $_.i - 128)); //#23186 + var _3H = $a(); //#23186 + var _3I = $k[--$j]; //#23186 + $put($k[--$j], _3I, _3H); //#23186 + $k[$j++] = $_.Cvals; //#23187 + $k[$j++] = $_.i; //#23187 + $k[$j++] = Infinity; //#23187 + $aload($get($_.Cvals, $_.fnc4)); //#23187 + $aload($get($_.Cvals, $_.i - 128)); //#23187 + var _3S = $a(); //#23187 + var _3T = $k[--$j]; //#23187 + $put($k[--$j], _3T, _3S); //#23187 + $k[$j++] = $_.Tvals; //#23188 + $k[$j++] = $_.i; //#23188 + $k[$j++] = Infinity; //#23188 + $aload($get($_.Tvals, $_.fnc4)); //#23188 + $aload($get($_.Tvals, $_.i - 128)); //#23188 + var _3d = $a(); //#23188 + var _3e = $k[--$j]; //#23188 + $put($k[--$j], _3e, _3d); //#23188 + } //#23188 + $k[$j++] = Infinity; //#23191 + $k[$j++] = 13; //#23196 + $k[$j++] = 0; //#23196 + $k[$j++] = 42; //#23196 + $k[$j++] = 1; //#23196 + $k[$j++] = 62; //#23196 + $k[$j++] = 2; //#23196 + $k[$j++] = 32; //#23196 + $k[$j++] = 3; //#23196 + for (var _3g = 48; _3g <= 57; _3g += 1) { //#23196 + $k[$j++] = _3g; //#23196 + $k[$j++] = _3g - 44; //#23196 + } //#23196 + for (var _3h = 65; _3h <= 90; _3h += 1) { //#23197 + $k[$j++] = _3h; //#23197 + $k[$j++] = _3h - 51; //#23197 + } //#23197 + $_.Xvals = $d(); //#23198 + $k[$j++] = Infinity; //#23199 + var _3j = $_.Xvals; //#23200 + for (var _3o = _3j.size, _3n = _3j.keys(), _3m = 0; _3m < _3o; _3m++) { //#23200 + var _3k = _3n.next().value; //#23200 + $k[$j++] = _3k; //#23200 + $k[$j++] = _3j.get(_3k); //#23200 + $k[$j++] = Infinity; //#23200 + var _3p = $k[--$j]; //#23200 + var _3q = $k[--$j]; //#23200 + $k[$j++] = _3p; //#23200 + $k[$j++] = _3q; //#23200 + var _3r = $a(); //#23200 + $k[$j++] = _3r; //#23200 + } //#23200 + $_.Xvals = $d(); //#23201 + $k[$j++] = Infinity; //#23203 + for (var _3t = 0; _3t <= 255; _3t += 1) { //#23204 + $k[$j++] = _3t; //#23204 + $k[$j++] = _3t; //#23204 + } //#23204 + $_.Bvals = $d(); //#23205 + $k[$j++] = Infinity; //#23206 + var _3v = $_.Bvals; //#23207 + for (var _40 = _3v.size, _3z = _3v.keys(), _3y = 0; _3y < _40; _3y++) { //#23207 + var _3w = _3z.next().value; //#23207 + $k[$j++] = _3w; //#23207 + $k[$j++] = _3v.get(_3w); //#23207 + $k[$j++] = Infinity; //#23207 + var _41 = $k[--$j]; //#23207 + var _42 = $k[--$j]; //#23207 + $k[$j++] = _41; //#23207 + $k[$j++] = _42; //#23207 + var _43 = $a(); //#23207 + $k[$j++] = _43; //#23207 + } //#23207 + $_.Bvals = $d(); //#23208 + $_.encvals = $a([$_.Avals, $_.Cvals, $_.Tvals, $_.Xvals, -1, $_.Bvals]); //#23210 + $_.A = 0; //#23212 + $_.C = 1; //#23212 + $_.T = 2; //#23212 + $_.X = 3; //#23212 + $_.D = 4; //#23212 + $_.B = 5; //#23212 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23212 + bwipp_codeone.__23213__ = 1; //#23212 + $_ = Object.getPrototypeOf($_); //#23212 + } //#23212 + if ($_.stype) { //#23711 + $forall($_.barcode, function() { //#23221 + var _4E = $k[--$j]; //#23218 + if ((_4E < 48) || (_4E > 57)) { //#23220 + $k[$j++] = 'bwipp.codeoneStypeNonDigit#23219'; //#23219 + $k[$j++] = "S-Type symbols can only contain digits"; //#23219 + bwipp_raiseerror(); //#23219 + } //#23219 + }); //#23219 + $_.barlen = $_.barcode.length; //#23223 + if ($_.barlen > 18) { //#23226 + $k[$j++] = 'bwipp.codeoneStypeTooLong#23225'; //#23225 + $k[$j++] = "Maximum length exceeded"; //#23225 + bwipp_raiseerror(); //#23225 + } //#23225 $_.normalize = function() { - $_.base = $k[--$j]; //#22936 - $_.num = $k[--$j]; //#22937 - for (var _4I = $_.num.length - 1; _4I >= 1; _4I -= 1) { //#22942 - $_.i = _4I; //#22939 - var _4J = $_.num; //#22940 - var _4K = $_.i; //#22940 - $put(_4J, _4K - 1, $f($get(_4J, _4K - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#22940 - $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#22941 - } //#22941 - for (;;) { //#22948 - if ($lt($get($_.num, 0), $_.base)) { //#22944 - break; //#22944 - } //#22944 - $k[$j++] = Infinity; //#22945 - $k[$j++] = 0; //#22945 - $forall($_.num); //#22945 - $_.num = $a(); //#22945 - $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#22946 - $put($_.num, 1, $get($_.num, 1) % $_.base); //#22947 - } //#22947 - $k[$j++] = Infinity; //#22950 - $_.i = true; //#22950 - var _4l = $_.num; //#22950 - for (var _4m = 0, _4n = _4l.length; _4m < _4n; _4m++) { //#22950 - var _4o = $get(_4l, _4m); //#22950 - $k[$j++] = _4o; //#22950 - if ((_4o == 0) && $_.i) { //#22950 - $j--; //#22950 - } else { //#22950 - $_.i = false; //#22950 - } //#22950 - } //#22950 - $_.num = $a(); //#22950 - if ($_.num.length == 0) { //#22951 - $_.num = $a([0]); //#22951 - } //#22951 - $k[$j++] = $_.num; //#22952 - }; //#22952 + $_.base = $k[--$j]; //#23229 + $_.num = $k[--$j]; //#23230 + for (var _4K = $_.num.length - 1; _4K >= 1; _4K -= 1) { //#23235 + $_.i = _4K; //#23232 + var _4L = $_.num; //#23233 + var _4M = $_.i; //#23233 + $put(_4L, _4M - 1, $f($get(_4L, _4M - 1) + (~~($get($_.num, $_.i) / $_.base)))); //#23233 + $put($_.num, $_.i, $get($_.num, $_.i) % $_.base); //#23234 + } //#23234 + for (;;) { //#23241 + if ($lt($get($_.num, 0), $_.base)) { //#23237 + break; //#23237 + } //#23237 + $k[$j++] = Infinity; //#23238 + $k[$j++] = 0; //#23238 + $forall($_.num); //#23238 + $_.num = $a(); //#23238 + $put($_.num, 0, $f($get($_.num, 0) + (~~($get($_.num, 1) / $_.base)))); //#23239 + $put($_.num, 1, $get($_.num, 1) % $_.base); //#23240 + } //#23240 + $k[$j++] = Infinity; //#23243 + $_.i = true; //#23243 + var _4n = $_.num; //#23243 + for (var _4o = 0, _4p = _4n.length; _4o < _4p; _4o++) { //#23243 + var _4q = $get(_4n, _4o); //#23243 + $k[$j++] = _4q; //#23243 + if ((_4q == 0) && $_.i) { //#23243 + $j--; //#23243 + } else { //#23243 + $_.i = false; //#23243 + } //#23243 + } //#23243 + $_.num = $a(); //#23243 + if ($_.num.length == 0) { //#23244 + $_.num = $a([0]); //#23244 + } //#23244 + $k[$j++] = $_.num; //#23245 + }; //#23245 $_.bigadd = function() { - var _4u = $k[--$j]; //#22956 - var _4v = $k[--$j]; //#22956 - $_.offset = Math.abs(_4u.length - _4v.length); //#22957 - if (_4u.length < _4v.length) { //#22958 - var _ = _4u; //#22958 - _4u = _4v; //#22958 - _4v = _; //#22958 - } //#22958 - $_.a = _4u; //#22959 - $_.b = _4v; //#22959 - for (var _4y = 0, _4x = $_.b.length - 1; _4y <= _4x; _4y += 1) { //#22962 - var _4z = $_.a; //#22961 - var _50 = $_.offset; //#22961 - $put(_4z, _4y + _50, $f($get(_4z, _4y + _50) + $get($_.b, _4y))); //#22961 - } //#22961 - $k[$j++] = $_.a; //#22963 - }; //#22963 - $_.barlen = $_.barcode.length; //#22966 - $_.v = $a([1]); //#22969 - for (var _59 = 0, _58 = $_.barlen - 1; _59 <= _58; _59 += 1) { //#22974 - $_.i = _59; //#22971 - $k[$j++] = Infinity; //#22972 - $forall($get($_.stypevals, $_.i), function() { //#22972 - var _5D = $k[--$j]; //#22972 - $k[$j++] = $f(_5D - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#22972 - }); //#22972 - var _5I = $a(); //#22972 - $k[$j++] = _5I; //#22973 - $k[$j++] = $_.v; //#22973 - $_.bigadd(); //#22973 - $_.v = $k[--$j]; //#22973 - } //#22973 - $k[$j++] = 'v'; //#22975 - $k[$j++] = $_.v; //#22975 - $k[$j++] = 2; //#22975 - $_.normalize(); //#22975 - var _5M = $k[--$j]; //#22975 - $_[$k[--$j]] = _5M; //#22975 - $k[$j++] = Infinity; //#22978 - for (var _5P = 0, _5Q = (5 - ($_.v.length % 5)) % 5; _5P < _5Q; _5P++) { //#22978 - $k[$j++] = 0; //#22978 - } //#22978 - $aload($_.v); //#22978 - $_.v = $a(); //#22978 - $_.cws = $a(~~($_.v.length / 5)); //#22979 - for (var _5X = 0, _5W = $_.cws.length - 1; _5X <= _5W; _5X += 1) { //#22985 - $_.i = _5X; //#22981 - var _5a = $geti($_.v, $_.i * 5, 5); //#22982 - $k[$j++] = 0; //#22983 - for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#22983 - var _5e = $k[--$j]; //#22983 - $k[$j++] = $f(_5e + $get(_5a, _5b)) * 2; //#22983 - } //#22983 - $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#22984 - } //#22984 - $_.metrics = $_.stypemetrics; //#22987 - } else { //#23418 - var _5n = new Map([ + var _4w = $k[--$j]; //#23249 + var _4x = $k[--$j]; //#23249 + $_.offset = Math.abs(_4w.length - _4x.length); //#23250 + if (_4w.length < _4x.length) { //#23251 + var _ = _4w; //#23251 + _4w = _4x; //#23251 + _4x = _; //#23251 + } //#23251 + $_.a = _4w; //#23252 + $_.b = _4x; //#23252 + for (var _50 = 0, _4z = $_.b.length - 1; _50 <= _4z; _50 += 1) { //#23255 + var _51 = $_.a; //#23254 + var _52 = $_.offset; //#23254 + $put(_51, _50 + _52, $f($get(_51, _50 + _52) + $get($_.b, _50))); //#23254 + } //#23254 + $k[$j++] = $_.a; //#23256 + }; //#23256 + $_.barlen = $_.barcode.length; //#23259 + $_.v = $a([1]); //#23262 + for (var _5B = 0, _5A = $_.barlen - 1; _5B <= _5A; _5B += 1) { //#23267 + $_.i = _5B; //#23264 + $k[$j++] = Infinity; //#23265 + $forall($get($_.stypevals, $_.i), function() { //#23265 + var _5F = $k[--$j]; //#23265 + $k[$j++] = $f(_5F - 48) * $f($get($_.barcode, ($_.barlen - $_.i) - 1) - 48); //#23265 + }); //#23265 + var _5K = $a(); //#23265 + $k[$j++] = _5K; //#23266 + $k[$j++] = $_.v; //#23266 + $_.bigadd(); //#23266 + $_.v = $k[--$j]; //#23266 + } //#23266 + $k[$j++] = 'v'; //#23268 + $k[$j++] = $_.v; //#23268 + $k[$j++] = 2; //#23268 + $_.normalize(); //#23268 + var _5O = $k[--$j]; //#23268 + $_[$k[--$j]] = _5O; //#23268 + $k[$j++] = Infinity; //#23271 + for (var _5R = 0, _5S = (5 - ($_.v.length % 5)) % 5; _5R < _5S; _5R++) { //#23271 + $k[$j++] = 0; //#23271 + } //#23271 + $aload($_.v); //#23271 + $_.v = $a(); //#23271 + $_.cws = $a(~~($_.v.length / 5)); //#23272 + for (var _5Z = 0, _5Y = $_.cws.length - 1; _5Z <= _5Y; _5Z += 1) { //#23278 + $_.i = _5Z; //#23274 + var _5c = $geti($_.v, $_.i * 5, 5); //#23275 + $k[$j++] = 0; //#23276 + for (var _5d = 0, _5e = _5c.length; _5d < _5e; _5d++) { //#23276 + var _5g = $k[--$j]; //#23276 + $k[$j++] = $f(_5g + $get(_5c, _5d)) * 2; //#23276 + } //#23276 + $put($_.cws, $_.i, ~~($k[--$j] / 2)); //#23277 + } //#23277 + $_.metrics = $_.stypemetrics; //#23280 + } else { //#23711 + var _5p = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fnc1], ["FNC3", $_.fnc3] - ]); //#22997 - $_.fncvals = _5n; //#22998 - $k[$j++] = 'msg'; //#22999 - $k[$j++] = $_.barcode; //#22999 - $k[$j++] = $_.fncvals; //#22999 - bwipp_parseinput(); //#22999 - var _5q = $k[--$j]; //#22999 - $_[$k[--$j]] = _5q; //#22999 - $_.msglen = $_.msg.length; //#23000 - $_.eciesc = 92; //#23003 - var _5t = $_.msg; //#23004 - $k[$j++] = 'numecis'; //#23004 - $k[$j++] = 0; //#23004 - for (var _5u = 0, _5v = _5t.length; _5u < _5v; _5u++) { //#23004 - if ($get(_5t, _5u) <= -1000000) { //#23004 - var _5x = $k[--$j]; //#23004 - $k[$j++] = $f(_5x + 1); //#23004 - } //#23004 - } //#23004 - var _5y = $k[--$j]; //#23004 - $_[$k[--$j]] = _5y; //#23004 - if ($_.numecis > 0) { //#23031 - $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23006 - $put($_.msgtmp, 0, $_.pad); //#23007 - $put($_.msgtmp, 1, $_.eciesc); //#23008 - $_.j = 2; //#23009 - for (var _6A = 0, _69 = $_.msg.length - 1; _6A <= _69; _6A += 1) { //#23028 - var _6C = $get($_.msg, _6A); //#23011 - $k[$j++] = _6C; //#23027 - if (_6C <= -1000000) { //#23025 - var _6G = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23013 - for (var _6H = 0, _6I = _6G.length; _6H < _6I; _6H++) { //#23013 - $k[$j++] = $get(_6G, _6H); //#23013 - } //#23013 - $astore($a(6)); //#23013 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23014 - $put($_.msgtmp, $_.j, $_.eciesc); //#23015 - $_.j = $_.j + 7; //#23016 - } else { //#23025 - var _6S = $k[--$j]; //#23018 - $k[$j++] = _6S; //#23026 - if (_6S != $_.eciesc) { //#23025 - $put($_.msgtmp, $_.j, $k[--$j]); //#23019 - $_.j = $_.j + 1; //#23020 - } else { //#23025 - $j--; //#23022 - $put($_.msgtmp, $_.j, $_.eciesc); //#23023 - $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23024 - $_.j = $_.j + 2; //#23025 - } //#23025 - } //#23025 - } //#23025 - $_.msg = $geti($_.msgtmp, 0, $_.j); //#23029 - $_.msglen = $_.msg.length; //#23030 - } //#23030 - $_.metrics = $_.nonstypemetrics; //#23033 - $_.fullcws = $a([]); //#23036 - var _6l = $_.metrics; //#23037 - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#23048 - $_.m = $get(_6l, _6m); //#23038 - $_.vers = $get($_.m, 0); //#23039 - $_.dcws = $get($_.m, 4); //#23040 - $_.okay = true; //#23041 - if ($eq($_.version, "unset")) { //#23045 - if ($_.vers.length != 1) { //#23043 - $_.okay = false; //#23043 - } //#23043 - } else { //#23045 - if ($ne($_.version, $_.vers)) { //#23045 - $_.okay = false; //#23045 - } //#23045 - } //#23045 - if ($_.okay) { //#23047 - $k[$j++] = Infinity; //#23047 - $aload($_.fullcws); //#23047 - $k[$j++] = $_.dcws; //#23047 - $_.fullcws = $a(); //#23047 - } //#23047 - } //#23047 - $k[$j++] = Infinity; //#23049 - for (var _71 = 0, _72 = 1480; _71 < _72; _71++) { //#23049 - $k[$j++] = 10000; //#23049 - } //#23049 - $_.numremcws = $a(); //#23049 - var _74 = $_.fullcws; //#23050 - for (var _75 = 0, _76 = _74.length; _75 < _76; _75++) { //#23050 - $put($_.numremcws, $f($get(_74, _75) - 1), 1); //#23050 - } //#23050 - for (var _79 = 1478; _79 >= 0; _79 -= 1) { //#23056 - $_.i = _79; //#23052 - if ($get($_.numremcws, $_.i) != 1) { //#23055 - $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23054 - } //#23054 - } //#23054 - $k[$j++] = Infinity; //#23058 - for (var _7J = 0, _7K = $_.msglen; _7J < _7K; _7J++) { //#23058 - $k[$j++] = 0; //#23058 - } //#23058 - $k[$j++] = 0; //#23058 - $_.numD = $a(); //#23058 - $k[$j++] = Infinity; //#23059 - for (var _7N = 0, _7O = $_.msglen; _7N < _7O; _7N++) { //#23059 - $k[$j++] = 0; //#23059 - } //#23059 - $k[$j++] = 9999; //#23059 - $_.nextXterm = $a(); //#23059 - $k[$j++] = Infinity; //#23060 - for (var _7R = 0, _7S = $_.msglen; _7R < _7S; _7R++) { //#23060 - $k[$j++] = 0; //#23060 - } //#23060 - $k[$j++] = 9999; //#23060 - $_.nextNonX = $a(); //#23060 - for (var _7V = $_.msglen - 1; _7V >= 0; _7V -= 1) { //#23077 - $_.i = _7V; //#23062 - $_.barchar = $get($_.msg, $_.i); //#23063 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23066 - $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23065 - } //#23065 - if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23070 - $put($_.nextXterm, $_.i, 0); //#23068 - } else { //#23070 - $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23070 - } //#23070 - var _7s = $get($_.Xvals, $_.barchar) !== undefined; //#23072 - if (!_7s) { //#23075 - $put($_.nextNonX, $_.i, 0); //#23073 - } else { //#23075 - $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23075 - } //#23075 - } //#23075 - $k[$j++] = Infinity; //#23078 - var _80 = $_.nextXterm; //#23078 - for (var _81 = 0, _82 = _80.length; _81 < _82; _81++) { //#23078 - var _83 = $get(_80, _81); //#23078 - $k[$j++] = _83; //#23078 - if (_83 > 10000) { //#23078 - $j--; //#23078 - $k[$j++] = 10000; //#23078 - } //#23078 - } //#23078 - $_.nextXterm = $a(); //#23078 - $k[$j++] = Infinity; //#23079 - var _85 = $_.nextNonX; //#23079 - for (var _86 = 0, _87 = _85.length; _86 < _87; _86++) { //#23079 - var _88 = $get(_85, _86); //#23079 - $k[$j++] = _88; //#23079 - if (_88 > 10000) { //#23079 - $j--; //#23079 - $k[$j++] = 10000; //#23079 - } //#23079 - } //#23079 - $_.nextNonX = $a(); //#23079 + ]); //#23290 + $_.fncvals = _5p; //#23291 + $k[$j++] = 'msg'; //#23292 + $k[$j++] = $_.barcode; //#23292 + $k[$j++] = $_.fncvals; //#23292 + bwipp_parseinput(); //#23292 + var _5s = $k[--$j]; //#23292 + $_[$k[--$j]] = _5s; //#23292 + $_.msglen = $_.msg.length; //#23293 + $_.eciesc = 92; //#23296 + var _5v = $_.msg; //#23297 + $k[$j++] = 'numecis'; //#23297 + $k[$j++] = 0; //#23297 + for (var _5w = 0, _5x = _5v.length; _5w < _5x; _5w++) { //#23297 + if ($get(_5v, _5w) <= -1000000) { //#23297 + var _5z = $k[--$j]; //#23297 + $k[$j++] = $f(_5z + 1); //#23297 + } //#23297 + } //#23297 + var _60 = $k[--$j]; //#23297 + $_[$k[--$j]] = _60; //#23297 + if ($_.numecis > 0) { //#23324 + $_.msgtmp = $a($f(($f(($_.msg.length * 2) + ($_.numecis * 6))) + 2)); //#23299 + $put($_.msgtmp, 0, $_.pad); //#23300 + $put($_.msgtmp, 1, $_.eciesc); //#23301 + $_.j = 2; //#23302 + for (var _6C = 0, _6B = $_.msg.length - 1; _6C <= _6B; _6C += 1) { //#23321 + var _6E = $get($_.msg, _6C); //#23304 + $k[$j++] = _6E; //#23320 + if (_6E <= -1000000) { //#23318 + var _6I = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23306 + for (var _6J = 0, _6K = _6I.length; _6J < _6K; _6J++) { //#23306 + $k[$j++] = $get(_6I, _6J); //#23306 + } //#23306 + $astore($a(6)); //#23306 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#23307 + $put($_.msgtmp, $_.j, $_.eciesc); //#23308 + $_.j = $_.j + 7; //#23309 + } else { //#23318 + var _6U = $k[--$j]; //#23311 + $k[$j++] = _6U; //#23319 + if (_6U != $_.eciesc) { //#23318 + $put($_.msgtmp, $_.j, $k[--$j]); //#23312 + $_.j = $_.j + 1; //#23313 + } else { //#23318 + $j--; //#23315 + $put($_.msgtmp, $_.j, $_.eciesc); //#23316 + $put($_.msgtmp, $_.j + 1, $_.eciesc); //#23317 + $_.j = $_.j + 2; //#23318 + } //#23318 + } //#23318 + } //#23318 + $_.msg = $geti($_.msgtmp, 0, $_.j); //#23322 + $_.msglen = $_.msg.length; //#23323 + } //#23323 + $_.metrics = $_.nonstypemetrics; //#23326 + $_.fullcws = $a([]); //#23329 + var _6n = $_.metrics; //#23330 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#23341 + $_.m = $get(_6n, _6o); //#23331 + $_.vers = $get($_.m, 0); //#23332 + $_.dcws = $get($_.m, 4); //#23333 + $_.okay = true; //#23334 + if ($eq($_.version, "unset")) { //#23338 + if ($_.vers.length != 1) { //#23336 + $_.okay = false; //#23336 + } //#23336 + } else { //#23338 + if ($ne($_.version, $_.vers)) { //#23338 + $_.okay = false; //#23338 + } //#23338 + } //#23338 + if ($_.okay) { //#23340 + $k[$j++] = Infinity; //#23340 + $aload($_.fullcws); //#23340 + $k[$j++] = $_.dcws; //#23340 + $_.fullcws = $a(); //#23340 + } //#23340 + } //#23340 + $k[$j++] = Infinity; //#23342 + for (var _73 = 0, _74 = 1480; _73 < _74; _73++) { //#23342 + $k[$j++] = 10000; //#23342 + } //#23342 + $_.numremcws = $a(); //#23342 + var _76 = $_.fullcws; //#23343 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#23343 + $put($_.numremcws, $f($get(_76, _77) - 1), 1); //#23343 + } //#23343 + for (var _7B = 1478; _7B >= 0; _7B -= 1) { //#23349 + $_.i = _7B; //#23345 + if ($get($_.numremcws, $_.i) != 1) { //#23348 + $put($_.numremcws, $_.i, $f($get($_.numremcws, $_.i + 1) + 1)); //#23347 + } //#23347 + } //#23347 + $k[$j++] = Infinity; //#23351 + for (var _7L = 0, _7M = $_.msglen; _7L < _7M; _7L++) { //#23351 + $k[$j++] = 0; //#23351 + } //#23351 + $k[$j++] = 0; //#23351 + $_.numD = $a(); //#23351 + $k[$j++] = Infinity; //#23352 + for (var _7P = 0, _7Q = $_.msglen; _7P < _7Q; _7P++) { //#23352 + $k[$j++] = 0; //#23352 + } //#23352 + $k[$j++] = 9999; //#23352 + $_.nextXterm = $a(); //#23352 + $k[$j++] = Infinity; //#23353 + for (var _7T = 0, _7U = $_.msglen; _7T < _7U; _7T++) { //#23353 + $k[$j++] = 0; //#23353 + } //#23353 + $k[$j++] = 9999; //#23353 + $_.nextNonX = $a(); //#23353 + for (var _7X = $_.msglen - 1; _7X >= 0; _7X -= 1) { //#23370 + $_.i = _7X; //#23355 + $_.barchar = $get($_.msg, $_.i); //#23356 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#23359 + $put($_.numD, $_.i, $f($get($_.numD, $_.i + 1) + 1)); //#23358 + } //#23358 + if ((($_.barchar == 13) || ($_.barchar == 42)) || ($_.barchar == 62)) { //#23363 + $put($_.nextXterm, $_.i, 0); //#23361 + } else { //#23363 + $put($_.nextXterm, $_.i, $f($get($_.nextXterm, $_.i + 1) + 1)); //#23363 + } //#23363 + var _7u = $get($_.Xvals, $_.barchar) !== undefined; //#23365 + if (!_7u) { //#23368 + $put($_.nextNonX, $_.i, 0); //#23366 + } else { //#23368 + $put($_.nextNonX, $_.i, $f($get($_.nextNonX, $_.i + 1) + 1)); //#23368 + } //#23368 + } //#23368 + $k[$j++] = Infinity; //#23371 + var _82 = $_.nextXterm; //#23371 + for (var _83 = 0, _84 = _82.length; _83 < _84; _83++) { //#23371 + var _85 = $get(_82, _83); //#23371 + $k[$j++] = _85; //#23371 + if (_85 > 10000) { //#23371 + $j--; //#23371 + $k[$j++] = 10000; //#23371 + } //#23371 + } //#23371 + $_.nextXterm = $a(); //#23371 + $k[$j++] = Infinity; //#23372 + var _87 = $_.nextNonX; //#23372 + for (var _88 = 0, _89 = _87.length; _88 < _89; _88++) { //#23372 + var _8A = $get(_87, _88); //#23372 + $k[$j++] = _8A; //#23372 + if (_8A > 10000) { //#23372 + $j--; //#23372 + $k[$j++] = 10000; //#23372 + } //#23372 + } //#23372 + $_.nextNonX = $a(); //#23372 $_.isD = function() { - $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23081 - }; //#23081 + $k[$j++] = ($_.char >= 48) && ($_.char <= 57); //#23374 + }; //#23374 $_.isC = function() { - var _8E = $get($_.CNvals, $_.char) !== undefined; //#23082 - $k[$j++] = _8E; //#23082 - }; //#23082 + var _8G = $get($_.CNvals, $_.char) !== undefined; //#23375 + $k[$j++] = _8G; //#23375 + }; //#23375 $_.isT = function() { - var _8H = $get($_.TNvals, $_.char) !== undefined; //#23083 - $k[$j++] = _8H; //#23083 - }; //#23083 + var _8J = $get($_.TNvals, $_.char) !== undefined; //#23376 + $k[$j++] = _8J; //#23376 + }; //#23376 $_.isX = function() { - var _8K = $get($_.Xvals, $_.char) !== undefined; //#23084 - $k[$j++] = _8K; //#23084 - }; //#23084 + var _8M = $get($_.Xvals, $_.char) !== undefined; //#23377 + $k[$j++] = _8M; //#23377 + }; //#23377 $_.isEA = function() { - $k[$j++] = $_.char > 127; //#23085 - }; //#23085 + $k[$j++] = $_.char > 127; //#23378 + }; //#23378 $_.isFN = function() { - $k[$j++] = $_.char < 0; //#23086 - }; //#23086 + $k[$j++] = $_.char < 0; //#23379 + }; //#23379 $_.XtermFirst = function() { - var _8N = $k[--$j]; //#23087 - $k[$j++] = $lt($get($_.nextXterm, _8N), $get($_.nextNonX, _8N)); //#23087 - }; //#23087 + var _8P = $k[--$j]; //#23380 + $k[$j++] = $lt($get($_.nextXterm, _8P), $get($_.nextNonX, _8P)); //#23380 + }; //#23380 $_.lookup = function() { - $_.ac = 1; //#23090 - $_.cc = 2; //#23090 - $_.tc = 2; //#23090 - $_.xc = 2; //#23090 - $_.bc = 3; //#23090 - if ($_.mode == $_.A) { //#23091 - $_.ac = 0; //#23091 - $_.cc = 1; //#23091 - $_.tc = 1; //#23091 - $_.xc = 1; //#23091 - $_.bc = 2; //#23091 - } //#23091 - if ($_.mode == $_.C) { //#23092 - $_.cc = 0; //#23092 - } //#23092 - if ($_.mode == $_.T) { //#23093 - $_.tc = 0; //#23093 - } //#23093 - if ($_.mode == $_.X) { //#23094 - $_.xc = 0; //#23094 - } //#23094 - if ($_.mode == $_.B) { //#23095 - $_.bc = 0; //#23095 - } //#23095 - for (var _8c = 0, _8d = 1; _8c < _8d; _8c++) { //#23123 - $_.k = 0; //#23097 - for (;;) { //#23122 - if (($_.i + $_.k) == $_.msglen) { //#23104 - var _8l = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23099 - $k[$j++] = true; //#23099 - for (var _8m = 0, _8n = _8l.length; _8m < _8n; _8m++) { //#23099 - var _8q = $k[--$j]; //#23099 - $k[$j++] = _8q && ($_.bc <= Math.ceil($get(_8l, _8m))); //#23099 - } //#23099 - if ($k[--$j]) { //#23099 - $k[$j++] = $_.B; //#23099 - break; //#23099 - } //#23099 - var _8x = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23100 - $k[$j++] = true; //#23100 - for (var _8y = 0, _8z = _8x.length; _8y < _8z; _8y++) { //#23100 - var _92 = $k[--$j]; //#23100 - $k[$j++] = _92 && ($_.ac <= Math.ceil($get(_8x, _8y))); //#23100 - } //#23100 - if ($k[--$j]) { //#23100 - $k[$j++] = $_.A; //#23100 - break; //#23100 - } //#23100 - var _97 = $a([$_.tc, $_.xc]); //#23101 - $k[$j++] = true; //#23101 - for (var _98 = 0, _99 = _97.length; _98 < _99; _98++) { //#23101 - var _9C = $k[--$j]; //#23101 - $k[$j++] = _9C && (Math.ceil($_.cc) <= Math.ceil($get(_97, _98))); //#23101 - } //#23101 - if ($k[--$j]) { //#23101 - $k[$j++] = $_.C; //#23101 - break; //#23101 - } //#23101 - var _9G = $a([$_.xc]); //#23102 - $k[$j++] = true; //#23102 - for (var _9H = 0, _9I = _9G.length; _9H < _9I; _9H++) { //#23102 - var _9L = $k[--$j]; //#23102 - $k[$j++] = _9L && (Math.ceil($_.tc) <= Math.ceil($get(_9G, _9H))); //#23102 - } //#23102 - if ($k[--$j]) { //#23102 - $k[$j++] = $_.T; //#23102 - break; //#23102 - } //#23102 - $k[$j++] = $_.X; //#23103 - break; //#23103 - } //#23103 - $_.char = $get($_.msg, $_.i + $_.k); //#23105 - $k[$j++] = 'ac'; //#23106 - $k[$j++] = $_.ac; //#23106 - $_.isD(); //#23106 - if ($k[--$j]) { //#23106 - var _9V = $k[--$j]; //#23106 - $k[$j++] = $f(_9V + (1 / 2)); //#23106 - } else { //#23106 - $_.isEA(); //#23106 - if ($k[--$j]) { //#23106 - var _9X = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9X) + 2; //#23106 - } else { //#23106 - var _9Y = $k[--$j]; //#23106 - $k[$j++] = Math.ceil(_9Y) + 1; //#23106 - } //#23106 - } //#23106 - var _9Z = $k[--$j]; //#23106 - $_[$k[--$j]] = _9Z; //#23106 - $k[$j++] = 'cc'; //#23107 - $k[$j++] = $_.cc; //#23107 - $_.isC(); //#23107 - if ($k[--$j]) { //#23107 - var _9d = $k[--$j]; //#23107 - $k[$j++] = $f(_9d + 0.6666667); //#23107 - } else { //#23107 - $_.isEA(); //#23107 - if ($k[--$j]) { //#23107 - var _9f = $k[--$j]; //#23107 - $k[$j++] = $f(_9f + 2.6666667); //#23107 - } else { //#23107 - var _9g = $k[--$j]; //#23107 - $k[$j++] = $f(_9g + 1.3333334); //#23107 - } //#23107 - } //#23107 - var _9h = $k[--$j]; //#23107 - $_[$k[--$j]] = _9h; //#23107 - $k[$j++] = 'tc'; //#23108 - $k[$j++] = $_.tc; //#23108 - $_.isT(); //#23108 - if ($k[--$j]) { //#23108 - var _9l = $k[--$j]; //#23108 - $k[$j++] = $f(_9l + 0.6666667); //#23108 - } else { //#23108 - $_.isEA(); //#23108 - if ($k[--$j]) { //#23108 - var _9n = $k[--$j]; //#23108 - $k[$j++] = $f(_9n + 2.6666667); //#23108 - } else { //#23108 - var _9o = $k[--$j]; //#23108 - $k[$j++] = $f(_9o + 1.3333334); //#23108 - } //#23108 - } //#23108 - var _9p = $k[--$j]; //#23108 - $_[$k[--$j]] = _9p; //#23108 - $k[$j++] = 'xc'; //#23109 - $k[$j++] = $_.xc; //#23109 - $_.isX(); //#23109 - if ($k[--$j]) { //#23109 - var _9t = $k[--$j]; //#23109 - $k[$j++] = $f(_9t + 0.6666667); //#23109 - } else { //#23109 - $_.isEA(); //#23109 - if ($k[--$j]) { //#23109 - var _9v = $k[--$j]; //#23109 - $k[$j++] = $f(_9v + 4.3333334); //#23109 - } else { //#23109 - var _9w = $k[--$j]; //#23109 - $k[$j++] = $f(_9w + 3.3333334); //#23109 - } //#23109 - } //#23109 - var _9x = $k[--$j]; //#23109 - $_[$k[--$j]] = _9x; //#23109 - $k[$j++] = 'bc'; //#23110 - $k[$j++] = $_.bc; //#23110 - $_.isFN(); //#23110 - if ($k[--$j]) { //#23110 - var _A1 = $k[--$j]; //#23110 - $k[$j++] = $f(_A1 + 3); //#23110 - } else { //#23110 - var _A2 = $k[--$j]; //#23110 - $k[$j++] = $f(_A2 + 1); //#23110 - } //#23110 - var _A3 = $k[--$j]; //#23110 - $_[$k[--$j]] = _A3; //#23110 - if ($_.k >= 3) { //#23120 - var _AA = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23112 - $k[$j++] = true; //#23112 - for (var _AB = 0, _AC = _AA.length; _AB < _AC; _AB++) { //#23112 - var _AF = $k[--$j]; //#23112 - $k[$j++] = _AF && (($_.bc + 1) <= Math.ceil($get(_AA, _AB))); //#23112 - } //#23112 - if ($k[--$j]) { //#23112 - $k[$j++] = $_.B; //#23112 - break; //#23112 - } //#23112 - var _AM = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23113 - $k[$j++] = true; //#23113 - for (var _AN = 0, _AO = _AM.length; _AN < _AO; _AN++) { //#23113 - var _AR = $k[--$j]; //#23113 - $k[$j++] = _AR && (($_.ac + 1) <= Math.ceil($get(_AM, _AN))); //#23113 - } //#23113 - if ($k[--$j]) { //#23113 - $k[$j++] = $_.A; //#23113 - break; //#23113 - } //#23113 - var _AY = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23114 - $k[$j++] = true; //#23114 - for (var _AZ = 0, _Aa = _AY.length; _AZ < _Aa; _AZ++) { //#23114 - var _Ad = $k[--$j]; //#23114 - $k[$j++] = _Ad && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_AY, _AZ))); //#23114 - } //#23114 - if ($k[--$j]) { //#23114 - $k[$j++] = $_.T; //#23114 - break; //#23114 - } //#23114 - var _Ai = $a([$_.ac, $_.tc]); //#23115 - $k[$j++] = true; //#23115 - for (var _Aj = 0, _Ak = _Ai.length; _Aj < _Ak; _Aj++) { //#23115 - var _An = $k[--$j]; //#23115 - $k[$j++] = _An && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ai, _Aj))); //#23115 - } //#23115 - if ($k[--$j]) { //#23118 - if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23116 - $k[$j++] = $_.C; //#23116 - break; //#23116 - } //#23116 - if ($_.cc == $_.xc) { //#23117 - $k[$j++] = ($_.i + $_.k) + 1; //#23117 - $_.XtermFirst(); //#23117 - if ($k[--$j]) { //#23117 - $k[$j++] = $_.X; //#23117 - break; //#23117 - } else { //#23117 - $k[$j++] = $_.C; //#23117 - break; //#23117 - } //#23117 - } //#23117 - } //#23117 - var _B3 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23119 - $k[$j++] = true; //#23119 - for (var _B4 = 0, _B5 = _B3.length; _B4 < _B5; _B4++) { //#23119 - var _B8 = $k[--$j]; //#23119 - $k[$j++] = _B8 && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B3, _B4))); //#23119 - } //#23119 - if ($k[--$j]) { //#23119 - $k[$j++] = $_.X; //#23119 - break; //#23119 - } //#23119 - } //#23119 - $_.k = $_.k + 1; //#23121 - } //#23121 - } //#23121 - }; //#23121 + $_.ac = 1; //#23383 + $_.cc = 2; //#23383 + $_.tc = 2; //#23383 + $_.xc = 2; //#23383 + $_.bc = 3; //#23383 + if ($_.mode == $_.A) { //#23384 + $_.ac = 0; //#23384 + $_.cc = 1; //#23384 + $_.tc = 1; //#23384 + $_.xc = 1; //#23384 + $_.bc = 2; //#23384 + } //#23384 + if ($_.mode == $_.C) { //#23385 + $_.cc = 0; //#23385 + } //#23385 + if ($_.mode == $_.T) { //#23386 + $_.tc = 0; //#23386 + } //#23386 + if ($_.mode == $_.X) { //#23387 + $_.xc = 0; //#23387 + } //#23387 + if ($_.mode == $_.B) { //#23388 + $_.bc = 0; //#23388 + } //#23388 + for (var _8e = 0, _8f = 1; _8e < _8f; _8e++) { //#23416 + $_.k = 0; //#23390 + for (;;) { //#23415 + if (($_.i + $_.k) == $_.msglen) { //#23397 + var _8n = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23392 + $k[$j++] = true; //#23392 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#23392 + var _8s = $k[--$j]; //#23392 + $k[$j++] = _8s && ($_.bc <= Math.ceil($get(_8n, _8o))); //#23392 + } //#23392 + if ($k[--$j]) { //#23392 + $k[$j++] = $_.B; //#23392 + break; //#23392 + } //#23392 + var _8z = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23393 + $k[$j++] = true; //#23393 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#23393 + var _94 = $k[--$j]; //#23393 + $k[$j++] = _94 && ($_.ac <= Math.ceil($get(_8z, _90))); //#23393 + } //#23393 + if ($k[--$j]) { //#23393 + $k[$j++] = $_.A; //#23393 + break; //#23393 + } //#23393 + var _99 = $a([$_.tc, $_.xc]); //#23394 + $k[$j++] = true; //#23394 + for (var _9A = 0, _9B = _99.length; _9A < _9B; _9A++) { //#23394 + var _9E = $k[--$j]; //#23394 + $k[$j++] = _9E && (Math.ceil($_.cc) <= Math.ceil($get(_99, _9A))); //#23394 + } //#23394 + if ($k[--$j]) { //#23394 + $k[$j++] = $_.C; //#23394 + break; //#23394 + } //#23394 + var _9I = $a([$_.xc]); //#23395 + $k[$j++] = true; //#23395 + for (var _9J = 0, _9K = _9I.length; _9J < _9K; _9J++) { //#23395 + var _9N = $k[--$j]; //#23395 + $k[$j++] = _9N && (Math.ceil($_.tc) <= Math.ceil($get(_9I, _9J))); //#23395 + } //#23395 + if ($k[--$j]) { //#23395 + $k[$j++] = $_.T; //#23395 + break; //#23395 + } //#23395 + $k[$j++] = $_.X; //#23396 + break; //#23396 + } //#23396 + $_.char = $get($_.msg, $_.i + $_.k); //#23398 + $k[$j++] = 'ac'; //#23399 + $k[$j++] = $_.ac; //#23399 + $_.isD(); //#23399 + if ($k[--$j]) { //#23399 + var _9X = $k[--$j]; //#23399 + $k[$j++] = $f(_9X + (1 / 2)); //#23399 + } else { //#23399 + $_.isEA(); //#23399 + if ($k[--$j]) { //#23399 + var _9Z = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9Z) + 2; //#23399 + } else { //#23399 + var _9a = $k[--$j]; //#23399 + $k[$j++] = Math.ceil(_9a) + 1; //#23399 + } //#23399 + } //#23399 + var _9b = $k[--$j]; //#23399 + $_[$k[--$j]] = _9b; //#23399 + $k[$j++] = 'cc'; //#23400 + $k[$j++] = $_.cc; //#23400 + $_.isC(); //#23400 + if ($k[--$j]) { //#23400 + var _9f = $k[--$j]; //#23400 + $k[$j++] = $f(_9f + 0.6666667); //#23400 + } else { //#23400 + $_.isEA(); //#23400 + if ($k[--$j]) { //#23400 + var _9h = $k[--$j]; //#23400 + $k[$j++] = $f(_9h + 2.6666667); //#23400 + } else { //#23400 + var _9i = $k[--$j]; //#23400 + $k[$j++] = $f(_9i + 1.3333334); //#23400 + } //#23400 + } //#23400 + var _9j = $k[--$j]; //#23400 + $_[$k[--$j]] = _9j; //#23400 + $k[$j++] = 'tc'; //#23401 + $k[$j++] = $_.tc; //#23401 + $_.isT(); //#23401 + if ($k[--$j]) { //#23401 + var _9n = $k[--$j]; //#23401 + $k[$j++] = $f(_9n + 0.6666667); //#23401 + } else { //#23401 + $_.isEA(); //#23401 + if ($k[--$j]) { //#23401 + var _9p = $k[--$j]; //#23401 + $k[$j++] = $f(_9p + 2.6666667); //#23401 + } else { //#23401 + var _9q = $k[--$j]; //#23401 + $k[$j++] = $f(_9q + 1.3333334); //#23401 + } //#23401 + } //#23401 + var _9r = $k[--$j]; //#23401 + $_[$k[--$j]] = _9r; //#23401 + $k[$j++] = 'xc'; //#23402 + $k[$j++] = $_.xc; //#23402 + $_.isX(); //#23402 + if ($k[--$j]) { //#23402 + var _9v = $k[--$j]; //#23402 + $k[$j++] = $f(_9v + 0.6666667); //#23402 + } else { //#23402 + $_.isEA(); //#23402 + if ($k[--$j]) { //#23402 + var _9x = $k[--$j]; //#23402 + $k[$j++] = $f(_9x + 4.3333334); //#23402 + } else { //#23402 + var _9y = $k[--$j]; //#23402 + $k[$j++] = $f(_9y + 3.3333334); //#23402 + } //#23402 + } //#23402 + var _9z = $k[--$j]; //#23402 + $_[$k[--$j]] = _9z; //#23402 + $k[$j++] = 'bc'; //#23403 + $k[$j++] = $_.bc; //#23403 + $_.isFN(); //#23403 + if ($k[--$j]) { //#23403 + var _A3 = $k[--$j]; //#23403 + $k[$j++] = $f(_A3 + 3); //#23403 + } else { //#23403 + var _A4 = $k[--$j]; //#23403 + $k[$j++] = $f(_A4 + 1); //#23403 + } //#23403 + var _A5 = $k[--$j]; //#23403 + $_[$k[--$j]] = _A5; //#23403 + if ($_.k >= 3) { //#23413 + var _AC = $a([$_.ac, $_.cc, $_.tc, $_.xc]); //#23405 + $k[$j++] = true; //#23405 + for (var _AD = 0, _AE = _AC.length; _AD < _AE; _AD++) { //#23405 + var _AH = $k[--$j]; //#23405 + $k[$j++] = _AH && (($_.bc + 1) <= Math.ceil($get(_AC, _AD))); //#23405 + } //#23405 + if ($k[--$j]) { //#23405 + $k[$j++] = $_.B; //#23405 + break; //#23405 + } //#23405 + var _AO = $a([$_.cc, $_.tc, $_.xc, $_.bc]); //#23406 + $k[$j++] = true; //#23406 + for (var _AP = 0, _AQ = _AO.length; _AP < _AQ; _AP++) { //#23406 + var _AT = $k[--$j]; //#23406 + $k[$j++] = _AT && (($_.ac + 1) <= Math.ceil($get(_AO, _AP))); //#23406 + } //#23406 + if ($k[--$j]) { //#23406 + $k[$j++] = $_.A; //#23406 + break; //#23406 + } //#23406 + var _Aa = $a([$_.ac, $_.cc, $_.xc, $_.bc]); //#23407 + $k[$j++] = true; //#23407 + for (var _Ab = 0, _Ac = _Aa.length; _Ab < _Ac; _Ab++) { //#23407 + var _Af = $k[--$j]; //#23407 + $k[$j++] = _Af && ((Math.ceil($_.tc) + 1) <= Math.ceil($get(_Aa, _Ab))); //#23407 + } //#23407 + if ($k[--$j]) { //#23407 + $k[$j++] = $_.T; //#23407 + break; //#23407 + } //#23407 + var _Ak = $a([$_.ac, $_.tc]); //#23408 + $k[$j++] = true; //#23408 + for (var _Al = 0, _Am = _Ak.length; _Al < _Am; _Al++) { //#23408 + var _Ap = $k[--$j]; //#23408 + $k[$j++] = _Ap && ((Math.ceil($_.cc) + 1) <= Math.ceil($get(_Ak, _Al))); //#23408 + } //#23408 + if ($k[--$j]) { //#23411 + if (Math.ceil($_.cc) < Math.ceil($_.xc)) { //#23409 + $k[$j++] = $_.C; //#23409 + break; //#23409 + } //#23409 + if ($_.cc == $_.xc) { //#23410 + $k[$j++] = ($_.i + $_.k) + 1; //#23410 + $_.XtermFirst(); //#23410 + if ($k[--$j]) { //#23410 + $k[$j++] = $_.X; //#23410 + break; //#23410 + } else { //#23410 + $k[$j++] = $_.C; //#23410 + break; //#23410 + } //#23410 + } //#23410 + } //#23410 + var _B5 = $a([$_.ac, $_.cc, $_.tc, $_.bc]); //#23412 + $k[$j++] = true; //#23412 + for (var _B6 = 0, _B7 = _B5.length; _B6 < _B7; _B6++) { //#23412 + var _BA = $k[--$j]; //#23412 + $k[$j++] = _BA && ((Math.ceil($_.xc) + 1) <= Math.ceil($get(_B5, _B6))); //#23412 + } //#23412 + if ($k[--$j]) { //#23412 + $k[$j++] = $_.X; //#23412 + break; //#23412 + } //#23412 + } //#23412 + $_.k = $_.k + 1; //#23414 + } //#23414 + } //#23414 + }; //#23414 $_.addtocws = function() { - var _BC = $k[--$j]; //#23127 - $k[$j++] = _BC; //#23129 - if ((_BC.length + $_.j) > 1480) { //#23129 - $j--; //#23128 - $k[$j++] = 'bwipp.codeoneTooLong#23128'; //#23128 - $k[$j++] = "Maximum length exceeded"; //#23128 - bwipp_raiseerror(); //#23128 - } //#23128 - var _BE = $k[--$j]; //#23130 - $puti($_.cws, $_.j, _BE); //#23130 - $_.j = _BE.length + $_.j; //#23131 - }; //#23131 + var _BE = $k[--$j]; //#23420 + $k[$j++] = _BE; //#23422 + if ((_BE.length + $_.j) > 1480) { //#23422 + $j--; //#23421 + $k[$j++] = 'bwipp.codeoneTooLong#23421'; //#23421 + $k[$j++] = "Maximum length exceeded"; //#23421 + bwipp_raiseerror(); //#23421 + } //#23421 + var _BG = $k[--$j]; //#23423 + $puti($_.cws, $_.j, _BG); //#23423 + $_.j = _BG.length + $_.j; //#23424 + }; //#23424 $_.tobin = function() { - var _BJ = $s($k[--$j]); //#23135 - $k[$j++] = _BJ; //#23135 - for (var _BL = 0, _BK = _BJ.length - 1; _BL <= _BK; _BL += 1) { //#23135 - var _BM = $k[--$j]; //#23135 - $put(_BM, _BL, 48); //#23135 - $k[$j++] = _BM; //#23135 - } //#23135 - var _BN = $k[--$j]; //#23136 - var _BQ = $cvrs($s(_BN.length), $k[--$j], 2); //#23136 - $puti(_BN, _BN.length - _BQ.length, _BQ); //#23136 - $k[$j++] = _BN; //#23137 - $k[$j++] = Infinity; //#23137 - var _BR = $k[--$j]; //#23137 - var _BS = $k[--$j]; //#23137 - $k[$j++] = _BR; //#23137 - $forall(_BS, function() { //#23137 - var _BT = $k[--$j]; //#23137 - $k[$j++] = $f(_BT - 48); //#23137 - }); //#23137 - var _BU = $a(); //#23137 - $k[$j++] = _BU; //#23137 - }; //#23137 + var _BL = $s($k[--$j]); //#23428 + $k[$j++] = _BL; //#23428 + for (var _BN = 0, _BM = _BL.length - 1; _BN <= _BM; _BN += 1) { //#23428 + var _BO = $k[--$j]; //#23428 + $put(_BO, _BN, 48); //#23428 + $k[$j++] = _BO; //#23428 + } //#23428 + var _BP = $k[--$j]; //#23429 + var _BS = $cvrs($s(_BP.length), $k[--$j], 2); //#23429 + $puti(_BP, _BP.length - _BS.length, _BS); //#23429 + $k[$j++] = _BP; //#23430 + $k[$j++] = Infinity; //#23430 + var _BT = $k[--$j]; //#23430 + var _BU = $k[--$j]; //#23430 + $k[$j++] = _BT; //#23430 + $forall(_BU, function() { //#23430 + var _BV = $k[--$j]; //#23430 + $k[$j++] = $f(_BV - 48); //#23430 + }); //#23430 + var _BW = $a(); //#23430 + $k[$j++] = _BW; //#23430 + }; //#23430 $_.encA = function() { - for (var _BV = 0, _BW = 1; _BV < _BW; _BV++) { //#23182 - if ($get($_.numD, $_.i) >= 21) { //#23146 - $_.Dbits = $a([1, 1, 1, 1]); //#23143 - $_.mode = $_.D; //#23144 - break; //#23145 - } //#23145 - var _Be = $get($_.numD, $_.i); //#23147 - if ((_Be >= 13) && ($f(_Be + $_.i) == $_.msglen)) { //#23151 - $_.Dbits = $a([1, 1, 1, 1]); //#23148 - $_.mode = $_.D; //#23149 - break; //#23150 - } //#23150 - if ($get($_.numD, $_.i) >= 2) { //#23156 - var _Bm = $s(2); //#23153 - $put(_Bm, 0, $get($_.msg, $_.i)); //#23153 - $put(_Bm, 1, $get($_.msg, $_.i + 1)); //#23153 - $k[$j++] = $get($_.Avals, _Bm); //#23153 - $_.addtocws(); //#23153 - $_.i = $_.i + 2; //#23154 - break; //#23155 - } //#23155 - if ($get($_.msg, $_.i) == $_.fnc1) { //#23172 - if ($get($_.numD, $_.i + 1) >= 15) { //#23164 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23159 - $_.addtocws(); //#23159 - $_.i = $_.i + 1; //#23160 - $_.Dbits = $a([]); //#23161 - $_.mode = $_.D; //#23162 - break; //#23163 - } //#23163 - var _CB = $get($_.numD, $_.i + 1); //#23165 - if ((_CB >= 7) && (($f($f(_CB + $_.i) + 1)) == $_.msglen)) { //#23171 - $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23166 - $_.addtocws(); //#23166 - $_.i = $_.i + 1; //#23167 - $_.Dbits = $a([]); //#23168 - $_.mode = $_.D; //#23169 - break; //#23170 - } //#23170 - } //#23170 - $k[$j++] = 'newmode'; //#23173 - $_.lookup(); //#23173 - var _CK = $k[--$j]; //#23173 - $_[$k[--$j]] = _CK; //#23173 - if ($_.newmode != $_.mode) { //#23178 - $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23175 - $_.addtocws(); //#23175 - $_.mode = $_.newmode; //#23176 - break; //#23177 - } //#23177 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23179 - $_.addtocws(); //#23179 - $_.i = $_.i + 1; //#23180 - break; //#23181 - } //#23181 - }; //#23181 + for (var _BX = 0, _BY = 1; _BX < _BY; _BX++) { //#23475 + if ($get($_.numD, $_.i) >= 21) { //#23439 + $_.Dbits = $a([1, 1, 1, 1]); //#23436 + $_.mode = $_.D; //#23437 + break; //#23438 + } //#23438 + var _Bg = $get($_.numD, $_.i); //#23440 + if ((_Bg >= 13) && ($f(_Bg + $_.i) == $_.msglen)) { //#23444 + $_.Dbits = $a([1, 1, 1, 1]); //#23441 + $_.mode = $_.D; //#23442 + break; //#23443 + } //#23443 + if ($get($_.numD, $_.i) >= 2) { //#23449 + var _Bo = $s(2); //#23446 + $put(_Bo, 0, $get($_.msg, $_.i)); //#23446 + $put(_Bo, 1, $get($_.msg, $_.i + 1)); //#23446 + $k[$j++] = $get($_.Avals, _Bo); //#23446 + $_.addtocws(); //#23446 + $_.i = $_.i + 2; //#23447 + break; //#23448 + } //#23448 + if ($get($_.msg, $_.i) == $_.fnc1) { //#23465 + if ($get($_.numD, $_.i + 1) >= 15) { //#23457 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23452 + $_.addtocws(); //#23452 + $_.i = $_.i + 1; //#23453 + $_.Dbits = $a([]); //#23454 + $_.mode = $_.D; //#23455 + break; //#23456 + } //#23456 + var _CD = $get($_.numD, $_.i + 1); //#23458 + if ((_CD >= 7) && (($f($f(_CD + $_.i) + 1)) == $_.msglen)) { //#23464 + $k[$j++] = $get($_.Avals, $_.fnc1lD); //#23459 + $_.addtocws(); //#23459 + $_.i = $_.i + 1; //#23460 + $_.Dbits = $a([]); //#23461 + $_.mode = $_.D; //#23462 + break; //#23463 + } //#23463 + } //#23463 + $k[$j++] = 'newmode'; //#23466 + $_.lookup(); //#23466 + var _CM = $k[--$j]; //#23466 + $_[$k[--$j]] = _CM; //#23466 + if ($_.newmode != $_.mode) { //#23471 + $k[$j++] = $get($_.Avals, $get($a([-1, $_.lC, $_.lT, $_.lX, $_.lD, $_.lB]), $_.newmode)); //#23468 + $_.addtocws(); //#23468 + $_.mode = $_.newmode; //#23469 + break; //#23470 + } //#23470 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23472 + $_.addtocws(); //#23472 + $_.i = $_.i + 1; //#23473 + break; //#23474 + } //#23474 + }; //#23474 $_.CTXvalstocws = function() { - $_.in = $k[--$j]; //#23186 - $k[$j++] = Infinity; //#23187 - for (var _Ci = 0, _Ch = $_.in.length - 1; _Ci <= _Ch; _Ci += 3) { //#23191 - var _Ck = $geti($_.in, _Ci, 3); //#23189 - $k[$j++] = 0; //#23189 - for (var _Cl = 0, _Cm = _Ck.length; _Cl < _Cm; _Cl++) { //#23189 - var _Co = $k[--$j]; //#23189 - $k[$j++] = $f(_Co + $get(_Ck, _Cl)) * 40; //#23189 - } //#23189 - var _Cq = (~~($k[--$j] / 40)) + 1; //#23190 - $k[$j++] = ~~(_Cq / 256); //#23190 - $k[$j++] = _Cq % 256; //#23190 - } //#23190 - $astore($a($counttomark())); //#23192 - var _Ct = $k[--$j]; //#23192 - var _Cu = $k[--$j]; //#23192 - $k[$j++] = _Ct; //#23192 - $k[$j++] = _Cu; //#23192 - $j--; //#23192 - }; //#23192 + $_.in = $k[--$j]; //#23479 + $k[$j++] = Infinity; //#23480 + for (var _Ck = 0, _Cj = $_.in.length - 1; _Ck <= _Cj; _Ck += 3) { //#23484 + var _Cm = $geti($_.in, _Ck, 3); //#23482 + $k[$j++] = 0; //#23482 + for (var _Cn = 0, _Co = _Cm.length; _Cn < _Co; _Cn++) { //#23482 + var _Cq = $k[--$j]; //#23482 + $k[$j++] = $f(_Cq + $get(_Cm, _Cn)) * 40; //#23482 + } //#23482 + var _Cs = (~~($k[--$j] / 40)) + 1; //#23483 + $k[$j++] = ~~(_Cs / 256); //#23483 + $k[$j++] = _Cs % 256; //#23483 + } //#23483 + $astore($a($counttomark())); //#23485 + var _Cv = $k[--$j]; //#23485 + var _Cw = $k[--$j]; //#23485 + $k[$j++] = _Cv; //#23485 + $k[$j++] = _Cw; //#23485 + $j--; //#23485 + }; //#23485 $_.encCTX = function() { - $_.p = 0; //#23196 - $_.ctxvals = $a(2220); //#23197 - for (;;) { //#23294 - if ($_.i == $_.msglen) { //#23201 - break; //#23201 - } //#23201 - if (($_.p % 3) == 0) { //#23289 - if ($get($_.numD, $_.i) >= 12) { //#23208 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23204 - $_.CTXvalstocws(); //#23204 - $_.addtocws(); //#23204 - $k[$j++] = $a([$_.unlcw]); //#23205 - $_.addtocws(); //#23205 - $_.mode = $_.A; //#23206 - break; //#23207 - } //#23207 - var _DA = $get($_.numD, $_.i); //#23209 - if ((_DA >= 8) && ($f(_DA + $_.i) == $_.msglen)) { //#23214 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23210 - $_.CTXvalstocws(); //#23210 - $_.addtocws(); //#23210 - $k[$j++] = $a([$_.unlcw]); //#23211 - $_.addtocws(); //#23211 - $_.mode = $_.A; //#23212 - break; //#23213 - } //#23213 - if ($_.mode == $_.X) { //#23236 - var _DP = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23216 - if (!_DP) { //#23224 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23217 - $_.CTXvalstocws(); //#23217 - $_.addtocws(); //#23217 - if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23221 - $k[$j++] = $a([$_.unlcw]); //#23220 - $_.addtocws(); //#23220 - } //#23220 - $_.mode = $_.A; //#23222 - break; //#23223 - } //#23223 - if (($_.i + 1) < $_.msglen) { //#23230 - var _Di = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23226 - if (!_Di) { //#23226 - break; //#23226 - } //#23226 - if (($_.i + 2) < $_.msglen) { //#23229 - var _Dp = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23228 - if (!_Dp) { //#23228 - break; //#23228 - } //#23228 - } //#23228 - } //#23228 - } else { //#23236 - $_.lookup(); //#23232 - if ($k[--$j] != $_.mode) { //#23237 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23233 - $_.CTXvalstocws(); //#23233 - $_.addtocws(); //#23233 - $k[$j++] = $a([$_.unlcw]); //#23234 - $_.addtocws(); //#23234 - $_.mode = $_.A; //#23235 - break; //#23236 - } //#23236 - } //#23236 - if (($_.msglen - $_.i) <= 3) { //#23288 - $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23240 - $k[$j++] = Infinity; //#23246 - var _E8 = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23242 - for (var _E9 = 0, _EA = _E8.length; _E9 < _EA; _E9++) { //#23248 - var _EB = $get(_E8, _E9); //#23248 - var _EF = $get($get($_.encvals, $_.mode), _EB) !== undefined; //#23243 - $k[$j++] = _EB; //#23247 - if (_EF) { //#23246 - $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23244 - } else { //#23246 - $j--; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - $k[$j++] = -1; //#23246 - } //#23246 - } //#23246 - $_.remvals = $a(); //#23246 - if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23259 - $k[$j++] = Infinity; //#23254 - $aload($geti($_.ctxvals, 0, $_.p)); //#23253 - $aload($_.remvals); //#23254 - var _ES = $a(); //#23254 - $k[$j++] = _ES; //#23255 - $_.CTXvalstocws(); //#23255 - $_.addtocws(); //#23255 - $_.mode = $_.A; //#23256 - $_.i = $_.msglen; //#23257 - break; //#23258 - } //#23258 - if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23270 - $k[$j++] = Infinity; //#23265 - $aload($geti($_.ctxvals, 0, $_.p)); //#23263 - $aload($_.remvals); //#23264 - $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23265 - var _Ei = $a(); //#23265 - $k[$j++] = _Ei; //#23266 - $_.CTXvalstocws(); //#23266 - $_.addtocws(); //#23266 - $_.mode = $_.A; //#23267 - $_.i = $_.msglen; //#23268 - break; //#23269 - } //#23269 - if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23279 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23273 - $_.CTXvalstocws(); //#23273 - $_.addtocws(); //#23273 - $k[$j++] = $a([$_.unlcw]); //#23274 - $_.addtocws(); //#23274 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23275 - $_.addtocws(); //#23275 - $_.mode = $_.A; //#23276 - $_.i = $_.msglen; //#23277 - break; //#23278 - } //#23278 - if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23287 - $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23282 - $_.CTXvalstocws(); //#23282 - $_.addtocws(); //#23282 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23283 - $_.addtocws(); //#23283 - $_.mode = $_.A; //#23284 - $_.i = $_.msglen; //#23285 - break; //#23286 - } //#23286 - } //#23286 - } //#23286 - var _FH = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23290 - $puti($_.ctxvals, $_.p, _FH); //#23291 - $_.p = _FH.length + $_.p; //#23292 - $_.i = $_.i + 1; //#23293 - } //#23293 - if ($_.mode != $_.A) { //#23318 - for (;;) { //#23302 - if (($_.p % 3) == 0) { //#23299 - break; //#23299 - } //#23299 - $_.i = $_.i - 1; //#23300 - $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23301 - } //#23301 - $k[$j++] = Infinity; //#23304 - $aload($geti($_.ctxvals, 0, $_.p)); //#23304 - var _Fb = $a(); //#23304 - $k[$j++] = _Fb; //#23305 - $_.CTXvalstocws(); //#23305 - $_.addtocws(); //#23305 - $k[$j++] = $a([$_.unlcw]); //#23306 - $_.addtocws(); //#23306 - $_.mode = $_.A; //#23307 - if ($_.i != $_.msglen) { //#23317 - if ($get($_.numD, $_.i) >= 2) { //#23315 - var _Fk = $s(2); //#23311 - $put(_Fk, 0, $get($_.msg, $_.i)); //#23311 - $put(_Fk, 1, $get($_.msg, $_.i + 1)); //#23311 - $k[$j++] = $get($_.Avals, _Fk); //#23311 - $_.addtocws(); //#23311 - $_.i = $_.i + 2; //#23312 - } else { //#23315 - $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23314 - $_.addtocws(); //#23314 - $_.i = $_.i + 1; //#23315 - } //#23315 - } //#23315 - } //#23315 - }; //#23315 + $_.p = 0; //#23489 + $_.ctxvals = $a(2220); //#23490 + for (;;) { //#23587 + if ($_.i == $_.msglen) { //#23494 + break; //#23494 + } //#23494 + if (($_.p % 3) == 0) { //#23582 + if ($get($_.numD, $_.i) >= 12) { //#23501 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23497 + $_.CTXvalstocws(); //#23497 + $_.addtocws(); //#23497 + $k[$j++] = $a([$_.unlcw]); //#23498 + $_.addtocws(); //#23498 + $_.mode = $_.A; //#23499 + break; //#23500 + } //#23500 + var _DC = $get($_.numD, $_.i); //#23502 + if ((_DC >= 8) && ($f(_DC + $_.i) == $_.msglen)) { //#23507 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23503 + $_.CTXvalstocws(); //#23503 + $_.addtocws(); //#23503 + $k[$j++] = $a([$_.unlcw]); //#23504 + $_.addtocws(); //#23504 + $_.mode = $_.A; //#23505 + break; //#23506 + } //#23506 + if ($_.mode == $_.X) { //#23529 + var _DR = $get($_.Xvals, $get($_.msg, $_.i)) !== undefined; //#23509 + if (!_DR) { //#23517 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23510 + $_.CTXvalstocws(); //#23510 + $_.addtocws(); //#23510 + if (($get($_.numremcws, $_.j) != 1) || ($get($_.msg, $_.i) > 127)) { //#23514 + $k[$j++] = $a([$_.unlcw]); //#23513 + $_.addtocws(); //#23513 + } //#23513 + $_.mode = $_.A; //#23515 + break; //#23516 + } //#23516 + if (($_.i + 1) < $_.msglen) { //#23523 + var _Dk = $get($_.Xvals, $get($_.msg, $_.i + 1)) !== undefined; //#23519 + if (!_Dk) { //#23519 + break; //#23519 + } //#23519 + if (($_.i + 2) < $_.msglen) { //#23522 + var _Dr = $get($_.Xvals, $get($_.msg, $_.i + 2)) !== undefined; //#23521 + if (!_Dr) { //#23521 + break; //#23521 + } //#23521 + } //#23521 + } //#23521 + } else { //#23529 + $_.lookup(); //#23525 + if ($k[--$j] != $_.mode) { //#23530 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23526 + $_.CTXvalstocws(); //#23526 + $_.addtocws(); //#23526 + $k[$j++] = $a([$_.unlcw]); //#23527 + $_.addtocws(); //#23527 + $_.mode = $_.A; //#23528 + break; //#23529 + } //#23529 + } //#23529 + if (($_.msglen - $_.i) <= 3) { //#23581 + $_.remcws = $get($_.numremcws, $_.j + ((~~($_.p / 3)) * 2)); //#23533 + $k[$j++] = Infinity; //#23534 + var _EA = $geti($_.msg, $_.i, $_.msglen - $_.i); //#23535 + for (var _EB = 0, _EC = _EA.length; _EB < _EC; _EB++) { //#23541 + var _ED = $get(_EA, _EB); //#23541 + var _EH = $get($get($_.encvals, $_.mode), _ED) !== undefined; //#23536 + $k[$j++] = _ED; //#23540 + if (_EH) { //#23539 + $aload($get($get($_.encvals, $_.mode), $k[--$j])); //#23537 + } else { //#23539 + $j--; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + $k[$j++] = -1; //#23539 + } //#23539 + } //#23539 + $_.remvals = $a(); //#23539 + if (($_.remcws == 2) && ($_.remvals.length == 3)) { //#23552 + $k[$j++] = Infinity; //#23545 + $aload($geti($_.ctxvals, 0, $_.p)); //#23546 + $aload($_.remvals); //#23547 + var _EU = $a(); //#23547 + $k[$j++] = _EU; //#23548 + $_.CTXvalstocws(); //#23548 + $_.addtocws(); //#23548 + $_.mode = $_.A; //#23549 + $_.i = $_.msglen; //#23550 + break; //#23551 + } //#23551 + if ((($_.remcws == 2) && ($_.remvals.length == 2)) && ($_.mode != $_.X)) { //#23563 + $k[$j++] = Infinity; //#23555 + $aload($geti($_.ctxvals, 0, $_.p)); //#23556 + $aload($_.remvals); //#23557 + $aload($get($get($_.encvals, $_.mode), $_.sft1)); //#23558 + var _Ek = $a(); //#23558 + $k[$j++] = _Ek; //#23559 + $_.CTXvalstocws(); //#23559 + $_.addtocws(); //#23559 + $_.mode = $_.A; //#23560 + $_.i = $_.msglen; //#23561 + break; //#23562 + } //#23562 + if (($_.remcws == 2) && ($_.remvals.length == 1)) { //#23572 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23566 + $_.CTXvalstocws(); //#23566 + $_.addtocws(); //#23566 + $k[$j++] = $a([$_.unlcw]); //#23567 + $_.addtocws(); //#23567 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23568 + $_.addtocws(); //#23568 + $_.mode = $_.A; //#23569 + $_.i = $_.msglen; //#23570 + break; //#23571 + } //#23571 + if (($_.remcws == 1) && ($_.remvals.length == 1)) { //#23580 + $k[$j++] = $geti($_.ctxvals, 0, $_.p); //#23575 + $_.CTXvalstocws(); //#23575 + $_.addtocws(); //#23575 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23576 + $_.addtocws(); //#23576 + $_.mode = $_.A; //#23577 + $_.i = $_.msglen; //#23578 + break; //#23579 + } //#23579 + } //#23579 + } //#23579 + var _FJ = $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)); //#23583 + $puti($_.ctxvals, $_.p, _FJ); //#23584 + $_.p = _FJ.length + $_.p; //#23585 + $_.i = $_.i + 1; //#23586 + } //#23586 + if ($_.mode != $_.A) { //#23611 + for (;;) { //#23595 + if (($_.p % 3) == 0) { //#23592 + break; //#23592 + } //#23592 + $_.i = $_.i - 1; //#23593 + $_.p = $_.p - $get($get($_.encvals, $_.mode), $get($_.msg, $_.i)).length; //#23594 + } //#23594 + $k[$j++] = Infinity; //#23596 + $aload($geti($_.ctxvals, 0, $_.p)); //#23597 + var _Fd = $a(); //#23597 + $k[$j++] = _Fd; //#23598 + $_.CTXvalstocws(); //#23598 + $_.addtocws(); //#23598 + $k[$j++] = $a([$_.unlcw]); //#23599 + $_.addtocws(); //#23599 + $_.mode = $_.A; //#23600 + if ($_.i != $_.msglen) { //#23610 + if ($get($_.numD, $_.i) >= 2) { //#23608 + var _Fm = $s(2); //#23604 + $put(_Fm, 0, $get($_.msg, $_.i)); //#23604 + $put(_Fm, 1, $get($_.msg, $_.i + 1)); //#23604 + $k[$j++] = $get($_.Avals, _Fm); //#23604 + $_.addtocws(); //#23604 + $_.i = $_.i + 2; //#23605 + } else { //#23608 + $k[$j++] = $get($_.Avals, $get($_.msg, $_.i)); //#23607 + $_.addtocws(); //#23607 + $_.i = $_.i + 1; //#23608 + } //#23608 + } //#23608 + } //#23608 + }; //#23608 $_.encD = function() { - for (;;) { //#23379 - if ($get($_.numD, $_.i) < 3) { //#23369 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23328 - $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23329 - if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23338 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23335 - $k[$j++] = Infinity; //#23335 - $aload($_.Dbits); //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $k[$j++] = 1; //#23335 - $_.Dbits = $a(); //#23335 - } //#23335 - if (($_.Drem == 2) || ($_.Drem == 6)) { //#23336 - $k[$j++] = Infinity; //#23336 - $aload($_.Dbits); //#23336 - $k[$j++] = 0; //#23336 - $k[$j++] = 1; //#23336 - $_.Dbits = $a(); //#23336 - } //#23336 - break; //#23337 - } //#23337 - if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23343 - break; //#23343 - } //#23343 - if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23350 - $k[$j++] = Infinity; //#23348 - $aload($_.Dbits); //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $k[$j++] = 1; //#23348 - $_.Dbits = $a(); //#23348 - $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23349 - } //#23349 - if (($_.Drem == 4) || ($_.Drem == 6)) { //#23361 - if ($get($_.numD, $_.i) >= 1) { //#23358 - $k[$j++] = Infinity; //#23355 - $aload($_.Dbits); //#23355 - $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23355 - $k[$j++] = 4; //#23355 - $_.tobin(); //#23355 - $aload($k[--$j]); //#23355 - $_.Dbits = $a(); //#23355 - $_.i = $_.i + 1; //#23356 - } else { //#23358 - $k[$j++] = Infinity; //#23358 - $aload($_.Dbits); //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $k[$j++] = 1; //#23358 - $_.Dbits = $a(); //#23358 - } //#23358 - $_.Drem = $_.Drem - 4; //#23360 - } //#23360 - if ($_.Drem == 2) { //#23365 - $k[$j++] = Infinity; //#23363 - $aload($_.Dbits); //#23363 - $k[$j++] = 0; //#23363 - $k[$j++] = 1; //#23363 - $_.Dbits = $a(); //#23363 - $_.Drem = 0; //#23364 - } //#23364 - break; //#23367 - } //#23367 - $k[$j++] = Infinity; //#23375 - $aload($_.Dbits); //#23373 - var _H7 = $geti($_.msg, $_.i, 3); //#23374 - $k[$j++] = 0; //#23374 - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#23374 - var _HB = $k[--$j]; //#23374 - $k[$j++] = ($f(_HB + $f($get(_H7, _H8) - 48))) * 10; //#23374 - } //#23374 - var _HC = $k[--$j]; //#23374 - $k[$j++] = (~~(_HC / 10)) + 1; //#23375 - $k[$j++] = 10; //#23375 - $_.tobin(); //#23375 - $aload($k[--$j]); //#23375 - $_.Dbits = $a(); //#23375 - $_.i = $_.i + 3; //#23377 - } //#23377 - $k[$j++] = Infinity; //#23381 - for (var _HI = 0, _HH = $_.Dbits.length - 1; _HI <= _HH; _HI += 8) { //#23384 - var _HK = $geti($_.Dbits, _HI, 8); //#23383 - $k[$j++] = 0; //#23383 - for (var _HL = 0, _HM = _HK.length; _HL < _HM; _HL++) { //#23383 - var _HO = $k[--$j]; //#23383 - $k[$j++] = $f(_HO + $get(_HK, _HL)) * 2; //#23383 - } //#23383 - var _HP = $k[--$j]; //#23383 - $k[$j++] = ~~(_HP / 2); //#23383 - } //#23383 - $astore($a($counttomark())); //#23385 - var _HS = $k[--$j]; //#23385 - var _HT = $k[--$j]; //#23385 - $k[$j++] = _HS; //#23385 - $k[$j++] = _HT; //#23385 - $j--; //#23385 - $_.addtocws(); //#23385 - $_.mode = $_.A; //#23386 - }; //#23386 + for (;;) { //#23672 + if ($get($_.numD, $_.i) < 3) { //#23662 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23621 + $_.remcws = $get($_.numremcws, $_.j + (~~($_.Dbits.length / 8))); //#23622 + if (((($f($get($_.numremcws, ($_.j + (~~($_.Dbits.length / 8))) - 1) - 1) == 0) && ($_.Drem == 0)) || (($_.remcws == 1) && ($_.Drem != 0))) && ($_.i == $_.msglen)) { //#23631 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23628 + $k[$j++] = Infinity; //#23628 + $aload($_.Dbits); //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $k[$j++] = 1; //#23628 + $_.Dbits = $a(); //#23628 + } //#23628 + if (($_.Drem == 2) || ($_.Drem == 6)) { //#23629 + $k[$j++] = Infinity; //#23629 + $aload($_.Dbits); //#23629 + $k[$j++] = 0; //#23629 + $k[$j++] = 1; //#23629 + $_.Dbits = $a(); //#23629 + } //#23629 + break; //#23630 + } //#23630 + if ((((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) || (($_.i == ($_.msglen - 2)) && ($get($_.numD, $_.i) == 2))) && ($_.remcws == 1)) && ($_.Drem == 0)) { //#23636 + break; //#23636 + } //#23636 + if (!(((($_.i == ($_.msglen - 1)) && ($get($_.numD, $_.i) == 1)) && ($_.remcws == 1)) && (($_.Drem == 4) || ($_.Drem == 6)))) { //#23643 + $k[$j++] = Infinity; //#23641 + $aload($_.Dbits); //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $k[$j++] = 1; //#23641 + $_.Dbits = $a(); //#23641 + $_.Drem = (8 - ($_.Dbits.length % 8)) % 8; //#23642 + } //#23642 + if (($_.Drem == 4) || ($_.Drem == 6)) { //#23654 + if ($get($_.numD, $_.i) >= 1) { //#23651 + $k[$j++] = Infinity; //#23648 + $aload($_.Dbits); //#23648 + $k[$j++] = $f($f($get($_.msg, $_.i) - 48) + 1); //#23648 + $k[$j++] = 4; //#23648 + $_.tobin(); //#23648 + $aload($k[--$j]); //#23648 + $_.Dbits = $a(); //#23648 + $_.i = $_.i + 1; //#23649 + } else { //#23651 + $k[$j++] = Infinity; //#23651 + $aload($_.Dbits); //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $k[$j++] = 1; //#23651 + $_.Dbits = $a(); //#23651 + } //#23651 + $_.Drem = $_.Drem - 4; //#23653 + } //#23653 + if ($_.Drem == 2) { //#23658 + $k[$j++] = Infinity; //#23656 + $aload($_.Dbits); //#23656 + $k[$j++] = 0; //#23656 + $k[$j++] = 1; //#23656 + $_.Dbits = $a(); //#23656 + $_.Drem = 0; //#23657 + } //#23657 + break; //#23660 + } //#23660 + $k[$j++] = Infinity; //#23665 + $aload($_.Dbits); //#23666 + var _H9 = $geti($_.msg, $_.i, 3); //#23667 + $k[$j++] = 0; //#23667 + for (var _HA = 0, _HB = _H9.length; _HA < _HB; _HA++) { //#23667 + var _HD = $k[--$j]; //#23667 + $k[$j++] = ($f(_HD + $f($get(_H9, _HA) - 48))) * 10; //#23667 + } //#23667 + var _HE = $k[--$j]; //#23667 + $k[$j++] = (~~(_HE / 10)) + 1; //#23668 + $k[$j++] = 10; //#23668 + $_.tobin(); //#23668 + $aload($k[--$j]); //#23668 + $_.Dbits = $a(); //#23668 + $_.i = $_.i + 3; //#23670 + } //#23670 + $k[$j++] = Infinity; //#23674 + for (var _HK = 0, _HJ = $_.Dbits.length - 1; _HK <= _HJ; _HK += 8) { //#23677 + var _HM = $geti($_.Dbits, _HK, 8); //#23676 + $k[$j++] = 0; //#23676 + for (var _HN = 0, _HO = _HM.length; _HN < _HO; _HN++) { //#23676 + var _HQ = $k[--$j]; //#23676 + $k[$j++] = $f(_HQ + $get(_HM, _HN)) * 2; //#23676 + } //#23676 + var _HR = $k[--$j]; //#23676 + $k[$j++] = ~~(_HR / 2); //#23676 + } //#23676 + $astore($a($counttomark())); //#23678 + var _HU = $k[--$j]; //#23678 + var _HV = $k[--$j]; //#23678 + $k[$j++] = _HU; //#23678 + $k[$j++] = _HV; //#23678 + $j--; //#23678 + $_.addtocws(); //#23678 + $_.mode = $_.A; //#23679 + }; //#23679 $_.encB = function() { - $_.p = 0; //#23391 - $_.bvals = $a(1480); //#23391 - for (;;) { //#23398 - if ($_.i == $_.msglen) { //#23392 - break; //#23392 - } //#23392 - if ($get($_.msg, $_.i) < 0) { //#23393 - break; //#23393 - } //#23393 - $_.lookup(); //#23394 - if ($k[--$j] != $_.mode) { //#23394 - break; //#23394 - } //#23394 - $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23395 - $_.p = $_.p + 1; //#23396 - $_.i = $_.i + 1; //#23397 - } //#23397 - $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23399 - $k[$j++] = Infinity; //#23406 - if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23404 - $k[$j++] = 0; //#23402 - } else { //#23404 - if ($_.p < 250) { //#23404 - $k[$j++] = $_.p; //#23404 - } else { //#23404 - $k[$j++] = (~~($_.p / 250)) + 249; //#23404 - $k[$j++] = $_.p % 250; //#23404 - } //#23404 - } //#23404 - $aload($geti($_.bvals, 0, $_.p)); //#23406 - $_.bvals = $a(); //#23406 - $k[$j++] = $_.bvals; //#23408 - $_.addtocws(); //#23408 - $_.mode = $_.A; //#23409 - }; //#23409 - $_.cws = $a(1480); //#23413 - $_.mode = $_.A; //#23414 - $_.i = 0; //#23414 - $_.j = 0; //#23414 - for (;;) { //#23417 - if ($_.i >= $_.msglen) { //#23415 - break; //#23415 - } //#23415 + $_.p = 0; //#23684 + $_.bvals = $a(1480); //#23684 + for (;;) { //#23691 + if ($_.i == $_.msglen) { //#23685 + break; //#23685 + } //#23685 + if ($get($_.msg, $_.i) < 0) { //#23686 + break; //#23686 + } //#23686 + $_.lookup(); //#23687 + if ($k[--$j] != $_.mode) { //#23687 + break; //#23687 + } //#23687 + $put($_.bvals, $_.p, $get($_.msg, $_.i)); //#23688 + $_.p = $_.p + 1; //#23689 + $_.i = $_.i + 1; //#23690 + } //#23690 + $_.remcws = $f($get($_.numremcws, $_.j + $_.p) - 1); //#23692 + $k[$j++] = Infinity; //#23693 + if (($_.remcws == 0) && ($_.i == $_.msglen)) { //#23697 + $k[$j++] = 0; //#23695 + } else { //#23697 + if ($_.p < 250) { //#23697 + $k[$j++] = $_.p; //#23697 + } else { //#23697 + $k[$j++] = (~~($_.p / 250)) + 249; //#23697 + $k[$j++] = $_.p % 250; //#23697 + } //#23697 + } //#23697 + $aload($geti($_.bvals, 0, $_.p)); //#23699 + $_.bvals = $a(); //#23699 + $k[$j++] = $_.bvals; //#23701 + $_.addtocws(); //#23701 + $_.mode = $_.A; //#23702 + }; //#23702 + $_.cws = $a(1480); //#23706 + $_.mode = $_.A; //#23707 + $_.i = 0; //#23707 + $_.j = 0; //#23707 + for (;;) { //#23710 + if ($_.i >= $_.msglen) { //#23708 + break; //#23708 + } //#23708 if ($_[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $_.mode)]() === true) { break; - } //#23416 - } //#23416 - $_.cws = $geti($_.cws, 0, $_.j); //#23418 - } //#23418 - var _IC = $_.metrics; //#23423 - for (var _ID = 0, _IE = _IC.length; _ID < _IE; _ID++) { //#23441 - $_.m = $get(_IC, _ID); //#23424 - $_.vers = $get($_.m, 0); //#23425 - $_.rows = $get($_.m, 1); //#23426 - $_.cols = $get($_.m, 2); //#23427 - $_.dcol = $get($_.m, 3); //#23428 - $_.dcws = $get($_.m, 4); //#23429 - $_.rscw = $get($_.m, 5); //#23430 - $_.rsbl = $get($_.m, 6); //#23431 - $_.riso = $get($_.m, 7); //#23432 - $_.risi = $get($_.m, 8); //#23433 - $_.risl = $get($_.m, 9); //#23434 - $_.dcpb = ~~($_.dcws / $_.rsbl); //#23435 - $_.ecpb = ~~($_.rscw / $_.rsbl); //#23436 - $_.okay = true; //#23437 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23438 - $_.okay = false; //#23438 - } //#23438 - if ($_.cws.length > $_.dcws) { //#23439 - $_.okay = false; //#23439 - } //#23439 - if ($_.okay) { //#23440 - break; //#23440 - } //#23440 - } //#23440 - if (!$_.okay) { //#23445 - $k[$j++] = 'bwipp.codeoneNoValidSymbol#23444'; //#23444 - $k[$j++] = "Maximum length exceeded"; //#23444 - bwipp_raiseerror(); //#23444 - } //#23444 - if (!$_.stype) { //#23451 - $k[$j++] = Infinity; //#23449 - $aload($_.cws); //#23449 - for (var _Ip = 0, _Iq = $f($_.dcws - $_.cws.length); _Ip < _Iq; _Ip++) { //#23449 - $k[$j++] = 129; //#23449 - } //#23449 - $_.cws = $a(); //#23449 - } else { //#23451 - $k[$j++] = Infinity; //#23451 - for (var _Iu = 0, _Iv = $f($_.dcws - $_.cws.length); _Iu < _Iv; _Iu++) { //#23451 - $k[$j++] = 0; //#23451 - } //#23451 - $aload($_.cws); //#23451 - $_.cws = $a(); //#23451 - } //#23451 - var _Iz = $get($_.options, 'debugcws') !== undefined; //#23454 - if (_Iz) { //#23454 - $k[$j++] = 'bwipp.debugcws#23454'; //#23454 - $k[$j++] = $_.cws; //#23454 - bwipp_raiseerror(); //#23454 - } //#23454 - $_.cwbs = $a($_.rsbl); //#23457 - $_.ecbs = $a($_.rsbl); //#23458 - for (var _J7 = 0, _J6 = $f($_.rsbl - 1); _J7 <= _J6; _J7 += 1) { //#23467 - $_.i = _J7; //#23460 - $_.cwb = $a($_.dcpb); //#23461 - for (var _JC = 0, _JB = $_.dcpb - 1; _JC <= _JB; _JC += 1) { //#23465 - $_.j = _JC; //#23463 - $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23464 - } //#23464 - $put($_.cwbs, $_.i, $_.cwb); //#23466 - } //#23466 - var _JO = $_.stype ? 32 : 256; //#23470 - $_.gf = _JO; //#23470 - $_['gf-1'] = $_.gf - 1; //#23471 - var _JR = $_.stype ? 37 : 301; //#23472 - $_.pm = _JR; //#23472 - $k[$j++] = Infinity; //#23473 - $k[$j++] = 1; //#23473 - for (var _JT = 0, _JU = $_["gf-1"]; _JT < _JU; _JT++) { //#23473 - var _JV = $k[--$j]; //#23473 - var _JW = _JV * 2; //#23473 - $k[$j++] = _JV; //#23473 - $k[$j++] = _JW; //#23473 - if (_JW >= $_.gf) { //#23473 - var _JZ = $k[--$j]; //#23473 - $k[$j++] = _JZ ^ $_.pm; //#23473 - } //#23473 - } //#23473 - $_.rsalog = $a(); //#23473 - $_.rslog = $a($_.gf); //#23474 - for (var _Jf = 1, _Je = $_["gf-1"]; _Jf <= _Je; _Jf += 1) { //#23475 - $put($_.rslog, $get($_.rsalog, _Jf), _Jf); //#23475 - } //#23475 + } //#23709 + } //#23709 + $_.cws = $geti($_.cws, 0, $_.j); //#23711 + } //#23711 + var _IE = $_.metrics; //#23716 + for (var _IF = 0, _IG = _IE.length; _IF < _IG; _IF++) { //#23734 + $_.m = $get(_IE, _IF); //#23717 + $_.vers = $get($_.m, 0); //#23718 + $_.rows = $get($_.m, 1); //#23719 + $_.cols = $get($_.m, 2); //#23720 + $_.dcol = $get($_.m, 3); //#23721 + $_.dcws = $get($_.m, 4); //#23722 + $_.rscw = $get($_.m, 5); //#23723 + $_.rsbl = $get($_.m, 6); //#23724 + $_.riso = $get($_.m, 7); //#23725 + $_.risi = $get($_.m, 8); //#23726 + $_.risl = $get($_.m, 9); //#23727 + $_.dcpb = ~~($_.dcws / $_.rsbl); //#23728 + $_.ecpb = ~~($_.rscw / $_.rsbl); //#23729 + $_.okay = true; //#23730 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#23731 + $_.okay = false; //#23731 + } //#23731 + if ($_.cws.length > $_.dcws) { //#23732 + $_.okay = false; //#23732 + } //#23732 + if ($_.okay) { //#23733 + break; //#23733 + } //#23733 + } //#23733 + if (!$_.okay) { //#23738 + $k[$j++] = 'bwipp.codeoneNoValidSymbol#23737'; //#23737 + $k[$j++] = "Maximum length exceeded"; //#23737 + bwipp_raiseerror(); //#23737 + } //#23737 + if (!$_.stype) { //#23744 + $k[$j++] = Infinity; //#23742 + $aload($_.cws); //#23742 + for (var _Ir = 0, _Is = $f($_.dcws - $_.cws.length); _Ir < _Is; _Ir++) { //#23742 + $k[$j++] = 129; //#23742 + } //#23742 + $_.cws = $a(); //#23742 + } else { //#23744 + $k[$j++] = Infinity; //#23744 + for (var _Iw = 0, _Ix = $f($_.dcws - $_.cws.length); _Iw < _Ix; _Iw++) { //#23744 + $k[$j++] = 0; //#23744 + } //#23744 + $aload($_.cws); //#23744 + $_.cws = $a(); //#23744 + } //#23744 + var _J1 = $get($_.options, 'debugcws') !== undefined; //#23747 + if (_J1) { //#23747 + $k[$j++] = 'bwipp.debugcws#23747'; //#23747 + $k[$j++] = $_.cws; //#23747 + bwipp_raiseerror(); //#23747 + } //#23747 + $_.cwbs = $a($_.rsbl); //#23750 + $_.ecbs = $a($_.rsbl); //#23751 + for (var _J9 = 0, _J8 = $f($_.rsbl - 1); _J9 <= _J8; _J9 += 1) { //#23760 + $_.i = _J9; //#23753 + $_.cwb = $a($_.dcpb); //#23754 + for (var _JE = 0, _JD = $_.dcpb - 1; _JE <= _JD; _JE += 1) { //#23758 + $_.j = _JE; //#23756 + $put($_.cwb, $_.j, $get($_.cws, $f(($_.j * $_.rsbl) + $_.i))); //#23757 + } //#23757 + $put($_.cwbs, $_.i, $_.cwb); //#23759 + } //#23759 + var _JQ = $_.stype ? 32 : 256; //#23763 + $_.gf = _JQ; //#23763 + $_['gf-1'] = $_.gf - 1; //#23764 + var _JT = $_.stype ? 37 : 301; //#23765 + $_.pm = _JT; //#23765 + $k[$j++] = Infinity; //#23766 + $k[$j++] = 1; //#23766 + for (var _JV = 0, _JW = $_["gf-1"]; _JV < _JW; _JV++) { //#23766 + var _JX = $k[--$j]; //#23766 + var _JY = _JX * 2; //#23766 + $k[$j++] = _JX; //#23766 + $k[$j++] = _JY; //#23766 + if (_JY >= $_.gf) { //#23766 + var _Jb = $k[--$j]; //#23766 + $k[$j++] = _Jb ^ $_.pm; //#23766 + } //#23766 + } //#23766 + $_.rsalog = $a(); //#23766 + $_.rslog = $a($_.gf); //#23767 + for (var _Jh = 1, _Jg = $_["gf-1"]; _Jh <= _Jg; _Jh += 1) { //#23768 + $put($_.rslog, $get($_.rsalog, _Jh), _Jh); //#23768 + } //#23768 $_.rsprod = function() { - var _Jj = $k[--$j]; //#23477 - var _Jk = $k[--$j]; //#23477 - $k[$j++] = _Jk; //#23481 - $k[$j++] = _Jj; //#23481 - if ((_Jj != 0) && (_Jk != 0)) { //#23480 - var _Jn = $get($_.rslog, $k[--$j]); //#23478 - var _Jt = $get($_.rsalog, $f(_Jn + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23478 - $k[$j++] = _Jt; //#23478 - } else { //#23480 - $j -= 2; //#23480 - $k[$j++] = 0; //#23480 - } //#23480 - }; //#23480 - $k[$j++] = Infinity; //#23485 - $k[$j++] = 1; //#23485 - for (var _Jv = 0, _Jw = $_.ecpb; _Jv < _Jw; _Jv++) { //#23485 - $k[$j++] = 0; //#23485 - } //#23485 - $_.coeffs = $a(); //#23485 - for (var _K0 = 0, _Jz = $_.ecpb - 1; _K0 <= _Jz; _K0 += 1) { //#23494 - $_.i = _K0; //#23487 - $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23488 - for (var _K7 = $_.i; _K7 >= 1; _K7 -= 1) { //#23492 - $_.j = _K7; //#23490 - $k[$j++] = $_.coeffs; //#23491 - $k[$j++] = $_.j; //#23491 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#23491 - $k[$j++] = $get($_.coeffs, $_.j); //#23491 - $k[$j++] = $get($_.rsalog, $_.i); //#23491 - $_.rsprod(); //#23491 - var _KJ = $k[--$j]; //#23491 - var _KK = $k[--$j]; //#23491 - var _KL = $k[--$j]; //#23491 - $put($k[--$j], _KL, $xo(_KK, _KJ)); //#23491 - } //#23491 - $k[$j++] = $_.coeffs; //#23493 - $k[$j++] = 0; //#23493 - $k[$j++] = $get($_.coeffs, 0); //#23493 - $k[$j++] = $get($_.rsalog, $_.i); //#23493 - $_.rsprod(); //#23493 - var _KT = $k[--$j]; //#23493 - var _KU = $k[--$j]; //#23493 - $put($k[--$j], _KU, _KT); //#23493 - } //#23493 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23495 - for (var _Kb = 0, _Ka = $_.cwbs.length - 1; _Kb <= _Ka; _Kb += 1) { //#23510 - $_.i = _Kb; //#23499 - $k[$j++] = Infinity; //#23500 - $aload($get($_.cwbs, $_.i)); //#23500 - for (var _Kg = 0, _Kh = $_.ecpb; _Kg < _Kh; _Kg++) { //#23500 - $k[$j++] = 0; //#23500 - } //#23500 - $_.rscws = $a(); //#23500 - for (var _Kl = 0, _Kk = $_.dcpb - 1; _Kl <= _Kk; _Kl += 1) { //#23508 - $_.m = _Kl; //#23502 - $_.k = $get($_.rscws, $_.m); //#23503 - for (var _Kr = 0, _Kq = $_.ecpb - 1; _Kr <= _Kq; _Kr += 1) { //#23507 - $_.j = _Kr; //#23505 - $k[$j++] = $_.rscws; //#23506 - $k[$j++] = ($_.m + $_.j) + 1; //#23506 - $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23506 - $k[$j++] = $_.k; //#23506 - $_.rsprod(); //#23506 - var _L4 = $k[--$j]; //#23506 - var _L5 = $k[--$j]; //#23506 - $put($k[--$j], _L5, $xo(_L4, $get($_.rscws, ($_.m + $_.j) + 1))); //#23506 - } //#23506 - } //#23506 - $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23509 - } //#23509 - $k[$j++] = Infinity; //#23513 - $aload($_.cws); //#23513 - for (var _LF = 0, _LG = $_.rscw; _LF < _LG; _LF++) { //#23513 - $k[$j++] = 0; //#23513 - } //#23513 - $_.cws = $a(); //#23513 - for (var _LK = 0, _LJ = $f($_.rscw - 1); _LK <= _LJ; _LK += 1) { //#23517 - $_.i = _LK; //#23515 - $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23516 - } //#23516 - var _LY = $_.stype ? 5 : 8; //#23520 - $_.mmat = $a($f($_.dcws + $_.rscw) * _LY); //#23520 - $_.r = 0; //#23521 - $_.c = 0; //#23521 - var _Lb = $_.stype ? 2 : 1; //#23522 - for (var _Le = 0, _Lf = _Lb, _Ld = $_.cws.length - 1; _Lf < 0 ? _Le >= _Ld : _Le <= _Ld; _Le += _Lf) { //#23543 - $_.i = _Le; //#23523 - if (!$_.stype) { //#23537 - var _Li = $strcpy($s(8), "00000000"); //#23525 - var _Ln = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23525 - $puti(_Li, 8 - _Ln.length, _Ln); //#23526 - $k[$j++] = _Li; //#23526 - $k[$j++] = Infinity; //#23526 - var _Lo = $k[--$j]; //#23526 - var _Lp = $k[--$j]; //#23526 - $k[$j++] = _Lo; //#23526 - $forall(_Lp, function() { //#23526 - var _Lq = $k[--$j]; //#23526 - $k[$j++] = $f(_Lq - 48); //#23526 - }); //#23526 - var _Lr = $a(); //#23526 - $_.top = $geti(_Lr, 0, 4); //#23527 - $_.bot = $geti(_Lr, 4, 4); //#23528 - } else { //#23537 - var _Lv = $strcpy($s(5), "00000"); //#23530 - var _M0 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23530 - $puti(_Lv, 5 - _M0.length, _M0); //#23531 - $k[$j++] = _Lv; //#23531 - $k[$j++] = Infinity; //#23531 - var _M1 = $k[--$j]; //#23531 - var _M2 = $k[--$j]; //#23531 - $k[$j++] = _M1; //#23531 - $forall(_M2, function() { //#23531 - var _M3 = $k[--$j]; //#23531 - $k[$j++] = $f(_M3 - 48); //#23531 - }); //#23531 - $_.c1 = $a(); //#23532 - var _M6 = $strcpy($s(5), "00000"); //#23533 - var _MB = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23533 - $puti(_M6, 5 - _MB.length, _MB); //#23534 - $k[$j++] = _M6; //#23534 - $k[$j++] = Infinity; //#23534 - var _MC = $k[--$j]; //#23534 - var _MD = $k[--$j]; //#23534 - $k[$j++] = _MC; //#23534 - $forall(_MD, function() { //#23534 - var _ME = $k[--$j]; //#23534 - $k[$j++] = $f(_ME - 48); //#23534 - }); //#23534 - $_.c2 = $a(); //#23535 - $k[$j++] = Infinity; //#23536 - $aload($geti($_.c1, 0, 3)); //#23536 - $aload($geti($_.c2, 0, 2)); //#23536 - $_.top = $a(); //#23536 - $k[$j++] = Infinity; //#23537 - $aload($geti($_.c1, 3, 2)); //#23537 - $aload($geti($_.c2, 2, 3)); //#23537 - $_.bot = $a(); //#23537 - } //#23537 - $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23539 - $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23540 - $_.c = $_.c + $_.top.length; //#23541 - if ($_.c == $_.dcol) { //#23542 - $_.c = 0; //#23542 - $_.r = $_.r + 2; //#23542 - } //#23542 - } //#23542 + var _Jl = $k[--$j]; //#23770 + var _Jm = $k[--$j]; //#23770 + $k[$j++] = _Jm; //#23774 + $k[$j++] = _Jl; //#23774 + if ((_Jl != 0) && (_Jm != 0)) { //#23773 + var _Jp = $get($_.rslog, $k[--$j]); //#23771 + var _Jv = $get($_.rsalog, $f(_Jp + $get($_.rslog, $k[--$j])) % $_["gf-1"]); //#23771 + $k[$j++] = _Jv; //#23771 + } else { //#23773 + $j -= 2; //#23773 + $k[$j++] = 0; //#23773 + } //#23773 + }; //#23773 + $k[$j++] = Infinity; //#23778 + $k[$j++] = 1; //#23778 + for (var _Jx = 0, _Jy = $_.ecpb; _Jx < _Jy; _Jx++) { //#23778 + $k[$j++] = 0; //#23778 + } //#23778 + $_.coeffs = $a(); //#23778 + for (var _K2 = 0, _K1 = $_.ecpb - 1; _K2 <= _K1; _K2 += 1) { //#23787 + $_.i = _K2; //#23780 + $put($_.coeffs, $_.i + 1, $get($_.coeffs, $_.i)); //#23781 + for (var _K9 = $_.i; _K9 >= 1; _K9 -= 1) { //#23785 + $_.j = _K9; //#23783 + $k[$j++] = $_.coeffs; //#23784 + $k[$j++] = $_.j; //#23784 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#23784 + $k[$j++] = $get($_.coeffs, $_.j); //#23784 + $k[$j++] = $get($_.rsalog, $_.i); //#23784 + $_.rsprod(); //#23784 + var _KL = $k[--$j]; //#23784 + var _KM = $k[--$j]; //#23784 + var _KN = $k[--$j]; //#23784 + $put($k[--$j], _KN, $xo(_KM, _KL)); //#23784 + } //#23784 + $k[$j++] = $_.coeffs; //#23786 + $k[$j++] = 0; //#23786 + $k[$j++] = $get($_.coeffs, 0); //#23786 + $k[$j++] = $get($_.rsalog, $_.i); //#23786 + $_.rsprod(); //#23786 + var _KV = $k[--$j]; //#23786 + var _KW = $k[--$j]; //#23786 + $put($k[--$j], _KW, _KV); //#23786 + } //#23786 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#23788 + for (var _Kd = 0, _Kc = $_.cwbs.length - 1; _Kd <= _Kc; _Kd += 1) { //#23803 + $_.i = _Kd; //#23792 + $k[$j++] = Infinity; //#23793 + $aload($get($_.cwbs, $_.i)); //#23793 + for (var _Ki = 0, _Kj = $_.ecpb; _Ki < _Kj; _Ki++) { //#23793 + $k[$j++] = 0; //#23793 + } //#23793 + $_.rscws = $a(); //#23793 + for (var _Kn = 0, _Km = $_.dcpb - 1; _Kn <= _Km; _Kn += 1) { //#23801 + $_.m = _Kn; //#23795 + $_.k = $get($_.rscws, $_.m); //#23796 + for (var _Kt = 0, _Ks = $_.ecpb - 1; _Kt <= _Ks; _Kt += 1) { //#23800 + $_.j = _Kt; //#23798 + $k[$j++] = $_.rscws; //#23799 + $k[$j++] = ($_.m + $_.j) + 1; //#23799 + $k[$j++] = $get($_.coeffs, ($_.ecpb - $_.j) - 1); //#23799 + $k[$j++] = $_.k; //#23799 + $_.rsprod(); //#23799 + var _L6 = $k[--$j]; //#23799 + var _L7 = $k[--$j]; //#23799 + $put($k[--$j], _L7, $xo(_L6, $get($_.rscws, ($_.m + $_.j) + 1))); //#23799 + } //#23799 + } //#23799 + $put($_.ecbs, $_.i, $geti($_.rscws, $_.dcpb, $_.ecpb)); //#23802 + } //#23802 + $k[$j++] = Infinity; //#23806 + $aload($_.cws); //#23806 + for (var _LH = 0, _LI = $_.rscw; _LH < _LI; _LH++) { //#23806 + $k[$j++] = 0; //#23806 + } //#23806 + $_.cws = $a(); //#23806 + for (var _LM = 0, _LL = $f($_.rscw - 1); _LM <= _LL; _LM += 1) { //#23810 + $_.i = _LM; //#23808 + $put($_.cws, $f($_.dcws + $_.i), $get($get($_.ecbs, $_.i % $_.rsbl), ~~($_.i / $_.rsbl))); //#23809 + } //#23809 + var _La = $_.stype ? 5 : 8; //#23813 + $_.mmat = $a($f($_.dcws + $_.rscw) * _La); //#23813 + $_.r = 0; //#23814 + $_.c = 0; //#23814 + var _Ld = $_.stype ? 2 : 1; //#23815 + for (var _Lg = 0, _Lh = _Ld, _Lf = $_.cws.length - 1; _Lh < 0 ? _Lg >= _Lf : _Lg <= _Lf; _Lg += _Lh) { //#23836 + $_.i = _Lg; //#23816 + if (!$_.stype) { //#23830 + var _Lk = $strcpy($s(8), "00000000"); //#23818 + var _Lp = $cvrs($s(8), $get($_.cws, $_.i), 2); //#23818 + $puti(_Lk, 8 - _Lp.length, _Lp); //#23819 + $k[$j++] = _Lk; //#23819 + $k[$j++] = Infinity; //#23819 + var _Lq = $k[--$j]; //#23819 + var _Lr = $k[--$j]; //#23819 + $k[$j++] = _Lq; //#23819 + $forall(_Lr, function() { //#23819 + var _Ls = $k[--$j]; //#23819 + $k[$j++] = $f(_Ls - 48); //#23819 + }); //#23819 + var _Lt = $a(); //#23819 + $_.top = $geti(_Lt, 0, 4); //#23820 + $_.bot = $geti(_Lt, 4, 4); //#23821 + } else { //#23830 + var _Lx = $strcpy($s(5), "00000"); //#23823 + var _M2 = $cvrs($s(5), $get($_.cws, $_.i), 2); //#23823 + $puti(_Lx, 5 - _M2.length, _M2); //#23824 + $k[$j++] = _Lx; //#23824 + $k[$j++] = Infinity; //#23824 + var _M3 = $k[--$j]; //#23824 + var _M4 = $k[--$j]; //#23824 + $k[$j++] = _M3; //#23824 + $forall(_M4, function() { //#23824 + var _M5 = $k[--$j]; //#23824 + $k[$j++] = $f(_M5 - 48); //#23824 + }); //#23824 + $_.c1 = $a(); //#23825 + var _M8 = $strcpy($s(5), "00000"); //#23826 + var _MD = $cvrs($s(5), $get($_.cws, $_.i + 1), 2); //#23826 + $puti(_M8, 5 - _MD.length, _MD); //#23827 + $k[$j++] = _M8; //#23827 + $k[$j++] = Infinity; //#23827 + var _ME = $k[--$j]; //#23827 + var _MF = $k[--$j]; //#23827 + $k[$j++] = _ME; //#23827 + $forall(_MF, function() { //#23827 + var _MG = $k[--$j]; //#23827 + $k[$j++] = $f(_MG - 48); //#23827 + }); //#23827 + $_.c2 = $a(); //#23828 + $k[$j++] = Infinity; //#23829 + $aload($geti($_.c1, 0, 3)); //#23829 + $aload($geti($_.c2, 0, 2)); //#23829 + $_.top = $a(); //#23829 + $k[$j++] = Infinity; //#23830 + $aload($geti($_.c1, 3, 2)); //#23830 + $aload($geti($_.c2, 2, 3)); //#23830 + $_.bot = $a(); //#23830 + } //#23830 + $puti($_.mmat, $f(($_.r * $_.dcol) + $_.c), $_.top); //#23832 + $puti($_.mmat, $f((($_.r + 1) * $_.dcol) + $_.c), $_.bot); //#23833 + $_.c = $_.c + $_.top.length; //#23834 + if ($_.c == $_.dcol) { //#23835 + $_.c = 0; //#23835 + $_.r = $_.r + 2; //#23835 + } //#23835 + } //#23835 $_.mmv = function() { - var _Mg = $k[--$j]; //#23546 - var _Mh = $k[--$j]; //#23546 - $k[$j++] = $f(_Mh + (_Mg * $_.cols)); //#23546 - }; //#23546 - $k[$j++] = Infinity; //#23547 - for (var _Mk = 0, _Ml = $_.rows * $_.cols; _Mk < _Ml; _Mk++) { //#23547 - $k[$j++] = -1; //#23547 - } //#23547 - $_.pixs = $a(); //#23547 - var _NH = $a([function() { - for (var _Mo = 0, _Mp = $_.cols; _Mo < _Mp; _Mo++) { //#23551 - $k[$j++] = 0; //#23551 - } //#23551 + var _Mi = $k[--$j]; //#23839 + var _Mj = $k[--$j]; //#23839 + $k[$j++] = $f(_Mj + (_Mi * $_.cols)); //#23839 + }; //#23839 + $k[$j++] = Infinity; //#23840 + for (var _Mm = 0, _Mn = $_.rows * $_.cols; _Mm < _Mn; _Mm++) { //#23840 + $k[$j++] = -1; //#23840 + } //#23840 + $_.pixs = $a(); //#23840 + var _NJ = $a([function() { + for (var _Mq = 0, _Mr = $_.cols; _Mq < _Mr; _Mq++) { //#23844 + $k[$j++] = 0; //#23844 + } //#23844 }, function() { - for (var _Mr = 0, _Ms = $_.cols; _Mr < _Ms; _Mr++) { //#23552 - $k[$j++] = 1; //#23552 - } //#23552 + for (var _Mt = 0, _Mu = $_.cols; _Mt < _Mu; _Mt++) { //#23845 + $k[$j++] = 1; //#23845 + } //#23845 }, function() { - $k[$j++] = 0; //#23553 - for (var _Mu = 0, _Mv = $f($_.cols - 2); _Mu < _Mv; _Mu++) { //#23553 - $k[$j++] = 1; //#23553 - } //#23553 - $k[$j++] = 0; //#23553 + $k[$j++] = 0; //#23846 + for (var _Mw = 0, _Mx = $f($_.cols - 2); _Mw < _Mx; _Mw++) { //#23846 + $k[$j++] = 1; //#23846 + } //#23846 + $k[$j++] = 0; //#23846 }, function() { - $k[$j++] = 0; //#23554 - $k[$j++] = 1; //#23554 - for (var _Mx = 0, _My = $f($_.cols - 4); _Mx < _My; _Mx++) { //#23554 - $k[$j++] = 0; //#23554 - } //#23554 - $k[$j++] = 1; //#23554 - $k[$j++] = 0; //#23554 + $k[$j++] = 0; //#23847 + $k[$j++] = 1; //#23847 + for (var _Mz = 0, _N0 = $f($_.cols - 4); _Mz < _N0; _Mz++) { //#23847 + $k[$j++] = 0; //#23847 + } //#23847 + $k[$j++] = 1; //#23847 + $k[$j++] = 0; //#23847 }, function() { - for (var _N0 = 0, _N1 = ~~($f($_.cols - 1) / 2); _N0 < _N1; _N0++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 - $k[$j++] = 1; //#23555 - for (var _N3 = 0, _N4 = ~~($f($_.cols - 1) / 2); _N3 < _N4; _N3++) { //#23555 - $k[$j++] = -1; //#23555 - } //#23555 + for (var _N2 = 0, _N3 = ~~($f($_.cols - 1) / 2); _N2 < _N3; _N2++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 + $k[$j++] = 1; //#23848 + for (var _N5 = 0, _N6 = ~~($f($_.cols - 1) / 2); _N5 < _N6; _N5++) { //#23848 + $k[$j++] = -1; //#23848 + } //#23848 }, function() { - for (var _N6 = 0, _N7 = ~~($f($_.cols - 1) / 2); _N6 < _N7; _N6++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 - $k[$j++] = 0; //#23556 - for (var _N9 = 0, _NA = ~~($f($_.cols - 1) / 2); _N9 < _NA; _N9++) { //#23556 - $k[$j++] = -1; //#23556 - } //#23556 + for (var _N8 = 0, _N9 = ~~($f($_.cols - 1) / 2); _N8 < _N9; _N8++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 + $k[$j++] = 0; //#23849 + for (var _NB = 0, _NC = ~~($f($_.cols - 1) / 2); _NB < _NC; _NB++) { //#23849 + $k[$j++] = -1; //#23849 + } //#23849 }, function() { - $k[$j++] = 1; //#23557 - for (var _NC = 0, _ND = $f($_.cols - 2); _NC < _ND; _NC++) { //#23557 - $k[$j++] = 0; //#23557 - } //#23557 - $k[$j++] = 1; //#23557 + $k[$j++] = 1; //#23850 + for (var _NE = 0, _NF = $f($_.cols - 2); _NE < _NF; _NE++) { //#23850 + $k[$j++] = 0; //#23850 + } //#23850 + $k[$j++] = 1; //#23850 }, function() { - $k[$j++] = 1; //#23558 - $k[$j++] = 0; //#23558 - for (var _NF = 0, _NG = $f($_.cols - 4); _NF < _NG; _NF++) { //#23558 - $k[$j++] = 1; //#23558 - } //#23558 - $k[$j++] = 0; //#23558 - $k[$j++] = 1; //#23558 - }]); //#23558 - $_.artifact = _NH; //#23559 - if (!bwipp_codeone.__23573__) { //#23573 - $_ = Object.create($_); //#23573 - var _NI = new Map([ + $k[$j++] = 1; //#23851 + $k[$j++] = 0; //#23851 + for (var _NH = 0, _NI = $f($_.cols - 4); _NH < _NI; _NH++) { //#23851 + $k[$j++] = 1; //#23851 + } //#23851 + $k[$j++] = 0; //#23851 + $k[$j++] = 1; //#23851 + }]); //#23851 + $_.artifact = _NJ; //#23852 + if (!bwipp_codeone.__23866__) { //#23866 + $_ = Object.create($_); //#23866 + var _NK = new Map([ ["A", "121343"], ["B", "12134343"], ["C", "12121343"], @@ -29351,57 +29792,57 @@ function bwipp_codeone() { ["H", "121212134343"], ["S", "56661278"], ["T", "5666666666127878"] - ]); //#23571 - $_.cpatmap = _NI; //#23572 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23572 - bwipp_codeone.__23573__ = 1; //#23572 - $_ = Object.getPrototypeOf($_); //#23572 - } //#23572 - $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23574 - $k[$j++] = $_.pixs; //#23575 - $k[$j++] = 0; //#23575 - $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23575 - $_.mmv(); //#23575 - $k[$j++] = Infinity; //#23576 - $forall($_.cpat, function() { //#23576 + ]); //#23864 + $_.cpatmap = _NK; //#23865 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23865 + bwipp_codeone.__23866__ = 1; //#23865 + $_ = Object.getPrototypeOf($_); //#23865 + } //#23865 + $_.cpat = $get($_.cpatmap, $geti($_.vers, 0, 1)); //#23867 + $k[$j++] = $_.pixs; //#23868 + $k[$j++] = 0; //#23868 + $k[$j++] = ~~($f($_.rows - $_.cpat.length) / 2); //#23868 + $_.mmv(); //#23868 + $k[$j++] = Infinity; //#23869 + $forall($_.cpat, function() { //#23869 if ($get($_.artifact, $f($k[--$j] - 49))() === true) { return true; - } //#23576 - }); //#23576 - var _NV = $a(); //#23576 - var _NW = $k[--$j]; //#23576 - $puti($k[--$j], _NW, _NV); //#23576 - for (var _Na = 0, _NZ = $f($_.risl - 1); _Na <= _NZ; _Na += 1) { //#23591 - $_.i = _Na; //#23580 - for (var _Nf = $_.riso, _Ng = $_.risi, _Ne = $f($_.cols - 1); _Ng < 0 ? _Nf >= _Ne : _Nf <= _Ne; _Nf += _Ng) { //#23590 - $_.j = _Nf; //#23582 - var _Ni = (($_.i % 12) == 0) ? 1 : 0; //#23583 - var _Nj = $a([1, _Ni]); //#23583 - $k[$j++] = _Nj; //#23584 - $k[$j++] = _Nj; //#23584 - $k[$j++] = $_.pixs; //#23584 - $k[$j++] = $_.j; //#23584 - $k[$j++] = $_.i; //#23584 - $_.mmv(); //#23584 - var _Nn = $k[--$j]; //#23585 - var _No = $k[--$j]; //#23585 - $puti(_No, _Nn, $k[--$j]); //#23585 - if ($_.i != $f($_.risl - 1)) { //#23589 - $k[$j++] = $_.pixs; //#23587 - $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23587 - $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23587 - $_.mmv(); //#23587 - var _Nx = $k[--$j]; //#23588 - var _Ny = $k[--$j]; //#23588 - $puti(_Ny, _Nx, $k[--$j]); //#23588 - } else { //#23589 - $j--; //#23589 - } //#23589 - } //#23589 - } //#23589 - if (!bwipp_codeone.__23611__) { //#23611 - $_ = Object.create($_); //#23611 - var _Od = new Map([ + } //#23869 + }); //#23869 + var _NX = $a(); //#23869 + var _NY = $k[--$j]; //#23869 + $puti($k[--$j], _NY, _NX); //#23869 + for (var _Nc = 0, _Nb = $f($_.risl - 1); _Nc <= _Nb; _Nc += 1) { //#23884 + $_.i = _Nc; //#23873 + for (var _Nh = $_.riso, _Ni = $_.risi, _Ng = $f($_.cols - 1); _Ni < 0 ? _Nh >= _Ng : _Nh <= _Ng; _Nh += _Ni) { //#23883 + $_.j = _Nh; //#23875 + var _Nk = (($_.i % 12) == 0) ? 1 : 0; //#23876 + var _Nl = $a([1, _Nk]); //#23876 + $k[$j++] = _Nl; //#23877 + $k[$j++] = _Nl; //#23877 + $k[$j++] = $_.pixs; //#23877 + $k[$j++] = $_.j; //#23877 + $k[$j++] = $_.i; //#23877 + $_.mmv(); //#23877 + var _Np = $k[--$j]; //#23878 + var _Nq = $k[--$j]; //#23878 + $puti(_Nq, _Np, $k[--$j]); //#23878 + if ($_.i != $f($_.risl - 1)) { //#23882 + $k[$j++] = $_.pixs; //#23880 + $k[$j++] = $f($f($_.cols - $_.j) - 2); //#23880 + $k[$j++] = $f($f($_.rows - $_.i) - 1); //#23880 + $_.mmv(); //#23880 + var _Nz = $k[--$j]; //#23881 + var _O0 = $k[--$j]; //#23881 + $puti(_O0, _Nz, $k[--$j]); //#23881 + } else { //#23882 + $j--; //#23882 + } //#23882 + } //#23882 + } //#23882 + if (!bwipp_codeone.__23904__) { //#23904 + $_ = Object.create($_); //#23904 + var _Of = new Map([ ["A", $a([$a([12, 5])])], ["B", $a([$a([16, 7])])], ["C", $a([$a([26, 12])])], @@ -29411,941 +29852,957 @@ function bwipp_codeone() { ["G", $a([$a([27, 48]), $a([69, 48])])], ["H", $a([$a([26, 70]), $a([66, 70]), $a([106, 70]), $a([26, 72]), $a([66, 72]), $a([106, 72])])], ["S-10", $a([])], - ["S-20", $a([$a([10, 4])])], - ["S-30", $a([$a([15, 4]), $a([15, 6])])], - ["T-16", $a([$a([8, 10])])], - ["T-32", $a([$a([16, 10]), $a([16, 12])])], - ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] - ]); //#23609 - $_.blackdotmap = _Od; //#23610 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23610 - bwipp_codeone.__23611__ = 1; //#23610 - $_ = Object.getPrototypeOf($_); //#23610 - } //#23610 - $forall($get($_.blackdotmap, $_.vers), function() { //#23612 - var _Oj = $k[--$j]; //#23612 - $k[$j++] = $_.pixs; //#23612 - $aload(_Oj); //#23612 - $_.mmv(); //#23612 - var _Ok = $k[--$j]; //#23612 - $put($k[--$j], _Ok, 1); //#23612 - }); //#23612 - $_.j = 0; //#23615 - for (var _Oo = 0, _On = $_.pixs.length - 1; _Oo <= _On; _Oo += 1) { //#23622 - $_.i = _Oo; //#23617 - if ($get($_.pixs, $_.i) == -1) { //#23621 - $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23619 - $_.j = $_.j + 1; //#23620 - } //#23620 - } //#23620 - var _P4 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.cols], - ["pixy", $_.rows], - ["height", ($_.rows / 72) * 2], - ["width", ($_.cols / 72) * 2], - ["opt", $_.options] - ]); //#23632 - $k[$j++] = _P4; //#23635 - if (!$_.dontdraw) { //#23635 - bwipp_renmatrix(); //#23635 - } //#23635 - $_ = Object.getPrototypeOf($_); //#23637 - $_ = Object.getPrototypeOf($_); //#23639 -} - + ["S-20", $a([$a([10, 4])])], + ["S-30", $a([$a([15, 4]), $a([15, 6])])], + ["T-16", $a([$a([8, 10])])], + ["T-32", $a([$a([16, 10]), $a([16, 12])])], + ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] + ]); //#23902 + $_.blackdotmap = _Of; //#23903 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_codeone.$ctx[id] = $_[id]); //#23903 + bwipp_codeone.__23904__ = 1; //#23903 + $_ = Object.getPrototypeOf($_); //#23903 + } //#23903 + $forall($get($_.blackdotmap, $_.vers), function() { //#23905 + var _Ol = $k[--$j]; //#23905 + $k[$j++] = $_.pixs; //#23905 + $aload(_Ol); //#23905 + $_.mmv(); //#23905 + var _Om = $k[--$j]; //#23905 + $put($k[--$j], _Om, 1); //#23905 + }); //#23905 + $_.j = 0; //#23908 + for (var _Oq = 0, _Op = $_.pixs.length - 1; _Oq <= _Op; _Oq += 1) { //#23915 + $_.i = _Oq; //#23910 + if ($get($_.pixs, $_.i) == -1) { //#23914 + $put($_.pixs, $_.i, $get($_.mmat, $_.j)); //#23912 + $_.j = $_.j + 1; //#23913 + } //#23913 + } //#23913 + $k[$j++] = Infinity; //#23918 + $k[$j++] = 'ren'; //#23930 + $k[$j++] = bwipp_renmatrix; //#23930 + $k[$j++] = 'pixs'; //#23930 + $k[$j++] = $_.pixs; //#23930 + $k[$j++] = 'pixx'; //#23930 + $k[$j++] = $_.cols; //#23930 + $k[$j++] = 'pixy'; //#23930 + $k[$j++] = $_.rows; //#23930 + $k[$j++] = 'height'; //#23930 + $k[$j++] = ($_.rows / 72) * 2; //#23930 + $k[$j++] = 'width'; //#23930 + $k[$j++] = ($_.cols / 72) * 2; //#23930 + if ($_.stype || $_.ttype) { //#23930 + $k[$j++] = 'borderleft'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'borderright'; //#23929 + $k[$j++] = 1; //#23929 + $k[$j++] = 'bordertop'; //#23929 + $k[$j++] = 0; //#23929 + $k[$j++] = 'borderbottom'; //#23929 + $k[$j++] = 1; //#23929 + } //#23929 + $k[$j++] = 'opt'; //#23931 + $k[$j++] = $_.options; //#23931 + var _P8 = $d(); //#23931 + $k[$j++] = _P8; //#23934 + if (!$_.dontdraw) { //#23934 + bwipp_renmatrix(); //#23934 + } //#23934 + $_ = Object.getPrototypeOf($_); //#23936 + $_ = Object.getPrototypeOf($_); //#23938 +} //bwipp_codeone function bwipp_hanxin() { - $_ = Object.create($_); //#23670 - $_.dontdraw = false; //#23673 - $_.version = "unset"; //#23674 - $_.eclevel = "L2"; //#23675 - $_.parse = false; //#23676 - $_.parsefnc = false; //#23677 - $_.mask = -1; //#23678 - $k[$j++] = $_; //#23680 - bwipp_processoptions(); //#23680 - $_.options = $k[--$j]; //#23680 - $_.barcode = $k[--$j]; //#23681 - if ($eq($_.barcode, "")) { //#23685 - $k[$j++] = 'bwipp.hanxinEmptyData#23684'; //#23684 - $k[$j++] = "The data must not be empty"; //#23684 - bwipp_raiseerror(); //#23684 - } //#23684 - if ($ne($_.version, "unset")) { //#23697 - var _5 = $_.version.length; //#23688 - var _6 = (_5 >= 1) && (_5 <= 2); //#23688 - $k[$j++] = _6; //#23693 - if (_6) { //#23693 - $j--; //#23689 - var _7 = $_.version; //#23690 - $k[$j++] = true; //#23690 - for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23690 - var _A = $get(_7, _8); //#23690 - if ((_A < 48) || (_A > 57)) { //#23690 - $j--; //#23690 - $k[$j++] = false; //#23690 - } //#23690 - } //#23690 - var _B = $k[--$j]; //#23690 - $k[$j++] = _B; //#23692 - if (_B) { //#23692 - $j--; //#23691 - var _D = $cvi($_.version); //#23691 - $k[$j++] = (_D >= 1) && (_D <= 84); //#23691 - } //#23691 - } //#23691 - if ($nt($k[--$j])) { //#23696 - $k[$j++] = 'bwipp.hanxinInvalidVersion#23695'; //#23695 - $k[$j++] = "Valid versions are 1 to 84"; //#23695 - bwipp_raiseerror(); //#23695 - } //#23695 - } //#23695 - var _G = $_.eclevel.length == 2; //#23699 - $k[$j++] = _G; //#23703 - if (_G) { //#23703 - $j--; //#23700 - $k[$j++] = $geti($_.eclevel, 0, 1); //#23702 - if ($eq("L", "L")) { //#23702 - $j--; //#23701 - var _L = $get($_.eclevel, 1) - 48; //#23701 - $k[$j++] = (_L >= 1) && (_L <= 4); //#23701 - } //#23701 - } //#23701 - if ($nt($k[--$j])) { //#23706 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23705'; //#23705 - $k[$j++] = "Valid error correction levels are L1 to L4"; //#23705 - bwipp_raiseerror(); //#23705 - } //#23705 - if ($_.mask != -1) { //#23712 - if (($_.mask < 1) || ($_.mask > 4)) { //#23711 - $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#23710'; //#23710 - $k[$j++] = "The valid masks are 1 to 4"; //#23710 - bwipp_raiseerror(); //#23710 - } //#23710 - } //#23710 - bwipp_loadctx(bwipp_hanxin) //#23714 + $_ = Object.create($_); //#23969 + $_.dontdraw = false; //#23972 + $_.version = "unset"; //#23973 + $_.eclevel = "L2"; //#23974 + $_.parse = false; //#23975 + $_.parsefnc = false; //#23976 + $_.mask = -1; //#23977 + $k[$j++] = $_; //#23979 + bwipp_processoptions(); //#23979 + $_.options = $k[--$j]; //#23979 + $_.barcode = $k[--$j]; //#23980 + if ($eq($_.barcode, "")) { //#23984 + $k[$j++] = 'bwipp.hanxinEmptyData#23983'; //#23983 + $k[$j++] = "The data must not be empty"; //#23983 + bwipp_raiseerror(); //#23983 + } //#23983 + if ($ne($_.version, "unset")) { //#23996 + var _5 = $_.version.length; //#23987 + var _6 = (_5 >= 1) && (_5 <= 2); //#23987 + $k[$j++] = _6; //#23992 + if (_6) { //#23992 + $j--; //#23988 + var _7 = $_.version; //#23989 + $k[$j++] = true; //#23989 + for (var _8 = 0, _9 = _7.length; _8 < _9; _8++) { //#23989 + var _A = $get(_7, _8); //#23989 + if ((_A < 48) || (_A > 57)) { //#23989 + $j--; //#23989 + $k[$j++] = false; //#23989 + } //#23989 + } //#23989 + var _B = $k[--$j]; //#23989 + $k[$j++] = _B; //#23991 + if (_B) { //#23991 + $j--; //#23990 + var _D = $cvi($_.version); //#23990 + $k[$j++] = (_D >= 1) && (_D <= 84); //#23990 + } //#23990 + } //#23990 + if ($nt($k[--$j])) { //#23995 + $k[$j++] = 'bwipp.hanxinInvalidVersion#23994'; //#23994 + $k[$j++] = "Valid versions are 1 to 84"; //#23994 + bwipp_raiseerror(); //#23994 + } //#23994 + } //#23994 + var _G = $_.eclevel.length == 2; //#23998 + $k[$j++] = _G; //#24002 + if (_G) { //#24002 + $j--; //#23999 + $k[$j++] = $geti($_.eclevel, 0, 1); //#24001 + if ($eq("L", "L")) { //#24001 + $j--; //#24000 + var _L = $get($_.eclevel, 1) - 48; //#24000 + $k[$j++] = (_L >= 1) && (_L <= 4); //#24000 + } //#24000 + } //#24000 + if ($nt($k[--$j])) { //#24005 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24004'; //#24004 + $k[$j++] = "Valid error correction levels are L1 to L4"; //#24004 + bwipp_raiseerror(); //#24004 + } //#24004 + if ($_.mask != -1) { //#24011 + if (($_.mask < 1) || ($_.mask > 4)) { //#24010 + $k[$j++] = 'bwipp.hanxinInvalidErrorCorrectionLevel#24009'; //#24009 + $k[$j++] = "The valid masks are 1 to 4"; //#24009 + bwipp_raiseerror(); //#24009 + } //#24009 + } //#24009 + bwipp_loadctx(bwipp_hanxin) //#24013 var _S = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc] - ]); //#23719 - $_.fncvals = _S; //#23721 - $k[$j++] = 'msg'; //#23722 - $k[$j++] = $_.barcode; //#23722 - $k[$j++] = $_.fncvals; //#23722 - bwipp_parseinput(); //#23722 - var _V = $k[--$j]; //#23722 - $_[$k[--$j]] = _V; //#23722 - $_.msglen = $_.msg.length; //#23723 + ]); //#24018 + $_.fncvals = _S; //#24020 + $k[$j++] = 'msg'; //#24021 + $k[$j++] = $_.barcode; //#24021 + $k[$j++] = $_.fncvals; //#24021 + bwipp_parseinput(); //#24021 + var _V = $k[--$j]; //#24021 + $_[$k[--$j]] = _V; //#24021 + $_.msglen = $_.msg.length; //#24022 $_.tobin = function() { - var _Z = $s($k[--$j]); //#23726 - $k[$j++] = _Z; //#23726 - for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#23726 - var _c = $k[--$j]; //#23726 - $put(_c, _b, 48); //#23726 - $k[$j++] = _c; //#23726 - } //#23726 - var _d = $k[--$j]; //#23727 - var _g = $cvrs($s(_d.length), $k[--$j], 2); //#23727 - $puti(_d, _d.length - _g.length, _g); //#23728 - $k[$j++] = _d; //#23728 - }; //#23728 - $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#23732 - $puti($_.bits, 0, "0011"); //#23733 - $k[$j++] = $_.bits; //#23734 - $k[$j++] = 4; //#23734 - $k[$j++] = $_.msglen; //#23734 - $k[$j++] = 13; //#23734 - $_.tobin(); //#23734 - var _m = $k[--$j]; //#23734 - var _n = $k[--$j]; //#23734 - $puti($k[--$j], _n, _m); //#23734 - for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#23738 - $_.i = _r; //#23736 - $k[$j++] = $_.bits; //#23737 - $k[$j++] = 17 + ($_.i * 8); //#23737 - $k[$j++] = $get($_.msg, $_.i); //#23737 - $k[$j++] = 8; //#23737 - $_.tobin(); //#23737 - var _x = $k[--$j]; //#23737 - var _y = $k[--$j]; //#23737 - $puti($k[--$j], _y, _x); //#23737 - } //#23737 - if (!bwipp_hanxin.__24081__) { //#24081 - $_ = Object.create($_); //#24081 - var _24 = $a([0, -1, -1]); //#23764 - $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24080 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24080 - bwipp_hanxin.__24081__ = 1; //#24080 - $_ = Object.getPrototypeOf($_); //#24080 - } //#24080 - $_.eclval = $get($_.eclevel, 1) - 49; //#24083 - var _Ig = $_.metrics; //#24084 - for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24102 - $_.m = $get(_Ig, _Ih); //#24085 - $_.vers = $get($_.m, 0); //#24086 - $_.size = $get($_.m, 1); //#24087 - $_.alnk = $get($_.m, 2); //#24088 - $_.alnn = $get($_.m, 3); //#24089 - $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24090 - $_.nmod = $get($_.m, 4); //#24091 - $_.ncws = ~~($_.nmod / 8); //#24092 - $_.rbit = $_.nmod % 8; //#24093 - $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24094 - var _J2 = $_.ecbs; //#24095 - $k[$j++] = 'ecws'; //#24095 - $k[$j++] = 0; //#24095 - for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24095 - var _J5 = $get(_J2, _J3); //#24095 - var _J8 = $k[--$j]; //#24095 - $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24095 - } //#24095 - var _J9 = $k[--$j]; //#24095 - $_[$k[--$j]] = _J9; //#24095 - $_.dcws = $f($_.ncws - $_.ecws); //#24096 - $_.dmod = $_.dcws * 8; //#24097 - $_.okay = true; //#24098 - if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24099 - $_.okay = false; //#24099 - } //#24099 - if ($_.bits.length > $_.dmod) { //#24100 - $_.okay = false; //#24100 - } //#24100 - if ($_.okay) { //#24101 - break; //#24101 - } //#24101 - } //#24101 - if (!$_.okay) { //#24106 - $k[$j++] = 'bwipp.hanxinNoValidSymbol#24105'; //#24105 - $k[$j++] = "Maximum length exceeded or invalid content"; //#24105 - bwipp_raiseerror(); //#24105 - } //#24105 - $_.version = $_.vers; //#24108 - $_.msgbits = $_.bits; //#24109 - $_.e1nb = $get($get($_.ecbs, 0), 0); //#24110 - $_.e2nb = $get($get($_.ecbs, 1), 0); //#24110 - $_.e3nb = $get($get($_.ecbs, 2), 0); //#24110 - $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24111 - $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24111 - $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24111 - $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24112 - $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24112 - $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24112 - $_.pad = $s($_.dmod); //#24115 - for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24116 - $put($_.pad, _Js, 48); //#24116 - } //#24116 - $puti($_.pad, 0, $_.msgbits); //#24117 - $_.cws = $a($_.dcws); //#24120 - for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24130 - $_.c = _K0; //#24122 - $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24123 - $_.cw = 0; //#24124 - for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24128 - $_.i = _K4; //#24126 - $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24127 - } //#24127 - $put($_.cws, $_.c, $_.cw); //#24129 - } //#24129 + var _Z = $s($k[--$j]); //#24025 + $k[$j++] = _Z; //#24025 + for (var _b = 0, _a = _Z.length - 1; _b <= _a; _b += 1) { //#24025 + var _c = $k[--$j]; //#24025 + $put(_c, _b, 48); //#24025 + $k[$j++] = _c; //#24025 + } //#24025 + var _d = $k[--$j]; //#24026 + var _g = $cvrs($s(_d.length), $k[--$j], 2); //#24026 + $puti(_d, _d.length - _g.length, _g); //#24027 + $k[$j++] = _d; //#24027 + }; //#24027 + $_.bits = $s((4 + 13) + ($_.msglen * 8)); //#24031 + $puti($_.bits, 0, "0011"); //#24032 + $k[$j++] = $_.bits; //#24033 + $k[$j++] = 4; //#24033 + $k[$j++] = $_.msglen; //#24033 + $k[$j++] = 13; //#24033 + $_.tobin(); //#24033 + var _m = $k[--$j]; //#24033 + var _n = $k[--$j]; //#24033 + $puti($k[--$j], _n, _m); //#24033 + for (var _r = 0, _q = $_.msglen - 1; _r <= _q; _r += 1) { //#24037 + $_.i = _r; //#24035 + $k[$j++] = $_.bits; //#24036 + $k[$j++] = 17 + ($_.i * 8); //#24036 + $k[$j++] = $get($_.msg, $_.i); //#24036 + $k[$j++] = 8; //#24036 + $_.tobin(); //#24036 + var _x = $k[--$j]; //#24036 + var _y = $k[--$j]; //#24036 + $puti($k[--$j], _y, _x); //#24036 + } //#24036 + if (!bwipp_hanxin.__24380__) { //#24380 + $_ = Object.create($_); //#24380 + var _24 = $a([0, -1, -1]); //#24063 + $_.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), _24, $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#24379 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24379 + bwipp_hanxin.__24380__ = 1; //#24379 + $_ = Object.getPrototypeOf($_); //#24379 + } //#24379 + $_.eclval = $get($_.eclevel, 1) - 49; //#24382 + var _Ig = $_.metrics; //#24383 + for (var _Ih = 0, _Ii = _Ig.length; _Ih < _Ii; _Ih++) { //#24401 + $_.m = $get(_Ig, _Ih); //#24384 + $_.vers = $get($_.m, 0); //#24385 + $_.size = $get($_.m, 1); //#24386 + $_.alnk = $get($_.m, 2); //#24387 + $_.alnn = $get($_.m, 3); //#24388 + $_.alnr = $f($_.size - ($_.alnk * $_.alnn)); //#24389 + $_.nmod = $get($_.m, 4); //#24390 + $_.ncws = ~~($_.nmod / 8); //#24391 + $_.rbit = $_.nmod % 8; //#24392 + $_.ecbs = $geti($_.m, 5 + ($_.eclval * 3), 3); //#24393 + var _J2 = $_.ecbs; //#24394 + $k[$j++] = 'ecws'; //#24394 + $k[$j++] = 0; //#24394 + for (var _J3 = 0, _J4 = _J2.length; _J3 < _J4; _J3++) { //#24394 + var _J5 = $get(_J2, _J3); //#24394 + var _J8 = $k[--$j]; //#24394 + $k[$j++] = $f(_J8 + ($get(_J5, 0) * $get(_J5, 2))); //#24394 + } //#24394 + var _J9 = $k[--$j]; //#24394 + $_[$k[--$j]] = _J9; //#24394 + $_.dcws = $f($_.ncws - $_.ecws); //#24395 + $_.dmod = $_.dcws * 8; //#24396 + $_.okay = true; //#24397 + if ($ne($_.version, "unset") && $ne($_.version, $_.vers)) { //#24398 + $_.okay = false; //#24398 + } //#24398 + if ($_.bits.length > $_.dmod) { //#24399 + $_.okay = false; //#24399 + } //#24399 + if ($_.okay) { //#24400 + break; //#24400 + } //#24400 + } //#24400 + if (!$_.okay) { //#24405 + $k[$j++] = 'bwipp.hanxinNoValidSymbol#24404'; //#24404 + $k[$j++] = "Maximum length exceeded or invalid content"; //#24404 + bwipp_raiseerror(); //#24404 + } //#24404 + $_.version = $_.vers; //#24407 + $_.msgbits = $_.bits; //#24408 + $_.e1nb = $get($get($_.ecbs, 0), 0); //#24409 + $_.e2nb = $get($get($_.ecbs, 1), 0); //#24409 + $_.e3nb = $get($get($_.ecbs, 2), 0); //#24409 + $_.e1dcws = $get($get($_.ecbs, 0), 1); //#24410 + $_.e2dcws = $get($get($_.ecbs, 1), 1); //#24410 + $_.e3dcws = $get($get($_.ecbs, 2), 1); //#24410 + $_.e1ecws = $get($get($_.ecbs, 0), 2); //#24411 + $_.e2ecws = $get($get($_.ecbs, 1), 2); //#24411 + $_.e3ecws = $get($get($_.ecbs, 2), 2); //#24411 + $_.pad = $s($_.dmod); //#24414 + for (var _Js = 0, _Jr = $_.pad.length - 1; _Js <= _Jr; _Js += 1) { //#24415 + $put($_.pad, _Js, 48); //#24415 + } //#24415 + $puti($_.pad, 0, $_.msgbits); //#24416 + $_.cws = $a($_.dcws); //#24419 + for (var _K0 = 0, _Jz = $_.cws.length - 1; _K0 <= _Jz; _K0 += 1) { //#24429 + $_.c = _K0; //#24421 + $_.cwb = $geti($_.pad, $_.c * 8, 8); //#24422 + $_.cw = 0; //#24423 + for (var _K4 = 0; _K4 <= 7; _K4 += 1) { //#24427 + $_.i = _K4; //#24425 + $_.cw = $f($_.cw + ((~~(Math.pow(2, (8 - $_.i) - 1))) * $f($get($_.cwb, $_.i) - 48))); //#24426 + } //#24426 + $put($_.cws, $_.c, $_.cw); //#24428 + } //#24428 $_.rscodes = function() { - $_.rspm = $k[--$j]; //#24134 - $_.rsgf = $k[--$j]; //#24135 - $_.rsnc = $k[--$j]; //#24136 - $_.rscws = $k[--$j]; //#24137 - $k[$j++] = Infinity; //#24140 - $k[$j++] = 1; //#24140 - for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24140 - var _KK = $k[--$j]; //#24140 - var _KL = _KK * 2; //#24140 - $k[$j++] = _KK; //#24140 - $k[$j++] = _KL; //#24140 - if (_KL >= $_.rsgf) { //#24140 - var _KO = $k[--$j]; //#24140 - $k[$j++] = $xo(_KO, $_.rspm); //#24140 - } //#24140 - } //#24140 - $_.rsalog = $a(); //#24140 - $_.rslog = $a($_.rsgf); //#24141 - for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24142 - $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24142 - } //#24142 + $_.rspm = $k[--$j]; //#24433 + $_.rsgf = $k[--$j]; //#24434 + $_.rsnc = $k[--$j]; //#24435 + $_.rscws = $k[--$j]; //#24436 + $k[$j++] = Infinity; //#24439 + $k[$j++] = 1; //#24439 + for (var _KI = 0, _KJ = $f($_.rsgf - 1); _KI < _KJ; _KI++) { //#24439 + var _KK = $k[--$j]; //#24439 + var _KL = _KK * 2; //#24439 + $k[$j++] = _KK; //#24439 + $k[$j++] = _KL; //#24439 + if (_KL >= $_.rsgf) { //#24439 + var _KO = $k[--$j]; //#24439 + $k[$j++] = $xo(_KO, $_.rspm); //#24439 + } //#24439 + } //#24439 + $_.rsalog = $a(); //#24439 + $_.rslog = $a($_.rsgf); //#24440 + for (var _KU = 1, _KT = $f($_.rsgf - 1); _KU <= _KT; _KU += 1) { //#24441 + $put($_.rslog, $get($_.rsalog, _KU), _KU); //#24441 + } //#24441 $_.rsprod = function() { - var _KY = $k[--$j]; //#24146 - var _KZ = $k[--$j]; //#24146 - $k[$j++] = _KZ; //#24150 - $k[$j++] = _KY; //#24150 - if ((_KY != 0) && (_KZ != 0)) { //#24149 - var _Kc = $get($_.rslog, $k[--$j]); //#24147 - var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24147 - $k[$j++] = _Ki; //#24147 - } else { //#24149 - $j -= 2; //#24149 - $k[$j++] = 0; //#24149 - } //#24149 - }; //#24149 - $k[$j++] = Infinity; //#24154 - $k[$j++] = 1; //#24154 - for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24154 - $k[$j++] = 0; //#24154 - } //#24154 - $_.coeffs = $a(); //#24154 - for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24163 - $_.i = _Kp; //#24156 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24157 - for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24161 - $_.j = _Kw; //#24159 - $k[$j++] = $_.coeffs; //#24160 - $k[$j++] = $_.j; //#24160 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#24160 - $k[$j++] = $get($_.coeffs, $_.j); //#24160 - $k[$j++] = $get($_.rsalog, $_.i); //#24160 - $_.rsprod(); //#24160 - var _L8 = $k[--$j]; //#24160 - var _L9 = $k[--$j]; //#24160 - var _LA = $k[--$j]; //#24160 - $put($k[--$j], _LA, $xo(_L9, _L8)); //#24160 - } //#24160 - $k[$j++] = $_.coeffs; //#24162 - $k[$j++] = 0; //#24162 - $k[$j++] = $get($_.coeffs, 0); //#24162 - $k[$j++] = $get($_.rsalog, $_.i); //#24162 - $_.rsprod(); //#24162 - var _LI = $k[--$j]; //#24162 - var _LJ = $k[--$j]; //#24162 - $put($k[--$j], _LJ, _LI); //#24162 - } //#24162 - $_.nd = $_.rscws.length; //#24166 - $k[$j++] = Infinity; //#24167 - $forall($_.rscws); //#24167 - for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24167 - $k[$j++] = 0; //#24167 - } //#24167 - $k[$j++] = 0; //#24167 - $_.rscws = $a(); //#24167 - for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24174 - $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24169 - for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24173 - $_.j = _Lb; //#24171 - $k[$j++] = $_.rscws; //#24172 - $k[$j++] = $_.nd + $_.j; //#24172 - $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24172 - $k[$j++] = $_.k; //#24172 - $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24172 - $_.rsprod(); //#24172 - var _Lo = $k[--$j]; //#24172 - var _Lp = $k[--$j]; //#24172 - var _Lq = $k[--$j]; //#24172 - $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24172 - } //#24172 - } //#24172 - $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24177 - }; //#24177 - $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24182 - $_.ecwsb = $a($_.dcwsb.length); //#24183 - $_.in = 0; //#24184 - $_.out = 0; //#24184 - for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24190 - $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24186 - $k[$j++] = $_.e1ecws; //#24186 - $k[$j++] = 256; //#24186 - $k[$j++] = 355; //#24186 - $_.rscodes(); //#24186 - var _M9 = $k[--$j]; //#24187 - $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24187 - $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24188 - $_.in = $f($_.in + $_.e1dcws); //#24189 - $_.out = $_.out + 1; //#24189 - } //#24189 - for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24196 - $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24192 - $k[$j++] = $_.e2ecws; //#24192 - $k[$j++] = 256; //#24192 - $k[$j++] = 355; //#24192 - $_.rscodes(); //#24192 - var _MU = $k[--$j]; //#24193 - $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24193 - $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24194 - $_.in = $f($_.in + $_.e2dcws); //#24195 - $_.out = $_.out + 1; //#24195 - } //#24195 - for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24202 - $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24198 - $k[$j++] = $_.e3ecws; //#24198 - $k[$j++] = 256; //#24198 - $k[$j++] = 355; //#24198 - $_.rscodes(); //#24198 - var _Mp = $k[--$j]; //#24199 - $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24199 - $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24200 - $_.in = $f($_.in + $_.e3dcws); //#24201 - $_.out = $_.out + 1; //#24201 - } //#24201 - $_.cws = $a($_.ncws); //#24205 - $_.cw = 0; //#24206 - for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24211 - $_.i = _N6; //#24208 - var _N9 = $get($_.dcwsb, $_.i); //#24209 - $puti($_.cws, $_.cw, _N9); //#24209 - $_.cw = _N9.length + $_.cw; //#24209 - var _NF = $get($_.ecwsb, $_.i); //#24210 - $puti($_.cws, $_.cw, _NF); //#24210 - $_.cw = _NF.length + $_.cw; //#24210 - } //#24210 - $k[$j++] = Infinity; //#24216 - var _NJ = $_.ncws; //#24215 - var _NK = 12; //#24215 - var _NL = _NJ - 1; //#24215 - if ((_NJ - 1) > 12) { //#24215 - var _ = _NK; //#24215 - _NK = _NL; //#24215 - _NL = _; //#24215 - } //#24215 - for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24217 - for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24216 - $k[$j++] = _NQ; //#24216 - if (_NQ < $_.ncws) { //#24216 - var _NU = $get($_.cws, $k[--$j]); //#24216 - $k[$j++] = _NU; //#24216 - } else { //#24216 - $j--; //#24216 - } //#24216 - } //#24216 - } //#24216 - $_.cws = $a(); //#24216 - if ($_.rbit > 0) { //#24226 - $_.pad = $a($_.cws.length + 1); //#24222 - $puti($_.pad, 0, $_.cws); //#24223 - $put($_.pad, $_.pad.length - 1, 0); //#24224 - $_.cws = $_.pad; //#24225 - } //#24225 - $k[$j++] = Infinity; //#24229 - for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24229 - $k[$j++] = -1; //#24229 - } //#24229 - $_.pixs = $a(); //#24229 + var _KY = $k[--$j]; //#24445 + var _KZ = $k[--$j]; //#24445 + $k[$j++] = _KZ; //#24449 + $k[$j++] = _KY; //#24449 + if ((_KY != 0) && (_KZ != 0)) { //#24448 + var _Kc = $get($_.rslog, $k[--$j]); //#24446 + var _Ki = $get($_.rsalog, $f(_Kc + $get($_.rslog, $k[--$j])) % $f($_.rsgf - 1)); //#24446 + $k[$j++] = _Ki; //#24446 + } else { //#24448 + $j -= 2; //#24448 + $k[$j++] = 0; //#24448 + } //#24448 + }; //#24448 + $k[$j++] = Infinity; //#24453 + $k[$j++] = 1; //#24453 + for (var _Kk = 0, _Kl = $_.rsnc; _Kk < _Kl; _Kk++) { //#24453 + $k[$j++] = 0; //#24453 + } //#24453 + $_.coeffs = $a(); //#24453 + for (var _Kp = 1, _Ko = $_.rsnc; _Kp <= _Ko; _Kp += 1) { //#24462 + $_.i = _Kp; //#24455 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#24456 + for (var _Kw = $_.i - 1; _Kw >= 1; _Kw -= 1) { //#24460 + $_.j = _Kw; //#24458 + $k[$j++] = $_.coeffs; //#24459 + $k[$j++] = $_.j; //#24459 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#24459 + $k[$j++] = $get($_.coeffs, $_.j); //#24459 + $k[$j++] = $get($_.rsalog, $_.i); //#24459 + $_.rsprod(); //#24459 + var _L8 = $k[--$j]; //#24459 + var _L9 = $k[--$j]; //#24459 + var _LA = $k[--$j]; //#24459 + $put($k[--$j], _LA, $xo(_L9, _L8)); //#24459 + } //#24459 + $k[$j++] = $_.coeffs; //#24461 + $k[$j++] = 0; //#24461 + $k[$j++] = $get($_.coeffs, 0); //#24461 + $k[$j++] = $get($_.rsalog, $_.i); //#24461 + $_.rsprod(); //#24461 + var _LI = $k[--$j]; //#24461 + var _LJ = $k[--$j]; //#24461 + $put($k[--$j], _LJ, _LI); //#24461 + } //#24461 + $_.nd = $_.rscws.length; //#24465 + $k[$j++] = Infinity; //#24466 + $forall($_.rscws); //#24466 + for (var _LO = 0, _LP = $_.rsnc; _LO < _LP; _LO++) { //#24466 + $k[$j++] = 0; //#24466 + } //#24466 + $k[$j++] = 0; //#24466 + $_.rscws = $a(); //#24466 + for (var _LT = 0, _LS = $_.nd - 1; _LT <= _LS; _LT += 1) { //#24473 + $_.k = $xo($get($_.rscws, _LT), $get($_.rscws, $_.nd)); //#24468 + for (var _Lb = 0, _La = $f($_.rsnc - 1); _Lb <= _La; _Lb += 1) { //#24472 + $_.j = _Lb; //#24470 + $k[$j++] = $_.rscws; //#24471 + $k[$j++] = $_.nd + $_.j; //#24471 + $k[$j++] = $get($_.rscws, ($_.nd + $_.j) + 1); //#24471 + $k[$j++] = $_.k; //#24471 + $k[$j++] = $get($_.coeffs, $f($f($_.rsnc - $_.j) - 1)); //#24471 + $_.rsprod(); //#24471 + var _Lo = $k[--$j]; //#24471 + var _Lp = $k[--$j]; //#24471 + var _Lq = $k[--$j]; //#24471 + $put($k[--$j], _Lq, $xo(_Lp, _Lo)); //#24471 + } //#24471 + } //#24471 + $k[$j++] = $geti($_.rscws, 0, $_.rscws.length - 1); //#24476 + }; //#24476 + $_.dcwsb = $a($f($f($_.e1nb + $_.e2nb) + $_.e3nb)); //#24481 + $_.ecwsb = $a($_.dcwsb.length); //#24482 + $_.in = 0; //#24483 + $_.out = 0; //#24483 + for (var _M2 = 0, _M3 = $_.e1nb; _M2 < _M3; _M2++) { //#24489 + $k[$j++] = $geti($_.cws, $_.in, $_.e1dcws); //#24485 + $k[$j++] = $_.e1ecws; //#24485 + $k[$j++] = 256; //#24485 + $k[$j++] = 355; //#24485 + $_.rscodes(); //#24485 + var _M9 = $k[--$j]; //#24486 + $put($_.dcwsb, $_.out, $geti(_M9, 0, $_.e1dcws)); //#24486 + $put($_.ecwsb, $_.out, $geti(_M9, $_.e1dcws, $_.e1ecws)); //#24487 + $_.in = $f($_.in + $_.e1dcws); //#24488 + $_.out = $_.out + 1; //#24488 + } //#24488 + for (var _MN = 0, _MO = $_.e2nb; _MN < _MO; _MN++) { //#24495 + $k[$j++] = $geti($_.cws, $_.in, $_.e2dcws); //#24491 + $k[$j++] = $_.e2ecws; //#24491 + $k[$j++] = 256; //#24491 + $k[$j++] = 355; //#24491 + $_.rscodes(); //#24491 + var _MU = $k[--$j]; //#24492 + $put($_.dcwsb, $_.out, $geti(_MU, 0, $_.e2dcws)); //#24492 + $put($_.ecwsb, $_.out, $geti(_MU, $_.e2dcws, $_.e2ecws)); //#24493 + $_.in = $f($_.in + $_.e2dcws); //#24494 + $_.out = $_.out + 1; //#24494 + } //#24494 + for (var _Mi = 0, _Mj = $_.e3nb; _Mi < _Mj; _Mi++) { //#24501 + $k[$j++] = $geti($_.cws, $_.in, $_.e3dcws); //#24497 + $k[$j++] = $_.e3ecws; //#24497 + $k[$j++] = 256; //#24497 + $k[$j++] = 355; //#24497 + $_.rscodes(); //#24497 + var _Mp = $k[--$j]; //#24498 + $put($_.dcwsb, $_.out, $geti(_Mp, 0, $_.e3dcws)); //#24498 + $put($_.ecwsb, $_.out, $geti(_Mp, $_.e3dcws, $_.e3ecws)); //#24499 + $_.in = $f($_.in + $_.e3dcws); //#24500 + $_.out = $_.out + 1; //#24500 + } //#24500 + $_.cws = $a($_.ncws); //#24504 + $_.cw = 0; //#24505 + for (var _N6 = 0, _N5 = $_.dcwsb.length - 1; _N6 <= _N5; _N6 += 1) { //#24510 + $_.i = _N6; //#24507 + var _N9 = $get($_.dcwsb, $_.i); //#24508 + $puti($_.cws, $_.cw, _N9); //#24508 + $_.cw = _N9.length + $_.cw; //#24508 + var _NF = $get($_.ecwsb, $_.i); //#24509 + $puti($_.cws, $_.cw, _NF); //#24509 + $_.cw = _NF.length + $_.cw; //#24509 + } //#24509 + $k[$j++] = Infinity; //#24513 + var _NJ = $_.ncws; //#24514 + var _NK = 12; //#24514 + var _NL = _NJ - 1; //#24514 + if ((_NJ - 1) > 12) { //#24514 + var _ = _NK; //#24514 + _NK = _NL; //#24514 + _NL = _; //#24514 + } //#24514 + for (var _NN = 0, _NM = _NL; _NN <= _NM; _NN += 1) { //#24516 + for (var _NQ = _NN, _NP = $_.ncws - 1; _NQ <= _NP; _NQ += 13) { //#24515 + $k[$j++] = _NQ; //#24515 + if (_NQ < $_.ncws) { //#24515 + var _NU = $get($_.cws, $k[--$j]); //#24515 + $k[$j++] = _NU; //#24515 + } else { //#24515 + $j--; //#24515 + } //#24515 + } //#24515 + } //#24515 + $_.cws = $a(); //#24515 + if ($_.rbit > 0) { //#24525 + $_.pad = $a($_.cws.length + 1); //#24521 + $puti($_.pad, 0, $_.cws); //#24522 + $put($_.pad, $_.pad.length - 1, 0); //#24523 + $_.cws = $_.pad; //#24524 + } //#24524 + $k[$j++] = Infinity; //#24528 + for (var _Ng = 0, _Nh = $_.size * $_.size; _Ng < _Nh; _Ng++) { //#24528 + $k[$j++] = -1; //#24528 + } //#24528 + $_.pixs = $a(); //#24528 $_.qmv = function() { - var _Nk = $k[--$j]; //#24230 - var _Nl = $k[--$j]; //#24230 - $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24230 - }; //#24230 - if ($_.alnn != 0) { //#24289 + var _Nk = $k[--$j]; //#24529 + var _Nl = $k[--$j]; //#24529 + $k[$j++] = $f(_Nl + (_Nk * $_.size)); //#24529 + }; //#24529 + if ($_.alnn != 0) { //#24588 $_.trmv = function() { - var _No = $k[--$j]; //#24234 - var _Nq = $k[--$j]; //#24234 - $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24234 - }; //#24234 + var _No = $k[--$j]; //#24533 + var _Nq = $k[--$j]; //#24533 + $k[$j++] = $f(($f(($f((_No * $_.size) + $_.size)) - 1)) - _Nq); //#24533 + }; //#24533 $_.aplot = function() { - var _Nr = $k[--$j]; //#24236 - var _Ns = $k[--$j]; //#24236 - var _Nt = $k[--$j]; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Nt; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nr; //#24236 - $k[$j++] = _Ns; //#24236 - $k[$j++] = _Nt; //#24236 - $_.trmv(); //#24236 - var _Nv = $k[--$j]; //#24236 - $put($_.pixs, _Nv, $k[--$j]); //#24236 - $_.trmv(); //#24237 - var _Ny = $k[--$j]; //#24237 - $put($_.pixs, _Ny, $k[--$j]); //#24237 - }; //#24237 - $_.i = 0; //#24239 - $_.stag = 0; //#24239 - for (;;) { //#24261 - if ($_.i >= $_.size) { //#24240 - break; //#24240 - } //#24240 - for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24254 - $_.j = _O4; //#24242 - if ($f($_.j + $_.alnr) < $_.size) { //#24248 - $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24246 - } else { //#24248 - $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24248 - } //#24248 - if ($k[--$j]) { //#24253 - $k[$j++] = $_.j; //#24251 - $k[$j++] = $_.i; //#24251 - $k[$j++] = 1; //#24251 - $_.aplot(); //#24251 - var _OL = $_.j; //#24252 - var _OM = $_.i; //#24252 - $k[$j++] = _OL + 1; //#24252 - $k[$j++] = _OM + 1; //#24252 - if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24252 - $k[$j++] = 0; //#24252 - $_.aplot(); //#24252 - } else { //#24252 - $j -= 2; //#24252 - } //#24252 - } //#24252 - } //#24252 - if ($f($_.i + $_.alnr) == $_.size) { //#24258 - $_.i = $f($f($_.i + $_.alnr) - 1); //#24256 - } else { //#24258 - $_.i = $f($_.i + $_.alnk); //#24258 - } //#24258 - $_.stag = 1 - $_.stag; //#24260 - } //#24260 - for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24288 - $_.i = _Ob; //#24263 - if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24275 - $k[$j++] = $_.pixs; //#24265 - $k[$j++] = 0; //#24265 - $k[$j++] = $_.i - 1; //#24265 - $_.trmv(); //#24265 - var _Oh = $k[--$j]; //#24265 - $put($k[--$j], _Oh, 0); //#24265 - $k[$j++] = $_.pixs; //#24266 - $k[$j++] = 0; //#24266 - $k[$j++] = $_.i + 1; //#24266 - $_.trmv(); //#24266 - var _Ol = $k[--$j]; //#24266 - $put($k[--$j], _Ol, 0); //#24266 - $k[$j++] = $_.pixs; //#24267 - $k[$j++] = 1; //#24267 - $k[$j++] = $_.i - 1; //#24267 - $_.trmv(); //#24267 - var _Op = $k[--$j]; //#24267 - $put($k[--$j], _Op, 0); //#24267 - $k[$j++] = $_.pixs; //#24268 - $k[$j++] = 1; //#24268 - $k[$j++] = $_.i; //#24268 - $_.trmv(); //#24268 - var _Ot = $k[--$j]; //#24268 - $put($k[--$j], _Ot, 0); //#24268 - $k[$j++] = $_.pixs; //#24269 - $k[$j++] = 1; //#24269 - $k[$j++] = $_.i + 1; //#24269 - $_.trmv(); //#24269 - var _Ox = $k[--$j]; //#24269 - $put($k[--$j], _Ox, 0); //#24269 - $k[$j++] = $_.pixs; //#24270 - $k[$j++] = $_.i - 1; //#24270 - $k[$j++] = 0; //#24270 - $_.trmv(); //#24270 - var _P1 = $k[--$j]; //#24270 - $put($k[--$j], _P1, 0); //#24270 - $k[$j++] = $_.pixs; //#24271 - $k[$j++] = $_.i + 1; //#24271 - $k[$j++] = 0; //#24271 - $_.trmv(); //#24271 - var _P5 = $k[--$j]; //#24271 - $put($k[--$j], _P5, 0); //#24271 - $k[$j++] = $_.pixs; //#24272 - $k[$j++] = $_.i - 1; //#24272 - $k[$j++] = 1; //#24272 - $_.trmv(); //#24272 - var _P9 = $k[--$j]; //#24272 - $put($k[--$j], _P9, 0); //#24272 - $k[$j++] = $_.pixs; //#24273 - $k[$j++] = $_.i; //#24273 - $k[$j++] = 1; //#24273 - $_.trmv(); //#24273 - var _PD = $k[--$j]; //#24273 - $put($k[--$j], _PD, 0); //#24273 - $k[$j++] = $_.pixs; //#24274 - $k[$j++] = $_.i + 1; //#24274 - $k[$j++] = 1; //#24274 - $_.trmv(); //#24274 - var _PH = $k[--$j]; //#24274 - $put($k[--$j], _PH, 0); //#24274 - } //#24274 - $k[$j++] = $_.pixs; //#24276 - $k[$j++] = $f($_.size - 1); //#24276 - $k[$j++] = $_.i - 1; //#24276 - $_.trmv(); //#24276 - var _PM = $k[--$j]; //#24276 - if ($get($k[--$j], _PM) != 1) { //#24287 - $k[$j++] = $_.pixs; //#24277 - $k[$j++] = $f($_.size - 1); //#24277 - $k[$j++] = $_.i - 1; //#24277 - $_.trmv(); //#24277 - var _PS = $k[--$j]; //#24277 - $put($k[--$j], _PS, 0); //#24277 - $k[$j++] = $_.pixs; //#24278 - $k[$j++] = $f($_.size - 2); //#24278 - $k[$j++] = $_.i - 1; //#24278 - $_.trmv(); //#24278 - var _PX = $k[--$j]; //#24278 - $put($k[--$j], _PX, 0); //#24278 - $k[$j++] = $_.pixs; //#24279 - $k[$j++] = $f($_.size - 2); //#24279 - $k[$j++] = $_.i; //#24279 - $_.trmv(); //#24279 - var _Pc = $k[--$j]; //#24279 - $put($k[--$j], _Pc, 0); //#24279 - $k[$j++] = $_.pixs; //#24280 - $k[$j++] = $f($_.size - 2); //#24280 - $k[$j++] = $_.i + 1; //#24280 - $_.trmv(); //#24280 - var _Ph = $k[--$j]; //#24280 - $put($k[--$j], _Ph, 0); //#24280 - $k[$j++] = $_.pixs; //#24281 - $k[$j++] = $f($_.size - 1); //#24281 - $k[$j++] = $_.i + 1; //#24281 - $_.trmv(); //#24281 - var _Pm = $k[--$j]; //#24281 - $put($k[--$j], _Pm, 0); //#24281 - $k[$j++] = $_.pixs; //#24282 - $k[$j++] = $_.i - 1; //#24282 - $k[$j++] = $f($_.size - 1); //#24282 - $_.trmv(); //#24282 - var _Pr = $k[--$j]; //#24282 - $put($k[--$j], _Pr, 0); //#24282 - $k[$j++] = $_.pixs; //#24283 - $k[$j++] = $_.i - 1; //#24283 - $k[$j++] = $f($_.size - 2); //#24283 - $_.trmv(); //#24283 - var _Pw = $k[--$j]; //#24283 - $put($k[--$j], _Pw, 0); //#24283 - $k[$j++] = $_.pixs; //#24284 - $k[$j++] = $_.i; //#24284 - $k[$j++] = $f($_.size - 2); //#24284 - $_.trmv(); //#24284 - var _Q1 = $k[--$j]; //#24284 - $put($k[--$j], _Q1, 0); //#24284 - $k[$j++] = $_.pixs; //#24285 - $k[$j++] = $_.i + 1; //#24285 - $k[$j++] = $f($_.size - 2); //#24285 - $_.trmv(); //#24285 - var _Q6 = $k[--$j]; //#24285 - $put($k[--$j], _Q6, 0); //#24285 - $k[$j++] = $_.pixs; //#24286 - $k[$j++] = $_.i + 1; //#24286 - $k[$j++] = $f($_.size - 1); //#24286 - $_.trmv(); //#24286 - var _QB = $k[--$j]; //#24286 - $put($k[--$j], _QB, 0); //#24286 - } //#24286 - } //#24286 - } //#24286 - if (!bwipp_hanxin.__24313__) { //#24313 - $_ = Object.create($_); //#24313 - $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24302 - $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24312 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24312 - bwipp_hanxin.__24313__ = 1; //#24312 - $_ = Object.getPrototypeOf($_); //#24312 - } //#24312 - for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24325 - $_.y = _QY; //#24315 - for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24324 - $_.x = _Qc; //#24317 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24318 - $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24319 - $k[$j++] = $_.pixs; //#24320 - $k[$j++] = $_.x; //#24320 - $k[$j++] = $_.y; //#24320 - $_.qmv(); //#24320 - var _Qr = $k[--$j]; //#24320 - $put($k[--$j], _Qr, $_.fpb); //#24320 - $k[$j++] = $_.pixs; //#24321 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24321 - $k[$j++] = $_.y; //#24321 - $_.qmv(); //#24321 - var _Qy = $k[--$j]; //#24321 - $put($k[--$j], _Qy, $_.fpb); //#24321 - $k[$j++] = $_.pixs; //#24322 - $k[$j++] = $f($f($_.size - $_.x) - 1); //#24322 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24322 - $_.qmv(); //#24322 - var _R6 = $k[--$j]; //#24322 - $put($k[--$j], _R6, $_.fpb); //#24322 - $k[$j++] = $_.pixs; //#24323 - $k[$j++] = $_.x; //#24323 - $k[$j++] = $f($f($_.size - $_.y) - 1); //#24323 - $_.qmv(); //#24323 - var _RD = $k[--$j]; //#24323 - $put($k[--$j], _RD, $_.fpb2); //#24323 - } //#24323 - } //#24323 - $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24347 - var _U0 = $_.functionmap; //#24348 - for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24350 - $forall($get(_U0, _U1), function() { //#24349 - $forall($k[--$j]); //#24349 - $_.qmv(); //#24349 - $put($_.pixs, $k[--$j], 0); //#24349 - }); //#24349 - } //#24349 + var _Nr = $k[--$j]; //#24535 + var _Ns = $k[--$j]; //#24535 + var _Nt = $k[--$j]; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Nt; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nr; //#24535 + $k[$j++] = _Ns; //#24535 + $k[$j++] = _Nt; //#24535 + $_.trmv(); //#24535 + var _Nv = $k[--$j]; //#24535 + $put($_.pixs, _Nv, $k[--$j]); //#24535 + $_.trmv(); //#24536 + var _Ny = $k[--$j]; //#24536 + $put($_.pixs, _Ny, $k[--$j]); //#24536 + }; //#24536 + $_.i = 0; //#24538 + $_.stag = 0; //#24538 + for (;;) { //#24560 + if ($_.i >= $_.size) { //#24539 + break; //#24539 + } //#24539 + for (var _O4 = 0, _O3 = $f($_.size - 1); _O4 <= _O3; _O4 += 1) { //#24553 + $_.j = _O4; //#24541 + if ($f($_.j + $_.alnr) < $_.size) { //#24547 + $k[$j++] = (((((~~($_.j / $_.alnk)) + $_.stag) % 2) == 0) && (!(($_.i == 0) && ($_.j < $_.alnk)))) || (($_.j % $_.alnk) == 0); //#24545 + } else { //#24547 + $k[$j++] = ($f($_.alnn + $_.stag) % 2) == 0; //#24547 + } //#24547 + if ($k[--$j]) { //#24552 + $k[$j++] = $_.j; //#24550 + $k[$j++] = $_.i; //#24550 + $k[$j++] = 1; //#24550 + $_.aplot(); //#24550 + var _OL = $_.j; //#24551 + var _OM = $_.i; //#24551 + $k[$j++] = _OL + 1; //#24551 + $k[$j++] = _OM + 1; //#24551 + if (((_OM + 1) < $_.size) && ((_OL + 1) < $_.size)) { //#24551 + $k[$j++] = 0; //#24551 + $_.aplot(); //#24551 + } else { //#24551 + $j -= 2; //#24551 + } //#24551 + } //#24551 + } //#24551 + if ($f($_.i + $_.alnr) == $_.size) { //#24557 + $_.i = $f($f($_.i + $_.alnr) - 1); //#24555 + } else { //#24557 + $_.i = $f($_.i + $_.alnk); //#24557 + } //#24557 + $_.stag = 1 - $_.stag; //#24559 + } //#24559 + for (var _Ob = $_.alnk, _Oc = $_.alnk, _Oa = $f($_.size - 2); _Oc < 0 ? _Ob >= _Oa : _Ob <= _Oa; _Ob += _Oc) { //#24587 + $_.i = _Ob; //#24562 + if (((~~($_.i / $_.alnk)) % 2) != 0) { //#24574 + $k[$j++] = $_.pixs; //#24564 + $k[$j++] = 0; //#24564 + $k[$j++] = $_.i - 1; //#24564 + $_.trmv(); //#24564 + var _Oh = $k[--$j]; //#24564 + $put($k[--$j], _Oh, 0); //#24564 + $k[$j++] = $_.pixs; //#24565 + $k[$j++] = 0; //#24565 + $k[$j++] = $_.i + 1; //#24565 + $_.trmv(); //#24565 + var _Ol = $k[--$j]; //#24565 + $put($k[--$j], _Ol, 0); //#24565 + $k[$j++] = $_.pixs; //#24566 + $k[$j++] = 1; //#24566 + $k[$j++] = $_.i - 1; //#24566 + $_.trmv(); //#24566 + var _Op = $k[--$j]; //#24566 + $put($k[--$j], _Op, 0); //#24566 + $k[$j++] = $_.pixs; //#24567 + $k[$j++] = 1; //#24567 + $k[$j++] = $_.i; //#24567 + $_.trmv(); //#24567 + var _Ot = $k[--$j]; //#24567 + $put($k[--$j], _Ot, 0); //#24567 + $k[$j++] = $_.pixs; //#24568 + $k[$j++] = 1; //#24568 + $k[$j++] = $_.i + 1; //#24568 + $_.trmv(); //#24568 + var _Ox = $k[--$j]; //#24568 + $put($k[--$j], _Ox, 0); //#24568 + $k[$j++] = $_.pixs; //#24569 + $k[$j++] = $_.i - 1; //#24569 + $k[$j++] = 0; //#24569 + $_.trmv(); //#24569 + var _P1 = $k[--$j]; //#24569 + $put($k[--$j], _P1, 0); //#24569 + $k[$j++] = $_.pixs; //#24570 + $k[$j++] = $_.i + 1; //#24570 + $k[$j++] = 0; //#24570 + $_.trmv(); //#24570 + var _P5 = $k[--$j]; //#24570 + $put($k[--$j], _P5, 0); //#24570 + $k[$j++] = $_.pixs; //#24571 + $k[$j++] = $_.i - 1; //#24571 + $k[$j++] = 1; //#24571 + $_.trmv(); //#24571 + var _P9 = $k[--$j]; //#24571 + $put($k[--$j], _P9, 0); //#24571 + $k[$j++] = $_.pixs; //#24572 + $k[$j++] = $_.i; //#24572 + $k[$j++] = 1; //#24572 + $_.trmv(); //#24572 + var _PD = $k[--$j]; //#24572 + $put($k[--$j], _PD, 0); //#24572 + $k[$j++] = $_.pixs; //#24573 + $k[$j++] = $_.i + 1; //#24573 + $k[$j++] = 1; //#24573 + $_.trmv(); //#24573 + var _PH = $k[--$j]; //#24573 + $put($k[--$j], _PH, 0); //#24573 + } //#24573 + $k[$j++] = $_.pixs; //#24575 + $k[$j++] = $f($_.size - 1); //#24575 + $k[$j++] = $_.i - 1; //#24575 + $_.trmv(); //#24575 + var _PM = $k[--$j]; //#24575 + if ($get($k[--$j], _PM) != 1) { //#24586 + $k[$j++] = $_.pixs; //#24576 + $k[$j++] = $f($_.size - 1); //#24576 + $k[$j++] = $_.i - 1; //#24576 + $_.trmv(); //#24576 + var _PS = $k[--$j]; //#24576 + $put($k[--$j], _PS, 0); //#24576 + $k[$j++] = $_.pixs; //#24577 + $k[$j++] = $f($_.size - 2); //#24577 + $k[$j++] = $_.i - 1; //#24577 + $_.trmv(); //#24577 + var _PX = $k[--$j]; //#24577 + $put($k[--$j], _PX, 0); //#24577 + $k[$j++] = $_.pixs; //#24578 + $k[$j++] = $f($_.size - 2); //#24578 + $k[$j++] = $_.i; //#24578 + $_.trmv(); //#24578 + var _Pc = $k[--$j]; //#24578 + $put($k[--$j], _Pc, 0); //#24578 + $k[$j++] = $_.pixs; //#24579 + $k[$j++] = $f($_.size - 2); //#24579 + $k[$j++] = $_.i + 1; //#24579 + $_.trmv(); //#24579 + var _Ph = $k[--$j]; //#24579 + $put($k[--$j], _Ph, 0); //#24579 + $k[$j++] = $_.pixs; //#24580 + $k[$j++] = $f($_.size - 1); //#24580 + $k[$j++] = $_.i + 1; //#24580 + $_.trmv(); //#24580 + var _Pm = $k[--$j]; //#24580 + $put($k[--$j], _Pm, 0); //#24580 + $k[$j++] = $_.pixs; //#24581 + $k[$j++] = $_.i - 1; //#24581 + $k[$j++] = $f($_.size - 1); //#24581 + $_.trmv(); //#24581 + var _Pr = $k[--$j]; //#24581 + $put($k[--$j], _Pr, 0); //#24581 + $k[$j++] = $_.pixs; //#24582 + $k[$j++] = $_.i - 1; //#24582 + $k[$j++] = $f($_.size - 2); //#24582 + $_.trmv(); //#24582 + var _Pw = $k[--$j]; //#24582 + $put($k[--$j], _Pw, 0); //#24582 + $k[$j++] = $_.pixs; //#24583 + $k[$j++] = $_.i; //#24583 + $k[$j++] = $f($_.size - 2); //#24583 + $_.trmv(); //#24583 + var _Q1 = $k[--$j]; //#24583 + $put($k[--$j], _Q1, 0); //#24583 + $k[$j++] = $_.pixs; //#24584 + $k[$j++] = $_.i + 1; //#24584 + $k[$j++] = $f($_.size - 2); //#24584 + $_.trmv(); //#24584 + var _Q6 = $k[--$j]; //#24584 + $put($k[--$j], _Q6, 0); //#24584 + $k[$j++] = $_.pixs; //#24585 + $k[$j++] = $_.i + 1; //#24585 + $k[$j++] = $f($_.size - 1); //#24585 + $_.trmv(); //#24585 + var _QB = $k[--$j]; //#24585 + $put($k[--$j], _QB, 0); //#24585 + } //#24585 + } //#24585 + } //#24585 + if (!bwipp_hanxin.__24612__) { //#24612 + $_ = Object.create($_); //#24612 + $_.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24601 + $_.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#24611 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hanxin.$ctx[id] = $_[id]); //#24611 + bwipp_hanxin.__24612__ = 1; //#24611 + $_ = Object.getPrototypeOf($_); //#24611 + } //#24611 + for (var _QY = 0, _QX = $_.fpat.length - 1; _QY <= _QX; _QY += 1) { //#24624 + $_.y = _QY; //#24614 + for (var _Qc = 0, _Qb = $get($_.fpat, 0).length - 1; _Qc <= _Qb; _Qc += 1) { //#24623 + $_.x = _Qc; //#24616 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#24617 + $_.fpb2 = $get($get($_.fpat2, $_.y), $_.x); //#24618 + $k[$j++] = $_.pixs; //#24619 + $k[$j++] = $_.x; //#24619 + $k[$j++] = $_.y; //#24619 + $_.qmv(); //#24619 + var _Qr = $k[--$j]; //#24619 + $put($k[--$j], _Qr, $_.fpb); //#24619 + $k[$j++] = $_.pixs; //#24620 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24620 + $k[$j++] = $_.y; //#24620 + $_.qmv(); //#24620 + var _Qy = $k[--$j]; //#24620 + $put($k[--$j], _Qy, $_.fpb); //#24620 + $k[$j++] = $_.pixs; //#24621 + $k[$j++] = $f($f($_.size - $_.x) - 1); //#24621 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24621 + $_.qmv(); //#24621 + var _R6 = $k[--$j]; //#24621 + $put($k[--$j], _R6, $_.fpb); //#24621 + $k[$j++] = $_.pixs; //#24622 + $k[$j++] = $_.x; //#24622 + $k[$j++] = $f($f($_.size - $_.y) - 1); //#24622 + $_.qmv(); //#24622 + var _RD = $k[--$j]; //#24622 + $put($k[--$j], _RD, $_.fpb2); //#24622 + } //#24622 + } //#24622 + $_.functionmap = $a([$a([$a([0, 8]), $a([$f($_.size - 1), $f($_.size - 9)])]), $a([$a([1, 8]), $a([$f($_.size - 2), $f($_.size - 9)])]), $a([$a([2, 8]), $a([$f($_.size - 3), $f($_.size - 9)])]), $a([$a([3, 8]), $a([$f($_.size - 4), $f($_.size - 9)])]), $a([$a([4, 8]), $a([$f($_.size - 5), $f($_.size - 9)])]), $a([$a([5, 8]), $a([$f($_.size - 6), $f($_.size - 9)])]), $a([$a([6, 8]), $a([$f($_.size - 7), $f($_.size - 9)])]), $a([$a([7, 8]), $a([$f($_.size - 8), $f($_.size - 9)])]), $a([$a([8, 8]), $a([$f($_.size - 9), $f($_.size - 9)])]), $a([$a([8, 7]), $a([$f($_.size - 9), $f($_.size - 8)])]), $a([$a([8, 6]), $a([$f($_.size - 9), $f($_.size - 7)])]), $a([$a([8, 5]), $a([$f($_.size - 9), $f($_.size - 6)])]), $a([$a([8, 4]), $a([$f($_.size - 9), $f($_.size - 5)])]), $a([$a([8, 3]), $a([$f($_.size - 9), $f($_.size - 4)])]), $a([$a([8, 2]), $a([$f($_.size - 9), $f($_.size - 3)])]), $a([$a([8, 1]), $a([$f($_.size - 9), $f($_.size - 2)])]), $a([$a([8, 0]), $a([$f($_.size - 9), $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 0]), $a([8, $f($_.size - 1)])]), $a([$a([$f($_.size - 9), 1]), $a([8, $f($_.size - 2)])]), $a([$a([$f($_.size - 9), 2]), $a([8, $f($_.size - 3)])]), $a([$a([$f($_.size - 9), 3]), $a([8, $f($_.size - 4)])]), $a([$a([$f($_.size - 9), 4]), $a([8, $f($_.size - 5)])]), $a([$a([$f($_.size - 9), 5]), $a([8, $f($_.size - 6)])]), $a([$a([$f($_.size - 9), 6]), $a([8, $f($_.size - 7)])]), $a([$a([$f($_.size - 9), 7]), $a([8, $f($_.size - 8)])]), $a([$a([$f($_.size - 9), 8]), $a([8, $f($_.size - 9)])]), $a([$a([$f($_.size - 8), 8]), $a([7, $f($_.size - 9)])]), $a([$a([$f($_.size - 7), 8]), $a([6, $f($_.size - 9)])]), $a([$a([$f($_.size - 6), 8]), $a([5, $f($_.size - 9)])]), $a([$a([$f($_.size - 5), 8]), $a([4, $f($_.size - 9)])]), $a([$a([$f($_.size - 4), 8]), $a([3, $f($_.size - 9)])]), $a([$a([$f($_.size - 3), 8]), $a([2, $f($_.size - 9)])]), $a([$a([$f($_.size - 2), 8]), $a([1, $f($_.size - 9)])]), $a([$a([$f($_.size - 1), 8]), $a([0, $f($_.size - 9)])])]); //#24646 + var _U0 = $_.functionmap; //#24647 + for (var _U1 = 0, _U2 = _U0.length; _U1 < _U2; _U1++) { //#24649 + $forall($get(_U0, _U1), function() { //#24648 + $forall($k[--$j]); //#24648 + $_.qmv(); //#24648 + $put($_.pixs, $k[--$j], 0); //#24648 + }); //#24648 + } //#24648 var _UD = $a([function() { - $j -= 2; //#24353 - $k[$j++] = 1; //#24353 + $j -= 2; //#24652 + $k[$j++] = 1; //#24652 }, function() { - var _U7 = $k[--$j]; //#24354 - var _U8 = $k[--$j]; //#24354 - $k[$j++] = $f(_U8 + _U7) % 2; //#24354 + var _U7 = $k[--$j]; //#24653 + var _U8 = $k[--$j]; //#24653 + $k[$j++] = $f(_U8 + _U7) % 2; //#24653 }, function() { - var _U9 = $k[--$j]; //#24355 - var _UA = $k[--$j]; //#24355 - $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24355 + var _U9 = $k[--$j]; //#24654 + var _UA = $k[--$j]; //#24654 + $k[$j++] = ($f(($f(_U9 + _UA) % 3) + (_UA % 3))) % 2; //#24654 }, function() { - var _UB = $k[--$j]; //#24356 - var _UC = $k[--$j]; //#24356 - $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24357 - }]); //#24357 - $_.maskfuncs = _UD; //#24358 - if ($_.mask != -1) { //#24362 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24360 - $_.bestmaskval = $_.mask - 1; //#24361 - } //#24361 - $_.masks = $a($_.maskfuncs.length); //#24363 - for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24377 - $_.m = _UO; //#24365 - $_.mask = $a($_.size * $_.size); //#24366 - for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24375 - $_.j = _UU; //#24368 - for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24374 - $_.i = _UX; //#24370 - $k[$j++] = $_.i + 1; //#24371 - $k[$j++] = $_.j + 1; //#24371 + var _UB = $k[--$j]; //#24655 + var _UC = $k[--$j]; //#24655 + $k[$j++] = ($f((_UC % _UB) + ($f((_UB % _UC) + ($f((_UB % 3) + (_UC % 3))))))) % 2; //#24656 + }]); //#24656 + $_.maskfuncs = _UD; //#24657 + if ($_.mask != -1) { //#24661 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask - 1)]); //#24659 + $_.bestmaskval = $_.mask - 1; //#24660 + } //#24660 + $_.masks = $a($_.maskfuncs.length); //#24662 + for (var _UO = 0, _UN = $_.masks.length - 1; _UO <= _UN; _UO += 1) { //#24676 + $_.m = _UO; //#24664 + $_.mask = $a($_.size * $_.size); //#24665 + for (var _UU = 0, _UT = $f($_.size - 1); _UU <= _UT; _UU += 1) { //#24674 + $_.j = _UU; //#24667 + for (var _UX = 0, _UW = $f($_.size - 1); _UX <= _UW; _UX += 1) { //#24673 + $_.i = _UX; //#24669 + $k[$j++] = $_.i + 1; //#24670 + $k[$j++] = $_.j + 1; //#24670 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#24371 - var _Ud = $k[--$j]; //#24371 - $k[$j++] = _Ud == 0; //#24372 - $k[$j++] = $_.pixs; //#24372 - $k[$j++] = $_.i; //#24372 - $k[$j++] = $_.j; //#24372 - $_.qmv(); //#24372 - var _Uh = $k[--$j]; //#24372 - var _Uj = $get($k[--$j], _Uh); //#24372 - var _Uk = $k[--$j]; //#24372 - var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24372 - $k[$j++] = _Ul; //#24373 - $k[$j++] = $_.mask; //#24373 - $k[$j++] = $_.i; //#24373 - $k[$j++] = $_.j; //#24373 - $_.qmv(); //#24373 - var _Up = $k[--$j]; //#24373 - var _Uq = $k[--$j]; //#24373 - $put(_Uq, _Up, $k[--$j]); //#24373 - } //#24373 - } //#24373 - $put($_.masks, $_.m, $_.mask); //#24376 - } //#24376 - $_.posx = 0; //#24380 - $_.posy = 0; //#24381 - $_.num = 0; //#24382 - for (;;) { //#24392 - if ($_.posy == $_.size) { //#24384 - break; //#24384 - } //#24384 - $k[$j++] = $_.pixs; //#24385 - $k[$j++] = $_.posx; //#24385 - $k[$j++] = $_.posy; //#24385 - $_.qmv(); //#24385 - var _V0 = $k[--$j]; //#24385 - if ($get($k[--$j], _V0) == -1) { //#24389 - var _V5 = $get($_.cws, ~~($_.num / 8)); //#24386 - var _V7 = -(7 - ($_.num % 8)); //#24386 - $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24387 - $k[$j++] = $_.pixs; //#24387 - $k[$j++] = $_.posx; //#24387 - $k[$j++] = $_.posy; //#24387 - $_.qmv(); //#24387 - var _VB = $k[--$j]; //#24387 - var _VC = $k[--$j]; //#24387 - $put(_VC, _VB, $k[--$j]); //#24387 - $_.num = $_.num + 1; //#24388 - } //#24388 - $_.posx = $_.posx + 1; //#24390 - if ($_.posx == $_.size) { //#24391 - $_.posx = 0; //#24391 - $_.posy = $_.posy + 1; //#24391 - } //#24391 - } //#24391 + } //#24670 + var _Ud = $k[--$j]; //#24670 + $k[$j++] = _Ud == 0; //#24671 + $k[$j++] = $_.pixs; //#24671 + $k[$j++] = $_.i; //#24671 + $k[$j++] = $_.j; //#24671 + $_.qmv(); //#24671 + var _Uh = $k[--$j]; //#24671 + var _Uj = $get($k[--$j], _Uh); //#24671 + var _Uk = $k[--$j]; //#24671 + var _Ul = (_Uk && (_Uj == -1)) ? 1 : 0; //#24671 + $k[$j++] = _Ul; //#24672 + $k[$j++] = $_.mask; //#24672 + $k[$j++] = $_.i; //#24672 + $k[$j++] = $_.j; //#24672 + $_.qmv(); //#24672 + var _Up = $k[--$j]; //#24672 + var _Uq = $k[--$j]; //#24672 + $put(_Uq, _Up, $k[--$j]); //#24672 + } //#24672 + } //#24672 + $put($_.masks, $_.m, $_.mask); //#24675 + } //#24675 + $_.posx = 0; //#24679 + $_.posy = 0; //#24680 + $_.num = 0; //#24681 + for (;;) { //#24691 + if ($_.posy == $_.size) { //#24683 + break; //#24683 + } //#24683 + $k[$j++] = $_.pixs; //#24684 + $k[$j++] = $_.posx; //#24684 + $k[$j++] = $_.posy; //#24684 + $_.qmv(); //#24684 + var _V0 = $k[--$j]; //#24684 + if ($get($k[--$j], _V0) == -1) { //#24688 + var _V5 = $get($_.cws, ~~($_.num / 8)); //#24685 + var _V7 = -(7 - ($_.num % 8)); //#24685 + $k[$j++] = ((_V7 < 0 ? _V5 >>> -_V7 : _V5 << _V7)) & 1; //#24686 + $k[$j++] = $_.pixs; //#24686 + $k[$j++] = $_.posx; //#24686 + $k[$j++] = $_.posy; //#24686 + $_.qmv(); //#24686 + var _VB = $k[--$j]; //#24686 + var _VC = $k[--$j]; //#24686 + $put(_VC, _VB, $k[--$j]); //#24686 + $_.num = $_.num + 1; //#24687 + } //#24687 + $_.posx = $_.posx + 1; //#24689 + if ($_.posx == $_.size) { //#24690 + $_.posx = 0; //#24690 + $_.posy = $_.posy + 1; //#24690 + } //#24690 + } //#24690 $_.evalfulln1n3 = function() { - $_.scrle = $k[--$j]; //#24396 - $k[$j++] = 'scr1'; //#24398 - $k[$j++] = 0; //#24398 - $forall($_.scrle, function() { //#24398 - var _VL = $k[--$j]; //#24398 - $k[$j++] = _VL; //#24398 - if (_VL >= 3) { //#24398 - var _VM = $k[--$j]; //#24398 - var _VO = $f($k[--$j] + (_VM * 4)); //#24398 - $k[$j++] = _VO; //#24398 - $k[$j++] = _VO; //#24398 - } //#24398 - $j--; //#24398 - }); //#24398 - var _VP = $k[--$j]; //#24398 - $_[$k[--$j]] = _VP; //#24398 - $_.scr3 = 0; //#24399 - for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24415 - $_.j = _VT; //#24402 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24414 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24404 - var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24405 - for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24405 - $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24405 - } //#24405 - var _Vh = $k[--$j]; //#24405 - var _Vi = $k[--$j]; //#24405 - var _Vj = $k[--$j]; //#24405 - var _Vk = $k[--$j]; //#24405 - if (_Vk && (_Vj && (_Vi && _Vh))) { //#24413 - if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24410 - $_.scr3 = $_.scr3 + 50; //#24407 - } else { //#24410 - if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24411 - $_.scr3 = $_.scr3 + 50; //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - } //#24410 - for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24431 - $_.j = _Vy; //#24418 - if (($get($_.scrle, $_.j) % 3) == 0) { //#24430 - $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24420 - var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24421 - for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24421 - $k[$j++] = $get(_W7, _W8) == $_.fact; //#24421 - } //#24421 - var _WC = $k[--$j]; //#24421 - var _WD = $k[--$j]; //#24421 - var _WE = $k[--$j]; //#24421 - var _WF = $k[--$j]; //#24421 - if (_WF && (_WE && (_WD && _WC))) { //#24429 - if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24426 - $_.scr3 = $_.scr3 + 50; //#24423 - } else { //#24426 - if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24427 - $_.scr3 = $_.scr3 + 50; //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - } //#24426 - $k[$j++] = $_.scr1; //#24432 - $k[$j++] = $_.scr3; //#24432 - }; //#24432 + $_.scrle = $k[--$j]; //#24695 + $k[$j++] = 'scr1'; //#24697 + $k[$j++] = 0; //#24697 + $forall($_.scrle, function() { //#24697 + var _VL = $k[--$j]; //#24697 + $k[$j++] = _VL; //#24697 + if (_VL >= 3) { //#24697 + var _VM = $k[--$j]; //#24697 + var _VO = $f($k[--$j] + (_VM * 4)); //#24697 + $k[$j++] = _VO; //#24697 + $k[$j++] = _VO; //#24697 + } //#24697 + $j--; //#24697 + }); //#24697 + var _VP = $k[--$j]; //#24697 + $_[$k[--$j]] = _VP; //#24697 + $_.scr3 = 0; //#24698 + for (var _VT = 5, _VS = $_.scrle.length - 1; _VT <= _VS; _VT += 2) { //#24714 + $_.j = _VT; //#24701 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24713 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24703 + var _Vc = $geti($_.scrle, $_.j - 4, 4); //#24704 + for (var _Vd = 0, _Ve = _Vc.length; _Vd < _Ve; _Vd++) { //#24704 + $k[$j++] = $get(_Vc, _Vd) == $_.fact; //#24704 + } //#24704 + var _Vh = $k[--$j]; //#24704 + var _Vi = $k[--$j]; //#24704 + var _Vj = $k[--$j]; //#24704 + var _Vk = $k[--$j]; //#24704 + if (_Vk && (_Vj && (_Vi && _Vh))) { //#24712 + if (($_.j == 5) || (($_.j + 2) >= $_.scrle.length)) { //#24709 + $_.scr3 = $_.scr3 + 50; //#24706 + } else { //#24709 + if (($get($_.scrle, $_.j - 5) >= 3) || ($get($_.scrle, $_.j + 1) >= 3)) { //#24710 + $_.scr3 = $_.scr3 + 50; //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + } //#24709 + for (var _Vy = 1, _Vx = $_.scrle.length - 5; _Vy <= _Vx; _Vy += 2) { //#24730 + $_.j = _Vy; //#24717 + if (($get($_.scrle, $_.j) % 3) == 0) { //#24729 + $_.fact = ~~($get($_.scrle, $_.j) / 3); //#24719 + var _W7 = $geti($_.scrle, $_.j + 1, 4); //#24720 + for (var _W8 = 0, _W9 = _W7.length; _W8 < _W9; _W8++) { //#24720 + $k[$j++] = $get(_W7, _W8) == $_.fact; //#24720 + } //#24720 + var _WC = $k[--$j]; //#24720 + var _WD = $k[--$j]; //#24720 + var _WE = $k[--$j]; //#24720 + var _WF = $k[--$j]; //#24720 + if (_WF && (_WE && (_WD && _WC))) { //#24728 + if (($_.j == 1) || (($_.j + 6) >= $_.scrle.length)) { //#24725 + $_.scr3 = $_.scr3 + 50; //#24722 + } else { //#24725 + if (($get($_.scrle, $_.j - 1) >= 3) || ($get($_.scrle, $_.j + 5) >= 3)) { //#24726 + $_.scr3 = $_.scr3 + 50; //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + } //#24725 + $k[$j++] = $_.scr1; //#24731 + $k[$j++] = $_.scr3; //#24731 + }; //#24731 $_.evalfull = function() { - $_.sym = $k[--$j]; //#24437 - $_.n1 = 0; //#24439 - $_.n3 = 0; //#24439 - $_.rle = $a($f($_.size + 1)); //#24440 - $_.lastpairs = $a($_.size); //#24441 - $_.thispairs = $a($_.size); //#24442 - $_.sizeadd1 = $f($_.size + 1); //#24443 - for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24468 - $_.i = _Wd; //#24445 - $k[$j++] = Infinity; //#24448 - var _Wf = $_.size; //#24449 - $k[$j++] = 0; //#24451 - $k[$j++] = 0; //#24451 - for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24451 - var _Wk = $get($_.sym, _Wh); //#24450 - var _Wl = $k[--$j]; //#24450 - $k[$j++] = _Wk; //#24450 - if ($eq(_Wl, _Wk)) { //#24450 - var _Wm = $k[--$j]; //#24450 - var _Wn = $k[--$j]; //#24450 - $k[$j++] = $f(_Wn + 1); //#24450 - $k[$j++] = _Wm; //#24450 - } else { //#24450 - var _Wo = $k[--$j]; //#24450 - $k[$j++] = 1; //#24450 - $k[$j++] = _Wo; //#24450 - } //#24450 - } //#24450 - $j--; //#24452 - var _Wq = $counttomark() + 2; //#24453 - $astore($geti($_.rle, 0, _Wq - 2)); //#24453 - $_.evalfulln1n3(); //#24454 - $_.n3 = $f($k[--$j] + $_.n3); //#24454 - $_.n1 = $f($k[--$j] + $_.n1); //#24454 - $j--; //#24455 - $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24458 - $k[$j++] = Infinity; //#24459 - var _X1 = $_.symrow; //#24460 - $k[$j++] = 0; //#24462 - $k[$j++] = 0; //#24462 - for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24462 - var _X4 = $get(_X1, _X2); //#24462 - var _X5 = $k[--$j]; //#24461 - $k[$j++] = _X4; //#24461 - if ($eq(_X5, _X4)) { //#24461 - var _X6 = $k[--$j]; //#24461 - var _X7 = $k[--$j]; //#24461 - $k[$j++] = $f(_X7 + 1); //#24461 - $k[$j++] = _X6; //#24461 - } else { //#24461 - var _X8 = $k[--$j]; //#24461 - $k[$j++] = 1; //#24461 - $k[$j++] = _X8; //#24461 - } //#24461 - } //#24461 - $j--; //#24463 - var _XA = $counttomark() + 2; //#24464 - $astore($geti($_.rle, 0, _XA - 2)); //#24464 - $_.evalfulln1n3(); //#24465 - $_.n3 = $f($k[--$j] + $_.n3); //#24465 - $_.n1 = $f($k[--$j] + $_.n1); //#24465 - $j--; //#24466 - } //#24466 - $k[$j++] = $f($_.n1 + $_.n3); //#24470 - }; //#24470 - $_.bestscore = 999999999; //#24474 - for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24492 - $_.m = _XK; //#24476 - $_.masksym = $a($_.size * $_.size); //#24477 - for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24481 - $_.i = _XR; //#24479 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24480 - } //#24480 - if ($_.masks.length != 1) { //#24490 - $k[$j++] = $_.masksym; //#24483 - $_.evalfull(); //#24483 - $_.score = $k[--$j]; //#24483 - if ($_.score < $_.bestscore) { //#24488 - $_.bestsym = $_.masksym; //#24485 - $_.bestmaskval = $_.m; //#24486 - $_.bestscore = $_.score; //#24487 - } //#24487 - } else { //#24490 - $_.bestsym = $_.masksym; //#24490 - } //#24490 - } //#24490 - $_.pixs = $_.bestsym; //#24493 - $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24496 - $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24500 - $k[$j++] = 4; //#24500 - $k[$j++] = 16; //#24500 - $k[$j++] = 19; //#24500 - $_.rscodes(); //#24500 - $_.funvals = $k[--$j]; //#24500 - $k[$j++] = Infinity; //#24505 - $forall($_.funvals, function() { //#24504 - $k[$j++] = 4; //#24503 - $_.tobin(); //#24503 - $forall($k[--$j], function() { //#24503 - var _Xw = $k[--$j]; //#24503 - $k[$j++] = $f(_Xw - 48); //#24503 - }); //#24503 - }); //#24503 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $k[$j++] = 0; //#24505 - $k[$j++] = 1; //#24505 - $_.funbits = $a(); //#24505 - for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24512 - $_.i = _Y0; //#24508 - $forall($get($_.functionmap, $_.i), function() { //#24511 - var _Y5 = $k[--$j]; //#24510 - $k[$j++] = $_.pixs; //#24510 - $aload(_Y5); //#24510 - $_.qmv(); //#24510 - var _Y9 = $k[--$j]; //#24510 - $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24510 - }); //#24510 - } //#24510 + $_.sym = $k[--$j]; //#24736 + $_.n1 = 0; //#24738 + $_.n3 = 0; //#24738 + $_.rle = $a($f($_.size + 1)); //#24739 + $_.lastpairs = $a($_.size); //#24740 + $_.thispairs = $a($_.size); //#24741 + $_.sizeadd1 = $f($_.size + 1); //#24742 + for (var _Wd = 0, _Wc = $f($_.size - 1); _Wd <= _Wc; _Wd += 1) { //#24767 + $_.i = _Wd; //#24744 + $k[$j++] = Infinity; //#24747 + var _Wf = $_.size; //#24748 + $k[$j++] = 0; //#24750 + $k[$j++] = 0; //#24750 + for (var _Wh = $_.i, _Wi = _Wf, _Wg = $f((_Wf * _Wf) - 1); _Wi < 0 ? _Wh >= _Wg : _Wh <= _Wg; _Wh += _Wi) { //#24750 + var _Wk = $get($_.sym, _Wh); //#24749 + var _Wl = $k[--$j]; //#24749 + $k[$j++] = _Wk; //#24749 + if ($eq(_Wl, _Wk)) { //#24749 + var _Wm = $k[--$j]; //#24749 + var _Wn = $k[--$j]; //#24749 + $k[$j++] = $f(_Wn + 1); //#24749 + $k[$j++] = _Wm; //#24749 + } else { //#24749 + var _Wo = $k[--$j]; //#24749 + $k[$j++] = 1; //#24749 + $k[$j++] = _Wo; //#24749 + } //#24749 + } //#24749 + $j--; //#24751 + var _Wq = $counttomark() + 2; //#24752 + $astore($geti($_.rle, 0, _Wq - 2)); //#24752 + $_.evalfulln1n3(); //#24753 + $_.n3 = $f($k[--$j] + $_.n3); //#24753 + $_.n1 = $f($k[--$j] + $_.n1); //#24753 + $j--; //#24754 + $_.symrow = $geti($_.sym, $_.i * $_.size, $_.size); //#24757 + $k[$j++] = Infinity; //#24758 + var _X1 = $_.symrow; //#24759 + $k[$j++] = 0; //#24761 + $k[$j++] = 0; //#24761 + for (var _X2 = 0, _X3 = _X1.length; _X2 < _X3; _X2++) { //#24761 + var _X4 = $get(_X1, _X2); //#24761 + var _X5 = $k[--$j]; //#24760 + $k[$j++] = _X4; //#24760 + if ($eq(_X5, _X4)) { //#24760 + var _X6 = $k[--$j]; //#24760 + var _X7 = $k[--$j]; //#24760 + $k[$j++] = $f(_X7 + 1); //#24760 + $k[$j++] = _X6; //#24760 + } else { //#24760 + var _X8 = $k[--$j]; //#24760 + $k[$j++] = 1; //#24760 + $k[$j++] = _X8; //#24760 + } //#24760 + } //#24760 + $j--; //#24762 + var _XA = $counttomark() + 2; //#24763 + $astore($geti($_.rle, 0, _XA - 2)); //#24763 + $_.evalfulln1n3(); //#24764 + $_.n3 = $f($k[--$j] + $_.n3); //#24764 + $_.n1 = $f($k[--$j] + $_.n1); //#24764 + $j--; //#24765 + } //#24765 + $k[$j++] = $f($_.n1 + $_.n3); //#24769 + }; //#24769 + $_.bestscore = 999999999; //#24773 + for (var _XK = 0, _XJ = $_.masks.length - 1; _XK <= _XJ; _XK += 1) { //#24791 + $_.m = _XK; //#24775 + $_.masksym = $a($_.size * $_.size); //#24776 + for (var _XR = 0, _XQ = $f(($_.size * $_.size) - 1); _XR <= _XQ; _XR += 1) { //#24780 + $_.i = _XR; //#24778 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#24779 + } //#24779 + if ($_.masks.length != 1) { //#24789 + $k[$j++] = $_.masksym; //#24782 + $_.evalfull(); //#24782 + $_.score = $k[--$j]; //#24782 + if ($_.score < $_.bestscore) { //#24787 + $_.bestsym = $_.masksym; //#24784 + $_.bestmaskval = $_.m; //#24785 + $_.bestscore = $_.score; //#24786 + } //#24786 + } else { //#24789 + $_.bestsym = $_.masksym; //#24789 + } //#24789 + } //#24789 + $_.pixs = $_.bestsym; //#24792 + $_.funval = (((((~~($f($_.size - 21) / 2)) + 20) * 4) + $_.eclval) * 4) + $_.bestmaskval; //#24795 + $k[$j++] = $a([($_.funval & 3840) >>> 8, ($_.funval & 240) >>> 4, $_.funval & 15]); //#24799 + $k[$j++] = 4; //#24799 + $k[$j++] = 16; //#24799 + $k[$j++] = 19; //#24799 + $_.rscodes(); //#24799 + $_.funvals = $k[--$j]; //#24799 + $k[$j++] = Infinity; //#24800 + $forall($_.funvals, function() { //#24803 + $k[$j++] = 4; //#24802 + $_.tobin(); //#24802 + $forall($k[--$j], function() { //#24802 + var _Xw = $k[--$j]; //#24802 + $k[$j++] = $f(_Xw - 48); //#24802 + }); //#24802 + }); //#24802 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $k[$j++] = 0; //#24804 + $k[$j++] = 1; //#24804 + $_.funbits = $a(); //#24804 + for (var _Y0 = 0, _Xz = $_.functionmap.length - 1; _Y0 <= _Xz; _Y0 += 1) { //#24811 + $_.i = _Y0; //#24807 + $forall($get($_.functionmap, $_.i), function() { //#24810 + var _Y5 = $k[--$j]; //#24809 + $k[$j++] = $_.pixs; //#24809 + $aload(_Y5); //#24809 + $_.qmv(); //#24809 + var _Y9 = $k[--$j]; //#24809 + $put($k[--$j], _Y9, $get($_.funbits, $_.i)); //#24809 + }); //#24809 + } //#24809 var _YH = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -30353,1586 +30810,1595 @@ function bwipp_hanxin() { ["pixy", $_.size], ["height", ($_.size * 2) / 72], ["width", ($_.size * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#24522 - $k[$j++] = _YH; //#24525 - if (!$_.dontdraw) { //#24525 - bwipp_renmatrix(); //#24525 - } //#24525 - $_ = Object.getPrototypeOf($_); //#24527 - $_ = Object.getPrototypeOf($_); //#24529 -} - + ]); //#24825 + $k[$j++] = _YH; //#24828 + if (!$_.dontdraw) { //#24828 + bwipp_renmatrix(); //#24828 + } //#24828 + $_ = Object.getPrototypeOf($_); //#24830 + $_ = Object.getPrototypeOf($_); //#24832 +} //bwipp_hanxin function bwipp_dotcode() { - $_ = Object.create($_); //#24560 - $_.dontdraw = false; //#24563 - $_.rows = -1; //#24564 - $_.columns = -1; //#24565 - $_.ratio = -1; //#24566 - $_.parse = false; //#24567 - $_.parsefnc = false; //#24568 - $_.raw = false; //#24569 - $_.fast = false; //#24570 - $_.mask = -1; //#24571 - $k[$j++] = $_; //#24573 - bwipp_processoptions(); //#24573 - $_.options = $k[--$j]; //#24573 - $_.barcode = $k[--$j]; //#24574 - if ($_.rows != -1) { //#24580 - if ($_.rows < 5) { //#24579 - $k[$j++] = 'bwipp.dotcodeBadRows#24578'; //#24578 - $k[$j++] = "There must be at least 5 rows"; //#24578 - bwipp_raiseerror(); //#24578 - } //#24578 - } //#24578 - if ($_.columns != -1) { //#24586 - if ($_.columns < 5) { //#24585 - $k[$j++] = 'bwipp.dotcodeBadColumns#24584'; //#24584 - $k[$j++] = "There must be at least 5 columns"; //#24584 - bwipp_raiseerror(); //#24584 - } //#24584 - } //#24584 - if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24590 - $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24589'; //#24589 - $k[$j++] = "Sum of rows and columns must be odd"; //#24589 - bwipp_raiseerror(); //#24589 - } //#24589 - if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24595 - $_.ratio = 3 / 2; //#24594 - } //#24594 - if ($_.ratio != -1) { //#24600 - if ($_.ratio <= 0) { //#24599 - $k[$j++] = 'bwipp.dotcodeRatio#24598'; //#24598 - $k[$j++] = "The ratio must be greater than 0"; //#24598 - bwipp_raiseerror(); //#24598 - } //#24598 - } //#24598 - if ($_.mask != -1) { //#24606 - if (($_.mask < 0) || ($_.mask > 3)) { //#24605 - $k[$j++] = 'bwipp.dotcodeBadMask#24604'; //#24604 - $k[$j++] = "Valid mask values are 0 to 3"; //#24604 - bwipp_raiseerror(); //#24604 - } //#24604 - } //#24604 - bwipp_loadctx(bwipp_dotcode) //#24608 - if (!bwipp_dotcode.__24621__) { //#24621 - $_ = Object.create($_); //#24621 - $_.laa = -1; //#24612 - $_.lab = -2; //#24612 - $_.lac = -3; //#24612 - $_.bin = -4; //#24612 - $_.sfa = -5; //#24613 - $_.sfb = -6; //#24613 - $_.sb2 = -7; //#24613 - $_.sb3 = -8; //#24613 - $_.sb4 = -9; //#24614 - $_.sb5 = -10; //#24614 - $_.sb6 = -11; //#24614 - $_.sfc = -12; //#24614 - $_.sc2 = -13; //#24615 - $_.sc3 = -14; //#24615 - $_.sc4 = -15; //#24615 - $_.sc5 = -16; //#24615 - $_.sc6 = -17; //#24616 - $_.sc7 = -18; //#24616 - $_.bsa = -19; //#24616 - $_.bsb = -20; //#24616 - $_.tma = -21; //#24617 - $_.tmb = -22; //#24617 - $_.tmc = -23; //#24617 - $_.tms = -24; //#24617 - $_.fn1 = -25; //#24618 - $_.fn2 = -26; //#24618 - $_.fn3 = -27; //#24618 - $_.crl = -28; //#24618 - $_.aim = -29; //#24619 - $_.m05 = -30; //#24619 - $_.m06 = -31; //#24619 - $_.m12 = -32; //#24619 - $_.mac = -33; //#24620 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24620 - bwipp_dotcode.__24621__ = 1; //#24620 - $_ = Object.getPrototypeOf($_); //#24620 - } //#24620 + $_ = Object.create($_); //#24863 + $_.dontdraw = false; //#24866 + $_.rows = -1; //#24867 + $_.columns = -1; //#24868 + $_.ratio = -1; //#24869 + $_.parse = false; //#24870 + $_.parsefnc = false; //#24871 + $_.raw = false; //#24872 + $_.fast = false; //#24873 + $_.mask = -1; //#24874 + $k[$j++] = $_; //#24876 + bwipp_processoptions(); //#24876 + $_.options = $k[--$j]; //#24876 + $_.barcode = $k[--$j]; //#24877 + if ($_.rows != -1) { //#24883 + if ($_.rows < 5) { //#24882 + $k[$j++] = 'bwipp.dotcodeBadRows#24881'; //#24881 + $k[$j++] = "There must be at least 5 rows"; //#24881 + bwipp_raiseerror(); //#24881 + } //#24881 + } //#24881 + if ($_.columns != -1) { //#24889 + if ($_.columns < 5) { //#24888 + $k[$j++] = 'bwipp.dotcodeBadColumns#24887'; //#24887 + $k[$j++] = "There must be at least 5 columns"; //#24887 + bwipp_raiseerror(); //#24887 + } //#24887 + } //#24887 + if ((($_.rows != -1) && ($_.columns != -1)) && ((($_.rows + $_.columns) % 2) != 1)) { //#24893 + $k[$j++] = 'bwipp.dotcodeRowsColumnsBadParity#24892'; //#24892 + $k[$j++] = "Sum of rows and columns must be odd"; //#24892 + bwipp_raiseerror(); //#24892 + } //#24892 + if ((($_.ratio == -1) && ($_.rows == -1)) && ($_.columns == -1)) { //#24898 + $_.ratio = 3 / 2; //#24897 + } //#24897 + if ($_.ratio != -1) { //#24903 + if ($_.ratio <= 0) { //#24902 + $k[$j++] = 'bwipp.dotcodeRatio#24901'; //#24901 + $k[$j++] = "The ratio must be greater than 0"; //#24901 + bwipp_raiseerror(); //#24901 + } //#24901 + } //#24901 + if ($_.mask != -1) { //#24909 + if (($_.mask < 0) || ($_.mask > 3)) { //#24908 + $k[$j++] = 'bwipp.dotcodeBadMask#24907'; //#24907 + $k[$j++] = "Valid mask values are 0 to 3"; //#24907 + bwipp_raiseerror(); //#24907 + } //#24907 + } //#24907 + bwipp_loadctx(bwipp_dotcode) //#24911 + if (!bwipp_dotcode.__24924__) { //#24924 + $_ = Object.create($_); //#24924 + $_.laa = -1; //#24915 + $_.lab = -2; //#24915 + $_.lac = -3; //#24915 + $_.bin = -4; //#24915 + $_.sfa = -5; //#24916 + $_.sfb = -6; //#24916 + $_.sb2 = -7; //#24916 + $_.sb3 = -8; //#24916 + $_.sb4 = -9; //#24917 + $_.sb5 = -10; //#24917 + $_.sb6 = -11; //#24917 + $_.sfc = -12; //#24917 + $_.sc2 = -13; //#24918 + $_.sc3 = -14; //#24918 + $_.sc4 = -15; //#24918 + $_.sc5 = -16; //#24918 + $_.sc6 = -17; //#24919 + $_.sc7 = -18; //#24919 + $_.bsa = -19; //#24919 + $_.bsb = -20; //#24919 + $_.tma = -21; //#24920 + $_.tmb = -22; //#24920 + $_.tmc = -23; //#24920 + $_.tms = -24; //#24920 + $_.fn1 = -25; //#24921 + $_.fn2 = -26; //#24921 + $_.fn3 = -27; //#24921 + $_.crl = -28; //#24921 + $_.aim = -29; //#24922 + $_.m05 = -30; //#24922 + $_.m06 = -31; //#24922 + $_.m12 = -32; //#24922 + $_.mac = -33; //#24923 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24923 + bwipp_dotcode.__24924__ = 1; //#24923 + $_ = Object.getPrototypeOf($_); //#24923 + } //#24923 var _N = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["eci", true], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#24630 - $_.fncvals = _N; //#24631 - $k[$j++] = 'msg'; //#24632 - $k[$j++] = $_.barcode; //#24632 - $k[$j++] = $_.fncvals; //#24632 - bwipp_parseinput(); //#24632 - var _Q = $k[--$j]; //#24632 - $_[$k[--$j]] = _Q; //#24632 - $_.msglen = $_.msg.length; //#24633 - var _T = $_.msg; //#24636 - $k[$j++] = 'numecis'; //#24636 - $k[$j++] = 0; //#24636 - for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24636 - if ($get(_T, _U) <= -1000000) { //#24636 - var _X = $k[--$j]; //#24636 - $k[$j++] = $f(_X + 1); //#24636 - } //#24636 - } //#24636 - var _Y = $k[--$j]; //#24636 - $_[$k[--$j]] = _Y; //#24636 - $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24637 - $_.j = 0; //#24638 - for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24649 - var _h = $get($_.msg, _f); //#24640 - $k[$j++] = _h; //#24648 - if (_h <= -1000000) { //#24647 - var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24641 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24641 - $k[$j++] = $get(_l, _m); //#24641 - } //#24641 - $astore($a(6)); //#24641 - $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24642 - $put($_.msgtmp, $_.j, $_.fn2); //#24643 - $_.j = $_.j + 7; //#24644 - } else { //#24647 - $put($_.msgtmp, $_.j, $k[--$j]); //#24646 - $_.j = $_.j + 1; //#24647 - } //#24647 - } //#24647 - $_.msg = $_.msgtmp; //#24650 - $_.msglen = $_.msg.length; //#24651 - if (!bwipp_dotcode.__24720__) { //#24720 - $_ = Object.create($_); //#24720 - $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24695 - $_.charvals = $a([new Map, new Map, new Map]); //#24698 - for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#24707 - $_.i = _3d; //#24700 - $_.encs = $get($_.charmaps, $_.i); //#24701 - for (var _3h = 0; _3h <= 2; _3h += 1) { //#24706 - $_.j = _3h; //#24703 - var _3k = $get($_.encs, $_.j); //#24704 - $k[$j++] = _3k; //#24704 - if ($eq($type(_3k), 'stringtype')) { //#24704 - var _3n = $get($k[--$j], 0); //#24704 - $k[$j++] = _3n; //#24704 - } //#24704 - $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#24705 - } //#24705 - } //#24705 - $_.Avals = $get($_.charvals, 0); //#24708 - $_.Bvals = $get($_.charvals, 1); //#24709 - $put($_.Bvals, $_.m05, 97); //#24710 - $put($_.Bvals, $_.m06, 98); //#24711 - $put($_.Bvals, $_.m12, 99); //#24712 - $put($_.Bvals, $_.mac, 100); //#24713 - $_.Cvals = $get($_.charvals, 2); //#24714 - $k[$j++] = Infinity; //#24716 - var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#24716 - $k[$j++] = 102; //#24716 - for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#24716 - var _4M = $f($k[--$j] + 1); //#24716 - $k[$j++] = $get(_4H, _4I); //#24716 - $k[$j++] = _4M; //#24716 - $k[$j++] = _4M; //#24716 - } //#24716 - $j--; //#24716 - $_.BINvals = $d(); //#24717 - $_.A = 0; //#24719 - $_.B = 1; //#24719 - $_.C = 2; //#24719 - $_.BIN = 3; //#24719 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#24719 - bwipp_dotcode.__24720__ = 1; //#24719 - $_ = Object.getPrototypeOf($_); //#24719 - } //#24719 - $k[$j++] = Infinity; //#24723 - for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#24723 - $k[$j++] = 0; //#24723 - } //#24723 - $_.nDigits = $a(); //#24723 - $k[$j++] = Infinity; //#24724 - for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#24724 - $k[$j++] = false; //#24724 - } //#24724 - $_.SeventeenTen = $a(); //#24724 - $k[$j++] = Infinity; //#24725 - for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#24725 - $k[$j++] = false; //#24725 - } //#24725 - $_.ECI = $a(); //#24725 - $k[$j++] = Infinity; //#24726 - for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#24726 - $k[$j++] = false; //#24726 - } //#24726 - $_.DatumA = $a(); //#24726 - $k[$j++] = Infinity; //#24727 - for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#24727 - $k[$j++] = false; //#24727 - } //#24727 - $_.DatumB = $a(); //#24727 - $k[$j++] = Infinity; //#24728 - for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#24728 - $k[$j++] = false; //#24728 - } //#24728 - $_.DatumC = $a(); //#24728 - $k[$j++] = Infinity; //#24729 - for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#24729 - $k[$j++] = false; //#24729 - } //#24729 - $_.Binary = $a(); //#24729 - $k[$j++] = Infinity; //#24730 - for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#24730 - $k[$j++] = 0; //#24730 - } //#24730 - $_.AheadC = $a(); //#24730 - $k[$j++] = Infinity; //#24731 - for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#24731 - $k[$j++] = 0; //#24731 - } //#24731 - $_.TryC = $a(); //#24731 - $k[$j++] = Infinity; //#24732 - for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#24732 - $k[$j++] = 0; //#24732 - } //#24732 - $_.AheadA = $a(); //#24732 - $k[$j++] = Infinity; //#24733 - for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#24733 - $k[$j++] = 0; //#24733 - } //#24733 - $_.AheadB = $a(); //#24733 - $k[$j++] = Infinity; //#24734 - for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#24734 - $k[$j++] = 0; //#24734 - } //#24734 - $_.UntilEndSeg = $a(); //#24734 - for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#24789 - $_.i = _5C; //#24736 - $_.barchar = $get($_.msg, $_.i); //#24737 - if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#24740 - $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#24739 - } //#24739 - var _5P = $get($_.Avals, $_.barchar) !== undefined; //#24741 - if (_5P) { //#24741 - $put($_.DatumA, $_.i, true); //#24741 - } //#24741 - var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#24742 - if (_5U) { //#24742 - $put($_.DatumB, $_.i, true); //#24742 - } //#24742 - $_.CRLF = false; //#24743 - if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#24746 - if ($get($_.msg, $_.i + 1) == 10) { //#24745 - $_.CRLF = true; //#24745 - } //#24745 - } //#24745 - if ($_.CRLF) { //#24747 - $put($_.DatumB, $_.i, true); //#24747 - } //#24747 - if ($get($_.nDigits, $_.i) >= 2) { //#24748 - $put($_.DatumC, $_.i, true); //#24748 - } //#24748 - if ($_.barchar < 0) { //#24749 - $put($_.DatumC, $_.i, true); //#24749 - } //#24749 - if ($_.barchar >= 128) { //#24750 - $put($_.Binary, $_.i, true); //#24750 - } //#24750 - if ($get($_.nDigits, $_.i) >= 10) { //#24764 - $k[$j++] = Infinity; //#24752 - $aload($geti($_.msg, $_.i, 10)); //#24753 - for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#24761 - if ($k[--$j] != 48) { //#24755 - $k[$j++] = false; //#24755 - break; //#24755 - } //#24755 - if ($k[--$j] != 49) { //#24756 - $k[$j++] = false; //#24756 - break; //#24756 - } //#24756 - $j -= 6; //#24757 - if ($k[--$j] != 55) { //#24758 - $k[$j++] = false; //#24758 - break; //#24758 - } //#24758 - if ($k[--$j] != 49) { //#24759 - $k[$j++] = false; //#24759 - break; //#24759 - } //#24759 - $k[$j++] = true; //#24760 - } //#24760 - $put($_.SeventeenTen, $_.i, $k[--$j]); //#24762 - $cleartomark(); //#24763 - } //#24763 - if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#24767 - $put($_.ECI, $_.i, true); //#24766 - } //#24766 - if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#24769 - } else { //#24774 - if ($get($_.nDigits, $_.i) <= 1) { //#24774 - $put($_.AheadC, $_.i, 0); //#24772 - } else { //#24774 - $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#24774 - } //#24774 - } //#24774 - if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#24779 - $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#24778 - } //#24778 - if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24782 - $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#24781 - } //#24781 - if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#24785 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i; //#24784 - $k[$j++] = $_.AheadB; //#24784 - $k[$j++] = $_.i + 1; //#24784 - if ($_.CRLF) { //#24784 - var _7B = $k[--$j]; //#24784 - $k[$j++] = $f(_7B + 1); //#24784 - } //#24784 - var _7C = $k[--$j]; //#24784 - var _7E = $get($k[--$j], _7C); //#24784 - var _7F = $k[--$j]; //#24784 - $put($k[--$j], _7F, $f(_7E + 1)); //#24784 - } //#24784 - if ($_.barchar != $_.fn3) { //#24788 - $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#24787 - } //#24787 - } //#24787 + ]); //#24933 + $_.fncvals = _N; //#24934 + $k[$j++] = 'msg'; //#24935 + $k[$j++] = $_.barcode; //#24935 + $k[$j++] = $_.fncvals; //#24935 + bwipp_parseinput(); //#24935 + var _Q = $k[--$j]; //#24935 + $_[$k[--$j]] = _Q; //#24935 + $_.msglen = $_.msg.length; //#24936 + var _T = $_.msg; //#24939 + $k[$j++] = 'numecis'; //#24939 + $k[$j++] = 0; //#24939 + for (var _U = 0, _V = _T.length; _U < _V; _U++) { //#24939 + if ($get(_T, _U) <= -1000000) { //#24939 + var _X = $k[--$j]; //#24939 + $k[$j++] = $f(_X + 1); //#24939 + } //#24939 + } //#24939 + var _Y = $k[--$j]; //#24939 + $_[$k[--$j]] = _Y; //#24939 + $_.msgtmp = $a($f($_.msg.length + ($_.numecis * 6))); //#24940 + $_.j = 0; //#24941 + for (var _f = 0, _e = $_.msg.length - 1; _f <= _e; _f += 1) { //#24952 + var _h = $get($_.msg, _f); //#24943 + $k[$j++] = _h; //#24951 + if (_h <= -1000000) { //#24950 + var _l = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#24944 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#24944 + $k[$j++] = $get(_l, _m); //#24944 + } //#24944 + $astore($a(6)); //#24944 + $puti($_.msgtmp, $_.j + 1, $k[--$j]); //#24945 + $put($_.msgtmp, $_.j, $_.fn2); //#24946 + $_.j = $_.j + 7; //#24947 + } else { //#24950 + $put($_.msgtmp, $_.j, $k[--$j]); //#24949 + $_.j = $_.j + 1; //#24950 + } //#24950 + } //#24950 + $_.msg = $_.msgtmp; //#24953 + $_.msglen = $_.msg.length; //#24954 + if (!bwipp_dotcode.__25023__) { //#25023 + $_ = Object.create($_); //#25023 + $_.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$_.sfb, $_.crl, "96"]), $a([$_.sb2, 9, "97"]), $a([$_.sb3, 28, "98"]), $a([$_.sb4, 29, "99"]), $a([$_.sb5, 30, $_.aim]), $a([$_.sb6, $_.sfa, $_.laa]), $a([$_.lab, $_.laa, $_.sfb]), $a([$_.sc2, $_.sc2, $_.sb2]), $a([$_.sc3, $_.sc3, $_.sb3]), $a([$_.sc4, $_.sc4, $_.sb4]), $a([$_.lac, $_.lac, $_.lab]), $a([$_.fn1, $_.fn1, $_.fn1]), $a([$_.fn2, $_.fn2, $_.fn2]), $a([$_.fn3, $_.fn3, $_.fn3]), $a([$_.bsa, $_.bsa, $_.bsa]), $a([$_.bsb, $_.bsb, $_.bsb]), $a([$_.bin, $_.bin, $_.bin])]); //#24998 + $_.charvals = $a([new Map, new Map, new Map]); //#25001 + for (var _3d = 0, _3c = $_.charmaps.length - 1; _3d <= _3c; _3d += 1) { //#25010 + $_.i = _3d; //#25003 + $_.encs = $get($_.charmaps, $_.i); //#25004 + for (var _3h = 0; _3h <= 2; _3h += 1) { //#25009 + $_.j = _3h; //#25006 + var _3k = $get($_.encs, $_.j); //#25007 + $k[$j++] = _3k; //#25007 + if ($eq($type(_3k), 'stringtype')) { //#25007 + var _3n = $get($k[--$j], 0); //#25007 + $k[$j++] = _3n; //#25007 + } //#25007 + $put($get($_.charvals, $_.j), $k[--$j], $_.i); //#25008 + } //#25008 + } //#25008 + $_.Avals = $get($_.charvals, 0); //#25011 + $_.Bvals = $get($_.charvals, 1); //#25012 + $put($_.Bvals, $_.m05, 97); //#25013 + $put($_.Bvals, $_.m06, 98); //#25014 + $put($_.Bvals, $_.m12, 99); //#25015 + $put($_.Bvals, $_.mac, 100); //#25016 + $_.Cvals = $get($_.charvals, 2); //#25017 + $k[$j++] = Infinity; //#25018 + var _4H = $a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7, $_.tma, $_.tmb, $_.tmc, $_.tms]); //#25019 + $k[$j++] = 102; //#25019 + for (var _4I = 0, _4J = _4H.length; _4I < _4J; _4I++) { //#25019 + var _4M = $f($k[--$j] + 1); //#25019 + $k[$j++] = $get(_4H, _4I); //#25019 + $k[$j++] = _4M; //#25019 + $k[$j++] = _4M; //#25019 + } //#25019 + $j--; //#25019 + $_.BINvals = $d(); //#25020 + $_.A = 0; //#25022 + $_.B = 1; //#25022 + $_.C = 2; //#25022 + $_.BIN = 3; //#25022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25022 + bwipp_dotcode.__25023__ = 1; //#25022 + $_ = Object.getPrototypeOf($_); //#25022 + } //#25022 + $k[$j++] = Infinity; //#25026 + for (var _4Q = 0, _4R = $_.msglen + 1; _4Q < _4R; _4Q++) { //#25026 + $k[$j++] = 0; //#25026 + } //#25026 + $_.nDigits = $a(); //#25026 + $k[$j++] = Infinity; //#25027 + for (var _4U = 0, _4V = $_.msglen + 1; _4U < _4V; _4U++) { //#25027 + $k[$j++] = false; //#25027 + } //#25027 + $_.SeventeenTen = $a(); //#25027 + $k[$j++] = Infinity; //#25028 + for (var _4Y = 0, _4Z = $_.msglen + 1; _4Y < _4Z; _4Y++) { //#25028 + $k[$j++] = false; //#25028 + } //#25028 + $_.ECI = $a(); //#25028 + $k[$j++] = Infinity; //#25029 + for (var _4c = 0, _4d = $_.msglen + 1; _4c < _4d; _4c++) { //#25029 + $k[$j++] = false; //#25029 + } //#25029 + $_.DatumA = $a(); //#25029 + $k[$j++] = Infinity; //#25030 + for (var _4g = 0, _4h = $_.msglen + 1; _4g < _4h; _4g++) { //#25030 + $k[$j++] = false; //#25030 + } //#25030 + $_.DatumB = $a(); //#25030 + $k[$j++] = Infinity; //#25031 + for (var _4k = 0, _4l = $_.msglen + 1; _4k < _4l; _4k++) { //#25031 + $k[$j++] = false; //#25031 + } //#25031 + $_.DatumC = $a(); //#25031 + $k[$j++] = Infinity; //#25032 + for (var _4o = 0, _4p = $_.msglen + 8; _4o < _4p; _4o++) { //#25032 + $k[$j++] = false; //#25032 + } //#25032 + $_.Binary = $a(); //#25032 + $k[$j++] = Infinity; //#25033 + for (var _4s = 0, _4t = $_.msglen + 1; _4s < _4t; _4s++) { //#25033 + $k[$j++] = 0; //#25033 + } //#25033 + $_.AheadC = $a(); //#25033 + $k[$j++] = Infinity; //#25034 + for (var _4w = 0, _4x = $_.msglen + 1; _4w < _4x; _4w++) { //#25034 + $k[$j++] = 0; //#25034 + } //#25034 + $_.TryC = $a(); //#25034 + $k[$j++] = Infinity; //#25035 + for (var _50 = 0, _51 = $_.msglen + 1; _50 < _51; _50++) { //#25035 + $k[$j++] = 0; //#25035 + } //#25035 + $_.AheadA = $a(); //#25035 + $k[$j++] = Infinity; //#25036 + for (var _54 = 0, _55 = $_.msglen + 1; _54 < _55; _54++) { //#25036 + $k[$j++] = 0; //#25036 + } //#25036 + $_.AheadB = $a(); //#25036 + $k[$j++] = Infinity; //#25037 + for (var _58 = 0, _59 = $_.msglen + 1; _58 < _59; _58++) { //#25037 + $k[$j++] = 0; //#25037 + } //#25037 + $_.UntilEndSeg = $a(); //#25037 + for (var _5C = $_.msglen - 1; _5C >= 0; _5C -= 1) { //#25092 + $_.i = _5C; //#25039 + $_.barchar = $get($_.msg, $_.i); //#25040 + if (($_.barchar >= 48) && ($_.barchar <= 57)) { //#25043 + $put($_.nDigits, $_.i, $f($get($_.nDigits, $_.i + 1) + 1)); //#25042 + } //#25042 + var _5P = $get($_.Avals, $_.barchar) !== undefined; //#25044 + if (_5P) { //#25044 + $put($_.DatumA, $_.i, true); //#25044 + } //#25044 + var _5U = $get($_.Bvals, $_.barchar) !== undefined; //#25045 + if (_5U) { //#25045 + $put($_.DatumB, $_.i, true); //#25045 + } //#25045 + $_.CRLF = false; //#25046 + if (($_.barchar == 13) && ($_.i < ($_.msglen - 1))) { //#25049 + if ($get($_.msg, $_.i + 1) == 10) { //#25048 + $_.CRLF = true; //#25048 + } //#25048 + } //#25048 + if ($_.CRLF) { //#25050 + $put($_.DatumB, $_.i, true); //#25050 + } //#25050 + if ($get($_.nDigits, $_.i) >= 2) { //#25051 + $put($_.DatumC, $_.i, true); //#25051 + } //#25051 + if ($_.barchar < 0) { //#25052 + $put($_.DatumC, $_.i, true); //#25052 + } //#25052 + if ($_.barchar >= 128) { //#25053 + $put($_.Binary, $_.i, true); //#25053 + } //#25053 + if ($get($_.nDigits, $_.i) >= 10) { //#25067 + $k[$j++] = Infinity; //#25055 + $aload($geti($_.msg, $_.i, 10)); //#25056 + for (var _5x = 0, _5y = 1; _5x < _5y; _5x++) { //#25064 + if ($k[--$j] != 48) { //#25058 + $k[$j++] = false; //#25058 + break; //#25058 + } //#25058 + if ($k[--$j] != 49) { //#25059 + $k[$j++] = false; //#25059 + break; //#25059 + } //#25059 + $j -= 6; //#25060 + if ($k[--$j] != 55) { //#25061 + $k[$j++] = false; //#25061 + break; //#25061 + } //#25061 + if ($k[--$j] != 49) { //#25062 + $k[$j++] = false; //#25062 + break; //#25062 + } //#25062 + $k[$j++] = true; //#25063 + } //#25063 + $put($_.SeventeenTen, $_.i, $k[--$j]); //#25065 + $cleartomark(); //#25066 + } //#25066 + if (($get($_.nDigits, $_.i + 1) >= 6) && ($get($_.msg, $_.i) == $_.fn2)) { //#25070 + $put($_.ECI, $_.i, true); //#25069 + } //#25069 + if (($_.barchar < 0) && ($_.barchar != $_.fn3)) { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 1) + 1)); //#25072 + } else { //#25077 + if ($get($_.nDigits, $_.i) <= 1) { //#25077 + $put($_.AheadC, $_.i, 0); //#25075 + } else { //#25077 + $put($_.AheadC, $_.i, $f($get($_.AheadC, $_.i + 2) + 1)); //#25077 + } //#25077 + } //#25077 + if (($get($_.nDigits, $_.i) > 0) && $gt($get($_.AheadC, $_.i), $get($_.AheadC, $_.i + 1))) { //#25082 + $put($_.TryC, $_.i, $get($_.AheadC, $_.i)); //#25081 + } //#25081 + if (($get($_.DatumA, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25085 + $put($_.AheadA, $_.i, $f($get($_.AheadA, $_.i + 1) + 1)); //#25084 + } //#25084 + if (($get($_.DatumB, $_.i) && ($get($_.TryC, $_.i) < 2)) && ($_.barchar != $_.fn3)) { //#25088 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i; //#25087 + $k[$j++] = $_.AheadB; //#25087 + $k[$j++] = $_.i + 1; //#25087 + if ($_.CRLF) { //#25087 + var _7B = $k[--$j]; //#25087 + $k[$j++] = $f(_7B + 1); //#25087 + } //#25087 + var _7C = $k[--$j]; //#25087 + var _7E = $get($k[--$j], _7C); //#25087 + var _7F = $k[--$j]; //#25087 + $put($k[--$j], _7F, $f(_7E + 1)); //#25087 + } //#25087 + if ($_.barchar != $_.fn3) { //#25091 + $put($_.UntilEndSeg, $_.i, $f($get($_.UntilEndSeg, $_.i + 1) + 1)); //#25090 + } //#25090 + } //#25090 $_.addtocws = function() { - var _7O = $k[--$j]; //#24792 - $puti($_.cws, $_.j, _7O); //#24792 - $_.j = _7O.length + $_.j; //#24793 - }; //#24793 + var _7O = $k[--$j]; //#25095 + $puti($_.cws, $_.j, _7O); //#25095 + $_.j = _7O.length + $_.j; //#25096 + }; //#25096 $_.base259to103 = function() { - $_.in = $k[--$j]; //#24798 - $_.inlen = $_.in.length; //#24799 - $k[$j++] = Infinity; //#24800 - for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#24800 - $k[$j++] = 0; //#24800 - } //#24800 - $aload($_.in); //#24800 - $_.in = $a(); //#24800 - $_.out = $a(6); //#24801 - $k[$j++] = Infinity; //#24802 - $aload($geti($_.in, 0, 2)); //#24802 - $_.msbs = $a(); //#24802 - $k[$j++] = Infinity; //#24805 - $aload($_.msbs); //#24804 - var _7e = $k[--$j]; //#24804 - var _7f = $k[--$j]; //#24804 - $k[$j++] = $f(_7e + (_7f * 259)); //#24805 - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#24805 - var _7i = $k[--$j]; //#24805 - $k[$j++] = _7i % 103; //#24805 - $k[$j++] = ~~(_7i / 103); //#24805 - } //#24805 - $_.mscs = $a(); //#24805 - $k[$j++] = Infinity; //#24807 - $aload($geti($_.in, 2, 3)); //#24807 - $_.lsbs = $a(); //#24807 - $k[$j++] = Infinity; //#24810 - $aload($_.lsbs); //#24809 - var _7o = $k[--$j]; //#24809 - var _7p = $k[--$j]; //#24809 - var _7q = $k[--$j]; //#24809 - $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#24810 - for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#24810 - var _7t = $k[--$j]; //#24810 - $k[$j++] = _7t % 103; //#24810 - $k[$j++] = ~~(_7t / 103); //#24810 - } //#24810 - $_.lscs = $a(); //#24810 - var _7w = $get($_.lscs, 0); //#24812 - var _7y = $get($_.mscs, 0); //#24812 - $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#24813 - var _81 = $get($_.lscs, 1); //#24814 - var _83 = $get($_.mscs, 0); //#24814 - var _85 = $get($_.mscs, 1); //#24814 - $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#24815 - var _88 = $get($_.lscs, 2); //#24816 - var _8A = $get($_.mscs, 0); //#24816 - var _8C = $get($_.mscs, 1); //#24816 - var _8E = $get($_.mscs, 2); //#24816 - $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#24817 - var _8H = $get($_.lscs, 3); //#24818 - var _8J = $get($_.mscs, 0); //#24818 - var _8L = $get($_.mscs, 1); //#24818 - var _8N = $get($_.mscs, 2); //#24818 - $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#24819 - var _8Q = $get($_.mscs, 1); //#24820 - var _8S = $get($_.mscs, 2); //#24820 - $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#24821 - $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#24823 - $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#24824 - }; //#24824 + $_.in = $k[--$j]; //#25101 + $_.inlen = $_.in.length; //#25102 + $k[$j++] = Infinity; //#25103 + for (var _7V = 0, _7W = 5 - $_.inlen; _7V < _7W; _7V++) { //#25103 + $k[$j++] = 0; //#25103 + } //#25103 + $aload($_.in); //#25103 + $_.in = $a(); //#25103 + $_.out = $a(6); //#25104 + $k[$j++] = Infinity; //#25105 + $aload($geti($_.in, 0, 2)); //#25105 + $_.msbs = $a(); //#25105 + $k[$j++] = Infinity; //#25106 + $aload($_.msbs); //#25107 + var _7e = $k[--$j]; //#25107 + var _7f = $k[--$j]; //#25107 + $k[$j++] = $f(_7e + (_7f * 259)); //#25108 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#25108 + var _7i = $k[--$j]; //#25108 + $k[$j++] = _7i % 103; //#25108 + $k[$j++] = ~~(_7i / 103); //#25108 + } //#25108 + $_.mscs = $a(); //#25108 + $k[$j++] = Infinity; //#25110 + $aload($geti($_.in, 2, 3)); //#25110 + $_.lsbs = $a(); //#25110 + $k[$j++] = Infinity; //#25111 + $aload($_.lsbs); //#25112 + var _7o = $k[--$j]; //#25112 + var _7p = $k[--$j]; //#25112 + var _7q = $k[--$j]; //#25112 + $k[$j++] = $f(($f(_7o + (_7p * 259))) + (_7q * 67081)); //#25113 + for (var _7r = 0, _7s = 3; _7r < _7s; _7r++) { //#25113 + var _7t = $k[--$j]; //#25113 + $k[$j++] = _7t % 103; //#25113 + $k[$j++] = ~~(_7t / 103); //#25113 + } //#25113 + $_.lscs = $a(); //#25113 + var _7w = $get($_.lscs, 0); //#25115 + var _7y = $get($_.mscs, 0); //#25115 + $put($_.out, 5, ($f(_7w + (_7y * 42))) % 103); //#25116 + var _81 = $get($_.lscs, 1); //#25117 + var _83 = $get($_.mscs, 0); //#25117 + var _85 = $get($_.mscs, 1); //#25117 + $put($_.out, 4, ($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) % 103); //#25118 + var _88 = $get($_.lscs, 2); //#25119 + var _8A = $get($_.mscs, 0); //#25119 + var _8C = $get($_.mscs, 1); //#25119 + var _8E = $get($_.mscs, 2); //#25119 + $put($_.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) % 103); //#25120 + var _8H = $get($_.lscs, 3); //#25121 + var _8J = $get($_.mscs, 0); //#25121 + var _8L = $get($_.mscs, 1); //#25121 + var _8N = $get($_.mscs, 2); //#25121 + $put($_.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) % 103); //#25122 + var _8Q = $get($_.mscs, 1); //#25123 + var _8S = $get($_.mscs, 2); //#25123 + $put($_.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) % 103); //#25124 + $put($_.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7w + (_7y * 42))) / 103)) + _81)) + (_83 * 68))) + (_85 * 42))) / 103)) + _88)) + (_8A * 92))) + (_8C * 68))) + (_8E * 42))) / 103)) + _8H)) + (_8J * 15))) + (_8L * 92))) + (_8N * 68))) / 103)) + (_8Q * 15))) + (_8S * 92))) / 103)) + ($get($_.mscs, 2) * 15))) % 103); //#25126 + $k[$j++] = $geti($_.out, (6 - $_.inlen) - 1, $_.inlen + 1); //#25127 + }; //#25127 $_.finaliseBIN = function() { - if ($_.bpos != 0) { //#24831 - $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#24829 - $_.base259to103(); //#24829 - $aload($k[--$j]); //#24829 - $_.bpos = 0; //#24830 - } //#24830 - }; //#24830 + if ($_.bpos != 0) { //#25134 + $k[$j++] = $geti($_.bvals, 0, $_.bpos); //#25132 + $_.base259to103(); //#25132 + $aload($k[--$j]); //#25132 + $_.bpos = 0; //#25133 + } //#25133 + }; //#25133 $_.addtobin = function() { - $put($_.bvals, $_.bpos, $k[--$j]); //#24835 - $_.bpos = $_.bpos + 1; //#24836 - if ($_.bpos == 5) { //#24837 - $_.finaliseBIN(); //#24837 - } //#24837 - }; //#24837 + $put($_.bvals, $_.bpos, $k[--$j]); //#25138 + $_.bpos = $_.bpos + 1; //#25139 + if ($_.bpos == 5) { //#25140 + $_.finaliseBIN(); //#25140 + } //#25140 + }; //#25140 $_.ECIabc = function() { - var _8n = $geti($_.msg, $_.i + 1, 6); //#24841 - $k[$j++] = 0; //#24841 - for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#24841 - var _8r = $k[--$j]; //#24841 - $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#24841 - } //#24841 - var _8t = ~~($k[--$j] / 10); //#24842 - $k[$j++] = _8t; //#24846 - if (_8t >= 40) { //#24846 - var _8v = $f($k[--$j] - 40); //#24844 - var _8w = _8v % 12769; //#24845 - $k[$j++] = (~~(_8v / 12769)) + 40; //#24845 - $k[$j++] = ~~(_8w / 113); //#24845 - $k[$j++] = _8w % 113; //#24845 - } //#24845 - }; //#24845 + var _8n = $geti($_.msg, $_.i + 1, 6); //#25144 + $k[$j++] = 0; //#25144 + for (var _8o = 0, _8p = _8n.length; _8o < _8p; _8o++) { //#25144 + var _8r = $k[--$j]; //#25144 + $k[$j++] = ($f(_8r + $f($get(_8n, _8o) - 48))) * 10; //#25144 + } //#25144 + var _8t = ~~($k[--$j] / 10); //#25145 + $k[$j++] = _8t; //#25149 + if (_8t >= 40) { //#25149 + var _8v = $f($k[--$j] - 40); //#25147 + var _8w = _8v % 12769; //#25148 + $k[$j++] = (~~(_8v / 12769)) + 40; //#25148 + $k[$j++] = ~~(_8w / 113); //#25148 + $k[$j++] = _8w % 113; //#25148 + } //#25148 + }; //#25148 $_.ECIbin = function() { - $k[$j++] = Infinity; //#24858 - var _8z = $geti($_.msg, $_.i + 1, 6); //#24851 - $k[$j++] = 0; //#24851 - for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#24851 - var _93 = $k[--$j]; //#24851 - $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#24851 - } //#24851 - var _95 = ~~($k[--$j] / 10); //#24852 - $k[$j++] = _95; //#24860 - if (_95 >= 65536) { //#24858 - var _96 = $k[--$j]; //#24853 - var _97 = _96 % 65536; //#24853 - $k[$j++] = 258; //#24853 - $k[$j++] = ~~(_96 / 65536); //#24853 - $k[$j++] = ~~(_97 / 256); //#24853 - $k[$j++] = _97 % 256; //#24853 - } else { //#24858 - var _98 = $k[--$j]; //#24855 - $k[$j++] = _98; //#24859 - if (_98 >= 256) { //#24858 - var _99 = $k[--$j]; //#24856 - $k[$j++] = 257; //#24856 - $k[$j++] = ~~(_99 / 256); //#24856 - $k[$j++] = _99 % 256; //#24856 - } else { //#24858 - var _9A = $k[--$j]; //#24858 - $k[$j++] = 256; //#24858 - $k[$j++] = _9A; //#24858 - } //#24858 - } //#24858 - var _9B = $a(); //#24858 - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#24863 - $k[$j++] = $get(_9B, _9C); //#24862 - $_.addtobin(); //#24862 - } //#24862 - }; //#24862 + $k[$j++] = Infinity; //#25153 + var _8z = $geti($_.msg, $_.i + 1, 6); //#25154 + $k[$j++] = 0; //#25154 + for (var _90 = 0, _91 = _8z.length; _90 < _91; _90++) { //#25154 + var _93 = $k[--$j]; //#25154 + $k[$j++] = ($f(_93 + $f($get(_8z, _90) - 48))) * 10; //#25154 + } //#25154 + var _95 = ~~($k[--$j] / 10); //#25155 + $k[$j++] = _95; //#25163 + if (_95 >= 65536) { //#25161 + var _96 = $k[--$j]; //#25156 + var _97 = _96 % 65536; //#25156 + $k[$j++] = 258; //#25156 + $k[$j++] = ~~(_96 / 65536); //#25156 + $k[$j++] = ~~(_97 / 256); //#25156 + $k[$j++] = _97 % 256; //#25156 + } else { //#25161 + var _98 = $k[--$j]; //#25158 + $k[$j++] = _98; //#25162 + if (_98 >= 256) { //#25161 + var _99 = $k[--$j]; //#25159 + $k[$j++] = 257; //#25159 + $k[$j++] = ~~(_99 / 256); //#25159 + $k[$j++] = _99 % 256; //#25159 + } else { //#25161 + var _9A = $k[--$j]; //#25161 + $k[$j++] = 256; //#25161 + $k[$j++] = _9A; //#25161 + } //#25161 + } //#25161 + var _9B = $a(); //#25161 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#25166 + $k[$j++] = $get(_9B, _9C); //#25165 + $_.addtobin(); //#25165 + } //#25165 + }; //#25165 $_.encC = function() { - for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#24987 - if ($_.i == $_.segstart) { //#24900 - for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#24885 - if ($_.i > $f($_.segend - 7)) { //#24870 - $k[$j++] = 0; //#24870 - break; //#24870 - } //#24870 - if ($get($_.msg, $_.segstart) != 91) { //#24871 - $k[$j++] = 0; //#24871 - break; //#24871 - } //#24871 - if ($get($_.msg, $_.segstart + 1) != 41) { //#24872 - $k[$j++] = 0; //#24872 - break; //#24872 - } //#24872 - if ($get($_.msg, $_.segstart + 2) != 62) { //#24873 - $k[$j++] = 0; //#24873 - break; //#24873 - } //#24873 - if ($get($_.msg, $_.segstart + 3) != 30) { //#24874 - $k[$j++] = 0; //#24874 - break; //#24874 - } //#24874 - var _9b = $get($_.msg, $_.segstart + 4); //#24875 - if ((_9b < 48) || (_9b > 57)) { //#24875 - $k[$j++] = 0; //#24875 - break; //#24875 - } //#24875 - var _9e = $get($_.msg, $_.segstart + 5); //#24876 - if ((_9e < 48) || (_9e > 57)) { //#24876 - $k[$j++] = 0; //#24876 - break; //#24876 - } //#24876 - if ($get($_.msg, $f($_.segend - 1)) != 4) { //#24877 - $k[$j++] = 0; //#24877 - break; //#24877 - } //#24877 - var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#24879 - $k[$j++] = _9o; //#24879 - if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#24879 - $j--; //#24879 - $k[$j++] = $_.mac; //#24879 - break; //#24879 - } //#24879 - if ($get($_.msg, $_.segstart + 6) != 29) { //#24880 - $j--; //#24880 - $k[$j++] = 0; //#24880 - break; //#24880 - } //#24880 - if ($get($_.msg, $f($_.segend - 2)) != 30) { //#24881 - $j--; //#24881 - $k[$j++] = 0; //#24881 - break; //#24881 - } //#24881 - var _9w = $k[--$j]; //#24882 - $k[$j++] = _9w; //#24882 - if (_9w == 5) { //#24882 - $j--; //#24882 - $k[$j++] = $_.m05; //#24882 - break; //#24882 - } //#24882 - if ($k[--$j] == 6) { //#24883 - $k[$j++] = $_.m06; //#24883 - break; //#24883 - } //#24883 - $k[$j++] = $_.m12; //#24884 - break; //#24884 - } //#24884 - $_.inmac = $k[--$j]; //#24886 - if ($_.inmac != 0) { //#24899 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24888 - $_.addtocws(); //#24888 - $_.mode = $_.B; //#24889 - $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#24890 - $_.addtocws(); //#24890 - if ($_.inmac == $_.mac) { //#24896 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#24892 - $_.addtocws(); //#24892 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#24893 - $_.addtocws(); //#24893 - $_.i = $_.i + 6; //#24894 - } else { //#24896 - $_.i = $_.i + 7; //#24896 - } //#24896 - break; //#24898 - } //#24898 - } //#24898 - if ($_.i == $_.segstart) { //#24911 - if ($get($_.nDigits, $_.i) >= 2) { //#24906 - $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#24905 - $_.addtocws(); //#24905 - } //#24905 - if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#24910 - $_.i = $_.i + 1; //#24909 - } //#24909 - } //#24909 - if ($get($_.SeventeenTen, $_.i)) { //#24921 - $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#24918 - $_.addtocws(); //#24918 - $_.i = $_.i + 10; //#24919 - break; //#24920 - } //#24920 - if ($get($_.DatumC, $_.i)) { //#24943 - var _BE = $get($_.msg, $_.i); //#24923 - if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#24939 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#24924 - $_.addtocws(); //#24924 - if ($get($_.ECI, $_.i)) { //#24929 - $k[$j++] = Infinity; //#24926 - $_.ECIabc(); //#24926 - var _BR = $a(); //#24926 - $k[$j++] = _BR; //#24926 - $_.addtocws(); //#24926 - $_.i = $_.i + 7; //#24927 - break; //#24928 - } //#24928 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#24936 - $_.i = $_.i + 1; //#24931 - $_.inmac = 0; //#24932 - $_.segstart = $_.i; //#24933 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#24934 - break; //#24935 - } //#24935 - $_.i = $_.i + 1; //#24937 - break; //#24938 - } //#24938 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#24940 - $_.addtocws(); //#24940 - $_.i = $_.i + 2; //#24941 - break; //#24942 - } //#24942 - if ($get($_.Binary, $_.i)) { //#24957 - if ($get($_.nDigits, $_.i + 1) > 0) { //#24953 - if ($get($_.msg, $_.i) < 160) { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#24947 - $_.addtocws(); //#24947 - } else { //#24949 - $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#24949 - $_.addtocws(); //#24949 - } //#24949 - $_.i = $_.i + 1; //#24951 - break; //#24952 - } //#24952 - $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#24954 - $_.addtocws(); //#24954 - $_.mode = $_.BIN; //#24955 - break; //#24956 - } //#24956 - $_.m = $get($_.AheadA, $_.i); //#24958 - $_.n = $get($_.AheadB, $_.i); //#24958 - if ($gt($_.m, $_.n)) { //#24963 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24960 - $_.addtocws(); //#24960 - $_.mode = $_.A; //#24961 - break; //#24962 - } //#24962 - if ($_.i == $_.segstart) { //#24970 - var _Cc = $get($_.msg, $_.i); //#24965 - if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#24969 - $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#24966 - $_.addtocws(); //#24966 - $_.mode = $_.A; //#24967 - break; //#24968 - } //#24968 - } //#24968 - if ($_.n > 4) { //#24975 - $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#24972 - $_.addtocws(); //#24972 - $_.mode = $_.B; //#24973 - break; //#24974 - } //#24974 - $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#24976 - $_.addtocws(); //#24976 - for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#24985 - if ($get($_.msg, $_.i) == 13) { //#24983 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#24979 - $_.addtocws(); //#24979 - $_.i = $_.i + 2; //#24980 - } else { //#24983 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#24982 - $_.addtocws(); //#24982 - $_.i = $_.i + 1; //#24983 - } //#24983 - } //#24983 - break; //#24986 - } //#24986 - }; //#24986 + for (var _9F = 0, _9G = 1; _9F < _9G; _9F++) { //#25290 + if ($_.i == $_.segstart) { //#25203 + for (var _9J = 0, _9K = 1; _9J < _9K; _9J++) { //#25188 + if ($_.i > $f($_.segend - 7)) { //#25173 + $k[$j++] = 0; //#25173 + break; //#25173 + } //#25173 + if ($get($_.msg, $_.segstart) != 91) { //#25174 + $k[$j++] = 0; //#25174 + break; //#25174 + } //#25174 + if ($get($_.msg, $_.segstart + 1) != 41) { //#25175 + $k[$j++] = 0; //#25175 + break; //#25175 + } //#25175 + if ($get($_.msg, $_.segstart + 2) != 62) { //#25176 + $k[$j++] = 0; //#25176 + break; //#25176 + } //#25176 + if ($get($_.msg, $_.segstart + 3) != 30) { //#25177 + $k[$j++] = 0; //#25177 + break; //#25177 + } //#25177 + var _9b = $get($_.msg, $_.segstart + 4); //#25178 + if ((_9b < 48) || (_9b > 57)) { //#25178 + $k[$j++] = 0; //#25178 + break; //#25178 + } //#25178 + var _9e = $get($_.msg, $_.segstart + 5); //#25179 + if ((_9e < 48) || (_9e > 57)) { //#25179 + $k[$j++] = 0; //#25179 + break; //#25179 + } //#25179 + if ($get($_.msg, $f($_.segend - 1)) != 4) { //#25180 + $k[$j++] = 0; //#25180 + break; //#25180 + } //#25180 + var _9o = $f(($f($get($_.msg, $_.segstart + 4) - 48) * 10) + $f($get($_.msg, $_.segstart + 5) - 48)); //#25182 + $k[$j++] = _9o; //#25182 + if ((_9o != 5) && ((_9o != 6) && (_9o != 12))) { //#25182 + $j--; //#25182 + $k[$j++] = $_.mac; //#25182 + break; //#25182 + } //#25182 + if ($get($_.msg, $_.segstart + 6) != 29) { //#25183 + $j--; //#25183 + $k[$j++] = 0; //#25183 + break; //#25183 + } //#25183 + if ($get($_.msg, $f($_.segend - 2)) != 30) { //#25184 + $j--; //#25184 + $k[$j++] = 0; //#25184 + break; //#25184 + } //#25184 + var _9w = $k[--$j]; //#25185 + $k[$j++] = _9w; //#25185 + if (_9w == 5) { //#25185 + $j--; //#25185 + $k[$j++] = $_.m05; //#25185 + break; //#25185 + } //#25185 + if ($k[--$j] == 6) { //#25186 + $k[$j++] = $_.m06; //#25186 + break; //#25186 + } //#25186 + $k[$j++] = $_.m12; //#25187 + break; //#25187 + } //#25187 + $_.inmac = $k[--$j]; //#25189 + if ($_.inmac != 0) { //#25202 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25191 + $_.addtocws(); //#25191 + $_.mode = $_.B; //#25192 + $k[$j++] = $a([$get($_.Bvals, $_.inmac)]); //#25193 + $_.addtocws(); //#25193 + if ($_.inmac == $_.mac) { //#25199 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 4))]); //#25195 + $_.addtocws(); //#25195 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.segstart + 5))]); //#25196 + $_.addtocws(); //#25196 + $_.i = $_.i + 6; //#25197 + } else { //#25199 + $_.i = $_.i + 7; //#25199 + } //#25199 + break; //#25201 + } //#25201 + } //#25201 + if ($_.i == $_.segstart) { //#25214 + if ($get($_.nDigits, $_.i) >= 2) { //#25209 + $k[$j++] = $a([$get($_.Cvals, $_.fn1)]); //#25208 + $_.addtocws(); //#25208 + } //#25208 + if (($get($_.msg, $_.i) == $_.fn1) && ($get($_.nDigits, $_.i + 1) >= 2)) { //#25213 + $_.i = $_.i + 1; //#25212 + } //#25212 + } //#25212 + if ($get($_.SeventeenTen, $_.i)) { //#25224 + $k[$j++] = $a([$get($_.Cvals, $_.aim), $f(($f($get($_.msg, $_.i + 2) - 48) * 10) + $f($get($_.msg, $_.i + 3) - 48)), $f(($f($get($_.msg, $_.i + 4) - 48) * 10) + $f($get($_.msg, $_.i + 5) - 48)), $f(($f($get($_.msg, $_.i + 6) - 48) * 10) + $f($get($_.msg, $_.i + 7) - 48))]); //#25221 + $_.addtocws(); //#25221 + $_.i = $_.i + 10; //#25222 + break; //#25223 + } //#25223 + if ($get($_.DatumC, $_.i)) { //#25246 + var _BE = $get($_.msg, $_.i); //#25226 + if ((_BE == $_.fn1) || ((_BE == $_.fn2) || (_BE == $_.fn3))) { //#25242 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25227 + $_.addtocws(); //#25227 + if ($get($_.ECI, $_.i)) { //#25232 + $k[$j++] = Infinity; //#25229 + $_.ECIabc(); //#25229 + var _BR = $a(); //#25229 + $k[$j++] = _BR; //#25229 + $_.addtocws(); //#25229 + $_.i = $_.i + 7; //#25230 + break; //#25231 + } //#25231 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.segstart != $_.i)) { //#25239 + $_.i = $_.i + 1; //#25234 + $_.inmac = 0; //#25235 + $_.segstart = $_.i; //#25236 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25237 + break; //#25238 + } //#25238 + $_.i = $_.i + 1; //#25240 + break; //#25241 + } //#25241 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25243 + $_.addtocws(); //#25243 + $_.i = $_.i + 2; //#25244 + break; //#25245 + } //#25245 + if ($get($_.Binary, $_.i)) { //#25260 + if ($get($_.nDigits, $_.i + 1) > 0) { //#25256 + if ($get($_.msg, $_.i) < 160) { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25250 + $_.addtocws(); //#25250 + } else { //#25252 + $k[$j++] = $a([$get($_.Cvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25252 + $_.addtocws(); //#25252 + } //#25252 + $_.i = $_.i + 1; //#25254 + break; //#25255 + } //#25255 + $k[$j++] = $a([$get($_.Cvals, $_.bin)]); //#25257 + $_.addtocws(); //#25257 + $_.mode = $_.BIN; //#25258 + break; //#25259 + } //#25259 + $_.m = $get($_.AheadA, $_.i); //#25261 + $_.n = $get($_.AheadB, $_.i); //#25261 + if ($gt($_.m, $_.n)) { //#25266 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25263 + $_.addtocws(); //#25263 + $_.mode = $_.A; //#25264 + break; //#25265 + } //#25265 + if ($_.i == $_.segstart) { //#25273 + var _Cc = $get($_.msg, $_.i); //#25268 + if ((_Cc == 9) || ((_Cc == 28) || ((_Cc == 29) || (_Cc == 30)))) { //#25272 + $k[$j++] = $a([$get($_.Cvals, $_.laa)]); //#25269 + $_.addtocws(); //#25269 + $_.mode = $_.A; //#25270 + break; //#25271 + } //#25271 + } //#25271 + if ($_.n > 4) { //#25278 + $k[$j++] = $a([$get($_.Cvals, $_.lab)]); //#25275 + $_.addtocws(); //#25275 + $_.mode = $_.B; //#25276 + break; //#25277 + } //#25277 + $k[$j++] = $a([$get($_.Cvals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4]), $f($_.n - 1)))]); //#25279 + $_.addtocws(); //#25279 + for (var _Cz = 0, _D0 = $_.n; _Cz < _D0; _Cz++) { //#25288 + if ($get($_.msg, $_.i) == 13) { //#25286 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25282 + $_.addtocws(); //#25282 + $_.i = $_.i + 2; //#25283 + } else { //#25286 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25285 + $_.addtocws(); //#25285 + $_.i = $_.i + 1; //#25286 + } //#25286 + } //#25286 + break; //#25289 + } //#25289 + }; //#25289 $_.encB = function() { - for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25063 - $_.n = $get($_.TryC, $_.i); //#24992 - if ($_.n >= 2) { //#25010 - if ($_.n > 4) { //#24998 - $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#24995 - $_.addtocws(); //#24995 - $_.mode = $_.C; //#24996 - break; //#24997 - } //#24997 - $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#24999 - $_.addtocws(); //#24999 - for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25008 - if ($get($_.msg, $_.i) < 0) { //#25006 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25002 - $_.addtocws(); //#25002 - $_.i = $_.i + 1; //#25003 - } else { //#25006 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25005 - $_.addtocws(); //#25005 - $_.i = $_.i + 2; //#25006 - } //#25006 - } //#25006 - break; //#25009 - } //#25009 - if ($get($_.DatumB, $_.i)) { //#25040 - var _E2 = $get($_.msg, $_.i); //#25012 - if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25029 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25013 - $_.addtocws(); //#25013 - if ($get($_.ECI, $_.i)) { //#25018 - $k[$j++] = Infinity; //#25015 - $_.ECIabc(); //#25015 - var _EF = $a(); //#25015 - $k[$j++] = _EF; //#25015 - $_.addtocws(); //#25015 - $_.i = $_.i + 7; //#25016 - break; //#25017 - } //#25017 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25026 - $_.i = $_.i + 1; //#25020 - $_.mode = $_.C; //#25021 - $_.inmac = 0; //#25022 - $_.segstart = $_.i; //#25023 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25024 - break; //#25025 - } //#25025 - $_.i = $_.i + 1; //#25027 - break; //#25028 - } //#25028 - if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25036 - if ($get($_.msg, $_.i + 1) == 10) { //#25035 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25032 - $_.addtocws(); //#25032 - $_.i = $_.i + 2; //#25033 - break; //#25034 - } //#25034 - } //#25034 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25037 - $_.addtocws(); //#25037 - $_.i = $_.i + 1; //#25038 - break; //#25039 - } //#25039 - if ($get($_.Binary, $_.i)) { //#25054 - if ($get($_.DatumB, $_.i + 1)) { //#25050 - if ($get($_.msg, $_.i) < 160) { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25044 - $_.addtocws(); //#25044 - } else { //#25046 - $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25046 - $_.addtocws(); //#25046 - } //#25046 - $_.i = $_.i + 1; //#25048 - break; //#25049 - } //#25049 - $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25051 - $_.addtocws(); //#25051 - $_.mode = $_.BIN; //#25052 - break; //#25053 - } //#25053 - if ($get($_.AheadA, $_.i) == 1) { //#25059 - $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25056 - $_.addtocws(); //#25056 - $_.i = $_.i + 1; //#25057 - break; //#25058 - } //#25058 - $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25060 - $_.addtocws(); //#25060 - $_.mode = $_.A; //#25061 - break; //#25062 - } //#25062 - }; //#25062 + for (var _DG = 0, _DH = 1; _DG < _DH; _DG++) { //#25366 + $_.n = $get($_.TryC, $_.i); //#25295 + if ($_.n >= 2) { //#25313 + if ($_.n > 4) { //#25301 + $k[$j++] = $a([$get($_.Bvals, $_.lac)]); //#25298 + $_.addtocws(); //#25298 + $_.mode = $_.C; //#25299 + break; //#25300 + } //#25300 + $k[$j++] = $a([$get($_.Bvals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25302 + $_.addtocws(); //#25302 + for (var _Dd = 0, _De = $_.n; _Dd < _De; _Dd++) { //#25311 + if ($get($_.msg, $_.i) < 0) { //#25309 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25305 + $_.addtocws(); //#25305 + $_.i = $_.i + 1; //#25306 + } else { //#25309 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25308 + $_.addtocws(); //#25308 + $_.i = $_.i + 2; //#25309 + } //#25309 + } //#25309 + break; //#25312 + } //#25312 + if ($get($_.DatumB, $_.i)) { //#25343 + var _E2 = $get($_.msg, $_.i); //#25315 + if ((_E2 == $_.fn1) || ((_E2 == $_.fn2) || (_E2 == $_.fn3))) { //#25332 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25316 + $_.addtocws(); //#25316 + if ($get($_.ECI, $_.i)) { //#25321 + $k[$j++] = Infinity; //#25318 + $_.ECIabc(); //#25318 + var _EF = $a(); //#25318 + $k[$j++] = _EF; //#25318 + $_.addtocws(); //#25318 + $_.i = $_.i + 7; //#25319 + break; //#25320 + } //#25320 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25329 + $_.i = $_.i + 1; //#25323 + $_.mode = $_.C; //#25324 + $_.inmac = 0; //#25325 + $_.segstart = $_.i; //#25326 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25327 + break; //#25328 + } //#25328 + $_.i = $_.i + 1; //#25330 + break; //#25331 + } //#25331 + if (($get($_.msg, $_.i) == 13) && ($_.i < ($_.msglen - 1))) { //#25339 + if ($get($_.msg, $_.i + 1) == 10) { //#25338 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25335 + $_.addtocws(); //#25335 + $_.i = $_.i + 2; //#25336 + break; //#25337 + } //#25337 + } //#25337 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25340 + $_.addtocws(); //#25340 + $_.i = $_.i + 1; //#25341 + break; //#25342 + } //#25342 + if ($get($_.Binary, $_.i)) { //#25357 + if ($get($_.DatumB, $_.i + 1)) { //#25353 + if ($get($_.msg, $_.i) < 160) { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25347 + $_.addtocws(); //#25347 + } else { //#25349 + $k[$j++] = $a([$get($_.Bvals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25349 + $_.addtocws(); //#25349 + } //#25349 + $_.i = $_.i + 1; //#25351 + break; //#25352 + } //#25352 + $k[$j++] = $a([$get($_.Bvals, $_.bin)]); //#25354 + $_.addtocws(); //#25354 + $_.mode = $_.BIN; //#25355 + break; //#25356 + } //#25356 + if ($get($_.AheadA, $_.i) == 1) { //#25362 + $k[$j++] = $a([$get($_.Bvals, $_.sfa), $get($_.Avals, $get($_.msg, $_.i))]); //#25359 + $_.addtocws(); //#25359 + $_.i = $_.i + 1; //#25360 + break; //#25361 + } //#25361 + $k[$j++] = $a([$get($_.Bvals, $_.laa)]); //#25363 + $_.addtocws(); //#25363 + $_.mode = $_.A; //#25364 + break; //#25365 + } //#25365 + }; //#25365 $_.encA = function() { - for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25141 - $_.n = $get($_.TryC, $_.i); //#25068 - if ($_.n >= 2) { //#25086 - if ($_.n > 4) { //#25074 - $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25071 - $_.addtocws(); //#25071 - $_.mode = $_.C; //#25072 - break; //#25073 - } //#25073 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25075 - $_.addtocws(); //#25075 - for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25084 - if ($get($_.msg, $_.i) < 0) { //#25082 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25078 - $_.addtocws(); //#25078 - $_.i = $_.i + 1; //#25079 - } else { //#25082 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25081 - $_.addtocws(); //#25081 - $_.i = $_.i + 2; //#25082 - } //#25082 - } //#25082 - break; //#25085 - } //#25085 - if ($get($_.DatumA, $_.i)) { //#25109 - var _GQ = $get($_.msg, $_.i); //#25088 - if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25105 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25089 - $_.addtocws(); //#25089 - if ($get($_.ECI, $_.i)) { //#25094 - $k[$j++] = Infinity; //#25091 - $_.ECIabc(); //#25091 - var _Gd = $a(); //#25091 - $k[$j++] = _Gd; //#25091 - $_.addtocws(); //#25091 - $_.i = $_.i + 7; //#25092 - break; //#25093 - } //#25093 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25102 - $_.i = $_.i + 1; //#25096 - $_.mode = $_.C; //#25097 - $_.inmac = 0; //#25098 - $_.segstart = $_.i; //#25099 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25100 - break; //#25101 - } //#25101 - $_.i = $_.i + 1; //#25103 - break; //#25104 - } //#25104 - $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25106 - $_.addtocws(); //#25106 - $_.i = $_.i + 1; //#25107 - break; //#25108 - } //#25108 - if ($get($_.Binary, $_.i)) { //#25123 - if ($get($_.DatumA, $_.i + 1)) { //#25119 - if ($get($_.msg, $_.i) < 160) { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25113 - $_.addtocws(); //#25113 - } else { //#25115 - $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25115 - $_.addtocws(); //#25115 - } //#25115 - $_.i = $_.i + 1; //#25117 - break; //#25118 - } //#25118 - $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25120 - $_.addtocws(); //#25120 - $_.mode = $_.BIN; //#25121 - break; //#25122 - } //#25122 - $_.n = $get($_.AheadB, $_.i); //#25124 - if ($_.n > 6) { //#25129 - $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25126 - $_.addtocws(); //#25126 - $_.mode = $_.B; //#25127 - break; //#25128 - } //#25128 - $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25130 - $_.addtocws(); //#25130 - for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25139 - if ($get($_.msg, $_.i) == 13) { //#25137 - $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25133 - $_.addtocws(); //#25133 - $_.i = $_.i + 2; //#25134 - } else { //#25137 - $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25136 - $_.addtocws(); //#25136 - $_.i = $_.i + 1; //#25137 - } //#25137 - } //#25137 - break; //#25140 - } //#25140 - }; //#25140 + for (var _Fe = 0, _Ff = 1; _Fe < _Ff; _Fe++) { //#25444 + $_.n = $get($_.TryC, $_.i); //#25371 + if ($_.n >= 2) { //#25389 + if ($_.n > 4) { //#25377 + $k[$j++] = $a([$get($_.Avals, $_.lac)]); //#25374 + $_.addtocws(); //#25374 + $_.mode = $_.C; //#25375 + break; //#25376 + } //#25376 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfc, $_.sc2, $_.sc3, $_.sc4]), $f($_.n - 1)))]); //#25378 + $_.addtocws(); //#25378 + for (var _G1 = 0, _G2 = $_.n; _G1 < _G2; _G1++) { //#25387 + if ($get($_.msg, $_.i) < 0) { //#25385 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25381 + $_.addtocws(); //#25381 + $_.i = $_.i + 1; //#25382 + } else { //#25385 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25384 + $_.addtocws(); //#25384 + $_.i = $_.i + 2; //#25385 + } //#25385 + } //#25385 + break; //#25388 + } //#25388 + if ($get($_.DatumA, $_.i)) { //#25412 + var _GQ = $get($_.msg, $_.i); //#25391 + if ((_GQ == $_.fn1) || ((_GQ == $_.fn2) || (_GQ == $_.fn3))) { //#25408 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25392 + $_.addtocws(); //#25392 + if ($get($_.ECI, $_.i)) { //#25397 + $k[$j++] = Infinity; //#25394 + $_.ECIabc(); //#25394 + var _Gd = $a(); //#25394 + $k[$j++] = _Gd; //#25394 + $_.addtocws(); //#25394 + $_.i = $_.i + 7; //#25395 + break; //#25396 + } //#25396 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25405 + $_.i = $_.i + 1; //#25399 + $_.mode = $_.C; //#25400 + $_.inmac = 0; //#25401 + $_.segstart = $_.i; //#25402 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25403 + break; //#25404 + } //#25404 + $_.i = $_.i + 1; //#25406 + break; //#25407 + } //#25407 + $k[$j++] = $a([$get($_.Avals, $get($_.msg, $_.i))]); //#25409 + $_.addtocws(); //#25409 + $_.i = $_.i + 1; //#25410 + break; //#25411 + } //#25411 + if ($get($_.Binary, $_.i)) { //#25426 + if ($get($_.DatumA, $_.i + 1)) { //#25422 + if ($get($_.msg, $_.i) < 160) { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsa), $get($_.Avals, $f($get($_.msg, $_.i) - 128))]); //#25416 + $_.addtocws(); //#25416 + } else { //#25418 + $k[$j++] = $a([$get($_.Avals, $_.bsb), $get($_.Bvals, $f($get($_.msg, $_.i) - 128))]); //#25418 + $_.addtocws(); //#25418 + } //#25418 + $_.i = $_.i + 1; //#25420 + break; //#25421 + } //#25421 + $k[$j++] = $a([$get($_.Avals, $_.bin)]); //#25423 + $_.addtocws(); //#25423 + $_.mode = $_.BIN; //#25424 + break; //#25425 + } //#25425 + $_.n = $get($_.AheadB, $_.i); //#25427 + if ($_.n > 6) { //#25432 + $k[$j++] = $a([$get($_.Avals, $_.lab)]); //#25429 + $_.addtocws(); //#25429 + $_.mode = $_.B; //#25430 + break; //#25431 + } //#25431 + $k[$j++] = $a([$get($_.Avals, $get($a([$_.sfb, $_.sb2, $_.sb3, $_.sb4, $_.sb5, $_.sb6]), $f($_.n - 1)))]); //#25433 + $_.addtocws(); //#25433 + for (var _Ht = 0, _Hu = $_.n; _Ht < _Hu; _Ht++) { //#25442 + if ($get($_.msg, $_.i) == 13) { //#25440 + $k[$j++] = $a([$get($_.Bvals, $_.crl)]); //#25436 + $_.addtocws(); //#25436 + $_.i = $_.i + 2; //#25437 + } else { //#25440 + $k[$j++] = $a([$get($_.Bvals, $get($_.msg, $_.i))]); //#25439 + $_.addtocws(); //#25439 + $_.i = $_.i + 1; //#25440 + } //#25440 + } //#25440 + break; //#25443 + } //#25443 + }; //#25443 $_.encBIN = function() { - for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25203 - $_.n = $get($_.TryC, $_.i); //#25146 - if ($_.n >= 2) { //#25165 - $k[$j++] = Infinity; //#25148 - $_.finaliseBIN(); //#25148 - var _IG = $a(); //#25148 - $k[$j++] = _IG; //#25148 - $_.addtocws(); //#25148 - if ($_.n > 7) { //#25153 - $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25150 - $_.addtocws(); //#25150 - $_.mode = $_.C; //#25151 - break; //#25152 - } //#25152 - $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25154 - $_.addtocws(); //#25154 - for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25163 - if ($get($_.msg, $_.i) < 0) { //#25161 - $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25157 - $_.addtocws(); //#25157 - $_.i = $_.i + 1; //#25158 - } else { //#25161 - $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25160 - $_.addtocws(); //#25160 - $_.i = $_.i + 2; //#25161 - } //#25161 - } //#25161 - break; //#25164 - } //#25164 - if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25171 - $k[$j++] = Infinity; //#25167 - $_.ECIbin(); //#25167 - var _J0 = $a(); //#25167 - $k[$j++] = _J0; //#25167 - $_.addtocws(); //#25167 - $_.i = $_.i + 7; //#25168 - if ($_.i == $_.msglen) { //#25169 - $k[$j++] = Infinity; //#25169 - $_.finaliseBIN(); //#25169 - var _J4 = $a(); //#25169 - $k[$j++] = _J4; //#25169 - $_.addtocws(); //#25169 - } //#25169 - break; //#25170 - } //#25170 - if ($get($_.msg, $_.i) >= 0) { //#25181 - if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25180 - $k[$j++] = Infinity; //#25176 - $k[$j++] = $get($_.msg, $_.i); //#25176 - $_.addtobin(); //#25176 - var _JT = $a(); //#25176 - $k[$j++] = _JT; //#25176 - $_.addtocws(); //#25176 - $_.i = $_.i + 1; //#25177 - if ($_.i == $_.msglen) { //#25178 - $k[$j++] = Infinity; //#25178 - $_.finaliseBIN(); //#25178 - var _JX = $a(); //#25178 - $k[$j++] = _JX; //#25178 - $_.addtocws(); //#25178 - } //#25178 - break; //#25179 - } //#25179 - } //#25179 - $k[$j++] = Infinity; //#25182 - $_.finaliseBIN(); //#25182 - var _JY = $a(); //#25182 - $k[$j++] = _JY; //#25182 - $_.addtocws(); //#25182 - if ($_.i != ($_.msglen - 1)) { //#25201 - if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25192 - $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25185 - $_.addtocws(); //#25185 - $_.i = $_.i + 1; //#25186 - $_.mode = $_.C; //#25187 - $_.inmac = 0; //#25188 - $_.segstart = $_.i; //#25189 - $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25190 - break; //#25191 - } //#25191 - if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25194 - $_.addtocws(); //#25194 - $_.mode = $_.A; //#25195 - } else { //#25198 - $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25197 - $_.addtocws(); //#25197 - $_.mode = $_.B; //#25198 - } //#25198 - break; //#25200 - } //#25200 - break; //#25202 - } //#25202 - }; //#25202 - $_.cws = $a(($_.msglen * 2) + 1); //#25206 - $_.mode = $_.C; //#25207 - $_.bvals = $a(5); //#25208 - $_.bpos = 0; //#25208 - $_.inmac = 0; //#25209 - $_.segstart = 0; //#25209 - $_.segend = $get($_.UntilEndSeg, 0); //#25209 - $_.i = 0; //#25210 - $_.j = 0; //#25210 - for (;;) { //#25223 - if ($_.i >= $_.msglen) { //#25211 - break; //#25211 - } //#25211 - if ($_.inmac != 0) { //#25221 - if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25216 - $_.i = $_.i + 2; //#25214 - if ($_.i >= $_.msglen) { //#25215 - break; //#25215 - } //#25215 - } //#25215 - if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25220 - $_.i = $_.i + 1; //#25218 - if ($_.i >= $_.msglen) { //#25219 - break; //#25219 - } //#25219 - } //#25219 - } //#25219 + for (var _IA = 0, _IB = 1; _IA < _IB; _IA++) { //#25506 + $_.n = $get($_.TryC, $_.i); //#25449 + if ($_.n >= 2) { //#25468 + $k[$j++] = Infinity; //#25451 + $_.finaliseBIN(); //#25451 + var _IG = $a(); //#25451 + $k[$j++] = _IG; //#25451 + $_.addtocws(); //#25451 + if ($_.n > 7) { //#25456 + $k[$j++] = $a([$get($_.BINvals, $_.tmc)]); //#25453 + $_.addtocws(); //#25453 + $_.mode = $_.C; //#25454 + break; //#25455 + } //#25455 + $k[$j++] = $a([$get($_.BINvals, $get($a([$_.sc2, $_.sc3, $_.sc4, $_.sc5, $_.sc6, $_.sc7]), $f($_.n - 2)))]); //#25457 + $_.addtocws(); //#25457 + for (var _Ia = 0, _Ib = $_.n; _Ia < _Ib; _Ia++) { //#25466 + if ($get($_.msg, $_.i) < 0) { //#25464 + $k[$j++] = $a([$get($_.Cvals, $get($_.msg, $_.i))]); //#25460 + $_.addtocws(); //#25460 + $_.i = $_.i + 1; //#25461 + } else { //#25464 + $k[$j++] = $a([$f(($f($get($_.msg, $_.i) - 48) * 10) + $f($get($_.msg, $_.i + 1) - 48))]); //#25463 + $_.addtocws(); //#25463 + $_.i = $_.i + 2; //#25464 + } //#25464 + } //#25464 + break; //#25467 + } //#25467 + if (($get($_.ECI, $_.i) && $get($_.Binary, $_.i + 7))) { //#25474 + $k[$j++] = Infinity; //#25470 + $_.ECIbin(); //#25470 + var _J0 = $a(); //#25470 + $k[$j++] = _J0; //#25470 + $_.addtocws(); //#25470 + $_.i = $_.i + 7; //#25471 + if ($_.i == $_.msglen) { //#25472 + $k[$j++] = Infinity; //#25472 + $_.finaliseBIN(); //#25472 + var _J4 = $a(); //#25472 + $k[$j++] = _J4; //#25472 + $_.addtocws(); //#25472 + } //#25472 + break; //#25473 + } //#25473 + if ($get($_.msg, $_.i) >= 0) { //#25484 + if (((($get($_.Binary, $_.i) || $get($_.Binary, $_.i + 1)) || $get($_.Binary, $_.i + 2)) || $get($_.Binary, $_.i + 3)) || ($get($_.ECI, $_.i + 1) && $get($_.Binary, $_.i + 8))) { //#25483 + $k[$j++] = Infinity; //#25479 + $k[$j++] = $get($_.msg, $_.i); //#25479 + $_.addtobin(); //#25479 + var _JT = $a(); //#25479 + $k[$j++] = _JT; //#25479 + $_.addtocws(); //#25479 + $_.i = $_.i + 1; //#25480 + if ($_.i == $_.msglen) { //#25481 + $k[$j++] = Infinity; //#25481 + $_.finaliseBIN(); //#25481 + var _JX = $a(); //#25481 + $k[$j++] = _JX; //#25481 + $_.addtocws(); //#25481 + } //#25481 + break; //#25482 + } //#25482 + } //#25482 + $k[$j++] = Infinity; //#25485 + $_.finaliseBIN(); //#25485 + var _JY = $a(); //#25485 + $k[$j++] = _JY; //#25485 + $_.addtocws(); //#25485 + if ($_.i != ($_.msglen - 1)) { //#25504 + if (($get($_.msg, $_.i) == $_.fn3) && ($_.i != $_.segstart)) { //#25495 + $k[$j++] = $a([$get($_.BINvals, $_.tms)]); //#25488 + $_.addtocws(); //#25488 + $_.i = $_.i + 1; //#25489 + $_.mode = $_.C; //#25490 + $_.inmac = 0; //#25491 + $_.segstart = $_.i; //#25492 + $_.segend = $f($_.i + $get($_.UntilEndSeg, $_.i)); //#25493 + break; //#25494 + } //#25494 + if ($gt($get($_.AheadA, $_.i), $get($_.AheadB, $_.i))) { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tma)]); //#25497 + $_.addtocws(); //#25497 + $_.mode = $_.A; //#25498 + } else { //#25501 + $k[$j++] = $a([$get($_.BINvals, $_.tmb)]); //#25500 + $_.addtocws(); //#25500 + $_.mode = $_.B; //#25501 + } //#25501 + break; //#25503 + } //#25503 + break; //#25505 + } //#25505 + }; //#25505 + $_.cws = $a(($_.msglen * 2) + 1); //#25509 + $_.mode = $_.C; //#25510 + $_.bvals = $a(5); //#25511 + $_.bpos = 0; //#25511 + $_.inmac = 0; //#25512 + $_.segstart = 0; //#25512 + $_.segend = $get($_.UntilEndSeg, 0); //#25512 + $_.i = 0; //#25513 + $_.j = 0; //#25513 + for (;;) { //#25526 + if ($_.i >= $_.msglen) { //#25514 + break; //#25514 + } //#25514 + if ($_.inmac != 0) { //#25524 + if (($_.inmac != $_.mac) && ($_.i == $f($_.segend - 2))) { //#25519 + $_.i = $_.i + 2; //#25517 + if ($_.i >= $_.msglen) { //#25518 + break; //#25518 + } //#25518 + } //#25518 + if (($_.inmac == $_.mac) && ($_.i == $f($_.segend - 1))) { //#25523 + $_.i = $_.i + 1; //#25521 + if ($_.i >= $_.msglen) { //#25522 + break; //#25522 + } //#25522 + } //#25522 + } //#25522 if ($_[$get($a(['encA', 'encB', 'encC', 'encBIN']), $_.mode)]() === true) { break; - } //#25222 - } //#25222 - $_.cws = $geti($_.cws, 0, $_.j); //#25224 - $_.nd = $_.cws.length; //#25227 - $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25228 - if ($_.ratio != -1) { //#25256 - $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25230 - $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25231 - $_.h = ~~$_.hgt; //#25232 - $_.w = ~~$_.wid; //#25232 - if ((($_.h + $_.w) % 2) == 1) { //#25246 - if (($_.h * $_.w) < $_.minarea) { //#25234 - $_.h = $_.h + 1; //#25234 - $_.w = $_.w + 1; //#25234 - } //#25234 - } else { //#25246 - if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25246 - $_.w = $_.w + 1; //#25237 - if (($_.h * $_.w) < $_.minarea) { //#25241 - $_.w = $_.w - 1; //#25239 - $_.h = $_.h + 1; //#25239 - if (($_.h * $_.w) < $_.minarea) { //#25240 - $_.w = $_.w + 2; //#25240 - } //#25240 - } //#25240 - } else { //#25246 - $_.h = $_.h + 1; //#25243 - if (($_.h * $_.w) < $_.minarea) { //#25247 - $_.h = $_.h - 1; //#25245 - $_.w = $_.w + 1; //#25245 - if (($_.h * $_.w) < $_.minarea) { //#25246 - $_.h = $_.h + 2; //#25246 - } //#25246 - } //#25246 - } //#25246 - } //#25246 - $_.rows = $_.h; //#25250 - $_.columns = $_.w; //#25250 - } else { //#25256 - if ($_.columns == -1) { //#25254 - var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25253 - $k[$j++] = 'columns'; //#25253 - $k[$j++] = _LN; //#25253 - if (((_LN + $_.rows) % 2) == 0) { //#25253 - var _LP = $k[--$j]; //#25253 - $k[$j++] = $f(_LP + 1); //#25253 - } //#25253 - var _LQ = $k[--$j]; //#25253 - $_[$k[--$j]] = _LQ; //#25253 - } //#25253 - if ($_.rows == -1) { //#25257 - var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25256 - $k[$j++] = 'rows'; //#25256 - $k[$j++] = _LW; //#25256 - if (((_LW + $_.columns) % 2) == 0) { //#25256 - var _LY = $k[--$j]; //#25256 - $k[$j++] = $f(_LY + 1); //#25256 - } //#25256 - var _LZ = $k[--$j]; //#25256 - $_[$k[--$j]] = _LZ; //#25256 - } //#25256 - } //#25256 - $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25261 - for (;;) { //#25265 - var _Le = $_.nd + 1; //#25263 - if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25263 - break; //#25263 - } //#25263 - $_.nd = $_.nd + 1; //#25264 - } //#25264 - $_.nc = (~~($_.nd / 2)) + 3; //#25266 - $_.nw = $_.nd + $_.nc; //#25267 - $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25268 - if ($_.nd > $_.cws.length) { //#25275 - $k[$j++] = Infinity; //#25273 - $aload($_.cws); //#25271 - var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25272 - $k[$j++] = _Lr; //#25273 - for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25273 - $k[$j++] = 106; //#25273 - } //#25273 - $_.cws = $a(); //#25273 - } //#25274 - var _Ly = $get($_.options, 'debugcws') !== undefined; //#25277 - if (_Ly) { //#25277 - $k[$j++] = 'bwipp.debugcws#25277'; //#25277 - $k[$j++] = $_.cws; //#25277 - bwipp_raiseerror(); //#25277 - } //#25277 - if (($_.nw * 9) > ($_.ndots - 2)) { //#25282 - $k[$j++] = 'bwipp.dotcodeTooLong#25281'; //#25281 - $k[$j++] = "Maximum length exceeded"; //#25281 - bwipp_raiseerror(); //#25281 - } //#25281 - if (!bwipp_dotcode.__25311__) { //#25311 - $_ = Object.create($_); //#25311 - $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25310 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25310 - bwipp_dotcode.__25311__ = 1; //#25310 - $_ = Object.getPrototypeOf($_); //#25310 - } //#25310 - if (($_.rows % 2) == 0) { //#25331 - $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25322 - } else { //#25331 - $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25331 - } //#25331 + } //#25525 + } //#25525 + $_.cws = $geti($_.cws, 0, $_.j); //#25527 + $_.nd = $_.cws.length; //#25530 + $_.minarea = (((($_.nd + 3) + (~~($_.nd / 2))) * 9) + 2) * 2; //#25531 + if ($_.ratio != -1) { //#25559 + $_.hgt = Math.sqrt($_.minarea / $_.ratio); //#25533 + $_.wid = Math.sqrt($_.minarea * $_.ratio); //#25534 + $_.h = ~~$_.hgt; //#25535 + $_.w = ~~$_.wid; //#25535 + if ((($_.h + $_.w) % 2) == 1) { //#25549 + if (($_.h * $_.w) < $_.minarea) { //#25537 + $_.h = $_.h + 1; //#25537 + $_.w = $_.w + 1; //#25537 + } //#25537 + } else { //#25549 + if (($_.hgt * $_.w) < ($_.wid * $_.h)) { //#25549 + $_.w = $_.w + 1; //#25540 + if (($_.h * $_.w) < $_.minarea) { //#25544 + $_.w = $_.w - 1; //#25542 + $_.h = $_.h + 1; //#25542 + if (($_.h * $_.w) < $_.minarea) { //#25543 + $_.w = $_.w + 2; //#25543 + } //#25543 + } //#25543 + } else { //#25549 + $_.h = $_.h + 1; //#25546 + if (($_.h * $_.w) < $_.minarea) { //#25550 + $_.h = $_.h - 1; //#25548 + $_.w = $_.w + 1; //#25548 + if (($_.h * $_.w) < $_.minarea) { //#25549 + $_.h = $_.h + 2; //#25549 + } //#25549 + } //#25549 + } //#25549 + } //#25549 + $_.rows = $_.h; //#25553 + $_.columns = $_.w; //#25553 + } else { //#25559 + if ($_.columns == -1) { //#25557 + var _LN = ~~((($_.minarea + $_.rows) - 1) / $_.rows); //#25556 + $k[$j++] = 'columns'; //#25556 + $k[$j++] = _LN; //#25556 + if (((_LN + $_.rows) % 2) == 0) { //#25556 + var _LP = $k[--$j]; //#25556 + $k[$j++] = $f(_LP + 1); //#25556 + } //#25556 + var _LQ = $k[--$j]; //#25556 + $_[$k[--$j]] = _LQ; //#25556 + } //#25556 + if ($_.rows == -1) { //#25560 + var _LW = ~~((($_.minarea + $_.columns) - 1) / $_.columns); //#25559 + $k[$j++] = 'rows'; //#25559 + $k[$j++] = _LW; //#25559 + if (((_LW + $_.columns) % 2) == 0) { //#25559 + var _LY = $k[--$j]; //#25559 + $k[$j++] = $f(_LY + 1); //#25559 + } //#25559 + var _LZ = $k[--$j]; //#25559 + $_[$k[--$j]] = _LZ; //#25559 + } //#25559 + } //#25559 + $_.ndots = ~~(($_.rows * $_.columns) / 2); //#25564 + for (;;) { //#25568 + var _Le = $_.nd + 1; //#25566 + if ((((_Le + ((~~(_Le / 2)) + 3)) * 9) + 2) > $_.ndots) { //#25566 + break; //#25566 + } //#25566 + $_.nd = $_.nd + 1; //#25567 + } //#25567 + $_.nc = (~~($_.nd / 2)) + 3; //#25569 + $_.nw = $_.nd + $_.nc; //#25570 + $_.rembits = $_.ndots - (($_.nw * 9) + 2); //#25571 + if ($_.nd > $_.cws.length) { //#25578 + $k[$j++] = Infinity; //#25573 + $aload($_.cws); //#25574 + var _Lr = ($_.mode == $_.BIN) ? 109 : 106; //#25575 + $k[$j++] = _Lr; //#25576 + for (var _Lu = 0, _Lv = ($_.nd - $_.cws.length) - 1; _Lu < _Lv; _Lu++) { //#25576 + $k[$j++] = 106; //#25576 + } //#25576 + $_.cws = $a(); //#25576 + } //#25577 + var _Ly = $get($_.options, 'debugcws') !== undefined; //#25580 + if (_Ly) { //#25580 + $k[$j++] = 'bwipp.debugcws#25580'; //#25580 + $k[$j++] = $_.cws; //#25580 + bwipp_raiseerror(); //#25580 + } //#25580 + if (($_.nw * 9) > ($_.ndots - 2)) { //#25585 + $k[$j++] = 'bwipp.dotcodeTooLong#25584'; //#25584 + $k[$j++] = "Maximum length exceeded"; //#25584 + bwipp_raiseerror(); //#25584 + } //#25584 + if (!bwipp_dotcode.__25614__) { //#25614 + $_ = Object.create($_); //#25614 + $_.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#25613 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25613 + bwipp_dotcode.__25614__ = 1; //#25613 + $_ = Object.getPrototypeOf($_); //#25613 + } //#25613 + if (($_.rows % 2) == 0) { //#25634 + $_.sixedges = $a([$a([$_.columns - 1, $_.rows - 2]), $a([0, $_.rows - 2]), $a([$_.columns - 2, $_.rows - 1]), $a([1, $_.rows - 1]), $a([$_.columns - 1, 0]), $a([0, 0])]); //#25625 + } else { //#25634 + $_.sixedges = $a([$a([$_.columns - 2, 0]), $a([$_.columns - 2, $_.rows - 1]), $a([$_.columns - 1, 1]), $a([$_.columns - 1, $_.rows - 2]), $a([0, 0]), $a([0, $_.rows - 1])]); //#25634 + } //#25634 $_.dmv = function() { - var _MY = $k[--$j]; //#25334 - var _MZ = $k[--$j]; //#25334 - $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25334 - }; //#25334 - $_.outline = $a($_.rows * $_.columns); //#25337 - for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25344 - $_.y = _Mf; //#25339 - for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25343 - $_.x = _Mi; //#25341 - $k[$j++] = $_.outline; //#25342 - $k[$j++] = $_.x; //#25342 - $k[$j++] = $_.y; //#25342 - $_.dmv(); //#25342 - var _Mo = $k[--$j]; //#25342 - $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25342 - } //#25342 - } //#25342 - var _Mq = $_.sixedges; //#25345 - for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25347 - $k[$j++] = $_.outline; //#25346 - $aload($get(_Mq, _Mr)); //#25346 - $_.dmv(); //#25346 - var _Mv = $k[--$j]; //#25346 - $put($k[--$j], _Mv, 1); //#25346 - } //#25346 + var _MY = $k[--$j]; //#25637 + var _MZ = $k[--$j]; //#25637 + $k[$j++] = $f(_MZ + (_MY * $_.columns)); //#25637 + }; //#25637 + $_.outline = $a($_.rows * $_.columns); //#25640 + for (var _Mf = 0, _Me = $_.rows - 1; _Mf <= _Me; _Mf += 1) { //#25647 + $_.y = _Mf; //#25642 + for (var _Mi = 0, _Mh = $_.columns - 1; _Mi <= _Mh; _Mi += 1) { //#25646 + $_.x = _Mi; //#25644 + $k[$j++] = $_.outline; //#25645 + $k[$j++] = $_.x; //#25645 + $k[$j++] = $_.y; //#25645 + $_.dmv(); //#25645 + var _Mo = $k[--$j]; //#25645 + $put($k[--$j], _Mo, (($_.x + $_.y) % 2) - 1); //#25645 + } //#25645 + } //#25645 + var _Mq = $_.sixedges; //#25648 + for (var _Mr = 0, _Ms = _Mq.length; _Mr < _Ms; _Mr++) { //#25650 + $k[$j++] = $_.outline; //#25649 + $aload($get(_Mq, _Mr)); //#25649 + $_.dmv(); //#25649 + var _Mv = $k[--$j]; //#25649 + $put($k[--$j], _Mv, 1); //#25649 + } //#25649 $_.clearcol = function() { - $_.x = $k[--$j]; //#25350 - $k[$j++] = true; //#25354 - for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25354 - $k[$j++] = $_.x; //#25353 - $k[$j++] = _N1; //#25353 - $_.dmv(); //#25353 - if ($get($_.sym, $k[--$j]) == 1) { //#25353 - $j--; //#25353 - $k[$j++] = false; //#25353 - break; //#25353 - } //#25353 - } //#25353 - }; //#25353 + $_.x = $k[--$j]; //#25653 + $k[$j++] = true; //#25657 + for (var _N1 = $_.x & 1, _N0 = $_.rows - 1; _N1 <= _N0; _N1 += 2) { //#25657 + $k[$j++] = $_.x; //#25656 + $k[$j++] = _N1; //#25656 + $_.dmv(); //#25656 + if ($get($_.sym, $k[--$j]) == 1) { //#25656 + $j--; //#25656 + $k[$j++] = false; //#25656 + break; //#25656 + } //#25656 + } //#25656 + }; //#25656 $_.clearrow = function() { - $_.y = $k[--$j]; //#25358 - $k[$j++] = true; //#25362 - for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25362 - $k[$j++] = _NA; //#25361 - $k[$j++] = $_.y; //#25361 - $_.dmv(); //#25361 - if ($get($_.sym, $k[--$j]) == 1) { //#25361 - $j--; //#25361 - $k[$j++] = false; //#25361 - break; //#25361 - } //#25361 - } //#25361 - }; //#25361 + $_.y = $k[--$j]; //#25661 + $k[$j++] = true; //#25665 + for (var _NA = $_.y & 1, _N9 = $_.columns - 1; _NA <= _N9; _NA += 2) { //#25665 + $k[$j++] = _NA; //#25664 + $k[$j++] = $_.y; //#25664 + $_.dmv(); //#25664 + if ($get($_.sym, $k[--$j]) == 1) { //#25664 + $j--; //#25664 + $k[$j++] = false; //#25664 + break; //#25664 + } //#25664 + } //#25664 + }; //#25664 $_.evalsymbol = function() { - $_.sym = $k[--$j]; //#25367 - $_.worst = 9999999; //#25370 - var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25371 - for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25389 - $aload($get(_NK, _NL)); //#25372 - $_.fl = $k[--$j]; //#25372 - $_.dir = $k[--$j]; //#25372 - $_.sum = 0; //#25373 - $_.first = -1; //#25373 - $_.last = -1; //#25373 - var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25374 - for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25385 - $_[$_.dir] = _NT; //#25375 - var _NV = $_.sym; //#25376 - var _NX = $_[$_.dir]; //#25377 - var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25378 - var _Nc = (_NZ - 1) * $_.fl; //#25379 - if ($eq($_.dir, 'y')) { //#25379 - var _ = _Nc; //#25379 - _Nc = _NX; //#25379 - _NX = _; //#25379 - } //#25379 - $k[$j++] = _NV; //#25380 - $k[$j++] = _NX; //#25380 - $k[$j++] = _Nc; //#25380 - $_.dmv(); //#25380 - var _Nd = $k[--$j]; //#25380 - if ($get($k[--$j], _Nd) == 1) { //#25384 - if ($_.first == -1) { //#25381 - $_.first = $_[$_.dir]; //#25381 - } //#25381 - $_.last = $_[$_.dir]; //#25382 - $_.sum = $_.sum + 1; //#25383 - } //#25383 - } //#25383 - var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25387 - var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25388 - $k[$j++] = _Nr; //#25388 - if (_Nr < $_.worst) { //#25388 - $_.worst = $k[--$j]; //#25388 - } else { //#25388 - $j--; //#25388 - } //#25388 - } //#25388 - $_.pen = 0; //#25391 - if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25409 - $_.sum = 0; //#25397 - $_.p = 0; //#25397 - for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25407 - $k[$j++] = _Ny; //#25399 - $_.clearcol(); //#25399 - if ($k[--$j]) { //#25405 - $_.sum = $_.sum + 1; //#25400 - $k[$j++] = 'p'; //#25401 - if ($_.sum == 1) { //#25401 - $k[$j++] = $_.rows; //#25401 - } else { //#25401 - $k[$j++] = $_.p * $_.rows; //#25401 - } //#25401 - var _O5 = $k[--$j]; //#25401 - $_[$k[--$j]] = _O5; //#25401 - } else { //#25405 - $_.sum = 0; //#25403 - $_.pen = $_.pen + $_.p; //#25404 - $_.p = 0; //#25405 - } //#25405 - } //#25405 - $_.pen = $_.pen + $_.p; //#25408 - } //#25408 - if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25427 - $_.sum = 0; //#25415 - $_.p = 0; //#25415 - for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25425 - $k[$j++] = _OF; //#25417 - $_.clearrow(); //#25417 - if ($k[--$j]) { //#25423 - $_.sum = $_.sum + 1; //#25418 - $k[$j++] = 'p'; //#25419 - if ($_.sum == 1) { //#25419 - $k[$j++] = $_.columns; //#25419 - } else { //#25419 - $k[$j++] = $_.p * $_.columns; //#25419 - } //#25419 - var _OM = $k[--$j]; //#25419 - $_[$k[--$j]] = _OM; //#25419 - } else { //#25423 - $_.sum = 0; //#25421 - $_.pen = $_.pen + $_.p; //#25422 - $_.p = 0; //#25423 - } //#25423 - } //#25423 - $_.pen = $_.pen + $_.p; //#25426 - } //#25426 - $k[$j++] = Infinity; //#25437 - for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25431 - $k[$j++] = 0; //#25431 - } //#25431 - for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25436 - $k[$j++] = 0; //#25434 - $k[$j++] = 0; //#25434 - $aload($geti($_.sym, _OY, $_.columns)); //#25434 - $k[$j++] = 0; //#25435 - $k[$j++] = 0; //#25435 - } //#25435 - for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25437 - $k[$j++] = 0; //#25437 - } //#25437 - $_.symp = $a(); //#25437 - $_.columns = $_.columns + 4; //#25441 - $_.rows = $_.rows + 4; //#25442 - $_.sum = 0; //#25443 - for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25461 - $_.y = _Ol; //#25445 - for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25460 - $_.x = _Op; //#25447 - for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25459 - $k[$j++] = $_.symp; //#25449 - $k[$j++] = $_.x - 1; //#25449 - $k[$j++] = $_.y - 1; //#25449 - $_.dmv(); //#25449 - var _Ov = $k[--$j]; //#25449 - if ($get($k[--$j], _Ov) == 1) { //#25449 - break; //#25449 - } //#25449 - $k[$j++] = $_.symp; //#25450 - $k[$j++] = $_.x + 1; //#25450 - $k[$j++] = $_.y - 1; //#25450 - $_.dmv(); //#25450 - var _P1 = $k[--$j]; //#25450 - if ($get($k[--$j], _P1) == 1) { //#25450 - break; //#25450 - } //#25450 - $k[$j++] = $_.symp; //#25451 - $k[$j++] = $_.x - 1; //#25451 - $k[$j++] = $_.y + 1; //#25451 - $_.dmv(); //#25451 - var _P7 = $k[--$j]; //#25451 - if ($get($k[--$j], _P7) == 1) { //#25451 - break; //#25451 - } //#25451 - $k[$j++] = $_.symp; //#25452 - $k[$j++] = $_.x + 1; //#25452 - $k[$j++] = $_.y + 1; //#25452 - $_.dmv(); //#25452 - var _PD = $k[--$j]; //#25452 - if ($get($k[--$j], _PD) == 1) { //#25452 - break; //#25452 - } //#25452 - $k[$j++] = $_.symp; //#25453 - $k[$j++] = $_.x; //#25453 - $k[$j++] = $_.y; //#25453 - $_.dmv(); //#25453 - var _PJ = $k[--$j]; //#25453 - if ($get($k[--$j], _PJ) == 0) { //#25453 - $_.sum = $_.sum + 1; //#25453 - break; //#25453 - } //#25453 - $k[$j++] = $_.symp; //#25454 - $k[$j++] = $_.x - 2; //#25454 - $k[$j++] = $_.y; //#25454 - $_.dmv(); //#25454 - var _PQ = $k[--$j]; //#25454 - if ($get($k[--$j], _PQ) == 1) { //#25454 - break; //#25454 - } //#25454 - $k[$j++] = $_.symp; //#25455 - $k[$j++] = $_.x; //#25455 - $k[$j++] = $_.y - 2; //#25455 - $_.dmv(); //#25455 - var _PW = $k[--$j]; //#25455 - if ($get($k[--$j], _PW) == 1) { //#25455 - break; //#25455 - } //#25455 - $k[$j++] = $_.symp; //#25456 - $k[$j++] = $_.x + 2; //#25456 - $k[$j++] = $_.y; //#25456 - $_.dmv(); //#25456 - var _Pc = $k[--$j]; //#25456 - if ($get($k[--$j], _Pc) == 1) { //#25456 - break; //#25456 - } //#25456 - $k[$j++] = $_.symp; //#25457 - $k[$j++] = $_.x; //#25457 - $k[$j++] = $_.y + 2; //#25457 - $_.dmv(); //#25457 - var _Pi = $k[--$j]; //#25457 - if ($get($k[--$j], _Pi) == 1) { //#25457 - break; //#25457 - } //#25457 - $_.sum = $_.sum + 1; //#25458 - } //#25458 - } //#25458 - } //#25458 - $_.columns = $_.columns - 4; //#25462 - $_.rows = $_.rows - 4; //#25463 - if ($_.worst == 0) { //#25468 - $k[$j++] = -99999; //#25466 - } else { //#25468 - $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25468 - } //#25468 - }; //#25468 - $k[$j++] = Infinity; //#25474 - $k[$j++] = 1; //#25474 - for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25474 - var _Pv = $k[--$j]; //#25474 - $k[$j++] = _Pv; //#25474 - $k[$j++] = (_Pv * 3) % 113; //#25474 - } //#25474 - $_.rsalog = $a(); //#25474 - $_.step = (~~($_.nw / 112)) + 1; //#25475 + $_.sym = $k[--$j]; //#25670 + $_.worst = 9999999; //#25673 + var _NK = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#25674 + for (var _NL = 0, _NM = _NK.length; _NL < _NM; _NL++) { //#25692 + $aload($get(_NK, _NL)); //#25675 + $_.fl = $k[--$j]; //#25675 + $_.dir = $k[--$j]; //#25675 + $_.sum = 0; //#25676 + $_.first = -1; //#25676 + $_.last = -1; //#25676 + var _NR = $eq($_.dir, 'x') ? $_.columns : $_.rows; //#25677 + for (var _NT = 0, _NS = _NR - 1; _NT <= _NS; _NT += 1) { //#25688 + $_[$_.dir] = _NT; //#25678 + var _NV = $_.sym; //#25679 + var _NX = $_[$_.dir]; //#25680 + var _NZ = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25681 + var _Nc = (_NZ - 1) * $_.fl; //#25682 + if ($eq($_.dir, 'y')) { //#25682 + var _ = _Nc; //#25682 + _Nc = _NX; //#25682 + _NX = _; //#25682 + } //#25682 + $k[$j++] = _NV; //#25683 + $k[$j++] = _NX; //#25683 + $k[$j++] = _Nc; //#25683 + $_.dmv(); //#25683 + var _Nd = $k[--$j]; //#25683 + if ($get($k[--$j], _Nd) == 1) { //#25687 + if ($_.first == -1) { //#25684 + $_.first = $_[$_.dir]; //#25684 + } //#25684 + $_.last = $_[$_.dir]; //#25685 + $_.sum = $_.sum + 1; //#25686 + } //#25686 + } //#25686 + var _Nq = $eq($_.dir, 'x') ? $_.rows : $_.columns; //#25690 + var _Nr = ($f($f($_.sum + $_.last) - $_.first)) * _Nq; //#25691 + $k[$j++] = _Nr; //#25691 + if (_Nr < $_.worst) { //#25691 + $_.worst = $k[--$j]; //#25691 + } else { //#25691 + $j--; //#25691 + } //#25691 + } //#25691 + $_.pen = 0; //#25694 + if ((($_.rows % 2) == 1) || ($_.rows <= 12)) { //#25712 + $_.sum = 0; //#25700 + $_.p = 0; //#25700 + for (var _Ny = 1, _Nx = $_.columns - 2; _Ny <= _Nx; _Ny += 1) { //#25710 + $k[$j++] = _Ny; //#25702 + $_.clearcol(); //#25702 + if ($k[--$j]) { //#25708 + $_.sum = $_.sum + 1; //#25703 + $k[$j++] = 'p'; //#25704 + if ($_.sum == 1) { //#25704 + $k[$j++] = $_.rows; //#25704 + } else { //#25704 + $k[$j++] = $_.p * $_.rows; //#25704 + } //#25704 + var _O5 = $k[--$j]; //#25704 + $_[$k[--$j]] = _O5; //#25704 + } else { //#25708 + $_.sum = 0; //#25706 + $_.pen = $_.pen + $_.p; //#25707 + $_.p = 0; //#25708 + } //#25708 + } //#25708 + $_.pen = $_.pen + $_.p; //#25711 + } //#25711 + if ((($_.rows % 2) == 0) || ($_.columns <= 12)) { //#25730 + $_.sum = 0; //#25718 + $_.p = 0; //#25718 + for (var _OF = 1, _OE = $_.rows - 2; _OF <= _OE; _OF += 1) { //#25728 + $k[$j++] = _OF; //#25720 + $_.clearrow(); //#25720 + if ($k[--$j]) { //#25726 + $_.sum = $_.sum + 1; //#25721 + $k[$j++] = 'p'; //#25722 + if ($_.sum == 1) { //#25722 + $k[$j++] = $_.columns; //#25722 + } else { //#25722 + $k[$j++] = $_.p * $_.columns; //#25722 + } //#25722 + var _OM = $k[--$j]; //#25722 + $_[$k[--$j]] = _OM; //#25722 + } else { //#25726 + $_.sum = 0; //#25724 + $_.pen = $_.pen + $_.p; //#25725 + $_.p = 0; //#25726 + } //#25726 + } //#25726 + $_.pen = $_.pen + $_.p; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25733 + for (var _OT = 0, _OU = ($_.columns + 4) * 2; _OT < _OU; _OT++) { //#25734 + $k[$j++] = 0; //#25734 + } //#25734 + for (var _OY = 0, _OZ = $_.columns, _OX = $_.sym.length - 1; _OZ < 0 ? _OY >= _OX : _OY <= _OX; _OY += _OZ) { //#25739 + $k[$j++] = 0; //#25737 + $k[$j++] = 0; //#25737 + $aload($geti($_.sym, _OY, $_.columns)); //#25737 + $k[$j++] = 0; //#25738 + $k[$j++] = 0; //#25738 + } //#25738 + for (var _Oe = 0, _Of = ($_.columns + 4) * 2; _Oe < _Of; _Oe++) { //#25740 + $k[$j++] = 0; //#25740 + } //#25740 + $_.symp = $a(); //#25740 + $_.columns = $_.columns + 4; //#25744 + $_.rows = $_.rows + 4; //#25745 + $_.sum = 0; //#25746 + for (var _Ol = 2, _Ok = $_.rows - 3; _Ol <= _Ok; _Ol += 1) { //#25764 + $_.y = _Ol; //#25748 + for (var _Op = ($_.y & 1) + 2, _Oo = $_.columns - 3; _Op <= _Oo; _Op += 2) { //#25763 + $_.x = _Op; //#25750 + for (var _Oq = 0, _Or = 1; _Oq < _Or; _Oq++) { //#25762 + $k[$j++] = $_.symp; //#25752 + $k[$j++] = $_.x - 1; //#25752 + $k[$j++] = $_.y - 1; //#25752 + $_.dmv(); //#25752 + var _Ov = $k[--$j]; //#25752 + if ($get($k[--$j], _Ov) == 1) { //#25752 + break; //#25752 + } //#25752 + $k[$j++] = $_.symp; //#25753 + $k[$j++] = $_.x + 1; //#25753 + $k[$j++] = $_.y - 1; //#25753 + $_.dmv(); //#25753 + var _P1 = $k[--$j]; //#25753 + if ($get($k[--$j], _P1) == 1) { //#25753 + break; //#25753 + } //#25753 + $k[$j++] = $_.symp; //#25754 + $k[$j++] = $_.x - 1; //#25754 + $k[$j++] = $_.y + 1; //#25754 + $_.dmv(); //#25754 + var _P7 = $k[--$j]; //#25754 + if ($get($k[--$j], _P7) == 1) { //#25754 + break; //#25754 + } //#25754 + $k[$j++] = $_.symp; //#25755 + $k[$j++] = $_.x + 1; //#25755 + $k[$j++] = $_.y + 1; //#25755 + $_.dmv(); //#25755 + var _PD = $k[--$j]; //#25755 + if ($get($k[--$j], _PD) == 1) { //#25755 + break; //#25755 + } //#25755 + $k[$j++] = $_.symp; //#25756 + $k[$j++] = $_.x; //#25756 + $k[$j++] = $_.y; //#25756 + $_.dmv(); //#25756 + var _PJ = $k[--$j]; //#25756 + if ($get($k[--$j], _PJ) == 0) { //#25756 + $_.sum = $_.sum + 1; //#25756 + break; //#25756 + } //#25756 + $k[$j++] = $_.symp; //#25757 + $k[$j++] = $_.x - 2; //#25757 + $k[$j++] = $_.y; //#25757 + $_.dmv(); //#25757 + var _PQ = $k[--$j]; //#25757 + if ($get($k[--$j], _PQ) == 1) { //#25757 + break; //#25757 + } //#25757 + $k[$j++] = $_.symp; //#25758 + $k[$j++] = $_.x; //#25758 + $k[$j++] = $_.y - 2; //#25758 + $_.dmv(); //#25758 + var _PW = $k[--$j]; //#25758 + if ($get($k[--$j], _PW) == 1) { //#25758 + break; //#25758 + } //#25758 + $k[$j++] = $_.symp; //#25759 + $k[$j++] = $_.x + 2; //#25759 + $k[$j++] = $_.y; //#25759 + $_.dmv(); //#25759 + var _Pc = $k[--$j]; //#25759 + if ($get($k[--$j], _Pc) == 1) { //#25759 + break; //#25759 + } //#25759 + $k[$j++] = $_.symp; //#25760 + $k[$j++] = $_.x; //#25760 + $k[$j++] = $_.y + 2; //#25760 + $_.dmv(); //#25760 + var _Pi = $k[--$j]; //#25760 + if ($get($k[--$j], _Pi) == 1) { //#25760 + break; //#25760 + } //#25760 + $_.sum = $_.sum + 1; //#25761 + } //#25761 + } //#25761 + } //#25761 + $_.columns = $_.columns - 4; //#25765 + $_.rows = $_.rows - 4; //#25766 + if ($_.worst == 0) { //#25771 + $k[$j++] = -99999; //#25769 + } else { //#25771 + $k[$j++] = $f(($f($_.worst - ($_.sum * $_.sum))) - $_.pen); //#25771 + } //#25771 + }; //#25771 + if (!bwipp_dotcode.__25779__) { //#25779 + $_ = Object.create($_); //#25779 + $k[$j++] = Infinity; //#25778 + $k[$j++] = 1; //#25778 + for (var _Pt = 0, _Pu = 112; _Pt < _Pu; _Pt++) { //#25778 + var _Pv = $k[--$j]; //#25778 + $k[$j++] = _Pv; //#25778 + $k[$j++] = (_Pv * 3) % 113; //#25778 + } //#25778 + $_.rsalog = $a(); //#25778 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_dotcode.$ctx[id] = $_[id]); //#25778 + bwipp_dotcode.__25779__ = 1; //#25778 + $_ = Object.getPrototypeOf($_); //#25778 + } //#25778 + $_.step = (~~($_.nw / 112)) + 1; //#25780 $_.offset = function() { - var _Pz = $k[--$j]; //#25476 - $k[$j++] = $f((_Pz * $_.step) + $_.start); //#25476 - }; //#25476 - $_.bestscore = -99999999; //#25484 - $k[$j++] = 'masks'; //#25489 - if ($_.mask != -1) { //#25488 - $k[$j++] = $a([$_.mask]); //#25486 - } else { //#25488 - if ($_.fast) { //#25488 - $k[$j++] = $a([3, 2, 1, 0]); //#25488 - } else { //#25488 - $k[$j++] = $a([0, 1, 2, 3]); //#25488 - } //#25488 - } //#25488 - var _Q7 = $k[--$j]; //#25489 - $_[$k[--$j]] = _Q7; //#25489 - $_.litmasks = $a(4); //#25490 - $forall($_.masks, function() { //#25592 - $_.mask = $k[--$j]; //#25493 - $k[$j++] = Infinity; //#25499 - var _QG = $_.cws; //#25498 - $k[$j++] = $_.mask; //#25498 - $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25498 - $k[$j++] = 0; //#25498 - for (var _QH = 0, _QI = _QG.length; _QH < _QI; _QH++) { //#25498 - var _QK = $k[--$j]; //#25498 - var _QL = $k[--$j]; //#25498 - $k[$j++] = $f($get(_QG, _QH) + _QK) % 113; //#25498 - $k[$j++] = _QL; //#25498 - $k[$j++] = $f(_QK + _QL); //#25498 - } //#25498 - $j -= 2; //#25498 - for (var _QN = 0, _QO = $_.nc; _QN < _QO; _QN++) { //#25499 - $k[$j++] = 0; //#25499 - } //#25499 - $_.rscws = $a(); //#25499 - for (var _QS = 0, _QR = $_.step - 1; _QS <= _QR; _QS += 1) { //#25523 - $_.start = _QS; //#25502 - $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25503 - $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25504 - $_.NC = $_.NW - $_.ND; //#25505 - $k[$j++] = Infinity; //#25506 - $k[$j++] = 1; //#25506 - for (var _Qe = 0, _Qf = $_.NC; _Qe < _Qf; _Qe++) { //#25506 - $k[$j++] = 0; //#25506 - } //#25506 - $_.coeffs = $a(); //#25506 - for (var _Qj = 1, _Qi = $_.NC; _Qj <= _Qi; _Qj += 1) { //#25513 - $_.i = _Qj; //#25508 - for (var _Ql = $_.NC; _Ql >= 1; _Ql -= 1) { //#25512 - $_.j = _Ql; //#25510 - $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25511 - } //#25511 - } //#25511 - for (var _Qz = 0, _Qy = $_.ND - 1; _Qz <= _Qy; _Qz += 1) { //#25521 - $k[$j++] = 't'; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = _Qz; //#25515 - $_.offset(); //#25515 - var _R1 = $k[--$j]; //#25515 - var _R3 = $get($k[--$j], _R1); //#25515 - $k[$j++] = _R3; //#25515 - $k[$j++] = $_.rscws; //#25515 - $k[$j++] = $_.ND; //#25515 - $_.offset(); //#25515 - var _R6 = $k[--$j]; //#25515 - var _R8 = $get($k[--$j], _R6); //#25515 - var _R9 = $k[--$j]; //#25515 - $_[$k[--$j]] = $f(_R9 + _R8) % 113; //#25515 - for (var _RD = 0, _RC = $_.NC - 2; _RD <= _RC; _RD += 1) { //#25519 - $_.j = _RD; //#25517 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = $_.ND + $_.j; //#25518 - $_.offset(); //#25518 - $k[$j++] = $_.rscws; //#25518 - $k[$j++] = ($_.ND + $_.j) + 1; //#25518 - $_.offset(); //#25518 - var _RK = $k[--$j]; //#25518 - var _RM = $get($k[--$j], _RK); //#25518 - var _RR = $k[--$j]; //#25518 - $put($k[--$j], _RR, ($f($f(_RM + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25518 - } //#25518 - $k[$j++] = $_.rscws; //#25520 - $k[$j++] = ($_.ND + $_.NC) - 1; //#25520 - $_.offset(); //#25520 - var _Ra = $k[--$j]; //#25520 - $put($k[--$j], _Ra, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25520 - } //#25520 - for (var _Rf = $_.ND, _Re = $_.NW - 1; _Rf <= _Re; _Rf += 1) { //#25522 - $k[$j++] = _Rf; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rf; //#25522 - $_.offset(); //#25522 - var _Ri = $k[--$j]; //#25522 - var _Rj = $k[--$j]; //#25522 - var _Rk = $k[--$j]; //#25522 - $k[$j++] = _Rj; //#25522 - $k[$j++] = _Ri; //#25522 - $k[$j++] = 113; //#25522 - $k[$j++] = $_.rscws; //#25522 - $k[$j++] = _Rk; //#25522 - $_.offset(); //#25522 - var _Rl = $k[--$j]; //#25522 - var _Rn = $get($k[--$j], _Rl); //#25522 - var _Ro = $k[--$j]; //#25522 - var _Rp = $k[--$j]; //#25522 - $put($k[--$j], _Rp, $f(_Ro - _Rn) % 113); //#25522 - } //#25522 - } //#25522 - $_.bits = $s($_.ndots); //#25526 - $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25527 - for (var _Rz = 1, _Ry = $_.nw; _Rz <= _Ry; _Rz += 1) { //#25531 - $_.i = _Rz; //#25529 - $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25530 - } //#25530 - if ($_.rembits > 0) { //#25534 - $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25533 - } //#25533 - var _SC = $_.outline; //#25537 - $_.pixs = $arrcpy($a(_SC.length), _SC); //#25537 - $_.posx = 0; //#25538 - $k[$j++] = 'posy'; //#25539 - if (($_.rows % 2) == 0) { //#25539 - $k[$j++] = 0; //#25539 - } else { //#25539 - $k[$j++] = $_.rows - 1; //#25539 - } //#25539 - var _SH = $k[--$j]; //#25539 - $_[$k[--$j]] = _SH; //#25539 - var _SL = $geti($_.bits, 0, $_.bits.length - 6); //#25540 - for (var _SM = 0, _SN = _SL.length; _SM < _SN; _SM++) { //#25558 - $k[$j++] = $get(_SL, _SM); //#25556 - for (;;) { //#25556 - $k[$j++] = $_.pixs; //#25542 - $k[$j++] = $_.posx; //#25542 - $k[$j++] = $_.posy; //#25542 - $_.dmv(); //#25542 - var _SS = $k[--$j]; //#25542 - if ($get($k[--$j], _SS) == -1) { //#25542 - break; //#25542 - } //#25542 - if (($_.rows % 2) == 0) { //#25553 - $_.posy = $_.posy + 1; //#25544 - if ($_.posy == $_.rows) { //#25548 - $_.posy = 0; //#25546 - $_.posx = $_.posx + 1; //#25547 - } //#25547 - } else { //#25553 - $_.posx = $_.posx + 1; //#25550 - if ($_.posx == $_.columns) { //#25554 - $_.posx = 0; //#25552 - $_.posy = $_.posy - 1; //#25553 - } //#25553 - } //#25553 - } //#25553 - $k[$j++] = $_.pixs; //#25557 - $k[$j++] = $_.posx; //#25557 - $k[$j++] = $_.posy; //#25557 - $_.dmv(); //#25557 - var _Sh = $k[--$j]; //#25557 - var _Si = $k[--$j]; //#25557 - $put(_Si, _Sh, $f($k[--$j] - 48)); //#25557 - } //#25557 - for (var _Sk = 0; _Sk <= 5; _Sk += 1) { //#25563 - $_.i = _Sk; //#25560 - $k[$j++] = $_.pixs; //#25561 - $aload($get($_.sixedges, $_.i)); //#25561 - $_.dmv(); //#25561 - var _St = $k[--$j]; //#25562 - $put($k[--$j], _St, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25562 - } //#25562 - $k[$j++] = 'score'; //#25566 - $k[$j++] = $_.pixs; //#25566 - $_.evalsymbol(); //#25566 - var _Sw = $k[--$j]; //#25566 - $_[$k[--$j]] = _Sw; //#25566 - if ($_.score > $_.bestscore) { //#25571 - $_.bestsym = $_.pixs; //#25568 - $_.bestscore = $_.score; //#25569 - if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25570 - return true; //#25570 - } //#25570 - } //#25570 - var _T6 = $_.pixs; //#25574 - $_.litmask = $arrcpy($a(_T6.length), _T6); //#25574 - for (var _T9 = 0; _T9 <= 5; _T9 += 1) { //#25579 - $_.i = _T9; //#25576 - $k[$j++] = $_.litmask; //#25577 - $aload($get($_.sixedges, $_.i)); //#25577 - $_.dmv(); //#25577 - var _TE = $k[--$j]; //#25578 - $put($k[--$j], _TE, 1); //#25578 - } //#25578 - $put($_.litmasks, $_.mask, $_.litmask); //#25580 - if ($_.fast) { //#25590 - $k[$j++] = 'score'; //#25584 - $k[$j++] = $_.litmask; //#25584 - $_.evalsymbol(); //#25584 - var _TL = $k[--$j]; //#25584 - $_[$k[--$j]] = _TL; //#25584 - if ($gt($_.score, $_.bestscore)) { //#25589 - $_.bestsym = $_.litmask; //#25586 - $_.bestscore = $_.score; //#25587 - if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25588 - return true; //#25588 - } //#25588 - } //#25588 - } //#25588 - }); //#25588 - $_.pixs = $_.bestsym; //#25593 - if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25607 - $_.bestscore = -99999999; //#25597 - $forall($_.masks, function() { //#25605 - $_.litmask = $get($_.litmasks, $k[--$j]); //#25599 - $k[$j++] = 'score'; //#25600 - $k[$j++] = $_.litmask; //#25600 - $_.evalsymbol(); //#25600 - var _Te = $k[--$j]; //#25600 - $_[$k[--$j]] = _Te; //#25600 - if ($_.score > $_.bestscore) { //#25604 - $_.bestsym = $_.litmask; //#25602 - $_.bestscore = $_.score; //#25603 - } //#25603 - }); //#25603 - $_.pixs = $_.bestsym; //#25606 - } //#25606 - var _Tr = new Map([ + var _Q0 = $k[--$j]; //#25781 + $k[$j++] = $f((_Q0 * $_.step) + $_.start); //#25781 + }; //#25781 + $_.bestscore = -99999999; //#25789 + $k[$j++] = 'masks'; //#25794 + if ($_.mask != -1) { //#25793 + $k[$j++] = $a([$_.mask]); //#25791 + } else { //#25793 + if ($_.fast) { //#25793 + $k[$j++] = $a([3, 2, 1, 0]); //#25793 + } else { //#25793 + $k[$j++] = $a([0, 1, 2, 3]); //#25793 + } //#25793 + } //#25793 + var _Q8 = $k[--$j]; //#25794 + $_[$k[--$j]] = _Q8; //#25794 + $_.litmasks = $a(4); //#25795 + $forall($_.masks, function() { //#25897 + $_.mask = $k[--$j]; //#25798 + $k[$j++] = Infinity; //#25801 + var _QH = $_.cws; //#25803 + $k[$j++] = $_.mask; //#25803 + $k[$j++] = $get($a([0, 3, 7, 17]), $_.mask); //#25803 + $k[$j++] = 0; //#25803 + for (var _QI = 0, _QJ = _QH.length; _QI < _QJ; _QI++) { //#25803 + var _QL = $k[--$j]; //#25803 + var _QM = $k[--$j]; //#25803 + $k[$j++] = $f($get(_QH, _QI) + _QL) % 113; //#25803 + $k[$j++] = _QM; //#25803 + $k[$j++] = $f(_QL + _QM); //#25803 + } //#25803 + $j -= 2; //#25803 + for (var _QO = 0, _QP = $_.nc; _QO < _QP; _QO++) { //#25804 + $k[$j++] = 0; //#25804 + } //#25804 + $_.rscws = $a(); //#25804 + for (var _QT = 0, _QS = $_.step - 1; _QT <= _QS; _QT += 1) { //#25828 + $_.start = _QT; //#25807 + $_.ND = ~~((((($_.nd + 1) - $_.start) + $_.step) - 1) / $_.step); //#25808 + $_.NW = ~~((((($_.nw + 1) - $_.start) + $_.step) - 1) / $_.step); //#25809 + $_.NC = $_.NW - $_.ND; //#25810 + $k[$j++] = Infinity; //#25811 + $k[$j++] = 1; //#25811 + for (var _Qf = 0, _Qg = $_.NC; _Qf < _Qg; _Qf++) { //#25811 + $k[$j++] = 0; //#25811 + } //#25811 + $_.coeffs = $a(); //#25811 + for (var _Qk = 1, _Qj = $_.NC; _Qk <= _Qj; _Qk += 1) { //#25818 + $_.i = _Qk; //#25813 + for (var _Qm = $_.NC; _Qm >= 1; _Qm -= 1) { //#25817 + $_.j = _Qm; //#25815 + $put($_.coeffs, $_.j, ($f($f($get($_.coeffs, $_.j) + 113) - (($get($_.rsalog, $_.i) * $get($_.coeffs, $_.j - 1)) % 113))) % 113); //#25816 + } //#25816 + } //#25816 + for (var _R0 = 0, _Qz = $_.ND - 1; _R0 <= _Qz; _R0 += 1) { //#25826 + $k[$j++] = 't'; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = _R0; //#25820 + $_.offset(); //#25820 + var _R2 = $k[--$j]; //#25820 + var _R4 = $get($k[--$j], _R2); //#25820 + $k[$j++] = _R4; //#25820 + $k[$j++] = $_.rscws; //#25820 + $k[$j++] = $_.ND; //#25820 + $_.offset(); //#25820 + var _R7 = $k[--$j]; //#25820 + var _R9 = $get($k[--$j], _R7); //#25820 + var _RA = $k[--$j]; //#25820 + $_[$k[--$j]] = $f(_RA + _R9) % 113; //#25820 + for (var _RE = 0, _RD = $_.NC - 2; _RE <= _RD; _RE += 1) { //#25824 + $_.j = _RE; //#25822 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = $_.ND + $_.j; //#25823 + $_.offset(); //#25823 + $k[$j++] = $_.rscws; //#25823 + $k[$j++] = ($_.ND + $_.j) + 1; //#25823 + $_.offset(); //#25823 + var _RL = $k[--$j]; //#25823 + var _RN = $get($k[--$j], _RL); //#25823 + var _RS = $k[--$j]; //#25823 + $put($k[--$j], _RS, ($f($f(_RN + 113) - (($_.t * $get($_.coeffs, $_.j + 1)) % 113))) % 113); //#25823 + } //#25823 + $k[$j++] = $_.rscws; //#25825 + $k[$j++] = ($_.ND + $_.NC) - 1; //#25825 + $_.offset(); //#25825 + var _Rb = $k[--$j]; //#25825 + $put($k[--$j], _Rb, ($f(113 - (($_.t * $get($_.coeffs, $_.NC)) % 113))) % 113); //#25825 + } //#25825 + for (var _Rg = $_.ND, _Rf = $_.NW - 1; _Rg <= _Rf; _Rg += 1) { //#25827 + $k[$j++] = _Rg; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rg; //#25827 + $_.offset(); //#25827 + var _Rj = $k[--$j]; //#25827 + var _Rk = $k[--$j]; //#25827 + var _Rl = $k[--$j]; //#25827 + $k[$j++] = _Rk; //#25827 + $k[$j++] = _Rj; //#25827 + $k[$j++] = 113; //#25827 + $k[$j++] = $_.rscws; //#25827 + $k[$j++] = _Rl; //#25827 + $_.offset(); //#25827 + var _Rm = $k[--$j]; //#25827 + var _Ro = $get($k[--$j], _Rm); //#25827 + var _Rp = $k[--$j]; //#25827 + var _Rq = $k[--$j]; //#25827 + $put($k[--$j], _Rq, $f(_Rp - _Ro) % 113); //#25827 + } //#25827 + } //#25827 + $_.bits = $s($_.ndots); //#25831 + $puti($_.bits, 0, $get($a(["00", "01", "10", "11"]), $_.mask)); //#25832 + for (var _S0 = 1, _Rz = $_.nw; _S0 <= _Rz; _S0 += 1) { //#25836 + $_.i = _S0; //#25834 + $puti($_.bits, (($_.i - 1) * 9) + 2, $get($_.encs, $get($_.rscws, $_.i))); //#25835 + } //#25835 + if ($_.rembits > 0) { //#25839 + $puti($_.bits, ($_.nw * 9) + 2, $geti("11111111111111111", 0, $_.rembits)); //#25838 + } //#25838 + var _SD = $_.outline; //#25842 + $_.pixs = $arrcpy($a(_SD.length), _SD); //#25842 + $_.posx = 0; //#25843 + $k[$j++] = 'posy'; //#25844 + if (($_.rows % 2) == 0) { //#25844 + $k[$j++] = 0; //#25844 + } else { //#25844 + $k[$j++] = $_.rows - 1; //#25844 + } //#25844 + var _SI = $k[--$j]; //#25844 + $_[$k[--$j]] = _SI; //#25844 + var _SM = $geti($_.bits, 0, $_.bits.length - 6); //#25845 + for (var _SN = 0, _SO = _SM.length; _SN < _SO; _SN++) { //#25863 + $k[$j++] = $get(_SM, _SN); //#25861 + for (;;) { //#25861 + $k[$j++] = $_.pixs; //#25847 + $k[$j++] = $_.posx; //#25847 + $k[$j++] = $_.posy; //#25847 + $_.dmv(); //#25847 + var _ST = $k[--$j]; //#25847 + if ($get($k[--$j], _ST) == -1) { //#25847 + break; //#25847 + } //#25847 + if (($_.rows % 2) == 0) { //#25858 + $_.posy = $_.posy + 1; //#25849 + if ($_.posy == $_.rows) { //#25853 + $_.posy = 0; //#25851 + $_.posx = $_.posx + 1; //#25852 + } //#25852 + } else { //#25858 + $_.posx = $_.posx + 1; //#25855 + if ($_.posx == $_.columns) { //#25859 + $_.posx = 0; //#25857 + $_.posy = $_.posy - 1; //#25858 + } //#25858 + } //#25858 + } //#25858 + $k[$j++] = $_.pixs; //#25862 + $k[$j++] = $_.posx; //#25862 + $k[$j++] = $_.posy; //#25862 + $_.dmv(); //#25862 + var _Si = $k[--$j]; //#25862 + var _Sj = $k[--$j]; //#25862 + $put(_Sj, _Si, $f($k[--$j] - 48)); //#25862 + } //#25862 + for (var _Sl = 0; _Sl <= 5; _Sl += 1) { //#25868 + $_.i = _Sl; //#25865 + $k[$j++] = $_.pixs; //#25866 + $aload($get($_.sixedges, $_.i)); //#25866 + $_.dmv(); //#25866 + var _Su = $k[--$j]; //#25867 + $put($k[--$j], _Su, $get($_.bits, ($_.bits.length - 6) + $_.i) - 48); //#25867 + } //#25867 + $k[$j++] = 'score'; //#25871 + $k[$j++] = $_.pixs; //#25871 + $_.evalsymbol(); //#25871 + var _Sx = $k[--$j]; //#25871 + $_[$k[--$j]] = _Sx; //#25871 + if ($_.score > $_.bestscore) { //#25876 + $_.bestsym = $_.pixs; //#25873 + $_.bestscore = $_.score; //#25874 + if ($_.fast && ($_.bestscore > (~~(($_.rows * $_.columns) / 2)))) { //#25875 + return true; //#25875 + } //#25875 + } //#25875 + var _T7 = $_.pixs; //#25879 + $_.litmask = $arrcpy($a(_T7.length), _T7); //#25879 + for (var _TA = 0; _TA <= 5; _TA += 1) { //#25884 + $_.i = _TA; //#25881 + $k[$j++] = $_.litmask; //#25882 + $aload($get($_.sixedges, $_.i)); //#25882 + $_.dmv(); //#25882 + var _TF = $k[--$j]; //#25883 + $put($k[--$j], _TF, 1); //#25883 + } //#25883 + $put($_.litmasks, $_.mask, $_.litmask); //#25885 + if ($_.fast) { //#25895 + $k[$j++] = 'score'; //#25889 + $k[$j++] = $_.litmask; //#25889 + $_.evalsymbol(); //#25889 + var _TM = $k[--$j]; //#25889 + $_[$k[--$j]] = _TM; //#25889 + if ($gt($_.score, $_.bestscore)) { //#25894 + $_.bestsym = $_.litmask; //#25891 + $_.bestscore = $_.score; //#25892 + if ($_.bestscore > (~~(($_.rows * $_.columns) / 2))) { //#25893 + return true; //#25893 + } //#25893 + } //#25893 + } //#25893 + }); //#25893 + $_.pixs = $_.bestsym; //#25898 + if ((!$_.fast) && ($_.bestscore <= (~~(($_.rows * $_.columns) / 2)))) { //#25912 + $_.bestscore = -99999999; //#25902 + $forall($_.masks, function() { //#25910 + $_.litmask = $get($_.litmasks, $k[--$j]); //#25904 + $k[$j++] = 'score'; //#25905 + $k[$j++] = $_.litmask; //#25905 + $_.evalsymbol(); //#25905 + var _Tf = $k[--$j]; //#25905 + $_[$k[--$j]] = _Tf; //#25905 + if ($_.score > $_.bestscore) { //#25909 + $_.bestsym = $_.litmask; //#25907 + $_.bestscore = $_.score; //#25908 + } //#25908 + }); //#25908 + $_.pixs = $_.bestsym; //#25911 + } //#25911 + var _Ts = new Map([ ["ren", bwipp_renmatrix], ["dotty", true], ["pixs", $_.pixs], @@ -31940,468 +32406,477 @@ function bwipp_dotcode() { ["pixy", $_.rows], ["height", ($_.rows * 2) / 72], ["width", ($_.columns * 2) / 72], + ["borderleft", 3], + ["borderright", 3], + ["bordertop", 3], + ["borderbottom", 3], ["opt", $_.options] - ]); //#25618 - $k[$j++] = _Tr; //#25621 - if (!$_.dontdraw) { //#25621 - bwipp_renmatrix(); //#25621 - } //#25621 - $_ = Object.getPrototypeOf($_); //#25623 - $_ = Object.getPrototypeOf($_); //#25625 -} - + ]); //#25927 + $k[$j++] = _Ts; //#25930 + if (!$_.dontdraw) { //#25930 + bwipp_renmatrix(); //#25930 + } //#25930 + $_ = Object.getPrototypeOf($_); //#25932 + $_ = Object.getPrototypeOf($_); //#25934 +} //bwipp_dotcode function bwipp_ultracode() { - $_ = Object.create($_); //#25656 - $_.dontdraw = false; //#25659 - $_.eclevel = "EC2"; //#25660 - $_.parse = false; //#25661 - $_.parsefnc = false; //#25662 - $_.start = 257; //#25663 - $_.link1 = 0; //#25664 - $_.raw = false; //#25665 - $_.rev = 2; //#25666 - $k[$j++] = $_; //#25668 - bwipp_processoptions(); //#25668 - $_.options = $k[--$j]; //#25668 - $_.barcode = $k[--$j]; //#25669 - var _2 = $_.rev; //#25671 - if ((_2 != 1) && (_2 != 2)) { //#25673 - $k[$j++] = 'bwipp.ultracodeInvalidRevision#25672'; //#25672 - $k[$j++] = "Valid revisions are 1 and 2"; //#25672 - bwipp_raiseerror(); //#25672 - } //#25672 - var _4 = $_.eclevel.length == 3; //#25675 - $k[$j++] = _4; //#25679 - if (_4) { //#25679 - $j--; //#25676 - $k[$j++] = $geti($_.eclevel, 0, 2); //#25678 - if ($eq("EC", "EC")) { //#25678 - $j--; //#25677 - var _9 = $get($_.eclevel, 2) - 48; //#25677 - var _B = ($_.rev == 2) ? 1 : 0; //#25677 - $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25677 - } //#25677 - } //#25677 - if ($nt($k[--$j])) { //#25682 - $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25681'; //#25681 - $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25681 - bwipp_raiseerror(); //#25681 - } //#25681 - bwipp_loadctx(bwipp_ultracode) //#25684 - if ($_.raw) { //#25721 - $_.dcws = $a($_.barcode.length); //#25688 - $_.i = 0; //#25689 - $_.j = 0; //#25689 - for (;;) { //#25696 - if ($_.i == $_.barcode.length) { //#25691 - break; //#25691 - } //#25691 - $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#25692 - $put($_.dcws, $_.j, $_.cw); //#25693 - $_.i = $_.i + 4; //#25694 - $_.j = $_.j + 1; //#25695 - } //#25695 - $_.dcws = $geti($_.dcws, 0, $_.j); //#25697 - } else { //#25721 - $_.fn1 = -1; //#25702 - $_.fn3 = -2; //#25702 + $_ = Object.create($_); //#25965 + $_.dontdraw = false; //#25968 + $_.eclevel = "EC2"; //#25969 + $_.parse = false; //#25970 + $_.parsefnc = false; //#25971 + $_.start = 257; //#25972 + $_.link1 = 0; //#25973 + $_.raw = false; //#25974 + $_.rev = 2; //#25975 + $k[$j++] = $_; //#25977 + bwipp_processoptions(); //#25977 + $_.options = $k[--$j]; //#25977 + $_.barcode = $k[--$j]; //#25978 + var _2 = $_.rev; //#25980 + if ((_2 != 1) && (_2 != 2)) { //#25982 + $k[$j++] = 'bwipp.ultracodeInvalidRevision#25981'; //#25981 + $k[$j++] = "Valid revisions are 1 and 2"; //#25981 + bwipp_raiseerror(); //#25981 + } //#25981 + var _4 = $_.eclevel.length == 3; //#25984 + $k[$j++] = _4; //#25988 + if (_4) { //#25988 + $j--; //#25985 + $k[$j++] = $geti($_.eclevel, 0, 2); //#25987 + if ($eq("EC", "EC")) { //#25987 + $j--; //#25986 + var _9 = $get($_.eclevel, 2) - 48; //#25986 + var _B = ($_.rev == 2) ? 1 : 0; //#25986 + $k[$j++] = (_9 >= _B) && (_9 <= 5); //#25986 + } //#25986 + } //#25986 + if ($nt($k[--$j])) { //#25991 + $k[$j++] = 'bwipp.ultracodeInvalidErrorCorrectionLevel#25990'; //#25990 + $k[$j++] = "Valid error correction levels are EC1 to EC5, and EC0 for legacy revision 1"; //#25990 + bwipp_raiseerror(); //#25990 + } //#25990 + bwipp_loadctx(bwipp_ultracode) //#25993 + if ($_.raw) { //#26030 + $_.dcws = $a($_.barcode.length); //#25997 + $_.i = 0; //#25998 + $_.j = 0; //#25998 + for (;;) { //#26005 + if ($_.i == $_.barcode.length) { //#26000 + break; //#26000 + } //#26000 + $_.cw = $cvi($geti($_.barcode, $_.i + 1, 3)); //#26001 + $put($_.dcws, $_.j, $_.cw); //#26002 + $_.i = $_.i + 4; //#26003 + $_.j = $_.j + 1; //#26004 + } //#26004 + $_.dcws = $geti($_.dcws, 0, $_.j); //#26006 + } else { //#26030 + $_.fn1 = -1; //#26011 + $_.fn3 = -2; //#26011 var _X = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1], ["FNC3", $_.fn3] - ]); //#25707 - $_.fncvals = _X; //#25708 - $k[$j++] = 'msg'; //#25709 - $k[$j++] = $_.barcode; //#25709 - $k[$j++] = $_.fncvals; //#25709 - bwipp_parseinput(); //#25709 - var _a = $k[--$j]; //#25709 - $_[$k[--$j]] = _a; //#25709 - $_.msglen = $_.msg.length; //#25710 - $_.scr = $a([]); //#25712 - $_.scp = $a([]); //#25713 - $k[$j++] = Infinity; //#25719 - $aload($_.scr); //#25715 - $aload($_.scp); //#25716 - $forall($_.msg, function() { //#25720 - var _i = $k[--$j]; //#25718 - $k[$j++] = _i; //#25718 - if (_i == $_.fn1) { //#25718 - $j--; //#25718 - $k[$j++] = 268; //#25718 - } //#25718 - var _k = $k[--$j]; //#25719 - $k[$j++] = _k; //#25719 - if (_k == $_.fn3) { //#25719 - $j--; //#25719 - $k[$j++] = 269; //#25719 - } //#25719 - }); //#25719 - $_.dcws = $a(); //#25719 - } //#25721 - var _o = $get($_.options, 'debugcws') !== undefined; //#25725 - if (_o) { //#25725 - $k[$j++] = 'bwipp.debugcws#25725'; //#25725 - $k[$j++] = $_.dcws; //#25725 - bwipp_raiseerror(); //#25725 - } //#25725 - $_.mcc = $_.dcws.length + 3; //#25727 - $_.eclval = $get($_.eclevel, 2) - 48; //#25729 - if ($_.eclval != 0) { //#25733 - $k[$j++] = 'qcc'; //#25731 - $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#25731 - $k[$j++] = ~~($_.mcc / 25); //#25731 - if (($_.mcc % 25) != 0) { //#25731 - var _z = $k[--$j]; //#25731 - $k[$j++] = $f(_z + 1); //#25731 - } //#25731 - var _10 = $k[--$j]; //#25731 - var _11 = $k[--$j]; //#25731 - $_[$k[--$j]] = $f((_11 * _10) + 5); //#25731 - } else { //#25733 - $_.qcc = 3; //#25733 - } //#25733 - $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#25735 - $_.tcc = $_.mcc + $_.qcc; //#25736 - if (!bwipp_ultracode.__25747__) { //#25747 - $_ = Object.create($_); //#25747 - $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#25746 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25746 - bwipp_ultracode.__25747__ = 1; //#25746 - $_ = Object.getPrototypeOf($_); //#25746 - } //#25746 - var _1D = $_.metrics; //#25749 - for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#25758 - $_.m = $get(_1D, _1E); //#25750 - $_.rows = $get($_.m, 0); //#25751 - $_.minc = $get($_.m, 1); //#25752 - $_.maxc = $get($_.m, 2); //#25753 - $_.mcol = $get($_.m, 3); //#25754 - $_.okay = true; //#25755 - if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#25756 - $_.okay = false; //#25756 - } //#25756 - if ($_.okay) { //#25757 - break; //#25757 - } //#25757 - } //#25757 - if (!$_.okay) { //#25762 - $k[$j++] = 'bwipp.ultracodeNoValidSymbol#25761'; //#25761 - $k[$j++] = "Maximum length exceeded or invalid content"; //#25761 - bwipp_raiseerror(); //#25761 - } //#25761 - for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#25776 - $_.columns = _1W; //#25766 - $k[$j++] = $_.columns; //#25768 - if ($_.columns >= 15) { //#25768 - var _1Z = $k[--$j]; //#25768 - $k[$j++] = $f(_1Z - 1); //#25768 - } //#25768 - if ($_.columns >= 31) { //#25769 - var _1b = $k[--$j]; //#25769 - $k[$j++] = $f(_1b - 1); //#25769 - } //#25769 - if ($_.columns >= 47) { //#25770 - var _1d = $k[--$j]; //#25770 - $k[$j++] = $f(_1d - 1); //#25770 - } //#25770 - var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#25771 - $k[$j++] = _1h; //#25774 - if (_1h >= 0) { //#25774 - $_.pads = $k[--$j]; //#25772 - break; //#25773 - } //#25773 - $j--; //#25775 - } //#25775 - $_.dcc = $f($_.columns - $_.mcol); //#25777 - $k[$j++] = Infinity; //#25786 - $k[$j++] = $_.start; //#25784 - $k[$j++] = $_.mcc; //#25784 - $k[$j++] = $_.acc; //#25784 - $aload($_.dcws); //#25784 - for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#25785 - $k[$j++] = 0; //#25785 - } //#25785 - $k[$j++] = 0; //#25786 - $_.rsseq = $a(); //#25786 - $k[$j++] = Infinity; //#25790 - $k[$j++] = 1; //#25790 - for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#25790 - var _1v = $k[--$j]; //#25790 - $k[$j++] = _1v; //#25790 - $k[$j++] = (_1v * 3) % 283; //#25790 - } //#25790 - $_.rsalog = $a(); //#25790 - $_.rslog = $a(283); //#25791 - for (var _1y = 1; _1y <= 282; _1y += 1) { //#25792 - $put($_.rslog, $get($_.rsalog, _1y), _1y); //#25792 - } //#25792 + ]); //#26016 + $_.fncvals = _X; //#26017 + $k[$j++] = 'msg'; //#26018 + $k[$j++] = $_.barcode; //#26018 + $k[$j++] = $_.fncvals; //#26018 + bwipp_parseinput(); //#26018 + var _a = $k[--$j]; //#26018 + $_[$k[--$j]] = _a; //#26018 + $_.msglen = $_.msg.length; //#26019 + $_.scr = $a([]); //#26021 + $_.scp = $a([]); //#26022 + $k[$j++] = Infinity; //#26023 + $aload($_.scr); //#26024 + $aload($_.scp); //#26025 + $forall($_.msg, function() { //#26029 + var _i = $k[--$j]; //#26027 + $k[$j++] = _i; //#26027 + if (_i == $_.fn1) { //#26027 + $j--; //#26027 + $k[$j++] = 268; //#26027 + } //#26027 + var _k = $k[--$j]; //#26028 + $k[$j++] = _k; //#26028 + if (_k == $_.fn3) { //#26028 + $j--; //#26028 + $k[$j++] = 269; //#26028 + } //#26028 + }); //#26028 + $_.dcws = $a(); //#26028 + } //#26030 + var _o = $get($_.options, 'debugcws') !== undefined; //#26034 + if (_o) { //#26034 + $k[$j++] = 'bwipp.debugcws#26034'; //#26034 + $k[$j++] = $_.dcws; //#26034 + bwipp_raiseerror(); //#26034 + } //#26034 + $_.mcc = $_.dcws.length + 3; //#26036 + $_.eclval = $get($_.eclevel, 2) - 48; //#26038 + if ($_.eclval != 0) { //#26042 + $k[$j++] = 'qcc'; //#26040 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $_.eclval); //#26040 + $k[$j++] = ~~($_.mcc / 25); //#26040 + if (($_.mcc % 25) != 0) { //#26040 + var _z = $k[--$j]; //#26040 + $k[$j++] = $f(_z + 1); //#26040 + } //#26040 + var _10 = $k[--$j]; //#26040 + var _11 = $k[--$j]; //#26040 + $_[$k[--$j]] = $f((_11 * _10) + 5); //#26040 + } else { //#26042 + $_.qcc = 3; //#26042 + } //#26042 + $_.acc = ($_.qcc - 3) + (78 * $_.link1); //#26044 + $_.tcc = $_.mcc + $_.qcc; //#26045 + if (!bwipp_ultracode.__26056__) { //#26056 + $_ = Object.create($_); //#26056 + $_.metrics = $a([$a([2, 7, 37, 5]), $a([3, 36, 84, 13]), $a([4, 85, 161, 22]), $a([5, 142, 282, 29])]); //#26055 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26055 + bwipp_ultracode.__26056__ = 1; //#26055 + $_ = Object.getPrototypeOf($_); //#26055 + } //#26055 + var _1D = $_.metrics; //#26058 + for (var _1E = 0, _1F = _1D.length; _1E < _1F; _1E++) { //#26067 + $_.m = $get(_1D, _1E); //#26059 + $_.rows = $get($_.m, 0); //#26060 + $_.minc = $get($_.m, 1); //#26061 + $_.maxc = $get($_.m, 2); //#26062 + $_.mcol = $get($_.m, 3); //#26063 + $_.okay = true; //#26064 + if (($_.tcc < $_.minc) || ($_.tcc > $_.maxc)) { //#26065 + $_.okay = false; //#26065 + } //#26065 + if ($_.okay) { //#26066 + break; //#26066 + } //#26066 + } //#26066 + if (!$_.okay) { //#26071 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol#26070'; //#26070 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26070 + bwipp_raiseerror(); //#26070 + } //#26070 + for (var _1W = $_.mcol; _1W <= 61; _1W += 1) { //#26085 + $_.columns = _1W; //#26075 + $k[$j++] = $_.columns; //#26077 + if ($_.columns >= 15) { //#26077 + var _1Z = $k[--$j]; //#26077 + $k[$j++] = $f(_1Z - 1); //#26077 + } //#26077 + if ($_.columns >= 31) { //#26078 + var _1b = $k[--$j]; //#26078 + $k[$j++] = $f(_1b - 1); //#26078 + } //#26078 + if ($_.columns >= 47) { //#26079 + var _1d = $k[--$j]; //#26079 + $k[$j++] = $f(_1d - 1); //#26079 + } //#26079 + var _1h = $f(($f(($k[--$j] * $_.rows) - 3)) - $_.tcc); //#26080 + $k[$j++] = _1h; //#26083 + if (_1h >= 0) { //#26083 + $_.pads = $k[--$j]; //#26081 + break; //#26082 + } //#26082 + $j--; //#26084 + } //#26084 + $_.dcc = $f($_.columns - $_.mcol); //#26086 + $k[$j++] = Infinity; //#26089 + $k[$j++] = $_.start; //#26093 + $k[$j++] = $_.mcc; //#26093 + $k[$j++] = $_.acc; //#26093 + $aload($_.dcws); //#26093 + for (var _1q = 0, _1r = $_.qcc; _1q < _1r; _1q++) { //#26094 + $k[$j++] = 0; //#26094 + } //#26094 + $k[$j++] = 0; //#26095 + $_.rsseq = $a(); //#26095 + if (!bwipp_ultracode.__26103__) { //#26103 + $_ = Object.create($_); //#26103 + $k[$j++] = Infinity; //#26100 + $k[$j++] = 1; //#26100 + for (var _1t = 0, _1u = 282; _1t < _1u; _1t++) { //#26100 + var _1v = $k[--$j]; //#26100 + $k[$j++] = _1v; //#26100 + $k[$j++] = (_1v * 3) % 283; //#26100 + } //#26100 + $_.rsalog = $a(); //#26100 + $_.rslog = $a(283); //#26101 + for (var _1y = 1; _1y <= 282; _1y += 1) { //#26102 + $put($_.rslog, $get($_.rsalog, _1y), _1y); //#26102 + } //#26102 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26102 + bwipp_ultracode.__26103__ = 1; //#26102 + $_ = Object.getPrototypeOf($_); //#26102 + } //#26102 $_.rsprod = function() { - var _22 = $k[--$j]; //#25796 - var _23 = $k[--$j]; //#25796 - $k[$j++] = _23; //#25800 - $k[$j++] = _22; //#25800 - if ((_22 != 0) && (_23 != 0)) { //#25799 - var _26 = $get($_.rslog, $k[--$j]); //#25797 - var _2B = $get($_.rsalog, $f(_26 + $get($_.rslog, $k[--$j])) % 282); //#25797 - $k[$j++] = _2B; //#25797 - } else { //#25799 - $j -= 2; //#25799 - $k[$j++] = 0; //#25799 - } //#25799 - }; //#25799 - $_.n = $_.mcc; //#25804 - $_.k = $_.qcc; //#25804 - $k[$j++] = Infinity; //#25805 - $k[$j++] = 1; //#25805 - for (var _2F = 0, _2G = $_.k; _2F < _2G; _2F++) { //#25805 - $k[$j++] = 0; //#25805 - } //#25805 - $_.coeffs = $a(); //#25805 - for (var _2K = 1, _2J = $_.k; _2K <= _2J; _2K += 1) { //#25814 - $_.i = _2K; //#25807 - $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#25808 - for (var _2R = $_.i - 1; _2R >= 1; _2R -= 1) { //#25812 - $_.j = _2R; //#25810 - $k[$j++] = $_.coeffs; //#25811 - $k[$j++] = $_.j; //#25811 - $k[$j++] = $get($_.coeffs, $_.j - 1); //#25811 - $k[$j++] = $get($_.coeffs, $_.j); //#25811 - $k[$j++] = $get($_.rsalog, $_.i); //#25811 - $_.rsprod(); //#25811 - var _2d = $k[--$j]; //#25811 - var _2e = $k[--$j]; //#25811 - var _2f = $k[--$j]; //#25811 - $put($k[--$j], _2f, $f(_2e + _2d) % 283); //#25811 - } //#25811 - $k[$j++] = $_.coeffs; //#25813 - $k[$j++] = 0; //#25813 - $k[$j++] = $get($_.coeffs, 0); //#25813 - $k[$j++] = $get($_.rsalog, $_.i); //#25813 - $_.rsprod(); //#25813 - var _2n = $k[--$j]; //#25813 - var _2o = $k[--$j]; //#25813 - $put($k[--$j], _2o, _2n); //#25813 - } //#25813 - $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#25815 - for (var _2u = $_.coeffs.length - 1; _2u >= 0; _2u -= 2) { //#25816 - var _2v = $_.coeffs; //#25816 - $put(_2v, _2u, $f(283 - $get(_2v, _2u))); //#25816 - } //#25816 - for (var _2z = 0, _2y = $_.n - 1; _2z <= _2y; _2z += 1) { //#25825 - $_.t = $f($get($_.rsseq, _2z) + $get($_.rsseq, $_.n)) % 283; //#25820 - for (var _37 = 0, _36 = $_.k - 1; _37 <= _36; _37 += 1) { //#25824 - $_.j = _37; //#25822 - $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#25823 - } //#25823 - } //#25823 - for (var _3O = $_.n, _3N = $_.n + $_.k; _3O <= _3N; _3O += 1) { //#25826 - $put($_.rsseq, _3O, $f(283 - $get($_.rsseq, _3O)) % 283); //#25826 - } //#25826 - $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#25827 - var _3X = $get($_.options, 'debugecc') !== undefined; //#25829 - if (_3X) { //#25829 - $k[$j++] = 'bwipp.debugecc#25829'; //#25829 - $k[$j++] = $_.ecws; //#25829 - bwipp_raiseerror(); //#25829 - } //#25829 - if (!bwipp_ultracode.__25888__) { //#25888 - $_ = Object.create($_); //#25888 - $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#25862 - $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#25869 - $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#25875 - $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#25881 - $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#25887 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25887 - bwipp_ultracode.__25888__ = 1; //#25887 - $_ = Object.getPrototypeOf($_); //#25887 - } //#25887 - $k[$j++] = 'dccu'; //#25890 - if ($_.rev == 1) { //#25890 - $k[$j++] = $_.dccurev1; //#25890 - } else { //#25890 - $k[$j++] = $_.dccurev2; //#25890 - } //#25890 - var _3i = $k[--$j]; //#25890 - $_[$k[--$j]] = _3i; //#25890 - $k[$j++] = 'dccl'; //#25891 - if ($_.rev == 1) { //#25891 - $k[$j++] = $_.dcclrev1; //#25891 - } else { //#25891 - $k[$j++] = $_.dcclrev2; //#25891 - } //#25891 - var _3n = $k[--$j]; //#25891 - $_[$k[--$j]] = _3n; //#25891 - $_.rows = $f(($_.rows * 6) + 1); //#25894 - $_.columns = $_.columns + 6; //#25895 - $k[$j++] = Infinity; //#25896 - for (var _3t = 0, _3u = $_.rows * $_.columns; _3t < _3u; _3t++) { //#25896 - $k[$j++] = -1; //#25896 - } //#25896 - $_.pixs = $a(); //#25896 + var _23 = $k[--$j]; //#26107 + var _24 = $k[--$j]; //#26107 + $k[$j++] = _24; //#26111 + $k[$j++] = _23; //#26111 + if ((_23 != 0) && (_24 != 0)) { //#26110 + var _27 = $get($_.rslog, $k[--$j]); //#26108 + var _2C = $get($_.rsalog, $f(_27 + $get($_.rslog, $k[--$j])) % 282); //#26108 + $k[$j++] = _2C; //#26108 + } else { //#26110 + $j -= 2; //#26110 + $k[$j++] = 0; //#26110 + } //#26110 + }; //#26110 + $_.n = $_.mcc; //#26115 + $_.k = $_.qcc; //#26115 + $k[$j++] = Infinity; //#26116 + $k[$j++] = 1; //#26116 + for (var _2G = 0, _2H = $_.k; _2G < _2H; _2G++) { //#26116 + $k[$j++] = 0; //#26116 + } //#26116 + $_.coeffs = $a(); //#26116 + for (var _2L = 1, _2K = $_.k; _2L <= _2K; _2L += 1) { //#26125 + $_.i = _2L; //#26118 + $put($_.coeffs, $_.i, $get($_.coeffs, $_.i - 1)); //#26119 + for (var _2S = $_.i - 1; _2S >= 1; _2S -= 1) { //#26123 + $_.j = _2S; //#26121 + $k[$j++] = $_.coeffs; //#26122 + $k[$j++] = $_.j; //#26122 + $k[$j++] = $get($_.coeffs, $_.j - 1); //#26122 + $k[$j++] = $get($_.coeffs, $_.j); //#26122 + $k[$j++] = $get($_.rsalog, $_.i); //#26122 + $_.rsprod(); //#26122 + var _2e = $k[--$j]; //#26122 + var _2f = $k[--$j]; //#26122 + var _2g = $k[--$j]; //#26122 + $put($k[--$j], _2g, $f(_2f + _2e) % 283); //#26122 + } //#26122 + $k[$j++] = $_.coeffs; //#26124 + $k[$j++] = 0; //#26124 + $k[$j++] = $get($_.coeffs, 0); //#26124 + $k[$j++] = $get($_.rsalog, $_.i); //#26124 + $_.rsprod(); //#26124 + var _2o = $k[--$j]; //#26124 + var _2p = $k[--$j]; //#26124 + $put($k[--$j], _2p, _2o); //#26124 + } //#26124 + $_.coeffs = $geti($_.coeffs, 0, $_.coeffs.length - 1); //#26126 + for (var _2v = $_.coeffs.length - 1; _2v >= 0; _2v -= 2) { //#26127 + var _2w = $_.coeffs; //#26127 + $put(_2w, _2v, $f(283 - $get(_2w, _2v))); //#26127 + } //#26127 + for (var _30 = 0, _2z = $_.n - 1; _30 <= _2z; _30 += 1) { //#26136 + $_.t = $f($get($_.rsseq, _30) + $get($_.rsseq, $_.n)) % 283; //#26131 + for (var _38 = 0, _37 = $_.k - 1; _38 <= _37; _38 += 1) { //#26135 + $_.j = _38; //#26133 + $put($_.rsseq, $_.n + $_.j, ($f($get($_.rsseq, ($_.n + $_.j) + 1) + ($f(283 - (($_.t * $get($_.coeffs, ($_.k - $_.j) - 1)) % 283))))) % 283); //#26134 + } //#26134 + } //#26134 + for (var _3P = $_.n, _3O = $_.n + $_.k; _3P <= _3O; _3P += 1) { //#26137 + $put($_.rsseq, _3P, $f(283 - $get($_.rsseq, _3P)) % 283); //#26137 + } //#26137 + $_.ecws = $geti($_.rsseq, $_.n, $_.k); //#26138 + var _3Y = $get($_.options, 'debugecc') !== undefined; //#26140 + if (_3Y) { //#26140 + $k[$j++] = 'bwipp.debugecc#26140'; //#26140 + $k[$j++] = $_.ecws; //#26140 + bwipp_raiseerror(); //#26140 + } //#26140 + if (!bwipp_ultracode.__26199__) { //#26199 + $_ = Object.create($_); //#26199 + $_.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#26173 + $_.dccurev1 = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#26180 + $_.dcclrev1 = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#26186 + $_.dccurev2 = $a([15316, 16316, 13516, 16516, 13616, 15616, 13136, 15136, 16136, 13536, 16536, 13636, 13156, 16156, 15356, 13656, 15313, 16313, 13513, 16513, 13613, 15613, 13153, 15153, 16153, 16353, 13653, 15653, 13163, 15163, 15363, 13563]); //#26192 + $_.dcclrev2 = $a([36315, 36515, 35615, 35135, 36135, 31535, 36535, 31635, 35635, 35165, 36165, 31365, 35365, 36365, 31565, 36565, 61315, 65315, 63515, 61615, 65135, 61535, 63535, 61635, 63635, 65635, 63165, 65165, 61365, 65365, 61565, 63565]); //#26198 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26198 + bwipp_ultracode.__26199__ = 1; //#26198 + $_ = Object.getPrototypeOf($_); //#26198 + } //#26198 + $k[$j++] = 'dccu'; //#26201 + if ($_.rev == 1) { //#26201 + $k[$j++] = $_.dccurev1; //#26201 + } else { //#26201 + $k[$j++] = $_.dccurev2; //#26201 + } //#26201 + var _3j = $k[--$j]; //#26201 + $_[$k[--$j]] = _3j; //#26201 + $k[$j++] = 'dccl'; //#26202 + if ($_.rev == 1) { //#26202 + $k[$j++] = $_.dcclrev1; //#26202 + } else { //#26202 + $k[$j++] = $_.dcclrev2; //#26202 + } //#26202 + var _3o = $k[--$j]; //#26202 + $_[$k[--$j]] = _3o; //#26202 + $_.rows = $f(($_.rows * 6) + 1); //#26205 + $_.columns = $_.columns + 6; //#26206 + $k[$j++] = Infinity; //#26207 + for (var _3u = 0, _3v = $_.rows * $_.columns; _3u < _3v; _3u++) { //#26207 + $k[$j++] = -1; //#26207 + } //#26207 + $_.pixs = $a(); //#26207 $_.qmv = function() { - var _3x = $k[--$j]; //#25897 - var _3y = $k[--$j]; //#25897 - $k[$j++] = $f(_3y + (_3x * $_.columns)); //#25897 - }; //#25897 - for (var _41 = 0, _40 = $_.columns - 1; _41 <= _40; _41 += 1) { //#25906 - $_.i = _41; //#25899 - for (var _44 = 0, _43 = $f($_.rows - 1); _44 <= _43; _44 += 6) { //#25903 - $_.j = _44; //#25901 - if ($_.i >= 5) { //#25902 - $k[$j++] = $_.pixs; //#25902 - $k[$j++] = $_.i; //#25902 - $k[$j++] = $_.j; //#25902 - $_.qmv(); //#25902 - var _4A = $k[--$j]; //#25902 - $put($k[--$j], _4A, ($_.i % 2) * 9); //#25902 - } //#25902 - } //#25902 - $k[$j++] = $_.pixs; //#25904 - $k[$j++] = $_.i; //#25904 - $k[$j++] = 0; //#25904 - $_.qmv(); //#25904 - var _4E = $k[--$j]; //#25904 - $put($k[--$j], _4E, 9); //#25904 - $k[$j++] = $_.pixs; //#25905 - $k[$j++] = $_.i; //#25905 - $k[$j++] = $f($_.rows - 1); //#25905 - $_.qmv(); //#25905 - var _4J = $k[--$j]; //#25905 - $put($k[--$j], _4J, 9); //#25905 - } //#25905 - for (var _4N = 1, _4M = $f($_.rows - 2); _4N <= _4M; _4N += 1) { //#25919 - $_.i = _4N; //#25908 - for (var _4Q = 3, _4P = $_.columns - 1; _4Q <= _4P; _4Q += 16) { //#25912 - $_.j = _4Q; //#25910 - $k[$j++] = $_.pixs; //#25911 - $k[$j++] = $_.j; //#25911 - $k[$j++] = $_.i; //#25911 - $_.qmv(); //#25911 - var _4V = $k[--$j]; //#25911 - $put($k[--$j], _4V, (1 - ($_.i % 2)) * 9); //#25911 - } //#25911 - $k[$j++] = $_.pixs; //#25913 - $k[$j++] = 0; //#25913 - $k[$j++] = $_.i; //#25913 - $_.qmv(); //#25913 - var _4Z = $k[--$j]; //#25913 - $put($k[--$j], _4Z, 9); //#25913 - $k[$j++] = $_.pixs; //#25914 - $k[$j++] = 1; //#25914 - $k[$j++] = $_.i; //#25914 - $_.qmv(); //#25914 - var _4e = $k[--$j]; //#25914 - $put($k[--$j], _4e, (1 - ($_.i % 2)) * 9); //#25914 - $k[$j++] = $_.pixs; //#25915 - $k[$j++] = 2; //#25915 - $k[$j++] = $_.i; //#25915 - $_.qmv(); //#25915 - var _4i = $k[--$j]; //#25915 - $put($k[--$j], _4i, 0); //#25915 - $k[$j++] = $_.pixs; //#25916 - $k[$j++] = 3; //#25916 - $k[$j++] = $_.i; //#25916 - $_.qmv(); //#25916 - var _4m = $k[--$j]; //#25916 - $put($k[--$j], _4m, 9); //#25916 - $k[$j++] = $_.pixs; //#25917 - $k[$j++] = 4; //#25917 - $k[$j++] = $_.i; //#25917 - $_.qmv(); //#25917 - var _4q = $k[--$j]; //#25917 - $put($k[--$j], _4q, 0); //#25917 - $k[$j++] = $_.pixs; //#25918 - $k[$j++] = $_.columns - 1; //#25918 - $k[$j++] = $_.i; //#25918 - $_.qmv(); //#25918 - var _4v = $k[--$j]; //#25918 - $put($k[--$j], _4v, 9); //#25918 - } //#25918 - $_.i = (~~($_.rows / 2)) - 5; //#25922 - $k[$j++] = Infinity; //#25926 - var _52 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#25924 - for (var _53 = 0, _54 = _52.length; _53 < _54; _53++) { //#25924 - $k[$j++] = $get(_52, _53) - 48; //#25924 - } //#25924 - var _5A = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#25926 - $k[$j++] = 0; //#25926 - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#25926 - $k[$j++] = $get(_5A, _5B) - 48; //#25926 - } //#25926 - var _5E = $a(); //#25926 - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#25930 - $k[$j++] = $get(_5E, _5F); //#25928 - $k[$j++] = $_.pixs; //#25928 - $k[$j++] = 2; //#25928 - $k[$j++] = $_.i; //#25928 - $_.qmv(); //#25928 - var _5K = $k[--$j]; //#25928 - var _5L = $k[--$j]; //#25928 - $put(_5L, _5K, $k[--$j]); //#25928 - $_.i = $_.i + 1; //#25929 - } //#25929 - $k[$j++] = Infinity; //#25942 - $k[$j++] = $_.start; //#25936 - $k[$j++] = $_.mcc; //#25936 - $aload($_.ecws); //#25936 - $k[$j++] = $_.tcc; //#25940 - $k[$j++] = 283; //#25940 - $k[$j++] = $_.acc; //#25940 - $aload($_.dcws); //#25940 - for (var _5V = 0, _5W = $_.pads; _5V < _5W; _5V++) { //#25941 - $k[$j++] = 284; //#25941 - } //#25941 - $k[$j++] = $_.qcc; //#25942 - $_.tileseq = $a(); //#25942 - $_.x = 5; //#25945 - $_.y = 1; //#25945 - var _5Z = $_.tileseq; //#25946 - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#25959 - var _5g = $cvrs($s(5), $get($_.tiles, $get(_5Z, _5a)), 10); //#25947 - for (var _5h = 0, _5i = _5g.length; _5h < _5i; _5h++) { //#25950 - $k[$j++] = $get(_5g, _5h); //#25948 - $k[$j++] = $_.pixs; //#25948 - $k[$j++] = $_.x; //#25948 - $k[$j++] = $_.y; //#25948 - $_.qmv(); //#25948 - var _5n = $k[--$j]; //#25948 - var _5o = $k[--$j]; //#25948 - $put(_5o, _5n, $f($k[--$j] - 48)); //#25948 - $_.y = $_.y + 1; //#25949 - } //#25949 - if ($_.y != $f($_.rows - 1)) { //#25956 - $_.y = $_.y + 1; //#25952 - } else { //#25956 - $_.x = $_.x + 1; //#25954 - $_.y = 1; //#25954 - $k[$j++] = $_.pixs; //#25955 - $k[$j++] = $_.x; //#25955 - $k[$j++] = $_.y; //#25955 - $_.qmv(); //#25955 - var _5y = $k[--$j]; //#25955 - if ($get($k[--$j], _5y) != -1) { //#25957 - $_.x = $_.x + 1; //#25956 - } //#25956 - } //#25956 - } //#25956 - if (!bwipp_ultracode.__25970__) { //#25970 - $_ = Object.create($_); //#25970 - var _62 = new Map([ + var _3y = $k[--$j]; //#26208 + var _3z = $k[--$j]; //#26208 + $k[$j++] = $f(_3z + (_3y * $_.columns)); //#26208 + }; //#26208 + for (var _42 = 0, _41 = $_.columns - 1; _42 <= _41; _42 += 1) { //#26217 + $_.i = _42; //#26210 + for (var _45 = 0, _44 = $f($_.rows - 1); _45 <= _44; _45 += 6) { //#26214 + $_.j = _45; //#26212 + if ($_.i >= 5) { //#26213 + $k[$j++] = $_.pixs; //#26213 + $k[$j++] = $_.i; //#26213 + $k[$j++] = $_.j; //#26213 + $_.qmv(); //#26213 + var _4B = $k[--$j]; //#26213 + $put($k[--$j], _4B, ($_.i % 2) * 9); //#26213 + } //#26213 + } //#26213 + $k[$j++] = $_.pixs; //#26215 + $k[$j++] = $_.i; //#26215 + $k[$j++] = 0; //#26215 + $_.qmv(); //#26215 + var _4F = $k[--$j]; //#26215 + $put($k[--$j], _4F, 9); //#26215 + $k[$j++] = $_.pixs; //#26216 + $k[$j++] = $_.i; //#26216 + $k[$j++] = $f($_.rows - 1); //#26216 + $_.qmv(); //#26216 + var _4K = $k[--$j]; //#26216 + $put($k[--$j], _4K, 9); //#26216 + } //#26216 + for (var _4O = 1, _4N = $f($_.rows - 2); _4O <= _4N; _4O += 1) { //#26230 + $_.i = _4O; //#26219 + for (var _4R = 3, _4Q = $_.columns - 1; _4R <= _4Q; _4R += 16) { //#26223 + $_.j = _4R; //#26221 + $k[$j++] = $_.pixs; //#26222 + $k[$j++] = $_.j; //#26222 + $k[$j++] = $_.i; //#26222 + $_.qmv(); //#26222 + var _4W = $k[--$j]; //#26222 + $put($k[--$j], _4W, (1 - ($_.i % 2)) * 9); //#26222 + } //#26222 + $k[$j++] = $_.pixs; //#26224 + $k[$j++] = 0; //#26224 + $k[$j++] = $_.i; //#26224 + $_.qmv(); //#26224 + var _4a = $k[--$j]; //#26224 + $put($k[--$j], _4a, 9); //#26224 + $k[$j++] = $_.pixs; //#26225 + $k[$j++] = 1; //#26225 + $k[$j++] = $_.i; //#26225 + $_.qmv(); //#26225 + var _4f = $k[--$j]; //#26225 + $put($k[--$j], _4f, (1 - ($_.i % 2)) * 9); //#26225 + $k[$j++] = $_.pixs; //#26226 + $k[$j++] = 2; //#26226 + $k[$j++] = $_.i; //#26226 + $_.qmv(); //#26226 + var _4j = $k[--$j]; //#26226 + $put($k[--$j], _4j, 0); //#26226 + $k[$j++] = $_.pixs; //#26227 + $k[$j++] = 3; //#26227 + $k[$j++] = $_.i; //#26227 + $_.qmv(); //#26227 + var _4n = $k[--$j]; //#26227 + $put($k[--$j], _4n, 9); //#26227 + $k[$j++] = $_.pixs; //#26228 + $k[$j++] = 4; //#26228 + $k[$j++] = $_.i; //#26228 + $_.qmv(); //#26228 + var _4r = $k[--$j]; //#26228 + $put($k[--$j], _4r, 0); //#26228 + $k[$j++] = $_.pixs; //#26229 + $k[$j++] = $_.columns - 1; //#26229 + $k[$j++] = $_.i; //#26229 + $_.qmv(); //#26229 + var _4w = $k[--$j]; //#26229 + $put($k[--$j], _4w, 9); //#26229 + } //#26229 + $_.i = (~~($_.rows / 2)) - 5; //#26233 + $k[$j++] = Infinity; //#26234 + var _53 = $cvrs($s(5), $get($_.dccu, $_.dcc), 10); //#26235 + for (var _54 = 0, _55 = _53.length; _54 < _55; _54++) { //#26235 + $k[$j++] = $get(_53, _54) - 48; //#26235 + } //#26235 + var _5B = $cvrs($s(5), $get($_.dccl, $_.dcc), 10); //#26237 + $k[$j++] = 0; //#26237 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#26237 + $k[$j++] = $get(_5B, _5C) - 48; //#26237 + } //#26237 + var _5F = $a(); //#26237 + for (var _5G = 0, _5H = _5F.length; _5G < _5H; _5G++) { //#26241 + $k[$j++] = $get(_5F, _5G); //#26239 + $k[$j++] = $_.pixs; //#26239 + $k[$j++] = 2; //#26239 + $k[$j++] = $_.i; //#26239 + $_.qmv(); //#26239 + var _5L = $k[--$j]; //#26239 + var _5M = $k[--$j]; //#26239 + $put(_5M, _5L, $k[--$j]); //#26239 + $_.i = $_.i + 1; //#26240 + } //#26240 + $k[$j++] = Infinity; //#26244 + $k[$j++] = $_.start; //#26247 + $k[$j++] = $_.mcc; //#26247 + $aload($_.ecws); //#26247 + $k[$j++] = $_.tcc; //#26251 + $k[$j++] = 283; //#26251 + $k[$j++] = $_.acc; //#26251 + $aload($_.dcws); //#26251 + for (var _5W = 0, _5X = $_.pads; _5W < _5X; _5W++) { //#26252 + $k[$j++] = 284; //#26252 + } //#26252 + $k[$j++] = $_.qcc; //#26253 + $_.tileseq = $a(); //#26253 + $_.x = 5; //#26256 + $_.y = 1; //#26256 + var _5a = $_.tileseq; //#26257 + for (var _5b = 0, _5c = _5a.length; _5b < _5c; _5b++) { //#26270 + var _5h = $cvrs($s(5), $get($_.tiles, $get(_5a, _5b)), 10); //#26258 + for (var _5i = 0, _5j = _5h.length; _5i < _5j; _5i++) { //#26261 + $k[$j++] = $get(_5h, _5i); //#26259 + $k[$j++] = $_.pixs; //#26259 + $k[$j++] = $_.x; //#26259 + $k[$j++] = $_.y; //#26259 + $_.qmv(); //#26259 + var _5o = $k[--$j]; //#26259 + var _5p = $k[--$j]; //#26259 + $put(_5p, _5o, $f($k[--$j] - 48)); //#26259 + $_.y = $_.y + 1; //#26260 + } //#26260 + if ($_.y != $f($_.rows - 1)) { //#26267 + $_.y = $_.y + 1; //#26263 + } else { //#26267 + $_.x = $_.x + 1; //#26265 + $_.y = 1; //#26265 + $k[$j++] = $_.pixs; //#26266 + $k[$j++] = $_.x; //#26266 + $k[$j++] = $_.y; //#26266 + $_.qmv(); //#26266 + var _5z = $k[--$j]; //#26266 + if ($get($k[--$j], _5z) != -1) { //#26268 + $_.x = $_.x + 1; //#26267 + } //#26267 + } //#26267 + } //#26267 + if (!bwipp_ultracode.__26281__) { //#26281 + $_ = Object.create($_); //#26281 + var _63 = new Map([ [0, "FFFFFF"], [9, "000000"], [1, "00FFFF"], [3, "FF00FF"], [5, "FFFF00"], [6, "00FF00"] - ]); //#25968 - $_.colormap = _62; //#25969 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#25969 - bwipp_ultracode.__25970__ = 1; //#25969 - $_ = Object.getPrototypeOf($_); //#25969 - } //#25969 - var _6B = new Map([ + ]); //#26279 + $_.colormap = _63; //#26280 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_ultracode.$ctx[id] = $_[id]); //#26280 + bwipp_ultracode.__26281__ = 1; //#26280 + $_ = Object.getPrototypeOf($_); //#26280 + } //#26280 + var _6C = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.columns], @@ -32409,780 +32884,783 @@ function bwipp_ultracode() { ["height", ($_.rows / 72) * 2], ["width", ($_.columns / 72) * 2], ["colormap", $_.colormap], + ["borderleft", 1], + ["borderright", 1], + ["bordertop", 1], + ["borderbottom", 1], ["opt", $_.options] - ]); //#25981 - $k[$j++] = _6B; //#25984 - if (!$_.dontdraw) { //#25984 - bwipp_renmatrix(); //#25984 - } //#25984 - $_ = Object.getPrototypeOf($_); //#25986 - $_ = Object.getPrototypeOf($_); //#25988 -} - + ]); //#26296 + $k[$j++] = _6C; //#26299 + if (!$_.dontdraw) { //#26299 + bwipp_renmatrix(); //#26299 + } //#26299 + $_ = Object.getPrototypeOf($_); //#26301 + $_ = Object.getPrototypeOf($_); //#26303 +} //bwipp_ultracode function bwipp_jabcode() { - $_ = Object.create($_); //#26017 - $_.dontdraw = false; //#26020 - $_.rows = -1; //#26021 - $_.columns = -1; //#26022 - $_.slave = false; //#26023 - $_.colors = 16; //#26024 - $_.eclevel = 6; //#26025 - $_.raw = false; //#26026 - $_.parse = false; //#26027 - $_.parsefnc = false; //#26028 - $_.mask = -1; //#26029 - $k[$j++] = $_; //#26031 - bwipp_processoptions(); //#26031 - $_.options = $k[--$j]; //#26031 - $_.barcode = $k[--$j]; //#26032 - $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26034 - var _3 = $_.colors; //#26035 - $k[$j++] = 'metabpm'; //#26035 - $k[$j++] = _3; //#26035 - if (_3 > 8) { //#26035 - $j--; //#26035 - $k[$j++] = 8; //#26035 - } //#26035 - var _4 = $k[--$j]; //#26035 - $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26035 - $_.fn1 = -1; //#26038 + $_ = Object.create($_); //#26332 + $_.dontdraw = false; //#26335 + $_.rows = -1; //#26336 + $_.columns = -1; //#26337 + $_.slave = false; //#26338 + $_.colors = 16; //#26339 + $_.eclevel = 6; //#26340 + $_.raw = false; //#26341 + $_.parse = false; //#26342 + $_.parsefnc = false; //#26343 + $_.mask = -1; //#26344 + $k[$j++] = $_; //#26346 + bwipp_processoptions(); //#26346 + $_.options = $k[--$j]; //#26346 + $_.barcode = $k[--$j]; //#26347 + $_.databpm = ~~(Math.round(Math.log($_.colors) / Math.log(2))); //#26349 + var _3 = $_.colors; //#26350 + $k[$j++] = 'metabpm'; //#26350 + $k[$j++] = _3; //#26350 + if (_3 > 8) { //#26350 + $j--; //#26350 + $k[$j++] = 8; //#26350 + } //#26350 + var _4 = $k[--$j]; //#26350 + $_[$k[--$j]] = ~~(Math.round(Math.log(_4) / Math.log(2))); //#26350 + $_.fn1 = -1; //#26353 var _9 = new Map([ ["parse", $_.parse], ["parsefnc", $_.parsefnc], ["FNC1", $_.fn1] - ]); //#26042 - $_.fncvals = _9; //#26043 - $k[$j++] = 'msg'; //#26044 - $k[$j++] = $_.barcode; //#26044 - $k[$j++] = $_.fncvals; //#26044 - bwipp_parseinput(); //#26044 - var _C = $k[--$j]; //#26044 - $_[$k[--$j]] = _C; //#26044 - $_.msglen = $_.msg.length; //#26045 + ]); //#26357 + $_.fncvals = _9; //#26358 + $k[$j++] = 'msg'; //#26359 + $k[$j++] = $_.barcode; //#26359 + $k[$j++] = $_.fncvals; //#26359 + bwipp_parseinput(); //#26359 + var _C = $k[--$j]; //#26359 + $_[$k[--$j]] = _C; //#26359 + $_.msglen = $_.msg.length; //#26360 $_.addtobits = function() { - var _F = $k[--$j]; //#26066 - $puti($_.bits, $_.j, _F); //#26066 - $_.j = _F.length + $_.j; //#26067 - }; //#26067 + var _F = $k[--$j]; //#26381 + $puti($_.bits, $_.j, _F); //#26381 + $_.j = _F.length + $_.j; //#26382 + }; //#26382 $_.tofixedbits = function() { - var _K = $strcpy($s(13), "0000000000000"); //#26071 - var _L = $k[--$j]; //#26071 - var _O = $cvrs($s(13), $k[--$j], 2); //#26071 - $puti(_K, $f(_L - _O.length), _O); //#26072 - $k[$j++] = $geti(_K, 0, _L); //#26073 - }; //#26073 - var _R = ($_.msglen <= 15) ? 4 : 17; //#26077 - $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26077 - $_.j = 0; //#26078 - $k[$j++] = 31; //#26079 - $k[$j++] = 5; //#26079 - $_.tofixedbits(); //#26079 - $_.addtobits(); //#26079 - $k[$j++] = "00"; //#26080 - $_.addtobits(); //#26080 - if ($_.msglen <= 15) { //#26085 - $k[$j++] = $_.msglen; //#26082 - $k[$j++] = 4; //#26082 - $_.tofixedbits(); //#26082 - $_.addtobits(); //#26082 - } else { //#26085 - $k[$j++] = "0000"; //#26084 - $_.addtobits(); //#26084 - $k[$j++] = $_.msglen - 16; //#26085 - $k[$j++] = 13; //#26085 - $_.tofixedbits(); //#26085 - $_.addtobits(); //#26085 - } //#26085 - for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26089 - $k[$j++] = $get($_.msg, _Z); //#26088 - $k[$j++] = 8; //#26088 - $_.tofixedbits(); //#26088 - $_.addtobits(); //#26088 - } //#26088 - $k[$j++] = 28; //#26090 - $k[$j++] = 5; //#26090 - $_.tofixedbits(); //#26090 - $_.addtobits(); //#26090 - $k[$j++] = 31; //#26091 - $k[$j++] = 5; //#26091 - $_.tofixedbits(); //#26091 - $_.addtobits(); //#26091 - $k[$j++] = "11"; //#26092 - $_.addtobits(); //#26092 - $_.diffside = 21; //#26095 - $_.sameshape = false; //#26096 - $_.sameecc = false; //#26097 - $_.hasslaves = false; //#26098 + var _K = $strcpy($s(13), "0000000000000"); //#26386 + var _L = $k[--$j]; //#26386 + var _O = $cvrs($s(13), $k[--$j], 2); //#26386 + $puti(_K, $f(_L - _O.length), _O); //#26387 + $k[$j++] = $geti(_K, 0, _L); //#26388 + }; //#26388 + var _R = ($_.msglen <= 15) ? 4 : 17; //#26392 + $_.bits = $s(((7 + _R) + ($_.msglen * 8)) + 12); //#26392 + $_.j = 0; //#26393 + $k[$j++] = 31; //#26394 + $k[$j++] = 5; //#26394 + $_.tofixedbits(); //#26394 + $_.addtobits(); //#26394 + $k[$j++] = "00"; //#26395 + $_.addtobits(); //#26395 + if ($_.msglen <= 15) { //#26400 + $k[$j++] = $_.msglen; //#26397 + $k[$j++] = 4; //#26397 + $_.tofixedbits(); //#26397 + $_.addtobits(); //#26397 + } else { //#26400 + $k[$j++] = "0000"; //#26399 + $_.addtobits(); //#26399 + $k[$j++] = $_.msglen - 16; //#26400 + $k[$j++] = 13; //#26400 + $_.tofixedbits(); //#26400 + $_.addtobits(); //#26400 + } //#26400 + for (var _Z = 0, _Y = $_.msglen - 1; _Z <= _Y; _Z += 1) { //#26404 + $k[$j++] = $get($_.msg, _Z); //#26403 + $k[$j++] = 8; //#26403 + $_.tofixedbits(); //#26403 + $_.addtobits(); //#26403 + } //#26403 + $k[$j++] = 28; //#26405 + $k[$j++] = 5; //#26405 + $_.tofixedbits(); //#26405 + $_.addtobits(); //#26405 + $k[$j++] = 31; //#26406 + $k[$j++] = 5; //#26406 + $_.tofixedbits(); //#26406 + $_.addtobits(); //#26406 + $k[$j++] = "11"; //#26407 + $_.addtobits(); //#26407 + $_.diffside = 21; //#26410 + $_.sameshape = false; //#26411 + $_.sameecc = false; //#26412 + $_.hasslaves = false; //#26413 $_.metrics = function() { - $_.mc = $k[--$j]; //#26102 - $_.mr = $k[--$j]; //#26102 - var _e = $_.mc; //#26103 - var _f = $_.mr; //#26103 - var _g = $_.mc; //#26104 - var _h = $_.mr; //#26104 - var _i = $_.colors; //#26106 - var _j = 64; //#26106 - if (64 > _i) { //#26106 - var _ = _i; //#26106 - _i = _j; //#26106 - _j = _; //#26106 - } //#26106 - var _l = $_.slave ? 7 : 17; //#26107 - $k[$j++] = _e * _f; //#26135 - $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26135 - $k[$j++] = _j * 2; //#26135 - $k[$j++] = _l * 4; //#26135 - if (!$_.slave) { //#26134 - var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26111 - $_.metass = _p; //#26111 - var _q = $_.mr; //#26112 - var _r = $_.mc; //#26112 - if ($lt(_q, _r)) { //#26112 - var _ = _r; //#26112 - _r = _q; //#26112 - _q = _; //#26112 - } //#26112 - $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26113 - $k[$j++] = 'metavlen'; //#26114 - if ($_.metass == 0) { //#26114 - $k[$j++] = $a([2, 2, 3, 4]); //#26114 - } else { //#26114 - $k[$j++] = $a([4, 6, 8, 10]); //#26114 - } //#26114 - var _z = $get($k[--$j], $_.metavf); //#26114 - $_[$k[--$j]] = _z; //#26114 - $_.metaelen = $f(($_.metavf * 2) + 10); //#26115 - $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26118 - if ($_.hasslaves) { //#26118 - var _15 = $k[--$j]; //#26118 - $k[$j++] = $f(_15 + 4); //#26118 - } //#26118 - var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26121 - $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26121 - $k[$j++] = _18 + 6; //#26122 - } else { //#26134 - $k[$j++] = 3; //#26125 - if (!$_.sameshape) { //#26125 - var _1B = $k[--$j]; //#26125 - $k[$j++] = $f(_1B + 5); //#26125 - } //#26125 - if ($_.hasslaves) { //#26126 - var _1D = $k[--$j]; //#26126 - $k[$j++] = $f(_1D + 3); //#26126 - } //#26126 - if (!$_.sameecc) { //#26131 - var _1F = $_.mr; //#26128 - var _1G = $_.mc; //#26128 - if ($lt(_1F, _1G)) { //#26128 - var _ = _1G; //#26128 - _1G = _1F; //#26128 - _1F = _; //#26128 - } //#26128 - var _1J = $k[--$j]; //#26130 - $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26130 - } //#26130 - var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26134 - $_.nummetabits = _1M * $_.metabpm; //#26134 - $k[$j++] = _1M; //#26134 - } //#26134 - var _1O = $k[--$j]; //#26137 - $_.nummetamodules = _1O; //#26137 - var _1P = $k[--$j]; //#26138 - var _1Q = $k[--$j]; //#26138 - var _1R = $k[--$j]; //#26138 - $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26138 - $_.numdatabits = $_.numdatamodules * $_.databpm; //#26139 - }; //#26139 - $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26143 - $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26144 + $_.mc = $k[--$j]; //#26417 + $_.mr = $k[--$j]; //#26417 + var _e = $_.mc; //#26418 + var _f = $_.mr; //#26418 + var _g = $_.mc; //#26419 + var _h = $_.mr; //#26419 + var _i = $_.colors; //#26421 + var _j = 64; //#26421 + if (64 > _i) { //#26421 + var _ = _i; //#26421 + _i = _j; //#26421 + _j = _; //#26421 + } //#26421 + var _l = $_.slave ? 7 : 17; //#26422 + $k[$j++] = _e * _f; //#26450 + $k[$j++] = ((((~~($f(_g - 25) / 16)) + 2) * ((~~($f(_h - 25) / 16)) + 2)) - 4) * 7; //#26450 + $k[$j++] = _j * 2; //#26450 + $k[$j++] = _l * 4; //#26450 + if (!$_.slave) { //#26449 + var _p = $eq($_.mr, $_.mc) ? 0 : 1; //#26426 + $_.metass = _p; //#26426 + var _q = $_.mr; //#26427 + var _r = $_.mc; //#26427 + if ($lt(_q, _r)) { //#26427 + var _ = _r; //#26427 + _r = _q; //#26427 + _q = _; //#26427 + } //#26427 + $_.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_q - 21) / 16)); //#26428 + $k[$j++] = 'metavlen'; //#26429 + if ($_.metass == 0) { //#26429 + $k[$j++] = $a([2, 2, 3, 4]); //#26429 + } else { //#26429 + $k[$j++] = $a([4, 6, 8, 10]); //#26429 + } //#26429 + var _z = $get($k[--$j], $_.metavf); //#26429 + $_[$k[--$j]] = _z; //#26429 + $_.metaelen = $f(($_.metavf * 2) + 10); //#26430 + $k[$j++] = $f($f(7 + $_.metavlen) + $_.metaelen); //#26433 + if ($_.hasslaves) { //#26433 + var _15 = $k[--$j]; //#26433 + $k[$j++] = $f(_15 + 4); //#26433 + } //#26433 + var _18 = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26436 + $_.nummetabits = $f((_18 * $_.metabpm) + 6); //#26436 + $k[$j++] = _18 + 6; //#26437 + } else { //#26449 + $k[$j++] = 3; //#26440 + if (!$_.sameshape) { //#26440 + var _1B = $k[--$j]; //#26440 + $k[$j++] = $f(_1B + 5); //#26440 + } //#26440 + if ($_.hasslaves) { //#26441 + var _1D = $k[--$j]; //#26441 + $k[$j++] = $f(_1D + 3); //#26441 + } //#26441 + if (!$_.sameecc) { //#26446 + var _1F = $_.mr; //#26443 + var _1G = $_.mc; //#26443 + if ($lt(_1F, _1G)) { //#26443 + var _ = _1G; //#26443 + _1G = _1F; //#26443 + _1F = _; //#26443 + } //#26443 + var _1J = $k[--$j]; //#26445 + $k[$j++] = $f(_1J + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1F - 21) / 16))); //#26445 + } //#26445 + var _1M = ~~(Math.ceil(($k[--$j] * 2) / $_.metabpm)); //#26449 + $_.nummetabits = _1M * $_.metabpm; //#26449 + $k[$j++] = _1M; //#26449 + } //#26449 + var _1O = $k[--$j]; //#26452 + $_.nummetamodules = _1O; //#26452 + var _1P = $k[--$j]; //#26453 + var _1Q = $k[--$j]; //#26453 + var _1R = $k[--$j]; //#26453 + $_.numdatamodules = $f($k[--$j] - ($f(_1R + ($f(_1Q + $f(_1P + _1O)))))); //#26453 + $_.numdatabits = $_.numdatamodules * $_.databpm; //#26454 + }; //#26454 + $_.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $_.eclevel); //#26458 + $_.grosslen = ~~Math.ceil($_.bits.length / $_.coderate); //#26459 $_.snapsize = function() { - var _1b = (~~Math.ceil($k[--$j])) - 18; //#26145 - $k[$j++] = _1b; //#26145 - if (_1b < 0) { //#26145 - $j--; //#26145 - $k[$j++] = 0; //#26145 - } //#26145 - var _1c = $k[--$j]; //#26145 - $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26145 - }; //#26145 - if (($_.rows == -1) && ($_.columns == -1)) { //#26174 - $k[$j++] = 'size'; //#26148 - $k[$j++] = Math.sqrt($_.grosslen); //#26148 - $_.snapsize(); //#26148 - var _1g = $k[--$j]; //#26148 - $_[$k[--$j]] = _1g; //#26148 - for (;;) { //#26153 - $k[$j++] = $_.size; //#26150 - $k[$j++] = $_.size; //#26150 - $_.metrics(); //#26150 - if ($_.grosslen <= $_.numdatabits) { //#26151 - break; //#26151 - } //#26151 - $_.size = $f($_.size + 4); //#26152 - } //#26152 - $_.rows = $_.size; //#26154 - $_.columns = $_.size; //#26155 - } else { //#26174 - if (($_.columns == -1) && ($_.rows != -1)) { //#26164 - $k[$j++] = 'columns'; //#26158 - $k[$j++] = $_.grosslen / $_.rows; //#26158 - $_.snapsize(); //#26158 - var _1t = $k[--$j]; //#26158 - $_[$k[--$j]] = _1t; //#26158 - for (;;) { //#26163 - $k[$j++] = $_.rows; //#26160 - $k[$j++] = $_.columns; //#26160 - $_.metrics(); //#26160 - if ($_.grosslen <= $_.numdatabits) { //#26161 - break; //#26161 - } //#26161 - $_.columns = $f($_.columns + 4); //#26162 - } //#26162 - } //#26162 - if (($_.rows == -1) && ($_.columns != -1)) { //#26172 - $k[$j++] = 'rows'; //#26166 - $k[$j++] = $_.grosslen / $_.columns; //#26166 - $_.snapsize(); //#26166 - var _24 = $k[--$j]; //#26166 - $_[$k[--$j]] = _24; //#26166 - for (;;) { //#26171 - $k[$j++] = $_.rows; //#26168 - $k[$j++] = $_.columns; //#26168 - $_.metrics(); //#26168 - if ($_.grosslen <= $_.numdatabits) { //#26169 - break; //#26169 - } //#26169 - $_.rows = $f($_.rows + 4); //#26170 - } //#26170 - } //#26170 - if (($_.rows != -1) && ($_.columns != -1)) { //#26175 - $k[$j++] = $_.rows; //#26174 - $k[$j++] = $_.columns; //#26174 - $_.metrics(); //#26174 - } //#26174 - } //#26174 - $_.C = $_.numdatabits; //#26177 - $_.cols = $_.columns; //#26178 - if (($_.rows > 145) || ($_.cols > 145)) { //#26183 - $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26182'; //#26182 - $k[$j++] = "Maximum length exceeded or invalid content"; //#26182 - bwipp_raiseerror(); //#26182 - } //#26182 - $_.min = $_.C; //#26186 - for (var _2K = 3; _2K <= 8; _2K += 1) { //#26198 - $_.i = _2K; //#26188 - for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26197 - $_.j = _2M; //#26190 - $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26191 - if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26196 - $_.datawc = $_.i; //#26193 - $_.datawr = $_.j; //#26194 - $_.min = $_.dist; //#26195 - } //#26195 - } //#26195 - } //#26195 - $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26201 - $puti($_.tmpbits, 0, $_.bits); //#26202 - for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26206 - var _2o = $get($_.tmpbits, _2m - 1); //#26204 - $k[$j++] = _2m; //#26204 - $k[$j++] = _2o; //#26204 - if ((_2o % 2) == 0) { //#26204 - var _2p = $k[--$j]; //#26204 - $k[$j++] = $f(_2p + 1); //#26204 - } else { //#26204 - var _2q = $k[--$j]; //#26204 - $k[$j++] = $f(_2q - 1); //#26204 - } //#26204 - var _2s = $k[--$j]; //#26205 - $put($_.tmpbits, $k[--$j], _2s); //#26205 - } //#26205 - $_.bits = $_.tmpbits; //#26207 - $_.m0 = 22609 + 1; //#26211 - $_.m1 = 62509 - 65536; //#26211 - $_.m2 = 19605; //#26211 - $_.m3 = 32557; //#26211 + var _1b = (~~Math.ceil($k[--$j])) - 18; //#26460 + $k[$j++] = _1b; //#26460 + if (_1b < 0) { //#26460 + $j--; //#26460 + $k[$j++] = 0; //#26460 + } //#26460 + var _1c = $k[--$j]; //#26460 + $k[$j++] = ((~~(_1c / 4)) * 4) + 21; //#26460 + }; //#26460 + if (($_.rows == -1) && ($_.columns == -1)) { //#26489 + $k[$j++] = 'size'; //#26463 + $k[$j++] = Math.sqrt($_.grosslen); //#26463 + $_.snapsize(); //#26463 + var _1g = $k[--$j]; //#26463 + $_[$k[--$j]] = _1g; //#26463 + for (;;) { //#26468 + $k[$j++] = $_.size; //#26465 + $k[$j++] = $_.size; //#26465 + $_.metrics(); //#26465 + if ($_.grosslen <= $_.numdatabits) { //#26466 + break; //#26466 + } //#26466 + $_.size = $f($_.size + 4); //#26467 + } //#26467 + $_.rows = $_.size; //#26469 + $_.columns = $_.size; //#26470 + } else { //#26489 + if (($_.columns == -1) && ($_.rows != -1)) { //#26479 + $k[$j++] = 'columns'; //#26473 + $k[$j++] = $_.grosslen / $_.rows; //#26473 + $_.snapsize(); //#26473 + var _1t = $k[--$j]; //#26473 + $_[$k[--$j]] = _1t; //#26473 + for (;;) { //#26478 + $k[$j++] = $_.rows; //#26475 + $k[$j++] = $_.columns; //#26475 + $_.metrics(); //#26475 + if ($_.grosslen <= $_.numdatabits) { //#26476 + break; //#26476 + } //#26476 + $_.columns = $f($_.columns + 4); //#26477 + } //#26477 + } //#26477 + if (($_.rows == -1) && ($_.columns != -1)) { //#26487 + $k[$j++] = 'rows'; //#26481 + $k[$j++] = $_.grosslen / $_.columns; //#26481 + $_.snapsize(); //#26481 + var _24 = $k[--$j]; //#26481 + $_[$k[--$j]] = _24; //#26481 + for (;;) { //#26486 + $k[$j++] = $_.rows; //#26483 + $k[$j++] = $_.columns; //#26483 + $_.metrics(); //#26483 + if ($_.grosslen <= $_.numdatabits) { //#26484 + break; //#26484 + } //#26484 + $_.rows = $f($_.rows + 4); //#26485 + } //#26485 + } //#26485 + if (($_.rows != -1) && ($_.columns != -1)) { //#26490 + $k[$j++] = $_.rows; //#26489 + $k[$j++] = $_.columns; //#26489 + $_.metrics(); //#26489 + } //#26489 + } //#26489 + $_.C = $_.numdatabits; //#26492 + $_.cols = $_.columns; //#26493 + if (($_.rows > 145) || ($_.cols > 145)) { //#26498 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol#26497'; //#26497 + $k[$j++] = "Maximum length exceeded or invalid content"; //#26497 + bwipp_raiseerror(); //#26497 + } //#26497 + $_.min = $_.C; //#26501 + for (var _2K = 3; _2K <= 8; _2K += 1) { //#26513 + $_.i = _2K; //#26503 + for (var _2M = $_.i + 1; _2M <= 9; _2M += 1) { //#26512 + $_.j = _2M; //#26505 + $_.dist = (((~~($_.C / $_.j)) * $_.j) - ((~~($_.C / $_.j)) * $_.i)) - $_.bits.length; //#26506 + if (($_.dist < $_.min) && ($_.dist >= 0)) { //#26511 + $_.datawc = $_.i; //#26508 + $_.datawr = $_.j; //#26509 + $_.min = $_.dist; //#26510 + } //#26510 + } //#26510 + } //#26510 + $_.tmpbits = $s(((~~($_.C / $_.datawr)) * $_.datawr) - ((~~($_.C / $_.datawr)) * $_.datawc)); //#26516 + $puti($_.tmpbits, 0, $_.bits); //#26517 + for (var _2m = $_.bits.length, _2l = $_.tmpbits.length - 1; _2m <= _2l; _2m += 1) { //#26521 + var _2o = $get($_.tmpbits, _2m - 1); //#26519 + $k[$j++] = _2m; //#26519 + $k[$j++] = _2o; //#26519 + if ((_2o % 2) == 0) { //#26519 + var _2p = $k[--$j]; //#26519 + $k[$j++] = $f(_2p + 1); //#26519 + } else { //#26519 + var _2q = $k[--$j]; //#26519 + $k[$j++] = $f(_2q - 1); //#26519 + } //#26519 + var _2s = $k[--$j]; //#26520 + $put($_.tmpbits, $k[--$j], _2s); //#26520 + } //#26520 + $_.bits = $_.tmpbits; //#26522 + $_.m0 = 22609 + 1; //#26526 + $_.m1 = 62509 - 65536; //#26526 + $_.m2 = 19605; //#26526 + $_.m3 = 32557; //#26526 $_.lcg64_temper = function() { - $_.p00 = $_.m0 * $_.s0; //#26217 - $_.p01 = $_.m0 * $_.s1; //#26217 - $_.p02 = $_.m0 * $_.s2; //#26217 - $_.p03 = $_.m0 * $_.s3; //#26217 - $_.p10 = $_.m1 * $_.s0; //#26218 - $_.p11 = $_.m1 * $_.s1; //#26218 - $_.p12 = $_.m1 * $_.s2; //#26218 - $_.p13 = $_.m1 * $_.s3; //#26218 - $_.p20 = $_.m2 * $_.s0; //#26219 - $_.p21 = $_.m2 * $_.s1; //#26219 - $_.p22 = $_.m2 * $_.s2; //#26219 - $_.p23 = $_.m2 * $_.s3; //#26219 - $_.p30 = $_.m3 * $_.s0; //#26220 - $_.p31 = $_.m3 * $_.s1; //#26220 - $_.p32 = $_.m3 * $_.s2; //#26220 - $_.p33 = $_.m3 * $_.s3; //#26220 - $_.s3 = ($_.p33 % 65536) + 1; //#26222 - $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26224 - $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26227 - $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26231 - $_.s3 = $_.s3 + 65536; //#26234 - $_.s2 = $_.s2 + 65535; //#26235 - $_.s1 = $_.s1 + 65535; //#26236 - $_.s0 = $_.s0 + 65535; //#26237 - $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26240 - $_.s3 = $_.s3 % 65536; //#26240 - $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26241 - $_.s2 = $_.s2 % 65536; //#26241 - $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26242 - $_.s1 = $_.s1 % 65536; //#26242 - $_.s0 = $_.s0 % 65536; //#26243 - var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26248 - var _3y = _3x ^ (_3x >>> 11); //#26249 - var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26250 - var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26252 - $k[$j++] = _40 ^ (_40 >>> 18); //#26252 - }; //#26252 + $_.p00 = $_.m0 * $_.s0; //#26532 + $_.p01 = $_.m0 * $_.s1; //#26532 + $_.p02 = $_.m0 * $_.s2; //#26532 + $_.p03 = $_.m0 * $_.s3; //#26532 + $_.p10 = $_.m1 * $_.s0; //#26533 + $_.p11 = $_.m1 * $_.s1; //#26533 + $_.p12 = $_.m1 * $_.s2; //#26533 + $_.p13 = $_.m1 * $_.s3; //#26533 + $_.p20 = $_.m2 * $_.s0; //#26534 + $_.p21 = $_.m2 * $_.s1; //#26534 + $_.p22 = $_.m2 * $_.s2; //#26534 + $_.p23 = $_.m2 * $_.s3; //#26534 + $_.p30 = $_.m3 * $_.s0; //#26535 + $_.p31 = $_.m3 * $_.s1; //#26535 + $_.p32 = $_.m3 * $_.s2; //#26535 + $_.p33 = $_.m3 * $_.s3; //#26535 + $_.s3 = ($_.p33 % 65536) + 1; //#26537 + $_.s2 = (($_.p32 % 65536) + (~~($_.p33 / 65536))) + ($_.p23 % 65536); //#26539 + $_.s1 = ((($_.p31 % 65536) + (~~($_.p32 / 65536))) + (($_.p22 % 65536) + (~~($_.p23 / 65536)))) + ($_.p13 % 65536); //#26542 + $_.s0 = (((($_.p30 % 65536) + (~~($_.p31 / 65536))) + (($_.p21 % 65536) + (~~($_.p22 / 65536)))) + (($_.p12 % 65536) + (~~($_.p13 / 65536)))) + ($_.p03 % 65536); //#26546 + $_.s3 = $_.s3 + 65536; //#26549 + $_.s2 = $_.s2 + 65535; //#26550 + $_.s1 = $_.s1 + 65535; //#26551 + $_.s0 = $_.s0 + 65535; //#26552 + $_.s2 = (~~($_.s3 / 65536)) + $_.s2; //#26555 + $_.s3 = $_.s3 % 65536; //#26555 + $_.s1 = (~~($_.s2 / 65536)) + $_.s1; //#26556 + $_.s2 = $_.s2 % 65536; //#26556 + $_.s0 = (~~($_.s1 / 65536)) + $_.s0; //#26557 + $_.s1 = $_.s1 % 65536; //#26557 + $_.s0 = $_.s0 % 65536; //#26558 + var _3x = (((($_.s0 - 32768) * 65536) + $_.s1) ^ 2147483648) & 4294967295; //#26563 + var _3y = _3x ^ (_3x >>> 11); //#26564 + var _3z = _3y ^ ((_3y << 7) & -1658038656); //#26565 + var _40 = (_3z ^ ((_3z << 15) & -272236544)) & 4294967295; //#26567 + $k[$j++] = _40 ^ (_40 >>> 18); //#26567 + }; //#26567 $_.createMatrixA = function() { - $k[$j++] = 'nb_pcb'; //#26258 - if ($_.wr < 4) { //#26258 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26258 - } else { //#26258 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26258 - } //#26258 - var _46 = $k[--$j]; //#26258 - $_[$k[--$j]] = _46; //#26258 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26259 - $_.effwidth = $_.offset * 32; //#26260 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26261 - for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26262 - $put($_.matrixA, _4G, 0); //#26262 - } //#26262 - $_.permutation = $a($_.Pg_sub_block); //#26263 - for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26264 - $put($_.permutation, _4M, _4M); //#26264 - } //#26264 - for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26273 - $_.i = _4R; //#26267 - for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26272 - $_.j = _4U; //#26269 - var _4V = $_.matrixA; //#26270 - var _4W = $_.i; //#26270 - var _4X = $_.effwidth; //#26270 - var _4Y = $_.wr; //#26270 - var _4Z = $_.j; //#26270 - var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26271 - $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26271 - } //#26271 - } //#26271 - $_.s0 = 0; //#26276 - $_.s1 = 0; //#26276 - $_.s2 = 11; //#26276 - $_.s3 = 64569; //#26276 - for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26299 - $_.i = _4i; //#26278 - $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26279 - for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26298 - $_.j = _4o; //#26281 - $_.lcg64_temper(); //#26282 - var _4p = $k[--$j]; //#26283 - $k[$j++] = _4p; //#26283 - if (_4p < 0) { //#26283 - var _4q = $k[--$j]; //#26283 - $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26283 - } //#26283 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26285 - for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26294 - $_.k = _4x; //#26287 - var _4y = $_.matrixA; //#26288 - var _4z = $_.off_index; //#26288 - var _50 = $_.k; //#26288 - var _51 = $_.offset; //#26288 - var _52 = $_.j; //#26288 - var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26290 - var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26291 - var _5G = 31 - ($_.j % 32); //#26292 - $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26293 - } //#26293 - var _5J = $_.permutation; //#26295 - var _5K = $_.Pg_sub_block; //#26295 - var _5L = $_.j; //#26295 - $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26297 - $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26297 - } //#26297 - } //#26297 - }; //#26297 + $k[$j++] = 'nb_pcb'; //#26573 + if ($_.wr < 4) { //#26573 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26573 + } else { //#26573 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26573 + } //#26573 + var _46 = $k[--$j]; //#26573 + $_[$k[--$j]] = _46; //#26573 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26574 + $_.effwidth = $_.offset * 32; //#26575 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26576 + for (var _4G = 0, _4F = ($_.offset * $_.nb_pcb) - 1; _4G <= _4F; _4G += 1) { //#26577 + $put($_.matrixA, _4G, 0); //#26577 + } //#26577 + $_.permutation = $a($_.Pg_sub_block); //#26578 + for (var _4M = 0, _4L = $_.Pg_sub_block - 1; _4M <= _4L; _4M += 1) { //#26579 + $put($_.permutation, _4M, _4M); //#26579 + } //#26579 + for (var _4R = 0, _4Q = (~~($_.Pg_sub_block / $_.wr)) - 1; _4R <= _4Q; _4R += 1) { //#26588 + $_.i = _4R; //#26582 + for (var _4U = 0, _4T = $f($_.wr - 1); _4U <= _4T; _4U += 1) { //#26587 + $_.j = _4U; //#26584 + var _4V = $_.matrixA; //#26585 + var _4W = $_.i; //#26585 + var _4X = $_.effwidth; //#26585 + var _4Y = $_.wr; //#26585 + var _4Z = $_.j; //#26585 + var _4f = $f(31 - (($f(($_.i * $f($_.effwidth + $_.wr)) + $_.j)) % 32)); //#26586 + $put(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32), $get(_4V, ~~(($f((_4W * $f(_4X + _4Y)) + _4Z)) / 32)) | ((_4f < 0 ? 1 >>> -_4f : 1 << _4f))); //#26586 + } //#26586 + } //#26586 + $_.s0 = 0; //#26591 + $_.s1 = 0; //#26591 + $_.s2 = 11; //#26591 + $_.s3 = 64569; //#26591 + for (var _4i = 1, _4h = $f($_.wc - 1); _4i <= _4h; _4i += 1) { //#26614 + $_.i = _4i; //#26593 + $_.off_index = (~~($_.Pg_sub_block / $_.wr)) * $_.i; //#26594 + for (var _4o = 0, _4n = $_.Pg_sub_block - 1; _4o <= _4n; _4o += 1) { //#26613 + $_.j = _4o; //#26596 + $_.lcg64_temper(); //#26597 + var _4p = $k[--$j]; //#26598 + $k[$j++] = _4p; //#26598 + if (_4p < 0) { //#26598 + var _4q = $k[--$j]; //#26598 + $k[$j++] = $f((_4q ^ 2147483648) + 2147483648); //#26598 + } //#26598 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26600 + for (var _4x = 0, _4w = (~~($_.Pg_sub_block / $_.wr)) - 1; _4x <= _4w; _4x += 1) { //#26609 + $_.k = _4x; //#26602 + var _4y = $_.matrixA; //#26603 + var _4z = $_.off_index; //#26603 + var _50 = $_.k; //#26603 + var _51 = $_.offset; //#26603 + var _52 = $_.j; //#26603 + var _5A = $get($_.matrixA, (~~($get($_.permutation, $_.pos) / 32)) + ($_.k * $_.offset)); //#26605 + var _5E = -($f(31 - ($get($_.permutation, $_.pos) % 32))); //#26606 + var _5G = 31 - ($_.j % 32); //#26607 + $put(_4y, ((_4z + _50) * _51) + (~~(_52 / 32)), $get(_4y, ((_4z + _50) * _51) + (~~(_52 / 32))) | ((_5G < 0 ? (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) >>> -_5G : (((_5E < 0 ? _5A >>> -_5E : _5A << _5E)) & 1) << _5G))); //#26608 + } //#26608 + var _5J = $_.permutation; //#26610 + var _5K = $_.Pg_sub_block; //#26610 + var _5L = $_.j; //#26610 + $put(_5J, (_5K - 1) - _5L, $get($_.permutation, $_.pos)); //#26612 + $put($_.permutation, $_.pos, $get(_5J, (_5K - 1) - _5L)); //#26612 + } //#26612 + } //#26612 + }; //#26612 $_.createMetadataMatrixA = function() { - $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26305 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26306 - $_.matrixA = $a($_.offset * $_.nb_pcb); //#26307 - for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26308 - $put($_.matrixA, _5Y, 0); //#26308 - } //#26308 - $_.permutation = $a($_.Pg_sub_block); //#26309 - for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26310 - $put($_.permutation, _5e, _5e); //#26310 - } //#26310 - $_.s0 = 0; //#26313 - $_.s1 = 0; //#26313 - $_.s2 = 0; //#26313 - $_.s3 = 38545; //#26313 - $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26314 - for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26329 - $_.i = _5m; //#26316 - for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26328 - $_.j = _5p; //#26318 - $_.lcg64_temper(); //#26319 - var _5q = $k[--$j]; //#26320 - $k[$j++] = _5q; //#26320 - if (_5q < 0) { //#26320 - var _5r = $k[--$j]; //#26320 - $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26320 - } //#26320 - $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26322 - var _5v = $_.matrixA; //#26323 - var _5w = $_.i; //#26323 - var _5x = $_.offset; //#26323 - var _60 = $get($_.permutation, $_.pos); //#26323 - var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26324 - $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26324 - var _68 = $_.permutation; //#26325 - var _69 = $_.Pg_sub_block; //#26325 - var _6A = $_.j; //#26325 - $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26327 - $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26327 - } //#26327 - } //#26327 - }; //#26327 + $_.nb_pcb = ~~($_.Pg_sub_block / 2); //#26620 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26621 + $_.matrixA = $a($_.offset * $_.nb_pcb); //#26622 + for (var _5Y = 0, _5X = ($_.offset * $_.nb_pcb) - 1; _5Y <= _5X; _5Y += 1) { //#26623 + $put($_.matrixA, _5Y, 0); //#26623 + } //#26623 + $_.permutation = $a($_.Pg_sub_block); //#26624 + for (var _5e = 0, _5d = $_.Pg_sub_block - 1; _5e <= _5d; _5e += 1) { //#26625 + $put($_.permutation, _5e, _5e); //#26625 + } //#26625 + $_.s0 = 0; //#26628 + $_.s1 = 0; //#26628 + $_.s2 = 0; //#26628 + $_.s3 = 38545; //#26628 + $_.nb_once = ~~((~~($f((($_.nb_pcb / $_.wc) * $_.Pg_sub_block) + 3))) / $_.nb_pcb); //#26629 + for (var _5m = 0, _5l = $_.nb_pcb - 1; _5m <= _5l; _5m += 1) { //#26644 + $_.i = _5m; //#26631 + for (var _5p = 0, _5o = $_.nb_once - 1; _5p <= _5o; _5p += 1) { //#26643 + $_.j = _5p; //#26633 + $_.lcg64_temper(); //#26634 + var _5q = $k[--$j]; //#26635 + $k[$j++] = _5q; //#26635 + if (_5q < 0) { //#26635 + var _5r = $k[--$j]; //#26635 + $k[$j++] = $f((_5r ^ 2147483648) + 2147483648); //#26635 + } //#26635 + $_.pos = ~~(($k[--$j] / 4294967296) * ($_.Pg_sub_block - $_.j)); //#26637 + var _5v = $_.matrixA; //#26638 + var _5w = $_.i; //#26638 + var _5x = $_.offset; //#26638 + var _60 = $get($_.permutation, $_.pos); //#26638 + var _65 = $f(31 - ($get($_.permutation, $_.pos) % 32)); //#26639 + $put(_5v, (_5w * _5x) + (~~(_60 / 32)), $get(_5v, (_5w * _5x) + (~~(_60 / 32))) | ((_65 < 0 ? 1 >>> -_65 : 1 << _65))); //#26639 + var _68 = $_.permutation; //#26640 + var _69 = $_.Pg_sub_block; //#26640 + var _6A = $_.j; //#26640 + $put(_68, (_69 - 1) - _6A, $get($_.permutation, $_.pos)); //#26642 + $put($_.permutation, $_.pos, $get(_68, (_69 - 1) - _6A)); //#26642 + } //#26642 + } //#26642 + }; //#26642 $_.GaussJordan = function() { - $k[$j++] = 'nb_pcb'; //#26335 - if ($_.wr < 4) { //#26335 - $k[$j++] = ~~($_.Pg_sub_block / 2); //#26335 - } else { //#26335 - $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26335 - } //#26335 - var _6K = $k[--$j]; //#26335 - $_[$k[--$j]] = _6K; //#26335 - $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26336 - var _6N = $_.matrixA; //#26337 - $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26337 - $k[$j++] = Infinity; //#26338 - for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26338 - $k[$j++] = 0; //#26338 - } //#26338 - $_.column_arrangement = $a(); //#26338 - $k[$j++] = Infinity; //#26339 - for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26339 - $k[$j++] = false; //#26339 - } //#26339 - $_.processed_column = $a(); //#26339 - $k[$j++] = Infinity; //#26340 - for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26340 - $k[$j++] = 0; //#26340 - } //#26340 - $_.zero_lines_nb = $a(); //#26340 - $k[$j++] = Infinity; //#26341 - for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26341 - $k[$j++] = 0; //#26341 - } //#26341 - $_.swap_col = $a(); //#26341 - $_.zero_lines = 0; //#26342 - $_.loop0 = 0; //#26344 - for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26382 - $_.i = _6i; //#26346 - $_.pivot_column = $_.Pg_sub_block + 1; //#26347 - for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26355 - $_.j = _6m; //#26349 - var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26350 - var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26351 - if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26354 - $_.pivot_column = $_.j; //#26352 - break; //#26353 - } //#26353 - } //#26353 - if ($_.pivot_column < $_.Pg_sub_block) { //#26380 - $put($_.processed_column, $_.pivot_column, true); //#26357 - $put($_.column_arrangement, $_.pivot_column, $_.i); //#26358 - if ($_.pivot_column >= $_.nb_pcb) { //#26362 - $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26360 - $_.loop0 = $_.loop0 + 1; //#26361 - } //#26361 - $_.off_index = ~~($_.pivot_column / 32); //#26363 - $_.off_index1 = $_.pivot_column % 32; //#26364 - for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26377 - $_.j = _7E; //#26366 - if ($_.i != $_.j) { //#26376 - var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26368 - var _7N = -(31 - $_.off_index1); //#26369 - if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26375 - for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26374 - $_.k = _7Q; //#26371 - var _7R = $_.matrixH; //#26372 - var _7S = $_.offset; //#26372 - var _7T = $_.j; //#26372 - var _7U = $_.k; //#26372 - $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26373 - } //#26373 - } //#26373 - } //#26373 - } //#26373 - } else { //#26380 - $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26379 - $_.zero_lines = $_.zero_lines + 1; //#26380 - } //#26380 - } //#26380 - $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26384 - $_.loop2 = 0; //#26385 - for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26405 - $_.i = _7k; //#26387 - if ($get($_.column_arrangement, $_.i) > 0) { //#26404 - for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26403 - $_.j = _7q; //#26390 - if ($nt($get($_.processed_column, $_.j))) { //#26402 - $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26392 - $put($_.column_arrangement, $_.i, 0); //#26393 - $put($_.processed_column, $_.j, true); //#26394 - $put($_.processed_column, $_.i, false); //#26395 - $put($_.swap_col, $_.loop0 * 2, $_.i); //#26396 - $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26397 - $put($_.column_arrangement, $_.i, $_.j); //#26398 - $_.loop0 = $_.loop0 + 1; //#26399 - $_.loop2 = $_.loop2 + 1; //#26400 - break; //#26401 - } //#26401 - } //#26401 - } //#26401 - } //#26401 - $_.loop1 = 0; //#26407 - for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26416 - $_.kl = _8I; //#26409 - if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26415 - $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26411 - $put($_.processed_column, $_.kl, true); //#26412 - $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26413 - $_.loop1 = $_.loop1 + 1; //#26414 - } //#26414 - } //#26414 - $_.loop1 = 0; //#26418 - for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26425 - $_.kl = _8e; //#26420 - if ($nt($get($_.processed_column, $_.kl))) { //#26424 - $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26422 - $_.loop1 = $_.loop1 + 1; //#26423 - } //#26423 - } //#26423 - for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26434 - $_.i = _8q; //#26428 - for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26433 - $_.j = _8t; //#26430 - $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26432 - } //#26432 - } //#26432 - $_.tmp = 0; //#26436 - for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26458 - $_.i = _97; //#26438 - for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26457 - $_.j = _9A; //#26440 - var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26441 - var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26442 - $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26443 - var _9O = $_.matrixA; //#26444 - var _9R = $get($_.swap_col, $_.i * 2); //#26444 - var _9S = $_.j; //#26444 - var _9T = $_.offset; //#26444 - var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26446 - var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26447 - var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26449 - $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26450 - var _9r = $_.matrixA; //#26451 - var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26451 - var _9v = $_.j; //#26451 - var _9w = $_.offset; //#26451 - var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26455 - $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26456 - } //#26456 - } //#26456 - }; //#26456 + $k[$j++] = 'nb_pcb'; //#26650 + if ($_.wr < 4) { //#26650 + $k[$j++] = ~~($_.Pg_sub_block / 2); //#26650 + } else { //#26650 + $k[$j++] = (~~($_.Pg_sub_block / $_.wr)) * $_.wc; //#26650 + } //#26650 + var _6K = $k[--$j]; //#26650 + $_[$k[--$j]] = _6K; //#26650 + $_.offset = ~~Math.ceil($_.Pg_sub_block / 32); //#26651 + var _6N = $_.matrixA; //#26652 + $_.matrixH = $arrcpy($a(_6N.length), _6N); //#26652 + $k[$j++] = Infinity; //#26653 + for (var _6R = 0, _6S = $_.Pg_sub_block; _6R < _6S; _6R++) { //#26653 + $k[$j++] = 0; //#26653 + } //#26653 + $_.column_arrangement = $a(); //#26653 + $k[$j++] = Infinity; //#26654 + for (var _6V = 0, _6W = $_.Pg_sub_block; _6V < _6W; _6V++) { //#26654 + $k[$j++] = false; //#26654 + } //#26654 + $_.processed_column = $a(); //#26654 + $k[$j++] = Infinity; //#26655 + for (var _6Z = 0, _6a = $_.nb_pcb; _6Z < _6a; _6Z++) { //#26655 + $k[$j++] = 0; //#26655 + } //#26655 + $_.zero_lines_nb = $a(); //#26655 + $k[$j++] = Infinity; //#26656 + for (var _6d = 0, _6e = $_.Pg_sub_block * 2; _6d < _6e; _6d++) { //#26656 + $k[$j++] = 0; //#26656 + } //#26656 + $_.swap_col = $a(); //#26656 + $_.zero_lines = 0; //#26657 + $_.loop0 = 0; //#26659 + for (var _6i = 0, _6h = $_.nb_pcb - 1; _6i <= _6h; _6i += 1) { //#26697 + $_.i = _6i; //#26661 + $_.pivot_column = $_.Pg_sub_block + 1; //#26662 + for (var _6m = 0, _6l = $_.Pg_sub_block - 1; _6m <= _6l; _6m += 1) { //#26670 + $_.j = _6m; //#26664 + var _6r = $get($_.matrixH, ~~(((($_.offset * 32) * $_.i) + $_.j) / 32)); //#26665 + var _6v = -(31 - (((($_.offset * 32) * $_.i) + $_.j) % 32)); //#26666 + if ((((_6v < 0 ? _6r >>> -_6v : _6r << _6v)) & 1) == 1) { //#26669 + $_.pivot_column = $_.j; //#26667 + break; //#26668 + } //#26668 + } //#26668 + if ($_.pivot_column < $_.Pg_sub_block) { //#26695 + $put($_.processed_column, $_.pivot_column, true); //#26672 + $put($_.column_arrangement, $_.pivot_column, $_.i); //#26673 + if ($_.pivot_column >= $_.nb_pcb) { //#26677 + $put($_.swap_col, $_.loop0 * 2, $_.pivot_column); //#26675 + $_.loop0 = $_.loop0 + 1; //#26676 + } //#26676 + $_.off_index = ~~($_.pivot_column / 32); //#26678 + $_.off_index1 = $_.pivot_column % 32; //#26679 + for (var _7E = 0, _7D = $_.nb_pcb - 1; _7E <= _7D; _7E += 1) { //#26692 + $_.j = _7E; //#26681 + if ($_.i != $_.j) { //#26691 + var _7L = $get($_.matrixH, $_.off_index + ($_.j * $_.offset)); //#26683 + var _7N = -(31 - $_.off_index1); //#26684 + if ((((_7N < 0 ? _7L >>> -_7N : _7L << _7N)) & 1) == 1) { //#26690 + for (var _7Q = 0, _7P = $_.offset - 1; _7Q <= _7P; _7Q += 1) { //#26689 + $_.k = _7Q; //#26686 + var _7R = $_.matrixH; //#26687 + var _7S = $_.offset; //#26687 + var _7T = $_.j; //#26687 + var _7U = $_.k; //#26687 + $put(_7R, (_7S * _7T) + _7U, $xo($get(_7R, (_7S * _7T) + _7U), $get($_.matrixH, ($_.offset * $_.i) + $_.k))); //#26688 + } //#26688 + } //#26688 + } //#26688 + } //#26688 + } else { //#26695 + $put($_.zero_lines_nb, $_.zero_lines, $_.i); //#26694 + $_.zero_lines = $_.zero_lines + 1; //#26695 + } //#26695 + } //#26695 + $_.matrix_rank = $_.nb_pcb - $_.zero_lines; //#26699 + $_.loop2 = 0; //#26700 + for (var _7k = $_.matrix_rank, _7j = $_.nb_pcb - 1; _7k <= _7j; _7k += 1) { //#26720 + $_.i = _7k; //#26702 + if ($get($_.column_arrangement, $_.i) > 0) { //#26719 + for (var _7q = 0, _7p = $_.nb_pcb - 1; _7q <= _7p; _7q += 1) { //#26718 + $_.j = _7q; //#26705 + if ($nt($get($_.processed_column, $_.j))) { //#26717 + $put($_.column_arrangement, $_.j, $get($_.column_arrangement, $_.i)); //#26707 + $put($_.column_arrangement, $_.i, 0); //#26708 + $put($_.processed_column, $_.j, true); //#26709 + $put($_.processed_column, $_.i, false); //#26710 + $put($_.swap_col, $_.loop0 * 2, $_.i); //#26711 + $put($_.swap_col, ($_.loop0 * 2) + 1, $_.j); //#26712 + $put($_.column_arrangement, $_.i, $_.j); //#26713 + $_.loop0 = $_.loop0 + 1; //#26714 + $_.loop2 = $_.loop2 + 1; //#26715 + break; //#26716 + } //#26716 + } //#26716 + } //#26716 + } //#26716 + $_.loop1 = 0; //#26722 + for (var _8I = 0, _8H = $_.nb_pcb - 1; _8I <= _8H; _8I += 1) { //#26731 + $_.kl = _8I; //#26724 + if ($nt($get($_.processed_column, $_.kl)) && ($_.loop1 < ($_.loop0 - $_.loop2))) { //#26730 + $put($_.column_arrangement, $_.kl, $get($_.column_arrangement, $get($_.swap_col, $_.loop1 * 2))); //#26726 + $put($_.processed_column, $_.kl, true); //#26727 + $put($_.swap_col, ($_.loop1 * 2) + 1, $_.kl); //#26728 + $_.loop1 = $_.loop1 + 1; //#26729 + } //#26729 + } //#26729 + $_.loop1 = 0; //#26733 + for (var _8e = 0, _8d = $_.nb_pcb - 1; _8e <= _8d; _8e += 1) { //#26740 + $_.kl = _8e; //#26735 + if ($nt($get($_.processed_column, $_.kl))) { //#26739 + $put($_.column_arrangement, $_.kl, $get($_.zero_lines_nb, $_.loop1)); //#26737 + $_.loop1 = $_.loop1 + 1; //#26738 + } //#26738 + } //#26738 + for (var _8q = 0, _8p = $_.nb_pcb - 1; _8q <= _8p; _8q += 1) { //#26749 + $_.i = _8q; //#26743 + for (var _8t = 0, _8s = $_.offset - 1; _8t <= _8s; _8t += 1) { //#26748 + $_.j = _8t; //#26745 + $put($_.matrixA, ($_.i * $_.offset) + $_.j, $get($_.matrixH, $f(($get($_.column_arrangement, $_.i) * $_.offset) + $_.j))); //#26747 + } //#26747 + } //#26747 + $_.tmp = 0; //#26751 + for (var _97 = 0, _96 = $_.loop0 - 1; _97 <= _96; _97 += 1) { //#26773 + $_.i = _97; //#26753 + for (var _9A = 0, _99 = $_.nb_pcb - 1; _9A <= _99; _9A += 1) { //#26772 + $_.j = _9A; //#26755 + var _9H = $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset)); //#26756 + var _9L = -($f(31 - ($get($_.swap_col, $_.i * 2) % 32))); //#26757 + $_.tmp = (((-(((_9L < 0 ? _9H >>> -_9L : _9H << _9L)) & 1)) ^ $_.tmp) & 1) ^ $_.tmp; //#26758 + var _9O = $_.matrixA; //#26759 + var _9R = $get($_.swap_col, $_.i * 2); //#26759 + var _9S = $_.j; //#26759 + var _9T = $_.offset; //#26759 + var _9b = $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset)); //#26761 + var _9f = -($f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32))); //#26762 + var _9q = $f(31 - ($get($_.swap_col, $_.i * 2) % 32)); //#26764 + $put(_9O, (~~(_9R / 32)) + (_9S * _9T), $get(_9O, (~~(_9R / 32)) + (_9S * _9T)) ^ (((-(((_9f < 0 ? _9b >>> -_9f : _9b << _9f)) & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, $_.i * 2) / 32)) + ($_.j * $_.offset))) & ((_9q < 0 ? 1 >>> -_9q : 1 << _9q)))); //#26765 + var _9r = $_.matrixA; //#26766 + var _9u = $get($_.swap_col, ($_.i * 2) + 1); //#26766 + var _9v = $_.j; //#26766 + var _9w = $_.offset; //#26766 + var _A9 = $f(31 - ($get($_.swap_col, ($_.i * 2) + 1) % 32)); //#26770 + $put(_9r, (~~(_9u / 32)) + (_9v * _9w), $get(_9r, (~~(_9u / 32)) + (_9v * _9w)) ^ (((-($_.tmp & 1)) ^ $get($_.matrixA, (~~($get($_.swap_col, ($_.i * 2) + 1) / 32)) + ($_.j * $_.offset))) & ((_A9 < 0 ? 1 >>> -_A9 : 1 << _A9)))); //#26771 + } //#26771 + } //#26771 + }; //#26771 $_.createGeneratorMatrix = function() { - $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26464 - $_.offset = ~~Math.ceil($_.pn / 32); //#26465 - $_.effwidth = $_.offset * 32; //#26466 - $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26467 - $_.G = $a($_.offset * $_.Pg_sub_block); //#26468 - for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26471 - $put($_.G, _AL, 0); //#26470 - } //#26470 - for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26476 - $_.i = _AP; //#26473 - var _AQ = $_.G; //#26474 - var _AR = $_.Pg_sub_block; //#26474 - var _AS = $_.pn; //#26474 - var _AT = $_.i; //#26474 - var _AU = $_.offset; //#26474 - var _AV = $_.i; //#26474 - var _AY = 31 - ($_.i % 32); //#26475 - $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26475 - } //#26475 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26477 - $_.loop0 = 0; //#26478 - for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26495 - $_.i = _Af; //#26480 - if ($_.matrix_index >= $_.Pg_sub_block) { //#26484 - $_.loop0 = $_.loop0 + 1; //#26482 - $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26483 - } //#26483 - if (($_.i % $_.effwidth) < $_.pn) { //#26494 - var _Ao = $_.G; //#26486 - var _Ap = $_.i; //#26486 - var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26488 - var _Ax = -(31 - ($_.matrix_index % 32)); //#26489 - var _B2 = 31 - ($_.i % 32); //#26491 - $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26492 - $_.matrix_index = $_.matrix_index + 1; //#26493 - } //#26493 - } //#26493 - }; //#26493 + $_.pn = $_.Pg_sub_block - $_.matrix_rank; //#26779 + $_.offset = ~~Math.ceil($_.pn / 32); //#26780 + $_.effwidth = $_.offset * 32; //#26781 + $_.offset_cap = ~~Math.ceil($_.Pg_sub_block / 32); //#26782 + $_.G = $a($_.offset * $_.Pg_sub_block); //#26783 + for (var _AL = 0, _AK = ($_.offset * $_.Pg_sub_block) - 1; _AL <= _AK; _AL += 1) { //#26786 + $put($_.G, _AL, 0); //#26785 + } //#26785 + for (var _AP = 0, _AO = $_.pn - 1; _AP <= _AO; _AP += 1) { //#26791 + $_.i = _AP; //#26788 + var _AQ = $_.G; //#26789 + var _AR = $_.Pg_sub_block; //#26789 + var _AS = $_.pn; //#26789 + var _AT = $_.i; //#26789 + var _AU = $_.offset; //#26789 + var _AV = $_.i; //#26789 + var _AY = 31 - ($_.i % 32); //#26790 + $put(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32)), $get(_AQ, (((_AR - _AS) + _AT) * _AU) + (~~(_AV / 32))) | ((_AY < 0 ? 1 >>> -_AY : 1 << _AY))); //#26790 + } //#26790 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26792 + $_.loop0 = 0; //#26793 + for (var _Af = 0, _Ae = (($_.Pg_sub_block - $_.pn) * $_.effwidth) - 1; _Af <= _Ae; _Af += 1) { //#26810 + $_.i = _Af; //#26795 + if ($_.matrix_index >= $_.Pg_sub_block) { //#26799 + $_.loop0 = $_.loop0 + 1; //#26797 + $_.matrix_index = $_.Pg_sub_block - $_.pn; //#26798 + } //#26798 + if (($_.i % $_.effwidth) < $_.pn) { //#26809 + var _Ao = $_.G; //#26801 + var _Ap = $_.i; //#26801 + var _Av = $get($_.matrixA, (~~($_.matrix_index / 32)) + ($_.offset_cap * $_.loop0)); //#26803 + var _Ax = -(31 - ($_.matrix_index % 32)); //#26804 + var _B2 = 31 - ($_.i % 32); //#26806 + $put(_Ao, ~~(_Ap / 32), $get(_Ao, ~~(_Ap / 32)) ^ (((-(((_Ax < 0 ? _Av >>> -_Ax : _Av << _Ax)) & 1)) ^ $get($_.G, ~~($_.i / 32))) & ((_B2 < 0 ? 1 >>> -_B2 : 1 << _B2)))); //#26807 + $_.matrix_index = $_.matrix_index + 1; //#26808 + } //#26808 + } //#26808 + }; //#26808 $_.ldpc = function() { - $_.wr = $k[--$j]; //#26501 - $_.wc = $k[--$j]; //#26502 - $k[$j++] = Infinity; //#26503 - var _B6 = $k[--$j]; //#26503 - var _B7 = $k[--$j]; //#26503 - $k[$j++] = _B6; //#26503 - $forall(_B7, function() { //#26503 - var _B8 = $k[--$j]; //#26503 - $k[$j++] = $f(_B8 - 48); //#26503 - }); //#26503 - $_.data = $a(); //#26503 - $_.Pn = $_.data.length; //#26505 - if ($_.wr != -1) { //#26520 - $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26507 - $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26508 - $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26509 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26510 - $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26511 - $k[$j++] = 'encoding_iterations'; //#26512 - $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26512 - if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26512 - var _BY = $k[--$j]; //#26512 - $k[$j++] = $f(_BY - 1); //#26512 - } //#26512 - var _BZ = $k[--$j]; //#26512 - $_[$k[--$j]] = _BZ; //#26512 - $_.createMatrixA(); //#26513 - } else { //#26520 - $_.Pg = $_.Pn * 2; //#26515 - $_.nb_sub_blocks = 1; //#26516 - $_.Pg_sub_block = $_.Pg; //#26517 - $_.Pn_sub_block = $_.Pn; //#26518 - $_.encoding_iterations = 1; //#26519 - $_.createMetadataMatrixA(); //#26520 - } //#26520 - $_.GaussJordan(); //#26522 - $_.createGeneratorMatrix(); //#26523 - $_.ecc_encoded_data = $a($_.Pg); //#26525 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26527 - for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26543 - $_.iter = _Bk; //#26529 - for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26542 - $_.i = _Bn; //#26531 - $_.temp = 0; //#26532 - $_.loop0 = 0; //#26533 - $_.offset_index = $_.offset * $_.i; //#26534 - for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26540 - var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26537 - var _C3 = -(31 - ($_.loop0 % 32)); //#26537 - $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26538 - $_.loop0 = $_.loop0 + 1; //#26539 - } //#26539 - $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26541 - } //#26541 - } //#26541 - if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26567 - $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26546 - $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26547 - $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26548 - $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26549 - $_.createMatrixA(); //#26550 - $_.GaussJordan(); //#26551 - $_.createGeneratorMatrix(); //#26552 - $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26553 - for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26566 - $_.i = _CS; //#26555 - $_.temp = 0; //#26556 - $_.loop0 = 0; //#26557 - $_.offset_index = $_.offset * $_.i; //#26558 - for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26564 - var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26561 - var _Cg = -(31 - ($_.loop0 % 32)); //#26561 - $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26562 - $_.loop0 = $_.loop0 + 1; //#26563 - } //#26563 - $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26565 - } //#26565 - } //#26565 - $_.out = $s($_.Pg); //#26569 - for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26573 - $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26572 - } //#26572 - $k[$j++] = $_.out; //#26574 - }; //#26574 - $k[$j++] = 'bits'; //#26579 - $k[$j++] = $_.bits; //#26579 - $k[$j++] = $_.datawc; //#26579 - $k[$j++] = $_.datawr; //#26579 - $_.ldpc(); //#26579 - var _Cz = $k[--$j]; //#26579 - $_[$k[--$j]] = _Cz; //#26579 - $_.s0 = 0; //#26582 - $_.s1 = 0; //#26582 - $_.s2 = 3; //#26582 - $_.s3 = 30151; //#26582 - for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26592 - $_.l = _D2; //#26584 - $_.lcg64_temper(); //#26585 - var _D3 = $k[--$j]; //#26586 - $k[$j++] = _D3; //#26586 - if (_D3 < 0) { //#26586 - var _D4 = $k[--$j]; //#26586 - $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26586 - } //#26586 - $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26588 - $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26590 - $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26591 - } //#26591 - $_.tmpbits = $s($_.C); //#26595 - $puti($_.tmpbits, 0, $_.bits); //#26596 - $_.j = $_.bits.length; //#26597 - for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26602 - $put($_.tmpbits, $_.j, 48); //#26599 - if (($_.j + 1) < $_.C) { //#26600 - $put($_.tmpbits, $_.j + 1, 49); //#26600 - } //#26600 - $_.j = $_.j + 2; //#26601 - } //#26601 - $_.bits = $_.tmpbits; //#26603 - if ($_.colors == 4) { //#26668 - $_.bi = 0; //#26607 - $_.gi = 1; //#26607 - $_.mi = 2; //#26607 - $_.yi = 3; //#26607 - $_.ki = 4; //#26608 - $_.wi = 5; //#26608 - $k[$j++] = Infinity; //#26611 - $k[$j++] = $_.bi; //#26611 - $k[$j++] = "0000FF"; //#26611 - $k[$j++] = $_.gi; //#26611 - $k[$j++] = "00FF00"; //#26611 - $k[$j++] = $_.mi; //#26611 - $k[$j++] = "FF00FF"; //#26611 - $k[$j++] = $_.yi; //#26611 - $k[$j++] = "FFFF00"; //#26611 - $k[$j++] = $_.ki; //#26611 - $k[$j++] = "000000"; //#26611 - $k[$j++] = $_.wi; //#26611 - $k[$j++] = "FFFFFF"; //#26611 - $_.palette = $d(); //#26612 - $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26613 - $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26614 - } else { //#26668 + $_.wr = $k[--$j]; //#26816 + $_.wc = $k[--$j]; //#26817 + $k[$j++] = Infinity; //#26818 + var _B6 = $k[--$j]; //#26818 + var _B7 = $k[--$j]; //#26818 + $k[$j++] = _B6; //#26818 + $forall(_B7, function() { //#26818 + var _B8 = $k[--$j]; //#26818 + $k[$j++] = $f(_B8 - 48); //#26818 + }); //#26818 + $_.data = $a(); //#26818 + $_.Pn = $_.data.length; //#26820 + if ($_.wr != -1) { //#26835 + $_.Pg = ~~((Math.ceil((Math.ceil(($_.Pn * $_.wr) / $f($_.wr - $_.wc))) / $_.wr)) * $_.wr); //#26822 + $_.nb_sub_blocks = (~~($_.Pg / 2700)) + 1; //#26823 + $_.Pg_sub_block = (~~((~~($_.Pg / $_.nb_sub_blocks)) / $_.wr)) * $_.wr; //#26824 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26825 + $_.nb_sub_blocks = ~~($_.Pg / $_.Pg_sub_block); //#26826 + $k[$j++] = 'encoding_iterations'; //#26827 + $k[$j++] = ~~($_.Pg / $_.Pg_sub_block); //#26827 + if (($_.Pn_sub_block * $_.nb_sub_blocks) < $_.Pn) { //#26827 + var _BY = $k[--$j]; //#26827 + $k[$j++] = $f(_BY - 1); //#26827 + } //#26827 + var _BZ = $k[--$j]; //#26827 + $_[$k[--$j]] = _BZ; //#26827 + $_.createMatrixA(); //#26828 + } else { //#26835 + $_.Pg = $_.Pn * 2; //#26830 + $_.nb_sub_blocks = 1; //#26831 + $_.Pg_sub_block = $_.Pg; //#26832 + $_.Pn_sub_block = $_.Pn; //#26833 + $_.encoding_iterations = 1; //#26834 + $_.createMetadataMatrixA(); //#26835 + } //#26835 + $_.GaussJordan(); //#26837 + $_.createGeneratorMatrix(); //#26838 + $_.ecc_encoded_data = $a($_.Pg); //#26840 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26842 + for (var _Bk = 0, _Bj = $_.encoding_iterations - 1; _Bk <= _Bj; _Bk += 1) { //#26858 + $_.iter = _Bk; //#26844 + for (var _Bn = 0, _Bm = $_.Pg_sub_block - 1; _Bn <= _Bm; _Bn += 1) { //#26857 + $_.i = _Bn; //#26846 + $_.temp = 0; //#26847 + $_.loop0 = 0; //#26848 + $_.offset_index = $_.offset * $_.i; //#26849 + for (var _Bv = $_.iter * $_.Pn_sub_block, _Bu = (($_.iter + 1) * $_.Pn_sub_block) - 1; _Bv <= _Bu; _Bv += 1) { //#26855 + var _C1 = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26852 + var _C3 = -(31 - ($_.loop0 % 32)); //#26852 + $_.temp = ($get($_.data, _Bv) & (((_C3 < 0 ? _C1 >>> -_C3 : _C1 << _C3)) & 1)) ^ $_.temp; //#26853 + $_.loop0 = $_.loop0 + 1; //#26854 + } //#26854 + $put($_.ecc_encoded_data, $_.i + ($_.iter * $_.Pg_sub_block), $_.temp); //#26856 + } //#26856 + } //#26856 + if ($_.encoding_iterations != $_.nb_sub_blocks) { //#26882 + $_.start = $_.encoding_iterations * $_.Pn_sub_block; //#26861 + $_.last_index = $_.encoding_iterations * $_.Pg_sub_block; //#26862 + $_.Pg_sub_block = $_.Pg - ($_.encoding_iterations * $_.Pg_sub_block); //#26863 + $_.Pn_sub_block = ~~(($_.Pg_sub_block * $f($_.wr - $_.wc)) / $_.wr); //#26864 + $_.createMatrixA(); //#26865 + $_.GaussJordan(); //#26866 + $_.createGeneratorMatrix(); //#26867 + $_.offset = ~~(Math.ceil(($_.Pg_sub_block - $_.matrix_rank) / 32)); //#26868 + for (var _CS = 0, _CR = $_.Pg_sub_block - 1; _CS <= _CR; _CS += 1) { //#26881 + $_.i = _CS; //#26870 + $_.temp = 0; //#26871 + $_.loop0 = 0; //#26872 + $_.offset_index = $_.offset * $_.i; //#26873 + for (var _CY = $_.start, _CX = $_.Pn - 1; _CY <= _CX; _CY += 1) { //#26879 + var _Ce = $get($_.G, $_.offset_index + (~~($_.loop0 / 32))); //#26876 + var _Cg = -(31 - ($_.loop0 % 32)); //#26876 + $_.temp = ($get($_.data, _CY) & (((_Cg < 0 ? _Ce >>> -_Cg : _Ce << _Cg)) & 1)) ^ $_.temp; //#26877 + $_.loop0 = $_.loop0 + 1; //#26878 + } //#26878 + $put($_.ecc_encoded_data, $_.i + $_.last_index, $_.temp); //#26880 + } //#26880 + } //#26880 + $_.out = $s($_.Pg); //#26884 + for (var _Cr = 0, _Cq = $_.Pg - 1; _Cr <= _Cq; _Cr += 1) { //#26888 + $put($_.out, _Cr, $f($get($_.ecc_encoded_data, _Cr) + 48)); //#26887 + } //#26887 + $k[$j++] = $_.out; //#26889 + }; //#26889 + $k[$j++] = 'bits'; //#26894 + $k[$j++] = $_.bits; //#26894 + $k[$j++] = $_.datawc; //#26894 + $k[$j++] = $_.datawr; //#26894 + $_.ldpc(); //#26894 + var _Cz = $k[--$j]; //#26894 + $_[$k[--$j]] = _Cz; //#26894 + $_.s0 = 0; //#26897 + $_.s1 = 0; //#26897 + $_.s2 = 3; //#26897 + $_.s3 = 30151; //#26897 + for (var _D2 = $_.bits.length - 1; _D2 >= 1; _D2 -= 1) { //#26907 + $_.l = _D2; //#26899 + $_.lcg64_temper(); //#26900 + var _D3 = $k[--$j]; //#26901 + $k[$j++] = _D3; //#26901 + if (_D3 < 0) { //#26901 + var _D4 = $k[--$j]; //#26901 + $k[$j++] = $f((_D4 ^ 2147483648) + 2147483648); //#26901 + } //#26901 + $_.r = ~~(($k[--$j] / 4294967296) * ($_.l + 1)); //#26903 + $put($_.bits, $_.l, $get($_.bits, $_.r)); //#26905 + $put($_.bits, $_.r, $get($_.bits, $_.l)); //#26906 + } //#26906 + $_.tmpbits = $s($_.C); //#26910 + $puti($_.tmpbits, 0, $_.bits); //#26911 + $_.j = $_.bits.length; //#26912 + for (var _DO = 0, _DP = ~~(($f($f($_.C - $_.j) + 1)) / 2); _DO < _DP; _DO++) { //#26917 + $put($_.tmpbits, $_.j, 48); //#26914 + if (($_.j + 1) < $_.C) { //#26915 + $put($_.tmpbits, $_.j + 1, 49); //#26915 + } //#26915 + $_.j = $_.j + 2; //#26916 + } //#26916 + $_.bits = $_.tmpbits; //#26918 + if ($_.colors == 4) { //#26983 + $_.bi = 0; //#26922 + $_.gi = 1; //#26922 + $_.mi = 2; //#26922 + $_.yi = 3; //#26922 + $_.ki = 4; //#26923 + $_.wi = 5; //#26923 + $k[$j++] = Infinity; //#26924 + $k[$j++] = $_.bi; //#26926 + $k[$j++] = "0000FF"; //#26926 + $k[$j++] = $_.gi; //#26926 + $k[$j++] = "00FF00"; //#26926 + $k[$j++] = $_.mi; //#26926 + $k[$j++] = "FF00FF"; //#26926 + $k[$j++] = $_.yi; //#26926 + $k[$j++] = "FFFF00"; //#26926 + $k[$j++] = $_.ki; //#26926 + $k[$j++] = "000000"; //#26926 + $k[$j++] = $_.wi; //#26926 + $k[$j++] = "FFFFFF"; //#26926 + $_.palette = $d(); //#26927 + $_.metacolorindex = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26928 + $_.palettelayout = $a([$_.bi, $_.gi, $_.mi, $_.yi]); //#26929 + } else { //#26983 var _Dw = new Map([ [8, $a([2, 2, 2])], [16, $a([4, 2, 2])], @@ -33190,1037 +33668,1037 @@ function bwipp_jabcode() { [64, $a([4, 4, 4])], [128, $a([8, 4, 4])], [256, $a([8, 8, 4])] - ]); //#26623 - $_.rgbres = $get(_Dw, $_.colors); //#26624 - $k[$j++] = 'rvals'; //#26626 - $k[$j++] = $get($_.rgbres, 0); //#26626 - $k[$j++] = Infinity; //#26626 - var _E1 = $k[--$j]; //#26626 - var _E3 = $f($k[--$j] - 1); //#26626 - $k[$j++] = _E1; //#26626 - $k[$j++] = _E3; //#26626 - for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26626 - var _E6 = $k[--$j]; //#26626 - $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26626 - $k[$j++] = _E6; //#26626 - } //#26626 - $j--; //#26626 - var _E7 = $a(); //#26626 - $_[$k[--$j]] = _E7; //#26626 - $k[$j++] = 'gvals'; //#26627 - $k[$j++] = $get($_.rgbres, 1); //#26627 - $k[$j++] = Infinity; //#26627 - var _EB = $k[--$j]; //#26627 - var _ED = $f($k[--$j] - 1); //#26627 - $k[$j++] = _EB; //#26627 - $k[$j++] = _ED; //#26627 - for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26627 - var _EG = $k[--$j]; //#26627 - $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26627 - $k[$j++] = _EG; //#26627 - } //#26627 - $j--; //#26627 - var _EH = $a(); //#26627 - $_[$k[--$j]] = _EH; //#26627 - $k[$j++] = 'bvals'; //#26628 - $k[$j++] = $get($_.rgbres, 2); //#26628 - $k[$j++] = Infinity; //#26628 - var _EL = $k[--$j]; //#26628 - var _EN = $f($k[--$j] - 1); //#26628 - $k[$j++] = _EL; //#26628 - $k[$j++] = _EN; //#26628 - for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26628 - var _EQ = $k[--$j]; //#26628 - $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26628 - $k[$j++] = _EQ; //#26628 - } //#26628 - $j--; //#26628 - var _ER = $a(); //#26628 - $_[$k[--$j]] = _ER; //#26628 - var _ET = $_.colors; //#26630 - $_.palette = new Map; //#26630 - var _EU = $_.colors; //#26631 - var _EV = 64; //#26631 - if (64 > _EU) { //#26631 - var _ = _EU; //#26631 - _EU = _EV; //#26631 - _EV = _; //#26631 - } //#26631 - $_.palettelayout = $a(_EV); //#26631 - $_.i = 0; //#26632 - $_.j = 8; //#26632 - $forall($_.rvals, function() { //#26666 - $_.r = $k[--$j]; //#26634 - $forall($_.gvals, function() { //#26665 - $_.g = $k[--$j]; //#26636 - $forall($_.bvals, function() { //#26664 - $_.b = $k[--$j]; //#26638 - var _Eh = $strcpy($s(6), "000000"); //#26640 - var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26640 - $puti(_Eh, 6 - _Ej.length, _Ej); //#26640 - $k[$j++] = _Eh; //#26642 - $k[$j++] = false; //#26642 - if ($eq(_Eh, "000000")) { //#26642 - $_.ki = $_.i; //#26642 - $j--; //#26642 - $k[$j++] = true; //#26642 - } //#26642 - var _El = $k[--$j]; //#26643 - var _Em = $k[--$j]; //#26643 - $k[$j++] = _Em; //#26643 - $k[$j++] = _El; //#26643 - if ($eq(_Em, "0000FF")) { //#26643 - $_.bi = $_.i; //#26643 - $j--; //#26643 - $k[$j++] = true; //#26643 - } //#26643 - var _Eo = $k[--$j]; //#26644 - var _Ep = $k[--$j]; //#26644 - $k[$j++] = _Ep; //#26644 - $k[$j++] = _Eo; //#26644 - if ($eq(_Ep, "00FF00")) { //#26644 - $_.gi = $_.i; //#26644 - $j--; //#26644 - $k[$j++] = true; //#26644 - } //#26644 - var _Er = $k[--$j]; //#26645 - var _Es = $k[--$j]; //#26645 - $k[$j++] = _Es; //#26645 - $k[$j++] = _Er; //#26645 - if ($eq(_Es, "00FFFF")) { //#26645 - $_.ci = $_.i; //#26645 - $j--; //#26645 - $k[$j++] = true; //#26645 - } //#26645 - var _Eu = $k[--$j]; //#26646 - var _Ev = $k[--$j]; //#26646 - $k[$j++] = _Ev; //#26646 - $k[$j++] = _Eu; //#26646 - if ($eq(_Ev, "FF0000")) { //#26646 - $_.ri = $_.i; //#26646 - $j--; //#26646 - $k[$j++] = true; //#26646 - } //#26646 - var _Ex = $k[--$j]; //#26647 - var _Ey = $k[--$j]; //#26647 - $k[$j++] = _Ey; //#26647 - $k[$j++] = _Ex; //#26647 - if ($eq(_Ey, "FF00FF")) { //#26647 - $_.mi = $_.i; //#26647 - $j--; //#26647 - $k[$j++] = true; //#26647 - } //#26647 - var _F0 = $k[--$j]; //#26648 - var _F1 = $k[--$j]; //#26648 - $k[$j++] = _F1; //#26648 - $k[$j++] = _F0; //#26648 - if ($eq(_F1, "FFFF00")) { //#26648 - $_.yi = $_.i; //#26648 - $j--; //#26648 - $k[$j++] = true; //#26648 - } //#26648 - var _F3 = $k[--$j]; //#26649 - var _F4 = $k[--$j]; //#26649 - $k[$j++] = _F4; //#26649 - $k[$j++] = _F3; //#26649 - if ($eq(_F4, "FFFFFF")) { //#26649 - $_.wi = $_.i; //#26649 - $j--; //#26649 - $k[$j++] = true; //#26649 - } //#26649 - if ($nt($k[--$j])) { //#26661 - if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26660 - $put($_.palettelayout, $_.j, $_.i); //#26658 - $_.j = $_.j + 1; //#26659 - } //#26659 - } //#26659 - $put($_.palette, $_.i, $k[--$j]); //#26662 - $_.i = $_.i + 1; //#26663 - }); //#26663 - }); //#26663 - }); //#26663 - $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26667 - $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26668 - } //#26668 - $k[$j++] = Infinity; //#26672 - for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26672 - $k[$j++] = -1; //#26672 - } //#26672 - $_.pixs = $a(); //#26672 + ]); //#26938 + $_.rgbres = $get(_Dw, $_.colors); //#26939 + $k[$j++] = 'rvals'; //#26941 + $k[$j++] = $get($_.rgbres, 0); //#26941 + $k[$j++] = Infinity; //#26941 + var _E1 = $k[--$j]; //#26941 + var _E3 = $f($k[--$j] - 1); //#26941 + $k[$j++] = _E1; //#26941 + $k[$j++] = _E3; //#26941 + for (var _E5 = 0, _E4 = _E3; _E5 <= _E4; _E5 += 1) { //#26941 + var _E6 = $k[--$j]; //#26941 + $k[$j++] = ~~(Math.round(_E5 * (255 / _E6))); //#26941 + $k[$j++] = _E6; //#26941 + } //#26941 + $j--; //#26941 + var _E7 = $a(); //#26941 + $_[$k[--$j]] = _E7; //#26941 + $k[$j++] = 'gvals'; //#26942 + $k[$j++] = $get($_.rgbres, 1); //#26942 + $k[$j++] = Infinity; //#26942 + var _EB = $k[--$j]; //#26942 + var _ED = $f($k[--$j] - 1); //#26942 + $k[$j++] = _EB; //#26942 + $k[$j++] = _ED; //#26942 + for (var _EF = 0, _EE = _ED; _EF <= _EE; _EF += 1) { //#26942 + var _EG = $k[--$j]; //#26942 + $k[$j++] = ~~(Math.round(_EF * (255 / _EG))); //#26942 + $k[$j++] = _EG; //#26942 + } //#26942 + $j--; //#26942 + var _EH = $a(); //#26942 + $_[$k[--$j]] = _EH; //#26942 + $k[$j++] = 'bvals'; //#26943 + $k[$j++] = $get($_.rgbres, 2); //#26943 + $k[$j++] = Infinity; //#26943 + var _EL = $k[--$j]; //#26943 + var _EN = $f($k[--$j] - 1); //#26943 + $k[$j++] = _EL; //#26943 + $k[$j++] = _EN; //#26943 + for (var _EP = 0, _EO = _EN; _EP <= _EO; _EP += 1) { //#26943 + var _EQ = $k[--$j]; //#26943 + $k[$j++] = ~~(Math.round(_EP * (255 / _EQ))); //#26943 + $k[$j++] = _EQ; //#26943 + } //#26943 + $j--; //#26943 + var _ER = $a(); //#26943 + $_[$k[--$j]] = _ER; //#26943 + var _ET = $_.colors; //#26945 + $_.palette = new Map; //#26945 + var _EU = $_.colors; //#26946 + var _EV = 64; //#26946 + if (64 > _EU) { //#26946 + var _ = _EU; //#26946 + _EU = _EV; //#26946 + _EV = _; //#26946 + } //#26946 + $_.palettelayout = $a(_EV); //#26946 + $_.i = 0; //#26947 + $_.j = 8; //#26947 + $forall($_.rvals, function() { //#26981 + $_.r = $k[--$j]; //#26949 + $forall($_.gvals, function() { //#26980 + $_.g = $k[--$j]; //#26951 + $forall($_.bvals, function() { //#26979 + $_.b = $k[--$j]; //#26953 + var _Eh = $strcpy($s(6), "000000"); //#26955 + var _Ej = $cvrs($s(6), (($_.r << 16) | ($_.g << 8)) | $_.b, 16); //#26955 + $puti(_Eh, 6 - _Ej.length, _Ej); //#26955 + $k[$j++] = _Eh; //#26957 + $k[$j++] = false; //#26957 + if ($eq(_Eh, "000000")) { //#26957 + $_.ki = $_.i; //#26957 + $j--; //#26957 + $k[$j++] = true; //#26957 + } //#26957 + var _El = $k[--$j]; //#26958 + var _Em = $k[--$j]; //#26958 + $k[$j++] = _Em; //#26958 + $k[$j++] = _El; //#26958 + if ($eq(_Em, "0000FF")) { //#26958 + $_.bi = $_.i; //#26958 + $j--; //#26958 + $k[$j++] = true; //#26958 + } //#26958 + var _Eo = $k[--$j]; //#26959 + var _Ep = $k[--$j]; //#26959 + $k[$j++] = _Ep; //#26959 + $k[$j++] = _Eo; //#26959 + if ($eq(_Ep, "00FF00")) { //#26959 + $_.gi = $_.i; //#26959 + $j--; //#26959 + $k[$j++] = true; //#26959 + } //#26959 + var _Er = $k[--$j]; //#26960 + var _Es = $k[--$j]; //#26960 + $k[$j++] = _Es; //#26960 + $k[$j++] = _Er; //#26960 + if ($eq(_Es, "00FFFF")) { //#26960 + $_.ci = $_.i; //#26960 + $j--; //#26960 + $k[$j++] = true; //#26960 + } //#26960 + var _Eu = $k[--$j]; //#26961 + var _Ev = $k[--$j]; //#26961 + $k[$j++] = _Ev; //#26961 + $k[$j++] = _Eu; //#26961 + if ($eq(_Ev, "FF0000")) { //#26961 + $_.ri = $_.i; //#26961 + $j--; //#26961 + $k[$j++] = true; //#26961 + } //#26961 + var _Ex = $k[--$j]; //#26962 + var _Ey = $k[--$j]; //#26962 + $k[$j++] = _Ey; //#26962 + $k[$j++] = _Ex; //#26962 + if ($eq(_Ey, "FF00FF")) { //#26962 + $_.mi = $_.i; //#26962 + $j--; //#26962 + $k[$j++] = true; //#26962 + } //#26962 + var _F0 = $k[--$j]; //#26963 + var _F1 = $k[--$j]; //#26963 + $k[$j++] = _F1; //#26963 + $k[$j++] = _F0; //#26963 + if ($eq(_F1, "FFFF00")) { //#26963 + $_.yi = $_.i; //#26963 + $j--; //#26963 + $k[$j++] = true; //#26963 + } //#26963 + var _F3 = $k[--$j]; //#26964 + var _F4 = $k[--$j]; //#26964 + $k[$j++] = _F4; //#26964 + $k[$j++] = _F3; //#26964 + if ($eq(_F4, "FFFFFF")) { //#26964 + $_.wi = $_.i; //#26964 + $j--; //#26964 + $k[$j++] = true; //#26964 + } //#26964 + if ($nt($k[--$j])) { //#26976 + if (($_.colors <= 64) || ((($_.colors == 128) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) || ((($_.colors == 256) && (((($_.r == 0) || ($_.r == 73)) || ($_.r == 182)) || ($_.r == 255))) && (((($_.g == 0) || ($_.g == 73)) || ($_.g == 182)) || ($_.g == 255))))) { //#26975 + $put($_.palettelayout, $_.j, $_.i); //#26973 + $_.j = $_.j + 1; //#26974 + } //#26974 + } //#26974 + $put($_.palette, $_.i, $k[--$j]); //#26977 + $_.i = $_.i + 1; //#26978 + }); //#26978 + }); //#26978 + }); //#26978 + $puti($_.palettelayout, 0, $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi])); //#26982 + $_.metacolorindex = $a([$_.ki, $_.bi, $_.gi, $_.ci, $_.ri, $_.mi, $_.yi, $_.wi]); //#26983 + } //#26983 + $k[$j++] = Infinity; //#26987 + for (var _Fp = 0, _Fq = $_.rows * $_.cols; _Fp < _Fq; _Fp++) { //#26987 + $k[$j++] = -1; //#26987 + } //#26987 + $_.pixs = $a(); //#26987 $_.jmv = function() { - var _Ft = $k[--$j]; //#26673 - var _Fu = $k[--$j]; //#26673 - $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26673 - }; //#26673 - if (!$_.slave) { //#26703 - $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26683 - $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#26689 - } else { //#26703 - $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#26697 - $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#26703 - } //#26703 - for (var _GY = 0; _GY <= 4; _GY += 1) { //#26715 - $_.y = _GY; //#26706 - for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#26714 - $_.x = _GZ; //#26708 - $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#26709 - $k[$j++] = $_.pixs; //#26710 - $k[$j++] = $_.x + 1; //#26710 - $k[$j++] = $_.y + 1; //#26710 - $_.jmv(); //#26710 - var _Gm = $k[--$j]; //#26710 - $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#26710 - $k[$j++] = $_.pixs; //#26711 - $k[$j++] = $_.x + 1; //#26711 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26711 - $_.jmv(); //#26711 - var _Gw = $k[--$j]; //#26711 - $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#26711 - $k[$j++] = $_.pixs; //#26712 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26712 - $k[$j++] = $_.y + 1; //#26712 - $_.jmv(); //#26712 - var _H6 = $k[--$j]; //#26712 - $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#26712 - $k[$j++] = $_.pixs; //#26713 - $k[$j++] = $f($f($_.x + $_.cols) - 6); //#26713 - $k[$j++] = $f($f($_.rows - $_.y) - 2); //#26713 - $_.jmv(); //#26713 - var _HH = $k[--$j]; //#26713 - $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#26713 - } //#26713 - } //#26713 - $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#26722 - $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#26727 - $_.num = (~~Math.round($_.cols / 16)) - 1; //#26728 - $_.algnrpos = $a([3, 17]); //#26729 - if ($_.num > 0) { //#26732 - $k[$j++] = Infinity; //#26731 - for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#26731 - $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#26731 - } //#26731 - $_.algnrpos = $a(); //#26731 - } //#26731 - $_.num = (~~Math.round($_.rows / 16)) - 1; //#26733 - $_.algncpos = $a([3, 17]); //#26734 - if ($_.num > 0) { //#26737 - $k[$j++] = Infinity; //#26736 - for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#26736 - $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#26736 - } //#26736 - $_.algncpos = $a(); //#26736 - } //#26736 + var _Ft = $k[--$j]; //#26988 + var _Fu = $k[--$j]; //#26988 + $k[$j++] = $f(_Fu + (_Ft * $_.cols)); //#26988 + }; //#26988 + if (!$_.slave) { //#27018 + $_.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#26998 + $_.fmap = $a([$a([-1, $_.bi, $_.yi]), $a([-1, $_.yi, $_.bi]), $a([-1, $_.gi, $_.mi]), $a([-1, $_.mi, $_.gi])]); //#27004 + } else { //#27018 + $_.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#27012 + $_.fmap = $a([$a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi]), $a([-1, $_.ki, $_.wi])]); //#27018 + } //#27018 + for (var _GY = 0; _GY <= 4; _GY += 1) { //#27030 + $_.y = _GY; //#27021 + for (var _GZ = 0; _GZ <= 4; _GZ += 1) { //#27029 + $_.x = _GZ; //#27023 + $_.fpb = $get($get($_.fpat, $_.y), $_.x); //#27024 + $k[$j++] = $_.pixs; //#27025 + $k[$j++] = $_.x + 1; //#27025 + $k[$j++] = $_.y + 1; //#27025 + $_.jmv(); //#27025 + var _Gm = $k[--$j]; //#27025 + $put($k[--$j], _Gm, $get($get($_.fmap, 0), $_.fpb)); //#27025 + $k[$j++] = $_.pixs; //#27026 + $k[$j++] = $_.x + 1; //#27026 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27026 + $_.jmv(); //#27026 + var _Gw = $k[--$j]; //#27026 + $put($k[--$j], _Gw, $get($get($_.fmap, 1), $_.fpb)); //#27026 + $k[$j++] = $_.pixs; //#27027 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27027 + $k[$j++] = $_.y + 1; //#27027 + $_.jmv(); //#27027 + var _H6 = $k[--$j]; //#27027 + $put($k[--$j], _H6, $get($get($_.fmap, 2), $_.fpb)); //#27027 + $k[$j++] = $_.pixs; //#27028 + $k[$j++] = $f($f($_.x + $_.cols) - 6); //#27028 + $k[$j++] = $f($f($_.rows - $_.y) - 2); //#27028 + $_.jmv(); //#27028 + var _HH = $k[--$j]; //#27028 + $put($k[--$j], _HH, $get($get($_.fmap, 3), $_.fpb)); //#27028 + } //#27028 + } //#27028 + $_.algnpat0 = $a([$a([$_.ki, $_.ki, -1]), $a([$_.ki, $_.wi, $_.ki]), $a([-1, $_.ki, $_.ki])]); //#27037 + $_.algnpat1 = $a([$a([-1, $_.ki, $_.ki]), $a([$_.ki, $_.wi, $_.ki]), $a([$_.ki, $_.ki, -1])]); //#27042 + $_.num = (~~Math.round($_.cols / 16)) - 1; //#27043 + $_.algnrpos = $a([3, 17]); //#27044 + if ($_.num > 0) { //#27047 + $k[$j++] = Infinity; //#27046 + for (var _Hk = 0, _Hj = $_.num; _Hk <= _Hj; _Hk += 1) { //#27046 + $k[$j++] = (~~(_Hk * ($f($_.cols - 7) / $_.num))) + 3; //#27046 + } //#27046 + $_.algnrpos = $a(); //#27046 + } //#27046 + $_.num = (~~Math.round($_.rows / 16)) - 1; //#27048 + $_.algncpos = $a([3, 17]); //#27049 + if ($_.num > 0) { //#27052 + $k[$j++] = Infinity; //#27051 + for (var _Ht = 0, _Hs = $_.num; _Ht <= _Hs; _Ht += 1) { //#27051 + $k[$j++] = (~~(_Ht * ($f($_.rows - 7) / $_.num))) + 3; //#27051 + } //#27051 + $_.algncpos = $a(); //#27051 + } //#27051 $_.putalgnpat = function() { - $_.pp = $k[--$j]; //#26739 - $_.py = $k[--$j]; //#26740 - $_.px = $k[--$j]; //#26741 - for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#26748 - $_.pb = _I0; //#26743 - for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#26747 - $_.pa = _I1; //#26745 - $k[$j++] = $_.pixs; //#26746 - $k[$j++] = $f($_.px + $_.pa); //#26746 - $k[$j++] = $f($_.py + $_.pb); //#26746 - $_.jmv(); //#26746 - var _IC = $k[--$j]; //#26746 - $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#26746 - } //#26746 - } //#26746 - }; //#26746 - for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#26760 - $_.j = _IG; //#26751 - $_.y = $get($_.algncpos, $_.j); //#26752 - for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#26759 - $_.i = _IM; //#26754 - $_.x = $get($_.algnrpos, $_.i); //#26755 - $k[$j++] = $_.pixs; //#26756 - $k[$j++] = $_.x; //#26756 - $k[$j++] = $_.y; //#26756 - $_.jmv(); //#26756 - var _IT = $k[--$j]; //#26756 - if ($get($k[--$j], _IT) == -1) { //#26758 - $k[$j++] = $f($_.x - 1); //#26757 - $k[$j++] = $f($_.y - 1); //#26757 - if ((($_.i + $_.j) % 2) == 0) { //#26757 - $k[$j++] = $_.algnpat0; //#26757 - } else { //#26757 - $k[$j++] = $_.algnpat1; //#26757 - } //#26757 - $_.putalgnpat(); //#26757 - } //#26757 - } //#26757 - } //#26757 - if (!$_.slave) { //#26812 - var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#26771 - for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#26775 - $aload($get(_JL, _JM)); //#26773 - $_.y = $k[--$j]; //#26773 - $_.x = $k[--$j]; //#26773 - $k[$j++] = $a([$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, $_.y]); //#26774 - $k[$j++] = $a([-$_.x, -$_.y]); //#26774 - $k[$j++] = $a([$_.x, -$_.y]); //#26774 - } //#26774 - $astore($a(176)); //#26776 - $_.metadatamap = $k[--$j]; //#26776 - $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#26781 - $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#26786 - } else { //#26812 - $k[$j++] = Infinity; //#26799 - for (var _KD = 1; _KD <= 19; _KD += 1) { //#26796 - $_.i = _KD; //#26794 - $k[$j++] = $a([0, $_.i]); //#26795 - $k[$j++] = $a([1, $_.i]); //#26795 - } //#26795 - for (var _KI = 5; _KI <= 12; _KI += 1) { //#26800 - $_.i = _KI; //#26798 - $k[$j++] = $a([2, $_.i]); //#26799 - $k[$j++] = $a([3, $_.i]); //#26799 - } //#26799 - $_.metadatamap = $a(); //#26799 - $k[$j++] = Infinity; //#26807 - for (var _KO = 5; _KO <= 12; _KO += 1) { //#26804 - $k[$j++] = _KO; //#26804 - $k[$j++] = Infinity; //#26804 - var _KP = $k[--$j]; //#26804 - var _KQ = $k[--$j]; //#26804 - $k[$j++] = _KP; //#26804 - $k[$j++] = 4; //#26804 - $k[$j++] = _KQ; //#26804 - var _KR = $a(); //#26804 - $k[$j++] = _KR; //#26804 - } //#26804 - for (var _KS = 12; _KS >= 5; _KS -= 1) { //#26805 - $k[$j++] = _KS; //#26805 - $k[$j++] = Infinity; //#26805 - var _KT = $k[--$j]; //#26805 - var _KU = $k[--$j]; //#26805 - $k[$j++] = _KT; //#26805 - $k[$j++] = 5; //#26805 - $k[$j++] = _KU; //#26805 - var _KV = $a(); //#26805 - $k[$j++] = _KV; //#26805 - } //#26805 - for (var _KW = 5; _KW <= 12; _KW += 1) { //#26806 - $k[$j++] = _KW; //#26806 - $k[$j++] = Infinity; //#26806 - var _KX = $k[--$j]; //#26806 - var _KY = $k[--$j]; //#26806 - $k[$j++] = _KX; //#26806 - $k[$j++] = 6; //#26806 - $k[$j++] = _KY; //#26806 - var _KZ = $a(); //#26806 - $k[$j++] = _KZ; //#26806 - } //#26806 - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#26807 - $k[$j++] = _Ka; //#26807 - $k[$j++] = Infinity; //#26807 - var _Kb = $k[--$j]; //#26807 - var _Kc = $k[--$j]; //#26807 - $k[$j++] = _Kb; //#26807 - $k[$j++] = 7; //#26807 - $k[$j++] = _Kc; //#26807 - var _Kd = $a(); //#26807 - $k[$j++] = _Kd; //#26807 - } //#26807 - $_.palettemap1 = $a(); //#26807 - $k[$j++] = Infinity; //#26811 - var _Kf = $_.palettemap1; //#26811 - for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#26811 - $k[$j++] = $get(_Kf, _Kg); //#26811 - $k[$j++] = Infinity; //#26811 - var _Kj = $k[--$j]; //#26811 - var _Kk = $k[--$j]; //#26811 - $k[$j++] = _Kj; //#26811 - $aload(_Kk); //#26811 - var _Kl = $k[--$j]; //#26811 - var _Km = $k[--$j]; //#26811 - $k[$j++] = -_Km; //#26811 - $k[$j++] = -_Kl; //#26811 - var _Kn = $a(); //#26811 - $k[$j++] = _Kn; //#26811 - } //#26811 - $_.palettemap2 = $a(); //#26811 - } //#26812 - var _Kp = $_.metadatamap; //#26817 - for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#26821 - var _Ks = $get(_Kp, _Kq); //#26821 - var _Kt = $get(_Ks, 0); //#26818 - $k[$j++] = _Ks; //#26818 - $k[$j++] = _Kt; //#26818 - if (_Kt < 0) { //#26818 - var _Kv = $k[--$j]; //#26818 - var _Kw = $k[--$j]; //#26818 - $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#26818 - $k[$j++] = _Kw; //#26818 - } else { //#26818 - $j--; //#26818 - } //#26818 - var _Kx = $k[--$j]; //#26819 - var _Ky = $get(_Kx, 1); //#26819 - $k[$j++] = _Kx; //#26819 - $k[$j++] = _Ky; //#26819 - if (_Ky < 0) { //#26819 - var _L0 = $k[--$j]; //#26819 - var _L1 = $k[--$j]; //#26819 - $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#26819 - $k[$j++] = _L1; //#26819 - } else { //#26819 - $j--; //#26819 - } //#26819 - $j--; //#26820 - } //#26820 - var _L2 = $_.palettemap1; //#26822 - for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#26826 - var _L5 = $get(_L2, _L3); //#26826 - var _L6 = $get(_L5, 0); //#26823 - $k[$j++] = _L5; //#26823 - $k[$j++] = _L6; //#26823 - if (_L6 < 0) { //#26823 - var _L8 = $k[--$j]; //#26823 - var _L9 = $k[--$j]; //#26823 - $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#26823 - $k[$j++] = _L9; //#26823 - } else { //#26823 - $j--; //#26823 - } //#26823 - var _LA = $k[--$j]; //#26824 - var _LB = $get(_LA, 1); //#26824 - $k[$j++] = _LA; //#26824 - $k[$j++] = _LB; //#26824 - if (_LB < 0) { //#26824 - var _LD = $k[--$j]; //#26824 - var _LE = $k[--$j]; //#26824 - $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#26824 - $k[$j++] = _LE; //#26824 - } else { //#26824 - $j--; //#26824 - } //#26824 - $j--; //#26825 - } //#26825 - var _LF = $_.palettemap2; //#26827 - for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#26831 - var _LI = $get(_LF, _LG); //#26831 - var _LJ = $get(_LI, 0); //#26828 - $k[$j++] = _LI; //#26828 - $k[$j++] = _LJ; //#26828 - if (_LJ < 0) { //#26828 - var _LL = $k[--$j]; //#26828 - var _LM = $k[--$j]; //#26828 - $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#26828 - $k[$j++] = _LM; //#26828 - } else { //#26828 - $j--; //#26828 - } //#26828 - var _LN = $k[--$j]; //#26829 - var _LO = $get(_LN, 1); //#26829 - $k[$j++] = _LN; //#26829 - $k[$j++] = _LO; //#26829 - if (_LO < 0) { //#26829 - var _LQ = $k[--$j]; //#26829 - var _LR = $k[--$j]; //#26829 - $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#26829 - $k[$j++] = _LR; //#26829 - } else { //#26829 - $j--; //#26829 - } //#26829 - $j--; //#26830 - } //#26830 - for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#26836 - $k[$j++] = $_.pixs; //#26835 - $aload($get($_.metadatamap, _LU)); //#26835 - $_.jmv(); //#26835 - var _LY = $k[--$j]; //#26835 - $put($k[--$j], _LY, 0); //#26835 - } //#26835 - if (!$_.slave) { //#26849 - var _Lb = $_.colors; //#26841 - var _Lc = 16; //#26841 - if (16 > _Lb) { //#26841 - var _ = _Lb; //#26841 - _Lb = _Lc; //#26841 - _Lc = _; //#26841 - } //#26841 - for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#26846 - $_.i = _Le; //#26842 - var _Lh = $get($_.palettelayout, $_.i); //#26843 - $k[$j++] = _Lh; //#26844 - $k[$j++] = $_.pixs; //#26844 - $k[$j++] = _Lh; //#26844 - $aload($get($_.palettemap1, $_.i)); //#26844 - $_.jmv(); //#26844 - var _Lm = $k[--$j]; //#26844 - var _Ln = $k[--$j]; //#26844 - $put($k[--$j], _Lm, _Ln); //#26844 - var _Lq = $k[--$j]; //#26845 - $k[$j++] = $_.pixs; //#26845 - $k[$j++] = _Lq; //#26845 - $aload($get($_.palettemap2, $_.i)); //#26845 - $_.jmv(); //#26845 - var _Lu = $k[--$j]; //#26845 - var _Lv = $k[--$j]; //#26845 - $put($k[--$j], _Lu, _Lv); //#26845 - } //#26845 - $_.i = 16; //#26847 - } else { //#26849 - $_.i = 0; //#26849 - } //#26849 - $_.j = $_.nummetamodules; //#26853 - for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#26863 - $_.i = _M1; //#26855 - var _M4 = $get($_.palettelayout, $_.i); //#26856 - $k[$j++] = _M4; //#26857 - $k[$j++] = $_.pixs; //#26857 - $k[$j++] = _M4; //#26857 - $aload($get($_.metadatamap, $_.j)); //#26857 - $_.jmv(); //#26857 - var _M9 = $k[--$j]; //#26857 - var _MA = $k[--$j]; //#26857 - $put($k[--$j], _M9, _MA); //#26857 - var _MD = $k[--$j]; //#26858 - $k[$j++] = $_.pixs; //#26858 - $k[$j++] = _MD; //#26858 - $aload($get($_.metadatamap, $f($_.j + 2))); //#26858 - $_.jmv(); //#26858 - var _MH = $k[--$j]; //#26858 - var _MI = $k[--$j]; //#26858 - $put($k[--$j], _MH, _MI); //#26858 - var _MM = $get($_.palettelayout, $_.i + 1); //#26859 - $k[$j++] = _MM; //#26860 - $k[$j++] = $_.pixs; //#26860 - $k[$j++] = _MM; //#26860 - $aload($get($_.metadatamap, $f($_.j + 1))); //#26860 - $_.jmv(); //#26860 - var _MR = $k[--$j]; //#26860 - var _MS = $k[--$j]; //#26860 - $put($k[--$j], _MR, _MS); //#26860 - var _MV = $k[--$j]; //#26861 - $k[$j++] = $_.pixs; //#26861 - $k[$j++] = _MV; //#26861 - $aload($get($_.metadatamap, $f($_.j + 3))); //#26861 - $_.jmv(); //#26861 - var _MZ = $k[--$j]; //#26861 - var _Ma = $k[--$j]; //#26861 - $put($k[--$j], _MZ, _Ma); //#26861 - $_.j = $f($_.j + 4); //#26862 - } //#26862 + $_.pp = $k[--$j]; //#27054 + $_.py = $k[--$j]; //#27055 + $_.px = $k[--$j]; //#27056 + for (var _I0 = 0; _I0 <= 2; _I0 += 1) { //#27063 + $_.pb = _I0; //#27058 + for (var _I1 = 0; _I1 <= 2; _I1 += 1) { //#27062 + $_.pa = _I1; //#27060 + $k[$j++] = $_.pixs; //#27061 + $k[$j++] = $f($_.px + $_.pa); //#27061 + $k[$j++] = $f($_.py + $_.pb); //#27061 + $_.jmv(); //#27061 + var _IC = $k[--$j]; //#27061 + $put($k[--$j], _IC, $get($get($_.pp, $_.pb), $_.pa)); //#27061 + } //#27061 + } //#27061 + }; //#27061 + for (var _IG = 0, _IF = $_.algncpos.length - 1; _IG <= _IF; _IG += 1) { //#27075 + $_.j = _IG; //#27066 + $_.y = $get($_.algncpos, $_.j); //#27067 + for (var _IM = 0, _IL = $_.algnrpos.length - 1; _IM <= _IL; _IM += 1) { //#27074 + $_.i = _IM; //#27069 + $_.x = $get($_.algnrpos, $_.i); //#27070 + $k[$j++] = $_.pixs; //#27071 + $k[$j++] = $_.x; //#27071 + $k[$j++] = $_.y; //#27071 + $_.jmv(); //#27071 + var _IT = $k[--$j]; //#27071 + if ($get($k[--$j], _IT) == -1) { //#27073 + $k[$j++] = $f($_.x - 1); //#27072 + $k[$j++] = $f($_.y - 1); //#27072 + if ((($_.i + $_.j) % 2) == 0) { //#27072 + $k[$j++] = $_.algnpat0; //#27072 + } else { //#27072 + $k[$j++] = $_.algnpat1; //#27072 + } //#27072 + $_.putalgnpat(); //#27072 + } //#27072 + } //#27072 + } //#27072 + if (!$_.slave) { //#27127 + var _JL = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#27086 + for (var _JM = 0, _JN = _JL.length; _JM < _JN; _JM++) { //#27090 + $aload($get(_JL, _JM)); //#27088 + $_.y = $k[--$j]; //#27088 + $_.x = $k[--$j]; //#27088 + $k[$j++] = $a([$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, $_.y]); //#27089 + $k[$j++] = $a([-$_.x, -$_.y]); //#27089 + $k[$j++] = $a([$_.x, -$_.y]); //#27089 + } //#27089 + $astore($a(176)); //#27091 + $_.metadatamap = $k[--$j]; //#27091 + $_.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#27096 + $_.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#27101 + } else { //#27127 + $k[$j++] = Infinity; //#27107 + for (var _KD = 1; _KD <= 19; _KD += 1) { //#27111 + $_.i = _KD; //#27109 + $k[$j++] = $a([0, $_.i]); //#27110 + $k[$j++] = $a([1, $_.i]); //#27110 + } //#27110 + for (var _KI = 5; _KI <= 12; _KI += 1) { //#27115 + $_.i = _KI; //#27113 + $k[$j++] = $a([2, $_.i]); //#27114 + $k[$j++] = $a([3, $_.i]); //#27114 + } //#27114 + $_.metadatamap = $a(); //#27114 + $k[$j++] = Infinity; //#27118 + for (var _KO = 5; _KO <= 12; _KO += 1) { //#27119 + $k[$j++] = _KO; //#27119 + $k[$j++] = Infinity; //#27119 + var _KP = $k[--$j]; //#27119 + var _KQ = $k[--$j]; //#27119 + $k[$j++] = _KP; //#27119 + $k[$j++] = 4; //#27119 + $k[$j++] = _KQ; //#27119 + var _KR = $a(); //#27119 + $k[$j++] = _KR; //#27119 + } //#27119 + for (var _KS = 12; _KS >= 5; _KS -= 1) { //#27120 + $k[$j++] = _KS; //#27120 + $k[$j++] = Infinity; //#27120 + var _KT = $k[--$j]; //#27120 + var _KU = $k[--$j]; //#27120 + $k[$j++] = _KT; //#27120 + $k[$j++] = 5; //#27120 + $k[$j++] = _KU; //#27120 + var _KV = $a(); //#27120 + $k[$j++] = _KV; //#27120 + } //#27120 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#27121 + $k[$j++] = _KW; //#27121 + $k[$j++] = Infinity; //#27121 + var _KX = $k[--$j]; //#27121 + var _KY = $k[--$j]; //#27121 + $k[$j++] = _KX; //#27121 + $k[$j++] = 6; //#27121 + $k[$j++] = _KY; //#27121 + var _KZ = $a(); //#27121 + $k[$j++] = _KZ; //#27121 + } //#27121 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#27122 + $k[$j++] = _Ka; //#27122 + $k[$j++] = Infinity; //#27122 + var _Kb = $k[--$j]; //#27122 + var _Kc = $k[--$j]; //#27122 + $k[$j++] = _Kb; //#27122 + $k[$j++] = 7; //#27122 + $k[$j++] = _Kc; //#27122 + var _Kd = $a(); //#27122 + $k[$j++] = _Kd; //#27122 + } //#27122 + $_.palettemap1 = $a(); //#27122 + $k[$j++] = Infinity; //#27125 + var _Kf = $_.palettemap1; //#27126 + for (var _Kg = 0, _Kh = _Kf.length; _Kg < _Kh; _Kg++) { //#27126 + $k[$j++] = $get(_Kf, _Kg); //#27126 + $k[$j++] = Infinity; //#27126 + var _Kj = $k[--$j]; //#27126 + var _Kk = $k[--$j]; //#27126 + $k[$j++] = _Kj; //#27126 + $aload(_Kk); //#27126 + var _Kl = $k[--$j]; //#27126 + var _Km = $k[--$j]; //#27126 + $k[$j++] = -_Km; //#27126 + $k[$j++] = -_Kl; //#27126 + var _Kn = $a(); //#27126 + $k[$j++] = _Kn; //#27126 + } //#27126 + $_.palettemap2 = $a(); //#27126 + } //#27127 + var _Kp = $_.metadatamap; //#27132 + for (var _Kq = 0, _Kr = _Kp.length; _Kq < _Kr; _Kq++) { //#27136 + var _Ks = $get(_Kp, _Kq); //#27136 + var _Kt = $get(_Ks, 0); //#27133 + $k[$j++] = _Ks; //#27133 + $k[$j++] = _Kt; //#27133 + if (_Kt < 0) { //#27133 + var _Kv = $k[--$j]; //#27133 + var _Kw = $k[--$j]; //#27133 + $put(_Kw, 0, $f($f(_Kv + $_.cols) - 1)); //#27133 + $k[$j++] = _Kw; //#27133 + } else { //#27133 + $j--; //#27133 + } //#27133 + var _Kx = $k[--$j]; //#27134 + var _Ky = $get(_Kx, 1); //#27134 + $k[$j++] = _Kx; //#27134 + $k[$j++] = _Ky; //#27134 + if (_Ky < 0) { //#27134 + var _L0 = $k[--$j]; //#27134 + var _L1 = $k[--$j]; //#27134 + $put(_L1, 1, $f($f(_L0 + $_.rows) - 1)); //#27134 + $k[$j++] = _L1; //#27134 + } else { //#27134 + $j--; //#27134 + } //#27134 + $j--; //#27135 + } //#27135 + var _L2 = $_.palettemap1; //#27137 + for (var _L3 = 0, _L4 = _L2.length; _L3 < _L4; _L3++) { //#27141 + var _L5 = $get(_L2, _L3); //#27141 + var _L6 = $get(_L5, 0); //#27138 + $k[$j++] = _L5; //#27138 + $k[$j++] = _L6; //#27138 + if (_L6 < 0) { //#27138 + var _L8 = $k[--$j]; //#27138 + var _L9 = $k[--$j]; //#27138 + $put(_L9, 0, $f($f(_L8 + $_.cols) - 1)); //#27138 + $k[$j++] = _L9; //#27138 + } else { //#27138 + $j--; //#27138 + } //#27138 + var _LA = $k[--$j]; //#27139 + var _LB = $get(_LA, 1); //#27139 + $k[$j++] = _LA; //#27139 + $k[$j++] = _LB; //#27139 + if (_LB < 0) { //#27139 + var _LD = $k[--$j]; //#27139 + var _LE = $k[--$j]; //#27139 + $put(_LE, 1, $f($f(_LD + $_.rows) - 1)); //#27139 + $k[$j++] = _LE; //#27139 + } else { //#27139 + $j--; //#27139 + } //#27139 + $j--; //#27140 + } //#27140 + var _LF = $_.palettemap2; //#27142 + for (var _LG = 0, _LH = _LF.length; _LG < _LH; _LG++) { //#27146 + var _LI = $get(_LF, _LG); //#27146 + var _LJ = $get(_LI, 0); //#27143 + $k[$j++] = _LI; //#27143 + $k[$j++] = _LJ; //#27143 + if (_LJ < 0) { //#27143 + var _LL = $k[--$j]; //#27143 + var _LM = $k[--$j]; //#27143 + $put(_LM, 0, $f($f(_LL + $_.cols) - 1)); //#27143 + $k[$j++] = _LM; //#27143 + } else { //#27143 + $j--; //#27143 + } //#27143 + var _LN = $k[--$j]; //#27144 + var _LO = $get(_LN, 1); //#27144 + $k[$j++] = _LN; //#27144 + $k[$j++] = _LO; //#27144 + if (_LO < 0) { //#27144 + var _LQ = $k[--$j]; //#27144 + var _LR = $k[--$j]; //#27144 + $put(_LR, 1, $f($f(_LQ + $_.rows) - 1)); //#27144 + $k[$j++] = _LR; //#27144 + } else { //#27144 + $j--; //#27144 + } //#27144 + $j--; //#27145 + } //#27145 + for (var _LU = 0, _LT = $f($_.nummetamodules - 1); _LU <= _LT; _LU += 1) { //#27151 + $k[$j++] = $_.pixs; //#27150 + $aload($get($_.metadatamap, _LU)); //#27150 + $_.jmv(); //#27150 + var _LY = $k[--$j]; //#27150 + $put($k[--$j], _LY, 0); //#27150 + } //#27150 + if (!$_.slave) { //#27164 + var _Lb = $_.colors; //#27156 + var _Lc = 16; //#27156 + if (16 > _Lb) { //#27156 + var _ = _Lb; //#27156 + _Lb = _Lc; //#27156 + _Lc = _; //#27156 + } //#27156 + for (var _Le = 0, _Ld = _Lc - 1; _Le <= _Ld; _Le += 1) { //#27161 + $_.i = _Le; //#27157 + var _Lh = $get($_.palettelayout, $_.i); //#27158 + $k[$j++] = _Lh; //#27159 + $k[$j++] = $_.pixs; //#27159 + $k[$j++] = _Lh; //#27159 + $aload($get($_.palettemap1, $_.i)); //#27159 + $_.jmv(); //#27159 + var _Lm = $k[--$j]; //#27159 + var _Ln = $k[--$j]; //#27159 + $put($k[--$j], _Lm, _Ln); //#27159 + var _Lq = $k[--$j]; //#27160 + $k[$j++] = $_.pixs; //#27160 + $k[$j++] = _Lq; //#27160 + $aload($get($_.palettemap2, $_.i)); //#27160 + $_.jmv(); //#27160 + var _Lu = $k[--$j]; //#27160 + var _Lv = $k[--$j]; //#27160 + $put($k[--$j], _Lu, _Lv); //#27160 + } //#27160 + $_.i = 16; //#27162 + } else { //#27164 + $_.i = 0; //#27164 + } //#27164 + $_.j = $_.nummetamodules; //#27168 + for (var _M1 = $_.i, _M0 = $_.palettelayout.length - 1; _M1 <= _M0; _M1 += 2) { //#27178 + $_.i = _M1; //#27170 + var _M4 = $get($_.palettelayout, $_.i); //#27171 + $k[$j++] = _M4; //#27172 + $k[$j++] = $_.pixs; //#27172 + $k[$j++] = _M4; //#27172 + $aload($get($_.metadatamap, $_.j)); //#27172 + $_.jmv(); //#27172 + var _M9 = $k[--$j]; //#27172 + var _MA = $k[--$j]; //#27172 + $put($k[--$j], _M9, _MA); //#27172 + var _MD = $k[--$j]; //#27173 + $k[$j++] = $_.pixs; //#27173 + $k[$j++] = _MD; //#27173 + $aload($get($_.metadatamap, $f($_.j + 2))); //#27173 + $_.jmv(); //#27173 + var _MH = $k[--$j]; //#27173 + var _MI = $k[--$j]; //#27173 + $put($k[--$j], _MH, _MI); //#27173 + var _MM = $get($_.palettelayout, $_.i + 1); //#27174 + $k[$j++] = _MM; //#27175 + $k[$j++] = $_.pixs; //#27175 + $k[$j++] = _MM; //#27175 + $aload($get($_.metadatamap, $f($_.j + 1))); //#27175 + $_.jmv(); //#27175 + var _MR = $k[--$j]; //#27175 + var _MS = $k[--$j]; //#27175 + $put($k[--$j], _MR, _MS); //#27175 + var _MV = $k[--$j]; //#27176 + $k[$j++] = $_.pixs; //#27176 + $k[$j++] = _MV; //#27176 + $aload($get($_.metadatamap, $f($_.j + 3))); //#27176 + $_.jmv(); //#27176 + var _MZ = $k[--$j]; //#27176 + var _Ma = $k[--$j]; //#27176 + $put($k[--$j], _MZ, _Ma); //#27176 + $_.j = $f($_.j + 4); //#27177 + } //#27177 var _N2 = $a([function() { - var _Md = $k[--$j]; //#26867 - var _Me = $k[--$j]; //#26867 - $k[$j++] = $f(_Me + _Md) % $_.colors; //#26867 + var _Md = $k[--$j]; //#27182 + var _Me = $k[--$j]; //#27182 + $k[$j++] = $f(_Me + _Md) % $_.colors; //#27182 }, function() { - $j--; //#26868 - var _Mh = $k[--$j]; //#26868 - $k[$j++] = _Mh % $_.colors; //#26868 + $j--; //#27183 + var _Mh = $k[--$j]; //#27183 + $k[$j++] = _Mh % $_.colors; //#27183 }, function() { - var _Mi = $k[--$j]; //#26869 - var _Mj = $k[--$j]; //#26869 - $k[$j++] = _Mi; //#26869 - $k[$j++] = _Mj; //#26869 - $j--; //#26869 - var _Ml = $k[--$j]; //#26869 - $k[$j++] = _Ml % $_.colors; //#26869 + var _Mi = $k[--$j]; //#27184 + var _Mj = $k[--$j]; //#27184 + $k[$j++] = _Mi; //#27184 + $k[$j++] = _Mj; //#27184 + $j--; //#27184 + var _Ml = $k[--$j]; //#27184 + $k[$j++] = _Ml % $_.colors; //#27184 }, function() { - var _Mm = $k[--$j]; //#26870 - var _Mn = $k[--$j]; //#26870 - $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#26870 + var _Mm = $k[--$j]; //#27185 + var _Mn = $k[--$j]; //#27185 + $k[$j++] = ((~~(_Mm / 3)) + (~~(_Mn / 2))) % $_.colors; //#27185 }, function() { - var _Mp = $k[--$j]; //#26871 - var _Mq = $k[--$j]; //#26871 - $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#26871 + var _Mp = $k[--$j]; //#27186 + var _Mq = $k[--$j]; //#27186 + $k[$j++] = ((~~(_Mp / 2)) + (~~(_Mq / 3))) % $_.colors; //#27186 }, function() { - var _Ms = $k[--$j]; //#26872 - var _Mu = $f($k[--$j] + _Ms); //#26872 - $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#26872 + var _Ms = $k[--$j]; //#27187 + var _Mu = $f($k[--$j] + _Ms); //#27187 + $k[$j++] = ((~~(_Mu / 2)) + (~~(_Mu / 3))) % $_.colors; //#27187 }, function() { - var _Mw = $k[--$j]; //#26873 - var _Mx = $k[--$j]; //#26873 - $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#26873 + var _Mw = $k[--$j]; //#27188 + var _Mx = $k[--$j]; //#27188 + $k[$j++] = ($f(((_Mw * (_Mx * _Mx)) % 7) + ((($f(_Mw + (_Mx * _Mx))) * 2) % 19))) % $_.colors; //#27188 }, function() { - var _Mz = $k[--$j]; //#26874 - var _N0 = $k[--$j]; //#26874 - $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#26874 - }]); //#26874 - $_.maskfuncs = _N2; //#26875 - if ($_.mask != -1) { //#26879 - $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#26877 - $_.bestmaskval = $_.mask; //#26878 - } //#26878 - $_.masks = $a($_.maskfuncs.length); //#26880 - for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#26893 - $_.m = _ND; //#26882 - $_.mask = $a($_.rows * $_.cols); //#26883 - for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#26891 - $_.j = _NJ; //#26885 - for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#26890 - $_.i = _NM; //#26887 - $k[$j++] = $_.pixs; //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 - $_.jmv(); //#26888 - var _NQ = $k[--$j]; //#26888 - if ($get($k[--$j], _NQ) == -1) { //#26888 - $k[$j++] = $_.i; //#26888 - $k[$j++] = $_.j; //#26888 + var _Mz = $k[--$j]; //#27189 + var _N0 = $k[--$j]; //#27189 + $k[$j++] = ($f(((_N0 * (_Mz * _Mz)) % 5) + (($f((_Mz * _Mz) + (_N0 * 2))) % 13))) % $_.colors; //#27189 + }]); //#27189 + $_.maskfuncs = _N2; //#27190 + if ($_.mask != -1) { //#27194 + $_.maskfuncs = $a([$get($_.maskfuncs, $_.mask)]); //#27192 + $_.bestmaskval = $_.mask; //#27193 + } //#27193 + $_.masks = $a($_.maskfuncs.length); //#27195 + for (var _ND = 0, _NC = $_.masks.length - 1; _ND <= _NC; _ND += 1) { //#27208 + $_.m = _ND; //#27197 + $_.mask = $a($_.rows * $_.cols); //#27198 + for (var _NJ = 0, _NI = $f($_.rows - 1); _NJ <= _NI; _NJ += 1) { //#27206 + $_.j = _NJ; //#27200 + for (var _NM = 0, _NL = $f($_.cols - 1); _NM <= _NL; _NM += 1) { //#27205 + $_.i = _NM; //#27202 + $k[$j++] = $_.pixs; //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 + $_.jmv(); //#27203 + var _NQ = $k[--$j]; //#27203 + if ($get($k[--$j], _NQ) == -1) { //#27203 + $k[$j++] = $_.i; //#27203 + $k[$j++] = $_.j; //#27203 if ($get($_.maskfuncs, $_.m)() === true) { break; - } //#26888 - } else { //#26888 - $k[$j++] = 0; //#26888 - } //#26888 - $k[$j++] = $_.mask; //#26889 - $k[$j++] = $_.i; //#26889 - $k[$j++] = $_.j; //#26889 - $_.jmv(); //#26889 - var _Nb = $k[--$j]; //#26889 - var _Nc = $k[--$j]; //#26889 - $put(_Nc, _Nb, $k[--$j]); //#26889 - } //#26889 - } //#26889 - $put($_.masks, $_.m, $_.mask); //#26892 - } //#26892 - $_.posx = 0; //#26896 - $_.posy = 0; //#26896 - $_.i = 0; //#26897 - for (;;) { //#26907 - if ($_.posx == $_.cols) { //#26899 - break; //#26899 - } //#26899 - $k[$j++] = $_.pixs; //#26900 - $k[$j++] = $_.posx; //#26900 - $k[$j++] = $_.posy; //#26900 - $_.jmv(); //#26900 - var _Nm = $k[--$j]; //#26900 - if ($get($k[--$j], _Nm) == -1) { //#26904 - var _Ns = $geti($_.bits, $_.i, $_.databpm); //#26901 - $k[$j++] = 0; //#26901 - for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#26901 - var _Nw = $k[--$j]; //#26901 - $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#26901 - } //#26901 - var _Nx = $k[--$j]; //#26901 - $k[$j++] = ~~(_Nx / 2); //#26902 - $k[$j++] = $_.pixs; //#26902 - $k[$j++] = $_.posx; //#26902 - $k[$j++] = $_.posy; //#26902 - $_.jmv(); //#26902 - var _O1 = $k[--$j]; //#26902 - var _O2 = $k[--$j]; //#26902 - $put(_O2, _O1, $k[--$j]); //#26902 - $_.i = $_.i + $_.databpm; //#26903 - } //#26903 - $_.posy = $_.posy + 1; //#26905 - if ($_.posy == $_.rows) { //#26906 - $_.posy = 0; //#26906 - $_.posx = $_.posx + 1; //#26906 - } //#26906 - } //#26906 + } //#27203 + } else { //#27203 + $k[$j++] = 0; //#27203 + } //#27203 + $k[$j++] = $_.mask; //#27204 + $k[$j++] = $_.i; //#27204 + $k[$j++] = $_.j; //#27204 + $_.jmv(); //#27204 + var _Nb = $k[--$j]; //#27204 + var _Nc = $k[--$j]; //#27204 + $put(_Nc, _Nb, $k[--$j]); //#27204 + } //#27204 + } //#27204 + $put($_.masks, $_.m, $_.mask); //#27207 + } //#27207 + $_.posx = 0; //#27211 + $_.posy = 0; //#27211 + $_.i = 0; //#27212 + for (;;) { //#27222 + if ($_.posx == $_.cols) { //#27214 + break; //#27214 + } //#27214 + $k[$j++] = $_.pixs; //#27215 + $k[$j++] = $_.posx; //#27215 + $k[$j++] = $_.posy; //#27215 + $_.jmv(); //#27215 + var _Nm = $k[--$j]; //#27215 + if ($get($k[--$j], _Nm) == -1) { //#27219 + var _Ns = $geti($_.bits, $_.i, $_.databpm); //#27216 + $k[$j++] = 0; //#27216 + for (var _Nt = 0, _Nu = _Ns.length; _Nt < _Nu; _Nt++) { //#27216 + var _Nw = $k[--$j]; //#27216 + $k[$j++] = ($f(_Nw + $f($get(_Ns, _Nt) - 48))) * 2; //#27216 + } //#27216 + var _Nx = $k[--$j]; //#27216 + $k[$j++] = ~~(_Nx / 2); //#27217 + $k[$j++] = $_.pixs; //#27217 + $k[$j++] = $_.posx; //#27217 + $k[$j++] = $_.posy; //#27217 + $_.jmv(); //#27217 + var _O1 = $k[--$j]; //#27217 + var _O2 = $k[--$j]; //#27217 + $put(_O2, _O1, $k[--$j]); //#27217 + $_.i = $_.i + $_.databpm; //#27218 + } //#27218 + $_.posy = $_.posy + 1; //#27220 + if ($_.posy == $_.rows) { //#27221 + $_.posy = 0; //#27221 + $_.posx = $_.posx + 1; //#27221 + } //#27221 + } //#27221 $_.evalrle = function() { - $_.scrle = $k[--$j]; //#26911 - $_.scr1 = 0; //#26912 - $_.scr3 = 0; //#26912 - for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#26934 - $_.j = _OD; //#26914 - if ($get($_.scrle, $_.j + 1) != -1) { //#26933 - var _OJ = $get($_.scrle, $_.j); //#26917 - $k[$j++] = _OJ; //#26917 - if (_OJ >= 5) { //#26917 - $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#26917 - } else { //#26917 - $j--; //#26917 - } //#26917 - if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#26932 - var _OR = $geti($_.scrle, $_.j - 4, 10); //#26920 - $k[$j++] = _OR; //#26921 - for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#26921 - $k[$j++] = $get(_OR, _OS) == 1; //#26921 - } //#26921 - $j--; //#26921 - for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#26921 - var _OX = $k[--$j]; //#26921 - var _OY = $k[--$j]; //#26921 - $k[$j++] = _OX; //#26921 - $k[$j++] = _OY; //#26921 - $j--; //#26921 - var _OZ = $k[--$j]; //#26921 - var _Oa = $k[--$j]; //#26921 - $k[$j++] = $an(_Oa, _OZ); //#26921 - } //#26921 - if ($k[--$j]) { //#26931 - $k[$j++] = Infinity; //#26922 - var _Oc = $k[--$j]; //#26922 - var _Od = $k[--$j]; //#26922 - $k[$j++] = _Oc; //#26922 - $aload(_Od); //#26922 - var _Oe = $k[--$j]; //#26923 - var _Of = $k[--$j]; //#26923 - var _Og = $k[--$j]; //#26923 - var _Oh = $k[--$j]; //#26923 - var _Oi = $k[--$j]; //#26923 - var _Oj = $k[--$j]; //#26923 - var _Ok = $k[--$j]; //#26923 - var _Ol = $k[--$j]; //#26923 - var _Om = $k[--$j]; //#26923 - $k[$j++] = _Om; //#26929 - $k[$j++] = _Ol; //#26929 - $k[$j++] = _Ok; //#26929 - $k[$j++] = _Oj; //#26929 - $k[$j++] = _Oi; //#26929 - $k[$j++] = _Oh; //#26929 - $k[$j++] = _Og; //#26929 - $k[$j++] = _Of; //#26929 - $k[$j++] = _Oe; //#26929 - if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#26929 - var _On = $k[--$j]; //#26925 - var _Oo = $k[--$j]; //#26925 - var _Op = $k[--$j]; //#26925 - $_.c4 = _Op; //#26925 - $_.c5 = _On; //#26925 - $k[$j++] = _Op; //#26928 - $k[$j++] = _Oo; //#26928 - if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#26928 - $_.scr3 = $_.scr3 + 100; //#26928 - } //#26928 - } //#26928 - $cleartomark(); //#26930 - } else { //#26931 - $j--; //#26931 - } //#26931 - } //#26931 - } //#26931 - } //#26931 - $k[$j++] = $_.scr1; //#26935 - $k[$j++] = $_.scr3; //#26935 - }; //#26935 + $_.scrle = $k[--$j]; //#27226 + $_.scr1 = 0; //#27227 + $_.scr3 = 0; //#27227 + for (var _OD = 0, _OC = $_.scrle.length - 2; _OD <= _OC; _OD += 2) { //#27249 + $_.j = _OD; //#27229 + if ($get($_.scrle, $_.j + 1) != -1) { //#27248 + var _OJ = $get($_.scrle, $_.j); //#27232 + $k[$j++] = _OJ; //#27232 + if (_OJ >= 5) { //#27232 + $_.scr1 = $f($f($k[--$j] - 2) + $_.scr1); //#27232 + } else { //#27232 + $j--; //#27232 + } //#27232 + if (($_.j >= 4) && ($_.j <= ($_.scrle.length - 5))) { //#27247 + var _OR = $geti($_.scrle, $_.j - 4, 10); //#27235 + $k[$j++] = _OR; //#27236 + for (var _OS = 0, _OT = _OR.length; _OS < _OT; _OS++) { //#27236 + $k[$j++] = $get(_OR, _OS) == 1; //#27236 + } //#27236 + $j--; //#27236 + for (var _OV = 0, _OW = 4; _OV < _OW; _OV++) { //#27236 + var _OX = $k[--$j]; //#27236 + var _OY = $k[--$j]; //#27236 + $k[$j++] = _OX; //#27236 + $k[$j++] = _OY; //#27236 + $j--; //#27236 + var _OZ = $k[--$j]; //#27236 + var _Oa = $k[--$j]; //#27236 + $k[$j++] = $an(_Oa, _OZ); //#27236 + } //#27236 + if ($k[--$j]) { //#27246 + $k[$j++] = Infinity; //#27237 + var _Oc = $k[--$j]; //#27237 + var _Od = $k[--$j]; //#27237 + $k[$j++] = _Oc; //#27237 + $aload(_Od); //#27237 + var _Oe = $k[--$j]; //#27238 + var _Of = $k[--$j]; //#27238 + var _Og = $k[--$j]; //#27238 + var _Oh = $k[--$j]; //#27238 + var _Oi = $k[--$j]; //#27238 + var _Oj = $k[--$j]; //#27238 + var _Ok = $k[--$j]; //#27238 + var _Ol = $k[--$j]; //#27238 + var _Om = $k[--$j]; //#27238 + $k[$j++] = _Om; //#27244 + $k[$j++] = _Ol; //#27244 + $k[$j++] = _Ok; //#27244 + $k[$j++] = _Oj; //#27244 + $k[$j++] = _Oi; //#27244 + $k[$j++] = _Oh; //#27244 + $k[$j++] = _Og; //#27244 + $k[$j++] = _Of; //#27244 + $k[$j++] = _Oe; //#27244 + if (($eq(_Om, _Oi) && $eq(_Om, _Oe)) && $eq(_Ok, _Og)) { //#27244 + var _On = $k[--$j]; //#27240 + var _Oo = $k[--$j]; //#27240 + var _Op = $k[--$j]; //#27240 + $_.c4 = _Op; //#27240 + $_.c5 = _On; //#27240 + $k[$j++] = _Op; //#27243 + $k[$j++] = _Oo; //#27243 + if ((($_.c4 == $_.bi) && ($_.c5 == $_.yi)) || ((($_.c4 == $_.yi) && ($_.c5 == $_.bi)) || ((($_.c4 == $_.gi) && ($_.c5 == $_.mi)) || (($_.c4 == $_.mi) && ($_.c5 == $_.gi))))) { //#27243 + $_.scr3 = $_.scr3 + 100; //#27243 + } //#27243 + } //#27243 + $cleartomark(); //#27245 + } else { //#27246 + $j--; //#27246 + } //#27246 + } //#27246 + } //#27246 + } //#27246 + $k[$j++] = $_.scr1; //#27250 + $k[$j++] = $_.scr3; //#27250 + }; //#27250 $_.evalmask = function() { - $_.sym = $k[--$j]; //#26939 - $_.n1 = 0; //#26941 - $_.n2 = 0; //#26941 - $_.n3 = 0; //#26941 - var _PA = $_.rows; //#26942 - var _PB = $_.cols; //#26942 - if (_PA < _PB) { //#26942 - var _ = _PB; //#26942 - _PB = _PA; //#26942 - _PA = _; //#26942 - } //#26942 - $_.rle = $a($f((_PA * 2) + 2)); //#26942 - $_.lastpairs = $a($_.cols); //#26943 - $_.thispairs = $a($_.cols); //#26944 - for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#26956 - $_.i = _PJ; //#26948 - $k[$j++] = Infinity; //#26949 - $k[$j++] = 0; //#26952 - $k[$j++] = -1; //#26952 - for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#26952 - var _PS = $get($_.sym, _PP); //#26951 - var _PT = $k[--$j]; //#26951 - $k[$j++] = _PT; //#26951 - $k[$j++] = _PS; //#26951 - if ($eq(_PT, _PS)) { //#26951 - $j--; //#26951 - var _PU = $k[--$j]; //#26951 - var _PV = $k[--$j]; //#26951 - $k[$j++] = $f(_PV + 1); //#26951 - $k[$j++] = _PU; //#26951 - } else { //#26951 - var _PW = $k[--$j]; //#26951 - $k[$j++] = 1; //#26951 - $k[$j++] = _PW; //#26951 - } //#26951 - } //#26951 - var _PY = $counttomark() + 2; //#26953 - $astore($geti($_.rle, 0, _PY - 2)); //#26953 - $_.evalrle(); //#26954 - $_.n3 = $f($k[--$j] + $_.n3); //#26954 - $_.n1 = $f($k[--$j] + $_.n1); //#26954 - $j--; //#26955 - } //#26955 - for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#26983 - $_.i = _Pg; //#26959 - $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#26962 - $k[$j++] = Infinity; //#26963 - var _Pm = $_.symrow; //#26964 - $k[$j++] = 0; //#26966 - $k[$j++] = -1; //#26966 - for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#26966 - var _Pp = $get(_Pm, _Pn); //#26966 - var _Pq = $k[--$j]; //#26965 - $k[$j++] = _Pq; //#26965 - $k[$j++] = _Pp; //#26965 - if ($eq(_Pq, _Pp)) { //#26965 - $j--; //#26965 - var _Pr = $k[--$j]; //#26965 - var _Ps = $k[--$j]; //#26965 - $k[$j++] = $f(_Ps + 1); //#26965 - $k[$j++] = _Pr; //#26965 - } else { //#26965 - var _Pt = $k[--$j]; //#26965 - $k[$j++] = 1; //#26965 - $k[$j++] = _Pt; //#26965 - } //#26965 - } //#26965 - var _Pv = $counttomark() + 2; //#26967 - $astore($geti($_.rle, 0, _Pv - 2)); //#26967 - $_.evalrle(); //#26968 - $_.n3 = $f($k[--$j] + $_.n3); //#26968 - $_.n1 = $f($k[--$j] + $_.n1); //#26968 - $j--; //#26969 - var _Q1 = $_.thispairs; //#26972 - $_.thispairs = $_.lastpairs; //#26972 - $_.lastpairs = _Q1; //#26972 - var _Q3 = $_.symrow; //#26973 - $k[$j++] = -1; //#26973 - for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#26973 - var _Q6 = $get(_Q3, _Q4); //#26973 - var _Q7 = $k[--$j]; //#26973 - $k[$j++] = _Q6; //#26973 - $k[$j++] = _Q7; //#26973 - if ($ne(_Q6, _Q7)) { //#26973 - $j--; //#26973 - var _Q8 = $k[--$j]; //#26973 - $k[$j++] = -1; //#26973 - $k[$j++] = _Q8; //#26973 - } //#26973 - } //#26973 - $j--; //#26974 - $astore($_.thispairs); //#26975 - $j--; //#26975 - if ($_.i > 0) { //#26982 - $k[$j++] = Infinity; //#26977 - $aload($_.lastpairs); //#26978 - $aload($_.thispairs); //#26978 - $k[$j++] = $_.n2; //#26979 - for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#26979 - var _QH = $k[--$j]; //#26979 - var _QI = $k[--$j]; //#26979 - $k[$j++] = _QH; //#26979 - $k[$j++] = _QI; //#26979 - if (_QI != -1) { //#26979 - var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#26979 - if ($eq($k[--$j], _QK)) { //#26979 - var _QM = $k[--$j]; //#26979 - $k[$j++] = $f(_QM + 3); //#26979 - } //#26979 - } else { //#26979 - $j--; //#26979 - } //#26979 - } //#26979 - $_.n2 = $k[--$j]; //#26980 - $cleartomark(); //#26981 - } //#26981 - } //#26981 - $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#26985 - }; //#26985 - $_.bestscore = 999999999; //#26989 - for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27007 - $_.m = _QT; //#26991 - $_.masksym = $a($_.rows * $_.cols); //#26992 - for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#26996 - $_.i = _Qa; //#26994 - $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#26995 - } //#26995 - if ($_.masks.length != 1) { //#27005 - $k[$j++] = $_.masksym; //#26998 - $_.evalmask(); //#26998 - $_.score = $k[--$j]; //#26998 - if ($_.score < $_.bestscore) { //#27003 - $_.bestsym = $_.masksym; //#27000 - $_.bestmaskval = $_.m; //#27001 - $_.bestscore = $_.score; //#27002 - } //#27002 - } else { //#27005 - $_.bestsym = $_.masksym; //#27005 - } //#27005 - } //#27005 - $_.pixs = $_.bestsym; //#27008 - $_.metamask = $_.bestmaskval; //#27009 + $_.sym = $k[--$j]; //#27254 + $_.n1 = 0; //#27256 + $_.n2 = 0; //#27256 + $_.n3 = 0; //#27256 + var _PA = $_.rows; //#27257 + var _PB = $_.cols; //#27257 + if (_PA < _PB) { //#27257 + var _ = _PB; //#27257 + _PB = _PA; //#27257 + _PA = _; //#27257 + } //#27257 + $_.rle = $a($f((_PA * 2) + 2)); //#27257 + $_.lastpairs = $a($_.cols); //#27258 + $_.thispairs = $a($_.cols); //#27259 + for (var _PJ = 0, _PI = $f($_.cols - 1); _PJ <= _PI; _PJ += 1) { //#27271 + $_.i = _PJ; //#27263 + $k[$j++] = Infinity; //#27264 + $k[$j++] = 0; //#27267 + $k[$j++] = -1; //#27267 + for (var _PP = $_.i, _PQ = $_.cols, _PO = $f(($_.rows * $_.cols) - 1); _PQ < 0 ? _PP >= _PO : _PP <= _PO; _PP += _PQ) { //#27267 + var _PS = $get($_.sym, _PP); //#27266 + var _PT = $k[--$j]; //#27266 + $k[$j++] = _PT; //#27266 + $k[$j++] = _PS; //#27266 + if ($eq(_PT, _PS)) { //#27266 + $j--; //#27266 + var _PU = $k[--$j]; //#27266 + var _PV = $k[--$j]; //#27266 + $k[$j++] = $f(_PV + 1); //#27266 + $k[$j++] = _PU; //#27266 + } else { //#27266 + var _PW = $k[--$j]; //#27266 + $k[$j++] = 1; //#27266 + $k[$j++] = _PW; //#27266 + } //#27266 + } //#27266 + var _PY = $counttomark() + 2; //#27268 + $astore($geti($_.rle, 0, _PY - 2)); //#27268 + $_.evalrle(); //#27269 + $_.n3 = $f($k[--$j] + $_.n3); //#27269 + $_.n1 = $f($k[--$j] + $_.n1); //#27269 + $j--; //#27270 + } //#27270 + for (var _Pg = 0, _Pf = $f($_.rows - 1); _Pg <= _Pf; _Pg += 1) { //#27298 + $_.i = _Pg; //#27274 + $_.symrow = $geti($_.sym, $_.i * $_.cols, $_.cols); //#27277 + $k[$j++] = Infinity; //#27278 + var _Pm = $_.symrow; //#27279 + $k[$j++] = 0; //#27281 + $k[$j++] = -1; //#27281 + for (var _Pn = 0, _Po = _Pm.length; _Pn < _Po; _Pn++) { //#27281 + var _Pp = $get(_Pm, _Pn); //#27281 + var _Pq = $k[--$j]; //#27280 + $k[$j++] = _Pq; //#27280 + $k[$j++] = _Pp; //#27280 + if ($eq(_Pq, _Pp)) { //#27280 + $j--; //#27280 + var _Pr = $k[--$j]; //#27280 + var _Ps = $k[--$j]; //#27280 + $k[$j++] = $f(_Ps + 1); //#27280 + $k[$j++] = _Pr; //#27280 + } else { //#27280 + var _Pt = $k[--$j]; //#27280 + $k[$j++] = 1; //#27280 + $k[$j++] = _Pt; //#27280 + } //#27280 + } //#27280 + var _Pv = $counttomark() + 2; //#27282 + $astore($geti($_.rle, 0, _Pv - 2)); //#27282 + $_.evalrle(); //#27283 + $_.n3 = $f($k[--$j] + $_.n3); //#27283 + $_.n1 = $f($k[--$j] + $_.n1); //#27283 + $j--; //#27284 + var _Q1 = $_.thispairs; //#27287 + $_.thispairs = $_.lastpairs; //#27287 + $_.lastpairs = _Q1; //#27287 + var _Q3 = $_.symrow; //#27288 + $k[$j++] = -1; //#27288 + for (var _Q4 = 0, _Q5 = _Q3.length; _Q4 < _Q5; _Q4++) { //#27288 + var _Q6 = $get(_Q3, _Q4); //#27288 + var _Q7 = $k[--$j]; //#27288 + $k[$j++] = _Q6; //#27288 + $k[$j++] = _Q7; //#27288 + if ($ne(_Q6, _Q7)) { //#27288 + $j--; //#27288 + var _Q8 = $k[--$j]; //#27288 + $k[$j++] = -1; //#27288 + $k[$j++] = _Q8; //#27288 + } //#27288 + } //#27288 + $j--; //#27289 + $astore($_.thispairs); //#27290 + $j--; //#27290 + if ($_.i > 0) { //#27297 + $k[$j++] = Infinity; //#27292 + $aload($_.lastpairs); //#27293 + $aload($_.thispairs); //#27293 + $k[$j++] = $_.n2; //#27294 + for (var _QF = 0, _QG = $_.cols; _QF < _QG; _QF++) { //#27294 + var _QH = $k[--$j]; //#27294 + var _QI = $k[--$j]; //#27294 + $k[$j++] = _QH; //#27294 + $k[$j++] = _QI; //#27294 + if (_QI != -1) { //#27294 + var _QK = $k[$j - 1 - $f($_.cols + 1)]; //#27294 + if ($eq($k[--$j], _QK)) { //#27294 + var _QM = $k[--$j]; //#27294 + $k[$j++] = $f(_QM + 3); //#27294 + } //#27294 + } else { //#27294 + $j--; //#27294 + } //#27294 + } //#27294 + $_.n2 = $k[--$j]; //#27295 + $cleartomark(); //#27296 + } //#27296 + } //#27296 + $k[$j++] = $f($f($_.n1 + $_.n2) + $_.n3); //#27300 + }; //#27300 + $_.bestscore = 999999999; //#27304 + for (var _QT = 0, _QS = $_.masks.length - 1; _QT <= _QS; _QT += 1) { //#27322 + $_.m = _QT; //#27306 + $_.masksym = $a($_.rows * $_.cols); //#27307 + for (var _Qa = 0, _QZ = $f(($_.rows * $_.cols) - 1); _Qa <= _QZ; _Qa += 1) { //#27311 + $_.i = _Qa; //#27309 + $put($_.masksym, $_.i, $xo($get($_.pixs, $_.i), $get($get($_.masks, $_.m), $_.i))); //#27310 + } //#27310 + if ($_.masks.length != 1) { //#27320 + $k[$j++] = $_.masksym; //#27313 + $_.evalmask(); //#27313 + $_.score = $k[--$j]; //#27313 + if ($_.score < $_.bestscore) { //#27318 + $_.bestsym = $_.masksym; //#27315 + $_.bestmaskval = $_.m; //#27316 + $_.bestscore = $_.score; //#27317 + } //#27317 + } else { //#27320 + $_.bestsym = $_.masksym; //#27320 + } //#27320 + } //#27320 + $_.pixs = $_.bestsym; //#27323 + $_.metamask = $_.bestmaskval; //#27324 $_.addtometapart = function() { - var _Qw = $k[--$j]; //#27013 - $puti($_.metapart, $_.p, _Qw); //#27013 - $_.p = _Qw.length + $_.p; //#27014 - }; //#27014 + var _Qw = $k[--$j]; //#27328 + $puti($_.metapart, $_.p, _Qw); //#27328 + $_.p = _Qw.length + $_.p; //#27329 + }; //#27329 $_.addtometabits = function() { - var _R0 = $k[--$j]; //#27018 - $puti($_.metabits, $_.q, _R0); //#27018 - $_.q = _R0.length + $_.q; //#27019 - }; //#27019 - $_.metapart = $s(40); //#27022 - $_.metabits = $s($_.nummetabits); //#27023 - $_.p = 0; //#27024 - $_.q = 0; //#27024 - if (!$_.slave) { //#27079 - $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27029 - $k[$j++] = 3; //#27029 - $_.tofixedbits(); //#27029 - $_.addtometapart(); //#27029 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27030 - $k[$j++] = 2; //#27030 - $k[$j++] = -1; //#27030 - $_.ldpc(); //#27030 - $_.addtometabits(); //#27030 - $_.p = 0; //#27030 - $k[$j++] = $_.metass; //#27033 - $k[$j++] = 1; //#27033 - $_.tofixedbits(); //#27033 - $_.addtometapart(); //#27033 - $k[$j++] = $_.metavf; //#27034 - $k[$j++] = 2; //#27034 - $_.tofixedbits(); //#27034 - $_.addtometapart(); //#27034 - $k[$j++] = $_.metamask; //#27035 - $k[$j++] = 3; //#27035 - $_.tofixedbits(); //#27035 - $_.addtometapart(); //#27035 - if ($_.hasslaves) { //#27036 - $k[$j++] = "1"; //#27036 - } else { //#27036 - $k[$j++] = "0"; //#27036 - } //#27036 - $_.addtometapart(); //#27036 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27037 - $k[$j++] = 2; //#27037 - $k[$j++] = -1; //#27037 - $_.ldpc(); //#27037 - $_.addtometabits(); //#27037 - $_.p = 0; //#27037 - if ($_.metass == 0) { //#27047 - $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27042 - $k[$j++] = $_.metavlen; //#27042 - $_.tofixedbits(); //#27042 - $_.addtometapart(); //#27042 - } else { //#27047 - $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27045 - $k[$j++] = ~~($_.metavlen / 2); //#27045 - $_.tofixedbits(); //#27045 - $_.addtometapart(); //#27045 - $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27047 - $k[$j++] = ~~($_.metavlen / 2); //#27047 - $_.tofixedbits(); //#27047 - $_.addtometapart(); //#27047 - } //#27047 - $k[$j++] = $_.datawc - 3; //#27049 - $k[$j++] = ~~($_.metaelen / 2); //#27049 - $_.tofixedbits(); //#27049 - $_.addtometapart(); //#27049 - $k[$j++] = $_.datawr - 4; //#27050 - $k[$j++] = ~~($_.metaelen / 2); //#27050 - $_.tofixedbits(); //#27050 - $_.addtometapart(); //#27050 - if ($_.hasslaves) { //#27053 - $k[$j++] = 0; //#27052 - $k[$j++] = 4; //#27052 - $_.tofixedbits(); //#27052 - $_.addtometapart(); //#27052 - } //#27052 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27054 - $k[$j++] = 2; //#27054 - $k[$j++] = -1; //#27054 - $_.ldpc(); //#27054 - $_.addtometabits(); //#27054 - $_.p = 0; //#27054 - } else { //#27079 - var _Rc = $_.sameshape ? 0 : 1; //#27059 - $k[$j++] = _Rc; //#27059 - $k[$j++] = 1; //#27059 - $_.tofixedbits(); //#27059 - $_.addtometapart(); //#27059 - var _Re = $_.sameecc ? 0 : 1; //#27060 - $k[$j++] = _Re; //#27060 - $k[$j++] = 1; //#27060 - $_.tofixedbits(); //#27060 - $_.addtometapart(); //#27060 - var _Rg = $_.hasslaves ? 1 : 0; //#27061 - $k[$j++] = _Rg; //#27061 - $k[$j++] = 1; //#27061 - $_.tofixedbits(); //#27061 - $_.addtometapart(); //#27061 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27062 - $k[$j++] = 2; //#27062 - $k[$j++] = -1; //#27062 - $_.ldpc(); //#27062 - $_.addtometabits(); //#27062 - $_.p = 0; //#27062 - if (!$_.sameshape) { //#27068 - $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27067 - $k[$j++] = 5; //#27067 - $_.tofixedbits(); //#27067 - $_.addtometapart(); //#27067 - } //#27067 - if ($_.hasslaves) { //#27071 - $k[$j++] = 0; //#27070 - $k[$j++] = 3; //#27070 - $_.tofixedbits(); //#27070 - $_.addtometapart(); //#27070 - } //#27070 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27072 - $k[$j++] = 2; //#27072 - $k[$j++] = -1; //#27072 - $_.ldpc(); //#27072 - $_.addtometabits(); //#27072 - $_.p = 0; //#27072 - if (!$_.sameecc) { //#27078 - $k[$j++] = $_.datawc - 3; //#27076 - $k[$j++] = ~~($_.metaelen / 2); //#27076 - $_.tofixedbits(); //#27076 - $_.addtometapart(); //#27076 - $k[$j++] = $_.datawr - 4; //#27077 - $k[$j++] = ~~($_.metaelen / 2); //#27077 - $_.tofixedbits(); //#27077 - $_.addtometapart(); //#27077 - } //#27077 - $k[$j++] = $geti($_.metapart, 0, $_.p); //#27079 - $k[$j++] = 2; //#27079 - $k[$j++] = -1; //#27079 - $_.ldpc(); //#27079 - $_.addtometabits(); //#27079 - $_.p = 0; //#27079 - } //#27079 - for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27084 - $put($_.metabits, _S1, 48); //#27083 - } //#27083 - $_.i = 0; //#27087 - $_.j = 0; //#27087 - if (!$_.slave) { //#27095 - var _S6 = $geti($_.metabits, $_.i, 6); //#27089 - for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27093 - $k[$j++] = $get(_S6, _S7); //#27090 - if ($_.colors == 4) { //#27090 - $k[$j++] = $a([$_.bi, $_.yi]); //#27090 - } else { //#27090 - $k[$j++] = $a([$_.ki, $_.wi]); //#27090 - } //#27090 - var _SH = $k[--$j]; //#27090 - var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27090 - $k[$j++] = _SJ; //#27091 - $k[$j++] = $_.pixs; //#27091 - $aload($get($_.metadatamap, $_.j)); //#27091 - $_.jmv(); //#27091 - var _SO = $k[--$j]; //#27091 - var _SP = $k[--$j]; //#27091 - $put(_SP, _SO, $k[--$j]); //#27091 - $_.j = $_.j + 1; //#27092 - } //#27092 - $_.i = $_.i + 6; //#27094 - } //#27094 - for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27102 - var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27097 - $k[$j++] = 0; //#27097 - for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27097 - var _Sf = $k[--$j]; //#27097 - $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27097 - } //#27097 - var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27098 - $k[$j++] = _Si; //#27099 - $k[$j++] = $_.pixs; //#27099 - $aload($get($_.metadatamap, $_.j)); //#27099 - $_.jmv(); //#27099 - var _Sn = $k[--$j]; //#27099 - var _So = $k[--$j]; //#27099 - $put(_So, _Sn, $k[--$j]); //#27099 - $_.i = $f($_.i + $_.metabpm); //#27100 - $_.j = $_.j + 1; //#27101 - } //#27101 + var _R0 = $k[--$j]; //#27333 + $puti($_.metabits, $_.q, _R0); //#27333 + $_.q = _R0.length + $_.q; //#27334 + }; //#27334 + $_.metapart = $s(40); //#27337 + $_.metabits = $s($_.nummetabits); //#27338 + $_.p = 0; //#27339 + $_.q = 0; //#27339 + if (!$_.slave) { //#27394 + $k[$j++] = (~~(Math.round(Math.log($_.colors) / Math.log(2)))) - 1; //#27344 + $k[$j++] = 3; //#27344 + $_.tofixedbits(); //#27344 + $_.addtometapart(); //#27344 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27345 + $k[$j++] = 2; //#27345 + $k[$j++] = -1; //#27345 + $_.ldpc(); //#27345 + $_.addtometabits(); //#27345 + $_.p = 0; //#27345 + $k[$j++] = $_.metass; //#27348 + $k[$j++] = 1; //#27348 + $_.tofixedbits(); //#27348 + $_.addtometapart(); //#27348 + $k[$j++] = $_.metavf; //#27349 + $k[$j++] = 2; //#27349 + $_.tofixedbits(); //#27349 + $_.addtometapart(); //#27349 + $k[$j++] = $_.metamask; //#27350 + $k[$j++] = 3; //#27350 + $_.tofixedbits(); //#27350 + $_.addtometapart(); //#27350 + if ($_.hasslaves) { //#27351 + $k[$j++] = "1"; //#27351 + } else { //#27351 + $k[$j++] = "0"; //#27351 + } //#27351 + $_.addtometapart(); //#27351 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27352 + $k[$j++] = 2; //#27352 + $k[$j++] = -1; //#27352 + $_.ldpc(); //#27352 + $_.addtometabits(); //#27352 + $_.p = 0; //#27352 + if ($_.metass == 0) { //#27362 + $k[$j++] = $f(($f((~~($f($_.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $_.metavf))) - 1); //#27357 + $k[$j++] = $_.metavlen; //#27357 + $_.tofixedbits(); //#27357 + $_.addtometapart(); //#27357 + } else { //#27362 + $k[$j++] = (~~($f($_.cols - 17) / 4)) - 1; //#27360 + $k[$j++] = ~~($_.metavlen / 2); //#27360 + $_.tofixedbits(); //#27360 + $_.addtometapart(); //#27360 + $k[$j++] = (~~($f($_.rows - 17) / 4)) - 1; //#27362 + $k[$j++] = ~~($_.metavlen / 2); //#27362 + $_.tofixedbits(); //#27362 + $_.addtometapart(); //#27362 + } //#27362 + $k[$j++] = $_.datawc - 3; //#27364 + $k[$j++] = ~~($_.metaelen / 2); //#27364 + $_.tofixedbits(); //#27364 + $_.addtometapart(); //#27364 + $k[$j++] = $_.datawr - 4; //#27365 + $k[$j++] = ~~($_.metaelen / 2); //#27365 + $_.tofixedbits(); //#27365 + $_.addtometapart(); //#27365 + if ($_.hasslaves) { //#27368 + $k[$j++] = 0; //#27367 + $k[$j++] = 4; //#27367 + $_.tofixedbits(); //#27367 + $_.addtometapart(); //#27367 + } //#27367 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27369 + $k[$j++] = 2; //#27369 + $k[$j++] = -1; //#27369 + $_.ldpc(); //#27369 + $_.addtometabits(); //#27369 + $_.p = 0; //#27369 + } else { //#27394 + var _Rc = $_.sameshape ? 0 : 1; //#27374 + $k[$j++] = _Rc; //#27374 + $k[$j++] = 1; //#27374 + $_.tofixedbits(); //#27374 + $_.addtometapart(); //#27374 + var _Re = $_.sameecc ? 0 : 1; //#27375 + $k[$j++] = _Re; //#27375 + $k[$j++] = 1; //#27375 + $_.tofixedbits(); //#27375 + $_.addtometapart(); //#27375 + var _Rg = $_.hasslaves ? 1 : 0; //#27376 + $k[$j++] = _Rg; //#27376 + $k[$j++] = 1; //#27376 + $_.tofixedbits(); //#27376 + $_.addtometapart(); //#27376 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27377 + $k[$j++] = 2; //#27377 + $k[$j++] = -1; //#27377 + $_.ldpc(); //#27377 + $_.addtometabits(); //#27377 + $_.p = 0; //#27377 + if (!$_.sameshape) { //#27383 + $k[$j++] = (~~(($_.diffside - 17) / 4)) - 1; //#27382 + $k[$j++] = 5; //#27382 + $_.tofixedbits(); //#27382 + $_.addtometapart(); //#27382 + } //#27382 + if ($_.hasslaves) { //#27386 + $k[$j++] = 0; //#27385 + $k[$j++] = 3; //#27385 + $_.tofixedbits(); //#27385 + $_.addtometapart(); //#27385 + } //#27385 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27387 + $k[$j++] = 2; //#27387 + $k[$j++] = -1; //#27387 + $_.ldpc(); //#27387 + $_.addtometabits(); //#27387 + $_.p = 0; //#27387 + if (!$_.sameecc) { //#27393 + $k[$j++] = $_.datawc - 3; //#27391 + $k[$j++] = ~~($_.metaelen / 2); //#27391 + $_.tofixedbits(); //#27391 + $_.addtometapart(); //#27391 + $k[$j++] = $_.datawr - 4; //#27392 + $k[$j++] = ~~($_.metaelen / 2); //#27392 + $_.tofixedbits(); //#27392 + $_.addtometapart(); //#27392 + } //#27392 + $k[$j++] = $geti($_.metapart, 0, $_.p); //#27394 + $k[$j++] = 2; //#27394 + $k[$j++] = -1; //#27394 + $_.ldpc(); //#27394 + $_.addtometabits(); //#27394 + $_.p = 0; //#27394 + } //#27394 + for (var _S1 = $_.q, _S0 = $f($_.nummetabits - 1); _S1 <= _S0; _S1 += 1) { //#27399 + $put($_.metabits, _S1, 48); //#27398 + } //#27398 + $_.i = 0; //#27402 + $_.j = 0; //#27402 + if (!$_.slave) { //#27410 + var _S6 = $geti($_.metabits, $_.i, 6); //#27404 + for (var _S7 = 0, _S8 = _S6.length; _S7 < _S8; _S7++) { //#27408 + $k[$j++] = $get(_S6, _S7); //#27405 + if ($_.colors == 4) { //#27405 + $k[$j++] = $a([$_.bi, $_.yi]); //#27405 + } else { //#27405 + $k[$j++] = $a([$_.ki, $_.wi]); //#27405 + } //#27405 + var _SH = $k[--$j]; //#27405 + var _SJ = $get(_SH, $f($k[--$j] - 48)); //#27405 + $k[$j++] = _SJ; //#27406 + $k[$j++] = $_.pixs; //#27406 + $aload($get($_.metadatamap, $_.j)); //#27406 + $_.jmv(); //#27406 + var _SO = $k[--$j]; //#27406 + var _SP = $k[--$j]; //#27406 + $put(_SP, _SO, $k[--$j]); //#27406 + $_.j = $_.j + 1; //#27407 + } //#27407 + $_.i = $_.i + 6; //#27409 + } //#27409 + for (var _SW = 0, _SX = ~~($f($_.nummetabits - $_.i) / $_.metabpm); _SW < _SX; _SW++) { //#27417 + var _Sb = $geti($_.metabits, $_.i, $_.metabpm); //#27412 + $k[$j++] = 0; //#27412 + for (var _Sc = 0, _Sd = _Sb.length; _Sc < _Sd; _Sc++) { //#27412 + var _Sf = $k[--$j]; //#27412 + $k[$j++] = ($f(_Sf + $f($get(_Sb, _Sc) - 48))) * 2; //#27412 + } //#27412 + var _Si = $get($_.metacolorindex, ~~($k[--$j] / 2)); //#27413 + $k[$j++] = _Si; //#27414 + $k[$j++] = $_.pixs; //#27414 + $aload($get($_.metadatamap, $_.j)); //#27414 + $_.jmv(); //#27414 + var _Sn = $k[--$j]; //#27414 + var _So = $k[--$j]; //#27414 + $put(_So, _Sn, $k[--$j]); //#27414 + $_.i = $f($_.i + $_.metabpm); //#27415 + $_.j = $_.j + 1; //#27416 + } //#27416 var _T0 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], @@ -34229,42 +34707,45 @@ function bwipp_jabcode() { ["colormap", $_.palette], ["height", ($_.rows * 2) / 72], ["width", ($_.cols * 2) / 72], + ["borderleft", 0], + ["borderright", 0], + ["bordertop", 0], + ["borderbottom", 0], ["opt", $_.options] - ]); //#27112 - $k[$j++] = _T0; //#27115 - if (!$_.dontdraw) { //#27115 - bwipp_renmatrix(); //#27115 - } //#27115 - $_ = Object.getPrototypeOf($_); //#27117 -} - + ]); //#27431 + $k[$j++] = _T0; //#27434 + if (!$_.dontdraw) { //#27434 + bwipp_renmatrix(); //#27434 + } //#27434 + $_ = Object.getPrototypeOf($_); //#27436 +} //bwipp_jabcode function bwipp_gs1_cc() { - $_ = Object.create($_); //#27150 - $_.parse = false; //#27153 - $_.dontlint = false; //#27154 - $_.lintreqs = false; //#27155 - $_.dontdraw = false; //#27156 - $_.ccversion = "a"; //#27157 - $_.cccolumns = -1; //#27158 - $_.lintype = ""; //#27159 - $_.linwidth = -1; //#27160 - $k[$j++] = $_; //#27162 - bwipp_processoptions(); //#27162 - $_.options = $k[--$j]; //#27162 - $_.barcode = $k[--$j]; //#27163 - bwipp_loadctx(bwipp_gs1_cc) //#27165 - if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27169 - $k[$j++] = 'bwipp.gs1ccBadCCversion#27168'; //#27168 - $k[$j++] = "ccversion must be a, b or c"; //#27168 - bwipp_raiseerror(); //#27168 - } //#27168 - if ($_.cccolumns > 30) { //#27173 - $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27172'; //#27172 - $k[$j++] = "The maximum number of composite component columns is 30"; //#27172 - bwipp_raiseerror(); //#27172 - } //#27172 - if (!bwipp_gs1_cc.__27190__) { //#27190 - $_ = Object.create($_); //#27190 + $_ = Object.create($_); //#27469 + $_.parse = false; //#27472 + $_.dontlint = false; //#27473 + $_.lintreqs = false; //#27474 + $_.dontdraw = false; //#27475 + $_.ccversion = "a"; //#27476 + $_.cccolumns = -1; //#27477 + $_.lintype = ""; //#27478 + $_.linwidth = -1; //#27479 + $k[$j++] = $_; //#27481 + bwipp_processoptions(); //#27481 + $_.options = $k[--$j]; //#27481 + $_.barcode = $k[--$j]; //#27482 + bwipp_loadctx(bwipp_gs1_cc) //#27484 + if (($ne($_.ccversion, "a") && $ne($_.ccversion, "b")) && $ne($_.ccversion, "c")) { //#27488 + $k[$j++] = 'bwipp.gs1ccBadCCversion#27487'; //#27487 + $k[$j++] = "ccversion must be a, b or c"; //#27487 + bwipp_raiseerror(); //#27487 + } //#27487 + if ($_.cccolumns > 30) { //#27492 + $k[$j++] = 'bwipp.gs1ccColumnsTooBig#27491'; //#27491 + $k[$j++] = "The maximum number of composite component columns is 30"; //#27491 + bwipp_raiseerror(); //#27491 + } //#27491 + if (!bwipp_gs1_cc.__27509__) { //#27509 + $_ = Object.create($_); //#27509 var _6 = new Map([ ["ean13", 4], ["upca", 4], @@ -34278,1806 +34759,1383 @@ function bwipp_gs1_cc() { ["databarlimited", 3], ["databarexpanded", 4], ["databarexpandedstacked", 4] - ]); //#27188 - $_.lintypecccolumns = _6; //#27189 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27189 - bwipp_gs1_cc.__27190__ = 1; //#27189 - $_ = Object.getPrototypeOf($_); //#27189 - } //#27189 - if ($ne($_.lintype, "")) { //#27196 - var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27193 - if (!_B) { //#27195 - $k[$j++] = 'bwipp.gs1ccBadLinType#27194'; //#27194 - $k[$j++] = "The lintype is not recognised"; //#27194 - bwipp_raiseerror(); //#27194 - } //#27194 - } //#27194 - if ($_.cccolumns == -1) { //#27209 - if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27206 - if ($_.linwidth < 0) { //#27203 - $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27202'; //#27202 - $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27202 - bwipp_raiseerror(); //#27202 - } //#27202 - $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27204 - } else { //#27206 - $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27206 - } //#27206 - $_.cccolumns = $k[--$j]; //#27208 - } //#27208 - $k[$j++] = $_.barcode; //#27211 - $k[$j++] = 'ai'; //#27211 - bwipp_gs1process(); //#27211 - $_.fncs = $k[--$j]; //#27212 - $_.vals = $k[--$j]; //#27213 - $_.ais = $k[--$j]; //#27214 + ]); //#27507 + $_.lintypecccolumns = _6; //#27508 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27508 + bwipp_gs1_cc.__27509__ = 1; //#27508 + $_ = Object.getPrototypeOf($_); //#27508 + } //#27508 + if ($ne($_.lintype, "")) { //#27515 + var _B = $get($_.lintypecccolumns, $_.lintype) !== undefined; //#27512 + if (!_B) { //#27514 + $k[$j++] = 'bwipp.gs1ccBadLinType#27513'; //#27513 + $k[$j++] = "The lintype is not recognised"; //#27513 + bwipp_raiseerror(); //#27513 + } //#27513 + } //#27513 + if ($_.cccolumns == -1) { //#27531 + if ($eq($_.lintype, "gs1-128") && $eq($_.ccversion, "c")) { //#27528 + if ($_.linwidth < 0) { //#27522 + $k[$j++] = 'bwipp.gs1ccMissingLinWidth#27521'; //#27521 + $k[$j++] = "linwidth must be set for a GS1-128 with a CC-C composite component"; //#27521 + bwipp_raiseerror(); //#27521 + } //#27521 + if ($_.linwidth < 68) { //#27525 + $k[$j++] = 'bwipp.gs1ccMinimumLinWidth#27524'; //#27524 + $k[$j++] = "Minimum linwidth for a GS1-128 with a CC-C composite component is 68"; //#27524 + bwipp_raiseerror(); //#27524 + } //#27524 + if ($_.linwidth == 68) { //#27526 + $k[$j++] = 1; //#27526 + } else { //#27526 + $k[$j++] = ~~(($_.linwidth - 52) / 17); //#27526 + } //#27526 + } else { //#27528 + if ($ne($_.lintype, "")) { //#27528 + $k[$j++] = $get($_.lintypecccolumns, $_.lintype); //#27528 + } else { //#27528 + $k[$j++] = 2; //#27528 + } //#27528 + } //#27528 + $_.cccolumns = $k[--$j]; //#27530 + } //#27530 + $k[$j++] = $_.barcode; //#27533 + $k[$j++] = 'ai'; //#27533 + bwipp_gs1process(); //#27533 + $_.fncs = $k[--$j]; //#27534 + $_.vals = $k[--$j]; //#27535 + $_.ais = $k[--$j]; //#27536 $_.isupper = function() { - var _P = $k[--$j]; //#27217 - $k[$j++] = (_P >= 65) && (_P <= 90); //#27217 - }; //#27217 + var _S = $k[--$j]; //#27539 + $k[$j++] = (_S >= 65) && (_S <= 90); //#27539 + }; //#27539 $_.isnum0 = function() { - var _Q = $k[--$j]; //#27218 - $k[$j++] = (_Q >= 48) && (_Q <= 57); //#27218 - }; //#27218 + var _T = $k[--$j]; //#27540 + $k[$j++] = (_T >= 48) && (_T <= 57); //#27540 + }; //#27540 $_.isnum1 = function() { - var _R = $k[--$j]; //#27219 - $k[$j++] = (_R >= 49) && (_R <= 57); //#27219 - }; //#27219 - for (;;) { //#27265 - if ($_.ais.length >= 1) { //#27227 - if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27226 - $k[$j++] = -1; //#27225 - $k[$j++] = "10"; //#27225 - break; //#27225 - } //#27225 - } //#27225 - if ($_.ais.length >= 1) { //#27260 - if ($eq($get($_.ais, 0), "90")) { //#27259 - $_.v = $get($_.vals, 0); //#27232 - if ($_.v.length >= 1) { //#27237 - $k[$j++] = $get($_.v, 0); //#27234 - $_.isupper(); //#27234 - if ($k[--$j]) { //#27236 - $k[$j++] = 0; //#27235 - $k[$j++] = "11"; //#27235 - break; //#27235 - } //#27235 - } //#27235 - if ($_.v.length >= 2) { //#27243 - $k[$j++] = $get($_.v, 0); //#27239 - $_.isnum1(); //#27239 - $k[$j++] = $get($_.v, 1); //#27240 - $_.isupper(); //#27240 - var _n = $k[--$j]; //#27240 - var _o = $k[--$j]; //#27240 - if ((_o && _n)) { //#27242 - $k[$j++] = 1; //#27241 - $k[$j++] = "11"; //#27241 - break; //#27241 - } //#27241 - } //#27241 - if ($_.v.length >= 3) { //#27250 - $k[$j++] = $get($_.v, 0); //#27245 - $_.isnum1(); //#27245 - $k[$j++] = $get($_.v, 1); //#27246 - $_.isnum0(); //#27246 - var _u = $k[--$j]; //#27246 - var _v = $k[--$j]; //#27246 - $k[$j++] = $an(_v, _u); //#27247 - $k[$j++] = $get($_.v, 2); //#27247 - $_.isupper(); //#27247 - var _y = $k[--$j]; //#27247 - var _z = $k[--$j]; //#27247 - if ((_z && _y)) { //#27249 - $k[$j++] = 2; //#27248 - $k[$j++] = "11"; //#27248 - break; //#27248 - } //#27248 - } //#27248 - if ($_.v.length >= 4) { //#27258 - $k[$j++] = $get($_.v, 0); //#27252 - $_.isnum1(); //#27252 - $k[$j++] = $get($_.v, 1); //#27253 - $_.isnum0(); //#27253 - var _15 = $k[--$j]; //#27253 - var _16 = $k[--$j]; //#27253 - $k[$j++] = $an(_16, _15); //#27254 - $k[$j++] = $get($_.v, 2); //#27254 - $_.isnum0(); //#27254 - var _19 = $k[--$j]; //#27254 - var _1A = $k[--$j]; //#27254 - $k[$j++] = $an(_1A, _19); //#27255 - $k[$j++] = $get($_.v, 3); //#27255 - $_.isupper(); //#27255 - var _1D = $k[--$j]; //#27255 - var _1E = $k[--$j]; //#27255 - if ((_1E && _1D)) { //#27257 - $k[$j++] = 3; //#27256 - $k[$j++] = "11"; //#27256 - break; //#27256 - } //#27256 - } //#27256 - } //#27256 - } //#27256 - $k[$j++] = -1; //#27263 - $k[$j++] = "0"; //#27263 - break; //#27263 - } //#27263 - $_.method = $k[--$j]; //#27266 - $_.npre = $k[--$j]; //#27267 + var _U = $k[--$j]; //#27541 + $k[$j++] = (_U >= 49) && (_U <= 57); //#27541 + }; //#27541 + for (;;) { //#27587 + if ($_.ais.length >= 1) { //#27549 + if (($eq($get($_.ais, 0), "10") || $eq($get($_.ais, 0), "11")) || $eq($get($_.ais, 0), "17")) { //#27548 + $k[$j++] = -1; //#27547 + $k[$j++] = "10"; //#27547 + break; //#27547 + } //#27547 + } //#27547 + if ($_.ais.length >= 1) { //#27582 + if ($eq($get($_.ais, 0), "90")) { //#27581 + $_.v = $get($_.vals, 0); //#27554 + if ($_.v.length >= 1) { //#27559 + $k[$j++] = $get($_.v, 0); //#27556 + $_.isupper(); //#27556 + if ($k[--$j]) { //#27558 + $k[$j++] = 0; //#27557 + $k[$j++] = "11"; //#27557 + break; //#27557 + } //#27557 + } //#27557 + if ($_.v.length >= 2) { //#27565 + $k[$j++] = $get($_.v, 0); //#27561 + $_.isnum1(); //#27561 + $k[$j++] = $get($_.v, 1); //#27562 + $_.isupper(); //#27562 + var _q = $k[--$j]; //#27562 + var _r = $k[--$j]; //#27562 + if ((_r && _q)) { //#27564 + $k[$j++] = 1; //#27563 + $k[$j++] = "11"; //#27563 + break; //#27563 + } //#27563 + } //#27563 + if ($_.v.length >= 3) { //#27572 + $k[$j++] = $get($_.v, 0); //#27567 + $_.isnum1(); //#27567 + $k[$j++] = $get($_.v, 1); //#27568 + $_.isnum0(); //#27568 + var _x = $k[--$j]; //#27568 + var _y = $k[--$j]; //#27568 + $k[$j++] = $an(_y, _x); //#27569 + $k[$j++] = $get($_.v, 2); //#27569 + $_.isupper(); //#27569 + var _11 = $k[--$j]; //#27569 + var _12 = $k[--$j]; //#27569 + if ((_12 && _11)) { //#27571 + $k[$j++] = 2; //#27570 + $k[$j++] = "11"; //#27570 + break; //#27570 + } //#27570 + } //#27570 + if ($_.v.length >= 4) { //#27580 + $k[$j++] = $get($_.v, 0); //#27574 + $_.isnum1(); //#27574 + $k[$j++] = $get($_.v, 1); //#27575 + $_.isnum0(); //#27575 + var _18 = $k[--$j]; //#27575 + var _19 = $k[--$j]; //#27575 + $k[$j++] = $an(_19, _18); //#27576 + $k[$j++] = $get($_.v, 2); //#27576 + $_.isnum0(); //#27576 + var _1C = $k[--$j]; //#27576 + var _1D = $k[--$j]; //#27576 + $k[$j++] = $an(_1D, _1C); //#27577 + $k[$j++] = $get($_.v, 3); //#27577 + $_.isupper(); //#27577 + var _1G = $k[--$j]; //#27577 + var _1H = $k[--$j]; //#27577 + if ((_1H && _1G)) { //#27579 + $k[$j++] = 3; //#27578 + $k[$j++] = "11"; //#27578 + break; //#27578 + } //#27578 + } //#27578 + } //#27578 + } //#27578 + $k[$j++] = -1; //#27585 + $k[$j++] = "0"; //#27585 + break; //#27585 + } //#27585 + $_.method = $k[--$j]; //#27588 + $_.npre = $k[--$j]; //#27589 $_.tobin = function() { - var _1I = $s($k[--$j]); //#27270 - $k[$j++] = _1I; //#27270 - for (var _1K = 0, _1J = _1I.length - 1; _1K <= _1J; _1K += 1) { //#27270 - var _1L = $k[--$j]; //#27270 - $put(_1L, _1K, 48); //#27270 - $k[$j++] = _1L; //#27270 - } //#27270 - var _1M = $k[--$j]; //#27271 - var _1P = $cvrs($s(_1M.length), $k[--$j], 2); //#27271 - $puti(_1M, _1M.length - _1P.length, _1P); //#27271 - $k[$j++] = _1M; //#27271 - }; //#27271 - if (!bwipp_gs1_cc.__27322__) { //#27322 - $_ = Object.create($_); //#27322 - $_.fnc1 = -1; //#27276 - $_.lnumeric = -2; //#27276 - $_.lalphanumeric = -3; //#27276 - $_.liso646 = -4; //#27276 - $k[$j++] = Infinity; //#27281 - for (var _1Q = 65; _1Q <= 90; _1Q += 1) { //#27279 - $k[$j++] = _1Q; //#27279 - $k[$j++] = _1Q - 65; //#27279 - $k[$j++] = 5; //#27279 - $_.tobin(); //#27279 - } //#27279 - for (var _1R = 48; _1R <= 57; _1R += 1) { //#27280 - $k[$j++] = _1R; //#27280 - $k[$j++] = _1R + 4; //#27280 - $k[$j++] = 6; //#27280 - $_.tobin(); //#27280 - } //#27280 - $k[$j++] = $_.fnc1; //#27281 - $k[$j++] = "11111"; //#27281 - $_.alpha = $d(); //#27282 - $k[$j++] = Infinity; //#27294 - for (var _1U = 0; _1U <= 119; _1U += 1) { //#27293 - var _1W = $strcpy($s(2), "00"); //#27286 - var _1Y = $cvrs($s(2), _1U, 11); //#27286 - $puti(_1W, 2 - _1Y.length, _1Y); //#27287 - $k[$j++] = _1U; //#27288 - $k[$j++] = _1W; //#27288 - if ($get(_1W, 0) == 65) { //#27288 - var _1a = $k[--$j]; //#27288 - $put(_1a, 0, 94); //#27288 - $k[$j++] = _1a; //#27288 - } //#27288 - var _1b = $k[--$j]; //#27289 - $k[$j++] = _1b; //#27289 - if ($get(_1b, 1) == 65) { //#27289 - var _1d = $k[--$j]; //#27289 - $put(_1d, 1, 94); //#27289 - $k[$j++] = _1d; //#27289 - } //#27289 - var _1e = $k[--$j]; //#27290 - var _1h = $strcpy($s(7), "0000000"); //#27291 - var _1j = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27291 - $puti(_1h, 7 - _1j.length, _1j); //#27292 - $k[$j++] = _1e; //#27292 - $k[$j++] = _1h; //#27292 - } //#27292 - $k[$j++] = $_.lalphanumeric; //#27294 - $k[$j++] = "0000"; //#27294 - $_.numeric = $d(); //#27295 - $k[$j++] = Infinity; //#27304 - for (var _1m = 48; _1m <= 57; _1m += 1) { //#27298 - $k[$j++] = _1m; //#27298 - $k[$j++] = _1m - 43; //#27298 - $k[$j++] = 5; //#27298 - $_.tobin(); //#27298 - } //#27298 - $k[$j++] = $_.fnc1; //#27300 - $k[$j++] = "01111"; //#27300 - for (var _1o = 65; _1o <= 90; _1o += 1) { //#27300 - $k[$j++] = _1o; //#27300 - $k[$j++] = _1o - 33; //#27300 - $k[$j++] = 6; //#27300 - $_.tobin(); //#27300 - } //#27300 - $k[$j++] = 42; //#27302 - $k[$j++] = "111010"; //#27302 - for (var _1p = 44; _1p <= 47; _1p += 1) { //#27302 - $k[$j++] = _1p; //#27302 - $k[$j++] = _1p + 15; //#27302 - $k[$j++] = 6; //#27302 - $_.tobin(); //#27302 - } //#27302 - $k[$j++] = $_.lnumeric; //#27304 - $k[$j++] = "000"; //#27304 - $k[$j++] = $_.liso646; //#27304 - $k[$j++] = "00100"; //#27304 - $_.alphanumeric = $d(); //#27305 - $k[$j++] = Infinity; //#27319 - for (var _1t = 48; _1t <= 57; _1t += 1) { //#27308 - $k[$j++] = _1t; //#27308 - $k[$j++] = _1t - 43; //#27308 - $k[$j++] = 5; //#27308 - $_.tobin(); //#27308 - } //#27308 - $k[$j++] = $_.fnc1; //#27310 - $k[$j++] = "01111"; //#27310 - for (var _1v = 65; _1v <= 90; _1v += 1) { //#27310 - $k[$j++] = _1v; //#27310 - $k[$j++] = _1v - 1; //#27310 - $k[$j++] = 7; //#27310 - $_.tobin(); //#27310 - } //#27310 - for (var _1w = 97; _1w <= 122; _1w += 1) { //#27311 - $k[$j++] = _1w; //#27311 - $k[$j++] = _1w - 7; //#27311 - $k[$j++] = 7; //#27311 - $_.tobin(); //#27311 - } //#27311 - $k[$j++] = 33; //#27314 - $k[$j++] = "11101000"; //#27314 - $k[$j++] = 34; //#27314 - $k[$j++] = "11101001"; //#27314 - for (var _1x = 37; _1x <= 47; _1x += 1) { //#27314 - $k[$j++] = _1x; //#27314 - $k[$j++] = _1x + 197; //#27314 - $k[$j++] = 8; //#27314 - $_.tobin(); //#27314 - } //#27314 - for (var _1y = 58; _1y <= 63; _1y += 1) { //#27315 - $k[$j++] = _1y; //#27315 - $k[$j++] = _1y + 187; //#27315 - $k[$j++] = 8; //#27315 - $_.tobin(); //#27315 - } //#27315 - $k[$j++] = 95; //#27319 - $k[$j++] = "11111011"; //#27319 - $k[$j++] = 32; //#27319 - $k[$j++] = "11111100"; //#27319 - $k[$j++] = $_.lnumeric; //#27319 - $k[$j++] = "000"; //#27319 - $k[$j++] = $_.lalphanumeric; //#27319 - $k[$j++] = "00100"; //#27319 - $_.iso646 = $d(); //#27320 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27320 - bwipp_gs1_cc.__27322__ = 1; //#27320 - $_ = Object.getPrototypeOf($_); //#27320 - } //#27320 - if ($eq($_.method, "10")) { //#27357 - if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27340 - var _29 = $get($_.vals, 0); //#27326 - var _2E = $strcpy($s(16), "0000000000000000"); //#27330 - var _2G = $cvrs($s(16), ($cvi($geti(_29, 0, 2)) * 384) + ((($cvi($geti(_29, 2, 2)) - 1) * 32) + $cvi($geti(_29, 4, 2))), 2); //#27330 - $puti(_2E, 16 - _2G.length, _2G); //#27331 - $k[$j++] = _2E; //#27334 - $k[$j++] = Infinity; //#27334 - var _2H = $k[--$j]; //#27333 - var _2I = $k[--$j]; //#27333 - $k[$j++] = _2H; //#27333 - $k[$j++] = 1; //#27333 - $k[$j++] = 0; //#27333 - $forall(_2I, function() { //#27333 - var _2J = $k[--$j]; //#27333 - $k[$j++] = $f(_2J - 48); //#27333 - }); //#27333 - var _2M = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27334 - $k[$j++] = _2M; //#27334 - $_.cdf = $a(); //#27335 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27336 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27337 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27338 - } else { //#27340 - $_.cdf = $a([1, 0, 1, 1]); //#27340 - } //#27340 - if ($_.ais.length != 0) { //#27354 - if ($eq($get($_.ais, 0), "10")) { //#27350 - $k[$j++] = Infinity; //#27344 - $forall($get($_.vals, 0)); //#27344 - $_.gpf = $a(); //#27344 - if ($_.ais.length > 1) { //#27345 - $k[$j++] = Infinity; //#27345 - $aload($_.gpf); //#27345 - $k[$j++] = $_.fnc1; //#27345 - $_.gpf = $a(); //#27345 - } //#27345 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27346 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27347 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27348 - } else { //#27350 - $_.gpf = $a([$_.fnc1]); //#27350 - } //#27350 - } else { //#27354 - $k[$j++] = Infinity; //#27353 - $aload($_.cdf); //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 0; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $k[$j++] = 1; //#27353 - $_.cdf = $a(); //#27353 - $_.gpf = $a([]); //#27354 - } //#27354 - $_.mode = "numeric"; //#27356 - } //#27356 - if ($eq($_.method, "11")) { //#27451 - $_.cdf = $a([1, 1]); //#27360 - $_.ai90 = $get($_.vals, 0); //#27361 - if ($f($_.npre + 1) != $_.ai90.length) { //#27365 - $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27363 - } else { //#27365 - $k[$j++] = ""; //#27365 - } //#27365 - $_.ai90rem = $k[--$j]; //#27367 - $k[$j++] = 'nalpha'; //#27368 - $k[$j++] = 0; //#27368 - $forall($_.ai90rem, function() { //#27368 - var _39 = $k[--$j]; //#27368 - if ((_39 >= 65) && (_39 <= 90)) { //#27368 - var _3A = $k[--$j]; //#27368 - $k[$j++] = $f(_3A + 1); //#27368 - } //#27368 - }); //#27368 - var _3B = $k[--$j]; //#27368 - $_[$k[--$j]] = _3B; //#27368 - $k[$j++] = 'nnums'; //#27369 - $k[$j++] = 0; //#27369 - $forall($_.ai90rem, function() { //#27369 - var _3E = $k[--$j]; //#27369 - if ((_3E >= 48) && (_3E <= 57)) { //#27369 - var _3F = $k[--$j]; //#27369 - $k[$j++] = $f(_3F + 1); //#27369 - } //#27369 - }); //#27369 - var _3G = $k[--$j]; //#27369 - $_[$k[--$j]] = _3G; //#27369 - $k[$j++] = 'mode'; //#27370 - if ($gt($_.nalpha, $_.nnums)) { //#27370 - $k[$j++] = "alpha"; //#27370 - } else { //#27370 - if ($_.nalpha == 0) { //#27370 - $k[$j++] = "numeric"; //#27370 - } else { //#27370 - $k[$j++] = "alphanumeric"; //#27370 - } //#27370 - } //#27370 - var _3L = $k[--$j]; //#27370 - $_[$k[--$j]] = _3L; //#27370 - if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27371 - $_.mode = "alphanumeric"; //#27371 - } //#27371 - $k[$j++] = Infinity; //#27376 - $aload($_.cdf); //#27373 - if ($eq($_.mode, "alphanumeric")) { //#27374 - $k[$j++] = 0; //#27374 - } //#27374 - if ($eq($_.mode, "numeric")) { //#27375 - $k[$j++] = 1; //#27375 - $k[$j++] = 0; //#27375 - } //#27375 - if ($eq($_.mode, "alpha")) { //#27376 - $k[$j++] = 1; //#27376 - $k[$j++] = 1; //#27376 - } //#27376 - $_.cdf = $a(); //#27376 - $k[$j++] = 'ais1'; //#27378 - if ($_.ais.length > 1) { //#27378 - $k[$j++] = $get($_.ais, 1); //#27378 - } else { //#27378 - $k[$j++] = -1; //#27378 - } //#27378 - var _3Y = $k[--$j]; //#27378 - $_[$k[--$j]] = _3Y; //#27378 - $k[$j++] = 'vals1'; //#27379 - if ($_.vals.length > 1) { //#27379 - $k[$j++] = $get($_.vals, 1); //#27379 - } else { //#27379 - $k[$j++] = -1; //#27379 - } //#27379 - var _3d = $k[--$j]; //#27379 - $_[$k[--$j]] = _3d; //#27379 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27383 - $k[$j++] = Infinity; //#27381 - $aload($_.cdf); //#27381 - if ($eq($_.ais1, "21")) { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 0; //#27381 - } else { //#27381 - $k[$j++] = 1; //#27381 - $k[$j++] = 1; //#27381 - } //#27381 - $_.cdf = $a(); //#27381 - } else { //#27383 - $k[$j++] = Infinity; //#27383 - $aload($_.cdf); //#27383 - $k[$j++] = 0; //#27383 - $_.cdf = $a(); //#27383 - } //#27383 - $k[$j++] = 'nval'; //#27385 - if ($_.npre != 0) { //#27385 - $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27385 - } else { //#27385 - $k[$j++] = 0; //#27385 - } //#27385 - var _3q = $k[--$j]; //#27385 - $_[$k[--$j]] = _3q; //#27385 - $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27386 - if ($k[--$j]) { //#27390 - var _3w = $k[--$j]; //#27387 - var _3x = $k[--$j]; //#27387 - $k[$j++] = _3w.length; //#27387 - $k[$j++] = _3x; //#27387 - $j--; //#27387 - var _3y = $k[--$j]; //#27387 - var _3z = $k[--$j]; //#27387 - $k[$j++] = _3y; //#27387 - $k[$j++] = _3z; //#27387 - $j--; //#27387 - $_.aval = $k[--$j]; //#27388 - } else { //#27390 - $j--; //#27390 - $_.aval = -1; //#27390 - } //#27390 - if (($_.nval < 31) && ($_.aval != -1)) { //#27416 - var _44 = $strcpy($s(5), "00000"); //#27393 - var _47 = $cvrs($s(5), $_.nval, 2); //#27393 - $puti(_44, 5 - _47.length, _47); //#27394 - $k[$j++] = _44; //#27395 - $k[$j++] = Infinity; //#27395 - var _48 = $k[--$j]; //#27395 - var _49 = $k[--$j]; //#27395 - $k[$j++] = _48; //#27395 - $forall(_49, function() { //#27395 - var _4A = $k[--$j]; //#27395 - $k[$j++] = $f(_4A - 48); //#27395 - }); //#27395 - $_.nbits = $a(); //#27395 - var _4D = $strcpy($s(4), "0000"); //#27396 - var _4G = $cvrs($s(4), $_.aval, 2); //#27396 - $puti(_4D, 4 - _4G.length, _4G); //#27397 - $k[$j++] = _4D; //#27398 - $k[$j++] = Infinity; //#27398 - var _4H = $k[--$j]; //#27398 - var _4I = $k[--$j]; //#27398 - $k[$j++] = _4H; //#27398 - $forall(_4I, function() { //#27398 - var _4J = $k[--$j]; //#27398 - $k[$j++] = $f(_4J - 48); //#27398 - }); //#27398 - $_.abits = $a(); //#27398 - $k[$j++] = Infinity; //#27402 - $aload($_.cdf); //#27400 - $aload($_.nbits); //#27401 - $aload($_.abits); //#27402 - $_.cdf = $a(); //#27402 - } else { //#27416 - var _4Q = $strcpy($s(10), "0000000000"); //#27405 - var _4T = $cvrs($s(10), $_.nval, 2); //#27405 - $puti(_4Q, 10 - _4T.length, _4T); //#27406 - $k[$j++] = _4Q; //#27407 - $k[$j++] = Infinity; //#27407 - var _4U = $k[--$j]; //#27407 - var _4V = $k[--$j]; //#27407 - $k[$j++] = _4U; //#27407 - $forall(_4V, function() { //#27407 - var _4W = $k[--$j]; //#27407 - $k[$j++] = $f(_4W - 48); //#27407 - }); //#27407 - $_.nbits = $a(); //#27407 - var _4Z = $strcpy($s(5), "00000"); //#27408 - var _4e = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27408 - $puti(_4Z, 5 - _4e.length, _4e); //#27409 - $k[$j++] = _4Z; //#27410 - $k[$j++] = Infinity; //#27410 - var _4f = $k[--$j]; //#27410 - var _4g = $k[--$j]; //#27410 - $k[$j++] = _4f; //#27410 - $forall(_4g, function() { //#27410 - var _4h = $k[--$j]; //#27410 - $k[$j++] = $f(_4h - 48); //#27410 - }); //#27410 - $_.abits = $a(); //#27410 - $k[$j++] = Infinity; //#27415 - $aload($_.cdf); //#27412 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $k[$j++] = 1; //#27414 - $aload($_.nbits); //#27414 - $aload($_.abits); //#27415 - $_.cdf = $a(); //#27415 - } //#27416 - if ($ne($_.mode, "alpha")) { //#27434 - $k[$j++] = Infinity; //#27419 - $forall($_.ai90rem); //#27419 - if ($_.ais.length > 1) { //#27419 - $k[$j++] = $_.fnc1; //#27419 - } //#27419 - $_.gpf = $a(); //#27419 - } else { //#27434 - $k[$j++] = Infinity; //#27421 - $forall($_.ai90rem); //#27421 - if ($_.ais.length > 1) { //#27421 - $k[$j++] = $_.fnc1; //#27421 - } //#27421 - $_.in = $a(); //#27421 - $_.out = $a($_.in.length * 6); //#27422 - $_.j = 0; //#27423 - for (var _50 = 0, _4z = $_.in.length - 1; _50 <= _4z; _50 += 1) { //#27428 - var _54 = $get($_.alpha, $get($_.in, _50)); //#27425 - $k[$j++] = _54; //#27426 - $k[$j++] = _54; //#27426 - $k[$j++] = Infinity; //#27426 - var _55 = $k[--$j]; //#27426 - var _56 = $k[--$j]; //#27426 - $k[$j++] = _55; //#27426 - $forall(_56, function() { //#27426 - var _57 = $k[--$j]; //#27426 - $k[$j++] = $f(_57 - 48); //#27426 - }); //#27426 - $puti($_.out, $_.j, $a()); //#27426 - $_.j = $k[--$j].length + $_.j; //#27427 - } //#27427 - $k[$j++] = Infinity; //#27431 - $aload($_.cdf); //#27430 - $aload($geti($_.out, 0, $_.j)); //#27431 - $_.cdf = $a(); //#27431 - $_.gpf = $a([]); //#27433 - if ($_.ais.length > 1) { //#27434 - $_.mode = "numeric"; //#27434 - } //#27434 - } //#27434 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27436 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27437 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27438 - if ($_.ais.length != 0) { //#27450 - if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27449 - $k[$j++] = Infinity; //#27443 - $aload($_.gpf); //#27442 - $forall($_.vals1); //#27443 - $_.gpf = $a(); //#27443 - $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27445 - $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27446 - $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27447 - if ($_.ais.length != 0) { //#27448 - $k[$j++] = Infinity; //#27448 - $aload($_.gpf); //#27448 - $k[$j++] = $_.fnc1; //#27448 - $_.gpf = $a(); //#27448 - } //#27448 - } //#27448 - } //#27448 - } //#27448 - if ($eq($_.method, "0")) { //#27457 - $_.cdf = $a([0]); //#27454 - $_.gpf = $a([]); //#27455 - $_.mode = "numeric"; //#27456 - } //#27456 - for (var _5r = 0, _5q = $_.ais.length - 1; _5r <= _5q; _5r += 1) { //#27475 - $_.i = _5r; //#27461 - $_.ai = $get($_.ais, $_.i); //#27462 - $_.val = $get($_.vals, $_.i); //#27463 - var _61 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27464 - $puti(_61, 0, $_.gpf); //#27465 - $k[$j++] = _61; //#27466 - $k[$j++] = _61; //#27466 - $k[$j++] = $_.gpf.length; //#27466 - $k[$j++] = $_.ai; //#27466 - $k[$j++] = Infinity; //#27466 - var _65 = $k[--$j]; //#27466 - var _66 = $k[--$j]; //#27466 - $k[$j++] = _65; //#27466 - $forall(_66); //#27466 - var _67 = $a(); //#27466 - var _68 = $k[--$j]; //#27466 - $puti($k[--$j], _68, _67); //#27466 - var _6A = $k[--$j]; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = _6A; //#27467 - $k[$j++] = $_.gpf.length + $_.ai.length; //#27467 - $k[$j++] = $_.val; //#27467 - $k[$j++] = Infinity; //#27467 - var _6E = $k[--$j]; //#27467 - var _6F = $k[--$j]; //#27467 - $k[$j++] = _6E; //#27467 - $forall(_6F); //#27467 - var _6G = $a(); //#27467 - var _6H = $k[--$j]; //#27467 - $puti($k[--$j], _6H, _6G); //#27467 - $_.gpf = $k[--$j]; //#27468 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27474 - var _6Q = $a($_.gpf.length + 1); //#27470 - $puti(_6Q, 0, $_.gpf); //#27471 - $put(_6Q, $_.gpf.length, $_.fnc1); //#27472 - $_.gpf = _6Q; //#27473 - } //#27473 - } //#27473 - if (!bwipp_gs1_cc.__27491__) { //#27491 - $_ = Object.create($_); //#27491 - var _6c = new Map([ + var _1L = $s($k[--$j]); //#27592 + $k[$j++] = _1L; //#27592 + for (var _1N = 0, _1M = _1L.length - 1; _1N <= _1M; _1N += 1) { //#27592 + var _1O = $k[--$j]; //#27592 + $put(_1O, _1N, 48); //#27592 + $k[$j++] = _1O; //#27592 + } //#27592 + var _1P = $k[--$j]; //#27593 + var _1S = $cvrs($s(_1P.length), $k[--$j], 2); //#27593 + $puti(_1P, _1P.length - _1S.length, _1S); //#27593 + $k[$j++] = _1P; //#27593 + }; //#27593 + if (!bwipp_gs1_cc.__27644__) { //#27644 + $_ = Object.create($_); //#27644 + $_.fnc1 = -1; //#27598 + $_.lnumeric = -2; //#27598 + $_.lalphanumeric = -3; //#27598 + $_.liso646 = -4; //#27598 + $k[$j++] = Infinity; //#27600 + for (var _1T = 65; _1T <= 90; _1T += 1) { //#27601 + $k[$j++] = _1T; //#27601 + $k[$j++] = _1T - 65; //#27601 + $k[$j++] = 5; //#27601 + $_.tobin(); //#27601 + } //#27601 + for (var _1U = 48; _1U <= 57; _1U += 1) { //#27602 + $k[$j++] = _1U; //#27602 + $k[$j++] = _1U + 4; //#27602 + $k[$j++] = 6; //#27602 + $_.tobin(); //#27602 + } //#27602 + $k[$j++] = $_.fnc1; //#27603 + $k[$j++] = "11111"; //#27603 + $_.alpha = $d(); //#27604 + $k[$j++] = Infinity; //#27606 + for (var _1X = 0; _1X <= 119; _1X += 1) { //#27615 + var _1Z = $strcpy($s(2), "00"); //#27608 + var _1b = $cvrs($s(2), _1X, 11); //#27608 + $puti(_1Z, 2 - _1b.length, _1b); //#27609 + $k[$j++] = _1X; //#27610 + $k[$j++] = _1Z; //#27610 + if ($get(_1Z, 0) == 65) { //#27610 + var _1d = $k[--$j]; //#27610 + $put(_1d, 0, 94); //#27610 + $k[$j++] = _1d; //#27610 + } //#27610 + var _1e = $k[--$j]; //#27611 + $k[$j++] = _1e; //#27611 + if ($get(_1e, 1) == 65) { //#27611 + var _1g = $k[--$j]; //#27611 + $put(_1g, 1, 94); //#27611 + $k[$j++] = _1g; //#27611 + } //#27611 + var _1h = $k[--$j]; //#27612 + var _1k = $strcpy($s(7), "0000000"); //#27613 + var _1m = $cvrs($s(7), $f($k[--$j] + 8), 2); //#27613 + $puti(_1k, 7 - _1m.length, _1m); //#27614 + $k[$j++] = _1h; //#27614 + $k[$j++] = _1k; //#27614 + } //#27614 + $k[$j++] = $_.lalphanumeric; //#27616 + $k[$j++] = "0000"; //#27616 + $_.numeric = $d(); //#27617 + $k[$j++] = Infinity; //#27619 + for (var _1p = 48; _1p <= 57; _1p += 1) { //#27620 + $k[$j++] = _1p; //#27620 + $k[$j++] = _1p - 43; //#27620 + $k[$j++] = 5; //#27620 + $_.tobin(); //#27620 + } //#27620 + $k[$j++] = $_.fnc1; //#27622 + $k[$j++] = "01111"; //#27622 + for (var _1r = 65; _1r <= 90; _1r += 1) { //#27622 + $k[$j++] = _1r; //#27622 + $k[$j++] = _1r - 33; //#27622 + $k[$j++] = 6; //#27622 + $_.tobin(); //#27622 + } //#27622 + $k[$j++] = 42; //#27624 + $k[$j++] = "111010"; //#27624 + for (var _1s = 44; _1s <= 47; _1s += 1) { //#27624 + $k[$j++] = _1s; //#27624 + $k[$j++] = _1s + 15; //#27624 + $k[$j++] = 6; //#27624 + $_.tobin(); //#27624 + } //#27624 + $k[$j++] = $_.lnumeric; //#27626 + $k[$j++] = "000"; //#27626 + $k[$j++] = $_.liso646; //#27626 + $k[$j++] = "00100"; //#27626 + $_.alphanumeric = $d(); //#27627 + $k[$j++] = Infinity; //#27629 + for (var _1w = 48; _1w <= 57; _1w += 1) { //#27630 + $k[$j++] = _1w; //#27630 + $k[$j++] = _1w - 43; //#27630 + $k[$j++] = 5; //#27630 + $_.tobin(); //#27630 + } //#27630 + $k[$j++] = $_.fnc1; //#27632 + $k[$j++] = "01111"; //#27632 + for (var _1y = 65; _1y <= 90; _1y += 1) { //#27632 + $k[$j++] = _1y; //#27632 + $k[$j++] = _1y - 1; //#27632 + $k[$j++] = 7; //#27632 + $_.tobin(); //#27632 + } //#27632 + for (var _1z = 97; _1z <= 122; _1z += 1) { //#27633 + $k[$j++] = _1z; //#27633 + $k[$j++] = _1z - 7; //#27633 + $k[$j++] = 7; //#27633 + $_.tobin(); //#27633 + } //#27633 + $k[$j++] = 33; //#27636 + $k[$j++] = "11101000"; //#27636 + $k[$j++] = 34; //#27636 + $k[$j++] = "11101001"; //#27636 + for (var _20 = 37; _20 <= 47; _20 += 1) { //#27636 + $k[$j++] = _20; //#27636 + $k[$j++] = _20 + 197; //#27636 + $k[$j++] = 8; //#27636 + $_.tobin(); //#27636 + } //#27636 + for (var _21 = 58; _21 <= 63; _21 += 1) { //#27637 + $k[$j++] = _21; //#27637 + $k[$j++] = _21 + 187; //#27637 + $k[$j++] = 8; //#27637 + $_.tobin(); //#27637 + } //#27637 + $k[$j++] = 95; //#27641 + $k[$j++] = "11111011"; //#27641 + $k[$j++] = 32; //#27641 + $k[$j++] = "11111100"; //#27641 + $k[$j++] = $_.lnumeric; //#27641 + $k[$j++] = "000"; //#27641 + $k[$j++] = $_.lalphanumeric; //#27641 + $k[$j++] = "00100"; //#27641 + $_.iso646 = $d(); //#27642 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27642 + bwipp_gs1_cc.__27644__ = 1; //#27642 + $_ = Object.getPrototypeOf($_); //#27642 + } //#27642 + if ($eq($_.method, "10")) { //#27679 + if ($eq($get($_.ais, 0), "11") || $eq($get($_.ais, 0), "17")) { //#27662 + var _2C = $get($_.vals, 0); //#27648 + var _2H = $strcpy($s(16), "0000000000000000"); //#27652 + var _2J = $cvrs($s(16), ($cvi($geti(_2C, 0, 2)) * 384) + ((($cvi($geti(_2C, 2, 2)) - 1) * 32) + $cvi($geti(_2C, 4, 2))), 2); //#27652 + $puti(_2H, 16 - _2J.length, _2J); //#27653 + $k[$j++] = _2H; //#27656 + $k[$j++] = Infinity; //#27654 + var _2K = $k[--$j]; //#27655 + var _2L = $k[--$j]; //#27655 + $k[$j++] = _2K; //#27655 + $k[$j++] = 1; //#27655 + $k[$j++] = 0; //#27655 + $forall(_2L, function() { //#27655 + var _2M = $k[--$j]; //#27655 + $k[$j++] = $f(_2M - 48); //#27655 + }); //#27655 + var _2P = $eq($get($_.ais, 0), "11") ? 0 : 1; //#27656 + $k[$j++] = _2P; //#27656 + $_.cdf = $a(); //#27657 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27658 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27659 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27660 + } else { //#27662 + $_.cdf = $a([1, 0, 1, 1]); //#27662 + } //#27662 + if ($_.ais.length != 0) { //#27676 + if ($eq($get($_.ais, 0), "10")) { //#27672 + $k[$j++] = Infinity; //#27666 + $forall($get($_.vals, 0)); //#27666 + $_.gpf = $a(); //#27666 + if ($_.ais.length > 1) { //#27667 + $k[$j++] = Infinity; //#27667 + $aload($_.gpf); //#27667 + $k[$j++] = $_.fnc1; //#27667 + $_.gpf = $a(); //#27667 + } //#27667 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27668 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27669 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27670 + } else { //#27672 + $_.gpf = $a([$_.fnc1]); //#27672 + } //#27672 + } else { //#27676 + $k[$j++] = Infinity; //#27675 + $aload($_.cdf); //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 0; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $k[$j++] = 1; //#27675 + $_.cdf = $a(); //#27675 + $_.gpf = $a([]); //#27676 + } //#27676 + $_.mode = "numeric"; //#27678 + } //#27678 + if ($eq($_.method, "11")) { //#27773 + $_.cdf = $a([1, 1]); //#27682 + $_.ai90 = $get($_.vals, 0); //#27683 + if ($f($_.npre + 1) != $_.ai90.length) { //#27687 + $k[$j++] = $geti($_.ai90, $f($_.npre + 1), $f($f($_.ai90.length - $_.npre) - 1)); //#27685 + } else { //#27687 + $k[$j++] = ""; //#27687 + } //#27687 + $_.ai90rem = $k[--$j]; //#27689 + $k[$j++] = 'nalpha'; //#27690 + $k[$j++] = 0; //#27690 + $forall($_.ai90rem, function() { //#27690 + var _3C = $k[--$j]; //#27690 + if ((_3C >= 65) && (_3C <= 90)) { //#27690 + var _3D = $k[--$j]; //#27690 + $k[$j++] = $f(_3D + 1); //#27690 + } //#27690 + }); //#27690 + var _3E = $k[--$j]; //#27690 + $_[$k[--$j]] = _3E; //#27690 + $k[$j++] = 'nnums'; //#27691 + $k[$j++] = 0; //#27691 + $forall($_.ai90rem, function() { //#27691 + var _3H = $k[--$j]; //#27691 + if ((_3H >= 48) && (_3H <= 57)) { //#27691 + var _3I = $k[--$j]; //#27691 + $k[$j++] = $f(_3I + 1); //#27691 + } //#27691 + }); //#27691 + var _3J = $k[--$j]; //#27691 + $_[$k[--$j]] = _3J; //#27691 + $k[$j++] = 'mode'; //#27692 + if ($gt($_.nalpha, $_.nnums)) { //#27692 + $k[$j++] = "alpha"; //#27692 + } else { //#27692 + if ($_.nalpha == 0) { //#27692 + $k[$j++] = "numeric"; //#27692 + } else { //#27692 + $k[$j++] = "alphanumeric"; //#27692 + } //#27692 + } //#27692 + var _3O = $k[--$j]; //#27692 + $_[$k[--$j]] = _3O; //#27692 + if ($f($_.nalpha + $_.nnums) != $_.ai90rem.length) { //#27693 + $_.mode = "alphanumeric"; //#27693 + } //#27693 + $k[$j++] = Infinity; //#27694 + $aload($_.cdf); //#27695 + if ($eq($_.mode, "alphanumeric")) { //#27696 + $k[$j++] = 0; //#27696 + } //#27696 + if ($eq($_.mode, "numeric")) { //#27697 + $k[$j++] = 1; //#27697 + $k[$j++] = 0; //#27697 + } //#27697 + if ($eq($_.mode, "alpha")) { //#27698 + $k[$j++] = 1; //#27698 + $k[$j++] = 1; //#27698 + } //#27698 + $_.cdf = $a(); //#27698 + $k[$j++] = 'ais1'; //#27700 + if ($_.ais.length > 1) { //#27700 + $k[$j++] = $get($_.ais, 1); //#27700 + } else { //#27700 + $k[$j++] = -1; //#27700 + } //#27700 + var _3b = $k[--$j]; //#27700 + $_[$k[--$j]] = _3b; //#27700 + $k[$j++] = 'vals1'; //#27701 + if ($_.vals.length > 1) { //#27701 + $k[$j++] = $get($_.vals, 1); //#27701 + } else { //#27701 + $k[$j++] = -1; //#27701 + } //#27701 + var _3g = $k[--$j]; //#27701 + $_[$k[--$j]] = _3g; //#27701 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27705 + $k[$j++] = Infinity; //#27703 + $aload($_.cdf); //#27703 + if ($eq($_.ais1, "21")) { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 0; //#27703 + } else { //#27703 + $k[$j++] = 1; //#27703 + $k[$j++] = 1; //#27703 + } //#27703 + $_.cdf = $a(); //#27703 + } else { //#27705 + $k[$j++] = Infinity; //#27705 + $aload($_.cdf); //#27705 + $k[$j++] = 0; //#27705 + $_.cdf = $a(); //#27705 + } //#27705 + $k[$j++] = 'nval'; //#27707 + if ($_.npre != 0) { //#27707 + $k[$j++] = $cvi($geti($_.ai90, 0, $_.npre)); //#27707 + } else { //#27707 + $k[$j++] = 0; //#27707 + } //#27707 + var _3t = $k[--$j]; //#27707 + $_[$k[--$j]] = _3t; //#27707 + $search("BDHIJKLNPQRSTVXZ", $geti($_.ai90, $_.npre, 1)); //#27708 + if ($k[--$j]) { //#27712 + var _3z = $k[--$j]; //#27709 + var _40 = $k[--$j]; //#27709 + $k[$j++] = _3z.length; //#27709 + $k[$j++] = _40; //#27709 + $j--; //#27709 + var _41 = $k[--$j]; //#27709 + var _42 = $k[--$j]; //#27709 + $k[$j++] = _41; //#27709 + $k[$j++] = _42; //#27709 + $j--; //#27709 + $_.aval = $k[--$j]; //#27710 + } else { //#27712 + $j--; //#27712 + $_.aval = -1; //#27712 + } //#27712 + if (($_.nval < 31) && ($_.aval != -1)) { //#27738 + var _47 = $strcpy($s(5), "00000"); //#27715 + var _4A = $cvrs($s(5), $_.nval, 2); //#27715 + $puti(_47, 5 - _4A.length, _4A); //#27716 + $k[$j++] = _47; //#27717 + $k[$j++] = Infinity; //#27717 + var _4B = $k[--$j]; //#27717 + var _4C = $k[--$j]; //#27717 + $k[$j++] = _4B; //#27717 + $forall(_4C, function() { //#27717 + var _4D = $k[--$j]; //#27717 + $k[$j++] = $f(_4D - 48); //#27717 + }); //#27717 + $_.nbits = $a(); //#27717 + var _4G = $strcpy($s(4), "0000"); //#27718 + var _4J = $cvrs($s(4), $_.aval, 2); //#27718 + $puti(_4G, 4 - _4J.length, _4J); //#27719 + $k[$j++] = _4G; //#27720 + $k[$j++] = Infinity; //#27720 + var _4K = $k[--$j]; //#27720 + var _4L = $k[--$j]; //#27720 + $k[$j++] = _4K; //#27720 + $forall(_4L, function() { //#27720 + var _4M = $k[--$j]; //#27720 + $k[$j++] = $f(_4M - 48); //#27720 + }); //#27720 + $_.abits = $a(); //#27720 + $k[$j++] = Infinity; //#27721 + $aload($_.cdf); //#27722 + $aload($_.nbits); //#27723 + $aload($_.abits); //#27724 + $_.cdf = $a(); //#27724 + } else { //#27738 + var _4T = $strcpy($s(10), "0000000000"); //#27727 + var _4W = $cvrs($s(10), $_.nval, 2); //#27727 + $puti(_4T, 10 - _4W.length, _4W); //#27728 + $k[$j++] = _4T; //#27729 + $k[$j++] = Infinity; //#27729 + var _4X = $k[--$j]; //#27729 + var _4Y = $k[--$j]; //#27729 + $k[$j++] = _4X; //#27729 + $forall(_4Y, function() { //#27729 + var _4Z = $k[--$j]; //#27729 + $k[$j++] = $f(_4Z - 48); //#27729 + }); //#27729 + $_.nbits = $a(); //#27729 + var _4c = $strcpy($s(5), "00000"); //#27730 + var _4h = $cvrs($s(5), $f($get($_.ai90, $_.npre) - 65), 2); //#27730 + $puti(_4c, 5 - _4h.length, _4h); //#27731 + $k[$j++] = _4c; //#27732 + $k[$j++] = Infinity; //#27732 + var _4i = $k[--$j]; //#27732 + var _4j = $k[--$j]; //#27732 + $k[$j++] = _4i; //#27732 + $forall(_4j, function() { //#27732 + var _4k = $k[--$j]; //#27732 + $k[$j++] = $f(_4k - 48); //#27732 + }); //#27732 + $_.abits = $a(); //#27732 + $k[$j++] = Infinity; //#27733 + $aload($_.cdf); //#27734 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $k[$j++] = 1; //#27736 + $aload($_.nbits); //#27736 + $aload($_.abits); //#27737 + $_.cdf = $a(); //#27737 + } //#27738 + if ($ne($_.mode, "alpha")) { //#27756 + $k[$j++] = Infinity; //#27741 + $forall($_.ai90rem); //#27741 + if ($_.ais.length > 1) { //#27741 + $k[$j++] = $_.fnc1; //#27741 + } //#27741 + $_.gpf = $a(); //#27741 + } else { //#27756 + $k[$j++] = Infinity; //#27743 + $forall($_.ai90rem); //#27743 + if ($_.ais.length > 1) { //#27743 + $k[$j++] = $_.fnc1; //#27743 + } //#27743 + $_.in = $a(); //#27743 + $_.out = $a($_.in.length * 6); //#27744 + $_.j = 0; //#27745 + for (var _53 = 0, _52 = $_.in.length - 1; _53 <= _52; _53 += 1) { //#27750 + var _57 = $get($_.alpha, $get($_.in, _53)); //#27747 + $k[$j++] = _57; //#27748 + $k[$j++] = _57; //#27748 + $k[$j++] = Infinity; //#27748 + var _58 = $k[--$j]; //#27748 + var _59 = $k[--$j]; //#27748 + $k[$j++] = _58; //#27748 + $forall(_59, function() { //#27748 + var _5A = $k[--$j]; //#27748 + $k[$j++] = $f(_5A - 48); //#27748 + }); //#27748 + $puti($_.out, $_.j, $a()); //#27748 + $_.j = $k[--$j].length + $_.j; //#27749 + } //#27749 + $k[$j++] = Infinity; //#27751 + $aload($_.cdf); //#27752 + $aload($geti($_.out, 0, $_.j)); //#27753 + $_.cdf = $a(); //#27753 + $_.gpf = $a([]); //#27755 + if ($_.ais.length > 1) { //#27756 + $_.mode = "numeric"; //#27756 + } //#27756 + } //#27756 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27758 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27759 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27760 + if ($_.ais.length != 0) { //#27772 + if ($eq($_.ais1, "21") || $eq($_.ais1, "8004")) { //#27771 + $k[$j++] = Infinity; //#27763 + $aload($_.gpf); //#27764 + $forall($_.vals1); //#27765 + $_.gpf = $a(); //#27765 + $_.ais = $geti($_.ais, 1, $_.ais.length - 1); //#27767 + $_.vals = $geti($_.vals, 1, $_.vals.length - 1); //#27768 + $_.fncs = $geti($_.fncs, 1, $_.fncs.length - 1); //#27769 + if ($_.ais.length != 0) { //#27770 + $k[$j++] = Infinity; //#27770 + $aload($_.gpf); //#27770 + $k[$j++] = $_.fnc1; //#27770 + $_.gpf = $a(); //#27770 + } //#27770 + } //#27770 + } //#27770 + } //#27770 + if ($eq($_.method, "0")) { //#27779 + $_.cdf = $a([0]); //#27776 + $_.gpf = $a([]); //#27777 + $_.mode = "numeric"; //#27778 + } //#27778 + for (var _5u = 0, _5t = $_.ais.length - 1; _5u <= _5t; _5u += 1) { //#27797 + $_.i = _5u; //#27783 + $_.ai = $get($_.ais, $_.i); //#27784 + $_.val = $get($_.vals, $_.i); //#27785 + var _64 = $a(($_.gpf.length + $_.ai.length) + $_.val.length); //#27786 + $puti(_64, 0, $_.gpf); //#27787 + $k[$j++] = _64; //#27788 + $k[$j++] = _64; //#27788 + $k[$j++] = $_.gpf.length; //#27788 + $k[$j++] = $_.ai; //#27788 + $k[$j++] = Infinity; //#27788 + var _68 = $k[--$j]; //#27788 + var _69 = $k[--$j]; //#27788 + $k[$j++] = _68; //#27788 + $forall(_69); //#27788 + var _6A = $a(); //#27788 + var _6B = $k[--$j]; //#27788 + $puti($k[--$j], _6B, _6A); //#27788 + var _6D = $k[--$j]; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = _6D; //#27789 + $k[$j++] = $_.gpf.length + $_.ai.length; //#27789 + $k[$j++] = $_.val; //#27789 + $k[$j++] = Infinity; //#27789 + var _6H = $k[--$j]; //#27789 + var _6I = $k[--$j]; //#27789 + $k[$j++] = _6H; //#27789 + $forall(_6I); //#27789 + var _6J = $a(); //#27789 + var _6K = $k[--$j]; //#27789 + $puti($k[--$j], _6K, _6J); //#27789 + $_.gpf = $k[--$j]; //#27790 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#27796 + var _6T = $a($_.gpf.length + 1); //#27792 + $puti(_6T, 0, $_.gpf); //#27793 + $put(_6T, $_.gpf.length, $_.fnc1); //#27794 + $_.gpf = _6T; //#27795 + } //#27795 + } //#27795 + if (!bwipp_gs1_cc.__27813__) { //#27813 + $_ = Object.create($_); //#27813 + var _6f = new Map([ ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] - ]); //#27488 - $_.bitcapsmaps = _6c; //#27490 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27490 - bwipp_gs1_cc.__27491__ = 1; //#27490 - $_ = Object.getPrototypeOf($_); //#27490 - } //#27490 + ]); //#27810 + $_.bitcapsmaps = _6f; //#27812 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27812 + bwipp_gs1_cc.__27813__ = 1; //#27812 + $_ = Object.getPrototypeOf($_); //#27812 + } //#27812 $_.rembits = function() { - $_.used = $k[--$j]; //#27494 - if ($ne($_.ccversion, "c")) { //#27517 - $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27496 - $k[$j++] = -1; //#27497 - $forall($_.bitcaps, function() { //#27497 - var _6m = $k[--$j]; //#27497 - $k[$j++] = _6m; //#27497 - if ($ge(_6m, $_.used)) { //#27497 - var _6o = $k[--$j]; //#27497 - var _6p = $k[--$j]; //#27497 - $k[$j++] = _6o; //#27497 - $k[$j++] = _6p; //#27497 - } //#27497 - $j--; //#27497 - }); //#27497 - var _6q = $k[--$j]; //#27498 - $k[$j++] = _6q; //#27498 - if (_6q != -1) { //#27498 - var _6s = $k[--$j]; //#27498 - $k[$j++] = $f(_6s - $_.used); //#27498 - } //#27498 - } else { //#27517 - var _6t = new Map([ + $_.used = $k[--$j]; //#27816 + if ($ne($_.ccversion, "c")) { //#27839 + $_.bitcaps = $get($get($_.bitcapsmaps, $_.ccversion), $f($_.cccolumns - 2)); //#27818 + $k[$j++] = -1; //#27819 + $forall($_.bitcaps, function() { //#27819 + var _6p = $k[--$j]; //#27819 + $k[$j++] = _6p; //#27819 + if ($ge(_6p, $_.used)) { //#27819 + var _6r = $k[--$j]; //#27819 + var _6s = $k[--$j]; //#27819 + $k[$j++] = _6r; //#27819 + $k[$j++] = _6s; //#27819 + } //#27819 + $j--; //#27819 + }); //#27819 + var _6t = $k[--$j]; //#27820 + $k[$j++] = _6t; //#27820 + if (_6t != -1) { //#27820 + var _6v = $k[--$j]; //#27820 + $k[$j++] = $f(_6v - $_.used); //#27820 + } //#27820 + } else { //#27839 + var _6w = new Map([ ["c", -1] - ]); //#27500 - var _6v = $get(_6t, $_.ccversion); //#27500 - var _6x = ~~Math.ceil($_.used / 8); //#27501 - $_.m = ((~~(_6x / 6)) * 5) + (_6x % 6); //#27501 - if ($_.m <= 40) { //#27502 - $k[$j++] = 8; //#27502 - } //#27502 - if (($_.m >= 41) && ($_.m <= 160)) { //#27503 - $k[$j++] = 16; //#27503 - } //#27503 - if (($_.m >= 161) && ($_.m <= 320)) { //#27504 - $k[$j++] = 32; //#27504 - } //#27504 - if (($_.m >= 321) && ($_.m <= 833)) { //#27505 - $k[$j++] = 64; //#27505 - } //#27505 - if ($_.m >= 834) { //#27506 - $k[$j++] = 32; //#27506 - } //#27506 - $_.eccws = $k[--$j]; //#27507 - $_.m = $f($f($_.m + $_.eccws) + 3); //#27508 - if ($_.cccolumns > 30) { //#27509 - $_.cccolumns = 30; //#27509 - } //#27509 - for (;;) { //#27513 - if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27511 - break; //#27511 - } //#27511 - $_.cccolumns = $_.cccolumns + 1; //#27512 - } //#27512 - $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27514 - if ($_.r < 3) { //#27515 - $_.r = 3; //#27515 - } //#27515 - var _7K = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27516 - $_.tgt = ($f(((~~(_7K / 5)) * 6) + (_7K % 5))) * 8; //#27516 - if ($_.used <= 8304) { //#27517 - $k[$j++] = $f($_.tgt - $_.used); //#27517 - } else { //#27517 - $k[$j++] = -1; //#27517 - } //#27517 - } //#27517 - var _7O = $k[--$j]; //#27519 - $k[$j++] = _7O; //#27532 - if (_7O == -1) { //#27532 - $j--; //#27520 - if ($eq($_.ccversion, "a")) { //#27528 - $_.ccversion = "b"; //#27522 - } else { //#27528 - if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27528 - $_.ccversion = "c"; //#27525 - $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27526 - } else { //#27528 - $_.ccversion = -1; //#27528 - } //#27528 - } //#27528 - $k[$j++] = $_.used; //#27531 - $_.rembits(); //#27531 - } //#27531 - }; //#27531 + ]); //#27822 + var _6y = $get(_6w, $_.ccversion); //#27822 + var _70 = ~~Math.ceil($_.used / 8); //#27823 + $_.m = ((~~(_70 / 6)) * 5) + (_70 % 6); //#27823 + if ($_.m <= 40) { //#27824 + $k[$j++] = 8; //#27824 + } //#27824 + if (($_.m >= 41) && ($_.m <= 160)) { //#27825 + $k[$j++] = 16; //#27825 + } //#27825 + if (($_.m >= 161) && ($_.m <= 320)) { //#27826 + $k[$j++] = 32; //#27826 + } //#27826 + if (($_.m >= 321) && ($_.m <= 833)) { //#27827 + $k[$j++] = 64; //#27827 + } //#27827 + if ($_.m >= 834) { //#27828 + $k[$j++] = 32; //#27828 + } //#27828 + $_.eccws = $k[--$j]; //#27829 + $_.m = $f($f($_.m + $_.eccws) + 3); //#27830 + if ($_.cccolumns > 30) { //#27831 + $_.cccolumns = 30; //#27831 + } //#27831 + for (;;) { //#27835 + if (((~~Math.ceil($_.m / $_.cccolumns)) <= 30) || ($_.cccolumns >= 30)) { //#27833 + break; //#27833 + } //#27833 + $_.cccolumns = $_.cccolumns + 1; //#27834 + } //#27834 + $_.r = ~~Math.ceil($_.m / $_.cccolumns); //#27836 + if ($_.r < 3) { //#27837 + $_.r = 3; //#27837 + } //#27837 + var _7N = $f(($f(($_.cccolumns * $_.r) - $_.eccws)) - 3); //#27838 + $_.tgt = ($f(((~~(_7N / 5)) * 6) + (_7N % 5))) * 8; //#27838 + if ($_.used <= 8304) { //#27839 + $k[$j++] = $f($_.tgt - $_.used); //#27839 + } else { //#27839 + $k[$j++] = -1; //#27839 + } //#27839 + } //#27839 + var _7R = $k[--$j]; //#27841 + $k[$j++] = _7R; //#27854 + if (_7R == -1) { //#27854 + $j--; //#27842 + if ($eq($_.ccversion, "a")) { //#27850 + $_.ccversion = "b"; //#27844 + } else { //#27850 + if ($eq($_.ccversion, "b") && $eq($_.lintype, "gs1-128")) { //#27850 + $_.ccversion = "c"; //#27847 + $_.cccolumns = ~~(($_.linwidth - 52) / 17); //#27848 + } else { //#27850 + $_.ccversion = -1; //#27850 + } //#27850 + } //#27850 + $k[$j++] = $_.used; //#27853 + $_.rembits(); //#27853 + } //#27853 + }; //#27853 $_.encode = function() { - var _7U = $k[--$j]; //#27536 - $k[$j++] = _7U; //#27536 - if ($ne(_7U, 'raw')) { //#27536 - var _7V = $k[--$j]; //#27536 - var _7X = $get(_7V, $k[--$j]); //#27536 - $k[$j++] = _7X; //#27536 - } else { //#27536 - $j--; //#27536 - } //#27536 - $k[$j++] = Infinity; //#27537 - var _7Y = $k[--$j]; //#27537 - var _7Z = $k[--$j]; //#27537 - $k[$j++] = _7Y; //#27537 - $forall(_7Z, function() { //#27537 - var _7a = $k[--$j]; //#27537 - $k[$j++] = $f(_7a - 48); //#27537 - }); //#27537 - var _7b = $a(); //#27537 - $puti($_.gpfenc, $_.j, _7b); //#27539 - $_.j = _7b.length + $_.j; //#27540 - }; //#27540 - $k[$j++] = Infinity; //#27544 - for (var _7g = 0, _7h = $_.gpf.length; _7g < _7h; _7g++) { //#27544 - $k[$j++] = 0; //#27544 - } //#27544 - $k[$j++] = 0; //#27544 - $k[$j++] = -1; //#27544 - $_.numericruns = $a(); //#27544 - $k[$j++] = Infinity; //#27545 - for (var _7k = 0, _7l = $_.gpf.length; _7k < _7l; _7k++) { //#27545 - $k[$j++] = 0; //#27545 - } //#27545 - $k[$j++] = 0; //#27545 - $_.alphanumericruns = $a(); //#27545 - $k[$j++] = Infinity; //#27546 - for (var _7o = 0, _7p = $_.gpf.length; _7o < _7p; _7o++) { //#27546 - $k[$j++] = 0; //#27546 - } //#27546 - $k[$j++] = 9999; //#27546 - $_.nextiso646only = $a(); //#27546 - for (var _7s = $_.gpf.length - 1; _7s >= 0; _7s -= 1) { //#27568 - $_.i = _7s; //#27548 - var _7x = $strcpy($s(2), "00"); //#27550 - var _80 = $get($_.gpf, $_.i); //#27551 - $k[$j++] = $get($_.gpf, $_.i); //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = _7x; //#27551 - $k[$j++] = 0; //#27551 - $k[$j++] = _80; //#27551 - if (_80 == $_.fnc1) { //#27551 - $j--; //#27551 - $k[$j++] = 94; //#27551 - } //#27551 - var _82 = $k[--$j]; //#27551 - var _83 = $k[--$j]; //#27551 - $put($k[--$j], _83, _82); //#27551 - if ($_.i < ($_.gpf.length - 1)) { //#27552 - var _87 = $k[--$j]; //#27552 - var _8A = $get($_.gpf, $_.i + 1); //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = _87; //#27552 - $k[$j++] = 1; //#27552 - $k[$j++] = _8A; //#27552 - if (_8A == $_.fnc1) { //#27552 - $j--; //#27552 - $k[$j++] = 94; //#27552 - } //#27552 - var _8C = $k[--$j]; //#27552 - var _8D = $k[--$j]; //#27552 - $put($k[--$j], _8D, _8C); //#27552 - } //#27552 - var _8H = $get($_.numeric, $k[--$j]) !== undefined; //#27553 - if (_8H) { //#27556 - $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27554 - } else { //#27556 - $put($_.numericruns, $_.i, 0); //#27556 - } //#27556 - var _8P = $k[--$j]; //#27558 - var _8R = $get($_.alphanumeric, _8P) !== undefined; //#27558 - $k[$j++] = _8P; //#27562 - if (_8R) { //#27561 - $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27559 - } else { //#27561 - $put($_.alphanumericruns, $_.i, 0); //#27561 - } //#27561 - var _8Z = $k[--$j]; //#27563 - var _8b = $get($_.iso646, _8Z) !== undefined; //#27563 - var _8d = $get($_.alphanumeric, _8Z) !== undefined; //#27563 - if (_8b && (!_8d)) { //#27566 - $put($_.nextiso646only, $_.i, 0); //#27564 - } else { //#27566 - $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27566 - } //#27566 - } //#27566 - $_.gpfenc = $a(8304); //#27571 - $_.i = 0; //#27572 - $_.j = 0; //#27572 - for (;;) { //#27662 - if ($_.i == $_.gpf.length) { //#27574 - break; //#27574 - } //#27574 - for (;;) { //#27661 - if ($eq($_.mode, "numeric")) { //#27610 - if ($_.i <= ($_.gpf.length - 2)) { //#27607 - var _8r = $s(2); //#27579 - var _8u = $get($_.gpf, $_.i); //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = _8r; //#27580 - $k[$j++] = 0; //#27580 - $k[$j++] = _8u; //#27580 - if (_8u == $_.fnc1) { //#27580 - $j--; //#27580 - $k[$j++] = 94; //#27580 - } //#27580 - var _8w = $k[--$j]; //#27580 - var _8x = $k[--$j]; //#27580 - $put($k[--$j], _8x, _8w); //#27580 - var _8z = $k[--$j]; //#27581 - var _92 = $get($_.gpf, $_.i + 1); //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = _8z; //#27581 - $k[$j++] = 1; //#27581 - $k[$j++] = _92; //#27581 - if (_92 == $_.fnc1) { //#27581 - $j--; //#27581 - $k[$j++] = 94; //#27581 - } //#27581 - var _94 = $k[--$j]; //#27581 - var _95 = $k[--$j]; //#27581 - $put($k[--$j], _95, _94); //#27581 - var _97 = $k[--$j]; //#27582 - var _99 = $get($_.numeric, _97) !== undefined; //#27582 - $k[$j++] = _97; //#27586 - if (_99) { //#27586 - $k[$j++] = $_.numeric; //#27583 - $_.encode(); //#27583 - $_.i = $_.i + 2; //#27584 - break; //#27585 - } //#27585 - $j--; //#27587 - $k[$j++] = $_.lalphanumeric; //#27588 - $k[$j++] = $_.numeric; //#27588 - $_.encode(); //#27588 - $_.mode = "alphanumeric"; //#27589 - break; //#27590 - } else { //#27607 - var _9G = $get($_.gpf, $_.i); //#27592 - if ((_9G < 48) || (_9G > 57)) { //#27596 - $k[$j++] = $_.lalphanumeric; //#27593 - $k[$j++] = $_.numeric; //#27593 - $_.encode(); //#27593 - $_.mode = "alphanumeric"; //#27594 - break; //#27595 - } //#27595 - $k[$j++] = 'rem'; //#27597 - $k[$j++] = $_.cdf.length + $_.j; //#27597 - $_.rembits(); //#27597 - var _9L = $k[--$j]; //#27597 - $_[$k[--$j]] = _9L; //#27597 - if (($_.rem >= 4) && ($_.rem <= 6)) { //#27607 - var _9S = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27599 - var _9X = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27600 - $puti(_9S, 4 - _9X.length, _9X); //#27601 - $k[$j++] = _9S; //#27601 - $k[$j++] = 'raw'; //#27601 - $_.encode(); //#27601 - $_.i = $_.i + 1; //#27602 - break; //#27603 - } else { //#27607 - var _9Z = $s(2); //#27605 - $put(_9Z, 0, $get($_.gpf, $_.i)); //#27605 - $put(_9Z, 1, 94); //#27605 - $k[$j++] = _9Z; //#27605 - $k[$j++] = $_.numeric; //#27605 - $_.encode(); //#27605 - $_.i = $_.i + 1; //#27606 - break; //#27607 - } //#27607 - } //#27607 - } //#27607 - if ($eq($_.mode, "alphanumeric")) { //#27637 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27618 - $k[$j++] = $_.fnc1; //#27614 - $k[$j++] = $_.alphanumeric; //#27614 - $_.encode(); //#27614 - $_.mode = "numeric"; //#27615 - $_.i = $_.i + 1; //#27616 - break; //#27617 - } //#27617 - var _9p = $get($_.gpf, $_.i); //#27619 - var _9r = $get($_.iso646, _9p) !== undefined; //#27619 - var _9t = $get($_.alphanumeric, _9p) !== undefined; //#27619 - if (_9r && (!_9t)) { //#27623 - $k[$j++] = $_.liso646; //#27620 - $k[$j++] = $_.alphanumeric; //#27620 - $_.encode(); //#27620 - $_.mode = "iso646"; //#27621 - break; //#27622 - } //#27622 - if ($get($_.numericruns, $_.i) >= 6) { //#27628 - $k[$j++] = $_.lnumeric; //#27625 - $k[$j++] = $_.alphanumeric; //#27625 - $_.encode(); //#27625 - $_.mode = "numeric"; //#27626 - break; //#27627 - } //#27627 - var _A3 = $get($_.numericruns, $_.i); //#27629 - if ((_A3 >= 4) && ($f(_A3 + $_.i) == $_.gpf.length)) { //#27633 - $k[$j++] = $_.lnumeric; //#27630 - $k[$j++] = $_.alphanumeric; //#27630 - $_.encode(); //#27630 - $_.mode = "numeric"; //#27631 - break; //#27632 - } //#27632 - $k[$j++] = $get($_.gpf, $_.i); //#27634 - $k[$j++] = $_.alphanumeric; //#27634 - $_.encode(); //#27634 - $_.i = $_.i + 1; //#27635 - break; //#27636 - } //#27636 - if ($eq($_.mode, "iso646")) { //#27659 - if ($get($_.gpf, $_.i) == $_.fnc1) { //#27645 - $k[$j++] = $_.fnc1; //#27641 - $k[$j++] = $_.iso646; //#27641 - $_.encode(); //#27641 - $_.mode = "numeric"; //#27642 - $_.i = $_.i + 1; //#27643 - break; //#27644 - } //#27644 - if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27650 - $k[$j++] = $_.lnumeric; //#27647 - $k[$j++] = $_.iso646; //#27647 - $_.encode(); //#27647 - $_.mode = "numeric"; //#27648 - break; //#27649 - } //#27649 - if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27655 - $k[$j++] = $_.lalphanumeric; //#27652 - $k[$j++] = $_.iso646; //#27652 - $_.encode(); //#27652 - $_.mode = "alphanumeric"; //#27653 - break; //#27654 - } //#27654 - $k[$j++] = $get($_.gpf, $_.i); //#27656 - $k[$j++] = $_.iso646; //#27656 - $_.encode(); //#27656 - $_.i = $_.i + 1; //#27657 - break; //#27658 - } //#27658 - } //#27658 - } //#27658 - $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27663 - $k[$j++] = 'pad'; //#27666 - $k[$j++] = $_.cdf.length + $_.gpf.length; //#27666 - $_.rembits(); //#27666 - var _Am = $a($k[--$j]); //#27666 - $_[$k[--$j]] = _Am; //#27666 - if ($_.pad.length > 0) { //#27678 - for (var _Ar = 0, _Aq = $_.pad.length - 1; _Ar <= _Aq; _Ar += 5) { //#27671 - $_.i = _Ar; //#27669 - var _As = $_.pad; //#27670 - var _At = $_.i; //#27670 - var _Au = $a([0, 0, 1, 0, 0]); //#27670 - var _Av = $_.pad; //#27670 - var _Aw = $_.i; //#27670 - var _Ax = 5; //#27670 - var _Ay = _Av.length - _Aw; //#27670 - if ((_Av.length - _Aw) > 5) { //#27670 - var _ = _Ax; //#27670 - _Ax = _Ay; //#27670 - _Ay = _; //#27670 - } //#27670 - $puti(_As, _At, $geti(_Au, 0, _Ay)); //#27670 - } //#27670 - if ($eq($_.mode, "numeric")) { //#27674 - $k[$j++] = Infinity; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $k[$j++] = 0; //#27673 - $aload($_.pad); //#27673 - $_.pad = $geti($a(), 0, $_.pad.length); //#27673 - } //#27673 - if ($eq($_.mode, "alpha")) { //#27677 - $k[$j++] = Infinity; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 1; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $k[$j++] = 0; //#27676 - $aload($_.pad); //#27676 - $_.pad = $geti($a(), 0, $_.pad.length); //#27676 - } //#27676 - } //#27676 - $k[$j++] = Infinity; //#27684 - $aload($_.cdf); //#27682 - $aload($_.gpf); //#27683 - $aload($_.pad); //#27684 - $_.bits = $a(); //#27684 - if (!bwipp_gs1_cc.__27702__) { //#27702 - $_ = Object.create($_); //#27702 - $k[$j++] = Infinity; //#27690 - $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#27690 - for (var _BF = 0, _BG = 68; _BF < _BG; _BF++) { //#27690 - $k[$j++] = $a(7); //#27690 - } //#27690 - $_.pwr928 = $a(); //#27690 - for (var _BJ = 1; _BJ <= 68; _BJ += 1) { //#27701 - $_.j = _BJ; //#27693 - $_.v = 0; //#27694 - for (var _BK = 6; _BK >= 1; _BK -= 1) { //#27699 - $_.i = _BK; //#27696 - $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#27697 - $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#27698 - } //#27698 - $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#27700 - } //#27700 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#27700 - bwipp_gs1_cc.__27702__ = 1; //#27700 - $_ = Object.getPrototypeOf($_); //#27700 - } //#27700 - if ($_.ccversion == "a") { //#27744 - $k[$j++] = Infinity; //#27705 - for (var _Bg = 0, _Bh = 28; _Bg < _Bh; _Bg++) { //#27705 - $k[$j++] = 0; //#27705 - } //#27705 - $_.cws = $a(); //#27705 - $_.b = 0; //#27706 - $_.c = 0; //#27706 - for (;;) { //#27730 - if ($_.b == $_.bits.length) { //#27708 - break; //#27708 - } //#27708 - var _Bl = $_.bits; //#27709 - var _Bm = $_.b; //#27709 - var _Bn = $_.bits; //#27709 - var _Bo = $_.b; //#27709 - var _Bp = _Bn.length - _Bo; //#27709 - var _Bq = 69; //#27709 - if (69 > (_Bn.length - _Bo)) { //#27709 - var _ = _Bp; //#27709 - _Bp = _Bq; //#27709 - _Bq = _; //#27709 - } //#27709 - $_.bs = $geti(_Bl, _Bm, _Bq); //#27709 - $_.bsl = $_.bs.length; //#27710 - $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#27711 - $_.csl = $_.cs.length; //#27712 - for (var _C0 = 0, _Bz = $_.bsl - 1; _C0 <= _Bz; _C0 += 1) { //#27722 - $_.i = _C0; //#27714 - for (var _C3 = 0, _C2 = $_.csl - 1; _C3 <= _C2; _C3 += 1) { //#27721 - $_.j = _C3; //#27716 - var _C4 = $_.cs; //#27717 - var _C5 = $_.j; //#27717 - $put(_C4, _C5, $f($get(_C4, _C5) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#27720 - } //#27720 - } //#27720 - for (var _CI = $_.csl - 1; _CI >= 1; _CI -= 1) { //#27727 - $_.i = _CI; //#27724 - var _CJ = $_.cs; //#27725 - var _CK = $_.i; //#27725 - $put(_CJ, _CK - 1, $f($get(_CJ, _CK - 1) + (~~($get($_.cs, $_.i) / 928)))); //#27725 - var _CP = $_.cs; //#27726 - var _CQ = $_.i; //#27726 - $put(_CP, _CQ, $get(_CP, _CQ) % 928); //#27726 - } //#27726 - $_.b = $_.b + $_.bsl; //#27728 - $_.c = $_.c + $_.csl; //#27729 - } //#27729 - $_.cws = $geti($_.cws, 0, $_.c); //#27731 - $_.barcode = $s($_.cws.length * 4); //#27732 - for (var _Cd = 0, _Cc = $_.cws.length - 1; _Cd <= _Cc; _Cd += 1) { //#27738 - $_.i = _Cd; //#27734 - var _Cf = $strcpy($s(4), "^000"); //#27735 - var _Ck = $cvrs($s(4), $get($_.cws, $_.i), 10); //#27735 - $puti(_Cf, 4 - _Ck.length, _Ck); //#27736 - $puti($_.barcode, $_.i * 4, _Cf); //#27737 - } //#27737 - delete $_.options["parse"]; //#27739 - $put($_.options, "dontdraw", true); //#27740 - $put($_.options, "cca", true); //#27741 - $put($_.options, "columns", $_.cccolumns); //#27742 - $k[$j++] = 'args'; //#27743 - $k[$j++] = $_.barcode; //#27743 - $k[$j++] = $_.options; //#27743 - bwipp_micropdf417(); //#27743 - var _Cu = $k[--$j]; //#27743 - $_[$k[--$j]] = _Cu; //#27743 - } //#27743 - if ($_.ccversion == "b") { //#27758 - $_.barcode = $s(~~($_.bits.length / 8)); //#27747 - for (var _D1 = 0, _D0 = $_.barcode.length - 1; _D1 <= _D0; _D1 += 1) { //#27752 - $_.i = _D1; //#27749 - var _D4 = $geti($_.bits, $_.i * 8, 8); //#27750 - $k[$j++] = 0; //#27750 - for (var _D5 = 0, _D6 = _D4.length; _D5 < _D6; _D5++) { //#27750 - var _D8 = $k[--$j]; //#27750 - $k[$j++] = $f(_D8 + $get(_D4, _D5)) * 2; //#27750 - } //#27750 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27751 - } //#27751 - delete $_.options["parse"]; //#27753 - $put($_.options, "dontdraw", true); //#27754 - $put($_.options, "ccb", true); //#27755 - $put($_.options, "columns", $_.cccolumns); //#27756 - $k[$j++] = 'args'; //#27757 - $k[$j++] = $_.barcode; //#27757 - $k[$j++] = $_.options; //#27757 - bwipp_micropdf417(); //#27757 - var _DJ = $k[--$j]; //#27757 - $_[$k[--$j]] = _DJ; //#27757 - } //#27757 - if ($_.ccversion == "c") { //#27773 - $_.barcode = $s(~~($_.bits.length / 8)); //#27761 - for (var _DQ = 0, _DP = $_.barcode.length - 1; _DQ <= _DP; _DQ += 1) { //#27766 - $_.i = _DQ; //#27763 - var _DT = $geti($_.bits, $_.i * 8, 8); //#27764 - $k[$j++] = 0; //#27764 - for (var _DU = 0, _DV = _DT.length; _DU < _DV; _DU++) { //#27764 - var _DX = $k[--$j]; //#27764 - $k[$j++] = $f(_DX + $get(_DT, _DU)) * 2; //#27764 - } //#27764 - $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#27765 - } //#27765 - delete $_.options["parse"]; //#27767 - $put($_.options, "dontdraw", true); //#27768 - $put($_.options, "ccc", true); //#27769 - $put($_.options, "columns", $_.cccolumns); //#27770 - $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#27771 - $k[$j++] = 'args'; //#27772 - $k[$j++] = $_.barcode; //#27772 - $k[$j++] = $_.options; //#27772 - bwipp_pdf417(); //#27772 - var _Dk = $k[--$j]; //#27772 - $_[$k[--$j]] = _Dk; //#27772 - } //#27772 - $k[$j++] = $_.args; //#27776 - if (!$_.dontdraw) { //#27776 - bwipp_renmatrix(); //#27776 - } //#27776 - $_ = Object.getPrototypeOf($_); //#27778 - $_ = Object.getPrototypeOf($_); //#27780 -} - -function bwipp_ean13composite() { - $_ = Object.create($_); //#27812 - $_.dontdraw = false; //#27815 - $_.usematrix = false; //#27816 - $_.parse = false; //#27817 - $_.dontlint = false; //#27818 - $_.lintreqs = true; //#27819 - $k[$j++] = $_; //#27821 - bwipp_processoptions(); //#27821 - $_.options = $k[--$j]; //#27821 - $_.barcode = $k[--$j]; //#27822 - if ($_.dontdraw) { //#27824 - $_.usematrix = true; //#27824 - } //#27824 - $search($_.barcode, "|"); //#27827 - if ($k[--$j]) { //#27832 - $_.linear = $k[--$j]; //#27828 - $j--; //#27829 - $_.comp = $k[--$j]; //#27830 - } else { //#27832 - $j--; //#27832 - $k[$j++] = 'bwipp.missingCompositeComponent#27832'; //#27832 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27832 - bwipp_raiseerror(); //#27832 - } //#27832 - $put($_.options, "lintype", "ean13"); //#27835 - $put($_.options, "inkspread", "0"); //#27836 - $put($_.options, "dontdraw", true); //#27837 - $put($_.options, "dontlint", true); //#27838 - var _C = $s($_.comp.length + 18); //#27841 - $puti(_C, 0, "(01)00000000000000"); //#27842 - $puti(_C, 18, $_.comp); //#27843 - $k[$j++] = _C; //#27844 - $k[$j++] = 'ai'; //#27844 - bwipp_gs1process(); //#27844 - $j -= 3; //#27844 - $k[$j++] = $_.linear; //#27847 - $k[$j++] = $_.options; //#27847 - bwipp_ean13(); //#27847 - if (!$_.usematrix) { //#27937 - $$.save(); //#27849 - bwipp_renlinear(); //#27851 - $$.rmoveto(-1, 72); //#27854 - $k[$j++] = Infinity; //#27865 - $k[$j++] = Infinity; //#27859 - $k[$j++] = 0; //#27857 - $k[$j++] = 1; //#27857 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#27857 - $k[$j++] = 0; //#27857 - } //#27857 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - $k[$j++] = 1; //#27858 - $k[$j++] = 0; //#27858 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#27858 - $k[$j++] = 0; //#27858 + var _7X = $k[--$j]; //#27858 + $k[$j++] = _7X; //#27858 + if ($ne(_7X, 'raw')) { //#27858 + var _7Y = $k[--$j]; //#27858 + var _7a = $get(_7Y, $k[--$j]); //#27858 + $k[$j++] = _7a; //#27858 + } else { //#27858 + $j--; //#27858 } //#27858 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - $k[$j++] = 1; //#27859 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#27859 - $k[$j++] = 0; //#27859 - } //#27859 - $k[$j++] = 1; //#27859 - $k[$j++] = 0; //#27859 - var _N = $a(); //#27859 - $k[$j++] = 'ren'; //#27865 - $k[$j++] = bwipp_renmatrix; //#27865 - $k[$j++] = 'pixs'; //#27865 - $k[$j++] = _N; //#27865 - $k[$j++] = 'pixx'; //#27865 - $k[$j++] = 97; //#27865 - $k[$j++] = 'pixy'; //#27865 - $k[$j++] = 3; //#27865 - $k[$j++] = 'height'; //#27865 - $k[$j++] = 6 / 72; //#27865 - $k[$j++] = 'width'; //#27865 - $k[$j++] = 97 / 72; //#27865 - $k[$j++] = 'opt'; //#27865 - $k[$j++] = $_.options; //#27865 - var _P = $d(); //#27865 - $k[$j++] = _P; //#27866 - bwipp_renmatrix(); //#27866 - $$.rmoveto(-2, 6); //#27869 - $k[$j++] = $_.comp; //#27869 - $k[$j++] = $_.options; //#27869 - bwipp_gs1_cc(); //#27869 - bwipp_renmatrix(); //#27869 - $$.restore(); //#27871 - } else { //#27937 - $_.linsym = $k[--$j]; //#27873 - $_.sbs = $get($_.linsym, 'sbs'); //#27874 - $_.bhs = $get($_.linsym, 'bhs'); //#27875 - $_.bbs = $get($_.linsym, 'bbs'); //#27876 - $k[$j++] = 'linwidth'; //#27877 - $k[$j++] = 0; //#27877 - $forall($_.sbs, function() { //#27877 - var _a = $k[--$j]; //#27877 - var _b = $k[--$j]; //#27877 - $k[$j++] = $f(_b + $cvi(_a)); //#27877 - }); //#27877 - var _c = $k[--$j]; //#27877 - $_[$k[--$j]] = _c; //#27877 - $k[$j++] = 'compsym'; //#27879 - $k[$j++] = $_.comp; //#27879 - $k[$j++] = $_.options; //#27879 - bwipp_gs1_cc(); //#27879 - var _g = $k[--$j]; //#27879 - $_[$k[--$j]] = _g; //#27879 - $_.ccpixs = $get($_.compsym, 'pixs'); //#27880 - $_.ccpixx = $get($_.compsym, 'pixx'); //#27881 - $k[$j++] = Infinity; //#27883 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#27883 - $k[$j++] = 0; //#27883 + $k[$j++] = Infinity; //#27859 + var _7b = $k[--$j]; //#27859 + var _7c = $k[--$j]; //#27859 + $k[$j++] = _7b; //#27859 + $forall(_7c, function() { //#27859 + var _7d = $k[--$j]; //#27859 + $k[$j++] = $f(_7d - 48); //#27859 + }); //#27859 + var _7e = $a(); //#27859 + $puti($_.gpfenc, $_.j, _7e); //#27861 + $_.j = _7e.length + $_.j; //#27862 + }; //#27862 + $k[$j++] = Infinity; //#27866 + for (var _7j = 0, _7k = $_.gpf.length; _7j < _7k; _7j++) { //#27866 + $k[$j++] = 0; //#27866 + } //#27866 + $k[$j++] = 0; //#27866 + $k[$j++] = -1; //#27866 + $_.numericruns = $a(); //#27866 + $k[$j++] = Infinity; //#27867 + for (var _7n = 0, _7o = $_.gpf.length; _7n < _7o; _7n++) { //#27867 + $k[$j++] = 0; //#27867 + } //#27867 + $k[$j++] = 0; //#27867 + $_.alphanumericruns = $a(); //#27867 + $k[$j++] = Infinity; //#27868 + for (var _7r = 0, _7s = $_.gpf.length; _7r < _7s; _7r++) { //#27868 + $k[$j++] = 0; //#27868 + } //#27868 + $k[$j++] = 9999; //#27868 + $_.nextiso646only = $a(); //#27868 + for (var _7v = $_.gpf.length - 1; _7v >= 0; _7v -= 1) { //#27890 + $_.i = _7v; //#27870 + var _80 = $strcpy($s(2), "00"); //#27872 + var _83 = $get($_.gpf, $_.i); //#27873 + $k[$j++] = $get($_.gpf, $_.i); //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = _80; //#27873 + $k[$j++] = 0; //#27873 + $k[$j++] = _83; //#27873 + if (_83 == $_.fnc1) { //#27873 + $j--; //#27873 + $k[$j++] = 94; //#27873 + } //#27873 + var _85 = $k[--$j]; //#27873 + var _86 = $k[--$j]; //#27873 + $put($k[--$j], _86, _85); //#27873 + if ($_.i < ($_.gpf.length - 1)) { //#27874 + var _8A = $k[--$j]; //#27874 + var _8D = $get($_.gpf, $_.i + 1); //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = _8A; //#27874 + $k[$j++] = 1; //#27874 + $k[$j++] = _8D; //#27874 + if (_8D == $_.fnc1) { //#27874 + $j--; //#27874 + $k[$j++] = 94; //#27874 + } //#27874 + var _8F = $k[--$j]; //#27874 + var _8G = $k[--$j]; //#27874 + $put($k[--$j], _8G, _8F); //#27874 + } //#27874 + var _8K = $get($_.numeric, $k[--$j]) !== undefined; //#27875 + if (_8K) { //#27878 + $put($_.numericruns, $_.i, $f($get($_.numericruns, $_.i + 2) + 2)); //#27876 + } else { //#27878 + $put($_.numericruns, $_.i, 0); //#27878 + } //#27878 + var _8S = $k[--$j]; //#27880 + var _8U = $get($_.alphanumeric, _8S) !== undefined; //#27880 + $k[$j++] = _8S; //#27884 + if (_8U) { //#27883 + $put($_.alphanumericruns, $_.i, $f($get($_.alphanumericruns, $_.i + 1) + 1)); //#27881 + } else { //#27883 + $put($_.alphanumericruns, $_.i, 0); //#27883 } //#27883 - $_.linpad = $a(); //#27883 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#27885 - if ($_.diff > 0) { //#27891 - $k[$j++] = Infinity; //#27887 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#27887 - $k[$j++] = 0; //#27887 - } //#27887 - $_.ccrpad = $a(); //#27887 - $_.pixx = $f($_.ccpixx + $_.diff); //#27888 - } else { //#27891 - $_.ccrpad = $a(0); //#27890 - $_.pixx = $_.ccpixx; //#27891 - } //#27891 - $k[$j++] = Infinity; //#27919 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#27898 - $_.i = _15; //#27896 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#27897 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#27897 - $aload($_.ccrpad); //#27897 - } //#27897 - } //#27897 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#27899 - $aload($_.linpad); //#27899 - $k[$j++] = 0; //#27899 - $k[$j++] = 1; //#27899 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#27899 - $k[$j++] = 0; //#27899 - } //#27899 - $k[$j++] = 1; //#27899 - $k[$j++] = 0; //#27899 - $aload($_.ccrpad); //#27899 - } //#27899 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#27900 - $aload($_.linpad); //#27900 - $k[$j++] = 1; //#27900 - $k[$j++] = 0; //#27900 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#27900 - $k[$j++] = 0; //#27900 - } //#27900 - $k[$j++] = 0; //#27900 - $k[$j++] = 1; //#27900 - $aload($_.ccrpad); //#27900 - } //#27900 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#27901 - $aload($_.linpad); //#27901 - $k[$j++] = 0; //#27901 - $k[$j++] = 1; //#27901 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#27901 - $k[$j++] = 0; //#27901 - } //#27901 - $k[$j++] = 1; //#27901 - $k[$j++] = 0; //#27901 - $aload($_.ccrpad); //#27901 - } //#27901 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#27920 - $_.y = _1W; //#27903 - $aload($_.linpad); //#27904 - $k[$j++] = 0; //#27918 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#27918 - $_.i = _1a; //#27907 - if (($_.i % 2) == 0) { //#27916 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#27910 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#27913 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#27911 - $k[$j++] = 0; //#27911 - } //#27911 - } else { //#27913 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#27913 - $k[$j++] = 1; //#27913 - } //#27913 - } //#27913 - } else { //#27916 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#27916 - $k[$j++] = 0; //#27916 - } //#27916 - } //#27916 - } //#27916 - $k[$j++] = 0; //#27919 - } //#27919 - $_.pixs = $a(); //#27919 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#27923 - var _29 = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#27931 - $k[$j++] = _29; //#27938 - if (!$_.dontdraw) { //#27938 - $$.save(); //#27935 - bwipp_renmatrix(); //#27936 - $$.restore(); //#27937 - } //#27937 - } //#27937 - $_ = Object.getPrototypeOf($_); //#27941 -} - -function bwipp_ean8composite() { - $_ = Object.create($_); //#27973 - $_.dontdraw = false; //#27976 - $_.usematrix = false; //#27977 - $_.parse = false; //#27978 - $_.dontlint = false; //#27979 - $_.lintreqs = true; //#27980 - $k[$j++] = $_; //#27982 - bwipp_processoptions(); //#27982 - $_.options = $k[--$j]; //#27982 - $_.barcode = $k[--$j]; //#27983 - if ($_.dontdraw) { //#27985 - $_.usematrix = true; //#27985 - } //#27985 - $search($_.barcode, "|"); //#27988 - if ($k[--$j]) { //#27993 - $_.linear = $k[--$j]; //#27989 - $j--; //#27990 - $_.comp = $k[--$j]; //#27991 - } else { //#27993 - $j--; //#27993 - $k[$j++] = 'bwipp.missingCompositeComponent#27993'; //#27993 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#27993 - bwipp_raiseerror(); //#27993 - } //#27993 - $put($_.options, "lintype", "ean8"); //#27997 - $put($_.options, "inkspread", "0"); //#27998 - $put($_.options, "dontdraw", true); //#27999 - $put($_.options, "dontlint", true); //#28000 - var _C = $s($_.comp.length + 18); //#28003 - $puti(_C, 0, "(01)00000000000000"); //#28004 - $puti(_C, 18, $_.comp); //#28005 - $k[$j++] = _C; //#28006 - $k[$j++] = 'ai'; //#28006 - bwipp_gs1process(); //#28006 - $j -= 3; //#28006 - $k[$j++] = $_.linear; //#28009 - $k[$j++] = $_.options; //#28009 - bwipp_ean8(); //#28009 - if (!$_.usematrix) { //#28101 - $$.save(); //#28011 - bwipp_renlinear(); //#28013 - $$.rmoveto(-1, 72); //#28016 + var _8c = $k[--$j]; //#27885 + var _8e = $get($_.iso646, _8c) !== undefined; //#27885 + var _8g = $get($_.alphanumeric, _8c) !== undefined; //#27885 + if (_8e && (!_8g)) { //#27888 + $put($_.nextiso646only, $_.i, 0); //#27886 + } else { //#27888 + $put($_.nextiso646only, $_.i, $f($get($_.nextiso646only, $_.i + 1) + 1)); //#27888 + } //#27888 + } //#27888 + $_.gpfenc = $a(8304); //#27893 + $_.i = 0; //#27894 + $_.j = 0; //#27894 + for (;;) { //#27984 + if ($_.i == $_.gpf.length) { //#27896 + break; //#27896 + } //#27896 + for (;;) { //#27983 + if ($eq($_.mode, "numeric")) { //#27932 + if ($_.i <= ($_.gpf.length - 2)) { //#27929 + var _8u = $s(2); //#27901 + var _8x = $get($_.gpf, $_.i); //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = _8u; //#27902 + $k[$j++] = 0; //#27902 + $k[$j++] = _8x; //#27902 + if (_8x == $_.fnc1) { //#27902 + $j--; //#27902 + $k[$j++] = 94; //#27902 + } //#27902 + var _8z = $k[--$j]; //#27902 + var _90 = $k[--$j]; //#27902 + $put($k[--$j], _90, _8z); //#27902 + var _92 = $k[--$j]; //#27903 + var _95 = $get($_.gpf, $_.i + 1); //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = _92; //#27903 + $k[$j++] = 1; //#27903 + $k[$j++] = _95; //#27903 + if (_95 == $_.fnc1) { //#27903 + $j--; //#27903 + $k[$j++] = 94; //#27903 + } //#27903 + var _97 = $k[--$j]; //#27903 + var _98 = $k[--$j]; //#27903 + $put($k[--$j], _98, _97); //#27903 + var _9A = $k[--$j]; //#27904 + var _9C = $get($_.numeric, _9A) !== undefined; //#27904 + $k[$j++] = _9A; //#27908 + if (_9C) { //#27908 + $k[$j++] = $_.numeric; //#27905 + $_.encode(); //#27905 + $_.i = $_.i + 2; //#27906 + break; //#27907 + } //#27907 + $j--; //#27909 + $k[$j++] = $_.lalphanumeric; //#27910 + $k[$j++] = $_.numeric; //#27910 + $_.encode(); //#27910 + $_.mode = "alphanumeric"; //#27911 + break; //#27912 + } else { //#27929 + var _9J = $get($_.gpf, $_.i); //#27914 + if ((_9J < 48) || (_9J > 57)) { //#27918 + $k[$j++] = $_.lalphanumeric; //#27915 + $k[$j++] = $_.numeric; //#27915 + $_.encode(); //#27915 + $_.mode = "alphanumeric"; //#27916 + break; //#27917 + } //#27917 + $k[$j++] = 'rem'; //#27919 + $k[$j++] = $_.cdf.length + $_.j; //#27919 + $_.rembits(); //#27919 + var _9O = $k[--$j]; //#27919 + $_[$k[--$j]] = _9O; //#27919 + if (($_.rem >= 4) && ($_.rem <= 6)) { //#27929 + var _9V = $geti($strcpy($s(6), "000000"), 0, $_.rem); //#27921 + var _9a = $cvrs($s(4), $f($get($_.gpf, $_.i) - 47), 2); //#27922 + $puti(_9V, 4 - _9a.length, _9a); //#27923 + $k[$j++] = _9V; //#27923 + $k[$j++] = 'raw'; //#27923 + $_.encode(); //#27923 + $_.i = $_.i + 1; //#27924 + break; //#27925 + } else { //#27929 + var _9c = $s(2); //#27927 + $put(_9c, 0, $get($_.gpf, $_.i)); //#27927 + $put(_9c, 1, 94); //#27927 + $k[$j++] = _9c; //#27927 + $k[$j++] = $_.numeric; //#27927 + $_.encode(); //#27927 + $_.i = $_.i + 1; //#27928 + break; //#27929 + } //#27929 + } //#27929 + } //#27929 + if ($eq($_.mode, "alphanumeric")) { //#27959 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27940 + $k[$j++] = $_.fnc1; //#27936 + $k[$j++] = $_.alphanumeric; //#27936 + $_.encode(); //#27936 + $_.mode = "numeric"; //#27937 + $_.i = $_.i + 1; //#27938 + break; //#27939 + } //#27939 + var _9s = $get($_.gpf, $_.i); //#27941 + var _9u = $get($_.iso646, _9s) !== undefined; //#27941 + var _9w = $get($_.alphanumeric, _9s) !== undefined; //#27941 + if (_9u && (!_9w)) { //#27945 + $k[$j++] = $_.liso646; //#27942 + $k[$j++] = $_.alphanumeric; //#27942 + $_.encode(); //#27942 + $_.mode = "iso646"; //#27943 + break; //#27944 + } //#27944 + if ($get($_.numericruns, $_.i) >= 6) { //#27950 + $k[$j++] = $_.lnumeric; //#27947 + $k[$j++] = $_.alphanumeric; //#27947 + $_.encode(); //#27947 + $_.mode = "numeric"; //#27948 + break; //#27949 + } //#27949 + var _A6 = $get($_.numericruns, $_.i); //#27951 + if ((_A6 >= 4) && ($f(_A6 + $_.i) == $_.gpf.length)) { //#27955 + $k[$j++] = $_.lnumeric; //#27952 + $k[$j++] = $_.alphanumeric; //#27952 + $_.encode(); //#27952 + $_.mode = "numeric"; //#27953 + break; //#27954 + } //#27954 + $k[$j++] = $get($_.gpf, $_.i); //#27956 + $k[$j++] = $_.alphanumeric; //#27956 + $_.encode(); //#27956 + $_.i = $_.i + 1; //#27957 + break; //#27958 + } //#27958 + if ($eq($_.mode, "iso646")) { //#27981 + if ($get($_.gpf, $_.i) == $_.fnc1) { //#27967 + $k[$j++] = $_.fnc1; //#27963 + $k[$j++] = $_.iso646; //#27963 + $_.encode(); //#27963 + $_.mode = "numeric"; //#27964 + $_.i = $_.i + 1; //#27965 + break; //#27966 + } //#27966 + if (($get($_.numericruns, $_.i) >= 4) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27972 + $k[$j++] = $_.lnumeric; //#27969 + $k[$j++] = $_.iso646; //#27969 + $_.encode(); //#27969 + $_.mode = "numeric"; //#27970 + break; //#27971 + } //#27971 + if (($get($_.alphanumericruns, $_.i) >= 5) && ($get($_.nextiso646only, $_.i) >= 10)) { //#27977 + $k[$j++] = $_.lalphanumeric; //#27974 + $k[$j++] = $_.iso646; //#27974 + $_.encode(); //#27974 + $_.mode = "alphanumeric"; //#27975 + break; //#27976 + } //#27976 + $k[$j++] = $get($_.gpf, $_.i); //#27978 + $k[$j++] = $_.iso646; //#27978 + $_.encode(); //#27978 + $_.i = $_.i + 1; //#27979 + break; //#27980 + } //#27980 + } //#27980 + } //#27980 + $_.gpf = $geti($_.gpfenc, 0, $_.j); //#27985 + $k[$j++] = 'pad'; //#27988 + $k[$j++] = $_.cdf.length + $_.gpf.length; //#27988 + $_.rembits(); //#27988 + var _Ap = $a($k[--$j]); //#27988 + $_[$k[--$j]] = _Ap; //#27988 + if ($_.pad.length > 0) { //#28000 + for (var _Au = 0, _At = $_.pad.length - 1; _Au <= _At; _Au += 5) { //#27993 + $_.i = _Au; //#27991 + var _Av = $_.pad; //#27992 + var _Aw = $_.i; //#27992 + var _Ax = $a([0, 0, 1, 0, 0]); //#27992 + var _Ay = $_.pad; //#27992 + var _Az = $_.i; //#27992 + var _B0 = 5; //#27992 + var _B1 = _Ay.length - _Az; //#27992 + if ((_Ay.length - _Az) > 5) { //#27992 + var _ = _B0; //#27992 + _B0 = _B1; //#27992 + _B1 = _; //#27992 + } //#27992 + $puti(_Av, _Aw, $geti(_Ax, 0, _B1)); //#27992 + } //#27992 + if ($eq($_.mode, "numeric")) { //#27996 + $k[$j++] = Infinity; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $k[$j++] = 0; //#27995 + $aload($_.pad); //#27995 + $_.pad = $geti($a(), 0, $_.pad.length); //#27995 + } //#27995 + if ($eq($_.mode, "alpha")) { //#27999 + $k[$j++] = Infinity; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 1; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $k[$j++] = 0; //#27998 + $aload($_.pad); //#27998 + $_.pad = $geti($a(), 0, $_.pad.length); //#27998 + } //#27998 + } //#27998 + $k[$j++] = Infinity; //#28003 + $aload($_.cdf); //#28004 + $aload($_.gpf); //#28005 + $aload($_.pad); //#28006 + $_.bits = $a(); //#28006 + if (!bwipp_gs1_cc.__28024__) { //#28024 + $_ = Object.create($_); //#28024 + $k[$j++] = Infinity; //#28010 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#28012 + for (var _BI = 0, _BJ = 68; _BI < _BJ; _BI++) { //#28012 + $k[$j++] = $a(7); //#28012 + } //#28012 + $_.pwr928 = $a(); //#28012 + for (var _BM = 1; _BM <= 68; _BM += 1) { //#28023 + $_.j = _BM; //#28015 + $_.v = 0; //#28016 + for (var _BN = 6; _BN >= 1; _BN -= 1) { //#28021 + $_.i = _BN; //#28018 + $_.v = $f(($get($get($_.pwr928, $_.j - 1), $_.i) * 2) + (~~($_.v / 928))); //#28019 + $put($get($_.pwr928, $_.j), $_.i, $_.v % 928); //#28020 + } //#28020 + $put($get($_.pwr928, $_.j), 0, $f(($get($get($_.pwr928, $_.j - 1), 0) * 2) + (~~($_.v / 928)))); //#28022 + } //#28022 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_gs1_cc.$ctx[id] = $_[id]); //#28022 + bwipp_gs1_cc.__28024__ = 1; //#28022 + $_ = Object.getPrototypeOf($_); //#28022 + } //#28022 + if ($_.ccversion == "a") { //#28066 $k[$j++] = Infinity; //#28027 - $k[$j++] = Infinity; //#28021 - $k[$j++] = 0; //#28019 - $k[$j++] = 1; //#28019 - for (var _H = 0, _I = 65; _H < _I; _H++) { //#28019 - $k[$j++] = 0; //#28019 - } //#28019 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - $k[$j++] = 1; //#28020 - $k[$j++] = 0; //#28020 - for (var _J = 0, _K = 65; _J < _K; _J++) { //#28020 - $k[$j++] = 0; //#28020 - } //#28020 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - $k[$j++] = 1; //#28021 - for (var _L = 0, _M = 65; _L < _M; _L++) { //#28021 - $k[$j++] = 0; //#28021 - } //#28021 - $k[$j++] = 1; //#28021 - $k[$j++] = 0; //#28021 - var _N = $a(); //#28021 - $k[$j++] = 'ren'; //#28027 - $k[$j++] = bwipp_renmatrix; //#28027 - $k[$j++] = 'pixs'; //#28027 - $k[$j++] = _N; //#28027 - $k[$j++] = 'pixx'; //#28027 - $k[$j++] = 69; //#28027 - $k[$j++] = 'pixy'; //#28027 - $k[$j++] = 3; //#28027 - $k[$j++] = 'height'; //#28027 - $k[$j++] = 6 / 72; //#28027 - $k[$j++] = 'width'; //#28027 - $k[$j++] = 69 / 72; //#28027 - $k[$j++] = 'opt'; //#28027 - $k[$j++] = $_.options; //#28027 - var _P = $d(); //#28027 - $k[$j++] = _P; //#28028 - bwipp_renmatrix(); //#28028 - $k[$j++] = $_.comp; //#28031 - $k[$j++] = $_.options; //#28031 - bwipp_gs1_cc(); //#28031 - var _S = $k[--$j]; //#28032 - $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28032 - $k[$j++] = _S; //#28033 - bwipp_renmatrix(); //#28033 - $$.restore(); //#28035 - } else { //#28101 - $_.linsym = $k[--$j]; //#28037 - $_.sbs = $get($_.linsym, 'sbs'); //#28038 - $_.bhs = $get($_.linsym, 'bhs'); //#28039 - $_.bbs = $get($_.linsym, 'bbs'); //#28040 - $k[$j++] = 'linwidth'; //#28041 - $k[$j++] = 0; //#28041 - $forall($_.sbs, function() { //#28041 - var _c = $k[--$j]; //#28041 - var _d = $k[--$j]; //#28041 - $k[$j++] = $f(_d + $cvi(_c)); //#28041 - }); //#28041 - var _e = $k[--$j]; //#28041 - $_[$k[--$j]] = _e; //#28041 - var _g = $_.comp; //#28043 - $k[$j++] = 'compsym'; //#28043 - $k[$j++] = _g; //#28043 - $k[$j++] = $_.options; //#28043 - bwipp_gs1_cc(); //#28043 - var _i = $k[--$j]; //#28043 - $_[$k[--$j]] = _i; //#28043 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28044 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28045 - $k[$j++] = Infinity; //#28047 - for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28047 - $k[$j++] = 0; //#28047 - } //#28047 - $_.linpad = $a(); //#28047 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28049 - if ($_.diff > 0) { //#28055 - $k[$j++] = Infinity; //#28051 - for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28051 - $k[$j++] = 0; //#28051 - } //#28051 - $_.ccrpad = $a(); //#28051 - $_.pixx = $f($_.ccpixx + $_.diff); //#28052 - } else { //#28055 - $_.ccrpad = $a(0); //#28054 - $_.pixx = $_.ccpixx; //#28055 - } //#28055 - $k[$j++] = Infinity; //#28083 - for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28062 - $_.i = _17; //#28060 - for (var _19 = 0, _1A = 2; _19 < _1A; _19++) { //#28061 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28061 - $aload($_.ccrpad); //#28061 - } //#28061 - } //#28061 - for (var _1G = 0, _1H = 2; _1G < _1H; _1G++) { //#28063 - $aload($_.linpad); //#28063 - $k[$j++] = 0; //#28063 - $k[$j++] = 1; //#28063 - for (var _1J = 0, _1K = 65; _1J < _1K; _1J++) { //#28063 - $k[$j++] = 0; //#28063 - } //#28063 - $k[$j++] = 1; //#28063 - $k[$j++] = 0; //#28063 - $aload($_.ccrpad); //#28063 - } //#28063 - for (var _1M = 0, _1N = 2; _1M < _1N; _1M++) { //#28064 - $aload($_.linpad); //#28064 - $k[$j++] = 1; //#28064 - $k[$j++] = 0; //#28064 - for (var _1P = 0, _1Q = 65; _1P < _1Q; _1P++) { //#28064 - $k[$j++] = 0; //#28064 - } //#28064 - $k[$j++] = 0; //#28064 - $k[$j++] = 1; //#28064 - $aload($_.ccrpad); //#28064 - } //#28064 - for (var _1S = 0, _1T = 2; _1S < _1T; _1S++) { //#28065 - $aload($_.linpad); //#28065 - $k[$j++] = 0; //#28065 - $k[$j++] = 1; //#28065 - for (var _1V = 0, _1W = 65; _1V < _1W; _1V++) { //#28065 - $k[$j++] = 0; //#28065 - } //#28065 - $k[$j++] = 1; //#28065 - $k[$j++] = 0; //#28065 - $aload($_.ccrpad); //#28065 - } //#28065 - for (var _1Y = 71; _1Y >= 0; _1Y -= 1) { //#28084 - $_.y = _1Y; //#28067 - $aload($_.linpad); //#28068 - $k[$j++] = 0; //#28082 - for (var _1c = 0, _1b = $_.sbs.length - 1; _1c <= _1b; _1c += 1) { //#28082 - $_.i = _1c; //#28071 - if (($_.i % 2) == 0) { //#28080 - var _1h = $get($_.bbs, ~~($_.i / 2)) * 72; //#28074 - if ((_1h > $_.y) || (($f(_1h + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28077 - for (var _1q = 0, _1r = $cvi($get($_.sbs, $_.i)); _1q < _1r; _1q++) { //#28075 - $k[$j++] = 0; //#28075 - } //#28075 - } else { //#28077 - for (var _1v = 0, _1w = $cvi($get($_.sbs, $_.i)); _1v < _1w; _1v++) { //#28077 - $k[$j++] = 1; //#28077 - } //#28077 - } //#28077 - } else { //#28080 - for (var _20 = 0, _21 = $cvi($get($_.sbs, $_.i)); _20 < _21; _20++) { //#28080 - $k[$j++] = 0; //#28080 - } //#28080 - } //#28080 - } //#28080 - $k[$j++] = 0; //#28083 - } //#28083 - $_.pixs = $a(); //#28083 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28087 - var _2B = new Map([ - ["ren", bwipp_renmatrix], - ["pixs", $_.pixs], - ["pixx", $_.pixx], - ["pixy", $_.pixy], - ["height", $_.pixy / 72], - ["width", $_.pixx / 72], - ["opt", $_.options] - ]); //#28095 - $k[$j++] = _2B; //#28102 - if (!$_.dontdraw) { //#28102 - $$.save(); //#28099 - bwipp_renmatrix(); //#28100 - $$.restore(); //#28101 - } //#28101 - } //#28101 - $_ = Object.getPrototypeOf($_); //#28105 -} - -function bwipp_upcacomposite() { - $_ = Object.create($_); //#28137 - $_.dontdraw = false; //#28140 - $_.usematrix = false; //#28141 - $_.parse = false; //#28142 - $_.dontlint = false; //#28143 - $_.lintreqs = true; //#28144 - $k[$j++] = $_; //#28146 - bwipp_processoptions(); //#28146 - $_.options = $k[--$j]; //#28146 - $_.barcode = $k[--$j]; //#28147 - if ($_.dontdraw) { //#28149 - $_.usematrix = true; //#28149 - } //#28149 - $search($_.barcode, "|"); //#28152 - if ($k[--$j]) { //#28157 - $_.linear = $k[--$j]; //#28153 + for (var _Bj = 0, _Bk = 28; _Bj < _Bk; _Bj++) { //#28027 + $k[$j++] = 0; //#28027 + } //#28027 + $_.cws = $a(); //#28027 + $_.b = 0; //#28028 + $_.c = 0; //#28028 + for (;;) { //#28052 + if ($_.b == $_.bits.length) { //#28030 + break; //#28030 + } //#28030 + var _Bo = $_.bits; //#28031 + var _Bp = $_.b; //#28031 + var _Bq = $_.bits; //#28031 + var _Br = $_.b; //#28031 + var _Bs = _Bq.length - _Br; //#28031 + var _Bt = 69; //#28031 + if (69 > (_Bq.length - _Br)) { //#28031 + var _ = _Bs; //#28031 + _Bs = _Bt; //#28031 + _Bt = _; //#28031 + } //#28031 + $_.bs = $geti(_Bo, _Bp, _Bt); //#28031 + $_.bsl = $_.bs.length; //#28032 + $_.cs = $geti($_.cws, $_.c, (~~($_.bsl / 10)) + 1); //#28033 + $_.csl = $_.cs.length; //#28034 + for (var _C3 = 0, _C2 = $_.bsl - 1; _C3 <= _C2; _C3 += 1) { //#28044 + $_.i = _C3; //#28036 + for (var _C6 = 0, _C5 = $_.csl - 1; _C6 <= _C5; _C6 += 1) { //#28043 + $_.j = _C6; //#28038 + var _C7 = $_.cs; //#28039 + var _C8 = $_.j; //#28039 + $put(_C7, _C8, $f($get(_C7, _C8) + ($get($get($_.pwr928, $_.i), ($_.j + 7) - $_.csl) * $get($_.bs, ($_.bsl - $_.i) - 1)))); //#28042 + } //#28042 + } //#28042 + for (var _CL = $_.csl - 1; _CL >= 1; _CL -= 1) { //#28049 + $_.i = _CL; //#28046 + var _CM = $_.cs; //#28047 + var _CN = $_.i; //#28047 + $put(_CM, _CN - 1, $f($get(_CM, _CN - 1) + (~~($get($_.cs, $_.i) / 928)))); //#28047 + var _CS = $_.cs; //#28048 + var _CT = $_.i; //#28048 + $put(_CS, _CT, $get(_CS, _CT) % 928); //#28048 + } //#28048 + $_.b = $_.b + $_.bsl; //#28050 + $_.c = $_.c + $_.csl; //#28051 + } //#28051 + $_.cws = $geti($_.cws, 0, $_.c); //#28053 + $_.barcode = $s($_.cws.length * 4); //#28054 + for (var _Cg = 0, _Cf = $_.cws.length - 1; _Cg <= _Cf; _Cg += 1) { //#28060 + $_.i = _Cg; //#28056 + var _Ci = $strcpy($s(4), "^000"); //#28057 + var _Cn = $cvrs($s(4), $get($_.cws, $_.i), 10); //#28057 + $puti(_Ci, 4 - _Cn.length, _Cn); //#28058 + $puti($_.barcode, $_.i * 4, _Ci); //#28059 + } //#28059 + delete $_.options["parse"]; //#28061 + $put($_.options, "dontdraw", true); //#28062 + $put($_.options, "cca", true); //#28063 + $put($_.options, "columns", $_.cccolumns); //#28064 + $k[$j++] = 'args'; //#28065 + $k[$j++] = $_.barcode; //#28065 + $k[$j++] = $_.options; //#28065 + bwipp_micropdf417(); //#28065 + var _Cx = $k[--$j]; //#28065 + $_[$k[--$j]] = _Cx; //#28065 + } //#28065 + if ($_.ccversion == "b") { //#28080 + $_.barcode = $s(~~($_.bits.length / 8)); //#28069 + for (var _D4 = 0, _D3 = $_.barcode.length - 1; _D4 <= _D3; _D4 += 1) { //#28074 + $_.i = _D4; //#28071 + var _D7 = $geti($_.bits, $_.i * 8, 8); //#28072 + $k[$j++] = 0; //#28072 + for (var _D8 = 0, _D9 = _D7.length; _D8 < _D9; _D8++) { //#28072 + var _DB = $k[--$j]; //#28072 + $k[$j++] = $f(_DB + $get(_D7, _D8)) * 2; //#28072 + } //#28072 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28073 + } //#28073 + delete $_.options["parse"]; //#28075 + $put($_.options, "dontdraw", true); //#28076 + $put($_.options, "ccb", true); //#28077 + $put($_.options, "columns", $_.cccolumns); //#28078 + $k[$j++] = 'args'; //#28079 + $k[$j++] = $_.barcode; //#28079 + $k[$j++] = $_.options; //#28079 + bwipp_micropdf417(); //#28079 + var _DM = $k[--$j]; //#28079 + $_[$k[--$j]] = _DM; //#28079 + } //#28079 + if ($_.ccversion == "c") { //#28095 + $_.barcode = $s(~~($_.bits.length / 8)); //#28083 + for (var _DT = 0, _DS = $_.barcode.length - 1; _DT <= _DS; _DT += 1) { //#28088 + $_.i = _DT; //#28085 + var _DW = $geti($_.bits, $_.i * 8, 8); //#28086 + $k[$j++] = 0; //#28086 + for (var _DX = 0, _DY = _DW.length; _DX < _DY; _DX++) { //#28086 + var _Da = $k[--$j]; //#28086 + $k[$j++] = $f(_Da + $get(_DW, _DX)) * 2; //#28086 + } //#28086 + $put($_.barcode, $_.i, ~~($k[--$j] / 2)); //#28087 + } //#28087 + delete $_.options["parse"]; //#28089 + $put($_.options, "dontdraw", true); //#28090 + $put($_.options, "ccc", true); //#28091 + $put($_.options, "columns", $_.cccolumns); //#28092 + $put($_.options, "eclevel", (~~(Math.log($_.eccws) / Math.log(2))) - 1); //#28093 + $k[$j++] = 'args'; //#28094 + $k[$j++] = $_.barcode; //#28094 + $k[$j++] = $_.options; //#28094 + bwipp_pdf417(); //#28094 + var _Dn = $k[--$j]; //#28094 + $_[$k[--$j]] = _Dn; //#28094 + } //#28094 + $k[$j++] = $_.args; //#28098 + if (!$_.dontdraw) { //#28098 + bwipp_renmatrix(); //#28098 + } //#28098 + $_ = Object.getPrototypeOf($_); //#28100 + $_ = Object.getPrototypeOf($_); //#28102 +} //bwipp_gs1_cc +function bwipp_ean13composite() { + $_ = Object.create($_); //#28134 + $_.dontdraw = false; //#28137 + $_.usematrix = false; //#28138 + $_.parse = false; //#28139 + $_.dontlint = false; //#28140 + $_.lintreqs = true; //#28141 + $k[$j++] = $_; //#28143 + bwipp_processoptions(); //#28143 + $_.options = $k[--$j]; //#28143 + $_.barcode = $k[--$j]; //#28144 + if ($_.dontdraw) { //#28146 + $_.usematrix = true; //#28146 + } //#28146 + $search($_.barcode, "|"); //#28149 + if ($k[--$j]) { //#28154 + $_.linear = $k[--$j]; //#28150 + $j--; //#28151 + $_.comp = $k[--$j]; //#28152 + } else { //#28154 $j--; //#28154 - $_.comp = $k[--$j]; //#28155 - } else { //#28157 - $j--; //#28157 - $k[$j++] = 'bwipp.missingCompositeComponent#28157'; //#28157 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28157 - bwipp_raiseerror(); //#28157 - } //#28157 - $put($_.options, "lintype", "ean13"); //#28160 - $put($_.options, "inkspread", "0"); //#28161 - $put($_.options, "dontdraw", true); //#28162 - $put($_.options, "dontlint", true); //#28163 - var _C = $s($_.comp.length + 18); //#28166 - $puti(_C, 0, "(01)00000000000000"); //#28167 - $puti(_C, 18, $_.comp); //#28168 - $k[$j++] = _C; //#28169 - $k[$j++] = 'ai'; //#28169 - bwipp_gs1process(); //#28169 - $j -= 3; //#28169 - $k[$j++] = $_.linear; //#28172 - $k[$j++] = $_.options; //#28172 - bwipp_upca(); //#28172 - if (!$_.usematrix) { //#28262 - $$.save(); //#28174 - bwipp_renlinear(); //#28176 - $$.rmoveto(-1, 72); //#28179 - $k[$j++] = Infinity; //#28190 - $k[$j++] = Infinity; //#28184 - $k[$j++] = 0; //#28182 - $k[$j++] = 1; //#28182 - for (var _H = 0, _I = 93; _H < _I; _H++) { //#28182 - $k[$j++] = 0; //#28182 - } //#28182 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - $k[$j++] = 1; //#28183 - $k[$j++] = 0; //#28183 - for (var _J = 0, _K = 93; _J < _K; _J++) { //#28183 - $k[$j++] = 0; //#28183 - } //#28183 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - $k[$j++] = 1; //#28184 - for (var _L = 0, _M = 93; _L < _M; _L++) { //#28184 - $k[$j++] = 0; //#28184 - } //#28184 - $k[$j++] = 1; //#28184 - $k[$j++] = 0; //#28184 - var _N = $a(); //#28184 - $k[$j++] = 'ren'; //#28190 - $k[$j++] = bwipp_renmatrix; //#28190 - $k[$j++] = 'pixs'; //#28190 - $k[$j++] = _N; //#28190 - $k[$j++] = 'pixx'; //#28190 - $k[$j++] = 97; //#28190 - $k[$j++] = 'pixy'; //#28190 - $k[$j++] = 3; //#28190 - $k[$j++] = 'height'; //#28190 - $k[$j++] = 6 / 72; //#28190 - $k[$j++] = 'width'; //#28190 - $k[$j++] = 97 / 72; //#28190 - $k[$j++] = 'opt'; //#28190 - $k[$j++] = $_.options; //#28190 - var _P = $d(); //#28190 - $k[$j++] = _P; //#28191 + $k[$j++] = 'bwipp.missingCompositeComponent#28154'; //#28154 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28154 + bwipp_raiseerror(); //#28154 + } //#28154 + $put($_.options, "lintype", "ean13"); //#28157 + $put($_.options, "inkspreadv", 0); //#28158 + $put($_.options, "dontdraw", true); //#28159 + $put($_.options, "dontlint", true); //#28160 + var _C = $s($_.comp.length + 18); //#28163 + $puti(_C, 0, "(01)00000000000000"); //#28164 + $puti(_C, 18, $_.comp); //#28165 + $k[$j++] = _C; //#28166 + $k[$j++] = 'ai'; //#28166 + bwipp_gs1process(); //#28166 + $j -= 3; //#28166 + $k[$j++] = $_.linear; //#28169 + $k[$j++] = $_.options; //#28169 + bwipp_ean13(); //#28169 + if (!$_.usematrix) { //#28259 + $$.save(); //#28171 + bwipp_renlinear(); //#28173 + $$.rmoveto(-1, 72); //#28176 + $k[$j++] = Infinity; //#28176 + $k[$j++] = Infinity; //#28178 + $k[$j++] = 0; //#28179 + $k[$j++] = 1; //#28179 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28179 + $k[$j++] = 0; //#28179 + } //#28179 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + $k[$j++] = 1; //#28180 + $k[$j++] = 0; //#28180 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28180 + $k[$j++] = 0; //#28180 + } //#28180 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + $k[$j++] = 1; //#28181 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28181 + $k[$j++] = 0; //#28181 + } //#28181 + $k[$j++] = 1; //#28181 + $k[$j++] = 0; //#28181 + var _N = $a(); //#28181 + $k[$j++] = 'ren'; //#28187 + $k[$j++] = bwipp_renmatrix; //#28187 + $k[$j++] = 'pixs'; //#28187 + $k[$j++] = _N; //#28187 + $k[$j++] = 'pixx'; //#28187 + $k[$j++] = 97; //#28187 + $k[$j++] = 'pixy'; //#28187 + $k[$j++] = 3; //#28187 + $k[$j++] = 'height'; //#28187 + $k[$j++] = 6 / 72; //#28187 + $k[$j++] = 'width'; //#28187 + $k[$j++] = 97 / 72; //#28187 + $k[$j++] = 'opt'; //#28187 + $k[$j++] = $_.options; //#28187 + var _P = $d(); //#28187 + $k[$j++] = _P; //#28188 + bwipp_renmatrix(); //#28188 + $$.rmoveto(-2, 6); //#28191 + $k[$j++] = $_.comp; //#28191 + $k[$j++] = $_.options; //#28191 + bwipp_gs1_cc(); //#28191 bwipp_renmatrix(); //#28191 - $$.rmoveto(-2, 6); //#28194 - $k[$j++] = $_.comp; //#28194 - $k[$j++] = $_.options; //#28194 - bwipp_gs1_cc(); //#28194 - bwipp_renmatrix(); //#28194 - $$.restore(); //#28196 - } else { //#28262 - $_.linsym = $k[--$j]; //#28198 - $_.sbs = $get($_.linsym, 'sbs'); //#28199 - $_.bhs = $get($_.linsym, 'bhs'); //#28200 - $_.bbs = $get($_.linsym, 'bbs'); //#28201 - $k[$j++] = 'linwidth'; //#28202 - $k[$j++] = 0; //#28202 - $forall($_.sbs, function() { //#28202 - var _a = $k[--$j]; //#28202 - var _b = $k[--$j]; //#28202 - $k[$j++] = $f(_b + $cvi(_a)); //#28202 - }); //#28202 - var _c = $k[--$j]; //#28202 - $_[$k[--$j]] = _c; //#28202 - $k[$j++] = 'compsym'; //#28204 - $k[$j++] = $_.comp; //#28204 - $k[$j++] = $_.options; //#28204 - bwipp_gs1_cc(); //#28204 - var _g = $k[--$j]; //#28204 - $_[$k[--$j]] = _g; //#28204 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28205 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28206 - $k[$j++] = Infinity; //#28208 - for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28208 - $k[$j++] = 0; //#28208 - } //#28208 - $_.linpad = $a(); //#28208 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28210 - if ($_.diff > 0) { //#28216 - $k[$j++] = Infinity; //#28212 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28212 - $k[$j++] = 0; //#28212 - } //#28212 - $_.ccrpad = $a(); //#28212 - $_.pixx = $f($_.ccpixx + $_.diff); //#28213 - } else { //#28216 - $_.ccrpad = $a(0); //#28215 - $_.pixx = $_.ccpixx; //#28216 - } //#28216 - $k[$j++] = Infinity; //#28244 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28223 - $_.i = _15; //#28221 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28222 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28222 - $aload($_.ccrpad); //#28222 + $$.restore(); //#28193 + } else { //#28259 + $_.linsym = $k[--$j]; //#28195 + $_.sbs = $get($_.linsym, 'sbs'); //#28196 + $_.bhs = $get($_.linsym, 'bhs'); //#28197 + $_.bbs = $get($_.linsym, 'bbs'); //#28198 + $k[$j++] = 'linwidth'; //#28199 + $k[$j++] = 0; //#28199 + $forall($_.sbs, function() { //#28199 + var _a = $k[--$j]; //#28199 + var _b = $k[--$j]; //#28199 + $k[$j++] = $f(_b + $cvi(_a)); //#28199 + }); //#28199 + var _c = $k[--$j]; //#28199 + $_[$k[--$j]] = _c; //#28199 + $k[$j++] = 'compsym'; //#28201 + $k[$j++] = $_.comp; //#28201 + $k[$j++] = $_.options; //#28201 + bwipp_gs1_cc(); //#28201 + var _g = $k[--$j]; //#28201 + $_[$k[--$j]] = _g; //#28201 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28202 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28203 + $k[$j++] = Infinity; //#28205 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28205 + $k[$j++] = 0; //#28205 + } //#28205 + $_.linpad = $a(); //#28205 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28207 + if ($_.diff > 0) { //#28213 + $k[$j++] = Infinity; //#28209 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28209 + $k[$j++] = 0; //#28209 + } //#28209 + $_.ccrpad = $a(); //#28209 + $_.pixx = $f($_.ccpixx + $_.diff); //#28210 + } else { //#28213 + $_.ccrpad = $a(0); //#28212 + $_.pixx = $_.ccpixx; //#28213 + } //#28213 + $k[$j++] = Infinity; //#28216 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28220 + $_.i = _15; //#28218 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28219 + $aload($_.ccrpad); //#28219 + } //#28219 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28221 + $aload($_.linpad); //#28221 + $k[$j++] = 0; //#28221 + $k[$j++] = 1; //#28221 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28221 + $k[$j++] = 0; //#28221 + } //#28221 + $k[$j++] = 1; //#28221 + $k[$j++] = 0; //#28221 + $aload($_.ccrpad); //#28221 + } //#28221 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28222 + $aload($_.linpad); //#28222 + $k[$j++] = 1; //#28222 + $k[$j++] = 0; //#28222 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28222 + $k[$j++] = 0; //#28222 } //#28222 + $k[$j++] = 0; //#28222 + $k[$j++] = 1; //#28222 + $aload($_.ccrpad); //#28222 } //#28222 - for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28224 - $aload($_.linpad); //#28224 - $k[$j++] = 0; //#28224 - $k[$j++] = 1; //#28224 - for (var _1H = 0, _1I = 93; _1H < _1I; _1H++) { //#28224 - $k[$j++] = 0; //#28224 - } //#28224 - $k[$j++] = 1; //#28224 - $k[$j++] = 0; //#28224 - $aload($_.ccrpad); //#28224 - } //#28224 - for (var _1K = 0, _1L = 2; _1K < _1L; _1K++) { //#28225 - $aload($_.linpad); //#28225 - $k[$j++] = 1; //#28225 - $k[$j++] = 0; //#28225 - for (var _1N = 0, _1O = 93; _1N < _1O; _1N++) { //#28225 - $k[$j++] = 0; //#28225 - } //#28225 - $k[$j++] = 0; //#28225 - $k[$j++] = 1; //#28225 - $aload($_.ccrpad); //#28225 - } //#28225 - for (var _1Q = 0, _1R = 2; _1Q < _1R; _1Q++) { //#28226 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28223 + $aload($_.linpad); //#28223 + $k[$j++] = 0; //#28223 + $k[$j++] = 1; //#28223 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28223 + $k[$j++] = 0; //#28223 + } //#28223 + $k[$j++] = 1; //#28223 + $k[$j++] = 0; //#28223 + $aload($_.ccrpad); //#28223 + } //#28223 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28242 + $_.y = _1U; //#28225 $aload($_.linpad); //#28226 - $k[$j++] = 0; //#28226 - $k[$j++] = 1; //#28226 - for (var _1T = 0, _1U = 93; _1T < _1U; _1T++) { //#28226 - $k[$j++] = 0; //#28226 - } //#28226 - $k[$j++] = 1; //#28226 - $k[$j++] = 0; //#28226 - $aload($_.ccrpad); //#28226 - } //#28226 - for (var _1W = 71; _1W >= 0; _1W -= 1) { //#28245 - $_.y = _1W; //#28228 - $aload($_.linpad); //#28229 - $k[$j++] = 0; //#28243 - for (var _1a = 0, _1Z = $_.sbs.length - 1; _1a <= _1Z; _1a += 1) { //#28243 - $_.i = _1a; //#28232 - if (($_.i % 2) == 0) { //#28241 - var _1f = $get($_.bbs, ~~($_.i / 2)) * 72; //#28235 - if ((_1f > $_.y) || (($f(_1f + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28238 - for (var _1o = 0, _1p = $cvi($get($_.sbs, $_.i)); _1o < _1p; _1o++) { //#28236 - $k[$j++] = 0; //#28236 - } //#28236 - } else { //#28238 - for (var _1t = 0, _1u = $cvi($get($_.sbs, $_.i)); _1t < _1u; _1t++) { //#28238 - $k[$j++] = 1; //#28238 - } //#28238 + $k[$j++] = 0; //#28240 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28240 + $_.i = _1Y; //#28229 + if (($_.i % 2) == 0) { //#28238 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28232 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28235 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28233 + $k[$j++] = 0; //#28233 + } //#28233 + } else { //#28235 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28235 + $k[$j++] = 1; //#28235 + } //#28235 + } //#28235 + } else { //#28238 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28238 + $k[$j++] = 0; //#28238 } //#28238 - } else { //#28241 - for (var _1y = 0, _1z = $cvi($get($_.sbs, $_.i)); _1y < _1z; _1y++) { //#28241 - $k[$j++] = 0; //#28241 - } //#28241 - } //#28241 + } //#28238 + } //#28238 + if ($_.diff < 0) { //#28241 + $k[$j++] = 0; //#28241 } //#28241 - $k[$j++] = 0; //#28244 - } //#28244 - $_.pixs = $a(); //#28244 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28248 - var _29 = new Map([ + } //#28241 + $_.pixs = $a(); //#28241 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28245 + var _28 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36085,105 +36143,106 @@ function bwipp_upcacomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28256 - $k[$j++] = _29; //#28263 - if (!$_.dontdraw) { //#28263 - $$.save(); //#28260 - bwipp_renmatrix(); //#28261 - $$.restore(); //#28262 - } //#28262 - } //#28262 - $_ = Object.getPrototypeOf($_); //#28266 -} - -function bwipp_upcecomposite() { - $_ = Object.create($_); //#28298 - $_.dontdraw = false; //#28301 - $_.usematrix = false; //#28302 - $_.parse = false; //#28303 - $_.dontlint = false; //#28304 - $_.lintreqs = true; //#28305 - $k[$j++] = $_; //#28307 - bwipp_processoptions(); //#28307 - $_.options = $k[--$j]; //#28307 - $_.barcode = $k[--$j]; //#28308 - if ($_.dontdraw) { //#28310 - $_.usematrix = true; //#28310 - } //#28310 - $search($_.barcode, "|"); //#28313 - if ($k[--$j]) { //#28318 - $_.linear = $k[--$j]; //#28314 + ]); //#28253 + $k[$j++] = _28; //#28260 + if (!$_.dontdraw) { //#28260 + $$.save(); //#28257 + bwipp_renmatrix(); //#28258 + $$.restore(); //#28259 + } //#28259 + } //#28259 + $_ = Object.getPrototypeOf($_); //#28263 +} //bwipp_ean13composite +function bwipp_ean8composite() { + $_ = Object.create($_); //#28295 + $_.dontdraw = false; //#28298 + $_.usematrix = false; //#28299 + $_.parse = false; //#28300 + $_.dontlint = false; //#28301 + $_.lintreqs = true; //#28302 + $k[$j++] = $_; //#28304 + bwipp_processoptions(); //#28304 + $_.options = $k[--$j]; //#28304 + $_.barcode = $k[--$j]; //#28305 + if ($_.dontdraw) { //#28307 + $_.usematrix = true; //#28307 + } //#28307 + $search($_.barcode, "|"); //#28310 + if ($k[--$j]) { //#28315 + $_.linear = $k[--$j]; //#28311 + $j--; //#28312 + $_.comp = $k[--$j]; //#28313 + } else { //#28315 $j--; //#28315 - $_.comp = $k[--$j]; //#28316 - } else { //#28318 - $j--; //#28318 - $k[$j++] = 'bwipp.missingCompositeComponent#28318'; //#28318 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28318 - bwipp_raiseerror(); //#28318 - } //#28318 - $put($_.options, "lintype", "upce"); //#28321 - $put($_.options, "inkspread", "0"); //#28322 - $put($_.options, "dontdraw", true); //#28323 - $put($_.options, "dontlint", true); //#28324 - var _C = $s($_.comp.length + 18); //#28327 - $puti(_C, 0, "(01)00000000000000"); //#28328 - $puti(_C, 18, $_.comp); //#28329 - $k[$j++] = _C; //#28330 - $k[$j++] = 'ai'; //#28330 - bwipp_gs1process(); //#28330 - $j -= 3; //#28330 - $k[$j++] = $_.linear; //#28333 - $k[$j++] = $_.options; //#28333 - bwipp_upce(); //#28333 + $k[$j++] = 'bwipp.missingCompositeComponent#28315'; //#28315 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28315 + bwipp_raiseerror(); //#28315 + } //#28315 + $put($_.options, "lintype", "ean8"); //#28319 + $put($_.options, "inkspreadv", 0); //#28320 + $put($_.options, "dontdraw", true); //#28321 + $put($_.options, "dontlint", true); //#28322 + var _C = $s($_.comp.length + 18); //#28325 + $puti(_C, 0, "(01)00000000000000"); //#28326 + $puti(_C, 18, $_.comp); //#28327 + $k[$j++] = _C; //#28328 + $k[$j++] = 'ai'; //#28328 + bwipp_gs1process(); //#28328 + $j -= 3; //#28328 + $k[$j++] = $_.linear; //#28331 + $k[$j++] = $_.options; //#28331 + bwipp_ean8(); //#28331 if (!$_.usematrix) { //#28423 - $$.save(); //#28335 - bwipp_renlinear(); //#28337 - $$.rmoveto(-1, 72); //#28340 - $k[$j++] = Infinity; //#28351 - $k[$j++] = Infinity; //#28345 + $$.save(); //#28333 + bwipp_renlinear(); //#28335 + $$.rmoveto(-1, 72); //#28338 + $k[$j++] = Infinity; //#28338 + $k[$j++] = Infinity; //#28340 + $k[$j++] = 0; //#28341 + $k[$j++] = 1; //#28341 + for (var _H = 0, _I = 65; _H < _I; _H++) { //#28341 + $k[$j++] = 0; //#28341 + } //#28341 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + $k[$j++] = 1; //#28342 + $k[$j++] = 0; //#28342 + for (var _J = 0, _K = 65; _J < _K; _J++) { //#28342 + $k[$j++] = 0; //#28342 + } //#28342 + $k[$j++] = 0; //#28343 + $k[$j++] = 1; //#28343 $k[$j++] = 0; //#28343 $k[$j++] = 1; //#28343 - for (var _H = 0, _I = 49; _H < _I; _H++) { //#28343 + for (var _L = 0, _M = 65; _L < _M; _L++) { //#28343 $k[$j++] = 0; //#28343 } //#28343 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - $k[$j++] = 1; //#28344 - $k[$j++] = 0; //#28344 - for (var _J = 0, _K = 49; _J < _K; _J++) { //#28344 - $k[$j++] = 0; //#28344 - } //#28344 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - $k[$j++] = 1; //#28345 - for (var _L = 0, _M = 49; _L < _M; _L++) { //#28345 - $k[$j++] = 0; //#28345 - } //#28345 - $k[$j++] = 1; //#28345 - $k[$j++] = 0; //#28345 - var _N = $a(); //#28345 - $k[$j++] = 'ren'; //#28351 - $k[$j++] = bwipp_renmatrix; //#28351 - $k[$j++] = 'pixs'; //#28351 - $k[$j++] = _N; //#28351 - $k[$j++] = 'pixx'; //#28351 - $k[$j++] = 53; //#28351 - $k[$j++] = 'pixy'; //#28351 - $k[$j++] = 3; //#28351 - $k[$j++] = 'height'; //#28351 - $k[$j++] = 6 / 72; //#28351 - $k[$j++] = 'width'; //#28351 - $k[$j++] = 53 / 72; //#28351 - $k[$j++] = 'opt'; //#28351 - $k[$j++] = $_.options; //#28351 - var _P = $d(); //#28351 - $k[$j++] = _P; //#28352 - bwipp_renmatrix(); //#28352 - $$.rmoveto(-2, 6); //#28355 - $k[$j++] = $_.comp; //#28355 - $k[$j++] = $_.options; //#28355 - bwipp_gs1_cc(); //#28355 + $k[$j++] = 1; //#28343 + $k[$j++] = 0; //#28343 + var _N = $a(); //#28343 + $k[$j++] = 'ren'; //#28349 + $k[$j++] = bwipp_renmatrix; //#28349 + $k[$j++] = 'pixs'; //#28349 + $k[$j++] = _N; //#28349 + $k[$j++] = 'pixx'; //#28349 + $k[$j++] = 69; //#28349 + $k[$j++] = 'pixy'; //#28349 + $k[$j++] = 3; //#28349 + $k[$j++] = 'height'; //#28349 + $k[$j++] = 6 / 72; //#28349 + $k[$j++] = 'width'; //#28349 + $k[$j++] = 69 / 72; //#28349 + $k[$j++] = 'opt'; //#28349 + $k[$j++] = $_.options; //#28349 + var _P = $d(); //#28349 + $k[$j++] = _P; //#28350 + bwipp_renmatrix(); //#28350 + $k[$j++] = $_.comp; //#28353 + $k[$j++] = $_.options; //#28353 + bwipp_gs1_cc(); //#28353 + var _S = $k[--$j]; //#28354 + $$.rmoveto($f(69 - $get(_S, "pixx")), 6); //#28354 + $k[$j++] = _S; //#28355 bwipp_renmatrix(); //#28355 $$.restore(); //#28357 } else { //#28423 @@ -36194,29 +36253,30 @@ function bwipp_upcecomposite() { $k[$j++] = 'linwidth'; //#28363 $k[$j++] = 0; //#28363 $forall($_.sbs, function() { //#28363 - var _a = $k[--$j]; //#28363 - var _b = $k[--$j]; //#28363 - $k[$j++] = $f(_b + $cvi(_a)); //#28363 + var _c = $k[--$j]; //#28363 + var _d = $k[--$j]; //#28363 + $k[$j++] = $f(_d + $cvi(_c)); //#28363 }); //#28363 - var _c = $k[--$j]; //#28363 - $_[$k[--$j]] = _c; //#28363 + var _e = $k[--$j]; //#28363 + $_[$k[--$j]] = _e; //#28363 + var _g = $_.comp; //#28365 $k[$j++] = 'compsym'; //#28365 - $k[$j++] = $_.comp; //#28365 + $k[$j++] = _g; //#28365 $k[$j++] = $_.options; //#28365 bwipp_gs1_cc(); //#28365 - var _g = $k[--$j]; //#28365 - $_[$k[--$j]] = _g; //#28365 + var _i = $k[--$j]; //#28365 + $_[$k[--$j]] = _i; //#28365 $_.ccpixs = $get($_.compsym, 'pixs'); //#28366 $_.ccpixx = $get($_.compsym, 'pixx'); //#28367 $k[$j++] = Infinity; //#28369 - for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28369 + for (var _p = 0, _q = $f($_.ccpixx - 69); _p < _q; _p++) { //#28369 $k[$j++] = 0; //#28369 } //#28369 $_.linpad = $a(); //#28369 - $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 2)) - $_.ccpixx); //#28371 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28371 if ($_.diff > 0) { //#28377 $k[$j++] = Infinity; //#28373 - for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28373 + for (var _x = 0, _y = $_.diff; _x < _y; _x++) { //#28373 $k[$j++] = 0; //#28373 } //#28373 $_.ccrpad = $a(); //#28373 @@ -36225,19 +36285,17 @@ function bwipp_upcecomposite() { $_.ccrpad = $a(0); //#28376 $_.pixx = $_.ccpixx; //#28377 } //#28377 - $k[$j++] = Infinity; //#28405 - for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28384 - $_.i = _15; //#28382 - for (var _17 = 0, _18 = 2; _17 < _18; _17++) { //#28383 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 - $aload($_.ccrpad); //#28383 - } //#28383 + $k[$j++] = Infinity; //#28380 + for (var _17 = 0, _18 = $_.ccpixx, _16 = $_.ccpixs.length - 1; _18 < 0 ? _17 >= _16 : _17 <= _16; _17 += _18) { //#28384 + $_.i = _17; //#28382 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28383 + $aload($_.ccrpad); //#28383 } //#28383 for (var _1E = 0, _1F = 2; _1E < _1F; _1E++) { //#28385 $aload($_.linpad); //#28385 $k[$j++] = 0; //#28385 $k[$j++] = 1; //#28385 - for (var _1H = 0, _1I = 49; _1H < _1I; _1H++) { //#28385 + for (var _1H = 0, _1I = 65; _1H < _1I; _1H++) { //#28385 $k[$j++] = 0; //#28385 } //#28385 $k[$j++] = 1; //#28385 @@ -36248,7 +36306,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28386 $k[$j++] = 1; //#28386 $k[$j++] = 0; //#28386 - for (var _1N = 0, _1O = 49; _1N < _1O; _1N++) { //#28386 + for (var _1N = 0, _1O = 65; _1N < _1O; _1N++) { //#28386 $k[$j++] = 0; //#28386 } //#28386 $k[$j++] = 0; //#28386 @@ -36259,7 +36317,7 @@ function bwipp_upcecomposite() { $aload($_.linpad); //#28387 $k[$j++] = 0; //#28387 $k[$j++] = 1; //#28387 - for (var _1T = 0, _1U = 49; _1T < _1U; _1T++) { //#28387 + for (var _1T = 0, _1U = 65; _1T < _1U; _1T++) { //#28387 $k[$j++] = 0; //#28387 } //#28387 $k[$j++] = 1; //#28387 @@ -36289,11 +36347,13 @@ function bwipp_upcecomposite() { } //#28402 } //#28402 } //#28402 - $k[$j++] = 0; //#28405 + if ($_.diff < 0) { //#28405 + $k[$j++] = 0; //#28405 + } //#28405 } //#28405 $_.pixs = $a(); //#28405 $_.pixy = ~~($_.pixs.length / $_.pixx); //#28409 - var _29 = new Map([ + var _2A = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36302,7 +36362,7 @@ function bwipp_upcecomposite() { ["width", $_.pixx / 72], ["opt", $_.options] ]); //#28417 - $k[$j++] = _29; //#28424 + $k[$j++] = _2A; //#28424 if (!$_.dontdraw) { //#28424 $$.save(); //#28421 bwipp_renmatrix(); //#28422 @@ -36310,9 +36370,8 @@ function bwipp_upcecomposite() { } //#28423 } //#28423 $_ = Object.getPrototypeOf($_); //#28427 -} - -function bwipp_databaromnicomposite() { +} //bwipp_ean8composite +function bwipp_upcacomposite() { $_ = Object.create($_); //#28459 $_.dontdraw = false; //#28462 $_.usematrix = false; //#28463 @@ -36337,87 +36396,517 @@ function bwipp_databaromnicomposite() { $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28479 bwipp_raiseerror(); //#28479 } //#28479 - if (!$_.usematrix) { //#28482 - $$.save(); //#28482 - } //#28482 - $put($_.options, "lintype", "databaromni"); //#28484 - $put($_.options, "linkage", true); //#28485 - $put($_.options, "inkspread", "0"); //#28486 - $put($_.options, "dontdraw", true); //#28487 - $put($_.options, "dontlint", true); //#28488 - var _F = $s($_.linear.length + $_.comp.length); //#28491 - $puti(_F, 0, $_.linear); //#28492 - $puti(_F, $_.linear.length, $_.comp); //#28493 - $k[$j++] = _F; //#28494 - $k[$j++] = 'ai'; //#28494 - bwipp_gs1process(); //#28494 - $j -= 3; //#28494 - $k[$j++] = $_.linear; //#28497 - $k[$j++] = $_.options; //#28497 - bwipp_databaromni(); //#28497 - var _L = $k[--$j]; //#28498 - $_.linsbs = $get(_L, "sbs"); //#28498 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28499 - $k[$j++] = _L; //#28500 - if (!$_.usematrix) { //#28500 - bwipp_renlinear(); //#28500 - } else { //#28500 - $j--; //#28500 - } //#28500 + $put($_.options, "lintype", "ean13"); //#28482 + $put($_.options, "inkspreadv", 0); //#28483 + $put($_.options, "dontdraw", true); //#28484 + $put($_.options, "dontlint", true); //#28485 + var _C = $s($_.comp.length + 18); //#28488 + $puti(_C, 0, "(01)00000000000000"); //#28489 + $puti(_C, 18, $_.comp); //#28490 + $k[$j++] = _C; //#28491 + $k[$j++] = 'ai'; //#28491 + bwipp_gs1process(); //#28491 + $j -= 3; //#28491 + $k[$j++] = $_.linear; //#28494 + $k[$j++] = $_.options; //#28494 + bwipp_upca(); //#28494 + if (!$_.usematrix) { //#28584 + $$.save(); //#28496 + bwipp_renlinear(); //#28498 + $$.rmoveto(-1, 72); //#28501 + $k[$j++] = Infinity; //#28501 + $k[$j++] = Infinity; //#28503 + $k[$j++] = 0; //#28504 + $k[$j++] = 1; //#28504 + for (var _H = 0, _I = 93; _H < _I; _H++) { //#28504 + $k[$j++] = 0; //#28504 + } //#28504 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + $k[$j++] = 1; //#28505 + $k[$j++] = 0; //#28505 + for (var _J = 0, _K = 93; _J < _K; _J++) { //#28505 + $k[$j++] = 0; //#28505 + } //#28505 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + $k[$j++] = 1; //#28506 + for (var _L = 0, _M = 93; _L < _M; _L++) { //#28506 + $k[$j++] = 0; //#28506 + } //#28506 + $k[$j++] = 1; //#28506 + $k[$j++] = 0; //#28506 + var _N = $a(); //#28506 + $k[$j++] = 'ren'; //#28512 + $k[$j++] = bwipp_renmatrix; //#28512 + $k[$j++] = 'pixs'; //#28512 + $k[$j++] = _N; //#28512 + $k[$j++] = 'pixx'; //#28512 + $k[$j++] = 97; //#28512 + $k[$j++] = 'pixy'; //#28512 + $k[$j++] = 3; //#28512 + $k[$j++] = 'height'; //#28512 + $k[$j++] = 6 / 72; //#28512 + $k[$j++] = 'width'; //#28512 + $k[$j++] = 97 / 72; //#28512 + $k[$j++] = 'opt'; //#28512 + $k[$j++] = $_.options; //#28512 + var _P = $d(); //#28512 + $k[$j++] = _P; //#28513 + bwipp_renmatrix(); //#28513 + $$.rmoveto(-2, 6); //#28516 + $k[$j++] = $_.comp; //#28516 + $k[$j++] = $_.options; //#28516 + bwipp_gs1_cc(); //#28516 + bwipp_renmatrix(); //#28516 + $$.restore(); //#28518 + } else { //#28584 + $_.linsym = $k[--$j]; //#28520 + $_.sbs = $get($_.linsym, 'sbs'); //#28521 + $_.bhs = $get($_.linsym, 'bhs'); //#28522 + $_.bbs = $get($_.linsym, 'bbs'); //#28523 + $k[$j++] = 'linwidth'; //#28524 + $k[$j++] = 0; //#28524 + $forall($_.sbs, function() { //#28524 + var _a = $k[--$j]; //#28524 + var _b = $k[--$j]; //#28524 + $k[$j++] = $f(_b + $cvi(_a)); //#28524 + }); //#28524 + var _c = $k[--$j]; //#28524 + $_[$k[--$j]] = _c; //#28524 + $k[$j++] = 'compsym'; //#28526 + $k[$j++] = $_.comp; //#28526 + $k[$j++] = $_.options; //#28526 + bwipp_gs1_cc(); //#28526 + var _g = $k[--$j]; //#28526 + $_[$k[--$j]] = _g; //#28526 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28527 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28528 + $k[$j++] = Infinity; //#28530 + for (var _n = 0, _o = $f($_.ccpixx - 97); _n < _o; _n++) { //#28530 + $k[$j++] = 0; //#28530 + } //#28530 + $_.linpad = $a(); //#28530 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28532 + if ($_.diff > 0) { //#28538 + $k[$j++] = Infinity; //#28534 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28534 + $k[$j++] = 0; //#28534 + } //#28534 + $_.ccrpad = $a(); //#28534 + $_.pixx = $f($_.ccpixx + $_.diff); //#28535 + } else { //#28538 + $_.ccrpad = $a(0); //#28537 + $_.pixx = $_.ccpixx; //#28538 + } //#28538 + $k[$j++] = Infinity; //#28541 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28545 + $_.i = _15; //#28543 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28544 + $aload($_.ccrpad); //#28544 + } //#28544 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28546 + $aload($_.linpad); //#28546 + $k[$j++] = 0; //#28546 + $k[$j++] = 1; //#28546 + for (var _1F = 0, _1G = 93; _1F < _1G; _1F++) { //#28546 + $k[$j++] = 0; //#28546 + } //#28546 + $k[$j++] = 1; //#28546 + $k[$j++] = 0; //#28546 + $aload($_.ccrpad); //#28546 + } //#28546 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28547 + $aload($_.linpad); //#28547 + $k[$j++] = 1; //#28547 + $k[$j++] = 0; //#28547 + for (var _1L = 0, _1M = 93; _1L < _1M; _1L++) { //#28547 + $k[$j++] = 0; //#28547 + } //#28547 + $k[$j++] = 0; //#28547 + $k[$j++] = 1; //#28547 + $aload($_.ccrpad); //#28547 + } //#28547 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28548 + $aload($_.linpad); //#28548 + $k[$j++] = 0; //#28548 + $k[$j++] = 1; //#28548 + for (var _1R = 0, _1S = 93; _1R < _1S; _1R++) { //#28548 + $k[$j++] = 0; //#28548 + } //#28548 + $k[$j++] = 1; //#28548 + $k[$j++] = 0; //#28548 + $aload($_.ccrpad); //#28548 + } //#28548 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28567 + $_.y = _1U; //#28550 + $aload($_.linpad); //#28551 + $k[$j++] = 0; //#28565 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28565 + $_.i = _1Y; //#28554 + if (($_.i % 2) == 0) { //#28563 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28557 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28560 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28558 + $k[$j++] = 0; //#28558 + } //#28558 + } else { //#28560 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28560 + $k[$j++] = 1; //#28560 + } //#28560 + } //#28560 + } else { //#28563 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28563 + $k[$j++] = 0; //#28563 + } //#28563 + } //#28563 + } //#28563 + if ($_.diff < 0) { //#28566 + $k[$j++] = 0; //#28566 + } //#28566 + } //#28566 + $_.pixs = $a(); //#28566 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28570 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28578 + $k[$j++] = _28; //#28585 + if (!$_.dontdraw) { //#28585 + $$.save(); //#28582 + bwipp_renmatrix(); //#28583 + $$.restore(); //#28584 + } //#28584 + } //#28584 + $_ = Object.getPrototypeOf($_); //#28588 +} //bwipp_upcacomposite +function bwipp_upcecomposite() { + $_ = Object.create($_); //#28620 + $_.dontdraw = false; //#28623 + $_.usematrix = false; //#28624 + $_.parse = false; //#28625 + $_.dontlint = false; //#28626 + $_.lintreqs = true; //#28627 + $k[$j++] = $_; //#28629 + bwipp_processoptions(); //#28629 + $_.options = $k[--$j]; //#28629 + $_.barcode = $k[--$j]; //#28630 + if ($_.dontdraw) { //#28632 + $_.usematrix = true; //#28632 + } //#28632 + $search($_.barcode, "|"); //#28635 + if ($k[--$j]) { //#28640 + $_.linear = $k[--$j]; //#28636 + $j--; //#28637 + $_.comp = $k[--$j]; //#28638 + } else { //#28640 + $j--; //#28640 + $k[$j++] = 'bwipp.missingCompositeComponent#28640'; //#28640 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28640 + bwipp_raiseerror(); //#28640 + } //#28640 + $put($_.options, "lintype", "upce"); //#28643 + $put($_.options, "inkspreadv", 0); //#28644 + $put($_.options, "dontdraw", true); //#28645 + $put($_.options, "dontlint", true); //#28646 + var _C = $s($_.comp.length + 18); //#28649 + $puti(_C, 0, "(01)00000000000000"); //#28650 + $puti(_C, 18, $_.comp); //#28651 + $k[$j++] = _C; //#28652 + $k[$j++] = 'ai'; //#28652 + bwipp_gs1process(); //#28652 + $j -= 3; //#28652 + $k[$j++] = $_.linear; //#28655 + $k[$j++] = $_.options; //#28655 + bwipp_upce(); //#28655 + if (!$_.usematrix) { //#28745 + $$.save(); //#28657 + bwipp_renlinear(); //#28659 + $$.rmoveto(-1, 72); //#28662 + $k[$j++] = Infinity; //#28662 + $k[$j++] = Infinity; //#28664 + $k[$j++] = 0; //#28665 + $k[$j++] = 1; //#28665 + for (var _H = 0, _I = 49; _H < _I; _H++) { //#28665 + $k[$j++] = 0; //#28665 + } //#28665 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + $k[$j++] = 1; //#28666 + $k[$j++] = 0; //#28666 + for (var _J = 0, _K = 49; _J < _K; _J++) { //#28666 + $k[$j++] = 0; //#28666 + } //#28666 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + $k[$j++] = 1; //#28667 + for (var _L = 0, _M = 49; _L < _M; _L++) { //#28667 + $k[$j++] = 0; //#28667 + } //#28667 + $k[$j++] = 1; //#28667 + $k[$j++] = 0; //#28667 + var _N = $a(); //#28667 + $k[$j++] = 'ren'; //#28673 + $k[$j++] = bwipp_renmatrix; //#28673 + $k[$j++] = 'pixs'; //#28673 + $k[$j++] = _N; //#28673 + $k[$j++] = 'pixx'; //#28673 + $k[$j++] = 53; //#28673 + $k[$j++] = 'pixy'; //#28673 + $k[$j++] = 3; //#28673 + $k[$j++] = 'height'; //#28673 + $k[$j++] = 6 / 72; //#28673 + $k[$j++] = 'width'; //#28673 + $k[$j++] = 53 / 72; //#28673 + $k[$j++] = 'opt'; //#28673 + $k[$j++] = $_.options; //#28673 + var _P = $d(); //#28673 + $k[$j++] = _P; //#28674 + bwipp_renmatrix(); //#28674 + $$.rmoveto(-2, 6); //#28677 + $k[$j++] = $_.comp; //#28677 + $k[$j++] = $_.options; //#28677 + bwipp_gs1_cc(); //#28677 + bwipp_renmatrix(); //#28677 + $$.restore(); //#28679 + } else { //#28745 + $_.linsym = $k[--$j]; //#28681 + $_.sbs = $get($_.linsym, 'sbs'); //#28682 + $_.bhs = $get($_.linsym, 'bhs'); //#28683 + $_.bbs = $get($_.linsym, 'bbs'); //#28684 + $k[$j++] = 'linwidth'; //#28685 + $k[$j++] = 0; //#28685 + $forall($_.sbs, function() { //#28685 + var _a = $k[--$j]; //#28685 + var _b = $k[--$j]; //#28685 + $k[$j++] = $f(_b + $cvi(_a)); //#28685 + }); //#28685 + var _c = $k[--$j]; //#28685 + $_[$k[--$j]] = _c; //#28685 + $k[$j++] = 'compsym'; //#28687 + $k[$j++] = $_.comp; //#28687 + $k[$j++] = $_.options; //#28687 + bwipp_gs1_cc(); //#28687 + var _g = $k[--$j]; //#28687 + $_[$k[--$j]] = _g; //#28687 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28688 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28689 + $k[$j++] = Infinity; //#28691 + for (var _n = 0, _o = $f($_.ccpixx - 53); _n < _o; _n++) { //#28691 + $k[$j++] = 0; //#28691 + } //#28691 + $_.linpad = $a(); //#28691 + $_.diff = $f(($f($f($_.linwidth + $_.linpad.length) + 1)) - $_.ccpixx); //#28693 + if ($_.diff > 0) { //#28699 + $k[$j++] = Infinity; //#28695 + for (var _v = 0, _w = $_.diff; _v < _w; _v++) { //#28695 + $k[$j++] = 0; //#28695 + } //#28695 + $_.ccrpad = $a(); //#28695 + $_.pixx = $f($_.ccpixx + $_.diff); //#28696 + } else { //#28699 + $_.ccrpad = $a(0); //#28698 + $_.pixx = $_.ccpixx; //#28699 + } //#28699 + $k[$j++] = Infinity; //#28702 + for (var _15 = 0, _16 = $_.ccpixx, _14 = $_.ccpixs.length - 1; _16 < 0 ? _15 >= _14 : _15 <= _14; _15 += _16) { //#28706 + $_.i = _15; //#28704 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28705 + $aload($_.ccrpad); //#28705 + } //#28705 + for (var _1C = 0, _1D = 2; _1C < _1D; _1C++) { //#28707 + $aload($_.linpad); //#28707 + $k[$j++] = 0; //#28707 + $k[$j++] = 1; //#28707 + for (var _1F = 0, _1G = 49; _1F < _1G; _1F++) { //#28707 + $k[$j++] = 0; //#28707 + } //#28707 + $k[$j++] = 1; //#28707 + $k[$j++] = 0; //#28707 + $aload($_.ccrpad); //#28707 + } //#28707 + for (var _1I = 0, _1J = 2; _1I < _1J; _1I++) { //#28708 + $aload($_.linpad); //#28708 + $k[$j++] = 1; //#28708 + $k[$j++] = 0; //#28708 + for (var _1L = 0, _1M = 49; _1L < _1M; _1L++) { //#28708 + $k[$j++] = 0; //#28708 + } //#28708 + $k[$j++] = 0; //#28708 + $k[$j++] = 1; //#28708 + $aload($_.ccrpad); //#28708 + } //#28708 + for (var _1O = 0, _1P = 2; _1O < _1P; _1O++) { //#28709 + $aload($_.linpad); //#28709 + $k[$j++] = 0; //#28709 + $k[$j++] = 1; //#28709 + for (var _1R = 0, _1S = 49; _1R < _1S; _1R++) { //#28709 + $k[$j++] = 0; //#28709 + } //#28709 + $k[$j++] = 1; //#28709 + $k[$j++] = 0; //#28709 + $aload($_.ccrpad); //#28709 + } //#28709 + for (var _1U = 71; _1U >= 0; _1U -= 1) { //#28728 + $_.y = _1U; //#28711 + $aload($_.linpad); //#28712 + $k[$j++] = 0; //#28726 + for (var _1Y = 0, _1X = $_.sbs.length - 1; _1Y <= _1X; _1Y += 1) { //#28726 + $_.i = _1Y; //#28715 + if (($_.i % 2) == 0) { //#28724 + var _1d = $get($_.bbs, ~~($_.i / 2)) * 72; //#28718 + if ((_1d > $_.y) || (($f(_1d + ($get($_.bhs, ~~($_.i / 2)) * 72))) < $_.y)) { //#28721 + for (var _1m = 0, _1n = $cvi($get($_.sbs, $_.i)); _1m < _1n; _1m++) { //#28719 + $k[$j++] = 0; //#28719 + } //#28719 + } else { //#28721 + for (var _1r = 0, _1s = $cvi($get($_.sbs, $_.i)); _1r < _1s; _1r++) { //#28721 + $k[$j++] = 1; //#28721 + } //#28721 + } //#28721 + } else { //#28724 + for (var _1w = 0, _1x = $cvi($get($_.sbs, $_.i)); _1w < _1x; _1w++) { //#28724 + $k[$j++] = 0; //#28724 + } //#28724 + } //#28724 + } //#28724 + if ($_.diff < 0) { //#28727 + $k[$j++] = 0; //#28727 + } //#28727 + } //#28727 + $_.pixs = $a(); //#28727 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28731 + var _28 = new Map([ + ["ren", bwipp_renmatrix], + ["pixs", $_.pixs], + ["pixx", $_.pixx], + ["pixy", $_.pixy], + ["height", $_.pixy / 72], + ["width", $_.pixx / 72], + ["opt", $_.options] + ]); //#28739 + $k[$j++] = _28; //#28746 + if (!$_.dontdraw) { //#28746 + $$.save(); //#28743 + bwipp_renmatrix(); //#28744 + $$.restore(); //#28745 + } //#28745 + } //#28745 + $_ = Object.getPrototypeOf($_); //#28749 +} //bwipp_upcecomposite +function bwipp_databaromnicomposite() { + $_ = Object.create($_); //#28781 + $_.dontdraw = false; //#28784 + $_.usematrix = false; //#28785 + $_.parse = false; //#28786 + $_.dontlint = false; //#28787 + $_.lintreqs = true; //#28788 + $k[$j++] = $_; //#28790 + bwipp_processoptions(); //#28790 + $_.options = $k[--$j]; //#28790 + $_.barcode = $k[--$j]; //#28791 + if ($_.dontdraw) { //#28793 + $_.usematrix = true; //#28793 + } //#28793 + $search($_.barcode, "|"); //#28796 + if ($k[--$j]) { //#28801 + $_.linear = $k[--$j]; //#28797 + $j--; //#28798 + $_.comp = $k[--$j]; //#28799 + } else { //#28801 + $j--; //#28801 + $k[$j++] = 'bwipp.missingCompositeComponent#28801'; //#28801 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28801 + bwipp_raiseerror(); //#28801 + } //#28801 + if (!$_.usematrix) { //#28804 + $$.save(); //#28804 + } //#28804 + $put($_.options, "lintype", "databaromni"); //#28806 + $put($_.options, "linkage", true); //#28807 + $put($_.options, "inkspreadv", 0); //#28808 + $put($_.options, "dontdraw", true); //#28809 + $put($_.options, "dontlint", true); //#28810 + var _F = $s($_.linear.length + $_.comp.length); //#28813 + $puti(_F, 0, $_.linear); //#28814 + $puti(_F, $_.linear.length, $_.comp); //#28815 + $k[$j++] = _F; //#28816 + $k[$j++] = 'ai'; //#28816 + bwipp_gs1process(); //#28816 + $j -= 3; //#28816 + $k[$j++] = $_.linear; //#28819 + $k[$j++] = $_.options; //#28819 + bwipp_databaromni(); //#28819 + var _L = $k[--$j]; //#28820 + $_.linsbs = $get(_L, "sbs"); //#28820 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28821 + $k[$j++] = _L; //#28822 + if (!$_.usematrix) { //#28822 + bwipp_renlinear(); //#28822 + } else { //#28822 + $j--; //#28822 + } //#28822 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28504 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28517 - $_.i = _U; //#28506 - if ($get($_.bot, $_.i) == 0) { //#28514 - if ($get($_.bot, $_.i - 1) == 1) { //#28511 - $k[$j++] = 1; //#28509 - } else { //#28511 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28511 - $k[$j++] = _e; //#28511 - } //#28511 - } else { //#28514 - $k[$j++] = 0; //#28514 - } //#28514 - $put($_.sep, $_.i, $k[--$j]); //#28516 - } //#28516 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28518 - $k[$j++] = true; //#28519 - for (var _j = 0; _j <= 12; _j += 1) { //#28519 - var _p = $k[--$j]; //#28519 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28519 - } //#28519 - if ($k[--$j]) { //#28522 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28521 - } //#28521 - }; //#28521 - $k[$j++] = Infinity; //#28524 - $k[$j++] = 0; //#28525 - $forall($_.linsbs, function() { //#28525 - var _v = $k[--$j]; //#28525 - var _w = $k[--$j]; //#28525 - var _x = (_w == 1) ? 0 : 1; //#28525 - $k[$j++] = _w; //#28525 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28525 - $k[$j++] = _x //#28525 - } //#28525 - }); //#28525 - $astore($a($counttomark() - 1)); //#28526 - $_.bot = $k[--$j]; //#28526 - $j -= 2; //#28526 - $k[$j++] = Infinity; //#28527 - $forall($_.bot, function() { //#28527 - var _14 = $k[--$j]; //#28527 - $k[$j++] = $f(1 - _14); //#28527 - }); //#28527 - $_.sep = $a(); //#28527 - $puti($_.sep, 0, $a([0, 0, 0])); //#28528 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28529 - $k[$j++] = 18; //#28530 - $_.sepfinder(); //#28530 - $k[$j++] = 64; //#28530 - $_.sepfinder(); //#28530 - if (!$_.usematrix) { //#28581 - $$.rmoveto(0, $_.linheight); //#28532 + $_.fp = $k[--$j]; //#28826 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28839 + $_.i = _U; //#28828 + if ($get($_.bot, $_.i) == 0) { //#28836 + if ($get($_.bot, $_.i - 1) == 1) { //#28833 + $k[$j++] = 1; //#28831 + } else { //#28833 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28833 + $k[$j++] = _e; //#28833 + } //#28833 + } else { //#28836 + $k[$j++] = 0; //#28836 + } //#28836 + $put($_.sep, $_.i, $k[--$j]); //#28838 + } //#28838 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28840 + $k[$j++] = true; //#28841 + for (var _j = 0; _j <= 12; _j += 1) { //#28841 + var _p = $k[--$j]; //#28841 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28841 + } //#28841 + if ($k[--$j]) { //#28844 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28843 + } //#28843 + }; //#28843 + $k[$j++] = Infinity; //#28846 + $k[$j++] = 0; //#28847 + $forall($_.linsbs, function() { //#28847 + var _v = $k[--$j]; //#28847 + var _w = $k[--$j]; //#28847 + var _x = (_w == 1) ? 0 : 1; //#28847 + $k[$j++] = _w; //#28847 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#28847 + $k[$j++] = _x //#28847 + } //#28847 + }); //#28847 + $astore($a($counttomark() - 1)); //#28848 + $_.bot = $k[--$j]; //#28848 + $j -= 2; //#28848 + $k[$j++] = Infinity; //#28849 + $forall($_.bot, function() { //#28849 + var _14 = $k[--$j]; //#28849 + $k[$j++] = $f(1 - _14); //#28849 + }); //#28849 + $_.sep = $a(); //#28849 + $puti($_.sep, 0, $a([0, 0, 0])); //#28850 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28851 + $k[$j++] = 18; //#28852 + $_.sepfinder(); //#28852 + $k[$j++] = 64; //#28852 + $_.sepfinder(); //#28852 + if (!$_.usematrix) { //#28903 + $$.rmoveto(0, $_.linheight); //#28854 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36426,65 +36915,63 @@ function bwipp_databaromnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28539 - $k[$j++] = _1H; //#28540 - bwipp_renmatrix(); //#28540 - $$.rmoveto(-5, 1); //#28543 - $k[$j++] = $_.comp; //#28543 - $k[$j++] = $_.options; //#28543 - bwipp_gs1_cc(); //#28543 - bwipp_renmatrix(); //#28543 - $$.restore(); //#28545 - } else { //#28581 - $k[$j++] = 'compsym'; //#28547 - $k[$j++] = $_.comp; //#28547 - $k[$j++] = $_.options; //#28547 - bwipp_gs1_cc(); //#28547 - var _1M = $k[--$j]; //#28547 - $_[$k[--$j]] = _1M; //#28547 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28548 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28549 - $k[$j++] = Infinity; //#28552 - $k[$j++] = 0; //#28552 - $forall($_.linsbs, function() { //#28552 - var _1T = $k[--$j]; //#28552 - var _1U = $k[--$j]; //#28552 - var _1V = (_1U == 0) ? 1 : 0; //#28552 - $k[$j++] = _1U; //#28552 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28552 - $k[$j++] = _1V //#28552 - } //#28552 - }); //#28552 - $_.linpixs = $a(); //#28552 - $k[$j++] = Infinity; //#28554 - $k[$j++] = 0; //#28554 - $aload($_.sep); //#28554 - $_.sep = $a(); //#28554 - $_.linheight = ~~$_.linheight; //#28556 - $k[$j++] = Infinity; //#28563 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28562 - $_.i = _1f; //#28560 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#28561 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28561 - $k[$j++] = 0; //#28561 - } //#28561 - } //#28561 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.sep); //#28563 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $k[$j++] = 0; //#28563 - $aload($_.linpixs); //#28563 - } //#28563 - $_.pixs = $a(); //#28563 - $_.pixx = $f($_.ccpixx + 1); //#28565 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28567 - var _22 = new Map([ + ]); //#28861 + $k[$j++] = _1H; //#28862 + bwipp_renmatrix(); //#28862 + $$.rmoveto(-5, 1); //#28865 + $k[$j++] = $_.comp; //#28865 + $k[$j++] = $_.options; //#28865 + bwipp_gs1_cc(); //#28865 + bwipp_renmatrix(); //#28865 + $$.restore(); //#28867 + } else { //#28903 + $k[$j++] = 'compsym'; //#28869 + $k[$j++] = $_.comp; //#28869 + $k[$j++] = $_.options; //#28869 + bwipp_gs1_cc(); //#28869 + var _1M = $k[--$j]; //#28869 + $_[$k[--$j]] = _1M; //#28869 + $_.ccpixs = $get($_.compsym, 'pixs'); //#28870 + $_.ccpixx = $get($_.compsym, 'pixx'); //#28871 + $k[$j++] = Infinity; //#28873 + $k[$j++] = 0; //#28874 + $forall($_.linsbs, function() { //#28874 + var _1T = $k[--$j]; //#28874 + var _1U = $k[--$j]; //#28874 + var _1V = (_1U == 0) ? 1 : 0; //#28874 + $k[$j++] = _1U; //#28874 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#28874 + $k[$j++] = _1V //#28874 + } //#28874 + }); //#28874 + $_.linpixs = $a(); //#28874 + $k[$j++] = Infinity; //#28876 + $k[$j++] = 0; //#28876 + $aload($_.sep); //#28876 + $_.sep = $a(); //#28876 + $_.linheight = ~~$_.linheight; //#28878 + $k[$j++] = Infinity; //#28880 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#28884 + $_.i = _1f; //#28882 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28883 + $k[$j++] = 0; //#28883 + } //#28883 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.sep); //#28885 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $k[$j++] = 0; //#28885 + $aload($_.linpixs); //#28885 + } //#28885 + $_.pixs = $a(); //#28885 + $_.pixx = $f($_.ccpixx + 1); //#28887 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#28889 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36492,107 +36979,106 @@ function bwipp_databaromnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28575 - $k[$j++] = _22; //#28582 - if (!$_.dontdraw) { //#28582 - $$.save(); //#28579 - bwipp_renmatrix(); //#28580 - $$.restore(); //#28581 - } //#28581 - } //#28581 - $_ = Object.getPrototypeOf($_); //#28585 -} - + ]); //#28897 + $k[$j++] = _20; //#28904 + if (!$_.dontdraw) { //#28904 + $$.save(); //#28901 + bwipp_renmatrix(); //#28902 + $$.restore(); //#28903 + } //#28903 + } //#28903 + $_ = Object.getPrototypeOf($_); //#28907 +} //bwipp_databaromnicomposite function bwipp_databarstackedcomposite() { - $_ = Object.create($_); //#28616 - $_.dontdraw = false; //#28619 - $_.usematrix = false; //#28620 - $_.parse = false; //#28621 - $_.dontlint = false; //#28622 - $_.lintreqs = true; //#28623 - $k[$j++] = $_; //#28625 - bwipp_processoptions(); //#28625 - $_.options = $k[--$j]; //#28625 - $_.barcode = $k[--$j]; //#28626 - if ($_.dontdraw) { //#28628 - $_.usematrix = true; //#28628 - } //#28628 - $search($_.barcode, "|"); //#28631 - if ($k[--$j]) { //#28636 - $_.linear = $k[--$j]; //#28632 - $j--; //#28633 - $_.comp = $k[--$j]; //#28634 - } else { //#28636 - $j--; //#28636 - $k[$j++] = 'bwipp.missingCompositeComponent#28636'; //#28636 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28636 - bwipp_raiseerror(); //#28636 - } //#28636 - if (!$_.usematrix) { //#28639 - $$.save(); //#28639 - } //#28639 - $put($_.options, "lintype", "databarstacked"); //#28641 - $put($_.options, "linkage", true); //#28642 - $put($_.options, "inkspread", "0"); //#28643 - $put($_.options, "dontdraw", true); //#28644 - $put($_.options, "dontlint", true); //#28645 - var _F = $s($_.linear.length + $_.comp.length); //#28648 - $puti(_F, 0, $_.linear); //#28649 - $puti(_F, $_.linear.length, $_.comp); //#28650 - $k[$j++] = _F; //#28651 - $k[$j++] = 'ai'; //#28651 - bwipp_gs1process(); //#28651 - $j -= 3; //#28651 - $k[$j++] = $_.linear; //#28654 - $k[$j++] = $_.options; //#28654 - bwipp_databarstacked(); //#28654 - var _L = $k[--$j]; //#28655 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28655 - $_.linheight = $get(_L, "pixy"); //#28656 - $k[$j++] = _L; //#28657 - if (!$_.usematrix) { //#28657 - bwipp_renmatrix(); //#28657 - } else { //#28657 - $_.linpixs = $get($k[--$j], 'pixs'); //#28657 - } //#28657 + $_ = Object.create($_); //#28938 + $_.dontdraw = false; //#28941 + $_.usematrix = false; //#28942 + $_.parse = false; //#28943 + $_.dontlint = false; //#28944 + $_.lintreqs = true; //#28945 + $k[$j++] = $_; //#28947 + bwipp_processoptions(); //#28947 + $_.options = $k[--$j]; //#28947 + $_.barcode = $k[--$j]; //#28948 + if ($_.dontdraw) { //#28950 + $_.usematrix = true; //#28950 + } //#28950 + $search($_.barcode, "|"); //#28953 + if ($k[--$j]) { //#28958 + $_.linear = $k[--$j]; //#28954 + $j--; //#28955 + $_.comp = $k[--$j]; //#28956 + } else { //#28958 + $j--; //#28958 + $k[$j++] = 'bwipp.missingCompositeComponent#28958'; //#28958 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28958 + bwipp_raiseerror(); //#28958 + } //#28958 + if (!$_.usematrix) { //#28961 + $$.save(); //#28961 + } //#28961 + $put($_.options, "lintype", "databarstacked"); //#28963 + $put($_.options, "linkage", true); //#28964 + $put($_.options, "inkspreadv", 0); //#28965 + $put($_.options, "dontdraw", true); //#28966 + $put($_.options, "dontlint", true); //#28967 + var _F = $s($_.linear.length + $_.comp.length); //#28970 + $puti(_F, 0, $_.linear); //#28971 + $puti(_F, $_.linear.length, $_.comp); //#28972 + $k[$j++] = _F; //#28973 + $k[$j++] = 'ai'; //#28973 + bwipp_gs1process(); //#28973 + $j -= 3; //#28973 + $k[$j++] = $_.linear; //#28976 + $k[$j++] = $_.options; //#28976 + bwipp_databarstacked(); //#28976 + var _L = $k[--$j]; //#28977 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28977 + $_.linheight = $get(_L, "pixy"); //#28978 + $k[$j++] = _L; //#28979 + if (!$_.usematrix) { //#28979 + bwipp_renmatrix(); //#28979 + } else { //#28979 + $_.linpixs = $get($k[--$j], 'pixs'); //#28979 + } //#28979 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28661 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28674 - $_.i = _X; //#28663 - if ($get($_.bot, $_.i) == 0) { //#28671 - if ($get($_.bot, $_.i - 1) == 1) { //#28668 - $k[$j++] = 1; //#28666 - } else { //#28668 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28668 - $k[$j++] = _h; //#28668 - } //#28668 - } else { //#28671 - $k[$j++] = 0; //#28671 - } //#28671 - $put($_.sep, $_.i, $k[--$j]); //#28673 - } //#28673 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28675 - $k[$j++] = true; //#28676 - for (var _m = 0; _m <= 12; _m += 1) { //#28676 - var _s = $k[--$j]; //#28676 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28676 - } //#28676 - if ($k[--$j]) { //#28679 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28678 - } //#28678 - }; //#28678 - $k[$j++] = Infinity; //#28681 - var _x = $_.bot; //#28681 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28681 - $k[$j++] = $f(1 - $get(_x, _y)); //#28681 - } //#28681 - $_.sep = $a(); //#28681 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28682 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28683 - $k[$j++] = 18; //#28684 - $_.sepfinder(); //#28684 - if (!$_.usematrix) { //#28734 - $$.rmoveto(0, $_.linheight); //#28686 + $_.fp = $k[--$j]; //#28983 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28996 + $_.i = _X; //#28985 + if ($get($_.bot, $_.i) == 0) { //#28993 + if ($get($_.bot, $_.i - 1) == 1) { //#28990 + $k[$j++] = 1; //#28988 + } else { //#28990 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28990 + $k[$j++] = _h; //#28990 + } //#28990 + } else { //#28993 + $k[$j++] = 0; //#28993 + } //#28993 + $put($_.sep, $_.i, $k[--$j]); //#28995 + } //#28995 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28997 + $k[$j++] = true; //#28998 + for (var _m = 0; _m <= 12; _m += 1) { //#28998 + var _s = $k[--$j]; //#28998 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28998 + } //#28998 + if ($k[--$j]) { //#29001 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29000 + } //#29000 + }; //#29000 + $k[$j++] = Infinity; //#29003 + var _x = $_.bot; //#29003 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29003 + $k[$j++] = $f(1 - $get(_x, _y)); //#29003 + } //#29003 + $_.sep = $a(); //#29003 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29004 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29005 + $k[$j++] = 18; //#29006 + $_.sepfinder(); //#29006 + if (!$_.usematrix) { //#29056 + $$.rmoveto(0, $_.linheight); //#29008 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36601,54 +37087,52 @@ function bwipp_databarstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28693 - $k[$j++] = _1D; //#28694 - bwipp_renmatrix(); //#28694 - $$.rmoveto(1, 1); //#28697 - $k[$j++] = $_.comp; //#28697 - $k[$j++] = $_.options; //#28697 - bwipp_gs1_cc(); //#28697 - bwipp_renmatrix(); //#28697 - $$.restore(); //#28699 - } else { //#28734 - $k[$j++] = 'compsym'; //#28701 - $k[$j++] = $_.comp; //#28701 - $k[$j++] = $_.options; //#28701 - bwipp_gs1_cc(); //#28701 - var _1I = $k[--$j]; //#28701 - $_[$k[--$j]] = _1I; //#28701 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28702 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28703 - $_.linwidth = $_.sep.length; //#28705 - $k[$j++] = Infinity; //#28715 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28711 - $_.i = _1S; //#28709 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28710 - $k[$j++] = 0; //#28710 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28710 - } //#28710 - } //#28710 - $aload($_.sep); //#28712 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - $k[$j++] = 0; //#28716 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28716 - $_.i = _1e; //#28714 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - $k[$j++] = 0; //#28715 - } //#28715 - $_.pixs = $a(); //#28715 - $_.pixx = $f($_.ccpixx + 1); //#28718 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28720 - var _1u = new Map([ + ]); //#29015 + $k[$j++] = _1D; //#29016 + bwipp_renmatrix(); //#29016 + $$.rmoveto(1, 1); //#29019 + $k[$j++] = $_.comp; //#29019 + $k[$j++] = $_.options; //#29019 + bwipp_gs1_cc(); //#29019 + bwipp_renmatrix(); //#29019 + $$.restore(); //#29021 + } else { //#29056 + $k[$j++] = 'compsym'; //#29023 + $k[$j++] = $_.comp; //#29023 + $k[$j++] = $_.options; //#29023 + bwipp_gs1_cc(); //#29023 + var _1I = $k[--$j]; //#29023 + $_[$k[--$j]] = _1I; //#29023 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29024 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29025 + $_.linwidth = $_.sep.length; //#29027 + $k[$j++] = Infinity; //#29029 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29033 + $_.i = _1S; //#29031 + $k[$j++] = 0; //#29032 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29032 + } //#29032 + $aload($_.sep); //#29034 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + $k[$j++] = 0; //#29038 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29038 + $_.i = _1c; //#29036 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + $k[$j++] = 0; //#29037 + } //#29037 + $_.pixs = $a(); //#29037 + $_.pixx = $f($_.ccpixx + 1); //#29040 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29042 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36656,107 +37140,106 @@ function bwipp_databarstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28728 - $k[$j++] = _1u; //#28735 - if (!$_.dontdraw) { //#28735 - $$.save(); //#28732 - bwipp_renmatrix(); //#28733 - $$.restore(); //#28734 - } //#28734 - } //#28734 - $_ = Object.getPrototypeOf($_); //#28738 -} - + ]); //#29050 + $k[$j++] = _1s; //#29057 + if (!$_.dontdraw) { //#29057 + $$.save(); //#29054 + bwipp_renmatrix(); //#29055 + $$.restore(); //#29056 + } //#29056 + } //#29056 + $_ = Object.getPrototypeOf($_); //#29060 +} //bwipp_databarstackedcomposite function bwipp_databarstackedomnicomposite() { - $_ = Object.create($_); //#28769 - $_.dontdraw = false; //#28772 - $_.usematrix = false; //#28773 - $_.parse = false; //#28774 - $_.dontlint = false; //#28775 - $_.lintreqs = true; //#28776 - $k[$j++] = $_; //#28778 - bwipp_processoptions(); //#28778 - $_.options = $k[--$j]; //#28778 - $_.barcode = $k[--$j]; //#28779 - if ($_.dontdraw) { //#28781 - $_.usematrix = true; //#28781 - } //#28781 - $search($_.barcode, "|"); //#28784 - if ($k[--$j]) { //#28789 - $_.linear = $k[--$j]; //#28785 - $j--; //#28786 - $_.comp = $k[--$j]; //#28787 - } else { //#28789 - $j--; //#28789 - $k[$j++] = 'bwipp.missingCompositeComponent#28789'; //#28789 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28789 - bwipp_raiseerror(); //#28789 - } //#28789 - if (!$_.usematrix) { //#28792 - $$.save(); //#28792 - } //#28792 - $put($_.options, "lintype", "databarstackedomni"); //#28794 - $put($_.options, "linkage", true); //#28795 - $put($_.options, "inkspread", "0"); //#28796 - $put($_.options, "dontdraw", true); //#28797 - $put($_.options, "dontlint", true); //#28798 - var _F = $s($_.linear.length + $_.comp.length); //#28801 - $puti(_F, 0, $_.linear); //#28802 - $puti(_F, $_.linear.length, $_.comp); //#28803 - $k[$j++] = _F; //#28804 - $k[$j++] = 'ai'; //#28804 - bwipp_gs1process(); //#28804 - $j -= 3; //#28804 - $k[$j++] = $_.linear; //#28807 - $k[$j++] = $_.options; //#28807 - bwipp_databarstackedomni(); //#28807 - var _L = $k[--$j]; //#28808 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#28808 - $_.linheight = $get(_L, "pixy"); //#28809 - $k[$j++] = _L; //#28810 - if (!$_.usematrix) { //#28810 - bwipp_renmatrix(); //#28810 - } else { //#28810 - $_.linpixs = $get($k[--$j], 'pixs'); //#28810 - } //#28810 + $_ = Object.create($_); //#29091 + $_.dontdraw = false; //#29094 + $_.usematrix = false; //#29095 + $_.parse = false; //#29096 + $_.dontlint = false; //#29097 + $_.lintreqs = true; //#29098 + $k[$j++] = $_; //#29100 + bwipp_processoptions(); //#29100 + $_.options = $k[--$j]; //#29100 + $_.barcode = $k[--$j]; //#29101 + if ($_.dontdraw) { //#29103 + $_.usematrix = true; //#29103 + } //#29103 + $search($_.barcode, "|"); //#29106 + if ($k[--$j]) { //#29111 + $_.linear = $k[--$j]; //#29107 + $j--; //#29108 + $_.comp = $k[--$j]; //#29109 + } else { //#29111 + $j--; //#29111 + $k[$j++] = 'bwipp.missingCompositeComponent#29111'; //#29111 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29111 + bwipp_raiseerror(); //#29111 + } //#29111 + if (!$_.usematrix) { //#29114 + $$.save(); //#29114 + } //#29114 + $put($_.options, "lintype", "databarstackedomni"); //#29116 + $put($_.options, "linkage", true); //#29117 + $put($_.options, "inkspreadv", 0); //#29118 + $put($_.options, "dontdraw", true); //#29119 + $put($_.options, "dontlint", true); //#29120 + var _F = $s($_.linear.length + $_.comp.length); //#29123 + $puti(_F, 0, $_.linear); //#29124 + $puti(_F, $_.linear.length, $_.comp); //#29125 + $k[$j++] = _F; //#29126 + $k[$j++] = 'ai'; //#29126 + bwipp_gs1process(); //#29126 + $j -= 3; //#29126 + $k[$j++] = $_.linear; //#29129 + $k[$j++] = $_.options; //#29129 + bwipp_databarstackedomni(); //#29129 + var _L = $k[--$j]; //#29130 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29130 + $_.linheight = $get(_L, "pixy"); //#29131 + $k[$j++] = _L; //#29132 + if (!$_.usematrix) { //#29132 + bwipp_renmatrix(); //#29132 + } else { //#29132 + $_.linpixs = $get($k[--$j], 'pixs'); //#29132 + } //#29132 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28814 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#28827 - $_.i = _X; //#28816 - if ($get($_.bot, $_.i) == 0) { //#28824 - if ($get($_.bot, $_.i - 1) == 1) { //#28821 - $k[$j++] = 1; //#28819 - } else { //#28821 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28821 - $k[$j++] = _h; //#28821 - } //#28821 - } else { //#28824 - $k[$j++] = 0; //#28824 - } //#28824 - $put($_.sep, $_.i, $k[--$j]); //#28826 - } //#28826 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28828 - $k[$j++] = true; //#28829 - for (var _m = 0; _m <= 12; _m += 1) { //#28829 - var _s = $k[--$j]; //#28829 - $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#28829 - } //#28829 - if ($k[--$j]) { //#28832 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28831 - } //#28831 - }; //#28831 - $k[$j++] = Infinity; //#28834 - var _x = $_.bot; //#28834 - for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#28834 - $k[$j++] = $f(1 - $get(_x, _y)); //#28834 - } //#28834 - $_.sep = $a(); //#28834 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#28835 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28836 - $k[$j++] = 18; //#28837 - $_.sepfinder(); //#28837 - if (!$_.usematrix) { //#28887 - $$.rmoveto(0, $_.linheight); //#28839 + $_.fp = $k[--$j]; //#29136 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29149 + $_.i = _X; //#29138 + if ($get($_.bot, $_.i) == 0) { //#29146 + if ($get($_.bot, $_.i - 1) == 1) { //#29143 + $k[$j++] = 1; //#29141 + } else { //#29143 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29143 + $k[$j++] = _h; //#29143 + } //#29143 + } else { //#29146 + $k[$j++] = 0; //#29146 + } //#29146 + $put($_.sep, $_.i, $k[--$j]); //#29148 + } //#29148 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29150 + $k[$j++] = true; //#29151 + for (var _m = 0; _m <= 12; _m += 1) { //#29151 + var _s = $k[--$j]; //#29151 + $k[$j++] = _s && $eq($get($_.bot, $f(_m + $_.fp)), $get($_.f3, _m)); //#29151 + } //#29151 + if ($k[--$j]) { //#29154 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29153 + } //#29153 + }; //#29153 + $k[$j++] = Infinity; //#29156 + var _x = $_.bot; //#29156 + for (var _y = 0, _z = _x.length; _y < _z; _y++) { //#29156 + $k[$j++] = $f(1 - $get(_x, _y)); //#29156 + } //#29156 + $_.sep = $a(); //#29156 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29157 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29158 + $k[$j++] = 18; //#29159 + $_.sepfinder(); //#29159 + if (!$_.usematrix) { //#29209 + $$.rmoveto(0, $_.linheight); //#29161 var _1D = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36765,54 +37248,52 @@ function bwipp_databarstackedomnicomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#28846 - $k[$j++] = _1D; //#28847 - bwipp_renmatrix(); //#28847 - $$.rmoveto(1, 1); //#28850 - $k[$j++] = $_.comp; //#28850 - $k[$j++] = $_.options; //#28850 - bwipp_gs1_cc(); //#28850 - bwipp_renmatrix(); //#28850 - $$.restore(); //#28852 - } else { //#28887 - $k[$j++] = 'compsym'; //#28854 - $k[$j++] = $_.comp; //#28854 - $k[$j++] = $_.options; //#28854 - bwipp_gs1_cc(); //#28854 - var _1I = $k[--$j]; //#28854 - $_[$k[--$j]] = _1I; //#28854 - $_.ccpixs = $get($_.compsym, 'pixs'); //#28855 - $_.ccpixx = $get($_.compsym, 'pixx'); //#28856 - $_.linwidth = $_.sep.length; //#28858 - $k[$j++] = Infinity; //#28868 - for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#28864 - $_.i = _1S; //#28862 - for (var _1U = 0, _1V = 2; _1U < _1V; _1U++) { //#28863 - $k[$j++] = 0; //#28863 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#28863 - } //#28863 - } //#28863 - $aload($_.sep); //#28865 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - $k[$j++] = 0; //#28869 - for (var _1e = 0, _1f = $_.linwidth, _1d = $_.linpixs.length - 1; _1f < 0 ? _1e >= _1d : _1e <= _1d; _1e += _1f) { //#28869 - $_.i = _1e; //#28867 - $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - $k[$j++] = 0; //#28868 - } //#28868 - $_.pixs = $a(); //#28868 - $_.pixx = $f($_.ccpixx + 1); //#28871 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#28873 - var _1u = new Map([ + ]); //#29168 + $k[$j++] = _1D; //#29169 + bwipp_renmatrix(); //#29169 + $$.rmoveto(1, 1); //#29172 + $k[$j++] = $_.comp; //#29172 + $k[$j++] = $_.options; //#29172 + bwipp_gs1_cc(); //#29172 + bwipp_renmatrix(); //#29172 + $$.restore(); //#29174 + } else { //#29209 + $k[$j++] = 'compsym'; //#29176 + $k[$j++] = $_.comp; //#29176 + $k[$j++] = $_.options; //#29176 + bwipp_gs1_cc(); //#29176 + var _1I = $k[--$j]; //#29176 + $_[$k[--$j]] = _1I; //#29176 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29177 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29178 + $_.linwidth = $_.sep.length; //#29180 + $k[$j++] = Infinity; //#29182 + for (var _1S = 0, _1T = $_.ccpixx, _1R = $_.ccpixs.length - 1; _1T < 0 ? _1S >= _1R : _1S <= _1R; _1S += _1T) { //#29186 + $_.i = _1S; //#29184 + $k[$j++] = 0; //#29185 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29185 + } //#29185 + $aload($_.sep); //#29187 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + $k[$j++] = 0; //#29191 + for (var _1c = 0, _1d = $_.linwidth, _1b = $_.linpixs.length - 1; _1d < 0 ? _1c >= _1b : _1c <= _1b; _1c += _1d) { //#29191 + $_.i = _1c; //#29189 + $aload($geti($_.linpixs, $_.i, $_.linwidth)); //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + $k[$j++] = 0; //#29190 + } //#29190 + $_.pixs = $a(); //#29190 + $_.pixx = $f($_.ccpixx + 1); //#29193 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29195 + var _1s = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -36820,123 +37301,122 @@ function bwipp_databarstackedomnicomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#28881 - $k[$j++] = _1u; //#28888 - if (!$_.dontdraw) { //#28888 - $$.save(); //#28885 - bwipp_renmatrix(); //#28886 - $$.restore(); //#28887 - } //#28887 - } //#28887 - $_ = Object.getPrototypeOf($_); //#28891 -} - + ]); //#29203 + $k[$j++] = _1s; //#29210 + if (!$_.dontdraw) { //#29210 + $$.save(); //#29207 + bwipp_renmatrix(); //#29208 + $$.restore(); //#29209 + } //#29209 + } //#29209 + $_ = Object.getPrototypeOf($_); //#29213 +} //bwipp_databarstackedomnicomposite function bwipp_databartruncatedcomposite() { - $_ = Object.create($_); //#28923 - $_.dontdraw = false; //#28926 - $_.usematrix = false; //#28927 - $_.parse = false; //#28928 - $_.dontlint = false; //#28929 - $_.lintreqs = true; //#28930 - $k[$j++] = $_; //#28932 - bwipp_processoptions(); //#28932 - $_.options = $k[--$j]; //#28932 - $_.barcode = $k[--$j]; //#28933 - if ($_.dontdraw) { //#28935 - $_.usematrix = true; //#28935 - } //#28935 - $search($_.barcode, "|"); //#28938 - if ($k[--$j]) { //#28943 - $_.linear = $k[--$j]; //#28939 - $j--; //#28940 - $_.comp = $k[--$j]; //#28941 - } else { //#28943 - $j--; //#28943 - $k[$j++] = 'bwipp.missingCompositeComponent#28943'; //#28943 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#28943 - bwipp_raiseerror(); //#28943 - } //#28943 - if (!$_.usematrix) { //#28946 - $$.save(); //#28946 - } //#28946 - $put($_.options, "lintype", "databartruncated"); //#28948 - $put($_.options, "linkage", true); //#28949 - $put($_.options, "inkspread", "0"); //#28950 - $put($_.options, "dontdraw", true); //#28951 - $put($_.options, "dontlint", true); //#28952 - var _F = $s($_.linear.length + $_.comp.length); //#28955 - $puti(_F, 0, $_.linear); //#28956 - $puti(_F, $_.linear.length, $_.comp); //#28957 - $k[$j++] = _F; //#28958 - $k[$j++] = 'ai'; //#28958 - bwipp_gs1process(); //#28958 - $j -= 3; //#28958 - $k[$j++] = $_.linear; //#28961 - $k[$j++] = $_.options; //#28961 - bwipp_databartruncated(); //#28961 - var _L = $k[--$j]; //#28962 - $_.linsbs = $get(_L, "sbs"); //#28962 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#28963 - $k[$j++] = _L; //#28964 - if (!$_.usematrix) { //#28964 - bwipp_renlinear(); //#28964 - } else { //#28964 - $j--; //#28964 - } //#28964 + $_ = Object.create($_); //#29245 + $_.dontdraw = false; //#29248 + $_.usematrix = false; //#29249 + $_.parse = false; //#29250 + $_.dontlint = false; //#29251 + $_.lintreqs = true; //#29252 + $k[$j++] = $_; //#29254 + bwipp_processoptions(); //#29254 + $_.options = $k[--$j]; //#29254 + $_.barcode = $k[--$j]; //#29255 + if ($_.dontdraw) { //#29257 + $_.usematrix = true; //#29257 + } //#29257 + $search($_.barcode, "|"); //#29260 + if ($k[--$j]) { //#29265 + $_.linear = $k[--$j]; //#29261 + $j--; //#29262 + $_.comp = $k[--$j]; //#29263 + } else { //#29265 + $j--; //#29265 + $k[$j++] = 'bwipp.missingCompositeComponent#29265'; //#29265 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29265 + bwipp_raiseerror(); //#29265 + } //#29265 + if (!$_.usematrix) { //#29268 + $$.save(); //#29268 + } //#29268 + $put($_.options, "lintype", "databartruncated"); //#29270 + $put($_.options, "linkage", true); //#29271 + $put($_.options, "inkspreadv", 0); //#29272 + $put($_.options, "dontdraw", true); //#29273 + $put($_.options, "dontlint", true); //#29274 + var _F = $s($_.linear.length + $_.comp.length); //#29277 + $puti(_F, 0, $_.linear); //#29278 + $puti(_F, $_.linear.length, $_.comp); //#29279 + $k[$j++] = _F; //#29280 + $k[$j++] = 'ai'; //#29280 + bwipp_gs1process(); //#29280 + $j -= 3; //#29280 + $k[$j++] = $_.linear; //#29283 + $k[$j++] = $_.options; //#29283 + bwipp_databartruncated(); //#29283 + var _L = $k[--$j]; //#29284 + $_.linsbs = $get(_L, "sbs"); //#29284 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29285 + $k[$j++] = _L; //#29286 + if (!$_.usematrix) { //#29286 + bwipp_renlinear(); //#29286 + } else { //#29286 + $j--; //#29286 + } //#29286 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#28968 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#28981 - $_.i = _U; //#28970 - if ($get($_.bot, $_.i) == 0) { //#28978 - if ($get($_.bot, $_.i - 1) == 1) { //#28975 - $k[$j++] = 1; //#28973 - } else { //#28975 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#28975 - $k[$j++] = _e; //#28975 - } //#28975 - } else { //#28978 - $k[$j++] = 0; //#28978 - } //#28978 - $put($_.sep, $_.i, $k[--$j]); //#28980 - } //#28980 - $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#28982 - $k[$j++] = true; //#28983 - for (var _j = 0; _j <= 12; _j += 1) { //#28983 - var _p = $k[--$j]; //#28983 - $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#28983 - } //#28983 - if ($k[--$j]) { //#28986 - $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#28985 - } //#28985 - }; //#28985 - $k[$j++] = Infinity; //#28988 - $k[$j++] = 0; //#28989 - $forall($_.linsbs, function() { //#28989 - var _v = $k[--$j]; //#28989 - var _w = $k[--$j]; //#28989 - var _x = (_w == 1) ? 0 : 1; //#28989 - $k[$j++] = _w; //#28989 - for (var _y = 0, _z = _v; _y < _z; _y++) { //#28989 - $k[$j++] = _x //#28989 - } //#28989 - }); //#28989 - $astore($a($counttomark() - 1)); //#28990 - $_.bot = $k[--$j]; //#28990 - $j -= 2; //#28990 - $k[$j++] = Infinity; //#28991 - $forall($_.bot, function() { //#28991 - var _14 = $k[--$j]; //#28991 - $k[$j++] = $f(1 - _14); //#28991 - }); //#28991 - $_.sep = $a(); //#28991 - $puti($_.sep, 0, $a([0, 0, 0])); //#28992 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#28993 - $k[$j++] = 18; //#28994 - $_.sepfinder(); //#28994 - $k[$j++] = 64; //#28994 - $_.sepfinder(); //#28994 - if (!$_.usematrix) { //#29045 - $$.rmoveto(0, $_.linheight); //#28996 + $_.fp = $k[--$j]; //#29290 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29303 + $_.i = _U; //#29292 + if ($get($_.bot, $_.i) == 0) { //#29300 + if ($get($_.bot, $_.i - 1) == 1) { //#29297 + $k[$j++] = 1; //#29295 + } else { //#29297 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29297 + $k[$j++] = _e; //#29297 + } //#29297 + } else { //#29300 + $k[$j++] = 0; //#29300 + } //#29300 + $put($_.sep, $_.i, $k[--$j]); //#29302 + } //#29302 + $_.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#29304 + $k[$j++] = true; //#29305 + for (var _j = 0; _j <= 12; _j += 1) { //#29305 + var _p = $k[--$j]; //#29305 + $k[$j++] = _p && $eq($get($_.bot, $f(_j + $_.fp)), $get($_.f3, _j)); //#29305 + } //#29305 + if ($k[--$j]) { //#29308 + $puti($_.sep, $_.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#29307 + } //#29307 + }; //#29307 + $k[$j++] = Infinity; //#29310 + $k[$j++] = 0; //#29311 + $forall($_.linsbs, function() { //#29311 + var _v = $k[--$j]; //#29311 + var _w = $k[--$j]; //#29311 + var _x = (_w == 1) ? 0 : 1; //#29311 + $k[$j++] = _w; //#29311 + for (var _y = 0, _z = _v; _y < _z; _y++) { //#29311 + $k[$j++] = _x //#29311 + } //#29311 + }); //#29311 + $astore($a($counttomark() - 1)); //#29312 + $_.bot = $k[--$j]; //#29312 + $j -= 2; //#29312 + $k[$j++] = Infinity; //#29313 + $forall($_.bot, function() { //#29313 + var _14 = $k[--$j]; //#29313 + $k[$j++] = $f(1 - _14); //#29313 + }); //#29313 + $_.sep = $a(); //#29313 + $puti($_.sep, 0, $a([0, 0, 0])); //#29314 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29315 + $k[$j++] = 18; //#29316 + $_.sepfinder(); //#29316 + $k[$j++] = 64; //#29316 + $_.sepfinder(); //#29316 + if (!$_.usematrix) { //#29367 + $$.rmoveto(0, $_.linheight); //#29318 var _1H = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -36945,65 +37425,63 @@ function bwipp_databartruncatedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29003 - $k[$j++] = _1H; //#29004 - bwipp_renmatrix(); //#29004 - $$.rmoveto(-5, 1); //#29007 - $k[$j++] = $_.comp; //#29007 - $k[$j++] = $_.options; //#29007 - bwipp_gs1_cc(); //#29007 - bwipp_renmatrix(); //#29007 - $$.restore(); //#29009 - } else { //#29045 - $k[$j++] = 'compsym'; //#29011 - $k[$j++] = $_.comp; //#29011 - $k[$j++] = $_.options; //#29011 - bwipp_gs1_cc(); //#29011 - var _1M = $k[--$j]; //#29011 - $_[$k[--$j]] = _1M; //#29011 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29012 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29013 - $k[$j++] = Infinity; //#29016 - $k[$j++] = 0; //#29016 - $forall($_.linsbs, function() { //#29016 - var _1T = $k[--$j]; //#29016 - var _1U = $k[--$j]; //#29016 - var _1V = (_1U == 0) ? 1 : 0; //#29016 - $k[$j++] = _1U; //#29016 - for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29016 - $k[$j++] = _1V //#29016 - } //#29016 - }); //#29016 - $_.linpixs = $a(); //#29016 - $k[$j++] = Infinity; //#29018 - $k[$j++] = 0; //#29018 - $aload($_.sep); //#29018 - $_.sep = $a(); //#29018 - $_.linheight = ~~$_.linheight; //#29020 - $k[$j++] = Infinity; //#29027 - for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29026 - $_.i = _1f; //#29024 - for (var _1h = 0, _1i = 2; _1h < _1i; _1h++) { //#29025 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29025 - $k[$j++] = 0; //#29025 - } //#29025 - } //#29025 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.sep); //#29027 - for (var _1p = 0, _1q = $_.linheight; _1p < _1q; _1p++) { //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $k[$j++] = 0; //#29027 - $aload($_.linpixs); //#29027 - } //#29027 - $_.pixs = $a(); //#29027 - $_.pixx = $f($_.ccpixx + 1); //#29029 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29031 - var _22 = new Map([ + ]); //#29325 + $k[$j++] = _1H; //#29326 + bwipp_renmatrix(); //#29326 + $$.rmoveto(-5, 1); //#29329 + $k[$j++] = $_.comp; //#29329 + $k[$j++] = $_.options; //#29329 + bwipp_gs1_cc(); //#29329 + bwipp_renmatrix(); //#29329 + $$.restore(); //#29331 + } else { //#29367 + $k[$j++] = 'compsym'; //#29333 + $k[$j++] = $_.comp; //#29333 + $k[$j++] = $_.options; //#29333 + bwipp_gs1_cc(); //#29333 + var _1M = $k[--$j]; //#29333 + $_[$k[--$j]] = _1M; //#29333 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29334 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29335 + $k[$j++] = Infinity; //#29337 + $k[$j++] = 0; //#29338 + $forall($_.linsbs, function() { //#29338 + var _1T = $k[--$j]; //#29338 + var _1U = $k[--$j]; //#29338 + var _1V = (_1U == 0) ? 1 : 0; //#29338 + $k[$j++] = _1U; //#29338 + for (var _1W = 0, _1X = $cvi(_1T); _1W < _1X; _1W++) { //#29338 + $k[$j++] = _1V //#29338 + } //#29338 + }); //#29338 + $_.linpixs = $a(); //#29338 + $k[$j++] = Infinity; //#29340 + $k[$j++] = 0; //#29340 + $aload($_.sep); //#29340 + $_.sep = $a(); //#29340 + $_.linheight = ~~$_.linheight; //#29342 + $k[$j++] = Infinity; //#29344 + for (var _1f = 0, _1g = $_.ccpixx, _1e = $_.ccpixs.length - 1; _1g < 0 ? _1f >= _1e : _1f <= _1e; _1f += _1g) { //#29348 + $_.i = _1f; //#29346 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29347 + $k[$j++] = 0; //#29347 + } //#29347 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.sep); //#29349 + for (var _1n = 0, _1o = $_.linheight; _1n < _1o; _1n++) { //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $k[$j++] = 0; //#29349 + $aload($_.linpixs); //#29349 + } //#29349 + $_.pixs = $a(); //#29349 + $_.pixx = $f($_.ccpixx + 1); //#29351 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29353 + var _20 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37011,89 +37489,88 @@ function bwipp_databartruncatedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29039 - $k[$j++] = _22; //#29046 - if (!$_.dontdraw) { //#29046 - $$.save(); //#29043 - bwipp_renmatrix(); //#29044 - $$.restore(); //#29045 - } //#29045 - } //#29045 - $_ = Object.getPrototypeOf($_); //#29049 -} - + ]); //#29361 + $k[$j++] = _20; //#29368 + if (!$_.dontdraw) { //#29368 + $$.save(); //#29365 + bwipp_renmatrix(); //#29366 + $$.restore(); //#29367 + } //#29367 + } //#29367 + $_ = Object.getPrototypeOf($_); //#29371 +} //bwipp_databartruncatedcomposite function bwipp_databarlimitedcomposite() { - $_ = Object.create($_); //#29081 - $_.dontdraw = false; //#29084 - $_.usematrix = false; //#29085 - $_.parse = false; //#29086 - $_.dontlint = false; //#29087 - $_.lintreqs = true; //#29088 - $k[$j++] = $_; //#29090 - bwipp_processoptions(); //#29090 - $_.options = $k[--$j]; //#29090 - $_.barcode = $k[--$j]; //#29091 - if ($_.dontdraw) { //#29093 - $_.usematrix = true; //#29093 - } //#29093 - $search($_.barcode, "|"); //#29096 - if ($k[--$j]) { //#29101 - $_.linear = $k[--$j]; //#29097 - $j--; //#29098 - $_.comp = $k[--$j]; //#29099 - } else { //#29101 - $j--; //#29101 - $k[$j++] = 'bwipp.missingCompositeComponent#29101'; //#29101 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29101 - bwipp_raiseerror(); //#29101 - } //#29101 - if (!$_.usematrix) { //#29104 - $$.save(); //#29104 - } //#29104 - $put($_.options, "lintype", "databarlimited"); //#29106 - $put($_.options, "linkage", true); //#29107 - $put($_.options, "inkspread", "0"); //#29108 - $put($_.options, "dontdraw", true); //#29109 - $put($_.options, "dontlint", true); //#29110 - var _F = $s($_.linear.length + $_.comp.length); //#29113 - $puti(_F, 0, $_.linear); //#29114 - $puti(_F, $_.linear.length, $_.comp); //#29115 - $k[$j++] = _F; //#29116 - $k[$j++] = 'ai'; //#29116 - bwipp_gs1process(); //#29116 - $j -= 3; //#29116 - $k[$j++] = $_.linear; //#29119 - $k[$j++] = $_.options; //#29119 - bwipp_databarlimited(); //#29119 - var _L = $k[--$j]; //#29120 - $_.linsbs = $get(_L, "sbs"); //#29120 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29121 - $k[$j++] = _L; //#29122 - if (!$_.usematrix) { //#29122 - bwipp_renlinear(); //#29122 - } else { //#29122 - $j--; //#29122 - } //#29122 - $k[$j++] = Infinity; //#29125 - $k[$j++] = 1; //#29126 - $forall($_.linsbs, function() { //#29126 - var _R = $k[--$j]; //#29126 - var _S = $k[--$j]; //#29126 - var _T = (_S == 0) ? 1 : 0; //#29126 - $k[$j++] = _S; //#29126 - for (var _U = 0, _V = _R; _U < _V; _U++) { //#29126 - $k[$j++] = _T //#29126 - } //#29126 - }); //#29126 - $astore($a($counttomark() - 1)); //#29127 - $_.sep = $k[--$j]; //#29127 - $j -= 2; //#29127 - $puti($_.sep, 0, $a([0, 0, 0])); //#29128 - var _c = $_.sep; //#29129 - $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29129 - if (!$_.usematrix) { //#29194 - $$.rmoveto(0, $_.linheight); //#29132 - var _g = $_.sep; //#29134 + $_ = Object.create($_); //#29403 + $_.dontdraw = false; //#29406 + $_.usematrix = false; //#29407 + $_.parse = false; //#29408 + $_.dontlint = false; //#29409 + $_.lintreqs = true; //#29410 + $k[$j++] = $_; //#29412 + bwipp_processoptions(); //#29412 + $_.options = $k[--$j]; //#29412 + $_.barcode = $k[--$j]; //#29413 + if ($_.dontdraw) { //#29415 + $_.usematrix = true; //#29415 + } //#29415 + $search($_.barcode, "|"); //#29418 + if ($k[--$j]) { //#29423 + $_.linear = $k[--$j]; //#29419 + $j--; //#29420 + $_.comp = $k[--$j]; //#29421 + } else { //#29423 + $j--; //#29423 + $k[$j++] = 'bwipp.missingCompositeComponent#29423'; //#29423 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29423 + bwipp_raiseerror(); //#29423 + } //#29423 + if (!$_.usematrix) { //#29426 + $$.save(); //#29426 + } //#29426 + $put($_.options, "lintype", "databarlimited"); //#29428 + $put($_.options, "linkage", true); //#29429 + $put($_.options, "inkspreadv", 0); //#29430 + $put($_.options, "dontdraw", true); //#29431 + $put($_.options, "dontlint", true); //#29432 + var _F = $s($_.linear.length + $_.comp.length); //#29435 + $puti(_F, 0, $_.linear); //#29436 + $puti(_F, $_.linear.length, $_.comp); //#29437 + $k[$j++] = _F; //#29438 + $k[$j++] = 'ai'; //#29438 + bwipp_gs1process(); //#29438 + $j -= 3; //#29438 + $k[$j++] = $_.linear; //#29441 + $k[$j++] = $_.options; //#29441 + bwipp_databarlimited(); //#29441 + var _L = $k[--$j]; //#29442 + $_.linsbs = $get(_L, "sbs"); //#29442 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29443 + $k[$j++] = _L; //#29444 + if (!$_.usematrix) { //#29444 + bwipp_renlinear(); //#29444 + } else { //#29444 + $j--; //#29444 + } //#29444 + $k[$j++] = Infinity; //#29447 + $k[$j++] = 1; //#29448 + $forall($_.linsbs, function() { //#29448 + var _R = $k[--$j]; //#29448 + var _S = $k[--$j]; //#29448 + var _T = (_S == 0) ? 1 : 0; //#29448 + $k[$j++] = _S; //#29448 + for (var _U = 0, _V = _R; _U < _V; _U++) { //#29448 + $k[$j++] = _T //#29448 + } //#29448 + }); //#29448 + $astore($a($counttomark() - 1)); //#29449 + $_.sep = $k[--$j]; //#29449 + $j -= 2; //#29449 + $puti($_.sep, 0, $a([0, 0, 0])); //#29450 + var _c = $_.sep; //#29451 + $puti($_.sep, _c.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#29451 + if (!$_.usematrix) { //#29516 + $$.rmoveto(0, $_.linheight); //#29454 + var _g = $_.sep; //#29456 var _k = new Map([ ["ren", bwipp_renmatrix], ["pixs", _g], @@ -37102,105 +37579,101 @@ function bwipp_databarlimitedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29139 - $k[$j++] = _k; //#29140 - bwipp_renmatrix(); //#29140 - $k[$j++] = $_.comp; //#29143 - $k[$j++] = $_.options; //#29143 - bwipp_gs1_cc(); //#29143 - var _n = $k[--$j]; //#29144 - $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29144 - $k[$j++] = _n; //#29145 - bwipp_renmatrix(); //#29145 - $$.restore(); //#29147 - } else { //#29194 - $k[$j++] = 'compsym'; //#29149 - $k[$j++] = $_.comp; //#29149 - $k[$j++] = $_.options; //#29149 - bwipp_gs1_cc(); //#29149 - var _r = $k[--$j]; //#29149 - $_[$k[--$j]] = _r; //#29149 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29150 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29151 - $k[$j++] = Infinity; //#29154 - $k[$j++] = 0; //#29154 - $forall($_.linsbs, function() { //#29154 - var _y = $k[--$j]; //#29154 - var _z = $k[--$j]; //#29154 - var _10 = (_z == 0) ? 1 : 0; //#29154 - $k[$j++] = _z; //#29154 - for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29154 - $k[$j++] = _10 //#29154 - } //#29154 - }); //#29154 - $_.linpixs = $a(); //#29154 - $k[$j++] = Infinity; //#29156 - $k[$j++] = 0; //#29156 - $aload($_.sep); //#29156 - $_.sep = $a(); //#29156 - $_.linheight = ~~$_.linheight; //#29158 - if ($_.ccpixx == 72) { //#29177 - $k[$j++] = Infinity; //#29166 - for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29165 - $_.i = _1B; //#29163 - for (var _1D = 0, _1E = 2; _1D < _1E; _1D++) { //#29164 - $k[$j++] = 0; //#29164 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - $k[$j++] = 0; //#29164 - } //#29164 - } //#29164 - $aload($_.sep); //#29166 - for (var _1L = 0, _1M = $_.linheight; _1L < _1M; _1L++) { //#29166 - $aload($_.linpixs); //#29166 - } //#29166 - $_.pixs = $a(); //#29166 - $_.pixx = $_.linpixs.length; //#29168 - } else { //#29177 - $k[$j++] = Infinity; //#29175 - for (var _1T = 0, _1U = $_.ccpixx, _1S = $_.ccpixs.length - 1; _1U < 0 ? _1T >= _1S : _1T <= _1S; _1T += _1U) { //#29174 - $_.i = _1T; //#29172 - for (var _1V = 0, _1W = 2; _1V < _1W; _1V++) { //#29173 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - $k[$j++] = 0; //#29173 - } //#29173 - } //#29173 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.sep); //#29175 - for (var _1d = 0, _1e = $_.linheight; _1d < _1e; _1d++) { //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $k[$j++] = 0; //#29175 - $aload($_.linpixs); //#29175 - } //#29175 - $_.pixs = $a(); //#29175 - $_.pixx = $f($_.ccpixx + 6); //#29177 - } //#29177 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29180 - var _1q = new Map([ + ]); //#29461 + $k[$j++] = _k; //#29462 + bwipp_renmatrix(); //#29462 + $k[$j++] = $_.comp; //#29465 + $k[$j++] = $_.options; //#29465 + bwipp_gs1_cc(); //#29465 + var _n = $k[--$j]; //#29466 + $$.rmoveto($f(72 - $get(_n, "pixx")), 1); //#29466 + $k[$j++] = _n; //#29467 + bwipp_renmatrix(); //#29467 + $$.restore(); //#29469 + } else { //#29516 + $k[$j++] = 'compsym'; //#29471 + $k[$j++] = $_.comp; //#29471 + $k[$j++] = $_.options; //#29471 + bwipp_gs1_cc(); //#29471 + var _r = $k[--$j]; //#29471 + $_[$k[--$j]] = _r; //#29471 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 + $k[$j++] = Infinity; //#29475 + $k[$j++] = 0; //#29476 + $forall($_.linsbs, function() { //#29476 + var _y = $k[--$j]; //#29476 + var _z = $k[--$j]; //#29476 + var _10 = (_z == 0) ? 1 : 0; //#29476 + $k[$j++] = _z; //#29476 + for (var _11 = 0, _12 = $cvi(_y); _11 < _12; _11++) { //#29476 + $k[$j++] = _10 //#29476 + } //#29476 + }); //#29476 + $_.linpixs = $a(); //#29476 + $k[$j++] = Infinity; //#29478 + $k[$j++] = 0; //#29478 + $aload($_.sep); //#29478 + $_.sep = $a(); //#29478 + $_.linheight = ~~$_.linheight; //#29480 + if ($_.ccpixx == 72) { //#29499 + $k[$j++] = Infinity; //#29483 + for (var _1B = 0, _1C = $_.ccpixx, _1A = $_.ccpixs.length - 1; _1C < 0 ? _1B >= _1A : _1B <= _1A; _1B += _1C) { //#29487 + $_.i = _1B; //#29485 + $k[$j++] = 0; //#29486 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + $k[$j++] = 0; //#29486 + } //#29486 + $aload($_.sep); //#29488 + for (var _1J = 0, _1K = $_.linheight; _1J < _1K; _1J++) { //#29488 + $aload($_.linpixs); //#29488 + } //#29488 + $_.pixs = $a(); //#29488 + $_.pixx = $_.linpixs.length; //#29490 + } else { //#29499 + $k[$j++] = Infinity; //#29492 + for (var _1R = 0, _1S = $_.ccpixx, _1Q = $_.ccpixs.length - 1; _1S < 0 ? _1R >= _1Q : _1R <= _1Q; _1R += _1S) { //#29496 + $_.i = _1R; //#29494 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + $k[$j++] = 0; //#29495 + } //#29495 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.sep); //#29497 + for (var _1Z = 0, _1a = $_.linheight; _1Z < _1a; _1Z++) { //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $k[$j++] = 0; //#29497 + $aload($_.linpixs); //#29497 + } //#29497 + $_.pixs = $a(); //#29497 + $_.pixx = $f($_.ccpixx + 6); //#29499 + } //#29499 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29502 + var _1m = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37208,122 +37681,121 @@ function bwipp_databarlimitedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29188 - $k[$j++] = _1q; //#29195 - if (!$_.dontdraw) { //#29195 - $$.save(); //#29192 - bwipp_renmatrix(); //#29193 - $$.restore(); //#29194 - } //#29194 - } //#29194 - $_ = Object.getPrototypeOf($_); //#29198 -} - + ]); //#29510 + $k[$j++] = _1m; //#29517 + if (!$_.dontdraw) { //#29517 + $$.save(); //#29514 + bwipp_renmatrix(); //#29515 + $$.restore(); //#29516 + } //#29516 + } //#29516 + $_ = Object.getPrototypeOf($_); //#29520 +} //bwipp_databarlimitedcomposite function bwipp_databarexpandedcomposite() { - $_ = Object.create($_); //#29230 - $_.dontdraw = false; //#29233 - $_.usematrix = false; //#29234 - $_.parse = false; //#29235 - $_.dontlint = false; //#29236 - $_.lintreqs = true; //#29237 - $k[$j++] = $_; //#29239 - bwipp_processoptions(); //#29239 - $_.options = $k[--$j]; //#29239 - $_.barcode = $k[--$j]; //#29240 - if ($_.dontdraw) { //#29242 - $_.usematrix = true; //#29242 - } //#29242 - $search($_.barcode, "|"); //#29245 - if ($k[--$j]) { //#29250 - $_.linear = $k[--$j]; //#29246 - $j--; //#29247 - $_.comp = $k[--$j]; //#29248 - } else { //#29250 - $j--; //#29250 - $k[$j++] = 'bwipp.missingCompositeComponent#29250'; //#29250 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29250 - bwipp_raiseerror(); //#29250 - } //#29250 - if (!$_.usematrix) { //#29253 - $$.save(); //#29253 - } //#29253 - $put($_.options, "lintype", "databarexpanded"); //#29255 - $put($_.options, "linkage", true); //#29256 - $put($_.options, "inkspread", "0"); //#29257 - $put($_.options, "dontdraw", true); //#29258 - $put($_.options, "dontlint", true); //#29259 - var _F = $s($_.linear.length + $_.comp.length); //#29262 - $puti(_F, 0, $_.linear); //#29263 - $puti(_F, $_.linear.length, $_.comp); //#29264 - $k[$j++] = _F; //#29265 - $k[$j++] = 'ai'; //#29265 - bwipp_gs1process(); //#29265 - $j -= 3; //#29265 - $k[$j++] = $_.linear; //#29268 - $k[$j++] = $_.options; //#29268 - bwipp_databarexpanded(); //#29268 - var _L = $k[--$j]; //#29269 - $_.linsbs = $get(_L, "sbs"); //#29269 - $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29270 - $k[$j++] = _L; //#29271 - if (!$_.usematrix) { //#29271 - bwipp_renlinear(); //#29271 - } else { //#29271 - $j--; //#29271 - } //#29271 + $_ = Object.create($_); //#29552 + $_.dontdraw = false; //#29555 + $_.usematrix = false; //#29556 + $_.parse = false; //#29557 + $_.dontlint = false; //#29558 + $_.lintreqs = true; //#29559 + $k[$j++] = $_; //#29561 + bwipp_processoptions(); //#29561 + $_.options = $k[--$j]; //#29561 + $_.barcode = $k[--$j]; //#29562 + if ($_.dontdraw) { //#29564 + $_.usematrix = true; //#29564 + } //#29564 + $search($_.barcode, "|"); //#29567 + if ($k[--$j]) { //#29572 + $_.linear = $k[--$j]; //#29568 + $j--; //#29569 + $_.comp = $k[--$j]; //#29570 + } else { //#29572 + $j--; //#29572 + $k[$j++] = 'bwipp.missingCompositeComponent#29572'; //#29572 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29572 + bwipp_raiseerror(); //#29572 + } //#29572 + if (!$_.usematrix) { //#29575 + $$.save(); //#29575 + } //#29575 + $put($_.options, "lintype", "databarexpanded"); //#29577 + $put($_.options, "linkage", true); //#29578 + $put($_.options, "inkspreadv", 0); //#29579 + $put($_.options, "dontdraw", true); //#29580 + $put($_.options, "dontlint", true); //#29581 + var _F = $s($_.linear.length + $_.comp.length); //#29584 + $puti(_F, 0, $_.linear); //#29585 + $puti(_F, $_.linear.length, $_.comp); //#29586 + $k[$j++] = _F; //#29587 + $k[$j++] = 'ai'; //#29587 + bwipp_gs1process(); //#29587 + $j -= 3; //#29587 + $k[$j++] = $_.linear; //#29590 + $k[$j++] = $_.options; //#29590 + bwipp_databarexpanded(); //#29590 + var _L = $k[--$j]; //#29591 + $_.linsbs = $get(_L, "sbs"); //#29591 + $_.linheight = $get($get(_L, "bhs"), 0) * 72; //#29592 + $k[$j++] = _L; //#29593 + if (!$_.usematrix) { //#29593 + bwipp_renlinear(); //#29593 + } else { //#29593 + $j--; //#29593 + } //#29593 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29275 - for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29288 - $_.i = _U; //#29277 - if ($get($_.bot, $_.i) == 0) { //#29285 - if ($get($_.bot, $_.i - 1) == 1) { //#29282 - $k[$j++] = 1; //#29280 - } else { //#29282 - var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29282 - $k[$j++] = _e; //#29282 - } //#29282 - } else { //#29285 - $k[$j++] = 0; //#29285 - } //#29285 - $put($_.sep, $_.i, $k[--$j]); //#29287 - } //#29287 - }; //#29287 - $k[$j++] = Infinity; //#29290 - $k[$j++] = 0; //#29291 - $forall($_.linsbs, function() { //#29291 - var _j = $k[--$j]; //#29291 - var _k = $k[--$j]; //#29291 - var _l = (_k == 1) ? 0 : 1; //#29291 - $k[$j++] = _k; //#29291 - for (var _m = 0, _n = _j; _m < _n; _m++) { //#29291 - $k[$j++] = _l //#29291 - } //#29291 - }); //#29291 - $astore($a($counttomark() - 1)); //#29292 - $_.bot = $k[--$j]; //#29292 - $j -= 2; //#29292 - $k[$j++] = Infinity; //#29293 - $forall($_.bot, function() { //#29293 - var _s = $k[--$j]; //#29293 - $k[$j++] = $f(1 - _s); //#29293 - }); //#29293 - $_.sep = $a(); //#29293 - $puti($_.sep, 0, $a([0, 0, 0])); //#29294 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29295 - $k[$j++] = Infinity; //#29298 - for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29297 - $k[$j++] = _11; //#29297 - } //#29297 - for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29298 - $k[$j++] = _14; //#29298 - } //#29298 - var _15 = $a(); //#29298 - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29299 - $k[$j++] = $get(_15, _16); //#29299 - $_.sepfinder(); //#29299 - } //#29299 - if (!$_.usematrix) { //#29352 - $$.rmoveto(0, $_.linheight); //#29302 + $_.fp = $k[--$j]; //#29597 + for (var _U = $_.fp, _T = $f($_.fp + 12); _U <= _T; _U += 1) { //#29610 + $_.i = _U; //#29599 + if ($get($_.bot, $_.i) == 0) { //#29607 + if ($get($_.bot, $_.i - 1) == 1) { //#29604 + $k[$j++] = 1; //#29602 + } else { //#29604 + var _e = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29604 + $k[$j++] = _e; //#29604 + } //#29604 + } else { //#29607 + $k[$j++] = 0; //#29607 + } //#29607 + $put($_.sep, $_.i, $k[--$j]); //#29609 + } //#29609 + }; //#29609 + $k[$j++] = Infinity; //#29612 + $k[$j++] = 0; //#29613 + $forall($_.linsbs, function() { //#29613 + var _j = $k[--$j]; //#29613 + var _k = $k[--$j]; //#29613 + var _l = (_k == 1) ? 0 : 1; //#29613 + $k[$j++] = _k; //#29613 + for (var _m = 0, _n = _j; _m < _n; _m++) { //#29613 + $k[$j++] = _l //#29613 + } //#29613 + }); //#29613 + $astore($a($counttomark() - 1)); //#29614 + $_.bot = $k[--$j]; //#29614 + $j -= 2; //#29614 + $k[$j++] = Infinity; //#29615 + $forall($_.bot, function() { //#29615 + var _s = $k[--$j]; //#29615 + $k[$j++] = $f(1 - _s); //#29615 + }); //#29615 + $_.sep = $a(); //#29615 + $puti($_.sep, 0, $a([0, 0, 0])); //#29616 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29617 + $k[$j++] = Infinity; //#29618 + for (var _11 = 18, _10 = $_.bot.length - 13; _11 <= _10; _11 += 98) { //#29619 + $k[$j++] = _11; //#29619 + } //#29619 + for (var _14 = 69, _13 = $_.bot.length - 13; _14 <= _13; _14 += 98) { //#29620 + $k[$j++] = _14; //#29620 + } //#29620 + var _15 = $a(); //#29620 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#29621 + $k[$j++] = $get(_15, _16); //#29621 + $_.sepfinder(); //#29621 + } //#29621 + if (!$_.usematrix) { //#29674 + $$.rmoveto(0, $_.linheight); //#29624 var _1F = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37332,65 +37804,63 @@ function bwipp_databarexpandedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29309 - $k[$j++] = _1F; //#29310 - bwipp_renmatrix(); //#29310 - $$.rmoveto(1, 1); //#29313 - $k[$j++] = $_.comp; //#29313 - $k[$j++] = $_.options; //#29313 - bwipp_gs1_cc(); //#29313 - bwipp_renmatrix(); //#29313 - $$.restore(); //#29315 - } else { //#29352 - $k[$j++] = 'compsym'; //#29317 - $k[$j++] = $_.comp; //#29317 - $k[$j++] = $_.options; //#29317 - bwipp_gs1_cc(); //#29317 - var _1K = $k[--$j]; //#29317 - $_[$k[--$j]] = _1K; //#29317 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29318 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29319 - $k[$j++] = Infinity; //#29322 - $k[$j++] = 0; //#29322 - $forall($_.linsbs, function() { //#29322 - var _1R = $k[--$j]; //#29322 - var _1S = $k[--$j]; //#29322 - var _1T = (_1S == 0) ? 1 : 0; //#29322 - $k[$j++] = _1S; //#29322 - for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29322 - $k[$j++] = _1T //#29322 - } //#29322 - }); //#29322 - $_.linpixs = $a(); //#29322 - $k[$j++] = Infinity; //#29324 - $k[$j++] = 0; //#29324 - $aload($_.sep); //#29324 - $_.sep = $a(); //#29324 - $_.linheight = ~~$_.linheight; //#29326 - $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29327 - $k[$j++] = Infinity; //#29328 - for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29328 - $k[$j++] = 0; //#29328 - } //#29328 - $_.ccrpad = $a(); //#29328 - $k[$j++] = Infinity; //#29334 - for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29333 - $_.i = _1j; //#29331 - for (var _1l = 0, _1m = 2; _1l < _1m; _1l++) { //#29332 - $k[$j++] = 0; //#29332 - $k[$j++] = 0; //#29332 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29332 - $aload($_.ccrpad); //#29332 - } //#29332 - } //#29332 - $aload($_.sep); //#29334 - for (var _1u = 0, _1v = $_.linheight; _1u < _1v; _1u++) { //#29334 - $aload($_.linpixs); //#29334 - } //#29334 - $_.pixs = $a(); //#29334 - $_.pixx = $_.linpixs.length; //#29337 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29338 - var _27 = new Map([ + ]); //#29631 + $k[$j++] = _1F; //#29632 + bwipp_renmatrix(); //#29632 + $$.rmoveto(1, 1); //#29635 + $k[$j++] = $_.comp; //#29635 + $k[$j++] = $_.options; //#29635 + bwipp_gs1_cc(); //#29635 + bwipp_renmatrix(); //#29635 + $$.restore(); //#29637 + } else { //#29674 + $k[$j++] = 'compsym'; //#29639 + $k[$j++] = $_.comp; //#29639 + $k[$j++] = $_.options; //#29639 + bwipp_gs1_cc(); //#29639 + var _1K = $k[--$j]; //#29639 + $_[$k[--$j]] = _1K; //#29639 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29640 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29641 + $k[$j++] = Infinity; //#29643 + $k[$j++] = 0; //#29644 + $forall($_.linsbs, function() { //#29644 + var _1R = $k[--$j]; //#29644 + var _1S = $k[--$j]; //#29644 + var _1T = (_1S == 0) ? 1 : 0; //#29644 + $k[$j++] = _1S; //#29644 + for (var _1U = 0, _1V = $cvi(_1R); _1U < _1V; _1U++) { //#29644 + $k[$j++] = _1T //#29644 + } //#29644 + }); //#29644 + $_.linpixs = $a(); //#29644 + $k[$j++] = Infinity; //#29646 + $k[$j++] = 0; //#29646 + $aload($_.sep); //#29646 + $_.sep = $a(); //#29646 + $_.linheight = ~~$_.linheight; //#29648 + $_.diff = $f($_.linpixs.length - $_.ccpixx); //#29649 + $k[$j++] = Infinity; //#29650 + for (var _1d = 0, _1e = $f($_.diff - 2); _1d < _1e; _1d++) { //#29650 + $k[$j++] = 0; //#29650 + } //#29650 + $_.ccrpad = $a(); //#29650 + $k[$j++] = Infinity; //#29651 + for (var _1j = 0, _1k = $_.ccpixx, _1i = $_.ccpixs.length - 1; _1k < 0 ? _1j >= _1i : _1j <= _1i; _1j += _1k) { //#29655 + $_.i = _1j; //#29653 + $k[$j++] = 0; //#29654 + $k[$j++] = 0; //#29654 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 + $aload($_.ccrpad); //#29654 + } //#29654 + $aload($_.sep); //#29656 + for (var _1s = 0, _1t = $_.linheight; _1s < _1t; _1s++) { //#29656 + $aload($_.linpixs); //#29656 + } //#29656 + $_.pixs = $a(); //#29656 + $_.pixx = $_.linpixs.length; //#29659 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29660 + var _25 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37398,108 +37868,107 @@ function bwipp_databarexpandedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29346 - $k[$j++] = _27; //#29353 - if (!$_.dontdraw) { //#29353 - $$.save(); //#29350 - bwipp_renmatrix(); //#29351 - $$.restore(); //#29352 - } //#29352 - } //#29352 - $_ = Object.getPrototypeOf($_); //#29356 -} - + ]); //#29668 + $k[$j++] = _25; //#29675 + if (!$_.dontdraw) { //#29675 + $$.save(); //#29672 + bwipp_renmatrix(); //#29673 + $$.restore(); //#29674 + } //#29674 + } //#29674 + $_ = Object.getPrototypeOf($_); //#29678 +} //bwipp_databarexpandedcomposite function bwipp_databarexpandedstackedcomposite() { - $_ = Object.create($_); //#29387 - $_.dontdraw = false; //#29390 - $_.usematrix = false; //#29391 - $_.parse = false; //#29392 - $_.dontlint = false; //#29393 - $_.lintreqs = true; //#29394 - $k[$j++] = $_; //#29396 - bwipp_processoptions(); //#29396 - $_.options = $k[--$j]; //#29396 - $_.barcode = $k[--$j]; //#29397 - if ($_.dontdraw) { //#29399 - $_.usematrix = true; //#29399 - } //#29399 - $search($_.barcode, "|"); //#29402 - if ($k[--$j]) { //#29407 - $_.linear = $k[--$j]; //#29403 - $j--; //#29404 - $_.comp = $k[--$j]; //#29405 - } else { //#29407 - $j--; //#29407 - $k[$j++] = 'bwipp.missingCompositeComponent#29407'; //#29407 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29407 - bwipp_raiseerror(); //#29407 - } //#29407 - if (!$_.usematrix) { //#29410 - $$.save(); //#29410 - } //#29410 - $put($_.options, "lintype", "databarexpandedstacked"); //#29412 - $put($_.options, "linkage", true); //#29413 - $put($_.options, "inkspread", "0"); //#29414 - $put($_.options, "dontdraw", true); //#29415 - $put($_.options, "dontlint", true); //#29416 - var _F = $s($_.linear.length + $_.comp.length); //#29419 - $puti(_F, 0, $_.linear); //#29420 - $puti(_F, $_.linear.length, $_.comp); //#29421 - $k[$j++] = _F; //#29422 - $k[$j++] = 'ai'; //#29422 - bwipp_gs1process(); //#29422 - $j -= 3; //#29422 - $k[$j++] = $_.linear; //#29425 - $k[$j++] = $_.options; //#29425 - bwipp_databarexpandedstacked(); //#29425 - var _L = $k[--$j]; //#29426 - $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29426 - $_.linheight = $get(_L, "pixy"); //#29427 - $k[$j++] = _L; //#29428 - if (!$_.usematrix) { //#29428 - bwipp_renmatrix(); //#29428 - } else { //#29428 - $_.linpixs = $get($k[--$j], 'pixs'); //#29428 - } //#29428 + $_ = Object.create($_); //#29709 + $_.dontdraw = false; //#29712 + $_.usematrix = false; //#29713 + $_.parse = false; //#29714 + $_.dontlint = false; //#29715 + $_.lintreqs = true; //#29716 + $k[$j++] = $_; //#29718 + bwipp_processoptions(); //#29718 + $_.options = $k[--$j]; //#29718 + $_.barcode = $k[--$j]; //#29719 + if ($_.dontdraw) { //#29721 + $_.usematrix = true; //#29721 + } //#29721 + $search($_.barcode, "|"); //#29724 + if ($k[--$j]) { //#29729 + $_.linear = $k[--$j]; //#29725 + $j--; //#29726 + $_.comp = $k[--$j]; //#29727 + } else { //#29729 + $j--; //#29729 + $k[$j++] = 'bwipp.missingCompositeComponent#29729'; //#29729 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29729 + bwipp_raiseerror(); //#29729 + } //#29729 + if (!$_.usematrix) { //#29732 + $$.save(); //#29732 + } //#29732 + $put($_.options, "lintype", "databarexpandedstacked"); //#29734 + $put($_.options, "linkage", true); //#29735 + $put($_.options, "inkspreadv", 0); //#29736 + $put($_.options, "dontdraw", true); //#29737 + $put($_.options, "dontlint", true); //#29738 + var _F = $s($_.linear.length + $_.comp.length); //#29741 + $puti(_F, 0, $_.linear); //#29742 + $puti(_F, $_.linear.length, $_.comp); //#29743 + $k[$j++] = _F; //#29744 + $k[$j++] = 'ai'; //#29744 + bwipp_gs1process(); //#29744 + $j -= 3; //#29744 + $k[$j++] = $_.linear; //#29747 + $k[$j++] = $_.options; //#29747 + bwipp_databarexpandedstacked(); //#29747 + var _L = $k[--$j]; //#29748 + $_.bot = $geti($get(_L, "pixs"), 0, $get(_L, "pixx")); //#29748 + $_.linheight = $get(_L, "pixy"); //#29749 + $k[$j++] = _L; //#29750 + if (!$_.usematrix) { //#29750 + bwipp_renmatrix(); //#29750 + } else { //#29750 + $_.linpixs = $get($k[--$j], 'pixs'); //#29750 + } //#29750 $_.sepfinder = function() { - $_.fp = $k[--$j]; //#29432 - for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29445 - $_.i = _X; //#29434 - if ($get($_.bot, $_.i) == 0) { //#29442 - if ($get($_.bot, $_.i - 1) == 1) { //#29439 - $k[$j++] = 1; //#29437 - } else { //#29439 - var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29439 - $k[$j++] = _h; //#29439 - } //#29439 - } else { //#29442 - $k[$j++] = 0; //#29442 - } //#29442 - $put($_.sep, $_.i, $k[--$j]); //#29444 - } //#29444 - }; //#29444 - $k[$j++] = Infinity; //#29447 - var _l = $_.bot; //#29447 - for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29447 - $k[$j++] = $f(1 - $get(_l, _m)); //#29447 - } //#29447 - $_.sep = $a(); //#29447 - $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29448 - $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29449 - $k[$j++] = Infinity; //#29452 - for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29451 - $k[$j++] = _x; //#29451 - } //#29451 - for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29452 - $k[$j++] = _10; //#29452 - } //#29452 - var _11 = $a(); //#29452 - for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29453 - $k[$j++] = $get(_11, _12); //#29453 - $_.sepfinder(); //#29453 - } //#29453 - if (!$_.usematrix) { //#29500 - $$.rmoveto(0, $_.linheight); //#29455 + $_.fp = $k[--$j]; //#29754 + for (var _X = $_.fp, _W = $f($_.fp + 12); _X <= _W; _X += 1) { //#29767 + $_.i = _X; //#29756 + if ($get($_.bot, $_.i) == 0) { //#29764 + if ($get($_.bot, $_.i - 1) == 1) { //#29761 + $k[$j++] = 1; //#29759 + } else { //#29761 + var _h = ($get($_.sep, $_.i - 1) == 0) ? 1 : 0; //#29761 + $k[$j++] = _h; //#29761 + } //#29761 + } else { //#29764 + $k[$j++] = 0; //#29764 + } //#29764 + $put($_.sep, $_.i, $k[--$j]); //#29766 + } //#29766 + }; //#29766 + $k[$j++] = Infinity; //#29769 + var _l = $_.bot; //#29769 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#29769 + $k[$j++] = $f(1 - $get(_l, _m)); //#29769 + } //#29769 + $_.sep = $a(); //#29769 + $puti($_.sep, 0, $a([0, 0, 0, 0])); //#29770 + $puti($_.sep, $_.sep.length - 4, $a([0, 0, 0, 0])); //#29771 + $k[$j++] = Infinity; //#29772 + for (var _x = 19, _w = $_.bot.length - 13; _x <= _w; _x += 98) { //#29773 + $k[$j++] = _x; //#29773 + } //#29773 + for (var _10 = 70, _z = $_.bot.length - 13; _10 <= _z; _10 += 98) { //#29774 + $k[$j++] = _10; //#29774 + } //#29774 + var _11 = $a(); //#29774 + for (var _12 = 0, _13 = _11.length; _12 < _13; _12++) { //#29775 + $k[$j++] = $get(_11, _12); //#29775 + $_.sepfinder(); //#29775 + } //#29775 + if (!$_.usematrix) { //#29822 + $$.rmoveto(0, $_.linheight); //#29777 var _1B = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], @@ -37508,50 +37977,48 @@ function bwipp_databarexpandedstackedcomposite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29462 - $k[$j++] = _1B; //#29463 - bwipp_renmatrix(); //#29463 - var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29466 - $$.rmoveto(_1E, 1); //#29466 - $k[$j++] = $_.comp; //#29467 - $k[$j++] = $_.options; //#29467 - bwipp_gs1_cc(); //#29467 - bwipp_renmatrix(); //#29467 - $$.restore(); //#29469 - } else { //#29500 - $k[$j++] = 'compsym'; //#29471 - $k[$j++] = $_.comp; //#29471 - $k[$j++] = $_.options; //#29471 - bwipp_gs1_cc(); //#29471 - var _1J = $k[--$j]; //#29471 - $_[$k[--$j]] = _1J; //#29471 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29472 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29473 - $_.pixx = $_.sep.length; //#29475 - $k[$j++] = Infinity; //#29476 - for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29476 - $k[$j++] = 0; //#29476 - } //#29476 - $_.cclpad = $a(); //#29476 - $k[$j++] = Infinity; //#29477 - for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29477 - $k[$j++] = 0; //#29477 - } //#29477 - $_.ccrpad = $a(); //#29477 - $k[$j++] = Infinity; //#29483 - for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29482 - $_.i = _1d; //#29480 - for (var _1f = 0, _1g = 2; _1f < _1g; _1f++) { //#29481 - $aload($_.cclpad); //#29481 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29481 - $aload($_.ccrpad); //#29481 - } //#29481 - } //#29481 - $aload($_.sep); //#29483 - $aload($_.linpixs); //#29483 - $_.pixs = $a(); //#29483 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29486 - var _1y = new Map([ + ]); //#29784 + $k[$j++] = _1B; //#29785 + bwipp_renmatrix(); //#29785 + var _1E = ($get($_.bot, 0) == 0) ? 2 : 0; //#29788 + $$.rmoveto(_1E, 1); //#29788 + $k[$j++] = $_.comp; //#29789 + $k[$j++] = $_.options; //#29789 + bwipp_gs1_cc(); //#29789 + bwipp_renmatrix(); //#29789 + $$.restore(); //#29791 + } else { //#29822 + $k[$j++] = 'compsym'; //#29793 + $k[$j++] = $_.comp; //#29793 + $k[$j++] = $_.options; //#29793 + bwipp_gs1_cc(); //#29793 + var _1J = $k[--$j]; //#29793 + $_[$k[--$j]] = _1J; //#29793 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29794 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29795 + $_.pixx = $_.sep.length; //#29797 + $k[$j++] = Infinity; //#29798 + for (var _1S = 0, _1T = ~~(($f($f($_.pixx - $_.ccpixx) + 1)) / 2); _1S < _1T; _1S++) { //#29798 + $k[$j++] = 0; //#29798 + } //#29798 + $_.cclpad = $a(); //#29798 + $k[$j++] = Infinity; //#29799 + for (var _1X = 0, _1Y = ~~($f($_.pixx - $_.ccpixx) / 2); _1X < _1Y; _1X++) { //#29799 + $k[$j++] = 0; //#29799 + } //#29799 + $_.ccrpad = $a(); //#29799 + $k[$j++] = Infinity; //#29800 + for (var _1d = 0, _1e = $_.ccpixx, _1c = $_.ccpixs.length - 1; _1e < 0 ? _1d >= _1c : _1d <= _1c; _1d += _1e) { //#29804 + $_.i = _1d; //#29802 + $aload($_.cclpad); //#29803 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29803 + $aload($_.ccrpad); //#29803 + } //#29803 + $aload($_.sep); //#29805 + $aload($_.linpixs); //#29805 + $_.pixs = $a(); //#29805 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29808 + var _1w = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37559,121 +38026,124 @@ function bwipp_databarexpandedstackedcomposite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29494 - $k[$j++] = _1y; //#29501 - if (!$_.dontdraw) { //#29501 - $$.save(); //#29498 - bwipp_renmatrix(); //#29499 - $$.restore(); //#29500 - } //#29500 - } //#29500 - $_ = Object.getPrototypeOf($_); //#29504 -} - + ]); //#29816 + $k[$j++] = _1w; //#29823 + if (!$_.dontdraw) { //#29823 + $$.save(); //#29820 + bwipp_renmatrix(); //#29821 + $$.restore(); //#29822 + } //#29822 + } //#29822 + $_ = Object.getPrototypeOf($_); //#29826 +} //bwipp_databarexpandedstackedcomposite function bwipp_gs1_128composite() { - $_ = Object.create($_); //#29536 - $_.dontdraw = false; //#29539 - $_.usematrix = false; //#29540 - $_.parse = false; //#29541 - $_.dontlint = false; //#29542 - $_.lintreqs = true; //#29543 - $k[$j++] = $_; //#29545 - bwipp_processoptions(); //#29545 - $_.options = $k[--$j]; //#29545 - $_.barcode = $k[--$j]; //#29546 - if ($_.dontdraw) { //#29548 - $_.usematrix = true; //#29548 - } //#29548 - $search($_.barcode, "|"); //#29551 - if ($k[--$j]) { //#29556 - $_.linear = $k[--$j]; //#29552 - $j--; //#29553 - $_.comp = $k[--$j]; //#29554 - } else { //#29556 - $j--; //#29556 - $k[$j++] = 'bwipp.missingCompositeComponent#29556'; //#29556 - $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29556 - bwipp_raiseerror(); //#29556 - } //#29556 - if (!$_.usematrix) { //#29559 - $$.save(); //#29559 - } //#29559 - $put($_.options, "inkspread", "0"); //#29561 - $put($_.options, "dontdraw", true); //#29562 - $put($_.options, "dontlint", true); //#29563 - var _D = $s($_.linear.length + $_.comp.length); //#29566 - $puti(_D, 0, $_.linear); //#29567 - $puti(_D, $_.linear.length, $_.comp); //#29568 - $k[$j++] = _D; //#29569 - $k[$j++] = 'ai'; //#29569 - bwipp_gs1process(); //#29569 - $j -= 3; //#29569 - $put($_.options, "linkagea", true); //#29572 - $k[$j++] = $_.linear; //#29573 - $k[$j++] = Infinity; //#29573 - $forall($_.options); //#29573 - var _K = $d(); //#29573 - $k[$j++] = _K; //#29573 - bwipp_gs1_128(); //#29573 - var _M = $get($k[--$j], "sbs"); //#29574 - $k[$j++] = 0; //#29574 - $forall(_M, function() { //#29574 - var _N = $k[--$j]; //#29574 - var _O = $k[--$j]; //#29574 - $k[$j++] = $f(_O + _N); //#29574 - }); //#29574 - $_.linwidth = $k[--$j]; //#29574 - $put($_.options, "lintype", "gs1-128"); //#29577 - $put($_.options, "linwidth", $_.linwidth); //#29578 - $k[$j++] = $_.comp; //#29579 - $k[$j++] = $_.options; //#29579 - bwipp_gs1_cc(); //#29579 - $_.compsym = $k[--$j]; //#29579 - if ($get($_.compsym, "pixx") == 99) { //#29580 - $k[$j++] = "a"; //#29580 - } else { //#29580 - $k[$j++] = "c"; //#29580 - } //#29580 - $_.linktype = $k[--$j]; //#29580 - if ($eq($_.linktype, "a")) { //#29588 - $put($_.options, "linkagea", true); //#29584 - $put($_.options, "linkagec", false); //#29585 - } else { //#29588 - $put($_.options, "linkagea", false); //#29587 - $put($_.options, "linkagec", true); //#29588 - } //#29588 - $k[$j++] = $_.linear; //#29590 - $k[$j++] = Infinity; //#29590 - $forall($_.options); //#29590 - var _g = $d(); //#29590 - $k[$j++] = _g; //#29590 - bwipp_gs1_128(); //#29590 - var _h = $k[--$j]; //#29591 - $_.linsbs = $get(_h, "sbs"); //#29591 - $_.linheight = $get($get(_h, "bhs"), 0) * 72; //#29592 - $k[$j++] = _h; //#29593 - if (!$_.usematrix) { //#29593 - bwipp_renlinear(); //#29593 - } else { //#29593 - $j--; //#29593 - } //#29593 - $k[$j++] = Infinity; //#29596 - $k[$j++] = 1; //#29597 - $forall($_.linsbs, function() { //#29597 - var _n = $k[--$j]; //#29597 - var _o = $k[--$j]; //#29597 - var _p = (_o == 0) ? 1 : 0; //#29597 - $k[$j++] = _o; //#29597 - for (var _q = 0, _r = _n; _q < _r; _q++) { //#29597 - $k[$j++] = _p //#29597 - } //#29597 - }); //#29597 - $astore($a($counttomark() - 1)); //#29598 - $_.sep = $k[--$j]; //#29598 - $j -= 2; //#29598 - if (!$_.usematrix) { //#29609 - $$.rmoveto(0, $_.linheight); //#29600 - var _11 = new Map([ + $_ = Object.create($_); //#29858 + $_.dontdraw = false; //#29861 + $_.usematrix = false; //#29862 + $_.parse = false; //#29863 + $_.dontlint = false; //#29864 + $_.lintreqs = true; //#29865 + $k[$j++] = $_; //#29867 + bwipp_processoptions(); //#29867 + $_.options = $k[--$j]; //#29867 + $_.barcode = $k[--$j]; //#29868 + if ($_.dontdraw) { //#29870 + $_.usematrix = true; //#29870 + } //#29870 + $search($_.barcode, "|"); //#29873 + if ($k[--$j]) { //#29878 + $_.linear = $k[--$j]; //#29874 + $j--; //#29875 + $_.comp = $k[--$j]; //#29876 + } else { //#29878 + $j--; //#29878 + $k[$j++] = 'bwipp.missingCompositeComponent#29878'; //#29878 + $k[$j++] = "A Composite Component must be provided following a pipe character"; //#29878 + bwipp_raiseerror(); //#29878 + } //#29878 + if (!$_.usematrix) { //#29881 + $$.save(); //#29881 + } //#29881 + $put($_.options, "inkspreadv", 0); //#29883 + $put($_.options, "dontdraw", true); //#29884 + $put($_.options, "dontlint", true); //#29885 + var _D = $s($_.linear.length + $_.comp.length); //#29888 + $puti(_D, 0, $_.linear); //#29889 + $puti(_D, $_.linear.length, $_.comp); //#29890 + $k[$j++] = _D; //#29891 + $k[$j++] = 'ai'; //#29891 + bwipp_gs1process(); //#29891 + $j -= 3; //#29891 + $put($_.options, "linkagea", true); //#29894 + $k[$j++] = $_.linear; //#29895 + $k[$j++] = Infinity; //#29895 + $forall($_.options); //#29895 + var _K = $d(); //#29895 + $k[$j++] = _K; //#29895 + bwipp_gs1_128(); //#29895 + var _M = $get($k[--$j], "sbs"); //#29896 + $k[$j++] = 0; //#29896 + $forall(_M, function() { //#29896 + var _N = $k[--$j]; //#29896 + var _O = $k[--$j]; //#29896 + $k[$j++] = $f(_O + _N); //#29896 + }); //#29896 + $_.linwidth = $k[--$j]; //#29896 + $put($_.options, "lintype", "gs1-128"); //#29899 + $put($_.options, "linwidth", $_.linwidth); //#29900 + $k[$j++] = $_.comp; //#29901 + $k[$j++] = Infinity; //#29901 + $forall($_.options); //#29901 + var _V = $d(); //#29901 + $k[$j++] = _V; //#29901 + bwipp_gs1_cc(); //#29901 + $_.compsym = $k[--$j]; //#29901 + if ($get($_.compsym, "pixx") == 99) { //#29902 + $k[$j++] = "a"; //#29902 + } else { //#29902 + $k[$j++] = "c"; //#29902 + } //#29902 + $_.linktype = $k[--$j]; //#29902 + if ($eq($_.linktype, "a")) { //#29910 + $put($_.options, "linkagea", true); //#29906 + $put($_.options, "linkagec", false); //#29907 + } else { //#29910 + $put($_.options, "linkagea", false); //#29909 + $put($_.options, "linkagec", true); //#29910 + } //#29910 + $k[$j++] = $_.linear; //#29912 + $k[$j++] = Infinity; //#29912 + var _g = $_.options; //#29912 + $forall(_g); //#29912 + var _h = $d(); //#29912 + $k[$j++] = _h; //#29912 + bwipp_gs1_128(); //#29912 + var _i = $k[--$j]; //#29913 + $_.linsbs = $get(_i, "sbs"); //#29913 + $_.linheight = $get($get(_i, "bhs"), 0) * 72; //#29914 + $k[$j++] = _i; //#29915 + if (!$_.usematrix) { //#29915 + bwipp_renlinear(); //#29915 + } else { //#29915 + $j--; //#29915 + } //#29915 + $k[$j++] = Infinity; //#29918 + $k[$j++] = 1; //#29919 + $forall($_.linsbs, function() { //#29919 + var _o = $k[--$j]; //#29919 + var _p = $k[--$j]; //#29919 + var _q = (_p == 0) ? 1 : 0; //#29919 + $k[$j++] = _p; //#29919 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#29919 + $k[$j++] = _q //#29919 + } //#29919 + }); //#29919 + $astore($a($counttomark() - 1)); //#29920 + $_.sep = $k[--$j]; //#29920 + $j -= 2; //#29920 + if (!$_.usematrix) { //#29931 + $$.rmoveto(0, $_.linheight); //#29922 + var _12 = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.sep], ["pixx", $_.sep.length], @@ -37681,98 +38151,94 @@ function bwipp_gs1_128composite() { ["height", 1 / 72], ["width", $_.sep.length / 72], ["opt", $_.options] - ]); //#29607 - $k[$j++] = _11; //#29608 - bwipp_renmatrix(); //#29608 - } //#29608 - if ($eq($_.linktype, "a")) { //#29617 - $_.s = ~~($f($_.linwidth - 2) / 11); //#29613 - $_.p = ~~(($_.s - 9) / 2); //#29614 - $k[$j++] = 'x'; //#29615 - $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29615 - if ($_.p == 0) { //#29615 - var _18 = $k[--$j]; //#29615 - $k[$j++] = $f(_18 + 2); //#29615 - } //#29615 - var _19 = $k[--$j]; //#29615 - $_[$k[--$j]] = $f(_19 - 99); //#29615 - } else { //#29617 - $_.x = -7; //#29617 - } //#29617 - if (!$_.usematrix) { //#29675 - $$.rmoveto($_.x, 1); //#29621 - $k[$j++] = $_.compsym; //#29621 - bwipp_renmatrix(); //#29621 - $$.restore(); //#29623 - } else { //#29675 - $_.ccpixs = $get($_.compsym, 'pixs'); //#29625 - $_.ccpixx = $get($_.compsym, 'pixx'); //#29626 - $k[$j++] = Infinity; //#29629 - $forall($_.linsbs, function() { //#29629 - var _1J = $k[--$j]; //#29629 - var _1K = $k[--$j]; //#29629 - var _1L = (_1K == 1) ? 0 : 1; //#29629 - $k[$j++] = _1K; //#29629 - for (var _1M = 0, _1N = _1J; _1M < _1N; _1M++) { //#29629 - $k[$j++] = _1L //#29629 - } //#29629 - }); //#29629 - $_.linpixs = $a(); //#29629 - if ($_.x > 0) { //#29637 - $k[$j++] = Infinity; //#29633 - for (var _1R = 0, _1S = $_.x; _1R < _1S; _1R++) { //#29633 - $k[$j++] = 0; //#29633 - } //#29633 - $_.cclpad = $a(); //#29633 - $_.linlpad = $a(0); //#29634 - } else { //#29637 - $_.cclpad = $a(0); //#29636 - $k[$j++] = Infinity; //#29637 - for (var _1X = 0, _1Y = -$_.x; _1X < _1Y; _1X++) { //#29637 - $k[$j++] = 0; //#29637 - } //#29637 - $_.linlpad = $a(); //#29637 - } //#29637 - $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29640 - if ($_.diff > 0) { //#29646 - $k[$j++] = Infinity; //#29642 - for (var _1f = 0, _1g = $_.diff; _1f < _1g; _1f++) { //#29642 - $k[$j++] = 0; //#29642 - } //#29642 - $_.ccrpad = $a(); //#29642 - $_.linrpad = $a(0); //#29643 - } else { //#29646 - $_.ccrpad = $a(0); //#29645 - $k[$j++] = Infinity; //#29646 - for (var _1l = 0, _1m = -$_.diff; _1l < _1m; _1l++) { //#29646 - $k[$j++] = 0; //#29646 - } //#29646 - $_.linrpad = $a(); //#29646 - } //#29646 - $_.linheight = ~~$_.linheight; //#29649 - var _1q = $eq($_.linktype, "a") ? 2 : 3; //#29650 - $_.ccrepeat = _1q; //#29650 - $k[$j++] = Infinity; //#29657 - for (var _1u = 0, _1v = $_.ccpixx, _1t = $_.ccpixs.length - 1; _1v < 0 ? _1u >= _1t : _1u <= _1t; _1u += _1v) { //#29655 - $_.i = _1u; //#29653 - for (var _1x = 0, _1y = $_.ccrepeat; _1x < _1y; _1x++) { //#29654 - $aload($_.cclpad); //#29654 - $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29654 - $aload($_.ccrpad); //#29654 - } //#29654 - } //#29654 - $aload($_.linlpad); //#29656 - $aload($_.sep); //#29656 - $aload($_.linrpad); //#29656 - for (var _29 = 0, _2A = $_.linheight; _29 < _2A; _29++) { //#29657 - $aload($_.linlpad); //#29657 - $aload($_.linpixs); //#29657 - $aload($_.linrpad); //#29657 - } //#29657 - $_.pixs = $a(); //#29657 - $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29660 - $_.pixy = ~~($_.pixs.length / $_.pixx); //#29661 - var _2Q = new Map([ + ]); //#29929 + $k[$j++] = _12; //#29930 + bwipp_renmatrix(); //#29930 + } //#29930 + if ($eq($_.linktype, "a")) { //#29939 + $_.s = ~~($f($_.linwidth - 2) / 11); //#29935 + $_.p = ~~(($_.s - 9) / 2); //#29936 + $k[$j++] = 'x'; //#29937 + $k[$j++] = ((($_.s - $_.p) - 1) * 11) + 10; //#29937 + if ($_.p == 0) { //#29937 + var _19 = $k[--$j]; //#29937 + $k[$j++] = $f(_19 + 2); //#29937 + } //#29937 + var _1A = $k[--$j]; //#29937 + $_[$k[--$j]] = $f(_1A - 99); //#29937 + } else { //#29939 + $_.x = -7; //#29939 + } //#29939 + if (!$_.usematrix) { //#29996 + $$.rmoveto($_.x, 1); //#29943 + $k[$j++] = $_.compsym; //#29943 + bwipp_renmatrix(); //#29943 + $$.restore(); //#29945 + } else { //#29996 + $_.ccpixs = $get($_.compsym, 'pixs'); //#29947 + $_.ccpixx = $get($_.compsym, 'pixx'); //#29948 + $k[$j++] = Infinity; //#29950 + $forall($_.linsbs, function() { //#29951 + var _1K = $k[--$j]; //#29951 + var _1L = $k[--$j]; //#29951 + var _1M = (_1L == 1) ? 0 : 1; //#29951 + $k[$j++] = _1L; //#29951 + for (var _1N = 0, _1O = _1K; _1N < _1O; _1N++) { //#29951 + $k[$j++] = _1M //#29951 + } //#29951 + }); //#29951 + $_.linpixs = $a(); //#29951 + if ($_.x > 0) { //#29959 + $k[$j++] = Infinity; //#29955 + for (var _1S = 0, _1T = $_.x; _1S < _1T; _1S++) { //#29955 + $k[$j++] = 0; //#29955 + } //#29955 + $_.cclpad = $a(); //#29955 + $_.linlpad = $a(0); //#29956 + } else { //#29959 + $_.cclpad = $a(0); //#29958 + $k[$j++] = Infinity; //#29959 + for (var _1Y = 0, _1Z = -$_.x; _1Y < _1Z; _1Y++) { //#29959 + $k[$j++] = 0; //#29959 + } //#29959 + $_.linlpad = $a(); //#29959 + } //#29959 + $_.diff = $f($_.linwidth - $f($_.ccpixx + $_.x)); //#29962 + if ($_.diff > 0) { //#29968 + $k[$j++] = Infinity; //#29964 + for (var _1g = 0, _1h = $_.diff; _1g < _1h; _1g++) { //#29964 + $k[$j++] = 0; //#29964 + } //#29964 + $_.ccrpad = $a(); //#29964 + $_.linrpad = $a(0); //#29965 + } else { //#29968 + $_.ccrpad = $a(0); //#29967 + $k[$j++] = Infinity; //#29968 + for (var _1m = 0, _1n = -$_.diff; _1m < _1n; _1m++) { //#29968 + $k[$j++] = 0; //#29968 + } //#29968 + $_.linrpad = $a(); //#29968 + } //#29968 + $_.linheight = ~~$_.linheight; //#29971 + $k[$j++] = Infinity; //#29972 + for (var _1t = 0, _1u = $_.ccpixx, _1s = $_.ccpixs.length - 1; _1u < 0 ? _1t >= _1s : _1t <= _1s; _1t += _1u) { //#29976 + $_.i = _1t; //#29974 + $aload($_.cclpad); //#29975 + $aload($geti($_.ccpixs, $_.i, $_.ccpixx)); //#29975 + $aload($_.ccrpad); //#29975 + } //#29975 + $aload($_.linlpad); //#29977 + $aload($_.sep); //#29977 + $aload($_.linrpad); //#29977 + for (var _25 = 0, _26 = $_.linheight; _25 < _26; _25++) { //#29978 + $aload($_.linlpad); //#29978 + $aload($_.linpixs); //#29978 + $aload($_.linrpad); //#29978 + } //#29978 + $_.pixs = $a(); //#29978 + $_.pixx = $f($f($_.cclpad.length + $_.ccpixx) + $_.ccrpad.length); //#29981 + $_.pixy = ~~($_.pixs.length / $_.pixx); //#29982 + var _2M = new Map([ ["ren", bwipp_renmatrix], ["pixs", $_.pixs], ["pixx", $_.pixx], @@ -37780,1671 +38246,1709 @@ function bwipp_gs1_128composite() { ["height", $_.pixy / 72], ["width", $_.pixx / 72], ["opt", $_.options] - ]); //#29669 - $k[$j++] = _2Q; //#29676 - if (!$_.dontdraw) { //#29676 - $$.save(); //#29673 - bwipp_renmatrix(); //#29674 - $$.restore(); //#29675 - } //#29675 - } //#29675 - $_ = Object.getPrototypeOf($_); //#29679 -} - + ]); //#29990 + $k[$j++] = _2M; //#29997 + if (!$_.dontdraw) { //#29997 + $$.save(); //#29994 + bwipp_renmatrix(); //#29995 + $$.restore(); //#29996 + } //#29996 + } //#29996 + $_ = Object.getPrototypeOf($_); //#30000 +} //bwipp_gs1_128composite function bwipp_gs1datamatrix() { - $_ = Object.create($_); //#29709 - $_.dontdraw = false; //#29712 - $_.parse = false; //#29713 - $_.dontlint = false; //#29714 - $_.lintreqs = true; //#29715 - $_.gssep = false; //#29716 - $k[$j++] = $_; //#29718 - bwipp_processoptions(); //#29718 - $_.options = $k[--$j]; //#29718 - $_.barcode = $k[--$j]; //#29719 - $k[$j++] = $_.barcode; //#29721 - $k[$j++] = 'ai'; //#29721 - bwipp_gs1process(); //#29721 - $_.fncs = $k[--$j]; //#29722 - $_.vals = $k[--$j]; //#29723 - $_.ais = $k[--$j]; //#29724 - $_.fnc1 = -1; //#29727 - $_.dmtx = $a([$_.fnc1]); //#29728 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29744 - $_.i = _A; //#29730 - $_.ai = $get($_.ais, $_.i); //#29731 - $_.val = $get($_.vals, $_.i); //#29732 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29733 - $puti(_K, 0, $_.dmtx); //#29734 - $k[$j++] = _K; //#29735 - $k[$j++] = _K; //#29735 - $k[$j++] = $_.dmtx.length; //#29735 - $k[$j++] = $_.ai; //#29735 - $k[$j++] = Infinity; //#29735 - var _O = $k[--$j]; //#29735 - var _P = $k[--$j]; //#29735 - $k[$j++] = _O; //#29735 - $forall(_P); //#29735 - var _Q = $a(); //#29735 - var _R = $k[--$j]; //#29735 - $puti($k[--$j], _R, _Q); //#29735 - var _T = $k[--$j]; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = _T; //#29736 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29736 - $k[$j++] = $_.val; //#29736 - $k[$j++] = Infinity; //#29736 - var _X = $k[--$j]; //#29736 - var _Y = $k[--$j]; //#29736 - $k[$j++] = _X; //#29736 - $forall(_Y); //#29736 - var _Z = $a(); //#29736 - var _a = $k[--$j]; //#29736 - $puti($k[--$j], _a, _Z); //#29736 - $_.dmtx = $k[--$j]; //#29737 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29743 - var _j = $a($_.dmtx.length + 1); //#29739 - $puti(_j, 0, $_.dmtx); //#29740 - $k[$j++] = _j; //#29741 - $k[$j++] = _j; //#29741 - $k[$j++] = $_.dmtx.length; //#29741 - if ($_.gssep) { //#29741 - $k[$j++] = 29; //#29741 - } else { //#29741 - $k[$j++] = $_.fnc1; //#29741 - } //#29741 - var _o = $k[--$j]; //#29741 - var _p = $k[--$j]; //#29741 - $put($k[--$j], _p, _o); //#29741 - $_.dmtx = $k[--$j]; //#29742 - } //#29742 - } //#29742 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29747 - $_.i = 0; //#29748 - $_.j = 0; //#29748 - for (;;) { //#29758 - if ($_.i == $_.dmtx.length) { //#29749 - break; //#29749 - } //#29749 - var _y = $get($_.dmtx, $_.i); //#29750 - $k[$j++] = _y; //#29755 - if (_y == $_.fnc1) { //#29754 - $j--; //#29751 - $puti($_.barcode, $_.j, "^FNC1"); //#29751 - $_.j = $_.j + 4; //#29752 - } else { //#29754 - $put($_.barcode, $_.j, $k[--$j]); //#29754 - } //#29754 - $_.i = $_.i + 1; //#29756 - $_.j = $_.j + 1; //#29757 - } //#29757 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29759 - delete $_.options["parse"]; //#29762 - $put($_.options, "dontdraw", true); //#29763 - $put($_.options, "parsefnc", true); //#29764 - $k[$j++] = 'args'; //#29765 - $k[$j++] = $_.barcode; //#29765 - $k[$j++] = $_.options; //#29765 - bwipp_datamatrix(); //#29765 - var _1G = $k[--$j]; //#29765 - $_[$k[--$j]] = _1G; //#29765 - $put($_.args, "opt", $_.options); //#29767 - $k[$j++] = $_.args; //#29770 - if (!$_.dontdraw) { //#29770 - bwipp_renmatrix(); //#29770 - } //#29770 - $_ = Object.getPrototypeOf($_); //#29772 -} - + $_ = Object.create($_); //#30030 + $_.dontdraw = false; //#30033 + $_.parse = false; //#30034 + $_.dontlint = false; //#30035 + $_.lintreqs = true; //#30036 + $_.gssep = false; //#30037 + $k[$j++] = $_; //#30039 + bwipp_processoptions(); //#30039 + $_.options = $k[--$j]; //#30039 + $_.barcode = $k[--$j]; //#30040 + $k[$j++] = $_.barcode; //#30042 + $k[$j++] = 'ai'; //#30042 + bwipp_gs1process(); //#30042 + $_.fncs = $k[--$j]; //#30043 + $_.vals = $k[--$j]; //#30044 + $_.ais = $k[--$j]; //#30045 + $_.fnc1 = -1; //#30048 + $_.dmtx = $a([$_.fnc1]); //#30049 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30065 + $_.i = _A; //#30051 + $_.ai = $get($_.ais, $_.i); //#30052 + $_.val = $get($_.vals, $_.i); //#30053 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30054 + $puti(_K, 0, $_.dmtx); //#30055 + $k[$j++] = _K; //#30056 + $k[$j++] = _K; //#30056 + $k[$j++] = $_.dmtx.length; //#30056 + $k[$j++] = $_.ai; //#30056 + $k[$j++] = Infinity; //#30056 + var _O = $k[--$j]; //#30056 + var _P = $k[--$j]; //#30056 + $k[$j++] = _O; //#30056 + $forall(_P); //#30056 + var _Q = $a(); //#30056 + var _R = $k[--$j]; //#30056 + $puti($k[--$j], _R, _Q); //#30056 + var _T = $k[--$j]; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = _T; //#30057 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30057 + $k[$j++] = $_.val; //#30057 + $k[$j++] = Infinity; //#30057 + var _X = $k[--$j]; //#30057 + var _Y = $k[--$j]; //#30057 + $k[$j++] = _X; //#30057 + $forall(_Y); //#30057 + var _Z = $a(); //#30057 + var _a = $k[--$j]; //#30057 + $puti($k[--$j], _a, _Z); //#30057 + $_.dmtx = $k[--$j]; //#30058 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30064 + var _j = $a($_.dmtx.length + 1); //#30060 + $puti(_j, 0, $_.dmtx); //#30061 + $k[$j++] = _j; //#30062 + $k[$j++] = _j; //#30062 + $k[$j++] = $_.dmtx.length; //#30062 + if ($_.gssep) { //#30062 + $k[$j++] = 29; //#30062 + } else { //#30062 + $k[$j++] = $_.fnc1; //#30062 + } //#30062 + var _o = $k[--$j]; //#30062 + var _p = $k[--$j]; //#30062 + $put($k[--$j], _p, _o); //#30062 + $_.dmtx = $k[--$j]; //#30063 + } //#30063 + } //#30063 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30068 + $_.i = 0; //#30069 + $_.j = 0; //#30069 + for (;;) { //#30079 + if ($_.i == $_.dmtx.length) { //#30070 + break; //#30070 + } //#30070 + var _y = $get($_.dmtx, $_.i); //#30071 + $k[$j++] = _y; //#30076 + if (_y == $_.fnc1) { //#30075 + $j--; //#30072 + $puti($_.barcode, $_.j, "^FNC1"); //#30072 + $_.j = $_.j + 4; //#30073 + } else { //#30075 + $put($_.barcode, $_.j, $k[--$j]); //#30075 + } //#30075 + $_.i = $_.i + 1; //#30077 + $_.j = $_.j + 1; //#30078 + } //#30078 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30080 + delete $_.options["parse"]; //#30083 + $put($_.options, "dontdraw", true); //#30084 + $put($_.options, "parsefnc", true); //#30085 + $k[$j++] = 'args'; //#30086 + $k[$j++] = $_.barcode; //#30086 + $k[$j++] = $_.options; //#30086 + bwipp_datamatrix(); //#30086 + var _1G = $k[--$j]; //#30086 + $_[$k[--$j]] = _1G; //#30086 + $put($_.args, "opt", $_.options); //#30088 + $k[$j++] = $_.args; //#30091 + if (!$_.dontdraw) { //#30091 + bwipp_renmatrix(); //#30091 + } //#30091 + $_ = Object.getPrototypeOf($_); //#30093 +} //bwipp_gs1datamatrix function bwipp_gs1datamatrixrectangular() { - $_ = Object.create($_); //#29802 - $_.parse = false; //#29805 - $_.dontlint = false; //#29806 - $_.lintreqs = true; //#29807 - $_.dontdraw = false; //#29808 - $_.gssep = false; //#29809 - $k[$j++] = $_; //#29811 - bwipp_processoptions(); //#29811 - $_.options = $k[--$j]; //#29811 - $_.barcode = $k[--$j]; //#29812 - $k[$j++] = $_.barcode; //#29814 - $k[$j++] = 'ai'; //#29814 - bwipp_gs1process(); //#29814 - $_.fncs = $k[--$j]; //#29815 - $_.vals = $k[--$j]; //#29816 - $_.ais = $k[--$j]; //#29817 - $_.fnc1 = -1; //#29820 - $_.dmtx = $a([$_.fnc1]); //#29821 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29837 - $_.i = _A; //#29823 - $_.ai = $get($_.ais, $_.i); //#29824 - $_.val = $get($_.vals, $_.i); //#29825 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#29826 - $puti(_K, 0, $_.dmtx); //#29827 - $k[$j++] = _K; //#29828 - $k[$j++] = _K; //#29828 - $k[$j++] = $_.dmtx.length; //#29828 - $k[$j++] = $_.ai; //#29828 - $k[$j++] = Infinity; //#29828 - var _O = $k[--$j]; //#29828 - var _P = $k[--$j]; //#29828 - $k[$j++] = _O; //#29828 - $forall(_P); //#29828 - var _Q = $a(); //#29828 - var _R = $k[--$j]; //#29828 - $puti($k[--$j], _R, _Q); //#29828 - var _T = $k[--$j]; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = _T; //#29829 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#29829 - $k[$j++] = $_.val; //#29829 - $k[$j++] = Infinity; //#29829 - var _X = $k[--$j]; //#29829 - var _Y = $k[--$j]; //#29829 - $k[$j++] = _X; //#29829 - $forall(_Y); //#29829 - var _Z = $a(); //#29829 - var _a = $k[--$j]; //#29829 - $puti($k[--$j], _a, _Z); //#29829 - $_.dmtx = $k[--$j]; //#29830 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29836 - var _j = $a($_.dmtx.length + 1); //#29832 - $puti(_j, 0, $_.dmtx); //#29833 - $k[$j++] = _j; //#29834 - $k[$j++] = _j; //#29834 - $k[$j++] = $_.dmtx.length; //#29834 - if ($_.gssep) { //#29834 - $k[$j++] = 29; //#29834 - } else { //#29834 - $k[$j++] = $_.fnc1; //#29834 - } //#29834 - var _o = $k[--$j]; //#29834 - var _p = $k[--$j]; //#29834 - $put($k[--$j], _p, _o); //#29834 - $_.dmtx = $k[--$j]; //#29835 - } //#29835 - } //#29835 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#29840 - $_.i = 0; //#29841 - $_.j = 0; //#29841 - for (;;) { //#29851 - if ($_.i == $_.dmtx.length) { //#29842 - break; //#29842 - } //#29842 - var _y = $get($_.dmtx, $_.i); //#29843 - $k[$j++] = _y; //#29848 - if (_y == $_.fnc1) { //#29847 - $j--; //#29844 - $puti($_.barcode, $_.j, "^FNC1"); //#29844 - $_.j = $_.j + 4; //#29845 - } else { //#29847 - $put($_.barcode, $_.j, $k[--$j]); //#29847 - } //#29847 - $_.i = $_.i + 1; //#29849 - $_.j = $_.j + 1; //#29850 - } //#29850 - $_.barcode = $geti($_.barcode, 0, $_.j); //#29852 - delete $_.options["parse"]; //#29855 - $put($_.options, "dontdraw", true); //#29856 - $put($_.options, "parsefnc", true); //#29857 - $put($_.options, "format", "rectangle"); //#29858 - $k[$j++] = 'args'; //#29859 - $k[$j++] = $_.barcode; //#29859 - $k[$j++] = $_.options; //#29859 - bwipp_datamatrix(); //#29859 - var _1H = $k[--$j]; //#29859 - $_[$k[--$j]] = _1H; //#29859 - $put($_.args, "opt", $_.options); //#29861 - $k[$j++] = $_.args; //#29864 - if (!$_.dontdraw) { //#29864 - bwipp_renmatrix(); //#29864 - } //#29864 - $_ = Object.getPrototypeOf($_); //#29866 -} - + $_ = Object.create($_); //#30123 + $_.parse = false; //#30126 + $_.dontlint = false; //#30127 + $_.lintreqs = true; //#30128 + $_.dontdraw = false; //#30129 + $_.gssep = false; //#30130 + $k[$j++] = $_; //#30132 + bwipp_processoptions(); //#30132 + $_.options = $k[--$j]; //#30132 + $_.barcode = $k[--$j]; //#30133 + $k[$j++] = $_.barcode; //#30135 + $k[$j++] = 'ai'; //#30135 + bwipp_gs1process(); //#30135 + $_.fncs = $k[--$j]; //#30136 + $_.vals = $k[--$j]; //#30137 + $_.ais = $k[--$j]; //#30138 + $_.fnc1 = -1; //#30141 + $_.dmtx = $a([$_.fnc1]); //#30142 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30158 + $_.i = _A; //#30144 + $_.ai = $get($_.ais, $_.i); //#30145 + $_.val = $get($_.vals, $_.i); //#30146 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30147 + $puti(_K, 0, $_.dmtx); //#30148 + $k[$j++] = _K; //#30149 + $k[$j++] = _K; //#30149 + $k[$j++] = $_.dmtx.length; //#30149 + $k[$j++] = $_.ai; //#30149 + $k[$j++] = Infinity; //#30149 + var _O = $k[--$j]; //#30149 + var _P = $k[--$j]; //#30149 + $k[$j++] = _O; //#30149 + $forall(_P); //#30149 + var _Q = $a(); //#30149 + var _R = $k[--$j]; //#30149 + $puti($k[--$j], _R, _Q); //#30149 + var _T = $k[--$j]; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = _T; //#30150 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30150 + $k[$j++] = $_.val; //#30150 + $k[$j++] = Infinity; //#30150 + var _X = $k[--$j]; //#30150 + var _Y = $k[--$j]; //#30150 + $k[$j++] = _X; //#30150 + $forall(_Y); //#30150 + var _Z = $a(); //#30150 + var _a = $k[--$j]; //#30150 + $puti($k[--$j], _a, _Z); //#30150 + $_.dmtx = $k[--$j]; //#30151 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30157 + var _j = $a($_.dmtx.length + 1); //#30153 + $puti(_j, 0, $_.dmtx); //#30154 + $k[$j++] = _j; //#30155 + $k[$j++] = _j; //#30155 + $k[$j++] = $_.dmtx.length; //#30155 + if ($_.gssep) { //#30155 + $k[$j++] = 29; //#30155 + } else { //#30155 + $k[$j++] = $_.fnc1; //#30155 + } //#30155 + var _o = $k[--$j]; //#30155 + var _p = $k[--$j]; //#30155 + $put($k[--$j], _p, _o); //#30155 + $_.dmtx = $k[--$j]; //#30156 + } //#30156 + } //#30156 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30161 + $_.i = 0; //#30162 + $_.j = 0; //#30162 + for (;;) { //#30172 + if ($_.i == $_.dmtx.length) { //#30163 + break; //#30163 + } //#30163 + var _y = $get($_.dmtx, $_.i); //#30164 + $k[$j++] = _y; //#30169 + if (_y == $_.fnc1) { //#30168 + $j--; //#30165 + $puti($_.barcode, $_.j, "^FNC1"); //#30165 + $_.j = $_.j + 4; //#30166 + } else { //#30168 + $put($_.barcode, $_.j, $k[--$j]); //#30168 + } //#30168 + $_.i = $_.i + 1; //#30170 + $_.j = $_.j + 1; //#30171 + } //#30171 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30173 + delete $_.options["parse"]; //#30176 + $put($_.options, "dontdraw", true); //#30177 + $put($_.options, "parsefnc", true); //#30178 + $put($_.options, "format", "rectangle"); //#30179 + $k[$j++] = 'args'; //#30180 + $k[$j++] = $_.barcode; //#30180 + $k[$j++] = $_.options; //#30180 + bwipp_datamatrix(); //#30180 + var _1H = $k[--$j]; //#30180 + $_[$k[--$j]] = _1H; //#30180 + $put($_.args, "opt", $_.options); //#30182 + $k[$j++] = $_.args; //#30185 + if (!$_.dontdraw) { //#30185 + bwipp_renmatrix(); //#30185 + } //#30185 + $_ = Object.getPrototypeOf($_); //#30187 +} //bwipp_gs1datamatrixrectangular function bwipp_gs1dldatamatrix() { - $_ = Object.create($_); //#29896 - $_.parse = false; //#29899 - $_.dontlint = false; //#29900 - $_.lintreqs = true; //#29901 - $_.dontdraw = false; //#29902 - $k[$j++] = $_; //#29904 - bwipp_processoptions(); //#29904 - $_.options = $k[--$j]; //#29904 - $_.barcode = $k[--$j]; //#29905 + $_ = Object.create($_); //#30217 + $_.parse = false; //#30220 + $_.dontlint = false; //#30221 + $_.lintreqs = true; //#30222 + $_.dontdraw = false; //#30223 + $k[$j++] = $_; //#30225 + bwipp_processoptions(); //#30225 + $_.options = $k[--$j]; //#30225 + $_.barcode = $k[--$j]; //#30226 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#29911 - $_.fncvals = _3; //#29912 - $k[$j++] = 'barcode'; //#29913 - $k[$j++] = $_.barcode; //#29913 - $k[$j++] = $_.fncvals; //#29913 - bwipp_parseinput(); //#29913 - var _6 = $k[--$j]; //#29913 - $_[$k[--$j]] = _6; //#29913 - $k[$j++] = $_.barcode; //#29915 - $k[$j++] = 'dl'; //#29915 - bwipp_gs1process(); //#29915 - $j -= 3; //#29915 - delete $_.options["parse"]; //#29918 - $put($_.options, "dontdraw", true); //#29919 - $k[$j++] = 'args'; //#29920 - $k[$j++] = $_.barcode; //#29920 - $k[$j++] = $_.options; //#29920 - bwipp_datamatrix(); //#29920 - var _D = $k[--$j]; //#29920 - $_[$k[--$j]] = _D; //#29920 - $put($_.args, "opt", $_.options); //#29922 - $k[$j++] = $_.args; //#29925 - if (!$_.dontdraw) { //#29925 - bwipp_renmatrix(); //#29925 - } //#29925 - $_ = Object.getPrototypeOf($_); //#29927 -} - + ]); //#30232 + $_.fncvals = _3; //#30233 + $k[$j++] = 'barcode'; //#30234 + $k[$j++] = $_.barcode; //#30234 + $k[$j++] = $_.fncvals; //#30234 + bwipp_parseinput(); //#30234 + var _6 = $k[--$j]; //#30234 + $_[$k[--$j]] = _6; //#30234 + $k[$j++] = $_.barcode; //#30236 + $k[$j++] = 'dl'; //#30236 + bwipp_gs1process(); //#30236 + $j -= 3; //#30236 + delete $_.options["parse"]; //#30239 + $put($_.options, "dontdraw", true); //#30240 + $k[$j++] = 'args'; //#30241 + $k[$j++] = $_.barcode; //#30241 + $k[$j++] = $_.options; //#30241 + bwipp_datamatrix(); //#30241 + var _D = $k[--$j]; //#30241 + $_[$k[--$j]] = _D; //#30241 + $put($_.args, "opt", $_.options); //#30243 + $k[$j++] = $_.args; //#30246 + if (!$_.dontdraw) { //#30246 + bwipp_renmatrix(); //#30246 + } //#30246 + $_ = Object.getPrototypeOf($_); //#30248 +} //bwipp_gs1dldatamatrix function bwipp_gs1qrcode() { - $_ = Object.create($_); //#29956 - $_.parse = false; //#29959 - $_.dontlint = false; //#29960 - $_.lintreqs = true; //#29961 - $_.dontdraw = false; //#29962 - $k[$j++] = $_; //#29964 - bwipp_processoptions(); //#29964 - $_.options = $k[--$j]; //#29964 - $_.barcode = $k[--$j]; //#29965 - $k[$j++] = $_.barcode; //#29967 - $k[$j++] = 'ai'; //#29967 - bwipp_gs1process(); //#29967 - $_.fncs = $k[--$j]; //#29968 - $_.vals = $k[--$j]; //#29969 - $_.ais = $k[--$j]; //#29970 - $_.fnc1 = -1; //#29973 - $_.qrc = $a([$_.fnc1]); //#29974 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#29990 - $_.i = _A; //#29976 - $_.ai = $get($_.ais, $_.i); //#29977 - $_.val = $get($_.vals, $_.i); //#29978 - var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#29979 - $puti(_K, 0, $_.qrc); //#29980 - $k[$j++] = _K; //#29981 - $k[$j++] = _K; //#29981 - $k[$j++] = $_.qrc.length; //#29981 - $k[$j++] = $_.ai; //#29981 - $k[$j++] = Infinity; //#29981 - var _O = $k[--$j]; //#29981 - var _P = $k[--$j]; //#29981 - $k[$j++] = _O; //#29981 - $forall(_P); //#29981 - var _Q = $a(); //#29981 - var _R = $k[--$j]; //#29981 - $puti($k[--$j], _R, _Q); //#29981 - var _T = $k[--$j]; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = _T; //#29982 - $k[$j++] = $_.qrc.length + $_.ai.length; //#29982 - $k[$j++] = $_.val; //#29982 - $k[$j++] = Infinity; //#29982 - var _X = $k[--$j]; //#29982 - var _Y = $k[--$j]; //#29982 - $k[$j++] = _X; //#29982 - $forall(_Y); //#29982 - var _Z = $a(); //#29982 - var _a = $k[--$j]; //#29982 - $puti($k[--$j], _a, _Z); //#29982 - $_.qrc = $k[--$j]; //#29983 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#29989 - var _j = $a($_.qrc.length + 1); //#29985 - $puti(_j, 0, $_.qrc); //#29986 - $put(_j, $_.qrc.length, $_.fnc1); //#29987 - $_.qrc = _j; //#29988 - } //#29988 - } //#29988 - $_.barcode = $s(($_.qrc.length + 1) * 5); //#29993 - $_.i = 0; //#29994 - $_.j = 0; //#29994 - for (;;) { //#30004 - if ($_.i == $_.qrc.length) { //#29995 - break; //#29995 - } //#29995 - var _t = $get($_.qrc, $_.i); //#29996 - $k[$j++] = _t; //#30001 - if (_t == $_.fnc1) { //#30000 - $j--; //#29997 - $puti($_.barcode, $_.j, "^FNC1"); //#29997 - $_.j = $_.j + 4; //#29998 - } else { //#30000 - $put($_.barcode, $_.j, $k[--$j]); //#30000 - } //#30000 - $_.i = $_.i + 1; //#30002 - $_.j = $_.j + 1; //#30003 - } //#30003 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30005 - delete $_.options["parse"]; //#30008 - $put($_.options, "dontdraw", true); //#30009 - $put($_.options, "parsefnc", true); //#30010 - $k[$j++] = 'args'; //#30011 - $k[$j++] = $_.barcode; //#30011 - $k[$j++] = $_.options; //#30011 - bwipp_qrcode(); //#30011 - var _1B = $k[--$j]; //#30011 - $_[$k[--$j]] = _1B; //#30011 - $put($_.args, "opt", $_.options); //#30013 - $k[$j++] = $_.args; //#30016 - if (!$_.dontdraw) { //#30016 - bwipp_renmatrix(); //#30016 - } //#30016 - $_ = Object.getPrototypeOf($_); //#30018 -} - + $_ = Object.create($_); //#30277 + $_.parse = false; //#30280 + $_.dontlint = false; //#30281 + $_.lintreqs = true; //#30282 + $_.dontdraw = false; //#30283 + $k[$j++] = $_; //#30285 + bwipp_processoptions(); //#30285 + $_.options = $k[--$j]; //#30285 + $_.barcode = $k[--$j]; //#30286 + $k[$j++] = $_.barcode; //#30288 + $k[$j++] = 'ai'; //#30288 + bwipp_gs1process(); //#30288 + $_.fncs = $k[--$j]; //#30289 + $_.vals = $k[--$j]; //#30290 + $_.ais = $k[--$j]; //#30291 + $_.fnc1 = -1; //#30294 + $_.qrc = $a([$_.fnc1]); //#30295 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30311 + $_.i = _A; //#30297 + $_.ai = $get($_.ais, $_.i); //#30298 + $_.val = $get($_.vals, $_.i); //#30299 + var _K = $a(($_.qrc.length + $_.ai.length) + $_.val.length); //#30300 + $puti(_K, 0, $_.qrc); //#30301 + $k[$j++] = _K; //#30302 + $k[$j++] = _K; //#30302 + $k[$j++] = $_.qrc.length; //#30302 + $k[$j++] = $_.ai; //#30302 + $k[$j++] = Infinity; //#30302 + var _O = $k[--$j]; //#30302 + var _P = $k[--$j]; //#30302 + $k[$j++] = _O; //#30302 + $forall(_P); //#30302 + var _Q = $a(); //#30302 + var _R = $k[--$j]; //#30302 + $puti($k[--$j], _R, _Q); //#30302 + var _T = $k[--$j]; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = _T; //#30303 + $k[$j++] = $_.qrc.length + $_.ai.length; //#30303 + $k[$j++] = $_.val; //#30303 + $k[$j++] = Infinity; //#30303 + var _X = $k[--$j]; //#30303 + var _Y = $k[--$j]; //#30303 + $k[$j++] = _X; //#30303 + $forall(_Y); //#30303 + var _Z = $a(); //#30303 + var _a = $k[--$j]; //#30303 + $puti($k[--$j], _a, _Z); //#30303 + $_.qrc = $k[--$j]; //#30304 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30310 + var _j = $a($_.qrc.length + 1); //#30306 + $puti(_j, 0, $_.qrc); //#30307 + $put(_j, $_.qrc.length, $_.fnc1); //#30308 + $_.qrc = _j; //#30309 + } //#30309 + } //#30309 + $_.barcode = $s(($_.qrc.length + 1) * 5); //#30314 + $_.i = 0; //#30315 + $_.j = 0; //#30315 + for (;;) { //#30325 + if ($_.i == $_.qrc.length) { //#30316 + break; //#30316 + } //#30316 + var _t = $get($_.qrc, $_.i); //#30317 + $k[$j++] = _t; //#30322 + if (_t == $_.fnc1) { //#30321 + $j--; //#30318 + $puti($_.barcode, $_.j, "^FNC1"); //#30318 + $_.j = $_.j + 4; //#30319 + } else { //#30321 + $put($_.barcode, $_.j, $k[--$j]); //#30321 + } //#30321 + $_.i = $_.i + 1; //#30323 + $_.j = $_.j + 1; //#30324 + } //#30324 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30326 + delete $_.options["parse"]; //#30329 + $put($_.options, "dontdraw", true); //#30330 + $put($_.options, "parsefnc", true); //#30331 + $k[$j++] = 'args'; //#30332 + $k[$j++] = $_.barcode; //#30332 + $k[$j++] = $_.options; //#30332 + bwipp_qrcode(); //#30332 + var _1B = $k[--$j]; //#30332 + $_[$k[--$j]] = _1B; //#30332 + $put($_.args, "opt", $_.options); //#30334 + $k[$j++] = $_.args; //#30337 + if (!$_.dontdraw) { //#30337 + bwipp_renmatrix(); //#30337 + } //#30337 + $_ = Object.getPrototypeOf($_); //#30339 +} //bwipp_gs1qrcode function bwipp_gs1dlqrcode() { - $_ = Object.create($_); //#30048 - $_.parse = false; //#30051 - $_.dontlint = false; //#30052 - $_.lintreqs = true; //#30053 - $_.dontdraw = false; //#30054 - $k[$j++] = $_; //#30056 - bwipp_processoptions(); //#30056 - $_.options = $k[--$j]; //#30056 - $_.barcode = $k[--$j]; //#30057 + $_ = Object.create($_); //#30369 + $_.parse = false; //#30372 + $_.dontlint = false; //#30373 + $_.lintreqs = true; //#30374 + $_.dontdraw = false; //#30375 + $k[$j++] = $_; //#30377 + bwipp_processoptions(); //#30377 + $_.options = $k[--$j]; //#30377 + $_.barcode = $k[--$j]; //#30378 var _3 = new Map([ ["parse", $_.parse], ["parseonly", true], ["parsefnc", false] - ]); //#30063 - $_.fncvals = _3; //#30064 - $k[$j++] = 'barcode'; //#30065 - $k[$j++] = $_.barcode; //#30065 - $k[$j++] = $_.fncvals; //#30065 - bwipp_parseinput(); //#30065 - var _6 = $k[--$j]; //#30065 - $_[$k[--$j]] = _6; //#30065 - $k[$j++] = $_.barcode; //#30067 - $k[$j++] = 'dl'; //#30067 - bwipp_gs1process(); //#30067 - $j -= 3; //#30067 - delete $_.options["parse"]; //#30070 - $put($_.options, "dontdraw", true); //#30071 - $k[$j++] = 'args'; //#30072 - $k[$j++] = $_.barcode; //#30072 - $k[$j++] = $_.options; //#30072 - bwipp_qrcode(); //#30072 - var _D = $k[--$j]; //#30072 - $_[$k[--$j]] = _D; //#30072 - $put($_.args, "opt", $_.options); //#30074 - $k[$j++] = $_.args; //#30077 - if (!$_.dontdraw) { //#30077 - bwipp_renmatrix(); //#30077 - } //#30077 - $_ = Object.getPrototypeOf($_); //#30079 -} - + ]); //#30384 + $_.fncvals = _3; //#30385 + $k[$j++] = 'barcode'; //#30386 + $k[$j++] = $_.barcode; //#30386 + $k[$j++] = $_.fncvals; //#30386 + bwipp_parseinput(); //#30386 + var _6 = $k[--$j]; //#30386 + $_[$k[--$j]] = _6; //#30386 + $k[$j++] = $_.barcode; //#30388 + $k[$j++] = 'dl'; //#30388 + bwipp_gs1process(); //#30388 + $j -= 3; //#30388 + delete $_.options["parse"]; //#30391 + $put($_.options, "dontdraw", true); //#30392 + $k[$j++] = 'args'; //#30393 + $k[$j++] = $_.barcode; //#30393 + $k[$j++] = $_.options; //#30393 + bwipp_qrcode(); //#30393 + var _D = $k[--$j]; //#30393 + $_[$k[--$j]] = _D; //#30393 + $put($_.args, "opt", $_.options); //#30395 + $k[$j++] = $_.args; //#30398 + if (!$_.dontdraw) { //#30398 + bwipp_renmatrix(); //#30398 + } //#30398 + $_ = Object.getPrototypeOf($_); //#30400 +} //bwipp_gs1dlqrcode function bwipp_gs1dotcode() { - $_ = Object.create($_); //#30109 - $_.dontdraw = false; //#30112 - $_.parse = false; //#30113 - $_.dontlint = false; //#30114 - $_.lintreqs = true; //#30115 - $k[$j++] = $_; //#30117 - bwipp_processoptions(); //#30117 - $_.options = $k[--$j]; //#30117 - $_.barcode = $k[--$j]; //#30118 - $k[$j++] = $_.barcode; //#30120 - $k[$j++] = 'ai'; //#30120 - bwipp_gs1process(); //#30120 - $_.fncs = $k[--$j]; //#30121 - $_.vals = $k[--$j]; //#30122 - $_.ais = $k[--$j]; //#30123 - $_.fnc1 = -1; //#30126 - $_.dmtx = $a([$_.fnc1]); //#30127 - for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30143 - $_.i = _A; //#30129 - $_.ai = $get($_.ais, $_.i); //#30130 - $_.val = $get($_.vals, $_.i); //#30131 - var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30132 - $puti(_K, 0, $_.dmtx); //#30133 - $k[$j++] = _K; //#30134 - $k[$j++] = _K; //#30134 - $k[$j++] = $_.dmtx.length; //#30134 - $k[$j++] = $_.ai; //#30134 - $k[$j++] = Infinity; //#30134 - var _O = $k[--$j]; //#30134 - var _P = $k[--$j]; //#30134 - $k[$j++] = _O; //#30134 - $forall(_P); //#30134 - var _Q = $a(); //#30134 - var _R = $k[--$j]; //#30134 - $puti($k[--$j], _R, _Q); //#30134 - var _T = $k[--$j]; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = _T; //#30135 - $k[$j++] = $_.dmtx.length + $_.ai.length; //#30135 - $k[$j++] = $_.val; //#30135 - $k[$j++] = Infinity; //#30135 - var _X = $k[--$j]; //#30135 - var _Y = $k[--$j]; //#30135 - $k[$j++] = _X; //#30135 - $forall(_Y); //#30135 - var _Z = $a(); //#30135 - var _a = $k[--$j]; //#30135 - $puti($k[--$j], _a, _Z); //#30135 - $_.dmtx = $k[--$j]; //#30136 - if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30142 - var _j = $a($_.dmtx.length + 1); //#30138 - $puti(_j, 0, $_.dmtx); //#30139 - $put(_j, $_.dmtx.length, $_.fnc1); //#30140 - $_.dmtx = _j; //#30141 - } //#30141 - } //#30141 - $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30146 - $_.i = 0; //#30147 - $_.j = 0; //#30147 - for (;;) { //#30157 - if ($_.i == $_.dmtx.length) { //#30148 - break; //#30148 - } //#30148 - var _t = $get($_.dmtx, $_.i); //#30149 - $k[$j++] = _t; //#30154 - if (_t == $_.fnc1) { //#30153 - $j--; //#30150 - $puti($_.barcode, $_.j, "^FNC1"); //#30150 - $_.j = $_.j + 4; //#30151 - } else { //#30153 - $put($_.barcode, $_.j, $k[--$j]); //#30153 - } //#30153 - $_.i = $_.i + 1; //#30155 - $_.j = $_.j + 1; //#30156 - } //#30156 - $_.barcode = $geti($_.barcode, 0, $_.j); //#30158 - delete $_.options["parse"]; //#30161 - $put($_.options, "dontdraw", true); //#30162 - $put($_.options, "parsefnc", true); //#30163 - $k[$j++] = 'args'; //#30164 - $k[$j++] = $_.barcode; //#30164 - $k[$j++] = $_.options; //#30164 - bwipp_dotcode(); //#30164 - var _1B = $k[--$j]; //#30164 - $_[$k[--$j]] = _1B; //#30164 - $put($_.args, "opt", $_.options); //#30166 - $k[$j++] = $_.args; //#30169 - if (!$_.dontdraw) { //#30169 - bwipp_renmatrix(); //#30169 - } //#30169 - $_ = Object.getPrototypeOf($_); //#30171 -} - + $_ = Object.create($_); //#30430 + $_.dontdraw = false; //#30433 + $_.parse = false; //#30434 + $_.dontlint = false; //#30435 + $_.lintreqs = true; //#30436 + $k[$j++] = $_; //#30438 + bwipp_processoptions(); //#30438 + $_.options = $k[--$j]; //#30438 + $_.barcode = $k[--$j]; //#30439 + $k[$j++] = $_.barcode; //#30441 + $k[$j++] = 'ai'; //#30441 + bwipp_gs1process(); //#30441 + $_.fncs = $k[--$j]; //#30442 + $_.vals = $k[--$j]; //#30443 + $_.ais = $k[--$j]; //#30444 + $_.fnc1 = -1; //#30447 + $_.dmtx = $a([$_.fnc1]); //#30448 + for (var _A = 0, _9 = $_.ais.length - 1; _A <= _9; _A += 1) { //#30464 + $_.i = _A; //#30450 + $_.ai = $get($_.ais, $_.i); //#30451 + $_.val = $get($_.vals, $_.i); //#30452 + var _K = $a(($_.dmtx.length + $_.ai.length) + $_.val.length); //#30453 + $puti(_K, 0, $_.dmtx); //#30454 + $k[$j++] = _K; //#30455 + $k[$j++] = _K; //#30455 + $k[$j++] = $_.dmtx.length; //#30455 + $k[$j++] = $_.ai; //#30455 + $k[$j++] = Infinity; //#30455 + var _O = $k[--$j]; //#30455 + var _P = $k[--$j]; //#30455 + $k[$j++] = _O; //#30455 + $forall(_P); //#30455 + var _Q = $a(); //#30455 + var _R = $k[--$j]; //#30455 + $puti($k[--$j], _R, _Q); //#30455 + var _T = $k[--$j]; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = _T; //#30456 + $k[$j++] = $_.dmtx.length + $_.ai.length; //#30456 + $k[$j++] = $_.val; //#30456 + $k[$j++] = Infinity; //#30456 + var _X = $k[--$j]; //#30456 + var _Y = $k[--$j]; //#30456 + $k[$j++] = _X; //#30456 + $forall(_Y); //#30456 + var _Z = $a(); //#30456 + var _a = $k[--$j]; //#30456 + $puti($k[--$j], _a, _Z); //#30456 + $_.dmtx = $k[--$j]; //#30457 + if (($_.i != ($_.ais.length - 1)) && $get($_.fncs, $_.i)) { //#30463 + var _j = $a($_.dmtx.length + 1); //#30459 + $puti(_j, 0, $_.dmtx); //#30460 + $put(_j, $_.dmtx.length, $_.fnc1); //#30461 + $_.dmtx = _j; //#30462 + } //#30462 + } //#30462 + $_.barcode = $s(($_.dmtx.length + 1) * 5); //#30467 + $_.i = 0; //#30468 + $_.j = 0; //#30468 + for (;;) { //#30478 + if ($_.i == $_.dmtx.length) { //#30469 + break; //#30469 + } //#30469 + var _t = $get($_.dmtx, $_.i); //#30470 + $k[$j++] = _t; //#30475 + if (_t == $_.fnc1) { //#30474 + $j--; //#30471 + $puti($_.barcode, $_.j, "^FNC1"); //#30471 + $_.j = $_.j + 4; //#30472 + } else { //#30474 + $put($_.barcode, $_.j, $k[--$j]); //#30474 + } //#30474 + $_.i = $_.i + 1; //#30476 + $_.j = $_.j + 1; //#30477 + } //#30477 + $_.barcode = $geti($_.barcode, 0, $_.j); //#30479 + delete $_.options["parse"]; //#30482 + $put($_.options, "dontdraw", true); //#30483 + $put($_.options, "parsefnc", true); //#30484 + $k[$j++] = 'args'; //#30485 + $k[$j++] = $_.barcode; //#30485 + $k[$j++] = $_.options; //#30485 + bwipp_dotcode(); //#30485 + var _1B = $k[--$j]; //#30485 + $_[$k[--$j]] = _1B; //#30485 + $put($_.args, "opt", $_.options); //#30487 + $k[$j++] = $_.args; //#30490 + if (!$_.dontdraw) { //#30490 + bwipp_renmatrix(); //#30490 + } //#30490 + $_ = Object.getPrototypeOf($_); //#30492 +} //bwipp_gs1dotcode function bwipp_hibccode39() { - $_ = Object.create($_); //#30202 - $_.dontdraw = false; //#30205 - $_.textfont = "OCR-B"; //#30206 - $_.textsize = 10; //#30207 - $_.textyoffset = -8; //#30208 - $_.textxoffset = 0; //#30209 - $_.validatecheck = false; //#30210 - $k[$j++] = $_; //#30212 - bwipp_processoptions(); //#30212 - $_.options = $k[--$j]; //#30212 - $_.barcode = $k[--$j]; //#30213 - bwipp_loadctx(bwipp_hibccode39) //#30215 - if (!bwipp_hibccode39.__30222__) { //#30222 - $_ = Object.create($_); //#30222 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30219 - $_.charvals = new Map; //#30220 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30221 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30221 - } //#30221 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30221 - bwipp_hibccode39.__30222__ = 1; //#30221 - $_ = Object.getPrototypeOf($_); //#30221 - } //#30221 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30229 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30226 - if (!_D) { //#30228 - $k[$j++] = 'bwipp.hibccode39badCharacter#30227'; //#30227 - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30227 - bwipp_raiseerror(); //#30227 - } //#30227 - } //#30227 - $k[$j++] = 'barlen'; //#30231 - $k[$j++] = $_.barcode.length; //#30231 - if ($_.validatecheck) { //#30231 - var _G = $k[--$j]; //#30231 - $k[$j++] = $f(_G - 1); //#30231 - } //#30231 - var _H = $k[--$j]; //#30231 - $_[$k[--$j]] = _H; //#30231 - $_.checksum = 41; //#30233 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30237 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30236 - } //#30236 - $_.checksum = $_.checksum % 43; //#30238 - if ($_.validatecheck) { //#30244 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30242 - $k[$j++] = 'bwipp.hibccode39badCheckDigit#30241'; //#30241 - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30241 - bwipp_raiseerror(); //#30241 - } //#30241 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30243 - } //#30243 - var _d = $s($f($_.barlen + 2)); //#30246 - $puti(_d, 1, $_.barcode); //#30246 - $_.barcode = _d; //#30246 - $put($_.barcode, 0, 43); //#30247 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30248 - $_.text = $s($f($_.barlen + 4)); //#30250 - $put($_.text, 0, 42); //#30251 - $puti($_.text, 1, $_.barcode); //#30252 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30253 - $k[$j++] = $_.text; //#30253 - $k[$j++] = $f($_.barlen + 2); //#30253 - $k[$j++] = _u; //#30253 - if (_u == 32) { //#30253 - $j--; //#30253 - $k[$j++] = 95; //#30253 - } //#30253 - var _v = $k[--$j]; //#30253 - var _w = $k[--$j]; //#30253 - $put($k[--$j], _w, _v); //#30253 - $put($_.text, $f($_.barlen + 3), 42); //#30254 - $put($_.options, "dontdraw", true); //#30257 - $put($_.options, "includecheck", false); //#30258 - $put($_.options, "validatecheck", false); //#30259 - $k[$j++] = 'args'; //#30260 - $k[$j++] = $_.barcode; //#30260 - $k[$j++] = $_.options; //#30260 - bwipp_code39(); //#30260 - var _15 = $k[--$j]; //#30260 - $_[$k[--$j]] = _15; //#30260 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30262 - $put($_.args, "textxalign", "center"); //#30263 - $put($_.args, "opt", $_.options); //#30264 - $k[$j++] = $_.args; //#30267 - if (!$_.dontdraw) { //#30267 - bwipp_renlinear(); //#30267 - } //#30267 - $_ = Object.getPrototypeOf($_); //#30269 - $_ = Object.getPrototypeOf($_); //#30271 -} - + $_ = Object.create($_); //#30523 + $_.dontdraw = false; //#30526 + $_.textfont = "OCR-B"; //#30527 + $_.textsize = 10; //#30528 + $_.textyoffset = -8; //#30529 + $_.textxoffset = 0; //#30530 + $_.validatecheck = false; //#30531 + $k[$j++] = $_; //#30533 + bwipp_processoptions(); //#30533 + $_.options = $k[--$j]; //#30533 + $_.barcode = $k[--$j]; //#30534 + if ($eq($_.barcode, "")) { //#30538 + $k[$j++] = 'bwipp.hibccode39emptyData#30537'; //#30537 + $k[$j++] = "The data must not be empty"; //#30537 + bwipp_raiseerror(); //#30537 + } //#30537 + bwipp_loadctx(bwipp_hibccode39) //#30540 + if (!bwipp_hibccode39.__30547__) { //#30547 + $_ = Object.create($_); //#30547 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30544 + $_.charvals = new Map; //#30545 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30546 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30546 + } //#30546 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode39.$ctx[id] = $_[id]); //#30546 + bwipp_hibccode39.__30547__ = 1; //#30546 + $_ = Object.getPrototypeOf($_); //#30546 + } //#30546 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30554 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30551 + if (!_E) { //#30553 + $k[$j++] = 'bwipp.hibccode39badCharacter#30552'; //#30552 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30552 + bwipp_raiseerror(); //#30552 + } //#30552 + } //#30552 + $k[$j++] = 'barlen'; //#30556 + $k[$j++] = $_.barcode.length; //#30556 + if ($_.validatecheck) { //#30556 + var _H = $k[--$j]; //#30556 + $k[$j++] = $f(_H - 1); //#30556 + } //#30556 + var _I = $k[--$j]; //#30556 + $_[$k[--$j]] = _I; //#30556 + $_.checksum = 41; //#30558 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30562 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30561 + } //#30561 + $_.checksum = $_.checksum % 43; //#30563 + if ($_.validatecheck) { //#30569 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30567 + $k[$j++] = 'bwipp.hibccode39badCheckDigit#30566'; //#30566 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#30566 + bwipp_raiseerror(); //#30566 + } //#30566 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30568 + } //#30568 + var _e = $s($f($_.barlen + 2)); //#30571 + $puti(_e, 1, $_.barcode); //#30571 + $_.barcode = _e; //#30571 + $put($_.barcode, 0, 43); //#30572 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30573 + $_.text = $s($f($_.barlen + 4)); //#30575 + $put($_.text, 0, 42); //#30576 + $puti($_.text, 1, $_.barcode); //#30577 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30578 + $k[$j++] = $_.text; //#30578 + $k[$j++] = $f($_.barlen + 2); //#30578 + $k[$j++] = _v; //#30578 + if (_v == 32) { //#30578 + $j--; //#30578 + $k[$j++] = 95; //#30578 + } //#30578 + var _w = $k[--$j]; //#30578 + var _x = $k[--$j]; //#30578 + $put($k[--$j], _x, _w); //#30578 + $put($_.text, $f($_.barlen + 3), 42); //#30579 + $put($_.options, "dontdraw", true); //#30582 + $put($_.options, "includecheck", false); //#30583 + $put($_.options, "validatecheck", false); //#30584 + $k[$j++] = 'args'; //#30585 + $k[$j++] = $_.barcode; //#30585 + $k[$j++] = $_.options; //#30585 + bwipp_code39(); //#30585 + var _16 = $k[--$j]; //#30585 + $_[$k[--$j]] = _16; //#30585 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30587 + $put($_.args, "textxalign", "center"); //#30588 + $put($_.args, "opt", $_.options); //#30589 + $k[$j++] = $_.args; //#30592 + if (!$_.dontdraw) { //#30592 + bwipp_renlinear(); //#30592 + } //#30592 + $_ = Object.getPrototypeOf($_); //#30594 + $_ = Object.getPrototypeOf($_); //#30596 +} //bwipp_hibccode39 function bwipp_hibccode128() { - $_ = Object.create($_); //#30302 - $_.dontdraw = false; //#30305 - $_.textfont = "OCR-B"; //#30306 - $_.textsize = 10; //#30307 - $_.textyoffset = -8; //#30308 - $_.textxoffset = 0; //#30309 - $_.validatecheck = false; //#30310 - $k[$j++] = $_; //#30312 - bwipp_processoptions(); //#30312 - $_.options = $k[--$j]; //#30312 - $_.barcode = $k[--$j]; //#30313 - bwipp_loadctx(bwipp_hibccode128) //#30315 - if (!bwipp_hibccode128.__30322__) { //#30322 - $_ = Object.create($_); //#30322 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30319 - $_.charvals = new Map; //#30320 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30321 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30321 - } //#30321 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30321 - bwipp_hibccode128.__30322__ = 1; //#30321 - $_ = Object.getPrototypeOf($_); //#30321 - } //#30321 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30329 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30326 - if (!_D) { //#30328 - $k[$j++] = 'bwipp.hibccode128badCharacter#30327'; //#30327 - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30327 - bwipp_raiseerror(); //#30327 - } //#30327 - } //#30327 - $k[$j++] = 'barlen'; //#30331 - $k[$j++] = $_.barcode.length; //#30331 - if ($_.validatecheck) { //#30331 - var _G = $k[--$j]; //#30331 - $k[$j++] = $f(_G - 1); //#30331 - } //#30331 - var _H = $k[--$j]; //#30331 - $_[$k[--$j]] = _H; //#30331 - $_.checksum = 41; //#30333 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30337 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30336 - } //#30336 - $_.checksum = $_.checksum % 43; //#30338 - if ($_.validatecheck) { //#30344 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30342 - $k[$j++] = 'bwipp.hibccode128badCheckDigit#30341'; //#30341 - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30341 - bwipp_raiseerror(); //#30341 - } //#30341 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30343 - } //#30343 - var _d = $s($f($_.barlen + 2)); //#30346 - $puti(_d, 1, $_.barcode); //#30346 - $_.barcode = _d; //#30346 - $put($_.barcode, 0, 43); //#30347 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30348 - $_.text = $s($f($_.barlen + 4)); //#30350 - $put($_.text, 0, 42); //#30351 - $puti($_.text, 1, $_.barcode); //#30352 - var _u = $get($_.barcode, $f($_.barlen + 1)); //#30353 - $k[$j++] = $_.text; //#30353 - $k[$j++] = $f($_.barlen + 2); //#30353 - $k[$j++] = _u; //#30353 - if (_u == 32) { //#30353 - $j--; //#30353 - $k[$j++] = 95; //#30353 - } //#30353 - var _v = $k[--$j]; //#30353 - var _w = $k[--$j]; //#30353 - $put($k[--$j], _w, _v); //#30353 - $put($_.text, $f($_.barlen + 3), 42); //#30354 - $put($_.options, "dontdraw", true); //#30357 - $put($_.options, "validatecheck", false); //#30358 - $k[$j++] = 'args'; //#30359 - $k[$j++] = $_.barcode; //#30359 - $k[$j++] = $_.options; //#30359 - bwipp_code128(); //#30359 - var _14 = $k[--$j]; //#30359 - $_[$k[--$j]] = _14; //#30359 - $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30361 - $put($_.args, "textxalign", "center"); //#30362 - $put($_.args, "opt", $_.options); //#30363 - $k[$j++] = $_.args; //#30366 - if (!$_.dontdraw) { //#30366 - bwipp_renlinear(); //#30366 - } //#30366 - $_ = Object.getPrototypeOf($_); //#30368 - $_ = Object.getPrototypeOf($_); //#30370 -} - + $_ = Object.create($_); //#30627 + $_.dontdraw = false; //#30630 + $_.textfont = "OCR-B"; //#30631 + $_.textsize = 10; //#30632 + $_.textyoffset = -8; //#30633 + $_.textxoffset = 0; //#30634 + $_.validatecheck = false; //#30635 + $k[$j++] = $_; //#30637 + bwipp_processoptions(); //#30637 + $_.options = $k[--$j]; //#30637 + $_.barcode = $k[--$j]; //#30638 + if ($eq($_.barcode, "")) { //#30642 + $k[$j++] = 'bwipp.hibccode128emptyData#30641'; //#30641 + $k[$j++] = "The data must not be empty"; //#30641 + bwipp_raiseerror(); //#30641 + } //#30641 + bwipp_loadctx(bwipp_hibccode128) //#30644 + if (!bwipp_hibccode128.__30651__) { //#30651 + $_ = Object.create($_); //#30651 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30648 + $_.charvals = new Map; //#30649 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30650 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30650 + } //#30650 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccode128.$ctx[id] = $_[id]); //#30650 + bwipp_hibccode128.__30651__ = 1; //#30650 + $_ = Object.getPrototypeOf($_); //#30650 + } //#30650 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30658 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30655 + if (!_E) { //#30657 + $k[$j++] = 'bwipp.hibccode128badCharacter#30656'; //#30656 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30656 + bwipp_raiseerror(); //#30656 + } //#30656 + } //#30656 + $k[$j++] = 'barlen'; //#30660 + $k[$j++] = $_.barcode.length; //#30660 + if ($_.validatecheck) { //#30660 + var _H = $k[--$j]; //#30660 + $k[$j++] = $f(_H - 1); //#30660 + } //#30660 + var _I = $k[--$j]; //#30660 + $_[$k[--$j]] = _I; //#30660 + $_.checksum = 41; //#30662 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30666 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30665 + } //#30665 + $_.checksum = $_.checksum % 43; //#30667 + if ($_.validatecheck) { //#30673 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30671 + $k[$j++] = 'bwipp.hibccode128badCheckDigit#30670'; //#30670 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#30670 + bwipp_raiseerror(); //#30670 + } //#30670 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30672 + } //#30672 + var _e = $s($f($_.barlen + 2)); //#30675 + $puti(_e, 1, $_.barcode); //#30675 + $_.barcode = _e; //#30675 + $put($_.barcode, 0, 43); //#30676 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30677 + $_.text = $s($f($_.barlen + 4)); //#30679 + $put($_.text, 0, 42); //#30680 + $puti($_.text, 1, $_.barcode); //#30681 + var _v = $get($_.barcode, $f($_.barlen + 1)); //#30682 + $k[$j++] = $_.text; //#30682 + $k[$j++] = $f($_.barlen + 2); //#30682 + $k[$j++] = _v; //#30682 + if (_v == 32) { //#30682 + $j--; //#30682 + $k[$j++] = 95; //#30682 + } //#30682 + var _w = $k[--$j]; //#30682 + var _x = $k[--$j]; //#30682 + $put($k[--$j], _x, _w); //#30682 + $put($_.text, $f($_.barlen + 3), 42); //#30683 + $put($_.options, "dontdraw", true); //#30686 + $put($_.options, "validatecheck", false); //#30687 + $k[$j++] = 'args'; //#30688 + $k[$j++] = $_.barcode; //#30688 + $k[$j++] = $_.options; //#30688 + bwipp_code128(); //#30688 + var _15 = $k[--$j]; //#30688 + $_[$k[--$j]] = _15; //#30688 + $put($_.args, "txt", $a([$a([$_.text, $_.textxoffset, $_.textyoffset, $_.textfont, $_.textsize])])); //#30690 + $put($_.args, "textxalign", "center"); //#30691 + $put($_.args, "opt", $_.options); //#30692 + $k[$j++] = $_.args; //#30695 + if (!$_.dontdraw) { //#30695 + bwipp_renlinear(); //#30695 + } //#30695 + $_ = Object.getPrototypeOf($_); //#30697 + $_ = Object.getPrototypeOf($_); //#30699 +} //bwipp_hibccode128 function bwipp_hibcdatamatrix() { - $_ = Object.create($_); //#30401 - $_.dontdraw = false; //#30404 - $_.validatecheck = false; //#30405 - $k[$j++] = $_; //#30407 - bwipp_processoptions(); //#30407 - $_.options = $k[--$j]; //#30407 - $_.barcode = $k[--$j]; //#30408 - bwipp_loadctx(bwipp_hibcdatamatrix) //#30410 - if (!bwipp_hibcdatamatrix.__30417__) { //#30417 - $_ = Object.create($_); //#30417 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30414 - $_.charvals = new Map; //#30415 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30416 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30416 - } //#30416 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30416 - bwipp_hibcdatamatrix.__30417__ = 1; //#30416 - $_ = Object.getPrototypeOf($_); //#30416 - } //#30416 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30424 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30421 - if (!_D) { //#30423 - $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30422'; //#30422 - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30422 - bwipp_raiseerror(); //#30422 - } //#30422 - } //#30422 - $k[$j++] = 'barlen'; //#30426 - $k[$j++] = $_.barcode.length; //#30426 - if ($_.validatecheck) { //#30426 - var _G = $k[--$j]; //#30426 - $k[$j++] = $f(_G - 1); //#30426 - } //#30426 - var _H = $k[--$j]; //#30426 - $_[$k[--$j]] = _H; //#30426 - $_.checksum = 41; //#30428 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30432 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30431 - } //#30431 - $_.checksum = $_.checksum % 43; //#30433 - if ($_.validatecheck) { //#30439 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30437 - $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30436'; //#30436 - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30436 - bwipp_raiseerror(); //#30436 - } //#30436 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30438 - } //#30438 - var _d = $s($f($_.barlen + 2)); //#30441 - $puti(_d, 1, $_.barcode); //#30441 - $_.barcode = _d; //#30441 - $put($_.barcode, 0, 43); //#30442 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30443 - $put($_.options, "dontdraw", true); //#30446 - $put($_.options, "validatecheck", false); //#30447 - $k[$j++] = 'args'; //#30448 - $k[$j++] = $_.barcode; //#30448 - $k[$j++] = $_.options; //#30448 - bwipp_datamatrix(); //#30448 - var _p = $k[--$j]; //#30448 - $_[$k[--$j]] = _p; //#30448 - var _r = $_.args; //#30450 - $put(_r, "opt", $_.options); //#30450 - $k[$j++] = $_.args; //#30453 - if (!$_.dontdraw) { //#30453 - bwipp_renmatrix(); //#30453 - } //#30453 - $_ = Object.getPrototypeOf($_); //#30455 - $_ = Object.getPrototypeOf($_); //#30457 -} - + $_ = Object.create($_); //#30730 + $_.dontdraw = false; //#30733 + $_.validatecheck = false; //#30734 + $k[$j++] = $_; //#30736 + bwipp_processoptions(); //#30736 + $_.options = $k[--$j]; //#30736 + $_.barcode = $k[--$j]; //#30737 + if ($eq($_.barcode, "")) { //#30741 + $k[$j++] = 'bwipp.hibcdatamatrixEmptyData#30740'; //#30740 + $k[$j++] = "The data must not be empty"; //#30740 + bwipp_raiseerror(); //#30740 + } //#30740 + bwipp_loadctx(bwipp_hibcdatamatrix) //#30743 + if (!bwipp_hibcdatamatrix.__30750__) { //#30750 + $_ = Object.create($_); //#30750 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30747 + $_.charvals = new Map; //#30748 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30749 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30749 + } //#30749 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrix.$ctx[id] = $_[id]); //#30749 + bwipp_hibcdatamatrix.__30750__ = 1; //#30749 + $_ = Object.getPrototypeOf($_); //#30749 + } //#30749 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30757 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30754 + if (!_E) { //#30756 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter#30755'; //#30755 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30755 + bwipp_raiseerror(); //#30755 + } //#30755 + } //#30755 + $k[$j++] = 'barlen'; //#30759 + $k[$j++] = $_.barcode.length; //#30759 + if ($_.validatecheck) { //#30759 + var _H = $k[--$j]; //#30759 + $k[$j++] = $f(_H - 1); //#30759 + } //#30759 + var _I = $k[--$j]; //#30759 + $_[$k[--$j]] = _I; //#30759 + $_.checksum = 41; //#30761 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30765 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30764 + } //#30764 + $_.checksum = $_.checksum % 43; //#30766 + if ($_.validatecheck) { //#30772 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30770 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit#30769'; //#30769 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#30769 + bwipp_raiseerror(); //#30769 + } //#30769 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30771 + } //#30771 + var _d = $_.barlen; //#30774 + var _e = $s($f(_d + 2)); //#30774 + $puti(_e, 1, $_.barcode); //#30774 + $_.barcode = _e; //#30774 + $put($_.barcode, 0, 43); //#30775 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30776 + $put($_.options, "dontdraw", true); //#30779 + $put($_.options, "validatecheck", false); //#30780 + $k[$j++] = 'args'; //#30781 + $k[$j++] = $_.barcode; //#30781 + $k[$j++] = $_.options; //#30781 + bwipp_datamatrix(); //#30781 + var _q = $k[--$j]; //#30781 + var _r = $k[--$j]; //#30781 + $_[_r] = _q; //#30781 + $put($_.args, "opt", $_.options); //#30783 + $k[$j++] = $_.args; //#30786 + if (!$_.dontdraw) { //#30786 + bwipp_renmatrix(); //#30786 + } //#30786 + $_ = Object.getPrototypeOf($_); //#30788 + $_ = Object.getPrototypeOf($_); //#30790 +} //bwipp_hibcdatamatrix function bwipp_hibcdatamatrixrectangular() { - $_ = Object.create($_); //#30488 - $_.dontdraw = false; //#30491 - $_.validatecheck = false; //#30492 - $k[$j++] = $_; //#30494 - bwipp_processoptions(); //#30494 - $_.options = $k[--$j]; //#30494 - $_.barcode = $k[--$j]; //#30495 - bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30497 - if (!bwipp_hibcdatamatrixrectangular.__30504__) { //#30504 - $_ = Object.create($_); //#30504 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30501 - $_.charvals = new Map; //#30502 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30503 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30503 - } //#30503 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30503 - bwipp_hibcdatamatrixrectangular.__30504__ = 1; //#30503 - $_ = Object.getPrototypeOf($_); //#30503 - } //#30503 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30511 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30508 - if (!_D) { //#30510 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30509'; //#30509 - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30509 - bwipp_raiseerror(); //#30509 - } //#30509 - } //#30509 - $k[$j++] = 'barlen'; //#30513 - $k[$j++] = $_.barcode.length; //#30513 - if ($_.validatecheck) { //#30513 - var _G = $k[--$j]; //#30513 - $k[$j++] = $f(_G - 1); //#30513 - } //#30513 - var _H = $k[--$j]; //#30513 - $_[$k[--$j]] = _H; //#30513 - $_.checksum = 41; //#30515 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30519 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30518 - } //#30518 - $_.checksum = $_.checksum % 43; //#30520 - if ($_.validatecheck) { //#30526 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30524 - $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30523'; //#30523 - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30523 - bwipp_raiseerror(); //#30523 - } //#30523 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30525 - } //#30525 - var _d = $s($f($_.barlen + 2)); //#30528 - $puti(_d, 1, $_.barcode); //#30528 - $_.barcode = _d; //#30528 - $put($_.barcode, 0, 43); //#30529 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30530 - $put($_.options, "dontdraw", true); //#30533 - $put($_.options, "validatecheck", false); //#30534 - $put($_.options, "format", "rectangle"); //#30535 - $k[$j++] = 'args'; //#30536 - $k[$j++] = $_.barcode; //#30536 - $k[$j++] = $_.options; //#30536 - bwipp_datamatrix(); //#30536 - var _q = $k[--$j]; //#30536 - var _r = $k[--$j]; //#30536 - $_[_r] = _q; //#30536 - $put($_.args, "opt", $_.options); //#30538 - $k[$j++] = $_.args; //#30541 - if (!$_.dontdraw) { //#30541 - bwipp_renmatrix(); //#30541 - } //#30541 - $_ = Object.getPrototypeOf($_); //#30543 - $_ = Object.getPrototypeOf($_); //#30545 -} - + $_ = Object.create($_); //#30821 + $_.dontdraw = false; //#30824 + $_.validatecheck = false; //#30825 + $k[$j++] = $_; //#30827 + bwipp_processoptions(); //#30827 + $_.options = $k[--$j]; //#30827 + $_.barcode = $k[--$j]; //#30828 + if ($eq($_.barcode, "")) { //#30832 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularEmptyData#30831'; //#30831 + $k[$j++] = "The data must not be empty"; //#30831 + bwipp_raiseerror(); //#30831 + } //#30831 + bwipp_loadctx(bwipp_hibcdatamatrixrectangular) //#30834 + if (!bwipp_hibcdatamatrixrectangular.__30841__) { //#30841 + $_ = Object.create($_); //#30841 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30838 + $_.charvals = new Map; //#30839 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30840 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30840 + } //#30840 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcdatamatrixrectangular.$ctx[id] = $_[id]); //#30840 + bwipp_hibcdatamatrixrectangular.__30841__ = 1; //#30840 + $_ = Object.getPrototypeOf($_); //#30840 + } //#30840 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30848 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30845 + if (!_E) { //#30847 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter#30846'; //#30846 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30846 + bwipp_raiseerror(); //#30846 + } //#30846 + } //#30846 + $k[$j++] = 'barlen'; //#30850 + $k[$j++] = $_.barcode.length; //#30850 + if ($_.validatecheck) { //#30850 + var _H = $k[--$j]; //#30850 + $k[$j++] = $f(_H - 1); //#30850 + } //#30850 + var _I = $k[--$j]; //#30850 + $_[$k[--$j]] = _I; //#30850 + $_.checksum = 41; //#30852 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30856 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30855 + } //#30855 + $_.checksum = $_.checksum % 43; //#30857 + if ($_.validatecheck) { //#30863 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30861 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit#30860'; //#30860 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#30860 + bwipp_raiseerror(); //#30860 + } //#30860 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30862 + } //#30862 + var _d = $_.barlen; //#30865 + var _e = $s($f(_d + 2)); //#30865 + $puti(_e, 1, $_.barcode); //#30865 + $_.barcode = _e; //#30865 + $put($_.barcode, 0, 43); //#30866 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30867 + $put($_.options, "dontdraw", true); //#30870 + $put($_.options, "validatecheck", false); //#30871 + $put($_.options, "format", "rectangle"); //#30872 + $k[$j++] = 'args'; //#30873 + $k[$j++] = $_.barcode; //#30873 + $k[$j++] = $_.options; //#30873 + bwipp_datamatrix(); //#30873 + var _r = $k[--$j]; //#30873 + $_[$k[--$j]] = _r; //#30873 + $put($_.args, "opt", $_.options); //#30875 + $k[$j++] = $_.args; //#30878 + if (!$_.dontdraw) { //#30878 + bwipp_renmatrix(); //#30878 + } //#30878 + $_ = Object.getPrototypeOf($_); //#30880 + $_ = Object.getPrototypeOf($_); //#30882 +} //bwipp_hibcdatamatrixrectangular function bwipp_hibcpdf417() { - $_ = Object.create($_); //#30576 - $_.dontdraw = false; //#30579 - $_.columns = 2; //#30580 - $_.validatecheck = false; //#30581 - $k[$j++] = $_; //#30583 - bwipp_processoptions(); //#30583 - $_.options = $k[--$j]; //#30583 - $_.barcode = $k[--$j]; //#30584 - bwipp_loadctx(bwipp_hibcpdf417) //#30586 - if (!bwipp_hibcpdf417.__30593__) { //#30593 - $_ = Object.create($_); //#30593 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30590 - $_.charvals = new Map; //#30591 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30592 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30592 - } //#30592 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30592 - bwipp_hibcpdf417.__30593__ = 1; //#30592 - $_ = Object.getPrototypeOf($_); //#30592 - } //#30592 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30600 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30597 - if (!_D) { //#30599 - $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30598'; //#30598 - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30598 - bwipp_raiseerror(); //#30598 - } //#30598 - } //#30598 - $k[$j++] = 'barlen'; //#30602 - $k[$j++] = $_.barcode.length; //#30602 - if ($_.validatecheck) { //#30602 - var _G = $k[--$j]; //#30602 - $k[$j++] = $f(_G - 1); //#30602 - } //#30602 - var _H = $k[--$j]; //#30602 - $_[$k[--$j]] = _H; //#30602 - $_.checksum = 41; //#30604 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30608 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30607 - } //#30607 - $_.checksum = $_.checksum % 43; //#30609 - if ($_.validatecheck) { //#30615 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30613 - $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30612'; //#30612 - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30612 - bwipp_raiseerror(); //#30612 - } //#30612 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30614 - } //#30614 - var _d = $s($f($_.barlen + 2)); //#30617 - $puti(_d, 1, $_.barcode); //#30617 - $_.barcode = _d; //#30617 - $put($_.barcode, 0, 43); //#30618 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30619 - $put($_.options, "dontdraw", true); //#30622 - $put($_.options, "columns", $_.columns); //#30623 - $put($_.options, "validatecheck", false); //#30624 - var _p = $_.barcode; //#30625 - $k[$j++] = 'args'; //#30625 - $k[$j++] = _p; //#30625 - $k[$j++] = $_.options; //#30625 - bwipp_pdf417(); //#30625 - var _r = $k[--$j]; //#30625 - $_[$k[--$j]] = _r; //#30625 - $put($_.args, "opt", $_.options); //#30627 - $k[$j++] = $_.args; //#30630 - if (!$_.dontdraw) { //#30630 - bwipp_renmatrix(); //#30630 - } //#30630 - $_ = Object.getPrototypeOf($_); //#30632 - $_ = Object.getPrototypeOf($_); //#30634 -} - + $_ = Object.create($_); //#30913 + $_.dontdraw = false; //#30916 + $_.columns = 2; //#30917 + $_.validatecheck = false; //#30918 + $k[$j++] = $_; //#30920 + bwipp_processoptions(); //#30920 + $_.options = $k[--$j]; //#30920 + $_.barcode = $k[--$j]; //#30921 + if ($eq($_.barcode, "")) { //#30925 + $k[$j++] = 'bwipp.hibcpdf417EmptyData#30924'; //#30924 + $k[$j++] = "The data must not be empty"; //#30924 + bwipp_raiseerror(); //#30924 + } //#30924 + bwipp_loadctx(bwipp_hibcpdf417) //#30927 + if (!bwipp_hibcpdf417.__30934__) { //#30934 + $_ = Object.create($_); //#30934 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30931 + $_.charvals = new Map; //#30932 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#30933 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#30933 + } //#30933 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcpdf417.$ctx[id] = $_[id]); //#30933 + bwipp_hibcpdf417.__30934__ = 1; //#30933 + $_ = Object.getPrototypeOf($_); //#30933 + } //#30933 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#30941 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#30938 + if (!_E) { //#30940 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter#30939'; //#30939 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30939 + bwipp_raiseerror(); //#30939 + } //#30939 + } //#30939 + $k[$j++] = 'barlen'; //#30943 + $k[$j++] = $_.barcode.length; //#30943 + if ($_.validatecheck) { //#30943 + var _H = $k[--$j]; //#30943 + $k[$j++] = $f(_H - 1); //#30943 + } //#30943 + var _I = $k[--$j]; //#30943 + $_[$k[--$j]] = _I; //#30943 + $_.checksum = 41; //#30945 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#30949 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#30948 + } //#30948 + $_.checksum = $_.checksum % 43; //#30950 + if ($_.validatecheck) { //#30956 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30954 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit#30953'; //#30953 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#30953 + bwipp_raiseerror(); //#30953 + } //#30953 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30955 + } //#30955 + var _e = $s($f($_.barlen + 2)); //#30958 + $puti(_e, 1, $_.barcode); //#30958 + $_.barcode = _e; //#30958 + $put($_.barcode, 0, 43); //#30959 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30960 + $put($_.options, "dontdraw", true); //#30963 + $put($_.options, "columns", $_.columns); //#30964 + var _p = $_.options; //#30965 + $put(_p, "validatecheck", false); //#30965 + var _r = $_.options; //#30966 + $k[$j++] = 'args'; //#30966 + $k[$j++] = $_.barcode; //#30966 + $k[$j++] = _r; //#30966 + bwipp_pdf417(); //#30966 + var _s = $k[--$j]; //#30966 + $_[$k[--$j]] = _s; //#30966 + $put($_.args, "opt", $_.options); //#30968 + $k[$j++] = $_.args; //#30971 + if (!$_.dontdraw) { //#30971 + bwipp_renmatrix(); //#30971 + } //#30971 + $_ = Object.getPrototypeOf($_); //#30973 + $_ = Object.getPrototypeOf($_); //#30975 +} //bwipp_hibcpdf417 function bwipp_hibcmicropdf417() { - $_ = Object.create($_); //#30665 - $_.dontdraw = false; //#30668 - $_.columns = 2; //#30669 - $_.validatecheck = false; //#30670 - $k[$j++] = $_; //#30672 - bwipp_processoptions(); //#30672 - $_.options = $k[--$j]; //#30672 - $_.barcode = $k[--$j]; //#30673 - bwipp_loadctx(bwipp_hibcmicropdf417) //#30675 - if (!bwipp_hibcmicropdf417.__30682__) { //#30682 - $_ = Object.create($_); //#30682 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30679 - $_.charvals = new Map; //#30680 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30681 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30681 - } //#30681 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#30681 - bwipp_hibcmicropdf417.__30682__ = 1; //#30681 - $_ = Object.getPrototypeOf($_); //#30681 - } //#30681 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30689 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30686 - if (!_D) { //#30688 - $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#30687'; //#30687 - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30687 - bwipp_raiseerror(); //#30687 - } //#30687 - } //#30687 - $k[$j++] = 'barlen'; //#30691 - $k[$j++] = $_.barcode.length; //#30691 - if ($_.validatecheck) { //#30691 - var _G = $k[--$j]; //#30691 - $k[$j++] = $f(_G - 1); //#30691 - } //#30691 - var _H = $k[--$j]; //#30691 - $_[$k[--$j]] = _H; //#30691 - $_.checksum = 41; //#30693 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30697 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30696 - } //#30696 - $_.checksum = $_.checksum % 43; //#30698 - if ($_.validatecheck) { //#30704 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30702 - $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#30701'; //#30701 - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#30701 - bwipp_raiseerror(); //#30701 - } //#30701 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30703 - } //#30703 - var _d = $s($f($_.barlen + 2)); //#30706 - $puti(_d, 1, $_.barcode); //#30706 - $_.barcode = _d; //#30706 - $put($_.barcode, 0, 43); //#30707 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30708 - $put($_.options, "dontdraw", true); //#30711 - var _m = $_.options; //#30712 - $put(_m, "columns", $_.columns); //#30712 - $put($_.options, "validatecheck", false); //#30713 - $k[$j++] = 'args'; //#30714 - $k[$j++] = $_.barcode; //#30714 - $k[$j++] = $_.options; //#30714 - bwipp_micropdf417(); //#30714 - var _r = $k[--$j]; //#30714 - $_[$k[--$j]] = _r; //#30714 - $put($_.args, "opt", $_.options); //#30716 - $k[$j++] = $_.args; //#30719 - if (!$_.dontdraw) { //#30719 - bwipp_renmatrix(); //#30719 - } //#30719 - $_ = Object.getPrototypeOf($_); //#30721 - $_ = Object.getPrototypeOf($_); //#30723 -} - + $_ = Object.create($_); //#31006 + $_.dontdraw = false; //#31009 + $_.columns = 2; //#31010 + $_.validatecheck = false; //#31011 + $k[$j++] = $_; //#31013 + bwipp_processoptions(); //#31013 + $_.options = $k[--$j]; //#31013 + $_.barcode = $k[--$j]; //#31014 + if ($eq($_.barcode, "")) { //#31018 + $k[$j++] = 'bwipp.hibcmicropdf417EmptyData#31017'; //#31017 + $k[$j++] = "The data must not be empty"; //#31017 + bwipp_raiseerror(); //#31017 + } //#31017 + bwipp_loadctx(bwipp_hibcmicropdf417) //#31020 + if (!bwipp_hibcmicropdf417.__31027__) { //#31027 + $_ = Object.create($_); //#31027 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31024 + $_.charvals = new Map; //#31025 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31026 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31026 + } //#31026 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcmicropdf417.$ctx[id] = $_[id]); //#31026 + bwipp_hibcmicropdf417.__31027__ = 1; //#31026 + $_ = Object.getPrototypeOf($_); //#31026 + } //#31026 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31034 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31031 + if (!_E) { //#31033 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter#31032'; //#31032 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31032 + bwipp_raiseerror(); //#31032 + } //#31032 + } //#31032 + $k[$j++] = 'barlen'; //#31036 + $k[$j++] = $_.barcode.length; //#31036 + if ($_.validatecheck) { //#31036 + var _H = $k[--$j]; //#31036 + $k[$j++] = $f(_H - 1); //#31036 + } //#31036 + var _I = $k[--$j]; //#31036 + $_[$k[--$j]] = _I; //#31036 + $_.checksum = 41; //#31038 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31042 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31041 + } //#31041 + $_.checksum = $_.checksum % 43; //#31043 + if ($_.validatecheck) { //#31049 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31047 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit#31046'; //#31046 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#31046 + bwipp_raiseerror(); //#31046 + } //#31046 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31048 + } //#31048 + var _e = $s($f($_.barlen + 2)); //#31051 + $puti(_e, 1, $_.barcode); //#31051 + $_.barcode = _e; //#31051 + $put($_.barcode, 0, 43); //#31052 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31053 + var _m = $_.options; //#31056 + $put(_m, "dontdraw", true); //#31056 + $put($_.options, "columns", $_.columns); //#31057 + $put($_.options, "validatecheck", false); //#31058 + var _r = $_.options; //#31059 + $k[$j++] = 'args'; //#31059 + $k[$j++] = $_.barcode; //#31059 + $k[$j++] = _r; //#31059 + bwipp_micropdf417(); //#31059 + var _s = $k[--$j]; //#31059 + $_[$k[--$j]] = _s; //#31059 + $put($_.args, "opt", $_.options); //#31061 + $k[$j++] = $_.args; //#31064 + if (!$_.dontdraw) { //#31064 + bwipp_renmatrix(); //#31064 + } //#31064 + $_ = Object.getPrototypeOf($_); //#31066 + $_ = Object.getPrototypeOf($_); //#31068 +} //bwipp_hibcmicropdf417 function bwipp_hibcqrcode() { - $_ = Object.create($_); //#30754 - $_.dontdraw = false; //#30757 - $_.validatecheck = false; //#30758 - $k[$j++] = $_; //#30760 - bwipp_processoptions(); //#30760 - $_.options = $k[--$j]; //#30760 - $_.barcode = $k[--$j]; //#30761 - bwipp_loadctx(bwipp_hibcqrcode) //#30763 - if (!bwipp_hibcqrcode.__30770__) { //#30770 - $_ = Object.create($_); //#30770 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30767 - $_.charvals = new Map; //#30768 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30769 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30769 - } //#30769 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#30769 - bwipp_hibcqrcode.__30770__ = 1; //#30769 - $_ = Object.getPrototypeOf($_); //#30769 - } //#30769 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30777 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30774 - if (!_D) { //#30776 - $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#30775'; //#30775 - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30775 - bwipp_raiseerror(); //#30775 - } //#30775 - } //#30775 - $k[$j++] = 'barlen'; //#30779 - $k[$j++] = $_.barcode.length; //#30779 - if ($_.validatecheck) { //#30779 - var _G = $k[--$j]; //#30779 - $k[$j++] = $f(_G - 1); //#30779 - } //#30779 - var _H = $k[--$j]; //#30779 - $_[$k[--$j]] = _H; //#30779 - $_.checksum = 41; //#30781 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30785 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30784 - } //#30784 - $_.checksum = $_.checksum % 43; //#30786 - if ($_.validatecheck) { //#30792 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30790 - $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#30789'; //#30789 - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#30789 - bwipp_raiseerror(); //#30789 - } //#30789 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30791 - } //#30791 - var _d = $s($f($_.barlen + 2)); //#30794 - $puti(_d, 1, $_.barcode); //#30794 - $_.barcode = _d; //#30794 - $put($_.barcode, 0, 43); //#30795 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30796 - $put($_.options, "dontdraw", true); //#30799 - $put($_.options, "validatecheck", false); //#30800 - $k[$j++] = 'args'; //#30801 - $k[$j++] = $_.barcode; //#30801 - $k[$j++] = $_.options; //#30801 - bwipp_qrcode(); //#30801 - var _p = $k[--$j]; //#30801 - $_[$k[--$j]] = _p; //#30801 - var _r = $_.args; //#30803 - $put(_r, "opt", $_.options); //#30803 - $k[$j++] = $_.args; //#30806 - if (!$_.dontdraw) { //#30806 - bwipp_renmatrix(); //#30806 - } //#30806 - $_ = Object.getPrototypeOf($_); //#30808 - $_ = Object.getPrototypeOf($_); //#30810 -} - + $_ = Object.create($_); //#31099 + $_.dontdraw = false; //#31102 + $_.validatecheck = false; //#31103 + $k[$j++] = $_; //#31105 + bwipp_processoptions(); //#31105 + $_.options = $k[--$j]; //#31105 + $_.barcode = $k[--$j]; //#31106 + if ($eq($_.barcode, "")) { //#31110 + $k[$j++] = 'bwipp.hibcqrcodeEmptyData#31109'; //#31109 + $k[$j++] = "The data must not be empty"; //#31109 + bwipp_raiseerror(); //#31109 + } //#31109 + bwipp_loadctx(bwipp_hibcqrcode) //#31112 + if (!bwipp_hibcqrcode.__31119__) { //#31119 + $_ = Object.create($_); //#31119 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31116 + $_.charvals = new Map; //#31117 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31118 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31118 + } //#31118 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcqrcode.$ctx[id] = $_[id]); //#31118 + bwipp_hibcqrcode.__31119__ = 1; //#31118 + $_ = Object.getPrototypeOf($_); //#31118 + } //#31118 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31126 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31123 + if (!_E) { //#31125 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter#31124'; //#31124 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31124 + bwipp_raiseerror(); //#31124 + } //#31124 + } //#31124 + $k[$j++] = 'barlen'; //#31128 + $k[$j++] = $_.barcode.length; //#31128 + if ($_.validatecheck) { //#31128 + var _H = $k[--$j]; //#31128 + $k[$j++] = $f(_H - 1); //#31128 + } //#31128 + var _I = $k[--$j]; //#31128 + $_[$k[--$j]] = _I; //#31128 + $_.checksum = 41; //#31130 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31134 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31133 + } //#31133 + $_.checksum = $_.checksum % 43; //#31135 + if ($_.validatecheck) { //#31141 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31139 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit#31138'; //#31138 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#31138 + bwipp_raiseerror(); //#31138 + } //#31138 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31140 + } //#31140 + var _e = $s($f($_.barlen + 2)); //#31143 + $puti(_e, 1, $_.barcode); //#31143 + $_.barcode = _e; //#31143 + $put($_.barcode, 0, 43); //#31144 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31145 + $put($_.options, "dontdraw", true); //#31148 + $put($_.options, "validatecheck", false); //#31149 + $k[$j++] = 'args'; //#31150 + $k[$j++] = $_.barcode; //#31150 + $k[$j++] = $_.options; //#31150 + bwipp_qrcode(); //#31150 + var _q = $k[--$j]; //#31150 + var _r = $k[--$j]; //#31150 + $_[_r] = _q; //#31150 + $put($_.args, "opt", $_.options); //#31152 + $k[$j++] = $_.args; //#31155 + if (!$_.dontdraw) { //#31155 + bwipp_renmatrix(); //#31155 + } //#31155 + $_ = Object.getPrototypeOf($_); //#31157 + $_ = Object.getPrototypeOf($_); //#31159 +} //bwipp_hibcqrcode function bwipp_hibccodablockf() { - $_ = Object.create($_); //#30841 - $_.dontdraw = false; //#30844 - $_.validatecheck = false; //#30845 - $k[$j++] = $_; //#30847 - bwipp_processoptions(); //#30847 - $_.options = $k[--$j]; //#30847 - $_.barcode = $k[--$j]; //#30848 - bwipp_loadctx(bwipp_hibccodablockf) //#30850 - if (!bwipp_hibccodablockf.__30857__) { //#30857 - $_ = Object.create($_); //#30857 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30854 - $_.charvals = new Map; //#30855 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30856 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30856 - } //#30856 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#30856 - bwipp_hibccodablockf.__30857__ = 1; //#30856 - $_ = Object.getPrototypeOf($_); //#30856 - } //#30856 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30864 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30861 - if (!_D) { //#30863 - $k[$j++] = 'bwipp.codablockfBadCharacter#30862'; //#30862 - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30862 - bwipp_raiseerror(); //#30862 - } //#30862 - } //#30862 - $k[$j++] = 'barlen'; //#30866 - $k[$j++] = $_.barcode.length; //#30866 - if ($_.validatecheck) { //#30866 - var _G = $k[--$j]; //#30866 - $k[$j++] = $f(_G - 1); //#30866 - } //#30866 - var _H = $k[--$j]; //#30866 - $_[$k[--$j]] = _H; //#30866 - $_.checksum = 41; //#30868 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30872 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30871 - } //#30871 - $_.checksum = $_.checksum % 43; //#30873 - if ($_.validatecheck) { //#30879 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30877 - $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#30876'; //#30876 - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#30876 - bwipp_raiseerror(); //#30876 - } //#30876 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30878 - } //#30878 - var _c = $_.barlen; //#30881 - var _d = $s($f(_c + 2)); //#30881 - $puti(_d, 1, $_.barcode); //#30881 - $_.barcode = _d; //#30881 - $put($_.barcode, 0, 43); //#30882 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30883 - $put($_.options, "dontdraw", true); //#30886 - $put($_.options, "validatecheck", false); //#30887 - $k[$j++] = 'args'; //#30888 - $k[$j++] = $_.barcode; //#30888 - $k[$j++] = $_.options; //#30888 - bwipp_codablockf(); //#30888 - var _p = $k[--$j]; //#30888 - $_[$k[--$j]] = _p; //#30888 - var _r = $_.args; //#30890 - $put(_r, "opt", $_.options); //#30890 - $k[$j++] = $_.args; //#30893 - if (!$_.dontdraw) { //#30893 - bwipp_renmatrix(); //#30893 - } //#30893 - $_ = Object.getPrototypeOf($_); //#30895 - $_ = Object.getPrototypeOf($_); //#30897 -} - + $_ = Object.create($_); //#31190 + $_.dontdraw = false; //#31193 + $_.validatecheck = false; //#31194 + $k[$j++] = $_; //#31196 + bwipp_processoptions(); //#31196 + $_.options = $k[--$j]; //#31196 + $_.barcode = $k[--$j]; //#31197 + if ($eq($_.barcode, "")) { //#31201 + $k[$j++] = 'bwipp.hibccodablockfEmptyData#31200'; //#31200 + $k[$j++] = "The data must not be empty"; //#31200 + bwipp_raiseerror(); //#31200 + } //#31200 + bwipp_loadctx(bwipp_hibccodablockf) //#31203 + if (!bwipp_hibccodablockf.__31210__) { //#31210 + $_ = Object.create($_); //#31210 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31207 + $_.charvals = new Map; //#31208 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31209 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31209 + } //#31209 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibccodablockf.$ctx[id] = $_[id]); //#31209 + bwipp_hibccodablockf.__31210__ = 1; //#31209 + $_ = Object.getPrototypeOf($_); //#31209 + } //#31209 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31217 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31214 + if (!_E) { //#31216 + $k[$j++] = 'bwipp.hibccodablockfBadCharacter#31215'; //#31215 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31215 + bwipp_raiseerror(); //#31215 + } //#31215 + } //#31215 + $k[$j++] = 'barlen'; //#31219 + $k[$j++] = $_.barcode.length; //#31219 + if ($_.validatecheck) { //#31219 + var _H = $k[--$j]; //#31219 + $k[$j++] = $f(_H - 1); //#31219 + } //#31219 + var _I = $k[--$j]; //#31219 + $_[$k[--$j]] = _I; //#31219 + $_.checksum = 41; //#31221 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31225 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31224 + } //#31224 + $_.checksum = $_.checksum % 43; //#31226 + if ($_.validatecheck) { //#31232 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31230 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit#31229'; //#31229 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#31229 + bwipp_raiseerror(); //#31229 + } //#31229 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31231 + } //#31231 + var _e = $s($f($_.barlen + 2)); //#31234 + $puti(_e, 1, $_.barcode); //#31234 + $_.barcode = _e; //#31234 + $put($_.barcode, 0, 43); //#31235 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31236 + $put($_.options, "dontdraw", true); //#31239 + $put($_.options, "validatecheck", false); //#31240 + $k[$j++] = 'args'; //#31241 + $k[$j++] = $_.barcode; //#31241 + $k[$j++] = $_.options; //#31241 + bwipp_codablockf(); //#31241 + var _q = $k[--$j]; //#31241 + var _r = $k[--$j]; //#31241 + $_[_r] = _q; //#31241 + $put($_.args, "opt", $_.options); //#31243 + $k[$j++] = $_.args; //#31246 + if (!$_.dontdraw) { //#31246 + bwipp_renmatrix(); //#31246 + } //#31246 + $_ = Object.getPrototypeOf($_); //#31248 + $_ = Object.getPrototypeOf($_); //#31250 +} //bwipp_hibccodablockf function bwipp_hibcazteccode() { - $_ = Object.create($_); //#30928 - $_.dontdraw = false; //#30931 - $_.validatecheck = false; //#30932 - $k[$j++] = $_; //#30934 - bwipp_processoptions(); //#30934 - $_.options = $k[--$j]; //#30934 - $_.barcode = $k[--$j]; //#30935 - bwipp_loadctx(bwipp_hibcazteccode) //#30937 - if (!bwipp_hibcazteccode.__30944__) { //#30944 - $_ = Object.create($_); //#30944 - $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#30941 - $_.charvals = new Map; //#30942 - for (var _2 = 0; _2 <= 42; _2 += 1) { //#30943 - $put($_.charvals, $geti($_.barchars, _2, 1), _2); //#30943 - } //#30943 - for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#30943 - bwipp_hibcazteccode.__30944__ = 1; //#30943 - $_ = Object.getPrototypeOf($_); //#30943 - } //#30943 - for (var _9 = 0, _8 = $_.barcode.length - 1; _9 <= _8; _9 += 1) { //#30951 - var _D = $get($_.charvals, $geti($_.barcode, _9, 1)) !== undefined; //#30948 - if (!_D) { //#30950 - $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#30949'; //#30949 - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#30949 - bwipp_raiseerror(); //#30949 - } //#30949 - } //#30949 - $k[$j++] = 'barlen'; //#30953 - $k[$j++] = $_.barcode.length; //#30953 - if ($_.validatecheck) { //#30953 - var _G = $k[--$j]; //#30953 - $k[$j++] = $f(_G - 1); //#30953 - } //#30953 - var _H = $k[--$j]; //#30953 - $_[$k[--$j]] = _H; //#30953 - $_.checksum = 41; //#30955 - for (var _L = 0, _K = $f($_.barlen - 1); _L <= _K; _L += 1) { //#30959 - $_.checksum = $f($get($_.charvals, $geti($_.barcode, _L, 1)) + $_.checksum); //#30958 - } //#30958 - $_.checksum = $_.checksum % 43; //#30960 - if ($_.validatecheck) { //#30966 - if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#30964 - $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#30963'; //#30963 - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#30963 - bwipp_raiseerror(); //#30963 - } //#30963 - $_.barcode = $geti($_.barcode, 0, $_.barlen); //#30965 - } //#30965 - var _d = $s($f($_.barlen + 2)); //#30968 - $puti(_d, 1, $_.barcode); //#30968 - $_.barcode = _d; //#30968 - $put($_.barcode, 0, 43); //#30969 - $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#30970 - $put($_.options, "dontdraw", true); //#30973 - $put($_.options, "validatecheck", false); //#30974 - $k[$j++] = 'args'; //#30975 - $k[$j++] = $_.barcode; //#30975 - $k[$j++] = $_.options; //#30975 - bwipp_azteccode(); //#30975 - var _p = $k[--$j]; //#30975 - $_[$k[--$j]] = _p; //#30975 - var _r = $_.args; //#30977 - $put(_r, "opt", $_.options); //#30977 - $k[$j++] = $_.args; //#30980 - if (!$_.dontdraw) { //#30980 - bwipp_renmatrix(); //#30980 - } //#30980 - $_ = Object.getPrototypeOf($_); //#30982 - $_ = Object.getPrototypeOf($_); //#30984 -} - + $_ = Object.create($_); //#31281 + $_.dontdraw = false; //#31284 + $_.validatecheck = false; //#31285 + $k[$j++] = $_; //#31287 + bwipp_processoptions(); //#31287 + $_.options = $k[--$j]; //#31287 + $_.barcode = $k[--$j]; //#31288 + if ($eq($_.barcode, "")) { //#31292 + $k[$j++] = 'bwipp.hibcazteccodeEmptyData#31291'; //#31291 + $k[$j++] = "The data must not be empty"; //#31291 + bwipp_raiseerror(); //#31291 + } //#31291 + bwipp_loadctx(bwipp_hibcazteccode) //#31294 + if (!bwipp_hibcazteccode.__31301__) { //#31301 + $_ = Object.create($_); //#31301 + $_.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#31298 + $_.charvals = new Map; //#31299 + for (var _3 = 0; _3 <= 42; _3 += 1) { //#31300 + $put($_.charvals, $geti($_.barchars, _3, 1), _3); //#31300 + } //#31300 + for (var id in $_) $_.hasOwnProperty(id) && (bwipp_hibcazteccode.$ctx[id] = $_[id]); //#31300 + bwipp_hibcazteccode.__31301__ = 1; //#31300 + $_ = Object.getPrototypeOf($_); //#31300 + } //#31300 + for (var _A = 0, _9 = $_.barcode.length - 1; _A <= _9; _A += 1) { //#31308 + var _E = $get($_.charvals, $geti($_.barcode, _A, 1)) !== undefined; //#31305 + if (!_E) { //#31307 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter#31306'; //#31306 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#31306 + bwipp_raiseerror(); //#31306 + } //#31306 + } //#31306 + $k[$j++] = 'barlen'; //#31310 + $k[$j++] = $_.barcode.length; //#31310 + if ($_.validatecheck) { //#31310 + var _H = $k[--$j]; //#31310 + $k[$j++] = $f(_H - 1); //#31310 + } //#31310 + var _I = $k[--$j]; //#31310 + $_[$k[--$j]] = _I; //#31310 + $_.checksum = 41; //#31312 + for (var _M = 0, _L = $f($_.barlen - 1); _M <= _L; _M += 1) { //#31316 + $_.checksum = $f($get($_.charvals, $geti($_.barcode, _M, 1)) + $_.checksum); //#31315 + } //#31315 + $_.checksum = $_.checksum % 43; //#31317 + if ($_.validatecheck) { //#31323 + if ($get($_.barcode, $_.barlen) != $get($_.barchars, $_.checksum)) { //#31321 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit#31320'; //#31320 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#31320 + bwipp_raiseerror(); //#31320 + } //#31320 + $_.barcode = $geti($_.barcode, 0, $_.barlen); //#31322 + } //#31322 + var _e = $s($f($_.barlen + 2)); //#31325 + $puti(_e, 1, $_.barcode); //#31325 + $_.barcode = _e; //#31325 + $put($_.barcode, 0, 43); //#31326 + $put($_.barcode, $f($_.barlen + 1), $get($_.barchars, $_.checksum)); //#31327 + $put($_.options, "dontdraw", true); //#31330 + $put($_.options, "validatecheck", false); //#31331 + $k[$j++] = 'args'; //#31332 + $k[$j++] = $_.barcode; //#31332 + $k[$j++] = $_.options; //#31332 + bwipp_azteccode(); //#31332 + var _q = $k[--$j]; //#31332 + var _r = $k[--$j]; //#31332 + $_[_r] = _q; //#31332 + $put($_.args, "opt", $_.options); //#31334 + $k[$j++] = $_.args; //#31337 + if (!$_.dontdraw) { //#31337 + bwipp_renmatrix(); //#31337 + } //#31337 + $_ = Object.getPrototypeOf($_); //#31339 + $_ = Object.getPrototypeOf($_); //#31341 +} //bwipp_hibcazteccode function bwipp_channelcode() { - $_ = Object.create($_); //#31012 - $_.options = $k[--$j]; //#31014 - $_.barcode = $k[--$j]; //#31015 - $_.dontdraw = false; //#31017 - $_.shortfinder = false; //#31018 - $_.includetext = false; //#31019 - $_.includecheck = false; //#31020 - $_.height = 1; //#31021 - $forall($_.options, function() { //#31032 - var _3 = $k[--$j]; //#31032 - $_[$k[--$j]] = _3; //#31032 - }); //#31032 - $_.height = +$_.height; //#31034 - if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31039 - $k[$j++] = 'bwipp.channelcodeBadLength#31038'; //#31038 - $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31038 - bwipp_raiseerror(); //#31038 - } //#31038 - $forall($_.barcode, function() { //#31044 - var _9 = $k[--$j]; //#31041 - if ((_9 < 48) || (_9 > 57)) { //#31043 - $k[$j++] = 'bwipp.channelcodeBadCharacter#31042'; //#31042 - $k[$j++] = "Channel Code must contain only digits"; //#31042 - bwipp_raiseerror(); //#31042 - } //#31042 - }); //#31042 - if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31047 - $k[$j++] = 'bwipp.channelcodeTooBig#31046'; //#31046 - $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31046 - bwipp_raiseerror(); //#31046 - } //#31046 + $_ = Object.create($_); //#31369 + $_.options = $k[--$j]; //#31371 + $_.barcode = $k[--$j]; //#31372 + $_.dontdraw = false; //#31374 + $_.shortfinder = false; //#31375 + $_.includetext = false; //#31376 + $_.includecheck = false; //#31377 + $_.height = 1; //#31378 + $forall($_.options, function() { //#31389 + var _3 = $k[--$j]; //#31389 + $_[$k[--$j]] = _3; //#31389 + }); //#31389 + $_.height = +$_.height; //#31391 + if (($_.barcode.length < 2) || ($_.barcode.length > 7)) { //#31396 + $k[$j++] = 'bwipp.channelcodeBadLength#31395'; //#31395 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#31395 + bwipp_raiseerror(); //#31395 + } //#31395 + $forall($_.barcode, function() { //#31401 + var _9 = $k[--$j]; //#31398 + if ((_9 < 48) || (_9 > 57)) { //#31400 + $k[$j++] = 'bwipp.channelcodeBadCharacter#31399'; //#31399 + $k[$j++] = "Channel Code must contain only digits"; //#31399 + bwipp_raiseerror(); //#31399 + } //#31399 + }); //#31399 + if ($cvi($_.barcode) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $_.barcode.length - 2)) { //#31404 + $k[$j++] = 'bwipp.channelcodeTooBig#31403'; //#31403 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#31403 + bwipp_raiseerror(); //#31403 + } //#31403 $_.nextb = function() { - var _E = $k[--$j]; //#31050 - var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31055 - $k[$j++] = _E; //#31071 - $k[$j++] = _N; //#31071 - if (_E < $f($_.chan + 2)) { //#31069 - var _P = $k[--$j]; //#31057 - var _Q = $k[--$j]; //#31057 - var _R = $k[--$j]; //#31057 - $k[$j++] = _R; //#31060 - $k[$j++] = _Q; //#31060 - $k[$j++] = _P; //#31060 - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31060 - var _V = $k[--$j]; //#31058 - var _W = $k[--$j]; //#31058 - $put($_.b, _W, _T); //#31058 - var _X = $k[--$j]; //#31059 - var _Y = $k[--$j]; //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = _X; //#31059 - $k[$j++] = _W; //#31059 - $k[$j++] = _V; //#31059 - $k[$j++] = $f($f(_X - _T) + 1); //#31059 - $k[$j++] = _Y; //#31059 - $k[$j++] = $f(_W + 1); //#31059 - $_.nexts(); //#31059 - } //#31059 - } else { //#31069 - var _Z = $k[--$j]; //#31062 - var _a = $k[--$j]; //#31062 - var _b = $k[--$j]; //#31062 - $k[$j++] = _b; //#31070 - $k[$j++] = _a; //#31070 - $k[$j++] = _Z; //#31070 - if ($le(_Z, _b)) { //#31070 - var _d = $k[--$j]; //#31063 - var _e = $k[--$j]; //#31063 - var _f = $k[--$j]; //#31063 - $put($_.b, _e, _f); //#31063 - $k[$j++] = _f; //#31068 - $k[$j++] = _e; //#31068 - $k[$j++] = _d; //#31068 - if ($_.value == $_.target) { //#31068 - $k[$j++] = Infinity; //#31066 - for (var _i = 3; _i <= 10; _i += 1) { //#31066 - $k[$j++] = $get($_.s, _i); //#31066 - $k[$j++] = $get($_.b, _i); //#31066 - } //#31066 - $_.out = $geti($a(), 0, $_.chan * 2); //#31067 - } //#31067 - $_.value = $_.value + 1; //#31069 - } //#31069 - } //#31069 - $j -= 4; //#31072 - }; //#31073 + var _E = $k[--$j]; //#31407 + var _N = (($f($get($_.s, _E) + ($f($get($_.b, $f(_E - 1)) + $f($get($_.b, $f(_E - 2)) + $get($_.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#31412 + $k[$j++] = _E; //#31428 + $k[$j++] = _N; //#31428 + if (_E < $f($_.chan + 2)) { //#31426 + var _P = $k[--$j]; //#31414 + var _Q = $k[--$j]; //#31414 + var _R = $k[--$j]; //#31414 + $k[$j++] = _R; //#31417 + $k[$j++] = _Q; //#31417 + $k[$j++] = _P; //#31417 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#31417 + var _V = $k[--$j]; //#31415 + var _W = $k[--$j]; //#31415 + $put($_.b, _W, _T); //#31415 + var _X = $k[--$j]; //#31416 + var _Y = $k[--$j]; //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = _X; //#31416 + $k[$j++] = _W; //#31416 + $k[$j++] = _V; //#31416 + $k[$j++] = $f($f(_X - _T) + 1); //#31416 + $k[$j++] = _Y; //#31416 + $k[$j++] = $f(_W + 1); //#31416 + $_.nexts(); //#31416 + } //#31416 + } else { //#31426 + var _Z = $k[--$j]; //#31419 + var _a = $k[--$j]; //#31419 + var _b = $k[--$j]; //#31419 + $k[$j++] = _b; //#31427 + $k[$j++] = _a; //#31427 + $k[$j++] = _Z; //#31427 + if ($le(_Z, _b)) { //#31427 + var _d = $k[--$j]; //#31420 + var _e = $k[--$j]; //#31420 + var _f = $k[--$j]; //#31420 + $put($_.b, _e, _f); //#31420 + $k[$j++] = _f; //#31425 + $k[$j++] = _e; //#31425 + $k[$j++] = _d; //#31425 + if ($_.value == $_.target) { //#31425 + $k[$j++] = Infinity; //#31422 + for (var _i = 3; _i <= 10; _i += 1) { //#31423 + $k[$j++] = $get($_.s, _i); //#31423 + $k[$j++] = $get($_.b, _i); //#31423 + } //#31423 + $_.out = $geti($a(), 0, $_.chan * 2); //#31424 + } //#31424 + $_.value = $_.value + 1; //#31426 + } //#31426 + } //#31426 + $j -= 4; //#31429 + }; //#31430 $_.nexts = function() { - var _r = $k[--$j]; //#31076 - $k[$j++] = _r; //#31076 - if (_r < $f($_.chan + 2)) { //#31076 - $k[$j++] = 1; //#31076 - } else { //#31076 - var _t = $k[--$j]; //#31076 - var _u = $k[--$j]; //#31076 - $k[$j++] = _u; //#31076 - $k[$j++] = _t; //#31076 - $k[$j++] = _u; //#31076 - } //#31076 - var _v = $k[--$j]; //#31076 - var _w = $k[--$j]; //#31076 - var _x = $k[--$j]; //#31076 - $k[$j++] = _x; //#31079 - $k[$j++] = _w; //#31079 - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31079 - var _11 = $k[--$j]; //#31077 - $put($_.s, _11, _z); //#31077 - var _12 = $k[--$j]; //#31078 - var _13 = $k[--$j]; //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _12; //#31078 - $k[$j++] = _11; //#31078 - $k[$j++] = $f($f(_12 - _z) + 1); //#31078 - $k[$j++] = _13; //#31078 - $k[$j++] = _11; //#31078 - $_.nextb(); //#31078 - } //#31078 - $j -= 3; //#31080 - }; //#31081 + var _r = $k[--$j]; //#31433 + $k[$j++] = _r; //#31433 + if (_r < $f($_.chan + 2)) { //#31433 + $k[$j++] = 1; //#31433 + } else { //#31433 + var _t = $k[--$j]; //#31433 + var _u = $k[--$j]; //#31433 + $k[$j++] = _u; //#31433 + $k[$j++] = _t; //#31433 + $k[$j++] = _u; //#31433 + } //#31433 + var _v = $k[--$j]; //#31433 + var _w = $k[--$j]; //#31433 + var _x = $k[--$j]; //#31433 + $k[$j++] = _x; //#31436 + $k[$j++] = _w; //#31436 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#31436 + var _11 = $k[--$j]; //#31434 + $put($_.s, _11, _z); //#31434 + var _12 = $k[--$j]; //#31435 + var _13 = $k[--$j]; //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _12; //#31435 + $k[$j++] = _11; //#31435 + $k[$j++] = $f($f(_12 - _z) + 1); //#31435 + $k[$j++] = _13; //#31435 + $k[$j++] = _11; //#31435 + $_.nextb(); //#31435 + } //#31435 + $j -= 3; //#31437 + }; //#31438 $_.encode = function() { - $_.chan = $k[--$j]; //#31084 - $_.target = $k[--$j]; //#31085 - $_.value = 0; //#31086 - $_.out = -1; //#31087 - $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31088 - $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31089 - var _18 = $_.chan; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = _18; //#31090 - $k[$j++] = 3; //#31090 - $_.nexts(); //#31090 - $k[$j++] = $_.out; //#31091 - }; //#31092 - $_.barlen = $_.barcode.length; //#31094 - $k[$j++] = 'finder'; //#31097 - if ($_.shortfinder) { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1]); //#31097 - } else { //#31097 - $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31097 - } //#31097 - var _1E = $k[--$j]; //#31097 - $_[$k[--$j]] = _1E; //#31097 - $k[$j++] = 'data'; //#31100 - $k[$j++] = $cvi($_.barcode); //#31100 - $k[$j++] = $_.barlen + 1; //#31100 - $_.encode(); //#31100 - var _1I = $k[--$j]; //#31100 - $_[$k[--$j]] = _1I; //#31100 - $_.check = $a([]); //#31103 - if ($_.includecheck) { //#31119 - $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31113 - $k[$j++] = 0; //#31117 - for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31117 - var _1e = $k[--$j]; //#31116 - $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31116 - } //#31116 - var _1f = $k[--$j]; //#31118 - $k[$j++] = _1f % 23; //#31118 - $k[$j++] = 3; //#31118 - $_.encode(); //#31118 - $_.check = $k[--$j]; //#31118 - } //#31118 - $k[$j++] = Infinity; //#31125 - $aload($_.finder); //#31123 - $aload($_.data); //#31124 - $aload($_.check); //#31125 - $_.sbs = $a(); //#31125 - $_.txt = $a($_.barlen); //#31129 - for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31133 - $_.i = _1p; //#31131 - $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31132 - } //#31132 - $k[$j++] = Infinity; //#31143 - var _1w = $_.sbs; //#31138 - $k[$j++] = Infinity; //#31139 - for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31139 - $k[$j++] = $_.height; //#31139 - } //#31139 - var _21 = $a(); //#31139 - $k[$j++] = Infinity; //#31140 - for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31140 - $k[$j++] = 0; //#31140 - } //#31140 - var _25 = $a(); //#31140 - $k[$j++] = 'ren'; //#31143 - $k[$j++] = bwipp_renlinear; //#31143 - $k[$j++] = 'sbs'; //#31143 - $k[$j++] = _1w; //#31143 - $k[$j++] = 'bhs'; //#31143 - $k[$j++] = _21; //#31143 - $k[$j++] = 'bbs'; //#31143 - $k[$j++] = _25; //#31143 - $k[$j++] = 'txt'; //#31143 - $k[$j++] = $_.txt; //#31143 - $k[$j++] = 'textxalign'; //#31143 - $k[$j++] = "center"; //#31143 - $k[$j++] = 'opt'; //#31143 - $k[$j++] = $_.options; //#31143 - var _28 = $d(); //#31143 - $k[$j++] = _28; //#31146 - if (!$_.dontdraw) { //#31146 - bwipp_renlinear(); //#31146 - } //#31146 - $_ = Object.getPrototypeOf($_); //#31148 -} - + $_.chan = $k[--$j]; //#31441 + $_.target = $k[--$j]; //#31442 + $_.value = 0; //#31443 + $_.out = -1; //#31444 + $_.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31445 + $_.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#31446 + var _18 = $_.chan; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = _18; //#31447 + $k[$j++] = 3; //#31447 + $_.nexts(); //#31447 + $k[$j++] = $_.out; //#31448 + }; //#31449 + $_.barlen = $_.barcode.length; //#31451 + $k[$j++] = 'finder'; //#31454 + if ($_.shortfinder) { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#31454 + } else { //#31454 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#31454 + } //#31454 + var _1E = $k[--$j]; //#31454 + $_[$k[--$j]] = _1E; //#31454 + $k[$j++] = 'data'; //#31457 + $k[$j++] = $cvi($_.barcode); //#31457 + $k[$j++] = $_.barlen + 1; //#31457 + $_.encode(); //#31457 + var _1I = $k[--$j]; //#31457 + $_[$k[--$j]] = _1I; //#31457 + $_.check = $a([]); //#31460 + if ($_.includecheck) { //#31476 + $_.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $_.barlen); //#31470 + $k[$j++] = 0; //#31474 + for (var _1Z = 0, _1Y = $_.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#31474 + var _1e = $k[--$j]; //#31473 + $k[$j++] = $f(_1e + ($f($get($_.data, _1Z) - 1) * $get($_.mod23, _1Z))); //#31473 + } //#31473 + var _1f = $k[--$j]; //#31475 + $k[$j++] = _1f % 23; //#31475 + $k[$j++] = 3; //#31475 + $_.encode(); //#31475 + $_.check = $k[--$j]; //#31475 + } //#31475 + $k[$j++] = Infinity; //#31479 + $aload($_.finder); //#31480 + $aload($_.data); //#31481 + $aload($_.check); //#31482 + $_.sbs = $a(); //#31482 + $_.txt = $a($_.barlen); //#31486 + for (var _1p = 0, _1o = $_.barlen - 1; _1p <= _1o; _1p += 1) { //#31490 + $_.i = _1p; //#31488 + $put($_.txt, $_.i, $a([$geti($_.barcode, $_.i, 1), 0, 0, "", 0])); //#31489 + } //#31489 + $k[$j++] = Infinity; //#31493 + var _1w = $_.sbs; //#31495 + $k[$j++] = Infinity; //#31496 + for (var _1y = 0, _1z = ~~(($_.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#31496 + $k[$j++] = $_.height; //#31496 + } //#31496 + var _21 = $a(); //#31496 + $k[$j++] = Infinity; //#31497 + for (var _23 = 0, _24 = ~~(($_.sbs.length + 1) / 2); _23 < _24; _23++) { //#31497 + $k[$j++] = 0; //#31497 + } //#31497 + var _25 = $a(); //#31497 + $k[$j++] = 'ren'; //#31500 + $k[$j++] = bwipp_renlinear; //#31500 + $k[$j++] = 'sbs'; //#31500 + $k[$j++] = _1w; //#31500 + $k[$j++] = 'bhs'; //#31500 + $k[$j++] = _21; //#31500 + $k[$j++] = 'bbs'; //#31500 + $k[$j++] = _25; //#31500 + $k[$j++] = 'txt'; //#31500 + $k[$j++] = $_.txt; //#31500 + $k[$j++] = 'textxalign'; //#31500 + $k[$j++] = "center"; //#31500 + $k[$j++] = 'opt'; //#31500 + $k[$j++] = $_.options; //#31500 + var _28 = $d(); //#31500 + $k[$j++] = _28; //#31503 + if (!$_.dontdraw) { //#31503 + bwipp_renlinear(); //#31503 + } //#31503 + $_ = Object.getPrototypeOf($_); //#31505 +} //bwipp_channelcode function bwipp_renlinear() { - if ($_.bwipjs_dontdraw) { //#31176 - return; //#31176 - } //#31176 - $_ = Object.create($_); //#31177 - $_.args = $k[--$j]; //#31179 - $_.sbs = $a([]); //#31182 - $_.bhs = $a([]); //#31183 - $_.bbs = $a([]); //#31184 - $_.txt = $a([]); //#31185 - $_.barcolor = "unset"; //#31186 - $_.includetext = false; //#31187 - $_.textcolor = "unset"; //#31188 - $_.textxalign = "unset"; //#31189 - $_.textyalign = "unset"; //#31190 - $_.textfont = "OCR-B"; //#31191 - $_.textsize = 10; //#31192 - $_.textxoffset = 0; //#31193 - $_.textyoffset = 0; //#31194 - $_.textgaps = 0; //#31195 - $_.alttext = ""; //#31196 - $_.bordercolor = "unset"; //#31197 - $_.backgroundcolor = "unset"; //#31198 - $_.inkspread = 0; //#31199 - $_.width = 0; //#31200 - $_.barratio = 1; //#31201 - $_.spaceratio = 1; //#31202 - $_.showborder = false; //#31203 - $_.borderleft = 10; //#31204 - $_.borderright = 10; //#31205 - $_.bordertop = 1; //#31206 - $_.borderbottom = 1; //#31207 - $_.borderwidth = 0.5; //#31208 - $_.guardwhitespace = false; //#31209 - $_.guardleftpos = 0; //#31210 - $_.guardleftypos = 0; //#31211 - $_.guardrightpos = 0; //#31212 - $_.guardrightypos = 0; //#31213 - $_.guardwidth = 7; //#31214 - $_.guardheight = 7; //#31215 - $forall($_.args, function() { //#31218 - var _7 = $k[--$j]; //#31218 - $_[$k[--$j]] = _7; //#31218 - }); //#31218 - var _9 = $_.opt; //#31219 - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#31219 - var _A = _D.next().value; //#31219 - $_[_A] = _9.get(_A); //#31219 - } //#31219 - $_.barcolor = "" + $_.barcolor; //#31221 - $_.textcolor = "" + $_.textcolor; //#31222 - $_.textxalign = "" + $_.textxalign; //#31223 - $_.textyalign = "" + $_.textyalign; //#31224 - $_.textfont = "" + $_.textfont; //#31225 - $_.textsize = +$_.textsize; //#31226 - $_.textxoffset = +$_.textxoffset; //#31227 - $_.textyoffset = +$_.textyoffset; //#31228 - $_.textgaps = +$_.textgaps; //#31229 - $_.alttext = "" + $_.alttext; //#31230 - $_.bordercolor = "" + $_.bordercolor; //#31231 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31232 - $_.inkspread = +$_.inkspread; //#31233 - $_.width = +$_.width; //#31234 - $_.barratio = +$_.barratio; //#31235 - $_.spaceratio = +$_.spaceratio; //#31236 - $_.borderleft = +$_.borderleft; //#31237 - $_.borderright = +$_.borderright; //#31238 - $_.bordertop = +$_.bordertop; //#31239 - $_.borderbottom = +$_.borderbottom; //#31240 - $_.borderwidth = +$_.borderwidth; //#31241 - $_.guardleftpos = +$_.guardleftpos; //#31242 - $_.guardleftypos = +$_.guardleftypos; //#31243 - $_.guardrightpos = +$_.guardrightpos; //#31244 - $_.guardrightypos = +$_.guardrightypos; //#31245 - $_.guardwidth = +$_.guardwidth; //#31246 - $_.guardheight = +$_.guardheight; //#31247 - $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31250 - $_.x = 0; //#31251 - $_.maxh = 0; //#31251 - for (var _k = 0, _j = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#31270 - $_.i = _k; //#31253 - if (($_.i % 2) == 0) { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31255 - if ($get($_.sbs, $_.i) != 0) { //#31264 - $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31257 - $_.c = $f(($_.d / 2) + $_.x); //#31258 - $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31259 - $_.w = $f($_.d - $_.inkspread); //#31260 - $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31261 - if ($f($_.h + $_.y) > $_.maxh) { //#31262 - $_.maxh = $f($_.h + $_.y); //#31262 - } //#31262 - } else { //#31264 - $put($_.bars, ~~($_.i / 2), -1); //#31264 - } //#31264 - } else { //#31267 - $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31267 - } //#31267 - $_.x = $f($_.x + $_.d); //#31269 - } //#31269 - $$.save(); //#31272 - var _1P = $$.currpos(); //#31274 - $$.translate(_1P.x, _1P.y); //#31274 - if ($_.width != 0) { //#31279 - $$.scale(($_.width * 72) / $_.x, 1); //#31278 - } //#31278 - $$.newpath(); //#31282 - $$.moveto(-$_.borderleft, -$_.borderbottom); //#31283 - $$.rlineto($f($f($_.x + $_.borderleft) + $_.borderright), 0); //#31284 - $$.rlineto(0, $f($f($_.maxh + $_.borderbottom) + $_.bordertop)); //#31285 - $$.rlineto(-($f($f($_.x + $_.borderleft) + $_.borderright)), 0); //#31286 - $$.rlineto(0, -($f($f($_.maxh + $_.borderbottom) + $_.bordertop))); //#31287 - $$.closepath(); //#31288 - if ($_.showborder) { //#31296 - $$.save(); //#31292 - if ($ne($_.bordercolor, "unset")) { //#31293 - $$.setcolor($_.bordercolor); //#31293 - } //#31293 - $$.setlinewidth($_.borderwidth); //#31294 - $$.stroke(); //#31294 - $$.restore(); //#31295 - } //#31295 - $$.save(); //#31299 - if ($ne($_.barcolor, "unset")) { //#31301 - $$.setcolor($_.barcolor); //#31301 - } //#31301 - var _1n = $_.bars; //#31302 - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#31308 - var _1q = $get(_1n, _1o); //#31308 - $k[$j++] = _1q; //#31307 - if (_1q != -1) { //#31306 - $aload($k[--$j]); //#31304 - $$.newpath(); //#31304 - $$.setlinewidth($k[--$j]); //#31304 - var _1t = $k[--$j]; //#31304 - $$.moveto($k[--$j], _1t); //#31304 - $$.rlineto(0, $k[--$j]); //#31304 - $$.stroke(); //#31304 - } else { //#31306 - $j--; //#31306 - } //#31306 - } //#31306 - $$.restore(); //#31309 - if ($ne($_.textcolor, "unset")) { //#31312 - $$.setcolor($_.textcolor); //#31312 - } //#31312 - if ($_.includetext) { //#31369 - if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31367 - $_.s = 0; //#31315 - $_.fn = ""; //#31315 - var _22 = $_.txt; //#31316 - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#31325 - $forall($get(_22, _23)); //#31317 - var _26 = $k[--$j]; //#31318 - var _27 = $k[--$j]; //#31318 - $k[$j++] = _27; //#31323 - $k[$j++] = _26; //#31323 - if ((_26 != $_.s) || $ne(_27, $_.fn)) { //#31322 - var _2A = $k[--$j]; //#31319 - var _2B = $k[--$j]; //#31319 - $_.s = _2A; //#31319 - $_.fn = _2B; //#31319 - $$.selectfont(_2B, _2A); //#31320 - } else { //#31322 - $j -= 2; //#31322 - } //#31322 - var _2C = $k[--$j]; //#31324 - $$.moveto($k[--$j], _2C); //#31324 - $$.show($k[--$j], 0, 0); //#31324 - } //#31324 - } else { //#31367 - $$.selectfont($_.textfont, $_.textsize); //#31327 - if ($eq($_.alttext, "")) { //#31333 - $k[$j++] = Infinity; //#31329 - var _2I = $_.txt; //#31329 - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#31329 - $forall($get($get(_2I, _2J), 0)); //#31329 - } //#31329 - $_.txt = $a(); //#31329 - $_.tstr = $s($_.txt.length); //#31330 - for (var _2S = 0, _2R = $_.txt.length - 1; _2S <= _2R; _2S += 1) { //#31331 - $put($_.tstr, _2S, $get($_.txt, _2S)); //#31331 - } //#31331 - } else { //#31333 - $_.tstr = $_.alttext; //#31333 - } //#31333 - if ($_.tstr.length == 0) { //#31343 - $k[$j++] = 0; //#31338 - } else { //#31343 - $$.save(); //#31340 - $$.newpath(); //#31341 - $$.moveto(0, 0); //#31341 - $$.charpath("0", false); //#31341 - var _2Y = $$.pathbbox(); //#31341 - $$.restore(); //#31343 - $k[$j++] = _2Y.ury; //#31343 - } //#31343 - $_.textascent = $k[--$j]; //#31352 - var _2b = $$.stringwidth($_.tstr); //#31353 - $_.textwidth = $f(_2b.w + (($_.tstr.length - 1) * $_.textgaps)); //#31353 - $_.textxpos = $f($_.textxoffset + ($f($_.x - $_.textwidth) / 2)); //#31355 - if ($eq($_.textxalign, "left")) { //#31356 - $_.textxpos = $_.textxoffset; //#31356 - } //#31356 - if ($eq($_.textxalign, "right")) { //#31357 - $_.textxpos = $f($f($_.x - $_.textxoffset) - $_.textwidth); //#31357 - } //#31357 - if ($eq($_.textxalign, "offleft")) { //#31358 - $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31358 - } //#31358 - if ($eq($_.textxalign, "offright")) { //#31359 - $_.textxpos = $f($_.x + $_.textxoffset); //#31359 - } //#31359 - if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.x)) { //#31363 - $_.textxpos = 0; //#31361 - $_.textgaps = $f($_.x - $_.textwidth) / ($_.tstr.length - 1); //#31362 - } //#31362 - $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31364 - if ($eq($_.textyalign, "above")) { //#31365 - $_.textypos = $f($f($_.textyoffset + $_.maxh) + 1); //#31365 - } //#31365 - if ($eq($_.textyalign, "center")) { //#31366 - $_.textypos = $f($_.textyoffset + ($f($_.maxh - $_.textascent) / 2)); //#31366 - } //#31366 - $$.moveto($_.textxpos, $_.textypos); //#31367 - $$.show($_.tstr, $_.textgaps, 0); //#31367 - } //#31367 - } //#31367 - if ($_.guardwhitespace) { //#31382 - $$.selectfont("OCR-B", $_.guardheight * 2); //#31373 - if ($_.guardleftpos != 0) { //#31377 - $$.moveto($f((-$_.guardleftpos) - 1), $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.5)); //#31375 - $$.show("<", 0, 0); //#31376 - } //#31376 - if ($_.guardrightpos != 0) { //#31381 - $$.moveto($f(($f($f($_.guardrightpos + $_.x) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.5)); //#31379 - $$.show(">", 0, 0); //#31380 - } //#31380 - } //#31380 - $$.restore(); //#31384 - $_ = Object.getPrototypeOf($_); //#31386 -} - + if ($_.bwipjs_dontdraw) { //#31533 + return; //#31533 + } //#31533 + $_ = Object.create($_); //#31534 + $_.sbs = $a([]); //#31539 + $_.bhs = $a([]); //#31540 + $_.bbs = $a([]); //#31541 + $_.txt = $a([]); //#31542 + $_.barcolor = "unset"; //#31543 + $_.includetext = false; //#31544 + $_.textcolor = "unset"; //#31545 + $_.textxalign = "unset"; //#31546 + $_.textyalign = "unset"; //#31547 + $_.textfont = "OCR-B"; //#31548 + $_.textsize = 10; //#31549 + $_.textxoffset = 0; //#31550 + $_.textyoffset = 0; //#31551 + $_.textgaps = 0; //#31552 + $_.alttext = ""; //#31553 + $_.bordercolor = "unset"; //#31554 + $_.backgroundcolor = "unset"; //#31555 + $_.inkspread = 0; //#31556 + $_.width = 0; //#31557 + $_.barratio = 1; //#31558 + $_.spaceratio = 1; //#31559 + $_.showborder = false; //#31560 + $_.showbearer = false; //#31561 + $_.borderleft = 10; //#31562 + $_.borderright = 10; //#31563 + $_.bordertop = 1; //#31564 + $_.borderbottom = 1; //#31565 + $_.borderwidth = 0.5; //#31566 + $_.guardwhitespace = false; //#31567 + $_.guardleftpos = 0; //#31568 + $_.guardleftypos = 0; //#31569 + $_.guardrightpos = 0; //#31570 + $_.guardrightypos = 0; //#31571 + $_.guardwidth = 7; //#31572 + $_.guardheight = 7; //#31573 + $forall($k[--$j], function() { //#31575 + var _6 = $k[--$j]; //#31575 + $_[$k[--$j]] = _6; //#31575 + }); //#31575 + $k[$j++] = $_.opt; //#31576 + delete $_['opt']; //#31576 + $k[$j++] = $_; //#31576 + bwipp_processoptions(); //#31576 + $j--; //#31576 + if ($_.textsize <= 0) { //#31580 + $k[$j++] = 'bwipp.renlinearBadTextsize#31579'; //#31579 + $k[$j++] = "The font size must be greater than zero"; //#31579 + bwipp_raiseerror(); //#31579 + } //#31579 + $_.bars = $a(~~(($_.sbs.length + 1) / 2)); //#31583 + $_.pixx = 0; //#31584 + $_.pixy = 0; //#31584 + for (var _E = 0, _D = ((~~(($_.sbs.length + 1) / 2)) * 2) - 2; _E <= _D; _E += 1) { //#31603 + $_.i = _E; //#31586 + if (($_.i % 2) == 0) { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.barratio) - $_.barratio)) + 1); //#31588 + if ($get($_.sbs, $_.i) != 0) { //#31597 + $_.h = $get($_.bhs, ~~($_.i / 2)) * 72; //#31590 + $_.c = $f(($_.d / 2) + $_.pixx); //#31591 + $_.y = $get($_.bbs, ~~($_.i / 2)) * 72; //#31592 + $_.w = $f($_.d - $_.inkspread); //#31593 + $put($_.bars, ~~($_.i / 2), $a([$_.h, $_.c, $_.y, $_.w])); //#31594 + if ($f($_.h + $_.y) > $_.pixy) { //#31595 + $_.pixy = $f($_.h + $_.y); //#31595 + } //#31595 + } else { //#31597 + $put($_.bars, ~~($_.i / 2), -1); //#31597 + } //#31597 + } else { //#31600 + $_.d = $f(($f(($get($_.sbs, $_.i) * $_.spaceratio) - $_.spaceratio)) + 1); //#31600 + } //#31600 + $_.pixx = $f($_.pixx + $_.d); //#31602 + } //#31602 + $$.save(); //#31605 + var _t = $$.currpos(); //#31607 + $$.translate(_t.x, _t.y); //#31607 + if ($_.width != 0) { //#31612 + $$.scale(($_.width * 72) / $_.pixx, 1); //#31611 + } //#31611 + $_.tl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31622 + $_.tr = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), $f($f($_.pixy + $_.bordertop) + ($_.borderwidth / 2))]); //#31623 + $_.bl = $a([-($f($_.borderleft + ($_.borderwidth / 2))), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31624 + $_.br = $a([$f($f($_.pixx + $_.borderright) + ($_.borderwidth / 2)), -($f($_.borderbottom + ($_.borderwidth / 2)))]); //#31625 + if ($_.showbearer) { //#31650 + $$.save(); //#31627 + $$.newpath(); //#31628 + $aload($_.bl); //#31629 + var _1N = $k[--$j]; //#31629 + $$.moveto($k[--$j], _1N); //#31629 + $aload($_.br); //#31629 + var _1Q = $k[--$j]; //#31629 + $$.lineto($k[--$j], _1Q); //#31629 + $aload($_.tl); //#31630 + var _1T = $k[--$j]; //#31630 + $$.moveto($k[--$j], _1T); //#31630 + $aload($_.tr); //#31630 + var _1W = $k[--$j]; //#31630 + $$.lineto($k[--$j], _1W); //#31630 + if ($ne($_.bordercolor, "unset")) { //#31631 + $$.setcolor($_.bordercolor); //#31631 + } //#31631 + $$.setlinewidth($f($_.borderwidth - ($_.inkspread * 2))); //#31632 + $$.stroke(); //#31632 + $$.restore(); //#31633 + } else { //#31650 + if ($_.showborder) { //#31651 + $$.save(); //#31646 + $$.newpath(); //#31647 + $aload($_.bl); //#31647 + var _1e = $k[--$j]; //#31647 + $$.moveto($k[--$j], _1e); //#31647 + var _1j = $a([$_.br, $_.tr, $_.tl]); //#31647 + for (var _1k = 0, _1l = _1j.length; _1k < _1l; _1k++) { //#31647 + $aload($get(_1j, _1k)); //#31647 + var _1n = $k[--$j]; //#31647 + $$.lineto($k[--$j], _1n); //#31647 + } //#31647 + $$.closepath(); //#31647 + if ($ne($_.bordercolor, "unset")) { //#31648 + $$.setcolor($_.bordercolor); //#31648 + } //#31648 + $$.setlinewidth($_.borderwidth); //#31649 + $$.stroke(); //#31649 + $$.restore(); //#31650 + } //#31650 + } //#31650 + $$.save(); //#31654 + if ($ne($_.barcolor, "unset")) { //#31656 + $$.setcolor($_.barcolor); //#31656 + } //#31656 + var _1u = $_.bars; //#31657 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#31663 + var _1x = $get(_1u, _1v); //#31663 + $k[$j++] = _1x; //#31662 + if (_1x != -1) { //#31661 + $aload($k[--$j]); //#31659 + $$.newpath(); //#31659 + $$.setlinewidth($k[--$j]); //#31659 + var _20 = $k[--$j]; //#31659 + $$.moveto($k[--$j], _20); //#31659 + $$.rlineto(0, $k[--$j]); //#31659 + $$.stroke(); //#31659 + } else { //#31661 + $j--; //#31661 + } //#31661 + } //#31661 + $$.restore(); //#31664 + if ($ne($_.textcolor, "unset")) { //#31667 + $$.setcolor($_.textcolor); //#31667 + } //#31667 + if ($_.includetext) { //#31724 + if (($eq($_.textxalign, "unset") && $eq($_.textyalign, "unset")) && $eq($_.alttext, "")) { //#31722 + $_.s = 0; //#31670 + $_.fn = ""; //#31670 + var _29 = $_.txt; //#31671 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#31680 + $forall($get(_29, _2A)); //#31672 + var _2D = $k[--$j]; //#31673 + var _2E = $k[--$j]; //#31673 + $k[$j++] = _2E; //#31678 + $k[$j++] = _2D; //#31678 + if ((_2D != $_.s) || $ne(_2E, $_.fn)) { //#31677 + var _2H = $k[--$j]; //#31674 + var _2I = $k[--$j]; //#31674 + $_.s = _2H; //#31674 + $_.fn = _2I; //#31674 + $$.selectfont(_2I, _2H); //#31675 + } else { //#31677 + $j -= 2; //#31677 + } //#31677 + var _2J = $k[--$j]; //#31679 + $$.moveto($k[--$j], _2J); //#31679 + $$.show($k[--$j], 0, 0); //#31679 + } //#31679 + } else { //#31722 + $$.selectfont($_.textfont, $_.textsize); //#31682 + if ($eq($_.alttext, "")) { //#31688 + $k[$j++] = Infinity; //#31684 + var _2P = $_.txt; //#31684 + for (var _2Q = 0, _2R = _2P.length; _2Q < _2R; _2Q++) { //#31684 + $forall($get($get(_2P, _2Q), 0)); //#31684 + } //#31684 + $_.txt = $a(); //#31684 + $_.tstr = $s($_.txt.length); //#31685 + for (var _2Z = 0, _2Y = $_.txt.length - 1; _2Z <= _2Y; _2Z += 1) { //#31686 + $put($_.tstr, _2Z, $get($_.txt, _2Z)); //#31686 + } //#31686 + } else { //#31688 + $_.tstr = $_.alttext; //#31688 + } //#31688 + if ($_.tstr.length == 0) { //#31698 + $k[$j++] = 0; //#31693 + } else { //#31698 + $$.save(); //#31695 + $$.newpath(); //#31696 + $$.moveto(0, 0); //#31696 + $$.charpath("0", false); //#31696 + var _2f = $$.pathbbox(); //#31696 + $$.restore(); //#31698 + $k[$j++] = _2f.ury; //#31698 + } //#31698 + $_.textascent = $k[--$j]; //#31707 + var _2i = $$.stringwidth($_.tstr); //#31708 + $_.textwidth = $f(_2i.w + (($_.tstr.length - 1) * $_.textgaps)); //#31708 + $_.textxpos = $f($_.textxoffset + ($f($_.pixx - $_.textwidth) / 2)); //#31710 + if ($eq($_.textxalign, "left")) { //#31711 + $_.textxpos = $_.textxoffset; //#31711 + } //#31711 + if ($eq($_.textxalign, "right")) { //#31712 + $_.textxpos = $f($f($_.pixx - $_.textxoffset) - $_.textwidth); //#31712 + } //#31712 + if ($eq($_.textxalign, "offleft")) { //#31713 + $_.textxpos = -$f($_.textwidth + $_.textxoffset); //#31713 + } //#31713 + if ($eq($_.textxalign, "offright")) { //#31714 + $_.textxpos = $f($_.pixx + $_.textxoffset); //#31714 + } //#31714 + if ($eq($_.textxalign, "justify") && ($_.textwidth < $_.pixx)) { //#31718 + $_.textxpos = 0; //#31716 + $_.textgaps = $f($_.pixx - $_.textwidth) / ($_.tstr.length - 1); //#31717 + } //#31717 + $_.textypos = -($f($f($_.textyoffset + $_.textascent) + 1)); //#31719 + if ($eq($_.textyalign, "above")) { //#31720 + $_.textypos = $f($f($_.textyoffset + $_.pixy) + 1); //#31720 + } //#31720 + if ($eq($_.textyalign, "center")) { //#31721 + $_.textypos = $f($_.textyoffset + ($f($_.pixy - $_.textascent) / 2)); //#31721 + } //#31721 + $$.moveto($_.textxpos, $_.textypos); //#31722 + $$.show($_.tstr, $_.textgaps, 0); //#31722 + } //#31722 + } //#31722 + if ($_.guardwhitespace) { //#31737 + $$.selectfont("OCR-B", $_.guardheight * 2); //#31728 + if ($_.guardleftpos != 0) { //#31732 + $$.moveto((-$_.guardleftpos) - 2, $f(($f($_.guardleftypos - ($_.guardheight / 2))) - 1.25)); //#31730 + $$.show("<", 0, 0); //#31731 + } //#31731 + if ($_.guardrightpos != 0) { //#31736 + $$.moveto($f(($f($f($_.guardrightpos + $_.pixx) - $_.guardwidth)) + 1), $f(($f($_.guardrightypos - ($_.guardheight / 2))) - 1.25)); //#31734 + $$.show(">", 0, 0); //#31735 + } //#31735 + } //#31735 + $$.restore(); //#31739 + $_ = Object.getPrototypeOf($_); //#31741 +} //bwipp_renlinear function bwipp_renmaximatrix() { - if ($_.bwipjs_dontdraw) { //#31404 - return; //#31404 - } //#31404 - $_ = Object.create($_); //#31406 - $_.args = $k[--$j]; //#31408 - $_.barcolor = "unset"; //#31411 - $_.backgroundcolor = "unset"; //#31412 - $forall($_.args, function() { //#31415 - var _3 = $k[--$j]; //#31415 - $_[$k[--$j]] = _3; //#31415 - }); //#31415 - var _5 = $_.opt; //#31416 - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31416 - var _6 = _9.next().value; //#31416 - $_[_6] = _5.get(_6); //#31416 - } //#31416 - $_.barcolor = "" + $_.barcolor; //#31418 - $_.backgroundcolor = "" + $_.backgroundcolor; //#31419 - $$.save(); //#31421 - if ($ne($_.barcolor, "unset")) { //#31423 - $$.setcolor($_.barcolor); //#31423 - } //#31423 - $$.maxicode($_.pixs); //#31424 - $$.restore(); //#31426 - $_ = Object.getPrototypeOf($_); //#31428 -} + if ($_.bwipjs_dontdraw) { //#31759 + return; //#31759 + } //#31759 + $_ = Object.create($_); //#31761 + $_.args = $k[--$j]; //#31763 + $_.barcolor = "unset"; //#31766 + $_.backgroundcolor = "unset"; //#31767 + $forall($_.args, function() { //#31770 + var _3 = $k[--$j]; //#31770 + $_[$k[--$j]] = _3; //#31770 + }); //#31770 + var _5 = $_.opt; //#31771 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#31771 + var _6 = _9.next().value; //#31771 + $_[_6] = _5.get(_6); //#31771 + } //#31771 + $_.barcolor = "" + $_.barcolor; //#31773 + $_.backgroundcolor = "" + $_.backgroundcolor; //#31774 + $$.save(); //#31776 + if ($ne($_.barcolor, "unset")) { //#31778 + $$.setcolor($_.barcolor); //#31778 + } //#31778 + $$.maxicode($_.pixs); //#31779 + $$.restore(); //#31781 + $_ = Object.getPrototypeOf($_); //#31783 +} //bwipp_renmaximatrix // bwip-js/barcode-ftr.js // // This code is injected below the cross-compiled barcode.js. @@ -39740,4 +40244,4 @@ function bwipp_lookup(symbol) { } throw new Error("bwipp.unknownEncoder: unknown encoder name: " + symbol); } -var BWIPP_VERSION = '2023-04-03'; +var BWIPP_VERSION = '2024-01-03'; diff --git a/src/drawing-builtin.js b/src/drawing-builtin.js index ea52df31..cbdcee49 100644 --- a/src/drawing-builtin.js +++ b/src/drawing-builtin.js @@ -8,21 +8,21 @@ // For the methods that take a color `rgb` parameter, the value is always a // string with format RRGGBB. function DrawingBuiltin() { - var floor = Math.floor; + var floor = Math.floor; - // Unrolled x,y rotate/translate matrix - var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; - var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; + // Unrolled x,y rotate/translate matrix + var tx0 = 0, tx1 = 0, tx2 = 0, tx3 = 0; + var ty0 = 0, ty1 = 0, ty2 = 0, ty3 = 0; var opts; // see setopts() - var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas - var gs_width, gs_height; // image size, in pixels - var gs_dx, gs_dy; // x,y translate (padding) - var gs_r, gs_g, gs_b; // rgb - var gs_xymap; // edge map + var gs_image, gs_rowbyte; // rowbyte will be 1 for png's, 0 for canvas + var gs_width, gs_height; // image size, in pixels + var gs_dx, gs_dy; // x,y translate (padding) + var gs_r, gs_g, gs_b; // rgb + var gs_xymap; // edge map var gs_xyclip; // clip region map (similar to xymap) - return { + return { // setopts() is called after the options are fixed-up/normalized, // but before calling into BWIPP. // This method allows omitting the options in the constructor call. @@ -31,243 +31,243 @@ function DrawingBuiltin() { opts = options; }, - // Ensure compliant bar codes by always using integer scaling factors. - scale : function(sx, sy) { + // Ensure compliant bar codes by always using integer scaling factors. + scale : function(sx, sy) { // swissqrcode requires clipping and drawing that are not scaled to the // the barcode module size. if (opts.bcid == 'swissqrcode') { return [ sx, sy ]; } else { - return [ (sx|0)||1, (sy|0)||1 ]; + return [ (sx|0)||1, (sy|0)||1 ]; } - }, - - // Measure text. This and scale() are the only drawing primitives that - // are called before init(). - // - // `font` is the font name typically OCR-A or OCR-B. - // `fwidth` and `fheight` are the requested font cell size. They will - // usually be the same, except when the scaling is not symetric. - measure : function(str, font, fwidth, fheight) { - fwidth = fwidth|0; - fheight = fheight|0; - - var fontid = FontLib.lookup(font); - var width = 0; - var ascent = 0; - var descent = 0; - for (var i = 0, l = str.length; i < l; i++) { - var ch = str.charCodeAt(i); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - ascent = Math.max(ascent, glyph.top); - descent = Math.max(descent, glyph.height - glyph.top); - - if (i == l-1) { - width += glyph.left + glyph.width; - } else { - width += glyph.advance; - } - } - return { width:width, ascent:ascent, descent:descent }; - }, - - // width and height represent the maximum bounding box the graphics will occupy. - // The dimensions are for an unrotated rendering. Adjust as necessary. - init : function(width, height) { - // Add in the effects of padding. These are always set before the - // drawing constructor is called. - var padl = opts.paddingleft; - var padr = opts.paddingright; - var padt = opts.paddingtop; - var padb = opts.paddingbottom; - var rot = opts.rotate || 'N'; - - width += padl + padr; - height += padt + padb; - - if (+opts.sizelimit && +opts.sizelimit < width * height) { - throw new Error('Image size over limit'); - } - - // Transform indexes are: x, y, w, h - switch (rot) { - // tx = w-y, ty = x - case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; - // tx = w-x, ty = h-y - case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; - // tx = y, ty = h-x - case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; - // tx = x, ty = y - default: tx0 = ty1 = 1; break; - } - - // Setup the graphics state - var swap = rot == 'L' || rot == 'R'; - gs_width = swap ? height : width; - gs_height = swap ? width : height; - gs_dx = padl; - gs_dy = padt; - gs_xymap = []; - gs_xymap.min = Infinity; + }, + + // Measure text. This and scale() are the only drawing primitives that + // are called before init(). + // + // `font` is the font name typically OCR-A or OCR-B. + // `fwidth` and `fheight` are the requested font cell size. They will + // usually be the same, except when the scaling is not symetric. + measure : function(str, font, fwidth, fheight) { + fwidth = fwidth|0; + fheight = fheight|0; + + var fontid = FontLib.lookup(font); + var width = 0; + var ascent = 0; + var descent = 0; + for (var i = 0, l = str.length; i < l; i++) { + var ch = str.charCodeAt(i); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + ascent = Math.max(ascent, glyph.top); + descent = Math.max(descent, glyph.height - glyph.top); + + if (i == l-1) { + width += glyph.left + glyph.width; + } else { + width += glyph.advance; + } + } + return { width:width, ascent:ascent, descent:descent }; + }, + + // width and height represent the maximum bounding box the graphics will occupy. + // The dimensions are for an unrotated rendering. Adjust as necessary. + init : function(width, height) { + // Add in the effects of padding. These are always set before the + // drawing constructor is called. + var padl = opts.paddingleft; + var padr = opts.paddingright; + var padt = opts.paddingtop; + var padb = opts.paddingbottom; + var rot = opts.rotate || 'N'; + + width += padl + padr; + height += padt + padb; + + if (+opts.sizelimit && +opts.sizelimit < width * height) { + throw new Error('Image size over limit'); + } + + // Transform indexes are: x, y, w, h + switch (rot) { + // tx = w-y, ty = x + case 'R': tx1 = -1; tx2 = 1; ty0 = 1; break; + // tx = w-x, ty = h-y + case 'I': tx0 = -1; tx2 = 1; ty1 = -1; ty3 = 1; break; + // tx = y, ty = h-x + case 'L': tx1 = 1; ty0 = -1; ty3 = 1; break; + // tx = x, ty = y + default: tx0 = ty1 = 1; break; + } + + // Setup the graphics state + var swap = rot == 'L' || rot == 'R'; + gs_width = swap ? height : width; + gs_height = swap ? width : height; + gs_dx = padl; + gs_dy = padt; + gs_xymap = []; + gs_xymap.min = Infinity; gs_xyclip = null; - gs_r = gs_g = gs_b = 0; - - // Get the rgba image from the constructor - var res = this.image(gs_width, gs_height); - gs_image = res.buffer; - gs_rowbyte = res.ispng ? 1 : 0; - }, - // Unconnected stroked lines are used to draw the bars in linear barcodes; - // and the border around a linear barcode (e.g. ITF-14) - // No line cap should be applied. These lines are always orthogonal. - line : function(x0, y0, x1, y1, lw, rgb) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - // Most linear barcodes, the line width will be integral. The exceptions - // are variable width barcodes (e.g. code39) and the postal 4-state codes. - lw = Math.round(lw) || 1; - - if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } - if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - // Horizontal or vertical line? - var w2 = (lw/2)|0; - if (x0 == x1) { - // Vertical line - x0 = x0 - lw + w2; // big half - x1 = x1 + w2 - 1; // small half - } else { - // Horizontal line (inverted halves) - y0 = y0 - w2; - y1 = y1 + lw - w2 - 1; - } - for (var y = y0; y <= y1; y++) { - for (var x = x0; x <= x1; x++) { - set(x, y, 255); - } - } - }, - - // Polygons are used to draw the connected regions in a 2d barcode. - // These will always be unstroked, filled, orthogonal shapes. + gs_r = gs_g = gs_b = 0; + + // Get the rgba image from the constructor + var res = this.image(gs_width, gs_height); + gs_image = res.buffer; + gs_rowbyte = res.ispng ? 1 : 0; + }, + // Unconnected stroked lines are used to draw the bars in linear barcodes; + // and the border around a linear barcode (e.g. ITF-14) + // No line cap should be applied. These lines are always orthogonal. + line : function(x0, y0, x1, y1, lw, rgb) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + // Most linear barcodes, the line width will be integral. The exceptions + // are variable width barcodes (e.g. code39) and the postal 4-state codes. + lw = Math.round(lw) || 1; + + if (y1 < y0) { var t = y0; y0 = y1; y1 = t; } + if (x1 < x0) { var t = x0; x0 = x1; x1 = t; } + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + // Horizontal or vertical line? + var w2 = (lw/2)|0; + if (x0 == x1) { + // Vertical line + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half + } else { + // Horizontal line (inverted halves) + y0 = y0 - w2; + y1 = y1 + lw - w2 - 1; + } + for (var y = y0; y <= y1; y++) { + for (var x = x0; x <= x1; x++) { + set(x, y, 255); + } + } + }, + + // Polygons are used to draw the connected regions in a 2d barcode. + // These will always be unstroked, filled, orthogonal shapes. // - // You will see a series of polygon() calls, followed by a fill(). - polygon : function(pts) { - var npts = pts.length; - for (var j = npts-1, i = 0; i < npts; j = i++) { - if (pts[j][0] == pts[i][0]) { - // Vertical lines do not get their end points. End points - // are added by the horizontal line logic. - var xj = pts[j][0]|0; // i or j, doesn't matter - var yj = pts[j][1]|0; - var yi = pts[i][1]|0; - if (yj > yi) { - for (var y = yi+1; y < yj; y++) { - addPoint(xj, y); - } - } else { - for (var y = yj+1; y < yi; y++) { - addPoint(xj, y); - } - } - } else { - var xj = pts[j][0]|0; - var xi = pts[i][0]|0; - var yj = pts[j][1]|0; // i or j, doesn't matter - - // Horizontal lines are tricky. As a rule, top lines get filled, - // bottom lines do not (similar to how left edges get filled and - // right edges do not). - // - // Where it gets complex is deciding whether the line actually - // adds edges. There are cases where a horizontal line does - // not add anything to the scanline plotting. And it doesn't - // actually matter whether the line is a top or bottom edge, - // the logic is the same. - // - // A left edge is added if the edge to its left is below. - // A right edge is added if the edge to its right is below. - if (xj < xi) { - var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge - var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge - if (yl > yj) { - addPoint(xj, yj); - } - if (yr > yj) { - addPoint(xi, yj); - } - } else { - var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge - var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge - if (yl > yj) { - addPoint(xi, yj); - } - if (yr > yj) { - addPoint(xj, yj); - } - } - } - } - }, - // An unstroked, filled hexagon used by maxicode. You can choose to fill - // each individually, or wait for the final fill(). - // - // The hexagon is drawn from the top, counter-clockwise. - // - // The X-coordinate for the top and bottom points on the hexagon is always - // .5 pixels. We draw our hexagons with a 2 pixel flat top. - // - // All other points of the polygon/hexagon are guaranteed to be integer values. - hexagon : function(pts, rgb) { - var x = pts[0][0]|0; - var y = pts[0][1]|0; - var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) - var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side - var xl = (pts[2][0])|0; // left side - var xr = (pts[4][0])|0; // right side - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - fillSegment(x, x+1, y++); - for (var k = 1; k < qh; k++) { - fillSegment(x-2*k, x+1+2*k, y++); - } - for (var k = 0; k <= vh; k++) { - fillSegment(xl, xr, y++); - } - for (var k = qh-1; k >= 1; k--) { - fillSegment(x-2*k, x+1+2*k, y++); - } - fillSegment(x, x+1, y); - }, - // An unstroked, filled ellipse. Used by dotcode and maxicode at present. - // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() - // to create the bullseye rings. dotcode issues all of its ellipses then a - // fill(). - ellipse : function(x, y, rx, ry, ccw) { - drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); - }, - // PostScript's default fill rule is non-zero but since there are never + // You will see a series of polygon() calls, followed by a fill(). + polygon : function(pts) { + var npts = pts.length; + for (var j = npts-1, i = 0; i < npts; j = i++) { + if (pts[j][0] == pts[i][0]) { + // Vertical lines do not get their end points. End points + // are added by the horizontal line logic. + var xj = pts[j][0]|0; // i or j, doesn't matter + var yj = pts[j][1]|0; + var yi = pts[i][1]|0; + if (yj > yi) { + for (var y = yi+1; y < yj; y++) { + addPoint(xj, y); + } + } else { + for (var y = yj+1; y < yi; y++) { + addPoint(xj, y); + } + } + } else { + var xj = pts[j][0]|0; + var xi = pts[i][0]|0; + var yj = pts[j][1]|0; // i or j, doesn't matter + + // Horizontal lines are tricky. As a rule, top lines get filled, + // bottom lines do not (similar to how left edges get filled and + // right edges do not). + // + // Where it gets complex is deciding whether the line actually + // adds edges. There are cases where a horizontal line does + // not add anything to the scanline plotting. And it doesn't + // actually matter whether the line is a top or bottom edge, + // the logic is the same. + // + // A left edge is added if the edge to its left is below. + // A right edge is added if the edge to its right is below. + if (xj < xi) { + var yl = pts[j == 0 ? npts-1 : j-1][1]; // left edge + var yr = pts[i == npts-1 ? 0 : i+1][1]; // right edge + if (yl > yj) { + addPoint(xj, yj); + } + if (yr > yj) { + addPoint(xi, yj); + } + } else { + var yl = pts[i == npts-1 ? 0 : i+1][1]; // left edge + var yr = pts[j == 0 ? npts-1 : j-1][1]; // right edge + if (yl > yj) { + addPoint(xi, yj); + } + if (yr > yj) { + addPoint(xj, yj); + } + } + } + } + }, + // An unstroked, filled hexagon used by maxicode. You can choose to fill + // each individually, or wait for the final fill(). + // + // The hexagon is drawn from the top, counter-clockwise. + // + // The X-coordinate for the top and bottom points on the hexagon is always + // .5 pixels. We draw our hexagons with a 2 pixel flat top. + // + // All other points of the polygon/hexagon are guaranteed to be integer values. + hexagon : function(pts, rgb) { + var x = pts[0][0]|0; + var y = pts[0][1]|0; + var qh = (pts[1][1] - pts[0][1])|0; // height of triangle (quarter height) + var vh = (pts[2][1] - pts[1][1] - 1)|0; // height of vertical side + var xl = (pts[2][0])|0; // left side + var xr = (pts[4][0])|0; // right side + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + fillSegment(x, x+1, y++); + for (var k = 1; k < qh; k++) { + fillSegment(x-2*k, x+1+2*k, y++); + } + for (var k = 0; k <= vh; k++) { + fillSegment(xl, xr, y++); + } + for (var k = qh-1; k >= 1; k--) { + fillSegment(x-2*k, x+1+2*k, y++); + } + fillSegment(x, x+1, y); + }, + // An unstroked, filled ellipse. Used by dotcode and maxicode at present. + // maxicode issues pairs of ellipse calls (one cw, one ccw) followed by a fill() + // to create the bullseye rings. dotcode issues all of its ellipses then a + // fill(). + ellipse : function(x, y, rx, ry, ccw) { + drawEllipse((x-rx)|0, (y-ry)|0, (x+rx)|0, (y+ry)|0, ccw); + }, + // PostScript's default fill rule is non-zero but since there are never // intersecting regions, we use the easier to implement even-odd. - fill : function(rgb) { - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - evenodd(); - gs_xymap = []; - gs_xymap.min = Infinity; - }, + fill : function(rgb) { + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + evenodd(); + gs_xymap = []; + gs_xymap.min = Infinity; + }, // Currently only used by swissqrcode. The `polys` area is an array of // arrays of points. Each array of points is identical to the `pts` // parameter passed to polygon(). The postscript default clipping rule, @@ -292,196 +292,196 @@ function DrawingBuiltin() { unclip : function() { gs_xyclip = null; }, - // Draw text with optional inter-character spacing. `y` is the baseline. - // font is an object with properties { name, width, height, dx } - // width and height are the font cell size. - // dx is extra space requested between characters (usually zero). - text : function(x, y, str, rgb, font) { - x = x|0; - y = y|0; - - gs_r = parseInt(rgb.substr(0,2), 16); - gs_g = parseInt(rgb.substr(2,2), 16); - gs_b = parseInt(rgb.substr(4,2), 16); - - var fontid = FontLib.lookup(font.name); - var fwidth = font.width|0; - var fheight = font.height|0; - var dx = font.dx|0; - for (var k = 0; k < str.length; k++) { - var ch = str.charCodeAt(k); - var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); - - var gt = y - glyph.top; - var gl = glyph.left; - var gw = glyph.width; - var gh = glyph.height; - var gb = glyph.bytes; - var go = glyph.offset; // offset into bytes - - for (var i = 0; i < gw; i++) { - for (var j = 0; j < gh; j++) { - var a = gb[go + j * gw + i]; - if (a) { - set(x+gl+i, gt+j, a); - } - } - } - x += glyph.advance + dx; - } - }, - // Called after all drawing is complete. - end : function() { - }, - }; - - // This code is specialized to deal with two types of RGBA buffers: - // - canvas style, which is true RGBA - // - PNG style, which has a one-byte "filter code" prefixing each row. - function set(x, y, a) { + // Draw text with optional inter-character spacing. `y` is the baseline. + // font is an object with properties { name, width, height, dx } + // width and height are the font cell size. + // dx is extra space requested between characters (usually zero). + text : function(x, y, str, rgb, font) { + x = x|0; + y = y|0; + + gs_r = parseInt(rgb.substr(0,2), 16); + gs_g = parseInt(rgb.substr(2,2), 16); + gs_b = parseInt(rgb.substr(4,2), 16); + + var fontid = FontLib.lookup(font.name); + var fwidth = font.width|0; + var fheight = font.height|0; + var dx = font.dx|0; + for (var k = 0; k < str.length; k++) { + var ch = str.charCodeAt(k); + var glyph = FontLib.getglyph(fontid, ch, fwidth, fheight); + + var gt = y - glyph.top; + var gl = glyph.left; + var gw = glyph.width; + var gh = glyph.height; + var gb = glyph.bytes; + var go = glyph.offset; // offset into bytes + + for (var i = 0; i < gw; i++) { + for (var j = 0; j < gh; j++) { + var a = gb[go + j * gw + i]; + if (a) { + set(x+gl+i, gt+j, a); + } + } + } + x += glyph.advance + dx; + } + }, + // Called after all drawing is complete. + end : function() { + }, + }; + + // This code is specialized to deal with two types of RGBA buffers: + // - canvas style, which is true RGBA + // - PNG style, which has a one-byte "filter code" prefixing each row. + function set(x, y, a) { if (gs_xyclip && clipped(x, y)) { return; } - // translate/rotate - x += gs_dx; - y += gs_dy; - var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); - var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); - - // https://en.wikipedia.org/wiki/Alpha_compositing - var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; - var dsta = gs_image[offs+3] / 255; - var srca = a / 255; - var inva = (1 - srca) * dsta; - var outa = srca + inva; - - gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; - gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; - gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; - gs_image[offs+3] = (255 * outa)|0; - } - - // Add a point on an edge to the scanline map. - function addPoint(x, y) { - if (gs_xymap.min > y) gs_xymap.min = y; - if (!gs_xymap[y]) { - gs_xymap[y] = [ x ]; - } else { - gs_xymap[y].push(x); - } - } - - function fillSegment(x0, x1, y) { - while (x0 <= x1) { - set(x0++, y, 255); - } - } - - // even-odd fill - // - // This implementation is optimized for BWIPP's simple usage. - // It is not a general purpose scanline fill. It relies heavily on - // polygon() creating the correct intersections. - function evenodd() { - var ymin = gs_xymap.min; - var ymax = gs_xymap.length-1; - - for (var y = ymin; y <= ymax; y++) { - var pts = gs_xymap[y]; - if (!pts) { - continue - } - pts.sort(function(a, b) { return a - b; }); - - var wn = false; - var xl = 0; - for (var n = 0, npts = pts.length; n < npts; n++) { - var x = pts[n]; - if (wn) { - fillSegment(xl, x-1, y); - } else { - xl = x; - } - wn = !wn; - } - } - } - - function drawEllipse(x0, y0, x1, y1, dir) { - x0 = x0|0; - y0 = y0|0; - x1 = x1|0; - y1 = y1|0; - - var a = Math.abs(x1-x0); - var b = Math.abs(y1-y0); - var b1 = b & 1; - var dx = 4*(1-a)*b*b; - var dy = 4*(b1+1)*a*a; - var err = dx + dy + b1*a*a; - var e2; - - // Left and right edges - var left = [], right = []; - left.min = right.min = Infinity; - - if (x0 > x1) { x0 = x1; x1 += a; } - if (y0 > y1) y0 = y1; - y0 += ((b+1)/2)|0; - y1 = y0 - b1; - a *= 8*a; b1 = 8*b*b; - - do { - maxedge(right, x1, y0); // 1st quadrant - minedge(left, x0, y0); // 2nd quadrant - minedge(left, x0, y1); // 3rd quadrant - maxedge(right, x1, y1); // 4th quadrant - e2 = 2*err; - if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } - if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } - } while (x0 <= x1); - - while (y0-y1 < b) { // too early stop of flat ellipse - maxedge(right, x1+1, y0); - minedge(left, x0-1, y0++); - minedge(left, x0-1, y1); - maxedge(right, x1+1, y1--); - } - - for (var y = left.min, max = left.length-1; y <= max; y++) { - addPoint(left[y], y); - } - // The points we calculated are "inside". The fill algorithm excludes - // right edges, so +1 on each x. - for (var y = right.min, max = right.length-1; y <= max; y++) { - addPoint(right[y]+1, y); - } - - function minedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey > x) { - e[y] = x; - } - } - - function maxedge(e, x, y) { - if (e.min > y) e.min = y; - var ey = e[y]; - if (ey == null || ey < x) { - e[y] = x; - } - } - } + // translate/rotate + x += gs_dx; + y += gs_dy; + var tx = tx0 * x + tx1 * y + tx2 * (gs_width-1) + tx3 * (gs_height-1); + var ty = ty0 * x + ty1 * y + ty2 * (gs_width-1) + ty3 * (gs_height-1); + + // https://en.wikipedia.org/wiki/Alpha_compositing + var offs = (ty * gs_width + tx) * 4 + (ty+1) * gs_rowbyte; + var dsta = gs_image[offs+3] / 255; + var srca = a / 255; + var inva = (1 - srca) * dsta; + var outa = srca + inva; + + gs_image[offs+0] = ((gs_r * srca + gs_image[offs+0] * inva) / outa)|0; + gs_image[offs+1] = ((gs_g * srca + gs_image[offs+1] * inva) / outa)|0; + gs_image[offs+2] = ((gs_b * srca + gs_image[offs+2] * inva) / outa)|0; + gs_image[offs+3] = (255 * outa)|0; + } + + // Add a point on an edge to the scanline map. + function addPoint(x, y) { + if (gs_xymap.min > y) gs_xymap.min = y; + if (!gs_xymap[y]) { + gs_xymap[y] = [ x ]; + } else { + gs_xymap[y].push(x); + } + } + + function fillSegment(x0, x1, y) { + while (x0 <= x1) { + set(x0++, y, 255); + } + } + + // even-odd fill + // + // This implementation is optimized for BWIPP's simple usage. + // It is not a general purpose scanline fill. It relies heavily on + // polygon() creating the correct intersections. + function evenodd() { + var ymin = gs_xymap.min; + var ymax = gs_xymap.length-1; + + for (var y = ymin; y <= ymax; y++) { + var pts = gs_xymap[y]; + if (!pts) { + continue + } + pts.sort(function(a, b) { return a - b; }); + + var wn = false; + var xl = 0; + for (var n = 0, npts = pts.length; n < npts; n++) { + var x = pts[n]; + if (wn) { + fillSegment(xl, x-1, y); + } else { + xl = x; + } + wn = !wn; + } + } + } + + function drawEllipse(x0, y0, x1, y1, dir) { + x0 = x0|0; + y0 = y0|0; + x1 = x1|0; + y1 = y1|0; + + var a = Math.abs(x1-x0); + var b = Math.abs(y1-y0); + var b1 = b & 1; + var dx = 4*(1-a)*b*b; + var dy = 4*(b1+1)*a*a; + var err = dx + dy + b1*a*a; + var e2; + + // Left and right edges + var left = [], right = []; + left.min = right.min = Infinity; + + if (x0 > x1) { x0 = x1; x1 += a; } + if (y0 > y1) y0 = y1; + y0 += ((b+1)/2)|0; + y1 = y0 - b1; + a *= 8*a; b1 = 8*b*b; + + do { + maxedge(right, x1, y0); // 1st quadrant + minedge(left, x0, y0); // 2nd quadrant + minedge(left, x0, y1); // 3rd quadrant + maxedge(right, x1, y1); // 4th quadrant + e2 = 2*err; + if (e2 >= dx) { x0++; x1--; dx += b1; err += dx; } + if (e2 <= dy) { y0++; y1--; dy += a; err += dy; } + } while (x0 <= x1); + + while (y0-y1 < b) { // too early stop of flat ellipse + maxedge(right, x1+1, y0); + minedge(left, x0-1, y0++); + minedge(left, x0-1, y1); + maxedge(right, x1+1, y1--); + } + + for (var y = left.min, max = left.length-1; y <= max; y++) { + addPoint(left[y], y); + } + // The points we calculated are "inside". The fill algorithm excludes + // right edges, so +1 on each x. + for (var y = right.min, max = right.length-1; y <= max; y++) { + addPoint(right[y]+1, y); + } + + function minedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey > x) { + e[y] = x; + } + } + + function maxedge(e, x, y) { + if (e.min > y) e.min = y; + var ey = e[y]; + if (ey == null || ey < x) { + e[y] = x; + } + } + } // Returns true if outside the clipping region. - function clipped(x, y) { + function clipped(x, y) { var pts = gs_xyclip[y]; if (!pts) { return true; } if (!pts.sorted) { - pts.sort(function(a, b) { return a - b; }); + pts.sort(function(a, b) { return a - b; }); pts.sorted = true; } @@ -494,16 +494,16 @@ function DrawingBuiltin() { return wn; } wn = !wn; - } + } return true; - } - - // Returns 1 if clockwise, -1 if ccw. - function polydir(pts) { - var xp = 0; - for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { - xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; - } - return xp > 0 ? 1 : -1; - } + } + + // Returns 1 if clockwise, -1 if ccw. + function polydir(pts) { + var xp = 0; + for (var i = 0, l = pts.length, j = l-1; i < l; j = i++) { + xp += pts[j][0] * pts[i][1] - pts[i][0] * pts[j][1]; + } + return xp > 0 ? 1 : -1; + } } diff --git a/src/drawing-canvas.js b/src/drawing-canvas.js index 7b9ff060..c3134517 100644 --- a/src/drawing-canvas.js +++ b/src/drawing-canvas.js @@ -7,13 +7,13 @@ function DrawingCanvas(canvas, maybe) { canvas = maybe; } - var img; - var ctx = canvas.getContext('2d', { willReadFrequently:true }); - var drawing = DrawingBuiltin(); + var img; + var ctx = canvas.getContext('2d', { willReadFrequently:true }); + var drawing = DrawingBuiltin(); - // Provide our specializations for the builtin drawing - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -23,32 +23,32 @@ function DrawingCanvas(canvas, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; + return drawing; - // Called by DrawingBuiltin.init() to get the ARGB bitmap for rendering. - function image(width, height) { - canvas.width = width; - canvas.height = height; + // Called by DrawingBuiltin.init() to get the ARGB bitmap for rendering. + function image(width, height) { + canvas.width = width; + canvas.height = height; - // Set background - ctx.setTransform(1, 0, 0, 1, 0, 0); - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - ctx.fillStyle = '#' + opts.backgroundcolor; - ctx.fillRect(0, 0, width, height); - } else { - ctx.clearRect(0, 0, width, height); - } + // Set background + ctx.setTransform(1, 0, 0, 1, 0, 0); + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + ctx.fillStyle = '#' + opts.backgroundcolor; + ctx.fillRect(0, 0, width, height); + } else { + ctx.clearRect(0, 0, width, height); + } - // Prepare the bitmap - img = ctx.getImageData(0, 0, width, height); + // Prepare the bitmap + img = ctx.getImageData(0, 0, width, height); - // The return value is designed for both canvas pure-RGBA and PNG RGBA - return { buffer:img.data, ispng:false }; - } + // The return value is designed for both canvas pure-RGBA and PNG RGBA + return { buffer:img.data, ispng:false }; + } - function end() { - ctx.putImageData(img, 0, 0); + function end() { + ctx.putImageData(img, 0, 0); return canvas; - } + } } diff --git a/src/drawing-svg.js b/src/drawing-svg.js index 915a111f..7d94b494 100644 --- a/src/drawing-svg.js +++ b/src/drawing-svg.js @@ -20,7 +20,7 @@ function DrawingSVG() { var svg = ''; var path; var clipid = ''; - var clips = []; + var clips = []; var lines = {}; // Magic number to approximate an ellipse/circle using 4 cubic beziers. @@ -187,8 +187,8 @@ function DrawingSVG() { fill(rgb) { if (path) { svg += path + '" fill="#' + rgb + '" fill-rule="evenodd"' + - (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + - ' />\n'; + (clipid ? ' clip-path="url(#' + clipid + ')"' : '') + + ' />\n'; path = null; } }, @@ -197,23 +197,23 @@ function DrawingSVG() { // parameter passed to polygon(). The clipping rule, like the fill rule, // defaults to non-zero winding. clip : function(polys) { - var path = ''; - clipid = "clip" + clips.length; - clips.push(path); + path += '" clip-rule="nonzero" />'; + clipid = "clip" + clips.length; + clips.push(path); }, unclip : function() { - clipid = ''; - }, + clipid = ''; + }, // Draw text with optional inter-character spacing. `y` is the baseline. // font is an object with properties { name, width, height, dx } // width and height are the font cell size. @@ -266,10 +266,8 @@ function DrawingSVG() { linesvg += lines[key] + '" />\n'; } var bg = opts.backgroundcolor; - //return '\n' + - (clips.length ? '' + clips.join('') + '' : '') + + return '\n' + + (clips.length ? '' + clips.join('') + '' : '') + (/^[0-9A-Fa-f]{6}$/.test(''+bg) ? '\n' : '') + diff --git a/src/drawing-zlibpng.js b/src/drawing-zlibpng.js index 4fc6abdf..eae9fd60 100644 --- a/src/drawing-zlibpng.js +++ b/src/drawing-zlibpng.js @@ -4,19 +4,19 @@ var PNGTYPE_PALETTE = 3; var PNGTYPE_TRUEALPHA = 6; var PNG_TEXT = "Software\0bwip-js.metafloor.com"; var PNG_CRC = (function() { - var precalc = []; - for (var i = 0; i < 256; i++) { - var c = i; - for (var j = 0; j < 8; j++) { - if (c & 1) { - c = 0xedb88320 ^ (c >>> 1); - } else { - c = c >>> 1; - } - } - precalc[i] = c; - } - return precalc; + var precalc = []; + for (var i = 0; i < 256; i++) { + var c = i; + for (var j = 0; j < 8; j++) { + if (c & 1) { + c = 0xedb88320 ^ (c >>> 1); + } else { + c = c >>> 1; + } + } + precalc[i] = c; + } + return precalc; })(); // This has been moved to the nodejs-only section of exports.js due to @@ -29,12 +29,12 @@ function DrawingZlibPng(callback, maybe) { if (maybe && typeof maybe == 'function') { callback = maybe; } - var image_buffer, image_width, image_height; + var image_buffer, image_width, image_height; - // Provide our specializations for the builtin drawing - var drawing = DrawingBuiltin(); - drawing.image = image; - drawing.end = end; + // Provide our specializations for the builtin drawing + var drawing = DrawingBuiltin(); + drawing.image = image; + drawing.end = end; // Reflect setopts() into the super var opts; @@ -44,162 +44,162 @@ function DrawingZlibPng(callback, maybe) { _setopts && _setopts.call(drawing, options); }; - return drawing; - - // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. - function image(width, height) { - // PNG RGBA buffers are prefixed with a one-byte filter type - image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) - : new Buffer(width * height * 4 + height); - image_width = width; - image_height = height; - - // Set background - if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { - var rgb = opts.backgroundcolor; - fillRGB(parseInt(rgb.substr(0,2), 16), - parseInt(rgb.substr(2,2), 16), - parseInt(rgb.substr(4,2), 16)); - } - - // The return value is designed to accommodate both canvas pure-RGBA buffers - // and PNG's row-filter prefixed RGBA buffers. - return { buffer:image_buffer, ispng:true }; - } - - function fillRGB(r, g, b) { - var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; - - // This is made complex by the filter byte that prefixes each row... - var len = image_width * 4 + 1; - var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); - for (var i = 1; i < len; i += 4) { - row.writeUInt32BE(color, i); - } - image_buffer.fill(row); - } - - function end() { - if (!callback) { - return new Promise(makePNG); - } else { - makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); - } - } - - function makePNG(resolve, reject) { - // DEFLATE the image data - var bufs = []; - var buflen = 0; - var deflator = PNG_ZLIB.createDeflate({ - chunkSize: 32 * 1024, - level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, - strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); - deflator.on('error', reject); - deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); - deflator.on('end', returnPNG); - deflator.end(image_buffer); - - function returnPNG() { - var length = 8 + 12 + 13 + // PNG Header + IHDR chunk - 12 + PNG_TEXT.length + // tEXt - 12 + buflen + // IDAT - 12; // IEND - if (opts.dpi) { - length += 12 + 9; // pHYs - } - - // Emulate a byte-stream - var png = Buffer.alloc(length); - var pngoff = 0; // running offset into the png buffer - - write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header - writeIHDR(); - writeTEXT(); - if (opts.dpi) { - writePHYS(); - } - writeIDAT(); - writeIEND(); - - // Success - resolve(png); - - function writeIHDR() { - write32(13); // chunk length - var crcoff = pngoff; - - write('IHDR'); - write32(image_width); - write32(image_height); - write8(8); // bit depth - write8(PNGTYPE_TRUEALPHA); - write8(0); // compression default - write8(0); // filter default - write8(0); // no interlace - - writeCRC(crcoff); - } - function writeTEXT() { - write32(PNG_TEXT.length); // chunk length - var crcoff = pngoff; - - write('tEXt'); - write(PNG_TEXT); - writeCRC(crcoff); - } - function writePHYS() { - write32(9); - var crcoff = pngoff; - - var pxm = ((opts.dpi || 72) / 0.0254)|0; - write('pHYs'); - write32(pxm); // x-axis - write32(pxm); // y-axis - write8(1); // px/m (the only usable option) - writeCRC(crcoff); - } - function writeIDAT() { - write32(buflen); // chunk length - var crcoff = pngoff; - - write('IDAT'); - for (var i = 0; i < bufs.length; i++) { - bufs[i].copy(png, pngoff); - pngoff += bufs[i].length; - } - writeCRC(crcoff); - } - function writeIEND() { - write32(0); // chunk length; - var crcoff = pngoff; - - write('IEND'); - writeCRC(crcoff); - } - - function write(s) { - png.write(s, pngoff, 'binary'); - pngoff += s.length; - } - function write32(v) { - png.writeUInt32BE(v, pngoff); - pngoff += 4; - } - function write16(v) { - png.writeUInt16BE(v, pngoff); - pngoff += 2; - } - function write8(v) { - png[pngoff++] = v; - } - function writeCRC(off) { - var crc = -1; - while (off < pngoff) { - crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); - } - write32((crc ^ -1) >>> 0); - } - } - } + return drawing; + + // Called by DrawingBuiltin.init() to get the RGBA image data for rendering. + function image(width, height) { + // PNG RGBA buffers are prefixed with a one-byte filter type + image_buffer = Buffer.alloc ? Buffer.alloc(width * height * 4 + height) + : new Buffer(width * height * 4 + height); + image_width = width; + image_height = height; + + // Set background + if (/^[0-9a-fA-F]{6}$/.test(''+opts.backgroundcolor)) { + var rgb = opts.backgroundcolor; + fillRGB(parseInt(rgb.substr(0,2), 16), + parseInt(rgb.substr(2,2), 16), + parseInt(rgb.substr(4,2), 16)); + } + + // The return value is designed to accommodate both canvas pure-RGBA buffers + // and PNG's row-filter prefixed RGBA buffers. + return { buffer:image_buffer, ispng:true }; + } + + function fillRGB(r, g, b) { + var color = ((r << 24) | (g << 16) | (b << 8) | 0xff) >>> 0; + + // This is made complex by the filter byte that prefixes each row... + var len = image_width * 4 + 1; + var row = Buffer.alloc ? Buffer.alloc(len) : new Buffer(len); + for (var i = 1; i < len; i += 4) { + row.writeUInt32BE(color, i); + } + image_buffer.fill(row); + } + + function end() { + if (!callback) { + return new Promise(makePNG); + } else { + makePNG(function(png) { callback(null, png); }, function(err) { callback(err); }); + } + } + + function makePNG(resolve, reject) { + // DEFLATE the image data + var bufs = []; + var buflen = 0; + var deflator = PNG_ZLIB.createDeflate({ + chunkSize: 32 * 1024, + level : PNG_ZLIB.Z_DEFAULT_COMPRESSION, + strategy: PNG_ZLIB.Z_DEFAULT_STRATEGY }); + deflator.on('error', reject); + deflator.on('data', function(data) { bufs.push(data); buflen += data.length; }); + deflator.on('end', returnPNG); + deflator.end(image_buffer); + + function returnPNG() { + var length = 8 + 12 + 13 + // PNG Header + IHDR chunk + 12 + PNG_TEXT.length + // tEXt + 12 + buflen + // IDAT + 12; // IEND + if (opts.dpi) { + length += 12 + 9; // pHYs + } + + // Emulate a byte-stream + var png = Buffer.alloc(length); + var pngoff = 0; // running offset into the png buffer + + write('\x89PNG\x0d\x0a\x1a\x0a'); // PNG file header + writeIHDR(); + writeTEXT(); + if (opts.dpi) { + writePHYS(); + } + writeIDAT(); + writeIEND(); + + // Success + resolve(png); + + function writeIHDR() { + write32(13); // chunk length + var crcoff = pngoff; + + write('IHDR'); + write32(image_width); + write32(image_height); + write8(8); // bit depth + write8(PNGTYPE_TRUEALPHA); + write8(0); // compression default + write8(0); // filter default + write8(0); // no interlace + + writeCRC(crcoff); + } + function writeTEXT() { + write32(PNG_TEXT.length); // chunk length + var crcoff = pngoff; + + write('tEXt'); + write(PNG_TEXT); + writeCRC(crcoff); + } + function writePHYS() { + write32(9); + var crcoff = pngoff; + + var pxm = ((opts.dpi || 72) / 0.0254)|0; + write('pHYs'); + write32(pxm); // x-axis + write32(pxm); // y-axis + write8(1); // px/m (the only usable option) + writeCRC(crcoff); + } + function writeIDAT() { + write32(buflen); // chunk length + var crcoff = pngoff; + + write('IDAT'); + for (var i = 0; i < bufs.length; i++) { + bufs[i].copy(png, pngoff); + pngoff += bufs[i].length; + } + writeCRC(crcoff); + } + function writeIEND() { + write32(0); // chunk length; + var crcoff = pngoff; + + write('IEND'); + writeCRC(crcoff); + } + + function write(s) { + png.write(s, pngoff, 'binary'); + pngoff += s.length; + } + function write32(v) { + png.writeUInt32BE(v, pngoff); + pngoff += 4; + } + function write16(v) { + png.writeUInt16BE(v, pngoff); + pngoff += 2; + } + function write8(v) { + png[pngoff++] = v; + } + function writeCRC(off) { + var crc = -1; + while (off < pngoff) { + crc = PNG_CRC[(crc ^ png[off++]) & 0xff] ^ (crc >>> 8); + } + write32((crc ^ -1) >>> 0); + } + } + } } diff --git a/src/exports.js b/src/exports.js index 2d6e5396..1fad6882 100644 --- a/src/exports.js +++ b/src/exports.js @@ -13,31 +13,31 @@ require('stream'); // fix for https://github.com/nodejs/node/issues/37021 // // This function is asynchronous. function Request(req, res, extra) { - var opts = url.parse(req.url, true).query; + var opts = url.parse(req.url, true).query; - // Convert boolean empty parameters to true - for (var id in opts) { - if (opts[id] === '') { - opts[id] = true; - } - } + // Convert boolean empty parameters to true + for (var id in opts) { + if (opts[id] === '') { + opts[id] = true; + } + } - // Add in server options/overrides - if (extra) { - for (var id in extra) { - opts[id] = extra[id]; - } - } + // Add in server options/overrides + if (extra) { + for (var id in extra) { + opts[id] = extra[id]; + } + } - ToBuffer(opts, function(err, png) { - if (err) { - res.writeHead(400, { 'Content-Type':'text/plain' }); - res.end('' + (err.stack || err), 'utf-8'); - } else { - res.writeHead(200, { 'Content-Type':'image/png' }); - res.end(png, 'binary'); - } - }); + ToBuffer(opts, function(err, png) { + if (err) { + res.writeHead(400, { 'Content-Type':'text/plain' }); + res.end('' + (err.stack || err), 'utf-8'); + } else { + res.writeHead(200, { 'Content-Type':'image/png' }); + res.end(png, 'binary'); + } + }); } // bwipjs.toBuffer(options[, callback]) @@ -48,10 +48,10 @@ function Request(req, res, extra) { // `options` are a bwip-js/BWIPP options object. // `callback` is an optional callback handler with prototype: // -// function callback(err, png) +// function callback(err, png) // -// `err` is an Error object or string. If `err` is set, `png` is null. -// `png` is a node Buffer containing the PNG image. +// `err` is an Error object or string. If `err` is set, `png` is null. +// `png` is a node Buffer containing the PNG image. // // If `callback` is not provided, a Promise is returned. function ToBuffer(opts, callback) { @@ -101,11 +101,11 @@ function _ToAny(encoder, opts, drawing) { // // Returns the HTMLCanvasElement. function ToCanvas(cvs, opts) { - if (typeof opts == 'string' || opts instanceof HTMLCanvasElement) { + if (typeof opts == 'string' || opts instanceof HTMLCanvasElement) { let tmp = cvs; cvs = opts; opts = tmp; - } + } return _ToAny(bwipp_lookup(opts.bcid), opts, cvs); } // Entry point for the symbol-specific exports @@ -120,7 +120,7 @@ function ToCanvas(cvs, opts) { // 'string` can be either an `id` or query selector returning a single canvas element. function _ToAny(encoder, opts, drawing) { if (typeof opts == 'string') { - var canvas = document.getElementById(opts) || document.querySelector(opts); + var canvas = document.getElementById(opts) || document.querySelector(opts); if (!(canvas instanceof HTMLCanvasElement)) { throw new Error('bwipjs: `' + opts + '`: not a canvas'); } @@ -131,16 +131,16 @@ function _ToAny(encoder, opts, drawing) { opts = drawing; drawing = DrawingCanvas(canvas); } else if (typeof drawing == 'string') { - var canvas = document.getElementById(drawing) || document.querySelector(drawing); + var canvas = document.getElementById(drawing) || document.querySelector(drawing); if (!(canvas instanceof HTMLCanvasElement)) { throw new Error('bwipjs: `' + drawing + '`: not a canvas'); } drawing = DrawingCanvas(canvas); } else if (drawing instanceof HTMLCanvasElement) { drawing = DrawingCanvas(drawing); - } else if (!drawing || typeof drawing != 'object' || !drawing.init) { + } else if (!drawing || typeof drawing != 'object' || !drawing.init) { throw new Error('bwipjs: not a canvas or drawing object'); - } + } return _Render(encoder, opts, drawing); } //@@BEGIN-REACT-NV-EXPORTS@@ @@ -155,10 +155,10 @@ import Buffer from 'react-zlib-js/buffer.js'; // `options` are a bwip-js/BWIPP options object. // `callback` is an optional callback handler with prototype: // -// function callback(err, png) +// function callback(err, png) // -// `err` is an Error object or string. If `err` is set, `png` is null. -// `png` is an object with properties: +// `err` is an Error object or string. If `err` is set, `png` is null. +// `png` is an object with properties: // `width` : The width of the image, in pixels. // `height` : The height of the image, in pixels. // `uri` : A base64 encoded data URL. @@ -257,7 +257,7 @@ function DrawingDataURL(opts, callback) { // Returns a string containing a fully qualified SVG definition, // including the natural width and height of the image, in pixels: // -// +// // ... // // @@ -267,18 +267,18 @@ function ToSVG(opts) { } function FixupOptions(opts) { - var scale = opts.scale || 2; - var scaleX = +opts.scaleX || scale; - var scaleY = +opts.scaleY || scaleX; + var scale = opts.scale || 2; + var scaleX = +opts.scaleX || scale; + var scaleY = +opts.scaleY || scaleX; - // Fix up padding. - opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); - opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); - opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); - opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); + // Fix up padding. + opts.paddingleft = padding(opts.paddingleft, opts.paddingwidth, opts.padding, scaleX); + opts.paddingright = padding(opts.paddingright, opts.paddingwidth, opts.padding, scaleX); + opts.paddingtop = padding(opts.paddingtop, opts.paddingheight, opts.padding, scaleY); + opts.paddingbottom = padding(opts.paddingbottom, opts.paddingheight, opts.padding, scaleY); - // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so - // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. + // We override BWIPP's background color functionality. If in CMYK, convert to RRGGBB so + // the drawing interface is consistent. Likewise, if in CSS-style #rgb or #rrggbb. if (opts.backgroundcolor) { var bgc = ''+opts.backgroundcolor; if (/^[0-9a-fA-F]{8}$/.test(bgc)) { @@ -306,34 +306,34 @@ function FixupOptions(opts) { } } - return opts; + return opts; - function padding(a, b, c, s) { - if (a != null) { - return a*s; - } - if (b != null) { - return b*s; - } - return c*s || 0; - } + function padding(a, b, c, s) { + if (a != null) { + return a*s; + } + if (b != null) { + return b*s; + } + return c*s || 0; + } } var BWIPJS_OPTIONS = { - bcid:1, - text:1, - scale:1, - scaleX:1, - scaleY:1, - rotate:1, - padding:1, - paddingwidth:1, - paddingheight:1, - paddingtop:1, - paddingleft:1, - paddingright:1, - paddingbottom:1, - backgroundcolor:1, + bcid:1, + text:1, + scale:1, + scaleX:1, + scaleY:1, + rotate:1, + padding:1, + paddingwidth:1, + paddingheight:1, + paddingtop:1, + paddingleft:1, + paddingright:1, + paddingbottom:1, + backgroundcolor:1, }; // bwipjs.render(options, drawing) @@ -349,56 +349,56 @@ function Render(options, drawing) { // Called by the public exports function _Render(encoder, options, drawing) { - var text = options.text; - if (!text) { - throw new ReferenceError('bwip-js: bar code text not specified.'); - } + var text = options.text; + if (!text) { + throw new ReferenceError('bwip-js: bar code text not specified.'); + } // setopts() is optional on the drawing object. FixupOptions(options); drawing.setopts && drawing.setopts(options); - // Set the bwip-js defaults - var scale = options.scale || 2; - var scaleX = +options.scaleX || scale; - var scaleY = +options.scaleY || scaleX; - var rotate = options.rotate || 'N'; + // Set the bwip-js defaults + var scale = options.scale || 2; + var scaleX = +options.scaleX || scale; + var scaleY = +options.scaleY || scaleX; + var rotate = options.rotate || 'N'; - // Create a barcode writer object. This is the interface between - // the low-level BWIPP code, the bwip-js graphics context, and the - // drawing interface. - var bw = new BWIPJS(drawing); + // Create a barcode writer object. This is the interface between + // the low-level BWIPP code, the bwip-js graphics context, and the + // drawing interface. + var bw = new BWIPJS(drawing); - // Set the BWIPP options - var bwippopts = {}; - for (var id in options) { - if (!BWIPJS_OPTIONS[id]) { - bwippopts[id] = options[id]; - } - } + // Set the BWIPP options + var bwippopts = {}; + for (var id in options) { + if (!BWIPJS_OPTIONS[id]) { + bwippopts[id] = options[id]; + } + } - // Fix a disconnect in the BWIPP rendering logic - if (bwippopts.alttext) { - bwippopts.includetext = true; - } - // We use mm rather than inches for height - except pharmacode2 height - // which is already in mm. - if (+bwippopts.height && encoder != bwipp_pharmacode2) { - bwippopts.height = bwippopts.height / 25.4 || 0.5; - } - // Likewise, width - if (+bwippopts.width) { - bwippopts.width = bwippopts.width / 25.4 || 0; - } + // Fix a disconnect in the BWIPP rendering logic + if (bwippopts.alttext) { + bwippopts.includetext = true; + } + // We use mm rather than inches for height - except pharmacode2 height + // which is already in mm. + if (+bwippopts.height && encoder != bwipp_pharmacode2) { + bwippopts.height = bwippopts.height / 25.4 || 0.5; + } + // Likewise, width + if (+bwippopts.width) { + bwippopts.width = bwippopts.width / 25.4 || 0; + } - // Scale the image - bw.scale(scaleX, scaleY); + // Scale the image + bw.scale(scaleX, scaleY); - // Call into the BWIPP cross-compiled code and render the image. + // Call into the BWIPP cross-compiled code and render the image. bwipp_encode(bw, encoder, text, bwippopts); // Returns whatever drawing.end() returns, or `false` if nothing rendered. - return bw.render(); + return bw.render(); } // bwipjs.raw(options) @@ -410,46 +410,46 @@ function _Render(encoder, options, drawing) { // // Browser and nodejs usage. function ToRaw(bcid, text, options) { - if (arguments.length == 1) { - options = bcid; - bcid = options.bcid; - text = options.text; - } + if (arguments.length == 1) { + options = bcid; + bcid = options.bcid; + text = options.text; + } - // The drawing interface is just needed for the pre-init() calls. + // The drawing interface is just needed for the pre-init() calls. // Don't need to fixup the options - drawing specific. var drawing = DrawingBuiltin(); drawing.setopts(options); - var bw = new BWIPJS(drawing); - var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); + var bw = new BWIPJS(drawing); + var stack = bwipp_encode(bw, bwipp_lookup(bcid), text, options, true); - // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps - // are not a typical/expected return value. Convert to plain-old-objects. - var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; - for (var i = 0; i < stack.length; i++) { - var elt = stack[i]; - if (elt instanceof Map) { - var obj = {}; - // Could they make Maps any harder to iterate over??? - for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { - var id = keys.next().value; - if (ids[id]) { - var val = elt.get(id); - if (val instanceof Array) { - // The postscript arrays have extra named properties - // to emulate array views. Return cleaned up arrays. - obj[id] = val.b.slice(val.o, val.o + val.length); - } else { - obj[id] = val; - } - } - } - stack[i] = obj; - } else { - // This should never exec... - stack.splice(i--, 1); - } - } - return stack; + // bwip-js uses Maps to emulate PostScript dictionary objects; but Maps + // are not a typical/expected return value. Convert to plain-old-objects. + var ids = { pixs:1, pixx:1, pixy:1, sbs:1, bbs:1, bhs:1, width:1, height:1 }; + for (var i = 0; i < stack.length; i++) { + var elt = stack[i]; + if (elt instanceof Map) { + var obj = {}; + // Could they make Maps any harder to iterate over??? + for (var keys = elt.keys(), size = elt.size, k = 0; k < size; k++) { + var id = keys.next().value; + if (ids[id]) { + var val = elt.get(id); + if (val instanceof Array) { + // The postscript arrays have extra named properties + // to emulate array views. Return cleaned up arrays. + obj[id] = val.b.slice(val.o, val.o + val.length); + } else { + obj[id] = val; + } + } + } + stack[i] = obj; + } else { + // This should never exec... + stack.splice(i--, 1); + } + } + return stack; } diff --git a/src/stb_truetype.js b/src/stb_truetype.js index 6655a634..3b7b7b0d 100644 --- a/src/stb_truetype.js +++ b/src/stb_truetype.js @@ -4,7 +4,7 @@ // // This file is part of the bwip-js project available at: // -// http://metafloor.github.io/bwip-js +// http://metafloor.github.io/bwip-js // // Copyright (c) 2019 Mark Warren : MIT LICENSE @@ -33,26 +33,26 @@ var STBTT = (function () { -var STBTT_vmove = 1, - STBTT_vline = 2, - STBTT_vcurve = 3, - STBTT_vcubic = 4, +var STBTT_vmove = 1, + STBTT_vline = 2, + STBTT_vcurve = 3, + STBTT_vcubic = 4, - STBTT_PLATFORM_ID_UNICODE = 0, - STBTT_PLATFORM_ID_MAC = 1, - STBTT_PLATFORM_ID_ISO = 2, - STBTT_PLATFORM_ID_MICROSOFT = 3, + STBTT_PLATFORM_ID_UNICODE = 0, + STBTT_PLATFORM_ID_MAC = 1, + STBTT_PLATFORM_ID_ISO = 2, + STBTT_PLATFORM_ID_MICROSOFT = 3, - STBTT_UNICODE_EID_UNICODE_1_0 = 0, - STBTT_UNICODE_EID_UNICODE_1_1 = 1, - STBTT_UNICODE_EID_ISO_10646 = 2, - STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, - STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, + STBTT_UNICODE_EID_UNICODE_1_0 = 0, + STBTT_UNICODE_EID_UNICODE_1_1 = 1, + STBTT_UNICODE_EID_ISO_10646 = 2, + STBTT_UNICODE_EID_UNICODE_2_0_BMP = 3, + STBTT_UNICODE_EID_UNICODE_2_0_FULL = 4, - STBTT_MS_EID_SYMBOL = 0, - STBTT_MS_EID_UNICODE_BMP = 1, - STBTT_MS_EID_SHIFTJIS = 2, - STBTT_MS_EID_UNICODE_FULL = 10; + STBTT_MS_EID_SYMBOL = 0, + STBTT_MS_EID_UNICODE_BMP = 1, + STBTT_MS_EID_SHIFTJIS = 2, + STBTT_MS_EID_UNICODE_FULL = 10; var floor = Math.floor; var ceil = Math.ceil; @@ -61,11 +61,11 @@ var abs = Math.abs; // Allocate an array of objects - replaces malloc(sizeof struct * n) function oalloc(n) { - var o = []; - for (var i = 0; i < n; i++) { - o.push({}); - } - return o; + var o = []; + for (var i = 0; i < n; i++) { + o.push({}); + } + return o; } //static unsigned char stbtt__buf_get8(stbtt__buf * b) @@ -101,7 +101,7 @@ function stbtt__buf_get(b, n) { // for a NULL buffer. The for real usage, the code is inlined. //static stbtt__buf stbtt__new_buf(const void *p, int size) function stbtt__null_buf() { - return { length:0 }; + return { length:0 }; } //static stbtt__buf stbtt__buf_range(const stbtt__buf * b, int o, int s) @@ -109,9 +109,9 @@ function stbtt__buf_range(b, o, s) { if (o < 0 || s < 0 || o > b.length || s > b.length - o) { return stbtt__null_buf(); } - var r = b.subarray(o, o + s); - r.cursor = 0; - return r; + var r = b.subarray(o, o + s); + r.cursor = 0; + return r; } //static stbtt__buf stbtt__cff_get_index(stbtt__buf * b) @@ -192,7 +192,7 @@ function stbtt__dict_get_int(b, key, out) { if (operands.cursor < operands.length) { out = stbtt__cff_int(operands); } - return out; + return out; } //static int stbtt__cff_index_count(stbtt__buf * b) @@ -215,7 +215,7 @@ function stbtt__cff_index_get(b, i) { // Convert sign-extend a 16-bit integer to JS number function INT16(n) { - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned short ttUSHORT(unsigned char *p) @@ -226,7 +226,7 @@ function ttUSHORT(b, o) { //static short ttSHORT(unsigned char *p) function ttSHORT(b, o) { var n = b[o] * 256 + b[o+1]; - return n & 0x8000 ? (0xffff0000|n)>>0 : n; + return n & 0x8000 ? (0xffff0000|n)>>0 : n; } //static unsigned int ttULONG(unsigned char *p) @@ -271,13 +271,13 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fontstart = fontstart; info.cff = stbtt__null_buf(); - cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" - info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" - info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" - info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" - info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" - info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" - info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" + cmap = stbtt__find_table(data, fontstart, [ 99, 109, 97, 112 ]); //"cmap" + info.loca = stbtt__find_table(data, fontstart, [ 108, 111, 99, 97 ]); //"loca" + info.head = stbtt__find_table(data, fontstart, [ 104, 101, 97, 100 ]); //"head" + info.glyf = stbtt__find_table(data, fontstart, [ 103, 108, 121, 102 ]); //"glyf" + info.hhea = stbtt__find_table(data, fontstart, [ 104, 104, 101, 97 ]); //"hhea" + info.hmtx = stbtt__find_table(data, fontstart, [ 104, 109, 116, 120 ]); //"hmtx" + info.kern = stbtt__find_table(data, fontstart, [ 107, 101, 114, 110 ]); //"kern" if (!cmap || !info.head || !info.hhea || !info.hmtx) { return 0; @@ -288,9 +288,9 @@ function stbtt_InitFont_internal(info, data, fontstart) { } } else { var b, topdict, topdictidx, cff, - cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; + cstype = 2, charstrings = 0, fdarrayoff = 0, fdselectoff = 0; - cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " + cff = stbtt__find_table(data, fontstart, [ 67, 70, 70, 32 ]); //"CFF " if (!cff) { return 0; } @@ -299,7 +299,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.fdselect = stbtt__null_buf(); info.cff = data.subarray(cff); //stbtt__new_buf(data + cff, 512 * 1024 * 1024); - info.cff.cursor = 0; + info.cff.cursor = 0; b = info.cff; stbtt__buf_skip(b, 2); @@ -337,7 +337,7 @@ function stbtt_InitFont_internal(info, data, fontstart) { info.charstrings = stbtt__cff_get_index(b); } - t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" + t = stbtt__find_table(data, fontstart, [ 109, 97, 120, 112 ]); //"maxp" if (t) { info.numGlyphs = ttUSHORT(data, t + 4); } @@ -381,14 +381,14 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var bytes = ttUSHORT(data, index_map + 2); if (unicode_codepoint < bytes - 6) { return data[index_map + 6 + unicode_codepoint]; - } + } return 0; } else if (format == 6) { var first = ttUSHORT(data, index_map + 6), count = ttUSHORT(data, index_map + 8); if (unicode_codepoint >= first && unicode_codepoint < first + count) { return ttUSHORT(data, index_map + 10 + (unicode_codepoint - first) * 2); - } + } return 0; } else if (format == 2) { return 0; @@ -397,7 +397,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { searchRange = ttUSHORT(data, index_map + 8) >> 1, entrySelector = ttUSHORT(data, index_map + 10), rangeShift = ttUSHORT(data, index_map + 12) >> 1, - endCount = index_map + 14, + endCount = index_map + 14, search = endCount; if (unicode_codepoint > 0xffff) { @@ -419,22 +419,22 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { } search += 2; - var offset, start, item = (search - endCount) >>> 1; + var offset, start, item = (search - endCount) >>> 1; - start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); - if (unicode_codepoint < start) { - return 0; - } + start = ttUSHORT(data, index_map + 14 + segcount * 2 + 2 + 2 * item); + if (unicode_codepoint < start) { + return 0; + } - offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); - if (offset == 0) { - return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); - } - return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + - index_map + 14 + segcount * 6 + 2 + 2 * item); + offset = ttUSHORT(data, index_map + 14 + segcount * 6 + 2 + 2 * item); + if (offset == 0) { + return unicode_codepoint + ttSHORT(data, index_map + 14 + segcount * 4 + 2 + 2 * item); + } + return ttUSHORT(data, offset + (unicode_codepoint - start) * 2 + + index_map + 14 + segcount * 6 + 2 + 2 * item); } else if (format == 12 || format == 13) { var ngroups = ttULONG(data, index_map + 12), - low = 0, high = ngroups; + low = 0, high = ngroups; while (low < high) { var mid = low + ((high - low) >> 1); var start_char = ttULONG(data, index_map + 16 + mid * 12); @@ -447,7 +447,7 @@ function stbtt_FindGlyphIndex(info, unicode_codepoint) { var start_glyph = ttULONG(data, index_map + 16 + mid * 12 + 8); if (format == 12) { return start_glyph + unicode_codepoint - start_char; - } else { + } else { return start_glyph; } } @@ -496,10 +496,10 @@ function stbtt_GetGlyphBox(info, glyph_index, out) { if (g < 0) { return 0; } - out.x0 = ttSHORT(info.data, g + 2); - out.y0 = ttSHORT(info.data, g + 4); - out.x1 = ttSHORT(info.data, g + 6); - out.y1 = ttSHORT(info.data, g + 8); + out.x0 = ttSHORT(info.data, g + 2); + out.y0 = ttSHORT(info.data, g + 4); + out.x1 = ttSHORT(info.data, g + 6); + out.y1 = ttSHORT(info.data, g + 8); } return 1; } @@ -511,14 +511,14 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + scx) >> 1, (cy + scy) >> 1, cx, cy); - } + } stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, scx, scy); } else { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, sx, sy, cx, cy); - } else { + } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, sx, sy, 0, 0); - } + } } return num_vertices; } @@ -526,22 +526,22 @@ function stbtt__close_shape(vertices, num_vertices, was_off, start_off, sx, sy, //static int stbtt__GetGlyphShapeTT(const stbtt_fontinfo * info, int glyph_index, stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeTT(info, glyph_index) { var data = info.data, - g = stbtt__GetGlyfOffset(info, glyph_index); + g = stbtt__GetGlyfOffset(info, glyph_index); - if (g < 0) { + if (g < 0) { return null; } - var vertices = []; + var vertices = []; var numberOfContours = ttSHORT(data, g); if (numberOfContours > 0) { var flags = 0, flagcount, - i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, - x, y, cx, cy, sx, sy, scx, scy; + i, j = 0, m, n, next_move, was_off = 0, off, start_off = 0, + x, y, cx, cy, sx, sy, scx, scy; var endPtsOfContours = g + 10; var ins = ttUSHORT(data, g + 10 + numberOfContours * 2); var points = data.subarray(g + 10 + numberOfContours * 2 + 2 + ins); - var ptsoff = 0; + var ptsoff = 0; n = 1 + ttUSHORT(data, endPtsOfContours + numberOfContours * 2 - 2); m = n + 2 * numberOfContours; @@ -603,8 +603,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (next_move == i) { if (i != 0) { num_vertices = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); - } + sx, sy, scx, scy, cx, cy); + } start_off = !(flags & 1); if (start_off) { scx = x; @@ -630,7 +630,7 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (was_off) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, (cx + x) >> 1, (cy + y) >> 1, cx, cy); - } + } cx = x; cy = y; was_off = 1; @@ -639,13 +639,13 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { stbtt_setvertex(vertices[num_vertices++], STBTT_vcurve, x, y, cx, cy); } else { stbtt_setvertex(vertices[num_vertices++], STBTT_vline, x, y, 0, 0); - } + } was_off = 0; } } } vertices.length = stbtt__close_shape(vertices, num_vertices, was_off, start_off, - sx, sy, scx, scy, cx, cy); + sx, sy, scx, scy, cx, cy); } else if (numberOfContours == -1) { var more = 1; var comp = g + 10; @@ -697,8 +697,8 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { if (comp_verts.length > 0) { for (var i = 0, l = comp_verts.length; i < l; ++i) { var v = comp_verts[i], x, y; - x = v.x; - y = v.y; + x = v.x; + y = v.y; v.x = floor(m * (mtx[0] * x + mtx[2] * y + mtx[4])); v.y = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); x = v.cx; @@ -707,16 +707,16 @@ function stbtt__GetGlyphShapeTT(info, glyph_index) { v.cy = floor(n * (mtx[1] * x + mtx[3] * y + mtx[5])); } - vertices = vertices.concat(comp_verts); + vertices = vertices.concat(comp_verts); } more = flags & (1 << 5); } } - //console.log('vertices(' + vertices.length + ')'); - //for (var i = 0; i < vertices.length; i++) { - // var pt = vertices[i]; - // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); - //} + //console.log('vertices(' + vertices.length + ')'); + //for (var i = 0; i < vertices.length; i++) { + // var pt = vertices[i]; + // console.log(`${i}: ${pt.x},${pt.y} / ${pt.cx},${pt.cy} / ${pt.type}`); + //} return vertices; } @@ -740,23 +740,23 @@ function stbtt__track_vertex(c, x, y) { //static void stbtt__csctx_v(stbtt__csctx * c, unsigned char type, int x, int y, int cx, int cy, int cx1, int cy1) function stbtt__csctx_v(c, type, x, y, cx, cy, cx1, cy1) { - stbtt__track_vertex(c, x, y); - if (type == STBTT_vcubic) { - stbtt__track_vertex(c, cx, cy); - stbtt__track_vertex(c, cx1, cy1); - } - var v = {}; - stbtt_setvertex(v, type, x, y, cx, cy); - v.cx1 = cx1; - v.cy1 = cy1; - c.vertices.push(v); + stbtt__track_vertex(c, x, y); + if (type == STBTT_vcubic) { + stbtt__track_vertex(c, cx, cy); + stbtt__track_vertex(c, cx1, cy1); + } + var v = {}; + stbtt_setvertex(v, type, x, y, cx, cy); + v.cx1 = cx1; + v.cy1 = cy1; + c.vertices.push(v); } //static void stbtt__csctx_close_shape(stbtt__csctx * ctx) function stbtt__csctx_close_shape(ctx) { if (ctx.first_x != ctx.x || ctx.first_y != ctx.y) { stbtt__csctx_v(ctx, STBTT_vline, ctx.first_x, ctx.first_y, 0, 0, 0, 0); - } + } } //static void stbtt__csctx_rmove_to(stbtt__csctx * ctx, float dx, float dy) @@ -775,12 +775,12 @@ function stbtt__csctx_rline_to(ctx, dx, dy) { } //static void stbtt__csctx_rccurve_to(stbtt__csctx * ctx, float dx1, float dy1, float dx2, -// float dy2, float dx3, float dy3) +// float dy2, float dx3, float dy3) function stbtt__csctx_rccurve_to(ctx, dx1, dy1, dx2, dy2, dx3, dy3) { var cx1 = ctx.x + dx1, - cy1 = ctx.y + dy1, - cx2 = cx1 + dx2, - cy2 = cy1 + dy2; + cy1 = ctx.y + dy1, + cx2 = cx1 + dx2, + cy2 = cy1 + dy2; ctx.x = cx2 + dx3; ctx.y = cy2 + dy3; stbtt__csctx_v(ctx, STBTT_vcubic, ctx.x, ctx.y, cx1, cy1, cx2, cy2); @@ -832,11 +832,11 @@ function stbtt__cid_get_glyph_subrs(info, glyph_index) { } //static int stbtt__run_charstring(const stbtt_fontinfo * info, int glyph_index, -// stbtt__csctx * c) +// stbtt__csctx * c) function stbtt__run_charstring(info, glyph_index, c) { var in_header = 1, maskbits = 0, subr_stack_height = 0, sp = 0, v, i, b0, - has_subrs = 0, clear_stack, - s = [], subr_stack = [], subrs = info.subrs, b, f; + has_subrs = 0, clear_stack, + s = [], subr_stack = [], subrs = info.subrs, b, f; b = stbtt__cff_index_get(info.charstrings, glyph_index); while (b.cursor < b.length) { @@ -895,7 +895,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 1) { return 0; } - for (;;) { + for (;;) { if (i >= sp) { break; } @@ -906,8 +906,8 @@ function stbtt__run_charstring(info, glyph_index, c) { } stbtt__csctx_rline_to(c, s[i], 0); i++; - } - break; + } + break; case 0x06: if (sp < 1) { return 0; @@ -930,7 +930,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (sp < 4) { return 0; } - for (;;) { + for (;;) { if (i + 3 >= sp) { break; } @@ -945,8 +945,8 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 2], s[i + 3], (sp - i == 5) ? s[i + 4] : 0.0); i += 4; - } - break; + } + break; case 0x1E: if (sp < 4) { return 0; @@ -977,7 +977,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } break; case 0x18: @@ -988,7 +988,7 @@ function stbtt__run_charstring(info, glyph_index, c) { stbtt__csctx_rccurve_to(c, s[i], s[i + 1], s[i + 2], s[i + 3], s[i + 4], s[i + 5]); - } + } if (i + 1 >= sp) { return 0; } @@ -1030,7 +1030,7 @@ function stbtt__run_charstring(info, glyph_index, c) { s[i + 1], s[i + 2], 0.0, s[i + 3]); - } + } f = 0.0; } break; @@ -1039,7 +1039,7 @@ function stbtt__run_charstring(info, glyph_index, c) { if (!has_subrs) { if (info.fdselect.length) { subrs = stbtt__cid_get_glyph_subrs(info, glyph_index); - } + } has_subrs = 1; } @@ -1074,7 +1074,7 @@ function stbtt__run_charstring(info, glyph_index, c) { case 0x0C: var dx1, dx2, dx3, dx4, dx5, dx6, dy1, dy2, dy3, dy4, dy5, dy6, - dx, dy, b1 = stbtt__buf_get8(b); + dx, dy, b1 = stbtt__buf_get8(b); switch (b1) { case 0x22: if (sp < 7) { @@ -1158,7 +1158,7 @@ function stbtt__run_charstring(info, glyph_index, c) { default: return 0; } - break; + break; default: if (b0 != 255 && b0 != 28 && (b0 < 32 || b0 > 254)) { @@ -1187,18 +1187,18 @@ function stbtt__run_charstring(info, glyph_index, c) { } function stbtt__csctx_init() { - return { started:0, first_x:0, first_y:0, x:0, y:0, - min_x:0, max_x:0, min_y:0, max_y:0, - vertices:[] - }; + return { started:0, first_x:0, first_y:0, x:0, y:0, + min_x:0, max_x:0, min_y:0, max_y:0, + vertices:[] + }; } //static int stbtt__GetGlyphShapeT2(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt__GetGlyphShapeT2(info, glyph_index) { var output_ctx = stbtt__csctx_init(); if (stbtt__run_charstring(info, glyph_index, output_ctx)) { - return output_ctx.vertices; + return output_ctx.vertices; } return null; } @@ -1208,15 +1208,15 @@ function stbtt__GetGlyphShapeT2(info, glyph_index) { function stbtt__GetGlyphInfoT2(info, glyph_index, out) { var c = stbtt__csctx_init(); var r = stbtt__run_charstring(info, glyph_index, c); - out.x0 = r ? c.min_x : 0; - out.y0 = r ? c.min_y : 0; - out.x1 = r ? c.max_x : 0; - out.y1 = r ? c.max_y : 0; + out.x0 = r ? c.min_x : 0; + out.y0 = r ? c.min_y : 0; + out.x1 = r ? c.max_x : 0; + out.y1 = r ? c.max_y : 0; return r && c.vertices ? c.vertices.length : 0; } //extern int stbtt_GetGlyphShape(const stbtt_fontinfo * info, int glyph_index, -// stbtt_vertex ** pvertices) +// stbtt_vertex ** pvertices) function stbtt_GetGlyphShape(info, glyph_index) { if (!info.cff.length) { return stbtt__GetGlyphShapeTT(info, glyph_index); @@ -1230,16 +1230,16 @@ function stbtt_GetGlyphShape(info, glyph_index) { function stbtt_GetGlyphHMetrics(info, glyph_index) { var numOfLongHorMetrics = ttUSHORT(info.data, info.hhea + 34); if (glyph_index < numOfLongHorMetrics) { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * glyph_index), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * glyph_index + 2) + }; } else { - return { - advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), - leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + - 2 * (glyph_index - numOfLongHorMetrics)) - }; + return { + advanceWidth: ttSHORT(info.data, info.hmtx + 4 * (numOfLongHorMetrics - 1)), + leftSideBearing:ttSHORT(info.data, info.hmtx + 4 * numOfLongHorMetrics + + 2 * (glyph_index - numOfLongHorMetrics)) + }; } } @@ -1251,27 +1251,27 @@ function stbtt_GetCodepointHMetrics(info, codepoint) { //extern void stbtt_GetFontVMetrics(const stbtt_fontinfo * info, int *ascent, int *descent, int *lineGap) function stbtt_GetFontVMetrics(info) { - return { - ascent: ttSHORT(info.data, info.hhea + 4), + return { + ascent: ttSHORT(info.data, info.hhea + 4), descent:ttSHORT(info.data, info.hhea + 6), linegap:ttSHORT(info.data, info.hhea + 8), - }; + }; } //extern void stbtt_GetGlyphBitmapBoxSubpixel(const stbtt_fontinfo * font, int glyph, // float scale_x, float scale_y, float shift_x, float shift_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, shift_y) { var tmp = {}; if (!stbtt_GetGlyphBox(font, glyph, tmp)) { - return { x0:0, y0:0, x1:0, y1:0 }; + return { x0:0, y0:0, x1:0, y1:0 }; } - return { - x0:floor(tmp.x0 * scale_x + shift_x), - y0:floor(-tmp.y1 * scale_y + shift_y), - x1:ceil(tmp.x1 * scale_x + shift_x), - y1:ceil(-tmp.y0 * scale_y + shift_y), - }; + return { + x0:floor(tmp.x0 * scale_x + shift_x), + y0:floor(-tmp.y1 * scale_y + shift_y), + x1:ceil(tmp.x1 * scale_x + shift_x), + y1:ceil(-tmp.y0 * scale_y + shift_y), + }; } //extern void stbtt_GetCodepointBitmapBoxSubpixel(const stbtt_fontinfo * font, @@ -1279,11 +1279,11 @@ function stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, shift_x, // float shift_y, int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, shift_x, shift_y) { return stbtt_GetGlyphBitmapBoxSubpixel(font, stbtt_FindGlyphIndex(font, codepoint), - scale_x, scale_y, shift_x, shift_y); + scale_x, scale_y, shift_x, shift_y); } -//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, -// int *ix0, int *iy0, int *ix1, int *iy1) +//extern void stbtt_GetCodepointBitmapBox(const stbtt_fontinfo * font, int codepoint, float scale_x, float scale_y, +// int *ix0, int *iy0, int *ix1, int *iy1) function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { return stbtt_GetCodepointBitmapBoxSubpixel(font, codepoint, scale_x, scale_y, 0, 0); } @@ -1291,21 +1291,21 @@ function stbtt_GetCodepointBitmapBox(font, codepoint, scale_x, scale_y) { //static stbtt__active_edge *stbtt__new_active(stbtt__hheap * hh, stbtt__edge * e, int off_x, float start_point, void *userdata) function stbtt__new_active(e, off_x, start_point) { var dxdy = (e.x1 - e.x0) / (e.y1 - e.y0); - return { - fdx:dxdy, - fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, - fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), - direction:e.invert ? 1.0 : -1.0, - sy:e.y0, - ey:e.y1, - next:0, + return { + fdx:dxdy, + fdy:dxdy != 0.0 ? (1.0 / dxdy) : 0.0, + fx:(e.x0 + dxdy * (start_point - e.y0)) - (off_x|0), + direction:e.invert ? 1.0 : -1.0, + sy:e.y0, + ey:e.y1, + next:0, }; } //static void stbtt__handle_clipped_edge(float *scanline, int x, stbtt__active_edge * e, // float x0, float y0, float x1, float y1) function stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1) { - x = x|0; + x = x|0; if (y0 == y1) { return; } @@ -1352,11 +1352,11 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { } } else { var x0 = e.fx, - dx = e.fdx, - xb = x0 + dx, - x_top, x_bottom, - sy0, sy1, - dy = e.fdy; + dx = e.fdx, + xb = x0 + dx, + x_top, x_bottom, + sy0, sy1, + dy = e.fdy; if (e.sy > y_top) { x_top = x0 + dx * (e.sy - y_top); @@ -1376,7 +1376,7 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { if (x_top >= 0 && x_bottom >= 0 && x_top < len && x_bottom < len) { if ((x_top|0) == (x_bottom|0)) { var height = sy1 - sy0, - x = x_top|0; + x = x_top|0; scanline[x] += e.direction * (1 - ((x_top - x) + (x_bottom - x)) / 2) * height; scanline_fill[x+1] += e.direction * height; } else { @@ -1407,18 +1407,18 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { y_crossing += dy * (x2 - (x1 + 1)); scanline[x2] += area + sign * (1 - ((x2 - x2) + (x_bottom - x2)) / 2) * - (sy1 - y_crossing); + (sy1 - y_crossing); scanline_fill[x2+1] += sign * (sy1 - sy0); } } else { for (var x = 0; x < len; ++x) { var y0 = y_top, - x1 = x, - x2 = x + 1, - x3 = xb, - y3 = y_bottom, - y1 = (x - x0) / dx + y_top, - y2 = (x + 1 - x0) / dx + y_top; + x1 = x, + x2 = x + 1, + x3 = xb, + y3 = y_bottom, + y1 = (x - x0) / dx + y_top, + y2 = (x + 1 - x0) / dx + y_top; if (x0 < x1 && x3 > x2) { stbtt__handle_clipped_edge(scanline, x, e, x0, y0, x1, y1); @@ -1453,55 +1453,55 @@ function stbtt__fill_active_edges_new(scanline, scanline_fill, len, e, y_top) { //static void stbtt__rasterize_sorted_edges(stbtt__bitmap * result, stbtt__edge * e, int n, // int vsubsample, int off_x, int off_y, void *userdata) function stbtt__rasterize_sorted_edges(result, edges, nedges, vsubsample, off_x, off_y) { - vsubsample |= 0, off_x |= 0, off_y |= 0; + vsubsample |= 0, off_x |= 0, off_y |= 0; var active = null, z; var y = off_y, j = 0, i; var scanline = new Float32Array(result.w * 2 + 1); var scanline2 = scanline.subarray(result.w); - var eoff = 0; + var eoff = 0; edges[nedges].y0 = off_y + result.h + 1; while (j < result.h) { var scan_y_top = y + 0.0, - scan_y_bottom = y + 1.0, - step = active; + scan_y_bottom = y + 1.0, + step = active; - // F'ing IE - if (scanline.fill) { scanline.fill(0); } - else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } + // F'ing IE + if (scanline.fill) { scanline.fill(0); } + else { for (var $i = 0, $l = scanline.length; $i < $l; $i++) scanline[$i] = 0; } while (step) { z = step; - step = z.next; + step = z.next; if (z.ey <= scan_y_top) { z.direction = 0; } else { - } + } } while (edges[eoff].y0 <= scan_y_bottom) { if (edges[eoff].y0 != edges[eoff].y1) { z = stbtt__new_active(edges[eoff], off_x, scan_y_top); - z.next = active; - active = z; + z.next = active; + active = z; } ++eoff; } if (active) { - // C implementation passed scanline2+1. See function for details. + // C implementation passed scanline2+1. See function for details. stbtt__fill_active_edges_new(scanline, scanline2, result.w, active, scan_y_top); - } - for (var i = 0, sum = 0; i < result.w; ++i) { - var k, m; - sum += scanline2[i]; - k = scanline[i] + sum; - k = abs(k) * 255 + 0.5; - m = k>>>0; - if (m > 255) { - m = 255; - } - result.pixels[j * result.stride + i] = m; + } + for (var i = 0, sum = 0; i < result.w; ++i) { + var k, m; + sum += scanline2[i]; + k = scanline[i] + sum; + k = abs(k) * 255 + 0.5; + m = k>>>0; + if (m > 255) { + m = 255; + } + result.pixels[j * result.stride + i] = m; } step = active; @@ -1534,9 +1534,9 @@ function stbtt__sort_edges_ins_sort(p, n) { function stbtt__sort_edges_quicksort(p, o, n) { while (n > 12) { var t, c, i, j, z, - m = n >> 1, - c01 = p[o].y0 < p[o+m].y0, - c12 = p[o+m].y0 < p[o+n-1].y0; + m = n >> 1, + c01 = p[o].y0 < p[o+m].y0, + c12 = p[o+m].y0 < p[o+n-1].y0; if (c01 != c12) { c = p[o].y0 < p[o+n-11].y0; @@ -1591,8 +1591,8 @@ function stbtt__sort_edges(p, n) { // void *userdata) function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_y, off_x, off_y, invert) { var y_scale_inv = invert ? -scale_y : scale_y, - e, n, i, j, k, m, - vsubsample = 1; + e, n, i, j, k, m, + vsubsample = 1; n = 0; for (i = 0; i < wcount.length; ++i) { @@ -1634,9 +1634,9 @@ function stbtt__rasterize(result, pts, wcount, scale_x, scale_y, shift_x, shift_ // float objspace_flatness_squared, int n) function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatness_squared, n) { var mx = (x0 + 2 * x1 + x2) / 4, - my = (y0 + 2 * y1 + y2) / 4, - dx = (x0 + x2) / 2 - mx, - dy = (y0 + y2) / 2 - my; + my = (y0 + 2 * y1 + y2) / 4, + dx = (x0 + x2) / 2 - mx, + dy = (y0 + y2) / 2 - my; if (n > 16) { return 1; } @@ -1646,7 +1646,7 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes stbtt__tesselate_curve(points, mx, my, (x1 + x2) / 2.0, (y1 + y2) / 2.0, x2, y2, objspace_flatness_squared, n + 1); } else { - points.push({ x:x2, y:y2 }); + points.push({ x:x2, y:y2 }); } return 1; } @@ -1656,42 +1656,42 @@ function stbtt__tesselate_curve(points, x0, y0, x1, y1, x2, y2, objspace_flatnes // float x3, float y3, float objspace_flatness_squared, int n) function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace_flatness_squared, n) { var dx0 = x1 - x0, - dy0 = y1 - y0, - dx1 = x2 - x1, - dy1 = y2 - y1, - dx2 = x3 - x2, - dy2 = y3 - y2, - dx = x3 - x0, - dy = y3 - y0, - longlen = sqrt(dx0 * dx0 + dy0 * dy0) + - sqrt(dx1 * dx1 + dy1 * dy1) + + dy0 = y1 - y0, + dx1 = x2 - x1, + dy1 = y2 - y1, + dx2 = x3 - x2, + dy2 = y3 - y2, + dx = x3 - x0, + dy = y3 - y0, + longlen = sqrt(dx0 * dx0 + dy0 * dy0) + + sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2), - shortlen = sqrt(dx * dx + dy * dy), - flatness_squared = longlen * longlen - shortlen * shortlen; + shortlen = sqrt(dx * dx + dy * dy), + flatness_squared = longlen * longlen - shortlen * shortlen; if (n > 16) { return; } if (flatness_squared > objspace_flatness_squared) { var x01 = (x0 + x1) / 2, - y01 = (y0 + y1) / 2, - x12 = (x1 + x2) / 2, - y12 = (y1 + y2) / 2, - x23 = (x2 + x3) / 2, - y23 = (y2 + y3) / 2, - xa = (x01 + x12) / 2, - ya = (y01 + y12) / 2, - xb = (x12 + x23) / 2, - yb = (y12 + y23) / 2, - mx = (xa + xb) / 2, - my = (ya + yb) / 2; + y01 = (y0 + y1) / 2, + x12 = (x1 + x2) / 2, + y12 = (y1 + y2) / 2, + x23 = (x2 + x3) / 2, + y23 = (y2 + y3) / 2, + xa = (x01 + x12) / 2, + ya = (y01 + y12) / 2, + xb = (x12 + x23) / 2, + yb = (y12 + y23) / 2, + mx = (xa + xb) / 2, + my = (ya + yb) / 2; stbtt__tesselate_cubic(points, x0, y0, x01, y01, xa, ya, mx, my, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); stbtt__tesselate_cubic(points, mx, my, xb, yb, x23, y23, x3, y3, - objspace_flatness_squared, n + 1); + objspace_flatness_squared, n + 1); } else { - points.push({ x:x3, y:y3 }); + points.push({ x:x3, y:y3 }); } } @@ -1699,48 +1699,48 @@ function stbtt__tesselate_cubic(points, x0, y0, x1, y1, x2, y2, x3, y3, objspace // float objspace_flatness, int **contour_lengths, int *num_contours, void *userdata) function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { var points = [], - objspace_flatness_squared = objspace_flatness * objspace_flatness, - n = -1, start = 0, - x = 0, y = 0; - for (var i = 0, nverts = vertices.length; i < nverts; ++i) { - switch (vertices[i].type) { - case STBTT_vmove: - if (n >= 0) { - contour_lengths[n] = points.length - start; - } - ++n; - start = points.length; - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vline: - x = vertices[i].x, y = vertices[i].y; - points.push({ x:x, y:y }); - break; - case STBTT_vcurve: - stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - case STBTT_vcubic: - stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, - vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, - objspace_flatness_squared, 0); - x = vertices[i].x, y = vertices[i].y; - break; - } - } - contour_lengths[n] = points.length - start; - - //console.log("--cl(" + (n+1) + '):'); - //for (var i = 0; i <= n; i++) { - // console.log(" %d", contour_lengths[i]); - //} - //console.log("\n--pts(" + points.length + '):'); - //for (var i = 0; i < points.length; i++) { - // var pt = points[i]; - // console.log(i + ': ' + pt.x + ',' + pt.y); - //} + objspace_flatness_squared = objspace_flatness * objspace_flatness, + n = -1, start = 0, + x = 0, y = 0; + for (var i = 0, nverts = vertices.length; i < nverts; ++i) { + switch (vertices[i].type) { + case STBTT_vmove: + if (n >= 0) { + contour_lengths[n] = points.length - start; + } + ++n; + start = points.length; + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vline: + x = vertices[i].x, y = vertices[i].y; + points.push({ x:x, y:y }); + break; + case STBTT_vcurve: + stbtt__tesselate_curve(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + case STBTT_vcubic: + stbtt__tesselate_cubic(points, x, y, vertices[i].cx, vertices[i].cy, + vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, + objspace_flatness_squared, 0); + x = vertices[i].x, y = vertices[i].y; + break; + } + } + contour_lengths[n] = points.length - start; + + //console.log("--cl(" + (n+1) + '):'); + //for (var i = 0; i <= n; i++) { + // console.log(" %d", contour_lengths[i]); + //} + //console.log("\n--pts(" + points.length + '):'); + //for (var i = 0; i < points.length; i++) { + // var pt = points[i]; + // console.log(i + ': ' + pt.x + ',' + pt.y); + //} return points; } @@ -1750,14 +1750,14 @@ function stbtt_FlattenCurves(vertices, objspace_flatness, contour_lengths) { // float scale_y, float shift_x, float shift_y, int x_off, // int y_off, int invert, void *userdata) function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, shift_x, shift_y, - x_off, y_off, invert) { - x_off |= 0, y_off |= 0; + x_off, y_off, invert) { + x_off |= 0, y_off |= 0; var scale = scale_x > scale_y ? scale_y : scale_x, - wcount = [], - windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); + wcount = [], + windings = stbtt_FlattenCurves(vertices, flatness_in_pixels / scale, wcount); if (windings) { stbtt__rasterize(result, windings, wcount, scale_x, scale_y, - shift_x, shift_y, x_off, y_off, invert); + shift_x, shift_y, x_off, y_off, invert); } } @@ -1766,7 +1766,7 @@ function stbtt_Rasterize(result, flatness_in_pixels, vertices, scale_x, scale_y, // int out_stride, float scale_x, float scale_y, // float shift_x, float shift_y, int glyph) function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, glyph) { + scale_x, scale_y, shift_x, shift_y, glyph) { var vertices = stbtt_GetGlyphShape(info, glyph); var gbm = {}; var rect = stbtt_GetGlyphBitmapBoxSubpixel(info, glyph, scale_x, scale_y, shift_x, shift_y); @@ -1777,7 +1777,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, if (gbm.w && gbm.h) { stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, shift_x, shift_y, rect.x0, rect.y0, 1); - } + } } //extern void stbtt_MakeCodepointBitmapSubpixel(const stbtt_fontinfo * info, @@ -1786,7 +1786,7 @@ function stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, // float scale_y, float shift_x, // float shift_y, int codepoint) function stbtt_MakeCodepointBitmapSubpixel(info, buffer, out_w, out_h, out_stride, - scale_x, scale_y, shift_x, shift_y, codepoint) { + scale_x, scale_y, shift_x, shift_y, codepoint) { stbtt_MakeGlyphBitmapSubpixel(info, buffer, out_w, out_h, out_stride, scale_x, scale_y, shift_x, shift_y, stbtt_FindGlyphIndex(info, codepoint)); @@ -1799,107 +1799,107 @@ function stbtt_InitFont(font, data, offset) { function InitFont(data) { - var font = {}; + var font = {}; if (!stbtt_InitFont_internal(font, data, 0)) { - return null; - } + return null; + } - var vm = stbtt_GetFontVMetrics(font); + var vm = stbtt_GetFontVMetrics(font); - font.ascent = vm.ascent; - font.descent = vm.descent; - font.linegap = vm.linegap; + font.ascent = vm.ascent; + font.descent = vm.descent; + font.linegap = vm.linegap; - return font; + return font; } function GetGlyph(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); - var width = rect.x1 - rect.x0; - var height = rect.y1 - rect.y0; - var pixels = null; - - if (width && height) { - var gbm = { - pixels : (pixels = new Uint8Array(width * height)), - w : width, - h : height, - stride : width, - } - stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); - } - - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - return { - glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, - advance:floor(hmetrics.advanceWidth * scale_x), - } + var rect = stbtt_GetGlyphBitmapBoxSubpixel(font, glyph, scale_x, scale_y, 0, 0); + var width = rect.x1 - rect.x0; + var height = rect.y1 - rect.y0; + var pixels = null; + + if (width && height) { + var gbm = { + pixels : (pixels = new Uint8Array(width * height)), + w : width, + h : height, + stride : width, + } + stbtt_Rasterize(gbm, 0.35, vertices, scale_x, scale_y, 0, 0, rect.x0, rect.y0, 1); + } + + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + return { + glyph:glyph, pixels:pixels, width:width, height:height, top:-rect.y0, left:rect.x0, + advance:floor(hmetrics.advanceWidth * scale_x), + } } function GetPaths(font, codepoint, size_x, size_y) { - size_y = size_y || size_x; - var scale_x = size_x / font.ascent; - var scale_y = size_y / font.ascent; - - var glyph = stbtt_FindGlyphIndex(font, codepoint); - if (!glyph && codepoint) { - return null; - } + size_y = size_y || size_x; + var scale_x = size_x / font.ascent; + var scale_y = size_y / font.ascent; + + var glyph = stbtt_FindGlyphIndex(font, codepoint); + if (!glyph && codepoint) { + return null; + } var vertices = stbtt_GetGlyphShape(font, glyph); - var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); - - // The hmetrics just give us advance. We need ascent and descent as well. - var ascent = 0; - var descent = 0; - - // Convert to SVG notation - var paths = []; - if (vertices) { - for (var i = 0, l = vertices.length; i < l; i++) { - var v = vertices[i]; - var path; - if (v.type == STBTT_vmove) { - path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vline) { - path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; - } else if (v.type == STBTT_vcurve) { - path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, - cx:v.cx * scale_x, cy:v.cy * scale_y }; - } else if (v.type == STBTT_vcubic) { - path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, - cx1:v.cx * scale_x, cy1:v.cy * scale_y, - cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; - } else { - continue; - } - if (path.y > ascent) ascent = path.y; - if (path.y < descent) descent = path.y; - paths.push(path); - } - } - - // Add the glyph metrics to the returned array. - paths.advance = hmetrics.advanceWidth * scale_x; - paths.ascent = ascent; - paths.descent = descent; - return paths; + var hmetrics = stbtt_GetGlyphHMetrics(font, glyph); + + // The hmetrics just give us advance. We need ascent and descent as well. + var ascent = 0; + var descent = 0; + + // Convert to SVG notation + var paths = []; + if (vertices) { + for (var i = 0, l = vertices.length; i < l; i++) { + var v = vertices[i]; + var path; + if (v.type == STBTT_vmove) { + path = { type:'M', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vline) { + path = { type:'L', x:v.x * scale_x, y:v.y * scale_y }; + } else if (v.type == STBTT_vcurve) { + path = { type:'Q', x:v.x * scale_x, y:v.y * scale_y, + cx:v.cx * scale_x, cy:v.cy * scale_y }; + } else if (v.type == STBTT_vcubic) { + path = { type:'C', x:v.x * scale_x, y:v.y * scale_y, + cx1:v.cx * scale_x, cy1:v.cy * scale_y, + cx2:v.cx1 * scale_x, cy2:v.cy1 * scale_y }; + } else { + continue; + } + if (path.y > ascent) ascent = path.y; + if (path.y < descent) descent = path.y; + paths.push(path); + } + } + + // Add the glyph metrics to the returned array. + paths.advance = hmetrics.advanceWidth * scale_x; + paths.ascent = ascent; + paths.descent = descent; + return paths; } // exports return { - InitFont: InitFont, - GetGlyph: GetGlyph, - GetPaths: GetPaths, + InitFont: InitFont, + GetGlyph: GetGlyph, + GetPaths: GetPaths, } })(); diff --git a/stb_truetype.h b/stb_truetype.h index 6a6e5842..e2626bf2 100644 --- a/stb_truetype.h +++ b/stb_truetype.h @@ -4040,32 +4040,32 @@ static float stbtt__cuberoot( float x ) // x^3 + c*x^2 + b*x + a = 0 static int stbtt__solve_cubic(float a, float b, float c, float* r) { - float s = -a / 3; - float p = b - a*a / 3; - float q = a * (2*a*a - 9*b) / 27 + c; + float s = -a / 3; + float p = b - a*a / 3; + float q = a * (2*a*a - 9*b) / 27 + c; float p3 = p*p*p; - float d = q*q + 4*p3 / 27; - if (d >= 0) { - float z = (float) STBTT_sqrt(d); - float u = (-q + z) / 2; - float v = (-q - z) / 2; - u = stbtt__cuberoot(u); - v = stbtt__cuberoot(v); - r[0] = s + u + v; - return 1; - } else { - float u = (float) STBTT_sqrt(-p/3); - float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative - float m = (float) STBTT_cos(v); + float d = q*q + 4*p3 / 27; + if (d >= 0) { + float z = (float) STBTT_sqrt(d); + float u = (-q + z) / 2; + float v = (-q - z) / 2; + u = stbtt__cuberoot(u); + v = stbtt__cuberoot(v); + r[0] = s + u + v; + return 1; + } else { + float u = (float) STBTT_sqrt(-p/3); + float v = (float) STBTT_acos(-STBTT_sqrt(-27/p3) * q / 2) / 3; // p3 must be negative, since d is negative + float m = (float) STBTT_cos(v); float n = (float) STBTT_cos(v-3.141592/2)*1.732050808f; - r[0] = s + u * 2 * m; - r[1] = s - u * (m + n); - r[2] = s - u * (m - n); + r[0] = s + u * 2 * m; + r[1] = s - u * (m + n); + r[2] = s - u * (m - n); //STBTT_assert( STBTT_fabs(((r[0]+a)*r[0]+b)*r[0]+c) < 0.05f); // these asserts may not be safe at all scales, though they're in bezier t parameter units so maybe? //STBTT_assert( STBTT_fabs(((r[1]+a)*r[1]+b)*r[1]+c) < 0.05f); //STBTT_assert( STBTT_fabs(((r[2]+a)*r[2]+b)*r[2]+c) < 0.05f); - return 3; + return 3; } }